diff --git a/Makefile b/Makefile index bb1cafc..7e27ff9 100644 --- a/Makefile +++ b/Makefile @@ -18,4 +18,4 @@ clean: docs: - marimo export html-wasm --output docs --mode edit demo.py + marimo -y export html-wasm --output docs --mode edit demo.py diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md new file mode 100644 index 0000000..85b0787 --- /dev/null +++ b/docs/CLAUDE.md @@ -0,0 +1,367 @@ +# Marimo notebook assistant + +I am a specialized AI assistant designed to help create data science notebooks using marimo. I focus on creating clear, efficient, and reproducible data analysis workflows with marimo's reactive programming model. + +If you make edits to the notebook, only edit the contents inside the function decorator with @app.cell. +marimo will automatically handle adding the parameters and return statement of the function. For example, +for each edit, just return: + +``` +@app.cell +def _(): + + return +``` + +## Marimo fundamentals + +Marimo is a reactive notebook that differs from traditional notebooks in key ways: + +- Cells execute automatically when their dependencies change +- Variables cannot be redeclared across cells +- The notebook forms a directed acyclic graph (DAG) +- The last expression in a cell is automatically displayed +- UI elements are reactive and update the notebook automatically + +## Code Requirements + +1. All code must be complete and runnable +2. Follow consistent coding style throughout +3. Include descriptive variable names and helpful comments +4. Import all modules in the first cell, always including `import marimo as mo` +5. Never redeclare variables across cells +6. Ensure no cycles in notebook dependency graph +7. The last expression in a cell is automatically displayed, just like in Jupyter notebooks. +8. Don't include comments in markdown cells +9. Don't include comments in SQL cells +10. Never define anything using `global`. + +## Reactivity + +Marimo's reactivity means: + +- When a variable changes, all cells that use that variable automatically re-execute +- UI elements trigger updates when their values change without explicit callbacks +- UI element values are accessed through `.value` attribute +- You cannot access a UI element's value in the same cell where it's defined +- Cells prefixed with an underscore (e.g. _my_var) are local to the cell and cannot be accessed by other cells + +## Best Practices + + + +- Use polars for data manipulation +- Implement proper data validation +- Handle missing values appropriately +- Use efficient data structures +- A variable in the last expression of a cell is automatically displayed as a table + + + +- For matplotlib: use plt.gca() as the last expression instead of plt.show() +- For plotly: return the figure object directly +- For altair: return the chart object directly. Add tooltips where appropriate. You can pass polars dataframes directly to altair. +- Include proper labels, titles, and color schemes +- Make visualizations interactive where appropriate + + + + +- Access UI element values with .value attribute (e.g., slider.value) +- Create UI elements in one cell and reference them in later cells +- Create intuitive layouts with mo.hstack(), mo.vstack(), and mo.tabs() +- Prefer reactive updates over callbacks (marimo handles reactivity automatically) +- Group related UI elements for better organization + + + +- When writing duckdb, prefer using marimo's SQL cells, which start with df = mo.sql(f"""""") for DuckDB, or df = mo.sql(f"""""", engine=engine) for other SQL engines. +- See the SQL with duckdb example for an example on how to do this +- Don't add comments in cells that use mo.sql() + + +## Troubleshooting + +Common issues and solutions: + +- Circular dependencies: Reorganize code to remove cycles in the dependency graph +- UI element value access: Move access to a separate cell from definition +- Visualization not showing: Ensure the visualization object is the last expression + +After generating a notebook, run `marimo check --fix` to catch and +automatically resolve common formatting issues, and detect common pitfalls. + +## Available UI elements + +- `mo.ui.altair_chart(altair_chart)` +- `mo.ui.button(value=None, kind='primary')` +- `mo.ui.run_button(label=None, tooltip=None, kind='primary')` +- `mo.ui.checkbox(label='', value=False)` +- `mo.ui.date(value=None, label=None, full_width=False)` +- `mo.ui.dropdown(options, value=None, label=None, full_width=False)` +- `mo.ui.file(label='', multiple=False, full_width=False)` +- `mo.ui.number(value=None, label=None, full_width=False)` +- `mo.ui.radio(options, value=None, label=None, full_width=False)` +- `mo.ui.refresh(options: List[str], default_interval: str)` +- `mo.ui.slider(start, stop, value=None, label=None, full_width=False, step=None)` +- `mo.ui.range_slider(start, stop, value=None, label=None, full_width=False, step=None)` +- `mo.ui.table(data, columns=None, on_select=None, sortable=True, filterable=True)` +- `mo.ui.text(value='', label=None, full_width=False)` +- `mo.ui.text_area(value='', label=None, full_width=False)` +- `mo.ui.data_explorer(df)` +- `mo.ui.dataframe(df)` +- `mo.ui.plotly(plotly_figure)` +- `mo.ui.tabs(elements: dict[str, mo.ui.Element])` +- `mo.ui.array(elements: list[mo.ui.Element])` +- `mo.ui.form(element: mo.ui.Element, label='', bordered=True)` + +## Layout and utility functions + +- `mo.md(text)` - display markdown +- `mo.stop(predicate, output=None)` - stop execution conditionally +- `mo.output.append(value)` - append to the output when it is not the last expression +- `mo.output.replace(value)` - replace the output when it is not the last expression +- `mo.Html(html)` - display HTML +- `mo.image(image)` - display an image +- `mo.hstack(elements)` - stack elements horizontally +- `mo.vstack(elements)` - stack elements vertically +- `mo.tabs(elements)` - create a tabbed interface + +## Examples + + +``` +@app.cell +def _(): + mo.md(""" + # Hello world + This is a _markdown_ **cell**. + """) + return +``` + + + +``` +@app.cell +def _(): + import marimo as mo + import altair as alt + import polars as pl + import numpy as np + return + +@app.cell +def _(): + n_points = mo.ui.slider(10, 100, value=50, label="Number of points") + n_points + return + +@app.cell +def _(): + x = np.random.rand(n_points.value) + y = np.random.rand(n_points.value) + + df = pl.DataFrame({"x": x, "y": y}) + + chart = alt.Chart(df).mark_circle(opacity=0.7).encode( + x=alt.X('x', title='X axis'), + y=alt.Y('y', title='Y axis') + ).properties( + title=f"Scatter plot with {n_points.value} points", + width=400, + height=300 + ) + + chart + return + +``` + + + +``` + +@app.cell +def _(): + import marimo as mo + import polars as pl + from vega_datasets import data + return + +@app.cell +def _(): + cars_df = pl.DataFrame(data.cars()) + mo.ui.data_explorer(cars_df) + return + +``` + + + +``` + +@app.cell +def _(): + import marimo as mo + import polars as pl + import altair as alt + return + +@app.cell +def _(): + iris = pl.read_csv("hf://datasets/scikit-learn/iris/Iris.csv") + return + +@app.cell +def _(): + species_selector = mo.ui.dropdown( + options=["All"] + iris["Species"].unique().to_list(), + value="All", + label="Species", + ) + x_feature = mo.ui.dropdown( + options=iris.select(pl.col(pl.Float64, pl.Int64)).columns, + value="SepalLengthCm", + label="X Feature", + ) + y_feature = mo.ui.dropdown( + options=iris.select(pl.col(pl.Float64, pl.Int64)).columns, + value="SepalWidthCm", + label="Y Feature", + ) + mo.hstack([species_selector, x_feature, y_feature]) + return + +@app.cell +def _(): + filtered_data = iris if species_selector.value == "All" else iris.filter(pl.col("Species") == species_selector.value) + + chart = alt.Chart(filtered_data).mark_circle().encode( + x=alt.X(x_feature.value, title=x_feature.value), + y=alt.Y(y_feature.value, title=y_feature.value), + color='Species' + ).properties( + title=f"{y_feature.value} vs {x_feature.value}", + width=500, + height=400 + ) + + chart + return + +``` + + + +``` + +@app.cell +def _(): + mo.stop(not data.value, mo.md("No data to display")) + + if mode.value == "scatter": + mo.output.replace(render_scatter(data.value)) + else: + mo.output.replace(render_bar_chart(data.value)) + return + +``` + + + +``` + +@app.cell +def _(): + import marimo as mo + import altair as alt + import polars as pl + return + +@app.cell +def _(): + # Load dataset + weather = pl.read_csv("") + weather_dates = weather.with_columns( + pl.col("date").str.strptime(pl.Date, format="%Y-%m-%d") + ) + _chart = ( + alt.Chart(weather_dates) + .mark_point() + .encode( + x="date:T", + y="temp_max", + color="location", + ) + ) + return + +@app.cell +def _(): + chart = mo.ui.altair_chart(_chart) +chart + return + +@app.cell +def _(): + # Display the selection + chart.value + return + +``` + + + +``` + +@app.cell +def _(): + import marimo as mo + return + +@app.cell +def _(): + first_button = mo.ui.run_button(label="Option 1") + second_button = mo.ui.run_button(label="Option 2") + [first_button, second_button] + return + +@app.cell +def _(): + if first_button.value: + print("You chose option 1!") + elif second_button.value: + print("You chose option 2!") + else: + print("Click a button!") + return + +``` + + + +``` + +@app.cell +def _(): + import marimo as mo + import polars as pl + return + +@app.cell +def _(): + weather = pl.read_csv('') + return + +@app.cell +def _(): + seattle_weather_df = mo.sql( + f""" + SELECT * FROM weather WHERE location = 'Seattle'; + """ + ) + return + +``` + diff --git a/docs/assets/CellStatus-2Psjnl5F.css b/docs/assets/CellStatus-2Psjnl5F.css new file mode 100644 index 0000000..67a1afb --- /dev/null +++ b/docs/assets/CellStatus-2Psjnl5F.css @@ -0,0 +1 @@ +.cell-status-icon{margin-top:4px;margin-bottom:auto;margin-left:3px}.elapsed-time{color:var(--gray-11);font-family:var(--monospace-font);font-size:.75rem}#App.disconnected .elapsed-time{visibility:hidden}.cell-status-disabled,.cell-status-queued,.cell-status-stale{color:var(--gray-10)} diff --git a/docs/assets/CellStatus-D1YyNsC9.js b/docs/assets/CellStatus-D1YyNsC9.js new file mode 100644 index 0000000..91e3331 --- /dev/null +++ b/docs/assets/CellStatus-D1YyNsC9.js @@ -0,0 +1 @@ +import{s as $}from"./chunk-LvLJmgfZ.js";import{t as z}from"./react-BGmjiNul.js";import{Z as F}from"./cells-CmJW_FeD.js";import{t as O}from"./compiler-runtime-DeeZ7FnK.js";import{d as B}from"./hotkeys-uKX61F1_.js";import{t as L}from"./jsx-runtime-DN_bIXfG.js";import{t as V}from"./createLucideIcon-CW2xpJ57.js";import{c as Z,l as A,n as G,t as _}from"./toDate-5JckKRQn.js";import{t as J}from"./ellipsis-DwHM80y-.js";import{t as R}from"./refresh-cw-Din9uFKE.js";import{t as K}from"./workflow-ZGK5flRg.js";import{t as D}from"./tooltip-CvjcEpZC.js";import{i as Q,n as Y,r as C,t as U}from"./en-US-DhMN8sxe.js";import{t as E}from"./useDateFormatter-CV0QXb5P.js";import{t as H}from"./multi-icon-6ulZXArq.js";var k=V("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function X(n,e){let t=_(n)-+_(e);return t<0?-1:t>0?1:t}function ee(n){return G(n,Date.now())}function te(n,e,t){let[d,l]=Y(t==null?void 0:t.in,n,e),h=d.getFullYear()-l.getFullYear(),o=d.getMonth()-l.getMonth();return h*12+o}function se(n){return e=>{let t=(n?Math[n]:Math.trunc)(e);return t===0?0:t}}function ae(n,e){return _(n)-+_(e)}function le(n,e){let t=_(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function ne(n,e){let t=_(n,e==null?void 0:e.in),d=t.getMonth();return t.setFullYear(t.getFullYear(),d+1,0),t.setHours(23,59,59,999),t}function re(n,e){let t=_(n,e==null?void 0:e.in);return+le(t,e)==+ne(t,e)}function ie(n,e,t){let[d,l,h]=Y(t==null?void 0:t.in,n,n,e),o=X(l,h),b=Math.abs(te(l,h));if(b<1)return 0;l.getMonth()===1&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-o*b);let m=X(l,h)===-o;re(d)&&b===1&&X(d,h)===1&&(m=!1);let x=o*(b-+m);return x===0?0:x}function ce(n,e,t){let d=ae(n,e)/1e3;return se(t==null?void 0:t.roundingMethod)(d)}function oe(n,e,t){let d=Q(),l=(t==null?void 0:t.locale)??d.locale??U,h=X(n,e);if(isNaN(h))throw RangeError("Invalid time value");let o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:h}),[b,m]=Y(t==null?void 0:t.in,...h>0?[e,n]:[n,e]),x=ce(m,b),M=(C(m)-C(b))/1e3,p=Math.round((x-M)/60),T;if(p<2)return t!=null&&t.includeSeconds?x<5?l.formatDistance("lessThanXSeconds",5,o):x<10?l.formatDistance("lessThanXSeconds",10,o):x<20?l.formatDistance("lessThanXSeconds",20,o):x<40?l.formatDistance("halfAMinute",0,o):x<60?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",1,o):p===0?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",p,o);if(p<45)return l.formatDistance("xMinutes",p,o);if(p<90)return l.formatDistance("aboutXHours",1,o);if(p<1440){let g=Math.round(p/60);return l.formatDistance("aboutXHours",g,o)}else{if(p<2520)return l.formatDistance("xDays",1,o);if(p<43200){let g=Math.round(p/Z);return l.formatDistance("xDays",g,o)}else if(p<43200*2)return T=Math.round(p/A),l.formatDistance("aboutXMonths",T,o)}if(T=ie(m,b),T<12){let g=Math.round(p/A);return l.formatDistance("xMonths",g,o)}else{let g=T%12,u=Math.trunc(T/12);return g<3?l.formatDistance("aboutXYears",u,o):g<9?l.formatDistance("overXYears",u,o):l.formatDistance("almostXYears",u+1,o)}}function ue(n,e){return oe(n,ee(n),e)}var I=$(z(),1);function de(n){let e=(0,I.useRef)(n),[t,d]=(0,I.useState)(n);return(0,I.useEffect)(()=>{let l=setInterval(()=>{d(F.now().toMilliseconds())},17);return()=>clearInterval(l)},[]),t-e.current}var P=O(),s=$(L(),1);const me=n=>{let e=(0,P.c)(79),{editing:t,status:d,disabled:l,staleInputs:h,edited:o,interrupted:b,elapsedTime:m,runStartTimestamp:x,lastRunStartTimestamp:M,uninstantiated:p}=n;if(!t)return null;let T=x??M,g;e[0]===T?g=e[1]:(g=T?(0,s.jsx)(he,{lastRanTime:T}):null,e[0]=T,e[1]=g);let u=g;if(l&&d==="running")return B.error("CellStatusComponent: disabled and running"),null;if(l&&h){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but it's disabled and can't be run"}),e[2]=c):c=e[2];let a;e[3]===u?a=e[4]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[3]=u,e[4]=a);let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(R,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[5]=i):i=e[5];let r;return e[6]===a?r=e[7]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[6]=a,e[7]=r),r}if(l){let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is disabled"}),e[8]=c):c=e[8];let a;e[9]===u?a=e[10]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[9]=u,e[10]=a);let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-disabled","data-testid":"cell-status","data-status":"disabled",children:(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5})}),e[11]=i):i=e[11];let r;return e[12]===a?r=e[13]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[12]=a,e[13]=r),r}if(!h&&d==="disabled-transitively"){let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"An ancestor of this cell is disabled, so it can't be run"}),e[14]=c):c=e[14];let a;e[15]===u?a=e[16]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[15]=u,e[16]=a);let i;e[17]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"disabled-transitively",children:(0,s.jsxs)(H,{layerTop:!0,children:[(0,s.jsx)(K,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[17]=i):i=e[17];let r;return e[18]===a?r=e[19]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[18]=a,e[19]=r),r}if(h&&d==="disabled-transitively"){let c;e[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but an ancestor is disabled so it can't be run"}),e[20]=c):c=e[20];let a;e[21]===u?a=e[22]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[21]=u,e[22]=a);let i;e[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[23]=i):i=e[23];let r;return e[24]===a?r=e[25]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[24]=a,e[25]=r),r}if(d==="running"){let c;e[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is running"}),e[26]=c):c=e[26];let a;e[27]===u?a=e[28]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[27]=u,e[28]=a);let i;e[29]===x?i=e[30]:(i=F.fromSeconds(x)||F.now(),e[29]=x,e[30]=i);let r;e[31]===i?r=e[32]:(r=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time running","data-testid":"cell-status","data-status":"running",children:(0,s.jsx)(fe,{startTime:i})}),e[31]=i,e[32]=r);let f;return e[33]!==a||e[34]!==r?(f=(0,s.jsx)(D,{content:a,usePortal:!0,children:r}),e[33]=a,e[34]=r,e[35]=f):f=e[35],f}if(d==="queued"){let c;e[36]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is queued to run"}),e[36]=c):c=e[36];let a;e[37]===u?a=e[38]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[37]=u,e[38]=a);let i;e[39]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-queued","data-testid":"cell-status","data-status":"queued",children:(0,s.jsx)(J,{className:"h-5 w-5",strokeWidth:1.5})}),e[39]=i):i=e[39];let r;return e[40]===a?r=e[41]:(r=(0,s.jsx)(D,{content:a,usePortal:!0,children:i}),e[40]=a,e[41]=r),r}if(o||b||h||p){let c;e[42]===m?c=e[43]:(c=W(m),e[42]=m,e[43]=c);let a=c,i;e[44]!==m||e[45]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[44]=m,e[45]=a,e[46]=i):i=e[46];let r=i,f,v="";if(p)f="This cell has not yet been run";else if(b){f="This cell was interrupted when it was last run";let j;e[47]===r?j=e[48]:(j=(0,s.jsxs)("span",{children:["This cell ran for ",r," before being interrupted"]}),e[47]=r,e[48]=j),v=j}else if(o){f="This cell has been modified since it was last run";let j;e[49]===r?j=e[50]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[49]=r,e[50]=j),v=j}else{f="This cell has not been run with the latest inputs";let j;e[51]===r?j=e[52]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[51]=r,e[52]=j),v=j}let N;e[53]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"cell-status-stale","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1.5})}),e[53]=N):N=e[53];let S;e[54]===f?S=e[55]:(S=(0,s.jsx)(D,{content:f,usePortal:!0,children:N}),e[54]=f,e[55]=S);let y;e[56]!==m||e[57]!==a||e[58]!==u||e[59]!==v?(y=m&&(0,s.jsx)(D,{content:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[v,u]}),usePortal:!0,children:(0,s.jsx)("div",{className:"elapsed-time hover-action","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)("span",{children:a})})}),e[56]=m,e[57]=a,e[58]=u,e[59]=v,e[60]=y):y=e[60];let w;return e[61]!==S||e[62]!==y?(w=(0,s.jsxs)("div",{className:"cell-status-icon flex items-center gap-2",children:[S,y]}),e[61]=S,e[62]=y,e[63]=w):w=e[63],w}if(m!==null){let c;e[64]===m?c=e[65]:(c=W(m),e[64]=m,e[65]=c);let a=c,i;e[66]!==m||e[67]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[66]=m,e[67]=a,e[68]=i):i=e[68];let r=i,f;e[69]===r?f=e[70]:(f=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[69]=r,e[70]=f);let v;e[71]!==u||e[72]!==f?(v=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[f,u]}),e[71]=u,e[72]=f,e[73]=v):v=e[73];let N;e[74]===a?N=e[75]:(N=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time hover-action","data-testid":"cell-status","data-status":"idle",children:(0,s.jsx)("span",{children:a})}),e[74]=a,e[75]=N);let S;return e[76]!==v||e[77]!==N?(S=(0,s.jsx)(D,{content:v,usePortal:!0,children:N}),e[76]=v,e[77]=N,e[78]=S):S=e[78],S}return null},q=n=>{let e=(0,P.c)(2),t;return e[0]===n.elapsedTime?t=e[1]:(t=(0,s.jsx)("span",{className:"tracking-wide font-semibold",children:n.elapsedTime}),e[0]=n.elapsedTime,e[1]=t),t};var he=n=>{let e=(0,P.c)(4),t=new Date(n.lastRanTime*1e3),d=new Date,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[0]=l):l=e[0];let h=E(l),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[1]=o):o=e[1];let b=E(o),m=t.toDateString()===d.toDateString()?h:b,x=ue(t),M;return e[2]===x?M=e[3]:(M=(0,s.jsxs)("span",{className:"text-muted-foreground",children:["(",x," ago)"]}),e[2]=x,e[3]=M),(0,s.jsxs)("span",{children:["Ran at"," ",(0,s.jsx)("strong",{className:"tracking-wide font-semibold",children:m.format(t)})," ",M]})};function W(n){if(n===null)return"";let e=n,t=e/1e3;return t>=60?`${Math.floor(t/60)}m${Math.floor(t%60)}s`:t>=1?`${t.toFixed(2).toString()}s`:`${e.toFixed(0).toString()}ms`}var fe=n=>{let e=(0,P.c)(6),t;e[0]===n.startTime?t=e[1]:(t=n.startTime.toMilliseconds(),e[0]=n.startTime,e[1]=t);let d=de(t),l;e[2]===d?l=e[3]:(l=W(d),e[2]=d,e[3]=l);let h;return e[4]===l?h=e[5]:(h=(0,s.jsx)("span",{children:l}),e[4]=l,e[5]=h),h};export{q as n,W as r,me as t}; diff --git a/docs/assets/Combination-D1TsGrBC.js b/docs/assets/Combination-D1TsGrBC.js new file mode 100644 index 0000000..299cd82 --- /dev/null +++ b/docs/assets/Combination-D1TsGrBC.js @@ -0,0 +1,41 @@ +import{s as I}from"./chunk-LvLJmgfZ.js";import{t as Ye}from"./react-BGmjiNul.js";import{t as ae}from"./react-dom-C9fstfnp.js";import{t as ue}from"./compiler-runtime-DeeZ7FnK.js";import{n as ze,r as W,t as Ve}from"./useEventListener-COkmyg1v.js";import{t as Ze}from"./jsx-runtime-DN_bIXfG.js";var u=I(Ye(),1),E=I(Ze(),1);function qe(e,t){let r=u.createContext(t),n=a=>{let{children:l,...i}=a,m=u.useMemo(()=>i,Object.values(i));return(0,E.jsx)(r.Provider,{value:m,children:l})};n.displayName=e+"Provider";function o(a){let l=u.useContext(r);if(l)return l;if(t!==void 0)return t;throw Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function He(e,t=[]){let r=[];function n(a,l){let i=u.createContext(l),m=r.length;r=[...r,l];let c=f=>{var b;let{scope:p,children:h,...N}=f,s=((b=p==null?void 0:p[e])==null?void 0:b[m])||i,v=u.useMemo(()=>N,Object.values(N));return(0,E.jsx)(s.Provider,{value:v,children:h})};c.displayName=a+"Provider";function d(f,p){var s;let h=((s=p==null?void 0:p[e])==null?void 0:s[m])||i,N=u.useContext(h);if(N)return N;if(l!==void 0)return l;throw Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}let o=()=>{let a=r.map(l=>u.createContext(l));return function(l){let i=(l==null?void 0:l[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...l,[e]:i}}),[l,i])}};return o.scopeName=e,[n,Xe(o,...t)]}function Xe(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let a=n.reduce((l,{useScope:i,scopeName:m})=>{let c=i(o)[`__scope${m}`];return{...l,...c}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}typeof window<"u"&&window.document&&window.document.createElement;function F(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}var L=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},Ge=u.useInsertionEffect||L;function Je({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,l]=Qe({defaultProp:t,onChange:r}),i=e!==void 0,m=i?e:o;{let c=u.useRef(e!==void 0);u.useEffect(()=>{let d=c.current;d!==i&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=i},[i,n])}return[m,u.useCallback(c=>{var d;if(i){let f=et(c)?c(e):c;f!==e&&((d=l.current)==null||d.call(l,f))}else a(c)},[i,e,a,l])]}function Qe({defaultProp:e,onChange:t}){let[r,n]=u.useState(e),o=u.useRef(r),a=u.useRef(t);return Ge(()=>{a.current=t},[t]),u.useEffect(()=>{var l;o.current!==r&&((l=a.current)==null||l.call(a,r),o.current=r)},[r,o]),[r,n,a]}function et(e){return typeof e=="function"}function tt(e,t){return u.useReducer((r,n)=>t[r][n]??r,e)}var le=e=>{let{present:t,children:r}=e,n=nt(t),o=typeof r=="function"?r({present:n.isPresent}):u.Children.only(r),a=W(n.ref,rt(o));return typeof r=="function"||n.isPresent?u.cloneElement(o,{ref:a}):null};le.displayName="Presence";function nt(e){let[t,r]=u.useState(),n=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),[l,i]=tt(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{let m=B(n.current);a.current=l==="mounted"?m:"none"},[l]),L(()=>{let m=n.current,c=o.current;if(c!==e){let d=a.current,f=B(m);e?i("MOUNT"):f==="none"||(m==null?void 0:m.display)==="none"?i("UNMOUNT"):i(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,i]),L(()=>{if(t){let m,c=t.ownerDocument.defaultView??window,d=p=>{let h=B(n.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(i("ANIMATION_END"),!o.current)){let N=t.style.animationFillMode;t.style.animationFillMode="forwards",m=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=N)})}},f=p=>{p.target===t&&(a.current=B(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(m),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else i("ANIMATION_END")},[t,i]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback(m=>{n.current=m?getComputedStyle(m):null,r(m)},[])}}function B(e){return(e==null?void 0:e.animationName)||"none"}function rt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ce(e){let t=ot(e),r=u.forwardRef((n,o)=>{let{children:a,...l}=n,i=u.Children.toArray(a),m=i.find(at);if(m){let c=m.props.children,d=i.map(f=>f===m?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return(0,E.jsx)(t,{...l,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return(0,E.jsx)(t,{...l,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function ot(e){let t=u.forwardRef((r,n)=>{let{children:o,...a}=r;if(u.isValidElement(o)){let l=lt(o),i=ut(a,o.props);return o.type!==u.Fragment&&(i.ref=n?ze(n,l):l),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var se=Symbol("radix.slottable");function it(e){let t=({children:r})=>(0,E.jsx)(E.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=se,t}function at(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===se}function ut(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{let i=a(...l);return o(...l),i}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function lt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ct=I(ae(),1),k=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=ce(`Primitive.${t}`),n=u.forwardRef((o,a)=>{let{asChild:l,...i}=o,m=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,E.jsx)(m,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function de(e,t){e&&ct.flushSync(()=>e.dispatchEvent(t))}function M(e){let t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function st(e,t=globalThis==null?void 0:globalThis.document){let r=M(e);u.useEffect(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var dt="DismissableLayer",X="dismissableLayer.update",ft="dismissableLayer.pointerDownOutside",mt="dismissableLayer.focusOutside",fe,me=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),G=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:i,...m}=e,c=u.useContext(me),[d,f]=u.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=u.useState({}),N=W(t,g=>f(g)),s=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=s.indexOf(v),S=d?s.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,y=S>=b,x=vt(g=>{let P=g.target,T=[...c.branches].some(Ke=>Ke.contains(P));!y||T||(o==null||o(g),l==null||l(g),g.defaultPrevented||(i==null||i()))},p),R=ht(g=>{let P=g.target;[...c.branches].some(T=>T.contains(P))||(a==null||a(g),l==null||l(g),g.defaultPrevented||(i==null||i()))},p);return st(g=>{S===c.layers.size-1&&(n==null||n(g),!g.defaultPrevented&&i&&(g.preventDefault(),i()))},p),u.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(fe=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),ve(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=fe)}},[d,p,r,c]),u.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),ve())},[d,c]),u.useEffect(()=>{let g=()=>h({});return document.addEventListener(X,g),()=>document.removeEventListener(X,g)},[]),(0,E.jsx)(k.div,{...m,ref:N,style:{pointerEvents:w?y?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,R.onFocusCapture),onBlurCapture:F(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,x.onPointerDownCapture)})});G.displayName=dt;var pt="DismissableLayerBranch",pe=u.forwardRef((e,t)=>{let r=u.useContext(me),n=u.useRef(null),o=W(t,n);return u.useEffect(()=>{let a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),(0,E.jsx)(k.div,{...e,ref:o})});pe.displayName=pt;function vt(e,t=globalThis==null?void 0:globalThis.document){let r=M(e),n=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{let a=i=>{if(i.target&&!n.current){let m=function(){he(ft,r,c,{discrete:!0})},c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);n.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ht(e,t=globalThis==null?void 0:globalThis.document){let r=M(e),n=u.useRef(!1);return u.useEffect(()=>{let o=a=>{a.target&&!n.current&&he(mt,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ve(){let e=new CustomEvent(X);document.dispatchEvent(e)}function he(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?de(o,a):o.dispatchEvent(a)}var yt=G,gt=pe,Et=u.useId||(()=>{}),bt=0;function wt(e){let[t,r]=u.useState(Et());return L(()=>{e||r(n=>n??String(bt++))},[e]),e||(t?`radix-${t}`:"")}var Nt=I(ae(),1),St="Portal",ye=u.forwardRef((e,t)=>{var i;let{container:r,...n}=e,[o,a]=u.useState(!1);L(()=>a(!0),[]);let l=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return l?Nt.createPortal((0,E.jsx)(k.div,{...n,ref:t}),l):null});ye.displayName=St;var Ct=ue(),xt={display:"contents"};const ge=u.forwardRef((e,t)=>{let r=(0,Ct.c)(3),{children:n}=e,o;return r[0]!==n||r[1]!==t?(o=(0,E.jsx)("div",{ref:t,className:"marimo",style:xt,children:n}),r[0]=n,r[1]=t,r[2]=o):o=r[2],o});ge.displayName="StyleNamespace";function U(){return document.querySelector("[data-vscode-theme-kind]")!==null}var D=ue(),Ee="[data-vscode-output-container]";const Rt=U()?0:30;function Pt(){let e=(0,D.c)(1),[t,r]=(0,u.useState)(document.fullscreenElement),n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{r(document.fullscreenElement)},e[0]=n):n=e[0],Ve(document,"fullscreenchange",n),t}function Ot(e){let t=n=>{let o=(0,D.c)(6),[a,l]=u.useState(null),i=u.useRef(null),m,c;o[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{i.current&&l(be(i.current,Ee))},c=[],o[0]=m,o[1]=c):(m=o[0],c=o[1]),u.useLayoutEffect(m,c);let d;o[2]===Symbol.for("react.memo_cache_sentinel")?(d=(0,E.jsx)("div",{ref:i,className:"contents invisible"}),o[2]=d):d=o[2];let f;return o[3]!==a||o[4]!==n?(f=(0,E.jsxs)(E.Fragment,{children:[d,(0,E.jsx)(e,{...n,container:a})]}),o[3]=a,o[4]=n,o[5]=f):f=o[5],f},r=n=>{let o=(0,D.c)(7),a=Pt();if(U()){let i;return o[0]===n?i=o[1]:(i=(0,E.jsx)(t,{...n}),o[0]=n,o[1]=i),i}if(!a){let i;return o[2]===n?i=o[3]:(i=(0,E.jsx)(e,{...n}),o[2]=n,o[3]=i),i}let l;return o[4]!==a||o[5]!==n?(l=(0,E.jsx)(e,{...n,container:a}),o[4]=a,o[5]=n,o[6]=l):l=o[6],l};return r.displayName=e.displayName,r}function Tt(e){let t=n=>{let o=(0,D.c)(6),[a,l]=u.useState(null),i=u.useRef(null),m,c;o[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{i.current&&l(be(i.current,Ee))},c=[],o[0]=m,o[1]=c):(m=o[0],c=o[1]),u.useLayoutEffect(m,c);let d;o[2]===Symbol.for("react.memo_cache_sentinel")?(d=(0,E.jsx)("div",{ref:i,className:"contents invisible"}),o[2]=d):d=o[2];let f;return o[3]!==a||o[4]!==n?(f=(0,E.jsxs)(E.Fragment,{children:[d,(0,E.jsx)(e,{...n,collisionBoundary:a})]}),o[3]=a,o[4]=n,o[5]=f):f=o[5],f},r=n=>{let o=(0,D.c)(4);if(U()){let l;return o[0]===n?l=o[1]:(l=(0,E.jsx)(t,{...n}),o[0]=n,o[1]=l),l}let a;return o[2]===n?a=o[3]:(a=(0,E.jsx)(e,{...n}),o[2]=n,o[3]=a),a};return r.displayName=e.displayName,r}function be(e,t){let r=e;for(;r;){let n=r.closest(t);if(n)return n;let o=r.getRootNode();if(r=o instanceof ShadowRoot?o.host:r.parentElement,r===o)break}return null}var J=0;function Lt(){u.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??we()),document.body.insertAdjacentElement("beforeend",e[1]??we()),J++,()=>{J===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),J--}},[])}function we(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Q="focusScope.autoFocusOnMount",ee="focusScope.autoFocusOnUnmount",Ne={bubbles:!1,cancelable:!0},Mt="FocusScope",Se=u.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[i,m]=u.useState(null),c=M(o),d=M(a),f=u.useRef(null),p=W(t,s=>m(s)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(n){let s=function(w){if(h.paused||!i)return;let y=w.target;i.contains(y)?f.current=y:O(f.current,{select:!0})},v=function(w){if(h.paused||!i)return;let y=w.relatedTarget;y!==null&&(i.contains(y)||O(f.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(let y of w)y.removedNodes.length>0&&O(i)};document.addEventListener("focusin",s),document.addEventListener("focusout",v);let S=new MutationObserver(b);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",v),S.disconnect()}}},[n,i,h.paused]),u.useEffect(()=>{if(i){Re.add(h);let s=document.activeElement;if(!i.contains(s)){let v=new CustomEvent(Q,Ne);i.addEventListener(Q,c),i.dispatchEvent(v),v.defaultPrevented||($t(jt(Ce(i)),{select:!0}),document.activeElement===s&&O(i))}return()=>{i.removeEventListener(Q,c),setTimeout(()=>{let v=new CustomEvent(ee,Ne);i.addEventListener(ee,d),i.dispatchEvent(v),v.defaultPrevented||O(s??document.body,{select:!0}),i.removeEventListener(ee,d),Re.remove(h)},0)}}},[i,c,d,h]);let N=u.useCallback(s=>{if(!r&&!n||h.paused)return;let v=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,b=document.activeElement;if(v&&b){let S=s.currentTarget,[w,y]=At(S);w&&y?!s.shiftKey&&b===y?(s.preventDefault(),r&&O(w,{select:!0})):s.shiftKey&&b===w&&(s.preventDefault(),r&&O(y,{select:!0})):b===S&&s.preventDefault()}},[r,n,h.paused]);return(0,E.jsx)(k.div,{tabIndex:-1,...l,ref:p,onKeyDown:N})});Se.displayName=Mt;function $t(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(O(n,{select:t}),document.activeElement!==r)return}function At(e){let t=Ce(e);return[xe(t,e),xe(t.reverse(),e)]}function Ce(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function xe(e,t){for(let r of e)if(!_t(r,{upTo:t}))return r}function _t(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kt(e){return e instanceof HTMLInputElement&&"select"in e}function O(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&kt(e)&&t&&e.select()}}var Re=Dt();function Dt(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=Pe(e,t),e.unshift(t)},remove(t){var r;e=Pe(e,t),(r=e[0])==null||r.resume()}}}function Pe(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function jt(e){return e.filter(t=>t.tagName!=="A")}var It=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},$=new WeakMap,K=new WeakMap,Y={},te=0,Oe=function(e){return e&&(e.host||Oe(e.parentNode))},Wt=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Oe(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Ft=function(e,t,r,n){var o=Wt(t,Array.isArray(e)?e:[e]);Y[r]||(Y[r]=new WeakMap);var a=Y[r],l=[],i=new Set,m=new Set(o),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||m.has(f)||Array.prototype.forEach.call(f.children,function(p){if(i.has(p))d(p);else try{var h=p.getAttribute(n),N=h!==null&&h!=="false",s=($.get(p)||0)+1,v=(a.get(p)||0)+1;$.set(p,s),a.set(p,v),l.push(p),s===1&&N&&K.set(p,!0),v===1&&p.setAttribute(r,"true"),N||p.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return d(t),i.clear(),te++,function(){l.forEach(function(f){var p=$.get(f)-1,h=a.get(f)-1;$.set(f,p),a.set(f,h),p||(K.has(f)||f.removeAttribute(n),K.delete(f)),h||f.removeAttribute(r)}),te--,te||($=new WeakMap,$=new WeakMap,K=new WeakMap,Y={})}},Bt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||It(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Ft(n,o,r,"aria-hidden")):function(){return null}},C=function(){return C=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return an;var t=un(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},cn=_e(),j="data-scroll-locked",sn=function(e,t,r,n){var o=e.left,a=e.top,l=e.right,i=e.gap;return r===void 0&&(r="margin"),` + .${Yt} { + overflow: hidden ${n}; + padding-right: ${i}px ${n}; + } + body[${j}] { + overflow: hidden ${n}; + overscroll-behavior: contain; + ${[t&&`position: relative ${n};`,r==="margin"&&` + padding-left: ${o}px; + padding-top: ${a}px; + padding-right: ${l}px; + margin-left:0; + margin-top:0; + margin-right: ${i}px ${n}; + `,r==="padding"&&`padding-right: ${i}px ${n};`].filter(Boolean).join("")} + } + + .${z} { + right: ${i}px ${n}; + } + + .${V} { + margin-right: ${i}px ${n}; + } + + .${z} .${z} { + right: 0 ${n}; + } + + .${V} .${V} { + margin-right: 0 ${n}; + } + + body[${j}] { + ${zt}: ${i}px; + } +`},ke=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},dn=function(){u.useEffect(function(){return document.body.setAttribute(j,(ke()+1).toString()),function(){var e=ke()-1;e<=0?document.body.removeAttribute(j):document.body.setAttribute(j,e.toString())}},[])},fn=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;dn();var a=u.useMemo(function(){return ln(o)},[o]);return u.createElement(cn,{styles:sn(a,!t,o,r?"":"!important")})},ie=!1;if(typeof window<"u")try{var q=Object.defineProperty({},"passive",{get:function(){return ie=!0,!0}});window.addEventListener("test",q,q),window.removeEventListener("test",q,q)}catch{ie=!1}var A=ie?{passive:!1}:!1,mn=function(e){return e.tagName==="TEXTAREA"},De=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!mn(e)&&r[t]==="visible")},pn=function(e){return De(e,"overflowY")},vn=function(e){return De(e,"overflowX")},je=function(e,t){var r=t.ownerDocument,n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),Ie(e,n)){var o=We(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hn=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},yn=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ie=function(e,t){return e==="v"?pn(t):vn(t)},We=function(e,t){return e==="v"?hn(t):yn(t)},gn=function(e,t){return e==="h"&&t==="rtl"?-1:1},En=function(e,t,r,n,o){var a=gn(e,window.getComputedStyle(t).direction),l=a*n,i=r.target,m=t.contains(i),c=!1,d=l>0,f=0,p=0;do{if(!i)break;var h=We(e,i),N=h[0],s=h[1]-h[2]-a*N;(N||s)&&Ie(e,i)&&(f+=s,p+=N);var v=i.parentNode;i=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!m&&i!==document.body||m&&(t.contains(i)||t===i));return(d&&(o&&Math.abs(f)<1||!o&&l>f)||!d&&(o&&Math.abs(p)<1||!o&&-l>p))&&(c=!0),c},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fe=function(e){return[e.deltaX,e.deltaY]},Be=function(e){return e&&"current"in e?e.current:e},bn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wn=function(e){return` + .block-interactivity-${e} {pointer-events: none;} + .allow-interactivity-${e} {pointer-events: all;} +`},Nn=0,_=[];function Sn(e){var t=u.useRef([]),r=u.useRef([0,0]),n=u.useRef(),o=u.useState(Nn++)[0],a=u.useState(_e)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${o}`);var s=Kt([e.lockRef.current],(e.shards||[]).map(Be),!0).filter(Boolean);return s.forEach(function(v){return v.classList.add(`allow-interactivity-${o}`)}),function(){document.body.classList.remove(`block-interactivity-${o}`),s.forEach(function(v){return v.classList.remove(`allow-interactivity-${o}`)})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(s,v){if("touches"in s&&s.touches.length===2||s.type==="wheel"&&s.ctrlKey)return!l.current.allowPinchZoom;var b=H(s),S=r.current,w="deltaX"in s?s.deltaX:S[0]-b[0],y="deltaY"in s?s.deltaY:S[1]-b[1],x,R=s.target,g=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in s&&g==="h"&&R.type==="range")return!1;var P=je(g,R);if(!P)return!0;if(P?x=g:(x=g==="v"?"h":"v",P=je(g,R)),!P)return!1;if(!n.current&&"changedTouches"in s&&(w||y)&&(n.current=x),!x)return!0;var T=n.current||x;return En(T,v,s,T==="h"?w:y,!0)},[]),m=u.useCallback(function(s){var v=s;if(!(!_.length||_[_.length-1]!==a)){var b="deltaY"in v?Fe(v):H(v),S=t.current.filter(function(y){return y.name===v.type&&(y.target===v.target||v.target===y.shadowParent)&&bn(y.delta,b)})[0];if(S&&S.should){v.cancelable&&v.preventDefault();return}if(!S){var w=(l.current.shards||[]).map(Be).filter(Boolean).filter(function(y){return y.contains(v.target)});(w.length>0?i(v,w[0]):!l.current.noIsolation)&&v.cancelable&&v.preventDefault()}}},[]),c=u.useCallback(function(s,v,b,S){var w={name:s,delta:v,target:b,should:S,shadowParent:Cn(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),d=u.useCallback(function(s){r.current=H(s),n.current=void 0},[]),f=u.useCallback(function(s){c(s.type,Fe(s),s.target,i(s,e.lockRef.current))},[]),p=u.useCallback(function(s){c(s.type,H(s),s.target,i(s,e.lockRef.current))},[]);u.useEffect(function(){return _.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",m,A),document.addEventListener("touchmove",m,A),document.addEventListener("touchstart",d,A),function(){_=_.filter(function(s){return s!==a}),document.removeEventListener("wheel",m,A),document.removeEventListener("touchmove",m,A),document.removeEventListener("touchstart",d,A)}},[]);var h=e.removeScrollBar,N=e.inert;return u.createElement(u.Fragment,null,N?u.createElement(a,{styles:wn(o)}):null,h?u.createElement(fn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var xn=Jt($e,Sn),Ue=u.forwardRef(function(e,t){return u.createElement(Z,C({},e,{ref:t,sideCar:xn}))});Ue.classNames=Z.classNames;var Rn=Ue;export{L as C,He as E,Je as S,qe as T,k as _,Lt as a,it as b,Tt as c,ye as d,wt as f,M as g,yt as h,Se as i,U as l,G as m,Ut as n,Rt as o,gt as p,Bt as r,Ot as s,Rn as t,ge as u,de as v,F as w,le as x,ce as y}; diff --git a/docs/assets/ConnectedDataExplorerComponent-KZlvSITY.js b/docs/assets/ConnectedDataExplorerComponent-KZlvSITY.js new file mode 100644 index 0000000..5fd3a57 --- /dev/null +++ b/docs/assets/ConnectedDataExplorerComponent-KZlvSITY.js @@ -0,0 +1 @@ +import{a as wa,n as q,r as sr,s as Xe,t as le}from"./chunk-LvLJmgfZ.js";import{c as Aa,m as Oa,p as ka,u as Lt}from"./useEvent-DlWF5OMa.js";import{t as Ma}from"./react-BGmjiNul.js";import"./react-dom-C9fstfnp.js";import{t as Wt}from"./compiler-runtime-DeeZ7FnK.js";import{t as Ia}from"./useLifecycle-CmDXEyIC.js";import{a as Ua,i as Fa,n as Da,r as _a,t as ja}from"./type-BdyvjzTI.js";import{t as Pa}from"./isString-CqoLqJdS.js";import{r as Ra,t as $a}from"./tooltip-CrRUCOBw.js";import{a as Ba,d as La}from"./hotkeys-uKX61F1_.js";import{t as Wa}from"./invariant-C6yE60hi.js";import{t as qa}from"./jsx-runtime-DN_bIXfG.js";import{t as lr}from"./button-B8cGZzP5.js";import{t as Ha}from"./cn-C1rgT0yh.js";import{t as Ga}from"./createReducer-DDa-hVe3.js";import{t as cr}from"./createLucideIcon-CW2xpJ57.js";import{t as ur}from"./spec-qp_XZeSS.js";import{n as za}from"./table-BLx7B_us.js";import{a as dr,c as fr,i as Te,n as Ze,o as pr,r as Le,s as et,t as tt}from"./select-D9lTzMzP.js";import{t as Ya}from"./square-function-DxXFdbn8.js";import{t as Qa}from"./badge-DAnNhy3O.js";import{r as Va}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{t as Ka}from"./tooltip-CvjcEpZC.js";import{t as Ja}from"./useDateFormatter-CV0QXb5P.js";import{t as Xa}from"./useNumberFormatter-D8ks3oPN.js";import"./vega-loader.browser-C8wT63Va.js";import{i as Za,n as hr}from"./react-vega-CI0fuCLO.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{n as eo}from"./error-banner-Cq4Yn1WZ.js";import{n as to}from"./useAsyncData-Dj1oqsrZ.js";import{t as no}from"./label-CqyOmxjL.js";var ro=cr("chart-column-big",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]]),io=cr("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]),mr=Wt();function Ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n=(function(){function r(p,f){return f!=null&&p instanceof f}var a;try{a=Map}catch{a=function(){}}var i;try{i=Set}catch{i=function(){}}var s;try{s=Promise}catch{s=function(){}}function c(p,f,g,y,v){typeof f=="object"&&(g=f.depth,y=f.prototype,v=f.includeNonEnumerable,f=f.circular);var b=[],x=[],S=typeof Buffer<"u";f===void 0&&(f=!0),g===void 0&&(g=1/0);function C(T,w){if(T===null)return null;if(w===0)return T;var N,D;if(typeof T!="object")return T;if(r(T,a))N=new a;else if(r(T,i))N=new i;else if(r(T,s))N=new s(function(pe,M){T.then(function(X){pe(C(X,w-1))},function(X){M(C(X,w-1))})});else if(c.__isArray(T))N=[];else if(c.__isRegExp(T))N=new RegExp(T.source,d(T)),T.lastIndex&&(N.lastIndex=T.lastIndex);else if(c.__isDate(T))N=new Date(T.getTime());else{if(S&&Buffer.isBuffer(T))return N=Buffer.allocUnsafe?Buffer.allocUnsafe(T.length):new Buffer(T.length),T.copy(N),N;r(T,Error)?N=Object.create(T):y===void 0?(D=Object.getPrototypeOf(T),N=Object.create(D)):(N=Object.create(y),D=y)}if(f){var k=b.indexOf(T);if(k!=-1)return x[k];b.push(T),x.push(N)}for(var I in r(T,a)&&T.forEach(function(pe,M){var X=C(M,w-1),Je=C(pe,w-1);N.set(X,Je)}),r(T,i)&&T.forEach(function(pe){var M=C(pe,w-1);N.add(M)}),T){var _;D&&(_=Object.getOwnPropertyDescriptor(D,I)),!(_&&_.set==null)&&(N[I]=C(T[I],w-1))}if(Object.getOwnPropertySymbols)for(var xe=Object.getOwnPropertySymbols(T),I=0;I{var n=Array.isArray,r=Object.keys,a=Object.prototype.hasOwnProperty;t.exports=function i(s,c){if(s===c)return!0;if(s&&c&&typeof s=="object"&&typeof c=="object"){var h=n(s),o=n(c),l,u,d;if(h&&o){if(u=s.length,u!=c.length)return!1;for(l=u;l--!==0;)if(!i(s[l],c[l]))return!1;return!0}if(h!=o)return!1;var p=s instanceof Date,f=c instanceof Date;if(p!=f)return!1;if(p&&f)return s.getTime()==c.getTime();var g=s instanceof RegExp,y=c instanceof RegExp;if(g!=y)return!1;if(g&&y)return s.toString()==c.toString();var v=r(s);if(u=v.length,u!==r(c).length)return!1;for(l=u;l--!==0;)if(!a.call(c,v[l]))return!1;for(l=u;l--!==0;)if(d=v[l],!i(s[d],c[d]))return!1;return!0}return s!==s&&c!==c}})),gr=Xe(le(((e,t)=>{t.exports=function(n,r){r||(r={}),typeof r=="function"&&(r={cmp:r});var a=typeof r.cycles=="boolean"?r.cycles:!1,i=r.cmp&&(function(c){return function(h){return function(o,l){return c({key:o,value:h[o]},{key:l,value:h[l]})}}})(r.cmp),s=[];return(function c(h){if(h&&h.toJSON&&typeof h.toJSON=="function"&&(h=h.toJSON()),h!==void 0){if(typeof h=="number")return isFinite(h)?""+h:"null";if(typeof h!="object")return JSON.stringify(h);var o,l;if(Array.isArray(h)){for(l="[",o=0;os?o():s=c+1:h==="["?(c>s&&o(),r=s=c+1):h==="]"&&(r||qt("Access path missing open bracket: "+e),r>0&&o(),r=0,s=c+1)}return r&&qt("Access path missing closing bracket: "+e),n&&qt("Access path missing closing quote: "+e),c>s&&(c++,o()),t}var nt=Array.isArray;function yr(e){return e===Object(e)}function Gt(e){return typeof e=="string"}function zt(e){return nt(e)?"["+e.map(zt)+"]":yr(e)||Gt(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function so(e,t){var n=Ht(e),r="return _["+n.map(zt).join("][")+"];";return Ue(Function("_",r),[e=n.length===1?n[0]:e],t||e)}var We=[];so("id"),Ue(function(e){return e},We,"identity"),Ue(function(){return 0},We,"zero"),Ue(function(){return 1},We,"one"),Ue(function(){return!0},We,"true"),Ue(function(){return!1},We,"false");function rt(e,t,n){var r=[t].concat([].slice.call(n));console[e](...r)}function lo(e,t){var n=e||0;return{level:function(r){return arguments.length?(n=+r,this):n},error:function(){return n>=1&&rt(t||"error","ERROR",arguments),this},warn:function(){return n>=2&&rt(t||"warn","WARN",arguments),this},info:function(){return n>=3&&rt(t||"log","INFO",arguments),this},debug:function(){return n>=4&&rt(t||"log","DEBUG",arguments),this}}}function Yt(e){return typeof e=="boolean"}function Fe(e){for(var t={},n=0,r=e.length;n(0,gr.default)(e)).join(",")})`};const Y=gr.default;function H(e,t){return e.indexOf(t)>-1}function co(e,t){let n=0;for(let[r,a]of e.entries())if(t(a,r,n++))return!0;return!1}const j=Object.keys;function uo(e){let t=e.replace(/\W/g,"_");return(e.match(/^\d+/)?"_":"")+t}function fo(e,t="datum"){return`${t}[${zt(Ht(e).join("."))}]`}function po(e){return`${Ht(e).map(t=>t.replace(".","\\.")).join("\\.")}`}function ho(...e){for(let t of e)if(t!==void 0)return t}function mo(e){return go(e)?e:`__${e}`}function go(e){return e.indexOf("__")===0}const Se="column",vr="facet",br="latitude",xr="longitude",Er="latitude2",Tr="longitude2",ce="color",it="fill",at="stroke",ot="shape",qe="size",st="opacity",lt="fillOpacity",ct="strokeOpacity",ut="strokeWidth",Qt="text",Sr="order",Nr="detail",Cr="tooltip",wr="href";var yo={x:1,y:1,x2:1,y2:1},Ar={longitude:1,longitude2:1,latitude:1,latitude2:1};j(Ar);var dt=Object.assign({},yo,Ar,{color:1,fill:1,stroke:1,opacity:1,fillOpacity:1,strokeOpacity:1,strokeWidth:1,size:1,shape:1,order:1,text:1,detail:1,key:1,tooltip:1,href:1});function ft(e){return e==="color"||e==="fill"||e==="stroke"}var Or={row:1,column:1,facet:1};j(Or);var He=Object.assign({},dt,Or);const vo=j(He);var{order:Pd,detail:Rd}=He,bo=Ie(He,["order","detail"]),{order:$d,detail:Bd,row:Ld,column:Wd,facet:qd}=He,xo=Ie(He,["order","detail","row","column","facet"]);j(bo),j(xo),j(dt);var{x:Hd,y:Gd,x2:zd,y2:Yd,latitude:Qd,longitude:Vd,latitude2:Kd,longitude2:Jd}=dt,Vt=Ie(dt,["x","y","x2","y2","latitude","longitude","latitude2","longitude2"]);const kr=j(Vt);var Mr={x:1,y:1};j(Mr);var{text:Xd,tooltip:Zd,href:ef,detail:tf,key:nf,order:rf}=Vt,Ir=Ie(Vt,["text","tooltip","href","detail","key","order"]);j(Ir);var Ur=Object.assign({},Mr,Ir);j(Ur);function Eo(e){return!!Ur[e]}function To(e,t){return No(e)[t]}var Kt={area:"always",bar:"always",circle:"always",geoshape:"always",line:"always",rule:"always",point:"always",rect:"always",square:"always",trail:"always",text:"always",tick:"always"},{geoshape:af}=Kt,So=Ie(Kt,["geoshape"]);function No(e){switch(e){case ce:case it:case at:case Nr:case"key":case Cr:case wr:case Sr:case st:case lt:case ct:case ut:case vr:case"row":case Se:return Kt;case"x":case"y":case br:case xr:return So;case"x2":case"y2":case Er:case Tr:return{rule:"always",bar:"always",rect:"always",area:"always",circle:"binned",point:"binned",square:"binned",tick:"binned",line:"binned",trail:"binned"};case qe:return{point:"always",tick:"always",rule:"always",circle:"always",square:"always",bar:"always",text:"always",line:"always",trail:"always"};case ot:return{point:"always",geoshape:"always"};case Qt:return{text:"always"}}}function Jt(e){switch(e){case"x":case"y":case qe:case ut:case st:case lt:case ct:case"x2":case"y2":return;case vr:case"row":case Se:case ot:case Qt:case Cr:case wr:return"discrete";case ce:case it:case at:return"flexible";case br:case xr:case Er:case Tr:case Nr:case"key":case Sr:return}throw Error("rangeType not implemented for "+e)}var Fr={orient:1,bandPosition:1,domain:1,domainColor:1,domainDash:1,domainDashOffset:1,domainOpacity:1,domainWidth:1,format:1,formatType:1,grid:1,gridColor:1,gridDash:1,gridDashOffset:1,gridOpacity:1,gridWidth:1,labelAlign:1,labelAngle:1,labelBaseline:1,labelBound:1,labelColor:1,labelFlush:1,labelFlushOffset:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labels:1,labelSeparation:1,maxExtent:1,minExtent:1,offset:1,position:1,tickColor:1,tickCount:1,tickDash:1,tickDashOffset:1,tickExtra:1,tickMinStep:1,tickOffset:1,tickOpacity:1,tickRound:1,ticks:1,tickSize:1,tickWidth:1,title:1,titleAlign:1,titleAnchor:1,titleAngle:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleOpacity:1,titlePadding:1,titleX:1,titleY:1,values:1,zindex:1},Co=Object.assign({},Fr,{encoding:1});j(Object.assign({gridScale:1,scale:1},Fr,{encode:1}));const Dr=j(Co);var _r={clipHeight:1,columnPadding:1,columns:1,cornerRadius:1,direction:1,fillColor:1,format:1,formatType:1,gradientLength:1,gradientOpacity:1,gradientStrokeColor:1,gradientStrokeWidth:1,gradientThickness:1,gridAlign:1,labelAlign:1,labelBaseline:1,labelColor:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labelSeparation:1,legendX:1,legendY:1,offset:1,orient:1,padding:1,rowPadding:1,strokeColor:1,symbolDash:1,symbolDashOffset:1,symbolFillColor:1,symbolOffset:1,symbolOpacity:1,symbolSize:1,symbolStrokeColor:1,symbolStrokeWidth:1,symbolType:1,tickCount:1,tickMinStep:1,title:1,titleAlign:1,titleAnchor:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleOpacity:1,titleOrient:1,titlePadding:1,type:1,values:1,zindex:1},wo=Object.assign({},_r,{opacity:1,shape:1,stroke:1,fill:1,size:1,strokeWidth:1,encode:1});const jr=j(_r);j(wo);var Ao=sr({BAR_WITH_POINT_SCALE_AND_RANGESTEP_NULL:()=>ls,CANNOT_FIX_RANGE_STEP_WITH_FIT:()=>Mo,CANNOT_UNION_CUSTOM_DOMAIN_WITH_FIELD_DOMAIN:()=>ds,CONCAT_CANNOT_SHARE_AXIS:()=>$o,FIT_NON_SINGLE:()=>ko,INVALID_CHANNEL_FOR_AXIS:()=>Os,INVALID_SPEC:()=>Oo,LINE_WITH_VARYING_SIZE:()=>ns,MORE_THAN_ONE_SORT:()=>As,NO_FIELDS_NEEDS_AS:()=>Ho,NO_INIT_SCALE_BINDINGS:()=>jo,REPEAT_CANNOT_SHARE_AXIS:()=>Bo,SCALE_BINDINGS_CONTINUOUS:()=>_o,UNABLE_TO_MERGE_DOMAINS:()=>ws,cannotApplySizeToNonOrientedMark:()=>gs,cannotProjectOnChannelWithoutField:()=>Io,cannotStackNonLinearScale:()=>Ms,cannotStackRangedMark:()=>ks,cannotUseScalePropertyWithNonColor:()=>fs,channelRequiredForBinned:()=>Bs,columnsNotSupportByRowCol:()=>Ro,dayReplacedWithDate:()=>Fs,differentParse:()=>Wo,discreteChannelCannotEncode:()=>ss,domainRequiredForThresholdScale:()=>Ls,domainSortDropped:()=>Cs,droppedDay:()=>Ds,droppingColor:()=>Zo,emptyFieldDef:()=>es,encodingOverridden:()=>Go,errorBand1DNotSupport:()=>$s,errorBarCenterAndExtentAreNotNeeded:()=>_s,errorBarCenterIsNotNeeded:()=>Rs,errorBarCenterIsUsedWithWrongExtent:()=>js,errorBarContinuousAxisHasCustomizedAggregate:()=>Ps,facetChannelDropped:()=>os,facetChannelShouldBeDiscrete:()=>as,incompatibleChannel:()=>rs,independentScaleMeansIndependentGuide:()=>Ns,invalidAggregate:()=>Jo,invalidEncodingChannel:()=>is,invalidFieldType:()=>Qo,invalidFieldTypeForCountAggregate:()=>Ko,invalidTimeUnit:()=>Us,invalidTransformIgnored:()=>qo,latLongDeprecated:()=>ts,lineWithRange:()=>cs,mergeConflictingDomainProperty:()=>Ss,mergeConflictingProperty:()=>Ts,missingFieldType:()=>Xo,nearestNotSupportForContinuous:()=>Uo,noSuchRepeatedValue:()=>Po,nonZeroScaleUsedWithLengthMark:()=>Vo,orientOverridden:()=>us,primitiveChannelDef:()=>Yo,projectionOverridden:()=>zo,rangeStepDropped:()=>ys,scalePropertyNotWorkWithScaleType:()=>xs,scaleTypeNotWorkWithChannel:()=>vs,scaleTypeNotWorkWithFieldDef:()=>bs,scaleTypeNotWorkWithMark:()=>Es,selectionNotFound:()=>Do,selectionNotSupported:()=>Fo,stackNonSummativeAggregate:()=>Is,unaggregateDomainHasNoEffectForRawField:()=>ps,unaggregateDomainWithNonSharedDomainOp:()=>hs,unaggregatedDomainWithLogScale:()=>ms,unrecognizedParse:()=>Lo},1);const Oo="Invalid spec",ko='Autosize "fit" only works for single views and layered views.',Mo='Cannot use a fixed value of "rangeStep" when "autosize" is "fit".';function Io(e){return`Cannot project a selection on encoding channel "${e}", which has no field.`}function Uo(e){return`The "nearest" transform is not supported for ${e} marks.`}function Fo(e){return`Selection not supported for ${e} yet`}function Do(e){return`Cannot find a selection named "${e}"`}const _o="Scale bindings are currently only supported for scales with unbinned, continuous domains.",jo="Selections bound to scales cannot be separately initialized.";function Po(e){return`Unknown repeated value "${e}".`}function Ro(e){return`The "columns" property cannot be used when "${e}" has nested row/column.`}const $o="Axes cannot be shared in concatenated views yet (https://github.com/vega/vega-lite/issues/2415).",Bo="Axes cannot be shared in repeated views yet (https://github.com/vega/vega-lite/issues/2415).";function Lo(e){return`Unrecognized parse "${e}".`}function Wo(e,t,n){return`An ancestor parsed field "${e}" as ${n} but a child wants to parse the field as ${t}.`}function qo(e){return`Ignoring an invalid transform: ${Y(e)}.`}const Ho='If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.';function Go(e){return`Layer's shared ${e.join(",")} channel ${e.length===1?"is":"are"} overriden`}function zo(e){let{parentProjection:t,projection:n}=e;return`Layer's shared projection ${Y(t)} is overridden by a child projection ${Y(n)}.`}function Yo(e,t,n){return`Channel ${e} is a ${t}. Converted to {value: ${Y(n)}}.`}function Qo(e){return`Invalid field type "${e}"`}function Vo(e,t,n){return`A ${n.scaleType?`${n.scaleType} scale`:n.zeroFalse?"scale with zero=false":"scale with custom domain that excludes zero"} is used to encode ${e}'s ${t}. This can be misleading as the ${t==="x"?"width":"height"} of the ${e} can be arbitrary based on the scale domain. You may want to use point mark instead.`}function Ko(e,t){return`Invalid field type "${e}" for aggregate: "${t}", using "quantitative" instead.`}function Jo(e){return`Invalid aggregation operator "${e}"`}function Xo(e,t){return`Missing type for channel "${e}", using "${t}" instead.`}function Zo(e,t){let{fill:n,stroke:r}=t;return`Dropping color ${e} as the plot also has `+(n&&r?"fill and stroke":n?"fill":"stroke")}function es(e,t){return`Dropping ${Y(e)} from channel "${t}" since it does not contain data field or value.`}function ts(e,t,n){return`${e}-encoding with type ${t} is deprecated. Replacing with ${n}-encoding.`}const ns="Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";function rs(e,t,n){return`${e} dropped as it is incompatible with "${t}"${n?` when ${n}`:""}.`}function is(e){return`${e}-encoding is dropped as ${e} is not a valid encoding channel.`}function as(e){return`${e} encoding should be discrete (ordinal / nominal / binned).`}function os(e){return`Facet encoding dropped as ${e.join(" and ")} ${e.length>1?"are":"is"} also specified.`}function ss(e,t){return`Using discrete channel "${e}" to encode "${t}" field can be misleading as it does not encode ${t==="ordinal"?"order":"magnitude"}.`}const ls="Bar mark should not be used with point scale when rangeStep is null. Please use band scale instead.";function cs(e,t){return`Line mark is for continuous lines and thus cannot be used with ${e&&t?"x2 and y2":e?"x2":"y2"}. We will use the rule mark (line segments) instead.`}function us(e,t){return`Specified orient "${e}" overridden with "${t}"`}const ds="custom domain scale cannot be unioned with default field-based domain";function fs(e){return`Cannot use the scale property "${e}" with non-color channel.`}function ps(e){return`Using unaggregated domain with raw field has no effect (${Y(e)}).`}function hs(e){return`Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`}function ms(e){return`Unaggregated domain is currently unsupported for log scale (${Y(e)}).`}function gs(e){return`Cannot apply size to non-oriented mark "${e}".`}function ys(e){return`rangeStep for "${e}" is dropped as top-level ${e==="x"?"width":"height"} is provided.`}function vs(e,t,n){return`Channel "${e}" does not work with "${t}" scale. We are using "${n}" scale instead.`}function bs(e,t){return`FieldDef does not work with "${e}" scale. We are using "${t}" scale instead.`}function xs(e,t,n){return`${n}-scale's "${t}" is dropped as it does not work with ${e} scale.`}function Es(e,t){return`Scale type "${t}" does not work with mark "${e}".`}function Ts(e,t,n,r){return`Conflicting ${t.toString()} property "${e.toString()}" (${Y(n)} and ${Y(r)}). Using ${Y(n)}.`}function Ss(e,t,n,r){return`Conflicting ${t.toString()} property "${e.toString()}" (${Y(n)} and ${Y(r)}). Using the union of the two domains.`}function Ns(e){return`Setting the scale to be independent for "${e}" means we also have to set the guide (axis or legend) to be independent.`}function Cs(e){return`Dropping sort property ${Y(e)} as unioned domains only support boolean or op 'count'.`}const ws="Unable to merge domains",As="Domains that should be unioned has conflicting sort properties. Sort will be set to true.",Os="Invalid channel for axis.";function ks(e){return`Cannot stack "${e}" if there is already "${e}2"`}function Ms(e){return`Cannot stack non-linear scale (${e})`}function Is(e){return`Stacking is applied even though the aggregate function is non-summative ("${e}")`}function Us(e,t){return`Invalid ${e}: ${Y(t)}`}function Fs(e){return`Time unit "${e}" is not supported. We are replacing it with ${e.replace("day","date")}.`}function Ds(e){return`Dropping day from datetime ${Y(e)} as day cannot be combined with other units.`}function _s(e,t){return`${t?"extent ":""}${t&&e?"and ":""}${e?"center ":""}${t&&e?"are ":"is "}not needed when data are aggregated.`}function js(e,t,n){return`${e} is not usually used with ${t} for ${n}.`}function Ps(e,t){return`Continuous axis should not have customized aggregation function ${e}; ${t} already agregates the axis.`}function Rs(e,t){return`Center is not needed to be specified in ${t} when extent is ${e}.`}function $s(e){return`1D error band does not support ${e}`}function Bs(e){return`Channel ${e} is required for "binned" bin`}function Ls(e){return`Domain for ${e} is required for threshold scale`}const Z=Ao;var Pr=lo(2);function me(...e){Pr.warn.apply(Pr,arguments)}const Ws={quantitative:1,ordinal:1,temporal:1,nominal:1,geojson:1},ee="quantitative",Ne="ordinal",ge="temporal",Ce="nominal";function qs(e){if(e)switch(e=e.toLowerCase(),e){case"q":case ee:return"quantitative";case"t":case ge:return"temporal";case"o":case Ne:return"ordinal";case"n":case Ce:return"nominal";case"geojson":return"geojson"}}var F;(function(e){e.LINEAR="linear",e.LOG="log",e.POW="pow",e.SQRT="sqrt",e.SYMLOG="symlog",e.TIME="time",e.UTC="utc",e.QUANTILE="quantile",e.QUANTIZE="quantize",e.THRESHOLD="threshold",e.BIN_ORDINAL="bin-ordinal",e.ORDINAL="ordinal",e.POINT="point",e.BAND="band"})(F||(F={}));const Hs=j({linear:"numeric",log:"numeric",pow:"numeric",sqrt:"numeric",symlog:"numeric",time:"time",utc:"time",ordinal:"ordinal","bin-ordinal":"bin-ordinal",point:"ordinal-position",band:"ordinal-position",quantile:"discretizing",quantize:"discretizing",threshold:"discretizing"}),Rr=["linear","log","pow","sqrt","symlog","time","utc"];var Gs=Fe(Rr),zs=Fe(["quantile","quantize","threshold"]),Ys=Fe(Rr.concat(["quantile","quantize","threshold"])),Qs=Fe(["ordinal","bin-ordinal","point","band"]);function we(e){return e in Qs}function Vs(e){return e in Ys}function De(e){return e in Gs}function Ks(e){return e in zs}var Xt={type:1,domain:1,align:1,range:1,rangeStep:1,scheme:1,bins:1,reverse:1,round:1,clamp:1,nice:1,base:1,exponent:1,constant:1,interpolate:1,zero:1,padding:1,paddingInner:1,paddingOuter:1};const $r=j(Xt);var{type:of,domain:sf,range:lf,rangeStep:cf,scheme:uf}=Xt;j(Ie(Xt,["type","domain","range","rangeStep","scheme"])),Xs();function Zt(e,t){switch(t){case"type":case"domain":case"reverse":case"range":return!0;case"scheme":case"interpolate":return!H(["point","band","identity"],e);case"bins":return!H(["point","band","identity","ordinal"],e);case"round":return De(e)||e==="band"||e==="point";case"padding":return De(e)||H(["point","band"],e);case"paddingOuter":case"rangeStep":case"align":return H(["point","band"],e);case"paddingInner":return e==="band";case"clamp":return De(e);case"nice":return De(e)||e==="quantize"||e==="threshold";case"exponent":return e==="pow";case"base":return e==="log";case"constant":return e==="symlog";case"zero":return Vs(e)&&!H(["log","time","utc","threshold","quantile"],e)}}function Js(e,t){switch(t){case"interpolate":case"scheme":return ft(e)?void 0:Z.cannotUseScalePropertyWithNonColor(e);case"align":case"type":case"bins":case"domain":case"range":case"base":case"exponent":case"constant":case"nice":case"padding":case"paddingInner":case"paddingOuter":case"rangeStep":case"reverse":case"round":case"clamp":case"zero":return}}function Br(e,t){return H(["ordinal","nominal"],t)?e===void 0||we(e):t==="temporal"?H([F.TIME,F.UTC,void 0],e):t==="quantitative"?H([F.LOG,F.POW,F.SQRT,F.SYMLOG,F.QUANTILE,F.QUANTIZE,F.THRESHOLD,F.LINEAR,void 0],e):!0}function Lr(e,t){switch(e){case"x":case"y":return De(t)||H(["band","point"],t);case qe:case ut:case st:case lt:case ct:return De(t)||Ks(t)||H(["band","point"],t);case ce:case it:case at:return t!=="band";case ot:return t==="ordinal"}return!1}function Xs(){let e={};for(let t of vo)for(let n of j(Ws))for(let r of Hs){let a=Zs(t,n);Lr(t,r)&&Br(r,n)&&(e[a]=e[a]||[],e[a].push(r))}return e}function Zs(e,t){return e+"_"+t}var te=le(((e,t)=>{var n=t.exports,r="__name__";n.namedfunc=function(o,l){return l[r]=o,l},n.name=function(o){return o==null?null:o[r]},n.identity=function(o){return o},n.true=n.namedfunc("true",function(){return!0}),n.false=n.namedfunc("false",function(){return!1}),n.duplicate=function(o){return JSON.parse(JSON.stringify(o))},n.equal=function(o,l){return JSON.stringify(o)===JSON.stringify(l)},n.extend=function(o){for(var l,u,d=1,p=arguments.length;d1?function(u,d){for(var p=0;pl||l==null)&&o!=null?1:(l=l instanceof Date?+l:l,(o=o instanceof Date?+o:o)!==o&&l===l?-1:l!==l&&o===o?1:0)},n.numcmp=function(o,l){return o-l},n.stablesort=function(o,l,u){var d=o.reduce(function(p,f,g){return p[u(f)]=g,p},{});return o.sort(function(p,f){var g=l(p),y=l(f);return gy?1:d[u(p)]-d[u(f)]}),o},n.permute=function(o){for(var l=o.length,u,d;l;)d=Math.floor(Math.random()*l--),u=o[l],o[l]=o[d],o[d]=u},n.pad=function(o,l,u,d){d||(d=" ");var p=l-o.length;if(p<=0)return o;switch(u){case"left":return s(p,d)+o;case"middle":case"center":return s(Math.floor(p/2),d)+o+s(Math.ceil(p/2),d);default:return o+s(p,d)}};function s(o,l){var u="",d;for(d=0;d({parent:"bin",child:e}));const nn=al.map(e=>({parent:"sort",child:e})),pt=$r.map(e=>({parent:"scale",child:e}));var Gr=Dr.map(e=>({parent:"axis",child:e})),zr=jr.map(e=>({parent:"legend",child:e}));const ht=[].concat(Hr,nn,pt,Gr,zr),Yr=["width","height","background","padding","title"];var Qr=".";function mt(e){return oe(e)?e.parent+Qr+e.child:e}function ol(e){let t=e.split(Qr);if(t.length===1)return e;if(t.length===2)return{parent:t[0],child:t[1]};throw"Invalid property key with "+t.length+" dots: "+e}var sl=ht.reduce((e,t)=>(e[t.parent]=e[t.parent]||[],e[t.parent][t.child]=t,e),{});function de(e,t){return(sl[e]||{})[t]}function Vr(e){return nl(e)||oe(e)}const ll=[].concat(en,ht),Kr=["type","field","bin","timeUnit","aggregate","autoCount","channel","mark","stack","scale","sort","axis","legend"].concat(Hr,pt,Gr,zr,nn);var m;(function(e){e.MARK="mark",e.TRANSFORM="transform",e.STACK="stack",e.FORMAT="format",e.CHANNEL="channel",e.AGGREGATE="aggregate",e.AUTOCOUNT="autoCount",e.BIN="bin",e.HAS_FN="hasFn",e.TIMEUNIT="timeUnit",e.FIELD="field",e.TYPE="type",e.SORT="sort",e.SCALE="scale",e.AXIS="axis",e.LEGEND="legend",e.WIDTH="width",e.HEIGHT="height",e.BACKGROUND="background",e.PADDING="padding",e.TITLE="title"})(m||(m={}));const Ge="area",gt="line",ze="point",rn="rect",an="rule",yt="text",vt="tick",on="circle",sn="square";var cl={area:1,bar:1,line:1,point:1,text:1,tick:1,trail:1,rect:1,geoshape:1,rule:1,circle:1,square:1};function ul(e){return H(["line","area","trail"],e)}const dl=j(cl);function fl(e){return e.type}Fe(dl),["january","february","march","april","may","june","july","august","september","october","november","december"].map(e=>e.substr(0,3)),["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(e=>e.substr(0,3));var B;(function(e){e.YEAR="year",e.MONTH="month",e.DAY="day",e.DATE="date",e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds",e.MILLISECONDS="milliseconds",e.YEARMONTH="yearmonth",e.YEARMONTHDATE="yearmonthdate",e.YEARMONTHDATEHOURS="yearmonthdatehours",e.YEARMONTHDATEHOURSMINUTES="yearmonthdatehoursminutes",e.YEARMONTHDATEHOURSMINUTESSECONDS="yearmonthdatehoursminutesseconds",e.MONTHDATE="monthdate",e.MONTHDATEHOURS="monthdatehours",e.HOURSMINUTES="hoursminutes",e.HOURSMINUTESSECONDS="hoursminutesseconds",e.MINUTESSECONDS="minutesseconds",e.SECONDSMILLISECONDS="secondsmilliseconds",e.QUARTER="quarter",e.YEARQUARTER="yearquarter",e.QUARTERMONTH="quartermonth",e.YEARQUARTERMONTH="yearquartermonth",e.UTCYEAR="utcyear",e.UTCMONTH="utcmonth",e.UTCDAY="utcday",e.UTCDATE="utcdate",e.UTCHOURS="utchours",e.UTCMINUTES="utcminutes",e.UTCSECONDS="utcseconds",e.UTCMILLISECONDS="utcmilliseconds",e.UTCYEARMONTH="utcyearmonth",e.UTCYEARMONTHDATE="utcyearmonthdate",e.UTCYEARMONTHDATEHOURS="utcyearmonthdatehours",e.UTCYEARMONTHDATEHOURSMINUTES="utcyearmonthdatehoursminutes",e.UTCYEARMONTHDATEHOURSMINUTESSECONDS="utcyearmonthdatehoursminutesseconds",e.UTCMONTHDATE="utcmonthdate",e.UTCMONTHDATEHOURS="utcmonthdatehours",e.UTCHOURSMINUTES="utchoursminutes",e.UTCHOURSMINUTESSECONDS="utchoursminutesseconds",e.UTCMINUTESSECONDS="utcminutesseconds",e.UTCSECONDSMILLISECONDS="utcsecondsmilliseconds",e.UTCQUARTER="utcquarter",e.UTCYEARQUARTER="utcyearquarter",e.UTCQUARTERMONTH="utcquartermonth",e.UTCYEARQUARTERMONTH="utcyearquartermonth"})(B||(B={}));var ln={year:1,quarter:1,month:1,day:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1};const Jr=j(ln);function pl(e){return!!ln[e]}var cn={utcyear:1,utcquarter:1,utcmonth:1,utcday:1,utcdate:1,utchours:1,utcminutes:1,utcseconds:1,utcmilliseconds:1};function hl(e){return!!cn[e]}var ml={yearquarter:1,yearquartermonth:1,yearmonth:1,yearmonthdate:1,yearmonthdatehours:1,yearmonthdatehoursminutes:1,yearmonthdatehoursminutesseconds:1,quartermonth:1,monthdate:1,monthdatehours:1,hoursminutes:1,hoursminutesseconds:1,minutesseconds:1,secondsmilliseconds:1},Xr={utcyearquarter:1,utcyearquartermonth:1,utcyearmonth:1,utcyearmonthdate:1,utcyearmonthdatehours:1,utcyearmonthdatehoursminutes:1,utcyearmonthdatehoursminutesseconds:1,utcquartermonth:1,utcmonthdate:1,utcmonthdatehours:1,utchoursminutes:1,utchoursminutesseconds:1,utcminutesseconds:1,utcsecondsmilliseconds:1},gl=Object.assign({},cn,Xr);function yl(e){return!!gl[e]}var Zr=Object.assign({},ln,cn,ml,Xr);j(Zr);function vl(e){return!!Zr[e]}var bl={year:"setFullYear",month:"setMonth",date:"setDate",hours:"setHours",minutes:"setMinutes",seconds:"setSeconds",milliseconds:"setMilliseconds",quarter:null,day:null};function xl(e,t){let n=yl(e),r=n?new Date(Date.UTC(1972,0,1,0,0,0,0)):new Date(1972,0,1,0,0,0,0);for(let a of Jr)if(ti(e,a))switch(a){case B.DAY:throw Error("Cannot convert to TimeUnits containing 'day'");case B.QUARTER:{let{getDateMethod:i,setDateMethod:s}=ei("month",n);r[s](Math.floor(t[i]()/3)*3);break}default:{let{getDateMethod:i,setDateMethod:s}=ei(a,n);r[s](t[i]())}}return r}function ei(e,t){let n=bl[e];return{setDateMethod:t?"setUTC"+n.substr(3):n,getDateMethod:"get"+(t?"UTC":"")+n.substr(3)}}function ti(e,t){let n=e.indexOf(t);return n>-1&&(t!==B.SECONDS||n===0||e.charAt(n-1)!=="i")}function A(e){return bt(e)||El(e)}function bt(e){return e==="?"}function El(e){return e!==void 0&&e!=null&&(!!e.enum||!!e.name)&&!(0,Wr.isArray)(e)}function un(e,t,n){return(0,U.extend)({},{name:t,enum:n},e==="?"?{}:e)}function dn(e){let t={},n={};for(let r of e){let a=[0];for(let s=0;sr.charAt(s)).join("").toLowerCase();if(!n[i]){t[r]=i,n[i]=!0;continue}if(a[a.length-1]!==r.length-1&&(i=a.concat([r.length-1]).map(s=>r.charAt(s)).join("").toLowerCase(),!n[i])){t[r]=i,n[i]=!0;continue}for(let s=1;!t[r];s++){let c=i+"_"+s;if(!n[c]){t[r]=c,n[c]=!0;break}}}return t}const xt={mark:"m",channel:"c",aggregate:"a",autoCount:"#",hasFn:"h",bin:"b",sort:"so",stack:"st",scale:"s",format:"f",axis:"ax",legend:"l",value:"v",timeUnit:"tu",field:"f",type:"t",binProps:{maxbins:"mb",min:"mi",max:"ma",base:"b",step:"s",steps:"ss",minstep:"ms",divide:"d"},sortProps:{field:"f",op:"o",order:"or"},scaleProps:dn($r),axisProps:dn(Dr),legendProps:dn(jr)};function Ye(e){if(oe(e))return xt[e.parent]+"-"+xt[e.parent+"Props"][e.child];if(xt[e])return xt[e];throw Error("Default name undefined for "+e)}var Q=[!1,!0],Tl={maxbins:[5,10,20],extent:[void 0],base:[10],step:[void 0],steps:[void 0],minstep:[void 0],divide:[[5,2]],binned:[!1],anchor:[void 0],nice:[!0]},Sl={field:[void 0],op:["min","mean"],order:["ascending","descending"]},Nl={type:[void 0,F.LOG],domain:[void 0],base:[void 0],exponent:[1,2],constant:[void 0],bins:[void 0],clamp:Q,nice:Q,reverse:Q,round:Q,zero:Q,padding:[void 0],paddingInner:[void 0],paddingOuter:[void 0],interpolate:[void 0],range:[void 0],rangeStep:[17,21],scheme:[void 0]},Cl={zindex:[1,0],offset:[void 0],orient:[void 0],values:[void 0],bandPosition:[void 0],encoding:[void 0],domain:Q,domainColor:[void 0],domainDash:[void 0],domainDashOffset:[void 0],domainOpacity:[void 0],domainWidth:[void 0],formatType:[void 0],grid:Q,gridColor:[void 0],gridDash:[void 0],gridDashOffset:[void 0],gridOpacity:[void 0],gridWidth:[void 0],format:[void 0],labels:Q,labelAlign:[void 0],labelAngle:[void 0],labelBaseline:[void 0],labelColor:[void 0],labelFlushOffset:[void 0],labelFont:[void 0],labelFontSize:[void 0],labelFontStyle:[void 0],labelFontWeight:[void 0],labelLimit:[void 0],labelOpacity:[void 0],labelSeparation:[void 0],labelOverlap:[void 0],labelPadding:[void 0],labelBound:[void 0],labelFlush:[void 0],maxExtent:[void 0],minExtent:[void 0],position:[void 0],ticks:Q,tickColor:[void 0],tickCount:[void 0],tickDash:[void 0],tickExtra:[void 0],tickDashOffset:[void 0],tickMinStep:[void 0],tickOffset:[void 0],tickOpacity:[void 0],tickRound:[void 0],tickSize:[void 0],tickWidth:[void 0],title:[void 0],titleAlign:[void 0],titleAnchor:[void 0],titleAngle:[void 0],titleBaseline:[void 0],titleColor:[void 0],titleFont:[void 0],titleFontSize:[void 0],titleFontStyle:[void 0],titleFontWeight:[void 0],titleLimit:[void 0],titleOpacity:[void 0],titlePadding:[void 0],titleX:[void 0],titleY:[void 0]};const wl={mark:[ze,"bar",gt,Ge,rn,vt,yt],channel:["x","y","row",Se,qe,ce],aggregate:[void 0,"mean"],autoCount:Q,bin:Q,hasFn:Q,timeUnit:[void 0,B.YEAR,B.MONTH,B.MINUTES,B.SECONDS],field:[void 0],type:[Ce,Ne,ee,ge],sort:["ascending","descending"],stack:["zero","normalize","center",null],value:[void 0],format:[void 0],title:[void 0],scale:[!0],axis:Q,legend:Q,binProps:Tl,sortProps:Sl,scaleProps:Nl,axisProps:Cl,legendProps:{orient:["left","right"],format:[void 0],type:[void 0],values:[void 0],zindex:[void 0],clipHeight:[void 0],columnPadding:[void 0],columns:[void 0],cornerRadius:[void 0],direction:[void 0],encoding:[void 0],fillColor:[void 0],formatType:[void 0],gridAlign:[void 0],offset:[void 0],padding:[void 0],rowPadding:[void 0],strokeColor:[void 0],labelAlign:[void 0],labelBaseline:[void 0],labelColor:[void 0],labelFont:[void 0],labelFontSize:[void 0],labelFontStyle:[void 0],labelFontWeight:[void 0],labelLimit:[void 0],labelOffset:[void 0],labelOpacity:[void 0],labelOverlap:[void 0],labelPadding:[void 0],labelSeparation:[void 0],legendX:[void 0],legendY:[void 0],gradientLength:[void 0],gradientOpacity:[void 0],gradientStrokeColor:[void 0],gradientStrokeWidth:[void 0],gradientThickness:[void 0],symbolDash:[void 0],symbolDashOffset:[void 0],symbolFillColor:[void 0],symbolOffset:[void 0],symbolOpacity:[void 0],symbolSize:[void 0],symbolStrokeColor:[void 0],symbolStrokeWidth:[void 0],symbolType:[void 0],tickCount:[void 0],tickMinStep:[void 0],title:[void 0],titleAnchor:[void 0],titleAlign:[void 0],titleBaseline:[void 0],titleColor:[void 0],titleFont:[void 0],titleFontSize:[void 0],titleFontStyle:[void 0],titleFontWeight:[void 0],titleLimit:[void 0],titleOpacity:[void 0],titleOrient:[void 0],titlePadding:[void 0]}};function fn(e,t,n){if(e==="field"||oe(e)&&e.parent==="sort"&&e.child==="field")return t.fieldNames();let r;if(r=oe(e)?n.enum[e.parent+"Props"][e.child]:n.enum[e],r!==void 0)return r;throw Error("No default enumValues for "+JSON.stringify(e))}const Qe={verbose:!1,defaultSpecConfig:{line:{point:!0},scale:{useUnaggregatedDomain:!0}},propertyPrecedence:Kr.map(mt),enum:wl,numberNominalProportion:.05,numberNominalLimit:40,constraintManuallySpecifiedValue:!1,autoAddCount:!1,hasAppropriateGraphicTypeForMark:!0,omitAggregate:!1,omitAggregatePlotWithDimensionOnlyOnFacet:!0,omitAggregatePlotWithoutDimension:!1,omitBarLineAreaWithOcclusion:!0,omitBarTickWithSize:!0,omitMultipleNonPositionalChannels:!0,omitRaw:!1,omitRawContinuousFieldForAggregatePlot:!0,omitRepeatedField:!0,omitNonPositionalOrFacetOverPositionalChannels:!0,omitTableWithOcclusionIfAutoAddCount:!0,omitVerticalDotPlot:!1,omitInvalidStackSpec:!0,omitNonSumStack:!0,preferredBinAxis:"x",preferredTemporalAxis:"x",preferredOrdinalAxis:"y",preferredNominalAxis:"y",preferredFacet:"row",minCardinalityForBin:15,maxCardinalityForCategoricalColor:20,maxCardinalityForFacet:20,maxCardinalityForShape:6,timeUnitShouldHaveVariation:!0,typeMatchesSchemaType:!0,stylize:!0,smallRangeStepForHighCardinalityOrFacet:{maxCardinality:10,rangeStep:12},nominalColorScaleForHighCardinality:{maxCardinality:10,palette:"category20"},xAxisOnTopForHighYCardinalityWithoutColumn:{maxCardinality:30},maxGoodCardinalityForFacet:5,maxGoodCardinalityForColor:7,minPercentUniqueForKey:.8,minCardinalityForKey:50};var ni={argmax:1,argmin:1,average:1,count:1,distinct:1,max:1,mean:1,median:1,min:1,missing:1,q1:1,q3:1,ci0:1,ci1:1,stderr:1,stdev:1,stdevp:1,sum:1,valid:1,values:1,variance:1,variancep:1};function Al(e){return!!e&&!!e.argmin}function Ol(e){return!!e&&!!e.argmax}j(ni);function kl(e){return Gt(e)&&!!ni[e]}const ri=["count","sum","distinct","valid","missing"];Fe(["mean","average","median","q1","q3","min","max"]);function Ml(e){return Yt(e)&&(e=jl(e,void 0)),"bin"+j(e).map(t=>uo(`_${t}_${e[t]}`)).join("")}function ii(e){return e===!0||Il(e)&&!e.binned}function Il(e){return yr(e)}function pn(e){switch(e){case"row":case Se:case qe:case ce:case it:case at:case ut:case st:case lt:case ct:case ot:return 6;default:return 10}}function ai(e){return!!e&&!!e.condition&&!nt(e.condition)&&ye(e.condition)}function ye(e){return!!e&&(!!e.field||e.aggregate==="count")}function hn(e){return ye(e)&&Gt(e.field)}function Ul(e){return!!e.op}function mn(e,t={}){let n=e.field,r=t.prefix,a=t.suffix,i="";if(Dl(e))n=mo("count");else{let s;if(!t.nofn)if(Ul(e))s=e.op;else{let{bin:c,aggregate:h,timeUnit:o}=e;ii(c)?(s=Ml(c),a=(t.binSuffix||"")+(t.suffix||"")):h?Ol(h)?(i=`.${n}`,n=`argmax_${h.argmax}`):Al(h)?(i=`.${n}`,n=`argmin_${h.argmin}`):s=String(h):o&&(s=String(o))}s&&(n=n?`${s}_${n}`:s)}return a&&(n=`${n}_${a}`),r&&(n=`${r}_${n}`),t.forAs?n:t.expr?fo(n,t.expr)+i:po(n)+i}function oi(e){switch(e.type){case"nominal":case"ordinal":case"geojson":return!0;case"quantitative":return!!e.bin;case"temporal":return!1}throw Error(Z.invalidFieldType(e.type))}function Fl(e){return!oi(e)}function Dl(e){return e.aggregate==="count"}function _l(e){if(ye(e))return e;if(ai(e))return e.condition}function jl(e,t){return Yt(e)?{maxbins:pn(t)}:e==="binned"?{binned:!0}:!e.maxbins&&!e.step?Object.assign({},e,{maxbins:pn(t)}):e}var _e={compatible:!0};function Pl(e,t){let n=e.type;if(n==="geojson"&&t!=="shape")return{compatible:!1,warning:`Channel ${t} should not be used with a geojson data.`};switch(t){case"row":case"column":case"facet":return Fl(e)?{compatible:!1,warning:Z.facetChannelShouldBeDiscrete(t)}:_e;case"x":case"y":case"color":case"fill":case"stroke":case"text":case"detail":case"key":case"tooltip":case"href":return _e;case"longitude":case"longitude2":case"latitude":case"latitude2":return n==="quantitative"?_e:{compatible:!1,warning:`Channel ${t} should be used with a quantitative field only, not ${e.type} field.`};case"opacity":case"fillOpacity":case"strokeOpacity":case"strokeWidth":case"size":case"x2":case"y2":return n==="nominal"&&!e.sort?{compatible:!1,warning:`Channel ${t} should not be used with an unsorted discrete field.`}:_e;case"shape":return H(["ordinal","nominal","geojson"],e.type)?_e:{compatible:!1,warning:"Shape channel should be used with only either discrete or geojson data."};case"order":return e.type==="nominal"&&!("sort"in e)?{compatible:!1,warning:"Channel order is inappropriate for nominal field, which has no inherent order."}:_e}throw Error("channelCompatability not implemented for channel "+t)}function Rl(e,t,n,r){let a=$l(t,n,r),{type:i}=e;return Eo(t)?i===void 0?a:Lr(t,i)?Br(i,n.type)?i:(me(Z.scaleTypeNotWorkWithFieldDef(i,a)),a):(me(Z.scaleTypeNotWorkWithChannel(t,i,a)),a):null}function $l(e,t,n){switch(t.type){case"nominal":case"ordinal":return ft(e)||Jt(e)==="discrete"?(e==="shape"&&t.type==="ordinal"&&me(Z.discreteChannelCannotEncode(e,"ordinal")),"ordinal"):H(["x","y"],e)&&(H(["rect","bar","rule"],n)||n==="bar")?"band":"point";case"temporal":return ft(e)?"time":Jt(e)==="discrete"?(me(Z.discreteChannelCannotEncode(e,"temporal")),"ordinal"):"time";case"quantitative":return ft(e)?ii(t.bin)?"bin-ordinal":"linear":Jt(e)==="discrete"?(me(Z.discreteChannelCannotEncode(e,"quantitative")),"ordinal"):"linear";case"geojson":return}throw Error(Z.invalidFieldType(t.type))}var se;(function(e){e.QUANTITATIVE=ee,e.ORDINAL=Ne,e.TEMPORAL=ge,e.NOMINAL=Ce,e.KEY="key"})(se||(se={}));function si(e){return e==="ordinal"||e==="nominal"||e===se.KEY}var ne=class ir{constructor(t=null){this.index=t?Object.assign({},t):{}}has(t){return mt(t)in this.index}get(t){return this.index[mt(t)]}set(t,n){return this.index[mt(t)]=n,this}setByKey(t,n){this.index[t]=n}map(t){let n=new ir;for(let r in this.index)n.index[r]=t(this.index[r]);return n}size(){return(0,U.keys)(this.index).length}duplicate(){return new ir(this.index)}};function li(e,t){let n=e&&e[t];return n?nt(n)?co(n,r=>!!r.field):ye(n)||ai(n):!1}var Bl={zero:1,center:1,normalize:1};function Ll(e){return!!Bl[e]}const Wl=["bar",Ge,an,ze,on,sn,gt,yt,vt],ql=["bar",Ge];function Hl(e){let t=e.x,n=e.y;if(ye(t)&&ye(n))if(t.type==="quantitative"&&n.type==="quantitative"){if(t.stack)return"x";if(n.stack)return"y";if(!!t.aggregate!=!!n.aggregate)return t.aggregate?"x":"y"}else{if(t.type==="quantitative")return"x";if(n.type==="quantitative")return"y"}else{if(ye(t)&&t.type==="quantitative")return"x";if(ye(n)&&n.type==="quantitative")return"y"}}function Gl(e,t,n,r={}){let a=fl(e)?e.type:e;if(!H(Wl,a))return null;let i=Hl(t);if(!i)return null;let s=t[i],c=hn(s)?mn(s,{}):void 0,h=i==="x"?"y":"x",o=t[h],l=hn(o)?mn(o,{}):void 0,u=kr.reduce((p,f)=>{if(f!=="tooltip"&&li(t,f)){let g=t[f];(nt(g)?g:[g]).forEach(y=>{let v=_l(y);if(v.aggregate)return;let b=hn(v)?mn(v,{}):void 0;(!b||b!==l&&b!==c)&&p.push({channel:f,fieldDef:v})})}return p},[]),d;if(s.stack===void 0?u.length>0&&(d=H(ql,a)?ho(n,"zero"):n):d=Yt(s.stack)?s.stack?"zero":null:s.stack,!d||!Ll(d))return null;if(s.scale&&s.scale.type&&s.scale.type!==F.LINEAR){if(r.disallowNonLinearStack)return null;me(Z.cannotStackNonLinearScale(s.scale.type))}return li(t,i==="x"?"x2":"y2")?(s.stack!==void 0&&me(Z.cannotStackRangedMark(i)),null):(s.aggregate&&!H(ri,s.aggregate)&&me(Z.stackNonSummativeAggregate(s.aggregate)),{groupbyChannel:o?h:void 0,fieldChannel:i,impute:ul(a),stackBy:u,offset:d})}var zl=te();function Yl(e){return ue(e.encodings,t=>O(t)&&!A(t.aggregate)&&!!t.aggregate||Tt(t))}function ci(e){if(!Kl(e))return null;let t=mi(e.encodings,{schema:null,wildcardMode:"null"}),n=e.mark;return Gl(n,t,void 0,{disallowNonLinearStack:!0})}function Ql(e){for(let t of e.encodings)if(t[m.STACK]!==void 0&&!A(t[m.STACK]))return t[m.STACK]}function Vl(e){for(let t of e.encodings)if(t[m.STACK]!==void 0&&!A(t.channel))return t.channel;return null}function Kl(e){if(A(e.mark))return!1;let t=(0,zl.toMap)(el(ll,[m.STACK,m.CHANNEL,m.MARK,m.FIELD,m.AGGREGATE,m.AUTOCOUNT,m.SCALE,de("scale","type"),m.TYPE])),n=e.encodings.filter(r=>!ie(r));for(let r of n)if(ui(r,{exclude:t}))return!1;return!0}function ui(e,t={}){if(!(0,U.isObject)(e))return!1;for(let n in e)if(e.hasOwnProperty(n)&&(A(e[n])&&(!t.exclude||!t.exclude[n])||ui(e[n],t)))return!0;return!1}var di=te();function Jl(e){return e.map(t=>Xl(t))}function Xl(e){return t=>e[t]===void 0?t:e[t]}function Ae(e,t){return A(e)?!bt(e)&&e.enum?"?"+JSON.stringify(e.enum):"?":t?t(e):e}function Et(e,t){return t?t(e):e}const gn=new ne,yn=[].concat(Kr,nn,[m.TRANSFORM,m.STACK],Yr).reduce((e,t)=>e.set(t,!0),new ne),vn={axis:{x:!0,y:!0,row:!0,column:!0},legend:{color:!0,opacity:!0,size:!0,shape:!0},scale:{x:!0,y:!0,color:!0,opacity:!0,row:!0,column:!0,size:!0,shape:!0},sort:{x:!0,y:!0,path:!0,order:!0},stack:{x:!0,y:!0}};function je(e,t=yn,n=gn){let r=[];t.get(m.MARK)&&r.push(Ae(e.mark,n.get(m.MARK))),e.transform&&e.transform.length>0&&r.push("transform:"+JSON.stringify(e.transform));let a;if(t.get(m.STACK)&&(a=ci(e)),e.encodings){let i=e.encodings.reduce((s,c)=>{if(!ie(c)){let h;h=a&&c.channel===a.fieldChannel?fi(Object.assign({},c,{stack:a.offset}),t,n):fi(c,t,n),h&&s.push(h)}return s},[]).sort().join("|");i&&r.push(i)}for(let i of Yr){let s=i.toString();if(t.get(i)&&e[s]){let c=e[s];r.push(`${s}=${JSON.stringify(c)}`)}}return r.join("|")}function fi(e,t=yn,n=gn){let r=[];if(t.get(m.CHANNEL)&&r.push(Ae(e.channel,n.get(m.CHANNEL))),O(e)){let a=pi(e,t,n);a&&r.push(a)}else re(e)?r.push(e.value):P(e)&&r.push("autocount()");return r.join(":")}function pi(e,t=yn,n=gn){if(t.get(m.AGGREGATE)&&ie(e))return"-";let r=Zl(e,t,n),a=ec(e,t,n),i;if(O(e)){if(i=t.get("field")?Ae(e.field,n.get("field")):"...",t.get(m.TYPE))if(A(e.type))i+=","+Ae(e.type,n.get(m.TYPE));else{let s=((e.type||"quantitative")+"").substr(0,1);i+=","+Ae(s,n.get(m.TYPE))}i+=a.map(s=>{let c=s.value instanceof Array?"["+s.value+"]":s.value;return","+s.key+"="+c}).join("")}else P(e)&&(i="*,q");return i?r?((0,di.isString)(r)?r:"?"+((0,U.keys)(r).length>0?JSON.stringify(r):""))+"("+i+")":i:null}function Zl(e,t,n){if(t.get(m.AGGREGATE)&&e.aggregate&&!A(e.aggregate))return Et(e.aggregate,n.get(m.AGGREGATE));if(t.get(m.AGGREGATE)&&Tt(e))return Et("count",n.get(m.AGGREGATE));if(t.get(m.TIMEUNIT)&&e.timeUnit&&!A(e.timeUnit))return Et(e.timeUnit,n.get(m.TIMEUNIT));if(t.get(m.BIN)&&e.bin&&!A(e.bin))return"bin";{let r=null;for(let a of[m.AGGREGATE,m.AUTOCOUNT,m.TIMEUNIT,m.BIN]){let i=e[a];t.get(a)&&e[a]&&A(i)&&(r||(r={}),r[a]=bt(i)?i:i.enum)}return r&&e.hasFn&&(r.hasFn=!0),r}}function ec(e,t,n){let r=[];if(!(0,U.isBoolean)(e.bin)&&!bt(e.bin)){let a=e.bin;for(let i in a){let s=de("bin",i);s&&t.get(s)&&a[i]!==void 0&&r.push({key:i,value:Ae(a[i],n.get(s))})}r.sort((i,s)=>i.key.localeCompare(s.key))}for(let a of[m.SCALE,m.SORT,m.STACK,m.AXIS,m.LEGEND])if(!(!A(e.channel)&&!vn[a][e.channel])&&t.get(a)&&e[a]!==void 0){let i=e[a];if((0,U.isBoolean)(i)||i===null)r.push({key:a+"",value:i||!1});else if((0,di.isString)(i))r.push({key:a+"",value:Et(JSON.stringify(i),n.get(a))});else{let s=[];for(let c in i){let h=de(a,c);h&&t.get(h)&&i[c]!==void 0&&s.push({key:c,value:Ae(i[c],n.get(h))})}if(s.length>0){let c=s.sort((h,o)=>h.key.localeCompare(o.key)).reduce((h,o)=>(h[o.key]=o.value,h),{});r.push({key:a+"",value:JSON.stringify(c)})}}}return r}function bn(e,t,n){let r=[],a=0;for(let i=0;i0))return h;for(t(i,1),e(i),i=0;)for(;t(s,1),!i(s););})},n&&(a.count=function(i,s){return St.setTime(+i),Nt.setTime(+s),e(St),e(Nt),Math.floor(n(St,Nt))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(s){return r(s)%i===0}:function(s){return a.count(0,s)%i===0}):a}),a}var St,Nt,z=q((()=>{St=new Date,Nt=new Date})),Ct,wt,ic=q((()=>{z(),Ct=L(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e}),Ct.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?L(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Ct},wt=Ct})),En,ac=q((()=>{z(),En=L(function(e){e.setMilliseconds(0)},function(e,t){e.setTime(+e+t*1e3)},function(e,t){return(t-e)/1e3},function(e){return e.getSeconds()})})),Tn,oc=q((()=>{z(),Tn=L(function(e){e.setSeconds(0,0)},function(e,t){e.setTime(+e+t*6e4)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()})})),Sn,sc=q((()=>{z(),Sn=L(function(e){e.setMinutes(0,0,0)},function(e,t){e.setTime(+e+t*36e5)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})})),Nn,lc=q((()=>{z(),Nn=L(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5},function(e){return e.getDate()-1})}));function ke(e){return L(function(t){t.setHours(0,0,0,0),t.setDate(t.getDate()-(t.getDay()+7-e)%7)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5})}var At,Cn,wn,An,On,kn,Mn,In,cc=q((()=>{z(),At=ke(0),Cn=ke(1),wn=ke(2),An=ke(3),On=ke(4),kn=ke(5),Mn=ke(6),In=At})),Un,uc=q((()=>{z(),Un=L(function(e){e.setHours(0,0,0,0),e.setDate(1)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()})})),Fn,dc=q((()=>{z(),Fn=L(function(e){e.setHours(0,0,0,0),e.setMonth(0,1)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()})})),Dn,fc=q((()=>{z(),Dn=L(function(e){e.setUTCMilliseconds(0)},function(e,t){e.setTime(+e+t*1e3)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()})})),_n,pc=q((()=>{z(),_n=L(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*6e4)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()})})),jn,hc=q((()=>{z(),jn=L(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*36e5)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()})})),Pn,mc=q((()=>{z(),Pn=L(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1})}));function Me(e){return L(function(t){t.setUTCHours(0,0,0,0),t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/6048e5})}var Ot,Rn,$n,Bn,Ln,Wn,qn,Hn,gc=q((()=>{z(),Ot=Me(0),Rn=Me(1),$n=Me(2),Bn=Me(3),Ln=Me(4),Wn=Me(5),qn=Me(6),Hn=Ot})),Gn,yc=q((()=>{z(),Gn=L(function(e){e.setUTCHours(0,0,0,0),e.setUTCDate(1)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()})})),zn,vc=q((()=>{z(),zn=L(function(e){e.setUTCHours(0,0,0,0),e.setUTCMonth(0,1)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()})})),bc=sr({day:()=>Nn,days:()=>bi,friday:()=>kn,fridays:()=>Ci,hour:()=>Sn,hours:()=>vi,interval:()=>L,millisecond:()=>wt,milliseconds:()=>Yn,minute:()=>Tn,minutes:()=>yi,monday:()=>Cn,mondays:()=>Ei,month:()=>Un,months:()=>Oi,saturday:()=>Mn,saturdays:()=>wi,second:()=>En,seconds:()=>gi,sunday:()=>At,sundays:()=>xi,thursday:()=>On,thursdays:()=>Ni,tuesday:()=>wn,tuesdays:()=>Ti,utcDay:()=>Pn,utcDays:()=>_i,utcFriday:()=>Wn,utcFridays:()=>Li,utcHour:()=>jn,utcHours:()=>Di,utcMillisecond:()=>Mi,utcMilliseconds:()=>Ii,utcMinute:()=>_n,utcMinutes:()=>Fi,utcMonday:()=>Rn,utcMondays:()=>Pi,utcMonth:()=>Gn,utcMonths:()=>Hi,utcSaturday:()=>qn,utcSaturdays:()=>Wi,utcSecond:()=>Dn,utcSeconds:()=>Ui,utcSunday:()=>Ot,utcSundays:()=>ji,utcThursday:()=>Ln,utcThursdays:()=>Bi,utcTuesday:()=>$n,utcTuesdays:()=>Ri,utcWednesday:()=>Bn,utcWednesdays:()=>$i,utcWeek:()=>Hn,utcWeeks:()=>qi,utcYear:()=>zn,utcYears:()=>Gi,wednesday:()=>An,wednesdays:()=>Si,week:()=>In,weeks:()=>Ai,year:()=>Fn,years:()=>ki},1),Yn,gi,yi,vi,bi,xi,Ei,Ti,Si,Ni,Ci,wi,Ai,Oi,ki,Mi,Ii,Ui,Fi,Di,_i,ji,Pi,Ri,$i,Bi,Li,Wi,qi,Hi,Gi,xc=q((()=>{z(),ic(),ac(),oc(),sc(),lc(),cc(),uc(),dc(),fc(),pc(),hc(),mc(),gc(),yc(),vc(),Yn=wt.range,gi=En.range,yi=Tn.range,vi=Sn.range,bi=Nn.range,xi=At.range,Ei=Cn.range,Ti=wn.range,Si=An.range,Ni=On.range,Ci=kn.range,wi=Mn.range,Ai=In.range,Oi=Un.range,ki=Fn.range,Mi=wt,Ii=Yn,Ui=Dn.range,Fi=_n.range,Di=jn.range,_i=Pn.range,ji=Ot.range,Pi=Rn.range,Ri=$n.range,$i=Bn.range,Bi=Ln.range,Li=Wn.range,Wi=qn.range,qi=Hn.range,Hi=Gn.range,Gi=zn.range})),Ec=le(((e,t)=>{var n=(xc(),wa(bc)),r=new Date,a=new Date(0,0,1).setFullYear(0),i=new Date(Date.UTC(0,0,1)).setUTCFullYear(0);function s(f){return r.setTime(+f),r}function c(f,g,y,v,b,x){var S={type:f,date:g,unit:y};return v?S.step=v:S.minstep=1,b!=null&&(S.min=b),x!=null&&(S.max=x),S}function h(f,g,y,v,b,x){return c(f,function(S){return g.offset(y,S)},function(S){return g.count(y,S)},v,b,x)}var o=[h("second",n.second,a),h("minute",n.minute,a),h("hour",n.hour,a),h("day",n.day,a,[1,7]),h("month",n.month,a,[1,3,6]),h("year",n.year,a),c("seconds",function(f){return new Date(1970,0,1,0,0,f)},function(f){return s(f).getSeconds()},null,0,59),c("minutes",function(f){return new Date(1970,0,1,0,f)},function(f){return s(f).getMinutes()},null,0,59),c("hours",function(f){return new Date(1970,0,1,f)},function(f){return s(f).getHours()},null,0,23),c("weekdays",function(f){return new Date(1970,0,4+f)},function(f){return s(f).getDay()},[1],0,6),c("dates",function(f){return new Date(1970,0,f)},function(f){return s(f).getDate()},[1],1,31),c("months",function(f){return new Date(1970,f%12,1)},function(f){return s(f).getMonth()},[1],0,11)],l=[h("second",n.utcSecond,i),h("minute",n.utcMinute,i),h("hour",n.utcHour,i),h("day",n.utcDay,i,[1,7]),h("month",n.utcMonth,i,[1,3,6]),h("year",n.utcYear,i),c("seconds",function(f){return new Date(Date.UTC(1970,0,1,0,0,f))},function(f){return s(f).getUTCSeconds()},null,0,59),c("minutes",function(f){return new Date(Date.UTC(1970,0,1,0,f))},function(f){return s(f).getUTCMinutes()},null,0,59),c("hours",function(f){return new Date(Date.UTC(1970,0,1,f))},function(f){return s(f).getUTCHours()},null,0,23),c("weekdays",function(f){return new Date(Date.UTC(1970,0,4+f))},function(f){return s(f).getUTCDay()},[1],0,6),c("dates",function(f){return new Date(Date.UTC(1970,0,f))},function(f){return s(f).getUTCDate()},[1],1,31),c("months",function(f){return new Date(Date.UTC(1970,f%12,1))},function(f){return s(f).getUTCMonth()},[1],0,11)],u=[[31536e6,5],[7776e6,4],[2592e6,4],[12096e5,3],[6048e5,3],[1728e5,3],[864e5,3],[432e5,2],[216e5,2],[108e5,2],[36e5,2],[18e5,1],[9e5,1],[3e5,1],[6e4,1],[3e4,0],[15e3,0],[5e3,0],[1e3,0]];function d(f,g,y,v){var b=u[0],x,S,C;for(x=1,S=u.length;xb[0]){if(C=g/b[0],C>v)return f[u[x-1][1]];if(C>=y)return f[b[1]]}return f[u[S-1][1]]}function p(f){var g={},y,v;for(y=0,v=f.length;y{var n=te(),r=Ec(),a=1e-15;function i(u){if(!u)throw Error("Missing binning options.");var d=u.maxbins||15,p=u.base||10,f=Math.log(p),g=u.div||[5,2],y=u.min,v=u.max,b=v-y,x,S,C,T,w,N,D;if(u.step)x=u.step;else if(u.steps)x=u.steps[Math.min(u.steps.length-1,s(u.steps,b/d,0,u.steps.length))];else{for(S=Math.ceil(Math.log(d)/f),C=u.minstep||0,x=Math.max(C,p**+(Math.round(Math.log(b)/f)-S));Math.ceil(b/x)>d;)x*=p;for(N=0;N=C&&b/w<=d&&(x=w)}return w=Math.log(x),T=w>=0?0:~~(-w/f)+1,D=p**(-T-1),y=Math.min(y,Math.floor(y/x+D)*x),v=Math.ceil(v/x)*x,{start:y,stop:v,step:x,unit:{precision:T},value:c,index:h}}function s(u,d,p,f){for(;p>>1;n.cmp(u[g],d)<0?p=g+1:f=g}return p}function c(u){return this.step*Math.floor(u/this.step+a)}function h(u){return Math.floor((u-this.start)/this.step+a)}function o(u){return this.unit.date(c.call(this,u))}function l(u){return h.call(this,this.unit.unit(u))}i.date=function(u){if(!u)throw Error("Missing date binning options.");var d=u.utc?r.utc:r,p=u.min,f=u.max,g=u.maxbins||20,y=u.minbins||4,v=f-+p,b=u.unit?d[u.unit]:d.find(v,y,g),x=i({min:b.min==null?b.unit(p):b.min,max:b.max==null?b.unit(f):b.max,maxbins:g,minstep:b.minstep,steps:b.step});return x.unit=b,x.index=l,u.raw||(x.value=o),x},t.exports=i})),zi=le(((e,t)=>{var n=te(),r="__types__",a={boolean:n.boolean,integer:n.number,number:n.number,date:n.date,string:function(p){return p==null||p===""?null:p+""}},i={boolean:function(p){return p==="true"||p==="false"||n.isBoolean(p)},integer:function(p){return i.number(p)&&(p=+p)===~~p},number:function(p){return!isNaN(+p)&&!n.isDate(p)},date:function(p){return!isNaN(Date.parse(p))}};function s(p,f){if(!f)return p&&p[r]||null;p[r]=f}function c(p){return n.keys(p)}function h(p){return"["+p+"]"}function o(p,f){p=n.array(p),f=n.$(f);var g,y,v;if(p[r]&&(g=f(p[r]),n.isString(g)))return g;for(y=0,v=p.length;!n.isValid(g)&&y{var n=te(),r=t.exports;r.repeat=function(a,i){var s=Array(i),c;for(c=0;ci;)c.push(o);else for(;(o=a+s*++h)=a&&h<=i?1/s:0},c.cdf=function(h){return hi?1:(h-a)/s},c.icdf=function(h){return h>=0&&h<=1?a+h*s:NaN},c},r.random.integer=function(a,i){i===void 0&&(i=a,a=0);var s=i-a,c=function(){return a+Math.floor(s*Math.random())};return c.samples=function(h){return r.zeros(h).map(c)},c.pdf=function(h){return h===Math.floor(h)&&h>=a&&h=i?1:(o-a+1)/s},c.icdf=function(h){return h>=0&&h<=1?a-1+Math.floor(h*s):NaN},c},r.random.normal=function(a,i){a||(a=0),i||(i=1);var s,c=function(){var h=0,o=0,l,u;if(s!==void 0)return h=s,s=void 0,h;do h=Math.random()*2-1,o=Math.random()*2-1,l=h*h+o*o;while(l===0||l>1);return u=Math.sqrt(-2*Math.log(l)/l),s=a+o*u*i,a+h*u*i};return c.samples=function(h){return r.zeros(h).map(c)},c.pdf=function(h){var o=Math.exp((h-a)**2/(-2*i**2));return 1/(i*Math.sqrt(2*Math.PI))*o},c.cdf=function(h){var o,l=(h-a)/i,u=Math.abs(l);if(u>37)o=0;else{var d,p=Math.exp(-u*u/2);u<7.07106781186547?(d=.0352624965998911*u+.700383064443688,d=d*u+6.37396220353165,d=d*u+33.912866078383,d=d*u+112.079291497871,d=d*u+221.213596169931,d=d*u+220.206867912376,o=p*d,d=.0883883476483184*u+1.75566716318264,d=d*u+16.064177579207,d=d*u+86.7807322029461,d=d*u+296.564248779674,d=d*u+637.333633378831,d=d*u+793.826512519948,d=d*u+440.413735824752,o/=d):(d=u+.65,d=u+4/d,d=u+3/d,d=u+2/d,d=u+1/d,o=p/d/2.506628274631)}return l>0?1-o:o},c.icdf=function(h){if(h<=0||h>=1)return NaN;var o=2*h-1,l=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),u=2/(Math.PI*l)+Math.log(1-o**2)/2,d=Math.log(1-o*o)/l,p=(o>0?1:-1)*Math.sqrt(Math.sqrt(u*u-d)-u);return a+i*Math.SQRT2*p},c},r.random.bootstrap=function(a,i){var s=a.filter(n.isValid),c=s.length,h=i?r.random.normal(0,i):null,o=function(){return s[~~(Math.random()*c)]+(h?h():0)};return o.samples=function(l){return r.zeros(l).map(o)},o}})),Nc=le(((e,t)=>{var n=te(),r=zi(),a=Sc(),i=t.exports;i.unique=function(o,l,u){l=n.$(l),u||(u=[]);var d={},p,f,g;for(f=0,g=o.length;f0?u**(1/d):0,u},i.mean.harmonic=function(o,l){l=n.$(l);var u=0,d,p,f,g;for(g=0,d=0,p=o.length;gd&&(d=p));return[u,d]},i.extent.index=function(o,l){l=n.$(l);var u=-1,d=-1,p,f,g,y,v=o.length;for(y=0;yf&&(f=g,d=y));return[u,d]},i.dot=function(o,l,u){var d=0,p,f;if(u)for(l=n.$(l),u=n.$(u),p=0;p-1&&g!==v){for(b=1+(y-1+f)/2;f-1)for(b=1+(d-1+f)/2;fy)&&(y=N),S=N-u,u+=S/++d,v+=S*(N-u),b.push(N));return v/=d-1,C=Math.sqrt(v),b.sort(n.cmp),{type:r(o,l),unique:x,count:o.length,valid:d,missing:p,distinct:f,min:g,max:y,mean:u,stdev:C,median:w=i.quantile(b,.5),q1:i.quantile(b,.25),q3:i.quantile(b,.75),modeskew:C===0?0:(u-w)/C}},i.summary=function(o,l){l||(l=n.keys(o[0]));var u=l.map(function(d){var p=i.profile(o,n.$(d));return p.field=d,p});return u.__summary__=!0,u}})),Cc=Xe(Tc()),wc=zi(),Ac=Nc(),Oc=Cc.default;function kc(e,t={},n={fields:[]}){t=(0,U.extend)({},Qe,t);let r=(0,Ac.summary)(e),a=(0,wc.inferAll)(e),i=n.fields.reduce((c,h)=>(c[h.name]=h,c),{}),s=r.map(function(c,h){let o=c.field,l=a[o]==="date"?R.DATETIME:a[o],u=c.distinct,d;if(l===R.NUMBER)d=ee;else if(l===R.INTEGER)d=uc.max.getTime()&&(c.max=new Date(y))}}else d=Ce;d==="nominal"&&u/c.count>t.minPercentUniqueForKey&&c.count>t.minCardinalityForKey&&(d=se.KEY);let p={name:o,originalIndex:h,vlType:d,type:l,stats:c,timeStats:{},binStats:{}},f=i[p.name];return p=(0,U.extend)(p,f),p});for(let c of s)if(c.vlType==="quantitative")for(let h of t.enum.binProps.maxbins)c.binStats[h]=Yi(h,c.stats);else if(c.vlType==="temporal")for(let h of t.enum.timeUnit)h!==void 0&&(c.timeStats[h]=Qi(h,c.stats));return new Mc(Object.assign({},n,{fields:s}))}var kt={nominal:0,key:1,ordinal:2,temporal:3,quantitative:4},Mc=class{constructor(e){this._tableSchema=e,e.fields.sort(function(t,n){return kt[t.vlType]kt[n.vlType]?1:t.name.localeCompare(n.name)}),e.fields.forEach((t,n)=>t.index=n),this._fieldSchemaIndex=e.fields.reduce((t,n)=>(t[n.name]=n,t),{})}fieldNames(){return this._tableSchema.fields.map(e=>e.name)}get fieldSchemas(){return this._tableSchema.fields}fieldSchema(e){return this._fieldSchemaIndex[e]}tableSchema(){let e=(0,U.duplicate)(this._tableSchema);return e.fields.sort((t,n)=>t.originalIndex-n.originalIndex),e}primitiveType(e){return this._fieldSchemaIndex[e]?this._fieldSchemaIndex[e].type:null}vlType(e){return this._fieldSchemaIndex[e]?this._fieldSchemaIndex[e].vlType:null}cardinality(e,t=!0,n=!1){let r=this._fieldSchemaIndex[e.field];if(e.aggregate||P(e)&&e.autoCount)return 1;if(e.bin){let a;a=typeof e.bin=="boolean"?{maxbins:pn(e.channel)}:e.bin==="?"?{enum:[!0,!1]}:e.bin;let i=a.maxbins;return r.binStats[i]||(r.binStats[i]=Yi(i,r.stats)),r.binStats[i].distinct}else if(e.timeUnit){if(t)switch(e.timeUnit){case B.SECONDS:return 60;case B.MINUTES:return 60;case B.HOURS:return 24;case B.DAY:return 7;case B.DATE:return 31;case B.MONTH:return 12;case B.QUARTER:return 4;case B.MILLISECONDS:return 1e3}let a=e.timeUnit,i=r.timeStats;return(!i||!i[a])&&(i=Object.assign({},i,{[a]:Qi(e.timeUnit,r.stats)})),n?i[a].distinct-Vi(i[a].unique,["Invalid Date",null]):i[a].distinct}else return r?n?r.stats.distinct-Vi(r.stats.unique,[NaN,null]):r.stats.distinct:null}timeUnitHasVariation(e){if(!e.timeUnit)return;if(e.timeUnit===B.DAY){let n=(0,U.extend)({},e,{timeUnit:B.DATE});if(this.cardinality(n,!1,!0)<=1)return!1}let t=e.timeUnit;for(let n of Jr)if(ti(t,n)){let r=(0,U.extend)({},e,{timeUnit:n});if(this.cardinality(r,!1,!0)<=1)return!1}return!0}domain(e){let t=this._fieldSchemaIndex[e.field],n=(0,U.keys)(t.stats.unique);return t.vlType==="quantitative"?[+t.stats.min,+t.stats.max]:t.type===R.DATETIME?[t.stats.min,t.stats.max]:t.type===R.INTEGER||t.type===R.NUMBER?(n=n.map(r=>+r),n.sort(U.cmp)):t.vlType==="ordinal"&&t.ordinalDomain?t.ordinalDomain:n.map(r=>r==="null"?null:r).sort(U.cmp)}stats(e){let t=this._fieldSchemaIndex[e.field];return t?t.stats:null}};function Yi(e,t){let n=Oc({min:t.min,max:t.max,maxbins:e}),r=(0,U.extend)({},t);return r.unique=Ic(n,t.unique),r.distinct=(n.stop-n.start)/n.step,r.min=n.start,r.max=n.stop,r}function Qi(e,t){let n=(0,U.extend)({},t),r={};return(0,U.keys)(t.unique).forEach(function(a){let i=a==="null"?null:new Date(a),s;s=i===null?null:isNaN(i.getTime())?"Invalid Date":(e===B.DAY?i.getDay():xl(e,i)).toString(),r[s]=(r[s]||0)+t.unique[a]}),n.unique=r,n.distinct=(0,U.keys)(r).length,n}function Ic(e,t){let n={};for(let r in t){let a;a=r===null?null:isNaN(Number(r))?NaN:e.value(Number(r)),n[a]=(n[a]||0)+t[r]}return n}function Vi(e,t){return t.reduce(function(n,r){return e[r]?n+1:n},0)}var R;(function(e){e[e.STRING="string"]="STRING",e[e.NUMBER="number"]="NUMBER",e[e.INTEGER="integer"]="INTEGER",e[e.BOOLEAN="boolean"]="BOOLEAN",e[e.DATETIME="datetime"]="DATETIME"})(R||(R={}));var Ki=class{constructor(e){this.constraint=e}name(){return this.constraint.name}description(){return this.constraint.description}properties(){return this.constraint.properties}strict(){return this.constraint.strict}},Ji=class extends Ki{constructor(e){super(e)}hasAllRequiredPropertiesSpecific(e){return ae(this.constraint.properties,t=>{if(oe(t)){let n=t.parent,r=t.child;return e[n]?!A(e[n][r]):!0}return e[t]?!A(e[t]):!0})}satisfy(e,t,n,r){return!this.constraint.allowWildcardForProperties&&!this.hasAllRequiredPropertiesSpecific(e)?!0:this.constraint.satisfy(e,t,n,r)}};const Xi=[{name:"aggregateOpSupportedByType",description:"Aggregate function should be supported by data type.",properties:[m.TYPE,m.AGGREGATE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>e.aggregate?!si(e.type):!0},{name:"asteriskFieldWithCountOnly",description:'Field="*" should be disallowed except aggregate="count"',properties:[m.FIELD,m.AGGREGATE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>e.field==="*"==(e.aggregate==="count")},{name:"minCardinalityForBin",description:"binned quantitative field should not have too low cardinality",properties:[m.BIN,m.FIELD,m.TYPE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>{if(e.bin&&e.type==="quantitative"){let a={channel:e.channel,field:e.field,type:e.type};return t.cardinality(a)>=r.minCardinalityForBin}return!0}},{name:"binAppliedForQuantitative",description:"bin should be applied to quantitative field only.",properties:[m.TYPE,m.BIN],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>e.bin?e.type===ee:!0},{name:"channelFieldCompatible",description:"encoding channel's range type be compatible with channel type.",properties:[m.CHANNEL,m.TYPE,m.BIN,m.TIMEUNIT],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>{let a=Object.assign({field:"f"},xn(e,{schema:t,props:["bin","timeUnit","type"]})),{compatible:i}=Pl(a,e.channel);return i?!0:!!((e.channel==="row"||e.channel==="column")&&(pl(a.timeUnit)||hl(a.timeUnit)))}},{name:"hasFn",description:"A field with as hasFn flag should have one of aggregate, timeUnit, or bin.",properties:[m.AGGREGATE,m.BIN,m.TIMEUNIT],allowWildcardForProperties:!0,strict:!0,satisfy:(e,t,n,r)=>e.hasFn?!!e.aggregate||!!e.bin||!!e.timeUnit:!0},{name:"omitScaleZeroWithBinnedField",description:"Do not use scale zero with binned field",properties:[m.SCALE,de("scale","zero"),m.BIN],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>!(e.bin&&e.scale&&e.scale.zero===!0)},{name:"onlyOneTypeOfFunction",description:"Only of of aggregate, autoCount, timeUnit, or bin should be applied at the same time.",properties:[m.AGGREGATE,m.AUTOCOUNT,m.TIMEUNIT,m.BIN],allowWildcardForProperties:!0,strict:!0,satisfy:(e,t,n,r)=>O(e)?(!A(e.aggregate)&&e.aggregate?1:0)+(!A(e.bin)&&e.bin?1:0)+(!A(e.timeUnit)&&e.timeUnit?1:0)<=1:!0},{name:"timeUnitAppliedForTemporal",description:"Time unit should be applied to temporal field only.",properties:[m.TYPE,m.TIMEUNIT],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>!(e.timeUnit&&e.type!=="temporal")},{name:"timeUnitShouldHaveVariation",description:"A particular time unit should be applied only if they produce unique values.",properties:[m.TIMEUNIT,m.TYPE],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n,r)=>e.timeUnit&&e.type==="temporal"?!n.has("timeUnit")&&!r.constraintManuallySpecifiedValue?!0:t.timeUnitHasVariation(e):!0},{name:"scalePropertiesSupportedByScaleType",description:"Scale properties must be supported by correct scale type",properties:[].concat(pt,[m.SCALE,m.TYPE]),allowWildcardForProperties:!0,strict:!0,satisfy:(e,t,n,r)=>{if(e.scale){let a=e.scale,i=Oe(e);if(i==null)return!0;for(let s in a){if(s==="type"||s==="name"||s==="enum")continue;let c=s;if(i==="point"){if(!Zt("point",c)&&!Zt("band",c))return!1}else if(!Zt(i,c))return!1}}return!0}},{name:"scalePropertiesSupportedByChannel",description:"Not all scale properties are supported by all encoding channels",properties:[].concat(pt,[m.SCALE,m.CHANNEL]),allowWildcardForProperties:!0,strict:!0,satisfy:(e,t,n,r)=>{if(e){let a=e.channel,i=e.scale;if(a&&!A(a)&&i){if(a==="row"||a==="column")return!1;for(let s in i)if(i.hasOwnProperty(s)&&!(s==="type"||s==="name"||s==="enum")&&Js(a,s)!==void 0)return!1}}return!0}},{name:"typeMatchesPrimitiveType",description:"Data type should be supported by field's primitive type.",properties:[m.FIELD,m.TYPE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>{if(e.field==="*")return!0;let a=t.primitiveType(e.field),i=e.type;if(!n.has("field")&&!n.has("type")&&!r.constraintManuallySpecifiedValue)return!0;switch(a){case R.BOOLEAN:case R.STRING:return i!=="quantitative"&&i!=="temporal";case R.NUMBER:case R.INTEGER:return i!==ge;case R.DATETIME:return i===ge;case null:return!1}throw Error("Not implemented")}},{name:"typeMatchesSchemaType",description:"Enumerated data type of a field should match the field's type in the schema.",properties:[m.FIELD,m.TYPE],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n,r)=>!n.has("field")&&!n.has("type")&&!r.constraintManuallySpecifiedValue?!0:e.field==="*"?e.type===ee:t.vlType(e.field)===e.type},{name:"maxCardinalityForCategoricalColor",description:"Categorical channel should not have too high cardinality",properties:[m.CHANNEL,m.FIELD],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n,r)=>e.channel==="color"&&(e.type==="nominal"||e.type===se.KEY)?t.cardinality(e)<=r.maxCardinalityForCategoricalColor:!0},{name:"maxCardinalityForFacet",description:"Row/column channel should not have too high cardinality",properties:[m.CHANNEL,m.FIELD,m.BIN,m.TIMEUNIT],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n,r)=>e.channel==="row"||e.channel==="column"?t.cardinality(e)<=r.maxCardinalityForFacet:!0},{name:"maxCardinalityForShape",description:"Shape channel should not have too high cardinality",properties:[m.CHANNEL,m.FIELD,m.BIN,m.TIMEUNIT],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n,r)=>e.channel==="shape"?t.cardinality(e)<=r.maxCardinalityForShape:!0},{name:"dataTypeAndFunctionMatchScaleType",description:"Scale type must match data type",properties:[m.TYPE,m.SCALE,de("scale","type"),m.TIMEUNIT,m.BIN],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>{if(e.scale){let a=e.type,i=Oe(e);if(si(a))return i===void 0||we(i);if(a==="temporal")return e.timeUnit?V([F.TIME,F.UTC,void 0],i)||we(i):V([F.TIME,F.UTC,void 0],i);if(a==="quantitative")return e.bin?V([F.LINEAR,void 0],i):V([F.LOG,F.POW,F.SQRT,F.QUANTILE,F.QUANTIZE,F.LINEAR,void 0],i)}return!0}},{name:"stackIsOnlyUsedWithXY",description:"stack should only be allowed for x and y channels",properties:[m.STACK,m.CHANNEL],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>e.stack?e.channel==="x"||e.channel==="y":!0}].map(e=>new Ji(e));Xi.reduce((e,t)=>(e[t.name()]=t,e),{});const Uc=Xi.reduce((e,t)=>{for(let n of t.properties())e.set(n,e.get(n)||[]),e.get(n).push(t);return e},new ne),Zi=[{name:"doesNotSupportConstantValue",description:"row, column, x, y, order, and detail should not work with constant values.",properties:[m.TYPE,m.AGGREGATE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n,r)=>!V(["row","column","x","y","detail","order"],e.channel)}].map(e=>new Ji(e));Zi.reduce((e,t)=>(e[t.name()]=t,e),{});const Fc=Zi.reduce((e,t)=>{for(let n of t.properties())e.set(n,e.get(n)||[]),e.get(n).push(t);return e},new ne);function Dc(e,t,n,r,a,i){let s=Uc.get(e)||[],c=r.getEncodingQueryByIndex(n);for(let o of s)if((o.strict()||i[o.name()])&&!o.satisfy(c,a,r.wildcardIndex.encodings[n],i)){let l="(enc) "+o.name();return i.verbose&&console.log(l+" failed with "+r.toShorthand()+" for "+t.name),l}let h=Fc.get(e)||[];for(let o of h)if((o.strict()||i[o.name()])&&re(c)&&!o.satisfy(c,a,r.wildcardIndex.encodings[n],i)){let l="(enc) "+o.name();return i.verbose&&console.log(l+" failed with "+r.toShorthand()+" for "+t.name),l}return null}var _c=kr.reduce((e,t)=>(e[t]=!0,e),{}),jc=class extends Ki{constructor(e){super(e)}hasAllRequiredPropertiesSpecific(e){return ae(this.constraint.properties,t=>{if(t===m.MARK)return!A(e.getMark());if(oe(t)){let n=t.parent,r=t.child;return ae(e.getEncodings(),a=>a[n]?!A(a[n][r]):!0)}if(!Vr(t))throw Error("UNIMPLEMENTED");return ae(e.getEncodings(),n=>n[t]?!A(n[t]):!0)})}satisfy(e,t,n){return!this.constraint.allowWildcardForProperties&&!this.hasAllRequiredPropertiesSpecific(e)?!0:this.constraint.satisfy(e,t,n)}};const ea=[{name:"noRepeatedChannel",description:"Each encoding channel should only be used once.",properties:[m.CHANNEL],allowWildcardForProperties:!0,strict:!0,satisfy:(e,t,n)=>{let r={};return ae(e.getEncodings(),a=>A(a.channel)?!0:r[a.channel]?!1:(r[a.channel]=!0,!0))}},{name:"alwaysIncludeZeroInScaleWithBarMark",description:"Do not recommend bar mark if scale does not start at zero",properties:[m.MARK,m.SCALE,de("scale","zero"),m.CHANNEL,m.TYPE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n)=>{let r=e.getMark(),a=e.getEncodings();if(r==="bar"){for(let i of a)if(O(i)&&(i.channel==="x"||i.channel==="y")&&i.type==="quantitative"&&i.scale&&i.scale.zero===!1)return!1}return!0}},{name:"autoAddCount",description:"Automatically adding count only for plots with only ordinal, binned quantitative, or temporal with timeunit fields.",properties:[m.BIN,m.TIMEUNIT,m.TYPE,m.AUTOCOUNT],allowWildcardForProperties:!0,strict:!1,satisfy:(e,t,n)=>ue(e.getEncodings(),r=>Tt(r))?ae(e.getEncodings(),r=>{if(re(r)||P(r))return!0;switch(r.type){case ee:return!!r.bin;case ge:return!!r.timeUnit;case Ne:case se.KEY:case Ce:return!0}throw Error("Unsupported Type")}):ae(e.wildcardIndex.encodingIndicesByProperty.get("autoCount")||[],r=>{let a=e.getEncodingQueryByIndex(r);return P(a)&&!A(a.autoCount)})?ue(e.getEncodings(),r=>(O(r)||P(r))&&r.type==="quantitative"?ie(r)?!1:O(r)&&(!r.bin||A(r.bin)):O(r)&&r.type==="temporal"?!r.timeUnit||A(r.timeUnit):!1):!0},{name:"channelPermittedByMarkType",description:"Each encoding channel should be supported by the mark type",properties:[m.CHANNEL,m.MARK],allowWildcardForProperties:!0,strict:!0,satisfy:(e,t,n)=>{let r=e.getMark();return A(r)?!0:ae(e.getEncodings(),a=>A(a.channel)?!0:!!To(a.channel,r))}},{name:"hasAllRequiredChannelsForMark",description:"All required channels for the specified mark should be specified",properties:[m.CHANNEL,m.MARK],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n)=>{let r=e.getMark();switch(r){case Ge:case gt:return e.channelUsed("x")&&e.channelUsed("y");case yt:return e.channelUsed(Qt);case"bar":case on:case sn:case vt:case an:case rn:return e.channelUsed("x")||e.channelUsed("y");case ze:return!e.wildcardIndex.hasProperty(m.CHANNEL)||e.channelUsed("x")||e.channelUsed("y")}throw Error("hasAllRequiredChannelsForMark not implemented for mark"+JSON.stringify(r))}},{name:"omitAggregate",description:"Omit aggregate plots.",properties:[m.AGGREGATE,m.AUTOCOUNT],allowWildcardForProperties:!0,strict:!1,satisfy:(e,t,n)=>!e.isAggregate()},{name:"omitAggregatePlotWithDimensionOnlyOnFacet",description:"Omit aggregate plots with dimensions only on facets as that leads to inefficient use of space.",properties:[m.CHANNEL,m.AGGREGATE,m.AUTOCOUNT],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n)=>{if(e.isAggregate()){let r=!1,a=!1,i=!1;if(e.specQuery.encodings.forEach((s,c)=>{re(s)||ie(s)||O(s)&&!s.aggregate&&(a=!0,V(["row","column"],s.channel)?e.wildcardIndex.hasEncodingProperty(c,m.CHANNEL)&&(i=!0):r=!0)}),a&&!r&&(i||n.constraintManuallySpecifiedValue))return!1}return!0}},{name:"omitAggregatePlotWithoutDimension",description:"Aggregate plots without dimension should be omitted",properties:[m.AGGREGATE,m.AUTOCOUNT,m.BIN,m.TIMEUNIT,m.TYPE],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n)=>e.isAggregate()?ue(e.getEncodings(),r=>!!(ve(r)||O(r)&&r.type==="temporal")):!0},{name:"omitBarLineAreaWithOcclusion",description:"Don't use bar, line or area to visualize raw plot as they often lead to occlusion.",properties:[m.MARK,m.AGGREGATE,m.AUTOCOUNT],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n)=>V(["bar","line","area"],e.getMark())?e.isAggregate():!0},{name:"omitBarTickWithSize",description:"Do not map field to size channel with bar and tick mark",properties:[m.CHANNEL,m.MARK],allowWildcardForProperties:!0,strict:!1,satisfy:(e,t,n)=>{if(V(["tick","bar"],e.getMark())&&e.channelEncodingField("size")){if(n.constraintManuallySpecifiedValue)return!1;{let r=e.specQuery.encodings;for(let a=0;a{let r=e.getMark(),a=e.getEncodings();if(r==="area"||r==="bar"){for(let i of a)if(O(i)&&(i.channel==="x"||i.channel==="y")&&i.scale&&Oe(i)===F.LOG)return!1}return!0}},{name:"omitMultipleNonPositionalChannels",description:"Unless manually specified, do not use multiple non-positional encoding channel to avoid over-encoding.",properties:[m.CHANNEL],allowWildcardForProperties:!0,strict:!1,satisfy:(e,t,n)=>{let r=e.specQuery.encodings,a=0,i=!1;for(let s=0;s1&&(i||n.constraintManuallySpecifiedValue)))return!1}return!0}},{name:"omitNonPositionalOrFacetOverPositionalChannels",description:"Do not use non-positional channels unless all positional channels are used",properties:[m.CHANNEL],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n)=>{let r=e.specQuery.encodings,a=!1,i=!1,s=!1,c=!1;for(let h=0;h!!e.isAggregate()},{name:"omitRawContinuousFieldForAggregatePlot",description:"Aggregate plot should not use raw continuous field as group by values. (Quantitative should be binned. Temporal should have time unit.)",properties:[m.AGGREGATE,m.AUTOCOUNT,m.TIMEUNIT,m.BIN,m.TYPE],allowWildcardForProperties:!0,strict:!1,satisfy:(e,t,n)=>{if(e.isAggregate()){let r=e.specQuery.encodings;for(let a=0;ae.isAggregate()?!0:ae(e.specQuery.encodings,(r,a)=>re(r)||ie(r)?!0:!(r.channel==="detail"&&(e.wildcardIndex.hasEncodingProperty(a,m.CHANNEL)||n.constraintManuallySpecifiedValue)))},{name:"omitRepeatedField",description:"Each field should be mapped to only one channel",properties:[m.FIELD],allowWildcardForProperties:!0,strict:!1,satisfy:(e,t,n)=>{let r={},a={},i=e.specQuery.encodings;for(let s=0;s{let r=e.getEncodings();return!(r.length===1&&r[0].channel==="y")}},{name:"hasAppropriateGraphicTypeForMark",description:"Has appropriate graphic type for mark",properties:[m.CHANNEL,m.MARK,m.TYPE,m.TIMEUNIT,m.BIN,m.AGGREGATE,m.AUTOCOUNT],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n)=>{let r=e.getMark();switch(r){case Ge:case gt:if(e.isAggregate()){let u=e.getEncodingQueryByChannel("x"),d=e.getEncodingQueryByChannel("y"),p=Ve(u),f=Ve(d);return u&&d&&p!==f&&!(O(u)&&!p&&V(["nominal","key"],u.type))&&!(O(d)&&!f&&V(["nominal","key"],d.type))}return!0;case yt:return!0;case"bar":case vt:if(e.channelEncodingField("size"))return!1;{let u=e.getEncodingQueryByChannel("x"),d=e.getEncodingQueryByChannel("y");return Ve(u)!==Ve(d)}case rn:let a=e.getEncodingQueryByChannel("x"),i=e.getEncodingQueryByChannel("y"),s=ve(a),c=ve(i),h=e.getEncodingQueryByChannel(ce),o=Ve(h),l=O(h)?h.type===Ne:!1;return(s&&c||s&&!e.channelUsed("y")||c&&!e.channelUsed("x"))&&(!h||h&&(o||l));case on:case ze:case sn:case an:return!0}throw Error("hasAllRequiredChannelsForMark not implemented for mark"+r)}},{name:"omitInvalidStackSpec",description:"If stack is specified, must follow Vega-Lite stack rules",properties:[m.STACK,m.FIELD,m.CHANNEL,m.MARK,m.AGGREGATE,m.AUTOCOUNT,m.SCALE,de("scale","type"),m.TYPE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n)=>{if(!e.wildcardIndex.hasProperty(m.STACK))return!0;let r=e.getVlStack();return!(r===null&&e.getStackOffset()!==null||r.fieldChannel!==e.getStackChannel())}},{name:"omitNonSumStack",description:"Stack specifications that use non-summative aggregates should be omitted (even implicit ones)",properties:[m.CHANNEL,m.MARK,m.AGGREGATE,m.AUTOCOUNT,m.SCALE,de("scale","type"),m.TYPE],allowWildcardForProperties:!1,strict:!0,satisfy:(e,t,n)=>{let r=e.getVlStack();return!(r!=null&&!V(ri,e.getEncodingQueryByChannel(r.fieldChannel).aggregate))}},{name:"omitTableWithOcclusionIfAutoAddCount",description:"Plots without aggregation or autocount where x and y are both discrete should be omitted if autoAddCount is enabled as they often lead to occlusion",properties:[m.CHANNEL,m.TYPE,m.TIMEUNIT,m.BIN,m.AGGREGATE,m.AUTOCOUNT],allowWildcardForProperties:!1,strict:!1,satisfy:(e,t,n)=>{if(n.autoAddCount){let r=e.getEncodingQueryByChannel("x"),a=e.getEncodingQueryByChannel("y");if((!O(r)||ve(r))&&(!O(a)||ve(a)))return e.isAggregate()?ae(e.getEncodings(),i=>{let s=i.channel;return!(s!=="x"&&s!=="y"&&s!=="row"&&s!=="column"&&O(i)&&!i.aggregate)}):!1}return!0}}].map(e=>new jc(e));ea.reduce((e,t)=>(e[t.name()]=t,e),{});var Pc=ea.reduce((e,t)=>{for(let n of t.properties())e.set(n,e.get(n)||[]),e.get(n).push(t);return e},new ne);function ta(e,t,n,r,a){let i=Pc.get(e)||[];for(let s of i)if((s.strict()||a[s.name()])&&!s.satisfy(n,r,a)){let c="(spec) "+s.name();return a.verbose&&console.log(c+" failed with "+n.toShorthand()+" for "+t.name),c}return null}var Mt=new ne;function Rc(e){return Mt.get(e)}Mt.set("mark",(e,t,n)=>(r,a)=>(a.getMark().enum.forEach(i=>{a.setMark(i),ta("mark",e.mark,a,t,n)||r.push(a.duplicate())}),a.resetMark(),r)),en.forEach(e=>{Mt.set(e,na(e))}),ht.forEach(e=>{Mt.set(e,na(e))});function na(e){return(t,n,r)=>(a,i)=>{let s=t.encodingIndicesByProperty.get(e);function c(h){if(h===s.length){a.push(i.duplicate());return}let o=s[h],l=t.encodings[o].get(e),u=i.getEncodingQueryByIndex(o),d=i.getEncodingProperty(o,e);re(u)||ie(u)||!d?c(h+1):(l.enum.forEach(p=>{p===null&&(p=void 0),i.setEncodingProperty(o,e,p,l),!Dc(e,l,o,i,n,r)&&(ta(e,l,i,n,r)||c(h+1))}),i.resetEncodingProperty(o,e,l))}return c(0),a}}var $c=te();function Bc(e){return(0,$c.isObject)(e)&&!!e.property}function Ke(e,t,n){return t||(t=new ne),n||(n=new ne),e.forEach(r=>{Bc(r)?(t.setByKey(r.property,!0),n.setByKey(r.property,r.replace)):t.setByKey(r,!0)}),{include:t,replaceIndex:n,replacer:Jl(n)}}const ra=[m.FIELD,m.TYPE,m.AGGREGATE,m.BIN,m.TIMEUNIT,m.STACK],Lc=ra.concat([{property:m.CHANNEL,replace:{x:"xy",y:"xy",color:"style",size:"style",shape:"style",opacity:"style",row:"facet",column:"facet"}}]);var ia=te(),Qn={};function It(e,t){Qn[e]=t}function Wc(e,t){if(t){let n={name:"",path:"",items:[]},r={},a=[],i=[],s=[];for(let c=0;c0?a[c-1].duplicate():new ne),i.push(c>0?i[c-1].duplicate():new ne);let h=t[c].groupBy;if((0,ia.isArray)(h)){let o=Ke(h,a[c],i[c]);s.push(o.replacer)}}return e.forEach(c=>{let h="",o=n;for(let l=0;lje(e,aa.include,aa.replacer));const oa=Ke(ra);It("fieldTransform",e=>je(e,oa.include,oa.replacer));const sa=Ke(Lc);It("encoding",e=>je(e,sa.include,sa.replacer)),It("spec",e=>JSON.stringify(e));var Hc=class{constructor(){this._mark=void 0,this._encodings={},this._encodingIndicesByProperty=new ne}setEncodingProperty(e,t,n){let r=this._encodings;(r[e]=r[e]||new ne).set(t,n);let a=this._encodingIndicesByProperty;return a.set(t,a.get(t)||[]),a.get(t).push(e),this}hasEncodingProperty(e,t){return!!this._encodings[e]&&this._encodings[e].has(t)}hasProperty(e){if(Vr(e))return this.encodingIndicesByProperty.has(e);if(e==="mark")return!!this.mark;throw Error("Unimplemented for property "+e)}isEmpty(){return!this.mark&&this.encodingIndicesByProperty.size()===0}setMark(e){return this._mark=e,this}get mark(){return this._mark}get encodings(){return this._encodings}get encodingIndicesByProperty(){return this._encodingIndicesByProperty}},Gc=te(),zc=class ar{constructor(t,n,r,a,i){this._rankingScore={},this._spec=t,this._channelFieldCount=t.encodings.reduce((s,c)=>(!A(c.channel)&&(!P(c)||c.autoCount!==!1)&&(s[c.channel+""]=1),s),{}),this._wildcardIndex=n,this._assignedWildcardIndex=i,this._opt=a,this._schema=r}static build(t,n,r){let a=new Hc;if(A(t.mark)){let i=Ye(m.MARK);t.mark=un(t.mark,i,r.enum.mark),a.setMark(t.mark)}if(t.encodings.forEach((i,s)=>{P(i)&&(console.warn("A field with autoCount should not be included as autoCount meant to be an internal object."),i.type=ee),O(i)&&i.type===void 0&&(i.type="?"),en.forEach(c=>{if(A(i[c])){let h=Ye(c)+s,o=fn(c,n,r),l=i[c]=un(i[c],h,o);a.setEncodingProperty(s,c,l)}}),ht.forEach(c=>{let h=i[c.parent];if(h){let o=c.child;if(A(h[o])){let l=Ye(c)+s,u=fn(c,n,r),d=h[o]=un(h[o],l,u);a.setEncodingProperty(s,c,d)}}})}),r.autoAddCount){let i={name:Ye(m.CHANNEL)+t.encodings.length,enum:fn(m.CHANNEL,n,r)},s={name:Ye(m.AUTOCOUNT)+t.encodings.length,enum:[!1,!0]},c={channel:i,autoCount:s,type:ee};t.encodings.push(c);let h=t.encodings.length-1;a.setEncodingProperty(h,m.CHANNEL,i),a.setEncodingProperty(h,m.AUTOCOUNT,s)}return new ar(t,a,n,r,{})}get wildcardIndex(){return this._wildcardIndex}get schema(){return this._schema}get specQuery(){return this._spec}duplicate(){return new ar((0,U.duplicate)(this._spec),this._wildcardIndex,this._schema,this._opt,(0,U.duplicate)(this._assignedWildcardIndex))}setMark(t){let n=this._wildcardIndex.mark.name;this._assignedWildcardIndex[n]=this._spec.mark=t}resetMark(){let t=this._spec.mark=this._wildcardIndex.mark;delete this._assignedWildcardIndex[t.name]}getMark(){return this._spec.mark}getEncodingProperty(t,n){let r=this._spec.encodings[t];return oe(n)?r[n.parent][n.child]:r[n]}setEncodingProperty(t,n,r,a){let i=this._spec.encodings[t];n===m.CHANNEL&&i.channel&&!A(i.channel)&&this._channelFieldCount[i.channel]--,oe(n)?i[n.parent][n.child]=r:tn(n)&&r===!0?i[n]=(0,U.extend)({},i[n],{enum:void 0,name:void 0}):i[n]=r,this._assignedWildcardIndex[a.name]=r,n===m.CHANNEL&&(this._channelFieldCount[r]=(this._channelFieldCount[r]||0)+1)}resetEncodingProperty(t,n,r){let a=this._spec.encodings[t];n===m.CHANNEL&&this._channelFieldCount[a.channel]--,oe(n)?a[n.parent][n.child]=r:a[n]=r,delete this._assignedWildcardIndex[r.name]}channelUsed(t){return this._channelFieldCount[t]>0}channelEncodingField(t){return O(this.getEncodingQueryByChannel(t))}getEncodings(){return this._spec.encodings.filter(t=>!ie(t))}getEncodingQueryByChannel(t){for(let n of this._spec.encodings)if(n.channel===t)return n}getEncodingQueryByIndex(t){return this._spec.encodings[t]}isAggregate(){return Yl(this._spec)}getVlStack(){return ci(this._spec)}getStackOffset(){return Ql(this._spec)}getStackChannel(){return Vl(this._spec)}toShorthand(t){if(t){if((0,Gc.isString)(t))return qc(this.specQuery,t);let n=Ke(t);return je(this._spec,n.include,n.replacer)}return je(this._spec)}toSpec(t){if(A(this._spec.mark))return null;let n={};return t||(t=this._spec.data),t&&(n.data=t),this._spec.transform&&(n.transform=this._spec.transform),n.mark=this._spec.mark,n.encoding=mi(this.specQuery.encodings,{schema:this._schema,wildcardMode:"null"}),this._spec.width&&(n.width=this._spec.width),this._spec.height&&(n.height=this._spec.height),this._spec.background&&(n.background=this._spec.background),this._spec.padding&&(n.padding=this._spec.padding),this._spec.title&&(n.title=this._spec.title),n.encoding===null?null:((this._spec.config||this._opt.defaultSpecConfig)&&(n.config=(0,U.extend)({},this._opt.defaultSpecConfig,this._spec.config)),n)}getRankingScore(t){return this._rankingScore[t]}setRankingScore(t,n){this._rankingScore[t]=n}};function Yc(e){if(e.groupBy){let t={groupBy:e.groupBy};e.orderBy&&(t.orderGroupBy=e.orderBy);let n={spec:(0,U.duplicate)(e.spec),nest:[t]};return e.chooseBy&&(n.chooseBy=e.chooseBy),e.config&&(n.config=e.config),n}return(0,U.duplicate)(e)}function la(e){return e.items!==void 0}function Vn(e){let t=e.items[0];for(;t&&la(t);)t=t.items[0];return t}var Pe=class{constructor(e){this.type=e,this.scoreIndex=this.initScore()}getFeatureScore(e){let t=this.type,n=this.scoreIndex[e];if(n!==void 0)return{type:t,feature:e,score:n}}},K;(function(e){e[e.Q=ee]="Q",e[e.BIN_Q="bin_"+ee]="BIN_Q",e[e.T=ge]="T",e[e.TIMEUNIT_T="timeUnit_time"]="TIMEUNIT_T",e[e.TIMEUNIT_O="timeUnit_"+Ne]="TIMEUNIT_O",e[e.O=Ne]="O",e[e.N=Ce]="N",e[e.K=se.KEY]="K",e[e.NONE="-"]="NONE"})(K||(K={}));const ca=K.Q,Ut=K.BIN_Q,Kn=K.T,Re=K.TIMEUNIT_T,Ft=K.TIMEUNIT_O,Dt=K.O,_t=K.N,Jn=K.K,jt=K.NONE;function Pt(e){return e.bin?K.BIN_Q:e.timeUnit?we(Oe(e))?K.TIMEUNIT_O:K.TIMEUNIT_T:e.type}var Qc=class extends Pe{constructor(){super("Axis")}initScore(e={}){e=Object.assign({},Qe,e);let t={};return[{feature:Ut,opt:"preferredBinAxis"},{feature:Kn,opt:"preferredTemporalAxis"},{feature:Re,opt:"preferredTemporalAxis"},{feature:Ft,opt:"preferredTemporalAxis"},{feature:Dt,opt:"preferredOrdinalAxis"},{feature:_t,opt:"preferredNominalAxis"}].forEach(n=>{e[n.opt]==="x"?t[n.feature+"_y"]=-.01:e[n.opt]==="y"&&(t[n.feature+"_x"]=-.01)}),t}featurize(e,t){return e+"_"+t}getScore(e,t,n){return e.getEncodings().reduce((r,a)=>{if(O(a)||P(a)){let i=Pt(a),s=this.featurize(i,a.channel),c=this.getFeatureScore(s);c&&r.push(c)}return r},[])}},Vc=class extends Pe{constructor(){super("Dimension")}initScore(){return{row:-2,column:-2,color:0,opacity:0,size:0,shape:0}}getScore(e,t,n){return e.isAggregate()&&e.getEncodings().reduce((r,a)=>{if(P(a)||O(a)&&!a.aggregate){let i=this.getFeatureScore(a.channel+"");if(i&&i.score>r.score)return i}return r},{type:"Dimension",feature:"No Dimension",score:-5}),[]}},Kc=class extends Pe{constructor(){super("Facet")}initScore(e){e=Object.assign({},Qe,e);let t={};return e.preferredFacet==="row"?t[Se]=-.01:e.preferredFacet==="column"&&(t.row=-.01),t}getScore(e,t,n){return e.getEncodings().reduce((r,a)=>{if(O(a)||P(a)){let i=this.getFeatureScore(a.channel);i&&r.push(i)}return r},[])}},Jc=class extends Pe{constructor(){super("SizeChannel")}initScore(){return{bar_size:-2,tick_size:-2}}getScore(e,t,n){let r=e.getMark();return e.getEncodings().reduce((a,i)=>{if(O(i)||P(i)){let s=r+"_"+i.channel,c=this.getFeatureScore(s);c&&a.push(c)}return a},[])}},Xc=class extends Pe{constructor(){super("TypeChannel")}initScore(){let e={},t={x:0,y:0,size:-.575,color:-.725,text:-2,opacity:-3,shape:-10,row:-10,column:-10,detail:-20};[ca,Kn,Re].forEach(a=>{(0,U.keys)(t).forEach(i=>{e[this.featurize(a,i)]=t[i]})});let n=(0,U.extend)({},t,{row:-.75,column:-.75,shape:-3.1,text:-3.2,detail:-4});[Ut,Ft,Dt].forEach(a=>{(0,U.keys)(n).forEach(i=>{e[this.featurize(a,i)]=n[i]})});let r={x:0,y:0,color:-.6,shape:-.65,row:-.7,column:-.7,text:-.8,detail:-2,size:-3,opacity:-3.1};return(0,U.keys)(r).forEach(a=>{e[this.featurize(_t,a)]=r[a],e[this.featurize(Jn,a)]=V(["x","y","detail"],a)?-1:r[a]-2}),e}featurize(e,t){return e+"_"+t}getScore(e,t,n){let r=e.getEncodings().reduce((i,s)=>{if(O(s)||P(s)){let c=pi(s);(i[c]=i[c]||[]).push(s)}return i},{}),a=[];return G(r,i=>{let s=i.reduce((c,h)=>{if(O(h)||P(h)){let o=Pt(h),l=this.featurize(o,h.channel),u=this.getFeatureScore(l);if(c===null||u.score>c.score)return u}return c},null);a.push(s)}),a}},Zc=class extends Pe{constructor(){super("Mark")}initScore(){return eu()}getScore(e,t,n){let r=e.getMark();(r==="circle"||r==="square")&&(r=ze);let a=e.getEncodingQueryByChannel("x"),i=a?Pt(a):jt,s=e.getEncodingQueryByChannel("y"),c=s?Pt(s):jt,h=!e.isAggregate(),o=i+"_"+c+"_"+h+"_"+r,l=this.getFeatureScore(o);return l?[l]:(console.error("feature score missing for",o),[])}};function $(e,t,n,r){return e+"_"+t+"_"+n+"_"+r}function eu(){let e=[ca,Kn],t=[Ut,Ft,Dt,_t,Jn,jt],n={};e.forEach(r=>{e.forEach(a=>{G({point:0,text:-.2,tick:-.5,rect:-1,bar:-2,line:-2,area:-2,rule:-2.5},(i,s)=>{let c=$(r,a,!0,s);n[c]=i}),G({point:0,text:-.2,tick:-.5,bar:-2,line:-2,area:-2,rule:-2.5},(i,s)=>{let c=$(r,a,!1,s);n[c]=i})})}),e.forEach(r=>{t.forEach(a=>{G({tick:0,point:-.2,text:-.5,bar:-2,line:-2,area:-2,rule:-2.5},(i,s)=>{let c=$(r,a,!0,s);n[c]=i;let h=$(a,r,!0,s);n[h]=i})}),[Re].forEach(a=>{G({point:0,text:-.5,tick:-1,bar:-2,line:-2,area:-2,rule:-2.5},(i,s)=>{let c=$(r,a,!0,s);n[c]=i;let h=$(a,r,!0,s);n[h]=i})}),[jt,_t,Dt,Jn].forEach(a=>{G({bar:0,point:-.2,tick:-.25,text:-.3,line:-2,area:-2,rule:-2.5},(i,s)=>{let c=$(r,a,!1,s);n[c]=i;let h=$(a,r,!1,s);n[h]=i})}),[Ut].forEach(a=>{G({bar:0,point:-.2,tick:-.25,text:-.3,line:-.5,area:-.5,rule:-2.5},(i,s)=>{let c=$(r,a,!1,s);n[c]=i;let h=$(a,r,!1,s);n[h]=i})}),[Re,Ft].forEach(a=>{G({line:0,area:-.1,bar:-.2,point:-.3,tick:-.35,text:-.4,rule:-2.5},(i,s)=>{let c=$(r,a,!1,s);n[c]=i;let h=$(a,r,!1,s);n[h]=i})})}),[Re].forEach(r=>{[Re].forEach(a=>{let i={point:0,rect:-.1,text:-.5,tick:-1,bar:-2,line:-2,area:-2,rule:-2.5};G(i,(s,c)=>{let h=$(r,a,!0,c);n[h]=s}),G(i,(s,c)=>{let h=$(r,a,!1,c);n[h]=s})}),t.forEach(a=>{let i={tick:0,point:-.2,text:-.5,rect:-1,bar:-2,line:-2,area:-2,rule:-2.5};G(i,(s,c)=>{let h=$(r,a,!0,c);n[h]=s}),G(i,(s,c)=>{let h=$(a,r,!0,c);n[h]=s}),G(i,(s,c)=>{let h=$(r,a,!1,c);n[h]=s}),G(i,(s,c)=>{let h=$(a,r,!1,c);n[h]=s})})});for(let r of t)for(let a of t){let i={point:0,rect:0,text:-.1,tick:-1,bar:-2,line:-2,area:-2,rule:-2.5};G(i,(s,c)=>{let h=$(r,a,!0,c);n[h]=s}),G(i,(s,c)=>{let h=$(r,a,!1,c);n[h]=s})}return n}var tu=[new Qc,new Vc,new Kc,new Zc,new Jc,new Xc];function nu(e,t,n){let r=tu.reduce((a,i)=>{let s=i.getScore(e,t,n);return a.concat(s)},[]);return{score:r.reduce((a,i)=>a+i.score,0),features:r}}const be="aggregationQuality";function ru(e,t,n){let r=iu(e,t,n);return{score:r.score,features:[r]}}function iu(e,t,n){let r=e.getEncodings();if(e.isAggregate()){if(ue(r,a=>O(a)&&(a.type==="quantitative"&&!a.bin&&!a.aggregate||a.type==="temporal"&&!a.timeUnit)))return{type:be,score:.1,feature:"Aggregate with raw continuous"};if(ue(r,a=>O(a)&&ve(a))){let a=ue(r,s=>O(s)&&s.aggregate==="count"||Tt(s)),i=ue(r,s=>O(s)&&!!s.bin);return a?{type:be,score:.8,feature:"Aggregate with count"}:i?{type:be,score:.7,feature:"Aggregate with bin but without count"}:{type:be,score:.9,feature:"Aggregate without count and without bin"}}return{type:be,score:.3,feature:"Aggregate without dimension"}}else return ue(r,a=>O(a)&&!ve(a))?{type:be,score:1,feature:"Raw with measure"}:{type:be,score:.2,feature:"Raw without measure"}}function au(e,t,n){let r=e.wildcardIndex.encodingIndicesByProperty.get("field");if(!r)return{score:0,features:[]};let a=e.specQuery.encodings,i=t.fieldSchemas.length,s=[],c=0,h=1;for(let o=r.length-1;o>=0;o--){let l=r[o],u=a[l],d;if(O(u))d=u.field;else continue;let p=e.wildcardIndex.encodings[l].get("field"),f=t.fieldSchema(d).index,g=-f*h;c+=g,s.push({score:g,type:"fieldOrder",feature:`field ${p.name} is ${d} (#${f} in the schema)`}),h*=i}return{score:c,features:s}}var ua={};function Xn(e,t){ua[e]=t}function ou(e){return ua[e]}function da(e,t,n,r){return!t.nest||r===t.nest.length?(t.orderBy||t.chooseBy)&&(e.items.sort(su(t.orderBy||t.chooseBy,n,t.config)),t.chooseBy&&e.items.length>0&&e.items.splice(1)):(e.items.forEach(a=>{da(a,t,n,r+1)}),t.nest[r].orderGroupBy&&e.items.sort(lu(t.nest[r].orderGroupBy,n,t.config))),e}function su(e,t,n){return(r,a)=>e instanceof Array?Rt(e,r,a,t,n):Rt([e],r,a,t,n)}function lu(e,t,n){return(r,a)=>{let i=Vn(r),s=Vn(a);return e instanceof Array?Rt(e,i,s,t,n):Rt([e],i,s,t,n)}}function Rt(e,t,n,r,a){for(let i of e){let s=fa(n,i,r,a).score-fa(t,i,r,a).score;if(s!==0)return s}return 0}function fa(e,t,n,r){if(e.getRankingScore(t)!==void 0)return e.getRankingScore(t);let a=ou(t)(e,n,r);return e.setRankingScore(t,a),a}Xn("effectiveness",nu),Xn(be,ru),Xn("fieldOrder",au);function cu(e,t,n){let r={};return e=e.map(function(a){return n.smallRangeStepForHighCardinalityOrFacet&&(a=uu(a,t,r,n)),n.nominalColorScaleForHighCardinality&&(a=du(a,t,r,n)),n.xAxisOnTopForHighYCardinalityWithoutColumn&&(a=fu(a,t,r,n)),a}),e}function uu(e,t,n,r){["row","y",Se,"x"].forEach(s=>{n[s]=e.getEncodingQueryByChannel(s)});let a=n.y;if(a!==void 0&&O(a)&&(n.row||t.cardinality(a)>r.smallRangeStepForHighCardinalityOrFacet.maxCardinality)){a.scale===void 0&&(a.scale={});let s=Oe(a);a.scale&&(s===void 0||we(s))&&(a.scale.rangeStep||(a.scale.rangeStep=12))}let i=n.x;if(O(i)&&(n.column||t.cardinality(i)>r.smallRangeStepForHighCardinalityOrFacet.maxCardinality)){i.scale===void 0&&(i.scale={});let s=Oe(i);i.scale&&(s===void 0||we(s))&&(i.scale.rangeStep||(i.scale.rangeStep=12))}return e}function du(e,t,n,r){n[ce]=e.getEncodingQueryByChannel(ce);let a=n[ce];return O(a)&&a!==void 0&&(a.type==="nominal"||a.type===se.KEY)&&t.cardinality(a)>r.nominalColorScaleForHighCardinality.maxCardinality&&(a.scale===void 0&&(a.scale={}),a.scale&&(a.scale.range||(a.scale.scheme=r.nominalColorScaleForHighCardinality.palette))),e}function fu(e,t,n,r){if([Se,"x","y"].forEach(a=>{n[a]=e.getEncodingQueryByChannel(a)}),n.column===void 0){let a=n.x,i=n.y;O(a)&&O(i)&&i!==void 0&&i.field&&we(Oe(i))&&a!==void 0&&t.cardinality(i)>r.xAxisOnTopForHighYCardinalityWithoutColumn.maxCardinality&&(a.axis===void 0&&(a.axis={}),a.axis&&!a.axis.orient&&(a.axis.orient="top"))}return e}function pu(e,t,n=Qe){let r=zc.build(e,t,n),a=r.wildcardIndex,i=[r];return n.propertyPrecedence.forEach(s=>{let c=ol(s);if(a.hasProperty(c)){let h=Rc(c)(a,t,n);i=i.reduce(h,[])}}),n.stylize&&(n.nominalColorScaleForHighCardinality!==null||n.smallRangeStepForHighCardinalityOrFacet!==null||n.xAxisOnTopForHighYCardinalityWithoutColumn!==null)?cu(i,t,n):i}function pa(e,t,n){e=Object.assign({},Yc(e),{config:Object.assign({},Qe,n,e.config)});let r=da(Wc(pu(e.spec,t,e.config),e.nest),e,t,0);return{query:e,result:r}}var Zn=Xe(Ma(),1),E=Xe(qa(),1);const $e={[R.BOOLEAN]:(0,E.jsx)(Da,{className:"h-5 w-5 inline-flex opacity-60"}),[R.DATETIME]:(0,E.jsx)(Fa,{className:"h-5 w-5 inline-flex opacity-60"}),[R.NUMBER]:(0,E.jsx)(_a,{className:"h-5 w-5 inline-flex opacity-60"}),[R.STRING]:(0,E.jsx)(ja,{className:"h-5 w-5 inline-flex opacity-60"}),[R.INTEGER]:(0,E.jsx)(io,{className:"h-5 w-5 inline-flex opacity-60"})};var ha=12;const hu=e=>{let t=(0,mr.c)(45),{schema:n}=e,[r,a]=(0,Zn.useState)(),[i,s]=(0,Zn.useState)(),c,h,o,l,u,d,p,f;if(t[0]!==n||t[1]!==r||t[2]!==i){c=n.fieldNames();let k;t[11]!==n||t[12]!==r?(k=r?n.stats({field:r,channel:"x"}):void 0,t[11]=n,t[12]=r,t[13]=k):k=t[13],o=k;let I;t[14]===Symbol.for("react.memo_cache_sentinel")?(I=(0,E.jsx)(ro,{className:"text-muted-foreground",width:40,height:40,strokeWidth:1.5}),t[14]=I):I=t[14];let _=I,xe=i?c:c.slice(0,ha);h=c.length>ha,d="flex flex-col justify-center items-center h-full flex-1 gap-2",p=_,f=(0,E.jsxs)("span",{className:"text-muted-foreground font-semibold",children:[c.length>0?c.length:"No"," fields"]}),l="hidden lg:grid grid-cols-2 xl:grid-cols-3 gap-2 p-2 bg-(--slate-1) border rounded lg:items-center items-start w-fit grid-flow-dense max-h-[300px] overflow-auto";let J;t[15]!==n||t[16]!==r?(J=W=>{let fe=n.cardinality({channel:"x",field:W});return(0,E.jsxs)("span",{className:Ha("hover:bg-muted self-start px-2 py-2 rounded flex flex-row gap-1 items-center cursor-pointer lg:justify-center text-sm truncate shrink-0 overflow-hidden",r===W&&"bg-muted"),onClick:()=>{if(r===W){a(void 0);return}a(W)},children:[$e[n.primitiveType(W)],W,fe>1&&(0,E.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",fe,")"]})]},W)},t[15]=n,t[16]=r,t[17]=J):J=t[17],u=xe.map(J),t[0]=n,t[1]=r,t[2]=i,t[3]=c,t[4]=h,t[5]=o,t[6]=l,t[7]=u,t[8]=d,t[9]=p,t[10]=f}else c=t[3],h=t[4],o=t[5],l=t[6],u=t[7],d=t[8],p=t[9],f=t[10];let g;t[18]!==h||t[19]!==i?(g=h&&(0,E.jsx)(lr,{"data-testid":"marimo-plugin-data-explorer-show-more-columns",variant:"link",size:"sm",className:"self-center col-span-3 -mt-1",onClick:()=>s(yu),children:i?"Show less":"Show more"}),t[18]=h,t[19]=i,t[20]=g):g=t[20];let y;t[21]!==l||t[22]!==u||t[23]!==g?(y=(0,E.jsxs)("div",{className:l,children:[u,g]}),t[21]=l,t[22]=u,t[23]=g,t[24]=y):y=t[24];let v=r||"",b=c.length===0,x;t[25]===Symbol.for("react.memo_cache_sentinel")?(x=k=>{a(k)},t[25]=x):x=t[25];let S;t[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,E.jsx)(et,{className:"min-w-[210px] h-full",children:(0,E.jsx)(fr,{placeholder:"Select a column"})}),t[26]=S):S=t[26];let C;t[27]===n?C=t[28]:(C=n.fieldNames().map(k=>(0,E.jsx)(Te,{value:k.toString(),children:(0,E.jsxs)("span",{className:"flex items-center gap-2 flex-1",children:[$e[n.primitiveType(k)],(0,E.jsx)("span",{className:"flex-1",children:k}),(0,E.jsxs)("span",{className:"text-muted-foreground text-xs font-semibold",children:["(",n.vlType(k),")"]})]})},k)),t[27]=n,t[28]=C);let T;t[29]===C?T=t[30]:(T=(0,E.jsx)(Ze,{children:(0,E.jsx)(Le,{children:C})}),t[29]=C,t[30]=T);let w;t[31]!==T||t[32]!==v||t[33]!==b?(w=(0,E.jsx)("div",{className:"lg:hidden",children:(0,E.jsxs)(tt,{"data-testid":"marimo-plugin-data-explorer-column-select",value:v,disabled:b,onValueChange:x,children:[S,T]})}),t[31]=T,t[32]=v,t[33]=b,t[34]=w):w=t[34];let N;t[35]!==r||t[36]!==o?(N=r&&(0,E.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2 p-2 text-sm",children:mu.map(k=>(0,E.jsxs)("div",{className:"flex flex-row gap-2 min-w-[100px]",children:[(0,E.jsx)("span",{className:"font-semibold",children:k}),(0,E.jsx)("span",{children:(0,E.jsx)(gu,{value:o==null?void 0:o[k]})})]},k))}),t[35]=r,t[36]=o,t[37]=N):N=t[37];let D;return t[38]!==w||t[39]!==N||t[40]!==d||t[41]!==p||t[42]!==f||t[43]!==y?(D=(0,E.jsxs)("div",{className:d,children:[p,f,y,w,N]}),t[38]=w,t[39]=N,t[40]=d,t[41]=p,t[42]=f,t[43]=y,t[44]=D):D=t[44],D};var mu=["distinct","min","max","mean","median","q1","q3","stdev"],gu=e=>{let t=(0,mr.c)(8),{value:n}=e,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={maximumFractionDigits:2},t[0]=r):r=t[0];let a=Xa(r),i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={year:"numeric",month:"short",day:"numeric"},t[1]=i):i=t[1];let s=Ja(i);if(typeof n=="number"){let c;return t[2]!==a||t[3]!==n?(c=a.format(n),t[2]=a,t[3]=n,t[4]=c):c=t[4],c}if(typeof n=="string")return n;if(typeof n=="object"&&n instanceof Date){let c;return t[5]!==s||t[6]!==n?(c=s.format(n),t[5]=s,t[6]=n,t[7]=c):c=t[7],c}return String(n)};function yu(e){return!e}var vu=["argmax","argmin","average","count","distinct","exponential","exponentialb","product","max","mean","median","min","missing","q1","q3","ci0","ci1","stderr","stdev","stdevp","sum","valid","values","variance","variancep"];const bu=e=>Pa(e)?vu.includes(e):!1;function xu(e){return e?e==="bin"?{bin:!0}:bu(e)?{aggregate:e}:Eu(e)?{timeUnit:e}:{}:{}}function Eu(e){return e?ma.includes(e)||ga.includes(e):!1}const Tu=["bin","min","max","mean","median","sum"],ma=["year","month","date","day","hours","minutes","seconds","milliseconds"],ga=["yearmonth","yearmonthdate","monthdate"];function Su(e){let{aggregate:t,bin:n,timeUnit:r}=e;if(n)return"bin";if(t)return t.toString();if(r)return r.toString()}const Nu=["?","area","bar","circle","geoshape","line","point","rect","rule","square","text","tick","trail"],Cu={type:"histograms",limit:12,createQuery(e){return{spec:{data:e.spec.data,mark:"?",transform:e.spec.transform,encodings:[{channel:"?",bin:"?",timeUnit:"?",field:"?",type:"?"},{channel:"?",aggregate:"count",field:"*",type:"quantitative"}]},groupBy:"fieldTransform",orderBy:["fieldOrder","aggregationQuality","effectiveness"],chooseBy:["aggregationQuality","effectiveness"],config:{autoAddCount:!1}}}};function ya(e){let t={};for(let n in e)e[n]!==void 0&&(t[n]=e[n]);return t}function wu(e,t){let{fn:n,...r}=e;return{channel:t,...xu(n),...r}}function Au(e){let{aggregate:t,bin:n,timeUnit:r,field:a,scale:i,legend:s,axis:c,sort:h,description:o}=e,{type:l}=e;if(A(l))throw Error("Wildcard not support");l==="ordinal"&&(La.warn("Ordinal type is not supported. Using nominal type instead."),l="nominal");let u=Su({aggregate:t,bin:n,timeUnit:r});return Wa(a!==void 0,"Field is required for fieldQ"),ya({field:a,fn:u,type:l,sort:h,scale:i,axis:c,legend:s,description:o})}function Ou(e){return{mark:e.mark,encodings:ku(e.encoding),config:e.config}}function ku(e){return e?Object.entries(e).map(([t,n])=>wu(n,t)):[]}function er(e){let{type:t,limit:n,additionalFieldQuery:r}=e;return{type:t,limit:n,createQuery(a){return{spec:{...a.spec,encodings:[...a.spec.encodings,r]},groupBy:"field",orderBy:["fieldOrder","aggregationQuality","effectiveness"],chooseBy:["aggregationQuality","effectiveness"],config:{autoAddCount:!0}}}}}const Mu=er({type:"addCategoricalField",limit:4,additionalFieldQuery:{channel:"?",field:"?",type:"nominal"}}),Iu=er({type:"addQuantitativeField",limit:4,additionalFieldQuery:{channel:"?",bin:"?",aggregate:"?",field:"?",type:"quantitative"}}),Uu=er({type:"addTemporalField",limit:2,additionalFieldQuery:{channel:"?",hasFn:!0,timeUnit:"?",field:"?",type:"temporal"}}),Fu=["color","fill","stroke","opacity","fillOpacity","strokeOpacity","strokeWidth","size","shape","strokeDash","angle","time"];function Du(e){return!ba(e).hasAnyWildcard}function _u(e){let t=["x","y","color"],n=["row","column"],r=new Set(e.encodings.map(s=>s.channel)),a=t.every(s=>r.has(s)),i=n.some(s=>r.has(s));return a&&i}function va(e){return e.encodings.length===0}function ba(e){let t=!1,n=!1,r=!1;for(let a of e.encodings)re(a)||(P(a)?A(a.autoCount)&&(n=!0):(A(a.field)&&(t=!0),(A(a.aggregate)||A(a.bin)||A(a.timeUnit))&&(n=!0),A(a.channel)&&(r=!0)));return{hasAnyWildcard:r||t||n,hasWildcardField:t,hasWildcardFn:n,hasWildcardChannel:r}}var xa={name:"source"};function ju(e){let t=!1,n=!1,r=!1;return e.encodings.forEach(a=>{a.channel==="x"||a.channel==="y"?t=!0:a.channel==="row"||a.channel==="column"?r=!0:typeof a.channel=="string"&&Za(Fu,a.channel)&&(n=!0)}),{hasOpenPosition:t,hasStyleChannel:n,hasOpenFacet:r}}function Pu(e,t){let n={},{hasOpenPosition:r,hasStyleChannel:a,hasOpenFacet:i}=ju(e.spec);return(r||a)&&(n.addQuantitativeField=$t(Iu,e,t)),(r||a||i)&&(n.addCategoricalField=$t(Mu,e,t)),r&&(n.addTemporalField=$t(Uu,e,t)),n}function tr(e,t){if(va(e.spec))return{plots:[],query:e,limit:1};let n=pa(e,t).result;return{plots:[Ea(n,xa)[0]],query:e,limit:1}}function $t(e,t,n){let r=e.createQuery(t),a=pa(r,n).result;return{plots:Ea(a,xa),query:r,limit:e.limit}}function Ea(e,t){return e.items.map(n=>la(n)?Ta(t,Vn(n)):Ta(t,n))}function Ta(e,t){return{fieldInfos:t.getEncodings().filter(O).map(n=>({fieldDef:Au(n),channel:n.channel})),spec:t.toSpec(e)}}function Ru(e){let{spec:t,autoAddCount:n}=e,r=Ou(t),{hasAnyWildcard:a,hasWildcardFn:i,hasWildcardField:s}=ba(r);return{spec:r,groupBy:$u({hasWildcardFn:i,hasWildcardField:s}),orderBy:["fieldOrder","aggregationQuality","effectiveness"],chooseBy:["aggregationQuality","effectiveness"],config:a?{autoAddCount:n}:void 0}}function $u(e){let{hasWildcardFn:t,hasWildcardField:n}=e;return t?"fieldTransform":n?"field":"encoding"}function Bu(){return{mark:"?",encoding:{},config:{},schema:null}}var{valueAtom:Be,useActions:Lu}=Ga(Bu,{setSchema:(e,t)=>({...e,schema:t}),setMark:(e,t)=>({...e,mark:t}),setEncoding:(e,t)=>{let n=ya({...e.encoding,...t});return{...e,encoding:n}},set:(e,t)=>{let{schema:n,...r}=t;return{...e,...r}}});function Sa(){return Lu()}const Wu=ka(e=>{let t=e(Be);if(!t.schema)return{};let n=Ru({spec:t,autoAddCount:!0});return va(n.spec)?{main:tr(n,t.schema),histograms:$t(Cu,n,t.schema)}:Du(n.spec)&&!_u(n.spec)?{main:tr(n,t.schema),...Pu(n,t.schema)}:{main:tr(n,t.schema)}});var nr=Wt(),qu=["x","y","row","column"],Hu=["color","size","shape"];const Gu=e=>{let t=(0,nr.c)(26),{schema:n,mark:r}=e,a=Lt(Be),i=Sa(),s=a.encoding.x&&a.encoding.y,c;t[0]!==i||t[1]!==s||t[2]!==n||t[3]!==a.encoding?(c=C=>(0,E.jsx)(zu,{schema:n,label:C,disabled:(C==="row"||C==="column")&&!s,fieldDefinition:a.encoding[C],onChange:T=>i.setEncoding({[C]:T})},C),t[0]=i,t[1]=s,t[2]=n,t[3]=a.encoding,t[4]=c):c=t[4];let h=c,o;t[5]===r?o=t[6]:(o=r.toString(),t[5]=r,t[6]=o);let l;t[7]===i?l=t[8]:(l=C=>i.setMark(C),t[7]=i,t[8]=l);let u;t[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,E.jsx)(et,{children:(0,E.jsx)(fr,{placeholder:"Mark"})}),t[9]=u):u=t[9];let d;t[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,E.jsx)(Ze,{children:(0,E.jsxs)(Le,{children:[(0,E.jsx)(dr,{children:"Mark"}),Nu.map(Qu)]})}),t[10]=d):d=t[10];let p;t[11]!==o||t[12]!==l?(p=(0,E.jsxs)(tt,{"data-testid":"marimo-plugin-data-explorer-mark-select",value:o,onValueChange:l,children:[u,d]}),t[11]=o,t[12]=l,t[13]=p):p=t[13];let f=p,g;t[14]===Symbol.for("react.memo_cache_sentinel")?(g=(0,E.jsx)("span",{className:"col-span-2 flex items-center justify-between w-full",children:(0,E.jsx)("div",{className:"text-sm font-semibold",children:"Encodings"})}),t[14]=g):g=t[14];let y;t[15]===h?y=t[16]:(y=qu.map(h),t[15]=h,t[16]=y);let v;t[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,E.jsx)("div",{children:"Mark"}),t[17]=v):v=t[17];let b;t[18]===f?b=t[19]:(b=(0,E.jsxs)("span",{className:"col-span-2 text-sm font-semibold w-full border-t border-divider flex items-center justify-between pt-2 pr-[30px]",children:[v,f]}),t[18]=f,t[19]=b);let x;t[20]===h?x=t[21]:(x=Hu.map(h),t[20]=h,t[21]=x);let S;return t[22]!==b||t[23]!==x||t[24]!==y?(S=(0,E.jsxs)("div",{className:"grid gap-x-2 gap-y-4 justify-items-start py-3 pl-4 pr-2 bg-(--slate-1) border rounded items-center grid-template-columns-[repeat(2,_minmax(0,_min-content))] self-start",children:[g,y,b,x]}),t[22]=b,t[23]=x,t[24]=y,t[25]=S):S=t[25],S};var zu=e=>{let t=(0,nr.c)(43),{label:n,schema:r,fieldDefinition:a,disabled:i,onChange:s}=e,c;t[0]!==a||t[1]!==r?(c=()=>{if(!a)return"--";if(a.field==="*")return(0,E.jsxs)("span",{className:"flex gap-2 flex-1",children:[$e[R.NUMBER],(0,E.jsx)("span",{className:"text-left flex-1",children:"Count"})]});let _=a.field.toString();return(0,E.jsxs)("span",{className:"flex gap-2 flex-1",children:[$e[r.primitiveType(_)],(0,E.jsx)("span",{className:"text-left flex-1",children:a.fn?`${a.fn}(${a.field})`:_})]})},t[0]=a,t[1]=r,t[2]=c):c=t[2];let h=c,o;t[3]===s?o=t[4]:(o=()=>{s(void 0)},t[3]=s,t[4]=o);let l=o,u;t[5]===(a==null?void 0:a.field)?u=t[6]:(u=(a==null?void 0:a.field.toString())??"",t[5]=a==null?void 0:a.field,t[6]=u);let d=u,p;t[7]===n?p=t[8]:(p=(0,E.jsx)(no,{className:"text-(--slate-11) font-semibold",children:n}),t[7]=n,t[8]=p);let f;t[9]!==s||t[10]!==r?(f=_=>{s(_==="*"?{field:"*",fn:"count",type:"quantitative"}:{field:_,type:r.vlType(_)})},t[9]=s,t[10]=r,t[11]=f):f=t[11];let g=d?l:void 0,y;t[12]===h?y=t[13]:(y=h(),t[12]=h,t[13]=y);let v;t[14]!==g||t[15]!==y?(v=(0,E.jsx)(et,{className:"min-w-[140px] lg:min-w-[210px] h-full",onClear:g,children:y}),t[14]=g,t[15]=y,t[16]=v):v=t[16];let b;t[17]===r?b=t[18]:(b=r.fieldNames().map(_=>(0,E.jsx)(Te,{value:_.toString(),children:(0,E.jsxs)("span",{className:"flex items-center gap-2 flex-1",children:[$e[r.primitiveType(_)],(0,E.jsx)("span",{className:"flex-1",children:_}),(0,E.jsxs)("span",{className:"text-muted-foreground text-xs font-semibold",children:["(",r.vlType(_),")"]})]})},_)),t[17]=r,t[18]=b);let x;t[19]===r?x=t[20]:(x=r.fieldNames().length===0&&(0,E.jsx)(Te,{disabled:!0,value:"--",children:"No columns"}),t[19]=r,t[20]=x);let S;t[21]===Symbol.for("react.memo_cache_sentinel")?(S=(0,E.jsx)(pr,{}),t[21]=S):S=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=(0,E.jsx)(Te,{value:"*",children:(0,E.jsxs)("span",{className:"flex items-center gap-1 flex-1",children:[$e[R.NUMBER],(0,E.jsx)("span",{className:"flex-1",children:"Count"})]})},"*"),t[22]=C):C=t[22];let T;t[23]!==x||t[24]!==b?(T=(0,E.jsx)(Ze,{children:(0,E.jsxs)(Le,{children:[b,x,S,C]})}),t[23]=x,t[24]=b,t[25]=T):T=t[25];let w;t[26]!==i||t[27]!==d||t[28]!==T||t[29]!==f||t[30]!==v?(w=(0,E.jsxs)(tt,{value:d,disabled:i,onValueChange:f,children:[v,T]}),t[26]=i,t[27]=d,t[28]=T,t[29]=f,t[30]=v,t[31]=w):w=t[31];let N;t[32]!==a||t[33]!==s?(N=a&&(0,E.jsx)(Yu,{field:a,onChange:s}),t[32]=a,t[33]=s,t[34]=N):N=t[34];let D;t[35]===N?D=t[36]:(D=(0,E.jsx)("div",{className:"w-[26px]",children:N}),t[35]=N,t[36]=D);let k;t[37]!==w||t[38]!==D?(k=(0,E.jsxs)("div",{className:"flex flex-row gap-1 h-[26px]",children:[w,D]}),t[37]=w,t[38]=D,t[39]=k):k=t[39];let I;return t[40]!==k||t[41]!==p?(I=(0,E.jsxs)(E.Fragment,{children:[p,k]}),t[40]=k,t[41]=p,t[42]=I):I=t[42],I},rr="__",Yu=e=>{let t=(0,nr.c)(10),{field:n,onChange:r}=e;if(n.field==="*")return null;let a;if(t[0]!==n||t[1]!==r){a=Symbol.for("react.early_return_sentinel");e:{let i=[];if(n.type===se.QUANTITATIVE&&(i=[["",Tu]]),n.type===se.TEMPORAL&&(i=[["Single",ma],["Multi",ga]]),i.length>0){let s=d=>{r({...n,fn:d===rr?void 0:d})},c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,E.jsx)(et,{className:"h-full px-1",hideChevron:!0,variant:"ghost",children:(0,E.jsx)(Ya,{size:14,strokeWidth:1.5})}),t[3]=c):c=t[3];let h,o;t[4]===Symbol.for("react.memo_cache_sentinel")?(h=(0,E.jsx)(Le,{children:(0,E.jsx)(Te,{value:rr,children:"None"})}),o=(0,E.jsx)(pr,{}),t[4]=h,t[5]=o):(h=t[4],o=t[5]);let l=(0,E.jsxs)(Ze,{children:[h,o,i.map(Ku)]}),u;t[6]!==n.fn||t[7]!==s||t[8]!==l?(u=(0,E.jsxs)(tt,{"data-testid":"marimo-plugin-data-explorer-field-options",value:n.fn,onValueChange:s,children:[c,l]}),t[6]=n.fn,t[7]=s,t[8]=l,t[9]=u):u=t[9],a=u;break e}}t[0]=n,t[1]=r,t[2]=a}else a=t[2];return a===Symbol.for("react.early_return_sentinel")?null:a};function Qu(e){return(0,E.jsx)(Te,{value:e,children:e==="?"?"auto":e},e)}function Vu(e){return(0,E.jsx)(Te,{value:e??rr,children:Ua(e)},e)}function Ku(e){let[t,n]=e;return(0,E.jsxs)(Le,{children:[t&&(0,E.jsx)(dr,{children:t}),n.map(Vu)]},t)}var Bt=Wt(),Ju=e=>{let t=(0,Bt.c)(5),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=Oa(),t[0]=n):n=t[0];let r=n,a;t[1]===e?a=t[2]:(a=()=>{let s=r.sub(Be,()=>{let{schema:h,...o}=r.get(Be);e.setValue(o)}),c=e.value;return c&&Object.keys(c).length>0&&r.set(Be,c),s},t[1]=e,t[2]=a),Ia(a);let i;return t[3]===e?i=t[4]:(i=(0,E.jsx)(Aa,{store:r,children:(0,E.jsx)(Ca,{...e})}),t[3]=e,t[4]=i),i};function Na(e){return{padding:{left:20,right:20,top:20,bottom:20},actions:{export:{svg:!0,png:!0},source:!1,compiled:!1,editor:!1},theme:e==="dark"?"dark":void 0,tooltip:$a.call,renderer:"canvas"}}var Xu=Ju;const Ca=e=>{var xe,J,W,fe,Ee,pe;let t=(0,Bt.c)(43),{data:n}=e,r=Sa(),a;t[0]!==r||t[1]!==n?(a=async()=>{if(!n)return{};let M=await Ra(n,{type:"csv",parse:"auto"},{replacePeriod:!0}),X=kc(M);return r.setSchema(X),{chartData:M,schema:X}},t[0]=r,t[1]=n,t[2]=a):a=t[2];let i;t[3]===n?i=t[4]:(i=[n],t[3]=n,t[4]=i);let{data:s,isPending:c,error:h}=to(a,i),{mark:o}=Lt(Be),l=Lt(Wu),{theme:u}=Va();if(h){let M;return t[5]===h?M=t[6]:(M=(0,E.jsx)(eo,{error:h}),t[5]=h,t[6]=M),M}if(!s){let M;return t[7]===Symbol.for("react.memo_cache_sentinel")?(M=(0,E.jsx)("div",{}),t[7]=M):M=t[7],M}let{chartData:d,schema:p}=s;if(c||!p){let M;return t[8]===Symbol.for("react.memo_cache_sentinel")?(M=(0,E.jsx)("div",{}),t[8]=M):M=t[8],M}let f=(J=(xe=l.main)==null?void 0:xe.plots)==null?void 0:J[0],g;t[9]===(f==null?void 0:f.fieldInfos)?g=t[10]:(g=new Set(f==null?void 0:f.fieldInfos.map(nd)),t[9]=f==null?void 0:f.fieldInfos,t[10]=g);let y=g,v;t[11]!==d||t[12]!==f||t[13]!==p||t[14]!==u?(v=()=>{if(!f)return(0,E.jsx)(hu,{schema:p});let M=f.spec;return(0,E.jsx)("div",{className:"flex overflow-y-auto justify-center items-center flex-1 w-[90%]",children:(0,E.jsx)(hr,{spec:ur(td(M),d),options:Na(u)})})},t[11]=d,t[12]=f,t[13]=p,t[14]=u,t[15]=v):v=t[15];let b=v,x;t[16]!==o||t[17]!==p?(x=(0,E.jsx)(Gu,{mark:o,schema:p}),t[16]=o,t[17]=p,t[18]=x):x=t[18];let S;t[19]===b?S=t[20]:(S=b(),t[19]=b,t[20]=S);let C;t[21]!==x||t[22]!==S?(C=(0,E.jsxs)("div",{className:"flex items-center gap-2",children:[x,S]}),t[21]=x,t[22]=S,t[23]=C):C=t[23];let T=(W=l.histograms)==null?void 0:W.plots,w=(fe=l.addCategoricalField)==null?void 0:fe.plots,N=(Ee=l.addQuantitativeField)==null?void 0:Ee.plots,D=(pe=l.addTemporalField)==null?void 0:pe.plots,k;if(t[24]!==r||t[25]!==d||t[26]!==y||t[27]!==N||t[28]!==D||t[29]!==T||t[30]!==w||t[31]!==u){let M;t[33]!==r||t[34]!==d||t[35]!==y||t[36]!==u?(M=(X,Je)=>(0,E.jsx)(ed,{title:(0,E.jsx)("div",{className:"flex flex-row gap-1",children:X.fieldInfos.map(he=>{let or=he.fieldDef.field==="*"?"Count":he.fieldDef.fn?`${he.fieldDef.fn}(${he.fieldDef.field})`:he.fieldDef.field.toString();return(0,E.jsx)(Qa,{variant:y.has(he.fieldDef.field)?"secondary":"defaultOutline",children:or},or)})}),actions:(0,E.jsx)(Ka,{content:"Make main plot",children:(0,E.jsx)(lr,{"data-testid":"marimo-plugin-data-explorer-make-main-plot",variant:"text",size:"icon",onClick:()=>{let he=Ba.fromEntries(X.fieldInfos.map(rd));r.setEncoding(he)},children:(0,E.jsx)(za,{className:"w-4 h-4"})})}),children:(0,E.jsx)(hr,{options:Na(u),spec:ur(X.spec,d)},Je)},Je),t[33]=r,t[34]=d,t[35]=y,t[36]=u,t[37]=M):M=t[37],k=[T,w,N,D].filter(Boolean).flat().map(M),t[24]=r,t[25]=d,t[26]=y,t[27]=N,t[28]=D,t[29]=T,t[30]=w,t[31]=u,t[32]=k}else k=t[32];let I;t[38]===k?I=t[39]:(I=(0,E.jsx)(Zu,{children:k}),t[38]=k,t[39]=I);let _;return t[40]!==I||t[41]!==C?(_=(0,E.jsxs)("div",{className:"flex flex-col gap-2",children:[C,I]}),t[40]=I,t[41]=C,t[42]=_):_=t[42],_};var Zu=e=>{let t=(0,Bt.c)(2),{children:n}=e;if(Zn.Children.count(n)===0)return null;let r;return t[0]===n?r=t[1]:(r=(0,E.jsx)("div",{className:"flex flex-row overflow-x-auto overflow-y-hidden gap-4 snap-x pb-4",children:n}),t[0]=n,t[1]=r),r},ed=e=>{let t=(0,Bt.c)(10),{title:n,children:r,actions:a}=e,i;t[0]===n?i=t[1]:(i=(0,E.jsx)("div",{className:"text-sm font-medium",children:n}),t[0]=n,t[1]=i);let s;t[2]!==a||t[3]!==i?(s=(0,E.jsxs)("div",{className:"flex flex-row justify-between items-center bg-(--slate-3) py-0.5 px-2",children:[i,a]}),t[2]=a,t[3]=i,t[4]=s):s=t[4];let c;t[5]===r?c=t[6]:(c=(0,E.jsx)("div",{className:"px-6 pt-2 max-h-[280px] overflow-y-auto",children:r}),t[5]=r,t[6]=c);let h;return t[7]!==s||t[8]!==c?(h=(0,E.jsxs)("div",{className:"shrink-0 bg-card shadow-md border overflow-hidden rounded snap-start",children:[s,c]}),t[7]=s,t[8]=c,t[9]=h):h=t[9],h};function td(e){var t,n;return(t=e.encoding)!=null&&t.row||(n=e.encoding)!=null&&n.column||(e.width="container"),e}function nd(e){return e.fieldDef.field}function rd(e){return[e.channel,e.fieldDef]}export{Ca as DataExplorerComponent,Xu as default}; diff --git a/docs/assets/Deferred-DzyBMRsy.js b/docs/assets/Deferred-DzyBMRsy.js new file mode 100644 index 0000000..5013852 --- /dev/null +++ b/docs/assets/Deferred-DzyBMRsy.js @@ -0,0 +1 @@ +var i=Object.defineProperty;var o=(e,s,t)=>s in e?i(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var r=(e,s,t)=>o(e,typeof s!="symbol"?s+"":s,t);var a=class{constructor(){r(this,"status","pending");this.promise=new Promise((e,s)=>{this.reject=t=>{this.status="rejected",s(t)},this.resolve=t=>{this.status="resolved",e(t)}})}};export{a as t}; diff --git a/docs/assets/DeferredRequestRegistry-B3BENoUa.js b/docs/assets/DeferredRequestRegistry-B3BENoUa.js new file mode 100644 index 0000000..c3534e9 --- /dev/null +++ b/docs/assets/DeferredRequestRegistry-B3BENoUa.js @@ -0,0 +1 @@ +var a=Object.defineProperty;var h=(s,e,t)=>e in s?a(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var i=(s,e,t)=>h(s,typeof e!="symbol"?e+"":e,t);import{t as l}from"./createLucideIcon-CW2xpJ57.js";import{t as u}from"./Deferred-DzyBMRsy.js";import{t as c}from"./uuid-ClFZlR7U.js";var n=l("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);const q={create(){return c()}};var p=class{constructor(s,e,t={}){i(this,"requests",new Map);this.operation=s,this.makeRequest=e,this.opts=t}async request(s){if(this.opts.resolveExistingRequests){let r=this.opts.resolveExistingRequests();for(let o of this.requests.values())o.resolve(r);this.requests.clear()}let e=q.create(),t=new u;return this.requests.set(e,t),await this.makeRequest(e,s).catch(r=>{t.reject(r),this.requests.delete(e)}),t.promise}resolve(s,e){let t=this.requests.get(s);t!==void 0&&(t.resolve(e),this.requests.delete(s))}reject(s,e){let t=this.requests.get(s);t!==void 0&&(t.reject(e),this.requests.delete(s))}};export{n,p as t}; diff --git a/docs/assets/ErrorBoundary-C7JBxSzd.js b/docs/assets/ErrorBoundary-C7JBxSzd.js new file mode 100644 index 0000000..b5c2fae --- /dev/null +++ b/docs/assets/ErrorBoundary-C7JBxSzd.js @@ -0,0 +1 @@ +import{s as h}from"./chunk-LvLJmgfZ.js";import{t as f}from"./react-BGmjiNul.js";import{t as y}from"./compiler-runtime-DeeZ7FnK.js";import{n as x}from"./constants-Bkp4R3bQ.js";import{t as E}from"./jsx-runtime-DN_bIXfG.js";import{t as g}from"./button-B8cGZzP5.js";var i=h(f()),m=(0,i.createContext)(null),u={didCatch:!1,error:null},v=class extends i.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=u}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(e!==null){var r,t,o=[...arguments];(r=(t=this.props).onReset)==null||r.call(t,{args:o,reason:"imperative-api"}),this.setState(u)}}componentDidCatch(e,r){var t,o;(t=(o=this.props).onError)==null||t.call(o,e,r)}componentDidUpdate(e,r){let{didCatch:t}=this.state,{resetKeys:o}=this.props;if(t&&r.error!==null&&b(e.resetKeys,o)){var s,n;(s=(n=this.props).onReset)==null||s.call(n,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(u)}}render(){let{children:e,fallbackRender:r,FallbackComponent:t,fallback:o}=this.props,{didCatch:s,error:n}=this.state,a=e;if(s){let l={error:n,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")a=r(l);else if(t)a=(0,i.createElement)(t,l);else if(o!==void 0)a=o;else throw n}return(0,i.createElement)(m.Provider,{value:{didCatch:s,error:n,resetErrorBoundary:this.resetErrorBoundary}},a)}};function b(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==r.length||e.some((t,o)=>!Object.is(t,r[o]))}function B(e){if(e==null||typeof e.didCatch!="boolean"||typeof e.resetErrorBoundary!="function")throw Error("ErrorBoundaryContext not found")}function C(){let e=(0,i.useContext)(m);B(e);let[r,t]=(0,i.useState)({error:null,hasError:!1}),o=(0,i.useMemo)(()=>({resetBoundary:()=>{e.resetErrorBoundary(),t({error:null,hasError:!1})},showBoundary:s=>t({error:s,hasError:!0})}),[e.resetErrorBoundary]);if(r.hasError)throw r.error;return o}var p=y(),d=h(E(),1);const w=e=>{let r=(0,p.c)(2),t;return r[0]===e.children?t=r[1]:(t=(0,d.jsx)(v,{FallbackComponent:j,children:e.children}),r[0]=e.children,r[1]=t),t};var j=e=>{var c;let r=(0,p.c)(9),t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,d.jsx)("h1",{className:"text-2xl font-bold",children:"Something went wrong"}),r[0]=t):t=r[0];let o=(c=e.error)==null?void 0:c.message,s;r[1]===o?s=r[2]:(s=(0,d.jsx)("pre",{className:"text-xs bg-muted/40 border rounded-md p-4 max-w-[80%] whitespace-normal",children:o}),r[1]=o,r[2]=s);let n;r[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,d.jsxs)("div",{children:["If this is an issue with marimo, please report it on"," ",(0,d.jsx)("a",{href:x.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]}),r[3]=n):n=r[3];let a;r[4]===e.resetErrorBoundary?a=r[5]:(a=(0,d.jsx)(g,{"data-testid":"reset-error-boundary-button",onClick:e.resetErrorBoundary,variant:"outline",children:"Try again"}),r[4]=e.resetErrorBoundary,r[5]=a);let l;return r[6]!==s||r[7]!==a?(l=(0,d.jsxs)("div",{className:"flex-1 flex items-center justify-center flex-col space-y-4 max-w-2xl mx-auto px-6",children:[t,s,n,a]}),r[6]=s,r[7]=a,r[8]=l):l=r[8],l};export{C as n,w as t}; diff --git a/docs/assets/ImageComparisonComponent-DiKQQS5x.js b/docs/assets/ImageComparisonComponent-DiKQQS5x.js new file mode 100644 index 0000000..650763d --- /dev/null +++ b/docs/assets/ImageComparisonComponent-DiKQQS5x.js @@ -0,0 +1 @@ +import{s as x,t as b}from"./chunk-LvLJmgfZ.js";import{t as y}from"./react-BGmjiNul.js";import{t as E}from"./compiler-runtime-DeeZ7FnK.js";import{t as S}from"./jsx-runtime-DN_bIXfG.js";var T=b((()=>{(()=>{var v={792:(l,r,e)=>{e.d(r,{Z:()=>h});var n=e(609),d=e.n(n)()((function(m){return m[1]}));d.push([l.id,':host{--divider-width: 1px;--divider-color: #fff;--divider-shadow: none;--default-handle-width: 50px;--default-handle-color: #fff;--default-handle-opacity: 1;--default-handle-shadow: none;--handle-position-start: 50%;position:relative;display:inline-block;overflow:hidden;line-height:0;direction:ltr}@media screen and (-webkit-min-device-pixel-ratio: 0)and (min-resolution: 0.001dpcm){:host{outline-offset:1px}}:host(:focus){outline:2px solid -webkit-focus-ring-color}::slotted(*){-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.first{position:absolute;left:0;top:0;right:0;line-height:normal;font-size:100%;max-height:100%;height:100%;width:100%;--exposure: 50%;--keyboard-transition-time: 0ms;--default-transition-time: 0ms;--transition-time: var(--default-transition-time)}.first .first-overlay-container{position:relative;clip-path:inset(0 var(--exposure) 0 0);transition:clip-path var(--transition-time);height:100%}.first .first-overlay{overflow:hidden;height:100%}.first.focused{will-change:clip-path}.first.focused .first-overlay-container{will-change:clip-path}.second{position:relative}.handle-container{transform:translateX(50%);position:absolute;top:0;right:var(--exposure);height:100%;transition:right var(--transition-time),bottom var(--transition-time)}.focused .handle-container{will-change:right}.divider{position:absolute;height:100%;width:100%;left:0;top:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.divider:after{content:" ";display:block;height:100%;border-left-width:var(--divider-width);border-left-style:solid;border-left-color:var(--divider-color);box-shadow:var(--divider-shadow)}.handle{position:absolute;top:var(--handle-position-start);pointer-events:none;box-sizing:border-box;margin-left:1px;transform:translate(calc(-50% - 0.5px), -50%);line-height:0}.default-handle{width:var(--default-handle-width);opacity:var(--default-handle-opacity);transition:all 1s;filter:drop-shadow(var(--default-handle-shadow))}.default-handle path{stroke:var(--default-handle-color)}.vertical .first-overlay-container{clip-path:inset(0 0 var(--exposure) 0)}.vertical .handle-container{transform:translateY(50%);height:auto;top:unset;bottom:var(--exposure);width:100%;left:0;flex-direction:row}.vertical .divider:after{height:1px;width:100%;border-top-width:var(--divider-width);border-top-style:solid;border-top-color:var(--divider-color);border-left:0}.vertical .handle{top:auto;left:var(--handle-position-start);transform:translate(calc(-50% - 0.5px), -50%) rotate(90deg)}',""]);let h=d},609:l=>{l.exports=function(r){var e=[];return e.toString=function(){return this.map((function(n){var d=r(n);return n[2]?`@media ${n[2]} {${d}}`:d})).join("")},e.i=function(n,d,h){typeof n=="string"&&(n=[[null,n,""]]);var m={};if(h)for(var f=0;f{var r=l&&l.__esModule?()=>l.default:()=>l;return c.d(r,{a:r}),r},c.d=(l,r)=>{for(var e in r)c.o(r,e)&&!c.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:r[e]})},c.o=(l,r)=>Object.prototype.hasOwnProperty.call(l,r),(()=>{var l=c(792);let r="rendered",e=(t,o)=>{let i=t.getBoundingClientRect(),a,p;return o.type==="mousedown"?(a=o.clientX,p=o.clientY):(a=o.touches[0].clientX,p=o.touches[0].clientY),a>=i.x&&a<=i.x+i.width&&p>=i.y&&p<=i.y+i.height},n,d={ArrowLeft:-1,ArrowRight:1},h=["horizontal","vertical"],m=t=>({x:t.touches[0].pageX,y:t.touches[0].pageY}),f=t=>({x:t.pageX,y:t.pageY}),u=typeof window<"u"&&(window==null?void 0:window.HTMLElement);typeof window<"u"&&(window.document&&(n=document.createElement("template"),n.innerHTML='
'),window.customElements.define("img-comparison-slider",class extends u{constructor(){super(),this.exposure=this.hasAttribute("value")?parseFloat(this.getAttribute("value")):50,this.slideOnHover=!1,this.slideDirection="horizontal",this.keyboard="enabled",this.isMouseDown=!1,this.animationDirection=0,this.isFocused=!1,this.dragByHandle=!1,this.onMouseMove=i=>{if(this.isMouseDown||this.slideOnHover){let a=f(i);this.slideToPage(a)}},this.bodyUserSelectStyle="",this.bodyWebkitUserSelectStyle="",this.onMouseDown=i=>{if(this.slideOnHover||this.handle&&!e(this.handleElement,i))return;i.preventDefault(),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onWindowMouseUp),this.isMouseDown=!0,this.enableTransition();let a=f(i);this.slideToPage(a),this.focus(),this.bodyUserSelectStyle=window.document.body.style.userSelect,this.bodyWebkitUserSelectStyle=window.document.body.style.webkitUserSelect,window.document.body.style.userSelect="none",window.document.body.style.webkitUserSelect="none"},this.onWindowMouseUp=()=>{this.isMouseDown=!1,window.document.body.style.userSelect=this.bodyUserSelectStyle,window.document.body.style.webkitUserSelect=this.bodyWebkitUserSelectStyle,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onWindowMouseUp)},this.touchStartPoint=null,this.isTouchComparing=!1,this.hasTouchMoved=!1,this.onTouchStart=i=>{this.dragByHandle&&!e(this.handleElement,i)||(this.touchStartPoint=m(i),this.isFocused&&(this.enableTransition(),this.slideToPage(this.touchStartPoint)))},this.onTouchMove=i=>{if(this.touchStartPoint===null)return;let a=m(i);if(this.isTouchComparing)return this.slideToPage(a),i.preventDefault(),!1;if(!this.hasTouchMoved){let p=Math.abs(a.y-this.touchStartPoint.y),w=Math.abs(a.x-this.touchStartPoint.x);if(this.slideDirection==="horizontal"&&pw)return this.isTouchComparing=!0,this.focus(),this.slideToPage(a),i.preventDefault(),!1;this.hasTouchMoved=!0}},this.onTouchEnd=()=>{this.isTouchComparing=!1,this.hasTouchMoved=!1,this.touchStartPoint=null},this.onBlur=()=>{this.stopSlideAnimation(),this.isFocused=!1,this.firstElement.classList.remove("focused")},this.onFocus=()=>{this.isFocused=!0,this.firstElement.classList.add("focused")},this.onKeyDown=i=>{if(this.keyboard==="disabled")return;let a=d[i.key];this.animationDirection!==a&&a!==void 0&&(this.animationDirection=a,this.startSlideAnimation())},this.onKeyUp=i=>{if(this.keyboard==="disabled")return;let a=d[i.key];a!==void 0&&this.animationDirection===a&&this.stopSlideAnimation()},this.resetDimensions=()=>{this.imageWidth=this.offsetWidth,this.imageHeight=this.offsetHeight};let t=this.attachShadow({mode:"open"}),o=document.createElement("style");o.innerHTML=l.Z,this.getAttribute("nonce")&&o.setAttribute("nonce",this.getAttribute("nonce")),t.appendChild(o),t.appendChild(n.content.cloneNode(!0)),this.firstElement=t.getElementById("first"),this.handleElement=t.getElementById("handle")}set handle(t){this.dragByHandle=t.toString().toLowerCase()!=="false"}get handle(){return this.dragByHandle}get value(){return this.exposure}set value(t){let o=parseFloat(t);o!==this.exposure&&(this.exposure=o,this.enableTransition(),this.setExposure())}get hover(){return this.slideOnHover}set hover(t){this.slideOnHover=t.toString().toLowerCase()!=="false",this.removeEventListener("mousemove",this.onMouseMove),this.slideOnHover&&this.addEventListener("mousemove",this.onMouseMove)}get direction(){return this.slideDirection}set direction(t){this.slideDirection=t.toString().toLowerCase(),this.slide(0),this.firstElement.classList.remove(...h),h.includes(this.slideDirection)&&this.firstElement.classList.add(this.slideDirection)}static get observedAttributes(){return["hover","direction"]}connectedCallback(){this.hasAttribute("tabindex")||(this.tabIndex=0),this.addEventListener("dragstart",(t=>(t.preventDefault(),!1))),new ResizeObserver(this.resetDimensions).observe(this),this.setExposure(0),this.keyboard=this.hasAttribute("keyboard")&&this.getAttribute("keyboard")==="disabled"?"disabled":"enabled",this.addEventListener("keydown",this.onKeyDown),this.addEventListener("keyup",this.onKeyUp),this.addEventListener("focus",this.onFocus),this.addEventListener("blur",this.onBlur),this.addEventListener("touchstart",this.onTouchStart,{passive:!0}),this.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.addEventListener("touchend",this.onTouchEnd),this.addEventListener("mousedown",this.onMouseDown),this.handle=this.hasAttribute("handle")?this.getAttribute("handle"):this.dragByHandle,this.hover=this.hasAttribute("hover")?this.getAttribute("hover"):this.slideOnHover,this.direction=this.hasAttribute("direction")?this.getAttribute("direction"):this.slideDirection,this.resetDimensions(),this.classList.contains(r)||this.classList.add(r)}disconnectedCallback(){this.transitionTimer&&window.clearTimeout(this.transitionTimer)}attributeChangedCallback(t,o,i){t==="hover"&&(this.hover=i),t==="direction"&&(this.direction=i),t==="keyboard"&&(this.keyboard=i==="disabled"?"disabled":"enabled")}setExposure(t=0){var o;this.exposure=(o=this.exposure+t)<0?0:o>100?100:o,this.firstElement.style.setProperty("--exposure",100-this.exposure+"%")}slide(t=0){this.setExposure(t);let o=new Event("slide");this.dispatchEvent(o)}slideToPage(t){this.slideDirection==="horizontal"&&this.slideToPageX(t.x),this.slideDirection==="vertical"&&this.slideToPageY(t.y)}slideToPageX(t){this.exposure=(t-this.getBoundingClientRect().left-window.scrollX)/this.imageWidth*100,this.slide(0)}slideToPageY(t){this.exposure=(t-this.getBoundingClientRect().top-window.scrollY)/this.imageHeight*100,this.slide(0)}enableTransition(){this.firstElement.style.setProperty("--transition-time","100ms"),this.transitionTimer=window.setTimeout((()=>{this.firstElement.style.setProperty("--transition-time","var(--default-transition-time)"),this.transitionTimer=null}),100)}startSlideAnimation(){let t=null,o=this.animationDirection;this.firstElement.style.setProperty("--transition-time","var(--keyboard-transition-time)");let i=a=>{if(this.animationDirection===0||o!==this.animationDirection)return;t===null&&(t=a);let p=(a-t)/16.666666666666668*this.animationDirection;this.slide(p),setTimeout((()=>window.requestAnimationFrame(i)),0),t=a};window.requestAnimationFrame(i)}stopSlideAnimation(){this.animationDirection=0,this.firstElement.style.setProperty("--transition-time","var(--default-transition-time)")}}))})()})()})),M=b((v=>{var s=v&&v.__createBinding||(Object.create?(function(e,n,d,h){h===void 0&&(h=d),Object.defineProperty(e,h,{enumerable:!0,get:function(){return n[d]}})}):(function(e,n,d,h){h===void 0&&(h=d),e[h]=n[d]})),c=v&&v.__setModuleDefault||(Object.create?(function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}):function(e,n){e.default=n}),l=v&&v.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var d in e)d!=="default"&&Object.prototype.hasOwnProperty.call(e,d)&&s(n,e,d);return c(n,e),n};Object.defineProperty(v,"__esModule",{value:!0}),v.ImgComparisonSlider=void 0;var r=y();typeof document<"u"&&Promise.resolve().then(()=>l(T())),v.ImgComparisonSlider=(0,r.forwardRef)(({children:e,onSlide:n,value:d,className:h,...m},f)=>{let u=(0,r.useRef)();return(0,r.useEffect)(()=>{d!==void 0&&(u.current.value=parseFloat(d.toString()))},[d,u]),(0,r.useEffect)(()=>{n&&u.current.addEventListener("slide",n)},[]),(0,r.useImperativeHandle)(f,()=>u.current,[u]),(0,r.createElement)("img-comparison-slider",Object.assign({class:h?`${h} rendered`:"rendered",tabIndex:0,ref:u},m),e)})})),D=E(),k=M();y();var g=x(S(),1),L=v=>{let s=(0,D.c)(15),{beforeSrc:c,afterSrc:l,value:r,direction:e,width:n,height:d}=v,h=n||"100%",m=d||(e==="vertical"?"400px":"auto"),f;s[0]!==h||s[1]!==m?(f={width:h,height:m,maxWidth:"100%"},s[0]=h,s[1]=m,s[2]=f):f=s[2];let u=f,t;s[3]===c?t=s[4]:(t=(0,g.jsx)("img",{slot:"first",src:c,alt:"Before",width:"100%"}),s[3]=c,s[4]=t);let o;s[5]===l?o=s[6]:(o=(0,g.jsx)("img",{slot:"second",src:l,alt:"After",width:"100%"}),s[5]=l,s[6]=o);let i;s[7]!==e||s[8]!==t||s[9]!==o||s[10]!==r?(i=(0,g.jsxs)(k.ImgComparisonSlider,{value:r,direction:e,children:[t,o]}),s[7]=e,s[8]=t,s[9]=o,s[10]=r,s[11]=i):i=s[11];let a;return s[12]!==u||s[13]!==i?(a=(0,g.jsx)("div",{style:u,children:i}),s[12]=u,s[13]=i,s[14]=a):a=s[14],a};export{L as default}; diff --git a/docs/assets/ImperativeModal-BZvZlZQZ.js b/docs/assets/ImperativeModal-BZvZlZQZ.js new file mode 100644 index 0000000..33dedb1 --- /dev/null +++ b/docs/assets/ImperativeModal-BZvZlZQZ.js @@ -0,0 +1 @@ +import{s as h}from"./chunk-LvLJmgfZ.js";import{t as f}from"./react-BGmjiNul.js";import{t as C}from"./compiler-runtime-DeeZ7FnK.js";import{t as M}from"./jsx-runtime-DN_bIXfG.js";import{t as v}from"./button-B8cGZzP5.js";import{r as k}from"./input-Bkl2Yfmh.js";import{a as m,c as p,i,l as u,n as g,r as x,s as a,t as c}from"./alert-dialog-jcHA5geR.js";import{t as O}from"./dialog-CF5DtF1E.js";var b=C(),d=h(f(),1),e=h(M(),1),j=d.createContext({modal:null,setModal:()=>{}});const y=t=>{let r=(0,b.c)(6),[s,o]=d.useState(null),l;r[0]===s?l=r[1]:(l={modal:s,setModal:o},r[0]=s,r[1]=l);let n;return r[2]!==s||r[3]!==t.children||r[4]!==l?(n=(0,e.jsxs)(j,{value:l,children:[s,t.children]}),r[2]=s,r[3]=t.children,r[4]=l,r[5]=n):n=r[5],n};function w(){let t=d.use(j);if(t===void 0)throw Error("useModal must be used within a ModalProvider");let r=()=>{t.setModal(null)};return{openModal:s=>{t.setModal((0,e.jsx)(O,{open:!0,onOpenChange:o=>{o||r()},children:s}))},openAlert:s=>{t.setModal((0,e.jsx)(c,{open:!0,onOpenChange:o=>{o||r()},children:(0,e.jsxs)(i,{children:[s,(0,e.jsx)(a,{children:(0,e.jsx)(g,{autoFocus:!0,onClick:r,children:"Ok"})})]})}))},openPrompt:s=>{t.setModal((0,e.jsx)(c,{open:!0,onOpenChange:o=>{o||r()},children:(0,e.jsx)(i,{children:(0,e.jsxs)("form",{onSubmit:o=>{o.preventDefault(),s.onConfirm(o.currentTarget.prompt.value),r()},children:[(0,e.jsxs)(p,{children:[(0,e.jsx)(u,{children:s.title}),(0,e.jsx)(m,{children:s.description}),(0,e.jsx)(k,{spellCheck:s.spellCheck,defaultValue:s.defaultValue,className:"my-4 h-8",name:"prompt",required:!0,autoFocus:!0,autoComplete:"off"})]}),(0,e.jsxs)(a,{children:[(0,e.jsx)(x,{onClick:r,children:"Cancel"}),(0,e.jsx)(v,{type:"submit",children:s.confirmText??"Ok"})]})]})})}))},openConfirm:s=>{t.setModal((0,e.jsx)(c,{open:!0,onOpenChange:o=>{o||r()},children:(0,e.jsxs)(i,{children:[(0,e.jsxs)(p,{children:[(0,e.jsx)(u,{className:s.variant==="destructive"?"text-destructive":"",children:s.title}),(0,e.jsx)(m,{children:s.description})]}),(0,e.jsxs)(a,{children:[(0,e.jsx)(x,{onClick:r,children:"Cancel"}),s.confirmAction]})]})}))},closeModal:r}}export{w as n,y as t}; diff --git a/docs/assets/Inputs-BLUpxKII.js b/docs/assets/Inputs-BLUpxKII.js new file mode 100644 index 0000000..266b6ac --- /dev/null +++ b/docs/assets/Inputs-BLUpxKII.js @@ -0,0 +1 @@ +import{s as m}from"./chunk-LvLJmgfZ.js";import{t as b}from"./react-BGmjiNul.js";import{t as g}from"./compiler-runtime-DeeZ7FnK.js";import{t as w}from"./jsx-runtime-DN_bIXfG.js";import{n as c}from"./clsx-D0MtrJOx.js";import{n as p}from"./cn-C1rgT0yh.js";const y=p("flex items-center justify-center m-0 leading-none font-medium border border-foreground/10 shadow-xs-solid active:shadow-none dark:border-border text-sm",{variants:{color:{gray:"mo-button gray",white:"mo-button white",green:"mo-button green",red:"mo-button red",yellow:"mo-button yellow","hint-green":"mo-button hint-green",disabled:"mo-button disabled active:shadow-xs-solid"},shape:{rectangle:"rounded",circle:"rounded-full"},size:{small:"",medium:""}},compoundVariants:[{size:"small",shape:"circle",class:"h-[24px] w-[24px] px-[5.5px] py-[5.5px]"},{size:"medium",shape:"circle",class:"px-2 py-2"},{size:"small",shape:"rectangle",class:"px-1 py-1 h-[24px] w-[24px]"},{size:"medium",shape:"rectangle",class:"px-3 py-2"}],defaultVariants:{color:"gray",size:"medium",shape:"rectangle"}}),z=p("font-mono w-full flex-1 inline-flex items-center justify-center rounded px-2.5 text-foreground/60 h-[36px] hover:shadow-md hover:cursor-pointer focus:shadow-md focus:outline-hidden text-[hsl(0, 0%, 43.5%)] bg-transparent hover:bg-background focus:bg-background");var u=g(),f=m(b(),1),h=m(w(),1);const x=f.forwardRef((a,n)=>{let e=(0,u.c)(15),r,s,o,t,l;e[0]===a?(r=e[1],s=e[2],o=e[3],t=e[4],l=e[5]):({color:s,shape:t,size:l,className:r,...o}=a,e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=t,e[5]=l);let i;e[6]!==r||e[7]!==s||e[8]!==t||e[9]!==l?(i=c(y({color:s,shape:t,size:l}),r),e[6]=r,e[7]=s,e[8]=t,e[9]=l,e[10]=i):i=e[10];let d;return e[11]!==o||e[12]!==n||e[13]!==i?(d=(0,h.jsx)("button",{ref:n,className:i,...o,children:o.children}),e[11]=o,e[12]=n,e[13]=i,e[14]=d):d=e[14],d});x.displayName="Button";const v=f.forwardRef((a,n)=>{let e=(0,u.c)(9),r,s;e[0]===a?(r=e[1],s=e[2]):({className:r,...s}=a,e[0]=a,e[1]=r,e[2]=s);let o;e[3]===r?o=e[4]:(o=c(z(),r),e[3]=r,e[4]=o);let t;return e[5]!==s||e[6]!==n||e[7]!==o?(t=(0,h.jsx)("input",{ref:n,className:o,...s}),e[5]=s,e[6]=n,e[7]=o,e[8]=t):t=e[8],t});v.displayName="Input";export{x as t}; diff --git a/docs/assets/Inputs-CuKU-ENz.css b/docs/assets/Inputs-CuKU-ENz.css new file mode 100644 index 0000000..26be44a --- /dev/null +++ b/docs/assets/Inputs-CuKU-ENz.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +.mo-button.gray{background-color:var(--slate-1);border-color:var(--slate-6);color:var(--slate-11)}.mo-button.gray:hover{background-color:var(--slate-3);border-color:var(--slate-8)}.mo-button.gray.selected .mo-button.gray:active{background-color:var(--slate-4);border-color:var(--slate-7)}.mo-button.white{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.mo-button.white{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.mo-button.white{border-color:var(--slate-7);color:var(--slate-11)}.mo-button.white:hover{background-color:var(--slate-1);border-color:var(--slate-8)}.mo-button.white.selected .mo-button.white:active{background-color:var(--slate-2);border-color:var(--slate-7)}.mo-button.disabled{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.mo-button.disabled{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.mo-button.disabled{border-color:var(--slate-6);color:var(--slate-7)}.mo-button.green{background-color:var(--grass-3);border-color:var(--grass-6);color:var(--grass-11)}.mo-button.green:hover{background-color:var(--grass-2);border-color:var(--grass-7)}.mo-button.green.selected .mo-button.green:active{background-color:var(--grass-4);border-color:var(--grass-7)}.mo-button.hint-green{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.mo-button.hint-green{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.mo-button.hint-green{border-color:var(--slate-7);color:var(--slate-11)}.mo-button.hint-green:hover{background-color:var(--grass-2);border-color:var(--grass-7);color:var(--grass-11)}.mo-button.hint-green.selected .mo-button.hint-green:active{background-color:var(--grass-4);border-color:var(--grass-7);color:var(--slate-11)}.mo-button.red{background-color:var(--red-3);border-color:var(--red-6);color:var(--red-11)}.mo-button.red:hover{background-color:var(--red-4);border-color:var(--red-8)}.mo-button.red.selected .mo-button.red:active{background-color:var(--red-5);border-color:var(--red-7)}.mo-button.yellow{background-color:var(--yellow-3);border-color:var(--yellow-6);color:var(--yellow-11)}.mo-button.yellow:hover{background-color:var(--yellow-4);border-color:var(--yellow-8)}.mo-button.yellow.selected .mo-button.yellow:active{background-color:var(--yellow-5);border-color:var(--yellow-7)} diff --git a/docs/assets/JsonOutput-B7vuddcd.css b/docs/assets/JsonOutput-B7vuddcd.css new file mode 100644 index 0000000..141a987 --- /dev/null +++ b/docs/assets/JsonOutput-B7vuddcd.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +.marimo-error,.media,.output,.return,.stderr,.stdout{width:100%}.marimo-cell.published .output-area .output{margin-top:1rem;margin-bottom:1rem}.marimo-error a{color:var(--link)}.output{position:relative}.output>*{max-width:100%}.output .markdown{max-width:unset}.marimo-error,.stderr,.stdout{font-family:var(--monospace-font)}.stderr,.stdout{font-size:.813rem}.stderr{color:var(--amber-12)}.marimo-error{color:var(--error);white-space:pre-wrap;background:#ffc0cb30;border-radius:20px;padding:3%;font-size:.8125rem;font-weight:700}@supports (color:color-mix(in lab,red,red)){.marimo-error{color:color-mix(in srgb,var(--error),transparent 0%)}}.marimo-json-output{content-visibility:unset;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));padding-top:2px;padding-bottom:2px;overflow:auto}.marimo-json-output .data-key-pair:not(:last-child){margin-top:.2rem;margin-bottom:.2rem}.marimo-json-output .copy-button{visibility:hidden}.marimo-json-output .data-key-pair:hover>.copy-button,.marimo-json-output .data-key-pair:hover>.data-key>.copy-button{visibility:visible}.traceback-cell-link{color:inherit;text-decoration:underline}.traceback-cell-link:hover{font-weight:500} diff --git a/docs/assets/JsonOutput-DlwRx3jE.js b/docs/assets/JsonOutput-DlwRx3jE.js new file mode 100644 index 0000000..d218cea --- /dev/null +++ b/docs/assets/JsonOutput-DlwRx3jE.js @@ -0,0 +1,46 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-vega-DdONPC3a.js","./react-vega-CI0fuCLO.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./linear-AjjmB_kQ.js","./timer-CPT_vXom.js","./chunk-LvLJmgfZ.js","./init-DsZRk2YA.js","./time-DIXLO3Ax.js","./defaultLocale-DzliDDTm.js","./range-gMGfxVwZ.js","./vega-loader.browser-C8wT63Va.js","./treemap-DeGcO9km.js","./path-DvTahePH.js","./colors-BG8Z91CW.js","./ordinal-_nQ2r1qQ.js","./arc-CWuN1tfc.js","./math-B-ZqhQTL.js","./array-CC7vZNGO.js","./step-D7xg1Moj.js","./line-x4bpd_8D.js","./jsx-runtime-DN_bIXfG.js","./react-BGmjiNul.js"])))=>i.map(i=>d[i]); +var ly=Object.defineProperty;var iy=(w,Ge,zt)=>Ge in w?ly(w,Ge,{enumerable:!0,configurable:!0,writable:!0,value:zt}):w[Ge]=zt;var An=(w,Ge,zt)=>iy(w,typeof Ge!="symbol"?Ge+"":Ge,zt);import{s as Ar,t as Tt}from"./chunk-LvLJmgfZ.js";import{a as sy,c as cy,f as Oc,g as uy,h as dy,n as rt,p as jt,s as my,u as Ir}from"./useEvent-DlWF5OMa.js";import{t as py}from"./react-BGmjiNul.js";import{An as fy,Br as Vc,Ir as gy,Lr as hy,On as zc,Rr as yy,St as Pr,Un as by,Xn as Dc,di as xy,f as vy,fi as wy,ht as Sy,ii as Cy,pt as jy,ui as Lc,__tla as ky}from"./cells-CmJW_FeD.js";import{t as K}from"./compiler-runtime-DeeZ7FnK.js";import{i as kt,r as _y}from"./useLifecycle-CmDXEyIC.js";import{t as Ry}from"./capitalize-DQeWKRGx.js";import{a as My,n as Aa,r as Ny,t as Fy}from"./tooltip-CrRUCOBw.js";import{t as $r}from"./range-sshwVRcP.js";import{a as Er,d as ot,f as Ay}from"./hotkeys-uKX61F1_.js";import{t as at}from"./invariant-C6yE60hi.js";import{r as Iy}from"./utils-Czt8B2GX.js";import{d as Py,j as Hc,n as $y}from"./config-CENq_7Pd.js";import{t as Bc}from"./ErrorBoundary-C7JBxSzd.js";import{t as Ey}from"./jsx-runtime-DN_bIXfG.js";import{r as pt,t as de}from"./button-B8cGZzP5.js";import{n as In}from"./clsx-D0MtrJOx.js";import{t as O}from"./cn-C1rgT0yh.js";import{at as Ty}from"./dist-CAcX026F.js";import{r as Oy,t as Vy}from"./once-CTiSlR1m.js";import{t as zy}from"./createReducer-DDa-hVe3.js";import{n as Dy}from"./useNonce-EAuSVK-5.js";import{t as Gc}from"./requests-C0HaHO6a.js";import{t as Z}from"./createLucideIcon-CW2xpJ57.js";import{n as Ly,r as Hy,t as Ia}from"./table-BLx7B_us.js";import{t as By}from"./check-CrAQug3q.js";import{_ as Pa,a as Gy,c as Wc,h as qc,i as Tr,n as Kc,o as Wy,r as qy,s as Uc,t as Jc}from"./select-D9lTzMzP.js";import{d as Ky,l as Uy,r as Jy,u as Xc}from"./download-C_slsU-7.js";import{t as Xy}from"./chevron-right-CqEd11Di.js";import{a as Yy,d as Zy,f as Yc,l as Qy,p as eb,s as tb,t as nb,u as rb}from"./maps-s2pQkyf5.js";import{d as Or,i as ob,n as Vr,o as ab,s as lb,t as ib,u as sb}from"./markdown-renderer-DjqhqmES.js";import{A as Zc,C as cb,D as ub,E as db,O as mb,S as pb,T as fb,_ as gb,a as Q,b as hb,c as tn,d as Pn,f as $a,g as yb,h as bb,k as xb,m as vb,p as Ea,r as Ta,s as zr,t as Oa,u as nn,v as wb,w as Sb,x as Cb,y as jb}from"./dropdown-menu-BP4_BZLr.js";import{t as Dr}from"./copy-gBVL4NN-.js";import{n as kb,t as Qc}from"./spinner-C1czjtp7.js";import{i as _b,n as Rb,r as Mb,t as Nb}from"./MarimoErrorOutput-DAK6volb.js";import{lt as Va,o as eu,r as Fb}from"./input-Bkl2Yfmh.js";import{t as Ab}from"./badge-DAnNhy3O.js";import{t as Ib}from"./preload-helper-BW0IMuFq.js";import{t as Lr}from"./use-toast-Bzf3rpev.js";import{r as za}from"./useTheme-BSVRc0kJ.js";import{E as Pb,S as $b,_ as Eb,c as tu,g as Tb,o as Ob,s as Vb,u as zb,w as $n}from"./Combination-D1TsGrBC.js";import{t as ze}from"./tooltip-CvjcEpZC.js";import{a as Db,c as Lb,i as Da,l as Hb,o as Bb,r as nu,s as Gb}from"./menu-items-9PZrU2e0.js";import{a as Wb,n as qb,r as Kb,t as Ub}from"./dates-CdsE1R40.js";import{t as ru}from"./isValid-DhzaK-Y1.js";import{a as Jb}from"./mode-CXc0VeQq.js";import{t as Hr}from"./useDateFormatter-CV0QXb5P.js";import{t as ft}from"./context-BAYdLMF_.js";import{t as Xb}from"./useNumberFormatter-D8ks3oPN.js";import{i as La,n as Yb,o as Zb,r as Ha,t as Ba}from"./popover-DtnzNVk-.js";import{i as Ga,n as Qb,r as Pe,t as ex}from"./numbers-C9_R_vlY.js";import{r as tx}from"./errors-z7WpYca5.js";import{n as nx}from"./vega-loader.browser-C8wT63Va.js";import{t as rn}from"./copy-DRhpWiOq.js";import{t as rx}from"./copy-icon-jWsqdLn1.js";import{t as Wa}from"./RenderHTML-B4Nb8r0D.js";import{i as ox,n as ax,r as lx}from"./multi-map-CQd4MZr5.js";import{n as ix,t as sx}from"./emotion-is-prop-valid.esm-lG8j6oqk.js";import{t as cx}from"./extends-B9D0JO9U.js";import{t as ux}from"./kbd-Czc5z_04.js";import{r as dx}from"./cell-link-D7bPw7Fz.js";import{t as mx}from"./useIframeCapabilities-CU-WWxnz.js";import{n as ou,t as px}from"./error-banner-Cq4Yn1WZ.js";import{i as fx,n as gx,r as hx,t as yx}from"./tabs-CHiEPtZV.js";import{n as bx}from"./useAsyncData-Dj1oqsrZ.js";import{a as xx,o as au,r as vx,s as wx,t as Sx}from"./command-B1zRJT1a.js";import{t as Cx}from"./formats-DtJ_484s.js";import{a as jx,i as kx,n as _x,o as qa,r as lu,t as Rx}from"./table-BatLo2vd.js";let En,iu,Ka,Ua,Ja,Xa,su,Br,cu,Gr,uu,Ot,Ya,Wr,Za,du,mu,Qa,el,tl,nl,pu,fu,rl,ol,Tn,al,ll,il,sl,gu,cl,ul,dl,qr,Vt,hu,yu,ml,pl,Kr,fl,gl,bu,hl,yl,_t,xu,on,bl,xl,vl,wl,Sl,vu,Cl,Mx=Promise.all([(()=>{try{return ky}catch{}})()]).then(async()=>{var Et;var w=Ar(py(),1),Ge=new WeakMap;function zt(e,t){let n=Oc(t),r=jl(n);for(let[o,...a]of e)(!r.has(o)||t!=null&&t.dangerouslyForceHydrate)&&(r.add(o),n.set(o,...a))}let jl,kl,_l,Ur,Rl,Ml,Nl,Fl,Al,Il,Pl,$l,El,Tl,Ol,Vl,zl;jl=e=>{let t=Ge.get(e);return t||(t=new WeakSet,Ge.set(e,t)),t},gl=Z("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),kl=Z("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),_l=Z("brick-wall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]),Ur=Z("bug-play",[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),Rl=Z("chart-column-stacked",[["path",{d:"M11 13H7",key:"t0o9gq"}],["path",{d:"M19 9h-4",key:"rera1j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]]),Ml=Z("chart-spline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]),bl=Z("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ul=Z("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),Nl=Z("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),Fl=Z("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),Al=Z("funnel-plus",[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]]),Il=Z("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),En=Z("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Qa=Z("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]),Pl=Z("list-filter-plus",[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]]),$l=Z("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),El=Z("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Tl=Z("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),al=Z("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),Ol=Z("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]),Vl=Z("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]),zl=Z("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),ol=Z("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]]),Tn=function(){return(window==null?void 0:window.__MARIMO_STATIC__)!==void 0},uu=function(){return at(window.__MARIMO_STATIC__!==void 0,"Not a static notebook"),window.__MARIMO_STATIC__.files};var wu=!1;function Su(e){if(e.sheet)return e.sheet;for(var t=0;t0?pe(Lt,--Ce):0,Dt--,ie===10&&(Dt=1,Dn--),ie}function ke(){return ie=Ce2||cn(ie)>3?"":" "}function Eu(e,t){for(;--t&&ke()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return sn(e,Hn()+(t<6&&qe()==32&&ke()==32))}function Qr(e){for(;ke();)switch(ie){case e:return Ce;case 34:case 39:e!==34&&e!==39&&Qr(ie);break;case 40:e===41&&Qr(e);break;case 92:ke();break}return Ce}function Tu(e,t){for(;ke()&&e+ie!==57&&!(e+ie===84&&qe()===47););return"/*"+sn(t,Ce-1)+"*"+Vn(e===47?e:ke())}function Ou(e){for(;!cn(qe());)ke();return sn(e,Ce)}function Vu(e){return Wl(Gn("",null,null,null,[""],e=Gl(e),0,[0],e))}function Gn(e,t,n,r,o,a,l,i,c){for(var u=0,m=0,p=l,d=0,g=0,f=0,h=1,v=1,b=1,S=0,x="",C=o,k=a,j=r,_=x;v;)switch(f=S,S=ke()){case 40:if(f!=108&&pe(_,p-1)==58){Yr(_+=D(Bn(S),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=Bn(S);break;case 9:case 10:case 13:case 32:_+=$u(f);break;case 92:_+=Eu(Hn()-1,7);continue;case 47:switch(qe()){case 42:case 47:zn(zu(Tu(ke(),Hn()),t,n),c);break;default:_+="/"}break;case 123*h:i[u++]=We(_)*b;case 125*h:case 59:case 0:switch(S){case 0:case 125:v=0;case 59+m:b==-1&&(_=D(_,/\f/g,"")),g>0&&We(_)-p&&zn(g>32?Kl(_+";",r,n,p-1):Kl(D(_," ","")+";",r,n,p-2),c);break;case 59:_+=";";default:if(zn(j=ql(_,t,n,u,m,o,i,x,C=[],k=[],p),a),S===123)if(m===0)Gn(_,t,j,j,C,a,p,i,k);else switch(d===99&&pe(_,3)===110?100:d){case 100:case 108:case 109:case 115:Gn(e,j,j,r&&zn(ql(e,j,j,0,0,o,i,x,o,C=[],p),k),o,k,p,i,r?C:k);break;default:Gn(_,j,j,j,[""],k,0,i,k)}}u=m=g=0,h=b=1,x=_="",p=l;break;case 58:p=1+We(_),g=f;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&Pu()==125)continue}switch(_+=Vn(S),S*h){case 38:b=m>0?1:(_+="\f",-1);break;case 44:i[u++]=(We(_)-1)*b,b=1;break;case 64:qe()===45&&(_+=Bn(ke())),d=qe(),m=p=We(x=_+=Ou(Hn())),S++;break;case 45:f===45&&We(_)==2&&(h=0)}}return a}function ql(e,t,n,r,o,a,l,i,c,u,m){for(var p=o-1,d=o===0?a:[""],g=Zr(d),f=0,h=0,v=0;f0?d[b]+" "+S:D(S,/&\f/g,d[b])))&&(c[v++]=x);return Ln(e,t,n,o===0?Jr:i,c,u,m)}function zu(e,t,n){return Ln(e,t,n,Dl,Vn(Iu()),an(e,2,-2),0)}function Kl(e,t,n,r){return Ln(e,t,n,Xr,an(e,0,r),an(e,r+1,-1),r)}function Ht(e,t){for(var n="",r=Zr(e),o=0;o6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+On+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yr(e,"stretch")?Jl(D(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,We(e)-3-(~Yr(e,"!important")&&10))){case 107:return D(e,":",":"+z)+e;case 101:return D(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(pe(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ye+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+ye+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+ye+e+e}return e}var Uu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xr:e.return=Jl(e.value,e.length);break;case Ll:return Ht([ln(e,{value:D(e.value,"@","@"+z)})],r);case Jr:if(e.length)return Au(e.props,function(o){switch(Fu(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ht([ln(e,{props:[D(o,/:(read-\w+)/,":"+On+"$1")]})],r);case"::placeholder":return Ht([ln(e,{props:[D(o,/:(plac\w+)/,":"+z+"input-$1")]}),ln(e,{props:[D(o,/:(plac\w+)/,":"+On+"$1")]}),ln(e,{props:[D(o,/:(plac\w+)/,ye+"input-$1")]})],r)}return""})}}],eo=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){f.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||Uu,o={},a,l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var h=f.getAttribute("data-emotion").split(" "),v=1;v{var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function C(j){if(typeof j=="object"&&j){var _=j.$$typeof;switch(_){case n:switch(j=j.type,j){case u:case m:case o:case l:case a:case d:return j;default:switch(j&&(j=j.$$typeof),j){case c:case p:case h:case f:case i:return j;default:return _}}case r:return _}}}function k(j){return C(j)===m}e.AsyncMode=u,e.ConcurrentMode=m,e.ContextConsumer=c,e.ContextProvider=i,e.Element=n,e.ForwardRef=p,e.Fragment=o,e.Lazy=h,e.Memo=f,e.Portal=r,e.Profiler=l,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(j){return k(j)||C(j)===u},e.isConcurrentMode=k,e.isContextConsumer=function(j){return C(j)===c},e.isContextProvider=function(j){return C(j)===i},e.isElement=function(j){return typeof j=="object"&&!!j&&j.$$typeof===n},e.isForwardRef=function(j){return C(j)===p},e.isFragment=function(j){return C(j)===o},e.isLazy=function(j){return C(j)===h},e.isMemo=function(j){return C(j)===f},e.isPortal=function(j){return C(j)===r},e.isProfiler=function(j){return C(j)===l},e.isStrictMode=function(j){return C(j)===a},e.isSuspense=function(j){return C(j)===d},e.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===o||j===m||j===l||j===a||j===d||j===g||typeof j=="object"&&!!j&&(j.$$typeof===h||j.$$typeof===f||j.$$typeof===i||j.$$typeof===c||j.$$typeof===p||j.$$typeof===b||j.$$typeof===S||j.$$typeof===x||j.$$typeof===v)},e.typeOf=C})),Xu=Tt(((e,t)=>{t.exports=Ju()})),Yu=Tt(((e,t)=>{var n=Xu(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=a,i[n.Memo]=l;function c(v){return n.isMemo(v)?l:i[v.$$typeof]||r}var u=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function h(v,b,S){if(typeof b!="string"){if(f){var x=g(b);x&&x!==f&&h(v,x,S)}var C=m(b);p&&(C=C.concat(p(b)));for(var k=c(v),j=c(b),_=0;_=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ed={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},td=!1,nd=/[A-Z]|^ms/g,rd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yl=function(e){return e.charCodeAt(1)===45},Zl=function(e){return e!=null&&typeof e!="boolean"},ro=ix(function(e){return Yl(e)?e:e.replace(nd,"-$&").toLowerCase()}),Ql=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(rd,function(n,r,o){return Ke={name:r,styles:o,next:Ke},r})}return ed[e]!==1&&!Yl(e)&&typeof t=="number"&&t!==0?t+"px":t},od="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function un(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(o.anim===1)return Ke={name:o.name,styles:o.styles,next:Ke},o.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Ke={name:l.name,styles:l.styles,next:Ke},l=l.next;return a.styles+";"}return ad(e,t,n);case"function":if(e!==void 0){var i=Ke,c=n(e);return Ke=i,un(e,t,c)}break}var u=n;if(t==null)return u;var m=t[u];return m===void 0?u:m}function ad(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{let t=(0,pd.c)(6),{container:n,children:r}=e,o;e:{if(!n){let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=eo({key:"mo",prepend:!0}),t[0]=c):c=t[0],o=c;break e}let i;if(t[1]!==n){let c=n.querySelector("style");c||(c=document.createElement("style"),n.append(c)),i=eo({key:"mo",prepend:!0,container:c}),t[1]=n,t[2]=i}else i=t[2];o=i}let a=o,l;return t[3]!==a||t[4]!==r?(l=(0,s.jsx)(id,{value:a,children:r}),t[3]=a,t[4]=r,t[5]=l):l=t[5],l};var mn={black:"#000",white:"#fff"},Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},pn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},fd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function gt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Rt="$$material",gd=!1,hd=sx,yd=function(e){return e!=="theme"},ai=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?hd:yd},li=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},bd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return to(t,n,r),ni(function(){return no(t,n,r)}),null},xd=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var i=li(t,n,r),c=i||ai(o),u=!c("as");return function(){var m=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var d=m[0];p.push(d[0]);for(var g=m.length,f=1;ft(wd(r)?n:r):t})}function si(e,t){return io(e,t)}function Sd(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var ci=[];function ht(e){return ci[0]=e,Wn(ci)}var Cd=Tt((e=>{var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.client.reference");e.isValidElementType=function(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===r||d===n||d===i||d===c||typeof d=="object"&&d&&(d.$$typeof===m||d.$$typeof===u||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===p||d.getModuleId!==void 0))}})),ui=Tt(((e,t)=>{t.exports=Cd()}))();function Ue(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function di(e){if(w.isValidElement(e)||(0,ui.isValidElementType)(e)||!Ue(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=di(e[n])}),t}function _e(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ue(e)&&Ue(t)&&Object.keys(t).forEach(o=>{w.isValidElement(t[o])||(0,ui.isValidElementType)(t[o])?r[o]=t[o]:Ue(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ue(e[o])?r[o]=_e(e[o],t[o],n):n.clone?r[o]=Ue(t[o])?di(t[o]):t[o]:r[o]=t[o]}),r}var jd=e=>{let t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function kd(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=jd(t),l=Object.keys(a);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,g){let f=l.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(f!==-1&&typeof t[l[f]]=="number"?t[l[f]]:g)-r/100}${n})`}function m(d){return l.indexOf(d)+1r.startsWith("@container")).sort((r,o)=>{var l,i;let a=/min-width:\s*([0-9.]+)/;return(((l=r.match(a))==null?void 0:l[1])||0)-+(((i=o.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((r,o)=>{let a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function _d(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Rd(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Md(e){let t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...i)=>t(e.breakpoints.up(...i),l),a.down=(...i)=>t(e.breakpoints.down(...i),l),a.between=(...i)=>t(e.breakpoints.between(...i),l),a.only=(...i)=>t(e.breakpoints.only(...i),l),a.not=(...i)=>{let c=t(e.breakpoints.not(...i),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}let r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}var Nd={borderRadius:4};function Fd(e,t){return t?_e(e,t,{clone:!1}):e}var fn=Fd;const qn={xs:0,sm:600,md:900,lg:1200,xl:1536};var pi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qn[e]}px)`},Ad={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:qn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function lt(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let o=r.breakpoints||pi;return t.reduce((a,l,i)=>(a[o.up(o.keys[i])]=n(t[i]),a),{})}if(typeof t=="object"){let o=r.breakpoints||pi;return Object.keys(t).reduce((a,l)=>{if(_d(o.keys,l)){let i=Rd(r.containerQueries?r:Ad,l);i&&(a[i]=n(t[l],l))}else if(Object.keys(o.values||qn).includes(l)){let i=o.up(l);a[i]=n(t[l],l)}else{let i=l;a[i]=t[i]}return a},{})}return n(t)}function Id(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{let o=e.up(r);return n[o]={},n},{}))||{}}function fi(e,t){return e.reduce((n,r)=>{let o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function so(e){if(typeof e!="string")throw Error(gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Un(e,t,n,r=n){let o;return o=typeof e=="function"?e(n):Array.isArray(e)?e[n]||r:Kn(e,n)||r,t&&(o=t(o,r,e)),o}function Pd(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=l=>{if(l[t]==null)return null;let i=l[t],c=l.theme,u=Kn(c,r)||{};return lt(l,i,m=>{let p=Un(u,o,m);return m===p&&typeof m=="string"&&(p=Un(u,o,`${t}${m==="default"?"":so(m)}`,m)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}var re=Pd;function $d(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Ed={m:"margin",p:"padding"},Td={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Od=$d(e=>{if(e.length>2)if(gi[e])e=gi[e];else return[e];let[t,n]=e.split(""),r=Ed[t],o=Td[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]});const co=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],uo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var hi=[...co,...uo];function gn(e,t,n,r){let o=Kn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;let l=o[Math.abs(a)];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function mo(e){return gn(e,"spacing",8,"spacing")}function hn(e,t){return typeof t=="string"||t==null?t:e(t)}function Vd(e,t){return n=>e.reduce((r,o)=>(r[o]=hn(t,n),r),{})}function zd(e,t,n,r){if(!t.includes(n))return null;let o=Vd(Od(n),r),a=e[n];return lt(e,a,o)}function po(e,t){let n=mo(e.theme);return Object.keys(e).map(r=>zd(e,t,r,n)).reduce(fn,{})}function ee(e){return po(e,co)}ee.propTypes={},ee.filterProps=co;function te(e){return po(e,uo)}te.propTypes={},te.filterProps=uo;function yi(e){return po(e,hi)}yi.propTypes={},yi.filterProps=hi;function bi(e=8,t=mo({spacing:e})){if(e.mui)return e;let n=(...r)=>(r.length===0?[1]:r).map(o=>{let a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Dd(...e){let t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?fn(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}var Jn=Dd;function $e(e){return typeof e=="number"?`${e}px solid`:e}function Ee(e,t){return re({prop:e,themeKey:"borders",transform:t})}const Ld=Ee("border",$e),Hd=Ee("borderTop",$e),Bd=Ee("borderRight",$e),Gd=Ee("borderBottom",$e),Wd=Ee("borderLeft",$e),qd=Ee("borderColor"),Kd=Ee("borderTopColor"),Ud=Ee("borderRightColor"),Jd=Ee("borderBottomColor"),Xd=Ee("borderLeftColor"),Yd=Ee("outline",$e),Zd=Ee("outlineColor"),Xn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=gn(e.theme,"shape.borderRadius",4,"borderRadius");return lt(e,e.borderRadius,n=>({borderRadius:hn(t,n)}))}return null};Xn.propTypes={},Xn.filterProps=["borderRadius"],Jn(Ld,Hd,Bd,Gd,Wd,qd,Kd,Ud,Jd,Xd,Xn,Yd,Zd);const Yn=e=>{if(e.gap!==void 0&&e.gap!==null){let t=gn(e.theme,"spacing",8,"gap");return lt(e,e.gap,n=>({gap:hn(t,n)}))}return null};Yn.propTypes={},Yn.filterProps=["gap"];const Zn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=gn(e.theme,"spacing",8,"columnGap");return lt(e,e.columnGap,n=>({columnGap:hn(t,n)}))}return null};Zn.propTypes={},Zn.filterProps=["columnGap"];const Qn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=gn(e.theme,"spacing",8,"rowGap");return lt(e,e.rowGap,n=>({rowGap:hn(t,n)}))}return null};Qn.propTypes={},Qn.filterProps=["rowGap"],Jn(Yn,Zn,Qn,re({prop:"gridColumn"}),re({prop:"gridRow"}),re({prop:"gridAutoFlow"}),re({prop:"gridAutoColumns"}),re({prop:"gridAutoRows"}),re({prop:"gridTemplateColumns"}),re({prop:"gridTemplateRows"}),re({prop:"gridTemplateAreas"}),re({prop:"gridArea"}));function Ut(e,t){return t==="grey"?t:e}Jn(re({prop:"color",themeKey:"palette",transform:Ut}),re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),re({prop:"backgroundColor",themeKey:"palette",transform:Ut}));function Re(e){return e<=1&&e!==0?`${e*100}%`:e}const Qd=re({prop:"width",transform:Re}),fo=e=>e.maxWidth!==void 0&&e.maxWidth!==null?lt(e,e.maxWidth,t=>{var r,o,a,l,i;let n=((a=(o=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:o.values)==null?void 0:a[t])||qn[t];return n?((i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.unit)==="px"?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Re(t)}}):null;fo.filterProps=["maxWidth"];const em=re({prop:"minWidth",transform:Re}),tm=re({prop:"height",transform:Re}),nm=re({prop:"maxHeight",transform:Re}),rm=re({prop:"minHeight",transform:Re});re({prop:"size",cssProperty:"width",transform:Re}),re({prop:"size",cssProperty:"height",transform:Re}),Jn(Qd,fo,em,tm,nm,rm,re({prop:"boxSizing"}));var yn={border:{themeKey:"borders",transform:$e},borderTop:{themeKey:"borders",transform:$e},borderRight:{themeKey:"borders",transform:$e},borderBottom:{themeKey:"borders",transform:$e},borderLeft:{themeKey:"borders",transform:$e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xn},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:te},pt:{style:te},pr:{style:te},pb:{style:te},pl:{style:te},px:{style:te},py:{style:te},padding:{style:te},paddingTop:{style:te},paddingRight:{style:te},paddingBottom:{style:te},paddingLeft:{style:te},paddingX:{style:te},paddingY:{style:te},paddingInline:{style:te},paddingInlineStart:{style:te},paddingInlineEnd:{style:te},paddingBlock:{style:te},paddingBlockStart:{style:te},paddingBlockEnd:{style:te},m:{style:ee},mt:{style:ee},mr:{style:ee},mb:{style:ee},ml:{style:ee},mx:{style:ee},my:{style:ee},margin:{style:ee},marginTop:{style:ee},marginRight:{style:ee},marginBottom:{style:ee},marginLeft:{style:ee},marginX:{style:ee},marginY:{style:ee},marginInline:{style:ee},marginInlineStart:{style:ee},marginInlineEnd:{style:ee},marginBlock:{style:ee},marginBlockStart:{style:ee},marginBlockEnd:{style:ee},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Yn},rowGap:{style:Qn},columnGap:{style:Zn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Re},maxWidth:{style:fo},minWidth:{transform:Re},height:{transform:Re},maxHeight:{transform:Re},minHeight:{transform:Re},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function om(...e){let t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function am(e,t){return typeof e=="function"?e(t):e}function lm(){function e(n,r,o,a){let l={[n]:r,theme:o},i=a[n];if(!i)return{[n]:r};let{cssProperty:c=n,themeKey:u,transform:m,style:p}=i;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};let d=Kn(o,u)||{};return p?p(l):lt(l,r,g=>{let f=Un(d,m,g);return g===f&&typeof g=="string"&&(f=Un(d,m,`${n}${g==="default"?"":so(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){let{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;let l=o.unstable_sxConfig??yn;function i(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;let m=Id(o.breakpoints),p=Object.keys(m),d=m;return Object.keys(u).forEach(g=>{let f=am(u[g],o);if(f!=null)if(typeof f=="object")if(l[g])d=fn(d,e(g,f,o,l));else{let h=lt({theme:o},f,v=>({[g]:v}));om(h,f)?d[g]=t({sx:f,theme:o,nested:!0}):d=fn(d,h)}else d=fn(d,e(g,f,o,l))}),!a&&o.modularCssLayers?{"@layer sx":mi(o,fi(p,d))}:mi(o,fi(p,d))}return Array.isArray(r)?r.map(i):i(r)}return t}var xi=lm();xi.filterProps=["sx"];var Mt=xi;function im(e,t){var r;let n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function sm(e={},...t){let{breakpoints:n={},palette:r={},spacing:o,shape:a={},...l}=e,i=kd(n),c=bi(o),u=_e({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Nd,...a}},l);return u=Md(u),u.applyStyles=im,u=t.reduce((m,p)=>_e(m,p),u),u.unstable_sxConfig={...yn,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(m){return Mt({sx:m,theme:this})},u}var go=sm;function cm(e){return Object.keys(e).length===0}function um(e=null){let t=w.useContext(dn);return!t||cm(t)?e:t}var ho=um;const dm=go();function mm(e=dm){return ho(e)}var yo=mm;function vi(e){let t=ht(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function pm({styles:e,themeId:t,defaultTheme:n={}}){let r=yo(n),o=t&&r[t]||r,a=typeof e=="function"?e(o):e;return o.modularCssLayers&&(a=Array.isArray(a)?a.map(l=>vi(typeof l=="function"?l(o):l)):vi(a)),(0,s.jsx)(ii,{styles:a})}var wi=pm,fm=e=>{var r;let t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??yn;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function gm(e){let{sx:t,...n}=e,{systemProps:r,otherProps:o}=fm(n),a;return a=Array.isArray(t)?[r,...t]:typeof t=="function"?(...l)=>{let i=t(...l);return Ue(i)?{...r,...i}:r}:{...r,...t},{...o,sx:a}}var Si=e=>e,Ci=(()=>{let e=Si;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Si}}})();function hm(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=si("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Mt);return w.forwardRef(function(l,i){let c=yo(n),{className:u,component:m="div",...p}=gm(l);return(0,s.jsx)(a,{as:m,ref:i,className:In(u,o?o(r):r),theme:t&&c[t]||c,...p})})}const ym={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function er(e,t,n="Mui"){let r=ym[t];return r?`${n}-${r}`:`${Ci.generate(e)}-${t}`}function tr(e,t,n="Mui"){let r={};return t.forEach(o=>{r[o]=er(e,o,n)}),r}function ji(e){let{variants:t,...n}=e,r={variants:t,style:ht(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ht(o.style))}),r}const bm=go();function bo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function xm(e){return e?(t,n)=>n[e]:null}function vm(e,t,n){e.theme=Sm(e.theme)?n:e.theme[t]||e.theme}function nr(e,t,n){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>nr(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Nt(r.style,n):r.style;else{let{variants:a,...l}=r;o=n?Nt(ht(l),n):l}return ki(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Nt(ht(r.style),n):r.style:n?Nt(ht(r),n):r}function ki(e,t,n=[],r=void 0){var a;let o;e:for(let l=0;l{Sd(l,k=>k.filter(j=>j!==Mt));let{name:c,slot:u,skipVariantsResolver:m,skipSx:p,overridesResolver:d=xm(jm(u)),...g}=i,f=c&&c.startsWith("Mui")||u?"components":"custom",h=m===void 0?u&&u!=="Root"&&u!=="root"||!1:m,v=p||!1,b=bo;u==="Root"||u==="root"?b=r:u?b=o:Cm(l)&&(b=void 0);let S=si(l,{shouldForwardProp:b,label:void 0,...g}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(j){return nr(j,k,j.theme.modularCssLayers?f:void 0)};if(Ue(k)){let j=ji(k);return function(_){return j.variants?nr(_,j,_.theme.modularCssLayers?f:void 0):_.theme.modularCssLayers?Nt(j.style,f):j.style}}return k},C=(...k)=>{let j=[],_=k.map(x),R=[];if(j.push(a),c&&d&&R.push(function(y){var T,B;let N=(B=(T=y.theme.components)==null?void 0:T[c])==null?void 0:B.styleOverrides;if(!N)return null;let A={};for(let ae in N)A[ae]=nr(y,N[ae],y.theme.modularCssLayers?"theme":void 0);return d(y,A)}),c&&!h&&R.push(function(y){var A,T,B;let N=(B=(T=(A=y.theme)==null?void 0:A.components)==null?void 0:T[c])==null?void 0:B.variants;return N?ki(y,N,[],y.theme.modularCssLayers?"theme":void 0):null}),v||R.push(Mt),Array.isArray(_[0])){let y=_.shift(),N=Array(j.length).fill(""),A=Array(R.length).fill(""),T;T=[...N,...y,...A],T.raw=[...N,...y.raw,...A],j.unshift(T)}let F=S(...j,..._,...R);return l.muiName&&(F.muiName=l.muiName),F};return S.withConfig&&(C.withConfig=S.withConfig),C}}function Sm(e){for(let t in e)return!1;return!0}function Cm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function xo(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){let a=e[o],l=t[o];if(!l)n[o]=a||{};else if(!a)n[o]=l;else for(let i in n[o]={...l},a)if(Object.prototype.hasOwnProperty.call(a,i)){let c=i;n[o][c]=xo(a[c],l[c])}}else n[o]===void 0&&(n[o]=e[o])}return n}var Ft=typeof window<"u"?w.useLayoutEffect:w.useEffect;function km(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var _m=km;function vo(e,t=0,n=1){return _m(e,t,n)}function Rm(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yt(e){if(e.type)return e;if(e.charAt(0)==="#")return yt(Rm(e));let t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error(gt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw Error(gt(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Mm=e=>{let t=yt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},bn=(e,t)=>{try{return Mm(e)}catch{return e}};function rr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function _i(e){e=yt(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(u,m=(u+n/30)%12)=>o-a*Math.max(Math.min(m-3,9-m,1),-1),i="rgb",c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(i+="a",c.push(t[3])),rr({type:i,values:c})}function wo(e){e=yt(e);let t=e.type==="hsl"||e.type==="hsla"?yt(_i(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Nm(e,t){let n=wo(e),r=wo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function So(e,t){return e=yt(e),t=vo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,rr(e)}function or(e,t,n){try{return So(e,t)}catch{return e}}function Co(e,t){if(e=yt(e),t=vo(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rr(e)}function W(e,t,n){try{return Co(e,t)}catch{return e}}function jo(e,t){if(e=yt(e),t=vo(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rr(e)}function q(e,t,n){try{return jo(e,t)}catch{return e}}function Fm(e,t=.15){return wo(e)>.5?Co(e,t):jo(e,t)}function ar(e,t,n){try{return Fm(e,t)}catch{return e}}function Am(e,t=166){let n;function r(...o){clearTimeout(n),n=setTimeout(()=>{e.apply(this,o)},t)}return r.clear=()=>{clearTimeout(n)},r}function Im(e){return e&&e.ownerDocument||document}function Ri(e){return Im(e).defaultView||window}var Mi=0;function Pm(e){let[t,n]=w.useState(e),r=e||t;return w.useEffect(()=>{t??(Mi+=1,n(`mui-${Mi}`))},[t]),r}var Ni={...w}.useId;function $m(e){if(Ni!==void 0){let t=Ni();return e??t}return Pm(e)}function Em(e){let t=w.useRef(e);return Ft(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}var Tm=Em;function Fi(...e){let t=w.useRef(void 0),n=w.useCallback(r=>{let o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){let l=a,i=l(r);return typeof i=="function"?i:()=>{l(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current=(t.current(),void 0)),r!=null&&(t.current=n(r))},e)}function ko(e,t,n=void 0){let r={};for(let o in e){let a=e[o],l="",i=!0;for(let c=0;c{let a=r===null?{...n}:Vm(r,n);return a!=null&&(a[Om]=r!==null),a},[n,r]);return(0,s.jsx)(Ai.Provider,{value:o,children:t})}var Dm=zm,Lm=w.createContext();function Hm({value:e,...t}){return(0,s.jsx)(Lm.Provider,{value:e??!0,...t})}var Bm=Hm,Ii=w.createContext(void 0);function Gm({value:e,children:t}){return(0,s.jsx)(Ii.Provider,{value:e,children:t})}function Wm(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let o=t.components[n];return o.defaultProps?xo(o.defaultProps,r):!o.styleOverrides&&!o.variants?xo(o,r):r}function qm({props:e,name:t}){return Wm({props:e,name:t,theme:{components:w.useContext(Ii)}})}var Km=Gm;function Um(e){let t=ho(),n=$m()||"",{modularCssLayers:r}=e,o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=!r||t!==null?"":typeof r=="string"?r.replace(/mui(?!\.)/g,o):`@layer ${o};`,Ft(()=>{var i,c;let a=document.querySelector("head");if(!a)return;let l=a.firstChild;if(o){if(l&&((i=l.hasAttribute)!=null&&i.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===n)return;let u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=o,a.prepend(u)}else(c=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[o,n]),o?(0,s.jsx)(wi,{styles:o}):null}var Pi={};function $i(e,t,n,r=!1){return w.useMemo(()=>{let o=e&&t[e]||t;if(typeof n=="function"){let a=n(o),l=e?{...t,[e]:a}:a;return r?()=>l:l}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Jm(e){let{children:t,theme:n,themeId:r}=e,o=ho(Pi),a=_o()||Pi,l=$i(r,o,n),i=$i(r,a,n,!0),c=(r?l[r]:l).direction==="rtl",u=Um(l);return(0,s.jsx)(Dm,{theme:i,children:(0,s.jsx)(dn.Provider,{value:l,children:(0,s.jsx)(Bm,{value:c,children:(0,s.jsxs)(Km,{value:r?l[r].components:l.components,children:[u,t]})})})})}var Ei=Jm,Ti={theme:void 0};function Xm(e){let t,n;return function(r){let o=t;return(o===void 0||r.theme!==n)&&(Ti.theme=r.theme,o=ji(e(Ti)),t=o,n=r.theme),o}}const Ro="mode",Mo="color-scheme";function Ym(e){let{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Ro,colorSchemeStorageKey:a=Mo,attribute:l="data-color-scheme",colorSchemeNode:i="document.documentElement",nonce:c}=e||{},u="",m=l;if(l==="class"&&(m=".%s"),l==="data"&&(m="[data-%s]"),m.startsWith(".")){let d=m.substring(1);u+=`${i}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark)); + ${i}.classList.add('${d}'.replace('%s', colorScheme));`}let p=m.match(/\[([^\]]+)\]/);if(p){let[d,g]=p[1].split("=");g||(u+=`${i}.removeAttribute('${d}'.replace('%s', light)); + ${i}.removeAttribute('${d}'.replace('%s', dark));`),u+=` + ${i}.setAttribute('${d}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else u+=`${i}.setAttribute('${m}', colorScheme);`;return(0,s.jsx)("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${t}'; + const dark = localStorage.getItem('${a}-dark') || '${r}'; + const light = localStorage.getItem('${a}-light') || '${n}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${u} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function Zm(){}var Qm=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Zm;let r=o=>{let a=o.newValue;o.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function No(){}function Oi(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Vi(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function ep(e){return Vi(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function tp(e){let{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=Ro,colorSchemeStorageKey:l=Mo,storageWindow:i=typeof window>"u"?void 0:window,storageManager:c=Qm,noSsr:u=!1}=e,m=o.join(","),p=o.length>1,d=w.useMemo(()=>c==null?void 0:c({key:a,storageWindow:i}),[c,a,i]),g=w.useMemo(()=>c==null?void 0:c({key:`${l}-light`,storageWindow:i}),[c,l,i]),f=w.useMemo(()=>c==null?void 0:c({key:`${l}-dark`,storageWindow:i}),[c,l,i]),[h,v]=w.useState(()=>{let R=(d==null?void 0:d.get(t))||t,F=(g==null?void 0:g.get(n))||n,y=(f==null?void 0:f.get(r))||r;return{mode:R,systemMode:Oi(R),lightColorScheme:F,darkColorScheme:y}}),[b,S]=w.useState(u||!p);w.useEffect(()=>{S(!0)},[]);let x=ep(h),C=w.useCallback(R=>{v(F=>{if(R===F.mode)return F;let y=R??t;return d==null||d.set(y),{...F,mode:y,systemMode:Oi(y)}})},[d,t]),k=w.useCallback(R=>{R?typeof R=="string"?R&&!m.includes(R)?console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`):v(F=>{let y={...F};return Vi(F,N=>{N==="light"&&(g==null||g.set(R),y.lightColorScheme=R),N==="dark"&&(f==null||f.set(R),y.darkColorScheme=R)}),y}):v(F=>{let y={...F},N=R.light===null?n:R.light,A=R.dark===null?r:R.dark;return N&&(m.includes(N)?(y.lightColorScheme=N,g==null||g.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),A&&(m.includes(A)?(y.darkColorScheme=A,f==null||f.set(A)):console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`)),y}):v(F=>(g==null||g.set(n),f==null||f.set(r),{...F,lightColorScheme:n,darkColorScheme:r}))},[m,g,f,n,r]),j=w.useCallback(R=>{h.mode==="system"&&v(F=>{let y=R!=null&&R.matches?"dark":"light";return F.systemMode===y?F:{...F,systemMode:y}})},[h.mode]),_=w.useRef(j);return _.current=j,w.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;let R=(...y)=>_.current(...y),F=window.matchMedia("(prefers-color-scheme: dark)");return F.addListener(R),R(F),()=>{F.removeListener(R)}},[p]),w.useEffect(()=>{if(p){let R=(d==null?void 0:d.subscribe(N=>{(!N||["light","dark","system"].includes(N))&&C(N||t)}))||No,F=(g==null?void 0:g.subscribe(N=>{(!N||m.match(N))&&k({light:N})}))||No,y=(f==null?void 0:f.subscribe(N=>{(!N||m.match(N))&&k({dark:N})}))||No;return()=>{R(),F(),y()}}},[k,C,m,t,i,p,d,g,f]),{...h,mode:b?h.mode:void 0,systemMode:b?h.systemMode:void 0,colorScheme:b?x:void 0,setMode:C,setColorScheme:k}}function np(e){let{themeId:t,theme:n={},modeStorageKey:r=Ro,colorSchemeStorageKey:o=Mo,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:i}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=w.createContext(void 0),m=()=>w.useContext(u)||c,p={},d={};function g(v){var Qt,Be,Fr,en;let{children:b,theme:S,modeStorageKey:x=r,colorSchemeStorageKey:C=o,disableTransitionOnChange:k=a,storageManager:j,storageWindow:_=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:F=typeof document>"u"?void 0:document.documentElement,disableNestedContext:y=!1,disableStyleSheetGeneration:N=!1,defaultMode:A="system",noSsr:T}=v,B=w.useRef(!1),ae=_o(),ue=w.useContext(u),se=!!ue&&!y,le=w.useMemo(()=>S||(typeof n=="function"?n():n),[S]),ve=le[t],H=ve||le,{colorSchemes:U=p,components:we=d,cssVarPrefix:ne}=H,Me=Object.keys(U).filter(me=>!!U[me]).join(","),Ne=w.useMemo(()=>Me.split(","),[Me]),Fe=typeof l=="string"?l:l.light,Te=typeof l=="string"?l:l.dark,{mode:Ae,setMode:tt,systemMode:mt,lightColorScheme:Ie,darkColorScheme:He,colorScheme:G,setColorScheme:Y}=tp({supportedColorSchemes:Ne,defaultLightColorScheme:Fe,defaultDarkColorScheme:Te,modeStorageKey:x,colorSchemeStorageKey:C,defaultMode:U[Fe]&&U[Te]?A:((Be=(Qt=U[H.defaultColorScheme])==null?void 0:Qt.palette)==null?void 0:Be.mode)||((Fr=H.palette)==null?void 0:Fr.mode),storageManager:j,storageWindow:_,noSsr:T}),je=Ae,X=G;se&&(je=ue.mode,X=ue.colorScheme);let L=w.useMemo(()=>{var Ct;let me=X||H.defaultColorScheme,ge=((Ct=H.generateThemeVars)==null?void 0:Ct.call(H))||H.vars,he={...H,components:we,colorSchemes:U,cssVarPrefix:ne,vars:ge};if(typeof he.generateSpacing=="function"&&(he.spacing=he.generateSpacing()),me){let V=U[me];V&&typeof V=="object"&&Object.keys(V).forEach(Ve=>{V[Ve]&&typeof V[Ve]=="object"?he[Ve]={...he[Ve],...V[Ve]}:he[Ve]=V[Ve]})}return i?i(he):he},[H,X,we,U,ne]),Se=H.colorSchemeSelector;Ft(()=>{if(X&&F&&Se&&Se!=="media"){let me=Se,ge=Se;if(me==="class"&&(ge=".%s"),me==="data"&&(ge="[data-%s]"),me!=null&&me.startsWith("data-")&&!me.includes("%s")&&(ge=`[${me}="%s"]`),ge.startsWith("."))F.classList.remove(...Ne.map(he=>ge.substring(1).replace("%s",he))),F.classList.add(ge.substring(1).replace("%s",X));else{let he=ge.replace("%s",X).match(/\[([^\]]+)\]/);if(he){let[Ct,V]=he[1].split("=");V||Ne.forEach(Ve=>{F.removeAttribute(Ct.replace(X,Ve))}),F.setAttribute(Ct,V?V.replace(/"|'/g,""):"")}else F.setAttribute(ge,X)}}},[X,Se,F,Ne]),w.useEffect(()=>{let me;if(k&&B.current&&R){let ge=R.createElement("style");ge.appendChild(R.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),R.head.appendChild(ge),window.getComputedStyle(R.body),me=setTimeout(()=>{R.head.removeChild(ge)},1)}return()=>{clearTimeout(me)}},[X,k,R]),w.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);let Oe=w.useMemo(()=>({allColorSchemes:Ne,colorScheme:X,darkColorScheme:He,lightColorScheme:Ie,mode:je,setColorScheme:Y,setMode:tt,systemMode:mt}),[Ne,X,He,Ie,je,Y,tt,mt,L.colorSchemeSelector]),I=!0;(N||H.cssVariables===!1||se&&(ae==null?void 0:ae.cssVarPrefix)===ne)&&(I=!1);let nt=(0,s.jsxs)(w.Fragment,{children:[(0,s.jsx)(Ei,{themeId:ve?t:void 0,theme:L,children:b}),I&&(0,s.jsx)(ii,{styles:((en=L.generateStyleSheets)==null?void 0:en.call(L))||[]})]});return se?nt:(0,s.jsx)(u.Provider,{value:Oe,children:nt})}let f=typeof l=="string"?l:l.light,h=typeof l=="string"?l:l.dark;return{CssVarsProvider:g,useColorScheme:m,getInitColorSchemeScript:v=>Ym({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:h,modeStorageKey:r,...v})}}function rp(e=""){function t(...n){if(!n.length)return"";let r=n[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const zi=(e,t,n,r=[])=>{let o=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},op=(e,t,n)=>{function r(o,a=[],l=[]){Object.entries(o).forEach(([i,c])=>{(!n||n&&!n([...a,i]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,i],Array.isArray(c)?[...l,i]:l):t([...a,i],c,l))})}r(e)};var ap=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Fo(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},l={};return op(e,(i,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(i,c))){let m=`--${n?`${n}-`:""}${i.join("-")}`,p=ap(i,c);Object.assign(o,{[m]:p}),zi(a,i,`var(${m})`,u),zi(l,i,`var(${m}, ${p})`,u)}},i=>i[0]==="vars"),{css:o,vars:a,varsWithDefaults:l}}function lp(e,t={}){let{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:l,defaultColorScheme:i="light",...c}=e,{vars:u,css:m,varsWithDefaults:p}=Fo(c,t),d=p,g={},{[i]:f,...h}=a;if(Object.entries(h||{}).forEach(([b,S])=>{let{vars:x,css:C,varsWithDefaults:k}=Fo(S,t);d=_e(d,k),g[b]={css:C,vars:x}}),f){let{css:b,vars:S,varsWithDefaults:x}=Fo(f,t);d=_e(d,x),g[i]={css:b,vars:S}}function v(b,S){var C,k;let x=o;if(o==="class"&&(x=".%s"),o==="data"&&(x="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(x=`[${o}="%s"]`),b){if(x==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((k=(C=a[b])==null?void 0:C.palette)==null?void 0:k.mode)||b})`]:{":root":S}};if(x)return e.defaultColorScheme===b?`:root, ${x.replace("%s",String(b))}`:x.replace("%s",String(b))}return":root"}return{vars:d,generateThemeVars:()=>{let b={...u};return Object.entries(g).forEach(([,{vars:S}])=>{b=_e(b,S)}),b},generateStyleSheets:()=>{var j,_;let b=[],S=e.defaultColorScheme||"light";function x(R,F){Object.keys(F).length&&b.push(typeof R=="string"?{[R]:{...F}}:R)}x(n(void 0,{...m}),m);let{[S]:C,...k}=g;if(C){let{css:R}=C,F=(_=(j=a[S])==null?void 0:j.palette)==null?void 0:_.mode,y=!r&&F?{colorScheme:F,...R}:{...R};x(n(S,{...y}),y)}return Object.entries(k).forEach(([R,{css:F}])=>{var A,T;let y=(T=(A=a[R])==null?void 0:A.palette)==null?void 0:T.mode,N=!r&&y?{colorScheme:y,...F}:{...F};x(n(R,{...N}),N)}),b}}}var ip=lp;function sp(e){return function(t){return e==="media"?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function Di(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:mn.white,default:mn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const cp=Di();function Li(){return{text:{primary:mn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:mn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Hi=Li();function Bi(e,t,n,r){let o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=jo(e.main,o):t==="dark"&&(e.dark=Co(e.main,a)))}function up(e="light"){return e==="dark"?{main:Wt[200],light:Wt[50],dark:Wt[400]}:{main:Wt[700],light:Wt[400],dark:Wt[800]}}function dp(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[500],light:Gt[300],dark:Gt[700]}}function mp(e="light"){return e==="dark"?{main:Bt[500],light:Bt[300],dark:Bt[700]}:{main:Bt[700],light:Bt[400],dark:Bt[800]}}function pp(e="light"){return e==="dark"?{main:qt[400],light:qt[300],dark:qt[700]}:{main:qt[700],light:qt[500],dark:qt[900]}}function fp(e="light"){return e==="dark"?{main:Kt[400],light:Kt[300],dark:Kt[700]}:{main:Kt[800],light:Kt[500],dark:Kt[900]}}function gp(e="light"){return e==="dark"?{main:pn[400],light:pn[300],dark:pn[700]}:{main:"#ed6c02",light:pn[500],dark:pn[900]}}function Ao(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||up(t),l=e.secondary||dp(t),i=e.error||mp(t),c=e.info||pp(t),u=e.success||fp(t),m=e.warning||gp(t);function p(f){return Nm(f,Hi.text.primary)>=n?Hi.text.primary:cp.text.primary}let d=({color:f,name:h,mainShade:v=500,lightShade:b=300,darkShade:S=700})=>{if(f={...f},!f.main&&f[v]&&(f.main=f[v]),!f.hasOwnProperty("main"))throw Error(gt(11,h?` (${h})`:"",v));if(typeof f.main!="string")throw Error(gt(12,h?` (${h})`:"",JSON.stringify(f.main)));return Bi(f,"light",b,r),Bi(f,"dark",S,r),f.contrastText||(f.contrastText=p(f.main)),f},g;return t==="light"?g=Di():t==="dark"&&(g=Li()),_e({common:{...mn},mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:i,name:"error"}),warning:d({color:m,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:u,name:"success"}),grey:fd,contrastThreshold:n,getContrastText:p,augmentColor:d,tonalOffset:r,...g},o)}function hp(e){let t={};return Object.entries(e).forEach(n=>{let[r,o]=n;typeof o=="object"&&(t[r]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function yp(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function bp(e){return Math.round(e*1e5)/1e5}var Gi={textTransform:"uppercase"},Wi='"Roboto", "Helvetica", "Arial", sans-serif';function qi(e,t){let{fontFamily:n=Wi,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:i=700,htmlFontSize:c=16,allVariants:u,pxToRem:m,...p}=typeof t=="function"?t(e):t,d=r/14,g=m||(h=>`${h/c*d}rem`),f=(h,v,b,S,x)=>({fontFamily:n,fontWeight:h,fontSize:g(v),lineHeight:b,...n===Wi?{letterSpacing:`${bp(S/v)}em`}:{},...x,...u});return _e({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:i,h1:f(o,96,1.167,-1.5),h2:f(o,60,1.2,-.5),h3:f(a,48,1.167,0),h4:f(a,34,1.235,.25),h5:f(a,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(a,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(a,16,1.5,.15),body2:f(a,14,1.43,.15),button:f(l,14,1.75,.4,Gi),caption:f(a,12,1.66,.4),overline:f(a,12,2.66,1,Gi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},p,{clone:!1})}var xp=.2,vp=.14,wp=.12;function J(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wp})`].join(",")}var Sp=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)];const Cp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},jp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ki(e){return`${Math.round(e)}ms`}function kp(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function _p(e){let t={...Cp,...e.easing},n={...jp,...e.duration};return{getAutoHeightDuration:kp,create:(r=["all"],o={})=>{let{duration:a=n.standard,easing:l=t.easeInOut,delay:i=0,...c}=o;return(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof a=="string"?a:Ki(a)} ${l} ${typeof i=="string"?i:Ki(i)}`).join(",")},...e,easing:t,duration:n}}var Rp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Mp(e){return Ue(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ui(e={}){let t={...e};function n(r){let o=Object.entries(r);for(let a=0;a_e(g,f),d),d.unstable_sxConfig={...yn,...u==null?void 0:u.unstable_sxConfig},d.unstable_sx=function(g){return Mt({sx:g,theme:this})},d.toRuntimeSource=Ui,d}var Io=Np;function Po(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Fp=[...Array(25)].map((e,t)=>{if(t===0)return"none";let n=Po(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ji(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Xi(e){return e==="dark"?Fp:[]}function Ap(e){let{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Ao(t);return{palette:a,opacity:{...Ji(a.mode),...n},overlays:r||Xi(a.mode),...o}}function Ip(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}var Pp=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],$p=e=>(t,n)=>{let r=e.rootSelector||":root",o=e.colorSchemeSelector,a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){let l={};return Pp(e.cssVarPrefix).forEach(i=>{l[i]=n[i],delete n[i]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:a?{[a.replace("%s",t)]:l,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function Ep(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function M(e,t,n){!e[t]&&n&&(e[t]=n)}function xn(e){return typeof e!="string"||!e.startsWith("hsl")?e:_i(e)}function it(e,t){`${t}Channel`in e||(e[`${t}Channel`]=bn(xn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Tp(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}var Je=e=>{try{return e()}catch{}};const Op=(e="mui")=>rp(e);function $o(e,t,n,r){if(!t)return;t=t===!0?{}:t;let o=r==="dark"?"dark":"light";if(!n){e[r]=Ap({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}let{palette:a,...l}=Io({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...Ji(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Xi(o)},l}function Vp(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=Ip,colorSchemeSelector:i=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,m=Object.keys(n)[0],p=r||(n.light&&m!=="light"?"light":m),d=Op(a),{[p]:g,light:f,dark:h,...v}=n,b={...v},S=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(S=!0),!S)throw Error(gt(21,p));let x=$o(b,S,u,p);f&&!b.light&&$o(b,f,void 0,"light"),h&&!b.dark&&$o(b,h,void 0,"dark");let C={defaultColorScheme:p,...x,cssVarPrefix:a,colorSchemeSelector:i,rootSelector:c,getCssVar:d,colorSchemes:b,font:{...hp(x.typography),...x.font},spacing:Tp(u.spacing)};Object.keys(C.colorSchemes).forEach(F=>{let y=C.colorSchemes[F].palette,N=A=>{let T=A.split("-"),B=T[1],ae=T[2];return d(A,y[B][ae])};if(y.mode==="light"&&(M(y.common,"background","#fff"),M(y.common,"onBackground","#000")),y.mode==="dark"&&(M(y.common,"background","#000"),M(y.common,"onBackground","#fff")),Ep(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){M(y.Alert,"errorColor",W(y.error.light,.6)),M(y.Alert,"infoColor",W(y.info.light,.6)),M(y.Alert,"successColor",W(y.success.light,.6)),M(y.Alert,"warningColor",W(y.warning.light,.6)),M(y.Alert,"errorFilledBg",N("palette-error-main")),M(y.Alert,"infoFilledBg",N("palette-info-main")),M(y.Alert,"successFilledBg",N("palette-success-main")),M(y.Alert,"warningFilledBg",N("palette-warning-main")),M(y.Alert,"errorFilledColor",Je(()=>y.getContrastText(y.error.main))),M(y.Alert,"infoFilledColor",Je(()=>y.getContrastText(y.info.main))),M(y.Alert,"successFilledColor",Je(()=>y.getContrastText(y.success.main))),M(y.Alert,"warningFilledColor",Je(()=>y.getContrastText(y.warning.main))),M(y.Alert,"errorStandardBg",q(y.error.light,.9)),M(y.Alert,"infoStandardBg",q(y.info.light,.9)),M(y.Alert,"successStandardBg",q(y.success.light,.9)),M(y.Alert,"warningStandardBg",q(y.warning.light,.9)),M(y.Alert,"errorIconColor",N("palette-error-main")),M(y.Alert,"infoIconColor",N("palette-info-main")),M(y.Alert,"successIconColor",N("palette-success-main")),M(y.Alert,"warningIconColor",N("palette-warning-main")),M(y.AppBar,"defaultBg",N("palette-grey-100")),M(y.Avatar,"defaultBg",N("palette-grey-400")),M(y.Button,"inheritContainedBg",N("palette-grey-300")),M(y.Button,"inheritContainedHoverBg",N("palette-grey-A100")),M(y.Chip,"defaultBorder",N("palette-grey-400")),M(y.Chip,"defaultAvatarColor",N("palette-grey-700")),M(y.Chip,"defaultIconColor",N("palette-grey-700")),M(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),M(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),M(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),M(y.LinearProgress,"primaryBg",q(y.primary.main,.62)),M(y.LinearProgress,"secondaryBg",q(y.secondary.main,.62)),M(y.LinearProgress,"errorBg",q(y.error.main,.62)),M(y.LinearProgress,"infoBg",q(y.info.main,.62)),M(y.LinearProgress,"successBg",q(y.success.main,.62)),M(y.LinearProgress,"warningBg",q(y.warning.main,.62)),M(y.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),M(y.Slider,"primaryTrack",q(y.primary.main,.62)),M(y.Slider,"secondaryTrack",q(y.secondary.main,.62)),M(y.Slider,"errorTrack",q(y.error.main,.62)),M(y.Slider,"infoTrack",q(y.info.main,.62)),M(y.Slider,"successTrack",q(y.success.main,.62)),M(y.Slider,"warningTrack",q(y.warning.main,.62));let A=ar(y.background.default,.8);M(y.SnackbarContent,"bg",A),M(y.SnackbarContent,"color",Je(()=>y.getContrastText(A))),M(y.SpeedDialAction,"fabHoverBg",ar(y.background.paper,.15)),M(y.StepConnector,"border",N("palette-grey-400")),M(y.StepContent,"border",N("palette-grey-400")),M(y.Switch,"defaultColor",N("palette-common-white")),M(y.Switch,"defaultDisabledColor",N("palette-grey-100")),M(y.Switch,"primaryDisabledColor",q(y.primary.main,.62)),M(y.Switch,"secondaryDisabledColor",q(y.secondary.main,.62)),M(y.Switch,"errorDisabledColor",q(y.error.main,.62)),M(y.Switch,"infoDisabledColor",q(y.info.main,.62)),M(y.Switch,"successDisabledColor",q(y.success.main,.62)),M(y.Switch,"warningDisabledColor",q(y.warning.main,.62)),M(y.TableCell,"border",q(or(y.divider,1),.88)),M(y.Tooltip,"bg",or(y.grey[700],.92))}if(y.mode==="dark"){M(y.Alert,"errorColor",q(y.error.light,.6)),M(y.Alert,"infoColor",q(y.info.light,.6)),M(y.Alert,"successColor",q(y.success.light,.6)),M(y.Alert,"warningColor",q(y.warning.light,.6)),M(y.Alert,"errorFilledBg",N("palette-error-dark")),M(y.Alert,"infoFilledBg",N("palette-info-dark")),M(y.Alert,"successFilledBg",N("palette-success-dark")),M(y.Alert,"warningFilledBg",N("palette-warning-dark")),M(y.Alert,"errorFilledColor",Je(()=>y.getContrastText(y.error.dark))),M(y.Alert,"infoFilledColor",Je(()=>y.getContrastText(y.info.dark))),M(y.Alert,"successFilledColor",Je(()=>y.getContrastText(y.success.dark))),M(y.Alert,"warningFilledColor",Je(()=>y.getContrastText(y.warning.dark))),M(y.Alert,"errorStandardBg",W(y.error.light,.9)),M(y.Alert,"infoStandardBg",W(y.info.light,.9)),M(y.Alert,"successStandardBg",W(y.success.light,.9)),M(y.Alert,"warningStandardBg",W(y.warning.light,.9)),M(y.Alert,"errorIconColor",N("palette-error-main")),M(y.Alert,"infoIconColor",N("palette-info-main")),M(y.Alert,"successIconColor",N("palette-success-main")),M(y.Alert,"warningIconColor",N("palette-warning-main")),M(y.AppBar,"defaultBg",N("palette-grey-900")),M(y.AppBar,"darkBg",N("palette-background-paper")),M(y.AppBar,"darkColor",N("palette-text-primary")),M(y.Avatar,"defaultBg",N("palette-grey-600")),M(y.Button,"inheritContainedBg",N("palette-grey-800")),M(y.Button,"inheritContainedHoverBg",N("palette-grey-700")),M(y.Chip,"defaultBorder",N("palette-grey-700")),M(y.Chip,"defaultAvatarColor",N("palette-grey-300")),M(y.Chip,"defaultIconColor",N("palette-grey-300")),M(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),M(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),M(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),M(y.LinearProgress,"primaryBg",W(y.primary.main,.5)),M(y.LinearProgress,"secondaryBg",W(y.secondary.main,.5)),M(y.LinearProgress,"errorBg",W(y.error.main,.5)),M(y.LinearProgress,"infoBg",W(y.info.main,.5)),M(y.LinearProgress,"successBg",W(y.success.main,.5)),M(y.LinearProgress,"warningBg",W(y.warning.main,.5)),M(y.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),M(y.Slider,"primaryTrack",W(y.primary.main,.5)),M(y.Slider,"secondaryTrack",W(y.secondary.main,.5)),M(y.Slider,"errorTrack",W(y.error.main,.5)),M(y.Slider,"infoTrack",W(y.info.main,.5)),M(y.Slider,"successTrack",W(y.success.main,.5)),M(y.Slider,"warningTrack",W(y.warning.main,.5));let A=ar(y.background.default,.98);M(y.SnackbarContent,"bg",A),M(y.SnackbarContent,"color",Je(()=>y.getContrastText(A))),M(y.SpeedDialAction,"fabHoverBg",ar(y.background.paper,.15)),M(y.StepConnector,"border",N("palette-grey-600")),M(y.StepContent,"border",N("palette-grey-600")),M(y.Switch,"defaultColor",N("palette-grey-300")),M(y.Switch,"defaultDisabledColor",N("palette-grey-600")),M(y.Switch,"primaryDisabledColor",W(y.primary.main,.55)),M(y.Switch,"secondaryDisabledColor",W(y.secondary.main,.55)),M(y.Switch,"errorDisabledColor",W(y.error.main,.55)),M(y.Switch,"infoDisabledColor",W(y.info.main,.55)),M(y.Switch,"successDisabledColor",W(y.success.main,.55)),M(y.Switch,"warningDisabledColor",W(y.warning.main,.55)),M(y.TableCell,"border",W(or(y.divider,1),.68)),M(y.Tooltip,"bg",or(y.grey[700],.92))}it(y.background,"default"),it(y.background,"paper"),it(y.common,"background"),it(y.common,"onBackground"),it(y,"divider"),Object.keys(y).forEach(A=>{let T=y[A];A!=="tonalOffset"&&T&&typeof T=="object"&&(T.main&&M(y[A],"mainChannel",bn(xn(T.main))),T.light&&M(y[A],"lightChannel",bn(xn(T.light))),T.dark&&M(y[A],"darkChannel",bn(xn(T.dark))),T.contrastText&&M(y[A],"contrastTextChannel",bn(xn(T.contrastText))),A==="text"&&(it(y[A],"primary"),it(y[A],"secondary")),A==="action"&&(T.active&&it(y[A],"active"),T.selected&&it(y[A],"selected")))})}),C=t.reduce((F,y)=>_e(F,y),C);let k={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:$p(C)},{vars:j,generateThemeVars:_,generateStyleSheets:R}=ip(C,k);return C.vars=j,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([F,y])=>{C[F]=y}),C.generateThemeVars=_,C.generateStyleSheets=R,C.generateSpacing=function(){return bi(u.spacing,mo(this))},C.getColorSchemeSelector=sp(i),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=l,C.unstable_sxConfig={...yn,...u==null?void 0:u.unstable_sxConfig},C.unstable_sx=function(F){return Mt({sx:F,theme:this})},C.toRuntimeSource=Ui,C}function Yi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ao({...n===!0?{}:n.palette,mode:t})})}function lr(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=e,i=a||"light",c=o==null?void 0:o[i],u={...o,...n?{[i]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Io(e,...t);let m=n;"palette"in e||u[i]&&(u[i]===!0?i==="dark"&&(m={mode:"dark"}):m=u[i].palette);let p=Io({...e,palette:m},...t);return p.defaultColorScheme=i,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Yi(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Yi(p,"light",u.light)),p}return!n&&!("light"in u)&&i==="light"&&(u.light=!0),Vp({...l,colorSchemes:u,defaultColorScheme:i,...typeof r!="boolean"&&r},...t)}var Eo=lr();function zp(){let e=yo(Eo);return e.$$material||e}function Dp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var Lp=Dp,ir=wm({themeId:Rt,defaultTheme:Eo,rootShouldForwardProp:e=>Lp(e)&&e!=="classes"});function Hp({theme:e,...t}){let n="$$material"in e?e[Rt]:void 0;return(0,s.jsx)(Ei,{...t,themeId:n?Rt:void 0,theme:n||e})}const sr={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};var{CssVarsProvider:Bp,useColorScheme:Nx,getInitColorSchemeScript:Fx}=np({themeId:Rt,theme:()=>lr({cssVariables:!0}),colorSchemeStorageKey:sr.colorSchemeStorageKey,modeStorageKey:sr.modeStorageKey,defaultColorScheme:{light:sr.defaultLightColorScheme,dark:sr.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:qi(e.palette,e.typography)};return t.unstable_sx=function(n){return Mt({sx:n,theme:this})},t}});const Gp=Bp;function Wp({theme:e,...t}){let n=w.useMemo(()=>{if(typeof e=="function")return e;let r="$$material"in e?e[Rt]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?(0,s.jsx)(Hp,{theme:n,...t}):(0,s.jsx)(Gp,{theme:e,...t})}var At=so;function qp(e){return(0,s.jsx)(wi,{...e,defaultTheme:Eo,themeId:Rt})}var Kp=qp;function Up(e){return function(t){return(0,s.jsx)(Kp,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}var cr=Xm;function To(e){return qm(e)}function Jp(e){return er("MuiSvgIcon",e)}tr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var Xp=e=>{let{color:t,fontSize:n,classes:r}=e;return ko({root:["root",t!=="inherit"&&`color${At(t)}`,`fontSize${At(n)}`]},Jp,r)},Yp=ir("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${At(n.color)}`],t[`fontSize${At(n.fontSize)}`]]}})(cr(({theme:e})=>{var t,n,r,o,a,l,i,c,u,m,p,d,g,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:c.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:m.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var v,b;return{props:{color:h},style:{color:(b=(v=(e.vars??e).palette)==null?void 0:v[h])==null?void 0:b.main}}}),{props:{color:"action"},style:{color:(d=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(f=(g=(e.vars??e).palette)==null?void 0:g.action)==null?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Zi=w.forwardRef(function(e,t){let n=To({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:l="svg",fontSize:i="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:m,viewBox:p="0 0 24 24",...d}=n,g=w.isValidElement(r)&&r.type==="svg",f={...n,color:a,component:l,fontSize:i,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:g},h={};return u||(h.viewBox=p),(0,s.jsxs)(Yp,{as:l,className:In(Xp(f).root,o),focusable:"false",color:c,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:t,...h,...d,...g&&r.props,ownerState:f,children:[g?r.props.children:r,m?(0,s.jsx)("title",{children:m}):null]})});Zi.muiName="SvgIcon";var Zp=Zi,Qp=Ft,ef=Fi;function tf(e){return er("MuiPaper",e)}tr("MuiPaper","root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24".split("."));var nf=e=>{let{square:t,elevation:n,variant:r,classes:o}=e;return ko({root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]},tf,o)},rf=ir("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(cr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),of=w.forwardRef(function(e,t){var p;let n=To({props:e,name:"MuiPaper"}),r=zp(),{className:o,component:a="div",elevation:l=1,square:i=!1,variant:c="elevation",...u}=n,m={...n,component:a,elevation:l,square:i,variant:c};return(0,s.jsx)(rf,{as:a,ownerState:m,className:In(nf(m).root,o),ref:t,...u,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":(p=r.vars.overlays)==null?void 0:p[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${So("#fff",Po(l))}, ${So("#fff",Po(l))})`}},...u.style}})});function ur(e){return parseInt(e,10)||0}var af={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lf(e){for(let t in e)return!1;return!0}function Qi(e){return lf(e)||e.outerHeightStyle===0&&!e.overflowing}var sf=w.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:o=1,style:a,value:l,...i}=e,{current:c}=w.useRef(l!=null),u=w.useRef(null),m=Fi(t,u),p=w.useRef(null),d=w.useRef(null),g=w.useCallback(()=>{let b=u.current,S=d.current;if(!b||!S)return;let x=Ri(b).getComputedStyle(b);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=x.width,S.value=b.value||e.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");let C=x.boxSizing,k=ur(x.paddingBottom)+ur(x.paddingTop),j=ur(x.borderBottomWidth)+ur(x.borderTopWidth),_=S.scrollHeight;S.value="x";let R=S.scrollHeight,F=_;return o&&(F=Math.max(Number(o)*R,F)),r&&(F=Math.min(Number(r)*R,F)),F=Math.max(F,R),{outerHeightStyle:F+(C==="border-box"?k+j:0),overflowing:Math.abs(F-_)<=1}},[r,o,e.placeholder]),f=Tm(()=>{let b=u.current,S=g();if(!b||!S||Qi(S))return!1;let x=S.outerHeightStyle;return p.current!=null&&p.current!==x}),h=w.useCallback(()=>{let b=u.current,S=g();if(!b||!S||Qi(S))return;let x=S.outerHeightStyle;p.current!==x&&(p.current=x,b.style.height=`${x}px`),b.style.overflow=S.overflowing?"hidden":""},[g]),v=w.useRef(-1);return Ft(()=>{let b=Am(h),S=u==null?void 0:u.current;if(!S)return;let x=Ri(S);x.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{f()&&(C.unobserve(S),cancelAnimationFrame(v.current),h(),v.current=requestAnimationFrame(()=>{C.observe(S)}))}),C.observe(S)),()=>{b.clear(),cancelAnimationFrame(v.current),x.removeEventListener("resize",b),C&&C.disconnect()}},[g,h,f]),Ft(()=>{h()}),(0,s.jsxs)(w.Fragment,{children:[(0,s.jsx)("textarea",{value:l,onChange:b=>{c||h(),n&&n(b)},ref:m,rows:o,style:a,...i}),(0,s.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:{...af.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function cf(e){return typeof e=="string"}var es=cf;function uf({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&e[o]===void 0&&(r[o]=n[o]),r),{})}var ts=w.createContext(void 0);function df(){return w.useContext(ts)}function ns(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mf(e,t=!1){return e&&(ns(e.value)&&e.value!==""||t&&ns(e.defaultValue)&&e.defaultValue!=="")}function pf(e){return er("MuiInputBase",e)}var Oo=tr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ff;const gf=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${At(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},hf=(e,t)=>{let{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]};var yf=e=>{let{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:l,formControl:i,fullWidth:c,hiddenLabel:u,multiline:m,readOnly:p,size:d,startAdornment:g,type:f}=e;return ko({root:["root",`color${At(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",i&&"formControl",d&&d!=="medium"&&`size${At(d)}`,m&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",f==="search"&&"inputTypeSearch",m&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",p&&"readOnly"]},pf,t)};const bf=ir("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gf})(cr(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),xf=ir("input",{name:"MuiInputBase",slot:"Input",overridesResolver:hf})(cr(({theme:e})=>{let t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oo.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Oo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}}));var rs=Up({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),vf=w.forwardRef(function(e,t){let n=To({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:l,color:i,components:c={},componentsProps:u={},defaultValue:m,disabled:p,disableInjectingGlobalStyles:d,endAdornment:g,error:f,fullWidth:h=!1,id:v,inputComponent:b="input",inputProps:S={},inputRef:x,margin:C,maxRows:k,minRows:j,multiline:_=!1,name:R,onBlur:F,onChange:y,onClick:N,onFocus:A,onKeyDown:T,onKeyUp:B,placeholder:ae,readOnly:ue,renderSuffix:se,rows:le,size:ve,slotProps:H={},slots:U={},startAdornment:we,type:ne="text",value:Me,...Ne}=n,Fe=S.value==null?Me:S.value,{current:Te}=w.useRef(Fe!=null),Ae=w.useRef(),tt=w.useCallback(V=>{},[]),mt=ef(Ae,x,S.ref,tt),[Ie,He]=w.useState(!1),G=df(),Y=uf({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:Ie,w.useEffect(()=>{!G&&p&&Ie&&(He(!1),F&&F())},[G,p,Ie,F]);let je=G&&G.onFilled,X=G&&G.onEmpty,L=w.useCallback(V=>{mf(V)?je&&je():X&&X()},[je,X]);Qp(()=>{Te&&L({value:Fe})},[Fe,L,Te]);let Se=V=>{A&&A(V),S.onFocus&&S.onFocus(V),G&&G.onFocus?G.onFocus(V):He(!0)},Oe=V=>{F&&F(V),S.onBlur&&S.onBlur(V),G&&G.onBlur?G.onBlur(V):He(!1)},I=(V,...Ve)=>{if(!Te){let Tc=V.target||Ae.current;if(Tc==null)throw Error(gt(1));L({value:Tc.value})}S.onChange&&S.onChange(V,...Ve),y&&y(V,...Ve)};w.useEffect(()=>{L(Ae.current)},[]);let nt=V=>{Ae.current&&V.currentTarget===V.target&&Ae.current.focus(),N&&N(V)},Qt=b,Be=S;_&&Qt==="input"&&(Be=le?{type:void 0,minRows:le,maxRows:le,...Be}:{type:void 0,maxRows:k,minRows:j,...Be},Qt=sf);let Fr=V=>{L(V.animationName==="mui-auto-fill-cancel"?Ae.current:{value:"x"})};w.useEffect(()=>{G&&G.setAdornedStart(!!we)},[G,we]);let en={...n,color:Y.color||"primary",disabled:Y.disabled,endAdornment:g,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:_,size:Y.size,startAdornment:we,type:ne},me=yf(en),ge=U.root||c.Root||bf,he=H.root||u.root||{},Ct=U.input||c.Input||xf;return Be={...Be,...H.input??u.input},(0,s.jsxs)(w.Fragment,{children:[!d&&typeof rs=="function"&&(ff||(ff=(0,s.jsx)(rs,{}))),(0,s.jsxs)(ge,{...he,ref:t,onClick:nt,...Ne,...!es(ge)&&{ownerState:{...en,...he.ownerState}},className:In(me.root,he.className,l,ue&&"MuiInputBase-readOnly"),children:[we,(0,s.jsx)(ts.Provider,{value:null,children:(0,s.jsx)(Ct,{"aria-invalid":Y.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:m,disabled:Y.disabled,id:v,onAnimationStart:Fr,name:R,placeholder:ae,readOnly:ue,required:Y.required,rows:le,value:Fe,onKeyDown:T,onKeyUp:B,type:ne,...Be,...!es(Ct)&&{as:Qt,ownerState:{...en,...Be.ownerState}},ref:mt,className:In(me.input,Be.className,ue&&"MuiInputBase-readOnly"),onBlur:Oe,onChange:I,onFocus:Se})}),g,se?se({...Y,startAdornment:we}):null]})]})}),wf=tr("MuiBox",["root"]),oe=hm({themeId:Rt,defaultTheme:lr(),defaultClassName:wf.root,generateClassName:Ci.generate});function Sf(e){let{children:t,defer:n=!1,fallback:r=null}=e,[o,a]=w.useState(!1);return Ft(()=>{n||a(!0)},[n]),w.useEffect(()=>{n&&a(!0)},[n]),o?t:r}var Vo=Sf,Cf=Ar(Uy(),1),{useDebugValue:jf}=w.default,{useSyncExternalStoreWithSelector:kf}=Cf.default,_f=e=>e;function zo(e,t=_f,n){let r=kf(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return jf(r),r}var os=e=>{let t=typeof e=="function"?Xc(e):e,n=(r,o)=>zo(t,r,o);return Object.assign(n,t),n},Rf=e=>e?os(e):os,Mf=Tt(((e,t)=>{t.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var r=document.activeElement,o=[],a=0;a{var n=Mf(),r={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function a(i){var c=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,c)}function l(i,c){var u,m,p,d,g,f,h=!1;c||(c={}),u=c.debug||!1;try{if(p=n(),d=document.createRange(),g=document.getSelection(),f=document.createElement("span"),f.textContent=i,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(v){if(v.stopPropagation(),c.format)if(v.preventDefault(),v.clipboardData===void 0){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=r[c.format]||r.default;window.clipboardData.setData(b,i)}else v.clipboardData.clearData(),v.clipboardData.setData(c.format,i);c.onCopy&&(v.preventDefault(),c.onCopy(v.clipboardData))}),document.body.appendChild(f),d.selectNodeContents(f),g.addRange(d),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(v){u&&console.error("unable to copy using execCommand: ",v),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",i),c.onCopy&&c.onCopy(window.clipboardData),h=!0}catch(b){u&&console.error("unable to copy using clipboardData: ",b),u&&console.error("falling back to prompt"),m=a("message"in c?c.message:o),window.prompt(m,i)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(d):g.removeAllRanges()),f&&document.body.removeChild(f),p()}return h}t.exports=l}))(),1);function as(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tnull;ls.when=()=>!1;var Af=e=>Rf()((t,n)=>({rootName:e.rootName??"root",indentWidth:e.indentWidth??3,keyRenderer:e.keyRenderer??ls,enableAdd:e.enableAdd??!1,enableDelete:e.enableDelete??!1,enableClipboard:e.enableClipboard??!0,editable:e.editable??!1,onChange:e.onChange??(()=>{}),onCopy:e.onCopy??void 0,onSelect:e.onSelect??void 0,onAdd:e.onAdd??void 0,onDelete:e.onDelete??void 0,defaultInspectDepth:e.defaultInspectDepth??5,defaultInspectControl:e.defaultInspectControl??void 0,maxDisplayLength:e.maxDisplayLength??30,groupArraysAfterLength:e.groupArraysAfterLength??100,collapseStringsAfterLength:e.collapseStringsAfterLength===!1?Number.MAX_VALUE:e.collapseStringsAfterLength??50,objectSortKeys:e.objectSortKeys??!1,quotesOnKeys:e.quotesOnKeys??!0,displayDataTypes:e.displayDataTypes??!0,displaySize:e.displaySize??!0,displayComma:e.displayComma??!1,highlightUpdates:e.highlightUpdates??!1,inspectCache:{},hoverPath:null,colorspace:dr,value:e.value,prevValue:void 0,getInspectCache:(r,o)=>{let a=o===void 0?r.join("."):r.join(".")+`[${o}]nt`;return n().inspectCache[a]},setInspectCache:(r,o,a)=>{let l=a===void 0?r.join("."):r.join(".")+`[${a}]nt`;t(i=>({inspectCache:{...i.inspectCache,[l]:typeof o=="function"?o(i.inspectCache[l]):o}}))},setHover:(r,o)=>{t({hoverPath:r?{path:r,nestedIndex:o}:null})}})),vn=(0,w.createContext)(void 0);vn.Provider;var E=(e,t)=>zo((0,w.useContext)(vn),e,t),mr=()=>E(e=>e.colorspace.base07),If=Object.prototype.constructor.toString();function Pf(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===If}function De(e){let{is:t,serialize:n,deserialize:r,Component:o,Editor:a,PreComponent:l,PostComponent:i}=e;return{is:t,serialize:n,deserialize:r,Component:o,Editor:a,PreComponent:l,PostComponent:i}}var $f=(e,t,n)=>{if(e===null||n===null||typeof e!="object"||typeof n!="object")return!1;if(Object.is(e,n)&&t.length!==0)return"";let r=[],o=[...t],a=e;for(;a!==n||o.length!==0;){if(typeof a!="object"||!a)return!1;if(Object.is(a,n))return r.reduce((i,c,u)=>typeof c=="number"?i+`[${c}]`:i+`${u===0?"":"."}${c}`,"");let l=o.shift();r.push(l),a=a[l]}return!1};function wn(e){return e===null?0:Array.isArray(e)?e.length:e instanceof Map||e instanceof Set?e.size:e instanceof Date?1:typeof e=="object"?Object.keys(e).length:typeof e=="string"?e.length:1}function is(e,t){let n=[],r=0;for(;r{let[c]=i;return typeof c=="string"||typeof c=="number"})?Object.fromEntries(l):{}}if(a instanceof Set)return"toJSON"in a&&typeof a.toJSON=="function"?a.toJSON():n.includes(a)?"[Circular]":(n.push(a),Array.from(a.values()));if(typeof a=="object"&&a&&Object.keys(a).length){let l=n.length;if(l){for(let i=l-1;i>=0&&n[i][o]!==a;--i)n.pop();if(n.includes(a))return"[Circular]"}n.push(a)}return a}return JSON.stringify(e,r,t)}async function Lo(e){if("clipboard"in navigator)try{await navigator.clipboard.writeText(e)}catch{}(0,Nf.default)(e)}function Tf(){let{timeout:e=2e3}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=(0,w.useState)(!1),r=(0,w.useRef)(null),o=(0,w.useCallback)(l=>{let i=r.current;i&&window.clearTimeout(i),r.current=window.setTimeout(()=>n(!1),e),n(l)},[e]),a=E(l=>l.onCopy);return{copy:(0,w.useCallback)(async(l,i)=>{if(typeof a=="function")try{await a(l,i,Lo),o(!0)}catch(c){console.error(`error when copy ${l.length===0?"src":`src[${l.join(".")}`}]`,c)}else try{await Lo(Ef(typeof i=="function"?i.toString():i," ")),o(!0)}catch(c){console.error(`error when copy ${l.length===0?"src":`src[${l.join(".")}`}]`,c)}},[o,a]),reset:(0,w.useCallback)(()=>{n(!1),r.current&&clearTimeout(r.current)},[]),copied:t}}function Ho(e,t){let n=E(r=>r.value);return(0,w.useMemo)(()=>$f(n,e,t),[e,t,n])}function Of(e,t,n){let r=e.length,o=Ho(e,t),a=E(p=>p.getInspectCache),l=E(p=>p.setInspectCache),i=E(p=>p.defaultInspectDepth),c=E(p=>p.defaultInspectControl);(0,w.useEffect)(()=>{if(a(e,n)===void 0){if(n!==void 0){l(e,!1,n);return}l(e,o?!1:typeof c=="function"?c(e,t):r{let p=a(e,n);return p===void 0?n===void 0?o?!1:typeof c=="function"?c(e,t):r{m(d=>{let g=typeof p=="boolean"?p:p(d);return l(e,g,n),g})},[n,e,l])]}var Xe=e=>(0,s.jsx)(oe,{component:"div",...e,sx:{display:"inline-block",...e.sx}}),ss=e=>{let{dataType:t,enable:n=!0}=e;return n?(0,s.jsx)(Xe,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function st(e){let{is:t,serialize:n,deserialize:r,type:o,colorKey:a,displayTypeLabel:l=!0,Renderer:i}=e,c=(0,w.memo)(i),u=p=>{let d=E(h=>h.displayDataTypes),g=E(h=>h.colorspace[a]),f=E(h=>h.onSelect);return(0,s.jsxs)(Xe,{onClick:()=>f==null?void 0:f(p.path,p.value),sx:{color:g},children:[l&&d&&(0,s.jsx)(ss,{dataType:o}),(0,s.jsx)(Xe,{className:`${o}-value`,children:(0,s.jsx)(c,{path:p.path,inspect:p.inspect,setInspect:p.setInspect,value:p.value,prevValue:p.prevValue})})]})};if(u.displayName=`easy-${o}-type`,!n||!r)return{is:t,Component:u};let m=p=>{let{value:d,setValue:g,abortEditing:f,commitEditing:h}=p,v=E(S=>S.colorspace[a]),b=(0,w.useCallback)(S=>{S.key==="Enter"&&(S.preventDefault(),h(d)),S.key==="Escape"&&(S.preventDefault(),f())},[f,h,d]);return(0,s.jsx)(vf,{autoFocus:!0,value:d,onChange:(0,w.useCallback)(S=>{g(S.target.value)},[g]),onKeyDown:b,size:"small",multiline:!0,sx:{color:v,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return m.displayName=`easy-${o}-type-editor`,{is:t,serialize:n,deserialize:r,Component:u,Editor:m}}var Bo=st({is:e=>typeof e=="boolean",type:"bool",colorKey:"base0E",serialize:e=>e.toString(),deserialize:e=>{if(e==="true")return!0;if(e==="false")return!1;throw Error("Invalid boolean value")},Renderer:e=>{let{value:t}=e;return(0,s.jsx)(s.Fragment,{children:t?"true":"false"})}}),Vf={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},zf=st({is:e=>e instanceof Date,type:"date",colorKey:"base0D",Renderer:e=>{let{value:t}=e;return(0,s.jsx)(s.Fragment,{children:t.toLocaleTimeString("en-us",Vf)})}}),Df=e=>{let t=e.toString(),n=!0,r=t.indexOf(")"),o=t.indexOf("=>");return o!==-1&&o>r&&(n=!1),n?t.substring(t.indexOf("{",r)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},Lf=e=>{let t=e.toString();return t.indexOf("function")===-1?t.substring(0,t.indexOf("=>")+2).trim():t.substring(8,t.indexOf("{")).trim()},Hf="{",Bf="}",Gf={is:e=>typeof e=="function",Component:e=>{let t=E(n=>n.colorspace.base05);return(0,s.jsx)(Vo,{children:(0,s.jsx)(oe,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Df(e.value):(0,s.jsx)(oe,{component:"span",className:"data-function-body",onClick:()=>e.setInspect(!0),sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"\u2026"})})})},PreComponent:e=>(0,s.jsxs)(Vo,{children:[(0,s.jsx)(ss,{dataType:"function"}),(0,s.jsxs)(oe,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[Lf(e.value)," ",Hf]})]}),PostComponent:()=>(0,s.jsx)(Vo,{children:(0,s.jsx)(oe,{component:"span",className:"data-function-end",children:Bf})})},Go=st({is:e=>e===null,type:"null",colorKey:"base08",displayTypeLabel:!1,Renderer:()=>(0,s.jsx)(oe,{sx:{fontSize:"0.8rem",backgroundColor:E(e=>e.colorspace.base02),fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})}),cs=e=>e%1==0,Wf=st({is:e=>typeof e=="number"&&isNaN(e),type:"NaN",colorKey:"base08",displayTypeLabel:!1,serialize:()=>"NaN",deserialize:e=>parseFloat(e),Renderer:()=>(0,s.jsx)(oe,{sx:{backgroundColor:E(e=>e.colorspace.base02),fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NaN"})}),us=st({is:e=>typeof e=="number"&&!cs(e)&&!isNaN(e),type:"float",colorKey:"base0B",serialize:e=>e.toString(),deserialize:e=>parseFloat(e),Renderer:e=>{let{value:t}=e;return(0,s.jsx)(s.Fragment,{children:t})}}),ds=st({is:e=>typeof e=="number"&&cs(e),type:"int",colorKey:"base0F",serialize:e=>e.toString(),deserialize:e=>parseFloat(e),Renderer:e=>{let{value:t}=e;return(0,s.jsx)(s.Fragment,{children:t})}}),qf=st({is:e=>typeof e=="bigint",type:"bigint",colorKey:"base0F",serialize:e=>e.toString(),deserialize:e=>BigInt(e.replace(/\D/g,"")),Renderer:e=>{let{value:t}=e;return(0,s.jsx)(s.Fragment,{children:`${t}n`})}}),ct=e=>{let{d:t,...n}=e;return(0,s.jsx)(Zp,{...n,children:(0,s.jsx)("path",{d:t})})},Kf="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z",Uf="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",Jf="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",Xf="M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z",Yf="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",Zf="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",Qf="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",eg="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z",tg="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5l-1-1h-5l-1 1H5v2h14V4z",ng=e=>(0,s.jsx)(ct,{d:Kf,...e}),ms=e=>(0,s.jsx)(ct,{d:Uf,...e}),rg=e=>(0,s.jsx)(ct,{d:Jf,...e}),og=e=>(0,s.jsx)(ct,{d:Xf,...e}),ag=e=>(0,s.jsx)(ct,{d:Yf,...e}),lg=e=>(0,s.jsx)(ct,{d:Zf,...e}),ig=e=>(0,s.jsx)(ct,{d:Qf,...e}),sg=e=>(0,s.jsx)(ct,{d:eg,...e}),cg=e=>(0,s.jsx)(ct,{d:tg,...e}),ug="{",dg="[",mg="}",pg="]";function ps(e){let t=wn(e),n="";return(e instanceof Map||e instanceof Set)&&(n=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(n=e[Symbol.toStringTag]),`${t} ${t===1?"Item":"Items"}${n?` (${n})`:""}`}var fg=e=>{let t=E(u=>u.colorspace.base04),n=mr(),r=(0,w.useMemo)(()=>Array.isArray(e.value)||e.value instanceof Set,[e.value]),o=(0,w.useMemo)(()=>wn(e.value)===0,[e.value]),a=(0,w.useMemo)(()=>ps(e.value),[e.value]),l=E(u=>u.displaySize),i=(0,w.useMemo)(()=>typeof l=="function"?l(e.path,e.value):l,[l,e.path,e.value]),c=Ho(e.path,e.value);return(0,s.jsxs)(oe,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[r?dg:ug,i&&e.inspect&&!o&&(0,s.jsx)(oe,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:a}),c&&!e.inspect&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(og,{sx:{fontSize:12,color:n,mx:.5}}),(0,s.jsx)(Xe,{sx:{cursor:"pointer",userSelect:"none"},children:c})]})]})},gg=e=>{let t=E(c=>c.colorspace.base04),n=mr(),r=(0,w.useMemo)(()=>Array.isArray(e.value)||e.value instanceof Set,[e.value]),o=(0,w.useMemo)(()=>wn(e.value)===0,[e.value]),a=(0,w.useMemo)(()=>ps(e.value),[e.value]),l=E(c=>c.displaySize),i=(0,w.useMemo)(()=>typeof l=="function"?l(e.path,e.value):l,[l,e.path,e.value]);return(0,s.jsxs)(oe,{component:"span",className:"data-object-end",sx:{lineHeight:1.5,color:n,letterSpacing:.5,opacity:.8},children:[r?pg:mg,i&&(o||!e.inspect)?(0,s.jsx)(oe,{component:"span",sx:{pl:.5,fontStyle:"italic",color:t,userSelect:"none"},children:a}):null]})};function hg(e){return typeof(e==null?void 0:e[Symbol.iterator])=="function"}var It={is:e=>typeof e=="object",Component:e=>{let t=mr(),n=E(d=>d.colorspace.base02),r=E(d=>d.groupArraysAfterLength),o=Ho(e.path,e.value),[a,l]=(0,w.useState)(E(d=>d.maxDisplayLength)),i=E(d=>d.objectSortKeys),c=(0,w.useMemo)(()=>{if(!e.inspect)return null;let d=e.value;if(hg(d)&&!Array.isArray(d)){let v=[];if(d instanceof Map){let b=d.size-1,S=0;d.forEach((x,C)=>{let k=C.toString(),j=[...e.path,k];v.push((0,s.jsx)(Xt,{path:j,value:x,prevValue:e.prevValue instanceof Map?e.prevValue.get(C):void 0,editable:!1,last:S===b},k)),S++})}else{let b=d[Symbol.iterator](),S=b.next(),x=0;for(;;){let C=b.next();if(v.push((0,s.jsx)(Xt,{path:[...e.path,`iterator:${x}`],value:S.value,nestedIndex:x,editable:!1,last:C.done??!1},x)),C.done)break;x++,S=C}}return v}if(Array.isArray(d)){let v=d.length-1;if(d.length<=r){let C=d.slice(0,a).map((k,j)=>{let _=e.nestedIndex?e.nestedIndex*r+j:j;return(0,s.jsx)(Xt,{path:[...e.path,_],value:k,prevValue:Array.isArray(e.prevValue)?e.prevValue[_]:void 0,last:j===v},_)});if(d.length>a){let k=d.length-a;C.push((0,s.jsxs)(Xe,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:()=>l(j=>j*2),children:["hidden ",k," items\u2026"]},"last"))}return C}let b=is(d,r),S=Array.isArray(e.prevValue)?is(e.prevValue,r):void 0,x=b.length-1;return b.map((C,k)=>(0,s.jsx)(Xt,{path:e.path,value:C,nestedIndex:k,prevValue:S==null?void 0:S[k],last:k===x},k))}let g=Object.entries(d);i&&(g=i===!0?g.sort((v,b)=>{let[S]=v,[x]=b;return S.localeCompare(x)}):g.sort((v,b)=>{let[S]=v,[x]=b;return i(S,x)}));let f=g.length-1,h=g.slice(0,a).map((v,b)=>{var C;let[S,x]=v;return(0,s.jsx)(Xt,{path:[...e.path,S],value:x,prevValue:(C=e.prevValue)==null?void 0:C[S],last:b===f},S)});if(g.length>a){let v=g.length-a;h.push((0,s.jsxs)(Xe,{sx:{cursor:"pointer",lineHeight:1.5,color:t,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:()=>l(b=>b*2),children:["hidden ",v," items\u2026"]},"last"))}return h},[e.inspect,e.value,e.prevValue,e.path,e.nestedIndex,r,a,t,i]),u=e.inspect?.6:0,m=E(d=>d.indentWidth),p=e.inspect?m-u:m;return(0,w.useMemo)(()=>wn(e.value)===0,[e.value])?null:(0,s.jsx)(oe,{className:"data-object",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?p-.6:0,marginLeft:u,color:t,borderLeft:e.inspect?`1px solid ${n}`:"none"},children:e.inspect?c:!o&&(0,s.jsx)(oe,{component:"span",className:"data-object-body",onClick:()=>e.setInspect(!0),sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"\u2026"})})},PreComponent:fg,PostComponent:gg},pr=st({is:e=>typeof e=="string",type:"string",colorKey:"base09",serialize:e=>e,deserialize:e=>e,Renderer:e=>{let[t,n]=(0,w.useState)(!1),r=E(l=>l.collapseStringsAfterLength),o=t?e.value:e.value.slice(0,r),a=e.value.length>r;return(0,s.jsxs)(oe,{component:"span",sx:{overflowWrap:"anywhere",cursor:a?"pointer":"inherit"},onClick:()=>{var l;((l=window.getSelection())==null?void 0:l.type)!=="Range"&&a&&n(i=>!i)},children:['"',o,a&&!t&&(0,s.jsx)(oe,{component:"span",sx:{padding:.5},children:"\u2026"}),'"']})}}),yg=st({is:e=>e===void 0,type:"undefined",colorKey:"base05",displayTypeLabel:!1,Renderer:()=>(0,s.jsx)(oe,{sx:{fontSize:"0.7rem",backgroundColor:E(e=>e.colorspace.base02),borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})});function Ye(e){function t(n,r){var o,a;return Object.is(n.value,r.value)&&n.inspect&&r.inspect&&((o=n.path)==null?void 0:o.join("."))===((a=r.path)==null?void 0:a.join("."))}return e.Component=(0,w.memo)(e.Component,t),e.Editor&&(e.Editor=(0,w.memo)(e.Editor,function(n,r){return Object.is(n.value,r.value)})),e.PreComponent&&(e.PreComponent=(0,w.memo)(e.PreComponent,t)),e.PostComponent&&(e.PostComponent=(0,w.memo)(e.PostComponent,t)),e}var Sn=[Ye(Bo),Ye(zf),Ye(Go),Ye(yg),Ye(pr),Ye(Gf),Ye(Wf),Ye(ds),Ye(us),Ye(qf)],bg=()=>Xc()(e=>({registry:Sn,registerTypes:t=>{e(n=>({registry:typeof t=="function"?t(n.registry):t}))}})),Wo=(0,w.createContext)(void 0);Wo.Provider;var fs=(e,t)=>zo((0,w.useContext)(Wo),e,t);function xg(e,t,n){let r;for(let o of n)o.is(e,t)&&(r=o);if(r===void 0){if(typeof e=="object")return It;throw Error(`No type matched for value: ${e}`)}return r}function vg(e,t){let n=fs(r=>r.registry);return(0,w.useMemo)(()=>xg(e,t,n),[e,t,n])}var Jt=e=>(0,s.jsx)(oe,{component:"span",...e,sx:{cursor:"pointer",paddingLeft:"0.7rem",...e.sx}}),Xt=e=>{let{value:t,prevValue:n,path:r,nestedIndex:o,last:a}=e,{Component:l,PreComponent:i,PostComponent:c,Editor:u,serialize:m,deserialize:p}=vg(t,r),d=e.editable??void 0,g=E(I=>I.editable),f=(0,w.useMemo)(()=>g===!1||d===!1?!1:typeof g=="function"?!!g(r,t):g,[r,d,g,t]),[h,v]=(0,w.useState)(""),b=r.length,S=r[b-1],x=E(I=>I.hoverPath),C=(0,w.useMemo)(()=>x&&r.every((I,nt)=>I===x.path[nt]&&o===x.nestedIndex),[x,r,o]),k=E(I=>I.setHover),j=E(I=>I.value),[_,R]=Of(r,t,o),[F,y]=(0,w.useState)(!1),N=E(I=>I.onChange),A=mr(),T=E(I=>I.colorspace.base0C),B=E(I=>I.colorspace.base0A),ae=E(I=>I.displayComma),ue=E(I=>I.quotesOnKeys),se=E(I=>I.rootName),le=j===t,ve=Number.isInteger(Number(S)),H=E(I=>I.enableAdd),U=E(I=>I.onAdd),we=(0,w.useMemo)(()=>!U||o!==void 0||H===!1||d===!1?!1:typeof H=="function"?!!H(r,t):!!(Array.isArray(t)||Pf(t)),[U,o,r,H,d,t]),ne=E(I=>I.enableDelete),Me=E(I=>I.onDelete),Ne=(0,w.useMemo)(()=>!Me||o!==void 0||le||ne===!1||d===!1?!1:typeof ne=="function"?!!ne(r,t):ne,[Me,o,le,r,ne,d,t]),Fe=E(I=>I.enableClipboard),{copy:Te,copied:Ae}=Tf(),tt=E(I=>I.highlightUpdates),mt=(0,w.useMemo)(()=>!tt||n===void 0?!1:typeof t==typeof n?typeof t=="number"?isNaN(t)&&isNaN(n)?!1:t!==n:Array.isArray(t)===Array.isArray(n)?typeof t=="object"||typeof t=="function"?!1:t!==n:!0:!0,[tt,n,t]),Ie=(0,w.useRef)();(0,w.useEffect)(()=>{Ie.current&&mt&&"animate"in Ie.current&&Ie.current.animate([{backgroundColor:B},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[B,mt,n,t]);let He=(0,w.useCallback)(I=>{I.preventDefault(),m&&v(m(t)),y(!0)},[m,t]),G=(0,w.useCallback)(()=>{y(!1),v("")},[y,v]),Y=(0,w.useCallback)(I=>{if(y(!1),p)try{N(r,t,p(I))}catch{}},[y,p,N,r,t]),je=(0,w.useMemo)(()=>F?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Jt,{children:(0,s.jsx)(ag,{sx:{fontSize:".8rem"},onClick:G})}),(0,s.jsx)(Jt,{children:(0,s.jsx)(ms,{sx:{fontSize:".8rem"},onClick:()=>Y(h)})})]}):(0,s.jsxs)(s.Fragment,{children:[Fe&&(0,s.jsx)(Jt,{onClick:I=>{I.preventDefault();try{Te(r,t,Lo)}catch(nt){console.error(nt)}},children:Ae?(0,s.jsx)(ms,{sx:{fontSize:".8rem"}}):(0,s.jsx)(lg,{sx:{fontSize:".8rem"}})}),u&&f&&m&&p&&(0,s.jsx)(Jt,{onClick:He,children:(0,s.jsx)(ig,{sx:{fontSize:".8rem"}})}),we&&(0,s.jsx)(Jt,{onClick:I=>{I.preventDefault(),U==null||U(r)},children:(0,s.jsx)(ng,{sx:{fontSize:".8rem"}})}),Ne&&(0,s.jsx)(Jt,{onClick:I=>{I.preventDefault(),Me==null||Me(r,t)},children:(0,s.jsx)(cg,{sx:{fontSize:".9rem"}})})]}),[u,m,p,Ae,Te,f,F,Fe,we,Ne,h,r,t,U,Me,He,G,Y]),X=(0,w.useMemo)(()=>wn(t)===0,[t]),L=!X&&!!(i&&c),Se=E(I=>I.keyRenderer),Oe=(0,w.useMemo)(()=>({path:r,inspect:_,setInspect:R,value:t,prevValue:n,nestedIndex:o}),[_,r,R,t,n,o]);return(0,s.jsxs)(oe,{className:"data-key-pair","data-testid":"data-key-pair"+r.join("."),sx:{userSelect:"text"},onMouseEnter:(0,w.useCallback)(()=>k(r,o),[k,r,o]),children:[(0,s.jsxs)(Xe,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:A,letterSpacing:.5,opacity:.8},onClick:(0,w.useCallback)(I=>{I.isDefaultPrevented()||X||R(nt=>!nt)},[X,R]),children:[L?_?(0,s.jsx)(sg,{className:"data-key-toggle-expanded",sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):(0,s.jsx)(rg,{className:"data-key-toggle-collapsed",sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,(0,s.jsx)(oe,{ref:Ie,className:"data-key-key",component:"span",children:le&&b===0?se===!1?null:ue?(0,s.jsxs)(s.Fragment,{children:['"',se,'"']}):(0,s.jsx)(s.Fragment,{children:se}):Se.when(Oe)?(0,s.jsx)(Se,{...Oe}):o===void 0&&(ve?(0,s.jsx)(oe,{component:"span",style:{color:T,userSelect:ve?"none":"auto"},children:S}):ue?(0,s.jsxs)(s.Fragment,{children:['"',S,'"']}):(0,s.jsx)(s.Fragment,{children:S}))}),le?se!==!1&&(0,s.jsx)(Xe,{className:"data-key-colon",sx:{mr:.5},children:":"}):o===void 0&&(0,s.jsx)(Xe,{className:"data-key-colon",sx:{mr:.5,".data-key-key:empty + &":{display:"none"},userSelect:ve?"none":"auto"},children:":"}),i&&(0,s.jsx)(i,{...Oe}),C&&L&&_&&je]}),F&&f?u&&(0,s.jsx)(u,{path:r,value:h,setValue:v,abortEditing:G,commitEditing:Y}):l?(0,s.jsx)(l,{...Oe}):(0,s.jsx)(oe,{component:"span",className:"data-value-fallback",children:`fallback: ${t}`}),c&&(0,s.jsx)(c,{...Oe}),!a&&ae&&(0,s.jsx)(Xe,{children:","}),C&&L&&!_&&je,C&&!L&&je,!C&&F&&je]})},gs="(prefers-color-scheme: dark)";function wg(){let[e,t]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{let n=o=>t(o.matches);t(window.matchMedia(gs).matches);let r=window.matchMedia(gs);return r.addEventListener("change",n),()=>r.removeEventListener("change",n)},[]),e}function ce(e,t){let{setState:n}=(0,w.useContext)(vn);(0,w.useEffect)(()=>{t!==void 0&&n({[e]:t})},[e,t,n])}var Sg=e=>{let{setState:t}=(0,w.useContext)(vn);(0,w.useEffect)(()=>{t(m=>({prevValue:m.value,value:e.value}))},[e.value,t]),ce("rootName",e.rootName),ce("indentWidth",e.indentWidth),ce("keyRenderer",e.keyRenderer),ce("enableAdd",e.enableAdd),ce("enableDelete",e.enableDelete),ce("enableClipboard",e.enableClipboard),ce("editable",e.editable),ce("onChange",e.onChange),ce("onCopy",e.onCopy),ce("onSelect",e.onSelect),ce("onAdd",e.onAdd),ce("onDelete",e.onDelete),ce("maxDisplayLength",e.maxDisplayLength),ce("groupArraysAfterLength",e.groupArraysAfterLength),ce("quotesOnKeys",e.quotesOnKeys),ce("displayDataTypes",e.displayDataTypes),ce("displaySize",e.displaySize),ce("displayComma",e.displayComma),ce("highlightUpdates",e.highlightUpdates),(0,w.useEffect)(()=>{e.theme==="light"?t({colorspace:dr}):e.theme==="dark"?t({colorspace:Do}):typeof e.theme=="object"&&t({colorspace:e.theme})},[t,e.theme]);let n=(0,w.useMemo)(()=>typeof e.theme=="object"?"json-viewer-theme-custom":e.theme==="dark"?"json-viewer-theme-dark":"json-viewer-theme-light",[e.theme]),r=(0,w.useRef)(!0),o=fs(m=>m.registerTypes);r.current&&(r.current=(o(e.valueTypes?[...Sn,...e.valueTypes]:[...Sn]),!1)),(0,w.useEffect)(()=>{o(e.valueTypes?[...Sn,...e.valueTypes]:[...Sn])},[e.valueTypes,o]);let a=E(m=>m.value),l=E(m=>m.prevValue),i=(0,w.useMemo)(()=>[],[]),c=E(m=>m.setHover),u=(0,w.useCallback)(()=>c(null),[c]);return(0,s.jsx)(of,{elevation:0,className:Ff(n,e.className),style:e.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto",...e.sx},onMouseLeave:u,children:(0,s.jsx)(Xt,{value:a,prevValue:l,path:i,last:!0})})},Cg=function(e){let t=wg(),n=(0,w.useMemo)(()=>e.theme==="auto"?t?"dark":"light":e.theme??"light",[t,e.theme]),r=(0,w.useMemo)(()=>{let i=typeof n=="object"?n.base00:n==="dark"?Do.base00:dr.base00;return lr({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:i,color:typeof n=="object"?n.base07:n==="dark"?Do.base07:dr.base07}}}},palette:{mode:n==="dark"?"dark":"light",background:{default:i}}})},[n]),o={...e,theme:n},a=(0,w.useMemo)(()=>Af(e),[]),l=(0,w.useMemo)(()=>bg(),[]);return(0,s.jsx)(Wp,{theme:r,children:(0,s.jsx)(Wo.Provider,{value:l,children:(0,s.jsx)(vn.Provider,{value:a,children:(0,s.jsx)(Sg,{...o})})})})},jg=K();Ot=(0,w.memo)(e=>{let t=(0,jg.c)(10),{html:n,inline:r,className:o,alwaysSanitizeHtml:a}=e,l=r===void 0?!1:r;if(!n)return null;let i=!l,c;t[0]!==o||t[1]!==l||t[2]!==i?(c=O(o,{"inline-flex":l,block:i}),t[0]=o,t[1]=l,t[2]=i,t[3]=c):c=t[3];let u;t[4]!==a||t[5]!==n?(u=Wa({html:n,alwaysSanitizeHtml:a}),t[4]=a,t[5]=n,t[6]=u):u=t[6];let m;return t[7]!==c||t[8]!==u?(m=(0,s.jsx)("div",{className:c,children:u}),t[7]=c,t[8]=u,t[9]=m):m=t[9],m}),Ot.displayName="HtmlOutput";var kg=K();const hs=e=>{let t=(0,kg.c)(8),{src:n,alt:r,width:o,height:a,className:l}=e,i=r===void 0?"":r,c;t[0]!==i||t[1]!==a||t[2]!==n||t[3]!==o?(c=(0,s.jsx)("img",{src:n,alt:i,width:o,height:a}),t[0]=i,t[1]=a,t[2]=n,t[3]=o,t[4]=c):c=t[4];let u;return t[5]!==l||t[6]!==c?(u=(0,s.jsx)("span",{className:l,children:c}),t[5]=l,t[6]=c,t[7]=u):u=t[7],u};var _g=K();const Rg=e=>{let t=(0,_g.c)(13),{text:n,channel:r,wrapText:o}=e,a=r==="stdout"||r==="stderr",l;t[0]===o?l=t[1]:(l=g=>(0,s.jsx)("span",{className:o?"whitespace-pre-wrap break-words":"whitespace-pre",children:(0,s.jsx)(Rb,{text:g})}),t[0]=o,t[1]=l);let i=l,c=!a&&(o?"whitespace-pre-wrap break-words":"whitespace-pre"),u=r==="output"&&"font-prose",m;t[2]!==r||t[3]!==c||t[4]!==u?(m=O(c,u,r),t[2]=r,t[3]=c,t[4]=u,t[5]=m):m=t[5];let p;t[6]!==i||t[7]!==a||t[8]!==n?(p=a?i(n):n,t[6]=i,t[7]=a,t[8]=n,t[9]=p):p=t[9];let d;return t[10]!==m||t[11]!==p?(d=(0,s.jsx)("span",{className:m,children:p}),t[10]=m,t[11]=p,t[12]=d):d=t[12],d};var Mg=K();let qo;qo=e=>{let t=(0,Mg.c)(3),{src:n,className:r}=e,o;return t[0]!==r||t[1]!==n?(o=(0,s.jsx)("iframe",{className:r,src:n}),t[0]=r,t[1]=n,t[2]=o):o=t[2],o},Br=w.lazy(()=>Ib(()=>import("./react-vega-DdONPC3a.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url).then(e=>({default:e.VegaEmbed})));var Ko=K();rl=()=>{let e=(0,Ko.c)(1),t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,s.jsx)(kb,{className:"w-10 h-10 animate-spin",strokeWidth:1}),(0,s.jsx)("span",{children:"Loading chart..."})]}),e[0]=t):t=e[0],t},cu=e=>{let t=(0,Ko.c)(2),{error:n}=e,r;return t[0]===n?r=t[1]:(r=(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(ou,{error:n})}),t[0]=n,t[1]=r),r},pu=e=>{let t=(0,Ko.c)(8),{children:n,className:r}=e,o;t[0]===r?o=t[1]:(o=O("flex flex-col items-center justify-center gap-4",r),t[0]=r,t[1]=o);let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(Hy,{className:"w-10 h-10 text-muted-foreground"}),t[2]=a):a=t[2];let l;t[3]===n?l=t[4]:(l=(0,s.jsx)("span",{className:"text-md font-semibold text-muted-foreground",children:n}),t[3]=n,t[4]=l);let i;return t[5]!==o||t[6]!==l?(i=(0,s.jsxs)("div",{className:o,children:[a,l]}),t[5]=o,t[6]=l,t[7]=i):i=t[7],i};var Ng=K();const ys=e=>{let t=(0,Ng.c)(3),{children:n}=e,{locale:r}=ft(),o;return t[0]!==n||t[1]!==r?(o=n(r),t[0]=n,t[1]=r,t[2]=o):o=t[2],o};var Fg=K();const Ag=e=>{let t=(0,Fg.c)(25),n,r,o;t[0]===e?(n=t[1],r=t[2],o=t[3]):({children:n,className:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o);let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a={x:0,y:0},t[4]=a):a=t[4];let[l,i]=(0,w.useState)(a),c;t[5]===Symbol.for("react.memo_cache_sentinel")?(c={x:0,y:0},t[5]=c):c=t[5];let u=(0,w.useRef)(c),[m,p]=(0,w.useState)(!1),d;if(t[6]!==l.x||t[7]!==l.y){d=j=>{u.current={x:j.clientX-l.x,y:j.clientY-l.y},p(!0),document.addEventListener("mousemove",C),document.addEventListener("mouseup",k)};let C=j=>{i({x:j.clientX-u.current.x,y:j.clientY-u.current.y})},k=()=>{p(!1),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k)};t[6]=l.x,t[7]=l.y,t[8]=d}else d=t[8];let g;t[9]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)(La,{}),t[9]=g):g=t[9];let f;t[10]!==l.x||t[11]!==l.y?(f={position:"fixed",left:l.x,top:l.y},t[10]=l.x,t[11]=l.y,t[12]=f):f=t[12];let h=`flex items-center justify-center absolute top-0 left-1/2 -translate-x-1/2 ${m?"cursor-grabbing":"cursor-grab"}`,v;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(Qa,{className:"h-5 w-5 mt-1 text-muted-foreground/40"}),t[13]=v):v=t[13];let b;t[14]!==d||t[15]!==h?(b=(0,s.jsx)("div",{onMouseDown:d,className:h,children:v}),t[14]=d,t[15]=h,t[16]=b):b=t[16];let S;t[17]!==n||t[18]!==r||t[19]!==f||t[20]!==b?(S=(0,s.jsxs)(Ha,{className:r,style:f,children:[b,n]}),t[17]=n,t[18]=r,t[19]=f,t[20]=b,t[21]=S):S=t[21];let x;return t[22]!==o||t[23]!==S?(x=(0,s.jsxs)(Ba,{...o,children:[g,S]}),t[22]=o,t[23]=S,t[24]=x):x=t[24],x},Ze={number(e){return{type:"number",...e}},text(e){return{type:"text",...e}},date(e){return{type:"date",...e}},datetime(e){return{type:"datetime",...e}},time(e){return{type:"time",...e}},boolean(e){return{type:"boolean",...e}},select(e){return{type:"select",...e}}};fu=function(e,t){if(!t)return[];let n=e;if(t.operator==="is_null"||t.operator==="is_not_null")return{column_id:n,operator:t.operator,value:void 0};switch(t.type){case"number":{let r=[];return t.min!==void 0&&r.push({column_id:n,operator:">=",value:t.min}),t.max!==void 0&&r.push({column_id:n,operator:"<=",value:t.max}),r}case"text":return{column_id:n,operator:t.operator,value:t.text};case"datetime":{let r=[];return t.min!==void 0&&r.push({column_id:n,operator:">=",value:t.min.toISOString()}),t.max!==void 0&&r.push({column_id:n,operator:"<=",value:t.max.toISOString()}),r}case"date":{let r=[];return t.min!==void 0&&r.push({column_id:n,operator:">=",value:t.min.toISOString()}),t.max!==void 0&&r.push({column_id:n,operator:"<=",value:t.max.toISOString()}),r}case"time":{let r=[];return t.min!==void 0&&r.push({column_id:n,operator:">=",value:t.min.toISOString()}),t.max!==void 0&&r.push({column_id:n,operator:"<=",value:t.max.toISOString()}),r}case"boolean":return t.value?{column_id:n,operator:"is_true",value:void 0}:t.value?[]:{column_id:n,operator:"is_false",value:void 0};case"select":{let r=t.operator;return t.operator!=="in"&&t.operator!=="not_in"&&(ot.warn("Invalid operator for select filter",{operator:t.operator}),r="in"),{column_id:n,operator:r,value:t.options}}default:_y(t)}};function bt(e,t){return typeof e=="function"?e(t):e}function fe(e,t){return n=>{t.setState(r=>({...r,[e]:bt(n,r[e])}))}}function fr(e){return e instanceof Function}function Ig(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Pg(e,t){let n=[],r=o=>{o.forEach(a=>{n.push(a);let l=t(a);l!=null&&l.length&&r(l)})};return r(e),n}function P(e,t,n){let r=[],o;return a=>{let l;n.key&&n.debug&&(l=Date.now());let i=e(a);if(!(i.length!==r.length||i.some((u,m)=>r[m]!==u)))return o;r=i;let c;if(n.key&&n.debug&&(c=Date.now()),o=t(...i),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){let u=Math.round((Date.now()-l)*100)/100,m=Math.round((Date.now()-c)*100)/100,p=m/16,d=(g,f)=>{for(g=String(g);g.length(e==null?void 0:e.debugAll)??e[t],key:!1,onChange:r}}function $g(e,t,n,r){let o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>o.getValue()??e.options.renderFallbackValue,getContext:P(()=>[e,n,t,o],(a,l,i,c)=>({table:a,column:l,row:i,cell:c,getValue:c.getValue,renderValue:c.renderValue}),$(e.options,"debugCells","cell.getContext"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function Eg(e,t,n,r){let o={...e._getDefaultColumnDef(),...t},a=o.accessorKey,l=o.id??(a?typeof String.prototype.replaceAll=="function"?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)??(typeof o.header=="string"?o.header:void 0),i;if(o.accessorFn?i=o.accessorFn:a&&(i=a.includes(".")?u=>{let m=u;for(let p of a.split("."))m=m==null?void 0:m[p];return m}:u=>u[o.accessorKey]),!l)throw Error();let c={id:`${String(l)}`,accessorFn:i,parent:r,depth:n,columnDef:o,columns:[],getFlatColumns:P(()=>[!0],()=>{var u;return[c,...(u=c.columns)==null?void 0:u.flatMap(m=>m.getFlatColumns())]},$(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:P(()=>[e._getOrderColumnsFn()],u=>{var m;return(m=c.columns)!=null&&m.length?u(c.columns.flatMap(p=>p.getLeafColumns())):[c]},$(e.options,"debugColumns","column.getLeafColumns"))};for(let u of e._features)u.createColumn==null||u.createColumn(c,e);return c}var be="debugHeaders";function bs(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let o=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),o.push(l)};return a(r),o},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(r,e)}),r}var Tg={createTable:e=>{e.getHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{let a=(r==null?void 0:r.map(c=>n.find(u=>u.id===c)).filter(Boolean))??[],l=(o==null?void 0:o.map(c=>n.find(u=>u.id===c)).filter(Boolean))??[],i=n.filter(c=>!(r!=null&&r.includes(c.id))&&!(o!=null&&o.includes(c.id)));return gr(t,[...a,...i,...l],e)},$(e.options,be,"getHeaderGroups")),e.getCenterHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(o!=null&&o.includes(a.id))),gr(t,n,e,"center")),$(e.options,be,"getCenterHeaderGroups")),e.getLeftHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>gr(t,(r==null?void 0:r.map(o=>n.find(a=>a.id===o)).filter(Boolean))??[],e,"left"),$(e.options,be,"getLeftHeaderGroups")),e.getRightHeaderGroups=P(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>gr(t,(r==null?void 0:r.map(o=>n.find(a=>a.id===o)).filter(Boolean))??[],e,"right"),$(e.options,be,"getRightHeaderGroups")),e.getFooterGroups=P(()=>[e.getHeaderGroups()],t=>[...t].reverse(),$(e.options,be,"getFooterGroups")),e.getLeftFooterGroups=P(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),$(e.options,be,"getLeftFooterGroups")),e.getCenterFooterGroups=P(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),$(e.options,be,"getCenterFooterGroups")),e.getRightFooterGroups=P(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),$(e.options,be,"getRightFooterGroups")),e.getFlatHeaders=P(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,be,"getFlatHeaders")),e.getLeftFlatHeaders=P(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,be,"getLeftFlatHeaders")),e.getCenterFlatHeaders=P(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,be,"getCenterFlatHeaders")),e.getRightFlatHeaders=P(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),$(e.options,be,"getRightFlatHeaders")),e.getCenterLeafHeaders=P(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),$(e.options,be,"getCenterLeafHeaders")),e.getLeftLeafHeaders=P(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),$(e.options,be,"getLeftLeafHeaders")),e.getRightLeafHeaders=P(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),$(e.options,be,"getRightLeafHeaders")),e.getLeafHeaders=P(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,a,l;return[...((o=t[0])==null?void 0:o.headers)??[],...((a=n[0])==null?void 0:a.headers)??[],...((l=r[0])==null?void 0:l.headers)??[]].map(i=>i.getLeafHeaders()).flat()},$(e.options,be,"getLeafHeaders"))}};function gr(e,t,n,r){var u;let o=0,a=function(m,p){p===void 0&&(p=1),o=Math.max(o,p),m.filter(d=>d.getIsVisible()).forEach(d=>{var g;(g=d.columns)!=null&&g.length&&a(d.columns,p+1)},0)};a(e);let l=[],i=(m,p)=>{let d={depth:p,id:[r,`${p}`].filter(Boolean).join("_"),headers:[]},g=[];m.forEach(f=>{let h=[...g].reverse()[0],v=f.column.depth===d.depth,b,S=!1;if(v&&f.column.parent?b=f.column.parent:(b=f.column,S=!0),h&&(h==null?void 0:h.column)===b)h.subHeaders.push(f);else{let x=bs(n,b,{id:[r,p,b.id,f==null?void 0:f.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${g.filter(C=>C.column===b).length}`:void 0,depth:p,index:g.length});x.subHeaders.push(f),g.push(x)}d.headers.push(f),f.headerGroup=d}),l.push(d),p>0&&i(g,p-1)};i(t.map((m,p)=>bs(n,m,{depth:o,index:p})),o-1),l.reverse();let c=m=>m.filter(p=>p.column.getIsVisible()).map(p=>{let d=0,g=0,f=[0];p.subHeaders&&p.subHeaders.length?(f=[],c(p.subHeaders).forEach(v=>{let{colSpan:b,rowSpan:S}=v;d+=b,f.push(S)})):d=1;let h=Math.min(...f);return g+=h,p.colSpan=d,p.rowSpan=g,{colSpan:d,rowSpan:g}});return c(((u=l[0])==null?void 0:u.headers)??[]),l}var Uo=(e,t,n,r,o,a,l)=>{let i={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(i._valuesCache.hasOwnProperty(c))return i._valuesCache[c];let u=e.getColumn(c);if(u!=null&&u.accessorFn)return i._valuesCache[c]=u.accessorFn(i.original,r),i._valuesCache[c]},getUniqueValues:c=>{if(i._uniqueValuesCache.hasOwnProperty(c))return i._uniqueValuesCache[c];let u=e.getColumn(c);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(i._uniqueValuesCache[c]=u.columnDef.getUniqueValues(i.original,r),i._uniqueValuesCache[c]):(i._uniqueValuesCache[c]=[i.getValue(c)],i._uniqueValuesCache[c])},renderValue:c=>i.getValue(c)??e.options.renderFallbackValue,subRows:a??[],getLeafRows:()=>Pg(i.subRows,c=>c.subRows),getParentRow:()=>i.parentId?e.getRow(i.parentId,!0):void 0,getParentRows:()=>{let c=[],u=i;for(;;){let m=u.getParentRow();if(!m)break;c.push(m),u=m}return c.reverse()},getAllCells:P(()=>[e.getAllLeafColumns()],c=>c.map(u=>$g(e,i,u,u.id)),$(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:P(()=>[i.getAllCells()],c=>c.reduce((u,m)=>(u[m.column.id]=m,u),{}),$(e.options,"debugRows","getAllCellsByColumnId"))};for(let c=0;c{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},xs=(e,t,n)=>{var r,o;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(a))};xs.autoRemove=e=>Le(e);var vs=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};vs.autoRemove=e=>Le(e);var ws=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};ws.autoRemove=e=>Le(e);var Ss=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Ss.autoRemove=e=>Le(e);var Cs=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Cs.autoRemove=e=>Le(e)||!(e!=null&&e.length);var js=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});js.autoRemove=e=>Le(e)||!(e!=null&&e.length);var ks=(e,t,n)=>e.getValue(t)===n;ks.autoRemove=e=>Le(e);var _s=(e,t,n)=>e.getValue(t)==n;_s.autoRemove=e=>Le(e);var Jo=(e,t,n)=>{let[r,o]=n,a=e.getValue(t);return a>=r&&a<=o};Jo.resolveFilterValue=e=>{let[t,n]=e,r=typeof t=="number"?t:parseFloat(t),o=typeof n=="number"?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,l=n===null||Number.isNaN(o)?1/0:o;if(a>l){let i=a;a=l,l=i}return[a,l]},Jo.autoRemove=e=>Le(e)||Le(e[0])&&Le(e[1]);var xt={includesString:xs,includesStringSensitive:vs,equalsString:ws,arrIncludes:Ss,arrIncludesAll:Cs,arrIncludesSome:js,equals:ks,weakEquals:_s,inNumberRange:Jo};function Le(e){return e==null||e===""}var Vg={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:fe("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{var r;let n=(r=t.getCoreRowModel().flatRows[0])==null?void 0:r.getValue(e.id);return typeof n=="string"?xt.includesString:typeof n=="number"?xt.inNumberRange:typeof n=="boolean"||typeof n=="object"&&n?xt.equals:Array.isArray(n)?xt.arrIncludes:xt.weakEquals},e.getFilterFn=()=>{var n;return fr(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():((n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])??xt[e.columnDef.filterFn]},e.getCanFilter=()=>(e.columnDef.enableColumnFilter??!0)&&(t.options.enableColumnFilters??!0)&&(t.options.enableFilters??!0)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n;return((n=t.getState().columnFilters)==null?void 0:n.findIndex(r=>r.id===e.id))??-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{let o=e.getFilterFn(),a=r==null?void 0:r.find(c=>c.id===e.id),l=bt(n,a?a.value:void 0);if(Rs(o,l,e))return(r==null?void 0:r.filter(c=>c.id!==e.id))??[];let i={id:e.id,value:l};return a?(r==null?void 0:r.map(c=>c.id===e.id?i:c))??[]:r!=null&&r.length?[...r,i]:[i]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r=>{var o;return(o=bt(t,r))==null?void 0:o.filter(a=>{let l=n.find(i=>i.id===a.id);return!(l&&Rs(l.getFilterFn(),a.value,l))})})},e.resetColumnFilters=t=>{var n;e.setColumnFilters(t?[]:((n=e.initialState)==null?void 0:n.columnFilters)??[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Rs(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||t===void 0||typeof t=="string"&&!t}var Xo={sum:(e,t,n)=>n.reduce((r,o)=>{let a=o.getValue(e);return r+(typeof a=="number"?a:0)},0),min:(e,t,n)=>{let r;return n.forEach(o=>{let a=o.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},max:(e,t,n)=>{let r;return n.forEach(o=>{let a=o.getValue(e);a!=null&&(r=a)&&(r=a)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(a=>{let l=a.getValue(e);l!=null&&(r===void 0?l>=l&&(r=o=l):(r>l&&(r=l),o{let n=0,r=0;if(t.forEach(o=>{let a=o.getValue(e);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(a=>a.getValue(e));if(!Ig(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),o=n.sort((a,l)=>a-l);return n.length%2==0?(o[r-1]+o[r])/2:o[r]},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},zg={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:fe("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>(e.columnDef.enableGrouping??!0)&&(t.options.enableGrouping??!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{var r;let n=(r=t.getCoreRowModel().flatRows[0])==null?void 0:r.getValue(e.id);if(typeof n=="number")return Xo.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Xo.extent},e.getAggregationFn=()=>{var n;if(!e)throw Error();return fr(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():((n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])??Xo[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n;e.setGrouping(t?[]:((n=e.initialState)==null?void 0:n.grouping)??[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function Dg(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...r]}var Lg={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:fe("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=P(n=>[Cn(t,n)],n=>n.findIndex(r=>r.id===e.id),$(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Cn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var o;let r=Cn(t,n);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[])},e._getOrderColumnsFn=P(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let a=[];if(!(t!=null&&t.length))a=o;else{let l=[...t],i=[...o];for(;i.length&&l.length;){let c=l.shift(),u=i.findIndex(m=>m.id===c);u>-1&&a.push(i.splice(u,1)[0])}a=[...a,...i]}return Dg(a,n,r)},$(e.options,"debugTable","_getOrderColumnsFn"))}},Yo=()=>({left:[],right:[]}),Ms={getInitialState:e=>({columnPinning:Yo(),...e}),getDefaultOptions:e=>({onColumnPinningChange:fe("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>n==="right"?{left:((o==null?void 0:o.left)??[]).filter(a=>!(r!=null&&r.includes(a))),right:[...((o==null?void 0:o.right)??[]).filter(a=>!(r!=null&&r.includes(a))),...r]}:n==="left"?{left:[...((o==null?void 0:o.left)??[]).filter(a=>!(r!=null&&r.includes(a))),...r],right:((o==null?void 0:o.right)??[]).filter(a=>!(r!=null&&r.includes(a)))}:{left:((o==null?void 0:o.left)??[]).filter(a=>!(r!=null&&r.includes(a))),right:((o==null?void 0:o.right)??[]).filter(a=>!(r!=null&&r.includes(a)))})},e.getCanPin=()=>e.getLeafColumns().some(n=>(n.columnDef.enablePinning??!0)&&(t.options.enableColumnPinning??t.options.enablePinning??!0)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(i=>i.id),{left:r,right:o}=t.getState().columnPinning,a=n.some(i=>r==null?void 0:r.includes(i)),l=n.some(i=>o==null?void 0:o.includes(i));return a?"left":l?"right":!1},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=P(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{let a=[...r??[],...o??[]];return n.filter(l=>!a.includes(l.column.id))},$(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=P(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),$(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=P(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),$(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n;return e.setColumnPinning(t?Yo():((n=e.initialState)==null?void 0:n.columnPinning)??Yo())},e.getIsSomeColumnsPinned=t=>{var r,o,a;let n=e.getState().columnPinning;return t?!!((r=n[t])!=null&&r.length):!!((o=n.left)!=null&&o.length||(a=n.right)!=null&&a.length)},e.getLeftLeafColumns=P(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),$(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=P(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),$(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=P(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{let o=[...n??[],...r??[]];return t.filter(a=>!o.includes(a.id))},$(e.options,"debugColumns","getCenterLeafColumns"))}};function Hg(e){return e||(typeof document<"u"?document:null)}var hr={size:150,minSize:20,maxSize:2**53-1},Zo=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Bg={getDefaultColumnDef:()=>hr,getInitialState:e=>({columnSizing:{},columnSizingInfo:Zo(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:fe("columnSizing",e),onColumnSizingInfoChange:fe("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??hr.minSize,n??e.columnDef.size??hr.size),e.columnDef.maxSize??hr.maxSize)},e.getStart=P(n=>[n,Cn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,a)=>o+a.getSize(),0),$(t.options,"debugColumns","getStart")),e.getAfter=P(n=>[n,Cn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,a)=>o+a.getSize(),0),$(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>(e.columnDef.enableResizing??!0)&&(t.options.enableColumnResizing??!0),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0,r=o=>{o.subHeaders.length?o.subHeaders.forEach(r):n+=o.column.getSize()??0};return r(e),n},e.getStart=()=>{if(e.index>0){let n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return a=>{if(!r||!o||(a.persist==null||a.persist(),Qo(a)&&a.touches&&a.touches.length>1))return;let l=e.getSize(),i=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],c=Qo(a)?Math.round(a.touches[0].clientX):a.clientX,u={},m=(b,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(x=>{let C=t.options.columnResizeDirection==="rtl"?-1:1,k=(S-((x==null?void 0:x.startOffset)??0))*C,j=Math.max(k/((x==null?void 0:x.startSize)??0),-.999999);return x.columnSizingStart.forEach(_=>{let[R,F]=_;u[R]=Math.round(Math.max(F+F*j,0)*100)/100}),{...x,deltaOffset:k,deltaPercentage:j}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(x=>({...x,...u})))},p=b=>m("move",b),d=b=>{m("end",b),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=Hg(n),f={moveHandler:b=>p(b.clientX),upHandler:b=>{g==null||g.removeEventListener("mousemove",f.moveHandler),g==null||g.removeEventListener("mouseup",f.upHandler),d(b.clientX)}},h={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),p(b.touches[0].clientX),!1),upHandler:b=>{var S;g==null||g.removeEventListener("touchmove",h.moveHandler),g==null||g.removeEventListener("touchend",h.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),d((S=b.touches[0])==null?void 0:S.clientX)}},v=Gg()?{passive:!1}:!1;Qo(a)?(g==null||g.addEventListener("touchmove",h.moveHandler,v),g==null||g.addEventListener("touchend",h.upHandler,v)):(g==null||g.addEventListener("mousemove",f.moveHandler,v),g==null||g.addEventListener("mouseup",f.upHandler,v)),t.setColumnSizingInfo(b=>({...b,startOffset:c,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{})},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?Zo():e.initialState.columnSizingInfo??Zo())},e.getTotalSize=()=>{var t;return((t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))??0},e.getLeftTotalSize=()=>{var t;return((t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))??0},e.getCenterTotalSize=()=>{var t;return((t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))??0},e.getRightTotalSize=()=>{var t;return((t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))??0}}},yr=null;function Gg(){if(typeof yr=="boolean")return yr;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return yr=e,yr}function Qo(e){return e.type==="touchstart"}var Wg={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:fe("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var r;let n=e.columns;return(n.length?n.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])??!0},e.getCanHide=()=>(e.columnDef.enableHiding??!0)&&(t.options.enableHiding??!0),e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=P(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),$(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=P(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],$(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(n,r)=>P(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),$(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{e.setColumnVisibility(n?{}:e.initialState.columnVisibility??{})},e.toggleAllColumnsVisible=n=>{n??(n=!e.getIsAllColumnsVisible()),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,o)=>({...r,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Cn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var qg={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Kg={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:fe("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??!0)&&(t.options.enableGlobalFilter??!0)&&(t.options.enableFilters??!0)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??!0)&&!!e.accessorFn},createTable:e=>{e.getGlobalAutoFilterFn=()=>xt.includesString,e.getGlobalFilterFn=()=>{var n;let{globalFilterFn:t}=e.options;return fr(t)?t:t==="auto"?e.getGlobalAutoFilterFn():((n=e.options.filterFns)==null?void 0:n[t])??xt[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ug={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:fe("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o;e.setExpanded(r?{}:((o=e.initialState)==null?void 0:o.expanded)??{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{let r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{let a=o.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let o=r===!0?!0:!!(r!=null&&r[e.id]),a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{a[l]=!0}):a=r,n??(n=!o),!o&&n)return{...a,[e.id]:!0};if(o&&!n){let{[e.id]:l,...i}=a;return i}return r})},e.getIsExpanded=()=>{let n=t.getState().expanded;return!!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===!0||(n==null?void 0:n[e.id])))},e.getCanExpand=()=>{var n;return(t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??!0)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},ea=0,ta=10,na=()=>({pageIndex:ea,pageSize:ta}),Jg={getInitialState:e=>({...e,pagination:{...na(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:fe("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o=>bt(r,o)),e.resetPagination=r=>{e.setPagination(r?na():e.initialState.pagination??na())},e.setPageIndex=r=>{e.setPagination(o=>{let a=bt(r,o.pageIndex),l=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return a=Math.max(0,Math.min(a,l)),{...o,pageIndex:a}})},e.resetPageIndex=r=>{var o;e.setPageIndex(r?ea:((o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)??ea)},e.resetPageSize=r=>{var o;e.setPageSize(r?ta:((o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)??ta)},e.setPageSize=r=>{e.setPagination(o=>{let a=Math.max(1,bt(r,o.pageSize)),l=o.pageSize*o.pageIndex,i=Math.floor(l/a);return{...o,pageIndex:i,pageSize:a}})},e.setPageCount=r=>e.setPagination(o=>{let a=bt(r,e.options.pageCount??-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=P(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...Array(r)].fill(null).map((a,l)=>l)),o},$(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length}},ra=()=>({top:[],bottom:[]}),Xg={getInitialState:e=>({rowPinning:ra(),...e}),getDefaultOptions:e=>({onRowPinningChange:fe("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{let a=r?e.getLeafRows().map(c=>{let{id:u}=c;return u}):[],l=o?e.getParentRows().map(c=>{let{id:u}=c;return u}):[],i=new Set([...l,e.id,...a]);t.setRowPinning(c=>n==="bottom"?{top:((c==null?void 0:c.top)??[]).filter(u=>!(i!=null&&i.has(u))),bottom:[...((c==null?void 0:c.bottom)??[]).filter(u=>!(i!=null&&i.has(u))),...Array.from(i)]}:n==="top"?{top:[...((c==null?void 0:c.top)??[]).filter(u=>!(i!=null&&i.has(u))),...Array.from(i)],bottom:((c==null?void 0:c.bottom)??[]).filter(u=>!(i!=null&&i.has(u)))}:{top:((c==null?void 0:c.top)??[]).filter(u=>!(i!=null&&i.has(u))),bottom:((c==null?void 0:c.bottom)??[]).filter(u=>!(i!=null&&i.has(u)))})},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n=="function"?n(e):n??r??!0},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,a=n.some(i=>r==null?void 0:r.includes(i)),l=n.some(i=>o==null?void 0:o.includes(i));return a?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var r,o;let n=e.getIsPinned();return n?((o=(r=n==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(a=>{let{id:l}=a;return l}))==null?void 0:o.indexOf(e.id))??-1:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n;return e.setRowPinning(t?ra():((n=e.initialState)==null?void 0:n.rowPinning)??ra())},e.getIsSomeRowsPinned=t=>{var r,o,a;let n=e.getState().rowPinning;return t?!!((r=n[t])!=null&&r.length):!!((o=n.top)!=null&&o.length||(a=n.bottom)!=null&&a.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??!0?(n??[]).map(o=>{let a=e.getRow(o,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(o=>t.find(a=>a.id===o))).filter(Boolean).map(o=>({...o,position:r})),e.getTopRows=P(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),$(e.options,"debugRows","getTopRows")),e.getBottomRows=P(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),$(e.options,"debugRows","getBottomRows")),e.getCenterRows=P(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{let o=new Set([...n??[],...r??[]]);return t.filter(a=>!o.has(a.id))},$(e.options,"debugRows","getCenterRows"))}},Yg={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:fe("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):o.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,o={...n};return e.getRowModel().rows.forEach(a=>{oa(o,a.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=P(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?aa(e,n):{rows:[],flatRows:[],rowsById:{}},$(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=P(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?aa(e,n):{rows:[],flatRows:[],rowsById:{}},$(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=P(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?aa(e,n):{rows:[],flatRows:[],rowsById:{}},$(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let o=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!o:n,e.getCanSelect()&&o===n)return a;let l={...a};return oa(l,e.id,n,(r==null?void 0:r.selectChildren)??!0,t),l})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return la(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return ia(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return ia(e,n)==="all"},e.getCanSelect=()=>typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):t.options.enableRowSelection??!0,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??!0,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??!0,e.getToggleSelectedHandler=()=>{let n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},oa=(e,t,n,r,o)=>{var a;let l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(i=>delete e[i]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=l.subRows)!=null&&a.length&&l.getCanSelectSubRows()&&l.subRows.forEach(i=>oa(e,i.id,n,r,o))};function aa(e,t){let n=e.getState().rowSelection,r=[],o={},a=function(l,i){return l.map(c=>{var u;let m=la(c,n);if(m&&(r.push(c),o[c.id]=c),(u=c.subRows)!=null&&u.length&&(c={...c,subRows:a(c.subRows)}),m)return c}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:o}}function la(e,t){return t[e.id]??!1}function ia(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,a=!1;return e.subRows.forEach(l=>{if(!(a&&!o)&&(l.getCanSelect()&&(la(l,t)?a=!0:o=!1),l.subRows&&l.subRows.length)){let i=ia(l,t);i==="all"?a=!0:(i==="some"&&(a=!0),o=!1)}}),o?"all":a?"some":!1}var sa=/([0-9]+)/gm,Zg=(e,t,n)=>Ns(vt(e.getValue(n)).toLowerCase(),vt(t.getValue(n)).toLowerCase()),Qg=(e,t,n)=>Ns(vt(e.getValue(n)),vt(t.getValue(n))),e0=(e,t,n)=>ca(vt(e.getValue(n)).toLowerCase(),vt(t.getValue(n)).toLowerCase()),t0=(e,t,n)=>ca(vt(e.getValue(n)),vt(t.getValue(n))),n0=(e,t,n)=>{let r=e.getValue(n),o=t.getValue(n);return r>o?1:rca(e.getValue(n),t.getValue(n));function ca(e,t){return e===t?0:e>t?1:-1}function vt(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ns(e,t){let n=e.split(sa).filter(Boolean),r=t.split(sa).filter(Boolean);for(;n.length&&r.length;){let o=n.shift(),a=r.shift(),l=parseInt(o,10),i=parseInt(a,10),c=[l,i].sort();if(isNaN(c[0])){if(o>a)return 1;if(a>o)return-1;continue}if(isNaN(c[1]))return isNaN(l)?-1:1;if(l>i)return 1;if(i>l)return-1}return n.length-r.length}var jn={alphanumeric:Zg,alphanumericCaseSensitive:Qg,text:e0,textCaseSensitive:t0,datetime:n0,basic:r0},o0=[Tg,Wg,Lg,Ms,Og,Vg,qg,Kg,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:fe("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let o of n){let a=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return jn.datetime;if(typeof a=="string"&&(r=!0,a.split(sa).length>1))return jn.alphanumeric}return r?jn.text:jn.basic},e.getAutoSortDir=()=>{var n;return typeof((n=t.getFilteredRowModel().flatRows[0])==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n;if(!e)throw Error();return fr(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():((n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])??jn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let o=e.getNextSortingOrder(),a=n!=null;t.setSorting(l=>{let i=l==null?void 0:l.find(d=>d.id===e.id),c=l==null?void 0:l.findIndex(d=>d.id===e.id),u=[],m,p=a?n:o==="desc";return m=l!=null&&l.length&&e.getCanMultiSort()&&r?i?"toggle":"add":l!=null&&l.length&&c!==l.length-1?"replace":i?"toggle":"replace",m==="toggle"&&(a||o||(m="remove")),m==="add"?(u=[...l,{id:e.id,desc:p}],u.splice(0,u.length-(t.options.maxMultiSortColCount??2**53-1))):u=m==="toggle"?l.map(d=>d.id===e.id?{...d,desc:p}:d):m==="remove"?l.filter(d=>d.id!==e.id):[{id:e.id,desc:p}],u})},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()==="desc"?"desc":"asc",e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==r&&(t.options.enableSortingRemoval??!0)&&(!n||(t.options.enableMultiRemove??!0))?!1:o==="desc"?"asc":"desc":r},e.getCanSort=()=>(e.columnDef.enableSorting??!0)&&(t.options.enableSorting??!0)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{var r;let n=(r=t.getState().sorting)==null?void 0:r.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n;return((n=t.getState().sorting)==null?void 0:n.findIndex(r=>r.id===e.id))??-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n;e.setSorting(t?[]:((n=e.initialState)==null?void 0:n.sorting)??[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},zg,Ug,Jg,Xg,Yg,Bg];function a0(e){let t=[...o0,...e._features??[]],n={_features:t},r=n._features.reduce((u,m)=>Object.assign(u,m.getDefaultOptions==null?void 0:m.getDefaultOptions(n)),{}),o=u=>n.options.mergeOptions?n.options.mergeOptions(r,u):{...r,...u},a={...e.initialState??{}};n._features.forEach(u=>{a=(u.getInitialState==null?void 0:u.getInitialState(a))??a});let l=[],i=!1,c={_features:t,options:{...r,...e},initialState:a,_queue:u=>{l.push(u),i||(i=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();i=!1}).catch(m=>setTimeout(()=>{throw m})))},reset:()=>{n.setState(n.initialState)},setOptions:u=>{n.options=o(bt(u,n.options))},getState:()=>n.options.state,setState:u=>{n.options.onStateChange==null||n.options.onStateChange(u)},_getRowId:(u,m,p)=>(n.options.getRowId==null?void 0:n.options.getRowId(u,m,p))??`${p?[p.id,m].join("."):m}`,getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(u,m)=>{let p=(m?n.getPrePaginationRowModel():n.getRowModel()).rowsById[u];if(!p&&(p=n.getCoreRowModel().rowsById[u],!p))throw Error();return p},_getDefaultColumnDef:P(()=>[n.options.defaultColumn],u=>(u??(u={}),{header:m=>{let p=m.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:m=>{var p;return((p=m.renderValue())==null||p.toString==null?void 0:p.toString())??null},...n._features.reduce((m,p)=>Object.assign(m,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...u}),$(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>n.options.columns,getAllColumns:P(()=>[n._getColumnDefs()],u=>{let m=function(p,d,g){return g===void 0&&(g=0),p.map(f=>{let h=Eg(n,f,g,d),v=f;return h.columns=v.columns?m(v.columns,h,g+1):[],h})};return m(u)},$(e,"debugColumns","getAllColumns")),getAllFlatColumns:P(()=>[n.getAllColumns()],u=>u.flatMap(m=>m.getFlatColumns()),$(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:P(()=>[n.getAllFlatColumns()],u=>u.reduce((m,p)=>(m[p.id]=p,m),{}),$(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:P(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(u,m)=>m(u.flatMap(p=>p.getLeafColumns())),$(e,"debugColumns","getAllLeafColumns")),getColumn:u=>n._getAllFlatColumnsById()[u]};Object.assign(n,c);for(let u=0;uP(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(o,a,l){a===void 0&&(a=0);let i=[];for(let u=0;ue._autoResetPageIndex()))};function l0(e){let t=[],n=r=>{var o;t.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function i0(e,t,n){return n.options.filterFromLeafRows?s0(e,t,n):c0(e,t,n)}function s0(e,t,n){let r=[],o={},a=n.options.maxLeafRowFilterDepth??100,l=function(i,c){c===void 0&&(c=0);let u=[];for(let p=0;pP(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let p=0;p{let d=e.getColumn(p.id);if(!d)return;let g=d.getFilterFn();g&&o.push({id:p.id,filterFn:g,resolvedValue:(g.resolveFilterValue==null?void 0:g.resolveFilterValue(p.value))??p.value})});let l=(n??[]).map(p=>p.id),i=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(p=>p.getCanGlobalFilter());r&&i&&c.length&&(l.push("__global__"),c.forEach(p=>{a.push({id:p.id,filterFn:i,resolvedValue:(i.resolveFilterValue==null?void 0:i.resolveFilterValue(r))??r})}));let u,m;for(let p=0;p{d.columnFiltersMeta[f]=h})}if(a.length){for(let g=0;g{d.columnFiltersMeta[f]=h})){d.columnFilters.__global__=!0;break}}d.columnFilters.__global__!==!0&&(d.columnFilters.__global__=!1)}}return i0(t.rows,p=>{for(let d=0;de._autoResetPageIndex()))};function u0(e){return t=>P(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;let{pageSize:o,pageIndex:a}=n,{rows:l,flatRows:i,rowsById:c}=r,u=o*a,m=u+o;l=l.slice(u,m);let p;p=t.options.paginateExpandedRows?{rows:l,flatRows:i,rowsById:c}:l0({rows:l,flatRows:i,rowsById:c}),p.flatRows=[];let d=g=>{p.flatRows.push(g),g.subRows.length&&g.subRows.forEach(d)};return p.rows.forEach(d),p},$(t.options,"debugTable","getPaginationRowModel"))}Ka=function(){return e=>P(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let r=e.getState().sorting,o=[],a=r.filter(c=>{var u;return(u=e.getColumn(c.id))==null?void 0:u.getCanSort()}),l={};a.forEach(c=>{let u=e.getColumn(c.id);u&&(l[c.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});let i=c=>{let u=c.map(m=>({...m}));return u.sort((m,p)=>{for(let d=0;d{var p;o.push(m),(p=m.subRows)!=null&&p.length&&(m.subRows=i(m.subRows))}),u};return{rows:i(n.rows),flatRows:o,rowsById:n.rowsById}},$(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))},Gr=function(e,t){return e?d0(e)?w.createElement(e,t):e:null};function d0(e){return m0(e)||typeof e=="function"||p0(e)}function m0(e){return typeof e=="function"&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function p0(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}Ya=function(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:a0(t)})),[r,o]=w.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:l=>{o(l),e.onStateChange==null||e.onStateChange(l)}})),n.current};const f0={getInitialState:e=>({columnFormatting:{},...e}),getDefaultOptions:e=>({enableColumnFormatting:!0,onColumnFormattingChange:fe("columnFormatting",e),locale:navigator.language}),createColumn:(e,t)=>{e.getColumnFormatting=()=>t.getState().columnFormatting[e.id],e.getCanFormat=()=>{var n,r;return(t.options.enableColumnFormatting&&((n=e.columnDef.meta)==null?void 0:n.dataType)!=="unknown"&&((r=e.columnDef.meta)==null?void 0:r.dataType)!==void 0)??!1},e.setColumnFormatting=n=>{var r,o;(o=(r=t.options).onColumnFormattingChange)==null||o.call(r,a=>({...a,[e.id]:n}))},e.applyColumnFormatting=n=>{var a,l;let r=(a=e.columnDef.meta)==null?void 0:a.dataType,o=(l=e.getColumnFormatting)==null?void 0:l.call(e);return o?ut(n,{format:o,dataType:r,locale:t.options.locale}):n}}},g0=Vy(e=>({percentFormatter:new Intl.NumberFormat(e,{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2}),dateFormatter:new Intl.DateTimeFormat(e,{dateStyle:"short"}),dateTimeFormatter:new Intl.DateTimeFormat(e,{dateStyle:"short",timeStyle:"long",timeZone:"UTC"}),timeFormatter:new Intl.DateTimeFormat(e,{timeStyle:"long",timeZone:"UTC"}),integerFormatter:new Intl.NumberFormat(e,{maximumFractionDigits:0})})),ut=(e,t)=>{let{format:n,dataType:r,locale:o}=t,{percentFormatter:a,dateFormatter:l,dateTimeFormatter:i,timeFormatter:c,integerFormatter:u}=g0(o);if(e==null||e==="")return"";switch(r){case"time":return e;case"datetime":case"date":{let m=new Date(e);switch(n){case"Date":return l.format(m);case"Datetime":return i.format(m);case"Time":return c.format(m);default:return e}}case"integer":case"number":{let m=Number.parseFloat(e);switch(n){case"Auto":return Pe(m,o);case"Percent":return a.format(m);case"Scientific":return Ga(m,{shouldRound:!0,locale:o});case"Engineering":return Qb(m,o);case"Integer":return u.format(m);default:return e}}case"string":switch(n){case"Uppercase":return e.toUpperCase();case"Lowercase":return e.toLowerCase();case"Capitalize":return e.charAt(0).toUpperCase()+e.slice(1);case"Title":return e.split(" ").map(m=>m.charAt(0).toUpperCase()+m.slice(1).toLowerCase()).join(" ");default:return e}case"boolean":switch(n){case"Yes/No":return e?"Yes":"No";case"On/Off":return e?"On":"Off";default:return e}case void 0:case"unknown":return e;default:return kt(r),e}};function h0(e,t){switch(e){case"Date":return String(ut(new Date,{format:"Date",dataType:"date",locale:t}));case"Datetime":return String(ut(new Date,{format:"Datetime",dataType:"date",locale:t}));case"Time":return String(ut(new Date,{format:"Time",dataType:"date",locale:t}));case"Percent":return String(ut(.1234,{format:"Percent",dataType:"number",locale:t}));case"Scientific":return String(ut(12345678910,{format:"Scientific",dataType:"number",locale:t}));case"Engineering":return String(ut(12345678910,{format:"Engineering",dataType:"number",locale:t}));case"Integer":return String(ut(1234.567,{format:"Integer",dataType:"number",locale:t}));case"Auto":return String(ut(1234.567,{format:"Auto",dataType:"number",locale:t}));default:return null}}const y0={date:["Date","Datetime","Time"],datetime:["Date","Datetime","Time"],time:[],integer:["Auto","Percent","Scientific","Engineering","Integer"],number:["Auto","Percent","Scientific","Engineering","Integer"],string:["Uppercase","Lowercase","Capitalize","Title"],boolean:["Yes/No","On/Off"],unknown:[]};var Fs=K();function b0(e,t){var l,i,c;let n=(l=e.columnDef.meta)==null?void 0:l.dataType,r=n?y0[n]:[];if(r.length===0||!((i=e.getCanFormat)!=null&&i.call(e)))return null;let o=fy[n||"unknown"],a=(c=e.getColumnFormatting)==null?void 0:c.call(e);return(0,s.jsxs)(nn,{children:[(0,s.jsxs)($a,{children:[(0,s.jsx)(o,{className:"mo-dropdown-icon"}),"Format"]}),(0,s.jsx)(zr,{children:(0,s.jsxs)(Pn,{children:[(0,s.jsxs)("div",{className:"text-xs text-muted-foreground px-2 py-1",children:["Locale: ",t]}),!!a&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Q,{variant:"danger",onClick:()=>e.setColumnFormatting(void 0),children:"Clear"},"clear"),(0,s.jsx)(tn,{})]}),r.map(u=>(0,s.jsxs)(Q,{onClick:()=>e.setColumnFormatting(u),children:[(0,s.jsx)("span",{className:O(a===u&&"font-semibold"),children:u}),(0,s.jsx)("span",{className:"ml-auto pl-5 text-xs text-muted-foreground",children:h0(u,t)})]},u))]})})]})}function x0(e){var t;return!((t=e.getCanWrap)!=null&&t.call(e))||!e.getColumnWrapping?null:e.getColumnWrapping()==="wrap"?(0,s.jsxs)(Q,{onClick:()=>e.toggleColumnWrapping("nowrap"),children:[(0,s.jsx)(Vl,{className:"mo-dropdown-icon"}),"No wrap text"]}):(0,s.jsxs)(Q,{onClick:()=>e.toggleColumnWrapping("wrap"),children:[(0,s.jsx)(ol,{className:"mo-dropdown-icon"}),"Wrap text"]})}function v0(e){var t;return!((t=e.getCanPin)!=null&&t.call(e))||!e.getIsPinned?null:e.getIsPinned()===!1?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(Q,{onClick:()=>e.pin("left"),children:[(0,s.jsx)(rb,{className:"mo-dropdown-icon"}),"Freeze left"]}),(0,s.jsxs)(Q,{onClick:()=>e.pin("right"),children:[(0,s.jsx)(Zy,{className:"mo-dropdown-icon"}),"Freeze right"]})]}):(0,s.jsxs)(Q,{onClick:()=>e.pin(!1),children:[(0,s.jsx)(al,{className:"mo-dropdown-icon"}),"Unfreeze"]})}function w0(e){var t;return!((t=e.getCanCopy)!=null&&t.call(e))||e.id.startsWith("__m_column__")?null:(0,s.jsxs)(Q,{onClick:async()=>await rn(e.id),children:[(0,s.jsx)(Dr,{className:"mo-dropdown-icon"}),"Copy column name"]})}var As=kl,Is=gl;function S0(e,t){if(!e.getCanSort())return null;let n=e.getIsSorted(),r=e.getSortIndex(),o=t==null?void 0:t.getState().sorting,a=(o==null?void 0:o.length)&&o.length>1,l=()=>(0,s.jsx)("span",{className:"ml-auto text-xs font-medium",children:r+1}),i=()=>n?a?(0,s.jsxs)(Q,{onClick:()=>t==null?void 0:t.resetSorting(),children:[(0,s.jsx)(Or,{className:"mo-dropdown-icon"}),"Clear all sorts"]}):(0,s.jsxs)(Q,{onClick:()=>e.clearSorting(),children:[(0,s.jsx)(Or,{className:"mo-dropdown-icon"}),"Clear sort"]}):null,c=u=>{if(n===u)e.clearSorting();else{let m=u==="desc";e.toggleSorting(m,!0)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(Q,{onClick:()=>c("asc"),className:n==="asc"?"bg-accent":"",children:[(0,s.jsx)(As,{className:"mo-dropdown-icon"}),"Asc",n==="asc"&&l()]}),(0,s.jsxs)(Q,{onClick:()=>c("desc"),className:n==="desc"?"bg-accent":"",children:[(0,s.jsx)(Is,{className:"mo-dropdown-icon"}),"Desc",n==="desc"&&l()]}),i(),(0,s.jsx)(tn,{})]})}function C0(e){if(!e.getCanSort())return null;let t=e.getIsSorted(),n=e.getFilterValue()!==void 0,r;return r=n&&t?Pl:n?Al:t?t==="desc"?Is:As:Or,(0,s.jsx)(r,{className:"h-3 w-3"})}function j0(e){var n;let t=(n=e.columnDef.meta)==null?void 0:n.dtype;return t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex-1 px-2 text-xs text-muted-foreground font-bold",children:t}),(0,s.jsx)(tn,{})]}):null}const k0=e=>{let t=(0,Fs.c)(5),{column:n}=e,r;t[0]===n?r=t[1]:(r=()=>n.setFilterValue(void 0),t[0]=n,t[1]=r);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(Il,{className:"mo-dropdown-icon"}),t[2]=o):o=t[2];let a;return t[3]===r?a=t[4]:(a=(0,s.jsxs)(Q,{onClick:r,children:[o,"Clear filter"]}),t[3]=r,t[4]=a),a};function _0(e,t){var n,r;return!e.getCanFilter()||((n=e.columnDef.meta)==null?void 0:n.dataType)==="boolean"||!((r=e.columnDef.meta)!=null&&r.filterType)?null:(0,s.jsx)(nn,{children:(0,s.jsxs)(Q,{onClick:()=>t(!0),children:[(0,s.jsx)(Ly,{className:"mo-dropdown-icon"}),"Filter by values"]})})}const ua=e=>{let t=(0,Fs.c)(8),{onApply:n,onClear:r,clearButtonDisabled:o}=e,a;t[0]===n?a=t[1]:(a=(0,s.jsx)(de,{variant:"link",size:"sm",onClick:n,children:"Apply"}),t[0]=n,t[1]=a);let l;t[2]!==o||t[3]!==r?(l=(0,s.jsx)(de,{variant:"linkDestructive",size:"sm",className:"",onClick:r,disabled:o,children:"Clear"}),t[2]=o,t[3]=r,t[4]=l):l=t[4];let i;return t[5]!==a||t[6]!==l?(i=(0,s.jsxs)("div",{className:"flex gap-2 px-2 justify-between",children:[a,l]}),t[5]=a,t[6]=l,t[7]=i):i=t[7],i};su=function(e){return Er.collect(e,([t])=>t,([,[t]])=>t)},Za="__select__",Wr="_marimo_row_id",mu="too_many";function R0(e){var t,n;if(e)return(n=(t=/^datetime(?:64)?\[[^,]+,([^,]+)]$/.exec(e))==null?void 0:t[1])==null?void 0:n.trim()}yu=async function(e){return Array.isArray(e)?e:e.startsWith("{")||e.startsWith("[")?Lc(e):(e=await Ny(e,{type:"json"},{handleBigIntAndNumberLike:!0}),e)};function br(e){if(e&&typeof e=="object"&&"_marimo_row_id"in e)return String(e[Wr])}iu=function(e,t,n){let r=t*n,o=r+n-1;return eo?Math.floor(e/n):null};function kn(e){let{value:t,nullAsEmptyString:n=!1}=e;return typeof t=="object"&&t?JSON.stringify(t):t===null&&n?"":String(t)}var da=30;ml=({column:e,header:t,className:n,calculateTopKRows:r,table:o})=>{let[a,l]=(0,w.useState)(!1),{locale:i}=ft();if(!t)return null;if(!e.getCanSort()&&!e.getCanFilter())return(0,s.jsx)("div",{className:O(n),children:t});let c=e.getFilterValue()!==void 0,u=!e.getIsSorted()&&!c;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(Oa,{modal:!1,children:[(0,s.jsx)(Ea,{asChild:!0,children:(0,s.jsxs)("div",{className:O("group flex items-center my-1 space-between w-full select-none gap-2 border hover:border-border border-transparent hover:bg-(--slate-3) data-[state=open]:bg-(--slate-3) data-[state=open]:border-border rounded px-1 -mx-1",n),"data-testid":"data-table-sort-button",children:[(0,s.jsx)("span",{className:"flex-1",children:t}),(0,s.jsx)("span",{className:O("h-5 py-1 px-1",u&&"invisible group-hover:visible data-[state=open]:visible"),children:C0(e)})]})}),(0,s.jsxs)(Ta,{align:"start",children:[j0(e),S0(e,o),w0(e),v0(e),x0(e),b0(e,i),(0,s.jsx)(tn,{}),M0(e),_0(e,l),c&&(0,s.jsx)(k0,{column:e})]})]}),a&&(0,s.jsx)(I0,{setIsFilterValueOpen:l,calculateTopKRows:r,column:e})]})};function M0(e){var r;if(!e.getCanFilter())return null;let t=(r=e.columnDef.meta)==null?void 0:r.filterType;if(!t)return null;let n=(0,s.jsxs)($a,{children:[(0,s.jsx)(En,{className:"mo-dropdown-icon"}),"Filter"]});return t==="boolean"?(0,s.jsxs)(nn,{children:[n,(0,s.jsx)(zr,{children:(0,s.jsx)(Pn,{children:(0,s.jsx)(N0,{column:e})})})]}):t==="text"?(0,s.jsxs)(nn,{children:[n,(0,s.jsx)(zr,{children:(0,s.jsx)(Pn,{children:(0,s.jsx)(A0,{column:e})})})]}):t==="number"?(0,s.jsxs)(nn,{children:[n,(0,s.jsx)(zr,{children:(0,s.jsx)(Pn,{children:(0,s.jsx)(F0,{column:e})})})]}):(t==="select"||t==="time"||t==="datetime"||t==="date"||kt(t),null)}var Ps={is_null:"is_null",is_not_null:"is_not_null"},$s=({column:e,defaultItem:t,operator:n,setOperator:r})=>{let o=a=>{r(a),(a==="is_null"||a==="is_not_null")&&e.setFilterValue(Ze.text({operator:a}))};return(0,s.jsxs)(Jc,{value:n,onValueChange:a=>o(a),children:[(0,s.jsx)(Uc,{className:O("border-border shadow-none! ring-0! w-full mb-0.5",(n==="is_null"||n==="is_not_null")&&"mb-2"),children:(0,s.jsx)(Wc,{defaultValue:n})}),(0,s.jsxs)(Kc,{children:[t&&(0,s.jsx)(Tr,{value:t,children:Ry(t)}),(0,s.jsx)(Wy,{}),(0,s.jsx)(Tr,{value:Ps.is_null,children:"Is null"}),(0,s.jsx)(Tr,{value:Ps.is_not_null,children:"Is not null"})]})]})},N0=({column:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Q,{onClick:()=>e.setFilterValue(Ze.boolean({value:!0,operator:"is_true"})),children:"True"}),(0,s.jsx)(Q,{onClick:()=>e.setFilterValue(Ze.boolean({value:!1,operator:"is_false"})),children:"False"}),(0,s.jsx)(tn,{}),(0,s.jsx)(Q,{onClick:()=>e.setFilterValue(Ze.boolean({operator:"is_null"})),children:"Is null"}),(0,s.jsx)(Q,{onClick:()=>e.setFilterValue(Ze.boolean({operator:"is_not_null"})),children:"Is not null"})]}),F0=({column:e})=>{let t=e.getFilterValue(),n=t!==void 0,[r,o]=(0,w.useState)((t==null?void 0:t.operator)??"between"),[a,l]=(0,w.useState)(t==null?void 0:t.min),[i,c]=(0,w.useState)(t==null?void 0:t.max),u=(0,w.useRef)(null),m=(0,w.useRef)(null),p=(d={})=>{e.setFilterValue(Ze.number({min:d.min??a,max:d.max??i,operator:r==="between"?void 0:r}))};return(0,s.jsxs)("div",{className:"flex flex-col gap-1 pt-3 px-2",children:[(0,s.jsx)($s,{column:e,defaultItem:"between",operator:r,setOperator:o}),r==="between"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(eu,{ref:u,value:a,onChange:d=>l(d),"aria-label":"min",placeholder:"min",onKeyDown:d=>{var g;d.key==="Enter"&&p({min:Number.parseFloat(d.currentTarget.value)}),d.key==="Tab"&&((g=m.current)==null||g.focus())},className:"shadow-none! border-border hover:shadow-none!"}),(0,s.jsx)(El,{className:"h-5 w-5 text-muted-foreground"}),(0,s.jsx)(eu,{ref:m,value:i,onChange:d=>c(d),"aria-label":"max",onKeyDown:d=>{var g;d.key==="Enter"&&p({max:Number.parseFloat(d.currentTarget.value)}),d.key==="Tab"&&((g=u.current)==null||g.focus())},placeholder:"max",className:"shadow-none! border-border hover:shadow-none!"})]}),(0,s.jsx)(ua,{onApply:p,onClear:()=>{l(void 0),c(void 0),e.setFilterValue(void 0)},clearButtonDisabled:!n})]})]})},A0=({column:e})=>{let t=e.getFilterValue(),n=t!==void 0,[r,o]=(0,w.useState)((t==null?void 0:t.text)??""),[a,l]=(0,w.useState)((t==null?void 0:t.operator)??"contains"),i=()=>{if(a!=="contains"){e.setFilterValue(Ze.text({operator:a}));return}if(r===""){e.setFilterValue(void 0);return}e.setFilterValue(Ze.text({text:r,operator:a}))};return(0,s.jsxs)("div",{className:"flex flex-col gap-1 pt-3 px-2",children:[(0,s.jsx)($s,{column:e,defaultItem:"contains",operator:a,setOperator:l}),a==="contains"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Fb,{type:"text",icon:(0,s.jsx)(zl,{className:"h-3 w-3 text-muted-foreground mb-1"}),value:r??"",onChange:c=>o(c.target.value),placeholder:"Text...",onKeyDown:c=>{c.key==="Enter"&&i()},className:"shadow-none! border-border hover:shadow-none!"}),(0,s.jsx)(ua,{onApply:i,onClear:()=>{o(""),e.setFilterValue(void 0)},clearButtonDisabled:!n})]})]})},I0=({setIsFilterValueOpen:e,calculateTopKRows:t,column:n})=>{let[r,o]=(0,w.useState)(new Set),[a,l]=(0,w.useState)(""),{data:i,isPending:c,error:u}=bx(async()=>t?(await t({column:n.id,k:da})).data:null,[]),m=(0,w.useMemo)(()=>{if(!i)return[];try{return i.filter(([h,v])=>h===void 0?!1:String(h).toLowerCase().includes(a.toLowerCase()))}catch(h){return ot.error("Error filtering data",h),[]}},[i,a]),p;c&&(p=(0,s.jsx)(Qc,{size:"medium",className:"mx-auto mt-12 mb-10"})),u&&(p=(0,s.jsx)(ou,{error:u,className:"my-10 mx-4"}));let d=h=>{o(v=>{let b=v.has(h),S=new Set(v);return b?S.delete(h):S.add(h),S})},g=h=>{i&&o(h?new Set(m.map(([v])=>v)):new Set)},f=()=>{if(r.size===0){n.setFilterValue(void 0);return}n.setFilterValue(Ze.select({options:[...r],operator:"in"}))};if(i){let h=r.size===m.length;p=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(Sx,{className:"text-sm outline-hidden",shouldFilter:!1,children:[(0,s.jsx)(xx,{placeholder:`Search among the top ${i.length} values`,autoFocus:!0,onValueChange:v=>l(v.trim())}),(0,s.jsx)(vx,{children:"No results found."}),(0,s.jsxs)(wx,{className:"border-b",children:[m.length>0&&(0,s.jsxs)(au,{value:"__select-all__",className:"border-b rounded-none px-3",onSelect:()=>g(!h),children:[(0,s.jsx)(Pr,{checked:r.size===m.length,"aria-label":"Select all",className:"mr-3 h-3.5 w-3.5"}),(0,s.jsx)("span",{className:"font-bold flex-1",children:n.id}),(0,s.jsx)("span",{className:"font-bold",children:"Count"})]}),m.map(([v,b],S)=>{let x=r.has(v),C=kn({value:v});return(0,s.jsxs)(au,{value:C,className:"not-last:border-b rounded-none px-3",onSelect:()=>d(v),children:[(0,s.jsx)(Pr,{checked:x,"aria-label":"Select row",className:"mr-3 h-3.5 w-3.5"}),(0,s.jsx)("span",{className:"flex-1 overflow-hidden max-h-20 line-clamp-3",children:C}),(0,s.jsx)("span",{className:"ml-3",children:b})]},S)})]}),m.length===da&&(0,s.jsxs)("span",{className:"text-xs text-muted-foreground mt-1.5 text-center",children:["Only showing the top ",da," values"]})]}),(0,s.jsx)(ua,{onApply:f,onClear:()=>{o(new Set)},clearButtonDisabled:r.size===0})]})}return(0,s.jsxs)(Ag,{open:!0,onOpenChange:h=>!h&&e(!1),className:"w-80 p-0",children:[(0,s.jsx)(Yb,{className:"absolute top-2 right-2",children:(0,s.jsx)(de,{variant:"link",size:"sm",onClick:()=>e(!1),children:(0,s.jsx)(qc,{className:"h-4 w-4"})})}),(0,s.jsx)("div",{className:"flex flex-col gap-1.5 py-2",children:p})]})};function P0(e,t){let[n,r]=w.useState(e);return w.useEffect(()=>{let o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n}Ja=function(e={}){let{threshold:t=1,root:n=null,rootMargin:r="0px"}=e,[o,a]=w.useState(null),l=w.useRef(null);return[w.useCallback(i=>{if(l.current&&(l.current=(l.current.disconnect(),null)),(i==null?void 0:i.nodeType)===Node.ELEMENT_NODE){let c=new IntersectionObserver(([u])=>{a(u)},{threshold:t,root:n,rootMargin:r});c.observe(i),l.current=c}},[t,n,r]),o]},du=function(e){let[t,n]=w.useState(e),[r,o]=w.useState(null);return e!==t&&(o(t),n(e)),r};var $0=K();Xa=e=>{let t=(0,$0.c)(13),{milliseconds:n,children:r,fallback:o,visibility:a,threshold:l,rootMargin:i}=e,c=a===void 0?!1:a,u=l===void 0?0:l,m=i===void 0?"0px":i,[p,d]=(0,w.useState)(!1),[g,f]=(0,w.useState)(!1),h;t[0]!==m||t[1]!==u?(h={threshold:u,root:null,rootMargin:m},t[0]=m,t[1]=u,t[2]=h):h=t[2];let[v,b]=Ja(h),S;t[3]===(b==null?void 0:b.isIntersecting)?S=t[4]:(S=()=>{b!=null&&b.isIntersecting&&f(!0)},t[3]=b==null?void 0:b.isIntersecting,t[4]=S);let x=b==null?void 0:b.isIntersecting,C;t[5]===x?C=t[6]:(C=[x],t[5]=x,t[6]=C),(0,w.useEffect)(S,C);let k,j;t[7]===n?(k=t[8],j=t[9]):(k=()=>{let N=setTimeout(()=>{d(!0)},n);return()=>{clearTimeout(N)}},j=[n],t[7]=n,t[8]=k,t[9]=j),(0,w.useEffect)(k,j);let _=c&&!g?!1:p,R=c?v:null,F=_?r:o,y;return t[10]!==R||t[11]!==F?(y=(0,s.jsx)("div",{ref:R,children:F}),t[10]=R,t[11]=F,t[12]=y):y=t[12],y};var xr=K();const Es=e=>{let t=(0,xr.c)(15),{date:n,type:r,children:o}=e;if(!n||Number.isNaN(new Date(n).getTime()))return o;let a;t[0]===n?a=t[1]:(a=new Date(n),t[0]=n,t[1]=a);let l=a,i;t[2]===l?i=t[3]:(i=(0,s.jsx)("div",{className:"text-muted-foreground mb-2",children:(0,s.jsx)(O0,{date:l})}),t[2]=l,t[3]=i);let c;t[4]!==l||t[5]!==r?(c=(0,s.jsx)("div",{className:"space-y-1",children:r==="datetime"?(0,s.jsx)(E0,{date:l}):(0,s.jsx)(T0,{date:l})}),t[4]=l,t[5]=r,t[6]=c):c=t[6];let u;t[7]!==i||t[8]!==c?(u=(0,s.jsxs)("div",{className:"min-w-[240px] p-1 text-sm",children:[i,c]}),t[7]=i,t[8]=c,t[9]=u):u=t[9];let m=u,p;t[10]===o?p=t[11]:(p=(0,s.jsx)("span",{children:o}),t[10]=o,t[11]=p);let d;return t[12]!==m||t[13]!==p?(d=(0,s.jsx)(ze,{content:m,delayDuration:200,children:p}),t[12]=m,t[13]=p,t[14]=d):d=t[14],d};var E0=e=>{let t=(0,xr.c)(26),{date:n}=e,{locale:r}=ft(),o;t[0]===r?o=t[1]:(o=Intl.DateTimeFormat(r).resolvedOptions(),t[0]=r,t[1]=o);let a=o.timeZone,l=n.getUTCMilliseconds()!==0,i;t[2]===l?i=t[3]:(i=l?{timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3}:{timeZone:"UTC",dateStyle:"long",timeStyle:"medium"},t[2]=l,t[3]=i);let c=Hr(i),u;t[4]!==l||t[5]!==a?(u=l?{timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3}:{timeZone:a,dateStyle:"long",timeStyle:"medium"},t[4]=l,t[5]=a,t[6]=u):u=t[6];let m=Hr(u),p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)("span",{className:"bg-muted rounded-md py-1 px-2 w-fit ml-auto",children:"UTC"}),t[7]=p):p=t[7];let d;t[8]!==n||t[9]!==c?(d=c.format(n),t[8]=n,t[9]=c,t[10]=d):d=t[10];let g;t[11]===d?g=t[12]:(g=(0,s.jsxs)("div",{className:"grid grid-cols-[fit-content(40px)_1fr] gap-4 items-center justify-items-end",children:[p,(0,s.jsx)("span",{children:d})]}),t[11]=d,t[12]=g);let f;t[13]===a?f=t[14]:(f=(0,s.jsx)("span",{className:"bg-muted rounded-md py-1 px-2 w-fit ml-auto",children:a}),t[13]=a,t[14]=f);let h;t[15]!==n||t[16]!==m?(h=m.format(n),t[15]=n,t[16]=m,t[17]=h):h=t[17];let v;t[18]===h?v=t[19]:(v=(0,s.jsx)("span",{children:h}),t[18]=h,t[19]=v);let b;t[20]!==f||t[21]!==v?(b=(0,s.jsxs)("div",{className:"grid grid-cols-[fit-content(40px)_1fr] gap-4 items-center justify-items-end",children:[f,v]}),t[20]=f,t[21]=v,t[22]=b):b=t[22];let S;return t[23]!==b||t[24]!==g?(S=(0,s.jsxs)(s.Fragment,{children:[g,b]}),t[23]=b,t[24]=g,t[25]=S):S=t[25],S},T0=e=>{let t=(0,xr.c)(6),{date:n}=e,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={timeZone:"UTC",dateStyle:"long"},t[0]=r):r=t[0];let o=Hr(r),a;t[1]!==n||t[2]!==o?(a=o.format(n),t[1]=n,t[2]=o,t[3]=a):a=t[3];let l;return t[4]===a?l=t[5]:(l=(0,s.jsx)("span",{children:a}),t[4]=a,t[5]=l),l},O0=e=>{let t=(0,xr.c)(6),{date:n}=e,{locale:r}=ft(),o,a;if(t[0]!==n||t[1]!==r){a=Symbol.for("react.early_return_sentinel");e:{let i=new Intl.RelativeTimeFormat(r,{numeric:"auto"}),c=(new Date().getTime()-n.getTime())/1e3;for(let[u,m,p]of[[60,1,"second"],[60,60,"minute"],[24,3600,"hour"],[365,86400,"day"],[1/0,31536e3,"year"]]){let d=c/m;if(d{let t=0;for(let n=0;n{let r=[],o=z0(n);for(let a=0;a{let t=(0,V0.c)(11),{seed:n,width:r,height:o}=e,a=r/9,l=o-15,i;if(t[0]!==a||t[1]!==o||t[2]!==n||t[3]!==l||t[4]!==r){let c=D0({numBars:9,maxHeight:l,seed:n}),u;t[6]!==o||t[7]!==r?(u={width:r,height:o},t[6]=o,t[7]=r,t[8]=u):u=t[8];let m;t[9]===a?m=t[10]:(m=(p,d)=>(0,s.jsx)("div",{className:"bg-(--slate-5) animate-pulse",style:{width:a-2,height:p}},d),t[9]=a,t[10]=m),i=(0,s.jsx)("div",{className:"flex items-end gap-px pb-2",style:u,children:c.map(m)}),t[0]=a,t[1]=o,t[2]=n,t[3]=l,t[4]=r,t[5]=i}else i=t[5];return i};var vr={slate1:"#fcfcfd",slate2:"#f9f9fb",slate3:"#f0f0f3",slate4:"#e8e8ec",slate5:"#e0e1e6",slate6:"#d9d9e0",slate7:"#cdced6",slate8:"#b9bbc6",slate9:"#8b8d98",slate10:"#80838d",slate11:"#60646c",slate12:"#1c2024"},Pt={mint1:"#f9fefd",mint2:"#f2fbf9",mint3:"#ddf9f2",mint4:"#c8f4e9",mint5:"#b3ecde",mint6:"#9ce0d0",mint7:"#7ecfbd",mint8:"#4cbba5",mint9:"#86ead4",mint10:"#7de0cb",mint11:"#027864",mint12:"#16433c"},ma={orange1:"#fefcfb",orange2:"#fff7ed",orange3:"#ffefd6",orange4:"#ffdfb5",orange5:"#ffd19a",orange6:"#ffc182",orange7:"#f5ae73",orange8:"#ec9455",orange9:"#f76b15",orange10:"#ef5f00",orange11:"#cc4e00",orange12:"#582d1d"};function H0(e,t,n){return{...n,layer:[{mark:{type:"bar",color:Pt.mint11},encoding:{x:{field:e,type:"quantitative",bin:!0},y:{aggregate:"count",type:"quantitative",axis:null}}},{mark:{type:"bar",opacity:0},encoding:{x:{field:e,type:"quantitative",bin:!0,axis:{title:null,labelFontSize:8.5,labelOpacity:.5,labelExpr:"(datum.value >= 10000 || datum.value <= -10000) ? format(datum.value, '.2e') : format(datum.value, '.2~f')"}},y:{aggregate:"max",type:"quantitative",axis:null},tooltip:[{field:e,type:"quantitative",bin:!0,title:e,format:t},{aggregate:"count",type:"quantitative",title:"Count",format:",d"}]}}]}}function B0(e,t,n,r){let o=t==="date"?"%Y-%m-%d":t==="time"?"%H:%M:%S":"%Y-%m-%dT%H:%M:%S";return{...n,layer:[{mark:{type:"bar",color:Pt.mint11},encoding:{x:{field:e,type:"temporal",axis:null,bin:!0,scale:r},y:{aggregate:"count",type:"quantitative",axis:null},color:{condition:{test:`datum["bin_maxbins_10_${e}_range"] === "null"`,value:ma.orange11},value:Pt.mint11}}},{mark:{type:"bar",opacity:0},encoding:{x:{field:e,type:"temporal",axis:null,bin:!0,scale:r},y:{aggregate:"max",type:"quantitative",axis:null},tooltip:[{field:`bin_maxbins_10_${e}`,type:"temporal",format:o,bin:{binned:!0},title:`${e} (start)`},{field:`bin_maxbins_10_${e}_end`,type:"temporal",format:o,bin:{binned:!0},title:`${e} (end)`},{aggregate:"count",type:"quantitative",title:"Count",format:",d"}],color:{condition:{test:`datum["bin_maxbins_10_${e}_range"] === "null"`,value:ma.orange11},value:Pt.mint11}}}]}}function G0(e,t,n){return{...t,mark:{type:"bar",color:Pt.mint11},encoding:{y:{field:e,type:"nominal",axis:{labelExpr:"datum.label === 'true' || datum.label === 'True' ? 'True' : 'False'",tickWidth:0,title:null,labelColor:vr.slate9}},x:{aggregate:"count",type:"quantitative",axis:null,scale:{type:"linear"}},tooltip:[{field:e,type:"nominal",title:"Value"},{aggregate:"count",type:"quantitative",title:"Count",format:",d"}]},layer:[{mark:{type:"bar",color:Pt.mint11,height:n}},{mark:{type:"text",align:"left",baseline:"middle",dx:3,color:vr.slate9},encoding:{text:{aggregate:"count",type:"quantitative"}}}]}}var W0="ARROW1";nx("arrow",Cx);function q0(e){let t,n;if(typeof e=="string")if(e.startsWith("./@file")||e.startsWith("/@file"))t={url:$y(e).href},n="source_0";else if(lb(e)){n="data_0";let r=ab(e),o=window.atob(r);t=o.startsWith(W0)?{values:ob(r),format:{type:"arrow"}}:{values:Aa(o)}}else t={values:Aa(e)},n="data_0";else t={values:e},n="source_0";return{dataSpec:t,sourceName:n}}function K0(e){return{align:0,paddingInner:0,paddingOuter:{expr:`length(data('${e}')) == 2 ? 1 : length(data('${e}')) == 3 ? 0.5 : length(data('${e}')) == 4 ? 0 : 0`}}}var Ts="%-I:%M:%S %p";function U0(e){var n;if(e.length===0)return{};let t=(n=e.find(r=>r.bin_start!==null))==null?void 0:n.bin_start;if(!t||typeof t=="number"&&t.toString().length===4)return{};if(typeof t=="string"&&t.length===8)return{type:"temporal",timeUnit:"hoursminutesseconds",format:Ts};if(typeof t=="string"&&t.length===10)return{type:"temporal",timeUnit:"yearmonthdate"};if(typeof t=="string"&&t.length===19){let r=t,o=e[e.length-1].bin_end;try{let a=new Date(r);if(new Date(o).getTime()-a.getTime()<1e3*60*60*24)return{type:"temporal",timeUnit:"hoursminutesseconds",format:Ts}}catch(a){ot.debug("Error parsing date",a)}return{type:"temporal",timeUnit:"yearmonthdatehoursminutes"}}return ot.debug("Unknown time unit",t),{type:"temporal",timeUnit:"yearmonthdate"}}function J0(e){if(e.length===0)return 1;let t=e.filter(c=>c.bin_start!==null&&c.bin_end!==null);if(t.length===0)return 1;let n=t[0].bin_start,r=t[0].bin_end,o,a;if(typeof n=="number"&&typeof r=="number"){let c=t[0],u=t[t.length-1];o=c.bin_start,a=u.bin_end}else if(typeof n=="string"||typeof r=="string"){let c=t[0],u=t[t.length-1],m=new Date(c.bin_start).getTime(),p=new Date(u.bin_end).getTime();o=m,a=p}else{let c=t[0],u=t[t.length-1];o=c.bin_start.getTime(),a=u.bin_end.getTime()}let l=a-o;if(l===0)return 1;let i=l/t.length;return Math.max(i,1)}let pa,Os,wr,fa,ga,Qe,Sr,_n,Vs;pa=20,Os=.1,wr=30,fa=70,ga=5,Qe=Pt.mint11,Sr=.6,_n=ma.orange11,nl=(Et=class{constructor(t,n,r,o,a,l){An(this,"columnStats",new Map);An(this,"columnBinValues",new Map);An(this,"columnValueCounts",new Map);this.fieldTypes=n,this.stats=r,this.binValues=o,this.valueCounts=a,this.opts=l,this.columnBinValues=new Map(Object.entries(o)),this.columnValueCounts=new Map(Object.entries(a)),this.columnStats=new Map(Object.entries(r));let{dataSpec:i,sourceName:c}=q0(t);this.dataSpec=i,this.legacyDataSpec=i,this.legacySourceName=c}getColumnStats(t){return this.columnStats.get(t)}getHeaderSummary(t){return{stats:this.columnStats.get(t),type:this.fieldTypes[t],spec:this.opts.includeCharts?this.getVegaSpec(t):void 0}}createBase(t){return{background:"transparent",data:t,config:{view:{stroke:"transparent"},axis:{domain:!1}},height:100}}getVegaSpec(t){let n=this.columnBinValues.get(t),r=this.columnValueCounts.get(t),o=r&&r.length>0,a=this.dataSpec,l=this.columnStats.get(t);o?a={values:r,name:"value_counts"}:(l!=null&&l.nulls&&(n==null||n.push({bin_start:null,bin_end:null,count:l.nulls})),a={values:n,name:"bin_values"});let i=this.createBase(a),c=this.fieldTypes[t];switch(t=t.replaceAll(".","\\."),t=t.replaceAll("[","\\[").replaceAll("]","\\]"),t=t.replaceAll(":","\\:"),c){case"date":case"datetime":case"time":{if(!n){let p=this.createBase(this.legacyDataSpec),d=K0(this.legacySourceName);return B0(t,c,p,d)}let u=U0(n||[]);if((n==null?void 0:n.length)===1)return{...i,mark:{type:"bar",color:Qe},encoding:{x:{field:"bin_start",type:"nominal",axis:null},y:{field:"count",type:"quantitative",axis:null},tooltip:[{field:"bin_start",type:"temporal",...u,title:`${t} (start)`},{field:"bin_end",type:"temporal",...u,title:`${t} (end)`}]}};let m={width:fa+ga,height:wr,layer:[{mark:{type:"bar",color:Qe},params:[{name:"hover",select:{type:"point",on:"mouseover",clear:"mouseout"}}],encoding:{x:{field:"bin_start",type:"ordinal",axis:null},y:{field:"count",type:"quantitative",axis:null},color:{condition:{test:"datum['bin_start'] === null && datum['bin_end'] === null",value:_n},value:Qe},opacity:{condition:[{param:"hover",value:1}],value:Sr}}},{mark:{type:"bar",opacity:0,width:{band:1.2}},encoding:{x:{field:"bin_start",type:"ordinal",axis:null},y:{aggregate:"max",type:"quantitative",axis:null},tooltip:[{field:"bin_start",type:"temporal",...u,title:`${t} (start)`},{field:"bin_end",type:"temporal",...u,title:`${t} (end)`},{field:"count",type:"quantitative",title:"Count",format:",d"}]}}]};return{...i,...m}}case"integer":case"number":{let u=c==="integer"?",d":".2f";if(!n){let h=this.createBase(this.legacyDataSpec);return H0(t,u,h)}let m=J0(n||[]),p={height:wr,width:fa,layer:[{mark:{type:"bar",color:Qe},encoding:{x:{field:"bin_start",type:"quantitative",bin:{binned:!0,step:m}},x2:{field:"bin_end",axis:null},y:{field:"count",type:"quantitative",axis:null},opacity:{condition:[{param:"hover",value:1}],value:Sr}}},{mark:{type:"bar",opacity:0},params:[{name:"hover",select:{type:"point",on:"mouseover",clear:"mouseout"}}],encoding:{x:{field:"bin_start",type:"quantitative",bin:{binned:!0,step:m},axis:{title:null,labelFontSize:8.5,labelOpacity:.5,labelExpr:"(datum.value >= 10000 || datum.value <= -10000) ? format(datum.value, '.2e') : format(datum.value, '.2~f')",values:[l==null?void 0:l.min,l==null?void 0:l.p25,l==null?void 0:l.median,l==null?void 0:l.p75,l==null?void 0:l.p95,l==null?void 0:l.max].filter(h=>h!==void 0)}},x2:{field:"bin_end_extended"},y:{aggregate:"max",type:"quantitative",axis:null},tooltip:[{field:"bin_range",type:"nominal",title:t},{field:"count",type:"quantitative",title:"Count",format:",d"}]},transform:[{calculate:`format(datum.bin_start, '${u}') + ' - ' + format(datum.bin_end, '${u}')`,as:"bin_range"},{calculate:`datum.bin_end + ${m*Os}`,as:"bin_end_extended"}]}]},d={height:wr,width:ga,layer:[{mark:{type:"bar",color:_n},encoding:{x:{field:"bin_start",type:"nominal",axis:null},y:{field:"count",type:"quantitative",axis:null}}},{mark:{type:"bar",opacity:0},encoding:{x:{field:"bin_start",type:"nominal",axis:null},y:{aggregate:"max",type:"quantitative",axis:null},tooltip:[{field:"count",type:"quantitative",title:"nulls",format:",d"}]}}],transform:[{filter:"datum['bin_start'] === null && datum['bin_end'] === null"}]},g=p,f=i;return l!=null&&l.nulls&&(f={...i,config:{...i.config,concat:{spacing:0}},resolve:{scale:{y:"shared"}}},g={hconcat:[d,p]}),{...f,...g}}case"boolean":{if(!(l!=null&&l.true)||!(l!=null&&l.false))return G0(t,i,pa);let u=l!=null&&l.nulls?11:pa,m=[{value:"true",count:l.true},{value:"false",count:l.false}];l!=null&&l.nulls&&m.push({value:"null",count:l.nulls});let p={field:"count",type:"quantitative",format:",d"},d=[],g=Number(l.total)||Number(l.true)+Number(l.false)+Number(l.nulls);return Number.isNaN(g)||(p={field:"count_with_percent",type:"nominal",title:"Count"},d=[{calculate:`format(datum.count, ',d') + ' (' + format(datum.count / ${g} * 100, '.1f') + '%)'`,as:"count_with_percent"}]),{...i,data:{values:m,name:"boolean_values"},mark:{type:"bar",color:Qe},encoding:{y:{field:"value",type:"nominal",sort:["true","false","null"],scale:l!=null&&l.nulls?{paddingInner:1}:void 0,axis:{labelExpr:"datum.label === 'true' || datum.label === 'True' ? 'True' : datum.label === 'false' || datum.label === 'False' ? 'False' : 'Null'",tickWidth:0,title:null,labelColor:vr.slate9}},x:{field:"count",type:"quantitative",axis:null,scale:{type:"linear"}},color:{field:"value",type:"nominal",scale:{domain:["true","false","null"],range:[Qe,Qe,_n]},legend:null},tooltip:[{field:"value",type:"nominal",title:t},p]},transform:d,layer:[{mark:{type:"bar",color:Qe,height:u}},{mark:{type:"text",align:"left",baseline:"middle",dx:3,color:vr.slate9},encoding:{text:{field:"count",type:"quantitative",format:",d"}}}]}}case"string":{if(!o)return null;let u=Number(l==null?void 0:l.total)||r.reduce((v,b)=>v+b.count,0),m="value",p=[],d=0;for(let v of r){let b=d+v.count,S=(d+b)/2,x=(b-d)/u;p.push({count:v.count,value:v.value,xStart:d,xEnd:b,xMid:S,proportion:x}),d=b}let g=[{calculate:u?`datum.count / ${u}`:"0",as:"percent"}],f={mark:{type:"bar"},params:[{name:"hover_bar",select:{type:"point",on:"mouseover",clear:"mouseout"}}],encoding:{x:{field:"xStart",type:"quantitative",axis:null},x2:{field:"xEnd",type:"quantitative"},color:{condition:{test:`datum.${m} == "None" || datum.${m} == "null"`,value:_n},value:Qe},opacity:{condition:[{param:"hover_bar",value:1}],value:Sr},tooltip:[{field:m,type:"nominal",title:t},{field:"count_with_percent",type:"nominal",title:"Count"}]},transform:[{calculate:`format(datum.count, ',d') + ' (' + format(datum.count / ${u} * 100, '.1f') + '%)'`,as:"count_with_percent"}]},h={mark:{type:"text",color:"white",fontSize:8.5,ellipsis:" ",clip:!0},encoding:{x:{field:"xMid",type:"quantitative",axis:null},text:{field:"clipped_text"}},transform:[{calculate:`datum.proportion > 0.5 ? slice(datum.${m}, 0, 8) : datum.proportion > 0.2 ? slice(datum.${m}, 0, 3) : datum.proportion > 0.1 ? slice(datum.${m}, 0, 1) : ''`,as:"clipped_text"}]};return{...i,data:{values:p,name:"value_counts"},layer:[f,h],transform:g}}case"unknown":return null;default:return kt(c),null}}},An(Et,"EMPTY",new Et([],{},{},{},{},{includeCharts:!1})),Et),Vs=K(),wl=w.createContext(nl.EMPTY);var X0=My();const Y0=e=>{let t=(0,Vs.c)(21),{columnId:n}=e,{locale:r}=ft(),o=w.use(wl),{theme:a}=za(),l,i,c;if(t[0]!==o||t[1]!==n||t[2]!==r||t[3]!==a){let{spec:m,type:p,stats:d}=o.getHeaderSummary(n),g=null;if(m){let v;t[7]===n?v=t[8]:(v=(0,s.jsx)(L0,{seed:n,width:80,height:40}),t[7]=n,t[8]=v);let b=v,S=a==="dark"?"dark":"vox",x;t[9]===S?x=t[10]:(x={width:80,height:30,renderer:"svg",actions:!1,theme:S,loader:X0,mode:"vega-lite"},t[9]=S,t[10]=x);let C;t[11]===Symbol.for("react.memo_cache_sentinel")?(C={minWidth:"unset",maxHeight:"40px"},t[11]=C):C=t[11];let k=(0,s.jsx)(w.Suspense,{fallback:b,children:(0,s.jsx)(Br,{spec:m,options:x,style:C})}),j;t[12]!==b||t[13]!==k?(j=(0,s.jsx)(Xa,{milliseconds:200,visibility:!0,rootMargin:"200px",fallback:b,children:k}),t[12]=b,t[13]=k,t[14]=j):j=t[14],g=j}let f;t[15]===r?f=t[16]:(f=(v,b)=>(0,s.jsx)(Es,{date:v,type:b,children:Kb(v,b,r)}),t[15]=r,t[16]=f);let h=f;l="flex flex-col items-center text-xs text-muted-foreground align-end",i=g,c=(()=>{if(!d)return null;switch(p){case"date":case"datetime":return m?(0,s.jsxs)("div",{className:"flex justify-between w-full px-2 whitespace-pre",children:[(0,s.jsx)("span",{children:h(d.min,p)}),d.min===d.max?null:(0,s.jsxs)("span",{children:["-",h(d.max,p)]})]}):(0,s.jsxs)("div",{className:"flex flex-col whitespace-pre",children:[(0,s.jsxs)("span",{children:["min: ",h(d.min,p)]}),(0,s.jsxs)("span",{children:["max: ",h(d.max,p)]}),(0,s.jsxs)("span",{children:["unique: ",Pe(d.unique,r)]})]});case"integer":case"number":return m?null:(0,s.jsxs)("div",{className:"flex flex-col whitespace-pre",children:[(0,s.jsxs)("span",{children:["min:"," ",typeof d.min=="number"?Ga(d.min,{shouldRound:!0,locale:r}):d.min]}),(0,s.jsxs)("span",{children:["max:"," ",typeof d.max=="number"?Ga(d.max,{shouldRound:!0,locale:r}):d.max]}),(0,s.jsxs)("span",{children:["unique: ",Pe(d.unique,r)]})]});case"boolean":return m?null:(0,s.jsxs)("div",{className:"flex flex-col whitespace-pre",children:[(0,s.jsxs)("span",{children:["true: ",Pe(d.true,r)]}),(0,s.jsxs)("span",{children:["false: ",Pe(d.false,r)]})]});case"time":return null;case"string":return m?null:(0,s.jsx)("div",{className:"flex flex-col whitespace-pre",children:(0,s.jsxs)("span",{children:["unique: ",Pe(d.unique,r)]})});case"unknown":return(0,s.jsx)("div",{className:"flex flex-col whitespace-pre",children:(0,s.jsxs)("span",{children:["nulls: ",Pe(d.nulls,r)]})});default:return kt(p),null}})(),t[0]=o,t[1]=n,t[2]=r,t[3]=a,t[4]=l,t[5]=i,t[6]=c}else l=t[4],i=t[5],c=t[6];let u;return t[17]!==l||t[18]!==i||t[19]!==c?(u=(0,s.jsxs)("div",{className:l,children:[i,c]}),t[17]=l,t[18]=i,t[19]=c,t[20]=u):u=t[20],u},Z0={getInitialState:e=>({columnWrapping:{},...e}),getDefaultOptions:e=>({enableColumnWrapping:!0,onColumnWrappingChange:fe("columnWrapping",e)}),createColumn:(e,t)=>{e.getColumnWrapping=()=>t.getState().columnWrapping[e.id]||"nowrap",e.getCanWrap=()=>t.options.enableColumnWrapping??!1,e.toggleColumnWrapping=n=>{var r,o;(o=(r=t.options).onColumnWrappingChange)==null||o.call(r,a=>{let l=a[e.id]||"nowrap";return n?{...a,[e.id]:n}:{...a,[e.id]:l==="nowrap"?"wrap":"nowrap"}})}}};var Q0=K();const eh=e=>{let t=(0,Q0.c)(6),{value:n}=e,r;t[0]!==n.data||t[1]!==n.mimetype?(r={channel:"output",data:n.data,mimetype:n.mimetype,timestamp:0},t[0]=n.data,t[1]=n.mimetype,t[2]=r):r=t[2];let o=r,a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=O("flex items-center space-x-2"),t[3]=a):a=t[3];let l;return t[4]===o?l=t[5]:(l=(0,s.jsx)("div",{className:a,children:(0,s.jsx)(_t,{message:o})}),t[4]=o,t[5]=l),l};function ha(e){return typeof e=="object"&&!!e&&"mimetype"in e&&"data"in e}Ua=function(e){if(ha(e))return[e];if(typeof e=="object"&&e&&("_serialized_mime_bundle"in e||"serialized_mime_bundle"in e)){let t=e,n=t._serialized_mime_bundle||t.serialized_mime_bundle;if(ha(n))return[n]}if(Array.isArray(e)&&e.every(ha))return e.map(t=>t)};function th(e,t){if(e.length<=t)return e;let n=[],r=e.length/t;for(let a=0;a{let t=(0,ya.c)(14),{url:n}=e,[r,o]=(0,w.useState)(!1),[a,l]=(0,w.useState)(!1);if(r){let f;return t[0]===n?f=t[1]:(f=(0,s.jsx)(Ds,{url:n}),t[0]=n,t[1]=f),f}let i,c;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>l(!0),c=()=>l(!1),t[2]=i,t[3]=c):(i=t[2],c=t[3]);let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=()=>o(!0),t[4]=u):u=t[4];let m;t[5]===n?m=t[6]:(m=(0,s.jsx)(La,{asChild:!0,children:(0,s.jsx)("div",{className:"flex max-h-[80px] overflow-hidden cursor-pointer",onMouseEnter:i,onMouseLeave:c,children:(0,s.jsx)("img",{src:n,alt:"URL preview",className:"object-contain rounded max-h-[80px]",onError:u})})}),t[5]=n,t[6]=m);let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=()=>o(!0),t[7]=p):p=t[7];let d;t[8]===n?d=t[9]:(d=(0,s.jsx)(Ha,{className:"z-50 p-2 bg-popover rounded-md shadow-lg border w-fit",align:"start",side:"right",children:(0,s.jsx)("img",{src:n,alt:"URL preview",className:"object-contain max-h-[500px] rounded",onError:p})}),t[8]=n,t[9]=d);let g;return t[10]!==a||t[11]!==m||t[12]!==d?(g=(0,s.jsxs)(Ba,{open:a,onOpenChange:l,children:[m,d]}),t[10]=a,t[11]=m,t[12]=d,t[13]=g):g=t[13],g};function rh(e){let t=Dy.lexer(e),n=new Set(["space","code","fences","heading","hr","link","blockquote","list","html","def","table","lheading","escape","tag","reflink","strong","codespan","url"]);return t.some(r=>n.has(r.type))}const oh=e=>{let t=(0,ya.c)(4),{content:n,parts:r}=e;if(rh(n)){let a;return t[0]===n?a=t[1]:(a=(0,s.jsx)(ib,{content:n}),t[0]=n,t[1]=a),a}let o;return t[2]===r?o=t[3]:(o=(0,s.jsx)(zs,{parts:r}),t[2]=r,t[3]=o),o},zs=({parts:e})=>e.map((t,n)=>t.type==="url"?(0,s.jsx)(Ds,{url:t.url},n):t.type==="image"?(0,s.jsx)(nh,{url:t.url},n):t.value);var Ds=e=>{let t=(0,ya.c)(3),{url:n}=e,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=pt.stopPropagation(),t[0]=r):r=t[0];let o;return t[1]===n?o=t[2]:(o=(0,s.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:r,className:"text-link hover:underline",children:n}),t[1]=n,t[2]=o),o},ah=50,lh="__select__";function Ls(e){return typeof e=="string"?["string","string"]:typeof e=="number"?["number","number"]:e instanceof Date?["datetime","datetime"]:typeof e=="boolean"?["boolean","boolean"]:["unknown","object"]}Sl=function(e){if(e.length===0||typeof e[0]!="object")return[];let t={};return th(e,10).forEach(n=>{typeof n!="object"||!n||Object.entries(n).forEach(([r,o])=>{t[r]||(t[r]=Ls(o)),o!=null&&(t[r]=Ls(o))})}),Er.entries(t)},vu="__m_column__",sl=function({rowHeaders:e,selection:t,fieldTypes:n,chartSpecModel:r,textJustifyColumns:o,wrappedColumns:a,headerTooltip:l,showDataTypes:i,calculateTopKRows:c}){let u=new Set(e.map(([h])=>h)),m=nb.keyBy(n,h=>h[0]),p=h=>{var S,x;let v=(S=m.get(h))==null?void 0:S[1],b=u.has(h);if(b||!v){let C=(x=e.find(([k])=>k===h))==null?void 0:x[1];return{rowHeader:b,dtype:C==null?void 0:C[1],dataType:C==null?void 0:C[0]}}return{rowHeader:b,filterType:sh(v[0]),dtype:v[1],dataType:v[0]}},d=[...u,...n.map(([h])=>h)],g=d.indexOf(Wr);g!==-1&&d.splice(g,1);let f=d.map((h,v)=>({id:h||`__m_column__${v}`,accessorFn:b=>b[h],header:({column:b,table:S})=>{var F;let x=r==null?void 0:r.getColumnStats(h),C=(F=b.columnDef.meta)==null?void 0:F.dtype,k=l==null?void 0:l[h],j=i&&C?(0,s.jsxs)("div",{className:"flex flex-row gap-1",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:C}),x&&typeof x.nulls=="number"&&x.nulls>0&&(0,s.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(nulls: ",x.nulls,")"]})]}):null,_=(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:O("font-bold",k&&"underline decoration-dotted"),children:h===""?" ":h}),j]}),R=(0,s.jsx)(ml,{header:k?(0,s.jsx)(ze,{content:k,delayDuration:300,children:_}):_,column:b,calculateTopKRows:c,table:S});return u.has(h)?R:(0,s.jsxs)("div",{className:"flex flex-col h-full pt-0.5 pb-3 justify-between items-start",children:[R,(0,s.jsx)(Y0,{columnId:h})]})},cell:({column:b,renderValue:S,getValue:x,cell:C})=>{var y;function k(){var N;t!=="single-cell"&&t!=="multi-cell"||((N=C.toggleSelected)==null||N.call(C))}let j=o==null?void 0:o[h],_=a==null?void 0:a.includes(h),R=((y=C==null?void 0:C.getIsSelected)==null?void 0:y.call(C))||!1,F=tl({column:b,renderValue:S,getValue:x,selectCell:k,cellStyles:ch(j,_,(t==="single-cell"||t==="multi-cell")&&!R,R)});return u.has(h)?(0,s.jsx)("b",{children:F}):F},filterFn:void 0,enableSorting:!!h,meta:p(h)}));return(t==="single"||t==="multi")&&f.unshift({id:lh,maxSize:40,header:({table:h})=>t==="multi"?(0,s.jsx)(Pr,{"data-testid":"select-all-checkbox",checked:h.getIsAllPageRowsSelected(),onCheckedChange:v=>h.toggleAllPageRowsSelected(!!v),"aria-label":"Select all",className:"mx-1.5 my-4"}):null,cell:({row:h})=>(0,s.jsx)(Pr,{"data-testid":"select-row-checkbox",checked:h.getIsSelected(),onCheckedChange:v=>h.toggleSelected(!!v),"aria-label":"Select row",className:"mx-2",onMouseDown:v=>{v.stopPropagation()}}),enableSorting:!1,enableHiding:!1}),f};var Hs=({cellStyles:e,selectCell:t,rawStringValue:n,contentClassName:r,buttonText:o,wrapped:a,children:l})=>(0,s.jsx)(yl,{container:null,children:(0,s.jsxs)(Ba,{children:[(0,s.jsx)(La,{className:O(e,"max-w-fit outline-hidden"),onClick:t,onMouseDown:i=>{i.stopPropagation()},children:(0,s.jsx)("span",{className:O("cursor-pointer hover:text-link",a&&"whitespace-pre-wrap min-w-[200px]"),title:n,children:n})}),(0,s.jsxs)(Ha,{className:r,align:"start",alignOffset:10,children:[(0,s.jsxs)("div",{className:"absolute top-2 right-2",children:[(0,s.jsx)(rx,{value:n,className:"w-2.5 h-2.5",tooltip:!1}),(0,s.jsx)(Zb,{children:(0,s.jsx)(de,{variant:"link",size:"xs",children:o??"Close"})})]}),l]})]})});function ih(e){return e==null?!0:typeof e!="object"}function sh(e){if(e!==void 0)switch(e){case"string":return"text";case"number":return"number";case"integer":return"number";case"date":return"date";case"datetime":return"datetime";case"time":return"time";case"boolean":return"boolean";default:return}}function ch(e,t,n,r){return O(n&&"cursor-pointer",r&&"relative before:absolute before:inset-0 before:bg-(--blue-3) before:rounded before:-z-10 before:mx-[-4px] before:my-[-2px]","w-full","text-left","truncate",e==="center"&&"text-center",e==="right"&&"text-right",t&&"whitespace-pre-wrap min-w-[200px] break-words")}function Bs(e){if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}}function Gs({value:e,dataType:t,dtype:n,format:r,locale:o}){let a=t==="date"?"date":"datetime",l=R0(n);return(0,s.jsx)(Es,{date:e,type:a,children:r?Wb(e,r):Ub(e,l,o)})}tl=function({column:e,renderValue:t,getValue:n,selectCell:r,cellStyles:o}){var p,d,g,f;let a=n(),l=(p=e.getColumnFormatting)==null?void 0:p.call(e),i=(d=e.columnDef.meta)==null?void 0:d.dataType,c=(g=e.columnDef.meta)==null?void 0:g.dtype,u=((f=e.getColumnWrapping)==null?void 0:f.call(e))==="wrap";if(i==="datetime"&&typeof a=="string")try{if(!ru(a))return(0,s.jsx)("div",{onClick:r,className:o,children:a});let h=new Date(a),v=qb(a);return(0,s.jsx)(ys,{children:b=>Gs({value:h,dataType:i,dtype:c,format:v,locale:b})})}catch(h){ot.error("Error parsing datetime, fallback to string",h)}if(a instanceof Date)return ru(a)?(0,s.jsx)(ys,{children:h=>Gs({value:a,dataType:i,dtype:c,locale:h})}):(0,s.jsx)("div",{onClick:r,className:o,children:a.toString()});if(typeof a=="string"){let h=String(l?e.applyColumnFormatting(a):t()),v=Mb(h);return v.every(b=>b.type!=="text")||h.length(0,s.jsx)(eh,{value:h},v))}):Array.isArray(a)||typeof a=="object"?(0,s.jsx)(Hs,{cellStyles:o,selectCell:r,rawStringValue:Bs(a),wrapped:u,children:(0,s.jsx)(on,{data:a,format:"tree",className:"max-h-64"})}):(0,s.jsx)("div",{onClick:r,className:o,children:Bs(a)})};const uh=({value:e})=>{let{locale:t}=ft();return Xb({maximumFractionDigits:ex(t)}).format(e)},dh={getInitialState:e=>({...e,cellHoverTemplate:null})};function mh(e){return br(e)??e.id}const ph={getInitialState:e=>({...e,cellHoverTexts:{}}),createCell:(e,t,n,r)=>{e.getHoverTitle=()=>{var l;let o=r.getState().cellHoverTexts,a=mh(n);return((l=o==null?void 0:o[a])==null?void 0:l[t.id])??void 0}}};function Ws(e){return br(e)??e.id}const fh={getInitialState:e=>({...e,cellSelection:[]}),getDefaultOptions:e=>({onCellSelectionChange:fe("cellSelection",e),enableCellSelection:!1}),createTable:e=>{e.setCellSelection=t=>{var n,r;e.setState(o=>({...o,cellSelection:Ay.asUpdater(t)(o.cellSelection)})),(r=(n=e.options).onCellSelectionChange)==null||r.call(n,t)},e.resetCellSelection=t=>{e.setCellSelection&&e.setCellSelection(()=>t??[])}},createCell:(e,t,n,r)=>{e.getIsSelected=()=>(r.getState().cellSelection??[]).some(o=>o.rowId===Ws(n)&&o.columnName===t.id),e.toggleSelected=o=>{var u;if(!r.setCellSelection)return;let a=t.id,l=((u=e.getIsSelected)==null?void 0:u.call(e))||!1,i=o===void 0?!l:o,c=Ws(n);i&&!l?r.options.enableMultiCellSelection?r.setCellSelection(m=>[{rowId:c,columnName:a},...m]):r.setCellSelection(m=>[{rowId:c,columnName:a}]):l&&!i&&(r.options.enableMultiCellSelection?r.setCellSelection(m=>m.filter(p=>!(p.rowId===c&&p.columnName===a))):r.setCellSelection(m=>[]))}}};function gh(e){return br(e)??e.id}const hh={getInitialState:e=>({...e,cellStyling:{}}),createCell:(e,t,n,r)=>{e.getUserStyling=()=>{var l;let o=r.getState().cellStyling,a=gh(n);return((l=o==null?void 0:o[a])==null?void 0:l[t.id])||{}}}},yh={getDefaultOptions:e=>({enableCopyColumn:!0}),createColumn:(e,t)=>{e.getCanCopy=()=>t.options.enableCopyColumn??!1}},bh=({filters:e,table:t})=>{let n=Hr({hour:"2-digit",minute:"2-digit",second:"2-digit"});if(!e||e.length===0)return null;function r(o){let a=xh(o.value,n);return a?(0,s.jsxs)(Ab,{variant:"secondary",className:"dark:invert",children:[o.id," ",a," ",(0,s.jsx)("span",{className:"cursor-pointer opacity-60 hover:opacity-100 pl-1 py-[2px]",onClick:()=>{t.setColumnFilters(l=>l.filter(i=>i.id!==o.id))},children:(0,s.jsx)(qc,{className:"w-3.5 h-3.5"})})]},o.id):null}return(0,s.jsx)("div",{className:"flex flex-wrap gap-2 px-1",children:e.map(r)})};function xh(e,t){var n,r,o,a;if("type"in e){if(e.operator==="is_null")return"is null";if(e.operator==="is_not_null")return"is not null";if(e.type==="number")return Cr(e.min,e.max);if(e.type==="date")return Cr((n=e.min)==null?void 0:n.toISOString(),(r=e.max)==null?void 0:r.toISOString());if(e.type==="time")return Cr(e.min?t.format(e.min):void 0,e.max?t.format(e.max):void 0);if(e.type==="datetime")return Cr((o=e.min)==null?void 0:o.toISOString(),(a=e.max)==null?void 0:a.toISOString());if(e.type==="boolean")return`is ${e.value?"True":"False"}`;if(e.type==="select"){let l=e.options.map(i=>kn({value:i}));return`${e.operator==="in"?"is in":"not in"} [${l.join(", ")}]`}if(e.type==="text")return`contains "${e.text}"`;kt(e)}}function Cr(e,t){if(!(e===void 0&&t===void 0))return e===t?`== ${e}`:e===void 0?`<= ${t}`:t===void 0?`>= ${e}`:`${e} - ${t}`}const vh={getInitialState:e=>({...e,focusedRowIdx:-1}),getDefaultOptions:e=>({enableFocusRow:!0,onFocusRowChange:fe("focusedRowIdx",e)}),createRow:(e,t)=>{e.focusRow=n=>{var r,o;(o=(r=t.options).onFocusRowChange)==null||o.call(r,n)},e.getFocusedRowIdx=()=>t.getState().focusedRowIdx}};var wh=(e,t)=>e===t;vl=function(e,t=wh){let[n,r]=(0,w.useState)(e),o=(0,w.useRef)(e);return t(o.current,e)||(r(e),o.current=e),[n,r]};function Sh(e,t){let[n,r]=vl({left:qs(e),right:t},my);return{columnPinning:n,setColumnPinning:o=>{r(a=>{let l=typeof o=="function"?o(a):o;return{left:qs(l.left),right:l.right}})}}}function qs(e){return!e||e.length===0?[]:e.includes("__select__")?e:[Za,...e]}function Ks(e,t){let n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function jr(e){return"write"in e}var kr=new WeakMap,Ch={},{read:ba,write:Us}=jt(null);function et(e,t,n){let[r,o,a,,l]=e,i=r.get(t);if(i)return i;if(n===e){let p=o.get(t);return p||(p=[Rn(e,t,n),n],o.set(t,p)),p}let c=n??Ch,u=a.get(c);u||(u=new WeakMap,a.set(c,u));let m=u.get(t);if(!m){let[p,d]=l?et(l,t,n):[t];m=[t.read===ba?p:Rn(e,t,d),d],u.set(t,m)}return m}function Js(e){for(let t of e[5])t()}function Xs(e,t,n,r,o){if(n.read===ba&&jr(n)&&jr(t)&&n.write!==Us&&e!==r){let{write:a}=n;return t.write=Ys(e,n.write.bind(n),r,o),()=>{t.write=a}}}function jh(e,t,n){return function(r,o){return t(function(a){let[l]=et(e,a,n);return r(l)},o)}}function Ys(e,t,n,r=n){return function(o,a,...l){return t(function(i){let[c]=et(e,i,n);return o(c)},function(i,...c){let[u]=et(e,i,n),m=Xs(e,u,i,n,r);try{return a(u,...c)}finally{m==null||m()}},...l)}}function Rn(e,t,n){let r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(l=>["read","write","debugLabel"].includes(l)).forEach(l=>r[l].configurable=!0);let o=Object.getPrototypeOf(t),a=Object.create(o,r);return a.read!==ba&&(a.read=jh(e,t.read.bind(t),n)),jr(a)&&jr(t)&&a.write!==Us&&(a.write=Ys(e,t.write.bind(t),n)),a}function kh({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){let o=new WeakSet(e),a=kr.get(n),l=(a==null?void 0:a[3])??n,i=[new WeakMap,new WeakMap,new WeakMap,l,a,new Set,void 0],c=i[0],u=i[5],m=_h(i);i[6]=m,Object.assign(m,{name:r}),kr.set(m,i);for(let p of new Set(e))c.set(p,[Rn(i,p,i),i]);for(let p of new Set(t)){for(let g of p.getParams()){let f=p(g);c.has(f)||c.set(f,[Rn(i,f,i),i])}let d=p.unstable_listen(({type:g,atom:f})=>{g==="CREATE"&&!c.has(f)?c.set(f,[Rn(i,f,i),i]):g==="REMOVE"&&!o.has(f)&&c.delete(f)});u.add(d)}return m}function _h(e){let t=e[3],n=[...uy(t)],r=n[21],o=n[22],a=n[23],l=n[9],i={};n[9]=(x,C)=>l(c,C),n[21]=f(r),n[22]=d,n[23]=f(a),n[24]=([...x])=>{let C=[h(x[0],u),h(x[1],m),h(x[2]),v(x[3]),x[4],x[5],S(x[6]),f(x[7]),f(x[8]),x[9],f(x[10]),f(x[11],k=>p(C[0],k)),x[12],x[13],f(x[14]),f(x[15]),f(x[16]),f(x[17]),f(x[18]),f(x[19]),f(x[20]),f(x[21]),f(x[22]),f(x[23]),()=>x];return C};let c=dy(...n);return c;function u(x){let C=new WeakMap;return function(k){let j=C.get(k);if(j)return j;let _=x(k);if(_)return j={..._,d:h(_.d,function(R){return F=>R(et(e,F)[0])}),p:v(_.p),get n(){return _.n},set n(R){_.n=R},get v(){return _.v},set v(R){_.v=R},get e(){return _.e},set e(R){_.e=R}},C.set(k,j),j}}function m(x){let C=new WeakMap;return function(k){let j=C.get(k);if(j)return j;let _=x(k);if(_)return j={..._,d:v(_.d),t:v(_.t),get u(){return _.u},set u(R){_.u=R}},C.set(k,j),j}}function p(x,C){return function(k,j){return x.get(j)||(x.set(j,C(k,j)),x.get(j))}}function d(x,C,...k){let[j,_]=et(e,C),R=Xs(e,j,C,_,e);try{return o(x,j,...k)}finally{R==null||R()}}function g(x,C){return function(k,...j){let[_]=et(e,k);return(C?C(x):x)(_,...j)}}function f(x,C){return function(k,j,..._){let[R]=et(e,j);return(C?C(x):x)(k,R,..._)}}function h(x,C){return{get:g(x.get.bind(x),C),set:g(x.set.bind(x)),has:g(x.has.bind(x)),delete:g(x.delete.bind(x))}}function v(x){return{get size(){return x.size},add:g(x.add.bind(x)),has:g(x.has.bind(x)),delete:g(x.delete.bind(x)),clear:x.clear.bind(x),forEach:C=>x.forEach(g(C)),*[Symbol.iterator](){for(let C of x)yield et(e,C)[0]}}}function b(x){if(!x)return;let C=g(x);return C.add=function(k,j){if(k===void 0)return x.add(void 0,j);let[_]=et(e,k);return x.add(_,j)},C}function S(x){let C={get f(){return x.f},set f(k){x.f=k}};return Object.defineProperties(C,Object.fromEntries(["r","c","m","u"].map(k=>[k,{get(){return i[k]??(i[k]=b(x[k]))},set(j){delete i[k],x[k]=j},configurable:!0,enumerable:!0}]))),Object.assign(C,x)}}function Rh(e,t){return function(n){let{atoms:r=[],atomFamilies:o=[],children:a,scope:l,name:i}=n,c=t(),u=Array.from(r,f=>Array.isArray(f)?f[0]:f);function m(){return[l??kh({atoms:u,atomFamilies:o,parentStore:c,name:i}),function(f){return c!==f.parentStore||!Ks(u,f.atoms)||!Ks(o,f.atomFamilies)||l!==f.providedScope}]}let[[p,d],g]=(0,w.useState)(m);if(d({atoms:u,atomFamilies:o,parentStore:c,providedScope:l})){let f=kr.get(p);f&&Js(f),g(m)}return zt(Array.from(r).filter(Array.isArray),{store:p}),(0,w.useEffect)(()=>{let f=kr.get(p);return()=>{f&&Js(f)}},[p]),(0,w.createElement)(e,{store:p,children:a})}}var Mh=Rh(cy,Oc);function Nh(e,t){let n=new Map;for(let r of t){if(r.includes("__select__"))continue;let[o]=r.split("_"),a=e.getRow(o);if(!a)continue;let l=a.getAllCells().find(c=>c.id===r);if(!l)continue;let i=n.get(o)??[];i.push(kn({value:l.getValue()})),n.set(o,i)}return Fh([...n.values()])}function Fh(e){return e.map(t=>t.join(" ")).join(` +`)}function _r(e,t,n){var b,S;let r=e.getRow(t.rowId),o=e.getRow(n.rowId);if(!r||!o)return[];let a=r.index,l=o.index,i=(b=e.getColumn(t.columnId))==null?void 0:b.getIndex(),c=(S=e.getColumn(n.columnId))==null?void 0:S.getIndex();if(i===void 0||c===void 0)return[];let u=Math.min(a,l),m=Math.max(a,l),p=Math.min(i,c),d=Math.max(i,c),g=[];g.length=(m-u+1)*(d-p+1);let f=0,h=e.getAllColumns().map(x=>x.id),v=e.getRowModel().rows;for(let x=u;x<=m;x++){let C=v[x].id;for(let k=p;k<=d;k++){let j=h[k];g[f++]=Ah(C,j)}}return g.length=f,g}function Ah(e,t){return`${e}_${t}`}function Ih(){return{selectedCells:new Set,copiedCells:new Set,selectedStartCell:null,focusedCell:null,isSelecting:!1}}var{valueAtom:$t,useActions:Ph,createActions:Ax,reducer:Ix}=zy(Ih,{setSelectedCells:(e,t)=>({...e,selectedCells:t}),setSelectedStartCell:(e,t)=>({...e,selectedStartCell:t}),setFocusedCell:(e,t)=>({...e,focusedCell:t}),setIsSelecting:(e,t)=>({...e,isSelecting:t}),setCopiedCells:(e,t)=>({...e,copiedCells:t}),clearSelection:e=>({...e,selectedCells:new Set,selectedStartCell:null,focusedCell:null}),selectAllCells:(e,t)=>{let n=t.getRowModel().rows.flatMap(r=>r.getAllCells().map(o=>o.id));return{...e,selectedCells:new Set(n)}},toggleCurrentRowSelection:(e,t)=>{var r,o;let n=e.focusedCell;return n!=null&&n.rowId&&((o=(r=t.getRow(n==null?void 0:n.rowId))==null?void 0:r.toggleSelected)==null||o.call(r)),e},updateSelection:(e,{newCell:t,isShiftKey:n,table:r})=>{if(n&&e.selectedStartCell){let o=_r(r,e.selectedStartCell,t);return{...e,selectedCells:new Set(o),focusedCell:t}}else return{...e,selectedCells:new Set([t.cellId]),selectedStartCell:t,focusedCell:t}},updateRangeSelection:(e,{cell:t,table:n})=>{if(!e.selectedStartCell)return e;let r={rowId:t.row.id,columnId:t.column.id,cellId:t.id},o=_r(n,e.selectedStartCell,r);return o.length>1&&Th(),{...e,selectedCells:new Set(o)}},handleCopy:(e,{table:t,onCopyComplete:n})=>{let r=window.getSelection();return r&&r.toString().length>0?e:(rn(Nh(t,e.selectedCells)),n(),{...e,copiedCells:e.selectedCells})},navigate:(e,{direction:t,isShiftKey:n,table:r})=>{let o=e.focusedCell??e.selectedStartCell;if(!o)return e;let a;if(t==="up"||t==="down"){let i=r.getRowModel().rows,c=i.findIndex(m=>m.id===o.rowId);if(c<0)return e;let u=t==="up"?i[c-1]:i[c+1];if(!u)return e;a=u.getAllCells().find(m=>m.column.id===o.columnId)}if(t==="left"||t==="right"){let i=r.getRow(o.rowId).getAllCells(),c=i.findIndex(u=>u.id===o.cellId);if(c<0)return e;a=t==="left"?i[c-1]:i[c+1]}if(!a)return e;let l={rowId:a.row.id,columnId:a.column.id,cellId:a.id};if(n&&e.selectedStartCell){let i=_r(r,e.selectedStartCell,l);return{...e,selectedCells:new Set(i),focusedCell:l}}else return{...e,selectedCells:new Set([l.cellId]),selectedStartCell:l,focusedCell:l}},handleCellMouseDown:(e,{cell:t,isShiftKey:n,isCtrlKey:r,table:o})=>{let a={rowId:t.row.id,columnId:t.column.id,cellId:t.id};if(n&&e.selectedStartCell){let l=_r(o,e.selectedStartCell,a);return{...e,selectedCells:new Set(l),isSelecting:!0}}return r?e:e.selectedCells.size===1&&e.selectedCells.has(a.cellId)?{...e,selectedCells:new Set,selectedStartCell:null,focusedCell:null}:{...e,selectedCells:new Set([a.cellId]),selectedStartCell:a,focusedCell:a,isSelecting:!0}}});const Zs=jt(e=>e($t).selectedCells),$h=jt(e=>e($t).copiedCells);jt(e=>e($t).selectedStartCell),jt(e=>e($t).focusedCell),jt(e=>e($t).isSelecting);const Eh=e=>jt(t=>{let n=t(Zs),r=t($h);return{isSelected:n.has(e),isCopied:r.has(e)}}),Th=()=>{var e;window.getSelection&&((e=window.getSelection())==null||e.empty())};var Oh=K();const Vh=e=>{let t=(0,Oh.c)(3),{children:n}=e,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=[$t],t[0]=r):r=t[0];let o;return t[1]===n?o=t[2]:(o=(0,s.jsx)(Mh,{atoms:r,children:n}),t[1]=n,t[2]=o),o};var xa="ContextMenu",[zh,Px]=Pb(xa,[Zc]),xe=Zc(),[Dh,Qs]=zh(xa),ec=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[l,i]=w.useState(!1),c=xe(t),u=Tb(r),m=w.useCallback(p=>{i(p),u(p)},[u]);return(0,s.jsx)(Dh,{scope:t,open:l,onOpenChange:m,modal:a,children:(0,s.jsx)(fb,{...c,dir:o,open:l,onOpenChange:m,modal:a,children:n})})};ec.displayName=xa;var tc="ContextMenuTrigger",nc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=Qs(tc,n),l=xe(n),i=w.useRef({x:0,y:0}),c=w.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),u=w.useRef(0),m=w.useCallback(()=>window.clearTimeout(u.current),[]),p=d=>{i.current={x:d.clientX,y:d.clientY},a.onOpenChange(!0)};return w.useEffect(()=>m,[m]),w.useEffect(()=>{r&&m()},[r,m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(vb,{...l,virtualRef:c}),(0,s.jsx)(Eb.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:$n(e.onContextMenu,d=>{m(),p(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:$n(e.onPointerDown,Rr(d=>{m(),u.current=window.setTimeout(()=>p(d),700)})),onPointerMove:r?e.onPointerMove:$n(e.onPointerMove,Rr(m)),onPointerCancel:r?e.onPointerCancel:$n(e.onPointerCancel,Rr(m)),onPointerUp:r?e.onPointerUp:$n(e.onPointerUp,Rr(m))})]})});nc.displayName=tc;var Lh="ContextMenuPortal",rc=e=>{let{__scopeContextMenu:t,...n}=e,r=xe(t);return(0,s.jsx)(pb,{...r,...n})};rc.displayName=Lh;var oc="ContextMenuContent",ac=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=Qs(oc,n),a=xe(n),l=w.useRef(!1);return(0,s.jsx)(gb,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var c;(c=e.onCloseAutoFocus)==null||c.call(e,i),!i.defaultPrevented&&l.current&&i.preventDefault(),l.current=!1},onInteractOutside:i=>{var c;(c=e.onInteractOutside)==null||c.call(e,i),!i.defaultPrevented&&!o.modal&&(l.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ac.displayName=oc;var Hh="ContextMenuGroup",Bh=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(wb,{...o,...r,ref:t})});Bh.displayName=Hh;var Gh="ContextMenuLabel",lc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(Cb,{...o,...r,ref:t})});lc.displayName=Gh;var Wh="ContextMenuItem",ic=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(jb,{...o,...r,ref:t})});ic.displayName=Wh;var qh="ContextMenuCheckboxItem",sc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(yb,{...o,...r,ref:t})});sc.displayName=qh;var Kh="ContextMenuRadioGroup",Uh=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(cb,{...o,...r,ref:t})});Uh.displayName=Kh;var Jh="ContextMenuRadioItem",cc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(Sb,{...o,...r,ref:t})});cc.displayName=Jh;var Xh="ContextMenuItemIndicator",uc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(hb,{...o,...r,ref:t})});uc.displayName=Xh;var Yh="ContextMenuSeparator",dc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(db,{...o,...r,ref:t})});dc.displayName=Yh;var Zh="ContextMenuArrow",Qh=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(bb,{...o,...r,ref:t})});Qh.displayName=Zh;var mc="ContextMenuSub",e1=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,l=xe(t),[i,c]=$b({prop:o,defaultProp:a??!1,onChange:r,caller:mc});return(0,s.jsx)(ub,{...l,open:i,onOpenChange:c,children:n})};e1.displayName=mc;var t1="ContextMenuSubTrigger",pc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(xb,{...o,...r,ref:t})});pc.displayName=t1;var n1="ContextMenuSubContent",fc=w.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=xe(n);return(0,s.jsx)(mb,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fc.displayName=n1;function Rr(e){return t=>t.pointerType==="mouse"?void 0:e(t)}let gc,hc,yc,va,wa,Sa,Ca,ja,ka,_a,Ra,Ma,dt,Na,bc,xc,vc;gc=ec,hc=nc,yc=rc,va=ac,wa=lc,Sa=ic,Ca=sc,ja=cc,ka=uc,_a=dc,Ra=pc,Ma=fc,dt=K(),dl=gc,ll=hc,Na=Vb(yc),bc=tu(va),xc=tu(Ma),vc=w.forwardRef((e,t)=>{let n=(0,dt.c)(14),r,o,a,l;n[0]===e?(r=n[1],o=n[2],a=n[3],l=n[4]):({className:o,inset:a,children:r,...l}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=a,n[4]=l);let i;n[5]!==o||n[6]!==a?(i=Hb({className:o,inset:a}),n[5]=o,n[6]=a,n[7]=i):i=n[7];let c;n[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(tb,{className:"ml-auto h-4 w-4"}),n[8]=c):c=n[8];let u;return n[9]!==r||n[10]!==l||n[11]!==t||n[12]!==i?(u=(0,s.jsxs)(Ra,{ref:t,className:i,...l,children:[r,c]}),n[9]=r,n[10]=l,n[11]=t,n[12]=i,n[13]=u):u=n[13],u}),vc.displayName=Ra.displayName;var wc="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r1=w.forwardRef((e,t)=>{let n=(0,dt.c)(9),r,o;n[0]===e?(r=n[1],o=n[2]):({className:r,...o}=e,n[0]=e,n[1]=r,n[2]=o);let a;n[3]===r?a=n[4]:(a=O(nu({subcontent:!0}),wc,r),n[3]=r,n[4]=a);let l;return n[5]!==o||n[6]!==t||n[7]!==a?(l=(0,s.jsx)(xc,{ref:t,className:a,...o}),n[5]=o,n[6]=t,n[7]=a,n[8]=l):l=n[8],l});r1.displayName=Ma.displayName,Kr=w.forwardRef((e,t)=>{let n=(0,dt.c)(15),r,o,a;n[0]===e?(r=n[1],o=n[2],a=n[3]):({className:r,scrollable:a,...o}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=a);let l=a===void 0?!0:a,i;n[4]!==r||n[5]!==l?(i=O(nu(),wc,l&&"overflow-auto",r),n[4]=r,n[5]=l,n[6]=i):i=n[6];let c=l?`calc(var(--radix-context-menu-content-available-height) - ${Ob}px)`:void 0,u;n[7]!==o.style||n[8]!==c?(u={...o.style,maxHeight:c},n[7]=o.style,n[8]=c,n[9]=u):u=n[9];let m;return n[10]!==o||n[11]!==t||n[12]!==i||n[13]!==u?(m=(0,s.jsx)(Na,{children:(0,s.jsx)(zb,{children:(0,s.jsx)(bc,{ref:t,className:i,style:u,...o})})}),n[10]=o,n[11]=t,n[12]=i,n[13]=u,n[14]=m):m=n[14],m}),Kr.displayName=va.displayName,Vt=w.forwardRef((e,t)=>{let n=(0,dt.c)(13),r,o,a,l;n[0]===e?(r=n[1],o=n[2],a=n[3],l=n[4]):({className:r,inset:o,variant:l,...a}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=a,n[4]=l);let i;n[5]!==r||n[6]!==o||n[7]!==l?(i=Bb({className:r,inset:o,variant:l}),n[5]=r,n[6]=o,n[7]=l,n[8]=i):i=n[8];let c;return n[9]!==a||n[10]!==t||n[11]!==i?(c=(0,s.jsx)(Sa,{ref:t,className:i,...a}),n[9]=a,n[10]=t,n[11]=i,n[12]=c):c=n[12],c}),Vt.displayName=Sa.displayName,hl=w.forwardRef((e,t)=>{let n=(0,dt.c)(15),r,o,a,l;n[0]===e?(r=n[1],o=n[2],a=n[3],l=n[4]):({className:a,children:o,checked:r,...l}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=a,n[4]=l);let i;n[5]===a?i=n[6]:(i=Db({className:a}),n[5]=a,n[6]=i);let c;n[7]===Symbol.for("react.memo_cache_sentinel")?(c=Da(),n[7]=c):c=n[7];let u;n[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)("span",{className:c,children:(0,s.jsx)(ka,{children:(0,s.jsx)(Yy,{className:"h-4 w-4"})})}),n[8]=u):u=n[8];let m;return n[9]!==r||n[10]!==o||n[11]!==l||n[12]!==t||n[13]!==i?(m=(0,s.jsxs)(Ca,{ref:t,className:i,checked:r,...l,children:[u,o]}),n[9]=r,n[10]=o,n[11]=l,n[12]=t,n[13]=i,n[14]=m):m=n[14],m}),hl.displayName=Ca.displayName;var o1=w.forwardRef((e,t)=>{let n=(0,dt.c)(13),r,o,a;n[0]===e?(r=n[1],o=n[2],a=n[3]):({className:o,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=a);let l;n[4]===o?l=n[5]:(l=Da({className:o}),n[4]=o,n[5]=l);let i;n[6]===Symbol.for("react.memo_cache_sentinel")?(i=Da(),n[6]=i):i=n[6];let c;n[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{className:i,children:(0,s.jsx)(ka,{children:(0,s.jsx)(Qy,{className:"h-4 w-4 fill-current"})})}),n[7]=c):c=n[7];let u;return n[8]!==r||n[9]!==a||n[10]!==t||n[11]!==l?(u=(0,s.jsxs)(ja,{ref:t,className:l,...a,children:[c,r]}),n[8]=r,n[9]=a,n[10]=t,n[11]=l,n[12]=u):u=n[12],u});o1.displayName=ja.displayName;var a1=w.forwardRef((e,t)=>{let n=(0,dt.c)(11),r,o,a;n[0]===e?(r=n[1],o=n[2],a=n[3]):({className:r,inset:o,...a}=e,n[0]=e,n[1]=r,n[2]=o,n[3]=a);let l;n[4]!==r||n[5]!==o?(l=Gb({className:r,inset:o}),n[4]=r,n[5]=o,n[6]=l):l=n[6];let i;return n[7]!==a||n[8]!==t||n[9]!==l?(i=(0,s.jsx)(wa,{ref:t,className:l,...a}),n[7]=a,n[8]=t,n[9]=l,n[10]=i):i=n[10],i});a1.displayName=wa.displayName,qr=w.forwardRef((e,t)=>{let n=(0,dt.c)(9),r,o;n[0]===e?(r=n[1],o=n[2]):({className:r,...o}=e,n[0]=e,n[1]=r,n[2]=o);let a;n[3]===r?a=n[4]:(a=O(Lb({className:r})),n[3]=r,n[4]=a);let l;return n[5]!==o||n[6]!==t||n[7]!==a?(l=(0,s.jsx)(_a,{ref:t,className:a,...o}),n[5]=o,n[6]=t,n[7]=a,n[8]=l):l=n[8],l}),qr.displayName=_a.displayName;var l1=K();const i1=e=>{let t=(0,l1.c)(12),{contextMenuRef:n,tableBody:r,tableRef:o,copyAllCells:a}=e,l;t[0]!==n||t[1]!==o?(l=p=>{var f;let d=n.current;if(!d)return;let g=(f=o.current)==null?void 0:f.querySelector(`[${jy}="${d.id}"]`);if(!g){ot.error("Context menu cell not found in table");return}p?g.classList.add("bg-(--green-4)"):g.classList.remove("bg-(--green-4)")},t[0]=n,t[1]=o,t[2]=l):l=t[2];let i=rt(l),c;t[3]===r?c=t[4]:(c=(0,s.jsx)(ll,{asChild:!0,children:r}),t[3]=r,t[4]=c);let u;t[5]!==n||t[6]!==a?(u=(0,s.jsx)(Na,{children:(0,s.jsx)(s1,{cellRef:n,copySelectedCells:a})}),t[5]=n,t[6]=a,t[7]=u):u=t[7];let m;return t[8]!==i||t[9]!==c||t[10]!==u?(m=(0,s.jsxs)(dl,{onOpenChange:i,children:[c,u]}),t[8]=i,t[9]=c,t[10]=u,t[11]=m):m=t[11],m},s1=({cellRef:e,copySelectedCells:t})=>{var c;let n=Ir(Zs).size>1,r=e.current;if(!r){ot.error("No cell found in context menu");return}let o=()=>{try{rn(kn({value:r.getValue()}))}catch(u){ot.error("Failed to copy context menu cell",u)}},a=r.column,l=a.getCanFilter()&&((c=a.columnDef.meta)==null?void 0:c.filterType),i=u=>{a.setFilterValue(Ze.select({options:[r.getValue()],operator:u}))};return(0,s.jsxs)(Kr,{children:[(0,s.jsxs)(Vt,{onClick:o,children:[(0,s.jsx)(Dr,{className:"mo-dropdown-icon h-3 w-3"}),"Copy cell"]}),n&&(0,s.jsxs)(Vt,{onClick:t,children:[(0,s.jsx)(Ol,{className:"mo-dropdown-icon h-3 w-3"}),"Copy selected cells"]}),l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(qr,{}),(0,s.jsxs)(Vt,{onClick:()=>i("in"),children:[(0,s.jsx)(En,{className:"mo-dropdown-icon h-3 w-3"}),"Filter by this value"]}),(0,s.jsxs)(Vt,{onClick:()=>i("not_in"),children:[(0,s.jsx)(En,{className:"mo-dropdown-icon h-3 w-3"}),"Remove rows with this value"]})]})]})};var c1=K();const Sc=(0,w.memo)(e=>{let t=(0,c1.c)(9),{cellId:n,className:r}=e,o;t[0]===n?o=t[1]:(o=Eh(n),t[0]=n,t[1]=o);let{isSelected:a,isCopied:l}=Ir(o);if(!a&&!l)return null;let i=a&&"bg-(--green-3)",c=l&&"bg-(--green-4) transition-colors duration-150",u;t[2]!==r||t[3]!==i||t[4]!==c?(u=O("absolute inset-0 pointer-events-none",i,c,r),t[2]=r,t[3]=i,t[4]=c,t[5]=u):u=t[5];let m;return t[6]!==n||t[7]!==u?(m=(0,s.jsx)("div",{"data-cell-id":n,className:u}),t[6]=n,t[7]=u,t[8]=m):m=t[8],m});Sc.displayName="CellRangeSelectionIndicator";var u1=K();const d1=e=>{let t=(0,u1.c)(30),{table:n}=e,r=Ph(),o;t[0]!==r||t[1]!==n?(o=()=>{r.handleCopy({table:n,onCopyComplete:()=>{setTimeout(()=>{r.setCopiedCells(new Set)},500)}})},t[0]=r,t[1]=n,t[2]=o):o=t[2];let a=rt(o),l;t[3]!==r||t[4]!==n?(l=(x,C)=>{r.updateSelection({newCell:x,isShiftKey:C,table:n})},t[3]=r,t[4]=n,t[5]=l):l=t[5];let i=rt(l),c;t[6]!==r||t[7]!==n?(c=(x,C)=>{r.navigate({direction:C,isShiftKey:x.shiftKey,table:n})},t[6]=r,t[7]=n,t[8]=c):c=t[8];let u=rt(c),m;t[9]!==r||t[10]!==a||t[11]!==u||t[12]!==n?(m=x=>{e:switch(x.key){case"c":pt.isMetaOrCtrl(x)&&a();break e;case"ArrowDown":x.preventDefault(),u(x,"down");break e;case"ArrowUp":x.preventDefault(),u(x,"up");break e;case"ArrowLeft":x.preventDefault(),u(x,"left");break e;case"ArrowRight":x.preventDefault(),u(x,"right");break e;case"Enter":x.preventDefault(),r.toggleCurrentRowSelection(n);break e;case"Escape":r.clearSelection();break e;case"a":(x.metaKey||x.ctrlKey)&&(x.preventDefault(),r.selectAllCells(n))}},t[9]=r,t[10]=a,t[11]=u,t[12]=n,t[13]=m):m=t[13];let p=rt(m),d;t[14]!==r||t[15]!==n?(d=(x,C)=>{x.buttons!==2&&r.handleCellMouseDown({cell:C,isShiftKey:x.shiftKey,isCtrlKey:x.ctrlKey,table:n})},t[14]=r,t[15]=n,t[16]=d):d=t[16];let g=rt(d),f;t[17]===r?f=t[18]:(f=()=>{r.setIsSelecting(!1)},t[17]=r,t[18]=f);let h=rt(f),v;t[19]!==r||t[20]!==n?(v=(x,C)=>{x.buttons===1&&r.updateRangeSelection({cell:C,table:n})},t[19]=r,t[20]=n,t[21]=v):v=t[21];let b=rt(v),S;return t[22]!==r.clearSelection||t[23]!==g||t[24]!==b||t[25]!==h||t[26]!==p||t[27]!==a||t[28]!==i?(S={handleCellMouseDown:g,handleCellMouseUp:h,handleCellMouseOver:b,handleCopy:a,handleCellsKeyDown:p,updateSelection:i,clearSelection:r.clearSelection},t[22]=r.clearSelection,t[23]=g,t[24]=b,t[25]=h,t[26]=p,t[27]=a,t[28]=i,t[29]=S):S=t[29],S};var m1=K(),p1=jt(e=>e($t).focusedCell);function f1(e){let t=(0,m1.c)(2),n;t[0]===e?n=t[1]:(n=r=>{r!=null&&r.cellId&&setTimeout(()=>{var a;let o=(a=e.current)==null?void 0:a.querySelector(`[data-cell-id="${r.cellId}"]`);if(!o){ot.warn("[ScrollIntoView] Could not find cell with ID:",r.cellId);return}o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},0)},t[0]=e,t[1]=n),sy(p1,n)}function g1(e,t){var r;if(!((r=e.getRowModel().rows)!=null&&r.length))return null;let n=o=>o.map(a=>a.headers.map(l=>{let{className:i,style:c}=Cc(l.column);return(0,s.jsx)(kx,{className:O("h-auto min-h-10 whitespace-pre align-top",i),style:c,ref:u=>{y1(u,e,l.column)},children:l.isPlaceholder?null:Gr(l.column.columnDef.header,l.getContext())},l.id)}));return(0,s.jsx)(jx,{className:O(t&&"sticky top-0 z-10"),children:(0,s.jsxs)(qa,{children:[n(e.getLeftHeaderGroups()),n(e.getCenterHeaderGroups()),n(e.getRightHeaderGroups())]})})}const h1=({table:e,columns:t,rowViewerPanelOpen:n,getRowIndex:r,viewedRowIdx:o})=>{var b;let a=(0,w.useRef)(null);f1(a);let{handleCellMouseDown:l,handleCellMouseUp:i,handleCellMouseOver:c,handleCellsKeyDown:u,handleCopy:m}=d1({table:e}),p=(0,w.useRef)(null),d=rt(S=>{p.current=S});function g(S,x){let C=/{{(\w+)}}/g,k=new Map;for(let j of x){let _=kn({value:j.getValue(),nullAsEmptyString:!0});k.set(j.column.id,_)}return S.replaceAll(C,(j,_)=>{let R=k.get(_);return R===void 0?`{{${_}}}`:R})}let f=S=>S.map(x=>{var R,F,y,N;let{className:C,style:k}=Cc(x.column),j=Object.assign({},((R=x.getUserStyling)==null?void 0:R.call(x))||{},k),_=((F=x.getHoverTitle)==null?void 0:F.call(x))??void 0;return(0,w.createElement)(lu,{tabIndex:0,...Sy(x.id),key:x.id,className:O("whitespace-pre truncate max-w-[300px] outline-hidden",x.column.getColumnWrapping&&((N=(y=x.column).getColumnWrapping)==null?void 0:N.call(y))==="wrap"&&"whitespace-pre-wrap min-w-[200px]","px-1.5 py-[0.18rem]",C),style:j,title:_,onMouseDown:A=>l(A,x),onMouseUp:i,onMouseOver:A=>c(A,x),onContextMenu:()=>d(x)},(0,s.jsx)(Sc,{cellId:x.id}),(0,s.jsx)("div",{className:"relative",children:Gr(x.column.columnDef.cell,x.getContext())}))}),h=S=>{var x;if(n){let C=(r==null?void 0:r(S.original,S.index))??S.index;(x=S.focusRow)==null||x.call(S,C)}},v=e.getState().cellHoverTemplate||null;return(0,s.jsx)(i1,{tableBody:(0,s.jsx)(_x,{onKeyDown:u,ref:a,children:(b=e.getRowModel().rows)!=null&&b.length?e.getRowModel().rows.map(S=>{var j;let x=n?(r==null?void 0:r(S.original,S.index))??S.index:void 0,C=n&&o===x,k;if(v){let _=((j=S.getVisibleCells)==null?void 0:j.call(S))??[...S.getLeftVisibleCells(),...S.getCenterVisibleCells(),...S.getRightVisibleCells()];k=v?g(v,_):void 0}return(0,s.jsxs)(qa,{"data-state":S.getIsSelected()&&"selected",title:k,className:O("border-t h-6",n&&"cursor-pointer",C&&"bg-(--blue-3) hover:bg-(--blue-3) data-[state=selected]:bg-(--blue-4)"),onClick:()=>h(S),children:[f(S.getLeftVisibleCells()),f(S.getCenterVisibleCells()),f(S.getRightVisibleCells())]},S.id)}):(0,s.jsx)(qa,{children:(0,s.jsx)(lu,{colSpan:t.length,className:"h-24 text-center",children:"No results."})})}),contextMenuRef:p,tableRef:a,copyAllCells:m})};function Cc(e){let t=e.getIsPinned(),n=t==="left"&&e.getIsLastColumn("left"),r=t==="right"&&e.getIsFirstColumn("right");return{className:O(t&&"bg-inherit","shadow-r z-10"),style:{boxShadow:n&&e.id!=="__select__"?"-4px 0 4px -4px var(--slate-8) inset":r?"4px 0 4px -4px var(--slate-8) inset":void 0,left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,opacity:1,position:t?"sticky":"relative",zIndex:t?1:0,width:e.getSize()}}}function y1(e,t,n){e&&t.getState().columnSizing[n.id]!==e.getBoundingClientRect().width&&t.setColumnSizing(r=>({...r,[n.id]:e.getBoundingClientRect().width}))}var b1=K();const x1=e=>{let t=(0,b1.c)(22),{hidden:n,value:r,handleSearch:o,onHide:a,reloading:l}=e,[i,c]=(0,w.useState)(r),u=P0(i,500),m=rt(o),p=w.useRef(null),d,g;t[0]!==u||t[1]!==m?(d=()=>{m(u)},g=[u,m],t[0]=u,t[1]=m,t[2]=d,t[3]=g):(d=t[2],g=t[3]),(0,w.useEffect)(d,g);let f,h;t[4]===n?(f=t[5],h=t[6]):(f=()=>{var R;n?c(""):(R=p.current)==null||R.focus()},h=[n],t[4]=n,t[5]=f,t[6]=h),(0,w.useEffect)(f,h);let v=n&&"h-0 border-none opacity-0",b;t[7]===v?b=t[8]:(b=O("flex items-center space-x-2 h-8 px-2 border-b transition-all overflow-hidden duration-300 opacity-100",v),t[7]=v,t[8]=b);let S;t[9]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)(Va,{className:"w-4 h-4 text-muted-foreground"}),t[9]=S):S=t[9];let x;t[10]===a?x=t[11]:(x=R=>{R.key==="Escape"&&a()},t[10]=a,t[11]=x);let C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C=R=>c(R.target.value),t[12]=C):C=t[12];let k;t[13]!==i||t[14]!==x?(k=(0,s.jsx)("input",{type:"text",ref:p,className:"w-full h-full border-none bg-transparent focus:outline-hidden text-sm",value:i,onKeyDown:x,onChange:C,placeholder:"Search"}),t[13]=i,t[14]=x,t[15]=k):k=t[15];let j;t[16]===l?j=t[17]:(j=l&&(0,s.jsx)(Qc,{size:"small"}),t[16]=l,t[17]=j);let _;return t[18]!==k||t[19]!==j||t[20]!==b?(_=(0,s.jsxs)("div",{className:b,children:[S,k,j]}),t[18]=k,t[19]=j,t[20]=b,t[21]=_):_=t[21],_};var v1=K(),w1=[{label:"CSV",format:"csv",icon:Ia},{label:"JSON",format:"json",icon:Dc},{label:"Parquet",format:"parquet",icon:_l}],S1=[{label:"TSV",format:"tsv",description:"Best for Excel and Google Sheets",icon:Ia},{label:"JSON",format:"json",description:"Raw JSON data",icon:Dc},{label:"CSV",format:"csv",description:"Comma-separated values",icon:Ia},{label:"Markdown",format:"markdown",description:"Preserves hyperlinks and formatting",icon:by}];const C1=e=>{let t=(0,v1.c)(18),{locale:n}=ft(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsxs)(de,{"data-testid":"download-as-button",size:"xs",variant:"link",children:["Download ",(0,s.jsx)(Pa,{className:"w-3 h-3 ml-1"})]}),t[0]=r):r=t[0];let o=r,a;t[1]===e?a=t[2]:(a=v=>e.downloadAs({format:v}).catch(j1),t[1]=e,t[2]=a);let l=a,i;t[3]!==l||t[4]!==n?(i=async v=>{let b;e:switch(v){case"tsv":b=wy(await Fa(await l("json")),n);break e;case"json":{let S=await Fa(await l("json"));b=JSON.stringify(S,null,2);break e}case"csv":b=await jc(await l("csv"));break e;case"markdown":b=xy(await Fa(await l("json")));break e;default:kt(v);return}await rn(b),Lr({title:"Copied to clipboard"})},t[3]=l,t[4]=n,t[5]=i):i=t[5];let c=i,u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(Ea,{asChild:!0,children:o}),t[6]=u):u=t[6];let m;t[7]===l?m=t[8]:(m=w1.map(v=>(0,s.jsxs)(Q,{onSelect:async()=>{let b=await l(v.format),S=v.format;Jy(b,`download.${S}`)},children:[(0,s.jsx)(v.icon,{className:"mo-dropdown-icon"}),v.label]},v.label)),t[7]=l,t[8]=m);let p;t[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(tn,{}),t[9]=p):p=t[9];let d;t[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsxs)($a,{children:[(0,s.jsx)(Nl,{className:"mo-dropdown-icon"}),"Copy to clipboard"]}),t[10]=d):d=t[10];let g;t[11]===c?g=t[12]:(g=S1.map(v=>(0,s.jsxs)(Q,{onSelect:async()=>{try{await c(v.format)}catch(b){Lr({title:"Failed to copy to clipboard",description:tx(b),variant:"danger"})}},children:[(0,s.jsx)(v.icon,{className:"mo-dropdown-icon"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{children:v.label}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:v.description})]})]},v.label)),t[11]=c,t[12]=g);let f;t[13]===g?f=t[14]:(f=(0,s.jsxs)(nn,{children:[d,(0,s.jsx)(Pn,{children:g})]}),t[13]=g,t[14]=f);let h;return t[15]!==m||t[16]!==f?(h=(0,s.jsxs)(Oa,{modal:!1,children:[u,(0,s.jsxs)(Ta,{side:"bottom",className:"no-print",children:[m,p,f]})]}),t[15]=m,t[16]=f,t[17]=h):h=t[17],h};function Fa(e){return jc(e).then(Lc)}function jc(e){return fetch(e).then(t=>{if(!t.ok)throw Error(t.statusText);return t.text()})}function j1(e){throw Lr({title:"Failed to download",description:"message"in e?e.message:String(e)}),e}const k1=({table:e,selection:t,onSelectAllRowsChange:n,totalColumns:r,tableLoading:o,showPageSizeSelector:a})=>{let{locale:l}=ft(),i=()=>{let{rowSelection:g,cellSelection:f}=e.getState(),h=Object.keys(g).length,v=e.getIsAllPageRowsSelected(),b=e.getRowCount(),S=h===b,x=t==="single-cell"||t==="multi-cell";return x&&(h=f.length,v=!1,S=!1),v&&!S?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{children:[Pe(h,l)," selected"]}),(0,s.jsxs)(de,{size:"xs","data-testid":"select-all-button",variant:"link",className:"h-4",onMouseDown:pt.preventFocus,onClick:()=>{n?n(!0):e.toggleAllRowsSelected(!0)},children:["Select all ",Pe(b,l)]})]}):h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{children:[Pe(h,l)," selected"]}),(0,s.jsx)(de,{size:"xs","data-testid":"clear-selection-button",variant:"link",className:"h-4",onMouseDown:pt.preventFocus,onClick:()=>{x?e.resetCellSelection&&e.resetCellSelection():n?n(!1):e.toggleAllRowsSelected(!1)},children:"Clear selection"})]}):(0,s.jsx)("span",{children:xl(b,r,l)})},c=Math.min(e.getState().pagination.pageIndex+1,e.getPageCount()),u=e.getPageCount(),m=e.getState().pagination.pageSize,p=g=>{o||g()},d=[...new Set([5,10,25,50,100,m])].sort((g,f)=>g-f);return(0,s.jsxs)("div",{className:"flex flex-1 items-center justify-between px-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:i()}),a&&(0,s.jsxs)("div",{className:"flex items-center gap-1 text-xs whitespace-nowrap mr-1",children:[(0,s.jsxs)(Jc,{value:m.toString(),onValueChange:g=>e.setPageSize(Number(g)),children:[(0,s.jsx)(Uc,{className:"w-11 h-[18px] shadow-none! !hover:shadow-none ring-0! border-border text-xs p-1",children:(0,s.jsx)(Wc,{})}),(0,s.jsx)(Kc,{children:(0,s.jsxs)(qy,{children:[(0,s.jsx)(Gy,{children:"Rows per page"}),[...d].map(g=>{let f=g.toString();return(0,s.jsx)(Tr,{value:f,children:f},g)})]})})]}),(0,s.jsx)("span",{children:"/ page"})]})]}),(0,s.jsxs)("div",{className:"flex items-end space-x-2",children:[(0,s.jsxs)(de,{size:"xs",variant:"outline","data-testid":"first-page-button",className:"hidden h-6 w-6 p-0 lg:flex",onClick:()=>p(()=>e.setPageIndex(0)),onMouseDown:pt.preventFocus,disabled:!e.getCanPreviousPage(),children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to first page"}),(0,s.jsx)(bl,{className:"h-4 w-4"})]}),(0,s.jsxs)(de,{size:"xs",variant:"outline","data-testid":"previous-page-button",className:"h-6 w-6 p-0",onClick:()=>p(()=>e.previousPage()),onMouseDown:pt.preventFocus,disabled:!e.getCanPreviousPage(),children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to previous page"}),(0,s.jsx)(Ky,{className:"h-4 w-4"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-center text-xs font-medium gap-1",children:[(0,s.jsx)("span",{children:"Page"}),(0,s.jsx)(_1,{currentPage:c,totalPages:u,onPageChange:g=>p(()=>e.setPageIndex(g))}),(0,s.jsxs)("span",{className:"shrink-0",children:["of ",Pe(u,l)]})]}),(0,s.jsxs)(de,{size:"xs",variant:"outline","data-testid":"next-page-button",className:"h-6 w-6 p-0",onClick:()=>p(()=>e.nextPage()),onMouseDown:pt.preventFocus,disabled:!e.getCanNextPage(),children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to next page"}),(0,s.jsx)(Xy,{className:"h-4 w-4"})]}),(0,s.jsxs)(de,{size:"xs",variant:"outline","data-testid":"last-page-button",className:"hidden h-6 w-6 p-0 lg:flex",onClick:()=>p(()=>e.setPageIndex(e.getPageCount()-1)),onMouseDown:pt.preventFocus,disabled:!e.getCanNextPage(),children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to last page"}),(0,s.jsx)(ul,{className:"h-4 w-4"})]})]})]})},_1=({currentPage:e,totalPages:t,onPageChange:n})=>{let r=l=>(0,s.jsx)("option",{value:l+1,children:l+1},l),o=l=>(0,s.jsx)("option",{disabled:!0,value:`__${l}__`,children:"..."},`__${l}__`),a=()=>{if(t<=100)return $r(t).map(p=>r(p));let l=Math.floor(t/2),i=$r(10).map(p=>r(p)),c=$r(10).map(p=>r(l-5+p)),u=$r(10).map(p=>r(t-10+p)),m=[...i,o(1),...c,o(2),...u];return e>10&&e<=l-5&&m.splice(10,1,o(1),r(e-1),o(11)),e>l+5&&e<=t-10&&m.splice(-11,1,o(2),r(e-1),o(22)),m};return(0,s.jsx)("select",{className:"cursor-pointer border rounded",value:e,"data-testid":"page-select",onChange:l=>n(Number(l.target.value)-1),children:a()})};cl=function(e,t){return`${Pe(e,t)} ${new zc("row").pluralize(e)}`};let kc;xl=(e,t,n)=>[e==="too_many"?"Unknown":cl(e,n),`${Pe(t,n)} ${new zc("column").pluralize(t)}`].join(", "),kc=({enableSearch:e,onSearchQueryChange:t,isSearchEnabled:n,setIsSearchEnabled:r,pagination:o,totalColumns:a,selection:l,onRowSelectionChange:i,table:c,downloadAs:u,getRowIds:m,toggleDisplayHeader:p,showChartBuilder:d,showColumnExplorer:g,showRowExplorer:f,showPageSizeSelector:h,togglePanel:v,isPanelOpen:b,tableLoading:S})=>(0,s.jsxs)("div",{className:"flex items-center shrink-0 pt-1",children:[t&&e&&(0,s.jsx)(ze,{content:"Search",children:(0,s.jsx)(de,{variant:"text",size:"xs",className:"mb-0",onClick:()=>r(!n),children:(0,s.jsx)(Va,{className:"w-4 h-4 text-muted-foreground"})})}),d&&(0,s.jsx)(ze,{content:"Chart builder",children:(0,s.jsx)(de,{variant:"text",size:"xs",className:"mb-0",onClick:p,children:(0,s.jsx)(Ml,{className:"w-4 h-4 text-muted-foreground"})})}),v&&b!==void 0&&(0,s.jsxs)(s.Fragment,{children:[f&&(0,s.jsx)(ze,{content:"Toggle row viewer",children:(0,s.jsx)(de,{variant:"text",size:"xs",onClick:()=>v("row-viewer"),children:(0,s.jsx)(Tl,{className:O("w-4 h-4 text-muted-foreground",b("row-viewer")&&"text-primary")})})}),g&&(0,s.jsx)(ze,{content:"Toggle column explorer",children:(0,s.jsx)(de,{variant:"text",size:"xs",onClick:()=>v("column-explorer"),children:(0,s.jsx)(Rl,{className:O("w-4 h-4 text-muted-foreground",b("column-explorer")&&"text-primary")})})})]}),o&&(0,s.jsx)(k1,{totalColumns:a,selection:l,onSelectAllRowsChange:x=>{if(!i)return;if(!x){i({});return}let C=()=>{let k=Array.from({length:c.getRowCount()},(j,_)=>[_,!0]);i(Object.fromEntries(k))};if(!m){C();return}m({}).then(k=>{if(k.error){Lr({title:"Not available",description:k.error,variant:"danger"});return}k.all_rows?C():i(Object.fromEntries(k.row_ids.map(j=>[j,!0])))})},table:c,tableLoading:S,showPageSizeSelector:h}),(0,s.jsx)("div",{className:"ml-auto",children:u&&(0,s.jsx)(C1,{downloadAs:u})})]}),pl=(0,w.memo)(({wrapperClassName:e,className:t,maxHeight:n,columns:r,data:o,selection:a,totalColumns:l,totalRows:i,manualSorting:c=!1,sorting:u,setSorting:m,rowSelection:p,cellSelection:d,cellStyling:g,hoverTemplate:f,cellHoverTexts:h,paginationState:v,setPaginationState:b,downloadAs:S,manualPagination:x=!1,pagination:C=!1,onRowSelectionChange:k,onCellSelectionChange:j,getRowIds:_,enableSearch:R=!1,searchQuery:F,onSearchQueryChange:y,showFilters:N=!1,filters:A,onFiltersChange:T,reloading:B,freezeColumnsLeft:ae,freezeColumnsRight:ue,toggleDisplayHeader:se,showChartBuilder:le,showPageSizeSelector:ve,showColumnExplorer:H,showRowExplorer:U,togglePanel:we,isPanelOpen:ne,viewedRowIdx:Me,onViewedRowChange:Ne})=>{let[Fe,Te]=w.useState(!1),[Ae,tt]=w.useState(!1),{locale:mt}=ft(),{columnPinning:Ie,setColumnPinning:He}=Sh(ae,ue);w.useEffect(()=>{let L;return B?L=setTimeout(()=>{tt(!0)},300):tt(!1),()=>{L&&clearTimeout(L)}},[B]);function G(L,Se){return v?Se+(x?v.pageIndex*v.pageSize:0):Se}let Y=Ya({_features:[Ms,Z0,f0,fh,hh,ph,dh,yh,vh],data:o,columns:r,getCoreRowModel:el(),rowCount:i==="too_many"?void 0:i,...b?{onPaginationChange:b,getRowId:(L,Se)=>{let Oe=br(L);if(Oe)return Oe;let I=G(L,Se);return String(I)}}:{},locale:mt,manualPagination:x,getPaginationRowModel:u0(),...m?{onSortingChange:m}:{},manualSorting:c,enableMultiSort:!0,getSortedRowModel:Ka(),manualFiltering:!0,enableColumnFilters:N,getFilteredRowModel:Cl(),onColumnFiltersChange:T,onRowSelectionChange:k,onCellSelectionChange:j,enableCellSelection:a==="single-cell"||a==="multi-cell",enableMultiCellSelection:a==="multi-cell",onColumnPinningChange:He,enableFocusRow:!0,onFocusRowChange:Ne,state:{...u?{sorting:u}:{},columnFilters:A,...v?{pagination:v}:C&&!v?{}:{pagination:{pageIndex:0,pageSize:o.length}},rowSelection:p??{},cellSelection:d??[],cellStyling:g,columnPinning:Ie,cellHoverTemplate:f,cellHoverTexts:h??{}}}),je=(ne==null?void 0:ne("row-viewer"))??!1,X=w.useRef(null);return w.useEffect(()=>{if(!X.current)return;let L=X.current.parentElement;L&&(n?(L.style.maxHeight=`${n}px`,L.style.overflow||(L.style.overflow="auto")):L.style.removeProperty("max-height"))},[n]),(0,s.jsxs)("div",{className:O(e,"flex flex-col space-y-1"),children:[(0,s.jsx)(bh,{filters:A,table:Y}),(0,s.jsxs)("div",{className:O(t||"rounded-md border overflow-hidden"),children:[y&&R&&(0,s.jsx)(x1,{value:F||"",onHide:()=>Te(!1),handleSearch:y,hidden:!Fe,reloading:B}),(0,s.jsxs)(Rx,{className:"relative",ref:X,children:[Ae&&(0,s.jsx)("thead",{className:"absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"}),g1(Y,!!n),(0,s.jsx)(Vh,{children:(0,s.jsx)(h1,{table:Y,columns:r,rowViewerPanelOpen:je,getRowIndex:G,viewedRowIdx:Me})})]})]}),(0,s.jsx)(kc,{enableSearch:R,totalColumns:l,onSearchQueryChange:y,isSearchEnabled:Fe,setIsSearchEnabled:Te,pagination:C,selection:a,onRowSelectionChange:k,table:Y,downloadAs:S,getRowIds:_,toggleDisplayHeader:se,showChartBuilder:le,showPageSizeSelector:ve,showColumnExplorer:H,showRowExplorer:U,togglePanel:we,isPanelOpen:ne,tableLoading:B})]})});var Mr=K(),R1=25;il=({contents:e})=>{let t=(0,w.useMemo)(()=>Aa(e),[e]),[n,r]=(0,w.useState)({pageIndex:0,pageSize:R1}),o=(0,w.useMemo)(()=>Sl(t),[t]),a=(0,w.useMemo)(()=>sl({rowHeaders:Oy.EMPTY,selection:null,fieldTypes:o}),[o]);return(0,s.jsx)(pl,{data:t,totalRows:t.length,columns:a,totalColumns:a.length,manualPagination:!1,paginationState:n,setPaginationState:r,wrapperClassName:"h-full justify-between pb-1 px-1",pagination:!0,className:"rounded-none border-b flex overflow-hidden",rowSelection:Er.EMPTY})},bu=e=>{let t=(0,Mr.c)(5),{mime:n,base64:r}=e,o;t[0]!==r||t[1]!==n?(o=Vr(r,n),t[0]=r,t[1]=n,t[2]=o):o=t[2];let a;return t[3]===o?a=t[4]:(a=(0,s.jsx)("img",{src:o,alt:"Preview"}),t[3]=o,t[4]=a),a},hu=e=>{let t=(0,Mr.c)(5),{mime:n,base64:r}=e,o;t[0]!==r||t[1]!==n?(o=Vr(r,n),t[0]=r,t[1]=n,t[2]=o):o=t[2];let a;return t[3]===o?a=t[4]:(a=(0,s.jsx)("audio",{controls:!0,src:o}),t[3]=o,t[4]=a),a},gu=e=>{let t=(0,Mr.c)(5),{mime:n,base64:r}=e,o;t[0]!==r||t[1]!==n?(o=Vr(r,n),t[0]=r,t[1]=n,t[2]=o):o=t[2];let a;return t[3]===o?a=t[4]:(a=(0,s.jsx)("video",{controls:!0,src:o}),t[3]=o,t[4]=a),a},xu=e=>{let t=(0,Mr.c)(5),{mime:n,base64:r}=e,o;t[0]!==r||t[1]!==n?(o=Vr(r,n),t[0]=r,t[1]=n,t[2]=o):o=t[2];let a;return t[3]===o?a=t[4]:(a=(0,s.jsx)("iframe",{src:o,title:"PDF Viewer",className:"w-full h-full"}),t[3]=o,t[4]=a),a};function M1(e,t){let{state:n}=e,r=n.doc;if(t<=0||t>r.lines)return ot.warn(`Invalid line number: ${t}. Document has ${r.lines} lines.`),!1;let o=r.line(t);if(o.text.includes("breakpoint()"))return!0;let a=o.text.match(/^(\s*)/),l=`${a?a[1]:""}breakpoint() +`,i=o.from;return e.dispatch({changes:{from:i,to:i,insert:l},selection:{anchor:i+l.length-1,head:i+l.length-1},scrollIntoView:!0,effects:[Ty.scrollIntoView(i,{y:"center"})]}),e.focus(),!0}var _c=K(),Rc="item";const N1=e=>{var we;let t=(0,_c.c)(47),{onRefactorWithAI:n,traceback:r,cellId:o}=e,a;t[0]===r?a=t[1]:(a=Wa({html:r,additionalReplacements:[A1,I1]}),t[0]=r,t[1]=a);let l=a,[i,c]=(0,w.useState)(!0),u=F1(r),m=Ir(Iy),p;t[2]===r?p=t[3]:(p=(we=hy(r))==null?void 0:we.at(0),t[2]=r,t[3]=p);let d=p,g;t[4]!==o||t[5]!==d?(g=d&&d.kind==="cell"&&!Hc()&&!Tn()&&o!=="__scratch__",t[4]=o,t[5]=d,t[6]=g):g=t[6];let f=g,h;t[7]!==m||t[8]!==n?(h=n&&m&&!Tn(),t[7]=m,t[8]=n,t[9]=h):h=t[9];let v=h,b=!Tn(),S=ne=>{n==null||n({prompt:`My code gives the following error: + +${u}`,triggerImmediately:ne})},[x,C]=u.split(":",2),k=i?Rc:"",j;t[10]===Symbol.for("react.memo_cache_sentinel")?(j=()=>c($1),t[10]=j):j=t[10];let _=i?"rotate-180":"rotate-0",R;t[11]===_?R=t[12]:(R=O("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0",_),t[11]=_,t[12]=R);let F;t[13]===R?F=t[14]:(F=(0,s.jsx)(Pa,{className:R}),t[13]=R,t[14]=F);let y=x||"Error",N;t[15]===y?N=t[16]:(N=(0,s.jsxs)("span",{className:"text-destructive",children:[y,":"]}),t[15]=y,t[16]=N);let A;t[17]!==C||t[18]!==N?(A=(0,s.jsxs)("div",{className:"text-sm inline font-mono",children:[N," ",C]}),t[17]=C,t[18]=N,t[19]=A):A=t[19];let T;t[20]!==A||t[21]!==F?(T=(0,s.jsxs)("div",{className:"flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",onClick:j,children:[F,A]}),t[20]=A,t[21]=F,t[22]=T):T=t[22];let B;t[23]===l?B=t[24]:(B=(0,s.jsx)(lx,{className:"text-muted-foreground px-4 pt-2 text-xs overflow-auto",children:l}),t[23]=l,t[24]=B);let ae;t[25]!==T||t[26]!==B?(ae=(0,s.jsxs)(ox,{value:Rc,className:"border-none",children:[T,B]}),t[25]=T,t[26]=B,t[27]=ae):ae=t[27];let ue;t[28]!==ae||t[29]!==k?(ue=(0,s.jsx)(ax,{type:"single",collapsible:!0,value:k,children:ae}),t[28]=ae,t[29]=k,t[30]=ue):ue=t[30];let se;t[31]!==S||t[32]!==v?(se=v&&(0,s.jsx)(_b,{tooltip:"Fix with AI",openPrompt:()=>S(!1),applyAutofix:()=>S(!0)}),t[31]=S,t[32]=v,t[33]=se):se=t[33];let le;t[34]!==f||t[35]!==d?(le=f&&(0,s.jsx)(ze,{content:"Attach pdb to the exception point.",children:(0,s.jsxs)(de,{size:"xs",variant:"outline",onClick:()=>{Gc().sendPdb({cellId:d.cellId})},children:[(0,s.jsx)(Ur,{className:"h-3 w-3 mr-2"}),"Launch debugger"]})}),t[34]=f,t[35]=d,t[36]=le):le=t[36];let ve;t[37]!==u||t[38]!==r?(ve=b&&(0,s.jsxs)(Oa,{children:[(0,s.jsx)(Ea,{asChild:!0,children:(0,s.jsxs)(de,{size:"xs",variant:"text",children:["Get help",(0,s.jsx)(Pa,{className:"h-3 w-3 ml-1"})]})}),(0,s.jsxs)(Ta,{align:"end",className:"w-56",children:[(0,s.jsx)(Q,{asChild:!0,children:(0,s.jsxs)("a",{target:"_blank",href:`https://www.google.com/search?q=${encodeURIComponent(u)}`,rel:"noreferrer",children:[(0,s.jsx)(Va,{className:"h-4 w-4 mr-2"}),"Search on Google",(0,s.jsx)(Yc,{className:"h-3 w-3 ml-auto"})]})}),(0,s.jsx)(Q,{asChild:!0,children:(0,s.jsxs)("a",{target:"_blank",href:"https://marimo.io/discord?ref=notebook",rel:"noopener",children:[(0,s.jsx)($l,{className:"h-4 w-4 mr-2"}),"Ask in Discord",(0,s.jsx)(Yc,{className:"h-3 w-3 ml-auto"})]})}),(0,s.jsxs)(Q,{onClick:()=>{let ne=document.createElement("div");ne.innerHTML=r,rn(ne.textContent||"")},children:[(0,s.jsx)(Dr,{className:"h-4 w-4 mr-2"}),"Copy to clipboard"]})]})]}),t[37]=u,t[38]=r,t[39]=ve):ve=t[39];let H;t[40]!==se||t[41]!==le||t[42]!==ve?(H=(0,s.jsxs)("div",{className:"flex gap-2",children:[se,le,ve]}),t[40]=se,t[41]=le,t[42]=ve,t[43]=H):H=t[43];let U;return t[44]!==ue||t[45]!==H?(U=(0,s.jsxs)("div",{className:"flex flex-col gap-2 min-w-full w-fit",children:[ue,H]}),t[44]=ue,t[45]=H,t[46]=U):U=t[46],U};function F1(e){var n,r;let t=document.createElement("div");return t.innerHTML=e,((r=(n=t.textContent)==null?void 0:n.split(` +`).filter(Boolean))==null?void 0:r.at(-1))||""}const A1=e=>{let t=yy(e);if((t==null?void 0:t.kind)==="cell"){let n=(0,s.jsx)(P1,{});return(0,s.jsx)("span",{className:"nb",children:(0,s.jsxs)("span",{className:"inline-flex items-center",children:[(0,s.jsx)(dx,{cellId:t.cellId,lineNumber:t.lineNumber}),!Hc()&&(0,s.jsx)(ze,{content:n,children:(0,s.jsx)("button",{type:"button",className:"ml-1 p-1 rounded-sm hover:bg-muted transition-all inline",children:(0,s.jsx)(Ur,{onClick:()=>{let r=vy(t.cellId);r&&M1(r,t.lineNumber)},className:"h-3 w-3"})})})]})})}if((t==null?void 0:t.kind)==="file")return(0,s.jsx)("div",{className:"inline-block cursor-pointer text-destructive hover:underline",onClick:n=>{Gc().openFile({path:t.filePath,lineNumber:t.lineNumber})},children:(0,s.jsxs)("span",{className:"nb",children:['"',t.filePath,'"']})})},I1=e=>{var t;if(e instanceof Vc.Text&&((t=e.nodeValue)!=null&&t.includes("File"))&&e.next instanceof Vc.Element&&gy(e.next))return(0,s.jsx)(s.Fragment,{children:e.nodeValue.replace("File","Cell")})};var P1=()=>{let e=(0,_c.c)(1),t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsxs)(s.Fragment,{children:["Insert a ",(0,s.jsx)(ux,{className:"inline",children:"breakpoint()"})," at this line"]}),e[0]=t):t=e[0],t};function $1(e){return!e}function E1(e){switch(e){case"text/html":return"\u{1F310}";case"text/plain":return"\u{1F4C4}";case"application/json":return"\u{1F4E6}";case"image/png":case"image/tiff":case"image/avif":case"image/bmp":case"image/gif":case"image/jpeg":return"\u{1F5BC}\uFE0F";case"image/svg+xml":return"\u{1F3A8}";case"video/mp4":case"video/mpeg":return"\u{1F3A5}";case"application/vnd.marimo+error":return"\u{1F6A8}";case"application/vnd.marimo+traceback":return"\u{1F40D}";case"text/csv":return"\u{1F4CA}";case"text/markdown":return"\u{1F4DD}";case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":return"\u{1F4CA}";case"application/vnd.marimo+mimebundle":return"\u{1F4E6}";default:return"\u2753"}}var Mn=K(),Mc="__metadata__";_t=(0,w.memo)(e=>{let t=(0,Mn.c)(51),{message:n,onRefactorWithAI:r,cellId:o,wrapText:a,metadata:l,renderFallback:i}=e,{theme:c}=za(),u;e:{let f=n.data;switch(n.mimetype){case"application/json":case"application/vnd.marimo+mimebundle":case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":{let h;t[0]===f?h=t[1]:(h=typeof f=="string"?JSON.parse(f):f,t[0]=f,t[1]=h),u=h;break e}default:u=void 0}}let m=u,{channel:p,data:d,mimetype:g}=n;if(d==null)return null;switch(g){case"text/html":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[2]!==p||t[3]!==d?(f=(0,s.jsx)(Ot,{className:p,html:d,alwaysSanitizeHtml:!1}),t[2]=p,t[3]=d,t[4]=f):f=t[4],f}case"text/plain":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[5]!==p||t[6]!==d||t[7]!==a?(f=(0,s.jsx)(Rg,{channel:p,text:d,wrapText:a}),t[5]=p,t[6]=d,t[7]=a,t[8]=f):f=t[8],f}case"application/json":{let f;return t[9]!==p||t[10]!==m?(f=(0,s.jsx)(on,{className:p,data:m,format:"auto"}),t[9]=p,t[10]=m,t[11]=f):f=t[11],f}case"image/png":case"image/tiff":case"image/avif":case"image/bmp":case"image/gif":case"image/jpeg":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f=l==null?void 0:l.width,h=l==null?void 0:l.height,v;return t[12]!==p||t[13]!==d||t[14]!==f||t[15]!==h?(v=(0,s.jsx)(hs,{className:p,src:d,alt:"",width:f,height:h}),t[12]=p,t[13]=d,t[14]=f,t[15]=h,t[16]=v):v=t[16],v}case"image/svg+xml":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[17]===d?f=t[18]:(f=Wa({html:d,alwaysSanitizeHtml:!0}),t[17]=d,t[18]=f),f}case"video/mp4":case"video/mpeg":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[19]!==p||t[20]!==d?(f=(0,s.jsx)(qo,{className:p,src:d}),t[19]=p,t[20]=d,t[21]=f):f=t[21],f}case"application/vnd.marimo+error":{at(Array.isArray(d),"Expected array data");let f;return t[22]!==o||t[23]!==d?(f=(0,s.jsx)(Nb,{cellId:o,errors:d}),t[22]=o,t[23]=d,t[24]=f):f=t[24],f}case"application/vnd.marimo+traceback":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[25]!==o||t[26]!==d||t[27]!==r?(f=(0,s.jsx)(N1,{onRefactorWithAI:r,traceback:d,cellId:o}),t[25]=o,t[26]=d,t[27]=r,t[28]=f):f=t[28],f}case"text/csv":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[29]===d?f=t[30]:(f=(0,s.jsx)(il,{contents:d}),t[29]=d,t[30]=f),f}case"text/latex":case"text/markdown":{at(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[31]!==p||t[32]!==d?(f=(0,s.jsx)(Ot,{className:p,html:d,alwaysSanitizeHtml:!0}),t[31]=p,t[32]=d,t[33]=f):f=t[33],f}case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":{let f;t[34]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(rl,{}),t[34]=f):f=t[34];let h=m,v=c==="dark"?"dark":void 0,b;t[35]===v?b=t[36]:(b={theme:v,mode:"vega-lite",tooltip:Fy.call,renderer:"canvas"},t[35]=v,t[36]=b);let S;return t[37]!==h||t[38]!==b?(S=(0,s.jsx)(w.Suspense,{fallback:f,children:(0,s.jsx)(Br,{spec:h,options:b})}),t[37]=h,t[38]=b,t[39]=S):S=t[39],S}case"application/vnd.marimo+mimebundle":{let f=m,h;return t[40]!==p||t[41]!==f?(h=(0,s.jsx)(Nc,{channel:p,data:f}),t[40]=p,t[41]=f,t[42]=h):h=t[42],h}case"application/vnd.jupyter.widget-view+json":{let f;t[43]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("b",{children:"Jupyter widgets are not supported in marimo."}),t[43]=f):f=t[43];let h;t[44]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsx)("br",{}),t[44]=h):h=t[44];let v;return t[45]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsxs)(px,{kind:"warn",children:[f," ",h,"Please migrate this widget to"," ",(0,s.jsx)("a",{href:"https://github.com/manzt/anywidget",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-(--amber-12)",children:"anywidget"}),"."]}),t[45]=v):v=t[45],v}default:{if(kt(g),i){let h;return t[46]!==g||t[47]!==i?(h=i(g),t[46]=g,t[47]=i,t[48]=h):h=t[48],h}let f;return t[49]===g?f=t[50]:(f=(0,s.jsxs)("div",{className:"text-destructive",children:["Unsupported mimetype: ",g]}),t[49]=g,t[50]=f),f}}}),_t.displayName="OutputRenderer";var Nc=(0,w.memo)(e=>{var C;let t=(0,Mn.c)(31),{data:n,channel:r,cellId:o}=e,a=Array.isArray(n)?n[0]:n,{mode:l}=Ir(Jb),i=l==="present"||l==="read",c=a[Mc],u,m,p,d,g,f,h,v;if(t[0]!==i||t[1]!==o||t[2]!==r||t[3]!==c||t[4]!==a){v=Symbol.for("react.early_return_sentinel");e:{let k=Er.entries(a).filter(T1).map(O1),j=(C=k[0])==null?void 0:C[0];if(!j){v=null;break e}if(k.length===1){v=(0,s.jsx)(_t,{cellId:o,message:{channel:r,data:a[j],mimetype:j},metadata:c==null?void 0:c[j]});break e}k.sort(V1),u=yx,f=j,h="vertical",d="flex";let _=i&&"mt-4",R;t[13]===_?R=t[14]:(R=O("self-start max-h-none flex flex-col gap-2 mr-3 shrink-0",_),t[13]=_,t[14]=R),g=(0,s.jsx)(hx,{className:R,children:k.map(z1)}),m="flex-1 w-full";let F;t[15]!==o||t[16]!==r||t[17]!==c?(F=y=>{let[N,A]=y;return(0,s.jsx)(gx,{value:N,children:(0,s.jsx)(Bc,{children:(0,s.jsx)(_t,{cellId:o,message:{channel:r,data:A,mimetype:N},metadata:c==null?void 0:c[N]})})},N)},t[15]=o,t[16]=r,t[17]=c,t[18]=F):F=t[18],p=k.map(F)}t[0]=i,t[1]=o,t[2]=r,t[3]=c,t[4]=a,t[5]=u,t[6]=m,t[7]=p,t[8]=d,t[9]=g,t[10]=f,t[11]=h,t[12]=v}else u=t[5],m=t[6],p=t[7],d=t[8],g=t[9],f=t[10],h=t[11],v=t[12];if(v!==Symbol.for("react.early_return_sentinel"))return v;let b;t[19]!==m||t[20]!==p?(b=(0,s.jsx)("div",{className:m,children:p}),t[19]=m,t[20]=p,t[21]=b):b=t[21];let S;t[22]!==d||t[23]!==g||t[24]!==b?(S=(0,s.jsxs)("div",{className:d,children:[g,b]}),t[22]=d,t[23]=g,t[24]=b,t[25]=S):S=t[25];let x;return t[26]!==u||t[27]!==f||t[28]!==h||t[29]!==S?(x=(0,s.jsx)(u,{defaultValue:f,orientation:h,children:S}),t[26]=u,t[27]=f,t[28]=h,t[29]=S,t[30]=x):x=t[30],x});Nc.displayName="MimeBundleOutputRenderer",fl=w.memo(e=>{let t=(0,Mn.c)(17),{output:n,cellId:r,stale:o,loading:a,allowExpand:l,forceExpand:i,className:c}=e;if(n===null||n.channel==="output"&&n.data==="")return null;let u=o?"This output is stale":void 0,m=l?Ac:Fc,p;t[0]===r?p=t[1]:(p=Cy.create(r),t[0]=r,t[1]=p);let d=o&&"marimo-output-stale",g=a&&"marimo-output-loading",f;t[2]!==c||t[3]!==d||t[4]!==g?(f=O(d,g,c),t[2]=c,t[3]=d,t[4]=g,t[5]=f):f=t[5];let h;t[6]!==r||t[7]!==n?(h=(0,s.jsx)(_t,{cellId:r,message:n}),t[6]=r,t[7]=n,t[8]=h):h=t[8];let v;return t[9]!==m||t[10]!==r||t[11]!==i||t[12]!==p||t[13]!==f||t[14]!==h||t[15]!==u?(v=(0,s.jsx)(Bc,{children:(0,s.jsx)(m,{title:u,cellId:r,forceExpand:i,id:p,className:f,children:h})}),t[9]=m,t[10]=r,t[11]=i,t[12]=p,t[13]=f,t[14]=h,t[15]=u,t[16]=v):v=t[16],v}),fl.displayName="OutputArea";var Fc=w.forwardRef((e,t)=>{let n=(0,Mn.c)(3),r;return n[0]!==e||n[1]!==t?(r=(0,s.jsx)("div",{ref:t,...e}),n[0]=e,n[1]=t,n[2]=r):r=n[2],r});Fc.displayName="Div";var Ac=w.memo(e=>{let t=(0,Mn.c)(25),{cellId:n,children:r,forceExpand:o,...a}=e,l=(0,w.useRef)(null),[i,c]=sb(n),[u,m]=(0,w.useState)(!1),{hasFullscreen:p}=mx(),d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{if(!l.current)return;let j=l.current,_=new ResizeObserver(()=>{m(j.scrollHeight>j.clientHeight)});return _.observe(j),()=>{_.disconnect()}},t[0]=d):d=t[0],(0,w.useEffect)(d,[a.id]);let g;t[1]===p?g=t[2]:(g=p&&(0,s.jsx)(ze,{content:"Fullscreen",side:"left",children:(0,s.jsx)(de,{"data-testid":"fullscreen-output-button",className:"hover-action hover:bg-muted p-1 hover:border-border border border-transparent",onClick:async()=>{var j;await((j=l.current)==null?void 0:j.requestFullscreen())},onMouseDown:pt.preventFocus,size:"xs",variant:"text",children:(0,s.jsx)(Fl,{className:"size-4 opacity-60 hover:opacity-80",strokeWidth:1.25})})}),t[1]=p,t[2]=g);let f;t[3]!==o||t[4]!==i||t[5]!==u||t[6]!==c?(f=(u||i)&&!o&&(0,s.jsx)(de,{"data-testid":"expand-output-button",className:O("hover:border-border border border-transparent hover:bg-muted",!i&&"hover-action"),onClick:()=>c(!i),size:"xs",variant:"text",children:i?(0,s.jsx)(ze,{content:"Collapse output",side:"left",children:(0,s.jsx)(eb,{className:"h-4 w-4"})}):(0,s.jsx)(ze,{content:"Expand output",side:"left",children:(0,s.jsx)(Or,{className:"h-4 w-4 opacity-60"})})}),t[3]=o,t[4]=i,t[5]=u,t[6]=c,t[7]=f):f=t[7];let h;t[8]!==g||t[9]!==f?(h=(0,s.jsx)("div",{className:"relative print:hidden",children:(0,s.jsxs)("div",{className:"absolute -right-9 top-1 z-1 flex flex-col gap-1",children:[g,f]})}),t[8]=g,t[9]=f,t[10]=h):h=t[10];let v=O("relative fullscreen:bg-background fullscreen:flex fullscreen:items-center fullscreen:justify-center","fullscreen:items-center-safe",a.className),b;t[11]!==o||t[12]!==i?(b=i||o?{maxHeight:"none"}:void 0,t[11]=o,t[12]=i,t[13]=b):b=t[13];let S;t[14]!==r||t[15]!==a||t[16]!==v||t[17]!==b?(S=(0,s.jsx)("div",{...a,"data-cell-role":"output",className:v,ref:l,style:b,children:r}),t[14]=r,t[15]=a,t[16]=v,t[17]=b,t[18]=S):S=t[18];let x;t[19]!==h||t[20]!==S?(x=(0,s.jsxs)("div",{children:[h,S]}),t[19]=h,t[20]=S,t[21]=x):x=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=(0,s.jsx)("div",{className:"increase-pointer-area-x contents print:hidden"}),t[22]=C):C=t[22];let k;return t[23]===x?k=t[24]:(k=(0,s.jsxs)(s.Fragment,{children:[x,C]}),t[23]=x,t[24]=k),k});Ac.displayName="ExpandableOutput";function T1(e){let[t]=e;return t!==Mc}function O1(e){let[t,n]=e;return[t,n]}function V1(e,t){let[n]=e;return n==="text/html"?-1:0}function z1(e){let[t]=e;return(0,s.jsx)(fx,{value:t,className:"flex items-center space-x-2",children:(0,s.jsx)(ze,{delayDuration:200,content:t,side:"right",children:(0,s.jsx)("span",{children:E1(t)})})},t)}var Nn=K(),Ic=e=>{let t=(0,Nn.c)(8),{value:n}=e,r=typeof n=="string"&&(n.startsWith("text/html:")||n.startsWith("image/")||n.startsWith("video/")),[o,a]=(0,w.useState)(!1),l;t[0]===n?l=t[1]:(l=async p=>{p.stopPropagation(),await rn(n),a(!0),setTimeout(()=>a(!1),1e3)},t[0]=n,t[1]=l);let i=l;if(r)return null;let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=O("inline-flex ml-2 copy-button rounded w-6 h-3 justify-center items-center relative"),t[2]=c):c=t[2];let u;t[3]===o?u=t[4]:(u=o?(0,s.jsx)(By,{className:"w-5 h-5 absolute -top-0.5 p-1 hover:bg-muted rounded"}):(0,s.jsx)(Dr,{className:"w-5 h-5 absolute -top-0.5 p-1 hover:bg-muted rounded"}),t[3]=o,t[4]=u);let m;return t[5]!==i||t[6]!==u?(m=(0,s.jsx)("button",{onClick:i,className:c,"aria-label":"Copy to clipboard",type:"button",children:u}),t[5]=i,t[6]=u,t[7]=m):m=t[7],m},Yt=e=>{let t=(0,Nn.c)(5),n;t[0]===e.value?n=t[1]:(n=JSON.stringify(e.value,null,2),t[0]=e.value,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,s.jsx)(Ic,{...e,value:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r},Zt=e=>{let t=(0,Nn.c)(5),n;t[0]===e.value?n=t[1]:(n=oy(e.value),t[0]=e.value,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,s.jsx)(Ic,{...e,value:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r};on=(0,w.memo)(e=>{let t=(0,Nn.c)(23),{data:n,format:r,name:o,valueTypes:a,className:l}=e,i=r===void 0?"auto":r,c=o===void 0?!1:o,u=a===void 0?"python":a,{theme:m}=za();i==="auto"&&(i=D1(n));let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={python:Q1,json:ey},t[0]=p):p=t[0];let d=p;switch(i){case"tree":{let g;t[1]===l?g=t[2]:(g=O("marimo-json-output",l),t[1]=l,t[2]=g);let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f={backgroundColor:"transparent"},t[3]=f):f=t[3];let h=d[u],v;t[4]===n?v=t[5]:(v=ay(n),t[4]=n,t[5]=v);let b;return t[6]!==n||t[7]!==c||t[8]!==g||t[9]!==h||t[10]!==v||t[11]!==m?(b=(0,s.jsx)(Cg,{className:g,rootName:c,theme:m,displayDataTypes:!1,value:n,style:f,collapseStringsAfterLength:Nr,valueTypes:h,groupArraysAfterLength:2**53-1,enableClipboard:!1,maxDisplayLength:v}),t[6]=n,t[7]=c,t[8]=g,t[9]=h,t[10]=v,t[11]=m,t[12]=b):b=t[12],b}case"raw":{let g;t[13]===n?g=t[14]:(g=JSON.stringify(n,null,2),t[13]=n,t[14]=g);let f;return t[15]!==l||t[16]!==g?(f=(0,s.jsx)("pre",{className:l,children:g}),t[15]=l,t[16]=g,t[17]=f):f=t[17],f}default:{kt(i);let g;t[18]===n?g=t[19]:(g=JSON.stringify(n,null,2),t[18]=n,t[19]=g);let f;return t[20]!==l||t[21]!==g?(f=(0,s.jsx)("pre",{className:l,children:g}),t[20]=l,t[21]=g,t[22]=f):f=t[22],f}}}),on.displayName="JsonOutput";function D1(e){return typeof e=="object"&&e?"tree":"raw"}var Nr=100,L1=e=>{let t=(0,Nn.c)(11),[n,r]=(0,w.useState)(!0);if(e.text.length<=Nr){let l;return t[0]===e.text?l=t[1]:(l=(0,s.jsx)("span",{className:"break-all",children:e.text}),t[0]=e.text,t[1]=l),l}if(n){let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>r(!1),t[2]=l):l=t[2];let i;t[3]===e.text?i=t[4]:(i=e.text.slice(0,Nr),t[3]=e.text,t[4]=i);let c=e.text.length>Nr&&"...",u;return t[5]!==i||t[6]!==c?(u=(0,s.jsxs)("span",{className:"cursor-pointer hover:opacity-90 break-all",onClick:l,children:[i,c]}),t[5]=i,t[6]=c,t[7]=u):u=t[7],u}let o;t[8]===Symbol.for("react.memo_cache_sentinel")?(o=()=>r(!0),t[8]=o):o=t[8];let a;return t[9]===e.text?a=t[10]:(a=(0,s.jsx)("span",{className:"cursor-pointer hover:opacity-90 break-all",onClick:o,children:e.text}),t[9]=e.text,t[10]=a),a},Pc={"image/":e=>(0,s.jsx)(hs,{src:e}),"video/":e=>(0,s.jsx)(qo,{src:e}),"text/html:":e=>(0,s.jsx)(Ot,{html:e,inline:!0,alwaysSanitizeHtml:!1}),"text/markdown:":e=>(0,s.jsx)(Ot,{html:e,inline:!0,alwaysSanitizeHtml:!0}),"text/plain+float:":e=>(0,s.jsx)("span",{children:e}),"text/plain+bigint:":e=>(0,s.jsx)("span",{children:e}),"text/plain+set:":e=>(0,s.jsxs)("span",{children:["set",e]}),"text/plain+tuple:":e=>(0,s.jsx)("span",{children:e}),"text/plain:":e=>(0,s.jsx)(L1,{text:e}),"application/json:":e=>(0,s.jsx)(on,{data:JSON.parse(e),format:"auto"}),"application/":(e,t)=>(0,s.jsx)(_t,{message:{channel:"output",data:e,mimetype:t},renderFallback:()=>(0,s.jsxs)("span",{children:[t,":",e]})})},H1=Object.entries(Pc).map(([e,t])=>({is:n=>typeof n=="string"&&n.startsWith(e),PostComponent:Zt,Component:n=>ty(n.value,t)})),B1=De({...Bo,PostComponent:Zt,Component:({value:e})=>(0,s.jsx)("span",{children:e?"True":"False"})}),G1=De({...Go,PostComponent:Zt,Component:()=>(0,s.jsx)("span",{children:"None"})}),W1=De({...Bo,PostComponent:Yt}),q1=De({...Go,PostComponent:Yt,Component:()=>(0,s.jsx)("span",{children:"null"})}),K1=De({...pr,is:e=>Py(e),PostComponent:Zt,Component:({value:e})=>(0,s.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-link hover:underline",children:e})}),$c=De({...ds,PostComponent:Yt}),U1=De({...us,PostComponent:Yt}),J1=De({...pr,PostComponent:Zt}),X1=De({...It,PreComponent:e=>(0,s.jsxs)(s.Fragment,{children:[It.PreComponent&&(0,s.jsx)(It.PreComponent,{...e}),(0,s.jsx)(Zt,{...e})]})}),Y1=De({...It,PreComponent:e=>(0,s.jsxs)(s.Fragment,{children:[It.PreComponent&&(0,s.jsx)(It.PreComponent,{...e}),(0,s.jsx)(Yt,{...e})]})}),Z1=De({...pr,PostComponent:Yt}),Q1=[$c,B1,G1,...H1,K1,X1,J1].reverse(),ey=[$c,U1,W1,q1,Y1,Z1].reverse();function Fn(e){return Ec(e)[0]}function Ec(e){let t=e.indexOf(":");return t===-1?[e,void 0]:[e.slice(t+1),e.slice(0,t)]}function ty(e,t){let[n,r]=Ec(e);return r?t(n,r):(0,s.jsx)("span",{children:e})}var ny=Object.keys(Pc),wt="",St="";function ry(e,t){return t==null?`${wt}None${St}`:typeof t=="object"?t:typeof t=="bigint"?`${wt}${t}${St}`:Array.isArray(t)?t:typeof t=="string"?t.startsWith("text/plain+float:")?`${wt}${Fn(t)}${St}`:t.startsWith("text/plain+bigint:")?`${wt}${BigInt(Fn(t))}${St}`:t.startsWith("text/plain+tuple:")?`${wt}(${Fn(t).slice(1,-1)})${St}`:t.startsWith("text/plain+set:")?`${wt}{${Fn(t).slice(1,-1)}}${St}`:ny.some(n=>t.startsWith(n))?Fn(t):t:typeof t=="boolean"?`${wt}${t?"True":"False"}${St}`:t}function oy(e){return JSON.stringify(e,ry,2).replaceAll(`"${wt}`,"").replaceAll(`${St}"`,"")}function ay(e){if(Array.isArray(e)){let t=e.slice(0,15),n=0;for(let r of t)if(Array.isArray(r)){let o=r.slice(0,5);for(let a of o)if(Array.isArray(a))return 5;n=Math.max(n,r.length)}return n<=20?void 0:n>=50?5:10}}});export{En as $,iu as A,Ka as B,Ua as C,Ja as D,Xa as E,su as F,Br as G,cu as H,Gr as I,uu as J,Ot as K,Ya as L,Wr as M,Za as N,du as O,mu as P,Qa as Q,el as R,tl as S,nl as T,pu as U,fu as V,rl as W,ol as X,Tn as Y,al as Z,ll as _,Mx as __tla,il as a,sl as b,gu as c,cl as d,ul as et,dl as f,qr as g,Vt as h,hu as i,yu as j,ml as k,pl as l,Kr as m,fl as n,gl as nt,bu as o,hl as p,yl as q,_t as r,xu as s,on as t,bl as tt,xl as u,vl as v,wl as w,Sl as x,vu as y,Cl as z}; diff --git a/docs/assets/LazyAnyLanguageCodeMirror-Dr2G5gxJ.js b/docs/assets/LazyAnyLanguageCodeMirror-Dr2G5gxJ.js new file mode 100644 index 0000000..87584dd --- /dev/null +++ b/docs/assets/LazyAnyLanguageCodeMirror-Dr2G5gxJ.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./any-language-editor-CK5cbqaZ.js","./copy-icon-jWsqdLn1.js","./button-B8cGZzP5.js","./hotkeys-uKX61F1_.js","./useEventListener-COkmyg1v.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./cn-C1rgT0yh.js","./clsx-D0MtrJOx.js","./jsx-runtime-DN_bIXfG.js","./tooltip-CvjcEpZC.js","./Combination-D1TsGrBC.js","./react-dom-C9fstfnp.js","./dist-CBrDuocE.js","./use-toast-Bzf3rpev.js","./copy-DRhpWiOq.js","./check-CrAQug3q.js","./createLucideIcon-CW2xpJ57.js","./copy-gBVL4NN-.js","./error-banner-Cq4Yn1WZ.js","./alert-dialog-jcHA5geR.js","./errors-z7WpYca5.js","./zod-Cg4WLWh2.js","./dist-cDyKKhtR.js","./dist-CAcX026F.js","./dist-BVf1IY4_.js","./dist-CsayQVA2.js","./dist-DKNOF5xd.js","./dist-CVj-_Iiz.js","./dist-Cq_4nPfh.js","./dist-CebZ69Am.js","./dist-gkLBSkCp.js","./dist-HGZzCB0y.js","./dist-ClsPkyB_.js","./dist-RKnr9SNh.js","./dist-BZPaM2NB.js","./dist-CAJqQUSI.js","./dist-CGGpiWda.js","./dist-BsIAU6bk.js","./esm-D2_Kx6xF.js","./extends-B9D0JO9U.js","./objectWithoutPropertiesLoose-CboCOq4o.js","./dist-CI6_zMIl.js","./esm-BranOiPJ.js","./dist-BnNY29MI.js","./dist-ByyW-iwc.js","./dist-Cp3Es6uA.js","./dist-BuhT82Xx.js","./dist-zq3bdql0.js","./dist-CQhcYtN0.js","./apl-C1zdcQvI.js","./asciiarmor-B--OGpM1.js","./asn1-D2UnMTL5.js","./brainfuck-DrjMyC8V.js","./clike-CCdVFz-6.js","./clojure-BjmTMymc.js","./cmake-CgqRscDS.js","./cobol-DZNhVUeB.js","./coffeescript-Qp7k0WHA.js","./commonlisp-De6q7_JS.js","./crystal-BGXRJSF-.js","./css-CNKF6pC6.js","./cypher-BUDAQ7Fk.js","./d-BIAtzqpc.js","./diff-aadYO3ro.js","./dtd-uNeIl1u0.js","./dylan-CrZBaY0F.js","./ecl-ByTsrrt6.js","./eiffel-DRhIEZQi.js","./elm-BBPeNBgT.js","./erlang-EMEOk6kj.js","./factor-D7Lm0c37.js","./simple-mode-B3UD3n_i.js","./forth-BdKkHzwH.js","./fortran-DxGNM9Kj.js","./gas-hf-H6Zc4.js","./gherkin-D1O_VlrS.js","./groovy-Budmgm6I.js","./haskell-CDrggYs0.js","./haxe-CPnBkTzf.js","./idl-BTZd0S94.js","./javascript-Czx24F5X.js","./julia-OeEN0FvJ.js","./livescript-DLmsZIyI.js","./lua-BM3BXoTQ.js","./mathematica-BbPQ8-Rw.js","./mbox-D2_16jOO.js","./mirc-CzS_wutP.js","./mllike-D9b50pH5.js","./modelica-C8E83p8w.js","./mscgen-Dk-3wFOB.js","./mumps-BRQASZoy.js","./nsis-C5Oj2cBc.js","./ntriples-D6VU4eew.js","./octave-xff1drIF.js","./oz-CRz8coQc.js","./pascal-DZhgfws7.js","./perl-BKXEkch3.js","./pig-rvFhLOOE.js","./powershell-Db7zgjV-.js","./properties-BF6anRzc.js","./protobuf-De4giNfG.js","./pug-CzQlD5xP.js","./puppet-CMgcPW4L.js","./python-DOZzlkV_.js","./q-8XMigH-s.js","./r-BuEncdBJ.js","./rpm-DnfrioeJ.js","./ruby-C9f8lbWZ.js","./sas-TQvbwzLU.js","./scheme-DCJ8_Fy0.js","./shell-D8pt0LM7.js","./sieve-DGXZ82l_.js","./smalltalk-DyRmt5Ka.js","./sparql-CLILkzHY.js","./stex-0ac7Aukl.js","./stylus-BCmjnwMM.js","./swift-BkcVjmPv.js","./tcl-B3wbfJh2.js","./textile-D12VShq0.js","./toml-XXoBgyAV.js","./troff-D9lX0BP4.js","./ttcn-cfg-pqnJIxH9.js","./ttcn-DQ5upjvU.js","./turtle-BUVCUZMx.js","./vb-CgKmZtlp.js","./vbscript-mB-oVfPH.js","./velocity-CrvX3BFT.js","./verilog-C0Wzs7-f.js","./vhdl-s8UGv0A3.js","./webidl-GTmlnawS.js","./xquery-Bq3_mXJv.js","./yacas-B1P8UzPS.js","./z80-C8FzIVqi.js"])))=>i.map(i=>d[i]); +import{s as e}from"./chunk-LvLJmgfZ.js";import{t as i}from"./react-BGmjiNul.js";import{t as o}from"./createLucideIcon-CW2xpJ57.js";import{t as m}from"./preload-helper-BW0IMuFq.js";let r,a,s=(async()=>{r=o("between-horizontal-start",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]),a=(0,e(i(),1).lazy)(()=>m(()=>import("./any-language-editor-CK5cbqaZ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134]),import.meta.url))})();export{s as __tla,r as n,a as t}; diff --git a/docs/assets/MarimoErrorOutput-DAK6volb.js b/docs/assets/MarimoErrorOutput-DAK6volb.js new file mode 100644 index 0000000..e781618 --- /dev/null +++ b/docs/assets/MarimoErrorOutput-DAK6volb.js @@ -0,0 +1,7 @@ +import{s as Z}from"./chunk-LvLJmgfZ.js";import{d as ye,f as ve,l as Ne,u as be}from"./useEvent-DlWF5OMa.js";import{t as we}from"./react-BGmjiNul.js";import{Br as G,J as ke,Zr as Ie,_n as $e,ln as _e,w as Fe,y as Ae,zn as Te,zr as Ce}from"./cells-CmJW_FeD.js";import{t as E}from"./compiler-runtime-DeeZ7FnK.js";import{t as Se}from"./invariant-C6yE60hi.js";import{r as ze}from"./utils-Czt8B2GX.js";import{t as Me}from"./jsx-runtime-DN_bIXfG.js";import{r as K,t as $}from"./button-B8cGZzP5.js";import{t as X}from"./cn-C1rgT0yh.js";import{t as H}from"./createLucideIcon-CW2xpJ57.js";import{_ as qe}from"./select-D9lTzMzP.js";import{a as Ee,p as Pe,r as Le,t as We}from"./dropdown-menu-BP4_BZLr.js";import{a as Be,n as Ve}from"./state-B8vBQnkH.js";import{c as Y,n as Qe}from"./datasource-CCq9qyVG.js";import{a as De}from"./dist-RKnr9SNh.js";import{t as ee}from"./tooltip-CvjcEpZC.js";import{a as Oe,i as He,n as Ue,r as Je}from"./multi-map-CQd4MZr5.js";import{t as te}from"./kbd-Czc5z_04.js";import{t as A}from"./links-DNmjkr65.js";import{r as Re,t as Ze}from"./alert-BEdExd6A.js";import{o as Ge,t as Ke}from"./useInstallPackage-RldLPyJs.js";import{n as b}from"./cell-link-D7bPw7Fz.js";var Xe=H("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),T=H("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]),re=H("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);function Ye(r){let e=null,s=r.cursor();do s.name==="ExpressionStatement"&&(e=s.node);while(s.next());return e}function et(r){let e=r.split(` +`),s=" ",n=Ye(De.parse(r));if(!n)return["def _():",...U(e,s),`${s}return`,"","","_()"].join(` +`);let i=r.slice(0,n.from).trim(),l=r.slice(n.from).trim(),a=i.split(` +`),c=l.split(` +`);return["def _():",...U(a,s),`${s}return ${c[0]}`,...U(c.slice(1),s),"","","_()"].join(` +`)}function U(r,e){if(r.length===1&&r[0]==="")return[];let s=[];for(let n of r)n===""?s.push(""):s.push(e+n);return s}function tt(r,e){var s;if(r.type==="multiple-defs")return[{title:"Fix: Wrap in a function",description:"Make this cell's variables local by wrapping the cell in a function.",fixType:"manual",onFix:async n=>{Se(n.editor,"Editor is null");let i=et(n.editor.state.doc.toString());n.editor.dispatch({changes:{from:0,to:n.editor.state.doc.length,insert:i}})}}];if(r.type==="exception"&&r.exception_type==="NameError"){let n=(s=r.msg.match(/name '(.+)' is not defined/))==null?void 0:s[1];if(!n||!(n in se))return[];let i=rt(n);return[{title:`Fix: Add '${i}'`,description:"Add a new cell for the missing import",fixType:"manual",onFix:async l=>{l.addCodeBelow(i)}}]}return r.type==="sql-error"&&e.aiEnabled?[{title:"Fix with AI",description:"Fix the SQL statement",fixType:"ai",onFix:async n=>{var a;let i=Qe(n.cellId),l=`Fix the SQL statement: ${r.msg}.`;i&&(l+=` +Database schema: ${i}`),(a=n.aiFix)==null||a.setAiCompletionCell({cellId:n.cellId,initialPrompt:l,triggerImmediately:n.aiFix.triggerFix})}}]:[]}function rt(r){let e=se[r];return e===r?`import ${e}`:`import ${e} as ${r}`}var se={mo:"marimo",alt:"altair",bokeh:"bokeh",dask:"dask",np:"numpy",pd:"pandas",pl:"polars",plotly:"plotly",plt:"matplotlib.pyplot",px:"plotly.express",scipy:"scipy",sk:"sklearn",sns:"seaborn",stats:"scipy.stats",tf:"tensorflow",torch:"torch",xr:"xarray",dt:"datetime",json:"json",math:"math",os:"os",re:"re",sys:"sys"},st=E(),nt=Ie("marimo:ai-autofix-mode","autofix",$e);function lt(){let r=(0,st.c)(3),[e,s]=Ne(nt),n;return r[0]!==e||r[1]!==s?(n={fixMode:e,setFixMode:s},r[0]=e,r[1]=s,r[2]=n):n=r[2],n}var J=E(),t=Z(Me(),1);const N=r=>{let e=(0,J.c)(21),{errors:s,cellId:n,className:i}=r,l=ve(),{createNewCell:a}=Fe(),c=be(ze),o;if(e[0]!==c||e[1]!==s){let x;e[3]===c?x=e[4]:(x=y=>tt(y,{aiEnabled:c}),e[3]=c,e[4]=x),o=s.flatMap(x),e[0]=c,e[1]=s,e[2]=o}else o=e[2];let m=o,p=ye(Ve);if(m.length===0)return null;let d=m[0],f;e[5]!==n||e[6]!==a||e[7]!==d||e[8]!==p||e[9]!==l?(f=x=>{var w;let y=(w=l.get(Ae).cellHandles[n].current)==null?void 0:w.editorView;d.onFix({addCodeBelow:_=>{a({cellId:n,autoFocus:!1,before:!1,code:_})},editor:y,cellId:n,aiFix:{setAiCompletionCell:p,triggerFix:x}}),y==null||y.focus()},e[5]=n,e[6]=a,e[7]=d,e[8]=p,e[9]=l,e[10]=f):f=e[10];let u=f,j;e[11]===i?j=e[12]:(j=X("my-2",i),e[11]=i,e[12]=j);let h;e[13]!==d.description||e[14]!==d.fixType||e[15]!==d.title||e[16]!==u?(h=d.fixType==="ai"?(0,t.jsx)(oe,{tooltip:d.description,openPrompt:()=>u(!1),applyAutofix:()=>u(!0)}):(0,t.jsx)(ee,{content:d.description,align:"start",children:(0,t.jsxs)($,{size:"xs",variant:"outline",className:"font-normal",onClick:()=>u(!1),children:[(0,t.jsx)(Y,{className:"h-3 w-3 mr-2"}),d.title]})}),e[13]=d.description,e[14]=d.fixType,e[15]=d.title,e[16]=u,e[17]=h):h=e[17];let g;return e[18]!==j||e[19]!==h?(g=(0,t.jsx)("div",{className:j,children:h}),e[18]=j,e[19]=h,e[20]=g):g=e[20],g};var ne=Be,le=Y,ie="Suggest a prompt",ae="Fix with AI";const oe=r=>{let e=(0,J.c)(21),{tooltip:s,openPrompt:n,applyAutofix:i}=r,{fixMode:l,setFixMode:a}=lt(),c=l==="prompt"?n:i,o;e[0]===l?o=e[1]:(o=l==="prompt"?(0,t.jsx)(ne,{className:"h-3 w-3 mr-2 mb-0.5"}):(0,t.jsx)(le,{className:"h-3 w-3 mr-2 mb-0.5"}),e[0]=l,e[1]=o);let m=l==="prompt"?ie:ae,p;e[2]!==c||e[3]!==o||e[4]!==m?(p=(0,t.jsxs)($,{size:"xs",variant:"outline",className:"font-normal rounded-r-none border-r-0",onClick:c,children:[o,m]}),e[2]=c,e[3]=o,e[4]=m,e[5]=p):p=e[5];let d;e[6]!==p||e[7]!==s?(d=(0,t.jsx)(ee,{content:s,align:"start",children:p}),e[6]=p,e[7]=s,e[8]=d):d=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(Pe,{asChild:!0,children:(0,t.jsx)($,{size:"xs",variant:"outline",className:"rounded-l-none px-2","aria-label":"Fix options",children:(0,t.jsx)(qe,{className:"h-3 w-3"})})}),e[9]=f):f=e[9];let u;e[10]!==l||e[11]!==a?(u=()=>{a(l==="prompt"?"autofix":"prompt")},e[10]=l,e[11]=a,e[12]=u):u=e[12];let j=l==="prompt"?"autofix":"prompt",h;e[13]===j?h=e[14]:(h=(0,t.jsx)(it,{mode:j}),e[13]=j,e[14]=h);let g;e[15]!==u||e[16]!==h?(g=(0,t.jsxs)(We,{children:[f,(0,t.jsx)(Le,{align:"end",className:"w-56",children:(0,t.jsx)(Ee,{className:"flex items-center gap-2",onClick:u,children:h})})]}),e[15]=u,e[16]=h,e[17]=g):g=e[17];let x;return e[18]!==g||e[19]!==d?(x=(0,t.jsxs)("div",{className:"flex",children:[d,g]}),e[18]=g,e[19]=d,e[20]=x):x=e[20],x};var it=r=>{let e=(0,J.c)(12),{mode:s}=r,n;e[0]===s?n=e[1]:(n=s==="prompt"?(0,t.jsx)(ne,{className:"h-4 w-4"}):(0,t.jsx)(le,{className:"h-4 w-4"}),e[0]=s,e[1]=n);let i=n,l=s==="prompt"?ie:ae,a=s==="prompt"?"Edit the prompt before applying":"Apply AI fixes automatically",c;e[2]===l?c=e[3]:(c=(0,t.jsx)("span",{className:"font-medium",children:l}),e[2]=l,e[3]=c);let o;e[4]===a?o=e[5]:(o=(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:a}),e[4]=a,e[5]=o);let m;e[6]!==c||e[7]!==o?(m=(0,t.jsxs)("div",{className:"flex flex-col",children:[c,o]}),e[6]=c,e[7]=o,e[8]=m):m=e[8];let p;return e[9]!==i||e[10]!==m?(p=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[i,m]}),e[9]=i,e[10]=m,e[11]=p):p=e[11],p},ce=/(https?:\/\/\S+)/,at=/\.(png|jpe?g|gif|webp|svg|ico)(\?.*)?$/i,de=/^data:image\//i,ot=["avatars.githubusercontent.com"];function me(r){return de.test(r)?[{type:"image",url:r}]:r.split(ce).filter(e=>e.trim()!=="").map(e=>ce.test(e)?at.test(e)||de.test(e)||ot.some(s=>e.includes(s))?{type:"image",url:e}:{type:"url",url:e}:{type:"text",value:e})}var pe=E(),P=Z(we(),1),ct=new ke;const R=r=>{let e=RegExp("\x1B\\[[0-9;]*m","g");return r.replaceAll(e,"")};var ue=/(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi;function dt(r){ue.lastIndex=0;let e=ue.exec(r);if(!e)return null;let s=e.index+e[0].length,n=r.slice(s).split(/\s+/),i="",l=0;for(let c of n){let o=c.trim();if(!o)continue;if(o.startsWith("-")){l+=o.length+1;continue}let m=o.match(/^[\w,.[\]-]+/);if(m){i=m[0];break}break}if(!i)return null;let a=s+l+i.length;return{package:i,endIndex:a}}function k(r,e=""){if(!r)return null;if(!/https?:\/\//.test(r))return r;let s=me(r);return s.length===1&&s[0].type==="text"?r:(0,t.jsx)(t.Fragment,{children:s.map((n,i)=>{let l=e?`${e}-${i}`:i;if(n.type==="url"){let a=R(n.url);return(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:K.stopPropagation(),className:"text-link hover:underline",children:a},l)}if(n.type==="image"){let a=R(n.url);return(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:K.stopPropagation(),className:"text-link hover:underline",children:a},l)}return(0,t.jsx)(P.Fragment,{children:n.value},l)})})}var mt=r=>{let e=(0,pe.c)(6),{packages:s,children:n}=r,{handleInstallPackages:i}=Ke(),l;e[0]!==i||e[1]!==s?(l=c=>{i(s),c.preventDefault()},e[0]=i,e[1]=s,e[2]=l):l=e[2];let a;return e[3]!==n||e[4]!==l?(a=(0,t.jsx)("button",{onClick:l,className:"text-link hover:underline",type:"button",children:n}),e[3]=n,e[4]=l,e[5]=a):a=e[5],a};const pt=r=>{if(!(r instanceof G.Text))return;let e=R(r.data);if(!/(pip\s+install|uv\s+add|uv\s+pip\s+install)/i.test(e))return;let s=[],n=/(pip\s+install|uv\s+add|uv\s+pip\s+install)\s+/gi,i;for(;(i=n.exec(e))!==null;){let c=i.index,o=dt(e.slice(c));o&&s.push({match:i,result:o})}if(s.length===0)return;let l=[],a=0;if(s.forEach((c,o)=>{let{match:m,result:p}=c,d=m.index,f=d+p.endIndex;if(a{if(!(r instanceof G.Text))return;let e=r.data;if(!/https?:\/\//.test(e))return;let s=k(e);if(typeof s!="string")return(0,t.jsx)(t.Fragment,{children:s})},ht=(...r)=>e=>{for(let s of r){let n=s(e);if(n!==void 0)return n}},xt=(r,e)=>(0,t.jsx)("span",{children:Ce(ct.ansi_to_html(r),{replace:s=>e(s)})}),ft=r=>{let e=(0,pe.c)(4),{text:s}=r,n;e[0]===s?n=e[1]:(n=xt(s,ht(pt,ut)),e[0]=s,e[1]=n);let i=n,l;return e[2]===i?l=e[3]:(l=(0,t.jsx)(t.Fragment,{children:i}),e[2]=i,e[3]=l),l};var he=E(),I=r=>{let e=(0,he.c)(10),s=r.title??"Tip",n;e[0]===s?n=e[1]:(n=(0,t.jsx)(Oe,{className:"pt-2 pb-2 font-normal",children:s}),e[0]=s,e[1]=n);let i;e[2]===r.children?i=e[3]:(i=(0,t.jsx)(Je,{className:"mr-24 text-[0.84375rem]",children:r.children}),e[2]=r.children,e[3]=i);let l;e[4]!==n||e[5]!==i?(l=(0,t.jsxs)(He,{value:"item-1",className:"text-muted-foreground",children:[n,i]}),e[4]=n,e[5]=i,e[6]=l):l=e[6];let a;return e[7]!==r.className||e[8]!==l?(a=(0,t.jsx)(Ue,{type:"single",collapsible:!0,className:r.className,children:l}),e[7]=r.className,e[8]=l,e[9]=a):a=e[9],a};const jt=r=>{let e=(0,he.c)(31),{errors:s,cellId:n,className:i}=r,l=_e(),a="This cell wasn't run because it has errors",c="destructive",o="text-error";if(s.some(gt))a="Interrupted";else if(s.some(yt))a="An internal error occurred";else if(s.some(vt))a="Ancestor prevented from running",c="default",o="text-secondary-foreground";else if(s.some(Nt))a="Ancestor stopped",c="default",o="text-secondary-foreground";else if(s.some(bt))a="SQL error";else{let x;e[0]===s?x=e[1]:(x=s.find(wt),e[0]=s,e[1]=x);let y=x;y&&"exception_type"in y&&(a=y.exception_type)}let m,p,d,f,u,j;if(e[2]!==c||e[3]!==n||e[4]!==l||e[5]!==i||e[6]!==s||e[7]!==o||e[8]!==a){let x=s.filter(kt),y=s.filter(It),w=s.filter($t),_=s.filter(_t),L=s.filter(Ft),C=s.filter(At),S=s.filter(Tt),W=s.filter(Ct),B=s.filter(St),V=s.filter(zt),F=s.filter(Mt),Q=s.filter(qt),D=s.filter(Et),z;e[15]===l?z=e[16]:(z=()=>{l.openApplication("scratchpad")},e[15]=l,e[16]=z);let xe=z,fe=()=>{let v=[];if(F.length>0||Q.length>0){let q=F.some(Pt),ge=!q&&F.some(Lt);v.push((0,t.jsxs)("div",{children:[F.map(Wt),Q.map(Bt),q&&(0,t.jsxs)($,{size:"xs",variant:"outline",className:"mt-2 font-normal",onClick:()=>Ge(l),children:[(0,t.jsx)(Xe,{className:"h-3.5 w-3.5 mr-1.5 mb-0.5"}),(0,t.jsx)("span",{children:"Open package manager"})]}),ge&&(0,t.jsxs)($,{size:"xs",variant:"outline",className:"mt-2 font-normal",onClick:()=>l.openApplication("terminal"),children:[(0,t.jsx)(re,{className:"h-3.5 w-3.5 mr-1.5"}),(0,t.jsx)("span",{children:"Open terminal"})]}),n&&(0,t.jsx)(N,{errors:[...F,...Q],cellId:n})]},"syntax-unknown"))}if(x.length>0&&v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"The setup cell cannot be run because it has references."}),(0,t.jsx)("ul",{className:"list-disc",children:x.flatMap(Vt)}),n&&(0,t.jsx)(N,{errors:x,cellId:n}),(0,t.jsxs)(I,{title:"Why can't the setup cell have references?",className:"mb-2",children:[(0,t.jsx)("p",{className:"pb-2",children:"The setup cell contains logic that must be run before any other cell runs, including top-level imports used by top-level functions. For this reason, it can't refer to other cells' variables."}),(0,t.jsx)("p",{className:"py-2",children:"Try simplifying the setup cell to only contain only necessary variables."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-setup",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"setup-refs")),y.length>0&&v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"This cell is in a cycle."}),(0,t.jsx)("ul",{className:"list-disc",children:y.flatMap(Qt)}),n&&(0,t.jsx)(N,{errors:y,cellId:n}),(0,t.jsxs)(I,{title:"What are cycles and how do I resolve them?",className:"mb-2",children:[(0,t.jsx)("p",{className:"pb-2",children:"An example of a cycle is if one cell declares a variable 'a' and reads 'b', and another cell declares 'b' and and reads 'a'. Cycles like this make it impossible for marimo to know how to run your cells, and generally suggest that your code has a bug."}),(0,t.jsx)("p",{className:"py-2",children:"Try merging these cells into a single cell to eliminate the cycle."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-cycles",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"cycle")),w.length>0){let q=w[0].name;v.push((0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground font-medium",children:"This cell redefines variables from other cells."}),w.map(Ot),n&&(0,t.jsx)(N,{errors:w,cellId:n}),(0,t.jsxs)(I,{title:"Why can't I redefine variables?",children:[(0,t.jsx)("p",{className:"pb-2",children:"marimo requires that each variable is defined in just one cell. This constraint enables reactive and reproducible execution, arbitrary cell reordering, seamless UI elements, execution as a script, and more."}),(0,t.jsxs)("p",{className:"py-2",children:["Try merging this cell with the mentioned cells or wrapping it in a function. Alternatively, prefix variables with an underscore (e.g., ",(0,t.jsxs)(te,{className:"inline",children:["_",q]}),"). to make them private to this cell."]}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-multiple-definitions",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]}),(0,t.jsx)(I,{title:"Need a scratchpad?",children:(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsxs)($,{size:"xs",variant:"link",className:"my-2 font-normal mx-0 px-0",onClick:xe,children:[(0,t.jsx)(Te,{className:"h-3"}),(0,t.jsx)("span",{children:"Try the scratchpad"})]}),(0,t.jsx)("span",{children:"to experiment without restrictions on variable names."})]})})]},"multiple-defs"))}return _.length>0&&v.push((0,t.jsxs)("div",{children:[_.map(Ht),n&&(0,t.jsx)(N,{errors:_,cellId:n}),(0,t.jsxs)(I,{title:"Why can't I use `import *`?",children:[(0,t.jsx)("p",{className:"pb-2",children:"Star imports are incompatible with marimo's git-friendly file format and reproducible reactive execution."}),(0,t.jsx)("p",{className:"py-2",children:"marimo's Python file format stores code in functions, so notebooks can be imported as regular Python modules without executing all their code. But Python disallows `import *` everywhere except at the top-level of a module."}),(0,t.jsx)("p",{className:"py-2",children:"Star imports would also silently add names to globals, which would be incompatible with reactive execution."}),(0,t.jsxs)("p",{className:"py-2",children:[(0,t.jsxs)(A,{href:"https://links.marimo.app/errors-import-star",children:["Learn more at our docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),"."]})]})]},"import-star")),L.length>0&&v.push((0,t.jsxs)("div",{children:[L.map(Ut),n&&(0,t.jsx)(N,{errors:L,cellId:n})]},"interruption")),C.length>0&&v.push((0,t.jsxs)("ul",{children:[C.map(Jt),C.some(Rt)&&(0,t.jsx)(I,{children:"Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."}),n&&(0,t.jsx)(N,{errors:C,cellId:n})]},"exception")),S.length>0&&v.push((0,t.jsxs)("ul",{children:[S.map(Zt),n&&(0,t.jsx)(N,{errors:S,cellId:n}),(0,t.jsx)(I,{children:S.some(Gt)?"Ensure that the referenced cells define the required variables, or turn off strict execution.":"Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."})]},"strict-exception")),W.length>0&&v.push((0,t.jsxs)("div",{children:[W.map(Kt),n&&(0,t.jsx)(N,{errors:W,cellId:n})]},"internal")),B.length>0&&v.push((0,t.jsxs)("div",{children:[B.map(Xt),n&&(0,t.jsx)(N,{errors:B,cellId:n})]},"ancestor-prevented")),V.length>0&&v.push((0,t.jsxs)("div",{children:[V.map(Yt),n&&(0,t.jsx)(N,{errors:V,cellId:n})]},"ancestor-stopped")),D.length>0&&v.push((0,t.jsxs)("div",{children:[D.map(er),n&&(0,t.jsx)(N,{errors:D,cellId:n,className:"mt-2.5"})]},"sql-errors")),v},O=`font-code font-medium tracking-wide ${o}`,M;e[17]!==O||e[18]!==a?(M=(0,t.jsx)(Re,{className:O,children:a}),e[17]=O,e[18]=a,e[19]=M):M=e[19];let je=M;m=Ze,f=c,e[20]===i?u=e[21]:(u=X("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4",i),e[20]=i,e[21]=u),j=je,p="flex flex-col gap-8",d=fe(),e[2]=c,e[3]=n,e[4]=l,e[5]=i,e[6]=s,e[7]=o,e[8]=a,e[9]=m,e[10]=p,e[11]=d,e[12]=f,e[13]=u,e[14]=j}else m=e[9],p=e[10],d=e[11],f=e[12],u=e[13],j=e[14];let h;e[22]!==p||e[23]!==d?(h=(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:p,children:d})}),e[22]=p,e[23]=d,e[24]=h):h=e[24];let g;return e[25]!==m||e[26]!==f||e[27]!==u||e[28]!==j||e[29]!==h?(g=(0,t.jsxs)(m,{variant:f,className:u,children:[j,h]}),e[25]=m,e[26]=f,e[27]=u,e[28]=j,e[29]=h,e[30]=g):g=e[30],g};function gt(r){return r.type==="interruption"}function yt(r){return r.type==="internal"}function vt(r){return r.type==="ancestor-prevented"}function Nt(r){return r.type==="ancestor-stopped"}function bt(r){return r.type==="sql-error"}function wt(r){return r.type==="exception"}function kt(r){return r.type==="setup-refs"}function It(r){return r.type==="cycle"}function $t(r){return r.type==="multiple-defs"}function _t(r){return r.type==="import-star"}function Ft(r){return r.type==="interruption"}function At(r){return r.type==="exception"}function Tt(r){return r.type==="strict-exception"}function Ct(r){return r.type==="internal"}function St(r){return r.type==="ancestor-prevented"}function zt(r){return r.type==="ancestor-stopped"}function Mt(r){return r.type==="syntax"}function qt(r){return r.type==="unknown"}function Et(r){return r.type==="sql-error"}function Pt(r){return r.msg.includes("!pip")}function Lt(r){return r.msg.includes("use os.subprocess")}function Wt(r,e){return(0,t.jsx)("pre",{children:k(r.msg,`syntax-${e}`)},`syntax-${e}`)}function Bt(r,e){return(0,t.jsx)("pre",{children:k(r.msg,`unknown-${e}`)},`unknown-${e}`)}function Vt(r,e){return r.edges_with_vars.map((s,n)=>(0,t.jsxs)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:[(0,t.jsx)(b,{cellId:s[0]}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[": "," ",s[1].length===1?s[1][0]:s[1].join(", ")]})]},`setup-refs-${e}-${n}`))}function Qt(r,e){return r.edges_with_vars.map((s,n)=>(0,t.jsxs)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:[(0,t.jsx)(b,{cellId:s[0]}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" -> ",s[1].length===1?s[1][0]:s[1].join(", ")," -> "]}),(0,t.jsx)(b,{cellId:s[2]})]},`cycle-${e}-${n}`))}function Dt(r,e){return(0,t.jsx)("li",{className:"my-0.5 ml-8 text-muted-foreground/40",children:(0,t.jsx)(b,{cellId:r})},`cell-${e}`)}function Ot(r,e){return(0,t.jsxs)(P.Fragment,{children:[(0,t.jsx)("p",{className:"text-muted-foreground mt-2",children:`'${r.name}' was also defined by:`}),(0,t.jsx)("ul",{className:"list-disc",children:r.cells.map(Dt)})]},`multiple-defs-${e}`)}function Ht(r,e){return(0,t.jsx)("p",{className:"text-muted-foreground",children:r.msg},`import-star-${e}`)}function Ut(r,e){return(0,t.jsx)("p",{children:"This cell was interrupted and needs to be re-run."},`interruption-${e}`)}function Jt(r,e){return r.exception_type==="NameError"&&r.msg.startsWith("name 'mo'")?(0,t.jsx)("li",{className:"my-2",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:"name 'mo' is not defined."}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-2",children:["The marimo module (imported as"," ",(0,t.jsx)(te,{className:"inline",children:"mo"}),") is required for Markdown, SQL, and UI elements."]})]})},`exception-${e}`):r.exception_type==="NameError"&&r.msg.startsWith("name '_")?(0,t.jsx)("li",{className:"my-2",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:r.msg}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-2",children:["Variables prefixed with an underscore are local to a cell"," ","(",(0,t.jsxs)(A,{href:"https://links.marimo.app/local-variables",children:["docs"," ",(0,t.jsx)(T,{size:"0.75rem",className:"inline"})]}),")."]}),(0,t.jsx)("div",{className:"text-muted-foreground mt-2",children:"See the console area for a traceback."})]})},`exception-${e}`):(0,t.jsx)("li",{className:"my-2",children:r.raising_cell==null?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:k(r.msg,`exception-${e}`)}),(0,t.jsx)("div",{className:"text-muted-foreground mt-2",children:"See the console area for a traceback."})]}):(0,t.jsxs)("div",{children:[k(r.msg,`exception-${e}`),(0,t.jsx)(b,{cellId:r.raising_cell})]})},`exception-${e}`)}function Rt(r){return r.raising_cell!=null}function Zt(r,e){return(0,t.jsx)("li",{className:"my-2",children:r.blamed_cell==null?(0,t.jsx)("p",{children:r.msg}):(0,t.jsxs)("div",{children:[r.msg,(0,t.jsx)(b,{cellId:r.blamed_cell})]})},`strict-exception-${e}`)}function Gt(r){return r.blamed_cell!=null}function Kt(r,e){return(0,t.jsx)("p",{children:r.msg},`internal-${e}`)}function Xt(r,e){return(0,t.jsxs)("div",{children:[r.msg,r.blamed_cell==null?(0,t.jsxs)("span",{children:["(",(0,t.jsx)(b,{cellId:r.raising_cell}),")"]}):(0,t.jsxs)("span",{children:["(",(0,t.jsx)(b,{cellId:r.raising_cell}),"\xA0blames\xA0",(0,t.jsx)(b,{cellId:r.blamed_cell}),")"]})]},`ancestor-prevented-${e}`)}function Yt(r,e){return(0,t.jsxs)("div",{children:[r.msg,(0,t.jsx)(b,{cellId:r.raising_cell})]},`ancestor-stopped-${e}`)}function er(r,e){return(0,t.jsx)("div",{className:"space-y-2 mt-2",children:(0,t.jsx)("p",{className:"text-muted-foreground whitespace-pre-wrap",children:r.msg})},`sql-error-${e}`)}export{re as a,oe as i,ft as n,me as r,jt as t}; diff --git a/docs/assets/RenderHTML-B4Nb8r0D.js b/docs/assets/RenderHTML-B4Nb8r0D.js new file mode 100644 index 0000000..aa0b89c --- /dev/null +++ b/docs/assets/RenderHTML-B4Nb8r0D.js @@ -0,0 +1 @@ +import{s as v}from"./chunk-LvLJmgfZ.js";import{p as x,u as j}from"./useEvent-DlWF5OMa.js";import{t as _}from"./react-BGmjiNul.js";import{Br as u,zr as w}from"./cells-CmJW_FeD.js";import{t as y}from"./compiler-runtime-DeeZ7FnK.js";import{o as N}from"./utils-Czt8B2GX.js";import{t as R}from"./jsx-runtime-DN_bIXfG.js";import{t as z}from"./mode-CXc0VeQq.js";import{t as C}from"./usePress-C2LPFxyv.js";import{t as H}from"./copy-icon-jWsqdLn1.js";import{t as E}from"./purify.es-N-2faAGj.js";import{t as k}from"./useRunCells-DNnhJ0Gs.js";var F=y(),m=v(_(),1),s=v(R(),1);const M=e=>{let t=(0,F.c)(16),r,a,i;t[0]===e?(r=t[1],a=t[2],i=t[3]):({href:a,children:r,...i}=e,t[0]=e,t[1]=r,t[2]=a,t[3]=i);let o=(0,m.useRef)(null),l;t[4]===a?l=t[5]:(l=()=>{let d=new URL(globalThis.location.href);d.hash=a,globalThis.history.pushState({},"",d.toString()),globalThis.dispatchEvent(new HashChangeEvent("hashchange"));let S=a.slice(1),A=document.getElementById(S);A&&A.scrollIntoView({behavior:"smooth",block:"start"})},t[4]=a,t[5]=l);let n=l,c;t[6]===n?c=t[7]:(c={onPress:()=>{n()}},t[6]=n,t[7]=c);let{pressProps:b}=C(c),f;t[8]===n?f=t[9]:(f=d=>{d.preventDefault(),n()},t[8]=n,t[9]=f);let g=f,h;return t[10]!==r||t[11]!==g||t[12]!==a||t[13]!==b||t[14]!==i?(h=(0,s.jsx)("a",{ref:o,href:a,...b,onClick:g,...i,children:r}),t[10]=r,t[11]=g,t[12]=a,t[13]=b,t[14]=i,t[15]=h):h=t[15],h};var T=x(e=>{let t=e(k),r=e(N);if(t||r)return!1;let a=!0;try{a=z()==="read"}catch{return!0}return!a});function L(){return j(T)}var p="data-temp-href-target";E.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&(e.hasAttribute("target")||e.setAttribute("target","_self"),e.hasAttribute("target")&&e.setAttribute(p,e.getAttribute("target")||""))}),E.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(p)&&(e.setAttribute("target",e.getAttribute(p)||""),e.removeAttribute(p),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer"))});function O(e){let t={USE_PROFILES:{html:!0,svg:!0,mathMl:!0},FORCE_BODY:!0,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:/^(marimo-[A-Za-z][\w-]*|iconify-icon)$/,attributeNameCheck:/^[A-Za-z][\w-]*$/},SAFE_FOR_XML:!e.includes("marimo-mermaid")};return E.sanitize(e,t)}var I=y(),D=e=>{if(e instanceof u.Element&&!/^[A-Za-z][\w-]*$/.test(e.name))return m.createElement(m.Fragment)},V=(e,t)=>{if(t instanceof u.Element&&t.name==="body"){if((0,m.isValidElement)(e)&&"props"in e){let r=e.props.children;return(0,s.jsx)(s.Fragment,{children:r})}return}},W=(e,t)=>{if(t instanceof u.Element&&t.name==="html"){if((0,m.isValidElement)(e)&&"props"in e){let r=e.props.children;return(0,s.jsx)(s.Fragment,{children:r})}return}},$=e=>{if(e instanceof u.Element&&e.attribs&&e.name==="iframe"){let t=document.createElement("iframe");return Object.entries(e.attribs).forEach(([r,a])=>{r.startsWith('"')&&r.endsWith('"')&&(r=r.slice(1,-1)),t.setAttribute(r,a)}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t.outerHTML}})}},B=e=>{if(e instanceof u.Element&&e.name==="script"){let t=e.attribs.src;if(!t)return;if(!document.querySelector(`script[src="${t}"]`)){let r=document.createElement("script");r.src=t,document.head.append(r)}return(0,s.jsx)(s.Fragment,{})}},P=(e,t)=>{if(t instanceof u.Element&&t.name==="a"){let r=t.attribs.href;if(r!=null&&r.startsWith("#")&&!r.startsWith("#code/")){let a=null;return(0,m.isValidElement)(e)&&"props"in e&&(a=e.props.children),(0,s.jsx)(M,{href:r,...t.attribs,children:a})}}},U=(e,t,r)=>{var a,i;if(t instanceof u.Element&&t.name==="div"&&((i=(a=t.attribs)==null?void 0:a.class)!=null&&i.includes("codehilite")))return(0,s.jsx)(Z,{children:e},r)},Z=e=>{let t=(0,I.c)(3),{children:r}=e,a=(0,m.useRef)(null),i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,s.jsx)(H,{tooltip:!1,className:"p-1",value:()=>{var n;let l=(n=a.current)==null?void 0:n.firstChild;return l&&l.textContent||""}})}),t[0]=i):i=t[0];let o;return t[1]===r?o=t[2]:(o=(0,s.jsxs)("div",{className:"relative group codehilite-wrapper",ref:a,children:[r,i]}),t[1]=r,t[2]=o),o};const q=({html:e,additionalReplacements:t=[],alwaysSanitizeHtml:r=!0})=>(0,s.jsx)(G,{html:e,alwaysSanitizeHtml:r,additionalReplacements:t});var G=({html:e,additionalReplacements:t=[],alwaysSanitizeHtml:r})=>{let a=L();return X({html:(0,m.useMemo)(()=>r||a?O(e):e,[e,r,a]),additionalReplacements:t})};function X({html:e,additionalReplacements:t=[]}){let r=[D,$,B,...t],a=[U,P,V,W];return w(e,{replace:(i,o)=>{for(let l of r){let n=l(i,o);if(n)return n}return i},transform:(i,o,l)=>{for(let n of a){let c=n(i,o,l);if(c)return c}return i}})}export{q as t}; diff --git a/docs/assets/SSRProvider-DD7JA3RM.js b/docs/assets/SSRProvider-DD7JA3RM.js new file mode 100644 index 0000000..df1e3d9 --- /dev/null +++ b/docs/assets/SSRProvider-DD7JA3RM.js @@ -0,0 +1 @@ +import{s as d}from"./chunk-LvLJmgfZ.js";import{t as m}from"./react-BGmjiNul.js";var e=d(m(),1),f={prefix:String(Math.round(Math.random()*1e10)),current:0},l=e.createContext(f),p=e.createContext(!1);typeof window<"u"&&window.document&&window.document.createElement;var c=new WeakMap;function x(t=!1){var u,i;let r=(0,e.useContext)(l),n=(0,e.useRef)(null);if(n.current===null&&!t){let a=(i=(u=e.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:u.ReactCurrentOwner)==null?void 0:i.current;if(a){let o=c.get(a);o==null?c.set(a,{id:r.current,state:a.memoizedState}):a.memoizedState!==o.state&&(r.current=o.id,c.delete(a))}n.current=++r.current}return n.current}function S(t){let r=(0,e.useContext)(l),n=x(!!t),u=`react-aria${r.prefix}`;return t||`${u}-${n}`}function _(t){let r=e.useId(),[n]=(0,e.useState)(s()),u=n?"react-aria":`react-aria${f.prefix}`;return t||`${u}-${r}`}var E=typeof e.useId=="function"?_:S;function w(){return!1}function C(){return!0}function R(t){return()=>{}}function s(){return typeof e.useSyncExternalStore=="function"?e.useSyncExternalStore(R,w,C):(0,e.useContext)(p)}export{E as n,s as t}; diff --git a/docs/assets/SelectionIndicator-BtLUNjRz.js b/docs/assets/SelectionIndicator-BtLUNjRz.js new file mode 100644 index 0000000..88b7b58 --- /dev/null +++ b/docs/assets/SelectionIndicator-BtLUNjRz.js @@ -0,0 +1 @@ +import{s as o}from"./chunk-LvLJmgfZ.js";import{t as a}from"./react-BGmjiNul.js";import{t as n}from"./react-dom-C9fstfnp.js";n();var e=o(a(),1),i=(0,e.createContext)(null);function l(t){let r=(0,e.useRef)({});return e.createElement(i.Provider,{value:r},t.children)}var m=(0,e.createContext)({isSelected:!1});export{l as n,m as t}; diff --git a/docs/assets/VisuallyHidden-B0mBEsSm.js b/docs/assets/VisuallyHidden-B0mBEsSm.js new file mode 100644 index 0000000..dcb9437 --- /dev/null +++ b/docs/assets/VisuallyHidden-B0mBEsSm.js @@ -0,0 +1 @@ +import{s as be}from"./chunk-LvLJmgfZ.js";import{t as me}from"./react-BGmjiNul.js";import{L as ve,P as Ee,R as Te}from"./input-Bkl2Yfmh.js";import{A as w,C as ge,M as we,N as v,O as Re,b as J,c as Ce,j as S,k as X,l as ye,w as Se,z as R}from"./usePress-C2LPFxyv.js";import{t as ke}from"./context-BAYdLMF_.js";var f=be(me(),1),_e=(0,f.createContext)(null);(0,f.createContext)(null),(0,f.createContext)(null),(0,f.createContext)(null),(0,f.createContext)(null);var Le=(0,f.createContext)({}),xe=(0,f.createContext)(null);(0,f.createContext)(null);var Fe=class{get currentNode(){return this._currentNode}set currentNode(e){if(!X(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],r=e,n=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let i=r,l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});t.push(l),l.currentNode=n,this._currentSetFor.add(l),r=n=i.host}else r=r.parentNode;let o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=n,this._currentSetFor.add(o),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return X(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){var t;let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let r;if(typeof this.filter=="function"?r=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(r=this.filter.acceptNode(e)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){var r;let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){let n;if(typeof this.filter=="function"?n=this.filter(t):(r=this.filter)!=null&&r.acceptNode&&(n=this.filter.acceptNode(t)),n===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let o=this.lastChild();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,r,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=i=>{var l;if(i.nodeType===Node.ELEMENT_NODE){let s=i.shadowRoot;if(s){let u=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{if(typeof this.filter=="function")return this.filter(i);if((l=this.filter)!=null&&l.acceptNode)return this.filter.acceptNode(i);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=n??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,r,this._acceptNode));let o=t.shadowRoot;if(o){let i=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(i)}}};function Me(e,t,r,n){return we()?new Fe(e,t,r,n):e.createTreeWalker(t,r,n)}function Ie(e,t){let r=(0,f.useRef)(!0),n=(0,f.useRef)(null);(0,f.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]),(0,f.useEffect)(()=>{let o=n.current;r.current?r.current=!1:(!o||t.some((i,l)=>!Object.is(i,o[l])))&&e(),n.current=t},t)}function x(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Pe(e,t){let r=e;for(x(r,t)&&(r=r.parentElement);r&&!x(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Ae(e,t){let r=[];for(;e&&e!==document.documentElement;)x(e,t)&&r.push(e),e=e.parentElement;return r}function We(e){return ge()?e.metaKey:e.ctrlKey}var Ke=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function He(e){return e instanceof HTMLInputElement&&!Ke.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Oe=0,z=new Map;function De(e){let[t,r]=(0,f.useState)();return R(()=>{if(!e)return;let n=z.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Oe++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},z.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),z.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Y(e,t){let r=Q(e,t,"left"),n=Q(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:a,scrollPaddingRight:p,scrollPaddingBottom:d,scrollPaddingLeft:N}=getComputedStyle(e),{scrollMarginTop:m,scrollMarginRight:L,scrollMarginBottom:k,scrollMarginLeft:ce}=getComputedStyle(t),se=l+parseInt(c,10),G=s+parseInt(u,10),M=se+e.clientWidth,I=G+e.clientHeight,P=parseInt(a,10)||0,A=parseInt(d,10)||0,W=parseInt(p,10)||0,K=parseInt(N,10)||0,ae=parseInt(m,10)||0,ue=parseInt(k,10)||0,de=parseInt(L,10)||0,H=r-(parseInt(ce,10)||0),O=r+o+de,D=n-ae,j=n+i+ue,fe=l+parseInt(c,10)+K,pe=M-W,he=s+parseInt(u,10)+P,Ne=I-A;(H>fe||OM-W&&(l+=O-M+W)),(D>he||jI-A&&(s+=j-I+A)),e.scrollTo({left:l,top:s})}function Q(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function je(e,t){if(e&&document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow!=="hidden"&&!J()){var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)==null||r.call(e,{block:"nearest"});let{left:c,top:a}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-a)>1){var n,o,i;t==null||(o=t.containingElement)==null||(n=o.scrollIntoView)==null||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)==null||i.call(e,{block:"nearest"})}}else{let s=Ae(e);for(let u of s)Y(u,e)}}}var B=new Map;function ze(e){let{locale:t}=ke(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]new $({scopeRef:s}),[s]);R(()=>{let d=u||b.root;if(b.getTreeNode(d.scopeRef)&&h&&!F(h,d.scopeRef)){let N=b.getTreeNode(h);N&&(d=N)}d.addChild(c),b.addNode(c)},[c,u]),R(()=>{let d=b.getTreeNode(s);d&&(d.contain=!!r)},[r]),R(()=>{var L;let d=(L=i.current)==null?void 0:L.nextSibling,N=[],m=k=>k.stopPropagation();for(;d&&d!==l.current;)N.push(d),d.addEventListener(q,m),d=d.nextSibling;return s.current=N,()=>{for(let k of N)k.removeEventListener(q,m)}},[t]),Je(s,n,r),Ve(s,r),Xe(s,n,r),Ge(s,o),(0,f.useEffect)(()=>{let d=w(v(s.current?s.current[0]:void 0)),N=null;if(g(d,s.current)){for(let m of b.traverse())m.scopeRef&&g(d,m.scopeRef.current)&&(N=m);N===b.getTreeNode(s)&&(h=N.scopeRef)}},[s]),R(()=>()=>{var N,m;let d=((m=(N=b.getTreeNode(s))==null?void 0:N.parent)==null?void 0:m.scopeRef)??null;(s===h||F(s,h))&&(!d||b.getTreeNode(d))&&(h=d),b.removeTreeNode(s)},[s]);let a=(0,f.useMemo)(()=>qe(s),[]),p=(0,f.useMemo)(()=>({focusManager:a,parentNode:c}),[c,a]);return f.createElement(Z.Provider,{value:p},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function qe(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:l}=t,s=n||w(v(r[0]??void 0)),u=r[0].previousElementSibling,c=T(y(r),{tabbable:o,accept:l},r);c.currentNode=g(s,r)?s:u;let a=c.nextNode();return!a&&i&&(c.currentNode=u,a=c.nextNode()),a&&E(a,!0),a},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:l}=t,s=n||w(v(r[0]??void 0)),u=r[r.length-1].nextElementSibling,c=T(y(r),{tabbable:o,accept:l},r);c.currentNode=g(s,r)?s:u;let a=c.previousNode();return!a&&i&&(c.currentNode=u,a=c.previousNode()),a&&E(a,!0),a},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=T(y(r),{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let l=i.nextNode();return l&&E(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=T(y(r),{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let l=i.previousNode();return l&&E(l,!0),l}}}function y(e){return e[0].parentElement}function _(e){let t=b.getTreeNode(h);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Ue(e){var r,n;if(e.checked)return!0;let t=[];return t=e.form?[...((n=(r=e.form)==null?void 0:r.elements)==null?void 0:n.namedItem(e.name))??[]]:[...v(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form),t?!t.some(o=>o.checked):!1}function Ve(e,t){let r=(0,f.useRef)(void 0),n=(0,f.useRef)(void 0);R(()=>{let o=e.current;if(!t){n.current&&(n.current=(cancelAnimationFrame(n.current),void 0));return}let i=v(o?o[0]:void 0),l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!_(e)||c.isComposing)return;let a=w(i),p=e.current;if(!p||!g(a,p))return;let d=T(y(p),{tabbable:!0},p);if(!a)return;d.currentNode=a;let N=c.shiftKey?d.previousNode():d.nextNode();N||(N=(d.currentNode=c.shiftKey?p[p.length-1].nextElementSibling:p[0].previousElementSibling,c.shiftKey?d.previousNode():d.nextNode())),c.preventDefault(),N&&E(N,!0)},s=c=>{(!h||F(h,e))&&g(S(c),e.current)?(h=e,r.current=S(c)):_(e)&&!C(S(c),e)?r.current?r.current.focus():h&&h.current&&U(h.current):_(e)&&(r.current=S(c))},u=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let a=Te(),p=(a==="virtual"||a===null)&&Se()&&J(),d=w(i);if(!p&&d&&_(e)&&!C(d,e)){h=e;let m=S(c);if(m&&m.isConnected){var N;r.current=m,(N=r.current)==null||N.focus()}else h.current&&U(h.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",u,!1))}},[e,t]),R(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function ee(e){return C(e)}function g(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function C(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of b.traverse(b.getTreeNode(t)))if(r&&g(e,r.current))return!0;return!1}function $e(e){return C(e,h)}function F(e,t){var n;let r=(n=b.getTreeNode(t))==null?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function E(e,t=!1){if(e!=null&&!t)try{ve(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function te(e,t=!0){let r=e[0].previousElementSibling,n=y(e),o=T(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=y(e),o=T(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function U(e,t=!0){E(te(e,t))}function Ge(e,t){let r=f.useRef(t);(0,f.useEffect)(()=>{r.current&&(h=e,!g(w(v(e.current?e.current[0]:void 0)),h.current)&&e.current&&U(e.current)),r.current=!1},[e])}function Je(e,t,r){R(()=>{if(t||r)return;let n=e.current,o=v(n?n[0]:void 0),i=l=>{let s=S(l);g(s,e.current)?h=e:ee(s)||(h=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,r])}function re(e){let t=b.getTreeNode(h);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Xe(e,t,r){let n=(0,f.useRef)(typeof document<"u"?w(v(e.current?e.current[0]:void 0)):null);R(()=>{let o=e.current,i=v(o?o[0]:void 0);if(!t||r)return;let l=()=>{(!h||F(h,e))&&g(w(i),e.current)&&(h=e)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[e,r]),R(()=>{let o=v(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!_(e)||l.isComposing)return;let s=o.activeElement;if(!C(s,e)||!re(e))return;let u=b.getTreeNode(e);if(!u)return;let c=u.nodeToRestore,a=T(o.body,{tabbable:!0});a.currentNode=s;let p=l.shiftKey?a.previousNode():a.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,u.nodeToRestore=void 0),(!p||!C(p,e))&&c){a.currentNode=c;do p=l.shiftKey?a.previousNode():a.nextNode();while(C(p,e));l.preventDefault(),l.stopPropagation(),p?E(p,!0):ee(c)?E(c,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),R(()=>{let o=v(e.current?e.current[0]:void 0);if(!t)return;let i=b.getTreeNode(e);if(i)return i.nodeToRestore=n.current??void 0,()=>{let l=b.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=w(o);if(t&&s&&(u&&C(u,e)||u===o.body&&re(e))){let c=b.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let a=c.getTreeNode(e);for(;a;){if(a.nodeToRestore&&a.nodeToRestore.isConnected){ne(a.nodeToRestore);return}a=a.parent}for(a=c.getTreeNode(e);a;){if(a.scopeRef&&a.scopeRef.current&&b.getTreeNode(a.scopeRef)){ne(te(a.scopeRef.current,!0));return}a=a.parent}}})}}},[e,t])}function ne(e){e.dispatchEvent(new CustomEvent(q,{bubbles:!0,cancelable:!0}))&&E(e)}function T(e,t,r){let n=t!=null&&t.tabbable?ye:Ce,o=v((e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null),i=Me(o,e||o,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return t!=null&&((s=t.from)!=null&&s.contains(l))||t!=null&&t.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!Ue(l)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||g(l,r))&&(!(t!=null&&t.accept)||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Ye(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:l=t.wrap,accept:s=t.accept}=r,u=o||w(v(n)),c=T(n,{tabbable:i,accept:s});n.contains(u)&&(c.currentNode=u);let a=c.nextNode();return!a&&l&&(c.currentNode=n,a=c.nextNode()),a&&E(a,!0),a},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:l=t.wrap,accept:s=t.accept}=r,u=o||w(v(n)),c=T(n,{tabbable:i,accept:s});if(n.contains(u))c.currentNode=u;else{let p=V(c);return p&&E(p,!0),p??null}let a=c.previousNode();if(!a&&l){c.currentNode=n;let p=V(c);if(!p)return null;a=p}return a&&E(a,!0),a??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,l=T(n,{tabbable:o,accept:i}).nextNode();return l&&E(l,!0),l},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,l=V(T(n,{tabbable:o,accept:i}));return l&&E(l,!0),l??null}}}function V(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var Qe=class le{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new $({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&g(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var r;let t=new le;for(let n of this.traverse())t.addTreeNode(n.scopeRef,((r=n.parent)==null?void 0:r.scopeRef)??null,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new $({scopeRef:null}),this.fastMap.set(null,this.root)}},$=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},b=new Qe,oe={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ie(e={}){let{style:t,isFocusable:r}=e,[n,o]=(0,f.useState)(!1),{focusWithinProps:i}=Ee({isDisabled:!r,onFocusWithinChange:s=>o(s)}),l=(0,f.useMemo)(()=>n?t:t?{...oe,...t}:oe,[n]);return{visuallyHiddenProps:{...i,style:l}}}function Ze(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:l}=ie(e);return f.createElement(r,Re(i,l),t)}export{xe as _,T as a,Y as c,We as d,He as f,_e as g,Ie as h,Be as i,je as l,x as m,ie as n,Ye as o,Pe as p,$e as r,ze as s,Ze as t,De as u,Le as v}; diff --git a/docs/assets/_Uint8Array-BGESiCQL.js b/docs/assets/_Uint8Array-BGESiCQL.js new file mode 100644 index 0000000..91f50fe --- /dev/null +++ b/docs/assets/_Uint8Array-BGESiCQL.js @@ -0,0 +1 @@ +var E=typeof global=="object"&&global&&global.Object===Object&&global,rt=typeof self=="object"&&self&&self.Object===Object&&self,i=E||rt||Function("return this")(),_=i.Symbol,U=Object.prototype,et=U.hasOwnProperty,nt=U.toString,l=_?_.toStringTag:void 0;function ot(t){var r=et.call(t,l),e=t[l];try{t[l]=void 0;var n=!0}catch{}var f=nt.call(t);return n&&(r?t[l]=e:delete t[l]),f}var at=ot,it=Object.prototype.toString;function st(t){return it.call(t)}var ct=st,ut="[object Null]",pt="[object Undefined]",I=_?_.toStringTag:void 0;function ft(t){return t==null?t===void 0?pt:ut:I&&I in Object(t)?at(t):ct(t)}var y=ft;function _t(t){return typeof t=="object"&&!!t}var b=_t,B=Array.isArray;function lt(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}var O=lt,vt="[object AsyncFunction]",ht="[object Function]",yt="[object GeneratorFunction]",bt="[object Proxy]";function dt(t){if(!O(t))return!1;var r=y(t);return r==ht||r==yt||r==vt||r==bt}var z=dt,A=i["__core-js_shared__"],k=(function(){var t=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function jt(t){return!!k&&k in t}var gt=jt,mt=Function.prototype.toString;function Ot(t){if(t!=null){try{return mt.call(t)}catch{}try{return t+""}catch{}}return""}var C=Ot,zt=/[\\^$.*+?()[\]{}|]/g,At=/^\[object .+?Constructor\]$/,xt=Function.prototype,wt=Object.prototype,St=xt.toString,Ft=wt.hasOwnProperty,Pt=RegExp("^"+St.call(Ft).replace(zt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tt(t){return!O(t)||gt(t)?!1:(z(t)?Pt:At).test(C(t))}var $t=Tt;function Et(t,r){return t==null?void 0:t[r]}var Ut=Et;function It(t,r){var e=Ut(t,r);return $t(e)?e:void 0}var x=It,Bt=9007199254740991,kt=/^(?:0|[1-9]\d*)$/;function Ct(t,r){var e=typeof t;return r??(r=Bt),!!r&&(e=="number"||e!="symbol"&&kt.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Rt}var w=qt;function Dt(t){return t!=null&&w(t.length)&&!z(t)}var Nt=Dt,Gt=Object.prototype;function Lt(t){var r=t&&t.constructor;return t===(typeof r=="function"&&r.prototype||Gt)}var Vt=Lt;function Wt(t,r){for(var e=-1,n=Array(t);++e-1}var te=Zr;function re(t,r){var e=this.__data__,n=d(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}var ee=re;function c(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r{t.exports={}}));export default t(); \ No newline at end of file diff --git a/docs/assets/__vite-browser-external-CPyDqUtZ.js b/docs/assets/__vite-browser-external-CPyDqUtZ.js new file mode 100644 index 0000000..4fde7e1 --- /dev/null +++ b/docs/assets/__vite-browser-external-CPyDqUtZ.js @@ -0,0 +1 @@ +import{t as e}from"./save-worker-DtF6B3PS.js";var t=e(((e,t)=>{t.exports={}}));export default t(); \ No newline at end of file diff --git a/docs/assets/_arrayReduce-bZBYsK-u.js b/docs/assets/_arrayReduce-bZBYsK-u.js new file mode 100644 index 0000000..21ac4fc --- /dev/null +++ b/docs/assets/_arrayReduce-bZBYsK-u.js @@ -0,0 +1 @@ +function f(r,o,t,u){var a=-1,l=r==null?0:r.length;for(u&&l&&(t=r[++a]);++a0&&e(a)?n>1?c(a,n-1,e,s,o):p(o,a):s||(o[o.length]=a)}return o}var h=c;export{h as t}; diff --git a/docs/assets/_baseFor-Duhs3RiJ.js b/docs/assets/_baseFor-Duhs3RiJ.js new file mode 100644 index 0000000..eb84d38 --- /dev/null +++ b/docs/assets/_baseFor-Duhs3RiJ.js @@ -0,0 +1 @@ +function v(r){return r}var c=v;function b(r){return function(n,f,i){for(var o=-1,t=Object(n),e=i(n),a=e.length;a--;){var u=e[r?a:++o];if(f(t[u],u,t)===!1)break}return n}}var g=b();export{c as n,g as t}; diff --git a/docs/assets/_baseIsEqual-Cz9Tt_-E.js b/docs/assets/_baseIsEqual-Cz9Tt_-E.js new file mode 100644 index 0000000..d63ce90 --- /dev/null +++ b/docs/assets/_baseIsEqual-Cz9Tt_-E.js @@ -0,0 +1 @@ +import{C as E,S as O,T as k,g as Q,m as U,n as m,o as W,r as X,s as Y,t as z,u as L}from"./_Uint8Array-BGESiCQL.js";import{r as Z,t as x}from"./_getTag-BWqNuuwU.js";function $(r){return U(r)?W(r):Z(r)}var P=$;function rr(r,e){for(var t=-1,n=e.length,o=r.length;++ts))return!1;var f=a.get(r),c=a.get(e);if(f&&c)return f==e&&c==r;var h=-1,l=!0,b=t&hr?new R:void 0;for(a.set(r,e),a.set(e,r);++h-1}var B=A;function C(n,r,t){for(var u=-1,f=n==null?0:n.length;++u=F){var c=r?null:E(n);if(c)return g(c);a=!1,f=p,e=new d}else e=r?[]:l;n:for(;++u)([/_a-z][/-9_a-z]*)(?=\\\\s+(?:|[-*+/]|&&?)=\\\\s+)","name":"variable.other.abap"},{"match":"\\\\b[0-9]+(\\\\b|[,.])","name":"constant.numeric.abap"},{"match":"(?i)(^|\\\\s+)((P(?:UBLIC|RIVATE|ROTECTED))\\\\sSECTION)(?=\\\\s+|[.:])","name":"storage.modifier.class.abap"},{"begin":"(?_a-z]*)+(?=\\\\s+|\\\\.)"},{"begin":"(?=[A-Z_a-z][0-9A-Z_a-z]*)","end":"(?![0-9A-Z_a-z])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?i)^\\\\s*(INTERFACE)\\\\s([/_a-z][/-9_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(DEFERRED|PUBLIC)(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"}]},{"begin":"(?i)^\\\\s*(FORM)\\\\s([/_a-z][-/-9?_a-z]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?i)(?<=^|\\\\s)(USING|TABLES|CHANGING|RAISING|IMPLEMENTATION|DEFINITION)(?=\\\\s+|\\\\.)","name":"storage.modifier.form.abap"},{"include":"#abaptypes"},{"include":"#keywords_followed_by_braces"}]},{"match":"(?i)(end(?:class|method|form|interface))","name":"storage.type.block.end.abap"},{"match":"(?i)(<[A-Z_a-z][0-9A-Z_a-z]*>)","name":"variable.other.field.symbol.abap"},{"include":"#keywords"},{"include":"#abap_constants"},{"include":"#reserved_names"},{"include":"#operators"},{"include":"#builtin_functions"},{"include":"#abaptypes"},{"include":"#system_fields"},{"include":"#sql_functions"},{"include":"#sql_types"}],"repository":{"abap_constants":{"match":"(?i)(?<=\\\\s)(initial|null|@?space|@?abap_true|@?abap_false|@?abap_undefined|table_line|%_final|%_hints|%_predefined|col_background|col_group|col_heading|col_key|col_negative|col_normal|col_positive|col_total|adabas|as400|db2|db6|hdb|oracle|sybase|mssqlnt|pos_low|pos_high)(?=[,.\\\\s])","name":"constant.language.abap"},"abaptypes":{"patterns":[{"match":"(?i)\\\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|decfloat|decfloat16|decfloat34|utclong|simple|int8|[cdfinptx])(?=[,.\\\\s])","name":"support.type.abap"},{"match":"(?i)\\\\s(TYPE|REF|TO|LIKE|LINE|OF|STRUCTURE|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=[,.\\\\s])","name":"keyword.control.simple.abap"}]},"arithmetic_operator":{"match":"(?i)(?<=\\\\s)([-*+]|\\\\*\\\\*|[%/]|DIV|MOD|BIT-AND|BIT-OR|BIT-XOR|BIT-NOT)(?=\\\\s)","name":"keyword.control.simple.abap"},"builtin_functions":{"match":"(?i)(?<=\\\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\\\()","name":"entity.name.function.builtin.abap"},"comparison_operator":{"match":"(?i)(?<=\\\\s)([<>]|<=|>=|=|<>|eq|ne|lt|le|gt|ge|cs|cp|co|cn|ca|na|ns|np|byte-co|byte-cn|byte-ca|byte-na|byte-cs|byte-ns|[moz])(?=\\\\s)","name":"keyword.control.simple.abap"},"control_keywords":{"match":"(?i)(^|\\\\s)(at|case|catch|continue|do|elseif|else|endat|endcase|endcatch|enddo|endif|endloop|endon|endtry|endwhile|if|loop|on|raise|try|while)(?=[.:\\\\s])","name":"keyword.control.flow.abap"},"generic_names":{"match":"[A-Z_a-z][0-9A-Z_a-z]*"},"keywords":{"patterns":[{"include":"#main_keywords"},{"include":"#text_symbols"},{"include":"#control_keywords"},{"include":"#keywords_followed_by_braces"}]},"keywords_followed_by_braces":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"variable.other.abap"}},"match":"(?i)\\\\b(data|value|field-symbol|final|reference|resumable)\\\\((?)\\\\)"},"logical_operator":{"match":"(?i)(?<=\\\\s)(not|or|and)(?=\\\\s)","name":"keyword.control.simple.abap"},"main_keywords":{"match":"(?i)(?<=^|\\\\s)(abap-source|abstract|accept|accepting|access|according|action|activation|actual|add|add-corresponding|adjacent|after|alias|aliases|all|allocate|amdp|analysis|analyzer|append|appending|application|archive|area|arithmetic|as|ascending|assert|assign|assigned|assigning|association|asynchronous|at|attributes|authority|authority-check|authorization|auto|back|background|backward|badi|base|before|begin|behavior|between|binary|bit|blanks??|blocks??|bound|boundaries|bounds|boxed|break|break-point|buffer|by|bypassing|byte|byte-order|call|calling|cast|casting|cds|centered|change|changing|channels|char-to-hex|character|check|checkbox|cid|circular|class|class-data|class-events|class-methods??|class-pool|cleanup|clear|clients??|clock|clone|close|cnt|code|collect|color|column|comments??|commit|common|communication|comparing|components??|compression|compute|concatenate|cond|condense|condition|connection|constants??|contexts??|controls??|conv|conversion|convert|copy|corresponding|count|country|cover|create|currency|current|cursor|customer-function|data|database|datainfo|dataset|date|daylight|ddl|deallocate|decimals|declarations|deep|default|deferred|define|delete|deleting|demand|descending|describe|destination|detail|determine|dialog|did|directory|discarding|display|display-mode|distance|distinct|divide|divide-corresponding|dummy|duplicates??|duration|during|dynpro|edit|editor-call|empty|enabled|enabling|encoding|end|end-enhancement-section|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|endenhancement|endexec|endfunction|endian|ending|endmodule|endprovide|endselect|endwith|enhancement|enhancement-point|enhancement-section|enhancements|entities|entity|entries|entry|enum|equiv|errors|escape|escaping|events??|exact|except|exception|exception-table|exceptions|excluding|exec|execute|exists|exit|exit-command|expanding|explicit|exponent|export|exporting|extended|extension|extract|fail|failed|features|fetch|field|field-groups|field-symbols|fields|file|fill|filters??|final|find|first|first-line|fixed-point|flush|following|for|format|forward|found|frames??|free|from|full|function|function-pool|generate|get|giving|graph|groups??|handler??|hashed|having|headers??|heading|help-id|help-request|hide|hint|hold|hotspot|icon|id|identification|identifier|ignore|ignoring|immediately|implemented|implicit|import|importing|in|inactive|incl|includes??|including|increment|index|index-line|indicators|infotypes|inheriting|init|initial|initialization|inner|input|insert|instances??|intensified|interface|interface-pool|interfaces|internal|intervals|into|inverse|inverted-date|is|job|join|keep|keeping|kernel|keys??|keywords|kind|language|last|late|layout|leading|leave|left|left-justified|legacy|length|let|levels??|like|line|line-count|line-selection|line-size|linefeed|lines|link|list|list-processing|listbox|load|load-of-program|locale??|locks??|log-point|logical|lower|mapped|mapping|margin|mark|mask|match|matchcode|maximum|members|memory|mesh|message|message-id|messages|messaging|methods??|mode|modif|modifier|modify|module|move|move-corresponding|multiply|multiply-corresponding|name|nametab|native|nested|nesting|new|new-line|new-page|new-section|next|no-display|no-extension|no-gaps??|no-grouping|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unicode|non-unique|number|objects??|objmgr|obligatory|occurences??|occurrences??|occurs|of|offset|on|only|open|optional|options??|order|others|out|outer|output|output-length|overflow|overlay|pack|package|padding|page|parameter|parameter-table|parameters|part|partially|pcre|perform|performing|permissions|pf-status|places|pool|position|pragmas|preceding|precompiled|preferred|preserving|primary|print|print-control|private|privileged|procedure|process|program|property|protected|provide|push|pushbutton|put|query|queue-only|queueonly|quickinfo|radiobutton|raising|ranges??|read|read-only|received??|receiving|redefinition|reduce|ref|reference|refresh|regex|reject|renaming|replace|replacement|replacing|report|reported|request|requested|required|reserve|reset|resolution|respecting|response|restore|results??|resumable|resume|retry|return|returning|right|right-justified|rollback|rows|rp-provide-from-last|run|sap|sap-spool|save|saving|scan|screen|scroll|scroll-boundary|scrolling|search|seconds|section|select|select-options|selection|selection-screen|selection-sets??|selection-table|selections|send|separated??|session|set|shared|shift|shortdump|shortdump-id|sign|simple|simulation|single|size|skip|skipping|smart|some|sort|sortable|sorted|source|specified|split|spool|spots|sql|stable|stamp|standard|start-of-selection|starting|state|statements??|statics??|statusinfo|step|step-loop|stop|structures??|style|subkey|submatches|submit|subroutine|subscreen|substring|subtract|subtract-corresponding|suffix|sum|summary|supplied|supply|suppress|switch|symbol|syntax-check|syntax-trace|system-call|system-exceptions|tab|tabbed|tables??|tableview|tabstrip|target|tasks??|test|test-injection|test-seam|testing|text|textpool|then|throw|times??|title|titlebar|to|tokens|top-lines|top-of-page|trace-file|trace-table|trailing|transaction|transfer|transformation|translate|transporting|trmac|truncate|truncation|type|type-pools??|types|uline|unassign|unbounded|under|unicode|union|unique|unit|unix|unpack|until|unwind|up|update|upper|user|user-command|using|utf-8|uuid|valid|validate|value|value-request|values|vary|varying|version|via|visible|wait|when|where|windows??|with|with-heading|with-title|without|word|work|workspace|write|xml|zone)(?=[,.:\\\\s])","name":"keyword.control.simple.abap"},"operators":{"patterns":[{"include":"#other_operator"},{"include":"#arithmetic_operator"},{"include":"#comparison_operator"},{"include":"#logical_operator"}]},"other_operator":{"match":"(?<=\\\\s)(&&?|\\\\?=|\\\\+=|-=|/=|\\\\*=|&&=|&=)(?=\\\\s)","name":"keyword.control.simple.abap"},"reserved_names":{"match":"(?i)(?<=\\\\s)(me|super)(?=[,.\\\\s]|->)","name":"constant.language.abap"},"sql_functions":{"match":"(?i)(?<=\\\\s)(abap_system_timezone|abap_user_timezone|abs|add_days|add_months|allow_precision_loss|as_geo_json|avg|bintohex|cast|ceil|coalesce|concat_with_space|concat|corr_spearman|corr|count|currency_conversion|datn_add_days|datn_add_months|datn_days_between|dats_add_days|dats_add_months|dats_days_between|dats_from_datn|dats_is_valid|dats_tims_to_tstmp|dats_to_datn|dayname|days_between|dense_rank|division|div|extract_day|extract_hour|extract_minute|extract_month|extract_second|extract_year|first_value|floor|grouping|hextobin|initcap|instr|is_valid|lag|last_value|lead|left|length|like_regexpr|locate_regexpr_after|locate_regexpr|locate|lower|lpad|ltrim|max|median|min|mod|monthname|ntile|occurrences_regexpr|over|product|rank|replace_regexpr|replace|rigth|round|row_number|rpad|rtrim|stddev|string_agg|substring_regexpr|substring|sum|tims_from_timn|tims_is_valid|tims_to_timn|to_blob|to_clob|tstmp_add_seconds|tstmp_current_utctimestamp|tstmp_is_valid|tstmp_seconds_between|tstmp_to_dats|tstmp_to_dst|tstmp_to_tims|tstmpl_from_utcl|tstmpl_to_utcl|unit_conversion|upper|utcl_add_seconds|utcl_current|utcl_seconds_between|uuid|var|weekday)(?=\\\\()","name":"entity.name.function.sql.abap"},"sql_types":{"match":"(?i)(?<=\\\\s)(char|clnt|cuky|curr|datn|dats|dec|decfloat16|decfloat34|fltp|int1|int2|int4|int8|lang|numc|quan|raw|sstring|timn|tims|unit|utclong)(?=[()\\\\s])","name":"entity.name.type.sql.abap"},"system_fields":{"captures":{"1":{"name":"variable.language.abap"},"2":{"name":"variable.language.abap"}},"match":"(?i)\\\\b(sy)-(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=[.\\\\s])"},"text_symbols":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"constant.numeric.abap"}},"match":"(?i)(?<=^|\\\\s)(text)-([0-9A-Z]{1,3})(?=[,.:\\\\s])"}},"scopeName":"source.abap"}'))];export{e as default}; diff --git a/docs/assets/actionscript-3-BrOlQ4AF.js b/docs/assets/actionscript-3-BrOlQ4AF.js new file mode 100644 index 0000000..29933fa --- /dev/null +++ b/docs/assets/actionscript-3-BrOlQ4AF.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"ActionScript","fileTypes":["as"],"name":"actionscript-3","patterns":[{"include":"#comments"},{"include":"#package"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"},{"include":"#import"},{"include":"#mxml"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"}],"repository":{"arithmetic_operators":{"match":"([-%+/]|(??^|~])","name":"keyword.operator.actionscript.3"},"metadata":{"begin":"(?<=(?:^|[;{}]|\\\\*/)\\\\s*)\\\\[\\\\s*\\\\b([$A-Z_a-z][$0-9A-Z_a-z]+)\\\\b","beginCaptures":{"1":{"name":"keyword.other.actionscript.3"}},"end":"]","name":"meta.metadata_info.actionscript.3","patterns":[{"include":"#metadata_info"}]},"metadata_info":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#strings"},{"captures":{"1":{"name":"variable.parameter.actionscript.3"},"2":{"name":"keyword.operator.actionscript.3"}},"match":"(\\\\w+)\\\\s*(=)"}]},"method":{"begin":"(^|\\\\s+)((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?(?=\\\\bfunction\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"storage.modifier.actionscript.3"}},"end":"(?<=([;}]))","name":"meta.method.actionscript.3","patterns":[{"include":"#functions"},{"include":"#code_block"}]},"mxml":{"begin":"","name":"meta.cdata.actionscript.3","patterns":[{"include":"#comments"},{"include":"#import"},{"include":"#metadata"},{"include":"#class"},{"include":"#namespace_declaration"},{"include":"#use_namespace"},{"include":"#class_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_keywords"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"}]},"namespace_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"storage.modifier.actionscript.3"}},"match":"((\\\\w+)\\\\s+)?(namespace)\\\\s+[$0-9A-Z_a-z]+","name":"meta.namespace_declaration.actionscript.3"},"numbers":{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([Ll]|UL|ul|[FUfu])?\\\\b","name":"constant.numeric.actionscript.3"},"object_literal":{"begin":"\\\\{","end":"}","name":"meta.object_literal.actionscript.3","patterns":[{"include":"#object_literal"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#functions"}]},"other_keywords":{"match":"\\\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\\\b","name":"keyword.other.actionscript.3"},"other_operators":{"match":"([.=])","name":"keyword.operator.actionscript.3"},"package":{"begin":"(^|\\\\s+)(package)\\\\b","beginCaptures":{"2":{"name":"keyword.other.actionscript.3"}},"end":"}","name":"meta.package.actionscript.3","patterns":[{"include":"#package_name"},{"include":"#variable_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#return_type"},{"include":"#import"},{"include":"#use_namespace"},{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#metadata"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"}]},"package_name":{"begin":"(?<=package)\\\\s+([._\\\\w]*)\\\\b","end":"\\\\{","name":"meta.package_name.actionscript.3"},"parameters":{"begin":"(\\\\.\\\\.\\\\.)?\\\\s*([$A-Z_a-z][$0-9A-Z_a-z]*)(?:\\\\s*(:)\\\\s*(?:([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)(?:\\\\.<([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)>)?|(\\\\*)))?(?:\\\\s*(=))?","beginCaptures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"variable.parameter.actionscript.3"},"3":{"name":"keyword.operator.actionscript.3"},"4":{"name":"support.type.actionscript.3"},"5":{"name":"support.type.actionscript.3"},"6":{"name":"support.type.actionscript.3"},"7":{"name":"keyword.operator.actionscript.3"}},"end":",|(?=\\\\))","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#comments"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#guess_type"},{"include":"#guess_constant"}]},"primitive_error_types":{"captures":{"1":{"name":"support.class.error.actionscript.3"}},"match":"\\\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\\\b"},"primitive_functions":{"captures":{"1":{"name":"support.function.actionscript.3"}},"match":"\\\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\\\s*\\\\()"},"primitive_types":{"captures":{"1":{"name":"support.class.builtin.actionscript.3"}},"match":"\\\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\\\*(?<=a))\\\\b"},"regexp":{"begin":"(?<=[(,:=\\\\[]|^|return|&&|\\\\|\\\\||!)\\\\s*(/)(?![*+/?{}])","end":"$|(/)[gim]*","name":"string.regex.actionscript.3","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.actionscript.3"},{"match":"\\\\[(\\\\\\\\]|[^]])*]","name":"constant.character.class.actionscript.3"}]},"return_type":{"captures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"support.type.actionscript.3"},"3":{"name":"support.type.actionscript.3"},"4":{"name":"support.type.actionscript.3"}},"match":"(:)\\\\s*([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)(?:\\\\.<([$A-Za-z][$0-9A-Z_a-z]+(?:\\\\.[$A-Za-z][$0-9A-Z_a-z]+)*)>)?|(\\\\*)"},"strings":{"patterns":[{"begin":"@\\"","end":"\\"","name":"string.quoted.verbatim.actionscript.3"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.actionscript.3","patterns":[{"include":"#escapes"}]},{"begin":"'","end":"'","name":"string.quoted.single.actionscript.3","patterns":[{"include":"#escapes"}]}]},"use_namespace":{"captures":{"2":{"name":"keyword.other.actionscript.3"},"3":{"name":"keyword.other.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"}},"match":"(^|\\\\s+|;)(use\\\\s+)?(namespace)\\\\s+(\\\\w+)\\\\s*(;|$)"},"variable_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"},"6":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"keyword.operator.actionscript.3"}},"match":"((static)\\\\s+)?((\\\\w+)\\\\s+)?((static)\\\\s+)?(const|var)\\\\s+[$0-9A-Z_a-z]+(?:\\\\s*(:))?","name":"meta.variable_declaration.actionscript.3"},"vector_creation_operators":{"match":"([<>])","name":"keyword.operator.actionscript.3"}},"scopeName":"source.actionscript.3"}`))];export{e as default}; diff --git a/docs/assets/ada-CkOW_epu.js b/docs/assets/ada-CkOW_epu.js new file mode 100644 index 0000000..1d7904d --- /dev/null +++ b/docs/assets/ada-CkOW_epu.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Ada","name":"ada","patterns":[{"include":"#library_unit"},{"include":"#comment"},{"include":"#use_clause"},{"include":"#with_clause"},{"include":"#pragma"},{"include":"#keyword"}],"repository":{"abort_statement":{"begin":"(?i)\\\\babort\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.abort.ada","patterns":[{"match":",","name":"punctuation.ada"},{"match":"\\\\b([._\\\\w\\\\d])+\\\\b","name":"entity.name.task.ada"}]},"accept_statement":{"begin":"(?i)\\\\b(accept)\\\\s+([._\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"entity.name.accept.ada"}},"end":"(?i)(?:\\\\b(end)\\\\s*(\\\\s\\\\2)?\\\\s*)?(;)","endCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"entity.name.accept.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.statement.accept.ada","patterns":[{"begin":"(?i)\\\\bdo\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"include":"#statement"}]},{"include":"#parameter_profile"}]},"access_definition":{"captures":{"1":{"name":"storage.visibility.ada"},"2":{"name":"storage.visibility.ada"},"3":{"name":"storage.modifier.ada"},"4":{"name":"entity.name.type.ada"}},"match":"(?i)(not\\\\s+null\\\\s+)?(access)\\\\s+(constant\\\\s+)?([._\\\\w\\\\d]+)\\\\b","name":"meta.declaration.access.definition.ada"},"access_type_definition":{"begin":"(?i)\\\\b(not\\\\s+null\\\\s+)?(access)\\\\b","beginCaptures":{"1":{"name":"storage.visibility.ada"},"2":{"name":"storage.visibility.ada"}},"end":"(?i)(?=(with|;))","name":"meta.declaration.type.definition.access.ada","patterns":[{"match":"(?i)\\\\ball\\\\b","name":"storage.visibility.ada"},{"match":"(?i)\\\\bconstant\\\\b","name":"storage.modifier.ada"},{"include":"#subtype_mark"}]},"actual_parameter_part":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","patterns":[{"match":",","name":"punctuation.ada"},{"include":"#parameter_association"}]},"adding_operator":{"match":"([-\\\\&+])","name":"keyword.operator.adding.ada"},"array_aggregate":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","name":"meta.definition.array.aggregate.ada","patterns":[{"match":",","name":"punctuation.ada"},{"include":"#positional_array_aggregate"},{"include":"#array_component_association"}]},"array_component_association":{"captures":{"1":{"name":"variable.name.ada"},"2":{"name":"keyword.other.ada"},"3":{"patterns":[{"match":"<>","name":"keyword.modifier.unknown.ada"},{"include":"#expression"}]}},"match":"(?i)\\\\b([^()=>]*)\\\\s*(=>)\\\\s*([^),]+)","name":"meta.definition.array.aggregate.component.ada"},"array_dimensions":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","name":"meta.declaration.type.definition.array.dimensions.ada","patterns":[{"match":",","name":"punctuation.ada"},{"match":"(?i)\\\\brange\\\\b","name":"storage.modifier.ada"},{"match":"<>","name":"keyword.modifier.unknown.ada"},{"match":"\\\\.\\\\.","name":"keyword.ada"},{"include":"#expression"},{"patterns":[{"include":"#subtype_mark"}]}]},"array_type_definition":{"begin":"(?i)\\\\barray\\\\b","beginCaptures":{"0":{"name":"storage.modifier.ada"}},"end":"(?i)(?=(with|;))","name":"meta.declaration.type.definition.array.ada","patterns":[{"include":"#array_dimensions"},{"match":"(?i)\\\\bof\\\\b","name":"storage.modifier.ada"},{"match":"(?i)\\\\baliased\\\\b","name":"storage.visibility.ada"},{"include":"#access_definition"},{"include":"#subtype_mark"}]},"aspect_clause":{"begin":"(?i)\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"patterns":[{"include":"#subtype_mark"}]},"3":{"name":"punctuation.ada"},"5":{"name":"keyword.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.aspect.clause.ada","patterns":[{"begin":"(?i)\\\\buse\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=;)","endCaptures":{"0":{"name":"punctuation.ada"}},"patterns":[{"include":"#record_representation_clause"},{"include":"#array_aggregate"},{"include":"#expression"}]},{"begin":"(?i)(?<=for)","captures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=use)","patterns":[{"captures":{"1":{"patterns":[{"include":"#subtype_mark"}]},"2":{"patterns":[{"include":"#attribute"}]}},"match":"([_\\\\w\\\\d]+)('([_\\\\w\\\\d]+))?"}]}]},"aspect_definition":{"begin":"=>","beginCaptures":{"0":{"name":"keyword.other.ada"}},"end":"(?i)(?=([,;]|\\\\bis\\\\b))","name":"meta.aspect.definition.ada","patterns":[{"include":"#expression"}]},"aspect_mark":{"captures":{"1":{"name":"keyword.control.directive.ada"},"2":{"name":"punctuation.ada"},"3":{"name":"entity.other.attribute-name.ada"}},"match":"(?i)\\\\b([._\\\\w\\\\d]+)(?:(')(class))?\\\\b","name":"meta.aspect.mark.ada"},"aspect_specification":{"begin":"(?i)\\\\bwith\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=(;|\\\\bis\\\\b))","name":"meta.aspect.specification.ada","patterns":[{"match":",","name":"punctuation.ada"},{"captures":{"1":{"name":"storage.modifier.ada"},"2":{"name":"storage.modifier.ada"}},"match":"(?i)\\\\b(null)\\\\s+(record)\\\\b"},{"begin":"(?i)\\\\brecord\\\\b","beginCaptures":{"0":{"name":"storage.modifier.ada"}},"end":"(?i)\\\\b(end)\\\\s+(record)\\\\b","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"storage.modifier.ada"}},"patterns":[{"include":"#component_item"}]},{"captures":{"0":{"name":"storage.visibility.ada"}},"match":"(?i)\\\\bprivate\\\\b"},{"include":"#aspect_definition"},{"include":"#aspect_mark"},{"include":"#comment"}]},"assignment_statement":{"begin":"\\\\b([\\"'()._\\\\w\\\\d\\\\s]+)\\\\s*(:=)","beginCaptures":{"1":{"patterns":[{"match":"([._\\\\w\\\\d]+)","name":"variable.name.ada"},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","patterns":[{"include":"#expression"}]}]},"2":{"name":"keyword.operator.new.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.assignment.ada","patterns":[{"include":"#expression"},{"include":"#comment"}]},"attribute":{"captures":{"1":{"name":"punctuation.ada"},"2":{"name":"entity.other.attribute-name.ada"}},"match":"(')([_\\\\w\\\\d]+)\\\\b","name":"meta.attribute.ada"},"based_literal":{"captures":{"1":{"name":"constant.numeric.base.ada"},"2":{"name":"punctuation.ada"},"3":{"name":"punctuation.ada"},"4":{"name":"punctuation.radix-point.ada"},"5":{"name":"punctuation.ada"},"6":{"name":"constant.numeric.base.ada"},"7":{"patterns":[{"include":"#exponent_part"}]}},"match":"(?i)(\\\\d(?:(_)?\\\\d)*#)[0-9a-f](?:(_)?[0-9a-f])*(?:(\\\\.)[0-9a-f](?:(_)?[0-9a-f])*)?(#)([Ee][-+]?\\\\d(?:_?\\\\d)*)?","name":"constant.numeric.ada"},"basic_declaration":{"patterns":[{"include":"#type_declaration"},{"include":"#subtype_declaration"},{"include":"#exception_declaration"},{"include":"#object_declaration"},{"include":"#single_protected_declaration"},{"include":"#single_task_declaration"},{"include":"#subprogram_specification"},{"include":"#package_declaration"},{"include":"#pragma"},{"include":"#comment"}]},"basic_declarative_item":{"patterns":[{"include":"#basic_declaration"},{"include":"#aspect_clause"},{"include":"#use_clause"},{"include":"#keyword"}]},"block_statement":{"begin":"(?i)\\\\bdeclare\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(end)(\\\\s+[_\\\\w\\\\d]+)?\\\\s*(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.label.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.statement.block.ada","patterns":[{"begin":"(?i)(?<=declare)","end":"(?i)\\\\bbegin\\\\b","endCaptures":{"0":{"name":"keyword.ada"}},"patterns":[{"include":"#body"},{"include":"#basic_declarative_item"}]},{"begin":"(?i)(?<=begin)","end":"(?i)(?=end)","patterns":[{"include":"#statement"}]}]},"body":{"patterns":[{"include":"#subprogram_body"},{"include":"#package_body"},{"include":"#task_body"},{"include":"#protected_body"}]},"case_statement":{"begin":"(?i)\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(end)\\\\s+(case)\\\\s*(;)","endCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"keyword.control.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.statement.case.ada","patterns":[{"begin":"(?i)(?<=case)\\\\b","end":"(?i)\\\\bis\\\\b","endCaptures":{"0":{"name":"keyword.control.ada"}},"patterns":[{"include":"#expression"}]},{"begin":"(?i)\\\\bwhen\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"=>","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.case.alternative.ada","patterns":[{"match":"(?i)\\\\bothers\\\\b","name":"keyword.modifier.unknown.ada"},{"match":"\\\\|","name":"punctuation.ada"},{"include":"#expression"}]},{"include":"#statement"}]},"character_literal":{"captures":{"0":{"patterns":[{"match":"'","name":"punctuation.definition.string.ada"}]}},"match":"'.'","name":"string.quoted.single.ada"},"comment":{"patterns":[{"include":"#preprocessor"},{"include":"#comment-section"},{"include":"#comment-doc"},{"include":"#comment-line"}]},"comment-doc":{"captures":{"1":{"name":"comment.line.double-dash.ada"},"2":{"name":"punctuation.definition.tag.ada"},"3":{"name":"entity.name.tag.ada"},"4":{"name":"comment.line.double-dash.ada"}},"match":"(--)\\\\s*(@)(\\\\w+)\\\\s+(.*)$","name":"comment.block.documentation.ada"},"comment-line":{"match":"--.*$","name":"comment.line.double-dash.ada"},"comment-section":{"captures":{"1":{"name":"entity.name.section.ada"}},"match":"--\\\\s*([^-].*?[^-])\\\\s*--\\\\s*$","name":"comment.line.double-dash.ada"},"component_clause":{"begin":"(?i)\\\\b([_\\\\w\\\\d]+)\\\\b","beginCaptures":{"0":{"name":"variable.name.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.aspect.clause.record.representation.component.ada","patterns":[{"begin":"(?i)\\\\bat\\\\b","beginCaptures":{"0":{"name":"storage.modifier.ada"}},"end":"(?i)\\\\b(?=range)\\\\b","patterns":[{"include":"#expression"}]},{"include":"#range_constraint"}]},"component_declaration":{"begin":"(?i)\\\\b([_\\\\w\\\\d]+(?:\\\\s*,\\\\s*[_\\\\w\\\\d]+)?)\\\\s*(:)","beginCaptures":{"1":{"patterns":[{"match":",","name":"punctuation.ada"},{"match":"\\\\b([_\\\\w\\\\d])+\\\\b","name":"variable.name.ada"}]},"2":{"name":"punctuation.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.declaration.type.definition.record.component.ada","patterns":[{"patterns":[{"match":":=","name":"keyword.operator.new.ada"},{"include":"#expression"}]},{"include":"#component_definition"}]},"component_definition":{"patterns":[{"match":"(?i)\\\\baliased\\\\b","name":"storage.visibility.ada"},{"match":"(?i)\\\\brange\\\\b","name":"storage.modifier.ada"},{"match":"\\\\.\\\\.","name":"keyword.ada"},{"include":"#access_definition"},{"include":"#subtype_mark"}]},"component_item":{"patterns":[{"include":"#component_declaration"},{"include":"#variant_part"},{"include":"#comment"},{"include":"#aspect_clause"},{"captures":{"1":{"name":"keyword.ada"},"2":{"name":"punctuation.ada"}},"match":"(?i)\\\\b(null)\\\\s*(;)"}]},"composite_constraint":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","name":"meta.declaration.constraint.composite.ada","patterns":[{"match":",","name":"punctuation.ada"},{"match":"\\\\.\\\\.","name":"keyword.ada"},{"captures":{"1":{"name":"variable.name.ada"},"2":{"name":"keyword.other.ada"},"3":{"patterns":[{"include":"#expression"}]}},"match":"(?i)\\\\b([_\\\\w\\\\d]+)\\\\s*(=>)\\\\s*([^),])+\\\\b"},{"include":"#expression"}]},"decimal_literal":{"captures":{"1":{"name":"punctuation.ada"},"2":{"name":"punctuation.radix-point.ada"},"3":{"name":"punctuation.ada"},"4":{"patterns":[{"include":"#exponent_part"}]}},"match":"\\\\d(?:(_)?\\\\d)*(?:(\\\\.)\\\\d(?:(_)?\\\\d)*)?([Ee][-+]?\\\\d(?:_?\\\\d)*)?","name":"constant.numeric.ada"},"declarative_item":{"patterns":[{"include":"#body"},{"include":"#basic_declarative_item"}]},"delay_relative_statement":{"begin":"(?i)\\\\b(delay)\\\\b","beginCaptures":{"1":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"patterns":[{"include":"#expression"}]},"delay_statement":{"patterns":[{"include":"#delay_until_statement"},{"include":"#delay_relative_statement"}]},"delay_until_statement":{"begin":"(?i)\\\\b(delay)\\\\s+(until)\\\\b","beginCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.delay.until.ada","patterns":[{"include":"#expression"}]},"derived_type_definition":{"name":"meta.declaration.type.definition.derived.ada","patterns":[{"begin":"(?i)\\\\bnew\\\\b","beginCaptures":{"0":{"name":"storage.modifier.ada"}},"end":"(?i)(?=(\\\\bwith\\\\b|;))","patterns":[{"match":"(?i)\\\\band\\\\b","name":"storage.modifier.ada"},{"include":"#subtype_mark"}]},{"match":"(?i)\\\\b(abstract|and|limited|tagged)\\\\b","name":"storage.modifier.ada"},{"match":"(?i)\\\\bprivate\\\\b","name":"storage.visibility.ada"},{"include":"#subtype_mark"}]},"discriminant_specification":{"begin":"(?i)\\\\b([_\\\\w\\\\d]+(?:\\\\s*,\\\\s*[_\\\\w\\\\d]+)?)\\\\s*(:)","beginCaptures":{"1":{"patterns":[{"match":",","name":"punctuation.ada"},{"match":"\\\\b([_\\\\w\\\\d])+\\\\b","name":"variable.name.ada"}]},"2":{"name":"punctuation.ada"}},"end":"(?=([);]))","patterns":[{"begin":":=","beginCaptures":{"0":{"name":"keyword.operator.new.ada"}},"end":"(?=([);]))","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"storage.visibility.ada"},"2":{"patterns":[{"include":"#subtype_mark"}]}},"match":"(?i)(not\\\\s+null\\\\s+)?([._\\\\w\\\\d]+)\\\\b"},{"include":"#access_definition"}]},"entry_body":{"begin":"(?i)\\\\b(entry)\\\\s+([_\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.entry.ada"}},"end":"(?i)\\\\b(end)\\\\s*(\\\\s\\\\2)\\\\s*(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.entry.ada"},"3":{"name":"punctuation.ada"}},"patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=begin)\\\\b","patterns":[{"include":"#declarative_item"}]},{"begin":"(?i)\\\\bbegin\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"include":"#statement"}]},{"begin":"(?i)\\\\bwhen\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=is)\\\\b","patterns":[{"include":"#expression"}]},{"include":"#parameter_profile"}]},"entry_declaration":{"begin":"(?i)\\\\b(?:(not)?\\\\s+(overriding)\\\\s+)?(entry)\\\\s+([_\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.ada"},"2":{"name":"storage.modifier.ada"},"3":{"name":"keyword.ada"},"4":{"name":"entity.name.entry.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"patterns":[{"include":"#parameter_profile"}]},"enumeration_type_definition":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.declaration.type.definition.enumeration.ada","patterns":[{"match":",","name":"punctuation.ada"},{"match":"\\\\b([_\\\\w\\\\d])+\\\\b","name":"variable.name.ada"},{"include":"#comment"}]},"exception_declaration":{"begin":"(?i)\\\\b([_\\\\w\\\\d]+(?:\\\\s*,\\\\s*[_\\\\w\\\\d]+)?)\\\\s*(:)\\\\s*(exception)","beginCaptures":{"1":{"patterns":[{"match":",","name":"punctuation.ada"},{"match":"\\\\b([_\\\\w\\\\d])+\\\\b","name":"entity.name.exception.ada"}]},"2":{"name":"punctuation.ada"},"3":{"name":"storage.type.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.declaration.exception.ada","patterns":[{"match":"(?i)\\\\b(renames)\\\\s+(([._\\\\w\\\\d])+)","name":"entity.name.exception.ada"}]},"exit_statement":{"begin":"(?i)\\\\bexit\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.exit.ada","patterns":[{"begin":"(?i)\\\\bwhen\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?=;)","patterns":[{"include":"#expression"}]},{"match":"[_\\\\w\\\\d]+","name":"entity.name.label.ada"}]},"exponent_part":{"captures":{"1":{"name":"punctuation.exponent-mark.ada"},"2":{"name":"keyword.operator.unary.ada"},"3":{"name":"punctuation.ada"}},"match":"([Ee])([-+])?\\\\d(?:(_)?\\\\d)*"},"expression":{"name":"meta.expression.ada","patterns":[{"match":"(?i)\\\\bnull\\\\b","name":"constant.language.ada"},{"match":"=>(\\\\+)?","name":"keyword.other.ada"},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","patterns":[{"include":"#expression"}]},{"match":",","name":"punctuation.ada"},{"match":"\\\\.\\\\.","name":"keyword.ada"},{"include":"#value"},{"include":"#attribute"},{"include":"#comment"},{"include":"#operator"},{"match":"(?i)\\\\b(and|or|xor)\\\\b","name":"keyword.ada"},{"match":"(?i)\\\\b(if|then|else|elsif|in|for|(?","endCaptures":{"0":{"name":"keyword.other.ada"}},"patterns":[{"include":"#expression"}]},"handled_sequence_of_statements":{"patterns":[{"begin":"(?i)\\\\bexception\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","name":"meta.handler.exception.ada","patterns":[{"begin":"(?i)\\\\bwhen\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"=>","endCaptures":{"0":{"name":"keyword.other.ada"}},"patterns":[{"captures":{"1":{"name":"variable.name.ada"},"2":{"name":"punctuation.ada"}},"match":"\\\\b([._\\\\w\\\\d]+)\\\\s*(:)"},{"match":"\\\\|","name":"punctuation.ada"},{"match":"(?i)\\\\bothers\\\\b","name":"keyword.ada"},{"match":"[._\\\\w\\\\d]+","name":"entity.name.exception.ada"}]},{"include":"#statement"}]},{"include":"#statement"}]},"highest_precedence_operator":{"match":"(?i)(\\\\*\\\\*|\\\\babs\\\\b|\\\\bnot\\\\b)","name":"keyword.operator.highest-precedence.ada"},"if_statement":{"begin":"(?i)\\\\bif\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(end)\\\\s+(if)\\\\s*(;)","endCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"keyword.control.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.statement.if.ada","patterns":[{"begin":"(?i)\\\\belsif\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)(?","name":"keyword.modifier.unknown.ada"},{"match":"([-*+/])","name":"keyword.operator.arithmetic.ada"},{"match":":=","name":"keyword.operator.assignment.ada"},{"match":"(=|/=|[<>]|<=|>=)","name":"keyword.operator.logic.ada"},{"match":"&","name":"keyword.operator.concatenation.ada"}]},"known_discriminant_part":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","name":"meta.declaration.type.discriminant.ada","patterns":[{"match":";","name":"punctuation.ada"},{"include":"#discriminant_specification"}]},"label":{"captures":{"1":{"name":"punctuation.label.ada"},"2":{"name":"entity.name.label.ada"},"3":{"name":"punctuation.label.ada"}},"match":"(<<)?([_\\\\w\\\\d]+)\\\\s*(:[^=]|>>)","name":"meta.label.ada"},"library_unit":{"name":"meta.library.unit.ada","patterns":[{"include":"#package_body"},{"include":"#package_specification"},{"include":"#subprogram_body"}]},"loop_statement":{"patterns":[{"include":"#simple_loop_statement"},{"include":"#while_loop_statement"},{"include":"#for_loop_statement"}]},"modular_type_definition":{"begin":"(?i)\\\\b(mod)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.ada"}},"end":"(?i)(?=(with|;))","patterns":[{"match":"<>","name":"keyword.modifier.unknown.ada"},{"include":"#expression"}]},"multiplying_operator":{"match":"(?i)([*/]|\\\\bmod\\\\b|\\\\brem\\\\b)","name":"keyword.operator.multiplying.ada"},"null_statement":{"captures":{"1":{"name":"keyword.ada"},"2":{"name":"punctuation.ada"}},"match":"(?i)\\\\b(null)\\\\s*(;)","name":"meta.statement.null.ada"},"object_declaration":{"begin":"(?i)\\\\b([_\\\\w\\\\d]+(?:\\\\s*,\\\\s*[_\\\\w\\\\d]+)*)\\\\s*(:)","beginCaptures":{"1":{"patterns":[{"match":",","name":"punctuation.ada"},{"match":"\\\\b([_\\\\w\\\\d])+\\\\b","name":"variable.name.ada"}]},"2":{"name":"punctuation.ada"}},"end":"(;)","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.declaration.object.ada","patterns":[{"begin":"(?<=:)","end":"(?=;)|(:=)|\\\\b(renames)\\\\b","endCaptures":{"1":{"name":"keyword.operator.new.ada"},"2":{"name":"keyword.ada"}},"patterns":[{"match":"(?i)\\\\bconstant\\\\b","name":"storage.modifier.ada"},{"match":"(?i)\\\\baliased\\\\b","name":"storage.visibility.ada"},{"include":"#aspect_specification"},{"include":"#subtype_mark"}]},{"begin":"(?<=:=)","end":"(?=;)","patterns":[{"include":"#aspect_specification"},{"include":"#expression"}]},{"begin":"(?<=renames)","end":"(?=;)","patterns":[{"include":"#aspect_specification"}]}]},"operator":{"patterns":[{"include":"#highest_precedence_operator"},{"include":"#multiplying_operator"},{"include":"#adding_operator"},{"include":"#relational_operator"},{"include":"#logical_operator"}]},"package_body":{"begin":"(?i)\\\\b(package)\\\\s+(body)\\\\s+([._\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"keyword.ada"},"3":{"patterns":[{"include":"#package_mark"}]}},"end":"(?i)\\\\b(end)\\\\s+(\\\\3)\\\\s*(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"patterns":[{"include":"#package_mark"}]},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.package.body.ada","patterns":[{"begin":"(?i)\\\\bbegin\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"include":"#handled_sequence_of_statements"}]},{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=\\\\b(begin|end)\\\\b)","patterns":[{"match":"(?i)\\\\bprivate\\\\b","name":"keyword.ada"},{"include":"#declarative_item"},{"include":"#comment"}]},{"include":"#aspect_specification"}]},"package_declaration":{"patterns":[{"include":"#package_specification"}]},"package_mark":{"match":"\\\\b([._\\\\w\\\\d])+\\\\b","name":"entity.name.package.ada"},"package_specification":{"begin":"(?i)\\\\b(package)\\\\s+([._\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"patterns":[{"include":"#package_mark"}]}},"end":"(?i)(?:\\\\b(end)\\\\s+(\\\\2)\\\\s*)?(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"patterns":[{"include":"#package_mark"}]},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.package.specification.ada","patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=(end|;))","patterns":[{"begin":"(?i)\\\\bnew\\\\b","beginCaptures":{"0":{"name":"keyword.operator.new.ada"}},"end":"(?=;)","name":"meta.declaration.package.generic.ada","patterns":[{"include":"#package_mark"},{"include":"#actual_parameter_part"}]},{"match":"(?i)\\\\bprivate\\\\b","name":"keyword.ada"},{"include":"#basic_declarative_item"},{"include":"#comment"}]},{"include":"#aspect_specification"}]},"parameter_association":{"patterns":[{"captures":{"1":{"name":"variable.parameter.ada"},"2":{"name":"keyword.other.ada"}},"match":"([_\\\\w\\\\d]+)\\\\s*(=>)"},{"include":"#expression"}]},"parameter_profile":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.ada"}},"end":"\\\\)","patterns":[{"match":";","name":"punctuation.ada"},{"include":"#parameter_specification"}]},"parameter_specification":{"patterns":[{"begin":":(?!=)","beginCaptures":{"0":{"name":"punctuation.ada"}},"end":"(?=[):;])","name":"meta.type.annotation.ada","patterns":[{"match":"(?i)\\\\b(in|out)\\\\b","name":"keyword.ada"},{"include":"#subtype_mark"}]},{"begin":":=","beginCaptures":{"0":{"name":"keyword.operator.new.ada"}},"end":"(?=[):;])","patterns":[{"include":"#expression"}]},{"match":",","name":"punctuation.ada"},{"match":"\\\\b[._\\\\w\\\\d]+\\\\b","name":"variable.parameter.ada"},{"include":"#comment"}]},"positional_array_aggregate":{"name":"meta.definition.array.aggregate.positional.ada","patterns":[{"captures":{"1":{"name":"keyword.ada"},"2":{"name":"keyword.other.ada"},"3":{"patterns":[{"match":"<>","name":"keyword.modifier.unknown.ada"},{"include":"#expression"}]}},"match":"(?i)\\\\b(others)\\\\s*(=>)\\\\s*([^),]+)"},{"include":"#expression"}]},"pragma":{"begin":"(?i)\\\\b(pragma)\\\\s+([_\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"keyword.control.directive.ada"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.ada"}},"name":"meta.pragma.ada","patterns":[{"include":"#expression"}]},"preprocessor":{"name":"meta.preprocessor.ada","patterns":[{"captures":{"1":{"name":"punctuation.definition.directive.ada"},"2":{"name":"keyword.control.directive.conditional.ada"},"3":{"patterns":[{"include":"#expression"}]}},"match":"^\\\\s*(#)(if|elsif)\\\\s+(.*)$"},{"captures":{"1":{"name":"punctuation.definition.directive.ada"},"2":{"name":"keyword.control.directive.conditional"},"3":{"name":"punctuation.ada"}},"match":"^\\\\s*(#)(end if)(;)"},{"captures":{"1":{"name":"punctuation.definition.directive.ada"},"2":{"name":"keyword.control.directive.conditional"}},"match":"^\\\\s*(#)(else)"}]},"procedure_body":{"begin":"(?i)\\\\b(overriding\\\\s+)?(procedure)\\\\s+([._\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"storage.visibility.ada"},"2":{"name":"keyword.ada"},"3":{"name":"entity.name.function.ada"}},"end":"(?i)(?:\\\\b(end)\\\\s+(\\\\3)\\\\s*)?(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.function.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.procedure.body.ada","patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=(with|begin|;))","patterns":[{"begin":"(?i)\\\\bnew\\\\b","beginCaptures":{"0":{"name":"keyword.operator.new.ada"}},"end":"(?=;)","name":"meta.declaration.package.generic.ada","patterns":[{"match":"([._\\\\w\\\\d]+)","name":"entity.name.function.ada"},{"include":"#actual_parameter_part"}]},{"match":"(?i)\\\\b(null|abstract)\\\\b","name":"storage.modifier.ada"},{"include":"#declarative_item"}]},{"begin":"(?i)\\\\bbegin\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=\\\\bend\\\\b)","patterns":[{"include":"#handled_sequence_of_statements"}]},{"include":"#subprogram_renaming_declaration"},{"include":"#aspect_specification"},{"include":"#parameter_profile"},{"include":"#comment"}]},"procedure_call_statement":{"begin":"(?i)\\\\b([._\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"entity.name.function.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.call.ada","patterns":[{"include":"#attribute"},{"include":"#actual_parameter_part"},{"include":"#comment"}]},"procedure_specification":{"patterns":[{"include":"#procedure_body"}]},"protected_body":{"begin":"(?i)\\\\b(protected)\\\\s+(body)\\\\s+([._\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.ada"},"2":{"name":"keyword.ada"},"3":{"name":"entity.name.body.ada"}},"end":"(?i)\\\\b(end)\\\\s*(\\\\s\\\\3)\\\\s*(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.body.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.procedure.body.ada","patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"include":"#protected_operation_item"}]}]},"protected_element_declaration":{"patterns":[{"include":"#subprogram_specification"},{"include":"#aspect_clause"},{"include":"#entry_declaration"},{"include":"#component_declaration"},{"include":"#pragma"}]},"protected_operation_item":{"patterns":[{"include":"#subprogram_specification"},{"include":"#subprogram_body"},{"include":"#aspect_clause"},{"include":"#entry_body"}]},"raise_expression":{"begin":"(?i)\\\\braise\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?=;)","name":"meta.expression.raise.ada","patterns":[{"begin":"(?i)\\\\bwith\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=([);]))","patterns":[{"include":"#expression"}]},{"match":"\\\\b([_\\\\w\\\\d])+\\\\b","name":"entity.name.exception.ada"}]},"raise_statement":{"begin":"(?i)\\\\braise\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.raise.ada","patterns":[{"begin":"(?i)\\\\bwith\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?=;)","patterns":[{"include":"#expression"}]},{"match":"\\\\b([._\\\\w\\\\d])+\\\\b","name":"entity.name.exception.ada"}]},"range_constraint":{"begin":"(?i)\\\\brange\\\\b","beginCaptures":{"0":{"name":"storage.modifier.ada"}},"end":"(?=(\\\\bwith\\\\b|;))","patterns":[{"match":"\\\\.\\\\.","name":"keyword.ada"},{"match":"<>","name":"keyword.modifier.unknown.ada"},{"include":"#expression"}]},"real_type_definition":{"name":"meta.declaration.type.definition.real-type.ada","patterns":[{"include":"#scalar_constraint"}]},"record_representation_clause":{"begin":"(?i)\\\\b(record)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.ada"}},"end":"(?i)\\\\b(end)\\\\s+(record)\\\\b","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"storage.modifier.ada"}},"name":"meta.aspect.clause.record.representation.ada","patterns":[{"include":"#component_clause"},{"include":"#comment"}]},"record_type_definition":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ada"},"2":{"name":"storage.modifier.ada"},"3":{"name":"storage.modifier.ada"},"4":{"name":"storage.modifier.ada"},"5":{"name":"storage.modifier.ada"}},"match":"(?i)\\\\b(?:(abstract)\\\\s+)?(?:(tagged)\\\\s+)?(?:(limited)\\\\s+)?(null)\\\\s+(record)\\\\b","name":"meta.declaration.type.definition.record.null.ada","patterns":[{"include":"#component_item"}]},{"begin":"(?i)\\\\b(?:(abstract)\\\\s+)?(?:(tagged)\\\\s+)?(?:(limited)\\\\s+)?(record)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.ada"},"2":{"name":"storage.modifier.ada"},"3":{"name":"storage.modifier.ada"},"4":{"name":"storage.modifier.ada"}},"end":"(?i)\\\\b(end)\\\\s+(record)\\\\b","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"storage.modifier.ada"}},"name":"meta.declaration.type.definition.record.ada","patterns":[{"include":"#component_item"}]}]},"regular_type_declaration":{"begin":"(?i)\\\\b(type)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.declaration.type.definition.regular.ada","patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=(with(?!\\\\s+(private))|;))","patterns":[{"include":"#type_definition"}]},{"begin":"(?i)\\\\b(?<=type)\\\\b","end":"(?i)(?=(is|;))","patterns":[{"include":"#known_discriminant_part"},{"include":"#subtype_mark"}]},{"include":"#aspect_specification"}]},"relational_operator":{"match":"(=|/=|<=??|>=??)","name":"keyword.operator.relational.ada"},"requeue_statement":{"begin":"(?i)\\\\brequeue\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.requeue.ada","patterns":[{"match":"(?i)\\\\b(with|abort)\\\\b","name":"keyword.control.ada"},{"match":"\\\\b([._\\\\w\\\\d])+\\\\b","name":"entity.name.function.ada"}]},"result_profile":{"begin":"(?i)\\\\breturn\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=(is|with|renames|;))","patterns":[{"include":"#subtype_mark"}]},"return_statement":{"begin":"(?i)\\\\breturn\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.statement.return.ada","patterns":[{"begin":"(?i)\\\\bdo\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(end)\\\\s+(return)\\\\s*(?=;)","endCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"keyword.control.ada"}},"patterns":[{"include":"#label"},{"include":"#statement"}]},{"captures":{"1":{"name":"variable.name.ada"},"2":{"name":"punctuation.ada"},"3":{"name":"entity.name.type.ada"}},"match":"\\\\b([_\\\\w\\\\d]+)\\\\s*(:)\\\\s*([._\\\\w\\\\d]+)\\\\b"},{"match":":=","name":"keyword.operator.new.ada"},{"include":"#expression"}]},"scalar_constraint":{"name":"meta.declaration.constraint.scalar.ada","patterns":[{"begin":"(?i)\\\\b(d(?:igits|elta))\\\\b","beginCaptures":{"1":{"name":"storage.modifier.ada"}},"end":"(?i)(?=\\\\brange\\\\b|\\\\bdigits\\\\b|\\\\bwith\\\\b|;)","patterns":[{"include":"#expression"}]},{"include":"#range_constraint"},{"include":"#expression"}]},"select_alternative":{"patterns":[{"begin":"(?i)\\\\bterminate\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}}},{"include":"#statement"}]},"select_statement":{"begin":"(?i)\\\\bselect\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(end)\\\\s+(select)\\\\b","endCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"keyword.control.ada"}},"name":"meta.statement.select.ada","patterns":[{"begin":"(?i)\\\\b(?:(or)|(?<=select))\\\\b","beginCaptures":{"1":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(?=(or|else|end))\\\\b","patterns":[{"include":"#guard"},{"include":"#select_alternative"}]},{"begin":"(?i)\\\\belse\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"include":"#statement"}]}]},"signed_integer_type_definition":{"patterns":[{"include":"#range_constraint"}]},"simple_loop_statement":{"begin":"(?i)\\\\bloop\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(end)\\\\s+(loop)(\\\\s+[_\\\\w\\\\d]+)?\\\\s*(;)","endCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"keyword.control.ada"},"3":{"name":"entity.name.label.ada"},"4":{"name":"punctuation.ada"}},"name":"meta.statement.loop.ada","patterns":[{"include":"#statement"}]},"single_protected_declaration":{"begin":"(?i)\\\\b(protected)\\\\s+([_\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.protected.ada"}},"end":"(?i)(?:\\\\b(end)\\\\s*(\\\\s\\\\2)?\\\\s*)?(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.protected.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.protected.ada","patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=(\\\\bend\\\\b|;))","patterns":[{"begin":"(?i)\\\\bnew\\\\b","captures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\bwith\\\\b","patterns":[{"match":"(?i)\\\\band\\\\b","name":"keyword.ada"},{"include":"#subtype_mark"},{"include":"#comment"}]},{"match":"(?i)\\\\bprivate\\\\b","name":"keyword.ada"},{"include":"#protected_element_declaration"},{"include":"#comment"}]},{"include":"#comment"}]},"single_task_declaration":{"begin":"(?i)\\\\b(task)\\\\s+([_\\\\w\\\\d]+)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.task.ada"}},"end":"(?i)(?:\\\\b(end)\\\\s*(\\\\s\\\\2)?\\\\s*)?(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.task.ada"},"3":{"name":"punctuation.ada"}},"patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"begin":"(?i)\\\\bnew\\\\b","captures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\bwith\\\\b","patterns":[{"match":"(?i)\\\\band\\\\b","name":"keyword.ada"},{"include":"#subtype_mark"},{"include":"#comment"}]},{"match":"(?i)\\\\bprivate\\\\b","name":"keyword.ada"},{"include":"#task_item"},{"include":"#comment"}]},{"include":"#comment"}]},"statement":{"patterns":[{"begin":"(?i)\\\\bbegin\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(end)\\\\s*(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"punctuation.ada"}},"patterns":[{"include":"#handled_sequence_of_statements"}]},{"include":"#label"},{"include":"#null_statement"},{"include":"#return_statement"},{"include":"#assignment_statement"},{"include":"#exit_statement"},{"include":"#goto_statement"},{"include":"#requeue_statement"},{"include":"#delay_statement"},{"include":"#abort_statement"},{"include":"#raise_statement"},{"include":"#if_statement"},{"include":"#case_statement"},{"include":"#loop_statement"},{"include":"#block_statement"},{"include":"#select_statement"},{"include":"#accept_statement"},{"include":"#pragma"},{"include":"#procedure_call_statement"},{"include":"#comment"}]},"string_literal":{"captures":{"1":{"name":"punctuation.definition.string.ada"},"2":{"name":"punctuation.definition.string.ada"}},"match":"(\\").*?(\\")","name":"string.quoted.double.ada"},"subprogram_body":{"name":"meta.declaration.subprogram.body.ada","patterns":[{"include":"#procedure_body"},{"include":"#function_body"}]},"subprogram_renaming_declaration":{"begin":"(?i)\\\\brenames\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=(with|;))","patterns":[{"match":"[._\\\\w\\\\d]+","name":"entity.name.function.ada"}]},"subprogram_specification":{"name":"meta.declaration.subprogram.specification.ada","patterns":[{"include":"#procedure_specification"},{"include":"#function_specification"}]},"subtype_declaration":{"begin":"(?i)\\\\bsubtype\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.declaration.subtype.ada","patterns":[{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=;)","patterns":[{"match":"(?i)\\\\b(not\\\\s+null)\\\\b","name":"storage.modifier.ada"},{"include":"#composite_constraint"},{"include":"#aspect_specification"},{"include":"#subtype_indication"}]},{"begin":"(?i)(?<=subtype)","end":"(?i)\\\\b(?=is)\\\\b","patterns":[{"include":"#subtype_mark"}]}]},"subtype_indication":{"name":"meta.declaration.indication.subtype.ada","patterns":[{"include":"#scalar_constraint"},{"include":"#subtype_mark"}]},"subtype_mark":{"patterns":[{"match":"(?i)\\\\b(access|aliased|not\\\\s+null|constant)\\\\b","name":"storage.visibility.ada"},{"include":"#attribute"},{"include":"#actual_parameter_part"},{"begin":"(?i)\\\\b(procedure|function)\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=([);]))","patterns":[{"include":"#parameter_profile"},{"begin":"(?i)\\\\breturn\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?=([);]))","patterns":[{"include":"#subtype_mark"}]}]},{"captures":{"0":{"patterns":[{"match":"[._]","name":"punctuation.ada"}]}},"match":"\\\\b[._\\\\w\\\\d]+\\\\b","name":"entity.name.type.ada"},{"include":"#comment"}]},"task_body":{"begin":"(?i)\\\\b(task)\\\\s+(body)\\\\s+(([._\\\\w\\\\d])+)\\\\b","beginCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"keyword.ada"},"3":{"name":"entity.name.task.ada"}},"end":"(?i)(?:\\\\b(end)\\\\s*(?:\\\\s(\\\\3))?\\\\s*)?(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.task.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.task.body.ada","patterns":[{"begin":"(?i)\\\\bbegin\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=end)","patterns":[{"include":"#handled_sequence_of_statements"}]},{"include":"#aspect_specification"},{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)(?=(with|begin))","patterns":[{"include":"#declarative_item"}]}]},"task_item":{"patterns":[{"include":"#aspect_clause"},{"include":"#entry_declaration"}]},"task_type_declaration":{"begin":"(?i)\\\\b(task)\\\\s+(type)\\\\s+(([._\\\\w\\\\d])+)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.ada"},"2":{"name":"keyword.ada"},"3":{"name":"entity.name.task.ada"}},"end":"(?i)(?:\\\\b(end)\\\\s*(?:\\\\s(\\\\3))?\\\\s*)?(;)","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"entity.name.task.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.type.task.ada","patterns":[{"include":"#known_discriminant_part"},{"begin":"(?i)\\\\bis\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"begin":"(?i)\\\\bnew\\\\b","captures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\bwith\\\\b","patterns":[{"match":"(?i)\\\\band\\\\b","name":"keyword.ada"},{"include":"#subtype_mark"},{"include":"#comment"}]},{"match":"(?i)\\\\bprivate\\\\b","name":"keyword.ada"},{"include":"#task_item"},{"include":"#comment"}]},{"include":"#comment"}]},"type_declaration":{"name":"meta.declaration.type.ada","patterns":[{"include":"#full_type_declaration"}]},"type_definition":{"name":"meta.declaration.type.definition.ada","patterns":[{"include":"#enumeration_type_definition"},{"include":"#integer_type_definition"},{"include":"#real_type_definition"},{"include":"#array_type_definition"},{"include":"#record_type_definition"},{"include":"#access_type_definition"},{"include":"#interface_type_definition"},{"include":"#derived_type_definition"}]},"use_clause":{"name":"meta.context.use.ada","patterns":[{"include":"#use_type_clause"},{"include":"#use_package_clause"}]},"use_package_clause":{"begin":"(?i)\\\\buse\\\\b","beginCaptures":{"0":{"name":"keyword.other.using.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.context.use.package.ada","patterns":[{"match":",","name":"punctuation.ada"},{"include":"#package_mark"}]},"use_type_clause":{"begin":"(?i)\\\\b(use)\\\\s+(?:(all)\\\\s+)?(type)\\\\b","beginCaptures":{"1":{"name":"keyword.other.using.ada"},"2":{"name":"keyword.modifier.ada"},"3":{"name":"keyword.modifier.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.context.use.type.ada","patterns":[{"match":",","name":"punctuation.ada"},{"include":"#subtype_mark"}]},"value":{"patterns":[{"include":"#based_literal"},{"include":"#decimal_literal"},{"include":"#character_literal"},{"include":"#string_literal"}]},"variant_part":{"begin":"(?i)\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"(?i)\\\\b(end)\\\\s+(case);","endCaptures":{"1":{"name":"keyword.ada"},"2":{"name":"keyword.ada"},"3":{"name":"punctuation.ada"}},"name":"meta.declaration.variant.ada","patterns":[{"begin":"(?i)\\\\b(?<=case)\\\\b","end":"(?i)\\\\bis\\\\b","endCaptures":{"0":{"name":"keyword.ada"}},"patterns":[{"match":"[_\\\\w\\\\d]+","name":"variable.name.ada"},{"include":"#comment"}]},{"begin":"(?i)\\\\b(?<=is)\\\\b","end":"(?i)\\\\b(?=end)\\\\b","patterns":[{"begin":"(?i)\\\\bwhen\\\\b","beginCaptures":{"0":{"name":"keyword.ada"}},"end":"=>","endCaptures":{"0":{"name":"keyword.other.ada"}},"patterns":[{"match":"\\\\|","name":"punctuation.ada"},{"match":"(?i)\\\\bothers\\\\b","name":"keyword.ada"},{"include":"#expression"}]},{"include":"#component_item"}]}]},"while_loop_statement":{"begin":"(?i)\\\\bwhile\\\\b","beginCaptures":{"0":{"name":"keyword.control.ada"}},"end":"(?i)\\\\b(end)\\\\s+(loop)(\\\\s+[_\\\\w\\\\d]+)?\\\\s*(;)","endCaptures":{"1":{"name":"keyword.control.ada"},"2":{"name":"keyword.control.ada"},"3":{"name":"entity.name.label.ada"},"4":{"name":"punctuation.ada"}},"name":"meta.statement.loop.while.ada","patterns":[{"begin":"(?i)(?<=while)\\\\b","end":"(?i)\\\\bloop\\\\b","endCaptures":{"0":{"name":"keyword.control.ada"}},"patterns":[{"include":"#expression"}]},{"include":"#statement"}]},"with_clause":{"begin":"(?i)\\\\b(?:(limited)\\\\s+)?(?:(private)\\\\s+)?(with)\\\\b","beginCaptures":{"1":{"name":"keyword.modifier.ada"},"2":{"name":"storage.visibility.ada"},"3":{"name":"keyword.other.using.ada"}},"end":";","endCaptures":{"0":{"name":"punctuation.ada"}},"name":"meta.context.with.ada","patterns":[{"match":",","name":"punctuation.ada"},{"include":"#package_mark"}]}},"scopeName":"source.ada"}`))];export{e as default}; diff --git a/docs/assets/add-cell-with-ai-DEdol3w0.js b/docs/assets/add-cell-with-ai-DEdol3w0.js new file mode 100644 index 0000000..e9c10d8 --- /dev/null +++ b/docs/assets/add-cell-with-ai-DEdol3w0.js @@ -0,0 +1,90 @@ +var zn=Object.defineProperty;var Un=(t,e,a)=>e in t?zn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var L=(t,e,a)=>Un(t,typeof e!="symbol"?e+"":e,a);import{s as ka,t as Vn}from"./chunk-LvLJmgfZ.js";import{f as Rr,i as Nr,l as qn,n as Bn,o as Wn,u as Jn}from"./useEvent-DlWF5OMa.js";import{t as Kn}from"./react-BGmjiNul.js";import{At as Mr,Dr as Yn,Ft as Hn,Gn,Gr as Qn,On as Xn,Yr as ei,Zr as ti,_n as ai,at as Ca,bn as ri,f as si,i as ni,ii,ir as Pr,ri as jr,rr as oi,tr as li,vt as di,w as Lr,wr as ui,y as Ge}from"./cells-CmJW_FeD.js";import{B as Te,D as ci,E as $r,H as pi,I as It,J as Dr,L as ee,N as Zr,O as mi,P as Q,R as k,S as hi,T as de,V as Ue,W as Fr,b as Bt,k as N,w as Ve,x as Wt}from"./zod-Cg4WLWh2.js";import{t as Ea}from"./compiler-runtime-DeeZ7FnK.js";import{i as zr}from"./useLifecycle-CmDXEyIC.js";import{d as oe,s as fi}from"./hotkeys-uKX61F1_.js";import{o as gi}from"./config-CENq_7Pd.js";import{t as yi}from"./jsx-runtime-DN_bIXfG.js";import{t as Qe}from"./button-B8cGZzP5.js";import{t as Ur}from"./cn-C1rgT0yh.js";import{Bt as vi,Jt,St as Kt,Ut as Vr,Vt as _i,Xt as bi,at as qr,ct as xi,lt as Br,qt as Yt,rt as Ta,xt as wi}from"./dist-CAcX026F.js";import{t as ki}from"./createReducer-DDa-hVe3.js";import{h as Ci,n as Ei,o as Ti,r as Ii}from"./dist-DKNOF5xd.js";import{r as Si,t as Oi}from"./requests-C0HaHO6a.js";import{t as Ia}from"./createLucideIcon-CW2xpJ57.js";import{t as Ai}from"./ai-model-dropdown-C-5PlP5A.js";import{h as Ri}from"./select-D9lTzMzP.js";import{d as Ni,l as Wr,n as Mi}from"./markdown-renderer-DjqhqmES.js";import{a as Jr,c as Pi,p as ji,r as Li,t as $i}from"./dropdown-menu-BP4_BZLr.js";import{t as Di}from"./play-BJDBXApx.js";import{n as Zi}from"./spinner-C1czjtp7.js";import{a as Fi}from"./state-B8vBQnkH.js";import{a as St,i as yt,o as Ot,r as vt,s as zi,t as Ui}from"./datasource-CCq9qyVG.js";import{a as Vi}from"./dist-HGZzCB0y.js";import{t as Kr}from"./use-toast-Bzf3rpev.js";import{r as qi}from"./useTheme-BSVRc0kJ.js";import{t as Bi}from"./tooltip-CvjcEpZC.js";import{s as Wi}from"./popover-DtnzNVk-.js";import{r as Ji}from"./errors-z7WpYca5.js";import{n as Ki}from"./useRunCells-DNnhJ0Gs.js";import{i as Sa}from"./cell-link-D7bPw7Fz.js";import{r as Yi,t as Hi}from"./es-BJsT6vfZ.js";import{n as Oa}from"./renderShortcut-BzTDKVab.js";import{t as Gi}from"./process-output-DN66BQYe.js";import{t as Qi}from"./blob-DtJQFQyD.js";import{t as Xi}from"./useDeleteCell-D-55qWAK.js";import{r as eo,t as to}from"./esm-D2_Kx6xF.js";import{n as ao}from"./icons-9QU2Dup7.js";var ro=Ia("at-sign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]),so=Ia("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]),no=Ia("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Yr="vercel.ai.error",io=Symbol.for(Yr),Hr,Gr,Xe=class Mn extends(Gr=Error,Hr=io,Gr){constructor({name:e,message:a,cause:r}){super(a),this[Hr]=!0,this.name=e,this.cause=r}static isInstance(e){return Mn.hasMarker(e,Yr)}static hasMarker(e,a){let r=Symbol.for(a);return typeof e=="object"&&!!e&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function Qr(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var Xr="AI_InvalidArgumentError",es=`vercel.ai.error.${Xr}`,oo=Symbol.for(es),ts,as,lo=class extends(as=Xe,ts=oo,as){constructor({message:t,cause:e,argument:a}){super({name:Xr,message:t,cause:e}),this[ts]=!0,this.argument=a}static isInstance(t){return Xe.hasMarker(t,es)}},rs="AI_JSONParseError",ss=`vercel.ai.error.${rs}`,uo=Symbol.for(ss),ns,is,os=class extends(is=Xe,ns=uo,is){constructor({text:t,cause:e}){super({name:rs,message:`JSON parsing failed: Text: ${t}. +Error message: ${Qr(e)}`,cause:e}),this[ns]=!0,this.text=t}static isInstance(t){return Xe.hasMarker(t,ss)}},ls="AI_TypeValidationError",ds=`vercel.ai.error.${ls}`,co=Symbol.for(ds),us,cs,Ht=class Er extends(cs=Xe,us=co,cs){constructor({value:e,cause:a}){super({name:ls,message:`Type validation failed: Value: ${JSON.stringify(e)}. +Error message: ${Qr(a)}`,cause:a}),this[us]=!0,this.value=e}static isInstance(e){return Xe.hasMarker(e,ds)}static wrap({value:e,cause:a}){return Er.isInstance(a)&&a.value===e?a:new Er({value:e,cause:a})}},ps=class extends Error{constructor(t,e){super(t),this.name="ParseError",this.type=e.type,this.field=e.field,this.value=e.value,this.line=e.line}};function Aa(t){}function po(t){if(typeof t=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:e=Aa,onError:a=Aa,onRetry:r=Aa,onComment:s}=t,n="",o=!0,i,l="",d="";function u(f){let c=o?f.replace(/^\xEF\xBB\xBF/,""):f,[m,_]=mo(`${n}${c}`);for(let E of m)p(E);n=_,o=!1}function p(f){if(f===""){h();return}if(f.startsWith(":")){s&&s(f.slice(f.startsWith(": ")?2:1));return}let c=f.indexOf(":");if(c!==-1){let m=f.slice(0,c),_=f[c+1]===" "?2:1;g(m,f.slice(c+_),f);return}g(f,"",f)}function g(f,c,m){switch(f){case"event":d=c;break;case"data":l=`${l}${c} +`;break;case"id":i=c.includes("\0")?void 0:c;break;case"retry":/^\d+$/.test(c)?r(parseInt(c,10)):a(new ps(`Invalid \`retry\` value: "${c}"`,{type:"invalid-retry",value:c,line:m}));break;default:a(new ps(`Unknown field "${f.length>20?`${f.slice(0,20)}\u2026`:f}"`,{type:"unknown-field",field:f,value:c,line:m}));break}}function h(){l.length>0&&e({id:i,event:d||void 0,data:l.endsWith(` +`)?l.slice(0,-1):l}),i=void 0,l="",d=""}function b(f={}){n&&f.consume&&p(n),o=!0,i=void 0,l="",d="",n=""}return{feed:u,reset:b}}function mo(t){let e=[],a="",r=0;for(;r{s.enqueue(n)},onError(n){t==="terminate"?s.error(n):typeof t=="function"&&t(n)},onRetry:e,onComment:a})},transform(s){r.feed(s)}})}},z;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw Error()}t.assertNever=a,t.arrayToEnum=s=>{let n={};for(let o of s)n[o]=o;return n},t.getValidEnumValues=s=>{let n=t.objectKeys(s).filter(i=>typeof s[s[i]]!="number"),o={};for(let i of n)o[i]=s[i];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(n){return s[n]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let n=[];for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&n.push(o);return n},t.find=(s,n)=>{for(let o of s)if(n(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,n=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(n)}t.joinValues=r,t.jsonStringifyReplacer=(s,n)=>typeof n=="bigint"?n.toString():n})(z||(z={}));var fo;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(fo||(fo={}));const w=z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),et=t=>{switch(typeof t){case"undefined":return w.undefined;case"string":return w.string;case"number":return Number.isNaN(t)?w.nan:w.number;case"boolean":return w.boolean;case"function":return w.function;case"bigint":return w.bigint;case"symbol":return w.symbol;case"object":return Array.isArray(t)?w.array:t===null?w.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?w.promise:typeof Map<"u"&&t instanceof Map?w.map:typeof Set<"u"&&t instanceof Set?w.set:typeof Date<"u"&&t instanceof Date?w.date:w.object;default:return w.unknown}},y=z.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var je=class Pn extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){let a=e||function(n){return n.message},r={_errors:[]},s=n=>{for(let o of n.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(a(o));else{let i=r,l=0;for(;la.message){let a=Object.create(null),r=[];for(let s of this.issues)if(s.path.length>0){let n=s.path[0];a[n]=a[n]||[],a[n].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}};je.create=t=>new je(t);var At=(t,e)=>{let a;switch(t.code){case y.invalid_type:a=t.received===w.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case y.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(t.expected,z.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:a=`Unrecognized key(s) in object: ${z.joinValues(t.keys,", ")}`;break;case y.invalid_union:a="Invalid input";break;case y.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${z.joinValues(t.options)}`;break;case y.invalid_enum_value:a=`Invalid enum value. Expected ${z.joinValues(t.options)}, received '${t.received}'`;break;case y.invalid_arguments:a="Invalid function arguments";break;case y.invalid_return_type:a="Invalid function return type";break;case y.invalid_date:a="Invalid date";break;case y.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(a=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?a=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?a=`Invalid input: must end with "${t.validation.endsWith}"`:z.assertNever(t.validation):a=t.validation==="regex"?"Invalid":`Invalid ${t.validation}`;break;case y.too_small:a=t.type==="array"?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"||t.type==="bigint"?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case y.too_big:a=t.type==="array"?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case y.custom:a="Invalid input";break;case y.invalid_intersection_types:a="Intersection results could not be merged";break;case y.not_multiple_of:a=`Number must be a multiple of ${t.multipleOf}`;break;case y.not_finite:a="Number must be finite";break;default:a=e.defaultError,z.assertNever(t)}return{message:a}},go=At;function Ra(){return go}const Na=t=>{let{data:e,path:a,errorMaps:r,issueData:s}=t,n=[...a,...s.path||[]],o={...s,path:n};if(s.message!==void 0)return{...s,path:n,message:s.message};let i="",l=r.filter(d=>!!d).slice().reverse();for(let d of l)i=d(o,{data:e,defaultError:i}).message;return{...s,path:n,message:i}};function x(t,e){let a=Ra(),r=Na({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,a,a===At?void 0:At].filter(s=>!!s)});t.common.issues.push(r)}var ve=class jn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,a){let r=[];for(let s of a){if(s.status==="aborted")return S;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,a){let r=[];for(let s of a){let n=await s.key,o=await s.value;r.push({key:n,value:o})}return jn.mergeObjectSync(e,r)}static mergeObjectSync(e,a){let r={};for(let s of a){let{key:n,value:o}=s;if(n.status==="aborted"||o.status==="aborted")return S;n.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(o.value!==void 0||s.alwaysSet)&&(r[n.value]=o.value)}return{status:e.value,value:r}}};const S=Object.freeze({status:"aborted"}),Ma=t=>({status:"dirty",value:t}),ge=t=>({status:"valid",value:t}),ms=t=>t.status==="aborted",hs=t=>t.status==="dirty",_t=t=>t.status==="valid",Gt=t=>typeof Promise<"u"&&t instanceof Promise;var T;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(T||(T={}));var Le=class{constructor(t,e,a,r){this._cachedPath=[],this.parent=t,this.data=e,this._path=a,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},fs=(t,e)=>{if(_t(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){return this._error||(this._error=new je(t.common.issues)),this._error}}};function R(t){if(!t)return{};let{errorMap:e,invalid_type_error:a,required_error:r,description:s}=t;if(e&&(a||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(n,o)=>{let{message:i}=t;return n.code==="invalid_enum_value"?{message:i??o.defaultError}:o.data===void 0?{message:i??r??o.defaultError}:n.code==="invalid_type"?{message:i??a??o.defaultError}:{message:o.defaultError}},description:s}}var $=class{get description(){return this._def.description}_getType(t){return et(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:et(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ve,ctx:{common:t.parent.common,data:t.data,parsedType:et(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let e=this._parse(t);if(Gt(e))throw Error("Synchronous parse encountered promise.");return e}_parseAsync(t){let e=this._parse(t);return Promise.resolve(e)}parse(t,e){let a=this.safeParse(t,e);if(a.success)return a.data;throw a.error}safeParse(t,e){let a={common:{issues:[],async:(e==null?void 0:e.async)??!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:et(t)};return fs(a,this._parseSync({data:t,path:a.path,parent:a}))}"~validate"(t){var a,r;let e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:et(t)};if(!this["~standard"].async)try{let s=this._parseSync({data:t,path:[],parent:e});return _t(s)?{value:s.value}:{issues:e.common.issues}}catch(s){(r=(a=s==null?void 0:s.message)==null?void 0:a.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),e.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:e}).then(s=>_t(s)?{value:s.value}:{issues:e.common.issues})}async parseAsync(t,e){let a=await this.safeParseAsync(t,e);if(a.success)return a.data;throw a.error}async safeParseAsync(t,e){let a={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:et(t)},r=this._parse({data:t,path:a.path,parent:a});return fs(a,await(Gt(r)?r:Promise.resolve(r)))}refine(t,e){let a=r=>typeof e=="string"||e===void 0?{message:e}:typeof e=="function"?e(r):e;return this._refinement((r,s)=>{let n=t(r),o=()=>s.addIssue({code:y.custom,...a(r)});return typeof Promise<"u"&&n instanceof Promise?n.then(i=>i?!0:(o(),!1)):n?!0:(o(),!1)})}refinement(t,e){return this._refinement((a,r)=>t(a)?!0:(r.addIssue(typeof e=="function"?e(a,r):e),!1))}_refinement(t){return new qe({schema:this,typeName:v.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Be.create(this,this._def)}nullable(){return ut.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xt.create(this)}promise(){return Rt.create(this,this._def)}or(t){return ta.create([this,t],this._def)}and(t){return aa.create(this,t,this._def)}transform(t){return new qe({...R(this._def),schema:this,typeName:v.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let e=typeof t=="function"?t:()=>t;return new oa({...R(this._def),innerType:this,defaultValue:e,typeName:v.ZodDefault})}brand(){return new bs({typeName:v.ZodBranded,type:this,...R(this._def)})}catch(t){let e=typeof t=="function"?t:()=>t;return new la({...R(this._def),innerType:this,catchValue:e,typeName:v.ZodCatch})}describe(t){let e=this.constructor;return new e({...this._def,description:t})}pipe(t){return xs.create(this,t)}readonly(){return da.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},yo=/^c[^\s-]{8,}$/i,vo=/^[0-9a-z]+$/,_o=/^[0-9A-HJKMNP-TV-Z]{26}$/i,bo=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,xo=/^[a-z0-9_-]{21}$/i,wo=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ko=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Co=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Eo="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",gs,To=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Io=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,So=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Oo=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ao=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ro=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ys="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",No=RegExp(`^${ys}$`);function vs(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision??(e=`${e}(\\.\\d+)?`);let a=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${a}`}function Mo(t){return RegExp(`^${vs(t)}$`)}function Po(t){let e=`${ys}T${vs(t)}`,a=[];return a.push(t.local?"Z?":"Z"),t.offset&&a.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${a.join("|")})`,RegExp(`^${e}$`)}function jo(t,e){return!!((e==="v4"||!e)&&To.test(t)||(e==="v6"||!e)&&So.test(t))}function Lo(t,e){if(!wo.test(t))return!1;try{let[a]=t.split(".");if(!a)return!1;let r=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||!s||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function $o(t,e){return!!((e==="v4"||!e)&&Io.test(t)||(e==="v6"||!e)&&Oo.test(t))}var Qt=class Ut extends ${_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==w.string){let s=this._getOrReturnCtx(e);return x(s,{code:y.invalid_type,expected:w.string,received:s.parsedType}),S}let a=new ve,r;for(let s of this._def.checks)if(s.kind==="min")e.data.lengths.value&&(r=this._getOrReturnCtx(e,r),x(r,{code:y.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if(s.kind==="length"){let n=e.data.length>s.value,o=e.data.lengthe.test(s),{validation:a,code:y.invalid_string,...T.errToObj(r)})}_addCheck(e){return new Ut({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...T.errToObj(e)})}url(e){return this._addCheck({kind:"url",...T.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...T.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...T.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...T.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...T.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...T.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...T.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...T.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...T.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...T.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...T.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...T.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:(e==null?void 0:e.precision)===void 0?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...T.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:(e==null?void 0:e.precision)===void 0?null:e==null?void 0:e.precision,...T.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...T.errToObj(e)})}regex(e,a){return this._addCheck({kind:"regex",regex:e,...T.errToObj(a)})}includes(e,a){return this._addCheck({kind:"includes",value:e,position:a==null?void 0:a.position,...T.errToObj(a==null?void 0:a.message)})}startsWith(e,a){return this._addCheck({kind:"startsWith",value:e,...T.errToObj(a)})}endsWith(e,a){return this._addCheck({kind:"endsWith",value:e,...T.errToObj(a)})}min(e,a){return this._addCheck({kind:"min",value:e,...T.errToObj(a)})}max(e,a){return this._addCheck({kind:"max",value:e,...T.errToObj(a)})}length(e,a){return this._addCheck({kind:"length",value:e,...T.errToObj(a)})}nonempty(e){return this.min(1,T.errToObj(e))}trim(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ut({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxLength(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuenew Qt({checks:[],typeName:v.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...R(t)});function Do(t,e){let a=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=a>r?a:r;return Number.parseInt(t.toFixed(s).replace(".",""))%Number.parseInt(e.toFixed(s).replace(".",""))/10**s}var Pa=class Tr extends ${constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==w.number){let s=this._getOrReturnCtx(e);return x(s,{code:y.invalid_type,expected:w.number,received:s.parsedType}),S}let a,r=new ve;for(let s of this._def.checks)s.kind==="int"?z.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),x(a,{code:y.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(a=this._getOrReturnCtx(e,a),x(a,{code:y.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="multipleOf"?Do(e.data,s.value)!==0&&(a=this._getOrReturnCtx(e,a),x(a,{code:y.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),x(a,{code:y.not_finite,message:s.message}),r.dirty()):z.assertNever(s);return{status:r.value,value:e.data}}gte(e,a){return this.setLimit("min",e,!0,T.toString(a))}gt(e,a){return this.setLimit("min",e,!1,T.toString(a))}lte(e,a){return this.setLimit("max",e,!0,T.toString(a))}lt(e,a){return this.setLimit("max",e,!1,T.toString(a))}setLimit(e,a,r,s){return new Tr({...this._def,checks:[...this._def.checks,{kind:e,value:a,inclusive:r,message:T.toString(s)}]})}_addCheck(e){return new Tr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:T.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:T.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:T.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:T.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:T.toString(e)})}multipleOf(e,a){return this._addCheck({kind:"multipleOf",value:e,message:T.toString(a)})}finite(e){return this._addCheck({kind:"finite",message:T.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:-(2**53-1),message:T.toString(e)})._addCheck({kind:"max",inclusive:!0,value:2**53-1,message:T.toString(e)})}get minValue(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxValue(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuee.kind==="int"||e.kind==="multipleOf"&&z.isInteger(e.value))}get isFinite(){let e=null,a=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(a===null||r.value>a)&&(a=r.value):r.kind==="max"&&(e===null||r.valuenew Pa({checks:[],typeName:v.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...R(t)});var ja=class Ir extends ${constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==w.bigint)return this._getInvalidInput(e);let a,r=new ve;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.datas.value:e.data>=s.value)&&(a=this._getOrReturnCtx(e,a),x(a,{code:y.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),x(a,{code:y.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):z.assertNever(s);return{status:r.value,value:e.data}}_getInvalidInput(e){let a=this._getOrReturnCtx(e);return x(a,{code:y.invalid_type,expected:w.bigint,received:a.parsedType}),S}gte(e,a){return this.setLimit("min",e,!0,T.toString(a))}gt(e,a){return this.setLimit("min",e,!1,T.toString(a))}lte(e,a){return this.setLimit("max",e,!0,T.toString(a))}lt(e,a){return this.setLimit("max",e,!1,T.toString(a))}setLimit(e,a,r,s){return new Ir({...this._def,checks:[...this._def.checks,{kind:e,value:a,inclusive:r,message:T.toString(s)}]})}_addCheck(e){return new Ir({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:T.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:T.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:T.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:T.toString(e)})}multipleOf(e,a){return this._addCheck({kind:"multipleOf",value:e,message:T.toString(a)})}get minValue(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxValue(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuenew ja({checks:[],typeName:v.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...R(t)});var La=class extends ${_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==w.boolean){let e=this._getOrReturnCtx(t);return x(e,{code:y.invalid_type,expected:w.boolean,received:e.parsedType}),S}return ge(t.data)}};La.create=t=>new La({typeName:v.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...R(t)});var $a=class Ln extends ${_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==w.date){let s=this._getOrReturnCtx(e);return x(s,{code:y.invalid_type,expected:w.date,received:s.parsedType}),S}if(Number.isNaN(e.data.getTime()))return x(this._getOrReturnCtx(e),{code:y.invalid_date}),S;let a=new ve,r;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()s.value&&(r=this._getOrReturnCtx(e,r),x(r,{code:y.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),a.dirty()):z.assertNever(s);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Ln({...this._def,checks:[...this._def.checks,e]})}min(e,a){return this._addCheck({kind:"min",value:e.getTime(),message:T.toString(a)})}max(e,a){return this._addCheck({kind:"max",value:e.getTime(),message:T.toString(a)})}get minDate(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuenew $a({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:v.ZodDate,...R(t)});var Da=class extends ${_parse(t){if(this._getType(t)!==w.symbol){let e=this._getOrReturnCtx(t);return x(e,{code:y.invalid_type,expected:w.symbol,received:e.parsedType}),S}return ge(t.data)}};Da.create=t=>new Da({typeName:v.ZodSymbol,...R(t)});var Xt=class extends ${_parse(t){if(this._getType(t)!==w.undefined){let e=this._getOrReturnCtx(t);return x(e,{code:y.invalid_type,expected:w.undefined,received:e.parsedType}),S}return ge(t.data)}};Xt.create=t=>new Xt({typeName:v.ZodUndefined,...R(t)});var ea=class extends ${_parse(t){if(this._getType(t)!==w.null){let e=this._getOrReturnCtx(t);return x(e,{code:y.invalid_type,expected:w.null,received:e.parsedType}),S}return ge(t.data)}};ea.create=t=>new ea({typeName:v.ZodNull,...R(t)});var Za=class extends ${constructor(){super(...arguments),this._any=!0}_parse(t){return ge(t.data)}};Za.create=t=>new Za({typeName:v.ZodAny,...R(t)});var bt=class extends ${constructor(){super(...arguments),this._unknown=!0}_parse(t){return ge(t.data)}};bt.create=t=>new bt({typeName:v.ZodUnknown,...R(t)});var tt=class extends ${_parse(t){let e=this._getOrReturnCtx(t);return x(e,{code:y.invalid_type,expected:w.never,received:e.parsedType}),S}};tt.create=t=>new tt({typeName:v.ZodNever,...R(t)});var Fa=class extends ${_parse(t){if(this._getType(t)!==w.undefined){let e=this._getOrReturnCtx(t);return x(e,{code:y.invalid_type,expected:w.void,received:e.parsedType}),S}return ge(t.data)}};Fa.create=t=>new Fa({typeName:v.ZodVoid,...R(t)});var xt=class xa extends ${_parse(e){let{ctx:a,status:r}=this._processInputParams(e),s=this._def;if(a.parsedType!==w.array)return x(a,{code:y.invalid_type,expected:w.array,received:a.parsedType}),S;if(s.exactLength!==null){let o=a.data.length>s.exactLength.value,i=a.data.lengths.maxLength.value&&(x(a,{code:y.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),a.common.async)return Promise.all([...a.data].map((o,i)=>s.type._parseAsync(new Le(a,o,a.path,i)))).then(o=>ve.mergeArray(r,o));let n=[...a.data].map((o,i)=>s.type._parseSync(new Le(a,o,a.path,i)));return ve.mergeArray(r,n)}get element(){return this._def.type}min(e,a){return new xa({...this._def,minLength:{value:e,message:T.toString(a)}})}max(e,a){return new xa({...this._def,maxLength:{value:e,message:T.toString(a)}})}length(e,a){return new xa({...this._def,exactLength:{value:e,message:T.toString(a)}})}nonempty(e){return this.min(1,e)}};xt.create=(t,e)=>new xt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:v.ZodArray,...R(e)});function wt(t){if(t instanceof Ie){let e={};for(let a in t.shape){let r=t.shape[a];e[a]=Be.create(wt(r))}return new Ie({...t._def,shape:()=>e})}else return t instanceof xt?new xt({...t._def,type:wt(t.element)}):t instanceof Be?Be.create(wt(t.unwrap())):t instanceof ut?ut.create(wt(t.unwrap())):t instanceof dt?dt.create(t.items.map(e=>wt(e))):t}var Ie=class Re extends ${constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape();return this._cached={shape:e,keys:z.objectKeys(e)},this._cached}_parse(e){if(this._getType(e)!==w.object){let l=this._getOrReturnCtx(e);return x(l,{code:y.invalid_type,expected:w.object,received:l.parsedType}),S}let{status:a,ctx:r}=this._processInputParams(e),{shape:s,keys:n}=this._getCached(),o=[];if(!(this._def.catchall instanceof tt&&this._def.unknownKeys==="strip"))for(let l in r.data)n.includes(l)||o.push(l);let i=[];for(let l of n){let d=s[l],u=r.data[l];i.push({key:{status:"valid",value:l},value:d._parse(new Le(r,u,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof tt){let l=this._def.unknownKeys;if(l==="passthrough")for(let d of o)i.push({key:{status:"valid",value:d},value:{status:"valid",value:r.data[d]}});else if(l==="strict")o.length>0&&(x(r,{code:y.unrecognized_keys,keys:o}),a.dirty());else if(l!=="strip")throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let d of o){let u=r.data[d];i.push({key:{status:"valid",value:d},value:l._parse(new Le(r,u,r.path,d)),alwaysSet:d in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let l=[];for(let d of i){let u=await d.key,p=await d.value;l.push({key:u,value:p,alwaysSet:d.alwaysSet})}return l}).then(l=>ve.mergeObjectSync(a,l)):ve.mergeObjectSync(a,i)}get shape(){return this._def.shape()}strict(e){return T.errToObj,new Re({...this._def,unknownKeys:"strict",...e===void 0?{}:{errorMap:(a,r)=>{var n,o;let s=((o=(n=this._def).errorMap)==null?void 0:o.call(n,a,r).message)??r.defaultError;return a.code==="unrecognized_keys"?{message:T.errToObj(e).message??s}:{message:s}}}})}strip(){return new Re({...this._def,unknownKeys:"strip"})}passthrough(){return new Re({...this._def,unknownKeys:"passthrough"})}extend(e){return new Re({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Re({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:v.ZodObject})}setKey(e,a){return this.augment({[e]:a})}catchall(e){return new Re({...this._def,catchall:e})}pick(e){let a={};for(let r of z.objectKeys(e))e[r]&&this.shape[r]&&(a[r]=this.shape[r]);return new Re({...this._def,shape:()=>a})}omit(e){let a={};for(let r of z.objectKeys(this.shape))e[r]||(a[r]=this.shape[r]);return new Re({...this._def,shape:()=>a})}deepPartial(){return wt(this)}partial(e){let a={};for(let r of z.objectKeys(this.shape)){let s=this.shape[r];e&&!e[r]?a[r]=s:a[r]=s.optional()}return new Re({...this._def,shape:()=>a})}required(e){let a={};for(let r of z.objectKeys(this.shape))if(e&&!e[r])a[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Be;)s=s._def.innerType;a[r]=s}return new Re({...this._def,shape:()=>a})}keyof(){return _s(z.objectKeys(this.shape))}};Ie.create=(t,e)=>new Ie({shape:()=>t,unknownKeys:"strip",catchall:tt.create(),typeName:v.ZodObject,...R(e)}),Ie.strictCreate=(t,e)=>new Ie({shape:()=>t,unknownKeys:"strict",catchall:tt.create(),typeName:v.ZodObject,...R(e)}),Ie.lazycreate=(t,e)=>new Ie({shape:t,unknownKeys:"strip",catchall:tt.create(),typeName:v.ZodObject,...R(e)});var ta=class extends ${_parse(t){let{ctx:e}=this._processInputParams(t),a=this._def.options;function r(s){for(let o of s)if(o.result.status==="valid")return o.result;for(let o of s)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;let n=s.map(o=>new je(o.ctx.common.issues));return x(e,{code:y.invalid_union,unionErrors:n}),S}if(e.common.async)return Promise.all(a.map(async s=>{let n={...e,common:{...e.common,issues:[]},parent:null};return{result:await s._parseAsync({data:e.data,path:e.path,parent:n}),ctx:n}})).then(r);{let s,n=[];for(let i of a){let l={...e,common:{...e.common,issues:[]},parent:null},d=i._parseSync({data:e.data,path:e.path,parent:l});if(d.status==="valid")return d;d.status==="dirty"&&!s&&(s={result:d,ctx:l}),l.common.issues.length&&n.push(l.common.issues)}if(s)return e.common.issues.push(...s.ctx.common.issues),s.result;let o=n.map(i=>new je(i));return x(e,{code:y.invalid_union,unionErrors:o}),S}}get options(){return this._def.options}};ta.create=(t,e)=>new ta({options:t,typeName:v.ZodUnion,...R(e)});var at=t=>t instanceof ra?at(t.schema):t instanceof qe?at(t.innerType()):t instanceof sa?[t.value]:t instanceof na?t.options:t instanceof ia?z.objectValues(t.enum):t instanceof oa?at(t._def.innerType):t instanceof Xt?[void 0]:t instanceof ea?[null]:t instanceof Be?[void 0,...at(t.unwrap())]:t instanceof ut?[null,...at(t.unwrap())]:t instanceof bs||t instanceof da?at(t.unwrap()):t instanceof la?at(t._def.innerType):[],Zo=class $n extends ${_parse(e){let{ctx:a}=this._processInputParams(e);if(a.parsedType!==w.object)return x(a,{code:y.invalid_type,expected:w.object,received:a.parsedType}),S;let r=this.discriminator,s=a.data[r],n=this.optionsMap.get(s);return n?a.common.async?n._parseAsync({data:a.data,path:a.path,parent:a}):n._parseSync({data:a.data,path:a.path,parent:a}):(x(a,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),S)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,a,r){let s=new Map;for(let n of a){let o=at(n.shape[e]);if(!o.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of o){if(s.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);s.set(i,n)}}return new $n({typeName:v.ZodDiscriminatedUnion,discriminator:e,options:a,optionsMap:s,...R(r)})}};function za(t,e){let a=et(t),r=et(e);if(t===e)return{valid:!0,data:t};if(a===w.object&&r===w.object){let s=z.objectKeys(e),n=z.objectKeys(t).filter(i=>s.indexOf(i)!==-1),o={...t,...e};for(let i of n){let l=za(t[i],e[i]);if(!l.valid)return{valid:!1};o[i]=l.data}return{valid:!0,data:o}}else if(a===w.array&&r===w.array){if(t.length!==e.length)return{valid:!1};let s=[];for(let n=0;n{if(ms(s)||ms(n))return S;let o=za(s.value,n.value);return o.valid?((hs(s)||hs(n))&&e.dirty(),{status:e.value,value:o.data}):(x(a,{code:y.invalid_intersection_types}),S)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([s,n])=>r(s,n)):r(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}};aa.create=(t,e,a)=>new aa({left:t,right:e,typeName:v.ZodIntersection,...R(a)});var dt=class Dn extends ${_parse(e){let{status:a,ctx:r}=this._processInputParams(e);if(r.parsedType!==w.array)return x(r,{code:y.invalid_type,expected:w.array,received:r.parsedType}),S;if(r.data.lengththis._def.items.length&&(x(r,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let s=[...r.data].map((n,o)=>{let i=this._def.items[o]||this._def.rest;return i?i._parse(new Le(r,n,r.path,o)):null}).filter(n=>!!n);return r.common.async?Promise.all(s).then(n=>ve.mergeArray(a,n)):ve.mergeArray(a,s)}get items(){return this._def.items}rest(e){return new Dn({...this._def,rest:e})}};dt.create=(t,e)=>{if(!Array.isArray(t))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new dt({items:t,typeName:v.ZodTuple,rest:null,...R(e)})};var Fo=class Sr extends ${get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:a,ctx:r}=this._processInputParams(e);if(r.parsedType!==w.object)return x(r,{code:y.invalid_type,expected:w.object,received:r.parsedType}),S;let s=[],n=this._def.keyType,o=this._def.valueType;for(let i in r.data)s.push({key:n._parse(new Le(r,i,r.path,i)),value:o._parse(new Le(r,r.data[i],r.path,i)),alwaysSet:i in r.data});return r.common.async?ve.mergeObjectAsync(a,s):ve.mergeObjectSync(a,s)}get element(){return this._def.valueType}static create(e,a,r){return a instanceof $?new Sr({keyType:e,valueType:a,typeName:v.ZodRecord,...R(r)}):new Sr({keyType:Qt.create(),valueType:e,typeName:v.ZodRecord,...R(a)})}},Ua=class extends ${get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:e,ctx:a}=this._processInputParams(t);if(a.parsedType!==w.map)return x(a,{code:y.invalid_type,expected:w.map,received:a.parsedType}),S;let r=this._def.keyType,s=this._def.valueType,n=[...a.data.entries()].map(([o,i],l)=>({key:r._parse(new Le(a,o,a.path,[l,"key"])),value:s._parse(new Le(a,i,a.path,[l,"value"]))}));if(a.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let i of n){let l=await i.key,d=await i.value;if(l.status==="aborted"||d.status==="aborted")return S;(l.status==="dirty"||d.status==="dirty")&&e.dirty(),o.set(l.value,d.value)}return{status:e.value,value:o}})}else{let o=new Map;for(let i of n){let l=i.key,d=i.value;if(l.status==="aborted"||d.status==="aborted")return S;(l.status==="dirty"||d.status==="dirty")&&e.dirty(),o.set(l.value,d.value)}return{status:e.value,value:o}}}};Ua.create=(t,e,a)=>new Ua({valueType:e,keyType:t,typeName:v.ZodMap,...R(a)});var Va=class Or extends ${_parse(e){let{status:a,ctx:r}=this._processInputParams(e);if(r.parsedType!==w.set)return x(r,{code:y.invalid_type,expected:w.set,received:r.parsedType}),S;let s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(x(r,{code:y.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),a.dirty());let n=this._def.valueType;function o(l){let d=new Set;for(let u of l){if(u.status==="aborted")return S;u.status==="dirty"&&a.dirty(),d.add(u.value)}return{status:a.value,value:d}}let i=[...r.data.values()].map((l,d)=>n._parse(new Le(r,l,r.path,d)));return r.common.async?Promise.all(i).then(l=>o(l)):o(i)}min(e,a){return new Or({...this._def,minSize:{value:e,message:T.toString(a)}})}max(e,a){return new Or({...this._def,maxSize:{value:e,message:T.toString(a)}})}size(e,a){return this.min(e,a).max(e,a)}nonempty(e){return this.min(1,e)}};Va.create=(t,e)=>new Va({valueType:t,minSize:null,maxSize:null,typeName:v.ZodSet,...R(e)});var zo=class wa extends ${constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:a}=this._processInputParams(e);if(a.parsedType!==w.function)return x(a,{code:y.invalid_type,expected:w.function,received:a.parsedType}),S;function r(i,l){return Na({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Ra(),At].filter(d=>!!d),issueData:{code:y.invalid_arguments,argumentsError:l}})}function s(i,l){return Na({data:i,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Ra(),At].filter(d=>!!d),issueData:{code:y.invalid_return_type,returnTypeError:l}})}let n={errorMap:a.common.contextualErrorMap},o=a.data;if(this._def.returns instanceof Rt){let i=this;return ge(async function(...l){let d=new je([]),u=await i._def.args.parseAsync(l,n).catch(g=>{throw d.addIssue(r(l,g)),d}),p=await Reflect.apply(o,this,u);return await i._def.returns._def.type.parseAsync(p,n).catch(g=>{throw d.addIssue(s(p,g)),d})})}else{let i=this;return ge(function(...l){let d=i._def.args.safeParse(l,n);if(!d.success)throw new je([r(l,d.error)]);let u=Reflect.apply(o,this,d.data),p=i._def.returns.safeParse(u,n);if(!p.success)throw new je([s(u,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new wa({...this._def,args:dt.create(e).rest(bt.create())})}returns(e){return new wa({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,a,r){return new wa({args:e||dt.create([]).rest(bt.create()),returns:a||bt.create(),typeName:v.ZodFunction,...R(r)})}},ra=class extends ${get schema(){return this._def.getter()}_parse(t){let{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}};ra.create=(t,e)=>new ra({getter:t,typeName:v.ZodLazy,...R(e)});var sa=class extends ${_parse(t){if(t.data!==this._def.value){let e=this._getOrReturnCtx(t);return x(e,{received:e.data,code:y.invalid_literal,expected:this._def.value}),S}return{status:"valid",value:t.data}}get value(){return this._def.value}};sa.create=(t,e)=>new sa({value:t,typeName:v.ZodLiteral,...R(e)});function _s(t,e){return new na({values:t,typeName:v.ZodEnum,...R(e)})}var na=class Ar extends ${_parse(e){if(typeof e.data!="string"){let a=this._getOrReturnCtx(e),r=this._def.values;return x(a,{expected:z.joinValues(r),received:a.parsedType,code:y.invalid_type}),S}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let a=this._getOrReturnCtx(e),r=this._def.values;return x(a,{received:a.data,code:y.invalid_enum_value,options:r}),S}return ge(e.data)}get options(){return this._def.values}get enum(){let e={};for(let a of this._def.values)e[a]=a;return e}get Values(){let e={};for(let a of this._def.values)e[a]=a;return e}get Enum(){let e={};for(let a of this._def.values)e[a]=a;return e}extract(e,a=this._def){return Ar.create(e,{...this._def,...a})}exclude(e,a=this._def){return Ar.create(this.options.filter(r=>!e.includes(r)),{...this._def,...a})}};na.create=_s;var ia=class extends ${_parse(t){let e=z.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==w.string&&a.parsedType!==w.number){let r=z.objectValues(e);return x(a,{expected:z.joinValues(r),received:a.parsedType,code:y.invalid_type}),S}if(this._cache||(this._cache=new Set(z.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=z.objectValues(e);return x(a,{received:a.data,code:y.invalid_enum_value,options:r}),S}return ge(t.data)}get enum(){return this._def.values}};ia.create=(t,e)=>new ia({values:t,typeName:v.ZodNativeEnum,...R(e)});var Rt=class extends ${unwrap(){return this._def.type}_parse(t){let{ctx:e}=this._processInputParams(t);return e.parsedType!==w.promise&&e.common.async===!1?(x(e,{code:y.invalid_type,expected:w.promise,received:e.parsedType}),S):ge((e.parsedType===w.promise?e.data:Promise.resolve(e.data)).then(a=>this._def.type.parseAsync(a,{path:e.path,errorMap:e.common.contextualErrorMap})))}};Rt.create=(t,e)=>new Rt({type:t,typeName:v.ZodPromise,...R(e)});var qe=class extends ${innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===v.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:e,ctx:a}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:n=>{x(a,n),n.fatal?e.abort():e.dirty()},get path(){return a.path}};if(s.addIssue=s.addIssue.bind(s),r.type==="preprocess"){let n=r.transform(a.data,s);if(a.common.async)return Promise.resolve(n).then(async o=>{if(e.value==="aborted")return S;let i=await this._def.schema._parseAsync({data:o,path:a.path,parent:a});return i.status==="aborted"?S:i.status==="dirty"||e.value==="dirty"?Ma(i.value):i});{if(e.value==="aborted")return S;let o=this._def.schema._parseSync({data:n,path:a.path,parent:a});return o.status==="aborted"?S:o.status==="dirty"||e.value==="dirty"?Ma(o.value):o}}if(r.type==="refinement"){let n=o=>{let i=r.refinement(o,s);if(a.common.async)return Promise.resolve(i);if(i instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(a.common.async===!1){let o=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?S:(o.status==="dirty"&&e.dirty(),n(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(o=>o.status==="aborted"?S:(o.status==="dirty"&&e.dirty(),n(o.value).then(()=>({status:e.value,value:o.value}))))}if(r.type==="transform")if(a.common.async===!1){let n=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!_t(n))return S;let o=r.transform(n.value,s);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(n=>_t(n)?Promise.resolve(r.transform(n.value,s)).then(o=>({status:e.value,value:o})):S);z.assertNever(r)}};qe.create=(t,e,a)=>new qe({schema:t,typeName:v.ZodEffects,effect:e,...R(a)}),qe.createWithPreprocess=(t,e,a)=>new qe({schema:e,effect:{type:"preprocess",transform:t},typeName:v.ZodEffects,...R(a)});var Be=class extends ${_parse(t){return this._getType(t)===w.undefined?ge(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Be.create=(t,e)=>new Be({innerType:t,typeName:v.ZodOptional,...R(e)});var ut=class extends ${_parse(t){return this._getType(t)===w.null?ge(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ut.create=(t,e)=>new ut({innerType:t,typeName:v.ZodNullable,...R(e)});var oa=class extends ${_parse(t){let{ctx:e}=this._processInputParams(t),a=e.data;return e.parsedType===w.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:e.path,parent:e})}removeDefault(){return this._def.innerType}};oa.create=(t,e)=>new oa({innerType:t,typeName:v.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...R(e)});var la=class extends ${_parse(t){let{ctx:e}=this._processInputParams(t),a={...e,common:{...e.common,issues:[]}},r=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Gt(r)?r.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new je(a.common.issues)},input:a.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new je(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}};la.create=(t,e)=>new la({innerType:t,typeName:v.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...R(e)});var qa=class extends ${_parse(t){if(this._getType(t)!==w.nan){let e=this._getOrReturnCtx(t);return x(e,{code:y.invalid_type,expected:w.nan,received:e.parsedType}),S}return{status:"valid",value:t.data}}};qa.create=t=>new qa({typeName:v.ZodNaN,...R(t)});var bs=class extends ${_parse(t){let{ctx:e}=this._processInputParams(t),a=e.data;return this._def.type._parse({data:a,path:e.path,parent:e})}unwrap(){return this._def.type}},xs=class Zn extends ${_parse(e){let{status:a,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?S:s.status==="dirty"?(a.dirty(),Ma(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{let s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?S:s.status==="dirty"?(a.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,a){return new Zn({in:e,out:a,typeName:v.ZodPipeline})}},da=class extends ${_parse(t){let e=this._def.innerType._parse(t),a=r=>(_t(r)&&(r.value=Object.freeze(r.value)),r);return Gt(e)?e.then(r=>a(r)):a(e)}unwrap(){return this._def.innerType}};da.create=(t,e)=>new da({innerType:t,typeName:v.ZodReadonly,...R(e)}),Ie.lazycreate;var v;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(v||(v={})),Qt.create,Pa.create,qa.create,ja.create,La.create,$a.create,Da.create,Xt.create,ea.create,Za.create,bt.create,tt.create,Fa.create,xt.create,Ie.create,Ie.strictCreate,ta.create,Zo.create,aa.create,dt.create,Fo.create,Ua.create,Va.create,zo.create,ra.create,sa.create,na.create,ia.create,Rt.create,qe.create,Be.create,ut.create,qe.createWithPreprocess,xs.create;var Nt=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let s=()=>{let n=a.length,o=Array(e);for(let i=0;i`${t}${r}${s()}`},Uo=Nt();function Ba(t=globalThis){var e,a,r;return t.window?"runtime/browser":(e=t.navigator)!=null&&e.userAgent?`runtime/${t.navigator.userAgent.toLowerCase()}`:(r=(a=t.process)==null?void 0:a.versions)!=null&&r.node?`runtime/node.js/${t.process.version.substring(0)}`:t.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function ct(t){if(t==null)return{};let e={};if(t instanceof Headers)t.forEach((a,r)=>{e[r.toLowerCase()]=a});else{Array.isArray(t)||(t=Object.entries(t));for(let[a,r]of t)r!=null&&(e[a.toLowerCase()]=r)}return e}function Wa(t,...e){let a=new Headers(ct(t)),r=a.get("user-agent")||"";return a.set("user-agent",[r,...e].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}var Vo=/"__proto__"\s*:/,qo=/"constructor"\s*:/;function ws(t){let e=JSON.parse(t);return typeof e!="object"||!e||Vo.test(t)===!1&&qo.test(t)===!1?e:Bo(e)}function Bo(t){let e=[t];for(;e.length;){let a=e;e=[];for(let r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__")||Object.prototype.hasOwnProperty.call(r,"constructor")&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let s in r){let n=r[s];n&&typeof n=="object"&&e.push(n)}}}return t}function Wo(t){let{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return ws(t)}try{return ws(t)}finally{Error.stackTraceLimit=e}}var ua=Symbol.for("vercel.ai.validator");function Jo(t){return{[ua]:!0,validate:t}}function Ko(t){return typeof t=="object"&&!!t&&ua in t&&t[ua]===!0&&"validate"in t}function Yo(t){let e;return()=>(e??(e=t()),e)}function Ho(t){return Ko(t)?t:typeof t=="function"?t():Go(t)}function Go(t){return Jo(async e=>{let a=await t["~standard"].validate(e);return a.issues==null?{success:!0,value:a.value}:{success:!1,error:new Ht({value:e,cause:a.issues})}})}async function ks({value:t,schema:e}){let a=await Ja({value:t,schema:e});if(!a.success)throw Ht.wrap({value:t,cause:a.error});return a.value}async function Ja({value:t,schema:e}){let a=Ho(e);try{if(a.validate==null)return{success:!0,value:t,rawValue:t};let r=await a.validate(t);return r.success?{success:!0,value:r.value,rawValue:t}:{success:!1,error:Ht.wrap({value:t,cause:r.error}),rawValue:t}}catch(r){return{success:!1,error:Ht.wrap({value:t,cause:r}),rawValue:t}}}async function ca({text:t,schema:e}){try{let a=Wo(t);return e==null?{success:!0,value:a,rawValue:a}:await Ja({value:a,schema:e})}catch(a){return{success:!1,error:os.isInstance(a)?a:new os({text:t,cause:a}),rawValue:void 0}}}function Cs({stream:t,schema:e}){return t.pipeThrough(new TextDecoderStream).pipeThrough(new ho).pipeThrough(new TransformStream({async transform({data:a},r){a!=="[DONE]"&&r.enqueue(await ca({text:a,schema:e}))}}))}async function kt(t){return typeof t=="function"&&(t=t()),Promise.resolve(t)}function pa(t){if(t.type==="object"){t.additionalProperties=!1;let e=t.properties;if(e!=null)for(let a in e)e[a]=pa(e[a])}return t.type==="array"&&t.items!=null&&(Array.isArray(t.items)?t.items=t.items.map(e=>pa(e)):t.items=pa(t.items)),t}var Qo=(t,e)=>{let a=0;for(;atypeof t=="string"?{...Es,name:t}:{...Es,...t};function _e(){return{}}function tl(t,e){var r,s,n;let a={type:"array"};return(r=t.type)!=null&&r._def&&((n=(s=t.type)==null?void 0:s._def)==null?void 0:n.typeName)!==v.ZodAny&&(a.items=q(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(a.minItems=t.minLength.value),t.maxLength&&(a.maxItems=t.maxLength.value),t.exactLength&&(a.minItems=t.exactLength.value,a.maxItems=t.exactLength.value),a}function al(t){let e={type:"integer",format:"int64"};if(!t.checks)return e;for(let a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function rl(){return{type:"boolean"}}function Ts(t,e){return q(t.type._def,e)}var sl=(t,e)=>q(t.innerType._def,e);function Is(t,e,a){let r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((s,n)=>Is(t,e,s))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return nl(t)}}var nl=t=>{let e={type:"integer",format:"unix-time"};for(let a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function il(t,e){return{...q(t.innerType._def,e),default:t.defaultValue()}}function ol(t,e){return e.effectStrategy==="input"?q(t.schema._def,e):_e()}function ll(t){return{type:"string",enum:Array.from(t.values)}}var dl=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function ul(t,e){let a=[q(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),q(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),r=[];return a.forEach(s=>{if(dl(s))r.push(...s.allOf);else{let n=s;if("additionalProperties"in s&&s.additionalProperties===!1){let{additionalProperties:o,...i}=s;n=i}r.push(n)}}),r.length?{allOf:r}:void 0}function cl(t){let e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var Ka=void 0,Se={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Ka===void 0&&(Ka=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ka),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Ss(t,e){let a={type:"string"};if(t.checks)for(let r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":Oe(a,"email",r.message,e);break;case"format:idn-email":Oe(a,"idn-email",r.message,e);break;case"pattern:zod":pe(a,Se.email,r.message,e);break}break;case"url":Oe(a,"uri",r.message,e);break;case"uuid":Oe(a,"uuid",r.message,e);break;case"regex":pe(a,r.regex,r.message,e);break;case"cuid":pe(a,Se.cuid,r.message,e);break;case"cuid2":pe(a,Se.cuid2,r.message,e);break;case"startsWith":pe(a,RegExp(`^${Ya(r.value,e)}`),r.message,e);break;case"endsWith":pe(a,RegExp(`${Ya(r.value,e)}$`),r.message,e);break;case"datetime":Oe(a,"date-time",r.message,e);break;case"date":Oe(a,"date",r.message,e);break;case"time":Oe(a,"time",r.message,e);break;case"duration":Oe(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":pe(a,RegExp(Ya(r.value,e)),r.message,e);break;case"ip":r.version!=="v6"&&Oe(a,"ipv4",r.message,e),r.version!=="v4"&&Oe(a,"ipv6",r.message,e);break;case"base64url":pe(a,Se.base64url,r.message,e);break;case"jwt":pe(a,Se.jwt,r.message,e);break;case"cidr":r.version!=="v6"&&pe(a,Se.ipv4Cidr,r.message,e),r.version!=="v4"&&pe(a,Se.ipv6Cidr,r.message,e);break;case"emoji":pe(a,Se.emoji(),r.message,e);break;case"ulid":pe(a,Se.ulid,r.message,e);break;case"base64":switch(e.base64Strategy){case"format:binary":Oe(a,"binary",r.message,e);break;case"contentEncoding:base64":a.contentEncoding="base64";break;case"pattern:zod":pe(a,Se.base64,r.message,e);break}break;case"nanoid":pe(a,Se.nanoid,r.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function Ya(t,e){return e.patternStrategy==="escape"?ml(t):t}var pl=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ml(t){let e="";for(let a=0;an.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function pe(t,e,a,r){var s;t.pattern||(s=t.allOf)!=null&&s.some(n=>n.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:Os(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=Os(e,r)}function Os(t,e){var l;if(!e.applyRegexFlags||!t.flags)return t.source;let a={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},r=a.i?t.source.toLowerCase():t.source,s="",n=!1,o=!1,i=!1;for(let d=0;dtypeof e[e[s]]!="number").map(s=>e[s]),r=Array.from(new Set(a.map(s=>typeof s)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:a}}function gl(){return{not:_e()}}function yl(){return{type:"null"}}var Ha={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function vl(t,e){let a=t.options instanceof Map?Array.from(t.options.values()):t.options;if(a.every(r=>r._def.typeName in Ha&&(!r._def.checks||!r._def.checks.length))){let r=a.reduce((s,n)=>{let o=Ha[n._def.typeName];return o&&!s.includes(o)?[...s,o]:s},[]);return{type:r.length>1?r:r[0]}}else if(a.every(r=>r._def.typeName==="ZodLiteral"&&!r.description)){let r=a.reduce((s,n)=>{let o=typeof n._def.value;switch(o){case"string":case"number":case"boolean":return[...s,o];case"bigint":return[...s,"integer"];case"object":if(n._def.value===null)return[...s,"null"];default:return s}},[]);if(r.length===a.length){let s=r.filter((n,o,i)=>i.indexOf(n)===o);return{type:s.length>1?s:s[0],enum:a.reduce((n,o)=>n.includes(o._def.value)?n:[...n,o._def.value],[])}}}else if(a.every(r=>r._def.typeName==="ZodEnum"))return{type:"string",enum:a.reduce((r,s)=>[...r,...s._def.values.filter(n=>!r.includes(n))],[])};return _l(t,e)}var _l=(t,e)=>{let a=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((r,s)=>q(r._def,{...e,currentPath:[...e.currentPath,"anyOf",`${s}`]})).filter(r=>!!r&&(!e.strictUnions||typeof r=="object"&&Object.keys(r).length>0));return a.length?{anyOf:a}:void 0};function bl(t,e){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length))return{type:[Ha[t.innerType._def.typeName],"null"]};let a=q(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function xl(t){let e={type:"number"};if(!t.checks)return e;for(let a of t.checks)switch(a.kind){case"int":e.type="integer";break;case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function wl(t,e){let a={type:"object",properties:{}},r=[],s=t.shape();for(let o in s){let i=s[o];if(i===void 0||i._def===void 0)continue;let l=Cl(i),d=q(i._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});d!==void 0&&(a.properties[o]=d,l||r.push(o))}r.length&&(a.required=r);let n=kl(t,e);return n!==void 0&&(a.additionalProperties=n),a}function kl(t,e){if(t.catchall._def.typeName!=="ZodNever")return q(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function Cl(t){try{return t.isOptional()}catch{return!0}}var El=(t,e)=>{var r;if(e.currentPath.toString()===((r=e.propertyPath)==null?void 0:r.toString()))return q(t.innerType._def,e);let a=q(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return a?{anyOf:[{not:_e()},a]}:_e()},Tl=(t,e)=>{if(e.pipeStrategy==="input")return q(t.in._def,e);if(e.pipeStrategy==="output")return q(t.out._def,e);let a=q(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]});return{allOf:[a,q(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",a?"1":"0"]})].filter(r=>r!==void 0)}};function Il(t,e){return q(t.type._def,e)}function Sl(t,e){let a={type:"array",uniqueItems:!0,items:q(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&(a.minItems=t.minSize.value),t.maxSize&&(a.maxItems=t.maxSize.value),a}function Ol(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((a,r)=>q(a._def,{...e,currentPath:[...e.currentPath,"items",`${r}`]})).reduce((a,r)=>r===void 0?a:[...a,r],[]),additionalItems:q(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((a,r)=>q(a._def,{...e,currentPath:[...e.currentPath,"items",`${r}`]})).reduce((a,r)=>r===void 0?a:[...a,r],[])}}function Al(){return{not:_e()}}function Rl(){return _e()}var Nl=(t,e)=>q(t.innerType._def,e),Ml=(t,e,a)=>{switch(e){case v.ZodString:return Ss(t,a);case v.ZodNumber:return xl(t);case v.ZodObject:return wl(t,a);case v.ZodBigInt:return al(t);case v.ZodBoolean:return rl();case v.ZodDate:return Is(t,a);case v.ZodUndefined:return Al();case v.ZodNull:return yl();case v.ZodArray:return tl(t,a);case v.ZodUnion:case v.ZodDiscriminatedUnion:return vl(t,a);case v.ZodIntersection:return ul(t,a);case v.ZodTuple:return Ol(t,a);case v.ZodRecord:return As(t,a);case v.ZodLiteral:return cl(t);case v.ZodEnum:return ll(t);case v.ZodNativeEnum:return fl(t);case v.ZodNullable:return bl(t,a);case v.ZodOptional:return El(t,a);case v.ZodMap:return hl(t,a);case v.ZodSet:return Sl(t,a);case v.ZodLazy:return()=>t.getter()._def;case v.ZodPromise:return Il(t,a);case v.ZodNaN:case v.ZodNever:return gl();case v.ZodEffects:return ol(t,a);case v.ZodAny:return _e();case v.ZodUnknown:return Rl();case v.ZodDefault:return il(t,a);case v.ZodBranded:return Ts(t,a);case v.ZodReadonly:return Nl(t,a);case v.ZodCatch:return sl(t,a);case v.ZodPipeline:return Tl(t,a);case v.ZodFunction:case v.ZodVoid:case v.ZodSymbol:return;default:return(r=>{})(e)}};function q(t,e,a=!1){var i;let r=e.seen.get(t);if(e.override){let l=(i=e.override)==null?void 0:i.call(e,t,e,r,a);if(l!==Xo)return l}if(r&&!a){let l=Pl(r,e);if(l!==void 0)return l}let s={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,s);let n=Ml(t,t.typeName,e),o=typeof n=="function"?q(n(),e):n;if(o&&jl(t,e,o),e.postProcess){let l=e.postProcess(o,t,e);return s.jsonSchema=o,l}return s.jsonSchema=o,o}var Pl=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Qo(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[r]===a)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),_e()):e.$refStrategy==="seen"?_e():void 0}},jl=(t,e,a)=>(t.description&&(a.description=t.description),a),Ll=t=>{let e=el(t),a=e.name===void 0?e.basePath:[...e.basePath,e.definitionPath,e.name];return{...e,currentPath:a,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([r,s])=>[s._def,{def:s._def,path:[...e.basePath,e.definitionPath,r],jsonSchema:void 0}]))}},$l=(t,e)=>{let a=Ll(e),r=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[d,u])=>({...l,[d]:q(u._def,{...a,currentPath:[...a.basePath,a.definitionPath,d]},!0)??_e()}),{}):void 0,s=typeof e=="string"?e:(e==null?void 0:e.nameStrategy)==="title"||e==null?void 0:e.name,n=q(t._def,s===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,s]},!1)??_e(),o=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;o!==void 0&&(n.title=o);let i=s===void 0?r?{...n,[a.definitionPath]:r}:n:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,s].join("/"),[a.definitionPath]:{...r,[s]:n}};return i.$schema="http://json-schema.org/draft-07/schema#",i};function Dl(t,e){let a=(e==null?void 0:e.useReferences)??!1;return Qa(()=>$l(t,{$refStrategy:a?"root":"none"}),{validate:async r=>{let s=await t.safeParseAsync(r);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function Zl(t,e){let a=(e==null?void 0:e.useReferences)??!1;return Qa(()=>pa(Fr(t,{target:"draft-7",io:"input",reused:a?"ref":"inline"})),{validate:async r=>{let s=await pi(t,r);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function Fl(t){return"_zod"in t}function Rs(t,e){return Fl(t)?Zl(t,e):Dl(t,e)}var Ga=Symbol.for("vercel.ai.schema");function Qa(t,{validate:e}={}){return{[Ga]:!0,_type:void 0,[ua]:!0,get jsonSchema(){return typeof t=="function"&&(t=t()),t},validate:e}}function zl(t){return typeof t=="object"&&!!t&&Ga in t&&t[Ga]===!0&&"jsonSchema"in t&&"validate"in t}function Ul(t){return t==null?Qa({properties:{},additionalProperties:!1}):zl(t)?t:typeof t=="function"?t():Rs(t)}var{btoa:Vc,atob:qc}=globalThis,Vl=Object.defineProperty,ql=(t,e)=>{for(var a in e)Vl(t,a,{get:e[a],enumerable:!0})},Ns="AI_NoObjectGeneratedError",Ms=`vercel.ai.error.${Ns}`,Bl=Symbol.for(Ms),Ps,js=class extends Xe{constructor({message:t="No object generated.",cause:e,text:a,response:r,usage:s,finishReason:n}){super({name:Ns,message:t,cause:e}),this[Ps]=!0,this.text=a,this.response=r,this.usage=s,this.finishReason=n}static isInstance(t){return Xe.hasMarker(t,Ms)}};Ps=Bl;var Xa="5.0.117",Ls=Te([k(),Wt(Uint8Array),Wt(ArrayBuffer),$r(t=>{var e;return((e=globalThis.Buffer)==null?void 0:e.isBuffer(t))??!1},{message:"Must be a Buffer"})]),Mt=mi(()=>Te([hi(),k(),Zr(),de(),It(k(),Mt),Ve(Mt)])),se=It(k(),It(k(),Mt)),$s=Q({type:N("text"),text:k(),providerOptions:se.optional()}),Wl=Q({type:N("image"),image:Te([Ls,Wt(URL)]),mediaType:k().optional(),providerOptions:se.optional()}),Ds=Q({type:N("file"),data:Te([Ls,Wt(URL)]),filename:k().optional(),mediaType:k(),providerOptions:se.optional()}),Jl=Q({type:N("reasoning"),text:k(),providerOptions:se.optional()}),Kl=Q({type:N("tool-call"),toolCallId:k(),toolName:k(),input:Ue(),providerOptions:se.optional(),providerExecuted:de().optional()}),Yl=ci("type",[Q({type:N("text"),value:k()}),Q({type:N("json"),value:Mt}),Q({type:N("error-text"),value:k()}),Q({type:N("error-json"),value:Mt}),Q({type:N("content"),value:Ve(Te([Q({type:N("text"),text:k()}),Q({type:N("media"),data:k(),mediaType:k()})]))})]),Zs=Q({type:N("tool-result"),toolCallId:k(),toolName:k(),output:Yl,providerOptions:se.optional()});Te([Q({role:N("system"),content:k(),providerOptions:se.optional()}),Q({role:N("user"),content:Te([k(),Ve(Te([$s,Wl,Ds]))]),providerOptions:se.optional()}),Q({role:N("assistant"),content:Te([k(),Ve(Te([$s,Ds,Jl,Kl,Zs]))]),providerOptions:se.optional()}),Q({role:N("tool"),content:Ve(Zs),providerOptions:se.optional()})]),Nt({prefix:"aitxt",size:24});function Hl(t,e){let a=new Headers(t??{});for(let[r,s]of Object.entries(e))a.has(r)||a.set(r,s);return a}var Gl=class extends TransformStream{constructor(){super({transform(t,e){e.enqueue(`data: ${JSON.stringify(t)} + +`)},flush(t){t.enqueue(`data: [DONE] + +`)}})}},Ql={"content-type":"text/event-stream","cache-control":"no-cache",connection:"keep-alive","x-vercel-ai-ui-message-stream":"v1","x-accel-buffering":"no"};function Xl({status:t,statusText:e,headers:a,stream:r,consumeSseStream:s}){let n=r.pipeThrough(new Gl);if(s){let[o,i]=n.tee();n=o,s({stream:i})}return new Response(n.pipeThrough(new TextEncoderStream),{status:t,statusText:e,headers:Hl(a,Ql)})}var Fs=Yo(()=>Rs(Te([ee({type:N("text-start"),id:k(),providerMetadata:se.optional()}),ee({type:N("text-delta"),id:k(),delta:k(),providerMetadata:se.optional()}),ee({type:N("text-end"),id:k(),providerMetadata:se.optional()}),ee({type:N("error"),errorText:k()}),ee({type:N("tool-input-start"),toolCallId:k(),toolName:k(),providerExecuted:de().optional(),dynamic:de().optional()}),ee({type:N("tool-input-delta"),toolCallId:k(),inputTextDelta:k()}),ee({type:N("tool-input-available"),toolCallId:k(),toolName:k(),input:Ue(),providerExecuted:de().optional(),providerMetadata:se.optional(),dynamic:de().optional()}),ee({type:N("tool-input-error"),toolCallId:k(),toolName:k(),input:Ue(),providerExecuted:de().optional(),providerMetadata:se.optional(),dynamic:de().optional(),errorText:k()}),ee({type:N("tool-output-available"),toolCallId:k(),output:Ue(),providerExecuted:de().optional(),dynamic:de().optional(),preliminary:de().optional()}),ee({type:N("tool-output-error"),toolCallId:k(),errorText:k(),providerExecuted:de().optional(),dynamic:de().optional()}),ee({type:N("reasoning-start"),id:k(),providerMetadata:se.optional()}),ee({type:N("reasoning-delta"),id:k(),delta:k(),providerMetadata:se.optional()}),ee({type:N("reasoning-end"),id:k(),providerMetadata:se.optional()}),ee({type:N("source-url"),sourceId:k(),url:k(),title:k().optional(),providerMetadata:se.optional()}),ee({type:N("source-document"),sourceId:k(),mediaType:k(),title:k(),filename:k().optional(),providerMetadata:se.optional()}),ee({type:N("file"),url:k(),mediaType:k(),providerMetadata:se.optional()}),ee({type:$r(t=>typeof t=="string"&&t.startsWith("data-"),{message:'Type must start with "data-"'}),id:k().optional(),data:Ue(),transient:de().optional()}),ee({type:N("start-step")}),ee({type:N("finish-step")}),ee({type:N("start"),messageId:k().optional(),messageMetadata:Ue().optional()}),ee({type:N("finish"),finishReason:Bt(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:Ue().optional()}),ee({type:N("abort")}),ee({type:N("message-metadata"),messageMetadata:Ue()})])));function ed(t){return t.type.startsWith("data-")}function zs(t,e){if(t===void 0&&e===void 0)return;if(t===void 0)return e;if(e===void 0)return t;let a={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let s=e[r];if(s===void 0)continue;let n=r in t?t[r]:void 0,o=typeof s=="object"&&!!s&&!Array.isArray(s)&&!(s instanceof Date)&&!(s instanceof RegExp),i=typeof n=="object"&&!!n&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp);o&&i?a[r]=zs(n,s):a[r]=s}return a}function td(t){let e=["ROOT"],a=-1,r=null;function s(l,d,u){switch(l){case'"':a=d,e.pop(),e.push(u),e.push("INSIDE_STRING");break;case"f":case"t":case"n":a=d,r=d,e.pop(),e.push(u),e.push("INSIDE_LITERAL");break;case"-":e.pop(),e.push(u),e.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":a=d,e.pop(),e.push(u),e.push("INSIDE_NUMBER");break;case"{":a=d,e.pop(),e.push(u),e.push("INSIDE_OBJECT_START");break;case"[":a=d,e.pop(),e.push(u),e.push("INSIDE_ARRAY_START");break}}function n(l,d){switch(l){case",":e.pop(),e.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":a=d,e.pop();break}}function o(l,d){switch(l){case",":e.pop(),e.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":a=d,e.pop();break}}for(let l=0;l=0;l--)switch(e[l]){case"INSIDE_STRING":i+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":i+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":i+="]";break;case"INSIDE_LITERAL":{let d=t.substring(r,t.length);"true".startsWith(d)?i+="true".slice(d.length):"false".startsWith(d)?i+="false".slice(d.length):"null".startsWith(d)&&(i+="null".slice(d.length))}}return i}async function Us(t){if(t===void 0)return{value:void 0,state:"undefined-input"};let e=await ca({text:t});return e.success?{value:e.value,state:"successful-parse"}:(e=await ca({text:td(t)}),e.success?{value:e.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function ma(t){return t.type.startsWith("tool-")}function ad(t){return t.type==="dynamic-tool"}function Vs(t){return ma(t)||ad(t)}function qs(t){return t.type.split("-").slice(1).join("-")}function rd({lastMessage:t,messageId:e}){return{message:(t==null?void 0:t.role)==="assistant"?t:{id:e,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function sd({stream:t,messageMetadataSchema:e,dataPartSchemas:a,runUpdateMessageJob:r,onError:s,onToolCall:n,onData:o}){return t.pipeThrough(new TransformStream({async transform(i,l){await r(async({state:d,write:u})=>{function p(c){let m=d.message.parts.filter(ma).find(_=>_.toolCallId===c);if(m==null)throw Error("tool-output-error must be preceded by a tool-input-available");return m}function g(c){let m=d.message.parts.filter(_=>_.type==="dynamic-tool").find(_=>_.toolCallId===c);if(m==null)throw Error("tool-output-error must be preceded by a tool-input-available");return m}function h(c){let m=d.message.parts.find(C=>ma(C)&&C.toolCallId===c.toolCallId),_=c,E=m;m==null?d.message.parts.push({type:`tool-${c.toolName}`,toolCallId:c.toolCallId,state:c.state,input:_.input,output:_.output,rawInput:_.rawInput,errorText:_.errorText,providerExecuted:_.providerExecuted,preliminary:_.preliminary,..._.providerMetadata==null?{}:{callProviderMetadata:_.providerMetadata}}):(m.state=c.state,E.input=_.input,E.output=_.output,E.errorText=_.errorText,E.rawInput=_.rawInput,E.preliminary=_.preliminary,E.providerExecuted=_.providerExecuted??m.providerExecuted,_.providerMetadata!=null&&m.state==="input-available"&&(m.callProviderMetadata=_.providerMetadata))}function b(c){let m=d.message.parts.find(C=>C.type==="dynamic-tool"&&C.toolCallId===c.toolCallId),_=c,E=m;m==null?d.message.parts.push({type:"dynamic-tool",toolName:c.toolName,toolCallId:c.toolCallId,state:c.state,input:_.input,output:_.output,errorText:_.errorText,preliminary:_.preliminary,providerExecuted:_.providerExecuted,..._.providerMetadata==null?{}:{callProviderMetadata:_.providerMetadata}}):(m.state=c.state,E.toolName=c.toolName,E.input=_.input,E.output=_.output,E.errorText=_.errorText,E.rawInput=_.rawInput??E.rawInput,E.preliminary=_.preliminary,E.providerExecuted=_.providerExecuted??m.providerExecuted,_.providerMetadata!=null&&m.state==="input-available"&&(m.callProviderMetadata=_.providerMetadata))}async function f(c){if(c!=null){let m=d.message.metadata==null?c:zs(d.message.metadata,c);e!=null&&await ks({value:m,schema:e}),d.message.metadata=m}}switch(i.type){case"text-start":{let c={type:"text",text:"",providerMetadata:i.providerMetadata,state:"streaming"};d.activeTextParts[i.id]=c,d.message.parts.push(c),u();break}case"text-delta":{let c=d.activeTextParts[i.id];c.text+=i.delta,c.providerMetadata=i.providerMetadata??c.providerMetadata,u();break}case"text-end":{let c=d.activeTextParts[i.id];c.state="done",c.providerMetadata=i.providerMetadata??c.providerMetadata,delete d.activeTextParts[i.id],u();break}case"reasoning-start":{let c={type:"reasoning",text:"",providerMetadata:i.providerMetadata,state:"streaming"};d.activeReasoningParts[i.id]=c,d.message.parts.push(c),u();break}case"reasoning-delta":{let c=d.activeReasoningParts[i.id];c.text+=i.delta,c.providerMetadata=i.providerMetadata??c.providerMetadata,u();break}case"reasoning-end":{let c=d.activeReasoningParts[i.id];c.providerMetadata=i.providerMetadata??c.providerMetadata,c.state="done",delete d.activeReasoningParts[i.id],u();break}case"file":d.message.parts.push({type:"file",mediaType:i.mediaType,url:i.url}),u();break;case"source-url":d.message.parts.push({type:"source-url",sourceId:i.sourceId,url:i.url,title:i.title,providerMetadata:i.providerMetadata}),u();break;case"source-document":d.message.parts.push({type:"source-document",sourceId:i.sourceId,mediaType:i.mediaType,title:i.title,filename:i.filename,providerMetadata:i.providerMetadata}),u();break;case"tool-input-start":{let c=d.message.parts.filter(ma);d.partialToolCalls[i.toolCallId]={text:"",toolName:i.toolName,index:c.length,dynamic:i.dynamic},i.dynamic?b({toolCallId:i.toolCallId,toolName:i.toolName,state:"input-streaming",input:void 0,providerExecuted:i.providerExecuted}):h({toolCallId:i.toolCallId,toolName:i.toolName,state:"input-streaming",input:void 0,providerExecuted:i.providerExecuted}),u();break}case"tool-input-delta":{let c=d.partialToolCalls[i.toolCallId];c.text+=i.inputTextDelta;let{value:m}=await Us(c.text);c.dynamic?b({toolCallId:i.toolCallId,toolName:c.toolName,state:"input-streaming",input:m}):h({toolCallId:i.toolCallId,toolName:c.toolName,state:"input-streaming",input:m}),u();break}case"tool-input-available":i.dynamic?b({toolCallId:i.toolCallId,toolName:i.toolName,state:"input-available",input:i.input,providerExecuted:i.providerExecuted,providerMetadata:i.providerMetadata}):h({toolCallId:i.toolCallId,toolName:i.toolName,state:"input-available",input:i.input,providerExecuted:i.providerExecuted,providerMetadata:i.providerMetadata}),u(),n&&!i.providerExecuted&&await n({toolCall:i});break;case"tool-input-error":i.dynamic?b({toolCallId:i.toolCallId,toolName:i.toolName,state:"output-error",input:i.input,errorText:i.errorText,providerExecuted:i.providerExecuted,providerMetadata:i.providerMetadata}):h({toolCallId:i.toolCallId,toolName:i.toolName,state:"output-error",input:void 0,rawInput:i.input,errorText:i.errorText,providerExecuted:i.providerExecuted,providerMetadata:i.providerMetadata}),u();break;case"tool-output-available":if(i.dynamic){let c=g(i.toolCallId);b({toolCallId:i.toolCallId,toolName:c.toolName,state:"output-available",input:c.input,output:i.output,preliminary:i.preliminary})}else{let c=p(i.toolCallId);h({toolCallId:i.toolCallId,toolName:qs(c),state:"output-available",input:c.input,output:i.output,providerExecuted:i.providerExecuted,preliminary:i.preliminary})}u();break;case"tool-output-error":if(i.dynamic){let c=g(i.toolCallId);b({toolCallId:i.toolCallId,toolName:c.toolName,state:"output-error",input:c.input,errorText:i.errorText,providerExecuted:i.providerExecuted})}else{let c=p(i.toolCallId);h({toolCallId:i.toolCallId,toolName:qs(c),state:"output-error",input:c.input,rawInput:c.rawInput,errorText:i.errorText,providerExecuted:i.providerExecuted})}u();break;case"start-step":d.message.parts.push({type:"step-start"});break;case"finish-step":d.activeTextParts={},d.activeReasoningParts={};break;case"start":i.messageId!=null&&(d.message.id=i.messageId),await f(i.messageMetadata),(i.messageId!=null||i.messageMetadata!=null)&&u();break;case"finish":i.finishReason!=null&&(d.finishReason=i.finishReason),await f(i.messageMetadata),i.messageMetadata!=null&&u();break;case"message-metadata":await f(i.messageMetadata),i.messageMetadata!=null&&u();break;case"error":s==null||s(Error(i.errorText));break;default:if(ed(i)){(a==null?void 0:a[i.type])!=null&&await ks({value:i.data,schema:a[i.type]});let c=i;if(c.transient){o==null||o(c);break}let m=c.id==null?void 0:d.message.parts.find(_=>c.type===_.type&&c.id===_.id);m==null?d.message.parts.push(c):m.data=c.data,o==null||o(c),u()}}l.enqueue(i)})}}))}async function Bs({stream:t,onError:e}){let a=t.getReader();try{for(;;){let{done:r}=await a.read();if(r)break}}catch(r){e==null||e(r)}finally{a.releaseLock()}}Nt({prefix:"aitxt",size:24}),Nt({prefix:"aiobj",size:24});var nd=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(t){return new Promise((e,a)=>{this.queue.push(async()=>{try{await t(),e()}catch(r){a(r)}}),this.processQueue()})}};Nt({prefix:"aiobj",size:24}),ql({},{object:()=>od,text:()=>id});var id=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:t}){return{partial:t}},async parseOutput({text:t}){return t}}),od=({schema:t})=>{let e=Ul(t);return{type:"object",responseFormat:{type:"json",schema:e.jsonSchema},async parsePartial({text:a}){let r=await Us(a);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:r.value};default:{let s=r.state;throw Error(`Unsupported parse state: ${s}`)}}},async parseOutput({text:a},r){let s=await ca({text:a});if(!s.success)throw new js({message:"No object generated: could not parse the response.",cause:s.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});let n=await Ja({value:s.value,schema:e});if(!n.success)throw new js({message:"No object generated: response did not match schema.",cause:n.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});return n.value}}};async function ld({stream:t,onTextPart:e}){let a=t.pipeThrough(new TextDecoderStream).getReader();for(;;){let{done:r,value:s}=await a.read();if(r)break;await e(s)}}var dd=()=>fetch;async function ud({api:t,prompt:e,credentials:a,headers:r,body:s,streamProtocol:n="data",setCompletion:o,setLoading:i,setError:l,setAbortController:d,onFinish:u,onError:p,fetch:g=dd()}){try{i(!0),l(void 0);let h=new AbortController;d(h),o("");let b=await g(t,{method:"POST",body:JSON.stringify({prompt:e,...s}),credentials:a,headers:Wa({"Content-Type":"application/json",...r},`ai-sdk/${Xa}`,Ba()),signal:h.signal}).catch(c=>{throw c});if(!b.ok)throw Error(await b.text()??"Failed to fetch the chat response.");if(!b.body)throw Error("The response body is empty.");let f="";switch(n){case"text":await ld({stream:b.body,onTextPart:c=>{f+=c,o(f)}});break;case"data":await Bs({stream:Cs({stream:b.body,schema:Fs}).pipeThrough(new TransformStream({async transform(c){if(!c.success)throw c.error;let m=c.value;if(m.type==="text-delta")f+=m.delta,o(f);else if(m.type==="error")throw Error(m.errorText)}})),onError:c=>{throw c}});break;default:throw Error(`Unknown stream protocol: ${n}`)}return u&&u(e,f),d(null),f}catch(h){if(h.name==="AbortError")return d(null),null;h instanceof Error&&p&&p(h),l(h)}finally{i(!1)}}async function cd(t){if(t==null)return[];if(!globalThis.FileList||!(t instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(t).map(async e=>{let{name:a,type:r}=e;return{type:"file",mediaType:r,filename:a,url:await new Promise((s,n)=>{let o=new FileReader;o.onload=i=>{var l;s((l=i.target)==null?void 0:l.result)},o.onerror=i=>n(i),o.readAsDataURL(e)})}}))}var pd=class{constructor({api:t="/api/chat",credentials:e,headers:a,body:r,fetch:s,prepareSendMessagesRequest:n,prepareReconnectToStreamRequest:o}){this.api=t,this.credentials=e,this.headers=a,this.body=r,this.fetch=s,this.prepareSendMessagesRequest=n,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:t,...e}){var g;let a=await kt(this.body),r=await kt(this.headers),s=await kt(this.credentials),n={...ct(r),...ct(e.headers)},o=await((g=this.prepareSendMessagesRequest)==null?void 0:g.call(this,{api:this.api,id:e.chatId,messages:e.messages,body:{...a,...e.body},headers:n,credentials:s,requestMetadata:e.metadata,trigger:e.trigger,messageId:e.messageId})),i=(o==null?void 0:o.api)??this.api,l=(o==null?void 0:o.headers)===void 0?n:ct(o.headers),d=(o==null?void 0:o.body)===void 0?{...a,...e.body,id:e.chatId,messages:e.messages,trigger:e.trigger,messageId:e.messageId}:o.body,u=(o==null?void 0:o.credentials)??s,p=await(this.fetch??globalThis.fetch)(i,{method:"POST",headers:Wa({"Content-Type":"application/json",...l},`ai-sdk/${Xa}`,Ba()),body:JSON.stringify(d),credentials:u,signal:t});if(!p.ok)throw Error(await p.text()??"Failed to fetch the chat response.");if(!p.body)throw Error("The response body is empty.");return this.processResponseStream(p.body)}async reconnectToStream(t){var u;let e=await kt(this.body),a=await kt(this.headers),r=await kt(this.credentials),s={...ct(a),...ct(t.headers)},n=await((u=this.prepareReconnectToStreamRequest)==null?void 0:u.call(this,{api:this.api,id:t.chatId,body:{...e,...t.body},headers:s,credentials:r,requestMetadata:t.metadata})),o=(n==null?void 0:n.api)??`${this.api}/${t.chatId}/stream`,i=(n==null?void 0:n.headers)===void 0?s:ct(n.headers),l=(n==null?void 0:n.credentials)??r,d=await(this.fetch??globalThis.fetch)(o,{method:"GET",headers:Wa(i,`ai-sdk/${Xa}`,Ba()),credentials:l});if(d.status===204)return null;if(!d.ok)throw Error(await d.text()??"Failed to fetch the chat response.");if(!d.body)throw Error("The response body is empty.");return this.processResponseStream(d.body)}},er=class extends pd{constructor(t={}){super(t)}processResponseStream(t){return Cs({stream:t,schema:Fs}).pipeThrough(new TransformStream({async transform(e,a){if(!e.success)throw e.error;a.enqueue(e.value)}}))}},md=class{constructor({generateId:t=Uo,id:e=t(),transport:a=new er,messageMetadataSchema:r,dataPartSchemas:s,state:n,onError:o,onToolCall:i,onFinish:l,onData:d,sendAutomaticallyWhen:u}){this.activeResponse=void 0,this.jobExecutor=new nd,this.sendMessage=async(p,g)=>{var b;if(p==null){await this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id,...g});return}let h;if(h="text"in p||"files"in p?{parts:[...Array.isArray(p.files)?p.files:await cd(p.files),..."text"in p&&p.text!=null?[{type:"text",text:p.text}]:[]]}:p,p.messageId!=null){let f=this.state.messages.findIndex(c=>c.id===p.messageId);if(f===-1)throw Error(`message with id ${p.messageId} not found`);if(this.state.messages[f].role!=="user")throw Error(`message with id ${p.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,f+1),this.state.replaceMessage(f,{...h,id:p.messageId,role:h.role??"user",metadata:p.metadata})}else this.state.pushMessage({...h,id:h.id??this.generateId(),role:h.role??"user",metadata:p.metadata});await this.makeRequest({trigger:"submit-message",messageId:p.messageId,...g})},this.regenerate=async({messageId:p,...g}={})=>{let h=p==null?this.state.messages.length-1:this.state.messages.findIndex(b=>b.id===p);if(h===-1)throw Error(`message ${p} not found`);this.state.messages=this.state.messages.slice(0,this.messages[h].role==="assistant"?h:h+1),await this.makeRequest({trigger:"regenerate-message",messageId:p,...g})},this.resumeStream=async(p={})=>{await this.makeRequest({trigger:"resume-stream",...p})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolOutput=async({state:p="output-available",tool:g,toolCallId:h,output:b,errorText:f})=>this.jobExecutor.run(async()=>{var _,E;let c=this.state.messages,m=c[c.length-1];this.state.replaceMessage(c.length-1,{...m,parts:m.parts.map(C=>Vs(C)&&C.toolCallId===h?{...C,state:p,output:b,errorText:f}:C)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(C=>Vs(C)&&C.toolCallId===h?{...C,state:p,output:b,errorText:f}:C)),this.status!=="streaming"&&this.status!=="submitted"&&((_=this.sendAutomaticallyWhen)!=null&&_.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(E=this.lastMessage)==null?void 0:E.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var p;this.status!=="streaming"&&this.status!=="submitted"||(p=this.activeResponse)!=null&&p.abortController&&this.activeResponse.abortController.abort()},this.id=e,this.transport=a,this.generateId=t,this.messageMetadataSchema=r,this.dataPartSchemas=s,this.state=n,this.onError=o,this.onToolCall=i,this.onFinish=l,this.onData=d,this.sendAutomaticallyWhen=u}get status(){return this.state.status}setStatus({status:t,error:e}){this.status!==t&&(this.state.status=t,this.state.error=e)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(t){this.state.messages=t}async makeRequest({trigger:t,metadata:e,headers:a,body:r,messageId:s}){var u,p,g;var n;this.setStatus({status:"submitted",error:void 0});let o=this.lastMessage,i=!1,l=!1,d=!1;try{let h={state:rd({lastMessage:this.state.snapshot(o),messageId:this.generateId()}),abortController:new AbortController};h.abortController.signal.addEventListener("abort",()=>{i=!0}),this.activeResponse=h;let b;if(t==="resume-stream"){let f=await this.transport.reconnectToStream({chatId:this.id,metadata:e,headers:a,body:r});if(f==null){this.setStatus({status:"ready"});return}b=f}else b=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:h.abortController.signal,metadata:e,headers:a,body:r,trigger:t,messageId:s});await Bs({stream:sd({stream:b,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:f=>this.jobExecutor.run(()=>f({state:h.state,write:()=>{var c;this.setStatus({status:"streaming"}),h.state.message.id===((c=this.lastMessage)==null?void 0:c.id)?this.state.replaceMessage(this.state.messages.length-1,h.state.message):this.state.pushMessage(h.state.message)}})),onError:f=>{throw f}}),onError:f=>{throw f}}),this.setStatus({status:"ready"})}catch(h){if(i||h.name==="AbortError")return i=!0,this.setStatus({status:"ready"}),null;d=!0,h instanceof TypeError&&(h.message.toLowerCase().includes("fetch")||h.message.toLowerCase().includes("network"))&&(l=!0),this.onError&&h instanceof Error&&this.onError(h),this.setStatus({status:"error",error:h})}finally{try{(n=this.onFinish)==null||n.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:i,isDisconnect:l,isError:d,finishReason:(u=this.activeResponse)==null?void 0:u.state.finishReason})}catch(h){console.error(h)}this.activeResponse=void 0}(p=this.sendAutomaticallyWhen)!=null&&p.call(this,{messages:this.state.messages})&&!d&&await this.makeRequest({trigger:"submit-message",messageId:(g=this.lastMessage)==null?void 0:g.id,metadata:e,headers:a,body:r})}},hd=Vn(((t,e)=>{function a(r,s){if(typeof r!="function")throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof r}\`.`);let n,o=0;return function(...i){clearTimeout(n);let l=Date.now(),d=s-(l-o);d<=0?(o=l,r.apply(this,i)):n=setTimeout(()=>{o=Date.now(),r.apply(this,i)},d)}}e.exports=a})),Ws=Object.prototype.hasOwnProperty;function tr(t,e){var a,r;if(t===e)return!0;if(t&&e&&(a=t.constructor)===e.constructor){if(a===Date)return t.getTime()===e.getTime();if(a===RegExp)return t.toString()===e.toString();if(a===Array){if((r=t.length)===e.length)for(;r--&&tr(t[r],e[r]););return r===-1}if(!a||typeof t=="object"){for(a in r=0,t)if(Ws.call(t,a)&&++r&&!Ws.call(e,a)||!(a in e)||!tr(t[a],e[a]))return!1;return Object.keys(e).length===r}}return t!==t&&e!==e}var A=ka(Kn(),1),We=new WeakMap,pt=()=>{},ue=void 0,ha=Object,Z=t=>t===ue,Ae=t=>typeof t=="function",Je=(t,e)=>({...t,...e}),Js=t=>Ae(t.then),ar={},fa={},rr="undefined",Pt=typeof window!=rr,sr=typeof document!=rr,fd=Pt&&"Deno"in window,gd=()=>Pt&&typeof window.requestAnimationFrame!=rr,Ks=(t,e)=>{let a=We.get(t);return[()=>!Z(e)&&t.get(e)||ar,r=>{if(!Z(e)){let s=t.get(e);e in fa||(fa[e]=s),a[5](e,Je(s,r),s||ar)}},a[6],()=>!Z(e)&&e in fa?fa[e]:!Z(e)&&t.get(e)||ar]},nr=!0,yd=()=>nr,[ir,or]=Pt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[pt,pt],vd=()=>{let t=sr&&document.visibilityState;return Z(t)||t!=="hidden"},_d=t=>(sr&&document.addEventListener("visibilitychange",t),ir("focus",t),()=>{sr&&document.removeEventListener("visibilitychange",t),or("focus",t)}),bd=t=>{let e=()=>{nr=!0,t()},a=()=>{nr=!1};return ir("online",e),ir("offline",a),()=>{or("online",e),or("offline",a)}},xd={isOnline:yd,isVisible:vd},wd={initFocus:_d,initReconnect:bd},Ys=!A.useId,jt=!Pt||fd,kd=t=>gd()?window.requestAnimationFrame(t):setTimeout(t,1),ga=jt?A.useEffect:A.useLayoutEffect,lr=typeof navigator<"u"&&navigator.connection,Hs=!jt&&lr&&(["slow-2g","2g"].includes(lr.effectiveType)||lr.saveData),ya=new WeakMap,Cd=t=>ha.prototype.toString.call(t),dr=(t,e)=>t===`[object ${e}]`,Ed=0,ur=t=>{let e=typeof t,a=Cd(t),r=dr(a,"Date"),s=dr(a,"RegExp"),n=dr(a,"Object"),o,i;if(ha(t)===t&&!r&&!s){if(o=ya.get(t),o)return o;if(o=++Ed+"~",ya.set(t,o),Array.isArray(t)){for(o="@",i=0;i{if(Ae(t))try{t=t()}catch{t=""}let e=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?ur(t):"",[t,e]},Td=0,pr=()=>++Td;async function Gs(...t){let[e,a,r,s]=t,n=Je({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{}),o=n.populateCache,i=n.rollbackOnError,l=n.optimisticData,d=g=>typeof i=="function"?i(g):i!==!1,u=n.throwOnError;if(Ae(a)){let g=a,h=[],b=e.keys();for(let f of b)!/^\$(inf|sub)\$/.test(f)&&g(e.get(f)._k)&&h.push(f);return Promise.all(h.map(p))}return p(a);async function p(g){let[h]=cr(g);if(!h)return;let[b,f]=Ks(e,h),[c,m,_,E]=We.get(e),C=()=>{let W=c[h];return(Ae(n.revalidate)?n.revalidate(b().data,g):n.revalidate!==!1)&&(delete _[h],delete E[h],W&&W[0])?W[0](2).then(()=>b().data):b().data};if(t.length<3)return C();let I=r,P,D=!1,M=pr();m[h]=[M,0];let H=!Z(l),j=b(),F=j.data,K=j._c,X=Z(K)?F:K;if(H&&(l=Ae(l)?l(X,F):l,f({data:l,_c:X})),Ae(I))try{I=I(X)}catch(W){P=W,D=!0}if(I&&Js(I))if(I=await I.catch(W=>{P=W,D=!0}),M!==m[h][0]){if(D)throw P;return I}else D&&H&&d(P)&&(o=!0,f({data:X,_c:ue}));if(o&&(D||(Ae(o)?f({data:o(I,X),error:ue,_c:ue}):f({data:I,error:ue,_c:ue}))),m[h][1]=pr(),Promise.resolve(C()).then(()=>{f({_c:ue})}),D){if(u)throw P;return}return I}}var Qs=(t,e)=>{for(let a in t)t[a][0]&&t[a][0](e)},Xs=(t,e)=>{if(!We.has(t)){let a=Je(wd,e),r=Object.create(null),s=Gs.bind(ue,t),n=pt,o=Object.create(null),i=(u,p)=>{let g=o[u]||[];return o[u]=g,g.push(p),()=>g.splice(g.indexOf(p),1)},l=(u,p,g)=>{t.set(u,p);let h=o[u];if(h)for(let b of h)b(p,g)},d=()=>{if(!We.has(t)&&(We.set(t,[r,Object.create(null),Object.create(null),Object.create(null),s,l,i]),!jt)){let u=a.initFocus(setTimeout.bind(ue,Qs.bind(ue,r,0))),p=a.initReconnect(setTimeout.bind(ue,Qs.bind(ue,r,1)));n=()=>{u&&u(),p&&p(),We.delete(t)}}};return d(),[t,s,d,n]}return[t,We.get(t)[4]]},Id=(t,e,a,r,s)=>{let n=a.errorRetryCount,o=s.retryCount,i=~~((Math.random()+.5)*(1<<(o<8?o:8)))*a.errorRetryInterval;!Z(n)&&o>n||setTimeout(r,i,s)},Sd=tr,[mr,Od]=Xs(new Map),en=Je({onLoadingSlow:pt,onSuccess:pt,onError:pt,onErrorRetry:Id,onDiscarded:pt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Hs?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Hs?5e3:3e3,compare:Sd,isPaused:()=>!1,cache:mr,mutate:Od,fallback:{}},xd),tn=(t,e)=>{let a=Je(t,e);if(e){let{use:r,fallback:s}=t,{use:n,fallback:o}=e;r&&n&&(a.use=r.concat(n)),s&&o&&(a.fallback=Je(s,o))}return a},hr=(0,A.createContext)({}),Ad=t=>{let{value:e}=t,a=(0,A.useContext)(hr),r=Ae(e),s=(0,A.useMemo)(()=>r?e(a):e,[r,a,e]),n=(0,A.useMemo)(()=>r?s:tn(a,s),[r,a,s]),o=s&&s.provider,i=(0,A.useRef)(ue);o&&!i.current&&(i.current=Xs(o(n.cache||mr),s));let l=i.current;return l&&(n.cache=l[0],n.mutate=l[1]),ga(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,A.createElement)(hr.Provider,Je(t,{value:n}))},an=Pt&&window.__SWR_DEVTOOLS_USE__,Rd=an?window.__SWR_DEVTOOLS_USE__:[],Nd=()=>{an&&(window.__SWR_DEVTOOLS_REACT__=A.default)},Md=t=>Ae(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],Pd=()=>Je(en,(0,A.useContext)(hr)),jd=Rd.concat(t=>(e,a,r)=>t(e,a&&((...s)=>{let[n]=cr(e),[,,,o]=We.get(mr);if(n.startsWith("$inf$"))return a(...s);let i=o[n];return Z(i)?a(...s):(delete o[n],i)}),r)),Ld=t=>function(...e){let a=Pd(),[r,s,n]=Md(e),o=tn(a,n),i=t,{use:l}=o,d=(l||[]).concat(jd);for(let u=d.length;u--;)i=d[u](i);return i(r,s||o.fetcher||null,o)},$d=(t,e,a)=>{let r=e[t]||(e[t]=[]);return r.push(a),()=>{let s=r.indexOf(a);s>=0&&(r[s]=r[r.length-1],r.pop())}};Nd();var Dd=Wi(),fr=A.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t}}),gr={dedupe:!0},Zd=(t,e,a)=>{let{cache:r,compare:s,suspense:n,fallbackData:o,revalidateOnMount:i,revalidateIfStale:l,refreshInterval:d,refreshWhenHidden:u,refreshWhenOffline:p,keepPreviousData:g}=a,[h,b,f,c]=We.get(r),[m,_]=cr(t),E=(0,A.useRef)(!1),C=(0,A.useRef)(!1),I=(0,A.useRef)(m),P=(0,A.useRef)(e),D=(0,A.useRef)(a),M=()=>D.current,H=()=>M().isVisible()&&M().isOnline(),[j,F,K,X]=Ks(r,m),W=(0,A.useRef)({}).current,J=Z(o)?Z(a.fallback)?ue:a.fallback[m]:o,te=(B,U)=>{for(let G in W){let V=G;if(V==="data"){if(!s(B[V],U[V])&&(!Z(B[V])||!s(Ce,U[V])))return!1}else if(U[V]!==B[V])return!1}return!0},ie=(0,A.useMemo)(()=>{let B=!m||!e?!1:Z(i)?M().isPaused()||n?!1:l!==!1:i,U=ne=>{let ce=Je(ne);return delete ce._k,B?{isValidating:!0,isLoading:!0,...ce}:ce},G=j(),V=X(),me=U(G),he=G===V?me:U(V),re=me;return[()=>{let ne=U(j());return te(ne,re)?(re.data=ne.data,re.isLoading=ne.isLoading,re.isValidating=ne.isValidating,re.error=ne.error,re):(re=ne,ne)},()=>he]},[r,m]),ae=(0,Dd.useSyncExternalStore)((0,A.useCallback)(B=>K(m,(U,G)=>{te(G,U)||B()}),[r,m]),ie[0],ie[1]),Ye=!E.current,ke=h[m]&&h[m].length>0,ye=ae.data,be=Z(ye)?J&&Js(J)?fr(J):J:ye,De=ae.error,Ne=(0,A.useRef)(be),Ce=g?Z(ye)?Z(Ne.current)?be:Ne.current:ye:be,Ze=ke&&!Z(De)?!1:Ye&&!Z(i)?i:M().isPaused()?!1:n?Z(be)?!1:l:Z(be)||l,nt=!!(m&&e&&Ye&&Ze),Tt=Z(ae.isValidating)?nt:ae.isValidating,ht=Z(ae.isLoading)?nt:ae.isLoading,Fe=(0,A.useCallback)(async B=>{let U=P.current;if(!m||!U||C.current||M().isPaused())return!1;let G,V,me=!0,he=B||{},re=!f[m]||!he.dedupe,ne=()=>Ys?!C.current&&m===I.current&&E.current:m===I.current,ce={isValidating:!1,isLoading:!1},ot=()=>{F(ce)},ze=()=>{let le=f[m];le&&le[1]===V&&delete f[m]},lt={isValidating:!0};Z(j().data)&&(lt.isLoading=!0);try{if(re&&(F(lt),a.loadingTimeout&&Z(j().data)&&setTimeout(()=>{me&&ne()&&M().onLoadingSlow(m,a)},a.loadingTimeout),f[m]=[U(_),pr()]),[G,V]=f[m],G=await G,re&&setTimeout(ze,a.dedupingInterval),!f[m]||f[m][1]!==V)return re&&ne()&&M().onDiscarded(m),!1;ce.error=ue;let le=b[m];if(!Z(le)&&(V<=le[0]||V<=le[1]||le[1]===0))return ot(),re&&ne()&&M().onDiscarded(m),!1;let fe=j().data;ce.data=s(fe,G)?fe:G,re&&ne()&&M().onSuccess(G,m,a)}catch(le){ze();let fe=M(),{shouldRetryOnError:Me}=fe;fe.isPaused()||(ce.error=le,re&&ne()&&(fe.onError(le,m,fe),(Me===!0||Ae(Me)&&Me(le))&&(!M().revalidateOnFocus||!M().revalidateOnReconnect||H())&&fe.onErrorRetry(le,m,fe,ft=>{let Pe=h[m];Pe&&Pe[0]&&Pe[0](3,ft)},{retryCount:(he.retryCount||0)+1,dedupe:!0})))}return me=!1,ot(),!0},[m,r]),it=(0,A.useCallback)((...B)=>Gs(r,I.current,...B),[]);if(ga(()=>{P.current=e,D.current=a,Z(ye)||(Ne.current=ye)}),ga(()=>{if(!m)return;let B=Fe.bind(ue,gr),U=0;M().revalidateOnFocus&&(U=Date.now()+M().focusThrottleInterval);let G=$d(m,h,(V,me={})=>{if(V==0){let he=Date.now();M().revalidateOnFocus&&he>U&&H()&&(U=he+M().focusThrottleInterval,B())}else if(V==1)M().revalidateOnReconnect&&H()&&B();else{if(V==2)return Fe();if(V==3)return Fe(me)}});return C.current=!1,I.current=m,E.current=!0,F({_k:_}),Ze&&(f[m]||(Z(be)||jt?B():kd(B))),()=>{C.current=!0,G()}},[m]),ga(()=>{let B;function U(){let V=Ae(d)?d(j().data):d;V&&B!==-1&&(B=setTimeout(G,V))}function G(){!j().error&&(u||M().isVisible())&&(p||M().isOnline())?Fe(gr).then(U):U()}return U(),()=>{B&&(B=(clearTimeout(B),-1))}},[d,u,p,m]),(0,A.useDebugValue)(Ce),n&&Z(be)&&m){if(!Ys&&jt)throw Error("Fallback data is required when using Suspense in SSR.");P.current=e,D.current=a,C.current=!1;let B=c[m];if(Z(B)||fr(it(B)),Z(De)){let U=Fe(gr);Z(Ce)||(U.status="fulfilled",U.value=!0),fr(U)}else throw De}return{mutate:it,get data(){return W.data=!0,Ce},get error(){return W.error=!0,De},get isValidating(){return W.isValidating=!0,Tt},get isLoading(){return W.isLoading=!0,ht}}};ha.defineProperty(Ad,"defaultValue",{value:en});var rn=Ld(Zd),Fd=ka(hd(),1),sn=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},Y=(t,e,a)=>(sn(t,e,"read from private field"),a?a.call(t):e.get(t)),$e=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},rt=(t,e,a,r)=>(sn(t,e,"write to private field"),r?r.call(t,a):e.set(t,a),a);function nn(t,e){return e==null?t:(0,Fd.default)(t,e)}var xe,va,_a,Lt,$t,Dt,Ct,yr,vr,zd=class{constructor(t=[]){$e(this,xe,void 0),$e(this,va,"ready"),$e(this,_a,void 0),$e(this,Lt,new Set),$e(this,$t,new Set),$e(this,Dt,new Set),this.pushMessage=e=>{rt(this,xe,Y(this,xe).concat(e)),Y(this,Ct).call(this)},this.popMessage=()=>{rt(this,xe,Y(this,xe).slice(0,-1)),Y(this,Ct).call(this)},this.replaceMessage=(e,a)=>{rt(this,xe,[...Y(this,xe).slice(0,e),this.snapshot(a),...Y(this,xe).slice(e+1)]),Y(this,Ct).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,a)=>{let r=a?nn(e,a):e;return Y(this,Lt).add(r),()=>{Y(this,Lt).delete(r)}},this["~registerStatusCallback"]=e=>(Y(this,$t).add(e),()=>{Y(this,$t).delete(e)}),this["~registerErrorCallback"]=e=>(Y(this,Dt).add(e),()=>{Y(this,Dt).delete(e)}),$e(this,Ct,()=>{Y(this,Lt).forEach(e=>e())}),$e(this,yr,()=>{Y(this,$t).forEach(e=>e())}),$e(this,vr,()=>{Y(this,Dt).forEach(e=>e())}),rt(this,xe,t)}get status(){return Y(this,va)}set status(t){rt(this,va,t),Y(this,yr).call(this)}get error(){return Y(this,_a)}set error(t){rt(this,_a,t),Y(this,vr).call(this)}get messages(){return Y(this,xe)}set messages(t){rt(this,xe,[...t]),Y(this,Ct).call(this)}};xe=new WeakMap,va=new WeakMap,_a=new WeakMap,Lt=new WeakMap,$t=new WeakMap,Dt=new WeakMap,Ct=new WeakMap,yr=new WeakMap,vr=new WeakMap;var Et,on=class extends md{constructor({messages:t,...e}){let a=new zd(t);super({...e,state:a}),$e(this,Et,void 0),this["~registerMessagesCallback"]=(r,s)=>Y(this,Et)["~registerMessagesCallback"](r,s),this["~registerStatusCallback"]=r=>Y(this,Et)["~registerStatusCallback"](r),this["~registerErrorCallback"]=r=>Y(this,Et)["~registerErrorCallback"](r),rt(this,Et,a)}};Et=new WeakMap;function ln({experimental_throttle:t,resume:e=!1,...a}={}){let r=(0,A.useRef)("chat"in a?a.chat:new on(a));("chat"in a&&a.chat!==r.current||"id"in a&&r.current.id!==a.id)&&(r.current="chat"in a?a.chat:new on(a));let s=(0,A.useSyncExternalStore)((0,A.useCallback)(l=>r.current["~registerMessagesCallback"](l,t),[t,r.current.id]),()=>r.current.messages,()=>r.current.messages),n=(0,A.useSyncExternalStore)(r.current["~registerStatusCallback"],()=>r.current.status,()=>r.current.status),o=(0,A.useSyncExternalStore)(r.current["~registerErrorCallback"],()=>r.current.error,()=>r.current.error),i=(0,A.useCallback)(l=>{typeof l=="function"&&(l=l(r.current.messages)),r.current.messages=l},[r]);return(0,A.useEffect)(()=>{e&&r.current.resumeStream()},[e,r]),{id:r.current.id,messages:s,setMessages:i,sendMessage:r.current.sendMessage,regenerate:r.current.regenerate,clearError:r.current.clearError,stop:r.current.stop,error:o,resumeStream:r.current.resumeStream,status:n,addToolResult:r.current.addToolOutput,addToolOutput:r.current.addToolOutput}}function Ud({api:t="/api/completion",id:e,initialCompletion:a="",initialInput:r="",credentials:s,headers:n,body:o,streamProtocol:i="data",fetch:l,onFinish:d,onError:u,experimental_throttle:p}={}){let g=(0,A.useId)(),h=e||g,{data:b,mutate:f}=rn([t,h],null,{fallbackData:a}),{data:c=!1,mutate:m}=rn([h,"loading"],null),[_,E]=(0,A.useState)(void 0),C=b,[I,P]=(0,A.useState)(null),D=(0,A.useRef)({credentials:s,headers:n,body:o});(0,A.useEffect)(()=>{D.current={credentials:s,headers:n,body:o}},[s,n,o]);let M=(0,A.useCallback)(async(J,te)=>ud({api:t,prompt:J,credentials:D.current.credentials,headers:{...D.current.headers,...te==null?void 0:te.headers},body:{...D.current.body,...te==null?void 0:te.body},streamProtocol:i,fetch:l,setCompletion:nn(ie=>f(ie,!1),p),setLoading:m,setError:E,setAbortController:P,onFinish:d,onError:u}),[f,m,t,D,P,d,u,E,i,l,p]),H=(0,A.useCallback)(()=>{I&&(I.abort(),P(null))},[I]),j=(0,A.useCallback)(J=>{f(J,!1)},[f]),F=(0,A.useCallback)(async(J,te)=>M(J,te),[M]),[K,X]=(0,A.useState)(r),W=(0,A.useCallback)(J=>{var te;return(te=J==null?void 0:J.preventDefault)==null||te.call(J),K?F(K):void 0},[K,F]);return{completion:C,complete:F,error:_,setCompletion:j,stop:H,input:K,setInput:X,handleInputChange:(0,A.useCallback)(J=>{X(J.target.value)},[X]),handleSubmit:W,isLoading:c}}var we=class extends Error{constructor(t,e="TOOL_ERROR",a=!1,r,s){super(t),this.name="ToolExecutionError",this.code=e,this.isRetryable=a,this.suggestedFix=r,this.meta=s}toStructuredString(){let t=JSON.stringify({message:this.message,code:this.code,is_retryable:this.isRetryable,...this.suggestedFix&&{suggested_fix:this.suggestedFix},...this.meta&&{meta:this.meta}});return`Error invoking tool ${this.name}: ${t}`}};const dn=Q({status:Bt(["success","error","warning"]).optional(),auth_required:de().optional(),next_steps:Ve(k()).optional(),action_url:k().optional(),message:k().optional(),meta:It(k(),Ue()).optional()});function Vd(t,e){return t?!!(["image/","video/","audio/","application/pdf"].some(a=>t.startsWith(a))||["svg","vega"].some(a=>t.includes(a))||t==="text/html"&&["e.includes(a))):!1}var qd=class extends Ot{constructor(e){super();L(this,"title","Cell Outputs");L(this,"mentionPrefix","@");L(this,"contextType","cell-output");this.store=e}getItems(){let e=this.store.get(Ge),a=[];for(let r of e.cellIds.inOrderIds){let s=cn(r,e),n=s.cellOutput;if(!n)continue;let o=n.output.mimetype||"unknown";a.push({uri:this.asURI(r),name:s.cellName,type:this.contextType,description:`Cell output (${o})`,data:{...s,cellOutput:n}})}return a}formatCompletion(e){let{cellOutput:a,cellName:r,cellCode:s}=e.data;return{label:`@${r}`,displayLabel:r,detail:`${a.outputType} output`,boost:a.outputType==="media"?vt.HIGH:vt.MEDIUM,type:this.contextType,section:yt.CELL_OUTPUT,apply:`@${r}`,info:()=>{let n=document.createElement("div");n.classList.add("mo-cm-tooltip","docs-documentation","min-w-[300px]","max-w-[500px]","flex","flex-col","gap-2");let o=document.createElement("div");o.classList.add("flex","flex-col","gap-1");let i=document.createElement("div");i.classList.add("font-bold","text-base"),i.textContent=r,o.append(i);let l=document.createElement("div");if(l.classList.add("text-sm","text-muted-foreground"),o.append(l),n.append(o),s){let d=document.createElement("div");d.classList.add("text-xs","font-medium","text-muted-foreground"),d.textContent="Code:",n.append(d);let u=document.createElement("div");u.classList.add("text-xs","font-mono","bg-muted","p-2","rounded","max-h-20","overflow-y-auto"),u.textContent=s.slice(0,200)+(s.length>200?"...":""),n.append(u)}if(a.processedContent){let d=document.createElement("div");d.classList.add("text-xs","font-medium","text-muted-foreground","mt-2"),d.textContent="Output Preview:",n.append(d);let u=document.createElement("div");u.classList.add("text-xs","bg-muted","p-2","rounded","max-h-24","overflow-y-auto","mb-2"),u.textContent=a.processedContent.slice(0,300)+(a.processedContent.length>300?"...":""),n.append(u)}if(a.outputType==="media"){let d=document.createElement("div");d.classList.add("text-xs","text-muted-foreground","italic","mb-2"),d.textContent="A screenshot of the output will be attached",n.append(d)}return n}}}formatContext(e){let{cellOutput:a,cellName:r,cellId:s,cellCode:n}=e.data,o={name:r,cellId:s,outputType:a.outputType,mimetype:a.output.mimetype},i=`Cell Code: +${n} + +`;return a.outputType==="text"&&a.processedContent?i+=`Output: +${a.processedContent}`:a.outputType==="media"&&(i+=`Media Output: Contains ${a.output.mimetype} content`,a.imageUrl&&(i+=` +Image URL: ${a.imageUrl}`)),St({type:this.contextType,data:o,details:i})}async getAttachments(e){let a=e[0].data.cellId,r=e[0].data.cellName;return Bd(e.map(s=>s.data.cellOutput),a,r)}};async function Bd(t,e,a){let r=t.filter(n=>n.shouldDownloadImage&&n.outputType==="media");if(r.length===0)return[];let s=r.flatMap(n=>{let o=document.getElementById(ii.create(e));return o?{cellId:e,cellName:a,mimetype:n.output.mimetype,element:o}:(oe.warn(`Output element not found for cell ${e}`),[])});try{return await Promise.all(s.map(async n=>({type:"file",filename:`${a}-output-screenshot`,mediaType:"image/png",url:await Hi(n.element)})))}catch(n){return oe.error("Error downloading cell output images:",n),[]}}function un(t){if(Wr(t))return null;let e=t.mimetype,a=Vd(e,String(t.data))?"media":"text",r=Gi(t),s,n=!1;return a==="media"&&(typeof t.data=="string"&&t.data.startsWith("data:")||typeof t.data=="string"&&t.data.startsWith("http")?s=t.data:n=!0),{processedContent:r,imageUrl:s,shouldDownloadImage:n,outputType:a,output:t}}function cn(t,e,a){let{includeConsoleOutput:r=!1}=a||{},s=e.cellRuntime[t],n=e.cellData[t],o=e.cellIds.inOrderIds.indexOf(t),i=di(n.name,o),l;r&&(l=s.consoleOutputs.map(p=>un(p)).filter(p=>p!==null));let d,u=s.output;return u&&!Wr(u)&&(d=un(u)??void 0),{cellId:t,cellName:i,cellCode:n.code,cellOutput:d,consoleOutputs:l}}function Wd(t){return t.type==="setup-refs"?"The setup cell cannot have references":t.type==="cycle"?"This cell is in a cycle":t.type==="multiple-defs"?`The variable '${t.name}' was defined by another cell`:t.type==="import-star"||t.type==="ancestor-stopped"||t.type==="ancestor-prevented"||t.type==="exception"||t.type==="strict-exception"?t.msg:t.type==="interruption"?"This cell was interrupted and needs to be re-run":t.type==="syntax"||t.type==="unknown"||t.type==="sql-error"?t.msg:t.type==="internal"?t.msg||"An internal error occurred":(zr(t),"Unknown error")}var pn=new Xn("error","errors"),Jd=class extends Ot{constructor(e){super();L(this,"title","Errors");L(this,"mentionPrefix","@");L(this,"contextType","error");this.store=e}getItems(){let e=this.store.get(ni);return e.length===0?[]:[{uri:this.asURI("all"),name:"Errors",type:this.contextType,data:{type:"all-errors",errors:e.map(a=>({cellId:a.cellId,cellName:a.cellName,errorData:a.output.data}))},description:"All errors in the notebook"}]}formatCompletion(e){return e.data.type==="all-errors"?{label:"@Errors",displayLabel:"Errors",detail:`${e.data.errors.length} ${pn.pluralize(e.data.errors.length)}`,type:"error",apply:"@Errors",section:yt.ERROR,info:()=>{let a=document.createElement("div");a.classList.add("mo-cm-tooltip","docs-documentation","min-w-[200px]","flex","flex-col","gap-1","p-2");let r=document.createElement("div");r.classList.add("flex","flex-col","gap-1");let s=document.createElement("div");s.classList.add("font-bold","text-base"),s.textContent="Errors",r.append(s);let n=document.createElement("div");return n.classList.add("text-sm","text-muted-foreground"),n.textContent=`${e.data.errors.length} ${pn.pluralize(e.data.errors.length)}`,r.append(n),a.append(r),a}}:{label:"Error",displayLabel:"Error",section:yt.ERROR}}formatContext(e){let{data:a}=e;return a.errors.map(r=>St({type:this.contextType,data:{name:r.cellName||`Cell ${r.cellId}`,description:r.errorData.map(s=>Wd(s)).join(` +`)}})).join(` + +`)}};const mn=Yn();var Kd={maxDepth:3,maxResults:20,defaultResultsLimit:5,includeDirectories:!1},Yd=class extends Ot{constructor(e,a=Kd){super();L(this,"title","Files");L(this,"mentionPrefix","#");L(this,"contextType","file");L(this,"searchFiles",async(e,a={})=>{let{maxDepth:r,maxResults:s,includeDirectories:n}={...this.config,...a};return(await this.apiRequests.sendSearchFiles({query:e,includeFiles:!0,includeDirectories:n,depth:r,limit:s})).files});this.apiRequests=e,this.config=a}createCompletionSource(){return async e=>{let a=e.matchBefore(/#[^\s#]*/);if(!a)return null;let r=a.text;if(!r.startsWith("#"))return null;let s=r.slice(1);if(s.length===0)return this.getDefaultCompletions(a);try{let n=(await this.searchFiles(s)||[]).map(o=>{let i={uri:this.asURI(o.path),name:o.name,type:this.contextType,description:o.isDirectory?"Directory":"File",data:{path:o.path,isDirectory:o.isDirectory}};return this.formatCompletion(i)});return{from:a.from,options:n}}catch(n){return oe.error("Failed to search files:",n),null}}}async getDefaultCompletions(e){try{for(let a of["py","md","csv"])try{let r=await this.searchFiles(a,{maxDepth:1,maxResults:5});if(r&&r.length>0){let s=r.map(n=>{let o={uri:this.asURI(n.path),name:n.name,type:this.contextType,description:n.isDirectory?"Directory":"File",data:{path:n.path,isDirectory:n.isDirectory}};return this.formatCompletion(o)});return{from:e.from,options:s}}}catch(r){oe.error("Failed to get default file completions:",r)}return{from:e.from,options:[]}}catch(a){return oe.error("Failed to get default file completions:",a),null}}getItems(){return[]}formatCompletion(e){let{data:a,name:r}=e,s=a.isDirectory?"\u{1F4C1}":"\u{1F4C4}";return{...this.createBasicCompletion(e),type:"file",section:yt.FILE,boost:a.isDirectory?vt.MEDIUM:vt.LOW,detail:a.path,displayLabel:`${s} ${r}`,apply:async(n,o,i,l)=>{var h;let d=(h=n.state.facet(mn))==null?void 0:h.addAttachment;if(!d){oe.warn("No addAttachment callback provided");return}let u=await this.apiRequests.sendFileDetails({path:a.path}).catch(b=>(Kr({title:"Failed to get file details",description:b.message}),null));if(!u)return;let p=u.mimeType||"text/plain",g;if(p.startsWith("text/")||p.includes("json")||p.includes("xml"))g=new Blob([u.contents||""],{type:p});else if(u.contents)try{g=await Qi(Mi(u.contents,p))}catch{g=new Blob([u.contents],{type:p})}else g=new Blob([""],{type:p});d(new File([g],r,{type:p})),n.dispatch({changes:{from:i,to:l,insert:""}}),Ti(n)},info:()=>{let n=document.createElement("div");n.classList.add("flex","flex-col","gap-1","p-2");let o=document.createElement("div");o.classList.add("font-bold"),o.textContent=r,n.append(o);let i=document.createElement("div");return i.classList.add("text-xs","text-muted-foreground"),i.textContent=a.path,n.append(i),n}}}formatContext(e){let{data:a,name:r}=e;return St({type:this.contextType,data:{name:r,path:a.path,isDirectory:a.isDirectory},details:a.isDirectory?"Directory containing files and subdirectories":"File"})}},Hd=class extends Ot{constructor(e){super();L(this,"title","Tables");L(this,"mentionPrefix","@");L(this,"contextType","data");this.tablesMap=e}getItems(){return[...this.tablesMap.entries()].map(([e,a])=>({uri:this.asURI(e),name:e,type:this.contextType,description:a.source==="memory"?"in-memory":a.source,data:a}))}formatContext(e){let{data:a}=e,{columns:r,source:s,num_rows:n,num_columns:o,name:i,variable_name:l}=a,d=[n==null?void 0:`${n} rows`,o==null?void 0:`${o} columns`].filter(Boolean).join(", "),u="";if(d&&(u+=`Shape: ${d} +`),l&&(u+=`Variable: ${l} +`),r&&r.length>0){u+=`Columns: +`;for(let p of r){let g=` ${p.name} (${p.type})`;if(p.sample_values&&p.sample_values.length>0){let h=p.sample_values.slice(0,3).map(b=>b===null?"null":String(b)).join(", ");g+=` - samples: [${h}]`}u+=`${g} +`}}return St({type:this.contextType,data:{name:i,source:s??"unknown"},details:u.trim()})}formatCompletion(e){let a=e.data.name,r=e.data;return{label:`@${a}`,displayLabel:a,detail:r.source==="memory"?"in-memory":r.source,boost:r.source_type==="local"?vt.LOCAL_TABLE:vt.REMOTE_TABLE,type:Pr(r),apply:`@${a}`,section:{name:Pr(r)==="dataframe"?"Dataframe":"Table",rank:yt.TABLE.rank},info:()=>this.createTableInfoElement(a,r)}}createTableInfoElement(e,a){let r=document.createElement("div");r.classList.add("mo-cm-tooltip","docs-documentation","min-w-[200px]","flex","flex-col","gap-1","p-2");let s=document.createElement("div");s.classList.add("flex","flex-col","gap-1");let n=document.createElement("div");if(n.classList.add("font-bold","text-base"),n.textContent=e,s.append(n),a.source){let i=document.createElement("div");i.classList.add("text-xs","text-muted-foreground"),i.textContent=`Source: ${a.source}`,s.append(i)}r.append(s);let o=[a.num_rows==null?void 0:`${a.num_rows} rows`,a.num_columns==null?void 0:`${a.num_columns} columns`].filter(Boolean).join(", ");if(o){let i=document.createElement("div");i.classList.add("text-xs","bg-muted","px-2","py-1","rounded"),i.textContent=o,r.append(i)}if(a.columns&&a.columns.length>0){let i=document.createElement("div");i.classList.add("overflow-auto","max-h-60");let l=document.createElement("table");l.classList.add("w-full","text-xs","border-collapse");let d=l.insertRow();d.classList.add("bg-muted");let u=d.insertCell();u.classList.add("p-2","font-medium","text-left"),u.textContent="Column";let p=d.insertCell();p.classList.add("p-2","font-medium","text-left"),p.textContent="Type";let g=a.columns.some(b=>this.getItemMetadata(a,b)!==void 0),h;g&&(h=d.insertCell(),h.classList.add("p-2","font-medium","text-left"),h.textContent="Metadata"),a.columns.forEach((b,f)=>{let c=l.insertRow();c.classList.add(f%2==0?"bg-background":"bg-muted/30");let m=c.insertCell();m.classList.add("p-2","font-mono"),m.textContent=b.name;let _=c.insertCell();if(_.classList.add("p-2","text-muted-foreground"),_.textContent=b.type,g){let E=c.insertCell();E.classList.add("p-2");let C=this.getItemMetadata(a,b);C&&E.append(C)}}),i.append(l),r.append(i)}return r}getItemMetadata(e,a){var n,o;let r=(n=e.primary_keys)==null?void 0:n.includes(a.name),s=(o=e.indexes)==null?void 0:o.includes(a.name);if(r||s){let i=document.createElement("span");i.textContent=r?"PK":"IDX";let l=r?"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200":"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200";return i.classList.add("text-xs","px-1.5","py-0.5","rounded-full","font-medium",...l.split(" ")),i}}},Gd=class extends Ot{constructor(e,a){super();L(this,"title","Variables");L(this,"mentionPrefix","@");L(this,"contextType","variable");this.variables=e,this.tablesMap=a}getItems(){let e=new Set(this.tablesMap.keys());return Object.entries(this.variables).flatMap(([a,r])=>e.has(a)?[]:[{uri:this.asURI(a),name:a,type:this.contextType,description:r.dataType??"",dataType:r.dataType,data:{variable:r}}])}formatCompletion(e){let{data:a}=e,{variable:r}=a;return{label:`@${r.name}`,displayLabel:r.name,detail:r.dataType??"",type:this.contextType,section:yt.VARIABLE,info:()=>Hn(r)}}formatContext(e){let{data:a}=e,{variable:r}=a;return St({type:this.contextType,data:{name:r.name,dataType:r.dataType},details:r.value==null?void 0:JSON.stringify(r.value)})}};function mt(t){let e=t.get(oi),a=t.get(li),r=t.get(ri);return new zi().register(new Hd(a)).register(new Gd(r,a)).register(new Jd(t)).register(new qd(t)).register(new Ui(e.connectionsMap,a))}function Qd(){return new Yd(Oi())}const Xd="@";function eu({input:t}){let e="";return t.includes("@")&&(e=au(t),oe.debug("Included context",e)),{includeOtherCode:Mr(""),context:{plainText:e,schema:[],variables:[]}}}async function tu({input:t}){let e="",a=[];if(t.includes("@")){let r=mt(Nr),s=r.parseAllContextIds(t);e=r.formatContextForAI(s);try{a=await r.getAttachmentsForContext(s),oe.debug("Included attachments",a.length)}catch(n){oe.error("Error getting attachments:",n)}}return{body:{includeOtherCode:Mr(""),context:{plainText:e,schema:[],variables:[]}},attachments:a}}function au(t){let e=mt(Nr),a=e.parseAllContextIds(t);return e.formatContextForAI(a)}function ru(t,e=[]){return a=>{let r=t.map(s=>a.matchBefore(s)).find(Boolean);return!r||r&&r.from===r.to&&!a.explicit?null:{from:r==null?void 0:r.from,options:[...e]}}}function su(t){var e;if((e=t.current)!=null&&e.view){let a=t.current.view.state.selection.main.from;t.current.view.dispatch({changes:{from:a,to:a,insert:"@"},selection:{anchor:a+1,head:a+1}}),t.current.view.focus(),Ci(t.current.view)}}function nu(t){if(t.trim().length===0)return[];if(!t.includes("```"))return[{language:"python",code:t}];let e=[],a=0,r=t.indexOf("```",a);for(;r!==-1;){let s=t.indexOf(` +`,r);if(s===-1){let d=t.slice(r+3),u=d.indexOf(" "),p=u===-1?d:d.slice(0,u),g=p==="markdown"?"markdown":p==="sql"?"sql":"python",h=u===-1?"":d.slice(u+1);h.trim()&&e.push({language:g,code:h.trim()});break}let n=t.slice(r+3,s).trim()||"";n=n==="markdown"?"markdown":n==="sql"?"sql":"python";let o=s+1,i=t.indexOf("```",o);if(i===-1){let d=t.slice(o).replace(/\n+$/,"");d.trim()&&e.push({language:n,code:d});break}let l=t.slice(o,i).replace(/\n+$/,"");l.trim()&&e.push({language:n,code:l}),a=i+3,r=t.indexOf("```",a)}return e.length===0&&e.push({language:"python",code:t}),e}var iu=Ea(),hn=()=>new Map,{valueAtom:Zt,useActions:fn,createActions:Bc,reducer:Wc}=ki(hn,{addStagedCell:(t,e)=>{let{cellId:a,edit:r}=e;return new Map([...t,[a,r]])},removeStagedCell:(t,e)=>{let a=new Map(t);return a.delete(e),a},clearStagedCells:()=>hn()});function gn(t){let e=(0,iu.c)(27),{addStagedCell:a,removeStagedCell:r,clearStagedCells:s}=fn(),{createNewCell:n,updateCellCode:o}=Lr(),i=Xi(),l=(0,A.useRef)(null),d;e[0]!==a||e[1]!==n?(d=C=>{let I=jr.create();return a({cellId:I,edit:{type:"add_cell"}}),n({cellId:"__end__",code:C,before:!1,newCellId:I}),I},e[0]=a,e[1]=n,e[2]=d):d=e[2];let u=d,p;e[3]!==t||e[4]!==o?(p=C=>{let{cellId:I,code:P}=C;if(!t.get(Zt).has(I)){oe.error("Staged cell not found",{cellId:I});return}let D=si(I);D?Ca(D,P):o({cellId:I,code:P,formattingChange:!1})},e[3]=t,e[4]=o,e[5]=p):p=e[5];let g=p,h;e[6]!==i||e[7]!==r?(h=C=>{r(C),i({cellId:C})},e[6]=i,e[7]=r,e[8]=h):h=e[8];let b=h,f;e[9]!==s||e[10]!==i||e[11]!==t?(f=()=>{let C=t.get(Zt);for(let I of C.keys())i({cellId:I});s()},e[9]=s,e[10]=i,e[11]=t,e[12]=f):f=e[12];let c=f,m;e[13]!==a||e[14]!==n||e[15]!==u||e[16]!==g?(m=C=>{e:switch(C.type){case"text-start":l.current=new ou(u,g,a,n);break e;case"text-delta":if(!l.current){oe.error("Cell creation stream not found");return}l.current.stream(C);break e;case"text-end":case"finish":if(!l.current){oe.error("Cell creation stream not found");return}l.current.stop();break e;case"abort":case"error":case"tool-input-error":case"tool-output-error":oe.error("Error",C.type,{chunk:C});break e;case"start":case"start-step":case"finish-step":case"data-reasoning-signature":break e;case"message-metadata":case"tool-input-available":case"tool-output-available":case"reasoning-start":case"reasoning-delta":case"reasoning-end":case"file":case"source-document":case"source-url":case"tool-input-start":case"tool-input-delta":oe.debug(C.type,{chunk:C});break e;default:if(lu(C)){oe.debug("Data chunk",{chunk:C});break e}zr(C)}},e[13]=a,e[14]=n,e[15]=u,e[16]=g,e[17]=m):m=e[17];let _=m,E;return e[18]!==a||e[19]!==s||e[20]!==u||e[21]!==c||e[22]!==b||e[23]!==_||e[24]!==r||e[25]!==g?(E={createStagedCell:u,updateStagedCell:g,addStagedCell:a,removeStagedCell:r,clearStagedCells:s,deleteStagedCell:b,deleteAllStagedCells:c,onStream:_},e[18]=a,e[19]=s,e[20]=u,e[21]=c,e[22]=b,e[23]=_,e[24]=r,e[25]=g,e[26]=E):E=e[26],E}var ou=class{constructor(t,e,a,r){L(this,"createdCells",[]);L(this,"buffer","");L(this,"hasMarimoImport",!1);this.onCreateCell=t,this.onUpdateCell=e,this.addStagedCell=a,this.createNewCell=r}stream(t){let e=t.delta;this.buffer+=e;let a=nu(this.buffer);for(let[r,s]of a.entries())if(r{let{addStagedCell:a,createNewCell:r,store:s}=e;switch(t.type){case"update_cell":{let{position:n,code:o}=t,i=n.cellId;if(i){if(!o)throw new we("Code is required for update_cell","CODE_REQUIRED_FOR_UPDATE_CELL",!0,"Provide the new code to update the cell")}else throw new we("Cell ID is required for update_cell","CELL_ID_REQUIRED_FOR_UPDATE_CELL",!0,"Provide a cell ID to update");let l=s.get(Ge);this.validateCellIdExists(i,l);let d=this.getCellEditorView(i,l);Sa(i);let u=s.get(Zt).get(i);if((u==null?void 0:u.type)==="add_cell"){Ca(d,o);break}let p=d.state.doc.toString();a({cellId:i,edit:{type:"update_cell",previousCode:(u==null?void 0:u.previousCode)??p}}),Ca(d,o);break}case"add_cell":{let{position:n,code:o}=t,i="__end__",l=!1,d=jr.create(),u=s.get(Ge);switch(n.type){case"relative":{let p=n.cellId;if(!p)throw new we("Cell ID is required for add_cell with relative position","TOOL_ERROR",!0,"Provide a cell ID to add the cell before");if(n.before===void 0)throw new we("Before is required for add_cell with relative position","TOOL_ERROR",!0,`Provide a boolean value for before, true to add before cell ${p}, false to add after the cell`);this.validateCellIdExists(p,u),i=p,l=n.before;break}case"column_end":if(!n.columnIndex)throw new we("Column index is required for add_cell with column_end position","TOOL_ERROR",!0,"Provide a column index to add the cell at the end of");i={type:"__end__",columnId:this.getColumnId(n.columnIndex,u)};break;case"notebook_end":break}r({cellId:i,before:l,code:o,newCellId:d}),a({cellId:d,edit:{type:"add_cell"}}),Sa(d);break}case"delete_cell":{let{position:n}=t,o=n.cellId;if(!o)throw new we("Cell ID is required for delete_cell","CELL_ID_REQUIRED_FOR_DELETE_CELL",!0,"Provide a cell ID to delete");let i=s.get(Ge);this.validateCellIdExists(o,i),a({cellId:o,edit:{type:"delete_cell",previousCode:this.getCellEditorView(o,i).state.doc.toString()}}),Sa(o);break}}return{status:"success",next_steps:["If you need to perform more edits, call this tool again.","You should use the lint notebook tool to check for errors and lint issues. Fix them by editing the notebook.","You should use the run stale cells tool to run the cells that have been edited or newly added. This allows you to see the output of the cells and fix any errors."]}})}validateCellIdExists(t,e){if(!e.cellIds.getColumns().some(a=>a.idSet.has(t)))throw new we("Cell not found","CELL_NOT_FOUND",!1,"Check which cells exist in the notebook")}getColumnId(t,e){let a=e.cellIds.getColumns();if(t<0||t>=a.length)throw new we("Column index is out of range","COLUMN_INDEX_OUT_OF_RANGE",!0,"Choose a column index between 0 and the number of columns in the notebook (0-based)");return a[t].id}getCellEditorView(t,e){let a=e.cellHandles[t].current;if(!(a!=null&&a.editorView))throw new we("Cell editor not found","CELL_EDITOR_NOT_FOUND",!1,"Internal error, ask the user to report this error");return a.editorView}},pu=200,mu=3e4,hu={baseDescription:"Run cells in the current notebook that are stale. Stale cells are cells that have been edited or newly added. You can run this tool after editing the notebook or when requested. The output of the ran cells will be returned alongside metadata."},yn=Q({type:N("file"),url:k(),mediaType:k()}),fu=class{constructor(t){L(this,"name","run_stale_cells_tool");L(this,"description",hu);L(this,"schema",Q({}));L(this,"outputSchema",dn.extend({cellsToOutput:It(k(),Q({consoleOutput:k().optional(),cellOutput:k().optional(),consoleAttachments:Ve(yn).optional(),cellAttachments:Ve(yn).optional()}).nullable()).optional()}));L(this,"mode",["agent"]);L(this,"handler",async(t,e)=>{let{prepareForRun:a,sendRun:r,store:s}=e,n=s.get(Ge),o=ui(n);if(o.length===0)return{status:"success",message:"No stale cells found."};if(await Ki({cellIds:o,sendRun:r,prepareForRun:a,notebook:n}),!await this.waitForCellsToFinish(s,o,mu,this.postExecutionDelay))return{status:"success",message:"No output was returned because some cells have not finished executing"};let i=s.get(Ge),l=new Map,d="",u=!1;for(let g of o){let h=cn(g,i,{includeConsoleOutput:!0}),b,f,c=h.cellOutput,m=h.consoleOutputs,_=m&&m.length>0;if(!c&&!_){l.set(g,null);continue}c&&(b=this.formatOutputString(c),this.outputHasErrors(c)&&(u=!0)),_&&(f=m.map(E=>this.formatOutputString(E)).join(` +`),d+="Console output represents the stdout or stderr of the cell (eg. print statements).",m.some(E=>this.outputHasErrors(E))&&(u=!0)),l.set(g,{cellOutput:b,consoleOutput:f})}if(l.size===0)return{status:"success",message:"Stale cells have been run. No output was returned."};let p=["Review the output of the cells. The CellId is the key of the result object.",u?"There are errors in the cells. Please fix them by using the edit notebook tool and the given CellIds.":"You may edit the notebook further with the given CellIds."];return{status:"success",cellsToOutput:Object.fromEntries(l),message:d===""?void 0:d,next_steps:p}});this.postExecutionDelay=(t==null?void 0:t.postExecutionDelay)??pu}outputHasErrors(t){let{output:e}=t;return e.mimetype==="application/vnd.marimo+error"||e.mimetype==="application/vnd.marimo+traceback"}formatOutputString(t){let e="",{outputType:a,processedContent:r,imageUrl:s,output:n}=t;return a==="text"?(e+=`Output: +`,r?e+=r:typeof n.data=="string"?e+=n.data:e+=JSON.stringify(n.data)):a==="media"&&(e+=`Media Output: Contains ${n.mimetype} content`,s&&(e+=` +Image URL: ${s}`)),e}async waitForCellsToFinish(t,e,a,r){let s=o=>e.every(i=>{let l=o.cellRuntime[i];return(l==null?void 0:l.status)!=="running"&&(l==null?void 0:l.status)!=="queued"}),n=async()=>(r>0&&await new Promise(o=>setTimeout(o,r)),!0);if(s(t.get(Ge)))return await n();try{return await Promise.race([Wn(Ge,s),new Promise((o,i)=>setTimeout(()=>i(Error("timeout")),a))]),await n()}catch{return!1}}};function gu(t){let e=t.baseDescription;return t.whenToUse&&(e+=` + +## When to use: +- ${t.whenToUse.join(` +- `)}`),t.avoidIf&&(e+=` + +## Avoid if: +- ${t.avoidIf.join(` +- `)}`),t.prerequisites&&(e+=` + +## Prerequisites: +- ${t.prerequisites.join(` +- `)}`),t.sideEffects&&(e+=` + +## Side effects: +- ${t.sideEffects.join(` +- `)}`),t.additionalInfo&&(e+=` + +## Additional info: +- ${t.additionalInfo}`),e}var vn,Ft;function yu(t,e,a,r,s){var n={};return Object.keys(r).forEach(function(o){n[o]=r[o]}),n.enumerable=!!n.enumerable,n.configurable=!!n.configurable,("value"in n||n.initializer)&&(n.writable=!0),n=a.slice().reverse().reduce(function(o,i){return i(t,e,o)||o},n),s&&n.initializer!==void 0&&(n.value=n.initializer?n.initializer.call(s):void 0,n.initializer=void 0),n.initializer===void 0?(Object.defineProperty(t,e,n),null):n}const _r=new(vn=ei(),Ft=class{constructor(t=[]){L(this,"tools",new Map);this.tools=new Map(t.map(e=>[e.name,e]))}has(t){return this.tools.has(t)}getToolOrThrow(t){let e=this.tools.get(t);if(!e)throw Error(`Tool ${t} not found`);return e}async invoke(t,e,a){var i;let r=this.getToolOrThrow(t),s=r.handler,n=r.schema,o=r.outputSchema;try{let l=await n.safeParseAsync(e);if(l.error)throw new we(`Tool ${t} returned invalid input: ${Dr(l.error)}`,"INVALID_ARGUMENTS",!0,"Please check the arguments and try again.");let d=l.data,u=await s(d,a),p=await o.safeParseAsync(u);if(p.error){let g=Dr(p.error);throw Error(`Tool ${t} returned invalid output: ${g}`)}return{tool_name:t,result:p.data,error:null}}catch(l){return l instanceof we?{tool_name:t,result:null,error:l.toStructuredString()}:{tool_name:t,result:null,error:new we(l instanceof Error?l.message:String(l),"TOOL_ERROR",!1,"Check the error message and try again with valid arguments.",{args:e,errorType:((i=l==null?void 0:l.constructor)==null?void 0:i.name)??typeof l}).toStructuredString()}}}getToolSchemas(t){return[...this.tools.values()].filter(e=>e.mode.includes(t)).map(e=>({name:e.name,description:gu(e.description),parameters:Fr(e.schema),source:"frontend",mode:e.mode}))}},yu(Ft.prototype,"getToolSchemas",[vn],Object.getOwnPropertyDescriptor(Ft.prototype,"getToolSchemas"),Ft.prototype),Ft)([new cu,new fu]);function br(t,e){return new Promise(a=>{let r=new FileReader;r.readAsDataURL(t),r.onload=s=>{var n;if((n=s.target)!=null&&n.result){let o=s.target.result;a(e==="base64"?o.slice(o.indexOf(",")+1):o)}}})}function vu(t){return Promise.all(t.map(e=>br(e,"base64").then(a=>[e.name,a])))}function _u(t){return t.length>50?`${t.slice(0,50)}...`:t}async function bu(t){return await Promise.all(t.map(async e=>({type:"file",mediaType:e.type,filename:e.name,url:await br(e,"dataUrl")})))}function xu(t){if(t.length===0)return!1;let e=t.at(-1);if(!e||e.role!=="assistant"||!e.parts)return!1;let a=e.parts;return a.length===0?!1:a[a.length-1].type==="reasoning"}function wu(t){return t.map(e=>e.type==="text"?e.text:"").join(` +`)}async function _n(t){let e=await tu({input:wu(t.flatMap(r=>r.parts))});function a(r,s){return s?{...r,parts:[...r.parts,...e.attachments]}:r}return{...e.body,uiMessages:t.map((r,s)=>a(r,s===t.length-1))}}async function bn({invokeAiTool:t,addToolOutput:e,toolCall:a,toolContext:r}){try{if(_r.has(a.toolName)){let s=await _r.invoke(a.toolName,a.input,r);e({tool:a.toolName,toolCallId:a.toolCallId,output:s.result||s.error})}else{let s=await t({toolName:a.toolName,arguments:a.input??{}});e({tool:a.toolName,toolCallId:a.toolCallId,output:s.result||s.error})}}catch(s){oe.error("Tool call failed:",s),e({tool:a.toolName,toolCallId:a.toolCallId,output:`Error: ${s instanceof Error?s.message:String(s)}`})}}function ku(t){var i;if(t.length===0)return!1;let e=t[t.length-1],a=e.parts;if(a.length===0||e.role!=="assistant")return!1;let r=a.filter(l=>l.type.startsWith("tool-"));if(r.length===0)return!1;let s=r.every(l=>l.state==="output-available"),n=a[a.length-1],o=n.type==="text"&&((i=n.text)==null?void 0:i.trim().length)>0;return oe.warn("All tool calls completed: %s",s),s&&!o}function Cu(t){return _i.define({combine:e=>e[0]??t})}var xn=Cu({}),xr=Yt.define(),ba=Yt.define(),Eu=50,wr=Jt.define({create(){return{prompts:[],navigationIndex:-1,originalText:""}},update(t,e){var r,s;let a={...t};e.docChanged&&t.navigationIndex!==-1&&(e.effects.some(n=>n.is(ba)||n.is(xr))||(a.navigationIndex=-1,a.originalText=""));for(let n of e.effects)if(n.is(xr)){let o=n.value.trim();o&&(a.prompts=[o,...t.prompts.filter(i=>i!==o)].slice(0,Eu),(s=(r=e.state.facet(xn)).save)==null||s.call(r,a.prompts)),a.navigationIndex=-1,a.originalText=""}else n.is(ba)&&(a.navigationIndex=n.value.index,a.originalText=n.value.originalText);return a}}),Tu=t=>{let e=t.state.field(wr),a=t.state.doc;if(e.prompts.length===0)return!1;let r,s=e.originalText;if(e.navigationIndex===-1){if(a.length>0)return!1;r=0,s=a.toString()}else if(r=Math.min(e.navigationIndex+1,e.prompts.length-1),r===e.navigationIndex)return!1;let n=e.prompts[r];return t.dispatch({changes:{from:0,to:t.state.doc.length,insert:n},effects:ba.of({index:r,originalText:s})}),!0},Iu=t=>{let e=t.state.field(wr);if(e.navigationIndex===-1)return!1;let a,r;return e.navigationIndex===0?(a=e.originalText,r=-1):(r=e.navigationIndex-1,a=e.prompts[r]??""),t.dispatch({changes:{from:0,to:t.state.doc.length,insert:a},effects:ba.of({index:r,originalText:e.originalText})}),!0};const wn=t=>{let e=t.state.doc.toString();return e.trim()?(t.dispatch({effects:xr.of(e)}),!0):!1};function Su(t={}){let{storage:e,defaultKeymap:a=!0}=t,r=[wr.init(()=>{var s;return{prompts:((s=e==null?void 0:e.load)==null?void 0:s.call(e))??[],navigationIndex:-1,originalText:""}}),xn.of(e??{})];return a&&r.push(Kt.of([{key:"ArrowUp",run:Tu},{key:"ArrowDown",run:Iu}])),r}const kr=Yt.define(),Ke=Jt.define({create(){return new Map},update(t,e){let a=!1,r=t;for(let s of e.effects)if(s.is(kr)){a||(a=(r=new Map(t),!0));for(let[n,o]of s.value)r.set(n,o)}return r}}),Ou=Jt.define({create(){return{onResourceClick:void 0,onResourceMouseOver:void 0,onResourceMouseOut:void 0,onPromptSubmit:void 0}},update(t){return t}}),Au=Yt.define();Jt.define({create(){return new Map},update(t,e){let a=!1,r=t;for(let s of e.effects)if(s.is(Au)){a||(a=(r=new Map(t),!0));for(let[n,o]of s.value)r.set(n,o)}return r}});const Ru=(t,e)=>async a=>{let r=a.matchBefore(/@(\w+)?/);if(!r||r.from===r.to&&!a.explicit)return null;let s=await t();if(s.length===0)return null;let n=kr.of(new Map(s.map(i=>[i.uri,i])));a.view&&a.view.dispatch({effects:n});let o=s.map(i=>({label:`@${i.name}`,displayLabel:i.name,detail:i.uri,info:i.description||void 0,type:i.mimeType?"constant":"variable",boost:i.description?100:0,...e==null?void 0:e(i),apply:(l,d,u,p)=>{l.dispatch({changes:{from:u,to:p,insert:`@${i.uri} `}})}}));return{from:r.from,options:o}},Nu=/@[\w-]+:\/\/(?!\/)[^\s]+/;function st(t){return t.matchAll(new RegExp(Nu.source,"g"))}var Mu=class extends Br{constructor(e,a){super();L(this,"resource");L(this,"view");this.resource=e,this.view=a}eq(e){return e.resource.uri===this.resource.uri}toDOM(){let e=document.createElement("span");e.className="cm-resource-widget",e.textContent=`@${this.resource.name}`;let a=this.view.state.field(Ou,!1),r=a==null?void 0:a.onResourceClick,s=a==null?void 0:a.onResourceMouseOver,n=a==null?void 0:a.onResourceMouseOut;return r&&(e.style.cursor="pointer",e.addEventListener("click",o=>{o.preventDefault(),o.stopPropagation(),r(this.resource)})),s&&e.addEventListener("mouseover",o=>{o.preventDefault(),o.stopPropagation(),s(this.resource)}),n&&e.addEventListener("mouseout",o=>{o.preventDefault(),o.stopPropagation(),n(this.resource)}),e}},Pu=class extends Br{constructor(e,a){super();L(this,"uri");L(this,"view");this.uri=e,this.view=a}eq(e){return e.uri===this.uri}toDOM(){let e=document.createElement("span");return e.className="cm-not-found-resource-widget",e.textContent=`@${this.uri.split("://")[1]??this.uri}`,e}};function kn(t){let e=t.state.field(Ke),a=[];for(let{from:r,to:s}of t.visibleRanges){let n=t.state.doc.sliceString(r,s);for(let o of st(n)){let i=r+o.index,l=o[0].slice(1),d=e.get(l);d?a.push(Ta.replace({widget:new Mu(d,t)}).range(i,i+o[0].length)):a.push(Ta.replace({widget:new Pu(l,t)}).range(i,i+o[0].length))}}return Ta.set(a)}const ju=xi.fromClass(class{constructor(t){L(this,"decorations");this.decorations=kn(t)}update(t){(t.docChanged||t.viewportChanged||t.transactions.some(e=>e.effects.some(a=>a.is(kr))))&&(this.decorations=kn(t.view))}},{decorations:t=>t.decorations});function Lu(t){let e=document.createElement("div");e.className="cm-tooltip-cursor";let a=document.createElement("div");if(a.className="cm-tooltip-cursor-title",a.textContent=`${t.name} (${t.uri})`,e.appendChild(a),t.description){let r=document.createElement("div");r.className="cm-tooltip-cursor-description",r.textContent=t.description,e.appendChild(r)}if(t.mimeType){let r=document.createElement("div");r.className="cm-tooltip-cursor-mimetype",r.textContent=t.mimeType,e.appendChild(r)}return{dom:e}}function $u(t,e,a,r=0){for(let s of st(t)){let n=r+s.index,o=n+s[0].length;if(e>=n&&e<=o){let i=s[0].slice(1),l=a.get(i);if(l)return{resource:l,start:n,end:o}}}return null}function Du(t){return wi((e,a)=>{let{from:r,text:s}=e.state.doc.lineAt(a),n=$u(s,a,e.state.field(Ke),r);return n?{pos:n.start,end:n.end,above:!0,create(){return(t.createTooltip??Lu)(n.resource)}}:null})}function Zu(t,e){let a=t.field(Ke),r=t.doc,s=r.lineAt(e),n=r.sliceString(s.from,s.to),o=Array.from(st(n));if(o.length===0)return null;for(let i of o){let l=s.from+i.index,d=l+i[0].length,u=i[0].slice(1);if(e===d&&a.has(u))return{from:l,to:d,uri:u}}return null}function Fu(t,e){let a=t.field(Ke),r=t.doc,s=r.lineAt(e).to,n=r.sliceString(e,s),o=Array.from(st(n));if(o.length===0)return null;let i=o[0];if(!i||i.index!==0)return null;let l=e,d=e+i[0].length,u=i[0].slice(1);return a.has(u)?{from:l,to:d,uri:u}:null}function Cn(t,e){let a=t.field(Ke),r=t.doc,s=r.lineAt(e),n=r.sliceString(s.from,s.to),o=Array.from(st(n));for(let i of o){let l=s.from+i.index,d=l+i[0].length,u=i[0].slice(1);if(e>l&&eu?i=u:e===u&&(i=d))}return i}function Uu(t,e){let a=t.field(Ke),r=t.doc,s=r.lineAt(e),n=r.sliceString(s.from,s.to),o=Array.from(st(n));for(let i of o){let l=s.from+i.index,d=l+i[0].length,u=i[0].slice(1);if(a.has(u)&&l>=e){if(e{var r;let e=t.annotation(bi.userEvent);if(!e)return t;let a=t.startState.selection.main;if(!a.empty)return t;if(e==="input.type"||e.startsWith("input")){if(t.changes.empty)return t;let s=t.startState.field(Ke),n=t.startState.doc,o=!1,i=0,l=[];if(t.changes.iterChanges((d,u,p,g,h)=>{let b=h.toString(),f=d;if(/^\s+$/.test(b)){l.push({from:d,to:u,insert:b});return}let c=n.lineAt(f),m=n.sliceString(c.from,c.to),_=Array.from(st(m)),E=!1,C=!1;for(let P of _){let D=c.from+P.index,M=D+P[0].length,H=P[0].slice(1);if(s.has(H)){if(f===D){let j=f>0?n.sliceString(f-1,f):"";j!==""&&j!==" "&&j!==` +`&&j!==" "&&(E=!0)}if(f===M){let j=fi.from?i.from:zu(t.startState,s)}else if(n>s){let i=Cn(t.startState,s);o=i&&s{}};function Ju(t){let{language:e,store:a,onAddFiles:r}=t;return[e.data.of({autocomplete:Ru(async()=>{let s=mt(a).getAllItems();return s.length===0?Bu:s},s=>{var n;return s.type===En?Wu:((n=mt(a).getProvider(s.type))==null?void 0:n.formatCompletion(s))||{}})}),Vr.high(Kt.of([{key:"Tab",run:s=>Ei(s)}])),mn.of({addAttachment:s=>r==null?void 0:r([s])}),...r?[e.data.of({autocomplete:Qd().createCompletionSource()})]:[],ju,Vu,Ke.init(()=>{let s=mt(a).getAllItems();return new Map(s.map(n=>[n.uri,n]))}),qu,Du({createTooltip:s=>{let n=mt(a).getProvider(s.type);if(!n)return oe.warn("No provider found for resource",s),zt(s.description||s.name);let o=n.formatCompletion(s),i=s.description||s.name;if(!(o!=null&&o.info))return zt(i);if(typeof o.info=="string")return zt(o.info);let l=o.info(o);return l?"dom"in l?{dom:l.dom}:"then"in l?(oe.warn("info is a promise. This is not supported",l),zt(i)):{dom:l}:zt(i)}})]}function zt(t){let e=document.createElement("div");return e.innerHTML=t,{dom:e}}var Cr=Ea(),O=ka(yi(),1);const Tn=t=>{let{handleAcceptCompletion:e,handleDeclineCompletion:a,isLoading:r,hasCompletion:s}=t;return n=>{let o=fi()?n.metaKey:n.ctrlKey;o&&n.key==="Enter"&&!r&&s&&e(),(n.key==="Delete"||n.key==="Backspace")&&o&&n.shiftKey&&(a(),n.preventDefault(),n.stopPropagation())}},Ku=t=>{let e=(0,Cr.c)(9),{isLoading:a,onAccept:r,onDecline:s,runCell:n}=t,o;e[0]!==a||e[1]!==r||e[2]!==n?(o=(0,O.jsx)(In,{isLoading:a,onAccept:r,size:"xs",runCell:n}),e[0]=a,e[1]=r,e[2]=n,e[3]=o):o=e[3];let i;e[4]===s?i=e[5]:(i=(0,O.jsx)(Sn,{onDecline:s,size:"xs"}),e[4]=s,e[5]=i);let l;return e[6]!==o||e[7]!==i?(l=(0,O.jsxs)(O.Fragment,{children:[o,i]}),e[6]=o,e[7]=i,e[8]=l):l=e[8],l},In=t=>{let e=(0,Cr.c)(33),{isLoading:a,onAccept:r,multipleCompletions:s,size:n,buttonStyles:o,acceptShortcut:i,runCell:l,playButtonStyles:d,borderless:u}=t,p=s===void 0?!1:s,g=n===void 0?"sm":n,h=u===void 0?!1:u,b;e[0]!==r||e[1]!==l?(b=()=>{r(),l&&l()},e[0]=r,e[1]=l,e[2]=b):b=e[2];let f=b,c=p?"Accept all":"Accept";if(l){let C=`h-6 text-(--grass-11) bg-(--grass-3)/60 + hover:bg-(--grass-3) dark:bg-(--grass-4)/80 dark:hover:bg-(--grass-3) font-semibold + active:bg-(--grass-5) dark:active:bg-(--grass-4) + border-(--green-6) border hover:shadow-xs rounded-r-none ${h&&"border-none rounded-md rounded-r-none"} ${o}`,I;e[3]===i?I=e[4]:(I=i&&(0,O.jsx)(Oa,{className:"ml-1 inline",shortcut:i}),e[3]=i,e[4]=I);let P;e[5]!==a||e[6]!==r||e[7]!==g||e[8]!==C||e[9]!==I||e[10]!==c?(P=(0,O.jsxs)(Qe,{variant:"text",size:g,disabled:a,onClick:r,className:C,children:[c,I]}),e[5]=a,e[6]=r,e[7]=g,e[8]=C,e[9]=I,e[10]=c,e[11]=P):P=e[11];let D=p?"Accept and run all cells":"Accept and run cell",M=`h-6 text-(--grass-11) bg-(--grass-3)/60 + hover:bg-(--grass-3) dark:bg-(--grass-4)/80 dark:hover:bg-(--grass-3) font-semibold + active:bg-(--grass-5) dark:active:bg-(--grass-4) + border-(--green-6) border hover:shadow-xs rounded-l-none px-1.5 ${h&&"border-0 border-l"} ${d}`,H;e[12]===Symbol.for("react.memo_cache_sentinel")?(H=(0,O.jsx)(Di,{className:"h-2.5 w-2.5"}),e[12]=H):H=e[12];let j;e[13]!==f||e[14]!==a||e[15]!==g||e[16]!==M?(j=(0,O.jsx)(Qe,{variant:"text",size:g,disabled:a,onClick:f,className:M,children:H}),e[13]=f,e[14]=a,e[15]=g,e[16]=M,e[17]=j):j=e[17];let F;e[18]!==j||e[19]!==D?(F=(0,O.jsx)(Bi,{content:D,children:j}),e[18]=j,e[19]=D,e[20]=F):F=e[20];let K;return e[21]!==F||e[22]!==P?(K=(0,O.jsxs)("div",{className:"flex",children:[P,F]}),e[21]=F,e[22]=P,e[23]=K):K=e[23],K}let m=`h-6 text-(--grass-11) bg-(--grass-3)/60 + hover:bg-(--grass-3) dark:bg-(--grass-4)/80 dark:hover:bg-(--grass-3) font-semibold + active:bg-(--grass-5) dark:active:bg-(--grass-4) + border-(--green-6) border hover:shadow-xs rounded px-3 ${o}`,_;e[24]===i?_=e[25]:(_=i&&(0,O.jsx)(Oa,{className:"ml-1 inline",shortcut:i}),e[24]=i,e[25]=_);let E;return e[26]!==a||e[27]!==r||e[28]!==g||e[29]!==m||e[30]!==_||e[31]!==c?(E=(0,O.jsxs)(Qe,{variant:"text",size:g,disabled:a,onClick:r,className:m,children:[c,_]}),e[26]=a,e[27]=r,e[28]=g,e[29]=m,e[30]=_,e[31]=c,e[32]=E):E=e[32],E},Sn=t=>{let e=(0,Cr.c)(8),{onDecline:a,multipleCompletions:r,size:s,className:n,declineShortcut:o,borderless:i}=t,l=r===void 0?!1:r,d=s===void 0?"sm":s,u=`h-6 text-(--red-10) bg-(--red-3)/60 hover:bg-(--red-3) + dark:bg-(--red-4)/80 dark:hover:bg-(--red-3) rounded px-3 font-semibold + active:bg-(--red-5) dark:active:bg-(--red-4) + border-(--red-6) border hover:shadow-xs ${(i===void 0?!1:i)&&"border-none rounded-md"} ${n}`,p=l&&" all",g;e[0]===o?g=e[1]:(g=o&&(0,O.jsx)(Oa,{className:"ml-1 inline",shortcut:o}),e[0]=o,e[1]=g);let h;return e[2]!==a||e[3]!==d||e[4]!==u||e[5]!==p||e[6]!==g?(h=(0,O.jsxs)(Qe,{variant:"text",size:d,onClick:a,className:u,children:["Reject",p,g]}),e[2]=a,e[3]=d,e[4]=u,e[5]=p,e[6]=g,e[7]=h):h=e[7],h};var Yu=class extends er{constructor(t,e){super(t),this.onChunkReceived=e}processResponseStream(t){let e=this.onChunkReceived;return super.processResponseStream(t).pipeThrough(new TransformStream({async transform(a,r){e(a),r.enqueue(a)}}))}},On=Ea(),Hu=ti("marimo:ai-language","python",ai),An="marimo:ai-prompt-history",Rn=new Qn(Ve(k()),()=>[]);const Gu=t=>{let e=(0,On.c)(82),{onClose:a}=t,r=Rr(),[s,n]=(0,A.useState)(""),{deleteAllStagedCells:o,clearStagedCells:i,onStream:l,addStagedCell:d}=gn(r),[u,p]=qn(Hu),g=gi(),{invokeAiTool:h,sendRun:b}=Si(),f=Jn(Zt),c=(0,A.useRef)(null),{createNewCell:m,prepareForRun:_}=Lr(),E;e[0]!==d||e[1]!==m||e[2]!==_||e[3]!==b||e[4]!==r?(E={store:r,addStagedCell:d,createNewCell:m,prepareForRun:_,sendRun:b},e[0]=d,e[1]=m,e[2]=_,e[3]=b,e[4]=r,e[5]=E):E=e[5];let C=E,I;if(e[6]!==u||e[7]!==l||e[8]!==g){let Ee;e[10]===u?Ee=e[11]:(Ee=async qt=>{let Fn=await _n(qt.messages);return{body:{...qt,...Fn,code:"",prompt:"",language:u}}},e[10]=u,e[11]=Ee);let He;e[12]===l?He=e[13]:(He=qt=>{l(qt)},e[12]=l,e[13]=He),I=new Yu({api:g.getAiURL("completion").toString(),headers:g.headers(),prepareSendMessagesRequest:Ee},He),e[6]=u,e[7]=l,e[8]=g,e[9]=I}else I=e[9];let{sendMessage:P,stop:D,status:M,addToolOutput:H}=ln({experimental_throttle:100,transport:I,onToolCall:async Ee=>{let{toolCall:He}=Ee;await bn({invokeAiTool:h,addToolOutput:j,toolCall:{toolName:He.toolName,toolCallId:He.toolCallId,input:He.input},toolContext:C})},onError:Qu}),j=H,F=M==="streaming"||M==="submitted",K=f.size>0,X;e[14]!==o||e[15]!==s||e[16]!==F||e[17]!==P?(X=()=>{var Ee;F||((Ee=c.current)!=null&&Ee.view&&wn(c.current.view),o(),P({text:s}))},e[14]=o,e[15]=s,e[16]=F,e[17]=P,e[18]=X):X=e[18];let W=X,J;e[19]===Symbol.for("react.memo_cache_sentinel")?(J=(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(ao,{className:"size-4 mr-2"}),"Python"]}),e[19]=J):J=e[19];let te=J,ie;e[20]===Symbol.for("react.memo_cache_sentinel")?(ie=(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Gn,{className:"size-4 mr-2"}),"SQL"]}),e[20]=ie):ie=e[20];let ae=ie,Ye=u==="python"?te:ae,ke;e[21]===Symbol.for("react.memo_cache_sentinel")?(ke=(0,O.jsx)(Ni,{className:"ml-1 h-3.5 w-3.5 text-muted-foreground/70"}),e[21]=ke):ke=e[21];let ye;e[22]===Ye?ye=e[23]:(ye=(0,O.jsx)(ji,{asChild:!0,children:(0,O.jsxs)(Qe,{variant:"text",className:"ml-2",size:"xs","data-testid":"language-button",children:[Ye,ke]})}),e[22]=Ye,e[23]=ye);let be,De;e[24]===Symbol.for("react.memo_cache_sentinel")?(be=(0,O.jsx)("div",{className:"px-2 py-1 font-semibold",children:"Select language"}),De=(0,O.jsx)(Pi,{}),e[24]=be,e[25]=De):(be=e[24],De=e[25]);let Ne;e[26]===p?Ne=e[27]:(Ne=(0,O.jsx)(Jr,{onClick:()=>p("python"),children:te}),e[26]=p,e[27]=Ne);let Ce;e[28]===p?Ce=e[29]:(Ce=(0,O.jsx)(Jr,{onClick:()=>p("sql"),children:ae}),e[28]=p,e[29]=Ce);let Ze;e[30]!==Ne||e[31]!==Ce?(Ze=(0,O.jsxs)(Li,{align:"center",children:[be,De,Ne,Ce]}),e[30]=Ne,e[31]=Ce,e[32]=Ze):Ze=e[32];let nt;e[33]!==ye||e[34]!==Ze?(nt=(0,O.jsxs)($i,{modal:!1,children:[ye,Ze]}),e[33]=ye,e[34]=Ze,e[35]=nt):nt=e[35];let Tt=nt,ht;e[36]!==i||e[37]!==a?(ht=()=>{i(),a()},e[36]=i,e[37]=a,e[38]=ht):ht=e[38];let Fe=ht,it;e[39]===o?it=e[40]:(it=()=>{o()},e[39]=o,e[40]=it);let B=it,U;e[41]===Symbol.for("react.memo_cache_sentinel")?(U=(0,O.jsx)(Fi,{className:"size-4 text-(--blue-11) mr-2"}),e[41]=U):U=e[41];let G;e[42]!==o||e[43]!==a?(G=()=>{o(),a()},e[42]=o,e[43]=a,e[44]=G):G=e[44];let V;e[45]===Symbol.for("react.memo_cache_sentinel")?(V=Ee=>{n(Ee)},e[45]=V):V=e[45];let me;e[46]!==Fe||e[47]!==B||e[48]!==K||e[49]!==F?(me=Tn({handleAcceptCompletion:Fe,handleDeclineCompletion:B,isLoading:F,hasCompletion:K}),e[46]=Fe,e[47]=B,e[48]=K,e[49]=F,e[50]=me):me=e[50];let he;e[51]!==s||e[52]!==W||e[53]!==G||e[54]!==me?(he=(0,O.jsx)(Nn,{inputRef:c,onClose:G,value:s,onChange:V,onSubmit:W,onKeyDown:me}),e[51]=s,e[52]=W,e[53]=G,e[54]=me,e[55]=he):he=e[55];let re;e[56]!==F||e[57]!==D?(re=F&&(0,O.jsxs)(Qe,{"data-testid":"stop-completion-button",variant:"text",size:"sm",className:"mb-0",onClick:D,children:[(0,O.jsx)(Zi,{className:"animate-spin mr-1",size:14}),"Stop"]}),e[56]=F,e[57]=D,e[58]=re):re=e[58];let ne;e[59]===Symbol.for("react.memo_cache_sentinel")?(ne=(0,O.jsx)(so,{className:"size-4"}),e[59]=ne):ne=e[59];let ce;e[60]===W?ce=e[61]:(ce=(0,O.jsx)(Qe,{variant:"text",size:"sm",onClick:W,title:"Submit",children:ne}),e[60]=W,e[61]=ce);let ot;e[62]===Symbol.for("react.memo_cache_sentinel")?(ot=(0,O.jsx)(Ri,{className:"size-4"}),e[62]=ot):ot=e[62];let ze;e[63]===a?ze=e[64]:(ze=(0,O.jsx)(Qe,{variant:"text",size:"sm",className:"mb-0 px-1",onClick:a,children:ot}),e[63]=a,e[64]=ze);let lt;e[65]!==he||e[66]!==re||e[67]!==ce||e[68]!==ze?(lt=(0,O.jsxs)("div",{className:"flex items-center px-3",children:[U,he,re,ce,ze]}),e[65]=he,e[66]=re,e[67]=ce,e[68]=ze,e[69]=lt):lt=e[69];let le=lt,fe;e[70]===Symbol.for("react.memo_cache_sentinel")?(fe=Ur("flex flex-col w-full py-2"),e[70]=fe):fe=e[70];let Me;e[71]===K?Me=e[72]:(Me=!K&&(0,O.jsx)("span",{className:"text-xs text-muted-foreground px-3 flex flex-col gap-1 mt-2",children:(0,O.jsxs)("span",{children:["You can mention"," ",(0,O.jsx)("span",{className:"text-(--cyan-11)",children:"@dataframe"})," or"," ",(0,O.jsx)("span",{className:"text-(--cyan-11)",children:"@sql_table"})," to pull additional context such as column names. Code from other cells is automatically included."]})}),e[71]=K,e[72]=Me);let ft;e[73]===Symbol.for("react.memo_cache_sentinel")?(ft=(0,O.jsx)(Ai,{triggerClassName:"h-7 text-xs max-w-64",iconSize:"small",forRole:"edit"}),e[73]=ft):ft=e[73];let Pe;e[74]===Tt?Pe=e[75]:(Pe=(0,O.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[Tt,ft]}),e[74]=Tt,e[75]=Pe);let gt;e[76]!==Me||e[77]!==Pe?(gt=(0,O.jsxs)("div",{className:"flex flex-row justify-between -mt-1 ml-1 mr-3",children:[Me,Pe]}),e[76]=Me,e[77]=Pe,e[78]=gt):gt=e[78];let Vt;return e[79]!==le||e[80]!==gt?(Vt=(0,O.jsxs)("div",{className:fe,children:[le,gt]}),e[79]=le,e[80]=gt,e[81]=Vt):Vt=e[81],Vt},Nn=t=>{let e=(0,On.c)(35),{value:a,placeholder:r,inputRef:s,className:n,onChange:o,onSubmit:i,onKeyDown:l,onClose:d,onAddFiles:u,additionalCompletions:p,maxHeight:g}=t,h=i,b=d,f=Rr(),{theme:c}=qi(),m;e[0]===p?m=e[1]:(m=ie=>p?ru([p.triggerCompletionRegex],p.completions)(ie):null,e[0]=p,e[1]=m);let _=Bn(m),E,C,I,P;if(e[2]!==_||e[3]!==u||e[4]!==f){let ie=Vi();e[9]===Symbol.for("react.memo_cache_sentinel")?(E=Ii({}),e[9]=E):E=e[9],C=ie,I=Ju({language:ie.language,store:f,onAddFiles:u}),P=ie.language.data.of({autocomplete:_}),e[2]=_,e[3]=u,e[4]=f,e[5]=E,e[6]=C,e[7]=I,e[8]=P}else E=e[5],C=e[6],I=e[7],P=e[8];let D;e[10]===Symbol.for("react.memo_cache_sentinel")?(D=Su({storage:{load:Xu,save:ec}}),e[10]=D):D=e[10];let M;e[11]===Symbol.for("react.memo_cache_sentinel")?(M=eo(),e[11]=M):M=e[11];let H;e[12]===h?H=e[13]:(H=Vr.highest(Kt.of([{preventDefault:!0,stopPropagation:!0,any:(ie,ae)=>{let Ye=ae.metaKey||ae.ctrlKey||ae.shiftKey;if(ae.key==="Enter"&&!Ye)return h(ae,ie.state.doc.toString()),ae.preventDefault(),ae.stopPropagation(),!0;if(ae.key==="Enter"&&ae.shiftKey){let ke=ie.state.selection.main.from;return ie.dispatch({changes:{from:ke,to:ke,insert:` +`},selection:{anchor:ke+1,head:ke+1}}),ae.preventDefault(),ae.stopPropagation(),!0}return!1}}])),e[12]=h,e[13]=H);let j;e[14]===b?j=e[15]:(j=Kt.of([{key:"Escape",preventDefault:!0,stopPropagation:!0,run:()=>(b(),!0)}]),e[14]=b,e[15]=j);let F;e[16]!==E||e[17]!==C||e[18]!==I||e[19]!==P||e[20]!==H||e[21]!==j?(F=[E,C,I,P,D,qr.lineWrapping,M,H,j],e[16]=E,e[17]=C,e[18]=I,e[19]=P,e[20]=H,e[21]=j,e[22]=F):F=e[22];let K=F,X;e[23]===n?X=e[24]:(X=Ur("flex-1 font-sans overflow-auto my-1",n),e[23]=n,e[24]=X);let W=c==="dark"?"dark":"light",J=r||"Generate with AI, @ to include context",te;return e[25]!==K||e[26]!==s||e[27]!==g||e[28]!==o||e[29]!==l||e[30]!==X||e[31]!==W||e[32]!==J||e[33]!==a?(te=(0,O.jsx)(to,{ref:s,className:X,width:"100%",maxHeight:g,value:a,basicSetup:!1,extensions:K,onChange:o,onKeyDown:l,theme:W,placeholder:J}),e[25]=K,e[26]=s,e[27]=g,e[28]=o,e[29]=l,e[30]=X,e[31]=W,e[32]=J,e[33]=a,e[34]=te):te=e[34],te};function Qu(t){Kr({title:"Generate with AI failed",description:Ji(t)})}function Xu(){return Rn.get(An)}function ec(t){return Rn.set(An,t)}export{mt as C,Xl as D,er as E,no as O,eu as S,Ud as T,Zt as _,Sn as a,Xd as b,_n as c,bn as d,ku as f,_r as g,vu as h,Ku as i,ro as k,bu as l,br as m,Nn as n,Tn as o,xu as p,In as r,wn as s,Gu as t,_u as u,fn as v,ln as w,su as x,gn as y}; diff --git a/docs/assets/add-database-form-0DEJX5nr.js b/docs/assets/add-database-form-0DEJX5nr.js new file mode 100644 index 0000000..e3a8810 --- /dev/null +++ b/docs/assets/add-database-form-0DEJX5nr.js @@ -0,0 +1,111 @@ +var Ue=Object.defineProperty;var Ke=(t,e,s)=>e in t?Ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var ne=(t,e,s)=>Ke(t,typeof e!="symbol"?e+"":e,s);import{s as me}from"./chunk-LvLJmgfZ.js";import{t as We}from"./react-BGmjiNul.js";import{ft as He,w as Me,wn as h}from"./cells-CmJW_FeD.js";import{D as oe,P as p,R as d,T as v,_ as ue,i as Qe,k as m,m as Ge}from"./zod-Cg4WLWh2.js";import{t as be}from"./compiler-runtime-DeeZ7FnK.js";import{S as Ve}from"./_Uint8Array-BGESiCQL.js";import{r as re}from"./useLifecycle-CmDXEyIC.js";import{r as ze,t as Je}from"./_baseEach-BH6a1vAB.js";import{f as Ye}from"./hotkeys-uKX61F1_.js";import{t as Xe}from"./jsx-runtime-DN_bIXfG.js";import{t as ie}from"./button-B8cGZzP5.js";import{t as fe}from"./cn-C1rgT0yh.js";import{c as Ze,i as et,n as tt,r as st,s as nt,t as ot}from"./select-D9lTzMzP.js";import{t as rt}from"./circle-plus-D1IRnTdM.js";import{a as ae,c as ge,o as it,p as at,r as ct,t as lt}from"./dropdown-menu-BP4_BZLr.js";import{n as dt}from"./DeferredRequestRegistry-B3BENoUa.js";import{o as ht,r as pt}from"./input-Bkl2Yfmh.js";import{a as mt,c as ut,d as bt,g as ft,l as gt,o as yt,p as St,s as _t,u as wt}from"./textarea-DzIuH-E_.js";import{a as xt,c as $t,l as kt,n as Ct,r as At,t as jt}from"./dialog-CF5DtF1E.js";import{n as vt}from"./ImperativeModal-BZvZlZQZ.js";import{t as Rt}from"./links-DNmjkr65.js";import{n as It}from"./useAsyncData-Dj1oqsrZ.js";import{o as Tt}from"./focus-KGgBDCvb.js";import{o as Dt,t as qt,u as i}from"./form-DyJ8-Zz6.js";import{t as Lt}from"./request-registry-CxxnIU-g.js";import{n as Pt,t as Nt}from"./write-secret-modal-BL-FoIag.js";function Ft(t,e,s,o){for(var n=-1,a=t==null?0:t.length;++ns>=0&&s<=65535,{message:"Port must be between 0 and 65535"});return t===void 0?e:e.default(t)}function ye(){return v().default(!1).describe(i.of({label:"Read Only"}))}const Se=p({type:m("postgres"),host:x(),port:C(5432).optional(),database:w(),username:k(),password:$(),ssl:v().default(!1).describe(i.of({label:"Use SSL"}))}).describe(i.of({direction:"two-columns"})),_e=p({type:m("mysql"),host:x(),port:C(3306),database:w(),username:k(),password:$(),ssl:v().default(!1).describe(i.of({label:"Use SSL"}))}).describe(i.of({direction:"two-columns"})),we=p({type:m("sqlite"),database:w().describe(i.of({label:"Database Path"}))}).describe(i.of({direction:"two-columns"})),xe=p({type:m("duckdb"),database:w().describe(i.of({label:"Database Path"})),read_only:ye()}).describe(i.of({direction:"two-columns"})),$e=p({type:m("motherduck"),database:w().default("my_db").describe(i.of({label:"Database Name"})),token:ce()}).describe(i.of({direction:"two-columns"})),ke=p({type:m("snowflake"),account:d().nonempty().describe(i.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:d().optional().describe(i.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:w(),schema:d().optional().describe(i.of({label:"Schema",optionRegex:".*snowflake.*"})),username:k(),password:$(),role:d().optional().describe(i.of({label:"Role"}))}).describe(i.of({direction:"two-columns"})),Ce=p({type:m("bigquery"),project:d().nonempty().describe(i.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:d().nonempty().describe(i.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:d().describe(i.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(i.of({direction:"two-columns"})),Ae=p({type:m("clickhouse_connect"),host:x(),port:C(8123).optional(),username:k(),password:$(),secure:v().default(!1).describe(i.of({label:"Use HTTPs"}))}).describe(i.of({direction:"two-columns"})),je=p({type:m("timeplus"),host:x().default("localhost"),port:C(8123).optional(),username:k().default("default"),password:$().default("")}).describe(i.of({direction:"two-columns"})),ve=p({type:m("chdb"),database:w().describe(i.of({label:"Database Path"})),read_only:ye()}).describe(i.of({direction:"two-columns"})),Re=p({type:m("trino"),host:x(),port:C(8080),database:w(),schema:Wt().optional(),username:k(),password:$(),async_support:v().default(!1).describe(i.of({label:"Async Support"}))}).describe(i.of({direction:"two-columns"})),Ie=p({type:m("iceberg"),name:d().describe(i.of({label:"Catalog Name"})),catalog:oe("type",[p({type:m("REST"),warehouse:G(),uri:d().optional().describe(i.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:ce()}),p({type:m("SQL"),warehouse:G(),uri:d().optional().describe(i.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),p({type:m("Hive"),warehouse:G(),uri:le()}),p({type:m("Glue"),warehouse:G(),uri:le()}),p({type:m("DynamoDB"),"dynamodb.profile-name":d().optional().describe(i.of({label:"Profile Name"})),"dynamodb.region":d().optional().describe(i.of({label:"Region"})),"dynamodb.access-key-id":d().optional().describe(i.of({label:"Access Key ID"})),"dynamodb.secret-access-key":d().optional().describe(i.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":d().optional().describe(i.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST",token:void 0}).describe(i.of({special:"tabs"}))}),Te=p({type:m("datafusion"),sessionContext:v().optional().describe(i.of({label:"Use Session Context"}))}),De=p({type:m("pyspark"),host:x().optional(),port:C().optional()}),qe=p({type:m("redshift"),host:x(),port:C(5439),connectionType:oe("type",[p({type:m("IAM credentials"),region:d().describe(i.of({label:"Region"})),aws_access_key_id:d().nonempty().describe(i.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:d().nonempty().describe(i.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:d().optional().describe(i.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),p({type:m("DB credentials"),user:k(),password:$()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:w()}).describe(i.of({direction:"two-columns"})),Le=p({type:m("databricks"),access_token:ce("Access Token",!0),server_hostname:x("Server Hostname"),http_path:le("HTTP Path",!0),catalog:d().optional().describe(i.of({label:"Catalog"})),schema:d().optional().describe(i.of({label:"Schema"}))}).describe(i.of({direction:"two-columns"})),Pe=p({type:m("supabase"),host:x(),port:C(5432).optional(),database:w(),username:k(),password:$(),disable_client_pooling:v().default(!1).describe(i.of({label:"Disable Client-Side Pooling"}))}).describe(i.of({direction:"two-columns"})),Ht=oe("type",[Se,_e,we,xe,$e,ke,Ce,Ae,je,ve,Re,Ie,Te,De,qe,Le,Pe]);var de="env:";function tn(t){return t}function V(t){return typeof t=="string"?t.startsWith(de):!1}function he(t){return`${de}${t}`}function Mt(t){return t.replace(de,"")}const Ne={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift",databricks:"Databricks"};var y=class{constructor(t,e,s){this.connection=t,this.orm=e,this.secrets=s}get imports(){let t=new Set(this.generateImports());switch(this.orm){case"sqlalchemy":t.add("import sqlalchemy");break;case"sqlmodel":t.add("import sqlmodel");break;case"duckdb":t.add("import duckdb");break;case"ibis":t.add("import ibis");break}return t}},Qt=t=>`_${t}`,Gt=class{constructor(){ne(this,"secrets",{})}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(t,e,s){if(t=Qt(t),V(e)){let o=Mt(e),n=s?`os.environ.get("${o}", "${s}")`:`os.environ.get("${o}")`;return this.secrets[t]=n,t}if(s!=null){let o=`os.environ.get("${e}", "${s}")`;return this.secrets[t]=o,t}return typeof e=="number"||typeof e=="number"?`${e}`:typeof e=="boolean"?U(e):e?`"${e}"`:""}printInFString(t,e,s){if(e===void 0)return"";if(typeof e=="number")return`${e}`;if(typeof e=="boolean")return U(e);let o=this.print(t,e,s);return o.startsWith('"')&&o.endsWith('"')?o.slice(1,-1):`{${o}}`}printPassword(t,e,s,o){let n=s?this.printInFString.bind(this):this.print.bind(this);return V(t)?n(o||"password",t):n(o||"password",e,t)}getSecrets(){return this.secrets}formatSecrets(){return Object.keys(this.secrets).length===0?"":Object.entries(this.secrets).map(([t,e])=>`${t} = ${e}`).join(` +`)}},Vt=class extends y{generateImports(){return[]}generateConnectionCode(){let t=this.connection.ssl?", connect_args={'sslmode': 'require'}":"",e=this.secrets.printPassword(this.connection.password,"POSTGRES_PASSWORD",!0);return h(` + DATABASE_URL = f"postgresql://${this.secrets.printInFString("username",this.connection.username)}:${e}@${this.secrets.printInFString("host",this.connection.host)}:${this.secrets.printInFString("port",this.connection.port)}/${this.secrets.printInFString("database",this.connection.database)}" + engine = ${this.orm}.create_engine(DATABASE_URL${t}) + `)}},zt=class extends y{generateImports(){return[]}generateConnectionCode(){let t=this.connection.ssl?", connect_args={'ssl': {'ssl-mode': 'preferred'}}":"",e=this.secrets.printPassword(this.connection.password,"MYSQL_PASSWORD",!0),s=this.secrets.printInFString("database",this.connection.database);return h(` + DATABASE_URL = f"mysql+pymysql://${this.secrets.printInFString("username",this.connection.username)}:${e}@${this.secrets.printInFString("host",this.connection.host)}:${this.secrets.printInFString("port",this.connection.port)}/${s}" + engine = ${this.orm}.create_engine(DATABASE_URL${t}) + `)}},Jt=class extends y{generateImports(){return[]}generateConnectionCode(){let t=this.connection.database?this.secrets.printInFString("database",this.connection.database):"";return h(` + ${t.startsWith("{")&&t.endsWith("}")?`DATABASE_URL = f"sqlite:///${t}"`:`DATABASE_URL = "sqlite:///${t}"`} + engine = ${this.orm}.create_engine(DATABASE_URL) + `)}},Yt=class extends y{generateImports(){return["from snowflake.sqlalchemy import URL"]}generateConnectionCode(){let t=this.secrets.printPassword(this.connection.password,"SNOWFLAKE_PASSWORD",!1),e={account:this.secrets.print("account",this.connection.account),user:this.secrets.print("user",this.connection.username),database:this.secrets.print("database",this.connection.database),warehouse:this.connection.warehouse?this.secrets.print("warehouse",this.connection.warehouse):void 0,schema:this.connection.schema?this.secrets.print("schema",this.connection.schema):void 0,role:this.connection.role?this.secrets.print("role",this.connection.role):void 0,password:t};return h(` + engine = ${this.orm}.create_engine( + URL( +${z(e,s=>` ${s}`)}, + ) + ) + `)}},Xt=class extends y{generateImports(){return["import json"]}generateConnectionCode(){let t=this.secrets.printInFString("project",this.connection.project),e=this.secrets.printInFString("dataset",this.connection.dataset);return h(` + credentials = json.loads("""${this.connection.credentials_json}""") + engine = ${this.orm}.create_engine(f"bigquery://${t}/${e}", credentials_info=credentials) + `)}},Zt=class extends y{generateImports(){return[]}generateConnectionCode(){return h(` + DATABASE_URL = "${this.secrets.printInFString("database",this.connection.database||":memory:")}" + engine = ${this.orm}.connect(DATABASE_URL, read_only=${U(this.connection.read_only)}) + `)}},es=class extends y{generateImports(){return[]}generateConnectionCode(){let t=this.secrets.printInFString("database",this.connection.database);return this.connection.token?h(` + conn = duckdb.connect("md:${t}", config={"motherduck_token": ${this.secrets.printPassword(this.connection.token,"MOTHERDUCK_TOKEN",!1)}}) + `):h(` + conn = duckdb.connect("md:${t}") + `)}},ts=class extends y{generateImports(){return["import clickhouse_connect"]}generateConnectionCode(){let t=this.secrets.printPassword(this.connection.password,"CLICKHOUSE_PASSWORD",!1),e={host:this.secrets.print("host",this.connection.host),user:this.secrets.print("user",this.connection.username),secure:this.secrets.print("secure",this.connection.secure),port:this.connection.port?this.secrets.print("port",this.connection.port):void 0,password:this.connection.password?t:void 0};return h(` + engine = ${this.orm}.get_client( +${z(e,s=>` ${s}`)}, + ) + `)}},ss=class extends y{generateImports(){return[]}generateConnectionCode(){let t=this.secrets.printPassword(this.connection.password,"TIMEPLUS_PASSWORD",!0);return h(` + DATABASE_URL = f"timeplus://${this.secrets.printInFString("username",this.connection.username)}:${t}@${this.secrets.printInFString("host",this.connection.host)}:${this.secrets.printInFString("port",this.connection.port)}" + engine = ${this.orm}.create_engine(DATABASE_URL) + `)}},ns=class extends y{generateImports(){return["import chdb"]}generateConnectionCode(){let t=this.secrets.print("database",this.connection.database)||'""';return h(` + engine = ${this.orm}.connect(${t}, read_only=${U(this.connection.read_only)}) + `)}},os=class extends y{generateImports(){return this.connection.async_support?["import aiotrino"]:["import trino.sqlalchemy"]}generateConnectionCode(){let t=this.connection.async_support?"aiotrino":"trino",e=this.connection.schema?`/${this.connection.schema}`:"",s=this.secrets.printInFString("username",this.connection.username),o=this.secrets.printInFString("host",this.connection.host),n=this.secrets.printInFString("port",this.connection.port),a=this.secrets.printInFString("database",this.connection.database),c=this.secrets.printPassword(this.connection.password,"TRINO_PASSWORD",!0);return h(` + engine = ${this.orm}.create_engine(f"${t}://${s}:${c}@${o}:${n}/${a}${e}") + `)}},rs=class extends y{generateImports(){switch(this.connection.catalog.type){case"REST":return["from pyiceberg.catalog.rest import RestCatalog"];case"SQL":return["from pyiceberg.catalog.sql import SqlCatalog"];case"Hive":return["from pyiceberg.catalog.hive import HiveCatalog"];case"Glue":return["from pyiceberg.catalog.glue import GlueCatalog"];case"DynamoDB":return["from pyiceberg.catalog.dynamodb import DynamoDBCatalog"];default:re(this.connection.catalog)}}generateConnectionCode(){let t={...this.connection.catalog};t=Object.fromEntries(Object.entries(t).filter(([o,n])=>n!=null&&n!==""&&o!=="type"));for(let[o,n]of Object.entries(t))V(n)?t[o]=this.secrets.print(o,n):typeof n=="string"&&(t[o]=`"${n}"`);let e=ms(t,o=>` ${o}`),s=`"${this.connection.name}"`;switch(this.connection.catalog.type){case"REST":return h(` + catalog = RestCatalog( + ${s}, + **{ +${e} + }, + ) + `);case"SQL":return h(` + catalog = SqlCatalog( + ${s}, + **{ +${e} + }, + ) + `);case"Hive":return h(` + catalog = HiveCatalog( + ${s}, + **{ +${e} + }, + ) + `);case"Glue":return h(` + catalog = GlueCatalog( + ${s}, + **{ +${e} + }, + ) + `);case"DynamoDB":return h(` + catalog = DynamoDBCatalog( + ${s}, + **{ +${e} + }, + ) + `);default:re(this.connection.catalog)}}},is=class extends y{generateImports(){return["from datafusion import SessionContext"]}generateConnectionCode(){return this.connection.sessionContext?h(` + ctx = SessionContext() + # Sample table + _ = ctx.from_pydict({"a": [1, 2, 3]}, "my_table") + + con = ibis.datafusion.connect(ctx) + `):h(` + con = ibis.datafusion.connect() + `)}},as=class extends y{generateImports(){return["from pyspark.sql import SparkSession"]}generateConnectionCode(){return this.connection.host||this.connection.port?h(` + session = SparkSession.builder.remote(f"sc://${this.secrets.printInFString("host",this.connection.host)}:${this.secrets.printInFString("port",this.connection.port)}").getOrCreate() + con = ibis.pyspark.connect(session) + `):h(` + con = ibis.pyspark.connect() + `)}},cs=class extends y{generateImports(){return["import redshift_connector"]}generateConnectionCode(){let t=this.secrets.print("host",this.connection.host),e=this.secrets.print("port",this.connection.port),s=this.secrets.print("database",this.connection.database);if(this.connection.connectionType.type==="IAM credentials"){let a=this.secrets.print("aws_access_key_id",this.connection.connectionType.aws_access_key_id),c=this.secrets.print("aws_secret_access_key",this.connection.connectionType.aws_secret_access_key),l=this.connection.connectionType.aws_session_token?this.secrets.print("aws_session_token",this.connection.connectionType.aws_session_token):void 0;return h(` + con = redshift_connector.connect( +${z({iam:!0,host:t,port:e,region:`"${this.connection.connectionType.region}"`,database:s,access_key_id:a,secret_access_key:c,...l&&{session_token:l}},b=>` ${b}`)}, + ) + `)}let o=this.connection.connectionType.user?this.secrets.print("user",this.connection.connectionType.user):void 0,n=this.connection.connectionType.password?this.secrets.printPassword(this.connection.connectionType.password,"REDSHIFT_PASSWORD",!1):void 0;return h(` + con = redshift_connector.connect( +${z({host:t,port:e,database:s,...o&&{user:o},...n&&{password:n}},a=>` ${a}`)}, + ) + `)}},ls=class extends y{generateImports(){return[]}generateConnectionCode(){let t=this.orm!=="ibis",e=this.secrets.printPassword(this.connection.access_token,"DATABRICKS_ACCESS_TOKEN",t,"access_token"),s=this.secrets.printPassword(this.connection.server_hostname,"DATABRICKS_SERVER_HOSTNAME",t,"server_hostname"),o=this.secrets.printPassword(this.connection.http_path,"DATABRICKS_HTTP_PATH",t,"http_path"),n=this.connection.catalog?this.secrets.printInFString("catalog",this.connection.catalog):void 0,a=this.connection.schema?this.secrets.printInFString("schema",this.connection.schema):void 0,c=`databricks://token:${e}@${s}?http_path=${o}`;return n&&(c+=`&catalog=${n}`),a&&(c+=`&schema=${a}`),this.orm==="ibis"?h(` + engine = ibis.databricks.connect( + server_hostname=${s}, + http_path=${o},${n?` + catalog=${n},`:""}${a?` + schema=${a},`:""} + access_token=${e} + ) + `):h(` + DATABASE_URL = f"${c}" + engine = ${this.orm}.create_engine(DATABASE_URL) + `)}},ds=class extends y{generateImports(){return this.connection.disable_client_pooling?["from sqlalchemy.pool import NullPool"]:[]}generateConnectionCode(){let t=this.secrets.printPassword(this.connection.password,"SUPABASE_PASSWORD",!0),e=this.secrets.printInFString("username",this.connection.username),s=this.secrets.printInFString("host",this.connection.host),o=this.secrets.printInFString("port",this.connection.port),n=this.secrets.printInFString("database",this.connection.database),a=this.connection.disable_client_pooling?", poolclass=NullPool":"";return h(` + DATABASE_URL = f"postgresql+psycopg2://${e}:${t}@${s}:${o}/${n}?sslmode=require" + engine = ${this.orm}.create_engine(DATABASE_URL${a}) + `)}},hs=class{constructor(){ne(this,"secrets",new Gt)}createGenerator(t,e){switch(t.type){case"postgres":return new Vt(t,e,this.secrets);case"mysql":return new zt(t,e,this.secrets);case"sqlite":return new Jt(t,e,this.secrets);case"snowflake":return new Yt(t,e,this.secrets);case"bigquery":return new Xt(t,e,this.secrets);case"duckdb":return new Zt(t,e,this.secrets);case"motherduck":return new es(t,e,this.secrets);case"clickhouse_connect":return new ts(t,e,this.secrets);case"timeplus":return new ss(t,e,this.secrets);case"chdb":return new ns(t,e,this.secrets);case"trino":return new os(t,e,this.secrets);case"iceberg":return new rs(t,e,this.secrets);case"datafusion":return new is(t,e,this.secrets);case"pyspark":return new as(t,e,this.secrets);case"redshift":return new cs(t,e,this.secrets);case"databricks":return new ls(t,e,this.secrets);case"supabase":return new ds(t,e,this.secrets);default:re(t)}}};function ps(t,e){if(!(e in Ne))throw Error(`Unsupported library: ${e}`);Ht.parse(t);let s=new hs,o=s.createGenerator(t,e),n=o.generateConnectionCode(),a=s.secrets,c=[...new Set([...a.imports,...o.imports])].sort();c.push("");let l=a.formatSecrets();return l&&c.push(l),c.push(n.trim()),c.join(` +`)}function U(t){return t.toString().charAt(0).toUpperCase()+t.toString().slice(1)}function z(t,e){return Object.entries(t).filter(([,s])=>s!=null&&s!=="").map(([s,o])=>e(typeof o=="boolean"?`${s}=${U(o)}`:`${s}=${o}`)).join(`, +`)}function ms(t,e){return Object.entries(t).filter(([,s])=>s!=null&&s!=="").map(([s,o])=>{let n=`"${s}"`;return e(typeof o=="boolean"?`${n}: ${U(o)}`:`${n}: ${o}`)}).join(`, +`)}var us=be(),K=me(We(),1),r=me(Xe(),1),Fe=(0,K.createContext)({providerNames:[],secretKeys:[],loading:!1,error:void 0,refreshSecrets:Ye.NOOP});const bs=()=>(0,K.use)(Fe),fs=t=>{let e=(0,us.c)(14),{children:s}=t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],e[0]=o):o=e[0];let{data:n,isPending:a,error:c,refetch:l}=It(ws,o),b;e[1]===(n==null?void 0:n.secretKeys)?b=e[2]:(b=(n==null?void 0:n.secretKeys)||[],e[1]=n==null?void 0:n.secretKeys,e[2]=b);let u;e[3]===(n==null?void 0:n.providerNames)?u=e[4]:(u=(n==null?void 0:n.providerNames)||[],e[3]=n==null?void 0:n.providerNames,e[4]=u);let f;e[5]!==c||e[6]!==a||e[7]!==l||e[8]!==b||e[9]!==u?(f={secretKeys:b,providerNames:u,loading:a,error:c,refreshSecrets:l},e[5]=c,e[6]=a,e[7]=l,e[8]=b,e[9]=u,e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==f?(S=(0,r.jsx)(Fe,{value:f,children:s}),e[11]=s,e[12]=f,e[13]=S):S=e[13],S},gs={isMatch:t=>{if(t instanceof ue||t instanceof Ge){let{optionRegex:e}=i.parse(t.description||"");return!!e}return!1},Component:({schema:t,form:e,path:s})=>{let{secretKeys:o,providerNames:n,refreshSecrets:a}=bs(),{openModal:c,closeModal:l}=vt(),{label:b,description:u,optionRegex:f=""}=i.parse(t.description||""),[S,A]=Kt(o,g=>new RegExp(f,"i").test(g));return(0,r.jsx)(ut,{control:e.control,name:s,render:({field:g})=>(0,r.jsxs)(gt,{children:[(0,r.jsx)(wt,{children:b}),(0,r.jsx)(yt,{children:u}),(0,r.jsx)(mt,{children:(0,r.jsxs)("div",{className:"flex gap-2",children:[t instanceof ue?(0,r.jsx)(pt,{...g,value:g.value,onChange:g.onChange,className:fe("flex-1")}):(0,r.jsx)(ht,{...g,value:g.value,onChange:g.onChange,className:"flex-1"}),(0,r.jsxs)(lt,{children:[(0,r.jsx)(at,{asChild:!0,children:(0,r.jsx)(ie,{variant:"outline",size:"icon",className:fe(V(g.value)&&"bg-accent"),children:(0,r.jsx)(dt,{className:"h-3 w-3"})})}),(0,r.jsxs)(ct,{align:"end",className:"max-h-60 overflow-y-auto",children:[(0,r.jsxs)(ae,{onSelect:()=>{c((0,r.jsx)(Nt,{providerNames:n,onSuccess:_=>{a(),g.onChange(he(_)),l()},onClose:l}))},children:[(0,r.jsx)(rt,{className:"mr-2 h-3.5 w-3.5"}),"Create a new secret"]}),S.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ge,{}),(0,r.jsx)(it,{children:"Recommended"})]}),S.map(_=>(0,r.jsx)(ae,{onSelect:()=>g.onChange(he(_)),children:_},_)),A.length>0&&(0,r.jsx)(ge,{}),A.map(_=>(0,r.jsx)(ae,{onSelect:()=>g.onChange(he(_)),children:_},_))]})]})]})}),(0,r.jsx)(bt,{})]})})}};function ys(t){return t.provider!=="env"}function Ss(t){return t.name}function _s(t){return t.keys}async function ws(){let t=await Lt.request({}),e=Pt(t.secrets).filter(ys).map(Ss);return{secretKeys:t.secrets.flatMap(_s).sort(),providerNames:e}}var W=be(),Ee=[{name:"PostgreSQL",schema:Se,color:"#336791",logo:"postgres",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}},{name:"MySQL",schema:_e,color:"#00758F",logo:"mysql",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}},{name:"SQLite",schema:we,color:"#003B57",logo:"sqlite",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}},{name:"DuckDB",schema:xe,color:"#FFD700",logo:"duckdb",connectionLibraries:{libraries:["duckdb"],preferred:"duckdb"}},{name:"MotherDuck",schema:$e,color:"#ff9538",logo:"motherduck",connectionLibraries:{libraries:["duckdb"],preferred:"duckdb"}},{name:"Snowflake",schema:ke,color:"#29B5E8",logo:"snowflake",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}},{name:"ClickHouse",schema:Ae,color:"#2C2C1D",logo:"clickhouse",connectionLibraries:{libraries:["clickhouse_connect"],preferred:"clickhouse_connect"}},{name:"Timeplus",schema:je,color:"#B83280",logo:"timeplus",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}},{name:"BigQuery",schema:Ce,color:"#4285F4",logo:"bigquery",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}},{name:"ClickHouse Embedded",schema:ve,color:"#f2b611",logo:"clickhouse",connectionLibraries:{libraries:["chdb"],preferred:"chdb"}},{name:"Trino",schema:Re,color:"#d466b6",logo:"trino",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}},{name:"DataFusion",schema:Te,color:"#202A37",logo:"datafusion",connectionLibraries:{libraries:["ibis"],preferred:"ibis"}},{name:"PySpark",schema:De,color:"#1C5162",logo:"pyspark",connectionLibraries:{libraries:["ibis"],preferred:"ibis"}},{name:"Redshift",schema:qe,color:"#522BAE",logo:"redshift",connectionLibraries:{libraries:["redshift"],preferred:"redshift"}},{name:"Databricks",schema:Le,color:"#c41e0c",logo:"databricks",connectionLibraries:{libraries:["sqlalchemy","sqlmodel","ibis"],preferred:"sqlalchemy"}},{name:"Supabase",schema:Pe,color:"#238F5F",logo:"supabase",connectionLibraries:{libraries:["sqlalchemy","sqlmodel"],preferred:"sqlalchemy"}}],Be=[{name:"Iceberg",schema:Ie,color:"#000000",logo:"iceberg",connectionLibraries:{libraries:["pyiceberg"],preferred:"pyiceberg"}}],xs=t=>{let e=(0,W.c)(14),{onSelect:s}=t,o;e[0]===s?o=e[1]:(o=S=>{let{name:A,schema:g,color:_,logo:R}=S;return(0,r.jsxs)("button",{type:"button",className:"py-3 flex flex-col items-center justify-center gap-1 transition-all hover:scale-105 hover:brightness-110 rounded shadow-sm-solid hover:shadow-md-solid",style:{backgroundColor:_},onClick:()=>s(g),children:[(0,r.jsx)(He,{name:R,className:"w-8 h-8 text-white brightness-0 invert dark:invert"}),(0,r.jsx)("span",{className:"text-white font-medium text-lg",children:A})]},A)},e[0]=s,e[1]=o);let n=o,a;e[2]===n?a=e[3]:(a=Ee.map(n),e[2]=n,e[3]=a);let c;e[4]===a?c=e[5]:(c=(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:a}),e[4]=a,e[5]=c);let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsxs)("h4",{className:"font-semibold text-muted-foreground text-lg flex items-center gap-4",children:["Data Catalogs",(0,r.jsx)("hr",{className:"flex-1"})]}),e[6]=l):l=e[6];let b;e[7]===n?b=e[8]:(b=Be.map(n),e[7]=n,e[8]=b);let u;e[9]===b?u=e[10]:(u=(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:b}),e[9]=b,e[10]=u);let f;return e[11]!==c||e[12]!==u?(f=(0,r.jsxs)(r.Fragment,{children:[c,l,u]}),e[11]=c,e[12]=u,e[13]=f):f=e[13],f},$s=[gs],ks=t=>{var pe;let e=(0,W.c)(49),{schema:s,onSubmit:o,onBack:n}=t,a;e[0]===s?a=e[1]:(a=Dt(s),e[0]=s,e[1]=a);let c=s,l;e[2]===c?l=e[3]:(l=St(c),e[2]=c,e[3]=l);let b;e[4]!==a||e[5]!==l?(b={defaultValues:a,resolver:l,reValidateMode:"onChange"},e[4]=a,e[5]=l,e[6]=b):b=e[6];let u=ft(b),f=(pe=[...Ee,...Be].find(j=>j.schema===s))==null?void 0:pe.connectionLibraries,[S,A]=(0,K.useState)((f==null?void 0:f.preferred)??"sqlalchemy"),{createNewCell:g}=Me(),_=Tt(),R;e[7]!==g||e[8]!==_?(R=j=>{g({code:j,before:!1,cellId:_??"__end__",skipIfCodeExists:!0})},e[7]=g,e[8]=_,e[9]=R):R=e[9];let J=R,H;e[10]!==J||e[11]!==o||e[12]!==S?(H=j=>{J(ps(j,S)),o()},e[10]=J,e[11]=o,e[12]=S,e[13]=H):H=e[13];let Y=H,I;e[14]!==u||e[15]!==Y?(I=u.handleSubmit(Y),e[14]=u,e[15]=Y,e[16]=I):I=e[16];let M;e[17]===Symbol.for("react.memo_cache_sentinel")?(M=(0,r.jsx)(_t,{}),e[17]=M):M=e[17];let T;e[18]!==u||e[19]!==s?(T=(0,r.jsx)(fs,{children:(0,r.jsx)(qt,{schema:s,form:u,renderers:$s,children:M})}),e[18]=u,e[19]=s,e[20]=T):T=e[20];let D;e[21]===n?D=e[22]:(D=(0,r.jsx)(ie,{type:"button",variant:"outline",onClick:n,children:"Back"}),e[21]=n,e[22]=D);let X=!u.formState.isValid,q;e[23]===X?q=e[24]:(q=(0,r.jsx)(ie,{type:"submit",disabled:X,children:"Add"}),e[23]=X,e[24]=q);let L;e[25]!==D||e[26]!==q?(L=(0,r.jsxs)("div",{className:"flex gap-2",children:[D,q]}),e[25]=D,e[26]=q,e[27]=L):L=e[27];let Z=ot,P;e[28]===Symbol.for("react.memo_cache_sentinel")?(P=j=>A(j),e[28]=P):P=e[28];let N;e[29]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[(0,r.jsx)(nt,{children:(0,r.jsx)(Ze,{placeholder:"Select a library"})}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:"Preferred connection library"})]}),e[29]=N):N=e[29];let ee=tt,te=st,se=f==null?void 0:f.libraries.map(js),F;e[30]!==te||e[31]!==se?(F=(0,r.jsx)(te,{children:se}),e[30]=te,e[31]=se,e[32]=F):F=e[32];let E;e[33]!==ee||e[34]!==F?(E=(0,r.jsx)(ee,{children:F}),e[33]=ee,e[34]=F,e[35]=E):E=e[35];let B;e[36]!==Z||e[37]!==S||e[38]!==P||e[39]!==N||e[40]!==E?(B=(0,r.jsx)("div",{children:(0,r.jsxs)(Z,{value:S,onValueChange:P,children:[N,E]})}),e[36]=Z,e[37]=S,e[38]=P,e[39]=N,e[40]=E,e[41]=B):B=e[41];let O;e[42]!==L||e[43]!==B?(O=(0,r.jsxs)("div",{className:"flex gap-2 justify-between",children:[L,B]}),e[42]=L,e[43]=B,e[44]=O):O=e[44];let Q;return e[45]!==T||e[46]!==O||e[47]!==I?(Q=(0,r.jsxs)("form",{onSubmit:I,className:"space-y-4",children:[T,O]}),e[45]=T,e[46]=O,e[47]=I,e[48]=Q):Q=e[48],Q},Cs=t=>{let e=(0,W.c)(5),{onSubmit:s}=t,[o,n]=(0,K.useState)(null);if(!o){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)(xs,{onSelect:n}),e[0]=l):l=e[0],l}let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>n(null),e[1]=a):a=e[1];let c;return e[2]!==s||e[3]!==o?(c=(0,r.jsx)(ks,{schema:o,onSubmit:s,onBack:a}),e[2]=s,e[3]=o,e[4]=c):c=e[4],c};const As=t=>{let e=(0,W.c)(6),{children:s}=t,[o,n]=(0,K.useState)(!1),a;e[0]===s?a=e[1]:(a=(0,r.jsx)(kt,{asChild:!0,children:s}),e[0]=s,e[1]=a);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)(Oe,{onClose:()=>n(!1)}),e[2]=c):c=e[2];let l;return e[3]!==o||e[4]!==a?(l=(0,r.jsxs)(jt,{open:o,onOpenChange:n,children:[a,c]}),e[3]=o,e[4]=a,e[5]=l):l=e[5],l},Oe=t=>{let e=(0,W.c)(4),{onClose:s}=t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)($t,{children:"Add Connection"}),e[0]=o):o=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsxs)(xt,{className:"mb-4",children:[o,(0,r.jsxs)(At,{children:["Connect to your database or data catalog to query data directly from your notebook. Learn more about how to connect to your database in our"," ",(0,r.jsx)(Rt,{href:"https://docs.marimo.io/guides/working_with_data/sql/#connecting-to-a-custom-database",children:"docs."})]})]}),e[1]=n):n=e[1];let a;return e[2]===s?a=e[3]:(a=(0,r.jsxs)(Ct,{className:"max-h-[75vh] overflow-y-auto",children:[n,(0,r.jsx)(Cs,{onSubmit:()=>s()})]}),e[2]=s,e[3]=a),a};function js(t){return(0,r.jsx)(et,{value:t,children:Ne[t]},t)}export{Oe as n,As as t}; diff --git a/docs/assets/agent-panel-DNF472QI.js b/docs/assets/agent-panel-DNF472QI.js new file mode 100644 index 0000000..a10480f --- /dev/null +++ b/docs/assets/agent-panel-DNF472QI.js @@ -0,0 +1,287 @@ +var fn=Object.defineProperty;var Ca=t=>{throw TypeError(t)};var gn=(t,e,a)=>e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var H=(t,e,a)=>gn(t,typeof e!="symbol"?e+"":e,a),qt=(t,e,a)=>e.has(t)||Ca("Cannot "+a);var te=(t,e,a)=>(qt(t,e,"read from private field"),a?a.call(t):e.get(t)),Oe=(t,e,a)=>e.has(t)?Ca("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),Be=(t,e,a,s)=>(qt(t,e,"write to private field"),s?s.call(t,a):e.set(t,a),a),Te=(t,e,a)=>(qt(t,e,"access private method"),a);var Ia=(t,e,a,s)=>({set _(n){Be(t,e,n,a)},get _(){return te(t,e,s)}});var he,en,at,Lt,mt,pt,st,nt,ce,cn,dn,un,mn,pn,ut,tn;import{s as Ta}from"./chunk-LvLJmgfZ.js";import{d as Aa,i as Wt,l as ft,n as oe,p as xn,u as Ra}from"./useEvent-DlWF5OMa.js";import{t as vn}from"./react-BGmjiNul.js";import{G as yn,In as _n,Jn as Vt,Jr as Bt,Un as bn,Zr as wn,_n as kn,ln as jn,on as Nn,zt as Kt}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{P as Sn,R as Jt}from"./zod-Cg4WLWh2.js";import{t as be}from"./compiler-runtime-DeeZ7FnK.js";import{i as Cn}from"./useLifecycle-CmDXEyIC.js";import{t as Ht}from"./capitalize-DQeWKRGx.js";import"./tooltip-CrRUCOBw.js";import{c as In,d as Ge,f as Ma}from"./hotkeys-uKX61F1_.js";import"./config-CENq_7Pd.js";import{t as Tn}from"./jsx-runtime-DN_bIXfG.js";import{t as le}from"./button-B8cGZzP5.js";import{t as xe}from"./cn-C1rgT0yh.js";import{at as An}from"./dist-CAcX026F.js";import{E as Oa,t as Ea}from"./JsonOutput-DlwRx3jE.js";import{f as Rn}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as Mn}from"./requests-C0HaHO6a.js";import{t as rt}from"./createLucideIcon-CW2xpJ57.js";import{C as On,O as En,k as Zn,m as Pn,n as $n,x as Fn}from"./add-cell-with-ai-DEdol3w0.js";import{i as gt,n as Un,r as zn}from"./chat-components-BQ_d4LQG.js";import{i as xt}from"./ai-model-dropdown-C-5PlP5A.js";import{_ as Dn,a as Za,h as Pa,i as $a,n as Fa,r as Ua,s as za,t as Da}from"./select-D9lTzMzP.js";import"./download-C_slsU-7.js";import{t as La}from"./markdown-renderer-DjqhqmES.js";import{t as qa}from"./circle-check-big-OIMTUpe6.js";import{a as Ln,d as qn,f as Wn,p as Vn,r as Bn,s as Kn,t as Jn,u as Hn}from"./dropdown-menu-BP4_BZLr.js";import{i as Yn,n as Gn,r as Qn,t as Xn}from"./file-video-camera-CZUg-nFA.js";import{t as er}from"./file-BnFXtaZZ.js";import{n as tr,t as Yt}from"./spinner-C1czjtp7.js";import{a as ar}from"./MarimoErrorOutput-DAK6volb.js";import{t as sr}from"./plug-Bp1OpH-w.js";import{t as nr}from"./refresh-cw-Din9uFKE.js";import{t as Wa}from"./rotate-ccw-CF2xzGPz.js";import{r as rr}from"./input-Bkl2Yfmh.js";import{t as ir}from"./square-leQTJTJJ.js";import{c as or}from"./datasource-CCq9qyVG.js";import{t as lr}from"./badge-DAnNhy3O.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{t as cr}from"./uuid-ClFZlR7U.js";import{t as vt}from"./use-toast-Bzf3rpev.js";import{r as dr}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{i as ur,t as yt}from"./tooltip-CvjcEpZC.js";import"./dates-CdsE1R40.js";import{i as Va,r as Ba,t as Ka}from"./popover-DtnzNVk-.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as mr}from"./copy-icon-jWsqdLn1.js";import"./purify.es-N-2faAGj.js";import{a as pr,i as hr,n as fr,r as gr}from"./multi-map-CQd4MZr5.js";import{a as xr}from"./cell-link-D7bPw7Fz.js";import{n as vr}from"./error-banner-Cq4Yn1WZ.js";import"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import"./es-BJsT6vfZ.js";import{t as yr}from"./esm-D2_Kx6xF.js";import{n as _r}from"./dist-vjCyCXRJ.js";import{t as Ja}from"./empty-state-H6r25Wek.js";import{t as br}from"./state-D4d80DfQ.js";var wr=rt("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),kr=rt("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]),jr=rt("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),it=rt("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),Gt=rt("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),q;(function(t){t.assertEqual=n=>{};function e(n){}t.assertIs=e;function a(n){throw Error()}t.assertNever=a,t.arrayToEnum=n=>{let i={};for(let r of n)i[r]=r;return i},t.getValidEnumValues=n=>{let i=t.objectKeys(n).filter(l=>typeof n[n[l]]!="number"),r={};for(let l of i)r[l]=n[l];return t.objectValues(r)},t.objectValues=n=>t.objectKeys(n).map(function(i){return n[i]}),t.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let i=[];for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&i.push(r);return i},t.find=(n,i)=>{for(let r of n)if(i(r))return r},t.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function s(n,i=" | "){return n.map(r=>typeof r=="string"?`'${r}'`:r).join(i)}t.joinValues=s,t.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(q||(q={}));var Nr;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Nr||(Nr={}));const S=q.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ue=t=>{switch(typeof t){case"undefined":return S.undefined;case"string":return S.string;case"number":return Number.isNaN(t)?S.nan:S.number;case"boolean":return S.boolean;case"function":return S.function;case"bigint":return S.bigint;case"symbol":return S.symbol;case"object":return Array.isArray(t)?S.array:t===null?S.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?S.promise:typeof Map<"u"&&t instanceof Map?S.map:typeof Set<"u"&&t instanceof Set?S.set:typeof Date<"u"&&t instanceof Date?S.date:S.object;default:return S.unknown}},g=q.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var ve=class an extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){let a=e||function(i){return i.message},s={_errors:[]},n=i=>{for(let r of i.issues)if(r.code==="invalid_union")r.unionErrors.map(n);else if(r.code==="invalid_return_type")n(r.returnTypeError);else if(r.code==="invalid_arguments")n(r.argumentsError);else if(r.path.length===0)s._errors.push(a(r));else{let l=s,c=0;for(;ca.message){let a={},s=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];a[i]=a[i]||[],a[i].push(e(n))}else s.push(e(n));return{formErrors:s,fieldErrors:a}}get formErrors(){return this.flatten()}};ve.create=t=>new ve(t);var ot=(t,e)=>{let a;switch(t.code){case g.invalid_type:a=t.received===S.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case g.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(t.expected,q.jsonStringifyReplacer)}`;break;case g.unrecognized_keys:a=`Unrecognized key(s) in object: ${q.joinValues(t.keys,", ")}`;break;case g.invalid_union:a="Invalid input";break;case g.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${q.joinValues(t.options)}`;break;case g.invalid_enum_value:a=`Invalid enum value. Expected ${q.joinValues(t.options)}, received '${t.received}'`;break;case g.invalid_arguments:a="Invalid function arguments";break;case g.invalid_return_type:a="Invalid function return type";break;case g.invalid_date:a="Invalid date";break;case g.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(a=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?a=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?a=`Invalid input: must end with "${t.validation.endsWith}"`:q.assertNever(t.validation):a=t.validation==="regex"?"Invalid":`Invalid ${t.validation}`;break;case g.too_small:a=t.type==="array"?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"||t.type==="bigint"?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case g.too_big:a=t.type==="array"?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case g.custom:a="Invalid input";break;case g.invalid_intersection_types:a="Intersection results could not be merged";break;case g.not_multiple_of:a=`Number must be a multiple of ${t.multipleOf}`;break;case g.not_finite:a="Number must be finite";break;default:a=e.defaultError,q.assertNever(t)}return{message:a}},Sr=ot;function Qt(){return Sr}const Xt=t=>{let{data:e,path:a,errorMaps:s,issueData:n}=t,i=[...a,...n.path||[]],r={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let l="",c=s.filter(d=>!!d).slice().reverse();for(let d of c)l=d(r,{data:e,defaultError:l}).message;return{...n,path:i,message:l}};function k(t,e){let a=Qt(),s=Xt({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,a,a===ot?void 0:ot].filter(n=>!!n)});t.common.issues.push(s)}var fe=class sn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,a){let s=[];for(let n of a){if(n.status==="aborted")return E;n.status==="dirty"&&e.dirty(),s.push(n.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,a){let s=[];for(let n of a){let i=await n.key,r=await n.value;s.push({key:i,value:r})}return sn.mergeObjectSync(e,s)}static mergeObjectSync(e,a){let s={};for(let n of a){let{key:i,value:r}=n;if(i.status==="aborted"||r.status==="aborted")return E;i.status==="dirty"&&e.dirty(),r.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(r.value!==void 0||n.alwaysSet)&&(s[i.value]=r.value)}return{status:e.value,value:s}}};const E=Object.freeze({status:"aborted"}),ea=t=>({status:"dirty",value:t}),pe=t=>({status:"valid",value:t}),Ha=t=>t.status==="aborted",Ya=t=>t.status==="dirty",Qe=t=>t.status==="valid",_t=t=>typeof Promise<"u"&&t instanceof Promise;var T;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(T||(T={}));var Ae=class{constructor(t,e,a,s){this._cachedPath=[],this.parent=t,this.data=e,this._path=a,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Ga=(t,e)=>{if(Qe(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){return this._error||(this._error=new ve(t.common.issues)),this._error}}};function $(t){if(!t)return{};let{errorMap:e,invalid_type_error:a,required_error:s,description:n}=t;if(e&&(a||s))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(i,r)=>{let{message:l}=t;return i.code==="invalid_enum_value"?{message:l??r.defaultError}:r.data===void 0?{message:l??s??r.defaultError}:i.code==="invalid_type"?{message:l??a??r.defaultError}:{message:r.defaultError}},description:n}}var D=class{get description(){return this._def.description}_getType(t){return Ue(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:Ue(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new fe,ctx:{common:t.parent.common,data:t.data,parsedType:Ue(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let e=this._parse(t);if(_t(e))throw Error("Synchronous parse encountered promise.");return e}_parseAsync(t){let e=this._parse(t);return Promise.resolve(e)}parse(t,e){let a=this.safeParse(t,e);if(a.success)return a.data;throw a.error}safeParse(t,e){let a={common:{issues:[],async:(e==null?void 0:e.async)??!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ue(t)};return Ga(a,this._parseSync({data:t,path:a.path,parent:a}))}"~validate"(t){var a,s;let e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ue(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:e});return Qe(n)?{value:n.value}:{issues:e.common.issues}}catch(n){(s=(a=n==null?void 0:n.message)==null?void 0:a.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),e.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:e}).then(n=>Qe(n)?{value:n.value}:{issues:e.common.issues})}async parseAsync(t,e){let a=await this.safeParseAsync(t,e);if(a.success)return a.data;throw a.error}async safeParseAsync(t,e){let a={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ue(t)},s=this._parse({data:t,path:a.path,parent:a});return Ga(a,await(_t(s)?s:Promise.resolve(s)))}refine(t,e){let a=s=>typeof e=="string"||e===void 0?{message:e}:typeof e=="function"?e(s):e;return this._refinement((s,n)=>{let i=t(s),r=()=>n.addIssue({code:g.custom,...a(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(r(),!1)):i?!0:(r(),!1)})}refinement(t,e){return this._refinement((a,s)=>t(a)?!0:(s.addIssue(typeof e=="function"?e(a,s):e),!1))}_refinement(t){return new Ee({schema:this,typeName:Z.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ze.create(this,this._def)}nullable(){return Je.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return lt.create(this,this._def)}or(t){return jt.create([this,t],this._def)}and(t){return Nt.create(this,t,this._def)}transform(t){return new Ee({...$(this._def),schema:this,typeName:Z.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let e=typeof t=="function"?t:()=>t;return new At({...$(this._def),innerType:this,defaultValue:e,typeName:Z.ZodDefault})}brand(){return new as({typeName:Z.ZodBranded,type:this,...$(this._def)})}catch(t){let e=typeof t=="function"?t:()=>t;return new Rt({...$(this._def),innerType:this,catchValue:e,typeName:Z.ZodCatch})}describe(t){let e=this.constructor;return new e({...this._def,description:t})}pipe(t){return ss.create(this,t)}readonly(){return Mt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Cr=/^c[^\s-]{8,}$/i,Ir=/^[0-9a-z]+$/,Tr=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ar=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Rr=/^[a-z0-9_-]{21}$/i,Mr=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Or=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Er=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Zr="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Qa,Pr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$r=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Fr=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ur=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zr=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Dr=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Xa="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Lr=RegExp(`^${Xa}$`);function es(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision??(e=`${e}(\\.\\d+)?`);let a=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${a}`}function qr(t){return RegExp(`^${es(t)}$`)}function Wr(t){let e=`${Xa}T${es(t)}`,a=[];return a.push(t.local?"Z?":"Z"),t.offset&&a.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${a.join("|")})`,RegExp(`^${e}$`)}function Vr(t,e){return!!((e==="v4"||!e)&&Pr.test(t)||(e==="v6"||!e)&&Fr.test(t))}function Br(t,e){if(!Mr.test(t))return!1;try{let[a]=t.split(".");if(!a)return!1;let s=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),n=JSON.parse(atob(s));return!(typeof n!="object"||!n||"typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||e&&n.alg!==e)}catch{return!1}}function Kr(t,e){return!!((e==="v4"||!e)&&$r.test(t)||(e==="v6"||!e)&&Ur.test(t))}var bt=class dt extends D{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==S.string){let n=this._getOrReturnCtx(e);return k(n,{code:g.invalid_type,expected:S.string,received:n.parsedType}),E}let a=new fe,s;for(let n of this._def.checks)if(n.kind==="min")e.data.lengthn.value&&(s=this._getOrReturnCtx(e,s),k(s,{code:g.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),a.dirty());else if(n.kind==="length"){let i=e.data.length>n.value,r=e.data.lengthe.test(n),{validation:a,code:g.invalid_string,...T.errToObj(s)})}_addCheck(e){return new dt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...T.errToObj(e)})}url(e){return this._addCheck({kind:"url",...T.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...T.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...T.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...T.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...T.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...T.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...T.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...T.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...T.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...T.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...T.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...T.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:(e==null?void 0:e.precision)===void 0?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...T.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:(e==null?void 0:e.precision)===void 0?null:e==null?void 0:e.precision,...T.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...T.errToObj(e)})}regex(e,a){return this._addCheck({kind:"regex",regex:e,...T.errToObj(a)})}includes(e,a){return this._addCheck({kind:"includes",value:e,position:a==null?void 0:a.position,...T.errToObj(a==null?void 0:a.message)})}startsWith(e,a){return this._addCheck({kind:"startsWith",value:e,...T.errToObj(a)})}endsWith(e,a){return this._addCheck({kind:"endsWith",value:e,...T.errToObj(a)})}min(e,a){return this._addCheck({kind:"min",value:e,...T.errToObj(a)})}max(e,a){return this._addCheck({kind:"max",value:e,...T.errToObj(a)})}length(e,a){return this._addCheck({kind:"length",value:e,...T.errToObj(a)})}nonempty(e){return this.min(1,T.errToObj(e))}trim(){return new dt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new dt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new dt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxLength(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuenew bt({checks:[],typeName:Z.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...$(t)});function Jr(t,e){let a=(t.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,n=a>s?a:s;return Number.parseInt(t.toFixed(n).replace(".",""))%Number.parseInt(e.toFixed(n).replace(".",""))/10**n}var ta=class wa extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==S.number){let n=this._getOrReturnCtx(e);return k(n,{code:g.invalid_type,expected:S.number,received:n.parsedType}),E}let a,s=new fe;for(let n of this._def.checks)n.kind==="int"?q.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),k(a,{code:g.invalid_type,expected:"integer",received:"float",message:n.message}),s.dirty()):n.kind==="min"?(n.inclusive?e.datan.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),k(a,{code:g.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?Jr(e.data,n.value)!==0&&(a=this._getOrReturnCtx(e,a),k(a,{code:g.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),k(a,{code:g.not_finite,message:n.message}),s.dirty()):q.assertNever(n);return{status:s.value,value:e.data}}gte(e,a){return this.setLimit("min",e,!0,T.toString(a))}gt(e,a){return this.setLimit("min",e,!1,T.toString(a))}lte(e,a){return this.setLimit("max",e,!0,T.toString(a))}lt(e,a){return this.setLimit("max",e,!1,T.toString(a))}setLimit(e,a,s,n){return new wa({...this._def,checks:[...this._def.checks,{kind:e,value:a,inclusive:s,message:T.toString(n)}]})}_addCheck(e){return new wa({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:T.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:T.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:T.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:T.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:T.toString(e)})}multipleOf(e,a){return this._addCheck({kind:"multipleOf",value:e,message:T.toString(a)})}finite(e){return this._addCheck({kind:"finite",message:T.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:-(2**53-1),message:T.toString(e)})._addCheck({kind:"max",inclusive:!0,value:2**53-1,message:T.toString(e)})}get minValue(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxValue(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuee.kind==="int"||e.kind==="multipleOf"&&q.isInteger(e.value))}get isFinite(){let e=null,a=null;for(let s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(a===null||s.value>a)&&(a=s.value):s.kind==="max"&&(e===null||s.valuenew ta({checks:[],typeName:Z.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...$(t)});var aa=class ka extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==S.bigint)return this._getInvalidInput(e);let a,s=new fe;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?e.datan.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),k(a,{code:g.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),k(a,{code:g.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):q.assertNever(n);return{status:s.value,value:e.data}}_getInvalidInput(e){let a=this._getOrReturnCtx(e);return k(a,{code:g.invalid_type,expected:S.bigint,received:a.parsedType}),E}gte(e,a){return this.setLimit("min",e,!0,T.toString(a))}gt(e,a){return this.setLimit("min",e,!1,T.toString(a))}lte(e,a){return this.setLimit("max",e,!0,T.toString(a))}lt(e,a){return this.setLimit("max",e,!1,T.toString(a))}setLimit(e,a,s,n){return new ka({...this._def,checks:[...this._def.checks,{kind:e,value:a,inclusive:s,message:T.toString(n)}]})}_addCheck(e){return new ka({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:T.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:T.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:T.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:T.toString(e)})}multipleOf(e,a){return this._addCheck({kind:"multipleOf",value:e,message:T.toString(a)})}get minValue(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e}get maxValue(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuenew aa({checks:[],typeName:Z.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...$(t)});var sa=class extends D{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==S.boolean){let e=this._getOrReturnCtx(t);return k(e,{code:g.invalid_type,expected:S.boolean,received:e.parsedType}),E}return pe(t.data)}};sa.create=t=>new sa({typeName:Z.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...$(t)});var na=class nn extends D{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==S.date){let n=this._getOrReturnCtx(e);return k(n,{code:g.invalid_type,expected:S.date,received:n.parsedType}),E}if(Number.isNaN(e.data.getTime()))return k(this._getOrReturnCtx(e),{code:g.invalid_date}),E;let a=new fe,s;for(let n of this._def.checks)n.kind==="min"?e.data.getTime()n.value&&(s=this._getOrReturnCtx(e,s),k(s,{code:g.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),a.dirty()):q.assertNever(n);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new nn({...this._def,checks:[...this._def.checks,e]})}min(e,a){return this._addCheck({kind:"min",value:e.getTime(),message:T.toString(a)})}max(e,a){return this._addCheck({kind:"max",value:e.getTime(),message:T.toString(a)})}get minDate(){let e=null;for(let a of this._def.checks)a.kind==="min"&&(e===null||a.value>e)&&(e=a.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let a of this._def.checks)a.kind==="max"&&(e===null||a.valuenew na({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:Z.ZodDate,...$(t)});var ra=class extends D{_parse(t){if(this._getType(t)!==S.symbol){let e=this._getOrReturnCtx(t);return k(e,{code:g.invalid_type,expected:S.symbol,received:e.parsedType}),E}return pe(t.data)}};ra.create=t=>new ra({typeName:Z.ZodSymbol,...$(t)});var wt=class extends D{_parse(t){if(this._getType(t)!==S.undefined){let e=this._getOrReturnCtx(t);return k(e,{code:g.invalid_type,expected:S.undefined,received:e.parsedType}),E}return pe(t.data)}};wt.create=t=>new wt({typeName:Z.ZodUndefined,...$(t)});var kt=class extends D{_parse(t){if(this._getType(t)!==S.null){let e=this._getOrReturnCtx(t);return k(e,{code:g.invalid_type,expected:S.null,received:e.parsedType}),E}return pe(t.data)}};kt.create=t=>new kt({typeName:Z.ZodNull,...$(t)});var ia=class extends D{constructor(){super(...arguments),this._any=!0}_parse(t){return pe(t.data)}};ia.create=t=>new ia({typeName:Z.ZodAny,...$(t)});var Xe=class extends D{constructor(){super(...arguments),this._unknown=!0}_parse(t){return pe(t.data)}};Xe.create=t=>new Xe({typeName:Z.ZodUnknown,...$(t)});var ze=class extends D{_parse(t){let e=this._getOrReturnCtx(t);return k(e,{code:g.invalid_type,expected:S.never,received:e.parsedType}),E}};ze.create=t=>new ze({typeName:Z.ZodNever,...$(t)});var oa=class extends D{_parse(t){if(this._getType(t)!==S.undefined){let e=this._getOrReturnCtx(t);return k(e,{code:g.invalid_type,expected:S.void,received:e.parsedType}),E}return pe(t.data)}};oa.create=t=>new oa({typeName:Z.ZodVoid,...$(t)});var et=class zt extends D{_parse(e){let{ctx:a,status:s}=this._processInputParams(e),n=this._def;if(a.parsedType!==S.array)return k(a,{code:g.invalid_type,expected:S.array,received:a.parsedType}),E;if(n.exactLength!==null){let r=a.data.length>n.exactLength.value,l=a.data.lengthn.maxLength.value&&(k(a,{code:g.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),a.common.async)return Promise.all([...a.data].map((r,l)=>n.type._parseAsync(new Ae(a,r,a.path,l)))).then(r=>fe.mergeArray(s,r));let i=[...a.data].map((r,l)=>n.type._parseSync(new Ae(a,r,a.path,l)));return fe.mergeArray(s,i)}get element(){return this._def.type}min(e,a){return new zt({...this._def,minLength:{value:e,message:T.toString(a)}})}max(e,a){return new zt({...this._def,maxLength:{value:e,message:T.toString(a)}})}length(e,a){return new zt({...this._def,exactLength:{value:e,message:T.toString(a)}})}nonempty(e){return this.min(1,e)}};et.create=(t,e)=>new et({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Z.ZodArray,...$(e)});function tt(t){if(t instanceof we){let e={};for(let a in t.shape){let s=t.shape[a];e[a]=Ze.create(tt(s))}return new we({...t._def,shape:()=>e})}else return t instanceof et?new et({...t._def,type:tt(t.element)}):t instanceof Ze?Ze.create(tt(t.unwrap())):t instanceof Je?Je.create(tt(t.unwrap())):t instanceof Ke?Ke.create(t.items.map(e=>tt(e))):t}var we=class Ne extends D{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape();return this._cached={shape:e,keys:q.objectKeys(e)},this._cached}_parse(e){if(this._getType(e)!==S.object){let c=this._getOrReturnCtx(e);return k(c,{code:g.invalid_type,expected:S.object,received:c.parsedType}),E}let{status:a,ctx:s}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),r=[];if(!(this._def.catchall instanceof ze&&this._def.unknownKeys==="strip"))for(let c in s.data)i.includes(c)||r.push(c);let l=[];for(let c of i){let d=n[c],u=s.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new Ae(s,u,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof ze){let c=this._def.unknownKeys;if(c==="passthrough")for(let d of r)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(c==="strict")r.length>0&&(k(s,{code:g.unrecognized_keys,keys:r}),a.dirty());else if(c!=="strip")throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let d of r){let u=s.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new Ae(s,u,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let c=[];for(let d of l){let u=await d.key,m=await d.value;c.push({key:u,value:m,alwaysSet:d.alwaysSet})}return c}).then(c=>fe.mergeObjectSync(a,c)):fe.mergeObjectSync(a,l)}get shape(){return this._def.shape()}strict(e){return T.errToObj,new Ne({...this._def,unknownKeys:"strict",...e===void 0?{}:{errorMap:(a,s)=>{var i,r;let n=((r=(i=this._def).errorMap)==null?void 0:r.call(i,a,s).message)??s.defaultError;return a.code==="unrecognized_keys"?{message:T.errToObj(e).message??n}:{message:n}}}})}strip(){return new Ne({...this._def,unknownKeys:"strip"})}passthrough(){return new Ne({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ne({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ne({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Z.ZodObject})}setKey(e,a){return this.augment({[e]:a})}catchall(e){return new Ne({...this._def,catchall:e})}pick(e){let a={};for(let s of q.objectKeys(e))e[s]&&this.shape[s]&&(a[s]=this.shape[s]);return new Ne({...this._def,shape:()=>a})}omit(e){let a={};for(let s of q.objectKeys(this.shape))e[s]||(a[s]=this.shape[s]);return new Ne({...this._def,shape:()=>a})}deepPartial(){return tt(this)}partial(e){let a={};for(let s of q.objectKeys(this.shape)){let n=this.shape[s];e&&!e[s]?a[s]=n:a[s]=n.optional()}return new Ne({...this._def,shape:()=>a})}required(e){let a={};for(let s of q.objectKeys(this.shape))if(e&&!e[s])a[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof Ze;)n=n._def.innerType;a[s]=n}return new Ne({...this._def,shape:()=>a})}keyof(){return ts(q.objectKeys(this.shape))}};we.create=(t,e)=>new we({shape:()=>t,unknownKeys:"strip",catchall:ze.create(),typeName:Z.ZodObject,...$(e)}),we.strictCreate=(t,e)=>new we({shape:()=>t,unknownKeys:"strict",catchall:ze.create(),typeName:Z.ZodObject,...$(e)}),we.lazycreate=(t,e)=>new we({shape:t,unknownKeys:"strip",catchall:ze.create(),typeName:Z.ZodObject,...$(e)});var jt=class extends D{_parse(t){let{ctx:e}=this._processInputParams(t),a=this._def.options;function s(n){for(let r of n)if(r.result.status==="valid")return r.result;for(let r of n)if(r.result.status==="dirty")return e.common.issues.push(...r.ctx.common.issues),r.result;let i=n.map(r=>new ve(r.ctx.common.issues));return k(e,{code:g.invalid_union,unionErrors:i}),E}if(e.common.async)return Promise.all(a.map(async n=>{let i={...e,common:{...e.common,issues:[]},parent:null};return{result:await n._parseAsync({data:e.data,path:e.path,parent:i}),ctx:i}})).then(s);{let n,i=[];for(let l of a){let c={...e,common:{...e.common,issues:[]},parent:null},d=l._parseSync({data:e.data,path:e.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!n&&(n={result:d,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(n)return e.common.issues.push(...n.ctx.common.issues),n.result;let r=i.map(l=>new ve(l));return k(e,{code:g.invalid_union,unionErrors:r}),E}}get options(){return this._def.options}};jt.create=(t,e)=>new jt({options:t,typeName:Z.ZodUnion,...$(e)});var De=t=>t instanceof St?De(t.schema):t instanceof Ee?De(t.innerType()):t instanceof Ct?[t.value]:t instanceof It?t.options:t instanceof Tt?q.objectValues(t.enum):t instanceof At?De(t._def.innerType):t instanceof wt?[void 0]:t instanceof kt?[null]:t instanceof Ze?[void 0,...De(t.unwrap())]:t instanceof Je?[null,...De(t.unwrap())]:t instanceof as||t instanceof Mt?De(t.unwrap()):t instanceof Rt?De(t._def.innerType):[],Hr=class rn extends D{_parse(e){let{ctx:a}=this._processInputParams(e);if(a.parsedType!==S.object)return k(a,{code:g.invalid_type,expected:S.object,received:a.parsedType}),E;let s=this.discriminator,n=a.data[s],i=this.optionsMap.get(n);return i?a.common.async?i._parseAsync({data:a.data,path:a.path,parent:a}):i._parseSync({data:a.data,path:a.path,parent:a}):(k(a,{code:g.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),E)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,a,s){let n=new Map;for(let i of a){let r=De(i.shape[e]);if(!r.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let l of r){if(n.has(l))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);n.set(l,i)}}return new rn({typeName:Z.ZodDiscriminatedUnion,discriminator:e,options:a,optionsMap:n,...$(s)})}};function la(t,e){let a=Ue(t),s=Ue(e);if(t===e)return{valid:!0,data:t};if(a===S.object&&s===S.object){let n=q.objectKeys(e),i=q.objectKeys(t).filter(l=>n.indexOf(l)!==-1),r={...t,...e};for(let l of i){let c=la(t[l],e[l]);if(!c.valid)return{valid:!1};r[l]=c.data}return{valid:!0,data:r}}else if(a===S.array&&s===S.array){if(t.length!==e.length)return{valid:!1};let n=[];for(let i=0;i{if(Ha(n)||Ha(i))return E;let r=la(n.value,i.value);return r.valid?((Ya(n)||Ya(i))&&e.dirty(),{status:e.value,value:r.data}):(k(a,{code:g.invalid_intersection_types}),E)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([n,i])=>s(n,i)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}};Nt.create=(t,e,a)=>new Nt({left:t,right:e,typeName:Z.ZodIntersection,...$(a)});var Ke=class on extends D{_parse(e){let{status:a,ctx:s}=this._processInputParams(e);if(s.parsedType!==S.array)return k(s,{code:g.invalid_type,expected:S.array,received:s.parsedType}),E;if(s.data.lengththis._def.items.length&&(k(s,{code:g.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let n=[...s.data].map((i,r)=>{let l=this._def.items[r]||this._def.rest;return l?l._parse(new Ae(s,i,s.path,r)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>fe.mergeArray(a,i)):fe.mergeArray(a,n)}get items(){return this._def.items}rest(e){return new on({...this._def,rest:e})}};Ke.create=(t,e)=>{if(!Array.isArray(t))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ke({items:t,typeName:Z.ZodTuple,rest:null,...$(e)})};var Yr=class ja extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:a,ctx:s}=this._processInputParams(e);if(s.parsedType!==S.object)return k(s,{code:g.invalid_type,expected:S.object,received:s.parsedType}),E;let n=[],i=this._def.keyType,r=this._def.valueType;for(let l in s.data)n.push({key:i._parse(new Ae(s,l,s.path,l)),value:r._parse(new Ae(s,s.data[l],s.path,l)),alwaysSet:l in s.data});return s.common.async?fe.mergeObjectAsync(a,n):fe.mergeObjectSync(a,n)}get element(){return this._def.valueType}static create(e,a,s){return a instanceof D?new ja({keyType:e,valueType:a,typeName:Z.ZodRecord,...$(s)}):new ja({keyType:bt.create(),valueType:e,typeName:Z.ZodRecord,...$(a)})}},ca=class extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:e,ctx:a}=this._processInputParams(t);if(a.parsedType!==S.map)return k(a,{code:g.invalid_type,expected:S.map,received:a.parsedType}),E;let s=this._def.keyType,n=this._def.valueType,i=[...a.data.entries()].map(([r,l],c)=>({key:s._parse(new Ae(a,r,a.path,[c,"key"])),value:n._parse(new Ae(a,l,a.path,[c,"value"]))}));if(a.common.async){let r=new Map;return Promise.resolve().then(async()=>{for(let l of i){let c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return E;(c.status==="dirty"||d.status==="dirty")&&e.dirty(),r.set(c.value,d.value)}return{status:e.value,value:r}})}else{let r=new Map;for(let l of i){let c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return E;(c.status==="dirty"||d.status==="dirty")&&e.dirty(),r.set(c.value,d.value)}return{status:e.value,value:r}}}};ca.create=(t,e,a)=>new ca({valueType:e,keyType:t,typeName:Z.ZodMap,...$(a)});var da=class Na extends D{_parse(e){let{status:a,ctx:s}=this._processInputParams(e);if(s.parsedType!==S.set)return k(s,{code:g.invalid_type,expected:S.set,received:s.parsedType}),E;let n=this._def;n.minSize!==null&&s.data.sizen.maxSize.value&&(k(s,{code:g.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),a.dirty());let i=this._def.valueType;function r(c){let d=new Set;for(let u of c){if(u.status==="aborted")return E;u.status==="dirty"&&a.dirty(),d.add(u.value)}return{status:a.value,value:d}}let l=[...s.data.values()].map((c,d)=>i._parse(new Ae(s,c,s.path,d)));return s.common.async?Promise.all(l).then(c=>r(c)):r(l)}min(e,a){return new Na({...this._def,minSize:{value:e,message:T.toString(a)}})}max(e,a){return new Na({...this._def,maxSize:{value:e,message:T.toString(a)}})}size(e,a){return this.min(e,a).max(e,a)}nonempty(e){return this.min(1,e)}};da.create=(t,e)=>new da({valueType:t,minSize:null,maxSize:null,typeName:Z.ZodSet,...$(e)});var Gr=class Dt extends D{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:a}=this._processInputParams(e);if(a.parsedType!==S.function)return k(a,{code:g.invalid_type,expected:S.function,received:a.parsedType}),E;function s(l,c){return Xt({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Qt(),ot].filter(d=>!!d),issueData:{code:g.invalid_arguments,argumentsError:c}})}function n(l,c){return Xt({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Qt(),ot].filter(d=>!!d),issueData:{code:g.invalid_return_type,returnTypeError:c}})}let i={errorMap:a.common.contextualErrorMap},r=a.data;if(this._def.returns instanceof lt){let l=this;return pe(async function(...c){let d=new ve([]),u=await l._def.args.parseAsync(c,i).catch(p=>{throw d.addIssue(s(c,p)),d}),m=await Reflect.apply(r,this,u);return await l._def.returns._def.type.parseAsync(m,i).catch(p=>{throw d.addIssue(n(m,p)),d})})}else{let l=this;return pe(function(...c){let d=l._def.args.safeParse(c,i);if(!d.success)throw new ve([s(c,d.error)]);let u=Reflect.apply(r,this,d.data),m=l._def.returns.safeParse(u,i);if(!m.success)throw new ve([n(u,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Dt({...this._def,args:Ke.create(e).rest(Xe.create())})}returns(e){return new Dt({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,a,s){return new Dt({args:e||Ke.create([]).rest(Xe.create()),returns:a||Xe.create(),typeName:Z.ZodFunction,...$(s)})}},St=class extends D{get schema(){return this._def.getter()}_parse(t){let{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}};St.create=(t,e)=>new St({getter:t,typeName:Z.ZodLazy,...$(e)});var Ct=class extends D{_parse(t){if(t.data!==this._def.value){let e=this._getOrReturnCtx(t);return k(e,{received:e.data,code:g.invalid_literal,expected:this._def.value}),E}return{status:"valid",value:t.data}}get value(){return this._def.value}};Ct.create=(t,e)=>new Ct({value:t,typeName:Z.ZodLiteral,...$(e)});function ts(t,e){return new It({values:t,typeName:Z.ZodEnum,...$(e)})}var It=class Sa extends D{_parse(e){if(typeof e.data!="string"){let a=this._getOrReturnCtx(e),s=this._def.values;return k(a,{expected:q.joinValues(s),received:a.parsedType,code:g.invalid_type}),E}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let a=this._getOrReturnCtx(e),s=this._def.values;return k(a,{received:a.data,code:g.invalid_enum_value,options:s}),E}return pe(e.data)}get options(){return this._def.values}get enum(){let e={};for(let a of this._def.values)e[a]=a;return e}get Values(){let e={};for(let a of this._def.values)e[a]=a;return e}get Enum(){let e={};for(let a of this._def.values)e[a]=a;return e}extract(e,a=this._def){return Sa.create(e,{...this._def,...a})}exclude(e,a=this._def){return Sa.create(this.options.filter(s=>!e.includes(s)),{...this._def,...a})}};It.create=ts;var Tt=class extends D{_parse(t){let e=q.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==S.string&&a.parsedType!==S.number){let s=q.objectValues(e);return k(a,{expected:q.joinValues(s),received:a.parsedType,code:g.invalid_type}),E}if(this._cache||(this._cache=new Set(q.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let s=q.objectValues(e);return k(a,{received:a.data,code:g.invalid_enum_value,options:s}),E}return pe(t.data)}get enum(){return this._def.values}};Tt.create=(t,e)=>new Tt({values:t,typeName:Z.ZodNativeEnum,...$(e)});var lt=class extends D{unwrap(){return this._def.type}_parse(t){let{ctx:e}=this._processInputParams(t);return e.parsedType!==S.promise&&e.common.async===!1?(k(e,{code:g.invalid_type,expected:S.promise,received:e.parsedType}),E):pe((e.parsedType===S.promise?e.data:Promise.resolve(e.data)).then(a=>this._def.type.parseAsync(a,{path:e.path,errorMap:e.common.contextualErrorMap})))}};lt.create=(t,e)=>new lt({type:t,typeName:Z.ZodPromise,...$(e)});var Ee=class extends D{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Z.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:e,ctx:a}=this._processInputParams(t),s=this._def.effect||null,n={addIssue:i=>{k(a,i),i.fatal?e.abort():e.dirty()},get path(){return a.path}};if(n.addIssue=n.addIssue.bind(n),s.type==="preprocess"){let i=s.transform(a.data,n);if(a.common.async)return Promise.resolve(i).then(async r=>{if(e.value==="aborted")return E;let l=await this._def.schema._parseAsync({data:r,path:a.path,parent:a});return l.status==="aborted"?E:l.status==="dirty"||e.value==="dirty"?ea(l.value):l});{if(e.value==="aborted")return E;let r=this._def.schema._parseSync({data:i,path:a.path,parent:a});return r.status==="aborted"?E:r.status==="dirty"||e.value==="dirty"?ea(r.value):r}}if(s.type==="refinement"){let i=r=>{let l=s.refinement(r,n);if(a.common.async)return Promise.resolve(l);if(l instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return r};if(a.common.async===!1){let r=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return r.status==="aborted"?E:(r.status==="dirty"&&e.dirty(),i(r.value),{status:e.value,value:r.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(r=>r.status==="aborted"?E:(r.status==="dirty"&&e.dirty(),i(r.value).then(()=>({status:e.value,value:r.value}))))}if(s.type==="transform")if(a.common.async===!1){let i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Qe(i))return E;let r=s.transform(i.value,n);if(r instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:r}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(i=>Qe(i)?Promise.resolve(s.transform(i.value,n)).then(r=>({status:e.value,value:r})):E);q.assertNever(s)}};Ee.create=(t,e,a)=>new Ee({schema:t,typeName:Z.ZodEffects,effect:e,...$(a)}),Ee.createWithPreprocess=(t,e,a)=>new Ee({schema:e,effect:{type:"preprocess",transform:t},typeName:Z.ZodEffects,...$(a)});var Ze=class extends D{_parse(t){return this._getType(t)===S.undefined?pe(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ze.create=(t,e)=>new Ze({innerType:t,typeName:Z.ZodOptional,...$(e)});var Je=class extends D{_parse(t){return this._getType(t)===S.null?pe(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Je.create=(t,e)=>new Je({innerType:t,typeName:Z.ZodNullable,...$(e)});var At=class extends D{_parse(t){let{ctx:e}=this._processInputParams(t),a=e.data;return e.parsedType===S.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:e.path,parent:e})}removeDefault(){return this._def.innerType}};At.create=(t,e)=>new At({innerType:t,typeName:Z.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...$(e)});var Rt=class extends D{_parse(t){let{ctx:e}=this._processInputParams(t),a={...e,common:{...e.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return _t(s)?s.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new ve(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ve(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}};Rt.create=(t,e)=>new Rt({innerType:t,typeName:Z.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...$(e)});var ua=class extends D{_parse(t){if(this._getType(t)!==S.nan){let e=this._getOrReturnCtx(t);return k(e,{code:g.invalid_type,expected:S.nan,received:e.parsedType}),E}return{status:"valid",value:t.data}}};ua.create=t=>new ua({typeName:Z.ZodNaN,...$(t)});var as=class extends D{_parse(t){let{ctx:e}=this._processInputParams(t),a=e.data;return this._def.type._parse({data:a,path:e.path,parent:e})}unwrap(){return this._def.type}},ss=class ln extends D{_parse(e){let{status:a,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?E:n.status==="dirty"?(a.dirty(),ea(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{let n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?E:n.status==="dirty"?(a.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(e,a){return new ln({in:e,out:a,typeName:Z.ZodPipeline})}},Mt=class extends D{_parse(t){let e=this._def.innerType._parse(t),a=s=>(Qe(s)&&(s.value=Object.freeze(s.value)),s);return _t(e)?e.then(s=>a(s)):a(e)}unwrap(){return this._def.innerType}};Mt.create=(t,e)=>new Mt({innerType:t,typeName:Z.ZodReadonly,...$(e)}),we.lazycreate;var Z;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Z||(Z={}));var h=bt.create,ke=ta.create;ua.create,aa.create;var Re=sa.create;na.create,ra.create,wt.create,kt.create,ia.create;var _=Xe.create;ze.create,oa.create;var Q=et.create,y=we.create;we.strictCreate;var Y=jt.create;Hr.create,Nt.create,Ke.create;var b=Yr.create;ca.create,da.create,Gr.create,St.create;var N=Ct.create;It.create,Tt.create,lt.create,Ee.create,Ze.create,Je.create,Ee.createWithPreprocess,ss.create;const Le={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},Pe={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"},ns=y({_meta:b(_()).optional(),content:h(),path:h(),sessionId:h()}),rs=y({_meta:b(_()).optional(),limit:ke().optional().nullable(),line:ke().optional().nullable(),path:h(),sessionId:h()}),is=y({_meta:b(_()).optional(),sessionId:h(),terminalId:h()}),os=y({_meta:b(_()).optional(),sessionId:h(),terminalId:h()}),ls=y({_meta:b(_()).optional(),sessionId:h(),terminalId:h()}),cs=y({_meta:b(_()).optional(),sessionId:h(),terminalId:h()}),Qr=b(_()),Xr=Y([N("assistant"),N("user")]),ei=y({_meta:b(_()).optional(),mimeType:h().optional().nullable(),text:h(),uri:h()}),ti=y({_meta:b(_()).optional(),blob:h(),mimeType:h().optional().nullable(),uri:h()}),ds=Y([N("read"),N("edit"),N("delete"),N("move"),N("search"),N("execute"),N("think"),N("fetch"),N("switch_mode"),N("other")]),us=Y([N("pending"),N("in_progress"),N("completed"),N("failed")]),ai=y({_meta:b(_()).optional()}),si=y({_meta:b(_()).optional(),content:h()}),ni=y({_meta:b(_()).optional(),outcome:Y([y({outcome:N("cancelled")}),y({optionId:h(),outcome:N("selected")})])}),ri=y({_meta:b(_()).optional(),terminalId:h()}),ii=y({_meta:b(_()).optional()}),oi=y({_meta:b(_()).optional(),exitCode:ke().optional().nullable(),signal:h().optional().nullable()}),li=y({_meta:b(_()).optional()}),ci=b(_()),di=y({_meta:b(_()).optional(),sessionId:h()}),ui=b(_()),mi=y({_meta:b(_()).optional(),methodId:h()}),pi=y({_meta:b(_()).optional(),modeId:h(),sessionId:h()}),hi=y({_meta:b(_()).optional(),modelId:h(),sessionId:h()}),fi=b(_()),ms=y({_meta:b(_()).optional(),name:h(),value:h()}),Me=y({_meta:b(_()).optional(),audience:Q(Xr).optional().nullable(),lastModified:h().optional().nullable(),priority:ke().optional().nullable()}),ps=Y([ei,ti]),gi=y({_meta:b(_()).optional()}),xi=y({meta:_().optional()}),vi=y({_meta:b(_()).optional(),stopReason:Y([N("end_turn"),N("max_tokens"),N("max_turn_requests"),N("refusal"),N("cancelled")])}),yi=y({_meta:b(_()).optional()}),_i=b(_()),hs=h(),bi=b(_()),wi=y({hint:h()}),ki=y({_meta:b(_()).optional(),kind:Y([N("allow_once"),N("allow_always"),N("reject_once"),N("reject_always")]),name:h(),optionId:h()}),ma=Y([y({content:Y([y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),text:h(),type:N("text")}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),data:h(),mimeType:h(),type:N("image"),uri:h().optional().nullable()}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),data:h(),mimeType:h(),type:N("audio")}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),description:h().optional().nullable(),mimeType:h().optional().nullable(),name:h(),size:ke().optional().nullable(),title:h().optional().nullable(),type:N("resource_link"),uri:h()}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),resource:ps,type:N("resource")})]),type:N("content")}),y({_meta:b(_()).optional(),newText:h(),oldText:h().optional().nullable(),path:h(),type:N("diff")}),y({terminalId:h(),type:N("terminal")})]),pa=y({_meta:b(_()).optional(),line:ke().optional().nullable(),path:h()}),fs=y({_meta:b(_()).optional(),name:h(),value:h()}),ji=y({_meta:b(_()).optional(),exitCode:ke().optional().nullable(),signal:h().optional().nullable()}),Ni=y({_meta:b(_()).optional(),readTextFile:Re().optional(),writeTextFile:Re().optional()}),Si=y({args:Q(h()),command:h(),env:Q(fs),name:h()}),gs=Y([y({headers:Q(ms),name:h(),type:N("http"),url:h()}),y({headers:Q(ms),name:h(),type:N("sse"),url:h()}),Si]),Ot=Y([y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),text:h(),type:N("text")}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),data:h(),mimeType:h(),type:N("image"),uri:h().optional().nullable()}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),data:h(),mimeType:h(),type:N("audio")}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),description:h().optional().nullable(),mimeType:h().optional().nullable(),name:h(),size:ke().optional().nullable(),title:h().optional().nullable(),type:N("resource_link"),uri:h()}),y({_meta:b(_()).optional(),annotations:Me.optional().nullable(),resource:ps,type:N("resource")})]),Ci=y({_meta:b(_()).optional(),description:h().optional().nullable(),id:h(),name:h()}),Ii=y({_meta:b(_()).optional(),http:Re().optional(),sse:Re().optional()}),Ti=y({_meta:b(_()).optional(),audio:Re().optional(),embeddedContext:Re().optional(),image:Re().optional()}),Ai=y({_meta:b(_()).optional(),description:h().optional().nullable(),modelId:h(),name:h()}),Ri=y({_meta:b(_()).optional(),description:h().optional().nullable(),id:hs,name:h()}),xs=y({_meta:b(_()).optional(),availableModels:Q(Ai),currentModelId:h()}),vs=y({_meta:b(_()).optional(),availableModes:Q(Ri),currentModeId:h()}),Mi=y({_meta:b(_()).optional(),content:h(),priority:Y([N("high"),N("medium"),N("low")]),status:Y([N("pending"),N("in_progress"),N("completed")])}),Oi=wi,Ei=Y([di,ui]),ys=y({_meta:b(_()).optional(),args:Q(h()).optional(),command:h(),cwd:h().optional().nullable(),env:Q(fs).optional(),outputByteLimit:ke().optional().nullable(),sessionId:h()}),Zi=y({_meta:b(_()).optional(),exitStatus:ji.optional().nullable(),output:h(),truncated:Re()}),Pi=y({_meta:b(_()).optional(),cwd:h(),mcpServers:Q(gs)}),$i=y({_meta:b(_()).optional(),cwd:h(),mcpServers:Q(gs),sessionId:h()}),Fi=y({_meta:b(_()).optional(),prompt:Q(Ot),sessionId:h()}),Ui=y({_meta:b(_()).optional(),models:xs.optional().nullable(),modes:vs.optional().nullable(),sessionId:h()}),zi=y({_meta:b(_()).optional(),models:xs.optional().nullable(),modes:vs.optional().nullable()}),Di=y({_meta:b(_()).optional(),content:Q(ma).optional().nullable(),kind:ds.optional().nullable(),locations:Q(pa).optional().nullable(),rawInput:b(_()).optional(),rawOutput:b(_()).optional(),status:us.optional().nullable(),title:h().optional().nullable(),toolCallId:h()}),Li=y({_meta:b(_()).optional(),fs:Ni.optional(),terminal:Re().optional()}),qi=y({_meta:b(_()).optional(),loadSession:Re().optional(),mcpCapabilities:Ii.optional(),promptCapabilities:Ti.optional()}),Wi=y({_meta:b(_()).optional(),description:h(),input:Oi.optional().nullable(),name:h()}),Vi=Y([ai,si,ni,ri,Zi,ii,oi,li,ci]),_s=y({_meta:b(_()).optional(),options:Q(ki),sessionId:h(),toolCall:Di}),Bi=y({_meta:b(_()).optional(),clientCapabilities:Li.optional(),protocolVersion:ke()}),Ki=y({_meta:b(_()).optional(),agentCapabilities:qi.optional(),authMethods:Q(Ci).optional(),protocolVersion:ke()}),bs=y({_meta:b(_()).optional(),sessionId:h(),update:Y([y({content:Ot,sessionUpdate:N("user_message_chunk")}),y({content:Ot,sessionUpdate:N("agent_message_chunk")}),y({content:Ot,sessionUpdate:N("agent_thought_chunk")}),y({_meta:b(_()).optional(),content:Q(ma).optional(),kind:Y([N("read"),N("edit"),N("delete"),N("move"),N("search"),N("execute"),N("think"),N("fetch"),N("switch_mode"),N("other")]).optional(),locations:Q(pa).optional(),rawInput:b(_()).optional(),rawOutput:b(_()).optional(),sessionUpdate:N("tool_call"),status:Y([N("pending"),N("in_progress"),N("completed"),N("failed")]).optional(),title:h(),toolCallId:h()}),y({_meta:b(_()).optional(),content:Q(ma).optional().nullable(),kind:ds.optional().nullable(),locations:Q(pa).optional().nullable(),rawInput:b(_()).optional(),rawOutput:b(_()).optional(),sessionUpdate:N("tool_call_update"),status:us.optional().nullable(),title:h().optional().nullable(),toolCallId:h()}),y({_meta:b(_()).optional(),entries:Q(Mi),sessionUpdate:N("plan")}),y({availableCommands:Q(Wi),sessionUpdate:N("available_commands_update")}),y({currentModeId:hs,sessionUpdate:N("current_mode_update")})])});Y([Y([ns,rs,_s,ys,is,os,ls,cs,Qr]),Vi,Ei,Y([Bi,mi,Pi,$i,pi,Fi,hi,fi]),Y([Ki,gi,Ui,zi,xi,vi,yi,_i]),Y([bs,bi])]);function Ji(t,e){let a=new TextEncoder,s=new TextDecoder;return{readable:new ReadableStream({async start(n){let i="",r=e.getReader();try{for(;;){let{value:l,done:c}=await r.read();if(c)break;if(!l)continue;i+=s.decode(l,{stream:!0});let d=i.split(` +`);i=d.pop()||"";for(let u of d){let m=u.trim();if(m)try{let p=JSON.parse(m);n.enqueue(p)}catch(p){console.error("Failed to parse JSON message:",m,p)}}}}finally{r.releaseLock(),n.close()}}}),writable:new WritableStream({async write(n){let i=JSON.stringify(n)+` +`,r=t.getWriter();try{await r.write(a.encode(i))}finally{r.releaseLock()}}})}}var Hi=(en=class{constructor(t,e){Oe(this,he);let a=t(this);Be(this,he,new Yi(async(s,n)=>{var i,r,l,c,d,u,m;switch(s){case Pe.fs_write_text_file:{let p=ns.parse(n);return(i=a.writeTextFile)==null?void 0:i.call(a,p)}case Pe.fs_read_text_file:{let p=rs.parse(n);return(r=a.readTextFile)==null?void 0:r.call(a,p)}case Pe.session_request_permission:{let p=_s.parse(n);return a.requestPermission(p)}case Pe.terminal_create:{let p=ys.parse(n);return(l=a.createTerminal)==null?void 0:l.call(a,p)}case Pe.terminal_output:{let p=is.parse(n);return(c=a.terminalOutput)==null?void 0:c.call(a,p)}case Pe.terminal_release:{let p=os.parse(n);return await((d=a.releaseTerminal)==null?void 0:d.call(a,p))??{}}case Pe.terminal_wait_for_exit:{let p=ls.parse(n);return(u=a.waitForTerminalExit)==null?void 0:u.call(a,p)}case Pe.terminal_kill:{let p=cs.parse(n);return await((m=a.killTerminal)==null?void 0:m.call(a,p))??{}}default:if(s.startsWith("_")){let p=s.substring(1);if(!a.extMethod)throw je.methodNotFound(s);return a.extMethod(p,n)}throw je.methodNotFound(s)}},async(s,n)=>{switch(s){case Pe.session_update:{let i=bs.parse(n);return a.sessionUpdate(i)}default:if(s.startsWith("_")){let i=s.substring(1);return a.extNotification?a.extNotification(i,n):void 0}throw je.methodNotFound(s)}},e))}async initialize(t){return await te(this,he).sendRequest(Le.initialize,t)}async newSession(t){return await te(this,he).sendRequest(Le.session_new,t)}async loadSession(t){return await te(this,he).sendRequest(Le.session_load,t)??{}}async setSessionMode(t){return await te(this,he).sendRequest(Le.session_set_mode,t)??{}}async setSessionModel(t){return await te(this,he).sendRequest(Le.session_set_model,t)??{}}async authenticate(t){return await te(this,he).sendRequest(Le.authenticate,t)??{}}async prompt(t){return await te(this,he).sendRequest(Le.session_prompt,t)}async cancel(t){return await te(this,he).sendNotification(Le.session_cancel,t)}async extMethod(t,e){return await te(this,he).sendRequest(`_${t}`,e)}async extNotification(t,e){return await te(this,he).sendNotification(`_${t}`,e)}},he=new WeakMap,en),Yi=(tn=class{constructor(t,e,a){Oe(this,ce);Oe(this,at,new Map);Oe(this,Lt,0);Oe(this,mt);Oe(this,pt);Oe(this,st);Oe(this,nt,Promise.resolve());Be(this,mt,t),Be(this,pt,e),Be(this,st,a),Te(this,ce,cn).call(this)}async sendRequest(t,e){let a=Ia(this,Lt)._++,s=new Promise((n,i)=>{te(this,at).set(a,{resolve:n,reject:i})});return await Te(this,ce,ut).call(this,{jsonrpc:"2.0",id:a,method:t,params:e}),s}async sendNotification(t,e){await Te(this,ce,ut).call(this,{jsonrpc:"2.0",method:t,params:e})}},at=new WeakMap,Lt=new WeakMap,mt=new WeakMap,pt=new WeakMap,st=new WeakMap,nt=new WeakMap,ce=new WeakSet,cn=async function(){let t=te(this,st).readable.getReader();try{for(;;){let{value:e,done:a}=await t.read();if(a)break;if(e)try{Te(this,ce,dn).call(this,e)}catch(s){console.error("Unexpected error during message processing:",e,s),"id"in e&&e.id!==void 0&&Te(this,ce,ut).call(this,{jsonrpc:"2.0",id:e.id,error:{code:-32700,message:"Parse error"}})}}}finally{t.releaseLock()}},dn=async function(t){if("method"in t&&"id"in t){let e=await Te(this,ce,un).call(this,t.method,t.params);"error"in e&&console.error("Error handling request",t,e.error),await Te(this,ce,ut).call(this,{jsonrpc:"2.0",id:t.id,...e})}else if("method"in t){let e=await Te(this,ce,mn).call(this,t.method,t.params);"error"in e&&console.error("Error handling notification",t,e.error)}else"id"in t?Te(this,ce,pn).call(this,t):console.error("Invalid message",{message:t})},un=async function(t,e){try{return{result:await te(this,mt).call(this,t,e)??null}}catch(a){if(a instanceof je)return a.toResult();if(a instanceof ve)return je.invalidParams(a.format()).toResult();let s;(a instanceof Error||typeof a=="object"&&a&&"message"in a&&typeof a.message=="string")&&(s=a.message);try{return je.internalError(s?JSON.parse(s):{}).toResult()}catch{return je.internalError({details:s}).toResult()}}},mn=async function(t,e){try{return await te(this,pt).call(this,t,e),{result:null}}catch(a){if(a instanceof je)return a.toResult();if(a instanceof ve)return je.invalidParams(a.format()).toResult();let s;(a instanceof Error||typeof a=="object"&&a&&"message"in a&&typeof a.message=="string")&&(s=a.message);try{return je.internalError(s?JSON.parse(s):{}).toResult()}catch{return je.internalError({details:s}).toResult()}}},pn=function(t){let e=te(this,at).get(t.id);e?("result"in t?e.resolve(t.result):"error"in t&&e.reject(t.error),te(this,at).delete(t.id)):console.error("Got response to unknown request",t.id)},ut=async function(t){return Be(this,nt,te(this,nt).then(async()=>{let e=te(this,st).writable.getWriter();try{await e.write(t)}finally{e.releaseLock()}}).catch(e=>{console.error("ACP write error:",e)})),te(this,nt)},tn),je=class Ve extends Error{constructor(a,s,n){super(s);H(this,"code");H(this,"data");this.code=a,this.name="RequestError",this.data=n}static parseError(a){return new Ve(-32700,"Parse error",a)}static invalidRequest(a){return new Ve(-32600,"Invalid request",a)}static methodNotFound(a){return new Ve(-32601,"Method not found",{method:a})}static invalidParams(a){return new Ve(-32602,"Invalid params",a)}static internalError(a){return new Ve(-32603,"Internal error",a)}static authRequired(a){return new Ve(-32e3,"Authentication required",a)}static resourceNotFound(a){return new Ve(-32002,"Resource not found",a&&{uri:a})}toResult(){return{error:{code:this.code,message:this.message,data:this.data}}}toErrorResponse(){return{code:this.code,message:this.message,data:this.data}}},Gi=class{constructor(){H(this,"promise");H(this,"resolve");H(this,"reject");this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},Et=class hn extends Error{constructor(a,s){super(a.message);H(this,"code");H(this,"data");H(this,"id");this.name="JsonRpcError",this.code=a.code,this.data=a.data,this.id=s}static isJsonRpcError(a){return a instanceof hn}toJSON(){return{jsonrpc:"2.0",id:this.id??null,error:{code:this.code,message:this.message,data:this.data}}}};const Qi={PARSE_ERROR:-32700,INVALID_REQUEST:-32600,METHOD_NOT_FOUND:-32601,INVALID_PARAMS:-32602,INTERNAL_ERROR:-32603};var Xi=class{constructor(t,e){H(this,"agent");H(this,"options");H(this,"pendingPermissions",new Map);this.agent=t,this.options=e}async sessionUpdate(t){this.options.onSessionNotification(t)}async writeTextFile(t){if(this.options.writeTextFile)return this.options.writeTextFile(t);throw Error("Write text file handler not implemented")}async readTextFile(t){if(this.options.readTextFile)return this.options.readTextFile(t);throw Error("Read text file handler not implemented")}async requestPermission(t){let e=`${Date.now()}-${Math.random()}`,a=new Gi;return this.pendingPermissions.set(e,a),this.options.onRequestPermission({...t,deferredId:e}),a.promise}resolvePermission(t,e){let a=this.pendingPermissions.get(t);a&&(this.pendingPermissions.delete(t),a.resolve(e))}rejectPermission(t,e){let a=this.pendingPermissions.get(t);a&&(this.pendingPermissions.delete(t),a.reject(e))}};function eo(t){if(t instanceof Et)return t;if(t instanceof Error)return new Et({code:Qi.INTERNAL_ERROR,message:t.message,data:t.stack});if(t&&typeof t=="object"&&"code"in t&&"message"in t&&typeof t.code=="number"&&typeof t.message=="string"){let e=t;return new Et({code:e.code,message:e.message,data:e.data},void 0)}return null}var to=class{constructor(t,e){H(this,"agent");H(this,"callbacks");this.agent=t,this.callbacks=e}handleCatchRpcError(t){return e=>{var s,n;let a=eo(e);throw a?(console.error(`[acp] JSON-RPC error in ${t}:`,a),(n=(s=this.callbacks).on_rpc_error)==null||n.call(s,a),a):e}}extMethod(t,e){return this.agent.extMethod?this.agent.extMethod(t,e):Promise.resolve({})}extNotification(t,e){return this.agent.extNotification?this.agent.extNotification(t,e):Promise.resolve()}async setSessionMode(t){var a,s,n,i,r,l;(s=(a=this.callbacks).on_setSessionMode_start)==null||s.call(a,t);let e=await((i=(n=this.agent).setSessionMode)==null?void 0:i.call(n,t).catch(this.handleCatchRpcError("setSessionMode")));return(l=(r=this.callbacks).on_setSessionMode_response)==null||l.call(r,e,t),e}async setSessionModel(t){var a,s,n,i,r,l;(s=(a=this.callbacks).on_setSessionModel_start)==null||s.call(a,t);let e=await((i=(n=this.agent).setSessionModel)==null?void 0:i.call(n,t).catch(this.handleCatchRpcError("setSessionModel")));return(l=(r=this.callbacks).on_setSessionModel_response)==null||l.call(r,e,t),e}async initialize(t){var a,s,n,i;(s=(a=this.callbacks).on_initialize_start)==null||s.call(a,t);let e=await this.agent.initialize(t).catch(this.handleCatchRpcError("initialize"));return(i=(n=this.callbacks).on_initialize_response)==null||i.call(n,e,t),e}async newSession(t){var a,s,n,i;(s=(a=this.callbacks).on_newSession_start)==null||s.call(a,t);let e=await this.agent.newSession(t).catch(this.handleCatchRpcError("newSession"));return(i=(n=this.callbacks).on_newSession_response)==null||i.call(n,e,t),e}async loadSession(t){var e,a,s,n;if((a=(e=this.callbacks).on_loadSession_start)==null||a.call(e,t),this.agent.loadSession){let i=await this.agent.loadSession(t).catch(this.handleCatchRpcError("loadSession"));return(n=(s=this.callbacks).on_loadSession_response)==null||n.call(s,i,t),i}throw Error("Agent does not support loadSession capability")}async authenticate(t){var e,a,s,n;(a=(e=this.callbacks).on_authenticate_start)==null||a.call(e,t),await this.agent.authenticate(t).catch(this.handleCatchRpcError("authenticate")),(n=(s=this.callbacks).on_authenticate_response)==null||n.call(s,void 0,t)}async prompt(t){var a,s,n,i;(s=(a=this.callbacks).on_prompt_start)==null||s.call(a,t);let e=await this.agent.prompt(t).catch(this.handleCatchRpcError("prompt"));return(i=(n=this.callbacks).on_prompt_response)==null||i.call(n,e,t),e}async cancel(t){var e,a,s,n;(a=(e=this.callbacks).on_cancel_start)==null||a.call(e,t),await this.agent.cancel(t).catch(this.handleCatchRpcError("cancel")),(n=(s=this.callbacks).on_cancel_response)==null||n.call(s,void 0,t)}};const ao=globalThis.ReadableStream,so=globalThis.WritableStream;function no(){return globalThis.ReadableStream!==void 0&&globalThis.WritableStream!==void 0}function ro(t){return new so({write(e){t.readyState===WebSocket.OPEN&&t.send(e)},close(){t.close()},abort(){t.close()}})}function io(t){let e=new ao({start(s){t.onmessage=n=>{if(n.data instanceof ArrayBuffer)s.enqueue(new Uint8Array(n.data));else if(n.data instanceof Uint8Array)s.enqueue(n.data);else{let i=new TextEncoder;s.enqueue(i.encode(`${n.data} +`))}},t.onclose=()=>{s.close()},t.onerror=n=>{s.error(n)}},cancel(){t.close()}}),a=async function*(){let s=e.getReader();try{for(;;){let{value:n,done:i}=await s.read();if(i)break;yield n}}finally{s.releaseLock()}return void 0};return e.values=a,e[Symbol.asyncIterator]=a,e}no()||console.warn("Streams API not supported in this browser. Consider using a polyfill.");var oo=class{constructor(t){H(this,"managers",new Map);H(this,"options");H(this,"currentUrl",null);this.options=t}async connect(t){this.currentUrl=t;let e=this.managers.get(t);if(e){if(e.getConnectionState()==="connected"){let a=e.getStreams();if(a)return a}}else e=new lo({url:t,onConnectionStateChange:a=>this.options.onConnectionStateChange(a,t),onError:a=>this.options.onError(a,t),reconnectAttempts:this.options.reconnectAttempts,reconnectDelay:this.options.reconnectDelay}),this.managers.set(t,e);return await e.connect()}disconnect(t){if(t){let e=this.managers.get(t);e&&(e.disconnect(),this.managers.delete(t))}else{for(let[e,a]of this.managers.entries())a.disconnect(),this.managers.delete(e);this.currentUrl=null}}getCurrentUrl(){return this.currentUrl}getConnectionState(t){let e=t||this.currentUrl;if(!e)return"disconnected";let a=this.managers.get(e);return a?a.getConnectionState():"disconnected"}getActiveConnections(){return Array.from(this.managers.keys()).filter(t=>{var e;return((e=this.managers.get(t))==null?void 0:e.getConnectionState())==="connected"})}},lo=class{constructor(t){H(this,"ws",null);H(this,"options");H(this,"reconnectCount",0);H(this,"reconnectTimer",null);H(this,"readableStream",null);H(this,"writableStream",null);this.options={reconnectAttempts:3,reconnectDelay:1e3,...t}}async connect(){this.updateConnectionState({status:"connecting",url:this.options.url});try{return this.ws=new WebSocket(this.options.url),new Promise((t,e)=>{if(!this.ws){e(Error("WebSocket not initialized"));return}this.ws.onopen=()=>{this.reconnectCount=0,this.updateConnectionState({status:"connected",url:this.options.url}),this.ws&&(this.readableStream=io(this.ws),this.writableStream=ro(this.ws),t({readable:this.readableStream,writable:this.writableStream}))},this.ws.onerror=a=>{let s=Error("WebSocket connection error");this.options.onError(s),this.updateConnectionState({status:"error",error:s.message,url:this.options.url}),e(s)},this.ws.onclose=()=>{this.updateConnectionState({status:"disconnected",url:this.options.url}),this.attemptReconnect()}})}catch(t){let e=t instanceof Error?t:Error(String(t));throw this.options.onError(e),this.updateConnectionState({status:"error",error:e.message,url:this.options.url}),e}}disconnect(){this.reconnectTimer&&(this.reconnectTimer=(clearTimeout(this.reconnectTimer),null)),this.ws&&(this.ws=(this.ws.close(),null)),this.readableStream=null,this.writableStream=null,this.updateConnectionState({status:"disconnected"})}attemptReconnect(){let t=this.options.reconnectAttempts??3;this.reconnectCount{try{await this.connect()}catch{}},this.options.reconnectDelay))}updateConnectionState(t){this.options.onConnectionStateChange(t)}getConnectionState(){if(!this.ws)return"disconnected";switch(this.ws.readyState){case WebSocket.CONNECTING:return"connecting";case WebSocket.OPEN:return"connected";case WebSocket.CLOSING:case WebSocket.CLOSED:return"disconnected";default:return"error"}}getStreams(){return this.readableStream&&this.writableStream?{readable:this.readableStream,writable:this.writableStream}:null}},ws=t=>{let e,a=new Set,s=(l,c)=>{let d=typeof l=="function"?l(e):l;if(!Object.is(d,e)){let u=e;e=c??(typeof d!="object"||!d)?d:Object.assign({},e,d),a.forEach(m=>m(e,u))}},n=()=>e,i={setState:s,getState:n,getInitialState:()=>r,subscribe:l=>(a.add(l),()=>a.delete(l))},r=e=t(s,n,i);return i},co=(t=>t?ws(t):ws),M=Ta(vn(),1),uo=t=>t;function mo(t,e=uo){let a=M.useSyncExternalStore(t.subscribe,M.useCallback(()=>e(t.getState()),[t,e]),M.useCallback(()=>e(t.getInitialState()),[t,e]));return M.useDebugValue(a),a}var ks=t=>{let e=co(t),a=s=>mo(e,s);return Object.assign(a,e),a};const po=(t=>t?ks(t):ks)((t,e)=>({connections:{},activeConnectionUrl:null,connectionState:{status:"disconnected"},agentCapabilities:null,activeSessionId:null,notifications:{},sessionModes:{},setConnection:(a,s,n)=>{t(i=>{var r,l;return{connections:{...i.connections,[a]:{url:a,state:s,capabilities:n??((r=i.connections[a])==null?void 0:r.capabilities)??null}},...i.activeConnectionUrl===a&&{connectionState:s,agentCapabilities:n??((l=i.connections[a])==null?void 0:l.capabilities)??null}}})},setActiveConnection:a=>{t(s=>{let n=a?s.connections[a]:null;return{activeConnectionUrl:a,connectionState:(n==null?void 0:n.state)??{status:"disconnected"},agentCapabilities:(n==null?void 0:n.capabilities)??null}})},removeConnection:a=>{t(s=>{let n={...s.connections};delete n[a];let i=s.activeConnectionUrl===a?null:s.activeConnectionUrl,r=i?n[i]:null;return{connections:n,activeConnectionUrl:i,connectionState:(r==null?void 0:r.state)??{status:"disconnected"},agentCapabilities:(r==null?void 0:r.capabilities)??null}})},setConnectionState:a=>{t({connectionState:a});let{activeConnectionUrl:s}=e();s&&e().setConnection(s,a)},setAgentCapabilities:a=>{t({agentCapabilities:a});let{activeConnectionUrl:s}=e();s&&e().setConnection(s,e().connectionState,a)},setActiveSessionId:a=>{t({activeSessionId:a})},setActiveModeId:(a,s)=>{t(n=>{let i=n.sessionModes[a];return{sessionModes:{...n.sessionModes,[a]:{...i,currentModeId:s}}}})},setModeState:(a,s)=>{t(n=>({sessionModes:{...n.sessionModes,[a]:s}}))},addNotification:a=>{var l;let s=e().notifications,n;if(n=a.type==="session_notification"&&((l=a.data)!=null&&l.sessionId)?a.data.sessionId:e().activeSessionId,!n)return;let i={...a,id:`${Date.now()}-${Math.random()}`,timestamp:Date.now()},r=s[n]||[];t({notifications:{...s,[n]:[...r,i]}})},clearNotifications:a=>{if(a){let s={...e().notifications};delete s[a],t({notifications:s})}else t({notifications:{}})},getActiveNotifications:()=>{let{activeSessionId:a,notifications:s}=e();return a&&s[a]||[]},getActiveConnection:()=>{let{activeConnectionUrl:a,connections:s}=e();return a&&s[a]||null},getConnection:a=>{let{connections:s}=e();return s[a]||{url:a,state:{status:"disconnected"},capabilities:null}}}));var ho=typeof window<"u"?M.useLayoutEffect:M.useEffect;function qe(t){let e=(0,M.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return ho(()=>{e.current=t},[t]),(0,M.useCallback)((...a)=>{var s;return(s=e.current)==null?void 0:s.call(e,...a)},[e])}function fo(t){let{wsUrl:e,autoConnect:a=!0,reconnectAttempts:s=3,reconnectDelay:n=2e3,clientOptions:i={}}=t,{getConnection:r,notifications:l,activeSessionId:c,agentCapabilities:d,sessionModes:u,setActiveModeId:m,setModeState:p,setActiveSessionId:f,setConnection:x,setActiveConnection:v,addNotification:w,clearNotifications:j}=po(),[C,A]=(0,M.useState)(null),[I,O]=(0,M.useState)(null),[U,L]=(0,M.useState)(!1),[V,K]=(0,M.useState)([]),B=(0,M.useRef)(null),P=(0,M.useRef)(null),F=(0,M.useRef)(null),ue=(0,M.useRef)(!1),X=qe((W,G)=>{x(G,W),w({type:"connection_change",data:W})}),me=qe((W,G)=>{w({type:"error",data:W})}),ge=qe(W=>{w({type:"session_notification",data:W}),W.update.sessionUpdate==="available_commands_update"&&K(W.update.availableCommands)}),de=qe(W=>{A(W)}),ye=qe(async()=>{B.current||(B.current=new oo({onConnectionStateChange:X,onError:me,reconnectAttempts:s,reconnectDelay:n})),v(e);let{readable:W,writable:G}=await B.current.connect(e);O(new to(new Hi(J=>{let ee=new Xi(J,{...i,onRequestPermission:ie=>{var R;(R=i==null?void 0:i.onRequestPermission)==null||R.call(i,ie),de(ie)},onSessionNotification:ie=>{var R;(R=i==null?void 0:i.onSessionNotification)==null||R.call(i,ie),ge(ie)},onRpcError:ie=>{var R;(R=i==null?void 0:i.onRpcError)==null||R.call(i,ie),me(ie,e)}});return P.current=ee,ee},Ji(G,W)),{on_initialize_response:J=>{let ee=J.agentCapabilities;console.log("[acp] Agent capabilities",ee),x(e,r(e).state,ee)},on_newSession_response:J=>{console.log("[acp] New session created",J);let ee=J.sessionId;f(ee),p(ee,J.modes)},on_loadSession_response:(J,ee)=>{console.log("[acp] Session resumed",ee);let ie=ee.sessionId;f(ie),p(ie,J.modes)},on_prompt_start:J=>{for(let ee of J.prompt)w({type:"session_notification",data:{sessionId:J.sessionId,update:{sessionUpdate:"user_message_chunk",content:ee}}})},on_setSessionMode_start:J=>{console.log("[acp] Session mode set",J);let ee=J.sessionId;m(ee,J.modeId)},on_rpc_error:J=>me(J,e)}))}),Se=qe(W=>{let G=W||e;B.current&&(W?B.current.disconnect(W):(B.current.disconnect(G),B.current=null,P.current=null,O(null))),W||(A(null),K([]),ue.current=!1,F.current=null,L(!1))}),Ce=qe(W=>{if(C&&P.current){let G=C.deferredId;G&&P.current.resolvePermission(G,W)}A(null)}),Ie=qe(W=>{if(C&&P.current){let G=C.deferredId;G&&P.current.rejectPermission(G,W)}A(null)});return(0,M.useEffect)(()=>(f(null),a&&ye().catch(console.error),()=>{Se()}),[a,e]),{connect:ye,disconnect:Se,connectionState:r(e).state,activeSessionId:c,notifications:c&&l[c]||[],isSessionLoading:U,clearNotifications:j,pendingPermission:C,setActiveSessionId:f,resolvePermission:Ce,rejectPermission:Ie,agent:I,agentCapabilities:d,sessionMode:c?u[c]:null,availableCommands:V}}function go(t,e){if(!t)throw Error(e)}function xo(t){let e=[];for(let a of t){let s=e[e.length-1];s&&vo(s.at(0),a)?s.push(a):e.push([a])}return e}var js=["tool_call","tool_call_update"];function vo(t,e){return t?t.type==="session_notification"&&e.type==="session_notification"?js.includes(t.data.update.sessionUpdate)&&js.includes(e.data.update.sessionUpdate)?!0:t.data.update.sessionUpdate===e.data.update.sessionUpdate:t.type===e.type:!1}function yo(t){var a;let e=new Map;for(let s of t)e.has(s.toolCallId)||e.set(s.toolCallId,[]),(a=e.get(s.toolCallId))==null||a.push(s);return Array.from(e.values()).map(s=>{var i;let n=s.at(0);return go(!!(n!=null&&n.toolCallId),"Tool call ID is required"),{...n,toolCallId:n.toolCallId,status:(i=s.at(-1))==null?void 0:i.status,rawOutput:Object.assign({},...s.map(r=>r.rawOutput)),locations:s.flatMap(r=>r.locations||[]),content:s.flatMap(r=>r.content||[])}})}var _o=be(),o=Ta(Tn(),1);const Ns=(0,M.memo)(t=>{let e=(0,_o.c)(10),{theme:a}=dr(),s;e[0]===t.original?s=e[1]:(s=_r({original:t.original,mergeControls:!1,collapseUnchanged:{margin:3,minSize:4}}),e[0]=t.original,e[1]=s);let n;e[2]===s?n=e[3]:(n=[An.lineWrapping,s],e[2]=s,e[3]=n);let i=n,r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r={"--marimo-code-editor-font-size":"10px"},e[4]=r):r=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l={lineNumbers:!1,foldGutter:!1,dropCursor:!1,highlightActiveLineGutter:!1,allowMultipleSelections:!1,indentOnInput:!1,bracketMatching:!1,closeBrackets:!1,autocompletion:!1},e[5]=l):l=e[5];let c=a==="dark"?"dark":"light",d;return e[6]!==i||e[7]!==t.modified||e[8]!==c?(d=(0,o.jsx)(yr,{className:"cm font-mono",style:r,extensions:i,readOnly:!0,basicSetup:l,theme:c,value:t.modified}),e[6]=i,e[7]=t.modified,e[8]=c,e[9]=d):d=e[9],d});Ns.displayName="ReadonlyDiff";function bo(t){let e=t[0];return e.sessionUpdate==="tool_call"||e.sessionUpdate==="tool_call_update"}function wo(t){return t[0].sessionUpdate==="agent_thought_chunk"}function ko(t){return t[0].sessionUpdate==="user_message_chunk"}function jo(t){return t[0].sessionUpdate==="agent_message_chunk"}function No(t){return t[0].sessionUpdate==="plan"}var ne=be();function So(t){if(t.length===0)return t;let e=[],a=null;for(let s of t)s.type==="text"?a===null?a=s.text:a+=s.text:(a!==null&&(e.push({type:"text",text:a}),a=null),e.push(s));return a!==null&&e.push({type:"text",text:a}),e}const Co=t=>{let e=(0,ne.c)(14),a=t.data,s=t.data.message;if(s.includes("WebSocket"))return null;a instanceof Et&&(s=`${typeof a.data=="string"?a.data:JSON.stringify(a.data)} (code: ${a.code})`);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)("div",{className:"flex-shrink-0",children:(0,o.jsx)(Vt,{className:"h-5 w-5 text-[var(--red-11)]"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)("div",{className:"flex items-center gap-2 mb-2",children:(0,o.jsx)("h4",{className:"text-sm font-medium text-[var(--red-11)]",children:"Agent Error"})}),e[1]=i):i=e[1];let r;e[2]===s?r=e[3]:(r=(0,o.jsx)("div",{className:"text-sm text-[var(--red-11)] leading-relaxed mb-3",children:s}),e[2]=s,e[3]=r);let l;e[4]===t.onRetry?l=e[5]:(l=t.onRetry&&(0,o.jsxs)(le,{size:"xs",variant:"outline",onClick:t.onRetry,className:"text-[var(--red-11)] border-[var(--red-6)] hover:bg-[var(--red-3)]",children:[(0,o.jsx)(Wa,{className:"h-3 w-3 mr-1"}),"Retry"]}),e[4]=t.onRetry,e[5]=l);let c;e[6]===t.onDismiss?c=e[7]:(c=t.onDismiss&&(0,o.jsxs)(le,{size:"xs",variant:"ghost",onClick:t.onDismiss,className:"text-[var(--red-10)] hover:bg-[var(--red-3)]",children:[(0,o.jsx)(Pa,{className:"h-3 w-3 mr-1"}),"Dismiss"]}),e[6]=t.onDismiss,e[7]=c);let d;e[8]!==l||e[9]!==c?(d=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[l,c]}),e[8]=l,e[9]=c,e[10]=d):d=e[10];let u;return e[11]!==r||e[12]!==d?(u=(0,o.jsx)("div",{className:"border border-[var(--red-6)] bg-[var(--red-2)] rounded-lg p-4 my-2","data-block-type":"error",children:(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[n,(0,o.jsxs)("div",{className:"flex-1 min-w-0",children:[i,r,d]})]})}),e[11]=r,e[12]=d,e[13]=u):u=e[13],u},ha=()=>{let t=(0,ne.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"flex-1 flex items-center justify-center h-full min-h-[200px] flex-col",children:(0,o.jsxs)("div",{className:"text-center space-y-3",children:[(0,o.jsx)("div",{className:"w-12 h-12 mx-auto rounded-full bg-[var(--blue-3)] flex items-center justify-center",children:(0,o.jsx)(gt,{className:"h-6 w-6 text-[var(--blue-10)]"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{className:"text-lg font-medium text-foreground mb-1",children:"Agent is connected"}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground",children:"You can start chatting with your agent now"})]})]})}),t[0]=e):e=t[0],e},Io=t=>{let e=(0,ne.c)(34),{status:a}=t.data;if(t.isConnected&&t.isOnlyBlock){let A;return e[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,o.jsx)(ha,{}),e[0]=A):A=e[0],A}let s;e[1]===a?s=e[2]:(s=(()=>{switch(a){case"connected":return{icon:(0,o.jsx)(Gt,{className:"h-4 w-4"}),title:"Connected to Agent",message:"Successfully established connection with the AI agent",bgColor:"bg-[var(--blue-2)]",borderColor:"border-[var(--blue-6)]",textColor:"text-[var(--blue-11)]",iconColor:"text-[var(--blue-10)]"};case"disconnected":return{icon:(0,o.jsx)(it,{className:"h-4 w-4"}),title:"Disconnected from Agent",message:"Connection to the AI agent has been lost",bgColor:"bg-[var(--amber-2)]",borderColor:"border-[var(--amber-6)]",textColor:"text-[var(--amber-11)]",iconColor:"text-[var(--amber-10)]"};case"connecting":return{icon:(0,o.jsx)(Gt,{className:"h-4 w-4 animate-pulse"}),title:"Connecting to Agent",message:"Establishing connection with the AI agent...",bgColor:"bg-[var(--gray-2)]",borderColor:"border-[var(--gray-6)]",textColor:"text-[var(--gray-11)]",iconColor:"text-[var(--gray-10)]"};case"error":return{icon:(0,o.jsx)(it,{className:"h-4 w-4"}),title:"Connection Error",message:"Failed to connect to the AI agent",bgColor:"bg-[var(--red-2)]",borderColor:"border-[var(--red-6)]",textColor:"text-[var(--red-11)]",iconColor:"text-[var(--red-10)]"};default:return{icon:(0,o.jsx)(it,{className:"h-4 w-4"}),title:"Connection Status Changed",message:`Agent connection status: ${a}`,bgColor:"bg-[var(--gray-2)]",borderColor:"border-[var(--gray-6)]",textColor:"text-[var(--gray-11)]",iconColor:"text-[var(--gray-10)]"}}})(),e[1]=a,e[2]=s);let n=s,i=a==="disconnected"||a==="error",r=`border ${n.borderColor} ${n.bgColor} rounded-lg p-3 my-2`,l=`flex-shrink-0 ${n.iconColor}`,c;e[3]!==n.icon||e[4]!==l?(c=(0,o.jsx)("div",{className:l,children:n.icon}),e[3]=n.icon,e[4]=l,e[5]=c):c=e[5];let d=`text-sm font-medium ${n.textColor}`,u;e[6]!==n.title||e[7]!==d?(u=(0,o.jsx)("h4",{className:d,children:n.title}),e[6]=n.title,e[7]=d,e[8]=u):u=e[8];let m;e[9]===t.timestamp?m=e[10]:(m=t.timestamp&&(0,o.jsx)("span",{className:"text-xs text-muted-foreground",children:new Date(t.timestamp).toLocaleTimeString()}),e[9]=t.timestamp,e[10]=m);let p;e[11]!==u||e[12]!==m?(p=(0,o.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[u,m]}),e[11]=u,e[12]=m,e[13]=p):p=e[13];let f=`text-sm ${n.textColor} opacity-90 mb-2`,x;e[14]!==n.message||e[15]!==f?(x=(0,o.jsx)("div",{className:f,children:n.message}),e[14]=n.message,e[15]=f,e[16]=x):x=e[16];let v;e[17]!==n.bgColor||e[18]!==n.borderColor||e[19]!==n.textColor||e[20]!==t.onRetry||e[21]!==i?(v=i&&t.onRetry&&(0,o.jsxs)(le,{size:"xs",variant:"outline",onClick:t.onRetry,className:`${n.textColor} ${n.borderColor} hover:${n.bgColor}`,children:[(0,o.jsx)(Wa,{className:"h-3 w-3 mr-1"}),"Retry Connection"]}),e[17]=n.bgColor,e[18]=n.borderColor,e[19]=n.textColor,e[20]=t.onRetry,e[21]=i,e[22]=v):v=e[22];let w;e[23]!==v||e[24]!==p||e[25]!==x?(w=(0,o.jsxs)("div",{className:"flex-1 min-w-0",children:[p,x,v]}),e[23]=v,e[24]=p,e[25]=x,e[26]=w):w=e[26];let j;e[27]!==w||e[28]!==c?(j=(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[c,w]}),e[27]=w,e[28]=c,e[29]=j):j=e[29];let C;return e[30]!==a||e[31]!==r||e[32]!==j?(C=(0,o.jsx)("div",{className:r,"data-block-type":"connection-change","data-status":a,children:j}),e[30]=a,e[31]=r,e[32]=j,e[33]=C):C=e[33],C},To=t=>{let e=(0,ne.c)(7),a=t.startTimestamp/1e3,s=t.endTimestamp/1e3,n=`Thought for ${Math.round(s-a)||"1"}s`,i;e[0]===t.data?i=e[1]:(i=t.data.map(Wo),e[0]=t.data,e[1]=i);let r;e[2]===i?r=e[3]:(r=(0,o.jsx)("div",{className:"flex flex-col gap-2 text-muted-foreground",children:(0,o.jsx)(Zt,{data:i})}),e[2]=i,e[3]=r);let l;return e[4]!==n||e[5]!==r?(l=(0,o.jsx)("div",{className:"text-xs text-muted-foreground",children:(0,o.jsx)(xa,{title:n,children:r})}),e[4]=n,e[5]=r,e[6]=l):l=e[6],l},Ao=t=>{let e=(0,ne.c)(14),a,s,n,i;if(e[0]!==t.data){let c=t.data.flatMap(Vo);c=Rn(c,Bo),n="rounded-lg border bg-background p-2 text-xs";let d=(0,o.jsxs)("span",{className:"font-medium text-muted-foreground",children:["To-dos"," ",(0,o.jsx)("span",{className:"font-normal text-muted-foreground",children:c.length})]});e[5]===d?i=e[6]:(i=(0,o.jsx)("div",{className:"flex items-center justify-between mb-2",children:d}),e[5]=d,e[6]=i),a="flex flex-col gap-1",s=c.map(Ko),e[0]=t.data,e[1]=a,e[2]=s,e[3]=n,e[4]=i}else a=e[1],s=e[2],n=e[3],i=e[4];let r;e[7]!==a||e[8]!==s?(r=(0,o.jsx)("ul",{className:a,children:s}),e[7]=a,e[8]=s,e[9]=r):r=e[9];let l;return e[10]!==n||e[11]!==i||e[12]!==r?(l=(0,o.jsxs)("div",{className:n,children:[i,r]}),e[10]=n,e[11]=i,e[12]=r,e[13]=l):l=e[13],l},Ro=t=>{let e=(0,ne.c)(4),a;e[0]===t.data?a=e[1]:(a=t.data.map(Jo),e[0]=t.data,e[1]=a);let s;return e[2]===a?s=e[3]:(s=(0,o.jsx)("div",{className:"flex flex-col gap-2 text-muted-foreground border p-2 bg-background rounded break-words overflow-x-hidden",children:(0,o.jsx)(Zt,{data:a})}),e[2]=a,e[3]=s),s},Mo=t=>{let e=(0,ne.c)(4),a;e[0]===t.data?a=e[1]:(a=So(t.data.map(Ho)),e[0]=t.data,e[1]=a);let s=a,n;return e[2]===s?n=e[3]:(n=(0,o.jsx)("div",{className:"flex flex-col gap-2",children:(0,o.jsx)(Zt,{data:s})}),e[2]=s,e[3]=n),n},Zt=t=>{let e=(0,ne.c)(5),a=Yo,s;if(e[0]!==t.data){let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(r,l)=>(0,o.jsx)(M.Fragment,{children:a(r)},`${r.type}-${l}`),e[2]=i):i=e[2],s=t.data.map(i),e[0]=t.data,e[1]=s}else s=e[1];let n;return e[3]===s?n=e[4]:(n=(0,o.jsx)("div",{children:s}),e[3]=s,e[4]=n),n},Oo=t=>{let e=(0,ne.c)(3),a=`data:${t.data.mimeType};base64,${t.data.data}`,s=t.data.uri??"",n;return e[0]!==a||e[1]!==s?(n=(0,o.jsx)("img",{src:a,alt:s}),e[0]=a,e[1]=s,e[2]=n):n=e[2],n},Eo=t=>{let e=(0,ne.c)(3),a=`data:${t.data.mimeType};base64,${t.data.data}`,s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)("track",{kind:"captions"}),e[0]=s):s=e[0];let n;return e[1]===a?n=e[2]:(n=(0,o.jsx)("audio",{src:a,controls:!0,children:s}),e[1]=a,e[2]=n),n},Zo=t=>{let e=(0,ne.c)(12);if("text"in t.data.resource){let a;e[0]===t.data.resource.mimeType?a=e[1]:(a=t.data.resource.mimeType&&(0,o.jsx)(fa,{mimeType:t.data.resource.mimeType}),e[0]=t.data.resource.mimeType,e[1]=a);let s;e[2]!==t.data.resource.uri||e[3]!==a?(s=(0,o.jsx)(Va,{children:(0,o.jsxs)("span",{className:"flex items-center gap-1 hover:bg-muted rounded-md px-1",children:[a,t.data.resource.uri]})}),e[2]=t.data.resource.uri,e[3]=a,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)("span",{className:"text-muted-foreground text-xs mb-1 italic",children:"Formatted for agents, not humans."}),e[5]=n):n=e[5];let i;e[6]!==t.data.resource.mimeType||e[7]!==t.data.resource.text?(i=(0,o.jsxs)(Ba,{className:"max-h-96 overflow-y-auto scrollbar-thin whitespace-pre-wrap w-full max-w-[500px]",children:[n,t.data.resource.mimeType==="text/plain"?(0,o.jsx)("pre",{className:"text-xs whitespace-pre-wrap p-2 bg-muted rounded-md break-words",children:t.data.resource.text}):(0,o.jsx)(La,{content:t.data.resource.text})]}),e[6]=t.data.resource.mimeType,e[7]=t.data.resource.text,e[8]=i):i=e[8];let r;return e[9]!==s||e[10]!==i?(r=(0,o.jsxs)(Ka,{children:[s,i]}),e[9]=s,e[10]=i,e[11]=r):r=e[11],r}},Po=t=>{var i;let e=(0,ne.c)(19);if(t.data.uri.startsWith("http")){let r;return e[0]!==t.data.name||e[1]!==t.data.uri?(r=(0,o.jsx)("a",{href:t.data.uri,target:"_blank",rel:"noopener noreferrer",className:"text-link hover:underline px-1",children:t.data.name}),e[0]=t.data.name,e[1]=t.data.uri,e[2]=r):r=e[2],r}if((i=t.data.mimeType)!=null&&i.startsWith("image/")){let r;e[3]===t.data.mimeType?r=e[4]:(r=(0,o.jsx)(fa,{mimeType:t.data.mimeType}),e[3]=t.data.mimeType,e[4]=r);let l=t.data.name||t.data.title||t.data.uri,c;e[5]!==r||e[6]!==l?(c=(0,o.jsx)(Va,{children:(0,o.jsxs)("span",{className:"flex items-center gap-1 hover:bg-muted rounded-md px-1 cursor-pointer",children:[r,l]})}),e[5]=r,e[6]=l,e[7]=c):c=e[7];let d=t.data.name||t.data.title||"Image",u;e[8]!==t.data.uri||e[9]!==d?(u=(0,o.jsx)(Ba,{className:"w-auto max-w-[500px] p-2",children:(0,o.jsx)("img",{src:t.data.uri,alt:d,className:"max-w-full max-h-96 object-contain"})}),e[8]=t.data.uri,e[9]=d,e[10]=u):u=e[10];let m;return e[11]!==c||e[12]!==u?(m=(0,o.jsx)("div",{children:(0,o.jsxs)(Ka,{children:[c,u]})}),e[11]=c,e[12]=u,e[13]=m):m=e[13],m}let a;e[14]===t.data.mimeType?a=e[15]:(a=t.data.mimeType&&(0,o.jsx)(fa,{mimeType:t.data.mimeType}),e[14]=t.data.mimeType,e[15]=a);let s=t.data.name||t.data.title||t.data.uri,n;return e[16]!==a||e[17]!==s?(n=(0,o.jsxs)("span",{className:"flex items-center gap-1 px-1",children:[a,s]}),e[16]=a,e[17]=s,e[18]=n):n=e[18],n},fa=t=>{let e=(0,ne.c)(6);if(t.mimeType.startsWith("image/")){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(Gn,{className:"h-2 w-2 flex-shrink-0"}),e[0]=s):s=e[0],s}if(t.mimeType.startsWith("audio/")){let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(Qn,{className:"h-2 w-2 flex-shrink-0"}),e[1]=s):s=e[1],s}if(t.mimeType.startsWith("video/")){let s;return e[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(Xn,{className:"h-2 w-2 flex-shrink-0"}),e[2]=s):s=e[2],s}if(t.mimeType.startsWith("text/")){let s;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(bn,{className:"h-2 w-2 flex-shrink-0"}),e[3]=s):s=e[3],s}if(t.mimeType.startsWith("application/")){let s;return e[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(Yn,{className:"h-2 w-2 flex-shrink-0"}),e[4]=s):s=e[4],s}let a;return e[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(er,{className:"h-2 w-2 flex-shrink-0"}),e[5]=a):a=e[5],a},$o=t=>{let e=(0,ne.c)(11);if(t.data.length===0)return null;let a=t.data[0].sessionUpdate,s;e[0]!==a||e[1]!==t.endTimestamp||e[2]!==t.isLastBlock||e[3]!==t.startTimestamp?(s=l=>{if(bo(l))return(0,o.jsx)(Uo,{data:l,isLastBlock:t.isLastBlock});if(wo(l))return(0,o.jsx)(To,{startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp,data:l});if(ko(l))return(0,o.jsx)(Ro,{data:l});if(jo(l))return(0,o.jsx)(Mo,{data:l});if(No(l))return(0,o.jsx)(Ao,{data:l});if(a==="available_commands_update")return null;if(a==="current_mode_update"){let c=l.at(-1);return(c==null?void 0:c.sessionUpdate)==="current_mode_update"?(0,o.jsx)(Fo,{data:c}):null}return(0,o.jsx)(xa,{title:l[0].sessionUpdate,children:(0,o.jsx)(Ea,{data:l,format:"tree",className:"max-h-64"})})},e[0]=a,e[1]=t.endTimestamp,e[2]=t.isLastBlock,e[3]=t.startTimestamp,e[4]=s):s=e[4];let n=s,i;e[5]!==t.data||e[6]!==n?(i=n(t.data),e[5]=t.data,e[6]=n,e[7]=i):i=e[7];let r;return e[8]!==a||e[9]!==i?(r=(0,o.jsx)("div",{className:"flex flex-col text-sm gap-2","data-block-type":a,children:i}),e[8]=a,e[9]=i,e[10]=r):r=e[10],r},Fo=t=>{let e=(0,ne.c)(2),{currentModeId:a}=t.data,s;return e[0]===a?s=e[1]:(s=(0,o.jsxs)("div",{children:["Mode: ",a]}),e[0]=a,e[1]=s),s},Uo=t=>{let e=(0,ne.c)(9),a,s;if(e[0]!==t.data||e[1]!==t.isLastBlock){let i=yo(t.data);a="flex flex-col text-muted-foreground overflow-x-hidden";let r;e[4]===t.isLastBlock?r=e[5]:(r=l=>(0,o.jsx)(xa,{status:l.status==="completed"?"success":l.status==="failed"?"error":(l.status==="in_progress"||l.status==="pending")&&!t.isLastBlock?"loading":void 0,title:(0,o.jsx)("span",{"data-tool-data":JSON.stringify(l),children:Do(zo(l))}),defaultIcon:(0,o.jsx)(or,{className:"h-3 w-3"}),children:(0,o.jsx)(Cs,{data:l})},l.toolCallId),e[4]=t.isLastBlock,e[5]=r),s=i.map(r),e[0]=t.data,e[1]=t.isLastBlock,e[2]=a,e[3]=s}else a=e[2],s=e[3];let n;return e[6]!==a||e[7]!==s?(n=(0,o.jsx)("div",{className:a,children:s}),e[6]=a,e[7]=s,e[8]=n):n=e[8],n},Ss=t=>{let e=(0,ne.c)(4),a;e[0]===t.data?a=e[1]:(a=t.data.map(Go),e[0]=t.data,e[1]=a);let s;return e[2]===a?s=e[3]:(s=(0,o.jsx)("div",{className:"flex flex-col gap-2 text-muted-foreground",children:a}),e[2]=a,e[3]=s),s};function zo(t){var n;let e=t.title;e==='"undefined"'&&(e=void 0);let a=e||yn.startCase(t.kind||"")||"Tool call",s=(n=t.locations)==null?void 0:n[0];return s&&!a.includes(s.path)?`${a}: ${s.path}`:a}function Do(t){return t.startsWith("`")&&t.endsWith("`")?(0,o.jsx)("i",{children:t.slice(1,-1)}):t}const Lo=t=>{let e=(0,ne.c)(6);if(t.data.length<=1)return null;let a,s;if(e[0]!==t.data){let i=t.data.map(Qo);a="flex flex-col gap-2",s=i.join(` +`),e[0]=t.data,e[1]=a,e[2]=s}else a=e[1],s=e[2];let n;return e[3]!==a||e[4]!==s?(n=(0,o.jsx)("div",{className:a,children:s}),e[3]=a,e[4]=s,e[5]=n):n=e[5],n},Cs=t=>{let e=(0,ne.c)(30),{content:a,locations:s,status:n,kind:i,rawInput:r}=t.data,l;e[0]===a?l=e[1]:(l=a==null?void 0:a.filter(Xo).map(el),e[0]=a,e[1]=l);let c=l,d;e[2]===a?d=e[3]:(d=a==null?void 0:a.filter(tl),e[2]=a,e[3]=d);let u=d,m=n==="failed",p=s&&s.length>0;if(!a&&!p&&r){let A;e[4]===r?A=e[5]:(A=qo.safeParse(r),e[4]=r,e[5]=A);let I=A;if(I.success){let U;return e[6]!==I.data.abs_path||e[7]!==I.data.new_string||e[8]!==I.data.old_string?(U=(0,o.jsx)(Ss,{data:[{type:"diff",oldText:I.data.old_string,newText:I.data.new_string,path:I.data.abs_path}]}),e[6]=I.data.abs_path,e[7]=I.data.new_string,e[8]=I.data.old_string,e[9]=U):U=e[9],U}let O;return e[10]===r?O=e[11]:(O=(0,o.jsx)("pre",{className:"bg-[var(--slate-2)] p-1 text-muted-foreground border border-[var(--slate-4)] rounded text-xs overflow-auto scrollbar-thin max-h-64",children:(0,o.jsx)(Ea,{data:r,format:"tree"})}),e[10]=r,e[11]=O),O}let f=!c||c.length===0,x=!u||u.length===0;if(f&&x&&p){let A=i||"",I;e[12]===A?I=e[13]:(I=Ht(A),e[12]=A,e[13]=I);let O;e[14]===s?O=e[15]:(O=s==null?void 0:s.map(al).join(", "),e[14]=s,e[15]=O);let U;return e[16]!==I||e[17]!==O?(U=(0,o.jsx)("div",{className:"flex flex-col gap-2 pr-2",children:(0,o.jsxs)("span",{className:"text-xs text-muted-foreground",children:[I," ",O]})}),e[16]=I,e[17]=O,e[18]=U):U=e[18],U}let v;e[19]===s?v=e[20]:(v=s&&(0,o.jsx)(Lo,{data:s}),e[19]=s,e[20]=v);let w;e[21]===c?w=e[22]:(w=c&&(0,o.jsx)(Zt,{data:c}),e[21]=c,e[22]=w);let j;e[23]!==u||e[24]!==m?(j=u&&!m&&(0,o.jsx)(Ss,{data:u}),e[23]=u,e[24]=m,e[25]=j):j=e[25];let C;return e[26]!==v||e[27]!==w||e[28]!==j?(C=(0,o.jsxs)("div",{className:"flex flex-col gap-2 pr-2",children:[v,w,j]}),e[26]=v,e[27]=w,e[28]=j,e[29]=C):C=e[29],C};var qo=Sn({abs_path:Jt(),old_string:Jt(),new_string:Jt()});function Wo(t){return t.content}function Vo(t){return t.entries}function Bo(t){return t.content}function Ko(t,e){return(0,o.jsxs)("li",{className:` + flex items-center gap-2 px-2 py-1 rounded + `,children:[(0,o.jsx)("input",{type:"checkbox",checked:t.status==="completed",readOnly:!0,className:"accent-primary h-4 w-4 rounded border border-muted-foreground/30",tabIndex:-1}),(0,o.jsx)("span",{className:xe("text-xs",t.status==="completed"&&"line-through text-muted-foreground"),children:t.content})]},`${t.status}-${e}`)}function Jo(t){return t.content}function Ho(t){return t.content}function Yo(t){return t.type==="text"?(0,o.jsx)(La,{content:t.text}):t.type==="image"?(0,o.jsx)(Oo,{data:t}):t.type==="audio"?(0,o.jsx)(Eo,{data:t}):t.type==="resource"?(0,o.jsx)(Zo,{data:t}):t.type==="resource_link"?(0,o.jsx)(Po,{data:t}):(Cn(t),null)}function Go(t){return(0,o.jsxs)("div",{className:"border rounded-md overflow-hidden bg-[var(--gray-2)] overflow-y-auto scrollbar-thin max-h-64",children:[(0,o.jsx)("div",{className:"px-2 py-1 bg-[var(--gray-2)] border-b text-xs font-medium text-[var(--gray-11)]",children:t.path}),(0,o.jsx)(Ns,{original:t.oldText||"",modified:t.newText||""})]},t.path)}function Qo(t){return t.line?`${t.path}:${t.line}`:t.path}function Xo(t){return t.type==="content"}function el(t){return t.content}function tl(t){return t.type==="diff"}function al(t){return t.path}var ga=be();const xa=t=>{let e=(0,ga.c)(31),{title:a,children:s,status:n,index:i,defaultIcon:r}=t,l=i===void 0?0:i,c;e[0]!==r||e[1]!==n?(c=()=>{switch(n){case"loading":return(0,o.jsx)(tr,{className:"h-3 w-3 animate-spin"});case"error":return(0,o.jsx)(Vt,{className:"h-3 w-3 text-destructive"});case"success":return(0,o.jsx)(qa,{className:"h-3 w-3 text-[var(--blue-9)]"});default:return r}},e[0]=r,e[1]=n,e[2]=c):c=e[2];let d=c,u=`tool-${l}`,m=n==="error"&&"text-destructive/80",p=n==="success"&&"text-[var(--blue-8)]",f;e[3]!==m||e[4]!==p?(f=xe("py-1 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180",m,p),e[3]=m,e[4]=p,e[5]=f):f=e[5];let x;e[6]===d?x=e[7]:(x=d(),e[6]=d,e[7]=x);let v;e[8]===a?v=e[9]:(v=(0,o.jsx)("code",{className:"font-mono text-xs truncate",children:a}),e[8]=a,e[9]=v);let w;e[10]!==x||e[11]!==v?(w=(0,o.jsxs)("span",{className:"flex items-center gap-1",children:[x,v]}),e[10]=x,e[11]=v,e[12]=w):w=e[12];let j;e[13]!==f||e[14]!==w?(j=(0,o.jsx)(pr,{className:f,children:w}),e[13]=f,e[14]=w,e[15]=j):j=e[15];let C;e[16]!==s||e[17]!==n?(C=n!=="error"&&(0,o.jsx)("div",{className:"text-xs font-medium text-muted-foreground mb-1",children:s}),e[16]=s,e[17]=n,e[18]=C):C=e[18];let A;e[19]!==s||e[20]!==n?(A=n==="error"&&(0,o.jsx)("div",{className:"bg-destructive/10 border border-destructive/20 rounded-md p-3 text-xs text-destructive",children:s}),e[19]=s,e[20]=n,e[21]=A):A=e[21];let I;e[22]!==C||e[23]!==A?(I=(0,o.jsx)(gr,{className:"p-2",children:(0,o.jsxs)("div",{className:"space-y-3 max-h-64 overflow-y-auto scrollbar-thin",children:[C,A]})}),e[22]=C,e[23]=A,e[24]=I):I=e[24];let O;e[25]!==j||e[26]!==I?(O=(0,o.jsxs)(hr,{value:"tool-call",className:"border-0",children:[j,I]}),e[25]=j,e[26]=I,e[27]=O):O=e[27];let U;return e[28]!==O||e[29]!==u?(U=(0,o.jsx)(fr,{type:"single",collapsible:!0,className:"w-full",children:O},u),e[28]=O,e[29]=u,e[30]=U):U=e[30],U},Is=(0,M.memo)(t=>{let e=(0,ga.c)(16),{status:a,className:s}=t,n;e[0]===a?n=e[1]:(n=()=>{switch(a){case"connected":return{icon:(0,o.jsx)(Gt,{className:"h-3 w-3"}),label:"Connected",variant:"default",className:"bg-[var(--blue-3)] text-[var(--blue-11)] border-[var(--blue-5)]"};case"connecting":return{icon:(0,o.jsx)(sr,{className:"h-3 w-3 animate-pulse"}),label:"Connecting",variant:"secondary",className:"bg-[var(--yellow-3)] text-[var(--yellow-11)] border-[var(--yellow-5)]"};case"disconnected":return{icon:(0,o.jsx)(it,{className:"h-3 w-3"}),label:"Disconnected",variant:"outline",className:"bg-[var(--red-3)] text-[var(--red-11)] border-[var(--red-5)]"};default:return{icon:(0,o.jsx)(it,{className:"h-3 w-3"}),label:a||"Unknown",variant:"outline",className:"bg-[var(--gray-3)] text-[var(--gray-11)] border-[var(--gray-5)]"}}},e[0]=a,e[1]=n);let i=n,r,l,c,d;e[2]!==s||e[3]!==i?(l=i(),r=lr,c=l.variant,d=xe(l.className,s),e[2]=s,e[3]=i,e[4]=r,e[5]=l,e[6]=c,e[7]=d):(r=e[4],l=e[5],c=e[6],d=e[7]);let u;e[8]===l.label?u=e[9]:(u=(0,o.jsx)("span",{className:"ml-1 text-xs font-medium",children:l.label}),e[8]=l.label,e[9]=u);let m;return e[10]!==r||e[11]!==l.icon||e[12]!==c||e[13]!==d||e[14]!==u?(m=(0,o.jsxs)(r,{variant:c,className:d,children:[l.icon,u]}),e[10]=r,e[11]=l.icon,e[12]=c,e[13]=d,e[14]=u,e[15]=m):m=e[15],m});Is.displayName="ConnectionStatus";const Ts=(0,M.memo)(t=>{let e=(0,ga.c)(14),{permission:a,onResolve:s}=t,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,o.jsx)(jr,{className:"h-4 w-4 text-[var(--amber-11)]"}),(0,o.jsx)("h3",{className:"text-sm font-medium text-[var(--amber-11)]",children:"Permission Request"})]}),i=(0,o.jsx)("p",{className:"text-sm text-[var(--amber-11)] mb-3",children:"The AI agent is requesting permission to proceed:"}),e[0]=n,e[1]=i):(n=e[0],i=e[1]);let r;e[2]===a.toolCall?r=e[3]:(r=(0,o.jsx)(Cs,{data:a.toolCall}),e[2]=a.toolCall,e[3]=r);let l;if(e[4]!==s||e[5]!==a.options){let u;e[7]===s?u=e[8]:(u=m=>(0,o.jsxs)(le,{size:"xs",variant:"text",className:m.kind.startsWith("allow")?"text-[var(--blue-10)]":"text-[var(--red-10)]",onClick:()=>s({outcome:{outcome:"selected",optionId:m.optionId}}),children:[m.kind.startsWith("allow")&&(0,o.jsx)(qa,{className:"h-3 w-3 mr-1"}),m.kind.startsWith("reject")&&(0,o.jsx)(Vt,{className:"h-3 w-3 mr-1"}),m.name]},m.optionId),e[7]=s,e[8]=u),l=a.options.map(u),e[4]=s,e[5]=a.options,e[6]=l}else l=e[6];let c;e[9]===l?c=e[10]:(c=(0,o.jsx)("div",{className:"flex gap-2",children:l}),e[9]=l,e[10]=c);let d;return e[11]!==r||e[12]!==c?(d=(0,o.jsxs)("div",{className:"border border-[var(--amber-8)] bg-[var(--amber-2)] rounded-lg p-2",children:[n,i,r,c]}),e[11]=r,e[12]=c,e[13]=d):d=e[13],d});Ts.displayName="PermissionRequest";var sl=be();function nl(){let t=(0,sl.c)(3),{addCommand:e}=br(),{openApplication:a}=jn(),s;return t[0]!==e||t[1]!==a?(s={sendCommand:n=>{a("terminal"),e(n)}},t[0]=e,t[1]=a,t[2]=s):s=t[2],s}var As=1;const ct=wn("marimo:acp:sessions:v1",{sessions:[],activeTabId:null},kn),va=xn(t=>{let e=t(ct);return e.activeTabId&&e.sessions.find(a=>a.tabId===e.activeTabId)||null},(t,e,a)=>{e(ct,s=>({...s,activeTabId:a}))});function rl(){return`tab_${cr()}`}function Rs(t,e=20){return t.length<=e?t:`${t.slice(0,e-3)}...`}function il(t,e){let a=Os(e.agentId),s=Date.now(),n=e.firstMessage?Rs(e.firstMessage.trim()):`New ${e.agentId} session`,i=rl();if(a==="single"){let r=t.sessions.filter(c=>c.agentId===e.agentId),l=t.sessions.filter(c=>c.agentId!==e.agentId);if(r.length>0){let c=r[0],d={agentId:e.agentId,title:n,createdAt:s,lastUsedAt:s,tabId:c.tabId,externalAgentSessionId:null,selectedModel:e.model??c.selectedModel??null};return{...t,sessions:[...l.slice(0,As-1),d],activeTabId:d.tabId}}}return{...t,sessions:[...t.sessions.slice(0,As-1),{agentId:e.agentId,tabId:i,title:n,createdAt:s,lastUsedAt:s,externalAgentSessionId:null,selectedModel:e.model??null}],activeTabId:i}}function ol(t,e){let a=t.sessions.filter(s=>s.tabId!==e);return{sessions:a,activeTabId:t.activeTabId===e?a.length>0?a[a.length-1].tabId:null:t.activeTabId}}function ll(t,e){let a=t.activeTabId;return a?{...t,sessions:t.sessions.map(s=>s.tabId===a?{...s,title:Rs(e)}:s)}:t}function cl(t,e){return{...t,sessions:t.sessions.map(a=>a.tabId===e?{...a,lastUsedAt:Date.now()}:a)}}function Ms(t,e){let a=t.activeTabId;return a?{...t,sessions:t.sessions.map(s=>s.tabId===a?{...s,externalAgentSessionId:e,lastUsedAt:Date.now()}:s)}:t}function dl(){return["claude","gemini","codex","opencode"]}function ul(t){return Ht(t)}function ml(t){return Pt[t].webSocketUrl}var Pt={claude:{port:3017,command:"npx @zed-industries/claude-code-acp",webSocketUrl:"ws://localhost:3017/message",sessionSupport:"single"},gemini:{port:3019,command:"npx @google/gemini-cli --experimental-acp",webSocketUrl:"ws://localhost:3019/message",sessionSupport:"single"},codex:{port:3021,command:"npx @zed-industries/codex-acp",webSocketUrl:"ws://localhost:3021/message",sessionSupport:"single"},opencode:{port:3023,command:"npx opencode-ai acp",webSocketUrl:"ws://localhost:3023/message",sessionSupport:"single"}};function Os(t){return Pt[t].sessionSupport}function pl(t){let e=Pt[t].port,a=Pt[t].command;return`npx stdio-to-ws "${In()?`cmd /c ${a}`:a}" --port ${e}`}var Es=be(),hl=new Set(["opencode"]),Zs=(0,M.memo)(t=>{let e=(0,Es.c)(38),{agentId:a,showCopy:s,className:n}=t,i=s===void 0?!0:s,r;e[0]===a?r=e[1]:(r=pl(a),e[0]=a,e[1]=r);let l=r,c;e[2]===a?c=e[3]:(c=ul(a),e[2]=a,e[3]=c);let d=c,u=Ra(Nn),{sendCommand:m}=nl(),p;e[4]!==l||e[5]!==m?(p=()=>{m(l)},e[4]=l,e[5]=m,e[6]=p):p=e[6];let f=p,x;e[7]===n?x=e[8]:(x=xe("space-y-2",n),e[7]=n,e[8]=x);let v;e[9]===a?v=e[10]:(v=(0,o.jsx)(xt,{provider:a,className:"h-4 w-4"}),e[9]=a,e[10]=v);let w;e[11]===a?w=e[12]:(w=hl.has(a)&&(0,o.jsx)("span",{className:"text-muted-foreground ml-1",children:"(beta)"}),e[11]=a,e[12]=w);let j;e[13]!==d||e[14]!==w?(j=(0,o.jsxs)("span",{className:"font-medium text-sm",children:[d,w]}),e[13]=d,e[14]=w,e[15]=j):j=e[15];let C;e[16]!==v||e[17]!==j?(C=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[v,j]}),e[16]=v,e[17]=j,e[18]=C):C=e[18];let A;e[19]===Symbol.for("react.memo_cache_sentinel")?(A=(0,o.jsx)(ar,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),e[19]=A):A=e[19];let I;e[20]===l?I=e[21]:(I=(0,o.jsx)("code",{className:"text-xs font-mono break-words flex-1 whitespace-pre-wrap",children:l}),e[20]=l,e[21]=I);let O;e[22]!==l||e[23]!==i?(O=i&&(0,o.jsx)(le,{size:"xs",variant:"outline",className:"border",children:(0,o.jsx)(mr,{value:l,className:"h-3 w-3"})}),e[22]=l,e[23]=i,e[24]=O):O=e[24];let U;e[25]!==u.terminal||e[26]!==f?(U=u.terminal&&(0,o.jsx)(yt,{content:"Run in terminal",delayDuration:100,children:(0,o.jsx)(le,{onClick:f,title:"Send to terminal",size:"xs",variant:"outline",children:(0,o.jsx)(_n,{className:"h-3 w-3"})})}),e[25]=u.terminal,e[26]=f,e[27]=U):U=e[27];let L;e[28]!==O||e[29]!==U?(L=(0,o.jsxs)("div",{className:"flex items-center gap-1 flex-shrink-0",children:[O,U]}),e[28]=O,e[29]=U,e[30]=L):L=e[30];let V;e[31]!==I||e[32]!==L?(V=(0,o.jsx)("div",{className:"bg-muted/50 rounded-md p-2 border",children:(0,o.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:[A,I,L]})}),e[31]=I,e[32]=L,e[33]=V):V=e[33];let K;return e[34]!==V||e[35]!==x||e[36]!==C?(K=(0,o.jsxs)("div",{className:x,children:[C,V]}),e[34]=V,e[35]=x,e[36]=C,e[37]=K):K=e[37],K});Zs.displayName="AgentDocItem";const $t=(0,M.memo)(t=>{let e=(0,Es.c)(22),{title:a,description:s,agents:n,showCopy:i,className:r}=t,l;e[0]===n?l=e[1]:(l=n===void 0?dl():n,e[0]=n,e[1]=l);let c=l,d=i===void 0?!0:i,u;e[2]===r?u=e[3]:(u=xe("space-y-4",r),e[2]=r,e[3]=u);let m;e[4]===a?m=e[5]:(m=(0,o.jsx)("h3",{className:"font-medium text-sm",children:a}),e[4]=a,e[5]=m);let p;e[6]===s?p=e[7]:(p=(0,o.jsx)("p",{className:"text-xs text-muted-foreground",children:s}),e[6]=s,e[7]=p);let f;e[8]!==m||e[9]!==p?(f=(0,o.jsxs)("div",{className:"space-y-2",children:[m,p]}),e[8]=m,e[9]=p,e[10]=f):f=e[10];let x;if(e[11]!==c||e[12]!==d){let j;e[14]===d?j=e[15]:(j=C=>(0,o.jsx)(Zs,{agentId:C,showCopy:d},C),e[14]=d,e[15]=j),x=c.map(j),e[11]=c,e[12]=d,e[13]=x}else x=e[13];let v;e[16]===x?v=e[17]:(v=(0,o.jsx)("div",{className:"space-y-3",children:x}),e[16]=x,e[17]=v);let w;return e[18]!==u||e[19]!==f||e[20]!==v?(w=(0,o.jsxs)("div",{className:u,children:[f,v]}),e[18]=u,e[19]=f,e[20]=v,e[21]=w):w=e[21],w});$t.displayName="AgentDocs";var Ps=be(),fl=[{id:"claude",displayName:"Claude",iconId:"anthropic"},{id:"gemini",displayName:"Gemini",iconId:"google"},{id:"codex",displayName:"Codex",iconId:"openai"},{id:"opencode",displayName:"OpenCode",iconId:"opencode"}],$s=(0,M.memo)(t=>{let e=(0,Ps.c)(42),{agent:a,onSelect:s,existingSessions:n,filename:i}=t,r=Os(a.id),l=n.some(L=>L.agentId===a.id),c=r==="single"&&l,d=c?`Reset ${a.displayName} session`:`New ${a.displayName} session`;if(c){let L;e[0]!==a.id||e[1]!==s?(L=()=>s(a.id),e[0]=a.id,e[1]=s,e[2]=L):L=e[2];let V;e[3]===a.iconId?V=e[4]:(V=(0,o.jsx)(xt,{provider:a.iconId,className:"h-3 w-3 mr-2"}),e[3]=a.iconId,e[4]=V);let K;e[5]===d?K=e[6]:(K=(0,o.jsx)("span",{children:d}),e[5]=d,e[6]=K);let B;e[7]!==V||e[8]!==K?(B=(0,o.jsxs)("div",{className:"flex items-center w-full",children:[V,K]}),e[7]=V,e[8]=K,e[9]=B):B=e[9];let P;return e[10]!==L||e[11]!==B?(P=(0,o.jsx)(Ln,{onClick:L,className:"cursor-pointer",children:B}),e[10]=L,e[11]=B,e[12]=P):P=e[12],P}let u;e[13]!==a.id||e[14]!==s?(u=()=>s(a.id),e[13]=a.id,e[14]=s,e[15]=u):u=e[15];let m;e[16]===a.iconId?m=e[17]:(m=(0,o.jsx)(xt,{provider:a.iconId,className:"h-3 w-3 mr-2"}),e[16]=a.iconId,e[17]=m);let p;e[18]===d?p=e[19]:(p=(0,o.jsx)("span",{children:d}),e[18]=d,e[19]=p);let f;e[20]!==m||e[21]!==p?(f=(0,o.jsxs)("div",{className:"flex items-center w-full",children:[m,p]}),e[20]=m,e[21]=p,e[22]=f):f=e[22];let x;e[23]!==u||e[24]!==f?(x=(0,o.jsx)(Wn,{showChevron:!1,className:"cursor-pointer",onClick:u,children:f}),e[23]=u,e[24]=f,e[25]=x):x=e[25];let v=a.displayName,w;e[26]===Symbol.for("react.memo_cache_sentinel")?(w=(0,o.jsx)("br",{}),e[26]=w):w=e[26];let j;e[27]===i?j=e[28]:(j=Kt.dirname(i??""),e[27]=i,e[28]=j);let C;e[29]===j?C=e[30]:(C=(0,o.jsx)("code",{className:"bg-muted font-mono",children:j}),e[29]=j,e[30]=C);let A;e[31]!==a.displayName||e[32]!==C?(A=(0,o.jsxs)("div",{className:"text-xs font-medium text-muted-foreground mb-3",children:["To start a ",v," agent, run the following command in your terminal.",w,"Note: This must be in the directory"," ",C]}),e[31]=a.displayName,e[32]=C,e[33]=A):A=e[33];let I;e[34]===a.id?I=e[35]:(I=(0,o.jsx)($t,{agents:[a.id],showCopy:!0}),e[34]=a.id,e[35]=I);let O;e[36]!==A||e[37]!==I?(O=(0,o.jsx)(Kn,{children:(0,o.jsx)(qn,{className:"w-120",children:(0,o.jsxs)("div",{className:"px-2 py-2",children:[A,I]})})}),e[36]=A,e[37]=I,e[38]=O):O=e[38];let U;return e[39]!==O||e[40]!==x?(U=(0,o.jsxs)(Hn,{children:[x,O]}),e[39]=O,e[40]=x,e[41]=U):U=e[41],U});$s.displayName="AgentMenuItem";const Ft=(0,M.memo)(t=>{let e=(0,Ps.c)(21),{onSessionCreated:a,className:s}=t,n=xr(),[i,r]=ft(ct),l=Aa(va),[c,d]=(0,M.useState)(!1),u;e[0]!==a||e[1]!==i||e[2]!==l||e[3]!==r?(u=async A=>{let I=il(i,{agentId:A});r(I),l(I.activeTabId),d(!1),a==null||a(A)},e[0]=a,e[1]=i,e[2]=l,e[3]=r,e[4]=u):u=e[4];let m=oe(u),p;e[5]===s?p=e[6]:(p=xe("h-6 gap-1 px-2 text-xs bg-muted/30 hover:bg-muted/50 border border-border border-y-0 rounded-none focus-visible:ring-0",s),e[5]=s,e[6]=p);let f,x;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)("span",{children:"New session"}),x=(0,o.jsx)(Dn,{className:"h-3 w-3"}),e[7]=f,e[8]=x):(f=e[7],x=e[8]);let v;e[9]===p?v=e[10]:(v=(0,o.jsx)(Vn,{asChild:!0,children:(0,o.jsxs)(le,{variant:"ghost",size:"sm",className:p,children:[f,x]})}),e[9]=p,e[10]=v);let w;e[11]!==n||e[12]!==m||e[13]!==i?(w=fl.map(A=>(0,o.jsx)($s,{agent:A,onSelect:m,existingSessions:i.sessions,filename:n},A.id)),e[11]=n,e[12]=m,e[13]=i,e[14]=w):w=e[14];let j;e[15]===w?j=e[16]:(j=(0,o.jsx)(Bn,{align:"start",className:"w-fit",children:w}),e[15]=w,e[16]=j);let C;return e[17]!==c||e[18]!==v||e[19]!==j?(C=(0,o.jsxs)(Jn,{open:c,onOpenChange:d,children:[v,j]}),e[17]=c,e[18]=v,e[19]=j,e[20]=C):C=e[20],C});Ft.displayName="AgentSelector";var gl=be();const Fs=(0,M.memo)(t=>{let e=(0,gl.c)(18),{sessionModels:a,onModelChange:s,disabled:n}=t;if(!a||a.availableModels.length===0)return null;let{availableModels:i,currentModelId:r}=a,l;if(e[0]!==i||e[1]!==r){let x;e[3]===r?x=e[4]:(x=v=>v.modelId===r,e[3]=r,e[4]=x),l=i.find(x),e[0]=i,e[1]=r,e[2]=l}else l=e[2];let c=(l==null?void 0:l.name)??r,d;e[5]===c?d=e[6]:(d=(0,o.jsx)(za,{className:"h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1",children:c}),e[5]=c,e[6]=d);let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(Za,{children:"Model"}),e[7]=u):u=e[7];let m;e[8]===i?m=e[9]:(m=i.map(xl),e[8]=i,e[9]=m);let p;e[10]===m?p=e[11]:(p=(0,o.jsx)(Fa,{children:(0,o.jsxs)(Ua,{children:[u,m]})}),e[10]=m,e[11]=p);let f;return e[12]!==r||e[13]!==n||e[14]!==s||e[15]!==d||e[16]!==p?(f=(0,o.jsxs)(Da,{value:r,onValueChange:s,disabled:n,children:[d,p]}),e[12]=r,e[13]=n,e[14]=s,e[15]=d,e[16]=p,e[17]=f):f=e[17],f});Fs.displayName="ModelSelector";function xl(t,e){return(0,o.jsx)($a,{value:t.modelId,className:"text-xs",children:(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)("span",{children:[t.name,e===0&&(0,o.jsx)("span",{className:"text-muted-foreground ml-1",children:"(default)"})]}),t.description&&(0,o.jsx)("span",{className:"text-muted-foreground text-xs pt-1 block",children:t.description})]})},t.modelId)}var vl=be(),Us=(0,M.memo)(t=>{let e=(0,vl.c)(10),{isVisible:a,onScrollToBottom:s,className:n}=t;if(!a)return null;let i;e[0]===n?i=e[1]:(i=xe("absolute bottom-2 right-6 z-10 animate-in fade-in-0 zoom-in-95 duration-200",n),e[0]=n,e[1]=i);let r,l,c;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=xe("h-8 w-8 p-0 rounded-full","bg-background/90 backdrop-blur-sm","border border-border/50","shadow-md shadow-black/10","hover:bg-background hover:shadow-black/15","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-primary/50"),l=(0,o.jsx)(wr,{className:"h-4 w-4"}),c=(0,o.jsx)("span",{className:"sr-only",children:"Scroll to bottom"}),e[2]=r,e[3]=l,e[4]=c):(r=e[2],l=e[3],c=e[4]);let d;e[5]===s?d=e[6]:(d=(0,o.jsxs)(le,{variant:"secondary",size:"sm",onClick:s,className:r,children:[l,c]}),e[5]=s,e[6]=d);let u;return e[7]!==i||e[8]!==d?(u=(0,o.jsx)("div",{className:i,children:d}),e[7]=i,e[8]=d,e[9]=u):u=e[9],u});Us.displayName="ScrollToBottomButton";var yl=Us,Ut=be(),zs=(0,M.memo)(t=>{let e=(0,Ut.c)(23),{session:a,isActive:s,onSelect:n,onClose:i}=t,r=s&&"bg-background border-b-0 relative z-1",l;e[0]===r?l=e[1]:(l=xe("flex items-center gap-1 px-2 py-1 text-xs border-r border-border bg-muted/30 hover:bg-muted/50 cursor-pointer min-w-0",r),e[0]=r,e[1]=l);let c;e[2]!==n||e[3]!==a.tabId?(c=()=>n(a.tabId),e[2]=n,e[3]=a.tabId,e[4]=c):c=e[4];let d;e[5]===a.agentId?d=e[6]:(d=(0,o.jsx)("span",{className:"text-muted-foreground text-[10px] font-medium",children:(0,o.jsx)(xt,{provider:a.agentId,className:"h-3 w-3"})}),e[5]=a.agentId,e[6]=d);let u;e[7]===a.title?u=e[8]:(u=(0,o.jsx)("span",{className:"truncate",title:a.title,children:a.title}),e[7]=a.title,e[8]=u);let m;e[9]!==d||e[10]!==u?(m=(0,o.jsxs)("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[d,u]}),e[9]=d,e[10]=u,e[11]=m):m=e[11];let p;e[12]!==i||e[13]!==a.tabId?(p=w=>{w.stopPropagation(),i(a.tabId)},e[12]=i,e[13]=a.tabId,e[14]=p):p=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(Pa,{className:"h-3 w-3"}),e[15]=f):f=e[15];let x;e[16]===p?x=e[17]:(x=(0,o.jsx)(le,{variant:"ghost",size:"sm",className:"h-4 w-4 p-0 hover:bg-destructive/20 hover:text-destructive flex-shrink-0",onClick:p,children:f}),e[16]=p,e[17]=x);let v;return e[18]!==l||e[19]!==c||e[20]!==m||e[21]!==x?(v=(0,o.jsxs)("div",{className:l,onClick:c,children:[m,x]}),e[18]=l,e[19]=c,e[20]=m,e[21]=x,e[22]=v):v=e[22],v});zs.displayName="SessionTab";var Ds=(0,M.memo)(t=>{let e=(0,Ut.c)(11),{sessions:a,activeTabId:s,onSelectSession:n,onCloseSession:i}=t,r;if(e[0]!==s||e[1]!==i||e[2]!==n||e[3]!==a){let c;e[5]!==s||e[6]!==i||e[7]!==n?(c=d=>(0,o.jsx)(zs,{session:d,isActive:d.tabId===s,onSelect:n,onClose:i},d.tabId),e[5]=s,e[6]=i,e[7]=n,e[8]=c):c=e[8],r=a.map(c),e[0]=s,e[1]=i,e[2]=n,e[3]=a,e[4]=r}else r=e[4];let l;return e[9]===r?l=e[10]:(l=(0,o.jsx)("div",{className:"flex min-w-0 flex-1 overflow-x-auto",children:r}),e[9]=r,e[10]=l),l});Ds.displayName="SessionList";var Ls=(0,M.memo)(t=>{let e=(0,Ut.c)(5),{className:a}=t,s;e[0]===a?s=e[1]:(s=xe("flex items-center border-b bg-muted/20",a),e[0]=a,e[1]=s);let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)(Ft,{className:"h-6"}),e[2]=n):n=e[2];let i;return e[3]===s?i=e[4]:(i=(0,o.jsx)("div",{className:s,children:n}),e[3]=s,e[4]=i),i});Ls.displayName="EmptySessionTabs";const ya=(0,M.memo)(t=>{let e=(0,Ut.c)(18),{className:a}=t,[s,n]=ft(ct),i=Aa(va),r;e[0]!==i||e[1]!==n?(r=w=>{i(w),n(j=>cl(j,w))},e[0]=i,e[1]=n,e[2]=r):r=e[2];let l=oe(r),c;e[3]===n?c=e[4]:(c=w=>{n(j=>ol(j,w))},e[3]=n,e[4]=c);let d=oe(c),{sessions:u,activeTabId:m}=s;if(u.length===0){let w;return e[5]===a?w=e[6]:(w=(0,o.jsx)(Ls,{className:a}),e[5]=a,e[6]=w),w}let p;e[7]===a?p=e[8]:(p=xe("flex items-center border-b bg-muted/20 overflow-hidden",a),e[7]=a,e[8]=p);let f;e[9]!==m||e[10]!==d||e[11]!==l||e[12]!==u?(f=(0,o.jsx)(Ds,{sessions:u,activeTabId:m,onSelectSession:l,onCloseSession:d}),e[9]=m,e[10]=d,e[11]=l,e[12]=u,e[13]=f):f=e[13];let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=(0,o.jsx)(Ft,{className:"h-6 flex-shrink-0"}),e[14]=x):x=e[14];let v;return e[15]!==p||e[16]!==f?(v=(0,o.jsxs)("div",{className:p,children:[f,x]}),e[15]=p,e[16]=f,e[17]=v):v=e[17],v});ya.displayName="SessionTabs";var _l=be();const bl=t=>{let e=(0,_l.c)(14),{notifications:a,isConnected:s,onRetryConnection:n,onRetryLastAction:i,onDismissError:r}=t,l,c,d;if(e[0]!==s||e[1]!==a||e[2]!==r||e[3]!==n||e[4]!==i){l=xo(a),l=l.filter((f,x)=>Ws(f)&&f[0].data.update.sessionUpdate==="available_commands_update"?!1:x===l.length-1?!0:!qs(f));let p=(f,x)=>{if(f.length===0)return null;if(wl(f)){let v=f[f.length-1];return(0,o.jsx)(Co,{data:v.data,onRetry:i,onDismiss:r?()=>r(v.id):void 0},v.id)}if(qs(f)){let v=f[f.length-1];return(0,o.jsx)(Io,{data:v.data,isConnected:s,isOnlyBlock:l.length===1,onRetry:n,timestamp:v.timestamp},v.id)}if(Ws(f)){let v=f[0].timestamp,w=f[f.length-1].timestamp;return(0,o.jsx)($o,{data:f.map(kl),startTimestamp:v,endTimestamp:w,isLastBlock:x})}return"Unknown notification type"};c="flex flex-col gap-4 px-2 pb-10 flex-1",d=l.map((f,x)=>(0,o.jsx)(M.Fragment,{children:p(f,x===l.length-1)},f[0].id)),e[0]=s,e[1]=a,e[2]=r,e[3]=n,e[4]=i,e[5]=l,e[6]=c,e[7]=d}else l=e[5],c=e[6],d=e[7];let u;e[8]===l.length?u=e[9]:(u=l.length===0&&(0,o.jsx)(ha,{}),e[8]=l.length,e[9]=u);let m;return e[10]!==c||e[11]!==d||e[12]!==u?(m=(0,o.jsxs)("div",{className:c,children:[d,u]}),e[10]=c,e[11]=d,e[12]=u,e[13]=m):m=e[13],m};function wl(t){return t[0].type==="error"}function qs(t){return t[0].type==="connection_change"}function Ws(t){return t[0].type==="session_notification"}function kl(t){return t.data.update}async function jl(t){let e=[];for(let a of t)try{let s=await Pn(a,"dataUrl");e.push({type:"resource_link",uri:s,mimeType:a.type,name:a.name})}catch(s){Ge.error("Error converting file to resource link",{fileName:a.name,error:s})}return e}async function Nl(t){let e=[];for(let a of t)e.push({type:"resource_link",uri:a.url,mimeType:a.mediaType,name:a.filename??a.url});return e}async function Sl(t){let e=[],a=[];if(!t.includes("@"))return{contextBlocks:e,attachmentBlocks:a};try{let s=On(Wt),n=s.parseAllContextIds(t);if(n.length===0)return{contextBlocks:e,attachmentBlocks:a};let i=s.formatContextForAI(n);i.trim()&&e.push({type:"resource",resource:{uri:"context.md",mimeType:"text/plain",text:i}});try{let r=await s.getAttachmentsForContext(n);if(r.length>0){let l=await Nl(r);a.push(...l),Ge.debug("Added AI context attachments",{count:r.length})}}catch(r){Ge.error("Error getting AI context attachments",{error:r})}Ge.debug("Parsed context for agent",{contextIds:n,contextLength:i.length,attachmentCount:a.length})}catch(s){Ge.error("Error parsing context for agent",{error:s})}return{contextBlocks:e,attachmentBlocks:a}}function Cl(t){return` + I am currently editing a marimo notebook. + You can read or write to the notebook at ${t} + + If you make edits to the notebook, only edit the contents inside the function decorator with @app.cell. + marimo will automatically handle adding the parameters and return statement of the function. For example, + for each edit, just return: + + \`\`\` + @app.cell + def _(): + + return + \`\`\` + + ## Marimo fundamentals + + Marimo is a reactive notebook that differs from traditional notebooks in key ways: + + - Cells execute automatically when their dependencies change + - Variables cannot be redeclared across cells + - The notebook forms a directed acyclic graph (DAG) + - The last expression in a cell is automatically displayed + - UI elements are reactive and update the notebook automatically + + ## Code Requirements + + 1. All code must be complete and runnable + 2. Follow consistent coding style throughout + 3. Include descriptive variable names and helpful comments + 4. Import all modules in the first cell, always including \`import marimo as mo\` + 5. Never redeclare variables across cells + 6. Ensure no cycles in notebook dependency graph + 7. The last expression in a cell is automatically displayed, just like in Jupyter notebooks. + 8. Don't include comments in markdown cells + 9. Don't include comments in SQL cells + 10. Never define anything using \`global\`. + + ## Reactivity + + Marimo's reactivity means: + + - When a variable changes, all cells that use that variable automatically re-execute + - UI elements trigger updates when their values change without explicit callbacks + - UI element values are accessed through \`.value\` attribute + - You cannot access a UI element's value in the same cell where it's defined + - Cells prefixed with an underscore (e.g. _my_var) are local to the cell and cannot be accessed by other cells + + ## Best Practices + + + - Use polars for data manipulation + - Implement proper data validation + - Handle missing values appropriately + - Use efficient data structures + - A variable in the last expression of a cell is automatically displayed as a table + + + + - For matplotlib: use plt.gca() as the last expression instead of plt.show() + - For plotly: return the figure object directly + - For altair: return the chart object directly. Add tooltips where appropriate. You can pass polars dataframes directly to altair. + - Include proper labels, titles, and color schemes + - Make visualizations interactive where appropriate + + + + - Access UI element values with .value attribute (e.g., slider.value) + - Create UI elements in one cell and reference them in later cells + - Create intuitive layouts with mo.hstack(), mo.vstack(), and mo.tabs() + - Prefer reactive updates over callbacks (marimo handles reactivity automatically) + - Group related UI elements for better organization + + + + - When writing duckdb, prefer using marimo's SQL cells, which start with df = mo.sql(f"""""") for DuckDB, or df = mo.sql(f"""""", engine=engine) for other SQL engines. + - See the SQL with duckdb example for an example on how to do this + - Don't add comments in cells that use mo.sql() + - Consider using \`vega_datasets\` for common example datasets + + + ## Troubleshooting + + Common issues and solutions: + - Circular dependencies: Reorganize code to remove cycles in the dependency graph + - UI element value access: Move access to a separate cell from definition + - Visualization not showing: Ensure the visualization object is the last expression + + ## Available UI elements + + - \`mo.ui.altair_chart(altair_chart)\` + - \`mo.ui.button(value=None, kind='primary')\` + - \`mo.ui.run_button(label=None, tooltip=None, kind='primary')\` + - \`mo.ui.checkbox(label='', value=False)\` + - \`mo.ui.date(value=None, label=None, full_width=False)\` + - \`mo.ui.dropdown(options, value=None, label=None, full_width=False)\` + - \`mo.ui.file(label='', multiple=False, full_width=False)\` + - \`mo.ui.number(value=None, label=None, full_width=False)\` + - \`mo.ui.radio(options, value=None, label=None, full_width=False)\` + - \`mo.ui.refresh(options: List[str], default_interval: str)\` + - \`mo.ui.slider(start, stop, value=None, label=None, full_width=False, step=None)\` + - \`mo.ui.range_slider(start, stop, value=None, label=None, full_width=False, step=None)\` + - \`mo.ui.table(data, columns=None, on_select=None, sortable=True, filterable=True)\` + - \`mo.ui.text(value='', label=None, full_width=False)\` + - \`mo.ui.text_area(value='', label=None, full_width=False)\` + - \`mo.ui.data_explorer(df)\` + - \`mo.ui.dataframe(df)\` + - \`mo.ui.plotly(plotly_figure)\` + - \`mo.ui.tabs(elements: dict[str, mo.ui.Element])\` + - \`mo.ui.array(elements: list[mo.ui.Element])\` + - \`mo.ui.form(element: mo.ui.Element, label='', bordered=True)\` + + ## Layout and utility functions + + - \`mo.md(text)\` - display markdown + - \`mo.stop(predicate, output=None)\` - stop execution conditionally + - \`mo.output.append(value)\` - append to the output when it is not the last expression + - \`mo.output.replace(value)\` - replace the output when it is not the last expression + - \`mo.Html(html)\` - display HTML + - \`mo.image(image)\` - display an image + - \`mo.hstack(elements)\` - stack elements horizontally + - \`mo.vstack(elements)\` - stack elements vertically + - \`mo.tabs(elements)\` - create a tabbed interface + + + + ## Examples + + + ${We([` + mo.md(""" + # Hello world + This is a _markdown_ **cell**. + """) + `])} + + + + ${We([` + import marimo as mo + import altair as alt + import polars as pl + import numpy as np + `,` + n_points = mo.ui.slider(10, 100, value=50, label="Number of points") + n_points + `,` + x = np.random.rand(n_points.value) + y = np.random.rand(n_points.value) + + df = pl.DataFrame({"x": x, "y": y}) + + chart = alt.Chart(df).mark_circle(opacity=0.7).encode( + x=alt.X('x', title='X axis'), + y=alt.Y('y', title='Y axis') + ).properties( + title=f"Scatter plot with {n_points.value} points", + width=400, + height=300 + ) + + chart + `])} + + + + ${We([` + import marimo as mo + import polars as pl + from vega_datasets import data + `,` + cars_df = pl.DataFrame(data.cars()) + mo.ui.data_explorer(cars_df) + `])} + + + + ${We([` + import marimo as mo + import polars as pl + import altair as alt + `,` + iris = pl.read_csv("hf://datasets/scikit-learn/iris/Iris.csv") + `,` + species_selector = mo.ui.dropdown( + options=["All"] + iris["Species"].unique().to_list(), + value="All", + label="Species", + ) + x_feature = mo.ui.dropdown( + options=iris.select(pl.col(pl.Float64, pl.Int64)).columns, + value="SepalLengthCm", + label="X Feature", + ) + y_feature = mo.ui.dropdown( + options=iris.select(pl.col(pl.Float64, pl.Int64)).columns, + value="SepalWidthCm", + label="Y Feature", + ) + mo.hstack([species_selector, x_feature, y_feature]) + `,` + filtered_data = iris if species_selector.value == "All" else iris.filter(pl.col("Species") == species_selector.value) + + chart = alt.Chart(filtered_data).mark_circle().encode( + x=alt.X(x_feature.value, title=x_feature.value), + y=alt.Y(y_feature.value, title=y_feature.value), + color='Species' + ).properties( + title=f"{y_feature.value} vs {x_feature.value}", + width=500, + height=400 + ) + + chart + `])} + + + + ${We([` + mo.stop(not data.value, mo.md("No data to display")) + + if mode.value == "scatter": + mo.output.replace(render_scatter(data.value)) + else: + mo.output.replace(render_bar_chart(data.value)) + `])} + + + + ${We([` + import marimo as mo + import altair as alt + import polars as pl + `,`# Load dataset + weather = pl.read_csv("https://raw.githubusercontent.com/vega/vega-datasets/refs/heads/main/data/weather.csv") + weather_dates = weather.with_columns( + pl.col("date").str.strptime(pl.Date, format="%Y-%m-%d") + ) + _chart = ( + alt.Chart(weather_dates) + .mark_point() + .encode( + x="date:T", + y="temp_max", + color="location", + ) + ) + `,`chart = mo.ui.altair_chart(_chart) +chart`,` + # Display the selection + chart.value`])} + + + + ${We(["import marimo as mo",` + first_button = mo.ui.run_button(label="Option 1") + second_button = mo.ui.run_button(label="Option 2") + [first_button, second_button]`,` + if first_button.value: + print("You chose option 1!") + elif second_button.value: + print("You chose option 2!") + else: + print("Click a button!")`])} + + + + ${We([`import marimo as mo + import polars as pl`,"weather = pl.read_csv('https://raw.githubusercontent.com/vega/vega-datasets/refs/heads/main/data/weather.csv')",`seattle_weather_df = mo.sql( + f""" + SELECT * FROM weather WHERE location = 'Seattle'; + """ + )`])} + `}function We(t){let e=a=>a.trim().split(` +`).map(s=>(" "+s).trimEnd()).join(` +`);return t.map(a=>` + @app.cell + def _(): + ${e(a)} + return + `).join("")}var $e=be(),re=Ge.get("agents"),Il=["image/*","text/*"],Vs=(0,M.memo)(t=>{let e=(0,$e.c)(4),{currentAgentId:a}=t,s;e[0]===a?s=e[1]:(s=Ht(a),e[0]=a,e[1]=s);let n;return e[2]===s?n=e[3]:(n=(0,o.jsx)("span",{className:"text-sm font-medium",children:s}),e[2]=s,e[3]=n),n});Vs.displayName="AgentTitle";var Bs=(0,M.memo)(t=>{let e=(0,$e.c)(4),{connectionState:a,onConnect:s,onDisconnect:n}=t,i=a.status==="connected",r=i?n:s,l=a.status==="connecting",c=i?"Disconnect":"Connect",d;return e[0]!==r||e[1]!==l||e[2]!==c?(d=(0,o.jsx)(le,{variant:"outline",size:"xs",onClick:r,disabled:l,children:c}),e[0]=r,e[1]=l,e[2]=c,e[3]=d):d=e[3],d});Bs.displayName="ConnectionControl";var Ks=(0,M.memo)(t=>{let e=(0,$e.c)(9),{currentAgentId:a,connectionStatus:s,shouldShowConnectionControl:n}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(gt,{className:"h-4 w-4 text-muted-foreground"}),e[0]=i):i=e[0];let r;e[1]===a?r=e[2]:(r=a&&(0,o.jsx)(Vs,{currentAgentId:a}),e[1]=a,e[2]=r);let l;e[3]!==s||e[4]!==n?(l=n&&(0,o.jsx)(Is,{status:s}),e[3]=s,e[4]=n,e[5]=l):l=e[5];let c;return e[6]!==r||e[7]!==l?(c=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[i,r,l]}),e[6]=r,e[7]=l,e[8]=c):c=e[8],c});Ks.displayName="HeaderInfo";var _a=(0,M.memo)(t=>{let e=(0,$e.c)(19),{connectionState:a,currentAgentId:s,onConnect:n,onDisconnect:i,onRestartThread:r,hasActiveSession:l,shouldShowConnectionControl:c}=t,d;e[0]!==a.status||e[1]!==s||e[2]!==c?(d=(0,o.jsx)(Ks,{currentAgentId:s,connectionStatus:a.status,shouldShowConnectionControl:c}),e[0]=a.status,e[1]=s,e[2]=c,e[3]=d):d=e[3];let u;e[4]!==a.status||e[5]!==l||e[6]!==r?(u=l&&a.status==="connected"&&r&&(0,o.jsxs)(le,{variant:"outline",size:"xs",onClick:r,title:"Restart thread (create new session)",children:[(0,o.jsx)(nr,{className:"h-3 w-3 mr-1"}),"Restart"]}),e[4]=a.status,e[5]=l,e[6]=r,e[7]=u):u=e[7];let m;e[8]!==a||e[9]!==n||e[10]!==i||e[11]!==c?(m=c&&(0,o.jsx)(Bs,{connectionState:a,onConnect:n,onDisconnect:i}),e[8]=a,e[9]=n,e[10]=i,e[11]=c,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let f;return e[16]!==d||e[17]!==p?(f=(0,o.jsxs)("div",{className:"flex border-b px-3 py-2 justify-between shrink-0 items-center",children:[d,p]}),e[16]=d,e[17]=p,e[18]=f):f=e[18],f});_a.displayName="AgentPanelHeader";var Js=(0,M.memo)(t=>{let e=(0,$e.c)(15),{currentAgentId:a,connectionState:s,onConnect:n,onDisconnect:i}=t,r=Ra(Bt),l;e[0]!==s||e[1]!==a||e[2]!==n||e[3]!==i?(l=(0,o.jsx)(_a,{connectionState:s,currentAgentId:a,onConnect:n,onDisconnect:i,hasActiveSession:!1}),e[0]=s,e[1]=a,e[2]=n,e[3]=i,e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)(ya,{}),e[5]=c):c=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,o.jsx)(Ja,{title:"No Agent Sessions",description:"Create a new session to start a conversation",action:(0,o.jsx)(Ft,{className:"border-y-1 rounded"}),icon:(0,o.jsx)(gt,{})}),e[6]=d):d=e[6];let u;e[7]!==s.status||e[8]!==r?(u=s.status==="disconnected"&&(0,o.jsx)($t,{className:"border-t pt-6",title:"Connect to an agent",description:(0,o.jsxs)(o.Fragment,{children:["Start agents by running these commands in your terminal:",(0,o.jsx)("br",{}),"Note: This must be in the directory"," ",Kt.dirname(r??"")]})}),e[7]=s.status,e[8]=r,e[9]=u):u=e[9];let m;e[10]===u?m=e[11]:(m=(0,o.jsx)("div",{className:"flex-1 flex items-center justify-center p-6",children:(0,o.jsxs)("div",{className:"max-w-md w-full space-y-6",children:[d,u]})}),e[10]=u,e[11]=m);let p;return e[12]!==l||e[13]!==m?(p=(0,o.jsxs)("div",{className:"flex flex-col h-full",children:[l,c,m]}),e[12]=l,e[13]=m,e[14]=p):p=e[14],p});Js.displayName="EmptyState";var Hs=(0,M.memo)(t=>{let e=(0,$e.c)(10),{isLoading:a,isRequestingPermission:s,onStop:n}=t;if(!a)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(Yt,{size:"small",className:"text-primary"}),e[0]=i):i=e[0];let r;e[1]===s?r=e[2]:(r=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[i,s?(0,o.jsx)("span",{children:"Waiting for permission to continue..."}):(0,o.jsx)("span",{children:"Agent is working..."})]}),e[1]=s,e[2]=r);let l,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(kr,{className:"h-3 w-3 mr-1"}),c=(0,o.jsx)("span",{className:"text-xs",children:"Stop"}),e[3]=l,e[4]=c):(l=e[3],c=e[4]);let d;e[5]===n?d=e[6]:(d=(0,o.jsx)("div",{className:"flex items-center gap-2",children:(0,o.jsxs)(le,{size:"sm",variant:"outline",onClick:n,className:"h-6 px-2",children:[l,c]})}),e[5]=n,e[6]=d);let u;return e[7]!==r||e[8]!==d?(u=(0,o.jsx)("div",{className:"px-3 py-2 border-t bg-muted/30 flex-shrink-0",children:(0,o.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[r,d]})}),e[7]=r,e[8]=d,e[9]=u):u=e[9],u});Hs.displayName="LoadingIndicator";var Ys=(0,M.memo)(t=>{let e=(0,$e.c)(69),{isLoading:a,activeSessionId:s,promptValue:n,commands:i,onPromptValueChange:r,onPromptSubmit:l,onAddFiles:c,onStop:d,fileInputRef:u,sessionMode:m,onModeChange:p,sessionModels:f,onModelChange:x}=t,v=(0,M.useRef)(null),w;e:{if(!i){w=void 0;break e}let se;e[0]===Symbol.for("react.memo_cache_sentinel")?(se=/^\/(\w+)?/,e[0]=se):se=e[0];let Ye;e[1]===i?Ye=e[2]:(Ye=i.map(Al),e[1]=i,e[2]=Ye);let ht;e[3]===Ye?ht=e[4]:(ht={triggerCompletionRegex:se,completions:Ye},e[3]=Ye,e[4]=ht),w=ht}let j=w,C;e[5]!==l||e[6]!==n?(C=()=>{n.trim()&&l(void 0,n)},e[5]=l,e[6]=n,e[7]=C):C=e[7];let A=oe(C),I;e[8]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{Fn(v)},e[8]=I):I=e[8];let O=oe(I),U=(a||!s)&&"opacity-50 pointer-events-none",L;e[9]===U?L=e[10]:(L=xe("px-3 py-2 min-h-[80px]",U),e[9]=U,e[10]=L);let V=a?Ma.NOOP:r,K=a?"Processing...":"Ask anything, @ to include context about tables or dataframes",B=a?"opacity-50 pointer-events-none":"",P;e[11]!==c||e[12]!==l||e[13]!==j||e[14]!==n||e[15]!==V||e[16]!==K||e[17]!==B?(P=(0,o.jsx)($n,{inputRef:v,value:n,onChange:V,onSubmit:l,additionalCompletions:j,onClose:Ma.NOOP,onAddFiles:c,placeholder:K,className:B,maxHeight:"120px"}),e[11]=c,e[12]=l,e[13]=j,e[14]=n,e[15]=V,e[16]=K,e[17]=B,e[18]=P):P=e[18];let F;e[19]!==L||e[20]!==P?(F=(0,o.jsx)("div",{className:L,children:P}),e[19]=L,e[20]=P,e[21]=F):F=e[21];let ue;e[22]!==p||e[23]!==m?(ue=m&&p&&(0,o.jsx)(Gs,{sessionMode:m,onModeChange:p}),e[22]=p,e[23]=m,e[24]=ue):ue=e[24];let X;e[25]!==s||e[26]!==a||e[27]!==x||e[28]!==f?(X=f&&x&&s&&(0,o.jsx)(Fs,{sessionModels:f,onModelChange:x,disabled:a}),e[25]=s,e[26]=a,e[27]=x,e[28]=f,e[29]=X):X=e[29];let me;e[30]!==ue||e[31]!==X?(me=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[ue,X]}),e[30]=ue,e[31]=X,e[32]=me):me=e[32];let ge;e[33]===Symbol.for("react.memo_cache_sentinel")?(ge=(0,o.jsx)(Zn,{className:"h-3.5 w-3.5"}),e[33]=ge):ge=e[33];let de;e[34]!==O||e[35]!==a?(de=(0,o.jsx)(yt,{content:"Add context",children:(0,o.jsx)(le,{variant:"text",size:"icon",onClick:O,disabled:a,children:ge})}),e[34]=O,e[35]=a,e[36]=de):de=e[36];let ye;e[37]===u?ye=e[38]:(ye=()=>{var se;return(se=u.current)==null?void 0:se.click()},e[37]=u,e[38]=ye);let Se;e[39]===Symbol.for("react.memo_cache_sentinel")?(Se=(0,o.jsx)(zn,{className:"h-3.5 w-3.5"}),e[39]=Se):Se=e[39];let Ce;e[40]!==a||e[41]!==ye?(Ce=(0,o.jsx)(yt,{content:"Attach a file",children:(0,o.jsx)(le,{variant:"text",size:"icon",className:"cursor-pointer",onClick:ye,title:"Attach a file",disabled:a,children:Se})}),e[40]=a,e[41]=ye,e[42]=Ce):Ce=e[42];let Ie;e[43]===c?Ie=e[44]:(Ie=se=>{se.target.files&&c([...se.target.files])},e[43]=c,e[44]=Ie);let W;e[45]===Symbol.for("react.memo_cache_sentinel")?(W=Il.join(","),e[45]=W):W=e[45];let G;e[46]!==u||e[47]!==Ie?(G=(0,o.jsx)(rr,{ref:u,type:"file",multiple:!0,hidden:!0,onChange:Ie,accept:W}),e[46]=u,e[47]=Ie,e[48]=G):G=e[48];let J=a?"Stop":"Submit",ee=a?d:A,ie=a?!1:!n.trim(),R;e[49]===a?R=e[50]:(R=a?(0,o.jsx)(ir,{className:"h-3 w-3 fill-current"}):(0,o.jsx)(En,{className:"h-3 w-3"}),e[49]=a,e[50]=R);let z;e[51]!==ee||e[52]!==ie||e[53]!==R?(z=(0,o.jsx)(le,{variant:"text",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted/30 cursor-pointer",onClick:ee,disabled:ie,children:R}),e[51]=ee,e[52]=ie,e[53]=R,e[54]=z):z=e[54];let ae;e[55]!==J||e[56]!==z?(ae=(0,o.jsx)(yt,{content:J,children:z}),e[55]=J,e[56]=z,e[57]=ae):ae=e[57];let _e;e[58]!==de||e[59]!==Ce||e[60]!==G||e[61]!==ae?(_e=(0,o.jsxs)("div",{className:"flex flex-row",children:[de,Ce,G,ae]}),e[58]=de,e[59]=Ce,e[60]=G,e[61]=ae,e[62]=_e):_e=e[62];let Fe;e[63]!==me||e[64]!==_e?(Fe=(0,o.jsx)(ur,{children:(0,o.jsxs)("div",{className:"px-3 py-2 border-t border-border/20 flex flex-row items-center justify-between",children:[me,_e]})}),e[63]=me,e[64]=_e,e[65]=Fe):Fe=e[65];let He;return e[66]!==F||e[67]!==Fe?(He=(0,o.jsxs)("div",{className:"border-t bg-background flex-shrink-0",children:[F,Fe]}),e[66]=F,e[67]=Fe,e[68]=He):He=e[68],He});Ys.displayName="PromptArea";var Gs=(0,M.memo)(t=>{let e=(0,$e.c)(28),{sessionMode:a,onModeChange:s}=t,n,i,r,l,c,d,u,m,p;if(e[0]!==s||e[1]!==(a==null?void 0:a.availableModes)||e[2]!==(a==null?void 0:a.currentModeId)){p=Symbol.for("react.early_return_sentinel");e:{let w=(a==null?void 0:a.availableModes)||[],j=a==null?void 0:a.currentModeId;if(w.length===0){p=null;break e}let C=w.map(Rl),A;e[12]===j?A=e[13]:(A=O=>O.value===j,e[12]=j,e[13]=A);let I=C.find(A);r=Da,d=j,u=s,m=(0,o.jsx)(za,{className:"h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1 capitalize",children:(I==null?void 0:I.label)??j}),i=Fa,n=Ua,e[14]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(Za,{children:"Agent Mode"}),e[14]=l):l=e[14],c=C.map(Ml)}e[0]=s,e[1]=a==null?void 0:a.availableModes,e[2]=a==null?void 0:a.currentModeId,e[3]=n,e[4]=i,e[5]=r,e[6]=l,e[7]=c,e[8]=d,e[9]=u,e[10]=m,e[11]=p}else n=e[3],i=e[4],r=e[5],l=e[6],c=e[7],d=e[8],u=e[9],m=e[10],p=e[11];if(p!==Symbol.for("react.early_return_sentinel"))return p;let f;e[15]!==n||e[16]!==l||e[17]!==c?(f=(0,o.jsxs)(n,{children:[l,c]}),e[15]=n,e[16]=l,e[17]=c,e[18]=f):f=e[18];let x;e[19]!==i||e[20]!==f?(x=(0,o.jsx)(i,{children:f}),e[19]=i,e[20]=f,e[21]=x):x=e[21];let v;return e[22]!==r||e[23]!==d||e[24]!==u||e[25]!==m||e[26]!==x?(v=(0,o.jsxs)(r,{value:d,onValueChange:u,children:[m,x]}),e[22]=r,e[23]=d,e[24]=u,e[25]=m,e[26]=x,e[27]=v):v=e[27],v});Gs.displayName="ModeSelector";var Qs=(0,M.memo)(t=>{let e=(0,$e.c)(33),{hasNotifications:a,agentId:s,connectionState:n,notifications:i,pendingPermission:r,onResolvePermission:l,onRetryConnection:c,onRetryLastAction:d,sessionId:u}=t,[m,p]=(0,M.useState)(!0),f=(0,M.useRef)(null),x=n.status==="disconnected",v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{let X=f.current;if(!X)return;let{scrollTop:me,scrollHeight:ge,clientHeight:de}=X;p(ge>de?Math.abs(ge-de-me)<5:!0)},e[0]=v):v=e[0];let w=oe(v),j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{let X=f.current;X&&X.scrollTo({top:X.scrollHeight,behavior:"smooth"})},e[1]=j):j=e[1];let C=oe(j),A,I;e[2]!==m||e[3]!==i.length||e[4]!==C?(A=()=>{if(m&&i.length>0){let X=setTimeout(C,100);return()=>clearTimeout(X)}},I=[i.length,m,C],e[2]=m,e[3]=i.length,e[4]=C,e[5]=A,e[6]=I):(A=e[5],I=e[6]),(0,M.useEffect)(A,I);let O;e[7]!==s||e[8]!==n.status||e[9]!==a||e[10]!==x||e[11]!==i||e[12]!==c||e[13]!==d?(O=()=>a?(0,o.jsx)(bl,{isConnected:n.status==="connected",notifications:i,onRetryConnection:c,onRetryLastAction:d}):n.status==="connected"?(0,o.jsx)(ha,{}):(0,o.jsxs)("div",{className:"flex items-center justify-center h-full min-h-[200px] flex-col",children:[(0,o.jsx)(Ja,{title:"Waiting for agent",description:"Your AI agent will appear here when active",icon:(0,o.jsx)(gt,{})}),x&&s&&(0,o.jsx)($t,{className:"border-t pt-6 px-5",title:"Make sure you're connected to an agent",description:"Run this command in your terminal:",agents:[s]}),x&&(0,o.jsx)(le,{variant:"outline",onClick:c,type:"button",className:"mt-4",children:"Retry"})]}),e[7]=s,e[8]=n.status,e[9]=a,e[10]=x,e[11]=i,e[12]=c,e[13]=d,e[14]=O):O=e[14];let U=O,L;e[15]!==l||e[16]!==r?(L=r&&(0,o.jsx)("div",{className:"p-3 border-b",children:(0,o.jsx)(Ts,{permission:r,onResolve:l})}),e[15]=l,e[16]=r,e[17]=L):L=e[17];let V;e[18]===u?V=e[19]:(V=u&&(0,o.jsxs)("div",{className:"text-xs text-muted-foreground mb-2 px-2",children:["Session ID: ",u]}),e[18]=u,e[19]=V);let K;e[20]===U?K=e[21]:(K=U(),e[20]=U,e[21]=K);let B;e[22]!==w||e[23]!==V||e[24]!==K?(B=(0,o.jsxs)("div",{ref:f,className:"flex-1 bg-muted/20 w-full flex flex-col overflow-y-auto p-2",onScroll:w,children:[V,K]}),e[22]=w,e[23]=V,e[24]=K,e[25]=B):B=e[25];let P=!m&&a,F;e[26]!==C||e[27]!==P?(F=(0,o.jsx)(yl,{isVisible:P,onScrollToBottom:C}),e[26]=C,e[27]=P,e[28]=F):F=e[28];let ue;return e[29]!==F||e[30]!==L||e[31]!==B?(ue=(0,o.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden flex-shrink-0 relative",children:[L,B,F]}),e[29]=F,e[30]=L,e[31]=B,e[32]=ue):ue=e[32],ue});Qs.displayName="ChatContent";var ba="_skip_auto_connect_";function Xs(){let t=Wt.get(Bt);if(!t)throw Error("Please save the notebook and refresh the browser to use the agent");return Kt.dirname(t)}var Tl=()=>{let[t,e]=(0,M.useState)(!1),[a,s]=(0,M.useState)(null),[n,i]=(0,M.useState)(""),[r,l]=(0,M.useState)(),[c,d]=(0,M.useState)(null),u=(0,M.useRef)(null),[m]=ft(va),[p,f]=ft(ct),x=m?ml(m.agentId):ba,{sendUpdateFile:v,sendFileDetails:w}=Mn(),j=(0,M.useRef)(!1),{connect:C,disconnect:A,setActiveSessionId:I,connectionState:O,notifications:U,pendingPermission:L,availableCommands:V,resolvePermission:K,sessionMode:B,activeSessionId:P,agent:F,clearNotifications:ue}=fo({wsUrl:x,clientOptions:{readTextFile:R=>(re.debug("Agent requesting file read",{path:R.path}),w({path:R.path}).then(z=>({content:z.contents||""}))),writeTextFile:R=>(re.debug("Agent requesting file write",{path:R.path,contentLength:R.content.length}),v({path:R.path,contents:R.content}).then(()=>({})))},autoConnect:!1});(0,M.useEffect)(()=>{F==null||F.initialize({protocolVersion:1,clientCapabilities:{fs:{readTextFile:!0,writeTextFile:!0}}})},[F]),(0,M.useEffect)(()=>{if(I(null),x!==ba)return re.debug("Auto-connecting to agent",{sessionId:P}),C().catch(R=>{re.error("Failed to connect to agent",{error:R})}),()=>{}},[x]);let X=oe(async()=>{if(F){j.current=!0;try{P&&(await F.cancel({sessionId:P}).catch(ae=>{re.error("Failed to cancel active session",{error:ae})}),ue(P),I(null));let R=(m==null?void 0:m.selectedModel)??null;re.debug("Creating new agent session",{model:R});let z=await F.newSession({cwd:Xs(),mcpServers:[],_meta:R?{model:R}:void 0});z.models&&(re.debug("Session models received",{models:z.models}),d(z.models)),f(ae=>Ms(ae,z.sessionId))}finally{j.current=!1}}}),me=oe(async R=>{if(F){if(re.debug("Resuming agent session",{sessionId:R}),!F.loadSession)throw Error("Agent does not support loading sessions");j.current=!0;try{let z=await F.loadSession({sessionId:R,cwd:Xs(),mcpServers:[]});z!=null&&z.models&&(re.debug("Session models received",{models:z.models}),d(z.models)),f(ae=>Ms(ae,R))}finally{j.current=!1}}}),ge=O.status==="connected",de=m==null?void 0:m.externalAgentSessionId;(0,M.useEffect)(()=>{!ge||!m||!F||P&&de||j.current||(async()=>{let R=de??P;try{if(R)try{await me(R)}catch(z){re.error("Failed to resume session",{sessionId:R,error:z}),await X()}else await X();s(null)}catch(z){re.error("Failed to create or resume session:",z),s(z instanceof Error?z:String(z))}})()},[ge,F,de,P]);let ye=oe(async(R,z)=>{if(!P||!F||t)return;re.debug("Submitting prompt to agent",{sessionId:P}),e(!0),i(""),l(void 0),m!=null&&m.title.startsWith("New ")&&f(se=>ll(se,z));let ae=Wt.get(Bt);if(!ae){vt({title:"Notebook must be named",description:"Please name the notebook to use the agent",variant:"danger"});return}let _e=[{type:"text",text:z}],{contextBlocks:Fe,attachmentBlocks:He}=await Sl(z);if(_e.push(...Fe,...He),r&&r.length>0){let se=await jl(r);_e.push(...se)}U.some(se=>se.type==="session_notification"&&se.data.update.sessionUpdate==="user_message_chunk")||_e.push({type:"resource_link",uri:ae,mimeType:"text/x-python",name:ae},{type:"resource",resource:{uri:"marimo_rules.md",mimeType:"text/plain",text:Cl(ae)}});try{await F.prompt({sessionId:P,prompt:_e})}catch(se){re.error("Failed to send prompt",{error:se})}finally{e(!1)}}),Se=oe(async()=>{!P||!F||(await F.cancel({sessionId:P}),e(!1))}),Ce=oe(R=>{R.length!==0&&l(z=>[...z??[],...R])}),Ie=oe(R=>{r&&l(r.filter(z=>z!==R))}),W=oe(()=>{re.debug("Manual connect requested",{currentStatus:O.status}),C()}),G=oe(()=>{re.debug("Manual disconnect requested",{sessionId:P,currentStatus:O.status}),A()}),J=oe(R=>{var z;if(re.debug("Model change requested",{modelId:R,sessionId:P}),!F||!P){vt({title:"Cannot change model",description:"Please connect to an agent with an active session first",variant:"danger"});return}(z=F.setSessionModel)==null||z.call(F,{sessionId:P,modelId:R}),d(ae=>ae?{...ae,currentModelId:R}:null)}),ee=oe(R=>{var z;if(re.debug("Mode change requested",{sessionId:P,mode:R}),!F){vt({title:"Agent not connected",description:"Please connect to an agent to change the mode",variant:"danger"});return}if(!F.setSessionMode){vt({title:"Mode change not supported",description:"The agent does not support mode changes",variant:"danger"});return}(z=F.setSessionMode)==null||z.call(F,{sessionId:P,modeId:R})}),ie=U.length>0;return p.sessions.length>0?(0,o.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden mo-agent-panel",children:[(0,o.jsx)(_a,{connectionState:O,currentAgentId:m==null?void 0:m.agentId,onConnect:W,onDisconnect:G,onRestartThread:X,hasActiveSession:!0,shouldShowConnectionControl:x!==ba}),(0,o.jsx)(ya,{}),a?(0,o.jsx)(vr,{className:"w-3/4 mx-auto mt-10",error:a,action:(0,o.jsx)(le,{variant:"linkDestructive",size:"sm",onClick:()=>s(null),children:"Dismiss"})}):O.status==="connecting"?(0,o.jsx)(Oa,{milliseconds:200,children:(0,o.jsxs)("div",{className:"flex items-center justify-center h-full min-h-[200px] flex-col",children:[(0,o.jsx)(Yt,{size:"medium",className:"text-primary"}),(0,o.jsx)("span",{className:"text-sm text-muted-foreground",children:"Connecting to the agent..."})]})}):de==null&&O.status==="connected"?(0,o.jsx)(Oa,{milliseconds:200,children:(0,o.jsxs)("div",{className:"flex items-center justify-center h-full min-h-[200px] flex-col",children:[(0,o.jsx)(Yt,{size:"medium",className:"text-primary"}),(0,o.jsx)("span",{className:"text-sm text-muted-foreground",children:"Creating a new session..."})]})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Qs,{agentId:m==null?void 0:m.agentId,sessionId:(m==null?void 0:m.externalAgentSessionId)??null,hasNotifications:ie,connectionState:O,notifications:U,pendingPermission:L,onResolvePermission:R=>{re.debug("Resolving permission request",{sessionId:P,option:R}),K(R)},onRetryConnection:W},P),(0,o.jsx)(Hs,{isLoading:t,isRequestingPermission:!!L,onStop:Se}),r&&r.length>0&&(0,o.jsx)("div",{className:"flex flex-row gap-1 flex-wrap p-3 border-t",children:r.map(R=>(0,o.jsx)(Un,{file:R,onRemove:()=>Ie(R)},R.name))}),(0,o.jsx)(Ys,{isLoading:t,activeSessionId:P,promptValue:n,onPromptValueChange:i,onPromptSubmit:ye,onAddFiles:Ce,onStop:Se,fileInputRef:u,commands:V,sessionMode:B,onModeChange:ee,sessionModels:c,onModelChange:J})]})]}):(0,o.jsx)(Js,{currentAgentId:m==null?void 0:m.agentId,connectionState:O,onConnect:W,onDisconnect:G})};function Al(t){return{label:`/${t.name}`,info:t.description}}function Rl(t){return{value:t.id,label:t.name,subtitle:t.description??""}}function Ml(t){return(0,o.jsx)($a,{value:t.value,className:"text-xs",children:(0,o.jsxs)("div",{className:"flex flex-col",children:[t.label,t.subtitle&&(0,o.jsx)("div",{className:"text-muted-foreground text-xs pt-1 block",children:t.subtitle})]})},t.value)}export{Tl as default}; diff --git a/docs/assets/agent-panel-uD4NfS9H.css b/docs/assets/agent-panel-uD4NfS9H.css new file mode 100644 index 0000000..a25f4ad --- /dev/null +++ b/docs/assets/agent-panel-uD4NfS9H.css @@ -0,0 +1 @@ +.mo-agent-panel{& pre{width:100%}} diff --git a/docs/assets/ai-model-dropdown-C-5PlP5A.js b/docs/assets/ai-model-dropdown-C-5PlP5A.js new file mode 100644 index 0000000..da617a7 --- /dev/null +++ b/docs/assets/ai-model-dropdown-C-5PlP5A.js @@ -0,0 +1,2 @@ +var U0=Object.defineProperty;var D0=(o,e,t)=>e in o?U0(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var A0=(o,e,t)=>D0(o,typeof e!="symbol"?e+"":e,t);import{s as z0}from"./chunk-LvLJmgfZ.js";import{l as W0,u as j0}from"./useEvent-DlWF5OMa.js";import{t as q0}from"./react-BGmjiNul.js";import{Qn as G0}from"./cells-CmJW_FeD.js";import{t as $}from"./compiler-runtime-DeeZ7FnK.js";import{t as J0}from"./capitalize-DQeWKRGx.js";import{d as _0}from"./hotkeys-uKX61F1_.js";import{S as X0,c as $0,n as e2}from"./utils-Czt8B2GX.js";import{t as t2}from"./jsx-runtime-DN_bIXfG.js";import{t as I0}from"./cn-C1rgT0yh.js";import{n as B0}from"./once-CTiSlR1m.js";import{r as i2}from"./requests-C0HaHO6a.js";import{t as o2}from"./createLucideIcon-CW2xpJ57.js";import{_ as s2}from"./select-D9lTzMzP.js";import{u as a2}from"./toDate-5JckKRQn.js";import{a as r2,c as e0,d as P0,f as S0,p as n2,r as l2,s as d2,t as c2,u as L0}from"./dropdown-menu-BP4_BZLr.js";import{t as t0}from"./tooltip-CvjcEpZC.js";import{t as C0}from"./multi-map-CQd4MZr5.js";var N0=o2("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),m2=$(),p2=o=>{switch(o){case"chat":return"chat_model";case"autocomplete":return"autocomplete_model";case"edit":return"edit_model"}};const O0=()=>{let o=(0,m2.c)(12),[e,t]=W0(X0),{saveUserConfig:n}=i2(),r;o[0]!==n||o[1]!==t?(r=async h=>{await n({config:h}).then(()=>{t(u=>({...u,...h}))})},o[0]=n,o[1]=t,o[2]=r):r=o[2];let l=r,m;o[3]!==l||o[4]!==e?(m=async(h,u)=>{var v,f,s,k,x;let g=p2(u);g&&l({ai:{...e.ai,models:{custom_models:((f=(v=e.ai)==null?void 0:v.models)==null?void 0:f.custom_models)??[],displayed_models:((k=(s=e.ai)==null?void 0:s.models)==null?void 0:k.displayed_models)??[],...(x=e.ai)==null?void 0:x.models,[g]:h}}})},o[3]=l,o[4]=e,o[5]=m):m=o[5];let d=m,p;o[6]!==l||o[7]!==e?(p=async h=>{l({ai:{...e.ai,mode:h}})},o[6]=l,o[7]=e,o[8]=p):p=o[8];let a=p,c;return o[9]!==a||o[10]!==d?(c={saveModelChange:d,saveModeChange:a},o[9]=a,o[10]=d,o[11]=c):c=o[11],c},T0=["openai","anthropic","google","ollama","bedrock","deepseek","azure","github","openrouter","wandb","marimo"];var y=class s0{constructor(e,t){this.providerId=e,this.shortModelId=t}get id(){return`${this.providerId}/${this.shortModelId}`}static parse(e){if(!e.includes("/"))return new s0(h2(e),e);let[t,...n]=e.split("/");return new s0(t,n.join("/"))}};function h2(o){return o.startsWith("gpt")||o.startsWith("o3")||o.startsWith("o1")?"openai":o.startsWith("claude")?"anthropic":o.startsWith("gemini")||o.startsWith("google")?"google":o.startsWith("deepseek")?"deepseek":"ollama"}function i0(o){return T0.includes(o)}const g2=[{name:"Claude 4.5 Opus",model:"claude-opus-4-5",description:"Latest Opus model with enhanced capabilities and performance improvements",providers:["anthropic"],roles:["chat","edit"],thinking:!0},{name:"Claude 4.5 Sonnet",model:"claude-sonnet-4-5",description:"Latest Sonnet model with enhanced capabilities and performance improvements",providers:["anthropic"],roles:["chat","edit"],thinking:!0},{name:"Claude 4.1 Opus",model:"claude-opus-4-1",description:"Latest Opus model with enhanced capabilities and performance improvements",providers:["anthropic"],roles:["chat","edit"],thinking:!0},{name:"Claude 4 Opus",model:"claude-opus-4-0",description:"Most capable model with superior performance on complex tasks and reasoning",providers:["anthropic"],roles:["chat","edit"],thinking:!0},{name:"Claude 4 Sonnet",model:"claude-sonnet-4-0",description:"Next-generation Sonnet model with advanced reasoning and multimodal capabilities",providers:["anthropic"],roles:["chat","edit"],thinking:!0},{name:"Claude 3.7 Sonnet",model:"claude-3-7-sonnet-latest",description:"Enhanced Sonnet model with improved capabilities",providers:["anthropic"],roles:["chat","edit"],thinking:!1},{name:"Claude 3.5 Sonnet",model:"claude-3-5-sonnet-latest",description:"Balanced model with strong performance across reasoning, math, and coding",providers:["anthropic"],roles:["chat","edit"],thinking:!1},{name:"Claude 3.5 Haiku",model:"claude-3-5-haiku-latest",description:"Fast and efficient model with excellent performance for everyday tasks",providers:["anthropic"],roles:["chat","edit"],thinking:!1},{name:"Gemini 3.0 Pro",model:"gemini-3-pro-preview",description:"Most capable Gemini model with advanced reasoning and large context support",providers:["google"],roles:["chat","edit"],thinking:!0},{name:"Gemini 2.5 Pro",model:"gemini-2.5-pro",description:"Most capable Gemini model with advanced reasoning and large context support",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 2.5 Pro Experimental",model:"gemini-2.5-pro-exp",description:"Experimental version of Gemini 2.5 Pro with latest improvements",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 2.5 Flash",model:"gemini-2.5-flash",description:"Adaptive thinking, cost efficiency",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 2.5 Flash Lite",model:"gemini-2.5-flash-lite",description:"Most cost-efficient model supporting high throughput",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 2.0 Flash",model:"gemini-2.0-flash",description:"Next-generation Flash model with improved performance and capabilities",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 2.0 Flash Experimental",model:"gemini-2.0-flash-exp",description:"Experimental version of Gemini 2.0 Flash with cutting-edge features",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 2.0 Flash Lite",model:"gemini-2.0-flash-lite",description:"Lightweight version of Gemini 2.0 Flash optimized for efficiency",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 2.0 Flash Thinking",model:"gemini-2.0-flash-thinking-exp-01-21",description:"Specialized reasoning model with enhanced thinking capabilities",providers:["google"],roles:["chat"],thinking:!0},{name:"Gemini 1.5 Flash",model:"gemini-1.5-flash",description:"Fast and efficient model optimized for speed and everyday tasks",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 1.5 Flash 8B",model:"gemini-1.5-flash-8b",description:"Lightweight version of Gemini 1.5 Flash with 8 billion parameters",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"Gemini 1.5 Pro",model:"gemini-1.5-pro",description:"Advanced model with superior reasoning capabilities and large context window",providers:["google"],roles:["chat","edit"],thinking:!1},{name:"GPT-5",model:"gpt-5",description:"The best model for coding and agentic tasks across domains",providers:["openai","azure","github"],roles:["chat","edit"],thinking:!1},{name:"GPT-5 Mini",model:"gpt-5-mini",description:"A faster, cost-efficient version of GPT-5 for well-defined tasks",providers:["openai","azure","github"],roles:["chat","edit"],thinking:!1},{name:"GPT-5 Nano",model:"gpt-5-nano",description:"Fastest, most cost-efficient version of GPT-5",providers:["openai","azure"],roles:["chat","edit"],thinking:!1},{name:"GPT-4.1",model:"gpt-4.1",description:"Fast, highly intelligent model with largest context window (1 million tokens)",providers:["openai","azure"],roles:["chat","edit"],thinking:!1},{name:"GPT-4.1 Mini",model:"gpt-4.1-mini",description:"Balanced for intelligence, speed, and cost",providers:["openai","azure"],roles:["chat","edit"],thinking:!1},{name:"GPT-4o",model:"gpt-4o",description:"Fast, intelligent, flexible GPT model with multimodal capabilities",providers:["openai","azure"],roles:["chat","edit"],thinking:!1},{name:"GPT-4o Mini",model:"gpt-4o-mini",description:"Fast, affordable small model for focused tasks",providers:["openai","azure","github"],roles:["chat","edit"],thinking:!1},{name:"o3",model:"o3",description:"Our most powerful reasoning model with chain-of-thought capabilities",providers:["openai","azure"],roles:["chat","edit"],thinking:!0},{name:"o3 Mini",model:"o3-mini",description:"A small model alternative to o3 for reasoning tasks",providers:["openai","azure"],roles:["chat","edit"],thinking:!0},{name:"o3 Pro",model:"o3-pro",description:"Version of o3 designed to think longer and provide most reliable responses",providers:["openai","azure"],roles:["chat","edit"],thinking:!0},{name:"o4 Mini",model:"o4-mini",description:"Faster, more affordable reasoning model optimized for math, coding, and visual tasks",providers:["openai","azure"],roles:["chat","edit"],thinking:!0},{name:"GPT-3.5-turbo",model:"gpt-3.5-turbo",description:"Fast and efficient model with excellent performance for everyday tasks",providers:["github"],roles:["chat","edit"],thinking:!1},{name:"Claude 4.5 Sonnet (Bedrock)",model:"global.anthropic.claude-sonnet-4-5-20250929-v1:0",description:"Enhanced Sonnet model with improved capabilities",providers:["bedrock"],roles:["chat","edit"],thinking:!1},{name:"Claude 4.1 Opus (Bedrock)",model:"us.anthropic.claude-opus-4-1-20250805-v1:0",description:"Opus model for deep thinking",providers:["bedrock"],roles:["chat","edit"],thinking:!1},{name:"Claude 3.7 Sonnet (Bedrock)",model:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",description:"Enhanced Sonnet model with improved capabilities",providers:["bedrock"],roles:["chat","edit"],thinking:!1},{name:"Claude 3.5 Sonnet v2 (Bedrock)",model:"us.anthropic.claude-3-5-sonnet-20241022-v2:0",description:"Balanced model with strong performance across reasoning, math, and coding",providers:["bedrock"],roles:["chat","edit"],thinking:!1},{name:"Claude 3.5 Haiku (Bedrock)",model:"us.anthropic.claude-3-5-haiku-20241022-v1:0",description:"Fast and efficient model with excellent performance for everyday tasks",providers:["bedrock"],roles:["chat","edit"],thinking:!1},{name:"Llama 3.3 70B Instruct",model:"us.meta.llama3-3-70b-instruct-v1:0",description:"Large language model optimized for instruction following and chat",providers:["bedrock"],roles:["chat","edit"],thinking:!1},{name:"Cohere Embed Multilingual v3",model:"cohere.embed-multilingual-v3",description:"Multilingual text embedding model for semantic search and similarity",providers:["bedrock"],roles:["embed"],thinking:!1},{name:"Cohere Rerank 3.5",model:"cohere.rerank-v3-5:0",description:"Advanced reranking model for improving search result relevance",providers:["bedrock"],roles:["rerank"],thinking:!1},{name:"gpt-oss 20b",model:"gpt-oss:20b",description:"OpenAI\u2019s open-weight models designed for powerful reasoning, agentic tasks, and versatile developer use cases.",providers:["ollama"],roles:["chat","edit"],thinking:!0},{name:"Qwen3 8b",model:"qwen3:8b",description:"Qwen3 is the latest generation of large language models in Qwen series.",providers:["ollama"],roles:["chat","edit"],thinking:!0},{name:"Gemma3 12b",model:"gemma3:12b",description:"Lightweight gemma models trained by Google, trained to run on a single GPU.",providers:["ollama"],roles:["chat","edit"],thinking:!0},{name:"Meta Llama 3.1 8B (W&B)",model:"meta-llama/Llama-3.1-8B-Instruct",description:"Efficient conversational model optimized for responsive multilingual chatbot interactions",providers:["wandb"],roles:["chat","edit"],thinking:!1},{name:"OpenAI GPT OSS 120B",model:"openai/gpt-oss-120b",description:"Efficient Mixture-of-Experts model designed for high-reasoning, agentic and general-purpose use cases",providers:["wandb"],roles:["chat","edit"],thinking:!0},{name:"OpenAI GPT OSS 20B",model:"openai/gpt-oss-20b",description:"Lower latency Mixture-of-Experts model trained on OpenAI's Harmony response format with reasoning capabilities",providers:["wandb"],roles:["chat","edit"],thinking:!0},{name:"DeepSeek V3-0324",model:"deepseek-ai/DeepSeek-V3-0324",description:"Robust Mixture-of-Experts model tailored for high-complexity language processing and comprehensive document analysis",providers:["wandb"],roles:["chat","edit"],thinking:!1},{name:"Meta Llama 3.3 70B (W&B)",model:"meta-llama/Llama-3.3-70B-Instruct",description:"Multilingual model excelling in conversational tasks, detailed instruction-following, and coding",providers:["wandb"],roles:["chat","edit"],thinking:!1},{name:"DeepSeek R1-0528",model:"deepseek-ai/DeepSeek-R1-0528",description:"Optimized for precise reasoning tasks including complex coding, math, and structured document analysis",providers:["wandb"],roles:["chat","edit"],thinking:!0},{name:"MoonshotAI Kimi K2",model:"moonshotai/Kimi-K2-Instruct",description:"Mixture-of-Experts model optimized for complex tool use, reasoning, and code synthesis",providers:["wandb"],roles:["chat","edit"],thinking:!0},{name:"Z.AI GLM 4.5",model:"zai-org/GLM-4.5",description:"Mixture-of-Experts model with user-controllable thinking/non-thinking modes for strong reasoning, code generation, and agent alignment",providers:["wandb"],roles:["chat","edit"],thinking:!0}],u2=[{name:"OpenAI",id:"openai",description:"OpenAI's API for GPT models, including GPT-3.5 and GPT-4.",url:"https://platform.openai.com/"},{name:"Amazon Bedrock",id:"bedrock",description:"Amazon Bedrock provides access to foundation models from Amazon and leading AI startups via a unified API.",url:"https://aws.amazon.com/bedrock/"},{name:"Azure",id:"azure",description:"Azure provides access to models via the Azure cloud.",url:"https://azure.microsoft.com/en-us/products/ai-services/"},{name:"Anthropic",id:"anthropic",description:"Anthropic's Claude models for conversational and completion tasks.",url:"https://www.anthropic.com/"},{name:"Google AI",id:"google",description:"Google's Vertex AI and PaLM APIs for generative and conversational models.",url:"https://cloud.google.com/vertex-ai/docs/generative-ai/learn/overview"},{name:"Ollama",id:"ollama",description:"Ollama is a lightweight, open-source model server for running and sharing LLMs.",url:"https://ollama.ai/"},{name:"GitHub",id:"github",description:"GitHub's API for GPT models with GitHub-hosted models.",url:"https://github.com/features/copilot"},{name:"marimo",id:"marimo",description:"marimo's hosted models.",url:"https://docs.marimo.io/guides/editor_features/ai_completion/"},{name:"DeepSeek",id:"deepseek",description:"DeepSeek's API for GPT models.",url:"https://deepseek.com/"},{name:"LM Studio",id:"lmstudio",description:"LM Studio's API for GPT models.",url:"https://lmstudio.ai/"},{name:"OpenRouter",id:"openrouter",description:"OpenRouter's API for GPT models.",url:"https://openrouter.ai/"},{name:"Mistral",id:"mistral",description:"Mistral's API for GPT models.",url:"https://mistral.ai/"},{name:"Vercel v0",id:"vercel",description:"Vercel's API for GPT models.",url:"https://vercel.com/"},{name:"Together AI",id:"together",description:"Together AI's API for GPT models.",url:"https://together.ai/"},{name:"xAI",id:"xai",description:"xAI's API for GPT models.",url:"https://x.ai/"},{name:"Weights & Biases",id:"wandb",description:"Weights & Biases' hosted models for ML development and AI inference.",url:"https://wandb.ai/"}],F0=B0(()=>{let o=new Map,e=new Map;for(let t of g2){let n=t.model,r={...t,model:t.model,roles:t.roles.map(m=>m),providers:t.providers,custom:!1},l=r.roles.includes("chat")||r.roles.includes("edit");for(let m of r.providers){let d=`${m}/${n}`;o.set(d,r),l&&!e.has(m)&&e.set(m,d)}}return{modelMap:o,defaultModelByProvider:e}});var E0=B0(()=>{let o=new Map,e=new Map;return u2.forEach((t,n)=>{let r=t.id;o.set(r,t),e.set(r,n)}),{providerMap:o,providerToOrderIdx:e}}),R=class W{constructor(e,t){A0(this,"modelsByProviderMap",new C0);this.customModels=new Set(e),this.displayedModels=new Set(t),this.modelsMap=new Map,this.buildMaps()}static getProviderInfo(e){let{providerMap:t}=E0();return t.get(e)}static create(e){let{customModels:t=[],displayedModels:n=[]}=e;return new W(t.map(r=>y.parse(r).id),n.map(r=>y.parse(r).id))}buildMaps(){let e=W.buildMapsFromConfig({displayedModels:this.displayedModels,customModels:this.customModels});e.modelsMap.size===0&&(_0.error("The configured displayed_models have filtered out all registered models. Reverting back to showing all models.",[...this.displayedModels]),e=W.buildMapsFromConfig({displayedModels:new Set,customModels:this.customModels})),this.modelsByProviderMap=e.modelsByProviderMap,this.modelsMap=e.modelsMap}static buildMapsFromConfig(e){let{displayedModels:t,customModels:n}=e,r=t.size>0,l=F0().modelMap,m=new Map,d=new Map,p=new C0;for(let a of n){if(r&&!t.has(a))continue;let c=y.parse(a),h={name:c.shortModelId,model:c.shortModelId,description:"Custom model",providers:[c.providerId],roles:[],thinking:!1,custom:!0};m.set(a,h)}if(r)for(let a of t){let c=l.get(a);c&&d.set(a,c)}else d=new Map(l);d=new Map([...m,...d]);for(let[a,c]of d.entries()){let h=y.parse(a);p.add(h.providerId,c)}return{modelsByProviderMap:p,modelsMap:d}}getDisplayedModels(){return this.displayedModels}getCustomModels(){return this.customModels}getModelsByProvider(e){return this.modelsByProviderMap.get(e)||[]}getGroupedModelsByProvider(){return this.modelsByProviderMap}getListModelsByProvider(){let e=[...this.getGroupedModelsByProvider().entries()],t=E0().providerToOrderIdx;return e.sort((n,r)=>{let l=n[0],m=r[0];return(t.get(l)??0)-(t.get(m)??0)}),e}getModelsMap(){return this.modelsMap}getModel(e){return this.modelsMap.get(e)}},V0="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAnthropic%3c/title%3e%3cpath%20d='M17.3041%203.541h-3.6718l6.696%2016.918H24Zm-10.6082%200L0%2020.459h3.7442l1.3693-3.5527h7.0052l1.3693%203.5528h3.7442L10.5363%203.5409Zm-.3712%2010.2232%202.2914-5.9456%202.2914%205.9456Z'/%3e%3c/svg%3e",v2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20y='0'%20x='0'%20id='Layer_1'%20version='1.1'%20viewBox='0%200%20300.67%20179.8'%3e%3cstyle%20id='style1855'%20type='text/css'%3e.st1{fill-rule:evenodd;clip-rule:evenodd;fill:%23f90}%3c/style%3e%3cg%20transform='translate(-1.668%20-1.1)'%20id='g1865'%3e%3cpath%20id='path1857'%20d='M86.4%2066.4c0%203.7.4%206.7%201.1%208.9.8%202.2%201.8%204.6%203.2%207.2.5.8.7%201.6.7%202.3%200%201-.6%202-1.9%203L83.2%2092c-.9.6-1.8.9-2.6.9-1%200-2-.5-3-1.4-1.4-1.5-2.6-3.1-3.6-4.7-1-1.7-2-3.6-3.1-5.9-7.8%209.2-17.6%2013.8-29.4%2013.8-8.4%200-15.1-2.4-20-7.2-4.9-4.8-7.4-11.2-7.4-19.2%200-8.5%203-15.4%209.1-20.6%206.1-5.2%2014.2-7.8%2024.5-7.8%203.4%200%206.9.3%2010.6.8%203.7.5%207.5%201.3%2011.5%202.2v-7.3c0-7.6-1.6-12.9-4.7-16-3.2-3.1-8.6-4.6-16.3-4.6-3.5%200-7.1.4-10.8%201.3-3.7.9-7.3%202-10.8%203.4-1.6.7-2.8%201.1-3.5%201.3-.7.2-1.2.3-1.6.3-1.4%200-2.1-1-2.1-3.1v-4.9c0-1.6.2-2.8.7-3.5.5-.7%201.4-1.4%202.8-2.1%203.5-1.8%207.7-3.3%2012.6-4.5C41%201.9%2046.2%201.3%2051.7%201.3c11.9%200%2020.6%202.7%2026.2%208.1%205.5%205.4%208.3%2013.6%208.3%2024.6v32.4zM45.8%2081.6c3.3%200%206.7-.6%2010.3-1.8%203.6-1.2%206.8-3.4%209.5-6.4%201.6-1.9%202.8-4%203.4-6.4.6-2.4%201-5.3%201-8.7v-4.2c-2.9-.7-6-1.3-9.2-1.7-3.2-.4-6.3-.6-9.4-.6-6.7%200-11.6%201.3-14.9%204-3.3%202.7-4.9%206.5-4.9%2011.5%200%204.7%201.2%208.2%203.7%2010.6%202.4%202.5%205.9%203.7%2010.5%203.7zm80.3%2010.8c-1.8%200-3-.3-3.8-1-.8-.6-1.5-2-2.1-3.9L96.7%2010.2c-.6-2-.9-3.3-.9-4%200-1.6.8-2.5%202.4-2.5h9.8c1.9%200%203.2.3%203.9%201%20.8.6%201.4%202%202%203.9l16.8%2066.2%2015.6-66.2c.5-2%201.1-3.3%201.9-3.9.8-.6%202.2-1%204-1h8c1.9%200%203.2.3%204%201%20.8.6%201.5%202%201.9%203.9l15.8%2067%2017.3-67c.6-2%201.3-3.3%202-3.9.8-.6%202.1-1%203.9-1h9.3c1.6%200%202.5.8%202.5%202.5%200%20.5-.1%201-.2%201.6-.1.6-.3%201.4-.7%202.5l-24.1%2077.3c-.6%202-1.3%203.3-2.1%203.9-.8.6-2.1%201-3.8%201h-8.6c-1.9%200-3.2-.3-4-1-.8-.7-1.5-2-1.9-4L156%2023l-15.4%2064.4c-.5%202-1.1%203.3-1.9%204-.8.7-2.2%201-4%201zm128.5%202.7c-5.2%200-10.4-.6-15.4-1.8-5-1.2-8.9-2.5-11.5-4-1.6-.9-2.7-1.9-3.1-2.8-.4-.9-.6-1.9-.6-2.8v-5.1c0-2.1.8-3.1%202.3-3.1.6%200%201.2.1%201.8.3.6.2%201.5.6%202.5%201%203.4%201.5%207.1%202.7%2011%203.5%204%20.8%207.9%201.2%2011.9%201.2%206.3%200%2011.2-1.1%2014.6-3.3%203.4-2.2%205.2-5.4%205.2-9.5%200-2.8-.9-5.1-2.7-7-1.8-1.9-5.2-3.6-10.1-5.2L246%2052c-7.3-2.3-12.7-5.7-16-10.2-3.3-4.4-5-9.3-5-14.5%200-4.2.9-7.9%202.7-11.1%201.8-3.2%204.2-6%207.2-8.2%203-2.3%206.4-4%2010.4-5.2%204-1.2%208.2-1.7%2012.6-1.7%202.2%200%204.5.1%206.7.4%202.3.3%204.4.7%206.5%201.1%202%20.5%203.9%201%205.7%201.6%201.8.6%203.2%201.2%204.2%201.8%201.4.8%202.4%201.6%203%202.5.6.8.9%201.9.9%203.3v4.7c0%202.1-.8%203.2-2.3%203.2-.8%200-2.1-.4-3.8-1.2-5.7-2.6-12.1-3.9-19.2-3.9-5.7%200-10.2.9-13.3%202.8-3.1%201.9-4.7%204.8-4.7%208.9%200%202.8%201%205.2%203%207.1%202%201.9%205.7%203.8%2011%205.5l14.2%204.5c7.2%202.3%2012.4%205.5%2015.5%209.6%203.1%204.1%204.6%208.8%204.6%2014%200%204.3-.9%208.2-2.6%2011.6-1.8%203.4-4.2%206.4-7.3%208.8-3.1%202.5-6.8%204.3-11.1%205.6-4.5%201.4-9.2%202.1-14.3%202.1z'%20fill='%23252f3e'/%3e%3cg%20id='g1863'%3e%3cpath%20id='path1859'%20d='M273.5%20143.7c-32.9%2024.3-80.7%2037.2-121.8%2037.2-57.6%200-109.5-21.3-148.7-56.7-3.1-2.8-.3-6.6%203.4-4.4%2042.4%2024.6%2094.7%2039.5%20148.8%2039.5%2036.5%200%2076.6-7.6%20113.5-23.2%205.5-2.5%2010.2%203.6%204.8%207.6z'%20class='st1'/%3e%3cpath%20id='path1861'%20d='M287.2%20128.1c-4.2-5.4-27.8-2.6-38.5-1.3-3.2.4-3.7-2.4-.8-4.5%2018.8-13.2%2049.7-9.4%2053.3-5%203.6%204.5-1%2035.4-18.6%2050.2-2.7%202.3-5.3%201.1-4.1-1.9%204-9.9%2012.9-32.2%208.7-37.5z'%20class='st1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",f2="data:image/svg+xml,%3csvg%20width='150'%20height='150'%20viewBox='0%200%2096%2096'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3clinearGradient%20id='e399c19f-b68f-429d-b176-18c2117ff73c'%20x1='-1032.172'%20x2='-1059.213'%20y1='145.312'%20y2='65.426'%20gradientTransform='matrix(1%200%200%20-1%201075%20158)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23114a8b'/%3e%3cstop%20offset='1'%20stop-color='%230669bc'/%3e%3c/linearGradient%3e%3clinearGradient%20id='ac2a6fc2-ca48-4327-9a3c-d4dcc3256e15'%20x1='-1023.725'%20x2='-1029.98'%20y1='108.083'%20y2='105.968'%20gradientTransform='matrix(1%200%200%20-1%201075%20158)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-opacity='.3'/%3e%3cstop%20offset='.071'%20stop-opacity='.2'/%3e%3cstop%20offset='.321'%20stop-opacity='.1'/%3e%3cstop%20offset='.623'%20stop-opacity='.05'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='a7fee970-a784-4bb1-af8d-63d18e5f7db9'%20x1='-1027.165'%20x2='-997.482'%20y1='147.642'%20y2='68.561'%20gradientTransform='matrix(1%200%200%20-1%201075%20158)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%233ccbf4'/%3e%3cstop%20offset='1'%20stop-color='%232892df'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20fill='url(%23e399c19f-b68f-429d-b176-18c2117ff73c)'%20d='M33.338%206.544h26.038l-27.03%2080.087a4.152%204.152%200%200%201-3.933%202.824H8.149a4.145%204.145%200%200%201-3.928-5.47L29.404%209.368a4.152%204.152%200%200%201%203.934-2.825z'/%3e%3cpath%20fill='%230078d4'%20d='M71.175%2060.261h-41.29a1.911%201.911%200%200%200-1.305%203.309l26.532%2024.764a4.171%204.171%200%200%200%202.846%201.121h23.38z'/%3e%3cpath%20fill='url(%23ac2a6fc2-ca48-4327-9a3c-d4dcc3256e15)'%20d='M33.338%206.544a4.118%204.118%200%200%200-3.943%202.879L4.252%2083.917a4.14%204.14%200%200%200%203.908%205.538h20.787a4.443%204.443%200%200%200%203.41-2.9l5.014-14.777%2017.91%2016.705a4.237%204.237%200%200%200%202.666.972H81.24L71.024%2060.261l-29.781.007L59.47%206.544z'/%3e%3cpath%20fill='url(%23a7fee970-a784-4bb1-af8d-63d18e5f7db9)'%20d='M66.595%209.364a4.145%204.145%200%200%200-3.928-2.82H33.648a4.146%204.146%200%200%201%203.928%202.82l25.184%2074.62a4.146%204.146%200%200%201-3.928%205.472h29.02a4.146%204.146%200%200%200%203.927-5.472z'/%3e%3c/svg%3e",x2="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDeepSeek%3c/title%3e%3cpath%20d='M23.748%204.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434%201.202-.422%201.84.027%201.436.633%202.58%201.838%203.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526%205.526%200%2001-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365%2011.365%200%2000-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055%203.055%200%2001-.465.137%209.597%209.597%200%2000-2.883-.102c-1.885.21-3.39%201.102-4.497%202.623C.082%208.606-.231%2010.684.152%2012.85c.403%202.284%201.569%204.175%203.36%205.653%201.858%201.533%203.997%202.284%206.438%202.14%201.482-.085%203.133-.284%204.994-1.86.47.234.962.327%201.78.397.63.059%201.236-.03%201.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926%201.096-1.296%202.746-2.642%203.392-7.003.05-.347.007-.565%200-.845-.004-.17.035-.237.23-.256a4.173%204.173%200%20001.545-.475c1.396-.763%201.96-2.015%202.093-3.517.02-.23-.004-.467-.247-.588zM11.581%2018c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696%204.696%200%20011.529-.039c2.132.312%203.946%201.265%205.468%202.774.868.86%201.525%201.887%202.202%202.891.72%201.066%201.494%202.082%202.48%202.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306%200%2001.415-.287.302.302%200%2001.2.288.306.306%200%2001-.31.307.303.303%200%2001-.304-.308zm3.11%201.596c-.2.081-.399.151-.59.16a1.245%201.245%200%2001-.798-.254c-.274-.23-.47-.358-.552-.758a1.73%201.73%200%2001.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559%200%2001-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136%201.146.016.352.144.618.408%201.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z'%3e%3c/path%3e%3c/svg%3e",k2="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGitHub%3c/title%3e%3cpath%20d='M12%20.297c-6.63%200-12%205.373-12%2012%200%205.303%203.438%209.8%208.205%2011.385.6.113.82-.258.82-.577%200-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422%2018.07%203.633%2017.7%203.633%2017.7c-1.087-.744.084-.729.084-.729%201.205.084%201.838%201.236%201.838%201.236%201.07%201.835%202.809%201.305%203.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93%200-1.31.465-2.38%201.235-3.22-.135-.303-.54-1.523.105-3.176%200%200%201.005-.322%203.3%201.23.96-.267%201.98-.399%203-.405%201.02.006%202.04.138%203%20.405%202.28-1.552%203.285-1.23%203.285-1.23.645%201.653.24%202.873.12%203.176.765.84%201.23%201.91%201.23%203.22%200%204.61-2.805%205.625-5.475%205.92.42.36.81%201.096.81%202.22%200%201.606-.015%202.896-.015%203.286%200%20.315.21.69.825.57C20.565%2022.092%2024%2017.592%2024%2012.297c0-6.627-5.373-12-12-12'/%3e%3c/svg%3e",H0="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGoogle%20Gemini%3c/title%3e%3cpath%20d='M11.04%2019.32Q12%2021.51%2012%2024q0-2.49.93-4.68.96-2.19%202.58-3.81t3.81-2.55Q21.51%2012%2024%2012q-2.49%200-4.68-.93a12.3%2012.3%200%200%201-3.81-2.58%2012.3%2012.3%200%200%201-2.58-3.81Q12%202.49%2012%200q0%202.49-.96%204.68-.93%202.19-2.55%203.81a12.3%2012.3%200%200%201-3.81%202.58Q2.49%2012%200%2012q2.49%200%204.68.96%202.19.93%203.81%202.55t2.55%203.81'/%3e%3c/svg%3e",w2="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOllama%3c/title%3e%3cpath%20d='M16.361%2010.26a.894.894%200%200%200-.558.47l-.072.148.001.207c0%20.193.004.217.059.353.076.193.152.312.291.448.24.238.51.3.872.205a.86.86%200%200%200%20.517-.436.752.752%200%200%200%20.08-.498c-.064-.453-.33-.782-.724-.897a1.06%201.06%200%200%200-.466%200zm-9.203.005c-.305.096-.533.32-.65.639a1.187%201.187%200%200%200-.06.52c.057.309.31.59.598.667.362.095.632.033.872-.205.14-.136.215-.255.291-.448.055-.136.059-.16.059-.353l.001-.207-.072-.148a.894.894%200%200%200-.565-.472%201.02%201.02%200%200%200-.474.007Zm4.184%202c-.131.071-.223.25-.195.383.031.143.157.288.353.407.105.063.112.072.117.136.004.038-.01.146-.029.243-.02.094-.036.194-.036.222.002.074.07.195.143.253.064.052.076.054.255.059.164.005.198.001.264-.03.169-.082.212-.234.15-.525-.052-.243-.042-.28.087-.355.137-.08.281-.219.324-.314a.365.365%200%200%200-.175-.48.394.394%200%200%200-.181-.033c-.126%200-.207.03-.355.124l-.085.053-.053-.032c-.219-.13-.259-.145-.391-.143a.396.396%200%200%200-.193.032zm.39-2.195c-.373.036-.475.05-.654.086-.291.06-.68.195-.951.328-.94.46-1.589%201.226-1.787%202.114-.04.176-.045.234-.045.53%200%20.294.005.357.043.524.264%201.16%201.332%202.017%202.714%202.173.3.033%201.596.033%201.896%200%201.11-.125%202.064-.727%202.493-1.571.114-.226.169-.372.22-.602.039-.167.044-.23.044-.523%200-.297-.005-.355-.045-.531-.288-1.29-1.539-2.304-3.072-2.497a6.873%206.873%200%200%200-.855-.031zm.645.937a3.283%203.283%200%200%201%201.44.514c.223.148.537.458.671.662.166.251.26.508.303.82.02.143.01.251-.043.482-.08.345-.332.705-.672.957a3.115%203.115%200%200%201-.689.348c-.382.122-.632.144-1.525.138-.582-.006-.686-.01-.853-.042-.57-.107-1.022-.334-1.35-.68-.264-.28-.385-.535-.45-.946-.03-.192.025-.509.137-.776.136-.326.488-.73.836-.963.403-.269.934-.46%201.422-.512.187-.02.586-.02.773-.002zm-5.503-11a1.653%201.653%200%200%200-.683.298C5.617.74%205.173%201.666%204.985%202.819c-.07.436-.119%201.04-.119%201.503%200%20.544.064%201.24.155%201.721.02.107.031.202.023.208a8.12%208.12%200%200%201-.187.152%205.324%205.324%200%200%200-.949%201.02%205.49%205.49%200%200%200-.94%202.339%206.625%206.625%200%200%200-.023%201.357c.091.78.325%201.438.727%202.04l.13.195-.037.064c-.269.452-.498%201.105-.605%201.732-.084.496-.095.629-.095%201.294%200%20.67.009.803.088%201.266.095.555.288%201.143.503%201.534.071.128.243.393.264.407.007.003-.014.067-.046.141a7.405%207.405%200%200%200-.548%201.873c-.062.417-.071.552-.071.991%200%20.56.031.832.148%201.279L3.42%2024h1.478l-.05-.091c-.297-.552-.325-1.575-.068-2.597.117-.472.25-.819.498-1.296l.148-.29v-.177c0-.165-.003-.184-.057-.293a.915.915%200%200%200-.194-.25%201.74%201.74%200%200%201-.385-.543c-.424-.92-.506-2.286-.208-3.451.124-.486.329-.918.544-1.154a.787.787%200%200%200%20.223-.531c0-.195-.07-.355-.224-.522a3.136%203.136%200%200%201-.817-1.729c-.14-.96.114-2.005.69-2.834.563-.814%201.353-1.336%202.237-1.475.199-.033.57-.028.776.01.226.04.367.028.512-.041.179-.085.268-.19.374-.431.093-.215.165-.333.36-.576.234-.29.46-.489.822-.729.413-.27.884-.467%201.352-.561.17-.035.25-.04.569-.04.319%200%20.398.005.569.04a4.07%204.07%200%200%201%201.914.997c.117.109.398.457.488.602.034.057.095.177.132.267.105.241.195.346.374.43.14.068.286.082.503.045.343-.058.607-.053.943.016%201.144.23%202.14%201.173%202.581%202.437.385%201.108.276%202.267-.296%203.153-.097.15-.193.27-.333.419-.301.322-.301.722-.001%201.053.493.539.801%201.866.708%203.036-.062.772-.26%201.463-.533%201.854a2.096%202.096%200%200%201-.224.258.916.916%200%200%200-.194.25c-.054.109-.057.128-.057.293v.178l.148.29c.248.476.38.823.498%201.295.253%201.008.231%202.01-.059%202.581a.845.845%200%200%200-.044.098c0%20.006.329.009.732.009h.73l.02-.074.036-.134c.019-.076.057-.3.088-.516.029-.217.029-1.016%200-1.258-.11-.875-.295-1.57-.597-2.226-.032-.074-.053-.138-.046-.141.008-.005.057-.074.108-.152.376-.569.607-1.284.724-2.228.031-.26.031-1.378%200-1.628-.083-.645-.182-1.082-.348-1.525a6.083%206.083%200%200%200-.329-.7l-.038-.064.131-.194c.402-.604.636-1.262.727-2.04a6.625%206.625%200%200%200-.024-1.358%205.512%205.512%200%200%200-.939-2.339%205.325%205.325%200%200%200-.95-1.02%208.097%208.097%200%200%201-.186-.152.692.692%200%200%201%20.023-.208c.208-1.087.201-2.443-.017-3.503-.19-.924-.535-1.658-.98-2.082-.354-.338-.716-.482-1.15-.455-.996.059-1.8%201.205-2.116%203.01a6.805%206.805%200%200%200-.097.726c0%20.036-.007.066-.015.066a.96.96%200%200%201-.149-.078A4.857%204.857%200%200%200%2012%203.03c-.832%200-1.687.243-2.456.698a.958.958%200%200%201-.148.078c-.008%200-.015-.03-.015-.066a6.71%206.71%200%200%200-.097-.725C8.997%201.392%208.337.319%207.46.048a2.096%202.096%200%200%200-.585-.041Zm.293%201.402c.248.197.523.759.682%201.388.03.113.06.244.069.292.007.047.026.152.041.233.067.365.098.76.102%201.24l.002.475-.12.175-.118.178h-.278c-.324%200-.646.041-.954.124l-.238.06c-.033.007-.038-.003-.057-.144a8.438%208.438%200%200%201%20.016-2.323c.124-.788.413-1.501.696-1.711.067-.05.079-.049.157.013zm9.825-.012c.17.126.358.46.498.888.28.854.36%202.028.212%203.145-.019.14-.024.151-.057.144l-.238-.06a3.693%203.693%200%200%200-.954-.124h-.278l-.119-.178-.119-.175.002-.474c.004-.669.066-1.19.214-1.772.157-.623.434-1.185.68-1.382.078-.062.09-.063.159-.012z'/%3e%3c/svg%3e",K0="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M22.2819%209.8211a5.9847%205.9847%200%200%200-.5157-4.9108%206.0462%206.0462%200%200%200-6.5098-2.9A6.0651%206.0651%200%200%200%204.9807%204.1818a5.9847%205.9847%200%200%200-3.9977%202.9%206.0462%206.0462%200%200%200%20.7427%207.0966%205.98%205.98%200%200%200%20.511%204.9107%206.051%206.051%200%200%200%206.5146%202.9001A5.9847%205.9847%200%200%200%2013.2599%2024a6.0557%206.0557%200%200%200%205.7718-4.2058%205.9894%205.9894%200%200%200%203.9977-2.9001%206.0557%206.0557%200%200%200-.7475-7.0729zm-9.022%2012.6081a4.4755%204.4755%200%200%201-2.8764-1.0408l.1419-.0804%204.7783-2.7582a.7948.7948%200%200%200%20.3927-.6813v-6.7369l2.02%201.1686a.071.071%200%200%201%20.038.052v5.5826a4.504%204.504%200%200%201-4.4945%204.4944zm-9.6607-4.1254a4.4708%204.4708%200%200%201-.5346-3.0137l.142.0852%204.783%202.7582a.7712.7712%200%200%200%20.7806%200l5.8428-3.3685v2.3324a.0804.0804%200%200%201-.0332.0615L9.74%2019.9502a4.4992%204.4992%200%200%201-6.1408-1.6464zM2.3408%207.8956a4.485%204.485%200%200%201%202.3655-1.9728V11.6a.7664.7664%200%200%200%20.3879.6765l5.8144%203.3543-2.0201%201.1685a.0757.0757%200%200%201-.071%200l-4.8303-2.7865A4.504%204.504%200%200%201%202.3408%207.872zm16.5963%203.8558L13.1038%208.364%2015.1192%207.2a.0757.0757%200%200%201%20.071%200l4.8303%202.7913a4.4944%204.4944%200%200%201-.6765%208.1042v-5.6772a.79.79%200%200%200-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759%200%200%200-.7854%200L9.409%209.2297V6.8974a.0662.0662%200%200%201%20.0284-.0615l4.8303-2.7866a4.4992%204.4992%200%200%201%206.6802%204.66zM8.3065%2012.863l-2.02-1.1638a.0804.0804%200%200%201-.038-.0567V6.0742a4.4992%204.4992%200%200%201%207.3757-3.4537l-.142.0805L8.704%205.459a.7948.7948%200%200%200-.3927.6813zm1.0976-2.3654l2.602-1.4998%202.6069%201.4998v2.9994l-2.5974%201.4997-2.6067-1.4997Z'/%3e%3c/svg%3e",M2="data:image/svg+xml,%3csvg%20width='240'%20height='300'%20viewBox='0%200%20240%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1401_86274)'%3e%3cmask%20id='mask0_1401_86274'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='240'%20height='300'%3e%3cpath%20d='M240%200H0V300H240V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1401_86274)'%3e%3cpath%20d='M180%20240H60V120H180V240Z'%20fill='%23CFCECD'/%3e%3cpath%20d='M180%2060H60V240H180V60ZM240%20300H0V0H240V300Z'%20fill='%23211E1E'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1401_86274'%3e%3crect%20width='240'%20height='300'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",b2="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenRouter%3c/title%3e%3cpath%20d='M16.804%201.957l7.22%204.105v.087L16.73%2010.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147%201.352L8.345%2011.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314%201.17.796%202.701%201.866%201.11.775%202.083%201.177%203.147%201.352l.3.045c.694.091%201.375.094%202.825.033l.022-2.159%207.22%204.105v.087L16.589%2022l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997%2021.997%200%2000-.755-.498l-.467-.28a55.927%2055.927%200%2000-.76-.43C2.908%2014.73.563%2014.116%200%2014.116V9.888l.14.004c.564-.007%202.91-.622%203.809-1.124l1.016-.58.438-.274c.428-.28%201.072-.726%202.686-1.853%201.621-1.133%203.186-1.78%204.881-2.059%201.152-.19%201.974-.213%203.814-.138l.02-1.907z'%3e%3c/path%3e%3c/svg%3e",y2="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eWeights%20&%20Biases%3c/title%3e%3cpath%20d='M2.48%200a1.55%201.55%200%201%200%200%203.1%201.55%201.55%200%200%200%200-3.1zm19.04%200a1.55%201.55%200%201%200%200%203.101%201.55%201.55%200%200%200%200-3.101zM12%202.295a1.55%201.55%200%201%200%200%203.1%201.55%201.55%200%200%200%200-3.1zM2.48%205.272a2.48%202.48%200%201%200%200%204.96%202.48%202.48%200%200%200%200-4.96zm19.04%200a2.48%202.48%200%201%200%200%204.96%202.48%202.48%200%200%200%200-4.96zM12%208.496a1.55%201.55%200%201%200%200%203.1%201.55%201.55%200%200%200%200-3.1zm-9.52%203.907a1.55%201.55%200%201%200%200%203.1%201.55%201.55%200%200%200%200-3.1zm19.04%200a1.55%201.55%200%201%200%200%203.102%201.55%201.55%200%200%200%200-3.102zM12%2013.767a2.48%202.48%200%201%200%200%204.962%202.48%202.48%200%200%200%200-4.962zm-9.52%203.907a2.48%202.48%200%201%200%20.001%204.962%202.48%202.48%200%200%200%200-4.962zm19.04.93a1.55%201.55%200%201%200%200%203.102%201.55%201.55%200%200%200%200-3.101zM12%2020.9a1.55%201.55%200%201%200%200%203.1%201.55%201.55%200%200%200%200-3.1Z'/%3e%3c/svg%3e",A2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABtlJREFUWEetV21QlNcVfs67y67KV/EjJIRdBIxJrB9BotFqAtERTIKkk8SxNiGt7Ipa46DsxvjR0rVTKuKKJFYTE1SIxmhFbR0Kwc4YNSraqmNswhSFIrBUBD8QVGTZfU/nvrDLroqQ4Pm179nnnvvc5557zr2EXlj05hSfhgvO10AUB/A4AOHEFMCADOJrBFQx0zki+ajkkA9eyslr6kVYBUIPA8ZaLOr/ttQtYJKXgRHSy6B2EBVKwMZqa+6hnsZ0S2DY8jlD2uxSIYDxPQVx/S+CSZIEpyx3rI5wXIZsslm3neouxoMJMEhvNv6JwcvcwYkw8kk9xoZFYOjgYAT2HwBZlnH99i1UNtbj9KVKVDZcho9KhX4+GtgdDrQ52sVwGYQcbduAFRUbNrTdS+R+AhaLpL9Vu4kZ8wTYV6vFrydNxTsTY/Bk0KCHinHxymVsP/E1vjz1jRvXSQIEOqGxO39esWFbo2cQbwIzZ6r0QwPSWUa6APlp++GgyYLgwCB8dqQEs8a/iEF+/j3uSPW1RqTt2orTVRfBHmgCyjQaObZidRcJLwJPL032b3XSEQaixMqTJr6s7GlDcxNOVpZj13wz9IOG9EhAABxOJ5buyUfB6RNeeCKU+vnpYsssFrvXKYhImzvcQfJXDISH/GQg5kyeiqzifYh5eiSss+ZgoK9fryb2BMnMeG/HZhR+e/peEmtqrFuU/OpQwGKRdC21pSLjJZKwMuEtZBbtw6ujx+LDXxohfD/WWu12JH6UgfL6OncIAtpVKh5VlbW1XCGgMxlnA7xT/H4zeiLO26oVCUtMv1cyuq/2na0aMz7KcB/PzjO6rdaam6wQ0JuNx5h5EhFhybQZyD54AJuS5iNhzPN9nds9fsXeHdhRetgz3m2nv+ox6ig4qnqAped04UqWn6utwr/SrVBLKmWAkPHClS4Jw4c8jsbmmzheUYaA/r6YPjJKUcp24yqOlH8PiQgvDv8pQj2Obf3NG5i8erlSH9wmcTyFmQ2vyQxR8ZASE48vTh7BlGdGYWOSUgYU+76uBtPXW9zfyZOnYnvpYbQ7nYovSh+BJXGvY27en13FB1ofH+Qlp2LyUyPc4xZ/uQX7zohUcxmvJJ05OQ1M64TrMf9ANLTcxOK4RKTFJXZLQKxQZLin9ffRoLVdOVluGxsWib8tWun+/uZCGd7+NNsTkk+hJkMOAanCK2S8225HeuIsGF+a1i2B0KDBGB4cgkP/Oe/GaNRqxI14DkcvlqG59Y7iF/Eurv7EjRGKjU5Pxe22uy7fYdKZjflgfteT1gevvIGFU1/tlsCnv1qIV0ZFY8If30dd0zUFN2PMOGxKWoDMogJsPFSk+IRS1Wu3eKky6+O1KK0sV3xEKBdNZzszv+OJSvpZLDLe6HLdmwP5hsWY8uxoxK5ZoTQiYTOfn4TsXxiw/h8HkF3y124JLCv4HDtPHu2YjtBIOpNhI4DfeBKIDovE/kXLu1WgLwQy/74Xm74udsVuIr3JsJSBNZ4EREs9tyoH/v36K+5HqUBG4R5sPlzSqQDZSG8yTmPwQReBwX7+uHqrBetnG5Sq+KgJpO7Mxf6zJztzgI5TsDnJV8PaRoCV5Y4bOkyp2888EYqChR8owLob15TG5LJ5sdMxIkSHjMK/oKH5puIeHzEcb0+IwVffnUXx+TOuCZAz2+iVhFOyfoeKhsudKUAbOkuxoYAZbwqvODqvR43H7n8ew/73liN6aKRXgL58VDbU4+Ws37pDSISEDgL3bIOQvvjfZ/FsSCj2LlymHKdHYaZdW7Gn835AwBU//2a9KzLpTMYTAE8QE4kJxfWr9vpVrEyYiXmx8X2ev+j8GSzY/gm4s4ISsaXGunWVe2mh5pQXiJ3i+uLV/EVD+vjd+YgfGfWjSYjtFN2w3dnZiAg2lZ9z1CVLXpOXtnqzIZMZHZnnYYLEkvhEpMTEQav26TWR/zVdxx8O7IZYvYexxJRQnZ2rlEsvAuIhUtliKwK4qxF4jBStetqIMYgKi0TEkGA8ERiEwf4BGKDRulFCYtHOd586hr1nSt3d0QUgolU11lx3a70vu8TF9I5MxWBM8qT9eEAQ1CoJthsdtd9LIfEWUPsouWN3OnC3XXkP3G+E7FrrFjPQdVl+YHqHWFIGqG/J+cz8lmcUX41WSU5R/12vn17uRxskMtWuzRVl38sedr5It3TuPJI5k5kDe5yIqAqACoyBAHtcoamE4EyrWbet7MGi9BA5PNUY7FDjfYCTAQT1SKQDcAmMQiLKq1mX65WBP0QBL+ywRYu0dk3rSwx+AUAkCEFg8eLCHWJcYeYaSVKXOyT527qsXFsvieL/FjzLIPLjeMUAAAAASUVORK5CYII=",z2=$(),j2=z0(q0(),1),i=z0(t2(),1),Q0={openai:K0,anthropic:V0,claude:V0,gemini:H0,google:H0,codex:K0,ollama:w2,azure:f2,bedrock:v2,deepseek:x2,github:k2,openrouter:b2,wandb:y2,marimo:A2,opencode:M2};const V=o=>{let e=(0,z2.c)(15),t,n,r;e[0]===o?(t=e[1],n=e[2],r=e[3]):({provider:n,className:r,...t}=o,e[0]=o,e[1]=t,e[2]=n,e[3]=r);let l=r===void 0?"":r;if(n==="openai-compatible"||!(n in Q0)){let a;e[4]===l?a=e[5]:(a=I0("h-4 w-4",l),e[4]=l,e[5]=a);let c;return e[6]===a?c=e[7]:(c=(0,i.jsx)(G0,{className:a}),e[6]=a,e[7]=c),c}let m=Q0[n],d;e[8]===l?d=e[9]:(d=I0("h-4 w-4 grayscale dark:invert",l),e[8]=l,e[9]=d);let p;return e[10]!==m||e[11]!==t||e[12]!==n||e[13]!==d?(p=(0,i.jsx)("img",{src:m,alt:n,className:d,...t}),e[10]=m,e[11]=t,e[12]=n,e[13]=d,e[14]=p):p=e[14],p};function U(o){switch(o){case"chat":return"bg-[var(--purple-3)] text-[var(--purple-11)]";case"autocomplete":return"bg-[var(--green-3)] text-[var(--green-11)]";case"edit":return"bg-[var(--blue-3)] text-[var(--blue-11)]";case"thinking":return"bg-[var(--purple-4)] text-[var(--purple-12)]"}return"bg-[var(--mauve-3)] text-[var(--mauve-11)]"}function Z0(o){switch(o){case"chat":return"Current model used for chat conversations";case"autocomplete":return"Current model used for autocomplete autocomplete";case"edit":return"Current model used for code edits";case"rerank":return"Current model used for reranking completions";case"embed":return"Current model used for embedding"}}var D=$();const G2=o=>{var a0,r0,n0,l0,d0,c0,m0,p0,h0,g0,u0,v0,f0,x0,k0,w0,M0,b0;let e=(0,D.c)(58),{value:t,placeholder:n,onSelect:r,triggerClassName:l,customDropdownContent:m,iconSize:d,showAddCustomModelDocs:p,forRole:a,displayIconOnly:c}=o,h=d===void 0?"medium":d,u=p===void 0?!1:p,g=c===void 0?!1:c,[v,f]=j2.useState(!1),s=j0(e2),k=j0($0),{saveModelChange:x}=O0(),j=k.copilot==="custom"?(a0=s==null?void 0:s.models)==null?void 0:a0.autocomplete_model:void 0,G,I,M,B,P,b,S,L,C;if(e[0]!==((r0=s==null?void 0:s.models)==null?void 0:r0.autocomplete_model)||e[1]!==((n0=s==null?void 0:s.models)==null?void 0:n0.chat_model)||e[2]!==((l0=s==null?void 0:s.models)==null?void 0:l0.custom_models)||e[3]!==((d0=s==null?void 0:s.models)==null?void 0:d0.displayed_models)||e[4]!==((c0=s==null?void 0:s.models)==null?void 0:c0.edit_model)||e[5]!==j||e[6]!==g||e[7]!==a||e[8]!==h||e[9]!==v||e[10]!==r||e[11]!==n||e[12]!==x||e[13]!==l||e[14]!==t){let y0=R.create({customModels:[...((m0=s==null?void 0:s.models)==null?void 0:m0.custom_models)??[],(p0=s==null?void 0:s.models)==null?void 0:p0.chat_model,j,(h0=s==null?void 0:s.models)==null?void 0:h0.edit_model].filter(Boolean),displayedModels:(g0=s==null?void 0:s.models)==null?void 0:g0.displayed_models}),Y0=y0.getListModelsByProvider(),A=a==="autocomplete"?(u0=s==null?void 0:s.models)==null?void 0:u0.autocomplete_model:a==="chat"?(v0=s==null?void 0:s.models)==null?void 0:v0.chat_model:a==="edit"?(f0=s==null?void 0:s.models)==null?void 0:f0.edit_model:void 0,H=t?y.parse(t):A?y.parse(A):void 0,T=h==="medium"?"h-4 w-4":"h-3 w-3",R0=(w,z)=>{let K=y0.getModel(w.id);return(0,i.jsxs)("div",{className:"flex items-center gap-2 w-full px-2 py-1",children:[(0,i.jsx)(V,{provider:w.providerId,className:T}),(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)("span",{children:(K==null?void 0:K.name)||w.shortModelId}),(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:w.id})]}),(0,i.jsx)("div",{className:"ml-auto flex gap-1",children:(0,i.jsx)(t0,{content:Z0(z),children:(0,i.jsx)("span",{className:`text-xs px-1.5 py-0.5 rounded font-medium ${U(z)}`,children:z},z)})})]})},Z;e[24]!==a||e[25]!==r||e[26]!==x?(Z=w=>{r?r(w):x(w,a),f(!1)},e[24]=a,e[25]=r,e[26]=x,e[27]=Z):Z=e[27];let q=Z;I=c2,L=v,C=f;let J=`flex items-center justify-between px-2 py-0.5 border rounded-md + hover:bg-accent hover:text-accent-foreground ${l}`,_=H?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(V,{provider:H.providerId,className:T}),g?null:(0,i.jsx)("span",{className:"truncate",children:i0(H.providerId)?H.shortModelId:H.id})]}):(0,i.jsx)("span",{className:"text-muted-foreground truncate",children:n}),F;e[28]===_?F=e[29]:(F=(0,i.jsx)("div",{className:"flex items-center gap-2 truncate",children:_}),e[28]=_,e[29]=F);let X=`${T} ml-1`,E;e[30]===X?E=e[31]:(E=(0,i.jsx)(s2,{className:X}),e[30]=X,e[31]=E),e[32]!==J||e[33]!==F||e[34]!==E?(M=(0,i.jsxs)(n2,{className:J,children:[F,E]}),e[32]=J,e[33]=F,e[34]=E,e[35]=M):M=e[35],G=l2,B="w-[300px]",P=A&&a&&R0(y.parse(A),a),e[36]!==A||e[37]!==a?(b=A&&a&&(0,i.jsx)(e0,{}),e[36]=A,e[37]=a,e[38]=b):b=e[38];let Y;e[39]!==q||e[40]!==T?(Y=w=>{let[z,K]=w;return(0,i.jsx)(I2,{provider:z,onSelect:q,models:K,iconSizeClass:T},z)},e[39]=q,e[40]=T,e[41]=Y):Y=e[41],S=Y0.map(Y),e[0]=(x0=s==null?void 0:s.models)==null?void 0:x0.autocomplete_model,e[1]=(k0=s==null?void 0:s.models)==null?void 0:k0.chat_model,e[2]=(w0=s==null?void 0:s.models)==null?void 0:w0.custom_models,e[3]=(M0=s==null?void 0:s.models)==null?void 0:M0.displayed_models,e[4]=(b0=s==null?void 0:s.models)==null?void 0:b0.edit_model,e[5]=j,e[6]=g,e[7]=a,e[8]=h,e[9]=v,e[10]=r,e[11]=n,e[12]=x,e[13]=l,e[14]=t,e[15]=G,e[16]=I,e[17]=M,e[18]=B,e[19]=P,e[20]=b,e[21]=S,e[22]=L,e[23]=C}else G=e[15],I=e[16],M=e[17],B=e[18],P=e[19],b=e[20],S=e[21],L=e[22],C=e[23];let N;e[42]===u?N=e[43]:(N=u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e0,{}),(0,i.jsx)(r2,{className:"flex items-center gap-2",children:(0,i.jsxs)("a",{className:"flex items-center gap-1",href:"https://links.marimo.app/custom-models",target:"_blank",rel:"noreferrer",children:[(0,i.jsx)(a2,{className:"h-3 w-3"}),(0,i.jsx)("span",{children:"How to add a custom model"})]})})]}),e[42]=u,e[43]=N);let O;e[44]!==G||e[45]!==m||e[46]!==N||e[47]!==B||e[48]!==P||e[49]!==b||e[50]!==S?(O=(0,i.jsxs)(G,{className:B,children:[P,b,S,m,N]}),e[44]=G,e[45]=m,e[46]=N,e[47]=B,e[48]=P,e[49]=b,e[50]=S,e[51]=O):O=e[51];let Q;return e[52]!==I||e[53]!==M||e[54]!==O||e[55]!==L||e[56]!==C?(Q=(0,i.jsxs)(I,{open:L,onOpenChange:C,children:[M,O]}),e[52]=I,e[53]=M,e[54]=O,e[55]=L,e[56]=C,e[57]=Q):Q=e[57],Q};var I2=o=>{let e=(0,D.c)(26),{provider:t,onSelect:n,models:r,iconSizeClass:l}=o,m=i0(t)?t:"openai-compatible",d;e[0]===t?d=e[1]:(d=R.getProviderInfo(t),e[0]=t,e[1]=d);let p=d;if(r.length===0)return null;let a;e[2]!==m||e[3]!==l?(a=(0,i.jsx)(V,{provider:m,className:l}),e[2]=m,e[3]=l,e[4]=a):a=e[4];let c;e[5]===t?c=e[6]:(c=o0(t),e[5]=t,e[6]=c);let h;e[7]!==a||e[8]!==c?(h=(0,i.jsx)(S0,{children:(0,i.jsxs)("p",{className:"flex items-center gap-2",children:[a,c]})}),e[7]=a,e[8]=c,e[9]=h):h=e[9];let u=p?-90:0,g;e[10]===p?g=e[11]:(g=p&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{className:"text-sm text-muted-foreground p-2 max-w-[300px]",children:[p.description,(0,i.jsx)("br",{})]}),(0,i.jsxs)("p",{className:"text-sm text-muted-foreground p-2 pt-0",children:["For more information, see the"," ",(0,i.jsx)("a",{href:p.url,target:"_blank",className:"underline",rel:"noreferrer","aria-label":"Provider details",children:"provider details"}),"."]}),(0,i.jsx)(e0,{})]}),e[10]=p,e[11]=g);let v;if(e[12]!==r||e[13]!==n||e[14]!==t){let k;e[16]!==n||e[17]!==t?(k=x=>{let j=`${t}/${x.model}`;return(0,i.jsxs)(L0,{children:[(0,i.jsx)(S0,{showChevron:!1,className:"py-2",children:(0,i.jsx)("div",{className:"flex items-center gap-2 w-full cursor-pointer",onClick:()=>{n(j)},children:(0,i.jsx)(B2,{model:x,provider:t})})}),(0,i.jsx)(P0,{className:"p-4 w-80",children:(0,i.jsx)(P2,{model:x,provider:t})})]},j)},e[16]=n,e[17]=t,e[18]=k):k=e[18],v=r.map(k),e[12]=r,e[13]=n,e[14]=t,e[15]=v}else v=e[15];let f;e[19]!==u||e[20]!==g||e[21]!==v?(f=(0,i.jsx)(d2,{children:(0,i.jsxs)(P0,{className:"max-h-[40vh] overflow-y-auto",alignOffset:u,sideOffset:5,children:[g,v]})}),e[19]=u,e[20]=g,e[21]=v,e[22]=f):f=e[22];let s;return e[23]!==h||e[24]!==f?(s=(0,i.jsxs)(L0,{children:[h,f]}),e[23]=h,e[24]=f,e[25]=s):s=e[25],s},B2=o=>{let e=(0,D.c)(17),{model:t,provider:n}=o,r=i0(n)?n:"openai-compatible",l;e[0]===r?l=e[1]:(l=(0,i.jsx)(V,{provider:r,className:"h-4 w-4"}),e[0]=r,e[1]=l);let m;e[2]===t.name?m=e[3]:(m=(0,i.jsx)("span",{children:t.name}),e[2]=t.name,e[3]=m);let d;e[4]===t.thinking?d=e[5]:(d=t.thinking&&(0,i.jsx)(t0,{content:"Reasoning model",children:(0,i.jsx)(N0,{className:`h-5 w-5 rounded-md p-1 ${U("thinking")}`})}),e[4]=t.thinking,e[5]=d);let p;e[6]===d?p=e[7]:(p=(0,i.jsx)("div",{className:"ml-auto",children:d}),e[6]=d,e[7]=p);let a;e[8]!==m||e[9]!==p?(a=(0,i.jsxs)("div",{className:"flex flex-row w-full items-center",children:[m,p]}),e[8]=m,e[9]=p,e[10]=a):a=e[10];let c;e[11]===t.custom?c=e[12]:(c=t.custom&&(0,i.jsx)(t0,{content:"Custom model",children:(0,i.jsx)(G0,{className:"h-5 w-5"})}),e[11]=t.custom,e[12]=c);let h;return e[13]!==l||e[14]!==a||e[15]!==c?(h=(0,i.jsxs)(i.Fragment,{children:[l,a,c]}),e[13]=l,e[14]=a,e[15]=c,e[16]=h):h=e[16],h};const P2=o=>{let e=(0,D.c)(28),{model:t,provider:n}=o,r;e[0]===t.name?r=e[1]:(r=(0,i.jsx)("h4",{className:"font-semibold text-base text-foreground",children:t.name}),e[0]=t.name,e[1]=r);let l;e[2]===t.model?l=e[3]:(l=(0,i.jsx)("p",{className:"text-xs text-muted-foreground font-mono",children:t.model}),e[2]=t.model,e[3]=l);let m;e[4]!==r||e[5]!==l?(m=(0,i.jsxs)("div",{children:[r,l]}),e[4]=r,e[5]=l,e[6]=m):m=e[6];let d;e[7]===t.description?d=e[8]:(d=(0,i.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description}),e[7]=t.description,e[8]=d);let p;e[9]===t.roles?p=e[10]:(p=t.roles.length>0&&(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Capabilities:"}),(0,i.jsx)("div",{className:"flex flex-wrap gap-1",children:t.roles.map(S2)})]}),e[9]=t.roles,e[10]=p);let a;e[11]===t.thinking?a=e[12]:(a=t.thinking&&(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("div",{className:"w-2 h-2 bg-purple-500 rounded-full animate-pulse"}),(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:"Supports thinking mode"})]}),e[11]=t.thinking,e[12]=a);let c;e[13]===n?c=e[14]:(c=(0,i.jsx)(V,{provider:n,className:"h-4 w-4"}),e[13]=n,e[14]=c);let h;e[15]===n?h=e[16]:(h=o0(n),e[15]=n,e[16]=h);let u;e[17]===h?u=e[18]:(u=(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:h}),e[17]=h,e[18]=u);let g;e[19]!==c||e[20]!==u?(g=(0,i.jsxs)("div",{className:"flex items-center gap-2 pt-2 border-t border-border",children:[c,u]}),e[19]=c,e[20]=u,e[21]=g):g=e[21];let v;return e[22]!==g||e[23]!==m||e[24]!==d||e[25]!==p||e[26]!==a?(v=(0,i.jsxs)("div",{className:"space-y-3",children:[m,d,p,a,g]}),e[22]=g,e[23]=m,e[24]=d,e[25]=p,e[26]=a,e[27]=v):v=e[27],v};function o0(o){let e=R.getProviderInfo(o);return e?e.name:J0(o)}function S2(o){return(0,i.jsx)("span",{className:`px-2 py-1 text-xs rounded-md font-medium ${U(o)}`,title:Z0(o),children:o},o)}export{R as a,T0 as c,V as i,O0 as l,o0 as n,F0 as o,U as r,y as s,G2 as t,N0 as u}; diff --git a/docs/assets/alert-BEdExd6A.js b/docs/assets/alert-BEdExd6A.js new file mode 100644 index 0000000..6f1e474 --- /dev/null +++ b/docs/assets/alert-BEdExd6A.js @@ -0,0 +1 @@ +import{s as m}from"./chunk-LvLJmgfZ.js";import{t as p}from"./react-BGmjiNul.js";import{t as x}from"./compiler-runtime-DeeZ7FnK.js";import{t as b}from"./jsx-runtime-DN_bIXfG.js";import{n as y,t as o}from"./cn-C1rgT0yh.js";var n=x(),v=m(p(),1),f=m(b(),1),w=y("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-4 [&>svg]:top-4 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-11",{variants:{variant:{default:"bg-background text-foreground",destructive:"text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",info:"bg-(--sky-2) border-(--sky-7) text-(--sky-11)",warning:"bg-(--yellow-2) border-(--yellow-7) text-(--yellow-11) [&>svg]:text-(--yellow-11)"}},defaultVariants:{variant:"default"}}),u=v.forwardRef((l,i)=>{let e=(0,n.c)(11),r,t,a;e[0]===l?(r=e[1],t=e[2],a=e[3]):({className:r,variant:a,...t}=l,e[0]=l,e[1]=r,e[2]=t,e[3]=a);let s;e[4]!==r||e[5]!==a?(s=o(w({variant:a}),r),e[4]=r,e[5]=a,e[6]=s):s=e[6];let d;return e[7]!==t||e[8]!==i||e[9]!==s?(d=(0,f.jsx)("div",{ref:i,role:"alert",className:s,...t}),e[7]=t,e[8]=i,e[9]=s,e[10]=d):d=e[10],d});u.displayName="Alert";var c=v.forwardRef((l,i)=>{let e=(0,n.c)(11),r,t,a;e[0]===l?(r=e[1],t=e[2],a=e[3]):({className:t,children:r,...a}=l,e[0]=l,e[1]=r,e[2]=t,e[3]=a);let s;e[4]===t?s=e[5]:(s=o("mb-1 font-medium leading-none tracking-tight",t),e[4]=t,e[5]=s);let d;return e[6]!==r||e[7]!==a||e[8]!==i||e[9]!==s?(d=(0,f.jsx)("h5",{ref:i,className:s,...a,children:r}),e[6]=r,e[7]=a,e[8]=i,e[9]=s,e[10]=d):d=e[10],d});c.displayName="AlertTitle";var g=v.forwardRef((l,i)=>{let e=(0,n.c)(9),r,t;e[0]===l?(r=e[1],t=e[2]):({className:r,...t}=l,e[0]=l,e[1]=r,e[2]=t);let a;e[3]===r?a=e[4]:(a=o("text-sm [&_p]:leading-relaxed",r),e[3]=r,e[4]=a);let s;return e[5]!==t||e[6]!==i||e[7]!==a?(s=(0,f.jsx)("div",{ref:i,className:a,...t}),e[5]=t,e[6]=i,e[7]=a,e[8]=s):s=e[8],s});g.displayName="AlertDescription";export{g as n,c as r,u as t}; diff --git a/docs/assets/alert-dialog-jcHA5geR.js b/docs/assets/alert-dialog-jcHA5geR.js new file mode 100644 index 0000000..e597130 --- /dev/null +++ b/docs/assets/alert-dialog-jcHA5geR.js @@ -0,0 +1,11 @@ +import{s as E}from"./chunk-LvLJmgfZ.js";import{t as Te}from"./react-BGmjiNul.js";import{t as P}from"./compiler-runtime-DeeZ7FnK.js";import{r as N}from"./useEventListener-COkmyg1v.js";import{t as $e}from"./jsx-runtime-DN_bIXfG.js";import{n as R}from"./button-B8cGZzP5.js";import{t as p}from"./cn-C1rgT0yh.js";import{E as M,S as ke,T as ze,_ as h,a as Be,b as He,d as We,f as b,i as qe,m as Ke,r as Le,s as Ue,t as Ve,u as Ye,w as v,x as w,y as Ze}from"./Combination-D1TsGrBC.js";var i=E(Te(),1),l=E($e(),1),j="Dialog",[S,T]=M(j),[Ge,f]=S(j),$=t=>{let{__scopeDialog:r,children:e,open:a,defaultOpen:o,onOpenChange:n,modal:s=!0}=t,c=i.useRef(null),d=i.useRef(null),[u,x]=ke({prop:a,defaultProp:o??!1,onChange:n,caller:j});return(0,l.jsx)(Ge,{scope:r,triggerRef:c,contentRef:d,contentId:b(),titleId:b(),descriptionId:b(),open:u,onOpenChange:x,onOpenToggle:i.useCallback(()=>x(Se=>!Se),[x]),modal:s,children:e})};$.displayName=j;var k="DialogTrigger",z=i.forwardRef((t,r)=>{let{__scopeDialog:e,...a}=t,o=f(k,e),n=N(r,o.triggerRef);return(0,l.jsx)(h.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":O(o.open),...a,ref:n,onClick:v(t.onClick,o.onOpenToggle)})});z.displayName=k;var A="DialogPortal",[Je,B]=S(A,{forceMount:void 0}),H=t=>{let{__scopeDialog:r,forceMount:e,children:a,container:o}=t,n=f(A,r);return(0,l.jsx)(Je,{scope:r,forceMount:e,children:i.Children.map(a,s=>(0,l.jsx)(w,{present:e||n.open,children:(0,l.jsx)(We,{asChild:!0,container:o,children:s})}))})};H.displayName=A;var _="DialogOverlay",W=i.forwardRef((t,r)=>{let e=B(_,t.__scopeDialog),{forceMount:a=e.forceMount,...o}=t,n=f(_,t.__scopeDialog);return n.modal?(0,l.jsx)(w,{present:a||n.open,children:(0,l.jsx)(Xe,{...o,ref:r})}):null});W.displayName=_;var Qe=Ze("DialogOverlay.RemoveScroll"),Xe=i.forwardRef((t,r)=>{let{__scopeDialog:e,...a}=t,o=f(_,e);return(0,l.jsx)(Ve,{as:Qe,allowPinchZoom:!0,shards:[o.contentRef],children:(0,l.jsx)(h.div,{"data-state":O(o.open),...a,ref:r,style:{pointerEvents:"auto",...a.style}})})}),y="DialogContent",q=i.forwardRef((t,r)=>{let e=B(y,t.__scopeDialog),{forceMount:a=e.forceMount,...o}=t,n=f(y,t.__scopeDialog);return(0,l.jsx)(w,{present:a||n.open,children:n.modal?(0,l.jsx)(er,{...o,ref:r}):(0,l.jsx)(rr,{...o,ref:r})})});q.displayName=y;var er=i.forwardRef((t,r)=>{let e=f(y,t.__scopeDialog),a=i.useRef(null),o=N(r,e.contentRef,a);return i.useEffect(()=>{let n=a.current;if(n)return Le(n)},[]),(0,l.jsx)(K,{...t,ref:o,trapFocus:e.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(t.onCloseAutoFocus,n=>{var s;n.preventDefault(),(s=e.triggerRef.current)==null||s.focus()}),onPointerDownOutside:v(t.onPointerDownOutside,n=>{let s=n.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&n.preventDefault()}),onFocusOutside:v(t.onFocusOutside,n=>n.preventDefault())})}),rr=i.forwardRef((t,r)=>{let e=f(y,t.__scopeDialog),a=i.useRef(!1),o=i.useRef(!1);return(0,l.jsx)(K,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var s,c;(s=t.onCloseAutoFocus)==null||s.call(t,n),n.defaultPrevented||(a.current||((c=e.triggerRef.current)==null||c.focus()),n.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:n=>{var c,d;(c=t.onInteractOutside)==null||c.call(t,n),n.defaultPrevented||(a.current=!0,n.detail.originalEvent.type==="pointerdown"&&(o.current=!0));let s=n.target;(d=e.triggerRef.current)!=null&&d.contains(s)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&o.current&&n.preventDefault()}})}),K=i.forwardRef((t,r)=>{let{__scopeDialog:e,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:n,...s}=t,c=f(y,e),d=i.useRef(null),u=N(r,d);return Be(),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(qe,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:n,children:(0,l.jsx)(Ke,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":O(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ar,{titleId:c.titleId}),(0,l.jsx)(nr,{contentRef:d,descriptionId:c.descriptionId})]})]})}),C="DialogTitle",L=i.forwardRef((t,r)=>{let{__scopeDialog:e,...a}=t,o=f(C,e);return(0,l.jsx)(h.h2,{id:o.titleId,...a,ref:r})});L.displayName=C;var U="DialogDescription",V=i.forwardRef((t,r)=>{let{__scopeDialog:e,...a}=t,o=f(U,e);return(0,l.jsx)(h.p,{id:o.descriptionId,...a,ref:r})});V.displayName=U;var Y="DialogClose",Z=i.forwardRef((t,r)=>{let{__scopeDialog:e,...a}=t,o=f(Y,e);return(0,l.jsx)(h.button,{type:"button",...a,ref:r,onClick:v(t.onClick,()=>o.onOpenChange(!1))})});Z.displayName=Y;function O(t){return t?"open":"closed"}var G="DialogTitleWarning",[tr,J]=ze(G,{contentName:y,titleName:C,docsSlug:"dialog"}),ar=({titleId:t})=>{let r=J(G),e=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return i.useEffect(()=>{t&&(document.getElementById(t)||console.error(e))},[e,t]),null},or="DialogDescriptionWarning",nr=({contentRef:t,descriptionId:r})=>{let e=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${J(or).contentName}}.`;return i.useEffect(()=>{var o;let a=(o=t.current)==null?void 0:o.getAttribute("aria-describedby");r&&a&&(document.getElementById(r)||console.warn(e))},[e,t,r]),null},Q=$,X=z,ee=H,re=W,te=q,ae=L,oe=V,I=Z,ne="AlertDialog",[sr,Cr]=M(ne,[T]),m=T(),se=t=>{let{__scopeAlertDialog:r,...e}=t,a=m(r);return(0,l.jsx)(Q,{...a,...e,modal:!0})};se.displayName=ne;var lr="AlertDialogTrigger",le=i.forwardRef((t,r)=>{let{__scopeAlertDialog:e,...a}=t,o=m(e);return(0,l.jsx)(X,{...o,...a,ref:r})});le.displayName=lr;var ir="AlertDialogPortal",ie=t=>{let{__scopeAlertDialog:r,...e}=t,a=m(r);return(0,l.jsx)(ee,{...a,...e})};ie.displayName=ir;var cr="AlertDialogOverlay",ce=i.forwardRef((t,r)=>{let{__scopeAlertDialog:e,...a}=t,o=m(e);return(0,l.jsx)(re,{...o,...a,ref:r})});ce.displayName=cr;var D="AlertDialogContent",[dr,ur]=sr(D),fr=He("AlertDialogContent"),de=i.forwardRef((t,r)=>{let{__scopeAlertDialog:e,children:a,...o}=t,n=m(e),s=i.useRef(null),c=N(r,s),d=i.useRef(null);return(0,l.jsx)(tr,{contentName:D,titleName:ue,docsSlug:"alert-dialog",children:(0,l.jsx)(dr,{scope:e,cancelRef:d,children:(0,l.jsxs)(te,{role:"alertdialog",...n,...o,ref:c,onOpenAutoFocus:v(o.onOpenAutoFocus,u=>{var x;u.preventDefault(),(x=d.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[(0,l.jsx)(fr,{children:a}),(0,l.jsx)(mr,{contentRef:s})]})})})});de.displayName=D;var ue="AlertDialogTitle",fe=i.forwardRef((t,r)=>{let{__scopeAlertDialog:e,...a}=t,o=m(e);return(0,l.jsx)(ae,{...o,...a,ref:r})});fe.displayName=ue;var pe="AlertDialogDescription",me=i.forwardRef((t,r)=>{let{__scopeAlertDialog:e,...a}=t,o=m(e);return(0,l.jsx)(oe,{...o,...a,ref:r})});me.displayName=pe;var pr="AlertDialogAction",ge=i.forwardRef((t,r)=>{let{__scopeAlertDialog:e,...a}=t,o=m(e);return(0,l.jsx)(I,{...o,...a,ref:r})});ge.displayName=pr;var ye="AlertDialogCancel",xe=i.forwardRef((t,r)=>{let{__scopeAlertDialog:e,...a}=t,{cancelRef:o}=ur(ye,e),n=m(e),s=N(r,o);return(0,l.jsx)(I,{...n,...a,ref:s})});xe.displayName=ye;var mr=({contentRef:t})=>{let r=`\`${D}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${D}\` by passing a \`${pe}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${D}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{var e;document.getElementById((e=t.current)==null?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},gr=se,yr=le,ve=ie,De=ce,Ne=de,F=ge,he=xe,je=fe,_e=me,xr=P();function Re(){let t=(0,xr.c)(3),[r,e]=(0,i.useState)(null),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{e(document.activeElement)},t[0]=a):a=t[0];let o=a,n;return t[1]===r?n=t[2]:(n={onOpenAutoFocus:o,onCloseAutoFocus:s=>{document.activeElement===document.body&&(r instanceof HTMLElement&&r.focus(),s.preventDefault())}},t[1]=r,t[2]=n),n}var g=P(),vr=gr,Dr=yr,be=Ue(({children:t,...r})=>(0,l.jsx)(ve,{...r,children:(0,l.jsx)(Ye,{children:(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-start sm:top-[15%]",children:t})})}));be.displayName=ve.displayName;var we=i.forwardRef((t,r)=>{let e=(0,g.c)(9),a,o;if(e[0]!==t){let{className:c,children:d,...u}=t;a=c,o=u,e[0]=t,e[1]=a,e[2]=o}else a=e[1],o=e[2];let n;e[3]===a?n=e[4]:(n=p("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in",a),e[3]=a,e[4]=n);let s;return e[5]!==o||e[6]!==r||e[7]!==n?(s=(0,l.jsx)(De,{className:n,...o,ref:r}),e[5]=o,e[6]=r,e[7]=n,e[8]=s):s=e[8],s});we.displayName=De.displayName;var Ae=i.forwardRef((t,r)=>{let e=(0,g.c)(11),a,o;e[0]===t?(a=e[1],o=e[2]):({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o);let n=Re(),s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(we,{}),e[3]=s):s=e[3];let c;e[4]===a?c=e[5]:(c=p("fixed z-50 grid w-full max-w-2xl scale-100 gap-4 border bg-background p-6 opacity-100 shadow-sm animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full",a),e[4]=a,e[5]=c);let d;return e[6]!==o||e[7]!==r||e[8]!==n||e[9]!==c?(d=(0,l.jsxs)(be,{children:[s,(0,l.jsx)(Ne,{ref:r,className:c,...n,...o})]}),e[6]=o,e[7]=r,e[8]=n,e[9]=c,e[10]=d):d=e[10],d});Ae.displayName=Ne.displayName;var Ce=t=>{let r=(0,g.c)(8),e,a;r[0]===t?(e=r[1],a=r[2]):({className:e,...a}=t,r[0]=t,r[1]=e,r[2]=a);let o;r[3]===e?o=r[4]:(o=p("flex flex-col space-y-2 text-center sm:text-left",e),r[3]=e,r[4]=o);let n;return r[5]!==a||r[6]!==o?(n=(0,l.jsx)("div",{className:o,...a}),r[5]=a,r[6]=o,r[7]=n):n=r[7],n};Ce.displayName="AlertDialogHeader";var Oe=t=>{let r=(0,g.c)(8),e,a;r[0]===t?(e=r[1],a=r[2]):({className:e,...a}=t,r[0]=t,r[1]=e,r[2]=a);let o;r[3]===e?o=r[4]:(o=p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),r[3]=e,r[4]=o);let n;return r[5]!==a||r[6]!==o?(n=(0,l.jsx)("div",{className:o,...a}),r[5]=a,r[6]=o,r[7]=n):n=r[7],n};Oe.displayName="AlertDialogFooter";var Ie=i.forwardRef((t,r)=>{let e=(0,g.c)(9),a,o;e[0]===t?(a=e[1],o=e[2]):({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o);let n;e[3]===a?n=e[4]:(n=p("text-lg font-semibold",a),e[3]=a,e[4]=n);let s;return e[5]!==o||e[6]!==r||e[7]!==n?(s=(0,l.jsx)(je,{ref:r,className:n,...o}),e[5]=o,e[6]=r,e[7]=n,e[8]=s):s=e[8],s});Ie.displayName=je.displayName;var Fe=i.forwardRef((t,r)=>{let e=(0,g.c)(9),a,o;e[0]===t?(a=e[1],o=e[2]):({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o);let n;e[3]===a?n=e[4]:(n=p("text-muted-foreground",a),e[3]=a,e[4]=n);let s;return e[5]!==o||e[6]!==r||e[7]!==n?(s=(0,l.jsx)(_e,{ref:r,className:n,...o}),e[5]=o,e[6]=r,e[7]=n,e[8]=s):s=e[8],s});Fe.displayName=_e.displayName;var Ee=i.forwardRef((t,r)=>{let e=(0,g.c)(9),a,o;e[0]===t?(a=e[1],o=e[2]):({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o);let n;e[3]===a?n=e[4]:(n=p(R(),a),e[3]=a,e[4]=n);let s;return e[5]!==o||e[6]!==r||e[7]!==n?(s=(0,l.jsx)(F,{ref:r,className:n,...o}),e[5]=o,e[6]=r,e[7]=n,e[8]=s):s=e[8],s});Ee.displayName=F.displayName;var Pe=i.forwardRef((t,r)=>{let e=(0,g.c)(9),a,o;e[0]===t?(a=e[1],o=e[2]):({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o);let n;e[3]===a?n=e[4]:(n=p(R({variant:"destructive"}),a),e[3]=a,e[4]=n);let s;return e[5]!==o||e[6]!==r||e[7]!==n?(s=(0,l.jsx)(F,{ref:r,className:n,...o}),e[5]=o,e[6]=r,e[7]=n,e[8]=s):s=e[8],s});Pe.displayName="AlertDialogDestructiveAction";var Me=i.forwardRef((t,r)=>{let e=(0,g.c)(9),a,o;e[0]===t?(a=e[1],o=e[2]):({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o);let n;e[3]===a?n=e[4]:(n=p(R({variant:"secondary"}),"mt-2 sm:mt-0",a),e[3]=a,e[4]=n);let s;return e[5]!==o||e[6]!==r||e[7]!==n?(s=(0,l.jsx)(he,{ref:r,className:n,...o}),e[5]=o,e[6]=r,e[7]=n,e[8]=s):s=e[8],s});Me.displayName=he.displayName;export{Q as _,Fe as a,Ce as c,Re as d,I as f,ee as g,re as h,Ae as i,Ie as l,oe as m,Ee as n,Pe as o,te as p,Me as r,Oe as s,vr as t,Dr as u,ae as v,X as y}; diff --git a/docs/assets/andromeeda-RpH0ijbH.js b/docs/assets/andromeeda-RpH0ijbH.js new file mode 100644 index 0000000..184d4cb --- /dev/null +++ b/docs/assets/andromeeda-RpH0ijbH.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#23262E","activityBar.dropBackground":"#3a404e","activityBar.foreground":"#BAAFC0","activityBarBadge.background":"#00b0ff","activityBarBadge.foreground":"#20232B","badge.background":"#00b0ff","badge.foreground":"#20232B","button.background":"#00e8c5cc","button.hoverBackground":"#07d4b6cc","debugExceptionWidget.background":"#FF9F2E60","debugExceptionWidget.border":"#FF9F2E60","debugToolBar.background":"#20232A","diffEditor.insertedTextBackground":"#29BF1220","diffEditor.removedTextBackground":"#F21B3F20","dropdown.background":"#2b303b","dropdown.border":"#363c49","editor.background":"#23262E","editor.findMatchBackground":"#f39d1256","editor.findMatchBorder":"#f39d12b6","editor.findMatchHighlightBackground":"#59b8b377","editor.foreground":"#D5CED9","editor.hoverHighlightBackground":"#373941","editor.lineHighlightBackground":"#2e323d","editor.lineHighlightBorder":"#2e323d","editor.rangeHighlightBackground":"#372F3C","editor.selectionBackground":"#3D4352","editor.selectionHighlightBackground":"#4F435580","editor.wordHighlightBackground":"#4F4355","editor.wordHighlightStrongBackground":"#db45a280","editorBracketMatch.background":"#746f77","editorBracketMatch.border":"#746f77","editorCodeLens.foreground":"#746f77","editorCursor.foreground":"#FFF","editorError.foreground":"#FC644D","editorGroup.background":"#23262E","editorGroup.dropBackground":"#495061d7","editorGroupHeader.tabsBackground":"#23262E","editorGutter.addedBackground":"#9BC53DBB","editorGutter.deletedBackground":"#FC644DBB","editorGutter.modifiedBackground":"#5BC0EBBB","editorHoverWidget.background":"#373941","editorHoverWidget.border":"#00e8c5cc","editorIndentGuide.activeBackground":"#585C66","editorIndentGuide.background":"#333844","editorLineNumber.foreground":"#746f77","editorLink.activeForeground":"#3B79C7","editorOverviewRuler.border":"#1B1D23","editorRuler.foreground":"#4F4355","editorSuggestWidget.background":"#20232A","editorSuggestWidget.border":"#372F3C","editorSuggestWidget.selectedBackground":"#373941","editorWarning.foreground":"#FF9F2E","editorWhitespace.foreground":"#333844","editorWidget.background":"#20232A","errorForeground":"#FC644D","extensionButton.prominentBackground":"#07d4b6cc","extensionButton.prominentHoverBackground":"#07d4b5b0","focusBorder":"#746f77","foreground":"#D5CED9","gitDecoration.ignoredResourceForeground":"#555555","input.background":"#2b303b","input.placeholderForeground":"#746f77","inputOption.activeBorder":"#C668BA","inputValidation.errorBackground":"#D65343","inputValidation.errorBorder":"#D65343","inputValidation.infoBackground":"#3A6395","inputValidation.infoBorder":"#3A6395","inputValidation.warningBackground":"#DE9237","inputValidation.warningBorder":"#DE9237","list.activeSelectionBackground":"#23262E","list.activeSelectionForeground":"#00e8c6","list.dropBackground":"#3a404e","list.focusBackground":"#282b35","list.focusForeground":"#eee","list.hoverBackground":"#23262E","list.hoverForeground":"#eee","list.inactiveSelectionBackground":"#23262E","list.inactiveSelectionForeground":"#00e8c6","merge.currentContentBackground":"#F9267240","merge.currentHeaderBackground":"#F92672","merge.incomingContentBackground":"#3B79C740","merge.incomingHeaderBackground":"#3B79C7BB","minimapSlider.activeBackground":"#60698060","minimapSlider.background":"#58607460","minimapSlider.hoverBackground":"#60698060","notification.background":"#2d313b","notification.buttonBackground":"#00e8c5cc","notification.buttonHoverBackground":"#07d4b5b0","notification.errorBackground":"#FC644D","notification.infoBackground":"#00b0ff","notification.warningBackground":"#FF9F2E","panel.background":"#23262E","panel.border":"#1B1D23","panelTitle.activeBorder":"#23262E","panelTitle.inactiveForeground":"#746f77","peekView.border":"#23262E","peekViewEditor.background":"#1A1C22","peekViewEditor.matchHighlightBackground":"#FF9F2E60","peekViewResult.background":"#1A1C22","peekViewResult.matchHighlightBackground":"#FF9F2E60","peekViewResult.selectionBackground":"#23262E","peekViewTitle.background":"#1A1C22","peekViewTitleDescription.foreground":"#746f77","pickerGroup.border":"#4F4355","pickerGroup.foreground":"#746f77","progressBar.background":"#C668BA","scrollbar.shadow":"#23262E","scrollbarSlider.activeBackground":"#3A3F4CCC","scrollbarSlider.background":"#3A3F4C77","scrollbarSlider.hoverBackground":"#3A3F4CAA","selection.background":"#746f77","sideBar.background":"#23262E","sideBar.foreground":"#999999","sideBarSectionHeader.background":"#23262E","sideBarTitle.foreground":"#00e8c6","statusBar.background":"#23262E","statusBar.debuggingBackground":"#FC644D","statusBar.noFolderBackground":"#23262E","statusBarItem.activeBackground":"#00e8c5cc","statusBarItem.hoverBackground":"#07d4b5b0","statusBarItem.prominentBackground":"#07d4b5b0","statusBarItem.prominentHoverBackground":"#00e8c5cc","tab.activeBackground":"#23262e","tab.activeBorder":"#00e8c6","tab.activeForeground":"#00e8c6","tab.inactiveBackground":"#23262E","tab.inactiveForeground":"#746f77","terminal.ansiBlue":"#7cb7ff","terminal.ansiBrightBlue":"#7cb7ff","terminal.ansiBrightCyan":"#00e8c6","terminal.ansiBrightGreen":"#96E072","terminal.ansiBrightMagenta":"#ff00aa","terminal.ansiBrightRed":"#ee5d43","terminal.ansiBrightYellow":"#FFE66D","terminal.ansiCyan":"#00e8c6","terminal.ansiGreen":"#96E072","terminal.ansiMagenta":"#ff00aa","terminal.ansiRed":"#ee5d43","terminal.ansiYellow":"#FFE66D","terminalCursor.background":"#23262E","terminalCursor.foreground":"#FFE66D","titleBar.activeBackground":"#23262E","walkThrough.embeddedEditorBackground":"#23262E","widget.shadow":"#14151A"},"displayName":"Andromeeda","name":"andromeeda","semanticTokenColors":{"property.declaration:javascript":"#D5CED9","variable.defaultLibrary:javascript":"#f39c12"},"tokenColors":[{"settings":{"background":"#23262E","foreground":"#D5CED9"}},{"scope":["comment","markup.quote.markdown","meta.diff","meta.diff.header"],"settings":{"foreground":"#A0A1A7cc"}},{"scope":["meta.template.expression.js","constant.name.attribute.tag.jade","punctuation.definition.metadata.markdown","punctuation.definition.string.end.markdown","punctuation.definition.string.begin.markdown"],"settings":{"foreground":"#D5CED9"}},{"scope":["variable","support.variable","entity.name.tag.yaml","constant.character.entity.html","source.css entity.name.tag.reference","beginning.punctuation.definition.list.markdown","source.css entity.other.attribute-name.parent-selector","meta.structure.dictionary.json support.type.property-name"],"settings":{"foreground":"#00e8c6"}},{"scope":["markup.bold","constant.numeric","meta.group.regexp","constant.other.php","support.constant.ext.php","constant.other.class.php","support.constant.core.php","fenced_code.block.language","constant.other.caps.python","entity.other.attribute-name","support.type.exception.python","source.css keyword.other.unit","variable.other.object.property.js.jsx","variable.other.object.js"],"settings":{"foreground":"#f39c12"}},{"scope":["markup.list","text.xml string","entity.name.type","support.function","entity.other.attribute-name","meta.at-rule.extend","entity.name.function","entity.other.inherited-class","entity.other.keyframe-offset.css","text.html.markdown string.quoted","meta.function-call.generic.python","meta.at-rule.extend support.constant","entity.other.attribute-name.class.jade","source.css entity.other.attribute-name","text.xml punctuation.definition.string"],"settings":{"foreground":"#FFE66D"}},{"scope":["markup.heading","variable.language.this.js","variable.language.special.self.python"],"settings":{"foreground":"#ff00aa"}},{"scope":["punctuation.definition.interpolation","punctuation.section.embedded.end.php","punctuation.section.embedded.end.ruby","punctuation.section.embedded.begin.php","punctuation.section.embedded.begin.ruby","punctuation.definition.template-expression","entity.name.tag"],"settings":{"foreground":"#f92672"}},{"scope":["storage","keyword","meta.link","meta.image","markup.italic","source.js support.type"],"settings":{"foreground":"#c74ded"}},{"scope":["string.regexp","markup.changed"],"settings":{"foreground":"#7cb7ff"}},{"scope":["constant","support.class","keyword.operator","support.constant","text.html.markdown string","source.css support.function","source.php support.function","support.function.magic.python","entity.other.attribute-name.id","markup.deleted"],"settings":{"foreground":"#ee5d43"}},{"scope":["string","text.html.php string","markup.inline.raw","markup.inserted","punctuation.definition.string","punctuation.definition.markdown","text.html meta.embedded source.js string","text.html.php punctuation.definition.string","text.html meta.embedded source.js punctuation.definition.string","text.html punctuation.definition.string","text.html string"],"settings":{"foreground":"#96E072"}},{"scope":["entity.other.inherited-class"],"settings":{"fontStyle":"underline"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/angular-html-BqeXm_3M.js b/docs/assets/angular-html-BqeXm_3M.js new file mode 100644 index 0000000..d91adc8 --- /dev/null +++ b/docs/assets/angular-html-BqeXm_3M.js @@ -0,0 +1 @@ +import{t as r}from"./html-Bz1QLM72.js";var e=[Object.freeze(JSON.parse('{"injectionSelector":"L:text.html -comment","name":"angular-expression","patterns":[{"include":"#ngExpression"}],"repository":{"arrayLiteral":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"booleanLiteral":{"patterns":[{"match":"(?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"match":"!|&&|\\\\?\\\\?|\\\\|\\\\|","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"captures":{"1":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])\\\\s*(/)(?![*/])"},{"include":"#typeofOperator"}]},"functionCall":{"begin":"(?=(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","end":"(?<=\\\\))(?!(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","patterns":[{"match":"\\\\?","name":"punctuation.accessor.ts"},{"match":"\\\\.","name":"punctuation.accessor.ts"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},{"include":"#parenExpression"}]},"functionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#decorator"},{"include":"#parameterName"},{"include":"#variableInitializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.object.property.ts"},"3":{"name":"variable.other.object.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"entity.name.function.ts"}},"match":"(?:([!?]?\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"variable.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"constant.other.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"constant.character.other"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"literal":{"name":"literal.ts","patterns":[{"include":"#numericLiteral"},{"include":"#booleanLiteral"},{"include":"#nullLiteral"},{"include":"#undefinedLiteral"},{"include":"#numericConstantLiteral"},{"include":"#arrayLiteral"},{"include":"#thisLiteral"}]},"ngExpression":{"name":"meta.expression.ng","patterns":[{"include":"#string"},{"include":"#literal"},{"include":"#ternaryExpression"},{"include":"#expressionOperator"},{"include":"#functionCall"},{"include":"#identifiers"},{"include":"#parenExpression"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"},{"include":"#punctuationAccessor"}]},"nullLiteral":{"match":"(?)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#typeArguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#typeArguments"}]}]},"templateLiteralSubstitutionElement":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#ngExpression"}]},"ternaryExpression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#ngExpression"}]},"thisLiteral":{"match":"(?])|(?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},"typeArguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#typeArgumentsBody"}]},"typeArgumentsBody":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?)\\\\s*(?=\\\\()","end":"(?<=\\\\))","include":"#typeofOperator","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]}]},"typeName":{"patterns":[{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*([!?]?\\\\.)"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"typeObject":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#typeObjectMembers"}]},"typeObjectMembers":{"patterns":[{"include":"#typeAnnotation"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"}]},"typeOperators":{"patterns":[{"include":"#typeofOperator"},{"match":"[\\\\&|]","name":"keyword.operator.type.ts"},{"match":"(?\\\\s]*)(?)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative.ng","embeddedLangs":["html","angular-expression","angular-let-declaration","angular-template","angular-template-blocks"]}')),p=[...r,...e,...n,...t,...a,m];export{e as a,n as i,a as n,t as r,p as t}; diff --git a/docs/assets/angular-html-OKVWEBnZ.js b/docs/assets/angular-html-OKVWEBnZ.js new file mode 100644 index 0000000..04868ba --- /dev/null +++ b/docs/assets/angular-html-OKVWEBnZ.js @@ -0,0 +1 @@ +import{t}from"./angular-html-BqeXm_3M.js";export{t as default}; diff --git a/docs/assets/angular-ts-BIRRYsa7.js b/docs/assets/angular-ts-BIRRYsa7.js new file mode 100644 index 0000000..42b5df7 --- /dev/null +++ b/docs/assets/angular-ts-BIRRYsa7.js @@ -0,0 +1 @@ +import{a as n,i as t,n as a,r as e,t as s}from"./angular-html-BqeXm_3M.js";import{t as r}from"./scss-B9q1Ycvh.js";var i=Object.freeze(JSON.parse('{"injectTo":["source.ts.ng"],"injectionSelector":"L:source.ts#meta.decorator.ts -comment","name":"angular-inline-style","patterns":[{"include":"#inlineStyles"}],"repository":{"inlineStyles":{"begin":"(styles)\\\\s*(:)","beginCaptures":{"1":{"name":"meta.object-literal.key.ts"},"2":{"name":"meta.object-literal.key.ts punctuation.separator.key-value.ts"}},"end":"(?=[,}])","patterns":[{"include":"#tsParenExpression"},{"include":"#tsBracketExpression"},{"include":"#style"}]},"style":{"begin":"\\\\s*([\\"\'`|])","beginCaptures":{"1":{"name":"string"}},"contentName":"source.css.scss","end":"\\\\1","endCaptures":{"0":{"name":"string"}},"patterns":[{"include":"source.css.scss"}]},"tsBracketExpression":{"begin":"\\\\G\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.array.literal.ts meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.array.literal.ts meta.brace.square.ts"}},"patterns":[{"include":"#style"}]},"tsParenExpression":{"begin":"\\\\G\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"$self"},{"include":"#tsBracketExpression"},{"include":"#style"}]}},"scopeName":"inline-styles.ng","embeddedLangs":["scss"]}')),o=[...r,i],c=Object.freeze(JSON.parse('{"injectTo":["source.ts.ng"],"injectionSelector":"L:meta.decorator.ts -comment -text.html","name":"angular-inline-template","patterns":[{"include":"#inlineTemplate"}],"repository":{"inlineTemplate":{"begin":"(template)\\\\s*(:)","beginCaptures":{"1":{"name":"meta.object-literal.key.ts"},"2":{"name":"meta.object-literal.key.ts punctuation.separator.key-value.ts"}},"end":"(?=[,}])","patterns":[{"include":"#tsParenExpression"},{"include":"#ngTemplate"}]},"ngTemplate":{"begin":"\\\\G\\\\s*([\\"\'`|])","beginCaptures":{"1":{"name":"string"}},"contentName":"text.html.derivative.ng","end":"\\\\1","endCaptures":{"0":{"name":"string"}},"patterns":[{"include":"text.html.derivative.ng"},{"include":"template.ng"}]},"tsParenExpression":{"begin":"\\\\G\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#tsParenExpression"},{"include":"#ngTemplate"}]}},"scopeName":"inline-template.ng","embeddedLangs":["angular-html","angular-template"]}')),l=[...s,...e,c],m=Object.freeze(JSON.parse('{"displayName":"Angular TypeScript","name":"angular-ts","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.objectliteral.ts","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"variable.parameter.ts"}},"match":"(?:(?)","name":"meta.arrow.ts"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.ts","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.ts","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?)","name":"cast.expr.ts"},{"begin":"(??^|]|[^$_[:alnum:]](?:\\\\+\\\\+|--)|[^+]\\\\+|[^-]-)\\\\s*(<)(?!)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]},{"begin":"(?<=^)\\\\s*(<)(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*>)","beginCaptures":{"1":{"name":"meta.brace.angle.ts"}},"end":"(>)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]}]},"class-declaration":{"begin":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ts"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.ts","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.ts"},"2":{"name":"entity.name.tag.directive.ts"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.ts"}},"name":"meta.tag.ts","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"()|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.ts"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.ts"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|\'(?:\\\\*(?!/)|\\\\\\\\(?!\')|[^*\\\\\\\\])*?\'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"\']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"keyword.operator.assignment.compound.ts"},"3":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.ts variable.object.property.ts"},{"match":"\\\\?","name":"keyword.operator.optional.ts"},{"match":"!","name":"keyword.operator.definiteassignment.ts"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.ts punctuation.accessor.optional.ts"},{"match":"!","name":"meta.function-call.ts keyword.operator.definiteassignment.ts"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.constant.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.ts"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"keyword.operator.new.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"storage.type.property.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"\'`])","end":"(?=:)|((?<=[\\"\'`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.ts"},{"captures":{"0":{"name":"meta.object-literal.key.ts"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ts"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=[,}])","name":"meta.object.member.ts","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ts"},{"captures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"storage.modifier.ts"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?])","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.ts meta.return.type.arrow.ts keyword.operator.type.annotation.ts"}},"contentName":"meta.arrow.ts meta.return.type.arrow.ts","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.ts"},"2":{"name":"support.type.object.module.ts"},"3":{"name":"punctuation.accessor.ts"},"4":{"name":"punctuation.accessor.optional.ts"},"5":{"name":"support.type.object.module.ts"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.ts"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.ts"},"2":{"name":"entity.name.type.ts"},"3":{"name":"keyword.operator.expression.extends.ts"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.ts"},"2":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts"}},"contentName":"meta.type.parameters.ts","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.ts"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(??{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts entity.name.function.ts"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts entity.name.function.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|^|[]),;}]|((?{o=p[o||""]||o;let i=e(o);i||d.warn(`Language ${o} not found in CodeMirror.`);let l=(0,j.useMemo)(()=>e(o)?[v(o),...r].filter(Boolean):r,[o,r]);return(0,t.jsxs)("div",{className:"relative w-full group hover-actions-parent",children:[!i&&(0,t.jsx)(h,{className:"mb-1 rounded-sm",error:`Language ${o} not supported. + +Supported languages are: ${Object.keys(m).join(", ")}`}),n&&i&&(0,t.jsx)(c,{tooltip:!1,buttonClassName:"absolute top-2 right-2 z-10 hover-action",className:"h-4 w-4 text-muted-foreground",value:s.value||"",toastTitle:"Copied to clipboard"}),(0,t.jsx)(g,{...s,extensions:l})]})};export{p as LANGUAGE_MAP,x as default}; diff --git a/docs/assets/apache-9MTzi02Y.js b/docs/assets/apache-9MTzi02Y.js new file mode 100644 index 0000000..cc10950 --- /dev/null +++ b/docs/assets/apache-9MTzi02Y.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Apache Conf","fileTypes":["conf","CONF","envvars","htaccess","HTACCESS","htgroups","HTGROUPS","htpasswd","HTPASSWD",".htaccess",".HTACCESS",".htgroups",".HTGROUPS",".htpasswd",".HTPASSWD"],"name":"apache","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.apacheconf"}},"match":"^(\\\\s)*(#).*$\\\\n?","name":"comment.line.hash.ini"},{"captures":{"1":{"name":"punctuation.definition.tag.apacheconf"},"2":{"name":"entity.tag.apacheconf"},"4":{"name":"string.value.apacheconf"},"5":{"name":"punctuation.definition.tag.apacheconf"}},"match":"(<)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(\\\\s(.+?))?(>)"},{"captures":{"1":{"name":"punctuation.definition.tag.apacheconf"},"2":{"name":"entity.tag.apacheconf"},"3":{"name":"punctuation.definition.tag.apacheconf"}},"match":"()"},{"captures":{"3":{"name":"string.regexp.apacheconf"},"4":{"name":"string.replacement.apacheconf"}},"match":"(?<=(Rewrite(Rule|Cond)))\\\\s+(.+?)\\\\s+(.+?)($|\\\\s)"},{"captures":{"2":{"name":"entity.status.apacheconf"},"3":{"name":"string.regexp.apacheconf"},"5":{"name":"string.path.apacheconf"}},"match":"(?<=RedirectMatch)(\\\\s+(\\\\d\\\\d\\\\d|permanent|temp|seeother|gone))?\\\\s+(.+?)\\\\s+((.+?)($|\\\\s))?"},{"captures":{"2":{"name":"entity.status.apacheconf"},"3":{"name":"string.path.apacheconf"},"5":{"name":"string.path.apacheconf"}},"match":"(?<=Redirect)(\\\\s+(\\\\d\\\\d\\\\d|permanent|temp|seeother|gone))?\\\\s+(.+?)\\\\s+((.+?)($|\\\\s))?"},{"captures":{"1":{"name":"string.regexp.apacheconf"},"3":{"name":"string.path.apacheconf"}},"match":"(?<=(?:Script|)AliasMatch)\\\\s+(.+?)\\\\s+((.+?)\\\\s)?"},{"captures":{"1":{"name":"string.path.apacheconf"},"3":{"name":"string.path.apacheconf"}},"match":"(?<=RedirectPermanent|RedirectTemp|ScriptAlias|Alias)\\\\s+(.+?)\\\\s+((.+?)($|\\\\s))?"},{"captures":{"1":{"name":"keyword.core.apacheconf"}},"match":"\\\\b(AcceptPathInfo|AccessFileName|AddDefaultCharset|AddOutputFilterByType|AllowEncodedSlashes|AllowOverride|AuthName|AuthType|CGIMapExtension|ContentDigest|DefaultType|Define|DocumentRoot|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|FileETag|ForceType|HostnameLookups|IdentityCheck|Include(Optional)?|KeepAlive|KeepAliveTimeout|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine|LimitXMLRequestBody|LogLevel|MaxKeepAliveRequests|Mutex|NameVirtualHost|Options|Require|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScriptInterpreterSource|ServerAdmin|ServerAlias|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetHandler|SetInputFilter|SetOutputFilter|Time([Oo])ut|TraceEnable|UseCanonicalName|Use|ErrorLogFormat|GlobalLog|PHPIniDir|SSLHonorCipherOrder|SSLCompression|SSLUseStapling|SSLStapling\\\\w+|SSLCARevocationCheck|SSLSRPVerifierFile|SSLSessionTickets|RequestReadTimeout|ProxyHTML\\\\w+|MaxRanges)\\\\b"},{"captures":{"1":{"name":"keyword.mpm.apacheconf"}},"match":"\\\\b(AcceptMutex|AssignUserID|BS2000Account|ChildPerUserID|CoreDumpDirectory|EnableExceptionHook|Group|Listen|ListenBacklog|LockFile|MaxClients|MaxConnectionsPerChild|MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxRequestWorkers|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MinSpareServers|MinSpareThreads|NumServers|PidFile|ReceiveBufferSize|ScoreBoardFile|SendBufferSize|ServerLimit|StartServers|StartThreads|ThreadLimit|ThreadsPerChild|ThreadStackSize|User|Win32DisableAcceptEx)\\\\b"},{"captures":{"1":{"name":"keyword.access.apacheconf"}},"match":"\\\\b(Allow|Deny|Order)\\\\b"},{"captures":{"1":{"name":"keyword.actions.apacheconf"}},"match":"\\\\b(Action|Script)\\\\b"},{"captures":{"1":{"name":"keyword.alias.apacheconf"}},"match":"\\\\b(Alias|AliasMatch|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ScriptAlias|ScriptAliasMatch)\\\\b"},{"captures":{"1":{"name":"keyword.auth.apacheconf"}},"match":"\\\\b(Auth(?:Authoritative|GroupFile|UserFile|BasicProvider|BasicFake|BasicAuthoritative|BasicUseDigestAlgorithm))\\\\b"},{"captures":{"1":{"name":"keyword.auth_anon.apacheconf"}},"match":"\\\\b(Anonymous(?:|_Authoritative|_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail))\\\\b"},{"captures":{"1":{"name":"keyword.auth_dbm.apacheconf"}},"match":"\\\\b(AuthDBM(?:Authoritative|GroupFile|Type|UserFile))\\\\b"},{"captures":{"1":{"name":"keyword.auth_digest.apacheconf"}},"match":"\\\\b(AuthDigest(?:Algorithm|Domain|File|GroupFile|NcCheck|NonceFormat|NonceLifetime|Qop|ShmemSize|Provider))\\\\b"},{"captures":{"1":{"name":"keyword.auth_ldap.apacheconf"}},"match":"\\\\b(AuthLDAP(?:Authoritative|BindDN|BindPassword|CharsetConfig|CompareDNOnServer|DereferenceAliases|Enabled|FrontPageHack|GroupAttribute|GroupAttributeIsDN|RemoteUserIsDN|Url))\\\\b"},{"captures":{"1":{"name":"keyword.autoindex.apacheconf"}},"match":"\\\\b(AddAlt|AddAltByEncoding|AddAltByType|AddDescription|AddIcon|AddIconByEncoding|AddIconByType|DefaultIcon|HeaderName|IndexIgnore|IndexOptions|IndexOrderDefault|IndexStyleSheet|IndexHeadInsert|ReadmeName)\\\\b"},{"captures":{"1":{"name":"keyword.filter.apacheconf"}},"match":"\\\\b(Balancer(?:Member|Growth|Persist|Inherit))\\\\b"},{"captures":{"1":{"name":"keyword.cache.apacheconf"}},"match":"\\\\b(Cache(?:DefaultExpire|Disable|Enable|ForceCompletion|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|LastModifiedFactor|MaxExpire))\\\\b"},{"captures":{"1":{"name":"keyword.cern_meta.apacheconf"}},"match":"\\\\b(Meta(?:Dir|Files|Suffix))\\\\b"},{"captures":{"1":{"name":"keyword.cgi.apacheconf"}},"match":"\\\\b(ScriptLog(?:|Buffer|Length))\\\\b"},{"captures":{"1":{"name":"keyword.cgid.apacheconf"}},"match":"\\\\b(Script(?:Log|LogBuffer|LogLength|Sock))\\\\b"},{"captures":{"1":{"name":"keyword.charset_lite.apacheconf"}},"match":"\\\\b(Charset(?:Default|Options|SourceEnc))\\\\b"},{"captures":{"1":{"name":"keyword.dav.apacheconf"}},"match":"\\\\b(Dav(?:|DepthInfinity|MinTimeout|LockDB))\\\\b"},{"captures":{"1":{"name":"keyword.deflate.apacheconf"}},"match":"\\\\b(Deflate(?:BufferSize|CompressionLevel|FilterNote|MemLevel|WindowSize))\\\\b"},{"captures":{"1":{"name":"keyword.dir.apacheconf"}},"match":"\\\\b(DirectoryIndex|DirectorySlash|FallbackResource)\\\\b"},{"captures":{"1":{"name":"keyword.disk_cache.apacheconf"}},"match":"\\\\b(Cache(?:DirLength|DirLevels|ExpiryCheck|GcClean|GcDaily|GcInterval|GcMemUsage|GcUnused|MaxFileSize|MinFileSize|Root|Size|TimeMargin))\\\\b"},{"captures":{"1":{"name":"keyword.dumpio.apacheconf"}},"match":"\\\\b(DumpIO(?:In|Out)put)\\\\b"},{"captures":{"1":{"name":"keyword.env.apacheconf"}},"match":"\\\\b((?:Pass|Set|Unset)Env)\\\\b"},{"captures":{"1":{"name":"keyword.expires.apacheconf"}},"match":"\\\\b(Expires(?:Active|ByType|Default))\\\\b"},{"captures":{"1":{"name":"keyword.ext_filter.apacheconf"}},"match":"\\\\b(ExtFilter(?:Define|Options))\\\\b"},{"captures":{"1":{"name":"keyword.file_cache.apacheconf"}},"match":"\\\\b((?:Cache|MMap)File)\\\\b"},{"captures":{"1":{"name":"keyword.filter.apacheconf"}},"match":"\\\\b(AddOutputFilterByType|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace)\\\\b"},{"captures":{"1":{"name":"keyword.headers.apacheconf"}},"match":"\\\\b((?:|Request)Header)\\\\b"},{"captures":{"1":{"name":"keyword.imap.apacheconf"}},"match":"\\\\b(Imap(?:Base|Default|Menu))\\\\b"},{"captures":{"1":{"name":"keyword.include.apacheconf"}},"match":"\\\\b(SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|XBitHack)\\\\b"},{"captures":{"1":{"name":"keyword.isapi.apacheconf"}},"match":"\\\\b(ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer))\\\\b"},{"captures":{"1":{"name":"keyword.ldap.apacheconf"}},"match":"\\\\b(LDAP(?:CacheEntries|CacheTTL|ConnectionTimeout|OpCacheEntries|OpCacheTTL|SharedCacheFile|SharedCacheSize|TrustedCA|TrustedCAType))\\\\b"},{"captures":{"1":{"name":"keyword.log.apacheconf"}},"match":"\\\\b(BufferedLogs|CookieLog|CustomLog|LogFormat|TransferLog|ForensicLog)\\\\b"},{"captures":{"1":{"name":"keyword.mem_cache.apacheconf"}},"match":"\\\\b(MCache(?:MaxObjectCount|MaxObjectSize|MaxStreamingBuffer|MinObjectSize|RemovalAlgorithm|Size))\\\\b"},{"captures":{"1":{"name":"keyword.mime.apacheconf"}},"match":"\\\\b(AddCharset|AddEncoding|AddHandler|AddInputFilter|AddLanguage|AddOutputFilter|AddType|DefaultLanguage|ModMimeUsePathInfo|MultiviewsMatch|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|TypesConfig)\\\\b"},{"captures":{"1":{"name":"keyword.misc.apacheconf"}},"match":"\\\\b(ProtocolEcho|Example|AddModuleInfo|MimeMagicFile|CheckSpelling|ExtendedStatus|SuexecUserGroup|UserDir)\\\\b"},{"captures":{"1":{"name":"keyword.negotiation.apacheconf"}},"match":"\\\\b(CacheNegotiatedDocs|ForceLanguagePriority|LanguagePriority)\\\\b"},{"captures":{"1":{"name":"keyword.nw_ssl.apacheconf"}},"match":"\\\\b(NWSSLTrustedCerts|NWSSLUpgradeable|SecureListen)\\\\b"},{"captures":{"1":{"name":"keyword.proxy.apacheconf"}},"match":"\\\\b(AllowCONNECT|NoProxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyFtpDirCharset|ProxyIOBufferSize|ProxyMaxForwards|ProxyPass|ProxyPassMatch|ProxyPassReverse|ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia)\\\\b"},{"captures":{"1":{"name":"keyword.rewrite.apacheconf"}},"match":"\\\\b(Rewrite(?:Base|Cond|Engine|Lock|Log|LogLevel|Map|Options|Rule))\\\\b"},{"captures":{"1":{"name":"keyword.setenvif.apacheconf"}},"match":"\\\\b(BrowserMatch|BrowserMatchNoCase|SetEnvIf|SetEnvIfNoCase)\\\\b"},{"captures":{"1":{"name":"keyword.so.apacheconf"}},"match":"\\\\b(Load(?:File|Module))\\\\b"},{"captures":{"1":{"name":"keyword.ssl.apacheconf"}},"match":"\\\\b(SSL(?:CACertificateFile|CACertificatePath|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Engine|Mutex|Options|PassPhraseDialog|Protocol|ProxyCACertificateFile|ProxyCACertificatePath|ProxyCARevocationFile|ProxyCARevocationPath|ProxyCipherSuite|ProxyEngine|ProxyMachineCertificateFile|ProxyMachineCertificatePath|ProxyProtocol|ProxyVerify|ProxyVerifyDepth|RandomSeed|Require|RequireSSL|SessionCache|SessionCacheTimeout|UserName|VerifyClient|VerifyDepth|InsecureRenegotiation|OpenSSLConfCmd))\\\\b"},{"captures":{"1":{"name":"keyword.substitute.apacheconf"}},"match":"\\\\b(Substitute(?:|InheritBefore|MaxLineLength))\\\\b"},{"captures":{"1":{"name":"keyword.usertrack.apacheconf"}},"match":"\\\\b(Cookie(?:Domain|Expires|Name|Style|Tracking))\\\\b"},{"captures":{"1":{"name":"keyword.vhost_alias.apacheconf"}},"match":"\\\\b(Virtual(?:DocumentRoot|DocumentRootIP|ScriptAlias|ScriptAliasIP))\\\\b"},{"captures":{"1":{"name":"keyword.php.apacheconf"},"3":{"name":"entity.property.apacheconf"},"5":{"name":"string.value.apacheconf"}},"match":"\\\\b(php_(?:value|flag|admin_value|admin_flag))\\\\b(\\\\s+(.+?)(\\\\s+(\\".+?\\"|.+?))?)?\\\\s"},{"captures":{"1":{"name":"punctuation.variable.apacheconf"},"3":{"name":"variable.env.apacheconf"},"4":{"name":"variable.misc.apacheconf"},"5":{"name":"punctuation.variable.apacheconf"}},"match":"(%\\\\{)((HTTP_USER_AGENT|HTTP_REFERER|HTTP_COOKIE|HTTP_FORWARDED|HTTP_HOST|HTTP_PROXY_CONNECTION|HTTP_ACCEPT|REMOTE_ADDR|REMOTE_HOST|REMOTE_PORT|REMOTE_USER|REMOTE_IDENT|REQUEST_METHOD|SCRIPT_FILENAME|PATH_INFO|QUERY_STRING|AUTH_TYPE|DOCUMENT_ROOT|SERVER_ADMIN|SERVER_NAME|SERVER_ADDR|SERVER_PORT|SERVER_PROTOCOL|SERVER_SOFTWARE|TIME_YEAR|TIME_MON|TIME_DAY|TIME_HOUR|TIME_MIN|TIME_SEC|TIME_WDAY|TIME|API_VERSION|THE_REQUEST|REQUEST_URI|REQUEST_FILENAME|IS_SUBREQ|HTTPS)|(.*?))(})"},{"captures":{"1":{"name":"entity.mime-type.apacheconf"}},"match":"\\\\b((text|image|application|video|audio)/.+?)\\\\s"},{"captures":{"1":{"name":"entity.helper.apacheconf"}},"match":"\\\\b(?i)(export|from|unset|set|on|off)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.decimal.apacheconf"}},"match":"\\\\b(\\\\d+)\\\\b"},{"captures":{"1":{"name":"punctuation.definition.flag.apacheconf"},"2":{"name":"string.flag.apacheconf"},"3":{"name":"punctuation.definition.flag.apacheconf"}},"match":"\\\\s(\\\\[)(.*?)(])\\\\s"}],"scopeName":"source.apacheconf"}'))];export{e as default}; diff --git a/docs/assets/apex-Bwo4L2mL.js b/docs/assets/apex-Bwo4L2mL.js new file mode 100644 index 0000000..9332a47 --- /dev/null +++ b/docs/assets/apex-Bwo4L2mL.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Apex","fileTypes":["apex","cls","trigger"],"name":"apex","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#directives"},{"include":"#declarations"},{"include":"#script-top-level"}],"repository":{"annotation-declaration":{"begin":"(@[_[:alpha:]]+)\\\\b","beginCaptures":{"1":{"name":"storage.type.annotation.apex"}},"end":"(?=\\\\s(?!\\\\())|(?=\\\\s*$)|(?<=\\\\s*\\\\))","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"}]},{"include":"#statement"}]},"argument-list":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#named-argument"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"array-creation-expression":{"begin":"\\\\b(new)\\\\b\\\\s*(?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)?\\\\s*(?=\\\\[)","beginCaptures":{"1":{"name":"keyword.control.new.apex"},"2":{"patterns":[{"include":"#support-type"},{"include":"#type"}]}},"end":"(?<=])","patterns":[{"include":"#bracketed-argument-list"}]},"block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#statement"}]},"boolean-literal":{"patterns":[{"match":"(?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(\\\\))(?=\\\\s*@?[(_[:alnum:]])"},"catch-clause":{"begin":"(?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(?:(\\\\g)\\\\b)?"}]},{"include":"#comment"},{"include":"#block"}]},"class-declaration":{"begin":"(?=\\\\bclass\\\\b)","end":"(?<=})","patterns":[{"begin":"\\\\b(class)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.class.apex"},"2":{"name":"entity.name.type.class.apex"}},"end":"(?=\\\\{)","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#type-parameter-list"},{"include":"#extends-class"},{"include":"#implements-class"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#class-or-trigger-members"}]},{"include":"#javadoc-comment"},{"include":"#comment"}]},"class-or-trigger-members":{"patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#storage-modifier"},{"include":"#sharing-modifier"},{"include":"#type-declarations"},{"include":"#field-declaration"},{"include":"#property-declaration"},{"include":"#indexer-declaration"},{"include":"#variable-initializer"},{"include":"#constructor-declaration"},{"include":"#method-declaration"},{"include":"#punctuation-semicolon"}]},"colon-expression":{"match":":","name":"keyword.operator.conditional.colon.apex"},"comment":{"patterns":[{"begin":"/\\\\*(\\\\*)?","beginCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"name":"comment.block.apex"},{"begin":"(^\\\\s+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.apex"}},"end":"(?=$)","patterns":[{"begin":"(?)","patterns":[{"include":"#constructor-initializer"}]},{"include":"#parenthesized-parameter-list"},{"include":"#comment"},{"include":"#expression-body"},{"include":"#block"}]},"constructor-initializer":{"begin":"\\\\b(this)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.other.this.apex"}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"date-literal-with-params":{"captures":{"1":{"name":"keyword.operator.query.date.apex"}},"match":"\\\\b(((?:LAST_N_DAY|NEXT_N_DAY|NEXT_N_WEEK|LAST_N_WEEK|NEXT_N_MONTH|LAST_N_MONTH|NEXT_N_QUARTER|LAST_N_QUARTER|NEXT_N_YEAR|LAST_N_YEAR|NEXT_N_FISCAL_QUARTER|LAST_N_FISCAL_QUARTER|NEXT_N_FISCAL_YEAR|LAST_N_FISCAL_YEAR)S)\\\\s*:\\\\d+)\\\\b"},"date-literals":{"captures":{"1":{"name":"keyword.operator.query.date.apex"}},"match":"\\\\b(YESTERDAY|TODAY|TOMORROW|LAST_WEEK|THIS_WEEK|NEXT_WEEK|LAST_MONTH|THIS_MONTH|NEXT_MONTH|LAST_90_DAYS|NEXT_90_DAYS|THIS_QUARTER|LAST_QUARTER|NEXT_QUARTER|THIS_YEAR|LAST_YEAR|NEXT_YEAR|THIS_FISCAL_QUARTER|LAST_FISCAL_QUARTER|NEXT_FISCAL_QUARTER|THIS_FISCAL_YEAR|LAST_FISCAL_YEAR|NEXT_FISCAL_YEAR)\\\\b\\\\s*"},"declarations":{"patterns":[{"include":"#type-declarations"},{"include":"#punctuation-semicolon"}]},"directives":{"patterns":[{"include":"#punctuation-semicolon"}]},"do-statement":{"begin":"(?","beginCaptures":{"0":{"name":"keyword.operator.arrow.apex"}},"end":"(?=[),;}])","patterns":[{"include":"#expression"}]},"expression-operators":{"patterns":[{"match":"[-%*+/]=","name":"keyword.operator.assignment.compound.apex"},{"match":"(?:[\\\\&^]|<<|>>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.apex"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.apex"},{"match":"[!=]=","name":"keyword.operator.comparison.apex"},{"match":"<=|>=|[<>]","name":"keyword.operator.relational.apex"},{"match":"!|&&|\\\\|\\\\|","name":"keyword.operator.logical.apex"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.apex"},{"match":"=","name":"keyword.operator.assignment.apex"},{"match":"--","name":"keyword.operator.decrement.apex"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.apex"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.apex"}]},"extends-class":{"begin":"(extends)\\\\b\\\\s+([_[:alpha:]][_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.other.extends.apex"},"2":{"name":"entity.name.type.extends.apex"}},"end":"(?=\\\\{|implements)"},"field-declaration":{"begin":"(?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+(\\\\g)\\\\s*(?!=[=>])(?=[,;=]|$)","beginCaptures":{"1":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"5":{"name":"entity.name.variable.field.apex"}},"end":"(?=;)","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.field.apex"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"},{"include":"#class-or-trigger-members"}]},"finally-clause":{"begin":"(?(?(?:ref\\\\s+)?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+)(?\\\\g\\\\s*\\\\.\\\\s*)?(?this)\\\\s*(?=\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"6":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"7":{"name":"keyword.other.this.apex"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#property-accessors"},{"include":"#expression-body"},{"include":"#variable-initializer"}]},"initializer-expression":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"interface-declaration":{"begin":"(?=\\\\binterface\\\\b)","end":"(?<=})","patterns":[{"begin":"(interface)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.other.interface.apex"},"2":{"name":"entity.name.type.interface.apex"}},"end":"(?=\\\\{)","patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#type-parameter-list"},{"include":"#extends-class"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#interface-members"}]},{"include":"#javadoc-comment"},{"include":"#comment"}]},"interface-members":{"patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#property-declaration"},{"include":"#indexer-declaration"},{"include":"#method-declaration"},{"include":"#punctuation-semicolon"}]},"invocation-expression":{"begin":"(?:(\\\\??\\\\.)\\\\s*)?(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?\\\\s*<([^<>]|\\\\g)+>\\\\s*)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"entity.name.function.apex"},"3":{"patterns":[{"include":"#type-arguments"}]}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"javadoc-comment":{"patterns":[{"begin":"^\\\\s*(/\\\\*\\\\*)(?!/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.apex"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"name":"comment.block.javadoc.apex","patterns":[{"match":"@(deprecated|author|return|see|serial|since|version|usage|name|link)\\\\b","name":"keyword.other.documentation.javadoc.apex"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.apex"},"2":{"name":"entity.name.variable.parameter.apex"}},"match":"(@param)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.apex"},"2":{"name":"entity.name.type.class.apex"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"string.quoted.single.apex"}},"match":"(\`([^\`]+?)\`)"}]}]},"literal":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#string-literal"}]},"local-constant-declaration":{"begin":"\\\\b(?const)\\\\b\\\\s*(?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+(\\\\g)\\\\s*(?=[,;=])","beginCaptures":{"1":{"name":"storage.modifier.apex"},"2":{"patterns":[{"include":"#type"}]},"6":{"name":"entity.name.variable.local.apex"}},"end":"(?=;)","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.local.apex"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"}]},"local-declaration":{"patterns":[{"include":"#local-constant-declaration"},{"include":"#local-variable-declaration"}]},"local-variable-declaration":{"begin":"(?:(?:\\\\b(ref)\\\\s+)?\\\\b(var)\\\\b|(?(?:ref\\\\s+)?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*))\\\\s+(\\\\g)\\\\s*(?=[),;=])","beginCaptures":{"1":{"name":"storage.modifier.apex"},"2":{"name":"keyword.other.var.apex"},"3":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"7":{"name":"entity.name.variable.local.apex"}},"end":"(?=[);])","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.local.apex"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"}]},"member-access-expression":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"variable.other.object.property.apex"}},"match":"(\\\\??\\\\.)\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?![(_[:alnum:]]|(\\\\?)?\\\\[|<)"},{"captures":{"1":{"patterns":[{"include":"#punctuation-accessor"},{"include":"#operator-safe-navigation"}]},"2":{"name":"variable.other.object.apex"},"3":{"patterns":[{"include":"#type-arguments"}]}},"match":"(\\\\??\\\\.)?\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)(?\\\\s*<([^<>]|\\\\g)+>\\\\s*)(?=(\\\\s*\\\\?)?\\\\s*\\\\.\\\\s*@?[_[:alpha:]][_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.object.apex"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)(?=(\\\\s*\\\\?)?\\\\s*\\\\.\\\\s*@?[_[:alpha:]][_[:alnum:]]*)"}]},"merge-expression":{"begin":"(merge)\\\\b\\\\s+","beginCaptures":{"1":{"name":"support.function.apex"}},"end":"(?<=;)","patterns":[{"include":"#object-creation-expression"},{"include":"#merge-type-statement"},{"include":"#expression"},{"include":"#punctuation-semicolon"}]},"merge-type-statement":{"captures":{"1":{"name":"variable.other.readwrite.apex"},"2":{"name":"variable.other.readwrite.apex"},"3":{"name":"punctuation.terminator.statement.apex"}},"match":"([_[:alpha:]]*)\\\\b\\\\s+([_[:alpha:]]*)\\\\b\\\\s*(;)"},"method-declaration":{"begin":"(?(?(?:ref\\\\s+)?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+)(?\\\\g\\\\s*\\\\.\\\\s*)?(\\\\g)\\\\s*(<([^<>]+)>)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#support-type"},{"include":"#type"}]},"6":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"7":{"patterns":[{"include":"#support-type"},{"include":"#method-name-custom"}]},"8":{"patterns":[{"include":"#type-parameter-list"}]}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#expression-body"},{"include":"#block"}]},"method-name-custom":{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.function.apex"},"named-argument":{"begin":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.variable.parameter.apex"},"2":{"name":"punctuation.separator.colon.apex"}},"end":"(?=([]),]))","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(?=\\\\{|$)"},"object-creation-expression-with-parameters":{"begin":"(delete|insert|undelete|update|upsert)?\\\\s*(new)\\\\s+(?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"support.function.apex"},"2":{"name":"keyword.control.new.apex"},"3":{"patterns":[{"include":"#support-type"},{"include":"#type"}]}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"operator-assignment":{"match":"(?(?:ref\\\\s+)?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+(\\\\g)"},"parenthesized-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"}]},"parenthesized-parameter-list":{"begin":"(\\\\()","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"(\\\\))","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#comment"},{"include":"#parameter"},{"include":"#punctuation-comma"},{"include":"#variable-initializer"}]},"property-accessors":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.apex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"match":"\\\\b(pr(?:ivate|otected))\\\\b","name":"storage.modifier.apex"},{"match":"\\\\b(get)\\\\b","name":"keyword.other.get.apex"},{"match":"\\\\b(set)\\\\b","name":"keyword.other.set.apex"},{"include":"#comment"},{"include":"#expression-body"},{"include":"#block"},{"include":"#punctuation-semicolon"}]},"property-declaration":{"begin":"(?!.*\\\\b(?:class|interface|enum)\\\\b)\\\\s*(?(?(?:ref\\\\s+)?(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s+)(?\\\\g\\\\s*\\\\.\\\\s*)?(?\\\\g)\\\\s*(?=\\\\{|=>|$)","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"6":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"7":{"name":"entity.name.variable.property.apex"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#property-accessors"},{"include":"#expression-body"},{"include":"#variable-initializer"},{"include":"#class-or-trigger-members"}]},"punctuation-accessor":{"match":"\\\\.","name":"punctuation.accessor.apex"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.apex"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.apex"},"query-operators":{"captures":{"1":{"name":"keyword.operator.query.apex"}},"match":"\\\\b(ABOVE|AND|AT|FOR REFERENCE|FOR UPDATE|FOR VIEW|GROUP BY|HAVING|IN|LIKE|LIMIT|NOT IN|NOT|OFFSET|OR|TYPEOF|UPDATE TRACKING|UPDATE VIEWSTAT|WITH DATA CATEGORY|WITH)\\\\b\\\\s*"},"return-statement":{"begin":"(?","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.apex"}},"patterns":[{"include":"#comment"},{"include":"#support-type"},{"include":"#punctuation-comma"}]},"support-class":{"captures":{"1":{"name":"support.class.apex"}},"match":"\\\\b(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)\\\\b"},"support-expression":{"begin":"(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)(?=[.\\\\s])","beginCaptures":{"1":{"name":"support.class.apex"}},"end":"(?<=\\\\)|$)|(?=})|(?=;)|(?=\\\\)|(?=]))|(?=,)","patterns":[{"include":"#support-type"},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.function.apex"}},"match":"(\\\\.)(\\\\p{alpha}*)(?=\\\\()"},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.type.apex"}},"match":"(\\\\.)(\\\\p{alpha}+)"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},{"include":"#comment"},{"include":"#statement"}]},"support-functions":{"captures":{"1":{"name":"support.function.apex"}},"match":"\\\\b(delete|execute|finish|insert|start|undelete|update|upsert)\\\\b"},"support-name":{"patterns":[{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.function.apex"}},"match":"(\\\\.)\\\\s*(\\\\p{alpha}*)(?=\\\\()"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.apex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.apex"}},"patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"support.type.apex"}},"match":"(\\\\.)\\\\s*([_[:alpha:]]*)"}]},"support-type":{"name":"support.apex","patterns":[{"include":"#comment"},{"include":"#support-class"},{"include":"#support-functions"},{"include":"#support-name"}]},"switch-statement":{"begin":"(switch)\\\\b\\\\s+(on)\\\\b\\\\s+(?:(['().?_[:alnum:]]+)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.switch.apex"},"2":{"name":"keyword.control.switch.on.apex"},"3":{"patterns":[{"include":"#statement"},{"include":"#parenthesized-expression"}]},"4":{"name":"punctuation.curlybrace.open.apex"}},"end":"(})","endCaptures":{"0":{"name":"punctuation.curlybrace.close.apex"}},"patterns":[{"include":"#when-string"},{"include":"#when-else-statement"},{"include":"#when-sobject-statement"},{"include":"#when-statement"},{"include":"#when-multiple-statement"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"this-expression":{"captures":{"1":{"name":"keyword.other.this.apex"}},"match":"\\\\b(this)\\\\b"},"throw-expression":{"captures":{"1":{"name":"keyword.control.flow.throw.apex"}},"match":"(?","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.apex"}},"patterns":[{"include":"#comment"},{"include":"#support-type"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-array-suffix":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.squarebracket.open.apex"}},"end":"]","endCaptures":{"0":{"name":"punctuation.squarebracket.close.apex"}},"patterns":[{"include":"#punctuation-comma"}]},"type-builtin":{"captures":{"1":{"name":"keyword.type.apex"}},"match":"\\\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|ID|Integer|Long|Object|String|Time|void)\\\\b"},"type-declarations":{"patterns":[{"include":"#javadoc-comment"},{"include":"#comment"},{"include":"#annotation-declaration"},{"include":"#storage-modifier"},{"include":"#sharing-modifier"},{"include":"#class-declaration"},{"include":"#enum-declaration"},{"include":"#interface-declaration"},{"include":"#trigger-declaration"},{"include":"#punctuation-semicolon"}]},"type-name":{"patterns":[{"captures":{"1":{"name":"storage.type.apex"},"2":{"name":"punctuation.accessor.apex"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(\\\\.)"},{"captures":{"1":{"name":"punctuation.accessor.apex"},"2":{"name":"storage.type.apex"}},"match":"(\\\\.)\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"storage.type.apex"}]},"type-nullable-suffix":{"captures":{"0":{"name":"punctuation.separator.question-mark.apex"}},"match":"\\\\?"},"type-parameter-list":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.apex"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.apex"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.type-parameter.apex"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\b"},{"include":"#comment"},{"include":"#punctuation-comma"}]},"using-scope":{"captures":{"1":{"name":"keyword.operator.query.using.apex"}},"match":"((USING SCOPE)\\\\b\\\\s*(Delegated|Everything|Mine|My_Territory|My_Team_Territory|Team))\\\\b\\\\s*"},"variable-initializer":{"begin":"(?])","beginCaptures":{"1":{"name":"keyword.operator.assignment.apex"}},"end":"(?=[]),;}])","patterns":[{"include":"#expression"}]},"when-else-statement":{"begin":"(when)\\\\b\\\\s+(else)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"name":"keyword.control.switch.else.apex"}},"end":"(?<=})","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-multiple-statement":{"begin":"(when)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"}},"end":"(?<=})","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-sobject-statement":{"begin":"(when)\\\\b\\\\s+([_[:alnum:]]+)\\\\s+([_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"name":"storage.type.apex"},"3":{"name":"entity.name.variable.local.apex"}},"end":"(?<=})","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-statement":{"begin":"(when)\\\\b\\\\s+([-'_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"patterns":[{"include":"#expression"}]}},"end":"(?<=})","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-string":{"begin":"(when)\\\\b(\\\\s*)((')['*,._\\\\s[:alnum:]]+)","beginCaptures":{"1":{"name":"keyword.control.switch.when.apex"},"2":{"name":"punctuation.whitespace.apex"},"3":{"patterns":[{"include":"#when-string-statement"},{"include":"#punctuation-comma"}]}},"end":"(?<=})","patterns":[{"include":"#block"},{"include":"#expression"}]},"when-string-statement":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.apex"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.apex"}},"name":"string.quoted.single.apex"}]},"where-clause":{"captures":{"1":{"name":"keyword.operator.query.where.apex"}},"match":"\\\\b(WHERE)\\\\b\\\\s*"},"while-statement":{"begin":"(?","endCaptures":{"0":{"name":"punctuation.definition.string.end.apex"}},"name":"string.unquoted.cdata.apex"},"xml-character-entity":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.constant.apex"},"3":{"name":"punctuation.definition.constant.apex"}},"match":"(&)([:_[:alpha:]][-.:_[:alnum:]]*|#\\\\d+|#x\\\\h+)(;)","name":"constant.character.entity.apex"},{"match":"&","name":"invalid.illegal.bad-ampersand.apex"}]},"xml-comment":{"begin":"","endCaptures":{"0":{"name":"punctuation.definition.comment.apex"}},"name":"comment.block.apex"},"xml-doc-comment":{"patterns":[{"include":"#xml-comment"},{"include":"#xml-character-entity"},{"include":"#xml-cdata"},{"include":"#xml-tag"}]},"xml-string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.apex"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.apex"}},"name":"string.quoted.single.apex","patterns":[{"include":"#xml-character-entity"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.stringdoublequote.begin.apex"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.stringdoublequote.end.apex"}},"name":"string.quoted.double.apex","patterns":[{"include":"#xml-character-entity"}]}]},"xml-tag":{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.apex"}},"name":"meta.tag.apex","patterns":[{"include":"#xml-attribute"}]}},"scopeName":"source.apex"}`))];export{e as default}; diff --git a/docs/assets/apl-C1zdcQvI.js b/docs/assets/apl-C1zdcQvI.js new file mode 100644 index 0000000..f58b956 --- /dev/null +++ b/docs/assets/apl-C1zdcQvI.js @@ -0,0 +1 @@ +var l={"+":["conjugate","add"],"\u2212":["negate","subtract"],"\xD7":["signOf","multiply"],"\xF7":["reciprocal","divide"],"\u2308":["ceiling","greaterOf"],"\u230A":["floor","lesserOf"],"\u2223":["absolute","residue"],"\u2373":["indexGenerate","indexOf"],"?":["roll","deal"],"\u22C6":["exponentiate","toThePowerOf"],"\u235F":["naturalLog","logToTheBase"],"\u25CB":["piTimes","circularFuncs"],"!":["factorial","binomial"],"\u2339":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"\u2264":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"\u2265":[null,"greaterThanOrEqual"],"\u2260":[null,"notEqual"],"\u2261":["depth","match"],"\u2262":[null,"notMatch"],"\u2208":["enlist","membership"],"\u2377":[null,"find"],"\u222A":["unique","union"],"\u2229":[null,"intersection"],"\u223C":["not","without"],"\u2228":[null,"or"],"\u2227":[null,"and"],"\u2371":[null,"nor"],"\u2372":[null,"nand"],"\u2374":["shapeOf","reshape"],",":["ravel","catenate"],"\u236A":[null,"firstAxisCatenate"],"\u233D":["reverse","rotate"],"\u2296":["axis1Reverse","axis1Rotate"],"\u2349":["transpose",null],"\u2191":["first","take"],"\u2193":[null,"drop"],"\u2282":["enclose","partitionWithAxis"],"\u2283":["diclose","pick"],"\u2337":[null,"index"],"\u234B":["gradeUp",null],"\u2352":["gradeDown",null],"\u22A4":["encode",null],"\u22A5":["decode",null],"\u2355":["format","formatByExample"],"\u234E":["execute",null],"\u22A3":["stop","left"],"\u22A2":["pass","right"]},a=/[\.\/⌿⍀¨⍣]/,r=/⍬/,i=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,u=/←/,o=/[⍝#].*$/,s=function(n){var t=!1;return function(e){return t=e,e===n?t==="\\":!0}};const p={name:"apl",startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(n,t){var e;return n.eatSpace()?null:(e=n.next(),e==='"'||e==="'"?(n.eatWhile(s(e)),n.next(),t.prev=!0,"string"):/[\[{\(]/.test(e)?(t.prev=!1,null):/[\]}\)]/.test(e)?(t.prev=!0,null):r.test(e)?(t.prev=!1,"atom"):/[¯\d]/.test(e)?(t.func?(t.func=!1,t.prev=!1):t.prev=!0,n.eatWhile(/[\w\.]/),"number"):a.test(e)||u.test(e)?"operator":i.test(e)?(t.func=!0,t.prev=!1,l[e]?"variableName.function.standard":"variableName.function"):o.test(e)?(n.skipToEnd(),"comment"):e==="\u2218"&&n.peek()==="."?(n.next(),"variableName.function"):(n.eatWhile(/[\w\$_]/),t.prev=!0,"keyword"))}};export{p as t}; diff --git a/docs/assets/apl-Chr9VNQb.js b/docs/assets/apl-Chr9VNQb.js new file mode 100644 index 0000000..f58a36f --- /dev/null +++ b/docs/assets/apl-Chr9VNQb.js @@ -0,0 +1 @@ +import{t as a}from"./apl-C1zdcQvI.js";export{a as apl}; diff --git a/docs/assets/apl-D89nlt3r.js b/docs/assets/apl-D89nlt3r.js new file mode 100644 index 0000000..a33689d --- /dev/null +++ b/docs/assets/apl-D89nlt3r.js @@ -0,0 +1 @@ +import{t as a}from"./javascript-DgAW-dkP.js";import{t as e}from"./css-xi2XX7Oh.js";import{t as n}from"./html-Bz1QLM72.js";import{t}from"./xml-CmKMNcqy.js";import{t as r}from"./json-CdDqxu0N.js";var o=Object.freeze(JSON.parse(`{"displayName":"APL","fileTypes":["apl","apla","aplc","aplf","apli","apln","aplo","dyalog","dyapp","mipage"],"firstLineMatch":"[\u2336-\u237A]|^#!.*(?:[/\\\\s]|(?<=!)\\\\b)(?:gnu[-._]?apl|aplx?|dyalog)(?:$|\\\\s)|(?i:-\\\\*-(?:\\\\s*(?=[^:;\\\\s]+\\\\s*-\\\\*-)|(?:.*?[;\\\\s]|(?<=-\\\\*-))mode\\\\s*:\\\\s*)apl(?=[;\\\\s]|(?]?\\\\d+|))?|\\\\sex)(?=:(?:(?=\\\\s*set?\\\\s[^\\\\n:]+:)|(?!\\\\s*set?\\\\s)))(?:(?:\\\\s|\\\\s*:\\\\s*)\\\\w*(?:\\\\s*=(?:[^\\\\n\\\\\\\\\\\\s]|\\\\\\\\.)*)?)*[:\\\\s](?:filetype|ft|syntax)\\\\s*=apl(?=[:\\\\s]|$))","foldingStartMarker":"\\\\{","foldingStopMarker":"}","name":"apl","patterns":[{"match":"\\\\A#!.*$","name":"comment.line.shebang.apl"},{"include":"#heredocs"},{"include":"#main"},{"begin":"^\\\\s*((\\\\))OFF|(])NEXTFILE)\\\\b(.*)$","beginCaptures":{"1":{"name":"entity.name.command.eof.apl"},"2":{"name":"punctuation.definition.command.apl"},"3":{"name":"punctuation.definition.command.apl"},"4":{"patterns":[{"include":"#comment"}]}},"contentName":"text.embedded.apl","end":"(?=N)A"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.round.bracket.begin.apl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.round.bracket.end.apl"}},"name":"meta.round.bracketed.group.apl","patterns":[{"include":"#main"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.square.bracket.begin.apl"}},"end":"]","endCaptures":{"0":{"name":"punctuation.square.bracket.end.apl"}},"name":"meta.square.bracketed.group.apl","patterns":[{"include":"#main"}]},{"begin":"^\\\\s*((\\\\))\\\\S+)","beginCaptures":{"1":{"name":"entity.name.command.apl"},"2":{"name":"punctuation.definition.command.apl"}},"end":"$","name":"meta.system.command.apl","patterns":[{"include":"#command-arguments"},{"include":"#command-switches"},{"include":"#main"}]},{"begin":"^\\\\s*((])\\\\S+)","beginCaptures":{"1":{"name":"entity.name.command.apl"},"2":{"name":"punctuation.definition.command.apl"}},"end":"$","name":"meta.user.command.apl","patterns":[{"include":"#command-arguments"},{"include":"#command-switches"},{"include":"#main"}]}],"repository":{"class":{"patterns":[{"begin":"(?<=\\\\s|^)((:)Class)\\\\s+('[^']*'?|[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)\\\\s*((:)\\\\s*(?:('[^']*'?|[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)\\\\s*)?)?(.*?)$","beginCaptures":{"0":{"name":"meta.class.apl"},"1":{"name":"keyword.control.class.apl"},"2":{"name":"punctuation.definition.class.apl"},"3":{"name":"entity.name.type.class.apl","patterns":[{"include":"#strings"}]},"4":{"name":"entity.other.inherited-class.apl"},"5":{"name":"punctuation.separator.inheritance.apl"},"6":{"patterns":[{"include":"#strings"}]},"7":{"name":"entity.other.class.interfaces.apl","patterns":[{"include":"#csv"}]}},"end":"(?<=\\\\s|^)((:)EndClass)(?=\\\\b)","endCaptures":{"1":{"name":"keyword.control.class.apl"},"2":{"name":"punctuation.definition.class.apl"}},"patterns":[{"begin":"(?<=\\\\s|^)(:)Field(?=\\\\s)","beginCaptures":{"0":{"name":"keyword.control.field.apl"},"1":{"name":"punctuation.definition.field.apl"}},"end":"\\\\s*(\u2190.*)?(?:$|(?=\u235D))","endCaptures":{"0":{"name":"entity.other.initial-value.apl"},"1":{"patterns":[{"include":"#main"}]}},"name":"meta.field.apl","patterns":[{"match":"(?<=\\\\s|^)Public(?=\\\\s|$)","name":"storage.modifier.access.public.apl"},{"match":"(?<=\\\\s|^)Private(?=\\\\s|$)","name":"storage.modifier.access.private.apl"},{"match":"(?<=\\\\s|^)Shared(?=\\\\s|$)","name":"storage.modifier.shared.apl"},{"match":"(?<=\\\\s|^)Instance(?=\\\\s|$)","name":"storage.modifier.instance.apl"},{"match":"(?<=\\\\s|^)ReadOnly(?=\\\\s|$)","name":"storage.modifier.readonly.apl"},{"captures":{"1":{"patterns":[{"include":"#strings"}]}},"match":"('[^']*'?|[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)","name":"entity.name.type.apl"}]},{"include":"$self"}]}]},"command-arguments":{"patterns":[{"begin":"\\\\b(?=\\\\S)","end":"\\\\b(?=\\\\s)","name":"variable.parameter.argument.apl","patterns":[{"include":"#main"}]}]},"command-switches":{"patterns":[{"begin":"(?<=\\\\s)(-)([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)(=)","beginCaptures":{"1":{"name":"punctuation.delimiter.switch.apl"},"2":{"name":"entity.name.switch.apl"},"3":{"name":"punctuation.assignment.switch.apl"}},"end":"\\\\b(?=\\\\s)","name":"variable.parameter.switch.apl","patterns":[{"include":"#main"}]},{"captures":{"1":{"name":"punctuation.delimiter.switch.apl"},"2":{"name":"entity.name.switch.apl"}},"match":"(?<=\\\\s)(-)([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)(?!=)","name":"variable.parameter.switch.apl"}]},"comment":{"patterns":[{"begin":"\u235D","captures":{"0":{"name":"punctuation.definition.comment.apl"}},"end":"$","name":"comment.line.apl"}]},"csv":{"patterns":[{"match":",","name":"punctuation.separator.apl"},{"include":"$self"}]},"definition":{"patterns":[{"begin":"^\\\\s*?(\u2207)(?:\\\\s*(?:([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)|\\\\s*((\\\\{)(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(})|(\\\\()(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(\\\\))|(\\\\(\\\\s*\\\\{)(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(}\\\\s*\\\\))|(\\\\{\\\\s*\\\\()(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(\\\\)\\\\s*}))\\\\s*)\\\\s*(\u2190))?\\\\s*(?:([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)\\\\s*((\\\\[)\\\\s*(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*(.*?)|([^]]*))\\\\s*(]))?\\\\s*?((?<=[]\\\\s])[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*|(\\\\()(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(\\\\)))\\\\s*(?=;|$)|(?:([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s+)|((\\\\{)(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(})|(\\\\(\\\\s*\\\\{)(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(}\\\\s*\\\\))|(\\\\{\\\\s*\\\\()(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(\\\\)\\\\s*})))?\\\\s*(?:([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)\\\\s*((\\\\[)\\\\s*(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*(.*?)|([^]]*))\\\\s*(]))?|((\\\\()(\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)?\\\\s*([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)\\\\s*?((\\\\[)\\\\s*(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*(.*?)|([^]]*))\\\\s*(]))?\\\\s*([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)?(\\\\))))\\\\s*((?<=[]\\\\s])[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*|\\\\s*(\\\\()(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)*(\\\\)))?)\\\\s*([^;]+)?(((?>\\\\s*;(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u2395\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)+)+)|([^\u235D]+))?\\\\s*(\u235D.*)?$","beginCaptures":{"0":{"name":"entity.function.definition.apl"},"1":{"name":"keyword.operator.nabla.apl"},"2":{"name":"entity.function.return-value.apl"},"3":{"name":"entity.function.return-value.shy.apl"},"4":{"name":"punctuation.definition.return-value.begin.apl"},"5":{"name":"punctuation.definition.return-value.end.apl"},"6":{"name":"punctuation.definition.return-value.begin.apl"},"7":{"name":"punctuation.definition.return-value.end.apl"},"8":{"name":"punctuation.definition.return-value.begin.apl"},"9":{"name":"punctuation.definition.return-value.end.apl"},"10":{"name":"punctuation.definition.return-value.begin.apl"},"11":{"name":"punctuation.definition.return-value.end.apl"},"12":{"name":"keyword.operator.assignment.apl"},"13":{"name":"entity.function.name.apl","patterns":[{"include":"#embolden"}]},"14":{"name":"entity.function.axis.apl"},"15":{"name":"punctuation.definition.axis.begin.apl"},"16":{"name":"invalid.illegal.extra-characters.apl"},"17":{"name":"invalid.illegal.apl"},"18":{"name":"punctuation.definition.axis.end.apl"},"19":{"name":"entity.function.arguments.right.apl"},"20":{"name":"punctuation.definition.arguments.begin.apl"},"21":{"name":"punctuation.definition.arguments.end.apl"},"22":{"name":"entity.function.arguments.left.apl"},"23":{"name":"entity.function.arguments.left.optional.apl"},"24":{"name":"punctuation.definition.arguments.begin.apl"},"25":{"name":"punctuation.definition.arguments.end.apl"},"26":{"name":"punctuation.definition.arguments.begin.apl"},"27":{"name":"punctuation.definition.arguments.end.apl"},"28":{"name":"punctuation.definition.arguments.begin.apl"},"29":{"name":"punctuation.definition.arguments.end.apl"},"30":{"name":"entity.function.name.apl","patterns":[{"include":"#embolden"}]},"31":{"name":"entity.function.axis.apl"},"32":{"name":"punctuation.definition.axis.begin.apl"},"33":{"name":"invalid.illegal.extra-characters.apl"},"34":{"name":"invalid.illegal.apl"},"35":{"name":"punctuation.definition.axis.end.apl"},"36":{"name":"entity.function.operands.apl"},"37":{"name":"punctuation.definition.operands.begin.apl"},"38":{"name":"entity.function.operands.left.apl"},"39":{"name":"entity.function.name.apl","patterns":[{"include":"#embolden"}]},"40":{"name":"entity.function.axis.apl"},"41":{"name":"punctuation.definition.axis.begin.apl"},"42":{"name":"invalid.illegal.extra-characters.apl"},"43":{"name":"invalid.illegal.apl"},"44":{"name":"punctuation.definition.axis.end.apl"},"45":{"name":"entity.function.operands.right.apl"},"46":{"name":"punctuation.definition.operands.end.apl"},"47":{"name":"entity.function.arguments.right.apl"},"48":{"name":"punctuation.definition.arguments.begin.apl"},"49":{"name":"punctuation.definition.arguments.end.apl"},"50":{"name":"invalid.illegal.arguments.right.apl"},"51":{"name":"entity.function.local-variables.apl"},"52":{"patterns":[{"match":";","name":"punctuation.separator.apl"}]},"53":{"name":"invalid.illegal.local-variables.apl"},"54":{"name":"comment.line.apl"}},"end":"^\\\\s*?(?:(\u2207)|(\u236B))\\\\s*?(\u235D.*?)?$","endCaptures":{"1":{"name":"keyword.operator.nabla.apl"},"2":{"name":"keyword.operator.lock.apl"},"3":{"name":"comment.line.apl"}},"name":"meta.function.apl","patterns":[{"captures":{"0":{"name":"entity.function.local-variables.apl"},"1":{"patterns":[{"match":";","name":"punctuation.separator.apl"}]}},"match":"^\\\\s*((?>;(?:\\\\s*[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u2395\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*\\\\s*)+)+)","name":"entity.function.definition.apl"},{"include":"$self"}]}]},"embedded-apl":{"patterns":[{"begin":"(?i)(<([%?])(?:apl(?=\\\\s+)|=))","beginCaptures":{"1":{"name":"punctuation.section.embedded.begin.apl"}},"end":"(?<=\\\\s)(\\\\2>)","endCaptures":{"1":{"name":"punctuation.section.embedded.end.apl"}},"name":"meta.embedded.block.apl","patterns":[{"include":"#main"}]}]},"embolden":{"patterns":[{"match":".+","name":"markup.bold.identifier.apl"}]},"heredocs":{"patterns":[{"begin":"^.*?\u2395INP\\\\s+([\\"'])((?i).*?HTML?.*?|END-OF-\u2395INP)\\\\1.*$","beginCaptures":{"0":{"patterns":[{"include":"#main"}]}},"contentName":"text.embedded.html.basic","end":"^.*?\\\\2.*?$","endCaptures":{"0":{"name":"constant.other.apl"}},"name":"meta.heredoc.apl","patterns":[{"include":"text.html.basic"},{"include":"#embedded-apl"}]},{"begin":"^.*?\u2395INP\\\\s+([\\"'])((?i).*?(?:XML|XSLT|SVG|RSS).*?)\\\\1.*$","beginCaptures":{"0":{"patterns":[{"include":"#main"}]}},"contentName":"text.embedded.xml","end":"^.*?\\\\2.*?$","endCaptures":{"0":{"name":"constant.other.apl"}},"name":"meta.heredoc.apl","patterns":[{"include":"text.xml"},{"include":"#embedded-apl"}]},{"begin":"^.*?\u2395INP\\\\s+([\\"'])((?i).*?(?:CSS|stylesheet).*?)\\\\1.*$","beginCaptures":{"0":{"patterns":[{"include":"#main"}]}},"contentName":"source.embedded.css","end":"^.*?\\\\2.*?$","endCaptures":{"0":{"name":"constant.other.apl"}},"name":"meta.heredoc.apl","patterns":[{"include":"source.css"},{"include":"#embedded-apl"}]},{"begin":"^.*?\u2395INP\\\\s+([\\"'])((?i).*?(?:JS(?!ON)|(?:ECMA|J|Java).?Script).*?)\\\\1.*$","beginCaptures":{"0":{"patterns":[{"include":"#main"}]}},"contentName":"source.embedded.js","end":"^.*?\\\\2.*?$","endCaptures":{"0":{"name":"constant.other.apl"}},"name":"meta.heredoc.apl","patterns":[{"include":"source.js"},{"include":"#embedded-apl"}]},{"begin":"^.*?\u2395INP\\\\s+([\\"'])((?i).*?JSON.*?)\\\\1.*$","beginCaptures":{"0":{"patterns":[{"include":"#main"}]}},"contentName":"source.embedded.json","end":"^.*?\\\\2.*?$","endCaptures":{"0":{"name":"constant.other.apl"}},"name":"meta.heredoc.apl","patterns":[{"include":"source.json"},{"include":"#embedded-apl"}]},{"begin":"^.*?\u2395INP\\\\s+([\\"'])(?i)((?:Raw|Plain)?\\\\s*Te?xt)\\\\1.*$","beginCaptures":{"0":{"patterns":[{"include":"#main"}]}},"contentName":"text.embedded.plain","end":"^.*?\\\\2.*?$","endCaptures":{"0":{"name":"constant.other.apl"}},"name":"meta.heredoc.apl","patterns":[{"include":"#embedded-apl"}]},{"begin":"^.*?\u2395INP\\\\s+([\\"'])(.*?)\\\\1.*$","beginCaptures":{"0":{"patterns":[{"include":"#main"}]}},"end":"^.*?\\\\2.*?$","endCaptures":{"0":{"name":"constant.other.apl"}},"name":"meta.heredoc.apl","patterns":[{"include":"$self"}]}]},"label":{"patterns":[{"captures":{"1":{"name":"entity.label.name.apl"},"2":{"name":"punctuation.definition.label.end.apl"}},"match":"^\\\\s*([A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*)(:)","name":"meta.label.apl"}]},"lambda":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.lambda.begin.apl"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.lambda.end.apl"}},"name":"meta.lambda.function.apl","patterns":[{"include":"#main"},{"include":"#lambda-variables"}]},"lambda-variables":{"patterns":[{"match":"\u237A\u237A","name":"constant.language.lambda.operands.left.apl"},{"match":"\u2375\u2375","name":"constant.language.lambda.operands.right.apl"},{"match":"[\u2376\u237A]","name":"constant.language.lambda.arguments.left.apl"},{"match":"[\u2375\u2379]","name":"constant.language.lambda.arguments.right.apl"},{"match":"\u03C7","name":"constant.language.lambda.arguments.axis.apl"},{"match":"\u2207\u2207","name":"constant.language.lambda.operands.self.operator.apl"},{"match":"\u2207","name":"constant.language.lambda.operands.self.function.apl"},{"match":"\u03BB","name":"constant.language.lambda.symbol.apl"}]},"main":{"patterns":[{"include":"#class"},{"include":"#definition"},{"include":"#comment"},{"include":"#label"},{"include":"#sck"},{"include":"#strings"},{"include":"#number"},{"include":"#lambda"},{"include":"#sysvars"},{"include":"#symbols"},{"include":"#name"}]},"name":{"patterns":[{"match":"[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF][0-9A-Z_a-z\xAF\xC0-\xD6\xD8-\xDD\xDF-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]*","name":"variable.other.readwrite.apl"}]},"number":{"patterns":[{"match":"\xAF?[0-9][0-9A-Za-z\xAF]*(?:\\\\.[0-9Ee\xAF][0-9A-Za-z\xAF]*)*|\xAF?\\\\.[0-9Ee][0-9A-Za-z\xAF]*","name":"constant.numeric.apl"}]},"sck":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.sck.begin.apl"}},"match":"(?<=\\\\s|^)(:)[A-Za-z]+","name":"keyword.control.sck.apl"}]},"strings":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.apl"}},"end":"'|$","endCaptures":{"0":{"name":"punctuation.definition.string.end.apl"}},"name":"string.quoted.single.apl","patterns":[{"match":"[^']*[^\\\\n\\\\r'\\\\\\\\]$","name":"invalid.illegal.string.apl"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.apl"}},"end":"\\"|$","endCaptures":{"0":{"name":"punctuation.definition.string.end.apl"}},"name":"string.quoted.double.apl","patterns":[{"match":"[^\\"]*[^\\\\n\\\\r\\"\\\\\\\\]$","name":"invalid.illegal.string.apl"}]}]},"symbols":{"patterns":[{"match":"(?<=\\\\s)\u2190(?=\\\\s|$)","name":"keyword.spaced.operator.assignment.apl"},{"match":"(?<=\\\\s)\u2192(?=\\\\s|$)","name":"keyword.spaced.control.goto.apl"},{"match":"(?<=\\\\s)\u2261(?=\\\\s|$)","name":"keyword.spaced.operator.identical.apl"},{"match":"(?<=\\\\s)\u2262(?=\\\\s|$)","name":"keyword.spaced.operator.not-identical.apl"},{"match":"\\\\+","name":"keyword.operator.plus.apl"},{"match":"[-\u2212]","name":"keyword.operator.minus.apl"},{"match":"\xD7","name":"keyword.operator.times.apl"},{"match":"\xF7","name":"keyword.operator.divide.apl"},{"match":"\u230A","name":"keyword.operator.floor.apl"},{"match":"\u2308","name":"keyword.operator.ceiling.apl"},{"match":"[|\u2223]","name":"keyword.operator.absolute.apl"},{"match":"[*\u22C6]","name":"keyword.operator.exponent.apl"},{"match":"\u235F","name":"keyword.operator.logarithm.apl"},{"match":"\u25CB","name":"keyword.operator.circle.apl"},{"match":"!","name":"keyword.operator.factorial.apl"},{"match":"\u2227","name":"keyword.operator.and.apl"},{"match":"\u2228","name":"keyword.operator.or.apl"},{"match":"\u2372","name":"keyword.operator.nand.apl"},{"match":"\u2371","name":"keyword.operator.nor.apl"},{"match":"<","name":"keyword.operator.less.apl"},{"match":"\u2264","name":"keyword.operator.less-or-equal.apl"},{"match":"=","name":"keyword.operator.equal.apl"},{"match":"\u2265","name":"keyword.operator.greater-or-equal.apl"},{"match":">","name":"keyword.operator.greater.apl"},{"match":"\u2260","name":"keyword.operator.not-equal.apl"},{"match":"[~\u223C]","name":"keyword.operator.tilde.apl"},{"match":"\\\\?","name":"keyword.operator.random.apl"},{"match":"[\u2208\u220A]","name":"keyword.operator.member-of.apl"},{"match":"\u2377","name":"keyword.operator.find.apl"},{"match":",","name":"keyword.operator.comma.apl"},{"match":"\u236A","name":"keyword.operator.comma-bar.apl"},{"match":"\u2337","name":"keyword.operator.squad.apl"},{"match":"\u2373","name":"keyword.operator.iota.apl"},{"match":"\u2374","name":"keyword.operator.rho.apl"},{"match":"\u2191","name":"keyword.operator.take.apl"},{"match":"\u2193","name":"keyword.operator.drop.apl"},{"match":"\u22A3","name":"keyword.operator.left.apl"},{"match":"\u22A2","name":"keyword.operator.right.apl"},{"match":"\u22A4","name":"keyword.operator.encode.apl"},{"match":"\u22A5","name":"keyword.operator.decode.apl"},{"match":"/","name":"keyword.operator.slash.apl"},{"match":"\u233F","name":"keyword.operator.slash-bar.apl"},{"match":"\\\\\\\\","name":"keyword.operator.backslash.apl"},{"match":"\u2340","name":"keyword.operator.backslash-bar.apl"},{"match":"\u233D","name":"keyword.operator.rotate-last.apl"},{"match":"\u2296","name":"keyword.operator.rotate-first.apl"},{"match":"\u2349","name":"keyword.operator.transpose.apl"},{"match":"\u234B","name":"keyword.operator.grade-up.apl"},{"match":"\u2352","name":"keyword.operator.grade-down.apl"},{"match":"\u2339","name":"keyword.operator.quad-divide.apl"},{"match":"\u2261","name":"keyword.operator.identical.apl"},{"match":"\u2262","name":"keyword.operator.not-identical.apl"},{"match":"\u2282","name":"keyword.operator.enclose.apl"},{"match":"\u2283","name":"keyword.operator.pick.apl"},{"match":"\u2229","name":"keyword.operator.intersection.apl"},{"match":"\u222A","name":"keyword.operator.union.apl"},{"match":"\u234E","name":"keyword.operator.hydrant.apl"},{"match":"\u2355","name":"keyword.operator.thorn.apl"},{"match":"\u2286","name":"keyword.operator.underbar-shoe-left.apl"},{"match":"\u2378","name":"keyword.operator.underbar-iota.apl"},{"match":"\xA8","name":"keyword.operator.each.apl"},{"match":"\u2364","name":"keyword.operator.rank.apl"},{"match":"\u2338","name":"keyword.operator.quad-equal.apl"},{"match":"\u2368","name":"keyword.operator.commute.apl"},{"match":"\u2363","name":"keyword.operator.power.apl"},{"match":"\\\\.","name":"keyword.operator.dot.apl"},{"match":"\u2218","name":"keyword.operator.jot.apl"},{"match":"\u2360","name":"keyword.operator.quad-colon.apl"},{"match":"&","name":"keyword.operator.ampersand.apl"},{"match":"\u2336","name":"keyword.operator.i-beam.apl"},{"match":"\u233A","name":"keyword.operator.quad-diamond.apl"},{"match":"@","name":"keyword.operator.at.apl"},{"match":"\u25CA","name":"keyword.operator.lozenge.apl"},{"match":";","name":"keyword.operator.semicolon.apl"},{"match":"\xAF","name":"keyword.operator.high-minus.apl"},{"match":"\u2190","name":"keyword.operator.assignment.apl"},{"match":"\u2192","name":"keyword.control.goto.apl"},{"match":"\u236C","name":"constant.language.zilde.apl"},{"match":"\u22C4","name":"keyword.operator.diamond.apl"},{"match":"\u236B","name":"keyword.operator.lock.apl"},{"match":"\u2395","name":"keyword.operator.quad.apl"},{"match":"##","name":"constant.language.namespace.parent.apl"},{"match":"#","name":"constant.language.namespace.root.apl"},{"match":"\u233B","name":"keyword.operator.quad-jot.apl"},{"match":"\u233C","name":"keyword.operator.quad-circle.apl"},{"match":"\u233E","name":"keyword.operator.circle-jot.apl"},{"match":"\u2341","name":"keyword.operator.quad-slash.apl"},{"match":"\u2342","name":"keyword.operator.quad-backslash.apl"},{"match":"\u2343","name":"keyword.operator.quad-less.apl"},{"match":"\u2344","name":"keyword.operator.greater.apl"},{"match":"\u2345","name":"keyword.operator.vane-left.apl"},{"match":"\u2346","name":"keyword.operator.vane-right.apl"},{"match":"\u2347","name":"keyword.operator.quad-arrow-left.apl"},{"match":"\u2348","name":"keyword.operator.quad-arrow-right.apl"},{"match":"\u234A","name":"keyword.operator.tack-down.apl"},{"match":"\u234C","name":"keyword.operator.quad-caret-down.apl"},{"match":"\u234D","name":"keyword.operator.quad-del-up.apl"},{"match":"\u234F","name":"keyword.operator.vane-up.apl"},{"match":"\u2350","name":"keyword.operator.quad-arrow-up.apl"},{"match":"\u2351","name":"keyword.operator.tack-up.apl"},{"match":"\u2353","name":"keyword.operator.quad-caret-up.apl"},{"match":"\u2354","name":"keyword.operator.quad-del-down.apl"},{"match":"\u2356","name":"keyword.operator.vane-down.apl"},{"match":"\u2357","name":"keyword.operator.quad-arrow-down.apl"},{"match":"\u2358","name":"keyword.operator.underbar-quote.apl"},{"match":"\u235A","name":"keyword.operator.underbar-diamond.apl"},{"match":"\u235B","name":"keyword.operator.underbar-jot.apl"},{"match":"\u235C","name":"keyword.operator.underbar-circle.apl"},{"match":"\u235E","name":"keyword.operator.quad-quote.apl"},{"match":"\u2361","name":"keyword.operator.dotted-tack-up.apl"},{"match":"\u2362","name":"keyword.operator.dotted-del.apl"},{"match":"\u2365","name":"keyword.operator.dotted-circle.apl"},{"match":"\u2366","name":"keyword.operator.stile-shoe-up.apl"},{"match":"\u2367","name":"keyword.operator.stile-shoe-left.apl"},{"match":"\u2369","name":"keyword.operator.dotted-greater.apl"},{"match":"\u236D","name":"keyword.operator.stile-tilde.apl"},{"match":"\u236E","name":"keyword.operator.underbar-semicolon.apl"},{"match":"\u236F","name":"keyword.operator.quad-not-equal.apl"},{"match":"\u2370","name":"keyword.operator.quad-question.apl"}]},"sysvars":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.quad.apl"},"2":{"name":"punctuation.definition.quad-quote.apl"}},"match":"(?:(\u2395)|(\u235E))[A-Za-z]*","name":"support.system.variable.apl"}]}},"scopeName":"source.apl","embeddedLangs":["html","xml","css","javascript","json"]}`)),m=[...n,...t,...e,...a,...r,o];export{m as default}; diff --git a/docs/assets/app-config-button-r0SnKeQv.js b/docs/assets/app-config-button-r0SnKeQv.js new file mode 100644 index 0000000..609f968 --- /dev/null +++ b/docs/assets/app-config-button-r0SnKeQv.js @@ -0,0 +1 @@ +import{s as z}from"./chunk-LvLJmgfZ.js";import{l as X}from"./useEvent-DlWF5OMa.js";import{t as Z}from"./react-BGmjiNul.js";import{St as D}from"./cells-CmJW_FeD.js";import{t as E}from"./compiler-runtime-DeeZ7FnK.js";import{C as $,v as ee,w as Q}from"./utils-Czt8B2GX.js";import{j as te}from"./config-CENq_7Pd.js";import{t as se}from"./jsx-runtime-DN_bIXfG.js";import{t as le}from"./button-B8cGZzP5.js";import{l as R}from"./once-CTiSlR1m.js";import{r as U}from"./requests-C0HaHO6a.js";import{t as ae}from"./createLucideIcon-CW2xpJ57.js";import{h as oe,l as B}from"./select-D9lTzMzP.js";import{c as ne,f as re,l as ie,r as ce,s as de,t as he}from"./state-BphSR6sx.js";import{r as I}from"./input-Bkl2Yfmh.js";import{t as Y}from"./settings-MTlHVxz3.js";import{a as L,c as M,d as A,g as me,i as xe,l as F,o as P,p as pe,u as S}from"./textarea-DzIuH-E_.js";import{t as fe}from"./use-toast-Bzf3rpev.js";import{t as K}from"./tooltip-CvjcEpZC.js";import{o as ue}from"./alert-dialog-jcHA5geR.js";import{c as je,l as ve,n as ge,t as V}from"./dialog-CF5DtF1E.js";import{t as be}from"./VisuallyHidden-B0mBEsSm.js";import{i as we,r as ye,t as Ne}from"./popover-DtnzNVk-.js";import{n as Ce}from"./useDebounce-em3gna-v.js";import{n as ke}from"./ImperativeModal-BZvZlZQZ.js";import{t as O}from"./kbd-Czc5z_04.js";import{t as _e}from"./links-DNmjkr65.js";import{t as G}from"./Inputs-BLUpxKII.js";var Se=ae("power-off",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),Te=E(),s=z(se(),1);const Le=t=>{let e=(0,Te.c)(15),{description:a,disabled:f,tooltip:r}=t,i=f===void 0?!1:f,u=r===void 0?"Shutdown":r,{openConfirm:b,closeModal:l}=ke(),{sendShutdown:o}=U(),w;e[0]===o?w=e[1]:(w=()=>{o(),setTimeout(Me,200)},e[0]=o,e[1]=w);let j=w;if(te())return null;let m=i?"disabled":"red",c;e[2]!==l||e[3]!==a||e[4]!==j||e[5]!==b?(c=h=>{h.stopPropagation(),b({title:"Shutdown",description:a,variant:"destructive",confirmAction:(0,s.jsx)(ue,{onClick:()=>{j(),l()},"aria-label":"Confirm Shutdown",children:"Shutdown"})})},e[2]=l,e[3]=a,e[4]=j,e[5]=b,e[6]=c):c=e[6];let n;e[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)(oe,{strokeWidth:1}),e[7]=n):n=e[7];let d;e[8]!==i||e[9]!==m||e[10]!==c?(d=(0,s.jsx)(G,{"aria-label":"Shutdown","data-testid":"shutdown-button",shape:"circle",size:"small",color:m,className:"h-[27px] w-[27px]",disabled:i,onClick:c,children:n}),e[8]=i,e[9]=m,e[10]=c,e[11]=d):d=e[11];let x;return e[12]!==d||e[13]!==u?(x=(0,s.jsx)(K,{content:u,children:d}),e[12]=d,e[13]=u,e[14]=x):x=e[14],x};function Me(){window.close()}var J=E(),W=z(Z(),1),Ae=100;const Fe=()=>{let t=(0,J.c)(37),[e,a]=ee(),{saveAppConfig:f}=U(),r=(0,W.useId)(),i=(0,W.useId)(),u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=pe($),t[0]=u):u=t[0];let b;t[1]===e?b=t[2]:(b={resolver:u,defaultValues:e},t[1]=e,t[2]=b);let l=me(b),o;t[3]!==f||t[4]!==a?(o=async p=>{await f({config:p}).then(()=>{a(p)}).catch(()=>{a(p)})},t[3]=f,t[4]=a,t[5]=o):o=t[5];let w=o,j;t[6]===w?j=t[7]:(j=p=>{w(p)},t[6]=w,t[7]=j);let m=Ce(j,Ae),c;t[8]===e.width?c=t[9]:(c=[e.width],t[8]=e.width,t[9]=c),(0,W.useEffect)(Pe,c);let n;t[10]!==m||t[11]!==l?(n=l.handleSubmit(m),t[10]=m,t[11]=l,t[12]=n):n=t[12];let d;t[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsxs)("div",{children:[(0,s.jsx)(ie,{children:"Notebook Settings"}),(0,s.jsx)(ne,{children:"Configure how your notebook or application looks and behaves."})]}),t[13]=d):d=t[13];let x;t[14]===l.control?x=t[15]:(x=(0,s.jsxs)(H,{title:"Display",children:[(0,s.jsx)(M,{control:l.control,name:"width",render:He}),(0,s.jsx)(M,{control:l.control,name:"app_title",render:Ee})]}),t[14]=l.control,t[15]=x);let h;t[16]===l.control?h=t[17]:(h=(0,s.jsxs)(H,{title:"Custom Files",children:[(0,s.jsx)(M,{control:l.control,name:"css_file",render:Ie}),(0,s.jsx)(M,{control:l.control,name:"html_head_file",render:Oe})]}),t[16]=l.control,t[17]=h);let y;t[18]===l.control?y=t[19]:(y=(0,s.jsx)(H,{title:"Data",children:(0,s.jsx)(M,{control:l.control,name:"sql_output",render:ze})}),t[18]=l.control,t[19]=y);let N;t[20]!==r||t[21]!==i?(N=p=>{let{field:_}=p;return(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(F,{className:"flex flex-col gap-2",children:[(0,s.jsx)(L,{children:(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(D,{id:r,"data-testid":"html-checkbox",checked:_.value.includes("html"),onCheckedChange:()=>{_.onChange(R(_.value,"html"))}}),(0,s.jsx)(S,{htmlFor:r,children:"HTML"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(D,{id:i,"data-testid":"ipynb-checkbox",checked:_.value.includes("ipynb"),onCheckedChange:()=>{_.onChange(R(_.value,"ipynb"))}}),(0,s.jsx)(S,{htmlFor:i,children:"IPYNB"})]})]})}),(0,s.jsx)(A,{})]}),(0,s.jsxs)(P,{children:["When enabled, marimo will periodically save this notebook in your selected formats (HTML, IPYNB) to a folder named"," ",(0,s.jsx)(O,{className:"inline",children:"__marimo__"})," next to your notebook file."]})]})},t[20]=r,t[21]=i,t[22]=N):N=t[22];let v;t[23]!==l.control||t[24]!==N?(v=(0,s.jsx)(H,{title:"Exporting outputs",children:(0,s.jsx)(M,{control:l.control,name:"auto_download",render:N})}),t[23]=l.control,t[24]=N,t[25]=v):v=t[25];let C;t[26]!==v||t[27]!==x||t[28]!==h||t[29]!==y?(C=(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-x-8 gap-y-4",children:[x,h,y,v]}),t[26]=v,t[27]=x,t[28]=h,t[29]=y,t[30]=C):C=t[30];let g;t[31]!==C||t[32]!==n?(g=(0,s.jsxs)("form",{onChange:n,className:"flex flex-col gap-6",children:[d,C]}),t[31]=C,t[32]=n,t[33]=g):g=t[33];let k;return t[34]!==l||t[35]!==g?(k=(0,s.jsx)(xe,{...l,children:g}),t[34]=l,t[35]=g,t[36]=k):k=t[36],k};var H=t=>{let e=(0,J.c)(5),{title:a,children:f}=t,r;e[0]===a?r=e[1]:(r=(0,s.jsx)("h3",{className:"text-base font-semibold mb-1",children:a}),e[0]=a,e[1]=r);let i;return e[2]!==f||e[3]!==r?(i=(0,s.jsxs)("div",{className:"flex flex-col gap-y-2",children:[r,f]}),e[2]=f,e[3]=r,e[4]=i):i=e[4],i};function Pe(){window.dispatchEvent(new Event("resize"))}function qe(t){return(0,s.jsx)("option",{value:t,children:t},t)}function He(t){let{field:e}=t;return(0,s.jsxs)(F,{className:"flex flex-row items-center space-x-1 space-y-0",children:[(0,s.jsx)(S,{children:"Width"}),(0,s.jsx)(L,{children:(0,s.jsx)(B,{"data-testid":"app-width-select",onChange:a=>e.onChange(a.target.value),value:e.value,disabled:e.disabled,className:"inline-flex mr-2",children:re().map(qe)})}),(0,s.jsx)(A,{})]})}function Ee(t){let{field:e}=t;return(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(F,{className:"flex flex-row items-center space-x-1 space-y-0",children:[(0,s.jsx)(S,{children:"App title"}),(0,s.jsx)(L,{children:(0,s.jsx)(I,{...e,value:e.value??"",onChange:a=>{e.onChange(a.target.value),Q.safeParse(a.target.value).success&&(document.title=a.target.value)}})}),(0,s.jsx)(A,{})]}),(0,s.jsx)(P,{children:"The application title is put in the title tag in the HTML code and typically displayed in the title bar of the browser window."})]})}function Ie(t){let{field:e}=t;return(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(F,{className:"flex flex-row items-center space-x-1 space-y-0",children:[(0,s.jsx)(S,{className:"shrink-0",children:"Custom CSS"}),(0,s.jsx)(L,{children:(0,s.jsx)(I,{...e,value:e.value??"",placeholder:"custom.css",onChange:a=>{e.onChange(a.target.value),Q.safeParse(a.target.value).success&&(document.title=a.target.value)}})}),(0,s.jsx)(A,{})]}),(0,s.jsx)(P,{children:"A filepath to a custom css file to be injected into the notebook."})]})}function Oe(t){let{field:e}=t;return(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(F,{className:"flex flex-row items-center space-x-1 space-y-0",children:[(0,s.jsx)(S,{className:"shrink-0",children:"HTML Head"}),(0,s.jsx)(L,{children:(0,s.jsx)(I,{...e,value:e.value??"",placeholder:"head.html",onChange:a=>{e.onChange(a.target.value)}})}),(0,s.jsx)(A,{})]}),(0,s.jsxs)(P,{children:["A filepath to an HTML file to be injected into the"," ",(0,s.jsx)(O,{className:"inline",children:""})," section of the notebook. Use this to add analytics, custom fonts, meta tags, or external scripts."]})]})}function We(t){return(0,s.jsx)("option",{value:t.value,children:t.label},t.value)}function ze(t){let{field:e}=t;return(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(F,{className:"flex flex-row items-center space-x-1 space-y-0",children:[(0,s.jsx)(S,{children:"SQL Output Type"}),(0,s.jsx)(L,{children:(0,s.jsx)(B,{"data-testid":"sql-output-select",onChange:a=>{e.onChange(a.target.value),fe({title:"Kernel Restart Required",description:"This change requires a kernel restart to take effect."})},value:e.value,disabled:e.disabled,className:"inline-flex mr-2",children:de.map(We)})}),(0,s.jsx)(A,{})]}),(0,s.jsxs)(P,{children:["The Python type returned by a SQL cell. For best performance with large datasets, we recommend using"," ",(0,s.jsx)(O,{className:"inline",children:"native"}),". See the"," ",(0,s.jsx)(_e,{href:"https://docs.marimo.io/guides/working_with_data/sql",children:"SQL guide"})," ","for more information."]})]})}var De=E();const Qe=t=>{let e=(0,De.c)(32),{showAppConfig:a,disabled:f,tooltip:r}=t,i=a===void 0?!0:a,u=f===void 0?!1:f,b=r===void 0?"Settings":r,[l,o]=X(he),w=u?"disabled":"hint-green",j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsx)(Y,{strokeWidth:1.8}),e[0]=j):j=e[0];let m;e[1]===b?m=e[2]:(m=(0,s.jsx)(K,{content:b,children:j}),e[1]=b,e[2]=m);let c;e[3]!==u||e[4]!==w||e[5]!==m?(c=(0,s.jsx)(G,{"aria-label":"Config","data-testid":"app-config-button",shape:"circle",size:"small",className:"h-[27px] w-[27px]",disabled:u,color:w,children:m}),e[3]=u,e[4]=w,e[5]=m,e[6]=c):c=e[6];let n=c,d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsxs)(ge,{className:"w-[90vw] h-[90vh] overflow-hidden sm:max-w-5xl top-[5vh] p-0",children:[(0,s.jsx)(be,{children:(0,s.jsx)(je,{children:"User settings"})}),(0,s.jsx)(ce,{})]}),e[7]=d):d=e[7];let x=d;if(!i){let T;e[8]===n?T=e[9]:(T=(0,s.jsx)(ve,{children:n}),e[8]=n,e[9]=T);let q;return e[10]!==o||e[11]!==l||e[12]!==T?(q=(0,s.jsxs)(V,{open:l,onOpenChange:o,children:[T,x]}),e[10]=o,e[11]=l,e[12]=T,e[13]=q):q=e[13],q}let h;e[14]===n?h=e[15]:(h=(0,s.jsx)(we,{asChild:!0,children:n}),e[14]=n,e[15]=h);let y,N;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.jsx)(Fe,{}),N=(0,s.jsx)("div",{className:"h-px bg-border my-2"}),e[16]=y,e[17]=N):(y=e[16],N=e[17]);let v;e[18]===o?v=e[19]:(v=()=>o(!0),e[18]=o,e[19]=v);let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=(0,s.jsx)(Y,{strokeWidth:1.8,className:"w-4 h-4 mr-2"}),e[20]=C):C=e[20];let g;e[21]===v?g=e[22]:(g=(0,s.jsxs)(ye,{className:"w-[650px] overflow-auto max-h-[80vh] max-w-[80vw]",align:"end",side:"bottom",onFocusOutside:Re,children:[y,N,(0,s.jsxs)(le,{onClick:v,variant:"link",className:"px-0",children:[C,"User settings"]})]}),e[21]=v,e[22]=g);let k;e[23]!==g||e[24]!==h?(k=(0,s.jsxs)(Ne,{children:[h,g]}),e[23]=g,e[24]=h,e[25]=k):k=e[25];let p;e[26]!==o||e[27]!==l?(p=(0,s.jsx)(V,{open:l,onOpenChange:o,children:x}),e[26]=o,e[27]=l,e[28]=p):p=e[28];let _;return e[29]!==k||e[30]!==p?(_=(0,s.jsxs)(s.Fragment,{children:[k,p]}),e[29]=k,e[30]=p,e[31]=_):_=e[31],_};function Re(t){return t.preventDefault()}export{Le as n,Se as r,Qe as t}; diff --git a/docs/assets/applescript-CZ1TEkBv.js b/docs/assets/applescript-CZ1TEkBv.js new file mode 100644 index 0000000..ebc86ec --- /dev/null +++ b/docs/assets/applescript-CZ1TEkBv.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"AppleScript","fileTypes":["applescript","scpt","script editor"],"firstLineMatch":"^#!.*(osascript)","name":"applescript","patterns":[{"include":"#blocks"},{"include":"#inline"}],"repository":{"attributes.considering-ignoring":{"patterns":[{"match":",","name":"punctuation.separator.array.attributes.applescript"},{"match":"\\\\b(and)\\\\b","name":"keyword.control.attributes.and.applescript"},{"match":"\\\\b(?i:case|diacriticals|hyphens|numeric\\\\s+strings|punctuation|white\\\\s+space)\\\\b","name":"constant.other.attributes.text.applescript"},{"match":"\\\\b(?i:application\\\\s+responses)\\\\b","name":"constant.other.attributes.application.applescript"}]},"blocks":{"patterns":[{"begin":"^\\\\s*(script)\\\\s+(\\\\w+)","beginCaptures":{"1":{"name":"keyword.control.script.applescript"},"2":{"name":"entity.name.type.script-object.applescript"}},"end":"^\\\\s*(end(?:\\\\s+script)?)(?=\\\\s*(--.*?)?$)","endCaptures":{"1":{"name":"keyword.control.script.applescript"}},"name":"meta.block.script.applescript","patterns":[{"include":"$self"}]},{"begin":"^\\\\s*(to|on)\\\\s+(\\\\w+)(\\\\()((?:[,:{}\\\\s]*\\\\w+{0,1})*)(\\\\))","beginCaptures":{"1":{"name":"keyword.control.function.applescript"},"2":{"name":"entity.name.function.handler.applescript"},"3":{"name":"punctuation.definition.parameters.begin.applescript"},"4":{"name":"variable.parameter.handler.applescript"},"5":{"name":"punctuation.definition.parameters.end.applescript"}},"end":"^\\\\s*(end)(?:\\\\s+(\\\\2))?(?=\\\\s*(--.*?)?$)","endCaptures":{"1":{"name":"keyword.control.function.applescript"}},"name":"meta.function.positional.applescript","patterns":[{"include":"$self"}]},{"begin":"^\\\\s*(to|on)\\\\s+(\\\\w+)(?:\\\\s+(of|in)\\\\s+(\\\\w+))?(?=\\\\s+(above|against|apart\\\\s+from|around|aside\\\\s+from|at|below|beneath|beside|between|by|for|from|instead\\\\s+of|into|on|onto|out\\\\s+of|over|thru|under)\\\\b)","beginCaptures":{"1":{"name":"keyword.control.function.applescript"},"2":{"name":"entity.name.function.handler.applescript"},"3":{"name":"keyword.control.function.applescript"},"4":{"name":"variable.parameter.handler.direct.applescript"}},"end":"^\\\\s*(end)(?:\\\\s+(\\\\2))?(?=\\\\s*(--.*?)?$)","endCaptures":{"1":{"name":"keyword.control.function.applescript"}},"name":"meta.function.prepositional.applescript","patterns":[{"captures":{"1":{"name":"keyword.control.preposition.applescript"},"2":{"name":"variable.parameter.handler.applescript"}},"match":"\\\\b(?i:above|against|apart\\\\s+from|around|aside\\\\s+from|at|below|beneath|beside|between|by|for|from|instead\\\\s+of|into|on|onto|out\\\\s+of|over|thru|under)\\\\s+(\\\\w+)\\\\b"},{"include":"$self"}]},{"begin":"^\\\\s*(to|on)\\\\s+(\\\\w+)(?=\\\\s*(--.*?)?$)","beginCaptures":{"1":{"name":"keyword.control.function.applescript"},"2":{"name":"entity.name.function.handler.applescript"}},"end":"^\\\\s*(end)(?:\\\\s+(\\\\2))?(?=\\\\s*(--.*?)?$)","endCaptures":{"1":{"name":"keyword.control.function.applescript"}},"name":"meta.function.parameterless.applescript","patterns":[{"include":"$self"}]},{"include":"#blocks.tell"},{"include":"#blocks.repeat"},{"include":"#blocks.statement"},{"include":"#blocks.other"}]},"blocks.other":{"patterns":[{"begin":"^\\\\s*(considering)\\\\b","end":"^\\\\s*(end(?:\\\\s+considering)?)(?=\\\\s*(--.*?)?$)","name":"meta.block.considering.applescript","patterns":[{"begin":"(?<=considering)","end":"(?\u2260\u2265]|>=|\u2264|<=)","name":"keyword.operator.comparison.applescript"},{"match":"(?i)\\\\b(and|or|div|mod|as|not|(a\\\\s+)?(ref(?:(\\\\s+to)?|erence\\\\s+to))|equal(s|\\\\s+to)|contains?|comes\\\\s+(after|before)|(start|begin|end)s?\\\\s+with)\\\\b","name":"keyword.operator.word.applescript"},{"match":"(?i)\\\\b(is(n't|\\\\s+not)?(\\\\s+(equal(\\\\s+to)?|(less|greater)\\\\s+than(\\\\s+or\\\\s+equal(\\\\s+to)?)?|in|contained\\\\s+by))?|does(n't|\\\\s+not)\\\\s+(equal|come\\\\s+(before|after)|contain))\\\\b","name":"keyword.operator.word.applescript"},{"match":"\\\\b(?i:some|every|whose|where|that|id|index|\\\\d+(st|nd|rd|th)|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|last|front|back|middle|named|beginning|end|from|to|thr(u|ough)|before|(front|back|beginning|end)\\\\s+of|after|behind|in\\\\s+(front|back|beginning|end)\\\\s+of)\\\\b","name":"keyword.operator.reference.applescript"},{"match":"\\\\b(?i:continue|return|exit(\\\\s+repeat)?)\\\\b","name":"keyword.control.loop.applescript"},{"match":"\\\\b(?i:about|above|after|against|and|apart\\\\s+from|around|as|aside\\\\s+from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|contains??|contains|copy|div|does|eighth|else|end|equals??|error|every|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead\\\\s+of|into|is|its??|last|local|me|middle|mod|my|ninth|not|of|on|onto|or|out\\\\s+of|over|prop|property|put|ref|reference|repeat|returning|script|second|set|seventh|since|sixth|some|tell|tenth|that|then??|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\\\\b","name":"keyword.other.applescript"}]},"built-in.punctuation":{"patterns":[{"match":"\xAC","name":"punctuation.separator.continuation.line.applescript"},{"match":":","name":"punctuation.separator.key-value.property.applescript"},{"match":"[()]","name":"punctuation.section.group.applescript"}]},"built-in.support":{"patterns":[{"match":"\\\\b(?i:POSIX\\\\s+path|frontmost|id|name|running|version|days?|weekdays?|months?|years?|time|date\\\\s+string|time\\\\s+string|length|rest|reverse|items?|contents|quoted\\\\s+form|characters?|paragraphs?|words?)\\\\b","name":"support.function.built-in.property.applescript"},{"match":"\\\\b(?i:activate|log|clipboard\\\\s+info|set\\\\s+the\\\\s+clipboard\\\\s+to|the\\\\s+clipboard|info\\\\s+for|list\\\\s+(disks|folder)|mount\\\\s+volume|path\\\\s+to(\\\\s+resource)?|close\\\\s+access|get\\\\s+eof|open\\\\s+for\\\\s+access|read|set\\\\s+eof|write|open\\\\s+location|current\\\\s+date|do\\\\s+shell\\\\s+script|get\\\\s+volume\\\\s+settings|random\\\\s+number|round|set\\\\s+volume|system\\\\s+(attribute|info)|time\\\\s+to\\\\s+GMT|load\\\\s+script|run\\\\s+script|scripting\\\\s+components|store\\\\s+script|copy|count|get|launch|run|set|ASCII\\\\s+(character|number)|localized\\\\s+string|offset|summarize|beep|choose\\\\s+(application|color|file(\\\\s+name)?|folder|from\\\\s+list|remote\\\\s+application|URL)|delay|display\\\\s+(alert|dialog)|say)\\\\b","name":"support.function.built-in.command.applescript"},{"match":"\\\\b(?i:get|run)\\\\b","name":"support.function.built-in.applescript"},{"match":"\\\\b(?i:anything|data|text|upper\\\\s+case|propert(y|ies))\\\\b","name":"support.class.built-in.applescript"},{"match":"\\\\b(?i:alias|class)(es)?\\\\b","name":"support.class.built-in.applescript"},{"match":"\\\\b(?i:app(lication)?|boolean|character|constant|date|event|file(\\\\s+specification)?|handler|integer|item|keystroke|linked\\\\s+list|list|machine|number|picture|preposition|POSIX\\\\s+file|real|record|reference(\\\\s+form)?|RGB\\\\s+color|script|sound|text\\\\s+item|type\\\\s+class|vector|writing\\\\s+code(\\\\s+info)?|zone|((international|styled(\\\\s+(Clipboard|Unicode))?|Unicode)\\\\s+)?text|((C|encoded|Pascal)\\\\s+)?string)s?\\\\b","name":"support.class.built-in.applescript"},{"match":"(?i)\\\\b((cubic\\\\s+(centi)?|square\\\\s+(kilo)?|centi|kilo)met(er|re)s|square\\\\s+(yards|feet|miles)|cubic\\\\s+(yards|feet|inches)|miles|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees\\\\s+(Celsius|Fahrenheit|Kelvin))\\\\b","name":"support.class.built-in.unit.applescript"},{"match":"\\\\b(?i:seconds|minutes|hours|days)\\\\b","name":"support.class.built-in.time.applescript"}]},"comments":{"patterns":[{"begin":"^\\\\s*(#!)","captures":{"1":{"name":"punctuation.definition.comment.applescript"}},"end":"\\\\n","name":"comment.line.number-sign.applescript"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.applescript"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.applescript"}},"end":"\\\\n","name":"comment.line.number-sign.applescript"}]},{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.applescript"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.applescript"}},"end":"\\\\n","name":"comment.line.double-dash.applescript"}]},{"begin":"\\\\(\\\\*","captures":{"0":{"name":"punctuation.definition.comment.applescript"}},"end":"\\\\*\\\\)","name":"comment.block.applescript","patterns":[{"include":"#comments.nested"}]}]},"comments.nested":{"patterns":[{"begin":"\\\\(\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.applescript"}},"end":"\\\\*\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.applescript"}},"name":"comment.block.applescript","patterns":[{"include":"#comments.nested"}]}]},"data-structures":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.applescript"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.array.end.applescript"}},"name":"meta.array.applescript","patterns":[{"captures":{"1":{"name":"constant.other.key.applescript"},"2":{"name":"meta.identifier.applescript"},"3":{"name":"punctuation.definition.identifier.applescript"},"4":{"name":"punctuation.definition.identifier.applescript"},"5":{"name":"punctuation.separator.key-value.applescript"}},"match":"(\\\\w+|((\\\\|)[^\\\\n|]*(\\\\|)))\\\\s*(:)"},{"match":":","name":"punctuation.separator.key-value.applescript"},{"match":",","name":"punctuation.separator.array.applescript"},{"include":"#inline"}]},{"begin":"(?:(?<=application )|(?<=app ))(\\")","captures":{"1":{"name":"punctuation.definition.string.applescript"}},"end":"(\\")","name":"string.quoted.double.application-name.applescript","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.applescript"}]},{"begin":"(\\")","captures":{"1":{"name":"punctuation.definition.string.applescript"}},"end":"(\\")","name":"string.quoted.double.applescript","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.applescript"}]},{"captures":{"1":{"name":"punctuation.definition.identifier.applescript"},"2":{"name":"punctuation.definition.identifier.applescript"}},"match":"(\\\\|)[^\\\\n|]*(\\\\|)","name":"meta.identifier.applescript"},{"captures":{"1":{"name":"punctuation.definition.data.applescript"},"2":{"name":"support.class.built-in.applescript"},"3":{"name":"storage.type.utxt.applescript"},"4":{"name":"string.unquoted.data.applescript"},"5":{"name":"punctuation.definition.data.applescript"},"6":{"name":"keyword.operator.applescript"},"7":{"name":"support.class.built-in.applescript"}},"match":"(\xAB)(data) (ut(?:xt|f8))(\\\\h*)(\xBB)(?:\\\\s+(as)\\\\s+(?i:Unicode\\\\s+text))?","name":"constant.other.data.utxt.applescript"},{"begin":"(\xAB)(\\\\w+)\\\\b(?=\\\\s)","beginCaptures":{"1":{"name":"punctuation.definition.data.applescript"},"2":{"name":"support.class.built-in.applescript"}},"end":"(\xBB)","endCaptures":{"1":{"name":"punctuation.definition.data.applescript"}},"name":"constant.other.data.raw.applescript"},{"captures":{"1":{"name":"punctuation.definition.data.applescript"},"2":{"name":"punctuation.definition.data.applescript"}},"match":"(\xAB)[^\xBB]*(\xBB)","name":"invalid.illegal.data.applescript"}]},"finder":{"patterns":[{"match":"\\\\b(item|container|(computer|disk|trash)-object|disk|folder|((alias|application|document|internet location) )?file|clipping|package)s?\\\\b","name":"support.class.finder.items.applescript"},{"match":"\\\\b((Finder|desktop|information|preferences|clipping) )windows?\\\\b","name":"support.class.finder.window-classes.applescript"},{"match":"\\\\b(preferences|(icon|column|list) view options|(label|column|alias list)s?)\\\\b","name":"support.class.finder.type-definitions.applescript"},{"match":"\\\\b(copy|find|sort|clean up|eject|empty( trash)|erase|reveal|update)\\\\b","name":"support.function.finder.items.applescript"},{"match":"\\\\b(insertion location|product version|startup disk|desktop|trash|home|computer container|finder preferences)\\\\b","name":"support.constant.finder.applescript"},{"match":"\\\\b(visible)\\\\b","name":"support.variable.finder.applescript"}]},"inline":{"patterns":[{"include":"#comments"},{"include":"#data-structures"},{"include":"#built-in"},{"include":"#standardadditions"}]},"itunes":{"patterns":[{"match":"\\\\b(artwork|application|encoder|EQ preset|item|source|visual|(EQ |browser )?window|((audio CD|device|shared|URL|file) )?track|playlist window|((audio CD|device|radio tuner|library|folder|user) )?playlist)s?\\\\b","name":"support.class.itunes.applescript"},{"match":"\\\\b(add|back track|convert|fast forward|(next|previous) track|pause|play(pause)?|refresh|resume|rewind|search|stop|update|eject|subscribe|update(Podcast|AllPodcasts)|download)\\\\b","name":"support.function.itunes.applescript"},{"match":"\\\\b(current (playlist|stream (title|URL)|track)|player state)\\\\b","name":"support.constant.itunes.applescript"},{"match":"\\\\b(current (encoder|EQ preset|visual)|EQ enabled|fixed indexing|full screen|mute|player position|sound volume|visuals enabled|visual size)\\\\b","name":"support.variable.itunes.applescript"}]},"standard-suite":{"patterns":[{"match":"\\\\b(colors?|documents?|items?|windows?)\\\\b","name":"support.class.standard-suite.applescript"},{"match":"\\\\b(close|count|delete|duplicate|exists|make|move|open|print|quit|save|activate|select|data size)\\\\b","name":"support.function.standard-suite.applescript"},{"match":"\\\\b(name|frontmost|version)\\\\b","name":"support.constant.standard-suite.applescript"},{"match":"\\\\b(selection)\\\\b","name":"support.variable.standard-suite.applescript"},{"match":"\\\\b(attachments?|attribute runs?|characters?|paragraphs?|texts?|words?)\\\\b","name":"support.class.text-suite.applescript"}]},"standardadditions":{"patterns":[{"match":"\\\\b((alert|dialog) reply)\\\\b","name":"support.class.standardadditions.user-interaction.applescript"},{"match":"\\\\b(file information)\\\\b","name":"support.class.standardadditions.file.applescript"},{"match":"\\\\b(POSIX files?|system information|volume settings)\\\\b","name":"support.class.standardadditions.miscellaneous.applescript"},{"match":"\\\\b(URLs?|internet address(es)?|web pages?|FTP items?)\\\\b","name":"support.class.standardadditions.internet.applescript"},{"match":"\\\\b(info for|list (disks|folder)|mount volume|path to( resource)?)\\\\b","name":"support.function.standardadditions.file.applescript"},{"match":"\\\\b(beep|choose (application|color|file( name)?|folder|from list|remote application|URL)|delay|display (alert|dialog)|say)\\\\b","name":"support.function.standardadditions.user-interaction.applescript"},{"match":"\\\\b(ASCII (character|number)|localized string|offset|summarize)\\\\b","name":"support.function.standardadditions.string.applescript"},{"match":"\\\\b(set the clipboard to|the clipboard|clipboard info)\\\\b","name":"support.function.standardadditions.clipboard.applescript"},{"match":"\\\\b(open for access|close access|read|write|get eof|set eof)\\\\b","name":"support.function.standardadditions.file-i-o.applescript"},{"match":"\\\\b((load|store|run) script|scripting components)\\\\b","name":"support.function.standardadditions.scripting.applescript"},{"match":"\\\\b(current date|do shell script|get volume settings|random number|round|set volume|system attribute|system info|time to GMT)\\\\b","name":"support.function.standardadditions.miscellaneous.applescript"},{"match":"\\\\b(opening folder|((?:clos|mov)ing) folder window for|adding folder items to|removing folder items from)\\\\b","name":"support.function.standardadditions.folder-actions.applescript"},{"match":"\\\\b(open location|handle CGI request)\\\\b","name":"support.function.standardadditions.internet.applescript"}]},"system-events":{"patterns":[{"match":"\\\\b(audio (data|file))\\\\b","name":"support.class.system-events.audio-file.applescript"},{"match":"\\\\b(alias(es)?|(Classic|local|network|system|user) domain objects?|disk( item)?s?|domains?|file( package)?s?|folders?|items?)\\\\b","name":"support.class.system-events.disk-folder-file.applescript"},{"match":"\\\\b(delete|open|move)\\\\b","name":"support.function.system-events.disk-folder-file.applescript"},{"match":"\\\\b(folder actions?|scripts?)\\\\b","name":"support.class.system-events.folder-actions.applescript"},{"match":"\\\\b(attach action to|attached scripts|edit action of|remove action from)\\\\b","name":"support.function.system-events.folder-actions.applescript"},{"match":"\\\\b(movie (?:data|file))\\\\b","name":"support.class.system-events.movie-file.applescript"},{"match":"\\\\b(log out|restart|shut down|sleep)\\\\b","name":"support.function.system-events.power.applescript"},{"match":"\\\\b(((application |desk accessory )?process|(c(?:heck|ombo ))?box)(es)?|(action|attribute|browser|(busy|progress|relevance) indicator|color well|column|drawer|group|grow area|image|incrementor|list|menu( bar)?( item)?|(menu |pop up |radio )?button|outline|(radio|tab|splitter) group|row|scroll (area|bar)|sheet|slider|splitter|static text|table|text (area|field)|tool bar|UI element|window)s?)\\\\b","name":"support.class.system-events.processes.applescript"},{"match":"\\\\b(click|key code|keystroke|perform|select)\\\\b","name":"support.function.system-events.processes.applescript"},{"match":"\\\\b(property list (file|item))\\\\b","name":"support.class.system-events.property-list.applescript"},{"match":"\\\\b(annotation|QuickTime (data|file)|track)s?\\\\b","name":"support.class.system-events.quicktime-file.applescript"},{"match":"\\\\b((abort|begin|end) transaction)\\\\b","name":"support.function.system-events.system-events.applescript"},{"match":"\\\\b(XML (attribute|data|element|file)s?)\\\\b","name":"support.class.system-events.xml.applescript"},{"match":"\\\\b(print settings|users?|login items?)\\\\b","name":"support.class.sytem-events.other.applescript"}]},"textmate":{"patterns":[{"match":"\\\\b(print settings)\\\\b","name":"support.class.textmate.applescript"},{"match":"\\\\b(get url|insert|reload bundles)\\\\b","name":"support.function.textmate.applescript"}]}},"scopeName":"source.applescript"}`))];export{e as default}; diff --git a/docs/assets/ara-EEpB00vK.js b/docs/assets/ara-EEpB00vK.js new file mode 100644 index 0000000..1cea947 --- /dev/null +++ b/docs/assets/ara-EEpB00vK.js @@ -0,0 +1 @@ +var a=[Object.freeze(JSON.parse(`{"displayName":"Ara","fileTypes":["ara"],"name":"ara","patterns":[{"include":"#namespace"},{"include":"#named-arguments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#strings"},{"include":"#numbers"},{"include":"#operators"},{"include":"#type"},{"include":"#function-call"}],"repository":{"class-name":{"patterns":[{"begin":"\\\\b(?i)(?|]|<<|>>|\\\\?\\\\?)=)","name":"keyword.assignments.ara"},{"match":"([\\\\^|]|\\\\|\\\\||&&|>>|<<|[\\\\&~]|<<|>>|[<>]|<=>|\\\\?\\\\?|[:?]|\\\\?:)(?!=)","name":"keyword.operators.ara"},{"match":"(===??|!==?|<=|>=|[<>])(?!=)","name":"keyword.operator.comparison.ara"},{"match":"(([%+]|(\\\\*(?!\\\\w)))(?!=))|(-(?!>))|(/(?!/))","name":"keyword.operator.math.ara"},{"match":"(?])=(?![=>])","name":"keyword.operator.assignment.ara"},{"captures":{"1":{"name":"punctuation.brackets.round.ara"},"2":{"name":"punctuation.brackets.square.ara"},"3":{"name":"punctuation.brackets.curly.ara"},"4":{"name":"keyword.operator.comparison.ara"},"5":{"name":"punctuation.brackets.round.ara"},"6":{"name":"punctuation.brackets.square.ara"},"7":{"name":"punctuation.brackets.curly.ara"}},"match":"(?:\\\\b|(?:(\\\\))|(])|(})))[\\\\t ]+([<>])[\\\\t ]+(?:\\\\b|(?:(\\\\()|(\\\\[)|(\\\\{)))"},{"match":"\\\\???->","name":"keyword.operator.arrow.ara"},{"match":"=>","name":"keyword.operator.double-arrow.ara"},{"match":"::","name":"keyword.operator.static.ara"},{"match":"\\\\(\\\\.\\\\.\\\\.\\\\)","name":"keyword.operator.closure.ara"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.ara"},{"match":"\\\\\\\\","name":"keyword.operator.namespace.ara"}]},"strings":{"patterns":[{"begin":"'","end":"'","name":"string.quoted.single.ara","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.ara"}]},{"begin":"\\"","end":"\\"","name":"string.quoted.double.ara","patterns":[{"include":"#interpolation"}]}]},"type":{"name":"support.type.php","patterns":[{"match":"\\\\b(?:void|true|false|null|never|float|bool|int|string|dict|vec|object|mixed|nonnull|resource|self|static|parent|iterable)\\\\b","name":"support.type.php"},{"begin":"([A-Z_a-z][0-9A-Z_a-z]*)<","beginCaptures":{"1":{"name":"support.class.php"}},"end":">","patterns":[{"include":"#type-annotation"}]},{"begin":"(shape\\\\()","end":"((,|\\\\.\\\\.\\\\.)?\\\\s*\\\\))","endCaptures":{"1":{"name":"keyword.operator.key.php"}},"name":"storage.type.shape.php","patterns":[{"include":"#type-annotation"},{"include":"#strings"},{"include":"#constants"}]},{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#type-annotation"}]},{"begin":"\\\\(fn\\\\(","end":"\\\\)","patterns":[{"include":"#type-annotation"}]},{"include":"#class-name"},{"include":"#comments"}]},"user-function-call":{"begin":"(?i)(?=[0-9\\\\\\\\_a-z]*[_a-z][0-9_a-z]*\\\\s*\\\\()","end":"(?i)[_a-z][0-9_a-z]*(?=\\\\s*\\\\()","endCaptures":{"0":{"name":"entity.name.function.php"}},"name":"meta.function-call.php","patterns":[{"include":"#namespace"}]}},"scopeName":"source.ara"}`))];export{a as default}; diff --git a/docs/assets/arc-CWuN1tfc.js b/docs/assets/arc-CWuN1tfc.js new file mode 100644 index 0000000..15d1ea8 --- /dev/null +++ b/docs/assets/arc-CWuN1tfc.js @@ -0,0 +1 @@ +import{r as P,t as an}from"./path-DvTahePH.js";import{a as Q,c as cn,d as _,f as q,i,l as H,n as on,p as sn,r as rn,s as tn,t as en,u as un}from"./math-B-ZqhQTL.js";function yn(o){return o.innerRadius}function ln(o){return o.outerRadius}function fn(o){return o.startAngle}function pn(o){return o.endAngle}function xn(o){return o&&o.padAngle}function gn(o,h,C,b,v,d,F,e){var D=C-o,a=b-h,n=F-v,p=e-d,t=p*D-n*a;if(!(t*t<1e-12))return t=(n*(h-d)-p*(o-v))/t,[o+t*D,h+t*a]}function X(o,h,C,b,v,d,F){var e=o-C,D=h-b,a=(F?d:-d)/q(e*e+D*D),n=a*D,p=-a*e,t=o+n,c=h+p,y=C+n,l=b+p,I=(t+y)/2,s=(c+l)/2,x=y-t,f=l-c,T=x*x+f*f,k=v-d,A=t*l-y*c,E=(f<0?-1:1)*q(cn(0,k*k*T-A*A)),O=(A*f-x*E)/T,R=(-A*x-f*E)/T,S=(A*f+x*E)/T,g=(-A*x+f*E)/T,m=O-I,r=R-s,u=S-I,L=g-s;return m*m+r*r>u*u+L*L&&(O=S,R=g),{cx:O,cy:R,x01:-n,y01:-p,x11:O*(v/k-1),y11:R*(v/k-1)}}function mn(){var o=yn,h=ln,C=P(0),b=null,v=fn,d=pn,F=xn,e=null,D=an(a);function a(){var n,p,t=+o.apply(this,arguments),c=+h.apply(this,arguments),y=v.apply(this,arguments)-tn,l=d.apply(this,arguments)-tn,I=en(l-y),s=l>y;if(e||(e=n=D()),c1e-12))e.moveTo(0,0);else if(I>sn-1e-12)e.moveTo(c*Q(y),c*_(y)),e.arc(0,0,c,y,l,!s),t>1e-12&&(e.moveTo(t*Q(l),t*_(l)),e.arc(0,0,t,l,y,s));else{var x=y,f=l,T=y,k=l,A=I,E=I,O=F.apply(this,arguments)/2,R=O>1e-12&&(b?+b.apply(this,arguments):q(t*t+c*c)),S=H(en(c-t)/2,+C.apply(this,arguments)),g=S,m=S,r,u;if(R>1e-12){var L=rn(R/t*_(O)),J=rn(R/c*_(O));(A-=L*2)>1e-12?(L*=s?1:-1,T+=L,k-=L):(A=0,T=k=(y+l)/2),(E-=J*2)>1e-12?(J*=s?1:-1,x+=J,f-=J):(E=0,x=f=(y+l)/2)}var Z=c*Q(x),j=c*_(x),M=t*Q(k),N=t*_(k);if(S>1e-12){var U=c*Q(f),W=c*_(f),Y=t*Q(T),G=t*_(T),w;if(I1e-12?m>1e-12?(r=X(Y,G,Z,j,c,m,s),u=X(U,W,M,N,c,m,s),e.moveTo(r.cx+r.x01,r.cy+r.y01),m1e-12)||!(A>1e-12)?e.lineTo(M,N):g>1e-12?(r=X(M,N,U,W,t,-g,s),u=X(Z,j,Y,G,t,-g,s),e.lineTo(r.cx+r.x01,r.cy+r.y01),g{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M():typeof define=="function"&&define.amd?define([],M):typeof _=="object"?_.layoutBase=M():C.layoutBase=M()})(_,function(){return(function(C){var M={};function N(f){if(M[f])return M[f].exports;var r=M[f]={i:f,l:!1,exports:{}};return C[f].call(r.exports,r,r.exports,N),r.l=!0,r.exports}return N.m=C,N.c=M,N.i=function(f){return f},N.d=function(f,r,n){N.o(f,r)||Object.defineProperty(f,r,{configurable:!1,enumerable:!0,get:n})},N.n=function(f){var r=f&&f.__esModule?function(){return f.default}:function(){return f};return N.d(r,"a",r),r},N.o=function(f,r){return Object.prototype.hasOwnProperty.call(f,r)},N.p="",N(N.s=28)})([(function(C,M,N){function f(){}f.QUALITY=1,f.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,f.DEFAULT_INCREMENTAL=!1,f.DEFAULT_ANIMATION_ON_LAYOUT=!0,f.DEFAULT_ANIMATION_DURING_LAYOUT=!1,f.DEFAULT_ANIMATION_PERIOD=50,f.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,f.DEFAULT_GRAPH_MARGIN=15,f.NODE_DIMENSIONS_INCLUDE_LABELS=!1,f.SIMPLE_NODE_SIZE=40,f.SIMPLE_NODE_HALF_SIZE=f.SIMPLE_NODE_SIZE/2,f.EMPTY_COMPOUND_NODE_SIZE=40,f.MIN_EDGE_LENGTH=1,f.WORLD_BOUNDARY=1e6,f.INITIAL_WORLD_BOUNDARY=f.WORLD_BOUNDARY/1e3,f.WORLD_CENTER_X=1200,f.WORLD_CENTER_Y=900,C.exports=f}),(function(C,M,N){var f=N(2),r=N(8),n=N(9);function t(h,a,p){f.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=h,this.target=a}for(var e in t.prototype=Object.create(f.prototype),f)t[e]=f[e];t.prototype.getSource=function(){return this.source},t.prototype.getTarget=function(){return this.target},t.prototype.isInterGraph=function(){return this.isInterGraph},t.prototype.getLength=function(){return this.length},t.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},t.prototype.getBendpoints=function(){return this.bendpoints},t.prototype.getLca=function(){return this.lca},t.prototype.getSourceInLca=function(){return this.sourceInLca},t.prototype.getTargetInLca=function(){return this.targetInLca},t.prototype.getOtherEnd=function(h){if(this.source===h)return this.target;if(this.target===h)return this.source;throw"Node is not incident with this edge"},t.prototype.getOtherEndInGraph=function(h,a){for(var p=this.getOtherEnd(h),o=a.getGraphManager().getRoot();;){if(p.getOwner()==a)return p;if(p.getOwner()==o)break;p=p.getOwner().getParent()}return null},t.prototype.updateLength=function(){var h=[,,,,];this.isOverlapingSourceAndTarget=r.getIntersection(this.target.getRect(),this.source.getRect(),h),this.isOverlapingSourceAndTarget||(this.lengthX=h[0]-h[2],this.lengthY=h[1]-h[3],Math.abs(this.lengthX)<1&&(this.lengthX=n.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=n.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},t.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=n.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=n.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=t}),(function(C,M,N){function f(r){this.vGraphObject=r}C.exports=f}),(function(C,M,N){var f=N(2),r=N(10),n=N(13),t=N(0),e=N(16),h=N(5);function a(o,i,d,s){d==null&&s==null&&(s=i),f.call(this,s),o.graphManager!=null&&(o=o.graphManager),this.estimatedSize=r.MIN_VALUE,this.inclusionTreeDepth=r.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=o,d!=null&&i!=null?this.rect=new n(i.x,i.y,d.width,d.height):this.rect=new n}for(var p in a.prototype=Object.create(f.prototype),f)a[p]=f[p];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(o){this.rect.width=o},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(o){this.rect.height=o},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(o,i){this.rect.x=o.x,this.rect.y=o.y,this.rect.width=i.width,this.rect.height=i.height},a.prototype.setCenter=function(o,i){this.rect.x=o-this.rect.width/2,this.rect.y=i-this.rect.height/2},a.prototype.setLocation=function(o,i){this.rect.x=o,this.rect.y=i},a.prototype.moveBy=function(o,i){this.rect.x+=o,this.rect.y+=i},a.prototype.getEdgeListToNode=function(o){var i=[],d=this;return d.edges.forEach(function(s){if(s.target==o){if(s.source!=d)throw"Incorrect edge source!";i.push(s)}}),i},a.prototype.getEdgesBetween=function(o){var i=[],d=this;return d.edges.forEach(function(s){if(!(s.source==d||s.target==d))throw"Incorrect edge source and/or target";(s.target==o||s.source==o)&&i.push(s)}),i},a.prototype.getNeighborsList=function(){var o=new Set,i=this;return i.edges.forEach(function(d){if(d.source==i)o.add(d.target);else{if(d.target!=i)throw"Incorrect incidency!";o.add(d.source)}}),o},a.prototype.withChildren=function(){var o=new Set,i,d;if(o.add(this),this.child!=null)for(var s=this.child.getNodes(),c=0;ci?(this.rect.x-=(this.labelWidth-i)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(i+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(d+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>d?(this.rect.y-=(this.labelHeight-d)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(d+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(o){var i=this.rect.x;i>t.WORLD_BOUNDARY?i=t.WORLD_BOUNDARY:i<-t.WORLD_BOUNDARY&&(i=-t.WORLD_BOUNDARY);var d=this.rect.y;d>t.WORLD_BOUNDARY?d=t.WORLD_BOUNDARY:d<-t.WORLD_BOUNDARY&&(d=-t.WORLD_BOUNDARY);var s=new h(i,d),c=o.inverseTransformPoint(s);this.setLocation(c.x,c.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=a}),(function(C,M,N){var f=N(0);function r(){}for(var n in f)r[n]=f[n];r.MAX_ITERATIONS=2500,r.DEFAULT_EDGE_LENGTH=50,r.DEFAULT_SPRING_STRENGTH=.45,r.DEFAULT_REPULSION_STRENGTH=4500,r.DEFAULT_GRAVITY_STRENGTH=.4,r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,r.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,r.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,r.COOLING_ADAPTATION_FACTOR=.33,r.ADAPTATION_LOWER_NODE_LIMIT=1e3,r.ADAPTATION_UPPER_NODE_LIMIT=5e3,r.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,r.MAX_NODE_DISPLACEMENT=r.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,r.MIN_REPULSION_DIST=r.DEFAULT_EDGE_LENGTH/10,r.CONVERGENCE_CHECK_PERIOD=100,r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,r.MIN_EDGE_LENGTH=1,r.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=r}),(function(C,M,N){function f(r,n){r==null&&n==null?(this.x=0,this.y=0):(this.x=r,this.y=n)}f.prototype.getX=function(){return this.x},f.prototype.getY=function(){return this.y},f.prototype.setX=function(r){this.x=r},f.prototype.setY=function(r){this.y=r},f.prototype.getDifference=function(r){return new DimensionD(this.x-r.x,this.y-r.y)},f.prototype.getCopy=function(){return new f(this.x,this.y)},f.prototype.translate=function(r){return this.x+=r.width,this.y+=r.height,this},C.exports=f}),(function(C,M,N){var f=N(2),r=N(10),n=N(0),t=N(7),e=N(3),h=N(1),a=N(13),p=N(12),o=N(11);function i(s,c,g){f.call(this,g),this.estimatedSize=r.MIN_VALUE,this.margin=n.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=s,c!=null&&c instanceof t?this.graphManager=c:c!=null&&c instanceof Layout&&(this.graphManager=c.graphManager)}for(var d in i.prototype=Object.create(f.prototype),f)i[d]=f[d];i.prototype.getNodes=function(){return this.nodes},i.prototype.getEdges=function(){return this.edges},i.prototype.getGraphManager=function(){return this.graphManager},i.prototype.getParent=function(){return this.parent},i.prototype.getLeft=function(){return this.left},i.prototype.getRight=function(){return this.right},i.prototype.getTop=function(){return this.top},i.prototype.getBottom=function(){return this.bottom},i.prototype.isConnected=function(){return this.isConnected},i.prototype.add=function(s,c,g){if(c==null&&g==null){var v=s;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var T=s;if(!(this.getNodes().indexOf(c)>-1&&this.getNodes().indexOf(g)>-1))throw"Source or target not in graph!";if(!(c.owner==g.owner&&c.owner==this))throw"Both owners must be this graph!";return c.owner==g.owner?(T.source=c,T.target=g,T.isInterGraph=!1,this.getEdges().push(T),c.edges.push(T),g!=c&&g.edges.push(T),T):null}},i.prototype.remove=function(s){var c=s;if(s instanceof e){if(c==null)throw"Node is null!";if(!(c.owner!=null&&c.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var g=c.edges.slice(),v,T=g.length,L=0;L-1&&Y>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(S,1),v.target!=v.source&&v.target.edges.splice(Y,1);var R=v.source.owner.getEdges().indexOf(v);if(R==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(R,1)}},i.prototype.updateLeftTop=function(){for(var s=r.MAX_VALUE,c=r.MAX_VALUE,g,v,T,L=this.getNodes(),R=L.length,S=0;Sg&&(s=g),c>v&&(c=v)}return s==r.MAX_VALUE?null:(T=L[0].getParent().paddingLeft==null?this.margin:L[0].getParent().paddingLeft,this.left=c-T,this.top=s-T,new p(this.left,this.top))},i.prototype.updateBounds=function(s){for(var c=r.MAX_VALUE,g=-r.MAX_VALUE,v=r.MAX_VALUE,T=-r.MAX_VALUE,L,R,S,Y,$,Z=this.nodes,D=Z.length,J=0;JL&&(c=L),gS&&(v=S),TL&&(c=L),gS&&(v=S),T=this.nodes.length){var Y=0;g.forEach(function($){$.owner==s&&Y++}),Y==this.nodes.length&&(this.isConnected=!0)}},C.exports=i}),(function(C,M,N){var f,r=N(1);function n(t){f=N(6),this.layout=t,this.graphs=[],this.edges=[]}n.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),h=this.add(t,e);return this.setRootGraph(h),this.rootGraph},n.prototype.add=function(t,e,h,a,p){if(h==null&&a==null&&p==null){if(t==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),t.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return t.parent=e,e.child=t,t}else{p=h,a=e,h=t;var o=a.getOwner(),i=p.getOwner();if(!(o!=null&&o.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(i!=null&&i.getGraphManager()==this))throw"Target not in this graph mgr!";if(o==i)return h.isInterGraph=!1,o.add(h,a,p);if(h.isInterGraph=!0,h.source=a,h.target=p,this.edges.indexOf(h)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(h),!(h.source!=null&&h.target!=null))throw"Edge source and/or target is null!";if(!(h.source.edges.indexOf(h)==-1&&h.target.edges.indexOf(h)==-1))throw"Edge already in source and/or target incidency list!";return h.source.edges.push(h),h.target.edges.push(h),h}},n.prototype.remove=function(t){if(t instanceof f){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var h=[];h=h.concat(e.getEdges());for(var a,p=h.length,o=0;o=t.getRight()?e[0]+=Math.min(t.getX()-n.getX(),n.getRight()-t.getRight()):t.getX()<=n.getX()&&t.getRight()>=n.getRight()&&(e[0]+=Math.min(n.getX()-t.getX(),t.getRight()-n.getRight())),n.getY()<=t.getY()&&n.getBottom()>=t.getBottom()?e[1]+=Math.min(t.getY()-n.getY(),n.getBottom()-t.getBottom()):t.getY()<=n.getY()&&t.getBottom()>=n.getBottom()&&(e[1]+=Math.min(n.getY()-t.getY(),t.getBottom()-n.getBottom()));var p=Math.abs((t.getCenterY()-n.getCenterY())/(t.getCenterX()-n.getCenterX()));t.getCenterY()===n.getCenterY()&&t.getCenterX()===n.getCenterX()&&(p=1);var o=p*e[0],i=e[1]/p;e[0]o)return e[0]=h,e[1]=d,e[2]=p,e[3]=Z,!1;if(ap)return e[0]=i,e[1]=a,e[2]=Y,e[3]=o,!1;if(hp?(e[0]=c,e[1]=g,E=!0):(e[0]=s,e[1]=d,E=!0):y===A&&(h>p?(e[0]=i,e[1]=d,E=!0):(e[0]=v,e[1]=g,E=!0)),-m===A?p>h?(e[2]=$,e[3]=Z,u=!0):(e[2]=Y,e[3]=S,u=!0):m===A&&(p>h?(e[2]=R,e[3]=S,u=!0):(e[2]=D,e[3]=Z,u=!0)),E&&u)return!1;if(h>p?a>o?(w=this.getCardinalDirection(y,A,4),b=this.getCardinalDirection(m,A,2)):(w=this.getCardinalDirection(-y,A,3),b=this.getCardinalDirection(-m,A,1)):a>o?(w=this.getCardinalDirection(-y,A,1),b=this.getCardinalDirection(-m,A,3)):(w=this.getCardinalDirection(y,A,2),b=this.getCardinalDirection(m,A,4)),!E)switch(w){case 1:F=d,G=h+-L/A,e[0]=G,e[1]=F;break;case 2:G=v,F=a+T*A,e[0]=G,e[1]=F;break;case 3:F=g,G=h+L/A,e[0]=G,e[1]=F;break;case 4:G=c,F=a+-T*A,e[0]=G,e[1]=F;break}if(!u)switch(b){case 1:V=S,k=p+-l/A,e[2]=k,e[3]=V;break;case 2:k=D,V=o+J*A,e[2]=k,e[3]=V;break;case 3:V=Z,k=p+l/A,e[2]=k,e[3]=V;break;case 4:k=$,V=o+-J*A,e[2]=k,e[3]=V;break}}return!1},r.getCardinalDirection=function(n,t,e){return n>t?e:1+e%4},r.getIntersection=function(n,t,e,h){if(h==null)return this.getIntersection2(n,t,e);var a=n.x,p=n.y,o=t.x,i=t.y,d=e.x,s=e.y,c=h.x,g=h.y,v=void 0,T=void 0,L=void 0,R=void 0,S=void 0,Y=void 0,$=void 0,Z=void 0,D=void 0;return L=i-p,S=a-o,$=o*p-a*i,R=g-s,Y=d-c,Z=c*s-d*g,D=L*Y-R*S,D===0?null:(v=(S*Z-Y*$)/D,T=(R*$-L*Z)/D,new f(v,T))},r.angleOfVector=function(n,t,e,h){var a=void 0;return n===e?a=h=0){var c=(-d+Math.sqrt(d*d-4*i*s))/(2*i),g=(-d-Math.sqrt(d*d-4*i*s))/(2*i);return c>=0&&c<=1?[c]:g>=0&&g<=1?[g]:null}else return null},r.HALF_PI=.5*Math.PI,r.ONE_AND_HALF_PI=1.5*Math.PI,r.TWO_PI=2*Math.PI,r.THREE_PI=3*Math.PI,C.exports=r}),(function(C,M,N){function f(){}f.sign=function(r){return r>0?1:r<0?-1:0},f.floor=function(r){return r<0?Math.ceil(r):Math.floor(r)},f.ceil=function(r){return r<0?Math.floor(r):Math.ceil(r)},C.exports=f}),(function(C,M,N){function f(){}f.MAX_VALUE=2147483647,f.MIN_VALUE=-2147483648,C.exports=f}),(function(C,M,N){var f=(function(){function h(a,p){for(var o=0;o0&&s;){for(L.push(S[0]);L.length>0&&s;){var Y=L[0];L.splice(0,1),T.add(Y);for(var $=Y.getEdges(),v=0;v<$.length;v++){var Z=$[v].getOtherEnd(Y);if(R.get(Y)!=Z)if(!T.has(Z))L.push(Z),R.set(Z,Y);else{s=!1;break}}}if(!s)d=[];else{var D=[].concat(f(T));d.push(D);for(var v=0;v-1&&S.splice(l,1)}T=new Set,R=new Map}}return d},i.prototype.createDummyNodesForBendpoints=function(d){for(var s=[],c=d.source,g=this.graphManager.calcLowestCommonAncestor(d.source,d.target),v=0;v0){for(var g=this.edgeToDummyNodes.get(c),v=0;v=0&&s.splice(Z,1),R.getNeighborsList().forEach(function(l){if(c.indexOf(l)<0){var E=g.get(l)-1;E==1&&Y.push(l),g.set(l,E)}})}c=c.concat(Y),(s.length==1||s.length==2)&&(v=!0,T=s[0])}return T},i.prototype.setGraphManager=function(d){this.graphManager=d},C.exports=i}),(function(C,M,N){function f(){}f.seed=1,f.x=0,f.nextDouble=function(){return f.x=Math.sin(f.seed++)*1e4,f.x-Math.floor(f.x)},C.exports=f}),(function(C,M,N){var f=N(5);function r(n,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(n){this.lworldOrgX=n},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(n){this.lworldOrgY=n},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(n){this.lworldExtX=n},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(n){this.lworldExtY=n},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(n){this.ldeviceOrgX=n},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(n){this.ldeviceOrgY=n},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(n){this.ldeviceExtX=n},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(n){this.ldeviceExtY=n},r.prototype.transformX=function(n){var t=0,e=this.lworldExtX;return e!=0&&(t=this.ldeviceOrgX+(n-this.lworldOrgX)*this.ldeviceExtX/e),t},r.prototype.transformY=function(n){var t=0,e=this.lworldExtY;return e!=0&&(t=this.ldeviceOrgY+(n-this.lworldOrgY)*this.ldeviceExtY/e),t},r.prototype.inverseTransformX=function(n){var t=0,e=this.ldeviceExtX;return e!=0&&(t=this.lworldOrgX+(n-this.ldeviceOrgX)*this.lworldExtX/e),t},r.prototype.inverseTransformY=function(n){var t=0,e=this.ldeviceExtY;return e!=0&&(t=this.lworldOrgY+(n-this.ldeviceOrgY)*this.lworldExtY/e),t},r.prototype.inverseTransformPoint=function(n){return new f(this.inverseTransformX(n.x),this.inverseTransformY(n.y))},C.exports=r}),(function(C,M,N){function f(o){if(Array.isArray(o)){for(var i=0,d=Array(o.length);in.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(o-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(o>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(o-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var o=this.getAllEdges(),i,d=0;d0&&arguments[0]!==void 0?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d,s,c,g,v=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&o&&this.updateGrid(),T=new Set,d=0;dL||T>L)&&(o.gravitationForceX=-this.gravityConstant*c,o.gravitationForceY=-this.gravityConstant*g)):(L=i.getEstimatedSize()*this.compoundGravityRangeFactor,(v>L||T>L)&&(o.gravitationForceX=-this.gravityConstant*c*this.compoundGravityConstant,o.gravitationForceY=-this.gravityConstant*g*this.compoundGravityConstant))},a.prototype.isConverged=function(){var o,i=!1;return this.totalIterations>this.maxIterations/3&&(i=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),o=this.totalDisplacement=v.length||L>=v[0].length)){for(var R=0;Re}}]),t})()}),(function(C,M,N){function f(){}f.svd=function(r){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=r.length,this.n=r[0].length;var n=Math.min(this.m,this.n);this.s=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(Math.min(this.m+1,this.n)),this.U=(function(Tt){return(function Nt(Mt){if(Mt.length==0)return 0;for(var Pt=[],Xt=0;Xt0;)Nt.push(0);return Nt})(this.n),e=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(this.m),h=!0,a=!0,p=Math.min(this.m-1,this.n),o=Math.max(0,Math.min(this.n-2,this.m)),i=0;i=0;A--)if(this.s[A]!==0){for(var w=A+1;w=0;H--){if((function(Tt,Nt){return Tt&&Nt})(H0;){var W=void 0,pt=void 0;for(W=u-2;W>=-1&&W!==-1;W--)if(Math.abs(t[W])<=Lt+at*(Math.abs(this.s[W])+Math.abs(this.s[W+1]))){t[W]=0;break}if(W===u-2)pt=4;else{var mt=void 0;for(mt=u-1;mt>=W&&mt!==W;mt--){var Bt=(mt===u?0:Math.abs(t[mt]))+(mt===W+1?0:Math.abs(t[mt-1]));if(Math.abs(this.s[mt])<=Lt+at*Bt){this.s[mt]=0;break}}mt===W?pt=3:mt===u-1?pt=1:(pt=2,W=mt)}switch(W++,pt){case 1:var Yt=t[u-2];t[u-2]=0;for(var _t=u-2;_t>=W;_t--){var xt=f.hypot(this.s[_t],Yt),kt=this.s[_t]/xt,Ut=Yt/xt;if(this.s[_t]=xt,_t!==W&&(Yt=-Ut*t[_t-1],t[_t-1]=kt*t[_t-1]),a)for(var Rt=0;Rt=this.s[W+1]);){var Ot=this.s[W];if(this.s[W]=this.s[W+1],this.s[W+1]=Ot,a&&WMath.abs(n)?(t=n/r,t=Math.abs(r)*Math.sqrt(1+t*t)):n==0?t=0:(t=r/n,t=Math.abs(n)*Math.sqrt(1+t*t)),t},C.exports=f}),(function(C,M,N){var f=(function(){function n(t,e){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;r(this,n),this.sequence1=t,this.sequence2=e,this.match_score=h,this.mismatch_penalty=a,this.gap_penalty=p,this.iMax=t.length+1,this.jMax=e.length+1,this.grid=Array(this.iMax);for(var o=0;o=0;e--){var h=this.listeners[e];h.event===n&&h.callback===t&&this.listeners.splice(e,1)}},r.emit=function(n,t){for(var e=0;e{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M(Le()):typeof define=="function"&&define.amd?define(["layout-base"],M):typeof _=="object"?_.coseBase=M(Le()):C.coseBase=M(C.layoutBase)})(_,function(C){return(()=>{var M={45:((r,n,t)=>{var e={};e.layoutBase=t(551),e.CoSEConstants=t(806),e.CoSEEdge=t(767),e.CoSEGraph=t(880),e.CoSEGraphManager=t(578),e.CoSELayout=t(765),e.CoSENode=t(991),e.ConstraintHandler=t(902),r.exports=e}),806:((r,n,t)=>{var e=t(551).FDLayoutConstants;function h(){}for(var a in e)h[a]=e[a];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,r.exports=h}),767:((r,n,t)=>{var e=t(551).FDLayoutEdge;function h(p,o,i){e.call(this,p,o,i)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),880:((r,n,t)=>{var e=t(551).LGraph;function h(p,o,i){e.call(this,p,o,i)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),578:((r,n,t)=>{var e=t(551).LGraphManager;function h(p){e.call(this,p)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),765:((r,n,t)=>{var e=t(551).FDLayout,h=t(578),a=t(880),p=t(991),o=t(767),i=t(806),d=t(902),s=t(551).FDLayoutConstants,c=t(551).LayoutConstants,g=t(551).Point,v=t(551).PointD,T=t(551).DimensionD,L=t(551).Layout,R=t(551).Integer,S=t(551).IGeometry,Y=t(551).LGraph,$=t(551).Transform,Z=t(551).LinkedList;function D(){e.call(this),this.toBeTiled={},this.constraints={}}for(var J in D.prototype=Object.create(e.prototype),e)D[J]=e[J];D.prototype.newGraphManager=function(){var l=new h(this);return this.graphManager=l,l},D.prototype.newGraph=function(l){return new a(null,this.graphManager,l)},D.prototype.newNode=function(l){return new p(this.graphManager,l)},D.prototype.newEdge=function(l){return new o(null,null,l)},D.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(i.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=s.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=s.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=s.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){e.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/s.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){return c.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(i.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return l.has(y)});this.graphManager.setAllNodesToApplyGravitation(E)}}else{var u=this.getFlatForest();if(u.length>0)this.positionNodesRadially(u);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(A){return l.has(A)});this.graphManager.setAllNodesToApplyGravitation(E),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(d.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),i.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%s.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(m){return l.has(m)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),i.PURE_INCREMENTAL?this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),i.PURE_INCREMENTAL?this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,y=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,y),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var l=this.graphManager.getAllNodes(),E={},u=0;u0&&this.updateDisplacements();for(var u=0;u0&&(y.fixedNodeWeight=A)}}if(this.constraints.relativePlacementConstraint){var w=new Map,b=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){l.fixedNodesOnHorizontal.add(O),l.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var G=this.constraints.alignmentConstraint.vertical,u=0;u=2*O.length/3;U--)z=Math.floor(Math.random()*(U+1)),et=O[U],O[U]=O[z],O[z]=et;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var z=w.has(O.left)?w.get(O.left):O.left,et=w.has(O.right)?w.get(O.right):O.right;l.nodesInRelativeHorizontal.includes(z)||(l.nodesInRelativeHorizontal.push(z),l.nodeToRelativeConstraintMapHorizontal.set(z,[]),l.dummyToNodeForVerticalAlignment.has(z)?l.nodeToTempPositionMapHorizontal.set(z,l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(z)[0]).getCenterX()):l.nodeToTempPositionMapHorizontal.set(z,l.idToNodeMap.get(z).getCenterX())),l.nodesInRelativeHorizontal.includes(et)||(l.nodesInRelativeHorizontal.push(et),l.nodeToRelativeConstraintMapHorizontal.set(et,[]),l.dummyToNodeForVerticalAlignment.has(et)?l.nodeToTempPositionMapHorizontal.set(et,l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(et)[0]).getCenterX()):l.nodeToTempPositionMapHorizontal.set(et,l.idToNodeMap.get(et).getCenterX())),l.nodeToRelativeConstraintMapHorizontal.get(z).push({right:et,gap:O.gap}),l.nodeToRelativeConstraintMapHorizontal.get(et).push({left:z,gap:O.gap})}else{var U=b.has(O.top)?b.get(O.top):O.top,B=b.has(O.bottom)?b.get(O.bottom):O.bottom;l.nodesInRelativeVertical.includes(U)||(l.nodesInRelativeVertical.push(U),l.nodeToRelativeConstraintMapVertical.set(U,[]),l.dummyToNodeForHorizontalAlignment.has(U)?l.nodeToTempPositionMapVertical.set(U,l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(U)[0]).getCenterY()):l.nodeToTempPositionMapVertical.set(U,l.idToNodeMap.get(U).getCenterY())),l.nodesInRelativeVertical.includes(B)||(l.nodesInRelativeVertical.push(B),l.nodeToRelativeConstraintMapVertical.set(B,[]),l.dummyToNodeForHorizontalAlignment.has(B)?l.nodeToTempPositionMapVertical.set(B,l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(B)[0]).getCenterY()):l.nodeToTempPositionMapVertical.set(B,l.idToNodeMap.get(B).getCenterY())),l.nodeToRelativeConstraintMapVertical.get(U).push({bottom:B,gap:O.gap}),l.nodeToRelativeConstraintMapVertical.get(B).push({top:U,gap:O.gap})}});else{var k=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var z=w.has(O.left)?w.get(O.left):O.left,et=w.has(O.right)?w.get(O.right):O.right;k.has(z)?k.get(z).push(et):k.set(z,[et]),k.has(et)?k.get(et).push(z):k.set(et,[z])}else{var U=b.has(O.top)?b.get(O.top):O.top,B=b.has(O.bottom)?b.get(O.bottom):O.bottom;V.has(U)?V.get(U).push(B):V.set(U,[B]),V.has(B)?V.get(B).push(U):V.set(B,[U])}});var K=function(O,z){var et=[],U=[],B=new Z,lt=new Set,at=0;return O.forEach(function(Lt,W){if(!lt.has(W)){et[at]=[],U[at]=!1;var pt=W;for(B.push(pt),lt.add(pt),et[at].push(pt);B.length!=0;)pt=B.shift(),z.has(pt)&&(U[at]=!0),O.get(pt).forEach(function(mt){lt.has(mt)||(B.push(mt),lt.add(mt),et[at].push(mt))});at++}}),{components:et,isFixed:U}},H=K(k,l.fixedNodesOnHorizontal);this.componentsOnHorizontal=H.components,this.fixedComponentsOnHorizontal=H.isFixed;var X=K(V,l.fixedNodesOnVertical);this.componentsOnVertical=X.components,this.fixedComponentsOnVertical=X.isFixed}}},D.prototype.updateDisplacements=function(){var l=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(X){var O=l.idToNodeMap.get(X.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,u=0;u1){var b;for(b=0;by&&(y=Math.floor(w.y)),A=Math.floor(w.x+i.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(c.WORLD_CENTER_X-w.x/2,c.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(l,E,u){var y=Math.max(this.maxDiagonalInTree(l),i.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(E,null,0,359,0,y);var m=Y.calculateBounds(l),A=new $;A.setDeviceOrgX(m.getMinX()),A.setDeviceOrgY(m.getMinY()),A.setWorldOrgX(u.x),A.setWorldOrgY(u.y);for(var w=0;w1;){var z=O[0];O.splice(0,1);var et=k.indexOf(z);et>=0&&k.splice(et,1),H--,V--}X=E==null?0:(k.indexOf(O[0])+1)%H;for(var U=Math.abs(y-u)/V,B=X;K!=V;B=++B%H){var lt=k[B].getOtherEnd(l);if(lt!=E){var at=(u+K*U)%360,Lt=(at+U)%360;D.branchRadialLayout(lt,l,at,Lt,m+A,A),K++}}},D.maxDiagonalInTree=function(l){for(var E=R.MIN_VALUE,u=0;uE&&(E=y)}return E},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var l=this,E={};this.memberGroups={},this.idToDummyNode={};for(var u=[],y=this.graphManager.getAllNodes(),m=0;m1){var F="DummyCompound_"+G;l.memberGroups[F]=E[G];var k=E[G][0].getParent(),V=new p(l.graphManager);V.id=F,V.paddingLeft=k.paddingLeft||0,V.paddingRight=k.paddingRight||0,V.paddingBottom=k.paddingBottom||0,V.paddingTop=k.paddingTop||0,l.idToDummyNode[F]=V;var K=l.getGraphManager().add(l.newGraph(),V),H=k.getChild();H.add(V);for(var X=0;Xm?(y.rect.x-=(y.labelWidth-m)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-m)/2):y.labelPosHorizontal=="right"&&y.setWidth(m+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(A+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>A?(y.rect.y-=(y.labelHeight-A)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-A)/2):y.labelPosVertical=="bottom"&&y.setHeight(A+y.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var l=this.compoundOrder.length-1;l>=0;l--){var E=this.compoundOrder[l],u=E.id,y=E.paddingLeft,m=E.paddingTop,A=E.labelMarginLeft,w=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[u],E.rect.x,E.rect.y,y,m,A,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var l=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(u){var y=l.idToDummyNode[u],m=y.paddingLeft,A=y.paddingTop,w=y.labelMarginLeft,b=y.labelMarginTop;l.adjustLocations(E[u],y.rect.x,y.rect.y,m,A,w,b)})},D.prototype.getToBeTiled=function(l){var E=l.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var u=l.getChild();if(u==null)return this.toBeTiled[E]=!1,!1;for(var y=u.getNodes(),m=0;m0)return this.toBeTiled[E]=!1,!1;if(A.getChild()==null){this.toBeTiled[A.id]=!1;continue}if(!this.getToBeTiled(A))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},D.prototype.getNodeDegree=function(l){l.id;for(var E=l.getEdges(),u=0,y=0;yk&&(k=K.rect.height)}u+=k+l.verticalPadding}},D.prototype.tileCompoundMembers=function(l,E){var u=this;this.tiledMemberPack=[],Object.keys(l).forEach(function(y){var m=E[y];if(u.tiledMemberPack[y]=u.tileNodes(l[y],m.paddingLeft+m.paddingRight),m.rect.width=u.tiledMemberPack[y].width,m.rect.height=u.tiledMemberPack[y].height,m.setCenter(u.tiledMemberPack[y].centerX,u.tiledMemberPack[y].centerY),m.labelMarginLeft=0,m.labelMarginTop=0,i.NODE_DIMENSIONS_INCLUDE_LABELS){var A=m.rect.width,w=m.rect.height;m.labelWidth&&(m.labelPosHorizontal=="left"?(m.rect.x-=m.labelWidth,m.setWidth(A+m.labelWidth),m.labelMarginLeft=m.labelWidth):m.labelPosHorizontal=="center"&&m.labelWidth>A?(m.rect.x-=(m.labelWidth-A)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-A)/2):m.labelPosHorizontal=="right"&&m.setWidth(A+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(w+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>w?(m.rect.y-=(m.labelHeight-w)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-w)/2):m.labelPosVertical=="bottom"&&m.setHeight(w+m.labelHeight))}})},D.prototype.tileNodes=function(l,E){var u=this.tileNodesByFavoringDim(l,E,!0),y=this.tileNodesByFavoringDim(l,E,!1),m=this.getOrgRatio(u);return this.getOrgRatio(y)b&&(b=X.getWidth())});var G=A/m,F=w/m,k=(u-y)**2+4*(G+y)*(F+u)*m,V=(y-u+Math.sqrt(k))/(2*(G+y)),K;E?(K=Math.ceil(V),K==V&&K++):K=Math.floor(V);var H=K*(G+y)-y;return b>H&&(H=b),H+=y*2,H},D.prototype.tileNodesByFavoringDim=function(l,E,u){var y=i.TILING_PADDING_VERTICAL,m=i.TILING_PADDING_HORIZONTAL,A=i.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:y,horizontalPadding:m,centerX:0,centerY:0};A&&(w.idealRowWidth=this.calcIdealRowWidth(l,u));var b=function(X){return X.rect.width*X.rect.height},G=function(X,O){return b(O)-b(X)};l.sort(function(X,O){var z=G;return w.idealRowWidth?(z=A,z(X.id,O.id)):z(X,O)});for(var F=0,k=0,V=0;V0&&(A+=l.horizontalPadding),l.rowWidth[u]=A,l.width0&&(w+=l.verticalPadding);var b=0;w>l.rowHeight[u]&&(b=l.rowHeight[u],l.rowHeight[u]=w,b=l.rowHeight[u]-b),l.height+=b,l.rows[u].push(E)},D.prototype.getShortestRowIndex=function(l){for(var E=-1,u=Number.MAX_VALUE,y=0;yu&&(E=y,u=l.rowWidth[y]);return E},D.prototype.canAddHorizontal=function(l,E,u){if(l.idealRowWidth){var y=l.rows.length-1;return l.rowWidth[y]+E+l.horizontalPadding<=l.idealRowWidth}var m=this.getShortestRowIndex(l);if(m<0)return!0;var A=l.rowWidth[m];if(A+l.horizontalPadding+E<=l.width)return!0;var w=0;l.rowHeight[m]0&&(w=u+l.verticalPadding-l.rowHeight[m]);var b=l.width-A>=E+l.horizontalPadding?(l.height+w)/(A+E+l.horizontalPadding):(l.height+w)/l.width;w=u+l.verticalPadding;var G=l.widthA&&E!=u){y.splice(-1,1),l.rows[u].push(m),l.rowWidth[E]=l.rowWidth[E]-A,l.rowWidth[u]=l.rowWidth[u]+A,l.width=l.rowWidth[instance.getLongestRowIndex(l)];for(var w=Number.MIN_VALUE,b=0;bw&&(w=y[b].height);E>0&&(w+=l.verticalPadding);var G=l.rowHeight[E]+l.rowHeight[u];l.rowHeight[E]=w,l.rowHeight[u]0)for(var F=m;F<=A;F++)G[0]+=this.grid[F][w-1].length+this.grid[F][w].length-1;if(A0)for(var F=w;F<=b;F++)G[3]+=this.grid[m-1][F].length+this.grid[m][F].length-1;for(var k=R.MAX_VALUE,V,K,H=0;H{var e=t(551).FDLayoutNode,h=t(551).IMath;function a(o,i,d,s){e.call(this,o,i,d,s)}for(var p in a.prototype=Object.create(e.prototype),e)a[p]=e[p];a.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementX=o.coolingFactor*o.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(o,i){for(var d=this.getChild().getNodes(),s,c=0;c{function e(d){if(Array.isArray(d)){for(var s=0,c=Array(d.length);s0){var ut=0;Q.forEach(function(rt){P=="horizontal"?(it.set(rt,g.has(rt)?v[g.get(rt)]:j.get(rt)),ut+=it.get(rt)):(it.set(rt,g.has(rt)?T[g.get(rt)]:j.get(rt)),ut+=it.get(rt))}),ut/=Q.length,dt.forEach(function(rt){q.has(rt)||it.set(rt,ut)})}else{var At=0;dt.forEach(function(rt){P=="horizontal"?At+=g.has(rt)?v[g.get(rt)]:j.get(rt):At+=g.has(rt)?T[g.get(rt)]:j.get(rt)}),At/=dt.length,dt.forEach(function(rt){it.set(rt,At)})}});for(var wt=function(){var dt=It.shift();I.get(dt).forEach(function(Q){if(it.get(Q.id)rt&&(rt=Pt),Xtbt&&(bt=Xt)}}catch($t){Dt=!0,Ft=$t}finally{try{!Ot&&Tt.return&&Tt.return()}finally{if(Dt)throw Ft}}var ne=(ut+rt)/2-(At+bt)/2,ee=!0,qt=!1,Zt=void 0;try{for(var jt=dt[Symbol.iterator](),Jt;!(ee=(Jt=jt.next()).done);ee=!0){var re=Jt.value;it.set(re,it.get(re)+ne)}}catch($t){qt=!0,Zt=$t}finally{try{!ee&&jt.return&&jt.return()}finally{if(qt)throw Zt}}})}return it},J=function(I){var P=0,q=0,j=0,tt=0;if(I.forEach(function(ft){ft.left?v[g.get(ft.left)]-v[g.get(ft.right)]>=0?P++:q++:T[g.get(ft.top)]-T[g.get(ft.bottom)]>=0?j++:tt++}),P>q&&j>tt)for(var Et=0;Etq)for(var yt=0;yttt)for(var it=0;it1)s.fixedNodeConstraint.forEach(function(I,P){y[P]=[I.position.x,I.position.y],m[P]=[v[g.get(I.nodeId)],T[g.get(I.nodeId)]]}),A=!0;else if(s.alignmentConstraint)(function(){var I=0;if(s.alignmentConstraint.vertical){for(var P=s.alignmentConstraint.vertical,q=function(it){var ft=new Set;P[it].forEach(function(vt){ft.add(vt)});var It=new Set([].concat(e(ft)).filter(function(vt){return b.has(vt)})),wt=void 0;wt=It.size>0?v[g.get(It.values().next().value)]:Z(ft).x,P[it].forEach(function(vt){y[I]=[wt,T[g.get(vt)]],m[I]=[v[g.get(vt)],T[g.get(vt)]],I++})},j=0;j0?v[g.get(It.values().next().value)]:Z(ft).y,tt[it].forEach(function(vt){y[I]=[v[g.get(vt)],wt],m[I]=[v[g.get(vt)],T[g.get(vt)]],I++})},yt=0;ytV&&(V=k[H].length,K=H);if(V0){var xt={x:0,y:0};s.fixedNodeConstraint.forEach(function(I,P){var q={x:v[g.get(I.nodeId)],y:T[g.get(I.nodeId)]},j=I.position,tt=$(j,q);xt.x+=tt.x,xt.y+=tt.y}),xt.x/=s.fixedNodeConstraint.length,xt.y/=s.fixedNodeConstraint.length,v.forEach(function(I,P){v[P]+=xt.x}),T.forEach(function(I,P){T[P]+=xt.y}),s.fixedNodeConstraint.forEach(function(I){v[g.get(I.nodeId)]=I.position.x,T[g.get(I.nodeId)]=I.position.y})}if(s.alignmentConstraint){if(s.alignmentConstraint.vertical)for(var kt=s.alignmentConstraint.vertical,Ut=function(I){var P=new Set;kt[I].forEach(function(tt){P.add(tt)});var q=new Set([].concat(e(P)).filter(function(tt){return b.has(tt)})),j=void 0;j=q.size>0?v[g.get(q.values().next().value)]:Z(P).x,P.forEach(function(tt){b.has(tt)||(v[g.get(tt)]=j)})},Rt=0;Rt0?T[g.get(q.values().next().value)]:Z(P).y,P.forEach(function(tt){b.has(tt)||(T[g.get(tt)]=j)})},st=0;st{r.exports=C})},N={};function f(r){var n=N[r];if(n!==void 0)return n.exports;var t=N[r]={exports:{}};return M[r](t,t.exports,f),t.exports}return f(45)})()})})),si=Ue(de(((_,x)=>{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M(we()):typeof define=="function"&&define.amd?define(["cose-base"],M):typeof _=="object"?_.cytoscapeFcose=M(we()):C.cytoscapeFcose=M(C.coseBase)})(_,function(C){return(()=>{var M={658:(r=>{r.exports=Object.assign==null?function(n){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(e){return n[e]=t[e]})}),n}:Object.assign.bind(Object)}),548:((r,n,t)=>{var e=(function(){function p(o,i){var d=[],s=!0,c=!1,g=void 0;try{for(var v=o[Symbol.iterator](),T;!(s=(T=v.next()).done)&&(d.push(T.value),!(i&&d.length===i));s=!0);}catch(L){c=!0,g=L}finally{try{!s&&v.return&&v.return()}finally{if(c)throw g}}return d}return function(o,i){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return p(o,i);throw TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=t(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(p){for(var o={},i=0;i0&&y.merge(w)});for(var m=0;m1){T=g[0],L=T.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length0&&d.set("dummy"+(d.size+1),Y),$},a.relocateComponent=function(p,o,i){if(!i.fixedNodeConstraint){var d=1/0,s=-1/0,c=1/0,g=-1/0;if(i.quality=="draft"){var v=!0,T=!1,L=void 0;try{for(var R=o.nodeIndexes[Symbol.iterator](),S;!(v=(S=R.next()).done);v=!0){var Y=S.value,$=e(Y,2),Z=$[0],D=$[1],J=i.cy.getElementById(Z);if(J){var l=J.boundingBox(),E=o.xCoords[D]-l.w/2,u=o.xCoords[D]+l.w/2,y=o.yCoords[D]-l.h/2,m=o.yCoords[D]+l.h/2;Es&&(s=u),yg&&(g=m)}}}catch(F){T=!0,L=F}finally{try{!v&&R.return&&R.return()}finally{if(T)throw L}}var A=p.x-(s+d)/2,w=p.y-(g+c)/2;o.xCoords=o.xCoords.map(function(F){return F+A}),o.yCoords=o.yCoords.map(function(F){return F+w})}else{Object.keys(o).forEach(function(F){var k=o[F],V=k.getRect().x,K=k.getRect().x+k.getRect().width,H=k.getRect().y,X=k.getRect().y+k.getRect().height;Vs&&(s=K),Hg&&(g=X)});var b=p.x-(s+d)/2,G=p.y-(g+c)/2;Object.keys(o).forEach(function(F){var k=o[F];k.setCenter(k.getCenterX()+b,k.getCenterY()+G)})}}},a.calcBoundingBox=function(p,o,i,d){for(var s=9007199254740991,c=-9007199254740991,g=9007199254740991,v=-9007199254740991,T=void 0,L=void 0,R=void 0,S=void 0,Y=p.descendants().not(":parent"),$=Y.length,Z=0;Z<$;Z++){var D=Y[Z];T=o[d.get(D.id())]-D.width()/2,L=o[d.get(D.id())]+D.width()/2,R=i[d.get(D.id())]-D.height()/2,S=i[d.get(D.id())]+D.height()/2,s>T&&(s=T),cR&&(g=R),v{var e=t(548),h=t(140).CoSELayout,a=t(140).CoSENode,p=t(140).layoutBase.PointD,o=t(140).layoutBase.DimensionD,i=t(140).layoutBase.LayoutConstants,d=t(140).layoutBase.FDLayoutConstants,s=t(140).CoSEConstants;r.exports={coseLayout:function(c,g){var v=c.cy,T=c.eles,L=T.nodes(),R=T.edges(),S=void 0,Y=void 0,$=void 0,Z={};c.randomize&&(S=g.nodeIndexes,Y=g.xCoords,$=g.yCoords);var D=function(w){return typeof w=="function"},J=function(w,b){return D(w)?w(b):w},l=e.calcParentsWithoutChildren(v,T),E=function w(b,G,F,k){for(var V=G.length,K=0;K0){var U=void 0;U=F.getGraphManager().add(F.newGraph(),O),w(U,X,F,k)}}},u=function(w,b,G){for(var F=0,k=0,V=0;V0?s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=F/k:D(c.idealEdgeLength)?s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=50:s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=c.idealEdgeLength,s.MIN_REPULSION_DIST=d.MIN_REPULSION_DIST=d.DEFAULT_EDGE_LENGTH/10,s.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH)},y=function(w,b){b.fixedNodeConstraint&&(w.constraints.fixedNodeConstraint=b.fixedNodeConstraint),b.alignmentConstraint&&(w.constraints.alignmentConstraint=b.alignmentConstraint),b.relativePlacementConstraint&&(w.constraints.relativePlacementConstraint=b.relativePlacementConstraint)};c.nestingFactor!=null&&(s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.nestingFactor),c.gravity!=null&&(s.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=c.gravity),c.numIter!=null&&(s.MAX_ITERATIONS=d.MAX_ITERATIONS=c.numIter),c.gravityRange!=null&&(s.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=c.gravityRange),c.gravityCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.gravityCompound),c.gravityRangeCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.gravityRangeCompound),c.initialEnergyOnIncremental!=null&&(s.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.initialEnergyOnIncremental),c.tilingCompareBy!=null&&(s.TILING_COMPARE_BY=c.tilingCompareBy),c.quality=="proof"?i.QUALITY=2:i.QUALITY=0,s.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=c.nodeDimensionsIncludeLabels,s.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!c.randomize,s.ANIMATE=d.ANIMATE=i.ANIMATE=c.animate,s.TILE=c.tile,s.TILING_PADDING_VERTICAL=typeof c.tilingPaddingVertical=="function"?c.tilingPaddingVertical.call():c.tilingPaddingVertical,s.TILING_PADDING_HORIZONTAL=typeof c.tilingPaddingHorizontal=="function"?c.tilingPaddingHorizontal.call():c.tilingPaddingHorizontal,s.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!0,s.PURE_INCREMENTAL=!c.randomize,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=c.uniformNodeDimensions,c.step=="transformed"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,s.ENFORCE_CONSTRAINTS=!1,s.APPLY_LAYOUT=!1),c.step=="enforced"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!0,s.APPLY_LAYOUT=!1),c.step=="cose"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!1,s.APPLY_LAYOUT=!0),c.step=="all"&&(c.randomize?s.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!0,s.APPLY_LAYOUT=!0),c.fixedNodeConstraint||c.alignmentConstraint||c.relativePlacementConstraint?s.TREE_REDUCTION_ON_INCREMENTAL=!1:s.TREE_REDUCTION_ON_INCREMENTAL=!0;var m=new h,A=m.newGraphManager();return E(A.addRoot(),e.getTopMostNodes(L),m,c),u(m,A,R),y(m,c),m.runLayout(),Z}}}),212:((r,n,t)=>{var e=(function(){function s(c,g){for(var v=0;v0)if(Z){var D=p.getTopMostNodes(g.eles.nodes());if(S=p.connectComponents(v,g.eles,D),S.forEach(function(U){var B=U.boundingBox();Y.push({x:B.x1+B.w/2,y:B.y1+B.h/2})}),g.randomize&&S.forEach(function(U){g.eles=U,L.push(o(g))}),g.quality=="default"||g.quality=="proof"){var J=v.collection();if(g.tile){var l=new Map,E=[],u=[],y=0,m={nodeIndexes:l,xCoords:E,yCoords:u},A=[];if(S.forEach(function(U,B){U.edges().length==0&&(U.nodes().forEach(function(lt,at){J.merge(U.nodes()[at]),lt.isParent()||(m.nodeIndexes.set(U.nodes()[at].id(),y++),m.xCoords.push(U.nodes()[0].position().x),m.yCoords.push(U.nodes()[0].position().y))}),A.push(B))}),J.length>1){var w=J.boundingBox();Y.push({x:w.x1+w.w/2,y:w.y1+w.h/2}),S.push(J),L.push(m);for(var b=A.length-1;b>=0;b--)S.splice(A[b],1),L.splice(A[b],1),Y.splice(A[b],1)}}S.forEach(function(U,B){g.eles=U,R.push(i(g,L[B])),p.relocateComponent(Y[B],R[B],g)})}else S.forEach(function(U,B){p.relocateComponent(Y[B],L[B],g)});var G=new Set;if(S.length>1){var F=[],k=T.filter(function(U){return U.css("display")=="none"});S.forEach(function(U,B){var lt=void 0;if(g.quality=="draft"&&(lt=L[B].nodeIndexes),U.nodes().not(k).length>0){var at={};at.edges=[],at.nodes=[];var Lt=void 0;U.nodes().not(k).forEach(function(W){if(g.quality=="draft")if(!W.isParent())Lt=lt.get(W.id()),at.nodes.push({x:L[B].xCoords[Lt]-W.boundingbox().w/2,y:L[B].yCoords[Lt]-W.boundingbox().h/2,width:W.boundingbox().w,height:W.boundingbox().h});else{var pt=p.calcBoundingBox(W,L[B].xCoords,L[B].yCoords,lt);at.nodes.push({x:pt.topLeftX,y:pt.topLeftY,width:pt.width,height:pt.height})}else R[B][W.id()]&&at.nodes.push({x:R[B][W.id()].getLeft(),y:R[B][W.id()].getTop(),width:R[B][W.id()].getWidth(),height:R[B][W.id()].getHeight()})}),U.edges().forEach(function(W){var pt=W.source(),mt=W.target();if(pt.css("display")!="none"&&mt.css("display")!="none")if(g.quality=="draft"){var Bt=lt.get(pt.id()),Yt=lt.get(mt.id()),_t=[],xt=[];if(pt.isParent()){var kt=p.calcBoundingBox(pt,L[B].xCoords,L[B].yCoords,lt);_t.push(kt.topLeftX+kt.width/2),_t.push(kt.topLeftY+kt.height/2)}else _t.push(L[B].xCoords[Bt]),_t.push(L[B].yCoords[Bt]);if(mt.isParent()){var Ut=p.calcBoundingBox(mt,L[B].xCoords,L[B].yCoords,lt);xt.push(Ut.topLeftX+Ut.width/2),xt.push(Ut.topLeftY+Ut.height/2)}else xt.push(L[B].xCoords[Yt]),xt.push(L[B].yCoords[Yt]);at.edges.push({startX:_t[0],startY:_t[1],endX:xt[0],endY:xt[1]})}else R[B][pt.id()]&&R[B][mt.id()]&&at.edges.push({startX:R[B][pt.id()].getCenterX(),startY:R[B][pt.id()].getCenterY(),endX:R[B][mt.id()].getCenterX(),endY:R[B][mt.id()].getCenterY()})}),at.nodes.length>0&&(F.push(at),G.add(B))}});var V=$.packComponents(F,g.randomize).shifts;if(g.quality=="draft")L.forEach(function(U,B){var lt=U.xCoords.map(function(Lt){return Lt+V[B].dx}),at=U.yCoords.map(function(Lt){return Lt+V[B].dy});U.xCoords=lt,U.yCoords=at});else{var K=0;G.forEach(function(U){Object.keys(R[U]).forEach(function(B){var lt=R[U][B];lt.setCenter(lt.getCenterX()+V[K].dx,lt.getCenterY()+V[K].dy)}),K++})}}}else{var H=g.eles.boundingBox();if(Y.push({x:H.x1+H.w/2,y:H.y1+H.h/2}),g.randomize){var X=o(g);L.push(X)}g.quality=="default"||g.quality=="proof"?(R.push(i(g,L[0])),p.relocateComponent(Y[0],R[0],g)):p.relocateComponent(Y[0],L[0],g)}var O=function(U,B){if(g.quality=="default"||g.quality=="proof"){typeof U=="number"&&(U=B);var lt=void 0,at=void 0,Lt=U.data("id");return R.forEach(function(pt){Lt in pt&&(lt={x:pt[Lt].getRect().getCenterX(),y:pt[Lt].getRect().getCenterY()},at=pt[Lt])}),g.nodeDimensionsIncludeLabels&&(at.labelWidth&&(at.labelPosHorizontal=="left"?lt.x+=at.labelWidth/2:at.labelPosHorizontal=="right"&&(lt.x-=at.labelWidth/2)),at.labelHeight&&(at.labelPosVertical=="top"?lt.y+=at.labelHeight/2:at.labelPosVertical=="bottom"&&(lt.y-=at.labelHeight/2))),lt??(lt={x:U.position("x"),y:U.position("y")}),{x:lt.x,y:lt.y}}else{var W=void 0;return L.forEach(function(pt){var mt=pt.nodeIndexes.get(U.id());mt!=null&&(W={x:pt.xCoords[mt],y:pt.yCoords[mt]})}),W??(W={x:U.position("x"),y:U.position("y")}),{x:W.x,y:W.y}}};if(g.quality=="default"||g.quality=="proof"||g.randomize){var z=p.calcParentsWithoutChildren(v,T),et=T.filter(function(U){return U.css("display")=="none"});g.eles=T.not(et),T.nodes().not(":parent").not(et).layoutPositions(c,g,O),z.length>0&&z.forEach(function(U){U.position(O(U))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),s})()}),657:((r,n,t)=>{var e=t(548),h=t(140).layoutBase.Matrix,a=t(140).layoutBase.SVD;r.exports={spectralLayout:function(p){var o=p.cy,i=p.eles,d=i.nodes(),s=i.nodes(":parent"),c=new Map,g=new Map,v=new Map,T=[],L=[],R=[],S=[],Y=[],$=[],Z=[],D=[],J=void 0,l=1e8,E=1e-9,u=p.piTol,y=p.samplingType,m=p.nodeSeparation,A=void 0,w=function(){for(var st=0,ot=0,ct=!1;ot=P;){j=I[P++];for(var It=T[j],wt=0;wtyt&&(yt=Y[ht],it=ht)}return it},G=function(st){var ot=void 0;if(st){ot=Math.floor(Math.random()*J);for(var ct=0;ct=1)break;yt=Et}for(var It=0;It=1)break;yt=Et}for(var vt=0;vt0&&(ct.isParent()?T[ot].push(v.get(ct.id())):T[ot].push(ct.id()))})});var lt=function(st){var ot=g.get(st),ct=void 0;c.get(st).forEach(function(I){ct=o.getElementById(I).isParent()?v.get(I):I,T[ot].push(ct),T[g.get(ct)].push(st)})},at=!0,Lt=!1,W=void 0;try{for(var pt=c.keys()[Symbol.iterator](),mt;!(at=(mt=pt.next()).done);at=!0){var Bt=mt.value;lt(Bt)}}catch(st){Lt=!0,W=st}finally{try{!at&&pt.return&&pt.return()}finally{if(Lt)throw W}}J=g.size;var Yt=void 0;if(J>2){A=J{var e=t(212),h=function(a){a&&a("layout","fcose",e)};typeof cytoscape<"u"&&h(cytoscape),r.exports=h}),140:(r=>{r.exports=C})},N={};function f(r){var n=N[r];if(n!==void 0)return n.exports;var t=N[r]={exports:{}};return M[r](t,t.exports,f),t.exports}return f(579)})()})}))(),1),Ie={L:"left",R:"right",T:"top",B:"bottom"},_e={L:gt(_=>`${_},${_/2} 0,${_} 0,0`,"L"),R:gt(_=>`0,${_/2} ${_},0 ${_},${_}`,"R"),T:gt(_=>`0,0 ${_},0 ${_/2},${_}`,"T"),B:gt(_=>`${_/2},0 ${_},${_} 0,${_}`,"B")},oe={L:gt((_,x)=>_-x+2,"L"),R:gt((_,x)=>_-2,"R"),T:gt((_,x)=>_-x+2,"T"),B:gt((_,x)=>_-2,"B")},hi=gt(function(_){return St(_)?_==="L"?"R":"L":_==="T"?"B":"T"},"getOppositeArchitectureDirection"),xe=gt(function(_){let x=_;return x==="L"||x==="R"||x==="T"||x==="B"},"isArchitectureDirection"),St=gt(function(_){let x=_;return x==="L"||x==="R"},"isArchitectureDirectionX"),Wt=gt(function(_){let x=_;return x==="T"||x==="B"},"isArchitectureDirectionY"),fe=gt(function(_,x){let C=St(_)&&Wt(x),M=Wt(_)&&St(x);return C||M},"isArchitectureDirectionXY"),li=gt(function(_){let x=_[0],C=_[1],M=St(x)&&Wt(C),N=Wt(x)&&St(C);return M||N},"isArchitecturePairXY"),di=gt(function(_){return _!=="LL"&&_!=="RR"&&_!=="TT"&&_!=="BB"},"isValidArchitectureDirectionPair"),pe=gt(function(_,x){let C=`${_}${x}`;return di(C)?C:void 0},"getArchitectureDirectionPair"),gi=gt(function([_,x],C){let M=C[0],N=C[1];return St(M)?Wt(N)?[_+(M==="L"?-1:1),x+(N==="T"?1:-1)]:[_+(M==="L"?-1:1),x]:St(N)?[_+(N==="L"?1:-1),x+(M==="T"?1:-1)]:[_,x+(M==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),ci=gt(function(_){return _==="LT"||_==="TL"?[1,1]:_==="BL"||_==="LB"?[1,-1]:_==="BR"||_==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),ui=gt(function(_,x){return fe(_,x)?"bend":St(_)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),fi=gt(function(_){return _.type==="service"},"isArchitectureService"),pi=gt(function(_){return _.type==="junction"},"isArchitectureJunction"),Me=gt(_=>_.data(),"edgeData"),Kt=gt(_=>_.data(),"nodeData"),vi=Ke.architecture,Oe=(te=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=Ve,this.getAccTitle=Qe,this.setDiagramTitle=qe,this.getDiagramTitle=We,this.getAccDescription=Ze,this.setAccDescription=ei,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},Je()}addService({id:x,icon:C,in:M,title:N,iconText:f}){if(this.registeredIds[x]!==void 0)throw Error(`The service id [${x}] is already in use by another ${this.registeredIds[x]}`);if(M!==void 0){if(x===M)throw Error(`The service [${x}] cannot be placed within itself`);if(this.registeredIds[M]===void 0)throw Error(`The service [${x}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[M]==="node")throw Error(`The service [${x}]'s parent is not a group`)}this.registeredIds[x]="node",this.nodes[x]={id:x,type:"service",icon:C,iconText:f,title:N,edges:[],in:M}}getServices(){return Object.values(this.nodes).filter(fi)}addJunction({id:x,in:C}){this.registeredIds[x]="node",this.nodes[x]={id:x,type:"junction",edges:[],in:C}}getJunctions(){return Object.values(this.nodes).filter(pi)}getNodes(){return Object.values(this.nodes)}getNode(x){return this.nodes[x]??null}addGroup({id:x,icon:C,in:M,title:N}){var f,r,n;if(((f=this.registeredIds)==null?void 0:f[x])!==void 0)throw Error(`The group id [${x}] is already in use by another ${this.registeredIds[x]}`);if(M!==void 0){if(x===M)throw Error(`The group [${x}] cannot be placed within itself`);if(((r=this.registeredIds)==null?void 0:r[M])===void 0)throw Error(`The group [${x}]'s parent does not exist. Please make sure the parent is created before this group`);if(((n=this.registeredIds)==null?void 0:n[M])==="node")throw Error(`The group [${x}]'s parent is not a group`)}this.registeredIds[x]="group",this.groups[x]={id:x,icon:C,title:N,in:M}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:x,rhsId:C,lhsDir:M,rhsDir:N,lhsInto:f,rhsInto:r,lhsGroup:n,rhsGroup:t,title:e}){if(!xe(M))throw Error(`Invalid direction given for left hand side of edge ${x}--${C}. Expected (L,R,T,B) got ${String(M)}`);if(!xe(N))throw Error(`Invalid direction given for right hand side of edge ${x}--${C}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[x]===void 0&&this.groups[x]===void 0)throw Error(`The left-hand id [${x}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[C]===void 0&&this.groups[C]===void 0)throw Error(`The right-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);let h=this.nodes[x].in,a=this.nodes[C].in;if(n&&h&&a&&h==a)throw Error(`The left-hand id [${x}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(t&&h&&a&&h==a)throw Error(`The right-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let p={lhsId:x,lhsDir:M,lhsInto:f,lhsGroup:n,rhsId:C,rhsDir:N,rhsInto:r,rhsGroup:t,title:e};this.edges.push(p),this.nodes[x]&&this.nodes[C]&&(this.nodes[x].edges.push(this.edges[this.edges.length-1]),this.nodes[C].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){let x={},C=Object.entries(this.nodes).reduce((t,[e,h])=>(t[e]=h.edges.reduce((a,p)=>{var d,s;let o=(d=this.getNode(p.lhsId))==null?void 0:d.in,i=(s=this.getNode(p.rhsId))==null?void 0:s.in;if(o&&i&&o!==i){let c=ui(p.lhsDir,p.rhsDir);c!=="bend"&&(x[o]??(x[o]={}),x[o][i]=c,x[i]??(x[i]={}),x[i][o]=c)}if(p.lhsId===e){let c=pe(p.lhsDir,p.rhsDir);c&&(a[c]=p.rhsId)}else{let c=pe(p.rhsDir,p.lhsDir);c&&(a[c]=p.lhsId)}return a},{}),t),{}),M=Object.keys(C)[0],N={[M]:1},f=Object.keys(C).reduce((t,e)=>e===M?t:{...t,[e]:1},{}),r=gt(t=>{let e={[t]:[0,0]},h=[t];for(;h.length>0;){let a=h.shift();if(a){N[a]=1,delete f[a];let p=C[a],[o,i]=e[a];Object.entries(p).forEach(([d,s])=>{N[s]||(e[s]=gi([o,i],d),h.push(s))})}}return e},"BFS"),n=[r(M)];for(;Object.keys(f).length>0;)n.push(r(Object.keys(f)[0]));this.dataStructures={adjList:C,spatialMaps:n,groupAlignments:x}}return this.dataStructures}setElementForId(x,C){this.elements[x]=C}getElementById(x){return this.elements[x]}getConfig(){return Be({...vi,...ti().architecture})}getConfigField(x){return this.getConfig()[x]}},gt(te,"ArchitectureDB"),te),mi=gt((_,x)=>{ni(_,x),_.groups.map(C=>x.addGroup(C)),_.services.map(C=>x.addService({...C,type:"service"})),_.junctions.map(C=>x.addJunction({...C,type:"junction"})),_.edges.map(C=>x.addEdge(C))},"populateDb"),De={parser:{yy:void 0},parse:gt(async _=>{var M;let x=await ai("architecture",_);Ae.debug(x);let C=(M=De.parser)==null?void 0:M.yy;if(!(C instanceof Oe))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");mi(x,C)},"parse")},yi=gt(_=>` + .edge { + stroke-width: ${_.archEdgeWidth}; + stroke: ${_.archEdgeColor}; + fill: none; + } + + .arrow { + fill: ${_.archEdgeArrowColor}; + } + + .node-bkg { + fill: none; + stroke: ${_.archGroupBorderColor}; + stroke-width: ${_.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,"getStyles"),Qt=gt(_=>`${_}`,"wrapIcon"),ie={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:Qt('')},server:{body:Qt('')},disk:{body:Qt('')},internet:{body:Qt('')},cloud:{body:Qt('')},unknown:oi,blank:{body:Qt("")}}},Ei=gt(async function(_,x,C){let M=C.getConfigField("padding"),N=C.getConfigField("iconSize"),f=N/2,r=N/6,n=r/2;await Promise.all(x.edges().map(async t=>{var $,Z;let{source:e,sourceDir:h,sourceArrow:a,sourceGroup:p,target:o,targetDir:i,targetArrow:d,targetGroup:s,label:c}=Me(t),{x:g,y:v}=t[0].sourceEndpoint(),{x:T,y:L}=t[0].midpoint(),{x:R,y:S}=t[0].targetEndpoint(),Y=M+4;if(p&&(St(h)?g+=h==="L"?-Y:Y:v+=h==="T"?-Y:Y+18),s&&(St(i)?R+=i==="L"?-Y:Y:S+=i==="T"?-Y:Y+18),!p&&(($=C.getNode(e))==null?void 0:$.type)==="junction"&&(St(h)?g+=h==="L"?f:-f:v+=h==="T"?f:-f),!s&&((Z=C.getNode(o))==null?void 0:Z.type)==="junction"&&(St(i)?R+=i==="L"?f:-f:S+=i==="T"?f:-f),t[0]._private.rscratch){let D=_.insert("g");if(D.insert("path").attr("d",`M ${g},${v} L ${T},${L} L${R},${S} `).attr("class","edge").attr("id",ze(e,o,{prefix:"L"})),a){let J=St(h)?oe[h](g,r):g-n,l=Wt(h)?oe[h](v,r):v-n;D.insert("polygon").attr("points",_e[h](r)).attr("transform",`translate(${J},${l})`).attr("class","arrow")}if(d){let J=St(i)?oe[i](R,r):R-n,l=Wt(i)?oe[i](S,r):S-n;D.insert("polygon").attr("points",_e[i](r)).attr("transform",`translate(${J},${l})`).attr("class","arrow")}if(c){let J=fe(h,i)?"XY":St(h)?"X":"Y",l=0;l=J==="X"?Math.abs(g-R):J==="Y"?Math.abs(v-S)/1.5:Math.abs(g-R)/2;let E=D.append("g");if(await ce(E,c,{useHtmlLabels:!1,width:l,classes:"architecture-service-label"},ge()),E.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),J==="X")E.attr("transform","translate("+T+", "+L+")");else if(J==="Y")E.attr("transform","translate("+T+", "+L+") rotate(-90)");else if(J==="XY"){let u=pe(h,i);if(u&&li(u)){let y=E.node().getBoundingClientRect(),[m,A]=ci(u);E.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*m*A*45})`);let w=E.node().getBoundingClientRect();E.attr("transform",` + translate(${T}, ${L-y.height/2}) + translate(${m*w.width/2}, ${A*w.height/2}) + rotate(${-1*m*A*45}, 0, ${y.height/2}) + `)}}}}}))},"drawEdges"),Ti=gt(async function(_,x,C){let M=C.getConfigField("padding")*.75,N=C.getConfigField("fontSize"),f=C.getConfigField("iconSize")/2;await Promise.all(x.nodes().map(async r=>{let n=Kt(r);if(n.type==="group"){let{h:t,w:e,x1:h,y1:a}=r.boundingBox(),p=_.append("rect");p.attr("id",`group-${n.id}`).attr("x",h+f).attr("y",a+f).attr("width",e).attr("height",t).attr("class","node-bkg");let o=_.append("g"),i=h,d=a;if(n.icon){let s=o.append("g");s.html(`${await ue(n.icon,{height:M,width:M,fallbackPrefix:ie.prefix})}`),s.attr("transform","translate("+(i+f+1)+", "+(d+f+1)+")"),i+=M,d+=N/2-1-2}if(n.label){let s=o.append("g");await ce(s,n.label,{useHtmlLabels:!1,width:e,classes:"architecture-service-label"},ge()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),s.attr("transform","translate("+(i+f+4)+", "+(d+f+2)+")")}C.setElementForId(n.id,p)}}))},"drawGroups"),Ni=gt(async function(_,x,C){let M=ge();for(let N of C){let f=x.append("g"),r=_.getConfigField("iconSize");if(N.title){let h=f.append("g");await ce(h,N.title,{useHtmlLabels:!1,width:r*1.5,classes:"architecture-service-label"},M),h.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),h.attr("transform","translate("+r/2+", "+r+")")}let n=f.append("g");if(N.icon)n.html(`${await ue(N.icon,{height:r,width:r,fallbackPrefix:ie.prefix})}`);else if(N.iconText){n.html(`${await ue("blank",{height:r,width:r,fallbackPrefix:ie.prefix})}`);let h=n.append("g").append("foreignObject").attr("width",r).attr("height",r).append("div").attr("class","node-icon-text").attr("style",`height: ${r}px;`).append("div").html($e(N.iconText,M)),a=parseInt(window.getComputedStyle(h.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;h.attr("style",`-webkit-line-clamp: ${Math.floor((r-2)/a)};`)}else n.append("path").attr("class","node-bkg").attr("id","node-"+N.id).attr("d",`M0 ${r} v${-r} q0,-5 5,-5 h${r} q5,0 5,5 v${r} H0 Z`);f.attr("id",`service-${N.id}`).attr("class","architecture-service");let{width:t,height:e}=f.node().getBBox();N.width=t,N.height=e,_.setElementForId(N.id,f)}return 0},"drawServices"),Ai=gt(function(_,x,C){C.forEach(M=>{let N=x.append("g"),f=_.getConfigField("iconSize");N.append("g").append("rect").attr("id","node-"+M.id).attr("fill-opacity","0").attr("width",f).attr("height",f),N.attr("class","architecture-junction");let{width:r,height:n}=N._groups[0][0].getBBox();N.width=r,N.height=n,_.setElementForId(M.id,N)})},"drawJunctions");ri([{name:ie.prefix,icons:ie}]),Ce.use(si.default);function Re(_,x,C){_.forEach(M=>{x.add({group:"nodes",data:{type:"service",id:M.id,icon:M.icon,label:M.title,parent:M.in,width:C.getConfigField("iconSize"),height:C.getConfigField("iconSize")},classes:"node-service"})})}gt(Re,"addServices");function be(_,x,C){_.forEach(M=>{x.add({group:"nodes",data:{type:"junction",id:M.id,parent:M.in,width:C.getConfigField("iconSize"),height:C.getConfigField("iconSize")},classes:"node-junction"})})}gt(be,"addJunctions");function Fe(_,x){x.nodes().map(C=>{let M=Kt(C);M.type!=="group"&&(M.x=C.position().x,M.y=C.position().y,_.getElementById(M.id).attr("transform","translate("+(M.x||0)+","+(M.y||0)+")"))})}gt(Fe,"positionNodes");function Ge(_,x){_.forEach(C=>{x.add({group:"nodes",data:{type:"group",id:C.id,icon:C.icon,label:C.title,parent:C.in},classes:"node-group"})})}gt(Ge,"addGroups");function Pe(_,x){_.forEach(C=>{let{lhsId:M,rhsId:N,lhsInto:f,lhsGroup:r,rhsInto:n,lhsDir:t,rhsDir:e,rhsGroup:h,title:a}=C,p=fe(C.lhsDir,C.rhsDir)?"segments":"straight",o={id:`${M}-${N}`,label:a,source:M,sourceDir:t,sourceArrow:f,sourceGroup:r,sourceEndpoint:t==="L"?"0 50%":t==="R"?"100% 50%":t==="T"?"50% 0":"50% 100%",target:N,targetDir:e,targetArrow:n,targetGroup:h,targetEndpoint:e==="L"?"0 50%":e==="R"?"100% 50%":e==="T"?"50% 0":"50% 100%"};x.add({group:"edges",data:o,classes:p})})}gt(Pe,"addEdges");function Se(_,x,C){let M=gt((r,n)=>Object.entries(r).reduce((t,[e,h])=>{var o;let a=0,p=Object.entries(h);if(p.length===1)return t[e]=p[0][1],t;for(let i=0;i{let n={},t={};return Object.entries(r).forEach(([e,[h,a]])=>{var o,i,d;let p=((o=_.getNode(e))==null?void 0:o.in)??"default";n[a]??(n[a]={}),(i=n[a])[p]??(i[p]=[]),n[a][p].push(e),t[h]??(t[h]={}),(d=t[h])[p]??(d[p]=[]),t[h][p].push(e)}),{horiz:Object.values(M(n,"horizontal")).filter(e=>e.length>1),vert:Object.values(M(t,"vertical")).filter(e=>e.length>1)}}).reduce(([r,n],{horiz:t,vert:e})=>[[...r,...t],[...n,...e]],[[],[]]);return{horizontal:N,vertical:f}}gt(Se,"getAlignments");function Ye(_,x){let C=[],M=gt(f=>`${f[0]},${f[1]}`,"posToStr"),N=gt(f=>f.split(",").map(r=>parseInt(r)),"strToPos");return _.forEach(f=>{let r=Object.fromEntries(Object.entries(f).map(([h,a])=>[M(a),h])),n=[M([0,0])],t={},e={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;n.length>0;){let h=n.shift();if(h){t[h]=1;let a=r[h];if(a){let p=N(h);Object.entries(e).forEach(([o,i])=>{let d=M([p[0]+i[0],p[1]+i[1]]),s=r[d];s&&!t[d]&&(n.push(d),C.push({[Ie[o]]:s,[Ie[hi(o)]]:a,gap:1.5*x.getConfigField("iconSize")}))})}}}}),C}gt(Ye,"getRelativeConstraints");function ke(_,x,C,M,N,{spatialMaps:f,groupAlignments:r}){return new Promise(n=>{let t=Xe("body").append("div").attr("id","cy").attr("style","display:none"),e=Ce({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${N.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${N.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});t.remove(),Ge(C,e),Re(_,e,N),be(x,e,N),Pe(M,e);let h=Se(N,f,r),a=Ye(f,N),p=e.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(o){let[i,d]=o.connectedNodes(),{parent:s}=Kt(i),{parent:c}=Kt(d);return s===c?1.5*N.getConfigField("iconSize"):.5*N.getConfigField("iconSize")},edgeElasticity(o){let[i,d]=o.connectedNodes(),{parent:s}=Kt(i),{parent:c}=Kt(d);return s===c?.45:.001},alignmentConstraint:h,relativePlacementConstraint:a});p.one("layoutstop",()=>{var i;function o(d,s,c,g){let v,T,{x:L,y:R}=d,{x:S,y:Y}=s;T=(g-R+(L-c)*(R-Y)/(L-S))/Math.sqrt(1+((R-Y)/(L-S))**2),v=Math.sqrt((g-R)**2+(c-L)**2-T**2);let $=Math.sqrt((S-L)**2+(Y-R)**2);v/=$;let Z=(S-L)*(g-R)-(Y-R)*(c-L);switch(!0){case Z>=0:Z=1;break;case Z<0:Z=-1;break}let D=(S-L)*(c-L)+(Y-R)*(g-R);switch(!0){case D>=0:D=1;break;case D<0:D=-1;break}return T=Math.abs(T)*Z,v*=D,{distances:T,weights:v}}gt(o,"getSegmentWeights"),e.startBatch();for(let d of Object.values(e.edges()))if((i=d.data)!=null&&i.call(d)){let{x:s,y:c}=d.source().position(),{x:g,y:v}=d.target().position();if(s!==g&&c!==v){let T=d.sourceEndpoint(),L=d.targetEndpoint(),{sourceDir:R}=Me(d),[S,Y]=Wt(R)?[T.x,L.y]:[L.x,T.y],{weights:$,distances:Z}=o(T,L,S,Y);d.style("segment-distances",Z),d.style("segment-weights",$)}}e.endBatch(),p.run()}),p.run(),e.ready(o=>{Ae.info("Ready",o),n(e)})})}gt(ke,"layoutArchitecture");var Ci={parser:De,get db(){return new Oe},renderer:{draw:gt(async(_,x,C,M)=>{let N=M.db,f=N.getServices(),r=N.getJunctions(),n=N.getGroups(),t=N.getEdges(),e=N.getDataStructures(),h=ii(x),a=h.append("g");a.attr("class","architecture-edges");let p=h.append("g");p.attr("class","architecture-services");let o=h.append("g");o.attr("class","architecture-groups"),await Ni(N,p,f),Ai(N,p,r);let i=await ke(f,r,n,t,N,e);await Ei(a,i,N),await Ti(o,i,N),Fe(N,i),je(void 0,h,N.getConfigField("padding"),N.getConfigField("useMaxWidth"))},"draw")},styles:yi};export{Ci as diagram}; diff --git a/docs/assets/array-CC7vZNGO.js b/docs/assets/array-CC7vZNGO.js new file mode 100644 index 0000000..5889ea3 --- /dev/null +++ b/docs/assets/array-CC7vZNGO.js @@ -0,0 +1 @@ +Array.prototype.slice;function t(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}export{t}; diff --git a/docs/assets/arrow-left-DdsrQ78n.js b/docs/assets/arrow-left-DdsrQ78n.js new file mode 100644 index 0000000..d5b0401 --- /dev/null +++ b/docs/assets/arrow-left-DdsrQ78n.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var r=t("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);export{r as t}; diff --git a/docs/assets/asciiarmor-B--OGpM1.js b/docs/assets/asciiarmor-B--OGpM1.js new file mode 100644 index 0000000..c8f0259 --- /dev/null +++ b/docs/assets/asciiarmor-B--OGpM1.js @@ -0,0 +1 @@ +function a(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}const o={name:"asciiarmor",token:function(e,t){var r;if(t.state=="top")return e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))?(t.state="headers",t.type=r[1],"tag"):a(e);if(t.state=="headers"){if(e.sol()&&e.match(/^\w+:/))return t.state="header","atom";var s=a(e);return s&&(t.state="body"),s}else{if(t.state=="header")return e.skipToEnd(),t.state="headers","string";if(t.state=="body")return e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))?r[1]==t.type?(t.state="end","tag"):"error":e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error");if(t.state=="end")return a(e)}},blankLine:function(e){e.state=="headers"&&(e.state="body")},startState:function(){return{state:"top",type:null}}};export{o as t}; diff --git a/docs/assets/asciiarmor-DzJGO3cy.js b/docs/assets/asciiarmor-DzJGO3cy.js new file mode 100644 index 0000000..f2910c1 --- /dev/null +++ b/docs/assets/asciiarmor-DzJGO3cy.js @@ -0,0 +1 @@ +import{t as r}from"./asciiarmor-B--OGpM1.js";export{r as asciiArmor}; diff --git a/docs/assets/asciidoc-JYZtYOcT.js b/docs/assets/asciidoc-JYZtYOcT.js new file mode 100644 index 0000000..c383988 --- /dev/null +++ b/docs/assets/asciidoc-JYZtYOcT.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"AsciiDoc","fileTypes":["ad","asc","adoc","asciidoc","adoc.txt"],"name":"asciidoc","patterns":[{"include":"#comment"},{"include":"#callout-list-item"},{"include":"#titles"},{"include":"#attribute-entry"},{"include":"#blocks"},{"include":"#block-title"},{"include":"#tables"},{"include":"#horizontal-rule"},{"include":"#list"},{"include":"#inlines"},{"include":"#block-attribute"},{"include":"#line-break"}],"repository":{"admonition-paragraph":{"patterns":[{"begin":"(?=(?>^\\\\[(NOTE|TIP|IMPORTANT|WARNING|CAUTION)([#%,.][^]]+)*]$))","end":"((?<=--|====)|^\\\\p{blank}*)$","name":"markup.admonition.asciidoc","patterns":[{"captures":{"0":{"patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(NOTE|TIP|IMPORTANT|WARNING|CAUTION)([#%,.]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"^(={4,})\\\\s*$","end":"(?<=\\\\1)","patterns":[{"include":"#inlines"},{"include":"#list"}]},{"begin":"^(-{2})\\\\s*$","end":"(?<=\\\\1)","patterns":[{"include":"#inlines"},{"include":"#list"}]}]},{"begin":"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\\\p{blank}+","captures":{"1":{"name":"entity.name.function.asciidoc"}},"end":"^\\\\p{blank}*$","name":"markup.admonition.asciidoc","patterns":[{"include":"#inlines"}]}]},"anchor-macro":{"patterns":[{"captures":{"1":{"name":"support.constant.asciidoc"},"2":{"name":"markup.blockid.asciidoc"},"3":{"name":"string.unquoted.asciidoc"},"4":{"name":"support.constant.asciidoc"}},"match":"(?)(?=(?: ?)*$)","name":"callout.source.code.asciidoc"}]},"block-title":{"patterns":[{"begin":"^\\\\.([^.[:blank:]].*)","captures":{"1":{"name":"markup.heading.blocktitle.asciidoc"}},"end":"$"}]},"blocks":{"patterns":[{"include":"#front-matter-block"},{"include":"#comment-paragraph"},{"include":"#admonition-paragraph"},{"include":"#quote-paragraph"},{"include":"#listing-paragraph"},{"include":"#source-paragraphs"},{"include":"#passthrough-paragraph"},{"include":"#example-paragraph"},{"include":"#sidebar-paragraph"},{"include":"#literal-paragraph"},{"include":"#open-block"}]},"callout-list-item":{"patterns":[{"captures":{"1":{"name":"constant.other.symbol.asciidoc"},"2":{"name":"constant.numeric.asciidoc"},"3":{"name":"constant.other.symbol.asciidoc"},"4":{"patterns":[{"include":"#inlines"}]}},"match":"^(<)(\\\\d+)(>)\\\\p{blank}+(.*)$","name":"callout.asciidoc"}]},"characters":{"patterns":[{"captures":{"1":{"name":"constant.character.asciidoc"},"3":{"name":"constant.character.asciidoc"}},"match":"(?^\\\\[(comment)([#%,.][^]]+)*]$))","end":"((?<=--)|^\\\\p{blank}*)$","name":"comment.block.asciidoc","patterns":[{"captures":{"0":{"patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(comment)([#%,.]([^],]+))*]$"},{"include":"#block-title"},{"begin":"^(-{2})\\\\s*$","end":"^(\\\\1)$","patterns":[{"include":"#inlines"},{"include":"#list"}]},{"include":"#inlines"}]}]},"emphasis":{"patterns":[{"captures":{"1":{"name":"markup.meta.attribute-list.asciidoc"},"2":{"name":"markup.italic.asciidoc"},"3":{"name":"punctuation.definition.asciidoc"},"5":{"name":"punctuation.definition.asciidoc"}},"match":"(?^\\\\[(example)([#%,.][^]]+)*]$))","end":"((?<=--|====)|^\\\\p{blank}*)$","name":"markup.block.example.asciidoc","patterns":[{"captures":{"0":{"patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(example)([#%,.]([^],]+))*]$"},{"include":"#block-title"},{"begin":"^(={4,})$","end":"^(\\\\1)$","patterns":[{"include":"$self"}]},{"begin":"^(-{2})$","end":"^(\\\\1)$","patterns":[{"include":"$self"}]},{"include":"#inlines"}]},{"begin":"^(={4,})$","end":"^(\\\\1)$","name":"markup.block.example.asciidoc","patterns":[{"include":"$self"}]}]},"footnote-macro":{"patterns":[{"begin":"(?\\\\[\\\\s])((?\\\\[[:blank:]])((?^\\\\[(listing)([#%,.][^]]+)*]$))","end":"((?<=--)|^\\\\p{blank}*)$","name":"markup.block.listing.asciidoc","patterns":[{"captures":{"0":{"patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(listing)([#%,.]([^],]+))*]$"},{"include":"#block-title"},{"begin":"^(-{4,})\\\\s*$","end":"^(\\\\1)$"},{"begin":"^(-{2})\\\\s*$","end":"^(\\\\1)$"},{"include":"#inlines"}]}]},"literal-paragraph":{"patterns":[{"begin":"(?=(?>^\\\\[(literal)([#%,.][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.block.literal.asciidoc","patterns":[{"captures":{"0":{"patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(literal)([#%,.]([^],]+))*]$"},{"include":"#block-title"},{"begin":"^(\\\\.{4,})$","end":"^(\\\\1)$"},{"begin":"^(-{2})\\\\s*$","end":"^(\\\\1)$"},{"include":"#inlines"}]},{"begin":"^(\\\\.{4,})$","end":"^(\\\\1)$","name":"markup.block.literal.asciidoc"}]},"mark":{"patterns":[{"captures":{"1":{"name":"markup.meta.attribute-list.asciidoc"},"2":{"name":"markup.mark.asciidoc"},"3":{"name":"punctuation.definition.asciidoc"},"5":{"name":"punctuation.definition.asciidoc"}},"match":"(?\\\\+{2,3}|\\\\${2})(.*?)(\\\\k)","name":"markup.macro.inline.passthrough.asciidoc"},{"begin":"(?^\\\\[(pass)([#%,.][^]]+)*]$))","end":"((?<=--|\\\\+\\\\+)|^\\\\p{blank}*)$","name":"markup.block.passthrough.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(pass)([#%,.]([^],]+))*]$"},{"include":"#block-title"},{"begin":"^(\\\\+{4,})\\\\s*$","end":"(?<=\\\\1)","patterns":[{"include":"text.html.basic"}]},{"begin":"^(-{2})\\\\s*$","end":"(?<=\\\\1)","patterns":[{"include":"text.html.basic"}]}]},{"begin":"^(\\\\+{4,})$","end":"\\\\1","name":"markup.block.passthrough.asciidoc","patterns":[{"include":"text.html.basic"}]}]},"quote-paragraph":{"patterns":[{"begin":"(?=(?>^\\\\[(quote|verse)([#%,.]([^],]+))*]$))","end":"((?<=____|\\"\\"|--)|^\\\\p{blank}*)$","name":"markup.italic.quotes.asciidoc","patterns":[{"captures":{"0":{"patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(quote|verse)([#%,.]([^],]+))*]$"},{"include":"#block-title"},{"include":"#inlines"},{"begin":"^(_{4,})\\\\s*$","end":"(?<=\\\\1)","patterns":[{"include":"#inlines"},{"include":"#list"}]},{"begin":"^(\\"{2})\\\\s*$","end":"(?<=\\\\1)","patterns":[{"include":"#inlines"},{"include":"#list"}]},{"begin":"^(-{2})\\\\s*$","end":"(?<=\\\\1)$","patterns":[{"include":"#inlines"},{"include":"#list"}]}]},{"begin":"^(\\"\\")$","end":"^\\\\1$","name":"markup.italic.quotes.asciidoc","patterns":[{"include":"#inlines"},{"include":"#list"}]},{"begin":"^\\\\p{blank}*(>) ","end":"^\\\\p{blank}*?$","name":"markup.italic.quotes.asciidoc","patterns":[{"include":"#inlines"},{"include":"#list"}]}]},"sidebar-paragraph":{"patterns":[{"begin":"(?=(?>^\\\\[(sidebar)([#%,.][^]]+)*]$))","end":"((?<=--|\\\\*\\\\*\\\\*\\\\*)|^\\\\p{blank}*)$","name":"markup.block.sidebar.asciidoc","patterns":[{"captures":{"0":{"patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(sidebar)([#%,.]([^],]+))*]$"},{"include":"#block-title"},{"begin":"^(\\\\*{4,})$","end":"^(\\\\1)$","patterns":[{"include":"$self"}]},{"begin":"^(-{2})$","end":"^(\\\\1)$","patterns":[{"include":"$self"}]},{"include":"#inlines"}]},{"begin":"^(\\\\*{4,})$","end":"^(\\\\1)$","name":"markup.block.sidebar.asciidoc","patterns":[{"include":"$self"}]}]},"source-asciidoctor":{"patterns":[{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(css(?:|.erb)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.css.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(css(?:|.erb)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(html?|shtml|xhtml|inc|tmpl|tpl))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.basic.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(html?|shtml|xhtml|inc|tmpl|tpl))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(ini|conf))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.ini.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(ini|conf))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(java|bsh))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.java.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(java|bsh))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(lua))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.lua.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(lua))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:((?:[Mm]|GNUm|OCamlM)akefile))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.makefile.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:((?:[Mm]|GNUm|OCamlM)akefile))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.perl.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?}))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.r.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?}))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.ruby.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.php.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(sql|ddl|dml))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.sql.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(sql|ddl|dml))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(vb))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.vs_net.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(vb))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.xml.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(xslt??))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.xsl.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(xslt??))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(ya?ml))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.yaml.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(ya?ml))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(bat(?:|ch)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.dosbatch.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(bat(?:|ch)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(cl(?:js??|ojure)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.clojure.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(cl(?:js??|ojure)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(coffee|Cakefile|coffee.erb))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.coffee.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(coffee|Cakefile|coffee.erb))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:([ch]))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.c.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:([ch]))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(c(?:pp|\\\\+\\\\+|xx)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.cpp.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(c(?:pp|\\\\+\\\\+|xx)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(patch|diff|rej))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.diff.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(patch|diff|rej))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:([Dd]ockerfile))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.dockerfile.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:([Dd]ockerfile))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:((?:COMMIT_EDIT|MERGE_)MSG))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.git_commit.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:((?:COMMIT_EDIT|MERGE_)MSG))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(git-rebase-todo))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.git_rebase.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(git-rebase-todo))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(go(?:|lang)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.go.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(go(?:|lang)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(g(?:roovy|vy)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.groovy.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(g(?:roovy|vy)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(jade|pug))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.pug.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(jade|pug))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?}))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.js.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?}))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(regexp))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.js_regexp.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(regexp))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.json.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(jsonc))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.jsonc.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(jsonc))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(less))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.less.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(less))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm]))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.objc.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm]))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(swift))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.swift.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(swift))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(scss))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.scss.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(scss))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(perl6|p6|pl6|pm6|nqp))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.perl6.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(perl6|p6|pl6|pm6|nqp))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(p(?:owershell|s1|sm1|sd1|wsh)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.powershell.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(p(?:owershell|s1|sm1|sd1|wsh)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?}))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.python.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?}))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(julia|\\\\{\\\\.julia.+?}))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.julia.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(julia|\\\\{\\\\.julia.+?}))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(re))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.regexp_python.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(re))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(rust|rs|\\\\{\\\\.rust.+?}))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.rust.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(rust|rs|\\\\{\\\\.rust.+?}))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(s(?:cala|bt)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.scala.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(s(?:cala|bt)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?}))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.shell.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?}))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(t(?:ypescript|s)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.ts.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(t(?:ypescript|s)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(tsx))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.tsx.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(tsx))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(c(?:s|sharp|#)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.csharp.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(c(?:s|sharp|#)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(f(?:s|sharp|#)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.fsharp.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(f(?:s|sharp|#)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(dart))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.dart.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(dart))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(h(?:andlebars|bs)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.handlebars.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(h(?:andlebars|bs)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(m(?:arkdown|d)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.markdown.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(m(?:arkdown|d)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(log))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.log.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(log))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(erlang))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.erlang.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(erlang))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(elixir))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.elixir.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(elixir))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:((?:la|)tex))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.latex.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:((?:la|)tex))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(bibtex))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.bibtex.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(bibtex))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(twig))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.twig.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(twig))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(yang))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.yang.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(yang))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(abap))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.abap.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(abap))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(r(?:estructuredtext|st)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.restructuredtext.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(r(?:estructuredtext|st)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(haskell))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.haskell.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(haskell))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.haskell","patterns":[{"include":"source.haskell"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.haskell","patterns":[{"include":"source.haskell"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.haskell","patterns":[{"include":"source.haskell"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]},{"begin":"(?=(?>^\\\\[(source)[#,]\\\\p{blank}*(?i:(k(?:otlin|t)))([#,][^]]+)*]$))","end":"((?<=--|\\\\.\\\\.\\\\.\\\\.)|^\\\\p{blank}*)$","name":"markup.code.kotlin.asciidoc","patterns":[{"captures":{"0":{"name":"markup.heading.asciidoc","patterns":[{"include":"#block-attribute-inner"}]}},"match":"^\\\\[(source)[#,]\\\\p{blank}*(?i:(k(?:otlin|t)))([#,]([^],]+))*]$"},{"include":"#inlines"},{"include":"#block-title"},{"begin":"(^|\\\\G)(-{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.kotlin","patterns":[{"include":"source.kotlin"}],"while":"(^|\\\\G)(?!(-{4,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(-{2})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.kotlin","patterns":[{"include":"source.kotlin"}],"while":"(^|\\\\G)(?!(-{2})\\\\s*$)"}]},{"begin":"(^|\\\\G)(\\\\.{4,})\\\\s*$","end":"(^|\\\\G)(\\\\2)\\\\s*$","patterns":[{"include":"#block-callout"},{"include":"#include-directive"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.kotlin","patterns":[{"include":"source.kotlin"}],"while":"(^|\\\\G)(?!(\\\\.{4,})\\\\s*$)"}]}]}]},"source-markdown":{"patterns":[{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(css(?:|.erb))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.css.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(html?|shtml|xhtml|inc|tmpl|tpl)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.basic.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(ini|conf)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.ini.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(java|bsh)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.java.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(lua)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.lua.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:((?:[Mm]|GNUm|OCamlM)akefile)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.makefile.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.perl.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?})((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.r.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.ruby.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.php.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(sql|ddl|dml)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.sql.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(vb)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.vs_net.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.xml.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(xslt??)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.xsl.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(ya?ml)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.yaml.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(bat(?:|ch))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.dosbatch.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(cl(?:js??|ojure))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.clojure.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(coffee|Cakefile|coffee.erb)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.coffee.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:([ch])((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.c.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(c(?:pp|\\\\+\\\\+|xx))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.cpp.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(patch|diff|rej)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.diff.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:([Dd]ockerfile)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.dockerfile.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:((?:COMMIT_EDIT|MERGE_)MSG)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.git_commit.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(git-rebase-todo)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.git_rebase.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(go(?:|lang))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.go.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(g(?:roovy|vy))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.groovy.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(jade|pug)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.pug.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?})((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.js.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(regexp)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.js_regexp.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.json.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(jsonc)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.jsonc.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(less)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.less.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm])((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.objc.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(swift)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.swift.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(scss)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.scss.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(perl6|p6|pl6|pm6|nqp)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.perl6.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(p(?:owershell|s1|sm1|sd1|wsh))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.powershell.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?})((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.python.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(julia|\\\\{\\\\.julia.+?})((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.julia.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(re)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.regexp_python.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(rust|rs|\\\\{\\\\.rust.+?})((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.rust.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(s(?:cala|bt))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.scala.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?})((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.shell.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(t(?:ypescript|s))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.ts.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(tsx)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.tsx.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(c(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.csharp.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(f(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.fsharp.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(dart)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.dart.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(h(?:andlebars|bs))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.handlebars.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(m(?:arkdown|d))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.markdown.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(log)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.log.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(erlang)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.erlang.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(elixir)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.elixir.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:((?:la|)tex)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.latex.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(bibtex)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.bibtex.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(twig)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.twig.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(yang)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.yang.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(abap)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.abap.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(r(?:estructuredtext|st))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.restructuredtext.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(haskell)((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.haskell.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.haskell","patterns":[{"include":"source.haskell"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]},{"begin":"(^|\\\\G)(`{3,})\\\\s*(?i:(k(?:otlin|t))((\\\\s+|[,:?{])[^`]*)?$)","end":"(^|\\\\G)(\\\\2)\\\\s*$","name":"markup.code.kotlin.asciidoc","patterns":[{"include":"#block-callout"},{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.kotlin","patterns":[{"include":"source.kotlin"}],"while":"(^|\\\\G)(?!\\\\s*(`{3,})\\\\s*$)"}]}]},"source-paragraphs":{"patterns":[{"include":"#source-asciidoctor"},{"include":"#source-markdown"}]},"stem-macro":{"patterns":[{"begin":"(?>)","name":"markup.reference.xref.asciidoc"},{"begin":"(?\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"}]},{"begin":"^\\\\s*[#%]\\\\s*(i(?:nclude|mport))\\\\b\\\\s+","captures":{"1":{"name":"keyword.control.import.include.c"}},"end":"(?=/[*/])|$","name":"meta.preprocessor.c.include","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.include.c"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.other.lt-gt.include.c"}]},{"begin":"^\\\\s*[#%]\\\\s*(i?x?define|defined|elif(def)?|else|i[fs]n?(?:def|macro|ctx|idni?|id|num|str|token|empty|env)?|line|(i|end|uni?)?macro|pragma|endif)\\\\b","captures":{"1":{"name":"keyword.control.import.c"}},"end":"(?=/[*/])|$","name":"meta.preprocessor.c","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"},{"include":"#preprocessor-functions"}]},{"begin":"^\\\\s*[#%]\\\\s*(assign|strlen|substr|(e(?:nd|xit))?rep|push|pop|rotate|use|ifusing|ifusable|def(?:ailas|str|tok)|undef(?:alias)?)\\\\b","captures":{"1":{"name":"keyword.control"}},"end":"$","name":"meta.preprocessor.nasm","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"},{"include":"#preprocessor-functions"}]}]},"preprocessor-functions":{"patterns":[{"begin":"((%)(abs|cond|count|eval|isn?(?:def|macro|ctx|idni?|id|num|str|token|empty|env)?|num|sel|str(?:cat|len)?|substr|tok)\\\\s*(\\\\())","captures":{"3":{"name":"support.function.preprocessor.asm.x86_64"}},"end":"(\\\\))|$","name":"meta.preprocessor.function.asm.x86_64","patterns":[{"include":"#preprocessor-functions"}]}]},"registers":{"patterns":[{"match":"(?i)\\\\b(?:[a-d][hl]|[er]?[a-d]x|[er]?(?:di|si|bp|sp)|dil|sil|bpl|spl|r(?:[89]|1[0-5])[bdlw]?)\\\\b","name":"constant.language.register.general-purpose.asm.x86_64"},{"match":"(?i)\\\\b[c-gs]s\\\\b","name":"constant.language.register.segment.asm.x86_64"},{"match":"(?i)\\\\b[er]?flags\\\\b","name":"constant.language.register.flags.asm.x86_64"},{"match":"(?i)\\\\b[er]?ip\\\\b","name":"constant.language.register.instruction-pointer.asm.x86_64"},{"match":"(?i)\\\\bcr[0234]\\\\b","name":"constant.language.register.control.asm.x86_64"},{"match":"(?i)\\\\b(?:mm|st|fpr)[0-7]\\\\b","name":"constant.language.register.mmx.asm.x86_64"},{"match":"(?i)\\\\b(?:[xy]mm(?:[0-9]|1[0-5])|mxcsr)\\\\b","name":"constant.language.register.sse_avx.asm.x86_64"},{"match":"(?i)\\\\bzmm(?:[12]?[0-9]|30|31)\\\\b","name":"constant.language.register.avx512.asm.x86_64"},{"match":"(?i)\\\\bbnd(?:[0-3]|cfg[su]|status)\\\\b","name":"constant.language.register.memory-protection.asm.x86_64"},{"match":"(?i)\\\\b(?:[gil]dtr?|tr)\\\\b","name":"constant.language.register.system-table-pointer.asm.x86_64"},{"match":"(?i)\\\\bdr[0-367]\\\\b","name":"constant.language.register.debug.asm.x86_64"},{"match":"(?i)\\\\b(?:cr8|dr(?:[89]|1[0-5])|efer|tpr|syscfg)\\\\b","name":"constant.language.register.amd.asm.x86_64"},{"match":"(?i)\\\\b(?:db[0-367]|t[67]|tr[3-7]|st)\\\\b","name":"invalid.deprecated.constant.language.register.asm.x86_64"},{"match":"(?i)\\\\b[xy]mm(?:1[6-9]|2[0-9]|3[01])\\\\b","name":"constant.language.register.general-purpose.alias.asm.x86_64"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.asm"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.asm"}},"name":"string.quoted.double.asm","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.asm"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.asm"}},"name":"string.quoted.single.asm","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"}]},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.asm"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.asm"}},"name":"string.quoted.backquote.asm","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"}]}]},"support":{"patterns":[{"match":"(?i)\\\\b(?:s?byte|(?:[doqtyz]|dq|s[dq]?)?word|(?:d|res)[bdoqtwyz]|ddq)\\\\b","name":"storage.type.asm.x86_64"},{"match":"(?i)\\\\b(?:incbin|equ|times|dup)\\\\b","name":"support.function.asm.x86_64"},{"match":"(?i)\\\\b(?:strict|nosplit|near|far|abs|rel)\\\\b","name":"storage.modifier.asm.x86_64"},{"match":"(?i)\\\\b[ao](?:16|32|64)\\\\b","name":"storage.modifier.prefix.asm.x86_64"},{"match":"(?i)\\\\b(?:rep(?:n?[ez])?|lock|xacquire|xrelease|(?:no)?bnd)\\\\b","name":"storage.modifier.prefix.asm.x86_64"},{"captures":{"1":{"name":"storage.modifier.prefix.vex.asm.x86_64"}},"match":"\\\\{(vex[23]?|evex|rex)}"},{"captures":{"1":{"name":"storage.modifier.opmask.asm.x86_64"}},"match":"\\\\{(k[1-7])}"},{"captures":{"1":{"name":"storage.modifier.precision.asm.x86_64"}},"match":"\\\\{(1to(?:8|16))}"},{"captures":{"1":{"name":"storage.modifier.rounding.asm.x86_64"}},"match":"\\\\{(z|(?:r[dnuz]-)?sae)}"},{"match":"\\\\.\\\\.(?:start|imagebase|tlvp|got(?:pc(?:rel)?|(?:tp)?off)?|plt|sym|tlsie)\\\\b","name":"support.constant.asm.x86_64"},{"match":"\\\\b__\\\\?(?:utf(?:16|32)(?:[bl]e)?|float(?:8|16|32|64|80[em]|128[hl])|bfloat16|Infinity|[QS]?NaN)\\\\?__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__(?:utf(?:16|32)(?:[bl]e)?|float(?:8|16|32|64|80[em]|128[hl])|bfloat16|Infinity|[QS]?NaN)__\\\\b","name":"support.function.legacy.asm.x86_64"},{"match":"\\\\b__\\\\?NASM_(?:MAJOR|(?:SUB)?MINOR|SNAPSHOT|VER(?:SION_ID)?)\\\\?__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b___\\\\?NASM_PATCHLEVEL\\\\?__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__\\\\?(?:FILE|LINE|BITS|OUTPUT_FORMAT|DEBUG_FORMAT)\\\\?__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__\\\\?(?:(?:UTC_)?(?:DATE|TIME)(?:_NUM)?|POSIX_TIME)\\\\?__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__\\\\?USE_\\\\w+\\\\?__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__\\\\?PASS\\\\?__\\\\b","name":"invalid.deprecated.support.constant.altreg.asm.x86_64"},{"match":"\\\\b__\\\\?ALIGNMODE\\\\?__\\\\b","name":"support.constant.smartalign.asm.x86_64"},{"match":"\\\\b__\\\\?ALIGN_(\\\\w+)\\\\?__\\\\b","name":"support.function.smartalign.asm.x86_64"},{"match":"\\\\b__NASM_(?:MAJOR|(?:SUB)?MINOR|SNAPSHOT|VER(?:SION_ID)?)__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b___NASM_PATCHLEVEL__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__(?:FILE|LINE|BITS|OUTPUT_FORMAT|DEBUG_FORMAT)__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__(?:(?:UTC_)?(?:DATE|TIME)(?:_NUM)?|POSIX_TIME)__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__USE_\\\\w+__\\\\b","name":"support.function.asm.x86_64"},{"match":"\\\\b__PASS__\\\\b","name":"invalid.deprecated.support.constant.altreg.asm.x86_64"},{"match":"\\\\b__ALIGNMODE__\\\\b","name":"support.constant.smartalign.asm.x86_64"},{"match":"\\\\b__ALIGN_(\\\\w+)__\\\\b","name":"support.function.smartalign.asm.x86_64"},{"match":"\\\\b(?:Inf|[QS]?NaN)\\\\b","name":"support.constant.fp.asm.x86_64"},{"match":"\\\\bfloat(?:8|16|32|64|80[em]|128[hl])\\\\b","name":"support.function.fp.asm.x86_64"},{"match":"(?i)\\\\bilog2(?:[cefw]|[cf]w)?\\\\b","name":"support.function.ifunc.asm.x86_64"}]}},"scopeName":"source.asm.x86_64"}'))];export{e as default}; diff --git a/docs/assets/asn1-Blkd-UVm.js b/docs/assets/asn1-Blkd-UVm.js new file mode 100644 index 0000000..b5ab442 --- /dev/null +++ b/docs/assets/asn1-Blkd-UVm.js @@ -0,0 +1 @@ +import{t as a}from"./asn1-D2UnMTL5.js";export{a as asn1}; diff --git a/docs/assets/asn1-D2UnMTL5.js b/docs/assets/asn1-D2UnMTL5.js new file mode 100644 index 0000000..1cb05ca --- /dev/null +++ b/docs/assets/asn1-D2UnMTL5.js @@ -0,0 +1 @@ +function s(i){for(var u={},A=i.split(" "),T=0;T?$/.test(a)?(t.extenExten=!0,t.extenStart=!1,"strong"):(t.extenStart=!1,e.skipToEnd(),"error");if(t.extenExten)return t.extenExten=!1,t.extenPriority=!0,e.eatWhile(/[^,]/),t.extenInclude&&(t.extenInclude=(e.skipToEnd(),t.extenPriority=!1,!1)),t.extenSame&&(t.extenPriority=!1,t.extenSame=!1,t.extenApplication=!0),"tag";if(t.extenPriority)return t.extenPriority=!1,t.extenApplication=!0,e.next(),t.extenSame?null:(e.eatWhile(/[^,]/),"number");if(t.extenApplication){if(e.eatWhile(/,/),a=e.current(),a===",")return null;if(e.eatWhile(/\w/),a=e.current().toLowerCase(),t.extenApplication=!1,o.indexOf(a)!==-1)return"def"}else return s(e,t);return null},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}};export{c as asterisk}; diff --git a/docs/assets/astro-CjefMLzo.js b/docs/assets/astro-CjefMLzo.js new file mode 100644 index 0000000..f3601bb --- /dev/null +++ b/docs/assets/astro-CjefMLzo.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t}from"./css-xi2XX7Oh.js";import{t as r}from"./json-CdDqxu0N.js";import{t as a}from"./typescript-DAlbup0L.js";import{t as n}from"./postcss-Bdp-ioMS.js";import{t as s}from"./tsx-xlMEuxtQ.js";var i=Object.freeze(JSON.parse(`{"displayName":"Astro","fileTypes":["astro"],"injections":{"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)","patterns":[{"include":"#interpolation"},{"include":"#attribute-literal"},{"begin":"(?=[^/<=>\`\\\\s]|/(?!>))","end":"(?!\\\\G)","name":"meta.embedded.line.js","patterns":[{"captures":{"0":{"name":"source.js"},"1":{"patterns":[{"include":"source.js"}]}},"match":"(([^\\"'/<=>\`\\\\s]|/(?!>))+)","name":"string.unquoted.astro"},{"begin":"(\\")","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n\\"/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=\\")|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=\\")|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]},{"begin":"(')","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n'/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=')|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=')|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]}]}]}]},"attributes-interpolated":{"begin":"(?)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.astro"},{"begin":"([\\"'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro"},{"include":"#attribute-literal"}]},"comments":{"begin":"","name":"comment.block.astro","patterns":[{"match":"\\\\G-?>|)|--!>","name":"invalid.illegal.characters-not-allowed-here.astro"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"912":{"name":"punctuation.definition.entity.astro"}},"match":"(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","name":"constant.character.entity.named.$2.astro"},{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"3":{"name":"punctuation.definition.entity.astro"}},"match":"(&)#[0-9]+(;)","name":"constant.character.entity.numeric.decimal.astro"},{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"3":{"name":"punctuation.definition.entity.astro"}},"match":"(&)#[Xx]\\\\h+(;)","name":"constant.character.entity.numeric.hexadecimal.astro"},{"match":"&(?=[0-9A-Za-z]+;)","name":"invalid.illegal.ambiguous-ampersand.astro"}]},"frontmatter":{"begin":"\\\\A(-{3})\\\\s*$","beginCaptures":{"1":{"name":"comment"}},"contentName":"source.ts","end":"(^|\\\\G)(-{3})|\\\\.{3}\\\\s*$","endCaptures":{"2":{"name":"comment"}},"patterns":[{"include":"source.ts"}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.astro"}},"contentName":"meta.embedded.expression.astro source.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.astro"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.tsx#object-literal"}]},{"include":"source.tsx"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#tags"},{"include":"#interpolation"},{"include":"#entities"}]},"tags":{"patterns":[{"include":"#tags-raw"},{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"},"4":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}},"match":"()|(/>)"},"tags-general-end":{"begin":"(\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"}},"name":"meta.scope.tag.$2.astro"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}},"name":"meta.scope.tag.$2.astro","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(s(?:cript|tyle))","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.scope.tag.$1.astro meta.$1.astro","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"']?)(?:text/)?(application/ld\\\\+json)\\\\2)","end":"(?=)","name":"meta.lang.json.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"']?)(module)\\\\2)","end":"(?=)","name":"meta.lang.javascript.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"']?)(?:text/|application/)?([+/\\\\w]+)\\\\2)","end":"(?=)","name":"meta.lang.$3.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.astro"}},"name":"meta.tag.start.astro","patterns":[{"include":"#attributes"}]},"tags-name":{"patterns":[{"match":"[A-Z][0-9A-Z_a-z]*","name":"support.class.component.astro"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.astro entity.name.tag.astro"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.astro"}]},"tags-raw":{"begin":"<([^!/<>?\\\\s]+)(?=[^>]+is:raw).*?","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"contentName":"source.unknown","end":"|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.scope.tag.$1.astro meta.raw.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.astro","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.astro"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"name":"entity.name.tag.astro"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.astro"}},"name":"meta.tag.void.astro","patterns":[{"include":"#attributes"}]},"text":{"patterns":[{"begin":"(?<=^|---|[>}])","end":"(?=[<{]|$)","name":"text.astro","patterns":[{"include":"#entities"}]}]}},"scopeName":"source.astro","embeddedLangs":["json","javascript","typescript","css","postcss","tsx"],"embeddedLangsLazy":["sass","scss","stylus","less"]}`)),o=[...r,...e,...a,...t,...n,...s,i];export{o as default}; diff --git a/docs/assets/aurora-x-CTazLhTV.js b/docs/assets/aurora-x-CTazLhTV.js new file mode 100644 index 0000000..158ce59 --- /dev/null +++ b/docs/assets/aurora-x-CTazLhTV.js @@ -0,0 +1 @@ +var t=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#07090F","activityBar.foreground":"#86A5FF","activityBar.inactiveForeground":"#576dafc5","activityBarBadge.background":"#86A5FF","activityBarBadge.foreground":"#07090F","badge.background":"#86A5FF","badge.foreground":"#07090F","breadcrumb.activeSelectionForeground":"#86A5FF","breadcrumb.focusForeground":"#576daf","breadcrumb.foreground":"#576dafa6","breadcrumbPicker.background":"#07090F","button.background":"#86A5FF","button.foreground":"#07090F","button.hoverBackground":"#A8BEFF","descriptionForeground":"#576daf79","diffEditor.diagonalFill":"#15182B","diffEditor.insertedTextBackground":"#64d3892c","diffEditor.removedTextBackground":"#dd50742c","dropdown.background":"#15182B","dropdown.foreground":"#c7d5ff99","editor.background":"#07090F","editor.findMatchBackground":"#576daf","editor.findMatchHighlightBackground":"#262E47","editor.inactiveSelectionBackground":"#262e47be","editor.selectionBackground":"#262E47","editor.selectionHighlightBackground":"#262E47","editor.wordHighlightBackground":"#262E47","editor.wordHighlightStrongBackground":"#262E47","editorCodeLens.foreground":"#262E47","editorCursor.background":"#01030b","editorCursor.foreground":"#86A5FF","editorGroup.background":"#07090F","editorGroup.border":"#15182B","editorGroup.dropBackground":"#0C0E19","editorGroup.emptyBackground":"#07090F","editorGroupHeader.tabsBackground":"#07090F","editorLineNumber.activeForeground":"#576dafd8","editorLineNumber.foreground":"#262e47bb","editorWidget.background":"#15182B","editorWidget.border":"#576daf","extensionButton.prominentBackground":"#C7D5FF","extensionButton.prominentForeground":"#07090F","focusBorder":"#262E47","foreground":"#576daf","gitDecoration.addedResourceForeground":"#64d389fd","gitDecoration.deletedResourceForeground":"#dd5074","gitDecoration.ignoredResourceForeground":"#576daf90","gitDecoration.modifiedResourceForeground":"#c778db","gitDecoration.untrackedResourceForeground":"#576daf90","icon.foreground":"#576daf","input.background":"#15182B","input.foreground":"#86A5FF","inputOption.activeForeground":"#86A5FF","inputValidation.errorBackground":"#dd5073","inputValidation.errorBorder":"#dd5073","inputValidation.errorForeground":"#07090F","list.activeSelectionBackground":"#000000","list.activeSelectionForeground":"#86A5FF","list.dropBackground":"#000000","list.errorForeground":"#dd5074","list.focusBackground":"#01030b","list.focusForeground":"#86A5FF","list.highlightForeground":"#A8BEFF","list.hoverBackground":"#000000","list.hoverForeground":"#A8BEFF","list.inactiveFocusBackground":"#01030b","list.inactiveSelectionBackground":"#000000","list.inactiveSelectionForeground":"#86A5FF","list.warningForeground":"#e6db7f","notificationCenterHeader.background":"#15182B","notifications.background":"#15182B","panel.border":"#15182B","panelTitle.activeBorder":"#86A5FF","panelTitle.activeForeground":"#C7D5FF","panelTitle.inactiveForeground":"#576daf","peekViewTitle.background":"#262E47","quickInput.background":"#0C0E19","scrollbar.shadow":"#01030b","scrollbarSlider.activeBackground":"#576daf","scrollbarSlider.background":"#262E47","scrollbarSlider.hoverBackground":"#576daf","selection.background":"#01030b","sideBar.background":"#07090F","sideBar.border":"#15182B","sideBarSectionHeader.background":"#07090F","sideBarSectionHeader.foreground":"#86A5FF","statusBar.background":"#86A5FF","statusBar.debuggingBackground":"#c778db","statusBar.foreground":"#07090F","tab.activeBackground":"#07090F","tab.activeBorder":"#86A5FF","tab.activeForeground":"#C7D5FF","tab.border":"#07090F","tab.inactiveBackground":"#07090F","tab.inactiveForeground":"#576dafd8","terminal.ansiBrightRed":"#dd5073","terminal.ansiGreen":"#63eb90","terminal.ansiRed":"#dd5073","terminal.foreground":"#A8BEFF","textLink.foreground":"#86A5FF","titleBar.activeBackground":"#07090F","titleBar.activeForeground":"#86A5FF","titleBar.inactiveBackground":"#07090F","tree.indentGuidesStroke":"#576daf","widget.shadow":"#01030b"},"displayName":"Aurora X","name":"aurora-x","tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#546E7A"}},{"scope":["variable","string constant.other.placeholder"],"settings":{"foreground":"#EEFFFF"}},{"scope":["constant.other.color"],"settings":{"foreground":"#ffffff"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#FF5370"}},{"scope":["keyword","storage.type","storage.modifier"],"settings":{"foreground":"#C792EA"}},{"scope":["keyword.control","constant.other.color","punctuation","meta.tag","punctuation.definition.tag","punctuation.separator.inheritance.php","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html","punctuation.section.embedded","keyword.other.template","keyword.other.substitution"],"settings":{"foreground":"#89DDFF"}},{"scope":["entity.name.tag","meta.tag.sgml","markup.deleted.git_gutter"],"settings":{"foreground":"#f07178"}},{"scope":["entity.name.function","meta.function-call","variable.function","support.function","keyword.other.special-method"],"settings":{"foreground":"#82AAFF"}},{"scope":["meta.block variable.other"],"settings":{"foreground":"#f07178"}},{"scope":["support.other.variable","string.other.link"],"settings":{"foreground":"#f07178"}},{"scope":["constant.numeric","constant.language","support.constant","constant.character","constant.escape","variable.parameter","keyword.other.unit","keyword.other"],"settings":{"foreground":"#F78C6C"}},{"scope":["string","constant.other.symbol","constant.other.key","entity.other.inherited-class","markup.heading","markup.inserted.git_gutter","meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js"],"settings":{"foreground":"#C3E88D"}},{"scope":["entity.name","support.type","support.class","support.orther.namespace.use.php","meta.use.php","support.other.namespace.php","markup.changed.git_gutter","support.type.sys-types"],"settings":{"foreground":"#FFCB6B"}},{"scope":["support.type"],"settings":{"foreground":"#B2CCD6"}},{"scope":["source.css support.type.property-name","source.sass support.type.property-name","source.scss support.type.property-name","source.less support.type.property-name","source.stylus support.type.property-name","source.postcss support.type.property-name"],"settings":{"foreground":"#B2CCD6"}},{"scope":["entity.name.module.js","variable.import.parameter.js","variable.other.class.js"],"settings":{"foreground":"#FF5370"}},{"scope":["variable.language"],"settings":{"fontStyle":"italic","foreground":"#FF5370"}},{"scope":["entity.name.method.js"],"settings":{"fontStyle":"italic","foreground":"#82AAFF"}},{"scope":["meta.class-method.js entity.name.function.js","variable.function.constructor"],"settings":{"foreground":"#82AAFF"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#C792EA"}},{"scope":["text.html.basic entity.other.attribute-name.html","text.html.basic entity.other.attribute-name"],"settings":{"fontStyle":"italic","foreground":"#FFCB6B"}},{"scope":["entity.other.attribute-name.class"],"settings":{"foreground":"#FFCB6B"}},{"scope":["source.sass keyword.control"],"settings":{"foreground":"#82AAFF"}},{"scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"scope":["markup.deleted"],"settings":{"foreground":"#FF5370"}},{"scope":["markup.changed"],"settings":{"foreground":"#C792EA"}},{"scope":["string.regexp"],"settings":{"foreground":"#89DDFF"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#89DDFF"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline"}},{"scope":["tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js"],"settings":{"fontStyle":"italic","foreground":"#82AAFF"}},{"scope":["source.js constant.other.object.key.js string.unquoted.label.js"],"settings":{"fontStyle":"italic","foreground":"#FF5370"}},{"scope":["source.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FF5370"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C17E70"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}},{"scope":["text.html.markdown","punctuation.definition.list_item.markdown"],"settings":{"foreground":"#EEFFFF"}},{"scope":["text.html.markdown markup.inline.raw.markdown"],"settings":{"foreground":"#C792EA"}},{"scope":["text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown"],"settings":{"foreground":"#65737E"}},{"scope":["markdown.heading","markup.heading | markup.heading entity.name","markup.heading.markdown punctuation.definition.heading.markdown"],"settings":{"foreground":"#C3E88D"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":["markup.bold","markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#f07178"}},{"scope":["markup.bold markup.italic","markup.italic markup.bold","markup.quote markup.bold","markup.bold markup.italic string","markup.italic markup.bold string","markup.quote markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#f07178"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline","foreground":"#F78C6C"}},{"scope":["markup.quote punctuation.definition.blockquote.markdown"],"settings":{"foreground":"#65737E"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic"}},{"scope":["string.other.link.title.markdown"],"settings":{"foreground":"#82AAFF"}},{"scope":["string.other.link.description.title.markdown"],"settings":{"foreground":"#C792EA"}},{"scope":["constant.other.reference.link.markdown"],"settings":{"foreground":"#FFCB6B"}},{"scope":["markup.raw.block"],"settings":{"foreground":"#C792EA"}},{"scope":["markup.raw.block.fenced.markdown"],"settings":{"foreground":"#00000050"}},{"scope":["punctuation.definition.fenced.markdown"],"settings":{"foreground":"#00000050"}},{"scope":["markup.raw.block.fenced.markdown","variable.language.fenced.markdown","punctuation.section.class.end"],"settings":{"foreground":"#EEFFFF"}},{"scope":["variable.language.fenced.markdown"],"settings":{"foreground":"#65737E"}},{"scope":["meta.separator"],"settings":{"fontStyle":"bold","foreground":"#65737E"}},{"scope":["markup.table"],"settings":{"foreground":"#EEFFFF"}}],"type":"dark"}'));export{t as default}; diff --git a/docs/assets/awk-BQ_ZzaAg.js b/docs/assets/awk-BQ_ZzaAg.js new file mode 100644 index 0000000..4f7bdac --- /dev/null +++ b/docs/assets/awk-BQ_ZzaAg.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"AWK","fileTypes":["awk"],"name":"awk","patterns":[{"include":"#comment"},{"include":"#procedure"},{"include":"#pattern"}],"repository":{"builtin-pattern":{"match":"\\\\b(BEGINFILE|BEGIN|ENDFILE|END)\\\\b","name":"constant.language.awk"},"command":{"patterns":[{"match":"\\\\b(?:next|printf??)\\\\b","name":"keyword.other.command.awk"},{"match":"\\\\b(?:close|getline|delete|system)\\\\b","name":"keyword.other.command.nawk"},{"match":"\\\\b(?:fflush|nextfile)\\\\b","name":"keyword.other.command.bell-awk"}]},"comment":{"match":"#.*","name":"comment.line.number-sign.awk"},"constant":{"patterns":[{"include":"#numeric-constant"},{"include":"#string-constant"}]},"escaped-char":{"match":"\\\\\\\\(?:[\\"/\\\\\\\\abfnrtv]|x\\\\h{2}|[0-7]{3})","name":"constant.character.escape.awk"},"expression":{"patterns":[{"include":"#command"},{"include":"#function"},{"include":"#constant"},{"include":"#variable"},{"include":"#regexp-in-expression"},{"include":"#operator"},{"include":"#groupings"}]},"function":{"patterns":[{"match":"\\\\b(?:exp|int|log|sqrt|index|length|split|sprintf|substr)\\\\b","name":"support.function.awk"},{"match":"\\\\b(?:atan2|cos|rand|sin|srand|gsub|match|sub|tolower|toupper)\\\\b","name":"support.function.nawk"},{"match":"\\\\b(?:gensub|strftime|systime)\\\\b","name":"support.function.gawk"}]},"function-definition":{"begin":"\\\\b(function)\\\\s+(\\\\w+)(\\\\()","beginCaptures":{"1":{"name":"storage.type.function.awk"},"2":{"name":"entity.name.function.awk"},"3":{"name":"punctuation.definition.parameters.begin.awk"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.awk"}},"patterns":[{"match":"\\\\b(\\\\w+)\\\\b","name":"variable.parameter.function.awk"},{"match":"\\\\b(,)\\\\b","name":"punctuation.separator.parameters.awk"}]},"groupings":{"patterns":[{"match":"\\\\(","name":"meta.brace.round.awk"},{"match":"\\\\)","name":"meta.brace.round.awk"},{"match":",","name":"punctuation.separator.parameters.awk"}]},"keyword":{"match":"\\\\b(?:break|continue|do|while|exit|for|if|else|return)\\\\b","name":"keyword.control.awk"},"numeric-constant":{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)?(?:e[-+][0-9]+)?\\\\b","name":"constant.numeric.awk"},"operator":{"patterns":[{"match":"(!?~|[!<=>]=|[<>])","name":"keyword.operator.comparison.awk"},{"match":"\\\\b(in)\\\\b","name":"keyword.operator.comparison.awk"},{"match":"([-%*+/^]=|\\\\+\\\\+|--|>>|=)","name":"keyword.operator.assignment.awk"},{"match":"(\\\\|\\\\||&&|!)","name":"keyword.operator.boolean.awk"},{"match":"([-%*+/^])","name":"keyword.operator.arithmetic.awk"},{"match":"([:?])","name":"keyword.operator.trinary.awk"},{"match":"([]\\\\[])","name":"keyword.operator.index.awk"}]},"pattern":{"patterns":[{"include":"#regexp-as-pattern"},{"include":"#function-definition"},{"include":"#builtin-pattern"},{"include":"#expression"}]},"procedure":{"begin":"\\\\{","end":"}","patterns":[{"include":"#comment"},{"include":"#procedure"},{"include":"#keyword"},{"include":"#expression"}]},"regex-as-assignment":{"begin":"([^-!%*+/<=>^]=)\\\\s*(/)","beginCaptures":{"1":{"name":"keyword.operator.assignment.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regex-as-comparison":{"begin":"(!?~)\\\\s*(/)","beginCaptures":{"1":{"name":"keyword.operator.comparison.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regex-as-first-argument":{"begin":"(\\\\()\\\\s*(/)","beginCaptures":{"1":{"name":"meta.brace.round.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regex-as-nth-argument":{"begin":"(,)\\\\s*(/)","beginCaptures":{"1":{"name":"punctuation.separator.parameters.awk"},"2":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regexp-as-pattern":{"begin":"/","beginCaptures":{"0":{"name":"punctuation.definition.regex.begin.awk"}},"contentName":"string.regexp","end":"/","endCaptures":{"0":{"name":"punctuation.definition.regex.end.awk"}},"patterns":[{"include":"source.regexp"}]},"regexp-in-expression":{"patterns":[{"include":"#regex-as-assignment"},{"include":"#regex-as-comparison"},{"include":"#regex-as-first-argument"},{"include":"#regex-as-nth-argument"}]},"string-constant":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.awk"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.awk"}},"name":"string.quoted.double.awk","patterns":[{"include":"#escaped-char"}]},"variable":{"patterns":[{"match":"\\\\$[0-9]+","name":"variable.language.awk"},{"match":"\\\\b(?:FILENAME|FS|NF|NR|OFMT|OFS|ORS|RS)\\\\b","name":"variable.language.awk"},{"match":"\\\\b(?:ARGC|ARGV|CONVFMT|ENVIRON|FNR|RLENGTH|RSTART|SUBSEP)\\\\b","name":"variable.language.nawk"},{"match":"\\\\b(?:ARGIND|ERRNO|FIELDWIDTHS|IGNORECASE|RT)\\\\b","name":"variable.language.gawk"}]}},"scopeName":"source.awk"}'))];export{e as default}; diff --git a/docs/assets/ayu-dark-BlrvTbf4.js b/docs/assets/ayu-dark-BlrvTbf4.js new file mode 100644 index 0000000..fea05ca --- /dev/null +++ b/docs/assets/ayu-dark-BlrvTbf4.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#e6b450b3","activityBar.background":"#0b0e14","activityBar.border":"#0b0e14","activityBar.foreground":"#565b66cc","activityBar.inactiveForeground":"#565b6699","activityBarBadge.background":"#e6b450","activityBarBadge.foreground":"#0b0e14","badge.background":"#e6b45033","badge.foreground":"#e6b450","button.background":"#e6b450","button.foreground":"#0b0e14","button.hoverBackground":"#e1af4b","button.secondaryBackground":"#565b6633","button.secondaryForeground":"#bfbdb6","button.secondaryHoverBackground":"#565b6680","debugConsoleInputIcon.foreground":"#e6b450","debugExceptionWidget.background":"#0f131a","debugExceptionWidget.border":"#11151c","debugIcon.breakpointDisabledForeground":"#f2966880","debugIcon.breakpointForeground":"#f29668","debugToolBar.background":"#0f131a","descriptionForeground":"#565b66","diffEditor.diagonalFill":"#11151c","diffEditor.insertedTextBackground":"#7fd9621f","diffEditor.removedTextBackground":"#f26d781f","dropdown.background":"#0d1017","dropdown.border":"#565b6645","dropdown.foreground":"#565b66","editor.background":"#0b0e14","editor.findMatchBackground":"#6c5980","editor.findMatchBorder":"#6c5980","editor.findMatchHighlightBackground":"#6c598066","editor.findMatchHighlightBorder":"#5f4c7266","editor.findRangeHighlightBackground":"#6c598040","editor.foreground":"#bfbdb6","editor.inactiveSelectionBackground":"#409fff21","editor.lineHighlightBackground":"#131721","editor.rangeHighlightBackground":"#6c598033","editor.selectionBackground":"#409fff4d","editor.selectionHighlightBackground":"#7fd96226","editor.selectionHighlightBorder":"#7fd96200","editor.snippetTabstopHighlightBackground":"#7fd96233","editor.wordHighlightBackground":"#73b8ff14","editor.wordHighlightBorder":"#73b8ff80","editor.wordHighlightStrongBackground":"#7fd96214","editor.wordHighlightStrongBorder":"#7fd96280","editorBracketMatch.background":"#6c73804d","editorBracketMatch.border":"#6c73804d","editorCodeLens.foreground":"#acb6bf8c","editorCursor.foreground":"#e6b450","editorError.foreground":"#d95757","editorGroup.background":"#0f131a","editorGroup.border":"#11151c","editorGroupHeader.noTabsBackground":"#0b0e14","editorGroupHeader.tabsBackground":"#0b0e14","editorGroupHeader.tabsBorder":"#0b0e14","editorGutter.addedBackground":"#7fd962cc","editorGutter.deletedBackground":"#f26d78cc","editorGutter.modifiedBackground":"#73b8ffcc","editorHoverWidget.background":"#0f131a","editorHoverWidget.border":"#11151c","editorIndentGuide.activeBackground":"#6c738080","editorIndentGuide.background":"#6c738033","editorLineNumber.activeForeground":"#6c7380e6","editorLineNumber.foreground":"#6c738099","editorLink.activeForeground":"#e6b450","editorMarkerNavigation.background":"#0f131a","editorOverviewRuler.addedForeground":"#7fd962","editorOverviewRuler.border":"#11151c","editorOverviewRuler.bracketMatchForeground":"#6c7380b3","editorOverviewRuler.deletedForeground":"#f26d78","editorOverviewRuler.errorForeground":"#d95757","editorOverviewRuler.findMatchForeground":"#6c5980","editorOverviewRuler.modifiedForeground":"#73b8ff","editorOverviewRuler.warningForeground":"#e6b450","editorOverviewRuler.wordHighlightForeground":"#73b8ff66","editorOverviewRuler.wordHighlightStrongForeground":"#7fd96266","editorRuler.foreground":"#6c738033","editorSuggestWidget.background":"#0f131a","editorSuggestWidget.border":"#11151c","editorSuggestWidget.highlightForeground":"#e6b450","editorSuggestWidget.selectedBackground":"#47526640","editorWarning.foreground":"#e6b450","editorWhitespace.foreground":"#6c738099","editorWidget.background":"#0f131a","editorWidget.border":"#11151c","errorForeground":"#d95757","extensionButton.prominentBackground":"#e6b450","extensionButton.prominentForeground":"#0d1017","extensionButton.prominentHoverBackground":"#e1af4b","focusBorder":"#e6b450b3","foreground":"#565b66","gitDecoration.conflictingResourceForeground":"","gitDecoration.deletedResourceForeground":"#f26d78b3","gitDecoration.ignoredResourceForeground":"#565b6680","gitDecoration.modifiedResourceForeground":"#73b8ffb3","gitDecoration.submoduleResourceForeground":"#d2a6ffb3","gitDecoration.untrackedResourceForeground":"#7fd962b3","icon.foreground":"#565b66","input.background":"#0d1017","input.border":"#565b6645","input.foreground":"#bfbdb6","input.placeholderForeground":"#565b6680","inputOption.activeBackground":"#e6b45033","inputOption.activeBorder":"#e6b4504d","inputOption.activeForeground":"#e6b450","inputValidation.errorBackground":"#0d1017","inputValidation.errorBorder":"#d95757","inputValidation.infoBackground":"#0b0e14","inputValidation.infoBorder":"#39bae6","inputValidation.warningBackground":"#0b0e14","inputValidation.warningBorder":"#ffb454","keybindingLabel.background":"#565b661a","keybindingLabel.border":"#bfbdb61a","keybindingLabel.bottomBorder":"#bfbdb61a","keybindingLabel.foreground":"#bfbdb6","list.activeSelectionBackground":"#47526640","list.activeSelectionForeground":"#bfbdb6","list.deemphasizedForeground":"#d95757","list.errorForeground":"#d95757","list.filterMatchBackground":"#5f4c7266","list.filterMatchBorder":"#6c598066","list.focusBackground":"#47526640","list.focusForeground":"#bfbdb6","list.focusOutline":"#47526640","list.highlightForeground":"#e6b450","list.hoverBackground":"#47526640","list.inactiveSelectionBackground":"#47526633","list.inactiveSelectionForeground":"#565b66","list.invalidItemForeground":"#565b664d","listFilterWidget.background":"#0f131a","listFilterWidget.noMatchesOutline":"#d95757","listFilterWidget.outline":"#e6b450","minimap.background":"#0b0e14","minimap.errorHighlight":"#d95757","minimap.findMatchHighlight":"#6c5980","minimap.selectionHighlight":"#409fff4d","minimapGutter.addedBackground":"#7fd962","minimapGutter.deletedBackground":"#f26d78","minimapGutter.modifiedBackground":"#73b8ff","panel.background":"#0b0e14","panel.border":"#11151c","panelTitle.activeBorder":"#e6b450","panelTitle.activeForeground":"#bfbdb6","panelTitle.inactiveForeground":"#565b66","peekView.border":"#47526640","peekViewEditor.background":"#0f131a","peekViewEditor.matchHighlightBackground":"#6c598066","peekViewEditor.matchHighlightBorder":"#5f4c7266","peekViewResult.background":"#0f131a","peekViewResult.fileForeground":"#bfbdb6","peekViewResult.lineForeground":"#565b66","peekViewResult.matchHighlightBackground":"#6c598066","peekViewResult.selectionBackground":"#47526640","peekViewTitle.background":"#47526640","peekViewTitleDescription.foreground":"#565b66","peekViewTitleLabel.foreground":"#bfbdb6","pickerGroup.border":"#11151c","pickerGroup.foreground":"#565b6680","progressBar.background":"#e6b450","scrollbar.shadow":"#11151c00","scrollbarSlider.activeBackground":"#565b66b3","scrollbarSlider.background":"#565b6666","scrollbarSlider.hoverBackground":"#565b6699","selection.background":"#409fff4d","settings.headerForeground":"#bfbdb6","settings.modifiedItemIndicator":"#73b8ff","sideBar.background":"#0b0e14","sideBar.border":"#0b0e14","sideBarSectionHeader.background":"#0b0e14","sideBarSectionHeader.border":"#0b0e14","sideBarSectionHeader.foreground":"#565b66","sideBarTitle.foreground":"#565b66","statusBar.background":"#0b0e14","statusBar.border":"#0b0e14","statusBar.debuggingBackground":"#f29668","statusBar.debuggingForeground":"#0d1017","statusBar.foreground":"#565b66","statusBar.noFolderBackground":"#0f131a","statusBarItem.activeBackground":"#565b6633","statusBarItem.hoverBackground":"#565b6633","statusBarItem.prominentBackground":"#11151c","statusBarItem.prominentHoverBackground":"#00000030","statusBarItem.remoteBackground":"#e6b450","statusBarItem.remoteForeground":"#0d1017","tab.activeBackground":"#0b0e14","tab.activeBorder":"#e6b450","tab.activeForeground":"#bfbdb6","tab.border":"#0b0e14","tab.inactiveBackground":"#0b0e14","tab.inactiveForeground":"#565b66","tab.unfocusedActiveBorder":"#565b66","tab.unfocusedActiveForeground":"#565b66","tab.unfocusedInactiveForeground":"#565b66","terminal.ansiBlack":"#11151c","terminal.ansiBlue":"#53bdfa","terminal.ansiBrightBlack":"#686868","terminal.ansiBrightBlue":"#59c2ff","terminal.ansiBrightCyan":"#95e6cb","terminal.ansiBrightGreen":"#aad94c","terminal.ansiBrightMagenta":"#d2a6ff","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#ffb454","terminal.ansiCyan":"#90e1c6","terminal.ansiGreen":"#7fd962","terminal.ansiMagenta":"#cda1fa","terminal.ansiRed":"#ea6c73","terminal.ansiWhite":"#c7c7c7","terminal.ansiYellow":"#f9af4f","terminal.background":"#0b0e14","terminal.foreground":"#bfbdb6","textBlockQuote.background":"#0f131a","textLink.activeForeground":"#e6b450","textLink.foreground":"#e6b450","textPreformat.foreground":"#bfbdb6","titleBar.activeBackground":"#0b0e14","titleBar.activeForeground":"#bfbdb6","titleBar.border":"#0b0e14","titleBar.inactiveBackground":"#0b0e14","titleBar.inactiveForeground":"#565b66","tree.indentGuidesStroke":"#6c738080","walkThrough.embeddedEditorBackground":"#0f131a","welcomePage.buttonBackground":"#e6b45066","welcomePage.progress.background":"#131721","welcomePage.tileBackground":"#0b0e14","welcomePage.tileShadow":"#00000080","widget.shadow":"#00000080"},"displayName":"Ayu Dark","name":"ayu-dark","semanticHighlighting":true,"semanticTokenColors":{"parameter.label":"#bfbdb6"},"tokenColors":[{"settings":{"background":"#0b0e14","foreground":"#bfbdb6"}},{"scope":["comment"],"settings":{"fontStyle":"italic","foreground":"#acb6bf8c"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#aad94c"}},{"scope":["string.regexp","constant.character","constant.other"],"settings":{"foreground":"#95e6cb"}},{"scope":["constant.numeric"],"settings":{"foreground":"#d2a6ff"}},{"scope":["constant.language"],"settings":{"foreground":"#d2a6ff"}},{"scope":["variable","variable.parameter.function-call"],"settings":{"foreground":"#bfbdb6"}},{"scope":["variable.member"],"settings":{"foreground":"#f07178"}},{"scope":["variable.language"],"settings":{"fontStyle":"italic","foreground":"#39bae6"}},{"scope":["storage"],"settings":{"foreground":"#ff8f40"}},{"scope":["keyword"],"settings":{"foreground":"#ff8f40"}},{"scope":["keyword.operator"],"settings":{"foreground":"#f29668"}},{"scope":["punctuation.separator","punctuation.terminator"],"settings":{"foreground":"#bfbdb6b3"}},{"scope":["punctuation.section"],"settings":{"foreground":"#bfbdb6"}},{"scope":["punctuation.accessor"],"settings":{"foreground":"#f29668"}},{"scope":["punctuation.definition.template-expression"],"settings":{"foreground":"#ff8f40"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#ff8f40"}},{"scope":["meta.embedded"],"settings":{"foreground":"#bfbdb6"}},{"scope":["source.java storage.type","source.haskell storage.type","source.c storage.type"],"settings":{"foreground":"#59c2ff"}},{"scope":["entity.other.inherited-class"],"settings":{"foreground":"#39bae6"}},{"scope":["storage.type.function"],"settings":{"foreground":"#ff8f40"}},{"scope":["source.java storage.type.primitive"],"settings":{"foreground":"#39bae6"}},{"scope":["entity.name.function"],"settings":{"foreground":"#ffb454"}},{"scope":["variable.parameter","meta.parameter"],"settings":{"foreground":"#d2a6ff"}},{"scope":["variable.function","variable.annotation","meta.function-call.generic","support.function.go"],"settings":{"foreground":"#ffb454"}},{"scope":["support.function","support.macro"],"settings":{"foreground":"#f07178"}},{"scope":["entity.name.import","entity.name.package"],"settings":{"foreground":"#aad94c"}},{"scope":["entity.name"],"settings":{"foreground":"#59c2ff"}},{"scope":["entity.name.tag","meta.tag.sgml"],"settings":{"foreground":"#39bae6"}},{"scope":["support.class.component"],"settings":{"foreground":"#59c2ff"}},{"scope":["punctuation.definition.tag.end","punctuation.definition.tag.begin","punctuation.definition.tag"],"settings":{"foreground":"#39bae680"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#ffb454"}},{"scope":["support.constant"],"settings":{"fontStyle":"italic","foreground":"#f29668"}},{"scope":["support.type","support.class","source.go storage.type"],"settings":{"foreground":"#39bae6"}},{"scope":["meta.decorator variable.other","meta.decorator punctuation.decorator","storage.type.annotation"],"settings":{"foreground":"#e6b673"}},{"scope":["invalid"],"settings":{"foreground":"#d95757"}},{"scope":["meta.diff","meta.diff.header"],"settings":{"foreground":"#c594c5"}},{"scope":["source.ruby variable.other.readwrite"],"settings":{"foreground":"#ffb454"}},{"scope":["source.css entity.name.tag","source.sass entity.name.tag","source.scss entity.name.tag","source.less entity.name.tag","source.stylus entity.name.tag"],"settings":{"foreground":"#59c2ff"}},{"scope":["source.css support.type","source.sass support.type","source.scss support.type","source.less support.type","source.stylus support.type"],"settings":{"foreground":"#acb6bf8c"}},{"scope":["support.type.property-name"],"settings":{"fontStyle":"normal","foreground":"#39bae6"}},{"scope":["constant.numeric.line-number.find-in-files - match"],"settings":{"foreground":"#acb6bf8c"}},{"scope":["constant.numeric.line-number.match"],"settings":{"foreground":"#ff8f40"}},{"scope":["entity.name.filename.find-in-files"],"settings":{"foreground":"#aad94c"}},{"scope":["message.error"],"settings":{"foreground":"#d95757"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#aad94c"}},{"scope":["markup.underline.link","string.other.link"],"settings":{"foreground":"#39bae6"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":["markup.bold"],"settings":{"fontStyle":"bold","foreground":"#f07178"}},{"scope":["markup.italic markup.bold","markup.bold markup.italic"],"settings":{"fontStyle":"bold italic"}},{"scope":["markup.raw"],"settings":{"background":"#bfbdb605"}},{"scope":["markup.raw.inline"],"settings":{"background":"#bfbdb60f"}},{"scope":["meta.separator"],"settings":{"background":"#bfbdb60f","fontStyle":"bold","foreground":"#acb6bf8c"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#95e6cb"}},{"scope":["markup.list punctuation.definition.list.begin"],"settings":{"foreground":"#ffb454"}},{"scope":["markup.inserted"],"settings":{"foreground":"#7fd962"}},{"scope":["markup.changed"],"settings":{"foreground":"#73b8ff"}},{"scope":["markup.deleted"],"settings":{"foreground":"#f26d78"}},{"scope":["markup.strike"],"settings":{"foreground":"#e6b673"}},{"scope":["markup.table"],"settings":{"background":"#bfbdb60f","foreground":"#39bae6"}},{"scope":["text.html.markdown markup.inline.raw"],"settings":{"foreground":"#f29668"}},{"scope":["text.html.markdown meta.dummy.line-break"],"settings":{"background":"#acb6bf8c","foreground":"#acb6bf8c"}},{"scope":["punctuation.definition.markdown"],"settings":{"background":"#bfbdb6","foreground":"#acb6bf8c"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/badge-DAnNhy3O.js b/docs/assets/badge-DAnNhy3O.js new file mode 100644 index 0000000..9c56c3b --- /dev/null +++ b/docs/assets/badge-DAnNhy3O.js @@ -0,0 +1 @@ +import{s as i}from"./chunk-LvLJmgfZ.js";import{t as d}from"./react-BGmjiNul.js";import{t as l}from"./compiler-runtime-DeeZ7FnK.js";import{t as u}from"./jsx-runtime-DN_bIXfG.js";import{n as f,t as g}from"./cn-C1rgT0yh.js";var b=l();d();var c=i(u(),1),m=f("inline-flex items-center border rounded-full px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary hover:bg-primary/60 border-transparent text-primary-foreground",defaultOutline:"bg-(--blue-2) border-(--blue-8) text-(--blue-11)",secondary:"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",destructive:"bg-(--red-2) border-(--red-6) text-(--red-9) hover:bg-(--red-3)",success:"bg-(--grass-2) border-(--grass-5) text-(--grass-9) hover:bg-(--grass-3)",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),p=n=>{let r=(0,b.c)(10),e,t,a;r[0]===n?(e=r[1],t=r[2],a=r[3]):({className:e,variant:a,...t}=n,r[0]=n,r[1]=e,r[2]=t,r[3]=a);let o;r[4]!==e||r[5]!==a?(o=g(m({variant:a}),e),r[4]=e,r[5]=a,r[6]=o):o=r[6];let s;return r[7]!==t||r[8]!==o?(s=(0,c.jsx)("div",{className:o,...t}),r[7]=t,r[8]=o,r[9]=s):s=r[9],s};export{p as t}; diff --git a/docs/assets/ballerina-I1WhEvZA.js b/docs/assets/ballerina-I1WhEvZA.js new file mode 100644 index 0000000..25cd6a1 --- /dev/null +++ b/docs/assets/ballerina-I1WhEvZA.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Ballerina","fileTypes":["bal"],"name":"ballerina","patterns":[{"include":"#statements"}],"repository":{"access-modifier":{"patterns":[{"match":"(?","beginCaptures":{"0":{"name":"meta.arrow.ballerina storage.type.function.arrow.ballerina"}},"end":",|(?=})","patterns":[{"include":"#code"}]}]},"butExp":{"patterns":[{"begin":"\\\\bbut\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"patterns":[{"include":"#butExpBody"},{"include":"#comment"}]}]},"butExpBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"patterns":[{"include":"#parameter"},{"include":"#butClause"},{"include":"#comment"}]}]},"call":{"patterns":[{"match":"\'?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=\\\\()","name":"entity.name.function.ballerina"}]},"callableUnitBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#workerDef"},{"include":"#service-decl"},{"include":"#objectDec"},{"include":"#function-defn"},{"include":"#forkStatement"},{"include":"#code"}]}]},"class-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"name":"meta.class.body.ballerina","patterns":[{"include":"#comment"},{"include":"#mdDocumentation"},{"include":"#function-defn"},{"include":"#var-expr"},{"include":"#variable-initializer"},{"include":"#access-modifier"},{"include":"#keywords"},{"begin":"(?<=:)\\\\s*","end":"(?=[-\\\\])+,:;}\\\\s]|^\\\\s*$|^\\\\s*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\\\\b)"},{"include":"#decl-block"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"class-defn":{"begin":"(\\\\s+)(class)\\\\b|^class\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"0":{"name":"storage.type.class.ballerina keyword.other.ballerina"}},"end":"(?<=})","name":"meta.class.ballerina","patterns":[{"include":"#keywords"},{"captures":{"0":{"name":"entity.name.type.class.ballerina"}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"include":"#class-body"}]},"code":{"patterns":[{"include":"#booleans"},{"include":"#matchStatement"},{"include":"#butExp"},{"include":"#xml"},{"include":"#stringTemplate"},{"include":"#keywords"},{"include":"#strings"},{"include":"#comment"},{"include":"#mdDocumentation"},{"include":"#annotationAttachment"},{"include":"#numbers"},{"include":"#maps"},{"include":"#paranthesised"},{"include":"#paranthesisedBracket"},{"include":"#regex"}]},"comment":{"patterns":[{"match":"//.*","name":"comment.ballerina"}]},"constrainType":{"patterns":[{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ballerina"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ballerina"}},"patterns":[{"include":"#comment"},{"include":"#constrainType"},{"match":"\\\\b([$_[:alpha:]][$_[:alnum:]]*)\\\\b","name":"storage.type.ballerina"}]}]},"control-statement":{"patterns":[{"begin":"(?)","patterns":[{"include":"#code"}]}]},"expression":{"patterns":[{"include":"#keywords"},{"include":"#expressionWithoutIdentifiers"},{"include":"#identifiers"},{"include":"#regex"}]},"expression-operators":{"patterns":[{"match":"(?:\\\\*|(?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ballerina"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ballerina"},{"match":"[!=]==?","name":"keyword.operator.comparison.ballerina"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ballerina"},{"captures":{"1":{"name":"keyword.operator.logical.ballerina"},"2":{"name":"keyword.operator.assignment.compound.ballerina"},"3":{"name":"keyword.operator.arithmetic.ballerina"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.ballerina"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ballerina"},{"match":"=","name":"keyword.operator.assignment.ballerina"},{"match":"--","name":"keyword.operator.decrement.ballerina"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ballerina"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ballerina"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#xml"},{"include":"#string"},{"include":"#stringTemplate"},{"include":"#comment"},{"include":"#object-literal"},{"include":"#ternary-expression"},{"include":"#expression-operators"},{"include":"#literal"},{"include":"#paranthesised"},{"include":"#regex"}]},"flags-on-off":{"name":"meta.flags.regexp.ballerina","patterns":[{"begin":"(\\\\??)([imsx]*)(-?)([imsx]*)(:)","beginCaptures":{"1":{"name":"punctuation.other.non-capturing-group-begin.regexp.ballerina"},"2":{"name":"keyword.other.non-capturing-group.flags-on.regexp.ballerina"},"3":{"name":"punctuation.other.non-capturing-group.off.regexp.ballerina"},"4":{"name":"keyword.other.non-capturing-group.flags-off.regexp.ballerina"},"5":{"name":"punctuation.other.non-capturing-group-end.regexp.ballerina"}},"end":"()","name":"constant.other.flag.regexp.ballerina","patterns":[{"include":"#regexp"},{"include":"#template-substitution-element"}]}]},"for-loop":{"begin":"(?","beginCaptures":{"0":{"name":"meta.arrow.ballerina storage.type.function.arrow.ballerina"}},"end":"(?=;)|(?=,)|(?=\\\\);)","name":"meta.block.ballerina","patterns":[{"include":"#natural-expr"},{"include":"#statements"},{"include":"#punctuation-comma"}]},{"match":"\\\\*","name":"keyword.generator.asterisk.ballerina"}]},"function-defn":{"begin":"(?:(p(?:ublic|rivate))\\\\s+)?(function)\\\\b","beginCaptures":{"1":{"name":"keyword.other.ballerina"},"2":{"name":"keyword.other.ballerina"}},"end":"(?<=;)|(?<=})|(?<=,)|(?=\\\\);)","name":"meta.function.ballerina","patterns":[{"match":"\\\\bexternal\\\\b","name":"keyword.ballerina"},{"include":"#stringTemplate"},{"include":"#annotationAttachment"},{"include":"#functionReturns"},{"include":"#functionName"},{"include":"#functionParameters"},{"include":"#punctuation-semicolon"},{"include":"#function-body"},{"include":"#regex"}]},"function-parameters-body":{"patterns":[{"include":"#comment"},{"include":"#numbers"},{"include":"#string"},{"include":"#annotationAttachment"},{"include":"#recordLiteral"},{"include":"#keywords"},{"include":"#parameter-name"},{"include":"#array-literal"},{"include":"#variable-initializer"},{"include":"#identifiers"},{"include":"#regex"},{"match":",","name":"punctuation.separator.parameter.ballerina"}]},"functionName":{"patterns":[{"match":"\\\\bfunction\\\\b","name":"keyword.other.ballerina"},{"include":"#type-primitive"},{"include":"#self-literal"},{"include":"#string"},{"captures":{"2":{"name":"variable.language.this.ballerina"},"3":{"name":"keyword.other.ballerina"},"4":{"name":"support.type.primitive.ballerina"},"5":{"name":"storage.type.ballerina"},"6":{"name":"meta.definition.function.ballerina entity.name.function.ballerina"}},"match":"\\\\s+(\\\\b(self)|\\\\b(is|new|isolated|null|function|in)\\\\b|(string|int|boolean|float|byte|decimal|json|xml|anydata)\\\\b|\\\\b(readonly|error|map)\\\\b|([$_[:alpha:]][$_[:alnum:]]*))"}]},"functionParameters":{"begin":"[(\\\\[]","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ballerina"}},"end":"[])]","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ballerina"}},"name":"meta.parameters.ballerina","patterns":[{"include":"#function-parameters-body"}]},"functionReturns":{"begin":"\\\\s*(returns)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.ballerina"}},"end":"(?==>)|(=)|(?=\\\\{)|(\\\\))|(?=;)","endCaptures":{"1":{"name":"keyword.operator.ballerina"}},"name":"meta.type.function.return.ballerina","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numbers"},{"include":"#keywords"},{"include":"#type-primitive"},{"captures":{"1":{"name":"support.type.primitive.ballerina"}},"match":"\\\\s*\\\\b(var)(?=\\\\s+|[?\\\\[])"},{"match":"\\\\|","name":"keyword.operator.ballerina"},{"match":"\\\\?","name":"keyword.operator.optional.ballerina"},{"include":"#type-annotation"},{"include":"#type-tuple"},{"include":"#keywords"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ballerina"}]},"functionType":{"patterns":[{"begin":"\\\\bfunction\\\\b","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"(?=,)|(?=\\\\|)|(?=:)|(?==>)|(?=\\\\))|(?=])","patterns":[{"include":"#comment"},{"include":"#functionTypeParamList"},{"include":"#functionTypeReturns"}]}]},"functionTypeParamList":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"delimiter.parenthesis"}},"end":"\\\\)","endCaptures":{"0":{"name":"delimiter.parenthesis"}},"patterns":[{"match":"public","name":"keyword"},{"include":"#annotationAttachment"},{"include":"#recordLiteral"},{"include":"#record"},{"include":"#objectDec"},{"include":"#functionType"},{"include":"#constrainType"},{"include":"#parameterTuple"},{"include":"#functionTypeType"},{"include":"#comment"}]}]},"functionTypeReturns":{"patterns":[{"begin":"\\\\breturns\\\\b","beginCaptures":{"0":{"name":"keyword"}},"end":"(?=,)|\\\\||(?=])|(?=\\\\))","patterns":[{"include":"#functionTypeReturnsParameter"},{"include":"#comment"}]}]},"functionTypeReturnsParameter":{"patterns":[{"begin":"((?=record|object|function)|[$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"(?=,)|[:|]|(?==>)|(?=\\\\))|(?=])","patterns":[{"include":"#record"},{"include":"#objectDec"},{"include":"#functionType"},{"include":"#constrainType"},{"include":"#defaultValue"},{"include":"#comment"},{"include":"#parameterTuple"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"default.variable.parameter.ballerina"}]}]},"functionTypeType":{"patterns":[{"begin":"[$_[:alpha:]][$_[:alnum:]]*","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"(?=,)|\\\\||(?=])|(?=\\\\))"}]},"identifiers":{"patterns":[{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"},"3":{"name":"entity.name.function.ballerina"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*((((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((((<\\\\s*)$|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"},"3":{"name":"entity.name.function.ballerina"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=\\\\()"},{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"},"3":{"name":"variable.other.property.ballerina"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#type-primitive"},{"include":"#self-literal"},{"match":"\\\\b(check|foreach|if|checkpanic)\\\\b","name":"keyword.control.ballerina"},{"include":"#natural-expr"},{"include":"#call"},{"match":"\\\\b(var)\\\\b","name":"support.type.primitive.ballerina"},{"captures":{"1":{"name":"variable.other.readwrite.ballerina"},"3":{"name":"punctuation.accessor.ballerina"},"4":{"name":"entity.name.function.ballerina"},"5":{"name":"punctuation.definition.parameters.begin.ballerina"},"6":{"name":"punctuation.definition.parameters.end.ballerina"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)((\\\\.)([$_[:alpha:]][$_[:alnum:]]*)(\\\\()(\\\\)))?"},{"match":"(\')([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.property.ballerina"},{"include":"#type-annotation"}]},"if-statement":{"patterns":[{"begin":"(?)","name":"meta.arrow.ballerina storage.type.function.arrow.ballerina"},{"match":"([-!%+]|~=|===?|=|!==??|[\\\\&<>|]|\\\\?:|\\\\.\\\\.\\\\.|<=|>=|&&|\\\\|\\\\||~|>>>??)","name":"keyword.operator.ballerina"},{"include":"#types"},{"include":"#self-literal"},{"include":"#type-primitive"}]},"literal":{"patterns":[{"include":"#booleans"},{"include":"#numbers"},{"include":"#strings"},{"include":"#maps"},{"include":"#self-literal"},{"include":"#array-literal"}]},"maps":{"patterns":[{"begin":"\\\\{","end":"}","patterns":[{"include":"#code"}]}]},"matchBindingPattern":{"patterns":[{"begin":"var","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"(?==>)|,","patterns":[{"include":"#errorDestructure"},{"include":"#code"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.parameter.ballerina"}]}]},"matchStatement":{"patterns":[{"begin":"\\\\bmatch\\\\b","beginCaptures":{"0":{"name":"keyword.control.ballerina"}},"end":"}","patterns":[{"include":"#matchStatementBody"},{"include":"#comment"},{"include":"#code"}]}]},"matchStatementBody":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina.documentation"}},"patterns":[{"include":"#literal"},{"include":"#matchBindingPattern"},{"include":"#matchStatementPatternClause"},{"include":"#comment"},{"include":"#code"}]}]},"matchStatementPatternClause":{"patterns":[{"begin":"=>","beginCaptures":{"0":{"name":"keyword.ballerina"}},"end":"((})|[,;])","patterns":[{"include":"#callableUnitBody"},{"include":"#code"}]}]},"mdDocumentation":{"begin":"#","end":"[\\\\n\\\\r]+","name":"comment.mddocs.ballerina","patterns":[{"include":"#mdDocumentationReturnParamDescription"},{"include":"#mdDocumentationParamDescription"}]},"mdDocumentationParamDescription":{"patterns":[{"begin":"(\\\\+\\\\s+)(\'?[$_[:alpha:]][$_[:alnum:]]*)(\\\\s*-\\\\s+)","beginCaptures":{"1":{"name":"keyword.operator.ballerina"},"2":{"name":"variable.other.readwrite.ballerina"},"3":{"name":"keyword.operator.ballerina"}},"end":"(?=[^\\\\n\\\\r#]|# *?\\\\+)","patterns":[{"match":"#.*","name":"comment.mddocs.paramdesc.ballerina"}]}]},"mdDocumentationReturnParamDescription":{"patterns":[{"begin":"(#) *?(\\\\+) *(return) *(-)?(.*)","beginCaptures":{"1":{"name":"comment.mddocs.ballerina"},"2":{"name":"keyword.ballerina"},"3":{"name":"keyword.ballerina"},"4":{"name":"keyword.ballerina"},"5":{"name":"comment.mddocs.returnparamdesc.ballerina"}},"end":"(?=[^\\\\n\\\\r#]|# *?\\\\+)","patterns":[{"match":"#.*","name":"comment.mddocs.returnparamdesc.ballerina"}]}]},"multiType":{"patterns":[{"match":"(?<=\\\\|)([$_[:alpha:]][$_[:alnum:]]*)|([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\|)","name":"storage.type.ballerina"},{"match":"\\\\|","name":"keyword.operator.ballerina"}]},"natural-expr":{"patterns":[{"begin":"natural","beginCaptures":{"0":{"name":"keyword.other.ballerina"}},"end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#natural-expr-body"}]}]},"natural-expr-body":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"contentName":"string.template.ballerina","end":"(?=})","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"},{"include":"#templateVariable"}]}]},"numbers":{"patterns":[{"match":"\\\\b(?:0[Xx][A-Fa-f\\\\d]+\\\\b|\\\\d+(?:\\\\.(?:\\\\d+|$))?)","name":"constant.numeric.decimal.ballerina"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"name":"meta.objectliteral.ballerina","patterns":[{"include":"#object-member"},{"include":"#punctuation-comma"}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#function-defn"},{"include":"#literal"},{"include":"#keywords"},{"include":"#expression"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.ballerina meta.object-literal.key.ballerina","patterns":[{"include":"#comment"}]},{"begin":"(?=[\\"\'`])","end":"(?=:)|((?<=[\\"\'`])(?=((\\\\s*[(,<}])|(\\\\n*})|(\\\\s+(as)\\\\s+))))","name":"meta.object.member.ballerina meta.object-literal.key.ballerina","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((((<\\\\s*)$|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.ballerina"},{"captures":{"0":{"name":"meta.object-literal.key.ballerina"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.ballerina"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ballerina"}},"end":"(?=[,}])","name":"meta.object.member.ballerina","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.ballerina"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.ballerina"},{"captures":{"1":{"name":"keyword.control.as.ballerina"},"2":{"name":"storage.modifier.ballerina"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?)|(?=\\\\))|(?=])","patterns":[{"include":"#parameterWithDescriptor"},{"include":"#record"},{"include":"#objectDec"},{"include":"#functionType"},{"include":"#constrainType"},{"include":"#defaultValue"},{"include":"#comment"},{"include":"#parameterTuple"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"default.variable.parameter.ballerina"}]}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"support.type.primitive.ballerina"}},"match":"\\\\s*\\\\b(var)\\\\s+"},{"captures":{"2":{"name":"keyword.operator.rest.ballerina"},"3":{"name":"support.type.primitive.ballerina"},"4":{"name":"keyword.other.ballerina"},"5":{"name":"constant.language.boolean.ballerina"},"6":{"name":"keyword.control.flow.ballerina"},"7":{"name":"storage.type.ballerina"},"8":{"name":"variable.parameter.ballerina"},"9":{"name":"variable.parameter.ballerina"},"10":{"name":"keyword.operator.optional.ballerina"}},"match":"(?:(?)|(?=\\\\))","patterns":[{"include":"#record"},{"include":"#objectDec"},{"include":"#parameterTupleType"},{"include":"#parameterTupleEnd"},{"include":"#comment"}]}]},"parameterTupleEnd":{"patterns":[{"begin":"]","end":"(?=,)|(?=\\\\|)|(?=:)|(?==>)|(?=\\\\))","patterns":[{"include":"#defaultWithParentheses"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"default.variable.parameter.ballerina"}]}]},"parameterTupleType":{"patterns":[{"begin":"[$_[:alpha:]][$_[:alnum:]]*","beginCaptures":{"0":{"name":"storage.type.ballerina"}},"end":"[,|]|(?=])"}]},"parameterWithDescriptor":{"patterns":[{"begin":"&","beginCaptures":{"0":{"name":"keyword.operator.ballerina"}},"end":"(?=,)|(?=\\\\|)|(?=\\\\))","patterns":[{"include":"#parameter"}]}]},"parameters":{"patterns":[{"match":"\\\\s*(return|break|continue|check|checkpanic|panic|trap|from|where)\\\\b","name":"keyword.control.flow.ballerina"},{"match":"\\\\s*(let|select)\\\\b","name":"keyword.other.ballerina"},{"match":",","name":"punctuation.separator.parameter.ballerina"}]},"paranthesised":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ballerina"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ballerina"}},"name":"meta.brace.round.block.ballerina","patterns":[{"include":"#self-literal"},{"include":"#function-defn"},{"include":"#decl-block"},{"include":"#comment"},{"include":"#string"},{"include":"#parameters"},{"include":"#annotationAttachment"},{"include":"#recordLiteral"},{"include":"#stringTemplate"},{"include":"#parameter-name"},{"include":"#variable-initializer"},{"include":"#expression"},{"include":"#regex"}]},"paranthesisedBracket":{"patterns":[{"begin":"\\\\[","end":"]","patterns":[{"include":"#comment"},{"include":"#code"}]}]},"punctuation-accessor":{"patterns":[{"captures":{"1":{"name":"punctuation.accessor.ballerina"},"2":{"name":"punctuation.accessor.optional.ballerina"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"}]},"punctuation-comma":{"patterns":[{"match":",","name":"punctuation.separator.comma.ballerina"}]},"punctuation-semicolon":{"patterns":[{"match":";","name":"punctuation.terminator.statement.ballerina"}]},"record":{"begin":"\\\\brecord\\\\b","beginCaptures":{"0":{"name":"keyword.other.ballerina"}},"end":"(?<=})","name":"meta.record.ballerina","patterns":[{"include":"#recordBody"}]},"recordBody":{"patterns":[{"include":"#decl-block"}]},"recordLiteral":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ballerina"}},"patterns":[{"include":"#code"}]}]},"regex":{"patterns":[{"begin":"\\\\b(re)(\\\\s*)(`)","beginCaptures":{"1":{"name":"support.type.primitive.ballerina"},"3":{"name":"punctuation.definition.regexp.template.begin.ballerina"}},"end":"`","endCaptures":{"1":{"name":"punctuation.definition.regexp.template.end.ballerina"}},"name":"regexp.template.ballerina","patterns":[{"include":"#template-substitution-element"},{"include":"#regexp"}]}]},"regex-character-class":{"patterns":[{"match":"\\\\\\\\[DSWdnrstw]|\\\\.","name":"keyword.other.character-class.regexp.ballerina"},{"match":"\\\\\\\\[^Ppu]","name":"constant.character.escape.backslash.regexp"}]},"regex-unicode-properties-general-category":{"patterns":[{"match":"(Lu|Ll|Lt|Lm|Lo?|Mn|Mc|Me?|Nd|Nl|No?|Pc|Pd|Ps|Pe|Pi|Pf|Po?|Sm|Sc|Sk|So?|Zs|Zl|Zp?|Cf|Cc|Cn|Co?)","name":"constant.other.unicode-property-general-category.regexp.ballerina"}]},"regex-unicode-property-key":{"patterns":[{"begin":"([gs]c=)","beginCaptures":{"1":{"name":"keyword.other.unicode-property-key.regexp.ballerina"}},"end":"()","endCaptures":{"1":{"name":"punctuation.other.unicode-property.end.regexp.ballerina"}},"name":"keyword.other.unicode-property-key.regexp.ballerina","patterns":[{"include":"#regex-unicode-properties-general-category"}]}]},"regexp":{"patterns":[{"match":"[$^]","name":"keyword.control.assertion.regexp.ballerina"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp.ballerina"},{"match":"\\\\|","name":"keyword.operator.or.regexp.ballerina"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp.ballerina"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.group.regexp.ballerina"}},"name":"meta.group.assertion.regexp.ballerina","patterns":[{"include":"#template-substitution-element"},{"include":"#regexp"},{"include":"#flags-on-off"},{"include":"#unicode-property-escape"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.start.regexp.ballerina"},"2":{"name":"keyword.operator.negation.regexp.ballerina"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.end.regexp.ballerina"}},"name":"constant.other.character-class.set.regexp.ballerina","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.escape.backslash.regexp"},"3":{"name":"constant.character.numeric.regexp"},"4":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\[^Ppu]))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\[^Ppu]))","name":"constant.other.character-class.range.regexp.ballerina"},{"include":"#regex-character-class"},{"include":"#unicode-values"},{"include":"#unicode-property-escape"}]},{"include":"#template-substitution-element"},{"include":"#regex-character-class"},{"include":"#unicode-values"},{"include":"#unicode-property-escape"}]},"self-literal":{"patterns":[{"captures":{"1":{"name":"variable.language.this.ballerina"},"2":{"name":"punctuation.accessor.ballerina"},"3":{"name":"entity.name.function.ballerina"}},"match":"\\\\b(self)\\\\b\\\\s*(.)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=\\\\()"},{"match":"(??}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))(\\\\?)?","name":"meta.type.annotation.ballerina","patterns":[{"include":"#booleans"},{"include":"#stringTemplate"},{"include":"#regex"},{"include":"#self-literal"},{"include":"#xml"},{"include":"#call"},{"captures":{"1":{"name":"keyword.other.ballerina"},"2":{"name":"constant.language.boolean.ballerina"},"3":{"name":"keyword.control.ballerina"},"4":{"name":"storage.type.ballerina"},"5":{"name":"support.type.primitive.ballerina"},"6":{"name":"variable.other.readwrite.ballerina"},"8":{"name":"punctuation.accessor.ballerina"},"9":{"name":"entity.name.function.ballerina"},"10":{"name":"punctuation.definition.parameters.begin.ballerina"},"11":{"name":"punctuation.definition.parameters.end.ballerina"}},"match":"\\\\b(is|new|isolated|null|function|in)\\\\b|\\\\b(true|false)\\\\b|\\\\b(check|foreach|if|checkpanic)\\\\b|\\\\b(readonly|error|map)\\\\b|\\\\b(var)\\\\b|([$_[:alpha:]][$_[:alnum:]]*)((\\\\.)([$_[:alpha:]][$_[:alnum:]]*)(\\\\()(\\\\)))?"},{"match":"\\\\?","name":"keyword.operator.optional.ballerina"},{"include":"#multiType"},{"include":"#type"},{"include":"#paranthesised"}]}]},"type-primitive":{"patterns":[{"match":"(?|])","beginCaptures":{"2":{"name":"support.type.primitive.ballerina"},"3":{"name":"storage.type.ballerina"},"4":{"name":"meta.definition.variable.ballerina variable.other.readwrite.ballerina"}},"end":"(?=$|^|[,;=}])","endCaptures":{"0":{"name":"punctuation.terminator.statement.ballerina"}},"name":"meta.var-single-variable.expr.ballerina","patterns":[{"include":"#call"},{"include":"#self-literal"},{"include":"#if-statement"},{"include":"#string"},{"include":"#numbers"},{"include":"#keywords"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ballerina variable.other.readwrite.ballerina"},"2":{"name":"keyword.operator.definiteassignment.ballerina"}},"end":"(?=$|^|[,;=}]|((?])(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ballerina"}},"end":"(?=$|[]),;}])","patterns":[{"match":"(\')([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.property.ballerina"},{"include":"#xml"},{"include":"#function-defn"},{"include":"#expression"},{"include":"#punctuation-accessor"},{"include":"#regex"}]},{"begin":"(?])","beginCaptures":{"1":{"name":"keyword.operator.assignment.ballerina"}},"end":"(?=[]),;}]|((?","endCaptures":{"0":{"name":"comment.block.xml.ballerina"}},"name":"comment.block.xml.ballerina"}]},"xmlDoubleQuotedString":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"string.begin.ballerina"}},"end":"\\"","endCaptures":{"0":{"name":"string.end.ballerina"}},"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.ballerina"},{"match":".","name":"string"}]}]},"xmlSingleQuotedString":{"patterns":[{"begin":"\'","beginCaptures":{"0":{"name":"string.begin.ballerina"}},"end":"\'","endCaptures":{"0":{"name":"string.end.ballerina"}},"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.ballerina"},{"match":".","name":"string"}]}]},"xmlTag":{"patterns":[{"begin":"(","endCaptures":{"0":{"name":"punctuation.definition.tag.end.xml.ballerina"}},"patterns":[{"include":"#xmlSingleQuotedString"},{"include":"#xmlDoubleQuotedString"},{"match":"xmlns","name":"keyword.other.ballerina"},{"match":"([-0-9A-Za-z]+)","name":"entity.other.attribute-name.xml.ballerina"}]}]}},"scopeName":"source.ballerina"}'))];export{e as default}; diff --git a/docs/assets/bat-MOg75oLY.js b/docs/assets/bat-MOg75oLY.js new file mode 100644 index 0000000..d2d7463 --- /dev/null +++ b/docs/assets/bat-MOg75oLY.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Batch File","injections":{"L:meta.block.repeat.batchfile":{"patterns":[{"include":"#repeatParameter"}]}},"name":"bat","patterns":[{"include":"#commands"},{"include":"#comments"},{"include":"#constants"},{"include":"#controls"},{"include":"#escaped_characters"},{"include":"#labels"},{"include":"#numbers"},{"include":"#operators"},{"include":"#parens"},{"include":"#strings"},{"include":"#variables"}],"repository":{"command_set":{"patterns":[{"begin":"(?<=^|[@\\\\s])(?i:SET)(?=$|\\\\s)","beginCaptures":{"0":{"name":"keyword.command.batchfile"}},"end":"(?=$\\\\n|[\\\\&)<>|])","patterns":[{"include":"#command_set_inside"}]}]},"command_set_group":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.group.begin.batchfile"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.batchfile"}},"patterns":[{"include":"#command_set_inside_arithmetic"}]}]},"command_set_inside":{"patterns":[{"include":"#escaped_characters"},{"include":"#variables"},{"include":"#numbers"},{"include":"#parens"},{"include":"#command_set_strings"},{"include":"#strings"},{"begin":"([^ ][^=]*)(=)","beginCaptures":{"1":{"name":"variable.other.readwrite.batchfile"},"2":{"name":"keyword.operator.assignment.batchfile"}},"end":"(?=$\\\\n|[\\\\&)<>|])","patterns":[{"include":"#escaped_characters"},{"include":"#variables"},{"include":"#numbers"},{"include":"#parens"},{"include":"#strings"}]},{"begin":"\\\\s+/[Aa]\\\\s+","end":"(?=$\\\\n|[\\\\&)<>|])","name":"meta.expression.set.batchfile","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.batchfile"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.batchfile"}},"name":"string.quoted.double.batchfile","patterns":[{"include":"#command_set_inside_arithmetic"},{"include":"#command_set_group"},{"include":"#variables"}]},{"include":"#command_set_inside_arithmetic"},{"include":"#command_set_group"}]},{"begin":"\\\\s+/[Pp]\\\\s+","end":"(?=$\\\\n|[\\\\&)<>|])","patterns":[{"include":"#command_set_strings"},{"begin":"([^ ][^=]*)(=)","beginCaptures":{"1":{"name":"variable.other.readwrite.batchfile"},"2":{"name":"keyword.operator.assignment.batchfile"}},"end":"(?=$\\\\n|[\\\\&)<>|])","name":"meta.prompt.set.batchfile","patterns":[{"include":"#strings"}]}]}]},"command_set_inside_arithmetic":{"patterns":[{"include":"#command_set_operators"},{"include":"#numbers"},{"match":",","name":"punctuation.separator.batchfile"}]},"command_set_operators":{"patterns":[{"captures":{"1":{"name":"variable.other.readwrite.batchfile"},"2":{"name":"keyword.operator.assignment.augmented.batchfile"}},"match":"([^ ]*)((?:[-*+/]|%%|[\\\\&^|]|<<|>>)=)"},{"match":"[-*+/]|%%|[\\\\&^|]|<<|>>|~","name":"keyword.operator.arithmetic.batchfile"},{"match":"!","name":"keyword.operator.logical.batchfile"},{"captures":{"1":{"name":"variable.other.readwrite.batchfile"},"2":{"name":"keyword.operator.assignment.batchfile"}},"match":"([^ =]*)(=)"}]},"command_set_strings":{"patterns":[{"begin":"(\\")\\\\s*([^ ][^=]*)(=)","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.batchfile"},"2":{"name":"variable.other.readwrite.batchfile"},"3":{"name":"keyword.operator.assignment.batchfile"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.batchfile"}},"name":"string.quoted.double.batchfile","patterns":[{"include":"#variables"},{"include":"#numbers"},{"include":"#escaped_characters"}]}]},"commands":{"patterns":[{"match":"(?<=^|[@\\\\s])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net user??|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|sc|schtasks|scp|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|sftp|shadow|shift|showmount|shutdown|sort|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|wmic|wscript|wsl|xcopy)(?=$|\\\\s)","name":"keyword.command.batchfile"},{"begin":"(?i)(?<=^|[@\\\\s])(echo)(?:(?=$|[.:])|\\\\s+(?:(o(?:n|ff))(?=\\\\s*$))?)","beginCaptures":{"1":{"name":"keyword.command.batchfile"},"2":{"name":"keyword.other.special-method.batchfile"}},"end":"(?=$\\\\n|[\\\\&)<>|])","patterns":[{"include":"#escaped_characters"},{"include":"#variables"},{"include":"#numbers"},{"include":"#strings"}]},{"captures":{"1":{"name":"keyword.command.batchfile"},"2":{"name":"keyword.other.special-method.batchfile"}},"match":"(?i)(?<=^|[@\\\\s])(setlocal)(?:\\\\s*$|\\\\s+((?:En|Dis)able(?:Extensions|DelayedExpansion))(?=\\\\s*$))"},{"include":"#command_set"}]},"comments":{"patterns":[{"begin":"(?:^|(&))\\\\s*(?=(:[ +,:;=]))","beginCaptures":{"1":{"name":"keyword.operator.conditional.batchfile"}},"end":"\\\\n","patterns":[{"begin":"(:[ +,:;=])","beginCaptures":{"1":{"name":"punctuation.definition.comment.batchfile"}},"end":"(?=\\\\n)","name":"comment.line.colon.batchfile"}]},{"begin":"(?<=^|[@\\\\s])(?i)(REM)(\\\\.)","beginCaptures":{"1":{"name":"keyword.command.rem.batchfile"},"2":{"name":"punctuation.separator.batchfile"}},"end":"(?=$\\\\n|[\\\\&)<>|])","name":"comment.line.rem.batchfile"},{"begin":"(?<=^|[@\\\\s])(?i:rem)\\\\b","beginCaptures":{"0":{"name":"keyword.command.rem.batchfile"}},"end":"\\\\n","name":"comment.line.rem.batchfile","patterns":[{"match":"[<>|]","name":"invalid.illegal.unexpected-character.batchfile"}]}]},"constants":{"patterns":[{"match":"\\\\b(?i:NUL)\\\\b","name":"constant.language.batchfile"}]},"controls":{"patterns":[{"match":"(?i)(?<=^|\\\\s)(?:call|exit(?=$|\\\\s)|goto(?=$|[:\\\\s]))","name":"keyword.control.statement.batchfile"},{"captures":{"1":{"name":"keyword.control.conditional.batchfile"},"2":{"name":"keyword.operator.logical.batchfile"},"3":{"name":"keyword.other.special-method.batchfile"}},"match":"(?<=^|\\\\s)(?i)(if)\\\\s+(?:(not)\\\\s+)?(exist|defined|errorlevel|cmdextversion)(?=\\\\s)"},{"match":"(?<=^|\\\\s)(?i)(?:if|else)(?=$|\\\\s)","name":"keyword.control.conditional.batchfile"},{"begin":"(?<=^|[\\\\&(^\\\\s])(?i)for(?=\\\\s)","beginCaptures":{"0":{"name":"keyword.control.repeat.batchfile"}},"end":"\\\\n","name":"meta.block.repeat.batchfile","patterns":[{"begin":"(?<=[\\\\^\\\\s])(?i)in(?=\\\\s)","beginCaptures":{"0":{"name":"keyword.control.repeat.in.batchfile"}},"end":"(?<=[)^\\\\s])(?i)do(?=\\\\s)|\\\\n","endCaptures":{"0":{"name":"keyword.control.repeat.do.batchfile"}},"patterns":[{"include":"$self"}]},{"include":"$self"}]}]},"escaped_characters":{"patterns":[{"match":"%%|\\\\^\\\\^!|\\\\^(?=.)|\\\\^\\\\n","name":"constant.character.escape.batchfile"}]},"labels":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.batchfile"},"2":{"name":"keyword.other.special-method.batchfile"}},"match":"(?i)(?:^\\\\s*|(?<=call|goto)\\\\s*)(:)([^+,:;=\\\\s]\\\\S*)"}]},"numbers":{"patterns":[{"match":"(?<=^|[=\\\\s])(0[Xx]\\\\h*|[-+]?\\\\d+)(?=$|[<>\\\\s])","name":"constant.numeric.batchfile"}]},"operators":{"patterns":[{"match":"@(?=\\\\S)","name":"keyword.operator.at.batchfile"},{"match":"(?<=\\\\s)(?i:EQU|NEQ|LSS|LEQ|GTR|GEQ)(?=\\\\s)|==","name":"keyword.operator.comparison.batchfile"},{"match":"(?<=\\\\s)(?i)(NOT)(?=\\\\s)","name":"keyword.operator.logical.batchfile"},{"match":"(?[\\\\&>]?","name":"keyword.operator.redirection.batchfile"}]},"parens":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.group.begin.batchfile"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.batchfile"}},"name":"meta.group.batchfile","patterns":[{"match":"[,;]","name":"punctuation.separator.batchfile"},{"include":"$self"}]}]},"repeatParameter":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.batchfile"}},"match":"(%%)(?i:~[adfnpstxz]*(?:\\\\$PATH:)?)?[A-Za-z]","name":"variable.parameter.repeat.batchfile"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.batchfile"}},"end":"(\\")|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.batchfile"},"2":{"name":"invalid.illegal.newline.batchfile"}},"name":"string.quoted.double.batchfile","patterns":[{"match":"%%","name":"constant.character.escape.batchfile"},{"include":"#variables"}]}]},"variable":{"patterns":[{"begin":"%(?=[^%]+%)","beginCaptures":{"0":{"name":"punctuation.definition.variable.begin.batchfile"}},"end":"(%)|\\\\n","endCaptures":{"1":{"name":"punctuation.definition.variable.end.batchfile"}},"name":"variable.other.readwrite.batchfile","patterns":[{"begin":":~","beginCaptures":{"0":{"name":"punctuation.separator.batchfile"}},"end":"(?=[\\\\n%])","name":"meta.variable.substring.batchfile","patterns":[{"include":"#variable_substring"}]},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.batchfile"}},"end":"(?=[\\\\n%])","name":"meta.variable.substitution.batchfile","patterns":[{"include":"#variable_replace"},{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.batchfile"}},"end":"(?=[\\\\n%])","patterns":[{"include":"#variable_delayed_expansion"},{"match":"[^%]+","name":"string.unquoted.batchfile"}]}]}]}]},"variable_delayed_expansion":{"patterns":[{"begin":"!(?=[^!]+!)","beginCaptures":{"0":{"name":"punctuation.definition.variable.begin.batchfile"}},"end":"(!)|\\\\n","endCaptures":{"1":{"name":"punctuation.definition.variable.end.batchfile"}},"name":"variable.other.readwrite.batchfile","patterns":[{"begin":":~","beginCaptures":{"0":{"name":"punctuation.separator.batchfile"}},"end":"(?=[\\\\n!])","name":"meta.variable.substring.batchfile","patterns":[{"include":"#variable_substring"}]},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.batchfile"}},"end":"(?=[\\\\n!])","name":"meta.variable.substitution.batchfile","patterns":[{"include":"#escaped_characters"},{"include":"#variable_replace"},{"include":"#variable"},{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.batchfile"}},"end":"(?=[\\\\n!])","patterns":[{"include":"#variable"},{"match":"[^!]+","name":"string.unquoted.batchfile"}]}]}]}]},"variable_replace":{"patterns":[{"match":"[^\\\\n!%=]+","name":"string.unquoted.batchfile"}]},"variable_substring":{"patterns":[{"captures":{"1":{"name":"constant.numeric.batchfile"},"2":{"name":"punctuation.separator.batchfile"},"3":{"name":"constant.numeric.batchfile"}},"match":"([-+]?\\\\d+)(?:(,)([-+]?\\\\d+))?"}]},"variables":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.batchfile"}},"match":"(%)(?:(?i:~[adfnpstxz]*(?:\\\\$PATH:)?)?\\\\d|\\\\*)","name":"variable.parameter.batchfile"},{"include":"#variable"},{"include":"#variable_delayed_expansion"}]}},"scopeName":"source.batchfile","aliases":["batch"]}'))];export{e as default}; diff --git a/docs/assets/beancount-98JxfrHB.js b/docs/assets/beancount-98JxfrHB.js new file mode 100644 index 0000000..d195382 --- /dev/null +++ b/docs/assets/beancount-98JxfrHB.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse(`{"displayName":"Beancount","fileTypes":["beancount"],"name":"beancount","patterns":[{"match":";.*","name":"comment.line.beancount"},{"begin":"^\\\\s*(p(?:op|ush)tag)\\\\s+(#)([\\\\--9A-Z_a-z]+)","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"keyword.operator.tag.beancount"},"3":{"name":"entity.name.tag.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.tag.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"^\\\\s*(include)\\\\s+(\\".*\\")","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"string.quoted.double.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.include.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"^\\\\s*(option)\\\\s+(\\".*\\")\\\\s+(\\".*\\")","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"support.variable.beancount"},"3":{"name":"string.quoted.double.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.option.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"^\\\\s*(plugin)\\\\s*(\\"(.*?)\\")\\\\s*(\\".*?\\")?","beginCaptures":{"1":{"name":"support.function.beancount"},"2":{"name":"string.quoted.double.beancount"},"3":{"name":"entity.name.function.beancount"},"4":{"name":"string.quoted.double.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"keyword.operator.directive.beancount","patterns":[{"include":"#comments"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s+(open|close|pad)\\\\b","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#account"},{"include":"#commodity"},{"match":",","name":"punctuation.separator.beancount"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s+(custom)\\\\b","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#string"},{"include":"#bool"},{"include":"#amount"},{"include":"#number"},{"include":"#date"},{"include":"#account"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(event)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#string"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(commodity)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#commodity"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(note|document)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#account"},{"include":"#string"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(price)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#commodity"},{"include":"#amount"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s(balance)","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.dated.beancount","patterns":[{"include":"#comments"},{"include":"#meta"},{"include":"#account"},{"include":"#amount"},{"include":"#illegal"}]},{"begin":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})\\\\s*(txn|[!#%\\\\&*?CMPR-U])\\\\s*(\\".*?\\")?\\\\s*(\\".*?\\")?","beginCaptures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"},"6":{"name":"support.function.directive.beancount"},"7":{"name":"string.quoted.tiers.beancount"},"8":{"name":"string.quoted.narration.beancount"}},"end":"(?=^(\\\\s*$|\\\\S))","name":"meta.directive.transaction.beancount","patterns":[{"include":"#comments"},{"include":"#posting"},{"include":"#meta"},{"include":"#tag"},{"include":"#link"},{"include":"#illegal"}]}],"repository":{"account":{"begin":"([A-Z][a-z]+)(:)","beginCaptures":{"1":{"name":"variable.language.beancount"},"2":{"name":"punctuation.separator.beancount"}},"end":"\\\\s","name":"meta.account.beancount","patterns":[{"begin":"(\\\\S+)(:?)","beginCaptures":{"1":{"name":"variable.other.account.beancount"},"2":{"name":"punctuation.separator.beancount"}},"end":"(:?)|(\\\\s)","patterns":[{"include":"$self"},{"include":"#illegal"}]}]},"amount":{"captures":{"1":{"name":"keyword.operator.modifier.beancount"},"2":{"name":"constant.numeric.currency.beancount"},"3":{"name":"entity.name.type.commodity.beancount"}},"match":"([-+|]?)(\\\\d+(?:,\\\\d{3})*(?:\\\\.\\\\d*)?)\\\\s*([A-Z][-'.0-9A-Z_]{0,22}[0-9A-Z])","name":"meta.amount.beancount"},"bool":{"captures":{"0":{"name":"constant.language.bool.beancount"},"2":{"name":"constant.numeric.currency.beancount"},"3":{"name":"entity.name.type.commodity.beancount"}},"match":"TRUE|FALSE"},"comments":{"captures":{"1":{"name":"comment.line.beancount"}},"match":"(;.*)$"},"commodity":{"match":"([A-Z][-'.0-9A-Z_]{0,22}[0-9A-Z])","name":"entity.name.type.commodity.beancount"},"cost":{"begin":"\\\\{\\\\{?","beginCaptures":{"0":{"name":"keyword.operator.assignment.beancount"}},"end":"}}?","endCaptures":{"0":{"name":"keyword.operator.assignment.beancount"}},"name":"meta.cost.beancount","patterns":[{"include":"#amount"},{"include":"#date"},{"match":",","name":"punctuation.separator.beancount"},{"include":"#illegal"}]},"date":{"captures":{"1":{"name":"constant.numeric.date.year.beancount"},"2":{"name":"punctuation.separator.beancount"},"3":{"name":"constant.numeric.date.month.beancount"},"4":{"name":"punctuation.separator.beancount"},"5":{"name":"constant.numeric.date.day.beancount"}},"match":"([0-9]{4})([-/|])([0-9]{2})([-/|])([0-9]{2})","name":"meta.date.beancount"},"flag":{"match":"(?<=\\\\s)([!#%\\\\&*?CMPR-U])(?=\\\\s+)","name":"keyword.other.beancount"},"illegal":{"match":"\\\\S","name":"invalid.illegal.unrecognized.beancount"},"link":{"captures":{"1":{"name":"keyword.operator.link.beancount"},"2":{"name":"markup.underline.link.beancount"}},"match":"(\\\\^)([\\\\--9A-Z_a-z]+)"},"meta":{"begin":"^\\\\s*([a-z][-0-9A-Z_a-z]+)(:)","beginCaptures":{"1":{"name":"keyword.operator.directive.beancount"},"2":{"name":"punctuation.separator.beancount"}},"end":"\\\\n","name":"meta.meta.beancount","patterns":[{"include":"#string"},{"include":"#account"},{"include":"#bool"},{"include":"#commodity"},{"include":"#date"},{"include":"#tag"},{"include":"#amount"},{"include":"#number"},{"include":"#comments"},{"include":"#illegal"}]},"number":{"captures":{"1":{"name":"keyword.operator.modifier.beancount"},"2":{"name":"constant.numeric.currency.beancount"}},"match":"([-+|]?)(\\\\d+(?:,\\\\d{3})*(?:\\\\.\\\\d*)?)"},"posting":{"begin":"^\\\\s+(?=([!A-Z]))","end":"(?=^(\\\\s*$|\\\\S|\\\\s*[A-Z]))","name":"meta.posting.beancount","patterns":[{"include":"#meta"},{"include":"#comments"},{"include":"#flag"},{"include":"#account"},{"include":"#amount"},{"include":"#cost"},{"include":"#date"},{"include":"#price"},{"include":"#illegal"}]},"price":{"begin":"@@?","beginCaptures":{"0":{"name":"keyword.operator.assignment.beancount"}},"end":"(?=([\\\\n;]))","name":"meta.price.beancount","patterns":[{"include":"#amount"},{"include":"#illegal"}]},"string":{"begin":"\\"","end":"\\"","name":"string.quoted.double.beancount","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.beancount"}]},"tag":{"captures":{"1":{"name":"keyword.operator.tag.beancount"},"2":{"name":"entity.name.tag.beancount"}},"match":"(#)([\\\\--9A-Z_a-z]+)"}},"scopeName":"text.beancount"}`))];export{n as default}; diff --git a/docs/assets/berry-BH_jgFnX.js b/docs/assets/berry-BH_jgFnX.js new file mode 100644 index 0000000..8e28aed --- /dev/null +++ b/docs/assets/berry-BH_jgFnX.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Berry","name":"berry","patterns":[{"include":"#controls"},{"include":"#strings"},{"include":"#comment-block"},{"include":"#comments"},{"include":"#keywords"},{"include":"#function"},{"include":"#member"},{"include":"#identifier"},{"include":"#number"},{"include":"#operator"}],"repository":{"comment-block":{"begin":"#-","end":"-#","name":"comment.berry","patterns":[{}]},"comments":{"begin":"#","end":"\\\\n","name":"comment.line.berry","patterns":[{}]},"controls":{"patterns":[{"match":"\\\\b(if|elif|else|for|while|do|end|break|continue|return|try|except|raise)\\\\b","name":"keyword.control.berry"}]},"function":{"patterns":[{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*(?=\\\\s*\\\\())","name":"entity.name.function.berry"}]},"identifier":{"patterns":[{"match":"\\\\b[A-Z_a-z]\\\\w+\\\\b","name":"identifier.berry"}]},"keywords":{"patterns":[{"match":"\\\\b(var|static|def|class|true|false|nil|self|super|import|as|_class)\\\\b","name":"keyword.berry"}]},"member":{"patterns":[{"captures":{"0":{"name":"entity.other.attribute-name.berry"}},"match":"\\\\.([A-Z_a-z][0-9A-Z_a-z]*)"}]},"number":{"patterns":[{"match":"0x\\\\h+|\\\\d+|(\\\\d+\\\\.?|\\\\.\\\\d)\\\\d*([Ee][-+]?\\\\d+)?","name":"constant.numeric.berry"}]},"operator":{"patterns":[{"match":"[-\\\\]!%\\\\&(-+./:<=>\\\\[^|~]","name":"keyword.operator.berry"}]},"strings":{"patterns":[{"begin":"([\\"'])","end":"\\\\1","name":"string.quoted.double.berry","patterns":[{"match":"(\\\\\\\\x\\\\h{2})|(\\\\\\\\[0-7]{3})|(\\\\\\\\\\\\\\\\)|(\\\\\\\\\\")|(\\\\\\\\')|(\\\\\\\\a)|(\\\\\\\\b)|(\\\\\\\\f)|(\\\\\\\\n)|(\\\\\\\\r)|(\\\\\\\\t)|(\\\\\\\\v)","name":"constant.character.escape.berry"}]},{"begin":"f([\\"'])","end":"\\\\1","name":"string.quoted.other.berry","patterns":[{"match":"(\\\\\\\\x\\\\h{2})|(\\\\\\\\[0-7]{3})|(\\\\\\\\\\\\\\\\)|(\\\\\\\\\\")|(\\\\\\\\')|(\\\\\\\\a)|(\\\\\\\\b)|(\\\\\\\\f)|(\\\\\\\\n)|(\\\\\\\\r)|(\\\\\\\\t)|(\\\\\\\\v)","name":"constant.character.escape.berry"},{"match":"\\\\{\\\\{[^}]*}}","name":"string.quoted.other.berry"},{"begin":"\\\\{","end":"}","name":"keyword.other.unit.berry","patterns":[{"include":"#keywords"},{"include":"#numbers"},{"include":"#identifier"},{"include":"#operator"},{"include":"#member"},{"include":"#function"}]}]}]}},"scopeName":"source.berry","aliases":["be"]}`))];export{e as default}; diff --git a/docs/assets/bibtex-B7UmJSHk.js b/docs/assets/bibtex-B7UmJSHk.js new file mode 100644 index 0000000..2e2b37d --- /dev/null +++ b/docs/assets/bibtex-B7UmJSHk.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"BibTeX","name":"bibtex","patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.bibtex"}},"match":"@(?i:comment)(?=[({\\\\s])","name":"comment.block.at-sign.bibtex"},{"include":"#preamble"},{"include":"#string"},{"include":"#entry"},{"begin":"[^\\\\n@]","end":"(?=@)","name":"comment.block.bibtex"}],"repository":{"entry":{"patterns":[{"begin":"((@)[-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(\\\\{)\\\\s*([^,}\\\\s]*)","beginCaptures":{"1":{"name":"keyword.other.entry-type.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.entry.begin.bibtex"},"4":{"name":"entity.name.type.entry-key.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.entry.end.bibtex"}},"name":"meta.entry.braces.bibtex","patterns":[{"begin":"([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(=)","beginCaptures":{"1":{"name":"support.function.key.bibtex"},"2":{"name":"punctuation.separator.key-value.bibtex"}},"end":"(?=[,}])","name":"meta.key-assignment.bibtex","patterns":[{"include":"#field_value"}]}]},{"begin":"((@)[-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(\\\\()\\\\s*([^,\\\\s]*)","beginCaptures":{"1":{"name":"keyword.other.entry-type.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.entry.begin.bibtex"},"4":{"name":"entity.name.type.entry-key.bibtex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.entry.end.bibtex"}},"name":"meta.entry.parenthesis.bibtex","patterns":[{"begin":"([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)\\\\s*(=)","beginCaptures":{"1":{"name":"support.function.key.bibtex"},"2":{"name":"punctuation.separator.key-value.bibtex"}},"end":"(?=[),])","name":"meta.key-assignment.bibtex","patterns":[{"include":"#field_value"}]}]}]},"field_value":{"patterns":[{"include":"#string_content"},{"include":"#integer"},{"include":"#string_var"},{"match":"#","name":"keyword.operator.bibtex"}]},"integer":{"captures":{"1":{"name":"constant.numeric.bibtex"}},"match":"\\\\s*(\\\\d+)\\\\s*"},"nested_braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.end.bibtex"}},"patterns":[{"include":"#nested_braces"}]},"preamble":{"patterns":[{"begin":"((@)(?i:preamble))\\\\s*(\\\\{)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.preamble.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.preamble.begin.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.preamble.end.bibtex"}},"name":"meta.preamble.braces.bibtex","patterns":[{"include":"#field_value"}]},{"begin":"((@)(?i:preamble))\\\\s*(\\\\()\\\\s*","beginCaptures":{"1":{"name":"keyword.other.preamble.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.preamble.begin.bibtex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.preamble.end.bibtex"}},"name":"meta.preamble.parenthesis.bibtex","patterns":[{"include":"#field_value"}]}]},"string":{"patterns":[{"begin":"((@)(?i:string))\\\\s*(\\\\{)\\\\s*([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)","beginCaptures":{"1":{"name":"keyword.other.string-constant.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.string-constant.begin.bibtex"},"4":{"name":"variable.other.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.string-constant.end.bibtex"}},"name":"meta.string-constant.braces.bibtex","patterns":[{"include":"#field_value"}]},{"begin":"((@)(?i:string))\\\\s*(\\\\()\\\\s*([-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*)","beginCaptures":{"1":{"name":"keyword.other.string-constant.bibtex"},"2":{"name":"punctuation.definition.keyword.bibtex"},"3":{"name":"punctuation.section.string-constant.begin.bibtex"},"4":{"name":"variable.other.bibtex"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.string-constant.end.bibtex"}},"name":"meta.string-constant.parenthesis.bibtex","patterns":[{"include":"#field_value"}]}]},"string_content":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.bibtex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.bibtex"}},"patterns":[{"include":"#nested_braces"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.bibtex"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.bibtex"}},"patterns":[{"include":"#nested_braces"}]}]},"string_var":{"captures":{"0":{"name":"support.variable.bibtex"}},"match":"[-!$\\\\&*+./:;<>-z|~][!$\\\\&*+\\\\--<>-z|~]*"}},"scopeName":"text.bibtex"}'))];export{e as default}; diff --git a/docs/assets/bicep-jhZgfM-h.js b/docs/assets/bicep-jhZgfM-h.js new file mode 100644 index 0000000..42b5606 --- /dev/null +++ b/docs/assets/bicep-jhZgfM-h.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Bicep","fileTypes":[".bicep",".bicepparam"],"name":"bicep","patterns":[{"include":"#expression"},{"include":"#comments"}],"repository":{"array-literal":{"begin":"\\\\[(?!(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\bfor\\\\b)","end":"]","name":"meta.array-literal.bicep","patterns":[{"include":"#expression"},{"include":"#comments"}]},"block-comment":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.bicep"},"comments":{"patterns":[{"include":"#line-comment"},{"include":"#block-comment"}]},"decorator":{"begin":"@(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*(?=\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b)","end":"","name":"meta.decorator.bicep","patterns":[{"include":"#expression"},{"include":"#comments"}]},"directive":{"begin":"#\\\\b[-0-9A-Z_a-z]+\\\\b","end":"$","name":"meta.directive.bicep","patterns":[{"include":"#directive-variable"},{"include":"#comments"}]},"directive-variable":{"match":"\\\\b[-0-9A-Z_a-z]+\\\\b","name":"keyword.control.declaration.bicep"},"escape-character":{"match":"\\\\\\\\(u\\\\{\\\\h+}|['\\\\\\\\nrt]|\\\\$\\\\{)","name":"constant.character.escape.bicep"},"expression":{"patterns":[{"include":"#string-literal"},{"include":"#string-verbatim"},{"include":"#numeric-literal"},{"include":"#named-literal"},{"include":"#object-literal"},{"include":"#array-literal"},{"include":"#keyword"},{"include":"#identifier"},{"include":"#function-call"},{"include":"#decorator"},{"include":"#lambda-start"},{"include":"#directive"}]},"function-call":{"begin":"\\\\b([$_[:alpha:]][$_[:alnum:]]*)\\\\b(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.bicep"}},"end":"\\\\)","name":"meta.function-call.bicep","patterns":[{"include":"#expression"},{"include":"#comments"}]},"identifier":{"match":"\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b(?!(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\()","name":"variable.other.readwrite.bicep"},"keyword":{"match":"\\\\b(metadata|targetScope|resource|module|param|var|output|for|in|if|existing|import|as|type|with|using|extends|func|assert|extension)\\\\b","name":"keyword.control.declaration.bicep"},"lambda-start":{"begin":"(\\\\((?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*(,(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*)*\\\\)|\\\\((?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\)|(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*)(?=(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*=>)","beginCaptures":{"1":{"name":"meta.undefined.bicep","patterns":[{"include":"#identifier"},{"include":"#comments"}]}},"end":"(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*=>","name":"meta.lambda-start.bicep"},"line-comment":{"match":"//.*(?=$)","name":"comment.line.double-slash.bicep"},"named-literal":{"match":"\\\\b(true|false|null)\\\\b","name":"constant.language.bicep"},"numeric-literal":{"match":"[0-9]+","name":"constant.numeric.bicep"},"object-literal":{"begin":"\\\\{","end":"}","name":"meta.object-literal.bicep","patterns":[{"include":"#object-property-key"},{"include":"#expression"},{"include":"#comments"}]},"object-property-key":{"match":"\\\\b[$_[:alpha:]][$_[:alnum:]]*\\\\b(?=(?:[\\\\t\\\\n\\\\r ]|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*:)","name":"variable.other.property.bicep"},"string-literal":{"begin":"'(?!'')","end":"'","name":"string.quoted.single.bicep","patterns":[{"include":"#escape-character"},{"include":"#string-literal-subst"}]},"string-literal-subst":{"begin":"(?))","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.php"}},"end":"(?!\\\\G)(\\\\s*$\\\\n)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.php"}},"patterns":[{"begin":"<\\\\?(?i:php|=)?","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"}},"contentName":"source.php","end":"(\\\\?)>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"source.php"}},"name":"meta.embedded.block.php","patterns":[{"include":"#language"}]}]},{"begin":"<\\\\?(?i:php|=)?(?![^?]*\\\\?>)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"}},"contentName":"source.php","end":"(\\\\?)>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"source.php"}},"name":"meta.embedded.block.php","patterns":[{"include":"#language"}]},{"begin":"<\\\\?(?i:php|=)?","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"}},"name":"meta.embedded.line.php","patterns":[{"captures":{"1":{"name":"source.php"},"2":{"name":"punctuation.section.embedded.end.php"},"3":{"name":"source.php"}},"match":"\\\\G(\\\\s*)((\\\\?))(?=>)","name":"meta.special.empty-tag.php"},{"begin":"\\\\G","contentName":"source.php","end":"(\\\\?)(?=>)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"source.php"}},"patterns":[{"include":"#language"}]}]}]}},"name":"blade","patterns":[{"include":"text.html.derivative"}],"repository":{"balance_brackets":{"patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#balance_brackets"}]},{"match":"[^()]+"}]},"blade":{"patterns":[{"begin":"\\\\{\\\\{--","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.blade"}},"end":"--}}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.blade"}},"name":"comment.block.blade","patterns":[{"begin":"^(\\\\s*)(?=<\\\\?(?![^?]*\\\\?>))","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.php"}},"end":"(?!\\\\G)(\\\\s*$\\\\n)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.php"}},"name":"invalid.illegal.php-code-in-comment.blade","patterns":[{"begin":"<\\\\?(?i:php|=)?","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"}},"contentName":"source.php","end":"(\\\\?)>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"source.php"}},"name":"meta.embedded.block.php","patterns":[{"include":"#language"}]}]},{"begin":"<\\\\?(?i:php|=)?(?![^?]*\\\\?>)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"}},"contentName":"source.php","end":"(\\\\?)>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"source.php"}},"name":"invalid.illegal.php-code-in-comment.blade.meta.embedded.block.php","patterns":[{"include":"#language"}]},{"begin":"<\\\\?(?i:php|=)?","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"}},"name":"invalid.illegal.php-code-in-comment.blade.meta.embedded.line.php","patterns":[{"captures":{"1":{"name":"source.php"},"2":{"name":"punctuation.section.embedded.end.php"},"3":{"name":"source.php"}},"match":"\\\\G(\\\\s*)((\\\\?))(?=>)","name":"meta.special.empty-tag.php"},{"begin":"\\\\G","contentName":"source.php","end":"(\\\\?)(?=>)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"source.php"}},"patterns":[{"include":"#language"}]}]}]},{"begin":"(?)","name":"comment.line.double-slash.php"}]},{"begin":"(^\\\\s+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.php"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"end":"\\\\n|(?=\\\\?>)","name":"comment.line.number-sign.php"}]}]},"constants":{"patterns":[{"match":"(?i)\\\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\\\b","name":"constant.language.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(DEFAULT_INCLUDE_PATH|EAR_(INSTALL|EXTENSION)_DIR|E_(ALL|COMPILE_(ERROR|WARNING)|CORE_(ERROR|WARNING)|DEPRECATED|ERROR|NOTICE|PARSE|RECOVERABLE_ERROR|STRICT|USER_(DEPRECATED|ERROR|NOTICE|WARNING)|WARNING)|PHP_(ROUND_HALF_(DOWN|EVEN|ODD|UP)|(MAJOR|MINOR|RELEASE)_VERSION|MAXPATHLEN|BINDIR|SHLIB_SUFFIX|SYSCONFDIR|SAPI|CONFIG_FILE_(PATH|SCAN_DIR)|INT_(MAX|SIZE)|ZTS|OS|OUTPUT_HANDLER_(START|CONT|END)|DEBUG|DATADIR|URL_(SCHEME|HOST|USER|PORT|PASS|PATH|QUERY|FRAGMENT)|PREFIX|EXTRA_VERSION|EXTENSION_DIR|EOL|VERSION(_ID)?|WINDOWS_(NT_(SERVER|DOMAIN_CONTROLLER|WORKSTATION)|VERSION_(M(?:AJOR|INOR))|BUILD|SUITEMASK|SP_(M(?:AJOR|INOR))|PRODUCTTYPE|PLATFORM)|LIBDIR|LOCALSTATEDIR)|STD(ERR|IN|OUT)|ZEND_(DEBUG_BUILD|THREAD_SAFE))\\\\b","name":"support.constant.core.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(__COMPILER_HALT_OFFSET__|AB(MON_([1-9]|10|11|12)|DAY[1-7])|AM_STR|ASSERT_(ACTIVE|BAIL|CALLBACK_QUIET_EVAL|WARNING)|ALT_DIGITS|CASE_(UPPER|LOWER)|CHAR_MAX|CONNECTION_(ABORTED|NORMAL|TIMEOUT)|CODESET|COUNT_(NORMAL|RECURSIVE)|CREDITS_(ALL|DOCS|FULLPAGE|GENERAL|GROUP|MODULES|QA|SAPI)|CRYPT_(BLOWFISH|EXT_DES|MD5|SHA(256|512)|SALT_LENGTH|STD_DES)|CURRENCY_SYMBOL|D_(T_)?FMT|DATE_(ATOM|COOKIE|ISO8601|RFC(822|850|1036|1123|2822|3339)|RSS|W3C)|DAY_[1-7]|DECIMAL_POINT|DIRECTORY_SEPARATOR|ENT_(COMPAT|IGNORE|(NO)?QUOTES)|EXTR_(IF_EXISTS|OVERWRITE|PREFIX_(ALL|IF_EXISTS|INVALID|SAME)|REFS|SKIP)|ERA(_(D_(T_)?FMT)|T_FMT|YEAR)?|FRAC_DIGITS|GROUPING|HASH_HMAC|HTML_(ENTITIES|SPECIALCHARS)|INF|INFO_(ALL|CREDITS|CONFIGURATION|ENVIRONMENT|GENERAL|LICENSEMODULES|VARIABLES)|INI_(ALL|CANNER_(NORMAL|RAW)|PERDIR|SYSTEM|USER)|INT_(CURR_SYMBOL|FRAC_DIGITS)|LC_(ALL|COLLATE|CTYPE|MESSAGES|MONETARY|NUMERIC|TIME)|LOCK_(EX|NB|SH|UN)|LOG_(ALERT|AUTH(PRIV)?|CRIT|CRON|CONS|DAEMON|DEBUG|EMERG|ERR|INFO|LOCAL[1-7]|LPR|KERN|MAIL|NEWS|NODELAY|NOTICE|NOWAIT|ODELAY|PID|PERROR|WARNING|SYSLOG|UCP|USER)|M_(1_PI|SQRT(1_2|[23]|PI)|2_(SQRT)?PI|PI(_([24]))?|E(ULER)?|LN(10|2|PI)|LOG(10|2)E)|MON_([1-9]|10|11|12|DECIMAL_POINT|GROUPING|THOUSANDS_SEP)|N_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|NAN|NEGATIVE_SIGN|NO(EXPR|STR)|P_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|PM_STR|POSITIVE_SIGN|PATH(_SEPARATOR|INFO_(EXTENSION|(BASE|DIR|FILE)NAME))|RADIXCHAR|SEEK_(CUR|END|SET)|SORT_(ASC|DESC|LOCALE_STRING|REGULAR|STRING)|STR_PAD_(BOTH|LEFT|RIGHT)|T_FMT(_AMPM)?|THOUSEP|THOUSANDS_SEP|UPLOAD_ERR_(CANT_WRITE|EXTENSION|(FORM|INI)_SIZE|NO_(FILE|TMP_DIR)|OK|PARTIAL)|YES(EXPR|STR))\\\\b","name":"support.constant.std.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(GLOB_(MARK|BRACE|NO(SORT|CHECK|ESCAPE)|ONLYDIR|ERR|AVAILABLE_FLAGS)|XML_(SAX_IMPL|(DTD|DOCUMENT(_(FRAG|TYPE))?|HTML_DOCUMENT|NOTATION|NAMESPACE_DECL|PI|COMMENT|DATA_SECTION|TEXT)_NODE|OPTION_(SKIP_(TAGSTART|WHITE)|CASE_FOLDING|TARGET_ENCODING)|ERROR_((BAD_CHAR|(ATTRIBUTE_EXTERNAL|BINARY|PARAM|RECURSIVE)_ENTITY)_REF|MISPLACED_XML_PI|SYNTAX|NONE|NO_(MEMORY|ELEMENTS)|TAG_MISMATCH|INCORRECT_ENCODING|INVALID_TOKEN|DUPLICATE_ATTRIBUTE|UNCLOSED_(CDATA_SECTION|TOKEN)|UNDEFINED_ENTITY|UNKNOWN_ENCODING|JUNK_AFTER_DOC_ELEMENT|PARTIAL_CHAR|EXTERNAL_ENTITY_HANDLING|ASYNC_ENTITY)|ENTITY_(((REF|DECL)_)?NODE)|ELEMENT(_DECL)?_NODE|LOCAL_NAMESPACE|ATTRIBUTE_(N(?:MTOKEN(S)?|OTATION|ODE))|CDATA|ID(REF(S)?)?|DECL_NODE|ENTITY|ENUMERATION)|MHASH_(RIPEMD(128|160|256|320)|GOST|MD([245])|SHA(1|224|256|384|512)|SNEFRU256|HAVAL(128|160|192|224|256)|CRC23(B)?|TIGER(1(?:28|60))?|WHIRLPOOL|ADLER32)|MYSQL_(BOTH|NUM|CLIENT_(SSL|COMPRESS|IGNORE_SPACE|INTERACTIVE|ASSOC))|MYSQLI_(REPORT_(STRICT|INDEX|OFF|ERROR|ALL)|REFRESH_(GRANT|MASTER|BACKUP_LOG|STATUS|SLAVE|HOSTS|THREADS|TABLES|LOG)|READ_DEFAULT_(FILE|GROUP)|(GROUP|MULTIPLE_KEY|BINARY|BLOB)_FLAG|BOTH|STMT_ATTR_(CURSOR_TYPE|UPDATE_MAX_LENGTH|PREFETCH_ROWS)|STORE_RESULT|SERVER_QUERY_(NO_((GOOD_)?INDEX_USED)|WAS_SLOW)|SET_(CHARSET_NAME|FLAG)|NO_(D(?:EFAULT_VALUE_FLAG|ATA))|NOT_NULL_FLAG|NUM(_FLAG)?|CURSOR_TYPE_(READ_ONLY|SCROLLABLE|NO_CURSOR|FOR_UPDATE)|CLIENT_(SSL|NO_SCHEMA|COMPRESS|IGNORE_SPACE|INTERACTIVE|FOUND_ROWS)|TYPE_(GEOMETRY|((MEDIUM|LONG|TINY)_)?BLOB|BIT|SHORT|STRING|SET|YEAR|NULL|NEWDECIMAL|NEWDATE|CHAR|TIME(STAMP)?|TINY|INT24|INTERVAL|DOUBLE|DECIMAL|DATE(TIME)?|ENUM|VAR_STRING|FLOAT|LONG(LONG)?)|TIME_STAMP_FLAG|INIT_COMMAND|ZEROFILL_FLAG|ON_UPDATE_NOW_FLAG|OPT_(NET_((CMD|READ)_BUFFER_SIZE)|CONNECT_TIMEOUT|INT_AND_FLOAT_NATIVE|LOCAL_INFILE)|DEBUG_TRACE_ENABLED|DATA_TRUNCATED|USE_RESULT|(ENUM|(PART|PRI|UNIQUE)_KEY|UNSIGNED)_FLAG|ASSOC|ASYNC|AUTO_INCREMENT_FLAG)|MCRYPT_(RC([26])|RIJNDAEL_(128|192|256)|RAND|GOST|XTEA|MODE_(STREAM|NOFB|CBC|CFB|OFB|ECB)|MARS|BLOWFISH(_COMPAT)?|SERPENT|SKIPJACK|SAFER(64|128|PLUS)|CRYPT|CAST_(128|256)|TRIPLEDES|THREEWAY|TWOFISH|IDEA|(3)?DES|DECRYPT|DEV_(U)?RANDOM|PANAMA|ENCRYPT|ENIGNA|WAKE|LOKI97|ARCFOUR(_IV)?)|STREAM_(REPORT_ERRORS|MUST_SEEK|MKDIR_RECURSIVE|BUFFER_(NONE|FULL|LINE)|SHUT_(RD)?WR|SOCK_(RDM|RAW|STREAM|SEQPACKET|DGRAM)|SERVER_(BIND|LISTEN)|NOTIFY_(REDIRECTED|RESOLVE|MIME_TYPE_IS|SEVERITY_(INFO|ERR|WARN)|COMPLETED|CONNECT|PROGRESS|FILE_SIZE_IS|FAILURE|AUTH_(RE(?:QUIRED|SULT)))|CRYPTO_METHOD_((SSLv2(3)?|SSLv3|TLS)_(CLIENT|SERVER))|CLIENT_((ASYNC_)?CONNECT|PERSISTENT)|CAST_(AS_STREAM|FOR_SELECT)|(I(?:GNORE|S))_URL|IPPROTO_(RAW|TCP|ICMP|IP|UDP)|OOB|OPTION_(READ_(BUFFER|TIMEOUT)|BLOCKING|WRITE_BUFFER)|URL_STAT_(LINK|QUIET)|USE_PATH|PEEK|PF_(INET(6)?|UNIX)|ENFORCE_SAFE_MODE|FILTER_(ALL|READ|WRITE))|SUNFUNCS_RET_(DOUBLE|STRING|TIMESTAMP)|SQLITE_(READONLY|ROW|MISMATCH|MISUSE|BOTH|BUSY|SCHEMA|NOMEM|NOTFOUND|NOTADB|NOLFS|NUM|CORRUPT|CONSTRAINT|CANTOPEN|TOOBIG|INTERRUPT|INTERNAL|IOERR|OK|DONE|PROTOCOL|PERM|ERROR|EMPTY|FORMAT|FULL|LOCKED|ABORT|ASSOC|AUTH)|SQLITE3_(BOTH|BLOB|NUM|NULL|TEXT|INTEGER|OPEN_(READ(ONLY|WRITE)|CREATE)|FLOAT_ASSOC)|CURL(M_(BAD_((EASY)?HANDLE)|CALL_MULTI_PERFORM|INTERNAL_ERROR|OUT_OF_MEMORY|OK)|MSG_DONE|SSH_AUTH_(HOST|NONE|DEFAULT|PUBLICKEY|PASSWORD|KEYBOARD)|CLOSEPOLICY_(SLOWEST|CALLBACK|OLDEST|LEAST_(RECENTLY_USED|TRAFFIC)|INFO_(REDIRECT_(COUNT|TIME)|REQUEST_SIZE|SSL_VERIFYRESULT|STARTTRANSFER_TIME|(S(?:IZE|PEED))_((?:DOWN|UP)LOAD)|HTTP_CODE|HEADER_(OUT|SIZE)|NAMELOOKUP_TIME|CONNECT_TIME|CONTENT_(TYPE|LENGTH_((?:DOWN|UP)LOAD))|CERTINFO|TOTAL_TIME|PRIVATE|PRETRANSFER_TIME|EFFECTIVE_URL|FILETIME)|OPT_(RESUME_FROM|RETURNTRANSFER|REDIR_PROTOCOLS|REFERER|READ(DATA|FUNCTION)|RANGE|RANDOM_FILE|MAX(CONNECTS|REDIRS)|BINARYTRANSFER|BUFFERSIZE|SSH_(HOST_PUBLIC_KEY_MD5|(P(?:RIVATE|UBLIC))_KEYFILE)|AUTH_TYPES)|SSL(CERT(TYPE|PASSWD)?|ENGINE(_DEFAULT)?|VERSION|KEY(TYPE|PASSWD)?)|SSL_(CIPHER_LIST|VERIFY(HOST|PEER))|STDERR|HTTP(GET|HEADER|200ALIASES|_VERSION|PROXYTUNNEL|AUTH)|HEADER(FUNCTION)?|NO(BODY|SIGNAL|PROGRESS)|NETRC|CRLF|CONNECTTIMEOUT(_MS)?|COOKIE(SESSION|JAR|FILE)?|CUSTOMREQUEST|CERTINFO|CLOSEPOLICY|CA(INFO|PATH)|TRANSFERTEXT|TCP_NODELAY|TIME(CONDITION|OUT(_MS)?|VALUE)|INTERFACE|INFILE(SIZE)?|IPRESOLVE|DNS_(CACHE_TIMEOUT|USE_GLOBAL_CACHE)|URL|USER(AGENT|PWD)|UNRESTRICTED_AUTH|UPLOAD|PRIVATE|PROGRESSFUNCTION|PROXY(TYPE|USERPWD|PORT|AUTH)?|PROTOCOLS|PORT|POST(REDIR|QUOTE|FIELDS)?|PUT|EGDSOCKET|ENCODING|VERBOSE|KRB4LEVEL|KEYPASSWD|QUOTE|FRESH_CONNECT|FTP(APPEND|LISTONLY|PORT|SSLAUTH)|FTP_(SSL|SKIP_PASV_IP|CREATE_MISSING_DIRS|USE_EP(RT|SV)|FILEMETHOD)|FILE(TIME)?|FORBID_REUSE|FOLLOWLOCATION|FAILONERROR|WRITE(FUNCTION|HEADER)|LOW_SPEED_(LIMIT|TIME)|AUTOREFERER)|PROXY_(HTTP|SOCKS([45]))|PROTO_(SCP|SFTP|HTTP(S)?|TELNET|TFTP|DICT|FTP(S)?|FILE|LDAP(S)?|ALL)|E_((RE(?:CV|AD))_ERROR|GOT_NOTHING|MALFORMAT_USER|BAD_(CONTENT_ENCODING|CALLING_ORDER|PASSWORD_ENTERED|FUNCTION_ARGUMENT)|SSH|SSL_(CIPHER|CONNECT_ERROR|CERTPROBLEM|CACERT|PEER_CERTIFICATE|ENGINE_(NOTFOUND|SETFAILED))|SHARE_IN_USE|SEND_ERROR|HTTP_(RANGE_ERROR|NOT_FOUND|PORT_FAILED|POST_ERROR)|COULDNT_(RESOLVE_(HOST|PROXY)|CONNECT)|TOO_MANY_REDIRECTS|TELNET_OPTION_SYNTAX|OBSOLETE|OUT_OF_MEMORY|OPERATION|TIMEOUTED|OK|URL_MALFORMAT(_USER)?|UNSUPPORTED_PROTOCOL|UNKNOWN_TELNET_OPTION|PARTIAL_FILE|FTP_(BAD_DOWNLOAD_RESUME|SSL_FAILED|COULDNT_(RETR_FILE|GET_SIZE|STOR_FILE|SET_(BINARY|ASCII)|USE_REST)|CANT_(GET_HOST|RECONNECT)|USER_PASSWORD_INCORRECT|PORT_FAILED|QUOTE_ERROR|WRITE_ERROR|WEIRD_((PASS|PASV|SERVER|USER)_REPLY|227_FORMAT)|ACCESS_DENIED)|FILESIZE_EXCEEDED|FILE_COULDNT_READ_FILE|FUNCTION_NOT_FOUND|FAILED_INIT|WRITE_ERROR|LIBRARY_NOT_FOUND|LDAP_(SEARCH_FAILED|CANNOT_BIND|INVALID_URL)|ABORTED_BY_CALLBACK)|VERSION_NOW|FTP(METHOD_(MULTI|SINGLE|NO)CWD|SSL_(ALL|NONE|CONTROL|TRY)|AUTH_(DEFAULT|SSL|TLS))|AUTH_(ANY(SAFE)?|BASIC|DIGEST|GSSNEGOTIATE|NTLM))|CURL_(HTTP_VERSION_(1_([01])|NONE)|NETRC_(REQUIRED|IGNORED|OPTIONAL)|TIMECOND_(IF(UN)?MODSINCE|LASTMOD)|IPRESOLVE_(V([46])|WHATEVER)|VERSION_(SSL|IPV6|KERBEROS4|LIBZ))|IMAGETYPE_(GIF|XBM|BMP|SWF|COUNT|TIFF_(MM|II)|ICO|IFF|UNKNOWN|JB2|JPX|JP2|JPC|JPEG(2000)?|PSD|PNG|WBMP)|INPUT_(REQUEST|GET|SERVER|SESSION|COOKIE|POST|ENV)|ICONV_(MIME_DECODE_(STRICT|CONTINUE_ON_ERROR)|IMPL|VERSION)|DNS_(MX|SRV|SOA|HINFO|NS|NAPTR|CNAME|TXT|PTR|ANY|ALL|AAAA|A(6)?)|DOM(STRING_SIZE_ERR)|DOM_((SYNTAX|HIERARCHY_REQUEST|NO_((?:MODIFICATION|DATA)_ALLOWED)|NOT_(FOUND|SUPPORTED)|NAMESPACE|INDEX_SIZE|USE_ATTRIBUTE|VALID_(MODIFICATION|STATE|CHARACTER|ACCESS)|PHP|VALIDATION|WRONG_DOCUMENT)_ERR)|JSON_(HEX_(TAG|QUOT|AMP|APOS)|NUMERIC_CHECK|ERROR_(SYNTAX|STATE_MISMATCH|NONE|CTRL_CHAR|DEPTH|UTF8)|FORCE_OBJECT)|PREG_((D_UTF8(_OFFSET)?|NO|INTERNAL|(BACKTRACK|RECURSION)_LIMIT)_ERROR|GREP_INVERT|SPLIT_(NO_EMPTY|(DELIM|OFFSET)_CAPTURE)|SET_ORDER|OFFSET_CAPTURE|PATTERN_ORDER)|PSFS_(PASS_ON|ERR_FATAL|FEED_ME|FLAG_(NORMAL|FLUSH_(CLOSE|INC)))|PCRE_VERSION|POSIX_(([FRWX])_OK|S_IF(REG|BLK|SOCK|CHR|IFO))|FNM_(NOESCAPE|CASEFOLD|PERIOD|PATHNAME)|FILTER_(REQUIRE_(SCALAR|ARRAY)|NULL_ON_FAILURE|CALLBACK|DEFAULT|UNSAFE_RAW|SANITIZE_(MAGIC_QUOTES|STRING|STRIPPED|SPECIAL_CHARS|NUMBER_(INT|FLOAT)|URL|EMAIL|ENCODED|FULL_SPCIAL_CHARS)|VALIDATE_(REGEXP|BOOLEAN|INT|IP|URL|EMAIL|FLOAT)|FORCE_ARRAY|FLAG_(SCHEME_REQUIRED|STRIP_(BACKTICK|HIGH|LOW)|HOST_REQUIRED|NONE|NO_(RES|PRIV)_RANGE|ENCODE_QUOTES|IPV([46])|PATH_REQUIRED|EMPTY_STRING_NULL|ENCODE_(HIGH|LOW|AMP)|QUERY_REQUIRED|ALLOW_(SCIENTIFIC|HEX|THOUSAND|OCTAL|FRACTION)))|FILE_(BINARY|SKIP_EMPTY_LINES|NO_DEFAULT_CONTEXT|TEXT|IGNORE_NEW_LINES|USE_INCLUDE_PATH|APPEND)|FILEINFO_(RAW|MIME(_(ENCODING|TYPE))?|SYMLINK|NONE|CONTINUE|DEVICES|PRESERVE_ATIME)|FORCE_(DEFLATE|GZIP)|LIBXML_(XINCLUDE|NSCLEAN|NO(XMLDECL|BLANKS|NET|CDATA|ERROR|EMPTYTAG|ENT|WARNING)|COMPACT|DTD(VALID|LOAD|ATTR)|((DOTTED|LOADED)_)?VERSION|PARSEHUGE|ERR_(NONE|ERROR|FATAL|WARNING)))\\\\b","name":"support.constant.ext.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(T_(RETURN|REQUIRE(_ONCE)?|GOTO|GLOBAL|(MINUS|MOD|MUL|XOR)_EQUAL|METHOD_C|ML_COMMENT|BREAK|BOOL_CAST|BOOLEAN_(AND|OR)|BAD_CHARACTER|SR(_EQUAL)?|STRING(_CAST|VARNAME)?|START_HEREDOC|STATIC|SWITCH|SL(_EQUAL)?|HALT_COMPILER|NS_(C|SEPARATOR)|NUM_STRING|NEW|NAMESPACE|CHARACTER|COMMENT|CONSTANT(_ENCAPSED_STRING)?|CONCAT_EQUAL|CONTINUE|CURLY_OPEN|CLOSE_TAG|CLONE|CLASS(_C)?|CASE|CATCH|TRY|THROW|IMPLEMENTS|ISSET|IS_((GREATER|SMALLER)_OR_EQUAL|(NOT_)?(IDENTICAL|EQUAL))|INSTANCEOF|INCLUDE(_ONCE)?|INC|INT_CAST|INTERFACE|INLINE_HTML|IF|OR_EQUAL|OBJECT_(CAST|OPERATOR)|OPEN_TAG(_WITH_ECHO)?|OLD_FUNCTION|DNUMBER|DIR|DIV_EQUAL|DOC_COMMENT|DOUBLE_(ARROW|CAST|COLON)|DOLLAR_OPEN_CURLY_BRACES|DO|DEC|DECLARE|DEFAULT|USE|UNSET(_CAST)?|PRINT|PRIVATE|PROTECTED|PUBLIC|PLUS_EQUAL|PAAMAYIM_NEKUDOTAYIM|EXTENDS|EXIT|EMPTY|ENCAPSED_AND_WHITESPACE|END(SWITCH|IF|DECLARE|FOR(EACH)?|WHILE)|END_HEREDOC|ECHO|EVAL|ELSE(IF)?|VAR(IABLE)?|FINAL|FILE|FOR(EACH)?|FUNC_C|FUNCTION|WHITESPACE|WHILE|LNUMBER|LIST|LINE|LOGICAL_(AND|OR|XOR)|ARRAY_(CAST)?|ABSTRACT|AS|AND_EQUAL))\\\\b","name":"support.constant.parser-token.php"},{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"constant.other.php"}]},"function-call":{"patterns":[{"begin":"(?i)(\\\\\\\\?\\\\b[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*(?:\\\\\\\\[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)+)\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#namespace"},{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"entity.name.function.php"}]},"2":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.function-call.php","patterns":[{"include":"#language"}]},{"begin":"(?i)(\\\\\\\\)?\\\\b([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#namespace"}]},"2":{"patterns":[{"include":"#support"},{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"entity.name.function.php"}]},"3":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.function-call.php","patterns":[{"include":"#language"}]},{"match":"(?i)\\\\b(print|echo)\\\\b","name":"support.function.construct.output.php"}]},"function-parameters":{"patterns":[{"include":"#comments"},{"match":",","name":"punctuation.separator.delimiter.php"},{"begin":"(?i)(array)\\\\s+((&)?\\\\s*(\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(=)\\\\s*(array)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.php"},"2":{"name":"variable.other.php"},"3":{"name":"storage.modifier.reference.php"},"4":{"name":"punctuation.definition.variable.php"},"5":{"name":"keyword.operator.assignment.php"},"6":{"name":"support.function.construct.php"},"7":{"name":"punctuation.definition.array.begin.bracket.round.php"}},"contentName":"meta.array.php","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.php"}},"name":"meta.function.parameter.array.php","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"}]},{"captures":{"1":{"name":"storage.type.php"},"2":{"name":"variable.other.php"},"3":{"name":"storage.modifier.reference.php"},"4":{"name":"punctuation.definition.variable.php"},"5":{"name":"keyword.operator.assignment.php"},"6":{"name":"constant.language.php"},"7":{"name":"punctuation.section.array.begin.php"},"8":{"patterns":[{"include":"#parameter-default-types"}]},"9":{"name":"punctuation.section.array.end.php"},"10":{"name":"invalid.illegal.non-null-typehinted.php"}},"match":"(?i)(array|callable)\\\\s+((&)?\\\\s*(\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)(?:\\\\s*(=)\\\\s*(?:(null)|(\\\\[)((?>[^]\\\\[]+|\\\\[\\\\g<8>])*)(])|(\\\\S*?\\\\(\\\\)|\\\\S*?)))?\\\\s*(?=[),]|/[*/]|#|$)","name":"meta.function.parameter.array.php"},{"begin":"(?i)(\\\\\\\\?(?:[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*\\\\\\\\)*)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s+((&)?\\\\s*(\\\\.\\\\.\\\\.)?(\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)","beginCaptures":{"1":{"name":"support.other.namespace.php","patterns":[{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"storage.type.php"},{"match":"\\\\\\\\","name":"punctuation.separator.inheritance.php"}]},"2":{"name":"storage.type.php"},"3":{"name":"variable.other.php"},"4":{"name":"storage.modifier.reference.php"},"5":{"name":"keyword.operator.variadic.php"},"6":{"name":"punctuation.definition.variable.php"}},"end":"(?=[),]|/[*/]|#)","name":"meta.function.parameter.typehinted.php","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.php"}},"end":"(?=[),]|/[*/]|#)","patterns":[{"include":"#language"}]}]},{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"keyword.operator.variadic.php"},"4":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((&)?\\\\s*(\\\\.\\\\.\\\\.)?(\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(?=[),]|/[*/]|#|$)","name":"meta.function.parameter.no-default.php"},{"begin":"(?i)((&)?\\\\s*(\\\\.\\\\.\\\\.)?(\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(=)\\\\s*(?:(\\\\[)((?>[^]\\\\[]+|\\\\[\\\\g<6>])*)(]))?","beginCaptures":{"1":{"name":"variable.other.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"keyword.operator.variadic.php"},"4":{"name":"punctuation.definition.variable.php"},"5":{"name":"keyword.operator.assignment.php"},"6":{"name":"punctuation.section.array.begin.php"},"7":{"patterns":[{"include":"#parameter-default-types"}]},"8":{"name":"punctuation.section.array.end.php"}},"end":"(?=[),]|/[*/]|#)","name":"meta.function.parameter.default.php","patterns":[{"include":"#parameter-default-types"}]}]},"heredoc":{"patterns":[{"begin":"(?i)(?=<<<\\\\s*(\\"?)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)(\\\\1)\\\\s*$)","end":"(?!\\\\G)","name":"string.unquoted.heredoc.php","patterns":[{"include":"#heredoc_interior"}]},{"begin":"(?=<<<\\\\s*'([A-Z_a-z]+[0-9A-Z_a-z]*)'\\\\s*$)","end":"(?!\\\\G)","name":"string.unquoted.nowdoc.php","patterns":[{"include":"#nowdoc_interior"}]}]},"heredoc_interior":{"patterns":[{"begin":"(<<<)\\\\s*(\\"?)(HTML)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.html","end":"^(\\\\3)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.html","patterns":[{"include":"#interpolation"},{"include":"text.html.basic"}]},{"begin":"(<<<)\\\\s*(\\"?)(XML)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.xml","end":"^(\\\\3)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.xml","patterns":[{"include":"#interpolation"},{"include":"text.xml"}]},{"begin":"(<<<)\\\\s*(\\"?)(SQL)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.sql","end":"^(\\\\3)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.sql","patterns":[{"include":"#interpolation"},{"include":"source.sql"}]},{"begin":"(<<<)\\\\s*(\\"?)(J(?:AVASCRIPT|S))(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.js","end":"^(\\\\3)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.js","patterns":[{"include":"#interpolation"},{"include":"source.js"}]},{"begin":"(<<<)\\\\s*(\\"?)(JSON)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.json","end":"^(\\\\3)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.json","patterns":[{"include":"#interpolation"},{"include":"source.json"}]},{"begin":"(<<<)\\\\s*(\\"?)(CSS)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.css","end":"^(\\\\3)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.css","patterns":[{"include":"#interpolation"},{"include":"source.css"}]},{"begin":"(<<<)\\\\s*(\\"?)(REGEXP?)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"string.regexp.heredoc.php","end":"^(\\\\3)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"patterns":[{"include":"#interpolation"},{"match":"(\\\\\\\\){1,2}[]$.\\\\[^{}]","name":"constant.character.escape.regex.php"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repitition.php"},"3":{"name":"punctuation.definition.arbitrary-repitition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repitition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php","patterns":[{"match":"\\\\\\\\[]'\\\\[\\\\\\\\]","name":"constant.character.escape.php"}]},{"match":"[$*+^]","name":"keyword.operator.regexp.php"},{"begin":"(?i)(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?_a-z\\\\x7F-\xFF[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.php"}},"end":"$","endCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"name":"comment.line.number-sign.php"}]},{"begin":"(?i)(<<<)\\\\s*(\\"?)([_a-z\\\\x7F-\xFF]+[0-9_a-z\\\\x7F-\xFF]*)(\\\\2)(\\\\s*)","beginCaptures":{"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"end":"^(\\\\3)\\\\b","endCaptures":{"1":{"name":"keyword.operator.heredoc.php"}},"patterns":[{"include":"#interpolation"}]}]},"instantiation":{"begin":"(?i)(new)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.new.php"}},"end":"(?i)(?=[^0-9\\\\\\\\_a-z\\\\x7F-\xFF])","patterns":[{"match":"(?i)(parent|static|self)(?![0-9_a-z\\\\x7F-\xFF])","name":"storage.type.php"},{"include":"#class-name"},{"include":"#variable-name"}]},"interpolation":{"patterns":[{"match":"\\\\\\\\[0-7]{1,3}","name":"constant.character.escape.octal.php"},{"match":"\\\\\\\\x\\\\h{1,2}","name":"constant.character.escape.hex.php"},{"match":"\\\\\\\\u\\\\{\\\\h+}","name":"constant.character.escape.unicode.php"},{"match":"\\\\\\\\[\\"$\\\\\\\\efnrtv]","name":"constant.character.escape.php"},{"begin":"\\\\{(?=\\\\$.*?})","beginCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"patterns":[{"include":"#language"}]},{"include":"#variable-name"}]},"invoke-call":{"captures":{"1":{"name":"punctuation.definition.variable.php"},"2":{"name":"variable.other.php"}},"match":"(?i)(\\\\$+)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)(?=\\\\s*\\\\()","name":"meta.function-call.invoke.php"},"language":{"patterns":[{"include":"#comments"},{"begin":"(?i)^\\\\s*(interface)\\\\s+([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(extends)?\\\\s*","beginCaptures":{"1":{"name":"storage.type.interface.php"},"2":{"name":"entity.name.type.interface.php"},"3":{"name":"storage.modifier.extends.php"}},"end":"(?i)((?:[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*\\\\s*,\\\\s*)*)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)?\\\\s*(?:(?=\\\\{)|$)","endCaptures":{"1":{"patterns":[{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"entity.other.inherited-class.php"},{"match":",","name":"punctuation.separator.classes.php"}]},"2":{"name":"entity.other.inherited-class.php"}},"name":"meta.interface.php","patterns":[{"include":"#namespace"}]},{"begin":"(?i)^\\\\s*(trait)\\\\s+([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)","beginCaptures":{"1":{"name":"storage.type.trait.php"},"2":{"name":"entity.name.type.trait.php"}},"end":"(?=\\\\{)","name":"meta.trait.php","patterns":[{"include":"#comments"}]},{"captures":{"1":{"name":"keyword.other.namespace.php"},"2":{"name":"entity.name.type.namespace.php","patterns":[{"match":"\\\\\\\\","name":"punctuation.separator.inheritance.php"}]}},"match":"(?i)(?:^|(?<=<\\\\?php))\\\\s*(namespace)\\\\s+([0-9\\\\\\\\_a-z\\\\x7F-\xFF]+)(?=\\\\s*;)","name":"meta.namespace.php"},{"begin":"(?i)(?:^|(?<=<\\\\?php))\\\\s*(namespace)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.namespace.php"}},"end":"(?<=})|(?=\\\\?>)","name":"meta.namespace.php","patterns":[{"include":"#comments"},{"captures":{"0":{"patterns":[{"match":"\\\\\\\\","name":"punctuation.separator.inheritance.php"}]}},"match":"(?i)[0-9\\\\\\\\_a-z\\\\x7F-\xFF]+","name":"entity.name.type.namespace.php"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.namespace.begin.bracket.curly.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.namespace.end.bracket.curly.php"}},"patterns":[{"include":"#language"}]},{"match":"\\\\S+","name":"invalid.illegal.identifier.php"}]},{"match":"\\\\s+(?=use\\\\b)"},{"begin":"(?i)\\\\buse\\\\b","beginCaptures":{"0":{"name":"keyword.other.use.php"}},"end":"(?<=})|(?=;)","name":"meta.use.php","patterns":[{"match":"\\\\b(const|function)\\\\b","name":"storage.type.\${1:/downcase}.php"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.use.begin.bracket.curly.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.use.end.bracket.curly.php"}},"patterns":[{"include":"#scope-resolution"},{"captures":{"1":{"name":"keyword.other.use-as.php"},"2":{"name":"storage.modifier.php"},"3":{"name":"entity.other.alias.php"}},"match":"(?i)\\\\b(as)\\\\s+(final|abstract|public|private|protected|static)\\\\s+([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\b"},{"captures":{"1":{"name":"keyword.other.use-as.php"},"2":{"patterns":[{"match":"^(?:final|abstract|public|private|protected|static)$","name":"storage.modifier.php"},{"match":".+","name":"entity.other.alias.php"}]}},"match":"(?i)\\\\b(as)\\\\s+([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\b"},{"captures":{"1":{"name":"keyword.other.use-insteadof.php"},"2":{"name":"support.class.php"}},"match":"(?i)\\\\b(insteadof)\\\\s+([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)"},{"match":";","name":"punctuation.terminator.expression.php"},{"include":"#use-inner"}]},{"include":"#use-inner"}]},{"begin":"(?i)^\\\\s*(?:(abstract|final)\\\\s+)?(class)\\\\s+([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)","beginCaptures":{"1":{"name":"storage.modifier.\${1:/downcase}.php"},"2":{"name":"storage.type.class.php"},"3":{"name":"entity.name.type.class.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.class.end.bracket.curly.php"}},"name":"meta.class.php","patterns":[{"include":"#comments"},{"begin":"(?i)(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.extends.php"}},"contentName":"meta.other.inherited-class.php","end":"(?i)(?=[^0-9\\\\\\\\_a-z\\\\x7F-\xFF])","patterns":[{"begin":"(?i)(?=\\\\\\\\?[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*\\\\\\\\)","end":"(?i)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)?(?=[^0-9\\\\\\\\_a-z\\\\x7F-\xFF])","endCaptures":{"1":{"name":"entity.other.inherited-class.php"}},"patterns":[{"include":"#namespace"}]},{"include":"#class-builtin"},{"include":"#namespace"},{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"entity.other.inherited-class.php"}]},{"begin":"(?i)(implements)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.implements.php"}},"end":"(?i)(?=[;{])","patterns":[{"include":"#comments"},{"begin":"(?i)(?=[0-9\\\\\\\\_a-z\\\\x7F-\xFF]+)","contentName":"meta.other.inherited-class.php","end":"(?i)\\\\s*(?:,|(?=[^0-9\\\\\\\\_a-z\\\\x7F-\xFF\\\\s]))\\\\s*","patterns":[{"begin":"(?i)(?=\\\\\\\\?[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*\\\\\\\\)","end":"(?i)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)?(?=[^0-9\\\\\\\\_a-z\\\\x7F-\xFF])","endCaptures":{"1":{"name":"entity.other.inherited-class.php"}},"patterns":[{"include":"#namespace"}]},{"include":"#class-builtin"},{"include":"#namespace"},{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"entity.other.inherited-class.php"}]}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.class.begin.bracket.curly.php"}},"contentName":"meta.class.body.php","end":"(?=}|\\\\?>)","patterns":[{"include":"#language"}]}]},{"include":"#switch_statement"},{"captures":{"1":{"name":"keyword.control.\${1:/downcase}.php"}},"match":"\\\\s*\\\\b(break|case|continue|declare|default|die|do|else(if)?|end(declare|for(each)?|if|switch|while)|exit|for(each)?|if|return|switch|use|while|yield)\\\\b"},{"begin":"(?i)\\\\b((?:require|include)(?:_once)?)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.import.include.php"}},"end":"(?=[;\\\\s]|$|\\\\?>)","name":"meta.include.php","patterns":[{"include":"#language"}]},{"begin":"\\\\b(catch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.exception.catch.php"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.php"}},"name":"meta.catch.php","patterns":[{"include":"#namespace"},{"captures":{"1":{"name":"support.class.exception.php"},"2":{"patterns":[{"match":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","name":"support.class.exception.php"},{"match":"\\\\|","name":"punctuation.separator.delimiter.php"}]},"3":{"name":"variable.other.php"},"4":{"name":"punctuation.definition.variable.php"}},"match":"(?i)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)((?:\\\\s*\\\\|\\\\s*[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)*)\\\\s*((\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)"}]},{"match":"\\\\b(catch|try|throw|exception|finally)\\\\b","name":"keyword.control.exception.php"},{"begin":"(?i)\\\\b(function)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.type.function.php"}},"end":"(?=\\\\{)","name":"meta.function.closure.php","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"contentName":"meta.function.parameters.php","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.php"}},"patterns":[{"include":"#function-parameters"}]},{"begin":"(?i)(use)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.function.use.php"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.php"}},"patterns":[{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((&)?\\\\s*(\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(?=[),])","name":"meta.function.closure.use.php"}]}]},{"begin":"((?:(?:final|abstract|public|private|protected|static)\\\\s+)*)(function)\\\\s+(?i:(__(?:call|construct|debugInfo|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic))|([A-Z_a-z\\\\x7F-\xFF][0-9A-Z_a-z\\\\x7F-\xFF]*))\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"match":"final|abstract|public|private|protected|static","name":"storage.modifier.php"}]},"2":{"name":"storage.type.function.php"},"3":{"name":"support.function.magic.php"},"4":{"name":"entity.name.function.php"},"5":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"contentName":"meta.function.parameters.php","end":"(\\\\))(?:\\\\s*(:)\\\\s*([A-Z_a-z\\\\x7F-\xFF][0-9A-Z_a-z\\\\x7F-\xFF]*))?","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.bracket.round.php"},"2":{"name":"keyword.operator.return-value.php"},"3":{"name":"storage.type.php"}},"name":"meta.function.php","patterns":[{"include":"#function-parameters"}]},{"include":"#invoke-call"},{"include":"#scope-resolution"},{"include":"#variables"},{"include":"#strings"},{"captures":{"1":{"name":"support.function.construct.php"},"2":{"name":"punctuation.definition.array.begin.bracket.round.php"},"3":{"name":"punctuation.definition.array.end.bracket.round.php"}},"match":"(array)(\\\\()(\\\\))","name":"meta.array.empty.php"},{"begin":"(array)(\\\\()","beginCaptures":{"1":{"name":"support.function.construct.php"},"2":{"name":"punctuation.definition.array.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.php"}},"name":"meta.array.php","patterns":[{"include":"#language"}]},{"captures":{"1":{"name":"punctuation.definition.storage-type.begin.bracket.round.php"},"2":{"name":"storage.type.php"},"3":{"name":"punctuation.definition.storage-type.end.bracket.round.php"}},"match":"(?i)(\\\\()\\\\s*(array|real|double|float|int(?:eger)?|bool(?:ean)?|string|object|binary|unset)\\\\s*(\\\\))"},{"match":"(?i)\\\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|var|function|interface|trait|parent|self|object)\\\\b","name":"storage.type.php"},{"match":"(?i)\\\\b(global|abstract|const|extends|implements|final|private|protected|public|static)\\\\b","name":"storage.modifier.php"},{"include":"#object"},{"match":";","name":"punctuation.terminator.expression.php"},{"match":":","name":"punctuation.terminator.statement.php"},{"include":"#heredoc"},{"include":"#numbers"},{"match":"(?i)\\\\bclone\\\\b","name":"keyword.other.clone.php"},{"match":"\\\\.=?","name":"keyword.operator.string.php"},{"match":"=>","name":"keyword.operator.key.php"},{"captures":{"1":{"name":"keyword.operator.assignment.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"storage.modifier.reference.php"}},"match":"(?i)(=)(&)|(&)(?=[$_a-z])"},{"match":"@","name":"keyword.operator.error-control.php"},{"match":"===?|!==?|<>","name":"keyword.operator.comparison.php"},{"match":"(?:|[-%\\\\&*+/^|]|<<|>>)=","name":"keyword.operator.assignment.php"},{"match":"<=>?|>=|[<>]","name":"keyword.operator.comparison.php"},{"match":"--|\\\\+\\\\+","name":"keyword.operator.increment-decrement.php"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.php"},{"match":"(?i)(!|&&|\\\\|\\\\|)|\\\\b(and|or|xor|as)\\\\b","name":"keyword.operator.logical.php"},{"include":"#function-call"},{"match":"<<|>>|[\\\\&^|~]","name":"keyword.operator.bitwise.php"},{"begin":"(?i)\\\\b(instanceof)\\\\s+(?=[$\\\\\\\\_a-z])","beginCaptures":{"1":{"name":"keyword.operator.type.php"}},"end":"(?=[^$0-9\\\\\\\\_a-z\\\\x7F-\xFF])","patterns":[{"include":"#class-name"},{"include":"#variable-name"}]},{"include":"#instantiation"},{"captures":{"1":{"name":"keyword.control.goto.php"},"2":{"name":"support.other.php"}},"match":"(?i)(goto)\\\\s+([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)"},{"captures":{"1":{"name":"entity.name.goto-label.php"}},"match":"(?i)^\\\\s*([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*:(?!:)"},{"include":"#string-backtick"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.curly.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.php"}},"patterns":[{"include":"#language"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.php"}},"end":"]|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.section.array.end.php"}},"patterns":[{"include":"#language"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.php"}},"patterns":[{"include":"#language"}]},{"include":"#constants"},{"match":",","name":"punctuation.separator.delimiter.php"}]},"namespace":{"begin":"(?i)(?:(namespace)|[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)?(\\\\\\\\)(?=.*?[^0-9\\\\\\\\_a-z\\\\x7F-\xFF])","beginCaptures":{"1":{"name":"variable.language.namespace.php"},"2":{"name":"punctuation.separator.inheritance.php"}},"end":"(?i)(?=[0-9_a-z\\\\x7F-\xFF]*[^0-9\\\\\\\\_a-z\\\\x7F-\xFF])","name":"support.other.namespace.php","patterns":[{"match":"\\\\\\\\","name":"punctuation.separator.inheritance.php"}]},"nowdoc_interior":{"patterns":[{"begin":"(<<<)\\\\s*'(HTML)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.html","end":"^(\\\\2)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.html","patterns":[{"include":"text.html.basic"}]},{"begin":"(<<<)\\\\s*'(XML)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.xml","end":"^(\\\\2)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.xml","patterns":[{"include":"text.xml"}]},{"begin":"(<<<)\\\\s*'(SQL)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.sql","end":"^(\\\\2)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.sql","patterns":[{"include":"source.sql"}]},{"begin":"(<<<)\\\\s*'(J(?:AVASCRIPT|S))'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.js","end":"^(\\\\2)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.js","patterns":[{"include":"source.js"}]},{"begin":"(<<<)\\\\s*'(JSON)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.json","end":"^(\\\\2)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.json","patterns":[{"include":"source.json"}]},{"begin":"(<<<)\\\\s*'(CSS)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.css","end":"^(\\\\2)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.css","patterns":[{"include":"source.css"}]},{"begin":"(<<<)\\\\s*'(REGEXP?)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"string.regexp.nowdoc.php","end":"^(\\\\2)\\\\b","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"patterns":[{"match":"(\\\\\\\\){1,2}[]$.\\\\[^{}]","name":"constant.character.escape.regex.php"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repitition.php"},"3":{"name":"punctuation.definition.arbitrary-repitition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repitition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php","patterns":[{"match":"\\\\\\\\[]'\\\\[\\\\\\\\]","name":"constant.character.escape.php"}]},{"match":"[$*+^]","name":"keyword.operator.regexp.php"},{"begin":"(?i)(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?_a-z\\\\x7F-\xFF[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.php"}},"end":"$","endCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"name":"comment.line.number-sign.php"}]},{"begin":"(?i)(<<<)\\\\s*'([_a-z\\\\x7F-\xFF]+[0-9_a-z\\\\x7F-\xFF]*)'(\\\\s*)","beginCaptures":{"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"end":"^(\\\\2)\\\\b","endCaptures":{"1":{"name":"keyword.operator.nowdoc.php"}}}]},"numbers":{"patterns":[{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.php"},{"match":"0[Bb][01]+","name":"constant.numeric.binary.php"},{"match":"0[0-7]+","name":"constant.numeric.octal.php"},{"captures":{"1":{"name":"punctuation.separator.decimal.period.php"},"2":{"name":"punctuation.separator.decimal.period.php"}},"match":"[0-9]*(\\\\.)[0-9]+(?:[Ee][-+]?[0-9]+)?|[0-9]+(\\\\.)[0-9]*(?:[Ee][-+]?[0-9]+)?|[0-9]+[Ee][-+]?[0-9]+","name":"constant.numeric.decimal.php"},{"match":"0|[1-9][0-9]*","name":"constant.numeric.decimal.php"}]},"object":{"patterns":[{"begin":"(->)(\\\\$?\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"punctuation.definition.variable.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"patterns":[{"include":"#language"}]},{"begin":"(?i)(->)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"entity.name.function.php"},"3":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.method-call.php","patterns":[{"include":"#language"}]},{"captures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"variable.other.property.php"},"3":{"name":"punctuation.definition.variable.php"}},"match":"(?i)(->)((\\\\$+)?[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)?"}]},"parameter-default-types":{"patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#string-backtick"},{"include":"#variables"},{"match":"=>","name":"keyword.operator.key.php"},{"match":"=","name":"keyword.operator.assignment.php"},{"match":"&(?=\\\\s*\\\\$)","name":"storage.modifier.reference.php"},{"begin":"(array)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.construct.php"},"2":{"name":"punctuation.definition.array.begin.bracket.round.php"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.php"}},"name":"meta.array.php","patterns":[{"include":"#parameter-default-types"}]},{"include":"#instantiation"},{"begin":"(?i)(?=[0-9\\\\\\\\_a-z\\\\x7F-\xFF]+(::)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)?)","end":"(?i)(::)([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)?","endCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"constant.other.class.php"}},"patterns":[{"include":"#class-name"}]},{"include":"#constants"}]},"php_doc":{"patterns":[{"match":"^(?!\\\\s*\\\\*).*?(?:(?=\\\\*/)|$\\\\n?)","name":"invalid.illegal.missing-asterisk.phpdoc.php"},{"captures":{"1":{"name":"keyword.other.phpdoc.php"},"3":{"name":"storage.modifier.php"},"4":{"name":"invalid.illegal.wrong-access-type.phpdoc.php"}},"match":"^\\\\s*\\\\*\\\\s*(@access)\\\\s+((p(?:ublic|rivate|rotected))|(.+))\\\\s*$"},{"captures":{"1":{"name":"keyword.other.phpdoc.php"},"2":{"name":"markup.underline.link.php"}},"match":"(@xlink)\\\\s+(.+)\\\\s*$"},{"begin":"(@(?:global|param|property(-(read|write))?|return|throws|var))\\\\s+(?=[(A-Z\\\\\\\\_a-z\\\\x7F-\xFF])","beginCaptures":{"1":{"name":"keyword.other.phpdoc.php"}},"contentName":"meta.other.type.phpdoc.php","end":"(?=\\\\s|\\\\*/)","patterns":[{"include":"#php_doc_types_array_multiple"},{"include":"#php_doc_types_array_single"},{"include":"#php_doc_types"}]},{"match":"@(api|abstract|author|category|copyright|example|global|inherit[Dd]oc|internal|license|link|method|property(-(read|write))?|package|param|return|see|since|source|static|subpackage|throws|todo|var|version|uses|deprecated|final|ignore)\\\\b","name":"keyword.other.phpdoc.php"},{"captures":{"1":{"name":"keyword.other.phpdoc.php"}},"match":"\\\\{(@(link|inherit[Dd]oc)).+?}","name":"meta.tag.inline.phpdoc.php"}]},"php_doc_types":{"captures":{"0":{"patterns":[{"match":"\\\\b(string|integer|int|boolean|bool|float|double|object|mixed|array|resource|void|null|callback|false|true|self)\\\\b","name":"keyword.other.type.php"},{"include":"#class-name"},{"match":"\\\\|","name":"punctuation.separator.delimiter.php"}]}},"match":"(?i)[\\\\\\\\_a-z\\\\x7F-\xFF][0-9\\\\\\\\_a-z\\\\x7F-\xFF]*(\\\\|[\\\\\\\\_a-z\\\\x7F-\xFF][0-9\\\\\\\\_a-z\\\\x7F-\xFF]*)*"},"php_doc_types_array_multiple":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.bracket.round.phpdoc.php"}},"end":"(\\\\))(\\\\[])|(?=\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.type.end.bracket.round.phpdoc.php"},"2":{"name":"keyword.other.array.phpdoc.php"}},"patterns":[{"include":"#php_doc_types_array_multiple"},{"include":"#php_doc_types_array_single"},{"include":"#php_doc_types"},{"match":"\\\\|","name":"punctuation.separator.delimiter.php"}]},"php_doc_types_array_single":{"captures":{"1":{"patterns":[{"include":"#php_doc_types"}]},"2":{"name":"keyword.other.array.phpdoc.php"}},"match":"(?i)([\\\\\\\\_a-z\\\\x7F-\xFF][0-9\\\\\\\\_a-z\\\\x7F-\xFF]*)(\\\\[])"},"regex-double-quoted":{"begin":"\\"/(?=(\\\\\\\\.|[^\\"/])++/[ADSUXeimsux]*\\")","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"(/)([ADSUXeimsux]*)(\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.regexp.double-quoted.php","patterns":[{"match":"(\\\\\\\\){1,2}[]$.\\\\[^{}]","name":"constant.character.escape.regex.php"},{"include":"#interpolation"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.php"},"3":{"name":"punctuation.definition.arbitrary-repetition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php","patterns":[{"include":"#interpolation"}]},{"match":"[$*+^]","name":"keyword.operator.regexp.php"}]},"regex-single-quoted":{"begin":"'/(?=(\\\\\\\\(?:\\\\\\\\(?:\\\\\\\\['\\\\\\\\]?|[^'])|.)|[^'/])++/[ADSUXeimsux]*')","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"(/)([ADSUXeimsux]*)(')","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.regexp.single-quoted.php","patterns":[{"include":"#single_quote_regex_escape"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.php"},"3":{"name":"punctuation.definition.arbitrary-repetition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php"},{"match":"[$*+^]","name":"keyword.operator.regexp.php"}]},"scope-resolution":{"patterns":[{"captures":{"1":{"patterns":[{"match":"\\\\b(self|static|parent)\\\\b","name":"storage.type.php"},{"match":"\\\\w+","name":"entity.name.class.php"},{"include":"#class-name"},{"include":"#variable-name"}]}},"match":"(?i)\\\\b([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)(?=\\\\s*::)"},{"begin":"(?i)(::)\\\\s*([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"entity.name.function.php"},"3":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.method-call.static.php","patterns":[{"include":"#language"}]},{"captures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"keyword.other.class.php"}},"match":"(?i)(::)\\\\s*(class)\\\\b"},{"captures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"variable.other.class.php"},"3":{"name":"punctuation.definition.variable.php"},"4":{"name":"constant.other.class.php"}},"match":"(?i)(::)\\\\s*(?:((\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)|([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*))?"}]},"single_quote_regex_escape":{"match":"\\\\\\\\(?:\\\\\\\\(?:\\\\\\\\['\\\\\\\\]?|[^'])|.)","name":"constant.character.escape.php"},"sql-string-double-quoted":{"begin":"\\"\\\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\\\b)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"contentName":"source.sql.embedded.php","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.double.sql.php","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(#)(\\\\\\\\\\"|[^\\"])*(?=\\"|$)","name":"comment.line.number-sign.sql"},{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(--)(\\\\\\\\\\"|[^\\"])*(?=\\"|$)","name":"comment.line.double-dash.sql"},{"match":"\\\\\\\\[\\"'\\\\\\\\\`]","name":"constant.character.escape.php"},{"match":"'(?=((\\\\\\\\')|[^\\"'])*(\\"|$))","name":"string.quoted.single.unclosed.sql"},{"match":"\`(?=((\\\\\\\\\`)|[^\\"\`])*(\\"|$))","name":"string.quoted.other.backtick.unclosed.sql"},{"begin":"'","end":"'","name":"string.quoted.single.sql","patterns":[{"include":"#interpolation"}]},{"begin":"\`","end":"\`","name":"string.quoted.other.backtick.sql","patterns":[{"include":"#interpolation"}]},{"include":"#interpolation"},{"include":"source.sql"}]},"sql-string-single-quoted":{"begin":"'\\\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND)\\\\b)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"contentName":"source.sql.embedded.php","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.single.sql.php","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(#)(\\\\\\\\'|[^'])*(?='|$)","name":"comment.line.number-sign.sql"},{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(--)(\\\\\\\\'|[^'])*(?='|$)","name":"comment.line.double-dash.sql"},{"match":"\\\\\\\\[\\"'\\\\\\\\\`]","name":"constant.character.escape.php"},{"match":"\`(?=((\\\\\\\\\`)|[^'\`])*('|$))","name":"string.quoted.other.backtick.unclosed.sql"},{"match":"\\"(?=((\\\\\\\\\\")|[^\\"'])*('|$))","name":"string.quoted.double.unclosed.sql"},{"include":"source.sql"}]},"string-backtick":{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.interpolated.php","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.php"},{"include":"#interpolation"}]},"string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.double.php","patterns":[{"include":"#interpolation"}]},"string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.single.php","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.php"}]},"strings":{"patterns":[{"include":"#regex-double-quoted"},{"include":"#sql-string-double-quoted"},{"include":"#string-double-quoted"},{"include":"#regex-single-quoted"},{"include":"#sql-string-single-quoted"},{"include":"#string-single-quoted"}]},"support":{"patterns":[{"match":"(?i)\\\\bapc_(store|sma_info|compile_file|clear_cache|cas|cache_info|inc|dec|define_constants|delete(_file)?|exists|fetch|load_constants|add|bin_(dump|load)(file)?)\\\\b","name":"support.function.apc.php"},{"match":"(?i)\\\\b(shuffle|sizeof|sort|next|nat(case)?sort|count|compact|current|in_array|usort|uksort|uasort|pos|prev|end|each|extract|ksort|key(_exists)?|krsort|list|asort|arsort|rsort|reset|range|array(_(shift|sum|splice|search|slice|chunk|change_key_case|count_values|column|combine|(diff|intersect)(_(u)?(key|assoc))?|u(diff|intersect)(_(u)?assoc)?|unshift|unique|pop|push|pad|product|values|keys|key_exists|filter|fill(_keys)?|flip|walk(_recursive)?|reduce|replace(_recursive)?|reverse|rand|multisort|merge(_recursive)?|map)?))\\\\b","name":"support.function.array.php"},{"match":"(?i)\\\\b(show_source|sys_getloadavg|sleep|highlight_(file|string)|constant|connection_(aborted|status)|time_(nanosleep|sleep_until)|ignore_user_abort|die|define(d)?|usleep|uniqid|unpack|__halt_compiler|php_(check_syntax|strip_whitespace)|pack|eval|exit|get_browser)\\\\b","name":"support.function.basic_functions.php"},{"match":"(?i)\\\\bbc(scale|sub|sqrt|comp|div|pow(mod)?|add|mod|mul)\\\\b","name":"support.function.bcmath.php"},{"match":"(?i)\\\\bblenc_encrypt\\\\b","name":"support.function.blenc.php"},{"match":"(?i)\\\\bbz(compress|close|open|decompress|errstr|errno|error|flush|write|read)\\\\b","name":"support.function.bz2.php"},{"match":"(?i)\\\\b((French|Gregorian|Jewish|Julian)ToJD|cal_(to_jd|info|days_in_month|from_jd)|unixtojd|jdto(unix|jewish)|easter_(da(?:te|ys))|JD(MonthName|To(Gregorian|Julian|French)|DayOfWeek))\\\\b","name":"support.function.calendar.php"},{"match":"(?i)\\\\b(class_alias|all_user_method(_array)?|is_(a|subclass_of)|__autoload|(class|interface|method|property|trait)_exists|get_(class(_(vars|methods))?|(called|parent)_class|object_vars|declared_(classes|interfaces|traits)))\\\\b","name":"support.function.classobj.php"},{"match":"(?i)\\\\b(com_(create_guid|print_typeinfo|event_sink|load_typelib|get_active_object|message_pump)|variant_(sub|set(_type)?|not|neg|cast|cat|cmp|int|idiv|imp|or|div|date_(from|to)_timestamp|pow|eqv|fix|and|add|abs|round|get_type|xor|mod|mul))\\\\b","name":"support.function.com.php"},{"begin":"(?i)\\\\b(isset|unset|eval|empty|list)\\\\b","name":"support.function.construct.php"},{"match":"(?i)\\\\b(print|echo)\\\\b","name":"support.function.construct.output.php"},{"match":"(?i)\\\\bctype_(space|cntrl|digit|upper|punct|print|lower|alnum|alpha|graph|xdigit)\\\\b","name":"support.function.ctype.php"},{"match":"(?i)\\\\bcurl_(share_(close|init|setopt)|strerror|setopt(_array)?|copy_handle|close|init|unescape|pause|escape|errno|error|exec|version|file_create|reset|getinfo|multi_(strerror|setopt|select|close|init|info_read|(add|remove)_handle|getcontent|exec))\\\\b","name":"support.function.curl.php"},{"match":"(?i)\\\\b(strtotime|str[fp]time|checkdate|time|timezone_name_(from_abbr|get)|idate|timezone_((location|offset|transitions|version)_get|(abbreviations|identifiers)_list|open)|date(_(sun(rise|set)|sun_info|sub|create(_(immutable_)?from_format)?|timestamp_([gs]et)|timezone_([gs]et)|time_set|isodate_set|interval_(create_from_date_string|format)|offset_get|diff|default_timezone_([gs]et)|date_set|parse(_from_format)?|format|add|get_last_errors|modify))?|localtime|get(date|timeofday)|gm(strftime|date|mktime)|microtime|mktime)\\\\b","name":"support.function.datetime.php"},{"match":"(?i)\\\\bdba_(sync|handlers|nextkey|close|insert|optimize|open|delete|popen|exists|key_split|firstkey|fetch|list|replace)\\\\b","name":"support.function.dba.php"},{"match":"(?i)\\\\bdbx_(sort|connect|compare|close|escape_string|error|query|fetch_row)\\\\b","name":"support.function.dbx.php"},{"match":"(?i)\\\\b(scandir|chdir|chroot|closedir|opendir|dir|rewinddir|readdir|getcwd)\\\\b","name":"support.function.dir.php"},{"match":"(?i)\\\\beio_(sync(fs)?|sync_file_range|symlink|stat(vfs)?|sendfile|set_min_parallel|set_max_(idle|poll_(reqs|time)|parallel)|seek|n(threads|op|pending|reqs|ready)|chown|chmod|custom|close|cancel|truncate|init|open|dup2|unlink|utime|poll|event_loop|f(sync|stat(vfs)?|chown|chmod|truncate|datasync|utime|allocate)|write|lstat|link|rename|realpath|read(ahead|dir|link)?|rmdir|get_(event_stream|last_error)|grp(_(add|cancel|limit))?|mknod|mkdir|busy)\\\\b","name":"support.function.eio.php"},{"match":"(?i)\\\\benchant_(dict_(store_replacement|suggest|check|is_in_session|describe|quick_check|add_to_(personal|session)|get_error)|broker_(set_ordering|init|dict_exists|describe|free(_dict)?|list_dicts|request_(pwl_)?dict|get_error))\\\\b","name":"support.function.enchant.php"},{"match":"(?i)\\\\bsplit(i)?|sql_regcase|ereg(i)?(_replace)?\\\\b","name":"support.function.ereg.php"},{"match":"(?i)\\\\b((restore|set)_(e(?:rror|xception)_handler)|trigger_error|debug_(print_)?backtrace|user_error|error_(log|reporting|get_last))\\\\b","name":"support.function.errorfunc.php"},{"match":"(?i)\\\\bshell_exec|system|passthru|proc_(nice|close|terminate|open|get_status)|escapeshell(arg|cmd)|exec\\\\b","name":"support.function.exec.php"},{"match":"(?i)\\\\b(exif_(thumbnail|tagname|imagetype|read_data)|read_exif_data)\\\\b","name":"support.function.exif.php"},{"match":"(?i)\\\\bfann_((duplicate|length|merge|shuffle|subset)_train_data|scale_(train(_data)?|((?:in|out)put)(_train_data)?)|set_(scaling_params|sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|cascade_(num_candidate_groups|candidate_(change_fraction|limit|stagnation_epochs)|output_(change_fraction|stagnation_epochs)|weight_multiplier|activation_(functions|steepnesses)|(m(?:ax|in))_(cand|out)_epochs)|callback|training_algorithm|train_(error|stop)_function|((?:in|out)put)_scaling_params|error_log|quickprop_(decay|mu)|weight(_array)?|learning_(momentum|rate)|bit_fail_limit|activation_(function|steepness)(_(hidden|layer|output))?|rprop_(((?:de|in)crease)_factor|delta_(max|min|zero)))|save(_train)?|num_((?:in|out)put)_train_data|copy|clear_scaling_params|cascadetrain_on_(file|data)|create_((s(?:parse|hortcut|tandard))(_array)?|train(_from_callback)?|from_file)|test(_data)?|train(_(on_(file|data)|epoch))?|init_weights|descale_(input|output|train)|destroy(_train)?|print_error|run|reset_(MSE|err(no|str))|read_train_from_file|randomize_weights|get_(sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|num_(input|output|layers)|network_type|MSE|connection_(array|rate)|bias_array|bit_fail(_limit)?|cascade_(num_(candidate(?:s|_groups))|(candidate|output)_(change_fraction|limit|stagnation_epochs)|weight_multiplier|activation_(functions|steepnesses)(_count)?|(m(?:ax|in))_(cand|out)_epochs)|total_((?:connecti|neur)ons)|training_algorithm|train_(error|stop)_function|err(no|str)|quickprop_(decay|mu)|learning_(momentum|rate)|layer_array|activation_(function|steepness)|rprop_(((?:de|in)crease)_factor|delta_(max|min|zero))))\\\\b","name":"support.function.fann.php"},{"match":"(?i)\\\\b(symlink|stat|set_file_buffer|chown|chgrp|chmod|copy|clearstatcache|touch|tempnam|tmpfile|is_(dir|(uploaded_)?file|executable|link|readable|writ(e)?able)|disk_(free|total)_space|diskfreespace|dirname|delete|unlink|umask|pclose|popen|pathinfo|parse_ini_(file|string)|fscanf|fstat|fseek|fnmatch|fclose|ftell|ftruncate|file(size|[acm]time|type|inode|owner|perms|group)?|file_(exists|(get|put)_contents)|f(open|puts|putcsv|passthru|eof|flush|write|lock|read|gets(s)?|getc(sv)?)|lstat|lchown|lchgrp|link(info)?|rename|rewind|read(file|link)|realpath(_cache_(get|size))?|rmdir|glob|move_uploaded_file|mkdir|basename)\\\\b","name":"support.function.file.php"},{"match":"(?i)\\\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\\\b","name":"support.function.fileinfo.php"},{"match":"(?i)\\\\bfilter_(has_var|input(_array)?|id|var(_array)?|list)\\\\b","name":"support.function.filter.php"},{"match":"(?i)\\\\bfastcgi_finish_request\\\\b","name":"support.function.fpm.php"},{"match":"(?i)\\\\b(call_user_(func|method)(_array)?|create_function|unregister_tick_function|forward_static_call(_array)?|function_exists|func_(num_args|get_arg(s)?)|register_(shutdown|tick)_function|get_defined_functions)\\\\b","name":"support.function.funchand.php"},{"match":"(?i)\\\\b((n)?gettext|textdomain|d((?:(n)?|c(n)?)gettext)|bind(textdomain|_textdomain_codeset))\\\\b","name":"support.function.gettext.php"},{"match":"(?i)\\\\bgmp_(scan[01]|strval|sign|sub|setbit|sqrt(rem)?|hamdist|neg|nextprime|com|clrbit|cmp|testbit|intval|init|invert|import|or|div(exact)?|div_(qr??|r)|jacobi|popcount|pow(m)?|perfect_square|prob_prime|export|fact|legendre|and|add|abs|root(rem)?|random(_(bits|range))?|gcd(ext)?|xor|mod|mul)\\\\b","name":"support.function.gmp.php"},{"match":"(?i)\\\\bhash(_(hmac(_file)?|copy|init|update(_(file|stream))?|pbkdf2|equals|file|final|algos))?\\\\b","name":"support.function.hash.php"},{"match":"(?i)\\\\b(http_(support|send_(status|stream|content_(disposition|type)|data|file|last_modified)|head|negotiate_(charset|content_type|language)|chunked_decode|cache_(etag|last_modified)|throttle|inflate|deflate|date|post_(data|fields)|put_(data|file|stream)|persistent_handles_(count|clean|ident)|parse_(cookie|headers|message|params)|redirect|request(_(method_(exists|name|(un)?register)|body_encode))?|get(_request_(headers|body(_stream)?))?|match_(etag|modified|request_header)|build_(cookie|str|url))|ob_(etag|deflate|inflate)handler)\\\\b","name":"support.function.http.php"},{"match":"(?i)\\\\b(iconv(_(str(pos|len|rpos)|substr|([gs]et)_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\\\b","name":"support.function.iconv.php"},{"match":"(?i)\\\\biis_((st(?:art|op))_(serv(?:ice|er))|set_(script_map|server_rights|dir_security|app_settings)|(add|remove)_server|get_(script_map|service_state|server_(rights|by_(comment|path))|dir_security))\\\\b","name":"support.function.iisfunc.php"},{"match":"(?i)\\\\b(iptc(embed|parse)|(jpeg|png)2wbmp|gd_info|getimagesize(fromstring)?|image(s[xy]|scale|(char|string)(up)?|set(style|thickness|tile|interpolation|pixel|brush)|savealpha|convolution|copy(resampled|resized|merge(gray)?)?|colors(forindex|total)|color(set|closest(alpha|hwb)?|transparent|deallocate|(allocate|exact|resolve)(alpha)?|at|match)|crop(auto)?|create(truecolor|from(string|jpeg|png|wbmp|webp|gif|gd(2(part)?)?|xpm|xbm))?|types|ttf(bbox|text)|truecolortopalette|istruecolor|interlace|2wbmp|destroy|dashedline|jpeg|_type_to_(extension|mime_type)|ps(slantfont|text|(encode|extend|free|load)font|bbox)|png|polygon|palette(copy|totruecolor)|ellipse|ft(text|bbox)|filter|fill|filltoborder|filled(arc|ellipse|polygon|rectangle)|font(height|width)|flip|webp|wbmp|line|loadfont|layereffect|antialias|affine(matrix(concat|get))?|alphablending|arc|rotate|rectangle|gif|gd(2)?|gammacorrect|grab(screen|window)|xbm))\\\\b","name":"support.function.image.php"},{"match":"(?i)\\\\b(sys_get_temp_dir|set_(time_limit|include_path|magic_quotes_runtime)|cli_([gs]et)_process_title|ini_(alter|get(_all)?|restore|set)|zend_(thread_id|version|logo_guid)|dl|php(credits|info|version)|php_(sapi_name|ini_(scanned_files|loaded_file)|uname|logo_guid)|putenv|extension_loaded|version_compare|assert(_options)?|restore_include_path|gc_(collect_cycles|disable|enable(d)?)|getopt|get_(cfg_var|current_user|defined_constants|extension_funcs|include_path|included_files|loaded_extensions|magic_quotes_(gpc|runtime)|required_files|resources)|get(env|lastmod|rusage|my(inode|[gpu]id))|memory_get_(peak_)?usage|main|magic_quotes_runtime)\\\\b","name":"support.function.info.php"},{"match":"(?i)\\\\bibase_(set_event_handler|service_((?:at|de)tach)|server_info|num_(fields|params)|name_result|connect|commit(_ret)?|close|trans|delete_user|drop_db|db_info|pconnect|param_info|prepare|err(code|msg)|execute|query|field_info|fetch_(assoc|object|row)|free_(event_handler|query|result)|wait_event|add_user|affected_rows|rollback(_ret)?|restore|gen_id|modify_user|maintain_db|backup|blob_(cancel|close|create|import|info|open|echo|add|get))\\\\b","name":"support.function.interbase.php"},{"match":"(?i)\\\\b(normalizer_(normalize|is_normalized)|idn_to_(unicode|utf8|ascii)|numfmt_(set_(symbol|(text_)?attribute|pattern)|create|(parse|format)(_currency)?|get_(symbol|(text_)?attribute|pattern|error_(code|message)|locale))|collator_(sort(_with_sort_keys)?|set_(attribute|strength)|compare|create|asort|get_(strength|sort_key|error_(code|message)|locale|attribute))|transliterator_(create(_(inverse|from_rules))?|transliterate|list_ids|get_error_(code|message))|intl(cal|tz)_get_error_(code|message)|intl_(is_failure|error_name|get_error_(code|message))|datefmt_(set_(calendar|lenient|pattern|timezone(_id)?)|create|is_lenient|parse|format(_object)?|localtime|get_(calendar(_object)?|time(type|zone(_id)?)|datetype|pattern|error_(code|message)|locale))|locale_(set_default|compose|canonicalize|parse|filter_matches|lookup|accept_from_http|get_(script|display_(script|name|variant|language|region)|default|primary_language|keywords|all_variants|region))|resourcebundle_(create|count|locales|get(_(error_(code|message)))?)|grapheme_(str(i?str|r?i?pos|len)|substr|extract)|msgfmt_(set_pattern|create|(format|parse)(_message)?|get_(pattern|error_(code|message)|locale)))\\\\b","name":"support.function.intl.php"},{"match":"(?i)\\\\bjson_(decode|encode|last_error(_msg)?)\\\\b","name":"support.function.json.php"},{"match":"(?i)\\\\bldap_(start|tls|sort|search|sasl_bind|set_(option|rebind_proc)|(first|next)_(attribute|entry|reference)|connect|control_paged_result(_response)?|count_entries|compare|close|t61_to_8859|8859_to_t61|dn2ufn|delete|unbind|parse_(re(?:ference|sult))|escape|errno|err2str|error|explode_dn|bind|free_result|list|add|rename|read|get_(option|dn|entries|values(_len)?|attributes)|modify(_batch)?|mod_(add|del|replace))\\\\b","name":"support.function.ldap.php"},{"match":"(?i)\\\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\\\b","name":"support.function.libxml.php"},{"match":"(?i)\\\\b(ezmlm_hash|mail)\\\\b","name":"support.function.mail.php"},{"match":"(?i)\\\\b((a)?(cos|sin|tan)(h)?|sqrt|srand|hypot|hexdec|ceil|is_(nan|(in)?finite)|octdec|dec(hex|oct|bin)|deg2rad|pi|pow|exp(m1)?|floor|fmod|lcg_value|log(1([0p]))?|atan2|abs|round|rand|rad2deg|getrandmax|mt_(srand|rand|getrandmax)|max|min|bindec|base_convert)\\\\b","name":"support.function.math.php"},{"match":"(?i)\\\\bmb_(str(cut|str|to(lower|upper)|istr|ipos|imwidth|pos|width|len|rchr|richr|ripos|rpos)|substitute_character|substr(_count)?|split|send_mail|http_((?:in|out)put)|check_encoding|convert_(case|encoding|kana|variables)|internal_encoding|output_handler|decode_(numericentity|mimeheader)|detect_(encoding|order)|parse_str|preferred_mime_name|encoding_aliases|encode_(numericentity|mimeheader)|ereg(i(_replace)?)?|ereg_(search(_(get(pos|regs)|init|regs|(set)?pos))?|replace(_callback)?|match)|list_encodings|language|regex_(set_options|encoding)|get_info)\\\\b","name":"support.function.mbstring.php"},{"match":"(?i)\\\\b(m(?:crypt_(cfb|create_iv|cbc|ofb|decrypt|encrypt|ecb|list_(algorithms|modes)|generic(_((de)?init|end))?|enc_(self_test|is_block_(algorithm|algorithm_mode|mode)|get_(supported_key_sizes|(block|iv|key)_size|(algorithms|modes)_name))|get_(cipher_name|(block|iv|key)_size)|module_(close|self_test|is_block_(algorithm|algorithm_mode|mode)|open|get_(supported_key_sizes|algo_(block|key)_size)))|decrypt_generic))\\\\b","name":"support.function.mcrypt.php"},{"match":"(?i)\\\\bmemcache_debug\\\\b","name":"support.function.memcache.php"},{"match":"(?i)\\\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\\\b","name":"support.function.mhash.php"},{"match":"(?i)\\\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_((?:de|en)code))\\\\b","name":"support.function.mongo.php"},{"match":"(?i)\\\\bmysql_(stat|set_charset|select_db|num_(fields|rows)|connect|client_encoding|close|create_db|escape_string|thread_id|tablename|insert_id|info|data_seek|drop_db|db_(name|query)|unbuffered_query|pconnect|ping|errno|error|query|field_(seek|name|type|table|flags|len)|fetch_(object|field|lengths|assoc|array|row)|free_result|list_(tables|dbs|processes|fields)|affected_rows|result|real_escape_string|get_(client|host|proto|server)_info)\\\\b","name":"support.function.mysql.php"},{"match":"(?i)\\\\bmysqli_(ssl_set|store_result|stat|send_(query|long_data)|set_(charset|opt|local_infile_(default|handler))|stmt_(store_result|send_long_data|next_result|close|init|data_seek|prepare|execute|fetch|free_result|attr_([gs]et)|result_metadata|reset|get_(result|warnings)|more_results|bind_(param|result))|select_db|slave_query|savepoint|next_result|change_user|character_set_name|connect|commit|client_encoding|close|thread_safe|init|options|((?:en|dis)able)_(r(?:eads_from_master|pl_parse))|dump_debug_info|debug|data_seek|use_result|ping|poll|param_count|prepare|escape_string|execute|embedded_server_(start|end)|kill|query|field_seek|free_result|autocommit|rollback|report|refresh|fetch(_(object|fields|field(_direct)?|assoc|all|array|row))?|rpl_(parse_enabled|probe|query_type)|release_savepoint|reap_async_query|real_(connect|escape_string|query)|more_results|multi_query|get_(charset|connection_stats|client_(stats|info|version)|cache_stats|warnings|links_stats|metadata)|master_query|bind_(param|result)|begin_transaction)\\\\b","name":"support.function.mysqli.php"},{"match":"(?i)\\\\bmysqlnd_memcache_(set|get_config)\\\\b","name":"support.function.mysqlnd-memcache.php"},{"match":"(?i)\\\\bmysqlnd_ms_(set_(user_pick_server|qos)|dump_servers|query_is_select|fabric_select_(shard|global)|get_(stats|last_(used_connection|gtid))|xa_(commit|rollback|gc|begin)|match_wild)\\\\b","name":"support.function.mysqlnd-ms.php"},{"match":"(?i)\\\\bmysqlnd_qc_(set_(storage_handler|cache_condition|is_select|user_handlers)|clear_cache|get_(normalized_query_trace_log|core_stats|cache_info|query_trace_log|available_handlers))\\\\b","name":"support.function.mysqlnd-qc.php"},{"match":"(?i)\\\\bmysqlnd_uh_(set_(statement|connection)_proxy|convert_to_mysqlnd)\\\\b","name":"support.function.mysqlnd-uh.php"},{"match":"(?i)\\\\b(syslog|socket_(set_(blocking|timeout)|get_status)|set(raw)?cookie|http_response_code|openlog|headers_(list|sent)|header(_(re(?:gister_callback|move)))?|checkdnsrr|closelog|inet_(ntop|pton)|ip2long|openlog|dns_(check_record|get_(record|mx))|define_syslog_variables|(p)?fsockopen|long2ip|get(servby(name|port)|host(name|by(name(l)?|addr))|protoby(n(?:ame|umber))|mxrr))\\\\b","name":"support.function.network.php"},{"match":"(?i)\\\\bnsapi_(virtual|response_headers|request_headers)\\\\b","name":"support.function.nsapi.php"},{"match":"(?i)\\\\b(oci(?:(statementtype|setprefetch|serverversion|savelob(file)?|numcols|new(collection|cursor|descriptor)|nlogon|column(scale|size|name|type(raw)?|isnull|precision)|coll(size|trim|assign(elem)?|append|getelem|max)|commit|closelob|cancel|internaldebug|definebyname|plogon|parse|error|execute|fetch(statement|into)?|free(statement|collection|cursor|desc)|write(temporarylob|lobtofile)|loadlob|log(o(?:n|ff))|rowcount|rollback|result|bindbyname)|_(statement_type|set_(client_(i(?:nfo|dentifier))|prefetch|edition|action|module_name)|server_version|num_(fields|rows)|new_(connect|collection|cursor|descriptor)|connect|commit|client_version|close|cancel|internal_debug|define_by_name|pconnect|password_change|parse|error|execute|bind_(array_)?by_name|field_(scale|size|name|type(_raw)?|is_null|precision)|fetch(_(object|assoc|all|array|row))?|free_(statement|descriptor)|lob_(copy|is_equal)|rollback|result|get_implicit_resultset)))\\\\b","name":"support.function.oci8.php"},{"match":"(?i)\\\\bopcache_(compile_file|invalidate|reset|get_(status|configuration))\\\\b","name":"support.function.opcache.php"},{"match":"(?i)\\\\bopenssl_(sign|spki_(new|export(_challenge)?|verify)|seal|csr_(sign|new|export(_to_file)?|get_(subject|public_key))|cipher_iv_length|open|dh_compute_key|digest|decrypt|public_((?:de|en)crypt)|encrypt|error_string|pkcs12_(export(_to_file)?|read)|pkcs7_(sign|decrypt|encrypt|verify)|verify|free_key|random_pseudo_bytes|pkey_(new|export(_to_file)?|free|get_(details|public|private))|private_((?:de|en)crypt)|pbkdf2|get_((cipher|md)_methods|cert_locations|(p(?:ublic|rivate))key)|x509_(check_private_key|checkpurpose|parse|export(_to_file)?|fingerprint|free|read))\\\\b","name":"support.function.openssl.php"},{"match":"(?i)\\\\b(output_(add_rewrite_var|reset_rewrite_vars)|flush|ob_(start|clean|implicit_flush|end_(clean|flush)|flush|list_handlers|gzhandler|get_(status|contents|clean|flush|length|level)))\\\\b","name":"support.function.output.php"},{"match":"(?i)\\\\bpassword_(hash|needs_rehash|verify|get_info)\\\\b","name":"support.function.password.php"},{"match":"(?i)\\\\bpcntl_(strerror|signal(_dispatch)?|sig(timedwait|procmask|waitinfo)|setpriority|errno|exec|fork|w(stopsig|termsig|if((?:stopp|signal|exit)ed))|wait(pid)?|alarm|getpriority|get_last_error)\\\\b","name":"support.function.pcntl.php"},{"match":"(?i)\\\\bpg_(socket|send_(prepare|execute|query(_params)?)|set_(client_encoding|error_verbosity)|select|host|num_(fields|rows)|consume_input|connection_(status|reset|busy)|connect(_poll)?|convert|copy_(from|to)|client_encoding|close|cancel_query|tty|transaction_status|trace|insert|options|delete|dbname|untrace|unescape_bytea|update|pconnect|ping|port|put_line|parameter_status|prepare|version|query(_params)?|escape_(string|identifier|literal|bytea)|end_copy|execute|flush|free_result|last_(notice|error|oid)|field_(size|num|name|type(_oid)?|table|is_null|prtlen)|affected_rows|result_(status|seek|error(_field)?)|fetch_(object|assoc|all(_columns)?|array|row|result)|get_(notify|pid|result)|meta_data|lo_(seek|close|create|tell|truncate|import|open|unlink|export|write|read(_all)?)|)\\\\b","name":"support.function.pgsql.php"},{"match":"(?i)\\\\b(virtual|getallheaders|apache_(([gs]et)env|note|child_terminate|lookup_uri|response_headers|reset_timeout|request_headers|get_(version|modules)))\\\\b","name":"support.function.php_apache.php"},{"match":"(?i)\\\\bdom_import_simplexml\\\\b","name":"support.function.php_dom.php"},{"match":"(?i)\\\\bftp_(ssl_connect|systype|site|size|set_option|nlist|nb_(continue|f?(put|get))|ch(dir|mod)|connect|cdup|close|delete|put|pwd|pasv|exec|quit|f(put|get)|login|alloc|rename|raw(list)?|rmdir|get(_option)?|mdtm|mkdir)\\\\b","name":"support.function.php_ftp.php"},{"match":"(?i)\\\\bimap_((create|delete|list|rename|scan)(mailbox)?|status|sort|subscribe|set_quota|set(flag_full|acl)|search|savebody|num_(recent|msg)|check|close|clearflag_full|thread|timeout|open|header(info)?|headers|append|alerts|reopen|8bit|unsubscribe|undelete|utf7_((?:de|en)code)|utf8|uid|ping|errors|expunge|qprint|gc|fetch(structure|header|text|mime|body)|fetch_overview|lsub|list(s(?:can|ubscribed))|last_error|rfc822_(parse_(headers|adrlist)|write_address)|get(subscribed|acl|mailboxes)|get_quota(root)?|msgno|mime_header_decode|mail_(copy|compose|move)|mail|mailboxmsginfo|binary|body(struct)?|base64)\\\\b","name":"support.function.php_imap.php"},{"match":"(?i)\\\\bmssql_(select_db|num_(fields|rows)|next_result|connect|close|init|data_seek|pconnect|execute|query|field_(seek|name|type|length)|fetch_(object|field|assoc|array|row|batch)|free_(statement|result)|rows_affected|result|guid_string|get_last_message|min_(error|message)_severity|bind)\\\\b","name":"support.function.php_mssql.php"},{"match":"(?i)\\\\bodbc_(statistics|specialcolumns|setoption|num_(fields|rows)|next_result|connect|columns|columnprivileges|commit|cursor|close(_all)?|tables|tableprivileges|do|data_source|pconnect|primarykeys|procedures|procedurecolumns|prepare|error(msg)?|exec(ute)?|field_(scale|num|name|type|precision|len)|foreignkeys|free_result|fetch_(into|object|array|row)|longreadlen|autocommit|rollback|result(_all)?|gettypeinfo|binmode)\\\\b","name":"support.function.php_odbc.php"},{"match":"(?i)\\\\bpreg_(split|quote|filter|last_error|replace(_callback)?|grep|match(_all)?)\\\\b","name":"support.function.php_pcre.php"},{"match":"(?i)\\\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\\\b","name":"support.function.php_spl.php"},{"match":"(?i)\\\\bzip_(close|open|entry_(name|compressionmethod|compressedsize|close|open|filesize|read)|read)\\\\b","name":"support.function.php_zip.php"},{"match":"(?i)\\\\bposix_(strerror|set(s|e?u|[ep]?g)id|ctermid|ttyname|times|isatty|initgroups|uname|errno|kill|access|get(sid|cwd|uid|pid|ppid|pwnam|pwuid|pgid|pgrp|euid|egid|login|rlimit|gid|grnam|groups|grgid)|get_last_error|mknod|mkfifo)\\\\b","name":"support.function.posix.php"},{"match":"(?i)\\\\bset(thread|proc)title\\\\b","name":"support.function.proctitle.php"},{"match":"(?i)\\\\bpspell_(store_replacement|suggest|save_wordlist|new(_(config|personal))?|check|clear_session|config_(save_repl|create|ignore|(d(?:ata|ict))_dir|personal|runtogether|repl|mode)|add_to_(session|personal))\\\\b","name":"support.function.pspell.php"},{"match":"(?i)\\\\breadline(_(completion_function|clear_history|callback_(handler_(install|remove)|read_char)|info|on_new_line|write_history|list_history|add_history|redisplay|read_history))?\\\\b","name":"support.function.readline.php"},{"match":"(?i)\\\\brecode(_(string|file))?\\\\b","name":"support.function.recode.php"},{"match":"(?i)\\\\brrd(c_disconnect|_(create|tune|info|update|error|version|first|fetch|last(update)?|restore|graph|xport))\\\\b","name":"support.function.rrd.php"},{"match":"(?i)\\\\b(shm_((get|has|remove|put)_var|detach|attach|remove)|sem_(acquire|release|remove|get)|ftok|msg_((get|remove|set|stat)_queue|send|queue_exists|receive))\\\\b","name":"support.function.sem.php"},{"match":"(?i)\\\\bsession_(status|start|set_(save_handler|cookie_params)|save_path|name|commit|cache_(expire|limiter)|is_registered|id|destroy|decode|unset|unregister|encode|write_close|abort|reset|register(_shutdown)?|regenerate_id|get_cookie_params|module_name)\\\\b","name":"support.function.session.php"},{"match":"(?i)\\\\bshmop_(size|close|open|delete|write|read)\\\\b","name":"support.function.shmop.php"},{"match":"(?i)\\\\bsimplexml_(import_dom|load_(string|file))\\\\b","name":"support.function.simplexml.php"},{"match":"(?i)\\\\b(snmp(?:(walk(oid)?|realwalk|get(next)?|set)|_(set_(valueretrieval|quick_print|enum_print|oid_(numeric_print|output_format))|read_mib|get_(valueretrieval|quick_print))|[23]_(set|walk|real_walk|get(next)?)))\\\\b","name":"support.function.snmp.php"},{"match":"(?i)\\\\b(is_soap_fault|use_soap_error_handler)\\\\b","name":"support.function.soap.php"},{"match":"(?i)\\\\bsocket_(shutdown|strerror|send(to|msg)?|set_((non)?block|option)|select|connect|close|clear_error|bind|create(_(pair|listen))?|cmsg_space|import_stream|write|listen|last_error|accept|recv(from|msg)?|read|get(peer|sock)name|get_option)\\\\b","name":"support.function.sockets.php"},{"match":"(?i)\\\\bsqlite_(single_query|seek|has_(more|prev)|num_(fields|rows)|next|changes|column|current|close|create_(aggregate|function)|open|unbuffered_query|udf_((?:de|en)code)_binary|popen|prev|escape_string|error_string|exec|valid|key|query|field_name|factory|fetch_(string|single|column_types|object|all|array)|lib(encoding|version)|last_(insert_rowid|error)|array_query|rewind|busy_timeout)\\\\b","name":"support.function.sqlite.php"},{"match":"(?i)\\\\bsqlsrv_(send_stream_data|server_info|has_rows|num_(fields|rows)|next_result|connect|configure|commit|client_info|close|cancel|prepare|errors|execute|query|field_metadata|fetch(_(array|object))?|free_stmt|rows_affected|rollback|get_(config|field)|begin_transaction)\\\\b","name":"support.function.sqlsrv.php"},{"match":"(?i)\\\\bstats_(harmonic_mean|covariance|standard_deviation|skew|cdf_(noncentral_(chisquare|f)|negative_binomial|chisquare|cauchy|t|uniform|poisson|exponential|f|weibull|logistic|laplace|gamma|binomial|beta)|stat_(noncentral_t|correlation|innerproduct|independent_t|powersum|percentile|paired_t|gennch|binomial_coef)|dens_(normal|negative_binomial|chisquare|cauchy|t|pmf_(hypergeometric|poisson|binomial)|exponential|f|weibull|logistic|laplace|gamma|beta)|den_uniform|variance|kurtosis|absolute_deviation|rand_(setall|phrase_to_seeds|ranf|get_seeds|gen_(noncentral_[ft]|noncenral_chisquare|normal|chisquare|t|int|i(uniform|poisson|binomial(_negative)?)|exponential|f(uniform)?|gamma|beta)))\\\\b","name":"support.function.stats.php"},{"match":"(?i)\\\\b(s(?:et_socket_blocking|tream_(socket_(shutdown|sendto|server|client|pair|enable_crypto|accept|recvfrom|get_name)|set_(chunk_size|timeout|(read|write)_buffer|blocking)|select|notification_callback|supports_lock|context_(set_(option|default|params)|create|get_(options|default|params))|copy_to_stream|is_local|encoding|filter_(append|prepend|register|remove)|wrapper_((un)?register|restore)|resolve_include_path|register_wrapper|get_(contents|transports|filters|wrappers|line|meta_data)|bucket_(new|prepend|append|make_writeable))))\\\\b","name":"support.function.streamsfuncs.php"},{"match":"(?i)\\\\b(money_format|md5(_file)?|metaphone|bin2hex|sscanf|sha1(_file)?|str(str|c?spn|n(at)?(case)?cmp|chr|coll|(case)?cmp|to(upper|lower)|tok|tr|istr|pos|pbrk|len|rchr|ri?pos|rev)|str_(getcsv|ireplace|pad|repeat|replace|rot13|shuffle|split|word_count)|strip(c?slashes|os)|strip_tags|similar_text|soundex|substr(_(count|compare|replace))?|setlocale|html(specialchars(_decode)?|entities)|html_entity_decode|hex2bin|hebrev(c)?|number_format|nl2br|nl_langinfo|chop|chunk_split|chr|convert_(cyr_string|uu((?:de|en)code))|count_chars|crypt|crc32|trim|implode|ord|uc(first|words)|join|parse_str|print(f)?|echo|explode|v?[fs]?printf|quoted_printable_((?:de|en)code)|quotemeta|wordwrap|lcfirst|[lr]trim|localeconv|levenshtein|addc?slashes|get_html_translation_table)\\\\b","name":"support.function.string.php"},{"match":"(?i)\\\\bsybase_(set_message_handler|select_db|num_(fields|rows)|connect|close|deadlock_retry_count|data_seek|unbuffered_query|pconnect|query|field_seek|fetch_(object|field|assoc|array|row)|free_result|affected_rows|result|get_last_message|min_(client|error|message|server)_severity)\\\\b","name":"support.function.sybase.php"},{"match":"(?i)\\\\b(taint|is_tainted|untaint)\\\\b","name":"support.function.taint.php"},{"match":"(?i)\\\\b(tidy_(([gs]et)opt|set_encoding|save_config|config_count|clean_repair|is_(x(?:html|ml))|diagnose|(access|error|warning)_count|load_config|reset_config|(parse|repair)_(string|file)|get_(status|html(_ver)?|head|config|output|opt_doc|root|release|body))|ob_tidyhandler)\\\\b","name":"support.function.tidy.php"},{"match":"(?i)\\\\btoken_(name|get_all)\\\\b","name":"support.function.tokenizer.php"},{"match":"(?i)\\\\btrader_(stoch([fr]|rsi)?|stddev|sin(h)?|sum|sub|set_(compat|unstable_period)|sqrt|sar(ext)?|sma|ht_(sine|trend(line|mode)|dc(p(?:eriod|hase))|phasor)|natr|cci|cos(h)?|correl|cdl(shootingstar|shortline|sticksandwich|stalledpattern|spinningtop|separatinglines|hikkake(mod)?|highwave|homingpigeon|hangingman|harami(cross)?|hammer|concealbabyswall|counterattack|closingmarubozu|thrusting|tasukigap|takuri|tristar|inneck|invertedhammer|identical3crows|2crows|onneck|doji(star)?|darkcloudcover|dragonflydoji|unique3river|upsidegap2crows|3(starsinsouth|inside|outside|whitesoldiers|linestrike|blackcrows)|piercing|engulfing|evening(doji)?star|kicking(bylength)?|longline|longleggeddoji|ladderbottom|advanceblock|abandonedbaby|risefall3methods|rickshawman|gapsidesidewhite|gravestonedoji|xsidegap3methods|morning(doji)?star|mathold|matchinglow|marubozu|belthold|breakaway)|ceil|cmo|tsf|typprice|t3|tema|tan(h)?|trix|trima|trange|obv|div|dema|dx|ultosc|ppo|plus_d[im]|errno|exp|ema|var|kama|floor|wclprice|willr|wma|ln|log10|bop|beta|bbands|linearreg(_(slope|intercept|angle))?|asin|acos|atan|atr|adosc|add??|adx(r)?|apo|avgprice|aroon(osc)?|rsi|rocp??|rocr(100)?|get_(compat|unstable_period)|min(index)?|minus_d[im]|minmax(index)?|mid(p(?:oint|rice))|mom|mult|medprice|mfi|macd(ext|fix)?|mavp|max(index)?|ma(ma)?)\\\\b","name":"support.function.trader.php"},{"match":"(?i)\\\\buopz_(copy|compose|implement|overload|delete|undefine|extend|function|flags|restore|rename|redefine|backup)\\\\b","name":"support.function.uopz.php"},{"match":"(?i)\\\\b(http_build_query|(raw)?url((?:de|en)code)|parse_url|get_(headers|meta_tags)|base64_((?:de|en)code))\\\\b","name":"support.function.url.php"},{"match":"(?i)\\\\b(strval|settype|serialize|(bool|double|float)val|debug_zval_dump|intval|import_request_variables|isset|is_(scalar|string|null|numeric|callable|int(eger)?|object|double|float|long|array|resource|real|bool)|unset|unserialize|print_r|empty|var_(dump|export)|gettype|get_(defined_vars|resource_type))\\\\b","name":"support.function.var.php"},{"match":"(?i)\\\\bwddx_(serialize_(va(?:lue|rs))|deserialize|packet_(start|end)|add_vars)\\\\b","name":"support.function.wddx.php"},{"match":"(?i)\\\\bxhprof_(sample_)?((?:dis|en)able)\\\\b","name":"support.function.xhprof.php"},{"match":"(?i)\\\\b(utf8_((?:de|en)code)|xml_(set_((notation|(end|start)_namespace|unparsed_entity)_decl_handler|(character_data|default|element|external_entity_ref|processing_instruction)_handler|object)|parse(_into_struct)?|parser_(([gs]et)_option|create(_ns)?|free)|error_string|get_(current_((column|line)_number|byte_index)|error_code)))\\\\b","name":"support.function.xml.php"},{"match":"(?i)\\\\bxmlrpc_(server_(call_method|create|destroy|add_introspection_data|register_(introspection_callback|method))|is_fault|decode(_request)?|parse_method_descriptions|encode(_request)?|([gs]et)_type)\\\\b","name":"support.function.xmlrpc.php"},{"match":"(?i)\\\\bxmlwriter_((end|start|write)_(comment|cdata|dtd(_(attlist|entity|element))?|document|pi|attribute|element)|(start|write)_(attribute|element)_ns|write_raw|set_indent(_string)?|text|output_memory|open_(memory|uri)|full_end_element|flush|)\\\\b","name":"support.function.xmlwriter.php"},{"match":"(?i)\\\\b(zlib_(decode|encode|get_coding_type)|readgzfile|gz(seek|compress|close|tell|inflate|open|decode|deflate|uncompress|puts|passthru|encode|eof|file|write|rewind|read|getc|getss?))\\\\b","name":"support.function.zlib.php"},{"match":"(?i)\\\\bis_int(eger)?\\\\b","name":"support.function.alias.php"}]},"switch_statement":{"patterns":[{"match":"\\\\s+(?=switch\\\\b)"},{"begin":"\\\\bswitch\\\\b(?!\\\\s*\\\\(.*\\\\)\\\\s*:)","beginCaptures":{"0":{"name":"keyword.control.switch.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.section.switch-block.end.bracket.curly.php"}},"name":"meta.switch-statement.php","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.switch-expression.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.switch-expression.end.bracket.round.php"}},"patterns":[{"include":"#language"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.section.switch-block.begin.bracket.curly.php"}},"end":"(?=}|\\\\?>)","patterns":[{"include":"#language"}]}]}]},"use-inner":{"patterns":[{"include":"#comments"},{"begin":"(?i)\\\\b(as)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.use-as.php"}},"end":"(?i)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*","endCaptures":{"0":{"name":"entity.other.alias.php"}}},{"include":"#class-name"},{"match":",","name":"punctuation.separator.delimiter.php"}]},"var_basic":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(?i)(\\\\$+)[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*\\\\b","name":"variable.other.php"}]},"var_global":{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(\\\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg([cv]))\\\\b","name":"variable.other.global.php"},"var_global_safer":{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(\\\\$)((GLOBALS|_(ENV|SERVER|SESSION)))","name":"variable.other.global.safer.php"},"var_language":{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(\\\\$)this\\\\b","name":"variable.language.this.php"},"variable-name":{"patterns":[{"include":"#var_global"},{"include":"#var_global_safer"},{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"punctuation.definition.variable.php"},"4":{"name":"keyword.operator.class.php"},"5":{"name":"variable.other.property.php"},"6":{"name":"punctuation.section.array.begin.php"},"7":{"name":"constant.numeric.index.php"},"8":{"name":"variable.other.index.php"},"9":{"name":"punctuation.definition.variable.php"},"10":{"name":"string.unquoted.index.php"},"11":{"name":"punctuation.section.array.end.php"}},"match":"(?i)((\\\\$)(?[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*))(?:(->)(\\\\g)|(\\\\[)(?:(\\\\d+)|((\\\\$)\\\\g)|([_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*))(]))?"},{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"punctuation.definition.variable.php"},"4":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((\\\\$\\\\{)(?[_a-z\\\\x7F-\xFF][0-9_a-z\\\\x7F-\xFF]*)(}))"}]},"variables":{"patterns":[{"include":"#var_language"},{"include":"#var_global"},{"include":"#var_global_safer"},{"include":"#var_basic"},{"begin":"\\\\$\\\\{(?=.*?})","beginCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"patterns":[{"include":"#language"}]}]}},"scopeName":"text.html.php.blade","embeddedLangs":["html-derivative","html","xml","sql","javascript","json","css"]}`)),s=[...i,...n,...a,...p,...e,...r,...t,o];export{s as default}; diff --git a/docs/assets/blob-DtJQFQyD.js b/docs/assets/blob-DtJQFQyD.js new file mode 100644 index 0000000..2c7ed14 --- /dev/null +++ b/docs/assets/blob-DtJQFQyD.js @@ -0,0 +1 @@ +function u(r){return new Promise((a,i)=>{let t=new FileReader;t.onload=e=>{var n;a((n=e.target)==null?void 0:n.result)},t.onerror=e=>{i(Error(`Failed to read blob: ${e.type}`))},t.readAsDataURL(r)})}function b(r){return new Promise((a,i)=>{var t;try{let[e,n]=r.split(",",2),d=(t=/^data:(.+);base64$/.exec(e))==null?void 0:t[1],l=atob(n),s=l.length,c=new Uint8Array(s);for(let o=0;oj&&st.push("'"+this.terminals_[it]+"'");Ct=C.showPosition?"Parse error on line "+(v+1)+`: +`+C.showPosition()+` +Expecting `+st.join(", ")+", got '"+(this.terminals_[M]||M)+"'":"Parse error on line "+(v+1)+": Unexpected "+(M==Z?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Ct,{text:C.match,token:this.terminals_[M]||M,line:C.yylineno,loc:ut,expected:st})}if(Y[0]instanceof Array&&Y.length>1)throw Error("Parse Error: multiple actions possible at state: "+J+", token: "+M);switch(Y[0]){case 1:m.push(M),E.push(C.yytext),d.push(C.yylloc),m.push(Y[1]),M=null,yt?(M=yt,yt=null):(N=C.yyleng,c=C.yytext,v=C.yylineno,ut=C.yylloc,U>0&&U--);break;case 2:if(q=this.productions_[Y[1]][1],Q.$=E[E.length-q],Q._$={first_line:d[d.length-(q||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(q||1)].first_column,last_column:d[d.length-1].last_column},de&&(Q._$.range=[d[d.length-(q||1)].range[0],d[d.length-1].range[1]]),pt=this.performAction.apply(Q,[c,N,v,G.yy,Y[1],E,d].concat(V)),pt!==void 0)return pt;q&&(m=m.slice(0,-1*q*2),E=E.slice(0,-1*q),d=d.slice(0,-1*q)),m.push(this.productions_[Y[1]][0]),E.push(Q.$),d.push(Q._$),Nt=L[m[m.length-2]][m[m.length-1]],m.push(Nt);break;case 3:return!0}}return!0},"parse")};_.lexer=(function(){return{EOF:1,parseError:h(function(o,p){if(this.yy.parser)this.yy.parser.parseError(o,p);else throw Error(o)},"parseError"),setInput:h(function(o,p){return this.yy=p||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:h(function(o){var p=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-p),this.offset-=p;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===f.length?this.yylloc.first_column:0)+f[f.length-m.length].length-m[0].length:this.yylloc.first_column-p},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-p]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(o){this.unput(this.match.slice(o))},"less"),pastInput:h(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var o=this.pastInput(),p=Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+p+"^"},"showPosition"),test_match:h(function(o,p){var m,f,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),f=o[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],m=this.performAction.call(this,this.yy,this,p,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var d in E)this[d]=E[d];return!1}return!1},"test_match"),next:h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,p,m,f;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),d=0;dp[0].length)){if(p=m,f=d,this.options.backtrack_lexer){if(o=this.test_match(m,E[d]),o!==!1)return o;if(this._backtrack){p=!1;continue}else return!1}else if(!this.options.flex)break}return p?(o=this.test_match(p,E[f]),o===!1?!1:o):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:h(function(){return this.next()||this.lex()},"lex"),begin:h(function(o){this.conditionStack.push(o)},"begin"),popState:h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:h(function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:h(function(o){this.begin(o)},"pushState"),stateStackSize:h(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:h(function(o,p,m,f){switch(m){case 0:return o.getLogger().debug("Found block-beta"),10;case 1:return o.getLogger().debug("Found id-block"),29;case 2:return o.getLogger().debug("Found block"),10;case 3:o.getLogger().debug(".",p.yytext);break;case 4:o.getLogger().debug("_",p.yytext);break;case 5:return 5;case 6:return p.yytext=-1,28;case 7:return p.yytext=p.yytext.replace(/columns\s+/,""),o.getLogger().debug("COLUMNS (LEX)",p.yytext),28;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:o.getLogger().debug("LEX: POPPING STR:",p.yytext),this.popState();break;case 13:return o.getLogger().debug("LEX: STR end:",p.yytext),"STR";case 14:return p.yytext=p.yytext.replace(/space\:/,""),o.getLogger().debug("SPACE NUM (LEX)",p.yytext),21;case 15:return p.yytext="1",o.getLogger().debug("COLUMNS (LEX)",p.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";case 38:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),o.getLogger().debug("Lex: ))"),"NODE_DEND";case 40:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";case 41:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),o.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),o.getLogger().debug("Lex: -)"),"NODE_DEND";case 44:return this.popState(),o.getLogger().debug("Lex: (("),"NODE_DEND";case 45:return this.popState(),o.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),o.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),o.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";case 49:return this.popState(),o.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),o.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),o.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),o.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),o.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return o.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return o.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return o.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return o.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 59:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 60:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 61:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 62:return o.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return o.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 64:return o.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 65:return this.pushState("NODE"),35;case 66:return this.pushState("NODE"),35;case 67:return this.pushState("NODE"),35;case 68:return this.pushState("NODE"),35;case 69:return this.pushState("NODE"),35;case 70:return this.pushState("NODE"),35;case 71:return this.pushState("NODE"),35;case 72:return o.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),o.getLogger().debug("LEX ARR START"),37;case 74:return o.getLogger().debug("Lex: NODE_ID",p.yytext),31;case 75:return o.getLogger().debug("Lex: EOF",p.yytext),8;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:o.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:o.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return o.getLogger().debug("LEX: NODE_DESCR:",p.yytext),"NODE_DESCR";case 83:o.getLogger().debug("LEX POPPING"),this.popState();break;case 84:o.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return p.yytext=p.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (right): dir:",p.yytext),"DIR";case 86:return p.yytext=p.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (left):",p.yytext),"DIR";case 87:return p.yytext=p.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (x):",p.yytext),"DIR";case 88:return p.yytext=p.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (y):",p.yytext),"DIR";case 89:return p.yytext=p.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (up):",p.yytext),"DIR";case 90:return p.yytext=p.yytext.replace(/^,\s*/,""),o.getLogger().debug("Lex (down):",p.yytext),"DIR";case 91:return p.yytext="]>",o.getLogger().debug("Lex (ARROW_DIR end):",p.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return o.getLogger().debug("Lex: LINK","#"+p.yytext+"#"),15;case 93:return o.getLogger().debug("Lex: LINK",p.yytext),15;case 94:return o.getLogger().debug("Lex: LINK",p.yytext),15;case 95:return o.getLogger().debug("Lex: LINK",p.yytext),15;case 96:return o.getLogger().debug("Lex: START_LINK",p.yytext),this.pushState("LLABEL"),16;case 97:return o.getLogger().debug("Lex: START_LINK",p.yytext),this.pushState("LLABEL"),16;case 98:return o.getLogger().debug("Lex: START_LINK",p.yytext),this.pushState("LLABEL"),16;case 99:this.pushState("md_string");break;case 100:return o.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),o.getLogger().debug("Lex: LINK","#"+p.yytext+"#"),15;case 102:return this.popState(),o.getLogger().debug("Lex: LINK",p.yytext),15;case 103:return this.popState(),o.getLogger().debug("Lex: LINK",p.yytext),15;case 104:return o.getLogger().debug("Lex: COLON",p.yytext),p.yytext=p.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function $(){this.yy={}}return h($,"Parser"),$.prototype=_,_.Parser=$,new $})();ft.parser=ft;var De=ft,F=new Map,mt=[],wt=new Map,It="color",Bt="fill",ve="bgFill",Ot=",",$e=O(),nt=new Map,Ne=h(e=>we.sanitizeText(e,$e),"sanitizeText"),Ce=h(function(e,t=""){let i=nt.get(e);i||(i={id:e,styles:[],textStyles:[]},nt.set(e,i)),t==null||t.split(Ot).forEach(n=>{let a=n.replace(/([^;]*);/,"$1").trim();if(RegExp(It).exec(n)){let s=a.replace(Bt,ve).replace(It,Bt);i.textStyles.push(s)}i.styles.push(a)})},"addStyleClass"),Te=h(function(e,t=""){let i=F.get(e);t!=null&&(i.styles=t.split(Ot))},"addStyle2Node"),Ie=h(function(e,t){e.split(",").forEach(function(i){let n=F.get(i);if(n===void 0){let a=i.trim();n={id:a,type:"na",children:[]},F.set(a,n)}n.classes||(n.classes=[]),n.classes.push(t)})},"setCssClass"),zt=h((e,t)=>{var s;let i=e.flat(),n=[],a=((s=i.find(r=>(r==null?void 0:r.type)==="column-setting"))==null?void 0:s.columns)??-1;for(let r of i){if(typeof a=="number"&&a>0&&r.type!=="column-setting"&&typeof r.widthInColumns=="number"&&r.widthInColumns>a&&w.warn(`Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${a}`),r.label&&(r.label=Ne(r.label)),r.type==="classDef"){Ce(r.id,r.css);continue}if(r.type==="applyClass"){Ie(r.id,(r==null?void 0:r.styleClass)??"");continue}if(r.type==="applyStyles"){r!=null&&r.stylesStr&&Te(r.id,r==null?void 0:r.stylesStr);continue}if(r.type==="column-setting")t.columns=r.columns??-1;else if(r.type==="edge"){let l=(wt.get(r.id)??0)+1;wt.set(r.id,l),r.id=l+"-"+r.id,mt.push(r)}else{r.label||(r.type==="composite"?r.label="":r.label=r.id);let l=F.get(r.id);if(l===void 0?F.set(r.id,r):(r.type!=="na"&&(l.type=r.type),r.label!==r.id&&(l.label=r.label)),r.children&&zt(r.children,r),r.type==="space"){let u=r.width??1;for(let y=0;y{w.debug("Clear called"),fe(),rt={id:"root",type:"composite",children:[],columns:-1},F=new Map([["root",rt]]),Lt=[],nt=new Map,mt=[],wt=new Map},"clear");function Rt(e){switch(w.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return w.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}h(Rt,"typeStr2Type");function At(e){return(w.debug("typeStr2Type",e),e)==="=="?"thick":"normal"}h(At,"edgeTypeStr2Type");function Mt(e){switch(e.replace(/^[\s-]+|[\s-]+$/g,"")){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}h(Mt,"edgeStrToEdgeData");var Pt=0,Oe={getConfig:h(()=>et().block,"getConfig"),typeStr2Type:Rt,edgeTypeStr2Type:At,edgeStrToEdgeData:Mt,getLogger:h(()=>w,"getLogger"),getBlocksFlat:h(()=>[...F.values()],"getBlocksFlat"),getBlocks:h(()=>Lt||[],"getBlocks"),getEdges:h(()=>mt,"getEdges"),setHierarchy:h(e=>{rt.children=e,zt(e,rt),Lt=rt.children},"setHierarchy"),getBlock:h(e=>F.get(e),"getBlock"),setBlock:h(e=>{F.set(e.id,e)},"setBlock"),getColumns:h(e=>{let t=F.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),getClasses:h(function(){return nt},"getClasses"),clear:Be,generateId:h(()=>(Pt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Pt),"generateId")},lt=h((e,t)=>{let i=Le;return xe(i(e,"r"),i(e,"g"),i(e,"b"),t)},"fade"),ze=h(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span,p { + color: ${e.titleColor}; + } + + + + .label text,span,p { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePath .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${lt(e.edgeLabelBackground,.5)}; + // background-color: + } + + .node .cluster { + // fill: ${lt(e.mainBkg,.5)}; + fill: ${lt(e.clusterBkg,.5)}; + stroke: ${lt(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span,p { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + ${Ee()} +`,"getStyles"),Re=h((e,t,i,n)=>{t.forEach(a=>{Ae[a](e,i,n)})},"insertMarkers"),Ae={extension:h((e,t,i)=>{w.trace("Making markers for ",i),e.append("defs").append("marker").attr("id",i+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),composition:h((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation:h((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency:h((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop:h((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",i+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),point:h((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),circle:h((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),cross:h((e,t,i)=>{e.append("marker").attr("id",i+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:h((e,t,i)=>{e.append("defs").append("marker").attr("id",i+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb")},Me=Re,B=((oe=(le=O())==null?void 0:le.block)==null?void 0:oe.padding)??8;function Yt(e,t){if(e===0||!Number.isInteger(e))throw Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw Error("Position must be a non-negative integer."+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}h(Yt,"calculateBlockPosition");var Pe=h(e=>{let t=0,i=0;for(let n of e.children){let{width:a,height:s,x:r,y:l}=n.size??{width:0,height:0,x:0,y:0};w.debug("getMaxChildSize abc95 child:",n.id,"width:",a,"height:",s,"x:",r,"y:",l,n.type),n.type!=="space"&&(a>t&&(t=a/(e.widthInColumns??1)),s>i&&(i=s))}return{width:t,height:i}},"getMaxChildSize");function ot(e,t,i=0,n=0){var r,l,u,y,g,x,b,D,S,k,_;w.debug("setBlockSizes abc95 (start)",e.id,(r=e==null?void 0:e.size)==null?void 0:r.x,"block width =",e==null?void 0:e.size,"siblingWidth",i),(l=e==null?void 0:e.size)!=null&&l.width||(e.size={width:i,height:n,x:0,y:0});let a=0,s=0;if(((u=e.children)==null?void 0:u.length)>0){for(let L of e.children)ot(L,t);let $=Pe(e);a=$.width,s=$.height,w.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",a,s);for(let L of e.children)L.size&&(w.debug(`abc95 Setting size of children of ${e.id} id=${L.id} ${a} ${s} ${JSON.stringify(L.size)}`),L.size.width=a*(L.widthInColumns??1)+B*((L.widthInColumns??1)-1),L.size.height=s,L.size.x=0,L.size.y=0,w.debug(`abc95 updating size of ${e.id} children child:${L.id} maxWidth:${a} maxHeight:${s}`));for(let L of e.children)ot(L,t,a,s);let o=e.columns??-1,p=0;for(let L of e.children)p+=L.widthInColumns??1;let m=e.children.length;o>0&&o0?Math.min(e.children.length,o):e.children.length;if(L>0){let c=(E-L*B-B)/L;w.debug("abc95 (growing to fit) width",e.id,E,(b=e.size)==null?void 0:b.width,c);for(let v of e.children)v.size&&(v.size.width=c)}}e.size={width:E,height:d,x:0,y:0}}w.debug("setBlockSizes abc94 (done)",e.id,(D=e==null?void 0:e.size)==null?void 0:D.x,(S=e==null?void 0:e.size)==null?void 0:S.width,(k=e==null?void 0:e.size)==null?void 0:k.y,(_=e==null?void 0:e.size)==null?void 0:_.height)}h(ot,"setBlockSizes");function St(e,t){var n,a,s,r,l,u,y,g,x,b,D,S,k,_,$,o,p;w.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(n=e==null?void 0:e.size)==null?void 0:n.x} y: ${(a=e==null?void 0:e.size)==null?void 0:a.y} width: ${(s=e==null?void 0:e.size)==null?void 0:s.width}`);let i=e.columns??-1;if(w.debug("layoutBlocks columns abc95",e.id,"=>",i,e),e.children&&e.children.length>0){let m=((l=(r=e==null?void 0:e.children[0])==null?void 0:r.size)==null?void 0:l.width)??0,f=e.children.length*m+(e.children.length-1)*B;w.debug("widthOfChildren 88",f,"posX");let E=0;w.debug("abc91 block?.size?.x",e.id,(u=e==null?void 0:e.size)==null?void 0:u.x);let d=(y=e==null?void 0:e.size)!=null&&y.x?((g=e==null?void 0:e.size)==null?void 0:g.x)+(-((x=e==null?void 0:e.size)==null?void 0:x.width)/2||0):-B,L=0;for(let c of e.children){let v=e;if(!c.size)continue;let{width:N,height:U}=c.size,{px:j,py:Z}=Yt(i,E);if(Z!=L&&(L=Z,d=(b=e==null?void 0:e.size)!=null&&b.x?((D=e==null?void 0:e.size)==null?void 0:D.x)+(-((S=e==null?void 0:e.size)==null?void 0:S.width)/2||0):-B,w.debug("New row in layout for block",e.id," and child ",c.id,L)),w.debug(`abc89 layout blocks (child) id: ${c.id} Pos: ${E} (px, py) ${j},${Z} (${(k=v==null?void 0:v.size)==null?void 0:k.x},${(_=v==null?void 0:v.size)==null?void 0:_.y}) parent: ${v.id} width: ${N}${B}`),v.size){let C=N/2;c.size.x=d+B+C,w.debug(`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${d} new startingPosX${c.size.x} ${C} padding=${B} width=${N} halfWidth=${C} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${N*((c==null?void 0:c.widthInColumns)??1)/2}`),d=c.size.x+C,c.size.y=v.size.y-v.size.height/2+Z*(U+B)+U/2+B,w.debug(`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${d}${B}${C}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${N*((c==null?void 0:c.widthInColumns)??1)/2}`)}c.children&&St(c,t);let V=(c==null?void 0:c.widthInColumns)??1;i>0&&(V=Math.min(V,i-E%i)),E+=V,w.debug("abc88 columnsPos",c,E)}}w.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${($=e==null?void 0:e.size)==null?void 0:$.x} y: ${(o=e==null?void 0:e.size)==null?void 0:o.y} width: ${(p=e==null?void 0:e.size)==null?void 0:p.width}`)}h(St,"layoutBlocks");function kt(e,{minX:t,minY:i,maxX:n,maxY:a}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:s,y:r,width:l,height:u}=e.size;s-l/2n&&(n=s+l/2),r+u/2>a&&(a=r+u/2)}if(e.children)for(let s of e.children)({minX:t,minY:i,maxX:n,maxY:a}=kt(s,{minX:t,minY:i,maxX:n,maxY:a}));return{minX:t,minY:i,maxX:n,maxY:a}}h(kt,"findBounds");function Wt(e){let t=e.getBlock("root");if(!t)return;ot(t,e,0,0),St(t,e),w.debug("getBlocks",JSON.stringify(t,null,2));let{minX:i,minY:n,maxX:a,maxY:s}=kt(t),r=s-n;return{x:i,y:n,width:a-i,height:r}}h(Wt,"layout");function _t(e,t){t&&e.attr("style",t)}h(_t,"applyStyle");function Xt(e,t){let i=z(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=i.append("xhtml:div"),a=e.label,s=e.isNode?"nodeLabel":"edgeLabel",r=n.append("span");return r.html(bt(a,t)),_t(r,e.labelStyle),r.attr("class",s),_t(n,e.labelStyle),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),i.node()}h(Xt,"addHtmlLabel");var X=h(async(e,t,i,n)=>{let a=e||"";typeof a=="object"&&(a=a[0]);let s=O();if(H(s.flowchart.htmlLabels))return a=a.replace(/\\n|\n/g,"
"),w.debug("vertexText"+a),Xt({isNode:n,label:await _e(xt(a)),labelStyle:t.replace("fill:","color:")},s);{let r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let l=[];l=typeof a=="string"?a.split(/\\n|\n|/gi):Array.isArray(a)?a:[];for(let u of l){let y=document.createElementNS("http://www.w3.org/2000/svg","tspan");y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),y.setAttribute("dy","1em"),y.setAttribute("x","0"),i?y.setAttribute("class","title-row"):y.setAttribute("class","row"),y.textContent=u.trim(),r.appendChild(y)}return r}},"createLabel"),Ye=h((e,t,i,n,a)=>{t.arrowTypeStart&&Ft(e,"start",t.arrowTypeStart,i,n,a),t.arrowTypeEnd&&Ft(e,"end",t.arrowTypeEnd,i,n,a)},"addEdgeMarkers"),We={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Ft=h((e,t,i,n,a,s)=>{let r=We[i];if(!r){w.warn(`Unknown arrow type: ${i}`);return}let l=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${n}#${a}_${s}-${r}${l})`)},"addEdgeMarker"),Et={},A={},Xe=h(async(e,t)=>{let i=O(),n=H(i.flowchart.htmlLabels),a=t.labelType==="markdown"?Tt(e,t.label,{style:t.labelStyle,useHtmlLabels:n,addSvgBackground:!0},i):await X(t.label,t.labelStyle),s=e.insert("g").attr("class","edgeLabel"),r=s.insert("g").attr("class","label");r.node().appendChild(a);let l=a.getBBox();if(n){let y=a.children[0],g=z(a);l=y.getBoundingClientRect(),g.attr("width",l.width),g.attr("height",l.height)}r.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),Et[t.id]=s,t.width=l.width,t.height=l.height;let u;if(t.startLabelLeft){let y=await X(t.startLabelLeft,t.labelStyle),g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner");u=x.node().appendChild(y);let b=y.getBBox();x.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),A[t.id]||(A[t.id]={}),A[t.id].startLeft=g,at(u,t.startLabelLeft)}if(t.startLabelRight){let y=await X(t.startLabelRight,t.labelStyle),g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner");u=g.node().appendChild(y),x.node().appendChild(y);let b=y.getBBox();x.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),A[t.id]||(A[t.id]={}),A[t.id].startRight=g,at(u,t.startLabelRight)}if(t.endLabelLeft){let y=await X(t.endLabelLeft,t.labelStyle),g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner");u=x.node().appendChild(y);let b=y.getBBox();x.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),g.node().appendChild(y),A[t.id]||(A[t.id]={}),A[t.id].endLeft=g,at(u,t.endLabelLeft)}if(t.endLabelRight){let y=await X(t.endLabelRight,t.labelStyle),g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner");u=x.node().appendChild(y);let b=y.getBBox();x.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),g.node().appendChild(y),A[t.id]||(A[t.id]={}),A[t.id].endRight=g,at(u,t.endLabelRight)}return a},"insertEdgeLabel");function at(e,t){O().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}h(at,"setTerminalWidth");var Fe=h((e,t)=>{w.debug("Moving label abc88 ",e.id,e.label,Et[e.id],t);let i=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:n}=ke(O());if(e.label){let a=Et[e.id],s=e.x,r=e.y;if(i){let l=tt.calcLabelPosition(i);w.debug("Moving label "+e.label+" from (",s,",",r,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,r=l.y)}a.attr("transform",`translate(${s}, ${r+n/2})`)}if(e.startLabelLeft){let a=A[e.id].startLeft,s=e.x,r=e.y;if(i){let l=tt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",i);s=l.x,r=l.y}a.attr("transform",`translate(${s}, ${r})`)}if(e.startLabelRight){let a=A[e.id].startRight,s=e.x,r=e.y;if(i){let l=tt.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",i);s=l.x,r=l.y}a.attr("transform",`translate(${s}, ${r})`)}if(e.endLabelLeft){let a=A[e.id].endLeft,s=e.x,r=e.y;if(i){let l=tt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",i);s=l.x,r=l.y}a.attr("transform",`translate(${s}, ${r})`)}if(e.endLabelRight){let a=A[e.id].endRight,s=e.x,r=e.y;if(i){let l=tt.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",i);s=l.x,r=l.y}a.attr("transform",`translate(${s}, ${r})`)}},"positionEdgeLabel"),Ke=h((e,t)=>{let i=e.x,n=e.y,a=Math.abs(t.x-i),s=Math.abs(t.y-n),r=e.width/2,l=e.height/2;return a>=r||s>=l},"outsideNode"),He=h((e,t,i)=>{w.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(i)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,a=e.y,s=Math.abs(n-i.x),r=e.width/2,l=i.xMath.abs(n-t.x)*u){let x=i.y{w.debug("abc88 cutPathAtIntersect",e,t);let i=[],n=e[0],a=!1;return e.forEach(s=>{if(!Ke(t,s)&&!a){let r=He(t,n,s),l=!1;i.forEach(u=>{l||(l=u.x===r.x&&u.y===r.y)}),i.some(u=>u.x===r.x&&u.y===r.y)||i.push(r),a=!0}else n=s,a||i.push(s)}),i},"cutPathAtIntersect"),Ue=h(function(e,t,i,n,a,s,r){let l=i.points;w.debug("abc88 InsertEdge: edge=",i,"e=",t);let u=!1,y=s.node(t.v);var g=s.node(t.w);g!=null&&g.intersect&&(y!=null&&y.intersect)&&(l=l.slice(1,i.points.length-1),l.unshift(y.intersect(l[0])),l.push(g.intersect(l[l.length-1]))),i.toCluster&&(w.debug("to cluster abc88",n[i.toCluster]),l=Kt(i.points,n[i.toCluster].node),u=!0),i.fromCluster&&(w.debug("from cluster abc88",n[i.fromCluster]),l=Kt(l.reverse(),n[i.fromCluster].node).reverse(),u=!0);let x=l.filter(m=>!Number.isNaN(m.y)),b=ue;i.curve&&(a==="graph"||a==="flowchart")&&(b=i.curve);let{x:D,y:S}=Se(i),k=ye().x(D).y(S).curve(b),_;switch(i.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-thick";break;default:_=""}switch(i.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break}let $=e.append("path").attr("d",k(x)).attr("id",i.id).attr("class"," "+_+(i.classes?" "+i.classes:"")).attr("style",i.style),o="";(O().flowchart.arrowMarkerAbsolute||O().state.arrowMarkerAbsolute)&&(o=be(!0)),Ye($,i,o,r,a);let p={};return u&&(p.updatedPath=l),p.originalPath=i.points,p},"insertEdge"),je=h(e=>{let t=new Set;for(let i of e)switch(i){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(i);break}return t},"expandAndDeduplicateDirections"),qe=h((e,t,i)=>{let n=je(e),a=t.height+2*i.padding,s=a/2,r=t.width+2*s+i.padding,l=i.padding/2;return n.has("right")&&n.has("left")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:s,y:0},{x:r/2,y:2*l},{x:r-s,y:0},{x:r,y:0},{x:r,y:-a/3},{x:r+2*l,y:-a/2},{x:r,y:-2*a/3},{x:r,y:-a},{x:r-s,y:-a},{x:r/2,y:-a-2*l},{x:s,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*l,y:-a/2},{x:0,y:-a/3}]:n.has("right")&&n.has("left")&&n.has("up")?[{x:s,y:0},{x:r-s,y:0},{x:r,y:-a/2},{x:r-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}]:n.has("right")&&n.has("left")&&n.has("down")?[{x:0,y:0},{x:s,y:-a},{x:r-s,y:-a},{x:r,y:0}]:n.has("right")&&n.has("up")&&n.has("down")?[{x:0,y:0},{x:r,y:-s},{x:r,y:-a+s},{x:0,y:-a}]:n.has("left")&&n.has("up")&&n.has("down")?[{x:r,y:0},{x:0,y:-s},{x:0,y:-a+s},{x:r,y:-a}]:n.has("right")&&n.has("left")?[{x:s,y:0},{x:s,y:-l},{x:r-s,y:-l},{x:r-s,y:0},{x:r,y:-a/2},{x:r-s,y:-a},{x:r-s,y:-a+l},{x:s,y:-a+l},{x:s,y:-a},{x:0,y:-a/2}]:n.has("up")&&n.has("down")?[{x:r/2,y:0},{x:0,y:-l},{x:s,y:-l},{x:s,y:-a+l},{x:0,y:-a+l},{x:r/2,y:-a},{x:r,y:-a+l},{x:r-s,y:-a+l},{x:r-s,y:-l},{x:r,y:-l}]:n.has("right")&&n.has("up")?[{x:0,y:0},{x:r,y:-s},{x:0,y:-a}]:n.has("right")&&n.has("down")?[{x:0,y:0},{x:r,y:0},{x:0,y:-a}]:n.has("left")&&n.has("up")?[{x:r,y:0},{x:0,y:-s},{x:r,y:-a}]:n.has("left")&&n.has("down")?[{x:r,y:0},{x:0,y:0},{x:r,y:-a}]:n.has("right")?[{x:s,y:-l},{x:s,y:-l},{x:r-s,y:-l},{x:r-s,y:0},{x:r,y:-a/2},{x:r-s,y:-a},{x:r-s,y:-a+l},{x:s,y:-a+l},{x:s,y:-a+l}]:n.has("left")?[{x:s,y:0},{x:s,y:-l},{x:r-s,y:-l},{x:r-s,y:-a+l},{x:s,y:-a+l},{x:s,y:-a},{x:0,y:-a/2}]:n.has("up")?[{x:s,y:-l},{x:s,y:-a+l},{x:0,y:-a+l},{x:r/2,y:-a},{x:r,y:-a+l},{x:r-s,y:-a+l},{x:r-s,y:-l}]:n.has("down")?[{x:r/2,y:0},{x:0,y:-l},{x:s,y:-l},{x:s,y:-a+l},{x:r-s,y:-a+l},{x:r-s,y:-l},{x:r,y:-l}]:[{x:0,y:0}]},"getArrowPoints");function Ht(e,t){return e.intersect(t)}h(Ht,"intersectNode");var Ze=Ht;function Ut(e,t,i,n){var a=e.x,s=e.y,r=a-n.x,l=s-n.y,u=Math.sqrt(t*t*l*l+i*i*r*r),y=Math.abs(t*i*r/u);n.x0}h(Dt,"sameSign");var Je=Zt,Qe=Gt;function Gt(e,t,i){var n=e.x,a=e.y,s=[],r=1/0,l=1/0;typeof t.forEach=="function"?t.forEach(function(S){r=Math.min(r,S.x),l=Math.min(l,S.y)}):(r=Math.min(r,t.x),l=Math.min(l,t.y));for(var u=n-e.width/2-r,y=a-e.height/2-l,g=0;g1&&s.sort(function(S,k){var _=S.x-i.x,$=S.y-i.y,o=Math.sqrt(_*_+$*$),p=k.x-i.x,m=k.y-i.y,f=Math.sqrt(p*p+m*m);return o{var i=e.x,n=e.y,a=t.x-i,s=t.y-n,r=e.width/2,l=e.height/2,u,y;return Math.abs(s)*r>Math.abs(a)*l?(s<0&&(l=-l),u=s===0?0:l*a/s,y=l):(a<0&&(r=-r),u=r,y=a===0?0:r*s/a),{x:i+u,y:n+y}},"intersectRect")},R=h(async(e,t,i,n)=>{let a=O(),s,r=t.useHtmlLabels||H(a.flowchart.htmlLabels);s=i||"node default";let l=e.insert("g").attr("class",s).attr("id",t.domId||t.id),u=l.insert("g").attr("class","label").attr("style",t.labelStyle),y;y=t.labelText===void 0?"":typeof t.labelText=="string"?t.labelText:t.labelText[0];let g=u.node(),x;x=t.labelType==="markdown"?Tt(u,bt(xt(y),a),{useHtmlLabels:r,width:t.width||a.flowchart.wrappingWidth,classes:"markdown-node-label"},a):g.appendChild(await X(bt(xt(y),a),t.labelStyle,!1,n));let b=x.getBBox(),D=t.padding/2;if(H(a.flowchart.htmlLabels)){let S=x.children[0],k=z(x),_=S.getElementsByTagName("img");if(_){let $=y.replace(/]*>/g,"").trim()==="";await Promise.all([..._].map(o=>new Promise(p=>{function m(){if(o.style.display="flex",o.style.flexDirection="column",$){let f=a.fontSize?a.fontSize:window.getComputedStyle(document.body).fontSize,E=parseInt(f,10)*5+"px";o.style.minWidth=E,o.style.maxWidth=E}else o.style.width="100%";p(o)}h(m,"setupImage"),setTimeout(()=>{o.complete&&m()}),o.addEventListener("error",m),o.addEventListener("load",m)})))}b=S.getBoundingClientRect(),k.attr("width",b.width),k.attr("height",b.height)}return r?u.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"):u.attr("transform","translate(0, "+-b.height/2+")"),t.centerLabel&&u.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:l,bbox:b,halfPadding:D,label:u}},"labelHelper"),I=h((e,t)=>{let i=t.node().getBBox();e.width=i.width,e.height=i.height},"updateNodeBounds");function K(e,t,i,n){return e.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+i/2+")")}h(K,"insertPolygonShape");var Ve=h(async(e,t)=>{t.useHtmlLabels||O().flowchart.htmlLabels||(t.centerLabel=!0);let{shapeSvg:i,bbox:n,halfPadding:a}=await R(e,t,"node "+t.classes,!0);w.info("Classes = ",t.classes);let s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-n.width/2-a).attr("y",-n.height/2-a).attr("width",n.width+t.padding).attr("height",n.height+t.padding),I(t,s),t.intersect=function(r){return T.rect(t,r)},i},"note"),Jt=h(e=>e?" "+e:"","formatClass"),P=h((e,t)=>`${t||"node default"}${Jt(e.classes)} ${Jt(e.class)}`,"getClassesFromNode"),Qt=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding+(n.height+t.padding),s=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];w.info("Question main (Circle)");let r=K(i,a,a,s);return r.attr("style",t.style),I(t,r),t.intersect=function(l){return w.warn("Intersect called"),T.polygon(t,s,l)},i},"question"),tr=h((e,t)=>{let i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);return i.insert("polygon",":first-child").attr("points",[{x:0,y:28/2},{x:28/2,y:0},{x:0,y:-28/2},{x:-28/2,y:0}].map(function(n){return n.x+","+n.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(n){return T.circle(t,14,n)},i},"choice"),er=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.height+t.padding,s=a/4,r=n.width+2*s+t.padding,l=[{x:s,y:0},{x:r-s,y:0},{x:r,y:-a/2},{x:r-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],u=K(i,r,a,l);return u.attr("style",t.style),I(t,u),t.intersect=function(y){return T.polygon(t,l,y)},i},"hexagon"),rr=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,void 0,!0),a=n.height+2*t.padding,s=a/2,r=n.width+2*s+t.padding,l=qe(t.directions,n,t),u=K(i,r,a,l);return u.attr("style",t.style),I(t,u),t.intersect=function(y){return T.polygon(t,l,y)},i},"block_arrow"),ar=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding,s=n.height+t.padding,r=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return K(i,a,s,r).attr("style",t.style),t.width=a+s,t.height=s,t.intersect=function(l){return T.polygon(t,r,l)},i},"rect_left_inv_arrow"),ir=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t),!0),a=n.width+t.padding,s=n.height+t.padding,r=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],l=K(i,a,s,r);return l.attr("style",t.style),I(t,l),t.intersect=function(u){return T.polygon(t,r,u)},i},"lean_right"),sr=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding,s=n.height+t.padding,r=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],l=K(i,a,s,r);return l.attr("style",t.style),I(t,l),t.intersect=function(u){return T.polygon(t,r,u)},i},"lean_left"),nr=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding,s=n.height+t.padding,r=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],l=K(i,a,s,r);return l.attr("style",t.style),I(t,l),t.intersect=function(u){return T.polygon(t,r,u)},i},"trapezoid"),lr=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding,s=n.height+t.padding,r=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=K(i,a,s,r);return l.attr("style",t.style),I(t,l),t.intersect=function(u){return T.polygon(t,r,u)},i},"inv_trapezoid"),or=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding,s=n.height+t.padding,r=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],l=K(i,a,s,r);return l.attr("style",t.style),I(t,l),t.intersect=function(u){return T.polygon(t,r,u)},i},"rect_right_inv_arrow"),dr=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding,s=a/2,r=s/(2.5+a/50),l=n.height+r+t.padding,u="M 0,"+r+" a "+s+","+r+" 0,0,0 "+a+" 0 a "+s+","+r+" 0,0,0 "+-a+" 0 l 0,"+l+" a "+s+","+r+" 0,0,0 "+a+" 0 l 0,"+-l;return I(t,i.attr("label-offset-y",r).insert("path",":first-child").attr("style",t.style).attr("d",u).attr("transform","translate("+-a/2+","+-(l/2+r)+")")),t.intersect=function(y){let g=T.rect(t,y),x=g.x-t.x;if(s!=0&&(Math.abs(x)t.height/2-r)){let b=r*r*(1-x*x/(s*s));b!=0&&(b=Math.sqrt(b)),b=r-b,y.y-t.y>0&&(b=-b),g.y+=b}return g},i},"cylinder"),cr=h(async(e,t)=>{let{shapeSvg:i,bbox:n,halfPadding:a}=await R(e,t,"node "+t.classes+" "+t.class,!0),s=i.insert("rect",":first-child"),r=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,u=t.positioned?-r/2:-n.width/2-a,y=t.positioned?-l/2:-n.height/2-a;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",u).attr("y",y).attr("width",r).attr("height",l),t.props){let g=new Set(Object.keys(t.props));t.props.borders&&(dt(s,t.props.borders,r,l),g.delete("borders")),g.forEach(x=>{w.warn(`Unknown node property ${x}`)})}return I(t,s),t.intersect=function(g){return T.rect(t,g)},i},"rect"),hr=h(async(e,t)=>{let{shapeSvg:i,bbox:n,halfPadding:a}=await R(e,t,"node "+t.classes,!0),s=i.insert("rect",":first-child"),r=t.positioned?t.width:n.width+t.padding,l=t.positioned?t.height:n.height+t.padding,u=t.positioned?-r/2:-n.width/2-a,y=t.positioned?-l/2:-n.height/2-a;if(s.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",u).attr("y",y).attr("width",r).attr("height",l),t.props){let g=new Set(Object.keys(t.props));t.props.borders&&(dt(s,t.props.borders,r,l),g.delete("borders")),g.forEach(x=>{w.warn(`Unknown node property ${x}`)})}return I(t,s),t.intersect=function(g){return T.rect(t,g)},i},"composite"),gr=h(async(e,t)=>{let{shapeSvg:i}=await R(e,t,"label",!0);w.trace("Classes = ",t.class);let n=i.insert("rect",":first-child");if(n.attr("width",0).attr("height",0),i.attr("class","label edgeLabel"),t.props){let a=new Set(Object.keys(t.props));t.props.borders&&(dt(n,t.props.borders,0,0),a.delete("borders")),a.forEach(s=>{w.warn(`Unknown node property ${s}`)})}return I(t,n),t.intersect=function(a){return T.rect(t,a)},i},"labelRect");function dt(e,t,i,n){let a=[],s=h(l=>{a.push(l,0)},"addBorder"),r=h(l=>{a.push(0,l)},"skipBorder");t.includes("t")?(w.debug("add top border"),s(i)):r(i),t.includes("r")?(w.debug("add right border"),s(n)):r(n),t.includes("b")?(w.debug("add bottom border"),s(i)):r(i),t.includes("l")?(w.debug("add left border"),s(n)):r(n),e.attr("stroke-dasharray",a.join(" "))}h(dt,"applyNodePropertyBorders");var ur=h(async(e,t)=>{let i;i=t.classes?"node "+t.classes:"node default";let n=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=n.insert("rect",":first-child"),s=n.insert("line"),r=n.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText,u="";u=typeof l=="object"?l[0]:l,w.info("Label text abc79",u,l,typeof l=="object");let y=r.node().appendChild(await X(u,t.labelStyle,!0,!0)),g={width:0,height:0};if(H(O().flowchart.htmlLabels)){let k=y.children[0],_=z(y);g=k.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}w.info("Text 2",l);let x=l.slice(1,l.length),b=y.getBBox(),D=r.node().appendChild(await X(x.join?x.join("
"):x,t.labelStyle,!0,!0));if(H(O().flowchart.htmlLabels)){let k=D.children[0],_=z(D);g=k.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}let S=t.padding/2;return z(D).attr("transform","translate( "+(g.width>b.width?0:(b.width-g.width)/2)+", "+(b.height+S+5)+")"),z(y).attr("transform","translate( "+(g.width{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.height+t.padding,s=n.width+a/4+t.padding;return I(t,i.insert("rect",":first-child").attr("style",t.style).attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a)),t.intersect=function(r){return T.rect(t,r)},i},"stadium"),pr=h(async(e,t)=>{let{shapeSvg:i,bbox:n,halfPadding:a}=await R(e,t,P(t,void 0),!0),s=i.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a).attr("width",n.width+t.padding).attr("height",n.height+t.padding),w.info("Circle main"),I(t,s),t.intersect=function(r){return w.info("Circle intersect",t,n.width/2+a,r),T.circle(t,n.width/2+a,r)},i},"circle"),xr=h(async(e,t)=>{let{shapeSvg:i,bbox:n,halfPadding:a}=await R(e,t,P(t,void 0),!0),s=i.insert("g",":first-child"),r=s.insert("circle"),l=s.insert("circle");return s.attr("class",t.class),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a+5).attr("width",n.width+t.padding+10).attr("height",n.height+t.padding+10),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",n.width/2+a).attr("width",n.width+t.padding).attr("height",n.height+t.padding),w.info("DoubleCircle main"),I(t,r),t.intersect=function(u){return w.info("DoubleCircle intersect",t,n.width/2+a+5,u),T.circle(t,n.width/2+a+5,u)},i},"doublecircle"),br=h(async(e,t)=>{let{shapeSvg:i,bbox:n}=await R(e,t,P(t,void 0),!0),a=n.width+t.padding,s=n.height+t.padding,r=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=K(i,a,s,r);return l.attr("style",t.style),I(t,l),t.intersect=function(u){return T.polygon(t,r,u)},i},"subroutine"),fr=h((e,t)=>{let i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=i.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),I(t,n),t.intersect=function(a){return T.circle(t,7,a)},i},"start"),Vt=h((e,t,i)=>{let n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),a=70,s=10;return i==="LR"&&(a=10,s=70),I(t,n.append("rect").attr("x",-1*a/2).attr("y",-1*s/2).attr("width",a).attr("height",s).attr("class","fork-join")),t.height+=t.padding/2,t.width+=t.padding/2,t.intersect=function(r){return T.rect(t,r)},n},"forkJoin"),te={rhombus:Qt,composite:hr,question:Qt,rect:cr,labelRect:gr,rectWithTitle:ur,choice:tr,circle:pr,doublecircle:xr,stadium:yr,hexagon:er,block_arrow:rr,rect_left_inv_arrow:ar,lean_right:ir,lean_left:sr,trapezoid:nr,inv_trapezoid:lr,rect_right_inv_arrow:or,cylinder:dr,start:fr,end:h((e,t)=>{let i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),n=i.insert("circle",":first-child"),a=i.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),n.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),I(t,a),t.intersect=function(s){return T.circle(t,7,s)},i},"end"),note:Ve,subroutine:br,fork:Vt,join:Vt,class_box:h(async(e,t)=>{var E;let i=t.padding/2,n;n=t.classes?"node "+t.classes:"node default";let a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=a.insert("rect",":first-child"),r=a.insert("line"),l=a.insert("line"),u=0,y=4,g=a.insert("g").attr("class","label"),x=0,b=(E=t.classData.annotations)==null?void 0:E[0],D=t.classData.annotations[0]?"\xAB"+t.classData.annotations[0]+"\xBB":"",S=g.node().appendChild(await X(D,t.labelStyle,!0,!0)),k=S.getBBox();if(H(O().flowchart.htmlLabels)){let d=S.children[0],L=z(S);k=d.getBoundingClientRect(),L.attr("width",k.width),L.attr("height",k.height)}t.classData.annotations[0]&&(y+=k.height+4,u+=k.width);let _=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(O().flowchart.htmlLabels?_+="<"+t.classData.type+">":_+="<"+t.classData.type+">");let $=g.node().appendChild(await X(_,t.labelStyle,!0,!0));z($).attr("class","classTitle");let o=$.getBBox();if(H(O().flowchart.htmlLabels)){let d=$.children[0],L=z($);o=d.getBoundingClientRect(),L.attr("width",o.width),L.attr("height",o.height)}y+=o.height+4,o.width>u&&(u=o.width);let p=[];t.classData.members.forEach(async d=>{let L=d.getDisplayDetails(),c=L.displayText;O().flowchart.htmlLabels&&(c=c.replace(//g,">"));let v=g.node().appendChild(await X(c,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0)),N=v.getBBox();if(H(O().flowchart.htmlLabels)){let U=v.children[0],j=z(v);N=U.getBoundingClientRect(),j.attr("width",N.width),j.attr("height",N.height)}N.width>u&&(u=N.width),y+=N.height+4,p.push(v)}),y+=8;let m=[];if(t.classData.methods.forEach(async d=>{let L=d.getDisplayDetails(),c=L.displayText;O().flowchart.htmlLabels&&(c=c.replace(//g,">"));let v=g.node().appendChild(await X(c,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0)),N=v.getBBox();if(H(O().flowchart.htmlLabels)){let U=v.children[0],j=z(v);N=U.getBoundingClientRect(),j.attr("width",N.width),j.attr("height",N.height)}N.width>u&&(u=N.width),y+=N.height+4,m.push(v)}),y+=8,b){let d=(u-k.width)/2;z(S).attr("transform","translate( "+(-1*u/2+d)+", "+-1*y/2+")"),x=k.height+4}let f=(u-o.width)/2;return z($).attr("transform","translate( "+(-1*u/2+f)+", "+(-1*y/2+x)+")"),x+=o.height+4,r.attr("class","divider").attr("x1",-u/2-i).attr("x2",u/2+i).attr("y1",-y/2-i+8+x).attr("y2",-y/2-i+8+x),x+=8,p.forEach(d=>{z(d).attr("transform","translate( "+-u/2+", "+(-1*y/2+x+8/2)+")");let L=d==null?void 0:d.getBBox();x+=((L==null?void 0:L.height)??0)+4}),x+=8,l.attr("class","divider").attr("x1",-u/2-i).attr("x2",u/2+i).attr("y1",-y/2-i+8+x).attr("y2",-y/2-i+8+x),x+=8,m.forEach(d=>{z(d).attr("transform","translate( "+-u/2+", "+(-1*y/2+x)+")");let L=d==null?void 0:d.getBBox();x+=((L==null?void 0:L.height)??0)+4}),s.attr("style",t.style).attr("class","outer title-state").attr("x",-u/2-i).attr("y",-(y/2)-i).attr("width",u+t.padding).attr("height",y+t.padding),I(t,s),t.intersect=function(d){return T.rect(t,d)},a},"class_box")},ct={},ee=h(async(e,t,i)=>{let n,a;if(t.link){let s;O().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s),a=await te[t.shape](n,t,i)}else a=await te[t.shape](e,t,i),n=a;return t.tooltip&&a.attr("title",t.tooltip),t.class&&a.attr("class","node default "+t.class),ct[t.id]=n,t.haveCallback&&ct[t.id].attr("class",ct[t.id].attr("class")+" clickable"),n},"insertNode"),mr=h(e=>{let t=ct[e.id];w.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode");function vt(e,t,i=!1){var x,b,D;let n=e,a="default";(((x=n==null?void 0:n.classes)==null?void 0:x.length)||0)>0&&(a=((n==null?void 0:n.classes)??[]).join(" ")),a+=" flowchart-label";let s=0,r="",l;switch(n.type){case"round":s=5,r="rect";break;case"composite":s=0,r="composite",l=0;break;case"square":r="rect";break;case"diamond":r="question";break;case"hexagon":r="hexagon";break;case"block_arrow":r="block_arrow";break;case"odd":r="rect_left_inv_arrow";break;case"lean_right":r="lean_right";break;case"lean_left":r="lean_left";break;case"trapezoid":r="trapezoid";break;case"inv_trapezoid":r="inv_trapezoid";break;case"rect_left_inv_arrow":r="rect_left_inv_arrow";break;case"circle":r="circle";break;case"ellipse":r="ellipse";break;case"stadium":r="stadium";break;case"subroutine":r="subroutine";break;case"cylinder":r="cylinder";break;case"group":r="rect";break;case"doublecircle":r="doublecircle";break;default:r="rect"}let u=pe((n==null?void 0:n.styles)??[]),y=n.label,g=n.size??{width:0,height:0,x:0,y:0};return{labelStyle:u.labelStyle,shape:r,labelText:y,rx:s,ry:s,class:a,style:u.style,id:n.id,directions:n.directions,width:g.width,height:g.height,x:g.x,y:g.y,positioned:i,intersect:void 0,type:n.type,padding:l??((D=(b=et())==null?void 0:b.block)==null?void 0:D.padding)??0}}h(vt,"getNodeFromBlock");async function re(e,t,i){let n=vt(t,i,!1);if(n.type==="group")return;let a=await ee(e,n,{config:et()}),s=a.node().getBBox(),r=i.getBlock(n.id);r.size={width:s.width,height:s.height,x:0,y:0,node:a},i.setBlock(r),a.remove()}h(re,"calculateBlockSize");async function ae(e,t,i){let n=vt(t,i,!0);i.getBlock(n.id).type!=="space"&&(await ee(e,n,{config:et()}),t.intersect=n==null?void 0:n.intersect,mr(n))}h(ae,"insertBlockPositioned");async function ht(e,t,i,n){for(let a of t)await n(e,a,i),a.children&&await ht(e,a.children,i,n)}h(ht,"performOperations");async function ie(e,t,i){await ht(e,t,i,re)}h(ie,"calculateBlockSizes");async function se(e,t,i){await ht(e,t,i,ae)}h(se,"insertBlocks");async function ne(e,t,i,n,a){let s=new he({multigraph:!0,compound:!0});s.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let r of i)r.size&&s.setNode(r.id,{width:r.size.width,height:r.size.height,intersect:r.intersect});for(let r of t)if(r.start&&r.end){let l=n.getBlock(r.start),u=n.getBlock(r.end);if(l!=null&&l.size&&(u!=null&&u.size)){let y=l.size,g=u.size,x=[{x:y.x,y:y.y},{x:y.x+(g.x-y.x)/2,y:y.y+(g.y-y.y)/2},{x:g.x,y:g.y}];Ue(e,{v:r.start,w:r.end,name:r.id},{...r,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:x,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",s,a),r.label&&(await Xe(e,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:x,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),Fe({...r,x:x[1].x,y:x[1].y},{originalPath:x}))}}}h(ne,"insertEdges");var wr={parser:De,db:Oe,renderer:{draw:h(async function(e,t,i,n){let{securityLevel:a,block:s}=et(),r=n.db,l;a==="sandbox"&&(l=z("#i"+t));let u=z(a==="sandbox"?l.nodes()[0].contentDocument.body:"body"),y=a==="sandbox"?u.select(`[id="${t}"]`):z(`[id="${t}"]`);Me(y,["point","circle","cross"],n.type,t);let g=r.getBlocks(),x=r.getBlocksFlat(),b=r.getEdges(),D=y.insert("g").attr("class","block");await ie(D,g,r);let S=Wt(r);if(await se(D,g,r),await ne(D,b,x,r,t),S){let k=S,_=Math.max(1,Math.round(.125*(k.width/k.height))),$=k.height+_+10,o=k.width+10,{useMaxWidth:p}=s;me(y,$,o,!!p),w.debug("Here Bounds",S,k),y.attr("viewBox",`${k.x-5} ${k.y-5} ${k.width+10} ${k.height+10}`)}},"draw"),getClasses:h(function(e,t){return t.db.getClasses()},"getClasses")},styles:ze};export{wr as diagram}; diff --git a/docs/assets/brainfuck-BeRVF6bt.js b/docs/assets/brainfuck-BeRVF6bt.js new file mode 100644 index 0000000..e570fee --- /dev/null +++ b/docs/assets/brainfuck-BeRVF6bt.js @@ -0,0 +1 @@ +import{t as r}from"./brainfuck-DrjMyC8V.js";export{r as brainfuck}; diff --git a/docs/assets/brainfuck-DrjMyC8V.js b/docs/assets/brainfuck-DrjMyC8V.js new file mode 100644 index 0000000..629c60d --- /dev/null +++ b/docs/assets/brainfuck-DrjMyC8V.js @@ -0,0 +1 @@ +var r="><+-.,[]".split("");const o={name:"brainfuck",startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(n,t){if(n.eatSpace())return null;n.sol()&&(t.commentLine=!1);var e=n.next().toString();if(r.indexOf(e)!==-1){if(t.commentLine===!0)return n.eol()&&(t.commentLine=!1),"comment";if(e==="]"||e==="[")return e==="["?t.left++:t.right++,"bracket";if(e==="+"||e==="-")return"keyword";if(e==="<"||e===">")return"atom";if(e==="."||e===",")return"def"}else return t.commentLine=!0,n.eol()&&(t.commentLine=!1),"comment";n.eol()&&(t.commentLine=!1)}};export{o as t}; diff --git a/docs/assets/bsl-DTJwR2Lj.js b/docs/assets/bsl-DTJwR2Lj.js new file mode 100644 index 0000000..e353f9f --- /dev/null +++ b/docs/assets/bsl-DTJwR2Lj.js @@ -0,0 +1 @@ +import{t as e}from"./sdbl-B0Yf9V5G.js";var t=Object.freeze(JSON.parse(`{"displayName":"1C (Enterprise)","fileTypes":["bsl","os"],"name":"bsl","patterns":[{"include":"#basic"},{"include":"#miscellaneous"},{"begin":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430|Procedure|\u0424\u0443\u043D\u043A\u0446\u0438\u044F|Function)\\\\s+([0-9_a-z\u0430-\u044F\u0451]+)\\\\s*(\\\\())","beginCaptures":{"1":{"name":"storage.type.bsl"},"2":{"name":"entity.name.function.bsl"},"3":{"name":"punctuation.bracket.begin.bsl"}},"end":"(?i:(\\\\))\\\\s*((\u042D\u043A\u0441\u043F\u043E\u0440\u0442|Export)(?=[^.\u0430-\u044F\u0451\\\\w]|$))?)","endCaptures":{"1":{"name":"punctuation.bracket.end.bsl"},"2":{"name":"storage.modifier.bsl"}},"patterns":[{"include":"#annotations"},{"include":"#basic"},{"match":"(=)","name":"keyword.operator.assignment.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0417\u043D\u0430\u0447|Val)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"storage.modifier.bsl"},{"match":"(?<=[^.\u0430-\u044F\u0451\\\\w]|^)((?<==)(?i)[0-9_a-z\u0430-\u044F\u0451]+)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"invalid.illegal.bsl"},{"match":"(?<=[^.\u0430-\u044F\u0451\\\\w]|^)((?<==\\\\s)\\\\s*(?i)[0-9_a-z\u0430-\u044F\u0451]+)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"invalid.illegal.bsl"},{"match":"(?i:[0-9_a-z\u0430-\u044F\u0451]+)","name":"variable.parameter.bsl"}]},{"begin":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u0435\u0440\u0435\u043C|Var)\\\\s+([0-9_a-z\u0430-\u044F\u0451]+)\\\\s*)","beginCaptures":{"1":{"name":"storage.type.var.bsl"},"2":{"name":"variable.bsl"}},"end":"(;)","endCaptures":{"1":{"name":"keyword.operator.bsl"}},"patterns":[{"match":"(,)","name":"keyword.operator.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u042D\u043A\u0441\u043F\u043E\u0440\u0442|Export)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"storage.modifier.bsl"},{"match":"(?i:[0-9_a-z\u0430-\u044F\u0451]+)","name":"variable.bsl"}]},{"begin":"(?i:(?<=;|^)\\\\s*(\u0415\u0441\u043B\u0438|If))","beginCaptures":{"1":{"name":"keyword.control.conditional.bsl"}},"end":"(?i:(\u0422\u043E\u0433\u0434\u0430|Then))","endCaptures":{"1":{"name":"keyword.control.conditional.bsl"}},"name":"meta.conditional.bsl","patterns":[{"include":"#basic"},{"include":"#miscellaneous"}]},{"begin":"(?i:(?<=;|^)\\\\s*([\u0430-\u044F\u0451\\\\w]+))\\\\s*(=)","beginCaptures":{"1":{"name":"variable.assignment.bsl"},"2":{"name":"keyword.operator.assignment.bsl"}},"end":"(?i:(?=(;|\u0418\u043D\u0430\u0447\u0435|\u041A\u043E\u043D\u0435\u0446|Els|End)))","name":"meta.var-single-variable.bsl","patterns":[{"include":"#basic"},{"include":"#miscellaneous"}]},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041A\u043E\u043D\u0435\u0446\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u044B|EndProcedure|\u041A\u043E\u043D\u0435\u0446\u0424\u0443\u043D\u043A\u0446\u0438\u0438|EndFunction)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"storage.type.bsl"},{"match":"(?i)#(\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C|Use)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"keyword.control.import.bsl"},{"match":"(?i)#native","name":"keyword.control.native.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u0440\u0435\u0440\u0432\u0430\u0442\u044C|Break|\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C|Continue|\u0412\u043E\u0437\u0432\u0440\u0430\u0442|Return)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"keyword.control.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0415\u0441\u043B\u0438|If|\u0418\u043D\u0430\u0447\u0435|Else|\u0418\u043D\u0430\u0447\u0435\u0415\u0441\u043B\u0438|ElsIf|\u0422\u043E\u0433\u0434\u0430|Then|\u041A\u043E\u043D\u0435\u0446\u0415\u0441\u043B\u0438|EndIf)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"keyword.control.conditional.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u043F\u044B\u0442\u043A\u0430|Try|\u0418\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435|Except|\u041A\u043E\u043D\u0435\u0446\u041F\u043E\u043F\u044B\u0442\u043A\u0438|EndTry|\u0412\u044B\u0437\u0432\u0430\u0442\u044C\u0418\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435|Raise)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"keyword.control.exception.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u043A\u0430|While|(\u0414\u043B\u044F|For)(\\\\s+(\u041A\u0430\u0436\u0434\u043E\u0433\u043E|Each))?|\u0418\u0437|In|\u041F\u043E|To|\u0426\u0438\u043A\u043B|Do|\u041A\u043E\u043D\u0435\u0446\u0426\u0438\u043A\u043B\u0430|EndDo)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"keyword.control.repeat.bsl"},{"match":"(?i:&(\u041D\u0430\u041A\u043B\u0438\u0435\u043D\u0442\u0435((\u041D\u0430\u0421\u0435\u0440\u0432\u0435\u0440\u0435(\u0411\u0435\u0437\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0430)?)?)|AtClient((AtServer(NoContext)?)?)|\u041D\u0430\u0421\u0435\u0440\u0432\u0435\u0440\u0435(\u0411\u0435\u0437\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0430)?|AtServer(NoContext)?))","name":"storage.modifier.directive.bsl"},{"include":"#annotations"},{"match":"(?i:#(\u0415\u0441\u043B\u0438|If|\u0418\u043D\u0430\u0447\u0435\u0415\u0441\u043B\u0438|ElsIf|\u0418\u043D\u0430\u0447\u0435|Else|\u041A\u043E\u043D\u0435\u0446\u0415\u0441\u043B\u0438|EndIf).*(\u0422\u043E\u0433\u0434\u0430|Then)?)","name":"keyword.other.preprocessor.bsl"},{"begin":"(?i)(#(\u041E\u0431\u043B\u0430\u0441\u0442\u044C|Region))(\\\\s+([\u0430-\u044F\u0451\\\\w]+))?","beginCaptures":{"1":{"name":"keyword.other.section.bsl"},"4":{"name":"entity.name.section.bsl"}},"end":"$"},{"match":"(?i)#(\u041A\u043E\u043D\u0435\u0446\u041E\u0431\u043B\u0430\u0441\u0442\u0438|EndRegion)","name":"keyword.other.section.bsl"},{"match":"(?i)#(\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435|Delete)","name":"keyword.other.section.bsl"},{"match":"(?i)#(\u041A\u043E\u043D\u0435\u0446\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u044F|EndDelete)","name":"keyword.other.section.bsl"},{"match":"(?i)#(\u0412\u0441\u0442\u0430\u0432\u043A\u0430|Insert)","name":"keyword.other.section.bsl"},{"match":"(?i)#(\u041A\u043E\u043D\u0435\u0446\u0412\u0441\u0442\u0430\u0432\u043A\u0438|EndInsert)","name":"keyword.other.section.bsl"}],"repository":{"annotations":{"patterns":[{"begin":"(?i)(&([0-9_a-z\u0430-\u044F\u0451]+))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.annotation.bsl"},"3":{"name":"punctuation.bracket.begin.bsl"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.bracket.end.bsl"}},"patterns":[{"include":"#basic"},{"match":"(=)","name":"keyword.operator.assignment.bsl"},{"match":"(?<=[^.\u0430-\u044F\u0451\\\\w]|^)((?<==)(?i)[0-9_a-z\u0430-\u044F\u0451]+)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"invalid.illegal.bsl"},{"match":"(?<=[^.\u0430-\u044F\u0451\\\\w]|^)((?<==\\\\s)\\\\s*(?i)[0-9_a-z\u0430-\u044F\u0451]+)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"invalid.illegal.bsl"},{"match":"(?i)[0-9_a-z\u0430-\u044F\u0451]+","name":"variable.annotation.bsl"}]},{"match":"(?i)(&([0-9_a-z\u0430-\u044F\u0451]+))","name":"storage.type.annotation.bsl"}]},"basic":{"patterns":[{"begin":"//","end":"$","name":"comment.line.double-slash.bsl"},{"begin":"\\"","end":"\\"(?!\\")","name":"string.quoted.double.bsl","patterns":[{"include":"#query"},{"match":"\\"\\"","name":"constant.character.escape.bsl"},{"match":"^(\\\\s*//.*)$","name":"comment.line.double-slash.bsl"}]},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041D\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E|Undefined|\u0418\u0441\u0442\u0438\u043D\u0430|True|\u041B\u043E\u0436\u044C|False|NULL)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"constant.language.bsl"},{"match":"(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\\\\d+\\\\.?\\\\d*)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"constant.numeric.bsl"},{"match":"'((\\\\d{4}[^'\\\\d]*\\\\d{2}[^'\\\\d]*\\\\d{2})([^'\\\\d]*\\\\d{2}[^'\\\\d]*\\\\d{2}([^'\\\\d]*\\\\d{2})?)?)'","name":"constant.other.date.bsl"},{"match":"(,)","name":"keyword.operator.bsl"},{"match":"(\\\\()","name":"punctuation.bracket.begin.bsl"},{"match":"(\\\\))","name":"punctuation.bracket.end.bsl"}]},"miscellaneous":{"patterns":[{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041D\u0415|NOT|\u0418|AND|\u0418\u041B\u0418|OR)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"keyword.operator.logical.bsl"},{"match":"<=|>=|[<=>]","name":"keyword.operator.comparison.bsl"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.bsl"},{"match":"([;?])","name":"keyword.operator.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041D\u043E\u0432\u044B\u0439|New)(?=[^.\u0430-\u044F\u0451\\\\w]|$))","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0421\u0442\u0440\u0414\u043B\u0438\u043D\u0430|StrLen|\u0421\u043E\u043A\u0440\u041B|TrimL|\u0421\u043E\u043A\u0440\u041F|TrimR|\u0421\u043E\u043A\u0440\u041B\u041F|TrimAll|\u041B\u0435\u0432|Left|\u041F\u0440\u0430\u0432|Right|\u0421\u0440\u0435\u0434|Mid|\u0421\u0442\u0440\u041D\u0430\u0439\u0442\u0438|StrFind|\u0412\u0420\u0435\u0433|Upper|\u041D\u0420\u0435\u0433|Lower|\u0422\u0420\u0435\u0433|Title|\u0421\u0438\u043C\u0432\u043E\u043B|Char|\u041A\u043E\u0434\u0421\u0438\u043C\u0432\u043E\u043B\u0430|CharCode|\u041F\u0443\u0441\u0442\u0430\u044F\u0421\u0442\u0440\u043E\u043A\u0430|IsBlankString|\u0421\u0442\u0440\u0417\u0430\u043C\u0435\u043D\u0438\u0442\u044C|StrReplace|\u0421\u0442\u0440\u0427\u0438\u0441\u043B\u043E\u0421\u0442\u0440\u043E\u043A|StrLineCount|\u0421\u0442\u0440\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u0442\u0440\u043E\u043A\u0443|StrGetLine|\u0421\u0442\u0440\u0427\u0438\u0441\u043B\u043E\u0412\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u0439|StrOccurrenceCount|\u0421\u0442\u0440\u0421\u0440\u0430\u0432\u043D\u0438\u0442\u044C|StrCompare|\u0421\u0442\u0440\u041D\u0430\u0447\u0438\u043D\u0430\u0435\u0442\u0441\u044F\u0421|StrStartWith|\u0421\u0442\u0440\u0417\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\u041D\u0430|StrEndsWith|\u0421\u0442\u0440\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C|StrSplit|\u0421\u0442\u0440\u0421\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C|StrConcat)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0426\u0435\u043B|Int|\u041E\u043A\u0440|Round|ACos|ASin|ATan|Cos|Exp|Log|Log10|Pow|Sin|Sqrt|Tan)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0413\u043E\u0434|Year|\u041C\u0435\u0441\u044F\u0446|Month|\u0414\u0435\u043D\u044C|Day|\u0427\u0430\u0441|Hour|\u041C\u0438\u043D\u0443\u0442\u0430|Minute|\u0421\u0435\u043A\u0443\u043D\u0434\u0430|Second|\u041D\u0430\u0447\u0430\u043B\u043E\u0413\u043E\u0434\u0430|BegOfYear|\u041D\u0430\u0447\u0430\u043B\u043E\u0414\u043D\u044F|BegOfDay|\u041D\u0430\u0447\u0430\u043B\u043E\u041A\u0432\u0430\u0440\u0442\u0430\u043B\u0430|BegOfQuarter|\u041D\u0430\u0447\u0430\u043B\u043E\u041C\u0435\u0441\u044F\u0446\u0430|BegOfMonth|\u041D\u0430\u0447\u0430\u043B\u043E\u041C\u0438\u043D\u0443\u0442\u044B|BegOfMinute|\u041D\u0430\u0447\u0430\u043B\u043E\u041D\u0435\u0434\u0435\u043B\u0438|BegOfWeek|\u041D\u0430\u0447\u0430\u043B\u043E\u0427\u0430\u0441\u0430|BegOfHour|\u041A\u043E\u043D\u0435\u0446\u0413\u043E\u0434\u0430|EndOfYear|\u041A\u043E\u043D\u0435\u0446\u0414\u043D\u044F|EndOfDay|\u041A\u043E\u043D\u0435\u0446\u041A\u0432\u0430\u0440\u0442\u0430\u043B\u0430|EndOfQuarter|\u041A\u043E\u043D\u0435\u0446\u041C\u0435\u0441\u044F\u0446\u0430|EndOfMonth|\u041A\u043E\u043D\u0435\u0446\u041C\u0438\u043D\u0443\u0442\u044B|EndOfMinute|\u041A\u043E\u043D\u0435\u0446\u041D\u0435\u0434\u0435\u043B\u0438|EndOfWeek|\u041A\u043E\u043D\u0435\u0446\u0427\u0430\u0441\u0430|EndOfHour|\u041D\u0435\u0434\u0435\u043B\u044F\u0413\u043E\u0434\u0430|WeekOfYear|\u0414\u0435\u043D\u044C\u0413\u043E\u0434\u0430|DayOfYear|\u0414\u0435\u043D\u044C\u041D\u0435\u0434\u0435\u043B\u0438|WeekDay|\u0422\u0435\u043A\u0443\u0449\u0430\u044F\u0414\u0430\u0442\u0430|CurrentDate|\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C\u041C\u0435\u0441\u044F\u0446|AddMonth)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0422\u0438\u043F|Type|\u0422\u0438\u043F\u0417\u043D\u0447|TypeOf)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0411\u0443\u043B\u0435\u0432\u043E|Boolean|\u0427\u0438\u0441\u043B\u043E|Number|\u0421\u0442\u0440\u043E\u043A\u0430|String|\u0414\u0430\u0442\u0430|Date)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u0412\u043E\u043F\u0440\u043E\u0441|ShowQueryBox|\u0412\u043E\u043F\u0440\u043E\u0441|DoQueryBox|\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435|ShowMessageBox|\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435|DoMessageBox|\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C|Message|\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F|ClearMessages|\u041E\u043F\u043E\u0432\u0435\u0441\u0442\u0438\u0442\u044C\u041E\u0431\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438|NotifyChanged|\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435|Status|\u0421\u0438\u0433\u043D\u0430\u043B|Beep|\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|ShowValue|\u041E\u0442\u043A\u0440\u044B\u0442\u044C\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|OpenValue|\u041E\u043F\u043E\u0432\u0435\u0441\u0442\u0438\u0442\u044C|Notify|\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430\u041F\u0440\u0435\u0440\u044B\u0432\u0430\u043D\u0438\u044F\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|UserInterruptProcessing|\u041E\u0442\u043A\u0440\u044B\u0442\u044C\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435\u0421\u043F\u0440\u0430\u0432\u043A\u0438|OpenHelpContent|\u041E\u0442\u043A\u0440\u044B\u0442\u044C\u0418\u043D\u0434\u0435\u043A\u0441\u0421\u043F\u0440\u0430\u0432\u043A\u0438|OpenHelpIndex|\u041E\u0442\u043A\u0440\u044B\u0442\u044C\u0421\u043F\u0440\u0430\u0432\u043A\u0443|OpenHelp|\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E\u041E\u0431\u041E\u0448\u0438\u0431\u043A\u0435|ShowErrorInfo|\u041A\u0440\u0430\u0442\u043A\u043E\u0435\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u041E\u0448\u0438\u0431\u043A\u0438|BriefErrorDescription|\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0435\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u041E\u0448\u0438\u0431\u043A\u0438|DetailErrorDescription|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0424\u043E\u0440\u043C\u0443|GetForm|\u0417\u0430\u043A\u0440\u044B\u0442\u044C\u0421\u043F\u0440\u0430\u0432\u043A\u0443|CloseHelp|\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|ShowUserNotification|\u041E\u0442\u043A\u0440\u044B\u0442\u044C\u0424\u043E\u0440\u043C\u0443|OpenForm|\u041E\u0442\u043A\u0440\u044B\u0442\u044C\u0424\u043E\u0440\u043C\u0443\u041C\u043E\u0434\u0430\u043B\u044C\u043D\u043E|OpenFormModal|\u0410\u043A\u0442\u0438\u0432\u043D\u043E\u0435\u041E\u043A\u043D\u043E|ActiveWindow|\u0412\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F|ExecuteNotifyProcessing)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u0412\u0432\u043E\u0434\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F|ShowInputValue|\u0412\u0432\u0435\u0441\u0442\u0438\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|InputValue|\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u0412\u0432\u043E\u0434\u0427\u0438\u0441\u043B\u0430|ShowInputNumber|\u0412\u0432\u0435\u0441\u0442\u0438\u0427\u0438\u0441\u043B\u043E|InputNumber|\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u0412\u0432\u043E\u0434\u0421\u0442\u0440\u043E\u043A\u0438|ShowInputString|\u0412\u0432\u0435\u0441\u0442\u0438\u0421\u0442\u0440\u043E\u043A\u0443|InputString|\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C\u0412\u0432\u043E\u0434\u0414\u0430\u0442\u044B|ShowInputDate|\u0412\u0432\u0435\u0441\u0442\u0438\u0414\u0430\u0442\u0443|InputDate)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0424\u043E\u0440\u043C\u0430\u0442|Format|\u0427\u0438\u0441\u043B\u043E\u041F\u0440\u043E\u043F\u0438\u0441\u044C\u044E|NumberInWords|\u041D\u0421\u0442\u0440|NStr|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u041F\u0435\u0440\u0438\u043E\u0434\u0430|PeriodPresentation|\u0421\u0442\u0440\u0428\u0430\u0431\u043B\u043E\u043D|StrTemplate)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041E\u0431\u0449\u0438\u0439\u041C\u0430\u043A\u0435\u0442|GetCommonTemplate|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041E\u0431\u0449\u0443\u044E\u0424\u043E\u0440\u043C\u0443|GetCommonForm|\u041F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|PredefinedValue|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041F\u043E\u043B\u043D\u043E\u0435\u0418\u043C\u044F\u041F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0433\u043E\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F|GetPredefinedValueFullName)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\u0421\u0438\u0441\u0442\u0435\u043C\u044B|GetCaption|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u041A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u043E\u0433\u043E\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F|GetClientConnectionSpeed|\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u044F|AttachIdleHandler|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\u0421\u0438\u0441\u0442\u0435\u043C\u044B|SetCaption|\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u044F|DetachIdleHandler|\u0418\u043C\u044F\u041A\u043E\u043C\u043F\u044C\u044E\u0442\u0435\u0440\u0430|ComputerName|\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C\u0420\u0430\u0431\u043E\u0442\u0443\u0421\u0438\u0441\u0442\u0435\u043C\u044B|Exit|\u0418\u043C\u044F\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|UserName|\u041F\u0440\u0435\u043A\u0440\u0430\u0442\u0438\u0442\u044C\u0420\u0430\u0431\u043E\u0442\u0443\u0421\u0438\u0441\u0442\u0435\u043C\u044B|Terminate|\u041F\u043E\u043B\u043D\u043E\u0435\u0418\u043C\u044F\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|UserFullName|\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0420\u0430\u0431\u043E\u0442\u0443\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|LockApplication|\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B|BinDir|\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0445\u0424\u0430\u0439\u043B\u043E\u0432|TempFilesDir|\u041F\u0440\u0430\u0432\u043E\u0414\u043E\u0441\u0442\u0443\u043F\u0430|AccessRight|\u0420\u043E\u043B\u044C\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u0430|IsInRole|\u0422\u0435\u043A\u0443\u0449\u0438\u0439\u042F\u0437\u044B\u043A|CurrentLanguage|\u0422\u0435\u043A\u0443\u0449\u0438\u0439\u041A\u043E\u0434\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438|CurrentLocaleCode|\u0421\u0442\u0440\u043E\u043A\u0430\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|InfoBaseConnectionString|\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F|AttachNotificationHandler|\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F|DetachNotificationHandler|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044E|GetUserMessages|\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B\u0414\u043E\u0441\u0442\u0443\u043F\u0430|AccessParameters|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|ApplicationPresentation|\u0422\u0435\u043A\u0443\u0449\u0438\u0439\u042F\u0437\u044B\u043A\u0421\u0438\u0441\u0442\u0435\u043C\u044B|CurrentSystemLanguage|\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C\u0421\u0438\u0441\u0442\u0435\u043C\u0443|RunSystem|\u0422\u0435\u043A\u0443\u0449\u0438\u0439\u0420\u0435\u0436\u0438\u043C\u0417\u0430\u043F\u0443\u0441\u043A\u0430|CurrentRunMode|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0427\u0430\u0441\u043E\u0432\u043E\u0439\u041F\u043E\u044F\u0441\u0421\u0435\u0430\u043D\u0441\u0430|SetSessionTimeZone|\u0427\u0430\u0441\u043E\u0432\u043E\u0439\u041F\u043E\u044F\u0441\u0421\u0435\u0430\u043D\u0441\u0430|SessionTimeZone|\u0422\u0435\u043A\u0443\u0449\u0430\u044F\u0414\u0430\u0442\u0430\u0421\u0435\u0430\u043D\u0441\u0430|CurrentSessionDate|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041A\u0440\u0430\u0442\u043A\u0438\u0439\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|SetShortApplicationCaption|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041A\u0440\u0430\u0442\u043A\u0438\u0439\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|GetShortApplicationCaption|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u041F\u0440\u0430\u0432\u0430|RightPresentation|\u0412\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0443\u041F\u0440\u0430\u0432\u0414\u043E\u0441\u0442\u0443\u043F\u0430|VerifyAccessRights|\u0420\u0430\u0431\u043E\u0447\u0438\u0439\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0414\u0430\u043D\u043D\u044B\u0445\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|UserDataWorkDir|\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432|DocumentsDir|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E\u042D\u043A\u0440\u0430\u043D\u043E\u0432\u041A\u043B\u0438\u0435\u043D\u0442\u0430|GetClientDisplaysInformation|\u0422\u0435\u043A\u0443\u0449\u0438\u0439\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0433\u043E\u0428\u0440\u0438\u0444\u0442\u0430\u041A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u043E\u0433\u043E\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|ClientApplicationBaseFontCurrentVariant|\u0422\u0435\u043A\u0443\u0449\u0438\u0439\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u041A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u043E\u0433\u043E\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|ClientApplicationInterfaceCurrentVariant|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\u041A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u043E\u0433\u043E\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|SetClientApplicationCaption|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\u041A\u043B\u0438\u0435\u043D\u0442\u0441\u043A\u043E\u0433\u043E\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|GetClientApplicationCaption|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0430\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0445\u0424\u0430\u0439\u043B\u043E\u0432|BeginGettingTempFilesDir|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0430\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432|BeginGettingDocumentsDir|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435\u0420\u0430\u0431\u043E\u0447\u0435\u0433\u043E\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0430\u0414\u0430\u043D\u043D\u044B\u0445\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|BeginGettingUserDataWorkDir|\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A\u0417\u0430\u043F\u0440\u043E\u0441\u0430\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u041A\u043B\u0438\u0435\u043D\u0442\u0430\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|AttachLicensingClientParametersRequestHandler|\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0447\u0438\u043A\u0417\u0430\u043F\u0440\u043E\u0441\u0430\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u041A\u043B\u0438\u0435\u043D\u0442\u0430\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|DetachLicensingClientParametersRequestHandler|\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0438\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0433\u043E\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430|MobileDeviceLibraryDir)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u0412\u0421\u0442\u0440\u043E\u043A\u0443\u0412\u043D\u0443\u0442\u0440|ValueToStringInternal|\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u0418\u0437\u0421\u0442\u0440\u043E\u043A\u0438\u0412\u043D\u0443\u0442\u0440|ValueFromStringInternal|\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u0412\u0424\u0430\u0439\u043B|ValueToFile|\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u0418\u0437\u0424\u0430\u0439\u043B\u0430|ValueFromFile)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041A\u043E\u043C\u0430\u043D\u0434\u0430\u0421\u0438\u0441\u0442\u0435\u043C\u044B|System|\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435|RunApp|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044CCOM\u041E\u0431\u044A\u0435\u043A\u0442|GetCOMObject|\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0438\u041E\u0421|OSUsers|\u041D\u0430\u0447\u0430\u0442\u044C\u0417\u0430\u043F\u0443\u0441\u043A\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F|BeginRunningApplication)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0412\u043D\u0435\u0448\u043D\u044E\u044E\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u0443|AttachAddIn|\u041D\u0430\u0447\u0430\u0442\u044C\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0443\u0412\u043D\u0435\u0448\u043D\u0435\u0439\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u044B|BeginInstallAddIn|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0412\u043D\u0435\u0448\u043D\u044E\u044E\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u0443|InstallAddIn|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u0412\u043D\u0435\u0448\u043D\u0435\u0439\u041A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u044B|BeginAttachingAddIn)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0424\u0430\u0439\u043B|FileCopy|\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C\u0424\u0430\u0439\u043B|MoveFile|\u0423\u0434\u0430\u043B\u0438\u0442\u044C\u0424\u0430\u0439\u043B\u044B|DeleteFiles|\u041D\u0430\u0439\u0442\u0438\u0424\u0430\u0439\u043B\u044B|FindFiles|\u0421\u043E\u0437\u0434\u0430\u0442\u044C\u041A\u0430\u0442\u0430\u043B\u043E\u0433|CreateDirectory|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0418\u043C\u044F\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0433\u043E\u0424\u0430\u0439\u043B\u0430|GetTempFileName|\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C\u0424\u0430\u0439\u043B|SplitFile|\u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0438\u0442\u044C\u0424\u0430\u0439\u043B\u044B|MergeFiles|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0424\u0430\u0439\u043B|GetFile|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u043C\u0435\u0449\u0435\u043D\u0438\u0435\u0424\u0430\u0439\u043B\u0430|BeginPutFile|\u041F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C\u0424\u0430\u0439\u043B|PutFile|\u042D\u0442\u043E\u0410\u0434\u0440\u0435\u0441\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0433\u043E\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430|IsTempStorageURL|\u0423\u0434\u0430\u043B\u0438\u0442\u044C\u0418\u0437\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0433\u043E\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430|DeleteFromTempStorage|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0418\u0437\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0433\u043E\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430|GetFromTempStorage|\u041F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C\u0412\u043E\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0435\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435|PutToTempStorage|\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u0435\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0424\u0430\u0439\u043B\u0430\u043C\u0438|AttachFileSystemExtension|\u041D\u0430\u0447\u0430\u0442\u044C\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0443\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0424\u0430\u0439\u043B\u0430\u043C\u0438|BeginInstallFileSystemExtension|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u0435\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0424\u0430\u0439\u043B\u0430\u043C\u0438|InstallFileSystemExtension|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0424\u0430\u0439\u043B\u044B|GetFiles|\u041F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C\u0424\u0430\u0439\u043B\u044B|PutFiles|\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|RequestUserPermission|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041C\u0430\u0441\u043A\u0443\u0412\u0441\u0435\u0424\u0430\u0439\u043B\u044B|GetAllFilesMask|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041C\u0430\u0441\u043A\u0443\u0412\u0441\u0435\u0424\u0430\u0439\u043B\u044B\u041A\u043B\u0438\u0435\u043D\u0442\u0430|GetClientAllFilesMask|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041C\u0430\u0441\u043A\u0443\u0412\u0441\u0435\u0424\u0430\u0439\u043B\u044B\u0421\u0435\u0440\u0432\u0435\u0440\u0430|GetServerAllFilesMask|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u044C\u041F\u0443\u0442\u0438|GetPathSeparator|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u044C\u041F\u0443\u0442\u0438\u041A\u043B\u0438\u0435\u043D\u0442\u0430|GetClientPathSeparator|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u044C\u041F\u0443\u0442\u0438\u0421\u0435\u0440\u0432\u0435\u0440\u0430|GetServerPathSeparator|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0424\u0430\u0439\u043B\u0430\u043C\u0438|BeginAttachingFileSystemExtension|\u041D\u0430\u0447\u0430\u0442\u044C\u0417\u0430\u043F\u0440\u043E\u0441\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|BeginRequestingUserPermission|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u0438\u0441\u043A\u0424\u0430\u0439\u043B\u043E\u0432|BeginFindingFiles|\u041D\u0430\u0447\u0430\u0442\u044C\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435\u041A\u0430\u0442\u0430\u043B\u043E\u0433\u0430|BeginCreatingDirectory|\u041D\u0430\u0447\u0430\u0442\u044C\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435\u0424\u0430\u0439\u043B\u0430|BeginCopyingFile|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0435\u0424\u0430\u0439\u043B\u0430|BeginMovingFile|\u041D\u0430\u0447\u0430\u0442\u044C\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435\u0424\u0430\u0439\u043B\u043E\u0432|BeginDeletingFiles|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435\u0424\u0430\u0439\u043B\u043E\u0432|BeginGettingFiles|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u043C\u0435\u0449\u0435\u043D\u0438\u0435\u0424\u0430\u0439\u043B\u043E\u0432|BeginPuttingFiles|\u041D\u0430\u0447\u0430\u0442\u044C\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435\u0414\u0432\u043E\u0438\u0447\u043D\u044B\u0445\u0414\u0430\u043D\u043D\u044B\u0445\u0418\u0437\u0424\u0430\u0439\u043B\u0430|BeginCreateBinaryDataFromFile)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041D\u0430\u0447\u0430\u0442\u044C\u0422\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044E|BeginTransaction|\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0422\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044E|CommitTransaction|\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\u0422\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044E|RollbackTransaction|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041C\u043E\u043D\u043E\u043F\u043E\u043B\u044C\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C|SetExclusiveMode|\u041C\u043E\u043D\u043E\u043F\u043E\u043B\u044C\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C|ExclusiveMode|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041E\u043F\u0435\u0440\u0430\u0442\u0438\u0432\u043D\u0443\u044E\u041E\u0442\u043C\u0435\u0442\u043A\u0443\u0412\u0440\u0435\u043C\u0435\u043D\u0438|GetRealTimeTimestamp|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|GetInfoBaseConnections|\u041D\u043E\u043C\u0435\u0440\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|InfoBaseConnectionNumber|\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0430|ConfigurationChanged|\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F\u0411\u0430\u0437\u044B\u0414\u0430\u043D\u043D\u044B\u0445\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0430\u0414\u0438\u043D\u0430\u043C\u0438\u0447\u0435\u0441\u043A\u0438|DataBaseConfigurationChangedDynamically|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0412\u0440\u0435\u043C\u044F\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u044F\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438\u0414\u0430\u043D\u043D\u044B\u0445|SetLockWaitTime|\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C\u041D\u0443\u043C\u0435\u0440\u0430\u0446\u0438\u044E\u041E\u0431\u044A\u0435\u043A\u0442\u043E\u0432|RefreshObjectsNumbering|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0412\u0440\u0435\u043C\u044F\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u044F\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438\u0414\u0430\u043D\u043D\u044B\u0445|GetLockWaitTime|\u041A\u043E\u0434\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|InfoBaseLocaleCode|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0443\u044E\u0414\u043B\u0438\u043D\u0443\u041F\u0430\u0440\u043E\u043B\u0435\u0439\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439|SetUserPasswordMinLength|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0443\u044E\u0414\u043B\u0438\u043D\u0443\u041F\u0430\u0440\u043E\u043B\u0435\u0439\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439|GetUserPasswordMinLength|\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u041F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0435\u0414\u0430\u043D\u043D\u044B\u0435|InitializePredefinedData|\u0423\u0434\u0430\u043B\u0438\u0442\u044C\u0414\u0430\u043D\u043D\u044B\u0435\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|EraseInfoBaseData|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0443\u0421\u043B\u043E\u0436\u043D\u043E\u0441\u0442\u0438\u041F\u0430\u0440\u043E\u043B\u0435\u0439\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439|SetUserPasswordStrengthCheck|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0443\u0421\u043B\u043E\u0436\u043D\u043E\u0441\u0442\u0438\u041F\u0430\u0440\u043E\u043B\u0435\u0439\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439|GetUserPasswordStrengthCheck|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u0443\u0425\u0440\u0430\u043D\u0435\u043D\u0438\u044F\u0411\u0430\u0437\u044B\u0414\u0430\u043D\u043D\u044B\u0445|GetDBStorageStructureInfo|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041F\u0440\u0438\u0432\u0438\u043B\u0435\u0433\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C|SetPrivilegedMode|\u041F\u0440\u0438\u0432\u0438\u043B\u0435\u0433\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C|PrivilegedMode|\u0422\u0440\u0430\u043D\u0437\u0430\u043A\u0446\u0438\u044F\u0410\u043A\u0442\u0438\u0432\u043D\u0430|TransactionActive|\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u044C\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F|ConnectionStopRequest|\u041D\u043E\u043C\u0435\u0440\u0421\u0435\u0430\u043D\u0441\u0430\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|InfoBaseSessionNumber|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u0435\u0430\u043D\u0441\u044B\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|GetInfoBaseSessions|\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0414\u0430\u043D\u043D\u044B\u0435\u0414\u043B\u044F\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|LockDataForEdit|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435\u0421\u0412\u043D\u0435\u0448\u043D\u0438\u043C\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u043C\u0414\u0430\u043D\u043D\u044B\u0445|ConnectExternalDataSource|\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0414\u0430\u043D\u043D\u044B\u0435\u0414\u043B\u044F\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|UnlockDataForEdit|\u0420\u0430\u0437\u043E\u0440\u0432\u0430\u0442\u044C\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435\u0421\u0412\u043D\u0435\u0448\u043D\u0438\u043C\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u043C\u0414\u0430\u043D\u043D\u044B\u0445|DisconnectExternalDataSource|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443\u0421\u0435\u0430\u043D\u0441\u043E\u0432|GetSessionsLock|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443\u0421\u0435\u0430\u043D\u0441\u043E\u0432|SetSessionsLock|\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C\u044B\u0435\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F|RefreshReusableValues|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C|SetSafeMode|\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C|SafeMode|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0414\u0430\u043D\u043D\u044B\u0435\u0412\u044B\u0431\u043E\u0440\u0430|GetChoiceData|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0427\u0430\u0441\u043E\u0432\u043E\u0439\u041F\u043E\u044F\u0441\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|SetInfoBaseTimeZone|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0427\u0430\u0441\u043E\u0432\u043E\u0439\u041F\u043E\u044F\u0441\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|GetInfoBaseTimeZone|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0411\u0430\u0437\u044B\u0414\u0430\u043D\u043D\u044B\u0445|GetDataBaseConfigurationUpdate|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C\u0420\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F\u0414\u0430\u043D\u043D\u044B\u0445|SetDataSeparationSafeMode|\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u044B\u0439\u0420\u0435\u0436\u0438\u043C\u0420\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F\u0414\u0430\u043D\u043D\u044B\u0445|DataSeparationSafeMode|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0412\u0440\u0435\u043C\u044F\u0417\u0430\u0441\u044B\u043F\u0430\u043D\u0438\u044F\u041F\u0430\u0441\u0441\u0438\u0432\u043D\u043E\u0433\u043E\u0421\u0435\u0430\u043D\u0441\u0430|SetPassiveSessionHibernateTime|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0412\u0440\u0435\u043C\u044F\u0417\u0430\u0441\u044B\u043F\u0430\u043D\u0438\u044F\u041F\u0430\u0441\u0441\u0438\u0432\u043D\u043E\u0433\u043E\u0421\u0435\u0430\u043D\u0441\u0430|GetPassiveSessionHibernateTime|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0412\u0440\u0435\u043C\u044F\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F\u0421\u043F\u044F\u0449\u0435\u0433\u043E\u0421\u0435\u0430\u043D\u0441\u0430|SetHibernateSessionTerminateTime|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0412\u0440\u0435\u043C\u044F\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F\u0421\u043F\u044F\u0449\u0435\u0433\u043E\u0421\u0435\u0430\u043D\u0441\u0430|GetHibernateSessionTerminateTime|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0422\u0435\u043A\u0443\u0449\u0438\u0439\u0421\u0435\u0430\u043D\u0441\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|GetCurrentInfoBaseSession|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438|GetConfigurationID|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\u041A\u043B\u0438\u0435\u043D\u0442\u0430\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|SetLicensingClientParameters|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0418\u043C\u044F\u041A\u043B\u0438\u0435\u043D\u0442\u0430\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|GetLicensingClientName|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u041A\u043B\u0438\u0435\u043D\u0442\u0430\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|GetLicensingClientAdditionalParameter|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0433\u043E\u0420\u0435\u0436\u0438\u043C\u0430|GetSafeModeDisabled|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0433\u043E\u0420\u0435\u0436\u0438\u043C\u0430|SetSafeModeDisabled)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041D\u0430\u0439\u0442\u0438\u041F\u043E\u043C\u0435\u0447\u0435\u043D\u043D\u044B\u0435\u041D\u0430\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435|FindMarkedForDeletion|\u041D\u0430\u0439\u0442\u0438\u041F\u043E\u0421\u0441\u044B\u043B\u043A\u0430\u043C|FindByRef|\u0423\u0434\u0430\u043B\u0438\u0442\u044C\u041E\u0431\u044A\u0435\u043A\u0442\u044B|DeleteObjects|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435\u041F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0445\u0414\u0430\u043D\u043D\u044B\u0445\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|SetInfoBasePredefinedDataUpdate|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435\u041F\u0440\u0435\u0434\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0445\u0414\u0430\u043D\u043D\u044B\u0445\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|GetInfoBasePredefinedData)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(XML\u0421\u0442\u0440\u043E\u043A\u0430|XMLString|XML\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|XMLValue|XML\u0422\u0438\u043F|XMLType|XML\u0422\u0438\u043F\u0417\u043D\u0447|XMLTypeOf|\u0418\u0437XML\u0422\u0438\u043F\u0430|FromXMLType|\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C\u0427\u0442\u0435\u043D\u0438\u044FXML|CanReadXML|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044CXML\u0422\u0438\u043F|GetXMLType|\u041F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044CXML|ReadXML|\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044CXML|WriteXML|\u041D\u0430\u0439\u0442\u0438\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435\u0421\u0438\u043C\u0432\u043E\u043B\u044BXML|FindDisallowedXMLCharacters|\u0418\u043C\u043F\u043E\u0440\u0442\u041C\u043E\u0434\u0435\u043B\u0438XDTO|ImportXDTOModel|\u0421\u043E\u0437\u0434\u0430\u0442\u044C\u0424\u0430\u0431\u0440\u0438\u043A\u0443XDTO|CreateXDTOFactory)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044CJSON|WriteJSON|\u041F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044CJSON|ReadJSON|\u041F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C\u0414\u0430\u0442\u0443JSON|ReadJSONDate|\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C\u0414\u0430\u0442\u0443JSON|WriteJSONDate)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0417\u0430\u043F\u0438\u0441\u044C\u0416\u0443\u0440\u043D\u0430\u043B\u0430\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|WriteLogEvent|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u0416\u0443\u0440\u043D\u0430\u043B\u0430\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|GetEventLogUsing|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u0416\u0443\u0440\u043D\u0430\u043B\u0430\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|SetEventLogUsing|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u0421\u043E\u0431\u044B\u0442\u0438\u044F\u0416\u0443\u0440\u043D\u0430\u043B\u0430\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|EventLogEventPresentation|\u0412\u044B\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0416\u0443\u0440\u043D\u0430\u043B\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|UnloadEventLog|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F\u041E\u0442\u0431\u043E\u0440\u0430\u0416\u0443\u0440\u043D\u0430\u043B\u0430\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|GetEventLogFilterValues|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u0421\u043E\u0431\u044B\u0442\u0438\u044F\u0416\u0443\u0440\u043D\u0430\u043B\u0430\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|SetEventLogEventUse|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u0421\u043E\u0431\u044B\u0442\u0438\u044F\u0416\u0443\u0440\u043D\u0430\u043B\u0430\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|GetEventLogEventUse|\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0416\u0443\u0440\u043D\u0430\u043B\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|CopyEventLog|\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C\u0416\u0443\u0440\u043D\u0430\u043B\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438|ClearEventLog)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u0412\u0414\u0430\u043D\u043D\u044B\u0435\u0424\u043E\u0440\u043C\u044B|ValueToFormData|\u0414\u0430\u043D\u043D\u044B\u0435\u0424\u043E\u0440\u043C\u044B\u0412\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|FormDataToValue|\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0414\u0430\u043D\u043D\u044B\u0435\u0424\u043E\u0440\u043C\u044B|CopyFormData|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0421\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u041E\u0431\u044A\u0435\u043A\u0442\u0430\u0418\u0424\u043E\u0440\u043C\u044B|SetObjectAndFormConformity|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435\u041E\u0431\u044A\u0435\u043A\u0442\u0430\u0418\u0424\u043E\u0440\u043C\u044B|GetObjectAndFormConformity)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0424\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u0443\u044E\u041E\u043F\u0446\u0438\u044E|GetFunctionalOption|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0424\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u0443\u044E\u041E\u043F\u0446\u0438\u044E\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430|GetInterfaceFunctionalOption|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B\u0424\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445\u041E\u043F\u0446\u0438\u0439\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430|SetInterfaceFunctionalOptionParameters|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B\u0424\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445\u041E\u043F\u0446\u0438\u0439\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430|GetInterfaceFunctionalOptionParameters|\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441|RefreshInterface)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u0435\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u041A\u0440\u0438\u043F\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0435\u0439|InstallCryptoExtension|\u041D\u0430\u0447\u0430\u0442\u044C\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0443\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u041A\u0440\u0438\u043F\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0435\u0439|BeginInstallCryptoExtension|\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u0435\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u041A\u0440\u0438\u043F\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0435\u0439|AttachCryptoExtension|\u041D\u0430\u0447\u0430\u0442\u044C\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u041A\u0440\u0438\u043F\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0435\u0439|BeginAttachingCryptoExtension)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C\u0421\u043E\u0441\u0442\u0430\u0432\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u0433\u043E\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430OData|SetStandardODataInterfaceContent|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0421\u043E\u0441\u0442\u0430\u0432\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u0433\u043E\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430OData|GetStandardODataInterfaceContent)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0421\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C\u0411\u0443\u0444\u0435\u0440\u044B\u0414\u0432\u043E\u0438\u0447\u043D\u044B\u0445\u0414\u0430\u043D\u043D\u044B\u0445|ConcatBinaryDataBuffers)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041C\u0438\u043D|Min|\u041C\u0430\u043A\u0441|Max|\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\u041E\u0448\u0438\u0431\u043A\u0438|ErrorDescription|\u0412\u044B\u0447\u0438\u0441\u043B\u0438\u0442\u044C|Eval|\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F\u041E\u0431\u041E\u0448\u0438\u0431\u043A\u0435|ErrorInfo|Base64\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|Base64Value|Base64\u0421\u0442\u0440\u043E\u043A\u0430|Base64String|\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F\u0421\u0432\u043E\u0439\u0441\u0442\u0432|FillPropertyValues|\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435\u0417\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E|ValueIsFilled|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u044F\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0445\u0421\u0441\u044B\u043B\u043E\u043A|GetURLsPresentations|\u041D\u0430\u0439\u0442\u0438\u041E\u043A\u043D\u043E\u041F\u043E\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0421\u0441\u044B\u043B\u043A\u0435|FindWindowByURL|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041E\u043A\u043D\u0430|GetWindows|\u041F\u0435\u0440\u0435\u0439\u0442\u0438\u041F\u043E\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0421\u0441\u044B\u043B\u043A\u0435|GotoURL|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u043D\u0443\u044E\u0421\u0441\u044B\u043B\u043A\u0443|GetURL|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0414\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435\u041A\u043E\u0434\u044B\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438|GetAvailableLocaleCodes|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u043D\u0443\u044E\u0421\u0441\u044B\u043B\u043A\u0443\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|GetInfoBaseURL|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u041A\u043E\u0434\u0430\u041B\u043E\u043A\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438|LocaleCodePresentation|\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C\u0414\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435\u0427\u0430\u0441\u043E\u0432\u044B\u0435\u041F\u043E\u044F\u0441\u0430|GetAvailableTimeZones|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u0427\u0430\u0441\u043E\u0432\u043E\u0433\u043E\u041F\u043E\u044F\u0441\u0430|TimeZonePresentation|\u0422\u0435\u043A\u0443\u0449\u0430\u044F\u0423\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u0430\u044F\u0414\u0430\u0442\u0430|CurrentUniversalDate|\u0422\u0435\u043A\u0443\u0449\u0430\u044F\u0423\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u0430\u044F\u0414\u0430\u0442\u0430\u0412\u041C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430\u0445|CurrentUniversalDateInMilliseconds|\u041C\u0435\u0441\u0442\u043D\u043E\u0435\u0412\u0440\u0435\u043C\u044F|ToLocalTime|\u0423\u043D\u0438\u0432\u0435\u0440\u0441\u0430\u043B\u044C\u043D\u043E\u0435\u0412\u0440\u0435\u043C\u044F|ToUniversalTime|\u0427\u0430\u0441\u043E\u0432\u043E\u0439\u041F\u043E\u044F\u0441|TimeZone|\u0421\u043C\u0435\u0449\u0435\u043D\u0438\u0435\u041B\u0435\u0442\u043D\u0435\u0433\u043E\u0412\u0440\u0435\u043C\u0435\u043D\u0438|DaylightTimeOffset|\u0421\u043C\u0435\u0449\u0435\u043D\u0438\u0435\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u0433\u043E\u0412\u0440\u0435\u043C\u0435\u043D\u0438|StandardTimeOffset|\u041A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0421\u0442\u0440\u043E\u043A\u0443|EncodeString|\u0420\u0430\u0441\u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0421\u0442\u0440\u043E\u043A\u0443|DecodeString|\u041D\u0430\u0439\u0442\u0438|Find|\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C\u0412\u044B\u0437\u043E\u0432|ProceedWithCall)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u0435\u0440\u0435\u0434\u041D\u0430\u0447\u0430\u043B\u043E\u043C\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0438\u0441\u0442\u0435\u043C\u044B|BeforeStart|\u041F\u0440\u0438\u041D\u0430\u0447\u0430\u043B\u0435\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0438\u0441\u0442\u0435\u043C\u044B|OnStart|\u041F\u0435\u0440\u0435\u0434\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0435\u043C\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0438\u0441\u0442\u0435\u043C\u044B|BeforeExit|\u041F\u0440\u0438\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u0438\u0420\u0430\u0431\u043E\u0442\u044B\u0421\u0438\u0441\u0442\u0435\u043C\u044B|OnExit|\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430\u0412\u043D\u0435\u0448\u043D\u0435\u0433\u043E\u0421\u043E\u0431\u044B\u0442\u0438\u044F|ExternEventProcessing|\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432\u0421\u0435\u0430\u043D\u0441\u0430|SessionParametersSetting|\u041F\u0440\u0438\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0438\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u043E\u0432\u042D\u043A\u0440\u0430\u043D\u0430|OnChangeDisplaySettings)\\\\s*(?=\\\\())","name":"support.function.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(WS\u0421\u0441\u044B\u043B\u043A\u0438|WSReferences|\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430\u041A\u0430\u0440\u0442\u0438\u043D\u043E\u043A|PictureLib|\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430\u041C\u0430\u043A\u0435\u0442\u043E\u0432\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F\u041A\u043E\u043C\u043F\u043E\u043D\u043E\u0432\u043A\u0438\u0414\u0430\u043D\u043D\u044B\u0445|DataCompositionAppearanceTemplateLib|\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430\u0421\u0442\u0438\u043B\u0435\u0439|StyleLib|\u0411\u0438\u0437\u043D\u0435\u0441\u041F\u0440\u043E\u0446\u0435\u0441\u0441\u044B|BusinessProcesses|\u0412\u043D\u0435\u0448\u043D\u0438\u0435\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438\u0414\u0430\u043D\u043D\u044B\u0445|ExternalDataSources|\u0412\u043D\u0435\u0448\u043D\u0438\u0435\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0438|ExternalDataProcessors|\u0412\u043D\u0435\u0448\u043D\u0438\u0435\u041E\u0442\u0447\u0435\u0442\u044B|ExternalReports|\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B|Documents|\u0414\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u043C\u044B\u0435\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F|DeliverableNotifications|\u0416\u0443\u0440\u043D\u0430\u043B\u044B\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u043E\u0432|DocumentJournals|\u0417\u0430\u0434\u0430\u0447\u0438|Tasks|\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F\u041E\u0431\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0438|InternetConnectionInformation|\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u0420\u0430\u0431\u043E\u0447\u0435\u0439\u0414\u0430\u0442\u044B|WorkingDateUse|\u0418\u0441\u0442\u043E\u0440\u0438\u044F\u0420\u0430\u0431\u043E\u0442\u044B\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F|UserWorkHistory|\u041A\u043E\u043D\u0441\u0442\u0430\u043D\u0442\u044B|Constants|\u041A\u0440\u0438\u0442\u0435\u0440\u0438\u0438\u041E\u0442\u0431\u043E\u0440\u0430|FilterCriteria|\u041C\u0435\u0442\u0430\u0434\u0430\u043D\u043D\u044B\u0435|Metadata|\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0438|DataProcessors|\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430\u0414\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u043C\u044B\u0445\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u0439|DeliverableNotificationSend|\u041E\u0442\u0447\u0435\u0442\u044B|Reports|\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B\u0421\u0435\u0430\u043D\u0441\u0430|SessionParameters|\u041F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u044F|Enums|\u041F\u043B\u0430\u043D\u044B\u0412\u0438\u0434\u043E\u0432\u0420\u0430\u0441\u0447\u0435\u0442\u0430|ChartsOfCalculationTypes|\u041F\u043B\u0430\u043D\u044B\u0412\u0438\u0434\u043E\u0432\u0425\u0430\u0440\u0430\u043A\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043A|ChartsOfCharacteristicTypes|\u041F\u043B\u0430\u043D\u044B\u041E\u0431\u043C\u0435\u043D\u0430|ExchangePlans|\u041F\u043B\u0430\u043D\u044B\u0421\u0447\u0435\u0442\u043E\u0432|ChartsOfAccounts|\u041F\u043E\u043B\u043D\u043E\u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0439\u041F\u043E\u0438\u0441\u043A|FullTextSearch|\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0438\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0439\u0411\u0430\u0437\u044B|InfoBaseUsers|\u041F\u043E\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438|Sequences|\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438|ConfigurationExtensions|\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044B\u0411\u0443\u0445\u0433\u0430\u043B\u0442\u0435\u0440\u0438\u0438|AccountingRegisters|\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044B\u041D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F|AccumulationRegisters|\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044B\u0420\u0430\u0441\u0447\u0435\u0442\u0430|CalculationRegisters|\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044B\u0421\u0432\u0435\u0434\u0435\u043D\u0438\u0439|InformationRegisters|\u0420\u0435\u0433\u043B\u0430\u043C\u0435\u043D\u0442\u043D\u044B\u0435\u0417\u0430\u0434\u0430\u043D\u0438\u044F|ScheduledJobs|\u0421\u0435\u0440\u0438\u0430\u043B\u0438\u0437\u0430\u0442\u043E\u0440XDTO|XDTOSerializer|\u0421\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u0438\u043A\u0438|Catalogs|\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u0413\u0435\u043E\u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F|LocationTools|\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u041A\u0440\u0438\u043F\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0438|CryptoToolsManager|\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u041C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430|MultimediaTools|\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F\u0420\u0435\u043A\u043B\u0430\u043C\u044B|AdvertisingPresentationTools|\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u041F\u043E\u0447\u0442\u044B|MailTools|\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u0422\u0435\u043B\u0435\u0444\u043E\u043D\u0438\u0438|TelephonyTools|\u0424\u0430\u0431\u0440\u0438\u043A\u0430XDTO|XDTOFactory|\u0424\u0430\u0439\u043B\u043E\u0432\u044B\u0435\u041F\u043E\u0442\u043E\u043A\u0438|FileStreams|\u0424\u043E\u043D\u043E\u0432\u044B\u0435\u0417\u0430\u0434\u0430\u043D\u0438\u044F|BackgroundJobs|\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A|SettingsStorages|\u0412\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0435\u041F\u043E\u043A\u0443\u043F\u043A\u0438|InAppPurchases|\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435\u0420\u0435\u043A\u043B\u0430\u043C\u044B|AdRepresentation|\u041F\u0430\u043D\u0435\u043B\u044C\u0417\u0430\u0434\u0430\u0447\u041E\u0421|OSTaskbar|\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430\u0412\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0445\u041F\u043E\u043A\u0443\u043F\u043E\u043A|InAppPurchasesValidation)(?=[^\u0430-\u044F\u0451\\\\w]|$))","name":"support.class.bsl"},{"match":"(?i:(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0413\u043B\u0430\u0432\u043D\u044B\u0439\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441|MainInterface|\u0413\u043B\u0430\u0432\u043D\u044B\u0439\u0421\u0442\u0438\u043B\u044C|MainStyle|\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0417\u0430\u043F\u0443\u0441\u043A\u0430|LaunchParameter|\u0420\u0430\u0431\u043E\u0447\u0430\u044F\u0414\u0430\u0442\u0430|WorkingDate|\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432\u041E\u0442\u0447\u0435\u0442\u043E\u0432|ReportsVariantsStorage|\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u0414\u0430\u043D\u043D\u044B\u0445\u0424\u043E\u0440\u043C|FormDataSettingsStorage|\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u041E\u0431\u0449\u0438\u0445\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A|CommonSettingsStorage|\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u0414\u0438\u043D\u0430\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445\u0421\u043F\u0438\u0441\u043A\u043E\u0432|DynamicListsUserSettingsStorage|\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A\u041E\u0442\u0447\u0435\u0442\u043E\u0432|ReportsUserSettingsStorage|\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u0421\u0438\u0441\u0442\u0435\u043C\u043D\u044B\u0445\u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043A|SystemSettingsStorage)(?=[^\u0430-\u044F\u0451\\\\w]|$))","name":"support.variable.bsl"}]},"query":{"begin":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0412\u044B\u0431\u0440\u0430\u0442\u044C|Select(\\\\s+\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043D\u044B\u0435|\\\\s+Allowed)?(\\\\s+\u0420\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0435|\\\\s+Distinct)?(\\\\s+\u041F\u0435\u0440\u0432\u044B\u0435|\\\\s+Top)?)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","beginCaptures":{"1":{"name":"keyword.control.sdbl"}},"end":"(?=\\"[^\\"])","patterns":[{"begin":"^\\\\s*//","end":"$","name":"comment.line.double-slash.bsl"},{"match":"(//((\\"\\")|[^\\"])*)","name":"comment.line.double-slash.sdbl"},{"match":"\\"\\"[^\\"]*\\"\\"","name":"string.quoted.double.sdbl"},{"include":"source.sdbl"}]}},"scopeName":"source.bsl","embeddedLangs":["sdbl"],"aliases":["1c"]}`)),n=[...e,t];export{n as default}; diff --git a/docs/assets/bundle.esm-dxSncdJD.js b/docs/assets/bundle.esm-dxSncdJD.js new file mode 100644 index 0000000..c22796d --- /dev/null +++ b/docs/assets/bundle.esm-dxSncdJD.js @@ -0,0 +1 @@ +import{s as S}from"./chunk-LvLJmgfZ.js";import{t as m}from"./react-BGmjiNul.js";var n=S(m());function k(e,u){var r=(0,n.useRef)(null),c=(0,n.useRef)(null);c.current=u;var t=(0,n.useRef)(null);(0,n.useEffect)(function(){f()});var f=(0,n.useCallback)(function(){var i=t.current,s=c.current,o=i||(s?s instanceof Element?s:s.current:null);r.current&&r.current.element===o&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:o,subscriber:e,cleanup:o?e(o):void 0})},[e]);return(0,n.useEffect)(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),(0,n.useCallback)(function(i){t.current=i,f()},[f])}function g(e,u,r){return e[u]?e[u][0]?e[u][0][r]:e[u][r]:u==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function B(e){e===void 0&&(e={});var u=e.onResize,r=(0,n.useRef)(void 0);r.current=u;var c=e.round||Math.round,t=(0,n.useRef)(),f=(0,n.useState)({width:void 0,height:void 0}),i=f[0],s=f[1],o=(0,n.useRef)(!1);(0,n.useEffect)(function(){return o.current=!1,function(){o.current=!0}},[]);var a=(0,n.useRef)({width:void 0,height:void 0}),h=k((0,n.useCallback)(function(v){return(!t.current||t.current.box!==e.box||t.current.round!==c)&&(t.current={box:e.box,round:c,instance:new ResizeObserver(function(z){var b=z[0],x=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",p=g(b,x,"inlineSize"),w=g(b,x,"blockSize"),l=p?c(p):void 0,d=w?c(w):void 0;if(a.current.width!==l||a.current.height!==d){var R={width:l,height:d};a.current.width=l,a.current.height=d,r.current?r.current(R):o.current||s(R)}})}),t.current.instance.observe(v,{box:e.box}),function(){t.current&&t.current.instance.unobserve(v)}},[e.box,c]),e.ref);return(0,n.useMemo)(function(){return{ref:h,width:i.width,height:i.height}},[h,i.width,i.height])}export{B as t}; diff --git a/docs/assets/button-B8cGZzP5.js b/docs/assets/button-B8cGZzP5.js new file mode 100644 index 0000000..54a62a4 --- /dev/null +++ b/docs/assets/button-B8cGZzP5.js @@ -0,0 +1 @@ +import{s as k}from"./chunk-LvLJmgfZ.js";import{t as R}from"./react-BGmjiNul.js";import{t as j}from"./compiler-runtime-DeeZ7FnK.js";import{l as I}from"./hotkeys-uKX61F1_.js";import{n as S,t as K}from"./useEventListener-COkmyg1v.js";import{t as O}from"./jsx-runtime-DN_bIXfG.js";import{n as A,t as d}from"./cn-C1rgT0yh.js";var a=k(R(),1),w=k(O(),1),D=Symbol.for("react.lazy"),h=a.use;function P(e){return typeof e=="object"&&!!e&&"then"in e}function C(e){return typeof e=="object"&&!!e&&"$$typeof"in e&&e.$$typeof===D&&"_payload"in e&&P(e._payload)}function N(e){let r=$(e),t=a.forwardRef((n,o)=>{let{children:i,...l}=n;C(i)&&typeof h=="function"&&(i=h(i._payload));let s=a.Children.toArray(i),u=s.find(H);if(u){let p=u.props.children,c=s.map(g=>g===u?a.Children.count(p)>1?a.Children.only(null):a.isValidElement(p)?p.props.children:null:g);return(0,w.jsx)(r,{...l,ref:o,children:a.isValidElement(p)?a.cloneElement(p,void 0,c):null})}return(0,w.jsx)(r,{...l,ref:o,children:i})});return t.displayName=`${e}.Slot`,t}var _=N("Slot");function $(e){let r=a.forwardRef((t,n)=>{let{children:o,...i}=t;if(C(o)&&typeof h=="function"&&(o=h(o._payload)),a.isValidElement(o)){let l=W(o),s=V(i,o.props);return o.type!==a.Fragment&&(s.ref=n?S(n,l):l),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var z=Symbol("radix.slottable");function H(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z}function V(e,r){let t={...r};for(let n in r){let o=e[n],i=r[n];/^on[A-Z]/.test(n)?o&&i?t[n]=(...l)=>{let s=i(...l);return o(...l),s}:o&&(t[n]=o):n==="style"?t[n]={...o,...i}:n==="className"&&(t[n]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}function W(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}const E={stopPropagation:e=>r=>{r.stopPropagation(),e&&e(r)},onEnter:e=>r=>{r.key==="Enter"&&e&&e(r)},preventFocus:e=>{e.preventDefault()},fromInput:e=>{let r=e.target;return r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.tagName.startsWith("MARIMO")||r.isContentEditable||E.fromCodeMirror(e)},fromCodeMirror:e=>e.target.closest(".cm-editor")!==null,shouldIgnoreKeyboardEvent(e){return e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement||e.target instanceof HTMLElement&&(e.target.isContentEditable||e.target.tagName==="BUTTON"||e.target.closest("[role='textbox']")!==null||e.target.closest("[contenteditable='true']")!==null||e.target.closest(".cm-editor")!==null)},hasModifier:e=>e.ctrlKey||e.metaKey||e.altKey||e.shiftKey,isMetaOrCtrl:e=>e.metaKey||e.ctrlKey};var L=j(),f="active:shadow-none",T=A(d("disabled:opacity-50 disabled:pointer-events-none","inline-flex items-center justify-center rounded-md text-sm font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background"),{variants:{variant:{default:d("bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs border border-primary",f),destructive:d("border shadow-xs","bg-(--red-9) hover:bg-(--red-10) dark:bg-(--red-6) dark:hover:bg-(--red-7)","text-(--red-1) dark:text-(--red-12)","border-(--red-11)",f),success:d("border shadow-xs","bg-(--grass-9) hover:bg-(--grass-10) dark:bg-(--grass-6) dark:hover:bg-(--grass-7)","text-(--grass-1) dark:text-(--grass-12)","border-(--grass-11)",f),warn:d("border shadow-xs","bg-(--yellow-9) hover:bg-(--yellow-10) dark:bg-(--yellow-6) dark:hover:bg-(--yellow-7)","text-(--yellow-12)","border-(--yellow-11)",f),action:d("bg-action text-action-foreground shadow-xs","hover:bg-action-hover border border-action",f),outline:d("border border-slate-300 shadow-xs","hover:bg-accent hover:text-accent-foreground","hover:border-primary","aria-selected:text-accent-foreground aria-selected:border-primary",f),secondary:d("bg-secondary text-secondary-foreground hover:bg-secondary/80","border border-input shadow-xs",f),text:d("opacity-80 hover:opacity-100","active:opacity-100"),ghost:d("border border-transparent","hover:bg-accent hover:text-accent-foreground hover:shadow-xs",f,"active:text-accent-foreground"),link:"underline-offset-4 hover:underline text-link",linkDestructive:"underline-offset-4 hover:underline text-destructive underline-destructive",outlineDestructive:"border border-destructive text-destructive hover:bg-destructive/10"},size:{default:"h-10 py-2 px-4",xs:"h-7 px-2 rounded-md text-xs",sm:"h-9 px-3 rounded-md",lg:"h-11 px-8 rounded-md",icon:"h-6 w-6 mb-0"},disabled:{true:"opacity-50 pointer-events-none"}},defaultVariants:{variant:"default",size:"sm"}}),M=a.forwardRef((e,r)=>{let t=(0,L.c)(7),{className:n,variant:o,size:i,asChild:l,keyboardShortcut:s,...u}=e,p=l===void 0?!1:l,c=a.useRef(null),g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=()=>c.current,t[0]=g):g=t[0],a.useImperativeHandle(r,g);let b;t[1]===s?b=t[2]:(b=y=>{s&&(E.shouldIgnoreKeyboardEvent(y)||I(s)(y)&&(y.preventDefault(),y.stopPropagation(),c!=null&&c.current&&!c.current.disabled&&c.current.click()))},t[1]=s,t[2]=b),K(document,"keydown",b);let v=p?_:"button",x=d(T({variant:o,size:i,className:n,disabled:u.disabled}),n),m;return t[3]!==v||t[4]!==u||t[5]!==x?(m=(0,w.jsx)(v,{className:x,ref:c,...u}),t[3]=v,t[4]=u,t[5]=x,t[6]=m):m=t[6],m});M.displayName="Button";export{N as a,_ as i,T as n,E as r,M as t}; diff --git a/docs/assets/c-B0sc7wbk.js b/docs/assets/c-B0sc7wbk.js new file mode 100644 index 0000000..1075d0d --- /dev/null +++ b/docs/assets/c-B0sc7wbk.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"C","name":"c","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-conditional"},{"include":"#predefined_macros"},{"include":"#comments"},{"include":"#switch_statement"},{"include":"#anon_pattern_1"},{"include":"#storage_types"},{"include":"#anon_pattern_2"},{"include":"#anon_pattern_3"},{"include":"#anon_pattern_4"},{"include":"#anon_pattern_5"},{"include":"#anon_pattern_6"},{"include":"#anon_pattern_7"},{"include":"#operators"},{"include":"#numbers"},{"include":"#strings"},{"include":"#anon_pattern_range_1"},{"include":"#anon_pattern_range_2"},{"include":"#anon_pattern_range_3"},{"include":"#pragma-mark"},{"include":"#anon_pattern_range_4"},{"include":"#anon_pattern_range_5"},{"include":"#anon_pattern_range_6"},{"include":"#anon_pattern_8"},{"include":"#anon_pattern_9"},{"include":"#anon_pattern_10"},{"include":"#anon_pattern_11"},{"include":"#anon_pattern_12"},{"include":"#anon_pattern_13"},{"include":"#block"},{"include":"#parens"},{"include":"#anon_pattern_range_7"},{"include":"#line_continuation_character"},{"include":"#anon_pattern_range_8"},{"include":"#anon_pattern_range_9"},{"include":"#anon_pattern_14"},{"include":"#anon_pattern_15"}],"repository":{"access-method":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))\\\\s*(?:(\\\\.)|(->))((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(?:\\\\.|->))*)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(\\\\()","beginCaptures":{"1":{"name":"variable.object.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"match":"\\\\.","name":"punctuation.separator.dot-access.c"},{"match":"->","name":"punctuation.separator.pointer-access.c"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.object.c"},{"match":".+","name":"everything.else.c"}]},"5":{"name":"entity.name.function.member.c"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.member.c"}},"name":"meta.function-call.member.c","patterns":[{"include":"#function-call-innards"}]},"anon_pattern_1":{"match":"\\\\b(break|continue|do|else|for|goto|if|_Pragma|return|while)\\\\b","name":"keyword.control.c"},"anon_pattern_10":{"match":"\\\\b((?:int8|int16|int32|int64|uint8|uint16|uint32|uint64|int_least8|int_least16|int_least32|int_least64|uint_least8|uint_least16|uint_least32|uint_least64|int_fast8|int_fast16|int_fast32|int_fast64|uint_fast8|uint_fast16|uint_fast32|uint_fast64|intptr|uintptr|intmax|uintmax)_t)\\\\b","name":"support.type.stdint.c"},"anon_pattern_11":{"match":"\\\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\\\b","name":"support.constant.mac-classic.c"},"anon_pattern_12":{"match":"\\\\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\\\\b","name":"support.type.mac-classic.c"},"anon_pattern_13":{"match":"\\\\b([0-9A-Z_a-z]+_t)\\\\b","name":"support.type.posix-reserved.c"},"anon_pattern_14":{"match":";","name":"punctuation.terminator.statement.c"},"anon_pattern_15":{"match":",","name":"punctuation.separator.delimiter.c"},"anon_pattern_2":{"match":"typedef","name":"keyword.other.typedef.c"},"anon_pattern_3":{"match":"\\\\b(const|extern|register|restrict|static|volatile|inline)\\\\b","name":"storage.modifier.c"},"anon_pattern_4":{"match":"\\\\bk[A-Z]\\\\w*\\\\b","name":"constant.other.variable.mac-classic.c"},"anon_pattern_5":{"match":"\\\\bg[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.global.mac-classic.c"},"anon_pattern_6":{"match":"\\\\bs[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.static.mac-classic.c"},"anon_pattern_7":{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.c"},"anon_pattern_8":{"match":"\\\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\\\b","name":"support.type.sys-types.c"},"anon_pattern_9":{"match":"\\\\b(pthread_(?:attr_|cond_|condattr_|mutex_|mutexattr_|once_|rwlock_|rwlockattr_||key_)t)\\\\b","name":"support.type.pthread.c"},"anon_pattern_range_1":{"begin":"((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))((#)\\\\s*define)\\\\b\\\\s+((?","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.other.lt-gt.include.c"}]},"anon_pattern_range_4":{"begin":"^\\\\s*((#)\\\\s*line)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.line.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.c"},"2":{"name":"punctuation.section.parens.begin.bracket.round.initialization.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.initialization.c"}},"name":"meta.initialization.c","patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"patterns":[{"include":"#block_innards"}]},{"include":"#parens-block"},{"include":"$self"}]},"c_conditional_context":{"patterns":[{"include":"$self"},{"include":"#block_innards"}]},"c_function_call":{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)","name":"meta.function-call.c","patterns":[{"include":"#function-call-innards"}]},"case_statement":{"begin":"((?>(?:(?>(?(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?\\\\s*)(//[!/]+)","beginCaptures":{"1":{"name":"punctuation.definition.comment.documentation.c"}},"end":"(?<=\\\\n)(?]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},{"captures":{"1":{"name":"punctuation.definition.comment.begin.documentation.c"},"2":{"patterns":[{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},"3":{"name":"punctuation.definition.comment.end.documentation.c"}},"match":"(/\\\\*[!*]+(?=\\\\s))(.+)([!*]*\\\\*/)","name":"comment.block.documentation.c"},{"begin":"((?>\\\\s*)/\\\\*[!*]+(?:(?:\\\\n|$)|(?=\\\\s)))","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.documentation.c"}},"end":"([!*]*\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.end.documentation.c"}},"name":"comment.block.documentation.c","patterns":[{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},{"captures":{"1":{"name":"meta.toc-list.banner.block.c"}},"match":"^/\\\\* =(\\\\s*.*?)\\\\s*= \\\\*/$\\\\n?","name":"comment.block.banner.c"},{"begin":"(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c"}},"end":"(\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.end.c"}},"name":"comment.block.c"},{"captures":{"1":{"name":"meta.toc-list.banner.line.c"}},"match":"^// =(\\\\s*.*?)\\\\s*=$\\\\n?","name":"comment.line.banner.c"},{"begin":"((?:^[\\\\t ]+)?)(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.c"}},"end":"(?!\\\\G)","patterns":[{"begin":"(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?=\\\\n)","name":"comment.line.double-slash.c","patterns":[{"include":"#line_continuation_character"}]}]}]},{"include":"#block_comment"},{"include":"#line_comment"}]},{"include":"#block_comment"},{"include":"#line_comment"}]},"default_statement":{"begin":"((?>(?:(?>(?(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.c"}},"patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#function-call-innards"}]},{"include":"#block_innards"}]},"function-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#operators"},{"include":"#vararg_ellipses"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.parameters.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.c"}},"name":"meta.function.definition.parameters.c","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#function-innards"}]},{"include":"$self"}]},"inline_comment":{"patterns":[{"patterns":[{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/))"},{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"}]},{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"}]},"line_comment":{"patterns":[{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?<=\\\\n)(?\\\\*?))"}]},"5":{"name":"variable.other.member.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*\\\\b((?!(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|atomic_uintptr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintmax_t|pthread_mutex_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_attr_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_cond_t|pthread_once_t|uint_fast64_t|uint_fast16_t|atomic_size_t|uint_least8_t|int_least64_t|int_least32_t|int_least16_t|pthread_key_t|atomic_ullong|atomic_ushort|uint_fast32_t|atomic_schar|atomic_short|uint_fast8_t|int_fast64_t|int_fast32_t|int_fast16_t|atomic_ulong|atomic_llong|int_least8_t|atomic_uchar|memory_order|suseconds_t|int_fast8_t|atomic_bool|atomic_char|atomic_uint|atomic_long|atomic_int|useconds_t|_Imaginary|blksize_t|pthread_t|in_addr_t|uintptr_t|in_port_t|uintmax_t|blkcnt_t|uint16_t|unsigned|_Complex|uint32_t|intptr_t|intmax_t|uint64_t|u_quad_t|int64_t|int32_t|ssize_t|caddr_t|clock_t|uint8_t|u_short|swblk_t|segsz_t|int16_t|fixpt_t|daddr_t|nlink_t|qaddr_t|size_t|time_t|mode_t|signed|quad_t|ushort|u_long|u_char|double|int8_t|ino_t|uid_t|pid_t|_Bool|float|dev_t|div_t|short|gid_t|off_t|u_int|key_t|id_t|uint|long|void|char|bool|id_t|int)\\\\b)[A-Z_a-z]\\\\w*\\\\b(?!\\\\())"},"method_access":{"begin":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*([A-Z_a-z]\\\\w*)(\\\\()","beginCaptures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"entity.name.function.member.c"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.c"}},"contentName":"meta.function-call.member.c","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.function.member.c"}},"patterns":[{"include":"#function-call-innards"}]},"numbers":{"captures":{"0":{"patterns":[{"begin":"(?=.)","end":"$","patterns":[{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.c"},"2":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"constant.numeric.hexadecimal.c"},"5":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"6":{"name":"punctuation.separator.constant.numeric"},"8":{"name":"keyword.other.unit.exponent.hexadecimal.c"},"9":{"name":"keyword.operator.plus.exponent.hexadecimal.c"},"10":{"name":"keyword.operator.minus.exponent.hexadecimal.c"},"11":{"name":"constant.numeric.exponent.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.c"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.c"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.c"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.c"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.c"},{"match":"[\\\\&^|~]","name":"keyword.operator.c"},{"match":"=","name":"keyword.operator.assignment.c"},{"match":"[-%*+/]","name":"keyword.operator.c"},{"begin":"(\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.c"}},"end":"(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.c"}},"patterns":[{"include":"#function-call-innards"},{"include":"$self"}]}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"name":"meta.parens.c","patterns":[{"include":"$self"}]},"parens-block":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"name":"meta.parens.block.c","patterns":[{"include":"#block_innards"},{"match":"(?-im:(?]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)|(?]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.c"}},"end":"(\\\\))|(?])\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(?:\\\\[]\\\\s*)?[),])"},"static_assert":{"begin":"((?>(?:(?>(?(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?(?:(?>(?(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.other.static_assert.c"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"8":{"name":"comment.block.c"},"9":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"10":{"name":"punctuation.section.arguments.begin.bracket.round.static_assert.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.static_assert.c"}},"patterns":[{"begin":"(,)\\\\s*(?=(?:L|u8?|U\\\\s*\\")?)","beginCaptures":{"1":{"name":"punctuation.separator.delimiter.comma.c"}},"end":"(?=\\\\))","name":"meta.static_assert.message.c","patterns":[{"include":"#string_context"}]},{"include":"#evaluation_context"}]},"storage_types":{"patterns":[{"match":"(?-im:(?\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))(?:\\\\n|$)"},{"include":"#comments"},{"begin":"(((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.assembly.c"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"4":{"name":"comment.block.c"},"5":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.assembly.c"}},"patterns":[{"begin":"(R?)(\\")","beginCaptures":{"1":{"name":"meta.encoding.c"},"2":{"name":"punctuation.definition.string.begin.assembly.c"}},"contentName":"meta.embedded.assembly.c","end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.assembly.c"}},"name":"string.quoted.double.c","patterns":[{"include":"source.asm"},{"include":"source.x86"},{"include":"source.x86_64"},{"include":"source.arm"},{"include":"#backslash_escapes"},{"include":"#string_escaped_char"}]},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.assembly.inner.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.assembly.inner.c"}},"patterns":[{"include":"#evaluation_context"}]},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"variable.other.asm.label.c"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"8":{"name":"comment.block.c"},"9":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"\\\\[((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))([A-Z_a-z]\\\\w*)((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))]"},{"match":":","name":"punctuation.separator.delimiter.colon.assembly.c"},{"include":"#comments"}]}]}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.c"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.c"}]},"string_placeholder":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.c"},{"captures":{"1":{"name":"invalid.illegal.placeholder.c"}},"match":"(%)(?!\\"\\\\s*(PRI|SCN))"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.c","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.single.c","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]}]},"switch_conditional_parentheses":{"begin":"((?>(?:(?>(?(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"punctuation.section.parens.begin.bracket.round.conditional.switch.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.conditional.switch.c"}},"name":"meta.conditional.switch.c","patterns":[{"include":"#evaluation_context"},{"include":"#c_conditional_context"}]},"switch_statement":{"begin":"(((?>(?:(?>(?(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?|\\\\?\\\\?>)|(?=[];=>\\\\[])","name":"meta.block.switch.c","patterns":[{"begin":"\\\\G ?","end":"(\\\\{|<%|\\\\?\\\\?<|(?=;))","endCaptures":{"1":{"name":"punctuation.section.block.begin.bracket.curly.switch.c"}},"name":"meta.head.switch.c","patterns":[{"include":"#switch_conditional_parentheses"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","end":"(}|%>|\\\\?\\\\?>)","endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.switch.c"}},"name":"meta.body.switch.c","patterns":[{"include":"#default_statement"},{"include":"#case_statement"},{"include":"$self"},{"include":"#block_innards"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)[\\\\n\\\\s]*","end":"[\\\\n\\\\s]*(?=;)","name":"meta.tail.switch.c","patterns":[{"include":"$self"}]}]},"vararg_ellipses":{"match":"(?we&&Mt.push("'"+this.terminals_[jt]+"'");ue=D.showPosition?"Parse error on line "+(Et+1)+`: +`+D.showPosition()+` +Expecting `+Mt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":"Parse error on line "+(Et+1)+": Unexpected "+(B==ce?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(ue,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:qt,expected:Mt})}if(I[0]instanceof Array&&I.length>1)throw Error("Parse Error: multiple actions possible at state: "+At+", token: "+B);switch(I[0]){case 1:x.push(B),T.push(D.yytext),h.push(D.yylloc),x.push(I[1]),B=null,Vt?(B=Vt,Vt=null):(le=D.yyleng,y=D.yytext,Et=D.yylineno,qt=D.yylloc,oe>0&&oe--);break;case 2:if(Q=this.productions_[I[1]][1],kt.$=T[T.length-Q],kt._$={first_line:h[h.length-(Q||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(Q||1)].first_column,last_column:h[h.length-1].last_column},Te&&(kt._$.range=[h[h.length-(Q||1)].range[0],h[h.length-1].range[1]]),Gt=this.performAction.apply(kt,[y,le,Et,St.yy,I[1],T,h].concat(Oe)),Gt!==void 0)return Gt;Q&&(x=x.slice(0,-1*Q*2),T=T.slice(0,-1*Q),h=h.slice(0,-1*Q)),x.push(this.productions_[I[1]][0]),T.push(kt.$),h.push(kt._$),de=Rt[x[x.length-2]][x[x.length-1]],x.push(de);break;case 3:return!0}}return!0},"parse")};$t.lexer=(function(){return{EOF:1,parseError:b(function(_,O){if(this.yy.parser)this.yy.parser.parseError(_,O);else throw Error(_)},"parseError"),setInput:b(function(_,O){return this.yy=O||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:b(function(){var _=this._input[0];return this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_,_.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:b(function(_){var O=_.length,x=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-O),this.offset-=O;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===g.length?this.yylloc.first_column:0)+g[g.length-x.length].length-x[0].length:this.yylloc.first_column-O},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-O]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:b(function(_){this.unput(this.match.slice(_))},"less"),pastInput:b(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var _=this.pastInput(),O=Array(_.length+1).join("-");return _+this.upcomingInput()+` +`+O+"^"},"showPosition"),test_match:b(function(_,O){var x,g,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],x=this.performAction.call(this,this.yy,this,O,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var h in T)this[h]=T[h];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,O,x,g;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),h=0;hO[0].length)){if(O=x,g=h,this.options.backtrack_lexer){if(_=this.test_match(x,T[h]),_!==!1)return _;if(this._backtrack){O=!1;continue}else return!1}else if(!this.options.flex)break}return O?(_=this.test_match(O,T[g]),_===!1?!1:_):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){return this.next()||this.lex()},"lex"),begin:b(function(_){this.conditionStack.push(_)},"begin"),popState:b(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:b(function(_){return _=this.conditionStack.length-1-Math.abs(_||0),_>=0?this.conditionStack[_]:"INITIAL"},"topState"),pushState:b(function(_){this.begin(_)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(_,O,x,g){switch(x){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}})();function It(){this.yy={}}return b(It,"Parser"),It.prototype=$t,$t.Parser=It,new It})();Lt.parser=Lt;var Fe=Lt,U=[],_t=[""],N="global",F="",W=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Nt=[],Zt="",te=!1,Yt=4,Ut=2,ge,Xe=b(function(){return ge},"getC4Type"),We=b(function(e){ge=be(e,Dt())},"setC4Type"),ze=b(function(e,t,r,o,l,n,s,i,a){if(e==null||t==null||r==null||o==null)return;let p={},u=Nt.find(d=>d.from===t&&d.to===r);if(u?p=u:Nt.push(p),p.type=e,p.from=t,p.to=r,p.label={text:o},l==null)p.techn={text:""};else if(typeof l=="object"){let[d,f]=Object.entries(l)[0];p[d]={text:f}}else p.techn={text:l};if(n==null)p.descr={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];p[d]={text:f}}else p.descr={text:n};if(typeof s=="object"){let[d,f]=Object.entries(s)[0];p[d]=f}else p.sprite=s;if(typeof i=="object"){let[d,f]=Object.entries(i)[0];p[d]=f}else p.tags=i;if(typeof a=="object"){let[d,f]=Object.entries(a)[0];p[d]=f}else p.link=a;p.wrap=mt()},"addRel"),Qe=b(function(e,t,r,o,l,n,s){if(t===null||r===null)return;let i={},a=U.find(p=>p.alias===t);if(a&&t===a.alias?i=a:(i.alias=t,U.push(i)),r==null?i.label={text:""}:i.label={text:r},o==null)i.descr={text:""};else if(typeof o=="object"){let[p,u]=Object.entries(o)[0];i[p]={text:u}}else i.descr={text:o};if(typeof l=="object"){let[p,u]=Object.entries(l)[0];i[p]=u}else i.sprite=l;if(typeof n=="object"){let[p,u]=Object.entries(n)[0];i[p]=u}else i.tags=n;if(typeof s=="object"){let[p,u]=Object.entries(s)[0];i[p]=u}else i.link=s;i.typeC4Shape={text:e},i.parentBoundary=N,i.wrap=mt()},"addPersonOrSystem"),$e=b(function(e,t,r,o,l,n,s,i){if(t===null||r===null)return;let a={},p=U.find(u=>u.alias===t);if(p&&t===p.alias?a=p:(a.alias=t,U.push(a)),r==null?a.label={text:""}:a.label={text:r},o==null)a.techn={text:""};else if(typeof o=="object"){let[u,d]=Object.entries(o)[0];a[u]={text:d}}else a.techn={text:o};if(l==null)a.descr={text:""};else if(typeof l=="object"){let[u,d]=Object.entries(l)[0];a[u]={text:d}}else a.descr={text:l};if(typeof n=="object"){let[u,d]=Object.entries(n)[0];a[u]=d}else a.sprite=n;if(typeof s=="object"){let[u,d]=Object.entries(s)[0];a[u]=d}else a.tags=s;if(typeof i=="object"){let[u,d]=Object.entries(i)[0];a[u]=d}else a.link=i;a.wrap=mt(),a.typeC4Shape={text:e},a.parentBoundary=N},"addContainer"),He=b(function(e,t,r,o,l,n,s,i){if(t===null||r===null)return;let a={},p=U.find(u=>u.alias===t);if(p&&t===p.alias?a=p:(a.alias=t,U.push(a)),r==null?a.label={text:""}:a.label={text:r},o==null)a.techn={text:""};else if(typeof o=="object"){let[u,d]=Object.entries(o)[0];a[u]={text:d}}else a.techn={text:o};if(l==null)a.descr={text:""};else if(typeof l=="object"){let[u,d]=Object.entries(l)[0];a[u]={text:d}}else a.descr={text:l};if(typeof n=="object"){let[u,d]=Object.entries(n)[0];a[u]=d}else a.sprite=n;if(typeof s=="object"){let[u,d]=Object.entries(s)[0];a[u]=d}else a.tags=s;if(typeof i=="object"){let[u,d]=Object.entries(i)[0];a[u]=d}else a.link=i;a.wrap=mt(),a.typeC4Shape={text:e},a.parentBoundary=N},"addComponent"),qe=b(function(e,t,r,o,l){if(e===null||t===null)return;let n={},s=W.find(i=>i.alias===e);if(s&&e===s.alias?n=s:(n.alias=e,W.push(n)),t==null?n.label={text:""}:n.label={text:t},r==null)n.type={text:"system"};else if(typeof r=="object"){let[i,a]=Object.entries(r)[0];n[i]={text:a}}else n.type={text:r};if(typeof o=="object"){let[i,a]=Object.entries(o)[0];n[i]=a}else n.tags=o;if(typeof l=="object"){let[i,a]=Object.entries(l)[0];n[i]=a}else n.link=l;n.parentBoundary=N,n.wrap=mt(),F=N,N=e,_t.push(F)},"addPersonOrSystemBoundary"),Ve=b(function(e,t,r,o,l){if(e===null||t===null)return;let n={},s=W.find(i=>i.alias===e);if(s&&e===s.alias?n=s:(n.alias=e,W.push(n)),t==null?n.label={text:""}:n.label={text:t},r==null)n.type={text:"container"};else if(typeof r=="object"){let[i,a]=Object.entries(r)[0];n[i]={text:a}}else n.type={text:r};if(typeof o=="object"){let[i,a]=Object.entries(o)[0];n[i]=a}else n.tags=o;if(typeof l=="object"){let[i,a]=Object.entries(l)[0];n[i]=a}else n.link=l;n.parentBoundary=N,n.wrap=mt(),F=N,N=e,_t.push(F)},"addContainerBoundary"),Ge=b(function(e,t,r,o,l,n,s,i){if(t===null||r===null)return;let a={},p=W.find(u=>u.alias===t);if(p&&t===p.alias?a=p:(a.alias=t,W.push(a)),r==null?a.label={text:""}:a.label={text:r},o==null)a.type={text:"node"};else if(typeof o=="object"){let[u,d]=Object.entries(o)[0];a[u]={text:d}}else a.type={text:o};if(l==null)a.descr={text:""};else if(typeof l=="object"){let[u,d]=Object.entries(l)[0];a[u]={text:d}}else a.descr={text:l};if(typeof s=="object"){let[u,d]=Object.entries(s)[0];a[u]=d}else a.tags=s;if(typeof i=="object"){let[u,d]=Object.entries(i)[0];a[u]=d}else a.link=i;a.nodeType=e,a.parentBoundary=N,a.wrap=mt(),F=N,N=t,_t.push(F)},"addDeploymentNode"),Ke=b(function(){N=F,_t.pop(),F=_t.pop(),_t.push(F)},"popBoundaryParseStack"),Je=b(function(e,t,r,o,l,n,s,i,a,p,u){let d=U.find(f=>f.alias===t);if(!(d===void 0&&(d=W.find(f=>f.alias===t),d===void 0))){if(r!=null)if(typeof r=="object"){let[f,k]=Object.entries(r)[0];d[f]=k}else d.bgColor=r;if(o!=null)if(typeof o=="object"){let[f,k]=Object.entries(o)[0];d[f]=k}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[f,k]=Object.entries(l)[0];d[f]=k}else d.borderColor=l;if(n!=null)if(typeof n=="object"){let[f,k]=Object.entries(n)[0];d[f]=k}else d.shadowing=n;if(s!=null)if(typeof s=="object"){let[f,k]=Object.entries(s)[0];d[f]=k}else d.shape=s;if(i!=null)if(typeof i=="object"){let[f,k]=Object.entries(i)[0];d[f]=k}else d.sprite=i;if(a!=null)if(typeof a=="object"){let[f,k]=Object.entries(a)[0];d[f]=k}else d.techn=a;if(p!=null)if(typeof p=="object"){let[f,k]=Object.entries(p)[0];d[f]=k}else d.legendText=p;if(u!=null)if(typeof u=="object"){let[f,k]=Object.entries(u)[0];d[f]=k}else d.legendSprite=u}},"updateElStyle"),Ze=b(function(e,t,r,o,l,n,s){let i=Nt.find(a=>a.from===t&&a.to===r);if(i!==void 0){if(o!=null)if(typeof o=="object"){let[a,p]=Object.entries(o)[0];i[a]=p}else i.textColor=o;if(l!=null)if(typeof l=="object"){let[a,p]=Object.entries(l)[0];i[a]=p}else i.lineColor=l;if(n!=null)if(typeof n=="object"){let[a,p]=Object.entries(n)[0];i[a]=parseInt(p)}else i.offsetX=parseInt(n);if(s!=null)if(typeof s=="object"){let[a,p]=Object.entries(s)[0];i[a]=parseInt(p)}else i.offsetY=parseInt(s)}},"updateRelStyle"),t0=b(function(e,t,r){let o=Yt,l=Ut;if(typeof t=="object"){let n=Object.values(t)[0];o=parseInt(n)}else o=parseInt(t);if(typeof r=="object"){let n=Object.values(r)[0];l=parseInt(n)}else l=parseInt(r);o>=1&&(Yt=o),l>=1&&(Ut=l)},"updateLayoutConfig"),e0=b(function(){return Yt},"getC4ShapeInRow"),n0=b(function(){return Ut},"getC4BoundaryInRow"),a0=b(function(){return N},"getCurrentBoundaryParse"),i0=b(function(){return F},"getParentBoundaryParse"),fe=b(function(e){return e==null?U:U.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),s0=b(function(e){return U.find(t=>t.alias===e)},"getC4Shape"),r0=b(function(e){return Object.keys(fe(e))},"getC4ShapeKeys"),_e=b(function(e){return e==null?W:W.filter(t=>t.parentBoundary===e)},"getBoundaries"),l0=_e,o0=b(function(){return Nt},"getRels"),c0=b(function(){return Zt},"getTitle"),h0=b(function(e){te=e},"setWrap"),mt=b(function(){return te},"autoWrap"),ee={addPersonOrSystem:Qe,addPersonOrSystemBoundary:qe,addContainer:$e,addContainerBoundary:Ve,addComponent:He,addDeploymentNode:Ge,popBoundaryParseStack:Ke,addRel:ze,updateElStyle:Je,updateRelStyle:Ze,updateLayoutConfig:t0,autoWrap:mt,setWrap:h0,getC4ShapeArray:fe,getC4Shape:s0,getC4ShapeKeys:r0,getBoundaries:_e,getBoundarys:l0,getCurrentBoundaryParse:a0,getParentBoundaryParse:i0,getRels:o0,getTitle:c0,getC4Type:Xe,getC4ShapeInRow:e0,getC4BoundaryInRow:n0,setAccTitle:De,getAccTitle:Ie,getAccDescription:Ne,setAccDescription:je,getConfig:b(()=>Dt().c4,"getConfig"),clear:b(function(){U=[],W=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],F="",N="global",_t=[""],Nt=[],_t=[""],Zt="",te=!1,Yt=4,Ut=2},"clear"),LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:b(function(e){Zt=be(e,Dt())},"setTitle"),setC4Type:We},ne=b(function(e,t){return Le(e,t)},"drawRect"),me=b(function(e,t,r,o,l,n){let s=e.append("image");s.attr("width",t),s.attr("height",r),s.attr("x",o),s.attr("y",l);let i=n.startsWith("data:image/png;base64")?n:(0,Ue.sanitizeUrl)(n);s.attr("xlink:href",i)},"drawImage"),d0=b((e,t,r)=>{let o=e.append("g"),l=0;for(let n of t){let s=n.textColor?n.textColor:"#444444",i=n.lineColor?n.lineColor:"#444444",a=n.offsetX?parseInt(n.offsetX):0,p=n.offsetY?parseInt(n.offsetY):0;if(l===0){let d=o.append("line");d.attr("x1",n.startPoint.x),d.attr("y1",n.startPoint.y),d.attr("x2",n.endPoint.x),d.attr("y2",n.endPoint.y),d.attr("stroke-width","1"),d.attr("stroke",i),d.style("fill","none"),n.type!=="rel_b"&&d.attr("marker-end","url(#arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&d.attr("marker-start","url(#arrowend)"),l=-1}else{let d=o.append("path");d.attr("fill","none").attr("stroke-width","1").attr("stroke",i).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",n.startPoint.x).replaceAll("starty",n.startPoint.y).replaceAll("controlx",n.startPoint.x+(n.endPoint.x-n.startPoint.x)/2-(n.endPoint.x-n.startPoint.x)/4).replaceAll("controly",n.startPoint.y+(n.endPoint.y-n.startPoint.y)/2).replaceAll("stopx",n.endPoint.x).replaceAll("stopy",n.endPoint.y)),n.type!=="rel_b"&&d.attr("marker-end","url(#arrowhead)"),(n.type==="birel"||n.type==="rel_b")&&d.attr("marker-start","url(#arrowend)")}let u=r.messageFont();$(r)(n.label.text,o,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+a,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+p,n.label.width,n.label.height,{fill:s},u),n.techn&&n.techn.text!==""&&(u=r.messageFont(),$(r)("["+n.techn.text+"]",o,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+a,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+r.messageFontSize+5+p,Math.max(n.label.width,n.techn.width),n.techn.height,{fill:s,"font-style":"italic"},u))}},"drawRels"),u0=b(function(e,t,r){let o=e.append("g"),l=t.bgColor?t.bgColor:"none",n=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",i={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(i={"stroke-width":1}),ne(o,{x:t.x,y:t.y,fill:l,stroke:n,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:i});let a=r.boundaryFont();a.fontWeight="bold",a.fontSize+=2,a.fontColor=s,$(r)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},a),t.type&&t.type.text!==""&&(a=r.boundaryFont(),a.fontColor=s,$(r)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},a)),t.descr&&t.descr.text!==""&&(a=r.boundaryFont(),a.fontSize-=2,a.fontColor=s,$(r)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},a))},"drawBoundary"),p0=b(function(e,t,r){var d;let o=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],l=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],n=t.fontColor?t.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let i=e.append("g");i.attr("class","person-man");let a=Ye();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":a.x=t.x,a.y=t.y,a.fill=o,a.width=t.width,a.height=t.height,a.stroke=l,a.rx=2.5,a.ry=2.5,a.attrs={"stroke-width":.5},ne(i,a);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":i.append("path").attr("fill",o).attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),i.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":i.append("path").attr("fill",o).attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),i.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let p=S0(r,t.typeC4Shape.text);switch(i.append("text").attr("fill",n).attr("font-family",p.fontFamily).attr("font-size",p.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":me(i,48,48,t.x+t.width/2-24,t.y+t.image.Y,s);break}let u=r[t.typeC4Shape.text+"Font"]();return u.fontWeight="bold",u.fontSize+=2,u.fontColor=n,$(r)(t.label.text,i,t.x,t.y+t.label.Y,t.width,t.height,{fill:n},u),u=r[t.typeC4Shape.text+"Font"](),u.fontColor=n,t.techn&&((d=t.techn)==null?void 0:d.text)!==""?$(r)(t.techn.text,i,t.x,t.y+t.techn.Y,t.width,t.height,{fill:n,"font-style":"italic"},u):t.type&&t.type.text!==""&&$(r)(t.type.text,i,t.x,t.y+t.type.Y,t.width,t.height,{fill:n,"font-style":"italic"},u),t.descr&&t.descr.text!==""&&(u=r.personFont(),u.fontColor=n,$(r)(t.descr.text,i,t.x,t.y+t.descr.Y,t.width,t.height,{fill:n},u)),t.height},"drawC4Shape"),y0=b(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),b0=b(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),g0=b(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),f0=b(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),_0=b(function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),m0=b(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),x0=b(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertDynamicNumber"),E0=b(function(e){let t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),S0=b((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),$=(function(){function e(l,n,s,i,a,p,u){o(n.append("text").attr("x",s+a/2).attr("y",i+p/2+5).style("text-anchor","middle").text(l),u)}b(e,"byText");function t(l,n,s,i,a,p,u,d){let{fontSize:f,fontFamily:k,fontWeight:v}=d,R=l.split(Jt.lineBreakRegex);for(let P=0;P=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>xe)&&(r=this.nextData.startx+t.margin+m.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=n=l+t.height,this.nextData.cnt=1),t.x=r,t.y=l,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",n,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",n,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ie(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},b(Ot,"Bounds"),Ot),ie=b(function(e){Be(m,e),e.fontFamily&&(m.personFontFamily=m.systemFontFamily=m.messageFontFamily=e.fontFamily),e.fontSize&&(m.personFontSize=m.systemFontSize=m.messageFontSize=e.fontSize),e.fontWeight&&(m.personFontWeight=m.systemFontWeight=m.messageFontWeight=e.fontWeight)},"setConf"),Pt=b((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),Wt=b(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),A0=b(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function M(e,t,r,o,l){if(!t[e].width)if(r)t[e].text=Re(t[e].text,l,o),t[e].textLines=t[e].text.split(Jt.lineBreakRegex).length,t[e].width=l,t[e].height=pe(t[e].text,o);else{let n=t[e].text.split(Jt.lineBreakRegex);t[e].textLines=n.length;let s=0;t[e].height=0,t[e].width=0;for(let i of n)t[e].width=Math.max(wt(i,o),t[e].width),s=pe(i,o),t[e].height=t[e].height+s}}b(M,"calcC4ShapeTextWH");var Se=b(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=m.c4ShapeMargin-35;let o=t.wrap&&m.wrap,l=Wt(m);l.fontSize+=2,l.fontWeight="bold",M("label",t,o,l,wt(t.label.text,l)),z.drawBoundary(e,t,m)},"drawBoundary"),Ae=b(function(e,t,r,o){let l=0;for(let n of o){l=0;let s=r[n],i=Pt(m,s.typeC4Shape.text);switch(i.fontSize-=2,s.typeC4Shape.width=wt("\xAB"+s.typeC4Shape.text+"\xBB",i),s.typeC4Shape.height=i.fontSize+2,s.typeC4Shape.Y=m.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let a=s.wrap&&m.wrap,p=m.width-m.c4ShapePadding*2,u=Pt(m,s.typeC4Shape.text);u.fontSize+=2,u.fontWeight="bold",M("label",s,a,u,p),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&s.type.text!==""?(s.type.text="["+s.type.text+"]",M("type",s,a,Pt(m,s.typeC4Shape.text),p),s.type.Y=l+5,l=s.type.Y+s.type.height):s.techn&&s.techn.text!==""&&(s.techn.text="["+s.techn.text+"]",M("techn",s,a,Pt(m,s.techn.text),p),s.techn.Y=l+5,l=s.techn.Y+s.techn.height);let d=l,f=s.label.width;s.descr&&s.descr.text!==""&&(M("descr",s,a,Pt(m,s.typeC4Shape.text),p),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,f=Math.max(s.label.width,s.descr.width),d=l-s.descr.textLines*5),f+=m.c4ShapePadding,s.width=Math.max(s.width||m.width,f,m.width),s.height=Math.max(s.height||m.height,d,m.height),s.margin=s.margin||m.c4ShapeMargin,e.insert(s),z.drawC4Shape(t,s,m)}e.bumpLastMargin(m.c4ShapeMargin)},"drawC4ShapeArray"),L=(Tt=class{constructor(t,r){this.x=t,this.y=r}},b(Tt,"Point"),Tt),Ce=b(function(e,t){let r=e.x,o=e.y,l=t.x,n=t.y,s=r+e.width/2,i=o+e.height/2,a=Math.abs(r-l),p=Math.abs(o-n),u=p/a,d=e.height/e.width,f=null;return o==n&&rl?f=new L(r,i):r==l&&on&&(f=new L(s,o)),r>l&&o=u?new L(r,i+u*e.width/2):new L(s-a/p*e.height/2,o+e.height):r=u?new L(r+e.width,i+u*e.width/2):new L(s+a/p*e.height/2,o+e.height):rn?f=d>=u?new L(r+e.width,i-u*e.width/2):new L(s+e.height/2*a/p,o):r>l&&o>n&&(f=d>=u?new L(r,i-e.width/2*u):new L(s-e.height/2*a/p,o)),f},"getIntersectPoint"),C0=b(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let o=Ce(e,r);return r.x=e.x+e.width/2,r.y=e.y+e.height/2,{startPoint:o,endPoint:Ce(t,r)}},"getIntersectPoints"),k0=b(function(e,t,r,o){let l=0;for(let n of t){l+=1;let s=n.wrap&&m.wrap,i=A0(m);o.db.getC4Type()==="C4Dynamic"&&(n.label.text=l+": "+n.label.text);let a=wt(n.label.text,i);M("label",n,s,i,a),n.techn&&n.techn.text!==""&&(a=wt(n.techn.text,i),M("techn",n,s,i,a)),n.descr&&n.descr.text!==""&&(a=wt(n.descr.text,i),M("descr",n,s,i,a));let p=C0(r(n.from),r(n.to));n.startPoint=p.startPoint,n.endPoint=p.endPoint}z.drawRels(e,t,m)},"drawRels");function se(e,t,r,o,l){let n=new Ee(l);n.data.widthLimit=r.data.widthLimit/Math.min(ae,o.length);for(let[s,i]of o.entries()){let a=0;i.image={width:0,height:0,Y:0},i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=a,a=i.image.Y+i.image.height);let p=i.wrap&&m.wrap,u=Wt(m);if(u.fontSize+=2,u.fontWeight="bold",M("label",i,p,u,n.data.widthLimit),i.label.Y=a+8,a=i.label.Y+i.label.height,i.type&&i.type.text!==""&&(i.type.text="["+i.type.text+"]",M("type",i,p,Wt(m),n.data.widthLimit),i.type.Y=a+5,a=i.type.Y+i.type.height),i.descr&&i.descr.text!==""){let v=Wt(m);v.fontSize-=2,M("descr",i,p,v,n.data.widthLimit),i.descr.Y=a+20,a=i.descr.Y+i.descr.height}if(s==0||s%ae===0){let v=r.data.startx+m.diagramMarginX,R=r.data.stopy+m.diagramMarginY+a;n.setData(v,v,R,R)}else{let v=n.data.stopx===n.data.startx?n.data.startx:n.data.stopx+m.diagramMarginX,R=n.data.starty;n.setData(v,v,R,R)}n.name=i.alias;let d=l.db.getC4ShapeArray(i.alias),f=l.db.getC4ShapeKeys(i.alias);f.length>0&&Ae(n,e,d,f),t=i.alias;let k=l.db.getBoundaries(t);k.length>0&&se(e,t,n,k,l),i.alias!=="global"&&Se(e,i,n),r.data.stopy=Math.max(n.data.stopy+m.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(n.data.stopx+m.c4ShapeMargin,r.data.stopx),Ft=Math.max(Ft,r.data.stopx),Xt=Math.max(Xt,r.data.stopy)}}b(se,"drawInsideBoundary");var ke={drawPersonOrSystemArray:Ae,drawBoundary:Se,setConf:ie,draw:b(function(e,t,r,o){m=Dt().c4;let l=Dt().securityLevel,n;l==="sandbox"&&(n=Kt("#i"+t));let s=Kt(l==="sandbox"?n.nodes()[0].contentDocument.body:"body"),i=o.db;o.db.setWrap(m.wrap),xe=i.getC4ShapeInRow(),ae=i.getC4BoundaryInRow(),ye.debug(`C:${JSON.stringify(m,null,2)}`);let a=l==="sandbox"?s.select(`[id="${t}"]`):Kt(`[id="${t}"]`);z.insertComputerIcon(a),z.insertDatabaseIcon(a),z.insertClockIcon(a);let p=new Ee(o);p.setData(m.diagramMarginX,m.diagramMarginX,m.diagramMarginY,m.diagramMarginY),p.data.widthLimit=screen.availWidth,Ft=m.diagramMarginX,Xt=m.diagramMarginY;let u=o.db.getTitle();se(a,"",p,o.db.getBoundaries(""),o),z.insertArrowHead(a),z.insertArrowEnd(a),z.insertArrowCrossHead(a),z.insertArrowFilledHead(a),k0(a,o.db.getRels(),o.db.getC4Shape,o),p.data.stopx=Ft,p.data.stopy=Xt;let d=p.data,f=d.stopy-d.starty+2*m.diagramMarginY,k=d.stopx-d.startx+2*m.diagramMarginX;u&&a.append("text").text(u).attr("x",(d.stopx-d.startx)/2-4*m.diagramMarginX).attr("y",d.starty+m.diagramMarginY),Pe(a,f,k,m.useMaxWidth);let v=u?60:0;a.attr("viewBox",d.startx-m.diagramMarginX+" -"+(m.diagramMarginY+v)+" "+k+" "+(f+v)),ye.debug("models:",d)},"draw")},w0={parser:Fe,db:ee,renderer:ke,styles:b(e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,"getStyles"),init:b(({c4:e,wrap:t})=>{ke.setConf(e),ee.setWrap(t)},"init")};export{w0 as diagram}; diff --git a/docs/assets/cache-panel-BljwLE9L.js b/docs/assets/cache-panel-BljwLE9L.js new file mode 100644 index 0000000..98cdf66 --- /dev/null +++ b/docs/assets/cache-panel-BljwLE9L.js @@ -0,0 +1 @@ +import{s as z}from"./chunk-LvLJmgfZ.js";import{u as O}from"./useEvent-DlWF5OMa.js";import{t as A}from"./react-BGmjiNul.js";import"./react-dom-C9fstfnp.js";import{t as B}from"./compiler-runtime-DeeZ7FnK.js";import{t as R}from"./jsx-runtime-DN_bIXfG.js";import{t as P}from"./button-B8cGZzP5.js";import{t as G}from"./cn-C1rgT0yh.js";import{r as H}from"./requests-C0HaHO6a.js";import{t as _}from"./database-zap-CaVvnK_o.js";import{t as S}from"./spinner-C1czjtp7.js";import{t as F}from"./refresh-cw-Din9uFKE.js";import{t as K}from"./trash-2-C-lF7BNB.js";import{t as D}from"./use-toast-Bzf3rpev.js";import"./Combination-D1TsGrBC.js";import{a as q,c as J,i as Q,l as U,n as V,o as W,r as X,s as Y,t as Z,u as ee}from"./alert-dialog-jcHA5geR.js";import{t as se}from"./context-BAYdLMF_.js";import{r as m}from"./numbers-C9_R_vlY.js";import{n as te}from"./useAsyncData-Dj1oqsrZ.js";import{t as E}from"./empty-state-H6r25Wek.js";import{t as ae}from"./requests-bNszE-ju.js";var ie=B(),I=z(A(),1),s=z(R(),1);const re=i=>{let e=(0,ie.c)(27),{children:t,title:l,description:r,onConfirm:a,confirmText:c,cancelText:o,destructive:n}=i,y=c===void 0?"Continue":c,u=o===void 0?"Cancel":o,p=n===void 0?!1:n,[j,k]=I.useState(!1),f;e[0]===a?f=e[1]:(f=()=>{a(),k(!1)},e[0]=a,e[1]=f);let v=f,h=p?W:V,x;e[2]===t?x=e[3]:(x=(0,s.jsx)(ee,{asChild:!0,children:t}),e[2]=t,e[3]=x);let d;e[4]===l?d=e[5]:(d=(0,s.jsx)(U,{children:l}),e[4]=l,e[5]=d);let g;e[6]===r?g=e[7]:(g=(0,s.jsx)(q,{children:r}),e[6]=r,e[7]=g);let N;e[8]!==d||e[9]!==g?(N=(0,s.jsxs)(J,{children:[d,g]}),e[8]=d,e[9]=g,e[10]=N):N=e[10];let b;e[11]===u?b=e[12]:(b=(0,s.jsx)(X,{children:u}),e[11]=u,e[12]=b);let C;e[13]!==h||e[14]!==y||e[15]!==v?(C=(0,s.jsx)(h,{onClick:v,children:y}),e[13]=h,e[14]=y,e[15]=v,e[16]=C):C=e[16];let w;e[17]!==C||e[18]!==b?(w=(0,s.jsxs)(Y,{children:[b,C]}),e[17]=C,e[18]=b,e[19]=w):w=e[19];let $;e[20]!==w||e[21]!==N?($=(0,s.jsxs)(Q,{children:[N,w]}),e[20]=w,e[21]=N,e[22]=$):$=e[22];let M;return e[23]!==j||e[24]!==$||e[25]!==x?(M=(0,s.jsxs)(Z,{open:j,onOpenChange:k,children:[x,$]}),e[23]=j,e[24]=$,e[25]=x,e[26]=M):M=e[26],M};function L(i,e){if(i===0||i===-1)return"0 B";let t=1024,l=["B","KB","MB","GB","TB"],r=Math.floor(Math.log(i)/Math.log(t));return`${m(i/t**r,e)} ${l[r]}`}function le(i,e){if(i===0)return"0s";if(i<.001)return`${m(i*1e6,e)}\xB5s`;if(i<1)return`${m(i*1e3,e)}ms`;if(i<60)return`${m(i,e)}s`;let t=Math.floor(i/60),l=i%60;if(t<60)return l>0?`${t}m ${m(l,e)}s`:`${t}m`;let r=Math.floor(t/60),a=t%60;return a>0?`${r}h ${a}m`:`${r}h`}var oe=B(),ce=()=>{let{clearCache:i,getCacheInfo:e}=H(),t=O(ae),[l,r]=(0,I.useState)(!1),{locale:a}=se(),{isPending:c,isFetching:o,refetch:n}=te(async()=>{await e(),await new Promise(d=>setTimeout(d,500))},[]),y=async()=>{try{r(!0),await i(),D({title:"Cache purged",description:"All cached data has been cleared"}),n()}catch(d){D({title:"Error",description:d instanceof Error?d.message:"Failed to purge cache",variant:"danger"})}finally{r(!1)}};if(c&&!t)return(0,s.jsx)(S,{size:"medium",centered:!0});let u=(0,s.jsxs)(P,{variant:"outline",size:"sm",onClick:n,disabled:o,children:[o?(0,s.jsx)(S,{size:"small",className:"w-4 h-4 mr-2"}):(0,s.jsx)(F,{className:"w-4 h-4 mr-2"}),"Refresh"]});if(!t)return(0,s.jsx)(E,{title:"No cache data",description:"Cache information is not available.",icon:(0,s.jsx)(_,{}),action:u});let p=t.hits,j=t.misses,k=t.time,f=t.disk_total,v=t.disk_to_free,h=p+j,x=h>0?p/h*100:0;return h===0?(0,s.jsx)(E,{title:"No cache activity",description:"The cache has not been used yet. Cached functions will appear here once they are executed.",icon:(0,s.jsx)(_,{}),action:u}):(0,s.jsx)("div",{className:"flex flex-col h-full overflow-auto",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4 p-4 h-full",children:[(0,s.jsx)("div",{className:"flex items-center justify-end",children:(0,s.jsx)(P,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:n,disabled:o,children:(0,s.jsx)(F,{className:G("h-4 w-4 text-muted-foreground hover:text-foreground",o&&"animate-[spin_0.5s]")})})}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:"Statistics"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsx)(T,{label:"Time saved",value:le(k,a),description:"Total execution time saved"}),(0,s.jsx)(T,{label:"Hit rate",value:h>0?`${m(x,a)}%`:"\u2014",description:`${m(p,a)} hits / ${m(h,a)} total`}),(0,s.jsx)(T,{label:"Cache hits",value:m(p,a),description:"Successful cache retrievals"}),(0,s.jsx)(T,{label:"Cache misses",value:m(j,a),description:"Cache not found"})]})]}),f>0&&(0,s.jsxs)("div",{className:"space-y-3 pt-2 border-t",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:"Storage"}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3",children:(0,s.jsx)(T,{label:"Disk usage",value:L(f,a),description:v>0?`${L(v,a)} can be freed`:"Cache storage on disk"})})]}),(0,s.jsx)("div",{className:"my-auto"}),(0,s.jsx)("div",{className:"pt-2 border-t",children:(0,s.jsx)(re,{title:"Purge cache?",description:"This will permanently delete all cached data. This action cannot be undone.",confirmText:"Purge",destructive:!0,onConfirm:y,children:(0,s.jsxs)(P,{variant:"outlineDestructive",size:"xs",disabled:l,className:"w-full",children:[l?(0,s.jsx)(S,{size:"small",className:"w-3 h-3 mr-2"}):(0,s.jsx)(K,{className:"w-3 h-3 mr-2"}),"Purge Cache"]})})})]})})},T=i=>{let e=(0,oe.c)(10),{label:t,value:l,description:r}=i,a;e[0]===t?a=e[1]:(a=(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:t}),e[0]=t,e[1]=a);let c;e[2]===l?c=e[3]:(c=(0,s.jsx)("span",{className:"text-lg font-semibold",children:l}),e[2]=l,e[3]=c);let o;e[4]===r?o=e[5]:(o=r&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:r}),e[4]=r,e[5]=o);let n;return e[6]!==a||e[7]!==c||e[8]!==o?(n=(0,s.jsxs)("div",{className:"flex flex-col gap-1 p-3 rounded-lg border bg-card",children:[a,c,o]}),e[6]=a,e[7]=c,e[8]=o,e[9]=n):n=e[9],n},ne=ce;export{ne as default}; diff --git a/docs/assets/cadence-Dy7MlTjY.js b/docs/assets/cadence-Dy7MlTjY.js new file mode 100644 index 0000000..0f02ffe --- /dev/null +++ b/docs/assets/cadence-Dy7MlTjY.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Cadence","name":"cadence","patterns":[{"include":"#comments"},{"include":"#expressions"},{"include":"#declarations"},{"include":"#keywords"},{"include":"#code-block"},{"include":"#composite"},{"include":"#event"}],"repository":{"code-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.cadence"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.cadence"}},"patterns":[{"include":"$self"}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.cadence"}},"match":"\\\\A^(#!).*$\\\\n?","name":"comment.line.number-sign.cadence"},{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.cadence"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.cadence"}},"name":"comment.block.documentation.cadence","patterns":[{"include":"#nested"}]},{"begin":"/\\\\*:","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.cadence"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.cadence"}},"name":"comment.block.documentation.playground.cadence","patterns":[{"include":"#nested"}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.cadence"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.cadence"}},"name":"comment.block.cadence","patterns":[{"include":"#nested"}]},{"match":"\\\\*/","name":"invalid.illegal.unexpected-end-of-block-comment.cadence"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.cadence"}},"end":"(?!\\\\G)","patterns":[{"begin":"///","beginCaptures":{"0":{"name":"punctuation.definition.comment.cadence"}},"end":"^","name":"comment.line.triple-slash.documentation.cadence"},{"begin":"//:","beginCaptures":{"0":{"name":"punctuation.definition.comment.cadence"}},"end":"^","name":"comment.line.double-slash.documentation.cadence"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.cadence"}},"end":"^","name":"comment.line.double-slash.cadence"}]}],"repository":{"nested":{"begin":"/\\\\*","end":"\\\\*/","patterns":[{"include":"#nested"}]}}},"composite":{"begin":"\\\\b((?:struct|resource|contract)(?:\\\\s+interface)?|transaction|enum)\\\\s+([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)","beginCaptures":{"1":{"name":"storage.type.$1.cadence"},"2":{"name":"entity.name.type.$1.cadence"}},"end":"(?<=})","name":"meta.definition.type.composite.cadence","patterns":[{"include":"#comments"},{"include":"#conformance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.cadence"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.cadence"}},"name":"meta.definition.type.body.cadence","patterns":[{"include":"$self"}]}]},"conformance-clause":{"begin":"(:)(?=\\\\s*\\\\{)|(:)\\\\s*","beginCaptures":{"1":{"name":"invalid.illegal.empty-conformance-clause.cadence"},"2":{"name":"punctuation.separator.conformance-clause.cadence"}},"end":"(?!\\\\G)$|(?=[={}])","name":"meta.conformance-clause.cadence","patterns":[{"begin":"\\\\G","end":"(?!\\\\G)$|(?=[={}])","patterns":[{"include":"#comments"},{"include":"#type"}]}]},"declarations":{"patterns":[{"include":"#var-let-declaration"},{"include":"#function"},{"include":"#initializer"}]},"event":{"begin":"\\\\b(event)\\\\b\\\\s+([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)\\\\s*","beginCaptures":{"1":{"name":"storage.type.event.cadence"},"2":{"name":"entity.name.type.event.cadence"}},"end":"(?<=\\\\))|$","name":"meta.definition.type.event.cadence","patterns":[{"include":"#comments"},{"include":"#parameter-clause"}]},"expression-element-list":{"patterns":[{"include":"#comments"},{"begin":"([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)\\\\s*(:)","beginCaptures":{"1":{"name":"support.function.any-method.cadence"},"2":{"name":"punctuation.separator.argument-label.cadence"}},"end":"(?=[]),])","patterns":[{"include":"#expressions"}]},{"begin":"(?![]),])(?=\\\\S)","end":"(?=[]),])","patterns":[{"include":"#expressions"}]}]},"expressions":{"patterns":[{"include":"#comments"},{"include":"#function-call-expression"},{"include":"#literals"},{"include":"#operators"},{"include":"#language-variables"}]},"function":{"begin":"\\\\b(fun)\\\\b\\\\s+([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)\\\\s*","beginCaptures":{"1":{"name":"storage.type.function.cadence"},"2":{"name":"entity.name.function.cadence"}},"end":"(?<=})|$","name":"meta.definition.function.cadence","patterns":[{"include":"#comments"},{"include":"#parameter-clause"},{"include":"#function-result"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.cadence"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.cadence"}},"name":"meta.definition.function.body.cadence","patterns":[{"include":"$self"}]}]},"function-call-expression":{"patterns":[{"begin":"(?!set|init)([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.any-method.cadence"},"4":{"name":"punctuation.definition.arguments.begin.cadence"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.cadence"}},"name":"meta.function-call.cadence","patterns":[{"include":"#expression-element-list"}]}]},"function-result":{"begin":"(?^|~])(:)(?![-!%\\\\&*+./<=>^|~])\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.function-result.cadence"}},"end":"(?!\\\\G)(?=[;{])|$","name":"meta.function-result.cadence","patterns":[{"include":"#type"}]},"initializer":{"begin":"(?]|>=|<=","name":"keyword.operator.comparison.cadence"},{"match":"\\\\?\\\\?","name":"keyword.operator.coalescing.cadence"},{"match":"&&|\\\\|\\\\|","name":"keyword.operator.logical.cadence"},{"match":"[!?]","name":"keyword.operator.type.optional.cadence"}]},"parameter-clause":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.cadence"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.cadence"}},"name":"meta.parameter-clause.cadence","patterns":[{"include":"#parameter-list"}]},"parameter-list":{"patterns":[{"captures":{"1":{"name":"entity.name.function.cadence"},"2":{"name":"variable.parameter.function.cadence"}},"match":"([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)\\\\s+([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)(?=\\\\s*:)"},{"captures":{"1":{"name":"variable.parameter.function.cadence"},"2":{"name":"entity.name.function.cadence"}},"match":"(([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*))(?=\\\\s*:)"},{"begin":":\\\\s*(?!\\\\s)","end":"(?=[),])","patterns":[{"include":"#type"},{"match":":","name":"invalid.illegal.extra-colon-in-parameter-list.cadence"}]}]},"type":{"patterns":[{"include":"#comments"},{"match":"([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)","name":"storage.type.cadence"}]},"var-let-declaration":{"begin":"\\\\b(var|let)\\\\b\\\\s+([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)","beginCaptures":{"1":{"name":"storage.type.$1.cadence"},"2":{"name":"entity.name.type.$1.cadence"}},"end":"=|<-!??|$","patterns":[{"include":"#type"}]}},"scopeName":"source.cadence","aliases":["cdc"]}`))];export{e as default}; diff --git a/docs/assets/cairo-D1ogmZMK.js b/docs/assets/cairo-D1ogmZMK.js new file mode 100644 index 0000000..f3baf5e --- /dev/null +++ b/docs/assets/cairo-D1ogmZMK.js @@ -0,0 +1 @@ +import{t as e}from"./python-GH_mL2fV.js";var n=Object.freeze(JSON.parse(`{"displayName":"Cairo","name":"cairo","patterns":[{"begin":"\\\\b(if).*\\\\(","beginCaptures":{"1":{"name":"keyword.control.if"},"2":{"name":"entity.name.condition"}},"contentName":"source.cairo0","end":"}","endCaptures":{"0":{"name":"keyword.control.end"}},"name":"meta.control.if","patterns":[{"include":"source.cairo0"}]},{"begin":"\\\\b(with)\\\\s+(.+)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control.with"},"2":{"name":"entity.name.identifiers"}},"contentName":"source.cairo0","end":"}","endCaptures":{"0":{"name":"keyword.control.end"}},"name":"meta.control.with","patterns":[{"include":"source.cairo0"}]},{"begin":"\\\\b(with_attr)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*[({]","beginCaptures":{"1":{"name":"keyword.control.with_attr"},"2":{"name":"entity.name.function"}},"contentName":"source.cairo0","end":"}","endCaptures":{"0":{"name":"keyword.control.end"}},"name":"meta.control.with_attr","patterns":[{"include":"source.cairo0"}]},{"match":"\\\\belse\\\\b","name":"keyword.control.else"},{"match":"\\\\b(call|jmp|ret|abs|rel|if)\\\\b","name":"keyword.other.opcode"},{"match":"\\\\b([af]p)\\\\b","name":"keyword.other.register"},{"match":"\\\\b(const|let|local|tempvar|felt|as|from|import|static_assert|return|assert|cast|alloc_locals|with|with_attr|nondet|dw|codeoffset|new|using|and)\\\\b","name":"keyword.other.meta"},{"match":"\\\\b(SIZE(?:OF_LOCALS|))\\\\b","name":"markup.italic"},{"match":"//[^\\\\n]*\\\\n","name":"comment.line.sharp"},{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*:\\\\s*$","name":"entity.name.function"},{"begin":"\\\\b(func)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*[({]","beginCaptures":{"1":{"name":"storage.type.function.cairo"},"2":{"name":"entity.name.function"}},"contentName":"source.cairo0","end":"}","endCaptures":{"0":{"name":"storage.type.function.cairo"}},"name":"meta.function.cairo","patterns":[{"include":"source.cairo0"}]},{"begin":"\\\\b(struct|namespace)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"storage.type.function.cairo"},"2":{"name":"entity.name.function"}},"contentName":"source.cairo0","end":"}","endCaptures":{"0":{"name":"storage.type.function.cairo"}},"name":"meta.function.cairo","patterns":[{"include":"source.cairo0"}]},{"match":"\\\\b[-+]?[0-9]+\\\\b","name":"constant.numeric.decimal"},{"match":"\\\\b[-+]?0x\\\\h+\\\\b","name":"constant.numeric.hexadecimal"},{"match":"'[^']*'","name":"string.quoted.single"},{"match":"\\"[^\\"]*\\"","name":"string.quoted.double"},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.python"}},"contentName":"source.python","end":"%}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.python"},"1":{"name":"source.python"}},"name":"meta.embedded.block.python","patterns":[{"include":"source.python"}]}],"scopeName":"source.cairo0","embeddedLangs":["python"]}`)),t=[...e,n];export{t as default}; diff --git a/docs/assets/capabilities-BmAOeMOK.js b/docs/assets/capabilities-BmAOeMOK.js new file mode 100644 index 0000000..c64e83d --- /dev/null +++ b/docs/assets/capabilities-BmAOeMOK.js @@ -0,0 +1 @@ +import{d as a}from"./hotkeys-uKX61F1_.js";import{n as l}from"./once-CTiSlR1m.js";function i(n){try{let e=window[n],r="__storage_test__",t="test";if(!e)return!1;e.setItem(r,t);let o=e.getItem(r);return e.removeItem(r),o===t}catch{return!1}}function s(){try{return"download"in document.createElement("a")}catch{return!1}}function d(){let n=window.parent!==window,e={isEmbedded:n,hasLocalStorage:i("localStorage"),hasSessionStorage:i("sessionStorage"),hasClipboard:navigator.clipboard!==void 0,hasDownloads:s(),hasFullscreen:document.fullscreenEnabled!==void 0&&document.fullscreenEnabled,hasMediaDevices:navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getUserMedia=="function"};return n&&(a.log("[iframe] Running in embedded context"),e.hasLocalStorage||a.warn("[iframe] localStorage unavailable - using fallback storage"),e.hasClipboard||a.warn("[iframe] Clipboard API unavailable"),e.hasDownloads||a.warn("[iframe] Download capability may be restricted"),e.hasFullscreen||a.warn("[iframe] Fullscreen API unavailable"),e.hasMediaDevices||a.warn("[iframe] Media devices API unavailable")),e}const c=l(()=>d());export{c as t}; diff --git a/docs/assets/capitalize-DQeWKRGx.js b/docs/assets/capitalize-DQeWKRGx.js new file mode 100644 index 0000000..c0e19fa --- /dev/null +++ b/docs/assets/capitalize-DQeWKRGx.js @@ -0,0 +1 @@ +import{t}from"./toString-DlRqgfqz.js";import{a as o}from"./useLifecycle-CmDXEyIC.js";function a(r){return o(t(r).toLowerCase())}var e=a;export{e as t}; diff --git a/docs/assets/catppuccin-frappe-BkEK3Fpp.js b/docs/assets/catppuccin-frappe-BkEK3Fpp.js new file mode 100644 index 0000000..c285276 --- /dev/null +++ b/docs/assets/catppuccin-frappe-BkEK3Fpp.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBackground":"#00000000","activityBar.activeBorder":"#00000000","activityBar.activeFocusBorder":"#00000000","activityBar.background":"#232634","activityBar.border":"#00000000","activityBar.dropBorder":"#ca9ee633","activityBar.foreground":"#ca9ee6","activityBar.inactiveForeground":"#737994","activityBarBadge.background":"#ca9ee6","activityBarBadge.foreground":"#232634","activityBarTop.activeBorder":"#00000000","activityBarTop.dropBorder":"#ca9ee633","activityBarTop.foreground":"#ca9ee6","activityBarTop.inactiveForeground":"#737994","badge.background":"#51576d","badge.foreground":"#c6d0f5","banner.background":"#51576d","banner.foreground":"#c6d0f5","banner.iconForeground":"#c6d0f5","breadcrumb.activeSelectionForeground":"#ca9ee6","breadcrumb.background":"#303446","breadcrumb.focusForeground":"#ca9ee6","breadcrumb.foreground":"#c6d0f5cc","breadcrumbPicker.background":"#292c3c","button.background":"#ca9ee6","button.border":"#00000000","button.foreground":"#232634","button.hoverBackground":"#d9baed","button.secondaryBackground":"#626880","button.secondaryBorder":"#ca9ee6","button.secondaryForeground":"#c6d0f5","button.secondaryHoverBackground":"#727993","button.separator":"#00000000","charts.blue":"#8caaee","charts.foreground":"#c6d0f5","charts.green":"#a6d189","charts.lines":"#b5bfe2","charts.orange":"#ef9f76","charts.purple":"#ca9ee6","charts.red":"#e78284","charts.yellow":"#e5c890","checkbox.background":"#51576d","checkbox.border":"#00000000","checkbox.foreground":"#ca9ee6","commandCenter.activeBackground":"#62688033","commandCenter.activeBorder":"#ca9ee6","commandCenter.activeForeground":"#ca9ee6","commandCenter.background":"#292c3c","commandCenter.border":"#00000000","commandCenter.foreground":"#b5bfe2","commandCenter.inactiveBorder":"#00000000","commandCenter.inactiveForeground":"#b5bfe2","debugConsole.errorForeground":"#e78284","debugConsole.infoForeground":"#8caaee","debugConsole.sourceForeground":"#f2d5cf","debugConsole.warningForeground":"#ef9f76","debugConsoleInputIcon.foreground":"#c6d0f5","debugExceptionWidget.background":"#232634","debugExceptionWidget.border":"#ca9ee6","debugIcon.breakpointCurrentStackframeForeground":"#626880","debugIcon.breakpointDisabledForeground":"#e7828499","debugIcon.breakpointForeground":"#e78284","debugIcon.breakpointStackframeForeground":"#626880","debugIcon.breakpointUnverifiedForeground":"#a57582","debugIcon.continueForeground":"#a6d189","debugIcon.disconnectForeground":"#626880","debugIcon.pauseForeground":"#8caaee","debugIcon.restartForeground":"#81c8be","debugIcon.startForeground":"#a6d189","debugIcon.stepBackForeground":"#626880","debugIcon.stepIntoForeground":"#c6d0f5","debugIcon.stepOutForeground":"#c6d0f5","debugIcon.stepOverForeground":"#ca9ee6","debugIcon.stopForeground":"#e78284","debugTokenExpression.boolean":"#ca9ee6","debugTokenExpression.error":"#e78284","debugTokenExpression.number":"#ef9f76","debugTokenExpression.string":"#a6d189","debugToolBar.background":"#232634","debugToolBar.border":"#00000000","descriptionForeground":"#c6d0f5","diffEditor.border":"#626880","diffEditor.diagonalFill":"#62688099","diffEditor.insertedLineBackground":"#a6d18926","diffEditor.insertedTextBackground":"#a6d18933","diffEditor.removedLineBackground":"#e7828426","diffEditor.removedTextBackground":"#e7828433","diffEditorOverview.insertedForeground":"#a6d189cc","diffEditorOverview.removedForeground":"#e78284cc","disabledForeground":"#a5adce","dropdown.background":"#292c3c","dropdown.border":"#ca9ee6","dropdown.foreground":"#c6d0f5","dropdown.listBackground":"#626880","editor.background":"#303446","editor.findMatchBackground":"#674b59","editor.findMatchBorder":"#e7828433","editor.findMatchHighlightBackground":"#506373","editor.findMatchHighlightBorder":"#99d1db33","editor.findRangeHighlightBackground":"#506373","editor.findRangeHighlightBorder":"#99d1db33","editor.focusedStackFrameHighlightBackground":"#a6d18926","editor.foldBackground":"#99d1db40","editor.foreground":"#c6d0f5","editor.hoverHighlightBackground":"#99d1db40","editor.lineHighlightBackground":"#c6d0f512","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#99d1db40","editor.rangeHighlightBorder":"#00000000","editor.selectionBackground":"#949cbb40","editor.selectionHighlightBackground":"#949cbb33","editor.selectionHighlightBorder":"#949cbb33","editor.stackFrameHighlightBackground":"#e5c89026","editor.wordHighlightBackground":"#949cbb33","editor.wordHighlightStrongBackground":"#8caaee33","editorBracketHighlight.foreground1":"#e78284","editorBracketHighlight.foreground2":"#ef9f76","editorBracketHighlight.foreground3":"#e5c890","editorBracketHighlight.foreground4":"#a6d189","editorBracketHighlight.foreground5":"#85c1dc","editorBracketHighlight.foreground6":"#ca9ee6","editorBracketHighlight.unexpectedBracket.foreground":"#ea999c","editorBracketMatch.background":"#949cbb1a","editorBracketMatch.border":"#949cbb","editorCodeLens.foreground":"#838ba7","editorCursor.background":"#303446","editorCursor.foreground":"#f2d5cf","editorError.background":"#00000000","editorError.border":"#00000000","editorError.foreground":"#e78284","editorGroup.border":"#626880","editorGroup.dropBackground":"#ca9ee633","editorGroup.emptyBackground":"#303446","editorGroupHeader.tabsBackground":"#232634","editorGutter.addedBackground":"#a6d189","editorGutter.background":"#303446","editorGutter.commentGlyphForeground":"#ca9ee6","editorGutter.commentRangeForeground":"#414559","editorGutter.deletedBackground":"#e78284","editorGutter.foldingControlForeground":"#949cbb","editorGutter.modifiedBackground":"#e5c890","editorHoverWidget.background":"#292c3c","editorHoverWidget.border":"#626880","editorHoverWidget.foreground":"#c6d0f5","editorIndentGuide.activeBackground":"#626880","editorIndentGuide.background":"#51576d","editorInfo.background":"#00000000","editorInfo.border":"#00000000","editorInfo.foreground":"#8caaee","editorInlayHint.background":"#292c3cbf","editorInlayHint.foreground":"#626880","editorInlayHint.parameterBackground":"#292c3cbf","editorInlayHint.parameterForeground":"#a5adce","editorInlayHint.typeBackground":"#292c3cbf","editorInlayHint.typeForeground":"#b5bfe2","editorLightBulb.foreground":"#e5c890","editorLineNumber.activeForeground":"#ca9ee6","editorLineNumber.foreground":"#838ba7","editorLink.activeForeground":"#ca9ee6","editorMarkerNavigation.background":"#292c3c","editorMarkerNavigationError.background":"#e78284","editorMarkerNavigationInfo.background":"#8caaee","editorMarkerNavigationWarning.background":"#ef9f76","editorOverviewRuler.background":"#292c3c","editorOverviewRuler.border":"#c6d0f512","editorOverviewRuler.modifiedForeground":"#e5c890","editorRuler.foreground":"#626880","editorStickyScrollHover.background":"#414559","editorSuggestWidget.background":"#292c3c","editorSuggestWidget.border":"#626880","editorSuggestWidget.foreground":"#c6d0f5","editorSuggestWidget.highlightForeground":"#ca9ee6","editorSuggestWidget.selectedBackground":"#414559","editorWarning.background":"#00000000","editorWarning.border":"#00000000","editorWarning.foreground":"#ef9f76","editorWhitespace.foreground":"#949cbb66","editorWidget.background":"#292c3c","editorWidget.foreground":"#c6d0f5","editorWidget.resizeBorder":"#626880","errorForeground":"#e78284","errorLens.errorBackground":"#e7828426","errorLens.errorBackgroundLight":"#e7828426","errorLens.errorForeground":"#e78284","errorLens.errorForegroundLight":"#e78284","errorLens.errorMessageBackground":"#e7828426","errorLens.hintBackground":"#a6d18926","errorLens.hintBackgroundLight":"#a6d18926","errorLens.hintForeground":"#a6d189","errorLens.hintForegroundLight":"#a6d189","errorLens.hintMessageBackground":"#a6d18926","errorLens.infoBackground":"#8caaee26","errorLens.infoBackgroundLight":"#8caaee26","errorLens.infoForeground":"#8caaee","errorLens.infoForegroundLight":"#8caaee","errorLens.infoMessageBackground":"#8caaee26","errorLens.statusBarErrorForeground":"#e78284","errorLens.statusBarHintForeground":"#a6d189","errorLens.statusBarIconErrorForeground":"#e78284","errorLens.statusBarIconWarningForeground":"#ef9f76","errorLens.statusBarInfoForeground":"#8caaee","errorLens.statusBarWarningForeground":"#ef9f76","errorLens.warningBackground":"#ef9f7626","errorLens.warningBackgroundLight":"#ef9f7626","errorLens.warningForeground":"#ef9f76","errorLens.warningForegroundLight":"#ef9f76","errorLens.warningMessageBackground":"#ef9f7626","extensionBadge.remoteBackground":"#8caaee","extensionBadge.remoteForeground":"#232634","extensionButton.prominentBackground":"#ca9ee6","extensionButton.prominentForeground":"#232634","extensionButton.prominentHoverBackground":"#d9baed","extensionButton.separator":"#303446","extensionIcon.preReleaseForeground":"#626880","extensionIcon.sponsorForeground":"#f4b8e4","extensionIcon.starForeground":"#e5c890","extensionIcon.verifiedForeground":"#a6d189","focusBorder":"#ca9ee6","foreground":"#c6d0f5","gitDecoration.addedResourceForeground":"#a6d189","gitDecoration.conflictingResourceForeground":"#ca9ee6","gitDecoration.deletedResourceForeground":"#e78284","gitDecoration.ignoredResourceForeground":"#737994","gitDecoration.modifiedResourceForeground":"#e5c890","gitDecoration.stageDeletedResourceForeground":"#e78284","gitDecoration.stageModifiedResourceForeground":"#e5c890","gitDecoration.submoduleResourceForeground":"#8caaee","gitDecoration.untrackedResourceForeground":"#a6d189","gitlens.closedAutolinkedIssueIconColor":"#ca9ee6","gitlens.closedPullRequestIconColor":"#e78284","gitlens.decorations.branchAheadForegroundColor":"#a6d189","gitlens.decorations.branchBehindForegroundColor":"#ef9f76","gitlens.decorations.branchDivergedForegroundColor":"#e5c890","gitlens.decorations.branchMissingUpstreamForegroundColor":"#ef9f76","gitlens.decorations.branchUnpublishedForegroundColor":"#a6d189","gitlens.decorations.statusMergingOrRebasingConflictForegroundColor":"#ea999c","gitlens.decorations.statusMergingOrRebasingForegroundColor":"#e5c890","gitlens.decorations.workspaceCurrentForegroundColor":"#ca9ee6","gitlens.decorations.workspaceRepoMissingForegroundColor":"#a5adce","gitlens.decorations.workspaceRepoOpenForegroundColor":"#ca9ee6","gitlens.decorations.worktreeHasUncommittedChangesForegroundColor":"#ef9f76","gitlens.decorations.worktreeMissingForegroundColor":"#ea999c","gitlens.graphChangesColumnAddedColor":"#a6d189","gitlens.graphChangesColumnDeletedColor":"#e78284","gitlens.graphLane10Color":"#f4b8e4","gitlens.graphLane1Color":"#ca9ee6","gitlens.graphLane2Color":"#e5c890","gitlens.graphLane3Color":"#8caaee","gitlens.graphLane4Color":"#eebebe","gitlens.graphLane5Color":"#a6d189","gitlens.graphLane6Color":"#babbf1","gitlens.graphLane7Color":"#f2d5cf","gitlens.graphLane8Color":"#e78284","gitlens.graphLane9Color":"#81c8be","gitlens.graphMinimapMarkerHeadColor":"#a6d189","gitlens.graphMinimapMarkerHighlightsColor":"#e5c890","gitlens.graphMinimapMarkerLocalBranchesColor":"#8caaee","gitlens.graphMinimapMarkerRemoteBranchesColor":"#769aeb","gitlens.graphMinimapMarkerStashesColor":"#ca9ee6","gitlens.graphMinimapMarkerTagsColor":"#eebebe","gitlens.graphMinimapMarkerUpstreamColor":"#98ca77","gitlens.graphScrollMarkerHeadColor":"#a6d189","gitlens.graphScrollMarkerHighlightsColor":"#e5c890","gitlens.graphScrollMarkerLocalBranchesColor":"#8caaee","gitlens.graphScrollMarkerRemoteBranchesColor":"#769aeb","gitlens.graphScrollMarkerStashesColor":"#ca9ee6","gitlens.graphScrollMarkerTagsColor":"#eebebe","gitlens.graphScrollMarkerUpstreamColor":"#98ca77","gitlens.gutterBackgroundColor":"#4145594d","gitlens.gutterForegroundColor":"#c6d0f5","gitlens.gutterUncommittedForegroundColor":"#ca9ee6","gitlens.lineHighlightBackgroundColor":"#ca9ee626","gitlens.lineHighlightOverviewRulerColor":"#ca9ee6cc","gitlens.mergedPullRequestIconColor":"#ca9ee6","gitlens.openAutolinkedIssueIconColor":"#a6d189","gitlens.openPullRequestIconColor":"#a6d189","gitlens.trailingLineBackgroundColor":"#00000000","gitlens.trailingLineForegroundColor":"#c6d0f54d","gitlens.unpublishedChangesIconColor":"#a6d189","gitlens.unpublishedCommitIconColor":"#a6d189","gitlens.unpulledChangesIconColor":"#ef9f76","icon.foreground":"#ca9ee6","input.background":"#414559","input.border":"#00000000","input.foreground":"#c6d0f5","input.placeholderForeground":"#c6d0f573","inputOption.activeBackground":"#626880","inputOption.activeBorder":"#ca9ee6","inputOption.activeForeground":"#c6d0f5","inputValidation.errorBackground":"#e78284","inputValidation.errorBorder":"#23263433","inputValidation.errorForeground":"#232634","inputValidation.infoBackground":"#8caaee","inputValidation.infoBorder":"#23263433","inputValidation.infoForeground":"#232634","inputValidation.warningBackground":"#ef9f76","inputValidation.warningBorder":"#23263433","inputValidation.warningForeground":"#232634","issues.closed":"#ca9ee6","issues.newIssueDecoration":"#f2d5cf","issues.open":"#a6d189","list.activeSelectionBackground":"#414559","list.activeSelectionForeground":"#c6d0f5","list.dropBackground":"#ca9ee633","list.focusAndSelectionBackground":"#51576d","list.focusBackground":"#414559","list.focusForeground":"#c6d0f5","list.focusOutline":"#00000000","list.highlightForeground":"#ca9ee6","list.hoverBackground":"#41455980","list.hoverForeground":"#c6d0f5","list.inactiveSelectionBackground":"#414559","list.inactiveSelectionForeground":"#c6d0f5","list.warningForeground":"#ef9f76","listFilterWidget.background":"#51576d","listFilterWidget.noMatchesOutline":"#e78284","listFilterWidget.outline":"#00000000","menu.background":"#303446","menu.border":"#30344680","menu.foreground":"#c6d0f5","menu.selectionBackground":"#626880","menu.selectionBorder":"#00000000","menu.selectionForeground":"#c6d0f5","menu.separatorBackground":"#626880","menubar.selectionBackground":"#51576d","menubar.selectionForeground":"#c6d0f5","merge.commonContentBackground":"#51576d","merge.commonHeaderBackground":"#626880","merge.currentContentBackground":"#a6d18933","merge.currentHeaderBackground":"#a6d18966","merge.incomingContentBackground":"#8caaee33","merge.incomingHeaderBackground":"#8caaee66","minimap.background":"#292c3c80","minimap.errorHighlight":"#e78284bf","minimap.findMatchHighlight":"#99d1db4d","minimap.selectionHighlight":"#626880bf","minimap.selectionOccurrenceHighlight":"#626880bf","minimap.warningHighlight":"#ef9f76bf","minimapGutter.addedBackground":"#a6d189bf","minimapGutter.deletedBackground":"#e78284bf","minimapGutter.modifiedBackground":"#e5c890bf","minimapSlider.activeBackground":"#ca9ee699","minimapSlider.background":"#ca9ee633","minimapSlider.hoverBackground":"#ca9ee666","notificationCenter.border":"#ca9ee6","notificationCenterHeader.background":"#292c3c","notificationCenterHeader.foreground":"#c6d0f5","notificationLink.foreground":"#8caaee","notificationToast.border":"#ca9ee6","notifications.background":"#292c3c","notifications.border":"#ca9ee6","notifications.foreground":"#c6d0f5","notificationsErrorIcon.foreground":"#e78284","notificationsInfoIcon.foreground":"#8caaee","notificationsWarningIcon.foreground":"#ef9f76","panel.background":"#303446","panel.border":"#626880","panelSection.border":"#626880","panelSection.dropBackground":"#ca9ee633","panelTitle.activeBorder":"#ca9ee6","panelTitle.activeForeground":"#c6d0f5","panelTitle.inactiveForeground":"#a5adce","peekView.border":"#ca9ee6","peekViewEditor.background":"#292c3c","peekViewEditor.matchHighlightBackground":"#99d1db4d","peekViewEditor.matchHighlightBorder":"#00000000","peekViewEditorGutter.background":"#292c3c","peekViewResult.background":"#292c3c","peekViewResult.fileForeground":"#c6d0f5","peekViewResult.lineForeground":"#c6d0f5","peekViewResult.matchHighlightBackground":"#99d1db4d","peekViewResult.selectionBackground":"#414559","peekViewResult.selectionForeground":"#c6d0f5","peekViewTitle.background":"#303446","peekViewTitleDescription.foreground":"#b5bfe2b3","peekViewTitleLabel.foreground":"#c6d0f5","pickerGroup.border":"#ca9ee6","pickerGroup.foreground":"#ca9ee6","problemsErrorIcon.foreground":"#e78284","problemsInfoIcon.foreground":"#8caaee","problemsWarningIcon.foreground":"#ef9f76","progressBar.background":"#ca9ee6","pullRequests.closed":"#e78284","pullRequests.draft":"#949cbb","pullRequests.merged":"#ca9ee6","pullRequests.notification":"#c6d0f5","pullRequests.open":"#a6d189","sash.hoverBorder":"#ca9ee6","scmGraph.foreground1":"#e5c890","scmGraph.foreground2":"#e78284","scmGraph.foreground3":"#a6d189","scmGraph.foreground4":"#ca9ee6","scmGraph.foreground5":"#81c8be","scmGraph.historyItemBaseRefColor":"#ef9f76","scmGraph.historyItemRefColor":"#8caaee","scmGraph.historyItemRemoteRefColor":"#ca9ee6","scrollbar.shadow":"#232634","scrollbarSlider.activeBackground":"#41455966","scrollbarSlider.background":"#62688080","scrollbarSlider.hoverBackground":"#737994","selection.background":"#ca9ee666","settings.dropdownBackground":"#51576d","settings.dropdownListBorder":"#00000000","settings.focusedRowBackground":"#62688033","settings.headerForeground":"#c6d0f5","settings.modifiedItemIndicator":"#ca9ee6","settings.numberInputBackground":"#51576d","settings.numberInputBorder":"#00000000","settings.textInputBackground":"#51576d","settings.textInputBorder":"#00000000","sideBar.background":"#292c3c","sideBar.border":"#00000000","sideBar.dropBackground":"#ca9ee633","sideBar.foreground":"#c6d0f5","sideBarSectionHeader.background":"#292c3c","sideBarSectionHeader.foreground":"#c6d0f5","sideBarTitle.foreground":"#ca9ee6","statusBar.background":"#232634","statusBar.border":"#00000000","statusBar.debuggingBackground":"#ef9f76","statusBar.debuggingBorder":"#00000000","statusBar.debuggingForeground":"#232634","statusBar.foreground":"#c6d0f5","statusBar.noFolderBackground":"#232634","statusBar.noFolderBorder":"#00000000","statusBar.noFolderForeground":"#c6d0f5","statusBarItem.activeBackground":"#62688066","statusBarItem.errorBackground":"#00000000","statusBarItem.errorForeground":"#e78284","statusBarItem.hoverBackground":"#62688033","statusBarItem.prominentBackground":"#00000000","statusBarItem.prominentForeground":"#ca9ee6","statusBarItem.prominentHoverBackground":"#62688033","statusBarItem.remoteBackground":"#8caaee","statusBarItem.remoteForeground":"#232634","statusBarItem.warningBackground":"#00000000","statusBarItem.warningForeground":"#ef9f76","symbolIcon.arrayForeground":"#ef9f76","symbolIcon.booleanForeground":"#ca9ee6","symbolIcon.classForeground":"#e5c890","symbolIcon.colorForeground":"#f4b8e4","symbolIcon.constantForeground":"#ef9f76","symbolIcon.constructorForeground":"#babbf1","symbolIcon.enumeratorForeground":"#e5c890","symbolIcon.enumeratorMemberForeground":"#e5c890","symbolIcon.eventForeground":"#f4b8e4","symbolIcon.fieldForeground":"#c6d0f5","symbolIcon.fileForeground":"#ca9ee6","symbolIcon.folderForeground":"#ca9ee6","symbolIcon.functionForeground":"#8caaee","symbolIcon.interfaceForeground":"#e5c890","symbolIcon.keyForeground":"#81c8be","symbolIcon.keywordForeground":"#ca9ee6","symbolIcon.methodForeground":"#8caaee","symbolIcon.moduleForeground":"#c6d0f5","symbolIcon.namespaceForeground":"#e5c890","symbolIcon.nullForeground":"#ea999c","symbolIcon.numberForeground":"#ef9f76","symbolIcon.objectForeground":"#e5c890","symbolIcon.operatorForeground":"#81c8be","symbolIcon.packageForeground":"#eebebe","symbolIcon.propertyForeground":"#ea999c","symbolIcon.referenceForeground":"#e5c890","symbolIcon.snippetForeground":"#eebebe","symbolIcon.stringForeground":"#a6d189","symbolIcon.structForeground":"#81c8be","symbolIcon.textForeground":"#c6d0f5","symbolIcon.typeParameterForeground":"#ea999c","symbolIcon.unitForeground":"#c6d0f5","symbolIcon.variableForeground":"#c6d0f5","tab.activeBackground":"#303446","tab.activeBorder":"#00000000","tab.activeBorderTop":"#ca9ee6","tab.activeForeground":"#ca9ee6","tab.activeModifiedBorder":"#e5c890","tab.border":"#292c3c","tab.hoverBackground":"#3a3f55","tab.hoverBorder":"#00000000","tab.hoverForeground":"#ca9ee6","tab.inactiveBackground":"#292c3c","tab.inactiveForeground":"#737994","tab.inactiveModifiedBorder":"#e5c8904d","tab.lastPinnedBorder":"#ca9ee6","tab.unfocusedActiveBackground":"#292c3c","tab.unfocusedActiveBorder":"#00000000","tab.unfocusedActiveBorderTop":"#ca9ee64d","tab.unfocusedInactiveBackground":"#1f212d","table.headerBackground":"#414559","table.headerForeground":"#c6d0f5","terminal.ansiBlack":"#51576d","terminal.ansiBlue":"#8caaee","terminal.ansiBrightBlack":"#626880","terminal.ansiBrightBlue":"#7b9ef0","terminal.ansiBrightCyan":"#5abfb5","terminal.ansiBrightGreen":"#8ec772","terminal.ansiBrightMagenta":"#f2a4db","terminal.ansiBrightRed":"#e67172","terminal.ansiBrightWhite":"#b5bfe2","terminal.ansiBrightYellow":"#d9ba73","terminal.ansiCyan":"#81c8be","terminal.ansiGreen":"#a6d189","terminal.ansiMagenta":"#f4b8e4","terminal.ansiRed":"#e78284","terminal.ansiWhite":"#a5adce","terminal.ansiYellow":"#e5c890","terminal.border":"#626880","terminal.dropBackground":"#ca9ee633","terminal.foreground":"#c6d0f5","terminal.inactiveSelectionBackground":"#62688080","terminal.selectionBackground":"#626880","terminal.tab.activeBorder":"#ca9ee6","terminalCommandDecoration.defaultBackground":"#626880","terminalCommandDecoration.errorBackground":"#e78284","terminalCommandDecoration.successBackground":"#a6d189","terminalCursor.background":"#303446","terminalCursor.foreground":"#f2d5cf","testing.coverCountBadgeBackground":"#00000000","testing.coverCountBadgeForeground":"#ca9ee6","testing.coveredBackground":"#a6d1894d","testing.coveredBorder":"#00000000","testing.coveredGutterBackground":"#a6d1894d","testing.iconErrored":"#e78284","testing.iconErrored.retired":"#e78284","testing.iconFailed":"#e78284","testing.iconFailed.retired":"#e78284","testing.iconPassed":"#a6d189","testing.iconPassed.retired":"#a6d189","testing.iconQueued":"#8caaee","testing.iconQueued.retired":"#8caaee","testing.iconSkipped":"#a5adce","testing.iconSkipped.retired":"#a5adce","testing.iconUnset":"#c6d0f5","testing.iconUnset.retired":"#c6d0f5","testing.message.error.lineBackground":"#e7828426","testing.message.info.decorationForeground":"#a6d189cc","testing.message.info.lineBackground":"#a6d18926","testing.messagePeekBorder":"#ca9ee6","testing.messagePeekHeaderBackground":"#626880","testing.peekBorder":"#ca9ee6","testing.peekHeaderBackground":"#626880","testing.runAction":"#ca9ee6","testing.uncoveredBackground":"#e7828433","testing.uncoveredBorder":"#00000000","testing.uncoveredBranchBackground":"#e7828433","testing.uncoveredGutterBackground":"#e7828440","textBlockQuote.background":"#292c3c","textBlockQuote.border":"#232634","textCodeBlock.background":"#292c3c","textLink.activeForeground":"#99d1db","textLink.foreground":"#8caaee","textPreformat.foreground":"#c6d0f5","textSeparator.foreground":"#ca9ee6","titleBar.activeBackground":"#232634","titleBar.activeForeground":"#c6d0f5","titleBar.border":"#00000000","titleBar.inactiveBackground":"#232634","titleBar.inactiveForeground":"#c6d0f580","tree.inactiveIndentGuidesStroke":"#51576d","tree.indentGuidesStroke":"#949cbb","walkThrough.embeddedEditorBackground":"#3034464d","welcomePage.progress.background":"#232634","welcomePage.progress.foreground":"#ca9ee6","welcomePage.tileBackground":"#292c3c","widget.shadow":"#292c3c80","window.activeBorder":"#00000000","window.inactiveBorder":"#00000000"},"displayName":"Catppuccin Frapp\xE9","name":"catppuccin-frappe","semanticHighlighting":true,"semanticTokenColors":{"boolean":{"foreground":"#ef9f76"},"builtinAttribute.attribute.library:rust":{"foreground":"#8caaee"},"class.builtin:python":{"foreground":"#ca9ee6"},"class:python":{"foreground":"#e5c890"},"constant.builtin.readonly:nix":{"foreground":"#ca9ee6"},"enumMember":{"foreground":"#81c8be"},"function.decorator:python":{"foreground":"#ef9f76"},"generic.attribute:rust":{"foreground":"#c6d0f5"},"heading":{"foreground":"#e78284"},"number":{"foreground":"#ef9f76"},"pol":{"foreground":"#eebebe"},"property.readonly:javascript":{"foreground":"#c6d0f5"},"property.readonly:javascriptreact":{"foreground":"#c6d0f5"},"property.readonly:typescript":{"foreground":"#c6d0f5"},"property.readonly:typescriptreact":{"foreground":"#c6d0f5"},"selfKeyword":{"foreground":"#e78284"},"text.emph":{"fontStyle":"italic","foreground":"#e78284"},"text.math":{"foreground":"#eebebe"},"text.strong":{"fontStyle":"bold","foreground":"#e78284"},"tomlArrayKey":{"fontStyle":"","foreground":"#8caaee"},"tomlTableKey":{"fontStyle":"","foreground":"#8caaee"},"type.defaultLibrary:go":{"foreground":"#ca9ee6"},"variable.defaultLibrary":{"foreground":"#ea999c"},"variable.readonly.defaultLibrary:go":{"foreground":"#ca9ee6"},"variable.readonly:javascript":{"foreground":"#c6d0f5"},"variable.readonly:javascriptreact":{"foreground":"#c6d0f5"},"variable.readonly:scala":{"foreground":"#c6d0f5"},"variable.readonly:typescript":{"foreground":"#c6d0f5"},"variable.readonly:typescriptreact":{"foreground":"#c6d0f5"},"variable.typeHint:python":{"foreground":"#e5c890"}},"tokenColors":[{"scope":["text","source","variable.other.readwrite","punctuation.definition.variable"],"settings":{"foreground":"#c6d0f5"}},{"scope":"punctuation","settings":{"fontStyle":"","foreground":"#949cbb"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#949cbb"}},{"scope":["string","punctuation.definition.string"],"settings":{"foreground":"#a6d189"}},{"scope":"constant.character.escape","settings":{"foreground":"#f4b8e4"}},{"scope":["constant.numeric","variable.other.constant","entity.name.constant","constant.language.boolean","constant.language.false","constant.language.true","keyword.other.unit.user-defined","keyword.other.unit.suffix.floating-point"],"settings":{"foreground":"#ef9f76"}},{"scope":["keyword","keyword.operator.word","keyword.operator.new","variable.language.super","support.type.primitive","storage.type","storage.modifier","punctuation.definition.keyword"],"settings":{"fontStyle":"","foreground":"#ca9ee6"}},{"scope":"entity.name.tag.documentation","settings":{"foreground":"#ca9ee6"}},{"scope":["keyword.operator","punctuation.accessor","punctuation.definition.generic","meta.function.closure punctuation.section.parameters","punctuation.definition.tag","punctuation.separator.key-value"],"settings":{"foreground":"#81c8be"}},{"scope":["entity.name.function","meta.function-call.method","support.function","support.function.misc","variable.function"],"settings":{"fontStyle":"italic","foreground":"#8caaee"}},{"scope":["entity.name.class","entity.other.inherited-class","support.class","meta.function-call.constructor","entity.name.struct"],"settings":{"fontStyle":"italic","foreground":"#e5c890"}},{"scope":"entity.name.enum","settings":{"fontStyle":"italic","foreground":"#e5c890"}},{"scope":["meta.enum variable.other.readwrite","variable.other.enummember"],"settings":{"foreground":"#81c8be"}},{"scope":"meta.property.object","settings":{"foreground":"#81c8be"}},{"scope":["meta.type","meta.type-alias","support.type","entity.name.type"],"settings":{"fontStyle":"italic","foreground":"#e5c890"}},{"scope":["meta.annotation variable.function","meta.annotation variable.annotation.function","meta.annotation punctuation.definition.annotation","meta.decorator","punctuation.decorator"],"settings":{"foreground":"#ef9f76"}},{"scope":["variable.parameter","meta.function.parameters"],"settings":{"fontStyle":"italic","foreground":"#ea999c"}},{"scope":["constant.language","support.function.builtin"],"settings":{"foreground":"#e78284"}},{"scope":"entity.other.attribute-name.documentation","settings":{"foreground":"#e78284"}},{"scope":["keyword.control.directive","punctuation.definition.directive"],"settings":{"foreground":"#e5c890"}},{"scope":"punctuation.definition.typeparameters","settings":{"foreground":"#99d1db"}},{"scope":"entity.name.namespace","settings":{"foreground":"#e5c890"}},{"scope":["support.type.property-name.css","support.type.property-name.less"],"settings":{"fontStyle":"","foreground":"#8caaee"}},{"scope":["variable.language.this","variable.language.this punctuation.definition.variable"],"settings":{"foreground":"#e78284"}},{"scope":"variable.object.property","settings":{"foreground":"#c6d0f5"}},{"scope":["string.template variable","string variable"],"settings":{"foreground":"#c6d0f5"}},{"scope":"keyword.operator.new","settings":{"fontStyle":"bold"}},{"scope":"storage.modifier.specifier.extern.cpp","settings":{"foreground":"#ca9ee6"}},{"scope":["entity.name.scope-resolution.template.call.cpp","entity.name.scope-resolution.parameter.cpp","entity.name.scope-resolution.cpp","entity.name.scope-resolution.function.definition.cpp"],"settings":{"foreground":"#e5c890"}},{"scope":"storage.type.class.doxygen","settings":{"fontStyle":""}},{"scope":["storage.modifier.reference.cpp"],"settings":{"foreground":"#81c8be"}},{"scope":"meta.interpolation.cs","settings":{"foreground":"#c6d0f5"}},{"scope":"comment.block.documentation.cs","settings":{"foreground":"#c6d0f5"}},{"scope":["source.css entity.other.attribute-name.class.css","entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css"],"settings":{"foreground":"#e5c890"}},{"scope":"punctuation.separator.operator.css","settings":{"foreground":"#81c8be"}},{"scope":"source.css entity.other.attribute-name.pseudo-class","settings":{"foreground":"#81c8be"}},{"scope":"source.css constant.other.unicode-range","settings":{"foreground":"#ef9f76"}},{"scope":"source.css variable.parameter.url","settings":{"fontStyle":"","foreground":"#a6d189"}},{"scope":["support.type.vendored.property-name"],"settings":{"foreground":"#99d1db"}},{"scope":["source.css meta.property-value variable","source.css meta.property-value variable.other.less","source.css meta.property-value variable.other.less punctuation.definition.variable.less","meta.definition.variable.scss"],"settings":{"foreground":"#ea999c"}},{"scope":["source.css meta.property-list variable","meta.property-list variable.other.less","meta.property-list variable.other.less punctuation.definition.variable.less"],"settings":{"foreground":"#8caaee"}},{"scope":"keyword.other.unit.percentage.css","settings":{"foreground":"#ef9f76"}},{"scope":"source.css meta.attribute-selector","settings":{"foreground":"#a6d189"}},{"scope":["keyword.other.definition.ini","punctuation.support.type.property-name.json","support.type.property-name.json","punctuation.support.type.property-name.toml","support.type.property-name.toml","entity.name.tag.yaml","punctuation.support.type.property-name.yaml","support.type.property-name.yaml"],"settings":{"fontStyle":"","foreground":"#8caaee"}},{"scope":["constant.language.json","constant.language.yaml"],"settings":{"foreground":"#ef9f76"}},{"scope":["entity.name.type.anchor.yaml","variable.other.alias.yaml"],"settings":{"fontStyle":"","foreground":"#e5c890"}},{"scope":["support.type.property-name.table","entity.name.section.group-title.ini"],"settings":{"foreground":"#e5c890"}},{"scope":"constant.other.time.datetime.offset.toml","settings":{"foreground":"#f4b8e4"}},{"scope":["punctuation.definition.anchor.yaml","punctuation.definition.alias.yaml"],"settings":{"foreground":"#f4b8e4"}},{"scope":"entity.other.document.begin.yaml","settings":{"foreground":"#f4b8e4"}},{"scope":"markup.changed.diff","settings":{"foreground":"#ef9f76"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#8caaee"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#a6d189"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#e78284"}},{"scope":["variable.other.env"],"settings":{"foreground":"#8caaee"}},{"scope":["string.quoted variable.other.env"],"settings":{"foreground":"#c6d0f5"}},{"scope":"support.function.builtin.gdscript","settings":{"foreground":"#8caaee"}},{"scope":"constant.language.gdscript","settings":{"foreground":"#ef9f76"}},{"scope":"comment meta.annotation.go","settings":{"foreground":"#ea999c"}},{"scope":"comment meta.annotation.parameters.go","settings":{"foreground":"#ef9f76"}},{"scope":"constant.language.go","settings":{"foreground":"#ef9f76"}},{"scope":"variable.graphql","settings":{"foreground":"#c6d0f5"}},{"scope":"string.unquoted.alias.graphql","settings":{"foreground":"#eebebe"}},{"scope":"constant.character.enum.graphql","settings":{"foreground":"#81c8be"}},{"scope":"meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql","settings":{"foreground":"#eebebe"}},{"scope":["keyword.other.doctype","meta.tag.sgml.doctype punctuation.definition.tag","meta.tag.metadata.doctype entity.name.tag","meta.tag.metadata.doctype punctuation.definition.tag"],"settings":{"foreground":"#ca9ee6"}},{"scope":["entity.name.tag"],"settings":{"fontStyle":"","foreground":"#8caaee"}},{"scope":["text.html constant.character.entity","text.html constant.character.entity punctuation","constant.character.entity.xml","constant.character.entity.xml punctuation","constant.character.entity.js.jsx","constant.charactger.entity.js.jsx punctuation","constant.character.entity.tsx","constant.character.entity.tsx punctuation"],"settings":{"foreground":"#e78284"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#e5c890"}},{"scope":["support.class.component","support.class.component.jsx","support.class.component.tsx","support.class.component.vue"],"settings":{"fontStyle":"","foreground":"#f4b8e4"}},{"scope":["punctuation.definition.annotation","storage.type.annotation"],"settings":{"foreground":"#ef9f76"}},{"scope":"constant.other.enum.java","settings":{"foreground":"#81c8be"}},{"scope":"storage.modifier.import.java","settings":{"foreground":"#c6d0f5"}},{"scope":"comment.block.javadoc.java keyword.other.documentation.javadoc.java","settings":{"fontStyle":""}},{"scope":"meta.export variable.other.readwrite.js","settings":{"foreground":"#ea999c"}},{"scope":["variable.other.constant.js","variable.other.constant.ts","variable.other.property.js","variable.other.property.ts"],"settings":{"foreground":"#c6d0f5"}},{"scope":["variable.other.jsdoc","comment.block.documentation variable.other"],"settings":{"fontStyle":"","foreground":"#ea999c"}},{"scope":"storage.type.class.jsdoc","settings":{"fontStyle":""}},{"scope":"support.type.object.console.js","settings":{"foreground":"#c6d0f5"}},{"scope":["support.constant.node","support.type.object.module.js"],"settings":{"foreground":"#ca9ee6"}},{"scope":"storage.modifier.implements","settings":{"foreground":"#ca9ee6"}},{"scope":["constant.language.null.js","constant.language.null.ts","constant.language.undefined.js","constant.language.undefined.ts","support.type.builtin.ts"],"settings":{"foreground":"#ca9ee6"}},{"scope":"variable.parameter.generic","settings":{"foreground":"#e5c890"}},{"scope":["keyword.declaration.function.arrow.js","storage.type.function.arrow.ts"],"settings":{"foreground":"#81c8be"}},{"scope":"punctuation.decorator.ts","settings":{"fontStyle":"italic","foreground":"#8caaee"}},{"scope":["keyword.operator.expression.in.js","keyword.operator.expression.in.ts","keyword.operator.expression.infer.ts","keyword.operator.expression.instanceof.js","keyword.operator.expression.instanceof.ts","keyword.operator.expression.is","keyword.operator.expression.keyof.ts","keyword.operator.expression.of.js","keyword.operator.expression.of.ts","keyword.operator.expression.typeof.ts"],"settings":{"foreground":"#ca9ee6"}},{"scope":"support.function.macro.julia","settings":{"fontStyle":"italic","foreground":"#81c8be"}},{"scope":"constant.language.julia","settings":{"foreground":"#ef9f76"}},{"scope":"constant.other.symbol.julia","settings":{"foreground":"#ea999c"}},{"scope":"text.tex keyword.control.preamble","settings":{"foreground":"#81c8be"}},{"scope":"text.tex support.function.be","settings":{"foreground":"#99d1db"}},{"scope":"constant.other.general.math.tex","settings":{"foreground":"#eebebe"}},{"scope":"variable.language.liquid","settings":{"foreground":"#f4b8e4"}},{"scope":"comment.line.double-dash.documentation.lua storage.type.annotation.lua","settings":{"fontStyle":"","foreground":"#ca9ee6"}},{"scope":["comment.line.double-dash.documentation.lua entity.name.variable.lua","comment.line.double-dash.documentation.lua variable.lua"],"settings":{"foreground":"#c6d0f5"}},{"scope":["heading.1.markdown punctuation.definition.heading.markdown","heading.1.markdown","heading.1.quarto punctuation.definition.heading.quarto","heading.1.quarto","markup.heading.atx.1.mdx","markup.heading.atx.1.mdx punctuation.definition.heading.mdx","markup.heading.setext.1.markdown","markup.heading.heading-0.asciidoc"],"settings":{"foreground":"#e78284"}},{"scope":["heading.2.markdown punctuation.definition.heading.markdown","heading.2.markdown","heading.2.quarto punctuation.definition.heading.quarto","heading.2.quarto","markup.heading.atx.2.mdx","markup.heading.atx.2.mdx punctuation.definition.heading.mdx","markup.heading.setext.2.markdown","markup.heading.heading-1.asciidoc"],"settings":{"foreground":"#ef9f76"}},{"scope":["heading.3.markdown punctuation.definition.heading.markdown","heading.3.markdown","heading.3.quarto punctuation.definition.heading.quarto","heading.3.quarto","markup.heading.atx.3.mdx","markup.heading.atx.3.mdx punctuation.definition.heading.mdx","markup.heading.heading-2.asciidoc"],"settings":{"foreground":"#e5c890"}},{"scope":["heading.4.markdown punctuation.definition.heading.markdown","heading.4.markdown","heading.4.quarto punctuation.definition.heading.quarto","heading.4.quarto","markup.heading.atx.4.mdx","markup.heading.atx.4.mdx punctuation.definition.heading.mdx","markup.heading.heading-3.asciidoc"],"settings":{"foreground":"#a6d189"}},{"scope":["heading.5.markdown punctuation.definition.heading.markdown","heading.5.markdown","heading.5.quarto punctuation.definition.heading.quarto","heading.5.quarto","markup.heading.atx.5.mdx","markup.heading.atx.5.mdx punctuation.definition.heading.mdx","markup.heading.heading-4.asciidoc"],"settings":{"foreground":"#85c1dc"}},{"scope":["heading.6.markdown punctuation.definition.heading.markdown","heading.6.markdown","heading.6.quarto punctuation.definition.heading.quarto","heading.6.quarto","markup.heading.atx.6.mdx","markup.heading.atx.6.mdx punctuation.definition.heading.mdx","markup.heading.heading-5.asciidoc"],"settings":{"foreground":"#babbf1"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e78284"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e78284"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough","foreground":"#a5adce"}},{"scope":["punctuation.definition.link","markup.underline.link"],"settings":{"foreground":"#8caaee"}},{"scope":["text.html.markdown punctuation.definition.link.title","text.html.quarto punctuation.definition.link.title","string.other.link.title.markdown","string.other.link.title.quarto","markup.link","punctuation.definition.constant.markdown","punctuation.definition.constant.quarto","constant.other.reference.link.markdown","constant.other.reference.link.quarto","markup.substitution.attribute-reference"],"settings":{"foreground":"#babbf1"}},{"scope":["punctuation.definition.raw.markdown","punctuation.definition.raw.quarto","markup.inline.raw.string.markdown","markup.inline.raw.string.quarto","markup.raw.block.markdown","markup.raw.block.quarto"],"settings":{"foreground":"#a6d189"}},{"scope":"fenced_code.block.language","settings":{"foreground":"#99d1db"}},{"scope":["markup.fenced_code.block punctuation.definition","markup.raw support.asciidoc"],"settings":{"foreground":"#949cbb"}},{"scope":["markup.quote","punctuation.definition.quote.begin"],"settings":{"foreground":"#f4b8e4"}},{"scope":"meta.separator.markdown","settings":{"foreground":"#81c8be"}},{"scope":["punctuation.definition.list.begin.markdown","punctuation.definition.list.begin.quarto","markup.list.bullet"],"settings":{"foreground":"#81c8be"}},{"scope":"markup.heading.quarto","settings":{"fontStyle":"bold"}},{"scope":["entity.other.attribute-name.multipart.nix","entity.other.attribute-name.single.nix"],"settings":{"foreground":"#8caaee"}},{"scope":"variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#c6d0f5"}},{"scope":"meta.embedded variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#babbf1"}},{"scope":"string.unquoted.path.nix","settings":{"fontStyle":"","foreground":"#f4b8e4"}},{"scope":["support.attribute.builtin","meta.attribute.php"],"settings":{"foreground":"#e5c890"}},{"scope":"meta.function.parameters.php punctuation.definition.variable.php","settings":{"foreground":"#ea999c"}},{"scope":"constant.language.php","settings":{"foreground":"#ca9ee6"}},{"scope":"text.html.php support.function","settings":{"foreground":"#99d1db"}},{"scope":"keyword.other.phpdoc.php","settings":{"fontStyle":""}},{"scope":["support.variable.magic.python","meta.function-call.arguments.python"],"settings":{"foreground":"#c6d0f5"}},{"scope":["support.function.magic.python"],"settings":{"fontStyle":"italic","foreground":"#99d1db"}},{"scope":["variable.parameter.function.language.special.self.python","variable.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#e78284"}},{"scope":["keyword.control.flow.python","keyword.operator.logical.python"],"settings":{"foreground":"#ca9ee6"}},{"scope":"storage.type.function.python","settings":{"foreground":"#ca9ee6"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#99d1db"}},{"scope":["meta.function-call.python"],"settings":{"foreground":"#8caaee"}},{"scope":["entity.name.function.decorator.python","punctuation.definition.decorator.python"],"settings":{"fontStyle":"italic","foreground":"#ef9f76"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#f4b8e4"}},{"scope":["support.type.exception.python","support.function.builtin.python"],"settings":{"foreground":"#ef9f76"}},{"scope":["support.type.python"],"settings":{"foreground":"#ca9ee6"}},{"scope":"constant.language.python","settings":{"foreground":"#ef9f76"}},{"scope":["meta.indexed-name.python","meta.item-access.python"],"settings":{"fontStyle":"italic","foreground":"#ea999c"}},{"scope":"storage.type.string.python","settings":{"fontStyle":"italic","foreground":"#a6d189"}},{"scope":"meta.function.parameters.python","settings":{"fontStyle":""}},{"scope":"meta.function-call.r","settings":{"foreground":"#8caaee"}},{"scope":"meta.function-call.arguments.r","settings":{"foreground":"#c6d0f5"}},{"scope":["string.regexp punctuation.definition.string.begin","string.regexp punctuation.definition.string.end"],"settings":{"foreground":"#f4b8e4"}},{"scope":"keyword.control.anchor.regexp","settings":{"foreground":"#ca9ee6"}},{"scope":"string.regexp.ts","settings":{"foreground":"#c6d0f5"}},{"scope":["punctuation.definition.group.regexp","keyword.other.back-reference.regexp"],"settings":{"foreground":"#a6d189"}},{"scope":"punctuation.definition.character-class.regexp","settings":{"foreground":"#e5c890"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#f4b8e4"}},{"scope":"constant.other.character-class.range.regexp","settings":{"foreground":"#f2d5cf"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#81c8be"}},{"scope":"constant.character.numeric.regexp","settings":{"foreground":"#ef9f76"}},{"scope":["punctuation.definition.group.no-capture.regexp","meta.assertion.look-ahead.regexp","meta.assertion.negative-look-ahead.regexp"],"settings":{"foreground":"#8caaee"}},{"scope":["meta.annotation.rust","meta.annotation.rust punctuation","meta.attribute.rust","punctuation.definition.attribute.rust"],"settings":{"fontStyle":"italic","foreground":"#e5c890"}},{"scope":["meta.attribute.rust string.quoted.double.rust","meta.attribute.rust string.quoted.single.char.rust"],"settings":{"fontStyle":""}},{"scope":["entity.name.function.macro.rules.rust","storage.type.module.rust","storage.modifier.rust","storage.type.struct.rust","storage.type.enum.rust","storage.type.trait.rust","storage.type.union.rust","storage.type.impl.rust","storage.type.rust","storage.type.function.rust","storage.type.type.rust"],"settings":{"fontStyle":"","foreground":"#ca9ee6"}},{"scope":"entity.name.type.numeric.rust","settings":{"fontStyle":"","foreground":"#ca9ee6"}},{"scope":"meta.generic.rust","settings":{"foreground":"#ef9f76"}},{"scope":"entity.name.impl.rust","settings":{"fontStyle":"italic","foreground":"#e5c890"}},{"scope":"entity.name.module.rust","settings":{"foreground":"#ef9f76"}},{"scope":"entity.name.trait.rust","settings":{"fontStyle":"italic","foreground":"#e5c890"}},{"scope":"storage.type.source.rust","settings":{"foreground":"#e5c890"}},{"scope":"entity.name.union.rust","settings":{"foreground":"#e5c890"}},{"scope":"meta.enum.rust storage.type.source.rust","settings":{"foreground":"#81c8be"}},{"scope":["support.macro.rust","meta.macro.rust support.function.rust","entity.name.function.macro.rust"],"settings":{"fontStyle":"italic","foreground":"#8caaee"}},{"scope":["storage.modifier.lifetime.rust","entity.name.type.lifetime"],"settings":{"fontStyle":"italic","foreground":"#8caaee"}},{"scope":"string.quoted.double.rust constant.other.placeholder.rust","settings":{"foreground":"#f4b8e4"}},{"scope":"meta.function.return-type.rust meta.generic.rust storage.type.rust","settings":{"foreground":"#c6d0f5"}},{"scope":"meta.function.call.rust","settings":{"foreground":"#8caaee"}},{"scope":"punctuation.brackets.angle.rust","settings":{"foreground":"#99d1db"}},{"scope":"constant.other.caps.rust","settings":{"foreground":"#ef9f76"}},{"scope":["meta.function.definition.rust variable.other.rust"],"settings":{"foreground":"#ea999c"}},{"scope":"meta.function.call.rust variable.other.rust","settings":{"foreground":"#c6d0f5"}},{"scope":"variable.language.self.rust","settings":{"foreground":"#e78284"}},{"scope":["variable.other.metavariable.name.rust","meta.macro.metavariable.rust keyword.operator.macro.dollar.rust"],"settings":{"foreground":"#f4b8e4"}},{"scope":["comment.line.shebang","comment.line.shebang punctuation.definition.comment","comment.line.shebang","punctuation.definition.comment.shebang.shell","meta.shebang.shell"],"settings":{"fontStyle":"italic","foreground":"#f4b8e4"}},{"scope":"comment.line.shebang constant.language","settings":{"fontStyle":"italic","foreground":"#81c8be"}},{"scope":["meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation","meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation"],"settings":{"foreground":"#e78284"}},{"scope":"meta.string meta.interpolation.parameter.shell variable.other.readwrite","settings":{"fontStyle":"italic","foreground":"#ef9f76"}},{"scope":["source.shell punctuation.section.interpolation","punctuation.definition.evaluation.backticks.shell"],"settings":{"foreground":"#81c8be"}},{"scope":"entity.name.tag.heredoc.shell","settings":{"foreground":"#ca9ee6"}},{"scope":"string.quoted.double.shell variable.other.normal.shell","settings":{"foreground":"#c6d0f5"}},{"scope":["markup.heading.typst"],"settings":{"foreground":"#e78284"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/catppuccin-latte-DbZ9OhtD.js b/docs/assets/catppuccin-latte-DbZ9OhtD.js new file mode 100644 index 0000000..265e310 --- /dev/null +++ b/docs/assets/catppuccin-latte-DbZ9OhtD.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBackground":"#00000000","activityBar.activeBorder":"#00000000","activityBar.activeFocusBorder":"#00000000","activityBar.background":"#dce0e8","activityBar.border":"#00000000","activityBar.dropBorder":"#8839ef33","activityBar.foreground":"#8839ef","activityBar.inactiveForeground":"#9ca0b0","activityBarBadge.background":"#8839ef","activityBarBadge.foreground":"#dce0e8","activityBarTop.activeBorder":"#00000000","activityBarTop.dropBorder":"#8839ef33","activityBarTop.foreground":"#8839ef","activityBarTop.inactiveForeground":"#9ca0b0","badge.background":"#bcc0cc","badge.foreground":"#4c4f69","banner.background":"#bcc0cc","banner.foreground":"#4c4f69","banner.iconForeground":"#4c4f69","breadcrumb.activeSelectionForeground":"#8839ef","breadcrumb.background":"#eff1f5","breadcrumb.focusForeground":"#8839ef","breadcrumb.foreground":"#4c4f69cc","breadcrumbPicker.background":"#e6e9ef","button.background":"#8839ef","button.border":"#00000000","button.foreground":"#dce0e8","button.hoverBackground":"#9c5af2","button.secondaryBackground":"#acb0be","button.secondaryBorder":"#8839ef","button.secondaryForeground":"#4c4f69","button.secondaryHoverBackground":"#c0c3ce","button.separator":"#00000000","charts.blue":"#1e66f5","charts.foreground":"#4c4f69","charts.green":"#40a02b","charts.lines":"#5c5f77","charts.orange":"#fe640b","charts.purple":"#8839ef","charts.red":"#d20f39","charts.yellow":"#df8e1d","checkbox.background":"#bcc0cc","checkbox.border":"#00000000","checkbox.foreground":"#8839ef","commandCenter.activeBackground":"#acb0be33","commandCenter.activeBorder":"#8839ef","commandCenter.activeForeground":"#8839ef","commandCenter.background":"#e6e9ef","commandCenter.border":"#00000000","commandCenter.foreground":"#5c5f77","commandCenter.inactiveBorder":"#00000000","commandCenter.inactiveForeground":"#5c5f77","debugConsole.errorForeground":"#d20f39","debugConsole.infoForeground":"#1e66f5","debugConsole.sourceForeground":"#dc8a78","debugConsole.warningForeground":"#fe640b","debugConsoleInputIcon.foreground":"#4c4f69","debugExceptionWidget.background":"#dce0e8","debugExceptionWidget.border":"#8839ef","debugIcon.breakpointCurrentStackframeForeground":"#acb0be","debugIcon.breakpointDisabledForeground":"#d20f3999","debugIcon.breakpointForeground":"#d20f39","debugIcon.breakpointStackframeForeground":"#acb0be","debugIcon.breakpointUnverifiedForeground":"#bf607c","debugIcon.continueForeground":"#40a02b","debugIcon.disconnectForeground":"#acb0be","debugIcon.pauseForeground":"#1e66f5","debugIcon.restartForeground":"#179299","debugIcon.startForeground":"#40a02b","debugIcon.stepBackForeground":"#acb0be","debugIcon.stepIntoForeground":"#4c4f69","debugIcon.stepOutForeground":"#4c4f69","debugIcon.stepOverForeground":"#8839ef","debugIcon.stopForeground":"#d20f39","debugTokenExpression.boolean":"#8839ef","debugTokenExpression.error":"#d20f39","debugTokenExpression.number":"#fe640b","debugTokenExpression.string":"#40a02b","debugToolBar.background":"#dce0e8","debugToolBar.border":"#00000000","descriptionForeground":"#4c4f69","diffEditor.border":"#acb0be","diffEditor.diagonalFill":"#acb0be99","diffEditor.insertedLineBackground":"#40a02b26","diffEditor.insertedTextBackground":"#40a02b33","diffEditor.removedLineBackground":"#d20f3926","diffEditor.removedTextBackground":"#d20f3933","diffEditorOverview.insertedForeground":"#40a02bcc","diffEditorOverview.removedForeground":"#d20f39cc","disabledForeground":"#6c6f85","dropdown.background":"#e6e9ef","dropdown.border":"#8839ef","dropdown.foreground":"#4c4f69","dropdown.listBackground":"#acb0be","editor.background":"#eff1f5","editor.findMatchBackground":"#e6adbd","editor.findMatchBorder":"#d20f3933","editor.findMatchHighlightBackground":"#a9daf0","editor.findMatchHighlightBorder":"#04a5e533","editor.findRangeHighlightBackground":"#a9daf0","editor.findRangeHighlightBorder":"#04a5e533","editor.focusedStackFrameHighlightBackground":"#40a02b26","editor.foldBackground":"#04a5e540","editor.foreground":"#4c4f69","editor.hoverHighlightBackground":"#04a5e540","editor.lineHighlightBackground":"#4c4f6912","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#04a5e540","editor.rangeHighlightBorder":"#00000000","editor.selectionBackground":"#7c7f934d","editor.selectionHighlightBackground":"#7c7f9333","editor.selectionHighlightBorder":"#7c7f9333","editor.stackFrameHighlightBackground":"#df8e1d26","editor.wordHighlightBackground":"#7c7f9333","editor.wordHighlightStrongBackground":"#1e66f526","editorBracketHighlight.foreground1":"#d20f39","editorBracketHighlight.foreground2":"#fe640b","editorBracketHighlight.foreground3":"#df8e1d","editorBracketHighlight.foreground4":"#40a02b","editorBracketHighlight.foreground5":"#209fb5","editorBracketHighlight.foreground6":"#8839ef","editorBracketHighlight.unexpectedBracket.foreground":"#e64553","editorBracketMatch.background":"#7c7f931a","editorBracketMatch.border":"#7c7f93","editorCodeLens.foreground":"#8c8fa1","editorCursor.background":"#eff1f5","editorCursor.foreground":"#dc8a78","editorError.background":"#00000000","editorError.border":"#00000000","editorError.foreground":"#d20f39","editorGroup.border":"#acb0be","editorGroup.dropBackground":"#8839ef33","editorGroup.emptyBackground":"#eff1f5","editorGroupHeader.tabsBackground":"#dce0e8","editorGutter.addedBackground":"#40a02b","editorGutter.background":"#eff1f5","editorGutter.commentGlyphForeground":"#8839ef","editorGutter.commentRangeForeground":"#ccd0da","editorGutter.deletedBackground":"#d20f39","editorGutter.foldingControlForeground":"#7c7f93","editorGutter.modifiedBackground":"#df8e1d","editorHoverWidget.background":"#e6e9ef","editorHoverWidget.border":"#acb0be","editorHoverWidget.foreground":"#4c4f69","editorIndentGuide.activeBackground":"#acb0be","editorIndentGuide.background":"#bcc0cc","editorInfo.background":"#00000000","editorInfo.border":"#00000000","editorInfo.foreground":"#1e66f5","editorInlayHint.background":"#e6e9efbf","editorInlayHint.foreground":"#acb0be","editorInlayHint.parameterBackground":"#e6e9efbf","editorInlayHint.parameterForeground":"#6c6f85","editorInlayHint.typeBackground":"#e6e9efbf","editorInlayHint.typeForeground":"#5c5f77","editorLightBulb.foreground":"#df8e1d","editorLineNumber.activeForeground":"#8839ef","editorLineNumber.foreground":"#8c8fa1","editorLink.activeForeground":"#8839ef","editorMarkerNavigation.background":"#e6e9ef","editorMarkerNavigationError.background":"#d20f39","editorMarkerNavigationInfo.background":"#1e66f5","editorMarkerNavigationWarning.background":"#fe640b","editorOverviewRuler.background":"#e6e9ef","editorOverviewRuler.border":"#4c4f6912","editorOverviewRuler.modifiedForeground":"#df8e1d","editorRuler.foreground":"#acb0be","editorStickyScrollHover.background":"#ccd0da","editorSuggestWidget.background":"#e6e9ef","editorSuggestWidget.border":"#acb0be","editorSuggestWidget.foreground":"#4c4f69","editorSuggestWidget.highlightForeground":"#8839ef","editorSuggestWidget.selectedBackground":"#ccd0da","editorWarning.background":"#00000000","editorWarning.border":"#00000000","editorWarning.foreground":"#fe640b","editorWhitespace.foreground":"#7c7f9366","editorWidget.background":"#e6e9ef","editorWidget.foreground":"#4c4f69","editorWidget.resizeBorder":"#acb0be","errorForeground":"#d20f39","errorLens.errorBackground":"#d20f3926","errorLens.errorBackgroundLight":"#d20f3926","errorLens.errorForeground":"#d20f39","errorLens.errorForegroundLight":"#d20f39","errorLens.errorMessageBackground":"#d20f3926","errorLens.hintBackground":"#40a02b26","errorLens.hintBackgroundLight":"#40a02b26","errorLens.hintForeground":"#40a02b","errorLens.hintForegroundLight":"#40a02b","errorLens.hintMessageBackground":"#40a02b26","errorLens.infoBackground":"#1e66f526","errorLens.infoBackgroundLight":"#1e66f526","errorLens.infoForeground":"#1e66f5","errorLens.infoForegroundLight":"#1e66f5","errorLens.infoMessageBackground":"#1e66f526","errorLens.statusBarErrorForeground":"#d20f39","errorLens.statusBarHintForeground":"#40a02b","errorLens.statusBarIconErrorForeground":"#d20f39","errorLens.statusBarIconWarningForeground":"#fe640b","errorLens.statusBarInfoForeground":"#1e66f5","errorLens.statusBarWarningForeground":"#fe640b","errorLens.warningBackground":"#fe640b26","errorLens.warningBackgroundLight":"#fe640b26","errorLens.warningForeground":"#fe640b","errorLens.warningForegroundLight":"#fe640b","errorLens.warningMessageBackground":"#fe640b26","extensionBadge.remoteBackground":"#1e66f5","extensionBadge.remoteForeground":"#dce0e8","extensionButton.prominentBackground":"#8839ef","extensionButton.prominentForeground":"#dce0e8","extensionButton.prominentHoverBackground":"#9c5af2","extensionButton.separator":"#eff1f5","extensionIcon.preReleaseForeground":"#acb0be","extensionIcon.sponsorForeground":"#ea76cb","extensionIcon.starForeground":"#df8e1d","extensionIcon.verifiedForeground":"#40a02b","focusBorder":"#8839ef","foreground":"#4c4f69","gitDecoration.addedResourceForeground":"#40a02b","gitDecoration.conflictingResourceForeground":"#8839ef","gitDecoration.deletedResourceForeground":"#d20f39","gitDecoration.ignoredResourceForeground":"#9ca0b0","gitDecoration.modifiedResourceForeground":"#df8e1d","gitDecoration.stageDeletedResourceForeground":"#d20f39","gitDecoration.stageModifiedResourceForeground":"#df8e1d","gitDecoration.submoduleResourceForeground":"#1e66f5","gitDecoration.untrackedResourceForeground":"#40a02b","gitlens.closedAutolinkedIssueIconColor":"#8839ef","gitlens.closedPullRequestIconColor":"#d20f39","gitlens.decorations.branchAheadForegroundColor":"#40a02b","gitlens.decorations.branchBehindForegroundColor":"#fe640b","gitlens.decorations.branchDivergedForegroundColor":"#df8e1d","gitlens.decorations.branchMissingUpstreamForegroundColor":"#fe640b","gitlens.decorations.branchUnpublishedForegroundColor":"#40a02b","gitlens.decorations.statusMergingOrRebasingConflictForegroundColor":"#e64553","gitlens.decorations.statusMergingOrRebasingForegroundColor":"#df8e1d","gitlens.decorations.workspaceCurrentForegroundColor":"#8839ef","gitlens.decorations.workspaceRepoMissingForegroundColor":"#6c6f85","gitlens.decorations.workspaceRepoOpenForegroundColor":"#8839ef","gitlens.decorations.worktreeHasUncommittedChangesForegroundColor":"#fe640b","gitlens.decorations.worktreeMissingForegroundColor":"#e64553","gitlens.graphChangesColumnAddedColor":"#40a02b","gitlens.graphChangesColumnDeletedColor":"#d20f39","gitlens.graphLane10Color":"#ea76cb","gitlens.graphLane1Color":"#8839ef","gitlens.graphLane2Color":"#df8e1d","gitlens.graphLane3Color":"#1e66f5","gitlens.graphLane4Color":"#dd7878","gitlens.graphLane5Color":"#40a02b","gitlens.graphLane6Color":"#7287fd","gitlens.graphLane7Color":"#dc8a78","gitlens.graphLane8Color":"#d20f39","gitlens.graphLane9Color":"#179299","gitlens.graphMinimapMarkerHeadColor":"#40a02b","gitlens.graphMinimapMarkerHighlightsColor":"#df8e1d","gitlens.graphMinimapMarkerLocalBranchesColor":"#1e66f5","gitlens.graphMinimapMarkerRemoteBranchesColor":"#0b57ef","gitlens.graphMinimapMarkerStashesColor":"#8839ef","gitlens.graphMinimapMarkerTagsColor":"#dd7878","gitlens.graphMinimapMarkerUpstreamColor":"#388c26","gitlens.graphScrollMarkerHeadColor":"#40a02b","gitlens.graphScrollMarkerHighlightsColor":"#df8e1d","gitlens.graphScrollMarkerLocalBranchesColor":"#1e66f5","gitlens.graphScrollMarkerRemoteBranchesColor":"#0b57ef","gitlens.graphScrollMarkerStashesColor":"#8839ef","gitlens.graphScrollMarkerTagsColor":"#dd7878","gitlens.graphScrollMarkerUpstreamColor":"#388c26","gitlens.gutterBackgroundColor":"#ccd0da4d","gitlens.gutterForegroundColor":"#4c4f69","gitlens.gutterUncommittedForegroundColor":"#8839ef","gitlens.lineHighlightBackgroundColor":"#8839ef26","gitlens.lineHighlightOverviewRulerColor":"#8839efcc","gitlens.mergedPullRequestIconColor":"#8839ef","gitlens.openAutolinkedIssueIconColor":"#40a02b","gitlens.openPullRequestIconColor":"#40a02b","gitlens.trailingLineBackgroundColor":"#00000000","gitlens.trailingLineForegroundColor":"#4c4f694d","gitlens.unpublishedChangesIconColor":"#40a02b","gitlens.unpublishedCommitIconColor":"#40a02b","gitlens.unpulledChangesIconColor":"#fe640b","icon.foreground":"#8839ef","input.background":"#ccd0da","input.border":"#00000000","input.foreground":"#4c4f69","input.placeholderForeground":"#4c4f6973","inputOption.activeBackground":"#acb0be","inputOption.activeBorder":"#8839ef","inputOption.activeForeground":"#4c4f69","inputValidation.errorBackground":"#d20f39","inputValidation.errorBorder":"#dce0e833","inputValidation.errorForeground":"#dce0e8","inputValidation.infoBackground":"#1e66f5","inputValidation.infoBorder":"#dce0e833","inputValidation.infoForeground":"#dce0e8","inputValidation.warningBackground":"#fe640b","inputValidation.warningBorder":"#dce0e833","inputValidation.warningForeground":"#dce0e8","issues.closed":"#8839ef","issues.newIssueDecoration":"#dc8a78","issues.open":"#40a02b","list.activeSelectionBackground":"#ccd0da","list.activeSelectionForeground":"#4c4f69","list.dropBackground":"#8839ef33","list.focusAndSelectionBackground":"#bcc0cc","list.focusBackground":"#ccd0da","list.focusForeground":"#4c4f69","list.focusOutline":"#00000000","list.highlightForeground":"#8839ef","list.hoverBackground":"#ccd0da80","list.hoverForeground":"#4c4f69","list.inactiveSelectionBackground":"#ccd0da","list.inactiveSelectionForeground":"#4c4f69","list.warningForeground":"#fe640b","listFilterWidget.background":"#bcc0cc","listFilterWidget.noMatchesOutline":"#d20f39","listFilterWidget.outline":"#00000000","menu.background":"#eff1f5","menu.border":"#eff1f580","menu.foreground":"#4c4f69","menu.selectionBackground":"#acb0be","menu.selectionBorder":"#00000000","menu.selectionForeground":"#4c4f69","menu.separatorBackground":"#acb0be","menubar.selectionBackground":"#bcc0cc","menubar.selectionForeground":"#4c4f69","merge.commonContentBackground":"#bcc0cc","merge.commonHeaderBackground":"#acb0be","merge.currentContentBackground":"#40a02b33","merge.currentHeaderBackground":"#40a02b66","merge.incomingContentBackground":"#1e66f533","merge.incomingHeaderBackground":"#1e66f566","minimap.background":"#e6e9ef80","minimap.errorHighlight":"#d20f39bf","minimap.findMatchHighlight":"#04a5e54d","minimap.selectionHighlight":"#acb0bebf","minimap.selectionOccurrenceHighlight":"#acb0bebf","minimap.warningHighlight":"#fe640bbf","minimapGutter.addedBackground":"#40a02bbf","minimapGutter.deletedBackground":"#d20f39bf","minimapGutter.modifiedBackground":"#df8e1dbf","minimapSlider.activeBackground":"#8839ef99","minimapSlider.background":"#8839ef33","minimapSlider.hoverBackground":"#8839ef66","notificationCenter.border":"#8839ef","notificationCenterHeader.background":"#e6e9ef","notificationCenterHeader.foreground":"#4c4f69","notificationLink.foreground":"#1e66f5","notificationToast.border":"#8839ef","notifications.background":"#e6e9ef","notifications.border":"#8839ef","notifications.foreground":"#4c4f69","notificationsErrorIcon.foreground":"#d20f39","notificationsInfoIcon.foreground":"#1e66f5","notificationsWarningIcon.foreground":"#fe640b","panel.background":"#eff1f5","panel.border":"#acb0be","panelSection.border":"#acb0be","panelSection.dropBackground":"#8839ef33","panelTitle.activeBorder":"#8839ef","panelTitle.activeForeground":"#4c4f69","panelTitle.inactiveForeground":"#6c6f85","peekView.border":"#8839ef","peekViewEditor.background":"#e6e9ef","peekViewEditor.matchHighlightBackground":"#04a5e54d","peekViewEditor.matchHighlightBorder":"#00000000","peekViewEditorGutter.background":"#e6e9ef","peekViewResult.background":"#e6e9ef","peekViewResult.fileForeground":"#4c4f69","peekViewResult.lineForeground":"#4c4f69","peekViewResult.matchHighlightBackground":"#04a5e54d","peekViewResult.selectionBackground":"#ccd0da","peekViewResult.selectionForeground":"#4c4f69","peekViewTitle.background":"#eff1f5","peekViewTitleDescription.foreground":"#5c5f77b3","peekViewTitleLabel.foreground":"#4c4f69","pickerGroup.border":"#8839ef","pickerGroup.foreground":"#8839ef","problemsErrorIcon.foreground":"#d20f39","problemsInfoIcon.foreground":"#1e66f5","problemsWarningIcon.foreground":"#fe640b","progressBar.background":"#8839ef","pullRequests.closed":"#d20f39","pullRequests.draft":"#7c7f93","pullRequests.merged":"#8839ef","pullRequests.notification":"#4c4f69","pullRequests.open":"#40a02b","sash.hoverBorder":"#8839ef","scmGraph.foreground1":"#df8e1d","scmGraph.foreground2":"#d20f39","scmGraph.foreground3":"#40a02b","scmGraph.foreground4":"#8839ef","scmGraph.foreground5":"#179299","scmGraph.historyItemBaseRefColor":"#fe640b","scmGraph.historyItemRefColor":"#1e66f5","scmGraph.historyItemRemoteRefColor":"#8839ef","scrollbar.shadow":"#dce0e8","scrollbarSlider.activeBackground":"#ccd0da66","scrollbarSlider.background":"#acb0be80","scrollbarSlider.hoverBackground":"#9ca0b0","selection.background":"#8839ef66","settings.dropdownBackground":"#bcc0cc","settings.dropdownListBorder":"#00000000","settings.focusedRowBackground":"#acb0be33","settings.headerForeground":"#4c4f69","settings.modifiedItemIndicator":"#8839ef","settings.numberInputBackground":"#bcc0cc","settings.numberInputBorder":"#00000000","settings.textInputBackground":"#bcc0cc","settings.textInputBorder":"#00000000","sideBar.background":"#e6e9ef","sideBar.border":"#00000000","sideBar.dropBackground":"#8839ef33","sideBar.foreground":"#4c4f69","sideBarSectionHeader.background":"#e6e9ef","sideBarSectionHeader.foreground":"#4c4f69","sideBarTitle.foreground":"#8839ef","statusBar.background":"#dce0e8","statusBar.border":"#00000000","statusBar.debuggingBackground":"#fe640b","statusBar.debuggingBorder":"#00000000","statusBar.debuggingForeground":"#dce0e8","statusBar.foreground":"#4c4f69","statusBar.noFolderBackground":"#dce0e8","statusBar.noFolderBorder":"#00000000","statusBar.noFolderForeground":"#4c4f69","statusBarItem.activeBackground":"#acb0be66","statusBarItem.errorBackground":"#00000000","statusBarItem.errorForeground":"#d20f39","statusBarItem.hoverBackground":"#acb0be33","statusBarItem.prominentBackground":"#00000000","statusBarItem.prominentForeground":"#8839ef","statusBarItem.prominentHoverBackground":"#acb0be33","statusBarItem.remoteBackground":"#1e66f5","statusBarItem.remoteForeground":"#dce0e8","statusBarItem.warningBackground":"#00000000","statusBarItem.warningForeground":"#fe640b","symbolIcon.arrayForeground":"#fe640b","symbolIcon.booleanForeground":"#8839ef","symbolIcon.classForeground":"#df8e1d","symbolIcon.colorForeground":"#ea76cb","symbolIcon.constantForeground":"#fe640b","symbolIcon.constructorForeground":"#7287fd","symbolIcon.enumeratorForeground":"#df8e1d","symbolIcon.enumeratorMemberForeground":"#df8e1d","symbolIcon.eventForeground":"#ea76cb","symbolIcon.fieldForeground":"#4c4f69","symbolIcon.fileForeground":"#8839ef","symbolIcon.folderForeground":"#8839ef","symbolIcon.functionForeground":"#1e66f5","symbolIcon.interfaceForeground":"#df8e1d","symbolIcon.keyForeground":"#179299","symbolIcon.keywordForeground":"#8839ef","symbolIcon.methodForeground":"#1e66f5","symbolIcon.moduleForeground":"#4c4f69","symbolIcon.namespaceForeground":"#df8e1d","symbolIcon.nullForeground":"#e64553","symbolIcon.numberForeground":"#fe640b","symbolIcon.objectForeground":"#df8e1d","symbolIcon.operatorForeground":"#179299","symbolIcon.packageForeground":"#dd7878","symbolIcon.propertyForeground":"#e64553","symbolIcon.referenceForeground":"#df8e1d","symbolIcon.snippetForeground":"#dd7878","symbolIcon.stringForeground":"#40a02b","symbolIcon.structForeground":"#179299","symbolIcon.textForeground":"#4c4f69","symbolIcon.typeParameterForeground":"#e64553","symbolIcon.unitForeground":"#4c4f69","symbolIcon.variableForeground":"#4c4f69","tab.activeBackground":"#eff1f5","tab.activeBorder":"#00000000","tab.activeBorderTop":"#8839ef","tab.activeForeground":"#8839ef","tab.activeModifiedBorder":"#df8e1d","tab.border":"#e6e9ef","tab.hoverBackground":"#ffffff","tab.hoverBorder":"#00000000","tab.hoverForeground":"#8839ef","tab.inactiveBackground":"#e6e9ef","tab.inactiveForeground":"#9ca0b0","tab.inactiveModifiedBorder":"#df8e1d4d","tab.lastPinnedBorder":"#8839ef","tab.unfocusedActiveBackground":"#e6e9ef","tab.unfocusedActiveBorder":"#00000000","tab.unfocusedActiveBorderTop":"#8839ef4d","tab.unfocusedInactiveBackground":"#d6dbe5","table.headerBackground":"#ccd0da","table.headerForeground":"#4c4f69","terminal.ansiBlack":"#5c5f77","terminal.ansiBlue":"#1e66f5","terminal.ansiBrightBlack":"#6c6f85","terminal.ansiBrightBlue":"#456eff","terminal.ansiBrightCyan":"#2d9fa8","terminal.ansiBrightGreen":"#49af3d","terminal.ansiBrightMagenta":"#fe85d8","terminal.ansiBrightRed":"#de293e","terminal.ansiBrightWhite":"#bcc0cc","terminal.ansiBrightYellow":"#eea02d","terminal.ansiCyan":"#179299","terminal.ansiGreen":"#40a02b","terminal.ansiMagenta":"#ea76cb","terminal.ansiRed":"#d20f39","terminal.ansiWhite":"#acb0be","terminal.ansiYellow":"#df8e1d","terminal.border":"#acb0be","terminal.dropBackground":"#8839ef33","terminal.foreground":"#4c4f69","terminal.inactiveSelectionBackground":"#acb0be80","terminal.selectionBackground":"#acb0be","terminal.tab.activeBorder":"#8839ef","terminalCommandDecoration.defaultBackground":"#acb0be","terminalCommandDecoration.errorBackground":"#d20f39","terminalCommandDecoration.successBackground":"#40a02b","terminalCursor.background":"#eff1f5","terminalCursor.foreground":"#dc8a78","testing.coverCountBadgeBackground":"#00000000","testing.coverCountBadgeForeground":"#8839ef","testing.coveredBackground":"#40a02b4d","testing.coveredBorder":"#00000000","testing.coveredGutterBackground":"#40a02b4d","testing.iconErrored":"#d20f39","testing.iconErrored.retired":"#d20f39","testing.iconFailed":"#d20f39","testing.iconFailed.retired":"#d20f39","testing.iconPassed":"#40a02b","testing.iconPassed.retired":"#40a02b","testing.iconQueued":"#1e66f5","testing.iconQueued.retired":"#1e66f5","testing.iconSkipped":"#6c6f85","testing.iconSkipped.retired":"#6c6f85","testing.iconUnset":"#4c4f69","testing.iconUnset.retired":"#4c4f69","testing.message.error.lineBackground":"#d20f3926","testing.message.info.decorationForeground":"#40a02bcc","testing.message.info.lineBackground":"#40a02b26","testing.messagePeekBorder":"#8839ef","testing.messagePeekHeaderBackground":"#acb0be","testing.peekBorder":"#8839ef","testing.peekHeaderBackground":"#acb0be","testing.runAction":"#8839ef","testing.uncoveredBackground":"#d20f3933","testing.uncoveredBorder":"#00000000","testing.uncoveredBranchBackground":"#d20f3933","testing.uncoveredGutterBackground":"#d20f3940","textBlockQuote.background":"#e6e9ef","textBlockQuote.border":"#dce0e8","textCodeBlock.background":"#e6e9ef","textLink.activeForeground":"#04a5e5","textLink.foreground":"#1e66f5","textPreformat.foreground":"#4c4f69","textSeparator.foreground":"#8839ef","titleBar.activeBackground":"#dce0e8","titleBar.activeForeground":"#4c4f69","titleBar.border":"#00000000","titleBar.inactiveBackground":"#dce0e8","titleBar.inactiveForeground":"#4c4f6980","tree.inactiveIndentGuidesStroke":"#bcc0cc","tree.indentGuidesStroke":"#7c7f93","walkThrough.embeddedEditorBackground":"#eff1f54d","welcomePage.progress.background":"#dce0e8","welcomePage.progress.foreground":"#8839ef","welcomePage.tileBackground":"#e6e9ef","widget.shadow":"#e6e9ef80","window.activeBorder":"#00000000","window.inactiveBorder":"#00000000"},"displayName":"Catppuccin Latte","name":"catppuccin-latte","semanticHighlighting":true,"semanticTokenColors":{"boolean":{"foreground":"#fe640b"},"builtinAttribute.attribute.library:rust":{"foreground":"#1e66f5"},"class.builtin:python":{"foreground":"#8839ef"},"class:python":{"foreground":"#df8e1d"},"constant.builtin.readonly:nix":{"foreground":"#8839ef"},"enumMember":{"foreground":"#179299"},"function.decorator:python":{"foreground":"#fe640b"},"generic.attribute:rust":{"foreground":"#4c4f69"},"heading":{"foreground":"#d20f39"},"number":{"foreground":"#fe640b"},"pol":{"foreground":"#dd7878"},"property.readonly:javascript":{"foreground":"#4c4f69"},"property.readonly:javascriptreact":{"foreground":"#4c4f69"},"property.readonly:typescript":{"foreground":"#4c4f69"},"property.readonly:typescriptreact":{"foreground":"#4c4f69"},"selfKeyword":{"foreground":"#d20f39"},"text.emph":{"fontStyle":"italic","foreground":"#d20f39"},"text.math":{"foreground":"#dd7878"},"text.strong":{"fontStyle":"bold","foreground":"#d20f39"},"tomlArrayKey":{"fontStyle":"","foreground":"#1e66f5"},"tomlTableKey":{"fontStyle":"","foreground":"#1e66f5"},"type.defaultLibrary:go":{"foreground":"#8839ef"},"variable.defaultLibrary":{"foreground":"#e64553"},"variable.readonly.defaultLibrary:go":{"foreground":"#8839ef"},"variable.readonly:javascript":{"foreground":"#4c4f69"},"variable.readonly:javascriptreact":{"foreground":"#4c4f69"},"variable.readonly:scala":{"foreground":"#4c4f69"},"variable.readonly:typescript":{"foreground":"#4c4f69"},"variable.readonly:typescriptreact":{"foreground":"#4c4f69"},"variable.typeHint:python":{"foreground":"#df8e1d"}},"tokenColors":[{"scope":["text","source","variable.other.readwrite","punctuation.definition.variable"],"settings":{"foreground":"#4c4f69"}},{"scope":"punctuation","settings":{"fontStyle":"","foreground":"#7c7f93"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#7c7f93"}},{"scope":["string","punctuation.definition.string"],"settings":{"foreground":"#40a02b"}},{"scope":"constant.character.escape","settings":{"foreground":"#ea76cb"}},{"scope":["constant.numeric","variable.other.constant","entity.name.constant","constant.language.boolean","constant.language.false","constant.language.true","keyword.other.unit.user-defined","keyword.other.unit.suffix.floating-point"],"settings":{"foreground":"#fe640b"}},{"scope":["keyword","keyword.operator.word","keyword.operator.new","variable.language.super","support.type.primitive","storage.type","storage.modifier","punctuation.definition.keyword"],"settings":{"fontStyle":"","foreground":"#8839ef"}},{"scope":"entity.name.tag.documentation","settings":{"foreground":"#8839ef"}},{"scope":["keyword.operator","punctuation.accessor","punctuation.definition.generic","meta.function.closure punctuation.section.parameters","punctuation.definition.tag","punctuation.separator.key-value"],"settings":{"foreground":"#179299"}},{"scope":["entity.name.function","meta.function-call.method","support.function","support.function.misc","variable.function"],"settings":{"fontStyle":"italic","foreground":"#1e66f5"}},{"scope":["entity.name.class","entity.other.inherited-class","support.class","meta.function-call.constructor","entity.name.struct"],"settings":{"fontStyle":"italic","foreground":"#df8e1d"}},{"scope":"entity.name.enum","settings":{"fontStyle":"italic","foreground":"#df8e1d"}},{"scope":["meta.enum variable.other.readwrite","variable.other.enummember"],"settings":{"foreground":"#179299"}},{"scope":"meta.property.object","settings":{"foreground":"#179299"}},{"scope":["meta.type","meta.type-alias","support.type","entity.name.type"],"settings":{"fontStyle":"italic","foreground":"#df8e1d"}},{"scope":["meta.annotation variable.function","meta.annotation variable.annotation.function","meta.annotation punctuation.definition.annotation","meta.decorator","punctuation.decorator"],"settings":{"foreground":"#fe640b"}},{"scope":["variable.parameter","meta.function.parameters"],"settings":{"fontStyle":"italic","foreground":"#e64553"}},{"scope":["constant.language","support.function.builtin"],"settings":{"foreground":"#d20f39"}},{"scope":"entity.other.attribute-name.documentation","settings":{"foreground":"#d20f39"}},{"scope":["keyword.control.directive","punctuation.definition.directive"],"settings":{"foreground":"#df8e1d"}},{"scope":"punctuation.definition.typeparameters","settings":{"foreground":"#04a5e5"}},{"scope":"entity.name.namespace","settings":{"foreground":"#df8e1d"}},{"scope":["support.type.property-name.css","support.type.property-name.less"],"settings":{"fontStyle":"","foreground":"#1e66f5"}},{"scope":["variable.language.this","variable.language.this punctuation.definition.variable"],"settings":{"foreground":"#d20f39"}},{"scope":"variable.object.property","settings":{"foreground":"#4c4f69"}},{"scope":["string.template variable","string variable"],"settings":{"foreground":"#4c4f69"}},{"scope":"keyword.operator.new","settings":{"fontStyle":"bold"}},{"scope":"storage.modifier.specifier.extern.cpp","settings":{"foreground":"#8839ef"}},{"scope":["entity.name.scope-resolution.template.call.cpp","entity.name.scope-resolution.parameter.cpp","entity.name.scope-resolution.cpp","entity.name.scope-resolution.function.definition.cpp"],"settings":{"foreground":"#df8e1d"}},{"scope":"storage.type.class.doxygen","settings":{"fontStyle":""}},{"scope":["storage.modifier.reference.cpp"],"settings":{"foreground":"#179299"}},{"scope":"meta.interpolation.cs","settings":{"foreground":"#4c4f69"}},{"scope":"comment.block.documentation.cs","settings":{"foreground":"#4c4f69"}},{"scope":["source.css entity.other.attribute-name.class.css","entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css"],"settings":{"foreground":"#df8e1d"}},{"scope":"punctuation.separator.operator.css","settings":{"foreground":"#179299"}},{"scope":"source.css entity.other.attribute-name.pseudo-class","settings":{"foreground":"#179299"}},{"scope":"source.css constant.other.unicode-range","settings":{"foreground":"#fe640b"}},{"scope":"source.css variable.parameter.url","settings":{"fontStyle":"","foreground":"#40a02b"}},{"scope":["support.type.vendored.property-name"],"settings":{"foreground":"#04a5e5"}},{"scope":["source.css meta.property-value variable","source.css meta.property-value variable.other.less","source.css meta.property-value variable.other.less punctuation.definition.variable.less","meta.definition.variable.scss"],"settings":{"foreground":"#e64553"}},{"scope":["source.css meta.property-list variable","meta.property-list variable.other.less","meta.property-list variable.other.less punctuation.definition.variable.less"],"settings":{"foreground":"#1e66f5"}},{"scope":"keyword.other.unit.percentage.css","settings":{"foreground":"#fe640b"}},{"scope":"source.css meta.attribute-selector","settings":{"foreground":"#40a02b"}},{"scope":["keyword.other.definition.ini","punctuation.support.type.property-name.json","support.type.property-name.json","punctuation.support.type.property-name.toml","support.type.property-name.toml","entity.name.tag.yaml","punctuation.support.type.property-name.yaml","support.type.property-name.yaml"],"settings":{"fontStyle":"","foreground":"#1e66f5"}},{"scope":["constant.language.json","constant.language.yaml"],"settings":{"foreground":"#fe640b"}},{"scope":["entity.name.type.anchor.yaml","variable.other.alias.yaml"],"settings":{"fontStyle":"","foreground":"#df8e1d"}},{"scope":["support.type.property-name.table","entity.name.section.group-title.ini"],"settings":{"foreground":"#df8e1d"}},{"scope":"constant.other.time.datetime.offset.toml","settings":{"foreground":"#ea76cb"}},{"scope":["punctuation.definition.anchor.yaml","punctuation.definition.alias.yaml"],"settings":{"foreground":"#ea76cb"}},{"scope":"entity.other.document.begin.yaml","settings":{"foreground":"#ea76cb"}},{"scope":"markup.changed.diff","settings":{"foreground":"#fe640b"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#1e66f5"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#40a02b"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#d20f39"}},{"scope":["variable.other.env"],"settings":{"foreground":"#1e66f5"}},{"scope":["string.quoted variable.other.env"],"settings":{"foreground":"#4c4f69"}},{"scope":"support.function.builtin.gdscript","settings":{"foreground":"#1e66f5"}},{"scope":"constant.language.gdscript","settings":{"foreground":"#fe640b"}},{"scope":"comment meta.annotation.go","settings":{"foreground":"#e64553"}},{"scope":"comment meta.annotation.parameters.go","settings":{"foreground":"#fe640b"}},{"scope":"constant.language.go","settings":{"foreground":"#fe640b"}},{"scope":"variable.graphql","settings":{"foreground":"#4c4f69"}},{"scope":"string.unquoted.alias.graphql","settings":{"foreground":"#dd7878"}},{"scope":"constant.character.enum.graphql","settings":{"foreground":"#179299"}},{"scope":"meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql","settings":{"foreground":"#dd7878"}},{"scope":["keyword.other.doctype","meta.tag.sgml.doctype punctuation.definition.tag","meta.tag.metadata.doctype entity.name.tag","meta.tag.metadata.doctype punctuation.definition.tag"],"settings":{"foreground":"#8839ef"}},{"scope":["entity.name.tag"],"settings":{"fontStyle":"","foreground":"#1e66f5"}},{"scope":["text.html constant.character.entity","text.html constant.character.entity punctuation","constant.character.entity.xml","constant.character.entity.xml punctuation","constant.character.entity.js.jsx","constant.charactger.entity.js.jsx punctuation","constant.character.entity.tsx","constant.character.entity.tsx punctuation"],"settings":{"foreground":"#d20f39"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#df8e1d"}},{"scope":["support.class.component","support.class.component.jsx","support.class.component.tsx","support.class.component.vue"],"settings":{"fontStyle":"","foreground":"#ea76cb"}},{"scope":["punctuation.definition.annotation","storage.type.annotation"],"settings":{"foreground":"#fe640b"}},{"scope":"constant.other.enum.java","settings":{"foreground":"#179299"}},{"scope":"storage.modifier.import.java","settings":{"foreground":"#4c4f69"}},{"scope":"comment.block.javadoc.java keyword.other.documentation.javadoc.java","settings":{"fontStyle":""}},{"scope":"meta.export variable.other.readwrite.js","settings":{"foreground":"#e64553"}},{"scope":["variable.other.constant.js","variable.other.constant.ts","variable.other.property.js","variable.other.property.ts"],"settings":{"foreground":"#4c4f69"}},{"scope":["variable.other.jsdoc","comment.block.documentation variable.other"],"settings":{"fontStyle":"","foreground":"#e64553"}},{"scope":"storage.type.class.jsdoc","settings":{"fontStyle":""}},{"scope":"support.type.object.console.js","settings":{"foreground":"#4c4f69"}},{"scope":["support.constant.node","support.type.object.module.js"],"settings":{"foreground":"#8839ef"}},{"scope":"storage.modifier.implements","settings":{"foreground":"#8839ef"}},{"scope":["constant.language.null.js","constant.language.null.ts","constant.language.undefined.js","constant.language.undefined.ts","support.type.builtin.ts"],"settings":{"foreground":"#8839ef"}},{"scope":"variable.parameter.generic","settings":{"foreground":"#df8e1d"}},{"scope":["keyword.declaration.function.arrow.js","storage.type.function.arrow.ts"],"settings":{"foreground":"#179299"}},{"scope":"punctuation.decorator.ts","settings":{"fontStyle":"italic","foreground":"#1e66f5"}},{"scope":["keyword.operator.expression.in.js","keyword.operator.expression.in.ts","keyword.operator.expression.infer.ts","keyword.operator.expression.instanceof.js","keyword.operator.expression.instanceof.ts","keyword.operator.expression.is","keyword.operator.expression.keyof.ts","keyword.operator.expression.of.js","keyword.operator.expression.of.ts","keyword.operator.expression.typeof.ts"],"settings":{"foreground":"#8839ef"}},{"scope":"support.function.macro.julia","settings":{"fontStyle":"italic","foreground":"#179299"}},{"scope":"constant.language.julia","settings":{"foreground":"#fe640b"}},{"scope":"constant.other.symbol.julia","settings":{"foreground":"#e64553"}},{"scope":"text.tex keyword.control.preamble","settings":{"foreground":"#179299"}},{"scope":"text.tex support.function.be","settings":{"foreground":"#04a5e5"}},{"scope":"constant.other.general.math.tex","settings":{"foreground":"#dd7878"}},{"scope":"variable.language.liquid","settings":{"foreground":"#ea76cb"}},{"scope":"comment.line.double-dash.documentation.lua storage.type.annotation.lua","settings":{"fontStyle":"","foreground":"#8839ef"}},{"scope":["comment.line.double-dash.documentation.lua entity.name.variable.lua","comment.line.double-dash.documentation.lua variable.lua"],"settings":{"foreground":"#4c4f69"}},{"scope":["heading.1.markdown punctuation.definition.heading.markdown","heading.1.markdown","heading.1.quarto punctuation.definition.heading.quarto","heading.1.quarto","markup.heading.atx.1.mdx","markup.heading.atx.1.mdx punctuation.definition.heading.mdx","markup.heading.setext.1.markdown","markup.heading.heading-0.asciidoc"],"settings":{"foreground":"#d20f39"}},{"scope":["heading.2.markdown punctuation.definition.heading.markdown","heading.2.markdown","heading.2.quarto punctuation.definition.heading.quarto","heading.2.quarto","markup.heading.atx.2.mdx","markup.heading.atx.2.mdx punctuation.definition.heading.mdx","markup.heading.setext.2.markdown","markup.heading.heading-1.asciidoc"],"settings":{"foreground":"#fe640b"}},{"scope":["heading.3.markdown punctuation.definition.heading.markdown","heading.3.markdown","heading.3.quarto punctuation.definition.heading.quarto","heading.3.quarto","markup.heading.atx.3.mdx","markup.heading.atx.3.mdx punctuation.definition.heading.mdx","markup.heading.heading-2.asciidoc"],"settings":{"foreground":"#df8e1d"}},{"scope":["heading.4.markdown punctuation.definition.heading.markdown","heading.4.markdown","heading.4.quarto punctuation.definition.heading.quarto","heading.4.quarto","markup.heading.atx.4.mdx","markup.heading.atx.4.mdx punctuation.definition.heading.mdx","markup.heading.heading-3.asciidoc"],"settings":{"foreground":"#40a02b"}},{"scope":["heading.5.markdown punctuation.definition.heading.markdown","heading.5.markdown","heading.5.quarto punctuation.definition.heading.quarto","heading.5.quarto","markup.heading.atx.5.mdx","markup.heading.atx.5.mdx punctuation.definition.heading.mdx","markup.heading.heading-4.asciidoc"],"settings":{"foreground":"#209fb5"}},{"scope":["heading.6.markdown punctuation.definition.heading.markdown","heading.6.markdown","heading.6.quarto punctuation.definition.heading.quarto","heading.6.quarto","markup.heading.atx.6.mdx","markup.heading.atx.6.mdx punctuation.definition.heading.mdx","markup.heading.heading-5.asciidoc"],"settings":{"foreground":"#7287fd"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#d20f39"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#d20f39"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough","foreground":"#6c6f85"}},{"scope":["punctuation.definition.link","markup.underline.link"],"settings":{"foreground":"#1e66f5"}},{"scope":["text.html.markdown punctuation.definition.link.title","text.html.quarto punctuation.definition.link.title","string.other.link.title.markdown","string.other.link.title.quarto","markup.link","punctuation.definition.constant.markdown","punctuation.definition.constant.quarto","constant.other.reference.link.markdown","constant.other.reference.link.quarto","markup.substitution.attribute-reference"],"settings":{"foreground":"#7287fd"}},{"scope":["punctuation.definition.raw.markdown","punctuation.definition.raw.quarto","markup.inline.raw.string.markdown","markup.inline.raw.string.quarto","markup.raw.block.markdown","markup.raw.block.quarto"],"settings":{"foreground":"#40a02b"}},{"scope":"fenced_code.block.language","settings":{"foreground":"#04a5e5"}},{"scope":["markup.fenced_code.block punctuation.definition","markup.raw support.asciidoc"],"settings":{"foreground":"#7c7f93"}},{"scope":["markup.quote","punctuation.definition.quote.begin"],"settings":{"foreground":"#ea76cb"}},{"scope":"meta.separator.markdown","settings":{"foreground":"#179299"}},{"scope":["punctuation.definition.list.begin.markdown","punctuation.definition.list.begin.quarto","markup.list.bullet"],"settings":{"foreground":"#179299"}},{"scope":"markup.heading.quarto","settings":{"fontStyle":"bold"}},{"scope":["entity.other.attribute-name.multipart.nix","entity.other.attribute-name.single.nix"],"settings":{"foreground":"#1e66f5"}},{"scope":"variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#4c4f69"}},{"scope":"meta.embedded variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#7287fd"}},{"scope":"string.unquoted.path.nix","settings":{"fontStyle":"","foreground":"#ea76cb"}},{"scope":["support.attribute.builtin","meta.attribute.php"],"settings":{"foreground":"#df8e1d"}},{"scope":"meta.function.parameters.php punctuation.definition.variable.php","settings":{"foreground":"#e64553"}},{"scope":"constant.language.php","settings":{"foreground":"#8839ef"}},{"scope":"text.html.php support.function","settings":{"foreground":"#04a5e5"}},{"scope":"keyword.other.phpdoc.php","settings":{"fontStyle":""}},{"scope":["support.variable.magic.python","meta.function-call.arguments.python"],"settings":{"foreground":"#4c4f69"}},{"scope":["support.function.magic.python"],"settings":{"fontStyle":"italic","foreground":"#04a5e5"}},{"scope":["variable.parameter.function.language.special.self.python","variable.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#d20f39"}},{"scope":["keyword.control.flow.python","keyword.operator.logical.python"],"settings":{"foreground":"#8839ef"}},{"scope":"storage.type.function.python","settings":{"foreground":"#8839ef"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#04a5e5"}},{"scope":["meta.function-call.python"],"settings":{"foreground":"#1e66f5"}},{"scope":["entity.name.function.decorator.python","punctuation.definition.decorator.python"],"settings":{"fontStyle":"italic","foreground":"#fe640b"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#ea76cb"}},{"scope":["support.type.exception.python","support.function.builtin.python"],"settings":{"foreground":"#fe640b"}},{"scope":["support.type.python"],"settings":{"foreground":"#8839ef"}},{"scope":"constant.language.python","settings":{"foreground":"#fe640b"}},{"scope":["meta.indexed-name.python","meta.item-access.python"],"settings":{"fontStyle":"italic","foreground":"#e64553"}},{"scope":"storage.type.string.python","settings":{"fontStyle":"italic","foreground":"#40a02b"}},{"scope":"meta.function.parameters.python","settings":{"fontStyle":""}},{"scope":"meta.function-call.r","settings":{"foreground":"#1e66f5"}},{"scope":"meta.function-call.arguments.r","settings":{"foreground":"#4c4f69"}},{"scope":["string.regexp punctuation.definition.string.begin","string.regexp punctuation.definition.string.end"],"settings":{"foreground":"#ea76cb"}},{"scope":"keyword.control.anchor.regexp","settings":{"foreground":"#8839ef"}},{"scope":"string.regexp.ts","settings":{"foreground":"#4c4f69"}},{"scope":["punctuation.definition.group.regexp","keyword.other.back-reference.regexp"],"settings":{"foreground":"#40a02b"}},{"scope":"punctuation.definition.character-class.regexp","settings":{"foreground":"#df8e1d"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#ea76cb"}},{"scope":"constant.other.character-class.range.regexp","settings":{"foreground":"#dc8a78"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#179299"}},{"scope":"constant.character.numeric.regexp","settings":{"foreground":"#fe640b"}},{"scope":["punctuation.definition.group.no-capture.regexp","meta.assertion.look-ahead.regexp","meta.assertion.negative-look-ahead.regexp"],"settings":{"foreground":"#1e66f5"}},{"scope":["meta.annotation.rust","meta.annotation.rust punctuation","meta.attribute.rust","punctuation.definition.attribute.rust"],"settings":{"fontStyle":"italic","foreground":"#df8e1d"}},{"scope":["meta.attribute.rust string.quoted.double.rust","meta.attribute.rust string.quoted.single.char.rust"],"settings":{"fontStyle":""}},{"scope":["entity.name.function.macro.rules.rust","storage.type.module.rust","storage.modifier.rust","storage.type.struct.rust","storage.type.enum.rust","storage.type.trait.rust","storage.type.union.rust","storage.type.impl.rust","storage.type.rust","storage.type.function.rust","storage.type.type.rust"],"settings":{"fontStyle":"","foreground":"#8839ef"}},{"scope":"entity.name.type.numeric.rust","settings":{"fontStyle":"","foreground":"#8839ef"}},{"scope":"meta.generic.rust","settings":{"foreground":"#fe640b"}},{"scope":"entity.name.impl.rust","settings":{"fontStyle":"italic","foreground":"#df8e1d"}},{"scope":"entity.name.module.rust","settings":{"foreground":"#fe640b"}},{"scope":"entity.name.trait.rust","settings":{"fontStyle":"italic","foreground":"#df8e1d"}},{"scope":"storage.type.source.rust","settings":{"foreground":"#df8e1d"}},{"scope":"entity.name.union.rust","settings":{"foreground":"#df8e1d"}},{"scope":"meta.enum.rust storage.type.source.rust","settings":{"foreground":"#179299"}},{"scope":["support.macro.rust","meta.macro.rust support.function.rust","entity.name.function.macro.rust"],"settings":{"fontStyle":"italic","foreground":"#1e66f5"}},{"scope":["storage.modifier.lifetime.rust","entity.name.type.lifetime"],"settings":{"fontStyle":"italic","foreground":"#1e66f5"}},{"scope":"string.quoted.double.rust constant.other.placeholder.rust","settings":{"foreground":"#ea76cb"}},{"scope":"meta.function.return-type.rust meta.generic.rust storage.type.rust","settings":{"foreground":"#4c4f69"}},{"scope":"meta.function.call.rust","settings":{"foreground":"#1e66f5"}},{"scope":"punctuation.brackets.angle.rust","settings":{"foreground":"#04a5e5"}},{"scope":"constant.other.caps.rust","settings":{"foreground":"#fe640b"}},{"scope":["meta.function.definition.rust variable.other.rust"],"settings":{"foreground":"#e64553"}},{"scope":"meta.function.call.rust variable.other.rust","settings":{"foreground":"#4c4f69"}},{"scope":"variable.language.self.rust","settings":{"foreground":"#d20f39"}},{"scope":["variable.other.metavariable.name.rust","meta.macro.metavariable.rust keyword.operator.macro.dollar.rust"],"settings":{"foreground":"#ea76cb"}},{"scope":["comment.line.shebang","comment.line.shebang punctuation.definition.comment","comment.line.shebang","punctuation.definition.comment.shebang.shell","meta.shebang.shell"],"settings":{"fontStyle":"italic","foreground":"#ea76cb"}},{"scope":"comment.line.shebang constant.language","settings":{"fontStyle":"italic","foreground":"#179299"}},{"scope":["meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation","meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation"],"settings":{"foreground":"#d20f39"}},{"scope":"meta.string meta.interpolation.parameter.shell variable.other.readwrite","settings":{"fontStyle":"italic","foreground":"#fe640b"}},{"scope":["source.shell punctuation.section.interpolation","punctuation.definition.evaluation.backticks.shell"],"settings":{"foreground":"#179299"}},{"scope":"entity.name.tag.heredoc.shell","settings":{"foreground":"#8839ef"}},{"scope":"string.quoted.double.shell variable.other.normal.shell","settings":{"foreground":"#4c4f69"}},{"scope":["markup.heading.typst"],"settings":{"foreground":"#d20f39"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/catppuccin-macchiato-DNSQGnoS.js b/docs/assets/catppuccin-macchiato-DNSQGnoS.js new file mode 100644 index 0000000..b3e7169 --- /dev/null +++ b/docs/assets/catppuccin-macchiato-DNSQGnoS.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBackground":"#00000000","activityBar.activeBorder":"#00000000","activityBar.activeFocusBorder":"#00000000","activityBar.background":"#181926","activityBar.border":"#00000000","activityBar.dropBorder":"#c6a0f633","activityBar.foreground":"#c6a0f6","activityBar.inactiveForeground":"#6e738d","activityBarBadge.background":"#c6a0f6","activityBarBadge.foreground":"#181926","activityBarTop.activeBorder":"#00000000","activityBarTop.dropBorder":"#c6a0f633","activityBarTop.foreground":"#c6a0f6","activityBarTop.inactiveForeground":"#6e738d","badge.background":"#494d64","badge.foreground":"#cad3f5","banner.background":"#494d64","banner.foreground":"#cad3f5","banner.iconForeground":"#cad3f5","breadcrumb.activeSelectionForeground":"#c6a0f6","breadcrumb.background":"#24273a","breadcrumb.focusForeground":"#c6a0f6","breadcrumb.foreground":"#cad3f5cc","breadcrumbPicker.background":"#1e2030","button.background":"#c6a0f6","button.border":"#00000000","button.foreground":"#181926","button.hoverBackground":"#dac1f9","button.secondaryBackground":"#5b6078","button.secondaryBorder":"#c6a0f6","button.secondaryForeground":"#cad3f5","button.secondaryHoverBackground":"#6a708c","button.separator":"#00000000","charts.blue":"#8aadf4","charts.foreground":"#cad3f5","charts.green":"#a6da95","charts.lines":"#b8c0e0","charts.orange":"#f5a97f","charts.purple":"#c6a0f6","charts.red":"#ed8796","charts.yellow":"#eed49f","checkbox.background":"#494d64","checkbox.border":"#00000000","checkbox.foreground":"#c6a0f6","commandCenter.activeBackground":"#5b607833","commandCenter.activeBorder":"#c6a0f6","commandCenter.activeForeground":"#c6a0f6","commandCenter.background":"#1e2030","commandCenter.border":"#00000000","commandCenter.foreground":"#b8c0e0","commandCenter.inactiveBorder":"#00000000","commandCenter.inactiveForeground":"#b8c0e0","debugConsole.errorForeground":"#ed8796","debugConsole.infoForeground":"#8aadf4","debugConsole.sourceForeground":"#f4dbd6","debugConsole.warningForeground":"#f5a97f","debugConsoleInputIcon.foreground":"#cad3f5","debugExceptionWidget.background":"#181926","debugExceptionWidget.border":"#c6a0f6","debugIcon.breakpointCurrentStackframeForeground":"#5b6078","debugIcon.breakpointDisabledForeground":"#ed879699","debugIcon.breakpointForeground":"#ed8796","debugIcon.breakpointStackframeForeground":"#5b6078","debugIcon.breakpointUnverifiedForeground":"#a47487","debugIcon.continueForeground":"#a6da95","debugIcon.disconnectForeground":"#5b6078","debugIcon.pauseForeground":"#8aadf4","debugIcon.restartForeground":"#8bd5ca","debugIcon.startForeground":"#a6da95","debugIcon.stepBackForeground":"#5b6078","debugIcon.stepIntoForeground":"#cad3f5","debugIcon.stepOutForeground":"#cad3f5","debugIcon.stepOverForeground":"#c6a0f6","debugIcon.stopForeground":"#ed8796","debugTokenExpression.boolean":"#c6a0f6","debugTokenExpression.error":"#ed8796","debugTokenExpression.number":"#f5a97f","debugTokenExpression.string":"#a6da95","debugToolBar.background":"#181926","debugToolBar.border":"#00000000","descriptionForeground":"#cad3f5","diffEditor.border":"#5b6078","diffEditor.diagonalFill":"#5b607899","diffEditor.insertedLineBackground":"#a6da9526","diffEditor.insertedTextBackground":"#a6da9533","diffEditor.removedLineBackground":"#ed879626","diffEditor.removedTextBackground":"#ed879633","diffEditorOverview.insertedForeground":"#a6da95cc","diffEditorOverview.removedForeground":"#ed8796cc","disabledForeground":"#a5adcb","dropdown.background":"#1e2030","dropdown.border":"#c6a0f6","dropdown.foreground":"#cad3f5","dropdown.listBackground":"#5b6078","editor.background":"#24273a","editor.findMatchBackground":"#604456","editor.findMatchBorder":"#ed879633","editor.findMatchHighlightBackground":"#455c6d","editor.findMatchHighlightBorder":"#91d7e333","editor.findRangeHighlightBackground":"#455c6d","editor.findRangeHighlightBorder":"#91d7e333","editor.focusedStackFrameHighlightBackground":"#a6da9526","editor.foldBackground":"#91d7e340","editor.foreground":"#cad3f5","editor.hoverHighlightBackground":"#91d7e340","editor.lineHighlightBackground":"#cad3f512","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#91d7e340","editor.rangeHighlightBorder":"#00000000","editor.selectionBackground":"#939ab740","editor.selectionHighlightBackground":"#939ab733","editor.selectionHighlightBorder":"#939ab733","editor.stackFrameHighlightBackground":"#eed49f26","editor.wordHighlightBackground":"#939ab733","editor.wordHighlightStrongBackground":"#8aadf433","editorBracketHighlight.foreground1":"#ed8796","editorBracketHighlight.foreground2":"#f5a97f","editorBracketHighlight.foreground3":"#eed49f","editorBracketHighlight.foreground4":"#a6da95","editorBracketHighlight.foreground5":"#7dc4e4","editorBracketHighlight.foreground6":"#c6a0f6","editorBracketHighlight.unexpectedBracket.foreground":"#ee99a0","editorBracketMatch.background":"#939ab71a","editorBracketMatch.border":"#939ab7","editorCodeLens.foreground":"#8087a2","editorCursor.background":"#24273a","editorCursor.foreground":"#f4dbd6","editorError.background":"#00000000","editorError.border":"#00000000","editorError.foreground":"#ed8796","editorGroup.border":"#5b6078","editorGroup.dropBackground":"#c6a0f633","editorGroup.emptyBackground":"#24273a","editorGroupHeader.tabsBackground":"#181926","editorGutter.addedBackground":"#a6da95","editorGutter.background":"#24273a","editorGutter.commentGlyphForeground":"#c6a0f6","editorGutter.commentRangeForeground":"#363a4f","editorGutter.deletedBackground":"#ed8796","editorGutter.foldingControlForeground":"#939ab7","editorGutter.modifiedBackground":"#eed49f","editorHoverWidget.background":"#1e2030","editorHoverWidget.border":"#5b6078","editorHoverWidget.foreground":"#cad3f5","editorIndentGuide.activeBackground":"#5b6078","editorIndentGuide.background":"#494d64","editorInfo.background":"#00000000","editorInfo.border":"#00000000","editorInfo.foreground":"#8aadf4","editorInlayHint.background":"#1e2030bf","editorInlayHint.foreground":"#5b6078","editorInlayHint.parameterBackground":"#1e2030bf","editorInlayHint.parameterForeground":"#a5adcb","editorInlayHint.typeBackground":"#1e2030bf","editorInlayHint.typeForeground":"#b8c0e0","editorLightBulb.foreground":"#eed49f","editorLineNumber.activeForeground":"#c6a0f6","editorLineNumber.foreground":"#8087a2","editorLink.activeForeground":"#c6a0f6","editorMarkerNavigation.background":"#1e2030","editorMarkerNavigationError.background":"#ed8796","editorMarkerNavigationInfo.background":"#8aadf4","editorMarkerNavigationWarning.background":"#f5a97f","editorOverviewRuler.background":"#1e2030","editorOverviewRuler.border":"#cad3f512","editorOverviewRuler.modifiedForeground":"#eed49f","editorRuler.foreground":"#5b6078","editorStickyScrollHover.background":"#363a4f","editorSuggestWidget.background":"#1e2030","editorSuggestWidget.border":"#5b6078","editorSuggestWidget.foreground":"#cad3f5","editorSuggestWidget.highlightForeground":"#c6a0f6","editorSuggestWidget.selectedBackground":"#363a4f","editorWarning.background":"#00000000","editorWarning.border":"#00000000","editorWarning.foreground":"#f5a97f","editorWhitespace.foreground":"#939ab766","editorWidget.background":"#1e2030","editorWidget.foreground":"#cad3f5","editorWidget.resizeBorder":"#5b6078","errorForeground":"#ed8796","errorLens.errorBackground":"#ed879626","errorLens.errorBackgroundLight":"#ed879626","errorLens.errorForeground":"#ed8796","errorLens.errorForegroundLight":"#ed8796","errorLens.errorMessageBackground":"#ed879626","errorLens.hintBackground":"#a6da9526","errorLens.hintBackgroundLight":"#a6da9526","errorLens.hintForeground":"#a6da95","errorLens.hintForegroundLight":"#a6da95","errorLens.hintMessageBackground":"#a6da9526","errorLens.infoBackground":"#8aadf426","errorLens.infoBackgroundLight":"#8aadf426","errorLens.infoForeground":"#8aadf4","errorLens.infoForegroundLight":"#8aadf4","errorLens.infoMessageBackground":"#8aadf426","errorLens.statusBarErrorForeground":"#ed8796","errorLens.statusBarHintForeground":"#a6da95","errorLens.statusBarIconErrorForeground":"#ed8796","errorLens.statusBarIconWarningForeground":"#f5a97f","errorLens.statusBarInfoForeground":"#8aadf4","errorLens.statusBarWarningForeground":"#f5a97f","errorLens.warningBackground":"#f5a97f26","errorLens.warningBackgroundLight":"#f5a97f26","errorLens.warningForeground":"#f5a97f","errorLens.warningForegroundLight":"#f5a97f","errorLens.warningMessageBackground":"#f5a97f26","extensionBadge.remoteBackground":"#8aadf4","extensionBadge.remoteForeground":"#181926","extensionButton.prominentBackground":"#c6a0f6","extensionButton.prominentForeground":"#181926","extensionButton.prominentHoverBackground":"#dac1f9","extensionButton.separator":"#24273a","extensionIcon.preReleaseForeground":"#5b6078","extensionIcon.sponsorForeground":"#f5bde6","extensionIcon.starForeground":"#eed49f","extensionIcon.verifiedForeground":"#a6da95","focusBorder":"#c6a0f6","foreground":"#cad3f5","gitDecoration.addedResourceForeground":"#a6da95","gitDecoration.conflictingResourceForeground":"#c6a0f6","gitDecoration.deletedResourceForeground":"#ed8796","gitDecoration.ignoredResourceForeground":"#6e738d","gitDecoration.modifiedResourceForeground":"#eed49f","gitDecoration.stageDeletedResourceForeground":"#ed8796","gitDecoration.stageModifiedResourceForeground":"#eed49f","gitDecoration.submoduleResourceForeground":"#8aadf4","gitDecoration.untrackedResourceForeground":"#a6da95","gitlens.closedAutolinkedIssueIconColor":"#c6a0f6","gitlens.closedPullRequestIconColor":"#ed8796","gitlens.decorations.branchAheadForegroundColor":"#a6da95","gitlens.decorations.branchBehindForegroundColor":"#f5a97f","gitlens.decorations.branchDivergedForegroundColor":"#eed49f","gitlens.decorations.branchMissingUpstreamForegroundColor":"#f5a97f","gitlens.decorations.branchUnpublishedForegroundColor":"#a6da95","gitlens.decorations.statusMergingOrRebasingConflictForegroundColor":"#ee99a0","gitlens.decorations.statusMergingOrRebasingForegroundColor":"#eed49f","gitlens.decorations.workspaceCurrentForegroundColor":"#c6a0f6","gitlens.decorations.workspaceRepoMissingForegroundColor":"#a5adcb","gitlens.decorations.workspaceRepoOpenForegroundColor":"#c6a0f6","gitlens.decorations.worktreeHasUncommittedChangesForegroundColor":"#f5a97f","gitlens.decorations.worktreeMissingForegroundColor":"#ee99a0","gitlens.graphChangesColumnAddedColor":"#a6da95","gitlens.graphChangesColumnDeletedColor":"#ed8796","gitlens.graphLane10Color":"#f5bde6","gitlens.graphLane1Color":"#c6a0f6","gitlens.graphLane2Color":"#eed49f","gitlens.graphLane3Color":"#8aadf4","gitlens.graphLane4Color":"#f0c6c6","gitlens.graphLane5Color":"#a6da95","gitlens.graphLane6Color":"#b7bdf8","gitlens.graphLane7Color":"#f4dbd6","gitlens.graphLane8Color":"#ed8796","gitlens.graphLane9Color":"#8bd5ca","gitlens.graphMinimapMarkerHeadColor":"#a6da95","gitlens.graphMinimapMarkerHighlightsColor":"#eed49f","gitlens.graphMinimapMarkerLocalBranchesColor":"#8aadf4","gitlens.graphMinimapMarkerRemoteBranchesColor":"#739df2","gitlens.graphMinimapMarkerStashesColor":"#c6a0f6","gitlens.graphMinimapMarkerTagsColor":"#f0c6c6","gitlens.graphMinimapMarkerUpstreamColor":"#96d382","gitlens.graphScrollMarkerHeadColor":"#a6da95","gitlens.graphScrollMarkerHighlightsColor":"#eed49f","gitlens.graphScrollMarkerLocalBranchesColor":"#8aadf4","gitlens.graphScrollMarkerRemoteBranchesColor":"#739df2","gitlens.graphScrollMarkerStashesColor":"#c6a0f6","gitlens.graphScrollMarkerTagsColor":"#f0c6c6","gitlens.graphScrollMarkerUpstreamColor":"#96d382","gitlens.gutterBackgroundColor":"#363a4f4d","gitlens.gutterForegroundColor":"#cad3f5","gitlens.gutterUncommittedForegroundColor":"#c6a0f6","gitlens.lineHighlightBackgroundColor":"#c6a0f626","gitlens.lineHighlightOverviewRulerColor":"#c6a0f6cc","gitlens.mergedPullRequestIconColor":"#c6a0f6","gitlens.openAutolinkedIssueIconColor":"#a6da95","gitlens.openPullRequestIconColor":"#a6da95","gitlens.trailingLineBackgroundColor":"#00000000","gitlens.trailingLineForegroundColor":"#cad3f54d","gitlens.unpublishedChangesIconColor":"#a6da95","gitlens.unpublishedCommitIconColor":"#a6da95","gitlens.unpulledChangesIconColor":"#f5a97f","icon.foreground":"#c6a0f6","input.background":"#363a4f","input.border":"#00000000","input.foreground":"#cad3f5","input.placeholderForeground":"#cad3f573","inputOption.activeBackground":"#5b6078","inputOption.activeBorder":"#c6a0f6","inputOption.activeForeground":"#cad3f5","inputValidation.errorBackground":"#ed8796","inputValidation.errorBorder":"#18192633","inputValidation.errorForeground":"#181926","inputValidation.infoBackground":"#8aadf4","inputValidation.infoBorder":"#18192633","inputValidation.infoForeground":"#181926","inputValidation.warningBackground":"#f5a97f","inputValidation.warningBorder":"#18192633","inputValidation.warningForeground":"#181926","issues.closed":"#c6a0f6","issues.newIssueDecoration":"#f4dbd6","issues.open":"#a6da95","list.activeSelectionBackground":"#363a4f","list.activeSelectionForeground":"#cad3f5","list.dropBackground":"#c6a0f633","list.focusAndSelectionBackground":"#494d64","list.focusBackground":"#363a4f","list.focusForeground":"#cad3f5","list.focusOutline":"#00000000","list.highlightForeground":"#c6a0f6","list.hoverBackground":"#363a4f80","list.hoverForeground":"#cad3f5","list.inactiveSelectionBackground":"#363a4f","list.inactiveSelectionForeground":"#cad3f5","list.warningForeground":"#f5a97f","listFilterWidget.background":"#494d64","listFilterWidget.noMatchesOutline":"#ed8796","listFilterWidget.outline":"#00000000","menu.background":"#24273a","menu.border":"#24273a80","menu.foreground":"#cad3f5","menu.selectionBackground":"#5b6078","menu.selectionBorder":"#00000000","menu.selectionForeground":"#cad3f5","menu.separatorBackground":"#5b6078","menubar.selectionBackground":"#494d64","menubar.selectionForeground":"#cad3f5","merge.commonContentBackground":"#494d64","merge.commonHeaderBackground":"#5b6078","merge.currentContentBackground":"#a6da9533","merge.currentHeaderBackground":"#a6da9566","merge.incomingContentBackground":"#8aadf433","merge.incomingHeaderBackground":"#8aadf466","minimap.background":"#1e203080","minimap.errorHighlight":"#ed8796bf","minimap.findMatchHighlight":"#91d7e34d","minimap.selectionHighlight":"#5b6078bf","minimap.selectionOccurrenceHighlight":"#5b6078bf","minimap.warningHighlight":"#f5a97fbf","minimapGutter.addedBackground":"#a6da95bf","minimapGutter.deletedBackground":"#ed8796bf","minimapGutter.modifiedBackground":"#eed49fbf","minimapSlider.activeBackground":"#c6a0f699","minimapSlider.background":"#c6a0f633","minimapSlider.hoverBackground":"#c6a0f666","notificationCenter.border":"#c6a0f6","notificationCenterHeader.background":"#1e2030","notificationCenterHeader.foreground":"#cad3f5","notificationLink.foreground":"#8aadf4","notificationToast.border":"#c6a0f6","notifications.background":"#1e2030","notifications.border":"#c6a0f6","notifications.foreground":"#cad3f5","notificationsErrorIcon.foreground":"#ed8796","notificationsInfoIcon.foreground":"#8aadf4","notificationsWarningIcon.foreground":"#f5a97f","panel.background":"#24273a","panel.border":"#5b6078","panelSection.border":"#5b6078","panelSection.dropBackground":"#c6a0f633","panelTitle.activeBorder":"#c6a0f6","panelTitle.activeForeground":"#cad3f5","panelTitle.inactiveForeground":"#a5adcb","peekView.border":"#c6a0f6","peekViewEditor.background":"#1e2030","peekViewEditor.matchHighlightBackground":"#91d7e34d","peekViewEditor.matchHighlightBorder":"#00000000","peekViewEditorGutter.background":"#1e2030","peekViewResult.background":"#1e2030","peekViewResult.fileForeground":"#cad3f5","peekViewResult.lineForeground":"#cad3f5","peekViewResult.matchHighlightBackground":"#91d7e34d","peekViewResult.selectionBackground":"#363a4f","peekViewResult.selectionForeground":"#cad3f5","peekViewTitle.background":"#24273a","peekViewTitleDescription.foreground":"#b8c0e0b3","peekViewTitleLabel.foreground":"#cad3f5","pickerGroup.border":"#c6a0f6","pickerGroup.foreground":"#c6a0f6","problemsErrorIcon.foreground":"#ed8796","problemsInfoIcon.foreground":"#8aadf4","problemsWarningIcon.foreground":"#f5a97f","progressBar.background":"#c6a0f6","pullRequests.closed":"#ed8796","pullRequests.draft":"#939ab7","pullRequests.merged":"#c6a0f6","pullRequests.notification":"#cad3f5","pullRequests.open":"#a6da95","sash.hoverBorder":"#c6a0f6","scmGraph.foreground1":"#eed49f","scmGraph.foreground2":"#ed8796","scmGraph.foreground3":"#a6da95","scmGraph.foreground4":"#c6a0f6","scmGraph.foreground5":"#8bd5ca","scmGraph.historyItemBaseRefColor":"#f5a97f","scmGraph.historyItemRefColor":"#8aadf4","scmGraph.historyItemRemoteRefColor":"#c6a0f6","scrollbar.shadow":"#181926","scrollbarSlider.activeBackground":"#363a4f66","scrollbarSlider.background":"#5b607880","scrollbarSlider.hoverBackground":"#6e738d","selection.background":"#c6a0f666","settings.dropdownBackground":"#494d64","settings.dropdownListBorder":"#00000000","settings.focusedRowBackground":"#5b607833","settings.headerForeground":"#cad3f5","settings.modifiedItemIndicator":"#c6a0f6","settings.numberInputBackground":"#494d64","settings.numberInputBorder":"#00000000","settings.textInputBackground":"#494d64","settings.textInputBorder":"#00000000","sideBar.background":"#1e2030","sideBar.border":"#00000000","sideBar.dropBackground":"#c6a0f633","sideBar.foreground":"#cad3f5","sideBarSectionHeader.background":"#1e2030","sideBarSectionHeader.foreground":"#cad3f5","sideBarTitle.foreground":"#c6a0f6","statusBar.background":"#181926","statusBar.border":"#00000000","statusBar.debuggingBackground":"#f5a97f","statusBar.debuggingBorder":"#00000000","statusBar.debuggingForeground":"#181926","statusBar.foreground":"#cad3f5","statusBar.noFolderBackground":"#181926","statusBar.noFolderBorder":"#00000000","statusBar.noFolderForeground":"#cad3f5","statusBarItem.activeBackground":"#5b607866","statusBarItem.errorBackground":"#00000000","statusBarItem.errorForeground":"#ed8796","statusBarItem.hoverBackground":"#5b607833","statusBarItem.prominentBackground":"#00000000","statusBarItem.prominentForeground":"#c6a0f6","statusBarItem.prominentHoverBackground":"#5b607833","statusBarItem.remoteBackground":"#8aadf4","statusBarItem.remoteForeground":"#181926","statusBarItem.warningBackground":"#00000000","statusBarItem.warningForeground":"#f5a97f","symbolIcon.arrayForeground":"#f5a97f","symbolIcon.booleanForeground":"#c6a0f6","symbolIcon.classForeground":"#eed49f","symbolIcon.colorForeground":"#f5bde6","symbolIcon.constantForeground":"#f5a97f","symbolIcon.constructorForeground":"#b7bdf8","symbolIcon.enumeratorForeground":"#eed49f","symbolIcon.enumeratorMemberForeground":"#eed49f","symbolIcon.eventForeground":"#f5bde6","symbolIcon.fieldForeground":"#cad3f5","symbolIcon.fileForeground":"#c6a0f6","symbolIcon.folderForeground":"#c6a0f6","symbolIcon.functionForeground":"#8aadf4","symbolIcon.interfaceForeground":"#eed49f","symbolIcon.keyForeground":"#8bd5ca","symbolIcon.keywordForeground":"#c6a0f6","symbolIcon.methodForeground":"#8aadf4","symbolIcon.moduleForeground":"#cad3f5","symbolIcon.namespaceForeground":"#eed49f","symbolIcon.nullForeground":"#ee99a0","symbolIcon.numberForeground":"#f5a97f","symbolIcon.objectForeground":"#eed49f","symbolIcon.operatorForeground":"#8bd5ca","symbolIcon.packageForeground":"#f0c6c6","symbolIcon.propertyForeground":"#ee99a0","symbolIcon.referenceForeground":"#eed49f","symbolIcon.snippetForeground":"#f0c6c6","symbolIcon.stringForeground":"#a6da95","symbolIcon.structForeground":"#8bd5ca","symbolIcon.textForeground":"#cad3f5","symbolIcon.typeParameterForeground":"#ee99a0","symbolIcon.unitForeground":"#cad3f5","symbolIcon.variableForeground":"#cad3f5","tab.activeBackground":"#24273a","tab.activeBorder":"#00000000","tab.activeBorderTop":"#c6a0f6","tab.activeForeground":"#c6a0f6","tab.activeModifiedBorder":"#eed49f","tab.border":"#1e2030","tab.hoverBackground":"#2e324a","tab.hoverBorder":"#00000000","tab.hoverForeground":"#c6a0f6","tab.inactiveBackground":"#1e2030","tab.inactiveForeground":"#6e738d","tab.inactiveModifiedBorder":"#eed49f4d","tab.lastPinnedBorder":"#c6a0f6","tab.unfocusedActiveBackground":"#1e2030","tab.unfocusedActiveBorder":"#00000000","tab.unfocusedActiveBorderTop":"#c6a0f64d","tab.unfocusedInactiveBackground":"#141620","table.headerBackground":"#363a4f","table.headerForeground":"#cad3f5","terminal.ansiBlack":"#494d64","terminal.ansiBlue":"#8aadf4","terminal.ansiBrightBlack":"#5b6078","terminal.ansiBrightBlue":"#78a1f6","terminal.ansiBrightCyan":"#63cbc0","terminal.ansiBrightGreen":"#8ccf7f","terminal.ansiBrightMagenta":"#f2a9dd","terminal.ansiBrightRed":"#ec7486","terminal.ansiBrightWhite":"#b8c0e0","terminal.ansiBrightYellow":"#e1c682","terminal.ansiCyan":"#8bd5ca","terminal.ansiGreen":"#a6da95","terminal.ansiMagenta":"#f5bde6","terminal.ansiRed":"#ed8796","terminal.ansiWhite":"#a5adcb","terminal.ansiYellow":"#eed49f","terminal.border":"#5b6078","terminal.dropBackground":"#c6a0f633","terminal.foreground":"#cad3f5","terminal.inactiveSelectionBackground":"#5b607880","terminal.selectionBackground":"#5b6078","terminal.tab.activeBorder":"#c6a0f6","terminalCommandDecoration.defaultBackground":"#5b6078","terminalCommandDecoration.errorBackground":"#ed8796","terminalCommandDecoration.successBackground":"#a6da95","terminalCursor.background":"#24273a","terminalCursor.foreground":"#f4dbd6","testing.coverCountBadgeBackground":"#00000000","testing.coverCountBadgeForeground":"#c6a0f6","testing.coveredBackground":"#a6da954d","testing.coveredBorder":"#00000000","testing.coveredGutterBackground":"#a6da954d","testing.iconErrored":"#ed8796","testing.iconErrored.retired":"#ed8796","testing.iconFailed":"#ed8796","testing.iconFailed.retired":"#ed8796","testing.iconPassed":"#a6da95","testing.iconPassed.retired":"#a6da95","testing.iconQueued":"#8aadf4","testing.iconQueued.retired":"#8aadf4","testing.iconSkipped":"#a5adcb","testing.iconSkipped.retired":"#a5adcb","testing.iconUnset":"#cad3f5","testing.iconUnset.retired":"#cad3f5","testing.message.error.lineBackground":"#ed879626","testing.message.info.decorationForeground":"#a6da95cc","testing.message.info.lineBackground":"#a6da9526","testing.messagePeekBorder":"#c6a0f6","testing.messagePeekHeaderBackground":"#5b6078","testing.peekBorder":"#c6a0f6","testing.peekHeaderBackground":"#5b6078","testing.runAction":"#c6a0f6","testing.uncoveredBackground":"#ed879633","testing.uncoveredBorder":"#00000000","testing.uncoveredBranchBackground":"#ed879633","testing.uncoveredGutterBackground":"#ed879640","textBlockQuote.background":"#1e2030","textBlockQuote.border":"#181926","textCodeBlock.background":"#1e2030","textLink.activeForeground":"#91d7e3","textLink.foreground":"#8aadf4","textPreformat.foreground":"#cad3f5","textSeparator.foreground":"#c6a0f6","titleBar.activeBackground":"#181926","titleBar.activeForeground":"#cad3f5","titleBar.border":"#00000000","titleBar.inactiveBackground":"#181926","titleBar.inactiveForeground":"#cad3f580","tree.inactiveIndentGuidesStroke":"#494d64","tree.indentGuidesStroke":"#939ab7","walkThrough.embeddedEditorBackground":"#24273a4d","welcomePage.progress.background":"#181926","welcomePage.progress.foreground":"#c6a0f6","welcomePage.tileBackground":"#1e2030","widget.shadow":"#1e203080","window.activeBorder":"#00000000","window.inactiveBorder":"#00000000"},"displayName":"Catppuccin Macchiato","name":"catppuccin-macchiato","semanticHighlighting":true,"semanticTokenColors":{"boolean":{"foreground":"#f5a97f"},"builtinAttribute.attribute.library:rust":{"foreground":"#8aadf4"},"class.builtin:python":{"foreground":"#c6a0f6"},"class:python":{"foreground":"#eed49f"},"constant.builtin.readonly:nix":{"foreground":"#c6a0f6"},"enumMember":{"foreground":"#8bd5ca"},"function.decorator:python":{"foreground":"#f5a97f"},"generic.attribute:rust":{"foreground":"#cad3f5"},"heading":{"foreground":"#ed8796"},"number":{"foreground":"#f5a97f"},"pol":{"foreground":"#f0c6c6"},"property.readonly:javascript":{"foreground":"#cad3f5"},"property.readonly:javascriptreact":{"foreground":"#cad3f5"},"property.readonly:typescript":{"foreground":"#cad3f5"},"property.readonly:typescriptreact":{"foreground":"#cad3f5"},"selfKeyword":{"foreground":"#ed8796"},"text.emph":{"fontStyle":"italic","foreground":"#ed8796"},"text.math":{"foreground":"#f0c6c6"},"text.strong":{"fontStyle":"bold","foreground":"#ed8796"},"tomlArrayKey":{"fontStyle":"","foreground":"#8aadf4"},"tomlTableKey":{"fontStyle":"","foreground":"#8aadf4"},"type.defaultLibrary:go":{"foreground":"#c6a0f6"},"variable.defaultLibrary":{"foreground":"#ee99a0"},"variable.readonly.defaultLibrary:go":{"foreground":"#c6a0f6"},"variable.readonly:javascript":{"foreground":"#cad3f5"},"variable.readonly:javascriptreact":{"foreground":"#cad3f5"},"variable.readonly:scala":{"foreground":"#cad3f5"},"variable.readonly:typescript":{"foreground":"#cad3f5"},"variable.readonly:typescriptreact":{"foreground":"#cad3f5"},"variable.typeHint:python":{"foreground":"#eed49f"}},"tokenColors":[{"scope":["text","source","variable.other.readwrite","punctuation.definition.variable"],"settings":{"foreground":"#cad3f5"}},{"scope":"punctuation","settings":{"fontStyle":"","foreground":"#939ab7"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#939ab7"}},{"scope":["string","punctuation.definition.string"],"settings":{"foreground":"#a6da95"}},{"scope":"constant.character.escape","settings":{"foreground":"#f5bde6"}},{"scope":["constant.numeric","variable.other.constant","entity.name.constant","constant.language.boolean","constant.language.false","constant.language.true","keyword.other.unit.user-defined","keyword.other.unit.suffix.floating-point"],"settings":{"foreground":"#f5a97f"}},{"scope":["keyword","keyword.operator.word","keyword.operator.new","variable.language.super","support.type.primitive","storage.type","storage.modifier","punctuation.definition.keyword"],"settings":{"fontStyle":"","foreground":"#c6a0f6"}},{"scope":"entity.name.tag.documentation","settings":{"foreground":"#c6a0f6"}},{"scope":["keyword.operator","punctuation.accessor","punctuation.definition.generic","meta.function.closure punctuation.section.parameters","punctuation.definition.tag","punctuation.separator.key-value"],"settings":{"foreground":"#8bd5ca"}},{"scope":["entity.name.function","meta.function-call.method","support.function","support.function.misc","variable.function"],"settings":{"fontStyle":"italic","foreground":"#8aadf4"}},{"scope":["entity.name.class","entity.other.inherited-class","support.class","meta.function-call.constructor","entity.name.struct"],"settings":{"fontStyle":"italic","foreground":"#eed49f"}},{"scope":"entity.name.enum","settings":{"fontStyle":"italic","foreground":"#eed49f"}},{"scope":["meta.enum variable.other.readwrite","variable.other.enummember"],"settings":{"foreground":"#8bd5ca"}},{"scope":"meta.property.object","settings":{"foreground":"#8bd5ca"}},{"scope":["meta.type","meta.type-alias","support.type","entity.name.type"],"settings":{"fontStyle":"italic","foreground":"#eed49f"}},{"scope":["meta.annotation variable.function","meta.annotation variable.annotation.function","meta.annotation punctuation.definition.annotation","meta.decorator","punctuation.decorator"],"settings":{"foreground":"#f5a97f"}},{"scope":["variable.parameter","meta.function.parameters"],"settings":{"fontStyle":"italic","foreground":"#ee99a0"}},{"scope":["constant.language","support.function.builtin"],"settings":{"foreground":"#ed8796"}},{"scope":"entity.other.attribute-name.documentation","settings":{"foreground":"#ed8796"}},{"scope":["keyword.control.directive","punctuation.definition.directive"],"settings":{"foreground":"#eed49f"}},{"scope":"punctuation.definition.typeparameters","settings":{"foreground":"#91d7e3"}},{"scope":"entity.name.namespace","settings":{"foreground":"#eed49f"}},{"scope":["support.type.property-name.css","support.type.property-name.less"],"settings":{"fontStyle":"","foreground":"#8aadf4"}},{"scope":["variable.language.this","variable.language.this punctuation.definition.variable"],"settings":{"foreground":"#ed8796"}},{"scope":"variable.object.property","settings":{"foreground":"#cad3f5"}},{"scope":["string.template variable","string variable"],"settings":{"foreground":"#cad3f5"}},{"scope":"keyword.operator.new","settings":{"fontStyle":"bold"}},{"scope":"storage.modifier.specifier.extern.cpp","settings":{"foreground":"#c6a0f6"}},{"scope":["entity.name.scope-resolution.template.call.cpp","entity.name.scope-resolution.parameter.cpp","entity.name.scope-resolution.cpp","entity.name.scope-resolution.function.definition.cpp"],"settings":{"foreground":"#eed49f"}},{"scope":"storage.type.class.doxygen","settings":{"fontStyle":""}},{"scope":["storage.modifier.reference.cpp"],"settings":{"foreground":"#8bd5ca"}},{"scope":"meta.interpolation.cs","settings":{"foreground":"#cad3f5"}},{"scope":"comment.block.documentation.cs","settings":{"foreground":"#cad3f5"}},{"scope":["source.css entity.other.attribute-name.class.css","entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css"],"settings":{"foreground":"#eed49f"}},{"scope":"punctuation.separator.operator.css","settings":{"foreground":"#8bd5ca"}},{"scope":"source.css entity.other.attribute-name.pseudo-class","settings":{"foreground":"#8bd5ca"}},{"scope":"source.css constant.other.unicode-range","settings":{"foreground":"#f5a97f"}},{"scope":"source.css variable.parameter.url","settings":{"fontStyle":"","foreground":"#a6da95"}},{"scope":["support.type.vendored.property-name"],"settings":{"foreground":"#91d7e3"}},{"scope":["source.css meta.property-value variable","source.css meta.property-value variable.other.less","source.css meta.property-value variable.other.less punctuation.definition.variable.less","meta.definition.variable.scss"],"settings":{"foreground":"#ee99a0"}},{"scope":["source.css meta.property-list variable","meta.property-list variable.other.less","meta.property-list variable.other.less punctuation.definition.variable.less"],"settings":{"foreground":"#8aadf4"}},{"scope":"keyword.other.unit.percentage.css","settings":{"foreground":"#f5a97f"}},{"scope":"source.css meta.attribute-selector","settings":{"foreground":"#a6da95"}},{"scope":["keyword.other.definition.ini","punctuation.support.type.property-name.json","support.type.property-name.json","punctuation.support.type.property-name.toml","support.type.property-name.toml","entity.name.tag.yaml","punctuation.support.type.property-name.yaml","support.type.property-name.yaml"],"settings":{"fontStyle":"","foreground":"#8aadf4"}},{"scope":["constant.language.json","constant.language.yaml"],"settings":{"foreground":"#f5a97f"}},{"scope":["entity.name.type.anchor.yaml","variable.other.alias.yaml"],"settings":{"fontStyle":"","foreground":"#eed49f"}},{"scope":["support.type.property-name.table","entity.name.section.group-title.ini"],"settings":{"foreground":"#eed49f"}},{"scope":"constant.other.time.datetime.offset.toml","settings":{"foreground":"#f5bde6"}},{"scope":["punctuation.definition.anchor.yaml","punctuation.definition.alias.yaml"],"settings":{"foreground":"#f5bde6"}},{"scope":"entity.other.document.begin.yaml","settings":{"foreground":"#f5bde6"}},{"scope":"markup.changed.diff","settings":{"foreground":"#f5a97f"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#8aadf4"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#a6da95"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#ed8796"}},{"scope":["variable.other.env"],"settings":{"foreground":"#8aadf4"}},{"scope":["string.quoted variable.other.env"],"settings":{"foreground":"#cad3f5"}},{"scope":"support.function.builtin.gdscript","settings":{"foreground":"#8aadf4"}},{"scope":"constant.language.gdscript","settings":{"foreground":"#f5a97f"}},{"scope":"comment meta.annotation.go","settings":{"foreground":"#ee99a0"}},{"scope":"comment meta.annotation.parameters.go","settings":{"foreground":"#f5a97f"}},{"scope":"constant.language.go","settings":{"foreground":"#f5a97f"}},{"scope":"variable.graphql","settings":{"foreground":"#cad3f5"}},{"scope":"string.unquoted.alias.graphql","settings":{"foreground":"#f0c6c6"}},{"scope":"constant.character.enum.graphql","settings":{"foreground":"#8bd5ca"}},{"scope":"meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql","settings":{"foreground":"#f0c6c6"}},{"scope":["keyword.other.doctype","meta.tag.sgml.doctype punctuation.definition.tag","meta.tag.metadata.doctype entity.name.tag","meta.tag.metadata.doctype punctuation.definition.tag"],"settings":{"foreground":"#c6a0f6"}},{"scope":["entity.name.tag"],"settings":{"fontStyle":"","foreground":"#8aadf4"}},{"scope":["text.html constant.character.entity","text.html constant.character.entity punctuation","constant.character.entity.xml","constant.character.entity.xml punctuation","constant.character.entity.js.jsx","constant.charactger.entity.js.jsx punctuation","constant.character.entity.tsx","constant.character.entity.tsx punctuation"],"settings":{"foreground":"#ed8796"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#eed49f"}},{"scope":["support.class.component","support.class.component.jsx","support.class.component.tsx","support.class.component.vue"],"settings":{"fontStyle":"","foreground":"#f5bde6"}},{"scope":["punctuation.definition.annotation","storage.type.annotation"],"settings":{"foreground":"#f5a97f"}},{"scope":"constant.other.enum.java","settings":{"foreground":"#8bd5ca"}},{"scope":"storage.modifier.import.java","settings":{"foreground":"#cad3f5"}},{"scope":"comment.block.javadoc.java keyword.other.documentation.javadoc.java","settings":{"fontStyle":""}},{"scope":"meta.export variable.other.readwrite.js","settings":{"foreground":"#ee99a0"}},{"scope":["variable.other.constant.js","variable.other.constant.ts","variable.other.property.js","variable.other.property.ts"],"settings":{"foreground":"#cad3f5"}},{"scope":["variable.other.jsdoc","comment.block.documentation variable.other"],"settings":{"fontStyle":"","foreground":"#ee99a0"}},{"scope":"storage.type.class.jsdoc","settings":{"fontStyle":""}},{"scope":"support.type.object.console.js","settings":{"foreground":"#cad3f5"}},{"scope":["support.constant.node","support.type.object.module.js"],"settings":{"foreground":"#c6a0f6"}},{"scope":"storage.modifier.implements","settings":{"foreground":"#c6a0f6"}},{"scope":["constant.language.null.js","constant.language.null.ts","constant.language.undefined.js","constant.language.undefined.ts","support.type.builtin.ts"],"settings":{"foreground":"#c6a0f6"}},{"scope":"variable.parameter.generic","settings":{"foreground":"#eed49f"}},{"scope":["keyword.declaration.function.arrow.js","storage.type.function.arrow.ts"],"settings":{"foreground":"#8bd5ca"}},{"scope":"punctuation.decorator.ts","settings":{"fontStyle":"italic","foreground":"#8aadf4"}},{"scope":["keyword.operator.expression.in.js","keyword.operator.expression.in.ts","keyword.operator.expression.infer.ts","keyword.operator.expression.instanceof.js","keyword.operator.expression.instanceof.ts","keyword.operator.expression.is","keyword.operator.expression.keyof.ts","keyword.operator.expression.of.js","keyword.operator.expression.of.ts","keyword.operator.expression.typeof.ts"],"settings":{"foreground":"#c6a0f6"}},{"scope":"support.function.macro.julia","settings":{"fontStyle":"italic","foreground":"#8bd5ca"}},{"scope":"constant.language.julia","settings":{"foreground":"#f5a97f"}},{"scope":"constant.other.symbol.julia","settings":{"foreground":"#ee99a0"}},{"scope":"text.tex keyword.control.preamble","settings":{"foreground":"#8bd5ca"}},{"scope":"text.tex support.function.be","settings":{"foreground":"#91d7e3"}},{"scope":"constant.other.general.math.tex","settings":{"foreground":"#f0c6c6"}},{"scope":"variable.language.liquid","settings":{"foreground":"#f5bde6"}},{"scope":"comment.line.double-dash.documentation.lua storage.type.annotation.lua","settings":{"fontStyle":"","foreground":"#c6a0f6"}},{"scope":["comment.line.double-dash.documentation.lua entity.name.variable.lua","comment.line.double-dash.documentation.lua variable.lua"],"settings":{"foreground":"#cad3f5"}},{"scope":["heading.1.markdown punctuation.definition.heading.markdown","heading.1.markdown","heading.1.quarto punctuation.definition.heading.quarto","heading.1.quarto","markup.heading.atx.1.mdx","markup.heading.atx.1.mdx punctuation.definition.heading.mdx","markup.heading.setext.1.markdown","markup.heading.heading-0.asciidoc"],"settings":{"foreground":"#ed8796"}},{"scope":["heading.2.markdown punctuation.definition.heading.markdown","heading.2.markdown","heading.2.quarto punctuation.definition.heading.quarto","heading.2.quarto","markup.heading.atx.2.mdx","markup.heading.atx.2.mdx punctuation.definition.heading.mdx","markup.heading.setext.2.markdown","markup.heading.heading-1.asciidoc"],"settings":{"foreground":"#f5a97f"}},{"scope":["heading.3.markdown punctuation.definition.heading.markdown","heading.3.markdown","heading.3.quarto punctuation.definition.heading.quarto","heading.3.quarto","markup.heading.atx.3.mdx","markup.heading.atx.3.mdx punctuation.definition.heading.mdx","markup.heading.heading-2.asciidoc"],"settings":{"foreground":"#eed49f"}},{"scope":["heading.4.markdown punctuation.definition.heading.markdown","heading.4.markdown","heading.4.quarto punctuation.definition.heading.quarto","heading.4.quarto","markup.heading.atx.4.mdx","markup.heading.atx.4.mdx punctuation.definition.heading.mdx","markup.heading.heading-3.asciidoc"],"settings":{"foreground":"#a6da95"}},{"scope":["heading.5.markdown punctuation.definition.heading.markdown","heading.5.markdown","heading.5.quarto punctuation.definition.heading.quarto","heading.5.quarto","markup.heading.atx.5.mdx","markup.heading.atx.5.mdx punctuation.definition.heading.mdx","markup.heading.heading-4.asciidoc"],"settings":{"foreground":"#7dc4e4"}},{"scope":["heading.6.markdown punctuation.definition.heading.markdown","heading.6.markdown","heading.6.quarto punctuation.definition.heading.quarto","heading.6.quarto","markup.heading.atx.6.mdx","markup.heading.atx.6.mdx punctuation.definition.heading.mdx","markup.heading.heading-5.asciidoc"],"settings":{"foreground":"#b7bdf8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#ed8796"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#ed8796"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough","foreground":"#a5adcb"}},{"scope":["punctuation.definition.link","markup.underline.link"],"settings":{"foreground":"#8aadf4"}},{"scope":["text.html.markdown punctuation.definition.link.title","text.html.quarto punctuation.definition.link.title","string.other.link.title.markdown","string.other.link.title.quarto","markup.link","punctuation.definition.constant.markdown","punctuation.definition.constant.quarto","constant.other.reference.link.markdown","constant.other.reference.link.quarto","markup.substitution.attribute-reference"],"settings":{"foreground":"#b7bdf8"}},{"scope":["punctuation.definition.raw.markdown","punctuation.definition.raw.quarto","markup.inline.raw.string.markdown","markup.inline.raw.string.quarto","markup.raw.block.markdown","markup.raw.block.quarto"],"settings":{"foreground":"#a6da95"}},{"scope":"fenced_code.block.language","settings":{"foreground":"#91d7e3"}},{"scope":["markup.fenced_code.block punctuation.definition","markup.raw support.asciidoc"],"settings":{"foreground":"#939ab7"}},{"scope":["markup.quote","punctuation.definition.quote.begin"],"settings":{"foreground":"#f5bde6"}},{"scope":"meta.separator.markdown","settings":{"foreground":"#8bd5ca"}},{"scope":["punctuation.definition.list.begin.markdown","punctuation.definition.list.begin.quarto","markup.list.bullet"],"settings":{"foreground":"#8bd5ca"}},{"scope":"markup.heading.quarto","settings":{"fontStyle":"bold"}},{"scope":["entity.other.attribute-name.multipart.nix","entity.other.attribute-name.single.nix"],"settings":{"foreground":"#8aadf4"}},{"scope":"variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#cad3f5"}},{"scope":"meta.embedded variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#b7bdf8"}},{"scope":"string.unquoted.path.nix","settings":{"fontStyle":"","foreground":"#f5bde6"}},{"scope":["support.attribute.builtin","meta.attribute.php"],"settings":{"foreground":"#eed49f"}},{"scope":"meta.function.parameters.php punctuation.definition.variable.php","settings":{"foreground":"#ee99a0"}},{"scope":"constant.language.php","settings":{"foreground":"#c6a0f6"}},{"scope":"text.html.php support.function","settings":{"foreground":"#91d7e3"}},{"scope":"keyword.other.phpdoc.php","settings":{"fontStyle":""}},{"scope":["support.variable.magic.python","meta.function-call.arguments.python"],"settings":{"foreground":"#cad3f5"}},{"scope":["support.function.magic.python"],"settings":{"fontStyle":"italic","foreground":"#91d7e3"}},{"scope":["variable.parameter.function.language.special.self.python","variable.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#ed8796"}},{"scope":["keyword.control.flow.python","keyword.operator.logical.python"],"settings":{"foreground":"#c6a0f6"}},{"scope":"storage.type.function.python","settings":{"foreground":"#c6a0f6"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#91d7e3"}},{"scope":["meta.function-call.python"],"settings":{"foreground":"#8aadf4"}},{"scope":["entity.name.function.decorator.python","punctuation.definition.decorator.python"],"settings":{"fontStyle":"italic","foreground":"#f5a97f"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#f5bde6"}},{"scope":["support.type.exception.python","support.function.builtin.python"],"settings":{"foreground":"#f5a97f"}},{"scope":["support.type.python"],"settings":{"foreground":"#c6a0f6"}},{"scope":"constant.language.python","settings":{"foreground":"#f5a97f"}},{"scope":["meta.indexed-name.python","meta.item-access.python"],"settings":{"fontStyle":"italic","foreground":"#ee99a0"}},{"scope":"storage.type.string.python","settings":{"fontStyle":"italic","foreground":"#a6da95"}},{"scope":"meta.function.parameters.python","settings":{"fontStyle":""}},{"scope":"meta.function-call.r","settings":{"foreground":"#8aadf4"}},{"scope":"meta.function-call.arguments.r","settings":{"foreground":"#cad3f5"}},{"scope":["string.regexp punctuation.definition.string.begin","string.regexp punctuation.definition.string.end"],"settings":{"foreground":"#f5bde6"}},{"scope":"keyword.control.anchor.regexp","settings":{"foreground":"#c6a0f6"}},{"scope":"string.regexp.ts","settings":{"foreground":"#cad3f5"}},{"scope":["punctuation.definition.group.regexp","keyword.other.back-reference.regexp"],"settings":{"foreground":"#a6da95"}},{"scope":"punctuation.definition.character-class.regexp","settings":{"foreground":"#eed49f"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#f5bde6"}},{"scope":"constant.other.character-class.range.regexp","settings":{"foreground":"#f4dbd6"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#8bd5ca"}},{"scope":"constant.character.numeric.regexp","settings":{"foreground":"#f5a97f"}},{"scope":["punctuation.definition.group.no-capture.regexp","meta.assertion.look-ahead.regexp","meta.assertion.negative-look-ahead.regexp"],"settings":{"foreground":"#8aadf4"}},{"scope":["meta.annotation.rust","meta.annotation.rust punctuation","meta.attribute.rust","punctuation.definition.attribute.rust"],"settings":{"fontStyle":"italic","foreground":"#eed49f"}},{"scope":["meta.attribute.rust string.quoted.double.rust","meta.attribute.rust string.quoted.single.char.rust"],"settings":{"fontStyle":""}},{"scope":["entity.name.function.macro.rules.rust","storage.type.module.rust","storage.modifier.rust","storage.type.struct.rust","storage.type.enum.rust","storage.type.trait.rust","storage.type.union.rust","storage.type.impl.rust","storage.type.rust","storage.type.function.rust","storage.type.type.rust"],"settings":{"fontStyle":"","foreground":"#c6a0f6"}},{"scope":"entity.name.type.numeric.rust","settings":{"fontStyle":"","foreground":"#c6a0f6"}},{"scope":"meta.generic.rust","settings":{"foreground":"#f5a97f"}},{"scope":"entity.name.impl.rust","settings":{"fontStyle":"italic","foreground":"#eed49f"}},{"scope":"entity.name.module.rust","settings":{"foreground":"#f5a97f"}},{"scope":"entity.name.trait.rust","settings":{"fontStyle":"italic","foreground":"#eed49f"}},{"scope":"storage.type.source.rust","settings":{"foreground":"#eed49f"}},{"scope":"entity.name.union.rust","settings":{"foreground":"#eed49f"}},{"scope":"meta.enum.rust storage.type.source.rust","settings":{"foreground":"#8bd5ca"}},{"scope":["support.macro.rust","meta.macro.rust support.function.rust","entity.name.function.macro.rust"],"settings":{"fontStyle":"italic","foreground":"#8aadf4"}},{"scope":["storage.modifier.lifetime.rust","entity.name.type.lifetime"],"settings":{"fontStyle":"italic","foreground":"#8aadf4"}},{"scope":"string.quoted.double.rust constant.other.placeholder.rust","settings":{"foreground":"#f5bde6"}},{"scope":"meta.function.return-type.rust meta.generic.rust storage.type.rust","settings":{"foreground":"#cad3f5"}},{"scope":"meta.function.call.rust","settings":{"foreground":"#8aadf4"}},{"scope":"punctuation.brackets.angle.rust","settings":{"foreground":"#91d7e3"}},{"scope":"constant.other.caps.rust","settings":{"foreground":"#f5a97f"}},{"scope":["meta.function.definition.rust variable.other.rust"],"settings":{"foreground":"#ee99a0"}},{"scope":"meta.function.call.rust variable.other.rust","settings":{"foreground":"#cad3f5"}},{"scope":"variable.language.self.rust","settings":{"foreground":"#ed8796"}},{"scope":["variable.other.metavariable.name.rust","meta.macro.metavariable.rust keyword.operator.macro.dollar.rust"],"settings":{"foreground":"#f5bde6"}},{"scope":["comment.line.shebang","comment.line.shebang punctuation.definition.comment","comment.line.shebang","punctuation.definition.comment.shebang.shell","meta.shebang.shell"],"settings":{"fontStyle":"italic","foreground":"#f5bde6"}},{"scope":"comment.line.shebang constant.language","settings":{"fontStyle":"italic","foreground":"#8bd5ca"}},{"scope":["meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation","meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation"],"settings":{"foreground":"#ed8796"}},{"scope":"meta.string meta.interpolation.parameter.shell variable.other.readwrite","settings":{"fontStyle":"italic","foreground":"#f5a97f"}},{"scope":["source.shell punctuation.section.interpolation","punctuation.definition.evaluation.backticks.shell"],"settings":{"foreground":"#8bd5ca"}},{"scope":"entity.name.tag.heredoc.shell","settings":{"foreground":"#c6a0f6"}},{"scope":"string.quoted.double.shell variable.other.normal.shell","settings":{"foreground":"#cad3f5"}},{"scope":["markup.heading.typst"],"settings":{"foreground":"#ed8796"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/catppuccin-mocha-DAt_A1jH.js b/docs/assets/catppuccin-mocha-DAt_A1jH.js new file mode 100644 index 0000000..82dc9c4 --- /dev/null +++ b/docs/assets/catppuccin-mocha-DAt_A1jH.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBackground":"#00000000","activityBar.activeBorder":"#00000000","activityBar.activeFocusBorder":"#00000000","activityBar.background":"#11111b","activityBar.border":"#00000000","activityBar.dropBorder":"#cba6f733","activityBar.foreground":"#cba6f7","activityBar.inactiveForeground":"#6c7086","activityBarBadge.background":"#cba6f7","activityBarBadge.foreground":"#11111b","activityBarTop.activeBorder":"#00000000","activityBarTop.dropBorder":"#cba6f733","activityBarTop.foreground":"#cba6f7","activityBarTop.inactiveForeground":"#6c7086","badge.background":"#45475a","badge.foreground":"#cdd6f4","banner.background":"#45475a","banner.foreground":"#cdd6f4","banner.iconForeground":"#cdd6f4","breadcrumb.activeSelectionForeground":"#cba6f7","breadcrumb.background":"#1e1e2e","breadcrumb.focusForeground":"#cba6f7","breadcrumb.foreground":"#cdd6f4cc","breadcrumbPicker.background":"#181825","button.background":"#cba6f7","button.border":"#00000000","button.foreground":"#11111b","button.hoverBackground":"#dec7fa","button.secondaryBackground":"#585b70","button.secondaryBorder":"#cba6f7","button.secondaryForeground":"#cdd6f4","button.secondaryHoverBackground":"#686b84","button.separator":"#00000000","charts.blue":"#89b4fa","charts.foreground":"#cdd6f4","charts.green":"#a6e3a1","charts.lines":"#bac2de","charts.orange":"#fab387","charts.purple":"#cba6f7","charts.red":"#f38ba8","charts.yellow":"#f9e2af","checkbox.background":"#45475a","checkbox.border":"#00000000","checkbox.foreground":"#cba6f7","commandCenter.activeBackground":"#585b7033","commandCenter.activeBorder":"#cba6f7","commandCenter.activeForeground":"#cba6f7","commandCenter.background":"#181825","commandCenter.border":"#00000000","commandCenter.foreground":"#bac2de","commandCenter.inactiveBorder":"#00000000","commandCenter.inactiveForeground":"#bac2de","debugConsole.errorForeground":"#f38ba8","debugConsole.infoForeground":"#89b4fa","debugConsole.sourceForeground":"#f5e0dc","debugConsole.warningForeground":"#fab387","debugConsoleInputIcon.foreground":"#cdd6f4","debugExceptionWidget.background":"#11111b","debugExceptionWidget.border":"#cba6f7","debugIcon.breakpointCurrentStackframeForeground":"#585b70","debugIcon.breakpointDisabledForeground":"#f38ba899","debugIcon.breakpointForeground":"#f38ba8","debugIcon.breakpointStackframeForeground":"#585b70","debugIcon.breakpointUnverifiedForeground":"#a6738c","debugIcon.continueForeground":"#a6e3a1","debugIcon.disconnectForeground":"#585b70","debugIcon.pauseForeground":"#89b4fa","debugIcon.restartForeground":"#94e2d5","debugIcon.startForeground":"#a6e3a1","debugIcon.stepBackForeground":"#585b70","debugIcon.stepIntoForeground":"#cdd6f4","debugIcon.stepOutForeground":"#cdd6f4","debugIcon.stepOverForeground":"#cba6f7","debugIcon.stopForeground":"#f38ba8","debugTokenExpression.boolean":"#cba6f7","debugTokenExpression.error":"#f38ba8","debugTokenExpression.number":"#fab387","debugTokenExpression.string":"#a6e3a1","debugToolBar.background":"#11111b","debugToolBar.border":"#00000000","descriptionForeground":"#cdd6f4","diffEditor.border":"#585b70","diffEditor.diagonalFill":"#585b7099","diffEditor.insertedLineBackground":"#a6e3a126","diffEditor.insertedTextBackground":"#a6e3a133","diffEditor.removedLineBackground":"#f38ba826","diffEditor.removedTextBackground":"#f38ba833","diffEditorOverview.insertedForeground":"#a6e3a1cc","diffEditorOverview.removedForeground":"#f38ba8cc","disabledForeground":"#a6adc8","dropdown.background":"#181825","dropdown.border":"#cba6f7","dropdown.foreground":"#cdd6f4","dropdown.listBackground":"#585b70","editor.background":"#1e1e2e","editor.findMatchBackground":"#5e3f53","editor.findMatchBorder":"#f38ba833","editor.findMatchHighlightBackground":"#3e5767","editor.findMatchHighlightBorder":"#89dceb33","editor.findRangeHighlightBackground":"#3e5767","editor.findRangeHighlightBorder":"#89dceb33","editor.focusedStackFrameHighlightBackground":"#a6e3a126","editor.foldBackground":"#89dceb40","editor.foreground":"#cdd6f4","editor.hoverHighlightBackground":"#89dceb40","editor.lineHighlightBackground":"#cdd6f412","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#89dceb40","editor.rangeHighlightBorder":"#00000000","editor.selectionBackground":"#9399b240","editor.selectionHighlightBackground":"#9399b233","editor.selectionHighlightBorder":"#9399b233","editor.stackFrameHighlightBackground":"#f9e2af26","editor.wordHighlightBackground":"#9399b233","editor.wordHighlightStrongBackground":"#89b4fa33","editorBracketHighlight.foreground1":"#f38ba8","editorBracketHighlight.foreground2":"#fab387","editorBracketHighlight.foreground3":"#f9e2af","editorBracketHighlight.foreground4":"#a6e3a1","editorBracketHighlight.foreground5":"#74c7ec","editorBracketHighlight.foreground6":"#cba6f7","editorBracketHighlight.unexpectedBracket.foreground":"#eba0ac","editorBracketMatch.background":"#9399b21a","editorBracketMatch.border":"#9399b2","editorCodeLens.foreground":"#7f849c","editorCursor.background":"#1e1e2e","editorCursor.foreground":"#f5e0dc","editorError.background":"#00000000","editorError.border":"#00000000","editorError.foreground":"#f38ba8","editorGroup.border":"#585b70","editorGroup.dropBackground":"#cba6f733","editorGroup.emptyBackground":"#1e1e2e","editorGroupHeader.tabsBackground":"#11111b","editorGutter.addedBackground":"#a6e3a1","editorGutter.background":"#1e1e2e","editorGutter.commentGlyphForeground":"#cba6f7","editorGutter.commentRangeForeground":"#313244","editorGutter.deletedBackground":"#f38ba8","editorGutter.foldingControlForeground":"#9399b2","editorGutter.modifiedBackground":"#f9e2af","editorHoverWidget.background":"#181825","editorHoverWidget.border":"#585b70","editorHoverWidget.foreground":"#cdd6f4","editorIndentGuide.activeBackground":"#585b70","editorIndentGuide.background":"#45475a","editorInfo.background":"#00000000","editorInfo.border":"#00000000","editorInfo.foreground":"#89b4fa","editorInlayHint.background":"#181825bf","editorInlayHint.foreground":"#585b70","editorInlayHint.parameterBackground":"#181825bf","editorInlayHint.parameterForeground":"#a6adc8","editorInlayHint.typeBackground":"#181825bf","editorInlayHint.typeForeground":"#bac2de","editorLightBulb.foreground":"#f9e2af","editorLineNumber.activeForeground":"#cba6f7","editorLineNumber.foreground":"#7f849c","editorLink.activeForeground":"#cba6f7","editorMarkerNavigation.background":"#181825","editorMarkerNavigationError.background":"#f38ba8","editorMarkerNavigationInfo.background":"#89b4fa","editorMarkerNavigationWarning.background":"#fab387","editorOverviewRuler.background":"#181825","editorOverviewRuler.border":"#cdd6f412","editorOverviewRuler.modifiedForeground":"#f9e2af","editorRuler.foreground":"#585b70","editorStickyScrollHover.background":"#313244","editorSuggestWidget.background":"#181825","editorSuggestWidget.border":"#585b70","editorSuggestWidget.foreground":"#cdd6f4","editorSuggestWidget.highlightForeground":"#cba6f7","editorSuggestWidget.selectedBackground":"#313244","editorWarning.background":"#00000000","editorWarning.border":"#00000000","editorWarning.foreground":"#fab387","editorWhitespace.foreground":"#9399b266","editorWidget.background":"#181825","editorWidget.foreground":"#cdd6f4","editorWidget.resizeBorder":"#585b70","errorForeground":"#f38ba8","errorLens.errorBackground":"#f38ba826","errorLens.errorBackgroundLight":"#f38ba826","errorLens.errorForeground":"#f38ba8","errorLens.errorForegroundLight":"#f38ba8","errorLens.errorMessageBackground":"#f38ba826","errorLens.hintBackground":"#a6e3a126","errorLens.hintBackgroundLight":"#a6e3a126","errorLens.hintForeground":"#a6e3a1","errorLens.hintForegroundLight":"#a6e3a1","errorLens.hintMessageBackground":"#a6e3a126","errorLens.infoBackground":"#89b4fa26","errorLens.infoBackgroundLight":"#89b4fa26","errorLens.infoForeground":"#89b4fa","errorLens.infoForegroundLight":"#89b4fa","errorLens.infoMessageBackground":"#89b4fa26","errorLens.statusBarErrorForeground":"#f38ba8","errorLens.statusBarHintForeground":"#a6e3a1","errorLens.statusBarIconErrorForeground":"#f38ba8","errorLens.statusBarIconWarningForeground":"#fab387","errorLens.statusBarInfoForeground":"#89b4fa","errorLens.statusBarWarningForeground":"#fab387","errorLens.warningBackground":"#fab38726","errorLens.warningBackgroundLight":"#fab38726","errorLens.warningForeground":"#fab387","errorLens.warningForegroundLight":"#fab387","errorLens.warningMessageBackground":"#fab38726","extensionBadge.remoteBackground":"#89b4fa","extensionBadge.remoteForeground":"#11111b","extensionButton.prominentBackground":"#cba6f7","extensionButton.prominentForeground":"#11111b","extensionButton.prominentHoverBackground":"#dec7fa","extensionButton.separator":"#1e1e2e","extensionIcon.preReleaseForeground":"#585b70","extensionIcon.sponsorForeground":"#f5c2e7","extensionIcon.starForeground":"#f9e2af","extensionIcon.verifiedForeground":"#a6e3a1","focusBorder":"#cba6f7","foreground":"#cdd6f4","gitDecoration.addedResourceForeground":"#a6e3a1","gitDecoration.conflictingResourceForeground":"#cba6f7","gitDecoration.deletedResourceForeground":"#f38ba8","gitDecoration.ignoredResourceForeground":"#6c7086","gitDecoration.modifiedResourceForeground":"#f9e2af","gitDecoration.stageDeletedResourceForeground":"#f38ba8","gitDecoration.stageModifiedResourceForeground":"#f9e2af","gitDecoration.submoduleResourceForeground":"#89b4fa","gitDecoration.untrackedResourceForeground":"#a6e3a1","gitlens.closedAutolinkedIssueIconColor":"#cba6f7","gitlens.closedPullRequestIconColor":"#f38ba8","gitlens.decorations.branchAheadForegroundColor":"#a6e3a1","gitlens.decorations.branchBehindForegroundColor":"#fab387","gitlens.decorations.branchDivergedForegroundColor":"#f9e2af","gitlens.decorations.branchMissingUpstreamForegroundColor":"#fab387","gitlens.decorations.branchUnpublishedForegroundColor":"#a6e3a1","gitlens.decorations.statusMergingOrRebasingConflictForegroundColor":"#eba0ac","gitlens.decorations.statusMergingOrRebasingForegroundColor":"#f9e2af","gitlens.decorations.workspaceCurrentForegroundColor":"#cba6f7","gitlens.decorations.workspaceRepoMissingForegroundColor":"#a6adc8","gitlens.decorations.workspaceRepoOpenForegroundColor":"#cba6f7","gitlens.decorations.worktreeHasUncommittedChangesForegroundColor":"#fab387","gitlens.decorations.worktreeMissingForegroundColor":"#eba0ac","gitlens.graphChangesColumnAddedColor":"#a6e3a1","gitlens.graphChangesColumnDeletedColor":"#f38ba8","gitlens.graphLane10Color":"#f5c2e7","gitlens.graphLane1Color":"#cba6f7","gitlens.graphLane2Color":"#f9e2af","gitlens.graphLane3Color":"#89b4fa","gitlens.graphLane4Color":"#f2cdcd","gitlens.graphLane5Color":"#a6e3a1","gitlens.graphLane6Color":"#b4befe","gitlens.graphLane7Color":"#f5e0dc","gitlens.graphLane8Color":"#f38ba8","gitlens.graphLane9Color":"#94e2d5","gitlens.graphMinimapMarkerHeadColor":"#a6e3a1","gitlens.graphMinimapMarkerHighlightsColor":"#f9e2af","gitlens.graphMinimapMarkerLocalBranchesColor":"#89b4fa","gitlens.graphMinimapMarkerRemoteBranchesColor":"#71a4f9","gitlens.graphMinimapMarkerStashesColor":"#cba6f7","gitlens.graphMinimapMarkerTagsColor":"#f2cdcd","gitlens.graphMinimapMarkerUpstreamColor":"#93dd8d","gitlens.graphScrollMarkerHeadColor":"#a6e3a1","gitlens.graphScrollMarkerHighlightsColor":"#f9e2af","gitlens.graphScrollMarkerLocalBranchesColor":"#89b4fa","gitlens.graphScrollMarkerRemoteBranchesColor":"#71a4f9","gitlens.graphScrollMarkerStashesColor":"#cba6f7","gitlens.graphScrollMarkerTagsColor":"#f2cdcd","gitlens.graphScrollMarkerUpstreamColor":"#93dd8d","gitlens.gutterBackgroundColor":"#3132444d","gitlens.gutterForegroundColor":"#cdd6f4","gitlens.gutterUncommittedForegroundColor":"#cba6f7","gitlens.lineHighlightBackgroundColor":"#cba6f726","gitlens.lineHighlightOverviewRulerColor":"#cba6f7cc","gitlens.mergedPullRequestIconColor":"#cba6f7","gitlens.openAutolinkedIssueIconColor":"#a6e3a1","gitlens.openPullRequestIconColor":"#a6e3a1","gitlens.trailingLineBackgroundColor":"#00000000","gitlens.trailingLineForegroundColor":"#cdd6f44d","gitlens.unpublishedChangesIconColor":"#a6e3a1","gitlens.unpublishedCommitIconColor":"#a6e3a1","gitlens.unpulledChangesIconColor":"#fab387","icon.foreground":"#cba6f7","input.background":"#313244","input.border":"#00000000","input.foreground":"#cdd6f4","input.placeholderForeground":"#cdd6f473","inputOption.activeBackground":"#585b70","inputOption.activeBorder":"#cba6f7","inputOption.activeForeground":"#cdd6f4","inputValidation.errorBackground":"#f38ba8","inputValidation.errorBorder":"#11111b33","inputValidation.errorForeground":"#11111b","inputValidation.infoBackground":"#89b4fa","inputValidation.infoBorder":"#11111b33","inputValidation.infoForeground":"#11111b","inputValidation.warningBackground":"#fab387","inputValidation.warningBorder":"#11111b33","inputValidation.warningForeground":"#11111b","issues.closed":"#cba6f7","issues.newIssueDecoration":"#f5e0dc","issues.open":"#a6e3a1","list.activeSelectionBackground":"#313244","list.activeSelectionForeground":"#cdd6f4","list.dropBackground":"#cba6f733","list.focusAndSelectionBackground":"#45475a","list.focusBackground":"#313244","list.focusForeground":"#cdd6f4","list.focusOutline":"#00000000","list.highlightForeground":"#cba6f7","list.hoverBackground":"#31324480","list.hoverForeground":"#cdd6f4","list.inactiveSelectionBackground":"#313244","list.inactiveSelectionForeground":"#cdd6f4","list.warningForeground":"#fab387","listFilterWidget.background":"#45475a","listFilterWidget.noMatchesOutline":"#f38ba8","listFilterWidget.outline":"#00000000","menu.background":"#1e1e2e","menu.border":"#1e1e2e80","menu.foreground":"#cdd6f4","menu.selectionBackground":"#585b70","menu.selectionBorder":"#00000000","menu.selectionForeground":"#cdd6f4","menu.separatorBackground":"#585b70","menubar.selectionBackground":"#45475a","menubar.selectionForeground":"#cdd6f4","merge.commonContentBackground":"#45475a","merge.commonHeaderBackground":"#585b70","merge.currentContentBackground":"#a6e3a133","merge.currentHeaderBackground":"#a6e3a166","merge.incomingContentBackground":"#89b4fa33","merge.incomingHeaderBackground":"#89b4fa66","minimap.background":"#18182580","minimap.errorHighlight":"#f38ba8bf","minimap.findMatchHighlight":"#89dceb4d","minimap.selectionHighlight":"#585b70bf","minimap.selectionOccurrenceHighlight":"#585b70bf","minimap.warningHighlight":"#fab387bf","minimapGutter.addedBackground":"#a6e3a1bf","minimapGutter.deletedBackground":"#f38ba8bf","minimapGutter.modifiedBackground":"#f9e2afbf","minimapSlider.activeBackground":"#cba6f799","minimapSlider.background":"#cba6f733","minimapSlider.hoverBackground":"#cba6f766","notificationCenter.border":"#cba6f7","notificationCenterHeader.background":"#181825","notificationCenterHeader.foreground":"#cdd6f4","notificationLink.foreground":"#89b4fa","notificationToast.border":"#cba6f7","notifications.background":"#181825","notifications.border":"#cba6f7","notifications.foreground":"#cdd6f4","notificationsErrorIcon.foreground":"#f38ba8","notificationsInfoIcon.foreground":"#89b4fa","notificationsWarningIcon.foreground":"#fab387","panel.background":"#1e1e2e","panel.border":"#585b70","panelSection.border":"#585b70","panelSection.dropBackground":"#cba6f733","panelTitle.activeBorder":"#cba6f7","panelTitle.activeForeground":"#cdd6f4","panelTitle.inactiveForeground":"#a6adc8","peekView.border":"#cba6f7","peekViewEditor.background":"#181825","peekViewEditor.matchHighlightBackground":"#89dceb4d","peekViewEditor.matchHighlightBorder":"#00000000","peekViewEditorGutter.background":"#181825","peekViewResult.background":"#181825","peekViewResult.fileForeground":"#cdd6f4","peekViewResult.lineForeground":"#cdd6f4","peekViewResult.matchHighlightBackground":"#89dceb4d","peekViewResult.selectionBackground":"#313244","peekViewResult.selectionForeground":"#cdd6f4","peekViewTitle.background":"#1e1e2e","peekViewTitleDescription.foreground":"#bac2deb3","peekViewTitleLabel.foreground":"#cdd6f4","pickerGroup.border":"#cba6f7","pickerGroup.foreground":"#cba6f7","problemsErrorIcon.foreground":"#f38ba8","problemsInfoIcon.foreground":"#89b4fa","problemsWarningIcon.foreground":"#fab387","progressBar.background":"#cba6f7","pullRequests.closed":"#f38ba8","pullRequests.draft":"#9399b2","pullRequests.merged":"#cba6f7","pullRequests.notification":"#cdd6f4","pullRequests.open":"#a6e3a1","sash.hoverBorder":"#cba6f7","scmGraph.foreground1":"#f9e2af","scmGraph.foreground2":"#f38ba8","scmGraph.foreground3":"#a6e3a1","scmGraph.foreground4":"#cba6f7","scmGraph.foreground5":"#94e2d5","scmGraph.historyItemBaseRefColor":"#fab387","scmGraph.historyItemRefColor":"#89b4fa","scmGraph.historyItemRemoteRefColor":"#cba6f7","scrollbar.shadow":"#11111b","scrollbarSlider.activeBackground":"#31324466","scrollbarSlider.background":"#585b7080","scrollbarSlider.hoverBackground":"#6c7086","selection.background":"#cba6f766","settings.dropdownBackground":"#45475a","settings.dropdownListBorder":"#00000000","settings.focusedRowBackground":"#585b7033","settings.headerForeground":"#cdd6f4","settings.modifiedItemIndicator":"#cba6f7","settings.numberInputBackground":"#45475a","settings.numberInputBorder":"#00000000","settings.textInputBackground":"#45475a","settings.textInputBorder":"#00000000","sideBar.background":"#181825","sideBar.border":"#00000000","sideBar.dropBackground":"#cba6f733","sideBar.foreground":"#cdd6f4","sideBarSectionHeader.background":"#181825","sideBarSectionHeader.foreground":"#cdd6f4","sideBarTitle.foreground":"#cba6f7","statusBar.background":"#11111b","statusBar.border":"#00000000","statusBar.debuggingBackground":"#fab387","statusBar.debuggingBorder":"#00000000","statusBar.debuggingForeground":"#11111b","statusBar.foreground":"#cdd6f4","statusBar.noFolderBackground":"#11111b","statusBar.noFolderBorder":"#00000000","statusBar.noFolderForeground":"#cdd6f4","statusBarItem.activeBackground":"#585b7066","statusBarItem.errorBackground":"#00000000","statusBarItem.errorForeground":"#f38ba8","statusBarItem.hoverBackground":"#585b7033","statusBarItem.prominentBackground":"#00000000","statusBarItem.prominentForeground":"#cba6f7","statusBarItem.prominentHoverBackground":"#585b7033","statusBarItem.remoteBackground":"#89b4fa","statusBarItem.remoteForeground":"#11111b","statusBarItem.warningBackground":"#00000000","statusBarItem.warningForeground":"#fab387","symbolIcon.arrayForeground":"#fab387","symbolIcon.booleanForeground":"#cba6f7","symbolIcon.classForeground":"#f9e2af","symbolIcon.colorForeground":"#f5c2e7","symbolIcon.constantForeground":"#fab387","symbolIcon.constructorForeground":"#b4befe","symbolIcon.enumeratorForeground":"#f9e2af","symbolIcon.enumeratorMemberForeground":"#f9e2af","symbolIcon.eventForeground":"#f5c2e7","symbolIcon.fieldForeground":"#cdd6f4","symbolIcon.fileForeground":"#cba6f7","symbolIcon.folderForeground":"#cba6f7","symbolIcon.functionForeground":"#89b4fa","symbolIcon.interfaceForeground":"#f9e2af","symbolIcon.keyForeground":"#94e2d5","symbolIcon.keywordForeground":"#cba6f7","symbolIcon.methodForeground":"#89b4fa","symbolIcon.moduleForeground":"#cdd6f4","symbolIcon.namespaceForeground":"#f9e2af","symbolIcon.nullForeground":"#eba0ac","symbolIcon.numberForeground":"#fab387","symbolIcon.objectForeground":"#f9e2af","symbolIcon.operatorForeground":"#94e2d5","symbolIcon.packageForeground":"#f2cdcd","symbolIcon.propertyForeground":"#eba0ac","symbolIcon.referenceForeground":"#f9e2af","symbolIcon.snippetForeground":"#f2cdcd","symbolIcon.stringForeground":"#a6e3a1","symbolIcon.structForeground":"#94e2d5","symbolIcon.textForeground":"#cdd6f4","symbolIcon.typeParameterForeground":"#eba0ac","symbolIcon.unitForeground":"#cdd6f4","symbolIcon.variableForeground":"#cdd6f4","tab.activeBackground":"#1e1e2e","tab.activeBorder":"#00000000","tab.activeBorderTop":"#cba6f7","tab.activeForeground":"#cba6f7","tab.activeModifiedBorder":"#f9e2af","tab.border":"#181825","tab.hoverBackground":"#28283d","tab.hoverBorder":"#00000000","tab.hoverForeground":"#cba6f7","tab.inactiveBackground":"#181825","tab.inactiveForeground":"#6c7086","tab.inactiveModifiedBorder":"#f9e2af4d","tab.lastPinnedBorder":"#cba6f7","tab.unfocusedActiveBackground":"#181825","tab.unfocusedActiveBorder":"#00000000","tab.unfocusedActiveBorderTop":"#cba6f74d","tab.unfocusedInactiveBackground":"#0e0e16","table.headerBackground":"#313244","table.headerForeground":"#cdd6f4","terminal.ansiBlack":"#45475a","terminal.ansiBlue":"#89b4fa","terminal.ansiBrightBlack":"#585b70","terminal.ansiBrightBlue":"#74a8fc","terminal.ansiBrightCyan":"#6bd7ca","terminal.ansiBrightGreen":"#89d88b","terminal.ansiBrightMagenta":"#f2aede","terminal.ansiBrightRed":"#f37799","terminal.ansiBrightWhite":"#bac2de","terminal.ansiBrightYellow":"#ebd391","terminal.ansiCyan":"#94e2d5","terminal.ansiGreen":"#a6e3a1","terminal.ansiMagenta":"#f5c2e7","terminal.ansiRed":"#f38ba8","terminal.ansiWhite":"#a6adc8","terminal.ansiYellow":"#f9e2af","terminal.border":"#585b70","terminal.dropBackground":"#cba6f733","terminal.foreground":"#cdd6f4","terminal.inactiveSelectionBackground":"#585b7080","terminal.selectionBackground":"#585b70","terminal.tab.activeBorder":"#cba6f7","terminalCommandDecoration.defaultBackground":"#585b70","terminalCommandDecoration.errorBackground":"#f38ba8","terminalCommandDecoration.successBackground":"#a6e3a1","terminalCursor.background":"#1e1e2e","terminalCursor.foreground":"#f5e0dc","testing.coverCountBadgeBackground":"#00000000","testing.coverCountBadgeForeground":"#cba6f7","testing.coveredBackground":"#a6e3a14d","testing.coveredBorder":"#00000000","testing.coveredGutterBackground":"#a6e3a14d","testing.iconErrored":"#f38ba8","testing.iconErrored.retired":"#f38ba8","testing.iconFailed":"#f38ba8","testing.iconFailed.retired":"#f38ba8","testing.iconPassed":"#a6e3a1","testing.iconPassed.retired":"#a6e3a1","testing.iconQueued":"#89b4fa","testing.iconQueued.retired":"#89b4fa","testing.iconSkipped":"#a6adc8","testing.iconSkipped.retired":"#a6adc8","testing.iconUnset":"#cdd6f4","testing.iconUnset.retired":"#cdd6f4","testing.message.error.lineBackground":"#f38ba826","testing.message.info.decorationForeground":"#a6e3a1cc","testing.message.info.lineBackground":"#a6e3a126","testing.messagePeekBorder":"#cba6f7","testing.messagePeekHeaderBackground":"#585b70","testing.peekBorder":"#cba6f7","testing.peekHeaderBackground":"#585b70","testing.runAction":"#cba6f7","testing.uncoveredBackground":"#f38ba833","testing.uncoveredBorder":"#00000000","testing.uncoveredBranchBackground":"#f38ba833","testing.uncoveredGutterBackground":"#f38ba840","textBlockQuote.background":"#181825","textBlockQuote.border":"#11111b","textCodeBlock.background":"#181825","textLink.activeForeground":"#89dceb","textLink.foreground":"#89b4fa","textPreformat.foreground":"#cdd6f4","textSeparator.foreground":"#cba6f7","titleBar.activeBackground":"#11111b","titleBar.activeForeground":"#cdd6f4","titleBar.border":"#00000000","titleBar.inactiveBackground":"#11111b","titleBar.inactiveForeground":"#cdd6f480","tree.inactiveIndentGuidesStroke":"#45475a","tree.indentGuidesStroke":"#9399b2","walkThrough.embeddedEditorBackground":"#1e1e2e4d","welcomePage.progress.background":"#11111b","welcomePage.progress.foreground":"#cba6f7","welcomePage.tileBackground":"#181825","widget.shadow":"#18182580","window.activeBorder":"#00000000","window.inactiveBorder":"#00000000"},"displayName":"Catppuccin Mocha","name":"catppuccin-mocha","semanticHighlighting":true,"semanticTokenColors":{"boolean":{"foreground":"#fab387"},"builtinAttribute.attribute.library:rust":{"foreground":"#89b4fa"},"class.builtin:python":{"foreground":"#cba6f7"},"class:python":{"foreground":"#f9e2af"},"constant.builtin.readonly:nix":{"foreground":"#cba6f7"},"enumMember":{"foreground":"#94e2d5"},"function.decorator:python":{"foreground":"#fab387"},"generic.attribute:rust":{"foreground":"#cdd6f4"},"heading":{"foreground":"#f38ba8"},"number":{"foreground":"#fab387"},"pol":{"foreground":"#f2cdcd"},"property.readonly:javascript":{"foreground":"#cdd6f4"},"property.readonly:javascriptreact":{"foreground":"#cdd6f4"},"property.readonly:typescript":{"foreground":"#cdd6f4"},"property.readonly:typescriptreact":{"foreground":"#cdd6f4"},"selfKeyword":{"foreground":"#f38ba8"},"text.emph":{"fontStyle":"italic","foreground":"#f38ba8"},"text.math":{"foreground":"#f2cdcd"},"text.strong":{"fontStyle":"bold","foreground":"#f38ba8"},"tomlArrayKey":{"fontStyle":"","foreground":"#89b4fa"},"tomlTableKey":{"fontStyle":"","foreground":"#89b4fa"},"type.defaultLibrary:go":{"foreground":"#cba6f7"},"variable.defaultLibrary":{"foreground":"#eba0ac"},"variable.readonly.defaultLibrary:go":{"foreground":"#cba6f7"},"variable.readonly:javascript":{"foreground":"#cdd6f4"},"variable.readonly:javascriptreact":{"foreground":"#cdd6f4"},"variable.readonly:scala":{"foreground":"#cdd6f4"},"variable.readonly:typescript":{"foreground":"#cdd6f4"},"variable.readonly:typescriptreact":{"foreground":"#cdd6f4"},"variable.typeHint:python":{"foreground":"#f9e2af"}},"tokenColors":[{"scope":["text","source","variable.other.readwrite","punctuation.definition.variable"],"settings":{"foreground":"#cdd6f4"}},{"scope":"punctuation","settings":{"fontStyle":"","foreground":"#9399b2"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#9399b2"}},{"scope":["string","punctuation.definition.string"],"settings":{"foreground":"#a6e3a1"}},{"scope":"constant.character.escape","settings":{"foreground":"#f5c2e7"}},{"scope":["constant.numeric","variable.other.constant","entity.name.constant","constant.language.boolean","constant.language.false","constant.language.true","keyword.other.unit.user-defined","keyword.other.unit.suffix.floating-point"],"settings":{"foreground":"#fab387"}},{"scope":["keyword","keyword.operator.word","keyword.operator.new","variable.language.super","support.type.primitive","storage.type","storage.modifier","punctuation.definition.keyword"],"settings":{"fontStyle":"","foreground":"#cba6f7"}},{"scope":"entity.name.tag.documentation","settings":{"foreground":"#cba6f7"}},{"scope":["keyword.operator","punctuation.accessor","punctuation.definition.generic","meta.function.closure punctuation.section.parameters","punctuation.definition.tag","punctuation.separator.key-value"],"settings":{"foreground":"#94e2d5"}},{"scope":["entity.name.function","meta.function-call.method","support.function","support.function.misc","variable.function"],"settings":{"fontStyle":"italic","foreground":"#89b4fa"}},{"scope":["entity.name.class","entity.other.inherited-class","support.class","meta.function-call.constructor","entity.name.struct"],"settings":{"fontStyle":"italic","foreground":"#f9e2af"}},{"scope":"entity.name.enum","settings":{"fontStyle":"italic","foreground":"#f9e2af"}},{"scope":["meta.enum variable.other.readwrite","variable.other.enummember"],"settings":{"foreground":"#94e2d5"}},{"scope":"meta.property.object","settings":{"foreground":"#94e2d5"}},{"scope":["meta.type","meta.type-alias","support.type","entity.name.type"],"settings":{"fontStyle":"italic","foreground":"#f9e2af"}},{"scope":["meta.annotation variable.function","meta.annotation variable.annotation.function","meta.annotation punctuation.definition.annotation","meta.decorator","punctuation.decorator"],"settings":{"foreground":"#fab387"}},{"scope":["variable.parameter","meta.function.parameters"],"settings":{"fontStyle":"italic","foreground":"#eba0ac"}},{"scope":["constant.language","support.function.builtin"],"settings":{"foreground":"#f38ba8"}},{"scope":"entity.other.attribute-name.documentation","settings":{"foreground":"#f38ba8"}},{"scope":["keyword.control.directive","punctuation.definition.directive"],"settings":{"foreground":"#f9e2af"}},{"scope":"punctuation.definition.typeparameters","settings":{"foreground":"#89dceb"}},{"scope":"entity.name.namespace","settings":{"foreground":"#f9e2af"}},{"scope":["support.type.property-name.css","support.type.property-name.less"],"settings":{"fontStyle":"","foreground":"#89b4fa"}},{"scope":["variable.language.this","variable.language.this punctuation.definition.variable"],"settings":{"foreground":"#f38ba8"}},{"scope":"variable.object.property","settings":{"foreground":"#cdd6f4"}},{"scope":["string.template variable","string variable"],"settings":{"foreground":"#cdd6f4"}},{"scope":"keyword.operator.new","settings":{"fontStyle":"bold"}},{"scope":"storage.modifier.specifier.extern.cpp","settings":{"foreground":"#cba6f7"}},{"scope":["entity.name.scope-resolution.template.call.cpp","entity.name.scope-resolution.parameter.cpp","entity.name.scope-resolution.cpp","entity.name.scope-resolution.function.definition.cpp"],"settings":{"foreground":"#f9e2af"}},{"scope":"storage.type.class.doxygen","settings":{"fontStyle":""}},{"scope":["storage.modifier.reference.cpp"],"settings":{"foreground":"#94e2d5"}},{"scope":"meta.interpolation.cs","settings":{"foreground":"#cdd6f4"}},{"scope":"comment.block.documentation.cs","settings":{"foreground":"#cdd6f4"}},{"scope":["source.css entity.other.attribute-name.class.css","entity.other.attribute-name.parent-selector.css punctuation.definition.entity.css"],"settings":{"foreground":"#f9e2af"}},{"scope":"punctuation.separator.operator.css","settings":{"foreground":"#94e2d5"}},{"scope":"source.css entity.other.attribute-name.pseudo-class","settings":{"foreground":"#94e2d5"}},{"scope":"source.css constant.other.unicode-range","settings":{"foreground":"#fab387"}},{"scope":"source.css variable.parameter.url","settings":{"fontStyle":"","foreground":"#a6e3a1"}},{"scope":["support.type.vendored.property-name"],"settings":{"foreground":"#89dceb"}},{"scope":["source.css meta.property-value variable","source.css meta.property-value variable.other.less","source.css meta.property-value variable.other.less punctuation.definition.variable.less","meta.definition.variable.scss"],"settings":{"foreground":"#eba0ac"}},{"scope":["source.css meta.property-list variable","meta.property-list variable.other.less","meta.property-list variable.other.less punctuation.definition.variable.less"],"settings":{"foreground":"#89b4fa"}},{"scope":"keyword.other.unit.percentage.css","settings":{"foreground":"#fab387"}},{"scope":"source.css meta.attribute-selector","settings":{"foreground":"#a6e3a1"}},{"scope":["keyword.other.definition.ini","punctuation.support.type.property-name.json","support.type.property-name.json","punctuation.support.type.property-name.toml","support.type.property-name.toml","entity.name.tag.yaml","punctuation.support.type.property-name.yaml","support.type.property-name.yaml"],"settings":{"fontStyle":"","foreground":"#89b4fa"}},{"scope":["constant.language.json","constant.language.yaml"],"settings":{"foreground":"#fab387"}},{"scope":["entity.name.type.anchor.yaml","variable.other.alias.yaml"],"settings":{"fontStyle":"","foreground":"#f9e2af"}},{"scope":["support.type.property-name.table","entity.name.section.group-title.ini"],"settings":{"foreground":"#f9e2af"}},{"scope":"constant.other.time.datetime.offset.toml","settings":{"foreground":"#f5c2e7"}},{"scope":["punctuation.definition.anchor.yaml","punctuation.definition.alias.yaml"],"settings":{"foreground":"#f5c2e7"}},{"scope":"entity.other.document.begin.yaml","settings":{"foreground":"#f5c2e7"}},{"scope":"markup.changed.diff","settings":{"foreground":"#fab387"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#89b4fa"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#a6e3a1"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#f38ba8"}},{"scope":["variable.other.env"],"settings":{"foreground":"#89b4fa"}},{"scope":["string.quoted variable.other.env"],"settings":{"foreground":"#cdd6f4"}},{"scope":"support.function.builtin.gdscript","settings":{"foreground":"#89b4fa"}},{"scope":"constant.language.gdscript","settings":{"foreground":"#fab387"}},{"scope":"comment meta.annotation.go","settings":{"foreground":"#eba0ac"}},{"scope":"comment meta.annotation.parameters.go","settings":{"foreground":"#fab387"}},{"scope":"constant.language.go","settings":{"foreground":"#fab387"}},{"scope":"variable.graphql","settings":{"foreground":"#cdd6f4"}},{"scope":"string.unquoted.alias.graphql","settings":{"foreground":"#f2cdcd"}},{"scope":"constant.character.enum.graphql","settings":{"foreground":"#94e2d5"}},{"scope":"meta.objectvalues.graphql constant.object.key.graphql string.unquoted.graphql","settings":{"foreground":"#f2cdcd"}},{"scope":["keyword.other.doctype","meta.tag.sgml.doctype punctuation.definition.tag","meta.tag.metadata.doctype entity.name.tag","meta.tag.metadata.doctype punctuation.definition.tag"],"settings":{"foreground":"#cba6f7"}},{"scope":["entity.name.tag"],"settings":{"fontStyle":"","foreground":"#89b4fa"}},{"scope":["text.html constant.character.entity","text.html constant.character.entity punctuation","constant.character.entity.xml","constant.character.entity.xml punctuation","constant.character.entity.js.jsx","constant.charactger.entity.js.jsx punctuation","constant.character.entity.tsx","constant.character.entity.tsx punctuation"],"settings":{"foreground":"#f38ba8"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#f9e2af"}},{"scope":["support.class.component","support.class.component.jsx","support.class.component.tsx","support.class.component.vue"],"settings":{"fontStyle":"","foreground":"#f5c2e7"}},{"scope":["punctuation.definition.annotation","storage.type.annotation"],"settings":{"foreground":"#fab387"}},{"scope":"constant.other.enum.java","settings":{"foreground":"#94e2d5"}},{"scope":"storage.modifier.import.java","settings":{"foreground":"#cdd6f4"}},{"scope":"comment.block.javadoc.java keyword.other.documentation.javadoc.java","settings":{"fontStyle":""}},{"scope":"meta.export variable.other.readwrite.js","settings":{"foreground":"#eba0ac"}},{"scope":["variable.other.constant.js","variable.other.constant.ts","variable.other.property.js","variable.other.property.ts"],"settings":{"foreground":"#cdd6f4"}},{"scope":["variable.other.jsdoc","comment.block.documentation variable.other"],"settings":{"fontStyle":"","foreground":"#eba0ac"}},{"scope":"storage.type.class.jsdoc","settings":{"fontStyle":""}},{"scope":"support.type.object.console.js","settings":{"foreground":"#cdd6f4"}},{"scope":["support.constant.node","support.type.object.module.js"],"settings":{"foreground":"#cba6f7"}},{"scope":"storage.modifier.implements","settings":{"foreground":"#cba6f7"}},{"scope":["constant.language.null.js","constant.language.null.ts","constant.language.undefined.js","constant.language.undefined.ts","support.type.builtin.ts"],"settings":{"foreground":"#cba6f7"}},{"scope":"variable.parameter.generic","settings":{"foreground":"#f9e2af"}},{"scope":["keyword.declaration.function.arrow.js","storage.type.function.arrow.ts"],"settings":{"foreground":"#94e2d5"}},{"scope":"punctuation.decorator.ts","settings":{"fontStyle":"italic","foreground":"#89b4fa"}},{"scope":["keyword.operator.expression.in.js","keyword.operator.expression.in.ts","keyword.operator.expression.infer.ts","keyword.operator.expression.instanceof.js","keyword.operator.expression.instanceof.ts","keyword.operator.expression.is","keyword.operator.expression.keyof.ts","keyword.operator.expression.of.js","keyword.operator.expression.of.ts","keyword.operator.expression.typeof.ts"],"settings":{"foreground":"#cba6f7"}},{"scope":"support.function.macro.julia","settings":{"fontStyle":"italic","foreground":"#94e2d5"}},{"scope":"constant.language.julia","settings":{"foreground":"#fab387"}},{"scope":"constant.other.symbol.julia","settings":{"foreground":"#eba0ac"}},{"scope":"text.tex keyword.control.preamble","settings":{"foreground":"#94e2d5"}},{"scope":"text.tex support.function.be","settings":{"foreground":"#89dceb"}},{"scope":"constant.other.general.math.tex","settings":{"foreground":"#f2cdcd"}},{"scope":"variable.language.liquid","settings":{"foreground":"#f5c2e7"}},{"scope":"comment.line.double-dash.documentation.lua storage.type.annotation.lua","settings":{"fontStyle":"","foreground":"#cba6f7"}},{"scope":["comment.line.double-dash.documentation.lua entity.name.variable.lua","comment.line.double-dash.documentation.lua variable.lua"],"settings":{"foreground":"#cdd6f4"}},{"scope":["heading.1.markdown punctuation.definition.heading.markdown","heading.1.markdown","heading.1.quarto punctuation.definition.heading.quarto","heading.1.quarto","markup.heading.atx.1.mdx","markup.heading.atx.1.mdx punctuation.definition.heading.mdx","markup.heading.setext.1.markdown","markup.heading.heading-0.asciidoc"],"settings":{"foreground":"#f38ba8"}},{"scope":["heading.2.markdown punctuation.definition.heading.markdown","heading.2.markdown","heading.2.quarto punctuation.definition.heading.quarto","heading.2.quarto","markup.heading.atx.2.mdx","markup.heading.atx.2.mdx punctuation.definition.heading.mdx","markup.heading.setext.2.markdown","markup.heading.heading-1.asciidoc"],"settings":{"foreground":"#fab387"}},{"scope":["heading.3.markdown punctuation.definition.heading.markdown","heading.3.markdown","heading.3.quarto punctuation.definition.heading.quarto","heading.3.quarto","markup.heading.atx.3.mdx","markup.heading.atx.3.mdx punctuation.definition.heading.mdx","markup.heading.heading-2.asciidoc"],"settings":{"foreground":"#f9e2af"}},{"scope":["heading.4.markdown punctuation.definition.heading.markdown","heading.4.markdown","heading.4.quarto punctuation.definition.heading.quarto","heading.4.quarto","markup.heading.atx.4.mdx","markup.heading.atx.4.mdx punctuation.definition.heading.mdx","markup.heading.heading-3.asciidoc"],"settings":{"foreground":"#a6e3a1"}},{"scope":["heading.5.markdown punctuation.definition.heading.markdown","heading.5.markdown","heading.5.quarto punctuation.definition.heading.quarto","heading.5.quarto","markup.heading.atx.5.mdx","markup.heading.atx.5.mdx punctuation.definition.heading.mdx","markup.heading.heading-4.asciidoc"],"settings":{"foreground":"#74c7ec"}},{"scope":["heading.6.markdown punctuation.definition.heading.markdown","heading.6.markdown","heading.6.quarto punctuation.definition.heading.quarto","heading.6.quarto","markup.heading.atx.6.mdx","markup.heading.atx.6.mdx punctuation.definition.heading.mdx","markup.heading.heading-5.asciidoc"],"settings":{"foreground":"#b4befe"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#f38ba8"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#f38ba8"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough","foreground":"#a6adc8"}},{"scope":["punctuation.definition.link","markup.underline.link"],"settings":{"foreground":"#89b4fa"}},{"scope":["text.html.markdown punctuation.definition.link.title","text.html.quarto punctuation.definition.link.title","string.other.link.title.markdown","string.other.link.title.quarto","markup.link","punctuation.definition.constant.markdown","punctuation.definition.constant.quarto","constant.other.reference.link.markdown","constant.other.reference.link.quarto","markup.substitution.attribute-reference"],"settings":{"foreground":"#b4befe"}},{"scope":["punctuation.definition.raw.markdown","punctuation.definition.raw.quarto","markup.inline.raw.string.markdown","markup.inline.raw.string.quarto","markup.raw.block.markdown","markup.raw.block.quarto"],"settings":{"foreground":"#a6e3a1"}},{"scope":"fenced_code.block.language","settings":{"foreground":"#89dceb"}},{"scope":["markup.fenced_code.block punctuation.definition","markup.raw support.asciidoc"],"settings":{"foreground":"#9399b2"}},{"scope":["markup.quote","punctuation.definition.quote.begin"],"settings":{"foreground":"#f5c2e7"}},{"scope":"meta.separator.markdown","settings":{"foreground":"#94e2d5"}},{"scope":["punctuation.definition.list.begin.markdown","punctuation.definition.list.begin.quarto","markup.list.bullet"],"settings":{"foreground":"#94e2d5"}},{"scope":"markup.heading.quarto","settings":{"fontStyle":"bold"}},{"scope":["entity.other.attribute-name.multipart.nix","entity.other.attribute-name.single.nix"],"settings":{"foreground":"#89b4fa"}},{"scope":"variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#cdd6f4"}},{"scope":"meta.embedded variable.parameter.name.nix","settings":{"fontStyle":"","foreground":"#b4befe"}},{"scope":"string.unquoted.path.nix","settings":{"fontStyle":"","foreground":"#f5c2e7"}},{"scope":["support.attribute.builtin","meta.attribute.php"],"settings":{"foreground":"#f9e2af"}},{"scope":"meta.function.parameters.php punctuation.definition.variable.php","settings":{"foreground":"#eba0ac"}},{"scope":"constant.language.php","settings":{"foreground":"#cba6f7"}},{"scope":"text.html.php support.function","settings":{"foreground":"#89dceb"}},{"scope":"keyword.other.phpdoc.php","settings":{"fontStyle":""}},{"scope":["support.variable.magic.python","meta.function-call.arguments.python"],"settings":{"foreground":"#cdd6f4"}},{"scope":["support.function.magic.python"],"settings":{"fontStyle":"italic","foreground":"#89dceb"}},{"scope":["variable.parameter.function.language.special.self.python","variable.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#f38ba8"}},{"scope":["keyword.control.flow.python","keyword.operator.logical.python"],"settings":{"foreground":"#cba6f7"}},{"scope":"storage.type.function.python","settings":{"foreground":"#cba6f7"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#89dceb"}},{"scope":["meta.function-call.python"],"settings":{"foreground":"#89b4fa"}},{"scope":["entity.name.function.decorator.python","punctuation.definition.decorator.python"],"settings":{"fontStyle":"italic","foreground":"#fab387"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#f5c2e7"}},{"scope":["support.type.exception.python","support.function.builtin.python"],"settings":{"foreground":"#fab387"}},{"scope":["support.type.python"],"settings":{"foreground":"#cba6f7"}},{"scope":"constant.language.python","settings":{"foreground":"#fab387"}},{"scope":["meta.indexed-name.python","meta.item-access.python"],"settings":{"fontStyle":"italic","foreground":"#eba0ac"}},{"scope":"storage.type.string.python","settings":{"fontStyle":"italic","foreground":"#a6e3a1"}},{"scope":"meta.function.parameters.python","settings":{"fontStyle":""}},{"scope":"meta.function-call.r","settings":{"foreground":"#89b4fa"}},{"scope":"meta.function-call.arguments.r","settings":{"foreground":"#cdd6f4"}},{"scope":["string.regexp punctuation.definition.string.begin","string.regexp punctuation.definition.string.end"],"settings":{"foreground":"#f5c2e7"}},{"scope":"keyword.control.anchor.regexp","settings":{"foreground":"#cba6f7"}},{"scope":"string.regexp.ts","settings":{"foreground":"#cdd6f4"}},{"scope":["punctuation.definition.group.regexp","keyword.other.back-reference.regexp"],"settings":{"foreground":"#a6e3a1"}},{"scope":"punctuation.definition.character-class.regexp","settings":{"foreground":"#f9e2af"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#f5c2e7"}},{"scope":"constant.other.character-class.range.regexp","settings":{"foreground":"#f5e0dc"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#94e2d5"}},{"scope":"constant.character.numeric.regexp","settings":{"foreground":"#fab387"}},{"scope":["punctuation.definition.group.no-capture.regexp","meta.assertion.look-ahead.regexp","meta.assertion.negative-look-ahead.regexp"],"settings":{"foreground":"#89b4fa"}},{"scope":["meta.annotation.rust","meta.annotation.rust punctuation","meta.attribute.rust","punctuation.definition.attribute.rust"],"settings":{"fontStyle":"italic","foreground":"#f9e2af"}},{"scope":["meta.attribute.rust string.quoted.double.rust","meta.attribute.rust string.quoted.single.char.rust"],"settings":{"fontStyle":""}},{"scope":["entity.name.function.macro.rules.rust","storage.type.module.rust","storage.modifier.rust","storage.type.struct.rust","storage.type.enum.rust","storage.type.trait.rust","storage.type.union.rust","storage.type.impl.rust","storage.type.rust","storage.type.function.rust","storage.type.type.rust"],"settings":{"fontStyle":"","foreground":"#cba6f7"}},{"scope":"entity.name.type.numeric.rust","settings":{"fontStyle":"","foreground":"#cba6f7"}},{"scope":"meta.generic.rust","settings":{"foreground":"#fab387"}},{"scope":"entity.name.impl.rust","settings":{"fontStyle":"italic","foreground":"#f9e2af"}},{"scope":"entity.name.module.rust","settings":{"foreground":"#fab387"}},{"scope":"entity.name.trait.rust","settings":{"fontStyle":"italic","foreground":"#f9e2af"}},{"scope":"storage.type.source.rust","settings":{"foreground":"#f9e2af"}},{"scope":"entity.name.union.rust","settings":{"foreground":"#f9e2af"}},{"scope":"meta.enum.rust storage.type.source.rust","settings":{"foreground":"#94e2d5"}},{"scope":["support.macro.rust","meta.macro.rust support.function.rust","entity.name.function.macro.rust"],"settings":{"fontStyle":"italic","foreground":"#89b4fa"}},{"scope":["storage.modifier.lifetime.rust","entity.name.type.lifetime"],"settings":{"fontStyle":"italic","foreground":"#89b4fa"}},{"scope":"string.quoted.double.rust constant.other.placeholder.rust","settings":{"foreground":"#f5c2e7"}},{"scope":"meta.function.return-type.rust meta.generic.rust storage.type.rust","settings":{"foreground":"#cdd6f4"}},{"scope":"meta.function.call.rust","settings":{"foreground":"#89b4fa"}},{"scope":"punctuation.brackets.angle.rust","settings":{"foreground":"#89dceb"}},{"scope":"constant.other.caps.rust","settings":{"foreground":"#fab387"}},{"scope":["meta.function.definition.rust variable.other.rust"],"settings":{"foreground":"#eba0ac"}},{"scope":"meta.function.call.rust variable.other.rust","settings":{"foreground":"#cdd6f4"}},{"scope":"variable.language.self.rust","settings":{"foreground":"#f38ba8"}},{"scope":["variable.other.metavariable.name.rust","meta.macro.metavariable.rust keyword.operator.macro.dollar.rust"],"settings":{"foreground":"#f5c2e7"}},{"scope":["comment.line.shebang","comment.line.shebang punctuation.definition.comment","comment.line.shebang","punctuation.definition.comment.shebang.shell","meta.shebang.shell"],"settings":{"fontStyle":"italic","foreground":"#f5c2e7"}},{"scope":"comment.line.shebang constant.language","settings":{"fontStyle":"italic","foreground":"#94e2d5"}},{"scope":["meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation","meta.function-call.arguments.shell punctuation.definition.variable.shell","meta.function-call.arguments.shell punctuation.section.interpolation"],"settings":{"foreground":"#f38ba8"}},{"scope":"meta.string meta.interpolation.parameter.shell variable.other.readwrite","settings":{"fontStyle":"italic","foreground":"#fab387"}},{"scope":["source.shell punctuation.section.interpolation","punctuation.definition.evaluation.backticks.shell"],"settings":{"foreground":"#94e2d5"}},{"scope":"entity.name.tag.heredoc.shell","settings":{"foreground":"#cba6f7"}},{"scope":"string.quoted.double.shell variable.other.normal.shell","settings":{"foreground":"#cdd6f4"}},{"scope":["markup.heading.typst"],"settings":{"foreground":"#f38ba8"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/cell-editor-BaPoX5lw.js b/docs/assets/cell-editor-BaPoX5lw.js new file mode 100644 index 0000000..5e1887a --- /dev/null +++ b/docs/assets/cell-editor-BaPoX5lw.js @@ -0,0 +1,23 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./loro_wasm_bg-BVxoQZ3o.js","./loro_wasm_bg-BCxPjJ2X.js","./chunk-LvLJmgfZ.js"])))=>i.map(i=>d[i]); +var od=Object.defineProperty;var Fa=re=>{throw TypeError(re)};var ad=(re,q,ge)=>q in re?od(re,q,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[q]=ge;var h=(re,q,ge)=>ad(re,typeof q!="symbol"?q+"":q,ge),id=(re,q,ge)=>q.has(re)||Fa("Cannot "+ge);var La=(re,q,ge)=>(id(re,q,"read from private field"),ge?ge.call(re):q.get(re)),Oa=(re,q,ge)=>q.has(re)?Fa("Cannot add the same private member more than once"):q instanceof WeakSet?q.add(re):q.set(re,ge);import{s as Da}from"./chunk-LvLJmgfZ.js";import{d as _a,f as yr,i as Q,l as vn,n as ue,p as Ut,s as En,u as ce}from"./useEvent-DlWF5OMa.js";import{t as sd}from"./react-BGmjiNul.js";import{$ as ld,Ar as cd,At as wr,B as Ua,Bt as ud,Cr as vr,Ct as Ba,Er as dd,Gn as fd,It as md,Jr as ja,Kt as hd,Lt as pd,Mt as Er,N as gd,Nr as bd,Nt as Pa,Pt as Ma,Q as Nr,R as Ra,Sn as yd,St as wd,Tn as vd,Tr as Ed,U as Ga,Ut as Nn,V as Ja,Xr as Nd,Zt as kd,_r as Cd,a as Wa,ai as kn,bn as Sd,ct as Cn,d as Va,dt as Bt,en as xd,hn as Td,in as Ad,jr as $a,kt as Id,lt as Fd,m as kr,mt as Ld,nn as Od,ot as Dd,rn as _d,sn as Cr,st as Sr,u as Ha,ut as Ud,w as Sn,xn as Bd,y as nt,z as jd,zt as Qe,__tla as Pd}from"./cells-CmJW_FeD.js";import{P as qa,R as Md,k as Rd,w as Gd}from"./zod-Cg4WLWh2.js";import{t as Ge}from"./compiler-runtime-DeeZ7FnK.js";import{n as Jd,r as Wd,s as Vd,t as $d,u as Hd}from"./client-SHlWC2SD.js";import{d as $e,f as qd,l as xr,n as za}from"./hotkeys-uKX61F1_.js";import{t as jt}from"./invariant-C6yE60hi.js";import{S as Tr,h as Ka,m as zd,o as Kd,p as Xa,s as Ya}from"./utils-Czt8B2GX.js";import{A as Pt,O as Qa,b as Xd,j as Yd,o as Qd,r as Za,s as Zd,w as bt}from"./config-CENq_7Pd.js";import{a as ef,n as ei,t as tf}from"./switch-C5jvDmuG.js";import{n as nf}from"./globals-DPW2B3A9.js";import{t as rf}from"./ErrorBoundary-C7JBxSzd.js";import{t as of}from"./useEventListener-COkmyg1v.js";import{t as af}from"./jsx-runtime-DN_bIXfG.js";import{r as Ar,t as He}from"./button-B8cGZzP5.js";import{t as lt}from"./cn-C1rgT0yh.js";import{$t as xn,Bt as Ir,Ct as ti,Dt as sf,E as lf,Gt as cf,H as ni,I as uf,It as Tn,J as l,Jt as qe,P as df,Pt as An,Rt as ff,St as Je,Ut as ct,V as ri,Vt as Mt,Xt as Rt,_ as mf,a as hf,at as B,bt as pf,ct as ze,ft as gf,it as bf,jt as yf,lt as In,m as wf,pt as vf,qt as he,rt as H,st as Ef,vt as Nf,w as kf,wt as Cf,yt as Sf,zt as yt}from"./dist-CAcX026F.js";import{C as xf,D as Tf,_ as Af,a as If,c as Ff,n as Fr,r as Lf,v as Of,x as Df,y as _f}from"./dist-CI6_zMIl.js";import{E as Uf,__tla as Bf}from"./JsonOutput-DlwRx3jE.js";import{c as oi,n as jf}from"./once-CTiSlR1m.js";import{t as Lr}from"./createReducer-DDa-hVe3.js";import{a as Pf,c as Mf,f as Fn,h as Rf,i as Gf,l as Gt,n as ai,o as Jf,t as Wf}from"./dist-DKNOF5xd.js";import{r as Ln,t as Vf}from"./requests-C0HaHO6a.js";import{t as $f}from"./createLucideIcon-CW2xpJ57.js";import{r as ii,t as Hf,__tla as qf}from"./layout-CBI2c778.js";import{O as zf,S as si,T as Kf,_ as Xf,a as li,k as Yf,n as Qf,o as Zf,r as ci,s as em,x as tm}from"./add-cell-with-ai-DEdol3w0.js";import{t as nm}from"./ai-model-dropdown-C-5PlP5A.js";import{h as rm}from"./select-D9lTzMzP.js";import{n as om}from"./download-C_slsU-7.js";import{t as am}from"./circle-check-Cr0N4h9T.js";import{r as im,t as sm}from"./types-D5CL190S.js";import{n as ui}from"./spinner-C1czjtp7.js";import{t as di}from"./save-BOTLFf-P.js";import{I as fi,P as lm}from"./input-Bkl2Yfmh.js";import{a as cm,i as um,n as mi}from"./state-B8vBQnkH.js";import{t as dm}from"./preload-helper-BW0IMuFq.js";import{t as wt}from"./use-toast-Bzf3rpev.js";import{r as fm}from"./useTheme-BSVRc0kJ.js";import{t as vt}from"./tooltip-CvjcEpZC.js";import{r as mm,t as hm}from"./mode-CXc0VeQq.js";import{c as hi,i as pi,n as gi,r as pm}from"./dialog-CF5DtF1E.js";import{O as gm}from"./usePress-C2LPFxyv.js";import{a as bm,r as ym,t as wm}from"./popover-DtnzNVk-.js";import{n as bi}from"./ImperativeModal-BZvZlZQZ.js";import{r as vm}from"./errors-z7WpYca5.js";import{t as Em}from"./copy-DRhpWiOq.js";import{a as Nm}from"./useRunCells-DNnhJ0Gs.js";import{t as X}from"./extends-B9D0JO9U.js";import{t as Jt}from"./objectWithoutPropertiesLoose-CboCOq4o.js";import{t as km}from"./kbd-Czc5z_04.js";import{a as Or}from"./useInstallPackage-RldLPyJs.js";import{a as Cm,o as Sm}from"./cell-link-D7bPw7Fz.js";import{n as xm}from"./useAsyncData-Dj1oqsrZ.js";import{a as Tm,o as yi,r as Am,s as wi,t as Im}from"./command-B1zRJT1a.js";import{r as Fm}from"./es-BJsT6vfZ.js";import{a as Lm}from"./focus-KGgBDCvb.js";import{a as vi}from"./renderShortcut-BzTDKVab.js";import{t as Dr}from"./label-CqyOmxjL.js";import{n as _r,t as Ei}from"./useDeleteCell-D-55qWAK.js";import{n as Et}from"./esm-D2_Kx6xF.js";import{n as Om,t as Dm}from"./icons-9QU2Dup7.js";import{t as Ni}from"./dist-vjCyCXRJ.js";import{t as _m}from"./useSplitCell-Dfn0Ozrw.js";import{t as ki}from"./Inputs-BLUpxKII.js";import{co as Um,do as Ur,fo as Bm,ft as jm,go as Nt,ho as Ci,lo as Br,mo as Si,oo as xi,po as Pm,so as Ti,uo as Ai,__tla as Mm}from"./loro_wasm_bg-BCxPjJ2X.js";import{t as Rm}from"./ws-Sb1KIggW.js";import{n as Gm}from"./hooks-DjduWDUD.js";let Ii,jr,Fi,ut,Li,On,Pr,Wt,Dn,be,Oi,Di,_i,Ui,_n,Bi,Mr,Un,Jm=Promise.all([(()=>{try{return Pd}catch{}})(),(()=>{try{return Bf}catch{}})(),(()=>{try{return qf}catch{}})(),(()=>{try{return Mm}catch{}})()]).then(async()=>{var wn,Ia,we,ve,Ee,Ne,ke,Ce,Se,xe,Te,Ae,Ie,Fe,Le,Oe,De,_e,Ue,Be,je;var re=$f("file-pen",[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]]);const q={showInput:"Mod-l",acceptEdit:"Mod-y",rejectEdit:"Mod-u"};var ge=300;const Ct=Mt.define({combine:e=>xn(e,{onError:console.error,inputDebounceTime:ge,keymaps:q},{onError:(t,n)=>t&&n,inputDebounceTime:(t,n)=>t&&n,keymaps:(t,n)=>t&&n})}),rt=he.define(),ot=qe.define({create(){return{show:!1,lineFrom:0,lineTo:0}},update(e,t){for(let n of t.effects)if(n.is(rt))return n.value;return e}}),St=he.define(),xt=he.define(),Gr=qe.define({create(){return{shouldFocus:!1,inputValue:""}},update(e,t){let n=e;for(let r of t.effects)r.is(St)&&(n={...n,inputValue:r.value}),r.is(xt)&&(n={...n,shouldFocus:r.value});return n}}),Vt=he.define(),Tt=qe.define({create(){return null},update(e,t){for(let n of t.effects)if(n.is(Vt))return n.value;return e}}),dt=he.define(),Jr=qe.define({create(){return!1},update(e,t){for(let n of t.effects)if(n.is(dt))return n.value;return e}});var ji=1;const Wr=e=>{let{state:t}=e,n=t.selection.main;if(n.empty)return!1;let r=t.doc,o=r.lineAt(n.from),a=r.lineAt(n.to);if(t.sliceDoc(o.from,a.to).trim().lengthe.state.field(Tt)?(e.dispatch({effects:[Vt.of(null),rt.of({show:!1,lineFrom:0,lineTo:0}),xt.of(!1),St.of(""),dt.of(!1)]}),!0):!1,$r=e=>{let t=e.state.field(Tt);return t?(e.dispatch({changes:{from:t.from,to:t.to,insert:t.oldCode},effects:[Vt.of(null),rt.of({show:!1,lineFrom:0,lineTo:0}),xt.of(!1),St.of(""),dt.of(!1)]}),!0):!1};var Bn={mac:"\u2318",windows:"\u229E Win",default:"Ctrl"};function Pi(){return navigator.platform.startsWith("Mac")?Bn.mac:navigator.platform.startsWith("Win")?Bn.windows:Bn.default}function jn(e){return e.replace("Mod",Pi()).replace("-"," ").toUpperCase()}function de(e,t){let n=document.createElement(e);return n.className=t,n}function Mi(e,t,n=void 0){let r=()=>{};return(...o)=>(r(),new Promise((a,i)=>{let s=setTimeout(()=>a(e(...o)),t);r=()=>{clearTimeout(s),n!==void 0&&i(n)}}))}var $t=qe.define({create(){return{suggestion:null}},update(e,t){let n=t.effects.find(r=>r.is(Ht));return!t.docChanged&&!n&&!t.selection?e:n&&t.state.doc===n.value.doc?{suggestion:n.value.text}:{suggestion:null}}}),Ht=he.define();function Ri(e,t){let n=e.state.selection.main.head,r=[],o=H.widget({widget:new Gi(t),side:1});return r.push(o.range(n)),H.set(r)}var Gi=class extends In{constructor(t){super();h(this,"suggestion");this.suggestion=t}toDOM(){let t=document.createElement("span");return t.style.opacity="0.4",t.className="cm-inline-suggestion",t.textContent=this.suggestion,t.setAttribute("role","suggestion"),t.setAttribute("aria-label",`Suggestion: ${this.suggestion}`),t}get lineBreaks(){return this.suggestion.split(` +`).length-1}},Ji=class{constructor(e){h(this,"cache",new Map);h(this,"timeout");this.timeout=e}get(e){let t=this.cache.get(e);return t?Date.now()-t.timestamp>this.timeout?(this.cache.delete(e),null):t.result:null}set(e,t){this.cache.set(e,{result:t,timestamp:Date.now()})}},Wi=(e,t)=>ze.fromClass(class{constructor(){h(this,"abortController",null);h(this,"cache");this.cache=new Ji(t.cacheTimeout??1e3)}async update(n){var i,s,c,u,d;if(!n.docChanged||((s=(i=t.events)==null?void 0:i.beforeSuggestionFetch)==null?void 0:s.call(i,n.view))===!1)return;(c=this.abortController)==null||c.abort(),this.abortController=new AbortController;let r=n.state.doc,o=r.toString(),a=this.cache.get(o);if(a){n.view.dispatch({effects:Ht.of({text:a,doc:r})});return}try{let f=await e(n.state,this.abortController.signal,n.view);if(this.abortController.signal.aborted||((d=(u=t.events)==null?void 0:u.shouldShowSuggestion)==null?void 0:d.call(u,n.view,f))===!1)return;this.cache.set(o,f),n.view.dispatch({effects:Ht.of({text:f,doc:r})})}catch(f){f instanceof Error&&f.name!=="AbortError"&&console.error("Suggestion fetch error:",f)}}destroy(){var n;(n=this.abortController)==null||n.abort()}}),Vi=ze.fromClass(class{constructor(){h(this,"decorations");this.decorations=H.none}update(e){var n;let t=(n=e.state.field($t))==null?void 0:n.suggestion;if(!t){this.decorations=H.none;return}this.decorations=Ri(e.view,t)}},{decorations:e=>e.decorations});function $i(e,t,n,r){return{...e.changeByRange(o=>{if(o===e.selection.main)return{changes:{from:n,to:r,insert:t},range:yt.cursor(n+t.length)};let a=r-n;return!o.empty||a&&e.sliceDoc(o.from-a,o.from)!==e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from-a,to:o.from,insert:t},range:yt.cursor(o.from-a+t.length)}}),userEvent:"input.complete"}}var Hi=e=>{var r,o,a;let t=(r=e.state.field($t))==null?void 0:r.suggestion;if(!t)return!1;let n=e.state.facet(Pn);return e.dispatch({...$i(e.state,t,e.state.selection.main.head,e.state.selection.main.head)}),(a=(o=n.events)==null?void 0:o.onSuggestionAccepted)==null||a.call(o,e,t),!0},Hr=e=>{var r,o,a;let t=(r=e.state.field($t))==null?void 0:r.suggestion;if(!t)return!1;let n=e.state.facet(Pn);return e.dispatch({effects:Ht.of({text:null,doc:e.state.doc})}),(a=(o=n.events)==null?void 0:o.onSuggestionRejected)==null||a.call(o,e,t),!0},qi=Je.of([{key:"Tab",run:Hi},{key:"Escape",run:Hr}]),Pn=Mt.define({combine:e=>e.at(-1)});function qr(e){let{delay:t=500,includeKeymap:n=!0}=e,r=Mi(e.fetchFn,t);return[$t,Pn.of(e),Wi(r,e),Vi,n?qi:[]]}const zi=B.baseTheme({".cm-ai-input-container":{display:"flex",flexDirection:"column",gap:"4px",width:"min(calc(100% + 7px), 500px)",padding:"5px 5px",margin:"0 -6px",backgroundColor:"light-dark(rgb(241, 243, 245), rgb(40, 40, 40))"},".cm-ai-input":{display:"block",width:"100%",padding:"3px 8px",border:"2px solid rgb(51, 154, 240)",borderRadius:"5px",fontSize:"12px"},".cm-ai-help-info-button":{fontSize:"10px",paddingLeft:"10px",height:"18px",color:"light-dark(rgb(109, 117, 125), rgb(170, 170, 170))",display:"block",marginRight:"auto"},".cm-ai-help-info-button:hover":{color:"light-dark(rgb(89, 97, 105), rgb(190, 190, 190))"},".cm-ai-generate-button":{background:"#0E639C",border:"none",padding:"2px 6px",color:"#ffffff",cursor:"pointer",font:"inherit",borderRadius:"4px","&:hover":{backgroundColor:"#1177bb"}},".cm-line.cm-ai-selection, .cm-line.cm-ai-selection.cm-active-line":{backgroundColor:"light-dark(color-mix(in srgb, rgb(223, 227, 232) 50%, transparent), color-mix(in srgb, rgb(50, 50, 50) 50%, transparent)) !important"},".cm-line:has(.cm-new-code-line)":{backgroundColor:"light-dark(color-mix(in srgb, rgb(183, 235, 143) 50%, transparent), color-mix(in srgb, rgb(40, 100, 40) 50%, transparent)) !important"},".cm-old-code-container":{backgroundColor:"light-dark(rgb(255, 205, 205), rgb(100, 40, 40))",position:"relative",display:"flex",paddingTop:"0",width:"100%",alignItems:"center"},".cm-code-button":{position:"absolute",right:"5px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"16px"},".cm-floating-buttons":{fontFamily:"sans-serif",position:"absolute",top:"-20px",left:"5px",display:"flex"},".cm-floating-button":{fontFamily:"sans-serif",padding:"2px 5px",fontSize:"10px",cursor:"pointer",fontWeight:"700"},".cm-floating-accept":{backgroundColor:"light-dark(rgb(55, 125, 34), rgb(40, 80, 25))",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",color:"white",filter:"brightness(90%)","&:hover":{filter:"brightness(100%)"}},".cm-floating-reject":{backgroundColor:"light-dark(rgb(220, 53, 69), rgb(180, 40, 50))",color:"white",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",filter:"brightness(90%)","&:hover":{filter:"brightness(100%)"}},".hotkey":{display:"inline-block",padding:"0 4px",borderRadius:"3px",backgroundColor:"rgba(255, 255, 255, 0.1)",fontSize:"90%"},".cm-ai-loading-indicator":{fontStyle:"italic",fontSize:"10px",paddingLeft:"12px",color:"light-dark(rgb(109, 117, 125), rgb(170, 170, 170))",opacity:"0",transition:"opacity 0.3s ease-in-out","&::after":{content:'""',display:"inline-block",animation:"ellipsis-pulse 1.5s steps(4, end) infinite"},"&:not(:empty)":{opacity:"1"}},".cm-ai-input:disabled":{opacity:"0.5"},"@keyframes ellipsis-pulse":{"0%":{content:"'.'"},"25%":{content:"'..'"},"50%":{content:"'...'"},"75%":{content:"''"}},".cm-ai-loading-container":{display:"flex",alignItems:"center",padding:"0 8px"},".cm-ai-cancel-button":{padding:"2px 8px",fontSize:"10px",borderRadius:"4px",color:"light-dark(rgb(109, 117, 125), rgb(170, 170, 170))",cursor:"pointer","&:hover":{background:"light-dark(rgb(223, 227, 232), rgb(50, 50, 50))"}},".hidden":{display:"none"}});function Ki(e){var o,a;let t=e.state.facet(Ct),n={...q,...t.keymaps},r=de("div","cm-ai-tooltip").appendChild(de("div","cm-ai-tooltip-button"));return r.innerHTML=`Edit ${jn(n.showInput)}`,(o=r.querySelector("span"))==null||o.addEventListener("mousedown",i=>{i.stopPropagation(),i.button===0&&i.preventDefault()}),(a=r.querySelector("span"))==null||a.addEventListener("click",i=>{i.preventDefault(),Wr(e)}),r}const Mn=Mt.define({combine(e){return xn(e,{render:Ki,hideOnBlur:!1})}}),Xi=ze.fromClass((Ia=class{constructor(e){h(this,"view");h(this,"suppress");h(this,"dom");h(this,"mousedown",()=>{this.suppress=!0});h(this,"mouseup",()=>{this.suppress=!1,this.display(this.view)});h(this,"scroll",()=>{this.display(this.view)});h(this,"windowScroll",()=>{this.display(this.view)});Oa(this,wn,e=>{var n;let t=e.state.selection.ranges.find(r=>!r.empty);if(t&&!this.suppress){let r=e.coordsAtPos(t.from);if(!r)return;let o=e.dom.getBoundingClientRect(),a=(n=e.dom.parentElement)==null?void 0:n.getBoundingClientRect(),i=r.top>=o.top&&r.top<=o.bottom&&r.left>=o.left&&r.left<=o.right,s=!a||r.top>=a.top&&r.top<=a.bottom&&r.left>=a.left&&r.left<=a.right;if(!i||!s){this.dom.style.display="none",this.dom.setAttribute("aria-hidden","true");return}this.dom.style.display="flex",this.dom.setAttribute("aria-hidden","false");let c=this.dom.getBoundingClientRect(),u=o.width-c.width,d=Math.min(r.left,u),f=r.top-c.height;f=a?Math.max(a.y,f):f,this.dom.style.left=`${d}px`,this.dom.style.top=`${f}px`,requestAnimationFrame(()=>{this.dom&&this.dom.setAttribute("aria-hidden","false")})}else this.dom.style.display="none",this.dom.setAttribute("aria-hidden","true")});this.view=e;let t=e.state.facet(Mn);this.suppress=!1,document.addEventListener("mousedown",this.mousedown),document.addEventListener("mouseup",this.mouseup),e.scrollDOM.addEventListener("scroll",this.scroll),window.addEventListener("scroll",this.windowScroll,!0);let n=t.render(e);e.dom.appendChild(n),this.dom=n}update(e){this.display(e.view)}docViewUpdate(e){this.display(e)}display(e){if(e.state.field(ot).show){this.dom.style.display="none";return}if(e.state.facet(Mn).hideOnBlur&&!e.hasFocus){this.dom.style.display="none",this.dom.setAttribute("aria-hidden","true");return}e.requestMeasure({read:La(this,wn)})}destroy(){document.removeEventListener("mousedown",this.mousedown),document.removeEventListener("mouseup",this.mouseup),this.view.scrollDOM.removeEventListener("scroll",this.scroll),window.removeEventListener("scroll",this.windowScroll,!0),this.dom.remove()}},wn=new WeakMap,Ia));var Yi=B.baseTheme({".cm-ai-tooltip-button":{userSelect:"none",fontFamily:"system-ui, -apple-system, sans-serif",position:"fixed",display:"flex",boxSizing:"border-box",padding:"2px 6px",borderRadius:"4px",fontSize:"12px",backgroundColor:"#0E639C",color:"#ffffff",border:"1px solid transparent",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",zIndex:"999",transition:"opacity 0.5s","&[aria-hidden='true']":{opacity:"0"},"&[aria-hidden='false']":{opacity:"1"},"& > span":{pointerEvents:"auto",cursor:"pointer",display:"inline-block",padding:"2px"},"&:hover":{backgroundColor:"#1177bb"}}});function Qi(){return[Xi,Yi]}var Zi=class extends In{constructor(t){super();h(this,"oldCode");this.oldCode=t}toDOM(t){let n=de("div","cm-old-code-container");n.setAttribute("role","region"),n.setAttribute("aria-label","Previous code version");let r=de("div","cm-old-code cm-line");r.textContent=this.oldCode;let o=de("div","cm-floating-buttons"),a=t.state.facet(Ct),i={...q,...a.keymaps},s=de("button","cm-floating-button cm-floating-accept");s.innerHTML=`${jn(i.acceptEdit)} Accept`,s.setAttribute("aria-label","Accept changes"),s.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),t.focus(),Vr(t)});let c=de("button","cm-floating-button cm-floating-reject");return c.innerHTML=`${jn(i.rejectEdit)} Reject`,c.setAttribute("aria-label","Reject changes"),c.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),t.focus(),$r(t)}),o.append(s,c),n.append(r,o),n}updateDOM(t,n){return!0}},es=class extends In{constructor(t){super();h(this,"complete");h(this,"abortController",null);h(this,"dom",null);h(this,"input",null);h(this,"loadingContainer",null);h(this,"helpInfo",null);h(this,"inputContainer",null);h(this,"form",null);h(this,"view",null);h(this,"onKeyDown",async t=>{t.key==="Enter"&&!t.shiftKey?(t.preventDefault(),await this.handleSubmit()):t.key==="Escape"&&this.onCancel()});h(this,"onCancel",()=>{this.cleanup();let t=this.view;t&&(t.dispatch({effects:[rt.of({show:!1,lineFrom:0,lineTo:0}),dt.of(!1)]}),t.focus())});h(this,"handleSubmit",async t=>{var g;let n=this.view;if(!n)return;let r=n.state.facet(Ct);t==null||t.stopPropagation();let o=n.state.field(ot),{input:a}=this;if(!a)return;let i=a.value.trim();if(!o.show||!i)return;let s=n.state.doc.line(o.lineFrom),c=n.state.doc.line(o.lineTo),u=s.from,d=c.to,f=n.state.sliceDoc(u,d),p=n.state.sliceDoc(0,u),m=n.state.sliceDoc(d);this.abortController=new AbortController,n.dispatch({effects:dt.of(!0)}),this.toggleLoading(!0);try{let y=await this.complete({prompt:i,selection:f,codeBefore:p,codeAfter:m,editorView:n,signal:this.abortController.signal});if(!n.state.field(ot).show)return;if(!y||typeof y!="string")throw Error("Invalid completion result");n.dispatch({changes:{from:u,to:d,insert:y},effects:[rt.of({show:!1,lineFrom:0,lineTo:0}),Vt.of({from:u,to:u+y.length,oldCode:f,newCode:y}),dt.of(!1)]})}catch(y){if(y instanceof DOMException&&y.name==="AbortError")return;(g=r.onError)==null||g.call(r,y)}finally{this.cleanup(),this.toggleLoading(!1),n.focus()}});this.complete=t}toDOM(t){if(this.dom)return this.dom;this.view=t;let n=t.state.field(Gr),r=t.state.field(Jr),o=de("div","cm-ai-input-container");this.inputContainer=o,this.dom=o;let a=de("form","cm-ai-input-form");this.form=a,a.setAttribute("role","search"),a.setAttribute("aria-label","AI editing instructions"),a.addEventListener("submit",w=>w.preventDefault());let i=de("input","cm-ai-input");this.input=i,a.append(i),i.placeholder="Editing instructions...",i.setAttribute("aria-label","AI editing instructions"),i.setAttribute("autocomplete","off"),i.setAttribute("spellcheck","true"),i.value=n.inputValue;let s=de("div","cm-ai-loading-container");this.loadingContainer=s;let c=de("div","cm-ai-loading-indicator");c.setAttribute("role","status"),c.setAttribute("aria-live","polite"),c.textContent="Generating";let u=de("button","cm-ai-cancel-button");u.textContent="Cancel",u.setAttribute("aria-label","Cancel code generation"),u.addEventListener("click",this.onCancel),s.append(u,c);let d=de("div","cm-ai-help-info");this.helpInfo=d;let f=d.appendChild(document.createElement("button"));f.className="cm-ai-help-info-button",f.textContent="Esc to close",f.addEventListener("click",this.onCancel);let p=de("button","cm-ai-generate-button");p.textContent="\u23CE Generate",p.setAttribute("aria-label","Generate code"),p.addEventListener("click",this.handleSubmit),this.toggleLoading(r),n.shouldFocus&&requestAnimationFrame(()=>{i.value=n.inputValue,i.focus(),t.dispatch({effects:xt.of(!1)})}),m(i.value),i.addEventListener("input",y),i.addEventListener("keydown",this.onKeyDown);function m(w){d.replaceChildren(w?p:f)}let g="";function y(){t.dispatch({effects:St.of(i.value)});let w=i.value.trim();w!==g&&(g=w,m(w))}return o}toggleLoading(t){var n;this.inputContainer&&this.form&&this.loadingContainer&&this.helpInfo&&((n=this.inputContainer)==null||n.replaceChildren(this.form,t?this.loadingContainer:this.helpInfo))}updateDOM(t,n){return this.dom=t,this.input=t.querySelector(".cm-ai-input"),!0}cleanup(){var t,n,r;(t=this.abortController)==null||t.abort(),this.abortController=null,(n=this.dom)==null||n.remove(),(r=this.input)==null||r.remove(),this.dom=null,this.input=null}destroy(){this.cleanup()}};function ts(e){if(!e.prompt)throw Error("prompt function is required");let t={...q,...e.keymaps};return[Ct.of(e),ot,Gr,Tt,Jr,Qi(),zi,Je.of([{key:t.showInput,run:Wr}]),ct.highest([Je.of([{key:t.acceptEdit,run:Vr},{key:t.rejectEdit,run:$r}])]),ns,rs,os,as]}const ns=B.updateListener.of(e=>{let t=e.state.field(ot);if(!t.show||!e.docChanged)return;let{lineFrom:n,lineTo:r}=t,o=!1;e.changes.iterChanges((a,i,s,c)=>{let u=e.state.doc.lineAt(a).number;if(u{let t=e.state.field(Tt);return t?H.set([H.mark({class:"cm-new-code-line"}).range(t.from,t.to)]):H.none}),os=B.decorations.compute([ot],e=>{let t=e.field(ot),n=e.facet(Ct),r=[];if(t.show){let o=t.lineFrom,a=t.lineTo;for(let i=o;i<=a;i++){let s=e.doc.line(i).from;r.push(H.line({class:"cm-ai-selection"}).range(s)),i===o&&r.push(H.widget({widget:new es(n.prompt),side:-1}).range(s))}}return H.set(r)}),as=qe.define({create(e){return H.none},update(e,t){let n=t.state.field(Tt);return n?H.set([H.widget({widget:new Zi(n.oldCode),block:!0}).range(n.from)]):H.none},provide:e=>B.decorations.from(e)});var is=Ge(),I=Da(sd(),1),Rn=()=>({entries:new Map}),{valueAtom:zr,useActions:Kr}=Lr(Rn,{submit:(e,t)=>{let{cellIds:n,deleteCell:r,deleteManyCells:o,store:a}=t,i=a.get(nt),s=a.get(Sd),c=new Set(i.cellIds.inOrderIds.filter(f=>i.cellData[f].code.trim()==="")),u=new Map;for(let f of n){if(c.has(f)){u.set(f,{cellId:f,type:"simple"});continue}let p=i.cellRuntime[f],m=new Map;for(let y of Object.values(s)){let w=y.declaredBy.includes(f),k=y.usedBy.some(C=>!c.has(C));w&&k&&m.set(y.name,y.usedBy)}let g;p!=null&&p.runElapsedTimeMs&&p.runElapsedTimeMs>2e3&&(g=p.runElapsedTimeMs),m.size===0&&g===void 0?u.set(f,{cellId:f,type:"simple"}):u.set(f,{cellId:f,type:"expensive",executionDurationMs:g,defs:m})}let d=[...u.values()].every(f=>f.type==="simple");return u.size>0&&d?(u.size===1?r({cellId:[...u.values()][0].cellId}):o({cellIds:[...u.values()].map(f=>f.cellId)}),Rn()):{...e,entries:u}},clear:()=>Rn()});Un=function(){let e=yr(),{submit:t,clear:n}=Kr(),{entries:r}=ce(zr),o=Ei(),a=_r();return(0,I.useMemo)(()=>({submit:i=>{t({cellIds:i,deleteCell:o,deleteManyCells:a,store:e})},clear:n,get idle(){return r.size===0},get shouldConfirmDelete(){return r.size>1}}),[e,t,n,r,o,a])},Ii=function(e){let t=(0,is.c)(16),n=ce(zr),r=Kr(),o=_r(),a;t[0]!==e||t[1]!==n.entries?(a=n.entries.get(e),t[0]=e,t[1]=n.entries,t[2]=a):a=t[2];let i=a;if(!i){let d;return t[3]===Symbol.for("react.memo_cache_sentinel")?(d={isPending:!1},t[3]=d):d=t[3],d}if(n.entries.size!==1){let d;return t[4]===i?d=t[5]:(d={isPending:!0,shouldConfirmDelete:!1,...i},t[4]=i,t[5]=d),d}let s;t[6]!==r||t[7]!==o||t[8]!==n.entries?(s=()=>{o({cellIds:[...n.entries.values()].map(ss)}),r.clear()},t[6]=r,t[7]=o,t[8]=n.entries,t[9]=s):s=t[9];let c;t[10]===r?c=t[11]:(c=()=>r.clear(),t[10]=r,t[11]=c);let u;return t[12]!==i||t[13]!==s||t[14]!==c?(u={isPending:!0,...i,shouldConfirmDelete:!0,confirm:s,cancel:c},t[12]=i,t[13]=s,t[14]=c,t[15]=u):u=t[15],u};function ss(e){return e.cellId}async function ls(e){var s,c;let t=` +${e.codeBefore} + +${e.selection} + +${e.codeAfter} +`.trim(),n=Za();await Qa();let r=await fetch(n.getAiURL("completion").toString(),{method:"POST",headers:n.headers(),body:JSON.stringify({prompt:e.prompt,code:t,selectedText:e.selection,includeOtherCode:"",language:e.language})}),o=((s=e.selection.match(/^\s*/))==null?void 0:s[0])||"",a=(c=r.body)==null?void 0:c.getReader();if(!a)throw Error("Failed to get response reader");let i="";for(;;){let{done:u,value:d}=await a.read();if(u)break;i+=new TextDecoder().decode(d)}return i.startsWith(o)||(i=o+i),i}var b=Da(af(),1),cs=["%alias","%cd","%clear","%debug","%env","%load","%load_ext","%lsmagic","%matplotlib","%pwd","%who_ls","%system","%%time","%%timeit","%%writefile","%%capture","%%html","%%latex"],Gn;function us(){let e=async r=>{let o=Q.get(Tr),{saveUserConfig:a}=Vf();await a({config:{runtime:{auto_reload:r}}}).then(()=>Q.set(Tr,{...o,runtime:{...o.runtime,auto_reload:r}}))},t=[{match:"!pip install",onMatch:()=>{Q.set(Cr,r=>({...r,isSidebarOpen:!0,selectedPanel:"packages"})),Or()},title:"Package Installation",description:(0,b.jsxs)(b.Fragment,{children:["The package manager sidebar has been opened.",(0,b.jsx)("br",{}),"Install packages directly from there instead."]})},{match:"!uv pip install",onMatch:()=>{Q.set(Cr,r=>({...r,isSidebarOpen:!0,selectedPanel:"packages"})),Or()},title:"Package Installation",description:(0,b.jsxs)(b.Fragment,{children:["The package manager sidebar has been opened.",(0,b.jsx)("br",{}),"Install packages directly from there instead."]})},{match:"!uv add",onMatch:()=>{Q.set(Cr,r=>({...r,isSidebarOpen:!0,selectedPanel:"packages"})),Or()},title:"Package Installation",description:(0,b.jsxs)(b.Fragment,{children:["The package manager sidebar has been opened.",(0,b.jsx)("br",{}),"Install packages directly from there instead."]})},{match:"%autoreload 2",onMatch:async()=>{await e("autorun")},title:"Module reload",description:(0,b.jsxs)(b.Fragment,{children:["Module reload mode set to ",(0,b.jsx)("b",{children:"autorun"})," - module changes will re-run the cells that import them."]})},{match:"%autoreload 1",onMatch:async()=>{await e("lazy")},title:"Module reload",description:(0,b.jsxs)(b.Fragment,{children:["Module reload mode set to ",(0,b.jsx)("b",{children:"lazy"})," - module changes will mark the cells that import them as stale."]})},{match:"%autoreload 0",onMatch:async()=>{await e("off")},title:"Module reload",description:(0,b.jsx)(b.Fragment,{children:"Module reload disabled - module changes will not be detected."})},{match:"!ls",onMatch:()=>{},title:"Listing files",description:(0,b.jsxs)(b.Fragment,{children:["Shell commands are not directly supported.",(0,b.jsx)("br",{}),"Use ",(0,b.jsx)("code",{children:"import subprocess; subprocess.run(['ls'])"})," instead."]})},...cs.map(r=>({match:r,onMatch:()=>{},title:(0,b.jsx)(km,{className:"inline",children:r}),description:(0,b.jsxs)(b.Fragment,{children:["Magic commands are not supported in marimo. Read more about replacements in the"," ",(0,b.jsx)("a",{href:"https://docs.marimo.io/guides/coming_from/jupyter/#adapting-to-the-absence-of-magic-commands",target:"_blank",className:"text-link underline cursor-pointer",rel:"noopener noreferrer",children:"documentation"}),"."]})}))],n=new Map(t.map(r=>[r.match,r]));return B.updateListener.of(r=>{if(r.docChanged){let o=r.state.selection.main,a=r.state.doc,i=a.lineAt(o.head),s=a.sliceString(i.from,o.anchor).trim(),c=n.get(s);c&&(c.onMatch(),Gn?Gn.upsert({title:c.title,description:c.description}):Gn=wt({title:c.title,description:c.description}))}})}var ds=new Set(["Escape","Alt-`"]);function fs(){let e=Mf.filter(t=>!ds.has(t.key));return ct.highest(Je.of([...e,{key:"Ctrl-y",run:t=>Nn(t)?ai(t):!1},{key:"Ctrl-n",run:t=>Nn(t)?Fn(!0)(t):!1},{key:"Ctrl-p",run:t=>Nn(t)?Fn(!1)(t):!1}]))}const Jn=he.define(),Wn=he.define(),Vn=he.define();function z(e,t){if(!e)throw Error(t)}var ms=3402823466385289e23,hs=-3402823466385289e23,ps=4294967295,gs=2147483647,bs=-2147483648;function qt(e){if(typeof e!="number")throw Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>gs||eps||e<0)throw Error("invalid uint 32: "+e)}function Xr(e){if(typeof e!="number")throw Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>ms||e({no:o.no,name:o.name,localName:e[o.no]})),r)}function Zr(e,t,n){let r=Object.create(null),o=Object.create(null),a=[];for(let i of t){let s=eo(i);a.push(s),r[i.name]=s,o[i.no]=s}return{typeName:e,values:a,findName(i){return r[i]},findNumber(i){return o[i]}}}function ws(e,t,n){let r={};for(let o of t){let a=eo(o);r[a.localName]=a.no,r[a.no]=a.localName}return Qr(r,e,t,n),r}function eo(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}var Y=class{equals(e){return this.getType().runtime.util.equals(this.getType(),this,e)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(e,t){let n=this.getType().runtime.bin,r=n.makeReadOptions(t);return n.readMessage(this,r.readerFactory(e),e.byteLength,r),this}fromJson(e,t){let n=this.getType(),r=n.runtime.json,o=r.makeReadOptions(t);return r.readMessage(n,e,o,this),this}fromJsonString(e,t){let n;try{n=JSON.parse(e)}catch(r){throw Error(`cannot decode ${this.getType().typeName} from JSON: ${r instanceof Error?r.message:String(r)}`)}return this.fromJson(n,t)}toBinary(e){let t=this.getType().runtime.bin,n=t.makeWriteOptions(e),r=n.writerFactory();return t.writeMessage(this,r,n),r.finish()}toJson(e){let t=this.getType().runtime.json,n=t.makeWriteOptions(e);return t.writeMessage(this,n)}toJsonString(e){let t=this.toJson(e);return JSON.stringify(t,null,(e==null?void 0:e.prettySpaces)??0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function vs(e,t,n,r){let o=(r==null?void 0:r.localName)??t.substring(t.lastIndexOf(".")+1),a={[o]:function(i){e.util.initFields(this),e.util.initPartial(i,this)}}[o];return Object.setPrototypeOf(a.prototype,new Y),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(i,s){return new a().fromBinary(i,s)},fromJson(i,s){return new a().fromJson(i,s)},fromJsonString(i,s){return new a().fromJsonString(i,s)},equals(i,s){return e.util.equals(a,i,s)}}),a}function Es(){let e=0,t=0;for(let r=0;r<28;r+=7){let o=this.buf[this.pos++];if(e|=(o&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let o=this.buf[this.pos++];if(t|=(o&127)<>>a,s=!(!(i>>>7)&&t==0),c=(s?i|128:i)&255;if(n.push(c),!s)return}let r=e>>>28&15|(t&7)<<4,o=!!(t>>3);if(n.push((o?r|128:r)&255),o){for(let a=3;a<31;a+=7){let i=t>>>a,s=!!(i>>>7),c=(s?i|128:i)&255;if(n.push(c),!s)return}n.push(t>>>31&1)}}var zt=4294967296;function to(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,o=0;function a(i,s){let c=Number(e.slice(i,s));o*=n,r=r*n+c,r>=zt&&(o+=r/zt|0,r%=zt)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?ro(r,o):qn(r,o)}function Ns(e,t){let n=qn(e,t),r=n.hi&2147483648;r&&(n=ro(n.lo,n.hi));let o=no(n.lo,n.hi);return r?"-"+o:o}function no(e,t){if({lo:e,hi:t}=ks(e,t),t<=2097151)return String(zt*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,o=t>>16&65535,a=n+r*6777216+o*6710656,i=r+o*8147497,s=o*2,c=1e7;return a>=c&&(i+=Math.floor(a/c),a%=c),i>=c&&(s+=Math.floor(i/c),i%=c),s.toString()+oo(i)+oo(a)}function ks(e,t){return{lo:e>>>0,hi:t>>>0}}function qn(e,t){return{lo:e|0,hi:t|0}}function ro(e,t){return t=~t,e?e=~e+1:t+=1,qn(e,t)}var oo=e=>{let t=String(e);return"0000000".slice(t.length)+t};function ao(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}function Cs(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw Error("invalid varint");return this.assertBounds(),t>>>0}function Ss(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||{}.BUF_BIGINT_DISABLE!=="1")){let r=BigInt("-9223372036854775808"),o=BigInt("9223372036854775807"),a=BigInt("0"),i=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(s){let c=typeof s=="bigint"?s:BigInt(s);if(c>o||ci||cz(/^-?[0-9]+$/.test(r),`int64 invalid: ${r}`),n=r=>z(/^[0-9]+$/.test(r),`uint64 invalid: ${r}`);return{zero:"0",supported:!1,parse(r){return typeof r!="string"&&(r=r.toString()),t(r),r},uParse(r){return typeof r!="string"&&(r=r.toString()),n(r),r},enc(r){return typeof r!="string"&&(r=r.toString()),t(r),to(r)},uEnc(r){return typeof r!="string"&&(r=r.toString()),n(r),to(r)},dec(r,o){return Ns(r,o)},uDec(r,o){return no(r,o)}}}const J=Ss();var v;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(v||(v={}));var at;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(at||(at={}));function Ze(e,t,n){if(t===n)return!0;if(e==v.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for($n(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return qt(e),ao(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){Xr(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){$n(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){qt(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return qt(e),e=(e<<1^e>>31)>>>0,ao(e,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=J.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=J.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=J.enc(e);return Hn(t.lo,t.hi,this.buf),this}sint64(e){let t=J.enc(e),n=t.hi>>31;return Hn(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=J.uEnc(e);return Hn(t.lo,t.hi,this.buf),this}},Ts=class{constructor(e,t){this.varint64=Es,this.uint32=Cs,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e,t){let n=this.pos;switch(e){case Z.Varint:for(;this.buf[this.pos++]&128;);break;case Z.Bit64:this.pos+=4;case Z.Bit32:this.pos+=4;break;case Z.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Z.StartGroup:for(;;){let[o,a]=this.tag();if(a===Z.EndGroup){if(t!==void 0&&o!==t)throw Error("invalid end group tag");break}this.skip(a,o)}break;default:throw Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return J.dec(...this.varint64())}uint64(){return J.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(e&1);return e=(e>>>1|(t&1)<<31)^n,t=t>>>1^n,J.dec(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return J.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return J.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};function As(e,t,n,r){let o;return{typeName:t,extendee:n,get field(){if(!o){let a=typeof r=="function"?r():r;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,o=e.util.newFieldList([a]).list()[0]}return o},runtime:e}}function so(e){let t=e.field.localName,n=Object.create(null);return n[t]=Is(e),[n,()=>n[t]]}function Is(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return ft(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function Fs(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}var Ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Kt=[];for(let e=0;e>4,i=a,o=2;break;case 2:n[r++]=(i&15)<<4|(a&60)>>2,i=a,o=3;break;case 3:n[r++]=(i&3)<<6|a,o=0;break}}if(o==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,o=0;for(let a=0;a>2],o=(r&3)<<4,n=1;break;case 1:t+=Ke[o|r>>4],o=(r&15)<<2,n=2;break;case 2:t+=Ke[o|r>>6],t+=Ke[r&63],n=0;break}return n&&(t+=Ke[o],t+="=",n==1&&(t+="=")),t}};function Ls(e,t,n){co(t,e);let r=t.runtime.bin.makeReadOptions(n),o=Fs(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,i]=so(t);for(let s of o)t.runtime.bin.readField(a,r.readerFactory(s.data),t.field,s.wireType,r);return i()}function Os(e,t,n,r){co(t,e);let o=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(lo(e,t)){let u=e.getType().runtime.bin.listUnknownFields(e).filter(d=>d.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let d of u)e.getType().runtime.bin.onUnknownField(e,d.no,d.wireType,d.data)}let i=a.writerFactory(),s=t.field;!s.opt&&!s.repeated&&(s.kind=="enum"||s.kind=="scalar")&&(s=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(s,n,i,a);let c=o.readerFactory(i.finish());for(;c.posr.no==t.field.no)}function co(e,t){z(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}function uo(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!io(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function fo(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?ft(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}function Xe(e,t){if(typeof e!="object"||!e||!Object.getOwnPropertyNames(Y.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function mo(e,t){return Xe(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}v.DOUBLE,v.FLOAT,v.INT64,v.UINT64,v.INT32,v.UINT32,v.BOOL,v.STRING,v.BYTES;var ho={ignoreUnknownFields:!1},po={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Ds(e){return e?Object.assign(Object.assign({},ho),e):ho}function _s(e){return e?Object.assign(Object.assign({},po),e):po}var Yt=Symbol(),Qt=Symbol();function Us(){return{makeReadOptions:Ds,makeWriteOptions:_s,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw Error(`cannot decode message ${e.typeName} from JSON: ${We(t)}`);r??(r=new e);let o=new Map,a=n.typeRegistry;for(let[i,s]of Object.entries(t)){let c=e.fields.findJsonName(i);if(c){if(c.oneof){if(s===null&&c.kind=="scalar")continue;let u=o.get(c.oneof);if(u!==void 0)throw Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${c.oneof.name}" present: "${u}", "${i}"`);o.set(c.oneof,i)}go(r,s,c,n,e)}else{let u=!1;if(a!=null&&a.findExtension&&i.startsWith("[")&&i.endsWith("]")){let d=a.findExtension(i.substring(1,i.length-1));if(d&&d.extendee.typeName==e.typeName){u=!0;let[f,p]=so(d);go(f,s,d.field,n,d),Os(r,d,p(),n)}}if(!u&&!n.ignoreUnknownFields)throw Error(`cannot decode message ${e.typeName} from JSON: key "${i}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},o;try{for(o of n.fields.byNumber()){if(!uo(o,e)){if(o.req)throw"required field not set";if(!t.emitDefaultValues||!js(o))continue}let i=o.oneof?e[o.oneof.localName].value:e[o.localName],s=bo(o,i,t);s!==void 0&&(r[t.useProtoFieldName?o.name:o.jsonName]=s)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let i of n.runtime.bin.listUnknownFields(e)){let s=a.findExtensionFor(n.typeName,i.no);if(s&&lo(e,s)){let c=Ls(e,s,t),u=bo(s.field,c,t);u!==void 0&&(r[s.field.jsonName]=u)}}}catch(a){let i=o?`cannot encode field ${n.typeName}.${o.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,s=a instanceof Error?a.message:String(a);throw Error(i+(s.length>0?`: ${s}`:""))}return r},readScalar(e,t,n){return At(e,t,n??at.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||io(e,t)))return Zt(e,t)},debug:We}}function We(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function go(e,t,n,r,o){let a=n.localName;if(n.repeated){if(z(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw Error(`cannot decode field ${o.typeName}.${n.name} from JSON: ${We(t)}`);let i=e[a];for(let s of t){if(s===null)throw Error(`cannot decode field ${o.typeName}.${n.name} from JSON: ${We(s)}`);switch(n.kind){case"message":i.push(n.T.fromJson(s,r));break;case"enum":let c=zn(n.T,s,r.ignoreUnknownFields,!0);c!==Qt&&i.push(c);break;case"scalar":try{i.push(At(n.T,s,n.L,!0))}catch(u){let d=`cannot decode field ${o.typeName}.${n.name} from JSON: ${We(s)}`;throw u instanceof Error&&u.message.length>0&&(d+=`: ${u.message}`),Error(d)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw Error(`cannot decode field ${o.typeName}.${n.name} from JSON: ${We(t)}`);let i=e[a];for(let[s,c]of Object.entries(t)){if(c===null)throw Error(`cannot decode field ${o.typeName}.${n.name} from JSON: map value null`);let u;try{u=Bs(n.K,s)}catch(d){let f=`cannot decode map key for field ${o.typeName}.${n.name} from JSON: ${We(t)}`;throw d instanceof Error&&d.message.length>0&&(f+=`: ${d.message}`),Error(f)}switch(n.V.kind){case"message":i[u]=n.V.T.fromJson(c,r);break;case"enum":let d=zn(n.V.T,c,r.ignoreUnknownFields,!0);d!==Qt&&(i[u]=d);break;case"scalar":try{i[u]=At(n.V.T,c,at.BIGINT,!0)}catch(f){let p=`cannot decode map value for field ${o.typeName}.${n.name} from JSON: ${We(t)}`;throw f instanceof Error&&f.message.length>0&&(p+=`: ${f.message}`),Error(p)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let i=n.T;if(t===null&&i.typeName!="google.protobuf.Value")return;let s=e[a];Xe(s)?s.fromJson(t,r):(e[a]=s=i.fromJson(t,r),i.fieldWrapper&&!n.oneof&&(e[a]=i.fieldWrapper.unwrapField(s)));break;case"enum":let c=zn(n.T,t,r.ignoreUnknownFields,!1);switch(c){case Yt:fo(n,e);break;case Qt:break;default:e[a]=c;break}break;case"scalar":try{let u=At(n.T,t,n.L,!1);u===Yt?fo(n,e):e[a]=u}catch(u){let d=`cannot decode field ${o.typeName}.${n.name} from JSON: ${We(t)}`;throw u instanceof Error&&u.message.length>0&&(d+=`: ${u.message}`),Error(d)}break}}function Bs(e,t){if(e===v.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return At(e,t,at.BIGINT,!0).toString()}function At(e,t,n,r){if(t===null)return r?ft(e,n):Yt;switch(e){case v.DOUBLE:case v.FLOAT:if(t==="NaN")return NaN;if(t==="Infinity")return 1/0;if(t==="-Infinity")return-1/0;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let o=Number(t);if(Number.isNaN(o)||!Number.isFinite(o))break;return e==v.FLOAT&&Xr(o),o;case v.INT32:case v.FIXED32:case v.SFIXED32:case v.SINT32:case v.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==v.UINT32||e==v.FIXED32?$n(a):qt(a),a;case v.INT64:case v.SFIXED64:case v.SINT64:if(typeof t!="number"&&typeof t!="string")break;let i=J.parse(t);return n?i.toString():i;case v.FIXED64:case v.UINT64:if(typeof t!="number"&&typeof t!="string")break;let s=J.uParse(t);return n?s.toString():s;case v.BOOL:if(typeof t!="boolean")break;return t;case v.STRING:if(typeof t!="string")break;return t;case v.BYTES:if(t==="")return new Uint8Array;if(typeof t!="string")break;return Xt.dec(t)}throw Error()}function zn(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:Yt;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let o=e.findName(t);if(o!==void 0)return o.no;if(n)return Qt;break}throw Error(`cannot decode enum ${e.typeName} from JSON: ${We(t)}`)}function js(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function bo(e,t,n){if(e.kind=="map"){z(typeof t=="object"&&!!t);let r={},o=Object.entries(t);switch(e.V.kind){case"scalar":for(let[i,s]of o)r[i.toString()]=Zt(e.V.T,s);break;case"message":for(let[i,s]of o)r[i.toString()]=s.toJson(n);break;case"enum":let a=e.V.T;for(let[i,s]of o)r[i.toString()]=Kn(a,s,n.enumAsInteger);break}return n.emitDefaultValues||o.length>0?r:void 0}if(e.repeated){z(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let o=0;o0?r:void 0}switch(e.kind){case"scalar":return Zt(e.T,t);case"enum":return Kn(e.T,t,n.enumAsInteger);case"message":return mo(e.T,t).toJson(n)}}function Kn(e,t,n){var r;return z(typeof t=="number"),e.typeName=="google.protobuf.NullValue"?null:n?t:((r=e.findNumber(t))==null?void 0:r.name)??t}function Zt(e,t){switch(e){case v.INT32:case v.SFIXED32:case v.SINT32:case v.FIXED32:case v.UINT32:return z(typeof t=="number"),t;case v.FLOAT:case v.DOUBLE:return z(typeof t=="number"),Number.isNaN(t)?"NaN":t===1/0?"Infinity":t===-1/0?"-Infinity":t;case v.STRING:return z(typeof t=="string"),t;case v.BOOL:return z(typeof t=="boolean"),t;case v.UINT64:case v.FIXED64:case v.INT64:case v.SFIXED64:case v.SINT64:return z(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case v.BYTES:return z(t instanceof Uint8Array),Xt.enc(t)}}var mt=Symbol("@bufbuild/protobuf/unknown-fields"),yo={readUnknownFields:!0,readerFactory:e=>new Ts(e)},wo={writeUnknownFields:!0,writerFactory:()=>new xs};function Ps(e){return e?Object.assign(Object.assign({},yo),e):yo}function Ms(e){return e?Object.assign(Object.assign({},wo),e):wo}function Rs(){return{makeReadOptions:Ps,makeWriteOptions:Ms,listUnknownFields(e){return e[mt]??[]},discardUnknownFields(e){delete e[mt]},writeUnknownFields(e,t){let n=e[mt];if(n)for(let r of n)t.tag(r.no,r.wireType).raw(r.data)},onUnknownField(e,t,n,r){let o=e;Array.isArray(o[mt])||(o[mt]=[]),o[mt].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,o){let a=e.getType(),i=o?t.len:t.pos+n,s,c;for(;t.pos0&&(c=Js),a){let p=e[i];if(r==Z.LengthDelimited&&s!=v.STRING&&s!=v.BYTES){let m=t.uint32()+t.pos;for(;t.posXe(p,f)?p:new f(p));else{let p=i[o];f.fieldWrapper?f.typeName==="google.protobuf.BytesValue"?a[o]=Ft(p):a[o]=p:a[o]=Xe(p,f)?p:new f(p)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let o=t[r.localName],a=n[r.localName];if(r.repeated){if(o.length!==a.length)return!1;switch(r.kind){case"message":return o.every((i,s)=>r.T.equals(i,a[s]));case"scalar":return o.every((i,s)=>Ze(r.T,i,a[s]));case"enum":return o.every((i,s)=>Ze(v.INT32,i,a[s]))}throw Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":let i=o,s=a;return r.T.fieldWrapper&&(i!==void 0&&!Xe(i)&&(i=r.T.fieldWrapper.wrapField(i)),s!==void 0&&!Xe(s)&&(s=r.T.fieldWrapper.wrapField(s))),r.T.equals(i,s);case"enum":return Ze(v.INT32,o,a);case"scalar":return Ze(r.T,o,a);case"oneof":if(o.case!==a.case)return!1;let c=r.findField(o.case);if(c===void 0)return!0;switch(c.kind){case"message":return c.T.equals(o.value,a.value);case"enum":return Ze(v.INT32,o.value,a.value);case"scalar":return Ze(c.T,o.value,a.value)}throw Error(`oneof cannot contain ${c.kind}`);case"map":let u=Object.keys(o).concat(Object.keys(a));switch(r.V.kind){case"message":let d=r.V.T;return u.every(p=>d.equals(o[p],a[p]));case"enum":return u.every(p=>Ze(v.INT32,o[p],a[p]));case"scalar":let f=r.V.T;return u.every(p=>Ze(f,o[p],a[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let o of t.fields.byMember()){let a=e[o.localName],i;if(o.repeated)i=a.map(nn);else if(o.kind=="map"){i=r[o.localName];for(let[s,c]of Object.entries(a))i[s]=nn(c)}else i=o.kind=="oneof"?o.findField(a.case)?{case:a.case,value:nn(a.value)}:{case:void 0}:nn(a);r[o.localName]=i}for(let o of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,o.no,o.wireType,o.data);return n}}}function nn(e){if(e===void 0)return e;if(Xe(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Ft(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Hs(e,t,n){return{syntax:e,json:Us(),bin:Rs(),util:Object.assign(Object.assign({},$s()),{newFieldList:t,initFields:n}),makeMessageType(r,o,a){return vs(this,r,o,a)},makeEnum:ws,makeEnumType:Zr,getEnumType:ys,makeExtension(r,o,a){return As(this,r,o,a)}}}var qs=class{constructor(e,t){this._fields=e,this._normalizer=t}findJsonName(e){if(!this.jsonNames){let t={};for(let n of this.list())t[n.jsonName]=t[n.name]=n;this.jsonNames=t}return this.jsonNames[e]}find(e){if(!this.numbers){let t={};for(let n of this.list())t[n.no]=n;this.numbers=t}return this.numbers[e]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((e,t)=>e.no-t.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let e=this.members,t;for(let n of this.list())n.oneof?n.oneof!==t&&(t=n.oneof,e.push(t)):e.push(n)}return this.members}};function Co(e,t){let n=So(e);return t?n:Zs(Qs(n))}function zs(e){return Co(e,!1)}const Ks=So;function So(e){let t=!1,n=[];for(let r=0;r`${e}$`,Qs=e=>Ys.has(e)?xo(e):e;const Zs=e=>Xs.has(e)?xo(e):e;var el=class{constructor(e){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=e,this.localName=zs(e)}addField(e){z(e.oneof===this,`field ${e.name} not one of ${this.name}`),this.fields.push(e)}findField(e){if(!this._lookup){this._lookup=Object.create(null);for(let t=0;tnew qs(e,t=>tl(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=ft(t.T,t.L);break;case"message":break}}});var ye;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(ye||(ye={}));var To;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(To||(To={}));var Xn;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.JUPYTER_FORMAT=77]="JUPYTER_FORMAT"})(Xn||(Xn={})),N.util.setEnumType(Xn,"exa.codeium_common_pb.ExperimentKey",[{no:0,name:"UNSPECIFIED"},{no:77,name:"JUPYTER_FORMAT"}]);var rn;(function(e){e[e.CODEIUM=0]="CODEIUM"})(rn||(rn={})),N.util.setEnumType(rn,"exa.codeium_common_pb.AuthSource",[{no:0,name:"AUTH_SOURCE_CODEIUM"}]);var on;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ENABLE_CODEIUM=1]="ENABLE_CODEIUM",e[e.DISABLE_CODEIUM=2]="DISABLE_CODEIUM",e[e.SHOW_PREVIOUS_COMPLETION=3]="SHOW_PREVIOUS_COMPLETION",e[e.SHOW_NEXT_COMPLETION=4]="SHOW_NEXT_COMPLETION"})(on||(on={})),N.util.setEnumType(on,"exa.codeium_common_pb.EventType",[{no:0,name:"EVENT_TYPE_UNSPECIFIED"},{no:1,name:"EVENT_TYPE_ENABLE_CODEIUM"},{no:2,name:"EVENT_TYPE_DISABLE_CODEIUM"},{no:3,name:"EVENT_TYPE_SHOW_PREVIOUS_COMPLETION"},{no:4,name:"EVENT_TYPE_SHOW_NEXT_COMPLETION"}]);var an;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TYPING_AS_SUGGESTED=1]="TYPING_AS_SUGGESTED",e[e.CACHE=2]="CACHE",e[e.NETWORK=3]="NETWORK"})(an||(an={})),N.util.setEnumType(an,"exa.codeium_common_pb.CompletionSource",[{no:0,name:"COMPLETION_SOURCE_UNSPECIFIED"},{no:1,name:"COMPLETION_SOURCE_TYPING_AS_SUGGESTED"},{no:2,name:"COMPLETION_SOURCE_CACHE"},{no:3,name:"COMPLETION_SOURCE_NETWORK"}]);var it;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.C=1]="C",e[e.CLOJURE=2]="CLOJURE",e[e.COFFEESCRIPT=3]="COFFEESCRIPT",e[e.CPP=4]="CPP",e[e.CSHARP=5]="CSHARP",e[e.CSS=6]="CSS",e[e.CUDACPP=7]="CUDACPP",e[e.DOCKERFILE=8]="DOCKERFILE",e[e.GO=9]="GO",e[e.GROOVY=10]="GROOVY",e[e.HANDLEBARS=11]="HANDLEBARS",e[e.HASKELL=12]="HASKELL",e[e.HCL=13]="HCL",e[e.HTML=14]="HTML",e[e.INI=15]="INI",e[e.JAVA=16]="JAVA",e[e.JAVASCRIPT=17]="JAVASCRIPT",e[e.JSON=18]="JSON",e[e.JULIA=19]="JULIA",e[e.KOTLIN=20]="KOTLIN",e[e.LATEX=21]="LATEX",e[e.LESS=22]="LESS",e[e.LUA=23]="LUA",e[e.MAKEFILE=24]="MAKEFILE",e[e.MARKDOWN=25]="MARKDOWN",e[e.OBJECTIVEC=26]="OBJECTIVEC",e[e.OBJECTIVECPP=27]="OBJECTIVECPP",e[e.PERL=28]="PERL",e[e.PHP=29]="PHP",e[e.PLAINTEXT=30]="PLAINTEXT",e[e.PROTOBUF=31]="PROTOBUF",e[e.PBTXT=32]="PBTXT",e[e.PYTHON=33]="PYTHON",e[e.R=34]="R",e[e.RUBY=35]="RUBY",e[e.RUST=36]="RUST",e[e.SASS=37]="SASS",e[e.SCALA=38]="SCALA",e[e.SCSS=39]="SCSS",e[e.SHELL=40]="SHELL",e[e.SQL=41]="SQL",e[e.STARLARK=42]="STARLARK",e[e.SWIFT=43]="SWIFT",e[e.TSX=44]="TSX",e[e.TYPESCRIPT=45]="TYPESCRIPT",e[e.VISUALBASIC=46]="VISUALBASIC",e[e.VUE=47]="VUE",e[e.XML=48]="XML",e[e.XSL=49]="XSL",e[e.YAML=50]="YAML",e[e.SVELTE=51]="SVELTE",e[e.TOML=52]="TOML",e[e.DART=53]="DART",e[e.RST=54]="RST",e[e.OCAML=55]="OCAML",e[e.CMAKE=56]="CMAKE",e[e.PASCAL=57]="PASCAL",e[e.ELIXIR=58]="ELIXIR",e[e.FSHARP=59]="FSHARP",e[e.LISP=60]="LISP",e[e.MATLAB=61]="MATLAB",e[e.POWERSHELL=62]="POWERSHELL",e[e.SOLIDITY=63]="SOLIDITY",e[e.ADA=64]="ADA",e[e.OCAML_INTERFACE=65]="OCAML_INTERFACE"})(it||(it={})),N.util.setEnumType(it,"exa.codeium_common_pb.Language",[{no:0,name:"LANGUAGE_UNSPECIFIED"},{no:1,name:"LANGUAGE_C"},{no:2,name:"LANGUAGE_CLOJURE"},{no:3,name:"LANGUAGE_COFFEESCRIPT"},{no:4,name:"LANGUAGE_CPP"},{no:5,name:"LANGUAGE_CSHARP"},{no:6,name:"LANGUAGE_CSS"},{no:7,name:"LANGUAGE_CUDACPP"},{no:8,name:"LANGUAGE_DOCKERFILE"},{no:9,name:"LANGUAGE_GO"},{no:10,name:"LANGUAGE_GROOVY"},{no:11,name:"LANGUAGE_HANDLEBARS"},{no:12,name:"LANGUAGE_HASKELL"},{no:13,name:"LANGUAGE_HCL"},{no:14,name:"LANGUAGE_HTML"},{no:15,name:"LANGUAGE_INI"},{no:16,name:"LANGUAGE_JAVA"},{no:17,name:"LANGUAGE_JAVASCRIPT"},{no:18,name:"LANGUAGE_JSON"},{no:19,name:"LANGUAGE_JULIA"},{no:20,name:"LANGUAGE_KOTLIN"},{no:21,name:"LANGUAGE_LATEX"},{no:22,name:"LANGUAGE_LESS"},{no:23,name:"LANGUAGE_LUA"},{no:24,name:"LANGUAGE_MAKEFILE"},{no:25,name:"LANGUAGE_MARKDOWN"},{no:26,name:"LANGUAGE_OBJECTIVEC"},{no:27,name:"LANGUAGE_OBJECTIVECPP"},{no:28,name:"LANGUAGE_PERL"},{no:29,name:"LANGUAGE_PHP"},{no:30,name:"LANGUAGE_PLAINTEXT"},{no:31,name:"LANGUAGE_PROTOBUF"},{no:32,name:"LANGUAGE_PBTXT"},{no:33,name:"LANGUAGE_PYTHON"},{no:34,name:"LANGUAGE_R"},{no:35,name:"LANGUAGE_RUBY"},{no:36,name:"LANGUAGE_RUST"},{no:37,name:"LANGUAGE_SASS"},{no:38,name:"LANGUAGE_SCALA"},{no:39,name:"LANGUAGE_SCSS"},{no:40,name:"LANGUAGE_SHELL"},{no:41,name:"LANGUAGE_SQL"},{no:42,name:"LANGUAGE_STARLARK"},{no:43,name:"LANGUAGE_SWIFT"},{no:44,name:"LANGUAGE_TSX"},{no:45,name:"LANGUAGE_TYPESCRIPT"},{no:46,name:"LANGUAGE_VISUALBASIC"},{no:47,name:"LANGUAGE_VUE"},{no:48,name:"LANGUAGE_XML"},{no:49,name:"LANGUAGE_XSL"},{no:50,name:"LANGUAGE_YAML"},{no:51,name:"LANGUAGE_SVELTE"},{no:52,name:"LANGUAGE_TOML"},{no:53,name:"LANGUAGE_DART"},{no:54,name:"LANGUAGE_RST"},{no:55,name:"LANGUAGE_OCAML"},{no:56,name:"LANGUAGE_CMAKE"},{no:57,name:"LANGUAGE_PASCAL"},{no:58,name:"LANGUAGE_ELIXIR"},{no:59,name:"LANGUAGE_FSHARP"},{no:60,name:"LANGUAGE_LISP"},{no:61,name:"LANGUAGE_MATLAB"},{no:62,name:"LANGUAGE_POWERSHELL"},{no:63,name:"LANGUAGE_SOLIDITY"},{no:64,name:"LANGUAGE_ADA"},{no:65,name:"LANGUAGE_OCAML_INTERFACE"}]);var nl=(we=class extends Y{constructor(n){super();h(this,"completionId","");h(this,"text","");h(this,"prefix","");h(this,"stop","");h(this,"score",0);h(this,"tokens",[]);h(this,"decodedTokens",[]);h(this,"probabilities",[]);h(this,"adjustedProbabilities",[]);h(this,"generatedLength",J.zero);N.util.initPartial(n,this)}static fromBinary(n,r){return new we().fromBinary(n,r)}static fromJson(n,r){return new we().fromJson(n,r)}static fromJsonString(n,r){return new we().fromJsonString(n,r)}static equals(n,r){return N.util.equals(we,n,r)}},h(we,"runtime",N),h(we,"typeName","exa.codeium_common_pb.Completion"),h(we,"fields",N.util.newFieldList(()=>[{no:1,name:"completion_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"stop",kind:"scalar",T:9},{no:5,name:"score",kind:"scalar",T:1},{no:6,name:"tokens",kind:"scalar",T:4,repeated:!0},{no:7,name:"decoded_tokens",kind:"scalar",T:9,repeated:!0},{no:8,name:"probabilities",kind:"scalar",T:1,repeated:!0},{no:9,name:"adjusted_probabilities",kind:"scalar",T:1,repeated:!0},{no:10,name:"generated_length",kind:"scalar",T:4}])),we),Ao=(ve=class extends Y{constructor(n){super();h(this,"ideName","");h(this,"ideVersion","");h(this,"extensionName","");h(this,"extensionVersion","");h(this,"apiKey","");h(this,"locale","");h(this,"sessionId","");h(this,"requestId",J.zero);h(this,"userAgent","");h(this,"url","");h(this,"authSource",rn.CODEIUM);N.util.initPartial(n,this)}static fromBinary(n,r){return new ve().fromBinary(n,r)}static fromJson(n,r){return new ve().fromJson(n,r)}static fromJsonString(n,r){return new ve().fromJsonString(n,r)}static equals(n,r){return N.util.equals(ve,n,r)}},h(ve,"runtime",N),h(ve,"typeName","exa.codeium_common_pb.Metadata"),h(ve,"fields",N.util.newFieldList(()=>[{no:1,name:"ide_name",kind:"scalar",T:9},{no:7,name:"ide_version",kind:"scalar",T:9},{no:12,name:"extension_name",kind:"scalar",T:9},{no:2,name:"extension_version",kind:"scalar",T:9},{no:3,name:"api_key",kind:"scalar",T:9},{no:4,name:"locale",kind:"scalar",T:9},{no:10,name:"session_id",kind:"scalar",T:9},{no:9,name:"request_id",kind:"scalar",T:4},{no:13,name:"user_agent",kind:"scalar",T:9},{no:14,name:"url",kind:"scalar",T:9},{no:15,name:"auth_source",kind:"enum",T:N.getEnumType(rn)}])),ve),rl=(Ee=class extends Y{constructor(n){super();h(this,"tabSize",J.zero);h(this,"insertSpaces",!1);N.util.initPartial(n,this)}static fromBinary(n,r){return new Ee().fromBinary(n,r)}static fromJson(n,r){return new Ee().fromJson(n,r)}static fromJsonString(n,r){return new Ee().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Ee,n,r)}},h(Ee,"runtime",N),h(Ee,"typeName","exa.codeium_common_pb.EditorOptions"),h(Ee,"fields",N.util.newFieldList(()=>[{no:1,name:"tab_size",kind:"scalar",T:4},{no:2,name:"insert_spaces",kind:"scalar",T:8}])),Ee);Ne=class extends Y{constructor(n){super();h(this,"eventType",on.UNSPECIFIED);h(this,"eventJson","");h(this,"timestampUnixMs",J.zero);N.util.initPartial(n,this)}static fromBinary(n,r){return new Ne().fromBinary(n,r)}static fromJson(n,r){return new Ne().fromJson(n,r)}static fromJsonString(n,r){return new Ne().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Ne,n,r)}},h(Ne,"runtime",N),h(Ne,"typeName","exa.codeium_common_pb.Event"),h(Ne,"fields",N.util.newFieldList(()=>[{no:1,name:"event_type",kind:"enum",T:N.getEnumType(on)},{no:2,name:"event_json",kind:"scalar",T:9},{no:3,name:"timestamp_unix_ms",kind:"scalar",T:3}]));var ol=class extends In{constructor(t,n){super();h(this,"index");h(this,"total");this.index=t,this.total=n}toDOM(){let t=document.createElement("span");t.setAttribute("aria-hidden","true"),t.className="cm-codeium-cycle";let n=t.appendChild(document.createElement("span"));n.className="cm-codeium-cycle-explanation",n.innerText=`${this.index+1}/${this.total}`;let r=t.appendChild(document.createElement("button"));return r.className="cm-codeium-cycle-key",r.innerText="\u2192 (Ctrl ])",r.dataset.action="codeium-cycle",t}ignoreEvent(){return!1}};const sn=Mt.define({combine(e){return xn(e,{language:it.TYPESCRIPT,timeout:150,widgetClass:ol,alwaysOn:!0},{})}}),Io=Mt.define({combine(e){return xn(e,{override:()=>[]},{})}});var al=H.mark({class:"cm-ghostText"});const st=qe.define({create(e){return null},update(e,t){var r;let n=t.state.facet(sn);for(let o of t.effects){if(o.is(Jn)){let{changeSpecs:a,index:i}=o.value,s=a[i].map(u=>al.range(u.absoluteStartPos,u.absoluteEndPos)),c=(r=s.at(-1))==null?void 0:r.to;return{index:i,decorations:H.set([...s,...c!==void 0&&a.length>1&&n.widgetClass?[H.widget({widget:new n.widgetClass(i,a.length),side:1}).range(c)]:[]]),changeSpecs:a,reverseChangeSet:o.value.reverseChangeSet}}if(o.is(Wn)||o.is(Vn))return null}return e&&{...e,decorations:e.decorations.map(t.changes),reverseChangeSet:e.reverseChangeSet.map(t.changes)}},provide:e=>B.decorations.from(e,t=>(t==null?void 0:t.decorations)||H.none)}),ht=An.define(),ln=An.define();var M;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(M||(M={}));function Yn(e){let t=M[e];return typeof t=="string"?t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase()):e.toString()}var cn;function il(e){if(!cn){cn={};for(let t of Object.values(M))typeof t!="string"&&(cn[Yn(t)]=t)}return cn[e]}var pe=class kt extends Error{constructor(t,n=M.Unknown,r,o,a){super(sl(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=o??[],this.cause=a}static from(t,n=M.Unknown){return t instanceof kt?t:t instanceof Error?t.name=="AbortError"?new kt(t.message,M.Canceled):new kt(t.message,n,void 0,void 0,t):new kt(String(t),n,void 0,void 0,t)}static[Symbol.hasInstance](t){return t instanceof Error?Object.getPrototypeOf(t)===kt.prototype?!0:t.name==="ConnectError"&&"code"in t&&typeof t.code=="number"&&"metadata"in t&&"details"in t&&Array.isArray(t.details)&&"rawMessage"in t&&typeof t.rawMessage=="string"&&"cause"in t:!1}findDetails(t){let n="typeName"in t?{findMessage:o=>o===t.typeName?t:void 0}:t,r=[];for(let o of this.details){if("getType"in o){n.findMessage(o.getType().typeName)&&r.push(o);continue}let a=n.findMessage(o.type);if(a)try{r.push(a.fromBinary(o.value))}catch{}}return r}};function sl(e,t){return e.length?`[${Yn(t)}] ${e}`:`[${Yn(t)}]`}function ll(...e){let t=new Headers;for(let n of e)n.forEach((r,o)=>{t.append(o,r)});return t}function cl(e,t){let n={};for(let[r,o]of Object.entries(e.methods)){let a=t(Object.assign(Object.assign({},o),{localName:r,service:e}));a!=null&&(n[r]=a)}return n}function ul(e){let t,n=new Uint8Array;function r(o){let a=new Uint8Array(n.length+o.length);a.set(n),a.set(o,n.length),n=a}return new ReadableStream({start(){t=e.getReader()},async pull(o){let a;for(;;){if(a===void 0&&n.byteLength>=5){let c=0;for(let u=1;u<5;u++)c=(c<<8)+n[u];a={flags:n[0],length:c}}if(a!==void 0&&n.byteLength>=a.length+5)break;let s=await t.read();if(s.done)break;r(s.value)}if(a===void 0){if(n.byteLength==0){o.close();return}o.error(new pe("premature end of stream",M.DataLoss));return}let i=n.subarray(5,5+a.length);n=n.subarray(5+a.length),o.enqueue({flags:a.flags,data:i})}})}function dl(e,t){let n=new Uint8Array(t.length+5);n.set(t,5);let r=new DataView(n.buffer,n.byteOffset,n.byteLength);return r.setUint8(0,e),r.setUint32(1,t.length),n}var fl=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(u){a({value:u,done:s})},i)}},Lt=function(e){return this instanceof Lt?(this.v=e,this):new Lt(e)},ml=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,a=[];return o={},s("next"),s("throw"),s("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(m){return function(g){return Promise.resolve(g).then(m,f)}}function s(m,g){r[m]&&(o[m]=function(y){return new Promise(function(w,k){a.push([m,y,w,k])>1||c(m,y)})},g&&(o[m]=g(o[m])))}function c(m,g){try{u(r[m](g))}catch(y){p(a[0][3],y)}}function u(m){m.value instanceof Lt?Promise.resolve(m.value.v).then(d,f):p(a[0][2],m)}function d(m){c("next",m)}function f(m){c("throw",m)}function p(m,g){m(g),a.shift(),a.length&&c(a[0][0],a[0][1])}},hl=function(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:Lt(e[o](i)),done:!1}:a?a(i):i}:a}};function pl(e){return ml(this,arguments,function*(){yield Lt(yield*hl(fl(e)))})}var Fo=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(i){return new Promise(function(s,c){i=e[a](i),o(s,c,i.done,i.value)})}}function o(a,i,s,c){Promise.resolve(c).then(function(u){a({value:u,done:s})},i)}},pt=function(e){return this instanceof pt?(this.v=e,this):new pt(e)},gl=function(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,a){t[o]=e[o]?function(i){return(n=!n)?{value:pt(e[o](i)),done:!1}:a?a(i):i}:a}},bl=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,a=[];return o={},s("next"),s("throw"),s("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(m){return function(g){return Promise.resolve(g).then(m,f)}}function s(m,g){r[m]&&(o[m]=function(y){return new Promise(function(w,k){a.push([m,y,w,k])>1||c(m,y)})},g&&(o[m]=g(o[m])))}function c(m,g){try{u(r[m](g))}catch(y){p(a[0][3],y)}}function u(m){m.value instanceof pt?Promise.resolve(m.value.v).then(d,f):p(a[0][2],m)}function d(m){c("next",m)}function f(m){c("throw",m)}function p(m,g){m(g),a.shift(),a.length&&c(a[0][0],a[0][1])}};function yl(e,t){return cl(e,n=>{switch(n.kind){case ye.Unary:return vl(t,e,n);case ye.ServerStreaming:return El(t,e,n);case ye.ClientStreaming:return Nl(t,e,n);case ye.BiDiStreaming:return kl(t,e,n);default:return null}})}function wl(e,t){return yl(e,t)}function vl(e,t,n){return async function(r,o){var a,i;let s=await e.unary(t,n,o==null?void 0:o.signal,o==null?void 0:o.timeoutMs,o==null?void 0:o.headers,r,o==null?void 0:o.contextValues);return(a=o==null?void 0:o.onHeader)==null||a.call(o,s.header),(i=o==null?void 0:o.onTrailer)==null||i.call(o,s.trailer),s.message}}function El(e,t,n){return function(r,o){return Lo(e.stream(t,n,o==null?void 0:o.signal,o==null?void 0:o.timeoutMs,o==null?void 0:o.headers,pl([r]),o==null?void 0:o.contextValues),o)}}function Nl(e,t,n){return async function(r,o){var a,i,s,c,u,d;let f=await e.stream(t,n,o==null?void 0:o.signal,o==null?void 0:o.timeoutMs,o==null?void 0:o.headers,r,o==null?void 0:o.contextValues);(u=o==null?void 0:o.onHeader)==null||u.call(o,f.header);let p,m=0;try{for(var g=!0,y=Fo(f.message),w;w=await y.next(),a=w.done,!a;g=!0)c=w.value,g=!1,p=c,m++}catch(k){i={error:k}}finally{try{!g&&!a&&(s=y.return)&&await s.call(y)}finally{if(i)throw i.error}}if(!p)throw new pe("protocol error: missing response message",M.Unimplemented);if(m>1)throw new pe("protocol error: received extra messages for client streaming method",M.Unimplemented);return(d=o==null?void 0:o.onTrailer)==null||d.call(o,f.trailer),p}}function kl(e,t,n){return function(r,o){return Lo(e.stream(t,n,o==null?void 0:o.signal,o==null?void 0:o.timeoutMs,o==null?void 0:o.headers,r,o==null?void 0:o.contextValues),o)}}function Lo(e,t){let n=(function(){return bl(this,arguments,function*(){var r,o;let a=yield pt(e);(r=t==null?void 0:t.onHeader)==null||r.call(t,a.header),yield pt(yield*gl(Fo(a.message))),(o=t==null?void 0:t.onTrailer)==null||o.call(t,a.trailer)})})()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function Cl(...e){let t=new AbortController,n=e.filter(o=>o!==void 0).concat(t.signal);for(let o of n){if(o.aborted){r.apply(o);break}o.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(Oo(this));for(let o of n)o.removeEventListener("abort",r)}return t}function Sl(e){let t=new AbortController,n=()=>{t.abort(new pe("the operation timed out",M.DeadlineExceeded))},r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function Oo(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;let t=Error("This operation was aborted");return t.name="AbortError",t}function Do(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function _o(e,t,n){let r=typeof t=="string"?t:t.typeName,o=typeof n=="string"?n:n.name;return e.toString().replace(/\/?$/,`/${r}/${o}`)}function Uo(e,t){return t instanceof e?t:new e(t)}function xl(e,t){function n(r){return r.done===!0?r:{done:r.done,value:Uo(e,r.value)}}return{[Symbol.asyncIterator](){let r=t[Symbol.asyncIterator](),o={next:()=>r.next().then(n)};return r.throw!==void 0&&(o.throw=a=>r.throw(a).then(n)),r.return!==void 0&&(o.return=a=>r.return(a).then(n)),o}}}function Bo(e,t){return(t==null?void 0:t.concat().reverse().reduce((n,r)=>r(n),e))??e}function jo(e){let t=Object.assign({},e);return t.ignoreUnknownFields??(t.ignoreUnknownFields=!0),t}function Po(e,t,n,r){let o=t?Mo(e.I,r):Ro(e.I,n);return{parse:(t?Mo(e.O,r):Ro(e.O,n)).parse,serialize:o.serialize}}function Mo(e,t){return{parse(n){try{return e.fromBinary(n,t)}catch(r){throw new pe(`parse binary: ${r instanceof Error?r.message:String(r)}`,M.Internal)}},serialize(n){try{return n.toBinary(t)}catch(r){throw new pe(`serialize binary: ${r instanceof Error?r.message:String(r)}`,M.Internal)}}}}function Ro(e,t){let n=(t==null?void 0:t.textEncoder)??new TextEncoder,r=(t==null?void 0:t.textDecoder)??new TextDecoder,o=jo(t);return{parse(a){try{let i=r.decode(a);return e.fromJsonString(i,o)}catch(i){throw pe.from(i,M.InvalidArgument)}},serialize(a){try{let i=a.toJsonString(o);return n.encode(i)}catch(i){throw pe.from(i,M.Internal)}}}}const Tl=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i;function Al(e){let t=e==null?void 0:e.match(Tl);if(t)return{stream:!!t[1],binary:!!t[3]}}function Go(e,t,n){if(t&&new Headers(t).forEach((i,s)=>n.metadata.append(s,i)),typeof e!="object"||!e||Array.isArray(e))throw n;let r=n.code;"code"in e&&typeof e.code=="string"&&(r=il(e.code)??r);let o=e.message;if(o!=null&&typeof o!="string")throw n;let a=new pe(o??"",r,t);if("details"in e&&Array.isArray(e.details))for(let i of e.details){if(typeof i!="object"||!i||Array.isArray(i)||typeof i.type!="string"||typeof i.value!="string")throw n;try{a.details.push({type:i.type,value:Xt.dec(i.value),debug:i.debug})}catch{throw n}}return a}function Il(e){let t=new pe("invalid end stream",M.Unknown),n;try{n=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof n!="object"||!n||Array.isArray(n))throw t;let r=new Headers;if("metadata"in n){if(typeof n.metadata!="object"||n.metadata==null||Array.isArray(n.metadata))throw t;for(let[o,a]of Object.entries(n.metadata)){if(!Array.isArray(a)||a.some(i=>typeof i!="string"))throw t;for(let i of a)r.append(o,i)}}return{metadata:r,error:"error"in n&&n.error!=null?Go(n.error,r,t):void 0}}const un="Content-Type",Jo="Content-Encoding",Wo="Connect-Protocol-Version";function Fl(e){switch(e){case 400:return M.Internal;case 401:return M.Unauthenticated;case 403:return M.PermissionDenied;case 404:return M.Unimplemented;case 429:return M.Unavailable;case 502:return M.Unavailable;case 503:return M.Unavailable;case 504:return M.Unavailable;default:return M.Unknown}}function Vo(e){let t=new Headers,n=new Headers;return e.forEach((r,o)=>{o.toLowerCase().startsWith("trailer-")?n.append(o.substring(8),r):t.append(o,r)}),[t,n]}function $o(e,t,n,r,o){let a=new Headers(r??{});return n!==void 0&&a.set("Connect-Timeout-Ms",`${n}`),a.set(un,e==ye.Unary?t?"application/proto":"application/json":t?"application/connect+proto":"application/connect+json"),a.set(Wo,"1"),o&&a.set("User-Agent","connect-es/1.6.1"),a}function Ho(e,t,n,r){let o=r.get(un),a=Al(o);if(n!==200){let s=new pe(`HTTP ${n}`,Fl(n),r);if(e==ye.Unary&&a&&!a.binary)return{isUnaryError:!0,unaryError:s};throw s}let i={binary:t,stream:e!==ye.Unary};if((a==null?void 0:a.binary)!==i.binary||a.stream!==i.stream)throw new pe(`unsupported content type ${o}`,a===void 0?M.Unknown:M.Internal,r);return{isUnaryError:!1}}var Ll="application/";function Ol(e,t){return t?Xt.enc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):encodeURIComponent(new TextDecoder().decode(e))}function Dl(e,t,n){let r="?connect=v1",o=e.header.get(un);(o==null?void 0:o.indexOf(Ll))===0&&(r+="&encoding="+encodeURIComponent(o.slice(12)));let a=e.header.get(Jo);a!==null&&a!=="identity"&&(r+="&compression="+encodeURIComponent(a),n=!0),n&&(r+="&base64=1"),r+="&message="+Ol(t,n);let i=e.url+r,s=new Headers(e.header);return[Wo,un,"Content-Length",Jo,"Accept-Encoding"].forEach(c=>s.delete(c)),Object.assign(Object.assign({},e),{init:Object.assign(Object.assign({},e.init),{method:"GET"}),url:i,header:s})}function _l(e){let t=Bo(e.next,e.interceptors),[n,r,o]=qo(e);return t(Object.assign(Object.assign({},e.req),{message:Uo(e.req.method.I,e.req.message),signal:n})).then(a=>(o(),a),r)}function Ul(e){let t=Bo(e.next,e.interceptors),[n,r,o]=qo(e),a=Object.assign(Object.assign({},e.req),{message:xl(e.req.method.I,e.req.message),signal:n}),i=!1;return n.addEventListener("abort",function(){var s,c;let u=e.req.message[Symbol.asyncIterator]();i||(s=u.throw)==null||s.call(u,this.reason).catch(()=>{}),(c=u.return)==null||c.call(u).catch(()=>{})}),t(a).then(s=>Object.assign(Object.assign({},s),{message:{[Symbol.asyncIterator](){let c=s.message[Symbol.asyncIterator]();return{next(){return c.next().then(u=>(u.done==1&&(i=!0,o()),u),r)}}}}}),r)}function qo(e){let{signal:t,cleanup:n}=Sl(e.timeoutMs),r=Cl(e.signal,t);return[r.signal,function(o){let a=pe.from(t.aborted?Oo(t):o);return r.abort(a),n(),Promise.reject(a)},function(){n(),r.abort()}]}var dn;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INACTIVE=1]="INACTIVE",e[e.PROCESSING=2]="PROCESSING",e[e.SUCCESS=3]="SUCCESS",e[e.WARNING=4]="WARNING",e[e.ERROR=5]="ERROR"})(dn||(dn={})),N.util.setEnumType(dn,"exa.language_server_pb.CodeiumState",[{no:0,name:"CODEIUM_STATE_UNSPECIFIED"},{no:1,name:"CODEIUM_STATE_INACTIVE"},{no:2,name:"CODEIUM_STATE_PROCESSING"},{no:3,name:"CODEIUM_STATE_SUCCESS"},{no:4,name:"CODEIUM_STATE_WARNING"},{no:5,name:"CODEIUM_STATE_ERROR"}]);var zo;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SINGLE=1]="SINGLE",e[e.MULTI=2]="MULTI"})(zo||(zo={})),N.util.setEnumType(zo,"exa.language_server_pb.LineType",[{no:0,name:"LINE_TYPE_UNSPECIFIED"},{no:1,name:"LINE_TYPE_SINGLE"},{no:2,name:"LINE_TYPE_MULTI"}]);var fn;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INLINE=1]="INLINE",e[e.BLOCK=2]="BLOCK",e[e.INLINE_MASK=3]="INLINE_MASK"})(fn||(fn={})),N.util.setEnumType(fn,"exa.language_server_pb.CompletionPartType",[{no:0,name:"COMPLETION_PART_TYPE_UNSPECIFIED"},{no:1,name:"COMPLETION_PART_TYPE_INLINE"},{no:2,name:"COMPLETION_PART_TYPE_BLOCK"},{no:3,name:"COMPLETION_PART_TYPE_INLINE_MASK"}]);var Bl=(ke=class extends Y{constructor(n){super();h(this,"threshold",0);N.util.initPartial(n,this)}static fromBinary(n,r){return new ke().fromBinary(n,r)}static fromJson(n,r){return new ke().fromJson(n,r)}static fromJsonString(n,r){return new ke().fromJsonString(n,r)}static equals(n,r){return N.util.equals(ke,n,r)}},h(ke,"runtime",N),h(ke,"typeName","exa.language_server_pb.MultilineConfig"),h(ke,"fields",N.util.newFieldList(()=>[{no:1,name:"threshold",kind:"scalar",T:2}])),ke),jl=(Ce=class extends Y{constructor(n){super();h(this,"metadata");h(this,"document");h(this,"editorOptions");h(this,"otherDocuments",[]);h(this,"experimentConfig");h(this,"modelName","");h(this,"multilineConfig");N.util.initPartial(n,this)}static fromBinary(n,r){return new Ce().fromBinary(n,r)}static fromJson(n,r){return new Ce().fromJson(n,r)}static fromJsonString(n,r){return new Ce().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Ce,n,r)}},h(Ce,"runtime",N),h(Ce,"typeName","exa.language_server_pb.GetCompletionsRequest"),h(Ce,"fields",N.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Ao},{no:2,name:"document",kind:"message",T:Ko},{no:3,name:"editor_options",kind:"message",T:rl},{no:5,name:"other_documents",kind:"message",T:Ko,repeated:!0},{no:7,name:"experiment_config",kind:"message",T:Wl},{no:10,name:"model_name",kind:"scalar",T:9},{no:13,name:"multiline_config",kind:"message",T:Bl}])),Ce),Pl=(Se=class extends Y{constructor(n){super();h(this,"state");h(this,"completionItems",[]);N.util.initPartial(n,this)}static fromBinary(n,r){return new Se().fromBinary(n,r)}static fromJson(n,r){return new Se().fromJson(n,r)}static fromJsonString(n,r){return new Se().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Se,n,r)}},h(Se,"runtime",N),h(Se,"typeName","exa.language_server_pb.GetCompletionsResponse"),h(Se,"fields",N.util.newFieldList(()=>[{no:1,name:"state",kind:"message",T:Vl},{no:2,name:"completion_items",kind:"message",T:zl,repeated:!0}])),Se),Ml=(xe=class extends Y{constructor(n){super();h(this,"metadata");h(this,"completionId","");N.util.initPartial(n,this)}static fromBinary(n,r){return new xe().fromBinary(n,r)}static fromJson(n,r){return new xe().fromJson(n,r)}static fromJsonString(n,r){return new xe().fromJsonString(n,r)}static equals(n,r){return N.util.equals(xe,n,r)}},h(xe,"runtime",N),h(xe,"typeName","exa.language_server_pb.AcceptCompletionRequest"),h(xe,"fields",N.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Ao},{no:2,name:"completion_id",kind:"scalar",T:9}])),xe),Rl=(Te=class extends Y{constructor(t){super(),N.util.initPartial(t,this)}static fromBinary(t,n){return new Te().fromBinary(t,n)}static fromJson(t,n){return new Te().fromJson(t,n)}static fromJsonString(t,n){return new Te().fromJsonString(t,n)}static equals(t,n){return N.util.equals(Te,t,n)}},h(Te,"runtime",N),h(Te,"typeName","exa.language_server_pb.AcceptCompletionResponse"),h(Te,"fields",N.util.newFieldList(()=>[])),Te),Gl=(Ae=class extends Y{constructor(t){super(),N.util.initPartial(t,this)}static fromBinary(t,n){return new Ae().fromBinary(t,n)}static fromJson(t,n){return new Ae().fromJson(t,n)}static fromJsonString(t,n){return new Ae().fromJsonString(t,n)}static equals(t,n){return N.util.equals(Ae,t,n)}},h(Ae,"runtime",N),h(Ae,"typeName","exa.language_server_pb.GetAuthTokenRequest"),h(Ae,"fields",N.util.newFieldList(()=>[])),Ae),Jl=(Ie=class extends Y{constructor(n){super();h(this,"authToken","");h(this,"uuid","");N.util.initPartial(n,this)}static fromBinary(n,r){return new Ie().fromBinary(n,r)}static fromJson(n,r){return new Ie().fromJson(n,r)}static fromJsonString(n,r){return new Ie().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Ie,n,r)}},h(Ie,"runtime",N),h(Ie,"typeName","exa.language_server_pb.GetAuthTokenResponse"),h(Ie,"fields",N.util.newFieldList(()=>[{no:1,name:"auth_token",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}])),Ie),Qn=(Fe=class extends Y{constructor(n){super();h(this,"row",J.zero);h(this,"col",J.zero);N.util.initPartial(n,this)}static fromBinary(n,r){return new Fe().fromBinary(n,r)}static fromJson(n,r){return new Fe().fromJson(n,r)}static fromJsonString(n,r){return new Fe().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Fe,n,r)}},h(Fe,"runtime",N),h(Fe,"typeName","exa.language_server_pb.DocumentPosition"),h(Fe,"fields",N.util.newFieldList(()=>[{no:1,name:"row",kind:"scalar",T:4},{no:2,name:"col",kind:"scalar",T:4}])),Fe),Ko=(Le=class extends Y{constructor(n){super();h(this,"absolutePath","");h(this,"relativePath","");h(this,"text","");h(this,"editorLanguage","");h(this,"language",it.UNSPECIFIED);h(this,"cursorOffset",J.zero);h(this,"cursorPosition");h(this,"lineEnding","");N.util.initPartial(n,this)}static fromBinary(n,r){return new Le().fromBinary(n,r)}static fromJson(n,r){return new Le().fromJson(n,r)}static fromJsonString(n,r){return new Le().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Le,n,r)}},h(Le,"runtime",N),h(Le,"typeName","exa.language_server_pb.Document"),h(Le,"fields",N.util.newFieldList(()=>[{no:1,name:"absolute_path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9},{no:3,name:"text",kind:"scalar",T:9},{no:4,name:"editor_language",kind:"scalar",T:9},{no:5,name:"language",kind:"enum",T:N.getEnumType(it)},{no:6,name:"cursor_offset",kind:"scalar",T:4},{no:8,name:"cursor_position",kind:"message",T:Qn},{no:7,name:"line_ending",kind:"scalar",T:9}])),Le),Wl=(Oe=class extends Y{constructor(n){super();h(this,"forceEnableExperiments",[]);N.util.initPartial(n,this)}static fromBinary(n,r){return new Oe().fromBinary(n,r)}static fromJson(n,r){return new Oe().fromJson(n,r)}static fromJsonString(n,r){return new Oe().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Oe,n,r)}},h(Oe,"runtime",N),h(Oe,"typeName","exa.language_server_pb.ExperimentConfig"),h(Oe,"fields",N.util.newFieldList(()=>[{no:1,name:"force_enable_experiments",kind:"enum",T:N.getEnumType(Xn),repeated:!0}])),Oe),Vl=(De=class extends Y{constructor(n){super();h(this,"state",dn.UNSPECIFIED);h(this,"message","");N.util.initPartial(n,this)}static fromBinary(n,r){return new De().fromBinary(n,r)}static fromJson(n,r){return new De().fromJson(n,r)}static fromJsonString(n,r){return new De().fromJsonString(n,r)}static equals(n,r){return N.util.equals(De,n,r)}},h(De,"runtime",N),h(De,"typeName","exa.language_server_pb.State"),h(De,"fields",N.util.newFieldList(()=>[{no:1,name:"state",kind:"enum",T:N.getEnumType(dn)},{no:2,name:"message",kind:"scalar",T:9}])),De),$l=(_e=class extends Y{constructor(n){super();h(this,"startOffset",J.zero);h(this,"endOffset",J.zero);h(this,"startPosition");h(this,"endPosition");N.util.initPartial(n,this)}static fromBinary(n,r){return new _e().fromBinary(n,r)}static fromJson(n,r){return new _e().fromJson(n,r)}static fromJsonString(n,r){return new _e().fromJsonString(n,r)}static equals(n,r){return N.util.equals(_e,n,r)}},h(_e,"runtime",N),h(_e,"typeName","exa.language_server_pb.Range"),h(_e,"fields",N.util.newFieldList(()=>[{no:1,name:"start_offset",kind:"scalar",T:4},{no:2,name:"end_offset",kind:"scalar",T:4},{no:3,name:"start_position",kind:"message",T:Qn},{no:4,name:"end_position",kind:"message",T:Qn}])),_e),Hl=(Ue=class extends Y{constructor(n){super();h(this,"text","");h(this,"deltaCursorOffset",J.zero);N.util.initPartial(n,this)}static fromBinary(n,r){return new Ue().fromBinary(n,r)}static fromJson(n,r){return new Ue().fromJson(n,r)}static fromJsonString(n,r){return new Ue().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Ue,n,r)}},h(Ue,"runtime",N),h(Ue,"typeName","exa.language_server_pb.Suffix"),h(Ue,"fields",N.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"delta_cursor_offset",kind:"scalar",T:3}])),Ue),ql=(Be=class extends Y{constructor(n){super();h(this,"text","");h(this,"offset",J.zero);h(this,"type",fn.UNSPECIFIED);h(this,"prefix","");h(this,"line",J.zero);N.util.initPartial(n,this)}static fromBinary(n,r){return new Be().fromBinary(n,r)}static fromJson(n,r){return new Be().fromJson(n,r)}static fromJsonString(n,r){return new Be().fromJsonString(n,r)}static equals(n,r){return N.util.equals(Be,n,r)}},h(Be,"runtime",N),h(Be,"typeName","exa.language_server_pb.CompletionPart"),h(Be,"fields",N.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:4},{no:3,name:"type",kind:"enum",T:N.getEnumType(fn)},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"line",kind:"scalar",T:4}])),Be),zl=(je=class extends Y{constructor(n){super();h(this,"completion");h(this,"suffix");h(this,"range");h(this,"source",an.UNSPECIFIED);h(this,"completionParts",[]);N.util.initPartial(n,this)}static fromBinary(n,r){return new je().fromBinary(n,r)}static fromJson(n,r){return new je().fromJson(n,r)}static fromJsonString(n,r){return new je().fromJsonString(n,r)}static equals(n,r){return N.util.equals(je,n,r)}},h(je,"runtime",N),h(je,"typeName","exa.language_server_pb.CompletionItem"),h(je,"fields",N.util.newFieldList(()=>[{no:1,name:"completion",kind:"message",T:nl},{no:5,name:"suffix",kind:"message",T:Hl},{no:2,name:"range",kind:"message",T:$l},{no:3,name:"source",kind:"enum",T:N.getEnumType(an)},{no:8,name:"completion_parts",kind:"message",T:ql,repeated:!0}])),je);const Kl={typeName:"exa.language_server_pb.LanguageServerService",methods:{getCompletions:{name:"GetCompletions",I:jl,O:Pl,kind:ye.Unary},acceptCompletion:{name:"AcceptCompletion",I:Ml,O:Rl,kind:ye.Unary},getAuthToken:{name:"GetAuthToken",I:Gl,O:Jl,kind:ye.Unary}}};function Xl(){try{new Headers}catch{throw Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var Ot=function(e){return this instanceof Ot?(this.v=e,this):new Ot(e)},Yl=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,a=[];return o={},s("next"),s("throw"),s("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(m){return function(g){return Promise.resolve(g).then(m,f)}}function s(m,g){r[m]&&(o[m]=function(y){return new Promise(function(w,k){a.push([m,y,w,k])>1||c(m,y)})},g&&(o[m]=g(o[m])))}function c(m,g){try{u(r[m](g))}catch(y){p(a[0][3],y)}}function u(m){m.value instanceof Ot?Promise.resolve(m.value.v).then(d,f):p(a[0][2],m)}function d(m){c("next",m)}function f(m){c("throw",m)}function p(m,g){m(g),a.shift(),a.length&&c(a[0][0],a[0][1])}};function Ql(e){Xl();let t=e.useBinaryFormat??!1;return{async unary(n,r,o,a,i,s,c){let{serialize:u,parse:d}=Po(r,t,e.jsonOptions,e.binaryOptions);return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await _l({interceptors:e.interceptors,signal:o,timeoutMs:a,req:{stream:!1,service:n,method:r,url:_o(e.baseUrl,n,r),init:{method:"POST",credentials:e.credentials??"same-origin",redirect:"error",mode:"cors"},header:$o(r.kind,t,a,i,!1),contextValues:c??Do(),message:s},next:async f=>{let p=e.useHttpGet===!0&&r.idempotency===To.NoSideEffects,m=null;p?f=Dl(f,u(f.message),t):m=u(f.message);let g=await(e.fetch??globalThis.fetch)(f.url,Object.assign(Object.assign({},f.init),{headers:f.header,signal:f.signal,body:m})),{isUnaryError:y,unaryError:w}=Ho(r.kind,t,g.status,g.headers);if(y)throw Go(await g.json(),ll(...Vo(g.headers)),w);let[k,C]=Vo(g.headers);return{stream:!1,service:n,method:r,header:k,message:t?d(new Uint8Array(await g.arrayBuffer())):r.O.fromJson(await g.json(),jo(e.jsonOptions)),trailer:C}}})},async stream(n,r,o,a,i,s,c){let{serialize:u,parse:d}=Po(r,t,e.jsonOptions,e.binaryOptions);function f(m,g,y,w){return Yl(this,arguments,function*(){let k=ul(m).getReader(),C=!1;for(;;){let A=yield Ot(k.read());if(A.done)break;let{flags:L,data:U}=A.value;if((L&1)==1)throw new pe("protocol error: received unsupported compressed output",M.Internal);if((L&2)==2){C=!0;let T=Il(U);if(T.error){let x=T.error;throw y.forEach((G,ee)=>{x.metadata.append(ee,G)}),x}T.metadata.forEach((x,G)=>g.set(G,x));continue}yield yield Ot(d(U))}if("throwIfAborted"in w&&w.throwIfAborted(),!C)throw"missing EndStreamResponse"})}async function p(m){if(r.kind!=ye.ServerStreaming)throw"The fetch API does not support streaming request bodies";let g=await m[Symbol.asyncIterator]().next();if(g.done==1)throw"missing request message";return dl(0,u(g.value))}return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await Ul({interceptors:e.interceptors,timeoutMs:a,signal:o,req:{stream:!0,service:n,method:r,url:_o(e.baseUrl,n,r),init:{method:"POST",credentials:e.credentials??"same-origin",redirect:"error",mode:"cors"},header:$o(r.kind,t,a,i,!1),contextValues:c??Do(),message:s},next:async m=>{let g=await(e.fetch??globalThis.fetch)(m.url,Object.assign(Object.assign({},m.init),{headers:m.header,signal:m.signal,body:await p(m.message)}));if(Ho(r.kind,t,g.status,g.headers),g.body===null)throw"missing response body";let y=new Headers;return Object.assign(Object.assign({},m),{header:g.headers,trailer:y,message:f(g.body,y,g.headers,m.signal)})}})}}}var Zl=wl(Kl,Ql({baseUrl:"https://web-backend.codeium.com",useBinaryFormat:!0})),mn;try{mn=crypto.randomUUID()}catch{mn=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(t^(crypto.getRandomValues(new Uint8Array(1))[0]??0)&15>>t/4).toString(16))}()}async function ec({text:e,cursorOffset:t,config:n,otherDocuments:r}){return await Zl.getCompletions({metadata:{ideName:"web",ideVersion:"0.0.5",extensionName:"@valtown/codemirror-codeium",extensionVersion:"1.0.0",apiKey:n.apiKey,sessionId:mn,authSource:n.authSource},document:{text:e,cursorOffset:BigInt(t),language:n.language,editorLanguage:"typescript",lineEnding:` +`},editorOptions:{tabSize:2n,insertSpaces:!0},otherDocuments:r,multilineConfig:void 0},{headers:{Authorization:`Basic ${n.apiKey}-${mn}`}})}function tc(e){return e.completionItems.map(t=>{let n=0;return t.completionParts.filter(r=>r.type!==3).map(r=>{let o=Number(r.offset),a=r.type===2?` +${r.text}`:r.text,i={absoluteStartPos:n+o,absoluteEndPos:n+o+a.length,from:o,to:o,insert:a};return n+=a.length,i})})}async function nc(e,t){let n=e.state.facet(sn),{override:r}=e.state.facet(Io),o=await r(),a=e.state,i=a.selection.main.head,s=a.doc.toString();try{let c=await ec({text:s,cursorOffset:i,config:n,otherDocuments:o});if(!c||c.completionItems.length===0||!((t===void 0||i===t)&&Gt(e.state)!=="active"&&e.hasFocus))return;let u=tc(c),d=u.at(0);if(!d)return;let f=Tn.of(d,a.doc.length),p=f.invert(a.doc);e.dispatch({changes:f,effects:Jn.of({index:0,reverseChangeSet:p,changeSpecs:u}),annotations:[ln.of(null),ht.of(null),Rt.addToHistory.of(!1)]})}catch(c){console.warn("copilot completion failed",c),await new Promise(u=>setTimeout(u,300))}}function rc(e){return e.docChanged&&!e.transactions.some(t=>t.effects.some(n=>n.is(Wn)||n.is(Vn)))}function oc(e){if(!e.view.hasFocus||e.state.field(st)||Gt(e.state)==="active")return!0;for(let t of e.transactions)if(t.annotation(ht)!==void 0)return!0}function ac(){let e=null,t=0;return B.updateListener.of(n=>{let r=n.view.state.facet(sn);if(!r.alwaysOn||!rc(n)||(e&&clearTimeout(e),oc(n)))return;let o=n.state.selection.main.head;r.shouldComplete&&!r.shouldComplete(new Wf(n.view.state,o,!1))||(e=setTimeout(async()=>{o===t&&await nc(n.view,t)},r.timeout),t=o)})}function Xo(e){var o;let t=e.state.field(st);if(!t)return!1;let n=(o=t.reverseChangeSet)==null?void 0:o.invert(e.state.doc);e.dispatch({changes:t.reverseChangeSet,effects:Wn.of(null),annotations:[ln.of(null),ht.of(null),Rt.addToHistory.of(!1)]});let r=0;return n==null||n.iterChangedRanges((a,i,s,c)=>{r=c}),e.dispatch({changes:n,selection:yt.cursor(r),annotations:[ht.of(null),Rt.addToHistory.of(!0)]}),!0}const Yo=e=>{let{state:t}=e,n=t.field(st);if(!n)return!1;let{changeSpecs:r}=n;if(r.length<2)return!1;let o=(n.index+1)%r.length,a=r.at(o);if(!a)return!1;let i=n.reverseChangeSet.apply(t.doc),s=Tn.of(n.reverseChangeSet,t.doc.length).compose(Tn.of(a,i.length)),c=Tn.of(a,i.length).invert(i);return e.dispatch({changes:s,effects:Jn.of({index:o,reverseChangeSet:c,changeSpecs:r}),annotations:[ln.of(null),ht.of(null),Rt.addToHistory.of(!1)]}),!0};function Zn(e){let t=e.state.field(st);return t&&e.dispatch({changes:t.reverseChangeSet,effects:Vn.of(null),annotations:[ln.of(null),ht.of(null),Rt.addToHistory.of(!1)]}),!1}function ic(e,t){return e.state.field(st)?t==="Tab"?Xo(e):Zn(e):!1}function sc(e){var o,a;let t=!1,n=(o=e.state.selection.asSingle().ranges.at(0))==null?void 0:o.head,r=e.state.field(st);return n!==void 0&&r?((a=r.decorations)==null||a.between(n,n,()=>{t=!0}),t):!1}function lc(){return B.domEventHandlers({keydown(e,t){return e.key==="]"&&e.ctrlKey?!1:e.key!=="Shift"&&e.key!=="Control"&&e.key!=="Alt"&&e.key!=="Meta"?ic(t,e.key):!1},mouseup(e,t){let n=e.target;return n.nodeName==="BUTTON"&&n.dataset.action==="codeium-cycle"?(Yo(t),e.stopPropagation(),e.preventDefault(),!0):sc(t)?Xo(t):Zn(t)}})}function cc(){return Je.of([{key:"Ctrl-]",run:Yo}])}function uc(){return B.updateListener.of(e=>{e.focusChanged&&Zn(e.view)})}function dc(e){return[sn.of(e),st,ct.highest(cc()),ct.highest(uc()),ct.high(lc()),ac()]}function fc({response:e,prefix:t,suffix:n}){if(!e)return e;let r=e;return t&&r.startsWith(t)&&(r=r.slice(t.length)),n&&r.endsWith(n)&&(r=r.slice(0,-n.length)),r}var mc=bd(),hc=new ff,er=$e.get("@github/copilot-language-server"),Qo={delay:300,includeKeymap:!0,events:{shouldShowSuggestion:e=>e.hasFocus,beforeSuggestionFetch:e=>e.hasFocus}};const pc=e=>{let t=[];return e.copilot==="codeium"&&e.codeium_api_key&&t.push(dc({apiKey:e.codeium_api_key,language:it.PYTHON}),Io.of({override:async()=>[{text:wr(""),language:it.PYTHON,editorLanguage:"python"}]})),e.copilot==="github"&&t.push(qr({...Qo,fetchFn:async(n,r,o)=>{let a=n.selection.main.head;if(!Vd()||!o.hasFocus||n.doc.length===0)return"";await new Promise(c=>setTimeout(c,20));let i=gc(n,wr(n.doc.toString())),s=await Wd().getCompletion(i);return a===o.state.selection.main.head?bc(s,i.position,n):($e.debug("ignoring response because of new position"),"")}})),e.copilot==="custom"&&t.push(qr({...Qo,fetchFn:async(n,r,o)=>{let a=n.selection.main.head;if(n.doc.length===0||!o.hasFocus)return"";let i=n.doc.sliceString(0,n.selection.main.head),s=n.doc.sliceString(n.selection.main.head,n.doc.length);if(i.length===0)return"";let c=n.field(Cn).type,u=await ef.post("/ai/inline_completion",{prefix:i,suffix:s,language:c});return a===o.state.selection.main.head?(u=fc({response:u,prefix:i,suffix:s}),u):($e.debug("ignoring response because of new position"),"")}})),[...t,ct.highest(Je.of([{key:"Escape",run:n=>{let r=Hr(n);return Nn(n)?!1:r}}])),hc.of(Jd())]};function gc(e,t){let n=e.doc.toString(),r=t.split(` +`).length-n.split(` +`).length,o=yc(e.doc,e.selection.main.head);return o.line+=r,{textDocument:{uri:`file://${$d}`,version:"replace_me"},position:o,context:{triggerKind:mc.InlineCompletionTriggerKind.Automatic},formattingOptions:{tabSize:e.tabSize,insertSpaces:!0}}}function bc(e,t,n){if(!e)return er.debug("No response from copilot"),"";let r=Array.isArray(e)?e[0]:e.items[0];if(!r)return er.debug("No response from copilot"),"";let{insertText:o,range:a}=r,i=String(o);if(!a)return er.error("No range from copilot"),i;let s=a.start.character-t.character,c=s<0?i.slice(-s):i,u=n.doc.sliceString(n.selection.main.head,n.doc.length);for(let d=0;d{if(t===void 0)return e;switch(t.type){case"setFind":return{...e,findText:t.find};case"setReplace":return{...e,replaceText:t.replace};case"setCaseSensitive":return{...e,caseSensitive:t.caseSensitive};case"setWholeWord":return{...e,wholeWord:t.wholeWord};case"setRegex":return{...e,regexp:t.regexp};case"setIsOpen":return{...e,isOpen:t.isOpen};case"setCurrentView":return{...e,currentView:{view:t.view,range:t.range}};case"clearCurrentView":return{...e,currentView:void 0}}}),Pr=function(e){if([...document.querySelectorAll('[role="dialog"][data-state="open"]')].some(t=>t instanceof HTMLElement&&t.childNodes.length>0))return!1;if(e){let t=e.state.selection.main,n=e.state.sliceDoc(t.from,t.to);n?(Q.set(be,{type:"setFind",find:n}),Q.set(be,{type:"setCurrentView",view:e,range:{from:t.from,to:t.to}})):Q.set(be,{type:"setCurrentView",view:e,range:{from:0,to:0}})}return Q.get(be).isOpen?(Q.set(be,{type:"setIsOpen",isOpen:!1}),requestAnimationFrame(()=>{Q.set(be,{type:"setIsOpen",isOpen:!0})}),!0):(Q.set(be,{type:"setIsOpen",isOpen:!0}),!0)};function wc(){return Q.get(be).isOpen?(Q.set(be,{type:"setIsOpen",isOpen:!1}),!0):!1}var tr=he.define();_i=function(){let e=Q.get(be),t=Ha();for(let n of t)n.state.readOnly||n.dispatch({effects:tr.of(new Fr({search:e.findText,caseSensitive:e.caseSensitive,regexp:e.regexp,replace:e.replaceText,wholeWord:e.wholeWord}))})},Li=function(){let e=Ha();for(let t of e)t.state.readOnly||t.dispatch({effects:tr.of(new Fr({search:""}))})};const hn=qe.define({create(){let e=Q.get(be);return On(new Fr({search:e.findText,caseSensitive:e.caseSensitive,regexp:e.regexp,replace:e.replaceText,wholeWord:e.wholeWord})).create()},update(e,t){for(let n of t.effects)n.is(tr)&&(e=On(n.value).create());return e}});var vc=H.mark({class:"cm-searchMatch"}),Ec=H.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Nc=250;const kc=ze.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(hn))}update(e){let t=e.state.field(hn);(t!==e.startState.field(hn)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight(e){if(!e.spec.valid)return H.none;let{view:t}=this,n=new cf,r=t.visibleRanges,o=r.length;for(let a=0;ar[a+1].from-2*Nc;)i=r[++a].to;e.highlight(t.state,s,i,(c,u)=>{let d=t.state.selection.ranges.some(f=>f.from===c&&f.to===u);n.add(c,u,d?Ec:vc)})}return n.finish()}},{decorations:e=>e.decorations}),Cc=B.baseTheme({"&light .cm-searchMatch":{backgroundColor:"#99ff7780"},"&dark .cm-searchMatch":{backgroundColor:"#22bb0070"},"&light .cm-searchMatch-selected":{backgroundColor:"transparent"},"&dark .cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff88 !important"}});function Sc(e){return[Je.of([{key:"Escape",preventDefault:!1,run:wc},{key:e.getHotkey("cell.selectNextOccurrence").key,preventDefault:!0,run:If},{key:e.getHotkey("cell.findAndReplace").key,preventDefault:!0,run:Pr}]),Lf(),kc,hn,Cc]}var xc=H.mark({class:"underline"}),Zo=he.define(),ea=he.define(),ta=he.define();const Tc=qe.define({create(){return H.none},update(e,t){let n=e.map(t.changes);for(let r of t.effects)r.is(Zo)?n=e.update({add:[xc.range(r.value.from,r.value.to)]}):r.is(ea)?n=e.update({add:[Od.range(r.value.from,r.value.to)]}):r.is(ta)&&(n=H.none);return n},provide:e=>B.decorations.from(e)});var Ac=class{constructor(e,t){h(this,"keydown",e=>{(e.key==="Meta"||e.key==="Control")&&(this.commandClickMode=!0,this.view.dom.addEventListener("mousemove",this.mousemove),this.view.dom.addEventListener("click",this.click))});h(this,"keyup",e=>{(e.key==="Meta"||e.key==="Control")&&this.exitCommandClickMode()});h(this,"windowBlur",()=>{this.commandClickMode&&this.exitCommandClickMode()});h(this,"mousemove",e=>{var o;if(!e.metaKey&&!e.ctrlKey){this.exitCommandClickMode();return}if(!this.commandClickMode){this.clearUnderline();return}let t=this.view.posAtCoords({x:e.clientX,y:e.clientY});if(t==null){this.clearUnderline();return}let n=(o=this.view.state.field(Ad,!1))==null?void 0:o.ranges.find(a=>t>=a.from&&t<=a.to);if(n){let{from:a,to:i}=n;if(this.hoveredRange&&this.hoveredRange.from===a&&this.hoveredRange.to===i)return;this.clearUnderline(),this.hoveredRange={from:a,to:i,position:t},this.view.dispatch({effects:ea.of(this.hoveredRange)});return}let r=ni(this.view.state).cursorAt(t);if(r.name==="VariableName"){let{from:a,to:i}=r;if(this.hoveredRange&&this.hoveredRange.from===a&&this.hoveredRange.to===i)return;this.clearUnderline(),this.hoveredRange={from:a,to:i,position:t},this.view.dispatch({effects:Zo.of(this.hoveredRange)})}else this.clearUnderline()});h(this,"click",e=>{if(this.hoveredRange){let t=this.view.state.doc.sliceString(this.hoveredRange.from,this.hoveredRange.to);e.preventDefault(),e.stopPropagation(),this.onClick(this.view,t),this.view.dispatch({selection:{head:this.hoveredRange.position,anchor:this.hoveredRange.position}})}});this.view=e,this.commandClickMode=!1,this.hoveredRange=null,this.onClick=t,window.addEventListener("keydown",this.keydown),window.addEventListener("keyup",this.keyup),window.addEventListener("blur",this.windowBlur),window.addEventListener("mouseleave",this.windowBlur)}update(e){}destroy(){window.removeEventListener("keydown",this.keydown),window.removeEventListener("keyup",this.keyup),window.removeEventListener("blur",this.windowBlur),window.removeEventListener("mouseleave",this.windowBlur),this.view.dom.removeEventListener("mousemove",this.mousemove),this.view.dom.removeEventListener("click",this.click)}exitCommandClickMode(){this.commandClickMode=!1,this.view.dom.removeEventListener("mousemove",this.mousemove),this.view.dom.removeEventListener("click",this.click),this.clearUnderline()}clearUnderline(){this.hoveredRange&&(this.hoveredRange=(this.view.dispatch({effects:ta.of(null)}),null))}};const Ic=e=>ze.define(t=>new Ac(t,e));function Fc(){return[Tc,Ic((e,t)=>{kd(e,t)}),B.baseTheme({".underline":{textDecoration:"underline",cursor:"pointer",color:"var(--link)"}})]}function Lc(){return[B.domEventHandlers({drop:(e,t)=>{var o,a;let n=(o=e.dataTransfer)==null?void 0:o.files[0];if(n!=null&&n.type.startsWith("text/"))return e.preventDefault(),pd(t,n),!0;if(n!=null&&n.type.startsWith("image/"))return e.preventDefault(),md(t,n),!0;let r=(a=e.dataTransfer)==null?void 0:a.getData("text/plain");if(r){e.preventDefault();let i=t.posAtCoords({x:e.clientX,y:e.clientY});return i!==null&&t.dispatch({changes:{from:i,to:i,insert:r},scrollIntoView:!0}),!0}return!1},dragover:e=>{e.preventDefault()}})]}function Oc(){return[B.domEventHandlers({paste:(e,t)=>{var o;let n=(o=e.clipboardData)==null?void 0:o.getData("text/plain");if(!(n!=null&&n.includes("@app.cell")))return!1;let r=Dc(n);return r.length===0?!1:(t.state.facet(Cd).createManyBelow(r),!0)}})]}function Dc(e){if(!e.includes("@app.cell"))return[];let t=[],n=e.split(` +`),r=[],o=!1,a=0,i=!1,s=!1,c=0,u=/\(/g,d=/\)/g,f=new Set(["@"]);function p(g){return(g.match(u)||[]).length-(g.match(d)||[]).length}function m(){if(r.length!==0){for(;r.length>0&&r[r.length-1].trim().startsWith("return");)r.pop();r.some(g=>g.trim()!=="")&&t.push(_c(r.join(` +`))),r=[]}}for(let g of n){let y=g.trim();if(!(!y&&!o)){if(y.startsWith("@app.cell")){m(),o=!0,a=1;continue}if(a>0){y.startsWith("def")&&y.includes("(")&&!y.includes("):")&&(i=!0,c=p(y)),a--;continue}if(i){c+=p(y),c===0&&(i=!1);continue}if(o){if(f.has(y[0])||y.startsWith("if __name__")){m(),o=y.startsWith("@");continue}if(y.startsWith("return")){y.includes("(")&&!y.endsWith(")")&&(s=!0,c=p(y));continue}if(s){c+=p(y),c===0&&(s=!1);continue}r.push(g)}}}return m(),t}function _c(e){let t=e.split(` +`);if(t.length===0)return"";let n=t.filter(a=>a.trim().length>0);if(n.length===0)return"";let r=/^\s*/,o=Math.min(...n.map(a=>{var i;return((i=a.match(r))==null?void 0:i[0].length)??1/0}));return o===0?e.trim():t.map(a=>a.slice(o)).join(` +`).trim()}function Uc(e,t,n,r){var o;return r!=="{"||t!==n||!((o=ni(e.state).resolveInner(t,-1))!=null&&o.type.name.includes("String"))?!1:(e.dispatch({changes:{from:t,to:n,insert:"{}"},selection:{anchor:t+1},userEvent:"input.type"}),!0)}function Bc(){return B.inputHandler.of(Uc)}var oe=({variant:e,settings:t,styles:n})=>[B.theme({"&":{backgroundColor:t.background,color:t.foreground},".cm-content":{caretColor:t.caret},".cm-cursor, .cm-dropCursor":{borderLeftColor:t.caret},"&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t.selection},".cm-activeLine":{backgroundColor:t.lineHighlight},".cm-gutters":{backgroundColor:t.gutterBackground,color:t.gutterForeground},".cm-activeLineGutter":{backgroundColor:t.lineHighlight}},{dark:e==="dark"}),ri(hf.define(n))];oe({variant:"dark",settings:{background:"#200020",foreground:"#D0D0FF",caret:"#7070FF",selection:"#80000080",gutterBackground:"#200020",gutterForeground:"#C080C0",lineHighlight:"#80000040"},styles:[{tag:l.comment,color:"#404080"},{tag:[l.string,l.regexp],color:"#999999"},{tag:l.number,color:"#7090B0"},{tag:[l.bool,l.null],color:"#8080A0"},{tag:[l.punctuation,l.derefOperator],color:"#805080"},{tag:l.keyword,color:"#60B0FF"},{tag:l.definitionKeyword,color:"#B0FFF0"},{tag:l.moduleKeyword,color:"#60B0FF"},{tag:l.operator,color:"#A0A0FF"},{tag:[l.variableName,l.self],color:"#008080"},{tag:l.operatorKeyword,color:"#A0A0FF"},{tag:l.controlKeyword,color:"#80A0FF"},{tag:l.className,color:"#70E080"},{tag:[l.function(l.propertyName),l.propertyName],color:"#50A0A0"},{tag:l.tagName,color:"#009090"},{tag:l.modifier,color:"#B0FFF0"},{tag:[l.squareBracket,l.attributeName],color:"#D0D0FF"}]}),oe({variant:"light",settings:{background:"#fcfcfc",foreground:"#5c6166",caret:"#ffaa33",selection:"#036dd626",gutterBackground:"#fcfcfc",gutterForeground:"#8a919966",lineHighlight:"#8a91991a"},styles:[{tag:l.comment,color:"#787b8099"},{tag:l.string,color:"#86b300"},{tag:l.regexp,color:"#4cbf99"},{tag:[l.number,l.bool,l.null],color:"#ffaa33"},{tag:l.variableName,color:"#5c6166"},{tag:[l.definitionKeyword,l.modifier],color:"#fa8d3e"},{tag:[l.keyword,l.special(l.brace)],color:"#fa8d3e"},{tag:l.operator,color:"#ed9366"},{tag:l.separator,color:"#5c6166b3"},{tag:l.punctuation,color:"#5c6166"},{tag:[l.definition(l.propertyName),l.function(l.variableName)],color:"#f2ae49"},{tag:[l.className,l.definition(l.typeName)],color:"#22a4e6"},{tag:[l.tagName,l.typeName,l.self,l.labelName],color:"#55b4d4"},{tag:l.angleBracket,color:"#55b4d480"},{tag:l.attributeName,color:"#f2ae49"}]}),oe({variant:"dark",settings:{background:"#15191EFA",foreground:"#EEF2F7",caret:"#C4C4C4",selection:"#90B2D557",gutterBackground:"#15191EFA",gutterForeground:"#aaaaaa95",lineHighlight:"#57575712"},styles:[{tag:l.comment,color:"#6E6E6E"},{tag:[l.string,l.regexp,l.special(l.brace)],color:"#5C81B3"},{tag:l.number,color:"#C1E1B8"},{tag:l.bool,color:"#53667D"},{tag:[l.definitionKeyword,l.modifier,l.function(l.propertyName)],color:"#A3D295",fontWeight:"bold"},{tag:[l.keyword,l.moduleKeyword,l.operatorKeyword,l.operator],color:"#697A8E",fontWeight:"bold"},{tag:[l.variableName,l.attributeName],color:"#708E67"},{tag:[l.function(l.variableName),l.definition(l.propertyName),l.derefOperator],color:"#fff"},{tag:l.tagName,color:"#A3D295"}]}),oe({variant:"dark",settings:{background:"#2e241d",foreground:"#BAAE9E",caret:"#A7A7A7",selection:"#DDF0FF33",gutterBackground:"#28211C",gutterForeground:"#BAAE9E90",lineHighlight:"#FFFFFF08"},styles:[{tag:l.comment,color:"#666666"},{tag:[l.string,l.special(l.brace)],color:"#54BE0D"},{tag:l.regexp,color:"#E9C062"},{tag:l.number,color:"#CF6A4C"},{tag:[l.keyword,l.operator],color:"#5EA6EA"},{tag:l.variableName,color:"#7587A6"},{tag:[l.definitionKeyword,l.modifier],color:"#F9EE98"},{tag:[l.propertyName,l.function(l.variableName)],color:"#937121"},{tag:[l.typeName,l.angleBracket,l.tagName],color:"#9B859D"}]}),oe({variant:"dark",settings:{background:"#3b2627",foreground:"#E6E1C4",caret:"#E6E1C4",selection:"#16120E",gutterBackground:"#3b2627",gutterForeground:"#E6E1C490",lineHighlight:"#1F1611"},styles:[{tag:l.comment,color:"#6B4E32"},{tag:[l.keyword,l.operator,l.derefOperator],color:"#EF5D32"},{tag:l.className,color:"#EFAC32",fontWeight:"bold"},{tag:[l.typeName,l.propertyName,l.function(l.variableName),l.definition(l.variableName)],color:"#EFAC32"},{tag:l.definition(l.typeName),color:"#EFAC32",fontWeight:"bold"},{tag:l.labelName,color:"#EFAC32",fontWeight:"bold"},{tag:[l.number,l.bool],color:"#6C99BB"},{tag:[l.variableName,l.self],color:"#7DAF9C"},{tag:[l.string,l.special(l.brace),l.regexp],color:"#D9D762"},{tag:[l.angleBracket,l.tagName,l.attributeName],color:"#EFCB43"}]}),oe({variant:"dark",settings:{background:"#000205",foreground:"#FFFFFF",caret:"#E60065",selection:"#E60C6559",gutterBackground:"#000205",gutterForeground:"#ffffff90",lineHighlight:"#4DD7FC1A"},styles:[{tag:l.comment,color:"#404040"},{tag:[l.string,l.special(l.brace),l.regexp],color:"#00D8FF"},{tag:l.number,color:"#E62286"},{tag:[l.variableName,l.attributeName,l.self],color:"#E62286",fontWeight:"bold"},{tag:l.function(l.variableName),color:"#fff",fontWeight:"bold"}]}),oe({variant:"light",settings:{background:"#fff",foreground:"#000",caret:"#000",selection:"#BDD5FC",gutterBackground:"#fff",gutterForeground:"#00000070",lineHighlight:"#FFFBD1"},styles:[{tag:l.comment,color:"#BCC8BA"},{tag:[l.string,l.special(l.brace),l.regexp],color:"#5D90CD"},{tag:[l.number,l.bool,l.null],color:"#46A609"},{tag:l.keyword,color:"#AF956F"},{tag:[l.definitionKeyword,l.modifier],color:"#C52727"},{tag:[l.angleBracket,l.tagName,l.attributeName],color:"#606060"},{tag:l.self,color:"#000"}]}),oe({variant:"dark",settings:{background:"#00254b",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#B36539BF",gutterBackground:"#00254b",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},styles:[{tag:l.comment,color:"#0088FF"},{tag:l.string,color:"#3AD900"},{tag:l.regexp,color:"#80FFC2"},{tag:[l.number,l.bool,l.null],color:"#FF628C"},{tag:[l.definitionKeyword,l.modifier],color:"#FFEE80"},{tag:l.variableName,color:"#CCCCCC"},{tag:l.self,color:"#FF80E1"},{tag:[l.className,l.definition(l.propertyName),l.function(l.variableName),l.definition(l.typeName),l.labelName],color:"#FFDD00"},{tag:[l.keyword,l.operator],color:"#FF9D00"},{tag:[l.propertyName,l.typeName],color:"#80FFBB"},{tag:l.special(l.brace),color:"#EDEF7D"},{tag:l.attributeName,color:"#9EFFFF"},{tag:l.derefOperator,color:"#fff"}]}),oe({variant:"dark",settings:{background:"#060521",foreground:"#E0E0E0",caret:"#FFFFFFA6",selection:"#122BBB",gutterBackground:"#060521",gutterForeground:"#E0E0E090",lineHighlight:"#FFFFFF0F"},styles:[{tag:l.comment,color:"#AEAEAE"},{tag:[l.string,l.special(l.brace),l.regexp],color:"#8DFF8E"},{tag:[l.className,l.definition(l.propertyName),l.function(l.variableName),l.function(l.definition(l.variableName)),l.definition(l.typeName)],color:"#A3EBFF"},{tag:[l.number,l.bool,l.null],color:"#62E9BD"},{tag:[l.keyword,l.operator],color:"#2BF1DC"},{tag:[l.definitionKeyword,l.modifier],color:"#F8FBB1"},{tag:[l.variableName,l.self],color:"#B683CA"},{tag:[l.angleBracket,l.tagName,l.typeName,l.propertyName],color:"#60A4F1"},{tag:l.derefOperator,color:"#E0E0E0"},{tag:l.attributeName,color:"#7BACCA"}]}),oe({variant:"dark",settings:{background:"#2d2f3f",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"#44475a",gutterBackground:"#282a36",gutterForeground:"rgb(144, 145, 148)",lineHighlight:"#44475a"},styles:[{tag:l.comment,color:"#6272a4"},{tag:[l.string,l.special(l.brace)],color:"#f1fa8c"},{tag:[l.number,l.self,l.bool,l.null],color:"#bd93f9"},{tag:[l.keyword,l.operator],color:"#ff79c6"},{tag:[l.definitionKeyword,l.typeName],color:"#8be9fd"},{tag:l.definition(l.typeName),color:"#f8f8f2"},{tag:[l.className,l.definition(l.propertyName),l.function(l.variableName),l.attributeName],color:"#50fa7b"}]}),oe({variant:"light",settings:{background:"#FFFFFF",foreground:"#000000",caret:"#000000",selection:"#80C7FF",gutterBackground:"#FFFFFF",gutterForeground:"#00000070",lineHighlight:"#C1E2F8"},styles:[{tag:l.comment,color:"#AAAAAA"},{tag:[l.keyword,l.operator,l.typeName,l.tagName,l.propertyName],color:"#2F6F9F",fontWeight:"bold"},{tag:[l.attributeName,l.definition(l.propertyName)],color:"#4F9FD0"},{tag:[l.className,l.string,l.special(l.brace)],color:"#CF4F5F"},{tag:l.number,color:"#CF4F5F",fontWeight:"bold"},{tag:l.variableName,fontWeight:"bold"}]}),oe({variant:"light",settings:{background:"#f2f1f8",foreground:"#0c006b",caret:"#5c49e9",selection:"#d5d1f2",gutterBackground:"#f2f1f8",gutterForeground:"#0c006b70",lineHighlight:"#e1def3"},styles:[{tag:l.comment,color:"#9995b7"},{tag:l.keyword,color:"#ff5792",fontWeight:"bold"},{tag:[l.definitionKeyword,l.modifier],color:"#ff5792"},{tag:[l.className,l.tagName,l.definition(l.typeName)],color:"#0094f0"},{tag:[l.number,l.bool,l.null,l.special(l.brace)],color:"#5842ff"},{tag:[l.definition(l.propertyName),l.function(l.variableName)],color:"#0095a8"},{tag:l.typeName,color:"#b3694d"},{tag:[l.propertyName,l.variableName],color:"#fa8900"},{tag:l.operator,color:"#ff5792"},{tag:l.self,color:"#e64100"},{tag:[l.string,l.regexp],color:"#00b368"},{tag:[l.paren,l.bracket],color:"#0431fa"},{tag:l.labelName,color:"#00bdd6"},{tag:l.attributeName,color:"#e64100"},{tag:l.angleBracket,color:"#9995b7"}]}),oe({variant:"light",settings:{background:"#faf4ed",foreground:"#575279",caret:"#575279",selection:"#6e6a8614",gutterBackground:"#faf4ed",gutterForeground:"#57527970",lineHighlight:"#6e6a860d"},styles:[{tag:l.comment,color:"#9893a5"},{tag:[l.bool,l.null],color:"#286983"},{tag:l.number,color:"#d7827e"},{tag:l.className,color:"#d7827e"},{tag:[l.angleBracket,l.tagName,l.typeName],color:"#56949f"},{tag:l.attributeName,color:"#907aa9"},{tag:l.punctuation,color:"#797593"},{tag:[l.keyword,l.modifier],color:"#286983"},{tag:[l.string,l.regexp],color:"#ea9d34"},{tag:l.variableName,color:"#d7827e"}]}),oe({variant:"light",settings:{background:"#FFFFFF",foreground:"#000000",caret:"#000000",selection:"#FFFD0054",gutterBackground:"#FFFFFF",gutterForeground:"#00000070",lineHighlight:"#00000008"},styles:[{tag:l.comment,color:"#CFCFCF"},{tag:[l.number,l.bool,l.null],color:"#E66C29"},{tag:[l.className,l.definition(l.propertyName),l.function(l.variableName),l.labelName,l.definition(l.typeName)],color:"#2EB43B"},{tag:l.keyword,color:"#D8B229"},{tag:l.operator,color:"#4EA44E",fontWeight:"bold"},{tag:[l.definitionKeyword,l.modifier],color:"#925A47"},{tag:l.string,color:"#704D3D"},{tag:l.typeName,color:"#2F8996"},{tag:[l.variableName,l.propertyName],color:"#77ACB0"},{tag:l.self,color:"#77ACB0",fontWeight:"bold"},{tag:l.regexp,color:"#E3965E"},{tag:[l.tagName,l.angleBracket],color:"#BAA827"},{tag:l.attributeName,color:"#B06520"},{tag:l.derefOperator,color:"#000"}]}),oe({variant:"light",settings:{background:"#fef7e5",foreground:"#586E75",caret:"#000000",selection:"#073642",gutterBackground:"#fef7e5",gutterForeground:"#586E7580",lineHighlight:"#EEE8D5"},styles:[{tag:l.comment,color:"#93A1A1"},{tag:l.string,color:"#2AA198"},{tag:l.regexp,color:"#D30102"},{tag:l.number,color:"#D33682"},{tag:l.variableName,color:"#268BD2"},{tag:[l.keyword,l.operator,l.punctuation],color:"#859900"},{tag:[l.definitionKeyword,l.modifier],color:"#073642",fontWeight:"bold"},{tag:[l.className,l.self,l.definition(l.propertyName)],color:"#268BD2"},{tag:l.function(l.variableName),color:"#268BD2"},{tag:[l.bool,l.null],color:"#B58900"},{tag:l.tagName,color:"#268BD2",fontWeight:"bold"},{tag:l.angleBracket,color:"#93A1A1"},{tag:l.attributeName,color:"#93A1A1"},{tag:l.typeName,color:"#859900"}]}),oe({variant:"light",settings:{background:"#FFFFFF",foreground:"#4D4D4C",caret:"#AEAFAD",selection:"#D6D6D6",gutterBackground:"#FFFFFF",gutterForeground:"#4D4D4C80",lineHighlight:"#EFEFEF"},styles:[{tag:l.comment,color:"#8E908C"},{tag:[l.variableName,l.self,l.propertyName,l.attributeName,l.regexp],color:"#C82829"},{tag:[l.number,l.bool,l.null],color:"#F5871F"},{tag:[l.className,l.typeName,l.definition(l.typeName)],color:"#C99E00"},{tag:[l.string,l.special(l.brace)],color:"#718C00"},{tag:l.operator,color:"#3E999F"},{tag:[l.definition(l.propertyName),l.function(l.variableName)],color:"#4271AE"},{tag:l.keyword,color:"#8959A8"},{tag:l.derefOperator,color:"#4D4D4C"}]});const jc=[oe({variant:"dark",settings:{background:"var(--cm-background)",foreground:"#abb2bf",caret:"#528bff",selection:"#3E4451",lineHighlight:"#2c313c",gutterBackground:"var(--color-background)",gutterForeground:"var(--gray-10)"},styles:[{tag:l.comment,color:"var(--cm-comment)"},{tag:l.variableName,color:"#abb2bf"},{tag:[l.string,l.special(l.brace)],color:"#98c379"},{tag:l.number,color:"#d19a66"},{tag:l.bool,color:"#d19a66"},{tag:l.null,color:"#d19a66"},{tag:l.keyword,color:"#c678dd",fontWeight:500},{tag:l.className,color:"#61afef"},{tag:l.definition(l.typeName),color:"#61afef"},{tag:l.typeName,color:"#56b6c2"},{tag:l.angleBracket,color:"#abb2bf"},{tag:l.tagName,color:"#e06c75"},{tag:l.attributeName,color:"#d19a66"},{tag:l.operator,color:"#56b6c2",fontWeight:500},{tag:[l.function(l.variableName)],color:"#61afef"},{tag:[l.propertyName],color:"#e5c07b"}]}),B.theme({".mo-cm-reactive-reference":{fontWeight:"400",color:"#2a7aa5",borderBottom:"2px solid #bad3de"},".mo-cm-reactive-reference-hover":{cursor:"pointer",borderBottomWidth:"3px",borderBottomColor:"#4a90a5"}})],Pc=[oe({variant:"light",settings:{background:"#ffffff",foreground:"#000000",caret:"#000000",selection:"#d7d4f0",lineHighlight:"#cceeff44",gutterBackground:"var(--color-background)",gutterForeground:"var(--gray-10)"},styles:[{tag:l.comment,color:"var(--cm-comment)"},{tag:l.variableName,color:"#000000"},{tag:[l.string,l.special(l.brace)],color:"#a11"},{tag:l.number,color:"#164"},{tag:l.bool,color:"#219"},{tag:l.null,color:"#219"},{tag:l.keyword,color:"#708",fontWeight:500},{tag:l.className,color:"#00f"},{tag:l.definition(l.typeName),color:"#00f"},{tag:l.typeName,color:"#085"},{tag:l.angleBracket,color:"#000000"},{tag:l.tagName,color:"#170"},{tag:l.attributeName,color:"#00c"},{tag:l.operator,color:"#a2f",fontWeight:500},{tag:[l.function(l.variableName)],color:"#00c"},{tag:[l.propertyName],color:"#05a"}]}),B.theme({".mo-cm-reactive-reference":{fontWeight:"400",color:"#005f87",borderBottom:"2px solid #bad3de"},".mo-cm-reactive-reference-hover":{cursor:"pointer",borderBottomWidth:"3px"}})];function na(e){let{showPlaceholder:t,enableAI:n}=e;return t?"marimo-import":n?"ai":"none"}const Mc=e=>{let{cellId:t,keymapConfig:n,hotkeys:r,enableAI:o,cellActions:a,completionConfig:i,lspConfig:s,diagnosticsConfig:c,displayConfig:u,inlineAiTooltip:d}=e,f=na(e);return[Hd(n,r),Lc(),Oc(),us(),dd({completionConfig:i,hotkeys:r,placeholderType:f,lspConfig:s,diagnosticsConfig:c}),ud({cellId:t,hotkeys:r,cellActions:a,keymapConfig:n}),Gc(e),Fc(),c!=null&&c.enabled?Ff():[],o&&d?[ts({prompt:p=>ls({prompt:p.prompt,selection:p.selection,codeBefore:p.codeBefore,codeAfter:p.codeAfter,language:yd(p.editorView)})}),Mn.of({hideOnBlur:!0})]:[],_d(t,u.reference_highlighting??!0)]};var Rc=e=>{let{from:t,to:n}=e.state.selection.main;if(t!==n)return!1;let r=e.state.doc.lineAt(n);return r.text.slice(0,n-r.from).trim()===""?!1:Rf(e)};const Gc=e=>{let{theme:t,hotkeys:n,completionConfig:r,cellId:o,lspConfig:a,diagnosticsConfig:i}=e,s=na(e);return[B.lineWrapping,gf(),vf(),Nf(),Sf(),pf(),Cf(),sf(),yf({position:"fixed",parent:document.querySelector("#App")??void 0}),Bd(),t==="dark"?jc:Pc,xd(a),pc(r),kf(),Bc(),Gf(),fs(),ct.high(Je.of(Pf)),wf(),df(),uf.of(" "),ri(mf,{fallback:!0}),Je.of(lf),Dd({placeholderType:s,completionConfig:r,hotkeys:n,cellId:o,lspConfig:{...a,diagnostics:i}}),Ed.of(Af()),Ir.allowMultipleSelections.of(!0),Sc(n),Je.of([{key:"Tab",run:c=>ai(c)||Rc(c)||Df(c),preventDefault:!0},{key:n.getHotkey("completion.moveDown").key,run:c=>Gt(c.state)===null?!1:(Fn(!0)(c),!0),preventDefault:!0},{key:n.getHotkey("completion.moveUp").key,run:c=>Gt(c.state)===null?!1:(Fn(!1)(c),!0),preventDefault:!0}]),Je.of([..._f,xf])]};var et=(e=>!e||e instanceof WebAssembly.Module?e:typeof e=="object"&&"default"in e?e.default??e:e)(jm),nr=e=>{Pm(e),typeof Si=="function"&&Si(),Jc(Nt)};function Jc(e){typeof e.__wbindgen_start=="function"&&e.__wbindgen_start()}if(et&&et.__wbindgen_start)nr(et);else if("Bun"in globalThis){let e;if(et instanceof WebAssembly.Module)({instance:e}=await WebAssembly.instantiate(et,{"./loro_wasm_bg.js":Nt}));else{let t=Bun.pathToFileURL(et);({instance:e}=await WebAssembly.instantiateStreaming(fetch(t),{"./loro_wasm_bg.js":Nt}))}nr(e.exports)}else{let e=et instanceof WebAssembly.Module?et:await dm(()=>import("./loro_wasm_bg-BVxoQZ3o.js").then(async r=>(await r.__tla,r)),__vite__mapDeps([0,1,2]),import.meta.url),t=e instanceof WebAssembly.Module?e:e&&e.default||e,n;if(t instanceof WebAssembly.Instance)n=t;else if(t instanceof WebAssembly.Module)n=await WebAssembly.instantiate(t,{"./loro_wasm_bg.js":Nt});else if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let{instance:r}=await WebAssembly.instantiate(t,{"./loro_wasm_bg.js":Nt});n=r}else if(typeof t=="string"||t instanceof URL){let r=await fetch(t),{instance:o}=await WebAssembly.instantiateStreaming(r,{"./loro_wasm_bg.js":Nt});n=o}else throw console.error("Unsupported wasm import type:",t),Error("Unsupported wasm import type: "+typeof t);nr(n.exports??n)}var Wc=["Map","Text","List","Tree","MovableList","Counter"];function Vc(e){return e.startsWith("cid:")}function ra(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return typeof t!="object"||!t||typeof t.kind!="function"?!1:Wc.includes(e.kind())}var $c=class{constructor(e,t=3e4){this.listeners=new Set,this.inner=new xi(e,t),this.peer=e,this.timeout=t}apply(e,t="remote"){let{updated:n,added:r}=this.inner.apply(e);this.listeners.forEach(o=>{o({updated:n,added:r,removed:[]},t)}),this.startTimerIfNotEmpty()}setLocalState(e){let t=this.inner.getState(this.peer)==null;this.inner.setLocalState(e),t?this.listeners.forEach(n=>{n({updated:[],added:[this.inner.peer()],removed:[]},"local")}):this.listeners.forEach(n=>{n({updated:[this.inner.peer()],added:[],removed:[]},"local")}),this.startTimerIfNotEmpty()}getLocalState(){return this.inner.getState(this.peer)}getAllStates(){return this.inner.getAllStates()}encode(e){return this.inner.encode(e)}encodeAll(){return this.inner.encodeAll()}addListener(e){this.listeners.add(e)}removeListener(e){this.listeners.delete(e)}peers(){return this.inner.peers()}destroy(){clearInterval(this.timer),this.listeners.clear()}startTimerIfNotEmpty(){this.inner.isEmpty()||this.timer!=null||(this.timer=setInterval(()=>{let e=this.inner.removeOutdated();e.length>0&&this.listeners.forEach(t=>{t({updated:[],added:[],removed:e},"timeout")}),this.inner.isEmpty()&&(clearInterval(this.timer),this.timer=void 0)},this.timeout/2))}};Br.prototype.toJsonWithReplacer=function(e){let t=new Set,n=this,r=(a,i)=>{if(typeof i=="string"&&Vc(i)&&!t.has(i)){t.add(i);let c=n.getContainerById(i);if(c==null)throw Error(`ContainerID not found: ${i}`);let u=e(a,c);if(u===c){let d=c.getShallowValue();return typeof d=="object"?o(d):d}if(ra(u))throw Error("Using new container is not allowed in toJsonWithReplacer");return typeof u=="object"&&u?o(u):u}if(typeof i=="object"&&i)return o(i);let s=e(a,i);if(ra(s))throw Error("Using new container is not allowed in toJsonWithReplacer");return s},o=a=>{if(Array.isArray(a))return a.map((s,c)=>r(c,s)).filter(s=>s!==void 0);let i={};for(let[s,c]of Object.entries(a)){let u=r(s,c);u!==void 0&&(i[s]=u)}return i};return o(n.getShallowValue())};var oa=Symbol("loro.callPendingEventsWrapped");function rr(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(!n||typeof n.value!="function")return;let r=n.value;if(r[oa])return;let o=function(...a){let i;try{return i=r.apply(this,a),i}finally{i&&typeof i.then=="function"?i.finally(()=>{Ci()}):Ci()}};o[oa]=!0,Object.defineProperty(e,t,{...n,value:o})}function Hc(e,t){for(let n of t)rr(e,n)}function or(e){let t=new Set,n=e;for(;n&&n!==Object.prototype&&n!==Function.prototype;){for(let r of Object.getOwnPropertyNames(n))r==="constructor"||t.has(r)||(t.add(r),rr(n,r));for(let r of Object.getOwnPropertySymbols(n))t.has(r)||(t.add(r),rr(n,r));n=Object.getPrototypeOf(n)}}or(Br.prototype),or(Um.prototype),or(xi.prototype),Hc(Bm.prototype,["undo","redo"]);const qc=B.baseTheme({".loro-cursor":{position:"absolute",width:"2px",display:"inline-block",height:"1.2em"},".loro-cursor::before":{position:"absolute",top:"1.3em",left:"0",content:"var(--rtc-name)",padding:"2px 6px",fontSize:"12px",borderRadius:"3px",whiteSpace:"nowrap",userSelect:"none",backgroundColor:"inherit",opacity:"0.7"},".loro-selection":{opacity:"0.5"}});An.define();const Dt=he.define(),ar=qe.define({create(){return{remoteCursors:new Map,isCheckout:!1}},update(e,t){for(let n of t.effects)if(n.is(Dt))switch(n.value.type){case"update":{let{peer:r,user:o,cursor:a}=n.value;e.remoteCursors.set(r,{uid:r,cursor:a,user:o});break}case"delete":e.remoteCursors.delete(n.value.peer);break;case"checkout":e.isCheckout=n.value.checkout}return e}});var aa=e=>{let t=e.transactions.flatMap(n=>n.effects).filter(n=>n.is(Dt));return e.docChanged||e.viewportChanged||t.length>0};const zc=()=>ti({above:!0,class:"loro-cursor-layer",update:aa,markers:e=>{let{remoteCursors:t,isCheckout:n}=e.state.field(ar);return n?[]:[...t.values()].flatMap(r=>{var a,i;let o=yt.cursor(r.cursor.anchor);return Xc.createCursor(e,o,((a=r.user)==null?void 0:a.name)||"unknown",((i=r.user)==null?void 0:i.colorClassName)||"")})}}),Kc=()=>ti({above:!1,class:"loro-selection-layer",update:aa,markers:e=>{let{remoteCursors:t,isCheckout:n}=e.state.field(ar);return n?[]:[...t.entries()].filter(([,r])=>r.cursor.head!==void 0&&r.cursor.anchor!==r.cursor.head).flatMap(([,r])=>{var a;let o=yt.range(r.cursor.anchor,r.cursor.head);return Ef.forRange(e,`loro-selection ${((a=r.user)==null?void 0:a.colorClassName)||""}`,o)})}});var Xc=class Rr{constructor(t,n,r,o,a){this.left=t,this.top=n,this.height=r,this.name=o,this.colorClassName=a}draw(){let t=document.createElement("div");return this.adjust(t),t}update(t){return this.adjust(t),!0}adjust(t){t.style.left=`${this.left}px`,t.style.top=`${this.top}px`,t.style.height=`${this.height}px`,t.className=`loro-cursor ${this.colorClassName}`,t.style.setProperty("--rtc-name",`"${this.name}"`)}eq(t){return this.left===t.left&&this.top===t.top&&this.height===t.height&&this.name===t.name}static createCursor(t,n,r,o){let a=Rr.calculateAbsoluteCursorPosition(n,t);if(!a)return[];let i=t.scrollDOM.getBoundingClientRect(),s=(t.textDirection===bf.LTR?i.left:i.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,c=i.top-t.scrollDOM.scrollTop;return[new Rr(a.left-s,a.top-c,a.bottom-a.top,r,o)]}static calculateAbsoluteCursorPosition(t,n){let r=Math.max(0,Math.min(n.state.doc.length,t.anchor));return n.coordsAtPos(r,t.assoc||1)}},Yc=(e,t,n,r)=>{let o=[],{updated:a,added:i}=n;for(let s of[...a,...i]){let c=ia(e,t,s,r);c&&o.push(c)}return o},ia=(e,t,n,r)=>{var c,u;let o=t.getAllStates()[n];if(!o||n===e.peerIdStr||o.scopeId!==r)return;if(o.type==="delete")return Dt.of({type:"delete",peer:o.uid,scopeId:o.scopeId});let a=Ti.decode(o.cursor.anchor),i=((c=e.getCursorPos(a))==null?void 0:c.offset)??0,s=i;if(o.cursor.head){let d=Ti.decode(o.cursor.head);s=((u=e.getCursorPos(d))==null?void 0:u.offset)??0}return Dt.of({type:"update",peer:o.uid,scopeId:o.scopeId,cursor:{anchor:i,head:s},user:o.user})},Qc=class{constructor(e,t,n,r,o,a,i){this.view=e,this.doc=t,this.user=n,this.awareness=r,this.getTextFromDoc=o,this.scopeId=a,this.getUserId=i,this.sub=this.doc.subscribe(s=>{if(s.by==="local"){let c=[];for(let u of this.awareness.peers()){let d=ia(this.doc,this.awareness,u,this.scopeId);d&&c.push(d)}this.view.dispatch({effects:c})}else s.by==="checkout"&&this.view.dispatch({effects:[Dt.of({type:"checkout",checkout:this.doc.isDetached()})]})})}update(e){if(!e.selectionSet&&!e.focusChanged&&!e.docChanged)return;let t=e.state.selection.main;if(this.view.hasFocus&&!this.doc.isDetached()){let n=eu({doc:this.doc,getTextFromDoc:this.getTextFromDoc,anchor:t.anchor,head:t.head});this.awareness.setLocalState({type:"update",uid:this.getUserId?this.getUserId():this.doc.peerIdStr,scopeId:this.scopeId,cursor:n,user:this.user})}else this.awareness.setLocalState({type:"delete",uid:this.getUserId?this.getUserId():this.doc.peerIdStr,scopeId:this.scopeId})}destroy(){var e;(e=this.sub)==null||e.call(this),this.awareness.setLocalState({type:"delete",uid:this.getUserId?this.getUserId():this.doc.peerIdStr,scopeId:this.scopeId})}},Zc=class{constructor(e,t,n,r){this.view=e,this.doc=t,this.awareness=n,this.scopeId=r;let o=async(a,i)=>{i!=="local"&&this.view.dispatch({effects:Yc(this.doc,this.awareness,a,this.scopeId)})};this._awarenessListener=o,this.awareness.addListener(o)}destroy(){this._awarenessListener&&this.awareness.removeListener(this._awarenessListener)}},eu=({doc:e,getTextFromDoc:t,anchor:n,head:r})=>{var i,s;n===r&&(r=void 0);let o=(i=t(e).getCursor(n))==null?void 0:i.encode();if(!o)throw Error("cursor head not found");let a;return r!==void 0&&(a=(s=t(e).getCursor(r))==null?void 0:s.encode()),{anchor:o,head:a}};const pn=["bg-(--amber-6)","bg-(--blue-6)","bg-(--crimson-6)","bg-(--cyan-6)","bg-(--grass-6)","bg-(--gray-6)","bg-(--green-6)","bg-(--lime-6)","bg-(--orange-6)","bg-(--purple-6)","bg-(--red-6)","bg-(--sage-6)","bg-(--sky-6)","bg-(--slate-6)"],tu=e=>{if(typeof e=="string"){let t=0;for(let n=0;nze.define(r=>new ru(r,e,t,n)),gt=An.define();var ru=class{constructor(e,t,n,r){h(this,"isInitDispatch",!1);h(this,"onRemoteUpdate",e=>{if(e.by!=="local"){if(e.by==="checkout"){this.view.dispatch({changes:[{from:0,to:this.view.state.doc.length,insert:this.getTextFromDoc(this.doc).toString()}],annotations:[gt.of(this)]});return}if(e.by==="import"){let t=[],n=0;for(let{diff:r,path:o}of e.events){if(o.join("/")!==this.docPath.join("/")||r.type!=="text")continue;let a=r.diff;for(let i of a)i.insert?t.push({from:n,to:n,insert:i.insert}):i.delete?(t.push({from:n,to:n+i.delete}),n+=i.delete):i.retain!=null&&(n+=i.retain);t.length>0&&this.view.dispatch({changes:t,annotations:[gt.of(this)]})}}}});this.view=e,this.doc=t,this.docPath=n,this.getTextFromDoc=r,this.sub=t.subscribe(this.onRemoteUpdate),Promise.resolve().then(()=>{this.isInitDispatch=!0;let o=this.view.state.doc.toString(),a=this.getTextFromDoc(this.doc);o!==a.toString()&&e.dispatch({changes:[{from:0,to:this.view.state.doc.length,insert:a.toString()}]})})}update(e){if(this.isInitDispatch){this.isInitDispatch=!1;return}if(!e.docChanged||e.transactions.length>0&&(e.transactions[0].annotation(gt)===this||e.transactions[0].annotation(gt)==="undo"))return;let t=0;e.changes.iterChanges((n,r,o,a,i)=>{let s=i.sliceString(0,i.length,` +`);n!==r&&this.getTextFromDoc(this.doc).delete(n+t,r-n),s.length>0&&this.getTextFromDoc(this.doc).insert(n+t,s),t+=s.length-(r-n)}),this.doc.commit()}destroy(){var e;(e=this.sub)==null||e.call(this),this.sub=void 0}},fe=$e.get("rtc"),sa=fe.get("awareness").disabled(),ir="awareness:";function ou(e,t){let n=new TextEncoder().encode(e);return new Uint8Array([...n,...t])}function au(e,t){return new TextDecoder().decode(e.slice(0,t.length))===t}function iu(e,t){return e.slice(t.length)}ut=Ut(void 0);var ae=new Br,gn=new $c(ae.peerIdStr),sr=jf(()=>{fe.debug("creating websocket");let e=new Rm(Za().getWsSyncURL(Zd()).toString(),void 0,{maxRetries:10,debug:!1,startClosed:!0,connectionTimeout:1e4});return Promise.resolve().then(async()=>{await Qa(),hm()==="edit"&&e.reconnect()}),e.addEventListener("message",async t=>{let n=await t.data.arrayBuffer(),r=new Uint8Array(n);if(au(r,ir)){let o=iu(r,ir);gn.apply(o),sa.debug("applied awareness update");return}ae.import(r),fe.debug("imported doc change. new doc:",ae.toJSON()),Q.get(ut)!==ae&&Q.set(ut,ae)}),e.addEventListener("open",()=>{fe.debug("websocket open")}),e.addEventListener("close",t=>{fe.warn("websocket close",t),Q.get(ut)===ae&&Q.set(ut,void 0)}),e});Nr()&&sr(),ae.subscribeLocalUpdates(e=>{fe.debug("local update, sending to server"),sr().send(e)}),gn.addListener((e,t)=>{let n=[...e.added,...e.removed,...e.updated];t==="local"&&(sa.debug("awareness changes",n),sr().send(ou(ir,gn.encode(n))))});function lr(e,t,n=""){if(Yd())return{extension:[],code:n};let r=ae.getByPath(`codes/${e}`)!==void 0,o=ae.getMap("codes").getOrCreateContainer(e,new Ur);return r||(fe.log("initializing code for new cell",n),o.insert(0,n)),{code:n.toString(),extension:[su(e),lu(e),cu(ae,gn,{get name(){return Q.get(ld)||"Anonymous"},get colorClassName(){return tu(this.name)}},()=>o,e),nu(ae,["codes",e],()=>o)]}}function su(e){let t=(r,o)=>{let a=r.state.field(Cn).type,i=o.toString();i&&i!==a&&(fe.debug(`[incoming] setting language type: ${a} -> ${i}`),Bt(r,{language:i,keepCodeAsIs:!0}))},n=(r,o)=>{let a=r.state.field(Er),i=o.toJSON();En(a,i)||r.dispatch({effects:[Ma.of(i)],annotations:[gt.of(!0)]})};return ze.define(r=>{let o;return Promise.resolve().then(()=>{let a=ae.getByPath(`languages/${e}`);if(!a){fe.error("no language container found for cell",e);return}jt(a instanceof Ur,"language type is not a LoroText");let i=ae.getByPath(`language_metadata/${e}`);if(!i){fe.error("no language metadata container found for cell",e);return}jt(i instanceof Ai,"language metadata is not a LoroMap"),t(r,a),n(r,i),o=ae.subscribe(s=>{if(s.origin==="local")return;let c=s.events.some(d=>d.target===a.id),u=s.events.some(d=>d.target===i.id);c&&t(r,a),u&&n(r,i)})}),{destroy(){o()}}})}function lu(e){let t=ae.getMap("languages").getOrCreateContainer(e,new Ur),n=ae.getMap("language_metadata").getOrCreateContainer(e,new Ai);return B.updateListener.of(r=>{let o=t.toString()!=="";if(!r.docChanged&&o)return;if(!o){let i=Sr(r.state).type;Bt(r.view,{language:i}),fe.debug("no initial language, setting default to",i),t.delete(0,t.length),t.insert(0,i),fe.debug("no initial language metadata, setting default to",r.state.field(Er));let s=r.state.field(Er);for(let c of Object.keys(s))n.set(c,s[c]);ae.commit();return}let a=!1;for(let i of r.transactions)if(!i.annotation(gt)){for(let s of i.effects)if(s.is(Ud)&&t.toString()!==s.value.type&&(fe.debug(`[outgoing] language change: ${t} -> ${s.value.type}`),t.delete(0,t.length),t.insert(0,s.value.type),a=!0),s.is(Ma)||s.is(Pa)){let c=s.value;s.is(Pa)?(fe.debug("[outgoing] setting language metadata: ",c),n.clear()):fe.debug("[outgoing] updating language metadata: ",c);for(let u of Object.keys(c))n.set(u,c[u]);a=!0}}a&&ae.commit()})}function cu(e,t,n,r,o,a){let i=`loro:cell:${o}`;return[ar,zc(),Kc(),ze.define(s=>new Qc(s,e,n,t,r,i,a)),ze.define(s=>new Zc(s,e,t,i)),qc]}var uu=Ge();Mr=e=>{let t=(0,uu.c)(41),{resetOnBlur:n,placeholderText:r,initialValue:o,flexibleWidth:a,onNameChange:i,className:s}=e,c=n===void 0?!1:n,u=o===void 0?null:o,d=a===void 0?!1:a,{sendListFiles:f}=Ln(),[p,m]=(0,I.useState)(u),g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=[],t[0]=g):g=t[0];let[y,w]=(0,I.useState)(g),[k,C]=(0,I.useState)(!1),A=(0,I.useRef)(null),L=(0,I.useRef)(!1),U,T;t[1]===u?(U=t[2],T=t[3]):(U=()=>{m(u)},T=[u],t[1]=u,t[2]=U,t[3]=T),(0,I.useEffect)(U,T);let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{C(!0)},t[4]=x):x=t[4];let G=x,ee;t[5]!==u||t[6]!==c?(ee=le=>{var ne;(ne=le.relatedTarget)!=null&&ne.closest(".filename-input")||(C(!1),c&&m(u))},t[5]=u,t[6]=c,t[7]=ee):ee=t[7];let $=ee,F;t[8]===p?F=t[9]:(F=Qe.dirname(p||""),t[8]=p,t[9]=F);let j=F,ie=Qe.basename(p||""),_=y.filter(le=>Qe.basename(le.path).startsWith(ie)),P;t[10]!==j||t[11]!==k||t[12]!==f?(P=async()=>{if(!k){w([]);return}w((await f({path:j})).files)},t[10]=j,t[11]=k,t[12]=f,t[13]=P):P=t[13];let me;t[14]!==j||t[15]!==k?(me=[j,k],t[14]=j,t[15]=k,t[16]=me):me=t[16];let{isPending:K}=xm(P,me),E=du(p,y,u),S=(E||_.length>0)&&(0,b.jsxs)(wi,{className:"font-mono",children:[!K&&(0,b.jsx)(Am,{children:"No files"}),E&&(0,b.jsxs)(yi,{variant:"success",className:"py-2 px-3",onSelect:()=>{var le;E&&(L.current=!0,i(E),(le=A.current)==null||le.blur())},children:[(0,b.jsx)(re,{className:"w-4 h-4 mr-2"})," ",(0,b.jsxs)("span",{className:"text-sm",children:[u?"Rename to: ":"Save as: ",(0,b.jsx)("span",{className:"font-medium text-sm",children:Qe.basename(E)})]})]},"_rename_"),_.map(le=>{let ne=sm[le.isDirectory?"directory":im(le.path)];return(0,b.jsxs)(yi,{variant:le.isDirectory?"default":"muted",className:"py-2 px-3",onSelect:()=>{le.isDirectory?m(`${le.path}/`):m(le.path)},children:[(0,b.jsx)(ne,{className:"w-4 h-4 mr-2"})," ",Qe.basename(le.path)]},le.path)})]}),R=Math.max(20,(p==null?void 0:p.length)||(r==null?void 0:r.length)||0)*10,D=k?p||"":u||"",te;t[17]!==d||t[18]!==R?(te=d?{maxWidth:R}:void 0,t[17]=d,t[18]=R,t[19]=te):te=t[19];let Re;t[20]===s?Re=t[21]:(Re=lt(s,"w-full px-4 py-1 my-1 h-9 font-mono text-foreground/60"),t[20]=s,t[21]=Re);let Pe;t[22]!==r||t[23]!==D||t[24]!==te||t[25]!==Re?(Pe=(0,b.jsx)(bm,{children:(0,b.jsx)(Tm,{"data-testid":"dir-completion-input",tabIndex:-1,rootClassName:"border-none justify-center px-1",spellCheck:"false",value:D,onKeyDown:fu,icon:null,ref:A,onValueChange:m,placeholder:r,autoComplete:"off",style:te,className:Re})}),t[22]=r,t[23]=D,t[24]=te,t[25]=Re,t[26]=Pe):Pe=t[26];let Ve=S&&"group-focus-within:block",Me;t[27]===Ve?Me=t[28]:(Me=lt("p-0 w-full min-w-80 max-w-80vw hidden",Ve),t[27]=Ve,t[28]=Me);let O;t[29]!==S||t[30]!==Me?(O=(0,b.jsx)(ym,{side:"bottom",className:Me,portal:!1,children:S}),t[29]=S,t[30]=Me,t[31]=O):O=t[31];let W;t[32]!==Pe||t[33]!==O?(W=(0,b.jsxs)(wi,{children:[Pe,O]}),t[32]=Pe,t[33]=O,t[34]=W):W=t[34];let V;t[35]!==$||t[36]!==W?(V=(0,b.jsx)(Im,{onFocus:G,onBlur:$,shouldFilter:!1,id:"filename-input",className:"bg-transparent group filename-input",children:W}),t[35]=$,t[36]=W,t[37]=V):V=t[37];let se;return t[38]!==k||t[39]!==V?(se=(0,b.jsx)(rf,{children:(0,b.jsx)(wm,{open:k,modal:!1,children:V})}),t[38]=k,t[39]=V,t[40]=se):se=t[40],se};function du(e,t,n){if(e&&!e.endsWith("/")&&((Td("markdown")?new Set(["py","md","markdown","qmd"]):new Set(["py"])).has(Qe.extension(e))||(e=e.endsWith(".")?`${e}py`:e.endsWith(".p")?`${e}y`:`${e}.py`),!t.some(r=>r.path===e||Qe.basename(r.path)===e)&&!(n&&(n===e||Qe.basename(n)===e))))return e}function fu(e){e.key==="Escape"&&e.currentTarget.blur()}var la=Ge(),mu=e=>{let t=(0,la.c)(33),n=()=>{om(new Blob([r()],{type:"text/plain"}),`${e.proposedName}.json`)},r=ue(gu),o;t[0]!==n||t[1]!==e?(o=U=>{U.preventDefault(),n(),e.closeModal()},t[0]=n,t[1]=e,t[2]=o):o=t[2];let a;t[3]===e?a=t[4]:(a=U=>{U.key==="Escape"&&e.closeModal()},t[3]=e,t[4]=a);let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,b.jsx)(hi,{className:"text-accent-foreground mb-6",children:"Download unsaved changes?"}),t[5]=i):i=t[5];let s;t[6]===Symbol.for("react.memo_cache_sentinel")?(s={wordBreak:"break-word"},t[6]=s):s=t[6];let c,u;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,b.jsx)("p",{children:"This app has unsaved changes. To recover:"}),u={paddingBottom:"10px"},t[7]=c,t[8]=u):(c=t[7],u=t[8]);let d;t[9]===e.proposedName?d=t[10]:(d=(0,b.jsxs)("li",{style:u,children:['Click the "Download" button. This will download a file called\xA0',(0,b.jsxs)("code",{children:[e.proposedName,".json"]}),". This file contains your code."]}),t[9]=e.proposedName,t[10]=d);let f;t[11]===Symbol.for("react.memo_cache_sentinel")?(f={paddingBottom:"10px"},t[11]=f):f=t[11];let p;t[12]===Symbol.for("react.memo_cache_sentinel")?(p={display:"block",padding:"10px"},t[12]=p):p=t[12];let m;t[13]===e.proposedName?m=t[14]:(m=(0,b.jsxs)("code",{style:p,children:["marimo recover ",e.proposedName,".json ",">"," ",e.proposedName,".py"]}),t[13]=e.proposedName,t[14]=m);let g;t[15]===e.proposedName?g=t[16]:(g=(0,b.jsxs)("code",{children:[e.proposedName,".py"]}),t[15]=e.proposedName,t[16]=g);let y;t[17]!==g||t[18]!==m?(y=(0,b.jsxs)("li",{style:f,children:["In your terminal, type",m,"to overwrite ",g," with the recovered changes."]}),t[17]=g,t[18]=m,t[19]=y):y=t[19];let w;t[20]!==y||t[21]!==d?(w=(0,b.jsx)(pm,{className:"markdown break-words",style:s,children:(0,b.jsxs)("div",{className:"prose dark:prose-invert",children:[c,(0,b.jsxs)("ol",{children:[d,y]})]})}),t[20]=y,t[21]=d,t[22]=w):w=t[22];let k;t[23]===e.closeModal?k=t[24]:(k=(0,b.jsx)(He,{"aria-label":"Cancel",variant:"secondary","data-testid":"cancel-recovery-button",onClick:e.closeModal,children:"Cancel"}),t[23]=e.closeModal,t[24]=k);let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,b.jsx)(He,{"data-testid":"download-recovery-button","aria-label":"Download",variant:"default",type:"submit",children:"Download"}),t[25]=C):C=t[25];let A;t[26]===k?A=t[27]:(A=(0,b.jsxs)(pi,{children:[k,C]}),t[26]=k,t[27]=A);let L;return t[28]!==o||t[29]!==a||t[30]!==w||t[31]!==A?(L=(0,b.jsx)(gi,{className:"w-fit",children:(0,b.jsxs)("form",{onSubmit:o,onKeyDown:a,children:[i,w,A]})}),t[28]=o,t[29]=a,t[30]=w,t[31]=A,t[32]=L):L=t[32],L};const hu=e=>{let t=(0,la.c)(12),{filename:n,needsSave:r}=e,{openModal:o,closeModal:a}=bi(),i;t[0]===n?i=t[1]:(i=n===null?"app":Qe.basename(n).split(".")[0],t[0]=n,t[1]=i);let s=i,c;t[2]!==a||t[3]!==r||t[4]!==o||t[5]!==s?(c=()=>{r&&o((0,b.jsx)(mu,{proposedName:s,closeModal:a}))},t[2]=a,t[3]=r,t[4]=o,t[5]=s,t[6]=c):c=t[6];let u=c;ei("global.save",u);let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=vi("global.save"),t[7]=d):d=t[7];let f=r?"yellow":"gray",p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,b.jsx)(di,{strokeWidth:1.5,size:18}),t[8]=p):p=t[8];let m;return t[9]!==u||t[10]!==f?(m=(0,b.jsx)(vt,{content:d,children:(0,b.jsx)(ki,{onClick:u,id:"save-button","aria-label":"Save",className:"rectangle",color:f,children:p})}),t[9]=u,t[10]=f,t[11]=m):m=t[11],m};function pu(e){return{id:e.id,name:e.name,code:e.code,code_hash:null,config:{column:0,...e.config}}}function gu(){let e=vr(kr()),t={version:"1",metadata:{marimo_version:nf()},cells:e.map(pu)};return JSON.stringify(t,null,2)}let cr;Dn=Ut(void 0),cr=Ut(e=>{let t=e(Dn);return bu({state:e(nt),layout:e(ii),lastSavedNotebook:t})});function bu({state:e,layout:t,lastSavedNotebook:n}){if(!n)return!1;let{cellIds:r,cellData:o}=e,a=r.inOrderIds.map(u=>o[u]),i=a.map(u=>u.code),s=a.map(u=>u.config),c=a.map(u=>u.name);return!oi(i,n.codes)||!oi(c,n.names)||!En(s,n.configs)||!En(t.selectedLayout,n.layout.selectedLayout)||!En(t.layoutData,n.layout.layoutData)}var yu=Ge();function wu(e){let t=(0,yu.c)(21),{codes:n,cellConfigs:r,config:o,connStatus:a,cellNames:i,needsSave:s,kioskMode:c,onSave:u}=e,d=(0,I.useRef)(null),f;t[0]===n?f=t[1]:(f=n.join(":"),t[0]=n,t[1]=f);let p=f,m;t[2]===r?m=t[3]:(m=r.map(vu).join(":"),t[2]=r,t[3]=m);let g=m,y;t[4]===i?y=t[5]:(y=i.join(":"),t[4]=i,t[5]=y);let w=y,k;t[6]!==o||t[7]!==a.state||t[8]!==c||t[9]!==s||t[10]!==u?(k=()=>{if(!c)return o.autosave==="after_delay"&&(d.current!==null&&clearTimeout(d.current),s&&a.state===Pt.OPEN&&(d.current=setTimeout(u,o.autosave_delay))),()=>{d.current!==null&&clearTimeout(d.current)}},t[6]=o,t[7]=a.state,t[8]=c,t[9]=s,t[10]=u,t[11]=k):k=t[11];let C;t[12]!==g||t[13]!==w||t[14]!==p||t[15]!==o||t[16]!==a.state||t[17]!==c||t[18]!==s||t[19]!==u?(C=[p,g,w,o,a.state,u,c,s],t[12]=g,t[13]=w,t[14]=p,t[15]=o,t[16]=a.state,t[17]=c,t[18]=s,t[19]=u,t[20]=C):C=t[20],(0,I.useEffect)(k,C)}function vu(e){return JSON.stringify(e)}var bn=Ge();Fi=e=>{let t=(0,bn.c)(15),{kioskMode:n}=e,r=Cm(),o=ce(cr),a=ce(bt).state===Pt.CLOSED,{saveOrNameNotebook:i,saveIfNotebookIsPersistent:s}=ur(),c;t[0]!==n||t[1]!==s?(c={onSave:s,kioskMode:n},t[0]=n,t[1]=s,t[2]=c):c=t[2],Cu(c),Gm();let u;t[3]===o?u=t[4]:(u=w=>{if(o)return w.preventDefault(),w.returnValue="You have unsaved changes. Are you sure you want to leave?",w.returnValue},t[3]=o,t[4]=u),of(window,"beforeunload",u);let d;t[5]===i?d=t[6]:(d=w=>{w.preventDefault(),w.stopPropagation(),i()},t[5]=i,t[6]=d);let f=d;if(ei("global.save",i),a){let w;return t[7]!==r||t[8]!==o?(w=(0,b.jsx)(hu,{filename:r,needsSave:o}),t[7]=r,t[8]=o,t[9]=w):w=t[9],w}let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=vi("global.save"),t[10]=p):p=t[10];let m=o?"yellow":"hint-green",g;t[11]===Symbol.for("react.memo_cache_sentinel")?(g=(0,b.jsx)(di,{strokeWidth:1.5,size:18}),t[11]=g):g=t[11];let y;return t[12]!==f||t[13]!==m?(y=(0,b.jsx)(vt,{content:p,children:(0,b.jsx)(ki,{"data-testid":"save-button",id:"save-button",shape:"rectangle",color:m,onClick:f,children:g})}),t[12]=f,t[13]=m,t[14]=y):y=t[14],y};function ur(){let e=(0,bn.c)(20),{sendSave:t}=Ln(),{openModal:n,closeModal:r,openAlert:o}=bi(),a=_a(Dn),i=Sm(),s=yr(),c;e[0]!==o||e[1]!==t||e[2]!==a||e[3]!==s?(c=async(k,C)=>{let A=s.get(bt),L=s.get(Ya);if(s.get(mm))return;if(A.state!==Pt.OPEN){o("Failed to save notebook: not connected to a kernel.");return}$e.log("saving to ",k),C&&L.format_on_save&&($e.log("formatting notebook (onSave)"),await vd());let U=kr(),T=vr(U),x=T.map(ku),G=T.map(Nu),ee=T.map(Eu),$=Va(U),F=s.get(ii);G.length!==0&&(await t({cellIds:x,codes:G,names:ee,filename:k,configs:$,layout:Hf(),persist:!0}),a({names:ee,codes:G,configs:$,layout:F}))},e[0]=o,e[1]=t,e[2]=a,e[3]=s,e[4]=c):c=e[4];let u=ue(c),d;e[5]!==u||e[6]!==s?(d=k=>{let C=k===void 0?!1:k,A=s.get(ja),L=s.get(bt);ca(A)&&L.state===Pt.OPEN&&u(A,C)},e[5]=u,e[6]=s,e[7]=d):d=e[7];let f=ue(d),p;e[8]!==u||e[9]!==i?(p=k=>{i(k).then(C=>{C!==null&&u(C,!0)})},e[8]=u,e[9]=i,e[10]=p):p=e[10];let m=p,g;e[11]!==r||e[12]!==m||e[13]!==n||e[14]!==f||e[15]!==s?(g=()=>{let k=s.get(ja),C=s.get(bt);f(!0),!ca(k)&&C.state!==Pt.CLOSED&&n((0,b.jsx)(Tu,{onClose:r,onSave:m}))},e[11]=r,e[12]=m,e[13]=n,e[14]=f,e[15]=s,e[16]=g):g=e[16];let y=ue(g),w;return e[17]!==f||e[18]!==y?(w={saveOrNameNotebook:y,saveIfNotebookIsPersistent:f},e[17]=f,e[18]=y,e[19]=w):w=e[19],w}function Eu(e){return e.name}function Nu(e){return e.code}function ku(e){return e.id}function ca(e){return e!==null&&!e.startsWith("/tmp/")&&!e.startsWith("/var/folders")&&!e.includes("AppData\\Local\\Temp")}function Cu(e){let t=(0,bn.c)(14),n=ce(Ya),r=gd(),[o]=vn(bt),a=ce(cr),i,s;if(t[0]!==r){let p=vr(r);i=p.map(xu),s=p.map(Su),t[0]=r,t[1]=i,t[2]=s}else i=t[1],s=t[2];let c=s,u;t[3]===r?u=t[4]:(u=Va(r),t[3]=r,t[4]=u);let d=u,f;t[5]!==n||t[6]!==c||t[7]!==i||t[8]!==d||t[9]!==o||t[10]!==a||t[11]!==e.kioskMode||t[12]!==e.onSave?(f={onSave:e.onSave,needsSave:a,codes:i,cellConfigs:d,cellNames:c,connStatus:o,config:n,kioskMode:e.kioskMode},t[5]=n,t[6]=c,t[7]=i,t[8]=d,t[9]=o,t[10]=a,t[11]=e.kioskMode,t[12]=e.onSave,t[13]=f):f=t[13],wu(f)}function Su(e){return e.name}function xu(e){return e.code}var Tu=e=>{let t=(0,bn.c)(17),{onClose:n,onSave:r}=e,[o,a]=(0,I.useState)(),i;t[0]!==n||t[1]!==r?(i=w=>{a(w),w.trim()&&(r(w),n())},t[0]=n,t[1]=r,t[2]=i):i=t[2];let s=i,c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,b.jsx)(hi,{children:"Save notebook"}),t[3]=c):c=t[3];let u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,b.jsx)(Dr,{className:"text-md pt-6 px-1",children:"Save as"}),t[4]=u):u=t[4];let d;t[5]===s?d=t[6]:(d=(0,b.jsxs)("div",{className:"flex flex-col",children:[u,(0,b.jsx)(Mr,{onNameChange:s,placeholderText:"filename",className:"missing-filename"})]}),t[5]=s,t[6]=d);let f;t[7]===n?f=t[8]:(f=(0,b.jsx)(He,{"data-testid":"cancel-save-dialog-button","aria-label":"Cancel",variant:"secondary",onClick:n,children:"Cancel"}),t[7]=n,t[8]=f);let p=!o,m;t[9]===p?m=t[10]:(m=(0,b.jsx)(He,{"data-testid":"submit-save-dialog-button","aria-label":"Save",variant:"default",disabled:p,type:"submit",children:"Save"}),t[9]=p,t[10]=m);let g;t[11]!==f||t[12]!==m?(g=(0,b.jsxs)(pi,{children:[f,m]}),t[11]=f,t[12]=m,t[13]=g):g=t[13];let y;return t[14]!==d||t[15]!==g?(y=(0,b.jsxs)(gi,{children:[c,d,g]}),t[14]=d,t[15]=g,t[16]=y):y=t[16],y};_n=function(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}};var ua={modified:{doc:""},original:{doc:""}},da=(0,I.createContext)(ua);function Au(e,t){return X({},e,t,{modified:X({},e.modified,t.modified),original:X({},e.original,t.original)})}var dr=()=>(0,I.useContext)(da),Iu=e=>{var{children:t,theme:n}=e,[r,o]=(0,I.useReducer)(Au,X({},ua,{theme:n}));return(0,I.useEffect)(()=>o({theme:n}),[n]),(0,b.jsx)(da.Provider,{value:X({},r,{dispatch:o}),children:t})},Fu=["extensions","value","selection","onChange"],fa=e=>{var{extensions:t=[],value:n,selection:r,onChange:o}=e,a=Jt(e,Fu),{theme:i,dispatch:s}=dr(),c=Et(X({},a,{theme:i}));return(0,I.useEffect)(()=>s({original:{doc:n,selection:r,extensions:[...c,...t]},originalExtension:{onChange:o,option:a,extension:[t]}}),[e]),null};fa.displayName="CodeMirrorMerge.Original";var Lu=["extensions","value","selection","onChange"],ma=e=>{var{extensions:t=[],value:n,selection:r,onChange:o}=e,a=Jt(e,Lu),{theme:i,dispatch:s}=dr(),c=Et(X({},a,{theme:i}));return(0,I.useEffect)(()=>{s({modified:{doc:n,selection:r,extensions:[...c,...t]},modifiedExtension:{onChange:o,option:a,extension:[t]}})},[e]),null};ma.displayName="CodeMirrorMerge.Modified";var Ou=["className","children","orientation","revertControls","highlightChanges","gutter","collapseUnchanged","destroyRerender","renderRevertControl","diffConfig","root"],Du=["modified","modifiedExtension","original","originalExtension","theme","dispatch"],ha=I.forwardRef((e,t)=>{var{className:n,children:r,orientation:o,revertControls:a,highlightChanges:i,gutter:s,collapseUnchanged:c,destroyRerender:u=!0,renderRevertControl:d,diffConfig:f,root:p}=e,m=Jt(e,Ou),g=dr(),{modified:y,modifiedExtension:w,original:k,originalExtension:C,theme:A,dispatch:L}=g,U=Jt(g,Du),T=(0,I.useRef)(null),x=(0,I.useRef)(),G={orientation:o,revertControls:a,highlightChanges:i,gutter:s,collapseUnchanged:c,renderRevertControl:d,diffConfig:f,root:p};(0,I.useImperativeHandle)(t,()=>({container:T.current,view:x.current,modified:y,original:k,config:X({a:k,b:y,parent:T.current},G)}),[T,x,y,k,G]);var ee=B.updateListener.of(F=>{if(F.docChanged&&typeof(C==null?void 0:C.onChange)=="function"){var j=F.state.doc.toString();C==null||C.onChange(j,F)}}),$=B.updateListener.of(F=>{if(F.docChanged&&typeof(w==null?void 0:w.onChange)=="function"){var j=F.state.doc.toString();w==null||w.onChange(j,F)}});return(0,I.useEffect)(()=>{!x.current&&T.current&&C&&w&&(x.current=new Ni(X({a:X({},k,{extensions:[...(C==null?void 0:C.extension)||[],...Et(X({},C==null?void 0:C.option,{theme:A})),ee]}),b:X({},y,{extensions:[...(w==null?void 0:w.extension)||[],...Et(X({},w==null?void 0:w.option,{theme:A})),$]}),parent:T.current},G)),L({view:x.current}))},[x,T,C,w]),(0,I.useEffect)(()=>{var K,E;if(k&&k.doc&&x.current){var F=(K=x.current)==null?void 0:K.a.state.doc.toString();if(F!==k.doc){var j;(j=x.current)==null||j.a.dispatch({changes:{from:0,to:F.length,insert:k.doc||""}})}}if(y&&y.doc&&x.current){var ie=(E=x.current)==null?void 0:E.b.state.doc.toString();if(ie!==y.doc){var _;(_=x.current)==null||_.b.dispatch({changes:{from:0,to:ie.length,insert:y.doc||""}})}}if(u&&x.current){var P=x.current.a.state.selection.ranges[0].from,me=x.current.b.state.selection.ranges[0].from;x.current.destroy(),x.current=new Ni(X({a:X({},k,{extensions:[...(C==null?void 0:C.extension)||[],...Et(X({},C==null?void 0:C.option,{theme:A}))]}),b:X({},y,{extensions:[...(w==null?void 0:w.extension)||[],...Et(X({},w==null?void 0:w.option,{theme:A}))]}),parent:T.current},G)),P&&(x.current.a.focus(),x.current.a.dispatch({selection:{anchor:P,head:P}})),me&&(x.current.b.focus(),x.current.b.dispatch({selection:{anchor:me,head:me}}))}},[x,A,T.current,k,y,C,w,u]),(0,I.useEffect)(()=>()=>x.current&&x.current.destroy(),[]),(0,I.useEffect)(()=>{if(x.current){var F={};U.orientation!==o&&(F.orientation=o),U.revertControls!==a&&(F.revertControls=a),U.highlightChanges!==i&&(F.highlightChanges=i),U.gutter!==s&&(F.gutter=s),U.collapseUnchanged!==c&&(F.collapseUnchanged=c),U.renderRevertControl!==d&&(F.collapseUnchanged=c),Object.keys(F).length&&L&&x.current&&(x.current.reconfigure(X({},F)),L(X({},F)))}},[L,x,o,a,i,s,c,d]),(0,b.jsx)("div",X({ref:T,className:"cm-merge-theme"+(n?" "+n:"")},m,{children:r}))});ha.displayName="CodeMirrorMerge.Internal";var _u=["theme"],yn=I.forwardRef((e,t)=>{var{theme:n}=e;return(0,b.jsx)(Iu,{theme:n,children:(0,b.jsx)(ha,X({},Jt(e,_u),{ref:t}))})});yn.Original=fa,yn.Modified=ma,yn.displayName="CodeMirrorMerge";var fr=yn,Uu=Ge(),Bu=fr.Original,ju=fr.Modified,pa=[Id(),B.lineWrapping];const Pu=({cellId:e,aiCompletionCell:t,className:n,onChange:r,currentLanguageAdapter:o,currentCode:a,declineChange:i,acceptChange:s,runCell:c,outputArea:u,children:d})=>{let[f,p]=(0,I.useState)(!1),[m,g]=(0,I.useState)({}),[y,w]=vn(um),k=(0,I.useId)(),C=Qd(),{initialPrompt:A,triggerImmediately:L,cellId:U}=t??{},T=U===e,x=ce(Xf).get(e),G;(x==null?void 0:x.type)==="update_cell"&&(G=x.previousCode);let{completion:ee,input:$,stop:F,isLoading:j,setCompletion:ie,setInput:_,handleSubmit:P,complete:me}=Kf({api:C.getAiURL("completion").toString(),headers:C.headers(),initialInput:A,streamProtocol:"text",experimental_throttle:100,body:{...Object.keys(m).length>0?m:A?si({input:A}):{},includeOtherCode:y?wr(a):"",code:a,language:o},onError:ne=>{wt({title:"Completion failed",description:vm(ne)})},onFinish:(ne,tt)=>{ie(tt.trimEnd())}}),K=I.useRef(null),E=ee.trimEnd(),S=(0,I.useCallback)(()=>{L&&!j&&A&&me(A)},[L]);(0,I.useEffect)(()=>{var ne;T&&(jd(()=>{let tt=K.current;return tt!=null&&tt.view?(tt.view.focus(),S(),!0):!1},{retries:3,delay:100,initialDelay:100}),hd((ne=K.current)==null?void 0:ne.view))},[T,S]),(0,I.useEffect)(()=>{T&&_(A||"")},[T,A,_]);let{theme:R}=fm(),D=()=>{s(E),ie("")},te=()=>{i(),ie("")},Re=T&&L&&(E||j);u??(u="below");let Pe=T&&(!L||f),Ve=(0,b.jsx)("div",{className:lt("w-full bg-(--cm-background) flex justify-center transition-all duration-300 ease-in-out overflow-hidden",Re?"max-h-20 opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:(0,b.jsx)(Mu,{status:j?"loading":"generated",onAccept:D,onReject:te,showInputPrompt:f,setShowInputPrompt:p,runCell:c,className:"mt-4 mb-3 w-128"})}),Me=(ne,tt)=>(0,b.jsxs)(fr,{className:"cm",theme:R,children:[(0,b.jsx)(Bu,{onChange:r,value:ne,extensions:pa}),(0,b.jsx)(ju,{value:tt,editable:!1,readOnly:!0,extensions:pa})]}),O=()=>{if(E&&T)return Me(a,E);if(!E&&G)return Me(G,a)},W=(0,b.jsxs)(He,{"data-testid":"stop-completion-button",variant:"text",size:"xs",className:"mb-0",onClick:F,children:[(0,b.jsx)(ui,{className:"animate-spin mr-1",size:14}),"Stop"]}),V=(0,b.jsx)(vt,{content:"Submit",children:(0,b.jsx)(He,{variant:"text",size:"icon",onClick:P,children:(0,b.jsx)(zf,{className:"h-3 w-3"})})}),se=(0,b.jsx)(vt,{content:"Add context",children:(0,b.jsx)(He,{variant:"text",size:"icon",onClick:()=>tm(K),children:(0,b.jsx)(Yf,{className:"h-3 w-3"})})}),le=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(ci,{isLoading:j,onAccept:D,size:"xs",multipleCompletions:!1,acceptShortcut:"Mod-\u21B5",runCell:c,borderless:!0,buttonStyles:"hover:shadow-none",playButtonStyles:"hover:shadow-none"}),(0,b.jsx)(li,{onDecline:te,size:"xs",multipleCompletions:!1,declineShortcut:"Shift-Mod-Delete",borderless:!0,className:"hover:shadow-none"})]});return(0,b.jsxs)("div",{"data-ai-input-open":Pe,className:lt("flex flex-col w-full rounded-[inherit]",n),children:[(0,b.jsx)("div",{className:lt("flex items-center gap-2 px-3 transition-all rounded-[inherit] rounded-b-none duration-300",Pe&&"max-h-[400px] border-b min-h-11 visible",!Pe&&"max-h-0 min-h-0 invisible"),children:T&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(cm,{className:"text-(--blue-10) shrink-0",size:16}),(0,b.jsx)(Qf,{inputRef:K,className:"h-full my-0 py-2 flex items-center",onClose:()=>{i(),ie("")},value:$,onChange:ne=>{_(ne),g(si({input:ne}))},onSubmit:()=>{var ne;j||((ne=K.current)!=null&&ne.view&&em(K.current.view),P())},onKeyDown:Zf({handleAcceptCompletion:D,handleDeclineCompletion:te,isLoading:j,hasCompletion:E.trim().length>0})}),(0,b.jsxs)("div",{className:"-mr-1.5 py-1.5",children:[(0,b.jsxs)("div",{className:"flex flex-row items-center justify-end gap-0.5",children:[j&&W,V,se,(0,b.jsx)(nm,{triggerClassName:"h-7 text-xs",iconSize:"small",forRole:"edit",displayIconOnly:!0})]}),E&&(0,b.jsx)("div",{className:"mt-1 flex items-center gap-1",children:le})]}),(0,b.jsx)("div",{className:"h-full w-px bg-border mx-2"}),(0,b.jsx)(vt,{content:"Include code from other cells",children:(0,b.jsxs)("div",{className:"flex flex-row items-start gap-1 overflow-hidden",children:[(0,b.jsx)(wd,{"data-testid":"include-other-cells-checkbox",id:k,checked:y,onCheckedChange:ne=>w(!!ne)}),(0,b.jsx)(Dr,{htmlFor:k,className:"text-muted-foreground text-xs whitespace-nowrap ellipsis",children:"All code"})]})}),(0,b.jsx)(He,{"data-testid":"decline-completion-button",variant:"text",size:"icon",disabled:j,onClick:()=>{F(),i(),ie("")},children:(0,b.jsx)(rm,{className:"text-(--red-10)",size:16})})]})}),u==="above"&&Ve,O(),(!E||!T)&&!G&&d,u==="below"&&Ve]})};var Mu=e=>{let t=(0,Uu.c)(27),{status:n,onAccept:r,onReject:o,className:a,showInputPrompt:i,setShowInputPrompt:s,runCell:c}=e,u=n==="loading",d;t[0]===a?d=t[1]:(d=lt("flex flex-row items-center gap-6 rounded-md py-2 px-2.5 text-sm border border-border","shadow-[0_0_6px_1px_rgba(34,197,94,0.15)]",a),t[0]=a,t[1]=d);let f;t[2]===u?f=t[3]:(f=u?(0,b.jsx)(ui,{className:"animate-spin text-blue-600 mb-px",size:15,strokeWidth:2,"aria-label":"Generating fix"}):(0,b.jsx)(am,{className:"text-green-600 mb-px",size:15,strokeWidth:2,"aria-label":"Fix generated"}),t[2]=u,t[3]=f);let p=u?"Generating fix...":"Showing fix",m;t[4]===p?m=t[5]:(m=(0,b.jsx)("p",{className:"transition-opacity duration-200 text-muted-foreground",children:p}),t[4]=p,t[5]=m);let g;t[6]!==f||t[7]!==m?(g=(0,b.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[f,m]}),t[6]=f,t[7]=m,t[8]=g):g=t[8];let y;t[9]===Symbol.for("react.memo_cache_sentinel")?(y=(0,b.jsx)(Dr,{htmlFor:"show-input-prompt",className:"text-muted-foreground text-xs whitespace-nowrap ellipsis",children:"Show prompt"}),t[9]=y):y=t[9];let w;t[10]!==s||t[11]!==i?(w=(0,b.jsxs)("div",{className:"flex flex-row items-center gap-1",children:[y,(0,b.jsx)(tf,{checked:i,onCheckedChange:s,size:"xs"})]}),t[10]=s,t[11]=i,t[12]=w):w=t[12];let k;t[13]!==u||t[14]!==r||t[15]!==c?(k=(0,b.jsx)(ci,{isLoading:u,onAccept:r,size:"xs",borderless:!0,runCell:c}),t[13]=u,t[14]=r,t[15]=c,t[16]=k):k=t[16];let C;t[17]===o?C=t[18]:(C=(0,b.jsx)(li,{onDecline:o,size:"xs",borderless:!0}),t[17]=o,t[18]=C);let A;t[19]!==k||t[20]!==C?(A=(0,b.jsxs)("div",{className:"flex flex-row items-center gap-2 ml-auto",children:[k,C]}),t[19]=k,t[20]=C,t[21]=A):A=t[21];let L;return t[22]!==d||t[23]!==A||t[24]!==g||t[25]!==w?(L=(0,b.jsxs)("div",{className:d,children:[g,w,A]}),t[22]=d,t[23]=A,t[24]=g,t[25]=w,t[26]=L):L=t[26],L},mr="web application/x-marimo-cell",Ru=qa({cells:Gd(qa({code:Md()})),version:Rd("1.0")});function Gu(){let e=Sn();return{copyCells:ue(async t=>{let n=kr(),r=t.map(o=>n.cellData[o]).filter(Boolean);if(r.length!==0)try{let o={cells:r.map(s=>({code:s.code})),version:"1.0"},a=r.map(s=>s.code).join(` + +`),i=new $u().add(mr,o).add("text/plain",a).build();await navigator.clipboard.write([i]),ga(r.length)}catch(o){$e.error("Failed to copy cells to clipboard",o);try{await Em(r.map(a=>a.code).join(` + +`)),ga(r.length)}catch{Ju()}}}),pasteAtCell:ue(async(t,n)=>{let{before:r=!1}=n??{};try{let o=await navigator.clipboard.read();for(let i of o)if(i.types.includes(mr)){let s=await(await i.getType(mr)).text();try{let c=Ru.parse(JSON.parse(s));if(c.cells.length===0)break;let u=t,d=c.cells.reverse();for(let f of d)e.createNewCell({cellId:u,before:r,code:f.code,autoFocus:!0});return}catch(c){$e.warn("Failed to parse clipboard cell data",c)}}let a=await navigator.clipboard.readText();a.trim()?e.createNewCell({cellId:t,before:r,code:a,autoFocus:!0}):Wu()}catch(o){$e.error("Failed to paste from clipboard",o),Vu()}})}}var ga=e=>{let t=e===1?"Cell":`${e} cells`;wt({title:`${t} copied`,description:`${t} ${e===1?"has":"have"} been copied to clipboard.`})},Ju=()=>{wt({title:"Copy failed",description:"Failed to copy cells to clipboard.",variant:"danger"})},Wu=()=>{wt({title:"Nothing to paste",description:"No cell or text found in clipboard.",variant:"danger"})},Vu=()=>{wt({title:"Paste failed",description:"Failed to read from clipboard",variant:"danger"})},$u=class{constructor(){h(this,"items",{})}add(e,t){return ClipboardItem.supports(e)?typeof t=="string"?(this.items[e]=new Blob([t],{type:e}),this):(this.items[e]=new Blob([JSON.stringify(t)],{type:e}),this):($e.warn(`ClipboardItem does not support ${e}`),this)}build(){return new ClipboardItem(this.items)}},Hu=Ge();function ba(){return{selectionStart:null,selectionEnd:null,selected:new Set}}var{reducer:Wm,createActions:Vm,valueAtom:hr,useActions:qu}=Lr(ba,{select:(e,t)=>({selectionStart:t.cellId,selectionEnd:t.cellId,selected:new Set([t.cellId])}),extend:(e,t)=>{if(!e.selectionStart)return{selectionStart:t.cellId,selectionEnd:t.cellId,selected:new Set([t.cellId])};let{cellId:n,allCellIds:r}=t;try{let o=r.findWithId(e.selectionStart),a=o.indexOfOrThrow(e.selectionStart),i=o.indexOfOrThrow(n),[s,c]=ae.selected.size===0?e:ba()});Di=()=>ce(hr);function zu(e){let t=(0,Hu.c)(2),n;return t[0]===e?n=t[1]:(n=Ut(r=>r(hr).selected.has(e)),t[0]=e,t[1]=n),ce(n)}jr=function(){return qu()};function Ku(e){return e.get(hr).selected}let ya,wa,va;ya=Ge(),{valueAtom:wa,useActions:Wt}=Lr(()=>new Set,{add:(e,t)=>{if(e.has(t))return e;let n=new Set(e);return n.add(t),n},remove:(e,t)=>{if(!e.has(t))return e;let n=new Set(e);return n.delete(t),Ga(()=>{let r=document.activeElement;if(!r)return;let o=kn.findElementThroughShadowDOMs(r);o&&Ra(kn.parse(o.id))}),n}}),va=e=>Ut(t=>t(wa).has(e)),Ui=function(e){let t=(0,ya.c)(2),n;return t[0]===e?n=t[1]:(n=va(e),t[0]=e,t[1]=n),ce(n)};var _t=new WeakMap,Xu=500;function Yu(e){if(e.ctrlKey||e.metaKey||e.altKey)return"";let t=e.key.toLowerCase();return e.shiftKey?`shift+${t}`:t}function Qu(e,t){let n=Yu(e),r=e.target;if(!n||!r)return!1;let o=_t.get(r),a=n;o!=null&&o.timeout&&clearTimeout(o.timeout),o&&(a=`${o.sequence} ${n}`);let i=t[a];if(i)return _t.delete(r),i();if(!o){let s=t[n];if(s)return s()}if(Object.keys(t).some(s=>s.startsWith(`${a} `))){let s=window.setTimeout(()=>{_t.delete(r)},Xu);return _t.set(r,{sequence:a,timeout:s}),!0}return _t.delete(r),!1}var pr=Ge();function Ea(e){return{handle:t=>e(t),bulkHandle:t=>{let n=!0;try{for(let r of t)n&&(n=e(r));return n}catch{return!1}}}}function Ye(e){return{handle:t=>e([t]),bulkHandle:t=>e(t)}}function Zu(e,t){let n=(0,pr.c)(12),r=Lm(),o=Sn(),a=Wt(),i;n[0]!==e||n[1]!==r?(i=()=>{r.focusCell({cellId:e})},n[0]=e,n[1]=r,n[2]=i):i=n[2];let s;n[3]!==o||n[4]!==e||n[5]!==t||n[6]!==r||n[7]!==a?(s=d=>{var f;Na(d.relatedTarget)||Na(d.target)||ka(d.relatedTarget)===e||ka((f=d.relatedTarget)==null?void 0:f.closest("[data-for-cell-id]"))===e||(a.remove(e),o.markTouched({cellId:e}),r.blurCell(),t.current&&gr(t.current))},n[3]=o,n[4]=e,n[5]=t,n[6]=r,n[7]=a,n[8]=s):s=n[8];let c;n[9]!==i||n[10]!==s?(c={onFocusWithin:i,onBlurWithin:s},n[9]=i,n[10]=s,n[11]=c):c=n[11];let{focusWithinProps:u}=lm(c);return u}function Na(e){return e&&e instanceof HTMLElement?e.closest(".cm-vim-panel")!==null:!1}function ka(e){return e&&e.getAttribute(Ld)||null}Oi=function(e,t){let n=(0,pr.c)(30),{canMoveX:r,editorView:o,cellActionDropdownRef:a}=t,{saveOrNameNotebook:i}=ur(),{saveCellConfig:s}=Ln(),c=_a(mi),u=Sn(),d=yr(),f=Wt(),p=Nm(),m=ce(Ka),{copyCells:g,pasteAtCell:y}=Gu(),w=jr(),k=zu(e),C=Un(),A=_r(),L=ce(Tr),U;n[0]!==C||n[1]!==w?(U={clear:()=>{C.clear(),w.clear()},extend:_=>{C.clear(),w.extend(_)},select:_=>{C.clear(),w.select(_)}},n[0]=C,n[1]=w,n[2]=U):U=n[2];let T=U,x=ce(Xa),G;n[3]===x?G=n[4]:(G=(_,P)=>xr(x.getHotkey(_).key)(P.nativeEvent||P),n[3]=x,n[4]=G);let ee=G,$=Zu(e,o),F;n[5]!==u||n[6]!==r||n[7]!==a||n[8]!==e||n[9]!==g||n[10]!==A||n[11]!==o||n[12]!==k||n[13]!==ee||n[14]!==m||n[15]!==y||n[16]!==C||n[17]!==p||n[18]!==s||n[19]!==i||n[20]!==T||n[21]!==c||n[22]!==d||n[23]!==f||n[24]!==L?(F={onKeyDown:_=>{if(Ar.fromInput(_)){_.continuePropagation();return}let P={"Mod+ArrowUp":()=>(u.focusTopCell(),T.clear(),!0),"Mod+ArrowDown":()=>(u.focusBottomCell(),T.clear(),!0),ArrowUp:()=>(u.focusCell({cellId:e,where:"before"}),T.clear(),!0),ArrowDown:()=>(u.focusCell({cellId:e,where:"after"}),T.clear(),!0),ArrowLeft:()=>{if(r){let E=d.get(nt),S=E.cellIds.findWithId(e),R=E.cellIds.indexOf(S),D=E.cellIds.at(R-1);if(D&&D.length>0){let te=Ca(e,D);return u.focusCell({cellId:te,where:"exact"}),T.clear(),!0}}return!1},ArrowRight:()=>{if(r){let E=d.get(nt),S=E.cellIds.findWithId(e),R=E.cellIds.indexOf(S),D=E.cellIds.at(R+1);if(D&&D.length>0){let te=Ca(e,D);return u.focusCell({cellId:te,where:"exact"}),T.clear(),!0}}return!1},"Shift+ArrowUp":()=>{let E=d.get(Wa);T.extend({cellId:e,allCellIds:E});let S=E.findWithId(e).before(e);return S&&T.extend({cellId:S,allCellIds:E}),u.focusCell({cellId:e,where:"before"}),!0},"Shift+ArrowDown":()=>{let E=d.get(Wa);T.extend({cellId:e,allCellIds:E});let S=E.findWithId(e).after(e);return S&&T.extend({cellId:S,allCellIds:E}),u.focusCell({cellId:e,where:"after"}),!0},Escape:()=>k?(T.clear(),!0):!1,Enter:()=>(f.add(e),Ja(d,e),T.clear(),!0),s:()=>(i(),!0)};for(let[E,S]of Object.entries(P))if(xr(E)(_)&&S()){_.preventDefault();return}let me={"cell.run":Ye(E=>(p(E),!0)),"cell.runAndNewBelow":Ye(E=>{p(E);let S=E[E.length-1];return u.moveToNextCell({cellId:S,before:!1}),!0}),"cell.runAndNewAbove":Ye(E=>{p(E);let S=E[0];return u.moveToNextCell({cellId:S,before:!0}),!0}),"cell.createAbove":E=>(u.createNewCell({cellId:E,before:!0}),!0),"cell.createBelow":E=>(u.createNewCell({cellId:E,before:!1}),!0),"cell.moveUp":Ye(E=>{let S=E[0];return d.get(nt).cellIds.findWithId(S).first()===S?!1:(E.forEach(R=>{u.moveCell({cellId:R,before:!0})}),!0)}),"cell.moveDown":Ye(E=>{let S=E[E.length-1];return d.get(nt).cellIds.findWithId(S).last()===S?!1:([...E].reverse().forEach(R=>{u.moveCell({cellId:R,before:!1})}),!0)}),"cell.moveLeft":Ea(E=>r?(u.moveCell({cellId:E,direction:"left"}),!0):!1),"cell.moveRight":Ea(E=>r?(u.moveCell({cellId:E,direction:"right"}),!0):!1),"cell.hideCode":Ye(E=>{var R;let S=!E.map(D=>{var te;return((te=d.get(nt).cellData[D])==null?void 0:te.config)||null}).every(ed);s({configs:Object.fromEntries(E.map(D=>[D,{hide_code:S}]))});for(let D of E)u.updateCellConfig({cellId:D,config:{hide_code:S}});if(E.length===1){let D=E[0];u.focusCell({cellId:D,where:"after"}),S?((R=o.current)==null||R.contentDOM.blur(),Ua(D)):Ja(d,D)}return!0}),"cell.focusDown":E=>(u.focusCell({cellId:E,where:"after"}),!0),"cell.focusUp":E=>(u.focusCell({cellId:E,where:"before"}),!0),"cell.sendToBottom":Ye(E=>(E.forEach(S=>{u.sendToBottom({cellId:S})}),!0)),"cell.sendToTop":Ye(E=>([...E].reverse().forEach(S=>{u.sendToTop({cellId:S})}),!0)),"cell.aiCompletion":E=>{var R;let S=!1;return c(D=>(D==null?void 0:D.cellId)===E?(S=!0,null):{cellId:E}),S&&((R=o.current)==null||R.focus()),!0},"cell.cellActions":()=>{var E;return(E=a.current)==null||E.toggle(),!0},"command.copyCell":Ye(E=>(g(E),!0)),"command.pasteCell":E=>(y(E),!0),"command.createCellBefore":E=>Ar.hasModifier(_)?!1:(u.createNewCell({cellId:E,before:!0,autoFocus:!0}),!0),"command.createCellAfter":E=>Ar.hasModifier(_)?!1:(u.createNewCell({cellId:E,before:!1,autoFocus:!0}),!0),"cell.delete":()=>{if(!L.keymap.destructive_delete)return!1;let E=K.size>=2?[...K]:[e],S=d.get(nt);return E.some(R=>{let{status:D}=S.cellRuntime[R];return D==="running"||D==="queued"})?!1:C.idle?(C.submit(E),!0):(A({cellIds:E}),C.clear(),!0)}},K=Ku(d);if(m==="vim"&&Qu(_.nativeEvent||_,{j:P.ArrowDown,k:P.ArrowUp,h:P.ArrowLeft,l:P.ArrowRight,i:P.Enter,"shift+j":P["Shift+ArrowDown"],"shift+k":P["Shift+ArrowUp"],"g g":P["Mod+ArrowUp"],"shift+g":P["Mod+ArrowDown"],"d d":()=>me["cell.delete"](),"y y":()=>(g(K.size>=2?[...K]:[e]),!0),p:()=>(y(e,{before:!1}),!0),"shift+p":()=>(y(e,{before:!0}),!0),o:()=>(u.createNewCell({cellId:e,before:!1,autoFocus:!0}),!0),"shift+o":()=>(u.createNewCell({cellId:e,before:!0,autoFocus:!0}),!0),u:()=>(u.undoDeleteCell(),!0)})){_.preventDefault();return}for(let[E,S]of Object.entries(me))if(ee(E,_)){if(S instanceof Function){if(S(e)){_.preventDefault();return}}else if(K.size>=2?S.bulkHandle([...K]):S.handle(e)){_.preventDefault();return}return}_.continuePropagation()}},n[5]=u,n[6]=r,n[7]=a,n[8]=e,n[9]=g,n[10]=A,n[11]=o,n[12]=k,n[13]=ee,n[14]=m,n[15]=y,n[16]=C,n[17]=p,n[18]=s,n[19]=i,n[20]=T,n[21]=c,n[22]=d,n[23]=f,n[24]=L,n[25]=F):F=n[25];let{keyboardProps:j}=fi(F),ie;return n[26]!==$||n[27]!==k||n[28]!==j?(ie=gm($,j,{"data-selected":k,className:"data-[selected=true]:ring-1 data-[selected=true]:ring-(--blue-8) data-[selected=true]:ring-offset-1"}),n[26]=$,n[27]=k,n[28]=j,n[29]=ie):ie=n[29],ie};function ed(e){return e==null?void 0:e.hide_code}function td(e,t){let n=(0,pr.c)(12),r=Wt(),o=ce(Ka),a=ce(Xa),i;n[0]===a?i=n[1]:(i=xr(a.getHotkey("command.vimEnterCommandMode").key),n[0]=a,n[1]=i);let s=i,c;n[2]!==e||n[3]!==r?(c=()=>{r.remove(e),Ua(e),Ga(()=>{Ra(e)})},n[2]=e,n[3]=r,n[4]=c):c=n[4];let u=c,d;n[5]!==t||n[6]!==u?(d=()=>{if(!t.current){u();return}let g=t.current,y=g.state;if(Tf(g))return;let w=y.field($a,!1),k=Gt(y)!==null;w&&gr(g),k&&Jf(g),!(w||k)&&u()},n[5]=t,n[6]=u,n[7]=d):d=n[7];let f=d,p;n[8]!==f||n[9]!==o||n[10]!==s?(p={onKeyDown:g=>{o==="vim"?s(g)&&f():g.key==="Escape"&&f(),g.continuePropagation()}},n[8]=f,n[9]=o,n[10]=s,n[11]=p):p=n[11];let{keyboardProps:m}=fi(p);return m}function Ca(e,t){let n=document.getElementById(kn.create(e));if(!n)return t.first();let r=n.getBoundingClientRect();for(let o of t.topLevelIds){let a=document.getElementById(kn.create(o));if(a){let i=a.getBoundingClientRect();if(r.top<=i.bottom&&r.bottom>=i.top)return o}}return t.last()}function gr(e){e.state.field($a,!1)&&e.dispatch({effects:cd.of(null)})}var Sa=Ge();const nd=e=>{let t=(0,Sa.c)(24),{editorView:n,code:r,currentLanguageAdapter:o,onAfterToggle:a}=e,i;t[0]===r?i=t[1]:(i=Ba.markdown.isSupported(r)||r.trim()==="",t[0]=r,t[1]=i);let s=i,c;t[2]===r?c=t[3]:(c=Ba.sql.isSupported(r)||r.trim()==="",t[2]=r,t[3]=c);let u=c&&o==="python",d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=(0,b.jsx)(fd,{color:"var(--sky-11)",strokeWidth:2.5,className:"w-4 h-4"}),t[4]=d):d=t[4];let f;t[5]!==o||t[6]!==n||t[7]!==a||t[8]!==u?(f=(0,b.jsx)(br,{editorView:n,currentLanguageAdapter:o,canSwitchToLanguage:u,icon:d,toType:"sql",displayName:"SQL",onAfterToggle:a}),t[5]=o,t[6]=n,t[7]=a,t[8]=u,t[9]=f):f=t[9];let p=s&&o==="python",m;t[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,b.jsx)(Dm,{fill:"var(--sky-11)",color:"black",className:"w-4 h-4"}),t[10]=m):m=t[10];let g;t[11]!==o||t[12]!==n||t[13]!==a||t[14]!==p?(g=(0,b.jsx)(br,{editorView:n,currentLanguageAdapter:o,canSwitchToLanguage:p,icon:m,toType:"markdown",displayName:"Markdown",onAfterToggle:a}),t[11]=o,t[12]=n,t[13]=a,t[14]=p,t[15]=g):g=t[15];let y;t[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,b.jsx)(Om,{fill:"var(--sky-11)",color:"black",className:"w-4 h-4"}),t[16]=y):y=t[16];let w;t[17]!==o||t[18]!==n?(w=(0,b.jsx)(br,{editorView:n,currentLanguageAdapter:o,canSwitchToLanguage:!0,icon:y,toType:"python",displayName:"Python",onAfterToggle:qd.NOOP}),t[17]=o,t[18]=n,t[19]=w):w=t[19];let k;return t[20]!==w||t[21]!==f||t[22]!==g?(k=(0,b.jsxs)("div",{className:"absolute right-3 top-2 z-20 flex hover-action gap-1",children:[f,g,w]}),t[20]=w,t[21]=f,t[22]=g,t[23]=k):k=t[23],k},br=e=>{let t=(0,Sa.c)(10),{editorView:n,currentLanguageAdapter:r,canSwitchToLanguage:o,icon:a,toType:i,displayName:s,onAfterToggle:c}=e,u;t[0]!==n||t[1]!==c||t[2]!==i?(u=()=>{n&&(Bt(n,{language:i}),c())},t[0]=n,t[1]=c,t[2]=i,t[3]=u):u=t[3];let d=u;if(!o||r===i)return null;let f=`View as ${s}`,p;t[4]!==d||t[5]!==a?(p=(0,b.jsx)(He,{"data-testid":"language-toggle-button",variant:"text",size:"xs",className:"opacity-80 px-1",onClick:d,children:a}),t[4]=d,t[5]=a,t[6]=p):p=t[6];let m;return t[7]!==f||t[8]!==p?(m=(0,b.jsx)(vt,{content:f,children:p}),t[7]=f,t[8]=p,t[9]=m):m=t[9],m};var xa=Ge(),Ta=({theme:e,showPlaceholder:t,id:n,config:r,code:o,status:a,serializedEditorState:i,setEditorView:s,runCell:c,userConfig:u,editorViewRef:d,editorViewParentRef:f,hidden:p,hasOutput:m,showHiddenCode:g,languageAdapter:y,setLanguageAdapter:w,showLanguageToggles:k=!0,outputArea:C})=>{var Me;let[A,L]=vn(mi),U=Ei(),{saveOrNameNotebook:T}=ur(),x=Un(),{saveCellConfig:G}=Ln(),ee=a==="running"||a==="queued",$=Sn(),F=_m(),j=y==="markdown",ie=ue(()=>ee?!1:x.idle&&u.keymap.destructive_delete?(x.submit([n]),!0):(U({cellId:n}),!0)),_=ue(()=>ee?!1:(c(),d.current&&gr(d.current),!0)),P=ue(()=>{let O=!r.hide_code;return G({configs:{[n]:{hide_code:O}}}),$.updateCellConfig({cellId:n,config:{hide_code:O}}),O}),me=ce(Kd),K=ue(()=>{Fm({autoInstantiate:me,createNewCell:$.createNewCell})}),E=zd(u),S=(0,I.useMemo)(()=>{var W;let O=Mc({cellId:n,showPlaceholder:t,enableAI:E,cellActions:{...$,afterToggleMarkdown:K,onRun:_,deleteCell:ie,saveNotebook:T,createManyBelow:V=>{for(let se of[...V].reverse())$.createNewCell({code:se,before:!1,cellId:n,skipIfCodeExists:!0})},splitCell:F,toggleHideCode:P,aiCellCompletion:()=>{let V=!1;return L(se=>(se==null?void 0:se.cellId)===n?(V=!0,null):{cellId:n}),V}},completionConfig:u.completion,keymapConfig:u.keymap,lspConfig:u.language_servers,theme:e,hotkeys:new za(u.keymap.overrides??{}),diagnosticsConfig:u.diagnostics,displayConfig:u.display,inlineAiTooltip:((W=u.ai)==null?void 0:W.inline_tooltip)??!1});return O.push(ze.define(V=>(w(V.state.field(Cn).type),{update(se){w(se.state.field(Cn).type)}})),B.updateListener.of(V=>{V.selectionSet&&V.state.selection.ranges.some(se=>se.from!==se.to)&&g({focus:!1})}),B.domEventHandlers({focus:()=>{g({focus:!1})}})),O},[n,u.keymap,u.completion,u.language_servers,u.display,u.diagnostics,E,e,t,$,F,P,ie,_,L,K,w,g,T]),R=Nr(),D=ue(()=>{if(R){let W=lr(n,V=>{$.updateCellCode({cellId:n,code:V,formattingChange:!0})},o);S.push(W.extension),o=W.code}let O=new B({state:Ir.create({doc:o,extensions:S})});s(O),R||Bt(O,{language:Sr(O.state).type})}),te=ue(()=>{if(jt(d.current!==null,"Editor view is not initialized"),R){let O=lr(n,W=>{$.updateCellCode({cellId:n,code:W,formattingChange:!0})});S.push(O.extension)}d.current.dispatch({effects:[he.reconfigure.of([S]),Fd(d.current,{completionConfig:u.completion,hotkeysProvider:new za(u.keymap.overrides??{}),lspConfig:{...u.language_servers,diagnostics:u.diagnostics}})]})}),Re=ue(()=>{if(jt(i,"Editor view is not initialized"),R){let W=lr(n,V=>{$.updateCellCode({cellId:n,code:V,formattingChange:!0})},o);S.push(W.extension),o=W.code}let O=new B({state:Ir.fromJSON(i,{doc:o,extensions:S},{history:Of})});R||Bt(O,{language:Sr(O.state).type}),s(O),$.clearSerializedEditorState({cellId:n})});(0,I.useEffect)(()=>{i===null?d.current===null?D():te():Re(),d.current!==null&&f&&f.current!==null&&f.current.replaceChildren(d.current.dom)},[D,te,Re,d,f,i,S]),(0,I.useEffect)(()=>{let O=d.current;return()=>{O==null||O.destroy()}},[d]);let Pe=td(n,d),Ve="";return j&&p&&m?Ve="h-0 overflow-hidden":p&&(Ve="opacity-20 h-8 [&>div.cm-editor]:h-full [&>div.cm-editor]:overflow-hidden [&_.cm-panels]:hidden"),(0,b.jsx)(Pu,{cellId:n,aiCompletionCell:A,currentCode:((Me=d.current)==null?void 0:Me.state.doc.toString())??o,currentLanguageAdapter:y,declineChange:ue(()=>{var O;L(null),(O=d.current)==null||O.focus()}),onChange:ue(O=>{var W;(W=d.current)==null||W.dispatch({changes:{from:0,to:d.current.state.doc.length,insert:O}})}),acceptChange:ue(O=>{var W,V;(W=d.current)==null||W.dispatch({changes:{from:0,to:d.current.state.doc.length,insert:O}}),(V=d.current)==null||V.focus(),L(null)}),runCell:_,outputArea:C,children:(0,b.jsxs)("div",{className:"relative w-full",...Pe,children:[(0,b.jsx)(Aa,{className:Ve,editorView:d.current,ref:f,hidden:p,showHiddenCode:g}),!p&&k&&(0,b.jsx)("div",{className:"absolute top-1 right-5",children:(0,b.jsx)(nd,{code:o,editorView:d.current,currentLanguageAdapter:y,onAfterToggle:K})})]})})},Aa=I.forwardRef((e,t)=>{let n=(0,xa.c)(14),{className:r,editorView:o,hidden:a,showHiddenCode:i}=e,s=(0,I.useRef)(null),c,u;n[0]===o?(c=n[1],u=n[2]):(c=()=>{o!==null&&s.current!==null&&s.current.children.length===0&&s.current.append(o.dom)},u=[o,s],n[0]=o,n[1]=c,n[2]=u),(0,I.useEffect)(c,u);let d;n[3]===r?d=n[4]:(d=lt("cm mathjax_ignore",r),n[3]=r,n[4]=d);let f;n[5]!==a||n[6]!==i?(f=g=>{a&&i&&(g.stopPropagation(),i({focus:!0}))},n[5]=a,n[6]=i,n[7]=f):f=n[7];let p;n[8]===t?p=n[9]:(p=g=>{t?_n(t,s)(g):_n(s)(g)},n[8]=t,n[9]=p);let m;return n[10]!==d||n[11]!==f||n[12]!==p?(m=(0,b.jsx)("div",{className:d,onDoubleClick:f,ref:p,"data-testid":"cell-editor"}),n[10]=d,n[11]=f,n[12]=p,n[13]=m):m=n[13],m});Aa.displayName="CellCodeMirrorEditor";function rd(e){let t=n=>{let r=(0,xa.c)(5),o=ce(bt),[a,i]=vn(ut);if(Xd(o.state)||a===void 0){let c;r[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,b.jsx)("span",{children:"Waiting for real-time collaboration connection..."}),r[0]=c):c=r[0];let u;return r[1]===i?u=r[2]:(u=(0,b.jsx)("div",{className:"flex h-full w-full items-baseline p-4",children:(0,b.jsxs)(Uf,{milliseconds:1e3,fallback:null,children:[c,(0,b.jsx)(He,{variant:"link",onClick:()=>{i("disabled")},children:"Turn off real-time collaboration"})]})}),r[1]=i,r[2]=u),u}let s;return r[3]===n?s=r[4]:(s=(0,b.jsx)(e,{...n}),r[3]=n,r[4]=s),s};return t.displayName=`WithWaitUntilConnected(${e.displayName})`,t}Bi=Nr()?rd((0,I.memo)(Ta)):(0,I.memo)(Ta)});export{Ii as _,Jm as __tla,jr as a,Fi as c,ut as d,Li as f,On as g,Pr as h,Wt as i,Dn as l,be as m,Oi as n,Di as o,_i as p,Ui as r,_n as s,Bi as t,Mr as u,Un as v}; diff --git a/docs/assets/cell-editor-Iey559K_.css b/docs/assets/cell-editor-Iey559K_.css new file mode 100644 index 0000000..b51d4fb --- /dev/null +++ b/docs/assets/cell-editor-Iey559K_.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-border-style:solid}}}.missing-filename{text-align:center;--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-shadow-color:var(--stale)}@supports (color:color-mix(in lab,red,red)){.missing-filename{--tw-shadow-color:color-mix(in oklab,var(--stale)var(--tw-shadow-alpha),transparent)}}.missing-filename:focus,.missing-filename:hover{--tw-shadow:5px 6px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 4px 0px var(--tw-shadow-color,#bfbfbf80);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-shadow-color:var(--stale)}@supports (color:color-mix(in lab,red,red)){.missing-filename:focus,.missing-filename:hover{--tw-shadow-color:color-mix(in oklab,var(--stale)var(--tw-shadow-alpha),transparent)}}.filename{box-shadow:none;text-align:center}.filename:focus,.filename:hover{border-style:var(--tw-border-style);--tw-shadow:5px 6px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 4px 0px var(--tw-shadow-color,#bfbfbf80);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-width:1px}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}.marimo-cell .cm-mergeViewEditor .cm-editor{padding:0}.cm-merge-theme:last-child{border-bottom-right-radius:10px;border-bottom-left-radius:10px;overflow:hidden} diff --git a/docs/assets/cell-link-D7bPw7Fz.js b/docs/assets/cell-link-D7bPw7Fz.js new file mode 100644 index 0000000..811e6d0 --- /dev/null +++ b/docs/assets/cell-link-D7bPw7Fz.js @@ -0,0 +1 @@ +import{s as j}from"./chunk-LvLJmgfZ.js";import{d as w,l as P,n as y,u as A}from"./useEvent-DlWF5OMa.js";import{Jr as _,Xt as L,ai as O,j as E,k as S,vt as T,w as $,zt as D}from"./cells-CmJW_FeD.js";import{t as b}from"./compiler-runtime-DeeZ7FnK.js";import{d as F}from"./hotkeys-uKX61F1_.js";import{d as q}from"./utils-Czt8B2GX.js";import{r as I}from"./constants-Bkp4R3bQ.js";import{A as z,p as B,w as H}from"./config-CENq_7Pd.js";import{t as J}from"./jsx-runtime-DN_bIXfG.js";import{t as M}from"./cn-C1rgT0yh.js";import{r as R}from"./requests-C0HaHO6a.js";import{n as U}from"./ImperativeModal-BZvZlZQZ.js";var V=b();function N(){return A(_)}function X(){let r=(0,V.c)(5),[t]=P(H),e=w(_),{openAlert:a}=U(),{sendRename:o}=R(),s;return r[0]!==t.state||r[1]!==a||r[2]!==o||r[3]!==e?(s=async l=>{let n=q();return t.state===z.OPEN?(B(i=>{l===null?i.delete(I.filePath):i.set(I.filePath,l)}),o({filename:l}).then(()=>(e(l),document.title=n.app_title||D.basename(l)||"Untitled Notebook",l)).catch(i=>(a(i.message),null))):(a("Failed to save notebook: not connected to a kernel."),null)},r[0]=t.state,r[1]=a,r[2]=o,r[3]=e,r[4]=s):s=r[4],y(s)}var p=b(),v=j(J(),1);const k=r=>{let t=(0,p.c)(12),{className:e,cellId:a,variant:o,onClick:s,formatCellName:l,skipScroll:n}=r,i=E()[a]??"",C=S().inOrderIds.indexOf(a),{showCellIfHidden:d}=$(),g=l??Q,c;t[0]===e?c=t[1]:(c=M("inline-block cursor-pointer text-link hover:underline",e),t[0]=e,t[1]=c);let m;t[2]!==a||t[3]!==s||t[4]!==d||t[5]!==n||t[6]!==o?(m=h=>{if(a==="__scratch__")return!1;d({cellId:a}),h.stopPropagation(),h.preventDefault(),requestAnimationFrame(()=>{x(a,o,n)&&(s==null||s())})},t[2]=a,t[3]=s,t[4]=d,t[5]=n,t[6]=o,t[7]=m):m=t[7];let f=g(T(i,C)),u;return t[8]!==c||t[9]!==m||t[10]!==f?(u=(0,v.jsx)("div",{className:c,role:"link",tabIndex:-1,onClick:m,children:f}),t[8]=c,t[9]=m,t[10]=f,t[11]=u):u=t[11],u},G=r=>{let t=(0,p.c)(2),e;return t[0]===r?e=t[1]:(e=(0,v.jsx)(k,{...r,variant:"destructive"}),t[0]=r,t[1]=e),e},K=r=>{let t=(0,p.c)(10),{cellId:e,lineNumber:a}=r,o=N(),s;t[0]!==e||t[1]!==a?(s=()=>L(e,a),t[0]=e,t[1]=a,t[2]=s):s=t[2];let l;t[3]!==e||t[4]!==o?(l=i=>e==="__scratch__"?"scratch":`marimo://${o||"untitled"}#cell=${i}`,t[3]=e,t[4]=o,t[5]=l):l=t[5];let n;return t[6]!==e||t[7]!==s||t[8]!==l?(n=(0,v.jsx)(k,{cellId:e,onClick:s,skipScroll:!0,variant:"destructive",className:"traceback-cell-link",formatCellName:l}),t[6]=e,t[7]=s,t[8]=l,t[9]=n):n=t[9],n};function x(r,t,e){let a=O.create(r),o=document.getElementById(a);return o===null?(F.error(`Cell ${a} not found on page.`),!1):(e||o.scrollIntoView({behavior:"smooth",block:"center"}),t==="destructive"&&(o.classList.add("error-outline"),setTimeout(()=>{o.classList.remove("error-outline")},2e3)),t==="focus"&&(o.classList.add("focus-outline"),setTimeout(()=>{o.classList.remove("focus-outline")},2e3)),!0)}function Q(r){return r}export{N as a,x as i,G as n,X as o,K as r,k as t}; diff --git a/docs/assets/cells-CmJW_FeD.js b/docs/assets/cells-CmJW_FeD.js new file mode 100644 index 0000000..66f8d8b --- /dev/null +++ b/docs/assets/cells-CmJW_FeD.js @@ -0,0 +1,254 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./esm-CjxD4y0v.js","./chunk-LvLJmgfZ.js","./dist-Cs61SvFK.js","./dist-BuhT82Xx.js","./dist-DKNOF5xd.js","./dist-CAcX026F.js","./dist-BD_oEsO-.js","./dist-cDyKKhtR.js","./dist-D9Fiuh_3.js","./dist-BVf1IY4_.js","./dist-mED403RR.js","./dist-CsayQVA2.js","./dist-BRKKmf0q.js","./dist-CVj-_Iiz.js","./dist-Cq_4nPfh.js","./dist-BtxvfUI7.js","./dist-CebZ69Am.js","./dist-BmJp4tX0.js","./dist-BSCxV_8B.js","./dist-BnNY29MI.js","./dist-Bug4O2lR.js","./dist-gkLBSkCp.js","./dist-BlHq73nV.js","./dist-ByyW-iwc.js","./dist-CSsW5_Dq.js","./dist-Cp3Es6uA.js","./dist-BDE62V06.js","./dist-HGZzCB0y.js","./dist-B_BsW7xk.js","./dist-ClsPkyB_.js","./dist-CoibEXVK.js","./dist-RKnr9SNh.js","./dist-VnTTrJGI.js","./dist-BZPaM2NB.js","./dist-X4wBA4ja.js","./dist-CAJqQUSI.js","./dist-B9BRSqKp.js","./dist-CQhcYtN0.js","./dist-BCDfHX1C.js","./dist-CGGpiWda.js","./dist-DWPMWcXL.js","./dist-BsIAU6bk.js","./apl-Chr9VNQb.js","./apl-C1zdcQvI.js","./asciiarmor-DzJGO3cy.js","./asciiarmor-B--OGpM1.js","./asn1-Blkd-UVm.js","./asn1-D2UnMTL5.js","./brainfuck-BeRVF6bt.js","./brainfuck-DrjMyC8V.js","./cobol-CZP4RjnO.js","./cobol-DZNhVUeB.js","./clike-BhFoDDUF.js","./clike-CCdVFz-6.js","./clojure-D3LWk-SC.js","./clojure-BjmTMymc.js","./css-b-BDNvIM.js","./css-CNKF6pC6.js","./cmake-238GeNbi.js","./cmake-CgqRscDS.js","./coffeescript-B7XjCOaF.js","./coffeescript-Qp7k0WHA.js","./commonlisp-DKNhPgyy.js","./commonlisp-De6q7_JS.js","./cypher-Bld-ecrK.js","./cypher-BUDAQ7Fk.js","./python-4yue3pyq.js","./python-DOZzlkV_.js","./crystal-DmwO_0_4.js","./crystal-BGXRJSF-.js","./d-D0LlbZRM.js","./d-BIAtzqpc.js","./diff-BhkLDFRp.js","./diff-aadYO3ro.js","./dockerfile-mDMHwaZE.js","./simple-mode-B3UD3n_i.js","./dtd-CjtwvVlM.js","./dtd-uNeIl1u0.js","./dylan-D750ej-H.js","./dylan-CrZBaY0F.js","./ecl-ChePjOI6.js","./ecl-ByTsrrt6.js","./eiffel-MZyxske9.js","./eiffel-DRhIEZQi.js","./elm-gXtxhfT4.js","./elm-BBPeNBgT.js","./erlang-CEe3KwR2.js","./erlang-EMEOk6kj.js","./factor-Cf6jeuFE.js","./factor-D7Lm0c37.js","./forth-cDDgSP9p.js","./forth-BdKkHzwH.js","./fortran-C8vMa5zJ.js","./fortran-DxGNM9Kj.js","./mllike-fwkzyrZt.js","./mllike-D9b50pH5.js","./gas-Df167mJ4.js","./gas-hf-H6Zc4.js","./gherkin-8tk6kFf5.js","./gherkin-D1O_VlrS.js","./groovy-JuojAv0H.js","./groovy-Budmgm6I.js","./haskell-Bpjctb1r.js","./haskell-CDrggYs0.js","./haxe-DJHguewM.js","./haxe-CPnBkTzf.js","./idl-feOWH07C.js","./idl-BTZd0S94.js","./javascript-BekfVgKQ.js","./javascript-Czx24F5X.js","./julia-DG-ah68k.js","./julia-OeEN0FvJ.js","./livescript-B2wfFY5r.js","./livescript-DLmsZIyI.js","./lua-CDP4_ezR.js","./lua-BM3BXoTQ.js","./mirc-D6l20mh4.js","./mirc-CzS_wutP.js","./mathematica-BElcKLBW.js","./mathematica-BbPQ8-Rw.js","./modelica-DAnB6nmO.js","./modelica-C8E83p8w.js","./mumps-Dt8k0EUU.js","./mumps-BRQASZoy.js","./mbox-DlwO5A6s.js","./mbox-D2_16jOO.js","./nsis-C1g8DTeO.js","./nsis-C5Oj2cBc.js","./ntriples-DTMBUZ7F.js","./ntriples-D6VU4eew.js","./octave-BwfNaTxP.js","./octave-xff1drIF.js","./oz-6BWZLab7.js","./oz-CRz8coQc.js","./pascal-64fygDAy.js","./pascal-DZhgfws7.js","./perl-CC5X3ewy.js","./perl-BKXEkch3.js","./pig-DP6pbekb.js","./pig-rvFhLOOE.js","./powershell-WtGE4kBw.js","./powershell-Db7zgjV-.js","./properties-CRoDUVbK.js","./properties-BF6anRzc.js","./protobuf-BS6gEp_x.js","./protobuf-De4giNfG.js","./pug-STAEJHPq.js","./pug-CzQlD5xP.js","./puppet-BV74Hcdf.js","./puppet-CMgcPW4L.js","./q-SorAikmF.js","./q-8XMigH-s.js","./r-Dc7847Lm.js","./r-BuEncdBJ.js","./rpm-C2rCOQ1Z.js","./rpm-DnfrioeJ.js","./ruby-DNrqAMg4.js","./ruby-C9f8lbWZ.js","./sas-BKYzR5_z.js","./sas-TQvbwzLU.js","./scheme-as2FasXy.js","./scheme-DCJ8_Fy0.js","./shell-Bf8Q5ES6.js","./shell-D8pt0LM7.js","./sieve-D515TmZq.js","./sieve-DGXZ82l_.js","./smalltalk-DYzx-8Vf.js","./smalltalk-DyRmt5Ka.js","./sparql-6VnDrYOs.js","./sparql-CLILkzHY.js","./stylus-DUyoKY_7.js","./stylus-BCmjnwMM.js","./swift-CXFwyL-K.js","./swift-BkcVjmPv.js","./stex-BBWVYm-R.js","./stex-0ac7Aukl.js","./verilog-D9S6puFO.js","./verilog-C0Wzs7-f.js","./tcl-DbyqErhh.js","./tcl-B3wbfJh2.js","./textile-8fxKT1uq.js","./textile-D12VShq0.js","./toml-BpCjWJNE.js","./toml-XXoBgyAV.js","./troff-BhJs9Lif.js","./troff-D9lX0BP4.js","./ttcn-BVPxY_nX.js","./ttcn-DQ5upjvU.js","./ttcn-cfg-B4sCU0gH.js","./ttcn-cfg-pqnJIxH9.js","./turtle-D4EQx9sx.js","./turtle-BUVCUZMx.js","./webidl-Ct7ps8LR.js","./webidl-GTmlnawS.js","./vb-D-5BLYdM.js","./vb-CgKmZtlp.js","./vbscript-DOZuVfk8.js","./vbscript-mB-oVfPH.js","./velocity-BPduikoO.js","./velocity-CrvX3BFT.js","./vhdl-YYXNXz0X.js","./vhdl-s8UGv0A3.js","./xquery-9kDflInd.js","./xquery-Bq3_mXJv.js","./yacas-u934AJft.js","./yacas-B1P8UzPS.js","./z80-BQ7XtT4U.js","./z80-C8FzIVqi.js","./mscgen-Cs4VQ67l.js","./mscgen-Dk-3wFOB.js","./dist-BOoAATU5.js","./dist-zq3bdql0.js","./dist-Dh6p3Rvf.js","./node-sql-parser-CmARB4ap.js"])))=>i.map(i=>d[i]); +var JR=Object.defineProperty;var XR=(Ui,Xr,Na)=>Xr in Ui?JR(Ui,Xr,{enumerable:!0,configurable:!0,writable:!0,value:Na}):Ui[Xr]=Na;var ke=(Ui,Xr,Na)=>XR(Ui,typeof Xr!="symbol"?Xr+"":Xr,Na);import{a as Ru,n as J2,o as YR,r as ZR,s as vh,t as Ce}from"./chunk-LvLJmgfZ.js";import{c as X2,i as lt,l as Y2,p as ze,r as e4,s as t4,u as Yn}from"./useEvent-DlWF5OMa.js";import{t as Du}from"./react-BGmjiNul.js";import{t as n4}from"./react-dom-C9fstfnp.js";import{B as r4,N as i4,P as Z2,R as ew,T as tw,k as a4,w as o4}from"./zod-Cg4WLWh2.js";import{t as Gr}from"./compiler-runtime-DeeZ7FnK.js";import{f as s4}from"./_Uint8Array-BGESiCQL.js";import{n as l4}from"./toString-DlRqgfqz.js";import{t as c4}from"./toInteger-CDcO32Gx.js";import{n as u4,u as d4}from"./merge-BBX6ug-N.js";import{l as f4}from"./_baseIsEqual-Cz9Tt_-E.js";import{i as _s,t as p4}from"./useLifecycle-CmDXEyIC.js";import{a as h4,i as m4,n as g4,r as bh,t as y4}from"./type-BdyvjzTI.js";import{t as v4}from"./_baseProperty-DuoFhI7N.js";import{t as nw}from"./debounce-BbFlGgjv.js";import{a as ci,d as Re,o as rw,s as b4}from"./hotkeys-uKX61F1_.js";import{t as In}from"./invariant-C6yE60hi.js";import{f as iw,t as w4}from"./utils-Czt8B2GX.js";import{O as _4,j as wh,r as x4}from"./config-CENq_7Pd.js";import{r as aw}from"./useEventListener-COkmyg1v.js";import{t as k4}from"./jsx-runtime-DN_bIXfG.js";import{t as ow}from"./button-B8cGZzP5.js";import{t as Ou}from"./cn-C1rgT0yh.js";import{A as S4,At as C4,Bt as E4,C as T4,D as R4,Et as sw,Gt as lw,H as cw,Ht as uw,I as dw,J as Pu,Jt as xs,Ot as ks,Pt as D4,Rt as Mu,S as O4,St as Ra,T as fw,U as P4,Ut as Lu,Vt as Ol,W as M4,Wt as L4,Xt as Ss,Yt as vo,_t as N4,at as Kt,b as pw,ct as Pl,f as hw,it as I4,k as A4,kt as _h,l as le,mt as q4,nt as mw,ot as j4,p as z4,qt as Fi,rt as Bi,u as gw,ut as F4,xt as xh,z as yw,zt as mn}from"./dist-CAcX026F.js";import{A as B4,E as H4,S as V4,T as $4,_ as W4,b as U4,d as vw,f as K4,h as Q4,m as G4,n as J4,o as kh,p as X4,s as Y4,t as Z4,u as eD,v as tD,w as nD,x as rD}from"./dist-CI6_zMIl.js";import{a as bw,i as iD,n as ui,o as ww,p as Sh,s as Ml}from"./once-CTiSlR1m.js";import{t as aD}from"./capabilities-BmAOeMOK.js";import{t as oD}from"./cjs-Bj40p_Np.js";import{t as Ll}from"./createReducer-DDa-hVe3.js";import{d as _w,l as xw,n as sD,o as kw,p as lD,r as Nu}from"./dist-DKNOF5xd.js";import{i as Ch,r as Eh}from"./main-CwSdzVhm.js";import{n as Sw,t as cD}from"./useNonce-EAuSVK-5.js";import{t as Hi}from"./requests-C0HaHO6a.js";import{a as uD,c as dD,d as fD,f as Cw,i as pD,l as hD,n as mD,o as Th,r as gD,s as Rh,t as yD,u as vD}from"./dist-BuhT82Xx.js";import{t as Tt}from"./createLucideIcon-CW2xpJ57.js";import{t as bD}from"./check-CrAQug3q.js";import{a as wD,c as _D,i as Dh,m as xD,n as kD,o as Ew,r as SD,s as CD,t as ED}from"./select-D9lTzMzP.js";import{t as TD,u as RD}from"./toDate-5JckKRQn.js";import{t as DD}from"./database-zap-CaVvnK_o.js";import{n as OD,t as Iu}from"./DeferredRequestRegistry-B3BENoUa.js";import{t as mr}from"./badge-DAnNhy3O.js";import{t as ce}from"./preload-helper-BW0IMuFq.js";import{a as Tw,s as PD}from"./dist-HGZzCB0y.js";import{a as MD,i as Oh,n as LD,r as Rw,t as ND}from"./dist-RKnr9SNh.js";import{n as ID}from"./stex-0ac7Aukl.js";import{t as Nl}from"./use-toast-Bzf3rpev.js";import{n as AD}from"./useTheme-BSVRc0kJ.js";import{E as qD,S as jD,_ as Ph,w as Dw,x as zD}from"./Combination-D1TsGrBC.js";import{l as FD}from"./dist-CBrDuocE.js";import{i as BD,t as Mh}from"./tooltip-CvjcEpZC.js";let Ow,Lh,Au,qu,Pw,ju,Il,Mw,Lw,Nh,Da,Nw,Iw,Ih,Aw,gr,qw,jw,bo,zw,Fw,zu,Bw,Hw,Pr,wo,Oa,Ah,qh,Cs,Fu,Vw,jh,Bu,$w,zh,Mr,Fh,Ww,Bh,Hh,Vh,Es,Al,Uw,$h,Ts,Kw,Qw,Wh,Uh,Kh,Gw,ql,jl,di,Jw,Qh,Hu,Vu,Xw,Pa,$u,Gh,Yw,Jh,zl,Wu,Xh,Yh,Fl,Zh,Zw,em,tm,Bl,e_,Uu,nm,Hl,t_,n_,Ku,r_,i_,rm,im,a_,o_,_o,Vl,am,om,Qu,s_,l_,c_,sm,u_,d_,lm,cm,$n,f_,um,dm,$l,fm,p_,Wl,Pt,h_,Gu,Zn,Ju,m_,xo,g_,Ma,pm,hm,y_,Xu,mm,v_,Lr,b_,w_,Ul,__,gm,x_,k_,ym,Yu,Zu,S_,C_,Kl,vm,E_,T_,ko,ed,R_,td,Ql,Vi,D_,nd,O_,rd,P_,Jr,M_,L_,Gl,id,N_,I_,bm,wm,A_,q_,j_,z_,F_,ad,_m,B_,H_,xm,od,km,V_,sd,Sm,$_,Rs,Cm,W_,U_,K_,Em,Q_,G_,Tm,ld,Rm,J_,$i,X_,La,Y_,So,Dm,Z_,yr,cd,ud,ex,tx,nx,dd,rx,ix,Om,Pm,ax,ox,fd,sx,lx,Wi,cx,ux,Jl,Mm,pd,dx,fx,px,Lm,bt,hx,Nm,mx,Im,Am,qm,Xl,HD=(async()=>{var ea,_f,$a;let Ui,Xr,Na,Fm;Ui=Ce((e=>{function n(re,se){var K=re.length;re.push(se);e:for(;0>>1,Fe=re[Le];if(0>>1;Les(je,K))Pes(Ae,je)?(re[Le]=Ae,re[Pe]=K,Le=Pe):(re[Le]=je,re[Be]=K,Le=Be);else if(Pes(Ae,K))re[Le]=Ae,re[Pe]=K,Le=Pe;else break e}}return se}function s(re,se){var K=re.sortIndex-se.sortIndex;return K===0?re.id-se.id:K}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],y=[],w=1,_=null,C=3,E=!1,T=!1,P=!1,V=!1,$=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function Q(re){for(var se=i(y);se!==null;){if(se.callback===null)o(y);else if(se.startTime<=re)o(y),se.sortIndex=se.expirationTime,n(p,se);else break;se=i(y)}}function pe(re){if(P=!1,Q(re),!T)if(i(p)!==null)T=!0,M||(M=!0,J());else{var se=i(y);se!==null&&Z(pe,se.startTime-re)}}var M=!1,A=-1,W=5,de=-1;function fe(){return V?!0:!(e.unstable_now()-dere&&fe());){var Le=_.callback;if(typeof Le=="function"){_.callback=null,C=_.priorityLevel;var Fe=Le(_.expirationTime<=re);if(re=e.unstable_now(),typeof Fe=="function"){_.callback=Fe,Q(re),se=!0;break t}_===i(p)&&o(p),Q(re)}else o(p);_=i(p)}if(_!==null)se=!0;else{var et=i(y);et!==null&&Z(pe,et.startTime-re),se=!1}}break e}finally{_=null,C=K,E=!1}se=void 0}}finally{se?J():M=!1}}}var J;if(typeof I=="function")J=function(){I(we)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,Se=be.port2;be.port1.onmessage=we,J=function(){Se.postMessage(null)}}else J=function(){$(we,0)};function Z(re,se){A=$(function(){re(e.unstable_now())},se)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(re){re.callback=null},e.unstable_forceFrameRate=function(re){0>re||125Le?(re.sortIndex=K,n(y,re),i(p)===null&&re===i(y)&&(P?(B(A),A=-1):P=!0,Z(pe,K-Le))):(re.sortIndex=Fe,n(p,re),T||E||(T=!0,M||(M=!0,J()))),re},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(re){var se=C;return function(){var K=C;C=se;try{return re.apply(this,arguments)}finally{C=K}}}})),Xr=Ce(((e,n)=>{n.exports=Ui()})),Na=Ce((e=>{var n=Xr(),i=Du(),o=n4();function s(t){var r="https://react.dev/errors/"+t;if(1et||(t.current=Fe[et],Fe[et]=null,et--)}function Pe(t,r){et++,Fe[et]=t.current,t.current=r}var Ae=Be(null),ft=Be(null),mt=Be(null),Dn=Be(null);function un(t,r){switch(Pe(mt,r),Pe(ft,t),Pe(Ae,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?x2(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=x2(r),t=k2(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}je(Ae),Pe(Ae,t)}function We(){je(Ae),je(ft),je(mt)}function tn(t){t.memoizedState!==null&&Pe(Dn,t);var r=Ae.current,a=k2(r,t.type);r!==a&&(Pe(ft,t),Pe(Ae,a))}function wt(t){ft.current===t&&(je(Ae),je(ft)),Dn.current===t&&(je(Dn),El._currentValue=Le)}var vn,vr;function pt(t){if(vn===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);vn=r&&r[1]||"",vr=-1)":-1h||H[l]!==ne[h]){var he=` +`+H[l].replace(" at new "," at ");return t.displayName&&he.includes("")&&(he=he.replace("",t.displayName)),he}while(1<=l&&0<=h);break}}}finally{zr=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?pt(a):""}function hi(t,r){switch(t.tag){case 26:case 27:case 5:return pt(t.type);case 16:return pt("Lazy");case 13:return t.child!==r&&r!==null?pt("Suspense Fallback"):pt("Suspense");case 19:return pt("SuspenseList");case 0:case 15:return nn(t.type,!1);case 11:return nn(t.type.render,!1);case 1:return nn(t.type,!0);case 31:return pt("Activity");default:return""}}function On(t){try{var r="",a=null;do r+=hi(t,a),a=t,t=t.return;while(t);return r}catch(l){return` +Error generating stack: `+l.message+` +`+l.stack}}var br=Object.prototype.hasOwnProperty,Pn=n.unstable_scheduleCallback,dn=n.unstable_cancelCallback,ta=n.unstable_shouldYield,mi=n.unstable_requestPaint,Ut=n.unstable_now,gi=n.unstable_getCurrentPriorityLevel,fn=n.unstable_ImmediatePriority,ti=n.unstable_UserBlockingPriority,zt=n.unstable_NormalPriority,Fr=n.unstable_LowPriority,_t=n.unstable_IdlePriority,yi=n.log,na=n.unstable_setDisableYieldValue,wr=null,Jt=null;function Ge(t){if(typeof yi=="function"&&na(t),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(wr,t)}catch{}}var gt=Math.clz32?Math.clz32:jn,xt=Math.log,kt=Math.LN2;function jn(t){return t>>>=0,t===0?32:31-(xt(t)/kt|0)|0}var _r=256,St=262144,ir=4194304;function Mn(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Br(t,r,a){var l=t.pendingLanes;if(l===0)return 0;var h=0,g=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var D=l&134217727;return D===0?(D=l&~g,D===0?S===0?a||(a=l&~t,a!==0&&(h=Mn(a))):h=Mn(S):h=Mn(D)):(l=D&~g,l===0?(S&=D,S===0?a||(a=D&~t,a!==0&&(h=Mn(a))):h=Mn(S)):h=Mn(l)),h===0?0:r!==0&&r!==h&&(r&g)===0&&(g=h&-h,a=r&-r,g>=a||g===32&&a&4194048)?r:h}function bn(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function ar(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vi(){var t=ir;return ir<<=1,!(ir&62914560)&&(ir=4194304),t}function ni(t){for(var r=[],a=0;31>a;a++)r.push(t);return r}function Ln(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function bi(t,r,a,l,h,g){var S=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var D=t.entanglements,H=t.expirationTimes,ne=t.hiddenUpdates;for(a=S&~a;0"u"||window.document===void 0||window.document.createElement===void 0),Ws=!1;if(Vr)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){Ws=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{Ws=!1}var $r=null,$o=null,Ja=null;function Us(){if(Ja)return Ja;var t,r=$o,a=r.length,l,h="value"in $r?$r.value:$r.textContent,g=h.length;for(t=0;t=$t),Za=" ",Sc=!1;function Cc(t,r){switch(t){case"keyup":return Ue.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Uo=!1;function gT(t,r){switch(t){case"compositionend":return Wo(r);case"keypress":return r.which===32?(Sc=!0,Za):null;case"textInput":return t=r.data,t===Za&&Sc?null:t;default:return null}}function yT(t,r){if(Uo)return t==="compositionend"||!$e&&Cc(t,r)?(t=Us(),Ja=$o=$r=null,Uo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:a,offset:r-t};t=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Hv(a)}}function $v(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?$v(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Wv(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Nn(t.document);r instanceof t.HTMLIFrameElement;){try{var a=typeof r.contentWindow.location.href=="string"}catch{a=!1}if(a)t=r.contentWindow;else break;r=Nn(t.document)}return r}function Tf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var CT=Vr&&"documentMode"in document&&11>=document.documentMode,Ko=null,Rf=null,Xs=null,Df=!1;function Uv(t,r,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Df||Ko==null||Ko!==Nn(l)||(l=Ko,"selectionStart"in l&&Tf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xs&&Js(Xs,l)||(Xs=l,l=hu(Rf,"onSelect"),0>=S,h-=S,oi=1<<32-gt(r)+h|a<Qe?(at=Oe,Oe=null):at=Oe.sibling;var ht=ae(G,Oe,ee[Qe],me);if(ht===null){Oe===null&&(Oe=at);break}t&&Oe&&ht.alternate===null&&r(G,Oe),U=g(ht,U,Qe),vt===null?Me=ht:vt.sibling=ht,vt=ht,Oe=at}if(Qe===ee.length)return a(G,Oe),st&&Ci(G,Qe),Me;if(Oe===null){for(;QeQe?(at=Oe,Oe=null):at=Oe.sibling;var Ta=ae(G,Oe,ht.value,me);if(Ta===null){Oe===null&&(Oe=at);break}t&&Oe&&Ta.alternate===null&&r(G,Oe),U=g(Ta,U,Qe),vt===null?Me=Ta:vt.sibling=Ta,vt=Ta,Oe=at}if(ht.done)return a(G,Oe),st&&Ci(G,Qe),Me;if(Oe===null){for(;!ht.done;Qe++,ht=ee.next())ht=ge(G,ht.value,me),ht!==null&&(U=g(ht,U,Qe),vt===null?Me=ht:vt.sibling=ht,vt=ht);return st&&Ci(G,Qe),Me}for(Oe=l(Oe);!ht.done;Qe++,ht=ee.next())ht=ue(Oe,G,Qe,ht.value,me),ht!==null&&(t&&ht.alternate!==null&&Oe.delete(ht.key===null?Qe:ht.key),U=g(ht,U,Qe),vt===null?Me=ht:vt.sibling=ht,vt=ht);return t&&Oe.forEach(function(GR){return r(G,GR)}),st&&Ci(G,Qe),Me}function Ot(G,U,ee,me){if(typeof ee=="object"&&ee&&ee.type===V&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee){switch(ee.$$typeof){case T:e:{for(var Me=ee.key;U!==null;){if(U.key===Me){if(Me=ee.type,Me===V){if(U.tag===7){a(G,U.sibling),me=h(U,ee.props.children),me.return=G,G=me;break e}}else if(U.elementType===Me||typeof Me=="object"&&Me&&Me.$$typeof===de&&lo(Me)===U.type){a(G,U.sibling),me=h(U,ee.props),rl(me,ee),me.return=G,G=me;break e}a(G,U);break}else r(G,U);U=U.sibling}ee.type===V?(me=ro(ee.props.children,G.mode,me,ee.key),me.return=G,G=me):(me=Pc(ee.type,ee.key,ee.props,null,G.mode,me),rl(me,ee),me.return=G,G=me)}return S(G);case P:e:{for(Me=ee.key;U!==null;){if(U.key===Me)if(U.tag===4&&U.stateNode.containerInfo===ee.containerInfo&&U.stateNode.implementation===ee.implementation){a(G,U.sibling),me=h(U,ee.children||[]),me.return=G,G=me;break e}else{a(G,U);break}else r(G,U);U=U.sibling}me=Af(ee,G.mode,me),me.return=G,G=me}return S(G);case de:return ee=lo(ee),Ot(G,U,ee,me)}if(re(ee))return De(G,U,ee,me);if(be(ee)){if(Me=be(ee),typeof Me!="function")throw Error(s(150));return ee=Me.call(ee),Ie(G,U,ee,me)}if(typeof ee.then=="function")return Ot(G,U,jc(ee),me);if(ee.$$typeof===Q)return Ot(G,U,Nc(G,ee),me);zc(G,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,U!==null&&U.tag===6?(a(G,U.sibling),me=h(U,ee),me.return=G,G=me):(a(G,U),me=If(ee,G.mode,me),me.return=G,G=me),S(G)):a(G,U)}return function(G,U,ee,me){try{nl=0;var Me=Ot(G,U,ee,me);return is=null,Me}catch(Oe){if(Oe===rs||Oe===Ac)throw Oe;var vt=ur(29,Oe,null,G.mode);return vt.lanes=me,vt.return=G,vt}}}var uo=m1(!0),g1=m1(!1),fa=!1;function Qf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function fo(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function po(t,r,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,yt&2){var h=l.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r,r=Oc(t),Zv(t,null,a),r}return Dc(t,l,r,a),Oc(t)}function il(t,r,a){if(r=r.updateQueue,r!==null&&(r=r.shared,a&4194048)){var l=r.lanes;l&=t.pendingLanes,a|=l,r.lanes=a,or(t,a)}}function Jf(t,r){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var h=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var S={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};g===null?h=g=S:g=g.next=S,a=a.next}while(a!==null);g===null?h=g=r:g=g.next=r}else h=g=r;a={baseState:l.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=r:t.next=r,a.lastBaseUpdate=r}var Xf=!1;function al(){if(Xf){var t=ns;if(t!==null)throw t}}function ol(t,r,a,l){Xf=!1;var h=t.updateQueue;fa=!1;var g=h.firstBaseUpdate,S=h.lastBaseUpdate,D=h.shared.pending;if(D!==null){h.shared.pending=null;var H=D,ne=H.next;H.next=null,S===null?g=ne:S.next=ne,S=H;var he=t.alternate;he!==null&&(he=he.updateQueue,D=he.lastBaseUpdate,D!==S&&(D===null?he.firstBaseUpdate=ne:D.next=ne,he.lastBaseUpdate=H))}if(g!==null){var ge=h.baseState;S=0,he=ne=H=null,D=g;do{var ae=D.lane&-536870913,ue=ae!==D.lane;if(ue?(it&ae)===ae:(l&ae)===ae){ae!==0&&ae===ts&&(Xf=!0),he!==null&&(he=he.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var De=t,Ie=D;ae=r;var Ot=a;switch(Ie.tag){case 1:if(De=Ie.payload,typeof De=="function"){ge=De.call(Ot,ge,ae);break e}ge=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ie.payload,ae=typeof De=="function"?De.call(Ot,ge,ae):De,ae==null)break e;ge=C({},ge,ae);break e;case 2:fa=!0}}ae=D.callback,ae!==null&&(t.flags|=64,ue&&(t.flags|=8192),ue=h.callbacks,ue===null?h.callbacks=[ae]:ue.push(ae))}else ue={lane:ae,tag:D.tag,payload:D.payload,callback:D.callback,next:null},he===null?(ne=he=ue,H=ge):he=he.next=ue,S|=ae;if(D=D.next,D===null){if(D=h.shared.pending,D===null)break;ue=D,D=ue.next,ue.next=null,h.lastBaseUpdate=ue,h.shared.pending=null}}while(!0);he===null&&(H=ge),h.baseState=H,h.firstBaseUpdate=ne,h.lastBaseUpdate=he,g===null&&(h.shared.lanes=0),ya|=S,t.lanes=S,t.memoizedState=ge}}function y1(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function v1(t,r){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;tg?g:8;var S=se.T,D={};se.T=D,gp(t,!1,r,a);try{var H=h(),ne=se.S;ne!==null&&ne(D,H),typeof H=="object"&&H&&typeof H.then=="function"?cl(t,r,NT(H,l),Rr(t)):cl(t,r,l,Rr(t))}catch(he){cl(t,r,{then:function(){},status:"rejected",reason:he},Rr())}finally{K.p=g,S!==null&&D.types!==null&&(S.types=D.types),se.T=S}}function FT(){}function hp(t,r,a,l){if(t.tag!==5)throw Error(s(476));var h=J1(t).queue;G1(t,h,r,Le,a===null?FT:function(){return X1(t),a(l)})}function J1(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:Le,baseState:Le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:Le},next:null};var a={};return r.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:a},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function X1(t){var r=J1(t);r.next===null&&(r=t.alternate.memoizedState),cl(t,r.next.queue,{},Rr())}function mp(){return Cn(El)}function Y1(){return Zt().memoizedState}function Z1(){return Zt().memoizedState}function BT(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var a=Rr();t=fo(a);var l=po(r,t,a);l!==null&&(Xn(l,r,a),il(l,r,a)),r={cache:$f()},t.payload=r;return}r=r.return}}function HT(t,r,a){var l=Rr();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gc(t)?tb(r,a):(a=Lf(t,r,a,l),a!==null&&(Xn(a,t,l),nb(a,r,l)))}function eb(t,r,a){cl(t,r,a,Rr())}function cl(t,r,a,l){var h={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Gc(t))tb(r,h);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var S=r.lastRenderedState,D=g(S,a);if(h.hasEagerState=!0,h.eagerState=D,cr(D,S))return Dc(t,r,h,0),It===null&&Rc(),!1}catch{}if(a=Lf(t,r,h,l),a!==null)return Xn(a,t,l),nb(a,r,l),!0}return!1}function gp(t,r,a,l){if(l={lane:2,revertLane:Qp(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Gc(t)){if(r)throw Error(s(479))}else r=Lf(t,a,l,2),r!==null&&Xn(r,t,2)}function Gc(t){var r=t.alternate;return t===Ke||r!==null&&r===Ke}function tb(t,r){os=Hc=!0;var a=t.pending;a===null?r.next=r:(r.next=a.next,a.next=r),t.pending=r}function nb(t,r,a){if(a&4194048){var l=r.lanes;l&=t.pendingLanes,a|=l,r.lanes=a,or(t,a)}}var ul={readContext:Cn,use:Wc,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt};ul.useEffectEvent=Qt;var rb={readContext:Cn,use:Wc,useCallback:function(t,r){return Vn().memoizedState=[t,r===void 0?null:r],t},useContext:Cn,useEffect:F1,useImperativeHandle:function(t,r,a){a=a==null?null:a.concat([t]),Kc(4194308,4,$1.bind(null,r,t),a)},useLayoutEffect:function(t,r){return Kc(4194308,4,t,r)},useInsertionEffect:function(t,r){Kc(4,2,t,r)},useMemo:function(t,r){var a=Vn();r=r===void 0?null:r;var l=t();if(ho){Ge(!0);try{t()}finally{Ge(!1)}}return a.memoizedState=[l,r],l},useReducer:function(t,r,a){var l=Vn();if(a!==void 0){var h=a(r);if(ho){Ge(!0);try{a(r)}finally{Ge(!1)}}}else h=r;return l.memoizedState=l.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},l.queue=t,t=t.dispatch=HT.bind(null,Ke,t),[l.memoizedState,t]},useRef:function(t){var r=Vn();return t={current:t},r.memoizedState=t},useState:function(t){t=cp(t);var r=t.queue,a=eb.bind(null,Ke,r);return r.dispatch=a,[t.memoizedState,a]},useDebugValue:fp,useDeferredValue:function(t,r){return pp(Vn(),t,r)},useTransition:function(){var t=cp(!1);return t=G1.bind(null,Ke,t.queue,!0,!1),Vn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,a){var l=Ke,h=Vn();if(st){if(a===void 0)throw Error(s(407));a=a()}else{if(a=r(),It===null)throw Error(s(349));it&127||S1(l,r,a)}h.memoizedState=a;var g={value:a,getSnapshot:r};return h.queue=g,F1(E1.bind(null,l,g,t),[t]),l.flags|=2048,ls(9,{destroy:void 0},C1.bind(null,l,g,a,r),null),a},useId:function(){var t=Vn(),r=It.identifierPrefix;if(st){var a=si,l=oi;a=(l&~(1<<32-gt(l)-1)).toString(32)+a,r="_"+r+"R_"+a,a=Vc++,0<\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof l.is=="string"?S.createElement("select",{is:l.is}):S.createElement("select"),l.multiple?g.multiple=!0:l.size&&(g.size=l.size);break;default:g=typeof l.is=="string"?S.createElement(h,{is:l.is}):S.createElement(h)}}g[He]=r,g[Ve]=l;e:for(S=r.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===r)break e;for(;S.sibling===null;){if(S.return===null||S.return===r)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}r.stateNode=g;e:switch(Tn(g,h,l),h){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Pi(r)}}return Ht(r),Op(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,a),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&Pi(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(t=mt.current,Zo(r)){if(t=r.stateNode,a=r.memoizedProps,l=null,h=Sn,h!==null)switch(h.tag){case 27:case 5:l=h.memoizedProps}t[He]=r,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||w2(t.nodeValue,a)),t||ua(r,!0)}else t=mu(t).createTextNode(l),t[He]=r,r.stateNode=t}return Ht(r),null;case 31:if(a=r.memoizedState,t===null||t.memoizedState!==null){if(l=Zo(r),a!==null){if(t===null){if(!l)throw Error(s(318));if(t=r.memoizedState,t=t===null?null:t.dehydrated,!t)throw Error(s(557));t[He]=r}else io(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;Ht(r),t=!1}else a=Ff(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return r.flags&256?(fr(r),r):(fr(r),null);if(r.flags&128)throw Error(s(558))}return Ht(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=Zo(r),l!==null&&l.dehydrated!==null){if(t===null){if(!h)throw Error(s(318));if(h=r.memoizedState,h=h===null?null:h.dehydrated,!h)throw Error(s(317));h[He]=r}else io(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;Ht(r),h=!1}else h=Ff(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(fr(r),r):(fr(r),null)}return fr(r),r.flags&128?(r.lanes=a,r):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=r.child,h=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(h=l.alternate.memoizedState.cachePool.pool),g=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),g!==h&&(l.flags|=2048)),a!==t&&a&&(r.child.flags|=8192),eu(r,r.updateQueue),Ht(r),null);case 4:return We(),t===null&&g2(r.stateNode.containerInfo),Ht(r),null;case 10:return Ti(r.type),Ht(r),null;case 19:if(je(Yt),l=r.memoizedState,l===null)return Ht(r),null;if(h=(r.flags&128)!=0,g=l.rendering,g===null)if(h)fl(l,!1);else{if(Gt!==0||t!==null&&t.flags&128)for(t=r.child;t!==null;){if(g=Bc(t),g!==null){for(r.flags|=128,fl(l,!1),t=g.updateQueue,r.updateQueue=t,eu(r,t),r.subtreeFlags=0,t=a,a=r.child;a!==null;)e1(a,t),a=a.sibling;return Pe(Yt,Yt.current&1|2),st&&Ci(r,l.treeForkCount),r.child}t=t.sibling}l.tail!==null&&Ut()>au&&(r.flags|=128,h=!0,fl(l,!1),r.lanes=4194304)}else{if(!h)if(t=Bc(g),t!==null){if(r.flags|=128,h=!0,t=t.updateQueue,r.updateQueue=t,eu(r,t),fl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!g.alternate&&!st)return Ht(r),null}else 2*Ut()-l.renderingStartTime>au&&a!==536870912&&(r.flags|=128,h=!0,fl(l,!1),r.lanes=4194304);l.isBackwards?(g.sibling=r.child,r.child=g):(t=l.last,t===null?r.child=g:t.sibling=g,l.last=g)}return l.tail===null?(Ht(r),null):(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ut(),t.sibling=null,a=Yt.current,Pe(Yt,h?a&1|2:a&1),st&&Ci(r,l.treeForkCount),t);case 22:case 23:return fr(r),Zf(),l=r.memoizedState!==null,t===null?l&&(r.flags|=8192):t.memoizedState!==null!==l&&(r.flags|=8192),l?a&536870912&&!(r.flags&128)&&(Ht(r),r.subtreeFlags&6&&(r.flags|=8192)):Ht(r),a=r.updateQueue,a!==null&&eu(r,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==a&&(r.flags|=2048),t!==null&&je(so),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),r.memoizedState.cache!==a&&(r.flags|=2048),Ti(an),Ht(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function JT(t,r){switch(jf(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Ti(an),We(),t=r.flags,t&65536&&!(t&128)?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return wt(r),null;case 31:if(r.memoizedState!==null){if(fr(r),r.alternate===null)throw Error(s(340));io()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(fr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));io()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return je(Yt),null;case 4:return We(),null;case 10:return Ti(r.type),null;case 22:case 23:return fr(r),Zf(),t!==null&&je(so),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Ti(an),null;case 25:return null;default:return null}}function Sb(t,r){switch(jf(r),r.tag){case 3:Ti(an),We();break;case 26:case 27:case 5:wt(r);break;case 4:We();break;case 31:r.memoizedState!==null&&fr(r);break;case 13:fr(r);break;case 19:je(Yt);break;case 10:Ti(r.type);break;case 22:case 23:fr(r),Zf(),t!==null&&je(so);break;case 24:Ti(an)}}function pl(t,r){try{var a=r.updateQueue,l=a===null?null:a.lastEffect;if(l!==null){var h=l.next;a=h;do{if((a.tag&t)===t){l=void 0;var g=a.create,S=a.inst;l=g(),S.destroy=l}a=a.next}while(a!==h)}}catch(D){Et(r,r.return,D)}}function ma(t,r,a){try{var l=r.updateQueue,h=l===null?null:l.lastEffect;if(h!==null){var g=h.next;l=g;do{if((l.tag&t)===t){var S=l.inst,D=S.destroy;if(D!==void 0){S.destroy=void 0,h=r;var H=a,ne=D;try{ne()}catch(he){Et(h,H,he)}}}l=l.next}while(l!==g)}}catch(he){Et(r,r.return,he)}}function Cb(t){var r=t.updateQueue;if(r!==null){var a=t.stateNode;try{v1(r,a)}catch(l){Et(t,t.return,l)}}}function Eb(t,r,a){a.props=mo(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Et(t,r,l)}}function hl(t,r){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(h){Et(t,r,h)}}function li(t,r){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(h){Et(t,r,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){Et(t,r,h)}else a.current=null}function Tb(t){var r=t.type,a=t.memoizedProps,l=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(h){Et(t,t.return,h)}}function Pp(t,r,a){try{var l=t.stateNode;gR(l,t.type,a,r),l[Ve]=r}catch(h){Et(t,t.return,h)}}function Rb(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&xa(t.type)||t.tag===4}function Mp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Rb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&xa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Lp(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,r):(r=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,r.appendChild(t),a=a._reactRootContainer,a!=null||r.onclick!==null||(r.onclick=xr));else if(l!==4&&(l===27&&xa(t.type)&&(a=t.stateNode,r=null),t=t.child,t!==null))for(Lp(t,r,a),t=t.sibling;t!==null;)Lp(t,r,a),t=t.sibling}function tu(t,r,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?a.insertBefore(t,r):a.appendChild(t);else if(l!==4&&(l===27&&xa(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(tu(t,r,a),t=t.sibling;t!==null;)tu(t,r,a),t=t.sibling}function Db(t){var r=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);Tn(r,l,a),r[He]=t,r[Ve]=a}catch(g){Et(t,t.return,g)}}var Mi=!1,ln=!1,Np=!1,Ob=typeof WeakSet=="function"?WeakSet:Set,kn=null;function XT(t,r){if(t=t.containerInfo,eh=xu,t=Wv(t),Tf(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var h=l.anchorOffset,g=l.focusNode;l=l.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var S=0,D=-1,H=-1,ne=0,he=0,ge=t,ae=null;t:for(;;){for(var ue;ge!==a||h!==0&&ge.nodeType!==3||(D=S+h),ge!==g||l!==0&&ge.nodeType!==3||(H=S+l),ge.nodeType===3&&(S+=ge.nodeValue.length),(ue=ge.firstChild)!==null;)ae=ge,ge=ue;for(;;){if(ge===t)break t;if(ae===a&&++ne===h&&(D=S),ae===g&&++he===l&&(H=S),(ue=ge.nextSibling)!==null)break;ge=ae,ae=ge.parentNode}ge=ue}a=D===-1||H===-1?null:{start:D,end:H}}else a=null}a||(a={start:0,end:0})}else a=null;for(th={focusedElem:t,selectionRange:a},xu=!1,kn=r;kn!==null;)if(r=kn,t=r.child,r.subtreeFlags&1028&&t!==null)t.return=r,kn=t;else for(;kn!==null;){switch(r=kn,g=r.alternate,t=r.flags,r.tag){case 0:if(t&4&&(t=r.updateQueue,t=t===null?null:t.events,t!==null))for(a=0;a title"))),Tn(g,l,a),g[He]=t,Xt(g),l=g;break e;case"link":var S=q2("link","href",h).get(l+(a.href||""));if(S){for(var D=0;DOt&&(S=Ot,Ot=Ie,Ie=S);var G=Vv(D,Ie),U=Vv(D,Ot);if(G&&U&&(ue.rangeCount!==1||ue.anchorNode!==G.node||ue.anchorOffset!==G.offset||ue.focusNode!==U.node||ue.focusOffset!==U.offset)){var ee=ge.createRange();ee.setStart(G.node,G.offset),ue.removeAllRanges(),Ie>Ot?(ue.addRange(ee),ue.extend(U.node,U.offset)):(ee.setEnd(U.node,U.offset),ue.addRange(ee))}}}}for(ge=[],ue=D;ue=ue.parentNode;)ue.nodeType===1&&ge.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;Da?32:a,se.T=null,a=Bp,Bp=null;var g=ba,S=qi;if(hn=0,ps=ba=null,qi=0,yt&6)throw Error(s(331));var D=yt;if(yt|=4,Bb(g.current),jb(g,g.current,S,a),yt=D,wl(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(wr,g)}catch{}return!0}finally{K.p=h,se.T=l,a2(t,r)}}function s2(t,r,a){r=Sr(a,r),r=wp(t.stateNode,r,2),t=po(t,r,2),t!==null&&(Ln(t,2),ji(t))}function Et(t,r,a){if(t.tag===3)s2(t,t,a);else for(;r!==null;){if(r.tag===3){s2(r,t,a);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(va===null||!va.has(l))){t=Sr(a,t),a=lb(2),l=po(r,a,2),l!==null&&(cb(a,l,r,t),Ln(l,2),ji(l));break}}r=r.return}}function Wp(t,r,a){var l=t.pingCache;if(l===null){l=t.pingCache=new eR;var h=new Set;l.set(r,h)}else h=l.get(r),h===void 0&&(h=new Set,l.set(r,h));h.has(a)||(qp=!0,h.add(a),t=aR.bind(null,t,r,a),r.then(t,t))}function aR(t,r,a){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,It===t&&(it&a)===a&&(Gt===4||Gt===3&&(it&62914560)===it&&300>Ut()-iu?!(yt&2)&&hs(t,0):jp|=a,fs===it&&(fs=0)),ji(t)}function l2(t,r){r===0&&(r=vi()),t=no(t,r),t!==null&&(Ln(t,r),ji(t))}function oR(t){var r=t.memoizedState,a=0;r!==null&&(a=r.retryLane),l2(t,a)}function sR(t,r){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,h=t.memoizedState;h!==null&&(a=h.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(r),l2(t,a)}function lR(t,r){return Pn(t,r)}var du=null,gs=null,Up=!1,fu=!1,Kp=!1,_a=0;function ji(t){t!==gs&&t.next===null&&(gs===null?du=gs=t:gs=gs.next=t),fu=!0,Up||(Up=!0,uR())}function wl(t,r){if(!Kp&&fu){Kp=!0;do for(var a=!1,l=du;l!==null;){if(!r)if(t!==0){var h=l.pendingLanes;if(h===0)var g=0;else{var S=l.suspendedLanes,D=l.pingedLanes;g=(1<<31-gt(42|t)+1)-1,g&=h&~(S&~D),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(a=!0,f2(l,g))}else g=it,g=Br(l,l===It?g:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),!(g&3)||bn(l,g)||(a=!0,f2(l,g));l=l.next}while(a);Kp=!1}}function cR(){c2()}function c2(){fu=Up=!1;var t=0;_a!==0&&vR()&&(t=_a);for(var r=Ut(),a=null,l=du;l!==null;){var h=l.next,g=u2(l,r);g===0?(l.next=null,a===null?du=h:a.next=h,h===null&&(gs=a)):(a=l,(t!==0||g&3)&&(fu=!0)),l=h}hn!==0&&hn!==5||wl(t,!1),_a!==0&&(_a=0)}function u2(t,r){for(var a=t.suspendedLanes,l=t.pingedLanes,h=t.expirationTimes,g=t.pendingLanes&-62914561;0D)break;var he=H.transferSize,ge=H.initiatorType;he&&_2(ge)&&(H=H.responseEnd,S+=he*(H"u"?null:document;function L2(t,r,a){var l=ys;if(l&&typeof r=="string"&&r){var h=lr(r);h='link[rel="'+t+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),M2.has(h)||(M2.add(h),t={rel:t,crossOrigin:a,href:r},l.querySelector(h)===null&&(r=l.createElement("link"),Tn(r,"link",t),Xt(r),l.head.appendChild(r)))}}function TR(t){zi.D(t),L2("dns-prefetch",t,null)}function RR(t,r){zi.C(t,r),L2("preconnect",t,r)}function DR(t,r,a){zi.L(t,r,a);var l=ys;if(l&&t&&r){var h='link[rel="preload"][as="'+lr(r)+'"]';r==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+lr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+lr(a.imageSizes)+'"]')):h+='[href="'+lr(t)+'"]';var g=h;switch(r){case"style":g=vs(t);break;case"script":g=bs(t)}Or.has(g)||(t=C({rel:"preload",href:r==="image"&&a&&a.imageSrcSet?void 0:t,as:r},a),Or.set(g,t),l.querySelector(h)!==null||r==="style"&&l.querySelector(Sl(g))||r==="script"&&l.querySelector(Cl(g))||(r=l.createElement("link"),Tn(r,"link",t),Xt(r),l.head.appendChild(r)))}}function OR(t,r){zi.m(t,r);var a=ys;if(a&&t){var l=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+lr(l)+'"][href="'+lr(t)+'"]',g=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=bs(t)}if(!Or.has(g)&&(t=C({rel:"modulepreload",href:t},r),Or.set(g,t),a.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Cl(g)))return}l=a.createElement("link"),Tn(l,"link",t),Xt(l),a.head.appendChild(l)}}}function PR(t,r,a){zi.S(t,r,a);var l=ys;if(l&&t){var h=ra(l).hoistableStyles,g=vs(t);r||(r="default");var S=h.get(g);if(!S){var D={loading:0,preload:null};if(S=l.querySelector(Sl(g)))D.loading=5;else{t=C({rel:"stylesheet",href:t,"data-precedence":r},a),(a=Or.get(g))&&lh(t,a);var H=S=l.createElement("link");Xt(H),Tn(H,"link",t),H._p=new Promise(function(ne,he){H.onload=ne,H.onerror=he}),H.addEventListener("load",function(){D.loading|=1}),H.addEventListener("error",function(){D.loading|=2}),D.loading|=4,yu(S,r,l)}S={type:"stylesheet",instance:S,count:1,state:D},h.set(g,S)}}}function MR(t,r){zi.X(t,r);var a=ys;if(a&&t){var l=ra(a).hoistableScripts,h=bs(t),g=l.get(h);g||(g=a.querySelector(Cl(h)),g||(t=C({src:t,async:!0},r),(r=Or.get(h))&&ch(t,r),g=a.createElement("script"),Xt(g),Tn(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(h,g))}}function LR(t,r){zi.M(t,r);var a=ys;if(a&&t){var l=ra(a).hoistableScripts,h=bs(t),g=l.get(h);g||(g=a.querySelector(Cl(h)),g||(t=C({src:t,async:!0,type:"module"},r),(r=Or.get(h))&&ch(t,r),g=a.createElement("script"),Xt(g),Tn(g,"link",t),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(h,g))}}function N2(t,r,a,l){var h=(h=mt.current)?gu(h):null;if(!h)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(r=vs(a.href),a=ra(h).hoistableStyles,l=a.get(r),l||(l={type:"style",instance:null,count:0,state:null},a.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=vs(a.href);var g=ra(h).hoistableStyles,S=g.get(t);if(S||(h=h.ownerDocument||h,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,S),(g=h.querySelector(Sl(t)))&&!g._p&&(S.instance=g,S.state.loading=5),Or.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Or.set(t,a),g||NR(h,t,a,S.state))),r&&l===null)throw Error(s(528,""));return S}if(r&&l!==null)throw Error(s(529,""));return null;case"script":return r=a.async,a=a.src,typeof a=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=bs(a),a=ra(h).hoistableScripts,l=a.get(r),l||(l={type:"script",instance:null,count:0,state:null},a.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function vs(t){return'href="'+lr(t)+'"'}function Sl(t){return'link[rel="stylesheet"]['+t+"]"}function I2(t){return C({},t,{"data-precedence":t.precedence,precedence:null})}function NR(t,r,a,l){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=t.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),Tn(r,"link",a),Xt(r),t.head.appendChild(r))}function bs(t){return'[src="'+lr(t)+'"]'}function Cl(t){return"script[async]"+t}function A2(t,r,a){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+lr(a.href)+'"]');if(l)return r.instance=l,Xt(l),l;var h=C({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Xt(l),Tn(l,"style",h),yu(l,a.precedence,t),r.instance=l;case"stylesheet":h=vs(a.href);var g=t.querySelector(Sl(h));if(g)return r.state.loading|=4,r.instance=g,Xt(g),g;l=I2(a),(h=Or.get(h))&&lh(l,h),g=(t.ownerDocument||t).createElement("link"),Xt(g);var S=g;return S._p=new Promise(function(D,H){S.onload=D,S.onerror=H}),Tn(g,"link",l),r.state.loading|=4,yu(g,a.precedence,t),r.instance=g;case"script":return g=bs(a.src),(h=t.querySelector(Cl(g)))?(r.instance=h,Xt(h),h):(l=a,(h=Or.get(g))&&(l=C({},a),ch(l,h)),t=t.ownerDocument||t,h=t.createElement("script"),Xt(h),Tn(h,"link",l),t.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&!(r.state.loading&4)&&(l=r.instance,r.state.loading|=4,yu(l,a.precedence,t));return r.instance}function yu(t,r,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,g=h,S=0;S title"):null)}function IR(t,r,a){if(a===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(t=r.disabled,typeof r.precedence=="string"&&t==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function z2(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function AR(t,r,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(a.state.loading&4)){if(a.instance===null){var h=vs(l.href),g=r.querySelector(Sl(h));if(g){r=g._p,typeof r=="object"&&r&&typeof r.then=="function"&&(t.count++,t=bu.bind(t),r.then(t,t)),a.state.loading|=4,a.instance=g,Xt(g);return}g=r.ownerDocument||r,l=I2(l),(h=Or.get(h))&&lh(l,h),g=g.createElement("link"),Xt(g);var S=g;S._p=new Promise(function(D,H){S.onload=D,S.onerror=H}),Tn(g,"link",l),a.instance=g}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,r),(r=a.state.preload)&&!(a.state.loading&3)&&(t.count++,a=bu.bind(t),r.addEventListener("load",a),r.addEventListener("error",a))}}var uh=0;function qR(t,r){return t.stylesheets&&t.count===0&&_u(t,t.stylesheets),0uh?50:800)+r);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(h)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_u(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var wu=null;function _u(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,wu=new Map,r.forEach(jR,t),wu=null,bu.call(t))}function jR(t,r){if(!(r.state.loading&4)){var a=wu.get(t);if(a)var l=a.get(null);else{a=new Map,wu.set(t,a);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g{function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}i(),n.exports=Na()})),Fm="Expected a function";function kx(e,n){var i;if(typeof n!="function")throw TypeError(Fm);return e=c4(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=void 0),i}}var Sx=kx;function Cx(e){return Sx(2,e)}let Bm;_m=Cx,Bm=Math.max;function Ex(e){if(!(e&&e.length))return[];var n=0;return e=f4(e,function(i){if(u4(i))return n=Bm(i.length,n),!0}),s4(n,function(i){return l4(e,v4(i))})}var Tx=d4(Ex);Em=function(e,n){if(e==null)throw Error(n||`Expected value but got ${e}`)},BigInt.prototype.toJSON=function(){return JSON.rawJSON(this.toString())},Pm=function(e){try{return JSON.parse(e,(n,i)=>gd(i))}catch{}if(e==null||e==="")return{};try{return e??(e=""),e=e.replaceAll(new RegExp(`(?<=\\s|^|\\[|,|:)(NaN|-Infinity|Infinity)(?=(?:[^"'\\\\]*(\\\\.|'([^'\\\\]*\\\\.)*[^'\\\\]*'|"([^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"']*$)`,"g"),'"\u25D0$1\u25D0"'),JSON.parse(e,(n,i)=>typeof i=="string"?i==="\u25D0NaN\u25D0"?NaN:i==="\u25D0Infinity\u25D0"?1/0:i==="\u25D0-Infinity\u25D0"?-1/0:gd(i):gd(i))}catch{return{}}};function Rx(e,n){return e==null?"":typeof e=="number"&&!Number.isNaN(e)?e.toLocaleString(n,{useGrouping:!1,maximumFractionDigits:20}):String(e)}S_=function(e,n){if(e.length===0)return"";let i=Object.keys(e[0]),o=e.map(s=>i.map(c=>Rx(s[c],n)).join(" "));return`${i.join(" ")} +${o.join(` +`)}`},w_=function(e){if(e.length===0)return"";let n=Object.keys(e[0]);return[`| ${n.join(" | ")} |`,`|${n.map(()=>"---").join("|")}|`,...e.map(i=>`| ${n.map(o=>Dx(i[o])).join(" | ")} |`)].join(` +`)};function Dx(e){if(e==null)return"";if(Array.isArray(e)||typeof e=="object")return Hm(JSON.stringify(e));let n=String(e),i=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/g,o=new Map,s=0;n=n.replaceAll(i,c=>{let d=`__MDLINK_${s++}__`;return o.set(d,c),d}),n=n.replaceAll(/(https?:\/\/\S+)/g,"[$1]($1)");for(let[c,d]of o)n=n.replace(c,d);return Hm(n)}function Hm(e){return e.replaceAll("\\","\\\\").replaceAll("|","\\|").replaceAll(` +`," ").replaceAll("\r","")}function gd(e){return typeof e=="object"&&e&&"$bigint"in e&&typeof e.$bigint=="string"?BigInt(e.$bigint):e}var Vm="abcdefghijklmnopqrstuvwxyz",$m=Vm+Vm.toUpperCase(),Wm=new Set;Rs="__scratch__",yr="setup",La={create(){let e=0,n;do{let i="";for(let o=0;o<4;o++)i+=$m[Math.floor(Math.random()*$m.length)];n=i,e++}while(Wm.has(n)&&e<100);if(e>=100)throw Error("Failed to generate unique CellId after 100 attempts");return Wm.add(n),n}},Zn={create(e){return In(e!=null,"cellId is required"),`cell-${e}`},parse(e){return e.slice(5)},findElement(e){return e.closest('div[id^="cell-"]')},findElementThroughShadowDOMs(e){let n=e;for(;n;){let i=Zn.findElement(n);if(i)return i;let o=n.getRootNode();if(n=o instanceof ShadowRoot?o.host:n.parentElement,n===o)break}return null}},q_=function(e){let n=null,i=Zn.findElementThroughShadowDOMs(e);return i&&(n=Zn.parse(i.id)),n},Xu={parse(e){return e.getAttribute("object-id")},parseOrThrow(e){let n=Xu.parse(e);return In(n," missing object-id attribute"),n}},O_={create(e){return`output-${e}`}},km=new class{getFilename(){return this.getSearchParam("filename")}setFilename(e){this.setSearchParam("filename",e)}getCodeFromSearchParam(){return this.getSearchParam("code")}getCodeFromHash(){let e=window.location.hash;return e.startsWith("#code/")?e.slice(6):null}setCodeForHash(e){window.location.hash=`#code/${e}`}setSearchParam(e,n){let i=new URL(window.location.href);i.searchParams.set(e,n),window.history.replaceState({},"",i.toString())}getSearchParam(e){return new URL(window.location.href).searchParams.get(e)}},Au=function(e){return Pm(e??"")},x_=function(e){return ci.mapValues(e.dataset,n=>typeof n=="string"?Au(n):n)},nx=function(e,n){let i=e.parentElement?Xu.parse(e.parentElement):void 0;return i&&n.has(i)?n.lookupValue(i):Au(e.dataset.initialValue)},Fl=function(){if(w4())return document.title||null;if(wh()){let i=km.getFilename();if(i)return i}let e=document.querySelector("marimo-filename");Em(e,"marimo-filename tag not found");let n=e.innerHTML;return n.length===0?null:n};var Ox=Symbol("");u_=function(e,n){return ze(e,function(i,o,s){o(this,n(i(this),s))})};function yd(e,n){let i=null,o=new Map,s=new Set,c=f=>{let p;if(n===void 0)p=o.get(f);else for(let[w,_]of o)if(n(w,f)){p=_;break}if(p!==void 0)if(i!=null&&i(p[1],f))c.remove(f);else return p[0];let y=e(f);return o.set(f,[y,Date.now()]),d("CREATE",f,y),y},d=(f,p,y)=>{for(let w of s)w({type:f,param:p,atom:y})};return c.unstable_listen=f=>(s.add(f),()=>{s.delete(f)}),c.getParams=()=>o.keys(),c.remove=f=>{if(n===void 0){if(!o.has(f))return;let[p]=o.get(f);o.delete(f),d("REMOVE",f,p)}else for(let[p,[y]]of o)if(n(p,f)){o.delete(p),d("REMOVE",p,y);break}},c.setShouldRemove=f=>{if(i=f,i)for(let[p,[y,w]]of o)i(w,p)&&(o.delete(p),d("REMOVE",p,y))},c}var vd=(e,n,i)=>(n.has(i)?n:n.set(i,e())).get(i),Px=new WeakMap,Mx=(e,n,i,o)=>vd(e,vd(()=>new WeakMap,vd(()=>new WeakMap,Px,n),i),o);function Lx(e,n,i=Object.is){return Mx(()=>{let o=Symbol(),s=([d,f])=>{if(f===o)return n(d);let p=n(d,f);return i(f,p)?f:p},c=ze(d=>{let f=d(c);return s([d(e),f])});return c.init=o,c},e,n,i)}var Um=(e,n,i)=>(n.has(i)?n:n.set(i,e())).get(i),Nx=new WeakMap,Ix=(e,n,i)=>Um(e,Um(()=>new WeakMap,Nx,n),i),Ax={},Km=e=>!!e.write,qx=e=>typeof e=="function";function jx(e,n){return Ix(()=>{let i=new WeakMap,o=(d,f)=>{let p=i.get(d);if(p)return p;let y=f&&i.get(f),w=[],_=[];return d.forEach((C,E)=>{let T=n?n(C):E;_[E]=T;let P=y&&y.atomList[y.keyList.indexOf(T)];if(P){w[E]=P;return}let V=$=>{let B=$(s),I=$(e),Q=o(I,B==null?void 0:B.arr).keyList.indexOf(T);if(Q<0||Q>=I.length){let pe=d[o(d).keyList.indexOf(T)];if(pe)return pe;throw Error("splitAtom: index out of bounds for read")}return I[Q]};w[E]=Km(e)?ze(V,($,B,I)=>{let Q=$(s),pe=$(e),M=o(pe,Q==null?void 0:Q.arr).keyList.indexOf(T);if(M<0||M>=pe.length)throw Error("splitAtom: index out of bounds for write");let A=qx(I)?I(pe[M]):I;Object.is(pe[M],A)||B(e,[...pe.slice(0,M),A,...pe.slice(M+1)])}):ze(V)}),p=y&&y.keyList.length===_.length&&y.keyList.every((C,E)=>C===_[E])?y:{arr:d,atomList:w,keyList:_},i.set(d,p),p},s=ze(d=>{let f=d(s);return o(d(e),f==null?void 0:f.arr)});s.init=void 0;let c=Km(e)?ze(d=>d(s).atomList,(d,f,p)=>{switch(p.type){case"remove":{let y=d(c).indexOf(p.atom);if(y>=0){let w=d(e);f(e,[...w.slice(0,y),...w.slice(y+1)])}break}case"insert":{let y=p.before?d(c).indexOf(p.before):d(c).length;if(y>=0){let w=d(e);f(e,[...w.slice(0,y),p.value,...w.slice(y)])}break}case"move":{let y=d(c).indexOf(p.atom),w=p.before?d(c).indexOf(p.before):d(c).length;if(y>=0&&w>=0){let _=d(e);yd(s).atomList);return c},e,n||Ax)}var Qm=e=>typeof(e==null?void 0:e.then)=="function";function Gm(e=()=>{try{return window.localStorage}catch{return}},n){var f;let i,o,s={getItem:(p,y)=>{var C;let w=E=>{if(E||(E=""),i!==E){try{o=JSON.parse(E,n==null?void 0:n.reviver)}catch{return y}i=E}return o},_=((C=e())==null?void 0:C.getItem(p))??null;return Qm(_)?_.then(w):w(_)},setItem:(p,y)=>{var w;return(w=e())==null?void 0:w.setItem(p,JSON.stringify(y,n==null?void 0:n.replacer))},removeItem:p=>{var y;return(y=e())==null?void 0:y.removeItem(p)}},c=p=>(y,w,_)=>p(y,C=>{let E;try{E=JSON.parse(C||"")}catch{E=_}w(E)}),d;try{d=(f=e())==null?void 0:f.subscribe}catch{}return!d&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(d=(p,y)=>{if(!(e()instanceof window.Storage))return()=>{};let w=_=>{_.storageArea===e()&&_.key===p&&y(_.newValue)};return window.addEventListener("storage",w),()=>{window.removeEventListener("storage",w)}}),d&&(s.subscribe=c(d)),s}var zx=Gm();$l=function(e,n,i=zx,o){let s=ze(o!=null&&o.getOnInit?i.getItem(e,n):n);return s.onMount=c=>{c(i.getItem(e,n));let d;return i.subscribe&&(d=i.subscribe(e,c,n)),d},ze(c=>c(s),(c,d,f)=>{let p=typeof f=="function"?f(c(s)):f;return p===Ox?(d(s,n),i.removeItem(e)):Qm(p)?p.then(y=>(d(s,y),i.setItem(e,y))):(d(s,p),i.setItem(e,p))})},$n=function(e){let n,i,o;return typeof e=="object"?(n=e.hashFunction,i=e.expiring,o=e.tags):n=e,(s,c,d)=>{if(d.value!=null)d.value=Jm(d.value,n,i,o);else if(d.get!=null)d.get=Jm(d.get,n,i,o);else throw"Only put a Memoize() decorator on a method or get accessor."}};var bd=new Map;function Jm(e,n,i=0,o){let s=Symbol("__memoized_map__");return function(...c){let d;this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:new Map});let f=this[s];if(Array.isArray(o))for(let p of o)bd.has(p)?bd.get(p).push(f):bd.set(p,[f]);if(n||c.length>0||i>0){let p;p=n===!0?c.map(_=>_.toString()).join("!"):n?n.apply(this,c):c[0];let y=`${p}__timestamp`,w=!1;if(i>0)if(!f.has(y))w=!0;else{let _=f.get(y);w=Date.now()-_>i}f.has(p)&&!w?d=f.get(p):(d=e.apply(this,c),f.set(p,d),i>0&&f.set(y,Date.now()))}else{let p=this;f.has(p)?d=f.get(p):(d=e.apply(this,c),f.set(p,d))}return d}}Es=ze(Fl()),J_=ze(void 0);var Fx=class{constructor(){ke(this,"store",new Map)}get length(){return this.store.size}clear(){this.store.clear()}getItem(e){return this.store.get(e)||null}key(e){return[...this.store.keys()][e]||null}removeItem(e){this.store.delete(e)}setItem(e,n){this.store.set(e,n)}};function Bx(){let{hasLocalStorage:e,hasSessionStorage:n}=aD();return e?window.localStorage:n?window.sessionStorage:new Fx}Ts=Bx();let Ki;s_=class{constructor(e,n=Ts){this.defaultValue=e,this.storage=n}get(e){try{let n=this.storage.getItem(e);return n?JSON.parse(n):this.defaultValue}catch{return this.defaultValue}}set(e,n){this.storage.setItem(e,JSON.stringify(n))}remove(e){this.storage.removeItem(e)}},Fu=class{constructor(e,n,i=Ts){this.schema=e,this.getDefaultValue=n,this.storage=i}get(e){try{let n=this.storage.getItem(e);if(n==null)return this.getDefaultValue();let i=this.schema.safeParse(JSON.parse(n));return i.success?i.data:(Re.warn("Error parsing zod local storage",i.error),this.getDefaultValue())}catch(n){return Re.warn("Error getting zod local storage",n),this.getDefaultValue()}}set(e,n){this.storage.setItem(e,JSON.stringify(n))}remove(e){this.storage.removeItem(e)}},im=class extends Fu{constructor(e,n,i){let o=lt.get(Es);super(n,i),this.filename=o;try{this.unsubscribeFromFilename=lt.sub(Es,()=>{let s=lt.get(Es);this.handleFilenameChange(e,s)})}catch{this.unsubscribeFromFilename=null}}get(e){return super.get(this.createScopedKey(e,this.filename))}set(e,n){super.set(this.createScopedKey(e,this.filename),n)}remove(e){super.remove(this.createScopedKey(e,this.filename))}createScopedKey(e,n){return n?`${e}:${n}`:e}handleFilenameChange(e,n){if(n&&n!==this.filename){let i=this.get(e);this.remove(e),this.filename=n,this.set(e,i)}}dispose(){this.unsubscribeFromFilename&&(this.unsubscribeFromFilename=(this.unsubscribeFromFilename(),null))}},Ki="marimo:notebook-col-sizes";function Hx(){return{widths:[]}}var Eo=new im(Ki,Z2({widths:o4(r4([i4(),a4("contentWidth")]).default("contentWidth"))}),Hx);$w={getColumnWidth:e=>Eo.get(Ki).widths[e]??"contentWidth",saveColumnWidth:(e,n)=>{let i=Eo.get(Ki).widths;if(i[e])i[e]=n;else{for(;i.length<=e;)i.push("contentWidth");i[e]=n}Eo.set(Ki,{widths:i})},clearStorage:()=>{Eo.remove(Ki)}};function Vx(e,n){let i=Eo.get(Ki).widths,o=Ml(i,e,n);Eo.set(Ki,{widths:o})}var Xm,Ym,Zm,Nr,e0,t0,n0,r0,Wn,i0,a0,o0,s0,l0,c0,en;function er(e,n,i,o,s){var c={};return Object.keys(o).forEach(function(d){c[d]=o[d]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=i.slice().reverse().reduce(function(d,f){return f(e,n,d)||d},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0?(Object.defineProperty(e,n,c),null):c}let Ia=(Xm=$n(),Ym=$n(),Zm=$n(),Nr=class{constructor(e,n,i){this.value=e,this.isCollapsed=n,this.children=i}geDescendantCount(){let e=0,n=[...this.children];for(;n.length>0;){let i=n.pop();e++;for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}return e}getDescendants(){let e=[],n=[...this.children];for(;n.length>0;){let i=n.pop();e.push(i.value);for(let o=i.children.length-1;o>=0;o--)n.push(i.children[o])}return e}get inOrderIds(){let e=[],n=i=>{e.push(i.value);for(let o of i.children)n(o)};for(let i of this.children)n(i);return e}toString(){return this.isCollapsed?`${this.value} (collapsed)`:String(this.value)}equals(e){return this.value===e.value}},er(Nr.prototype,"geDescendantCount",[Xm],Object.getOwnPropertyDescriptor(Nr.prototype,"geDescendantCount"),Nr.prototype),er(Nr.prototype,"getDescendants",[Ym],Object.getOwnPropertyDescriptor(Nr.prototype,"getDescendants"),Nr.prototype),er(Nr.prototype,"inOrderIds",[Zm],Object.getOwnPropertyDescriptor(Nr.prototype,"inOrderIds"),Nr.prototype),Nr);var $x=0;let To;To=(e0=$n(),t0=$n(),n0=$n(),r0=$n(),Wn=class Co{constructor(n,i){this.nodes=n,this.id=i}static from(n){let i=`tree_${$x++}`;return new Co(n.map(o=>new Ia(o,!1,[])),i)}static fromWithPreviousShape(n,i){var c;if(!i)return Co.from(n);let o=i.id,s=new Co(n.map(d=>new Ia(d,!1,[])),o);for(let d of n)if(i.isCollapsed(d)){let f=((c=i._nodeMap.get(d))==null?void 0:c.children)??[];for(let p=f.length-1;p>=0;p--){let y=f[p];if(s._nodeMap.has(y.value)){s=s.collapse(d,y.value);break}}}return s}withNodes(n){return new Co(n,this.id)}get topLevelIds(){return this.nodes.map(n=>n.value)}get inOrderIds(){return this.nodes.flatMap(n=>[n.value,...n.inOrderIds])}get idSet(){return new Set(this.inOrderIds)}get length(){return this.nodes.length}get _nodeMap(){let n=new Map;for(let i of this.nodes)n.set(i.value,i);return n}getDescendants(n){let i=this._nodeMap.get(n);return i?i.getDescendants():(Re.warn(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`),[])}isCollapsed(n){let i=this._nodeMap.get(n);return i?i.isCollapsed:(Re.warn(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`),!1)}indexOfOrThrow(n){let i=this.nodes.findIndex(o=>o.value===n);if(i===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);return i}slice(n,i){return this.nodes.slice(n,i).map(o=>o.value)}moveToFront(n){let i=this.indexOfOrThrow(n);return this.withNodes(Ml(this.nodes,i,0))}moveToBack(n){let i=this.indexOfOrThrow(n);return this.withNodes(Ml(this.nodes,i,this.nodes.length-1))}collapse(n,i){let o=this.nodes.findIndex(p=>p.value===n);if(o===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);let s=i===void 0?this.nodes.length:this.nodes.findIndex(p=>p.value===i);if(s===-1)throw Error(`Node ${i} not found in tree`);if(s=0;){let s=i[o],c=n[o];if(!s.isCollapsed&&c){let{id:d,until:f}=c;if(d!==s.value)throw Error(`Node ${s.value} does not match collapse range id ${d}`);let p=f===void 0?i.length:i.findIndex(w=>w.value===f);if(p===-1)throw Error(`Node ${f} not found in tree`);if(pc.value===n);if(i===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);let o=[...this.nodes],s=o[i];if(!s.isCollapsed)throw Error(`Node ${n} is already expanded`);return o[i]=new Ia(s.value,!1,[]),o=ww(o,i+1,s.children),this.withNodes(o)}expandAll(){let n=[...this.nodes],i=0;for(;i0)return d}return[]}return i(this.nodes,[])}split(n){let i=this.nodes.findIndex(c=>c.value===n);if(i===-1)throw Error(`Node ${n} not found in tree`);let o=this.nodes.slice(0,i),s=this.nodes.slice(i);return o.length===0?[Co.from([]),this.withNodes(s)]:[this.withNodes(o),Co.from([]).withNodes(s)]}equals(n){return this.nodes.length===n.nodes.length&&this.nodes.every((i,o)=>i.value===n.nodes[o].value)}toString(){let n=0,i="",o=s=>{for(let c of s)i+=`${" ".repeat(n*2)}${c.toString()} +`,n+=1,o(c.children),--n};return o(this.nodes),i}},er(Wn.prototype,"topLevelIds",[e0],Object.getOwnPropertyDescriptor(Wn.prototype,"topLevelIds"),Wn.prototype),er(Wn.prototype,"inOrderIds",[t0],Object.getOwnPropertyDescriptor(Wn.prototype,"inOrderIds"),Wn.prototype),er(Wn.prototype,"idSet",[n0],Object.getOwnPropertyDescriptor(Wn.prototype,"idSet"),Wn.prototype),er(Wn.prototype,"_nodeMap",[r0],Object.getOwnPropertyDescriptor(Wn.prototype,"_nodeMap"),Wn.prototype),Wn),Vl=(i0=$n(),a0=$n(),o0=$n(),s0=$n(),l0=$n(),c0=$n(),en=class An{constructor(n){this.columns=n,n.length===0&&(this.columns=[To.from([])])}static from(n){return new An(n.map(i=>To.from(i)))}static fromWithPreviousShape(n,i){if(!i)return An.from([n]);let o=i.getColumns(),s=Array.from({length:o.length},()=>[]),c=0;for(let d of n){let f=o.findIndex(p=>p.idSet.has(d));f===-1?s[c].push(d):(c=f,s[f].push(d))}return new An(s.map((d,f)=>To.fromWithPreviousShape(d,o[f])))}isEmpty(){return this.columns.length===0?!0:this.columns.every(n=>n.nodes.length===0)}static fromIdsAndColumns(n){let i=Math.max(1,...n.map(([,c])=>(c??0)+1)),o=Array.from({length:i},()=>[]),s=0;for(let[c,d]of n)d==null||d<0?o[s].push(c):(o[d].push(c),s=d);return An.from(o)}get topLevelIds(){return this.columns.map(n=>n.topLevelIds)}get iterateTopLevelIds(){let n=this.columns;function*i(){for(let o of n)for(let s of o.topLevelIds)yield s}return i()}get inOrderIds(){return this.columns.flatMap(n=>n.inOrderIds)}get colLength(){return this.columns.length}get idLength(){return this.columns.reduce((n,i)=>n+i.nodes.length,0)}get _columnMap(){return new Map(this.columns.map(n=>[n.id,n]))}at(n){return this.columns[n]}get(n){return this._columnMap.get(n)}atOrThrow(n){let i=this.columns[n];if(!i)throw Error(`Column ${n} not found`);return i}hasOnlyOneColumn(){return this.columns.length===1}getColumns(){return this.columns}hasOnlyOneId(){return this.idLength===1}getColumnIds(){return this.columns.map(n=>n.id)}indexOf(n){return this.columns.indexOf(n)}addColumn(n,i=[]){return new An(this.columns.flatMap(o=>o.id===n?[o,To.from(i)]:[o]))}insertBreakpoint(n){let i=this.findWithId(n),[o,s]=i.split(n);return new An(this.columns.flatMap(c=>c===i?[o,s].filter(Boolean):[c]))}delete(n){if(this.columns.length<=1)return this;let i=this.indexOfOrThrow(n),o=i===0?1:i-1,s=[...this.columns],c=s[i];return s[o]=c.withNodes([...s[o].nodes,...c.nodes]),s.splice(i,1),new An(s)}mergeAllColumns(){if(this.columns.length<=1)return this;let n=this.columns.flatMap(o=>o.nodes),i=this.columns[0];return new An([i.withNodes(n)])}moveWithinColumn(n,i,o){return this.transform(n,s=>s.move(i,o))}moveAcrossColumns(n,i,o,s){let c=this.indexOfOrThrow(n),d=this.indexOfOrThrow(o),f=[...this.columns],p=f[c],y=p.nodes.findIndex(C=>C.value===i);if(y===-1)throw Error(`Node ${i} not found in column ${n}`);let w=p.nodes[y];f[c]=p.withNodes(p.nodes.filter((C,E)=>E!==y));let _=f[d];if(s){let C=_.indexOfOrThrow(s);f[d]=_.withNodes(bw(_.nodes,C,w))}else f[d]=_.withNodes([w,..._.nodes]);return new An(f)}indexOfOrThrow(n){let i=this.columns.findIndex(o=>o.id===n);if(i===-1)throw Error(`Column ${n} not found. Possible values: ${this.getColumnIds().join(", ")}`);return i}moveColumn(n,i){if(n===i)return this;let o=this.indexOfOrThrow(n),s=i==="_left_"?o-1:i==="_right_"?o+1:this.indexOfOrThrow(i);return Vx(o,s),new An(Ml([...this.columns],o,s))}moveToNewColumn(n){let i=this.findWithId(n),o=this.columns.map(c=>c.id===i.id?c.delete(n):c),s=To.from([n]);return new An([...o,s])}findWithId(n){let i=this.columns.find(o=>o.inOrderIds.includes(n));if(!i)throw Re.log(`Possible values: ${this.columns.map(o=>o.inOrderIds).join(", ")}`),Error(`Cell ${n} not found in any column`);return i}transformWithCellId(n,i){let o=!1,s=this.columns.map(c=>{if(c.inOrderIds.includes(n)){let d=i(c);return c!==d&&(o=!0),d}return c});return o?new An(s):this}setupCellExists(){return this.columns.some(n=>n.topLevelIds.includes(yr))}insertId(n,i,o){return this.transform(i,s=>s.insert(n,o))}deleteById(n){return this.transformWithCellId(n,i=>i.delete(n))}compact(){return this.columns.length===1||!this.columns.some(n=>n.nodes.length===0)?this:new An(this.columns.filter(n=>n.nodes.length>0))}transform(n,i){let o=this._columnMap.get(n);if(!o)return Re.warn(`Column ${n} not found`),this;let s=i(o);return o===s?this:new An(this.columns.map(c=>c.id===n?s:c))}transformAll(n){let i=!1,o=this.columns.map(s=>{let c=n(s);return s.equals(c)||(i=!0),c});return i?new An(o):this}},er(en.prototype,"isEmpty",[i0],Object.getOwnPropertyDescriptor(en.prototype,"isEmpty"),en.prototype),er(en.prototype,"topLevelIds",[a0],Object.getOwnPropertyDescriptor(en.prototype,"topLevelIds"),en.prototype),er(en.prototype,"inOrderIds",[o0],Object.getOwnPropertyDescriptor(en.prototype,"inOrderIds"),en.prototype),er(en.prototype,"idLength",[s0],Object.getOwnPropertyDescriptor(en.prototype,"idLength"),en.prototype),er(en.prototype,"_columnMap",[l0],Object.getOwnPropertyDescriptor(en.prototype,"_columnMap"),en.prototype),er(en.prototype,"getColumnIds",[c0],Object.getOwnPropertyDescriptor(en.prototype,"getColumnIds"),en.prototype),en);let wd,_d,xd,u0,kd,d0,f0,p0,h0,Sd,Cd,m0,Ed,Td;wd=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var n;(function(o){o.Root="root",o.Text="text",o.Directive="directive",o.Comment="comment",o.Script="script",o.Style="style",o.Tag="tag",o.CDATA="cdata",o.Doctype="doctype"})(n=e.ElementType||(e.ElementType={}));function i(o){return o.type===n.Tag||o.type===n.Script||o.type===n.Style}e.isTag=i,e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype})),_d=Ce((e=>{var n=e&&e.__extends||(function(){var M=function(A,W){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,fe){de.__proto__=fe}||function(de,fe){for(var we in fe)Object.prototype.hasOwnProperty.call(fe,we)&&(de[we]=fe[we])},M(A,W)};return function(A,W){if(typeof W!="function"&&W!==null)throw TypeError("Class extends value "+String(W)+" is not a constructor or null");M(A,W);function de(){this.constructor=A}A.prototype=W===null?Object.create(W):(de.prototype=W.prototype,new de)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(M){for(var A,W=1,de=arguments.length;W0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"childNodes",{get:function(){return this.children},set:function(W){this.children=W},enumerable:!1,configurable:!0}),A})(s);e.NodeWithChildren=y;var w=(function(M){n(A,M);function A(){var W=M!==null&&M.apply(this,arguments)||this;return W.type=o.ElementType.CDATA,W}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),A})(y);e.CDATA=w;var _=(function(M){n(A,M);function A(){var W=M!==null&&M.apply(this,arguments)||this;return W.type=o.ElementType.Root,W}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),A})(y);e.Document=_;var C=(function(M){n(A,M);function A(W,de,fe,we){fe===void 0&&(fe=[]),we===void 0&&(we=W==="script"?o.ElementType.Script:W==="style"?o.ElementType.Style:o.ElementType.Tag);var J=M.call(this,fe)||this;return J.name=W,J.attribs=de,J.type=we,J}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"tagName",{get:function(){return this.name},set:function(W){this.name=W},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"attributes",{get:function(){var W=this;return Object.keys(this.attribs).map(function(de){var fe,we;return{name:de,value:W.attribs[de],namespace:(fe=W["x-attribsNamespace"])==null?void 0:fe[de],prefix:(we=W["x-attribsPrefix"])==null?void 0:we[de]}})},enumerable:!1,configurable:!0}),A})(y);e.Element=C;function E(M){return(0,o.isTag)(M)}e.isTag=E;function T(M){return M.type===o.ElementType.CDATA}e.isCDATA=T;function P(M){return M.type===o.ElementType.Text}e.isText=P;function V(M){return M.type===o.ElementType.Comment}e.isComment=V;function $(M){return M.type===o.ElementType.Directive}e.isDirective=$;function B(M){return M.type===o.ElementType.Root}e.isDocument=B;function I(M){return Object.prototype.hasOwnProperty.call(M,"children")}e.hasChildren=I;function Q(M,A){A===void 0&&(A=!1);var W;if(P(M))W=new d(M.data);else if(V(M))W=new f(M.data);else if(E(M)){var de=A?pe(M.children):[],fe=new C(M.name,i({},M.attribs),de);de.forEach(function(Se){return Se.parent=fe}),M.namespace!=null&&(fe.namespace=M.namespace),M["x-attribsNamespace"]&&(fe["x-attribsNamespace"]=i({},M["x-attribsNamespace"])),M["x-attribsPrefix"]&&(fe["x-attribsPrefix"]=i({},M["x-attribsPrefix"])),W=fe}else if(T(M)){var de=A?pe(M.children):[],we=new w(de);de.forEach(function(Z){return Z.parent=we}),W=we}else if(B(M)){var de=A?pe(M.children):[],J=new _(de);de.forEach(function(Z){return Z.parent=J}),M["x-mode"]&&(J["x-mode"]=M["x-mode"]),W=J}else if($(M)){var be=new p(M.name,M.data);M["x-name"]!=null&&(be["x-name"]=M["x-name"],be["x-publicId"]=M["x-publicId"],be["x-systemId"]=M["x-systemId"]),W=be}else throw Error(`Not implemented yet: ${M.type}`);return W.startIndex=M.startIndex,W.endIndex=M.endIndex,M.sourceCodeLocation!=null&&(W.sourceCodeLocation=M.sourceCodeLocation),W}e.cloneNode=Q;function pe(M){for(var A=M.map(function(de){return Q(de,!0)}),W=1;W{var n=e&&e.__createBinding||(Object.create?(function(f,p,y,w){w===void 0&&(w=y);var _=Object.getOwnPropertyDescriptor(p,y);(!_||("get"in _?!p.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return p[y]}}),Object.defineProperty(f,w,_)}):(function(f,p,y,w){w===void 0&&(w=y),f[w]=p[y]})),i=e&&e.__exportStar||function(f,p){for(var y in f)y!=="default"&&!Object.prototype.hasOwnProperty.call(p,y)&&n(p,f,y)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var o=wd(),s=_d();i(_d(),e);var c={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},d=(function(){function f(p,y,w){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof y=="function"&&(w=y,y=c),typeof p=="object"&&(y=p,p=void 0),this.callback=p??null,this.options=y??c,this.elementCB=w??null}return f.prototype.onparserinit=function(p){this.parser=p},f.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},f.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},f.prototype.onerror=function(p){this.handleCallback(p)},f.prototype.onclosetag=function(){this.lastNode=null;var p=this.tagStack.pop();this.options.withEndIndices&&(p.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(p)},f.prototype.onopentag=function(p,y){var w=this.options.xmlMode?o.ElementType.Tag:void 0,_=new s.Element(p,y,void 0,w);this.addNode(_),this.tagStack.push(_)},f.prototype.ontext=function(p){var y=this.lastNode;if(y&&y.type===o.ElementType.Text)y.data+=p,this.options.withEndIndices&&(y.endIndex=this.parser.endIndex);else{var w=new s.Text(p);this.addNode(w),this.lastNode=w}},f.prototype.oncomment=function(p){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=p;return}var y=new s.Comment(p);this.addNode(y),this.lastNode=y},f.prototype.oncommentend=function(){this.lastNode=null},f.prototype.oncdatastart=function(){var p=new s.Text(""),y=new s.CDATA([p]);this.addNode(y),p.parent=y,this.lastNode=p},f.prototype.oncdataend=function(){this.lastNode=null},f.prototype.onprocessinginstruction=function(p,y){var w=new s.ProcessingInstruction(p,y);this.addNode(w)},f.prototype.handleCallback=function(p){if(typeof this.callback=="function")this.callback(p,this.dom);else if(p)throw p},f.prototype.addNode=function(p){var y=this.tagStack[this.tagStack.length-1],w=y.children[y.children.length-1];this.options.withStartIndices&&(p.startIndex=this.parser.startIndex),this.options.withEndIndices&&(p.endIndex=this.parser.endIndex),y.children.push(p),w&&(p.prev=w,w.next=p),p.parent=y,this.lastNode=null},f})();e.DomHandler=d,e.default=d})),u0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES="animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath".split("."),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(n,i){return n[i.toLowerCase()]=i,n},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now()}__`,e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})),kd=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatAttributes=s,e.escapeSpecialCharacters=d,e.revertEscapedCharacters=f,e.formatDOM=p;var n=xd(),i=u0();function o(y){return i.CASE_SENSITIVE_TAG_NAMES_MAP[y]}function s(y){for(var w={},_=0,C=y.length;_{Object.defineProperty(e,"__esModule",{value:!0}),e.default=V;var n=kd(),i="html",o="head",s="body",c=/<([a-zA-Z]+[0-9]?)/,d=//i,f=//i,p=function($,B){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},y=function($,B){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},w=typeof window=="object"&&window.DOMParser;if(typeof w=="function"){var _=new w,C="text/html";y=function($,B){return B&&($=`<${B}>${$}`),_.parseFromString($,C)},p=y}if(typeof document=="object"&&document.implementation){var E=document.implementation.createHTMLDocument();p=function($,B){if(B){var I=E.documentElement.querySelector(B);return I&&(I.innerHTML=$),E}return E.documentElement.innerHTML=$,E}}var T=typeof document=="object"&&document.createElement("template"),P;T&&T.content&&(P=function($){return T.innerHTML=$,T.content.childNodes});function V($){var B,I;$=(0,n.escapeSpecialCharacters)($);var Q=$.match(c),pe=Q&&Q[1]?Q[1].toLowerCase():"";switch(pe){case i:var M=y($);if(!d.test($)){var W=M.querySelector(o);(B=W==null?void 0:W.parentNode)==null||B.removeChild(W)}if(!f.test($)){var W=M.querySelector(s);(I=W==null?void 0:W.parentNode)==null||I.removeChild(W)}return M.querySelectorAll(i);case o:case s:var A=p($).querySelectorAll(pe);return f.test($)&&d.test($)?A[0].parentNode.childNodes:A;default:if(P)return P($);var W=p($,s).querySelector(s);return W.childNodes}}})),f0=Ce((e=>{var n=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var i=n(d0()),o=kd(),s=/<(![a-zA-Z\s]+)>/;function c(d){if(typeof d!="string")throw TypeError("First argument must be a string");if(!d)return[];var f=d.match(s),p=f?f[1]:void 0;return(0,o.formatDOM)((0,i.default)(d),null,p)}})),p0=Ce((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),h0=Ce((e=>{var n=0,i=1,o=2,s=3,c=4,d=5,f=6;function p(I){return w.hasOwnProperty(I)?w[I]:null}function y(I,Q,pe,M,A,W,de){this.acceptsBooleans=Q===o||Q===s||Q===c,this.attributeName=M,this.attributeNamespace=A,this.mustUseProperty=pe,this.propertyName=I,this.type=Q,this.sanitizeURL=W,this.removeEmptyString=de}var w={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(I=>{w[I]=new y(I,n,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([I,Q])=>{w[I]=new y(I,i,!1,Q,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(I=>{w[I]=new y(I,o,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(I=>{w[I]=new y(I,o,!1,I,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(I=>{w[I]=new y(I,s,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(I=>{w[I]=new y(I,s,!0,I,null,!1,!1)}),["capture","download"].forEach(I=>{w[I]=new y(I,c,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(I=>{w[I]=new y(I,f,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(I=>{w[I]=new y(I,d,!1,I.toLowerCase(),null,!1,!1)});var _=/[\-\:]([a-z])/g,C=I=>I[1].toUpperCase();"accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height".split(".").forEach(I=>{let Q=I.replace(_,C);w[Q]=new y(Q,i,!1,I,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(I=>{let Q=I.replace(_,C);w[Q]=new y(Q,i,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(I=>{let Q=I.replace(_,C);w[Q]=new y(Q,i,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(I=>{w[I]=new y(I,i,!1,I.toLowerCase(),null,!1,!1)});var E="xlinkHref";w[E]=new y("xlinkHref",i,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(I=>{w[I]=new y(I,i,!1,I.toLowerCase(),null,!0,!0)});var{CAMELCASE:T,SAME:P,possibleStandardNames:V}=p0(),$=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),B=Object.keys(V).reduce((I,Q)=>{let pe=V[Q];return pe===P?I[Q]=Q:pe===T?I[Q.toLowerCase()]=Q:I[Q]=pe,I},{});e.BOOLEAN=s,e.BOOLEANISH_STRING=o,e.NUMERIC=d,e.OVERLOADED_BOOLEAN=c,e.POSITIVE_NUMERIC=f,e.RESERVED=n,e.STRING=i,e.getPropertyInfo=p,e.isCustomAttribute=$,e.possibleStandardNames=B})),Sd=Ce((e=>{var n=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=c,e.setStyleProp=f;var i=Du(),o=n(oD()),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function c(p,y){return p.includes("-")?!s.has(p):!!(y&&typeof y.is=="string")}var d={reactCompat:!0};function f(p,y){if(typeof p=="string"){if(!p.trim()){y.style={};return}try{y.style=(0,o.default)(p,d)}catch{y.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),e.canTextBeChildOfNode=function(p){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(p.name)},e.returnFirstArg=function(p){return p}})),Cd=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var n=h0(),i=Sd(),o=["checked","value"],s=["input","select","textarea"],c={reset:!0,submit:!0};function d(p,y){p===void 0&&(p={});var w={},_=!!(p.type&&c[p.type]);for(var C in p){var E=p[C];if((0,n.isCustomAttribute)(C)){w[C]=E;continue}var T=C.toLowerCase(),P=f(T);if(P){var V=(0,n.getPropertyInfo)(P);switch(o.includes(P)&&s.includes(y)&&!_&&(P=f("default"+T)),w[P]=E,V&&V.type){case n.BOOLEAN:w[P]=!0;break;case n.OVERLOADED_BOOLEAN:E===""&&(w[P]=!0);break}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(w[C]=E)}return(0,i.setStyleProp)(p.style,w),w}function f(p){return n.possibleStandardNames[p]}})),m0=Ce((e=>{var n=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var i=Du(),o=n(Cd()),s=Sd(),c={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement};function d(p,y){y===void 0&&(y={});for(var w=[],_=typeof y.replace=="function",C=y.transform||s.returnFirstArg,E=y.library||c,T=E.cloneElement,P=E.createElement,V=E.isValidElement,$=p.length,B=0;B<$;B++){var I=p[B];if(_){var Q=y.replace(I,B);if(V(Q)){$>1&&(Q=T(Q,{key:Q.key||B})),w.push(C(Q,I,B));continue}}if(I.type==="text"){var pe=!I.data.trim().length;if(pe&&I.parent&&!(0,s.canTextBeChildOfNode)(I.parent)||y.trim&&pe)continue;w.push(C(I.data,I,B));continue}var M=I,A={};f(M)?((0,s.setStyleProp)(M.attribs.style,M.attribs),A=M.attribs):M.attribs&&(A=(0,o.default)(M.attribs,M.name));var W=void 0;switch(I.type){case"script":case"style":I.children[0]&&(A.dangerouslySetInnerHTML={__html:I.children[0].data});break;case"tag":I.name==="textarea"&&I.children[0]?A.defaultValue=I.children[0].data:I.children&&I.children.length&&(W=d(I.children,y));break;default:continue}$>1&&(A.key=B),w.push(C(P(I.name,A,W),I,B))}return w.length===1?w[0]:w}function f(p){return s.PRESERVE_CUSTOM_ATTRIBUTES&&p.type==="tag"&&(0,s.isCustomComponent)(p.name,p.attribs)}})),Ed=Ce((e=>{var n=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=d;var i=n(f0());e.htmlToDOM=i.default,e.attributesToProps=n(Cd()).default;var o=n(m0());e.domToReact=o.default;var s=xd();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var c={lowerCaseAttributeNames:!1};function d(f,p){if(typeof f!="string")throw TypeError("First argument must be a string");return f?(0,o.default)((0,i.default)(f,(p==null?void 0:p.htmlparser2)||c),p):[]}})),Td=vh(Ed(),1),Da=Ed(),qm=Td.default.default||Td.default;let Yl;Yl=(e,n)=>{let[i,...o]=n.split("."),s=(e.attribs.class||"").split(" ");return e.tagName===i&&o.every(c=>s.includes(c))},Ww=e=>{var n;return e&&Yl(e,"span.nb")&&e.firstChild instanceof Da.Text&&((n=e.firstChild.nodeValue)==null?void 0:n.includes("__marimo__"))},tm=function(e){var n,i,o;if(e instanceof Da.Element&&e.firstChild instanceof Da.Text&&Yl(e,"span.nb")){let s=e.next;if(s&&s instanceof Da.Text){let c=s.next;if(c&&c instanceof Da.Element&&c.firstChild instanceof Da.Text&&Yl(c,"span.m")){let d=Number.parseInt(c.firstChild.nodeValue||"0",10);if((n=e.firstChild.nodeValue)!=null&&n.includes("__marimo__")){let f=(i=/__marimo__cell_(\w+)_/.exec(e.firstChild.nodeValue))==null?void 0:i[1];if(f&&d)return{kind:"cell",cellId:f,lineNumber:d}}else{let f=(o=/"(.+?)"/.exec(e.firstChild.nodeValue))==null?void 0:o[1];if(f&&d)return{kind:"file",filePath:f,lineNumber:d}}}}}return null},Uh=function(e){let n=[];return qm(e,{replace:i=>{let o=tm(i);if(o)return n.push(o),"dummy"}}),n};function g0(e){return n=>{let i=!1;for(let o of n)o&&(i=e(o)||i);return i}}const Wx=g0(O4),Ux=g0(P4);let Rd,y0,Ro,v0,Do,b0;Rd=Ce(((e,n)=>{var i=typeof Reflect=="object"?Reflect:null,o=i&&typeof i.apply=="function"?i.apply:function(M,A,W){return Function.prototype.apply.call(M,A,W)},s=i&&typeof i.ownKeys=="function"?i.ownKeys:Object.getOwnPropertySymbols?function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:function(M){return Object.getOwnPropertyNames(M)};function c(M){console&&console.warn&&console.warn(M)}var d=Number.isNaN||function(M){return M!==M};function f(){f.init.call(this)}n.exports=f,n.exports.once=I,f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var p=10;function y(M){if(typeof M!="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof M)}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return p},set:function(M){if(typeof M!="number"||M<0||d(M))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+M+".");p=M}}),f.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},f.prototype.setMaxListeners=function(M){if(typeof M!="number"||M<0||d(M))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this};function w(M){return M._maxListeners===void 0?f.defaultMaxListeners:M._maxListeners}f.prototype.getMaxListeners=function(){return w(this)},f.prototype.emit=function(M){for(var A=[],W=1;W0&&(we=A[0]),we instanceof Error)throw we;var J=Error("Unhandled error."+(we?" ("+we.message+")":""));throw J.context=we,J}var be=fe[M];if(be===void 0)return!1;if(typeof be=="function")o(be,this,A);else for(var Se=be.length,Z=V(be,Se),W=0;W0&&J.length>fe&&!J.warned){J.warned=!0;var be=Error("Possible EventEmitter memory leak detected. "+J.length+" "+String(A)+" listeners added. Use emitter.setMaxListeners() to increase limit");be.name="MaxListenersExceededWarning",be.emitter=M,be.type=A,be.count=J.length,c(be)}return M}f.prototype.addListener=function(M,A){return _(this,M,A,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(M,A){return _(this,M,A,!0)};function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function E(M,A,W){var de={fired:!1,wrapFn:void 0,target:M,type:A,listener:W},fe=C.bind(de);return fe.listener=W,de.wrapFn=fe,fe}f.prototype.once=function(M,A){return y(A),this.on(M,E(this,M,A)),this},f.prototype.prependOnceListener=function(M,A){return y(A),this.prependListener(M,E(this,M,A)),this},f.prototype.removeListener=function(M,A){var W,de,fe,we,J;if(y(A),de=this._events,de===void 0||(W=de[M],W===void 0))return this;if(W===A||W.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete de[M],de.removeListener&&this.emit("removeListener",M,W.listener||A));else if(typeof W!="function"){for(fe=-1,we=W.length-1;we>=0;we--)if(W[we]===A||W[we].listener===A){J=W[we].listener,fe=we;break}if(fe<0)return this;fe===0?W.shift():$(W,fe),W.length===1&&(de[M]=W[0]),de.removeListener!==void 0&&this.emit("removeListener",M,J||A)}return this},f.prototype.off=f.prototype.removeListener,f.prototype.removeAllListeners=function(M){var A,W=this._events,de;if(W===void 0)return this;if(W.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):W[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete W[M]),this;if(arguments.length===0){var fe=Object.keys(W),we;for(de=0;de=0;de--)this.removeListener(M,A[de]);return this};function T(M,A,W){var de=M._events;if(de===void 0)return[];var fe=de[A];return fe===void 0?[]:typeof fe=="function"?W?[fe.listener||fe]:[fe]:W?B(fe):V(fe,fe.length)}f.prototype.listeners=function(M){return T(this,M,!0)},f.prototype.rawListeners=function(M){return T(this,M,!1)},f.listenerCount=function(M,A){return typeof M.listenerCount=="function"?M.listenerCount(A):P.call(M,A)},f.prototype.listenerCount=P;function P(M){var A=this._events;if(A!==void 0){var W=A[M];if(typeof W=="function")return 1;if(W!==void 0)return W.length}return 0}f.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function V(M,A){for(var W=Array(A),de=0;de{var n=e&&e.__awaiter||function(s,c,d,f){function p(y){return y instanceof d?y:new d(function(w){w(y)})}return new(d||(d=Promise))(function(y,w){function _(T){try{E(f.next(T))}catch(P){w(P)}}function C(T){try{E(f.throw(T))}catch(P){w(P)}}function E(T){T.done?y(T.value):p(T.value).then(_,C)}E((f=f.apply(s,c||[])).next())})},i=e&&e.__generator||function(s,c){var d={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},f,p,y,w;return w={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function _(E){return function(T){return C([E,T])}}function C(E){if(f)throw TypeError("Generator is already executing.");for(;d;)try{if(f=1,p&&(y=E[0]&2?p.return:E[0]?p.throw||((y=p.return)&&y.call(p),0):p.next)&&!(y=y.call(p,E[1])).done)return y;switch(p=0,y&&(E=[E[0]&2,y.value]),E[0]){case 0:case 1:y=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,p=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(y=d.trys,!(y=y.length>0&&y[y.length-1])&&(E[0]===6||E[0]===2)){d=0;continue}if(E[0]===3&&(!y||E[1]>y[0]&&E[1]{var n=e&&e.__extends||(function(){var o=function(s,c){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var p in f)f.hasOwnProperty(p)&&(d[p]=f[p])},o(s,c)};return function(s,c){o(s,c);function d(){this.constructor=s}s.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.convertJSONToRPCError=e.JSONRPCError=e.ERR_UNKNOWN=e.ERR_MISSIING_ID=e.ERR_TIMEOUT=void 0,e.ERR_TIMEOUT=7777,e.ERR_MISSIING_ID=7878,e.ERR_UNKNOWN=7979;var i=(function(o){n(s,o);function s(c,d,f){var p=this.constructor,y=o.call(this,c)||this;return y.message=c,y.code=d,y.data=f,Object.setPrototypeOf(y,p.prototype),y}return s})(Error);e.JSONRPCError=i,e.convertJSONToRPCError=function(o){if(o.error){var s=o.error,c=s.message,d=s.code,f=s.data;return new i(c,d,f)}return new i("Unknown error",e.ERR_UNKNOWN,o)}})),v0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportRequestManager=void 0;var n=Rd(),i=Ro();e.TransportRequestManager=(function(){function o(){this.pendingRequest={},this.pendingBatchRequest={},this.transportEventChannel=new n.EventEmitter}return o.prototype.addRequest=function(s,c){return this.transportEventChannel.emit("pending",s),s instanceof Array?(this.addBatchReq(s,c),Promise.resolve()):this.addReq(s.internalID,c)},o.prototype.settlePendingRequest=function(s,c){var d=this;s.forEach(function(f){var p=d.pendingRequest[f.internalID];if(delete d.pendingBatchRequest[f.internalID],p!==void 0){if(c){p.reject(c);return}p.resolve(),(f.request.id===null||f.request.id===void 0)&&delete d.pendingRequest[f.internalID]}})},o.prototype.isPendingRequest=function(s){return this.pendingRequest.hasOwnProperty(s)},o.prototype.resolveResponse=function(s,c){c===void 0&&(c=!0);var d=s;try{return d=JSON.parse(s),this.checkJSONRPC(d)===!1?void 0:d instanceof Array?this.resolveBatch(d,c):this.resolveRes(d,c)}catch{var f=new i.JSONRPCError("Bad response format",i.ERR_UNKNOWN,s);return c&&this.transportEventChannel.emit("error",f),f}},o.prototype.addBatchReq=function(s,c){var d=this;return s.forEach(function(f){var p=f.resolve,y=f.reject,w=f.request.internalID;d.pendingBatchRequest[w]=!0,d.pendingRequest[w]={resolve:p,reject:y}}),Promise.resolve()},o.prototype.addReq=function(s,c){var d=this;return new Promise(function(f,p){c!==null&&c&&d.setRequestTimeout(s,c,p),d.pendingRequest[s]={resolve:f,reject:p}})},o.prototype.checkJSONRPC=function(s){var c=[s];return s instanceof Array&&(c=s),c.every(function(d){return d.result!==void 0||d.error!==void 0||d.method!==void 0})},o.prototype.processResult=function(s,c){if(s.error){var d=i.convertJSONToRPCError(s);c.reject(d);return}c.resolve(s.result)},o.prototype.resolveBatch=function(s,c){var d=this,f=s.map(function(p){return d.resolveRes(p,c)}).filter(function(p){return p});if(f.length>0)return f[0]},o.prototype.resolveRes=function(s,c){var d=s.id,f=s.error,p=this.pendingRequest[d];if(p){delete this.pendingRequest[d],this.processResult(s,p),this.transportEventChannel.emit("response",s);return}if(d===void 0&&f===void 0){this.transportEventChannel.emit("notification",s);return}var y;return f&&(y=i.convertJSONToRPCError(s)),c&&f&&y&&this.transportEventChannel.emit("error",y),y},o.prototype.setRequestTimeout=function(s,c,d){var f=this;setTimeout(function(){delete f.pendingRequest[s],d(new i.JSONRPCError("Request timeout request took longer than "+c+" ms to resolve",i.ERR_TIMEOUT))},c)},o})()})),Oa=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Transport=void 0;var n=v0();e.Transport=(function(){function i(){this.transportRequestManager=new n.TransportRequestManager,this.transportRequestManager.transportEventChannel.on("error",function(){})}return i.prototype.subscribe=function(o,s){this.transportRequestManager.transportEventChannel.addListener(o,s)},i.prototype.unsubscribe=function(o,s){if(!o)return this.transportRequestManager.transportEventChannel.removeAllListeners();o&&s&&this.transportRequestManager.transportEventChannel.removeListener(o,s)},i.prototype.parseData=function(o){return o instanceof Array?o.map(function(s){return s.request.request}):o.request},i})()})),Do=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getNotifications=e.getBatchRequests=e.isNotification=void 0,e.isNotification=function(n){return n.request.id===void 0||n.request.id===null},e.getBatchRequests=function(n){return n instanceof Array?n.filter(function(i){return i.request.request.id!=null}).map(function(i){return i.request}):[]},e.getNotifications=function(n){return n instanceof Array?n.filter(function(i){return e.isNotification(i.request)}).map(function(i){return i.request}):e.isNotification(n)?[n]:[]}})),b0=Ce((e=>{var n=e&&e.__extends||(function(){var c=function(d,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var w in y)y.hasOwnProperty(w)&&(p[w]=y[w])},c(d,f)};return function(d,f){c(d,f);function p(){this.constructor=d}d.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}})();Object.defineProperty(e,"__esModule",{value:!0});var i=Oa(),o=Do(),s=Ro();e.default=(function(c){n(d,c);function d(f,p,y){var w=c.call(this)||this;return w.connection=f,w.reqUri=p,w.resUri=y,w}return d.prototype.connect=function(){var f=this;return this.connection.on(this.resUri,function(p){f.transportRequestManager.resolveResponse(p)}),Promise.resolve()},d.prototype.sendData=function(f,p){p===void 0&&(p=null);var y=this.transportRequestManager.addRequest(f,p),w=o.getNotifications(f),_=this.parseData(f);try{return this.connection.emit(this.reqUri,_),this.transportRequestManager.settlePendingRequest(w),y}catch(E){var C=new s.JSONRPCError(E.message,s.ERR_UNKNOWN,E);return this.transportRequestManager.settlePendingRequest(w,C),Promise.reject(C)}},d.prototype.close=function(){this.connection.removeAllListeners()},d})(i.Transport)}));function Kx(e){return e&&DataView.prototype.isPrototypeOf(e)}function Oo(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Dd(e){return typeof e!="string"&&(e=String(e)),e}function Od(e){var n={next:function(){var i=e.shift();return{done:i===void 0,value:i}}};return Rn.iterable&&(n[Symbol.iterator]=function(){return n}),n}function cn(e){this.map={},e instanceof cn?e.forEach(function(n,i){this.append(i,n)},this):Array.isArray(e)?e.forEach(function(n){if(n.length!=2)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+n.length);this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}function Pd(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function w0(e){return new Promise(function(n,i){e.onload=function(){n(e.result)},e.onerror=function(){i(e.error)}})}function Qx(e){var n=new FileReader,i=w0(n);return n.readAsArrayBuffer(e),i}function Gx(e){var n=new FileReader,i=w0(n),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),s=o?o[1]:"utf-8";return n.readAsText(e,s),i}function Jx(e){for(var n=new Uint8Array(e),i=Array(n.length),o=0;o-1?n:e}function Aa(e,n){if(!(this instanceof Aa))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={});var i=n.body;if(e instanceof Aa){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new cn(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!i&&e._bodyInit!=null&&(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new cn(n.headers)),this.method=Xx(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||(function(){if("AbortController"in gn)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),(this.method==="GET"||this.method==="HEAD")&&(n.cache==="no-store"||n.cache==="no-cache")){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function Yx(e){var n=new FormData;return e.trim().split("&").forEach(function(i){if(i){var o=i.split("="),s=o.shift().replace(/\+/g," "),c=o.join("=").replace(/\+/g," ");n.append(decodeURIComponent(s),decodeURIComponent(c))}}),n}function Zx(e){var n=new cn;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(i){return i.indexOf(` +`)===0?i.substr(1,i.length):i}).forEach(function(i){var o=i.split(":"),s=o.shift().trim();if(s){var c=o.join(":").trim();try{n.append(s,c)}catch(d){console.warn("Response "+d.message)}}}),n}function Yr(e,n){if(!(this instanceof Yr))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=n.statusText===void 0?"":""+n.statusText,this.headers=new cn(n.headers),this.url=n.url||"",this._initBody(e)}function k0(e,n){return new Promise(function(i,o){var s=new Aa(e,n);if(s.signal&&s.signal.aborted)return o(new Qi("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}c.onload=function(){var y={statusText:c.statusText,headers:Zx(c.getAllResponseHeaders()||"")};s.url.indexOf("file://")===0&&(c.status<200||c.status>599)?y.status=200:y.status=c.status,y.url="responseURL"in c?c.responseURL:y.headers.get("X-Request-URL");var w="response"in c?c.response:c.responseText;setTimeout(function(){i(new Yr(w,y))},0)},c.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new Qi("Aborted","AbortError"))},0)};function f(y){try{return y===""&&gn.location.href?gn.location.href:y}catch{return y}}if(c.open(s.method,f(s.url),!0),s.credentials==="include"?c.withCredentials=!0:s.credentials==="omit"&&(c.withCredentials=!1),"responseType"in c&&(Rn.blob?c.responseType="blob":Rn.arrayBuffer&&(c.responseType="arraybuffer")),n&&typeof n.headers=="object"&&!(n.headers instanceof cn||gn.Headers&&n.headers instanceof gn.Headers)){var p=[];Object.getOwnPropertyNames(n.headers).forEach(function(y){p.push(Oo(y)),c.setRequestHeader(y,Dd(n.headers[y]))}),s.headers.forEach(function(y,w){p.indexOf(w)===-1&&c.setRequestHeader(w,y)})}else s.headers.forEach(function(y,w){c.setRequestHeader(w,y)});s.signal&&(s.signal.addEventListener("abort",d),c.onreadystatechange=function(){c.readyState===4&&s.signal.removeEventListener("abort",d)}),c.send(s._bodyInit===void 0?null:s._bodyInit)})}let gn,Rn,S0,C0,E0,T0,Qi,R0,D0,O0,P0,qa,M0,L0,N0,I0,A0,q0,Po,Md,Ld,j0,Gi,Mo,Zl,z0,Nd,F0,B0,H0,V0,ec,$0,ja,Id,Vt,tc,W0,U0,K0,Q0,G0,J0,X0,Y0,Z0,eg,tg,ng,rg,ig,ag,og,sg,lg,cg,ug,dg,fg,pg,hg;R0=J2((()=>{gn=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},Rn={searchParams:"URLSearchParams"in gn,iterable:"Symbol"in gn&&"iterator"in Symbol,blob:"FileReader"in gn&&"Blob"in gn&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in gn,arrayBuffer:"ArrayBuffer"in gn},Rn.arrayBuffer&&(S0=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C0=ArrayBuffer.isView||function(e){return e&&S0.indexOf(Object.prototype.toString.call(e))>-1}),cn.prototype.append=function(e,n){e=Oo(e),n=Dd(n);var i=this.map[e];this.map[e]=i?i+", "+n:n},cn.prototype.delete=function(e){delete this.map[Oo(e)]},cn.prototype.get=function(e){return e=Oo(e),this.has(e)?this.map[e]:null},cn.prototype.has=function(e){return this.map.hasOwnProperty(Oo(e))},cn.prototype.set=function(e,n){this.map[Oo(e)]=Dd(n)},cn.prototype.forEach=function(e,n){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(n,this.map[i],i,this)},cn.prototype.keys=function(){var e=[];return this.forEach(function(n,i){e.push(i)}),Od(e)},cn.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),Od(e)},cn.prototype.entries=function(){var e=[];return this.forEach(function(n,i){e.push([i,n])}),Od(e)},Rn.iterable&&(cn.prototype[Symbol.iterator]=cn.prototype.entries),E0=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"],Aa.prototype.clone=function(){return new Aa(this,{body:this._bodyInit})},x0.call(Aa.prototype),x0.call(Yr.prototype),Yr.prototype.clone=function(){return new Yr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new cn(this.headers),url:this.url})},Yr.error=function(){var e=new Yr(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e},T0=[301,302,303,307,308],Yr.redirect=function(e,n){if(T0.indexOf(n)===-1)throw RangeError("Invalid status code");return new Yr(null,{status:n,headers:{location:e}})},Qi=gn.DOMException;try{new Qi}catch{Qi=function(e,n){this.message=e,this.name=n,this.stack=Error(e).stack},Qi.prototype=Object.create(Error.prototype),Qi.prototype.constructor=Qi}k0.polyfill=!0,gn.fetch||(gn.fetch=k0,gn.Headers=cn,gn.Request=Aa,gn.Response=Yr)})),D0=Ce(((e,n)=>{R0(),n.exports=self.fetch.bind(self)})),O0=Ce((e=>{var n=e&&e.__extends||(function(){var w=function(_,C){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,T){E.__proto__=T}||function(E,T){for(var P in T)T.hasOwnProperty(P)&&(E[P]=T[P])},w(_,C)};return function(_,C){w(_,C);function E(){this.constructor=_}_.prototype=C===null?Object.create(C):(E.prototype=C.prototype,new E)}})(),i=e&&e.__awaiter||function(w,_,C,E){function T(P){return P instanceof C?P:new C(function(V){V(P)})}return new(C||(C=Promise))(function(P,V){function $(Q){try{I(E.next(Q))}catch(pe){V(pe)}}function B(Q){try{I(E.throw(Q))}catch(pe){V(pe)}}function I(Q){Q.done?P(Q.value):T(Q.value).then($,B)}I((E=E.apply(w,_||[])).next())})},o=e&&e.__generator||function(w,_){var C={label:0,sent:function(){if(P[0]&1)throw P[1];return P[1]},trys:[],ops:[]},E,T,P,V;return V={next:$(0),throw:$(1),return:$(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function $(I){return function(Q){return B([I,Q])}}function B(I){if(E)throw TypeError("Generator is already executing.");for(;C;)try{if(E=1,T&&(P=I[0]&2?T.return:I[0]?T.throw||((P=T.return)&&P.call(T),0):T.next)&&!(P=P.call(T,I[1])).done)return P;switch(T=0,P&&(I=[I[0]&2,P.value]),I[0]){case 0:case 1:P=I;break;case 4:return C.label++,{value:I[1],done:!1};case 5:C.label++,T=I[1],I=[0];continue;case 7:I=C.ops.pop(),C.trys.pop();continue;default:if(P=C.trys,!(P=P.length>0&&P[P.length-1])&&(I[0]===6||I[0]===2)){C=0;continue}if(I[0]===3&&(!P||I[1]>P[0]&&I[1]M0},1),L0=J2((()=>{qa=null,typeof WebSocket<"u"?qa=WebSocket:typeof MozWebSocket<"u"?qa=MozWebSocket:typeof global<"u"?qa=global.WebSocket||global.MozWebSocket:typeof window<"u"?qa=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(qa=self.WebSocket||self.MozWebSocket),M0=qa})),N0=Ce((e=>{var n=e&&e.__extends||(function(){var y=function(w,_){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,E){C.__proto__=E}||function(C,E){for(var T in E)E.hasOwnProperty(T)&&(C[T]=E[T])},y(w,_)};return function(w,_){y(w,_);function C(){this.constructor=w}w.prototype=_===null?Object.create(_):(C.prototype=_.prototype,new C)}})(),i=e&&e.__awaiter||function(y,w,_,C){function E(T){return T instanceof _?T:new _(function(P){P(T)})}return new(_||(_=Promise))(function(T,P){function V(I){try{B(C.next(I))}catch(Q){P(Q)}}function $(I){try{B(C.throw(I))}catch(Q){P(Q)}}function B(I){I.done?T(I.value):E(I.value).then(V,$)}B((C=C.apply(y,w||[])).next())})},o=e&&e.__generator||function(y,w){var _={label:0,sent:function(){if(T[0]&1)throw T[1];return T[1]},trys:[],ops:[]},C,E,T,P;return P={next:V(0),throw:V(1),return:V(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function V(B){return function(I){return $([B,I])}}function $(B){if(C)throw TypeError("Generator is already executing.");for(;_;)try{if(C=1,E&&(T=B[0]&2?E.return:B[0]?E.throw||((T=E.return)&&T.call(E),0):E.next)&&!(T=T.call(E,B[1])).done)return T;switch(E=0,T&&(B=[B[0]&2,T.value]),B[0]){case 0:case 1:T=B;break;case 4:return _.label++,{value:B[1],done:!1};case 5:_.label++,E=B[1],B=[0];continue;case 7:B=_.ops.pop(),_.trys.pop();continue;default:if(T=_.trys,!(T=T.length>0&&T[T.length-1])&&(B[0]===6||B[0]===2)){_=0;continue}if(B[0]===3&&(!T||B[1]>T[0]&&B[1]{var n=e&&e.__extends||(function(){var f=function(p,y){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,_){w.__proto__=_}||function(w,_){for(var C in _)_.hasOwnProperty(C)&&(w[C]=_[C])},f(p,y)};return function(p,y){f(p,y);function w(){this.constructor=p}p.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}})(),i=e&&e.__awaiter||function(f,p,y,w){function _(C){return C instanceof y?C:new y(function(E){E(C)})}return new(y||(y=Promise))(function(C,E){function T($){try{V(w.next($))}catch(B){E(B)}}function P($){try{V(w.throw($))}catch(B){E(B)}}function V($){$.done?C($.value):_($.value).then(T,P)}V((w=w.apply(f,p||[])).next())})},o=e&&e.__generator||function(f,p){var y={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},w,_,C,E;return E={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function T(V){return function($){return P([V,$])}}function P(V){if(w)throw TypeError("Generator is already executing.");for(;y;)try{if(w=1,_&&(C=V[0]&2?_.return:V[0]?_.throw||((C=_.return)&&C.call(_),0):_.next)&&!(C=C.call(_,V[1])).done)return C;switch(_=0,C&&(V=[V[0]&2,C.value]),V[0]){case 0:case 1:C=V;break;case 4:return y.label++,{value:V[1],done:!1};case 5:y.label++,_=V[1],V=[0];continue;case 7:V=y.ops.pop(),y.trys.pop();continue;default:if(C=y.trys,!(C=C.length>0&&C[C.length-1])&&(V[0]===6||V[0]===2)){y=0;continue}if(V[0]===3&&(!C||V[1]>C[0]&&V[1]{var n=e&&e.__extends||(function(){var d=function(f,p){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var _ in w)w.hasOwnProperty(_)&&(y[_]=w[_])},d(f,p)};return function(f,p){d(f,p);function y(){this.constructor=f}f.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}})(),i=e&&e.__awaiter||function(d,f,p,y){function w(_){return _ instanceof p?_:new p(function(C){C(_)})}return new(p||(p=Promise))(function(_,C){function E(V){try{P(y.next(V))}catch($){C($)}}function T(V){try{P(y.throw(V))}catch($){C($)}}function P(V){V.done?_(V.value):w(V.value).then(E,T)}P((y=y.apply(d,f||[])).next())})},o=e&&e.__generator||function(d,f){var p={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},y,w,_,C;return C={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function E(P){return function(V){return T([P,V])}}function T(P){if(y)throw TypeError("Generator is already executing.");for(;p;)try{if(y=1,w&&(_=P[0]&2?w.return:P[0]?w.throw||((_=w.return)&&_.call(w),0):w.next)&&!(_=_.call(w,P[1])).done)return _;switch(w=0,_&&(P=[P[0]&2,_.value]),P[0]){case 0:case 1:_=P;break;case 4:return p.label++,{value:P[1],done:!1};case 5:p.label++,w=P[1],P=[0];continue;case 7:P=p.ops.pop(),p.trys.pop();continue;default:if(_=p.trys,!(_=_.length>0&&_[_.length-1])&&(P[0]===6||P[0]===2)){p=0;continue}if(P[0]===3&&(!_||P[1]>_[0]&&P[1]<_[3])){p.label=P[1];break}if(P[0]===6&&p.label<_[1]){p.label=_[1],_=P;break}if(_&&p.label<_[2]){p.label=_[2],p.ops.push(P);break}_[2]&&p.ops.pop(),p.trys.pop();continue}P=f.call(d,p)}catch(V){P=[6,V],w=0}finally{y=_=0}if(P[0]&5)throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=Oa(),c=Do();e.default=(function(d){n(f,d);function f(p){var y=d.call(this)||this;return y.messageHandler=function(w){y.transportRequestManager.resolveResponse(JSON.stringify(w.data))},y.uri=p,y.postMessageID="post-message-transport-"+Math.random(),y}return f.prototype.createWindow=function(p){var y=this;return new Promise(function(w,_){var C,E=document.createElement("iframe");E.setAttribute("id",y.postMessageID),E.setAttribute("width","0px"),E.setAttribute("height","0px"),E.setAttribute("style","visiblity:hidden;border:none;outline:none;"),E.addEventListener("load",function(){w(C)}),E.setAttribute("src",p),window.document.body.appendChild(E),C=E.contentWindow})},f.prototype.connect=function(){var p=this,y=/^(http|https):\/\/.*$/;return new Promise(function(w,_){return i(p,void 0,void 0,function(){var C;return o(this,function(E){switch(E.label){case 0:return y.test(this.uri)||_(Error("Bad URI")),C=this,[4,this.createWindow(this.uri)];case 1:return C.frame=E.sent(),window.addEventListener("message",this.messageHandler),w(),[2]}})})})},f.prototype.sendData=function(p,y){return y===void 0&&(y=5e3),i(this,void 0,void 0,function(){var w,_;return o(this,function(C){return w=this.transportRequestManager.addRequest(p,null),_=c.getNotifications(p),this.frame&&(this.frame.postMessage(p.request,"*"),this.transportRequestManager.settlePendingRequest(_)),[2,w]})})},f.prototype.close=function(){var p;(p=document.getElementById(this.postMessageID))==null||p.remove(),window.removeEventListener("message",this.messageHandler)},f})(s.Transport)})),q0=Ce((e=>{var n=e&&e.__awaiter||function(o,s,c,d){function f(p){return p instanceof c?p:new c(function(y){y(p)})}return new(c||(c=Promise))(function(p,y){function w(E){try{C(d.next(E))}catch(T){y(T)}}function _(E){try{C(d.throw(E))}catch(T){y(T)}}function C(E){E.done?p(E.value):f(E.value).then(w,_)}C((d=d.apply(o,s||[])).next())})},i=e&&e.__generator||function(o,s){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},d,f,p,y;return y={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function w(C){return function(E){return _([C,E])}}function _(C){if(d)throw TypeError("Generator is already executing.");for(;c;)try{if(d=1,f&&(p=C[0]&2?f.return:C[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,C[1])).done)return p;switch(f=0,p&&(C=[C[0]&2,p.value]),C[0]){case 0:case 1:p=C;break;case 4:return c.label++,{value:C[1],done:!1};case 5:c.label++,f=C[1],C=[0];continue;case 7:C=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(C[0]===6||C[0]===2)){c=0;continue}if(C[0]===3&&(!p||C[1]>p[0]&&C[1]{var n=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.PostMessageIframeTransport=e.PostMessageWindowTransport=e.JSONRPCError=e.WebSocketTransport=e.EventEmitterTransport=e.HTTPTransport=e.RequestManager=e.Client=void 0,e.RequestManager=n(y0()).default,e.EventEmitterTransport=n(b0()).default,e.HTTPTransport=n(O0()).default,e.WebSocketTransport=n(N0()).default,e.PostMessageWindowTransport=n(I0()).default,e.PostMessageIframeTransport=n(A0()).default;var i=Ro();Object.defineProperty(e,"JSONRPCError",{enumerable:!0,get:function(){return i.JSONRPCError}});var o=n(q0());e.Client=o.default,e.default=o.default})),Po=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function n(p){return p===!0||p===!1}e.boolean=n;function i(p){return typeof p=="string"||p instanceof String}e.string=i;function o(p){return typeof p=="number"||p instanceof Number}e.number=o;function s(p){return p instanceof Error}e.error=s;function c(p){return typeof p=="function"}e.func=c;function d(p){return Array.isArray(p)}e.array=d;function f(p){return d(p)&&p.every(y=>i(y))}e.stringArray=f})),Md=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var n=Po(),i;(function(d){d.ParseError=-32700,d.InvalidRequest=-32600,d.MethodNotFound=-32601,d.InvalidParams=-32602,d.InternalError=-32603,d.jsonrpcReservedErrorRangeStart=-32099,d.serverErrorStart=-32099,d.MessageWriteError=-32099,d.MessageReadError=-32098,d.PendingResponseRejected=-32097,d.ConnectionInactive=-32096,d.ServerNotInitialized=-32002,d.UnknownErrorCode=-32001,d.jsonrpcReservedErrorRangeEnd=-32e3,d.serverErrorEnd=-32e3})(i||(e.ErrorCodes=i={})),e.ResponseError=class gx extends Error{constructor(f,p,y){super(p),this.code=n.number(f)?f:i.UnknownErrorCode,this.data=y,Object.setPrototypeOf(this,gx.prototype)}toJson(){let f={code:this.code,message:this.message};return this.data!==void 0&&(f.data=this.data),f}};var o=class hd{constructor(f){this.kind=f}static is(f){return f===hd.auto||f===hd.byName||f===hd.byPosition}toString(){return this.kind}};e.ParameterStructures=o,o.auto=new o("auto"),o.byPosition=new o("byPosition"),o.byName=new o("byName");var s=class{constructor(d,f){this.method=d,this.numberOfParams=f}get parameterStructures(){return o.auto}};e.AbstractMessageSignature=s,e.RequestType0=class extends s{constructor(d){super(d,0)}},e.RequestType=class extends s{constructor(d,f=o.auto){super(d,1),this._parameterStructures=f}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends s{constructor(d,f=o.auto){super(d,1),this._parameterStructures=f}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends s{constructor(d){super(d,2)}},e.RequestType3=class extends s{constructor(d){super(d,3)}},e.RequestType4=class extends s{constructor(d){super(d,4)}},e.RequestType5=class extends s{constructor(d){super(d,5)}},e.RequestType6=class extends s{constructor(d){super(d,6)}},e.RequestType7=class extends s{constructor(d){super(d,7)}},e.RequestType8=class extends s{constructor(d){super(d,8)}},e.RequestType9=class extends s{constructor(d){super(d,9)}},e.NotificationType=class extends s{constructor(d,f=o.auto){super(d,1),this._parameterStructures=f}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends s{constructor(d){super(d,0)}},e.NotificationType1=class extends s{constructor(d,f=o.auto){super(d,1),this._parameterStructures=f}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends s{constructor(d){super(d,2)}},e.NotificationType3=class extends s{constructor(d){super(d,3)}},e.NotificationType4=class extends s{constructor(d){super(d,4)}},e.NotificationType5=class extends s{constructor(d){super(d,5)}},e.NotificationType6=class extends s{constructor(d){super(d,6)}},e.NotificationType7=class extends s{constructor(d){super(d,7)}},e.NotificationType8=class extends s{constructor(d){super(d,8)}},e.NotificationType9=class extends s{constructor(d){super(d,9)}};var c;(function(d){function f(w){let _=w;return _&&n.string(_.method)&&(n.string(_.id)||n.number(_.id))}d.isRequest=f;function p(w){let _=w;return _&&n.string(_.method)&&w.id===void 0}d.isNotification=p;function y(w){let _=w;return _&&(_.result!==void 0||!!_.error)&&(n.string(_.id)||n.number(_.id)||_.id===null)}d.isResponse=y})(c||(e.Message=c={}))})),Ld=Ce((e=>{var n;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var i;(function(s){s.None=0,s.First=1,s.AsOld=s.First,s.Last=2,s.AsNew=s.Last})(i||(e.Touch=i={}));var o=class{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var s;return(s=this._head)==null?void 0:s.value}get last(){var s;return(s=this._tail)==null?void 0:s.value}has(s){return this._map.has(s)}get(s,c=i.None){let d=this._map.get(s);if(d)return c!==i.None&&this.touch(d,c),d.value}set(s,c,d=i.None){let f=this._map.get(s);if(f)f.value=c,d!==i.None&&this.touch(f,d);else{switch(f={key:s,value:c,next:void 0,previous:void 0},d){case i.None:this.addItemLast(f);break;case i.First:this.addItemFirst(f);break;case i.Last:this.addItemLast(f);break;default:this.addItemLast(f);break}this._map.set(s,f),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){let c=this._map.get(s);if(c)return this._map.delete(s),this.removeItem(c),this._size--,c.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,c){let d=this._state,f=this._head;for(;f;){if(c?s.bind(c)(f.value,f.key,this):s(f.value,f.key,this),this._state!==d)throw Error("LinkedMap got modified during iteration.");f=f.next}}keys(){let s=this._state,c=this._head,d={[Symbol.iterator]:()=>d,next:()=>{if(this._state!==s)throw Error("LinkedMap got modified during iteration.");if(c){let f={value:c.key,done:!1};return c=c.next,f}else return{value:void 0,done:!0}}};return d}values(){let s=this._state,c=this._head,d={[Symbol.iterator]:()=>d,next:()=>{if(this._state!==s)throw Error("LinkedMap got modified during iteration.");if(c){let f={value:c.value,done:!1};return c=c.next,f}else return{value:void 0,done:!0}}};return d}entries(){let s=this._state,c=this._head,d={[Symbol.iterator]:()=>d,next:()=>{if(this._state!==s)throw Error("LinkedMap got modified during iteration.");if(c){let f={value:[c.key,c.value],done:!1};return c=c.next,f}else return{value:void 0,done:!0}}};return d}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let c=this._head,d=this.size;for(;c&&d>s;)this._map.delete(c.key),c=c.next,d--;this._head=c,this._size=d,c&&(c.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{let c=s.next,d=s.previous;if(!c||!d)throw Error("Invalid list");c.previous=d,d.next=c}s.next=void 0,s.previous=void 0,this._state++}touch(s,c){if(!this._head||!this._tail)throw Error("Invalid list");if(!(c!==i.First&&c!==i.Last)){if(c===i.First){if(s===this._head)return;let d=s.next,f=s.previous;s===this._tail?(f.next=void 0,this._tail=f):(d.previous=f,f.next=d),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(c===i.Last){if(s===this._tail)return;let d=s.next,f=s.previous;s===this._head?(d.previous=void 0,this._head=d):(d.previous=f,f.next=d),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){let s=[];return this.forEach((c,d)=>{s.push([d,c])}),s}fromJSON(s){this.clear();for(let[c,d]of s)this.set(c,d)}};e.LinkedMap=o,e.LRUCache=class extends o{constructor(s,c=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,c),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,c=i.AsNew){return super.get(s,c)}peek(s){return super.get(s,i.None)}set(s,c){return super.set(s,c,i.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}})),j0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var n;(function(i){function o(s){return{dispose:s}}i.create=o})(n||(e.Disposable=n={}))})),Gi=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0});var n;function i(){if(n===void 0)throw Error("No runtime abstraction layer installed");return n}(function(o){function s(c){if(c===void 0)throw Error("No runtime abstraction layer provided");n=c}o.install=s})(i||(i={})),e.default=i})),Mo=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var n=Gi(),i;(function(c){let d={dispose(){}};c.None=function(){return d}})(i||(e.Event=i={}));var o=class{add(c,d=null,f){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(c),this._contexts.push(d),Array.isArray(f)&&f.push({dispose:()=>this.remove(c,d)})}remove(c,d=null){if(!this._callbacks)return;let f=!1;for(let p=0,y=this._callbacks.length;p{this._callbacks||(this._callbacks=new o),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(d,f);let y={dispose:()=>{this._callbacks&&(this._callbacks.remove(d,f),y.dispose=yx._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(p)&&p.push(y),y}),this._event}fire(d){this._callbacks&&this._callbacks.invoke.call(this._callbacks,d)}dispose(){this._callbacks&&(this._callbacks=(this._callbacks.dispose(),void 0))}};e.Emitter=s,s._noop=function(){}})),Zl=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var n=Gi(),i=Po(),o=Mo(),s;(function(f){f.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),f.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None});function p(y){let w=y;return w&&(w===f.None||w===f.Cancelled||i.boolean(w.isCancellationRequested)&&!!w.onCancellationRequested)}f.is=p})(s||(e.CancellationToken=s={}));var c=Object.freeze(function(f,p){let y=(0,n.default)().timer.setTimeout(f.bind(p),0);return{dispose(){y.dispose()}}}),d=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?c:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter=(this._emitter.dispose(),void 0))}};e.CancellationTokenSource=class{get token(){return this._token||(this._token=new d),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof d&&this._token.dispose():this._token=s.None}}})),z0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var n=Zl(),i;(function(c){c.Continue=0,c.Cancelled=1})(i||(i={})),e.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(c){if(c.id===null)return;let d=new SharedArrayBuffer(4),f=new Int32Array(d,0,1);f[0]=i.Continue,this.buffers.set(c.id,d),c.$cancellationData=d}async sendCancellation(c,d){let f=this.buffers.get(d);if(f===void 0)return;let p=new Int32Array(f,0,1);Atomics.store(p,0,i.Cancelled)}cleanup(c){this.buffers.delete(c)}dispose(){this.buffers.clear()}};var o=class{constructor(c){this.data=new Int32Array(c,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===i.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{constructor(c){this.token=new o(c)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{constructor(){this.kind="request"}createCancellationTokenSource(c){let d=c.$cancellationData;return d===void 0?new n.CancellationTokenSource:new s(d)}}})),Nd=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var n=Gi();e.Semaphore=class{constructor(i=1){if(i<=0)throw Error("Capacity must be greater than 0");this._capacity=i,this._active=0,this._waiting=[]}lock(i){return new Promise((o,s)=>{this._waiting.push({thunk:i,resolve:o,reject:s}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let i=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("To many thunks active");try{let o=i.thunk();o instanceof Promise?o.then(s=>{this._active--,i.resolve(s),this.runNext()},s=>{this._active--,i.reject(s),this.runNext()}):(this._active--,i.resolve(o),this.runNext())}catch(o){this._active--,i.reject(o),this.runNext()}}}})),F0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var n=Gi(),i=Po(),o=Mo(),s=Nd(),c;(function(p){function y(w){let _=w;return _&&i.func(_.listen)&&i.func(_.dispose)&&i.func(_.onError)&&i.func(_.onClose)&&i.func(_.onPartialMessage)}p.is=y})(c||(e.MessageReader=c={}));var d=class{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(p){this.errorEmitter.fire(this.asError(p))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(p){this.partialMessageEmitter.fire(p)}asError(p){return p instanceof Error?p:Error(`Reader received error. Reason: ${i.string(p.message)?p.message:"unknown"}`)}};e.AbstractMessageReader=d;var f;(function(p){function y(w){let _,C,E=new Map,T,P=new Map;if(w===void 0||typeof w=="string")_=w??"utf-8";else{if(_=w.charset??"utf-8",w.contentDecoder!==void 0&&(C=w.contentDecoder,E.set(C.name,C)),w.contentDecoders!==void 0)for(let V of w.contentDecoders)E.set(V.name,V);if(w.contentTypeDecoder!==void 0&&(T=w.contentTypeDecoder,P.set(T.name,T)),w.contentTypeDecoders!==void 0)for(let V of w.contentTypeDecoders)P.set(V.name,V)}return T===void 0&&(T=(0,n.default)().applicationJson.decoder,P.set(T.name,T)),{charset:_,contentDecoder:C,contentDecoders:E,contentTypeDecoder:T,contentTypeDecoders:P}}p.fromOptions=y})(f||(f={})),e.ReadableStreamMessageReader=class extends d{constructor(p,y){super(),this.readable=p,this.options=f.fromOptions(y),this.buffer=(0,n.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s.Semaphore(1)}set partialMessageTimeout(p){this._partialMessageTimeout=p}get partialMessageTimeout(){return this._partialMessageTimeout}listen(p){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=p;let y=this.readable.onData(w=>{this.onData(w)});return this.readable.onError(w=>this.fireError(w)),this.readable.onClose(()=>this.fireClose()),y}onData(p){try{for(this.buffer.append(p);;){if(this.nextMessageLength===-1){let w=this.buffer.tryReadHeaders(!0);if(!w)return;let _=w.get("content-length");if(!_){this.fireError(Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(w))}`));return}let C=parseInt(_);if(isNaN(C)){this.fireError(Error(`Content-Length value must be a number. Got ${_}`));return}this.nextMessageLength=C}let y=this.buffer.tryReadBody(this.nextMessageLength);if(y===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let w=this.options.contentDecoder===void 0?y:await this.options.contentDecoder.decode(y),_=await this.options.contentTypeDecoder.decode(w,this.options);this.callback(_)}).catch(w=>{this.fireError(w)})}}catch(y){this.fireError(y)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer=(this.partialMessageTimer.dispose(),void 0))}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,n.default)().timer.setTimeout((p,y)=>{this.partialMessageTimer=void 0,p===this.messageToken&&(this.firePartialMessage({messageToken:p,waitingTime:y}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}})),B0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var n=Gi(),i=Po(),o=Nd(),s=Mo(),c="Content-Length: ",d=`\r +`,f;(function(w){function _(C){let E=C;return E&&i.func(E.dispose)&&i.func(E.onClose)&&i.func(E.onError)&&i.func(E.write)}w.is=_})(f||(e.MessageWriter=f={}));var p=class{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(w,_,C){this.errorEmitter.fire([this.asError(w),_,C])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(w){return w instanceof Error?w:Error(`Writer received error. Reason: ${i.string(w.message)?w.message:"unknown"}`)}};e.AbstractMessageWriter=p;var y;(function(w){function _(C){return C===void 0||typeof C=="string"?{charset:C??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}:{charset:C.charset??"utf-8",contentEncoder:C.contentEncoder,contentTypeEncoder:C.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}w.fromOptions=_})(y||(y={})),e.WriteableStreamMessageWriter=class extends p{constructor(w,_){super(),this.writable=w,this.options=y.fromOptions(_),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError(C=>this.fireError(C)),this.writable.onClose(()=>this.fireClose())}async write(w){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(w,this.options).then(_=>this.options.contentEncoder===void 0?_:this.options.contentEncoder.encode(_)).then(_=>{let C=[];return C.push(c,_.byteLength.toString(),d),C.push(d),this.doWrite(w,C,_)},_=>{throw this.fireError(_),_}))}async doWrite(w,_,C){try{return await this.writable.write(_.join(""),"ascii"),this.writable.write(C)}catch(E){return this.handleError(E,w),Promise.reject(E)}}handleError(w,_){this.errorCount++,this.fireError(w,_,this.errorCount)}end(){this.writable.end()}}})),H0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var n=13,i=10,o=`\r +`;e.AbstractMessageBuffer=class{constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){let c=typeof s=="string"?this.fromString(s,this._encoding):s;this._chunks.push(c),this._totalLength+=c.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let c=0,d=0,f=0,p=0;e:for(;dthis._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===s){let f=this._chunks[0];return this._chunks.shift(),this._totalLength-=s,this.asNative(f)}if(this._chunks[0].byteLength>s){let f=this._chunks[0],p=this.asNative(f,s);return this._chunks[0]=f.slice(s),this._totalLength-=s,p}let c=this.allocNative(s),d=0;for(;s>0;){let f=this._chunks[0];if(f.byteLength>s){let p=f.slice(0,s);c.set(p,d),d+=s,this._chunks[0]=f.slice(s),this._totalLength-=s,s-=s}else c.set(f,d),d+=f.byteLength,this._chunks.shift(),this._totalLength-=f.byteLength,s-=f.byteLength}return c}}})),V0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var n=Gi(),i=Po(),o=Md(),s=Ld(),c=Mo(),d=Zl(),f;(function(J){J.type=new o.NotificationType("$/cancelRequest")})(f||(f={}));var p;(function(J){function be(Se){return typeof Se=="string"||typeof Se=="number"}J.is=be})(p||(e.ProgressToken=p={}));var y;(function(J){J.type=new o.NotificationType("$/progress")})(y||(y={})),e.ProgressType=class{constructor(){}};var w;(function(J){function be(Se){return i.func(Se)}J.is=be})(w||(w={})),e.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var _;(function(J){J[J.Off=0]="Off",J[J.Messages=1]="Messages",J[J.Compact=2]="Compact",J[J.Verbose=3]="Verbose"})(_||(e.Trace=_={}));var C;(function(J){J.Off="off",J.Messages="messages",J.Compact="compact",J.Verbose="verbose"})(C||(e.TraceValues=C={})),(function(J){function be(Z){if(!i.string(Z))return J.Off;switch(Z=Z.toLowerCase(),Z){case"off":return J.Off;case"messages":return J.Messages;case"compact":return J.Compact;case"verbose":return J.Verbose;default:return J.Off}}J.fromString=be;function Se(Z){switch(Z){case J.Off:return"off";case J.Messages:return"messages";case J.Compact:return"compact";case J.Verbose:return"verbose";default:return"off"}}J.toString=Se})(_||(e.Trace=_={}));var E;(function(J){J.Text="text",J.JSON="json"})(E||(e.TraceFormat=E={})),(function(J){function be(Se){return i.string(Se)?(Se=Se.toLowerCase(),Se==="json"?J.JSON:J.Text):J.Text}J.fromString=be})(E||(e.TraceFormat=E={}));var T;(function(J){J.type=new o.NotificationType("$/setTrace")})(T||(e.SetTraceNotification=T={}));var P;(function(J){J.type=new o.NotificationType("$/logTrace")})(P||(e.LogTraceNotification=P={}));var V;(function(J){J[J.Closed=1]="Closed",J[J.Disposed=2]="Disposed",J[J.AlreadyListening=3]="AlreadyListening"})(V||(e.ConnectionErrors=V={}));var $=class vx extends Error{constructor(be,Se){super(Se),this.code=be,Object.setPrototypeOf(this,vx.prototype)}};e.ConnectionError=$;var B;(function(J){function be(Se){let Z=Se;return Z&&i.func(Z.cancelUndispatched)}J.is=be})(B||(e.ConnectionStrategy=B={}));var I;(function(J){function be(Se){let Z=Se;return Z&&(Z.kind===void 0||Z.kind==="id")&&i.func(Z.createCancellationTokenSource)&&(Z.dispose===void 0||i.func(Z.dispose))}J.is=be})(I||(e.IdCancellationReceiverStrategy=I={}));var Q;(function(J){function be(Se){let Z=Se;return Z&&Z.kind==="request"&&i.func(Z.createCancellationTokenSource)&&(Z.dispose===void 0||i.func(Z.dispose))}J.is=be})(Q||(e.RequestCancellationReceiverStrategy=Q={}));var pe;(function(J){J.Message=Object.freeze({createCancellationTokenSource(Se){return new d.CancellationTokenSource}});function be(Se){return I.is(Se)||Q.is(Se)}J.is=be})(pe||(e.CancellationReceiverStrategy=pe={}));var M;(function(J){J.Message=Object.freeze({sendCancellation(Se,Z){return Se.sendNotification(f.type,{id:Z})},cleanup(Se){}});function be(Se){let Z=Se;return Z&&i.func(Z.sendCancellation)&&i.func(Z.cleanup)}J.is=be})(M||(e.CancellationSenderStrategy=M={}));var A;(function(J){J.Message=Object.freeze({receiver:pe.Message,sender:M.Message});function be(Se){let Z=Se;return Z&&pe.is(Z.receiver)&&M.is(Z.sender)}J.is=be})(A||(e.CancellationStrategy=A={}));var W;(function(J){function be(Se){let Z=Se;return Z&&i.func(Z.handleMessage)}J.is=be})(W||(e.MessageStrategy=W={}));var de;(function(J){function be(Se){let Z=Se;return Z&&(A.is(Z.cancellationStrategy)||B.is(Z.connectionStrategy)||W.is(Z.messageStrategy))}J.is=be})(de||(e.ConnectionOptions=de={}));var fe;(function(J){J[J.New=1]="New",J[J.Listening=2]="Listening",J[J.Closed=3]="Closed",J[J.Disposed=4]="Disposed"})(fe||(fe={}));function we(J,be,Se,Z){let re=Se===void 0?e.NullLogger:Se,se=0,K=0,Le=0,Fe,et=new Map,Be,je=new Map,Pe=new Map,Ae,ft=new s.LinkedMap,mt=new Map,Dn=new Set,un=new Map,We=_.Off,tn=E.Text,wt,vn=fe.New,vr=new c.Emitter,pt=new c.Emitter,zr=new c.Emitter,nn=new c.Emitter,hi=new c.Emitter,On=Z&&Z.cancellationStrategy?Z.cancellationStrategy:A.Message;function br(j){if(j===null)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+j.toString()}function Pn(j){return j===null?"res-unknown-"+(++Le).toString():"res-"+j.toString()}function dn(){return"not-"+(++K).toString()}function ta(j,te){o.Message.isRequest(te)?j.set(br(te.id),te):o.Message.isResponse(te)?j.set(Pn(te.id),te):j.set(dn(),te)}function mi(j){}function Ut(){return vn===fe.Listening}function gi(){return vn===fe.Closed}function fn(){return vn===fe.Disposed}function ti(){(vn===fe.New||vn===fe.Listening)&&(vn=fe.Closed,pt.fire(void 0))}function zt(j){vr.fire([j,void 0,void 0])}function Fr(j){vr.fire(j)}J.onClose(ti),J.onError(zt),be.onClose(ti),be.onError(Fr);function _t(){Ae||ft.size===0||(Ae=(0,n.default)().timer.setImmediate(()=>{Ae=void 0,na()}))}function yi(j){o.Message.isRequest(j)?Jt(j):o.Message.isNotification(j)?gt(j):o.Message.isResponse(j)?Ge(j):xt(j)}function na(){if(ft.size===0)return;let j=ft.shift();try{let te=Z==null?void 0:Z.messageStrategy;W.is(te)?te.handleMessage(j,yi):yi(j)}finally{_t()}}let wr=j=>{try{if(o.Message.isNotification(j)&&j.method===f.type.method){let te=j.params.id,ve=br(te),Ee=ft.get(ve);if(o.Message.isRequest(Ee)){let Ve=Z==null?void 0:Z.connectionStrategy,ot=Ve&&Ve.cancelUndispatched?Ve.cancelUndispatched(Ee,mi):void 0;if(ot&&(ot.error!==void 0||ot.result!==void 0)){ft.delete(ve),un.delete(te),ot.id=Ee.id,St(ot,j.method,Date.now()),be.write(ot).catch(()=>re.error("Sending response for canceled message failed."));return}}let He=un.get(te);if(He!==void 0){He.cancel(),Mn(j);return}else Dn.add(te)}ta(ft,j)}finally{_t()}};function Jt(j){if(fn())return;function te(Ze,Lt,rt){let ut={jsonrpc:"2.0",id:j.id};Ze instanceof o.ResponseError?ut.error=Ze.toJson():ut.result=Ze===void 0?null:Ze,St(ut,Lt,rt),be.write(ut).catch(()=>re.error("Sending response failed."))}function ve(Ze,Lt,rt){let ut={jsonrpc:"2.0",id:j.id,error:Ze.toJson()};St(ut,Lt,rt),be.write(ut).catch(()=>re.error("Sending response failed."))}function Ee(Ze,Lt,rt){Ze===void 0&&(Ze=null);let ut={jsonrpc:"2.0",id:j.id,result:Ze};St(ut,Lt,rt),be.write(ut).catch(()=>re.error("Sending response failed."))}ir(j);let He=et.get(j.method),Ve,ot;He&&(Ve=He.type,ot=He.handler);let Mt=Date.now();if(ot||Fe){let Ze=j.id??String(Date.now()),Lt=I.is(On.receiver)?On.receiver.createCancellationTokenSource(Ze):On.receiver.createCancellationTokenSource(j);j.id!==null&&Dn.has(j.id)&&Lt.cancel(),j.id!==null&&un.set(Ze,Lt);try{let rt;if(ot)if(j.params===void 0){if(Ve!==void 0&&Ve.numberOfParams!==0){ve(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${j.method} defines ${Ve.numberOfParams} params but received none.`),j.method,Mt);return}rt=ot(Lt.token)}else if(Array.isArray(j.params)){if(Ve!==void 0&&Ve.parameterStructures===o.ParameterStructures.byName){ve(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${j.method} defines parameters by name but received parameters by position`),j.method,Mt);return}rt=ot(...j.params,Lt.token)}else{if(Ve!==void 0&&Ve.parameterStructures===o.ParameterStructures.byPosition){ve(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${j.method} defines parameters by position but received parameters by name`),j.method,Mt);return}rt=ot(j.params,Lt.token)}else Fe&&(rt=Fe(j.method,j.params,Lt.token));let ut=rt;rt?ut.then?ut.then(wn=>{un.delete(Ze),te(wn,j.method,Mt)},wn=>{un.delete(Ze),wn instanceof o.ResponseError?ve(wn,j.method,Mt):wn&&i.string(wn.message)?ve(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${j.method} failed with message: ${wn.message}`),j.method,Mt):ve(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${j.method} failed unexpectedly without providing any details.`),j.method,Mt)}):(un.delete(Ze),te(rt,j.method,Mt)):(un.delete(Ze),Ee(rt,j.method,Mt))}catch(rt){un.delete(Ze),rt instanceof o.ResponseError?te(rt,j.method,Mt):rt&&i.string(rt.message)?ve(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${j.method} failed with message: ${rt.message}`),j.method,Mt):ve(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${j.method} failed unexpectedly without providing any details.`),j.method,Mt)}}else ve(new o.ResponseError(o.ErrorCodes.MethodNotFound,`Unhandled method ${j.method}`),j.method,Mt)}function Ge(j){if(!fn())if(j.id===null)j.error?re.error(`Received response message without id: Error is: +${JSON.stringify(j.error,void 0,4)}`):re.error("Received response message without id. No further error information provided.");else{let te=j.id,ve=mt.get(te);if(Br(j,ve),ve!==void 0){mt.delete(te);try{if(j.error){let Ee=j.error;ve.reject(new o.ResponseError(Ee.code,Ee.message,Ee.data))}else if(j.result!==void 0)ve.resolve(j.result);else throw Error("Should never happen.")}catch(Ee){Ee.message?re.error(`Response handler '${ve.method}' failed with message: ${Ee.message}`):re.error(`Response handler '${ve.method}' failed unexpectedly.`)}}}}function gt(j){if(fn())return;let te,ve;if(j.method===f.type.method){let Ee=j.params.id;Dn.delete(Ee),Mn(j);return}else{let Ee=je.get(j.method);Ee&&(ve=Ee.handler,te=Ee.type)}if(ve||Be)try{if(Mn(j),ve)if(j.params===void 0)te!==void 0&&te.numberOfParams!==0&&te.parameterStructures!==o.ParameterStructures.byName&&re.error(`Notification ${j.method} defines ${te.numberOfParams} params but received none.`),ve();else if(Array.isArray(j.params)){let Ee=j.params;j.method===y.type.method&&Ee.length===2&&p.is(Ee[0])?ve({token:Ee[0],value:Ee[1]}):(te!==void 0&&(te.parameterStructures===o.ParameterStructures.byName&&re.error(`Notification ${j.method} defines parameters by name but received parameters by position`),te.numberOfParams!==j.params.length&&re.error(`Notification ${j.method} defines ${te.numberOfParams} params but received ${Ee.length} arguments`)),ve(...Ee))}else te!==void 0&&te.parameterStructures===o.ParameterStructures.byPosition&&re.error(`Notification ${j.method} defines parameters by position but received parameters by name`),ve(j.params);else Be&&Be(j.method,j.params)}catch(Ee){Ee.message?re.error(`Notification handler '${j.method}' failed with message: ${Ee.message}`):re.error(`Notification handler '${j.method}' failed unexpectedly.`)}else zr.fire(j)}function xt(j){if(!j){re.error("Received empty message.");return}re.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(j,null,4)}`);let te=j;if(i.string(te.id)||i.number(te.id)){let ve=te.id,Ee=mt.get(ve);Ee&&Ee.reject(Error("The received response has neither a result nor an error property."))}}function kt(j){if(j!=null)switch(We){case _.Verbose:return JSON.stringify(j,null,4);case _.Compact:return JSON.stringify(j);default:return}}function jn(j){if(!(We===_.Off||!wt))if(tn===E.Text){let te;(We===_.Verbose||We===_.Compact)&&j.params&&(te=`Params: ${kt(j.params)} + +`),wt.log(`Sending request '${j.method} - (${j.id})'.`,te)}else bn("send-request",j)}function _r(j){if(!(We===_.Off||!wt))if(tn===E.Text){let te;(We===_.Verbose||We===_.Compact)&&(te=j.params?`Params: ${kt(j.params)} + +`:`No parameters provided. + +`),wt.log(`Sending notification '${j.method}'.`,te)}else bn("send-notification",j)}function St(j,te,ve){if(!(We===_.Off||!wt))if(tn===E.Text){let Ee;(We===_.Verbose||We===_.Compact)&&(j.error&&j.error.data?Ee=`Error data: ${kt(j.error.data)} + +`:j.result?Ee=`Result: ${kt(j.result)} + +`:j.error===void 0&&(Ee=`No result returned. + +`)),wt.log(`Sending response '${te} - (${j.id})'. Processing request took ${Date.now()-ve}ms`,Ee)}else bn("send-response",j)}function ir(j){if(!(We===_.Off||!wt))if(tn===E.Text){let te;(We===_.Verbose||We===_.Compact)&&j.params&&(te=`Params: ${kt(j.params)} + +`),wt.log(`Received request '${j.method} - (${j.id})'.`,te)}else bn("receive-request",j)}function Mn(j){if(!(We===_.Off||!wt||j.method===P.type.method))if(tn===E.Text){let te;(We===_.Verbose||We===_.Compact)&&(te=j.params?`Params: ${kt(j.params)} + +`:`No parameters provided. + +`),wt.log(`Received notification '${j.method}'.`,te)}else bn("receive-notification",j)}function Br(j,te){if(!(We===_.Off||!wt))if(tn===E.Text){let ve;if((We===_.Verbose||We===_.Compact)&&(j.error&&j.error.data?ve=`Error data: ${kt(j.error.data)} + +`:j.result?ve=`Result: ${kt(j.result)} + +`:j.error===void 0&&(ve=`No result returned. + +`)),te){let Ee=j.error?` Request failed: ${j.error.message} (${j.error.code}).`:"";wt.log(`Received response '${te.method} - (${j.id})' in ${Date.now()-te.timerStart}ms.${Ee}`,ve)}else wt.log(`Received response ${j.id} without active response promise.`,ve)}else bn("receive-response",j)}function bn(j,te){if(!wt||We===_.Off)return;let ve={isLSPMessage:!0,type:j,message:te,timestamp:Date.now()};wt.log(ve)}function ar(){if(gi())throw new $(V.Closed,"Connection is closed.");if(fn())throw new $(V.Disposed,"Connection is disposed.")}function vi(){if(Ut())throw new $(V.AlreadyListening,"Connection is already listening")}function ni(){if(!Ut())throw Error("Call listen() first.")}function Ln(j){return j===void 0?null:j}function bi(j){if(j!==null)return j}function zn(j){return j!=null&&!Array.isArray(j)&&typeof j=="object"}function or(j,te){switch(j){case o.ParameterStructures.auto:return zn(te)?bi(te):[Ln(te)];case o.ParameterStructures.byName:if(!zn(te))throw Error("Received parameters by name but param is not an object literal.");return bi(te);case o.ParameterStructures.byPosition:return[Ln(te)];default:throw Error(`Unknown parameter structure ${j.toString()}`)}}function L(j,te){let ve,Ee=j.numberOfParams;switch(Ee){case 0:ve=void 0;break;case 1:ve=or(j.parameterStructures,te[0]);break;default:ve=[];for(let He=0;He{ar();let ve,Ee;if(i.string(j)){ve=j;let Ve=te[0],ot=0,Mt=o.ParameterStructures.auto;o.ParameterStructures.is(Ve)&&(ot=1,Mt=Ve);let Ze=te.length,Lt=Ze-ot;switch(Lt){case 0:Ee=void 0;break;case 1:Ee=or(Mt,te[ot]);break;default:if(Mt===o.ParameterStructures.byName)throw Error(`Received ${Lt} parameters for 'by Name' notification parameter structure.`);Ee=te.slice(ot,Ze).map(rt=>Ln(rt));break}}else{let Ve=te;ve=j.method,Ee=L(j,Ve)}let He={jsonrpc:"2.0",method:ve,params:Ee};return _r(He),be.write(He).catch(Ve=>{throw re.error("Sending notification failed."),Ve})},onNotification:(j,te)=>{ar();let ve;return i.func(j)?Be=j:te&&(i.string(j)?(ve=j,je.set(j,{type:void 0,handler:te})):(ve=j.method,je.set(j.method,{type:j,handler:te}))),{dispose:()=>{ve===void 0?Be=void 0:je.delete(ve)}}},onProgress:(j,te,ve)=>{if(Pe.has(te))throw Error(`Progress handler for token ${te} already registered`);return Pe.set(te,ve),{dispose:()=>{Pe.delete(te)}}},sendProgress:(j,te,ve)=>Ye.sendNotification(y.type,{token:te,value:ve}),onUnhandledProgress:nn.event,sendRequest:(j,...te)=>{ar(),ni();let ve,Ee,He;if(i.string(j)){ve=j;let Ze=te[0],Lt=te[te.length-1],rt=0,ut=o.ParameterStructures.auto;o.ParameterStructures.is(Ze)&&(rt=1,ut=Ze);let wn=te.length;d.CancellationToken.is(Lt)&&(--wn,He=Lt);let sr=wn-rt;switch(sr){case 0:Ee=void 0;break;case 1:Ee=or(ut,te[rt]);break;default:if(ut===o.ParameterStructures.byName)throw Error(`Received ${sr} parameters for 'by Name' request parameter structure.`);Ee=te.slice(rt,wn).map(ri=>Ln(ri));break}}else{let Ze=te;ve=j.method,Ee=L(j,Ze);let Lt=j.numberOfParams;He=d.CancellationToken.is(Ze[Lt])?Ze[Lt]:void 0}let Ve=se++,ot;He&&(ot=He.onCancellationRequested(()=>{let Ze=On.sender.sendCancellation(Ye,Ve);return Ze===void 0?(re.log(`Received no promise from cancellation strategy when cancelling id ${Ve}`),Promise.resolve()):Ze.catch(()=>{re.log(`Sending cancellation messages for id ${Ve} failed`)})}));let Mt={jsonrpc:"2.0",id:Ve,method:ve,params:Ee};return jn(Mt),typeof On.sender.enableCancellation=="function"&&On.sender.enableCancellation(Mt),new Promise(async(Ze,Lt)=>{let rt={method:ve,timerStart:Date.now(),resolve:ut=>{Ze(ut),On.sender.cleanup(Ve),ot==null||ot.dispose()},reject:ut=>{Lt(ut),On.sender.cleanup(Ve),ot==null||ot.dispose()}};try{await be.write(Mt),mt.set(Ve,rt)}catch(ut){throw re.error("Sending request failed."),rt.reject(new o.ResponseError(o.ErrorCodes.MessageWriteError,ut.message?ut.message:"Unknown reason")),ut}})},onRequest:(j,te)=>{ar();let ve=null;return w.is(j)?(ve=void 0,Fe=j):i.string(j)?(ve=null,te!==void 0&&(ve=j,et.set(j,{handler:te,type:void 0}))):te!==void 0&&(ve=j.method,et.set(j.method,{type:j,handler:te})),{dispose:()=>{ve!==null&&(ve===void 0?Fe=void 0:et.delete(ve))}}},hasPendingResponse:()=>mt.size>0,trace:async(j,te,ve)=>{let Ee=!1,He=E.Text;ve!==void 0&&(i.boolean(ve)?Ee=ve:(Ee=ve.sendNotification||!1,He=ve.traceFormat||E.Text)),We=j,tn=He,wt=We===_.Off?void 0:te,Ee&&!gi()&&!fn()&&await Ye.sendNotification(T.type,{value:_.toString(j)})},onError:vr.event,onClose:pt.event,onUnhandledNotification:zr.event,onDispose:hi.event,end:()=>{be.end()},dispose:()=>{if(fn())return;vn=fe.Disposed,hi.fire(void 0);let j=new o.ResponseError(o.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let te of mt.values())te.reject(j);mt=new Map,un=new Map,Dn=new Set,ft=new s.LinkedMap,i.func(be.dispose)&&be.dispose(),i.func(J.dispose)&&J.dispose()},listen:()=>{ar(),vi(),vn=fe.Listening,J.listen(wr)},inspect:()=>{(0,n.default)().console.log("inspect")}};return Ye.onNotification(P.type,j=>{if(We===_.Off||!wt)return;let te=We===_.Verbose||We===_.Compact;wt.log(j.message,te?j.verbose:void 0)}),Ye.onNotification(y.type,j=>{let te=Pe.get(j.token);te?te(j.value):nn.fire(j)}),Ye}e.createMessageConnection=we})),ec=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var n=Md();Object.defineProperty(e,"Message",{enumerable:!0,get:function(){return n.Message}}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:function(){return n.RequestType}}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:function(){return n.RequestType0}}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:function(){return n.RequestType1}}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:function(){return n.RequestType2}}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:function(){return n.RequestType3}}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:function(){return n.RequestType4}}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:function(){return n.RequestType5}}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:function(){return n.RequestType6}}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:function(){return n.RequestType7}}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:function(){return n.RequestType8}}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:function(){return n.RequestType9}}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:function(){return n.ResponseError}}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:function(){return n.ErrorCodes}}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:function(){return n.NotificationType}}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:function(){return n.NotificationType0}}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:function(){return n.NotificationType1}}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:function(){return n.NotificationType2}}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:function(){return n.NotificationType3}}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:function(){return n.NotificationType4}}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:function(){return n.NotificationType5}}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:function(){return n.NotificationType6}}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:function(){return n.NotificationType7}}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:function(){return n.NotificationType8}}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:function(){return n.NotificationType9}}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:function(){return n.ParameterStructures}});var i=Ld();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(e,"Touch",{enumerable:!0,get:function(){return i.Touch}});var o=j0();Object.defineProperty(e,"Disposable",{enumerable:!0,get:function(){return o.Disposable}});var s=Mo();Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:function(){return s.Emitter}});var c=Zl();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:function(){return c.CancellationTokenSource}}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:function(){return c.CancellationToken}});var d=z0();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return d.SharedArraySenderStrategy}}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return d.SharedArrayReceiverStrategy}});var f=F0();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:function(){return f.MessageReader}}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:function(){return f.AbstractMessageReader}}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return f.ReadableStreamMessageReader}});var p=B0();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:function(){return p.MessageWriter}}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:function(){return p.AbstractMessageWriter}}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return p.WriteableStreamMessageWriter}});var y=H0();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:function(){return y.AbstractMessageBuffer}});var w=V0();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:function(){return w.ConnectionStrategy}}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:function(){return w.ConnectionOptions}}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:function(){return w.NullLogger}}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:function(){return w.createMessageConnection}}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:function(){return w.ProgressToken}}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:function(){return w.ProgressType}}),Object.defineProperty(e,"Trace",{enumerable:!0,get:function(){return w.Trace}}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:function(){return w.TraceValues}}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:function(){return w.TraceFormat}}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:function(){return w.SetTraceNotification}}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:function(){return w.LogTraceNotification}}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:function(){return w.ConnectionErrors}}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:function(){return w.ConnectionError}}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return w.CancellationReceiverStrategy}}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:function(){return w.CancellationSenderStrategy}}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:function(){return w.CancellationStrategy}}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:function(){return w.MessageStrategy}}),e.RAL=Gi().default})),$0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0});var n=ec(),i=class bx extends n.AbstractMessageBuffer{constructor(y="utf-8"){super(y),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return bx.emptyBuffer}fromString(y,w){return new TextEncoder().encode(y)}toString(y,w){return w==="ascii"?this.asciiDecoder.decode(y):new TextDecoder(w).decode(y)}asNative(y,w){return w===void 0?y:y.slice(0,w)}allocNative(y){return new Uint8Array(y)}};i.emptyBuffer=new Uint8Array;var o=class{constructor(p){this.socket=p,this._onData=new n.Emitter,this._messageListener=y=>{y.data.arrayBuffer().then(w=>{this._onData.fire(new Uint8Array(w))},()=>{(0,n.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(p){return this.socket.addEventListener("close",p),n.Disposable.create(()=>this.socket.removeEventListener("close",p))}onError(p){return this.socket.addEventListener("error",p),n.Disposable.create(()=>this.socket.removeEventListener("error",p))}onEnd(p){return this.socket.addEventListener("end",p),n.Disposable.create(()=>this.socket.removeEventListener("end",p))}onData(p){return this._onData.event(p)}},s=class{constructor(p){this.socket=p}onClose(p){return this.socket.addEventListener("close",p),n.Disposable.create(()=>this.socket.removeEventListener("close",p))}onError(p){return this.socket.addEventListener("error",p),n.Disposable.create(()=>this.socket.removeEventListener("error",p))}onEnd(p){return this.socket.addEventListener("end",p),n.Disposable.create(()=>this.socket.removeEventListener("end",p))}write(p,y){if(typeof p=="string"){if(y!==void 0&&y!=="utf-8")throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${y}`);this.socket.send(p)}else this.socket.send(p);return Promise.resolve()}end(){this.socket.close()}},c=new TextEncoder,d=Object.freeze({messageBuffer:Object.freeze({create:p=>new i(p)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(p,y)=>{if(y.charset!=="utf-8")throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${y.charset}`);return Promise.resolve(c.encode(JSON.stringify(p,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(p,y)=>{if(!(p instanceof Uint8Array))throw Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(y.charset).decode(p)))}})}),stream:Object.freeze({asReadableStream:p=>new o(p),asWritableStream:p=>new s(p)}),console,timer:Object.freeze({setTimeout(p,y,...w){let _=setTimeout(p,y,...w);return{dispose:()=>clearTimeout(_)}},setImmediate(p,...y){let w=setTimeout(p,0,...y);return{dispose:()=>clearTimeout(w)}},setInterval(p,y,...w){let _=setInterval(p,y,...w);return{dispose:()=>clearInterval(_)}}})});function f(){return d}(function(p){function y(){n.RAL.install(d)}p.install=y})(f||(f={})),e.default=f})),ja=Ce((e=>{var n=e&&e.__createBinding||(Object.create?(function(c,d,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(d,f);(!y||("get"in y?!d.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(c,p,y)}):(function(c,d,f,p){p===void 0&&(p=f),c[p]=d[f]})),i=e&&e.__exportStar||function(c,d){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&n(d,c,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,$0().default.install();var o=ec();i(ec(),e),e.BrowserMessageReader=class extends o.AbstractMessageReader{constructor(c){super(),this._onData=new o.Emitter,this._messageListener=d=>{this._onData.fire(d.data)},c.addEventListener("error",d=>this.fireError(d)),c.onmessage=this._messageListener}listen(c){return this._onData.event(c)}},e.BrowserMessageWriter=class extends o.AbstractMessageWriter{constructor(c){super(),this.port=c,this.errorCount=0,c.addEventListener("error",d=>this.fireError(d))}write(c){try{return this.port.postMessage(c),Promise.resolve()}catch(d){return this.handleError(d,c),Promise.reject(d)}}handleError(c,d){this.errorCount++,this.fireError(c,d,this.errorCount)}end(){}};function s(c,d,f,p){return f===void 0&&(f=o.NullLogger),o.ConnectionStrategy.is(p)&&(p={connectionStrategy:p}),(0,o.createMessageConnection)(c,d,f,p)}e.createMessageConnection=s})),Id=Ce(((e,n)=>{n.exports=ja()})),Vt=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var n=ja(),i;(function(o){o.clientToServer="clientToServer",o.serverToClient="serverToClient",o.both="both"})(i||(e.MessageDirection=i={})),e.RegistrationType=class{constructor(o){this.method=o}},e.ProtocolRequestType0=class extends n.RequestType0{constructor(o){super(o)}},e.ProtocolRequestType=class extends n.RequestType{constructor(o){super(o,n.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends n.NotificationType0{constructor(o){super(o)}},e.ProtocolNotificationType=class extends n.NotificationType{constructor(o){super(o,n.ParameterStructures.byName)}}})),tc=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function n(w){return w===!0||w===!1}e.boolean=n;function i(w){return typeof w=="string"||w instanceof String}e.string=i;function o(w){return typeof w=="number"||w instanceof Number}e.number=o;function s(w){return w instanceof Error}e.error=s;function c(w){return typeof w=="function"}e.func=c;function d(w){return Array.isArray(w)}e.array=d;function f(w){return d(w)&&w.every(_=>i(_))}e.stringArray=f;function p(w,_){return Array.isArray(w)&&w.every(_)}e.typedArray=p;function y(w){return typeof w=="object"&&!!w}e.objectLiteral=y})),W0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var n=Vt(),i;(function(o){o.method="textDocument/implementation",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method)})(i||(e.ImplementationRequest=i={}))})),U0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var n=Vt(),i;(function(o){o.method="textDocument/typeDefinition",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method)})(i||(e.TypeDefinitionRequest=i={}))})),K0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var n=Vt(),i;(function(s){s.method="workspace/workspaceFolders",s.messageDirection=n.MessageDirection.serverToClient,s.type=new n.ProtocolRequestType0(s.method)})(i||(e.WorkspaceFoldersRequest=i={}));var o;(function(s){s.method="workspace/didChangeWorkspaceFolders",s.messageDirection=n.MessageDirection.clientToServer,s.type=new n.ProtocolNotificationType(s.method)})(o||(e.DidChangeWorkspaceFoldersNotification=o={}))})),Q0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var n=Vt(),i;(function(o){o.method="workspace/configuration",o.messageDirection=n.MessageDirection.serverToClient,o.type=new n.ProtocolRequestType(o.method)})(i||(e.ConfigurationRequest=i={}))})),G0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var n=Vt(),i;(function(s){s.method="textDocument/documentColor",s.messageDirection=n.MessageDirection.clientToServer,s.type=new n.ProtocolRequestType(s.method)})(i||(e.DocumentColorRequest=i={}));var o;(function(s){s.method="textDocument/colorPresentation",s.messageDirection=n.MessageDirection.clientToServer,s.type=new n.ProtocolRequestType(s.method)})(o||(e.ColorPresentationRequest=o={}))})),J0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var n=Vt(),i;(function(s){s.method="textDocument/foldingRange",s.messageDirection=n.MessageDirection.clientToServer,s.type=new n.ProtocolRequestType(s.method)})(i||(e.FoldingRangeRequest=i={}));var o;(function(s){s.method="workspace/foldingRange/refresh",s.messageDirection=n.MessageDirection.serverToClient,s.type=new n.ProtocolRequestType0(s.method)})(o||(e.FoldingRangeRefreshRequest=o={}))})),X0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var n=Vt(),i;(function(o){o.method="textDocument/declaration",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method)})(i||(e.DeclarationRequest=i={}))})),Y0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var n=Vt(),i;(function(o){o.method="textDocument/selectionRange",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method)})(i||(e.SelectionRangeRequest=i={}))})),Z0=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var n=ja(),i=Vt(),o;(function(d){d.type=new n.ProgressType;function f(p){return p===d.type}d.is=f})(o||(e.WorkDoneProgress=o={}));var s;(function(d){d.method="window/workDoneProgress/create",d.messageDirection=i.MessageDirection.serverToClient,d.type=new i.ProtocolRequestType(d.method)})(s||(e.WorkDoneProgressCreateRequest=s={}));var c;(function(d){d.method="window/workDoneProgress/cancel",d.messageDirection=i.MessageDirection.clientToServer,d.type=new i.ProtocolNotificationType(d.method)})(c||(e.WorkDoneProgressCancelNotification=c={}))})),eg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var n=Vt(),i;(function(c){c.method="textDocument/prepareCallHierarchy",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(i||(e.CallHierarchyPrepareRequest=i={}));var o;(function(c){c.method="callHierarchy/incomingCalls",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(o||(e.CallHierarchyIncomingCallsRequest=o={}));var s;(function(c){c.method="callHierarchy/outgoingCalls",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(s||(e.CallHierarchyOutgoingCallsRequest=s={}))})),tg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var n=Vt(),i;(function(p){p.Relative="relative"})(i||(e.TokenFormat=i={}));var o;(function(p){p.method="textDocument/semanticTokens",p.type=new n.RegistrationType(p.method)})(o||(e.SemanticTokensRegistrationType=o={}));var s;(function(p){p.method="textDocument/semanticTokens/full",p.messageDirection=n.MessageDirection.clientToServer,p.type=new n.ProtocolRequestType(p.method),p.registrationMethod=o.method})(s||(e.SemanticTokensRequest=s={}));var c;(function(p){p.method="textDocument/semanticTokens/full/delta",p.messageDirection=n.MessageDirection.clientToServer,p.type=new n.ProtocolRequestType(p.method),p.registrationMethod=o.method})(c||(e.SemanticTokensDeltaRequest=c={}));var d;(function(p){p.method="textDocument/semanticTokens/range",p.messageDirection=n.MessageDirection.clientToServer,p.type=new n.ProtocolRequestType(p.method),p.registrationMethod=o.method})(d||(e.SemanticTokensRangeRequest=d={}));var f;(function(p){p.method="workspace/semanticTokens/refresh",p.messageDirection=n.MessageDirection.serverToClient,p.type=new n.ProtocolRequestType0(p.method)})(f||(e.SemanticTokensRefreshRequest=f={}))})),ng=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var n=Vt(),i;(function(o){o.method="window/showDocument",o.messageDirection=n.MessageDirection.serverToClient,o.type=new n.ProtocolRequestType(o.method)})(i||(e.ShowDocumentRequest=i={}))})),rg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var n=Vt(),i;(function(o){o.method="textDocument/linkedEditingRange",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method)})(i||(e.LinkedEditingRangeRequest=i={}))})),ig=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var n=Vt(),i;(function(y){y.file="file",y.folder="folder"})(i||(e.FileOperationPatternKind=i={}));var o;(function(y){y.method="workspace/willCreateFiles",y.messageDirection=n.MessageDirection.clientToServer,y.type=new n.ProtocolRequestType(y.method)})(o||(e.WillCreateFilesRequest=o={}));var s;(function(y){y.method="workspace/didCreateFiles",y.messageDirection=n.MessageDirection.clientToServer,y.type=new n.ProtocolNotificationType(y.method)})(s||(e.DidCreateFilesNotification=s={}));var c;(function(y){y.method="workspace/willRenameFiles",y.messageDirection=n.MessageDirection.clientToServer,y.type=new n.ProtocolRequestType(y.method)})(c||(e.WillRenameFilesRequest=c={}));var d;(function(y){y.method="workspace/didRenameFiles",y.messageDirection=n.MessageDirection.clientToServer,y.type=new n.ProtocolNotificationType(y.method)})(d||(e.DidRenameFilesNotification=d={}));var f;(function(y){y.method="workspace/didDeleteFiles",y.messageDirection=n.MessageDirection.clientToServer,y.type=new n.ProtocolNotificationType(y.method)})(f||(e.DidDeleteFilesNotification=f={}));var p;(function(y){y.method="workspace/willDeleteFiles",y.messageDirection=n.MessageDirection.clientToServer,y.type=new n.ProtocolRequestType(y.method)})(p||(e.WillDeleteFilesRequest=p={}))})),ag=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var n=Vt(),i;(function(c){c.document="document",c.project="project",c.group="group",c.scheme="scheme",c.global="global"})(i||(e.UniquenessLevel=i={}));var o;(function(c){c.$import="import",c.$export="export",c.local="local"})(o||(e.MonikerKind=o={}));var s;(function(c){c.method="textDocument/moniker",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(s||(e.MonikerRequest=s={}))})),og=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var n=Vt(),i;(function(c){c.method="textDocument/prepareTypeHierarchy",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(i||(e.TypeHierarchyPrepareRequest=i={}));var o;(function(c){c.method="typeHierarchy/supertypes",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(o||(e.TypeHierarchySupertypesRequest=o={}));var s;(function(c){c.method="typeHierarchy/subtypes",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(s||(e.TypeHierarchySubtypesRequest=s={}))})),sg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var n=Vt(),i;(function(s){s.method="textDocument/inlineValue",s.messageDirection=n.MessageDirection.clientToServer,s.type=new n.ProtocolRequestType(s.method)})(i||(e.InlineValueRequest=i={}));var o;(function(s){s.method="workspace/inlineValue/refresh",s.messageDirection=n.MessageDirection.serverToClient,s.type=new n.ProtocolRequestType0(s.method)})(o||(e.InlineValueRefreshRequest=o={}))})),lg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var n=Vt(),i;(function(c){c.method="textDocument/inlayHint",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(i||(e.InlayHintRequest=i={}));var o;(function(c){c.method="inlayHint/resolve",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method)})(o||(e.InlayHintResolveRequest=o={}));var s;(function(c){c.method="workspace/inlayHint/refresh",c.messageDirection=n.MessageDirection.serverToClient,c.type=new n.ProtocolRequestType0(c.method)})(s||(e.InlayHintRefreshRequest=s={}))})),cg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var n=ja(),i=tc(),o=Vt(),s;(function(y){function w(_){let C=_;return C&&i.boolean(C.retriggerRequest)}y.is=w})(s||(e.DiagnosticServerCancellationData=s={}));var c;(function(y){y.Full="full",y.Unchanged="unchanged"})(c||(e.DocumentDiagnosticReportKind=c={}));var d;(function(y){y.method="textDocument/diagnostic",y.messageDirection=o.MessageDirection.clientToServer,y.type=new o.ProtocolRequestType(y.method),y.partialResult=new n.ProgressType})(d||(e.DocumentDiagnosticRequest=d={}));var f;(function(y){y.method="workspace/diagnostic",y.messageDirection=o.MessageDirection.clientToServer,y.type=new o.ProtocolRequestType(y.method),y.partialResult=new n.ProgressType})(f||(e.WorkspaceDiagnosticRequest=f={}));var p;(function(y){y.method="workspace/diagnostic/refresh",y.messageDirection=o.MessageDirection.serverToClient,y.type=new o.ProtocolRequestType0(y.method)})(p||(e.DiagnosticRefreshRequest=p={}))})),ug=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var n=(Eh(),Ru(Ch)),i=tc(),o=Vt(),s;(function(T){T.Markup=1,T.Code=2;function P(V){return V===1||V===2}T.is=P})(s||(e.NotebookCellKind=s={}));var c;(function(T){function P(B,I){let Q={executionOrder:B};return(I===!0||I===!1)&&(Q.success=I),Q}T.create=P;function V(B){let I=B;return i.objectLiteral(I)&&n.uinteger.is(I.executionOrder)&&(I.success===void 0||i.boolean(I.success))}T.is=V;function $(B,I){return B===I?!0:B==null||I==null?!1:B.executionOrder===I.executionOrder&&B.success===I.success}T.equals=$})(c||(e.ExecutionSummary=c={}));var d;(function(T){function P(I,Q){return{kind:I,document:Q}}T.create=P;function V(I){let Q=I;return i.objectLiteral(Q)&&s.is(Q.kind)&&n.DocumentUri.is(Q.document)&&(Q.metadata===void 0||i.objectLiteral(Q.metadata))}T.is=V;function $(I,Q){let pe=new Set;return I.document!==Q.document&&pe.add("document"),I.kind!==Q.kind&&pe.add("kind"),I.executionSummary!==Q.executionSummary&&pe.add("executionSummary"),(I.metadata!==void 0||Q.metadata!==void 0)&&!B(I.metadata,Q.metadata)&&pe.add("metadata"),(I.executionSummary!==void 0||Q.executionSummary!==void 0)&&!c.equals(I.executionSummary,Q.executionSummary)&&pe.add("executionSummary"),pe}T.diff=$;function B(I,Q){if(I===Q)return!0;if(I==null||Q==null||typeof I!=typeof Q||typeof I!="object")return!1;let pe=Array.isArray(I),M=Array.isArray(Q);if(pe!==M)return!1;if(pe&&M){if(I.length!==Q.length)return!1;for(let A=0;A{Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionRequest=void 0;var n=Vt(),i;(function(o){o.method="textDocument/inlineCompletion",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method)})(i||(e.InlineCompletionRequest=i={}))})),fg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;var n=Vt(),i=(Eh(),Ru(Ch)),o=tc(),s=W0();Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:function(){return s.ImplementationRequest}});var c=U0();Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:function(){return c.TypeDefinitionRequest}});var d=K0();Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return d.WorkspaceFoldersRequest}}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return d.DidChangeWorkspaceFoldersNotification}});var f=Q0();Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:function(){return f.ConfigurationRequest}});var p=G0();Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:function(){return p.DocumentColorRequest}}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:function(){return p.ColorPresentationRequest}});var y=J0();Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:function(){return y.FoldingRangeRequest}}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return y.FoldingRangeRefreshRequest}});var w=X0();Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:function(){return w.DeclarationRequest}});var _=Y0();Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:function(){return _.SelectionRangeRequest}});var C=Z0();Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:function(){return C.WorkDoneProgress}}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return C.WorkDoneProgressCreateRequest}}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return C.WorkDoneProgressCancelNotification}});var E=eg();Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return E.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return E.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return E.CallHierarchyPrepareRequest}});var T=tg();Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:function(){return T.TokenFormat}}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:function(){return T.SemanticTokensRequest}}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return T.SemanticTokensDeltaRequest}}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return T.SemanticTokensRangeRequest}}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return T.SemanticTokensRefreshRequest}}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return T.SemanticTokensRegistrationType}});var P=ng();Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:function(){return P.ShowDocumentRequest}});var V=rg();Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return V.LinkedEditingRangeRequest}});var $=ig();Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:function(){return $.FileOperationPatternKind}}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:function(){return $.DidCreateFilesNotification}}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:function(){return $.WillCreateFilesRequest}}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:function(){return $.DidRenameFilesNotification}}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:function(){return $.WillRenameFilesRequest}}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return $.DidDeleteFilesNotification}}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return $.WillDeleteFilesRequest}});var B=ag();Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:function(){return B.UniquenessLevel}}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:function(){return B.MonikerKind}}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:function(){return B.MonikerRequest}});var I=og();Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return I.TypeHierarchyPrepareRequest}}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return I.TypeHierarchySubtypesRequest}}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return I.TypeHierarchySupertypesRequest}});var Q=sg();Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:function(){return Q.InlineValueRequest}}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Q.InlineValueRefreshRequest}});var pe=lg();Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:function(){return pe.InlayHintRequest}}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:function(){return pe.InlayHintResolveRequest}}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return pe.InlayHintRefreshRequest}});var M=cg();Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return M.DiagnosticServerCancellationData}}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return M.DocumentDiagnosticReportKind}}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return M.DocumentDiagnosticRequest}}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return M.WorkspaceDiagnosticRequest}}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return M.DiagnosticRefreshRequest}});var A=ug();Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:function(){return A.NotebookCellKind}}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:function(){return A.ExecutionSummary}}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:function(){return A.NotebookCell}}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:function(){return A.NotebookDocument}}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return A.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return A.DidOpenNotebookDocumentNotification}}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:function(){return A.NotebookCellArrayChange}}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return A.DidChangeNotebookDocumentNotification}}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return A.DidSaveNotebookDocumentNotification}}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return A.DidCloseNotebookDocumentNotification}});var W=dg();Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:function(){return W.InlineCompletionRequest}});var de;(function(L){function Ye(j){let te=j;return o.string(te)||o.string(te.language)||o.string(te.scheme)||o.string(te.pattern)}L.is=Ye})(de||(e.TextDocumentFilter=de={}));var fe;(function(L){function Ye(j){let te=j;return o.objectLiteral(te)&&(o.string(te.notebookType)||o.string(te.scheme)||o.string(te.pattern))}L.is=Ye})(fe||(e.NotebookDocumentFilter=fe={}));var we;(function(L){function Ye(j){let te=j;return o.objectLiteral(te)&&(o.string(te.notebook)||fe.is(te.notebook))&&(te.language===void 0||o.string(te.language))}L.is=Ye})(we||(e.NotebookCellTextDocumentFilter=we={}));var J;(function(L){function Ye(j){if(!Array.isArray(j))return!1;for(let te of j)if(!o.string(te)&&!de.is(te)&&!we.is(te))return!1;return!0}L.is=Ye})(J||(e.DocumentSelector=J={}));var be;(function(L){L.method="client/registerCapability",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolRequestType(L.method)})(be||(e.RegistrationRequest=be={}));var Se;(function(L){L.method="client/unregisterCapability",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolRequestType(L.method)})(Se||(e.UnregistrationRequest=Se={}));var Z;(function(L){L.Create="create",L.Rename="rename",L.Delete="delete"})(Z||(e.ResourceOperationKind=Z={}));var re;(function(L){L.Abort="abort",L.Transactional="transactional",L.TextOnlyTransactional="textOnlyTransactional",L.Undo="undo"})(re||(e.FailureHandlingKind=re={}));var se;(function(L){L.UTF8="utf-8",L.UTF16="utf-16",L.UTF32="utf-32"})(se||(e.PositionEncodingKind=se={}));var K;(function(L){function Ye(j){let te=j;return te&&o.string(te.id)&&te.id.length>0}L.hasId=Ye})(K||(e.StaticRegistrationOptions=K={}));var Le;(function(L){function Ye(j){let te=j;return te&&(te.documentSelector===null||J.is(te.documentSelector))}L.is=Ye})(Le||(e.TextDocumentRegistrationOptions=Le={}));var Fe;(function(L){function Ye(te){let ve=te;return o.objectLiteral(ve)&&(ve.workDoneProgress===void 0||o.boolean(ve.workDoneProgress))}L.is=Ye;function j(te){let ve=te;return ve&&o.boolean(ve.workDoneProgress)}L.hasWorkDoneProgress=j})(Fe||(e.WorkDoneProgressOptions=Fe={}));var et;(function(L){L.method="initialize",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(et||(e.InitializeRequest=et={}));var Be;(function(L){L.unknownProtocolVersion=1})(Be||(e.InitializeErrorCodes=Be={}));var je;(function(L){L.method="initialized",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(je||(e.InitializedNotification=je={}));var Pe;(function(L){L.method="shutdown",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType0(L.method)})(Pe||(e.ShutdownRequest=Pe={}));var Ae;(function(L){L.method="exit",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType0(L.method)})(Ae||(e.ExitNotification=Ae={}));var ft;(function(L){L.method="workspace/didChangeConfiguration",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(ft||(e.DidChangeConfigurationNotification=ft={}));var mt;(function(L){L.Error=1,L.Warning=2,L.Info=3,L.Log=4,L.Debug=5})(mt||(e.MessageType=mt={}));var Dn;(function(L){L.method="window/showMessage",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolNotificationType(L.method)})(Dn||(e.ShowMessageNotification=Dn={}));var un;(function(L){L.method="window/showMessageRequest",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolRequestType(L.method)})(un||(e.ShowMessageRequest=un={}));var We;(function(L){L.method="window/logMessage",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolNotificationType(L.method)})(We||(e.LogMessageNotification=We={}));var tn;(function(L){L.method="telemetry/event",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolNotificationType(L.method)})(tn||(e.TelemetryEventNotification=tn={}));var wt;(function(L){L.None=0,L.Full=1,L.Incremental=2})(wt||(e.TextDocumentSyncKind=wt={}));var vn;(function(L){L.method="textDocument/didOpen",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(vn||(e.DidOpenTextDocumentNotification=vn={}));var vr;(function(L){function Ye(te){let ve=te;return ve!=null&&typeof ve.text=="string"&&ve.range!==void 0&&(ve.rangeLength===void 0||typeof ve.rangeLength=="number")}L.isIncremental=Ye;function j(te){let ve=te;return ve!=null&&typeof ve.text=="string"&&ve.range===void 0&&ve.rangeLength===void 0}L.isFull=j})(vr||(e.TextDocumentContentChangeEvent=vr={}));var pt;(function(L){L.method="textDocument/didChange",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(pt||(e.DidChangeTextDocumentNotification=pt={}));var zr;(function(L){L.method="textDocument/didClose",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(zr||(e.DidCloseTextDocumentNotification=zr={}));var nn;(function(L){L.method="textDocument/didSave",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(nn||(e.DidSaveTextDocumentNotification=nn={}));var hi;(function(L){L.Manual=1,L.AfterDelay=2,L.FocusOut=3})(hi||(e.TextDocumentSaveReason=hi={}));var On;(function(L){L.method="textDocument/willSave",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(On||(e.WillSaveTextDocumentNotification=On={}));var br;(function(L){L.method="textDocument/willSaveWaitUntil",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(br||(e.WillSaveTextDocumentWaitUntilRequest=br={}));var Pn;(function(L){L.method="workspace/didChangeWatchedFiles",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolNotificationType(L.method)})(Pn||(e.DidChangeWatchedFilesNotification=Pn={}));var dn;(function(L){L.Created=1,L.Changed=2,L.Deleted=3})(dn||(e.FileChangeType=dn={}));var ta;(function(L){function Ye(j){let te=j;return o.objectLiteral(te)&&(i.URI.is(te.baseUri)||i.WorkspaceFolder.is(te.baseUri))&&o.string(te.pattern)}L.is=Ye})(ta||(e.RelativePattern=ta={}));var mi;(function(L){L.Create=1,L.Change=2,L.Delete=4})(mi||(e.WatchKind=mi={}));var Ut;(function(L){L.method="textDocument/publishDiagnostics",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolNotificationType(L.method)})(Ut||(e.PublishDiagnosticsNotification=Ut={}));var gi;(function(L){L.Invoked=1,L.TriggerCharacter=2,L.TriggerForIncompleteCompletions=3})(gi||(e.CompletionTriggerKind=gi={}));var fn;(function(L){L.method="textDocument/completion",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(fn||(e.CompletionRequest=fn={}));var ti;(function(L){L.method="completionItem/resolve",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(ti||(e.CompletionResolveRequest=ti={}));var zt;(function(L){L.method="textDocument/hover",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(zt||(e.HoverRequest=zt={}));var Fr;(function(L){L.Invoked=1,L.TriggerCharacter=2,L.ContentChange=3})(Fr||(e.SignatureHelpTriggerKind=Fr={}));var _t;(function(L){L.method="textDocument/signatureHelp",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(_t||(e.SignatureHelpRequest=_t={}));var yi;(function(L){L.method="textDocument/definition",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(yi||(e.DefinitionRequest=yi={}));var na;(function(L){L.method="textDocument/references",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(na||(e.ReferencesRequest=na={}));var wr;(function(L){L.method="textDocument/documentHighlight",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(wr||(e.DocumentHighlightRequest=wr={}));var Jt;(function(L){L.method="textDocument/documentSymbol",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(Jt||(e.DocumentSymbolRequest=Jt={}));var Ge;(function(L){L.method="textDocument/codeAction",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(Ge||(e.CodeActionRequest=Ge={}));var gt;(function(L){L.method="codeAction/resolve",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(gt||(e.CodeActionResolveRequest=gt={}));var xt;(function(L){L.method="workspace/symbol",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(xt||(e.WorkspaceSymbolRequest=xt={}));var kt;(function(L){L.method="workspaceSymbol/resolve",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(kt||(e.WorkspaceSymbolResolveRequest=kt={}));var jn;(function(L){L.method="textDocument/codeLens",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(jn||(e.CodeLensRequest=jn={}));var _r;(function(L){L.method="codeLens/resolve",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(_r||(e.CodeLensResolveRequest=_r={}));var St;(function(L){L.method="workspace/codeLens/refresh",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolRequestType0(L.method)})(St||(e.CodeLensRefreshRequest=St={}));var ir;(function(L){L.method="textDocument/documentLink",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(ir||(e.DocumentLinkRequest=ir={}));var Mn;(function(L){L.method="documentLink/resolve",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(Mn||(e.DocumentLinkResolveRequest=Mn={}));var Br;(function(L){L.method="textDocument/formatting",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(Br||(e.DocumentFormattingRequest=Br={}));var bn;(function(L){L.method="textDocument/rangeFormatting",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(bn||(e.DocumentRangeFormattingRequest=bn={}));var ar;(function(L){L.method="textDocument/rangesFormatting",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(ar||(e.DocumentRangesFormattingRequest=ar={}));var vi;(function(L){L.method="textDocument/onTypeFormatting",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(vi||(e.DocumentOnTypeFormattingRequest=vi={}));var ni;(function(L){L.Identifier=1})(ni||(e.PrepareSupportDefaultBehavior=ni={}));var Ln;(function(L){L.method="textDocument/rename",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(Ln||(e.RenameRequest=Ln={}));var bi;(function(L){L.method="textDocument/prepareRename",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(bi||(e.PrepareRenameRequest=bi={}));var zn;(function(L){L.method="workspace/executeCommand",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method)})(zn||(e.ExecuteCommandRequest=zn={}));var or;(function(L){L.method="workspace/applyEdit",L.messageDirection=n.MessageDirection.serverToClient,L.type=new n.ProtocolRequestType("workspace/applyEdit")})(or||(e.ApplyWorkspaceEditRequest=or={}))})),pg=Ce((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var n=ja();function i(o,s,c,d){return n.ConnectionStrategy.is(d)&&(d={connectionStrategy:d}),(0,n.createMessageConnection)(o,s,c,d)}e.createProtocolConnection=i})),hg=Ce((e=>{var n=e&&e.__createBinding||(Object.create?(function(c,d,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(d,f);(!y||("get"in y?!d.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(c,p,y)}):(function(c,d,f,p){p===void 0&&(p=f),c[p]=d[f]})),i=e&&e.__exportStar||function(c,d){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&n(d,c,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,i(ja(),e),i((Eh(),Ru(Ch)),e),i(Vt(),e),i(fg(),e);var o=pg();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:function(){return o.createProtocolConnection}});var s;(function(c){c.lspReservedErrorRangeStart=-32899,c.RequestFailed=-32803,c.ServerCancelled=-32802,c.ContentModified=-32801,c.RequestCancelled=-32800,c.lspReservedErrorRangeEnd=-32800})(s||(e.LSPErrorCodes=s={}))})),Hu=Ce((e=>{var n=e&&e.__createBinding||(Object.create?(function(c,d,f,p){p===void 0&&(p=f);var y=Object.getOwnPropertyDescriptor(d,f);(!y||("get"in y?!d.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(c,p,y)}):(function(c,d,f,p){p===void 0&&(p=f),c[p]=d[f]})),i=e&&e.__exportStar||function(c,d){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&n(d,c,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var o=Id();i(Id(),e),i(hg(),e);function s(c,d,f,p){return(0,o.createMessageConnection)(c,d,f,p)}e.createProtocolConnection=s}));function yn(e,n){if(n.line>=e.lines)return n.character===0?e.length:void 0;let i=e.line(n.line+1).from+n.character;if(!(i>e.length))return i}function Ir(e,n){return yn(e,n)||0}function Ji(e,n){let i=e.lineAt(n);return{character:n-i.from,line:i.number-1}}var nc=new Sw.Renderer,ek=nc.code;nc.code=e=>e.text.trim()?ek.call(nc,e):"";function mg(e){return Sw(e,{async:!1,gfm:!0,breaks:!0,renderer:nc})}function Ar(e,n=mg){if(!e)return"";if(ik(e)){let i=e.value;return e.kind==="markdown"&&(i=n(i.trim())),i}return Array.isArray(e)?e.map(i=>Ar(i,n)).filter(Boolean).join(` + +`):typeof e=="string"?e:""}function tk(e){if(e.length===0)return"";if(e.length===1)return e[0]||"";e.sort();let n=e[0]||"",i=e[e.length-1]||"",o=0;for(;o{var c;return((c=s.textEdit)==null?void 0:c.newText)||s.label}));if(n==="")return;let i=[];for(let s=0;s0){let d=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");i.push(d)}}let o=i.join("|");return RegExp(`(${o})$`)}function rk(e){return(e==null?void 0:e.range)!==void 0}function ik(e){return e.kind!==void 0}function tr(e,n){let i=document.createElement("div");i.className="cm-error-message",i.style.cssText=` + position: absolute; + padding: 8px; + background: #fee; + border: 1px solid #fcc; + border-radius: 4px; + color: #c00; + font-size: 14px; + z-index: 100; + max-width: 300px; + box-shadow: 0 2px 8px rgba(0,0,0,.15); +`,i.textContent=n;let o=e.coordsAtPos(e.state.selection.main.head);o&&(i.style.left=`${o.left}px`,i.style.top=`${o.bottom+5}px`),document.body.appendChild(i),setTimeout(()=>{i.style.opacity="0",i.style.transition="opacity 0.2s",setTimeout(()=>i.remove(),200)},3e3)}function rc(e){if(e==null)return!0;if(Array.isArray(e))return e.length===0||e.every(rc);if(typeof e=="string")return gg(e);let n=e.value;return typeof n=="string"?gg(n):!1}function gg(e){return e==null?!0:typeof e=="string"?e.trim()===""||/^[\s\n`]*$/.test(e):!1}function ak(e,n){let i=[];return n.iterChanges((o,s,c,d,f)=>{let p=f.toString();if(o===0&&s===e.length){i.push({text:p});return}let y=Ji(e,o),w=Ji(e,s);i.push({range:{start:y,end:w},text:p})}),i.sort((o,s)=>{if(!o.range)return 1;if(!s.range)return-1;let c=o.range.start.line??-1,d=s.range.start.line??-1;if(c!==d)return d-c;let f=o.range.start.character??-1;return(s.range.start.character??-1)-f}),i}var ok=Hu(),sk=Object.fromEntries(Object.entries(ok.CompletionItemKind).map(([e,n])=>[n,e])),yg;(function(e){e.PlainText=1,e.Snippet=2})(yg||(yg={}));function lk(e){return e.replaceAll(/\\\\/g,"").replaceAll(/(\$(\d+))/g,(n,i,o)=>"${"+o+"}")}function ck(e,n){let{detail:i,labelDetails:o,label:s,kind:c,textEdit:d,insertText:f,documentation:p,additionalTextEdits:y,insertTextFormat:w}=e,_={label:s,detail:(o==null?void 0:o.detail)||i,apply(C,E,T,P){if(d&&rk(d)?C.dispatch(_w(C.state,d.newText,Ir(C.state.doc,d.range.start),Ir(C.state.doc,d.range.end))):f&&w===yg.Snippet&&n.useSnippetOnCompletion?lD(lk(f))(C,null,T,P):C.dispatch(_w(C.state,s,T,P)),!y)return;let V=y.sort(({range:{end:$}},{range:{end:B}})=>Ir(C.state.doc,$)Ir(C.state.doc,B)?-1:0);for(let $ of V)C.dispatch(C.state.update({changes:{from:Ir(C.state.doc,$.range.start),to:yn(C.state.doc,$.range.end),insert:$.newText}}))},type:c&&sk[c].toLowerCase()};return n.hasResolveProvider&&n.resolveItem?_.info=async()=>{var C;try{let E=await((C=n.resolveItem)==null?void 0:C.call(n,e)),T=document.createElement("div");T.classList.add("documentation");let P=(E==null?void 0:E.documentation)||p;return!P||rc(P)?null:(n.allowHTMLContent?T.innerHTML=Ar(P,n.markdownRenderer):T.textContent=Ar(P,n.markdownRenderer),T)}catch(E){if(console.error("Failed to resolve completion item:",E),rc(p))return null;if(p){let T=document.createElement("div");return T.classList.add("documentation"),n.allowHTMLContent?T.innerHTML=Ar(p,n.markdownRenderer):T.textContent=Ar(p,n.markdownRenderer),T}return null}}:p&&(_.info=()=>{let C=document.createElement("div");return C.classList.add("documentation"),n.allowHTMLContent?C.innerHTML=Ar(p,n.markdownRenderer):C.textContent=Ar(p,n.markdownRenderer),C}),_}function uk(e,n,i){let o=[n?dk(n):fk,i==="python"?pk:void 0].filter(Boolean),s=e;if(n){let c=n.toLowerCase();/^\w+$/.test(c)&&(s=s.filter(({label:d,filterText:f})=>(f??d).toLowerCase().startsWith(c)))}for(let c of o)s.sort(c);return s}function dk(e){return(n,i)=>{let o=n.sortText??n.label,s=i.sortText??i.label;switch(!0){case(o.startsWith(e)&&!s.startsWith(e)):return-1;case(!o.startsWith(e)&&s.startsWith(e)):return 1}return o.localeCompare(s)}}function fk(e,n){let i=e.sortText??e.label,o=n.sortText??n.label;return i.localeCompare(o)}function pk(e,n){let i=e.label.endsWith("="),o=n.label.endsWith("=");return i&&!o?-1:!i&&o?1:0}function vg(e){let n=new Proxy({},{get(){throw Error(e)}});return function(i){return i.at(-1)??n}}const bg=Ol.define({combine:vg("No document URI provided. Either pass a one into the extension or use documentUri.of().")}),hk=Ol.define({combine:vg("No language ID provided. Either pass a one into the extension or use languageId.of().")});let Ad,wg;Ad=zl(),wg=1e4,jl=class{constructor({rootUri:e,workspaceFolders:n,transport:i,initializationOptions:o,capabilities:s,timeout:c=wg,getWorkspaceConfiguration:d}){ke(this,"ready");ke(this,"capabilities");ke(this,"initializePromise");ke(this,"rootUri");ke(this,"workspaceFolders");ke(this,"timeout");ke(this,"transport");ke(this,"requestManager");ke(this,"client");ke(this,"initializationOptions");ke(this,"clientCapabilities");ke(this,"notificationListeners",new Set);this.rootUri=e,this.workspaceFolders=n,this.transport=i,this.initializationOptions=o,this.clientCapabilities=s,this.timeout=c,this.ready=!1,this.capabilities=null,this.requestManager=new Ad.RequestManager([this.transport]),this.client=new Ad.Client(this.requestManager),this.client.onNotification(p=>{this.processNotification(p)});let f=this.transport;f!=null&&f.connection&&f.connection.addEventListener("message",p=>{let y=JSON.parse(p.data);y.method==="workspace/configuration"&&d?f.connection.send(JSON.stringify({jsonrpc:"2.0",id:y.id,result:d(y.params)})):y.method&&y.id&&f.connection.send(JSON.stringify({jsonrpc:"2.0",id:y.id,result:null}))}),this.initializePromise=this.initialize()}getInitializationOptions(){let e={textDocument:{hover:{dynamicRegistration:!0,contentFormat:["markdown","plaintext"]},moniker:{},synchronization:{dynamicRegistration:!0,willSave:!1,didSave:!1,willSaveWaitUntil:!1},codeAction:{dynamicRegistration:!0,codeActionLiteralSupport:{codeActionKind:{valueSet:["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},resolveSupport:{properties:["edit"]}},completion:{dynamicRegistration:!0,completionItem:{snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:["markdown","plaintext"],deprecatedSupport:!1,preselectSupport:!1},contextSupport:!1},signatureHelp:{dynamicRegistration:!0,signatureInformation:{documentationFormat:["markdown","plaintext"]}},declaration:{dynamicRegistration:!0,linkSupport:!0},definition:{dynamicRegistration:!0,linkSupport:!0},typeDefinition:{dynamicRegistration:!0,linkSupport:!0},implementation:{dynamicRegistration:!0,linkSupport:!0},rename:{dynamicRegistration:!0,prepareSupport:!0}},workspace:{didChangeConfiguration:{dynamicRegistration:!0}}};return{capabilities:this.clientCapabilities?typeof this.clientCapabilities=="function"?this.clientCapabilities(e):this.clientCapabilities:e,initializationOptions:this.initializationOptions,processId:null,rootUri:this.rootUri,workspaceFolders:this.workspaceFolders}}async initialize(){let{capabilities:e}=await this.request("initialize",this.getInitializationOptions(),this.timeout*3);this.capabilities=e,this.notify("initialized",{}),this.ready=!0}close(){this.client.close()}textDocumentDidOpen(e){return this.notify("textDocument/didOpen",e)}textDocumentDidChange(e){return this.notify("textDocument/didChange",e)}async textDocumentHover(e){return await this.request("textDocument/hover",e,this.timeout)}async textDocumentCompletion(e){return await this.request("textDocument/completion",e,this.timeout)}async completionItemResolve(e){return await this.request("completionItem/resolve",e,this.timeout)}async textDocumentDefinition(e){return await this.request("textDocument/definition",e,this.timeout)}async textDocumentCodeAction(e){return await this.request("textDocument/codeAction",e,this.timeout)}async textDocumentRename(e){return await this.request("textDocument/rename",e,this.timeout)}async textDocumentPrepareRename(e){return await this.request("textDocument/prepareRename",e,this.timeout)}async textDocumentSignatureHelp(e){return await this.request("textDocument/signatureHelp",e,this.timeout)}onNotification(e){return this.notificationListeners.add(e),()=>this.notificationListeners.delete(e)}request(e,n,i){return this.client.request({method:e,params:n},i)}notify(e,n){return this.client.notify({method:e,params:n})}processNotification(e){this.notificationListeners.forEach(n=>n(e))}},zl();var Xi=Hu(),_g=console.log;function mk(){return String(Date.now()+Math.random())}let qd;Il=Fi.define(),Gl=xs.define({create:()=>null,update(e,n){for(let i of n.effects)if(i.is(Il))return i.value;if(e&&n.docChanged){let i=n.changes.mapPos(e.pos),o=e.end==null?void 0:n.changes.mapPos(e.end);return{...e,pos:i,end:o}}return e},provide:e=>C4.from(e)}),qd=D4.define();var gk=20,yk=class{constructor(e){ke(this,"documentVersion");ke(this,"pluginId");ke(this,"client");ke(this,"documentUri");ke(this,"languageId");ke(this,"view");ke(this,"allowHTMLContent");ke(this,"useSnippetOnCompletion");ke(this,"sendIncrementalChanges");ke(this,"featureOptions");ke(this,"onGoToDefinition");ke(this,"markdownRenderer");ke(this,"disposeListener");ke(this,"lastSeenDiagnosticsVersion",0);let{client:n,documentUri:i,languageId:o,view:s,featureOptions:c,sendIncrementalChanges:d=!0,allowHTMLContent:f=!1,useSnippetOnCompletion:p=!1,onGoToDefinition:y,markdownRenderer:w=mg}=e;this.documentVersion=0,this.pluginId=mk(),this.client=n,this.documentUri=i,this.languageId=o,this.view=s,this.allowHTMLContent=f,this.useSnippetOnCompletion=p,this.sendIncrementalChanges=d,this.featureOptions=c,this.onGoToDefinition=y,this.markdownRenderer=w,this.disposeListener=n.onNotification(this.processNotification.bind(this)),this.initialize({documentText:this.view.state.doc.toString()})}update({state:e,docChanged:n,startState:{doc:i},changes:o}){n&&(this.sendIncrementalChanges?this.sendChanges(ak(i,o)):this.sendChanges([{text:e.doc.toString()}]))}destroy(){var e;(e=this.disposeListener)==null||e.call(this)}async initialize({documentText:e}){this.client.initializePromise&&await this.client.initializePromise,await this.client.textDocumentDidOpen({textDocument:{uri:this.documentUri,languageId:this.languageId,text:e,version:this.documentVersion}})}async sendChanges(e){if(this.client.ready)try{await this.client.textDocumentDidChange({textDocument:{uri:this.documentUri,version:++this.documentVersion},contentChanges:e})}catch(n){console.error(n)}}requestDiagnostics(e){this.sendChanges([{text:e.state.doc.toString()}])}async requestHoverTooltip(e,{line:n,character:i}){var y;if(!this.featureOptions.hoverEnabled||!(this.client.ready&&((y=this.client.capabilities)!=null&&y.hoverProvider)))return null;let o=await this.client.textDocumentHover({textDocument:{uri:this.documentUri},position:{line:n,character:i}});if(!o)return null;let{contents:s,range:c}=o,d=yn(e.state.doc,{line:n,character:i}),f;if(c&&(d=yn(e.state.doc,c.start),f=yn(e.state.doc,c.end)),d==null||rc(s))return null;let p=document.createElement("div");return p.classList.add("documentation","cm-lsp-hover-tooltip"),this.allowHTMLContent?p.innerHTML=Ar(s,this.markdownRenderer):p.textContent=Ar(s,this.markdownRenderer),{pos:d,end:f,create:w=>({dom:p}),above:!0}}async requestCompletion(e,{line:n,character:i},{triggerKind:o,triggerCharacter:s}){var C;if(!this.featureOptions.completionEnabled||!(this.client.ready&&((C=this.client.capabilities)!=null&&C.completionProvider)))return null;let c=await this.client.textDocumentCompletion({textDocument:{uri:this.documentUri},position:{line:n,character:i},context:{triggerKind:o,triggerCharacter:s}});if(!c)return null;let d="items"in c?c.items:c,f=nk(d),p=f?e.matchBefore(f):e.matchBefore(/[a-zA-Z0-9]+/),{pos:y}=e,w=uk(d,p==null?void 0:p.text,this.languageId);p&&(y=p.from);let _=w.map(E=>{var T,P;return ck(E,{allowHTMLContent:this.allowHTMLContent,useSnippetOnCompletion:this.useSnippetOnCompletion,hasResolveProvider:((P=(T=this.client.capabilities)==null?void 0:T.completionProvider)==null?void 0:P.resolveProvider)??!1,resolveItem:this.client.completionItemResolve.bind(this.client)})});return{from:y,options:_,filter:!1}}async requestDefinition(e,{line:n,character:i}){var w;if(!this.featureOptions.definitionEnabled||!(this.client.ready&&((w=this.client.capabilities)!=null&&w.definitionProvider)))return;let o=await this.client.textDocumentDefinition({textDocument:{uri:this.documentUri},position:{line:n,character:i}});if(!o)return;let s=Array.isArray(o)?o:[o];if(s.length===0)return;let c=s[0];if(!c)return;let d="uri"in c?c.uri:c.targetUri,f="range"in c?c.range:c.targetRange,p=d!==this.documentUri,y={uri:d,range:f,isExternalDocument:p};return p||e.dispatch(e.state.update({selection:{anchor:Ir(e.state.doc,f.start),head:yn(e.state.doc,f.end)}})),this.onGoToDefinition&&this.onGoToDefinition(y),y}processNotification(e){try{e.method==="textDocument/publishDiagnostics"&&this.processDiagnostics(e.params)}catch(n){_g(n)}}async processDiagnostics(e){if(e.uri!==this.documentUri)return;if(e.version!=null&&e.version>this.lastSeenDiagnosticsVersion&&(this.lastSeenDiagnosticsVersion=e.version,this.clearDiagnostics()),!this.featureOptions.diagnosticsEnabled){this.clearDiagnostics();return}let n={[Xi.DiagnosticSeverity.Error]:"error",[Xi.DiagnosticSeverity.Warning]:"warning",[Xi.DiagnosticSeverity.Information]:"info",[Xi.DiagnosticSeverity.Hint]:"info"},i=e.diagnostics.map(async({range:s,message:c,severity:d,code:f,source:p})=>{var w;let y=(w=await this.requestCodeActions(s,[f]))==null?void 0:w.map(_=>{var C;return{name:"command"in _&&typeof _.command=="object"&&((C=_.command)==null?void 0:C.title)||_.title,apply:async()=>{var E;if("edit"in _&&((E=_.edit)!=null&&E.changes)){let T=_.edit.changes[this.documentUri];if(!T)return;for(let P of T)this.view.dispatch(this.view.state.update({changes:{from:Ir(this.view.state.doc,P.range.start),to:yn(this.view.state.doc,P.range.end),insert:P.newText}}))}"command"in _&&_.command&&_g("Executing command:",_.command)}}});return{from:Ir(this.view.state.doc,s.start),to:Ir(this.view.state.doc,s.end),severity:n[d??Xi.DiagnosticSeverity.Error],message:c,renderMessage:()=>{let _=document.createElement("div");return _.innerHTML=this.markdownRenderer(c),_},source:p||this.languageId,markClass:this.pluginId,actions:y}}),o=await Promise.all(i);this.addDiagnostics(o)}addDiagnostics(e){if(e.length===0)return;let n=this.view.state,i=[];Y4(n,c=>(i.push(c),!0));let o=new Set(e.map(c=>c.source).filter(Boolean)),s=e.filter(c=>!o.has(c.source));this.view.dispatch(vw(n,[...s,...e]))}clearDiagnostics(){this.view.dispatch(vw(this.view.state,[]))}async requestCodeActions(e,n){var i;return!this.featureOptions.codeActionsEnabled||!(this.client.ready&&((i=this.client.capabilities)!=null&&i.codeActionProvider))?null:await this.client.textDocumentCodeAction({textDocument:{uri:this.documentUri},range:e,context:{diagnostics:[{range:e,code:n[0],source:this.languageId,message:""}]}})}async requestRename(e,{line:n,character:i}){var o;if(this.featureOptions.renameEnabled){if(!this.client.ready){tr(e,"Language server not ready");return}if(!((o=this.client.capabilities)!=null&&o.renameProvider)){tr(e,"Rename not supported by language server");return}try{let s=await this.client.textDocumentPrepareRename({textDocument:{uri:this.documentUri},position:{line:n,character:i}}).catch(()=>this.prepareRenameFallback(e,{line:n,character:i}));if(!s||"defaultBehavior"in s){tr(e,"Cannot rename this symbol");return}let c=document.createElement("div");c.className="cm-rename-popup",c.style.cssText="position: absolute; padding: 4px; background: white; border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 99;";let d=document.createElement("input");d.type="text",d.style.cssText="width: 200px; padding: 4px; border: 1px solid #ddd;";let f="range"in s?s.range:s,p=yn(e.state.doc,f.start);if(p==null)return;let y=yn(e.state.doc,f.end);d.value=e.state.doc.sliceString(p,y),c.appendChild(d);let w=e.coordsAtPos(p);if(!w)return;c.style.left=`${w.left}px`,c.style.top=`${w.bottom+5}px`;let _=async()=>{let E=d.value.trim();if(!E){tr(e,"New name cannot be empty"),c.remove();return}if(E===d.defaultValue){c.remove();return}try{let T=await this.client.textDocumentRename({textDocument:{uri:this.documentUri},position:{line:n,character:i},newName:E});await this.applyRenameEdit(e,T)}catch(T){tr(e,`Rename failed: ${T instanceof Error?T.message:"Unknown error"}`)}finally{c.remove()}};d.addEventListener("keydown",E=>{E.key==="Enter"?_():E.key==="Escape"&&c.remove(),E.stopPropagation()});let C=E=>{c.contains(E.target)||(c.remove(),document.removeEventListener("mousedown",C))};document.addEventListener("mousedown",C),document.body.appendChild(c),d.focus(),d.select()}catch(s){tr(e,`Rename failed: ${s instanceof Error?s.message:"Unknown error"}`)}}}async requestSignatureHelp(e,{line:n,character:i},o=void 0){var s,c,d;if(!(this.featureOptions.signatureHelpEnabled&&this.client.ready&&((s=this.client.capabilities)!=null&&s.signatureHelpProvider)))return null;try{let f=await this.client.textDocumentSignatureHelp({textDocument:{uri:this.documentUri},position:{line:n,character:i},context:{isRetrigger:!1,triggerKind:1,triggerCharacter:o}});if(!(f!=null&&f.signatures)||f.signatures.length===0)return null;let p=this.createTooltipContainer(),y=f.activeSignature??0,w=f.signatures[y]||f.signatures[0];if(!w)return null;let _=f.activeParameter??w.activeParameter??0,C=this.createSignatureElement(w,_);p.appendChild(C),w.documentation&&p.appendChild(this.createDocumentationElement(w.documentation));let E=(c=w.parameters)==null?void 0:c[_];E!=null&&E.documentation&&p.appendChild(this.createParameterDocElement(E.documentation));let T=yn(e.state.doc,{line:n,character:i});return T==null?null:{pos:T,end:T,create:P=>({dom:p}),above:((d=this.featureOptions.signatureHelpOptions)==null?void 0:d.position)==="above"}}catch(f){return console.error("Signature help error:",f),null}}async showSignatureHelpTooltip(e,n,i){let o=await this.requestSignatureHelp(e,Ji(e.state.doc,n),i);e.dispatch({effects:Il.of(o)})}createTooltipContainer(){let e=document.createElement("div");return e.classList.add("cm-signature-help"),e.style.cssText="padding: 6px; max-width: 400px;",e}createSignatureElement(e,n){let i=document.createElement("div");if(i.classList.add("cm-signature"),i.style.cssText="font-family: monospace; margin-bottom: 4px;",!e.label||typeof e.label!="string")return i.textContent="Signature information unavailable",i;let o=e.label,s=e.parameters||[];if(s.length===0||!s[n])return i.textContent=o,i;let c=s[n].label;return typeof c=="string"?this.allowHTMLContent?i.innerHTML=o.replace(c,`${c}`):i.textContent=o.replace(c,`\xAB${c}\xBB`):Array.isArray(c)&&c.length===2?this.applyRangeHighlighting(i,o,c[0],c[1]):i.textContent=o,i}applyRangeHighlighting(e,n,i,o){e.textContent="";let s=n.substring(0,i),c=n.substring(i,o),d=n.substring(o);e.appendChild(document.createTextNode(s));let f=document.createElement("span");f.classList.add("cm-signature-active-param"),f.style.cssText="font-weight: bold; text-decoration: underline;",f.textContent=c,e.appendChild(f),e.appendChild(document.createTextNode(d))}createDocumentationElement(e){let n=document.createElement("div");n.classList.add("cm-signature-docs"),n.style.cssText="margin-top: 4px; color: #666;";let i=Ar(e,this.markdownRenderer);return this.allowHTMLContent?n.innerHTML=i:n.textContent=i,n}createParameterDocElement(e){let n=document.createElement("div");n.classList.add("cm-parameter-docs"),n.style.cssText="margin-top: 4px; font-style: italic; border-top: 1px solid #eee; padding-top: 4px;";let i=Ar(e,this.markdownRenderer);return this.allowHTMLContent?n.innerHTML=i:n.textContent=i,n}prepareRenameFallback(e,{line:n,character:i}){let o=e.state.doc.line(n+1).text,s=/\w+/g,c,d=i,f=i;for(;(c=s.exec(o))!==null;){let p=c.index,y=c.index+c[0].length;if(i>=p&&i<=y){d=p,f=y;break}}return d===i&&f===i?null:{range:{start:{line:n,character:d},end:{line:n,character:f}},placeholder:o.slice(d,f)}}async applyRenameEdit(e,n){if(!n)return tr(e,"No edit returned from language server"),!1;let i=n.changes??{},o=n.documentChanges??[];if(Object.keys(i).length===0&&o.length===0)return tr(e,"No changes to apply"),!1;if(o.length>0)for(let s of o){if("textDocument"in s){if(s.textDocument.uri!==this.documentUri){tr(e,"Multi-file rename not supported yet");continue}let c=s.edits.sort((d,f)=>{let p=yn(e.state.doc,d.range.start);return(yn(e.state.doc,f.range.start)??0)-(p??0)}).map(d=>({from:yn(e.state.doc,d.range.start)??0,to:yn(e.state.doc,d.range.end)??0,insert:d.newText}));return e.dispatch(e.state.update({changes:c})),!0}return tr(e,"File creation, deletion, or renaming operations not supported yet"),!1}else if(Object.keys(i).length>0)for(let[s,c]of Object.entries(i)){if(s!==this.documentUri){tr(e,"Multi-file rename not supported yet");continue}let d=c.sort((f,p)=>{let y=yn(e.state.doc,f.range.start);return(yn(e.state.doc,p.range.start)??0)-(y??0)}).map(f=>({from:yn(e.state.doc,f.range.start)??0,to:yn(e.state.doc,f.range.end)??0,insert:f.newText}));e.dispatch(e.state.update({changes:d}))}return!1}};bm=function(e){var d;let n=null,i={rename:"F2",goToDefinition:"F12",signatureHelp:"Mod-Shift-Space",...e.keyboardShortcuts},o=e.client,s={diagnosticsEnabled:!0,hoverEnabled:!0,completionEnabled:!0,definitionEnabled:!0,renameEnabled:!0,codeActionsEnabled:!0,signatureHelpEnabled:!0,signatureActivateOnTyping:!1,signatureHelpOptions:{position:"below"},...e},c=[Pl.define(f=>(n=new yk({client:o,documentUri:e.documentUri??f.state.facet(bg),languageId:e.languageId??f.state.facet(hk),view:f,featureOptions:s,sendIncrementalChanges:e.sendIncrementalChanges,allowHTMLContent:e.allowHTMLContent,useSnippetOnCompletion:e.useSnippetOnCompletion,onGoToDefinition:e.onGoToDefinition,markdownRenderer:e.markdownRenderer}),n))];if(c.push(Ra.of([{key:i.signatureHelp,run:f=>{if(!(n&&s.signatureHelpEnabled))return!1;let p=f.state.selection.main.head;return n.showSignatureHelpTooltip(f,p),!0}},{key:i.rename,run:f=>{if(!(n&&s.renameEnabled))return!1;let p=f.state.selection.main.head;return n.requestRename(f,Ji(f.state.doc,p)),!0}},{key:i.goToDefinition,run:f=>{if(!(n&&s.definitionEnabled))return!1;let p=f.state.selection.main.head;return n.requestDefinition(f,Ji(f.state.doc,p)).catch(y=>tr(f,`Go to definition failed: ${y instanceof Error?y.message:"Unknown error"}`)),!0}}])),s.hoverEnabled&&c.push(xh((f,p)=>n==null?null:n.requestHoverTooltip(f,Ji(f.state.doc,p)),e.hoverConfig)),s.signatureHelpEnabled){c.push(Gl);let f=p=>p.state.field(Gl)?(p.dispatch({effects:Il.of(null)}),!0):!1;c.push(Kt.domEventHandlers({mousedown:(p,y)=>(f(y),!1)})),c.push(Ra.of([{key:")",run:p=>(f(p),!1)},{key:"Escape",run:p=>f(p)}])),c.push(Kt.updateListener.of(p=>{if(!(n&&s.signatureActivateOnTyping)||!p.state.field(Gl)||!(p.selectionSet||p.docChanged))return;let y=p.state.selection.main.head;_k(p.state.doc,y)||f(p.view)})),c.push(Kt.updateListener.of(async p=>{var E;if(!(n&&p.docChanged)||p.transactions.some(T=>T.annotation(qd))||!((E=n.client.capabilities)!=null&&E.signatureHelpProvider)||!s.signatureActivateOnTyping)return;let y=n.client.capabilities.signatureHelpProvider.triggerCharacters||["(",","],w=p.changes,_=-1,C;w.iterChanges((T,P,V,$,B)=>{if(_>=0)return;let I=bk(B.toString(),V,y);I&&(_=I.triggerPos,C=I.triggerCharacter)}),_>=0&&n.showSignatureHelpTooltip(p.view,_,C)}))}return s.completionEnabled&&c.push(Nu({...e.completionConfig,override:[async f=>{var _,C;if(n==null)return null;let{state:p,pos:y}=f,w=vk(f,((C=(_=n.client.capabilities)==null?void 0:_.completionProvider)==null?void 0:C.triggerCharacters)??[],e.completionMatchBefore);return w==null?null:await n.requestCompletion(f,Ji(p.doc,y),w)},...((d=e.completionConfig)==null?void 0:d.override)||[]]})),c.push(Kt.domEventHandlers({click:(f,p)=>{if(s.definitionEnabled&&i.goToDefinition==="ctrlcmd"&&(f.ctrlKey||f.metaKey)){let y=p.posAtCoords({x:f.clientX,y:f.clientY});y&&n&&(n.requestDefinition(p,Ji(p.state.doc,y)).catch(w=>tr(p,`Go to definition failed: ${w instanceof Error?w.message:"Unknown error"}`)),f.preventDefault())}}})),c};function vk(e,n,i){let{state:o,pos:s,explicit:c}=e,d=o.doc.lineAt(s),f=Xi.CompletionTriggerKind.Invoked,p,y=d.text[s-d.from-1]||"",w=n==null?void 0:n.includes(y);return!c&&w&&(f=Xi.CompletionTriggerKind.TriggerCharacter,p=y),f===Xi.CompletionTriggerKind.Invoked&&!e.matchBefore(i||/(\w+|\w+\.|\/|,)$/)?null:{triggerKind:f,triggerCharacter:p}}function bk(e,n,i){if(!e)return null;for(let o of i){let s=e.indexOf(o);if(s!==-1)return{triggerPos:n+s+1,triggerCharacter:o}}return null}function wk(e){let n=0;for(let i of e)i==="("?n++:i===")"&&n--;return n}function _k(e,n,i=gk){let o=e.lineAt(n),s=Math.max(1,o.number-i),c=e.line(s).from;return wk(e.sliceString(c,n))>0}$u=function(e,n,i={}){let{preserveCursor:o=!0,effects:s,userEvent:c}=i,d=e.state.doc;if(d.toString()!==n)if(o&&e.hasFocus){let f=e.state.selection.main.head,p=d.lineAt(f),y=p.number,w=f-p.from,_=e.state.update({changes:{from:0,to:d.length,insert:n}}).state.doc,C;if(y<=_.lines){let E=_.line(y),T=E.length;C=E.from+Math.min(w,T)}else C=_.line(_.lines).to;e.dispatch({changes:{from:0,to:d.length,insert:n},annotations:qd.of(!0),selection:{anchor:C},effects:s,userEvent:c})}else e.dispatch({changes:{from:0,to:d.length,insert:n},effects:s,userEvent:c})},bo=function(){return Ol.define({combine:e=>e[0]})};const xg=bo(),kg=bo(),jd=bo(),zd=bo(),Sg=bo();Bw=function({completionConfig:e,hotkeys:n,placeholderType:i,lspConfig:o,diagnosticsConfig:s}){return[xg.of(e),kg.of(n),jd.of(i),Sg.of({...o,diagnostics:s})]},Ku=new Mu;function xk(e){return Object.values(e.cellRuntime).some(n=>n.status==="running")}function kk(e){return Object.values(e.cellRuntime).filter(n=>n.status==="running"||n.status==="queued").length}function Sk(e){return Mm(e).length>0}Aw=function(e){return e.cellIds.inOrderIds.map(n=>e.cellData[n])};function Ck({cellHandles:e}){let n={};for(let[i,o]of ci.entries(e))o.current&&(n[i]=o.current.editorView);return n}Nm=function(e){let{cellIds:n,cellData:i}=e,o=[];for(let s of n.inOrderIds)i[s].config.disabled&&o.push(s);return o},pm=function(e){let{cellIds:n,cellData:i}=e,o=[];for(let s of n.inOrderIds)i[s].config.disabled||o.push(s);return o};function Ek(e){return e.history.length>0}px=function(e,n){let i=e.cellIds.findWithId(n).getDescendants(n);return{stale:i.some(o=>{var s,c;return((s=e.cellRuntime[o])==null?void 0:s.staleInputs)||((c=e.cellData[o])==null?void 0:c.edited)}),errored:i.some(o=>{var s;return(s=e.cellRuntime[o])==null?void 0:s.errored}),runningOrQueued:i.some(o=>{var s,c;return((s=e.cellRuntime[o])==null?void 0:s.status)==="running"||((c=e.cellRuntime[o])==null?void 0:c.status)==="queued"})}},Mm=function(e){let{cellIds:n,cellData:i,cellRuntime:o}=e;return n.inOrderIds.filter(s=>nm({executionTime:o[s].runElapsedTimeMs??i[s].lastExecutionTime,status:o[s].status,errored:o[s].errored,interrupted:o[s].interrupted,stopped:o[s].stopped})||i[s].edited||o[s].interrupted||o[s].staleInputs&&!(o[s].status==="disabled-transitively"||i[s].config.disabled))},nm=function({executionTime:e,status:n,errored:i,interrupted:o,stopped:s}){return e===null&&n!=="queued"&&n!=="running"&&!(i||o||s)},Pt=Ol.define({combine:e=>e[0]}),Wi=Ol.define({combine:e=>e[0]});var Tk={...Th,caseInsensitiveIdentifiers:!0,identifierQuotes:"`"};const Cg=Rh.define(Tk),Eg=Rh.define({charSetCasts:!0,doubleQuotedStrings:!1,unquotedBitLiterals:!0,hashComments:!1,spaceAfterDashes:!1,specialVar:"@?",identifierQuotes:'"',caseInsensitiveIdentifiers:!0,keywords:"percentile_cont row_number rank dense_rank rank_dense percent_rank cume_dist ntile lag lead first_value last_value nth_value !__postfix !~~ !~~* % & && * ** + - ->> / // <-> << <=> <@ >> @ @> Calendar JSON TimeZone ^ ^@ abort abs absolute access access_mode acos acosh action add add_parquet_key admin after age aggregate alias all all_profiling_output allow_community_extensions allow_extensions_metadata_mismatch allow_persistent_secrets allow_unredacted_secrets allow_unsigned_extensions allowed_directories allowed_paths also alter always analyse analyze and anti any any_value apply approx_count_distinct approx_quantile approx_top_k arbitrary arg_max arg_max_null arg_min arg_min_null argmax argmin array array_agg array_aggr array_aggregate array_append array_apply array_cat array_concat array_contains array_cosine_distance array_cosine_similarity array_cross_product array_distance array_distinct array_dot_product array_extract array_filter array_grade_up array_has array_has_all array_has_any array_indexof array_inner_product array_intersect array_length array_negative_dot_product array_negative_inner_product array_pop_back array_pop_front array_position array_prepend array_push_back array_push_front array_reduce array_resize array_reverse array_reverse_sort array_select array_slice array_sort array_to_json array_to_string array_to_string_comma_default array_transform array_unique array_value array_where array_zip arrow_large_buffer_size arrow_lossless_conversion arrow_output_list_view arrow_output_version arrow_scan arrow_scan_dumb as asc ascii asin asinh asof asof_loop_join_threshold assertion assignment asymmetric at atan atan2 atanh attach attribute authorization autoinstall_extension_repository autoinstall_known_extensions autoload_known_extensions avg backward bar base64 before begin between bigint bin binary binary_as_string bit bit_and bit_count bit_length bit_or bit_position bit_xor bitstring bitstring_agg blob bool bool_and bool_or boolean both bpchar by bytea cache call called can_cast_implicitly cardinality cascade cascaded case cast cast_to_type catalog catalog_error_max_schemas cbrt ceil ceiling centuries century chain char char_length character character_length characteristics check checkpoint checkpoint_threshold chr class close cluster coalesce col_description collate collation collations column columns combine comment comments commit committed compression concat concat_ws concurrently configuration conflict connection constant_or_null constraint constraints contains content continue conversion copy copy_database corr cos cosh cost cot count count_if count_star countif covar_pop covar_samp create create_sort_key cross csv cube current current_catalog current_connection_id current_database current_date current_localtime current_localtimestamp current_query current_query_id current_role current_schema current_schemas current_setting current_transaction_id current_user currval cursor custom_extension_repository custom_profiling_settings custom_user_agent cycle damerau_levenshtein data database database_list database_size date date_add date_diff date_part date_sub date_trunc datediff datepart datesub datetime datetrunc day dayname dayofmonth dayofweek dayofyear days deallocate debug_asof_iejoin debug_checkpoint_abort debug_force_external debug_force_no_cross_product debug_skip_checkpoint_on_commit debug_verify_vector debug_window_mode dec decade decades decimal declare decode default default_block_size default_collation default_null_order default_order default_secret_storage defaults deferrable deferred definer degrees delete delimiter delimiters depends desc describe detach dictionary disable disable_checkpoint_on_shutdown disable_logging disable_object_cache disable_optimizer disable_parquet_prefetching disable_print_progress_bar disable_profile disable_profiling disable_progress_bar disable_timestamptz_casts disable_verification disable_verify_external disable_verify_fetch_row disable_verify_parallelism disable_verify_serializer disabled_compression_methods disabled_filesystems disabled_log_types disabled_optimizers discard distinct divide do document domain double drop duckdb_api duckdb_columns duckdb_constraints duckdb_databases duckdb_dependencies duckdb_extensions duckdb_external_file_cache duckdb_functions duckdb_indexes duckdb_keywords duckdb_log_contexts duckdb_logs duckdb_logs_parsed duckdb_memory duckdb_optimizers duckdb_prepared_statements duckdb_schemas duckdb_secret_types duckdb_secrets duckdb_sequences duckdb_settings duckdb_table_sample duckdb_tables duckdb_temporary_files duckdb_types duckdb_variables duckdb_views dynamic_or_filter_threshold each editdist3 element_at else enable enable_checkpoint_on_shutdown enable_external_access enable_external_file_cache enable_fsst_vectors enable_geoparquet_conversion enable_http_logging enable_http_metadata_cache enable_logging enable_macro_dependencies enable_object_cache enable_optimizer enable_print_progress_bar enable_profile enable_profiling enable_progress_bar enable_progress_bar_print enable_verification enable_view_dependencies enabled_log_types encode encoding encrypted end ends_with entropy enum enum_code enum_first enum_last enum_range enum_range_boundary epoch epoch_ms epoch_ns epoch_us equi_width_bins era error errors_as_json escape even event except exclude excluding exclusive execute exists exp explain explain_output export export_state extension extension_directory extension_versions extensions external external_threads extract factorial false family favg fdiv fetch file_search_path filter finalize first flatten float float4 float8 floor fmod following for force force_bitpacking_mode force_checkpoint force_compression foreign format formatReadableDecimalSize formatReadableSize format_bytes format_pg_type format_type forward freeze from from_base64 from_binary from_hex from_json from_json_strict fsum full function functions gamma gcd gen_random_uuid generate_series generate_subscripts generated geomean geometric_mean get_bit get_block_size get_current_time get_current_timestamp getvariable glob global grade_up grant granted greatest greatest_common_divisor group group_concat grouping grouping_id groups guid hamming handler having header hex histogram histogram_exact histogram_values hold home_directory hour hours http_logging_output http_proxy http_proxy_password http_proxy_username hugeint identity ieee_floating_point_ops if ignore ilike ilike_escape immediate immediate_transaction_mode immutable implicit import import_database in in_search_path include including increment index index_scan_max_count index_scan_percentage indexes inet_client_addr inet_client_port inet_server_addr inet_server_port inherit inherits initially inline inner inout input insensitive insert install instead instr int int1 int128 int16 int2 int32 int4 int64 int8 integer integer_division integral intersect interval into invoker is is_histogram_other_bin isfinite isinf isnan isnull isodow isolation isoyear jaccard jaro_similarity jaro_winkler_similarity join json json_array json_array_length json_contains json_deserialize_sql json_each json_execute_serialized_sql json_exists json_extract json_extract_path json_extract_path_text json_extract_string json_group_array json_group_object json_group_structure json_keys json_merge_patch json_object json_pretty json_quote json_serialize_plan json_serialize_sql json_structure json_transform json_transform_strict json_tree json_type json_valid json_value julian kahan_sum key kurtosis kurtosis_pop label lambda lambda_syntax language large last last_day late_materialization_max_rows lateral lcase lcm leading leakproof least least_common_multiple left left_grapheme len length length_grapheme level levenshtein lgamma like like_escape limit list list_aggr list_aggregate list_any_value list_append list_apply list_approx_count_distinct list_avg list_bit_and list_bit_or list_bit_xor list_bool_and list_bool_or list_cat list_concat list_contains list_cosine_distance list_cosine_similarity list_count list_distance list_distinct list_dot_product list_element list_entropy list_extract list_filter list_first list_grade_up list_has list_has_all list_has_any list_histogram list_indexof list_inner_product list_intersect list_kurtosis list_kurtosis_pop list_last list_mad list_max list_median list_min list_mode list_negative_dot_product list_negative_inner_product list_pack list_position list_prepend list_product list_reduce list_resize list_reverse list_reverse_sort list_select list_sem list_skewness list_slice list_sort list_stddev_pop list_stddev_samp list_string_agg list_sum list_transform list_unique list_value list_var_pop list_var_samp list_where list_zip listagg listen ln load local location lock lock_configuration locked log log10 log2 log_query_path logged logging_level logging_mode logging_storage logical long lower lpad ltrim macro mad make_date make_time make_timestamp make_timestamp_ns make_timestamptz map map_concat map_contains map_contains_entry map_contains_value map_entries map_extract map_extract_value map_from_entries map_keys map_to_pg_oid map_values mapping match materialized max max_by max_expression_depth max_memory max_temp_directory_size max_vacuum_tasks maxvalue md5 md5_number md5_number_lower md5_number_upper mean median memory_limit merge_join_threshold metadata_info method microsecond microseconds millennia millennium millisecond milliseconds min min_by minute minutes minvalue mismatches mod mode month monthname months move multiply name names nanosecond national natural nchar nested_loop_join_threshold new next nextafter nextval nfc_normalize no none normalized_interval not not_ilike_escape not_like_escape nothing notify notnull now nowait null null_order nullif nulls numeric nvarchar obj_description object octet_length of off offset oid oids old old_implicit_casting on only operator option options or ord order order_by_non_integer_literal ordered_aggregate_threshold ordinality others out outer over overlaps overlay overriding owned owner pandas_analyze_sample pandas_scan parallel parquet_bloom_probe parquet_file_metadata parquet_kv_metadata parquet_metadata parquet_metadata_cache parquet_scan parquet_schema parse_dirname parse_dirpath parse_duckdb_log_message parse_filename parse_path parser partial partition partitioned partitioned_write_flush_threshold partitioned_write_max_open_files passing password percent perfect_ht_threshold persistent pi pivot pivot_filter_threshold pivot_limit pivot_longer pivot_wider placing plans platform policy position positional pow power pragma pragma_collations pragma_database_size pragma_metadata_info pragma_platform pragma_show pragma_storage_info pragma_table_info pragma_user_agent pragma_version preceding precision prefer_range_joins prefetch_all_parquet_files prefix prepare prepared preserve preserve_identifier_case preserve_insertion_order primary printf prior privileges procedural procedure produce_arrow_string_view product profile_output profiling_mode profiling_output program progress_bar_time publication python_enable_replacements python_map_function python_scan_all_frames qualify quantile quantile_cont quantile_disc quarter quarters query query_table quote radians random range read read_blob read_csv read_csv_auto read_json read_json_auto read_json_objects read_json_objects_auto read_ndjson read_ndjson_auto read_ndjson_objects read_parquet read_text real reassign recheck recursive reduce ref references referencing refresh regexp_escape regexp_extract regexp_extract_all regexp_full_match regexp_matches regexp_replace regexp_split_to_array regexp_split_to_table regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release remap_struct rename repeat repeat_row repeatable replace replica reservoir_quantile reset respect restart restrict returning returns reverse revoke right right_grapheme role rollback rollup round round_even roundbankers row row_to_json rows rpad rtrim rule sample savepoint scalar_subquery_error_on_multiple_rows scheduler_process_partial schema schemas scope scroll search search_path second seconds secret secret_directory security select sem semi seq_scan sequence sequences serializable server session session_user set set_bit setof sets setseed sha1 sha256 share shobj_description short show show_databases show_tables show_tables_expanded sign signbit signed similar simple sin sinh skewness skip smallint snapshot sniff_csv some sorted split split_part sql sqrt stable standalone start starts_with statement statistics stats stddev stddev_pop stddev_samp stdin stdout storage storage_compatibility_version storage_info stored str_split str_split_regex streaming_buffer_size strftime strict string string_agg string_split string_split_regex string_to_array strip strip_accents strlen strpos strptime struct struct_concat struct_extract struct_extract_at struct_insert struct_pack subscription substr substring substring_grapheme subtract suffix sum sum_no_overflow sumkahan summarize summary symmetric sysid system table table_info tables tablesample tablespace tan tanh temp temp_directory template temporary test_all_types test_vector_types text then threads ties time time_bucket timestamp timestamp_ms timestamp_ns timestamp_s timestamp_us timestamptz timetz timetz_byte_comparable timezone timezone_hour timezone_minute tinyint to to_base to_base64 to_binary to_centuries to_days to_decades to_hex to_hours to_json to_microseconds to_millennia to_milliseconds to_minutes to_months to_quarters to_seconds to_timestamp to_weeks to_years today trailing transaction transaction_timestamp transform translate treat trigger trim true trunc truncate truncate_duckdb_logs trusted try_cast try_strptime txid_current type typeof types ubigint ucase uhugeint uint128 uint16 uint32 uint64 uint8 uinteger unbin unbounded uncommitted unencrypted unhex unicode union union_extract union_tag union_value unique unknown unlisten unlogged unnest unpack unpivot unpivot_list until update upper url_decode url_encode use user user_agent username using usmallint utinyint uuid uuid_extract_timestamp uuid_extract_version uuidv4 uuidv7 vacuum valid validate validator value values var_pop var_samp varbinary varchar variable variadic variance varint varying vector_type verbose verify_external verify_fetch_row verify_parallelism verify_serializer version view views virtual volatile wal_autocheckpoint wavg week weekday weekofyear weeks weighted_avg when where which_secret whitespace window with within without work worker_threads wrapper write write_log xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlnamespaces xmlparse xmlpi xmlroot xmlserialize xmltable xor year years yearweek yes zone zstd_min_string_length | || ~ ~~ ~~* ~~~",types:"JSON bigint binary bit bitstring blob bool boolean bpchar bytea char date datetime dec decimal double enum float float4 float8 guid hugeint int int1 int128 int16 int2 int32 int4 int64 int8 integer integral interval list logical long map null numeric nvarchar oid real row short signed smallint string struct text time timestamp timestamp_ms timestamp_ns timestamp_s timestamp_us timestamptz timetz tinyint ubigint uhugeint uint128 uint16 uint32 uint64 uint8 uinteger union usmallint utinyint uuid varbinary varchar varint"});var Rk=new Set("postgresql.postgres.couchbase.db2.db2i.tidb.mysql.sqlite.mssql.sqlserver.duckdb.mariadb.cassandra.noql.spark.awsathena.athena.bigquery.hive.redshift.snowflake.flink.mongodb.trino.oracle.oracledb.singlestoredb.timescaledb.databricks.datafusion.microsoft sql server".split("."));function ic(e){return Rk.has(e)}function Tg(e){let n=e.dialect;if(!ic(n))return Re.debug("Unknown dialect",{dialect:n}),Ds;switch(n){case"postgresql":case"postgres":return Th;case"mysql":return pD;case"sqlite":return dD;case"mssql":case"sqlserver":case"microsoft sql server":return mD;case"duckdb":return Eg;case"mariadb":return gD;case"cassandra":return yD;case"oracledb":case"oracle":return uD;case"bigquery":return Cg;case"timescaledb":return Th;case"awsathena":case"athena":case"db2i":case"db2":case"hive":case"redshift":case"snowflake":case"flink":case"mongodb":case"noql":case"couchbase":case"trino":case"tidb":case"singlestoredb":case"spark":case"databricks":case"datafusion":return Re.debug("Unsupported dialect",{dialect:n}),Ds;default:return _s(n),Ds}}var Dk={...hD,caseInsensitiveIdentifiers:!0,identifierQuotes:"'"};let Ds;Ds=Rh.define(Dk),Vi="__marimo_duckdb",ko=new Set([Vi]),H_="memory",Kl=function(e){return e===""};var Os={formatTableName:e=>e,formatSelectClause:(e,n)=>`SELECT ${e} FROM ${n} LIMIT 100`};function Ok(e){if(e=e.toLowerCase(),!ic(e))return Os;switch(e){case"bigquery":{let n=Cg.spec.identifierQuotes;return{formatTableName:i=>`${n}${i}${n}`,formatSelectClause:Os.formatSelectClause}}case"mssql":case"sqlserver":case"microsoft sql server":return{formatTableName:Os.formatTableName,formatSelectClause:(n,i)=>`SELECT TOP 100 ${n} FROM ${i}`};case"timescaledb":case"postgres":case"postgresql":case"duckdb":return{formatTableName:n=>n.split(".").map(i=>`"${i}"`).join("."),formatSelectClause:(n,i)=>`SELECT ${n==="*"?"*":`"${n}"`} FROM ${i} LIMIT 100`};case"db2":case"db2i":case"mysql":case"sqlite":case"mariadb":case"cassandra":case"noql":case"awsathena":case"athena":case"hive":case"redshift":case"snowflake":case"flink":case"mongodb":case"oracle":case"oracledb":case"couchbase":case"tidb":case"spark":case"trino":case"singlestoredb":case"databricks":case"datafusion":return Os;default:return _s(e),Os}}G_=function({table:e,columnName:n,sqlTableContext:i}){if(i){let{engine:o,schema:s,defaultSchema:c,defaultDatabase:d,database:f,dialect:p}=i,y=e.name;Kl(s)?y=f===d?y:`${f}.${y}`:(s!==c&&(y=`${s}.${y}`),f!==d&&(y=`${f}.${y}`));let w=Ok(p),_=w.formatTableName(y),C=w.formatSelectClause(n,_);return o==="__marimo_duckdb"?`_df = mo.sql(f""" +${C} +""")`:`_df = mo.sql(f""" +${C} +""", engine=${o})`}return`_df = mo.sql(f'SELECT "${n}" FROM ${e.name} LIMIT 100')`},__=function(e,n){if(n==="date"||n==="datetime"||n==="time"){if(e==="min")return"Earliest";if(e==="max")return"Latest"}return e};function Pk(){return{tables:[],expandedTables:new Set,expandedColumns:new Set,columnsPreviews:new Map}}var{reducer:VD,createActions:$D,valueAtom:Rg,useActions:Mk}=Ll(Pk,{addDatasets:(e,n)=>{let{previewDatasetColumn:i}=Hi();for(let f of n.tables)for(let p of f.columns){let y=`${f.name}:${p.name}`;e.expandedColumns.has(y)&&i({tableName:f.name,columnName:p.name,source:f.source,sourceType:f.source_type})}let o=e.tables;n.clear_channel&&(o=o.filter(f=>f.source!==n.clear_channel));let s=[...n.tables,...o],c=new Set,d=s.filter(f=>{let p=`${f.name}:${f.source}`;return c.has(p)?!1:(c.add(p),!0)}).sort((f,p)=>f.name.localeCompare(p.name));return{...e,tables:d}},filterDatasetsFromVariables:(e,n)=>{let i=new Set(n),o=e.tables.filter(s=>s.variable_name?i.has(s.variable_name):!0);return{...e,tables:o}},toggleTable:(e,n)=>{let i=new Set(e.expandedTables);return i.has(n)?i.delete(n):i.add(n),{...e,expandedTables:i}},toggleColumn:(e,n)=>{let i=`${n.table}:${n.column}`,o=new Set(e.expandedColumns);return o.has(i)?o.delete(i):o.add(i),{...e,expandedColumns:o}},closeAllColumns:e=>({...e,expandedColumns:new Set}),addColumnPreview:(e,n)=>{let i=`${n.table_name}:${n.column_name}`,o=new Map(e.columnsPreviews);return o.set(i,n),{...e,columnsPreviews:o}}});z_=()=>Yn(Rg),ud=ze(e=>e(Rg).tables),v_=ze(new Set),W_=ze(!1),ox=function(){return Mk()};var Lk=new Map([[Vi,{name:Vi,dialect:"duckdb",source:"duckdb",display_name:"DuckDB (In-Memory)",databases:[]}]]);function Nk(){return{latestEngineSelected:Vi,connectionsMap:Lk}}let Ik,Ak;({reducer:Ik,createActions:Ak,valueAtom:So,useActions:m_}=Ll(Nk,{addDataSourceConnection:(e,n)=>{if(n.connections.length===0)return e;let{latestEngineSelected:i,connectionsMap:o}=e,s=new Map(o);for(let c of n.connections)s.set(c.name,c);return{latestEngineSelected:i,connectionsMap:s}},filterDataSourcesFromVariables:(e,n)=>{let{latestEngineSelected:i,connectionsMap:o}=e,s=new Set(n),c=new Map([...o].filter(([d])=>ko.has(d)?!0:s.has(d)));return{latestEngineSelected:c.has(i)?i:Vi,connectionsMap:c}},clearDataSourceConnections:()=>({latestEngineSelected:Vi,connectionsMap:new Map}),removeDataSourceConnection:(e,n)=>{let{latestEngineSelected:i,connectionsMap:o}=e,s=new Map(o);return s.delete(n),{latestEngineSelected:s.has(i)?i:Vi,connectionsMap:s}},addTableList:(e,n)=>{let{tables:i,sqlTableContext:o}=n,{connectionsMap:s,latestEngineSelected:c}=e,d=o.engine,f=s.get(d);if(!f)return e;let p=new Map(s),y={...f,databases:f.databases.map(w=>w.name===o.database?{...w,schemas:w.schemas.map(_=>_.name===o.schema?{..._,tables:i}:_)}:w)};return p.set(d,y),{latestEngineSelected:c,connectionsMap:p}},addTable:(e,n)=>{let{table:i,sqlTableContext:o}=n,{connectionsMap:s,latestEngineSelected:c}=e,d=o.engine,f=i.name,p=s.get(d);if(!p)return e;let y=new Map(s),w={...p,databases:p.databases.map(_=>_.name===o.database?{..._,schemas:_.schemas.map(C=>{if(C.name!==o.schema)return C;let E=C.tables.length===0?[i]:C.tables.map(T=>T.name===f?i:T);return{...C,tables:E}})}:_)};return y.set(d,w),{latestEngineSelected:c,connectionsMap:y}}})),sd=ze(e=>e(So).connectionsMap);function Dg(e){let n=lt.get(So);n.connectionsMap.has(e)&<.set(So,{...n,latestEngineSelected:e})}rx=ze(e=>{let n=lt.get(ud),i=e(So).connectionsMap,o=new Map;for(let s of n)o.set(s.name,s);for(let s of i.values())for(let c of s.databases){let d=c.name===s.default_database||s.databases.length===1;for(let f of c.schemas){let p=f.name===s.default_schema,y=Kl(f.name);for(let w of f.tables){let _;if(_=w.name,y){_=d?w.name:`${c.name}.${w.name}`,o.has(_)?Re.warn(`Table name collision for ${_}. Skipping.`):o.set(_,w);continue}if(d&&p&&!o.has(_)){o.set(_,w);continue}if(_=`${f.name}.${w.name}`,d&&!o.has(_)){o.set(_,w);continue}_=`${c.name}.${f.name}.${w.name}`,o.has(_)?Re.warn(`Table name collision for ${_}. Skipping.`):o.set(_,w)}}}return o}),P_=function(e){return e.variable_name?"dataframe":"table"};let Ps,Fd,Og,Bd,Pg,Mg,Hd,Lg;Ps=class{constructor(e,n={}){ke(this,"cache",new Map);this.maxSize=e,this.options=n}getOrCreate(e){In(this.options.create,"create function is required");let n=this.cache.get(e);if(n!==void 0)return n;let i=this.options.create(e);return this.cache.set(e,i),i}get(e){let n=this.cache.get(e);return n!==void 0&&(this.cache.delete(e),this.cache.set(e,n)),n}set(e,n){if(this.cache.has(e)&&this.cache.delete(e),this.cache.set(e,n),this.cache.size>this.maxSize){let i=this.cache.keys().next().value;i!==void 0&&this.cache.delete(i)}}keys(){return this.cache.keys()}values(){return this.cache.values()}entries(){return this.cache.entries()}delete(e){this.cache.delete(e)}},ym=Tt("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),Lh=Tt("book-marked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]),Yh=Tt("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),dm=Tt("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),sm=Tt("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]),Fd=Tt("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),cm=Tt("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),Vh=Tt("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),Rm=Tt("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Og=Tt("cog",[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]]),$h=Tt("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]),Bd=Tt("database-backup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]]),Cs=Tt("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),Qu=Tt("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),rm=Tt("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Pg=Tt("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),Bu=Tt("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Mg=Tt("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),_o=Tt("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),Nh=Tt("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),Am=Tt("notebook-pen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]),em=Tt("paint-roller",[["rect",{width:"16",height:"6",x:"2",y:"2",rx:"2",key:"jcyz7m"}],["path",{d:"M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2",key:"1b9h7c"}],["rect",{width:"4",height:"6",x:"8",y:"16",rx:"1",key:"d6e7yl"}]]),Wh=Tt("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),Hd=Tt("search-check",[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Lg=Tt("square-dashed-bottom-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]),Fh=Tt("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),wo=Tt("table-2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]),Jh=Tt("text-search",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]),Qh=Tt("variable",[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]]),ql=function(e){switch(e){case"duckdb":return"DuckDB";case"motherduck":return"MotherDuck";case"sqlite":return"SQLite";case"postgres":case"postgresql":return"PostgreSQL";case"mysql":return"MySQL";case"mariadb":return"MariaDB";case"mssql":case"microsoft sql server":return"Microsoft SQL Server";case"oracle":return"Oracle";case"redshift":return"Amazon Redshift";case"snowflake":return"Snowflake";case"bigquery":return"Google BigQuery";case"clickhouse":return"ClickHouse";case"timeplus":return"Timeplus";case"databricks":return"Databricks";case"db2":return"IBM Db2";case"hive":return"Apache Hive";case"impala":return"Apache Impala";case"presto":return"Presto";case"trino":return"Trino";case"cockroachdb":return"CockroachDB";case"timescaledb":return"TimescaleDB";case"singlestore":return"SingleStore";case"cassandra":return"Apache Cassandra";case"mongodb":return"MongoDB";case"iceberg":return"Apache Iceberg";default:return e}};function Ng(e){let[n,i]=e.split(" ");return i?`${ql(n)} ${i}`:ql(e)}ju={boolean:g4,date:m4,time:Rm,datetime:Fd,temporal:Fd,number:bh,string:y4,integer:bh,unknown:sm},L_=function(e){switch(e){case"boolean":return"bg-(--orange-4)";case"date":case"time":case"datetime":case"temporal":return"bg-(--grass-4) dark:bg-(--grass-5)";case"number":case"integer":return"bg-(--purple-4)";case"string":return"bg-(--blue-4)";case"unknown":return"bg-(--slate-4) dark:bg-(--slate-6)";default:return _s(e),"bg-(--slate-4) dark:bg-(--slate-6)"}};let Ms,F,Ig,Vd,Ag,Lo,qg,jg,zg,Fg,Bg,No,Zr,za,fi,$d;Pa=class{constructor(e,n){this.singular=e,this._plural=n}pluralize(e){return e===1?this.singular:this.plural}get plural(){return this._plural??`${this.singular}s`}},I_=class wx{constructor(n){this.words=n}static of(...n){return new wx(n.map(i=>typeof i=="string"?new Pa(i):i))}join(n,i){return this.words.map(o=>o.pluralize(i)).join(n)}},Ms=Gr(),F=vh(k4(),1),Ig=5,Vd={boolean:"bg-[var(--orange-4)] text-[var(--orange-11)]",date:"bg-[var(--grass-4)] text-[var(--grass-11)]",time:"bg-[var(--grass-4)] text-[var(--grass-11)]",datetime:"bg-[var(--grass-4)] text-[var(--grass-11)]",number:"bg-[var(--purple-4)] text-[var(--purple-11)]",integer:"bg-[var(--purple-4)] text-[var(--purple-11)]",string:"bg-[var(--blue-4)] text-[var(--blue-11)]",unknown:"bg-[var(--slate-4)] text-[var(--slate-11)]"},Ag={local:"bg-[var(--blue-4)] text-[var(--blue-11)]",duckdb:"bg-[var(--amber-4)] text-[var(--amber-11)]",connection:"bg-[var(--green-4)] text-[var(--green-11)]",catalog:"bg-[var(--purple-4)] text-[var(--purple-11)]"},Lo="p-3 min-w-[250px] flex flex-col divide-y",qg=new Pa("column","columns"),jg=new Pa("row","rows"),zg=new Pa("schema","schemas"),Fg=new Pa("table","tables"),Bg=new Pa("database","databases"),No=e=>{let n=(0,Ms.c)(6),{icon:i,title:o,badge:s}=e,c;n[0]===o?c=n[1]:(c=(0,F.jsx)("h3",{className:"font-semibold text-sm",children:o}),n[0]=o,n[1]=c);let d;return n[2]!==s||n[3]!==i||n[4]!==c?(d=(0,F.jsxs)("div",{className:"flex items-center gap-2 pb-2",children:[i,c,s]}),n[2]=s,n[3]=i,n[4]=c,n[5]=d):d=n[5],d},Zr=e=>{let n=(0,Ms.c)(5),{label:i,value:o}=e,s;n[0]===i?s=n[1]:(s=(0,F.jsxs)("span",{className:"text-[var(--slate-11)]",children:[i,":"]}),n[0]=i,n[1]=s);let c;return n[2]!==s||n[3]!==o?(c=(0,F.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[s,o]}),n[2]=s,n[3]=o,n[4]=c):c=n[4],c},za=e=>{let n=(0,Ms.c)(5),{icon:i,text:o}=e,s;n[0]===o?s=n[1]:(s=(0,F.jsx)("span",{className:"text-xs text-[var(--slate-11)]",children:o}),n[0]=o,n[1]=s);let c;return n[2]!==i||n[3]!==s?(c=(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[i,s]}),n[2]=i,n[3]=s,n[4]=c):c=n[4],c},fi=e=>{let n=(0,Ms.c)(15),{title:i,items:o,totalCount:s,limit:c}=e,d=i===void 0?"":i,f=c===void 0?Ig:c;if(o.length===0)return null;let p;n[0]!==o||n[1]!==f?(p=o.slice(0,f),n[0]=o,n[1]=f,n[2]=p):p=n[2];let y=p,w=s>f,_;n[3]===d?_=n[4]:(_=d&&(0,F.jsxs)("h4",{className:"text-xs font-medium text-[var(--slate-11)] mb-2",children:[d,":"]}),n[3]=d,n[4]=_);let C;n[5]!==w||n[6]!==f||n[7]!==s?(C=w&&(0,F.jsxs)("div",{className:"text-xs text-[var(--slate-10)] text-center py-1",children:["... and ",s-f," more"]}),n[5]=w,n[6]=f,n[7]=s,n[8]=C):C=n[8];let E;n[9]!==C||n[10]!==y?(E=(0,F.jsxs)("div",{className:"flex flex-col gap-1 overflow-y-auto",children:[y,C]}),n[9]=C,n[10]=y,n[11]=E):E=n[11];let T;return n[12]!==_||n[13]!==E?(T=(0,F.jsxs)("div",{className:"py-2",children:[_,E]}),n[12]=_,n[13]=E,n[14]=T):T=n[14],T},$d=e=>Vd[e]||Vd.unknown;const qk=e=>{var d,f;let n=e.type==="view"?(0,F.jsx)(Qu,{className:"w-4 h-4 text-[var(--blue-9)]"}):(0,F.jsx)(wo,{className:"w-4 h-4 text-[var(--green-9)]"}),i=(0,F.jsx)(mr,{variant:"secondary",className:`text-xs ${e.type==="view"?"bg-[var(--blue-4)] text-[var(--blue-11)]":"bg-[var(--green-4)] text-[var(--green-11)]"}`,children:e.type}),o=e.columns.map(p=>{let y=ju[p.type];return(0,F.jsxs)("div",{className:"flex items-center justify-between text-xs rounded",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(y,{className:"w-3 h-3 text-[var(--slate-9)]"}),(0,F.jsx)("span",{className:"font-mono",children:p.name})]}),(0,F.jsx)(mr,{variant:"outline",className:`text-xs ${$d(p.type)}`,children:p.type})]},p.name)}),s=e.primary_keys&&e.primary_keys.length>0,c=e.indexes&&e.indexes.length>0;return(0,F.jsxs)("div",{className:`${Lo} min-w-[300px]`,children:[(0,F.jsx)(No,{icon:n,title:e.name,badge:i}),(0,F.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,F.jsx)(Zr,{label:"Source",value:(0,F.jsx)(mr,{variant:"outline",className:`text-xs ${Ag[e.source_type]}`,children:e.source})}),e.variable_name&&(0,F.jsx)(Zr,{label:"Variable",value:(0,F.jsx)("code",{className:"text-xs bg-[var(--slate-4)] px-1 rounded",children:e.variable_name})}),e.engine&&(0,F.jsx)(Zr,{label:"Engine",value:(0,F.jsx)("code",{className:"text-xs bg-[var(--slate-4)] px-1 rounded",children:e.engine})})]}),(e.num_columns!=null||e.num_rows!=null)&&(0,F.jsxs)("div",{className:"grid grid-cols-2 gap-2 py-2",children:[e.num_columns!=null&&(0,F.jsx)(za,{icon:(0,F.jsx)($h,{className:"w-3 h-3 text-[var(--slate-9)]"}),text:`${e.num_columns} ${qg.pluralize(e.num_columns)}`}),e.num_rows!=null&&(0,F.jsx)(za,{icon:(0,F.jsx)(bh,{className:"w-3 h-3 text-[var(--slate-9)]"}),text:`${e.num_rows} ${jg.pluralize(e.num_rows)}`})]}),e.columns.length===0&&ac("column"),(s||c)&&(0,F.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[s&&(0,F.jsxs)("div",{className:"flex flex-row gap-1",children:[(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[(0,F.jsx)(OD,{className:"w-3 h-3 text-[var(--amber-9)]"}),(0,F.jsx)("span",{className:"text-xs font-medium text-[var(--slate-11)]",children:"Primary Keys:"})]}),(d=e.primary_keys)==null?void 0:d.map(p=>(0,F.jsx)(mr,{variant:"outline",className:"text-xs text-[var(--slate-11)]",children:p},p))]}),c&&(0,F.jsxs)("div",{className:"flex flex-row gap-1",children:[(0,F.jsxs)("div",{className:"flex items-center gap-1 mb-1",children:[(0,F.jsx)(Lh,{className:"w-3 h-3 text-[var(--purple-9)]"}),(0,F.jsx)("span",{className:"text-xs font-medium text-[var(--slate-11)]",children:"Indexes:"})]}),(f=e.indexes)==null?void 0:f.map(p=>(0,F.jsx)(mr,{variant:"outline",className:"text-xs text-[var(--slate-11)]",children:p},p))]})]}),e.columns.length>0&&(0,F.jsx)(fi,{items:o,totalCount:e.columns.length})]})},jk=e=>{var s;let n=ju[e.type],i=(0,F.jsx)(mr,{variant:"outline",className:`text-xs ${$d(e.type)}`,children:e.type}),o=((s=e.sample_values)==null?void 0:s.map((c,d)=>(0,F.jsx)("div",{className:"text-xs bg-[var(--slate-3)] rounded font-mono",children:c==null?"null":String(c)},d)))||[];return(0,F.jsxs)("div",{className:Lo,children:[(0,F.jsx)(No,{icon:(0,F.jsx)(n,{className:"w-4 h-4 text-[var(--slate-9)]"}),title:e.name,badge:i}),(0,F.jsxs)("div",{className:"flex flex-col gap-2 mt-2",children:[(0,F.jsx)(Zr,{label:"Type",value:(0,F.jsx)("span",{className:"font-medium",children:e.type})}),(0,F.jsx)(Zr,{label:"External Type",value:(0,F.jsx)("code",{className:"text-xs bg-[var(--slate-4)] px-1 rounded",children:e.external_type})})]}),e.sample_values&&e.sample_values.length>0&&(0,F.jsx)(fi,{title:"Sample Values",items:o,totalCount:e.sample_values.length})]})},zk=e=>{let n=(0,F.jsx)(mr,{variant:"outline",className:"text-xs bg-[var(--blue-4)] text-[var(--blue-11)]",children:e.dialect}),i=e.schemas.map(o=>(0,F.jsxs)("div",{className:"flex items-center justify-between text-xs rounded hover:bg-[var(--slate-3)]",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(_o,{className:"w-3 h-3 text-[var(--slate-9)]"}),(0,F.jsx)("span",{children:o.name})]}),(0,F.jsxs)(mr,{variant:"outline",className:"text-xs",children:[o.tables.length," ",Fg.pluralize(o.tables.length)]})]},o.name));return(0,F.jsxs)("div",{className:Lo,children:[(0,F.jsx)(No,{icon:(0,F.jsx)(Cs,{className:"w-4 h-4 text-[var(--blue-9)]"}),title:e.name,badge:n}),(0,F.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,F.jsx)(Zr,{label:"Dialect",value:(0,F.jsx)("span",{className:"font-medium",children:e.dialect})}),e.engine&&(0,F.jsx)(Zr,{label:"Engine",value:(0,F.jsx)("code",{className:"text-xs bg-[var(--slate-4)] px-1 rounded",children:e.engine})})]}),(0,F.jsx)("div",{className:"py-2",children:(0,F.jsx)(za,{icon:(0,F.jsx)(_o,{className:"w-3 h-3 text-[var(--slate-9)]"}),text:`${e.schemas.length} schema${e.schemas.length===1?"":"s"}`})}),e.schemas.length===0&&ac("schema"),e.schemas.length>0&&(0,F.jsx)(fi,{title:"Schemas",items:i,totalCount:e.schemas.length})]})},Fk=e=>{let n=(0,F.jsx)(mr,{variant:"outline",className:"text-xs bg-[var(--green-4)] text-[var(--green-11)]",children:"Schema"}),i=e.tables.map(o=>(0,F.jsxs)("div",{className:"flex items-center justify-between text-xs rounded hover:bg-[var(--slate-3)]",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[o.type==="view"?(0,F.jsx)(Qu,{className:"w-3 h-3 text-[var(--blue-9)]"}):(0,F.jsx)(wo,{className:"w-3 h-3 text-[var(--green-9)]"}),(0,F.jsx)("span",{children:o.name})]}),(0,F.jsx)(mr,{variant:"outline",className:`text-xs ${o.type==="view"?"bg-[var(--blue-4)] text-[var(--blue-11)]":"bg-[var(--green-4)] text-[var(--green-11)]"}`,children:o.type})]},o.name));return(0,F.jsxs)("div",{className:Lo,children:[(0,F.jsx)(No,{icon:(0,F.jsx)(_o,{className:"w-4 h-4 text-[var(--green-9)]"}),title:e.name,badge:n}),(0,F.jsx)("div",{className:"py-2",children:(0,F.jsx)(za,{icon:(0,F.jsx)(wo,{className:"w-3 h-3 text-[var(--slate-9)]"}),text:`${e.tables.length} table${e.tables.length===1?"":"s"}`})}),e.tables.length===0&&ac("table"),e.tables.length>0&&(0,F.jsx)(fi,{title:"Tables",items:i,totalCount:e.tables.length})]})};var Hg=(0,F.jsx)(mr,{variant:"outline",children:"default"}),Bk=8,Vg=3;let ac;jw=(e,n)=>{let i=e.databases.length,o=e.databases.reduce((p,y)=>p+y.schemas.length,0),s=(p,y)=>{if(p.tables.length===0)return null;let w=p.name===e.default_schema&&y,_=[];return o(0,F.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[(0,F.jsx)(wo,{className:"w-3 h-3 text-[var(--green-9)]"}),(0,F.jsx)("span",{className:"text-xs",children:C.name})]},C.name))),(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{className:"flex items-center gap-2 text-xs rounded hover:bg-[var(--slate-3)] ml-2",children:[(0,F.jsx)(_o,{className:"w-3 h-3 text-[var(--slate-9)]"}),(0,F.jsx)("span",{children:p.name}),w&&Hg,(0,F.jsxs)(mr,{variant:"outline",className:"text-xs ml-auto",children:[p.tables.length," tables"]})]}),(0,F.jsx)(fi,{items:_,totalCount:p.tables.length,limit:Vg})]},p.name)},c=e.databases.map(p=>{let y=p.name===e.default_database||e.databases.length===1,w=p.schemas.map(_=>s(_,y));return(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(Cs,{className:"w-3 h-3 text-[var(--blue-9)]"}),(0,F.jsx)("span",{className:"text-xs",children:p.name}),y&&Hg]}),w&&(0,F.jsx)(fi,{items:w,totalCount:p.schemas.length})]},p.name)}),d=e.name;ko.has(e.name)&&(d="In-Memory");let f=n==null?void 0:n.map(p=>(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(wo,{className:"w-3 h-3 text-[var(--blue-9)]"}),(0,F.jsx)("span",{className:"text-xs",children:p.name})]},p.name));return(0,F.jsxs)("div",{className:`${Lo} px-1`,children:[(0,F.jsx)(No,{icon:(0,F.jsx)(Og,{className:"w-4 h-4 text-[var(--purple-9)]"}),title:d}),(0,F.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,F.jsx)(Zr,{label:"Dialect",value:(0,F.jsx)("span",{className:"font-medium",children:ql(e.dialect)})}),(0,F.jsx)(Zr,{label:"Source",value:(0,F.jsx)(mr,{variant:"outline",className:"text-xs bg-[var(--green-4)] text-[var(--green-11)]",children:e.source})})]}),(0,F.jsxs)("div",{className:"flex flex-row justify-between py-2",children:[(0,F.jsx)(za,{icon:(0,F.jsx)(Cs,{className:"w-3 h-3 text-[var(--slate-9)]"}),text:`${i} ${Bg.pluralize(i)}`}),(0,F.jsx)(za,{icon:(0,F.jsx)(_o,{className:"w-3 h-3 text-[var(--slate-9)]"}),text:`${o} ${zg.pluralize(o)}`})]}),i>0&&(0,F.jsx)(fi,{items:c,totalCount:i}),f&&f.length>0&&(0,F.jsx)(fi,{title:"Dataframes",items:f,totalCount:f.length})]})},ac=e=>(0,F.jsxs)("div",{className:"flex items-start gap-2 mt-3",children:[(0,F.jsx)(Bu,{size:10,className:"mt-1 text-[var(--slate-10)] shrink-0"}),(0,F.jsxs)("span",{className:"text-xs text-[var(--slate-11)]",children:["No ",e," information available.",` +`,(0,F.jsx)("span",{className:"text-[var(--blue-10)]",children:"Introspect to see more details."})]})]});var oc=td(),$g=class{constructor(){ke(this,"schema",{})}addTable(e,n){let i={self:Vk({table:n}),children:n.columns.map(o=>Hk({column:o}))};return this.setAt([...e,n.name],i),this}addSchema(e,n){let i={self:$k({namespace:n,path:e}),children:{}};return this.setAt(e,i),this}addDatabase(e,n){let i={self:Wk({namespace:n,path:e}),children:{}};return this.setAt(e,i),this}setAt(e,n){let i=this.schema;for(let o of e.slice(0,-1))i[o]||(i[o]={children:{}}),i=i[o].children;i[e[e.length-1]]=n}build(){return this.schema}reset(){return this.schema={},this}};function Hk(e){return{label:e.column.name,type:"column",info:()=>{let n=document.createElement("div");return(0,oc.createRoot)(n).render(jk(e.column)),{dom:n}}}}function Vk(e){return{label:e.table.name,type:"table",info:()=>{let n=document.createElement("div");return(0,oc.createRoot)(n).render(qk(e.table)),{dom:n}}}}function $k(e){return{label:e.namespace.name,detail:e.path.join("."),type:"schema",info:()=>{let n=document.createElement("div");return(0,oc.createRoot)(n).render(Fk(e.namespace)),{dom:n}}}}function Wk(e){return{label:e.namespace.name,detail:e.path.join("."),type:"database",info:()=>{let n=document.createElement("div");return(0,oc.createRoot)(n).render(zk(e.namespace)),{dom:n}}}}var Uk=ze(e=>{let n=e(ud),i=new $g;for(let o of n)i.addTable([],o);return i.build()}),Kk=class{constructor(){this.cache=new Ps(10,{create:e=>this.getConnectionSchema(e)})}getConnection(e){return lt.get(sd).get(e)}getConnectionSchema(e){var d;let{default_database:n,databases:i,default_schema:o}=e,s=new $g,c=i.find(f=>f.name===n||i.length===1);if(((d=c??i[0])==null?void 0:d.schemas.some(f=>Kl(f.name)))??!1){for(let f of i){let p=f.name===(c==null?void 0:c.name),y=f.schemas.flatMap(w=>w.tables);s.addDatabase([f.name],f);for(let w of y)p?s.addTable([],w):s.addTable([f.name],w)}return{shouldAddLocalTables:!1,schema:s.build(),defaultSchema:c==null?void 0:c.name}}if(c)for(let f of c.schemas){s.addSchema([f.name],f);for(let p of f.tables)s.addTable([f.name],p)}for(let f of i){s.addDatabase([f.name],f);for(let p of f.schemas){s.addSchema([f.name,p.name],p);for(let y of p.tables)s.addTable([f.name,p.name],y)}}return{shouldAddLocalTables:!0,schema:s.build(),defaultSchema:o??void 0}}getInternalDialect(e){let n=this.getConnection(e);return n?n.dialect.toLowerCase():null}getDialect(e){let n=this.getConnection(e);return n?Tg(n):Ds}getCompletionSource(e){let n=this.getConnection(e);if(!n)return null;let i=()=>lt.get(Uk),o=this.cache.getOrCreate(n);return{dialect:Tg(n),schema:o.shouldAddLocalTables?{...o.schema,...i()}:o.schema,defaultSchema:o.defaultSchema,defaultTable:Qk(n)}}};function Qk(e){if(e.databases.length!==1)return;let n=e.databases[0];if(n.schemas.length!==1)return;let i=n.schemas[0];if(i.tables.length===1)return i.tables[0].name}const Fa=new Kk,Ls=Fi.define();zu=async function(e){let{sendFormat:n}=Hi(),i=ci.mapValues(e,s=>Jr(s)),o=await n({codes:i,lineLength:iw().formatting.line_length});for(let[s,c]of ci.entries(o.codes)){let d=s,f=i[d],p=e[d];p&&c!==f&&(p.state.facet(Pt).updateCellCode({cellId:d,code:c,formattingChange:!0}),xo(p,c))}},n_=function(){return zu(Ck(ad()))};async function Gk(e,n){let{formatDialect:i}=await ce(async()=>{let{formatDialect:_}=await import("./esm-CjxD4y0v.js").then(async C=>(await C.__tla,C));return{formatDialect:_}},__vite__mapDeps([0,1]),import.meta.url),o=await Jk(Fa.getInternalDialect(n)),s=e.state.field(Lr),c=S4(e.state);if(s.type!=="sql"){Re.error("Language adapter is not SQL");return}let d=e.state.doc.toString(),f;try{f=i(d,{dialect:o,tabWidth:c,useTabs:!1})}catch(_){Re.error("Error formatting SQL",{error:_});return}let p=s.transformIn(f)[0],y=e.state.facet(Pt),w=e.state.facet(zd);y.updateCellCode({cellId:w,code:p,formattingChange:!0}),$u(e,f,{effects:[Ls.of(!0)]})}async function Jk(e){let{bigquery:n,db2:i,db2i:o,duckdb:s,hive:c,mariadb:d,mysql:f,tidb:p,n1ql:y,plsql:w,postgresql:_,redshift:C,spark:E,sqlite:T,sql:P,trino:V,transactsql:$,singlestoredb:B,snowflake:I}=await ce(async()=>{let{bigquery:pe,db2:M,db2i:A,duckdb:W,hive:de,mariadb:fe,mysql:we,tidb:J,n1ql:be,plsql:Se,postgresql:Z,redshift:re,spark:se,sqlite:K,sql:Le,trino:Fe,transactsql:et,singlestoredb:Be,snowflake:je}=await import("./esm-CjxD4y0v.js").then(async Pe=>(await Pe.__tla,Pe));return{bigquery:pe,db2:M,db2i:A,duckdb:W,hive:de,mariadb:fe,mysql:we,tidb:J,n1ql:be,plsql:Se,postgresql:Z,redshift:re,spark:se,sqlite:K,sql:Le,trino:Fe,transactsql:et,singlestoredb:Be,snowflake:je}},__vite__mapDeps([0,1]),import.meta.url),Q=P;if(!e||!ic(e))return Q;switch(e){case"mysql":return f;case"mariadb":return d;case"postgres":case"postgresql":return _;case"sqlite":return T;case"db2":return i;case"db2i":return o;case"hive":return c;case"redshift":return C;case"snowflake":return I;case"trino":return V;case"tidb":return p;case"oracle":case"oracledb":return w;case"spark":return E;case"singlestoredb":return B;case"couchbase":return y;case"bigquery":return n;case"duckdb":return s;case"mssql":case"sqlserver":case"microsoft sql server":return $;case"athena":case"awsathena":case"cassandra":case"noql":case"flink":case"mongodb":case"timescaledb":case"datafusion":return P;case"databricks":return E;default:return _s(e),Q}}var Xk=td();function Yk(e,n){let i=document.createElement("div"),o;return{dom:i,mount(){o=(0,Xk.createRoot)(i),o.render((0,F.jsx)(X2,{store:lt,children:(0,F.jsx)(n,{view:e})}))},update(){o==null||o.render((0,F.jsx)(X2,{store:lt,children:(0,F.jsx)(n,{view:e})}))},destroy(){o==null||o.unmount()}}}function ye(e){return new gw(hw.define(e))}function Yi(e){return ce(()=>import("./dist-Cs61SvFK.js").then(async n=>(await n.__tla,n)),__vite__mapDeps([2,3,4,5]),import.meta.url).then(n=>n.sql({dialect:n[e]}))}var Zk=[le.of({name:"C",extensions:["c","h","ino"],load(){return ce(()=>import("./dist-BD_oEsO-.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([6,7,5]),import.meta.url).then(e=>e.cpp())}}),le.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return ce(()=>import("./dist-BD_oEsO-.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([6,7,5]),import.meta.url).then(e=>e.cpp())}}),le.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Yi("Cassandra")}}),le.of({name:"CSS",extensions:["css"],load(){return ce(()=>import("./dist-D9Fiuh_3.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([8,9,5]),import.meta.url).then(e=>e.css())}}),le.of({name:"Go",extensions:["go"],load(){return ce(()=>import("./dist-mED403RR.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([10,11,4,5]),import.meta.url).then(e=>e.go())}}),le.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return ce(()=>import("./dist-BRKKmf0q.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([12,9,5,13,14,4]),import.meta.url).then(e=>e.html())}}),le.of({name:"Java",extensions:["java"],load(){return ce(()=>import("./dist-BtxvfUI7.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([15,16,5]),import.meta.url).then(e=>e.java())}}),le.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return ce(()=>import("./dist-BmJp4tX0.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([17,14,4,5]),import.meta.url).then(e=>e.javascript())}}),le.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return ce(()=>import("./dist-BSCxV_8B.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([18,9,5,13,14,4,19]),import.meta.url).then(e=>e.jinja())}}),le.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return ce(()=>import("./dist-Bug4O2lR.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([20,21,5]),import.meta.url).then(e=>e.json())}}),le.of({name:"JSX",extensions:["jsx"],load(){return ce(()=>import("./dist-BmJp4tX0.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([17,14,4,5]),import.meta.url).then(e=>e.javascript({jsx:!0}))}}),le.of({name:"LESS",extensions:["less"],load(){return ce(()=>import("./dist-BlHq73nV.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([22,9,5,23]),import.meta.url).then(e=>e.less())}}),le.of({name:"Liquid",extensions:["liquid"],load(){return ce(()=>import("./dist-CSsW5_Dq.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([24,9,5,13,14,4,25]),import.meta.url).then(e=>e.liquid())}}),le.of({name:"MariaDB SQL",load(){return Yi("MariaSQL")}}),le.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return ce(()=>import("./dist-BDE62V06.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([26,9,5,13,14,4,27]),import.meta.url).then(e=>e.markdown())}}),le.of({name:"MS SQL",load(){return Yi("MSSQL")}}),le.of({name:"MySQL",load(){return Yi("MySQL")}}),le.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return ce(()=>import("./dist-B_BsW7xk.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([28,9,5,13,14,4,29]),import.meta.url).then(e=>e.php())}}),le.of({name:"PLSQL",extensions:["pls"],load(){return Yi("PLSQL")}}),le.of({name:"PostgreSQL",load(){return Yi("PostgreSQL")}}),le.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return ce(()=>import("./dist-CoibEXVK.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([30,31,4,5]),import.meta.url).then(e=>e.python())}}),le.of({name:"Rust",extensions:["rs"],load(){return ce(()=>import("./dist-VnTTrJGI.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([32,33,5]),import.meta.url).then(e=>e.rust())}}),le.of({name:"Sass",extensions:["sass"],load(){return ce(()=>import("./dist-X4wBA4ja.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([34,9,5,35]),import.meta.url).then(e=>e.sass({indented:!0}))}}),le.of({name:"SCSS",extensions:["scss"],load(){return ce(()=>import("./dist-X4wBA4ja.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([34,9,5,35]),import.meta.url).then(e=>e.sass())}}),le.of({name:"SQL",extensions:["sql"],load(){return Yi("StandardSQL")}}),le.of({name:"SQLite",load(){return Yi("SQLite")}}),le.of({name:"TSX",extensions:["tsx"],load(){return ce(()=>import("./dist-BmJp4tX0.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([17,14,4,5]),import.meta.url).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),le.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return ce(()=>import("./dist-BmJp4tX0.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([17,14,4,5]),import.meta.url).then(e=>e.javascript({typescript:!0}))}}),le.of({name:"WebAssembly",extensions:["wat","wast"],load(){return ce(()=>import("./dist-B9BRSqKp.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([36,37,5]),import.meta.url).then(e=>e.wast())}}),le.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return ce(()=>import("./dist-BCDfHX1C.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([38,39,5]),import.meta.url).then(e=>e.xml())}}),le.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return ce(()=>import("./dist-DWPMWcXL.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([40,41,5]),import.meta.url).then(e=>e.yaml())}}),le.of({name:"APL",extensions:["dyalog","apl"],load(){return ce(()=>import("./apl-Chr9VNQb.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([42,43]),import.meta.url).then(e=>ye(e.apl))}}),le.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return ce(()=>import("./asciiarmor-DzJGO3cy.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([44,45]),import.meta.url).then(e=>ye(e.asciiArmor))}}),le.of({name:"ASN.1",extensions:["asn","asn1"],load(){return ce(()=>import("./asn1-Blkd-UVm.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([46,47]),import.meta.url).then(e=>ye(e.asn1({})))}}),le.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return ce(()=>import("./asterisk-DIMri3P4.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.asterisk))}}),le.of({name:"Brainfuck",extensions:["b","bf"],load(){return ce(()=>import("./brainfuck-BeRVF6bt.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([48,49]),import.meta.url).then(e=>ye(e.brainfuck))}}),le.of({name:"Cobol",extensions:["cob","cpy"],load(){return ce(()=>import("./cobol-CZP4RjnO.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([50,51]),import.meta.url).then(e=>ye(e.cobol))}}),le.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return ce(()=>import("./clike-BhFoDDUF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([52,53]),import.meta.url).then(e=>ye(e.csharp))}}),le.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return ce(()=>import("./clojure-D3LWk-SC.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([54,55]),import.meta.url).then(e=>ye(e.clojure))}}),le.of({name:"ClojureScript",extensions:["cljs"],load(){return ce(()=>import("./clojure-D3LWk-SC.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([54,55]),import.meta.url).then(e=>ye(e.clojure))}}),le.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return ce(()=>import("./css-b-BDNvIM.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([56,57]),import.meta.url).then(e=>ye(e.gss))}}),le.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return ce(()=>import("./cmake-238GeNbi.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([58,59]),import.meta.url).then(e=>ye(e.cmake))}}),le.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return ce(()=>import("./coffeescript-B7XjCOaF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([60,61]),import.meta.url).then(e=>ye(e.coffeeScript))}}),le.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return ce(()=>import("./commonlisp-DKNhPgyy.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([62,63]),import.meta.url).then(e=>ye(e.commonLisp))}}),le.of({name:"Cypher",extensions:["cyp","cypher"],load(){return ce(()=>import("./cypher-Bld-ecrK.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([64,65]),import.meta.url).then(e=>ye(e.cypher))}}),le.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return ce(()=>import("./python-4yue3pyq.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([66,67]),import.meta.url).then(e=>ye(e.cython))}}),le.of({name:"Crystal",extensions:["cr"],load(){return ce(()=>import("./crystal-DmwO_0_4.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([68,69]),import.meta.url).then(e=>ye(e.crystal))}}),le.of({name:"D",extensions:["d"],load(){return ce(()=>import("./d-D0LlbZRM.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([70,71]),import.meta.url).then(e=>ye(e.d))}}),le.of({name:"Dart",extensions:["dart"],load(){return ce(()=>import("./clike-BhFoDDUF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([52,53]),import.meta.url).then(e=>ye(e.dart))}}),le.of({name:"diff",extensions:["diff","patch"],load(){return ce(()=>import("./diff-BhkLDFRp.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([72,73]),import.meta.url).then(e=>ye(e.diff))}}),le.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return ce(()=>import("./dockerfile-mDMHwaZE.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([74,75]),import.meta.url).then(e=>ye(e.dockerFile))}}),le.of({name:"DTD",extensions:["dtd"],load(){return ce(()=>import("./dtd-CjtwvVlM.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([76,77]),import.meta.url).then(e=>ye(e.dtd))}}),le.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return ce(()=>import("./dylan-D750ej-H.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([78,79]),import.meta.url).then(e=>ye(e.dylan))}}),le.of({name:"EBNF",load(){return ce(()=>import("./ebnf-XMH6KY7E.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.ebnf))}}),le.of({name:"ECL",extensions:["ecl"],load(){return ce(()=>import("./ecl-ChePjOI6.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([80,81]),import.meta.url).then(e=>ye(e.ecl))}}),le.of({name:"edn",extensions:["edn"],load(){return ce(()=>import("./clojure-D3LWk-SC.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([54,55]),import.meta.url).then(e=>ye(e.clojure))}}),le.of({name:"Eiffel",extensions:["e"],load(){return ce(()=>import("./eiffel-MZyxske9.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([82,83]),import.meta.url).then(e=>ye(e.eiffel))}}),le.of({name:"Elm",extensions:["elm"],load(){return ce(()=>import("./elm-gXtxhfT4.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([84,85]),import.meta.url).then(e=>ye(e.elm))}}),le.of({name:"Erlang",extensions:["erl"],load(){return ce(()=>import("./erlang-CEe3KwR2.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([86,87]),import.meta.url).then(e=>ye(e.erlang))}}),le.of({name:"Esper",load(){return ce(()=>import("./sql-RBdzBYsM.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.esper))}}),le.of({name:"Factor",extensions:["factor"],load(){return ce(()=>import("./factor-Cf6jeuFE.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([88,89,75]),import.meta.url).then(e=>ye(e.factor))}}),le.of({name:"FCL",load(){return ce(()=>import("./fcl-DyFJAgkq.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.fcl))}}),le.of({name:"Forth",extensions:["forth","fth","4th"],load(){return ce(()=>import("./forth-cDDgSP9p.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([90,91]),import.meta.url).then(e=>ye(e.forth))}}),le.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return ce(()=>import("./fortran-C8vMa5zJ.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([92,93]),import.meta.url).then(e=>ye(e.fortran))}}),le.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return ce(()=>import("./mllike-fwkzyrZt.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([94,95]),import.meta.url).then(e=>ye(e.fSharp))}}),le.of({name:"Gas",extensions:["s"],load(){return ce(()=>import("./gas-Df167mJ4.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([96,97]),import.meta.url).then(e=>ye(e.gas))}}),le.of({name:"Gherkin",extensions:["feature"],load(){return ce(()=>import("./gherkin-8tk6kFf5.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([98,99]),import.meta.url).then(e=>ye(e.gherkin))}}),le.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return ce(()=>import("./groovy-JuojAv0H.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([100,101]),import.meta.url).then(e=>ye(e.groovy))}}),le.of({name:"Haskell",extensions:["hs"],load(){return ce(()=>import("./haskell-Bpjctb1r.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([102,103]),import.meta.url).then(e=>ye(e.haskell))}}),le.of({name:"Haxe",extensions:["hx"],load(){return ce(()=>import("./haxe-DJHguewM.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([104,105]),import.meta.url).then(e=>ye(e.haxe))}}),le.of({name:"HXML",extensions:["hxml"],load(){return ce(()=>import("./haxe-DJHguewM.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([104,105]),import.meta.url).then(e=>ye(e.hxml))}}),le.of({name:"HTTP",load(){return ce(()=>import("./http-ySzAzH5W.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.http))}}),le.of({name:"IDL",extensions:["pro"],load(){return ce(()=>import("./idl-feOWH07C.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([106,107]),import.meta.url).then(e=>ye(e.idl))}}),le.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return ce(()=>import("./javascript-BekfVgKQ.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([108,109]),import.meta.url).then(e=>ye(e.jsonld))}}),le.of({name:"Julia",extensions:["jl"],load(){return ce(()=>import("./julia-DG-ah68k.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([110,111]),import.meta.url).then(e=>ye(e.julia))}}),le.of({name:"Kotlin",extensions:["kt","kts"],load(){return ce(()=>import("./clike-BhFoDDUF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([52,53]),import.meta.url).then(e=>ye(e.kotlin))}}),le.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return ce(()=>import("./livescript-B2wfFY5r.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([112,113]),import.meta.url).then(e=>ye(e.liveScript))}}),le.of({name:"Lua",extensions:["lua"],load(){return ce(()=>import("./lua-CDP4_ezR.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([114,115]),import.meta.url).then(e=>ye(e.lua))}}),le.of({name:"mIRC",extensions:["mrc"],load(){return ce(()=>import("./mirc-D6l20mh4.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([116,117]),import.meta.url).then(e=>ye(e.mirc))}}),le.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return ce(()=>import("./mathematica-BElcKLBW.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([118,119]),import.meta.url).then(e=>ye(e.mathematica))}}),le.of({name:"Modelica",extensions:["mo"],load(){return ce(()=>import("./modelica-DAnB6nmO.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([120,121]),import.meta.url).then(e=>ye(e.modelica))}}),le.of({name:"MUMPS",extensions:["mps"],load(){return ce(()=>import("./mumps-Dt8k0EUU.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([122,123]),import.meta.url).then(e=>ye(e.mumps))}}),le.of({name:"Mbox",extensions:["mbox"],load(){return ce(()=>import("./mbox-DlwO5A6s.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([124,125]),import.meta.url).then(e=>ye(e.mbox))}}),le.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return ce(()=>import("./nginx-Cz_XvoTm.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.nginx))}}),le.of({name:"NSIS",extensions:["nsh","nsi"],load(){return ce(()=>import("./nsis-C1g8DTeO.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([126,127,75]),import.meta.url).then(e=>ye(e.nsis))}}),le.of({name:"NTriples",extensions:["nt","nq"],load(){return ce(()=>import("./ntriples-DTMBUZ7F.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([128,129]),import.meta.url).then(e=>ye(e.ntriples))}}),le.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return ce(()=>import("./clike-BhFoDDUF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([52,53]),import.meta.url).then(e=>ye(e.objectiveC))}}),le.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return ce(()=>import("./clike-BhFoDDUF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([52,53]),import.meta.url).then(e=>ye(e.objectiveCpp))}}),le.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return ce(()=>import("./mllike-fwkzyrZt.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([94,95]),import.meta.url).then(e=>ye(e.oCaml))}}),le.of({name:"Octave",extensions:["m"],load(){return ce(()=>import("./octave-BwfNaTxP.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([130,131]),import.meta.url).then(e=>ye(e.octave))}}),le.of({name:"Oz",extensions:["oz"],load(){return ce(()=>import("./oz-6BWZLab7.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([132,133]),import.meta.url).then(e=>ye(e.oz))}}),le.of({name:"Pascal",extensions:["p","pas"],load(){return ce(()=>import("./pascal-64fygDAy.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([134,135]),import.meta.url).then(e=>ye(e.pascal))}}),le.of({name:"Perl",extensions:["pl","pm"],load(){return ce(()=>import("./perl-CC5X3ewy.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([136,137]),import.meta.url).then(e=>ye(e.perl))}}),le.of({name:"Pig",extensions:["pig"],load(){return ce(()=>import("./pig-DP6pbekb.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([138,139]),import.meta.url).then(e=>ye(e.pig))}}),le.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return ce(()=>import("./powershell-WtGE4kBw.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([140,141]),import.meta.url).then(e=>ye(e.powerShell))}}),le.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return ce(()=>import("./properties-CRoDUVbK.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([142,143]),import.meta.url).then(e=>ye(e.properties))}}),le.of({name:"ProtoBuf",extensions:["proto"],load(){return ce(()=>import("./protobuf-BS6gEp_x.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([144,145]),import.meta.url).then(e=>ye(e.protobuf))}}),le.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return ce(()=>import("./pug-STAEJHPq.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([146,147,109]),import.meta.url).then(e=>ye(e.pug))}}),le.of({name:"Puppet",extensions:["pp"],load(){return ce(()=>import("./puppet-BV74Hcdf.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([148,149]),import.meta.url).then(e=>ye(e.puppet))}}),le.of({name:"Q",extensions:["q"],load(){return ce(()=>import("./q-SorAikmF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([150,151]),import.meta.url).then(e=>ye(e.q))}}),le.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return ce(()=>import("./r-Dc7847Lm.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([152,153]),import.meta.url).then(e=>ye(e.r))}}),le.of({name:"RPM Changes",load(){return ce(()=>import("./rpm-C2rCOQ1Z.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([154,155]),import.meta.url).then(e=>ye(e.rpmChanges))}}),le.of({name:"RPM Spec",extensions:["spec"],load(){return ce(()=>import("./rpm-C2rCOQ1Z.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([154,155]),import.meta.url).then(e=>ye(e.rpmSpec))}}),le.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return ce(()=>import("./ruby-DNrqAMg4.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([156,157]),import.meta.url).then(e=>ye(e.ruby))}}),le.of({name:"SAS",extensions:["sas"],load(){return ce(()=>import("./sas-BKYzR5_z.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([158,159]),import.meta.url).then(e=>ye(e.sas))}}),le.of({name:"Scala",extensions:["scala"],load(){return ce(()=>import("./clike-BhFoDDUF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([52,53]),import.meta.url).then(e=>ye(e.scala))}}),le.of({name:"Scheme",extensions:["scm","ss"],load(){return ce(()=>import("./scheme-as2FasXy.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([160,161]),import.meta.url).then(e=>ye(e.scheme))}}),le.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return ce(()=>import("./shell-Bf8Q5ES6.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([162,163]),import.meta.url).then(e=>ye(e.shell))}}),le.of({name:"Sieve",extensions:["siv","sieve"],load(){return ce(()=>import("./sieve-D515TmZq.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([164,165]),import.meta.url).then(e=>ye(e.sieve))}}),le.of({name:"Smalltalk",extensions:["st"],load(){return ce(()=>import("./smalltalk-DYzx-8Vf.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([166,167]),import.meta.url).then(e=>ye(e.smalltalk))}}),le.of({name:"Solr",load(){return ce(()=>import("./solr-BAO4N63o.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.solr))}}),le.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return ce(()=>import("./mllike-fwkzyrZt.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([94,95]),import.meta.url).then(e=>ye(e.sml))}}),le.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return ce(()=>import("./sparql-6VnDrYOs.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([168,169]),import.meta.url).then(e=>ye(e.sparql))}}),le.of({name:"Spreadsheet",alias:["excel","formula"],load(){return ce(()=>import("./spreadsheet-DWqd5foV.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.spreadsheet))}}),le.of({name:"Squirrel",extensions:["nut"],load(){return ce(()=>import("./clike-BhFoDDUF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([52,53]),import.meta.url).then(e=>ye(e.squirrel))}}),le.of({name:"Stylus",extensions:["styl"],load(){return ce(()=>import("./stylus-DUyoKY_7.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([170,171]),import.meta.url).then(e=>ye(e.stylus))}}),le.of({name:"Swift",extensions:["swift"],load(){return ce(()=>import("./swift-CXFwyL-K.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([172,173]),import.meta.url).then(e=>ye(e.swift))}}),le.of({name:"sTeX",load(){return ce(()=>import("./stex-BBWVYm-R.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([174,175]),import.meta.url).then(e=>ye(e.stex))}}),le.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return ce(()=>import("./stex-BBWVYm-R.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([174,175]),import.meta.url).then(e=>ye(e.stex))}}),le.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return ce(()=>import("./verilog-D9S6puFO.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([176,177]),import.meta.url).then(e=>ye(e.verilog))}}),le.of({name:"Tcl",extensions:["tcl"],load(){return ce(()=>import("./tcl-DbyqErhh.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([178,179]),import.meta.url).then(e=>ye(e.tcl))}}),le.of({name:"Textile",extensions:["textile"],load(){return ce(()=>import("./textile-8fxKT1uq.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([180,181]),import.meta.url).then(e=>ye(e.textile))}}),le.of({name:"TiddlyWiki",load(){return ce(()=>import("./tiddlywiki-BsHUDwie.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.tiddlyWiki))}}),le.of({name:"Tiki wiki",load(){return ce(()=>import("./tiki-ZqBe4Kjv.js").then(async e=>(await e.__tla,e)),[],import.meta.url).then(e=>ye(e.tiki))}}),le.of({name:"TOML",extensions:["toml"],load(){return ce(()=>import("./toml-BpCjWJNE.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([182,183]),import.meta.url).then(e=>ye(e.toml))}}),le.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return ce(()=>import("./troff-BhJs9Lif.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([184,185]),import.meta.url).then(e=>ye(e.troff))}}),le.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return ce(()=>import("./ttcn-BVPxY_nX.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([186,187]),import.meta.url).then(e=>ye(e.ttcn))}}),le.of({name:"TTCN_CFG",extensions:["cfg"],load(){return ce(()=>import("./ttcn-cfg-B4sCU0gH.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([188,189]),import.meta.url).then(e=>ye(e.ttcnCfg))}}),le.of({name:"Turtle",extensions:["ttl"],load(){return ce(()=>import("./turtle-D4EQx9sx.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([190,191]),import.meta.url).then(e=>ye(e.turtle))}}),le.of({name:"Web IDL",extensions:["webidl"],load(){return ce(()=>import("./webidl-Ct7ps8LR.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([192,193]),import.meta.url).then(e=>ye(e.webIDL))}}),le.of({name:"VB.NET",extensions:["vb"],load(){return ce(()=>import("./vb-D-5BLYdM.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([194,195]),import.meta.url).then(e=>ye(e.vb))}}),le.of({name:"VBScript",extensions:["vbs"],load(){return ce(()=>import("./vbscript-DOZuVfk8.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([196,197]),import.meta.url).then(e=>ye(e.vbScript))}}),le.of({name:"Velocity",extensions:["vtl"],load(){return ce(()=>import("./velocity-BPduikoO.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([198,199]),import.meta.url).then(e=>ye(e.velocity))}}),le.of({name:"Verilog",extensions:["v"],load(){return ce(()=>import("./verilog-D9S6puFO.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([176,177]),import.meta.url).then(e=>ye(e.verilog))}}),le.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return ce(()=>import("./vhdl-YYXNXz0X.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([200,201]),import.meta.url).then(e=>ye(e.vhdl))}}),le.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return ce(()=>import("./xquery-9kDflInd.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([202,203]),import.meta.url).then(e=>ye(e.xQuery))}}),le.of({name:"Yacas",extensions:["ys"],load(){return ce(()=>import("./yacas-u934AJft.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([204,205]),import.meta.url).then(e=>ye(e.yacas))}}),le.of({name:"Z80",extensions:["z80"],load(){return ce(()=>import("./z80-BQ7XtT4U.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([206,207]),import.meta.url).then(e=>ye(e.z80))}}),le.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return ce(()=>import("./mscgen-Cs4VQ67l.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([208,209]),import.meta.url).then(e=>ye(e.mscgen))}}),le.of({name:"X\xF9",extensions:["xu"],load(){return ce(()=>import("./mscgen-Cs4VQ67l.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([208,209]),import.meta.url).then(e=>ye(e.xu))}}),le.of({name:"MsGenny",extensions:["msgenny"],load(){return ce(()=>import("./mscgen-Cs4VQ67l.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([208,209]),import.meta.url).then(e=>ye(e.msgenny))}}),le.of({name:"Vue",extensions:["vue"],load(){return ce(()=>import("./dist-BOoAATU5.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([210,9,5,13,14,4,211]),import.meta.url).then(e=>e.vue())}}),le.of({name:"Angular Template",load(){return ce(()=>import("./dist-Dh6p3Rvf.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([212,9,5,13,14,4]),import.meta.url).then(e=>e.angular())}})],Wg=new WeakMap,eS=/(\n|\r\n?|\u2028|\u2029)/g,tS=/^\s*/,nS=/\S/,rS=Array.prototype.slice,Wd=48,Ug=57,Kg=97,iS=102,Qg=65,aS=70;Jl=function(e){if(typeof e=="string")return Xg([e])[0];if(typeof e=="function")return function(){let o=rS.call(arguments);return o[0]=Jg(o[0]),e.apply(this,o)};let n=Jg(e),i=Gg(n,0);for(let o=1;os.split(eS)),i;for(let s=0;s0)throw Error("invalid content on opening line");c[1]=""}if(f){if(c.length===1||nS.test(c[c.length-1]))throw Error("invalid content on closing line");c[c.length-2]="",c[c.length-1]=""}for(let p=2;p{let c=s[0];for(let d=1;d-1;){if(n+=e.slice(i,o),++o===e.length)return;let s=e[o++];switch(s){case"b":n+="\b";break;case"t":n+=" ";break;case"n":n+=` +`;break;case"v":n+="\v";break;case"f":n+="\f";break;case"r":n+="\r";break;case"\r":o1114111)return;n+=String.fromCodePoint(c);break}default:if(Yg(s,0))return;n+=s}i=o}return n+e.slice(i)}function Yg(e,n){let i=e.charCodeAt(n);return i>=Wd&&i<=Ug}function Ud(e,n,i){if(i>=e.length)return-1;let o=0;for(;n=Wd&&e<=Ug?e-Wd:e>=Kg&&e<=iS?e-Kg+10:e>=Qg&&e<=aS?e-Qg+10:-1}const Zg=["","f","r","fr","rf"];function cS(e){try{return Jl(` +${e} +`).trim()}catch{return e}}function uS(e){return MD.parse(e)}var dS=new Set(["(","[","{",",",")","]","}"]);function fS(e,n){return e.name==="ArgList"?{args:pS(e),kwargs:hS(e,n)}:(console.warn(`Not an ArgList, name: ${e.name}`),{args:[],kwargs:[]})}function pS(e){var o;e.firstChild();let n=[],i=e.name;do if(i=e.name,!dS.has(i)){if(i==="VariableName"&&((o=e.node.nextSibling)==null?void 0:o.name)==="AssignOp"){e.prev();break}n.push(e.node)}while(e.nextSibling());return n}function hS(e,n){let i=[],o=e.name;do if(o=e.name,o==="VariableName"){let s=n.slice(e.from,e.to),c=e.node.nextSibling;if(!c||c.name!=="AssignOp")continue;let d=c.nextSibling;if(!d)continue;let f=n.slice(d.from,d.to).trim();i.push({key:s,value:f})}while(e.nextSibling());return i}function mS(e,n){if(e.name==="String"){let i=n.slice(e.from,e.to);return i.startsWith('r"""')||i.startsWith("r'''")?i.slice(4,-3):i.startsWith('"""')||i.startsWith("'''")?i.slice(3,-3):i.startsWith('r"')||i.startsWith("r'")?i.slice(2,-1):i.slice(1,-1)}if(e.name==="FormatString"){let i=n.slice(e.from,e.to);return i.startsWith('f"""')||i.startsWith("f'''")?i.slice(4,-3):i.startsWith('rf"""')||i.startsWith("rf'''")||i.startsWith('fr"""')||i.startsWith("fr'''")?i.slice(5,-3):i.startsWith('r"""')||i.startsWith("r'''")?i.slice(4,-3):i.startsWith('f"')||i.startsWith("f'")?i.slice(2,-1):i.startsWith('rf"')||i.startsWith("rf'")||i.startsWith('fr"')||i.startsWith("fr'")?i.slice(3,-1):(i.startsWith('r"')||i.startsWith("r'"),i.slice(2,-1))}return null}function gS(e){return e===""?0:e.startsWith('rf"""')||e.startsWith("rf'''")||e.startsWith('fr"""')||e.startsWith("fr'''")?5:e.startsWith('f"""')||e.startsWith("f'''")||e.startsWith('r"""')||e.startsWith("r'''")?4:e.startsWith('"""')||e.startsWith("'''")||e.startsWith("rf'")||e.startsWith('rf"')||e.startsWith("fr'")||e.startsWith('fr"')?3:e.startsWith("f'")||e.startsWith('f"')||e.startsWith("r'")||e.startsWith('r"')?2:e.startsWith("'")||e.startsWith('"')?1:0}function yS(e){let n=[...Zg].sort((i,o)=>o.length-i.length);for(let i of n)if(e.startsWith(i))return[i,e.slice(i.length)];return["",e]}function vS(e,n){return e.replaceAll(`\\${n}`,n)}var bS=[['"""','"""'],["'''","'''"],['"','"'],["'","'"]],wS=Zg.flatMap(e=>bS.map(([n,i])=>[e+n,i])).map(([e,n])=>[e,RegExp(`^mo\\.md\\(\\s*${ey(e)}(.*)${ey(n)}\\s*\\)$`,"s")]);function ey(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ty=class{constructor(){ke(this,"type","markdown");ke(this,"defaultCode",`mo.md(r""" +""")`);ke(this,"defaultMetadata",{quotePrefix:"r"})}static fromMarkdown(e){return`mo.md(r""" +${e} +""")`}transformIn(e){e=e.trim();let n={...this.defaultMetadata};if(e==="")return{code:"",offset:0,metadata:n};for(let[i,o]of wS){let s=e.match(o);if(s){let c=s[1],[d,f]=yS(i);n.quotePrefix=d;let p=vS(c,f),y=e.indexOf(c);return{code:Jl(` +${p} +`).trim(),offset:y,metadata:n}}}return{code:e,offset:0,metadata:n}}transformOut(e,n){e===""&&(e=" ");let{quotePrefix:i}=n,o=e.replaceAll('""',String.raw`"\"`),s=`mo.md(${i}""" +`;return{code:s+o+` +""")`,offset:s.length+1}}isSupported(e){if(e=e.trim(),e==="")return!0;if(!e.startsWith("mo.md("))return!1;if(e==="mo.md()")return!0;let n=Oh.parser.parse(e),i=[{match:"Script"},{match:"ExpressionStatement"},{match:"CallExpression"},{match:"MemberExpression"},{match:"VariableName"},{match:"."},{match:"PropertyName"},{match:"ArgList"},{match:"("},{match:/String|FormatString/,stop:!0},{match:")"}],o=!0;return n.iterate({enter:s=>{let c=i.shift();if(c===void 0)return o=!1,!1;let d=c.match;return typeof d=="string"?(o&&(o=d===s.name),o&&!c.stop):(d.test(s.name)||(o=!1),o&&!c.stop)}}),o}},_S=class{constructor(){ke(this,"type","python");ke(this,"defaultCode","");ke(this,"defaultMetadata",{})}transformIn(e){return{code:e,offset:0,metadata:{}}}transformOut(e,n){return{code:e,offset:0}}isSupported(e){return!0}},Kd="__marimo_duckdb",ny=class{constructor(){ke(this,"type","sql");ke(this,"defaultMetadata",{dataframeName:"_df",quotePrefix:"f",commentLines:[],showOutput:!0,engine:Kd})}get defaultCode(){return'_df = mo.sql(f"""SELECT * FROM """)'}static fromQuery(e){return`_df = mo.sql(f"""${e.trim()}""")`}transformIn(e){e=e.trim();let n={...this.defaultMetadata,commentLines:this.extractCommentLines(e)};if(!this.isSupported(e))return{code:e,offset:0,metadata:n};if(e==="")return{code:"",offset:0,metadata:n};let i=ry(e);return i?(n.dataframeName=i.dfName,n.showOutput=i.output??!0,n.engine=i.engine??Kd,{code:Jl(` +${i.sqlString} +`).trim(),offset:i.startPosition,metadata:n}):{code:e,offset:0,metadata:n}}transformOut(e,n){let{quotePrefix:i,commentLines:o,showOutput:s,engine:c,dataframeName:d}=n,f=`${d} = mo.sql( + ${i}""" +`,p=e.replaceAll('"""',String.raw`\"""`),y=` + """${s?"":`, + output=False`}${c===Kd?"":`, + engine=${c}`} +)`;return{code:[...o,f].join(` +`)+kS(p)+y,offset:f.length+1}}isSupported(e){return e.trim()===""?!0:!e.includes("mo.sql")||e.split("mo.sql").length>2?!1:ry(e)!==null}extractCommentLines(e){let n=e.split(` +`),i=[];for(let o of n)if(o!=null&&o.startsWith("#"))i.push(o);else break;return i}};function xS(e){do{if(e.name==="AssignStatement")return e.node;if(e.name!=="Comment")return null}while(e.next());return null}function ry(e){try{let n=uS(e).cursor();n.name==="Script"&&n.next();let i=xS(n);if(!i||e.slice(i.to).trim().length>0)return null;let o=null,s=null,c,d,f=0,p=i.cursor();if(p.firstChild(),p.name==="VariableName"&&(o=e.slice(p.from,p.to)),!o)return null;let y=!1,w=null;for(;p.nextSibling();)if(p.name==="AssignOp")y=!0;else if(y&&!w){w=p.node;break}if(!w||w.name==="ConditionalExpression"||w.name==="BinaryExpression"||w.name==="UnaryExpression")return null;let _=w.cursor(),C=null;if(_.name==="CallExpression")C=_.node;else{_.firstChild();do if(_.name==="CallExpression"){C=_.node;break}while(_.nextSibling())}if(C){let E=C.cursor(),T=!1;if(E.firstChild(),E.name==="MemberExpression"&&(T=e.slice(E.from,E.to)==="mo.sql"),T){for(;E.next();)if(E.name==="ArgList"){let{args:P,kwargs:V}=fS(E.node.cursor(),e);P.length===1&&(s=mS(P[0],e),f=P[0].from+gS(e.slice(P[0].from,P[0].to)));for(let{key:$,value:B}of V)switch($){case"engine":c=B;break;case"output":d=B==="True";break}if(s==="")return{dfName:o,sqlString:"",engine:c,output:d,startPosition:f};break}}}return!o||!s?null:{dfName:o,sqlString:cS(s),engine:c,output:d,startPosition:f}}catch(n){return console.warn("Failed to parse SQL statement",n),null}}function kS(e){return e.split(` +`).map(n=>n!=null&&n.trim()?` ${n}`:n).join(` +`)}function SS(e,n){return{get:()=>n.get(e),sub:i=>n.sub(e,()=>i(n.get(e)))}}function CS(e,{offset:n,body:i=window,behavior:o="smooth"}){let s=(n==null?void 0:n.top)??0,c=(n==null?void 0:n.bottom)??0,d=e.getBoundingClientRect();if(d.topwindow.innerHeight-c){i.scrollBy({top:d.bottom-window.innerHeight+c,behavior:o});return}}Uu=function(e){return e?e.state.field(Lr).type:"python"};function ES(e,n){return!e||Uu(e)===n?!1:e.state.doc.toString().trim()===""?!0:gr[n].isSupported(Jr(e))}Ih=function(e,n,i={}){return!i.force&&!ES(e,n)?!1:(gm(e,{language:n}),n)};function TS(e){return Ra.of([{key:e.getHotkey("cell.format").key,preventDefault:!0,run:n=>(zu({[n.state.facet(Wi)]:n}),!0)},{key:e.getHotkey("cell.viewAsMarkdown").key,preventDefault:!0,run:n=>{let i=Uu(n);if(i!=="markdown"&&i!=="python")return!1;let o=Ih(n,i==="python"?"markdown":"python",{force:!0});return o==="markdown"&&n.state.facet(Pt).afterToggleMarkdown(),o!==!1}}])}fx=function(){return Kt.updateListener.of(e=>{if(e.view.hasFocus&&e.heightChanged&&e.docChanged){if(e.transactions.some(n=>n.effects.some(i=>i.is(Ls))))return;iy(e.view,{behavior:"smooth"})}})};function iy(e,n){let i=e.dom.getElementsByClassName("cm-activeLine cm-line");if(i.length===1){let o=i[0],s=document.getElementById("App");In(s,"App not found"),CS(o,{offset:{top:30,bottom:150},body:s,behavior:n.behavior})}}function RS(){return{}}let DS,OS,ay;({reducer:DS,createActions:OS,valueAtom:Ma,useActions:ay}=Ll(RS,{setVariables:(e,n)=>{let i={...e},o={};for(let s of n)o[s.name]={...i[s.name],...s};return o},addVariables:(e,n)=>{let i={...e};for(let o of n)i[o.name]={...i[o.name],...o};return i},setMetadata:(e,n)=>{let i={...e};for(let{name:o,value:s,dataType:c}of n)i[o]&&(i[o]={...i[o],value:s,dataType:c});return i}})),lx=()=>Yn(Ma),hx=function(){return ay()},T_=function(e){let n=e.storage||Ts;return{getItem(i,o){try{let s=n.getItem(i);if(!s)return o;let c=JSON.parse(s);return e.fromSerializable(c)}catch(s){return Re.warn(`Error getting ${i} from storage`,s),o}},setItem:(i,o)=>{n.setItem(i,JSON.stringify(e.toSerializable(o)))},removeItem:i=>{n.removeItem(i)}}},Wl=Gm(()=>Ts);function PS(e,n){if(typeof window>"u")return;let i=`__marimo__${n}`;window[i]&&Re.warn(`Overwriting existing debug object ${i}`),window[i]=e}var MS={markdown:!0,wasm_layouts:!1,rtc_v2:!1,performant_table_charts:!1,chat_modes:!1,cache_panel:!1,external_agents:!1,server_side_pdf_export:!1};Ql=function(e){var n,i;return((i=(n=iw())==null?void 0:n.experimental)==null?void 0:i[e])??MS[e]};function LS(e,n){Hi().saveUserConfig({config:{experimental:{[e]:n}}})}B_=({feature:e,children:n})=>Ql(e)?n:null,PS(LS,"setFeatureFlag"),Ul=[{type:"files",Icon:Pg,label:"Files",tooltip:"View files",defaultSection:"sidebar"},{type:"variables",Icon:Qh,label:"Variables",tooltip:"Explore variables and data sources",defaultSection:"sidebar"},{type:"packages",Icon:dm,label:"Packages",tooltip:"Manage packages",defaultSection:"sidebar"},{type:"ai",Icon:Yh,label:"AI",tooltip:"Chat & Agents",defaultSection:"sidebar"},{type:"outline",Icon:Wh,label:"Outline",tooltip:"View outline",defaultSection:"sidebar"},{type:"documentation",Icon:Jh,label:"Docs",tooltip:"View live docs",defaultSection:"sidebar"},{type:"dependencies",Icon:Nh,label:"Dependencies",tooltip:"Explore dependencies",defaultSection:"sidebar"},{type:"errors",Icon:Vh,label:"Errors",tooltip:"View errors",defaultSection:"developer-panel"},{type:"scratchpad",Icon:Am,label:"Scratchpad",tooltip:"Scratchpad",defaultSection:"developer-panel"},{type:"tracing",Icon:ym,label:"Tracing",tooltip:"View tracing",defaultSection:"developer-panel"},{type:"secrets",Icon:Mg,label:"Secrets",tooltip:"Manage secrets",defaultSection:"developer-panel",hidden:wh()},{type:"logs",Icon:rm,label:"Logs",tooltip:"View logs",defaultSection:"developer-panel"},{type:"terminal",Icon:Fh,label:"Terminal",tooltip:"Terminal",hidden:wh(),defaultSection:"developer-panel",requiredCapability:"terminal"},{type:"snippets",Icon:Lg,label:"Snippets",tooltip:"Snippets",defaultSection:"developer-panel"},{type:"cache",Icon:DD,label:"Cache",tooltip:"View cache",defaultSection:"developer-panel",hidden:!Ql("cache_panel")}],C_=new Map(Ul.map(e=>[e.type,e])),Q_=function(e,n){return!!(e.hidden||e.requiredCapability&&!n[e.requiredCapability])};var NS=Gr();mm=$l("marimo:panel-layout",{sidebar:Ul.filter(e=>!e.hidden&&e.defaultSection==="sidebar").map(e=>e.type),developerPanel:Ul.filter(e=>!e.hidden&&e.defaultSection==="developer-panel").map(e=>e.type)},Wl,{getOnInit:!0});function oy(e){let n=lt.get(mm);return n.sidebar.includes(e)?"sidebar":n.developerPanel.includes(e)?"developer-panel":null}var sy="marimo:sidebar",ly=new Fu(Z2({selectedPanel:ew().optional().transform(e=>e),isSidebarOpen:tw(),isDeveloperPanelOpen:tw().optional().default(!1),selectedDeveloperPanelTab:ew().optional().default("errors").transform(e=>e)}),IS);function IS(){return{selectedPanel:"variables",isSidebarOpen:!1,isDeveloperPanelOpen:!1,selectedDeveloperPanelTab:"errors"}}let AS,qS,cy;({reducer:AS,createActions:qS,valueAtom:cd,useActions:cy}=Ll(()=>ly.get(sy),{openApplication:(e,n)=>{let i=oy(n);return i==="sidebar"?{...e,selectedPanel:n,isSidebarOpen:!0}:i==="developer-panel"?{...e,selectedDeveloperPanelTab:n,isDeveloperPanelOpen:!0}:e},toggleApplication:(e,n)=>{let i=oy(n);return i==="sidebar"?{...e,selectedPanel:n,isSidebarOpen:e.isSidebarOpen?e.selectedPanel!==n:!0}:i==="developer-panel"?{...e,selectedDeveloperPanelTab:n,isDeveloperPanelOpen:e.isDeveloperPanelOpen?e.selectedDeveloperPanelTab!==n:!0}:e},toggleSidebarPanel:e=>({...e,isSidebarOpen:!e.isSidebarOpen}),setIsSidebarOpen:(e,n)=>({...e,isSidebarOpen:n}),toggleDeveloperPanel:e=>({...e,isDeveloperPanelOpen:!e.isDeveloperPanelOpen}),setIsDeveloperPanelOpen:(e,n)=>({...e,isDeveloperPanelOpen:n})},[(e,n)=>ly.set(sy,n)])),ax=()=>{let e=(0,NS.c)(2),n=Yn(cd);if(n.isSidebarOpen)return n;let i;return e[0]===n?i=e[1]:(i={...n,selectedPanel:void 0},e[0]=n,e[1]=i),i},j_=function(){return cy()},Cm=ze({terminal:!1,pylsp:!1,basedpyright:!1,ty:!1});function sc(e){var n;return((n=lt.get(Cm))==null?void 0:n[e])??!1}Ju=ze({documentation:null});var uy=new Set(["FunctionDefinition","LambdaExpression","ArrayComprehensionExpression","SetComprehension","DictionaryComprehensionExpression","ComprehensionExpression","ClassDefinition"]);function jS(e){let n=cw(e.state);if(!n||BS(n))return[];let i=new Set(Object.keys(e.variables).filter(E=>{let T=e.variables[E];return T.dataType!=="module"&&!T.declaredBy.includes("setup")&&!T.declaredBy.includes(e.cellId)}));if(i.size===0)return[];let o=[],s=new Map,c=new Map,d=new Map;function f(E,T){var Q,pe,M,A,W,de,fe,we,J,be,Se;let P=E.cursor(),V=P.name,$=P.from,B=uy.has(V),I=T;switch(B&&(I=[...T,$],s.set($,new Set),c.set($,V)),V){case"FunctionDefinition":{let Z=E.cursor();Z.firstChild();do if(Z.name==="VariableName"){let se=e.state.doc.sliceString(Z.from,Z.to),K=T[T.length-1]??-1;s.has(K)||s.set(K,new Set),(Q=s.get(K))==null||Q.add(se);break}while(Z.nextSibling());let re=E.cursor();re.firstChild();do if(re.name==="ParamList"){let se=re.node.cursor();se.firstChild();do if(se.name==="VariableName"){let K=e.state.doc.sliceString(se.from,se.to);(pe=s.get($))==null||pe.add(K)}while(se.nextSibling())}while(re.nextSibling());break}case"LambdaExpression":{let Z=E.cursor();Z.firstChild();do if(Z.name==="ParamList"){let re=Z.node.cursor();re.firstChild();do if(re.name==="VariableName"){let se=e.state.doc.sliceString(re.from,re.to);(M=s.get($))==null||M.add(se)}while(re.nextSibling())}while(Z.nextSibling());break}case"ArrayComprehensionExpression":case"DictionaryComprehensionExpression":case"SetComprehension":case"ComprehensionExpression":{let Z=E.cursor();Z.firstChild();let re=!1;do if(Z.name==="for")re=!0;else if(re&&Z.name==="VariableName"){let se=e.state.doc.sliceString(Z.from,Z.to);(A=s.get($))==null||A.add(se)}else if(re&&Z.name==="TupleExpression"){let se=Z.node.cursor();se.firstChild();do if(se.name==="VariableName"){let K=e.state.doc.sliceString(se.from,se.to);(W=s.get($))==null||W.add(K)}while(se.nextSibling())}else re&&Z.name==="in"&&(re=!1);while(Z.nextSibling());break}case"ClassDefinition":{let Z=E.cursor();Z.firstChild();do if(Z.name==="VariableName"){let re=e.state.doc.sliceString(Z.from,Z.to),se=T[T.length-1]??-1;s.has(se)||s.set(se,new Set),(de=s.get(se))==null||de.add(re);break}while(Z.nextSibling());d.set($,[]);break}case"AssignStatement":{let Z=E.cursor(),re=[];Z.firstChild();do Z.name==="AssignOp"&&re.push(Z.from);while(Z.nextSibling());let se=re[re.length-1],K=E.cursor();K.firstChild();let Le=I[I.length-1]??-1;do K.from{f(Z,I)})}function p(E,T,P){let V=d.get(T);return V?V.some(([$,B])=>$===E&&B{w(Q,I)})}function _(E,T){return i.has(E)&&!zS(T)&&!FS(T)}function C(E,T){if(E.firstChild())do T(E.node);while(E.nextSibling())}return f(n,[]),w(n,[]),o}function zS(e){let n=e.node.cursor();if(n.moveTo(e.from),n.parent()&&n.name==="CallExpression"&&n.firstChild())do if(n.name==="ArgList"&&n.firstChild()){do if(n.from===e.from&&n.to===e.to)return n.nextSibling()&&n.name==="AssignOp";while(n.nextSibling());break}while(n.nextSibling());return!1}function FS(e){let n=e.node.cursor();if(n.parent()&&n.name==="AssignStatement"){let i=n.node.cursor();i.firstChild();let o=-1;do if(i.name==="AssignOp"){o=i.from;break}while(i.nextSibling());return o!==-1&&e.from{this.runHighlighting()},this.highlightDebounceMs),this.variablesUnsubscribe=lt.sub(Ma,()=>{this.scheduleHighlighting()}),this.scheduleHighlighting()}update(e){(e.docChanged||e.focusChanged)&&this.scheduleHighlighting()}destroy(){this.scheduleHighlighting.cancel(),this.variablesUnsubscribe()}runHighlighting(){let e=jS({state:this.view.state,cellId:this.cellId,variables:lt.get(Ma)});e.length>0&&Re.debug(`Found ${e.length} reactive variables in cell ${this.cellId}`),queueMicrotask(()=>{this.view.dispatch({effects:dy.of(e)})})}};rd=xs.define({create(){return{decorations:Bi.none,ranges:[]}},update(e,n){let i={decorations:e.decorations.map(n.changes),ranges:e.ranges};for(let o of n.effects)o.is(dy)&&(i={decorations:Bi.set(o.value.map(s=>HS.range(s.from,s.to))),ranges:o.value});return i},provide:e=>Kt.decorations.from(e,n=>n.decorations)});function $S(e){return[rd,Pl.define(n=>new VS(n,e))]}Y_=function(e,n){return n?$S(e):[]};function fy(e,n=!1){if(!e)return null;let i=document.createElement("span");if(i.classList.add("mo-cm-tooltip"),i.classList.add("docs-documentation"),n&&i.classList.add("cm-tooltip-section"),i.style.display="flex",i.style.flexDirection="column",i.style.gap=".8rem",i.innerHTML=e,n){let o=document.createElement("div");o.classList.add("text-xs","text-muted-foreground","font-medium","pt-1","-mt-2","border-t","border-border");let s=document.createElement("kbd");s.className="ml-1 rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground inline whitespace-nowrap",s.textContent=b4()?"\u2318":"Ctrl",o.append(document.createTextNode("Jump to defining cell ")),o.append(s),o.append(document.createTextNode(" + Click")),i.append(o)}return i}dd=new Iu("autocomplete-result",async(e,n)=>{let{sendCodeCompletionRequest:i}=Hi();await i({id:e,...n})});var WS={param:3,property:2};const Gd={asCompletionResult(e,n){return{from:e-n.prefix_length,options:n.options.map(i=>({label:i.name,type:i.type,boost:WS[i.type]??1,info:()=>fy(i.completion_info)})),validFor:/^\w*$/}},asHoverTooltip({position:e,message:n,limitToType:i,excludeTypes:o,exactName:s,showGoToDefinitionHint:c=!1}){let d=US(n.options,s);if(!d)return;let f=e-n.prefix_length,p=fy(d.completion_info,c);if(p&&!(i&&d.type!==i)&&!(o!=null&&o.includes(d.type)))return{pos:f,html:d.completion_info,end:f+d.name.length,above:!0,create:()=>({dom:p,resize:!1})}}};function US(e,n){if(e.length!==0){if(e.length===1)return e[0];if(n)return e.find(i=>i.name===n)}}k_=function(e){var n;return[(n=e==null?void 0:e.pylsp)!=null&&n.enabled&&sc("pylsp")?[]:xh(async(i,o)=>{let s=await py({view:i,pos:o,excludeTypes:["tooltip"]});return s===null||s==="cancelled"?null:s},{hideOnChange:!0}),GS]};async function py({view:e,pos:n,excludeTypes:i}){var w;let o=Zn.findElement(e.dom);if(!o)return Re.error("Failed to find active cell."),null;let s=Zn.parse(o.id),{startToken:c,endToken:d}=Jd(e.state.doc,n),f=((w=e.state.field(rd,!1))==null?void 0:w.ranges.some(_=>n>=_.from&&n<=_.to))??!1,p=await dd.request({document:e.state.doc.slice(0,d).toString(),cellId:s});if(!p)return"cancelled";let y=e.state.doc.slice(c,d).toString();return Gd.asHoverTooltip({position:d,message:p,exactName:y,excludeTypes:i,showGoToDefinitionHint:f})??null}function Jd(e,n){let i=n,o=i>0?e.sliceString(i-1,i):"",s=i0;){let f=e.sliceString(c-1,c);if(!/\w/.test(f))break;c--}for(;d{if(lt.get(cd).selectedPanel!=="documentation")return;let i=await py({view:e,pos:n});i!=="cancelled"&<.set(Ju,{documentation:(i==null?void 0:i.html)??null})},300),GS=Kt.updateListener.of(e=>{if(e.selectionSet&&KS(e.state)){let n=e.state.selection.main.head;QS(e.view,n)}});function hy(e,n){e.focus(),requestAnimationFrame(()=>{e.dispatch({selection:{anchor:n,head:n},effects:Kt.scrollIntoView(n,{y:"center"})})})}qu=function(e,n){let{state:i}=e,o=cw(i),s=!1,c=0;return o.iterate({enter:d=>{if(s)return!1;if(d.name==="VariableName"&&i.doc.sliceString(d.from,d.to)===n)return c=d.from,s=!0,!1;if(d.name==="Comment"||d.name==="String")return!1}}),s?(hy(e,c),!0):!1};function JS(e,n){return hy(e,e.state.doc.line(n).from),!0}function XS(e){let{from:n,to:i}=e.selection.main;if(n===i){let{startToken:o,endToken:s}=Jd(e.doc,n);return e.doc.sliceString(o,s)}return e.doc.sliceString(n,i)}function YS(e,n){if(!n)return null;let i=e[n];return!i||i.declaredBy.length===0?null:i.declaredBy[0]}function ZS(e){return e.startsWith("_")}Zh=function(e){let{state:n}=e,i=XS(n);return i?(kw(e),e.dispatch({effects:F4}),fm(e,i)):!1},fm=function(e,n){let i=eC(e,n);return i?qu(i,n):!1},d_=function(e,n){let i=my(e);return i?JS(i,n):!1};function eC(e,n){if(ZS(n))return e;let i=YS(lt.get(Ma),n);return i?my(i):null}function my(e){var n;return((n=lt.get(bt).cellHandles[e].current)==null?void 0:n.editorView)??null}function tC(e){var n=e.Pos;function i(u,m,v){if(m.line===v.line&&m.ch>=v.ch-1){var b=u.getLine(m.line).charCodeAt(m.ch);55296<=b&&b<=55551&&(v.ch+=1)}return{start:m,end:v}}var o=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"g",type:"keyToKey",toKeys:"gk"},{keys:"g",type:"keyToKey",toKeys:"gj"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"x"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"g?",type:"operator",operator:"rot13"},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],s=Object.create(null),c=o.length,d=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"marks",excludeFromCommandHistory:!0},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],f=vn("");function p(u){u.setOption("disableInput",!0),u.setOption("showCursorWhenSelecting",!1),e.signal(u,"vim-mode-change",{mode:"normal"}),u.on("cursorActivity",$o),se(u),e.on(u.getInputField(),"paste",w(u))}function y(u){u.setOption("disableInput",!1),u.off("cursorActivity",$o),e.off(u.getInputField(),"paste",w(u)),u.state.vim=null,sa&&clearTimeout(sa)}function w(u){var m=u.state.vim;return m.onPasteFn||(m.onPasteFn=function(){m.insertMode||(u.setCursor(_t(u.getCursor(),0,1)),fn.enterInsertMode(u,{},m))}),m.onPasteFn}var _=/[\d]/,C=[e.isWordChar,function(u){return u&&!e.isWordChar(u)&&!/\s/.test(u)}],E=[function(u){return/\S/.test(u)}],T=["<",">"],P=["-",'"',".",":","_","/","+"],V=/^\w$/,$=/^[A-Z]$/;try{$=RegExp("^[\\p{Lu}]$","u")}catch{}function B(u,m){return m>=u.firstLine()&&m<=u.lastLine()}function I(u){return/^[a-z]$/.test(u)}function Q(u){return"()[]{}".indexOf(u)!=-1}function pe(u){return _.test(u)}function M(u){return $.test(u)}function A(u){return/^\s*$/.test(u)}function W(u){return".?!".indexOf(u)!=-1}function de(u,m){for(var v=0;v1&&m.setOption("textwidth",v)}});var Se=function(){var u=100,m=-1,v=0,b=0,x=Array(u);function k(N,z,q){var oe=x[m%u];function ie(Y){var xe=++m%u,_e=x[xe];_e&&_e.clear(),x[xe]=N.setBookmark(Y)}if(oe){var X=oe.find();X&&!gt(X,z)&&ie(z)}else ie(z);ie(q),v=m,b=m-u+1,b<0&&(b=0)}function R(N,z){m+=z,m>v?m=v:m0?1:-1,ie,X=N.getCursor();do if(m+=oe,q=x[(u+m)%u],q&&(ie=q.find())&&!gt(X,ie))break;while(mb)}return q}function O(N,z){var q=m,oe=R(N,z);return m=q,oe&&oe.find()}return{cachedCursor:void 0,add:k,find:O,move:R}},Z=function(u){return u?{changes:u.changes,expectCursorActivityForChange:u.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};class re{constructor(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Z()}exitMacroRecordMode(){var m=K.macroModeState;m.onRecordingDone&&m.onRecordingDone(),m.onRecordingDone=void 0,m.isRecording=!1}enterMacroRecordMode(m,v){var b=K.registerController.getRegister(v);if(b){if(b.clear(),this.latestRegister=v,m.openDialog){var x=Nn("span",{class:"cm-vim-message"},"recording @"+v);this.onRecordingDone=m.openDialog(x,function(){},{bottom:!0})}this.isRecording=!0}}}function se(u){return u.state.vim||(u.state.vim={inputState:new vr,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:void 0,sel:{anchor:new n(0,0),head:new n(0,0)},options:{},expectLiteralNext:!1,status:""}),u.state.vim}var K;function Le(){for(var u in K={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Se(),macroModeState:new re,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new On({}),searchHistoryController:new br,exCommandHistoryController:new br},fe){var m=fe[u];m.value=m.defaultValue}}class Fe{constructor(m,v){this.keyName=m,this.key=v.key,this.ctrlKey=v.ctrlKey,this.altKey=v.altKey,this.metaKey=v.metaKey,this.shiftKey=v.shiftKey}}var et,Be={enterVimMode:p,leaveVimMode:y,buildKeyMap:function(){},getRegisterController:function(){return K.registerController},resetVimGlobalState_:Le,getVimGlobalState_:function(){return K},maybeInitVimState_:se,suppressErrorLogging:!1,InsertModeKey:Fe,map:function(u,m,v){_n.map(u,m,v)},unmap:function(u,m){return _n.unmap(u,m)},noremap:function(u,m,v){_n.map(u,m,v,!0)},mapclear:function(u){var m=o.length,v=c,b=o.slice(0,m-v);if(o=o.slice(m-v),u)for(var x=b.length-1;x>=0;x--){var k=b[x];if(u!==k.context)if(k.context)this._mapCommand(k);else{var R=["normal","insert","visual"];for(var O in R)if(R[O]!==u){var N=Object.assign({},k);N.context=R[O],this._mapCommand(N)}}}},langmap:wt,vimKeyFromEvent:tn,setOption:J,getOption:be,defineOption:we,defineEx:function(u,m,v){if(!m)m=u;else if(u.indexOf(m)!==0)throw Error('(Vim.defineEx) "'+m+'" is not a prefix of "'+u+'", command not registered');xr[u]=v,_n.commandMap_[m]={name:u,shortName:m,type:"api"}},handleKey:function(u,m,v){var b=this.findKey(u,m,v);if(typeof b=="function")return b()},multiSelectHandleKey:ki,findKey:function(u,m,v){var b=se(u),x=u;function k(){var q=K.macroModeState;if(q.isRecording){if(m=="q")return q.exitMacroRecordMode(),pt(x),!0;v!="mapping"&&Vr(q,m)}}function R(){if(m==""){if(b.visualMode)Ye(x);else if(b.insertMode)Hn(x);else return;return pt(x),!0}}function O(){if(R())return!0;b.inputState.keyBuffer.push(m);var q=b.inputState.keyBuffer.join(""),oe=m.length==1,ie=Pn.matchCommand(q,o,b.inputState,"insert"),X=b.inputState.changeQueue;if(ie.type=="none")return pt(x),!1;if(ie.type=="partial"){if(ie.expectLiteralNext&&(b.expectLiteralNext=!0),et&&window.clearTimeout(et),et=oe&&window.setTimeout(function(){b.insertMode&&b.inputState.keyBuffer.length&&pt(x)},be("insertModeEscKeysTimeout")),oe){var Y=x.listSelections();(!X||X.removed.length!=Y.length)&&(X=b.inputState.changeQueue=new zr),X.inserted+=m;for(var xe=0;xe/.test(m))?function(){return!0}:void 0;if(z===!0)return function(){return!0};if(z)return function(){return x.operation(function(){x.curOp.isVimOp=!0;try{if(typeof z!="object")return;z.type=="keyToKey"?mt(x,z.toKeys,z):Pn.processCommand(x,b,z)}catch(q){throw x.state.vim=void 0,se(x),Be.suppressErrorLogging||console.log(q),q}return!0})}},handleEx:function(u,m){_n.processCommand(u,m)},defineMotion:ta,defineAction:ti,defineOperator:gi,mapCommand:kc,_mapCommand:ai,defineRegister:hi,exitVisualMode:Ye,exitInsertMode:Hn},je=[],Pe=!1,Ae;function ft(u){if(!Ae)throw Error("No prompt to send key to");if(u[0]=="<"){var m=u.toLowerCase().slice(1,-1);if(m=m.split("-").pop()||"",m=="lt")u="<";else if(m=="space")u=" ";else if(m=="cr")u=` +`;else if(We[m]){var v=Ae.value||"",b={key:We[m],target:{value:v,selectionEnd:v.length,selectionStart:v.length}};Ae.onKeyDown&&Ae.onKeyDown(b,Ae.value,k),Ae&&Ae.onKeyUp&&Ae.onKeyUp(b,Ae.value,k);return}}if(u==` +`){var x=Ae;Ae=null,x.onClose&&x.onClose(x.value)}else Ae.value=(Ae.value||"")+u;function k(R){Ae&&(typeof R=="string"?Ae.value=R:Ae=null)}}function mt(u,m,v){var b=Pe;if(v){if(je.indexOf(v)!=-1)return;je.push(v),Pe=v.noremap!=0}try{for(var x=se(u),k=/<(?:[CSMA]-)*\w+>|./gi,R;R=k.exec(m);){var O=R[0],N=x.insertMode;if(Ae){ft(O);continue}if(!Be.handleKey(u,O,"mapping")&&N&&x.insertMode){if(O[0]=="<"){var z=O.toLowerCase().slice(1,-1);if(z=z.split("-").pop()||"",z=="lt")O="<";else if(z=="space")O=" ";else if(z=="cr")O=` +`;else if(We.hasOwnProperty(z)){O=We[z],Ya(u,O);continue}else O=O[0],k.lastIndex=R.index+1}u.replaceSelection(O)}}}finally{if(je.pop(),Pe=je.length?b:!1,!je.length&&Ae){var q=Ae;Ae=null,aa(u,q)}}}var Dn={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},un={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},We={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(Dn)).forEach(function(u){We[(Dn[u]||"").toLowerCase()]=We[u.toLowerCase()]=u});function tn(u,m){var k;var v=u.key;if(!un[v]){v.length>1&&v[0]=="n"&&(v=v.replace("Numpad","")),v=Dn[v]||v;var b="";if(u.ctrlKey&&(b+="C-"),u.altKey&&(b+="A-"),u.metaKey&&(b+="M-"),e.isMac&&b=="A-"&&v.length==1&&(b=b.slice(2)),(b||v.length>1)&&u.shiftKey&&(b+="S-"),m&&!m.expectLiteralNext&&v.length==1){if(f.keymap&&v in f.keymap)(f.remapCtrl!=0||!b)&&(v=f.keymap[v]);else if(v.charCodeAt(0)>128&&!s[v]){var x=((k=u.code)==null?void 0:k.slice(-1))||"";u.shiftKey||(x=x.toLowerCase()),x&&(v=x,!b&&u.altKey&&(b="A-"))}}return b+=v,b.length>1&&(b="<"+b+">"),b}}function wt(u,m){f.string!==u&&(f=vn(u)),f.remapCtrl=m}function vn(u){let m={};if(!u)return{keymap:m,string:""};function v(b){return b.split(/\\?(.)/).filter(Boolean)}return u.split(/((?:[^\\,]|\\.)+),/).map(b=>{if(!b)return;let x=b.split(/((?:[^\\;]|\\.)+);/);if(x.length==3){let k=v(x[1]),R=v(x[2]);if(k.length!==R.length)return;for(let O=0;O0||this.motionRepeat.length>0)&&(m=1,this.prefixRepeat.length>0&&(m*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(m*=parseInt(this.motionRepeat.join(""),10))),m}}function pt(u,m){u.state.vim.inputState=new vr,u.state.vim.expectLiteralNext=!1,e.signal(u,"vim-command-done",m)}function zr(){this.removed=[],this.inserted=""}class nn{constructor(m,v,b){this.clear(),this.keyBuffer=[m||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!v,this.blockwise=!!b}setText(m,v,b){this.keyBuffer=[m||""],this.linewise=!!v,this.blockwise=!!b}pushText(m,v){v&&(this.linewise||this.keyBuffer.push(` +`),this.linewise=!0),this.keyBuffer.push(m)}pushInsertModeChanges(m){this.insertModeChanges.push(Z(m))}pushSearchQuery(m){this.searchQueries.push(m)}clear(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1}toString(){return this.keyBuffer.join("")}}function hi(u,m){var v=K.registerController.registers;if(!u||u.length!=1)throw Error("Register name must be 1 character");if(v[u])throw Error("Register already defined "+u);v[u]=m,P.push(u)}class On{constructor(m){this.registers=m,this.unnamedRegister=m['"']=new nn,m["."]=new nn,m[":"]=new nn,m["/"]=new nn,m["+"]=new nn}pushText(m,v,b,x,k){if(m!=="_"){x&&b.charAt(b.length-1)!==` +`&&(b+=` +`);var R=this.isValidRegister(m)?this.getRegister(m):null;if(!R||!m){switch(v){case"yank":this.registers[0]=new nn(b,x,k);break;case"delete":case"change":b.indexOf(` +`)==-1?this.registers["-"]=new nn(b,x):(this.shiftNumericRegisters_(),this.registers[1]=new nn(b,x));break}this.unnamedRegister.setText(b,x,k);return}M(m)?R.pushText(b,x):R.setText(b,x,k),m==="+"&&navigator.clipboard.writeText(b),this.unnamedRegister.setText(R.toString(),x)}}getRegister(m){return this.isValidRegister(m)?(m=m.toLowerCase(),this.registers[m]||(this.registers[m]=new nn),this.registers[m]):this.unnamedRegister}isValidRegister(m){return m&&(de(m,P)||V.test(m))}shiftNumericRegisters_(){for(var m=9;m>=2;m--)this.registers[m]=this.getRegister(""+(m-1))}}class br{constructor(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}nextMatch(m,v){var b=this.historyBuffer,x=v?-1:1;this.initialPrefix===null&&(this.initialPrefix=m);for(var k=this.iterator+x;v?k>=0:k=b.length)return this.iterator=b.length,this.initialPrefix;if(k<0)return m}pushInput(m){var v=this.historyBuffer.indexOf(m);v>-1&&this.historyBuffer.splice(v,1),m.length&&this.historyBuffer.push(m)}reset(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}}var Pn={matchCommand:function(u,m,v,b){var x=yi(u,m,b,v),k=x.full[0];if(!k)return x.partial.length?{type:"partial",expectLiteralNext:x.partial.length==1&&x.partial[0].keys.slice(-11)==""}:{type:"none"};if(k.keys.slice(-11)==""||k.keys.slice(-10)==""){var R=wr(u);if(!R||R.length>1)return{type:"clear"};v.selectedCharacter=R}return{type:"full",command:k}},processCommand:function(u,m,v){switch(m.inputState.repeatOverride=v.repeatOverride,v.type){case"motion":this.processMotion(u,m,v);break;case"operator":this.processOperator(u,m,v);break;case"operatorMotion":this.processOperatorMotion(u,m,v);break;case"action":this.processAction(u,m,v);break;case"search":this.processSearch(u,m,v);break;case"ex":case"keyToEx":this.processEx(u,m,v);break}},processMotion:function(u,m,v){m.inputState.motion=v.motion,m.inputState.motionArgs=Fr(v.motionArgs),this.evalInput(u,m)},processOperator:function(u,m,v){var b=m.inputState;if(b.operator)if(b.operator==v.operator){b.motion="expandToLine",b.motionArgs={linewise:!0,repeat:1},this.evalInput(u,m);return}else pt(u);b.operator=v.operator,b.operatorArgs=Fr(v.operatorArgs),v.keys.length>1&&(b.operatorShortcut=v.keys),v.exitVisualBlock&&(m.visualBlock=!1,zn(u)),m.visualMode&&this.evalInput(u,m)},processOperatorMotion:function(u,m,v){var b=m.visualMode,x=Fr(v.operatorMotionArgs);x&&b&&x.visualLine&&(m.visualLine=!0),this.processOperator(u,m,v),b||this.processMotion(u,m,v)},processAction:function(u,m,v){var b=m.inputState,x=b.getRepeat(),k=!!x,R=Fr(v.actionArgs)||{repeat:1};b.selectedCharacter&&(R.selectedCharacter=b.selectedCharacter),v.operator&&this.processOperator(u,m,v),v.motion&&this.processMotion(u,m,v),(v.motion||v.operator)&&this.evalInput(u,m),R.repeat=x||1,R.repeatIsExplicit=k,R.registerName=b.registerName,pt(u),m.lastMotion=null,v.isEdit&&this.recordLastEdit(m,b,v),fn[v.action](u,R,m)},processSearch:function(u,m,v){if(!u.getSearchCursor)return;var b=v.searchArgs.forward,x=v.searchArgs.wholeWordOnly;Un(u).setReversed(!b);var k=b?"/":"?",R=Un(u).getQuery(),O=u.getScrollInfo(),N="";function z(Te,Ne,dt){K.searchHistoryController.pushInput(Te),K.searchHistoryController.reset();try{wi(u,Te,Ne,dt)}catch{ct(u,"Invalid regex: "+Te),pt(u);return}Pn.processMotion(u,m,{keys:"",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:v.searchArgs.toJumplist}})}function q(Te){u.scrollTo(O.left,O.top),z(Te,!0,!0);var Ne=K.macroModeState;Ne.isRecording&&Ga(Ne,Te)}function oe(){return be("pcre")?"(JavaScript regexp: set pcre)":"(Vim regexp: set nopcre)"}function ie(Te,Ne,dt){var Je=tn(Te),Nt,Ft;Je==""||Je==""?(Nt=Je=="",Ft=Te.target?Te.target.selectionEnd:0,Ne=K.searchHistoryController.nextMatch(Ne,Nt)||"",dt(Ne),Ft&&Te.target&&(Te.target.selectionEnd=Te.target.selectionStart=Math.min(Ft,Te.target.value.length))):Je&&Je!=""&&Je!=""&&K.searchHistoryController.reset(),N=Ne,X()}function X(){var Te;try{Te=wi(u,N,!0,!0)}catch{}Te?u.scrollIntoView(_i(u,!b,Te),30):(xi(u),u.scrollTo(O.left,O.top))}function Y(Te,Ne,dt){var Je=tn(Te);Je==""||Je==""||Je==""||Je==""&&Ne==""?(K.searchHistoryController.pushInput(Ne),K.searchHistoryController.reset(),wi(u,(R==null?void 0:R.source)||""),xi(u),u.scrollTo(O.left,O.top),e.e_stop(Te),pt(u),dt(),u.focus()):Je==""||Je==""?e.e_stop(Te):Je==""&&(e.e_stop(Te),dt(""))}switch(v.searchArgs.querySrc){case"prompt":var xe=K.macroModeState;xe.isPlaying?z(xe.replaySearchQueries.shift()||"",!0,!1):aa(u,{onClose:q,prefix:k,desc:Nn("span",{$cursor:"pointer",onmousedown:function(Ne){Ne.preventDefault(),J("pcre",!be("pcre")),this.textContent=oe(),X()}},oe()),onKeyUp:ie,onKeyDown:Y});break;case"wordUnderCursor":var _e=Ee(u,{noSymbol:!0}),qe=!0;if(_e||(_e=Ee(u,{noSymbol:!1}),qe=!1),!_e){ct(u,"No word under cursor"),pt(u);return}let Te=u.getLine(_e.start.line).substring(_e.start.ch,_e.end.ch);Te=qe&&x?"\\b"+Te+"\\b":Mn(Te),K.jumpList.cachedCursor=u.getCursor(),u.setCursor(_e.start),z(Te,!0,!1);break}},processEx:function(u,m,v){function b(O){K.exCommandHistoryController.pushInput(O),K.exCommandHistoryController.reset(),_n.processCommand(u,O),u.state.vim&&pt(u),xi(u)}function x(O,N,z){var q=tn(O),oe,ie;(q==""||q==""||q==""||q==""&&N=="")&&(K.exCommandHistoryController.pushInput(N),K.exCommandHistoryController.reset(),e.e_stop(O),pt(u),xi(u),z(),u.focus()),q==""||q==""?(e.e_stop(O),oe=q=="",ie=O.target?O.target.selectionEnd:0,N=K.exCommandHistoryController.nextMatch(N,oe)||"",z(N),ie&&O.target&&(O.target.selectionEnd=O.target.selectionStart=Math.min(ie,O.target.value.length))):q==""?(e.e_stop(O),z("")):q&&q!=""&&q!=""&&K.exCommandHistoryController.reset()}function k(O,N){var z=new e.StringStream(N),q={};try{if(_n.parseInput_(u,z,q),q.commandName!="s"){xi(u);return}var oe=_n.matchCommand_(q.commandName);if(!oe||(_n.parseCommandArgs_(z,q,oe),!q.argString))return;var ie=Hs(q.argString.slice(1),!0,!0);ie&&Bo(u,ie)}catch{}}if(v.type=="keyToEx")_n.processCommand(u,v.exArgs.input);else{var R={onClose:b,onKeyDown:x,onKeyUp:k,prefix:":"};m.visualMode&&(R.value="'<,'>",R.selectValueOnOpen=!1),aa(u,R)}},evalInput:function(u,m){var v=m.inputState,b=v.motion,x=v.motionArgs||{repeat:1},k=v.operator,R=v.operatorArgs||{},O=v.registerName,N=m.sel,z=Ge(m.visualMode?zt(u,N.head):u.getCursor("head")),q=Ge(m.visualMode?zt(u,N.anchor):u.getCursor("anchor")),oe=Ge(z),ie=Ge(q),X,Y,xe;if(k&&this.recordLastEdit(m,v),xe=v.repeatOverride===void 0?v.getRepeat():v.repeatOverride,xe>0&&x.explicitRepeat?x.repeatIsExplicit=!0:(x.noRepeat||!x.explicitRepeat&&xe===0)&&(xe=1,x.repeatIsExplicit=!1),v.selectedCharacter&&(x.selectedCharacter=R.selectedCharacter=v.selectedCharacter),x.repeat=xe,pt(u),b){var _e=dn[b](u,z,x,m,v);if(m.lastMotion=dn[b],!_e)return;if(x.toJumplist){var qe=K.jumpList,Te=qe.cachedCursor;Te?(Ve(u,Te,_e),delete qe.cachedCursor):Ve(u,z,_e)}_e instanceof Array?(Y=_e[0],X=_e[1]):X=_e,X||(X=Ge(z)),m.visualMode?(m.visualBlock&&X.ch===1/0||(X=zt(u,X,oe)),Y&&(Y=zt(u,Y)),Y||(Y=ie),N.anchor=Y,N.head=X,zn(u),Fn(u,m,"<",xt(Y,X)?Y:X),Fn(u,m,">",xt(Y,X)?X:Y)):k||(X=zt(u,X,oe),u.setCursor(X.line,X.ch))}if(k){if(R.lastSel){Y=ie;var Ne=R.lastSel,dt=Math.abs(Ne.head.line-Ne.anchor.line),Je=Math.abs(Ne.head.ch-Ne.anchor.ch);X=Ne.visualLine?new n(ie.line+dt,ie.ch):Ne.visualBlock?new n(ie.line+dt,ie.ch+Je):Ne.head.line==Ne.anchor.line?new n(ie.line,ie.ch+Je):new n(ie.line+dt,ie.ch),m.visualMode=!0,m.visualLine=Ne.visualLine,m.visualBlock=Ne.visualBlock,N=m.sel={anchor:Y,head:X},zn(u)}else m.visualMode&&(R.lastSel={anchor:Ge(N.anchor),head:Ge(N.head),visualBlock:m.visualBlock,visualLine:m.visualLine});var Nt,Ft,Ue,$e,$t;if(m.visualMode){Nt=kt(N.head,N.anchor),Ft=jn(N.head,N.anchor),Ue=m.visualLine||R.linewise,$e=m.visualBlock?"block":Ue?"line":"char";var rn=i(u,Nt,Ft);if($t=or(u,{anchor:rn.start,head:rn.end},$e),Ue){var pn=$t.ranges;if($e=="block")for(var Za=0;ZaO:q.linez&&x.line==z?wn(u,m,v,b,!0):(v.toFirstChar&&(k=ve(u.getLine(O)),b.lastHPos=k),b.lastHSPos=u.charCoords(new n(O,k),"div").left,new n(O,k))},moveByDisplayLines:function(u,m,v,b){var x=m;switch(b.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:b.lastHSPos=u.charCoords(x,"div").left}var k=v.repeat,R=u.findPosV(x,v.forward?k:-k,"line",b.lastHSPos);if(R.hitSide)if(v.forward){var O={top:u.charCoords(R,"div").top+8,left:b.lastHSPos};R=u.coordsChar(O,"div")}else{var N=u.charCoords(new n(u.firstLine(),0),"div");N.left=b.lastHSPos,R=u.coordsChar(N,"div")}return b.lastHPos=R.ch,R},moveByPage:function(u,m,v){var b=m,x=v.repeat;return u.findPosV(b,v.forward?x:-x,"page")},moveByParagraph:function(u,m,v){var b=v.forward?1:-1;return Xt(u,m,v.repeat,b).start},moveBySentence:function(u,m,v){var b=v.forward?1:-1;return mc(u,m,v.repeat,b)},moveByScroll:function(u,m,v,b){var x=u.getScrollInfo(),k=null,R=v.repeat;R||(R=x.clientHeight/(2*u.defaultTextHeight()));var O=u.charCoords(m,"local");if(v.repeat=R,k=dn.moveByDisplayLines(u,m,v,b),!k)return null;var N=u.charCoords(k,"local");return u.scrollTo(null,x.top+N.top-O.top),k},moveByWords:function(u,m,v){return ut(u,m,v.repeat,!!v.forward,!!v.wordEnd,!!v.bigWord)},moveTillCharacter:function(u,m,v){var b=v.repeat,x=sr(u,b,v.forward,v.selectedCharacter,m),k=v.forward?-1:1;return ot(k,v),x?(x.ch+=k,x):null},moveToCharacter:function(u,m,v){var b=v.repeat;return ot(0,v),sr(u,b,v.forward,v.selectedCharacter,m)||m},moveToSymbol:function(u,m,v){var b=v.repeat;return v.selectedCharacter&&Lt(u,b,v.forward,v.selectedCharacter)||m},moveToColumn:function(u,m,v,b){var x=v.repeat;return b.lastHPos=x-1,b.lastHSPos=u.charCoords(m,"div").left,ri(u,x)},moveToEol:function(u,m,v,b){return wn(u,m,v,b,!1)},moveToFirstNonWhiteSpaceCharacter:function(u,m){var v=m;return new n(v.line,ve(u.getLine(v.line)))},moveToMatchedSymbol:function(u,m){for(var v=m,b=v.line,x=v.ch,k=u.getLine(b),R;x"?/[(){}[\]<>]/:/[(){}[\]]/;return u.findMatchingBracket(new n(b,x),{bracketRegex:N}).to}else return v},moveToStartOfLine:function(u,m){return new n(m.line,0)},moveToLineOrEdgeOfDocument:function(u,m,v){var b=v.forward?u.lastLine():u.firstLine();return v.repeatIsExplicit&&(b=v.repeat-u.getOption("firstLineNumber")),new n(b,ve(u.getLine(b)))},moveToStartOfDisplayLine:function(u){return u.execCommand("goLineLeft"),u.getCursor()},moveToEndOfDisplayLine:function(u){u.execCommand("goLineRight");var m=u.getCursor();return m.sticky=="before"&&m.ch--,m},textObjectManipulation:function(u,m,v,b){var x={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},k={"'":!0,'"':!0,"`":!0},R=v.selectedCharacter||"";R=="b"?R="(":R=="B"&&(R="{");var O=!v.textObjectInner,N,z;if(x[R]){if(z=!0,N=ii(u,m,R,O),!N){var q=u.getSearchCursor(RegExp("\\"+R,"g"),m);q.find()&&(N=ii(u,q.from(),R,O))}}else if(k[R])z=!0,N=ia(u,m,R,O);else if(R==="W"||R==="w")for(var oe=v.repeat||1;oe-- >0;){var ie=Ee(u,{inclusive:O,innerWord:!O,bigWord:R==="W",noSymbol:R==="W",multiline:!0},N&&N.end);ie&&(N||(N=ie),N.end=ie.end)}else if(R==="p")if(N=Xt(u,m,v.repeat,0,O),v.linewise=!0,b.visualMode)b.visualLine||(b.visualLine=!0);else{var X=b.inputState.operatorArgs;X&&(X.linewise=!0),N.end.line--}else if(R==="t")N=He(u,m,O);else if(R==="s"){var Y=u.getLine(m.line);m.ch>0&&W(Y[m.ch])&&--m.ch;var xe=Fs(u,m,v.repeat,1,O),_e=Fs(u,m,v.repeat,-1,O);A(u.getLine(_e.line)[_e.ch])&&A(u.getLine(xe.line)[xe.ch-1])&&(_e={line:_e.line,ch:_e.ch+1}),N={start:_e,end:xe}}return N?u.state.vim.visualMode?bi(u,N.start,N.end,z):[N.start,N.end]:null},repeatLastCharacterSearch:function(u,m,v){var b=K.lastCharacterSearch,x=v.repeat,k=v.forward===b.forward,R=(b.increment?1:0)*(k?-1:1);u.moveH(-R,"char"),v.inclusive=!!k;var O=sr(u,x,k,b.selectedCharacter);return O?(O.ch+=R,O):(u.moveH(R,"char"),m)}};function ta(u,m){dn[u]=m}function mi(u,m){for(var v=[],b=0;bR.line&&(O=new n(O.line-1,Number.MAX_VALUE))),u.replaceRange("",R,O),b=R}K.registerController.pushText(m.registerName,"change",x,m.linewise,v.length>1),fn.enterInsertMode(u,{head:b},u.state.vim)},delete:function(u,m,v){var b,x,k=u.state.vim;if(k.visualBlock){x=u.getSelection();var R=mi("",v.length);u.replaceSelections(R),b=kt(v[0].head,v[0].anchor)}else{var O=v[0].anchor,N=v[0].head;m.linewise&&N.line!=u.firstLine()&&O.line==u.lastLine()&&O.line==N.line-1&&(O.line==u.firstLine()?O.ch=0:O=new n(O.line-1,St(u,O.line-1))),x=u.getRange(O,N),u.replaceRange("",O,N),b=O,m.linewise&&(b=dn.moveToFirstNonWhiteSpaceCharacter(u,O))}return K.registerController.pushText(m.registerName,"delete",x,m.linewise,k.visualBlock),zt(u,b)},indent:function(u,m,v){var b=u.state.vim,x=b.visualMode&&m.repeat||1;if(b.visualBlock){for(var k=u.getOption("tabSize"),R=u.getOption("indentWithTabs")?" ":" ".repeat(k),O,N=v.length-1;N>=0;N--)if(O=kt(v[N].anchor,v[N].head),m.indentRight)u.replaceRange(R.repeat(x),O,O);else{for(var z=u.getLine(O.line),q=0,oe=0;oex&&m.linewise&&R--,m.keepCursor?b:new n(R,0)}},changeCase:function(u,m,v,b,x){for(var k=u.getSelections(),R=[],O=m.toLower,N=0;N{let q=z.charCodeAt(0);return q>=65&&q<=90?String.fromCharCode(65+(q-65+13)%26):q>=97&&q<=122?String.fromCharCode(97+(q-97+13)%26):z}).join("");R.push(N)}return u.replaceSelections(R),m.shouldMoveCursor?x:!u.state.vim.visualMode&&m.linewise&&v[0].anchor.line+1==v[0].head.line?dn.moveToFirstNonWhiteSpaceCharacter(u,b):m.linewise?b:kt(v[0].anchor,v[0].head)}};function gi(u,m){Ut[u]=m}var fn={jumpListWalk:function(u,m,v){if(!v.visualMode){var b=m.repeat||1,x=m.forward,k=K.jumpList.move(u,x?b:-b),R=k?k.find():void 0;R||(R=u.getCursor()),u.setCursor(R)}},scroll:function(u,m,v){if(!v.visualMode){var b=m.repeat||1,x=u.defaultTextHeight(),k=u.getScrollInfo().top,R=x*b,O=m.forward?k+R:k-R,N=Ge(u.getCursor()),z=u.charCoords(N,"local");if(m.forward)O>z.top?(N.line+=(O-z.top)/x,N.line=Math.ceil(N.line),u.setCursor(N),z=u.charCoords(N,"local"),u.scrollTo(null,z.top)):u.scrollTo(null,O);else{var q=O+u.getScrollInfo().clientHeight;q=x.anchor.line?_t(x.head,0,1):new n(x.anchor.line,0)}else if(b=="inplace"){if(v.visualMode)return}else b=="lastEdit"&&(k=_c(u)||k);u.setOption("disableInput",!1),m&&m.replace?(u.toggleOverwrite(!0),u.setOption("keyMap","vim-replace"),e.signal(u,"vim-mode-change",{mode:"replace"})):(u.toggleOverwrite(!1),u.setOption("keyMap","vim-insert"),e.signal(u,"vim-mode-change",{mode:"insert"})),K.macroModeState.isPlaying||(u.on("change",$r),v.insertEnd&&v.insertEnd.clear(),v.insertEnd=u.setBookmark(k,{insertLeft:!0}),e.on(u.getInputField(),"keydown",Us)),v.visualMode&&Ye(u),ar(u,k,R)}},toggleVisualMode:function(u,m,v){var b=m.repeat,x=u.getCursor(),k;if(v.visualMode)v.visualLine!=!!m.linewise||v.visualBlock!=!!m.blockwise?(v.visualLine=!!m.linewise,v.visualBlock=!!m.blockwise,e.signal(u,"vim-mode-change",{mode:"visual",subMode:v.visualLine?"linewise":v.visualBlock?"blockwise":""}),zn(u)):Ye(u);else{v.visualMode=!0,v.visualLine=!!m.linewise,v.visualBlock=!!m.blockwise,k=zt(u,new n(x.line,x.ch+b-1));var R=i(u,x,k);v.sel={anchor:R.start,head:R.end},e.signal(u,"vim-mode-change",{mode:"visual",subMode:v.visualLine?"linewise":v.visualBlock?"blockwise":""}),zn(u),Fn(u,v,"<",kt(x,k)),Fn(u,v,">",jn(x,k))}},reselectLastSelection:function(u,m,v){var b=v.lastSelection;if(v.visualMode&&Ln(u,v),b){var x=b.anchorMark.find(),k=b.headMark.find();if(!x||!k)return;v.sel={anchor:x,head:k},v.visualMode=!0,v.visualLine=b.visualLine,v.visualBlock=b.visualBlock,zn(u),Fn(u,v,"<",kt(x,k)),Fn(u,v,">",jn(x,k)),e.signal(u,"vim-mode-change",{mode:"visual",subMode:v.visualLine?"linewise":v.visualBlock?"blockwise":""})}},joinLines:function(u,m,v){var b,x;if(v.visualMode){if(b=u.getCursor("anchor"),x=u.getCursor("head"),xt(x,b)){var k=x;x=b,b=k}x.ch=St(u,x.line)-1}else{var R=Math.max(m.repeat,2);b=u.getCursor(),x=zt(u,new n(b.line+R-1,1/0))}for(var O=0,N=b.line;N{this.continuePaste(u,m,v,k,b)});else{var x=b.toString();this.continuePaste(u,m,v,x,b)}},continuePaste:function(u,m,v,b,x){var k=Ge(u.getCursor());if(b){if(m.matchIndent){var R=u.getOption("tabSize"),O=function($t){var rn=$t.split(" ").length-1,pn=$t.split(" ").length-1;return rn*R+pn*1},N=O(u.getLine(u.getCursor().line).match(/^\s*/)[0]),z=b.replace(/\n$/,""),q=b!==z,oe=O(b.match(/^\s*/)[0]),b=z.replace(/^\s*/gm,function($t){var rn=N+(O($t)-oe);if(rn<0)return"";if(u.getOption("indentWithTabs")){var pn=Math.floor(rn/R);return Array(pn+1).join(" ")}else return Array(rn+1).join(" ")});b+=q?` +`:""}m.repeat>1&&(b=Array(m.repeat+1).join(b));var ie=x.linewise,X=x.blockwise,Y=X?b.split(` +`):void 0;if(Y){ie&&Y.pop();for(var xe=0;xeu.lastLine()&&u.replaceRange(` +`,new n(Ue,0)),St(u,Ue)N.length&&(k=N.length),R=new n(x.line,k)}var z=i(u,x,R);if(x=z.start,R=z.end,b==` +`)v.visualMode||u.replaceRange("",x,R),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(u);else{var q=u.getRange(x,R);if(q=q.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b),q=q.replace(/[^\n]/g,b),v.visualBlock){var oe=Array(u.getOption("tabSize")+1).join(" ");q=u.getSelection(),q=q.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b);var ie=q.replace(/\t/g,oe).replace(/[^\n]/g,b).split(` +`);u.replaceSelections(ie)}else u.replaceRange(q,x,R);v.visualMode?(x=xt(O[0].anchor,O[0].head)?O[0].anchor:O[0].head,u.setCursor(x),Ye(u,!1)):u.setCursor(_t(R,0,-1))}},incrementNumberToken:function(u,m){for(var v=u.getCursor(),b=u.getLine(v.line),x=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,k,R,O,N;(k=x.exec(b))!==null&&(R=k.index,O=R+k[0].length,!(v.chN&&(q=-1),N+=q,N>O&&(N-=2)}return new n(k,N)}function Fr(u){var m={};for(var v in u)Object.prototype.hasOwnProperty.call(u,v)&&(m[v]=u[v]);return m}function _t(u,m,v){return typeof m=="object"&&(v=m.ch,m=m.line),new n(u.line+m,u.ch+v)}function yi(u,m,v,b){b.operator&&(v="operatorPending");for(var x,k=[],R=[],O=Pe?m.length-c:0;O",b=m.slice(-10)=="";if(v||b){var x=m.length-(v?11:10),k=u.slice(0,x),R=m.slice(0,x);return k==R&&u.length>x?"full":R.indexOf(k)==0?"partial":!1}else return u==m?"full":m.indexOf(u)==0?"partial":!1}function wr(u){var m=/^.*(<[^>]+>)$/.exec(u),v=m?m[1]:u.slice(-1);if(v.length>1)switch(v){case"":case"":v=` +`;break;case"":case"":v=" ";break;default:v="";break}return v}function Jt(u,m,v){return function(){for(var b=0;b2&&(m=kt.apply(void 0,Array.prototype.slice.call(arguments,1))),xt(u,m)?u:m}function jn(u,m){return arguments.length>2&&(m=jn.apply(void 0,Array.prototype.slice.call(arguments,1))),xt(u,m)?m:u}function _r(u,m,v){var b=xt(u,m),x=xt(m,v);return b&&x}function St(u,m){return u.getLine(m).length}function ir(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function Mn(u){return u.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function Br(u,m,v){var b=St(u,m),x=Array(v-b+1).join(" ");u.setCursor(new n(m,b)),u.replaceRange(x,u.getCursor())}function bn(u,m){var v=[],b=u.listSelections(),x=Ge(u.clipPos(m)),k=!gt(m,x),R=vi(b,u.getCursor("head")),O=gt(b[R].head,b[R].anchor),N=b.length-1,z=N-R>R?N:0,q=b[z].anchor,oe=Math.min(q.line,x.line),ie=Math.max(q.line,x.line),X=q.ch,Y=x.ch,xe=b[z].head.ch-X,_e=Y-X;xe>0&&_e<=0?(X++,k||Y--):xe<0&&_e>=0?(X--,O||Y++):xe<0&&_e==-1&&(X--,Y++);for(var qe=oe;qe<=ie;qe++){var Te={anchor:new n(qe,X),head:new n(qe,Y)};v.push(Te)}return u.setSelections(v),m.ch=Y,q.ch=X,q}function ar(u,m,v){for(var b=[],x=0;xN&&(x.line=N),x.ch=St(u,x.line)}return{ranges:[{anchor:k,head:x}],primary:0}}else if(v=="block"){var z=Math.min(k.line,x.line),q=k.ch,oe=Math.max(k.line,x.line),ie=x.ch;q0&&k&&A(k);k=x.pop())v.line--,v.ch=0;k?(v.line--,v.ch=St(u,v.line)):v.ch=0}}function te(u,m,v){m.ch=0,v.ch=0,v.line++}function ve(u){if(!u)return 0;var m=u.search(/\S/);return m==-1?u.length:m}function Ee(u,{inclusive:m,innerWord:v,bigWord:b,noSymbol:x,multiline:k},R){var O=R||L(u),N=u.getLine(O.line),z=N,q=O.line,oe=q,ie=O.ch,X,Y=x?C[0]:E[0];if(v&&/\s/.test(N.charAt(ie)))Y=function(dt){return/\s/.test(dt)};else{for(;!Y(N.charAt(ie));)if(ie++,ie>=N.length){if(!k)return null;ie--,X=rt(u,O,!0,b,!0);break}b?Y=E[0]:(Y=C[0],Y(N.charAt(ie))||(Y=C[1]))}for(var xe=ie,_e=ie;Y(N.charAt(_e))&&_e>=0;)_e--;if(_e++,X)xe=X.to,oe=X.line,z=u.getLine(oe),!z&&xe==0&&xe++;else for(;Y(N.charAt(xe))&&xe0;)_e--;!_e&&!Te&&(_e=Ne)}}return{start:new n(q,_e),end:new n(oe,xe)}}function He(u,m,v){var b=m;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:b,end:b};var x=e.findMatchingTag(u,m)||e.findEnclosingTag(u,m);return!x||!x.open||!x.close?{start:b,end:b}:v?{start:x.open.from,end:x.close.to}:{start:x.open.to,end:x.close.from}}function Ve(u,m,v){gt(m,v)||K.jumpList.add(u,m,v)}function ot(u,m){K.lastCharacterSearch.increment=u,K.lastCharacterSearch.forward=m.forward,K.lastCharacterSearch.selectedCharacter=m.selectedCharacter}var Mt={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ze={bracket:{isComplete:function(u){if(u.nextCh===u.symb){if(u.depth++,u.depth>=1)return!0}else u.nextCh===u.reverseSymb&&u.depth--;return!1}},section:{init:function(u){u.curMoveThrough=!0,u.symb=(u.forward?"]":"[")===u.symb?"{":"}"},isComplete:function(u){return u.index===0&&u.nextCh===u.symb}},comment:{isComplete:function(u){var m=u.lastCh==="*"&&u.nextCh==="/";return u.lastCh=u.nextCh,m}},method:{init:function(u){u.symb=u.symb==="m"?"{":"}",u.reverseSymb=u.symb==="{"?"}":"{"},isComplete:function(u){return u.nextCh===u.symb}},preprocess:{init:function(u){u.index=0},isComplete:function(u){var v;if(u.nextCh==="#"){var m=(v=u.lineText.match(/^#(\w+)/))==null?void 0:v[1];if(m==="endif"){if(u.forward&&u.depth===0)return!0;u.depth++}else if(m==="if"){if(!u.forward&&u.depth===0)return!0;u.depth--}if(m==="else"&&u.depth===0)return!0}return!1}}};function Lt(u,m,v,b){var x=Ge(u.getCursor()),k=v?1:-1,R=v?u.lineCount():-1,O=x.ch,N=x.line,z=u.getLine(N),q={lineText:z,nextCh:z.charAt(O),lastCh:null,index:O,symb:b,reverseSymb:(v?{")":"(","}":"{"}:{"(":")","{":"}"})[b],forward:v,depth:0,curMoveThrough:!1},oe=Mt[b];if(!oe)return x;var ie=Ze[oe].init,X=Ze[oe].isComplete;for(ie&&ie(q);N!==R&&m;){if(q.index+=k,q.nextCh=q.lineText.charAt(q.index),!q.nextCh){if(N+=k,q.lineText=u.getLine(N)||"",k>0)q.index=0;else{var Y=q.lineText.length;q.index=Y>0?Y-1:0}q.nextCh=q.lineText.charAt(q.index)}X(q)&&(x.line=N,x.ch=q.index,m--)}return q.nextCh||q.curMoveThrough?new n(N,q.index):x}function rt(u,m,v,b,x){var k=m.line,R=m.ch,O=u.getLine(k),N=v?1:-1,z=b?E:C;if(x&&O==""){if(k+=N,O=u.getLine(k),!B(u,k))return null;R=v?0:O.length}for(;;){if(x&&O=="")return{from:0,to:0,line:k};for(var q=N>0?O.length:-1,oe=q,ie=q;R!=q;){for(var X=!1,Y=0;Y0?0:O.length}}function ut(u,m,v,b,x,k){var R=Ge(m),O=[];(b&&!x||!b&&x)&&v++;for(var N=!(b&&x),z=0;z0;)ie(q,b)&&v--,q+=b;return{start:new n(q,0),end:m}}var X=u.state.vim;if(X.visualLine&&ie(k,1,!0)){var Y=X.sel.anchor;ie(Y.line,-1,!0)&&(!x||Y.line!=k)&&(k+=1)}var xe=oe(k);for(q=k;q<=O&&v;q++)ie(q,1,!0)&&(!x||oe(q)!=xe)&&v--;for(z=new n(q,0),q>O&&!xe?xe=!0:x=!1,q=k;q>R&&!((!x||oe(q)==xe||q==k)&&ie(q,-1,!0));q--);return N=new n(q,0),{start:N,end:z}}function Fs(u,m,v,b,x){function k(z){z.line!==null&&(z.pos+z.dir<0||z.pos+z.dir>=z.line.length?z.line=null:z.pos+=z.dir)}function R(z,q,oe,ie){var X={line:z.getLine(q),ln:q,pos:oe,dir:ie};if(X.line==="")return{ln:X.ln,pos:X.pos};var Y=X.pos;for(k(X);X.line!==null;){if(Y=X.pos,W(X.line[X.pos]))if(x){for(k(X);X.line!==null&&A(X.line[X.pos]);)Y=X.pos,k(X);return{ln:X.ln,pos:Y+1}}else return{ln:X.ln,pos:X.pos+1};k(X)}return{ln:X.ln,pos:Y+1}}function O(z,q,oe,ie){var X=z.getLine(q),Y={line:X,ln:q,pos:oe,dir:ie};if(Y.line==="")return{ln:Y.ln,pos:Y.pos};var xe=Y.pos;for(k(Y);Y.line!==null;){if(!A(Y.line[Y.pos])&&!W(Y.line[Y.pos]))xe=Y.pos;else if(W(Y.line[Y.pos]))return x&&A(Y.line[Y.pos+1])?{ln:Y.ln,pos:Y.pos+1}:{ln:Y.ln,pos:xe};k(Y)}return Y.line=X,x&&A(Y.line[Y.pos])?{ln:Y.ln,pos:Y.pos}:{ln:Y.ln,pos:xe}}for(var N={ln:m.line,pos:m.ch};v>0;)N=b<0?O(u,N.ln,N.pos,b):R(u,N.ln,N.pos,b),v--;return new n(N.ln,N.pos)}function mc(u,m,v,b){function x(N,z){if(z.line!==null)if(z.pos+z.dir<0||z.pos+z.dir>=z.line.length){if(z.ln+=z.dir,!B(N,z.ln)){z.line=null;return}z.line=N.getLine(z.ln),z.pos=z.dir>0?0:z.line.length-1}else z.pos+=z.dir}function k(N,z,q,oe){var _e=N.getLine(z),ie=_e==="",X={line:_e,ln:z,pos:q,dir:oe},Y={ln:X.ln,pos:X.pos},xe=X.line==="";for(x(N,X);X.line!==null;){if(Y.ln=X.ln,Y.pos=X.pos,X.line===""&&!xe||ie&&X.line!==""&&!A(X.line[X.pos]))return{ln:X.ln,pos:X.pos};W(X.line[X.pos])&&!ie&&(X.pos===X.line.length-1||A(X.line[X.pos+1]))&&(ie=!0),x(N,X)}var _e=N.getLine(Y.ln);Y.pos=0;for(var qe=_e.length-1;qe>=0;--qe)if(!A(_e[qe])){Y.pos=qe;break}return Y}function R(N,z,q,oe){var _e=N.getLine(z),ie={line:_e,ln:z,pos:q,dir:oe},X=ie.ln,Y=null,xe=ie.line==="";for(x(N,ie);ie.line!==null;){if(ie.line===""&&!xe)return Y===null?{ln:ie.ln,pos:ie.pos}:{ln:X,pos:Y};if(W(ie.line[ie.pos])&&Y!==null&&!(ie.ln===X&&ie.pos+1===Y))return{ln:X,pos:Y};ie.line!==""&&!A(ie.line[ie.pos])&&(xe=!1,X=ie.ln,Y=ie.pos),x(N,ie)}var _e=N.getLine(X);Y=0;for(var qe=0;qe<_e.length;++qe)if(!A(_e[qe])){Y=qe;break}return{ln:X,pos:Y}}for(var O={ln:m.line,pos:m.ch};v>0;)O=b<0?R(u,O.ln,O.pos,b):k(u,O.ln,O.pos,b),v--;return new n(O.ln,O.pos)}function ii(u,m,v,b){var x=m,k={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[v],R={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[v],O=u.getLine(x.line).charAt(x.ch)===R?1:0,N=u.scanForBracket(new n(x.line,x.ch+O),-1,void 0,{bracketRegex:k}),z=u.scanForBracket(new n(x.line,x.ch+O),1,void 0,{bracketRegex:k});if(!N||!z)return null;var q=N.pos,oe=z.pos;if(q.line==oe.line&&q.ch>oe.ch||q.line>oe.line){var ie=q;q=oe,oe=ie}return b?oe.ch+=1:q.ch+=1,{start:q,end:oe}}function ia(u,m,v,b){var x=Ge(m),k=u.getLine(x.line).split(""),R,O,N,z,q=k.indexOf(v);if(x.ch-1&&!R;N--)k[N]==v&&(R=N+1);if(R&&!O)for(N=R,z=k.length;N"},v={">":"(?<=[\\w])(?=[^\\w]|$)","<":"(?<=[^\\w]|^)(?=[\\w])"},b=m.m,x=u.replace(/\\.|[\[|(){+*?.$^<>]/g,function(R){if(R[0]==="\\"){var O=R[1];return O==="}"||b.indexOf(O)!=-1?O:O in m?(b=m[O],""):O in v?v[O]:R}else return b.indexOf(R)==-1?R:v[R]||"\\"+R}),k=x.indexOf("\\zs");return k!=-1&&(x="(?<="+x.slice(0,k)+")"+x.slice(k+3)),k=x.indexOf("\\ze"),k!=-1&&(x=x.slice(0,k)+"(?="+x.slice(k+3)+")"),x}var Bn={"\\n":` +`,"\\r":"\r","\\t":" "};function yc(u){for(var m=!1,v=[],b=-1;b=m&&u<=v:u==m}function Ka(u){var m=u.getScrollInfo(),v=6,b=10,x=u.coordsChar({left:0,top:v+m.top},"local"),k=m.clientHeight-b+m.top,R=u.coordsChar({left:0,top:k},"local");return{top:x.line,bottom:R.line}}function Ho(u,m,v){if(v=="'"||v=="`")return K.jumpList.find(u,-1)||new n(0,0);if(v==".")return _c(u);var b=m.marks[v];return b&&b.find()}function _c(u){if(u.getLastEditEnd)return u.getLastEditEnd();for(var m=u.doc.history.done,v=m.length;v--;)if(m[v].changes)return Ge(m[v].changes[0].to)}class Vo{constructor(){this.commandMap_,this.buildCommandMap_()}processCommand(m,v,b){var x=this;m.operation(function(){m.curOp&&(m.curOp.isVimOp=!0),x._processCommand(m,v,b)})}_processCommand(m,v,b){var x=m.state.vim,k=K.registerController.getRegister(":"),R=k.toString(),O=new e.StringStream(v);k.setText(v);var N=b||{};N.input=v;try{this.parseInput_(m,O,N)}catch(oe){throw ct(m,oe+""),oe}x.visualMode&&Ye(m);var z,q;if(!N.commandName)N.line!==void 0&&(q="move");else if(z=this.matchCommand_(N.commandName),z){if(q=z.name,z.excludeFromCommandHistory&&k.setText(R),this.parseCommandArgs_(O,N,z),z.type=="exToKey"){mt(m,z.toKeys||"",z);return}else if(z.type=="exToEx"){this.processCommand(m,z.toInput||"");return}}if(!q){ct(m,'Not an editor command ":'+v+'"');return}try{xr[q](m,N),(!z||!z.possiblyAsync)&&N.callback&&N.callback()}catch(oe){throw ct(m,oe+""),oe}}parseInput_(m,v,b){var k,R;v.eatWhile(":"),v.eat("%")?(b.line=m.firstLine(),b.lineEnd=m.lastLine()):(b.line=this.parseLineSpec_(m,v),b.line!==void 0&&v.eat(",")&&(b.lineEnd=this.parseLineSpec_(m,v))),b.line==null?m.state.vim.visualMode?(b.selectionLine=(k=Ho(m,m.state.vim,"<"))==null?void 0:k.line,b.selectionLineEnd=(R=Ho(m,m.state.vim,">"))==null?void 0:R.line):b.selectionLine=m.getCursor().line:(b.selectionLine=b.line,b.selectionLineEnd=b.lineEnd);var x=v.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return x?b.commandName=x[1]:b.commandName=(v.match(/.*/)||[""])[0],b}parseLineSpec_(m,v){var b=v.match(/^(\d+)/);if(b)return parseInt(b[1],10)-1;switch(v.next()){case".":return this.parseLineSpecOffset_(v,m.getCursor().line);case"$":return this.parseLineSpecOffset_(v,m.lastLine());case"'":var x=v.next()||"",k=Ho(m,m.state.vim,x);if(!k)throw Error("Mark not set");return this.parseLineSpecOffset_(v,k.line);case"-":case"+":return v.backUp(1),this.parseLineSpecOffset_(v,m.getCursor().line);default:v.backUp(1);return}}parseLineSpecOffset_(m,v){var b=m.match(/^([+-])?(\d+)/);if(b){var x=parseInt(b[2],10);b[1]=="-"?v-=x:v+=x}return v}parseCommandArgs_(m,v,b){var R;if(!m.eol()){v.argString=(R=m.match(/.*/))==null?void 0:R[0];var x=b.argDelimiter||/\s+/,k=ir(v.argString||"").split(x);k.length&&k[0]&&(v.args=k)}}matchCommand_(m){for(var v=m.length;v>0;v--){var b=m.substring(0,v);if(this.commandMap_[b]){var x=this.commandMap_[b];if(x.name.indexOf(m)===0)return x}}}buildCommandMap_(){this.commandMap_={};for(var m=0;m0?x.join("="):void 0,O=!1,N=!1;if(k.charAt(k.length-1)=="?"){if(R)throw Error("Trailing characters: "+m.argString);k=k.substring(0,k.length-1),O=!0}else k.charAt(k.length-1)=="!"&&(k=k.substring(0,k.length-1),N=!0);R===void 0&&k.substring(0,2)=="no"&&(k=k.substring(2),R=!1);var z=fe[k]&&fe[k].type=="boolean";if(z&&(N?R=!be(k,u,b):R??(R=!0)),!z&&R===void 0||O){var q=be(k,u,b);q instanceof Error?ct(u,q.message):q===!0||q===!1?ct(u," "+(q?"":"no")+k):ct(u," "+k+"="+q)}else{var oe=J(k,R,u,b);oe instanceof Error&&ct(u,oe.message)}},setlocal:function(u,m){m.setCfg={scope:"local"},this.set(u,m)},setglobal:function(u,m){m.setCfg={scope:"global"},this.set(u,m)},registers:function(u,m){var v=m.args,b=K.registerController.registers,x=`----------Registers---------- + +`;if(v)for(var k=v.join(""),R=0;R1)return"Invalid arguments";k=$t&&"decimal"||rn&&"hex"||pn&&"octal"}$e[2]&&(R=new RegExp($e[2].substr(1,$e[2].length-2),b?"i":""))}}var N=O();if(N){ct(u,N+": "+m.argString);return}var z=m.line||u.firstLine(),q=m.lineEnd||m.line||u.lastLine();if(z==q)return;var oe=new n(z,0),ie=new n(q,St(u,q)),X=u.getRange(oe,ie).split(` +`),Y=k=="decimal"?/(-?)([\d]+)/:k=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:k=="octal"?/([0-7]+)/:null,xe=k=="decimal"?10:k=="hex"?16:k=="octal"?8:void 0,_e=[],qe=[];if(k||R)for(var Te=0;Te=z){ct(u,"Invalid argument: "+m.argString.substring(x));return}for(var q=0;q<=z-N;q++){var oe=String.fromCharCode(N+q);delete v.marks[oe]}}else{ct(u,"Invalid argument: "+R+"-");return}}else k&&delete v.marks[k]}}},_n=new Vo;Be.defineEx("version","ve",u=>{ct(u,"Codemirror-vim version: 6.3.0")});function Vs(u,m,v,b,x,k,R,O,N){u.state.vim.exMode=!0;var z=!1,q=0,oe,ie,X;function Y(){u.operation(function(){for(;!z;)xe(),qe();Te()})}function xe(){var dt="",Je=k.match||k.pos&&k.pos.match;dt=Je?O.replace(/\$(\d{1,3}|[$&])/g,function(Ft,Ue){if(Ue=="$")return"$";if(Ue=="&")return Je[0];for(var $e=Ue;parseInt($e)>=Je.length&&$e.length>0;)$e=$e.slice(0,$e.length-1);return $e?Je[$e]+Ue.slice($e.length,Ue.length):Ft}):u.getRange(k.from(),k.to()).replace(R,O);var Nt=k.to().line;k.replace(dt),ie=k.to().line,x+=ie-Nt,X=ie":case"":case"":Te(Nt);break}return z&&Te(Nt),!0}if(qe(),z){ct(u,"No matches for "+R+(be("pcre")?" (set nopcre to use vim regexps)":""));return}if(!m){Y(),N&&N();return}aa(u,{prefix:Nn("span","replace with ",Nn("strong",O)," (y/n/a/q/l)"),onKeyDown:Ne})}function Hn(u,m){var v=u.state.vim,b=K.macroModeState,x=K.registerController.getRegister("."),k=b.isPlaying,R=b.lastInsertModeChanges;k||(u.off("change",$r),v.insertEnd&&v.insertEnd.clear(),v.insertEnd=void 0,e.off(u.getInputField(),"keydown",Us)),!k&&v.insertModeRepeat&&v.insertModeRepeat>1&&(Xa(u,v,v.insertModeRepeat-1,!0),v.lastEditInputState.repeatOverride=v.insertModeRepeat),delete v.insertModeRepeat,v.insertMode=!1,m||u.setCursor(u.getCursor().line,u.getCursor().ch-1),u.setOption("keyMap","vim"),u.setOption("disableInput",!0),u.toggleOverwrite(!1),x.setText(R.changes.join("")),e.signal(u,"vim-mode-change",{mode:"normal"}),b.isRecording&&Ws(b)}function ai(u){o.unshift(u),u.keys&&xc(u.keys)}function xc(u){u.split(/(<(?:[CSMA]-)*\w+>|.)/i).forEach(function(m){m&&(s[m]||(s[m]=0),s[m]++)})}function $s(u){u.split(/(<(?:[CSMA]-)*\w+>|.)/i).forEach(function(m){s[m]&&s[m]--})}function kc(u,m,v,b,x){var k={keys:u,type:m};for(var R in k[m]=v,k[m+"Args"]=b,x)k[R]=x[R];ai(k)}we("insertModeEscKeysTimeout",200,"number");function Qa(u,m,v,b){var x=K.registerController.getRegister(b);if(b==":"){x.keyBuffer[0]&&_n.processCommand(u,x.keyBuffer[0]),v.isPlaying=!1;return}var k=x.keyBuffer,R=0;v.isPlaying=!0,v.replaySearchQueries=x.searchQueries.slice(0);for(var O=0;O|./gi;z=oe.exec(N);)if(q=z[0],Be.handleKey(u,q,"macro"),m.insertMode){var ie=x.insertModeChanges[R++].changes;K.macroModeState.lastInsertModeChanges.changes=ie,Ks(u,ie,1),Hn(u)}v.isPlaying=!1}function Vr(u,m){if(!u.isPlaying){var v=u.latestRegister,b=K.registerController.getRegister(v);b&&b.pushText(m)}}function Ws(u){if(!u.isPlaying){var m=u.latestRegister,v=K.registerController.getRegister(m);v&&v.pushInsertModeChanges&&v.pushInsertModeChanges(u.lastInsertModeChanges)}}function Ga(u,m){if(!u.isPlaying){var v=u.latestRegister,b=K.registerController.getRegister(v);b&&b.pushSearchQuery&&b.pushSearchQuery(m)}}function $r(u,m){var v=K.macroModeState,b=v.lastInsertModeChanges;if(!v.isPlaying)for(var x=u.state.vim;m;){if(b.expectCursorActivityForChange=!0,b.ignoreCount>1)b.ignoreCount--;else if(m.origin=="+input"||m.origin=="paste"||m.origin===void 0){var k=u.listSelections().length;k>1&&(b.ignoreCount=k);var R=m.text.join(` +`);if(b.maybeReset&&(b.maybeReset=(b.changes=[],!1)),R)if(u.state.overwrite&&!/\n/.test(R))b.changes.push([R]);else{if(R.length>1){var O=x&&x.insertEnd&&x.insertEnd.find(),N=u.getCursor();if(O&&O.line==N.line){var z=O.ch-N.ch;z>0&&z",jn(b,v))}else m.insertMode||(m.lastHPos=u.getCursor().ch)}function Us(u){var m=K.macroModeState.lastInsertModeChanges,v=e.keyName?e.keyName(u):u.key;v&&(v.indexOf("Delete")!=-1||v.indexOf("Backspace")!=-1)&&(m.maybeReset&&(m.maybeReset=(m.changes=[],!1)),m.changes.push(new Fe(v,u)))}function Xa(u,m,v,b){var x=K.macroModeState;x.isPlaying=!0;var k=m.lastEditActionCommand,R=m.inputState;function O(){k?Pn.processAction(u,m,k):Pn.evalInput(u,m)}function N(q){if(x.lastInsertModeChanges.changes.length>0){q=m.lastEditActionCommand?q:1;var oe=x.lastInsertModeChanges;Ks(u,oe.changes,q)}}if(m.inputState=m.lastEditInputState,k&&k.interlaceInsertRepeat)for(var z=0;z")return pt(b),!0}var N=b.isInMultiSelectMode();if(k.wasInVisualBlock&&!N?k.wasInVisualBlock=!1:N&&k.visualBlock&&(k.wasInVisualBlock=!0),m==""&&!k.insertMode&&!k.visualMode&&N&&k.status=="")pt(b);else if(R||!N||b.inVirtualSelectionMode)x=Be.handleKey(b,m,v);else{var z=xn(k),q=k.inputState.changeQueueList||[];b.operation(function(){var ie;b.curOp&&(b.curOp.isVimOp=!0);var oe=0;b.forEachSelection(function(){b.state.vim.inputState.changeQueue=q[oe];var X=b.getCursor("head"),Y=b.getCursor("anchor"),xe=xt(X,Y)?0:-1,_e=xt(X,Y)?-1:0;X=_t(X,0,xe),Y=_t(Y,0,_e),b.state.vim.sel.head=X,b.state.vim.sel.anchor=Y,x=Be.handleKey(b,m,v),b.virtualSelection&&(q[oe]=b.state.vim.inputState.changeQueue,b.state.vim=xn(z)),oe++}),(ie=b.curOp)!=null&&ie.cursorActivity&&!x&&(b.curOp.cursorActivity=!1),b.state.vim=k,k.inputState.changeQueueList=q,k.inputState.changeQueue=null},!0)}return x&&!k.visualMode&&!k.insertMode&&k.visualMode!=b.somethingSelected()&&Ja(b,k),x}return Le(),Be}function nr(e,n){var i=n.ch,o=n.line+1;o<1&&(o=1,i=0),o>e.lines&&(o=e.lines,i=Number.MAX_VALUE);var s=e.line(o);return Math.min(s.from+Math.max(0,i),s.to)}function qr(e,n){let i=e.lineAt(n);return{line:i.number-1,ch:n-i.from}}var ei=class{constructor(e,n){this.line=e,this.ch=n}};function gy(e,n,i){if(e.addEventListener)e.addEventListener(n,i,!1);else{var o=e._handlers||(e._handlers={});o[n]=(o[n]||[]).concat(i)}}function yy(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i,!1);else{var o=e._handlers,s=o&&o[n];if(s){var c=s.indexOf(i);c>-1&&(o[n]=s.slice(0,c).concat(s.slice(c+1)))}}}function vy(e,n,...i){var c;var o=(c=e._handlers)==null?void 0:c[n];if(o)for(var s=0;sks(e.cm6,{key:"Left"},"editor"),Right:e=>ks(e.cm6,{key:"Right"},"editor"),Up:e=>ks(e.cm6,{key:"Up"},"editor"),Down:e=>ks(e.cm6,{key:"Down"},"editor"),Backspace:e=>ks(e.cm6,{key:"Backspace"},"editor"),Delete:e=>ks(e.cm6,{key:"Delete"},"editor")},Xe=class _x{openDialog(n,i,o){return iC(this,n,i,o)}openNotification(n,i){return rC(this,n,i)}constructor(n){this.state={},this.marks=Object.create(null),this.$mid=0,this.options={},this._handlers={},this.$lastChangeEndOffset=0,this.virtualSelection=null,this.cm6=n,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this)}on(n,i){gy(this,n,i)}off(n,i){yy(this,n,i)}signal(n,i,o){vy(this,n,i,o)}indexFromPos(n){return nr(this.cm6.state.doc,n)}posFromIndex(n){return qr(this.cm6.state.doc,n)}foldCode(n){let i=this.cm6,o=i.state.selection.ranges,s=this.cm6.state.doc,c=nr(s,n),d=mn.create([mn.range(c,c)],0).ranges;i.state.selection.ranges=d,T4(i),i.state.selection.ranges=o}firstLine(){return 0}lastLine(){return this.cm6.state.doc.lines-1}lineCount(){return this.cm6.state.doc.lines}setCursor(n,i){typeof n=="object"&&(i=n.ch,n=n.line);var o=nr(this.cm6.state.doc,{line:n,ch:i||0});this.cm6.dispatch({selection:{anchor:o}},{scrollIntoView:!this.curOp}),this.curOp&&!this.curOp.isVimOp&&this.onBeforeEndOperation()}getCursor(n){var i=this.cm6.state.selection.main,o=n=="head"||!n?i.head:n=="anchor"?i.anchor:n=="start"?i.from:n=="end"?i.to:null;if(o==null)throw Error("Invalid cursor type");return this.posFromIndex(o)}listSelections(){var n=this.cm6.state.doc;return this.cm6.state.selection.ranges.map(i=>({anchor:qr(n,i.anchor),head:qr(n,i.head)}))}setSelections(n,i){var o=this.cm6.state.doc,s=n.map(c=>{var d=nr(o,c.head),f=nr(o,c.anchor);return d==f?mn.cursor(d,1):mn.range(f,d)});this.cm6.dispatch({selection:mn.create(s,i)})}setSelection(n,i,o){this.setSelections([{anchor:n,head:i}],0),o&&o.origin=="*mouse"&&this.onBeforeEndOperation()}getLine(n){var i=this.cm6.state.doc;return n<0||n>=i.lines?"":this.cm6.state.doc.line(n+1).text}getLineHandle(n){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{row:n,index:this.indexFromPos(new ei(n,0))}}getLineNumber(n){var i=this.$lineHandleChanges;if(!i)return null;for(var o=n.index,s=0;s({from:o.from,to:o.to,insert:n[s]||""}));Ns(this,{changes:i})}getSelection(){return this.getSelections().join(` +`)}getSelections(){var n=this.cm6;return n.state.selection.ranges.map(i=>n.state.sliceDoc(i.from,i.to))}somethingSelected(){return this.cm6.state.selection.ranges.some(n=>!n.empty)}getInputField(){return this.cm6.contentDOM}clipPos(n){var i=this.cm6.state.doc,o=n.ch,s=n.line+1;s<1&&(s=1,o=0),s>i.lines&&(s=i.lines,o=Number.MAX_VALUE);var c=i.line(s);return o=Math.min(Math.max(0,o),c.to-c.from),new ei(s-1,o)}getValue(){return this.cm6.state.doc.toString()}setValue(n){var i=this.cm6;return i.dispatch({changes:{from:0,to:i.state.doc.length,insert:n},selection:mn.range(0,0)})}focus(){return this.cm6.focus()}blur(){return this.cm6.contentDOM.blur()}defaultTextHeight(){return this.cm6.defaultLineHeight}findMatchingBracket(n,i){var o=this.cm6.state,s=nr(o.doc,n),c=yw(o,s+1,-1);return c&&c.end||(c=yw(o,s,1),c&&c.end)?{to:qr(o.doc,c.end.from)}:{to:void 0}}scanForBracket(n,i,o,s){return sC(this,n,i,o,s)}indentLine(n,i){i?this.indentMore():this.indentLess()}indentMore(){rD(this.cm6)}indentLess(){U4(this.cm6)}execCommand(n){if(n=="indentAuto")_x.commands.indentAuto(this);else if(n=="goLineLeft")G4(this.cm6);else if(n=="goLineRight"){Q4(this.cm6);let i=this.cm6.state,o=i.selection.main.head;oT.length)return null;let P=y(T,E).next();return P.done?null:P.value}var _=1e4;function C(E,T){var P=o.cm6.state.doc;for(let V=1;;V++){let $=Math.max(E,T-V*_),B=y(P,$,T),I=null;for(;!B.next().done;)I=B.value;if(I&&($==E||I.from>$+10))return I;if($==E)return null}}return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(E){var T=o.cm6.state.doc;return s=E?C(0,s?d?s.to-1:s.from:f):w(s?d?s.to+1:s.to:f),c=s&&{from:qr(T,s.from),to:qr(T,s.to),match:s.match},d=s?s.from==s.to:!1,s&&s.match},from:function(){return c==null?void 0:c.from},to:function(){return c==null?void 0:c.to},replace:function(E){s&&(Ns(o,{changes:{from:s.from,to:s.to,insert:E}}),s.to=s.from+E.length,c&&(c.to=qr(o.cm6.state.doc,s.to)))},get match(){return c&&c.match}}}findPosV(n,i,o,s){let{cm6:c}=this,d=c.state.doc,f=o=="page"?c.dom.clientHeight:0,p=nr(d,n),y=mn.cursor(p,1,void 0,s),w=Math.round(Math.abs(i));for(let C=0;C0,f):o=="line"&&(y=c.moveVertically(y,i>0));let _=qr(d,y.head);return(i<0&&y.head==0&&s!=0&&n.line==0&&n.ch!=0||i>0&&y.head==d.length&&_.ch!=s&&n.line==_.line)&&(_.hitSide=!0),_}charCoords(n,i){var o=this.cm6.contentDOM.getBoundingClientRect(),s=nr(this.cm6.state.doc,n),c=this.cm6.coordsAtPos(s),d=-o.top;return{left:((c==null?void 0:c.left)||0)-o.left,top:((c==null?void 0:c.top)||0)+d,bottom:((c==null?void 0:c.bottom)||0)+d}}coordsChar(n,i){var o=this.cm6.contentDOM.getBoundingClientRect(),s=this.cm6.posAtCoords({x:n.left+o.left,y:n.top+o.top})||0;return qr(this.cm6.state.doc,s)}getScrollInfo(){var n=this.cm6.scrollDOM;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight,width:n.scrollWidth,clientHeight:n.clientHeight,clientWidth:n.clientWidth}}scrollTo(n,i){n!=null&&(this.cm6.scrollDOM.scrollLeft=n),i!=null&&(this.cm6.scrollDOM.scrollTop=i)}scrollIntoView(n,i){if(n){var o=this.indexFromPos(n);this.cm6.dispatch({effects:Kt.scrollIntoView(o)})}else this.cm6.dispatch({scrollIntoView:!0,userEvent:"scroll"})}getWrapperElement(){return this.cm6.dom}getMode(){return{name:this.getOption("mode")}}setSize(n,i){this.cm6.dom.style.width=n+4+"px",this.cm6.dom.style.height=i+"px",this.refresh()}refresh(){this.cm6.measure()}destroy(){this.removeOverlay()}getLastEditEnd(){return this.posFromIndex(this.$lastChangeEndOffset)}onChange(n){for(let o in this.$lineHandleChanges&&this.$lineHandleChanges.push(n),this.marks)this.marks[o].update(n.changes);this.virtualSelection&&(this.virtualSelection.ranges=this.virtualSelection.ranges.map(o=>o.map(n.changes)));var i=this.curOp=this.curOp||{};n.changes.iterChanges((o,s,c,d,f)=>{(i.$changeStart==null||i.$changeStart>c)&&(i.$changeStart=c),this.$lastChangeEndOffset=d;var p={text:f.toJSON()};i.lastChange?i.lastChange.next=i.lastChange=p:i.lastChange=i.change=p},!0),i.changeHandlers||(i.changeHandlers=this._handlers.change&&this._handlers.change.slice())}onSelectionChange(){var n=this.curOp=this.curOp||{};n.cursorActivityHandlers||(n.cursorActivityHandlers=this._handlers.cursorActivity&&this._handlers.cursorActivity.slice()),this.curOp.cursorActivity=!0}operation(n,i){this.curOp||(this.curOp={$d:0}),this.curOp.$d++;try{var o=n()}finally{this.curOp&&(this.curOp.$d--,this.curOp.$d||this.onBeforeEndOperation())}return o}onBeforeEndOperation(){var n=this.curOp,i=!1;n&&(n.change&&by(n.changeHandlers,this,n.change),n&&n.cursorActivity&&(by(n.cursorActivityHandlers,this,null),n.isVimOp&&(i=!0)),this.curOp=null),i&&this.scrollIntoView()}moveH(n,i){if(i=="char"){var o=this.getCursor();this.setCursor(o.line,o.ch+n)}}setOption(n,i){switch(n){case"keyMap":this.state.keyMap=i;break;case"textwidth":this.state.textwidth=i;break}}getOption(n){switch(n){case"firstLineNumber":return 1;case"tabSize":return this.cm6.state.tabSize||4;case"readOnly":return this.cm6.state.readOnly;case"indentWithTabs":return this.cm6.state.facet(dw)==" ";case"indentUnit":return this.cm6.state.facet(dw).length||2;case"textwidth":return this.state.textwidth;case"keyMap":return this.state.keyMap||"vim"}}toggleOverwrite(n){this.state.overwrite=n}getTokenTypeAt(n){var s,c,d;var i=this.indexFromPos(n),o=((d=(c=(s=pw(this.cm6.state,i))==null?void 0:s.resolve(i))==null?void 0:c.type)==null?void 0:d.name)||"";return/comment/i.test(o)?"comment":/string/i.test(o)?"string":""}overWriteSelection(n){var i=this.cm6.state.doc,o=this.cm6.state.selection,s=o.ranges.map(c=>{if(c.empty){var d=c.to1}virtualSelectionMode(){return!!this.virtualSelection}forEachSelection(n){var i=this.cm6.state.selection;this.virtualSelection=mn.create(i.ranges,i.mainIndex);for(var o=0;oNs(e,n)})},indentAuto:function(e){V4(e.cm6)},newlineAndIndentContinueComment:void 0,save:void 0},Xe.isWordChar=function(e){return Xd.test(e)},Xe.keys=nC,Xe.addClass=function(e,n){},Xe.rmClass=function(e,n){},Xe.e_preventDefault=function(e){e.preventDefault()},Xe.e_stop=function(e){var n,i;(n=e==null?void 0:e.stopPropagation)==null||n.call(e),(i=e==null?void 0:e.preventDefault)==null||i.call(e)},Xe.lookupKey=function(e,n,i){var o=Xe.keys[e];!o&&/^Arrow/.test(e)&&(o=Xe.keys[e.slice(5)]),o&&i(o)},Xe.on=gy,Xe.off=yy,Xe.signal=vy,Xe.findMatchingTag=lC,Xe.findEnclosingTag=cC,Xe.keyName=void 0;function _y(e,n,i){var o=document.createElement("div");return o.appendChild(n),o}function xy(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}function rC(e,n,i){xy(e,f);var o=_y(e,n,i&&i.bottom),s=!1,c,d=i&&i.duration!==void 0?i.duration:5e3;function f(){s||(s=!0,clearTimeout(c),o.remove(),Sy(e,o))}return o.onclick=function(p){p.preventDefault(),f()},ky(e,o),d&&(c=setTimeout(f,d)),f}function ky(e,n){var i=e.state.dialog;e.state.dialog=n,n.style.flex="1",n&&i!==n&&(i&&i.contains(document.activeElement)&&e.focus(),i&&i.parentElement?i.parentElement.replaceChild(n,i):i&&i.remove(),Xe.signal(e,"dialog"))}function Sy(e,n){e.state.dialog==n&&(e.state.dialog=null,Xe.signal(e,"dialog"))}function iC(e,n,i,o){o||(o={}),xy(e,void 0);var s=_y(e,n,o.bottom),c=!1;ky(e,s);function d(p){if(typeof p=="string")f.value=p;else{if(c)return;c=!0,Sy(e,s),e.state.dialog||e.focus(),o.onClose&&o.onClose(s)}}var f=s.getElementsByTagName("input")[0];return f&&(o.value&&(f.value=o.value,o.selectValueOnOpen!==!1&&f.select()),o.onInput&&Xe.on(f,"input",function(p){o.onInput(p,f.value,d)}),o.onKeyUp&&Xe.on(f,"keyup",function(p){o.onKeyUp(p,f.value,d)}),Xe.on(f,"keydown",function(p){o&&o.onKeyDown&&o.onKeyDown(p,f.value,d)||(p.keyCode==13&&i&&i(f.value),(p.keyCode==27||o.closeOnEnter!==!1&&p.keyCode==13)&&(f.blur(),Xe.e_stop(p),d()))}),o.closeOnBlur!==!1&&Xe.on(f,"blur",function(){setTimeout(function(){document.activeElement!==f&&d()})}),f.focus()),d}var aC={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function oC(e){return e&&e.bracketRegex||/[(){}[\]]/}function sC(e,n,i,o,s){for(var c=s&&s.maxScanLineLength||1e4,d=s&&s.maxScanLines||1e3,f=[],p=oC(s),y=i>0?Math.min(n.line+d,e.lastLine()+1):Math.max(e.firstLine()-1,n.line-d),w=n.line;w!=y;w+=i){var _=e.getLine(w);if(_){var C=i>0?0:_.length-1,E=i>0?_.length:-1;if(!(_.length>c))for(w==n.line&&(C=n.ch-(i<0?1:0));C!=E;C+=i){var T=_.charAt(C);if(p.test(T)){var P=aC[T];if(P&&P.charAt(1)==">"==i>0)f.push(T);else if(f.length)f.pop();else return{pos:new ei(w,C),ch:T}}}}}return w-i==(i>0?e.lastLine():e.firstLine())?!1:null}function lC(e,n){return null}function cC(e,n){var c,d,f;var i=e.cm6.state,o=e.indexFromPos(n);oi){var f=E(d,i,5);if(f){var p=(T=/^\s*/.exec(d))==null?void 0:T[0];e.replaceRange(` +`+p,new ei(s,f.start),new ei(s,f.end))}c++}else if(o&&/\S/.test(d)&&s!=c){var y=e.getLine(s+1);if(y&&/\S/.test(y)){var w=d.replace(/\s+$/,""),_=y.replace(/^\s+/,""),C=w+" "+_,f=E(C,i,5);f&&f.start>w.length||C.length$)return{start:pe.index,end:pe.index+pe[2].length};if(Q&&Q[2])return M=V+Q[2].length,{start:M,end:M+Q[3].length}}}}var Yd=q4||(function(){let e={cursorBlinkRate:1200};return function(){return e}})(),fC=class{constructor(e,n,i,o,s,c,d,f,p,y){this.left=e,this.top=n,this.height=i,this.fontFamily=o,this.fontSize=s,this.fontWeight=c,this.color=d,this.className=f,this.letter=p,this.partial=y}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",e.style.height=this.height+"px",e.style.lineHeight=this.height+"px",e.style.fontFamily=this.fontFamily,e.style.fontSize=this.fontSize,e.style.fontWeight=this.fontWeight,e.style.color=this.partial?"transparent":this.color,e.className=this.className,e.textContent=this.letter}eq(e){return this.left==e.left&&this.top==e.top&&this.height==e.height&&this.fontFamily==e.fontFamily&&this.fontSize==e.fontSize&&this.fontWeight==e.fontWeight&&this.color==e.color&&this.className==e.className&&this.letter==e.letter}},pC=class{constructor(e,n){this.view=e,this.rangePieces=[],this.cursors=[],this.cm=n,this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer cm-vimCursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){let e=Yd(this.cm.cm6.state).cursorBlinkRate;this.cursorLayer.style.animationDuration=e+"ms"}update(e){(e.selectionSet||e.geometryChanged||e.viewportChanged)&&(this.view.requestMeasure(this.measureReq),this.cursorLayer.style.animationName=this.cursorLayer.style.animationName=="cm-blink"?"cm-blink2":"cm-blink"),hC(e)&&this.setBlinkRate()}scheduleRedraw(){this.view.requestMeasure(this.measureReq)}readPos(){let{state:e}=this.view,n=[];for(let i of e.selection.ranges){let o=i==e.selection.main,s=yC(this.cm,this.view,i,o);s&&n.push(s)}return{cursors:n}}drawSel({cursors:e}){if(e.length!=this.cursors.length||e.some((n,i)=>!n.eq(this.cursors[i]))){let n=this.cursorLayer.children;if(n.length!==e.length){this.cursorLayer.textContent="";for(let i of e)this.cursorLayer.appendChild(i.draw())}else e.forEach((i,o)=>i.adjust(n[o]));this.cursors=e}}destroy(){this.cursorLayer.remove()}};function hC(e){return Yd(e.startState)!=Yd(e.state)}var mC=Lu.highest(Kt.theme({".cm-vimMode .cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-fat-cursor":{position:"absolute",background:"#ff9696",border:"none",whiteSpace:"pre"},"&:not(.cm-focused) .cm-fat-cursor":{background:"none",outline:"solid 1px #ff9696",color:"transparent !important"}}));function gC(e){let n=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==I4.LTR?n.left:n.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft*e.scaleX,top:n.top-e.scrollDOM.scrollTop*e.scaleY}}function yC(e,n,i,o){var w,_,C;var s;let c=i.head,d=!1,f=1,p=e.state.vim;if(p&&(!p.insertMode||e.state.overwrite)){if(d=!0,p.visualBlock&&!o)return null;i.anchor1&&(c--,E=n.state.sliceDoc(c,c+1));let T=n.coordsAtPos(c,1);if(!T)return null;let P=gC(n),V=n.domAtPos(c),$=V?V.node:n.contentDOM;for($ instanceof Text&&V.offset>=$.data.length&&((w=$.parentElement)==null?void 0:w.nextSibling)&&($=(_=$.parentElement)==null?void 0:_.nextSibling,V={node:$,offset:0});V&&V.node instanceof HTMLElement;)$=V.node,V={node:V.node.childNodes[V.offset],offset:0};if(!($ instanceof HTMLElement)){if(!$.parentNode)return null;$=$.parentNode}let B=getComputedStyle($),I=T.left,Q=(C=(s=n).coordsForChar)==null?void 0:C.call(s,c);if(Q&&(I=Q.left),!E||E==` +`||E=="\r")E="\xA0";else if(E==" "){E="\xA0";var y=n.coordsAtPos(c+1,-1);y&&(I=y.left-(y.left-T.left)/parseInt(B.tabSize))}else/[\uD800-\uDBFF]/.test(E)&&c{n.state.vim&&(n.state.vim.status=""),this.blockCursor.scheduleRedraw(),this.updateStatus()}),this.cm.on("vim-mode-change",i=>{n.state.vim&&(n.state.vim.mode=i.mode,i.subMode&&(n.state.vim.mode+=" block"),n.state.vim.status="",this.blockCursor.scheduleRedraw(),this.updateClass(),this.updateStatus())}),this.cm.on("dialog",()=>{this.cm.state.statusbar?this.updateStatus():e.dispatch({effects:Oy.of(!!this.cm.state.dialog)})}),this.dom=document.createElement("span"),this.spacer=document.createElement("span"),this.spacer.style.flex="1",this.statusButton=document.createElement("span"),this.statusButton.onclick=i=>{$i.handleKey(this.cm,"","user"),this.cm.focus()},this.statusButton.style.cssText="cursor: pointer"}update(e){var n;if((e.viewportChanged||e.docChanged)&&this.query&&this.highlight(this.query),e.docChanged&&this.cm.onChange(e),e.selectionSet&&this.cm.onSelectionChange(),e.viewportChanged,this.cm.curOp&&!this.cm.curOp.isVimOp&&this.cm.onBeforeEndOperation(),e.transactions){for(let i of e.transactions)for(let o of i.effects)if(o.is(kh))if(!((n=o.value)!=null&&n.forVim))this.highlight(null);else{let s=o.value.create();this.highlight(s)}}this.blockCursor.update(e)}updateClass(){let e=this.cm.state;!e.vim||e.vim.insertMode&&!e.overwrite?this.view.scrollDOM.classList.remove("cm-vimMode"):this.view.scrollDOM.classList.add("cm-vimMode")}updateStatus(){let e=this.cm.state.statusbar,n=this.cm.state.vim;if(!e||!n)return;let i=this.cm.state.dialog;if(i)i.parentElement!=e&&(e.textContent="",e.appendChild(i));else{e.textContent="";var o=(n.mode||"normal").toUpperCase();n.insertModeReturn&&(o+="(C-O)"),this.statusButton.textContent=`--${o}--`,e.appendChild(this.statusButton),e.appendChild(this.spacer)}this.dom.textContent=n.status,e.appendChild(this.dom)}destroy(){$i.leaveVimMode(this.cm),this.updateClass(),this.blockCursor.destroy(),delete this.view.cm}highlight(e){if(this.query=e,!e)return this.decorations=Bi.none;let{view:n}=this,i=new lw;for(let o=0,s=n.visibleRanges,c=s.length;os[o+1].from-2*Ty;)f=s[++o].to;e.highlight(n.state,d,f,(p,y)=>{i.add(p,y,bC)})}return this.decorations=i.finish()}handleKey(e,n){let i=this.cm,o=i.state.vim;if(!o)return;let s=$i.vimKeyFromEvent(e,o);if(Xe.signal(this.cm,"inputEvent",{type:"handleKey",key:s}),!s)return;if(s==""&&!o.insertMode&&!o.visualMode&&this.query){let d=o.searchState_;d&&(i.removeOverlay(d.getOverlay()),d.setOverlay(null))}if(s===""&&!Xe.isMac&&i.somethingSelected())return this.waitForCopy=!0,!0;o.status=(o.status||"")+s;let c=$i.multiSelectHandleKey(i,s,"user");return o=$i.maybeInitVimState_(i),!c&&o.insertMode&&i.state.overwrite&&(e.key&&e.key.length==1&&!/\n/.test(e.key)?(c=!0,i.overWriteSelection(e.key)):e.key=="Backspace"&&(c=!0,Xe.commands.cursorCharLeft(i))),c&&(Xe.signal(this.cm,"vim-keypress",s),e.preventDefault(),e.stopPropagation(),this.blockCursor.scheduleRedraw()),this.updateStatus(),!!c}},{eventHandlers:{copy:function(e,n){this.waitForCopy&&(this.waitForCopy=!1,Promise.resolve().then(()=>{var i=this.cm,o=i.state.vim;o&&(o.insertMode?i.setSelection(i.getCursor(),i.getCursor()):i.operation(()=>{i.curOp&&(i.curOp.isVimOp=!0),$i.handleKey(i,"","user")}))}))},compositionstart:function(e,n){this.useNextTextInput=!0,Xe.signal(this.cm,"inputEvent",e)},compositionupdate:function(e,n){Xe.signal(this.cm,"inputEvent",e)},compositionend:function(e,n){Xe.signal(this.cm,"inputEvent",e)},keypress:function(e,n){Xe.signal(this.cm,"inputEvent",e),this.lastKeydown=="Dead"&&this.handleKey(e,n)},keydown:function(e,n){Xe.signal(this.cm,"inputEvent",e),this.lastKeydown=e.key,this.lastKeydown=="Unidentified"||this.lastKeydown=="Process"||this.lastKeydown=="Dead"?this.useNextTextInput=!0:(this.useNextTextInput=!1,this.handleKey(e,n))}},provide:()=>[Kt.inputHandler.of((e,n,i,o)=>{var w,_;var s=Al(e);if(!s)return!1;var c=(w=s.state)==null?void 0:w.vim,d=s.state.vimPlugin;if(c&&!c.insertMode&&!((_=s.curOp)!=null&&_.isVimOp)){if(o==="\0\0")return!0;if(Xe.signal(s,"inputEvent",{type:"text",text:o,from:n,to:i}),o.length==1&&d.useNextTextInput){if(c.expectLiteralNext&&e.composing)return d.compositionText=o,!1;if(d.compositionText){var f=d.compositionText;d.compositionText="";var p=e.state.selection.main.head;if(f===e.state.sliceDoc(p-f.length,p)){var y=s.getCursor();s.replaceRange("",s.posFromIndex(p-f.length),y)}}return d.handleKey({key:o,preventDefault:()=>{},stopPropagation:()=>{}}),vC(e),!0}}return!1})],decorations:e=>e.decorations});function vC(e){var n=e.scrollDOM.parentElement;if(n){if(Ey){e.contentDOM.textContent="\0\0",e.contentDOM.dispatchEvent(new CustomEvent("compositionend"));return}var i=e.scrollDOM.nextSibling,o=window.getSelection(),s=o&&{anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset};e.scrollDOM.remove(),n.insertBefore(e.scrollDOM,i);try{s&&o&&(o.setPosition(s.anchorNode,s.anchorOffset),s.focusNode&&o.extend(s.focusNode,s.focusOffset))}catch(c){console.error(c)}e.focus(),e.contentDOM.dispatchEvent(new CustomEvent("compositionend"))}}var bC=Bi.mark({class:"cm-searchMatch"}),Oy=Fi.define(),wC=xs.define({create:()=>!1,update(e,n){for(let i of n.effects)i.is(Oy)&&(e=i.value);return e},provide:e=>_h.from(e,n=>n?_C:null)});function _C(e){let n=document.createElement("div");n.className="cm-vim-panel";let i=e.cm;return i.state.dialog&&n.appendChild(i.state.dialog),{top:!1,dom:n}}function xC(e){let n=document.createElement("div");n.className="cm-vim-panel";let i=e.cm;return i.state.statusbar=n,i.state.vimPlugin.updateStatus(),{dom:n}}f_=function(e={}){return[Ry,Dy,mC,e.status?_h.of(xC):wC]},Al=function(e){return e.cm||null},zh=function(e){let n=e.state.selection.main;return n.from===0&&n.to===0},am=function(e,n=!1){let i=e.state.selection.main,o=e.state.doc.length;return n&&i.from===o-1&&i.to===o-1?!0:i.from===o&&i.to===o},Vw=function(e){e&&e.dispatch({selection:{anchor:e.state.doc.length,head:e.state.doc.length}})},a_=function(e){var n;return((n=Al(e))==null?void 0:n.state.vim)!=null},l_=function(e){var i;let n=(i=Al(e))==null?void 0:i.state.vim;return n?!n.mode&&!n.insertMode&&!n.visualMode?!0:n.mode==="normal":!1},Kw=function(e){e&&e.dispatch({selection:{anchor:0,head:e.state.doc.length}})};function Py(e,n){if(!(n!=null&&n.length))return Bi.none;let i=new lw,o=e.facet(Wi),s=n.filter(c=>c.kind==="cell"&&c.cellId===o).sort((c,d)=>c.lineNumber-d.lineNumber);for(let c of s)try{let d=e.doc.line(c.lineNumber),f=Bi.line({class:"cm-error-line"});i.add(d.from,d.from,f)}catch(d){Re.debug("Invalid line number in error decoration",{error:d})}return i.finish()}function My(e,n){if(!(n!=null&&n.length))return;let i=e.state.facet(Wi),o=n.filter(d=>d.kind==="cell"&&d.cellId===i);if(o.length===0)return;let s=A4(e.state),c=[];for(let d of o)try{let f=e.state.doc.line(d.lineNumber);s.between(f.from,f.to,(p,y)=>{c.push(M4.of({from:p,to:y}))})}catch(f){Re.debug("Invalid line numbers",{error:f})}c.length>0&&e.dispatch({effects:c})}var kC=class{constructor(e,n){let i=n.get();this.decorations=Py(e.state,i),My(e,i),this.unsubscribe=n.sub(o=>{let s=this.decorations.size;this.decorations=Py(e.state,o),My(e,o),s!==this.decorations.size&&e.dispatch({userEvent:"marimo.error-decoration-update"})})}update(e){this.decorations=this.decorations.map(e.changes)}destroy(){this.unsubscribe()}};function SC(e){return Pl.define(n=>new kC(n,e),{decorations:n=>n.decorations})}function CC(e){return[SC(e),Kt.theme({".cm-error-line":{backgroundColor:"color-mix(in srgb, var(--red-4) 40%, transparent)"},"&.cm-focused .cm-error-line.cm-activeLine":{backgroundColor:"color-mix(in srgb, var(--red-6) 40%, transparent)"}})]}function EC({cellId:e,hotkeys:n}){let i=[];return i.push(...rw({key:n.getHotkey("cell.run").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).onRun(),!0)}),{key:n.getHotkey("cell.runAndNewBelow").key,preventDefault:!0,stopPropagation:!0,run:o=>{let s=o.state.facet(Pt);return s.onRun(),e==="__scratch__"||(o.contentDOM.blur(),s.moveToNextCell({cellId:e,before:!1})),!0}},...rw({key:n.getHotkey("cell.runAndNewAbove").key,preventDefault:!0,stopPropagation:!0,run:o=>{let s=o.state.facet(Pt);return s.onRun(),e==="__scratch__"||(o.contentDOM.blur(),s.moveToNextCell({cellId:e,before:!0})),!0}}),{key:n.getHotkey("cell.aiCompletion").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).aiCellCompletion()&&o.contentDOM.focus(),!0)}),e!=="__scratch__"&&i.push({key:n.getHotkey("cell.goToDefinition").key,preventDefault:!0,stopPropagation:!0,run:o=>(Zh(o),!0)},{key:n.getHotkey("cell.delete").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.doc.length===0&&o.state.facet(Pt).deleteCell(),!0)},{key:n.getHotkey("cell.moveUp").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).moveCell({cellId:e,before:!0}),!0)},{key:n.getHotkey("cell.moveDown").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).moveCell({cellId:e,before:!1}),!0)},{key:n.getHotkey("cell.moveLeft").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).moveCell({cellId:e,before:!0,direction:"left"}),!0)},{key:n.getHotkey("cell.moveRight").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).moveCell({cellId:e,before:!1,direction:"right"}),!0)},{key:"ArrowUp",preventDefault:!0,stopPropagation:!0,run:o=>xw(o.state)?!1:zh(o)?(o.state.facet(Pt).moveToNextCell({cellId:e,before:!0,noCreate:!0}),!0):!1},{key:"ArrowDown",preventDefault:!0,stopPropagation:!0,run:o=>xw(o.state)?!1:am(o)?(o.state.facet(Pt).moveToNextCell({cellId:e,before:!1,noCreate:!0}),!0):!1},{key:n.getHotkey("cell.focusDown").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).moveToNextCell({cellId:e,before:!1,noCreate:!0}),!0)},{key:n.getHotkey("cell.focusUp").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).moveToNextCell({cellId:e,before:!0,noCreate:!0}),!0)},{key:n.getHotkey("cell.sendToBottom").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).sendToBottom({cellId:e}),!0)},{key:n.getHotkey("cell.sendToTop").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.state.facet(Pt).sendToTop({cellId:e}),!0)},{key:n.getHotkey("cell.createAbove").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.contentDOM.blur(),o.state.facet(Pt).createNewCell({cellId:e,before:!0}),!0)},{key:n.getHotkey("cell.createBelow").key,preventDefault:!0,stopPropagation:!0,run:o=>(o.contentDOM.blur(),o.state.facet(Pt).createNewCell({cellId:e,before:!1}),!0)},{key:n.getHotkey("cell.hideCode").key,preventDefault:!0,stopPropagation:!0,run:o=>{var c;let s=o.state.facet(Pt).toggleHideCode();return kw(o),s?(o.contentDOM.blur(),(c=document.getElementById(Zn.create(e)))==null||c.focus()):o.contentDOM.focus(),!0}},{key:n.getHotkey("cell.splitCell").key,preventDefault:!0,stopPropagation:!0,run:o=>{let s=o.state.facet(Pt);return s.splitCell({cellId:e}),s.moveToNextCell&&requestAnimationFrame(()=>{o.contentDOM.blur(),s.moveToNextCell({cellId:e,before:!1})}),!0}}),[Lu.high(Ra.of(i))]}function TC(e){return[Kt.updateListener.of(n=>{if(n.docChanged){let i=n.transactions.some(d=>d.effects.some(f=>f.is(Ls))),o=Jr(n.view),s=n.view.state.facet(Pt),c=n.view.state.facet(Wi);s.updateCellCode({cellId:c,code:o,formattingChange:i})}}),TS(e)]}function RC({predicate:e}){return Kt.updateListener.of(n=>{n.docChanged&&n.view.hasFocus&&e()&&(n.transactions.some(i=>i.effects.some(o=>o.is(Ls)))||n.view.state.facet(Pt).onRun())})}Nw=function({cellId:e,hotkeys:n,cellActions:i}){return[Pt.of(i),Wi.of(e),EC({cellId:e,hotkeys:n}),TC(n),CC(SS(mT(e),lt))]};const Ly=async e=>{let n=e.state.doc.sliceString(0,e.pos),i=document.activeElement,o=null;if(i!==null){let d=Zn.findElement(i);d!==null&&(o=Zn.parse(d.id))}if(o===null)return Re.error("Failed to find active cell."),null;let s=await dd.request({document:n,cellId:o});if(!s)return null;let c=Gd.asHoverTooltip({position:e.pos,message:s,limitToType:"tooltip"});return c&<.set(Ju,{documentation:c.html??null}),c?null:Gd.asCompletionResult(e.pos,s)};function DC(e){return n=>e.predicate(n.state)?e.completion(n):null}var OC=async e=>{let n=e.matchBefore(/:\w*$/);if(!e.explicit&&!n)return null;let i=await PC();return{from:(n==null?void 0:n.from)??e.pos,options:i,validFor:/^[\w:]*$/}},PC=ui(async()=>{let e=await fetch("https://unpkg.com/emojilib@3.0.11/dist/emoji-en-US.json").then(n=>{if(!n.ok)throw Error("Failed to fetch emoji list");return n.json()}).catch(()=>({}));return Object.entries(e).map(([n,i])=>({shortcode:i[0],label:i.map(o=>`:${o}`).join(" "),emoji:n,displayLabel:`${n} ${i[0].replaceAll("_"," ")}`,apply:n,type:"emoji"}))}),MC=async e=>{let n=e.matchBefore(/::[\w-:]*$/);if(!e.explicit&&!n)return null;let i=await LC();return{from:(n==null?void 0:n.from)??e.pos,options:i,validFor:/^[\w-:]*$/}},LC=ui(async()=>{let e=await fetch("https://unpkg.com/lucide-static@0.452.0/tags.json").then(i=>{if(!i.ok)throw Error("Failed to fetch Lucide icon list");return i.json()}).catch(()=>({})),n=i=>`https://cdn.jsdelivr.net/npm/lucide-static@0.452.0/icons/${i}.svg`;return Object.entries(e).map(([i,o])=>({label:`::${i}`,displayLabel:i,type:"lucide-icon",boost:10,apply:`::lucide:${i}::`,detail:o.join(", "),info:()=>{let s=document.createElement("img");return s.src=n(i),s.style.width="24px",s.style.height="24px",s}}))}),NC=e=>{let n=e.matchBefore(/\\\w*$/);return!e.explicit&&!n?null:{from:(n==null?void 0:n.from)??e.pos,options:IC(),validFor:/^[\w\\]*$/}},IC=ui(()=>[["alpha","\u03B1","Greek small letter alpha"],["beta","\u03B2","Greek small letter beta"],["gamma","\u03B3","Greek small letter gamma"],["delta","\u03B4","Greek small letter delta"],["epsilon","\u03B5","Greek small letter epsilon"],["zeta","\u03B6","Greek small letter zeta"],["eta","\u03B7","Greek small letter eta"],["theta","\u03B8","Greek small letter theta"],["iota","\u03B9","Greek small letter iota"],["kappa","\u03BA","Greek small letter kappa"],["lambda","\u03BB","Greek small letter lambda"],["mu","\u03BC","Greek small letter mu"],["nu","\u03BD","Greek small letter nu"],["xi","\u03BE","Greek small letter xi"],["omicron","\u03BF","Greek small letter omicron"],["pi","\u03C0","Greek small letter pi"],["rho","\u03C1","Greek small letter rho"],["sigma","\u03C3","Greek small letter sigma"],["tau","\u03C4","Greek small letter tau"],["upsilon","\u03C5","Greek small letter upsilon"],["phi","\u03C6","Greek small letter phi"],["chi","\u03C7","Greek small letter chi"],["psi","\u03C8","Greek small letter psi"],["omega","\u03C9","Greek small letter omega"],["Gamma","\u0393","Greek capital letter gamma"],["Delta","\u0394","Greek capital letter delta"],["Theta","\u0398","Greek capital letter theta"],["Lambda","\u039B","Greek capital letter lambda"],["Xi","\u039E","Greek capital letter xi"],["Pi","\u03A0","Greek capital letter pi"],["Sigma","\u03A3","Greek capital letter sigma"],["Phi","\u03A6","Greek capital letter phi"],["Psi","\u03A8","Greek capital letter psi"],["Omega","\u03A9","Greek capital letter omega"],["pm","\xB1","Plus-minus sign"],["mp","\u2213","Minus-plus sign"],["times","\xD7","Multiplication sign"],["div","\xF7","Division sign"],["cdot","\u22C5","Dot operator"],["ast","\u2217","Asterisk operator"],["star","\u22C6","Star operator"],["circ","\u2218","Ring operator"],["bullet","\u2022","Bullet"],["cap","\u2229","Intersection"],["cup","\u222A","Union"],["uplus","\u228E","Multiset union"],["sqcap","\u2293","Square cap"],["sqcup","\u2294","Square cup"],["vee","\u2228","Logical or"],["wedge","\u2227","Logical and"],["setminus","\u2216","Set minus"],["oplus","\u2295","Circled plus"],["ominus","\u2296","Circled minus"],["otimes","\u2297","Circled times"],["oslash","\u2298","Circled division slash"],["odot","\u2299","Circled dot operator"],["leq","\u2264","Less than or equal to"],["geq","\u2265","Greater than or equal to"],["equiv","\u2261","Identical to"],["prec","\u227A","Precedes"],["succ","\u227B","Succeeds"],["sim","\u223C","Tilde operator"],["perp","\u22A5","Up tack"],["mid","\u2223","Divides"],["parallel","\u2225","Parallel to"],["subset","\u2282","Subset of"],["supset","\u2283","Superset of"],["subseteq","\u2286","Subset of or equal to"],["supseteq","\u2287","Superset of or equal to"],["cong","\u2245","Approximately equal to"],["approx","\u2248","Almost equal to"],["neq","\u2260","Not equal to"],["ne","\u2260","Not equal to"],["propto","\u221D","Proportional to"],["leftarrow","\u2190","Leftward arrow"],["rightarrow","\u2192","Rightward arrow"],["Leftarrow","\u21D0","Leftward double arrow"],["Rightarrow","\u21D2","Rightward double arrow"],["leftrightarrow","\u2194","Left right arrow"],["Leftrightarrow","\u21D4","Left right double arrow"],["uparrow","\u2191","Upward arrow"],["downarrow","\u2193","Downward arrow"],["Uparrow","\u21D1","Upward double arrow"],["Downarrow","\u21D3","Downward double arrow"],["infty","\u221E","Infinity"],["nabla","\u2207","Nabla"],["partial","\u2202","Partial differential"],["forall","\u2200","For all"],["exists","\u2203","There exists"],["nexists","\u2204","There does not exist"],["emptyset","\u2205","Empty set"],["in","\u2208","Element of"],["notin","\u2209","Not an element of"],["sum","\u2211","N-ary summation"],["prod","\u220F","N-ary product"],["int","\u222B","Integral"],["oint","\u222E","Contour integral"],["sqrt","\u221A","Square root"],["hbar","\u210F","Planck constant over 2pi"],["ldots","\u2026","Horizontal ellipsis"],["cdots","\u22EF","Midline horizontal ellipsis"],["vdots","\u22EE","Vertical ellipsis"],["ddots","\u22F1","Down right diagonal ellipsis"]].map(([e,n,i])=>({label:`\\${e} ${i}`,displayLabel:e,type:"latex-symbol",boost:10,apply:`\\${e}`,info:()=>{let o=document.createElement("div");return o.textContent=`${n} ${i}`,o},detail:n})));let Ny;Ny=[OC,MC,NC],Xl={isAbsolute:e=>e.startsWith("/")||e.startsWith("\\")||e.startsWith("C:\\"),dirname:e=>Bl.guessDeliminator(e).dirname(e),basename:e=>Bl.guessDeliminator(e).basename(e),rest:(e,n)=>Bl.guessDeliminator(e).rest(e,n),extension:e=>{let n=e.split(".");return n.length===1?"":n.at(-1)??""}};let Iy;Bl=class jm{constructor(n){this.deliminator=n}static guessDeliminator(n){return n.includes("/")?new jm("/"):new jm("\\")}join(...n){return n.filter(Boolean).join(this.deliminator)}basename(n){return n.split(this.deliminator).pop()??""}rest(n,i){let o=n.split(this.deliminator),s=i.split(this.deliminator),c=0;for(;c "});return n.length>0&&e.dispatch(e.state.update({changes:n,scrollIntoView:!0,userEvent:"input"})),e.focus(),!0}function qC(e){if(!Io(e))return!1;let n=e.state.changeByRange(i=>{if(i.empty){let o=e.state.wordAt(i.head);o&&(i=o)}return ef({view:e,range:i,markupBefore:"**",markupAfter:"**"})});return e.dispatch(e.state.update(n,{scrollIntoView:!0,annotations:Ss.userEvent.of("input")})),e.focus(),!0}function Ay(e){if(!Io(e))return!1;let n=e.state.changeByRange(i=>{if(i.empty){let s=e.state.wordAt(i.head);s&&(i=s)}let o=e.state.doc.lineAt(i.from).number!==e.state.doc.lineAt(i.to).number;return ef({view:e,range:i,markupBefore:o?"```\n":"`",markupAfter:o?"\n```":"`"})});return e.dispatch(e.state.update(n,{scrollIntoView:!0,annotations:Ss.userEvent.of("input")})),e.focus(),!0}function jC(e){let n=e.state.changeByRange(i=>{if(i.empty){let o=e.state.wordAt(i.head);o&&(i=o)}return ef({view:e,range:i,markupBefore:"_",markupAfter:"_"})});return e.dispatch(e.state.update(n,{scrollIntoView:!0,annotations:Ss.userEvent.of("input")})),e.focus(),!0}function qy(e,n="http://"){if(!Io(e))return!1;let i=e.state.changeByRange(s=>{let c=e.state.sliceDoc(s.from,s.to);return{changes:[{from:s.from,to:s.to,insert:`[${c}](${n})`}],range:s}});e.dispatch(e.state.update(i,{scrollIntoView:!0,annotations:Ss.userEvent.of("input")}));let{to:o}=i.selection.main;try{e.dispatch({selection:mn.create([mn.range(o+3,o+3+n.length),mn.cursor(o+3+n.length)])})}catch{}return e.focus(),!0}Bh=async function(e,n){var f;let i=new FileReader,o=await new Promise(p=>{i.onload=()=>p(i.result),i.readAsDataURL(n)}),s;try{if(o.startsWith("data:")){let p=o.split(",")[1],y=prompt("We can save your image as a file. Enter a filename.",n.name),w=n.type.split("/")[1];if(y===null){let _=Math.round(o.length/1024);if(_>Iy){Nl({title:"Content too large",description:`The content size is ${_} KB, which is too large to paste directly into the document.`});return}}else{y.trim()===""?y=n.name:y.endsWith(`.${w}`)||(y=`${y}.${w}`);let _=lt.get(Es),C=_?Xl.dirname(_):null,E=C?`${C}/public`:"public",T=await Hi().sendCreateFileOrFolder({path:E,type:"file",name:y,contents:p});T.success?(s=(f=T.info)==null?void 0:f.path,s&&C&&s.startsWith(C)&&(s=Xl.rest(s,C)),Nl({title:"Image uploaded successfully",description:`We've uploaded your image at ${s}`})):Nl({title:"Failed to upload image. Using raw base64 string."})}}}catch{Nl({title:"Failed to upload image. Using raw base64 string."})}let c=e.state.changeByRange(p=>{let y=e.state.sliceDoc(p.from,p.to);return y.trim()===""&&(y="alt"),{changes:[{from:p.from,to:p.to,insert:`![${y}](${s??o})`}],range:p}});e.dispatch(e.state.update(c,{scrollIntoView:!0,annotations:Ss.userEvent.of("input")}));let{to:d}=c.selection.main;try{e.dispatch({selection:mn.create([mn.range(d+4,d+4+o.length),mn.cursor(d+4+o.length)])})}catch{}return e.focus(),!0},Kh=async function(e,n){let i=await n.text(),o=e.state.changeByRange(s=>({changes:[{from:s.from,to:s.from,insert:i}],range:s}));return e.dispatch(e.state.update(o,{scrollIntoView:!0,annotations:Ss.userEvent.of("input")})),e.focus(),!0};function zC(e){if(!Io(e))return!1;let{changes:n}=e.state.changeByRange(i=>({range:i,changes:Zd({view:e,selection:i,markup:e.state.sliceDoc(i.from,i.to+2).startsWith("* ")?"* ":"- "})}));return n.length>0&&e.dispatch(e.state.update({changes:n,scrollIntoView:!0,userEvent:"input"})),e.focus(),!0}function FC(e){if(!Io(e))return!1;let{changes:n}=e.state.changeByRange(i=>({range:i,changes:Zd({view:e,selection:i,markup:"1. "})}));return n.length>0&&e.dispatch(e.state.update({changes:n,scrollIntoView:!0,userEvent:"input"})),e.focus(),!0}function BC(e){return[Lu.highest(Ra.of([{key:e.getHotkey("markdown.bold").key,stopPropagation:!0,run:qC},{key:e.getHotkey("markdown.italic").key,stopPropagation:!0,run:jC},{key:e.getHotkey("markdown.link").key,stopPropagation:!0,run:n=>qy(n)},{key:e.getHotkey("markdown.orderedList").key,run:FC},{key:e.getHotkey("markdown.unorderedList").key,run:zC},{key:e.getHotkey("markdown.blockquote").key,run:AC},{key:e.getHotkey("markdown.code").key,run:Ay},{key:"`",run:Ay}])),Kt.domEventHandlers({paste:(n,i)=>{var s;if(i.state.selection.main.empty)return!1;let o=(s=n.clipboardData)==null?void 0:s.getData("text/plain");o!=null&&o.startsWith("http")&&(n.preventDefault(),qy(i,o))}}),Kt.domEventHandlers({paste:(n,i)=>{var s;let o=(s=n.clipboardData)==null?void 0:s.files[0];if(!o)return!1;if(o.type.startsWith("image/"))return n.preventDefault(),Bh(i,o),!0;if(o.type.startsWith("text/"))return n.preventDefault(),Kh(i,o),!0}})]}function HC(e,n,i=3,o=""){return Object.values(e).flatMap(s=>n.has(s.name)?[]:{label:`${o}${s.name}`,displayLabel:s.name,detail:s.dataType??"",boost:i,type:"variable",apply:`${o}${s.name}`,section:"Variable",info:()=>Ah(s)})}Ah=function(e){let n=document.createElement("div");n.classList.add("mo-cm-tooltip","docs-documentation","min-w-[200px]","flex","flex-col","gap-1","p-2");let i=document.createElement("div");i.classList.add("flex","items-center","gap-2");let o=document.createElement("span");if(o.classList.add("font-bold","text-base"),o.textContent=e.name,i.append(o),e.dataType){let s=document.createElement("span");s.classList.add("text-xs","px-1.5","py-0.5","rounded-full","bg-purple-100","text-purple-800","dark:bg-purple-900","dark:text-purple-200"),s.textContent=e.dataType,i.append(s)}if(n.append(i),e.value){let s=document.createElement("div");s.classList.add("flex","flex-col","gap-1");let c=document.createElement("div");c.classList.add("text-xs","text-muted-foreground"),c.textContent="Value:",s.append(c);let d=document.createElement("div");d.classList.add("text-xs","font-mono","bg-muted","p-2","rounded","overflow-auto","max-h-40"),d.textContent=e.value,s.append(d),n.append(s)}return n};var Ao="Python",tf=123,jy=125,nf=1,VC={mark:`${Ao}Mark`,resolve:Ao};function $C(e,n){return{defineNodes:[{name:Ao,style:Pu.emphasis},{name:`${Ao}Mark`,style:Pu.processingInstruction}],parseInline:[{name:Ao,parse(i,o,s){return!n()||o!==tf&&o!==jy||o===tf&&i.slice(s-1,s)==="{"?-1:i.addDelimiter(VC,s,s+nf,o===tf,o===jy)}}],wrap:mw(i=>{if(!n()||i.type.name!==Ao)return null;let o=i.from+nf,s=i.to-nf;return o>=s||o<0||s<0?null:{parser:e,overlay:[{from:o,to:s}],extensions:[Rw().support]}})}}const WC=e=>{let n=e.state.doc.sliceString(0,e.pos),i=n.lastIndexOf("{");if(n.at(i-1)==="{"||i===-1||n.indexOf("}",i)>i)return null;let o=e.matchBefore(/\w*$/);if(!o)return null;let s=HC(lt.get(Ma),new Set,99);return{from:o.from,options:s,validFor:/^\w*$/}};var lc="InlineMathDollar",qo="InlineMathBracket",cc="BlockMathDollar",jo="BlockMathBracket",Ba={[lc]:1,[qo]:3,[cc]:2,[jo]:3},At={DOLLAR:36,BACKSLASH:92,OPEN_PAREN:40,CLOSE_PAREN:41,OPEN_BRACKET:91,CLOSE_BRACKET:93},zo=Object.keys(Ba).reduce((e,n)=>(e[n]={mark:`${n}Mark`,resolve:n},e),{});function UC(e){let n=[];return Object.keys(Ba).forEach(i=>{n.push({name:i,style:Pu.emphasis},{name:`${i}Mark`,style:Pu.processingInstruction})}),{defineNodes:n,parseInline:[{name:cc,parse(i,o,s){return o!==At.DOLLAR||i.char(s+1)!==At.DOLLAR?-1:i.addDelimiter(zo[cc],s,s+Ba[cc],!0,!0)}},{name:lc,parse(i,o,s){return o!==At.DOLLAR||i.char(s+1)===At.DOLLAR?-1:i.addDelimiter(zo[lc],s,s+Ba[lc],!0,!0)}},{name:qo,before:"Escape",parse(i,o,s){return o!==At.BACKSLASH||i.char(s+1)!==At.BACKSLASH||![At.OPEN_PAREN,At.CLOSE_PAREN].includes(i.char(s+2))?-1:i.addDelimiter(zo[qo],s,s+Ba[qo],i.char(s+2)===At.OPEN_PAREN,i.char(s+2)===At.CLOSE_PAREN)}},{name:jo,before:"Escape",parse(i,o,s){return o!==At.BACKSLASH||i.char(s+1)!==At.BACKSLASH||![At.OPEN_BRACKET,At.CLOSE_BRACKET].includes(i.char(s+2))?-1:i.addDelimiter(zo[jo],s,s+Ba[jo],i.char(s+2)===At.OPEN_BRACKET,i.char(s+2)===At.CLOSE_BRACKET)}},{name:qo,before:"Escape",parse(i,o,s){return o!==At.BACKSLASH||![At.OPEN_PAREN,At.CLOSE_PAREN].includes(i.char(s+1))?-1:i.addDelimiter(zo[qo],s,s+2,i.char(s+1)===At.OPEN_PAREN,i.char(s+1)===At.CLOSE_PAREN)}},{name:jo,before:"Escape",parse(i,o,s){return o!==At.BACKSLASH||![At.OPEN_BRACKET,At.CLOSE_BRACKET].includes(i.char(s+1))?-1:i.addDelimiter(zo[jo],s,s+2,i.char(s+1)===At.OPEN_BRACKET,i.char(s+1)===At.CLOSE_BRACKET)}}],wrap:mw(i=>{let o=Ba[i.type.name];if(o){let s=i.from+o,c=i.to-o;return s>=c||s<0||c<0?null:{parser:e,overlay:[{from:s,to:c}]}}return null})}}Vu=Fi.define(),Wu=Fi.define(),di=xs.define({create:()=>({}),update:(e,n)=>{for(let i of n.effects){if(i.is(Vu))return i.value;if(i.is(Wu))return{...e,...i.value}}return e}}),id=class{constructor(){ke(this,"parser",new ty);ke(this,"type","markdown");ke(this,"defaultCode",this.parser.defaultCode);ke(this,"defaultMetadata",this.parser.defaultMetadata)}static fromMarkdown(e){return ty.fromMarkdown(e)}transformIn(e){let n=this.parser.transformIn(e);return[n.code,n.offset,n.metadata]}transformOut(e,n){let i=this.parser.transformOut(e,n);return[i.code,i.offset]}isSupported(e){return this.parser.isSupported(e)}getExtension(e,n,i,o){let s=Tw().language.data,c,d=()=>{var p;if(!c)return!0;let f=c==null?void 0:c.state.field(di);return f===void 0?!1:((p=f.quotePrefix)==null?void 0:p.includes("f"))??!1};return[Pl.define(f=>(c=f,{})),Tw({base:PD,codeLanguages:Zk,extensions:[UC(hw.define(ID).parser),$C(Oh.parser,d)]}),BC(i),Ny.map(f=>s.of({autocomplete:f})),Rw().language.data.of({autocomplete:DC({completion:Ly,predicate:d})}),Nu({defaultKeymap:!1,activateOnTyping:!0}),RC({predicate:()=>!d()})]}};function zy(){return`file://${Fl()??"/__marimo_notebook__.py"}`}function rf(){return`file://${Xl.dirname(Fl()??"/")}`}function KC(e){return ci.filter(e,n=>n!==!1&&n!==null)}function Fy(e){let n=e.map(KC);return Object.assign({},...n)}var QC=class{constructor(e){ke(this,"clients",[]);this.clients=e,this.documentUri=zy()}onNotification(e){let n=[];for(let i of this.clients)n.push(i.onNotification(e));return()=>{for(let i of n)i();return!0}}get clientCapabilities(){return Fy(this.clients.map(e=>{if(e.clientCapabilities)return typeof e.clientCapabilities=="function"?e.clientCapabilities({}):e.clientCapabilities}).filter(e=>e!=null))}get ready(){return this.clients.some(e=>e.ready)}set ready(e){this.clients.forEach(n=>{n.ready=e})}get capabilities(){return Fy(this.clients.map(e=>e.capabilities).filter(e=>e!==null))}set capabilities(e){this.clients.forEach(n=>{n.capabilities=e})}get initializePromise(){return this.clients[0].initializePromise}set initializePromise(e){this.clients.forEach(n=>{n.initializePromise=e})}firstWithCapability(e){return this.clients.find(n=>{var i;return(i=n.capabilities)==null?void 0:i[e]})}clientsWithCapability(e){return this.clients.filter(n=>{var i;return(i=n.capabilities)==null?void 0:i[e]})}async initialize(){await Promise.all(this.clients.map(e=>e.initialize()))}async close(){await Promise.all(this.clients.map(e=>e.close()))}async textDocumentDidChange(e){return await Promise.all(this.clients.map(n=>n.textDocumentDidChange(e))),e}async completionItemResolve(e){let n=this.firstWithCapability("completionProvider");return n?n.completionItemResolve(e):e}async textDocumentCodeAction(e){let n=this.firstWithCapability("codeActionProvider");return n?n.textDocumentCodeAction(e):null}async textDocumentRename(e){let n=this.firstWithCapability("renameProvider");return n?n.textDocumentRename(e):null}async textDocumentPrepareRename(e){let n=this.firstWithCapability("renameProvider");return n?n.textDocumentPrepareRename(e):null}async textDocumentSignatureHelp(e){let n=this.firstWithCapability("signatureHelpProvider");return n?n.textDocumentSignatureHelp(e):null}async textDocumentCompletion(e){let n=this.clientsWithCapability("completionProvider");return GC(await Promise.allSettled(n.map(i=>i.textDocumentCompletion(e))))}async textDocumentDefinition(e){let n=this.firstWithCapability("definitionProvider");return n?n.textDocumentDefinition(e):null}async textDocumentDidOpen(e){return await Promise.all(this.clients.map(n=>n.textDocumentDidOpen(e))),e}async textDocumentHover(e){var n;for(let i of this.clients){if(!((n=i.capabilities)!=null&&n.hoverProvider))continue;let o=await i.textDocumentHover(e);if(o)return o}return{contents:[]}}};function GC(e){let n=[],i=!1;for(let o of e)if(o.status==="fulfilled"){let s=o.value;if(s==null)continue;Array.isArray(s)&&n.push(...s),"items"in s&&(n.push(...s.items),i||(i=s.isIncomplete))}return{items:n,isIncomplete:i}}Mw=function(e){return[...JC(e),e].join(` +`)};function JC(e){return Om().map(n=>{let i=Jr(n);return i===e?null:i}).filter(Boolean).sort((n,i)=>n.startsWith("import")&&!i.startsWith("import")?-1:!n.startsWith("import")&&i.startsWith("import")?1:0)}var XC=ze(e=>{let n=e(bt);return ci.fromEntries(n.cellIds.inOrderIds.map(i=>{let o=n.cellHandles[i];return[i,o!=null&&o.current?Jr(o.current.editorView):""]}))}),YC=ze(e=>e(bt).cellIds.inOrderIds),ZC=ze(e=>tE(e(YC),e(Ma)));const eE=ze(e=>({cellIds:e(ZC),codes:e(XC)}));function tE(e,n){var p,y;let i=new Map;e.forEach(w=>i.set(w,[]));let o=new Set(e),s=new Set(e);for(let{declaredBy:w,usedBy:_}of Object.values(n))for(let C of w){o.delete(C);for(let E of _)s.delete(E),E!==C&&((p=i.get(C))==null||p.push(E))}let c=new Map;e.forEach(w=>c.set(w,0)),i.forEach(w=>{w.forEach(_=>{c.set(_,(c.get(_)||0)+1)})});let d=[];c.forEach((w,_)=>{w===0&&d.push(_)});let f=[];for(;d.length>0;){let w=d.shift();if(!w)break;f.push(w),(y=i.get(w))==null||y.forEach(_=>{c.set(_,(c.get(_)||0)-1),c.get(_)===0&&d.push(_)})}return[...f.filter(w=>!o.has(w)),...o]}function nE(e,n){let i=new Map,o=0;e.forEach(d=>{i.set(d,o),o+=n[d].split(` +`).length});function s(d){return i.has(d)||Re.warn("[lsp] no cell line offsets for",d),i.get(d)??0}let c=e.map(d=>n[d]).join(` +`);return{cellIds:e,mergedText:c,transformRange:(d,f)=>By(d,s(f)),reverseRange:(d,f)=>By(d,-s(f)),isInRange:(d,f)=>{let p=n[f].split(` +`).length,y=i.get(f)||0,w=d.start.line-y,_=d.end.line-y;return w>=0&&_{let f=d.split(` +`),p=c.split(` +`);if(f.length!==p.length)throw Re.warn("[lsp] cannot apply rename with new lines",f,p),Error("Cannot apply rename when there are new lines");let y=[];for(let[w,_]of ci.entries(n)){if(!i.has(w))continue;let C=i.get(w)??0,E=_.split(` +`).length,T=f.slice(C,C+E);y.push({cellId:w,text:T.join(` +`)})}return y},transformPosition:(d,f)=>uc(d,s(f)),reversePosition:(d,f)=>uc(d,-s(f))}}function By(e,n){return{start:uc(e.start,n),end:uc(e.end,n)}}function uc(e,n){return{line:e.line+n,character:e.character}}const rr={PREFIX:"file:///",of(e){return`${this.PREFIX}${e}`},is(e){return e.startsWith(this.PREFIX)},parse(e){return In(this.is(e),`Invalid cell document URI: ${e}`),e.slice(this.PREFIX.length)}};function Hy(e){return"notify"in e}function rE(e){return e.startsWith("_")&&!e.startsWith("__")}var iE=class{constructor(e){ke(this,"documentVersion",0);ke(this,"versionToCellNumberAndVersion",new Ps(20));ke(this,"lastSnapshot",null);this.getNotebookCode=e}snapshot(){var i;let e=this.getLens(),n=((i=this.lastSnapshot)==null?void 0:i.mergedText)!==e.mergedText;return n?(this.documentVersion++,this.lastSnapshot=e,{lens:e,didChange:n,version:this.documentVersion}):{lens:e,didChange:n,version:this.documentVersion}}getSnapshot(e){let n=this.versionToCellNumberAndVersion.get(e);if(!n)throw Error(`No snapshot for version ${e}`);return n}getLatestSnapshot(){if(!this.lastSnapshot)throw Error("No snapshots");return{lens:this.lastSnapshot,version:this.documentVersion}}getLens(){let{cellIds:e,codes:n}=this.getNotebookCode();return nE(e,n)}},aE=()=>{let e=ad().cellHandles;return ci.mapValues(e,n=>{var i;return(i=n.current)==null?void 0:i.editorViewOrNull})},af=(ea=class{constructor(n,i,o=aE){ke(this,"completionItemCache",new Ps(10));this.documentUri=zy(),this.getNotebookEditors=o,this.initialSettings=i,this.client=n,this.patchProcessNotification(),this.initializePromise.then(()=>{In(Hy(this.client),"notify is not a method on the client"),this.client.notify("workspace/didChangeConfiguration",{settings:i})}),this.snapshotter=new iE(this.getNotebookCode.bind(this))}onNotification(n){return this.client.onNotification(n)}get ready(){return this.client.ready}set ready(n){this.client.ready=n}get capabilities(){return this.client.capabilities}set capabilities(n){this.client.capabilities=n}get initializePromise(){return this.client.initializePromise}set initializePromise(n){this.client.initializePromise=n}get clientCapabilities(){return this.client.clientCapabilities}async initialize(){await this.client.initialize()}close(){this.client.close()}async resyncAllDocuments(){In(Hy(this.client),"notify is not a method on the client"),await this.client.initialize(),this.client.notify("workspace/didChangeConfiguration",{settings:this.initialSettings});let{lens:n,version:i}=this.snapshotter.snapshot();await this.client.textDocumentDidOpen({textDocument:{languageId:"python",text:n.mergedText,uri:this.documentUri,version:i}}),Re.log("[lsp] Document re-synchronization complete")}getNotebookCode(){return lt.get(eE)}assertCellDocumentUri(n){In(rr.is(n),"Execpted URI to be CellDocumentUri")}async textDocumentDidOpen(n){Re.debug("[lsp] textDocumentDidOpen",n);let i=n.textDocument.uri;this.assertCellDocumentUri(i);let{lens:o,version:s}=this.snapshotter.snapshot();ea.SEEN_CELL_DOCUMENT_URIS.add(i);let c=await this.client.textDocumentDidOpen({textDocument:{languageId:n.textDocument.languageId,text:o.mergedText,uri:this.documentUri,version:s}});return c?{...c,textDocument:{...c.textDocument,text:o.mergedText}}:n}async sync(){let{lens:n,version:i,didChange:o}=this.snapshotter.snapshot();return o?this.client.textDocumentDidChange({textDocument:{uri:this.documentUri,version:i},contentChanges:[{text:n.mergedText}]}):{textDocument:{uri:this.documentUri,version:i},contentChanges:[{text:n.mergedText}]}}async textDocumentDidChange(n){return Re.debug("[lsp] textDocumentDidChange",n),n.contentChanges.length===1?this.sync():(Re.warn("[lsp] Unhandled textDocumentDidChange",n),this.client.textDocumentDidChange(n))}async textDocumentDefinition(n){let i=n.textDocument.uri;if(!rr.is(i))return Re.warn("Invalid cell document URI",i),null;await this.sync();let{lens:o}=this.snapshotter.getLatestSnapshot(),s=rr.parse(i);return this.client.textDocumentDefinition({...n,textDocument:{uri:this.documentUri},position:o.transformPosition(n.position,s)})}async textDocumentSignatureHelp(n){let i=n.textDocument.uri;if(!rr.is(i))return Re.warn("Invalid cell document URI",i),null;await this.sync();let{lens:o}=this.snapshotter.getLatestSnapshot(),s=rr.parse(i);return await this.client.textDocumentSignatureHelp({...n,textDocument:{uri:this.documentUri},position:o.transformPosition(n.position,s)})||null}textDocumentCodeAction(n){return Promise.resolve(null)}async textDocumentRename(n){var T;let i=n.textDocument.uri;if(!rr.is(i))return Re.warn("Invalid cell document URI",i),null;let o=rr.parse(i);await this.sync();let{lens:s}=this.snapshotter.getLatestSnapshot(),c=s.transformPosition(n.position,o),d=await this.client.textDocumentRename({...n,textDocument:{uri:this.documentUri},position:c});if(!d)return null;let f=(T=d.documentChanges)==null?void 0:T.flatMap(P=>"edits"in P?P.edits:[]);if(!f||f.length!==1)return Re.warn("Expected exactly one edit",f),d;let p=f[0];if(!("newText"in p))return Re.warn("Expected newText in edit",p),d;let y=s.getEditsForNewText(p.newText),w=new Map(y.map(P=>[P.cellId,P.text])),_=this.getNotebookEditors(),C=_[o],E=!1;if(C){let P=C.state.doc.line(n.position.line+1).from+n.position.character,{startToken:V,endToken:$}=Jd(C.state.doc,P),B=C.state.doc.sliceString(V,$);E=rE(B),E&&Re.debug("[lsp] Private variable rename detected, limiting to current cell",B)}for(let[P,V]of ci.entries(_)){if(E&&P!==o)continue;let $=w.get(P);if($==null){Re.warn("No new code for cell",P);continue}if(!V){Re.warn("No view for plugin",P);continue}Jr(V)!==$&&xo(V,$)}return{...d,documentChanges:[{edits:[],textDocument:{uri:i,version:0}}]}}async completionItemResolve(n){let i=JSON.stringify(n),o=this.completionItemCache.get(i);if(o)return o;let s=this.client.completionItemResolve(n);return this.completionItemCache.set(i,s),s}async textDocumentPrepareRename(n){let i=n.textDocument.uri;if(!rr.is(i))return Re.warn("Invalid cell document URI",i),null;await this.sync();let{lens:o}=this.snapshotter.getLatestSnapshot(),s=rr.parse(i);return this.client.textDocumentPrepareRename({...n,textDocument:{uri:this.documentUri},position:o.transformPosition(n.position,s)})}async textDocumentHover(n){Re.debug("[lsp] textDocumentHover",n),await this.sync();let{lens:i}=this.snapshotter.getLatestSnapshot(),o=rr.parse(n.textDocument.uri),s=await this.client.textDocumentHover({...n,textDocument:{uri:this.documentUri},position:i.transformPosition(n.position,o)});return s?(typeof s.contents=="object"&&"kind"in s.contents&&(s.contents={kind:"markdown",value:s.contents.value}),s.contents===""?null:(s.range&&(s.range=i.reverseRange(s.range,o)),s)):(Re.debug("[lsp] no hover result"),s)}async textDocumentCompletion(n){let{lens:i}=this.snapshotter.getLatestSnapshot(),o=rr.parse(n.textDocument.uri);return this.client.textDocumentCompletion({...n,textDocument:{uri:this.documentUri},position:i.transformPosition(n.position,o)})}patchProcessNotification(){In("processNotification"in this.client,"processNotification is not a method on the client");let n=this.client.processNotification.bind(this.client),i=o=>{if(o.method==="textDocument/publishDiagnostics"){Re.debug("[lsp] handling diagnostics",o);let s=this.snapshotter.getLatestSnapshot(),c=o.params.diagnostics,{lens:d,version:f}=s,p=new Map;for(let w of c)for(let _ of d.cellIds)if(d.isInRange(w.range,_)){p.has(_)||p.set(_,[]);let C={...w,range:d.reverseRange(w.range,_)};p.get(_).push(C);break}let y=new Set(ea.SEEN_CELL_DOCUMENT_URIS);for(let[w,_]of p.entries()){Re.debug("[lsp] diagnostics for cell",w,_);let C=rr.of(w);y.delete(C),n({...o,params:{...o.params,uri:C,version:f,diagnostics:_}})}if(y.size>0){Re.debug("[lsp] clearing diagnostics",y);for(let w of y)n({method:"textDocument/publishDiagnostics",params:{uri:w,diagnostics:[]}})}return}return n(o)};this.client.processNotification=i}},ke(ea,"SEEN_CELL_DOCUMENT_URIS",new Set),ea),oE=zl(),sE=Oa(),lE=class extends sE.Transport{constructor(n){super();ke(this,"isClosed",!1);ke(this,"hasConnectedBefore",!1);ke(this,"pendingSubscriptions",[]);this.options=n,this.delegate=void 0}createDelegate(){if(this.delegate)try{this.delegate.close()}catch(n){Re.warn("Error closing old WebSocket delegate",n)}this.delegate=new oE.WebSocketTransport(this.options.getWsUrl());for(let{event:n,handler:i}of this.pendingSubscriptions)this.delegate.subscribe(n,i);return this.delegate}isDelegateClosedOrClosing(){if(!this.delegate)return!0;let n=this.delegate.connection;return n?n.readyState===WebSocket.CLOSING||n.readyState===WebSocket.CLOSED:!0}async connect(){if(this.isClosed)throw Error("Transport is closed");return this.connectionPromise||(this.connectionPromise=(async()=>{try{this.options.waitForConnection&&await this.options.waitForConnection();let n=this.delegate;(!n||this.isDelegateClosedOrClosing())&&(n=this.createDelegate()),await n.connect(),Re.log("WebSocket transport connected successfully");let i=this.hasConnectedBefore;this.hasConnectedBefore=!0,i&&this.options.onReconnect&&(Re.log("Calling onReconnect callback to re-synchronize state"),await this.options.onReconnect())}catch(n){throw Re.error("WebSocket transport connection failed",n),this.delegate=void 0,n}finally{this.connectionPromise=void 0}})()),this.connectionPromise}close(){var n;this.isClosed=!0,(n=this.delegate)==null||n.close(),this.delegate=void 0,this.connectionPromise=void 0}subscribe(...n){super.subscribe(...n);let[i,o]=n;this.pendingSubscriptions.push({event:i,handler:o}),this.delegate&&this.delegate.subscribe(i,o)}unsubscribe(...n){let i=super.unsubscribe(...n),[o,s]=n;return this.pendingSubscriptions=this.pendingSubscriptions.filter(c=>!(c.event===o&&c.handler===s)),this.delegate&&this.delegate.unsubscribe(o,s),i}async sendData(n,i){var o;if(this.isDelegateClosedOrClosing()){Re.warn("WebSocket is closed or closing, attempting to reconnect");try{await this.connect()}catch(s){throw Re.error("Failed to reconnect WebSocket",s),s}}return(o=this.delegate)==null?void 0:o.sendData(n,i)}};function of(e,n){let i=x4();return new lE({getWsUrl:()=>i.getLSPURL(e).toString(),waitForConnection:async()=>{await _4()},onReconnect:n})}Fi.define(),new Mu;function cE(e){return e.facet(E4.readOnly)}function uE(e){return[sw(e),Ra.of([{key:"ArrowRight",preventDefault:!0,run:n=>Vy(n,e)},{key:"Tab",preventDefault:!0,run:n=>Vy(n,e)}])]}function Vy(e,n){if(cE(e.state))return!1;let i=e.state.doc.length;return i===0?(e.dispatch({changes:{from:0,to:i,insert:n},selection:{head:n.length,anchor:n.length}}),!0):!1}function dE(e){let{beforeText:n,linkText:i,afterText:o,onClick:s}=e;return[sw(c=>{let d=document.createElement("span");d.append(document.createTextNode(n));let f=document.createElement("span");return f.textContent=i,f.classList.add("cm-clickable-placeholder"),f.onclick=p=>{p.stopPropagation(),s(c)},d.append(f),d.append(document.createTextNode(o)),d}),Kt.theme({".cm-placeholder":{color:"var(--slate-8)"},".cm-clickable-placeholder":{cursor:"pointer !important",pointerEvents:"auto",color:"var(--slate-9)",textDecoration:"underline",textUnderlineOffset:"0.2em"},".cm-clickable-placeholder:hover":{color:"var(--sky-11)"}})]}var fE=ui(e=>{let n,i={transport:of("pylsp",async()=>{await(n==null?void 0:n())}),rootUri:rf(),workspaceFolders:[]},o=e==null?void 0:e.pylsp,s=["D100","D103"],c=["W292","E402"],d=["B018","I001"],f={pylsp:{plugins:{marimo_plugin:{enabled:!0},jedi:{auto_import_modules:["numpy"]},jedi_completion:{include_params:!0,resolve_at_most:50},flake8:{enabled:o==null?void 0:o.enable_flake8,extendIgnore:c},pydocstyle:{enabled:o==null?void 0:o.enable_pydocstyle,ignore:s},pylint:{enabled:o==null?void 0:o.enable_pylint},pyflakes:{enabled:o==null?void 0:o.enable_pyflakes},pylsp_mypy:{enabled:o==null?void 0:o.enable_mypy,live_mode:!0},ruff:{enabled:o==null?void 0:o.enable_ruff,extendIgnore:[...c,...s,...d]},signature:{formatter:o!=null&&o.enable_ruff?"ruff":"black",line_length:88}}}},p=new af(new jl({...i}),f);return n=()=>p.resyncAllDocuments(),p}),pE=ui(e=>{let n,i=new af(new jl({transport:of("ty",async()=>{await(n==null?void 0:n())}),rootUri:rf(),workspaceFolders:[],getWorkspaceConfiguration:o=>[{disableLanguageServices:!0}]}),{});return n=()=>i.resyncAllDocuments(),i}),hE=ui(e=>{let n,i=new af(new jl({transport:of("basedpyright",async()=>{await(n==null?void 0:n())}),rootUri:rf(),workspaceFolders:[]}),{});return n=()=>i.resyncAllDocuments(),i}),mE=class{constructor(){ke(this,"parser",new _S);ke(this,"type","python");ke(this,"defaultCode",this.parser.defaultCode);ke(this,"defaultMetadata",this.parser.defaultMetadata)}transformIn(e){let n=this.parser.transformIn(e);return[n.code,n.offset,n.metadata]}transformOut(e,n){let i=this.parser.transformOut(e,n);return[i.code,i.offset]}isSupported(e){return this.parser.isSupported(e)}getExtension(e,n,i,o,s){return[(()=>{var w,_,C,E;let c={defaultKeymap:!1,activateOnTyping:n.activate_on_typing,closeOnBlur:!1},d={hideOnChange:!0},f=[];(w=s==null?void 0:s.pylsp)!=null&&w.enabled&&sc("pylsp")&&f.push(fE(s)),(_=s==null?void 0:s.ty)!=null&&_.enabled&&sc("ty")&&f.push(pE(s)),(C=s==null?void 0:s.basedpyright)!=null&&C.enabled&&sc("basedpyright")&&f.push(hE(s));let p=n.signature_hint_on_typing,y=p?/(\w+|\w+\.|\/)$/:/(\w+|\w+\.|\(|\/|,)$/;if(f.length>0){let T=f.length===1?f[0]:new QC(f);return[bm({client:T,languageId:"python",allowHTMLContent:!0,useSnippetOnCompletion:!1,hoverConfig:d,completionConfig:c,diagnosticsEnabled:((E=s.diagnostics)==null?void 0:E.enabled)??!1,sendIncrementalChanges:!1,signatureHelpEnabled:!0,signatureActivateOnTyping:p,signatureHelpOptions:{position:"above"},keyboardShortcuts:{signatureHelp:i.getHotkey("cell.signatureHelp").key,goToDefinition:i.getHotkey("cell.goToDefinition").key,rename:i.getHotkey("cell.renameSymbol").key},completionMatchBefore:y,onGoToDefinition:P=>{Re.debug("onGoToDefinition",P),T.documentUri!==P.uri&&Hi().openFile({path:P.uri.replace("file://","")})}}),bg.of(rr.of(e))]}return Nu({...c,override:[Ly]})})(),wm(),gE(o)]}};function gE(e){return e==="marimo-import"?Lu.highest(uE("import marimo as mo")):e==="ai"?dE({beforeText:"Start coding or ",linkText:"generate",afterText:" with AI.",onClick:n=>{n.state.facet(Pt).aiCellCompletion()}}):[]}var sf=Oh.configure({props:[R4.add({ParenthesizedExpression:fw,ArgList:fw})]});wm=function(){return new gw(sf,[sf.data.of({autocomplete:LD}),sf.data.of({autocomplete:ND})])};const yE=e=>{let n;return async()=>(n||(n=e()),await n)};var dc=class{constructor(e={}){ke(this,"opts");ke(this,"parser",null);ke(this,"offsetRecord",{});ke(this,"getParser",yE(async()=>{if(this.parser)return this.parser;let e=await ce(()=>import("./node-sql-parser-CmARB4ap.js").then(async i=>(await i.__tla,i)).then(YR(1)),__vite__mapDeps([213,1]),import.meta.url),{Parser:n}=e.default||e;return this.parser=new n,this.parser}));this.opts=e}async parse(e,n){var s,c;this.offsetRecord={};let i=(c=(s=this.opts).getParserOptions)==null?void 0:c.call(s,n.state),o=await this.sanitizeSql(e,i);try{let d=await this.getParser();return(i==null?void 0:i.database)==="DuckDB"?this.parseWithDuckDBSupport(o,i):{success:!0,errors:[],ast:d.astify(o,i)}}catch(d){return{success:!1,errors:[this.extractErrorInfo(d,o)]}}}async sanitizeSql(e,n){if(n!=null&&n.ignoreBrackets){let{sql:i,offsetRecord:o}=wE(e);return this.offsetRecord=o,i}return e}async parseWithDuckDBSupport(e,n){let i=await this.getParser(),o=vE(e).trimStart().toLowerCase();if(o.startsWith("from")||o.includes("macro"))return{success:!0,errors:[]};let s=e;o.includes("create or replace table")&&(this.offsetRecord[e.indexOf("create or replace table")]=-11,s=e.replace(/create or replace table/i,"create table"));try{let c={...n,database:"PostgreSQL"};return{success:!0,errors:[],ast:i.astify(s,c)}}catch(c){return{success:!1,errors:[this.extractErrorInfo(c,e)]}}}extractErrorInfo(e,n){var d,f,p;let i=1,o=1,s=(e==null?void 0:e.message)||"SQL parsing error",c=e;if(c!=null&&c.location)i=((d=c.location.start)==null?void 0:d.line)||1,o=((f=c.location.start)==null?void 0:f.column)||1;else if(c!=null&&c.hash)i=c.hash.line||1,o=((p=c.hash.loc)==null?void 0:p.first_column)||1;else{let y=s.match(/line (\d+)/i),w=s.match(/column (\d+)/i);y!=null&&y[1]&&(i=parseInt(y[1],10)),w!=null&&w[1]&&(o=parseInt(w[1],10))}for(let[y,w]of Object.entries(this.offsetRecord))o>parseInt(y,10)&&(o-=w);return o>n.length&&(o=n.length),{message:this.cleanErrorMessage(s),line:Math.max(1,i),column:o,severity:"error"}}cleanErrorMessage(e){return e.replace(/^Error: /,"").replace(/Expected .* but .* found\./i,n=>n.replace(/but .* found/,"found unexpected token")).trim()}async validateSql(e,n){return(await this.parse(e,n)).errors}async extractTableReferences(e,n){var o,s;let i=n?(s=(o=this.opts).getParserOptions)==null?void 0:s.call(o,n.state):void 0;try{return(await this.getParser()).tableList(e,i).map(c=>{let d=c.split("::");return d[d.length-1]||c})}catch{return[]}}async extractColumnReferences(e,n){var o,s;let i=n!=null&&n.state?(s=(o=this.opts).getParserOptions)==null?void 0:s.call(o,n.state):void 0;try{return(await this.getParser()).columnList(e,i).map(c=>{let d=c.split("::");return d[d.length-1]||c})}catch{return[]}}};function vE(e,n=["/*","--"]){let i=[];if(n.includes("/*")&&i.push("/\\*[\\s\\S]*?\\*/"),n.includes("--")&&i.push("--[^\\n]*"),i.length===0)return e;let o=RegExp(`^\\s*(${i.join("|")})\\s*`,""),s=e,c="";for(;s!==c;)c=s,s=s.replace(o,"");return s}var bE=2;function wE(e){let n={};return{sql:e.replace(/("(?:[^"\\]|\\.)*")|('(?:[^'\\]|\\.)*')|(\{[^}]*\})/g,(i,o,s,c,d)=>o||s?i:c?(n[d]=bE,`'${c}'`):i),offsetRecord:n}}var _E=750;function xE(e,n){let i=n.line(e.line).from+Math.max(0,e.column-1);return{from:i,to:i+1,severity:e.severity,message:e.message,source:"sql-parser"}}function kE(e={}){let n=e.parser||new dc;return eD(async i=>{let o=i.state.doc,s=o.toString();return s.trim()?(await n.validateSql(s,{state:i.state})).map(c=>xE(c,o)):[]},{delay:e.delay||_E})}function Ha(e){return typeof e=="object"&&!Array.isArray(e)&&!("self"in e)}function pi(e){return typeof e=="object"&&!Array.isArray(e)&&"self"in e&&"children"in e}function jr(e){return Array.isArray(e)}function qn(e,n,i,o){let s=e.length;if(n==="string"||n==="completion"&&o&&jr(o))return"column";if(n==="namespace"&&i){if(jr(i))return"table";if(Ha(i))return Object.values(i).some(c=>jr(c)||pi(c)&&jr(c.children))?s<=1?"database":"schema":s===0?"database":"namespace"}if(n==="completion"&&i)return jr(i)?"table":(Ha(i)&&Object.values(i).some(c=>jr(c)||pi(c)&&jr(c.children)),s<=1?"database":"schema");switch(s){case 0:return"database";case 1:return"schema";default:return"namespace"}}function $y(e,n,i={}){let{maxDepth:o=10}=i;if(n===""&&pi(e)){let c=qn([],"completion",e.children);return{completion:e.self,path:[],type:"completion",semanticType:c,namespace:e.children}}let s=n.split(".").filter(c=>c.length>0);return s.length===0||s.length>o?null:lf(e,s,[],i)}function lf(e,n,i,o,s){if(n.length===0){if(pi(e)){let p=qn(i,"completion",e.children,s);return{completion:e.self,path:i,type:"completion",semanticType:p,namespace:e.children}}return{path:i,type:"namespace",semanticType:qn(i,"namespace",e,s),namespace:e}}let[c,...d]=n,{caseSensitive:f=!1}=o;if(!c)return null;if(Ha(e)){let p=f?Object.keys(e).find(y=>y===c):Object.keys(e).find(y=>y.toLowerCase()===c.toLowerCase());if(p){let y=e[p];if(y)return lf(y,d,[...i,p],o,e)}}else{if(pi(e))return lf(e.children,n,i,o,e);if(jr(e)){for(let p of e)if(typeof p=="string"){if((f?p===c:p.toLowerCase()===c.toLowerCase())&&d.length===0){let y=qn([...i,p],"string",void 0,e);return{value:p,path:[...i,p],type:"string",semanticType:y}}}else if((f?p.label===c:p.label.toLowerCase()===c.toLowerCase())&&d.length===0){let y=qn([...i,p.label],"completion",void 0,e);return{completion:p,path:[...i,p.label],type:"completion",semanticType:y}}}}return null}function SE(e,n,i={}){let o=[];if(n.includes(".")){let s=n.lastIndexOf("."),c=n.substring(0,s),d=n.substring(s+1),f=$y(e,c,i);if(f!=null&&f.namespace)return cf(f.namespace,d,f.path,i)}else return cf(e,n,[],i);return o}function cf(e,n,i,o){let s=[],{caseSensitive:c=!1,allowPartialMatch:d=!0}=o;if(Ha(e)){for(let[f,p]of Object.entries(e))if(d?c?f.startsWith(n):f.toLowerCase().startsWith(n.toLowerCase()):c?f===n:f.toLowerCase()===n.toLowerCase())if(pi(p)){let y=qn([...i,f],"completion",p.children,e);s.push({completion:p.self,path:[...i,f],type:"completion",semanticType:y,namespace:p.children})}else{let y=qn([...i,f],"namespace",p,e);s.push({path:[...i,f],type:"namespace",semanticType:y,namespace:p})}}else if(pi(e)){if(d?c?e.self.label.startsWith(n):e.self.label.toLowerCase().startsWith(n.toLowerCase()):c?e.self.label===n:e.self.label.toLowerCase()===n.toLowerCase()){let f=qn([...i,e.self.label],"completion",e.children);s.push({completion:e.self,path:[...i,e.self.label],type:"completion",semanticType:f,namespace:e.children})}s.push(...cf(e.children,n,i,o))}else if(jr(e)){for(let f of e)if(typeof f=="string"){if(d?c?f.startsWith(n):f.toLowerCase().startsWith(n.toLowerCase()):c?f===n:f.toLowerCase()===n.toLowerCase()){let p=qn([...i,f],"string",void 0,e);s.push({value:f,path:[...i,f],type:"string",semanticType:p})}}else if(d?c?f.label.startsWith(n):f.label.toLowerCase().startsWith(n.toLowerCase()):c?f.label===n:f.label.toLowerCase()===n.toLowerCase()){let p=qn([...i,f.label],"completion",void 0,e);s.push({completion:f,path:[...i,f.label],type:"completion",semanticType:p})}}return s}function CE(e,n,i={}){let o=[],{maxDepth:s=10}=i;fc(e,[],o,s);let{caseSensitive:c=!1}=i;return o.filter(d=>d.path.some(f=>c?f===n:f.toLowerCase()===n.toLowerCase())).sort((d,f)=>{var w,_;let p=c?d.path[d.path.length-1]===n:((w=d.path[d.path.length-1])==null?void 0:w.toLowerCase())===n.toLowerCase(),y=c?f.path[f.path.length-1]===n:((_=f.path[f.path.length-1])==null?void 0:_.toLowerCase())===n.toLowerCase();return p&&!y?-1:!p&&y?1:d.path.length-f.path.length})}function fc(e,n,i,o){if(!(n.length>=o)){if(Ha(e))for(let[s,c]of Object.entries(e)){let d=[...n,s];if(pi(c)){let f=qn(d,"completion",c.children,e);i.push({completion:c.self,path:d,type:"completion",semanticType:f,namespace:c.children}),fc(c.children,d,i,o)}else{let f=qn(d,"namespace",c,e);i.push({path:d,type:"namespace",semanticType:f,namespace:c}),fc(c,d,i,o)}}else if(pi(e)){let s=qn(n,"completion",e.children);i.push({completion:e.self,path:n,type:"completion",semanticType:s,namespace:e.children}),fc(e.children,n,i,o)}else if(jr(e))for(let s of e)if(typeof s=="string"){let c=qn([...n,s],"string",void 0,e);i.push({value:s,path:[...n,s],type:"string",semanticType:c})}else{let c=qn([...n,s.label],"completion",void 0,e);i.push({completion:s,path:[...n,s.label],type:"completion",semanticType:c})}}}function Wy(e,n,i={}){let{enableFuzzySearch:o=!1}=i,s=$y(e,n,i);if(s)return s;let c=SE(e,n,i);if(c.length>0)return c[0]||null;if(o){let d=CE(e,n,i);if(d.length>0)return d[0]||null}return null}function Uy(e,n){if(n.size===0)return{};if(Ha(e)){let i={};for(let[o,s]of Object.entries(e))if(Array.from(n).some(c=>c.toLowerCase()===o.toLowerCase()))i[o]=s;else if(Ha(s)){let c=Uy(s,n);Object.keys(c).length>0&&(i[o]=c)}return i}return e}function EE(e={}){let{schema:n={},keywords:i={},hoverTime:o=300,enableKeywords:s=!0,enableTables:c=!0,enableColumns:d=!0,enableFuzzySearch:f=!0,parser:p=new dc,tooltipRender:y,tooltipRenderers:w={}}=e,_=null;return xh(async(C,E,T)=>{let{from:P,to:V,text:$}=C.state.doc.lineAt(E),B=E,I=E;_===null&&(_=typeof i=="function"?i(C):Promise.resolve(i));let Q=await _;for(;B>P&&/[\w.]/.test($[B-P-1]??"");)B--;for(;I0)return null;let pe=$.slice(B-P,I-P).toLowerCase();if(!pe||pe.length===0)return null;let M=typeof n=="function"?n(C):n,A=null;if(`${pe}`,!A&&s&&Q[pe]&&(Q[pe],A={word:pe,view:C,pos:E,tooltipType:"keyword",keywordData:{keyword:pe,info:Q[pe]}}),!A&&(c||d)&&M){let W=C.state.doc.toString(),de=await p.extractTableReferences(W),fe=new Set(de.map(be=>be.toLowerCase())),we=Uy(M,fe),J=Wy(we,pe,{enableFuzzySearch:f});!J&&fe.size===0&&(J=Wy(M,pe,{enableFuzzySearch:f})),J&&(Array.from(fe),A={word:pe,view:C,pos:E,tooltipType:"namespace",namespaceData:{item:J,word:pe,resolvedSchema:fe.size>0?we:M}})}return A?{pos:B,end:I,above:!0,create(W){if(y){let we=y(pe,W,E);if(we)return{dom:we}}let de=null;if(A.tooltipType==="keyword"&&A.keywordData)de=w.keyword?w.keyword(A.keywordData):Qy(A.keywordData);else if(A.tooltipType==="namespace"&&A.namespaceData){let we=A.namespaceData,{semanticType:J}=we.item;de=J==="table"&&w.table?w.table(we):J==="column"&&w.column?w.column(we):(J==="database"||J==="schema"||J==="namespace")&&w.namespace?w.namespace(we):Ky(we.item)}if(!de)return{dom:document.createElement("div")};let fe=document.createElement("div");return fe.className="cm-sql-hover-tooltip",fe.innerHTML=de,{dom:fe}}}:null},{hoverTime:o})}function Ky(e){var s,c,d,f,p,y,w;let n=e.path.join("."),i=((s=e.completion)==null?void 0:s.label)||e.value||e.path[e.path.length-1]||"unknown",o=`
`;switch(o+=`
${i} ${e.semanticType}
`,e.semanticType){case"database":if(o+=`
Database${(c=e.completion)!=null&&c.detail?`: ${e.completion.detail}`:""}
`,e.namespace){let _=pc(e.namespace);_>0&&(o+=`
Contains ${_} schema${_===1?"":"s"}
`)}break;case"schema":if(o+=`
Schema${(d=e.completion)!=null&&d.detail?`: ${e.completion.detail}`:""}
`,n&&(o+=`
Path: ${n}
`),e.namespace){let _=pc(e.namespace);_>0&&(o+=`
Contains ${_} table${_===1?"":"s"}
`)}break;case"table":if(o+=`
Table${(f=e.completion)!=null&&f.detail?`: ${e.completion.detail}`:""}
`,n){let _=e.path;_.length>1&&(o+=`
Schema: ${_.slice(0,-1).join(".")}
`)}if(e.namespace&&jr(e.namespace)){let _=e.namespace;if(_.length>0){o+=`
Columns (${_.length}):
`;let C=_.slice(0,8).map(E=>typeof E=="string"?E:E.label);o+=C.map(E=>`${E}`).join(", "),_.length>8&&(o+=`, and ${_.length-8} more...`),o+="
"}}break;case"column":if(o+=`
Column${(p=e.completion)!=null&&p.detail?`: ${e.completion.detail}`:""}
`,n){let _=e.path;_.length>1&&(o+=`
Table: ${_.slice(0,-1).join(".")}
`)}break;default:if(o+=`
Namespace${(y=e.completion)!=null&&y.detail?`: ${e.completion.detail}`:""}
`,n&&(o+=`
Path: ${n}
`),e.namespace){let _=pc(e.namespace);_>0&&(o+=`
Contains ${_} item${_===1?"":"s"}
`)}break}return(w=e.completion)!=null&&w.info&&typeof e.completion.info=="string"&&(o+=`
${e.completion.info}
`),o+="
",o}function pc(e){return Array.isArray(e)?e.length:typeof e=="object"&&e?"self"in e&&"children"in e?1+pc(e.children):Object.keys(e).length:0}function Qy(e){let{keyword:n,info:i}=e,o='
';if(o+=`
${n.toUpperCase()} keyword
`,o+=`
${i.description}
`,i.syntax&&(o+=`
Syntax: ${i.syntax}
`),i.example&&(o+=`
Example:
${i.example}
`),i.metadata&&typeof i.metadata=="object"&&Object.keys(i.metadata).length>0){o+='"}return o+="
",o}function TE(e){let{tableName:n,columns:i,metadata:o}=e,s='
';if(s+=`
${n} table
`,s+=`
Table with ${i.length} column${i.length===1?"":"s"}
`,i.length>0){s+='
Columns:
';let c=i.slice(0,10);s+=c.map(d=>`${d}`).join(", "),i.length>10&&(s+=`, and ${i.length-10} more...`),s+="
"}if(o&&typeof o=="object"&&Object.keys(o).length>0){s+='"}return s+="
",s}function RE(e){let{tableName:n,columnName:i,schema:o,metadata:s}=e,c='
';c+=`
${i} column
`,c+=`
Column in table ${n}
`;let d=o[n];if(d&&d.length>1){let f=d.filter(p=>p!==i);if(f.length>0){c+=`"}}if(s&&typeof s=="object"&&Object.keys(s).length>0){c+='"}return c+="
",c}const DE={keyword:Qy,table:TE,column:RE,namespace:Ky},Gy=(e="light")=>{let n=e==="dark"?{tooltipBg:"#1f2937",tooltipBorder:"#374151",tooltipText:"#f9fafb",tooltipTypeBg:"#374151",tooltipTypeText:"#9ca3af",tooltipChildren:"#9ca3af",codeBg:"#374151",codeText:"#f3f4f6",strong:"#ffffff",em:"#9ca3af",header:"#ffffff",info:"#d1d5db",related:"#d1d5db",path:"#d1d5db",example:"#d1d5db",columns:"#d1d5db",syntax:"#d1d5db"}:{tooltipBg:"#ffffff",tooltipBorder:"#e5e7eb",tooltipText:"#374151",tooltipTypeBg:"#f3f4f6",tooltipTypeText:"#6b7280",tooltipChildren:"#6b7280",codeBg:"#f9fafb",codeText:"#1f2937",strong:"#111827",em:"#6b7280",header:"#111827",info:"#374151",related:"#374151",path:"#374151",example:"#374151",columns:"#374151",syntax:"#374151"};return Kt.theme({".cm-sql-hover-tooltip":{padding:"8px 12px",backgroundColor:n.tooltipBg,border:`1px solid ${n.tooltipBorder}`,borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",fontSize:"13px",lineHeight:"1.4",maxWidth:"320px",fontFamily:"system-ui, -apple-system, sans-serif",color:n.tooltipText},".cm-sql-hover-tooltip .sql-hover-header":{marginBottom:"6px",display:"flex",alignItems:"center",gap:"6px",color:n.header},".cm-sql-hover-tooltip .sql-hover-type":{fontSize:"11px",padding:"2px 6px",backgroundColor:n.tooltipTypeBg,color:n.tooltipTypeText,borderRadius:"4px",fontWeight:"500"},".cm-sql-hover-tooltip .sql-hover-description":{color:n.info,marginBottom:"8px"},".cm-sql-hover-tooltip .sql-hover-syntax":{marginBottom:"8px",color:n.syntax},".cm-sql-hover-tooltip .sql-hover-example":{marginBottom:"4px",color:n.example},".cm-sql-hover-tooltip .sql-hover-columns":{marginBottom:"4px",color:n.columns},".cm-sql-hover-tooltip .sql-hover-related":{marginBottom:"4px",color:n.related},".cm-sql-hover-tooltip .sql-hover-path":{marginBottom:"4px",color:n.path},".cm-sql-hover-tooltip .sql-hover-info":{marginBottom:"4px",color:n.info},".cm-sql-hover-tooltip .sql-hover-children":{marginBottom:"4px",color:n.tooltipChildren,fontSize:"12px"},".cm-sql-hover-tooltip code":{backgroundColor:n.codeBg,padding:"1px 4px",borderRadius:"3px",fontSize:"12px",fontFamily:"ui-monospace, 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace",color:n.codeText},".cm-sql-hover-tooltip strong":{fontWeight:"600",color:n.strong},".cm-sql-hover-tooltip em":{fontStyle:"italic",color:n.em}})};var OE=class{constructor(e){ke(this,"parser");ke(this,"cache",new Map);ke(this,"MAX_CACHE_SIZE",10);this.parser=e}async analyzeDocument(e){let n=e.doc.toString(),i=this.generateCacheKey(n),o=this.cache.get(i);if(o)return o;let s=await this.extractStatements(n,e);if(this.cache.set(i,s),this.cache.size>this.MAX_CACHE_SIZE){let c=this.cache.keys().next().value;c!==void 0&&this.cache.delete(c)}return s}async getStatementAtPosition(e,n){return(await this.analyzeDocument(e)).find(i=>n>=i.from&&n<=i.to)||null}async getStatementsInRange(e,n,i){return(await this.analyzeDocument(e)).filter(o=>o.from<=i&&o.to>=n)}async extractStatements(e,n){let i=[],o=this.splitByStatementSeparators(e),s=0;for(let c of o){let d=c.trim();if(d.length===0){s+=c.length;continue}let f=s+c.indexOf(d),p=f+d.length,y=n.doc.lineAt(f),w=n.doc.lineAt(p),_=this.stripComments(d);if(_.trim().length===0||_.trim()===";"){s+=c.length;continue}let C=await this.parser.parse(_,{state:n}),E=this.determineStatementType(_),T=_.endsWith(";")?_.slice(0,-1).trim():_.trim();i.push({from:f,to:p,lineFrom:y.number,lineTo:w.number,content:T,type:E,isValid:C.success}),s+=c.length}return i}splitByStatementSeparators(e){let n=[],i="",o=!1,s="",c=!1,d=!1,f=0;for(;fe.state.doc.lines)continue;let C=e.state.doc.line(_);i=i.update({add:[w.range(C.from)]})}catch(C){console.warn("SqlGutter: Invalid line number",_,C)}}}catch(p){console.warn("SqlGutter: Error creating markers",p)}return i}function LE(e){return Kt.updateListener.of(async n=>{if(!n.docChanged&&!n.selectionSet&&!n.focusChanged)return;let{state:i}=n.view,{main:o}=i.selection,s=o.head,c=await e.analyzeDocument(i),d={currentStatement:await e.getStatementAtPosition(i,s),allStatements:c,cursorPosition:s,isFocused:n.view.hasFocus};n.view.dispatch({effects:Jy.of(d)})})}function NE(e){let n=e.width||3;return Kt.baseTheme({".cm-sql-gutter":{width:`${n}px`,minWidth:`${n}px`},".cm-sql-gutter .cm-gutterElement":{width:`${n}px`,padding:"0",margin:"0"},".cm-sql-gutter-marker":{width:"100%",height:"100%",display:"block"},".cm-lineNumbers .cm-gutterElement":{paddingLeft:"8px",paddingRight:"8px"}})}function IE(e){return N4({class:`cm-sql-gutter ${e.className||""}`,markers:n=>ME(n,e)})}function AE(e={}){return[Xy,LE(new OE(e.parser||new dc)),NE(e),IE(e)]}function qE(e={}){let n=[],{enableLinting:i=!0,enableGutterMarkers:o=!0,enableHover:s=!0,linterConfig:c,gutterConfig:d,hoverConfig:f}=e;return i&&n.push(kE(c)),o&&n.push(AE(d)),s&&(n.push(EE(f)),f!=null&&f.theme?n.push(f.theme):n.push(Gy())),n}var jE=class xx{static jsonStringifySortKeys(){return n=>typeof n!="object"||!n?String(n):JSON.stringify(n,Object.keys(n).sort(),2)}constructor(n,i={}){this.delegate=n,this.toKey=i.toKey??xx.jsonStringifySortKeys(),this.cache=new Ps(i.maxSize??128)}request(n){let i=this.toKey(n),o=this.cache.get(i);if(o!==void 0)return o;let s=this.delegate.request(n);return this.cache.set(i,s),s.catch(c=>{throw this.cache.delete(i),c})}resolve(n,i){this.delegate.resolve(n,i)}reject(n,i){this.delegate.reject(n,i)}};Hw=new Iu("sql-table-preview",async(e,n)=>{await Hi().previewSQLTable({requestId:e,...n})}),zw=new Iu("sql-table-list-preview",async(e,n)=>{await Hi().previewSQLTableList({requestId:e,...n})}),Gh=new jE(new Iu("validate-sql",async(e,n)=>{await Hi().validateSQL({requestId:e,...n})}),{maxSize:3});var zE=Gr();let Va;Va=ze(new Map),r_=e=>{let n=(0,zE.c)(3),i=Yn(Va),o;return n[0]!==e||n[1]!==i?(o=i.get(e),n[0]=e,n[1]=i,n[2]=o):o=n[2],o};function Yy(e){let n=lt.get(Va),i=new Map(n);i.delete(e),lt.set(Va,i)}function FE(){lt.set(Va,new Map)}function BE({cellId:e,errorMessage:n,dialect:i}){let o=lt.get(Va),s=new Map(o),c=i==="DuckDB"?HE(n):Zy(n);s.set(e,c),lt.set(Va,s)}function HE(e){let{errorType:n,errorMessage:i}=Zy(e),o=i,s,c=i.indexOf("LINE ");return c!==-1&&(s=i.slice(Math.max(0,c)).trim(),o=i.slice(0,Math.max(0,c)).trim()),{errorType:n,errorMessage:o,codeblock:s}}function Zy(e){return{errorType:e.split(":")[0].trim(),errorMessage:e.split(":").slice(1).join(":").trim()}}function ev(e){return e.field(di)}function VE(){return e=>{let n=ev(e.state).engine,i=Fa.getCompletionSource(n);return i&&fD(i)(e)||null}}function $E(){return e=>{let n=ev(e.state).engine,i=Fa.getDialect(n);return e.matchBefore(/\.\w*/)?null:vD(i,!0,(o,s)=>({label:o,type:s,info:async()=>{let c=(await WE())[o.toLocaleLowerCase()];if(!c)return null;let d=document.createElement("div");return d.innerHTML=DE.keyword({keyword:o,info:c}),d}}))(e)}}var WE=ui(async()=>{let e=await ce(()=>import("./common-keywords-15xBKau4.js").then(async i=>(await i.__tla,i)),[],import.meta.url),n=await ce(()=>import("./duckdb-keywords-CYQ5DEZJ.js").then(async i=>(await i.__tla,i)),[],import.meta.url);return{...e.default.keywords,...n.default.keywords}}),UE=Gr(),tv=$l("marimo:notebook-sql-mode","default",Wl);function KE(){let e=(0,UE.c)(3),[n,i]=Y2(tv),o;return e[0]!==i||e[1]!==n?(o={sqlMode:n,setSQLMode:i},e[0]=i,e[1]=n,e[2]=o):o=e[2],o}function nv(){return lt.get(tv)}var QE=Eg,GE="DuckDB",rv=new Mu;function uf(){return lt.get(So).latestEngineSelected}let iv;pd=(_f=class{constructor(){ke(this,"parser",new ny);ke(this,"type","sql");this.sqlModeEnabled=!0}get defaultMetadata(){return{...this.parser.defaultMetadata,engine:uf()||"__marimo_duckdb"}}get defaultCode(){let e=uf();return e&&e!=="__marimo_duckdb"?`_df = mo.sql(f"""SELECT * FROM """, engine=${e})`:this.parser.defaultCode}transformIn(e){this.parser.defaultMetadata.engine=uf()||"__marimo_duckdb";let n=this.parser.transformIn(e),i=n.metadata;return i.engine&&i.engine!=="__marimo_duckdb"&&Dg(i.engine),[n.code,n.offset,i]}transformOut(e,n){let i=this.parser.transformOut(e,n);return[i.code,i.offset]}isSupported(e){return this.parser.isSupported(e)}getExtension(e,n,i,o,s){var d;let c=[rv.of(Cw({dialect:QE})),Ra.of([{key:"Tab",run:f=>sD(f)||$4(f),preventDefault:!0}]),Nu({defaultKeymap:!1,activateOnTyping:!0,override:[VE(),WC,$E()]})];if(((d=s==null?void 0:s.diagnostics)==null?void 0:d.sql_linter)??!1){let f=lt.get(AD),p=new iv({getParserOptions:y=>({database:ov(y)??GE})});c.push(qE({enableLinting:!0,linterConfig:{delay:250,parser:p},enableGutterMarkers:!0,gutterConfig:{backgroundColor:"#3b82f6",errorBackgroundColor:"#ef4444",hideWhenNotFocused:!0,parser:p},hoverConfig:{schema:YE,hoverTime:300,enableKeywords:!0,enableTables:!0,enableColumns:!0,parser:p,theme:Gy(f)}}),Kt.updateListener.of(y=>{y.focusChanged&&p.setFocusState(y.view.hasFocus)}))}return this.sqlModeEnabled&&c.push(e3()),c}},ke(_f,"fromQuery",e=>ny.fromQuery(e)),_f),iv=class extends dc{constructor(){super(...arguments);ke(this,"validationTimeout",null);ke(this,"VALIDATION_DELAY_MS",300);ke(this,"isFocused",!1)}setFocusState(n){this.isFocused=n}async validateWithDelay(n,i,o){return this.validationTimeout&&window.clearTimeout(this.validationTimeout),new Promise(s=>{this.validationTimeout=window.setTimeout(async()=>{var c;if(!this.isFocused){s([]);return}try{let d=await lv(n,i,o,nv());if(d.error){Re.error("Failed to validate SQL",{error:d.error}),s([]);return}s(((c=d.parse_result)==null?void 0:c.errors)??[])}catch(d){Re.error("Failed to validate SQL",{error:d}),s([])}},this.VALIDATION_DELAY_MS)})}async validateSql(n,i){let o=Fo(i.state);if(!this.isFocused)return[];if(!ko.has(o.engine))return super.validateSql(n,i);let s=ov(i.state);return this.validateWithDelay(n,o.engine,s)}async parse(n,i){return Fo(i.state).engine==="__marimo_duckdb"?{success:!0,errors:[]}:super.parse(n,i)}};function av(e,n){e.dispatch({effects:rv.reconfigure(Cw({dialect:n}))})}function JE(e,n){av(e,Fa.getDialect(n))}function XE(e){let n=Fo(e.state).engine;av(e,Fa.getDialect(n))}function Fo(e){return e.field(di)}function YE(e){let n=Fo(e.state).engine,i=Fa.getCompletionSource(n);return i!=null&&i.schema?i.schema:{}}function ov(e){let n=Fo(e).engine;return sv(n)}function sv(e){var i;let n=(i=Fa.getInternalDialect(e))==null?void 0:i.toLowerCase();if(!n||!ic(n))return null;switch(n){case"postgresql":case"postgres":return"PostgreSQL";case"db2":case"db2i":return"DB2";case"mysql":return"MySQL";case"sqlite":return"Sqlite";case"mssql":case"sqlserver":case"microsoft sql server":return"TransactSQL";case"duckdb":return"DuckDB";case"mariadb":return"MariaDB";case"cassandra":return"Noql";case"athena":case"awsathena":return"Athena";case"bigquery":return"BigQuery";case"hive":return"Hive";case"redshift":return"Redshift";case"snowflake":return"Snowflake";case"flink":return"FlinkSQL";case"mongodb":case"noql":return"Noql";case"oracle":case"oracledb":case"timescaledb":case"couchbase":case"trino":case"tidb":case"singlestoredb":case"spark":case"databricks":case"datafusion":return Re.debug("Unsupported dialect",{dialect:n}),null;default:return _s(n),null}}var ZE=300;function e3(){let e,n=null;return Kt.updateListener.of(i=>{if(!i.docChanged)return;let o=nv();if(o==="default")return;let s=Fo(i.state).engine;if(!ko.has(s))return;let c=i.state.doc.toString();e&&window.clearTimeout(e),e=window.setTimeout(async()=>{if(n===c)return;n=c;let d=i.view.state.facet(Wi);if(c===""){Yy(d);return}try{let f=sv(s),p=(await lv(c,s,f,o)).validate_result;p!=null&&p.error_message?BE({cellId:d,errorMessage:p.error_message,dialect:f}):Yy(d)}catch(f){Re.error("Failed to validate SQL",{error:f})}},ZE)})}async function lv(e,n,i,o){let s=await Gh.request({onlyParse:o==="default",engine:n,dialect:i,query:e});if(s.error)throw Error(s.error);return s}var t3=ui(()=>new mE),n3=ui(()=>new id),r3=ui(()=>new pd);gr={get python(){return t3()},get markdown(){return n3()},get sql(){return r3()}};function i3(){return Object.values(gr)}var jt=vh(Du(),1),hc="Checkbox",[a3,WD]=qD(hc),[o3,df]=a3(hc);function s3(e){let{__scopeCheckbox:n,checked:i,children:o,defaultChecked:s,disabled:c,form:d,name:f,onCheckedChange:p,required:y,value:w="on",internal_do_not_use_render:_}=e,[C,E]=jD({prop:i,defaultProp:s??!1,onChange:p,caller:hc}),[T,P]=jt.useState(null),[V,$]=jt.useState(null),B=jt.useRef(!1),I=T?!!d||!!T.closest("form"):!0,Q={checked:C,disabled:c,setChecked:E,control:T,setControl:P,name:f,form:d,value:w,hasConsumerStoppedPropagationRef:B,required:y,defaultChecked:Zi(s)?!1:s,isFormControl:I,bubbleInput:V,setBubbleInput:$};return(0,F.jsx)(o3,{scope:n,...Q,children:l3(_)?_(Q):o})}var cv="CheckboxTrigger",uv=jt.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:i,...o},s)=>{let{control:c,value:d,disabled:f,checked:p,required:y,setControl:w,setChecked:_,hasConsumerStoppedPropagationRef:C,isFormControl:E,bubbleInput:T}=df(cv,e),P=aw(s,w),V=jt.useRef(p);return jt.useEffect(()=>{let $=c==null?void 0:c.form;if($){let B=()=>_(V.current);return $.addEventListener("reset",B),()=>$.removeEventListener("reset",B)}},[c,_]),(0,F.jsx)(Ph.button,{type:"button",role:"checkbox","aria-checked":Zi(p)?"mixed":p,"aria-required":y,"data-state":mv(p),"data-disabled":f?"":void 0,disabled:f,value:d,...o,ref:P,onKeyDown:Dw(n,$=>{$.key==="Enter"&&$.preventDefault()}),onClick:Dw(i,$=>{_(B=>Zi(B)?!0:!B),T&&E&&(C.current=$.isPropagationStopped(),C.current||$.stopPropagation())})})});uv.displayName=cv;var ff=jt.forwardRef((e,n)=>{let{__scopeCheckbox:i,name:o,checked:s,defaultChecked:c,required:d,disabled:f,value:p,onCheckedChange:y,form:w,..._}=e;return(0,F.jsx)(s3,{__scopeCheckbox:i,checked:s,defaultChecked:c,disabled:f,required:d,onCheckedChange:y,name:o,form:w,value:p,internal_do_not_use_render:({isFormControl:C})=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(uv,{..._,ref:n,__scopeCheckbox:i}),C&&(0,F.jsx)(hv,{__scopeCheckbox:i})]})})});ff.displayName=hc;var dv="CheckboxIndicator",fv=jt.forwardRef((e,n)=>{let{__scopeCheckbox:i,forceMount:o,...s}=e,c=df(dv,i);return(0,F.jsx)(zD,{present:o||Zi(c.checked)||c.checked===!0,children:(0,F.jsx)(Ph.span,{"data-state":mv(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...e.style}})})});fv.displayName=dv;var pv="CheckboxBubbleInput",hv=jt.forwardRef(({__scopeCheckbox:e,...n},i)=>{let{control:o,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:d,required:f,disabled:p,name:y,value:w,form:_,bubbleInput:C,setBubbleInput:E}=df(pv,e),T=aw(i,E),P=xD(c),V=FD(o);jt.useEffect(()=>{let B=C;if(!B)return;let I=window.HTMLInputElement.prototype,Q=Object.getOwnPropertyDescriptor(I,"checked").set,pe=!s.current;if(P!==c&&Q){let M=new Event("click",{bubbles:pe});B.indeterminate=Zi(c),Q.call(B,Zi(c)?!1:c),B.dispatchEvent(M)}},[C,P,c,s]);let $=jt.useRef(Zi(c)?!1:c);return(0,F.jsx)(Ph.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??$.current,required:f,disabled:p,name:y,value:w,form:_,...n,tabIndex:-1,ref:T,style:{...n.style,...V,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});hv.displayName=pv;function l3(e){return typeof e=="function"}function Zi(e){return e==="indeterminate"}function mv(e){return Zi(e)?"indeterminate":e?"checked":"unchecked"}let gv;gv=Gr(),Hl=jt.forwardRef((e,n)=>{let i=(0,gv.c)(10),o,s;i[0]===e?(o=i[1],s=i[2]):({className:o,...s}=e,i[0]=e,i[1]=o,i[2]=s);let c;i[3]===o?c=i[4]:(c=Ou("flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",o),i[3]=o,i[4]=c);let d;i[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,F.jsx)(fv,{className:Ou("flex items-center justify-center text-current max-h-[14px] overflow-hidden"),children:(0,F.jsx)(bD,{className:"h-4 w-4"})}),i[5]=d):d=i[5];let f;return i[6]!==s||i[7]!==n||i[8]!==c?(f=(0,F.jsx)(ff,{ref:n,className:c,...s,children:d}),i[6]=s,i[7]=n,i[8]=c,i[9]=f):f=i[9],f}),Hl.displayName=ff.displayName,h_="_";var c3=new Set("__*.marimo.app.False.None.True.__peg_parser__.and.as.assert.async.await.break.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.nonlocal.not.or.pass.raise.return.try.while.with.yield.None.setup".split("."));Lm=function(e,n=!0){return e=e.trim(),e?(/^\d/.test(e)&&(e=`_${e}`),e=e.replaceAll(/\W/g,"_"),n?e.toLowerCase():e):"_"},mx=function(e,n){let i=new Set(n),o=e,s=d=>!i.has(d)&&!c3.has(d);if(s(e))return e;let c=1;for(;!s(o);)o=`${e}_${c}`,c++;return o},cx=function(e,n){return hm(e)?`cell-${n}`:e},hm=function(e){return e?e==="_"||e==="__":!0};var u3=Gr();function d3(e){let n=(0,u3.c)(15),{minWidth:i,padding:o}=e,s=i===void 0?70:i,c=o===void 0?15:o,[d,f]=(0,jt.useState)(50),p=(0,jt.useRef)(null),y=(0,jt.useRef)(null),w;n[0]===c?w=n[1]:(w=M=>{if(y.current&&p.current){let A=y.current;A.style.fontSize=window.getComputedStyle(p.current).fontSize,A.style.fontFamily=window.getComputedStyle(p.current).fontFamily,A.textContent=M;let W=A.offsetWidth;f(W+c)}},n[0]=c,n[1]=w);let _=w,C;n[2]===_?C=n[3]:(C=()=>{var M;_(((M=p.current)==null?void 0:M.value)??"")},n[2]=_,n[3]=C),p4(C);let E;n[4]===_?E=n[5]:(E=M=>{_(M.target.value)},n[4]=_,n[5]=E);let T=`${d}px`,P=`${s}px`,V;n[6]!==T||n[7]!==P?(V={width:T,minWidth:P},n[6]=T,n[7]=P,n[8]=V):V=n[8];let $;n[9]!==E||n[10]!==V?($={ref:p,type:"text",onChange:E,style:V},n[9]=E,n[10]=V,n[11]=$):$=n[11];let B=$,I;n[12]===Symbol.for("react.memo_cache_sentinel")?(I={ref:y,style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"}},n[12]=I):I=n[12];let Q=I,pe;return n[13]===B?pe=n[14]:(pe={inputProps:B,spanProps:Q},n[13]=B,n[14]=pe),pe}var f3=Gr();function p3({currentQuotePrefix:e,checked:n,prefix:i}){let o=e;return n?e===""?o=i:e!=="rf"&&i!==e&&(o="rf"):e===i?o="":e==="rf"&&(o=i==="r"?"f":"r"),o}let yv;yv=()=>{let e=(0,f3.c)(2),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,F.jsxs)("section",{className:"flex flex-col gap-0.5",children:[(0,F.jsxs)("header",{className:"flex items-center gap-1",children:[(0,F.jsx)("code",{className:"text-xs px-1 py-0.5 bg-(--slate-2) rounded",children:"r"}),(0,F.jsx)("span",{className:"font-semibold",children:"Raw String"})]}),(0,F.jsx)("p",{className:"text-sm text-muted-foreground",children:"Write LaTeX without escaping special characters"}),(0,F.jsx)("pre",{className:"text-xs bg-(--slate-2) p-2 rounded",children:"\\alpha \\beta"})]}),e[0]=n):n=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,F.jsxs)("div",{className:"flex flex-col gap-3.5",children:[n,(0,F.jsxs)("section",{className:"flex flex-col gap-0.5",children:[(0,F.jsxs)("header",{className:"flex items-center gap-1",children:[(0,F.jsx)("code",{className:"text-xs px-1 py-0.5 bg-(--slate-2) rounded",children:"f"}),(0,F.jsx)("span",{className:"font-semibold",children:"Format String"})]}),(0,F.jsx)("p",{className:"text-sm text-muted-foreground",children:"Interpolate Python values"}),(0,F.jsxs)("pre",{className:"text-xs bg-(--slate-2) p-2 rounded",children:["Hello ","{name}","! \u{1F601}"]})]})]}),e[1]=i):i=e[1],i},Tm="data-cell-id",D_=function(e){return{[Tm]:e}},xm="data-for-cell-id",ed=function(e){return{[xm]:e}};var h3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClickHouse%3c/title%3e%3cpath%20d='M21.333%2010H24v4h-2.667ZM16%201.335h2.667v21.33H16Zm-5.333%200h2.666v21.33h-2.666ZM0%2022.665V1.335h2.667v21.33zm5.333-21.33H8v21.33H5.333Z'/%3e%3c/svg%3e",m3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDatabricks%3c/title%3e%3cpath%20d='M.95%2014.184L12%2020.403l9.919-5.55v2.21L12%2022.662l-10.484-5.96-.565.308v.77L12%2024l11.05-6.218v-4.317l-.515-.309L12%2019.118l-9.867-5.653v-2.21L12%2016.805l11.05-6.218V6.32l-.515-.308L12%2011.974%202.647%206.681%2012%201.388l7.76%204.368.668-.411v-.566L12%200%20.95%206.27v.72L12%2013.207l9.919-5.55v2.26L12%2015.52%201.516%209.56l-.565.308Z'/%3e%3c/svg%3e",g3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAGcElEQVR4nNxZa2wcVxU+99557M6+vLazj6xjO6+maWVTl0YpLU1DU9KARNqooQhFVYJUqUWgiocqIVRESPlRoEhIqYoqgSiCItqQPkAEKUWQtlGSJtAY00R5mTjZTfze94x3HvdedMdZnKgS6s7O2kk/a7R3xvY933fOd874yhhucCyYAIWA9IOH2r+35/HUnjU96sBC8fAERQLpj0+mXjdeXM6rzy/no88uK6zolHu97EX8p/f/IWHAv38i9bsH+kIPo/ozhAJBgpR9J419je437xb62Zc7n/tcf+gRsebADYQAxLW2N/ApL/vNq4AdA7Ht2/piT4q15fAp1wEYAGEALYA18TzT1TXQ09O75qPuKbWS8NW4Lan27/pM4gWrBIgFnaIDvKZIpPPKt+nlgpMTi0q5PKqoqvZR950XAREZaz/fmHmFOFijwGHkDDu5PKGs1SlQ5gAAQ+S9U9Y/xM+Wy+WxRvaeFwE770z+OBNQbmYWwPlp63BPh3q7XQaCxAi50gP7Tldf87J3ywVszEQ2bumOf5WZAAajeWoDJjYOMM5BCECEw9miefxwduaol/1b2sQdCon/8BOZX3ETYWYiODFhvrNUC6ylFgJqzl27DxV+xD3GaGkFnl6deS4G8mJqAmRrtaGkoqxiJnazPpt9gPNVa3DvqfKrXmO0rAJ3RSLrHojHd4jMMwvBSMn+d1pSVrv37oXdz50Hx79JOXgtQGsqIAEiT8V7djtVzEiQ4w+K+t9uCmn3uNmX5rL/l8ullw5c1g80E6slFXgkuuixJVKw3y5jxEzExnV7pB3k7rr3hZDBiZl3njk+9u1mY/legSgm0cfiXbtcTziYHJmovNEXC99PZzAV41KMzaLtXGBVmaQltWfCdPLNxPNdwFdii58KYykhXM2AO5MGvTSAgw9aLnUx8zlomCxTKdeHdP14s/F8tdAiIie2RpPfAPcPNYAjRumNOwLRLZwL2rPgHAGnCF6aHPuJ5869Cr5WYFs0/S0ZkTDns9SK1BltI/JicYcEcXAX8L5R+vOblanf+hHTNwFtWGr7QiT9BAPklnWoVt5/qxrZILQI7wvyjHPrjKkfeL0y9QID76Pzavhmoa3RzNdkLMcYEKCA4aJtncjIgVs4oFnbCCGASDtRVrw3Uz7sV1xfBKiAlc2RJV+vkz9vWYMZWesTa1ER5vYEgot27YPvjJ/dXGBOwY+44JeAdaHkQxpRU9QVQGDIrPz1FjV+f/3eFcaRFcdKosicsh8x6/ClBzaEu7YLoqJNDUonVKR0UCTuRT9w9wshpAzb+qmcY2b9iFlH0xVow0r81sCiz9azfdCY3rNWSzw8a5/ZZ2ItPv9UmfiFP7Tn0HQFPhlMbuKIyOKkhThjNc4rBCtRJl5jrvO5W4mSY+beMib/4A/tOTQtYCCY2kTdszmHE7X8/tWBTtf7s7S528IYELxcuviMycWZzF80baHVgdT6/00fu3oso7Tdwa5Ypt7Aw5Zx7M1K7pf+UL4WTVWgQwqnQ5LWLexTpfblEFaT7Jrsc3GMLDw7+a9tFDj1j/YcmqpAWkn06yhERaYP6ZdeHtC6tl6deYPx4q7xY5+/YFfP+kf5WniqQELp6J6hNaNdia8s4TCojkmrjOYVHGin7qsLQdYqvb976uijk455yX/ac/AkYNLKZx9Nb/kNQkAsLJNBW9+/Uk3eJzI/ZlUG36qcfv6MXf3nmtjtO/ZO/v27/tOeA/L6iyu0pfdu7/riATF93s0fffq+toGdM5zmJ+ziuRgJpWSEgy/mXlk/Zk2f8ZfytfDcxOeM828XHH04TAIJjOTgDAlIiPNEmgQTw9Xh146UBn/aavLgVUAmkLk5IkdXFh09l62NHloaWblZjFGMONjMrsTUjqV5qzjuP90Pw9MUmrKms/2x276U0pbcO2Hlh9qUzj6GMJiclk/q5/b+Ovfqg+P29LD/dD+MhnsgSMLhnlDvPQVrOrcmfufjF2cuvI0BqVlj5GDBKmQZsJbMe9+BAZP1yU3fF+tloVV3LzSfhtEbXrWhO7Ri3ULz8PwmzoRXfTqr/+ddf+k0Dk8CEGBMOWccmC8H82bgSUAmfNO6S/q5Bc8+eBUQDXWtz1VP36gCMC4xnfPrZFw2/I9uLZi6u2aXs7ZdGWkNpcbQcAU0LX2XYYxeF/YBLwIYs0twndjnY4H/BgAA//95CrBYRwImwgAAAABJRU5ErkJggg==",y3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eDuckDB%3c/title%3e%3cpath%20d='M12%200C5.363%200%200%205.363%200%2012s5.363%2012%2012%2012%2012-5.363%2012-12S18.637%200%2012%200zM9.502%207.03a4.974%204.974%200%200%201%204.97%204.97%204.974%204.974%200%200%201-4.97%204.97A4.974%204.974%200%200%201%204.532%2012a4.974%204.974%200%200%201%204.97-4.97zm6.563%203.183h2.351c.98%200%201.787.782%201.787%201.762s-.807%201.789-1.787%201.789h-2.351v-3.551z'/%3e%3c/svg%3e",v3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eGoogle%20BigQuery%3c/title%3e%3cpath%20d='M5.676%2010.595h2.052v5.244a5.892%205.892%200%200%201-2.052-2.088v-3.156zm18.179%2010.836a.504.504%200%200%201%200%20.708l-1.716%201.716a.504.504%200%200%201-.708%200l-4.248-4.248a.206.206%200%200%201-.007-.007c-.02-.02-.028-.045-.043-.066a10.736%2010.736%200%200%201-6.334%202.065C4.835%2021.599%200%2016.764%200%2010.799S4.835%200%2010.8%200s10.799%204.835%2010.799%2010.8c0%202.369-.772%204.553-2.066%206.333.025.017.052.028.074.05l4.248%204.248zm-5.028-10.632a8.015%208.015%200%201%200-8.028%208.028h.024a8.016%208.016%200%200%200%208.004-8.028zm-4.86%204.98a6.002%206.002%200%200%200%202.04-2.184v-1.764h-2.04v3.948zm-4.5.948c.442.057.887.08%201.332.072.4.025.8.025%201.2%200V7.692H9.468v9.035z'/%3e%3c/svg%3e",b3=""+new URL("iceberg-COKYXo-A.png",import.meta.url).href,w3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMotherDuck%3c/title%3e%3cg%20transform='scale(0.85)%20translate(0,%202)'%3e%3cpath%20fill='%23ff9538'%20d='M1.71%2015.86s7.45%205.32%207.89%205.59c.44.27%201.08.33%201.64.11.56-.22.98-.71%201.11-1.21s1.85-9.49%201.85-9.49c.02-.12.07-.48-.13-.83-.27-.47-.86-.71-1.38-.57-.42.12-.64.44-.7.55-.09.17-.26.45-.57.7-.24.19-.47.3-.58.34-.96.38-2.02.06-2.61-.72-.38-.48-1.04-.67-1.64-.43-.6.24-.94.84-.89%201.45.11.98-.44%201.94-1.4%202.32-.51.21-1.06.21-1.54.05-.12-.03-.51-.12-.89.09-.48.26-.74.84-.61%201.37.09.39.38.62.48.69z'%20/%3e%3cpath%20fill='%23ff9538'%20d='M14.12%204.21s2.65%208.76%202.83%209.24c.19.48.66.92%201.23%201.09.58.16%201.21.03%201.62-.28.41-.31%207.25-6.39%207.25-6.39.09-.08.35-.34.4-.74.07-.53-.25-1.09-.75-1.29-.4-.16-.78-.04-.89%200-.18.08-.48.2-.88.2-.3.01-.55-.05-.67-.08-.99-.28-1.64-1.18-1.63-2.16-.01-.61-.42-1.17-1.04-1.35-.62-.18-1.26.09-1.59.6-.51.84-1.53%201.27-2.52.99-.53-.15-.96-.48-1.25-.91-.07-.09-.33-.4-.76-.48-.54-.09-1.1.22-1.32.71-.16.37-.08.72-.04.84z'%20/%3e%3c/g%3e%3c/svg%3e",_3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eMySQL%3c/title%3e%3cpath%20d='M16.405%205.501c-.115%200-.193.014-.274.033v.013h.014c.054.104.146.18.214.273.054.107.1.214.154.32l.014-.015c.094-.066.14-.172.14-.333-.04-.047-.046-.094-.08-.14-.04-.067-.126-.1-.18-.153zM5.77%2018.695h-.927a50.854%2050.854%200%2000-.27-4.41h-.008l-1.41%204.41H2.45l-1.4-4.41h-.01a72.892%2072.892%200%2000-.195%204.41H0c.055-1.966.192-3.81.41-5.53h1.15l1.335%204.064h.008l1.347-4.064h1.095c.242%202.015.384%203.86.428%205.53zm4.017-4.08c-.378%202.045-.876%203.533-1.492%204.46-.482.716-1.01%201.073-1.583%201.073-.153%200-.34-.046-.566-.138v-.494c.11.017.24.026.386.026.268%200%20.483-.075.647-.222.197-.18.295-.382.295-.605%200-.155-.077-.47-.23-.944L6.23%2014.615h.91l.727%202.36c.164.536.233.91.205%201.123.4-1.064.678-2.227.835-3.483zm12.325%204.08h-2.63v-5.53h.885v4.85h1.745zm-3.32.135l-1.016-.5c.09-.076.177-.158.255-.25.433-.506.648-1.258.648-2.253%200-1.83-.718-2.746-2.155-2.746-.704%200-1.254.232-1.65.697-.43.508-.646%201.256-.646%202.245%200%20.972.19%201.686.574%202.14.35.41.877.615%201.583.615.264%200%20.506-.033.725-.098l1.325.772.36-.622zM15.5%2017.588c-.225-.36-.337-.94-.337-1.736%200-1.393.424-2.09%201.27-2.09.443%200%20.77.167.977.5.224.362.336.936.336%201.723%200%201.404-.424%202.108-1.27%202.108-.445%200-.77-.167-.978-.5zm-1.658-.425c0%20.47-.172.856-.516%201.156-.344.3-.803.45-1.384.45-.543%200-1.064-.172-1.573-.515l.237-.476c.438.22.833.328%201.19.328.332%200%20.593-.073.783-.22a.754.754%200%2000.3-.615c0-.33-.23-.61-.648-.845-.388-.213-1.163-.657-1.163-.657-.422-.307-.632-.636-.632-1.177%200-.45.157-.81.47-1.085.315-.278.72-.415%201.22-.415.512%200%20.98.136%201.4.41l-.213.476a2.726%202.726%200%2000-1.064-.23c-.283%200-.502.068-.654.206a.685.685%200%2000-.248.524c0%20.328.234.61.666.85.393.215%201.187.67%201.187.67.433.305.648.63.648%201.168zm9.382-5.852c-.535-.014-.95.04-1.297.188-.1.04-.26.04-.274.167.055.053.063.14.11.214.08.134.218.313.346.407.14.11.28.216.427.31.26.16.555.255.81.416.145.094.293.213.44.313.073.05.12.14.214.172v-.02c-.046-.06-.06-.147-.105-.214-.067-.067-.134-.127-.2-.193a3.223%203.223%200%2000-.695-.675c-.214-.146-.682-.35-.77-.595l-.013-.014c.146-.013.32-.066.46-.106.227-.06.435-.047.67-.106.106-.027.213-.06.32-.094v-.06c-.12-.12-.21-.283-.334-.395a8.867%208.867%200%2000-1.104-.823c-.21-.134-.476-.22-.697-.334-.08-.04-.214-.06-.26-.127-.12-.146-.19-.34-.275-.514a17.69%2017.69%200%2001-.547-1.163c-.12-.262-.193-.523-.34-.763-.69-1.137-1.437-1.826-2.586-2.5-.247-.14-.543-.2-.856-.274-.167-.008-.334-.02-.5-.027-.11-.047-.216-.174-.31-.235-.38-.24-1.364-.76-1.644-.072-.18.434.267.862.422%201.082.115.153.26.328.34.5.047.116.06.235.107.356.106.294.207.622.347.897.073.14.153.287.247.413.054.073.146.107.167.227-.094.136-.1.334-.154.5-.24.757-.146%201.693.194%202.25.107.166.362.534.703.393.3-.12.234-.5.32-.835.02-.08.007-.133.048-.187v.015c.094.188.188.367.274.555.206.328.566.668.867.895.16.12.287.328.487.402v-.02h-.015c-.043-.058-.1-.086-.154-.133a3.445%203.445%200%2001-.35-.4%208.76%208.76%200%2001-.747-1.218c-.11-.21-.202-.436-.29-.643-.04-.08-.04-.2-.107-.24-.1.146-.247.273-.32.453-.127.288-.14.642-.188%201.01-.027.007-.014%200-.027.014-.214-.052-.287-.274-.367-.46-.2-.475-.233-1.238-.06-1.785.047-.14.247-.582.167-.716-.042-.127-.174-.2-.247-.303a2.478%202.478%200%2001-.24-.427c-.16-.374-.24-.788-.414-1.162-.08-.173-.22-.354-.334-.513-.127-.18-.267-.307-.368-.52-.033-.073-.08-.194-.027-.274.014-.054.042-.075.094-.09.088-.072.335.022.422.062.247.1.455.194.662.334.094.066.195.193.315.226h.14c.214.047.455.014.655.073.355.114.675.28.962.46a5.953%205.953%200%20012.085%202.286c.08.154.115.295.188.455.14.33.313.663.455.982.14.315.275.636.476.897.1.14.502.213.682.286.133.06.34.115.46.188.23.14.454.3.67.454.11.076.443.243.463.378z'/%3e%3c/svg%3e",vv=""+new URL("postgresql-q8VEBKGg.svg",import.meta.url).href,x3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eAmazon%20Redshift%3c/title%3e%3cpath%20d='M16.639%209.932a.822.822%200%200%201-.822-.82.823.823%200%200%201%201.645%200c0%20.452-.37.82-.823.82m-2.086%204.994a.823.823%200%200%201-.822-.822.822.822%200%200%201%201.645%200%20.822.822%200%200%201-.823.822m-5.004-.833a.822.822%200%201%201%20.002-1.644.822.822%200%200%201-.002%201.644m-2.083%204.578a.823.823%200%200%201-.823-.82.823.823%200%200%201%201.645%200c0%20.452-.37.82-.822.82m9.173-11.236a1.68%201.68%200%200%200-1.68%201.676c0%20.566.285%201.066.718%201.37l-.782%201.982a1.674%201.674%200%200%200-1.923%201.104l-1.753-.398a1.675%201.675%200%200%200-3.348.103c0%20.432.169.823.438%201.12l-.764%201.79c-.028-.001-.053-.008-.08-.008a1.68%201.68%200%200%200-1.68%201.676%201.68%201.68%200%200%200%203.36%200c0-.593-.312-1.112-.778-1.41l.674-1.579c.161.052.33.088.508.088.661%200%201.228-.386%201.502-.94l1.856.42a1.68%201.68%200%200%200%203.327-.325c0-.5-.224-.943-.574-1.25l.822-2.083c.053.005.104.016.157.016a1.68%201.68%200%200%200%201.68-1.676%201.68%201.68%200%200%200-1.68-1.676M12%2023.145c-4.17%200-7.286-1.252-7.286-2.37V4.79C6.14%205.938%209.131%206.547%2012%206.547c2.869%200%205.86-.609%207.286-1.756v15.983c0%201.12-3.116%202.37-7.286%202.37M12%20.856c4.293%200%207.286%201.274%207.286%202.419%200%201.143-2.993%202.418-7.286%202.418-4.293%200-7.286-1.275-7.286-2.418C4.714%202.129%207.707.855%2012%20.855m8.143%202.419C20.143%201.147%2015.947%200%2012%200%208.052%200%203.857%201.147%203.857%203.274l.002.01h-.002v17.49C3.857%2022.87%208.052%2024%2012%2024c3.947%200%208.143-1.13%208.143-3.226V3.284h-.002l.002-.01'/%3e%3c/svg%3e",k3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eSnowflake%3c/title%3e%3cpath%20d='M24%203.459c0%20.646-.418%201.18-1.141%201.18-.723%200-1.142-.534-1.142-1.18%200-.647.419-1.18%201.142-1.18.723%200%201.141.533%201.141%201.18zm-.228%200c0-.533-.38-.951-.913-.951s-.913.38-.913.95c0%20.533.38.952.913.952.57%200%20.913-.419.913-.951zm-1.37-.533h.495c.266%200%20.456.152.456.38%200%20.153-.076.229-.19.305l.19.266v.038h-.266l-.19-.266h-.229v.266h-.266zm.495.228h-.229v.267h.229c.114%200%20.152-.038.152-.114.038-.077-.038-.153-.152-.153zM7.602%2012.4c.038-.151.076-.304.076-.456%200-.114-.038-.228-.038-.342-.114-.343-.304-.647-.646-.838l-4.87-2.777c-.685-.38-1.56-.152-1.94.533-.381.685-.153%201.56.532%201.94l2.701%201.56-2.701%201.56c-.685.38-.913%201.256-.533%201.94.38.685%201.256.914%201.94.533l4.832-2.777c.343-.267.571-.533.647-.876zm1.332%202.626c-.266-.038-.57.038-.837.19l-4.832%202.777c-.685.38-.913%201.256-.532%201.94.38.686%201.255.914%201.94.533l2.701-1.56v3.12c0%20.8.647%201.408%201.446%201.408.799%200%201.407-.647%201.407-1.408v-5.592c0-.761-.57-1.37-1.293-1.408zm4.946-6.088c.266.038.57-.038.837-.19l4.832-2.777c.685-.38.913-1.256.532-1.94-.38-.686-1.255-.914-1.94-.533l-2.701%201.56V1.975c0-.799-.647-1.408-1.446-1.408-.799%200-1.446.609-1.446%201.408V7.53c0%20.76.609%201.37%201.332%201.407zM3.265%205.97l4.832%202.777c.266.152.533.19.837.19.723-.038%201.331-.684%201.331-1.407V1.975c0-.799-.646-1.408-1.407-1.408-.799%200-1.446.647-1.446%201.408v3.12l-2.701-1.56c-.685-.38-1.56-.152-1.94.533-.419.646-.19%201.521.494%201.902zm9.093%206.011a.412.412%200%2000-.114-.266l-.57-.571a.346.346%200%2000-.267-.114.412.412%200%2000-.266.114l-.571.57a.411.411%200%2000-.114.267c0%20.076.038.19.114.267l.57.57a.345.345%200%2000.267.114c.076%200%20.19-.038.266-.114l.571-.57a.412.412%200%2000.114-.267zm1.598.533L11.94%2014.53c-.039.038-.153.114-.229.114h-.608a.411.411%200%2001-.267-.114L8.82%2012.514a.408.408%200%2001-.076-.229v-.608c0-.076.038-.19.114-.267l2.016-2.016a.41.41%200%2001.267-.114h.608a.41.41%200%2001.267.114l2.016%202.016a.347.347%200%2001.114.267v.608c-.076.077-.114.19-.19.229zm5.593%205.44l-4.832-2.777c-.266-.152-.57-.19-.837-.152-.723.038-1.332.684-1.332%201.408v5.554c0%20.8.647%201.408%201.408%201.408.799%200%201.446-.647%201.446-1.408v-3.12l2.7%201.56c.686.38%201.561.152%201.941-.533.419-.646.19-1.521-.494-1.94zm2.549-7.533l-2.701%201.56%202.7%201.56c.686.38.914%201.256.533%201.94-.38.685-1.255.913-1.94.533l-4.832-2.778a1.644%201.644%200%2001-.647-.798c-.037-.153-.076-.305-.076-.457%200-.114.039-.228.039-.342.114-.343.342-.647.646-.837l4.832-2.778c.685-.38%201.56-.152%201.94.533.457.609.19%201.484-.494%201.864'/%3e%3c/svg%3e",S3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eApache%20Spark%3c/title%3e%3cpath%20d='M10.812%200c-.425.013-.845.215-1.196.605a3.593%203.593%200%2000-.493.722c-.355.667-.425%201.415-.556%202.143a551.9%20551.9%200%2000-.726%204.087c-.027.16-.096.227-.244.273C5.83%208.386%204.06%208.94%202.3%209.514c-.387.125-.773.289-1.114.506-1.042.665-1.196%201.753-.415%202.71.346.422.79.715%201.284.936%201.1.49%202.202.976%203.3%201.47.019.01.036.013.053.019h-.004l1.306.535c0%20.023.002.045%200%20.073-.2%202.03-.39%204.063-.58%206.095-.04.419-.012.831.134%201.23.317.87%201.065%201.148%201.881.701.372-.204.666-.497.937-.818%201.372-1.623%202.746-3.244%204.113-4.872.111-.133.205-.15.363-.098.349.117.697.231%201.045.347h.001c.02.012.045.02.073.03l.142.042c1.248.416%202.68.775%203.929%201.19.4.132.622.164%201.045.098.311-.048.592-.062.828-.236.602-.33.995-.957.988-1.682-.005-.427-.154-.813-.35-1.186-.82-1.556-1.637-3.113-2.461-4.666-.078-.148-.076-.243.037-.375%201.381-1.615%202.756-3.236%204.133-4.855.272-.32.513-.658.653-1.058.308-.878-.09-1.57-1-1.741a2.783%202.783%200%2000-1.235.069c-1.974.521-3.947%201.041-5.918%201.57-.175.047-.26.015-.355-.144a353.08%20353.08%200%2000-2.421-4.018%204.61%204.61%200%2000-.652-.849c-.371-.37-.802-.549-1.227-.536zm.172%203.703a.592.592%200%2001.189.211c.87%201.446%201.742%202.89%202.609%204.338.07.118.135.16.277.121%201.525-.41%203.052-.813%204.579-1.217.367-.098.735-.193%201.103-.289a.399.399%200%2001-.1.2c-1.259%201.48-2.516%202.962-3.779%204.438-.11.13-.12.22-.04.37.937%201.803%201.768%203.309%202.498%204.76l-3.696-1.019c-.538-.18-1.077-.358-1.615-.539-.163-.055-.25-.03-.36.1-1.248%201.488-2.504%202.97-3.759%204.454a.398.398%200%2001-.18.132c.035-.378.068-.757.104-1.136.149-1.572.297-3.144.451-4.716-.03-.318.117-.405-.322-.545-1.493-.593-3.346-1.321-4.816-1.905a.595.595%200%2001.24-.134c1.797-.57%203.595-1.14%205.394-1.705.127-.04.199-.092.211-.233.013-.148.05-.294.076-.441.241-1.363.483-2.726.726-4.088.068-.386.14-.771.21-1.157z'/%3e%3c/svg%3e",C3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eSQLite%3c/title%3e%3cpath%20d='M21.678.521c-1.032-.92-2.28-.55-3.513.544a8.71%208.71%200%200%200-.547.535c-2.109%202.237-4.066%206.38-4.674%209.544.237.48.422%201.093.544%201.561a13.044%2013.044%200%200%201%20.164.703s-.019-.071-.096-.296l-.05-.146a1.689%201.689%200%200%200-.033-.08c-.138-.32-.518-.995-.686-1.289-.143.423-.27.818-.376%201.176.484.884.778%202.4.778%202.4s-.025-.099-.147-.442c-.107-.303-.644-1.244-.772-1.464-.217.804-.304%201.346-.226%201.478.152.256.296.698.422%201.186.286%201.1.485%202.44.485%202.44l.017.224a22.41%2022.41%200%200%200%20.056%202.748c.095%201.146.273%202.13.5%202.657l.155-.084c-.334-1.038-.47-2.399-.41-3.967.09-2.398.642-5.29%201.661-8.304%201.723-4.55%204.113-8.201%206.3-9.945-1.993%201.8-4.692%207.63-5.5%209.788-.904%202.416-1.545%204.684-1.931%206.857.666-2.037%202.821-2.912%202.821-2.912s1.057-1.304%202.292-3.166c-.74.169-1.955.458-2.362.629-.6.251-.762.337-.762.337s1.945-1.184%203.613-1.72C21.695%207.9%2024.195%202.767%2021.678.521m-18.573.543A1.842%201.842%200%200%200%201.27%202.9v16.608a1.84%201.84%200%200%200%201.835%201.834h9.418a22.953%2022.953%200%200%201-.052-2.707c-.006-.062-.011-.141-.016-.2a27.01%2027.01%200%200%200-.473-2.378c-.121-.47-.275-.898-.369-1.057-.116-.197-.098-.31-.097-.432%200-.12.015-.245.037-.386a9.98%209.98%200%200%201%20.234-1.045l.217-.028c-.017-.035-.014-.065-.031-.097l-.041-.381a32.8%2032.8%200%200%201%20.382-1.194l.2-.019c-.008-.016-.01-.038-.018-.053l-.043-.316c.63-3.28%202.587-7.443%204.8-9.791.066-.069.133-.128.198-.194Z'/%3e%3c/svg%3e",E3="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eSupabase%3c/title%3e%3cpath%20d='M11.9%201.036c-.015-.986-1.26-1.41-1.874-.637L.764%2012.05C-.33%2013.427.65%2015.455%202.409%2015.455h9.579l.113%207.51c.014.985%201.259%201.408%201.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z'/%3e%3c/svg%3e",T3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!--%20Generated%20by%20Pixelmator%20Pro%203.6.17%20--%3e%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Option2SymbolB'%3e%3cg%20id='Layer1-2'%3e%3cg%20id='Group'%20opacity='0.4'%3e%3cpath%20id='Path'%20fill='%23d53c97'%20stroke='none'%20d='M%2017.016802%2012.188573%20C%2017.016802%209.607646%2015.86018%207.293022%2014.039526%205.731081%20C%2013.942595%205.70038%2013.844628%205.671406%2013.745972%205.645189%20C%2013.131133%205.809095%2012.54265%206.059378%2011.998103%206.388559%20C%2013.964327%207.575191%2015.281006%209.730104%2015.281006%2012.188573%20C%2015.279476%2014.563734%2014.033739%2016.764488%2011.998103%2017.988243%20C%2012.542634%2018.317537%2013.131119%2018.567936%2013.745972%2018.731958%20C%2013.844628%2018.705742%2013.942595%2018.67642%2014.039526%2018.645721%20C%2015.86018%2017.084126%2017.016802%2014.769501%2017.016802%2012.188573%20Z'/%3e%3cpath%20id='path1'%20fill='%23d53c97'%20stroke='none'%20d='M%2013.897406%205.609659%20L%2013.894991%205.60759%20C%2013.844973%205.619663%2013.7953%205.631737%2013.745972%205.645189%20C%2013.79599%205.631737%2013.847043%205.622078%2013.897406%205.609659%20Z'/%3e%3cpath%20id='path2'%20fill='%23d53c97'%20stroke='none'%20d='M%201.735796%2012.188573%20C%201.735796%209.164728%203.728925%206.59622%206.470945%205.729357%20C%207.554634%204.797861%208.856011%204.155121%2010.254373%203.860756%20C%209.680216%203.740549%209.095179%203.679977%208.508574%203.68%20C%203.816888%203.68%20-0%207.496887%20-0%2012.188573%20C%20-0%2016.880259%203.816888%2020.697147%208.508574%2020.697147%20C%209.0952%2020.697229%209.680255%2020.636539%2010.254373%2020.516048%20C%208.855971%2020.221794%207.554568%2019.579041%206.470945%2018.647446%20C%203.728925%2017.780582%201.735796%2015.213453%201.735796%2012.188573%20Z'/%3e%3cpath%20id='path3'%20fill='%23d53c97'%20stroke='none'%20d='M%2013.745972%2018.731958%20C%2013.7953%2018.745068%2013.844973%2018.757484%2013.894991%2018.769558%20C%2013.894991%2018.769558%2013.896715%2018.769558%2013.897406%2018.767488%20C%2013.847043%2018.754379%2013.79599%2018.745411%2013.745972%2018.731958%20Z'/%3e%3c/g%3e%3cpath%20id='path4'%20fill='%23ff3b65'%20stroke='none'%20d='M%2020.508402%2012.188573%20C%2020.508402%209.606611%2019.351088%207.290262%2017.5294%205.729357%20C%2016.301817%205.342468%2014.989366%205.313629%2013.745972%205.646223%20C%2016.636665%206.418224%2018.772606%209.058484%2018.772606%2012.189609%20C%2018.772606%2015.320732%2016.636665%2017.960991%2013.745972%2018.731958%20C%2014.98947%2019.064316%2016.301983%2019.034998%2017.5294%2018.647446%20C%2019.419907%2017.034296%2020.508638%2014.673781%2020.508402%2012.188573%20Z'/%3e%3cpath%20id='path5'%20fill='%23ff3b65'%20stroke='none'%20d='M%209.962543%2018.647446%20C%207.220525%2017.780582%205.227395%2015.213453%205.227395%2012.188573%20C%205.227395%209.163693%207.220525%206.59622%209.962543%205.729357%20C%2011.046233%204.797861%2012.34761%204.155121%2013.745972%203.860756%20C%2013.171818%203.74053%2012.586779%203.679956%2012.000173%203.68%20C%207.308832%203.68%203.491599%207.496887%203.491599%2012.188573%20C%203.491599%2016.880259%207.308487%2020.697147%2012.000173%2020.697147%20C%2012.586799%2020.697247%2013.171857%2020.636557%2013.745972%2020.516048%20C%2012.34757%2020.221794%2011.046167%2019.579041%209.962543%2018.647446%20Z'/%3e%3cpath%20id='path6'%20fill='%23383838'%20stroke='none'%20d='M%2015.491772%203.68%20C%2010.800431%203.68%206.983198%207.496887%206.983198%2012.188573%20C%206.983198%2016.880259%2010.800086%2020.697147%2015.491772%2020.697147%20C%2020.183456%2020.697147%2024%2016.880259%2024%2012.188573%20C%2024%207.496887%2020.183456%203.68%2015.491772%203.68%20Z%20M%2022.264549%2012.188573%20C%2022.264549%2015.923018%2019.226215%2018.961351%2015.491772%2018.961351%20C%2011.757326%2018.961351%208.718994%2015.923018%208.718994%2012.188573%20C%208.718994%208.454128%2011.757326%205.415796%2015.491772%205.415796%20C%2019.226215%205.415796%2022.264549%208.454128%2022.264549%2012.188573%20Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",R3=""+new URL("trino-DFsJbQoT.svg",import.meta.url).href,D3=Gr(),O3={sqlite:C3,duckdb:y3,motherduck:w3,postgres:vv,postgresql:vv,mysql:_3,snowflake:k3,databricks:m3,clickhouse:h3,timeplus:T3,bigquery:v3,trino:R3,iceberg:b3,datafusion:g3,pyspark:S3,redshift:x3,supabase:E3};vm=e=>{let n=(0,D3.c)(11),{name:i,className:o}=e,s=O3[i.toLowerCase()];if(!s){let f;n[0]===o?f=n[1]:(f=Ou("mt-0.5",o),n[0]=o,n[1]=f);let p;return n[2]===f?p=n[3]:(p=(0,F.jsx)(Cs,{className:f}),n[2]=f,n[3]=p),p}let c;n[4]!==o||n[5]!==s?(c=Ou("invert-[.5] dark:invert-[.7]",o,s.endsWith(".png")&&"brightness-100 dark:brightness-100 invert-0 dark:invert-0"),n[4]=o,n[5]=s,n[6]=c):c=n[6];let d;return n[7]!==i||n[8]!==c||n[9]!==s?(d=(0,F.jsx)("img",{src:s,alt:i,className:c}),n[7]=i,n[8]=c,n[9]=s,n[10]=d):d=n[10],d};var pf=Gr();const P3=e=>{let n=(0,pf.c)(34),{selectedEngine:i,onChange:o,cellId:s}=e,c=Yn(sd),d=[],f=[];for(let[Se,Z]of c.entries())ko.has(Se)?d.push(Z):f.push(Z);let p=cD(),y=i&&!c.has(i),w;n[0]!==c||n[1]!==o||n[2]!==p?(w=Se=>{if(Se===bv){window.open(wv,"_blank");return}let Z=c.get(Se);Z&&(p(),o(Z.name),Dg(Z.name))},n[0]=c,n[1]=o,n[2]=p,n[3]=w):w=n[3];let _=w,C=A3,E=ED,T;n[4]===s?T=n[5]:(T=ed(s),n[4]=s,n[5]=T);let P;n[6]===Symbol.for("react.memo_cache_sentinel")?(P=(0,F.jsx)(_D,{placeholder:"Select an engine"}),n[6]=P):P=n[6];let V;n[7]===T?V=n[8]:(V=(0,F.jsx)(L3,{...T,children:P}),n[7]=T,n[8]=V);let $=kD,B;n[9]===s?B=n[10]:(B=ed(s),n[9]=s,n[10]=B);let I=SD,Q;n[11]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,F.jsx)(wD,{children:"Database connections"}),n[11]=Q):Q=n[11];let pe;n[12]!==y||n[13]!==i?(pe=y&&(0,F.jsx)(Dh,{value:i,children:(0,F.jsxs)("div",{className:"flex items-center gap-1 opacity-50",children:[(0,F.jsx)(cm,{className:"h-3 w-3"}),(0,F.jsx)("span",{className:"truncate",children:Ng(i)})]})},i),n[12]=y,n[13]=i,n[14]=pe):pe=n[14];let M=C(f),A=f.length>0&&(0,F.jsx)(Ew,{}),W=C(d),de;n[15]===Symbol.for("react.memo_cache_sentinel")?(de=(0,F.jsx)(Ew,{}),n[15]=de):de=n[15];let fe;n[16]===Symbol.for("react.memo_cache_sentinel")?(fe=(0,F.jsx)(Dh,{className:"text-muted-foreground",value:bv,children:(0,F.jsxs)("a",{className:"flex items-center gap-1",href:wv,target:"_blank",rel:"noreferrer",children:[(0,F.jsx)(RD,{className:"h-3 w-3"}),(0,F.jsx)("span",{children:"How to add a database connection"})]})}),n[16]=fe):fe=n[16];let we;n[17]!==I||n[18]!==A||n[19]!==W||n[20]!==Q||n[21]!==pe||n[22]!==M?(we=(0,F.jsxs)(I,{children:[Q,pe,M,A,W,de,fe]}),n[17]=I,n[18]=A,n[19]=W,n[20]=Q,n[21]=pe,n[22]=M,n[23]=we):we=n[23];let J;n[24]!==$||n[25]!==we||n[26]!==B?(J=(0,F.jsx)($,{...B,children:we}),n[24]=$,n[25]=we,n[26]=B,n[27]=J):J=n[27];let be;return n[28]!==E||n[29]!==_||n[30]!==i||n[31]!==J||n[32]!==V?(be=(0,F.jsx)("div",{className:"flex flex-row gap-1 items-center",children:(0,F.jsxs)(E,{value:i,onValueChange:_,children:[V,J]})}),n[28]=E,n[29]=_,n[30]=i,n[31]=J,n[32]=V,n[33]=be):be=n[33],be};var bv="__help__",wv="http://docs.marimo.io/guides/working_with_data/sql/#connecting-to-a-custom-database";const M3=()=>{let e=(0,pf.c)(16),{sqlMode:n,setSQLMode:i}=KE(),o;e[0]!==i||e[1]!==n?(o=()=>{let E=n==="validate"?"default":"validate";E==="default"&&FE(),i(E)},e[0]=i,e[1]=n,e[2]=o):o=e[2];let s=o,c=q3,d=j3,f;e[3]===n?f=e[4]:(f=d(n),e[3]=n,e[4]=f);let p;e[5]===n?p=e[6]:(p=c(n),e[5]=n,e[6]=p);let y=n==="validate"?"Validate":"Default",w;e[7]===y?w=e[8]:(w=(0,F.jsx)("span",{className:"ml-1",children:y}),e[7]=y,e[8]=w);let _;e[9]!==s||e[10]!==p||e[11]!==w?(_=(0,F.jsxs)(ow,{variant:"ghost",size:"sm",onClick:s,className:"h-5 px-1.5 text-xs border-border shadow-none hover:bg-accent",children:[p,w]}),e[9]=s,e[10]=p,e[11]=w,e[12]=_):_=e[12];let C;return e[13]!==f||e[14]!==_?(C=(0,F.jsx)("div",{className:"flex flex-row gap-1 items-center",children:(0,F.jsx)(Mh,{delayDuration:300,content:f,children:_})}),e[13]=f,e[14]=_,e[15]=C):C=e[15],C};var L3=e=>{let n=(0,pf.c)(6),i,o;n[0]===e?(i=n[1],o=n[2]):({children:i,...o}=e,n[0]=e,n[1]=i,n[2]=o);let s;return n[3]!==i||n[4]!==o?(s=(0,F.jsx)(CD,{className:"text-xs border-border shadow-none! ring-0! h-5 px-1.5 hover:bg-accent transition-colors",...o,children:i}),n[3]=i,n[4]=o,n[5]=s):s=n[5],s};function N3(e){return e.source!=="iceberg"}function I3(e){return(0,F.jsx)(Dh,{value:e.name,children:(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[(0,F.jsx)(vm,{className:"h-3 w-3",name:e.dialect}),(0,F.jsx)("span",{className:"truncate ml-0.5",children:Ng(e.display_name)})]})},e.name)}function A3(e){return e=e.filter(N3),e.map(I3)}function q3(e){return e==="validate"?(0,F.jsx)(Hd,{className:"h-3 w-3"}):(0,F.jsx)(Bd,{className:"h-3 w-3"})}function j3(e){return e==="validate"?(0,F.jsxs)("div",{className:"text-xs",children:[(0,F.jsxs)("div",{className:"font-semibold mb-1 flex flex-row items-center gap-1",children:[(0,F.jsx)(Hd,{className:"h-3 w-3"}),"Validate Mode"]}),(0,F.jsx)("p",{children:"Queries are validated as you write them"})]}):(0,F.jsxs)("div",{className:"text-xs",children:[(0,F.jsxs)("div",{className:"font-semibold mb-1 flex flex-row items-center gap-1",children:[(0,F.jsx)(Bd,{className:"h-3 w-3"}),"Default Mode"]}),(0,F.jsx)("p",{children:"Standard editing"})]})}var _v=Gr(),xv=()=>{let e=(0,_v.c)(1),n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,F.jsx)("div",{className:"h-4 border-r border-border"}),e[0]=n):n=e[0],n};const z3=e=>{let n=(0,_v.c)(102),{view:i}=e,o;n[0]===Symbol.for("react.memo_cache_sentinel")?(o={minWidth:50},n[0]=o):o=n[0];let{spanProps:s,inputProps:c}=d3(o),d;n[1]===i.state?d=n[2]:(d=i.state.field(Lr),n[1]=i.state,n[2]=d);let f=d,p;n[3]===i.state?p=n[4]:(p=i.state.facet(Wi),n[3]=i.state,n[4]=p);let y=p,w;n[5]===Symbol.for("react.memo_cache_sentinel")?(w=(0,F.jsx)("div",{}),n[5]=w):w=n[5];let _=w,C=!1,E;n[6]===i?E=n[7]:(E=$=>{i.dispatch({effects:Wu.of($),changes:{from:0,to:i.state.doc.length,insert:i.state.doc.toString()}})},n[6]=i,n[7]=E);let T=E;if(f instanceof pd){let $;n[8]===i.state?$=n[9]:($=i.state.field(di),n[8]=i.state,n[9]=$);let B=$;C=!0;let I;n[10]===T?I=n[11]:(I=ft=>{let mt=Lm(ft.currentTarget.value,!1);ft.currentTarget.value=mt,T({dataframeName:mt})},n[10]=T,n[11]=I);let Q=I,pe;n[12]!==T||n[13]!==i?(pe=ft=>{T({engine:ft}),JE(i,ft)},n[12]=T,n[13]=i,n[14]=pe):pe=n[14];let M=pe,A;n[15]===Symbol.for("react.memo_cache_sentinel")?(A=(0,F.jsx)("span",{className:"select-none",children:"Output variable: "}),n[15]=A):A=n[15];let W;n[16]===c?W=n[17]:(W=ft=>{var mt;(mt=c.onChange)==null||mt.call(c,ft)},n[16]=c,n[17]=W);let de;n[18]===Q?de=n[19]:(de=ft=>{ft.key==="Enter"&&ft.shiftKey&&Q(ft)},n[18]=Q,n[19]=de);let fe;n[20]!==c||n[21]!==B.dataframeName||n[22]!==Q||n[23]!==W||n[24]!==de?(fe=(0,F.jsx)("input",{...c,defaultValue:B.dataframeName,onChange:W,onBlur:Q,onKeyDown:de,className:"min-w-14 w-auto border border-border rounded px-1 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring"}),n[20]=c,n[21]=B.dataframeName,n[22]=Q,n[23]=W,n[24]=de,n[25]=fe):fe=n[25];let we;n[26]===s?we=n[27]:(we=(0,F.jsx)("span",{...s}),n[26]=s,n[27]=we);let J;n[28]!==fe||n[29]!==we?(J=(0,F.jsxs)("label",{className:"flex gap-2 items-center",children:[A,fe,we]}),n[28]=fe,n[29]=we,n[30]=J):J=n[30];let be;n[31]!==y||n[32]!==B.engine||n[33]!==M?(be=(0,F.jsx)(P3,{selectedEngine:B.engine,onChange:M,cellId:y}),n[31]=y,n[32]=B.engine,n[33]=M,n[34]=be):be=n[34];let Se;n[35]===B.engine?Se=n[36]:(Se=B.engine==="__marimo_duckdb"&&(0,F.jsx)(M3,{}),n[35]=B.engine,n[36]=Se);let Z;n[37]!==B.engine||n[38]!==i?(Z=async()=>{await Gk(i,B.engine)},n[37]=B.engine,n[38]=i,n[39]=Z):Z=n[39];let re;n[40]===Symbol.for("react.memo_cache_sentinel")?(re=(0,F.jsx)(em,{className:"h-3 w-3"}),n[40]=re):re=n[40];let se;n[41]===Z?se=n[42]:(se=(0,F.jsx)(Mh,{content:"Format SQL",children:(0,F.jsx)(ow,{variant:"text",size:"icon",onClick:Z,children:re})}),n[41]=Z,n[42]=se);let K;n[43]===Symbol.for("react.memo_cache_sentinel")?(K=(0,F.jsx)(xv,{}),n[43]=K):K=n[43];let Le;n[44]===T?Le=n[45]:(Le=ft=>{T({showOutput:!ft.target.checked})},n[44]=T,n[45]=Le);let Fe=!B.showOutput,et;n[46]!==Le||n[47]!==Fe?(et=(0,F.jsx)("input",{type:"checkbox",onChange:Le,checked:Fe}),n[46]=Le,n[47]=Fe,n[48]=et):et=n[48];let Be;n[49]===Symbol.for("react.memo_cache_sentinel")?(Be=(0,F.jsx)("span",{className:"select-none",children:"Hide output"}),n[49]=Be):Be=n[49];let je;n[50]===et?je=n[51]:(je=(0,F.jsxs)("label",{className:"flex items-center gap-2",children:[et,Be]}),n[50]=et,n[51]=je);let Pe;n[52]!==Se||n[53]!==se||n[54]!==je?(Pe=(0,F.jsxs)("div",{className:"flex items-center gap-2 ml-auto",children:[Se,se,K,je]}),n[52]=Se,n[53]=se,n[54]=je,n[55]=Pe):Pe=n[55];let Ae;n[56]!==J||n[57]!==be||n[58]!==Pe?(Ae=(0,F.jsxs)("div",{className:"flex flex-1 gap-2 items-center",children:[J,be,Pe]}),n[56]=J,n[57]=be,n[58]=Pe,n[59]=Ae):Ae=n[59],_=Ae}if(f instanceof id){C=!0;let $,B,I,Q,pe,M,A,W,de,fe;if(n[60]!==T||n[61]!==i.state){let{quotePrefix:Le}=i.state.field(di);B=Le,B===void 0&&(B="r",T({quotePrefix:B})),fe=(Fe,et)=>{typeof et=="boolean"&&T({quotePrefix:p3({currentQuotePrefix:B,checked:et,prefix:Fe})})},Q="flex flex-row w-full justify-end gap-1.5 items-center",de="flex items-center gap-1.5",n[72]===Symbol.for("react.memo_cache_sentinel")?(I=(0,F.jsx)("span",{children:"r"}),n[72]=I):I=n[72],$=Hl,M="Toggle raw string",A="w-3 h-3",W=B.includes("r"),pe=Fe=>{fe("r",Fe)},n[60]=T,n[61]=i.state,n[62]=$,n[63]=B,n[64]=I,n[65]=Q,n[66]=pe,n[67]=M,n[68]=A,n[69]=W,n[70]=de,n[71]=fe}else $=n[62],B=n[63],I=n[64],Q=n[65],pe=n[66],M=n[67],A=n[68],W=n[69],de=n[70],fe=n[71];let we;n[73]!==$||n[74]!==pe||n[75]!==M||n[76]!==A||n[77]!==W?(we=(0,F.jsx)($,{"aria-label":M,className:A,checked:W,onCheckedChange:pe}),n[73]=$,n[74]=pe,n[75]=M,n[76]=A,n[77]=W,n[78]=we):we=n[78];let J;n[79]!==I||n[80]!==we||n[81]!==de?(J=(0,F.jsxs)("div",{className:de,children:[I,we]}),n[79]=I,n[80]=we,n[81]=de,n[82]=J):J=n[82];let be;n[83]===Symbol.for("react.memo_cache_sentinel")?(be=(0,F.jsx)("span",{children:"f"}),n[83]=be):be=n[83];let Se;n[84]===B?Se=n[85]:(Se=B.includes("f"),n[84]=B,n[85]=Se);let Z;n[86]===fe?Z=n[87]:(Z=Le=>{fe("f",Le)},n[86]=fe,n[87]=Z);let re;n[88]!==Se||n[89]!==Z?(re=(0,F.jsxs)("div",{className:"flex items-center gap-1.5",children:[be,(0,F.jsx)(Hl,{"aria-label":"Toggle f-string",className:"w-3 h-3",checked:Se,onCheckedChange:Z})]}),n[88]=Se,n[89]=Z,n[90]=re):re=n[90];let se;n[91]===Symbol.for("react.memo_cache_sentinel")?(se=(0,F.jsx)(Mh,{content:(0,F.jsx)(yv,{}),children:(0,F.jsx)(Bu,{className:"w-3 h-3"})}),n[91]=se):se=n[91];let K;n[92]!==Q||n[93]!==J||n[94]!==re?(K=(0,F.jsxs)("div",{className:Q,children:[J,re,se]}),n[92]=Q,n[93]=J,n[94]=re,n[95]=K):K=n[95],_=K}let P;n[96]===C?P=n[97]:(P=C&&(0,F.jsx)(xv,{}),n[96]=C,n[97]=P);let V;return n[98]!==_||n[99]!==f.type||n[100]!==P?(V=(0,F.jsx)(BD,{children:(0,F.jsxs)("div",{className:"flex justify-between items-center gap-4 pl-2 pt-2",children:[_,P,f.type]})}),n[98]=_,n[99]=f.type,n[100]=P,n[101]=V):V=n[101],V};var hf=new Mu;fd=Fi.define(),Lr=xs.define({create(){return gr.python},update(e,n){for(let i of n.effects)if(i.is(fd))return i.value;return e},provide:e=>_h.from(e,n=>n.type==="python"?null:i=>Yk(i,z3))});function F3(){let e=i3(),n=(i,o)=>{let s=e[o%e.length];return s.isSupported(i)?s:n(i,o+1)};return[Ra.of([{key:"F4",preventDefault:!0,run:i=>{let o=i.state.field(Lr),s=e.findIndex(d=>d.type===o.type),c=n(i.state.doc.toString(),s+1);return o===c?!1:(kv({view:i,nextLanguage:c,opts:{keepCodeAsIs:!1}}),!0)}}])]}function kv({view:e,nextLanguage:n,opts:i}){let o=e.state.field(Lr),s=e.state.doc.toString(),c=e.state.facet(xg),d=e.state.facet(kg),f=e.state.facet(jd),p=e.state.facet(zd),y=e.state.facet(Sg),w=e.state.field(di),_=e.state.selection.main.head,C;if(i.keepCodeAsIs)C=s,o.type!==n.type&&(w={...n.defaultMetadata});else{let[E,T]=o.transformOut(s,w),[P,V,$]=n.transformIn(E);_+=T,_-=V,_=Sh(_,0,P.length),C=P,w=$}e.dispatch({effects:[fd.of(n),Vu.of(w),hf.reconfigure(n.getExtension(p,c,d,f,y)),Ku.reconfigure([]),Ls.of(!0)],changes:i.keepCodeAsIs?void 0:{from:0,to:e.state.doc.length,insert:C},selection:i.keepCodeAsIs?void 0:mn.cursor(_)}),e.dispatch({effects:[Ku.reconfigure([W4()])]}),n.type==="sql"&&XE(e)}U_=function(e){let{placeholderType:n,completionConfig:i,hotkeys:o,cellId:s,lspConfig:c}=e;return[F3(),hf.of(gr.python.getExtension(s,i,o,n,c)),Lr,di]},ex=function(e){return B3(Jr({state:e}).trim())};function B3(e){return e?gr.markdown.isSupported(e)?gr.markdown:gr.sql.isSupported(e)?gr.sql:gr.python:gr.python}gm=function(e,n){e.state.field(Lr).type!==n.language&&kv({view:e,nextLanguage:gr[n.language],opts:{keepCodeAsIs:n.keepCodeAsIs??!1}})},F_=function(e,{completionConfig:n,hotkeysProvider:i,lspConfig:o}){let s=e.state.field(Lr),c=e.state.facet(jd),d=e.state.facet(zd);return hf.reconfigure(s.getExtension(d,n,i,c,o))},Jr=function(e,n,i){let o=e.state.field(Lr),s=e.state.field(di),c=e.state.doc.toString();return n===void 0?o.transformOut(c,s)[0]:o.transformOut(c.slice(n,i),s)[0]},xo=function(e,n){let[i]=e.state.field(Lr).transformIn(n);return $u(e,i),i};function H3(e){let n=e.state.selection.main.head,i=e.state.doc.toString(),o=i.length>0&&i[n-1]===` +`,s=i.length>0&&i[n]===` +`,c=o?n-1:n,d=s?n+1:n;return{beforeCursorCode:Jr(e,0,c),afterCursorCode:Jr(e,d)}}var V3=["marimo-carousel","marimo-tabs","marimo-accordion"],$3="h1, h2, h3, h4, h5, h6";function W3(e){if(typeof DOMParser>"u")return null;let n=[],i=new DOMParser().parseFromString(e,"text/html").querySelectorAll($3);for(let o of Array.from(i)){let s=o.textContent;if(V3.some(d=>o.closest(d))||!s)continue;let c=Number.parseInt(o.tagName[1],10);n.push({name:s,level:c,by:Sm(o)})}return{items:n}}Sm=function(e){let n=e.id;if(n)return{id:n};let i=e.textContent;return{path:`//${e.tagName}[contains(., "${i}")]`}};function U3(e){return{items:e.filter(Boolean).flatMap(n=>n.items)}}Dm=function(e){if(e==null||e.mimetype!=="text/html"&&e.mimetype!=="text/markdown"||e.data==null)return null;try{return In(typeof e.data=="string","expected string"),W3(e.data)}catch{return Re.error("Failed to parse outline"),null}},ix=function(e){return e==null?!1:e.items.some(n=>n.level<=3)};function Sv(e,n){let i=d=>d.items.length===0?7:Math.min(...d.items.map(f=>f.level)),o=n[e];if(o==null||o.items.length===0)return Re.warn("Failed to find a starting outline"),null;let s=i(o),c=e+1;for(;cQl("rtc_v2"));let mf,Cv,gf,Is;um=class md{static fromMilliseconds(n){return n==null?null:new md(n)}static fromSeconds(n){return n==null?null:new md(n*1e3)}static now(){return new md(Date.now())}constructor(n){this.ms=n}toMilliseconds(){return this.ms}toSeconds(){return this.ms/1e3}},mf=($a=class{constructor(){ke(this,"lines",[""]);ke(this,"cursor",{row:0,col:0})}ensureLine(n){for(;this.lines.length<=n;)this.lines.push("")}moveCursor(n,i){let o=this.cursor.row;this.cursor.row=Math.max(0,this.cursor.row+n),this.cursor.col=Math.max(0,this.cursor.col+i),this.ensureLine(this.cursor.row),n<0&&this.cursor.rows===""?1:Number.parseInt(s,10));switch(i[2]){case"A":this.moveCursor(-o[0],0);break;case"B":this.moveCursor(o[0],0);break;case"C":this.moveCursor(0,o[0]);break;case"D":this.moveCursor(0,-o[0]);break;case"H":this.setCursor(o[0]-1||0,o[1]-1||0);break;case"J":o[0]===2&&(this.lines=[""],this.setCursor(0,0));break;case"K":switch(this.ensureLine(this.cursor.row),o[0]){case 0:this.lines[this.cursor.row]=this.lines[this.cursor.row].slice(0,this.cursor.col);break;case 1:{let s=this.lines[this.cursor.row].length;this.lines[this.cursor.row]=" ".repeat(this.cursor.col)+this.lines[this.cursor.row].slice(this.cursor.col,s);break}case 2:this.lines[this.cursor.row]="";break}break;default:this.writeString(n);break}}render(){return this.lines.join(` +`)}},ke($a,"ESCAPE_REGEX",/\u001B\[([0-9;]*)([A-DJKH])/u),$a),Cv=class{constructor(){ke(this,"ESC_REGEX",/\u001B(?:\[[0-9;]*[A-Za-z]|\([0-9A-Za-z])/gu)}parse(e){let n=[],i=0;for(let o of e.matchAll(this.ESC_REGEX)){let s=o.index??0;s>i&&n.push({type:"text",value:e.slice(i,s)}),n.push({type:"escape",value:o[0]}),i=s+o[0].length}return in){let c=e.slice(n,o),d=this.filterControlChars(c);d.length>0&&this.buffer.writeString(d)}this.buffer.control(s),n=o+1}else if(s<" "){if(o>n){let c=e.slice(n,o);c.length>0&&this.buffer.writeString(c)}n=o+1}}if(n0&&this.buffer.writeString(s)}}filterControlChars(e){let n=!1;for(let o of e)if(o<" "){n=!0;break}if(!n)return e;let i="";for(let o of e)o>=" "&&(i+=o);return i}},Is=class zm{constructor(n,i,o,s){ke(this,"ansiReducer",new gf);this.mimetype=n,this.channel=i,this.timestamp=o,this.ansiReducer=s,this._data=this.ansiReducer.render()}get data(){return this._data}static create(n){let i=new gf;return i.append(n.data),new zm(n.mimetype,n.channel,n.timestamp,i)}appendData(n){return this.ansiReducer.append(n),new zm(this.mimetype,this.channel,this.timestamp,this.ansiReducer)}toJSON(){return{mimetype:this.mimetype,channel:this.channel,timestamp:this.timestamp,data:this.data}}};function K3(e,n=5e3){let i=[...e];if(i.length<2)return Tv(i.map(G3),n);let o=i[i.length-1],s=i[i.length-2];return Q3(o,s)&&(Ev(o),Ev(s),i[i.length-2]=J3(s,o),i.pop()),Tv(i,n)}function Q3(e,n){let i=e.mimetype==="text/plain"&&n.mimetype==="text/plain";if(!i)return!1;let o=e.channel===n.channel,s=e.channel!=="stdin";return i&&o&&s}function G3(e){return e instanceof Is?e:typeof e.data=="string"?Is.create(e):e}function J3(e,n){return e instanceof Is?e.appendData(n.data):Is.create(e).appendData(n.data)}function Ev(e){In(typeof e.data=="string","expected string output")}function Tv(e,n){let i=0,o;for(o=e.length-1;o>=0&&iStreaming output truncated to last ${n} lines. +`,timestamp:-1},d=e[s];if(d.mimetype==="text/plain"){In(typeof d.data=="string","expected string");let f=d.data.split(` +`),p=n-(i-f.length);return[c,{...d,data:f.slice(-p).join(` +`)},...e.slice(s+1)]}return[c,...e.slice(s+1)]}function X3(e,n){let i={...e};switch(n.status){case"queued":i.interrupted=!1,i.errored=!1,i.runElapsedTimeMs=null,i.debuggerActive=!1;break;case"running":i.interrupted=!1,e.stopped&&(i.output=null),i.status==="queued"&&(i.consoleOutputs=[]),i.stopped=!1,i.runStartTimestamp=n.timestamp,i.lastRunStartTimestamp=n.timestamp;break;case"idle":e.runStartTimestamp&&(i.runElapsedTimeMs=um.fromSeconds((n.timestamp??0)-e.runStartTimestamp).toMilliseconds(),i.runStartTimestamp=null,i.staleInputs=!1),!e.lastRunStartTimestamp&&n.timestamp&&(i.lastRunStartTimestamp=n.timestamp),i.debuggerActive=!1;break;case null:break;case"disabled-transitively":break;case void 0:break;default:_s(n.status)}i.output=n.output??i.output,i.staleInputs=n.stale_inputs??i.staleInputs,i.status=n.status??i.status,i.serialization=n.serialization;let o=!1;n.output!=null&&n.output.mimetype==="application/vnd.marimo+error"&&((i.status==="queued"||i.status==="running")&&(i.status="idle"),In(Array.isArray(n.output.data),"Expected error output data to be an array"),n.output.data.some(f=>f.type==="interruption")?(i.interrupted=!0,o=!0):n.output.data.some(f=>f.type.includes("ancestor"))?i.stopped=!0:i.errored=!0);let s=e.consoleOutputs;o&&(i.debuggerActive=!1,s=s.map(f=>f.channel==="stdin"?{...f,response:f.response??""}:f));let c=n.console;c!=null&&(s=K3(Array.isArray(c)?c:[...s,c])),i.consoleOutputs=s,i.outline=Dm(i.output);let d=[n.console].flat().filter(Boolean).filter(f=>f.channel==="pdb");return d.length>0&&d.some(f=>f.data==="start")&&(i.debuggerActive=!0),i}function Y3(e){let n={...e};return e.status!=="disabled-transitively"&&(n.status="queued"),n.interrupted=!1,n.errored=!1,n.runElapsedTimeMs=null,n.debuggerActive=!1,n}lm=function(e){return e==="running"||e==="queued"},c_=function(e,n){let{status:i,output:o,runStartTimestamp:s,interrupted:c,staleInputs:d}=e;if(c)return!1;if(n)return!0;let f=lm(i),p=i==="running"&&o!==null&&s!==null&&(o.timestamp??0)>s;return f&&!p?!0:d};function Z3(e,n){return TD(e*1e3,n==null?void 0:n.in)}var yf=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},qt;(function(e){e[e.EOS=0]="EOS",e[e.Text=1]="Text",e[e.Incomplete=2]="Incomplete",e[e.ESC=3]="ESC",e[e.Unknown=4]="Unknown",e[e.SGR=5]="SGR",e[e.OSCURL=6]="OSCURL"})(qt||(qt={})),Hh=class{constructor(){this.VERSION="6.0.6",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(i=>{i.forEach(o=>{this.palette_256.push(o)})});let e=[0,95,135,175,215,255];for(let i=0;i<6;++i)for(let o=0;o<6;++o)for(let s=0;s<6;++s){let c={rgb:[e[i],e[o],e[s]],class_name:"truecolor"};this.palette_256.push(c)}let n=8;for(let i=0;i<24;++i,n+=10){let o={rgb:[n,n,n],class_name:"truecolor"};this.palette_256.push(o)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,n=>{if(n==="&")return"&";if(n==="<")return"<";if(n===">")return">";if(n==='"')return""";if(n==="'")return"'"}):e}append_buffer(e){this._buffer+=e}get_next_packet(){var e={kind:qt.EOS,text:"",url:""},n=this._buffer.length;if(n==0)return e;var i=this._buffer.indexOf("\x1B");if(i==-1)return e.kind=qt.Text,e.text=this._buffer,this._buffer="",e;if(i>0)return e.kind=qt.Text,e.text=this._buffer.slice(0,i),this._buffer=this._buffer.slice(i),e;if(i==0){if(n<3)return e.kind=qt.Incomplete,e;var o=this._buffer.charAt(1);if(o!="["&&o!="]"&&o!="(")return e.kind=qt.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if(o=="["){this._csi_regex||(this._csi_regex=Rv(tT||(tT=yf([` + ^ # beginning of line + # + # First attempt + (?: # legal sequence + \x1B[ # CSI + ([<-?]?) # private-mode char + ([d;]*) # any digits or semicolons + ([ -/]? # an intermediate modifier + [@-~]) # the command + ) + | # alternate (second attempt) + (?: # illegal sequence + \x1B[ # CSI + [ -~]* # anything legal + ([\0-:]) # anything illegal + ) + `],[` + ^ # beginning of line + # + # First attempt + (?: # legal sequence + \\x1b\\[ # CSI + ([\\x3c-\\x3f]?) # private-mode char + ([\\d;]*) # any digits or semicolons + ([\\x20-\\x2f]? # an intermediate modifier + [\\x40-\\x7e]) # the command + ) + | # alternate (second attempt) + (?: # illegal sequence + \\x1b\\[ # CSI + [\\x20-\\x7e]* # anything legal + ([\\x00-\\x1f:]) # anything illegal + ) + `]))));let c=this._buffer.match(this._csi_regex);if(c===null)return e.kind=qt.Incomplete,e;if(c[4])return e.kind=qt.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;c[1]!=""||c[3]!="m"?e.kind=qt.Unknown:e.kind=qt.SGR,e.text=c[2];var s=c[0].length;return this._buffer=this._buffer.slice(s),e}else if(o=="]"){if(n<4)return e.kind=qt.Incomplete,e;if(this._buffer.charAt(2)!="8"||this._buffer.charAt(3)!=";")return e.kind=qt.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=eT(nT||(nT=yf([` + (?: # legal sequence + (\x1B) # ESC | # alternate + (\x07) # BEL (what xterm did) + ) + | # alternate (second attempt) + ( # illegal sequence + [\0-] # anything illegal + | # alternate + [\b-] # anything illegal + | # alternate + [-] # anything illegal + ) + `],[` + (?: # legal sequence + (\\x1b\\\\) # ESC \\ + | # alternate + (\\x07) # BEL (what xterm did) + ) + | # alternate (second attempt) + ( # illegal sequence + [\\x00-\\x06] # anything illegal + | # alternate + [\\x08-\\x1a] # anything illegal + | # alternate + [\\x1c-\\x1f] # anything illegal + ) + `])))),this._osc_st.lastIndex=0;{let f=this._osc_st.exec(this._buffer);if(f===null)return e.kind=qt.Incomplete,e;if(f[3])return e.kind=qt.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}{let f=this._osc_st.exec(this._buffer);if(f===null)return e.kind=qt.Incomplete,e;if(f[3])return e.kind=qt.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}this._osc_regex||(this._osc_regex=Rv(rT||(rT=yf([` + ^ # beginning of line + # + \x1B]8; # OSC Hyperlink + [ -:<-~]* # params (excluding ;) + ; # end of params + ([!-~]{0,512}) # URL capture + (?: # ST + (?:\x1B) # ESC | # alternate + (?:\x07) # BEL (what xterm did) + ) + ([ -~]+) # TEXT capture + \x1B]8;; # OSC Hyperlink End + (?: # ST + (?:\x1B) # ESC | # alternate + (?:\x07) # BEL (what xterm did) + ) + `],[` + ^ # beginning of line + # + \\x1b\\]8; # OSC Hyperlink + [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;) + ; # end of params + ([\\x21-\\x7e]{0,512}) # URL capture + (?: # ST + (?:\\x1b\\\\) # ESC \\ + | # alternate + (?:\\x07) # BEL (what xterm did) + ) + ([\\x20-\\x7e]+) # TEXT capture + \\x1b\\]8;; # OSC Hyperlink End + (?: # ST + (?:\\x1b\\\\) # ESC \\ + | # alternate + (?:\\x07) # BEL (what xterm did) + ) + `]))));let c=this._buffer.match(this._osc_regex);if(c===null)return e.kind=qt.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;e.kind=qt.OSCURL,e.url=c[1],e.text=c[2];var s=c[0].length;return this._buffer=this._buffer.slice(s),e}else if(o=="(")return e.kind=qt.Unknown,this._buffer=this._buffer.slice(3),e}}ansi_to_html(e){this.append_buffer(e);for(var n=[];;){var i=this.get_next_packet();if(i.kind==qt.EOS||i.kind==qt.Incomplete)break;i.kind==qt.ESC||i.kind==qt.Unknown||(i.kind==qt.Text?n.push(this.transform_to_html(this.with_state(i))):i.kind==qt.SGR?this.process_ansi(i):i.kind==qt.OSCURL&&n.push(this.process_hyperlink(i)))}return n.join("")}with_state(e){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}}process_ansi(e){let n=e.text.split(";");for(;n.length>0;){let i=n.shift(),o=parseInt(i,10);if(isNaN(o)||o===0)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(o===1)this.bold=!0;else if(o===2)this.faint=!0;else if(o===3)this.italic=!0;else if(o===4)this.underline=!0;else if(o===21)this.bold=!1;else if(o===22)this.faint=!1,this.bold=!1;else if(o===23)this.italic=!1;else if(o===24)this.underline=!1;else if(o===39)this.fg=null;else if(o===49)this.bg=null;else if(o>=30&&o<38)this.fg=this.ansi_colors[0][o-30];else if(o>=40&&o<48)this.bg=this.ansi_colors[0][o-40];else if(o>=90&&o<98)this.fg=this.ansi_colors[1][o-90];else if(o>=100&&o<108)this.bg=this.ansi_colors[1][o-100];else if((o===38||o===48)&&n.length>0){let s=o===38,c=n.shift();if(c==="5"&&n.length>0){let d=parseInt(n.shift(),10);d>=0&&d<=255&&(s?this.fg=this.palette_256[d]:this.bg=this.palette_256[d])}if(c==="2"&&n.length>2){let d=parseInt(n.shift(),10),f=parseInt(n.shift(),10),p=parseInt(n.shift(),10);if(d>=0&&d<=255&&f>=0&&f<=255&&p>=0&&p<=255){let y={rgb:[d,f,p],class_name:"truecolor"};s?this.fg=y:this.bg=y}}}}}transform_to_html(e){let n=e.text;if(n.length===0||(n=this.escape_txt_for_html(n),!e.bold&&!e.italic&&!e.faint&&!e.underline&&e.fg===null&&e.bg===null))return n;let i=[],o=[],s=e.fg,c=e.bg;e.bold&&i.push(this._boldStyle),e.faint&&i.push(this._faintStyle),e.italic&&i.push(this._italicStyle),e.underline&&i.push(this._underlineStyle),this._use_classes?(s&&(s.class_name==="truecolor"?i.push(`color:rgb(${s.rgb.join(",")})`):o.push(`${s.class_name}-fg`)),c&&(c.class_name==="truecolor"?i.push(`background-color:rgb(${c.rgb.join(",")})`):o.push(`${c.class_name}-bg`))):(s&&i.push(`color:rgb(${s.rgb.join(",")})`),c&&i.push(`background-color:rgb(${c.rgb})`));let d="",f="";return o.length&&(d=` class="${o.join(" ")}"`),i.length&&(f=` style="${i.join(";")}"`),`${n}`}process_hyperlink(e){let n=e.url.split(":");return n.length<1||!this._url_allowlist[n[0]]?"":`${this.escape_txt_for_html(e.text)}`}};function Rv(e,...n){let i=e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,"");return new RegExp(i)}function eT(e,...n){let i=e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,"");return new RegExp(i,"g")}var tT,nT,rT,iT=new Hh;ld=function(e){try{let n=document.createElement("div");return n.innerHTML=e,(n.textContent||n.innerText||"").split(` +`).map(i=>i.trimEnd()).join(` +`)}catch(n){return Re.error("Error parsing HTML content:",n),e}},Uw=function(e){if(!e)return"";try{return ld(iT.ansi_to_html(e))}catch(n){return Re.error("Error converting ANSI to plain text:",n),e}},qh={startCase:e=>{if(!e)return"";if(typeof e!="string")throw Re.error(e),TypeError(`Expected string, got ${typeof e}`);return/[A-Za-z]/.test(e)?h4(e):e},htmlEscape:e=>e&&e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'").replaceAll(` +`," "),withTrailingSlash(e){return e.endsWith("/")?e:`${e}/`},withoutTrailingSlash(e){return e.endsWith("/")?e.slice(0,-1):e},withoutLeadingSlash(e){return e.startsWith("/")?e.slice(1):e},asString:e=>{if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}};var Dv=!1;function aT(e){var o;let n=[],i=[e.console].filter(Boolean).flat();for(let s of i){let c=s.mimetype==="text/plain",d=s.mimetype==="text/html"||s.mimetype==="application/vnd.marimo+traceback";if(c||d){let f=s.channel==="stderr"||s.channel==="marimo-error";switch(s.channel){case"stdout":case"stderr":case"marimo-error":{let p=qh.asString(s.data),y=d?ld(p):p;n.push({timestamp:s.timestamp||Date.now(),level:f?"stderr":"stdout",message:y,cellId:e.cell_id});break}default:break}}}if(n.forEach(Ov.log),i.length===0&&Yu((o=e.output)==null?void 0:o.mimetype)&&Array.isArray(e.output.data)){e.output.data.forEach(c=>{Ov.log({level:"stderr",cellId:e.cell_id,timestamp:e.timestamp??0,message:JSON.stringify(c)})});let s=e.output.data.some(c=>c.type==="internal");!Dv&&s&&(Dv=!0,Nl({title:"An internal error occurred",description:"See console for details.",className:"text-xs text-background bg-(--red-10) py-2 pl-3 *:flex *:gap-3"}))}return n}var Ov={log:e=>{let n=e.level==="stdout"?"gray":e.level==="stderr"?"red":"orange",i=e.level.toUpperCase();console.log(`%c[${i}]`,`color:${n}; padding:2px 0; border-radius:2px; font-weight:bold`,`[${om(e.timestamp)}]`,`(${e.cellId}) ${e.message}`)}};om=function(e){try{return Z3(e).toLocaleTimeString(void 0,{hour12:!0,hour:"numeric",minute:"numeric",second:"numeric"})}catch{return""}},o_=function(e,n){let i=Zu(n);i?i.focus():Re.warn(`[CellFocusManager] focusCellEditor: element not found: ${n}`)},Lw=function(e){let n=document.getElementById(Zn.create(e));n?vf(n):Re.warn(`[CellFocusManager] focusCell: element not found: ${e}`)},i_=function(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})},jh=function(){return document.activeElement instanceof HTMLElement&&document.activeElement.classList.contains("marimo-cell")};function vf(e){try{e.focus()}catch{Re.warn("[CellFocusManager] element may not be focusable",e)}}Im=function(e,n){let{retries:i,delay:o,initialDelay:s=0}=n,c=0,d=()=>{if(c0?setTimeout(d,s):d()};function As({cellId:e,cell:n,isCodeHidden:i,codeFocus:o,variableName:s}){var d;if(!n)return;let c=document.getElementById(Zn.create(e));if(!c){Re.warn("scrollCellIntoView: element not found");return}if(jh()){vf(c);return}if(i)vf(c);else{let f=(d=n.current)==null?void 0:d.editorView;if(!f){Re.warn("scrollCellIntoView: editor not found",e);return}if(f.hasFocus||!document.hasFocus())return;if(Im(()=>(f.focus(),f.hasFocus),{retries:5,delay:20}),o==="top")f.dispatch({selection:{anchor:0,head:0}});else if(o==="bottom"){let p=f.state.doc.line(f.state.doc.lines);f.dispatch({selection:{anchor:p.from,head:p.from}})}else s&&qu(f,s)}c.scrollIntoView({behavior:"smooth",block:"nearest"})}Qw=function(e){let n=document.getElementById(Zn.create(e));if(!n){Re.warn("scrollCellIntoView: element not found");return}n.classList.add("focus-outline"),setTimeout(()=>{n.classList.remove("focus-outline")},2e3),n.scrollIntoView({behavior:"smooth",block:"center"})};function oT(){let e=document.getElementById("App");e==null||e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}function sT(){var e;(e=document.getElementById("App"))==null||e.scrollTo({top:0,behavior:"smooth"})}Zw=function(e){let n=Zu(e);if(n!=null&&n.hasFocus){iy(n,{behavior:"instant"});return}let i=document.getElementById(Zn.create(e));i?i.scrollIntoView({behavior:"instant",block:"nearest"}):Re.warn(`[CellFocusManager] scrollCellIntoView: element not found: ${e}`)},Pr=function({id:e,name:n="_",code:i="",lastCodeRun:o=null,lastExecutionTime:s=null,edited:c=!1,config:d,serializedEditorState:f=null}){return{id:e,config:d||{hide_code:!1,disabled:!1,column:null},name:n,code:i,edited:c,lastCodeRun:o,lastExecutionTime:s,serializedEditorState:f}};function lT(e){return{hide_code:!1,disabled:!1,column:null,...e}}Mr=function(e){return{outline:null,output:null,consoleOutputs:[],status:"idle",staleInputs:!1,interrupted:!1,errored:!1,stopped:!1,runElapsedTimeMs:null,runStartTimestamp:null,lastRunStartTimestamp:null,debuggerActive:!1,...e}};var bf=Gr();function Pv(e){let n={column:0,hide_code:!1,disabled:!1};return{...e,cellData:{[Rs]:Pr({id:Rs,config:n}),...e.cellData},cellRuntime:{[Rs]:Mr(),...e.cellRuntime},cellHandles:{[Rs]:(0,jt.createRef)(),...e.cellHandles}}}function cT(){return Pv({cellIds:Vl.from([]),cellData:{},cellRuntime:{},cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set})}let uT,dT,Mv;({reducer:uT,createActions:dT,useActions:Mv,valueAtom:bt}=Ll(cT,{createNewCell:(e,n)=>{var T;let{cellId:i,before:o,code:s,lastCodeRun:c=null,lastExecutionTime:d=null,autoFocus:f=!0,skipIfCodeExists:p=!1,hideCode:y=!1}=n,w,_;if(p){for(let P of e.cellIds.inOrderIds)if(((T=e.cellData[P])==null?void 0:T.code)===s)return e}if(i==="__end__"){let P=e.cellIds.atOrThrow(0);w=P.id,_=P.length}else if(typeof i=="string"){let P=e.cellIds.findWithId(i);w=P.id,_=P.topLevelIds.indexOf(i)}else if(i.type==="__end__"){let P=e.cellIds.get(i.columnId)||e.cellIds.atOrThrow(0);w=P.id,_=P.length}else throw Error("Invalid cellId");let C=n.newCellId||La.create(),E=o?_:_+1;return{...e,cellIds:e.cellIds.insertId(C,w,E),cellData:{...e.cellData,[C]:Pr({id:C,code:s,lastCodeRun:c,config:lT({hide_code:y}),lastExecutionTime:d,edited:!!s&&s!==c})},cellRuntime:{...e.cellRuntime,[C]:Mr()},cellHandles:{...e.cellHandles,[C]:(0,jt.createRef)()},scrollKey:f?C:null,untouchedNewCells:y?new Set([...e.untouchedNewCells,C]):e.untouchedNewCells}},moveCell:(e,n)=>{let{cellId:i,before:o,direction:s}=n;if(o!==void 0&&s!==void 0&&Re.warn("Both before and direction specified for moveCell. Ignoring one."),s){let f=e.cellIds.findWithId(i),p=e.cellIds.indexOf(f),y=s==="left"?p-1:p+1,w=e.cellIds.at(y);return w?{...e,cellIds:e.cellIds.moveAcrossColumns(f.id,i,w.id,void 0),scrollKey:i}:e}let c=e.cellIds.findWithId(i),d=c.indexOfOrThrow(i);return o&&d===0?{...e,cellIds:e.cellIds.moveWithinColumn(c.id,d,0),scrollKey:i}:!o&&d===c.length-1?{...e,cellIds:e.cellIds.moveWithinColumn(c.id,d,c.length-1),scrollKey:i}:o?{...e,cellIds:e.cellIds.moveWithinColumn(c.id,d,d-1),scrollKey:i}:{...e,cellIds:e.cellIds.moveWithinColumn(c.id,d,d+1),scrollKey:i}},dropCellOverCell:(e,n)=>{let{cellId:i,overCellId:o}=n,s=e.cellIds.findWithId(i),c=e.cellIds.findWithId(o),d=s.indexOfOrThrow(i),f=c.indexOfOrThrow(o);return s.id===c.id?d===f?e:{...e,cellIds:e.cellIds.moveWithinColumn(s.id,d,f),scrollKey:null}:{...e,cellIds:e.cellIds.moveAcrossColumns(s.id,i,c.id,o),scrollKey:null}},dropCellOverColumn:(e,n)=>{let{cellId:i,columnId:o}=n,s=e.cellIds.findWithId(i);return{...e,cellIds:e.cellIds.moveAcrossColumns(s.id,i,o,void 0)}},dropOverNewColumn:(e,n)=>{let{cellId:i}=n;return{...e,cellIds:e.cellIds.moveToNewColumn(i)}},moveColumn:(e,n)=>n.column===n.overColumn?e:{...e,cellIds:e.cellIds.moveColumn(n.column,n.overColumn)},focusCell:(e,n)=>{let i=e.cellIds.findWithId(n.cellId);if(i.length===0)return e;let{cellId:o,where:s}=n,c=i.indexOfOrThrow(o),d;d=s==="before"?Sh(c-1,0,i.length-1):s==="after"?Sh(c+1,0,i.length-1):c;let f=i.atOrThrow(d);return As({cellId:f,cell:e.cellHandles[f],isCodeHidden:qs(e,f),codeFocus:s==="after"?"top":"bottom",variableName:void 0}),e},focusTopCell:e=>{let n=e.cellIds.getColumns().at(0);if(n===void 0||n.length===0)return e;let i=n.first();return As({cellId:i,cell:e.cellHandles[i],isCodeHidden:qs(e,i),codeFocus:void 0,variableName:void 0}),sT(),e},focusBottomCell:e=>{let n=e.cellIds.getColumns().at(-1);if(n===void 0||n.length===0)return e;let i=n.last();return As({cellId:i,cell:e.cellHandles[i],isCodeHidden:qs(e,i),codeFocus:void 0,variableName:void 0}),oT(),e},sendToTop:(e,n)=>{let i=e.cellIds.findWithId(n.cellId);if(i.length===0)return e;let{cellId:o,scroll:s=!0}=n,c=i.indexOfOrThrow(o);return c===0?e:{...e,cellIds:e.cellIds.moveWithinColumn(i.id,c,0),scrollKey:s?o:null}},sendToBottom:(e,n)=>{let i=e.cellIds.findWithId(n.cellId);if(i.length===0)return e;let{cellId:o,scroll:s=!0}=n,c=i.indexOfOrThrow(o),d=i.length-1;return c===d?e:{...e,cellIds:e.cellIds.moveWithinColumn(i.id,c,d),scrollKey:s?o:null}},addColumn:(e,n)=>{let i=La.create();return{...e,cellIds:e.cellIds.addColumn(n.columnId,[i]),cellData:{...e.cellData,[i]:Pr({id:i})},cellRuntime:{...e.cellRuntime,[i]:Mr()},cellHandles:{...e.cellHandles,[i]:(0,jt.createRef)()},scrollKey:i}},addColumnBreakpoint:(e,n)=>{let{cellId:i}=n;return e.cellIds.getColumns()[0].inOrderIds[0]===i?e:{...e,cellIds:e.cellIds.insertBreakpoint(i)}},deleteColumn:(e,n)=>{let{columnId:i}=n;return{...e,cellIds:e.cellIds.delete(i)}},mergeAllColumns:e=>({...e,cellIds:e.cellIds.mergeAllColumns()}),compactColumns:e=>({...e,cellIds:e.cellIds.compact()}),deleteCell:(e,n)=>{var p,y;let i=n.cellId;if(e.cellIds.hasOnlyOneId())return e;let o=e.cellIds.findWithId(i),s=o.indexOfOrThrow(i),c=s===0?1:s-1,d=null;o.length>1&&(d=o.atOrThrow(c));let f=(y=(p=e.cellHandles[i].current)==null?void 0:p.editorView)==null?void 0:y.state.toJSON({history:tD});return f.doc=e.cellData[i].code,hT(i),{...e,cellIds:e.cellIds.deleteById(i),history:[...e.history,{name:e.cellData[i].name,serializedEditorState:f,column:o.id,index:s,isSetupCell:i===yr}],scrollKey:d}},undoDeleteCell:e=>{if(e.history.length===0)return e;let{name:n,serializedEditorState:i={doc:""},column:o,index:s,isSetupCell:c}=e.history[e.history.length-1],d=c?yr:La.create(),f=Pr({id:d,name:n,code:i.doc,edited:i.doc.trim().length>0,serializedEditorState:i});return{...e,cellIds:e.cellIds.insertId(d,o,s),cellData:{...e.cellData,[d]:f},cellRuntime:{...e.cellRuntime,[d]:Mr()},cellHandles:{...e.cellHandles,[d]:(0,jt.createRef)()},history:e.history.slice(0,-1),scrollKey:d}},clearSerializedEditorState:(e,n)=>{let{cellId:i}=n;return zs({state:e,cellId:i,cellReducer:o=>({...o,serializedEditorState:null})})},updateCellCode:(e,n)=>{let{cellId:i,code:o,formattingChange:s}=n;return e.cellData[i]?zs({state:e,cellId:i,cellReducer:c=>s?{...c,code:o,lastCodeRun:c.edited?c.lastCodeRun:o}:{...c,code:o,edited:o.trim()!==c.lastCodeRun}}):e},updateCellName:(e,n)=>{let{cellId:i,name:o}=n;return zs({state:e,cellId:i,cellReducer:s=>({...s,name:o})})},updateCellConfig:(e,n)=>{let{cellId:i,config:o}=n;return zs({state:e,cellId:i,cellReducer:s=>({...s,config:{...s.config,...o}})})},prepareForRun:(e,n)=>zs({state:js({state:e,cellId:n.cellId,cellReducer:i=>Y3(i)}),cellId:n.cellId,cellReducer:i=>({...i,edited:!1,lastCodeRun:i.code.trim()})}),handleCellMessage:(e,n)=>{let i=n.cell_id,o=js({state:e,cellId:i,cellReducer:s=>X3(s,n)});return{...o,cellLogs:[...o.cellLogs,...aT(n)]}},setCellIds:(e,n)=>{if(t4(e.cellIds.inOrderIds,n.cellIds))return e;let i={...e.cellData},o={...e.cellRuntime},s={...e.cellHandles};for(let c of n.cellIds)c in e.cellData||(i[c]=Pr({id:c})),c in e.cellRuntime||(o[c]=Mr()),c in e.cellHandles||(s[c]=(0,jt.createRef)());return{...e,cellIds:Vl.fromWithPreviousShape(n.cellIds,e.cellIds),cellData:i,cellRuntime:o,cellHandles:s}},setCellCodes:(e,n)=>{In(n.codes.length===n.ids.length,"Expected codes and ids to have the same length");let i={...e},o=({cell:s,code:c,cellId:d})=>{if(!s)return Pr({id:d,code:c,lastCodeRun:n.codeIsStale?null:c,edited:n.codeIsStale&&c.trim().length>0});let f=n.codeIsStale?s.lastCodeRun:c,p=f?f.trim()!==c.trim():!!c;if(s.code.trim()===c.trim())return{...s,code:c,edited:p,lastCodeRun:f};if(!Xh()){let y=i.cellHandles[d].current;y!=null&&y.editorViewOrNull&&xo(y.editorViewOrNull,c)}return{...s,code:c,edited:p,lastCodeRun:f}};for(let[s,c]of Tx(n.ids,n.codes))s===void 0||c===void 0||(i={...i,cellData:{...i.cellData,[s]:o({cell:i.cellData[s],code:c,cellId:s})}});return i},setStdinResponse:(e,n)=>{let{cellId:i,response:o,outputIndex:s}=n;return js({state:e,cellId:i,cellReducer:c=>{let d=[...c.consoleOutputs],f=d[s];return f.channel==="stdin"?(d[s]={channel:"stdin",mimetype:f.mimetype,data:f.data,timestamp:f.timestamp,response:o},{...c,interrupted:!1,consoleOutputs:d}):(Re.warn("Expected stdin output"),c)}})},setCells:(e,n)=>{let i=Object.fromEntries(n.map(s=>[s.id,s])),o=Object.fromEntries(n.map(s=>[s.id,Mr()]));return Pv({...e,cellIds:Vl.fromIdsAndColumns(n.map(s=>[s.id,s.config.column])),cellData:i,cellRuntime:o,cellHandles:Object.fromEntries(n.map(s=>[s.id,(0,jt.createRef)()]))})},moveToNextCell:(e,n)=>{let{cellId:i,before:o,noCreate:s=!1}=n;if(i==="__scratch__")return e;let c=e.cellIds.findWithId(i),d=c.indexOfOrThrow(i),f=o?d-1:d+1,p=f===c.length,y=f===-1;if(p&&!s){let w=La.create();return{...e,cellIds:e.cellIds.insertId(w,c.id,f),cellData:{...e.cellData,[w]:Pr({id:w})},cellRuntime:{...e.cellRuntime,[w]:Mr()},cellHandles:{...e.cellHandles,[w]:(0,jt.createRef)()},scrollKey:w}}if(y&&!s){let w=La.create();return{...e,cellIds:e.cellIds.insertId(w,c.id,0),cellData:{...e.cellData,[w]:Pr({id:w})},cellRuntime:{...e.cellRuntime,[w]:Mr()},cellHandles:{...e.cellHandles,[w]:(0,jt.createRef)()},scrollKey:w}}if((p||y)&&s)return e;if(f>=0&&f{let{cellId:i}=n;if(e.untouchedNewCells.has(i)){let o=new Set(e.untouchedNewCells);return o.delete(i),{...e,untouchedNewCells:o}}return e},scrollToTarget:e=>{let n=e.scrollKey;if(n===null)return e;let i=e.cellIds.findWithId(n),o=i.indexOfOrThrow(n),s=o===i.length-1?i.last():i.atOrThrow(o);return As({cellId:s,cell:e.cellHandles[s],isCodeHidden:qs(e,s),codeFocus:void 0,variableName:void 0}),{...e,scrollKey:null}},foldAll:e=>(Wx(Object.values(e.cellHandles).map(n=>{var i;return(i=n.current)==null?void 0:i.editorView})),e),unfoldAll:e=>(Ux(Object.values(e.cellHandles).map(n=>{var i;return(i=n.current)==null?void 0:i.editorView})),e),clearLogs:e=>({...e,cellLogs:[]}),collapseCell:(e,n)=>{let{cellId:i}=n,o=e.cellIds.findWithId(i),s=o.topLevelIds.map(f=>e.cellRuntime[f].outline),c=Sv(o.indexOfOrThrow(i),s);if(!c)return e;let d=o.atOrThrow(c[1]);return{...e,cellIds:e.cellIds.transformWithCellId(i,f=>f.collapse(i,d)),scrollKey:i}},expandCell:(e,n)=>{let{cellId:i}=n;return{...e,cellIds:e.cellIds.transformWithCellId(i,o=>o.expand(i)),scrollKey:i}},collapseAllCells:e=>({...e,cellIds:e.cellIds.transformAll(n=>{let i=n.topLevelIds.map(p=>e.cellRuntime[p].outline),o=[...n.nodes],s=[],c=[],d=o.length-1;for(;d>=0;){let p=Sv(d,i);if(p){let y=d,w=p[1],_=s.find(T=>T.start<=w&&T.end===w);_&&(w=_.start),s.push({start:y,end:w});let C=n.atOrThrow(y),E=n.atOrThrow(w);c.push({id:C,until:E})}else c.push(null);d--}let f=c.reverse();return n.collapseAll(f)})}),expandAllCells:e=>({...e,cellIds:e.cellIds.transformAll(n=>n.expandAll())}),showCellIfHidden:(e,n)=>{let{cellId:i}=n,o=e.cellIds.findWithId(i),s=o,c=o.findAndExpandDeep(i);return c.equals(s)?e:{...e,cellIds:e.cellIds.transformWithCellId(i,()=>c)}},splitCell:(e,n)=>{var w;let{cellId:i}=n,o=e.cellIds.findWithId(i),s=o.indexOfOrThrow(i),c=e.cellData[i],d=e.cellHandles[i].current;if((d==null?void 0:d.editorView)==null)return e;let{beforeCursorCode:f,afterCursorCode:p}=H3(d.editorView);xo(d.editorView,f);let y=La.create();return{...e,cellIds:e.cellIds.insertId(y,o.id,s+1),cellData:{...e.cellData,[i]:{...c,code:f,edited:!!f&&f.trim()!==((w=c.lastCodeRun)==null?void 0:w.trim())},[y]:Pr({id:y,code:p,edited:!!p})},cellRuntime:{...e.cellRuntime,[i]:{...e.cellRuntime[i],output:null,consoleOutputs:[]},[y]:Mr()},cellHandles:{...e.cellHandles,[y]:(0,jt.createRef)()},scrollKey:y}},undoSplitCell:(e,n)=>{var d;let{cellId:i,snapshot:o}=n,s=e.cellData[i],c=e.cellHandles[i].current;return(c==null?void 0:c.editorView)==null?e:(xo(c.editorView,o),{...e,cellIds:e.cellIds.transformWithCellId(i,f=>{let p=f.indexOfOrThrow(i)+1;return f.deleteAtIndex(p)}),cellData:{...e.cellData,[i]:{...s,code:o,edited:!!o&&(o==null?void 0:o.trim())!==((d=s.lastCodeRun)==null?void 0:d.trim())}},cellRuntime:{...e.cellRuntime,[i]:{...e.cellRuntime[i],output:null,consoleOutputs:[]}},cellHandles:{...e.cellHandles}})},clearCellOutput:(e,n)=>{let{cellId:i}=n;return js({state:e,cellId:i,cellReducer:o=>({...o,output:null,consoleOutputs:[]})})},clearCellConsoleOutput:(e,n)=>{let{cellId:i}=n;return js({state:e,cellId:i,cellReducer:o=>({...o,consoleOutputs:o.consoleOutputs.filter(s=>s.channel==="stdin"&&s.response==null)})})},clearAllCellOutputs:e=>{let n={...e.cellRuntime};for(let i of e.cellIds.inOrderIds)n[i]={...n[i],output:null,consoleOutputs:[]};return{...e,cellRuntime:n}},addSetupCellIfDoesntExist:(e,n)=>{let{code:i}=n;return e.cellIds.setupCellExists()?{...e,scrollKey:yr}:{...e,cellIds:e.cellIds.insertId(yr,e.cellIds.atOrThrow(0).id,0),cellData:{...e.cellData,[yr]:Pr({id:yr,name:yr,code:i,edited:!!i})},cellRuntime:{...e.cellRuntime,[yr]:Mr()},cellHandles:{...e.cellHandles,[yr]:(0,jt.createRef)()},scrollKey:yr}}}));function qs(e,n){return!!e.cellData[n].config.hide_code&&!e.untouchedNewCells.has(n)}function js({state:e,cellId:n,cellReducer:i}){return n in e.cellRuntime?{...e,cellRuntime:{...e.cellRuntime,[n]:i(e.cellRuntime[n])}}:(Re.warn(`Cell ${n} not found in state`),e)}function zs({state:e,cellId:n,cellReducer:i}){return n in e.cellData?{...e,cellData:{...e.cellData,[n]:i(e.cellData[n])}}:(Re.warn(`Cell ${n} not found in state`),e)}b_=function(e){let n=e.cellData,i={column:null};return e.cellIds.getColumns().length>1?e.cellIds.getColumns().flatMap((o,s)=>o.inOrderIds.map((c,d)=>{let f={...i};return d===0&&(f.column=s),{...n[c].config,...f}})):e.cellIds.getColumns().flatMap(o=>o.inOrderIds.map(s=>({...n[s].config,...i})))},Gu=ze(e=>e(bt).cellIds),p_=ze(e=>e(Gu).hasOnlyOneId()),E_=ze(e=>Nm(e(bt)).length>0),ze(e=>pm(e(bt)).length>0);let Lv;tx=ze(e=>Ek(e(bt))),sx=ze(e=>Sk(e(bt))),nd=ze(e=>{let{cellIds:n,cellRuntime:i,cellData:o}=e(bt);return n.inOrderIds.map(s=>{var f;let c=i[s],{name:d}=o[s];if(Yu((f=c.output)==null?void 0:f.mimetype)){In(Array.isArray(c.output.data),"Expected array data");let p=c.output.data.filter(y=>!y.type.includes("ancestor"));if(p.length>0)return{output:{...c.output,data:p},cellId:s,cellName:d}}return null}).filter(Boolean)}),dx=ze(e=>{let{cellIds:n,cellRuntime:i}=e(bt);return U3(n.inOrderIds.map(o=>i[o].outline))}),X_=ze(e=>e(nd).length),Lv=e4(ze(e=>{let{cellIds:n,cellData:i}=e(bt);return ci.fromEntries(n.inOrderIds.map(o=>{var s;return[o,(s=i[o])==null?void 0:s.name]}))}));var fT=ze(e=>e(bt).scrollKey);Jw=()=>Yn(bt),N_=()=>Yn(Gu),M_=()=>Yn(Lv),qw=()=>Yn(nd),Pw=()=>Yn(bt).cellLogs,Yw=()=>Yn(fT),ad=()=>lt.get(bt),K_=()=>{let{cellIds:e,cellData:n}=lt.get(bt);return e.inOrderIds.map(i=>{var o;return(o=n[i])==null?void 0:o.name}).filter(Boolean)};var pT=jx(Lx(bt,e=>e.cellIds.inOrderIds.map(n=>e.cellData[n])));Fw=()=>Y2(pT),$_=ze(e=>e(bt).cellRuntime),g_=ze(e=>xk(e(bt))),e_=ze(e=>kk(e(bt))),Iw=ze(e=>e(bt).cellIds.colLength),R_=ze(e=>e(bt).cellIds.idLength>0),Z_=ze(e=>e(bt).cellIds.getColumnIds()),od=yd(e=>ze(n=>n(bt).cellData[e]));var wf=yd(e=>ze(n=>n(bt).cellRuntime[e]));const Nv=yd(e=>ze(n=>n(bt).cellHandles[e]));function hT(e){od.remove(e),wf.remove(e),Nv.remove(e)}t_=e=>{let n=(0,bf.c)(2),i;return n[0]===e?i=n[1]:(i=od(e),n[0]=e,n[1]=i),Yn(i)},Gw=e=>{let n=(0,bf.c)(2),i;return n[0]===e?i=n[1]:(i=wf(e),n[0]=e,n[1]=i),Yn(i)},Xw=e=>{let n=(0,bf.c)(2),i;return n[0]===e?i=n[1]:(i=Nv(e),n[0]=e,n[1]=i),Yn(i)},Om=()=>{let{cellIds:e,cellHandles:n}=lt.get(bt);return e.inOrderIds.map(i=>{var o,s;return(s=(o=n[i])==null?void 0:o.current)==null?void 0:s.editorViewOrNull}).filter(Boolean)},Zu=e=>{var i;let{cellHandles:n}=lt.get(bt);return(i=n[e].current)==null?void 0:i.editorView},A_=function(e){let{cellIds:n,cellData:i,cellRuntime:o}=e;return n.getColumns().flatMap(s=>s.topLevelIds.map(c=>({...i[c],...o[c]})))},y_=function(e){return ze(n=>n(bt).untouchedNewCells.has(e))};function mT(e){let n=wf(e);return ze(i=>{let o=i(n);if(!o||o.status==="queued"||o.status==="running")return;let s=[],c=o.consoleOutputs;if(c&&c.length>0){let f=c.find(p=>p.mimetype==="application/vnd.marimo+traceback");if(f){let p=f.data;s.push(...Uh(p))}}let d=o.output;if((d==null?void 0:d.mimetype)==="application/vnd.marimo+error"){let f=d.data;if(Array.isArray(f))for(let p of f)p.type==="syntax"&&p.lineno!=null&&s.push({kind:"cell",cellId:e,lineNumber:p.lineno}),p.type==="import-star"&&p.lineno!=null&&s.push({kind:"cell",cellId:e,lineNumber:p.lineno})}return s.length>0?s:void 0})}ux=function(){return Mv()}})();export{Ow as $,Lh as $n,Au as $r,qu as $t,Pw as A,ju as An,Il as Ar,Mw as At,Lw as B,Nh as Bn,Da as Br,Nw as Bt,Iw as C,Ih as Cn,Aw as Cr,gr as Ct,qw as D,jw as Dn,bo as Dr,zw as Dt,Fw as E,zu as En,Bw as Er,Hw as Et,Pr as F,wo as Fn,Oa as Fr,Ah as Ft,qh as G,Cs as Gn,Fu as Gr,Vw as Gt,jh as H,Bu as Hn,$w as Hr,zh as Ht,Mr as I,Fh as In,Ww as Ir,Bh as It,Hh as J,Vh as Jn,Es as Jr,Al as Jt,Uw as K,$h as Kn,Ts as Kr,Kw as Kt,Qw as L,Wh as Ln,Uh as Lr,Kh as Lt,Gw as M,ql as Mn,jl as Mr,di as Mt,Jw as N,Qh as Nn,Hu as Nr,Vu as Nt,Xw as O,Pa as On,$u as Or,Gh as Ot,Yw as P,Jh as Pn,zl as Pr,Wu as Pt,Xh as Q,Yh as Qn,Fl as Qr,Zh as Qt,Zw as R,em as Rn,tm as Rr,Bl as Rt,e_ as S,Uu as Sn,nm as Sr,Hl as St,t_ as T,n_ as Tn,Ku as Tr,r_ as Tt,i_ as U,rm as Un,im as Ur,a_ as Ut,o_ as V,_o as Vn,Vl as Vr,am as Vt,om as W,Qu as Wn,s_ as Wr,l_ as Wt,c_ as X,sm as Xn,u_ as Xr,d_ as Xt,lm as Y,cm as Yn,$n as Yr,f_ as Yt,um as Z,dm as Zn,$l as Zr,fm as Zt,p_ as _,HD as __tla,Wl as _n,Pt as _r,h_ as _t,Gu as a,Zn as ai,Ju as an,m_ as ar,xo as at,g_ as b,Ma as bn,pm as br,hm as bt,y_ as c,Xu as ci,mm as cn,v_ as cr,Lr as ct,b_ as d,w_ as di,Ul as dn,__ as dr,gm as dt,x_ as ei,k_ as en,ym as er,Yu as et,Zu as f,S_ as fi,C_ as fn,Kl as fr,vm as ft,E_ as g,T_ as gn,ko as gr,ed as gt,R_ as h,td as hi,Ql as hn,Vi as hr,D_ as ht,nd as i,O_ as ii,rd as in,P_ as ir,Jr as it,M_ as j,L_ as jn,Gl as jr,id as jt,N_ as k,I_ as kn,bm as kr,wm as kt,A_ as l,q_ as li,j_ as ln,z_ as lr,F_ as lt,ad as m,_m as mi,B_ as mn,H_ as mr,xm as mt,od as n,km as ni,V_ as nn,sd as nr,Sm as nt,$_ as o,Rs as oi,Cm as on,W_ as or,U_ as ot,K_ as p,Em as pi,Q_ as pn,G_ as pr,Tm as pt,ld as q,Rm as qn,J_ as qr,$i as qt,X_ as r,La as ri,Y_ as rn,So as rr,Dm as rt,Z_ as s,yr as si,cd as sn,ud as sr,ex as st,tx as t,nx as ti,dd as tn,rx as tr,ix as tt,Om as u,Pm as ui,ax as un,ox as ur,fd as ut,sx as v,lx as vn,Wi as vr,cx as vt,ux as w,Jl as wn,Mm as wr,pd as wt,dx as x,fx as xn,px as xr,Lm as xt,bt as y,hx as yn,Nm as yr,mx as yt,Im as z,Am as zn,qm as zr,Xl as zt}; diff --git a/docs/assets/cells-jmgGt1lS.css b/docs/assets/cells-jmgGt1lS.css new file mode 100644 index 0000000..6c93844 --- /dev/null +++ b/docs/assets/cells-jmgGt1lS.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-border-style:solid;--tw-font-weight:initial}}}.cm-tooltip .documentation,.docs-documentation{font-family:var(--text-font),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:normal}:is(.cm-tooltip .documentation,.docs-documentation) ol{padding-left:1.5rem;list-style-type:decimal}:is(.cm-tooltip .documentation,.docs-documentation) ul{padding-left:1.5rem;list-style-type:disc}:is(.cm-tooltip .documentation,.docs-documentation) p{white-space:pre-wrap;padding:.4rem 0}:is(.cm-tooltip .documentation,.docs-documentation) .section{line-height:normal}:is(.cm-tooltip .documentation,.docs-documentation) .docutils dd,:is(.cm-tooltip .documentation,.docs-documentation) .docutils p,:is(.cm-tooltip .documentation,.docs-documentation) .paragraph,:is(.cm-tooltip .documentation,.docs-documentation) li,:is(.cm-tooltip .documentation,.docs-documentation) ol,:is(.cm-tooltip .documentation,.docs-documentation) ul{white-space:normal}:is(.cm-tooltip .documentation,.docs-documentation) table{border-style:var(--tw-border-style);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));margin-block:calc(var(--spacing,.25rem)*2);border-width:1px;border-radius:.25rem}:is(.cm-tooltip .documentation,.docs-documentation) table td,:is(.cm-tooltip .documentation,.docs-documentation) table th{border-style:var(--tw-border-style);padding:calc(var(--spacing,.25rem)*2);border-width:1px}:is(.cm-tooltip .documentation,.docs-documentation) table th{background-color:var(--slate-2)}:is(.cm-tooltip .documentation,.docs-documentation) table tr:nth-child(2n){background-color:var(--slate-1)}:is(.cm-tooltip .documentation,.docs-documentation) code{background-color:var(--slate-2);border-style:var(--tw-border-style);font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));margin-bottom:calc(var(--spacing,.25rem)*4);margin-top:calc(var(--spacing,.25rem)*2);padding-inline:calc(var(--spacing,.25rem)*1);border-width:1px;border-radius:.25rem}:is(.cm-tooltip .documentation,.docs-documentation) code:empty{display:none}:is(.cm-tooltip .documentation,.docs-documentation) h1,:is(.cm-tooltip .documentation,.docs-documentation) h2{border-bottom-style:var(--tw-border-style);color:var(--primary);font-size:var(--text-xl,1.25rem);font-weight:600;line-height:var(--tw-leading,var(--text-xl--line-height,1.4));margin-bottom:calc(var(--spacing,.25rem)*1);padding-bottom:calc(var(--spacing,.25rem)*1);border-bottom-width:1px}@supports (color:color-mix(in lab,red,red)){:is(.cm-tooltip .documentation,.docs-documentation) h1,:is(.cm-tooltip .documentation,.docs-documentation) h2{color:color-mix(in srgb,var(--primary),transparent 0%)}}:is(.cm-tooltip .documentation,.docs-documentation) dt{--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}:is(.cm-tooltip .documentation,.docs-documentation) dt span{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400)}:is(.cm-tooltip .documentation,.docs-documentation) .doctest-block,:is(.cm-tooltip .documentation,.docs-documentation) .literal-block{background-color:var(--slate-2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));padding:calc(var(--spacing,.25rem)*2);white-space:pre-wrap;border-radius:.25rem}:is(.cm-tooltip .documentation,.docs-documentation) .docutils.literal{background-color:var(--slate-2);border-radius:calc(var(--radius) - 2px);border-style:var(--tw-border-style);font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));padding-inline:calc(var(--spacing,.25rem)*1);border-width:1px}:is(.cm-tooltip .documentation,.docs-documentation) .codehilite code,:is(.cm-tooltip .documentation,.docs-documentation) pre>code{background-color:var(--slate-2);border-radius:calc(var(--radius) - 2px);border-style:var(--tw-border-style);font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));padding:calc(var(--spacing,.25rem)*2);white-space:pre-wrap;border-width:1px;width:100%;display:inline-block}:is(.cm-tooltip .documentation,.docs-documentation) blockquote{margin-left:calc(var(--spacing,.25rem)*2);padding-left:calc(var(--spacing,.25rem)*2);white-space:pre-wrap}:is(.cm-tooltip .documentation,.docs-documentation) blockquote .docutils dt,:is(.cm-tooltip .documentation,.docs-documentation) blockquote dl.docutils,:is(.cm-tooltip .documentation,.docs-documentation) blockquote p{font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-sm,.875rem);font-weight:400;line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));white-space:normal;padding:0}.docutils dd{white-space:pre-wrap;padding-left:1rem}.cm-tooltip .docs-documentation,.cm-tooltip .documentation{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));padding-block:calc(var(--spacing,.25rem)*1);padding-inline:calc(var(--spacing,.25rem)*2)}:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) h1{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,1.5))}:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) .codehilite code,:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) .doctest-block,:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) .docutils.literal,:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) .literal-block,:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) blockquote .docutils dt,:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) blockquote dl.docutils,:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) blockquote p,:is(.cm-tooltip .documentation,.cm-tooltip .docs-documentation) code{font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false} diff --git a/docs/assets/channel-BftudkVr.js b/docs/assets/channel-BftudkVr.js new file mode 100644 index 0000000..931995e --- /dev/null +++ b/docs/assets/channel-BftudkVr.js @@ -0,0 +1 @@ +import{et as r,tt as e}from"./chunk-ABZYJK2D-DAD3GlgM.js";var o=(t,a)=>e.lang.round(r.parse(t)[a]);export{o as t}; diff --git a/docs/assets/chart-no-axes-column-D42sFB6d.js b/docs/assets/chart-no-axes-column-D42sFB6d.js new file mode 100644 index 0000000..d8988fc --- /dev/null +++ b/docs/assets/chart-no-axes-column-D42sFB6d.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var a=t("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]);export{a as t}; diff --git a/docs/assets/chat-components-BQ_d4LQG.js b/docs/assets/chat-components-BQ_d4LQG.js new file mode 100644 index 0000000..b29b9f5 --- /dev/null +++ b/docs/assets/chat-components-BQ_d4LQG.js @@ -0,0 +1 @@ +import{s as f}from"./chunk-LvLJmgfZ.js";import{t as y}from"./react-BGmjiNul.js";import{Un as g}from"./cells-CmJW_FeD.js";import{t as j}from"./compiler-runtime-DeeZ7FnK.js";import{t as N}from"./jsx-runtime-DN_bIXfG.js";import{t as k}from"./cn-C1rgT0yh.js";import{t as x}from"./createLucideIcon-CW2xpJ57.js";import{h as w}from"./select-D9lTzMzP.js";import{t as u}from"./file-BnFXtaZZ.js";import{n as M}from"./play-BJDBXApx.js";var b=x("bot-message-square",[["path",{d:"M12 6V2H8",key:"1155em"}],["path",{d:"M15 11v2",key:"i11awn"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z",key:"11gyqh"}],["path",{d:"M9 11v2",key:"1ueba0"}]]),v=x("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]),d=j(),_=f(y(),1),o=f(N(),1);const q=i=>{var c;let e=(0,d.c)(6),{attachment:t}=i;if((c=t.mediaType)!=null&&c.startsWith("image/")){let a=t.filename||"Attachment",m;return e[0]!==t.url||e[1]!==a?(m=(0,o.jsx)("img",{src:t.url,alt:a,className:"max-h-[100px] max-w-[100px] object-contain mb-1.5"}),e[0]=t.url,e[1]=a,e[2]=m):m=e[2],m}let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(u,{className:"h-3 w-3 mt-0.5"}),e[3]=s):s=e[3];let l=t.filename||"Attachment",r;return e[4]===l?r=e[5]:(r=(0,o.jsxs)("div",{className:"flex flex-row gap-1 items-center text-xs",children:[s,l]}),e[4]=l,e[5]=r),r},A=i=>{let e=(0,d.c)(12),{file:t,className:s,onRemove:l}=i,[r,c]=(0,_.useState)(!1),a;e[0]===s?a=e[1]:(a=k("py-1 px-1.5 bg-muted rounded-md cursor-pointer flex flex-row gap-1 items-center text-xs",s),e[0]=s,e[1]=a);let m,p;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=()=>c(!0),p=()=>c(!1),e[2]=m,e[3]=p):(m=e[2],p=e[3]);let n;e[4]!==t||e[5]!==r||e[6]!==l?(n=r?(0,o.jsx)(w,{className:"h-3 w-3 mt-0.5",onClick:l}):S(t),e[4]=t,e[5]=r,e[6]=l,e[7]=n):n=e[7];let h;return e[8]!==t.name||e[9]!==a||e[10]!==n?(h=(0,o.jsxs)("div",{className:a,onMouseEnter:m,onMouseLeave:p,children:[n,t.name]}),e[8]=t.name,e[9]=a,e[10]=n,e[11]=h):h=e[11],h};function S(i){let e="h-3 w-3 mt-0.5";return i.type.startsWith("image/")?(0,o.jsx)(M,{className:e}):i.type.startsWith("text/")?(0,o.jsx)(g,{className:e}):(0,o.jsx)(u,{className:e})}export{b as i,A as n,v as r,q as t}; diff --git a/docs/assets/chat-display-ZS_L6G-P.js b/docs/assets/chat-display-ZS_L6G-P.js new file mode 100644 index 0000000..501d865 --- /dev/null +++ b/docs/assets/chat-display-ZS_L6G-P.js @@ -0,0 +1 @@ +import{s as B}from"./chunk-LvLJmgfZ.js";import{t as U}from"./react-BGmjiNul.js";import{Hn as $,Jn as G}from"./cells-CmJW_FeD.js";import{C as P,P as K,R as z,T as Q}from"./zod-Cg4WLWh2.js";import{t as E}from"./compiler-runtime-DeeZ7FnK.js";import{i as X}from"./useLifecycle-CmDXEyIC.js";import{t as L}from"./isEmpty-DIxUV1UR.js";import{d as W}from"./hotkeys-uKX61F1_.js";import{t as Y}from"./jsx-runtime-DN_bIXfG.js";import{t as A}from"./cn-C1rgT0yh.js";import{i as Z,t as ee}from"./chat-components-BQ_d4LQG.js";import{t as C}from"./markdown-renderer-DjqhqmES.js";import{t as te}from"./circle-check-big-OIMTUpe6.js";import{n as se}from"./spinner-C1czjtp7.js";import{c as ae}from"./datasource-CCq9qyVG.js";import{a as D,i as H,n as I,r as M}from"./multi-map-CQd4MZr5.js";var re=E();U();var t=B(Y(),1);const le=n=>{let e=(0,re.c)(13),{reasoning:a,index:l,isStreaming:s}=n,r=l===void 0?0:l,m=s===void 0?!1:s,o=m?"reasoning":void 0,x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(Z,{className:"h-3 w-3"}),e[0]=x):x=e[0];let p=m?"Thinking":"View reasoning",c;e[1]!==a.length||e[2]!==p?(c=(0,t.jsx)(D,{className:"text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[x,p," (",a.length," ","chars)"]})}),e[1]=a.length,e[2]=p,e[3]=c):c=e[3];let i;e[4]===a?i=e[5]:(i=(0,t.jsx)(M,{className:"pb-2 px-2",children:(0,t.jsx)("div",{className:"bg-muted/30 border border-muted/50 rounded-md p-3 italic text-muted-foreground/90 relative",children:(0,t.jsx)("div",{className:"pr-6",children:(0,t.jsx)(C,{content:a})})})}),e[4]=a,e[5]=i);let d;e[6]!==c||e[7]!==i?(d=(0,t.jsxs)(H,{value:"reasoning",className:"border-0",children:[c,i]}),e[6]=c,e[7]=i,e[8]=d):d=e[8];let u;return e[9]!==r||e[10]!==o||e[11]!==d?(u=(0,t.jsx)(I,{type:"single",collapsible:!0,className:"w-full mb-2",value:o,children:d},r),e[9]=r,e[10]=o,e[11]=d,e[12]=u):u=e[12],u};var F=E(),ne=K({status:z().default("success"),auth_required:Q().default(!1),action_url:P(),next_steps:P(),meta:P(),message:z().nullish()}).passthrough(),oe=n=>{let e=(0,F.c)(12),{data:a}=n,l;if(e[0]!==a){let{status:s,auth_required:r,action_url:m,meta:o,next_steps:x,message:p,...c}=a,i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("h3",{className:"text-xs font-semibold text-muted-foreground",children:"Tool Result"}),e[2]=i):i=e[2];let d;e[3]===s?d=e[4]:(d=(0,t.jsx)("span",{className:"text-xs px-2 py-0.5 bg-[var(--grass-2)] text-[var(--grass-11)] rounded-full font-medium capitalize",children:s}),e[3]=s,e[4]=d);let u;e[5]===r?u=e[6]:(u=r&&(0,t.jsx)("span",{className:"text-xs px-2 py-0.5 bg-[var(--amber-2)] text-[var(--amber-11)] rounded-full",children:"Auth Required"}),e[5]=r,e[6]=u);let h;e[7]!==d||e[8]!==u?(h=(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[i,(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[d,u]})]}),e[7]=d,e[8]=u,e[9]=h):h=e[9];let f;e[10]===p?f=e[11]:(f=p&&(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)($,{className:"h-3 w-3 text-[var(--blue-11)] mt-0.5 flex-shrink-0"}),(0,t.jsx)("div",{className:"text-xs text-foreground",children:p})]}),e[10]=p,e[11]=f),l=(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[h,f,c&&(0,t.jsx)("div",{className:"space-y-3",children:Object.entries(c).map(me)})]}),e[0]=a,e[1]=l}else l=e[1];return l},ie=n=>{let e=(0,F.c)(8),{result:a}=n,l;e[0]===a?l=e[1]:(l=ne.safeParse(a),e[0]=a,e[1]=l);let s=l;if(s.success){let o;return e[2]===s.data?o=e[3]:(o=(0,t.jsx)(oe,{data:s.data}),e[2]=s.data,e[3]=o),o}let r;e[4]===a?r=e[5]:(r=typeof a=="string"?a:JSON.stringify(a,null,2),e[4]=a,e[5]=r);let m;return e[6]===r?m=e[7]:(m=(0,t.jsx)("div",{className:"text-xs font-medium text-muted-foreground mb-1 max-h-64 overflow-y-auto scrollbar-thin",children:r}),e[6]=r,e[7]=m),m},de=n=>{let e=(0,F.c)(9),{input:a}=n;if(!(a&&a!==null))return null;let l;e[0]===a?l=e[1]:(l=L(a),e[0]=a,e[1]=l);let s=l,r=typeof a=="object"&&Object.keys(a).length>0,m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("h3",{className:"text-xs font-semibold text-muted-foreground",children:"Tool Request"}),e[2]=m):m=e[2];let o;e[3]!==a||e[4]!==s||e[5]!==r?(o=s?"{}":r?JSON.stringify(a,null,2):String(a),e[3]=a,e[4]=s,e[5]=r,e[6]=o):o=e[6];let x;return e[7]===o?x=e[8]:(x=(0,t.jsxs)("div",{className:"space-y-2",children:[m,(0,t.jsx)("pre",{className:"bg-[var(--slate-2)] p-2 text-muted-foreground border border-[var(--slate-4)] rounded text-xs overflow-auto scrollbar-thin max-h-64",children:o})]}),e[7]=o,e[8]=x),x};const V=n=>{let e=(0,F.c)(38),{toolName:a,result:l,error:s,index:r,state:m,className:o,input:x}=n,p=r===void 0?0:r,c=m==="output-available"&&(l||s),i=s?"error":c?"success":"loading",d;e[0]===i?d=e[1]:(d=()=>{switch(i){case"loading":return(0,t.jsx)(se,{className:"h-3 w-3 animate-spin"});case"error":return(0,t.jsx)(G,{className:"h-3 w-3 text-[var(--red-11)]"});case"success":return(0,t.jsx)(te,{className:"h-3 w-3 text-[var(--grass-11)]"});default:return(0,t.jsx)(ae,{className:"h-3 w-3"})}},e[0]=i,e[1]=d);let u=d,h;e[2]!==s||e[3]!==c||e[4]!==i?(h=()=>i==="loading"?"Running":s?"Failed":c?"Done":"Tool call",e[2]=s,e[3]=c,e[4]=i,e[5]=h):h=e[5];let f=h,T=`tool-${p}`,g;e[6]===o?g=e[7]:(g=A("w-full",o),e[6]=o,e[7]=g);let k=i==="error"&&"text-[var(--red-11)]/80",q=i==="success"&&"text-[var(--grass-11)]/80",v;e[8]!==k||e[9]!==q?(v=A("h-6 text-xs border-border shadow-none! ring-0! bg-muted/60 hover:bg-muted py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180 hover:no-underline",k,q),e[8]=k,e[9]=q,e[10]=v):v=e[10];let j;e[11]===u?j=e[12]:(j=u(),e[11]=u,e[12]=j);let J=f(),b;e[13]===a?b=e[14]:(b=ce(a),e[13]=a,e[14]=b);let N;e[15]===b?N=e[16]:(N=(0,t.jsx)("code",{className:"font-mono text-xs",children:b}),e[15]=b,e[16]=N);let y;e[17]!==J||e[18]!==N||e[19]!==j?(y=(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[j,J,":",N]}),e[17]=J,e[18]=N,e[19]=j,e[20]=y):y=e[20];let w;e[21]!==y||e[22]!==v?(w=(0,t.jsx)(D,{className:v,children:y}),e[21]=y,e[22]=v,e[23]=w):w=e[23];let _;e[24]!==s||e[25]!==c||e[26]!==x||e[27]!==l?(_=c&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(de,{input:x}),l!=null&&(0,t.jsx)(ie,{result:l}),s&&(0,t.jsxs)("div",{className:"bg-[var(--red-2)] border border-[var(--red-6)] rounded-lg p-3",children:[(0,t.jsxs)("div",{className:"text-xs font-semibold text-[var(--red-11)] mb-2 flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-1.5 h-1.5 bg-[var(--red-9)] rounded-full"}),"Error"]}),(0,t.jsx)("div",{className:"text-sm text-[var(--red-11)] leading-relaxed",children:s})]})]}),e[24]=s,e[25]=c,e[26]=x,e[27]=l,e[28]=_):_=e[28];let S;e[29]===_?S=e[30]:(S=(0,t.jsx)(M,{className:"py-2 px-2",children:_}),e[29]=_,e[30]=S);let O;e[31]!==w||e[32]!==S?(O=(0,t.jsxs)(H,{value:"tool-call",className:"border-0",children:[w,S]}),e[31]=w,e[32]=S,e[33]=O):O=e[33];let R;return e[34]!==O||e[35]!==T||e[36]!==g?(R=(0,t.jsx)(I,{type:"single",collapsible:!0,className:g,children:O},T),e[34]=O,e[35]=T,e[36]=g,e[37]=R):R=e[37],R};function ce(n){return n.replace("tool-","")}function me(n){let[e,a]=n;return L(a)?null:(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("div",{className:"text-xs font-medium text-muted-foreground capitalize flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-1.5 h-1.5 bg-[var(--blue-9)] rounded-full"}),e]}),(0,t.jsx)("pre",{className:"bg-[var(--slate-2)] p-2 text-muted-foreground border border-[var(--slate-4)] rounded text-xs overflow-auto scrollbar-thin max-h-64",children:JSON.stringify(a,null,2)})]},e)}const ue=({message:n,isStreamingReasoning:e,isLast:a})=>{return(0,t.jsx)(t.Fragment,{children:n.parts.map((s,r)=>l(s,r))});function l(s,r){if(xe(s))return(0,t.jsx)(V,{index:r,toolName:s.type,result:s.output,className:"my-2",state:s.state,input:s.input},r);if(pe(s))return W.debug("Found data part",s),null;switch(s.type){case"text":return(0,t.jsx)(C,{content:s.text},r);case"reasoning":return(0,t.jsx)(le,{reasoning:s.text,index:r,isStreaming:e&&a&&r===(n.parts.length||0)-1},r);case"file":return(0,t.jsx)(ee,{attachment:s},r);case"dynamic-tool":return(0,t.jsx)(V,{toolName:s.toolName,result:s.output,state:s.state,input:s.input},r);case"source-document":case"source-url":case"step-start":return W.debug("Found non-renderable part",s),null;default:return X(s),null}}};function xe(n){return n.type.startsWith("tool-")}function pe(n){return n.type.startsWith("data-")}export{ue as t}; diff --git a/docs/assets/chat-panel-Chm2DqS8.js b/docs/assets/chat-panel-Chm2DqS8.js new file mode 100644 index 0000000..4e621a1 --- /dev/null +++ b/docs/assets/chat-panel-Chm2DqS8.js @@ -0,0 +1,3 @@ +import{s as et}from"./chunk-LvLJmgfZ.js";import{d as Pt,f as zt,l as Dt,n as V,u as Ve}from"./useEvent-DlWF5OMa.js";import{t as kt}from"./react-BGmjiNul.js";import{mn as Mt,qn as Ft,w as Ht}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as tt}from"./compiler-runtime-DeeZ7FnK.js";import{d as Pe}from"./hotkeys-uKX61F1_.js";import{n as rt,r as Ot}from"./utils-Czt8B2GX.js";import{o as Wt}from"./config-CENq_7Pd.js";import{r as ae}from"./useEventListener-COkmyg1v.js";import{t as Ut}from"./jsx-runtime-DN_bIXfG.js";import{t as B}from"./button-B8cGZzP5.js";import{t as se}from"./cn-C1rgT0yh.js";import"./dist-CAcX026F.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as Yt}from"./requests-C0HaHO6a.js";import{E as Xt,O as Bt,c as Vt,d as qt,f as $t,g as Jt,k as Kt,l as lt,n as ot,p as Qt,s as nt,u as Zt,v as Gt,w as er,x as tr}from"./add-cell-with-ai-DEdol3w0.js";import{i as at,n as rr,r as lr,t as or}from"./chat-components-BQ_d4LQG.js";import{l as nr,s as ar,t as sr}from"./ai-model-dropdown-C-5PlP5A.js";import{a as ir,i as cr,n as dr,p as ur,r as mr,s as pr,t as hr}from"./select-D9lTzMzP.js";import"./markdown-renderer-DjqhqmES.js";import{a as fr,n as st}from"./state-BphSR6sx.js";import{n as xr}from"./spinner-C1czjtp7.js";import{t as vr}from"./plus-CHesBJpY.js";import{lt as gr,r as it}from"./input-Bkl2Yfmh.js";import{t as wr}from"./settings-MTlHVxz3.js";import{r as ct,t as br}from"./state-B8vBQnkH.js";import{t as yr}from"./square-leQTJTJJ.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{t as jr}from"./use-toast-Bzf3rpev.js";import{C as Sr,E as Cr,_ as he,g as q,w as $,x as ze}from"./Combination-D1TsGrBC.js";import{i as dt,t as ie}from"./tooltip-CvjcEpZC.js";import{u as Nr}from"./menu-items-9PZrU2e0.js";import{i as _r}from"./dates-CdsE1R40.js";import{t as Rr}from"./context-BAYdLMF_.js";import{i as Ar,r as Tr,t as Er}from"./popover-DtnzNVk-.js";import{t as Lr}from"./copy-icon-jWsqdLn1.js";import{n as Ir}from"./error-banner-Cq4Yn1WZ.js";import"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import"./es-BJsT6vfZ.js";import{t as Pr}from"./chat-display-ZS_L6G-P.js";import"./esm-D2_Kx6xF.js";import{t as qe}from"./empty-state-H6r25Wek.js";var ut=tt(),m=et(kt(),1);const zr=({chatState:e,chatId:t,messages:r})=>{if(!t)return Pe.warn("No active chat"),e;let a=e.chats.get(t);if(!a)return Pe.warn("No active chat"),e;let o=new Map(e.chats),n=Date.now();return o.set(a.id,{...a,messages:r,updatedAt:n}),{...e,chats:o}};var l=et(Ut(),1);function Dr(e,t){return m.useReducer((r,a)=>t[r][a]??r,e)}var $e="ScrollArea",[mt,xo]=Cr($e),[kr,F]=mt($e),pt=m.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:a="hover",dir:o,scrollHideDelay:n=600,...s}=e,[c,i]=m.useState(null),[d,u]=m.useState(null),[p,h]=m.useState(null),[f,g]=m.useState(null),[y,L]=m.useState(null),[b,C]=m.useState(0),[j,S]=m.useState(0),[_,N]=m.useState(!1),[I,P]=m.useState(!1),w=ae(t,D=>i(D)),T=Nr(o);return(0,l.jsx)(kr,{scope:r,type:a,dir:T,scrollHideDelay:n,scrollArea:c,viewport:d,onViewportChange:u,content:p,onContentChange:h,scrollbarX:f,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:N,scrollbarY:y,onScrollbarYChange:L,scrollbarYEnabled:I,onScrollbarYEnabledChange:P,onCornerWidthChange:C,onCornerHeightChange:S,children:(0,l.jsx)(he.div,{dir:T,...s,ref:w,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":j+"px",...e.style}})})});pt.displayName=$e;var ht="ScrollAreaViewport",ft=m.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:a,nonce:o,...n}=e,s=F(ht,r),c=ae(t,m.useRef(null),s.onViewportChange);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,l.jsx)(he.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,l.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});ft.displayName=ht;var U="ScrollAreaScrollbar",Je=m.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=F(U,e.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=o,c=e.orientation==="horizontal";return m.useEffect(()=>(c?n(!0):s(!0),()=>{c?n(!1):s(!1)}),[c,n,s]),o.type==="hover"?(0,l.jsx)(Mr,{...a,ref:t,forceMount:r}):o.type==="scroll"?(0,l.jsx)(Fr,{...a,ref:t,forceMount:r}):o.type==="auto"?(0,l.jsx)(xt,{...a,ref:t,forceMount:r}):o.type==="always"?(0,l.jsx)(Ke,{...a,ref:t}):null});Je.displayName=U;var Mr=m.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=F(U,e.__scopeScrollArea),[n,s]=m.useState(!1);return m.useEffect(()=>{let c=o.scrollArea,i=0;if(c){let d=()=>{window.clearTimeout(i),s(!0)},u=()=>{i=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",u),()=>{window.clearTimeout(i),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),(0,l.jsx)(ze,{present:r||n,children:(0,l.jsx)(xt,{"data-state":n?"visible":"hidden",...a,ref:t})})}),Fr=m.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=F(U,e.__scopeScrollArea),n=e.orientation==="horizontal",s=Fe(()=>i("SCROLL_END"),100),[c,i]=Dr("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return m.useEffect(()=>{if(c==="idle"){let d=window.setTimeout(()=>i("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[c,o.scrollHideDelay,i]),m.useEffect(()=>{let d=o.viewport,u=n?"scrollLeft":"scrollTop";if(d){let p=d[u],h=()=>{let f=d[u];p!==f&&(i("SCROLL"),s()),p=f};return d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[o.viewport,n,i,s]),(0,l.jsx)(ze,{present:r||c!=="hidden",children:(0,l.jsx)(Ke,{"data-state":c==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:$(e.onPointerEnter,()=>i("POINTER_ENTER")),onPointerLeave:$(e.onPointerLeave,()=>i("POINTER_LEAVE"))})})}),xt=m.forwardRef((e,t)=>{let r=F(U,e.__scopeScrollArea),{forceMount:a,...o}=e,[n,s]=m.useState(!1),c=e.orientation==="horizontal",i=Fe(()=>{if(r.viewport){let d=r.viewport.offsetWidth{let{orientation:r="vertical",...a}=e,o=F(U,e.__scopeScrollArea),n=m.useRef(null),s=m.useRef(0),[c,i]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=yt(c.viewport,c.content),u={...a,sizes:c,onSizesChange:i,hasThumb:d>0&&d<1,onThumbChange:h=>n.current=h,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:h=>s.current=h};function p(h,f){return Xr(h,s.current,c,f)}return r==="horizontal"?(0,l.jsx)(Hr,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let h=o.viewport.scrollLeft,f=jt(h,c,o.dir);n.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=p(h,o.dir))}}):r==="vertical"?(0,l.jsx)(Or,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&n.current){let h=o.viewport.scrollTop,f=jt(h,c);n.current.style.transform=`translate3d(0, ${f}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=p(h))}}):null}),Hr=m.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...o}=e,n=F(U,e.__scopeScrollArea),[s,c]=m.useState(),i=m.useRef(null),d=ae(t,i,n.onScrollbarXChange);return m.useEffect(()=>{i.current&&c(getComputedStyle(i.current))},[i]),(0,l.jsx)(gt,{"data-orientation":"horizontal",...o,ref:d,sizes:r,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Me(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,p)=>{if(n.viewport){let h=n.viewport.scrollLeft+u.deltaX;e.onWheelScroll(h),Ct(h,p)&&u.preventDefault()}},onResize:()=>{i.current&&n.viewport&&s&&a({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:i.current.clientWidth,paddingStart:ke(s.paddingLeft),paddingEnd:ke(s.paddingRight)}})}})}),Or=m.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...o}=e,n=F(U,e.__scopeScrollArea),[s,c]=m.useState(),i=m.useRef(null),d=ae(t,i,n.onScrollbarYChange);return m.useEffect(()=>{i.current&&c(getComputedStyle(i.current))},[i]),(0,l.jsx)(gt,{"data-orientation":"vertical",...o,ref:d,sizes:r,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Me(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,p)=>{if(n.viewport){let h=n.viewport.scrollTop+u.deltaY;e.onWheelScroll(h),Ct(h,p)&&u.preventDefault()}},onResize:()=>{i.current&&n.viewport&&s&&a({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:i.current.clientHeight,paddingStart:ke(s.paddingTop),paddingEnd:ke(s.paddingBottom)}})}})}),[Wr,vt]=mt(U),gt=m.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:a,hasThumb:o,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:c,onThumbPositionChange:i,onDragScroll:d,onWheelScroll:u,onResize:p,...h}=e,f=F(U,r),[g,y]=m.useState(null),L=ae(t,w=>y(w)),b=m.useRef(null),C=m.useRef(""),j=f.viewport,S=a.content-a.viewport,_=q(u),N=q(i),I=Fe(p,10);function P(w){b.current&&d({x:w.clientX-b.current.left,y:w.clientY-b.current.top})}return m.useEffect(()=>{let w=T=>{let D=T.target;g!=null&&g.contains(D)&&_(T,S)};return document.addEventListener("wheel",w,{passive:!1}),()=>document.removeEventListener("wheel",w,{passive:!1})},[j,g,S,_]),m.useEffect(N,[a,N]),ce(g,I),ce(f.content,I),(0,l.jsx)(Wr,{scope:r,scrollbar:g,hasThumb:o,onThumbChange:q(n),onThumbPointerUp:q(s),onThumbPositionChange:N,onThumbPointerDown:q(c),children:(0,l.jsx)(he.div,{...h,ref:L,style:{position:"absolute",...h.style},onPointerDown:$(e.onPointerDown,w=>{w.button===0&&(w.target.setPointerCapture(w.pointerId),b.current=g.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),P(w))}),onPointerMove:$(e.onPointerMove,P),onPointerUp:$(e.onPointerUp,w=>{let T=w.target;T.hasPointerCapture(w.pointerId)&&T.releasePointerCapture(w.pointerId),document.body.style.webkitUserSelect=C.current,f.viewport&&(f.viewport.style.scrollBehavior=""),b.current=null})})})}),De="ScrollAreaThumb",wt=m.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=vt(De,e.__scopeScrollArea);return(0,l.jsx)(ze,{present:r||o.hasThumb,children:(0,l.jsx)(Ur,{ref:t,...a})})}),Ur=m.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:a,...o}=e,n=F(De,r),s=vt(De,r),{onThumbPositionChange:c}=s,i=ae(t,p=>s.onThumbChange(p)),d=m.useRef(void 0),u=Fe(()=>{d.current&&(d.current=(d.current(),void 0))},100);return m.useEffect(()=>{let p=n.viewport;if(p){let h=()=>{u(),d.current||(d.current=Br(p,c),c())};return c(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[n.viewport,u,c]),(0,l.jsx)(he.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:i,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:$(e.onPointerDownCapture,p=>{let h=p.target.getBoundingClientRect(),f=p.clientX-h.left,g=p.clientY-h.top;s.onThumbPointerDown({x:f,y:g})}),onPointerUp:$(e.onPointerUp,s.onThumbPointerUp)})});wt.displayName=De;var Qe="ScrollAreaCorner",bt=m.forwardRef((e,t)=>{let r=F(Qe,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&a?(0,l.jsx)(Yr,{...e,ref:t}):null});bt.displayName=Qe;var Yr=m.forwardRef((e,t)=>{let{__scopeScrollArea:r,...a}=e,o=F(Qe,r),[n,s]=m.useState(0),[c,i]=m.useState(0),d=!!(n&&c);return ce(o.scrollbarX,()=>{var p;let u=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(u),i(u)}),ce(o.scrollbarY,()=>{var p;let u=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(u),s(u)}),d?(0,l.jsx)(he.div,{...a,ref:t,style:{width:n,height:c,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ke(e){return e?parseInt(e,10):0}function yt(e,t){let r=e/t;return isNaN(r)?0:r}function Me(e){let t=yt(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function Xr(e,t,r,a="ltr"){let o=Me(r),n=o/2,s=t||n,c=o-s,i=r.scrollbar.paddingStart+s,d=r.scrollbar.size-r.scrollbar.paddingEnd-c,u=r.content-r.viewport,p=a==="ltr"?[0,u]:[u*-1,0];return St([i,d],p)(e)}function jt(e,t,r="ltr"){let a=Me(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=t.scrollbar.size-o,s=t.content-t.viewport,c=n-a,i=ur(e,r==="ltr"?[0,s]:[s*-1,0]);return St([0,s],[0,c])(i)}function St(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function Ct(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return(function o(){let n={left:e.scrollLeft,top:e.scrollTop},s=r.left!==n.left,c=r.top!==n.top;(s||c)&&t(),r=n,a=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(a)};function Fe(e,t){let r=q(e),a=m.useRef(0);return m.useEffect(()=>()=>window.clearTimeout(a.current),[]),m.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function ce(e,t){let r=q(t);Sr(()=>{let a=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(a),o.unobserve(e)}}},[e,r])}var Nt=pt,Vr=ft,qr=bt,_t=m.forwardRef((e,t)=>{let r=(0,ut.c)(15),a,o,n;r[0]===e?(a=r[1],o=r[2],n=r[3]):({className:o,children:a,...n}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=n);let s;r[4]===o?s=r[5]:(s=se("relative overflow-hidden",o),r[4]=o,r[5]=s);let c;r[6]===a?c=r[7]:(c=(0,l.jsx)(Vr,{className:"h-full w-full rounded-[inherit]",children:a}),r[6]=a,r[7]=c);let i,d;r[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(Rt,{}),d=(0,l.jsx)(qr,{}),r[8]=i,r[9]=d):(i=r[8],d=r[9]);let u;return r[10]!==n||r[11]!==t||r[12]!==s||r[13]!==c?(u=(0,l.jsxs)(Nt,{ref:t,className:s,...n,children:[c,i,d]}),r[10]=n,r[11]=t,r[12]=s,r[13]=c,r[14]=u):u=r[14],u});_t.displayName=Nt.displayName;var Rt=m.forwardRef((e,t)=>{let r=(0,ut.c)(14),a,o,n;r[0]===e?(a=r[1],o=r[2],n=r[3]):({className:a,orientation:n,...o}=e,r[0]=e,r[1]=a,r[2]=o,r[3]=n);let s=n===void 0?"vertical":n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",i=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",d;r[4]!==a||r[5]!==c||r[6]!==i?(d=se("flex touch-none select-none transition-colors",c,i,a),r[4]=a,r[5]=c,r[6]=i,r[7]=d):d=r[7];let u;r[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(wt,{className:"relative flex-1 rounded-full bg-border"}),r[8]=u):u=r[8];let p;return r[9]!==s||r[10]!==o||r[11]!==t||r[12]!==d?(p=(0,l.jsx)(Je,{ref:t,orientation:s,className:d,...o,children:u}),r[9]=s,r[10]=o,r[11]=t,r[12]=d,r[13]=p):p=r[13],p});Rt.displayName=Je.displayName;var $r=[{label:"Today",days:0},{label:"Yesterday",days:1},{label:"2d ago",days:2},{label:"3d ago",days:3},{label:"This week",days:7},{label:"This month",days:30}];const Jr=e=>{let t=Date.now(),r=$r.map(n=>({...n,chats:[]})),a={label:"Older",days:1/0,chats:[]},o=n=>{switch(n){case 0:return r[0];case 1:return r[1];case 2:return r[2];case 3:return r[3];default:return n>=4&&n<=7?r[4]:n>=8&&n<=30?r[5]:a}};for(let n of e)o(Math.floor((t-n.updatedAt)/864e5)).chats.push(n);return[...r,a].filter(n=>n.chats.length>0)},Kr=({activeChatId:e,setActiveChat:t})=>{let r=Ve(ct),{locale:a}=Rr(),[o,n]=(0,m.useState)(""),s=(0,m.useMemo)(()=>[...r.chats.values()].sort((d,u)=>u.updatedAt-d.updatedAt),[r.chats]),c=(0,m.useMemo)(()=>o.trim()?s.filter(d=>d.title.toLowerCase().includes(o.toLowerCase())):s,[s,o]),i=(0,m.useMemo)(()=>Jr(c),[c]);return(0,l.jsxs)(Er,{children:[(0,l.jsx)(ie,{content:"Previous chats",children:(0,l.jsx)(Ar,{asChild:!0,children:(0,l.jsx)(B,{variant:"text",size:"icon",children:(0,l.jsx)(Ft,{className:"h-4 w-4"})})})}),(0,l.jsxs)(Tr,{className:"w-[480px] p-0",align:"start",side:"right",children:[(0,l.jsx)("div",{className:"pt-3 px-3 w-full",children:(0,l.jsx)(it,{placeholder:"Search chat history...",value:o,onChange:d=>n(d.target.value),className:"text-xs"})}),(0,l.jsx)(_t,{className:"h-[450px] p-2",children:(0,l.jsxs)("div",{className:"space-y-3",children:[s.length===0&&(0,l.jsx)(qe,{title:"No chats yet",description:"Start a new chat to get started",icon:(0,l.jsx)(at,{})}),c.length===0&&o&&s.length>0&&(0,l.jsx)(qe,{title:"No chats found",description:`No chats match "${o}"`,icon:(0,l.jsx)(gr,{})}),i.map((d,u)=>(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("div",{className:"text-xs px-1 text-muted-foreground/60",children:d.label}),(0,l.jsx)("div",{children:d.chats.map(p=>(0,l.jsxs)("button",{className:se("w-full p-1 rounded-md cursor-pointer text-left flex items-center justify-between",p.id===e&&"bg-accent",p.id!==e&&"hover:bg-muted/20"),onClick:()=>{t(p.id)},type:"button",children:[(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)("div",{className:"text-sm truncate",children:p.title})}),(0,l.jsx)("div",{className:"text-xs text-muted-foreground/60 ml-2 flex-shrink-0",children:_r(p.updatedAt,a)})]},p.id))}),u!==i.length-1&&(0,l.jsx)("hr",{})]},d.label))]})})]})]})};var de=tt(),At="manual",Qr=new Set(["openai","google","anthropic"]),Zr=["image/*","text/*"],Gr=1024*1024*50,el=e=>{let t=(0,de.c)(18),{onNewChat:r,activeChatId:a,setActiveChat:o}=e,{handleClick:n}=st(),s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(vr,{className:"h-4 w-4"}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,l.jsx)(ie,{content:"New chat",children:(0,l.jsx)(B,{variant:"text",size:"icon",onClick:r,children:s})}),t[1]=r,t[2]=c);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(fr,{}),t[3]=i):i=t[3];let d;t[4]===n?d=t[5]:(d=()=>n("ai"),t[4]=n,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(wr,{className:"h-4 w-4"}),t[6]=u):u=t[6];let p;t[7]===d?p=t[8]:(p=(0,l.jsx)(ie,{content:"AI Settings",children:(0,l.jsx)(B,{variant:"text",size:"xs",className:"hover:bg-foreground/10 py-2",onClick:d,children:u})}),t[7]=d,t[8]=p);let h;t[9]!==a||t[10]!==o?(h=(0,l.jsx)(Kr,{activeChatId:a,setActiveChat:o}),t[9]=a,t[10]=o,t[11]=h):h=t[11];let f;t[12]!==p||t[13]!==h?(f=(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[i,p,h]}),t[12]=p,t[13]=h,t[14]=f):f=t[14];let g;return t[15]!==c||t[16]!==f?(g=(0,l.jsxs)("div",{className:"flex border-b px-2 py-1 justify-between shrink-0 items-center",children:[c,f]}),t[15]=c,t[16]=f,t[17]=g):g=t[17],g},Tt=(0,m.memo)(e=>{let t=(0,de.c)(15),{message:r,index:a,onEdit:o,isStreamingReasoning:n,isLast:s}=e,c;t[0]!==a||t[1]!==o?(c=y=>{var C,j,S;let L=(j=(C=y.parts)==null?void 0:C.filter(ol))==null?void 0:j.map(nl).join(` +`),b=(S=y.parts)==null?void 0:S.filter(al);return(0,l.jsxs)("div",{className:"w-[95%] bg-background border p-1 rounded-sm",children:[b==null?void 0:b.map(sl),(0,l.jsx)(ot,{value:L,placeholder:"Type your message...",onChange:il,onSubmit:(_,N)=>{N.trim()&&o(a,N)},onClose:cl},y.id)]})},t[0]=a,t[1]=o,t[2]=c):c=t[2];let i=c,d;t[3]!==s||t[4]!==n?(d=y=>(0,l.jsxs)("div",{className:"w-[95%] wrap-break-word",children:[(0,l.jsx)("div",{className:"absolute right-1 top-1 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,l.jsx)(Lr,{className:"h-3 w-3",value:y.parts.filter(dl).map(ul).join(` +`)||""})}),Pr({message:y,isStreamingReasoning:n,isLast:s})]}),t[3]=s,t[4]=n,t[5]=d):d=t[5];let u=d,p=r.role==="user"?"justify-end":"justify-start",h;t[6]===p?h=t[7]:(h=se("flex group relative",p),t[6]=p,t[7]=h);let f;t[8]!==r||t[9]!==u||t[10]!==i?(f=r.role==="user"?i(r):u(r),t[8]=r,t[9]=u,t[10]=i,t[11]=f):f=t[11];let g;return t[12]!==h||t[13]!==f?(g=(0,l.jsx)("div",{className:h,children:f}),t[12]=h,t[13]=f,t[14]=g):g=t[14],g});Tt.displayName="ChatMessage";var Et=(0,m.memo)(e=>{var fe;let t=(0,de.c)(39),{isEmpty:r,onSendClick:a,isLoading:o,onStop:n,fileInputRef:s,onAddFiles:c,onAddContext:i}=e,d=Ve(rt),u=(d==null?void 0:d.mode)||At,p=((fe=d==null?void 0:d.models)==null?void 0:fe.chat_model)||"openai/gpt-4o",h=ar.parse(p).providerId,{saveModeChange:f}=nr(),g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=[{value:"ask",label:"Ask",subtitle:"Use AI with access to read-only tools like documentation search"},{value:"manual",label:"Manual",subtitle:"Pure chat, no tool usage"},{value:"agent",label:"Agent (beta)",subtitle:"Use AI with access to read and write tools"}],t[0]=g):g=t[0];let y=g,L=Qr.has(h),b;t[1]===u?b=t[2]:(b=(0,l.jsx)(pr,{className:"h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1 capitalize",children:u}),t[1]=u,t[2]=b);let C;t[3]===Symbol.for("react.memo_cache_sentinel")?(C=(0,l.jsx)(ir,{children:"AI Mode"}),t[3]=C):C=t[3];let j;t[4]===y?j=t[5]:(j=(0,l.jsx)(dr,{children:(0,l.jsxs)(mr,{children:[C,y.map(ml)]})}),t[4]=y,t[5]=j);let S;t[6]!==u||t[7]!==f||t[8]!==b||t[9]!==j?(S=(0,l.jsx)(Mt,{feature:"chat_modes",children:(0,l.jsxs)(hr,{value:u,onValueChange:f,children:[b,j]})}),t[6]=u,t[7]=f,t[8]=b,t[9]=j,t[10]=S):S=t[10];let _;t[11]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)(sr,{placeholder:"Model",triggerClassName:"h-6 text-xs shadow-none! ring-0! bg-muted hover:bg-muted/30 rounded-sm",iconSize:"small",showAddCustomModelDocs:!0,forRole:"chat"}),t[11]=_):_=t[11];let N;t[12]===S?N=t[13]:(N=(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[S,_]}),t[12]=S,t[13]=N);let I;t[14]===Symbol.for("react.memo_cache_sentinel")?(I=(0,l.jsx)(Kt,{className:"h-3.5 w-3.5"}),t[14]=I):I=t[14];let P;t[15]!==o||t[16]!==i?(P=(0,l.jsx)(ie,{content:"Add context",children:(0,l.jsx)(B,{variant:"text",size:"icon",onClick:i,disabled:o,children:I})}),t[15]=o,t[16]=i,t[17]=P):P=t[17];let w;t[18]!==s||t[19]!==L||t[20]!==o||t[21]!==c?(w=L&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ie,{content:"Attach a file",children:(0,l.jsx)(B,{variant:"text",size:"icon",className:"cursor-pointer",onClick:()=>{var X;return(X=s.current)==null?void 0:X.click()},title:"Attach a file",disabled:o,children:(0,l.jsx)(lr,{className:"h-3.5 w-3.5"})})}),(0,l.jsx)(it,{ref:s,type:"file",multiple:!0,hidden:!0,onChange:X=>{X.target.files&&c([...X.target.files])},accept:Zr.join(",")})]}),t[18]=s,t[19]=L,t[20]=o,t[21]=c,t[22]=w):w=t[22];let T=o?"Stop":"Submit",D=o?n:a,A=o?!1:r,E;t[23]===o?E=t[24]:(E=o?(0,l.jsx)(yr,{className:"h-3 w-3 fill-current"}):(0,l.jsx)(Bt,{className:"h-3 w-3"}),t[23]=o,t[24]=E);let H;t[25]!==D||t[26]!==A||t[27]!==E?(H=(0,l.jsx)(B,{variant:"text",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted/30 cursor-pointer",onClick:D,disabled:A,children:E}),t[25]=D,t[26]=A,t[27]=E,t[28]=H):H=t[28];let Y;t[29]!==T||t[30]!==H?(Y=(0,l.jsx)(ie,{content:T,children:H}),t[29]=T,t[30]=H,t[31]=Y):Y=t[31];let O;t[32]!==w||t[33]!==Y||t[34]!==P?(O=(0,l.jsxs)("div",{className:"flex flex-row",children:[P,w,Y]}),t[32]=w,t[33]=Y,t[34]=P,t[35]=O):O=t[35];let k;return t[36]!==O||t[37]!==N?(k=(0,l.jsx)(dt,{children:(0,l.jsxs)("div",{className:"px-3 py-2 border-t border-border/20 flex flex-row flex-wrap items-center justify-between gap-1",children:[N,O]})}),t[36]=O,t[37]=N,t[38]=k):k=t[38],k});Et.displayName="ChatInputFooter";var Ze=(0,m.memo)(e=>{let t=(0,de.c)(29),{placeholder:r,input:a,inputClassName:o,setInput:n,onSubmit:s,inputRef:c,isLoading:i,onStop:d,fileInputRef:u,onAddFiles:p,onClose:h}=e,f;t[0]!==a||t[1]!==s?(f=()=>{a.trim()&&s(void 0,a)},t[0]=a,t[1]=s,t[2]=f):f=t[2];let g=V(f),y;t[3]===o?y=t[4]:(y=se("px-2 py-3 flex-1",o),t[3]=o,t[4]=y);let L=r||"Type your message...",b;t[5]!==a||t[6]!==c||t[7]!==p||t[8]!==h||t[9]!==s||t[10]!==n||t[11]!==L?(b=(0,l.jsx)(ot,{inputRef:c,value:a,onChange:n,onSubmit:s,onClose:h,onAddFiles:p,placeholder:L}),t[5]=a,t[6]=c,t[7]=p,t[8]=h,t[9]=s,t[10]=n,t[11]=L,t[12]=b):b=t[12];let C;t[13]!==y||t[14]!==b?(C=(0,l.jsx)("div",{className:y,children:b}),t[13]=y,t[14]=b,t[15]=C):C=t[15];let j=!a.trim(),S;t[16]===c?S=t[17]:(S=()=>tr(c),t[16]=c,t[17]=S);let _;t[18]!==u||t[19]!==g||t[20]!==i||t[21]!==p||t[22]!==d||t[23]!==j||t[24]!==S?(_=(0,l.jsx)(Et,{isEmpty:j,onAddContext:S,onSendClick:g,isLoading:i,onStop:d,fileInputRef:u,onAddFiles:p}),t[18]=u,t[19]=g,t[20]=i,t[21]=p,t[22]=d,t[23]=j,t[24]=S,t[25]=_):_=t[25];let N;return t[26]!==C||t[27]!==_?(N=(0,l.jsxs)("div",{className:"relative shrink-0 min-h-[80px] flex flex-col border-t",children:[C,_]}),t[26]=C,t[27]=_,t[28]=N):N=t[28],N});Ze.displayName="ChatInput";var tl=()=>{let e=(0,de.c)(6),t=Ve(Ot),{handleClick:r}=st();if(!t){let o;e[0]===r?o=e[1]:(o=(0,l.jsx)(B,{variant:"outline",size:"sm",onClick:()=>r("ai"),children:"Edit AI settings"}),e[0]=r,e[1]=o);let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(at,{}),e[2]=n):n=e[2];let s;return e[3]===o?s=e[4]:(s=(0,l.jsx)(qe,{title:"Chat with AI",description:"No AI provider configured or model selected",action:o,icon:n}),e[3]=o,e[4]=s),s}let a;return e[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(rl,{}),e[5]=a):a=e[5],a},rl=()=>{let e=(0,de.c)(95),t=Pt(ct),[r,a]=Dt(br),[o,n]=(0,m.useState)(""),[s,c]=(0,m.useState)(""),[i,d]=(0,m.useState)(),u=(0,m.useRef)(null),p=(0,m.useRef)(null),h=(0,m.useRef)(null),f=(0,m.useRef)(null),g=(0,m.useRef)(null),y=Wt(),{invokeAiTool:L,sendRun:b}=Yt(),C=r==null?void 0:r.id,j=zt(),{addStagedCell:S}=Gt(),{createNewCell:_,prepareForRun:N}=Ht(),I;e[0]!==S||e[1]!==_||e[2]!==N||e[3]!==b||e[4]!==j?(I={addStagedCell:S,createNewCell:_,prepareForRun:N,sendRun:b,store:j},e[0]=S,e[1]=_,e[2]=N,e[3]=b,e[4]=j,e[5]=I):I=e[5];let P=I,w;e[6]===(r==null?void 0:r.messages)?w=e[7]:(w=(r==null?void 0:r.messages)||[],e[6]=r==null?void 0:r.messages,e[7]=w);let T;if(e[8]!==y||e[9]!==j){let x;e[11]===j?x=e[12]:(x=async v=>{var ne;let R=await Vt(v.messages),W=((ne=j.get(rt))==null?void 0:ne.mode)||At;return{body:{tools:Jt.getToolSchemas(W),...v,...R}}},e[11]=j,e[12]=x),T=new Xt({api:y.getAiURL("chat").toString(),headers:y.headers(),prepareSendMessagesRequest:x}),e[8]=y,e[9]=j,e[10]=T}else T=e[10];let D;e[13]===t?D=e[14]:(D=x=>{let{messages:v}=x;t(R=>zr({chatState:R,chatId:R.activeChatId,messages:v}))},e[13]=t,e[14]=D);let{messages:A,sendMessage:E,error:H,status:Y,regenerate:O,stop:k,addToolOutput:fe,id:X}=er({id:C,sendAutomaticallyWhen:pl,messages:w,transport:T,onFinish:D,onToolCall:async x=>{let{toolCall:v}=x;if(v.dynamic){Pe.debug("Skipping dynamic tool call",v);return}await qt({invokeAiTool:L,addToolOutput:Lt,toolCall:{toolName:v.toolName,toolCallId:v.toolCallId,input:v.input},toolContext:P})},onError:hl}),Lt=fe,xe;e[15]===Symbol.for("react.memo_cache_sentinel")?(xe=x=>{if(x.length===0)return;let v=0;for(let R of x)v+=R.size;if(v>Gr){jr({title:"File size exceeds 50MB limit",description:"Please remove some files and try again."});return}d(R=>[...R??[],...x])},e[15]=xe):xe=e[15];let ve=V(xe),ge;e[16]===i?ge=e[17]:(ge=x=>{i&&d(i.filter(v=>v!==x))},e[16]=i,e[17]=ge);let He=V(ge),z=Y==="submitted"||Y==="streaming",we;e[18]!==z||e[19]!==A?(we=z&&A.length>0&&Qt(A),e[18]=z,e[19]=A,e[20]=we):we=e[20];let ue=we,be;e[21]===Symbol.for("react.memo_cache_sentinel")?(be=()=>{requestAnimationFrame(()=>{if(h.current){let x=h.current;x.scrollTop=x.scrollHeight}})},e[21]=be):be=e[21];let ye;e[22]===C?ye=e[23]:(ye=[C],e[22]=C,e[23]=ye),(0,m.useEffect)(be,ye);let je;e[24]!==X||e[25]!==E||e[26]!==t?(je=async(x,v)=>{let R=Date.now(),W={id:X,title:Zt(x),messages:[],createdAt:R,updatedAt:R};t(pe=>{let Ge=new Map(pe.chats);return Ge.set(W.id,W),{...pe,chats:Ge,activeChatId:W.id}});let ne=v&&v.length>0?await lt(v):void 0;E({role:"user",parts:[{type:"text",text:x},...ne??[]]}),d(void 0),n("")},e[24]=X,e[25]=E,e[26]=t,e[27]=je):je=e[27];let Oe=je,Se;e[28]===a?Se=e[29]:(Se=()=>{a(null),n(""),c(""),d(void 0)},e[28]=a,e[29]=Se);let We=V(Se),Ce;e[30]!==A||e[31]!==E?(Ce=(x,v)=>{var pe;let R=A[x],W=(pe=R.parts)==null?void 0:pe.filter(fl),ne=R.id;E({messageId:ne,role:"user",parts:[{type:"text",text:v},...W]})},e[30]=A,e[31]=E,e[32]=Ce):Ce=e[32];let me=V(Ce),Ne;e[33]!==i||e[34]!==E?(Ne=async(x,v)=>{var W;if(!v.trim())return;(W=p.current)!=null&&W.view&&nt(p.current.view);let R=i?await lt(i):void 0;x==null||x.preventDefault(),E({text:v,files:R}),n(""),d(void 0)},e[33]=i,e[34]=E,e[35]=Ne):Ne=e[35];let Ue=V(Ne),_e;e[36]===O?_e=e[37]:(_e=()=>{O()},e[36]=O,e[37]=_e);let Ye=_e,Re;e[38]!==Oe||e[39]!==i||e[40]!==s?(Re=()=>{var x;s.trim()&&((x=u.current)!=null&&x.view&&nt(u.current.view),Oe(s.trim(),i))},e[38]=Oe,e[39]=i,e[40]=s,e[41]=Re):Re=e[41];let Xe=V(Re),Ae;e[42]===Symbol.for("react.memo_cache_sentinel")?(Ae=()=>{var x,v;return(v=(x=u.current)==null?void 0:x.editor)==null?void 0:v.blur()},e[42]=Ae):Ae=e[42];let It=Ae,M=A.length===0,Te;e[43]!==Ue||e[44]!==Xe||e[45]!==o||e[46]!==z||e[47]!==M||e[48]!==s||e[49]!==ve||e[50]!==k?(Te=M?(0,l.jsx)(Ze,{placeholder:"Ask anything, @ to include context about tables or dataframes",input:s,inputRef:u,inputClassName:"px-1 py-0",setInput:c,onSubmit:Xe,isLoading:z,onStop:k,fileInputRef:f,onAddFiles:ve,onClose:It},"new-thread-input"):(0,l.jsx)(Ze,{input:o,setInput:n,onSubmit:Ue,inputRef:p,isLoading:z,onStop:k,onClose:()=>{var x,v;return(v=(x=p.current)==null?void 0:x.editor)==null?void 0:v.blur()},fileInputRef:f,onAddFiles:ve}),e[43]=Ue,e[44]=Xe,e[45]=o,e[46]=z,e[47]=M,e[48]=s,e[49]=ve,e[50]=k,e[51]=Te):Te=e[51];let J=Te,Ee;e[52]!==i||e[53]!==M||e[54]!==He?(Ee=i&&i.length>0&&(0,l.jsx)("div",{className:se("flex flex-row gap-1 flex-wrap p-1",M&&"py-2 px-1"),children:i==null?void 0:i.map(x=>(0,l.jsx)(rr,{file:x,onRemove:()=>He(x)},x.name))}),e[52]=i,e[53]=M,e[54]=He,e[55]=Ee):Ee=e[55];let K=Ee,Be=r==null?void 0:r.id,Q;e[56]!==We||e[57]!==a||e[58]!==Be?(Q=(0,l.jsx)(dt,{children:(0,l.jsx)(el,{onNewChat:We,activeChatId:Be,setActiveChat:a})}),e[56]=We,e[57]=a,e[58]=Be,e[59]=Q):Q=e[59];let Z;e[60]!==J||e[61]!==K||e[62]!==M?(Z=M&&(0,l.jsxs)("div",{className:"rounded-md border bg-background",children:[K,J]}),e[60]=J,e[61]=K,e[62]=M,e[63]=Z):Z=e[63];let G;if(e[64]!==me||e[65]!==ue||e[66]!==A){let x;e[68]!==me||e[69]!==ue||e[70]!==A.length?(x=(v,R)=>(0,l.jsx)(Tt,{message:v,index:R,onEdit:me,isStreamingReasoning:ue,isLast:R===A.length-1},v.id),e[68]=me,e[69]=ue,e[70]=A.length,e[71]=x):x=e[71],G=A.map(x),e[64]=me,e[65]=ue,e[66]=A,e[67]=G}else G=e[67];let ee;e[72]===z?ee=e[73]:(ee=z&&(0,l.jsx)("div",{className:"flex justify-center py-4",children:(0,l.jsx)(xr,{className:"h-4 w-4 animate-spin"})}),e[72]=z,e[73]=ee);let te;e[74]!==H||e[75]!==Ye?(te=H&&(0,l.jsxs)("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[(0,l.jsx)(Ir,{error:H}),(0,l.jsx)(B,{variant:"outline",size:"sm",onClick:Ye,children:"Retry"})]}),e[74]=H,e[75]=Ye,e[76]=te):te=e[76];let Le;e[77]===Symbol.for("react.memo_cache_sentinel")?(Le=(0,l.jsx)("div",{ref:g}),e[77]=Le):Le=e[77];let re;e[78]!==Z||e[79]!==G||e[80]!==ee||e[81]!==te?(re=(0,l.jsxs)("div",{className:"flex-1 px-3 bg-(--slate-1) gap-4 py-3 flex flex-col overflow-y-auto",ref:h,children:[Z,G,ee,te,Le]}),e[78]=Z,e[79]=G,e[80]=ee,e[81]=te,e[82]=re):re=e[82];let le;e[83]!==z||e[84]!==k?(le=z&&(0,l.jsx)("div",{className:"w-full flex justify-center items-center z-20 border-t",children:(0,l.jsx)(B,{variant:"linkDestructive",size:"sm",onClick:k,children:"Stop"})}),e[83]=z,e[84]=k,e[85]=le):le=e[85];let oe;e[86]!==J||e[87]!==K||e[88]!==M?(oe=!M&&(0,l.jsxs)(l.Fragment,{children:[K,J]}),e[86]=J,e[87]=K,e[88]=M,e[89]=oe):oe=e[89];let Ie;return e[90]!==Q||e[91]!==re||e[92]!==le||e[93]!==oe?(Ie=(0,l.jsxs)("div",{className:"flex flex-col h-[calc(100%-53px)]",children:[Q,re,le,oe]}),e[90]=Q,e[91]=re,e[92]=le,e[93]=oe,e[94]=Ie):Ie=e[94],Ie},ll=tl;function ol(e){return e.type==="text"}function nl(e){return e.text}function al(e){return e.type==="file"}function sl(e,t){return(0,l.jsx)(or,{attachment:e},t)}function il(){}function cl(){}function dl(e){return e.type==="text"}function ul(e){return e.text}function ml(e){return(0,l.jsx)(cr,{value:e.value,className:"text-xs",children:(0,l.jsxs)("div",{className:"flex flex-col",children:[e.label,(0,l.jsx)("div",{className:"text-muted-foreground text-xs pt-1 block",children:e.subtitle})]})},e.value)}function pl(e){let{messages:t}=e;return $t(t)}function hl(e){Pe.error("An error occurred:",e)}function fl(e){return e.type==="file"}export{ll as default}; diff --git a/docs/assets/check-CrAQug3q.js b/docs/assets/check-CrAQug3q.js new file mode 100644 index 0000000..cc26540 --- /dev/null +++ b/docs/assets/check-CrAQug3q.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var e=t("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);export{e as t}; diff --git a/docs/assets/chevron-right-CqEd11Di.js b/docs/assets/chevron-right-CqEd11Di.js new file mode 100644 index 0000000..a02e27b --- /dev/null +++ b/docs/assets/chevron-right-CqEd11Di.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var r=t("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);export{r as t}; diff --git a/docs/assets/chunk-4BX2VUAB-B5-8Pez8.js b/docs/assets/chunk-4BX2VUAB-B5-8Pez8.js new file mode 100644 index 0000000..94108e6 --- /dev/null +++ b/docs/assets/chunk-4BX2VUAB-B5-8Pez8.js @@ -0,0 +1 @@ +import{n as r}from"./src-faGJHwXX.js";function l(i,c){var e,a,o;i.accDescr&&((e=c.setAccDescription)==null||e.call(c,i.accDescr)),i.accTitle&&((a=c.setAccTitle)==null||a.call(c,i.accTitle)),i.title&&((o=c.setDiagramTitle)==null||o.call(c,i.title))}r(l,"populateCommonDb");export{l as t}; diff --git a/docs/assets/chunk-55IACEB6-DvJ_-Ku-.js b/docs/assets/chunk-55IACEB6-DvJ_-Ku-.js new file mode 100644 index 0000000..56e3e94 --- /dev/null +++ b/docs/assets/chunk-55IACEB6-DvJ_-Ku-.js @@ -0,0 +1 @@ +import{u as r}from"./src-Bp_72rVO.js";import{n}from"./src-faGJHwXX.js";var a=n((e,o)=>{let t;return o==="sandbox"&&(t=r("#i"+e)),r(o==="sandbox"?t.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement");export{a as t}; diff --git a/docs/assets/chunk-76Q3JFCE-COngPFoW.js b/docs/assets/chunk-76Q3JFCE-COngPFoW.js new file mode 100644 index 0000000..f8a43cb --- /dev/null +++ b/docs/assets/chunk-76Q3JFCE-COngPFoW.js @@ -0,0 +1 @@ +var e;import{c as o,f as r,g as u,h as l,i as d,m as t,p as k,s as p,t as v}from"./chunk-FPAJGGOC-C0XAW5Os.js";var h=(e=class extends v{constructor(){super(["packet"])}},r(e,"PacketTokenBuilder"),e),c={parser:{TokenBuilder:r(()=>new h,"TokenBuilder"),ValueConverter:r(()=>new d,"ValueConverter")}};function n(i=k){let a=t(u(i),p),s=t(l({shared:a}),o,c);return a.ServiceRegistry.register(s),{shared:a,Packet:s}}r(n,"createPacketServices");export{n,c as t}; diff --git a/docs/assets/chunk-ABZYJK2D-DAD3GlgM.js b/docs/assets/chunk-ABZYJK2D-DAD3GlgM.js new file mode 100644 index 0000000..857e666 --- /dev/null +++ b/docs/assets/chunk-ABZYJK2D-DAD3GlgM.js @@ -0,0 +1,80 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./katex-BmeEOSF2.js","./katex-dFZM4X_7.js"])))=>i.map(i=>d[i]); +import{t as hr}from"./preload-helper-BW0IMuFq.js";import{t as gt}from"./purify.es-N-2faAGj.js";import{i as nr,n as a,r as q,t as cr}from"./src-faGJHwXX.js";let R,Gi,Ht,jt,Vi,Gt,ut,Vt,Ni,P,$,Nt,Yt,Yi,Xt,Tt,Xi,H,Ui,Ki,Ut,Kt,Zt,Zi,d,Ji,c,Jt,Qt,Ft,ti,ii,O,Qi,ri,ei,tr,ir,j,Q,oi,rr,St,tt,er,F,or,si,C,sr,ai,ar,lr,pt,li,dr=(async()=>{var N,Y,X,U,K,Z,J;let it,I;it={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let i=t/255;return t>.03928?((i+.055)/1.055)**2.4:i/12.92},hue2rgb:(t,i,r)=>(r<0&&(r+=1),r>1&&--r,r<1/6?t+(i-t)*6*r:r<1/2?i:r<2/3?t+(i-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:i,l:r},o)=>{if(!i)return r*2.55;t/=360,i/=100,r/=100;let l=r<.5?r*(1+i):r+i-r*i,n=2*r-l;switch(o){case"r":return it.hue2rgb(n,l,t+1/3)*255;case"g":return it.hue2rgb(n,l,t)*255;case"b":return it.hue2rgb(n,l,t-1/3)*255}},rgb2hsl:({r:t,g:i,b:r},o)=>{t/=255,i/=255,r/=255;let l=Math.max(t,i,r),n=Math.min(t,i,r),p=(l+n)/2;if(o==="l")return p*100;if(l===n)return 0;let u=l-n,m=p>.5?u/(2-l-n):u/(l+n);if(o==="s")return m*100;switch(l){case t:return((i-r)/u+(ii>r?Math.min(i,Math.max(r,t)):Math.min(r,Math.max(i,t)),round:t=>Math.round(t*1e10)/1e10},unit:{dec2hex:t=>{let i=Math.round(t).toString(16);return i.length>1?i:`0${i}`}}},I={};for(let t=0;t<=255;t++)I[t]=C.unit.dec2hex(t);let S,hi,rt,Lt,G,et,ot,st,_t,qt,at,vt,ni,ci,At,e,di,h,Ci,zt,mt,lt,ht,L,gi,ui,pi,mi,xi,yi,bi,ki,W,Et,wt,fi,Bi,_,xt,D,V,nt,Mt,Ti,Ot,Fi,Wt,Si,Li;S={ALL:0,RGB:1,HSL:2},hi=class{constructor(){this.type=S.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=S.ALL}is(t){return this.type===t}},rt=new class{constructor(t,i){this.color=i,this.changed=!1,this.data=t,this.type=new hi}set(t,i){return this.color=i,this.changed=!1,this.data=t,this.type.type=S.ALL,this}_ensureHSL(){let t=this.data,{h:i,s:r,l:o}=t;i===void 0&&(t.h=C.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=C.channel.rgb2hsl(t,"s")),o===void 0&&(t.l=C.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:i,g:r,b:o}=t;i===void 0&&(t.r=C.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=C.channel.hsl2rgb(t,"g")),o===void 0&&(t.b=C.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,i=t.r;return!this.type.is(S.HSL)&&i!==void 0?i:(this._ensureHSL(),C.channel.hsl2rgb(t,"r"))}get g(){let t=this.data,i=t.g;return!this.type.is(S.HSL)&&i!==void 0?i:(this._ensureHSL(),C.channel.hsl2rgb(t,"g"))}get b(){let t=this.data,i=t.b;return!this.type.is(S.HSL)&&i!==void 0?i:(this._ensureHSL(),C.channel.hsl2rgb(t,"b"))}get h(){let t=this.data,i=t.h;return!this.type.is(S.RGB)&&i!==void 0?i:(this._ensureRGB(),C.channel.rgb2hsl(t,"h"))}get s(){let t=this.data,i=t.s;return!this.type.is(S.RGB)&&i!==void 0?i:(this._ensureRGB(),C.channel.rgb2hsl(t,"s"))}get l(){let t=this.data,i=t.l;return!this.type.is(S.RGB)&&i!==void 0?i:(this._ensureRGB(),C.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(S.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(S.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(S.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(S.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(S.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(S.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),Lt={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let i=t.match(Lt.re);if(!i)return;let r=i[1],o=parseInt(r,16),l=r.length,n=l%4==0,p=l>4,u=p?1:17,m=p?8:4,x=n?0:-1,y=p?255:15;return rt.set({r:(o>>m*(x+3)&y)*u,g:(o>>m*(x+2)&y)*u,b:(o>>m*(x+1)&y)*u,a:n?(o&y)*u/255:1},t)},stringify:t=>{let{r:i,g:r,b:o,a:l}=t;return l<1?`#${I[Math.round(i)]}${I[Math.round(r)]}${I[Math.round(o)]}${I[Math.round(l*255)]}`:`#${I[Math.round(i)]}${I[Math.round(r)]}${I[Math.round(o)]}`}},G=Lt,et={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let i=t.match(et.hueRe);if(i){let[,r,o]=i;switch(o){case"grad":return C.channel.clamp.h(parseFloat(r)*.9);case"rad":return C.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return C.channel.clamp.h(parseFloat(r)*360)}}return C.channel.clamp.h(parseFloat(t))},parse:t=>{let i=t.charCodeAt(0);if(i!==104&&i!==72)return;let r=t.match(et.re);if(!r)return;let[,o,l,n,p,u]=r;return rt.set({h:et._hue2deg(o),s:C.channel.clamp.s(parseFloat(l)),l:C.channel.clamp.l(parseFloat(n)),a:p?C.channel.clamp.a(u?parseFloat(p)/100:parseFloat(p)):1},t)},stringify:t=>{let{h:i,s:r,l:o,a:l}=t;return l<1?`hsla(${C.lang.round(i)}, ${C.lang.round(r)}%, ${C.lang.round(o)}%, ${l})`:`hsl(${C.lang.round(i)}, ${C.lang.round(r)}%, ${C.lang.round(o)}%)`}},ot=et,st={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let i=st.colors[t];if(i)return G.parse(i)},stringify:t=>{let i=G.stringify(t);for(let r in st.colors)if(st.colors[r]===i)return r}},_t=st,qt={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let i=t.charCodeAt(0);if(i!==114&&i!==82)return;let r=t.match(qt.re);if(!r)return;let[,o,l,n,p,u,m,x,y]=r;return rt.set({r:C.channel.clamp.r(l?parseFloat(o)*2.55:parseFloat(o)),g:C.channel.clamp.g(p?parseFloat(n)*2.55:parseFloat(n)),b:C.channel.clamp.b(m?parseFloat(u)*2.55:parseFloat(u)),a:x?C.channel.clamp.a(y?parseFloat(x)/100:parseFloat(x)):1},t)},stringify:t=>{let{r:i,g:r,b:o,a:l}=t;return l<1?`rgba(${C.lang.round(i)}, ${C.lang.round(r)}, ${C.lang.round(o)}, ${C.lang.round(l)})`:`rgb(${C.lang.round(i)}, ${C.lang.round(r)}, ${C.lang.round(o)})`}},at=qt,O={format:{keyword:_t,hex:G,rgb:at,rgba:at,hsl:ot,hsla:ot},parse:t=>{if(typeof t!="string")return t;let i=G.parse(t)||at.parse(t)||ot.parse(t)||_t.parse(t);if(i)return i;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(S.HSL)||t.data.r===void 0?ot.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?at.stringify(t):G.stringify(t)},vt=(t,i)=>{let r=O.parse(t);for(let o in i)r[o]=C.channel.clamp[o](i[o]);return O.stringify(r)},R=(t,i,r=0,o=1)=>{if(typeof t!="number")return vt(t,{a:i});let l=rt.set({r:C.channel.clamp.r(t),g:C.channel.clamp.g(i),b:C.channel.clamp.b(r),a:C.channel.clamp.a(o)});return O.stringify(l)},ni=t=>{let{r:i,g:r,b:o}=O.parse(t),l=.2126*C.channel.toLinear(i)+.7152*C.channel.toLinear(r)+.0722*C.channel.toLinear(o);return C.lang.round(l)},ci=t=>ni(t)>=.5,H=t=>!ci(t),At=(t,i,r)=>{let o=O.parse(t),l=o[i],n=C.channel.clamp[i](l+r);return l!==n&&(o[i]=n),O.stringify(o)},c=(t,i)=>At(t,"l",i),d=(t,i)=>At(t,"l",-i),e=(t,i)=>{let r=O.parse(t),o={};for(let l in i)i[l]&&(o[l]=r[l]+i[l]);return vt(t,o)},di=(t,i,r=50)=>{let{r:o,g:l,b:n,a:p}=O.parse(t),{r:u,g:m,b:x,a:y}=O.parse(i),f=r/100,b=f*2-1,B=p-y,k=((b*B===-1?b:(b+B)/(1+b*B))+1)/2,T=1-k;return R(o*k+u*T,l*k+m*T,n*k+x*T,p*f+y*(1-f))},h=(t,i=100)=>{let r=O.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,di(r,t,i)},ri=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,oi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ci=/\s*%%.*\n/gm,si=(N=class extends Error{constructor(i){super(i),this.name="UnknownDiagramError"}},a(N,"UnknownDiagramError"),N),tt={},Qi=a(function(t,i){t=t.replace(ri,"").replace(oi,"").replace(Ci,` +`);for(let[r,{detector:o}]of Object.entries(tt))if(o(t,i))return r;throw new si(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),Yi=a((...t)=>{for(let{id:i,detector:r,loader:o}of t)zt(i,r,o)},"registerLazyLoadedDiagrams"),zt=a((t,i,r)=>{tt[t]&&q.warn(`Detector with key ${t} already exists. Overwriting.`),tt[t]={detector:i,loader:r},q.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),Ki=a(t=>tt[t].loader,"getDiagramLoader"),mt=a((t,i,{depth:r=2,clobber:o=!1}={})=>{let l={depth:r,clobber:o};return Array.isArray(i)&&!Array.isArray(t)?(i.forEach(n=>mt(t,n,l)),t):Array.isArray(i)&&Array.isArray(t)?(i.forEach(n=>{t.includes(n)||t.push(n)}),t):t===void 0||r<=0?typeof t=="object"&&t&&typeof i=="object"?Object.assign(t,i):i:(i!==void 0&&typeof t=="object"&&typeof i=="object"&&Object.keys(i).forEach(n=>{typeof i[n]=="object"&&(t[n]===void 0||typeof t[n]=="object")?(t[n]===void 0&&(t[n]=Array.isArray(i[n])?[]:{}),t[n]=mt(t[n],i[n],{depth:r-1,clobber:o})):(o||typeof t[n]!="object"&&typeof i[n]!="object")&&(t[n]=i[n])}),t)},"assignWithDepth"),F=mt,lt="#ffffff",ht="#f2f2f2",L=a((t,i)=>i?e(t,{s:-40,l:10}):e(t,{s:-40,l:-10}),"mkBorder"),gi=(Y=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,o,l,n,p,u,m,x,y,f,b,B,k,T,v,A,z,E,w,M,s;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||e(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||e(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||L(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||L(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||L(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||h(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||h(this.tertiaryColor),this.lineColor=this.lineColor||h(this.background),this.arrowheadColor=this.arrowheadColor||h(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?d(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||d(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||h(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||c(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||d(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||d(this.mainBkg,10)):(this.rowOdd=this.rowOdd||c(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||c(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g{this[o]=i[o]}),this.updateColors(),r.forEach(o=>{this[o]=i[o]})}},a(Y,"Theme"),Y),ui=a(t=>{let i=new gi;return i.calculate(t),i},"getThemeVariables"),pi=(X=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=c(this.primaryColor,16),this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=h(this.background),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=c(h("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=R(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=d("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=d(this.sectionBkgColor,10),this.taskBorderColor=R(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=R(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||c(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||d(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var i,r,o,l,n,p,u,m,x,y,f,b,B,k,T,v,A,z,E,w,M;this.secondBkg=c(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=c(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=c(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=e(this.primaryColor,{h:64}),this.fillType3=e(this.secondaryColor,{h:64}),this.fillType4=e(this.primaryColor,{h:-64}),this.fillType5=e(this.secondaryColor,{h:-64}),this.fillType6=e(this.primaryColor,{h:128}),this.fillType7=e(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330});for(let s=0;s{this[o]=i[o]}),this.updateColors(),r.forEach(o=>{this[o]=i[o]})}},a(X,"Theme"),X),mi=a(t=>{let i=new pi;return i.calculate(t),i},"getThemeVariables"),xi=(U=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=e(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.primaryColor,this.darkMode),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=R(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var i,r,o,l,n,p,u,m,x,y,f,b,B,k,T,v,A,z,E,w,M;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||d(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||d(this.tertiaryColor,40);for(let s=0;s{this[o]==="calculated"&&(this[o]=void 0)}),typeof i!="object"){this.updateColors();return}let r=Object.keys(i);r.forEach(o=>{this[o]=i[o]}),this.updateColors(),r.forEach(o=>{this[o]=i[o]})}},a(U,"Theme"),U),Ut=a(t=>{let i=new xi;return i.calculate(t),i},"getThemeVariables"),yi=(K=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=c("#cde498",10),this.primaryBorderColor=L(this.primaryColor,this.darkMode),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.primaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var i,r,o,l,n,p,u,m,x,y,f,b,B,k,T,v,A,z,E,w,M;this.actorBorder=d(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||e(this.primaryColor,{h:30}),this.cScale4=this.cScale4||e(this.primaryColor,{h:60}),this.cScale5=this.cScale5||e(this.primaryColor,{h:90}),this.cScale6=this.cScale6||e(this.primaryColor,{h:120}),this.cScale7=this.cScale7||e(this.primaryColor,{h:150}),this.cScale8=this.cScale8||e(this.primaryColor,{h:210}),this.cScale9=this.cScale9||e(this.primaryColor,{h:270}),this.cScale10=this.cScale10||e(this.primaryColor,{h:300}),this.cScale11=this.cScale11||e(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||d(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||d(this.tertiaryColor,40);for(let s=0;s{this[o]=i[o]}),this.updateColors(),r.forEach(o=>{this[o]=i[o]})}},a(K,"Theme"),K),bi=a(t=>{let i=new yi;return i.calculate(t),i},"getThemeVariables"),ki=(Z=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=c(this.contrast,55),this.background="#ffffff",this.tertiaryColor=e(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.primaryColor,this.darkMode),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=h(this.primaryColor),this.secondaryTextColor=h(this.secondaryColor),this.tertiaryTextColor=h(this.tertiaryColor),this.lineColor=h(this.background),this.textColor=h(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||c(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var i,r,o,l,n,p,u,m,x,y,f,b,B,k,T,v,A,z,E,w,M;this.secondBkg=c(this.contrast,55),this.border2=this.contrast,this.actorBorder=c(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let s=0;s{this[o]=i[o]}),this.updateColors(),r.forEach(o=>{this[o]=i[o]})}},a(Z,"Theme"),Z),$={base:{getThemeVariables:ui},dark:{getThemeVariables:mi},default:{getThemeVariables:Ut},forest:{getThemeVariables:bi},neutral:{getThemeVariables:a(t=>{let i=new ki;return i.calculate(t),i},"getThemeVariables")}},W={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Et={...W,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:$.default.getThemeVariables(),sequence:{...W.sequence,messageFont:a(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:a(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:a(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...W.gantt,tickInterval:void 0,useWidth:void 0},c4:{...W.c4,useWidth:void 0,personFont:a(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...W.flowchart,inheritDir:!1},external_personFont:a(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:a(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:a(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:a(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:a(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:a(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:a(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:a(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:a(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:a(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:a(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:a(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:a(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:a(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:a(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:a(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:a(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:a(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:a(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:a(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:a(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...W.pie,useWidth:984},xyChart:{...W.xyChart,useWidth:void 0},requirement:{...W.requirement,useWidth:void 0},packet:{...W.packet},radar:{...W.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},wt=a((t,i="")=>Object.keys(t).reduce((r,o)=>Array.isArray(t[o])?r:typeof t[o]=="object"&&t[o]!==null?[...r,i+o,...wt(t[o],"")]:[...r,i+o],[]),"keyify"),fi=new Set(wt(Et,"")),ii=Et,ut=a(t=>{if(q.debug("sanitizeDirective called with",t),!(typeof t!="object"||!t)){if(Array.isArray(t)){t.forEach(i=>ut(i));return}for(let i of Object.keys(t)){if(q.debug("Checking key",i),i.startsWith("__")||i.includes("proto")||i.includes("constr")||!fi.has(i)||t[i]==null){q.debug("sanitize deleting key: ",i),delete t[i];continue}if(typeof t[i]=="object"){q.debug("sanitizing object",i),ut(t[i]);continue}for(let r of["themeCSS","fontFamily","altFontFamily"])i.includes(r)&&(q.debug("sanitizing css option",i),t[i]=Bi(t[i]))}if(t.themeVariables)for(let i of Object.keys(t.themeVariables)){let r=t.themeVariables[i];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}q.debug("After sanitization",t)}},"sanitizeDirective"),Bi=a(t=>{let i=0,r=0;for(let o of t){if(i{let r=F({},t),o={};for(let l of i)Mt(l),o=F(o,l);if(r=F(r,o),o.theme&&o.theme in $){let l=F(F({},xt).themeVariables||{},o.themeVariables);r.theme&&r.theme in $&&(r.themeVariables=$[r.theme].getThemeVariables(l))}return V=r,Wt(V),V},"updateCurrentConfig"),Zi=a(t=>(_=F({},Q),_=F(_,t),t.theme&&$[t.theme]&&(_.themeVariables=$[t.theme].getThemeVariables(t.themeVariables)),nt(_,D),_),"setSiteConfig"),Ui=a(t=>{xt=F({},t)},"saveConfigFromInitialize"),Ji=a(t=>(_=F(_,t),nt(_,D),_),"updateSiteConfig"),ar=a(()=>F({},_),"getSiteConfig"),Zt=a(t=>(Wt(t),F(V,t),pt()),"setConfig"),pt=a(()=>F({},V),"getConfig"),Mt=a(t=>{t&&(["secure",..._.secure??[]].forEach(i=>{Object.hasOwn(t,i)&&(q.debug(`Denied attempt to modify a secure key ${i}`,t[i]),delete t[i])}),Object.keys(t).forEach(i=>{i.startsWith("__")&&delete t[i]}),Object.keys(t).forEach(i=>{typeof t[i]=="string"&&(t[i].includes("<")||t[i].includes(">")||t[i].includes("url(data:"))&&delete t[i],typeof t[i]=="object"&&Mt(t[i])}))},"sanitize"),rr=a(t=>{var i;ut(t),t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),D.push(t),nt(_,D)},"addDirective"),Xi=a((t=_)=>{D=[],nt(t,D)},"reset"),Ti={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ot={},Fi=a(t=>{Ot[t]||(q.warn(Ti[t]),Ot[t]=!0)},"issueWarning"),Wt=a(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Fi("LAZY_LOAD_DEPRECATED")},"checkConfig"),Vi=a(()=>{let t={};xt&&(t=F(t,xt));for(let i of D)t=F(t,i);return t},"getUserDefinedConfig"),j=//gi,Si=a(t=>t?Pt(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Li=(()=>{let t=!1;return()=>{t||(t=(_i(),!0))}})();function _i(){let t="data-temp-href-target";gt.addHook("beforeSanitizeAttributes",i=>{i.tagName==="A"&&i.hasAttribute("target")&&i.setAttribute(t,i.getAttribute("target")??"")}),gt.addHook("afterSanitizeAttributes",i=>{i.tagName==="A"&&i.hasAttribute(t)&&(i.setAttribute("target",i.getAttribute(t)??""),i.removeAttribute(t),i.getAttribute("target")==="_blank"&&i.setAttribute("rel","noopener"))})}a(_i,"setupDompurifyHooks");let It,Dt,qi,vi,Ai,zi,Pt,Ei,wi,yt,Mi,Oi,$t,ct,Wi,Ii,Di,dt,Pi,$i;It=a(t=>(Li(),gt.sanitize(t)),"removeScript"),Dt=a((t,i)=>{var r;if(((r=i.flowchart)==null?void 0:r.htmlLabels)!==!1){let o=i.securityLevel;o==="antiscript"||o==="strict"?t=It(t):o!=="loose"&&(t=Pt(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=zi(t))}return t},"sanitizeMore"),P=a((t,i)=>t&&(t=i.dompurifyConfig?gt.sanitize(Dt(t,i),i.dompurifyConfig).toString():gt.sanitize(Dt(t,i),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),qi=a((t,i)=>typeof t=="string"?P(t,i):t.flat().map(r=>P(r,i)),"sanitizeTextOrArray"),vi=a(t=>j.test(t),"hasBreaks"),Ai=a(t=>t.split(j),"splitBreaks"),zi=a(t=>t.replace(/#br#/g,"
"),"placeholderToBreak"),Pt=a(t=>t.replace(j,"#br#"),"breakToPlaceholder"),Gt=a(t=>{let i="";return t&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=CSS.escape(i)),i},"getUrl"),ei=a(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Ei=a(function(...t){let i=t.filter(r=>!isNaN(r));return Math.max(...i)},"getMax"),wi=a(function(...t){let i=t.filter(r=>!isNaN(r));return Math.min(...i)},"getMin"),Gi=a(function(t){let i=t.split(/(,)/),r=[];for(let o=0;o0&&o+1Math.max(0,t.split(i).length-1),"countOccurrence"),Mi=a((t,i)=>{let r=yt(t,"~"),o=yt(i,"~");return r===1&&o===1},"shouldCombineSets"),Oi=a(t=>{let i=yt(t,"~"),r=!1;if(i<=1)return t;i%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let o=[...t],l=o.indexOf("~"),n=o.lastIndexOf("~");for(;l!==-1&&n!==-1&&l!==n;)o[l]="<",o[n]=">",l=o.indexOf("~"),n=o.lastIndexOf("~");return r&&o.unshift("~"),o.join("")},"processSet"),$t=a(()=>window.MathMLElement!==void 0,"isMathMLSupported"),ct=/\$\$(.*)\$\$/g,Tt=a(t=>{var i;return(((i=t.match(ct))==null?void 0:i.length)??0)>0},"hasKatex"),tr=a(async(t,i)=>{var l;let r=document.createElement("div");r.innerHTML=await Xt(t,i),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",(l=document.querySelector("body"))==null||l.insertAdjacentElement("beforeend",r);let o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o},"calculateMathMLDimensions"),Wi=a(async(t,i)=>{if(!Tt(t))return t;if(!($t()||i.legacyMathML||i.forceLegacyMathML))return t.replace(ct,"MathML is unsupported in this environment.");{let{default:r}=await hr(async()=>{let{default:l}=await import("./katex-BmeEOSF2.js").then(async n=>(await n.__tla,n));return{default:l}},__vite__mapDeps([0,1]),import.meta.url),o=i.forceLegacyMathML||!$t()&&i.legacyMathML?"htmlAndMathml":"mathml";return t.split(j).map(l=>Tt(l)?`
${l}
`:`
${l}
`).join("").replace(ct,(l,n)=>r.renderToString(n,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(//g,""))}return t.replace(ct,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),Xt=a(async(t,i)=>P(await Wi(t,i),i),"renderKatexSanitized"),or={getRows:Si,sanitizeText:P,sanitizeTextOrArray:qi,hasBreaks:vi,splitBreaks:Ai,lineBreakRegex:j,removeScript:It,getUrl:Gt,evaluate:ei,getMax:Ei,getMin:wi},Ii=a(function(t,i){for(let r of i)t.attr(r[0],r[1])},"d3Attrs"),Di=a(function(t,i,r){let o=new Map;return r?(o.set("width","100%"),o.set("style",`max-width: ${i}px;`)):(o.set("height",t),o.set("width",i)),o},"calculateSvgSizeAttrs"),ti=a(function(t,i,r,o){Ii(t,Di(i,r,o))},"configureSvgSize"),Vt=a(function(t,i,r,o){let l=i.node().getBBox(),n=l.width,p=l.height;q.info(`SVG bounds: ${n}x${p}`,l);let u=0,m=0;q.info(`Graph bounds: ${u}x${m}`,t),u=n+r*2,m=p+r*2,q.info(`Calculated bounds: ${u}x${m}`),ti(i,m,u,o);let x=`${l.x-r} ${l.y-r} ${l.width+2*r} ${l.height+2*r}`;i.attr("viewBox",x)},"setupGraphViewbox"),dt={},Pi=a((t,i,r)=>{let o="";return t in dt&&dt[t]?o=dt[t](r):q.warn(`No theme found for ${t}`),` & { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + fill: ${r.textColor} + } + @keyframes edge-animation-frame { + from { + stroke-dashoffset: 0; + } + } + @keyframes dash { + to { + stroke-dashoffset: 0; + } + } + & .edge-animation-slow { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 50s linear infinite; + stroke-linecap: round; + } + & .edge-animation-fast { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 20s linear infinite; + stroke-linecap: round; + } + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${r.errorBkgColor}; + } + & .error-text { + fill: ${r.errorTextColor}; + stroke: ${r.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: 1px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${r.lineColor}; + stroke: ${r.lineColor}; + } + & .marker.cross { + stroke: ${r.lineColor}; + } + + & svg { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + } + & p { + margin: 0 + } + + ${o} + + ${i} +`},"getStyles"),$i=a((t,i)=>{i!==void 0&&(dt[t]=i)},"addStylesForDiagram"),er=Pi,St={},cr(St,{clear:()=>Qt,getAccDescription:()=>Jt,getAccTitle:()=>ai,getDiagramTitle:()=>jt,setAccDescription:()=>li,setAccTitle:()=>Ht,setDiagramTitle:()=>Kt});let bt,kt,ft,Bt,Rt,Ri,Hi,Ct,ji;bt="",kt="",ft="",Bt=a(t=>P(t,pt()),"sanitizeText"),Qt=a(()=>{bt="",ft="",kt=""},"clear"),Ht=a(t=>{bt=Bt(t).replace(/^\s+/g,"")},"setAccTitle"),ai=a(()=>bt,"getAccTitle"),li=a(t=>{ft=Bt(t).replace(/\n\s+/g,` +`)},"setAccDescription"),Jt=a(()=>ft,"getAccDescription"),Kt=a(t=>{kt=Bt(t)},"setDiagramTitle"),jt=a(()=>kt,"getDiagramTitle"),Rt=q,Ri=nr,Ft=pt,Ni=Zt,sr=Q,Yt=a(t=>P(t,Ft()),"sanitizeText"),Nt=Vt,Hi=a(()=>St,"getCommonDb"),Ct={},ir=a((t,i,r)=>{var o;Ct[t]&&Rt.warn(`Diagram with id ${t} already registered. Overwriting.`),Ct[t]=i,r&&zt(t,r),$i(t,i.styles),(o=i.injectUtils)==null||o.call(i,Rt,Ri,Ft,Yt,Nt,Hi(),()=>{})},"registerDiagram"),lr=a(t=>{if(t in Ct)return Ct[t];throw new ji(t)},"getDiagram"),ji=(J=class extends Error{constructor(i){super(`Diagram ${i} not found.`)}},a(J,"DiagramNotFoundError"),J)})();export{R as $,Gi as A,Ht as B,jt as C,Vi as D,Gt as E,ut as F,Vt as G,Ni as H,P as I,$ as J,Nt as K,Yt as L,Yi as M,Xt as N,Tt as O,Xi as P,H as Q,Ui as R,Ki as S,Ut as T,Kt as U,Zt as V,Zi as W,d as X,Ji as Y,c as Z,Jt as _,dr as __tla,Qt as a,Ft as b,ti as c,ii as d,O as et,Qi as f,ri as g,ei as h,tr as i,ir as j,j as k,Q as l,oi as m,rr as n,St as o,tt as p,er as q,F as r,or as s,si as t,C as tt,sr as u,ai as v,ar as w,lr as x,pt as y,li as z}; diff --git a/docs/assets/chunk-ATLVNIR6-DsKp3Ify.js b/docs/assets/chunk-ATLVNIR6-DsKp3Ify.js new file mode 100644 index 0000000..73c86e2 --- /dev/null +++ b/docs/assets/chunk-ATLVNIR6-DsKp3Ify.js @@ -0,0 +1 @@ +import{n as a}from"./src-faGJHwXX.js";import{b as p}from"./chunk-ABZYJK2D-DAD3GlgM.js";var d=a(t=>{let{handDrawnSeed:e}=p();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),h=a(t=>{let e=f([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),f=a(t=>{let e=new Map;return t.forEach(s=>{let[i,l]=s.split(":");e.set(i.trim(),l==null?void 0:l.trim())}),e},"styles2Map"),y=a(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),u=a(t=>{let{stylesArray:e}=h(t),s=[],i=[],l=[],n=[];return e.forEach(r=>{let o=r[0];y(o)?s.push(r.join(":")+" !important"):(i.push(r.join(":")+" !important"),o.includes("stroke")&&l.push(r.join(":")+" !important"),o==="fill"&&n.push(r.join(":")+" !important"))}),{labelStyles:s.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:l,backgroundStyles:n}},"styles2String"),g=a((t,e)=>{var o;let{themeVariables:s,handDrawnSeed:i}=p(),{nodeBorder:l,mainBkg:n}=s,{stylesMap:r}=h(t);return Object.assign({roughness:.7,fill:r.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:r.get("stroke")||l,seed:i,strokeWidth:((o=r.get("stroke-width"))==null?void 0:o.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:c(r.get("stroke-dasharray"))},e)},"userNodeOverrides"),c=a(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(e.length===1){let s=isNaN(e[0])?0:e[0];return[s,s]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray");export{g as a,u as i,y as n,d as r,h as t}; diff --git a/docs/assets/chunk-B4BG7PRW-Cv1rtZu-.js b/docs/assets/chunk-B4BG7PRW-Cv1rtZu-.js new file mode 100644 index 0000000..578778c --- /dev/null +++ b/docs/assets/chunk-B4BG7PRW-Cv1rtZu-.js @@ -0,0 +1,165 @@ +var P,M;import{u as J}from"./src-Bp_72rVO.js";import{c as te,g as It}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as A,r as Ot}from"./src-faGJHwXX.js";import{A as w,B as ee,C as se,I as ie,U as ne,_ as re,a as ae,b as F,s as L,v as ue,z as le}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{r as oe,t as ce}from"./chunk-N4CR4FBY-DtYoI569.js";import{t as he}from"./chunk-FMBD7UC4-DYXO3edG.js";import{t as pe}from"./chunk-55IACEB6-DvJ_-Ku-.js";import{t as de}from"./chunk-QN33PNHL-C0IBWhei.js";var vt=(function(){var s=A(function(o,y,p,a){for(p||(p={}),a=o.length;a--;p[o[a]]=y);return p},"o"),i=[1,18],n=[1,19],r=[1,20],l=[1,41],u=[1,42],h=[1,26],d=[1,24],m=[1,25],B=[1,32],pt=[1,33],dt=[1,34],b=[1,45],At=[1,35],yt=[1,36],mt=[1,37],Ct=[1,38],bt=[1,27],gt=[1,28],Et=[1,29],kt=[1,30],ft=[1,31],g=[1,44],E=[1,46],k=[1,43],f=[1,47],Tt=[1,9],c=[1,8,9],Z=[1,58],tt=[1,59],et=[1,60],st=[1,61],it=[1,62],Ft=[1,63],Dt=[1,64],G=[1,8,9,41],Rt=[1,76],v=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],nt=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],rt=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],wt=[13,60,68,69,70,71,72,86,100,102,103],Bt=[1,100],z=[1,117],K=[1,113],Y=[1,109],W=[1,115],Q=[1,110],X=[1,111],j=[1,112],H=[1,114],q=[1,116],Pt=[22,48,60,61,82,86,87,88,89,90],_t=[1,8,9,39,41,44],at=[1,8,9,22],Mt=[1,145],Gt=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],St={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(o,y,p,a,C,t,V){var e=t.length-1;switch(C){case 8:this.$=t[e-1];break;case 9:case 10:case 13:case 15:this.$=t[e];break;case 11:case 14:this.$=t[e-2]+"."+t[e];break;case 12:case 16:this.$=t[e-1]+t[e];break;case 17:case 18:this.$=t[e-1]+"~"+t[e]+"~";break;case 19:a.addRelation(t[e]);break;case 20:t[e-1].title=a.cleanupLabel(t[e]),a.addRelation(t[e-1]);break;case 31:this.$=t[e].trim(),a.setAccTitle(this.$);break;case 32:case 33:this.$=t[e].trim(),a.setAccDescription(this.$);break;case 34:a.addClassesToNamespace(t[e-3],t[e-1]);break;case 35:a.addClassesToNamespace(t[e-4],t[e-1]);break;case 36:this.$=t[e],a.addNamespace(t[e]);break;case 37:this.$=[t[e]];break;case 38:this.$=[t[e-1]];break;case 39:t[e].unshift(t[e-2]),this.$=t[e];break;case 41:a.setCssClass(t[e-2],t[e]);break;case 42:a.addMembers(t[e-3],t[e-1]);break;case 44:a.setCssClass(t[e-5],t[e-3]),a.addMembers(t[e-5],t[e-1]);break;case 45:this.$=t[e],a.addClass(t[e]);break;case 46:this.$=t[e-1],a.addClass(t[e-1]),a.setClassLabel(t[e-1],t[e]);break;case 50:a.addAnnotation(t[e],t[e-2]);break;case 51:case 64:this.$=[t[e]];break;case 52:t[e].push(t[e-1]),this.$=t[e];break;case 53:break;case 54:a.addMember(t[e-1],a.cleanupLabel(t[e]));break;case 55:break;case 56:break;case 57:this.$={id1:t[e-2],id2:t[e],relation:t[e-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:t[e-3],id2:t[e],relation:t[e-1],relationTitle1:t[e-2],relationTitle2:"none"};break;case 59:this.$={id1:t[e-3],id2:t[e],relation:t[e-2],relationTitle1:"none",relationTitle2:t[e-1]};break;case 60:this.$={id1:t[e-4],id2:t[e],relation:t[e-2],relationTitle1:t[e-3],relationTitle2:t[e-1]};break;case 61:a.addNote(t[e],t[e-1]);break;case 62:a.addNote(t[e]);break;case 63:this.$=t[e-2],a.defineClass(t[e-1],t[e]);break;case 65:this.$=t[e-2].concat([t[e]]);break;case 66:a.setDirection("TB");break;case 67:a.setDirection("BT");break;case 68:a.setDirection("RL");break;case 69:a.setDirection("LR");break;case 70:this.$={type1:t[e-2],type2:t[e],lineType:t[e-1]};break;case 71:this.$={type1:"none",type2:t[e],lineType:t[e-1]};break;case 72:this.$={type1:t[e-1],type2:"none",lineType:t[e]};break;case 73:this.$={type1:"none",type2:"none",lineType:t[e]};break;case 74:this.$=a.relationType.AGGREGATION;break;case 75:this.$=a.relationType.EXTENSION;break;case 76:this.$=a.relationType.COMPOSITION;break;case 77:this.$=a.relationType.DEPENDENCY;break;case 78:this.$=a.relationType.LOLLIPOP;break;case 79:this.$=a.lineType.LINE;break;case 80:this.$=a.lineType.DOTTED_LINE;break;case 81:case 87:this.$=t[e-2],a.setClickEvent(t[e-1],t[e]);break;case 82:case 88:this.$=t[e-3],a.setClickEvent(t[e-2],t[e-1]),a.setTooltip(t[e-2],t[e]);break;case 83:this.$=t[e-2],a.setLink(t[e-1],t[e]);break;case 84:this.$=t[e-3],a.setLink(t[e-2],t[e-1],t[e]);break;case 85:this.$=t[e-3],a.setLink(t[e-2],t[e-1]),a.setTooltip(t[e-2],t[e]);break;case 86:this.$=t[e-4],a.setLink(t[e-3],t[e-2],t[e]),a.setTooltip(t[e-3],t[e-1]);break;case 89:this.$=t[e-3],a.setClickEvent(t[e-2],t[e-1],t[e]);break;case 90:this.$=t[e-4],a.setClickEvent(t[e-3],t[e-2],t[e-1]),a.setTooltip(t[e-3],t[e]);break;case 91:this.$=t[e-3],a.setLink(t[e-2],t[e]);break;case 92:this.$=t[e-4],a.setLink(t[e-3],t[e-1],t[e]);break;case 93:this.$=t[e-4],a.setLink(t[e-3],t[e-1]),a.setTooltip(t[e-3],t[e]);break;case 94:this.$=t[e-5],a.setLink(t[e-4],t[e-2],t[e]),a.setTooltip(t[e-4],t[e-1]);break;case 95:this.$=t[e-2],a.setCssStyle(t[e-1],t[e]);break;case 96:a.setCssClass(t[e-1],t[e]);break;case 97:this.$=[t[e]];break;case 98:t[e-2].push(t[e]),this.$=t[e-2];break;case 100:this.$=t[e-1]+t[e];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:r,38:22,42:l,43:23,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Tt,[2,5],{8:[1,48]}),{8:[1,49]},s(c,[2,19],{22:[1,50]}),s(c,[2,21]),s(c,[2,22]),s(c,[2,23]),s(c,[2,24]),s(c,[2,25]),s(c,[2,26]),s(c,[2,27]),s(c,[2,28]),s(c,[2,29]),s(c,[2,30]),{34:[1,51]},{36:[1,52]},s(c,[2,33]),s(c,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Z,69:tt,70:et,71:st,72:it,73:Ft,74:Dt}),{39:[1,65]},s(G,[2,40],{39:[1,67],44:[1,66]}),s(c,[2,55]),s(c,[2,56]),{16:68,60:b,86:g,100:E,102:k},{16:39,17:40,19:69,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:70,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:71,60:b,86:g,100:E,102:k,103:f},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:b,86:g,100:E,102:k,103:f},{13:Rt,55:75},{58:77,60:[1,78]},s(c,[2,66]),s(c,[2,67]),s(c,[2,68]),s(c,[2,69]),s(v,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:b,86:g,100:E,102:k,103:f}),s(v,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:b,86:g,100:E,102:k,103:f},{16:39,17:40,19:86,60:b,86:g,100:E,102:k,103:f},s(nt,[2,123]),s(nt,[2,124]),s(nt,[2,125]),s(nt,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(Tt,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:n,37:r,42:l,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:n,37:r,38:22,42:l,43:23,46:u,49:h,51:d,52:m,54:B,56:pt,57:dt,60:b,62:At,63:yt,64:mt,65:Ct,75:bt,76:gt,78:Et,82:kt,83:ft,86:g,100:E,102:k,103:f},s(c,[2,20]),s(c,[2,31]),s(c,[2,32]),{13:[1,90],16:39,17:40,19:89,60:b,86:g,100:E,102:k,103:f},{53:91,66:56,67:57,68:Z,69:tt,70:et,71:st,72:it,73:Ft,74:Dt},s(c,[2,54]),{67:92,73:Ft,74:Dt},s(rt,[2,73],{66:93,68:Z,69:tt,70:et,71:st,72:it}),s(U,[2,74]),s(U,[2,75]),s(U,[2,76]),s(U,[2,77]),s(U,[2,78]),s(wt,[2,79]),s(wt,[2,80]),{8:[1,95],24:96,40:94,43:23,46:u},{16:97,60:b,86:g,100:E,102:k},{41:[1,99],45:98,51:Bt},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:z,48:K,59:106,60:Y,82:W,84:107,85:108,86:Q,87:X,88:j,89:H,90:q},{60:[1,118]},{13:Rt,55:119},s(c,[2,62]),s(c,[2,128]),{22:z,48:K,59:120,60:Y,61:[1,121],82:W,84:107,85:108,86:Q,87:X,88:j,89:H,90:q},s(Pt,[2,64]),{16:39,17:40,19:122,60:b,86:g,100:E,102:k,103:f},s(v,[2,16]),s(v,[2,17]),s(v,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:b,86:g,100:E,102:k,103:f},{39:[2,10]},s(_t,[2,45],{11:125,12:[1,126]}),s(Tt,[2,7]),{9:[1,127]},s(at,[2,57]),{16:39,17:40,19:128,60:b,86:g,100:E,102:k,103:f},{13:[1,130],16:39,17:40,19:129,60:b,86:g,100:E,102:k,103:f},s(rt,[2,72],{66:131,68:Z,69:tt,70:et,71:st,72:it}),s(rt,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:u},{8:[1,134],41:[2,37]},s(G,[2,41],{39:[1,135]}),{41:[1,136]},s(G,[2,43]),{41:[2,51],45:137,51:Bt},{16:39,17:40,19:138,60:b,86:g,100:E,102:k,103:f},s(c,[2,81],{13:[1,139]}),s(c,[2,83],{13:[1,141],77:[1,140]}),s(c,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(c,[2,95],{61:Mt}),s(Gt,[2,97],{85:146,22:z,48:K,60:Y,82:W,86:Q,87:X,88:j,89:H,90:q}),s(N,[2,99]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(N,[2,105]),s(N,[2,106]),s(N,[2,107]),s(N,[2,108]),s(N,[2,109]),s(c,[2,96]),s(c,[2,61]),s(c,[2,63],{61:Mt}),{60:[1,147]},s(v,[2,14]),{15:148,16:84,17:85,60:b,86:g,100:E,102:k,103:f},{39:[2,12]},s(_t,[2,46]),{13:[1,149]},{1:[2,4]},s(at,[2,59]),s(at,[2,58]),{16:39,17:40,19:150,60:b,86:g,100:E,102:k,103:f},s(rt,[2,70]),s(c,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:u},{45:153,51:Bt},s(G,[2,42]),{41:[2,52]},s(c,[2,50]),s(c,[2,82]),s(c,[2,84]),s(c,[2,85],{77:[1,154]}),s(c,[2,88]),s(c,[2,89],{13:[1,155]}),s(c,[2,91],{13:[1,157],77:[1,156]}),{22:z,48:K,60:Y,82:W,84:158,85:108,86:Q,87:X,88:j,89:H,90:q},s(N,[2,100]),s(Pt,[2,65]),{39:[2,11]},{14:[1,159]},s(at,[2,60]),s(c,[2,35]),{41:[2,39]},{41:[1,160]},s(c,[2,86]),s(c,[2,90]),s(c,[2,92]),s(c,[2,93],{77:[1,161]}),s(Gt,[2,98],{85:146,22:z,48:K,60:Y,82:W,86:Q,87:X,88:j,89:H,90:q}),s(_t,[2,8]),s(G,[2,44]),s(c,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:A(function(o,y){if(y.recoverable)this.trace(o);else{var p=Error(o);throw p.hash=y,p}},"parseError"),parse:A(function(o){var y=this,p=[0],a=[],C=[null],t=[],V=this.table,e="",lt=0,Ut=0,zt=0,qt=2,Kt=1,Vt=t.slice.call(arguments,1),T=Object.create(this.lexer),x={yy:{}};for(var Nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Nt)&&(x.yy[Nt]=this.yy[Nt]);T.setInput(o,x.yy),x.yy.lexer=T,x.yy.parser=this,T.yylloc===void 0&&(T.yylloc={});var $t=T.yylloc;t.push($t);var Jt=T.options&&T.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(S){p.length-=2*S,C.length-=S,t.length-=S}A(Zt,"popStack");function Yt(){var S=a.pop()||T.lex()||Kt;return typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=y.symbols_[S]||S),S}A(Yt,"lex");for(var D,Lt,I,_,xt,R={},ot,$,Wt,ct;;){if(I=p[p.length-1],this.defaultActions[I]?_=this.defaultActions[I]:(D??(D=Yt()),_=V[I]&&V[I][D]),_===void 0||!_.length||!_[0]){var Qt="";for(ot in ct=[],V[I])this.terminals_[ot]&&ot>qt&&ct.push("'"+this.terminals_[ot]+"'");Qt=T.showPosition?"Parse error on line "+(lt+1)+`: +`+T.showPosition()+` +Expecting `+ct.join(", ")+", got '"+(this.terminals_[D]||D)+"'":"Parse error on line "+(lt+1)+": Unexpected "+(D==Kt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(Qt,{text:T.match,token:this.terminals_[D]||D,line:T.yylineno,loc:$t,expected:ct})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+I+", token: "+D);switch(_[0]){case 1:p.push(D),C.push(T.yytext),t.push(T.yylloc),p.push(_[1]),D=null,Lt?(D=Lt,Lt=null):(Ut=T.yyleng,e=T.yytext,lt=T.yylineno,$t=T.yylloc,zt>0&&zt--);break;case 2:if($=this.productions_[_[1]][1],R.$=C[C.length-$],R._$={first_line:t[t.length-($||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-($||1)].first_column,last_column:t[t.length-1].last_column},Jt&&(R._$.range=[t[t.length-($||1)].range[0],t[t.length-1].range[1]]),xt=this.performAction.apply(R,[e,Ut,lt,x.yy,_[1],C,t].concat(Vt)),xt!==void 0)return xt;$&&(p=p.slice(0,-1*$*2),C=C.slice(0,-1*$),t=t.slice(0,-1*$)),p.push(this.productions_[_[1]][0]),C.push(R.$),t.push(R._$),Wt=V[p[p.length-2]][p[p.length-1]],p.push(Wt);break;case 3:return!0}}return!0},"parse")};St.lexer=(function(){return{EOF:1,parseError:A(function(o,y){if(this.yy.parser)this.yy.parser.parseError(o,y);else throw Error(o)},"parseError"),setInput:A(function(o,y){return this.yy=y||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:A(function(){var o=this._input[0];return this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o,o.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:A(function(o){var y=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===a.length?this.yylloc.first_column:0)+a[a.length-p.length].length-p[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-y]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(o){this.unput(this.match.slice(o))},"less"),pastInput:A(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var o=this.pastInput(),y=Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+y+"^"},"showPosition"),test_match:A(function(o,y){var p,a,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),a=o[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],p=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var t in C)this[t]=C[t];return!1}return!1},"test_match"),next:A(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,y,p,a;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),t=0;ty[0].length)){if(y=p,a=t,this.options.backtrack_lexer){if(o=this.test_match(p,C[t]),o!==!1)return o;if(this._backtrack){y=!1;continue}else return!1}else if(!this.options.flex)break}return y?(o=this.test_match(y,C[a]),o===!1?!1:o):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:A(function(){return this.next()||this.lex()},"lex"),begin:A(function(o){this.conditionStack.push(o)},"begin"),popState:A(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:A(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:A(function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:A(function(o){this.begin(o)},"pushState"),stateStackSize:A(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:A(function(o,y,p,a){switch(p){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin("namespace-body"),39;case 33:return this.popState(),41;case 34:return"EOF_IN_STRUCT";case 35:return 8;case 36:break;case 37:return"EDGE_STATE";case 38:return this.begin("class"),46;case 39:return this.popState(),8;case 40:break;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 43:return this.popState(),41;case 44:return"EOF_IN_STRUCT";case 45:return"EDGE_STATE";case 46:return"OPEN_IN_STRUCT";case 47:break;case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 58:this.popState();break;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:return 77;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 69;case 69:return 69;case 70:return 71;case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:return 89;case 85:return 89;case 86:return 90;case 87:return"EQUALS";case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:return 48;case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}}})();function ut(){this.yy={}}return A(ut,"Parser"),ut.prototype=St,St.Parser=ut,new ut})();vt.parser=vt;var Ae=vt,Xt=["#","+","~","-",""],jt=(P=class{constructor(i,n){this.memberType=n,this.visibility="",this.classifier="",this.text="";let r=ie(i,F());this.parseMember(r)}getDisplayDetails(){let i=this.visibility+w(this.id);this.memberType==="method"&&(i+=`(${w(this.parameters.trim())})`,this.returnType&&(i+=" : "+w(this.returnType))),i=i.trim();let n=this.parseClassifier();return{displayText:i,cssStyle:n}}parseMember(i){let n="";if(this.memberType==="method"){let r=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);if(r){let l=r[1]?r[1].trim():"";if(Xt.includes(l)&&(this.visibility=l),this.id=r[2],this.parameters=r[3]?r[3].trim():"",n=r[4]?r[4].trim():"",this.returnType=r[5]?r[5].trim():"",n===""){let u=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(u)&&(n=u,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let r=i.length,l=i.substring(0,1),u=i.substring(r-1);Xt.includes(l)&&(this.visibility=l),/[$*]/.exec(u)&&(n=u),this.id=i.substring(this.visibility===""?0:1,n===""?r:r-1)}this.classifier=n,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim(),this.text=`${this.visibility?"\\"+this.visibility:""}${w(this.id)}${this.memberType==="method"?`(${w(this.parameters)})${this.returnType?" : "+w(this.returnType):""}`:""}`.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},A(P,"ClassMember"),P),ht="classId-",Ht=0,O=A(s=>L.sanitizeText(s,F()),"sanitizeText"),ye=(M=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=A(i=>{let n=J(".mermaidTooltip");(n._groups||n)[0][0]===null&&(n=J("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),J(i).select("svg").selectAll("g.node").on("mouseover",r=>{let l=J(r.currentTarget);if(l.attr("title")===null)return;let u=this.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(l.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.top-14+document.body.scrollTop+"px"),n.html(n.html().replace(/<br\/>/g,"
")),l.classed("hover",!0)}).on("mouseout",r=>{n.transition().duration(500).style("opacity",0),J(r.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=ee,this.getAccTitle=ue,this.setAccDescription=le,this.getAccDescription=re,this.setDiagramTitle=ne,this.getDiagramTitle=se,this.getConfig=A(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(i){let n=L.sanitizeText(i,F()),r="",l=n;if(n.indexOf("~")>0){let u=n.split("~");l=O(u[0]),r=O(u[1])}return{className:l,type:r}}setClassLabel(i,n){let r=L.sanitizeText(i,F());n&&(n=O(n));let{className:l}=this.splitClassNameAndType(r);this.classes.get(l).label=n,this.classes.get(l).text=`${n}${this.classes.get(l).type?`<${this.classes.get(l).type}>`:""}`}addClass(i){let n=L.sanitizeText(i,F()),{className:r,type:l}=this.splitClassNameAndType(n);if(this.classes.has(r))return;let u=L.sanitizeText(r,F());this.classes.set(u,{id:u,type:l,label:u,text:`${u}${l?`<${l}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:ht+u+"-"+Ht}),Ht++}addInterface(i,n){let r={id:`interface${this.interfaces.length}`,label:i,classId:n};this.interfaces.push(r)}lookUpDomId(i){let n=L.sanitizeText(i,F());if(this.classes.has(n))return this.classes.get(n).domId;throw Error("Class not found: "+n)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",ae()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(i){Ot.debug("Adding relation: "+JSON.stringify(i));let n=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!n.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!n.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=L.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=L.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,n){let r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(n)}addMember(i,n){this.addClass(i);let r=this.splitClassNameAndType(i).className,l=this.classes.get(r);if(typeof n=="string"){let u=n.trim();u.startsWith("<<")&&u.endsWith(">>")?l.annotations.push(O(u.substring(2,u.length-2))):u.indexOf(")")>0?l.methods.push(new jt(u,"method")):u&&l.members.push(new jt(u,"attribute"))}}addMembers(i,n){Array.isArray(n)&&(n.reverse(),n.forEach(r=>this.addMember(i,r)))}addNote(i,n){let r={id:`note${this.notes.length}`,class:n,text:i};this.notes.push(r)}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),O(i.trim())}setCssClass(i,n){i.split(",").forEach(r=>{let l=r;/\d/.exec(r[0])&&(l=ht+l);let u=this.classes.get(l);u&&(u.cssClasses+=" "+n)})}defineClass(i,n){for(let r of i){let l=this.styleClasses.get(r);l===void 0&&(l={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,l)),n&&n.forEach(u=>{if(/color/.exec(u)){let h=u.replace("fill","bgFill");l.textStyles.push(h)}l.styles.push(u)}),this.classes.forEach(u=>{u.cssClasses.includes(r)&&u.styles.push(...n.flatMap(h=>h.split(",")))})}}setTooltip(i,n){i.split(",").forEach(r=>{n!==void 0&&(this.classes.get(r).tooltip=O(n))})}getTooltip(i,n){return n&&this.namespaces.has(n)?this.namespaces.get(n).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,n,r){let l=F();i.split(",").forEach(u=>{let h=u;/\d/.exec(u[0])&&(h=ht+h);let d=this.classes.get(h);d&&(d.link=It.formatUrl(n,l),l.securityLevel==="sandbox"?d.linkTarget="_top":typeof r=="string"?d.linkTarget=O(r):d.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,n,r){i.split(",").forEach(l=>{this.setClickFunc(l,n,r),this.classes.get(l).haveCallback=!0}),this.setCssClass(i,"clickable")}setClickFunc(i,n,r){let l=L.sanitizeText(i,F());if(F().securityLevel!=="loose"||n===void 0)return;let u=l;if(this.classes.has(u)){let h=this.lookUpDomId(u),d=[];if(typeof r=="string"){d=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let m=0;m{let m=document.querySelector(`[id="${h}"]`);m!==null&&m.addEventListener("click",()=>{It.runFunc(n,...d)},!1)})}}bindFunctions(i){this.functions.forEach(n=>{n(i)})}getDirection(){return this.direction}setDirection(i){this.direction=i}addNamespace(i){this.namespaces.has(i)||(this.namespaces.set(i,{id:i,classes:new Map,children:{},domId:ht+i+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,n){if(this.namespaces.has(i))for(let r of n){let{className:l}=this.splitClassNameAndType(r);this.classes.get(l).parent=i,this.namespaces.get(i).classes.set(l,this.classes.get(l))}}setCssStyle(i,n){let r=this.classes.get(i);if(!(!n||!r))for(let l of n)l.includes(",")?r.styles.push(...l.split(",")):r.styles.push(l)}getArrowMarker(i){let n;switch(i){case 0:n="aggregation";break;case 1:n="extension";break;case 2:n="composition";break;case 3:n="dependency";break;case 4:n="lollipop";break;default:n="none"}return n}getData(){var u;let i=[],n=[],r=F();for(let h of this.namespaces.keys()){let d=this.namespaces.get(h);if(d){let m={id:d.id,label:d.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:r.look};i.push(m)}}for(let h of this.classes.keys()){let d=this.classes.get(h);if(d){let m=d;m.parentId=d.parent,m.look=r.look,i.push(m)}}let l=0;for(let h of this.notes){l++;let d={id:h.id,label:h.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look};i.push(d);let m=((u=this.classes.get(h.class))==null?void 0:u.id)??"";if(m){let B={id:`edgeNote${l}`,start:h.id,end:m,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};n.push(B)}}for(let h of this.interfaces){let d={id:h.id,label:h.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(d)}l=0;for(let h of this.relations){l++;let d={id:te(h.id1,h.id2,{prefix:"id",counter:l}),start:h.id1,end:h.id2,type:"normal",label:h.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(h.relation.type1),arrowTypeEnd:this.getArrowMarker(h.relation.type2),startLabelRight:h.relationTitle1==="none"?"":h.relationTitle1,endLabelLeft:h.relationTitle2==="none"?"":h.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:h.style||"",pattern:h.relation.lineType==1?"dashed":"solid",look:r.look};n.push(d)}return{nodes:i,edges:n,other:{},config:r,direction:this.getDirection()}}},A(M,"ClassDB"),M),me=A(s=>`g.classGroup text { + fill: ${s.nodeBorder||s.classText}; + stroke: none; + font-family: ${s.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + +.nodeLabel, .edgeLabel { + color: ${s.classText}; +} +.edgeLabel .label rect { + fill: ${s.mainBkg}; +} +.label text { + fill: ${s.classText}; +} + +.labelBkg { + background: ${s.mainBkg}; +} +.edgeLabel .label span { + background: ${s.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${s.mainBkg}; + stroke: ${s.nodeBorder}; + stroke-width: 1px; + } + + +.divider { + stroke: ${s.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${s.mainBkg}; + stroke: ${s.nodeBorder}; +} + +g.classGroup line { + stroke: ${s.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${s.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${s.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${s.lineColor}; + stroke-width: 1; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +#compositionStart, .composition { + fill: ${s.lineColor} !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#compositionEnd, .composition { + fill: ${s.lineColor} !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${s.lineColor} !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#dependencyStart, .dependency { + fill: ${s.lineColor} !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#extensionStart, .extension { + fill: transparent !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#extensionEnd, .extension { + fill: transparent !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#aggregationStart, .aggregation { + fill: transparent !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#aggregationEnd, .aggregation { + fill: transparent !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#lollipopStart, .lollipop { + fill: ${s.mainBkg} !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +#lollipopEnd, .lollipop { + fill: ${s.mainBkg} !important; + stroke: ${s.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${s.textColor}; +} + ${he()} +`,"getStyles"),Ce={getClasses:A(function(s,i){return i.db.getClasses()},"getClasses"),draw:A(async function(s,i,n,r){Ot.info("REF0:"),Ot.info("Drawing class diagram (v3)",i);let{securityLevel:l,state:u,layout:h}=F(),d=r.db.getData(),m=pe(i,l);d.type=r.type,d.layoutAlgorithm=ce(h),d.nodeSpacing=(u==null?void 0:u.nodeSpacing)||50,d.rankSpacing=(u==null?void 0:u.rankSpacing)||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=i,await oe(d,m),It.insertTitle(m,"classDiagramTitleText",(u==null?void 0:u.titleTopMargin)??25,r.db.getDiagramTitle()),de(m,8,"classDiagram",(u==null?void 0:u.useMaxWidth)??!0)},"draw"),getDir:A((s,i="TB")=>{if(!s.doc)return i;let n=i;for(let r of s.doc)r.stmt==="dir"&&(n=r.value);return n},"getDir")};export{me as i,Ae as n,Ce as r,ye as t}; diff --git a/docs/assets/chunk-CVBHYZKI-B6tT645I.js b/docs/assets/chunk-CVBHYZKI-B6tT645I.js new file mode 100644 index 0000000..9bf92d7 --- /dev/null +++ b/docs/assets/chunk-CVBHYZKI-B6tT645I.js @@ -0,0 +1 @@ +import{n as p}from"./src-faGJHwXX.js";var l=p(({flowchart:t})=>{var i,o;let r=((i=t==null?void 0:t.subGraphTitleMargin)==null?void 0:i.top)??0,a=((o=t==null?void 0:t.subGraphTitleMargin)==null?void 0:o.bottom)??0;return{subGraphTitleTopMargin:r,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:r+a}},"getSubGraphTitleMargins");export{l as t}; diff --git a/docs/assets/chunk-DI55MBZ5-DpQLXMld.js b/docs/assets/chunk-DI55MBZ5-DpQLXMld.js new file mode 100644 index 0000000..0e2ee26 --- /dev/null +++ b/docs/assets/chunk-DI55MBZ5-DpQLXMld.js @@ -0,0 +1,220 @@ +var K;import{g as te,s as ee}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as u,r as T}from"./src-faGJHwXX.js";import{B as se,C as ie,U as re,_ as ne,a as ae,b as w,s as U,v as oe,z as le}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{r as ce}from"./chunk-N4CR4FBY-DtYoI569.js";import{t as he}from"./chunk-55IACEB6-DvJ_-Ku-.js";import{t as de}from"./chunk-QN33PNHL-C0IBWhei.js";var kt=(function(){var e=u(function(a,h,g,S){for(g||(g={}),S=a.length;S--;g[a[S]]=h);return g},"o"),t=[1,2],s=[1,3],n=[1,4],i=[2,4],o=[1,9],c=[1,11],y=[1,16],p=[1,17],_=[1,18],m=[1,19],D=[1,33],A=[1,20],x=[1,21],R=[1,22],$=[1,23],O=[1,24],d=[1,26],E=[1,27],v=[1,28],G=[1,29],j=[1,30],Y=[1,31],F=[1,32],rt=[1,35],nt=[1,36],at=[1,37],ot=[1,38],H=[1,34],f=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],$t=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:u(function(a,h,g,S,b,r,Q){var l=r.length-1;switch(b){case 3:return S.setRootDoc(r[l]),r[l];case 4:this.$=[];break;case 5:r[l]!="nl"&&(r[l-1].push(r[l]),this.$=r[l-1]);break;case 6:case 7:this.$=r[l];break;case 8:this.$="nl";break;case 12:this.$=r[l];break;case 13:let ht=r[l-1];ht.description=S.trimColon(r[l]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:r[l-2],state2:r[l]};break;case 15:let dt=S.trimColon(r[l]);this.$={stmt:"relation",state1:r[l-3],state2:r[l-1],description:dt};break;case 19:this.$={stmt:"state",id:r[l-3],type:"default",description:"",doc:r[l-1]};break;case 20:var z=r[l],X=r[l-2].trim();if(r[l].match(":")){var Z=r[l].split(":");z=Z[0],X=[X,Z[1]]}this.$={stmt:"state",id:z,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[l-3],type:"default",description:r[l-5],doc:r[l-1]};break;case 22:this.$={stmt:"state",id:r[l],type:"fork"};break;case 23:this.$={stmt:"state",id:r[l],type:"join"};break;case 24:this.$={stmt:"state",id:r[l],type:"choice"};break;case 25:this.$={stmt:"state",id:S.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[l-1].trim(),note:{position:r[l-2].trim(),text:r[l].trim()}};break;case 29:this.$=r[l].trim(),S.setAccTitle(this.$);break;case 30:case 31:this.$=r[l].trim(),S.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[l-3],url:r[l-2],tooltip:r[l-1]};break;case 33:this.$={stmt:"click",id:r[l-3],url:r[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[l-1].trim(),classes:r[l].trim()};break;case 36:this.$={stmt:"style",id:r[l-1].trim(),styleClass:r[l].trim()};break;case 37:this.$={stmt:"applyClass",id:r[l-1].trim(),styleClass:r[l].trim()};break;case 38:S.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:S.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:S.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:S.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[l-2].trim(),classes:[r[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[l-2].trim(),classes:[r[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:n},{1:[3]},{3:5,4:t,5:s,6:n},{3:6,4:t,5:s,6:n},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:c,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:p,19:_,22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:p,19:_,22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,7]),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(f,[2,11]),e(f,[2,12],{14:[1,40],15:[1,41]}),e(f,[2,16]),{18:[1,42]},e(f,[2,18],{20:[1,43]}),{23:[1,44]},e(f,[2,22]),e(f,[2,23]),e(f,[2,24]),e(f,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(f,[2,28]),{34:[1,49]},{36:[1,50]},e(f,[2,31]),{13:51,24:D,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(lt,[2,44],{58:[1,56]}),e(lt,[2,45],{58:[1,57]}),e(f,[2,38]),e(f,[2,39]),e(f,[2,40]),e(f,[2,41]),e(f,[2,6]),e(f,[2,13]),{13:58,24:D,57:H},e(f,[2,17]),e($t,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(f,[2,29]),e(f,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(f,[2,14],{14:[1,71]}),{4:o,5:c,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:p,19:_,21:[1,72],22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),e(f,[2,37]),e(lt,[2,46]),e(lt,[2,47]),e(f,[2,15]),e(f,[2,19]),e($t,i,{7:78}),e(f,[2,26]),e(f,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:c,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:p,19:_,21:[1,81],22:m,24:D,25:A,26:x,27:R,28:$,29:O,32:25,33:d,35:E,37:v,38:G,41:j,45:Y,48:F,51:rt,52:nt,53:at,54:ot,57:H},e(f,[2,32]),e(f,[2,33]),e(f,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(function(a,h){if(h.recoverable)this.trace(a);else{var g=Error(a);throw g.hash=h,g}},"parseError"),parse:u(function(a){var h=this,g=[0],S=[],b=[null],r=[],Q=this.table,l="",z=0,X=0,Z=0,ht=2,dt=1,qt=r.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(W.yy[St]=this.yy[St]);k.setInput(a,W.yy),W.yy.lexer=k,W.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var _t=k.yylloc;r.push(_t);var Qt=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(N){g.length-=2*N,b.length-=N,r.length-=N}u(Zt,"popStack");function Lt(){var N=S.pop()||k.lex()||dt;return typeof N!="number"&&(N instanceof Array&&(S=N,N=S.pop()),N=h.symbols_[N]||N),N}u(Lt,"lex");for(var L,bt,M,I,Tt,V={},ut,B,At,pt;;){if(M=g[g.length-1],this.defaultActions[M]?I=this.defaultActions[M]:(L??(L=Lt()),I=Q[M]&&Q[M][L]),I===void 0||!I.length||!I[0]){var vt="";for(ut in pt=[],Q[M])this.terminals_[ut]&&ut>ht&&pt.push("'"+this.terminals_[ut]+"'");vt=k.showPosition?"Parse error on line "+(z+1)+`: +`+k.showPosition()+` +Expecting `+pt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":"Parse error on line "+(z+1)+": Unexpected "+(L==dt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(vt,{text:k.match,token:this.terminals_[L]||L,line:k.yylineno,loc:_t,expected:pt})}if(I[0]instanceof Array&&I.length>1)throw Error("Parse Error: multiple actions possible at state: "+M+", token: "+L);switch(I[0]){case 1:g.push(L),b.push(k.yytext),r.push(k.yylloc),g.push(I[1]),L=null,bt?(L=bt,bt=null):(X=k.yyleng,l=k.yytext,z=k.yylineno,_t=k.yylloc,Z>0&&Z--);break;case 2:if(B=this.productions_[I[1]][1],V.$=b[b.length-B],V._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Qt&&(V._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),Tt=this.performAction.apply(V,[l,X,z,W.yy,I[1],b,r].concat(qt)),Tt!==void 0)return Tt;B&&(g=g.slice(0,-1*B*2),b=b.slice(0,-1*B),r=r.slice(0,-1*B)),g.push(this.productions_[I[1]][0]),b.push(V.$),r.push(V._$),At=Q[g[g.length-2]][g[g.length-1]],g.push(At);break;case 3:return!0}}return!0},"parse")};mt.lexer=(function(){return{EOF:1,parseError:u(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw Error(a)},"parseError"),setInput:u(function(a,h){return this.yy=h||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:u(function(a){var h=a.length,g=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===S.length?this.yylloc.first_column:0)+S[S.length-g.length].length-g[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(a){this.unput(this.match.slice(a))},"less"),pastInput:u(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var a=this.pastInput(),h=Array(a.length+1).join("-");return a+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:u(function(a,h){var g,S,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),S=a[0].match(/(?:\r\n?|\n).*/g),S&&(this.yylineno+=S.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:S?S[S.length-1].length-S[S.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],g=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var r in b)this[r]=b[r];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,h,g,S;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),r=0;rh[0].length)){if(h=g,S=r,this.options.backtrack_lexer){if(a=this.test_match(g,b[r]),a!==!1)return a;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(a=this.test_match(h,b[S]),a===!1?!1:a):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){return this.next()||this.lex()},"lex"),begin:u(function(a){this.conditionStack.push(a)},"begin"),popState:u(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:u(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:u(function(a){this.begin(a)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(a,h,g,S){switch(g){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:break;case 9:break;case 10:return 5;case 11:break;case 12:break;case 13:break;case 14:break;case 15:return this.pushState("SCALE"),17;case 16:return 18;case 17:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 35:return this.pushState("SCALE"),17;case 36:return 18;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:return this.popState(),h.yytext=h.yytext.slice(0,-8).trim(),25;case 40:return this.popState(),h.yytext=h.yytext.slice(0,-8).trim(),26;case 41:return this.popState(),h.yytext=h.yytext.slice(0,-10).trim(),27;case 42:return this.popState(),h.yytext=h.yytext.slice(0,-8).trim(),25;case 43:return this.popState(),h.yytext=h.yytext.slice(0,-8).trim(),26;case 44:return this.popState(),h.yytext=h.yytext.slice(0,-10).trim(),27;case 45:return 51;case 46:return 52;case 47:return 53;case 48:return 54;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:return this.popState(),"ID";case 52:this.popState();break;case 53:return"STATE_DESCR";case 54:return 19;case 55:this.popState();break;case 56:return this.popState(),this.pushState("struct"),20;case 57:break;case 58:return this.popState(),21;case 59:break;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:break;case 66:return"NOTE_TEXT";case 67:return this.popState(),"ID";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),h.yytext=h.yytext.substr(2).trim(),31;case 70:return this.popState(),h.yytext=h.yytext.slice(0,-8).trim(),31;case 71:return 6;case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return h.yytext=h.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 80:return 5;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}})();function ct(){this.yy={}}return u(ct,"Parser"),ct.prototype=mt,mt.Parser=ct,new ct})();kt.parser=kt;var ue=kt,pe="TB",It="TB",Nt="dir",J="state",q="root",Et="relation",ye="classDef",ge="style",fe="applyClass",tt="default",Ot="divider",Rt="fill:none",wt="fill: #333",Bt="c",Yt="text",Ft="normal",Dt="rect",Ct="rectWithTitle",me="stateStart",Se="stateEnd",Pt="divider",Gt="roundedWithTitle",_e="note",be="noteGroup",et="statediagram",Te=`${et}-state`,jt="transition",ke="note",Ee=`${jt} note-edge`,De=`${et}-${ke}`,Ce=`${et}-cluster`,xe=`${et}-cluster-alt`,zt="parent",Wt="note",$e="state",xt="----",Le=`${xt}${Wt}`,Mt=`${xt}${zt}`,Ut=u((e,t=It)=>{if(!e.doc)return t;let s=t;for(let n of e.doc)n.stmt==="dir"&&(s=n.value);return s},"getDir"),Ae={getClasses:u(function(e,t){return t.db.getClasses()},"getClasses"),draw:u(async function(e,t,s,n){T.info("REF0:"),T.info("Drawing state diagram (v2)",t);let{securityLevel:i,state:o,layout:c}=w();n.db.extract(n.db.getRootDocV2());let y=n.db.getData(),p=he(t,i);y.type=n.type,y.layoutAlgorithm=c,y.nodeSpacing=(o==null?void 0:o.nodeSpacing)||50,y.rankSpacing=(o==null?void 0:o.rankSpacing)||50,y.markers=["barb"],y.diagramId=t,await ce(y,p);try{(typeof n.db.getLinks=="function"?n.db.getLinks():new Map).forEach((_,m)=>{var d;let D=typeof m=="string"?m:typeof(m==null?void 0:m.id)=="string"?m.id:"";if(!D){T.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(m));return}let A=(d=p.node())==null?void 0:d.querySelectorAll("g"),x;if(A==null||A.forEach(E=>{var v;((v=E.textContent)==null?void 0:v.trim())===D&&(x=E)}),!x){T.warn("\u26A0\uFE0F Could not find node matching text:",D);return}let R=x.parentNode;if(!R){T.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",D);return}let $=document.createElementNS("http://www.w3.org/2000/svg","a"),O=_.url.replace(/^"+|"+$/g,"");if($.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",O),$.setAttribute("target","_blank"),_.tooltip){let E=_.tooltip.replace(/^"+|"+$/g,"");$.setAttribute("title",E)}R.replaceChild($,x),$.appendChild(x),T.info("\u{1F517} Wrapped node in tag for:",D,_.url)})}catch(_){T.error("\u274C Error injecting clickable links:",_)}te.insertTitle(p,"statediagramTitleText",(o==null?void 0:o.titleTopMargin)??25,n.db.getDiagramTitle()),de(p,8,et,(o==null?void 0:o.useMaxWidth)??!0)},"draw"),getDir:Ut},yt=new Map,P=0;function gt(e="",t=0,s="",n=xt){return`${$e}-${e}${s!==null&&s.length>0?`${n}${s}`:""}-${t}`}u(gt,"stateDomId");var ve=u((e,t,s,n,i,o,c,y)=>{T.trace("items",t),t.forEach(p=>{switch(p.stmt){case J:it(e,p,s,n,i,o,c,y);break;case tt:it(e,p,s,n,i,o,c,y);break;case Et:{it(e,p.state1,s,n,i,o,c,y),it(e,p.state2,s,n,i,o,c,y);let _={id:"edge"+P,start:p.state1.id,end:p.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Rt,labelStyle:"",label:U.sanitizeText(p.description??"",w()),arrowheadStyle:wt,labelpos:Bt,labelType:Yt,thickness:Ft,classes:jt,look:c};i.push(_),P++}break}})},"setupDoc"),Kt=u((e,t=It)=>{let s=t;if(e.doc)for(let n of e.doc)n.stmt==="dir"&&(s=n.value);return s},"getDir");function st(e,t,s){if(!t.id||t.id===""||t.id==="")return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(" ").forEach(i=>{let o=s.get(i);o&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...o.styles])}));let n=e.find(i=>i.id===t.id);n?Object.assign(n,t):e.push(t)}u(st,"insertOrUpdateNode");function Ht(e){var t;return((t=e==null?void 0:e.classes)==null?void 0:t.join(" "))??""}u(Ht,"getClassesFromDbInfo");function Xt(e){return(e==null?void 0:e.styles)??[]}u(Xt,"getStylesFromDbInfo");var it=u((e,t,s,n,i,o,c,y)=>{var x,R,$;let p=t.id,_=s.get(p),m=Ht(_),D=Xt(_),A=w();if(T.info("dataFetcher parsedItem",t,_,D),p!=="root"){let O=Dt;t.start===!0?O=me:t.start===!1&&(O=Se),t.type!==tt&&(O=t.type),yt.get(p)||yt.set(p,{id:p,shape:O,description:U.sanitizeText(p,A),cssClasses:`${m} ${Te}`,cssStyles:D});let d=yt.get(p);t.description&&(Array.isArray(d.description)?(d.shape=Ct,d.description.push(t.description)):(x=d.description)!=null&&x.length&&d.description.length>0?(d.shape=Ct,d.description===p?d.description=[t.description]:d.description=[d.description,t.description]):(d.shape=Dt,d.description=t.description),d.description=U.sanitizeTextOrArray(d.description,A)),((R=d.description)==null?void 0:R.length)===1&&d.shape===Ct&&(d.type==="group"?d.shape=Gt:d.shape=Dt),!d.type&&t.doc&&(T.info("Setting cluster for XCX",p,Kt(t)),d.type="group",d.isGroup=!0,d.dir=Kt(t),d.shape=t.type===Ot?Pt:Gt,d.cssClasses=`${d.cssClasses} ${Ce} ${o?xe:""}`);let E={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:p,dir:d.dir,domId:gt(p,P),type:d.type,isGroup:d.type==="group",padding:8,rx:10,ry:10,look:c};if(E.shape===Pt&&(E.label=""),e&&e.id!=="root"&&(T.trace("Setting node ",p," to be child of its parent ",e.id),E.parentId=e.id),E.centerLabel=!0,t.note){let v={labelStyle:"",shape:_e,label:t.note.text,cssClasses:De,cssStyles:[],cssCompiledStyles:[],id:p+Le+"-"+P,domId:gt(p,P,Wt),type:d.type,isGroup:d.type==="group",padding:($=A.flowchart)==null?void 0:$.padding,look:c,position:t.note.position},G=p+Mt,j={labelStyle:"",shape:be,label:t.note.text,cssClasses:d.cssClasses,cssStyles:[],id:p+Mt,domId:gt(p,P,zt),type:"group",isGroup:!0,padding:16,look:c,position:t.note.position};P++,j.id=G,v.parentId=G,st(n,j,y),st(n,v,y),st(n,E,y);let Y=p,F=v.id;t.note.position==="left of"&&(Y=v.id,F=p),i.push({id:Y+"-"+F,start:Y,end:F,arrowhead:"none",arrowTypeEnd:"",style:Rt,labelStyle:"",classes:Ee,arrowheadStyle:wt,labelpos:Bt,labelType:Yt,thickness:Ft,look:c})}else st(n,E,y)}t.doc&&(T.trace("Adding nodes children "),ve(t,t.doc,s,n,i,!o,c,y))},"dataFetcher"),Ie=u(()=>{yt.clear(),P=0},"reset"),C={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Vt=u(()=>new Map,"newClassesList"),Jt=u(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),ft=u(e=>JSON.parse(JSON.stringify(e)),"clone"),Ne=(K=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Vt(),this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=oe,this.setAccTitle=se,this.getAccDescription=ne,this.setAccDescription=le,this.setDiagramTitle=re,this.getDiagramTitle=ie,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(let i of Array.isArray(t)?t:t.doc)switch(i.stmt){case J:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case Et:this.addRelation(i.state1,i.state2,i.description);break;case ye:this.addStyleClass(i.id.trim(),i.classes);break;case ge:this.handleStyleDef(i);break;case fe:this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip);break}let s=this.getStates(),n=w();Ie(),it(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,n.look,this.classes);for(let i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){let s=t.id.trim().split(","),n=t.styleClass.split(",");for(let i of s){let o=this.getState(i);if(!o){let c=i.trim();this.addState(c),o=this.getState(c)}o&&(o.styles=n.map(c=>{var y;return(y=c.replace(/;/g,""))==null?void 0:y.trim()}))}}setRootDoc(t){T.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,s,n){if(s.stmt===Et){this.docTranslator(t,s.state1,!0),this.docTranslator(t,s.state2,!1);return}if(s.stmt===J&&(s.id===C.START_NODE?(s.id=t.id+(n?"_start":"_end"),s.start=n):s.id=s.id.trim()),s.stmt!==q&&s.stmt!==J||!s.doc)return;let i=[],o=[];for(let c of s.doc)if(c.type===Ot){let y=ft(c);y.doc=ft(o),i.push(y),o=[]}else o.push(c);if(i.length>0&&o.length>0){let c={stmt:J,id:ee(),type:"divider",doc:ft(o)};i.push(ft(c)),s.doc=i}s.doc.forEach(c=>this.docTranslator(s,c,!0))}getRootDocV2(){return this.docTranslator({id:q,stmt:q},{id:q,stmt:q,doc:this.rootDoc},!0),{id:q,doc:this.rootDoc}}addState(t,s=tt,n=void 0,i=void 0,o=void 0,c=void 0,y=void 0,p=void 0){let _=t==null?void 0:t.trim();if(!this.currentDocument.states.has(_))T.info("Adding state ",_,i),this.currentDocument.states.set(_,{stmt:J,id:_,descriptions:[],type:s,doc:n,note:o,classes:[],styles:[],textStyles:[]});else{let m=this.currentDocument.states.get(_);if(!m)throw Error(`State not found: ${_}`);m.doc||(m.doc=n),m.type||(m.type=s)}if(i&&(T.info("Setting state description",_,i),(Array.isArray(i)?i:[i]).forEach(m=>this.addDescription(_,m.trim()))),o){let m=this.currentDocument.states.get(_);if(!m)throw Error(`State not found: ${_}`);m.note=o,m.note.text=U.sanitizeText(m.note.text,w())}c&&(T.info("Setting state classes",_,c),(Array.isArray(c)?c:[c]).forEach(m=>this.setCssClass(_,m.trim()))),y&&(T.info("Setting state styles",_,y),(Array.isArray(y)?y:[y]).forEach(m=>this.setStyle(_,m.trim()))),p&&(T.info("Setting state styles",_,y),(Array.isArray(p)?p:[p]).forEach(m=>this.setTextStyle(_,m.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:Jt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Vt(),t||(this.links=new Map,ae())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){T.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,s,n){this.links.set(t,{url:s,tooltip:n}),T.warn("Adding link",t,s,n)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===C.START_NODE?(this.startEndCount++,`${C.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",s=tt){return t===C.START_NODE?C.START_TYPE:s}endIdIfNeeded(t=""){return t===C.END_NODE?(this.startEndCount++,`${C.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",s=tt){return t===C.END_NODE?C.END_TYPE:s}addRelationObjs(t,s,n=""){let i=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type),c=this.startIdIfNeeded(s.id.trim()),y=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(i,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(c,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:i,id2:c,relationTitle:U.sanitizeText(n,w())})}addRelation(t,s,n){if(typeof t=="object"&&typeof s=="object")this.addRelationObjs(t,s,n);else if(typeof t=="string"&&typeof s=="string"){let i=this.startIdIfNeeded(t.trim()),o=this.startTypeIfNeeded(t),c=this.endIdIfNeeded(s.trim()),y=this.endTypeIfNeeded(s);this.addState(i,o),this.addState(c,y),this.currentDocument.relations.push({id1:i,id2:c,relationTitle:n?U.sanitizeText(n,w()):void 0})}}addDescription(t,s){var o;let n=this.currentDocument.states.get(t),i=s.startsWith(":")?s.replace(":","").trim():s;(o=n==null?void 0:n.descriptions)==null||o.push(U.sanitizeText(i,w()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,s=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let n=this.classes.get(t);s&&n&&s.split(C.STYLECLASS_SEP).forEach(i=>{let o=i.replace(/([^;]*);/,"$1").trim();if(RegExp(C.COLOR_KEYWORD).exec(i)){let c=o.replace(C.FILL_KEYWORD,C.BG_FILL).replace(C.COLOR_KEYWORD,C.FILL_KEYWORD);n.textStyles.push(c)}n.styles.push(o)})}getClasses(){return this.classes}setCssClass(t,s){t.split(",").forEach(n=>{var o;let i=this.getState(n);if(!i){let c=n.trim();this.addState(c),i=this.getState(c)}(o=i==null?void 0:i.classes)==null||o.push(s)})}setStyle(t,s){var n,i;(i=(n=this.getState(t))==null?void 0:n.styles)==null||i.push(s)}setTextStyle(t,s){var n,i;(i=(n=this.getState(t))==null?void 0:n.textStyles)==null||i.push(s)}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===Nt)}getDirection(){var t;return((t=this.getDirectionStatement())==null?void 0:t.value)??pe}setDirection(t){let s=this.getDirectionStatement();s?s.value=t:this.rootDoc.unshift({stmt:Nt,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=w();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:Ut(this.getRootDocV2())}}getConfig(){return w().state}},u(K,"StateDB"),K.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},K),Oe=u(e=>` +defs #statediagram-barbEnd { + fill: ${e.transitionColor}; + stroke: ${e.transitionColor}; + } +g.stateGroup text { + fill: ${e.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${e.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${e.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.stateGroup line { + stroke: ${e.lineColor}; + stroke-width: 1; +} + +.transition { + stroke: ${e.transitionColor}; + stroke-width: 1; + fill: none; +} + +.stateGroup .composit { + fill: ${e.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + + text { + fill: ${e.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${e.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} +.edgeLabel .label text { + fill: ${e.transitionLabelColor||e.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${e.transitionLabelColor||e.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${e.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node .fork-join { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node circle.state-end { + fill: ${e.innerEndBackground}; + stroke: ${e.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${e.compositeBackground||e.background}; + // stroke: ${e.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${e.stateBkg||e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: 1px; +} +.node polygon { + fill: ${e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder};; + stroke-width: 1px; +} +#statediagram-barbEnd { + fill: ${e.lineColor}; +} + +.statediagram-cluster rect { + fill: ${e.compositeTitleBackground}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: 1px; +} + +.cluster-label, .nodeLabel { + color: ${e.stateLabelColor}; + // line-height: 1; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${e.stateBorder||e.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${e.compositeBackground||e.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${e.altBackground?e.altBackground:"#efefef"}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${e.altBackground?e.altBackground:"#efefef"}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${e.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${e.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${e.noteTextColor}; +} + +#dependencyStart, #dependencyEnd { + fill: ${e.lineColor}; + stroke: ${e.lineColor}; + stroke-width: 1; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} +`,"getStyles");export{Oe as i,ue as n,Ae as r,Ne as t}; diff --git a/docs/assets/chunk-EXTU4WIE-GbJyzeBy.js b/docs/assets/chunk-EXTU4WIE-GbJyzeBy.js new file mode 100644 index 0000000..6dffde2 --- /dev/null +++ b/docs/assets/chunk-EXTU4WIE-GbJyzeBy.js @@ -0,0 +1 @@ +import{u as e}from"./src-Bp_72rVO.js";import{n as m}from"./src-faGJHwXX.js";import{b as s}from"./chunk-ABZYJK2D-DAD3GlgM.js";var a=m(t=>{var r;let{securityLevel:n}=s(),o=e("body");return n==="sandbox"&&(o=e((((r=e(`#i${t}`).node())==null?void 0:r.contentDocument)??document).body)),o.select(`#${t}`)},"selectSvgElement");export{a as t}; diff --git a/docs/assets/chunk-FMBD7UC4-DYXO3edG.js b/docs/assets/chunk-FMBD7UC4-DYXO3edG.js new file mode 100644 index 0000000..1884265 --- /dev/null +++ b/docs/assets/chunk-FMBD7UC4-DYXO3edG.js @@ -0,0 +1,15 @@ +import{n as e}from"./src-faGJHwXX.js";var o=e(()=>` + /* Font Awesome icon styling - consolidated */ + .label-icon { + display: inline-block; + height: 1em; + overflow: visible; + vertical-align: -0.125em; + } + + .node .label-icon path { + fill: currentColor; + stroke: revert; + stroke-width: revert; + } +`,"getIconStyles");export{o as t}; diff --git a/docs/assets/chunk-FPAJGGOC-C0XAW5Os.js b/docs/assets/chunk-FPAJGGOC-C0XAW5Os.js new file mode 100644 index 0000000..8c7cb67 --- /dev/null +++ b/docs/assets/chunk-FPAJGGOC-C0XAW5Os.js @@ -0,0 +1,125 @@ +var Gh=Object.defineProperty;var jh=(e,t,r)=>t in e?Gh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var dt=(e,t,r)=>jh(e,typeof t!="symbol"?t+"":t,r);var Wr,zr,Yr,qr,Xr;import{i as Dn,r as kt,s as Uo,t as Un}from"./chunk-LvLJmgfZ.js";import{t as Bh}from"./_baseUniq-CsutM-S0.js";import{n as Kh,r as Aa,t as Fo}from"./reduce-NgiHP_CR.js";import{t as Vh}from"./_baseFlatten-CLPh0yMf.js";import{t as Hh}from"./flatten-Buk63LQO.js";import{r as Wh}from"./_baseEach-BH6a1vAB.js";import{i as Ye,t as zh}from"./min-BgkyNW2f.js";import{t as Yh}from"./isEmpty-DIxUV1UR.js";import{n as ye,r as Go,t as z}from"./main-CwSdzVhm.js";function qh(e,t){return Vh(Ye(e,t),1)}var Xh=qh;function Jh(e,t){return e&&e.length?Bh(e,Wh(t,2)):[]}var Qh=Jh;function Y(e){return typeof e=="object"&&!!e&&typeof e.$type=="string"}function Te(e){return typeof e=="object"&&!!e&&typeof e.$refText=="string"}function jo(e){return typeof e=="object"&&!!e&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}function Jr(e){return typeof e=="object"&&!!e&&Y(e.container)&&Te(e.reference)&&typeof e.message=="string"}var ka=class{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return Y(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});let n=r[t];if(n!==void 0)return n;{let i=this.computeIsSubtype(e,t);return r[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let r=this.getAllTypes(),n=[];for(let i of r)this.isSubtype(i,e)&&n.push(i);return this.allSubtypes[e]=n,n}}};function ht(e){return typeof e=="object"&&!!e&&Array.isArray(e.content)}function Ft(e){return typeof e=="object"&&!!e&&typeof e.tokenType=="object"}function xa(e){return ht(e)&&typeof e.fullText=="string"}var Fe=class lt{constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){let t={state:this.startFn(),next:()=>this.nextFn(t.state),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)r++,n=t.next();return r}toArray(){let t=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&t.push(n.value);while(!n.done);return t}toSet(){return new Set(this)}toMap(t,r){let n=this.map(i=>[t?t(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(t){return new lt(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return ae})}join(t=","){let r=this.iterator(),n="",i,a=!1;do i=r.next(),i.done||(a&&(n+=t),n+=Zh(i.value)),a=!0;while(!i.done);return n}indexOf(t,r=0){let n=this.iterator(),i=0,a=n.next();for(;!a.done;){if(i>=r&&a.value===t)return i;a=n.next(),i++}return-1}every(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(!t(n.value))return!1;n=r.next()}return!0}some(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return!0;n=r.next()}return!1}forEach(t){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)t(i.value,n),i=r.next(),n++}map(t){return new lt(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?ae:{done:!1,value:t(i)}})}filter(t){return new lt(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&t(n.value))return n;while(!n.done);return ae})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){let n=this.iterator(),i=r,a=n.next();for(;!a.done;)i=i===void 0?a.value:t(i,a.value),a=n.next();return i}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,n){let i=t.next();if(i.done)return n;let a=this.recursiveReduce(t,r,n);return a===void 0?i.value:r(a,i.value)}find(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}}findIndex(t){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(t(i.value))return n;i=r.next(),n++}return-1}includes(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===t)return!0;n=r.next()}return!1}flatMap(t){return new lt(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}let{done:n,value:i}=this.nextFn(r.this);if(!n){let a=t(i);if(Fn(a))r.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}}while(r.iterator);return ae})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let r=t>1?this.flat(t-1):this;return new lt(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let s=n.iterator.next();if(s.done)n.iterator=void 0;else return s}let{done:i,value:a}=r.nextFn(n.this);if(!i)if(Fn(a))n.iterator=a[Symbol.iterator]();else return{done:!1,value:a}}while(n.iterator);return ae})}head(){let t=this.iterator().next();if(!t.done)return t.value}tail(t=1){return new lt(()=>{let r=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?ae:this.nextFn(r.state)))}distinct(t){return new lt(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){let i=t?t(n.value):n.value;if(!r.set.has(i))return r.set.add(i),n}while(!n.done);return ae})}exclude(t,r){let n=new Set;for(let i of t){let a=r?r(i):i;n.add(a)}return this.filter(i=>{let a=r?r(i):i;return!n.has(a)})}};function Zh(e){return typeof e=="string"?e:e===void 0?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}function Fn(e){return!!e&&typeof e[Symbol.iterator]=="function"}const Gn=new Fe(()=>{},()=>ae),ae=Object.freeze({done:!0,value:void 0});function H(...e){if(e.length===1){let t=e[0];if(t instanceof Fe)return t;if(Fn(t))return new Fe(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new Fe(()=>({index:0}),r=>r.index1?new Fe(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),n=>{for(n.pruned&&(n.pruned=(n.iterators.pop(),!1));n.iterators.length>0;){let i=n.iterators[n.iterators.length-1].next();if(i.done)n.iterators.pop();else return n.iterators.push(t(i.value)[Symbol.iterator]()),i}return ae})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},jn;(function(e){function t(a){return a.reduce((s,o)=>s+o,0)}e.sum=t;function r(a){return a.reduce((s,o)=>s*o,0)}e.product=r;function n(a){return a.reduce((s,o)=>Math.min(s,o))}e.min=n;function i(a){return a.reduce((s,o)=>Math.max(s,o))}e.max=i})(jn||(jn={}));var Bo=kt({DefaultNameRegexp:()=>Sa,RangeComparison:()=>qe,compareRange:()=>Vo,findCommentNode:()=>Wo,findDeclarationNodeAtOffset:()=>tf,findLeafNodeAtOffset:()=>Ia,findLeafNodeBeforeOffset:()=>zo,flattenCst:()=>ef,getInteriorNodes:()=>af,getNextNode:()=>rf,getPreviousNode:()=>qo,getStartlineNode:()=>nf,inRange:()=>Ho,isChildNode:()=>Ko,isCommentNode:()=>Ca,streamCst:()=>Qr,toDocumentSegment:()=>Zr,tokenToRange:()=>Bn},1);function Qr(e){return new Gt(e,t=>ht(t)?t.content:[],{includeRoot:!0})}function ef(e){return Qr(e).filter(Ft)}function Ko(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function Bn(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Zr(e){if(!e)return;let{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}var qe;(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(qe||(qe={}));function Vo(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return qe.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.lineqe.After}const Sa=/^[\w\p{L}]$/u;function tf(e,t,r=Sa){if(e){if(t>0){let n=t-e.offset,i=e.text.charAt(n);r.test(i)||t--}return Ia(e,t)}}function Wo(e,t){if(e){let r=qo(e,!0);if(r&&Ca(r,t))return r;if(xa(e)){let n=e.content.findIndex(i=>!i.hidden);for(let i=n-1;i>=0;i--){let a=e.content[i];if(Ca(a,t))return a}}}}function Ca(e,t){return Ft(e)&&t.includes(e.tokenType.name)}function Ia(e,t){if(Ft(e))return e;if(ht(e)){let r=Yo(e,t,!1);if(r)return Ia(r,t)}}function zo(e,t){if(Ft(e))return e;if(ht(e)){let r=Yo(e,t,!0);if(r)return zo(r,t)}}function Yo(e,t,r){let n=0,i=e.content.length-1,a;for(;n<=i;){let s=Math.floor((n+i)/2),o=e.content[s];if(o.offset<=t&&o.end>t)return o;o.end<=t?(a=r?o:void 0,n=s+1):i=s-1}return a}function qo(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e);for(;n>0;){n--;let i=r.content[n];if(t||!i.hidden)return i}e=r}}function rf(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e),i=r.content.length-1;for(;njt,AbstractRule:()=>en,AbstractType:()=>tn,Action:()=>sr,Alternatives:()=>or,ArrayLiteral:()=>Bt,ArrayType:()=>Kt,Assignment:()=>lr,BooleanLiteral:()=>Vt,CharacterRange:()=>ur,Condition:()=>Vn,Conjunction:()=>Ht,CrossReference:()=>cr,Disjunction:()=>Wt,EndOfFile:()=>dr,Grammar:()=>zt,GrammarImport:()=>rn,Group:()=>hr,InferredType:()=>Yt,Interface:()=>qt,Keyword:()=>pr,LangiumGrammarAstReflection:()=>Ma,LangiumGrammarTerminals:()=>lf,NamedArgument:()=>nn,NegatedToken:()=>mr,Negation:()=>Xt,NumberLiteral:()=>Jt,Parameter:()=>Qt,ParameterReference:()=>Zt,ParserRule:()=>er,ReferenceType:()=>tr,RegexToken:()=>gr,ReturnType:()=>an,RuleCall:()=>yr,SimpleType:()=>rr,StringLiteral:()=>nr,TerminalAlternatives:()=>Tr,TerminalGroup:()=>vr,TerminalRule:()=>St,TerminalRuleCall:()=>Rr,Type:()=>ir,TypeAttribute:()=>sn,TypeDefinition:()=>Hn,UnionType:()=>ar,UnorderedGroup:()=>$r,UntilToken:()=>Er,ValueLiteral:()=>Wn,Wildcard:()=>Ar,isAbstractElement:()=>Na,isAbstractRule:()=>uf,isAbstractType:()=>cf,isAction:()=>Ct,isAlternatives:()=>Oa,isArrayLiteral:()=>mf,isArrayType:()=>Qo,isAssignment:()=>ft,isBooleanLiteral:()=>Zo,isCharacterRange:()=>ol,isCondition:()=>df,isConjunction:()=>el,isCrossReference:()=>Yn,isDisjunction:()=>tl,isEndOfFile:()=>ll,isFeatureName:()=>hf,isGrammar:()=>gf,isGrammarImport:()=>yf,isGroup:()=>fr,isInferredType:()=>ba,isInterface:()=>wa,isKeyword:()=>pt,isNamedArgument:()=>Tf,isNegatedToken:()=>ul,isNegation:()=>rl,isNumberLiteral:()=>vf,isParameter:()=>Rf,isParameterReference:()=>nl,isParserRule:()=>ve,isPrimitiveType:()=>Jo,isReferenceType:()=>il,isRegexToken:()=>cl,isReturnType:()=>al,isRuleCall:()=>mt,isSimpleType:()=>_a,isStringLiteral:()=>$f,isTerminalAlternatives:()=>dl,isTerminalGroup:()=>hl,isTerminalRule:()=>Xe,isTerminalRuleCall:()=>La,isType:()=>zn,isTypeAttribute:()=>Ef,isTypeDefinition:()=>ff,isUnionType:()=>sl,isUnorderedGroup:()=>Pa,isUntilToken:()=>fl,isValueLiteral:()=>pf,isWildcard:()=>pl,reflection:()=>N},1);const lf={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},en="AbstractRule";function uf(e){return N.isInstance(e,en)}const tn="AbstractType";function cf(e){return N.isInstance(e,tn)}const Vn="Condition";function df(e){return N.isInstance(e,Vn)}function hf(e){return Jo(e)||e==="current"||e==="entry"||e==="extends"||e==="false"||e==="fragment"||e==="grammar"||e==="hidden"||e==="import"||e==="interface"||e==="returns"||e==="terminal"||e==="true"||e==="type"||e==="infer"||e==="infers"||e==="with"||typeof e=="string"&&/\^?[_a-zA-Z][\w_]*/.test(e)}function Jo(e){return e==="string"||e==="number"||e==="boolean"||e==="Date"||e==="bigint"}const Hn="TypeDefinition";function ff(e){return N.isInstance(e,Hn)}const Wn="ValueLiteral";function pf(e){return N.isInstance(e,Wn)}const jt="AbstractElement";function Na(e){return N.isInstance(e,jt)}const Bt="ArrayLiteral";function mf(e){return N.isInstance(e,Bt)}const Kt="ArrayType";function Qo(e){return N.isInstance(e,Kt)}const Vt="BooleanLiteral";function Zo(e){return N.isInstance(e,Vt)}const Ht="Conjunction";function el(e){return N.isInstance(e,Ht)}const Wt="Disjunction";function tl(e){return N.isInstance(e,Wt)}const zt="Grammar";function gf(e){return N.isInstance(e,zt)}const rn="GrammarImport";function yf(e){return N.isInstance(e,rn)}const Yt="InferredType";function ba(e){return N.isInstance(e,Yt)}const qt="Interface";function wa(e){return N.isInstance(e,qt)}const nn="NamedArgument";function Tf(e){return N.isInstance(e,nn)}const Xt="Negation";function rl(e){return N.isInstance(e,Xt)}const Jt="NumberLiteral";function vf(e){return N.isInstance(e,Jt)}const Qt="Parameter";function Rf(e){return N.isInstance(e,Qt)}const Zt="ParameterReference";function nl(e){return N.isInstance(e,Zt)}const er="ParserRule";function ve(e){return N.isInstance(e,er)}const tr="ReferenceType";function il(e){return N.isInstance(e,tr)}const an="ReturnType";function al(e){return N.isInstance(e,an)}const rr="SimpleType";function _a(e){return N.isInstance(e,rr)}const nr="StringLiteral";function $f(e){return N.isInstance(e,nr)}const St="TerminalRule";function Xe(e){return N.isInstance(e,St)}const ir="Type";function zn(e){return N.isInstance(e,ir)}const sn="TypeAttribute";function Ef(e){return N.isInstance(e,sn)}const ar="UnionType";function sl(e){return N.isInstance(e,ar)}const sr="Action";function Ct(e){return N.isInstance(e,sr)}const or="Alternatives";function Oa(e){return N.isInstance(e,or)}const lr="Assignment";function ft(e){return N.isInstance(e,lr)}const ur="CharacterRange";function ol(e){return N.isInstance(e,ur)}const cr="CrossReference";function Yn(e){return N.isInstance(e,cr)}const dr="EndOfFile";function ll(e){return N.isInstance(e,dr)}const hr="Group";function fr(e){return N.isInstance(e,hr)}const pr="Keyword";function pt(e){return N.isInstance(e,pr)}const mr="NegatedToken";function ul(e){return N.isInstance(e,mr)}const gr="RegexToken";function cl(e){return N.isInstance(e,gr)}const yr="RuleCall";function mt(e){return N.isInstance(e,yr)}const Tr="TerminalAlternatives";function dl(e){return N.isInstance(e,Tr)}const vr="TerminalGroup";function hl(e){return N.isInstance(e,vr)}const Rr="TerminalRuleCall";function La(e){return N.isInstance(e,Rr)}const $r="UnorderedGroup";function Pa(e){return N.isInstance(e,$r)}const Er="UntilToken";function fl(e){return N.isInstance(e,Er)}const Ar="Wildcard";function pl(e){return N.isInstance(e,Ar)}var Ma=class extends ka{getAllTypes(){return[jt,en,tn,sr,or,Bt,Kt,lr,Vt,ur,Vn,Ht,cr,Wt,dr,zt,rn,hr,Yt,qt,pr,nn,mr,Xt,Jt,Qt,Zt,er,tr,gr,an,yr,rr,nr,Tr,vr,St,Rr,ir,sn,Hn,ar,$r,Er,Wn,Ar]}computeIsSubtype(e,t){switch(e){case sr:case or:case lr:case ur:case cr:case dr:case hr:case pr:case mr:case gr:case yr:case Tr:case vr:case Rr:case $r:case Er:case Ar:return this.isSubtype(jt,t);case Bt:case Jt:case nr:return this.isSubtype(Wn,t);case Kt:case tr:case rr:case ar:return this.isSubtype(Hn,t);case Vt:return this.isSubtype("Condition",t)||this.isSubtype("ValueLiteral",t);case Ht:case Wt:case Xt:case Zt:return this.isSubtype(Vn,t);case Yt:case qt:case ir:return this.isSubtype(tn,t);case er:return this.isSubtype("AbstractRule",t)||this.isSubtype("AbstractType",t);case St:return this.isSubtype(en,t);default:return!1}}getReferenceType(e){let t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return tn;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return en;case"Grammar:usedGrammars":return zt;case"NamedArgument:parameter":case"ParameterReference:parameter":return Qt;case"TerminalRuleCall:rule":return St;default:throw Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case jt:return{name:jt,properties:[{name:"cardinality"},{name:"lookahead"}]};case Bt:return{name:Bt,properties:[{name:"elements",defaultValue:[]}]};case Kt:return{name:Kt,properties:[{name:"elementType"}]};case Vt:return{name:Vt,properties:[{name:"true",defaultValue:!1}]};case Ht:return{name:Ht,properties:[{name:"left"},{name:"right"}]};case Wt:return{name:Wt,properties:[{name:"left"},{name:"right"}]};case zt:return{name:zt,properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case rn:return{name:rn,properties:[{name:"path"}]};case Yt:return{name:Yt,properties:[{name:"name"}]};case qt:return{name:qt,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case nn:return{name:nn,properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case Xt:return{name:Xt,properties:[{name:"value"}]};case Jt:return{name:Jt,properties:[{name:"value"}]};case Qt:return{name:Qt,properties:[{name:"name"}]};case Zt:return{name:Zt,properties:[{name:"parameter"}]};case er:return{name:er,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case tr:return{name:tr,properties:[{name:"referenceType"}]};case an:return{name:an,properties:[{name:"name"}]};case rr:return{name:rr,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case nr:return{name:nr,properties:[{name:"value"}]};case St:return{name:St,properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case ir:return{name:ir,properties:[{name:"name"},{name:"type"}]};case sn:return{name:sn,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case ar:return{name:ar,properties:[{name:"types",defaultValue:[]}]};case sr:return{name:sr,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case or:return{name:or,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case lr:return{name:lr,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case ur:return{name:ur,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case cr:return{name:cr,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case dr:return{name:dr,properties:[{name:"cardinality"},{name:"lookahead"}]};case hr:return{name:hr,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case pr:return{name:pr,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case mr:return{name:mr,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case gr:return{name:gr,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case yr:return{name:yr,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case Tr:return{name:Tr,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case vr:return{name:vr,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case Rr:return{name:Rr,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case $r:return{name:$r,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case Er:return{name:Er,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case Ar:return{name:Ar,properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}};const N=new Ma;var ml=kt({assignMandatoryProperties:()=>gl,copyAstNode:()=>Fa,findLocalReferences:()=>kf,findRootNode:()=>qn,getContainerOfType:()=>on,getDocument:()=>Ge,hasContainerOfType:()=>Af,linkContentToContainer:()=>Da,streamAllContents:()=>It,streamAst:()=>gt,streamContents:()=>Xn,streamReferences:()=>Jn},1);function Da(e){for(let[t,r]of Object.entries(e))t.startsWith("$")||(Array.isArray(r)?r.forEach((n,i)=>{Y(n)&&(n.$container=e,n.$containerProperty=t,n.$containerIndex=i)}):Y(r)&&(r.$container=e,r.$containerProperty=t))}function on(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function Af(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}function Ge(e){let t=qn(e).$document;if(!t)throw Error("AST node has no document.");return t}function qn(e){for(;e.$container;)e=e.$container;return e}function Xn(e,t){if(!e)throw Error("Node must be an AstNode.");let r=t==null?void 0:t.range;return new Fe(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndexXn(r,t))}function gt(e,t){if(e){if(t!=null&&t.range&&!Ua(e,t.range))return new Gt(e,()=>[])}else throw Error("Root node must be an AstNode.");return new Gt(e,r=>Xn(r,t),{includeRoot:!0})}function Ua(e,t){var n;if(!t)return!0;let r=(n=e.$cstNode)==null?void 0:n.range;return r?Ho(r,t):!1}function Jn(e){return new Fe(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex{Jn(n).forEach(i=>{i.reference.ref===e&&r.push(i.reference)})}),H(r)}function gl(e,t){let r=e.getTypeMetaData(t.$type),n=t;for(let i of r.properties)i.defaultValue!==void 0&&n[i.name]===void 0&&(n[i.name]=yl(i.defaultValue))}function yl(e){return Array.isArray(e)?[...e.map(yl)]:e}function Fa(e,t){let r={$type:e.$type};for(let[n,i]of Object.entries(e))if(!n.startsWith("$"))if(Y(i))r[n]=Fa(i,t);else if(Te(i))r[n]=t(r,n,i.$refNode,i.$refText);else if(Array.isArray(i)){let a=[];for(let s of i)Y(s)?a.push(Fa(s,t)):Te(s)?a.push(t(r,n,s.$refNode,s.$refText)):a.push(s);r[n]=a}else r[n]=i;return Da(r),r}function I(e){return e.charCodeAt(0)}function Ga(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}function ln(e,t){if(e[t]===!0)throw"duplicate flag "+t;e[t],e[t]=!0}function kr(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function Qn(){throw Error("Internal Error - Should never get here!")}function Tl(e){return e.type==="Character"}const Zn=[];for(let e=I("0");e<=I("9");e++)Zn.push(e);const ei=[I("_")].concat(Zn);for(let e=I("a");e<=I("z");e++)ei.push(e);for(let e=I("A");e<=I("Z");e++)ei.push(e);const vl=[I(" "),I("\f"),I(` +`),I("\r"),I(" "),I("\v"),I(" "),I("\xA0"),I("\u1680"),I("\u2000"),I("\u2001"),I("\u2002"),I("\u2003"),I("\u2004"),I("\u2005"),I("\u2006"),I("\u2007"),I("\u2008"),I("\u2009"),I("\u200A"),I("\u2028"),I("\u2029"),I("\u202F"),I("\u205F"),I("\u3000"),I("\uFEFF")];var xf=/[0-9a-fA-F]/,ti=/[0-9]/,Sf=/[1-9]/,Rl=class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":ln(r,"global");break;case"i":ln(r,"ignoreCase");break;case"m":ln(r,"multiLine");break;case"u":ln(r,"unicode");break;case"y":ln(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break}kr(t);let r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return Qn()}quantifier(e=!1){let t,r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let i;this.isDigit()?(i=this.integerIncludingZero(),t={atLeast:n,atMost:i}):t={atLeast:n,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;kr(t);break}if(!(e===!0&&t===void 0)&&kr(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),kr(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):Qn()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[I(` +`),I("\r"),I("\u2028"),I("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=Zn;break;case"D":e=Zn,t=!0;break;case"s":e=vl;break;case"S":e=vl,t=!0;break;case"w":e=ei;break;case"W":e=ei,t=!0;break}return kr(e)?{type:"Set",value:e,complement:t}:Qn()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=I("\f");break;case"n":e=I(` +`);break;case"r":e=I("\r");break;case"t":e=I(" ");break;case"v":e=I("\v");break}return kr(e)?{type:"Character",value:e}:Qn()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:I("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:I(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:I(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let r=this.classAtom();if(r.type,Tl(r)&&this.isRangeDash()){this.consumeChar("-");let n=this.classAtom();if(n.type,Tl(n)){if(n.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},ri=class{visitChildren(e){for(let t in e){let r=e[t];e.hasOwnProperty(t)&&(r.type===void 0?Array.isArray(r)&&r.forEach(n=>{this.visit(n)},this):this.visit(r))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},$l=kt({NEWLINE_REGEXP:()=>El,escapeRegExp:()=>un,getCaseInsensitivePattern:()=>Sl,getTerminalParts:()=>Cf,isMultilineComment:()=>kl,isWhitespace:()=>ni,partialMatches:()=>Cl,partialRegExp:()=>Il,whitespaceCharacters:()=>xl},1);const El=/\r?\n/gm;var Al=new Rl,Nt=new class extends ri{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` +`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=un(t);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),r=new RegExp(t);this.multiline=!!` +`.match(r)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}};function Cf(e){try{typeof e!="string"&&(e=e.source),e=`/${e}/`;let t=Al.pattern(e),r=[];for(let n of t.value.value)Nt.reset(e),Nt.visit(n),r.push({start:Nt.startRegexp,end:Nt.endRegex});return r}catch{return[]}}function kl(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),Nt.reset(e),Nt.visit(Al.pattern(e)),Nt.multiline}catch{return!1}}const xl=`\f +\r \v \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`.split("");function ni(e){let t=typeof e=="string"?new RegExp(e):e;return xl.some(r=>t.test(r))}function un(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Sl(e){return Array.prototype.map.call(e,t=>/\w/.test(t)?`[${t.toLowerCase()}${t.toUpperCase()}]`:un(t)).join("")}function Cl(e,t){let r=Il(e),n=t.match(r);return!!n&&n[0].length>0}function Il(e){typeof e=="string"&&(e=new RegExp(e));let t=e,r=e.source,n=0;function i(){let a="",s;function o(u){a+=r.substr(n,u),n+=u}function l(u){a+="(?:"+r.substr(n,u)+"|$)",n+=u}for(;n",n)-n+1);break;default:l(2);break}break;case"[":s=/\[(?:\\.|.)*?\]/g,s.lastIndex=n,s=s.exec(r)||[],l(s[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":o(1);break;case"{":s=/\{\d+,?\d*\}/g,s.lastIndex=n,s=s.exec(r),s?o(s[0].length):l(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":a+="(?:",n+=3,a+=i()+"|$)";break;case"=":a+="(?=",n+=3,a+=i()+")";break;case"!":s=n,n+=3,i(),a+=r.substr(s,n-s);break;case"<":switch(r[n+3]){case"=":case"!":s=n,n+=4,i(),a+=r.substr(s,n-s);break;default:o(r.indexOf(">",n)-n+1),a+=i()+"|$)";break}break}else o(1),a+=i()+"|$)";break;case")":return++n,a;default:l(1);break}return a}return new RegExp(i(),e.flags)}var Nl=kt({findAssignment:()=>Dl,findNameAssignment:()=>Ha,findNodeForKeyword:()=>Ml,findNodeForProperty:()=>Ba,findNodesForKeyword:()=>If,findNodesForKeywordInternal:()=>Va,findNodesForProperty:()=>Pl,getActionAtElement:()=>Fl,getActionType:()=>jl,getAllReachableRules:()=>ja,getCrossReferenceTerminal:()=>Ol,getEntryRule:()=>bl,getExplicitRuleType:()=>cn,getHiddenRules:()=>wl,getRuleType:()=>Bl,getRuleTypeName:()=>Of,getTypeName:()=>ai,isArrayCardinality:()=>bf,isArrayOperator:()=>wf,isCommentTerminal:()=>Ll,isDataType:()=>_f,isDataTypeRule:()=>ii,isOptionalCardinality:()=>Nf,terminalRegex:()=>si},1);function bl(e){return e.rules.find(t=>ve(t)&&t.entry)}function wl(e){return e.rules.filter(t=>Xe(t)&&t.hidden)}function ja(e,t){let r=new Set,n=bl(e);if(!n)return new Set(e.rules);let i=[n].concat(wl(e));for(let s of i)_l(s,r,t);let a=new Set;for(let s of e.rules)(r.has(s.name)||Xe(s)&&s.hidden)&&a.add(s);return a}function _l(e,t,r){t.add(e.name),It(e).forEach(n=>{if(mt(n)||r&&La(n)){let i=n.rule.ref;i&&!t.has(i.name)&&_l(i,t,r)}})}function Ol(e){var t;if(e.terminal)return e.terminal;if(e.type.ref)return(t=Ha(e.type.ref))==null?void 0:t.terminal}function Ll(e){return e.hidden&&!ni(si(e))}function Pl(e,t){return!e||!t?[]:Ka(e,t,e.astNode,!0)}function Ba(e,t,r){if(!e||!t)return;let n=Ka(e,t,e.astNode,!0);if(n.length!==0)return r=r===void 0?0:Math.max(0,Math.min(r,n.length-1)),n[r]}function Ka(e,t,r,n){if(!n){let i=on(e.grammarSource,ft);if(i&&i.feature===t)return[e]}return ht(e)&&e.astNode===r?e.content.flatMap(i=>Ka(i,t,r,!1)):[]}function If(e,t){return e?Va(e,t,e==null?void 0:e.astNode):[]}function Ml(e,t,r){if(!e)return;let n=Va(e,t,e==null?void 0:e.astNode);if(n.length!==0)return r=r===void 0?0:Math.max(0,Math.min(r,n.length-1)),n[r]}function Va(e,t,r){if(e.astNode!==r)return[];if(pt(e.grammarSource)&&e.grammarSource.value===t)return[e];let n=Qr(e).iterator(),i,a=[];do if(i=n.next(),!i.done){let s=i.value;s.astNode===r?pt(s.grammarSource)&&s.grammarSource.value===t&&a.push(s):n.prune()}while(!i.done);return a}function Dl(e){var r;let t=e.astNode;for(;t===((r=e.container)==null?void 0:r.astNode);){let n=on(e.grammarSource,ft);if(n)return n;e=e.container}}function Ha(e){let t=e;return ba(t)&&(Ct(t.$container)?t=t.$container.$container:ve(t.$container)?t=t.$container:xt(t.$container)),Ul(e,t,new Map)}function Ul(e,t,r){var i;function n(a,s){let o;return on(a,ft)||(o=Ul(s,s,r)),r.set(e,o),o}if(r.has(e))return r.get(e);r.set(e,void 0);for(let a of It(t)){if(ft(a)&&a.feature.toLowerCase()==="name")return r.set(e,a),a;if(mt(a)&&ve(a.rule.ref))return n(a,a.rule.ref);if(_a(a)&&((i=a.typeRef)!=null&&i.ref))return n(a,a.typeRef.ref)}}function Fl(e){let t=e.$container;if(fr(t)){let r=t.elements,n=r.indexOf(e);for(let i=n-1;i>=0;i--){let a=r[i];if(Ct(a))return a;{let s=It(r[i]).find(Ct);if(s)return s}}}if(Na(t))return Fl(t)}function Nf(e,t){return e==="?"||e==="*"||fr(t)&&!!t.guardCondition}function bf(e){return e==="*"||e==="+"}function wf(e){return e==="+="}function ii(e){return Gl(e,new Set)}function Gl(e,t){if(t.has(e))return!0;t.add(e);for(let r of It(e))if(mt(r)){if(!r.rule.ref||ve(r.rule.ref)&&!Gl(r.rule.ref,t))return!1}else{if(ft(r))return!1;if(Ct(r))return!1}return!!e.definition}function _f(e){return Wa(e.type,new Set)}function Wa(e,t){if(t.has(e))return!0;if(t.add(e),Qo(e)||il(e))return!1;if(sl(e))return e.types.every(r=>Wa(r,t));if(_a(e)){if(e.primitiveType!==void 0||e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let r=e.typeRef.ref;return zn(r)?Wa(r.type,t):!1}else return!1}else return!1}function cn(e){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t&&(ve(t)||wa(t)||zn(t)))return t.name}}function ai(e){if(ve(e))return ii(e)?e.name:cn(e)??e.name;if(wa(e)||zn(e)||al(e))return e.name;if(Ct(e)){let t=jl(e);if(t)return t}else if(ba(e))return e.name;throw Error("Cannot get name of Unknown Type")}function jl(e){var t;if(e.inferredType)return e.inferredType.name;if((t=e.type)!=null&&t.ref)return ai(e.type.ref)}function Of(e){var t;return Xe(e)?((t=e.type)==null?void 0:t.name)??"string":ii(e)?e.name:cn(e)??e.name}function Bl(e){var t;return Xe(e)?((t=e.type)==null?void 0:t.name)??"string":cn(e)??e.name}function si(e){let t={s:!1,i:!1,u:!1},r=xr(e.definition,t),n=Object.entries(t).filter(([,i])=>i).map(([i])=>i).join("");return new RegExp(r,n)}var za="[\\s\\S]";function xr(e,t){if(dl(e))return Lf(e);if(hl(e))return Pf(e);if(ol(e))return Uf(e);if(La(e)){let r=e.rule.ref;if(!r)throw Error("Missing rule reference.");return Je(xr(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead})}else{if(ul(e))return Df(e);if(fl(e))return Mf(e);if(cl(e)){let r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),i=e.regex.substring(r+1);return t&&(t.i=i.includes("i"),t.s=i.includes("s"),t.u=i.includes("u")),Je(n,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}else{if(pl(e))return Je(za,{cardinality:e.cardinality,lookahead:e.lookahead});throw Error(`Invalid terminal element: ${e==null?void 0:e.$type}`)}}}function Lf(e){return Je(e.elements.map(t=>xr(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function Pf(e){return Je(e.elements.map(t=>xr(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function Mf(e){return Je(`${za}*?${xr(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead})}function Df(e){return Je(`(?!${xr(e.terminal)})${za}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function Uf(e){return e.right?Je(`[${Ya(e.left)}-${Ya(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1}):Je(Ya(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}function Ya(e){return un(e.value)}function Je(e,t){return(t.wrap!==!1||t.lookahead)&&(e=`(${t.lookahead??""}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function Kl(e){let t=[],r=e.Grammar;for(let n of r.rules)Xe(n)&&Ll(n)&&kl(si(n))&&t.push(n.name);return{multilineCommentRules:t,nameRegexp:Sa}}var Vl=typeof global=="object"&&global&&global.Object===Object&&global,Ff=typeof self=="object"&&self&&self.Object===Object&&self,je=Vl||Ff||Function("return this")(),Se=je.Symbol,Hl=Object.prototype,Gf=Hl.hasOwnProperty,jf=Hl.toString,dn=Se?Se.toStringTag:void 0;function Bf(e){var t=Gf.call(e,dn),r=e[dn];try{e[dn]=void 0;var n=!0}catch{}var i=jf.call(e);return n&&(t?e[dn]=r:delete e[dn]),i}var Kf=Bf,Vf=Object.prototype.toString;function Hf(e){return Vf.call(e)}var Wf=Hf,zf="[object Null]",Yf="[object Undefined]",Wl=Se?Se.toStringTag:void 0;function qf(e){return e==null?e===void 0?Yf:zf:Wl&&Wl in Object(e)?Kf(e):Wf(e)}var yt=qf;function Xf(e){return typeof e=="object"&&!!e}var we=Xf,Jf="[object Symbol]";function Qf(e){return typeof e=="symbol"||we(e)&&yt(e)==Jf}var oi=Qf;function Zf(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r0){if(++t>=zp)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Jp=Xp;function Qp(e){return function(){return e}}var Zp=Qp,li=(function(){try{var e=wt(Object,"defineProperty");return e({},"",{}),e}catch{}})(),em=Jp(li?function(e,t){return li(e,"toString",{configurable:!0,enumerable:!1,value:Zp(t),writable:!0})}:Sr);function tm(e,t){for(var r=-1,n=e==null?0:e.length;++r-1}var ru=lm,um=9007199254740991,cm=/^(?:0|[1-9]\d*)$/;function dm(e,t){var r=typeof e;return t??(t=um),!!t&&(r=="number"||r!="symbol"&&cm.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Rm}var es=$m;function Em(e){return e!=null&&es(e.length)&&!Qe(e)}var Be=Em;function Am(e,t,r){if(!Ce(r))return!1;var n=typeof t;return(n=="number"?Be(r)&&ui(t,r.length):n=="string"&&t in r)?pn(r[t],e):!1}var di=Am;function km(e){return Za(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&di(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n-1}var qg=Yg;function Xg(e,t){var r=this.__data__,n=pi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Jg=Xg;function Ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(o)?t>1?gu(o,t-1,r,n,i):ss(i,o):n||(i[i.length]=o)}return i}var os=gu;function by(e){return e!=null&&e.length?os(e,1):[]}var _e=by,yu=hu(Object.getPrototypeOf,Object);function wy(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++no))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,f=r&jv?new ps:void 0;for(a.set(e,t),a.set(t,e);++d2?t[2]:void 0;for(i&&di(t[0],t[1],i)&&(n=1);++r=e$&&(a=ms,s=!1,t=new ps(t));e:for(;++i-1?i[a?t[s]:s]:void 0}}var y$=g$,T$=Math.max;function v$(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:fn(r);return i<0&&(i=T$(n+i,0)),tu(e,Ke(t,3),i)}var Lr=y$(v$);function R$(e){return e&&e.length?e[0]:void 0}var Le=R$;function $$(e,t){var r=-1,n=Be(e)?Array(e.length):[];return Ot(e,function(i,a,s){n[++r]=t(i,a,s)}),n}var E$=$$;function A$(e,t){return(O(e)?hn:E$)(e,Ke(t,3))}var k=A$;function k$(e,t){return os(k(e,t),1)}var Ne=k$,x$=Object.prototype.hasOwnProperty,S$=XR(function(e,t,r){x$.call(e,r)?e[r].push(t):Qa(e,r,[t])}),C$=Object.prototype.hasOwnProperty;function I$(e,t){return e!=null&&C$.call(e,t)}var N$=I$;function b$(e,t){return e!=null&&Xu(e,t,N$)}var x=b$,w$="[object String]";function _$(e){return typeof e=="string"||!O(e)&&we(e)&&yt(e)==w$}var ce=_$;function O$(e,t){return hn(t,function(r){return e[r]})}var L$=O$;function P$(e){return e==null?[]:L$(e,Re(e))}var X=P$,M$=Math.max;function D$(e,t,r,n){e=Be(e)?e:X(e),r=r&&!n?fn(r):0;var i=e.length;return r<0&&(r=M$(i+r,0)),ce(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ja(e,t,r)>-1}var se=D$,U$=Math.max;function F$(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:fn(r);return i<0&&(i=U$(n+i,0)),Ja(e,t,i)}var tc=F$,G$="[object Map]",j$="[object Set]",B$=Object.prototype.hasOwnProperty;function K$(e){if(e==null)return!0;if(Be(e)&&(O(e)||typeof e=="string"||typeof e.splice=="function"||yn(e)||rs(e)||hi(e)))return!e.length;var t=_r(e);if(t==G$||t==j$)return!e.size;if(gn(e))return!fu(e).length;for(var r in e)if(B$.call(e,r))return!1;return!0}var M=K$,V$="[object RegExp]";function H$(e){return we(e)&&yt(e)==V$}var W$=H$,rc=Tt&&Tt.isRegExp,Ze=rc?Tn(rc):W$;function z$(e){return e===void 0}var et=z$,Y$="Expected a function";function q$(e){if(typeof e!="function")throw TypeError(Y$);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var X$=q$;function J$(e,t,r,n){if(!Ce(e))return e;t=Ti(t,e);for(var i=-1,a=t.length,s=a-1,o=e;o!=null&&++i=cE){var u=t?null:uE(e);if(u)return gs(u);s=!1,i=ms,l=new ps}else l=t?[]:o;e:for(;++n{t.accept(e)})}},oe=class extends Ve{constructor(e){super([]),this.idx=1,$e(this,Pe(e,t=>t!==void 0))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},Pr=class extends Ve{constructor(e){super(e.definition),this.orgText="",$e(this,Pe(e,t=>t!==void 0))}},de=class extends Ve{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,$e(this,Pe(e,t=>t!==void 0))}},re=class extends Ve{constructor(e){super(e.definition),this.idx=1,$e(this,Pe(e,t=>t!==void 0))}},Ae=class extends Ve{constructor(e){super(e.definition),this.idx=1,$e(this,Pe(e,t=>t!==void 0))}},ke=class extends Ve{constructor(e){super(e.definition),this.idx=1,$e(this,Pe(e,t=>t!==void 0))}},B=class extends Ve{constructor(e){super(e.definition),this.idx=1,$e(this,Pe(e,t=>t!==void 0))}},he=class extends Ve{constructor(e){super(e.definition),this.idx=1,$e(this,Pe(e,t=>t!==void 0))}},fe=class extends Ve{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,$e(this,Pe(e,t=>t!==void 0))}},F=class{constructor(e){this.idx=1,$e(this,Pe(e,t=>t!==void 0))}accept(e){e.visit(this)}};function gE(e){return k(e,xi)}function xi(e){function t(r){return k(r,xi)}if(e instanceof oe){let r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return ce(e.label)&&(r.label=e.label),r}else{if(e instanceof de)return{type:"Alternative",definition:t(e.definition)};if(e instanceof re)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Ae)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof ke)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:xi(new F({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof he)return{type:"RepetitionWithSeparator",idx:e.idx,separator:xi(new F({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof B)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof fe)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof F){let r={type:"Terminal",name:e.terminalType.name,label:pE(e.terminalType),idx:e.idx};ce(e.label)&&(r.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=Ze(n)?n.source:n),r}else{if(e instanceof Pr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}var Mr=class{visit(e){let t=e;switch(t.constructor){case oe:return this.visitNonTerminal(t);case de:return this.visitAlternative(t);case re:return this.visitOption(t);case Ae:return this.visitRepetitionMandatory(t);case ke:return this.visitRepetitionMandatoryWithSeparator(t);case he:return this.visitRepetitionWithSeparator(t);case B:return this.visitRepetition(t);case fe:return this.visitAlternation(t);case F:return this.visitTerminal(t);case Pr:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function yE(e){return e instanceof de||e instanceof re||e instanceof B||e instanceof Ae||e instanceof ke||e instanceof he||e instanceof F||e instanceof Pr}function Si(e,t=[]){return e instanceof re||e instanceof B||e instanceof he?!0:e instanceof fe?nc(e.definition,r=>Si(r,t)):e instanceof oe&&se(t,e)?!1:e instanceof Ve?(e instanceof oe&&t.push(e),Oe(e.definition,r=>Si(r,t))):!1}function TE(e){return e instanceof fe}function He(e){if(e instanceof oe)return"SUBRULE";if(e instanceof re)return"OPTION";if(e instanceof fe)return"OR";if(e instanceof Ae)return"AT_LEAST_ONE";if(e instanceof ke)return"AT_LEAST_ONE_SEP";if(e instanceof he)return"MANY_SEP";if(e instanceof B)return"MANY";if(e instanceof F)return"CONSUME";throw Error("non exhaustive match")}var Ci=class{walk(e,t=[]){S(e.definition,(r,n)=>{let i=te(e.definition,n+1);if(r instanceof oe)this.walkProdRef(r,i,t);else if(r instanceof F)this.walkTerminal(r,i,t);else if(r instanceof de)this.walkFlat(r,i,t);else if(r instanceof re)this.walkOption(r,i,t);else if(r instanceof Ae)this.walkAtLeastOne(r,i,t);else if(r instanceof ke)this.walkAtLeastOneSep(r,i,t);else if(r instanceof he)this.walkManySep(r,i,t);else if(r instanceof B)this.walkMany(r,i,t);else if(r instanceof fe)this.walkOr(r,i,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){let n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){let n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){let n=[new re({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){let n=oc(e,t,r);this.walk(e,n)}walkMany(e,t,r){let n=[new re({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){let n=oc(e,t,r);this.walk(e,n)}walkOr(e,t,r){let n=t.concat(r);S(e.definition,i=>{let a=new de({definition:[i]});this.walk(a,n)})}};function oc(e,t,r){return[new re({definition:[new F({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}function Sn(e){if(e instanceof oe)return Sn(e.referencedRule);if(e instanceof F)return $E(e);if(yE(e))return vE(e);if(TE(e))return RE(e);throw Error("non exhaustive match")}function vE(e){let t=[],r=e.definition,n=0,i=r.length>n,a,s=!0;for(;i&&s;)a=r[n],s=Si(a),t=t.concat(Sn(a)),n+=1,i=r.length>n;return vs(t)}function RE(e){return vs(_e(k(e.definition,t=>Sn(t))))}function $E(e){return[e.terminalType]}const lc="_~IN~_";var EE=class extends Ci{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){let n=kE(e.referencedRule,e.idx)+this.topProd.name,i=Sn(new de({definition:t.concat(r)}));this.follows[n]=i}};function AE(e){let t={};return S(e,r=>{$e(t,new EE(r).startWalking())}),t}function kE(e,t){return e.name+t+lc}var Ii={},xE=new Rl;function Ni(e){let t=e.toString();if(Ii.hasOwnProperty(t))return Ii[t];{let r=xE.pattern(t);return Ii[t]=r,r}}function SE(){Ii={}}var uc="Complement Sets are not supported for first char optimization";const bi=`Unable to use "first char" lexer optimizations: +`;function CE(e,t=!1){try{let r=Ni(e);return $s(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===uc)t&&ic(`${bi} Unable to optimize: < ${e.toString()} > + Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Rs(`${bi} + Failed parsing: < ${e.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function $s(e,t,r){switch(e.type){case"Disjunction":for(let i=0;i{if(typeof l=="number")wi(l,t,r);else{let u=l;if(r===!0)for(let c=u.from;c<=u.to;c++)wi(c,t,r);else{for(let c=u.from;c<=u.to&&c<256;c++)wi(c,t,r);if(u.to>=256){let c=u.from>=256?u.from:256,d=u.to,h=vt(c),f=vt(d);for(let p=h;p<=f;p++)t[p]=p}}}});break;case"Group":$s(s.value,t,r);break;default:throw Error("Non Exhaustive Match")}let o=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&Es(s)===!1||s.type!=="Group"&&o===!1)break}break;default:throw Error("non exhaustive match!")}return X(t)}function wi(e,t,r){let n=vt(e);t[n]=n,r===!0&&IE(e,t)}function IE(e,t){let r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){let i=vt(n.charCodeAt(0));t[i]=i}else{let i=r.toLowerCase();if(i!==r){let a=vt(i.charCodeAt(0));t[a]=a}}}function cc(e,t){return Lr(e.value,r=>{if(typeof r=="number")return se(t,r);{let n=r;return Lr(t,i=>n.from<=i&&i<=n.to)!==void 0}})}function Es(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?O(e.value)?Oe(e.value,Es):Es(e.value):!1}var NE=class extends ri{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return}super.visitChildren(e)}}visitCharacter(e){se(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?cc(e,this.targetCharCodes)===void 0&&(this.found=!0):cc(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function As(e,t){if(t instanceof RegExp){let r=Ni(t),n=new NE(e);return n.visit(r),n.found}else return Lr(t,r=>se(e,r.charCodeAt(0)))!==void 0}var Lt="PATTERN";const ks="defaultMode";let dc=typeof RegExp("(?:)").sticky=="boolean";function bE(e,t){t=Ts(t,{useSticky:dc,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:(R,g)=>g()});let r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{ZE()});let n;r("Reject Lexer.NA",()=>{n=ki(e,R=>R[Lt]===le.NA)});let i=!1,a;r("Transform Patterns",()=>{i=!1,a=k(n,R=>{let g=R[Lt];if(Ze(g)){let _=g.source;return _.length===1&&_!=="^"&&_!=="$"&&_!=="."&&!g.ignoreCase?_:_.length===2&&_[0]==="\\"&&!se(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],_[1])?_[1]:t.useSticky?fc(g):hc(g)}else{if(Qe(g))return i=!0,{exec:g};if(typeof g=="object")return i=!0,g;if(typeof g=="string"){if(g.length===1)return g;{let _=g.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),me=new RegExp(_);return t.useSticky?fc(me):hc(me)}}else throw Error("non exhaustive match")}})});let s,o,l,u,c;r("misc mapping",()=>{s=k(n,R=>R.tokenTypeIdx),o=k(n,R=>{let g=R.GROUP;if(g!==le.SKIPPED){if(ce(g))return g;if(et(g))return!1;throw Error("non exhaustive match")}}),l=k(n,R=>{let g=R.LONGER_ALT;if(g)return O(g)?k(g,_=>tc(n,_)):[tc(n,g)]}),u=k(n,R=>R.PUSH_MODE),c=k(n,R=>x(R,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{let R=gc(t.lineTerminatorCharacters);d=k(n,g=>!1),t.positionTracking!=="onlyOffset"&&(d=k(n,g=>x(g,"LINE_BREAKS")?!!g.LINE_BREAKS:mc(g,R)===!1&&As(R,g.PATTERN)))});let h,f,p,m;r("Misc Mapping #2",()=>{h=k(n,pc),f=k(a,XE),p=Ee(n,(R,g)=>{let _=g.GROUP;return ce(_)&&_!==le.SKIPPED&&(R[_]=[]),R},{}),m=k(a,(R,g)=>({pattern:a[g],longerAlt:l[g],canLineTerminator:d[g],isCustom:h[g],short:f[g],group:o[g],push:u[g],pop:c[g],tokenTypeIdx:s[g],tokenType:n[g]}))});let v=!0,T=[];return t.safeMode||r("First Char Optimization",()=>{T=Ee(n,(R,g,_)=>{if(typeof g.PATTERN=="string")xs(R,vt(g.PATTERN.charCodeAt(0)),m[_]);else if(O(g.START_CHARS_HINT)){let me;S(g.START_CHARS_HINT,J=>{let Ue=vt(typeof J=="string"?J.charCodeAt(0):J);me!==Ue&&(me=Ue,xs(R,Ue,m[_]))})}else if(Ze(g.PATTERN))if(g.PATTERN.unicode)v=!1,t.ensureOptimizations&&Rs(`${bi} Unable to analyze < ${g.PATTERN.toString()} > pattern. + The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let me=CE(g.PATTERN,t.ensureOptimizations);M(me)&&(v=!1),S(me,J=>{xs(R,J,m[_])})}else t.ensureOptimizations&&Rs(`${bi} TokenType: <${g.name}> is using a custom token pattern without providing parameter. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),v=!1;return R},[])}),{emptyGroups:p,patternIdxToConfig:m,charCodeToPatternIdxToConfig:T,hasCustom:i,canBeOptimized:v}}function wE(e,t){let r=[],n=OE(e);r=r.concat(n.errors);let i=LE(n.valid),a=i.valid;return r=r.concat(i.errors),r=r.concat(_E(a)),r=r.concat(BE(a)),r=r.concat(KE(a,t)),r=r.concat(VE(a)),r}function _E(e){let t=[],r=Ie(e,n=>Ze(n[Lt]));return t=t.concat(ME(r)),t=t.concat(FE(r)),t=t.concat(GE(r)),t=t.concat(jE(r)),t=t.concat(DE(r)),t}function OE(e){let t=Ie(e,r=>!x(r,Lt));return{errors:k(t,r=>({message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:V.MISSING_PATTERN,tokenTypes:[r]})),valid:Ai(e,t)}}function LE(e){let t=Ie(e,r=>{let n=r[Lt];return!Ze(n)&&!Qe(n)&&!x(n,"exec")&&!ce(n)});return{errors:k(t,r=>({message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:V.INVALID_PATTERN,tokenTypes:[r]})),valid:Ai(e,t)}}var PE=/[^\\][$]/;function ME(e){class t extends ri{constructor(){super(...arguments),this.found=!1}visitEndAnchor(n){this.found=!0}}return k(Ie(e,r=>{let n=r.PATTERN;try{let i=Ni(n),a=new t;return a.visit(i),a.found}catch{return PE.test(n.source)}}),r=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:V.EOI_ANCHOR_FOUND,tokenTypes:[r]}))}function DE(e){return k(Ie(e,t=>t.PATTERN.test("")),t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' must not match an empty string",type:V.EMPTY_MATCH_PATTERN,tokenTypes:[t]}))}var UE=/[^\\[][\^]|^\^/;function FE(e){class t extends ri{constructor(){super(...arguments),this.found=!1}visitStartAnchor(n){this.found=!0}}return k(Ie(e,r=>{let n=r.PATTERN;try{let i=Ni(n),a=new t;return a.visit(i),a.found}catch{return UE.test(n.source)}}),r=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:V.SOI_ANCHOR_FOUND,tokenTypes:[r]}))}function GE(e){return k(Ie(e,t=>{let r=t[Lt];return r instanceof RegExp&&(r.multiline||r.global)}),t=>({message:"Token Type: ->"+t.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:V.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[t]}))}function jE(e){let t=[],r=k(e,n=>Ee(e,(i,a)=>(n.PATTERN.source===a.PATTERN.source&&!se(t,a)&&a.PATTERN!==le.NA&&(t.push(a),i.push(a)),i),[]));return r=kn(r),k(Ie(r,n=>n.length>1),n=>{let i=k(n,a=>a.name);return{message:`The same RegExp pattern ->${Le(n).PATTERN}<-has been used in all of the following Token Types: ${i.join(", ")} <-`,type:V.DUPLICATE_PATTERNS_FOUND,tokenTypes:n}})}function BE(e){return k(Ie(e,t=>{if(!x(t,"GROUP"))return!1;let r=t.GROUP;return r!==le.SKIPPED&&r!==le.NA&&!ce(r)}),t=>({message:"Token Type: ->"+t.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:V.INVALID_GROUP_TYPE_FOUND,tokenTypes:[t]}))}function KE(e,t){return k(Ie(e,r=>r.PUSH_MODE!==void 0&&!se(t,r.PUSH_MODE)),r=>({message:`Token Type: ->${r.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${r.PUSH_MODE}<-which does not exist`,type:V.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}))}function VE(e){let t=[],r=Ee(e,(n,i,a)=>{let s=i.PATTERN;return s===le.NA||(ce(s)?n.push({str:s,idx:a,tokenType:i}):Ze(s)&&WE(s)&&n.push({str:s.source,idx:a,tokenType:i})),n},[]);return S(e,(n,i)=>{S(r,({str:a,idx:s,tokenType:o})=>{if(i${o.name}<- can never be matched. +Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:l,type:V.UNREACHABLE_PATTERN,tokenTypes:[n,o]})}})}),t}function HE(e,t){if(Ze(t)){let r=t.exec(e);return r!==null&&r.index===0}else{if(Qe(t))return t(e,0,[],{});if(x(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function WE(e){return Lr([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>e.source.indexOf(t)!==-1)===void 0}function hc(e){let t=e.ignoreCase?"i":"";return RegExp(`^(?:${e.source})`,t)}function fc(e){let t=e.ignoreCase?"iy":"y";return RegExp(`${e.source}`,t)}function zE(e,t,r){let n=[];return x(e,"defaultMode")||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+ks+`> property in its definition +`,type:V.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),x(e,"modes")||n.push({message:`A MultiMode Lexer cannot be initialized without a property in its definition +`,type:V.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),x(e,"modes")&&x(e,"defaultMode")&&!x(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${ks}: <${e.defaultMode}>which does not exist +`,type:V.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),x(e,"modes")&&S(e.modes,(i,a)=>{S(i,(s,o)=>{et(s)?n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${a}> at index: <${o}> +`,type:V.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):x(s,"LONGER_ALT")&&S(O(s.LONGER_ALT)?s.LONGER_ALT:[s.LONGER_ALT],l=>{!et(l)&&!se(i,l)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${l.name}> on token <${s.name}> outside of mode <${a}> +`,type:V.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),n}function YE(e,t,r){let n=[],i=!1,a=ki(kn(_e(X(e.modes))),o=>o[Lt]===le.NA),s=gc(r);return t&&S(a,o=>{let l=mc(o,s);if(l!==!1){let u={message:QE(o,l),type:l.issue,tokenType:o};n.push(u)}else x(o,"LINE_BREAKS")?o.LINE_BREAKS===!0&&(i=!0):As(s,o.PATTERN)&&(i=!0)}),t&&!i&&n.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:V.NO_LINE_BREAKS_FLAGS}),n}function qE(e){let t={};return S(Re(e),r=>{let n=e[r];if(O(n))t[r]=[];else throw Error("non exhaustive match")}),t}function pc(e){let t=e.PATTERN;if(Ze(t))return!1;if(Qe(t)||x(t,"exec"))return!0;if(ce(t))return!1;throw Error("non exhaustive match")}function XE(e){return ce(e)&&e.length===1?e.charCodeAt(0):!1}const JE={test:function(e){let t=e.length;for(let r=this.lastIndex;r Token Type + Root cause: ${t.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===V.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + The problem is in the <${e.name}> Token Type + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function gc(e){return k(e,t=>ce(t)?t.charCodeAt(0):t)}function xs(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}var _i=[];function vt(e){return e<256?e:_i[e]}function ZE(){if(M(_i)){_i=Array(65536);for(let e=0;e<65536;e++)_i[e]=e>255?255+~~(e/255):e}}function Cn(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}function Oi(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let yc=1;const Tc={};function In(e){let t=eA(e);tA(t),nA(t),rA(t),S(t,r=>{r.isParent=r.categoryMatches.length>0})}function eA(e){let t=ee(e),r=e,n=!0;for(;n;){r=kn(_e(k(r,a=>a.CATEGORIES)));let i=Ai(r,t);t=t.concat(i),M(i)?n=!1:r=i}return t}function tA(e){S(e,t=>{Rc(t)||(Tc[yc]=t,t.tokenTypeIdx=yc++),$c(t)&&!O(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),$c(t)||(t.CATEGORIES=[]),iA(t)||(t.categoryMatches=[]),aA(t)||(t.categoryMatchesMap={})})}function rA(e){S(e,t=>{t.categoryMatches=[],S(t.categoryMatchesMap,(r,n)=>{t.categoryMatches.push(Tc[n].tokenTypeIdx)})})}function nA(e){S(e,t=>{vc([],t)})}function vc(e,t){S(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),S(t.CATEGORIES,r=>{let n=e.concat(t);se(n,r)||vc(n,r)})}function Rc(e){return x(e,"tokenTypeIdx")}function $c(e){return x(e,"CATEGORIES")}function iA(e){return x(e,"categoryMatches")}function aA(e){return x(e,"categoryMatchesMap")}function sA(e){return x(e,"tokenTypeIdx")}const Ss={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,i){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}};var V;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(V||(V={}));var Nn={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Ss,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Nn);var le=class{constructor(e,t=Nn){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(n,i)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let a=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${n}>`);let{time:s,value:o}=ac(i),l=s>10?console.warn:console.log;return this.traceInitIndent time: ${s}ms`),this.traceInitIndent--,o}else return i()},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=$e({},Nn,t);let r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let n,i=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Nn.lineTerminatorsPattern)this.config.lineTerminatorsPattern=JE;else if(this.config.lineTerminatorCharacters===Nn.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),O(e)?n={modes:{defaultMode:ee(e)},defaultMode:ks}:(i=!1,n=ee(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(zE(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(YE(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},S(n.modes,(s,o)=>{n.modes[o]=ki(s,l=>et(l))});let a=Re(n.modes);if(S(n.modes,(s,o)=>{this.TRACE_INIT(`Mode: <${o}> processing`,()=>{if(this.modes.push(o),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(wE(s,a))}),M(this.lexerDefinitionErrors)){In(s);let l;this.TRACE_INIT("analyzeTokenTypes",()=>{l=bE(s,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[o]=l.patternIdxToConfig,this.charCodeToPatternIdxToConfig[o]=l.charCodeToPatternIdxToConfig,this.emptyGroups=$e({},this.emptyGroups,l.emptyGroups),this.hasCustom=l.hasCustom||this.hasCustom,this.canModeBeOptimized[o]=l.canBeOptimized}})}),this.defaultMode=n.defaultMode,!M(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let s=k(this.lexerDefinitionErrors,o=>o.message).join(`----------------------- +`);throw Error(`Errors detected in definition of Lexer: +`+s)}S(this.lexerDefinitionWarning,s=>{ic(s.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(dc?(this.chopInput=Sr,this.match=this.matchWithTest):(this.updateLastIndex=q,this.match=this.matchWithExec),i&&(this.handleModes=q),this.trackStartLines===!1&&(this.computeNewColumn=Sr),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=q),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let s=Ee(this.canModeBeOptimized,(o,l,u)=>(l===!1&&o.push(u),o),[]);if(t.ensureOptimizations&&!M(s))throw Error(`Lexer Modes: < ${s.join(", ")} > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{SE()}),this.TRACE_INIT("toFastProperties",()=>{sc(this)})})}tokenize(e,t=this.defaultMode){if(!M(this.lexerDefinitionErrors)){let r=k(this.lexerDefinitionErrors,n=>n.message).join(`----------------------- +`);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+r)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,n,i,a,s,o,l,u,c,d,h,f,p,m,v,T=e,R=T.length,g=0,_=0,me=this.hasCustom?0:Math.floor(e.length/10),J=Array(me),Ue=[],E=this.trackStartLines?1:void 0,y=this.trackStartLines?1:void 0,$=qE(this.emptyGroups),A=this.trackStartLines,L=this.config.lineTerminatorsPattern,b=0,C=[],ne=[],Z=[],j=[];Object.freeze(j);let ut;function Oo(){return C}function Lo(ie){let xe=vt(ie),Ut=ne[xe];return Ut===void 0?j:Ut}let Fh=ie=>{if(Z.length===1&&ie.tokenType.PUSH_MODE===void 0){let xe=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(ie);Ue.push({offset:ie.startOffset,line:ie.startLine,column:ie.startColumn,length:ie.image.length,message:xe})}else{Z.pop();let xe=Or(Z);C=this.patternIdxToConfig[xe],ne=this.charCodeToPatternIdxToConfig[xe],b=C.length;let Ut=this.canModeBeOptimized[xe]&&this.config.safeMode===!1;ut=ne&&Ut?Lo:Oo}};function Po(ie){Z.push(ie),ne=this.charCodeToPatternIdxToConfig[ie],C=this.patternIdxToConfig[ie],b=C.length,b=C.length;let xe=this.canModeBeOptimized[ie]&&this.config.safeMode===!1;ut=ne&&xe?Lo:Oo}Po.call(this,t);let be,Mo=this.config.recoveryEnabled;for(;go.length){o=a,l=u,be=ze;break}}}break}}if(o!==null){if(c=o.length,d=be.group,d!==void 0&&(h=be.tokenTypeIdx,f=this.createTokenInstance(o,g,h,be.tokenType,E,y,c),this.handlePayload(f,l),d===!1?_=this.addToken(J,_,f):$[d].push(f)),e=this.chopInput(e,c),g+=c,y=this.computeNewColumn(y,c),A===!0&&be.canLineTerminator===!0){let ge=0,We,ct;L.lastIndex=0;do We=L.test(o),We===!0&&(ct=L.lastIndex-1,ge++);while(We===!0);ge!==0&&(E+=ge,y=c-ct,this.updateTokenEndLineColumnLocation(f,d,ct,ge,E,y,c))}this.handleModes(be,Fh,Po,f)}else{let ge=g,We=E,ct=y,ze=Mo===!1;for(;ze===!1&&g ${Dr(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:i}){let a=` +but found: '`+Le(t).image+"'";return n?"Expecting: "+n+a:`Expecting: one of these possible Token sequences: +${k(k(Ee(e,(s,o)=>s.concat(o),[]),s=>`[${k(s,o=>Dr(o)).join(", ")}]`),(s,o)=>` ${o+1}. ${s}`).join(` +`)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){let i=` +but found: '`+Le(t).image+"'";return r?"Expecting: "+r+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: + <${k(e,a=>`[${k(a,s=>Dr(s)).join(",")}]`).join(" ,")}>`+i}};Object.freeze(Ur);const uA={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+"<-"}},Pt={buildDuplicateFoundError(e,t){function r(u){return u instanceof F?u.terminalType.name:u instanceof oe?u.nonTerminalName:""}let n=e.name,i=Le(t),a=i.idx,s=He(i),o=r(i),l=`->${s}${a>0?a:""}<- ${o?`with argument: ->${o}<-`:""} + appears more than once (${t.length} times) in the top level rule: ->${n}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return l=l.replace(/[ \t]+/g," "),l=l.replace(/\s\s+/g,` +`),l},buildNamespaceConflictError(e){return`Namespace conflict found in grammar. +The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. +To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=k(e.prefixPath,n=>Dr(n)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix +in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`},buildAlternationAmbiguityError(e){let t=k(e.prefixPath,i=>Dr(i)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return n+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n},buildEmptyRepetitionError(e){let t=He(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. +This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. +Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: + inside <${e.topLevelRule.name}> Rule. + has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar. +rule: <${t}> can be invoked from itself (directly or indirectly) +without consuming any Tokens. The grammar path that causes this is: + ${`${t} --> ${k(e.leftRecursionPath,r=>r.name).concat([t]).join(" --> ")}`} + To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof Pr?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function cA(e,t){let r=new dA(e,t);return r.resolveRefs(),r.errors}var dA=class extends Mr{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){S(X(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:pe.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},hA=class extends Ci{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=ee(this.path.ruleStack).reverse(),this.occurrenceStack=ee(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){M(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},fA=class extends hA{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found&&(this.possibleTokTypes=Sn(new de({definition:t.concat(r)})),this.found=!0)}},Pi=class extends Ci{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},pA=class extends Pi{walkMany(e,t,r){if(e.idx===this.occurrence){let n=Le(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof F&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkMany(e,t,r)}},_c=class extends Pi{walkManySep(e,t,r){if(e.idx===this.occurrence){let n=Le(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof F&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkManySep(e,t,r)}},mA=class extends Pi{walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){let n=Le(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof F&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOne(e,t,r)}},Oc=class extends Pi{walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){let n=Le(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof F&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOneSep(e,t,r)}};function Cs(e,t,r=[]){r=ee(r);let n=[],i=0;function a(o){return o.concat(te(e,i+1))}function s(o){let l=Cs(a(o),t,r);return n.concat(l)}for(;r.length{M(l.definition)===!1&&(n=s(l.definition))}),n;if(o instanceof F)r.push(o.terminalType);else throw Error("non exhaustive match")}}i++}return n.push({partialPath:r,suffixDef:te(e,i)}),n}function Lc(e,t,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",o=!1,l=t.length,u=l-n-1,c=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!M(d);){let h=d.pop();if(h===s){o&&Or(d).idx<=u&&d.pop();continue}let f=h.def,p=h.idx,m=h.ruleStack,v=h.occurrenceStack;if(M(f))continue;let T=f[0];if(T===i){let R={idx:p,def:te(f),ruleStack:xn(m),occurrenceStack:xn(v)};d.push(R)}else if(T instanceof F)if(p=0;R--){let g={idx:p,def:T.definition[R].definition.concat(te(f)),ruleStack:m,occurrenceStack:v};d.push(g),d.push(s)}else if(T instanceof de)d.push({idx:p,def:T.definition.concat(te(f)),ruleStack:m,occurrenceStack:v});else if(T instanceof Pr)d.push(gA(T,p,m,v));else throw Error("non exhaustive match")}return c}function gA(e,t,r,n){let i=ee(r);i.push(e.name);let a=ee(n);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}var K;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(K||(K={}));function Is(e){if(e instanceof re||e==="Option")return K.OPTION;if(e instanceof B||e==="Repetition")return K.REPETITION;if(e instanceof Ae||e==="RepetitionMandatory")return K.REPETITION_MANDATORY;if(e instanceof ke||e==="RepetitionMandatoryWithSeparator")return K.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof he||e==="RepetitionWithSeparator")return K.REPETITION_WITH_SEPARATOR;if(e instanceof fe||e==="Alternation")return K.ALTERNATION;throw Error("non exhaustive match")}function Pc(e){let{occurrence:t,rule:r,prodType:n,maxLookahead:i}=e,a=Is(n);return a===K.ALTERNATION?Mi(t,r,i):Di(t,r,a,i)}function yA(e,t,r,n,i,a){let s=Mi(e,t,r);return a(s,n,Fc(s)?Oi:Cn,i)}function TA(e,t,r,n,i,a){let s=Di(e,t,i,r),o=Fc(s)?Oi:Cn;return a(s[0],o,n)}function vA(e,t,r,n){let i=e.length,a=Oe(e,s=>Oe(s,o=>o.length===1));if(t)return function(s){let o=k(s,l=>l.GATE);for(let l=0;l_e(o)),(o,l,u)=>(S(l,c=>{x(o,c.tokenTypeIdx)||(o[c.tokenTypeIdx]=u),S(c.categoryMatches,d=>{x(o,d)||(o[d]=u)})}),o),{});return function(){return s[this.LA(1).tokenTypeIdx]}}else return function(){for(let s=0;sa.length===1),i=e.length;if(n&&!r){let a=_e(e);if(a.length===1&&M(a[0].categoryMatches)){let s=a[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===s}}else{let s=Ee(a,(o,l,u)=>(o[l.tokenTypeIdx]=!0,S(l.categoryMatches,c=>{o[c]=!0}),o),[]);return function(){return s[this.LA(1).tokenTypeIdx]===!0}}}else return function(){e:for(let a=0;aCs([s],1)),n=Dc(r.length),i=k(r,s=>{let o={};return S(s,l=>{S(Ns(l.partialPath),u=>{o[u]=!0})}),o}),a=r;for(let s=1;s<=t;s++){let o=a;a=Dc(o.length);for(let l=0;l{S(Ns(m.partialPath),v=>{i[l][v]=!0})})}}}}return n}function Mi(e,t,r,n){let i=new Mc(e,K.ALTERNATION,n);return t.accept(i),Uc(i.result,r)}function Di(e,t,r,n){let i=new Mc(e,r);t.accept(i);let a=i.result,s=new $A(t,e,r).startWalking();return Uc([new de({definition:a}),new de({definition:s})],n)}function bs(e,t){e:for(let r=0;r{let i=t[n];return r===i||i.categoryMatchesMap[r.tokenTypeIdx]})}function Fc(e){return Oe(e,t=>Oe(t,r=>Oe(r,n=>M(n.categoryMatches))))}function kA(e){return k(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),t=>Object.assign({type:pe.CUSTOM_LOOKAHEAD_VALIDATION},t))}function xA(e,t,r,n){let i=Ne(e,l=>SA(l,r)),a=UA(e,t,r),s=Ne(e,l=>LA(l,r)),o=Ne(e,l=>NA(l,e,n,r));return i.concat(a,s,o)}function SA(e,t){let r=new IA;e.accept(r);let n=r.allProductions;return k(X(Pe(S$(n,CA),i=>i.length>1)),i=>{let a=Le(i),s=t.buildDuplicateFoundError(e,i),o=He(a),l={message:s,type:pe.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:o,occurrence:a.idx},u=Gc(a);return u&&(l.parameter=u),l})}function CA(e){return`${He(e)}_#_${e.idx}_#_${Gc(e)}`}function Gc(e){return e instanceof F?e.terminalType.name:e instanceof oe?e.nonTerminalName:""}var IA=class extends Mr{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function NA(e,t,r,n){let i=[];if(Ee(t,(a,s)=>s.name===e.name?a+1:a,0)>1){let a=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});i.push({message:a,type:pe.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function bA(e,t,r){let n=[],i;return se(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:i,type:pe.INVALID_RULE_OVERRIDE,ruleName:e})),n}function jc(e,t,r,n=[]){let i=[],a=Ui(t.definition);if(M(a))return[];{let s=e.name;se(a,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:pe.LEFT_RECURSION,ruleName:s});let o=Ne(Ai(a,n.concat([e])),l=>{let u=ee(n);return u.push(l),jc(e,l,r,u)});return i.concat(o)}}function Ui(e){let t=[];if(M(e))return t;let r=Le(e);if(r instanceof oe)t.push(r.referencedRule);else if(r instanceof de||r instanceof re||r instanceof Ae||r instanceof ke||r instanceof he||r instanceof B)t=t.concat(Ui(r.definition));else if(r instanceof fe)t=_e(k(r.definition,a=>Ui(a.definition)));else if(!(r instanceof F))throw Error("non exhaustive match");let n=Si(r),i=e.length>1;if(n&&i){let a=te(e);return t.concat(Ui(a))}else return t}var ws=class extends Mr{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function wA(e,t){let r=new ws;e.accept(r);let n=r.alternations;return Ne(n,i=>Ne(xn(i.definition),(a,s)=>M(Lc([a],[],Cn,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:i,emptyChoiceIdx:s}),type:pe.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:i.idx,alternative:s+1}]:[]))}function _A(e,t,r){let n=new ws;e.accept(n);let i=n.alternations;return i=ki(i,a=>a.ignoreAmbiguities===!0),Ne(i,a=>{let s=a.idx,o=Mi(s,e,a.maxLookahead||t,a),l=MA(o,a,e,r),u=DA(o,a,e,r);return l.concat(u)})}var OA=class extends Mr{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function LA(e,t){let r=new ws;e.accept(r);let n=r.alternations;return Ne(n,i=>i.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:i}),type:pe.TOO_MANY_ALTS,ruleName:e.name,occurrence:i.idx}]:[])}function PA(e,t,r){let n=[];return S(e,i=>{let a=new OA;i.accept(a);let s=a.allProductions;S(s,o=>{let l=Is(o),u=o.maxLookahead||t,c=o.idx,d=Di(c,i,l,u)[0];if(M(_e(d))){let h=r.buildEmptyRepetitionError({topLevelRule:i,repetition:o});n.push({message:h,type:pe.NO_NON_EMPTY_LOOKAHEAD,ruleName:i.name})}})}),n}function MA(e,t,r,n){let i=[];return k(Ee(e,(a,s,o)=>(t.definition[o].ignoreAmbiguities===!0||S(s,l=>{let u=[o];S(e,(c,d)=>{o!==d&&bs(c,l)&&t.definition[d].ignoreAmbiguities!==!0&&u.push(d)}),u.length>1&&!bs(i,l)&&(i.push(l),a.push({alts:u,path:l}))}),a),[]),a=>{let s=k(a.alts,o=>o+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:s,prefixPath:a.path}),type:pe.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:a.alts}})}function DA(e,t,r,n){let i=Ee(e,(a,s,o)=>{let l=k(s,u=>({idx:o,path:u}));return a.concat(l)},[]);return kn(Ne(i,a=>{if(t.definition[a.idx].ignoreAmbiguities===!0)return[];let s=a.idx,o=a.path;return k(Ie(i,l=>t.definition[l.idx].ignoreAmbiguities!==!0&&l.idx{let u=[l.idx+1,s+1],c=t.idx===0?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:u,prefixPath:l.path}),type:pe.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:c,alternatives:u}})}))}function UA(e,t,r){let n=[],i=k(t,a=>a.name);return S(e,a=>{let s=a.name;if(se(i,s)){let o=r.buildNamespaceConflictError(a);n.push({message:o,type:pe.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),n}function FA(e){let t=Ts(e,{errMsgProvider:uA}),r={};return S(e.rules,n=>{r[n.name]=n}),cA(r,t.errMsgProvider)}function GA(e){return e=Ts(e,{errMsgProvider:Pt}),xA(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}var Bc="MismatchedTokenException",Kc="NoViableAltException",Vc="EarlyExitException",Hc="NotAllInputParsedException",Wc=[Bc,Kc,Vc,Hc];Object.freeze(Wc);function Fi(e){return se(Wc,e.name)}var Gi=class extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},zc=class extends Gi{constructor(e,t,r){super(e,t),this.previousToken=r,this.name=Bc}},jA=class extends Gi{constructor(e,t,r){super(e,t),this.previousToken=r,this.name=Kc}},BA=class extends Gi{constructor(e,t){super(e,t),this.name=Hc}},KA=class extends Gi{constructor(e,t,r){super(e,t),this.previousToken=r,this.name=Vc}};const _s={};var VA=class extends Error{constructor(e){super(e),this.name="InRuleRecoveryException"}},HA=class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=x(e,"recoveryEnabled")?e.recoveryEnabled:tt.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=WA)}getTokenToInsert(e){let t=Li(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,n){let i=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],o=!1,l=this.LA(1),u=this.LA(1),c=()=>{let d=this.LA(0),h=new zc(this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:l,previous:d,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));h.resyncedTokens=xn(s),this.SAVE_ERROR(h)};for(;!o;)if(this.tokenMatcher(u,n)){c();return}else if(r.call(this)){c(),e.apply(this,t);return}else this.tokenMatcher(u,i)?o=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,s));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(r===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new VA("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||M(t))return!1;let r=this.LA(1);return Lr(t,n=>this.tokenMatcher(r,n))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return se(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),r=2;for(;;){let n=Lr(e,i=>wc(t,i));if(n!==void 0)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return _s;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return k(e,(r,n)=>n===0?_s:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){return _e(k(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===_s)return[Rt];let t=e.ruleName+e.idxInCallingRule+lc+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,Rt)||t.push(e),t}reSyncTo(e){let t=[],r=this.LA(1);for(;this.tokenMatcher(r,e)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return xn(t)}attemptInRepetitionRecovery(e,t,r,n,i,a,s){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:ee(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return k(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function WA(e,t,r,n,i,a,s){let o=this.getKeyForAutomaticLookahead(n,i),l=this.firstAfterRepMap[o];if(l===void 0){let h=this.getCurrRuleFullName(),f=this.getGAstProductions()[h];l=new a(f,i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,c=l.occurrence,d=l.isEndOfRule;this.RULE_STACK.length===1&&d&&u===void 0&&(u=Rt,c=1),!(u===void 0||c===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,c,s)&&this.tryInRepetitionRecovery(e,t,r,u)}const Os=1024,Ls=1280,ji=1536;function Ps(e,t,r){return r|t|e}var Ms=class{constructor(e){this.maxLookahead=(e==null?void 0:e.maxLookahead)??tt.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(M(t)){let r=this.validateEmptyOrAlternatives(e.rules),n=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...r,...n,...i]}return t}validateNoLeftRecursion(e){return Ne(e,t=>jc(t,t,Pt))}validateEmptyOrAlternatives(e){return Ne(e,t=>wA(t,Pt))}validateAmbiguousAlternationAlternatives(e,t){return Ne(e,r=>_A(r,t,Pt))}validateSomeNonEmptyLookaheadPath(e,t){return PA(e,t,Pt)}buildLookaheadForAlternation(e){return yA(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,vA)}buildLookaheadForOptional(e){return TA(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Is(e.prodType),RA)}},zA=class{initLooksAhead(e){this.dynamicTokensEnabled=x(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:tt.dynamicTokensEnabled,this.maxLookahead=x(e,"maxLookahead")?e.maxLookahead:tt.maxLookahead,this.lookaheadStrategy=x(e,"lookaheadStrategy")?e.lookaheadStrategy:new Ms({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){S(e,t=>{this.TRACE_INIT(`${t.name} Rule Lookahead`,()=>{let{alternation:r,repetition:n,option:i,repetitionMandatory:a,repetitionMandatoryWithSeparator:s,repetitionWithSeparator:o}=YA(t);S(r,l=>{let u=l.idx===0?"":l.idx;this.TRACE_INIT(`${He(l)}${u}`,()=>{let c=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:l.idx,rule:t,maxLookahead:l.maxLookahead||this.maxLookahead,hasPredicates:l.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),d=Ps(this.fullRuleNameToShort[t.name],256,l.idx);this.setLaFuncCache(d,c)})}),S(n,l=>{this.computeLookaheadFunc(t,l.idx,768,"Repetition",l.maxLookahead,He(l))}),S(i,l=>{this.computeLookaheadFunc(t,l.idx,512,"Option",l.maxLookahead,He(l))}),S(a,l=>{this.computeLookaheadFunc(t,l.idx,Os,"RepetitionMandatory",l.maxLookahead,He(l))}),S(s,l=>{this.computeLookaheadFunc(t,l.idx,ji,"RepetitionMandatoryWithSeparator",l.maxLookahead,He(l))}),S(o,l=>{this.computeLookaheadFunc(t,l.idx,Ls,"RepetitionWithSeparator",l.maxLookahead,He(l))})})})}computeLookaheadFunc(e,t,r,n,i,a){this.TRACE_INIT(`${a}${t===0?"":t}`,()=>{let s=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),o=Ps(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(o,s)})}getKeyForAutomaticLookahead(e,t){return Ps(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},Bi=new class extends Mr{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function YA(e){Bi.reset(),e.accept(Bi);let t=Bi.dslMethods;return Bi.reset(),t}function Yc(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffseta.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${i.join(` + +`).replace(/\n/g,` + `)}`)}}},r.prototype.constructor=r,r._RULE_NAMES=t,r}function ek(e,t,r){let n=function(){};Xc(n,e+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return S(t,a=>{i[a]=QA}),n.prototype=i,n.prototype.constructor=n,n}var Jc;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Jc||(Jc={}));function tk(e,t){return rk(e,t)}function rk(e,t){return kn(k(Ie(t,r=>Qe(e[r])===!1),r=>({msg:`Missing visitor method: <${r}> on ${e.constructor.name} CST Visitor.`,type:Jc.MISSING_METHOD,methodName:r})))}var nk=class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=x(e,"nodeLocationTracking")?e.nodeLocationTracking:tt.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=q,this.cstFinallyStateUpdate=q,this.cstPostTerminal=q,this.cstPostNonTerminal=q,this.cstPostRule=q;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=qc,this.setNodeLocationFromNode=qc,this.cstPostRule=q,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=q,this.setNodeLocationFromNode=q,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Yc,this.setNodeLocationFromNode=Yc,this.cstPostRule=q,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=q,this.setNodeLocationFromNode=q,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=q,this.setNodeLocationFromNode=q,this.cstPostRule=q,this.setInitialNodeLocation=q;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];qA(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];XA(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(et(this.baseCstVisitorConstructor)){let e=ZA(this.className,Re(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(et(this.baseCstVisitorWithDefaultsConstructor)){let e=ek(this.className,Re(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},ik=class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Hi}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?Hi:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},ak=class{ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=Wi){if(se(this.definedRulesNames,e)){let i={message:Pt.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:pe.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(i)}this.definedRulesNames.push(e);let n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=Wi){let n=bA(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);let i=this.defineRule(e,t,r);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let r=this.saveRecogState();try{return e.apply(this,t),!0}catch(n){if(Fi(n))return!1;throw n}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return gE(X(this.gastProductionsCache))}},sk=class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Oi,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},x(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(O(e)){if(M(e))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(O(e))this.tokensMap=Ee(e,(r,n)=>(r[n.name]=n,r),{});else if(x(e,"modes")&&Oe(_e(X(e.modes)),sA))this.tokensMap=Ee(vs(_e(X(e.modes))),(r,n)=>(r[n.name]=n,r),{});else if(Ce(e))this.tokensMap=ee(e);else throw Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Rt,this.tokenMatcher=Oe(x(e,"modes")?_e(X(e.modes)):X(e),r=>M(r.categoryMatches))?Oi:Cn,In(X(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=x(r,"resyncEnabled")?r.resyncEnabled:Wi.resyncEnabled,i=x(r,"recoveryValueFunc")?r.recoveryValueFunc:Wi.recoveryValueFunc,a=this.ruleShortNameIdx<<12;this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a;let s;return s=this.outputCst===!0?function(...o){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,o);let l=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(l),l}catch(l){return this.invokeRuleCatch(l,n,i)}finally{this.ruleFinallyStateUpdate()}}:function(...o){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,o)}catch(l){return this.invokeRuleCatch(l,n,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(s,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){let n=this.RULE_STACK.length===1,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(Fi(e)){let a=e;if(i){let s=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(s))if(a.resyncedTokens=this.reSyncTo(s),this.outputCst){let o=this.CST_STACK[this.CST_STACK.length-1];return o.recoveredNode=!0,o}else return r(e);else{if(this.outputCst){let o=this.CST_STACK[this.CST_STACK.length-1];o.recoveredNode=!0,a.partialCstResult=o}throw a}}else{if(n)return this.moveToTerminatedState(),r(e);throw a}}else throw e}optionInternal(e,t){let r=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),i;if(typeof e!="function"){i=e.DEF;let a=e.GATE;if(a!==void 0){let s=n;n=()=>a.call(this)&&s.call(this)}}else i=e;if(n.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let r=this.getKeyForAutomaticLookahead(Os,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),i;if(typeof t!="function"){i=t.DEF;let a=t.GATE;if(a!==void 0){let s=n;n=()=>a.call(this)&&s.call(this)}}else i=t;if(n.call(this)===!0){let a=this.doSingleRepetition(i);for(;n.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,K.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],n,Os,e,mA)}atLeastOneSepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(ji,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);let a=()=>this.tokenMatcher(this.LA(1),i);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,a,n,Oc],a,ji,e,Oc)}else throw this.raiseEarlyExitException(e,K.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let r=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),i;if(typeof t!="function"){i=t.DEF;let s=t.GATE;if(s!==void 0){let o=n;n=()=>s.call(this)&&o.call(this)}}else i=t;let a=!0;for(;n.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],n,768,e,pA,a)}manySepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(Ls,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);let a=()=>this.tokenMatcher(this.LA(1),i);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,a,n,_c],a,Ls,e,_c)}}repetitionSepSecondInternal(e,t,r,n,i){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,i],r,ji,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let r=this.getKeyForAutomaticLookahead(256,t),n=O(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,n);if(i!==void 0)return n[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new BA(t,e))}}subruleInternal(e,t,r){let n;try{let i=r===void 0?void 0:r.ARGS;return this.subruleIdx=t,n=e.apply(this,i),this.cstPostNonTerminal(n,r!==void 0&&r.LABEL!==void 0?r.LABEL:e.ruleName),n}catch(i){throw this.subruleInternalError(i,r,e.ruleName)}}subruleInternalError(e,t,r){throw Fi(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{let i=this.LA(1);this.tokenMatcher(i,e)===!0?(this.consumeToken(),n=i):this.consumeInternalError(e,i,r)}catch(i){n=this.consumeInternalRecovery(e,t,i)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n,i=this.LA(0);throw n=r!==void 0&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new zc(n,t,i))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){let n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(i){throw i.name==="InRuleRecoveryException"?r:i}}else throw r}saveRecogState(){let e=this.errors,t=ee(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),Rt)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},ok=class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=x(e,"errorMessageProvider")?e.errorMessageProvider:tt.errorMessageProvider}SAVE_ERROR(e){if(Fi(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:ee(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return ee(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){let n=this.getCurrRuleFullName(),i=this.getGAstProductions()[n],a=Di(e,i,t,this.maxLookahead)[0],s=[];for(let l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));let o=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:s,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new KA(o,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let r=this.getCurrRuleFullName(),n=this.getGAstProductions()[r],i=Mi(e,n,this.maxLookahead),a=[];for(let l=1;l<=this.maxLookahead;l++)a.push(this.LA(l));let s=this.LA(0),o=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:a,previous:s,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new jA(o,this.LA(1),s))}},lk=class{initContentAssist(){}computeContentAssist(e,t){let r=this.gastProductionsCache[e];if(et(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Lc([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=Le(e.ruleStack),r=this.getGAstProductions()[t];return new fA(r,e).startWalking()}},Ki={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Ki);var Qc=!0,Zc=2**8-1,ed=bn({name:"RECORDING_PHASE_TOKEN",pattern:le.NA});In([ed]);var td=Li(ed,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(td);var uk={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},ck=class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(r,n){return this.consumeInternalRecord(r,e,n)},this[`SUBRULE${t}`]=function(r,n){return this.subruleInternalRecord(r,e,n)},this[`OPTION${t}`]=function(r){return this.optionInternalRecord(r,e)},this[`OR${t}`]=function(r){return this.orInternalRecord(r,e)},this[`MANY${t}`]=function(r){this.manyInternalRecord(e,r)},this[`MANY_SEP${t}`]=function(r){this.manySepFirstInternalRecord(e,r)},this[`AT_LEAST_ONE${t}`]=function(r){this.atLeastOneInternalRecord(e,r)},this[`AT_LEAST_ONE_SEP${t}`]=function(r){this.atLeastOneSepFirstInternalRecord(e,r)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let t=0;t<10;t++){let r=t>0?t:"";delete e[`CONSUME${r}`],delete e[`SUBRULE${r}`],delete e[`OPTION${r}`],delete e[`OR${r}`],delete e[`MANY${r}`],delete e[`MANY_SEP${r}`],delete e[`AT_LEAST_ONE${r}`],delete e[`AT_LEAST_ONE_SEP${r}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return Hi}topLevelRuleRecord(e,t){try{let r=new Pr({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message+=` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(e,t){return wn.call(this,re,e,t)}atLeastOneInternalRecord(e,t){wn.call(this,Ae,t,e)}atLeastOneSepFirstInternalRecord(e,t){wn.call(this,ke,t,e,Qc)}manyInternalRecord(e,t){wn.call(this,B,t,e)}manySepFirstInternalRecord(e,t){wn.call(this,he,t,e,Qc)}orInternalRecord(e,t){return dk.call(this,e,t)}subruleInternalRecord(e,t,r){if(Vi(t),!e||x(e,"ruleName")===!1){let s=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let n=Or(this.recordingProdStack),i=e.ruleName,a=new oe({idx:t,nonTerminalName:i,label:r==null?void 0:r.LABEL,referencedRule:void 0});return n.definition.push(a),this.outputCst?uk:Ki}consumeInternalRecord(e,t,r){if(Vi(t),!Rc(e)){let a=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw a.KNOWN_RECORDER_ERROR=!0,a}let n=Or(this.recordingProdStack),i=new F({idx:t,terminalType:e,label:r==null?void 0:r.LABEL});return n.definition.push(i),td}};function wn(e,t,r,n=!1){Vi(r);let i=Or(this.recordingProdStack),a=Qe(t)?t:t.DEF,s=new e({definition:[],idx:r});return n&&(s.separator=t.SEP),x(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),Ki}function dk(e,t){Vi(t);let r=Or(this.recordingProdStack),n=O(e)===!1,i=n===!1?e:e.DEF,a=new fe({definition:[],idx:t,ignoreAmbiguities:n&&e.IGNORE_AMBIGUITIES===!0});return x(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=nc(i,s=>Qe(s.GATE)),r.definition.push(a),S(i,s=>{let o=new de({definition:[]});a.definition.push(o),x(s,"IGNORE_AMBIGUITIES")?o.ignoreAmbiguities=s.IGNORE_AMBIGUITIES:x(s,"GATE")&&(o.ignoreAmbiguities=!0),this.recordingProdStack.push(o),s.ALT.call(this),this.recordingProdStack.pop()}),Ki}function rd(e){return e===0?"":`${e}`}function Vi(e){if(e<0||e>Zc){let t=Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${Zc+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}var hk=class{initPerformanceTracer(e){if(x(e,"traceInitPerf")){let t=e.traceInitPerf,r=typeof t=="number";this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=tt.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let r=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent <${e}>`);let{time:n,value:i}=ac(t),a=n>10?console.warn:console.log;return this.traceInitIndent time: ${n}ms`),this.traceInitIndent--,i}else return t()}};function fk(e,t){t.forEach(r=>{let n=r.prototype;Object.getOwnPropertyNames(n).forEach(i=>{if(i==="constructor")return;let a=Object.getOwnPropertyDescriptor(n,i);a&&(a.get||a.set)?Object.defineProperty(e.prototype,i,a):e.prototype[i]=r.prototype[i]})})}const Hi=Li(Rt,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Hi);const tt=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Ur,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Wi=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var pe;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(pe||(pe={}));function nd(e=void 0){return function(){return e}}var Ds=class Mh{static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{sc(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),S(this.definedRulesNames,i=>{let a=this[i].originalGrammarAction,s;this.TRACE_INIT(`${i} Rule`,()=>{s=this.topLevelRuleRecord(i,a)}),this.gastProductionsCache[i]=s})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=FA({rules:X(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(M(n)&&this.skipValidations===!1){let i=GA({rules:X(this.gastProductionsCache),tokenTypes:X(this.tokensMap),errMsgProvider:Pt,grammarName:r}),a=kA({lookaheadStrategy:this.lookaheadStrategy,rules:X(this.gastProductionsCache),tokenTypes:X(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(i,a)}}),M(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{this.resyncFollows=AE(X(this.gastProductionsCache))}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var i,a;(a=(i=this.lookaheadStrategy).initialize)==null||a.call(i,{rules:X(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(X(this.gastProductionsCache))})),!Mh.DEFER_DEFINITION_ERRORS_HANDLING&&!M(this.definitionErrors))throw t=k(this.definitionErrors,i=>i.message),Error(`Parser Definition Errors detected: + ${t.join(` +------------------------------- +`)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),x(r,"ignoredIssues"))throw Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=x(r,"skipValidations")?r.skipValidations:tt.skipValidations}};Ds.DEFER_DEFINITION_ERRORS_HANDLING=!1,fk(Ds,[HA,zA,nk,ik,sk,ak,ok,lk,ck,hk]);var pk=class extends Ds{constructor(e,t=tt){let r=ee(t);r.outputCst=!1,super(e,r)}};function Fr(e,t,r){return`${e.name}_${t}_${r}`}var Us=class{constructor(e){this.target=e}isEpsilon(){return!1}},Fs=class extends Us{constructor(e,t){super(e),this.tokenType=t}},id=class extends Us{constructor(e){super(e)}isEpsilon(){return!0}},Gs=class extends Us{constructor(e,t,r){super(e),this.rule=t,this.followState=r}isEpsilon(){return!0}};function mk(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};gk(t,e);let r=e.length;for(let n=0;nad(e,t,i)))}function Ek(e,t,r){let n=Q(e,t,r,{type:1});return $t(e,n),Ak(e,t,r,Gr(e,t,n,r,Mt(e,t,r)))}function Mt(e,t,r){let n=Kh(Ye(r.definition,i=>ad(e,t,i)),i=>i!==void 0);return n.length===1?n[0]:n.length===0?void 0:xk(e,n)}function sd(e,t,r,n,i){let a=n.left,s=n.right,o=Q(e,t,r,{type:11});$t(e,o);let l=Q(e,t,r,{type:12});return a.loopback=o,l.loopback=o,e.decisionMap[Fr(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,W(s,o),i===void 0?(W(o,a),W(o,l)):(W(o,l),W(o,i.left),W(i.right,a)),{left:a,right:l}}function od(e,t,r,n,i){let a=n.left,s=n.right,o=Q(e,t,r,{type:10});$t(e,o);let l=Q(e,t,r,{type:12}),u=Q(e,t,r,{type:9});return o.loopback=u,l.loopback=u,W(o,a),W(o,l),W(s,u),i===void 0?W(u,o):(W(u,l),W(u,i.left),W(i.right,a)),e.decisionMap[Fr(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}function Ak(e,t,r,n){let i=n.left,a=n.right;return W(i,a),e.decisionMap[Fr(t,"Option",r.idx)]=i,n}function $t(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function Gr(e,t,r,n,...i){let a=Q(e,t,n,{type:8,start:r});r.end=a;for(let o of i)o===void 0?W(r,a):(W(r,o.left),W(o.right,a));let s={left:r,right:a};return e.decisionMap[Fr(t,kk(n),n.idx)]=r,s}function kk(e){if(e instanceof fe)return"Alternation";if(e instanceof re)return"Option";if(e instanceof B)return"Repetition";if(e instanceof he)return"RepetitionWithSeparator";if(e instanceof Ae)return"RepetitionMandatory";if(e instanceof ke)return"RepetitionMandatoryWithSeparator";throw Error("Invalid production type encountered")}function xk(e,t){let r=t.length;for(let a=0;ae.alt)}get key(){let e="";for(let t in this.map)e+=t+":";return e}};function ld(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}function Nk(e,t){let r={};return n=>{let i=n.toString(),a=r[i];return a===void 0&&(a={atnStartState:e,decision:t,states:{}},r[i]=a),a}}var ud=class{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="",t=this.predicates.length;for(let r=0;rconsole.log(t))}initialize(e){this.atn=mk(e.rules),this.dfas=wk(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=Fr(r,"Alternation",t),l=this.atn.decisionMap[o].decision,u=Ye(Pc({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),c=>Ye(c,d=>d[0]));if(dd(u,!1)&&!i){let c=Fo(u,(d,h,f)=>(Aa(h,p=>{p&&(d[p.tokenTypeIdx]=f,Aa(p.categoryMatches,m=>{d[m]=f}))}),d),{});return n?function(d){var f;let h=c[this.LA(1).tokenTypeIdx];if(d!==void 0&&h!==void 0){let p=(f=d[h])==null?void 0:f.GATE;if(p!==void 0&&p.call(this)===!1)return}return h}:function(){return c[this.LA(1).tokenTypeIdx]}}else return n?function(c){let d=new ud,h=c===void 0?0:c.length;for(let p=0;pYe(c,d=>d[0]));if(dd(u)&&u[0][0]&&!i){let c=u[0],d=Hh(c);if(d.length===1&&Yh(d[0].categoryMatches)){let h=d[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===h}}else{let h=Fo(d,(f,p)=>(p!==void 0&&(f[p.tokenTypeIdx]=!0,Aa(p.categoryMatches,m=>{f[m]=!0})),f),{});return function(){return h[this.LA(1).tokenTypeIdx]===!0}}}return function(){let c=Vs.call(this,a,l,cd,s);return typeof c=="object"?!1:c===0}}};function dd(e,t=!0){let r=new Set;for(let n of e){let i=new Set;for(let a of n){if(a===void 0){if(t)break;return!1}let s=[a.tokenTypeIdx].concat(a.categoryMatches);for(let o of s)if(r.has(o)){if(!i.has(o))return!1}else r.add(o),i.add(o)}}return!0}function wk(e){let t=e.decisionStates.length,r=Array(t);for(let n=0;nDr(i)).join(", "),r=e.production.idx===0?"":e.production.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${Mk(e.production)}${r}> inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return n+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,n}function Mk(e){if(e instanceof oe)return"SUBRULE";if(e instanceof re)return"OPTION";if(e instanceof fe)return"OR";if(e instanceof Ae)return"AT_LEAST_ONE";if(e instanceof ke)return"AT_LEAST_ONE_SEP";if(e instanceof he)return"MANY_SEP";if(e instanceof B)return"MANY";if(e instanceof F)return"CONSUME";throw Error("non exhaustive match")}function Dk(e,t,r){return{actualToken:r,possibleTokenTypes:Qh(Xh(t.configs.elements,n=>n.state.transitions).filter(n=>n instanceof Fs).map(n=>n.tokenType),n=>n.tokenTypeIdx),tokenPath:e}}function Uk(e,t){return e.edges[t.tokenTypeIdx]}function Fk(e,t,r){let n=new Ks,i=[];for(let s of e.elements){if(r.is(s.alt)===!1)continue;if(s.state.type===7){i.push(s);continue}let o=s.state.transitions.length;for(let l=0;l0&&!Vk(a))for(let s of i)a.add(s);return a}function Gk(e,t){if(e instanceof Fs&&wc(t,e.tokenType))return e.target}function jk(e,t){let r;for(let n of e.elements)if(t.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}function hd(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function fd(e,t,r,n){return n=pd(e,n),t.edges[r.tokenTypeIdx]=n,n}function pd(e,t){if(t===zi)return t;let r=t.configs.key,n=e.states[r];return n===void 0?(t.configs.finalize(),e.states[r]=t,t):n}function Bk(e){let t=new Ks,r=e.transitions.length;for(let n=0;n0){let i=[...e.stack];Yi({state:i.pop(),alt:e.alt,stack:i},t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let n=r.transitions.length;for(let i=0;i1)return!0;return!1}function qk(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}Go();var md=class{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new Ws(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new Xi;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let r=new qi(e.startOffset,e.image.length,Bn(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){let t=e.container;if(t){let r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){let t=[];for(let i of e){let a=new qi(i.startOffset,i.image.length,Bn(i),i.tokenType,!0);a.root=this.rootNode,t.push(a)}let r=this.current,n=!1;if(r.content.length>0){r.content.push(...t);return}for(;r.container;){let i=r.container.content.indexOf(r);if(i>0){r.container.content.splice(i,0,...t),n=!0;break}r=r.container}n||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type=="string"&&(this.current.astNode=e),e.$cstNode=t;let r=this.nodeStack.pop();(r==null?void 0:r.content.length)===0&&this.removeNode(r)}},Hs=class{get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var t,r;let e=typeof((t=this._astNode)==null?void 0:t.$type)=="string"?this._astNode:(r=this.container)==null?void 0:r.astNode;if(!e)throw Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}},qi=class extends Hs{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},Xi=class extends Hs{constructor(){super(...arguments),this.content=new Xk(this)}get children(){return this.content}get offset(){var e;return((e=this.firstNonHiddenNode)==null?void 0:e.offset)??0}get length(){return this.end-this.offset}get end(){var e;return((e=this.lastNonHiddenNode)==null?void 0:e.end)??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:r}=e,{range:n}=t;this._rangeCache={start:r.start,end:n.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},Xk=class Dh extends Array{constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,Dh.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...n){return this.addParents(n),super.splice(t,r,...n)}addParents(t){for(let r of t)r.container=this.parent}},Ws=class extends Xi{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}};const Ji=Symbol("Datatype");function zs(e){return e.$type===Ji}var gd="\u200B",yd=e=>e.endsWith(gd)?e:e+gd,Ys=class{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,r=e.LanguageMetaData.mode==="production";this.wrapper=new Qk(t,Object.assign(Object.assign({},e.parser.ParserConfig),{skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},Td=class extends Ys{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new md,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let r=this.computeRuleType(e),n=this.wrapper.DEFINE_RULE(yd(e.name),this.startImplementation(r,t).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}computeRuleType(e){if(!e.fragment)return ii(e)?Ji:cn(e)??e.name}parse(e,t={}){this.nodeBuilder.buildRootNode(e);let r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;let n=t.rule?this.allRules.get(t.rule):this.mainRule;if(!n)throw Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");let i=n.call(this.wrapper,{});return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,{value:i,lexerErrors:r.errors,lexerReport:r.report,parserErrors:this.wrapper.errors}}startImplementation(e,t){return r=>{let n=!this.isRecording()&&e!==void 0;if(n){let a={$type:e};this.stack.push(a),e===Ji&&(a.value="")}let i;try{i=t(r)}catch{i=void 0}return i===void 0&&n&&(i=this.construct()),i}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let r=e.startOffset;for(let n=0;nr)return t.splice(0,n);return t.splice(0,t.length)}consume(e,t,r){let n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){let i=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(i);let a=this.nodeBuilder.buildLeafNode(n,r),{assignment:s,isCrossRef:o}=this.getAssignment(r),l=this.current;if(s){let u=pt(r)?n.image:this.converter.convert(n.image,a);this.assign(s.operator,s.feature,u,a,o)}else if(zs(l)){let u=n.image;pt(r)||(u=this.converter.convert(u,a).toString()),l.value+=u}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,n,i){let a;!this.isRecording()&&!r&&(a=this.nodeBuilder.buildCompositeNode(n));let s=this.wrapper.wrapSubrule(e,t,i);!this.isRecording()&&a&&a.length>0&&this.performSubruleAssignment(s,n,a)}performSubruleAssignment(e,t,r){let{assignment:n,isCrossRef:i}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,i);else if(!n){let a=this.current;if(zs(a))a.value+=e.toString();else if(typeof e=="object"&&e){let s=this.assignWithoutOverride(e,a);this.stack.pop(),this.stack.push(s)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(t.feature&&t.operator){r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode);let n={$type:e};this.stack.push(n),this.assign(t.operator,t.feature,r,r.$cstNode,!1)}else r.$type=e}}construct(){if(this.isRecording())return;let e=this.current;return Da(e),this.nodeBuilder.construct(e),this.stack.pop(),zs(e)?this.converter.convert(e.value,e.$cstNode):(gl(this.astReflection,e),e)}getAssignment(e){if(!this.assignmentMap.has(e)){let t=on(e,ft);this.assignmentMap.set(e,{assignment:t,isCrossRef:t?Yn(t.terminal):!1})}return this.assignmentMap.get(e)}assign(e,t,r,n,i){let a=this.current,s;switch(s=i&&typeof r=="string"?this.linker.buildReference(a,t,n,r):r,e){case"=":a[t]=s;break;case"?=":a[t]=!0;break;case"+=":Array.isArray(a[t])||(a[t]=[]),a[t].push(s)}}assignWithoutOverride(e,t){for(let[n,i]of Object.entries(t)){let a=e[n];a===void 0?e[n]=i:Array.isArray(a)&&Array.isArray(i)&&(i.push(...a),e[n]=i)}let r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},vd=class{buildMismatchTokenMessage(e){return Ur.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return Ur.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return Ur.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return Ur.buildEarlyExitMessage(e)}},qs=class extends vd{buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},Rd=class extends Ys{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){return this.resetState(),this.tokens=this.lexer.tokenize(e,{mode:"partial"}).tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let r=this.wrapper.DEFINE_RULE(yd(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,n,i){this.before(n),this.wrapper.wrapSubrule(e,t,i),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},Jk={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new qs},Qk=class extends pk{constructor(e,t){let r=t&&"maxLookahead"in t;super(e,Object.assign(Object.assign(Object.assign({},Jk),{lookaheadStrategy:r?new Ms({maxLookahead:t.maxLookahead}):new bk({logging:t.skipValidations?()=>{}:void 0})}),t))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t){return this.RULE(e,t)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}};function Xs(e,t,r){return Zk({parser:t,tokens:r,ruleNames:new Map},e),t}function Zk(e,t){let r=ja(t,!1),n=H(t.rules).filter(ve).filter(i=>r.has(i));for(let i of n){let a=Object.assign(Object.assign({},e),{consume:1,optional:1,subrule:1,many:1,or:1});e.parser.rule(i,Dt(a,i.definition))}}function Dt(e,t,r=!1){let n;if(pt(t))n=sx(e,t);else if(Ct(t))n=ex(e,t);else if(ft(t))n=Dt(e,t.terminal);else if(Yn(t))n=$d(e,t);else if(mt(t))n=tx(e,t);else if(Oa(t))n=nx(e,t);else if(Pa(t))n=ix(e,t);else if(fr(t))n=ax(e,t);else if(ll(t)){let i=e.consume++;n=()=>e.parser.consume(i,Rt,t)}else throw new Kn(t.$cstNode,`Unexpected element type: ${t.$type}`);return Ed(e,r?void 0:Qi(t),n,t.cardinality)}function ex(e,t){let r=ai(t);return()=>e.parser.action(r,t)}function tx(e,t){let r=t.rule.ref;if(ve(r)){let n=e.subrule++,i=r.fragment,a=t.arguments.length>0?rx(r,t.arguments):()=>({});return s=>e.parser.subrule(n,Ad(e,r),i,t,a(s))}else if(Xe(r)){let n=e.consume++,i=Js(e,r.name);return()=>e.parser.consume(n,i,t)}else if(r)xt(r);else throw new Kn(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function rx(e,t){let r=t.map(n=>rt(n.value));return n=>{let i={};for(let a=0;at(n)||r(n)}else if(el(e)){let t=rt(e.left),r=rt(e.right);return n=>t(n)&&r(n)}else if(rl(e)){let t=rt(e.value);return r=>!t(r)}else if(nl(e)){let t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if(Zo(e)){let t=!!e.true;return()=>t}xt(e)}function nx(e,t){if(t.elements.length===1)return Dt(e,t.elements[0]);{let r=[];for(let i of t.elements){let a={ALT:Dt(e,i,!0)},s=Qi(i);s&&(a.GATE=rt(s)),r.push(a)}let n=e.or++;return i=>e.parser.alternatives(n,r.map(a=>{let s={ALT:()=>a.ALT(i)},o=a.GATE;return o&&(s.GATE=()=>o(i)),s}))}}function ix(e,t){if(t.elements.length===1)return Dt(e,t.elements[0]);let r=[];for(let s of t.elements){let o={ALT:Dt(e,s,!0)},l=Qi(s);l&&(o.GATE=rt(l)),r.push(o)}let n=e.or++,i=(s,o)=>`uGroup_${s}_${o.getRuleStack().join("-")}`,a=Ed(e,Qi(t),s=>e.parser.alternatives(n,r.map((o,l)=>{let u={ALT:()=>!0},c=e.parser;u.ALT=()=>{if(o.ALT(s),!c.isRecording()){let h=i(n,c);c.unorderedGroups.get(h)||c.unorderedGroups.set(h,[]);let f=c.unorderedGroups.get(h);(f==null?void 0:f[l])===void 0&&(f[l]=!0)}};let d=o.GATE;return d?u.GATE=()=>d(s):u.GATE=()=>{var h;return!((h=c.unorderedGroups.get(i(n,c)))!=null&&h[l])},u})),"*");return s=>{a(s),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(n,e.parser))}}function ax(e,t){let r=t.elements.map(n=>Dt(e,n));return n=>r.forEach(i=>i(n))}function Qi(e){if(fr(e))return e.guardCondition}function $d(e,t,r=t.terminal){var n;if(r)if(mt(r)&&ve(r.rule.ref)){let i=r.rule.ref,a=e.subrule++;return s=>e.parser.subrule(a,Ad(e,i),!1,t,s)}else if(mt(r)&&Xe(r.rule.ref)){let i=e.consume++,a=Js(e,r.rule.ref.name);return()=>e.parser.consume(i,a,t)}else if(pt(r)){let i=e.consume++,a=Js(e,r.value);return()=>e.parser.consume(i,a,t)}else throw Error("Could not build cross reference parser");else{if(!t.type.ref)throw Error("Could not resolve reference to type: "+t.type.$refText);let i=(n=Ha(t.type.ref))==null?void 0:n.terminal;if(!i)throw Error("Could not find name assignment for type: "+ai(t.type.ref));return $d(e,t,i)}}function sx(e,t){let r=e.consume++,n=e.tokens[t.value];if(!n)throw Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}function Ed(e,t,r,n){let i=t&&rt(t);if(!n)if(i){let a=e.or++;return s=>e.parser.alternatives(a,[{ALT:()=>r(s),GATE:()=>i(s)},{ALT:nd(),GATE:()=>!i(s)}])}else return r;if(n==="*"){let a=e.many++;return s=>e.parser.many(a,{DEF:()=>r(s),GATE:i?()=>i(s):void 0})}else if(n==="+"){let a=e.many++;if(i){let s=e.or++;return o=>e.parser.alternatives(s,[{ALT:()=>e.parser.atLeastOne(a,{DEF:()=>r(o)}),GATE:()=>i(o)},{ALT:nd(),GATE:()=>!i(o)}])}else return s=>e.parser.atLeastOne(a,{DEF:()=>r(s)})}else if(n==="?"){let a=e.optional++;return s=>e.parser.optional(a,{DEF:()=>r(s),GATE:i?()=>i(s):void 0})}else xt(n)}function Ad(e,t){let r=ox(e,t),n=e.parser.getRule(r);if(!n)throw Error(`Rule "${r}" not found."`);return n}function ox(e,t){if(ve(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,n=r.$container,i=t.$type;for(;!ve(n);)(fr(n)||Oa(n)||Pa(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,e.ruleNames.set(t,i),i}}function Js(e,t){let r=e.tokens[t];if(!r)throw Error(`Token "${t}" not found."`);return r}function kd(e){let t=e.Grammar,r=e.parser.Lexer,n=new Rd(e);return Xs(t,n,r.definition),n.finalize(),n}function xd(e){let t=Sd(e);return t.finalize(),t}function Sd(e){let t=e.Grammar,r=e.parser.Lexer;return Xs(t,new Td(e),r.definition)}var Zi=class{constructor(){this.diagnostics=[]}buildTokens(e,t){let r=H(ja(e,!1)),n=this.buildTerminalTokens(r),i=this.buildKeywordTokens(r,n,t);return n.forEach(a=>{let s=a.PATTERN;typeof s=="object"&&s&&"test"in s&&ni(s)?i.unshift(a):i.push(a)}),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Xe).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){let t=si(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,n={name:e.name,PATTERN:r};return typeof r=="function"&&(n.LINE_BREAKS=!0),e.hidden&&(n.GROUP=ni(t)?le.SKIPPED:"hidden"),n}requiresCustomPattern(e){return e.flags.includes("u")||e.flags.includes("s")?!0:!!(e.source.includes("?<=")||e.source.includes("?(t.lastIndex=n,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(ve).flatMap(n=>It(n).filter(pt)).distinct(n=>n.value).toArray().sort((n,i)=>i.value.length-n.value.length).map(n=>this.buildKeywordToken(n,t,!!(r!=null&&r.caseInsensitive)))}buildKeywordToken(e,t,r){let n=this.buildKeywordPattern(e,r),i={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return typeof n=="function"&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(Sl(e.value)):e.value}findLongerAlt(e,t){return t.reduce((r,n)=>{let i=n==null?void 0:n.PATTERN;return i!=null&&i.source&&Cl("^"+i.source+"$",e.value)&&r.push(n),r},[])}},Qs=class{convert(e,t){let r=t.grammarSource;if(Yn(r)&&(r=Ol(r)),mt(r)){let n=r.rule.ref;if(!n)throw Error("This cst node was not parsed by a rule.");return this.runConverter(n,e,t)}return e}runConverter(e,t,r){var n;switch(e.name.toUpperCase()){case"INT":return nt.convertInt(t);case"STRING":return nt.convertString(t);case"ID":return nt.convertID(t)}switch((n=Bl(e))==null?void 0:n.toLowerCase()){case"number":return nt.convertNumber(t);case"boolean":return nt.convertBoolean(t);case"bigint":return nt.convertBigint(t);case"date":return nt.convertDate(t);default:return t}}},nt;(function(e){function t(u){let c="";for(let d=1;d{Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw Error("No runtime abstraction layer installed");return t}(function(n){function i(a){if(a===void 0)throw Error("No runtime abstraction layer provided");t=a}n.install=i})(r||(r={})),e.default=r})),lx=Un((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(l){return l===!0||l===!1}e.boolean=t;function r(l){return typeof l=="string"||l instanceof String}e.string=r;function n(l){return typeof l=="number"||l instanceof Number}e.number=n;function i(l){return l instanceof Error}e.error=i;function a(l){return typeof l=="function"}e.func=a;function s(l){return Array.isArray(l)}e.array=s;function o(l){return s(l)&&l.every(u=>r(u))}e.stringArray=o})),Id=Un((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t=Cd(),r;(function(a){let s={dispose(){}};a.None=function(){return s}})(r||(e.Event=r={}));var n=class{add(a,s=null,o){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(a),this._contexts.push(s),Array.isArray(o)&&o.push({dispose:()=>this.remove(a,s)})}remove(a,s=null){if(!this._callbacks)return;let o=!1;for(let l=0,u=this._callbacks.length;l{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(s,o);let u={dispose:()=>{this._callbacks&&(this._callbacks.remove(s,o),u.dispose=Uh._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(l)&&l.push(u),u}),this._event}fire(s){this._callbacks&&this._callbacks.invoke.call(this._callbacks,s)}dispose(){this._callbacks&&(this._callbacks=(this._callbacks.dispose(),void 0))}};e.Emitter=i,i._noop=function(){}})),ux=Un((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=Cd(),r=lx(),n=Id(),i;(function(o){o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function l(u){let c=u;return c&&(c===o.None||c===o.Cancelled||r.boolean(c.isCancellationRequested)&&!!c.onCancellationRequested)}o.is=l})(i||(e.CancellationToken=i={}));var a=Object.freeze(function(o,l){let u=(0,t.default)().timer.setTimeout(o.bind(l),0);return{dispose(){u.dispose()}}}),s=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter=(this._emitter.dispose(),void 0))}};e.CancellationTokenSource=class{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}}})),D={};Dn(D,Uo(ux(),1),void 0,1);function Zs(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}var ea=0,Nd=10;function eo(){return ea=performance.now(),new D.CancellationTokenSource}function bd(e){Nd=e}const Et=Symbol("OperationCancelled");function jr(e){return e===Et}async function ue(e){if(e===D.CancellationToken.None)return;let t=performance.now();if(t-ea>=Nd&&(ea=t,await Zs(),ea=performance.now()),e.isCancellationRequested)throw Et}var it=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}},wd=class _o{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(_o.isIncremental(n)){let i=Ld(n.range),a=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,a)+n.text+this._content.substring(s,this._content.length);let o=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,c=_d(n.text,!1,a);if(l-o===c.length)for(let h=0,f=c.length;ht?i=s:n=s+1}let a=n-1;return t=this.ensureBeforeEOL(t,r[a]),{line:a,character:t-r[a]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line];if(t.character<=0)return n;let i=t.line+1r&&Od(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},to;(function(e){function t(i,a,s,o){return new wd(i,a,s,o)}e.create=t;function r(i,a,s){if(i instanceof wd)return i.update(a,s),i;throw Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(i,a){let s=i.getText(),o=ro(a.map(cx),(c,d)=>{let h=c.range.start.line-d.range.start.line;return h===0?c.range.start.character-d.range.start.character:h}),l=0,u=[];for(let c of o){let d=i.offsetAt(c.range.start);if(dl&&u.push(s.substring(l,d)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}e.applyEdits=n})(to||(to={}));function ro(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);ro(n,t),ro(i,t);let a=0,s=0,o=0;for(;ar.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function cx(e){let t=Ld(e.range);return t===e.range?e:{newText:e.newText,range:t}}var Pd;(()=>{var e={470:i=>{function a(l){if(typeof l!="string")throw TypeError("Path must be a string. Received "+JSON.stringify(l))}function s(l,u){for(var c,d="",h=0,f=-1,p=0,m=0;m<=l.length;++m){if(m2){var v=d.lastIndexOf("/");if(v!==d.length-1){v===-1?(d="",h=0):h=(d=d.slice(0,v)).length-1-d.lastIndexOf("/"),f=m,p=0;continue}}else if(d.length===2||d.length===1){d="",h=0,f=m,p=0;continue}}u&&(d.length>0?d+="/..":d="..",h=2)}else d.length>0?d+="/"+l.slice(f+1,m):d=l.slice(f+1,m),h=m-f-1;f=m,p=0}else c===46&&p!==-1?++p:p=-1}return d}var o={resolve:function(){for(var l,u="",c=!1,d=arguments.length-1;d>=-1&&!c;d--){var h;d>=0?h=arguments[d]:(l===void 0&&(l=process.cwd()),h=l),a(h),h.length!==0&&(u=h+"/"+u,c=h.charCodeAt(0)===47)}return u=s(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(l){if(a(l),l.length===0)return".";var u=l.charCodeAt(0)===47,c=l.charCodeAt(l.length-1)===47;return(l=s(l,!u)).length!==0||u||(l="."),l.length>0&&c&&(l+="/"),u?"/"+l:l},isAbsolute:function(l){return a(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,u=0;u0&&(l===void 0?l=c:l+="/"+c)}return l===void 0?".":o.normalize(l)},relative:function(l,u){if(a(l),a(u),l===u||(l=o.resolve(l))===(u=o.resolve(u)))return"";for(var c=1;cm){if(u.charCodeAt(f+T)===47)return u.slice(f+T+1);if(T===0)return u.slice(f+T)}else h>m&&(l.charCodeAt(c+T)===47?v=T:T===0&&(v=0));break}var R=l.charCodeAt(c+T);if(R!==u.charCodeAt(f+T))break;R===47&&(v=T)}var g="";for(T=c+v+1;T<=d;++T)T!==d&&l.charCodeAt(T)!==47||(g.length===0?g+="..":g+="/..");return g.length>0?g+u.slice(f+v):(f+=v,u.charCodeAt(f)===47&&++f,u.slice(f))},_makeLong:function(l){return l},dirname:function(l){if(a(l),l.length===0)return".";for(var u=l.charCodeAt(0),c=u===47,d=-1,h=!0,f=l.length-1;f>=1;--f)if((u=l.charCodeAt(f))===47){if(!h){d=f;break}}else h=!1;return d===-1?c?"/":".":c&&d===1?"//":l.slice(0,d)},basename:function(l,u){if(u!==void 0&&typeof u!="string")throw TypeError('"ext" argument must be a string');a(l);var c,d=0,h=-1,f=!0;if(u!==void 0&&u.length>0&&u.length<=l.length){if(u.length===l.length&&u===l)return"";var p=u.length-1,m=-1;for(c=l.length-1;c>=0;--c){var v=l.charCodeAt(c);if(v===47){if(!f){d=c+1;break}}else m===-1&&(f=!1,m=c+1),p>=0&&(v===u.charCodeAt(p)?--p==-1&&(h=c):(p=-1,h=m))}return d===h?h=m:h===-1&&(h=l.length),l.slice(d,h)}for(c=l.length-1;c>=0;--c)if(l.charCodeAt(c)===47){if(!f){d=c+1;break}}else h===-1&&(f=!1,h=c+1);return h===-1?"":l.slice(d,h)},extname:function(l){a(l);for(var u=-1,c=0,d=-1,h=!0,f=0,p=l.length-1;p>=0;--p){var m=l.charCodeAt(p);if(m!==47)d===-1&&(h=!1,d=p+1),m===46?u===-1?u=p:f!==1&&(f=1):u!==-1&&(f=-1);else if(!h){c=p+1;break}}return u===-1||d===-1||f===0||f===1&&u===d-1&&u===c+1?"":l.slice(u,d)},format:function(l){if(typeof l!="object"||!l)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return(function(u,c){var d=c.dir||c.root,h=c.base||(c.name||"")+(c.ext||"");return d?d===c.root?d+h:d+"/"+h:h})(0,l)},parse:function(l){a(l);var u={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return u;var c,d=l.charCodeAt(0),h=d===47;h?(u.root="/",c=1):c=0;for(var f=-1,p=0,m=-1,v=!0,T=l.length-1,R=0;T>=c;--T)if((d=l.charCodeAt(T))!==47)m===-1&&(v=!1,m=T+1),d===46?f===-1?f=T:R!==1&&(R=1):f!==-1&&(R=-1);else if(!v){p=T+1;break}return f===-1||m===-1||R===0||R===1&&f===m-1&&f===p+1?m!==-1&&(u.base=u.name=p===0&&h?l.slice(1,m):l.slice(p,m)):(p===0&&h?(u.name=l.slice(1,f),u.base=l.slice(1,m)):(u.name=l.slice(p,f),u.base=l.slice(p,m)),u.ext=l.slice(f,m)),p>0?u.dir=l.slice(0,p-1):h&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,r),s.exports}r.d=(i,a)=>{for(var s in a)r.o(a,s)&&!r.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:a[s]})},r.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{let i;r.r(n),r.d(n,{URI:()=>c,Utils:()=>Ue}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let a=/^\w[\w\d+.-]*$/,s=/^\//,o=/^\/\//;function l(E,y){if(!E.scheme&&y)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${E.authority}", path: "${E.path}", query: "${E.query}", fragment: "${E.fragment}"}`);if(E.scheme&&!a.test(E.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(E.path){if(E.authority){if(!s.test(E.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(E.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{constructor(y,$,A,L,b,C=!1){dt(this,"scheme");dt(this,"authority");dt(this,"path");dt(this,"query");dt(this,"fragment");typeof y=="object"?(this.scheme=y.scheme||"",this.authority=y.authority||"",this.path=y.path||"",this.query=y.query||"",this.fragment=y.fragment||""):(this.scheme=(function(ne,Z){return ne||Z?ne:"file"})(y,C),this.authority=$||"",this.path=(function(ne,Z){switch(ne){case"https":case"http":case"file":Z?Z[0]!=="/"&&(Z="/"+Z):Z="/"}return Z})(this.scheme,A||""),this.query=L||"",this.fragment=b||"",l(this,C))}static isUri(y){return y instanceof c||!!y&&typeof y.authority=="string"&&typeof y.fragment=="string"&&typeof y.path=="string"&&typeof y.query=="string"&&typeof y.scheme=="string"&&typeof y.fsPath=="string"&&typeof y.with=="function"&&typeof y.toString=="function"}get fsPath(){return v(this,!1)}with(y){if(!y)return this;let{scheme:$,authority:A,path:L,query:b,fragment:C}=y;return $===void 0?$=this.scheme:$===null&&($=""),A===void 0?A=this.authority:A===null&&(A=""),L===void 0?L=this.path:L===null&&(L=""),b===void 0?b=this.query:b===null&&(b=""),C===void 0?C=this.fragment:C===null&&(C=""),$===this.scheme&&A===this.authority&&L===this.path&&b===this.query&&C===this.fragment?this:new h($,A,L,b,C)}static parse(y,$=!1){let A=u.exec(y);return A?new h(A[2]||"",_(A[4]||""),_(A[5]||""),_(A[7]||""),_(A[9]||""),$):new h("","","","","")}static file(y){let $="";if(i&&(y=y.replace(/\\/g,"/")),y[0]==="/"&&y[1]==="/"){let A=y.indexOf("/",2);A===-1?($=y.substring(2),y="/"):($=y.substring(2,A),y=y.substring(A)||"/")}return new h("file",$,y,"","")}static from(y){let $=new h(y.scheme,y.authority,y.path,y.query,y.fragment);return l($,!0),$}toString(y=!1){return T(this,y)}toJSON(){return this}static revive(y){if(y){if(y instanceof c)return y;{let $=new h(y);return $._formatted=y.external,$._fsPath=y._sep===d?y.fsPath:null,$}}return y}}let d=i?1:void 0;class h extends c{constructor(){super(...arguments);dt(this,"_formatted",null);dt(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString($=!1){return $?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)}toJSON(){let $={$mid:1};return this._fsPath&&($.fsPath=this._fsPath,$._sep=d),this._formatted&&($.external=this._formatted),this.path&&($.path=this.path),this.scheme&&($.scheme=this.scheme),this.authority&&($.authority=this.authority),this.query&&($.query=this.query),this.fragment&&($.fragment=this.fragment),$}}let f={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function p(E,y,$){let A,L=-1;for(let b=0;b=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===45||C===46||C===95||C===126||y&&C===47||$&&C===91||$&&C===93||$&&C===58)L!==-1&&(A+=encodeURIComponent(E.substring(L,b)),L=-1),A!==void 0&&(A+=E.charAt(b));else{A===void 0&&(A=E.substr(0,b));let ne=f[C];ne===void 0?L===-1&&(L=b):(L!==-1&&(A+=encodeURIComponent(E.substring(L,b)),L=-1),A+=ne)}}return L!==-1&&(A+=encodeURIComponent(E.substring(L))),A===void 0?E:A}function m(E){let y;for(let $=0;$1&&E.scheme==="file"?`//${E.authority}${E.path}`:E.path.charCodeAt(0)===47&&(E.path.charCodeAt(1)>=65&&E.path.charCodeAt(1)<=90||E.path.charCodeAt(1)>=97&&E.path.charCodeAt(1)<=122)&&E.path.charCodeAt(2)===58?y?E.path.substr(1):E.path[1].toLowerCase()+E.path.substr(2):E.path,i&&($=$.replace(/\//g,"\\")),$}function T(E,y){let $=y?m:p,A="",{scheme:L,authority:b,path:C,query:ne,fragment:Z}=E;if(L&&(A+=L,A+=":"),(b||L==="file")&&(A+="/",A+="/"),b){let j=b.indexOf("@");if(j!==-1){let ut=b.substr(0,j);b=b.substr(j+1),j=ut.lastIndexOf(":"),j===-1?A+=$(ut,!1,!1):(A+=$(ut.substr(0,j),!1,!1),A+=":",A+=$(ut.substr(j+1),!1,!0)),A+="@"}b=b.toLowerCase(),j=b.lastIndexOf(":"),j===-1?A+=$(b,!1,!0):(A+=$(b.substr(0,j),!1,!0),A+=b.substr(j))}if(C){if(C.length>=3&&C.charCodeAt(0)===47&&C.charCodeAt(2)===58){let j=C.charCodeAt(1);j>=65&&j<=90&&(C=`/${String.fromCharCode(j+32)}:${C.substr(3)}`)}else if(C.length>=2&&C.charCodeAt(1)===58){let j=C.charCodeAt(0);j>=65&&j<=90&&(C=`${String.fromCharCode(j+32)}:${C.substr(2)}`)}A+=$(C,!0,!1)}return ne&&(A+="?",A+=$(ne,!1,!1)),Z&&(A+="#",A+=y?Z:p(Z,!1,!1)),A}function R(E){try{return decodeURIComponent(E)}catch{return E.length>3?E.substr(0,3)+R(E.substr(3)):E}}let g=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _(E){return E.match(g)?E.replace(g,(y=>R(y))):E}var me=r(470);let J=me.posix||me;var Ue;(function(E){E.joinPath=function(y,...$){return y.with({path:J.join(y.path,...$)})},E.resolvePath=function(y,...$){let A=y.path,L=!1;A[0]!=="/"&&(A="/"+A,L=!0);let b=J.resolve(A,...$);return L&&b[0]==="/"&&!y.authority&&(b=b.substring(1)),y.with({path:b})},E.dirname=function(y){if(y.path.length===0||y.path==="/")return y;let $=J.dirname(y.path);return $.length===1&&$.charCodeAt(0)===46&&($=""),y.with({path:$})},E.basename=function(y){return J.basename(y.path)},E.extname=function(y){return J.extname(y.path)}})(Ue||(Ue={}))})(),Pd=n})();const{URI:at,Utils:_n}=Pd;var st;(function(e){e.basename=_n.basename,e.dirname=_n.dirname,e.extname=_n.extname,e.joinPath=_n.joinPath,e.resolvePath=_n.resolvePath;function t(i,a){return(i==null?void 0:i.toString())===(a==null?void 0:a.toString())}e.equals=t;function r(i,a){let s=typeof i=="string"?i:i.path,o=typeof a=="string"?a:a.path,l=s.split("/").filter(d=>d.length>0),u=o.split("/").filter(d=>d.length>0),c=0;for(;cn??(n=to.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}},Dd=class{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.serviceRegistry=e.ServiceRegistry}get all(){return H(this.documentMap.values())}addDocument(e){let t=e.uri.toString();if(this.documentMap.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){let t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(n=>(this.addDocument(n),n));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){let t=e.toString(),r=this.documentMap.get(t);return r&&(this.serviceRegistry.getServices(e).references.Linker.unlink(r),r.state=G.Changed,r.precomputedScopes=void 0,r.diagnostics=void 0),r}deleteDocument(e){let t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=G.Changed,this.documentMap.delete(t)),r}},no=Symbol("ref_resolving"),Ud=class{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=D.CancellationToken.None){for(let r of gt(e.parseResult.value))await ue(t),Jn(r).forEach(n=>this.doLink(n,e))}doLink(e,t){let r=e.reference;if(r._ref===void 0){r._ref=no;try{let n=this.getCandidate(e);Jr(n)?r._ref=n:(r._nodeDescription=n,this.langiumDocuments().hasDocument(n.documentUri)?r._ref=this.loadAstNode(n)??this.createLinkingError(e,n):r._ref=void 0)}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);let i=n.message??String(n);r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${i}`})}t.references.push(r)}}unlink(e){for(let t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}buildReference(e,t,r,n){let i=this,a={$refNode:r,$refText:n,get ref(){if(Y(this._ref))return this._ref;if(jo(this._nodeDescription))this._ref=i.loadAstNode(this._nodeDescription)??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription);else if(this._ref===void 0){this._ref=no;let s=qn(e).$document,o=i.getLinkedNode({reference:a,container:e,property:t});if(o.error&&s&&s.state=e.end)return i.ref}}if(r){let n=this.nameProvider.getNameNode(r);if(n&&(n===e||Ko(e,n)))return r}}}findDeclarationNode(e){let t=this.findDeclaration(e);if(t!=null&&t.$cstNode)return this.nameProvider.getNameNode(t)??t.$cstNode}findReferences(e,t){let r=[];if(t.includeDeclaration){let i=this.getReferenceToSelf(e);i&&r.push(i)}let n=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(n=n.filter(i=>st.equals(i.sourceUri,t.documentUri))),r.push(...n),H(r)}getReferenceToSelf(e){let t=this.nameProvider.getNameNode(e);if(t){let r=Ge(e),n=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:n,targetUri:r.uri,targetPath:n,segment:Zr(t),local:!0}}}},Br=class{constructor(e){if(this.map=new Map,e)for(let[t,r]of e)this.add(t,r)}get size(){return jn.sum(H(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let r=this.map.get(e);if(r){let n=r.indexOf(t);if(n>=0)return r.length===1?this.map.delete(e):r.splice(n,1),!0}return!1}}get(e){return this.map.get(e)??[]}has(e,t){if(t===void 0)return this.map.has(e);{let r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(n=>e(n,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return H(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return H(this.map.keys())}values(){return H(this.map.values()).flat()}entriesGroupedByKey(){return H(this.map.entries())}},ta=class{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t===void 0?!1:(this.map.delete(e),this.inverse.delete(t),!0)}},Bd=class{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=D.CancellationToken.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,r=Xn,n=D.CancellationToken.None){let i=[];this.exportNode(e,i,t);for(let a of r(e))await ue(n),this.exportNode(a,i,t);return i}exportNode(e,t,r){let n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async computeLocalScopes(e,t=D.CancellationToken.None){let r=e.parseResult.value,n=new Br;for(let i of It(r))await ue(t),this.processNode(i,e,n);return n}processNode(e,t,r){let n=e.$container;if(n){let i=this.nameProvider.getName(e);i&&r.add(n,this.descriptions.createDescription(e,i,t))}}},io=class{constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=(r==null?void 0:r.caseInsensitive)??!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(t)return t;if(this.outerScope)return this.outerScope.getElement(e)}},Kd=class{constructor(e,t,r){this.elements=new Map,this.caseInsensitive=(r==null?void 0:r.caseInsensitive)??!1;for(let n of e){let i=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.set(i,n)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=H(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}};const dx={getElement(){},getAllElements(){return Gn}};var ra=class{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error("This cache has already been disposed")}},ao=class extends ra{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},na=class extends ra{constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();let n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){let i=r();return n.set(t,i),i}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},Vd=class extends na{constructor(e,t){super(r=>r.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,r=>{this.clear(r.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{for(let i of n)this.clear(i)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{let i=r.concat(n);for(let a of i)this.clear(a)}))}},so=class extends ao{constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{n.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},Hd=class{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new so(e.shared)}getScope(e){let t=[],r=this.reflection.getReferenceType(e),n=Ge(e.container).precomputedScopes;if(n){let a=e.container;do{let s=n.get(a);s.length>0&&t.push(H(s).filter(o=>this.reflection.isSubtype(o.type,r))),a=a.$container}while(a)}let i=this.getGlobalScope(r,e);for(let a=t.length-1;a>=0;a--)i=this.createScope(t[a],i);return i}createScope(e,t,r){return new io(H(e),t,r)}createScopeForNodes(e,t,r){return new io(H(e).map(n=>{let i=this.nameProvider.getName(n);if(i)return this.descriptions.createDescription(n,i)}).nonNullable(),t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new Kd(this.indexManager.allElements(e)))}};function Wd(e){return typeof e.$comment=="string"}function zd(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}var Yd=class{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let r=t??{},n=t==null?void 0:t.replacer,i=(s,o)=>this.replacer(s,o,r),a=n?(s,o)=>n(s,o,i):i;try{return this.currentDocument=Ge(e),JSON.stringify(e,a,t==null?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let r=t??{},n=JSON.parse(e);return this.linkNode(n,n,r),n}replacer(e,t,{refText:r,sourceText:n,textRegions:i,comments:a,uriConverter:s}){var o,l,u;if(!this.ignoreProperties.has(e))if(Te(t)){let c=t.ref,d=r?t.$refText:void 0;if(c){let h=Ge(c),f="";this.currentDocument&&this.currentDocument!==h&&(f=s?s(h.uri,t):h.uri.toString());let p=this.astNodeLocator.getAstNodePath(c);return{$ref:`${f}#${p}`,$refText:d}}else return{$error:((o=t.error)==null?void 0:o.message)??"Could not resolve reference",$refText:d}}else if(Y(t)){let c;if(i&&(c=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),(!e||t.$document)&&(c!=null&&c.$textRegion)&&(c.$textRegion.documentURI=(l=this.currentDocument)==null?void 0:l.uri.toString())),n&&!e&&(c??(c=Object.assign({},t)),c.$sourceText=(u=t.$cstNode)==null?void 0:u.text),a){c??(c=Object.assign({},t));let d=this.commentProvider.getComment(t);d&&(c.$comment=d.replace(/\r/g,""))}return c??t}else return t}addAstNodeRegionWithAssignmentsTo(e){let t=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){let r=e.$textRegion=t(e.$cstNode),n=r.assignments={};return Object.keys(e).filter(i=>!i.startsWith("$")).forEach(i=>{let a=Pl(e.$cstNode,i).map(t);a.length!==0&&(n[i]=a)}),e}}linkNode(e,t,r,n,i,a){for(let[o,l]of Object.entries(e))if(Array.isArray(l))for(let u=0;u{await this.handleException(()=>e.call(t,r,n,i),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(i){if(jr(i))throw i;console.error(`${t}:`,i),i instanceof Error&&i.stack&&console.error(i.stack),r("error",`${t}: ${i instanceof Error?i.message:String(i)}`,{node:n})}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(let r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=H(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(n=>t.includes(n.category))),r.map(n=>n.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(n,i,a,s)=>{await this.handleException(()=>e.call(r,n,i,a,s),t,i,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}},Jd=class{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},r=D.CancellationToken.None){let n=e.parseResult,i=[];if(await ue(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(n,i,t),t.stopAfterLexingErrors&&i.some(a=>{var s;return((s=a.data)==null?void 0:s.code)===Me.LexingError})||(this.processParsingErrors(n,i,t),t.stopAfterParsingErrors&&i.some(a=>{var s;return((s=a.data)==null?void 0:s.code)===Me.ParsingError}))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(a=>{var s;return((s=a.data)==null?void 0:s.code)===Me.LinkingError}))))return i;try{i.push(...await this.validateAst(n.value,t,r))}catch(a){if(jr(a))throw a;console.error("An error occurred during validation:",a)}return await ue(r),i}processLexingErrors(e,t,r){var i;let n=[...e.lexerErrors,...((i=e.lexerReport)==null?void 0:i.diagnostics)??[]];for(let a of n){let s=a.severity??"error",o={severity:aa(s),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:Zd(s),source:this.getSource()};t.push(o)}}processParsingErrors(e,t,r){for(let n of e.parserErrors){let i;if(isNaN(n.token.startOffset)){if("previousToken"in n){let a=n.previousToken;if(isNaN(a.startOffset)){let s={line:0,character:0};i={start:s,end:s}}else{let s={line:a.endLine-1,character:a.endColumn};i={start:s,end:s}}}}else i=Bn(n.token);if(i){let a={severity:aa("error"),range:i,message:n.message,data:Kr(Me.ParsingError),source:this.getSource()};t.push(a)}}}processLinkingErrors(e,t,r){for(let n of e.references){let i=n.error;if(i){let a={node:i.container,property:i.property,index:i.index,data:{code:Me.LinkingError,containerType:i.container.$type,property:i.property,refText:i.reference.$refText}};t.push(this.toDiagnostic("error",i.message,a))}}}async validateAst(e,t,r=D.CancellationToken.None){let n=[],i=(a,s,o)=>{n.push(this.toDiagnostic(a,s,o))};return await this.validateAstBefore(e,t,i,r),await this.validateAstNodes(e,t,i,r),await this.validateAstAfter(e,t,i,r),n}async validateAstBefore(e,t,r,n=D.CancellationToken.None){let i=this.validationRegistry.checksBefore;for(let a of i)await ue(n),await a(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=D.CancellationToken.None){await Promise.all(gt(e).map(async i=>{await ue(n);let a=this.validationRegistry.getChecks(i.$type,t.categories);for(let s of a)await s(i,r,n)}))}async validateAstAfter(e,t,r,n=D.CancellationToken.None){let i=this.validationRegistry.checksAfter;for(let a of i)await ue(n),await a(e,r,t.categories??[],n)}toDiagnostic(e,t,r){return{message:t,range:Qd(r),severity:aa(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function Qd(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=Ba(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=Ml(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function aa(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw Error("Invalid diagnostic severity: "+e)}}function Zd(e){switch(e){case"error":return Kr(Me.LexingError);case"warning":return Kr(Me.LexingWarning);case"info":return Kr(Me.LexingInfo);case"hint":return Kr(Me.LexingHint);default:throw Error("Invalid diagnostic severity: "+e)}}var Me;(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(Me||(Me={}));var eh=class{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){let n=r??Ge(e);t??(t=this.nameProvider.getName(e));let i=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${i} has no name.`);let a,s=()=>a??(a=Zr(this.nameProvider.getNameNode(e)??e.$cstNode));return{node:e,name:t,get nameSegment(){return s()},selectionSegment:Zr(e.$cstNode),type:e.$type,documentUri:n.uri,path:i}}},th=class{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=D.CancellationToken.None){let r=[],n=e.parseResult.value;for(let i of gt(n))await ue(t),Jn(i).filter(a=>!Jr(a)).forEach(a=>{let s=this.createDescription(a);s&&r.push(s)});return r}createDescription(e){let t=e.reference.$nodeDescription,r=e.reference.$refNode;if(!t||!r)return;let n=Ge(e.container).uri;return{sourceUri:n,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:Zr(r),local:st.equals(t.documentUri,n)}}},rh=class{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error("Missing '$containerProperty' in AST node.");return t===void 0?e:e+this.indexSeparator+t}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((r,n)=>{var a;if(!r||n.length===0)return r;let i=n.indexOf(this.indexSeparator);if(i>0){let s=n.substring(0,i),o=parseInt(n.substring(i+1));return(a=r[s])==null?void 0:a[o]}return r[n]},e)}},sa={};Dn(sa,Uo(Id(),1),void 0,1);var nh=class{constructor(e){this._ready=new it,this.settings={},this.workspaceConfig=!1,this.onConfigurationSectionUpdateEmitter=new sa.Emitter,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t;this.workspaceConfig=((t=e.capabilities.workspace)==null?void 0:t.configuration)??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(n=>({section:this.toSectionName(n.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((n,i)=>{this.updateSectionConfiguration(n.section,r[i])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(t=>{let r=e.settings[t];this.updateSectionConfiguration(t,r),this.onConfigurationSectionUpdateEmitter.fire({section:t,configuration:r})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},Vr;(function(e){function t(r){return{dispose:async()=>await r()}}e.create=t})(Vr||(Vr={}));var ih=class{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Br,this.documentPhaseListeners=new Br,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=G.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=D.CancellationToken.None){var n;for(let i of e){let a=i.uri.toString();if(i.state===G.Validated){if(typeof t.validation=="boolean"&&t.validation)i.state=G.IndexedReferences,i.diagnostics=void 0,this.buildState.delete(a);else if(typeof t.validation=="object"){let s=this.buildState.get(a),o=(n=s==null?void 0:s.result)==null?void 0:n.validationChecks;if(o){let l=(t.validation.categories??ia.all).filter(u=>!o.includes(u));l.length>0&&(this.buildState.set(a,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:l})},result:s.result}),i.state=G.IndexedReferences)}}}else this.buildState.delete(a)}this.currentState=G.Changed,await this.emitUpdate(e.map(i=>i.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=D.CancellationToken.None){this.currentState=G.Changed;for(let a of t)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(let a of e){if(!this.langiumDocuments.invalidateDocument(a)){let s=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);s.state=G.Changed,this.langiumDocuments.addDocument(s)}this.buildState.delete(a.toString())}let n=H(e).concat(t).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!n.has(a.uri.toString())&&this.shouldRelink(a,n)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,G.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,t),await ue(r);let i=this.sortDocuments(this.langiumDocuments.all.filter(a=>{var s;return a.stater(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t=0&&!this.hasTextDocument(e[r]);)r--;tr.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Vr.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,G.Parsed,r,i=>this.langiumDocumentFactory.update(i,r)),await this.runCancelable(e,G.IndexedContent,r,i=>this.indexManager.updateContent(i,r)),await this.runCancelable(e,G.ComputedScopes,r,async i=>{i.precomputedScopes=await this.serviceRegistry.getServices(i.uri).references.ScopeComputation.computeLocalScopes(i,r)}),await this.runCancelable(e,G.Linked,r,i=>this.serviceRegistry.getServices(i.uri).references.Linker.link(i,r)),await this.runCancelable(e,G.IndexedReferences,r,i=>this.indexManager.updateReferences(i,r));let n=e.filter(i=>this.shouldValidate(i));await this.runCancelable(n,G.Validated,r,i=>this.validate(i,r));for(let i of e){let a=this.buildState.get(i.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,t){for(let r of e){let n=r.uri.toString(),i=this.buildState.get(n);(!i||i.completed)&&this.buildState.set(n,{completed:!1,options:t,result:i==null?void 0:i.result})}}async runCancelable(e,t,r,n){let i=e.filter(s=>s.states.state===t);await this.notifyBuildPhase(a,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Vr.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),Vr.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;if(t&&"path"in t?n=t:r=t,r??(r=D.CancellationToken.None),n){let i=this.langiumDocuments.getDocument(n);if(i&&i.state>e)return Promise.resolve(n)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Et):new Promise((i,a)=>{let s=this.onBuildPhase(e,()=>{var l;s.dispose(),o.dispose(),i(n?(l=this.langiumDocuments.getDocument(n))==null?void 0:l.uri:void 0)}),o=r.onCancellationRequested(()=>{s.dispose(),o.dispose(),a(Et)})})}async notifyDocumentPhase(e,t,r){let n=this.documentPhaseListeners.get(t).slice();for(let i of n)try{await i(e,r)}catch(a){if(!jr(a))throw a}}async notifyBuildPhase(e,t,r){if(e.length===0)return;let n=this.buildPhaseListeners.get(t).slice();for(let i of n)await ue(r),await i(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e).validation,i=typeof n=="object"?n:void 0,a=await r.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let s=this.buildState.get(e.uri.toString());if(s){s.result??(s.result={});let o=(i==null?void 0:i.categories)??ia.all;s.result.validationChecks?s.result.validationChecks.push(...o):s.result.validationChecks=[...o]}}getBuildOptions(e){var t;return((t=this.buildState.get(e.uri.toString()))==null?void 0:t.options)??{}}},ah=class{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new na,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let r=Ge(e).uri,n=[];return this.referenceIndex.forEach(i=>{i.forEach(a=>{st.equals(a.targetUri,r)&&a.targetPath===t&&n.push(a)})}),H(n)}allElements(e,t){let r=H(this.symbolIndex.keys());return t&&(r=r.filter(n=>!t||t.has(n))),r.map(n=>this.getFileDescriptions(n,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(r=>this.astReflection.isSubtype(r.type,t))):this.symbolIndex.get(e)??[]}remove(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=D.CancellationToken.None){let r=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),n=e.uri.toString();this.symbolIndex.set(n,r),this.symbolByTypeIndex.clear(n)}async updateReferences(e,t=D.CancellationToken.None){let r=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),r)}isAffected(e,t){let r=this.referenceIndex.get(e.uri.toString());return r?r.some(n=>!n.local&&t.has(n.targetUri.toString())):!1}},sh=class{constructor(e){this.initialBuildOptions={},this._ready=new it,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(t=>this.initializeWorkspace(this.folders??[],t))}async initializeWorkspace(e,t=D.CancellationToken.None){let r=await this.performStartup(e);await ue(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){let t=this.serviceRegistry.all.flatMap(i=>i.LanguageMetaData.fileExtensions),r=[],n=i=>{r.push(i),this.langiumDocuments.hasDocument(i.uri)||this.langiumDocuments.addDocument(i)};return await this.loadAdditionalDocuments(e,n),await Promise.all(e.map(i=>[i,this.getRootFolder(i)]).map(async i=>this.traverseFolder(...i,t,n))),this._ready.resolve(),r}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return at.parse(e.uri)}async traverseFolder(e,t,r,n){let i=await this.fileSystemProvider.readDirectory(t);await Promise.all(i.map(async a=>{this.includeEntry(e,a,r)&&(a.isDirectory?await this.traverseFolder(e,a.uri,r,n):a.isFile&&n(await this.langiumDocuments.getOrCreateDocument(a.uri)))}))}includeEntry(e,t,r){let n=st.basename(t.uri);if(n.startsWith("."))return!1;if(t.isDirectory)return n!=="node_modules"&&n!=="out";if(t.isFile){let i=st.extname(t.uri);return r.includes(i)}return!1}},oh=class{buildUnexpectedCharactersMessage(e,t,r,n,i){return Ss.buildUnexpectedCharactersMessage(e,t,r,n,i)}buildUnableToPopLexerModeMessage(e){return Ss.buildUnableToPopLexerModeMessage(e)}};const oo={mode:"full"};var lo=class{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t),this.chevrotainLexer=new le(ho(t)?Object.values(t):t,{positionTracking:"full",skipValidations:e.LanguageMetaData.mode==="production",errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=oo){var i;var r;let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:(i=(r=this.tokenBuilder).flushLexingReport)==null?void 0:i.call(r,e)}}toTokenTypeDictionary(e){if(ho(e))return e;let t=co(e)?Object.values(e.modes).flat():e,r={};return t.forEach(n=>r[n.name]=n),r}};function uo(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}function co(e){return e&&"modes"in e&&"defaultMode"in e}function ho(e){return!uo(e)&&!co(e)}Go();function lh(e,t,r){let n,i;typeof e=="string"?(i=t,n=r):(i=e.range.start,n=t),i||(i=z.create(0,0));let a=ch(e),s=po(n);return Tx({index:0,tokens:fx({lines:a,position:i,options:s}),position:i})}function uh(e,t){let r=po(t),n=ch(e);if(n.length===0)return!1;let i=n[0],a=n[n.length-1],s=r.start,o=r.end;return!!(s!=null&&s.exec(i))&&!!(o!=null&&o.exec(a))}function ch(e){let t="";return t=typeof e=="string"?e:e.text,t.split(El)}var dh=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,hx=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function fx(e){var i,a,s;let t=[],r=e.position.line,n=e.position.character;for(let o=0;o=c.length){if(t.length>0){let h=z.create(r,n);t.push({type:"break",content:"",range:ye.create(h,h)})}}else{dh.lastIndex=d;let h=dh.exec(c);if(h){let f=h[0],p=h[1],m=z.create(r,n+d),v=z.create(r,n+d+f.length);t.push({type:"tag",content:p,range:ye.create(m,v)}),d+=f.length,d=fo(c,d)}if(d0&&t[t.length-1].type==="break"?t.slice(0,-1):t}function px(e,t,r,n){let i=[];if(e.length===0){let a=z.create(r,n),s=z.create(r,n+t.length);i.push({type:"text",content:t,range:ye.create(a,s)})}else{let a=0;for(let o of e){let l=o.index,u=t.substring(a,l);u.length>0&&i.push({type:"text",content:t.substring(a,l),range:ye.create(z.create(r,a+n),z.create(r,l+n))});let c=u.length+1,d=o[1];if(i.push({type:"inline-tag",content:d,range:ye.create(z.create(r,a+c+n),z.create(r,a+c+d.length+n))}),c+=d.length,o.length===4){c+=o[2].length;let h=o[3];i.push({type:"text",content:h,range:ye.create(z.create(r,a+c+n),z.create(r,a+c+h.length+n))})}else i.push({type:"text",content:"",range:ye.create(z.create(r,a+c+n),z.create(r,a+c+n))});a=l+o[0].length}let s=t.substring(a);s.length>0&&i.push({type:"text",content:s,range:ye.create(z.create(r,a+n),z.create(r,a+n+s.length))})}return i}var mx=/\S/,gx=/\s*$/;function fo(e,t){let r=e.substring(t).match(mx);return r?t+r.index:e.length}function yx(e){let t=e.match(gx);if(t&&typeof t.index=="number")return t.index}function Tx(e){var a,s;let t=z.create(e.position.line,e.position.character);if(e.tokens.length===0)return new mh([],ye.create(t,t));let r=[];for(;e.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let t of this.elements)if(e.length===0)e=t.toString();else{let r=t.toString();e+=yh(e)+r}return e.trim()}toMarkdown(e){let t="";for(let r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{let n=r.toMarkdown(e);t+=yh(t)+n}return t.trim()}},go=class{constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +${t}`),this.inline?`{${e}}`:e}toMarkdown(e){var t;return((t=e==null?void 0:e.renderTag)==null?void 0:t.call(e,this))??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let i=Ex(this.name,t,e??{});if(typeof i=="string")return i}let r="";(e==null?void 0:e.tag)==="italic"||(e==null?void 0:e.tag)===void 0?r="*":(e==null?void 0:e.tag)==="bold"?r="**":(e==null?void 0:e.tag)==="bold-italic"&&(r="***");let n=`${r}@${this.name}${r}`;return this.content.inlines.length===1?n=`${n} \u2014 ${t}`:this.content.inlines.length>1&&(n=`${n} +${t}`),this.inline?`{${n}}`:n}};function Ex(e,t,r){var n;if(e==="linkplain"||e==="linkcode"||e==="link"){let i=t.indexOf(" "),a=t;if(i>0){let s=fo(t,i);a=t.substring(s),t=t.substring(0,i)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(a=`\`${a}\``),((n=r.renderLink)==null?void 0:n.call(r,t,a))??Ax(t,a)}}function Ax(e,t){try{return at.parse(e,!0),`[${t}](${e})`}catch{return e}}var yo=class{constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;tr.range.start.line&&(e+=` +`)}return e}toMarkdown(e){let t="";for(let r=0;rn.range.start.line&&(t+=` +`)}return t}},gh=class{constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function yh(e){return e.endsWith(` +`)?` +`:` + +`}var Th=class{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&uh(t))return lh(t).toMarkdown({renderLink:(r,n)=>this.documentationLinkRenderer(e,r,n),renderTag:r=>this.documentationTagRenderer(e,r)})}documentationLinkRenderer(e,t,r){let n=this.findNameInPrecomputedScopes(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){let i=n.nameSegment.range.start.line+1,a=n.nameSegment.range.start.character+1;return`[${r}](${n.documentUri.with({fragment:`L${i},${a}`}).toString()})`}else return}documentationTagRenderer(e,t){}findNameInPrecomputedScopes(e,t){let r=Ge(e).precomputedScopes;if(!r)return;let n=e;do{let i=r.get(n).find(a=>a.name===t);if(i)return i;n=n.$container}while(n)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(r=>r.name===t)}},vh=class{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var t;return Wd(e)?e.$comment:(t=Wo(e.$cstNode,this.grammarConfig().multilineCommentRules))==null?void 0:t.text}},Rh=class{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},kx=class{constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let r=await this.acquireParserWorker(t),n=new it,i,a=t.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(s=>{let o=this.hydrator.hydrate(s);n.resolve(o)}).catch(s=>{n.reject(s)}).finally(()=>{a.dispose(),clearTimeout(i)}),n.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(let r of this.workerPool)if(r.ready)return r.lock(),r;let t=new it;return e.onCancellationRequested(()=>{let r=this.queue.indexOf(t);r>=0&&this.queue.splice(r,1),t.reject(Et)}),this.queue.push(t),t.promise}},xx=class{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new sa.Emitter,this.deferred=new it,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(i=>{let a=i;this.deferred.resolve(a),this.unlock()}),r(i=>{this.deferred.reject(i),this.unlock()})}terminate(){this.deferred.reject(Et),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw Error("Parser worker is busy");return this._parsing=!0,this.deferred=new it,this.sendMessage(e),this.deferred.promise}},$h=class{constructor(){this.previousTokenSource=new D.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=eo();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=D.CancellationToken.None){let n=new it,i={action:t,deferred:n,cancellationToken:r};return e.push(i),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:t,deferred:r,cancellationToken:n})=>{try{let i=await Promise.resolve().then(()=>t(n));r.resolve(i)}catch(i){jr(i)?r.resolve(void 0):r.reject(i)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},Eh=class{constructor(e){this.grammarElementIdMap=new ta,this.tokenTypeIdMap=new ta,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(t=>Object.assign(Object.assign({},t),{message:t.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,r=new Map;for(let n of gt(e))t.set(n,{});if(e.$cstNode)for(let n of Qr(e.$cstNode))r.set(n,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){let r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(let[n,i]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(i)){let a=[];r[n]=a;for(let s of i)Y(s)?a.push(this.dehydrateAstNode(s,t)):Te(s)?a.push(this.dehydrateReference(s,t)):a.push(s)}else Y(i)?r[n]=this.dehydrateAstNode(i,t):Te(i)?r[n]=this.dehydrateReference(i,t):i!==void 0&&(r[n]=i);return r}dehydrateReference(e,t){let r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){let r=t.cstNodes.get(e);return xa(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),ht(e)?r.content=e.content.map(n=>this.dehydrateCstNode(n,t)):Ft(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){let t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){let t=new Map,r=new Map;for(let i of gt(e))t.set(i,{});let n;if(e.$cstNode)for(let i of Qr(e.$cstNode)){let a;"fullText"in i?(a=new Ws(i.fullText),n=a):"content"in i?a=new Xi:"tokenType"in i&&(a=this.hydrateCstLeafNode(i)),a&&(r.set(i,a),a.root=n)}return{astNodes:t,cstNodes:r}}hydrateAstNode(e,t){let r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for(let[n,i]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(i)){let a=[];r[n]=a;for(let s of i)Y(s)?a.push(this.setParent(this.hydrateAstNode(s,t),r)):Te(s)?a.push(this.hydrateReference(s,r,n,t)):a.push(s)}else Y(i)?r[n]=this.setParent(this.hydrateAstNode(i,t),r):Te(i)?r[n]=this.hydrateReference(i,r,n,t):i!==void 0&&(r[n]=i);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,n){return this.linker.buildReference(t,r,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){let n=t.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),ht(n))for(let i of e.content){let a=this.hydrateCstNode(i,t,r++);n.content.push(a)}return n}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),r=e.offset,n=e.length,i=e.startLine,a=e.startColumn,s=e.endLine,o=e.endColumn,l=e.hidden;return new qi(r,n,{start:{line:i,character:a},end:{line:s,character:o}},t,l)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of gt(this.grammar))Na(t)&&this.grammarElementIdMap.set(t,e++)}};function To(e){return{documentation:{CommentProvider:t=>new vh(t),DocumentationProvider:t=>new Th(t)},parser:{AsyncParser:t=>new Rh(t),GrammarConfig:t=>Kl(t),LangiumParser:t=>xd(t),CompletionParser:t=>kd(t),ValueConverter:()=>new Qs,TokenBuilder:()=>new Zi,Lexer:t=>new lo(t),ParserErrorMessageProvider:()=>new qs,LexerErrorMessageProvider:()=>new oh},workspace:{AstNodeLocator:()=>new rh,AstNodeDescriptionProvider:t=>new eh(t),ReferenceDescriptionProvider:t=>new th(t)},references:{Linker:t=>new Ud(t),NameProvider:()=>new Gd,ScopeProvider:t=>new Hd(t),ScopeComputation:t=>new Bd(t),References:t=>new jd(t)},serializer:{Hydrator:t=>new Eh(t),JsonSerializer:t=>new Yd(t)},validation:{DocumentValidator:t=>new Jd(t),ValidationRegistry:t=>new Xd(t)},shared:()=>e.shared}}function vo(e){return{ServiceRegistry:t=>new qd(t),workspace:{LangiumDocuments:t=>new Dd(t),LangiumDocumentFactory:t=>new Md(t),DocumentBuilder:t=>new ih(t),IndexManager:t=>new ah(t),WorkspaceManager:t=>new sh(t),FileSystemProvider:t=>e.fileSystemProvider(t),WorkspaceLock:()=>new $h,ConfigurationProvider:t=>new nh(t)}}}var Ah;(function(e){e.merge=(t,r)=>la(la({},t),r)})(Ah||(Ah={}));function oa(e,t,r,n,i,a,s,o,l){return Sh([e,t,r,n,i,a,s,o,l].reduce(la,{}))}var kh=Symbol("isProxy");function xh(e){if(e&&e[kh])for(let t of Object.values(e))xh(t);return e}function Sh(e,t){let r=new Proxy({},{deleteProperty:()=>!1,set:()=>{throw Error("Cannot set property on injected service container")},get:(n,i)=>i===kh?!0:Ih(n,i,e,t||r),getOwnPropertyDescriptor:(n,i)=>(Ih(n,i,e,t||r),Object.getOwnPropertyDescriptor(n,i)),has:(n,i)=>i in e,ownKeys:()=>[...Object.getOwnPropertyNames(e)]});return r}var Ch=Symbol();function Ih(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:e[t]});if(e[t]===Ch)throw Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){let i=r[t];e[t]=Ch;try{e[t]=typeof i=="function"?i(n):Sh(i,n)}catch(a){throw e[t]=a instanceof Error?a:void 0,a}return e[t]}else return}function la(e,t){if(t){for(let[r,n]of Object.entries(t))if(n!==void 0){let i=e[r];i!==null&&n!==null&&typeof i=="object"&&typeof n=="object"?e[r]=la(i,n):e[r]=n}}return e}const Ro={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]};var Hr;(function(e){e.REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation"})(Hr||(Hr={}));var Nh=class extends Zi{constructor(e=Ro){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options=Object.assign(Object.assign({},Ro),e),this.indentTokenType=bn({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=bn({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let r=super.buildTokens(e,t);if(!uo(r))throw Error("Invalid tokens built by default builder");let{indentTokenName:n,dedentTokenName:i,whitespaceTokenName:a,ignoreIndentationDelimiters:s}=this.options,o,l,u,c=[];for(let d of r){for(let[h,f]of s)d.name===h?d.PUSH_MODE=Hr.IGNORE_INDENTATION:d.name===f&&(d.POP_MODE=!0);d.name===i?o=d:d.name===n?l=d:d.name===a?u=d:c.push(d)}if(!o||!l||!u)throw Error("Some indentation/whitespace tokens not found!");return s.length>0?{modes:{[Hr.REGULAR]:[o,l,...c,u],[Hr.IGNORE_INDENTATION]:[...c,u]},defaultMode:Hr.REGULAR}:[o,l,u,...c]}flushLexingReport(e){let t=super.flushLexingReport(e);return Object.assign(Object.assign({},t),{remainingDedents:this.flushRemainingDedents(e)})}isStartOfLine(e,t){return t===0||`\r +`.includes(e[t-1])}matchWhitespace(e,t,r,n){this.whitespaceRegExp.lastIndex=t;let i=this.whitespaceRegExp.exec(e);return{currIndentLevel:(i==null?void 0:i[0].length)??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,t,r,n){let i=this.getLineNumber(t,n);return Li(e,r,n,n+r.length,i,i,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:s}=this.matchWhitespace(e,t,r,n);return i<=a?null:(this.indentationStack.push(i),s)}dedentMatcher(e,t,r,n){var c,d;if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:s}=this.matchWhitespace(e,t,r,n);if(i>=a)return null;let o=this.indentationStack.lastIndexOf(i);if(o===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${i} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:((c=s==null?void 0:s[0])==null?void 0:c.length)??0,line:this.getLineNumber(e,t),column:1}),null;let l=this.indentationStack.length-o-1,u=((d=e.substring(0,t).match(/[\r\n]+$/))==null?void 0:d[0].length)??1;for(let h=0;h1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},Sx=class extends lo{constructor(e){if(super(e),e.parser.TokenBuilder instanceof Nh)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,t=oo){let r=super.tokenize(e),n=r.report;(t==null?void 0:t.mode)==="full"&&r.tokens.push(...n.remainingDedents),n.remainingDedents=[];let{indentTokenType:i,dedentTokenType:a}=this.indentationTokenBuilder,s=i.tokenTypeIdx,o=a.tokenTypeIdx,l=[],u=r.tokens.length-1;for(let c=0;c=0&&l.push(r.tokens[u]),r.tokens=l,r}},bh=class{readFile(){throw Error("No file system is available.")}async readDirectory(){return[]}};const $o={fileSystemProvider:()=>new bh};var Cx={Grammar:()=>{},LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"})},Ix={AstReflection:()=>new Ma};function Nx(){let e=oa(vo($o),Ix),t=oa(To({shared:e}),Cx);return e.ServiceRegistry.register(t),t}function ot(e){let t=Nx(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,at.parse(`memory://${r.name??"grammar"}.langium`)),r}var wh=kt({AstUtils:()=>ml,BiMap:()=>ta,Cancellation:()=>D,ContextCache:()=>na,CstUtils:()=>Bo,DONE_RESULT:()=>ae,Deferred:()=>it,Disposable:()=>Vr,DisposableCache:()=>ra,DocumentCache:()=>Vd,EMPTY_STREAM:()=>Gn,ErrorWithLocation:()=>Kn,GrammarUtils:()=>Nl,MultiMap:()=>Br,OperationCancelled:()=>Et,Reduction:()=>jn,RegExpUtils:()=>$l,SimpleCache:()=>ao,StreamImpl:()=>Fe,TreeStreamImpl:()=>Gt,URI:()=>at,UriUtils:()=>st,WorkspaceCache:()=>so,assertUnreachable:()=>xt,delayNextTick:()=>Zs,interruptAndCheck:()=>ue,isOperationCancelled:()=>jr,loadGrammarFromJson:()=>ot,setInterruptionPeriod:()=>bd,startCancelableOperation:()=>eo,stream:()=>H},1);Dn(wh,sa,void 0,1),Dn(kt({AbstractAstReflection:()=>ka,AbstractCstNode:()=>Hs,AbstractLangiumParser:()=>Ys,AbstractParserErrorMessageProvider:()=>vd,AbstractThreadedAsyncParser:()=>kx,AstUtils:()=>ml,BiMap:()=>ta,Cancellation:()=>D,CompositeCstNodeImpl:()=>Xi,ContextCache:()=>na,CstNodeBuilder:()=>md,CstUtils:()=>Bo,DEFAULT_TOKENIZE_OPTIONS:()=>oo,DONE_RESULT:()=>ae,DatatypeSymbol:()=>Ji,DefaultAstNodeDescriptionProvider:()=>eh,DefaultAstNodeLocator:()=>rh,DefaultAsyncParser:()=>Rh,DefaultCommentProvider:()=>vh,DefaultConfigurationProvider:()=>nh,DefaultDocumentBuilder:()=>ih,DefaultDocumentValidator:()=>Jd,DefaultHydrator:()=>Eh,DefaultIndexManager:()=>ah,DefaultJsonSerializer:()=>Yd,DefaultLangiumDocumentFactory:()=>Md,DefaultLangiumDocuments:()=>Dd,DefaultLexer:()=>lo,DefaultLexerErrorMessageProvider:()=>oh,DefaultLinker:()=>Ud,DefaultNameProvider:()=>Gd,DefaultReferenceDescriptionProvider:()=>th,DefaultReferences:()=>jd,DefaultScopeComputation:()=>Bd,DefaultScopeProvider:()=>Hd,DefaultServiceRegistry:()=>qd,DefaultTokenBuilder:()=>Zi,DefaultValueConverter:()=>Qs,DefaultWorkspaceLock:()=>$h,DefaultWorkspaceManager:()=>sh,Deferred:()=>it,Disposable:()=>Vr,DisposableCache:()=>ra,DocumentCache:()=>Vd,DocumentState:()=>G,DocumentValidator:()=>Me,EMPTY_SCOPE:()=>dx,EMPTY_STREAM:()=>Gn,EmptyFileSystem:()=>$o,EmptyFileSystemProvider:()=>bh,ErrorWithLocation:()=>Kn,GrammarAST:()=>of,GrammarUtils:()=>Nl,IndentationAwareLexer:()=>Sx,IndentationAwareTokenBuilder:()=>Nh,JSDocDocumentationProvider:()=>Th,LangiumCompletionParser:()=>Rd,LangiumParser:()=>Td,LangiumParserErrorMessageProvider:()=>qs,LeafCstNodeImpl:()=>qi,LexingMode:()=>Hr,MapScope:()=>Kd,Module:()=>Ah,MultiMap:()=>Br,OperationCancelled:()=>Et,ParserWorker:()=>xx,Reduction:()=>jn,RegExpUtils:()=>$l,RootCstNodeImpl:()=>Ws,SimpleCache:()=>ao,StreamImpl:()=>Fe,StreamScope:()=>io,TextDocument:()=>to,TreeStreamImpl:()=>Gt,URI:()=>at,UriUtils:()=>st,ValidationCategory:()=>ia,ValidationRegistry:()=>Xd,ValueConverter:()=>nt,WorkspaceCache:()=>so,assertUnreachable:()=>xt,createCompletionParser:()=>kd,createDefaultCoreModule:()=>To,createDefaultSharedCoreModule:()=>vo,createGrammarConfig:()=>Kl,createLangiumParser:()=>xd,createParser:()=>Xs,delayNextTick:()=>Zs,diagnosticData:()=>Kr,eagerLoad:()=>xh,getDiagnosticRange:()=>Qd,indentationBuilderDefaultOptions:()=>Ro,inject:()=>oa,interruptAndCheck:()=>ue,isAstNode:()=>Y,isAstNodeDescription:()=>jo,isAstNodeWithComment:()=>Wd,isCompositeCstNode:()=>ht,isIMultiModeLexerDefinition:()=>co,isJSDoc:()=>uh,isLeafCstNode:()=>Ft,isLinkingError:()=>Jr,isNamed:()=>Fd,isOperationCancelled:()=>jr,isReference:()=>Te,isRootCstNode:()=>xa,isTokenTypeArray:()=>uo,isTokenTypeDictionary:()=>ho,loadGrammarFromJson:()=>ot,parseJSDoc:()=>lh,prepareLangiumParser:()=>Sd,setInterruptionPeriod:()=>bd,startCancelableOperation:()=>eo,stream:()=>H,toDiagnosticData:()=>Zd,toDiagnosticSeverity:()=>aa},1),wh,void 0,1);var bx=Object.defineProperty,w=(e,t)=>bx(e,"name",{value:t,configurable:!0}),_h="Statement",ua="Architecture";function wx(e){return De.isInstance(e,ua)}w(wx,"isArchitecture");var ca="Axis",On="Branch";function _x(e){return De.isInstance(e,On)}w(_x,"isBranch");var da="Checkout",ha="CherryPicking",Eo="ClassDefStatement",Ln="Commit";function Ox(e){return De.isInstance(e,Ln)}w(Ox,"isCommit");var Ao="Curve",ko="Edge",xo="Entry",Pn="GitGraph";function Lx(e){return De.isInstance(e,Pn)}w(Lx,"isGitGraph");var So="Group",fa="Info";function Px(e){return De.isInstance(e,fa)}w(Px,"isInfo");var pa="Item",Co="Junction",Mn="Merge";function Mx(e){return De.isInstance(e,Mn)}w(Mx,"isMerge");var Io="Option",ma="Packet";function Dx(e){return De.isInstance(e,ma)}w(Dx,"isPacket");var ga="PacketBlock";function Ux(e){return De.isInstance(e,ga)}w(Ux,"isPacketBlock");function Fx(e){return De.isInstance(e,"Pie")}w(Fx,"isPie");var ya="PieSection";function Gx(e){return De.isInstance(e,ya)}w(Gx,"isPieSection");var No="Radar",bo="Service",Ta="Treemap";function jx(e){return De.isInstance(e,Ta)}w(jx,"isTreemap");var wo="TreemapRow",va="Direction",Ra="Leaf",$a="Section",Oh=(Wr=class extends ka{getAllTypes(){return[ua,ca,On,da,ha,Eo,Ln,Ao,va,ko,xo,Pn,So,fa,pa,Co,Ra,Mn,Io,ma,ga,"Pie",ya,No,$a,bo,_h,Ta,wo]}computeIsSubtype(t,r){switch(t){case On:case da:case ha:case Ln:case Mn:return this.isSubtype(_h,r);case va:return this.isSubtype(Pn,r);case Ra:case $a:return this.isSubtype(pa,r);default:return!1}}getReferenceType(t){let r=`${t.container.$type}:${t.property}`;if(r==="Entry:axis")return ca;throw Error(`${r} is not a valid reference id.`)}getTypeMetaData(t){switch(t){case ua:return{name:ua,properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case ca:return{name:ca,properties:[{name:"label"},{name:"name"}]};case On:return{name:On,properties:[{name:"name"},{name:"order"}]};case da:return{name:da,properties:[{name:"branch"}]};case ha:return{name:ha,properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case Eo:return{name:Eo,properties:[{name:"className"},{name:"styleText"}]};case Ln:return{name:Ln,properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case Ao:return{name:Ao,properties:[{name:"entries",defaultValue:[]},{name:"label"},{name:"name"}]};case ko:return{name:ko,properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case xo:return{name:xo,properties:[{name:"axis"},{name:"value"}]};case Pn:return{name:Pn,properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case So:return{name:So,properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case fa:return{name:fa,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case pa:return{name:pa,properties:[{name:"classSelector"},{name:"name"}]};case Co:return{name:Co,properties:[{name:"id"},{name:"in"}]};case Mn:return{name:Mn,properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case Io:return{name:Io,properties:[{name:"name"},{name:"value",defaultValue:!1}]};case ma:return{name:ma,properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case ga:return{name:ga,properties:[{name:"bits"},{name:"end"},{name:"label"},{name:"start"}]};case"Pie":return{name:"Pie",properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case ya:return{name:ya,properties:[{name:"label"},{name:"value"}]};case No:return{name:No,properties:[{name:"accDescr"},{name:"accTitle"},{name:"axes",defaultValue:[]},{name:"curves",defaultValue:[]},{name:"options",defaultValue:[]},{name:"title"}]};case bo:return{name:bo,properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case Ta:return{name:Ta,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"},{name:"TreemapRows",defaultValue:[]}]};case wo:return{name:wo,properties:[{name:"indent"},{name:"item"}]};case va:return{name:va,properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};case Ra:return{name:Ra,properties:[{name:"classSelector"},{name:"name"},{name:"value"}]};case $a:return{name:$a,properties:[{name:"classSelector"},{name:"name"}]};default:return{name:t,properties:[]}}}},w(Wr,"MermaidAstReflection"),Wr),De=new Oh,Bx,Kx=w(()=>Bx??(Bx=ot(`{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"InfoGrammar"),Vx,Hx=w(()=>Vx??(Vx=ot(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PacketGrammar"),Wx,zx=w(()=>Wx??(Wx=ot(`{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"PieGrammar"),Yx,qx=w(()=>Yx??(Yx=ot(`{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"ArchitectureGrammar"),Xx,Jx=w(()=>Xx??(Xx=ot(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`)),"GitGraphGrammar"),Qx,Zx=w(()=>Qx??(Qx=ot(`{"$type":"Grammar","isDeclared":true,"name":"Radar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}}}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"types":[],"usedGrammars":[]}`)),"RadarGrammar"),eS,tS=w(()=>eS??(eS=ot(`{"$type":"Grammar","isDeclared":true,"name":"Treemap","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","}},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammar"),rS={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},nS={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},iS={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},aS={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},sS={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},oS={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},lS={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},uS={AstReflection:w(()=>new Oh,"AstReflection")},cS={Grammar:w(()=>Kx(),"Grammar"),LanguageMetaData:w(()=>rS,"LanguageMetaData"),parser:{}},dS={Grammar:w(()=>Hx(),"Grammar"),LanguageMetaData:w(()=>nS,"LanguageMetaData"),parser:{}},hS={Grammar:w(()=>zx(),"Grammar"),LanguageMetaData:w(()=>iS,"LanguageMetaData"),parser:{}},fS={Grammar:w(()=>qx(),"Grammar"),LanguageMetaData:w(()=>aS,"LanguageMetaData"),parser:{}},pS={Grammar:w(()=>Jx(),"Grammar"),LanguageMetaData:w(()=>sS,"LanguageMetaData"),parser:{}},mS={Grammar:w(()=>Zx(),"Grammar"),LanguageMetaData:w(()=>oS,"LanguageMetaData"),parser:{}},gS={Grammar:w(()=>tS(),"Grammar"),LanguageMetaData:w(()=>lS,"LanguageMetaData"),parser:{}},yS={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},Lh=(zr=class extends Qs{runConverter(t,r,n){let i=this.runCommonConverter(t,r,n);return i===void 0&&(i=this.runCustomConverter(t,r,n)),i===void 0?super.runConverter(t,r,n):i}runCommonConverter(t,r,n){let i=yS[t.name];if(i===void 0)return;let a=i.exec(r);if(a!==null){if(a[1]!==void 0)return a[1].trim().replace(/[\t ]{2,}/gm," ");if(a[2]!==void 0)return a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` +`)}}},w(zr,"AbstractMermaidValueConverter"),zr),TS=(Yr=class extends Lh{runCustomConverter(t,r,n){}},w(Yr,"CommonValueConverter"),Yr),Ph=(qr=class extends Zi{constructor(t){super(),this.keywords=new Set(t)}buildKeywordTokens(t,r,n){let i=super.buildKeywordTokens(t,r,n);return i.forEach(a=>{this.keywords.has(a.name)&&a.PATTERN!==void 0&&(a.PATTERN=RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),i}},w(qr,"AbstractMermaidTokenBuilder"),qr);Xr=class extends Ph{},w(Xr,"CommonTokenBuilder");export{pS as a,dS as c,gS as d,w as f,vo as g,To as h,TS as i,hS as l,oa as m,Lh as n,cS as o,$o as p,fS as r,uS as s,Ph as t,mS as u}; diff --git a/docs/assets/chunk-FWNWRKHM-XgKeqUvn.js b/docs/assets/chunk-FWNWRKHM-XgKeqUvn.js new file mode 100644 index 0000000..fcd8bcc --- /dev/null +++ b/docs/assets/chunk-FWNWRKHM-XgKeqUvn.js @@ -0,0 +1 @@ +var i,s,o;import{d as u,f as t,g as f,h as T,m as d,n as v,p as g,s as h,t as R}from"./chunk-FPAJGGOC-C0XAW5Os.js";var V=(i=class extends R{constructor(){super(["treemap"])}},t(i,"TreemapTokenBuilder"),i),C=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,S=(s=class extends v{runCustomConverter(r,e,n){if(r.name==="NUMBER2")return parseFloat(e.replace(/,/g,""));if(r.name==="SEPARATOR"||r.name==="STRING2")return e.substring(1,e.length-1);if(r.name==="INDENTATION")return e.length;if(r.name==="ClassDef"){if(typeof e!="string")return e;let a=C.exec(e);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}},t(s,"TreemapValueConverter"),s);function m(l){let r=l.validation.TreemapValidator,e=l.validation.ValidationRegistry;if(e){let n={Treemap:r.checkSingleRoot.bind(r)};e.register(n,r)}}t(m,"registerValidationChecks");var k=(o=class{checkSingleRoot(r,e){let n;for(let a of r.TreemapRows)a.item&&(n===void 0&&a.indent===void 0?n=0:(a.indent===void 0||n!==void 0&&n>=parseInt(a.indent,10))&&e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},t(o,"TreemapValidator"),o),p={parser:{TokenBuilder:t(()=>new V,"TokenBuilder"),ValueConverter:t(()=>new S,"ValueConverter")},validation:{TreemapValidator:t(()=>new k,"TreemapValidator")}};function c(l=g){let r=d(f(l),h),e=d(T({shared:r}),u,p);return r.ServiceRegistry.register(e),m(e),{shared:r,Treemap:e}}t(c,"createTreemapServices");export{c as n,p as t}; diff --git a/docs/assets/chunk-HN2XXSSU-xW6J7MXn.js b/docs/assets/chunk-HN2XXSSU-xW6J7MXn.js new file mode 100644 index 0000000..a828972 --- /dev/null +++ b/docs/assets/chunk-HN2XXSSU-xW6J7MXn.js @@ -0,0 +1 @@ +import{n as f}from"./src-faGJHwXX.js";var i={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},b={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function x(e,l){if(e===void 0||l===void 0)return{angle:0,deltaX:0,deltaY:0};e=a(e),l=a(l);let[s,t]=[e.x,e.y],[n,y]=[l.x,l.y],h=n-s,c=y-t;return{angle:Math.atan(c/h),deltaX:h,deltaY:c}}f(x,"calculateDeltaAndAngle");var a=f(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),u=f(e=>({x:f(function(l,s,t){let n=0,y=a(t[0]).x=0?1:-1)}else if(s===t.length-1&&Object.hasOwn(i,e.arrowTypeEnd)){let{angle:r,deltaX:w}=x(t[t.length-1],t[t.length-2]);n=i[e.arrowTypeEnd]*Math.cos(r)*(w>=0?1:-1)}let h=Math.abs(a(l).x-a(t[t.length-1]).x),c=Math.abs(a(l).y-a(t[t.length-1]).y),g=Math.abs(a(l).x-a(t[0]).x),M=Math.abs(a(l).y-a(t[0]).y),p=i[e.arrowTypeStart],d=i[e.arrowTypeEnd];if(h0&&c0&&M=0?1:-1)}else if(s===t.length-1&&Object.hasOwn(i,e.arrowTypeEnd)){let{angle:r,deltaY:w}=x(t[t.length-1],t[t.length-2]);n=i[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(w>=0?1:-1)}let h=Math.abs(a(l).y-a(t[t.length-1]).y),c=Math.abs(a(l).x-a(t[t.length-1]).x),g=Math.abs(a(l).y-a(t[0]).y),M=Math.abs(a(l).x-a(t[0]).x),p=i[e.arrowTypeStart],d=i[e.arrowTypeEnd];if(h0&&c0&&M{let e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;i=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){let l=e.pop(),p=e.pop(),s={provider:e.length>0?e[0]:i,prefix:p,name:l};return r&&!$(s)?null:s}let a=e[0],o=a.split("-");if(o.length>1){let l={provider:i,prefix:o.shift(),name:o.join("-")};return r&&!$(l)?null:l}if(n&&i===""){let l={provider:i,prefix:"",name:a};return r&&!$(l,n)?null:l}return null},$=(t,r)=>t?!!((r&&t.prefix===""||t.prefix)&&t.name):!1;function ct(t,r){let n={};!t.hFlip!=!r.hFlip&&(n.hFlip=!0),!t.vFlip!=!r.vFlip&&(n.vFlip=!0);let i=((t.rotate||0)+(r.rotate||0))%4;return i&&(n.rotate=i),n}function A(t,r){let n=ct(t,r);for(let i in ot)i in x?i in t&&!(i in n)&&(n[i]=x[i]):i in r?n[i]=r[i]:i in t&&(n[i]=t[i]);return n}function ft(t,r){let n=t.icons,i=t.aliases||Object.create(null),e=Object.create(null);function a(o){if(n[o])return e[o]=[];if(!(o in e)){e[o]=null;let l=i[o]&&i[o].parent,p=l&&a(l);p&&(e[o]=[l].concat(p))}return e[o]}return(r||Object.keys(n).concat(Object.keys(i))).forEach(a),e}function C(t,r,n){let i=t.icons,e=t.aliases||Object.create(null),a={};function o(l){a=A(i[l]||e[l],a)}return o(r),n.forEach(o),A(t,a)}function ht(t,r){if(t.icons[r])return C(t,r,[]);let n=ft(t,[r])[r];return n?C(t,r,n):null}var ut=/(-?[0-9.]*[0-9]+[0-9.]*)/g,gt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function N(t,r,n){if(r===1)return t;if(n||(n=100),typeof t=="number")return Math.ceil(t*r*n)/n;if(typeof t!="string")return t;let i=t.split(ut);if(i===null||!i.length)return t;let e=[],a=i.shift(),o=gt.test(a);for(;;){if(o){let l=parseFloat(a);isNaN(l)?e.push(a):e.push(Math.ceil(l*r*n)/n)}else e.push(a);if(a=i.shift(),a===void 0)return e.join("");o=!o}}function dt(t,r="defs"){let n="",i=t.indexOf("<"+r);for(;i>=0;){let e=t.indexOf(">",i),a=t.indexOf("",a);if(o===-1)break;n+=t.slice(e+1,a).trim(),t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:n,content:t}}function mt(t,r){return t?""+t+""+r:r}function yt(t,r,n){let i=dt(t);return mt(i.defs,r+i.content+n)}var wt=t=>t==="unset"||t==="undefined"||t==="none";function xt(t,r){let n={...z,...t},i={...st,...r},e={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,i].forEach(w=>{let u=[],et=w.hFlip,B=w.vFlip,m=w.rotate;et?B?m+=2:(u.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),u.push("scale(-1 1)"),e.top=e.left=0):B&&(u.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),u.push("scale(1 -1)"),e.top=e.left=0);let d;switch(m<0&&(m-=Math.floor(m/4)*4),m%=4,m){case 1:d=e.height/2+e.top,u.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:u.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:d=e.width/2+e.left,u.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}m%2==1&&(e.left!==e.top&&(d=e.left,e.left=e.top,e.top=d),e.width!==e.height&&(d=e.width,e.width=e.height,e.height=d)),u.length&&(a=yt(a,'',""))});let o=i.width,l=i.height,p=e.width,s=e.height,c,h;o===null?(h=l===null?"1em":l==="auto"?s:l,c=N(h,p/s)):(c=o==="auto"?p:o,h=l===null?N(c,s/p):l==="auto"?s:l);let g={},I=(w,u)=>{wt(u)||(g[w]=u.toString())};I("width",c),I("height",h);let M=[e.left,e.top,p,s];return g.viewBox=M.join(" "),{attributes:g,viewBox:M,body:a}}var bt=/\sid="(\S+)"/g,kt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),vt=0;function St(t,r=kt){let n=[],i;for(;i=bt.exec(t);)n.push(i[1]);if(!n.length)return t;let e="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{let o=typeof r=="function"?r(a):r+(vt++).toString(),l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+e+"$3")}),t=t.replace(new RegExp(e,"g"),""),t}function jt(t,r){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let i in r)n+=" "+i+'="'+r[i]+'"';return'"+t+""}function D(t){var r=[...arguments].slice(1),n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(o,l){var p=l.match(/\n([\t ]+|(?!\s).)/g);return p?o.concat(p.map(function(s){var c;return((c=s.match(/[\t ]/g))==null?void 0:c.length)??0})):o},[]);if(i.length){var e=RegExp(` +[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(o){return o.replace(e,` +`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return r.forEach(function(o,l){var p=a.match(/(?:^|\n)( *)$/),s=p?p[1]:"",c=o;typeof o=="string"&&o.includes(` +`)&&(c=String(o).split(` +`).map(function(h,g){return g===0?h:""+s+h}).join(` +`)),a+=c+n[l+1]}),a}var H={body:'?',height:80,width:80},E=new Map,P=new Map,$t=f(t=>{for(let r of t){if(!r.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(y.debug("Registering icon pack:",r.name),"loader"in r)P.set(r.name,r.loader);else if("icons"in r)E.set(r.name,r.icons);else throw y.error("Invalid icon loader:",r),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),G=f(async(t,r)=>{let n=pt(t,!0,r!==void 0);if(!n)throw Error(`Invalid icon name: ${t}`);let i=n.prefix||r;if(!i)throw Error(`Icon name must contain a prefix: ${t}`);let e=E.get(i);if(!e){let o=P.get(i);if(!o)throw Error(`Icon set not found: ${n.prefix}`);try{e={...await o(),prefix:i},E.set(i,e)}catch(l){throw y.error(l),Error(`Failed to load icon set: ${n.prefix}`)}}let a=ht(e,n.name);if(!a)throw Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),Et=f(async t=>{try{return await G(t),!0}catch{return!1}},"isIconAvailable"),U=f(async(t,r,n)=>{let i;try{i=await G(t,r==null?void 0:r.fallbackPrefix)}catch(a){y.error(a),i=H}let e=xt(i,r);return j(jt(St(e.body),{...e.attributes,...n}),L())},"getIconSVG");function V(t,{markdownAutoWrap:r}){let n=D(t.replace(//g,` +`).replace(/\n{2,}/g,` +`));return r===!1?n.replace(/ /g," "):n}f(V,"preprocessMarkdown");function X(t,r={}){let n=V(t,r),i=R.lexer(n),e=[[]],a=0;function o(l,p="normal"){l.type==="text"?l.text.split(` +`).forEach((s,c)=>{c!==0&&(a++,e.push([])),s.split(" ").forEach(h=>{h=h.replace(/'/g,"'"),h&&e[a].push({content:h,type:p})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(s=>{o(s,l.type)}):l.type==="html"&&e[a].push({content:l.text,type:"normal"})}return f(o,"processNode"),i.forEach(l=>{var p;l.type==="paragraph"?(p=l.tokens)==null||p.forEach(s=>{o(s)}):l.type==="html"?e[a].push({content:l.text,type:"normal"}):e[a].push({content:l.raw,type:"normal"})}),e}f(X,"markdownToLines");function Y(t,{markdownAutoWrap:r}={}){let n=R.lexer(t);function i(e){var a,o,l;return e.type==="text"?r===!1?e.text.replace(/\n */g,"
").replace(/ /g," "):e.text.replace(/\n */g,"
"):e.type==="strong"?`${(a=e.tokens)==null?void 0:a.map(i).join("")}`:e.type==="em"?`${(o=e.tokens)==null?void 0:o.map(i).join("")}`:e.type==="paragraph"?`

${(l=e.tokens)==null?void 0:l.map(i).join("")}

`:e.type==="space"?"":e.type==="html"?`${e.text}`:e.type==="escape"?e.text:(y.warn(`Unsupported markdown: ${e.type}`),e.raw)}return f(i,"output"),n.map(i).join("")}f(Y,"markdownToHTML");function Z(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(r=>r.segment):[...t]}f(Z,"splitTextToChars");function q(t,r){return O(t,[],Z(r.content),r.type)}f(q,"splitWordToFitWidth");function O(t,r,n,i){if(n.length===0)return[{content:r.join(""),type:i},{content:"",type:i}];let[e,...a]=n,o=[...r,e];return t([{content:o.join(""),type:i}])?O(t,o,a,i):(r.length===0&&e&&(r.push(e),n.shift()),[{content:r.join(""),type:i},{content:n.join(""),type:i}])}f(O,"splitWordToFitWidthRecursion");function J(t,r){if(t.some(({content:n})=>n.includes(` +`)))throw Error("splitLineToFitWidth does not support newlines in the line");return b(t,r)}f(J,"splitLineToFitWidth");function b(t,r,n=[],i=[]){if(t.length===0)return i.length>0&&n.push(i),n.length>0?n:[];let e="";t[0].content===" "&&(e=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},o=[...i];if(e!==""&&o.push({content:e,type:"normal"}),o.push(a),r(o))return b(t,r,n,o);if(i.length>0)n.push(i),t.unshift(a);else if(a.content){let[l,p]=q(r,a);n.push([l]),p.content&&t.unshift(p)}return b(t,r,n)}f(b,"splitLineToFitWidthRecursion");function T(t,r){r&&t.attr("style",r)}f(T,"applyStyle");async function K(t,r,n,i,e=!1,a=L()){let o=t.append("foreignObject");o.attr("width",`${10*n}px`),o.attr("height",`${10*n}px`);let l=o.append("xhtml:div"),p=W(r.label)?await rt(r.label.replace(it.lineBreakRegex,` +`),a):j(r.label,a),s=r.isNode?"nodeLabel":"edgeLabel",c=l.append("span");c.html(p),T(c,r.labelStyle),c.attr("class",`${s} ${i}`),T(l,r.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),l.style("max-width",n+"px"),l.style("text-align","center"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),e&&l.attr("class","labelBkg");let h=l.node().getBoundingClientRect();return h.width===n&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",n+"px"),h=l.node().getBoundingClientRect()),o.node()}f(K,"addHtmlSpan");function k(t,r,n){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*n-.1+"em").attr("dy",n+"em")}f(k,"createTspan");function Q(t,r,n){let i=t.append("text"),e=k(i,1,r);v(e,n);let a=e.node().getComputedTextLength();return i.remove(),a}f(Q,"computeWidthOfText");function _(t,r,n){var o;let i=t.append("text"),e=k(i,1,r);v(e,[{content:n,type:"normal"}]);let a=(o=e.node())==null?void 0:o.getBoundingClientRect();return a&&i.remove(),a}f(_,"computeDimensionOfText");function tt(t,r,n,i=!1){let e=1.1,a=r.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1"),p=0;for(let s of n){let c=f(g=>Q(a,e,g)<=t,"checkWidth"),h=c(s)?[s]:J(s,c);for(let g of h)v(k(l,p,e),g),p++}if(i){let s=l.node().getBBox();return o.attr("x",s.x-2).attr("y",s.y-2).attr("width",s.width+4).attr("height",s.height+4),a.node()}else return l.node()}f(tt,"createFormattedText");function v(t,r){t.text(""),r.forEach((n,i)=>{let e=t.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");i===0?e.text(n.content):e.text(" "+n.content)})}f(v,"updateTextContentAndStyles");async function F(t,r={}){let n=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,a,o)=>(n.push((async()=>{let l=`${a}:${o}`;return await Et(l)?await U(l,void 0,{class:"label-icon"}):``})()),e));let i=await Promise.all(n);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}f(F,"replaceIconSubstring");var Ot=f(async(t,r="",{style:n="",isTitle:i=!1,classes:e="",useHtmlLabels:a=!0,isNode:o=!0,width:l=200,addSvgBackground:p=!1}={},s)=>{if(y.debug("XYZ createText",r,n,i,e,a,o,"addSvgBackground: ",p),a){let c=await F(nt(Y(r,s)),s),h=r.replace(/\\\\/g,"\\");return await K(t,{isNode:o,label:W(r)?h:c,labelStyle:n.replace("fill:","color:")},l,e,p,s)}else{let c=tt(l,t,X(r.replace(//g,"
").replace("
","
"),s),r?p:!1);if(o){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));let h=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");S(c).attr("style",h)}else{let h=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");S(c).select("rect").attr("style",h.replace(/background:/g,"fill:"));let g=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");S(c).select("text").attr("style",g)}return c}},"createText");export{F as a,$t as i,Ot as n,H as o,U as r,D as s,_ as t}; diff --git a/docs/assets/chunk-JZLCHNYA-DBaJpCky.js b/docs/assets/chunk-JZLCHNYA-DBaJpCky.js new file mode 100644 index 0000000..1b0994b --- /dev/null +++ b/docs/assets/chunk-JZLCHNYA-DBaJpCky.js @@ -0,0 +1,54 @@ +import{u as Q}from"./src-Bp_72rVO.js";import{a as we,p as el,r as Be,u as U}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as w,r as V}from"./src-faGJHwXX.js";import{A as ut,I as Ge,L as pt,N as tl,O as yt,b as Z,d as al,h as Y,s as ll,y as Se}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as ft}from"./chunk-CVBHYZKI-B6tT645I.js";import{a as N,i as R,r as rl,t as Ae}from"./chunk-ATLVNIR6-DsKp3Ify.js";import{n as pe,r as Le}from"./chunk-JA3XYJ7Z-BlmyoDCa.js";function Ze(r,e,l){if(r&&r.length){let[n,a]=e,s=Math.PI/180*l,d=Math.cos(s),t=Math.sin(s);for(let o of r){let[i,h]=o;o[0]=(i-n)*d-(h-a)*t+n,o[1]=(i-n)*t+(h-a)*d+a}}}function sl(r,e){return r[0]===e[0]&&r[1]===e[1]}function il(r,e,l,n=1){let a=l,s=Math.max(e,.1),d=r[0]&&r[0][0]&&typeof r[0][0]=="number"?[r]:r,t=[0,0];if(a)for(let i of d)Ze(i,t,a);let o=(function(i,h,c){let g=[];for(let x of i){let b=[...x];sl(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&g.push(b)}let u=[];h=Math.max(h,.1);let p=[];for(let x of g)for(let b=0;bx.yminb.ymin?1:x.xb.x?1:x.ymax===b.ymax?0:(x.ymax-b.ymax)/Math.abs(x.ymax-b.ymax))),!p.length)return u;let y=[],m=p[0].ymin,f=0;for(;y.length||p.length;){if(p.length){let x=-1;for(let b=0;bm);b++)x=b;p.splice(0,x+1).forEach((b=>{y.push({s:m,edge:b})}))}if(y=y.filter((x=>!(x.edge.ymax<=m))),y.sort(((x,b)=>x.edge.x===b.edge.x?0:(x.edge.x-b.edge.x)/Math.abs(x.edge.x-b.edge.x))),(c!==1||f%h==0)&&y.length>1)for(let x=0;x=y.length)break;let k=y[x].edge,S=y[b].edge;u.push([[Math.round(k.x),m],[Math.round(S.x),m]])}m+=c,y.forEach((x=>{x.edge.x=x.edge.x+c*x.edge.islope})),f++}return u})(d,s,n);if(a){for(let i of d)Ze(i,t,-a);(function(i,h,c){let g=[];i.forEach((u=>g.push(...u))),Ze(g,h,c)})(o,t,-a)}return o}function ke(r,e){var s;let l=e.hachureAngle+90,n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return e.roughness>=1&&(((s=e.randomizer)==null?void 0:s.next())||Math.random())>.7&&(a=n),il(r,n,l,a||1)}var Xe=class{constructor(r){this.helper=r}fillPolygons(r,e){return this._fillPolygons(r,e)}_fillPolygons(r,e){let l=ke(r,e);return{type:"fillSketch",ops:this.renderLines(l,e)}}renderLines(r,e){let l=[];for(let n of r)l.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return l}};function Ne(r){let e=r[0],l=r[1];return Math.sqrt((e[0]-l[0])**2+(e[1]-l[1])**2)}var nl=class extends Xe{fillPolygons(r,e){let l=e.hachureGap;l<0&&(l=4*e.strokeWidth),l=Math.max(l,.1);let n=ke(r,Object.assign({},e,{hachureGap:l})),a=Math.PI/180*e.hachureAngle,s=[],d=.5*l*Math.cos(a),t=.5*l*Math.sin(a);for(let[o,i]of n)Ne([o,i])&&s.push([[o[0]-d,o[1]+t],[...i]],[[o[0]+d,o[1]-t],[...i]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}},hl=class extends Xe{fillPolygons(r,e){let l=this._fillPolygons(r,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(r,n);return l.ops=l.ops.concat(a.ops),l}},ol=class{constructor(r){this.helper=r}fillPolygons(r,e){let l=ke(r,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(l,e)}dotsOnLines(r,e){let l=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);let s=n/4;for(let d of r){let t=Ne(d),o=t/n,i=Math.ceil(o)-1,h=t-i*n,c=(d[0][0]+d[1][0])/2-n/4,g=Math.min(d[0][1],d[1][1]);for(let u=0;u{let d=Ne(s),t=Math.floor(d/(l+n)),o=(d+n-t*(l+n))/2,i=s[0],h=s[1];i[0]>h[0]&&(i=s[1],h=s[0]);let c=Math.atan((h[1]-i[1])/(h[0]-i[0]));for(let g=0;g{let s=Ne(a),d=Math.round(s/(2*e)),t=a[0],o=a[1];t[0]>o[0]&&(t=a[1],o=a[0]);let i=Math.atan((o[1]-t[1])/(o[0]-t[0]));for(let h=0;hh%2?i+l:i+e));s.push({key:"C",data:o}),e=o[4],l=o[5];break}case"Q":s.push({key:"Q",data:[...t]}),e=t[2],l=t[3];break;case"q":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"Q",data:o}),e=o[2],l=o[3];break}case"A":s.push({key:"A",data:[...t]}),e=t[5],l=t[6];break;case"a":e+=t[5],l+=t[6],s.push({key:"A",data:[t[0],t[1],t[2],t[3],t[4],e,l]});break;case"H":s.push({key:"H",data:[...t]}),e=t[0];break;case"h":e+=t[0],s.push({key:"H",data:[e]});break;case"V":s.push({key:"V",data:[...t]}),l=t[0];break;case"v":l+=t[0],s.push({key:"V",data:[l]});break;case"S":s.push({key:"S",data:[...t]}),e=t[2],l=t[3];break;case"s":{let o=t.map(((i,h)=>h%2?i+l:i+e));s.push({key:"S",data:o}),e=o[2],l=o[3];break}case"T":s.push({key:"T",data:[...t]}),e=t[0],l=t[1];break;case"t":e+=t[0],l+=t[1],s.push({key:"T",data:[e,l]});break;case"Z":case"z":s.push({key:"Z",data:[]}),e=n,l=a}return s}function bt(r){let e=[],l="",n=0,a=0,s=0,d=0,t=0,o=0;for(let{key:i,data:h}of r){switch(i){case"M":e.push({key:"M",data:[...h]}),[n,a]=h,[s,d]=h;break;case"C":e.push({key:"C",data:[...h]}),n=h[4],a=h[5],t=h[2],o=h[3];break;case"L":e.push({key:"L",data:[...h]}),[n,a]=h;break;case"H":n=h[0],e.push({key:"L",data:[n,a]});break;case"V":a=h[0],e.push({key:"L",data:[n,a]});break;case"S":{let c=0,g=0;l==="C"||l==="S"?(c=n+(n-t),g=a+(a-o)):(c=n,g=a),e.push({key:"C",data:[c,g,...h]}),t=h[0],o=h[1],n=h[2],a=h[3];break}case"T":{let[c,g]=h,u=0,p=0;l==="Q"||l==="T"?(u=n+(n-t),p=a+(a-o)):(u=n,p=a);let y=n+2*(u-n)/3,m=a+2*(p-a)/3,f=c+2*(u-c)/3,x=g+2*(p-g)/3;e.push({key:"C",data:[y,m,f,x,c,g]}),t=u,o=p,n=c,a=g;break}case"Q":{let[c,g,u,p]=h,y=n+2*(c-n)/3,m=a+2*(g-a)/3,f=u+2*(c-u)/3,x=p+2*(g-p)/3;e.push({key:"C",data:[y,m,f,x,u,p]}),t=c,o=g,n=u,a=p;break}case"A":{let c=Math.abs(h[0]),g=Math.abs(h[1]),u=h[2],p=h[3],y=h[4],m=h[5],f=h[6];c===0||g===0?(e.push({key:"C",data:[n,a,m,f,m,f]}),n=m,a=f):(n!==m||a!==f)&&(wt(n,a,m,f,c,g,u,p,y).forEach((function(x){e.push({key:"C",data:x})})),n=m,a=f);break}case"Z":e.push({key:"Z",data:[]}),n=s,a=d}l=i}return e}function $e(r,e,l){return[r*Math.cos(l)-e*Math.sin(l),r*Math.sin(l)+e*Math.cos(l)]}function wt(r,e,l,n,a,s,d,t,o,i){let h=(c=d,Math.PI*c/180);var c;let g=[],u=0,p=0,y=0,m=0;if(i)[u,p,y,m]=i;else{[r,e]=$e(r,e,-h),[l,n]=$e(l,n,-h);let v=(r-l)/2,$=(e-n)/2,D=v*v/(a*a)+$*$/(s*s);D>1&&(D=Math.sqrt(D),a*=D,s*=D);let O=a*a,W=s*s,X=O*W-O*$*$-W*v*v,te=O*$*$+W*v*v,he=(t===o?-1:1)*Math.sqrt(Math.abs(X/te));y=he*a*$/s+(r+l)/2,m=he*-s*v/a+(e+n)/2,u=Math.asin(parseFloat(((e-m)/s).toFixed(9))),p=Math.asin(parseFloat(((n-m)/s).toFixed(9))),rp&&(u-=2*Math.PI),!o&&p>u&&(p-=2*Math.PI)}let f=p-u;if(Math.abs(f)>120*Math.PI/180){let v=p,$=l,D=n;p=o&&p>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,g=wt(l=y+a*Math.cos(p),n=m+s*Math.sin(p),$,D,a,s,d,0,o,[p,v,y,m])}f=p-u;let x=Math.cos(u),b=Math.sin(u),k=Math.cos(p),S=Math.sin(p),M=Math.tan(f/4),C=4/3*a*M,P=4/3*s*M,_=[r,e],E=[r+C*b,e-P*x],I=[l+C*S,n-P*k],L=[l,n];if(E[0]=2*_[0]-E[0],E[1]=2*_[1]-E[1],i)return[E,I,L].concat(g);{g=[E,I,L].concat(g);let v=[];for(let $=0;$2){let a=[];for(let s=0;s2*Math.PI&&(u=0,p=2*Math.PI);let y=2*Math.PI/o.curveStepCount,m=Math.min(y/2,(p-u)/2),f=Bt(m,i,h,c,g,u,p,1,o);if(!o.disableMultiStroke){let x=Bt(m,i,h,c,g,u,p,1.5,o);f.push(...x)}return d&&(t?f.push(...de(i,h,i+c*Math.cos(u),h+g*Math.sin(u),o),...de(i,h,i+c*Math.cos(p),h+g*Math.sin(p),o)):f.push({op:"lineTo",data:[i,h]},{op:"lineTo",data:[i+c*Math.cos(u),h+g*Math.sin(u)]})),{type:"path",ops:f}}function vt(r,e){let l=bt(xt(Ye(r))),n=[],a=[0,0],s=[0,0];for(let{key:d,data:t}of l)switch(d){case"M":s=[t[0],t[1]],a=[t[0],t[1]];break;case"L":n.push(...de(s[0],s[1],t[0],t[1],e)),s=[t[0],t[1]];break;case"C":{let[o,i,h,c,g,u]=t;n.push(...fl(o,i,h,c,g,u,s,e)),s=[g,u];break}case"Z":n.push(...de(s[0],s[1],a[0],a[1],e)),s=[a[0],a[1]]}return{type:"path",ops:n}}function Ke(r,e){let l=[];for(let n of r)if(n.length){let a=e.maxRandomnessOffset||0,s=n.length;if(s>2){l.push({op:"move",data:[n[0][0]+H(a,e),n[0][1]+H(a,e)]});for(let d=1;d500?.4:-.0016668*o+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>t&&(h=o/10);let c=h/2,g=.2+.2*Ct(a),u=a.bowing*a.maxRandomnessOffset*(n-e)/200,p=a.bowing*a.maxRandomnessOffset*(r-l)/200;u=H(u,a,i),p=H(p,a,i);let y=[],m=()=>H(c,a,i),f=()=>H(h,a,i),x=a.preserveVertices;return s&&(d?y.push({op:"move",data:[r+(x?0:m()),e+(x?0:m())]}):y.push({op:"move",data:[r+(x?0:H(h,a,i)),e+(x?0:H(h,a,i))]})),d?y.push({op:"bcurveTo",data:[u+r+(l-r)*g+m(),p+e+(n-e)*g+m(),u+r+2*(l-r)*g+m(),p+e+2*(n-e)*g+m(),l+(x?0:m()),n+(x?0:m())]}):y.push({op:"bcurveTo",data:[u+r+(l-r)*g+f(),p+e+(n-e)*g+f(),u+r+2*(l-r)*g+f(),p+e+2*(n-e)*g+f(),l+(x?0:f()),n+(x?0:f())]}),y}function Oe(r,e,l){if(!r.length)return[];let n=[];n.push([r[0][0]+H(e,l),r[0][1]+H(e,l)]),n.push([r[0][0]+H(e,l),r[0][1]+H(e,l)]);for(let a=1;a3){let s=[],d=1-l.curveTightness;a.push({op:"move",data:[r[1][0],r[1][1]]});for(let t=1;t+21&&a.push(t)):a.push(t),a.push(r[e+3])}else{let t=.5,o=r[e+0],i=r[e+1],h=r[e+2],c=r[e+3],g=ye(o,i,t),u=ye(i,h,t),p=ye(h,c,t),y=ye(g,u,t),m=ye(u,p,t),f=ye(y,m,t);tt([o,g,y,f],0,l,a),tt([f,m,p,c],0,l,a)}var s,d;return a}function xl(r,e){return We(r,0,r.length,e)}function We(r,e,l,n,a){let s=a||[],d=r[e],t=r[l-1],o=0,i=1;for(let h=e+1;ho&&(o=c,i=h)}return Math.sqrt(o)>n?(We(r,e,i+1,n,s),We(r,i,l,n,s)):(s.length||s.push(d),s.push(t)),s}function at(r,e=.15,l){let n=[],a=(r.length-1)/3;for(let s=0;s0?We(n,0,n.length,l):n}var ee="none",je=class{constructor(r){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=r||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(r){return r?Object.assign({},this.defaultOptions,r):this.defaultOptions}_d(r,e,l){return{shape:r,sets:e||[],options:l||this.defaultOptions}}line(r,e,l,n,a){let s=this._o(a);return this._d("line",[St(r,e,l,n,s)],s)}rectangle(r,e,l,n,a){let s=this._o(a),d=[],t=yl(r,e,l,n,s);if(s.fill){let o=[[r,e],[r+l,e],[r+l,e+n],[r,e+n]];s.fillStyle==="solid"?d.push(Ke([o],s)):d.push(fe([o],s))}return s.stroke!==ee&&d.push(t),this._d("rectangle",d,s)}ellipse(r,e,l,n,a){let s=this._o(a),d=[],t=$t(l,n,s),o=Ue(r,e,s,t);if(s.fill)if(s.fillStyle==="solid"){let i=Ue(r,e,s,t).opset;i.type="fillPath",d.push(i)}else d.push(fe([o.estimatedPoints],s));return s.stroke!==ee&&d.push(o.opset),this._d("ellipse",d,s)}circle(r,e,l,n){let a=this.ellipse(r,e,l,l,n);return a.shape="circle",a}linearPath(r,e){let l=this._o(e);return this._d("linearPath",[Re(r,!1,l)],l)}arc(r,e,l,n,a,s,d=!1,t){let o=this._o(t),i=[],h=Mt(r,e,l,n,a,s,d,!0,o);if(d&&o.fill)if(o.fillStyle==="solid"){let c=Object.assign({},o);c.disableMultiStroke=!0;let g=Mt(r,e,l,n,a,s,!0,!1,c);g.type="fillPath",i.push(g)}else i.push((function(c,g,u,p,y,m,f){let x=c,b=g,k=Math.abs(u/2),S=Math.abs(p/2);k+=H(.01*k,f),S+=H(.01*S,f);let M=y,C=m;for(;M<0;)M+=2*Math.PI,C+=2*Math.PI;C-M>2*Math.PI&&(M=0,C=2*Math.PI);let P=(C-M)/f.curveStepCount,_=[];for(let E=M;E<=C;E+=P)_.push([x+k*Math.cos(E),b+S*Math.sin(E)]);return _.push([x+k*Math.cos(C),b+S*Math.sin(C)]),_.push([x,b]),fe([_],f)})(r,e,l,n,a,s,o));return o.stroke!==ee&&i.push(h),this._d("arc",i,o)}curve(r,e){let l=this._o(e),n=[],a=kt(r,l);if(l.fill&&l.fill!==ee)if(l.fillStyle==="solid"){let s=kt(r,Object.assign(Object.assign({},l),{disableMultiStroke:!0,roughness:l.roughness?l.roughness+l.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{let s=[],d=r;if(d.length){let t=typeof d[0][0]=="number"?[d]:d;for(let o of t)o.length<3?s.push(...o):o.length===3?s.push(...at(At([o[0],o[0],o[1],o[2]]),10,(1+l.roughness)/2)):s.push(...at(At(o),10,(1+l.roughness)/2))}s.length&&n.push(fe([s],l))}return l.stroke!==ee&&n.push(a),this._d("curve",n,l)}polygon(r,e){let l=this._o(e),n=[],a=Re(r,!0,l);return l.fill&&(l.fillStyle==="solid"?n.push(Ke([r],l)):n.push(fe([r],l))),l.stroke!==ee&&n.push(a),this._d("polygon",n,l)}path(r,e){let l=this._o(e),n=[];if(!r)return this._d("path",n,l);r=(r||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=l.fill&&l.fill!=="transparent"&&l.fill!==ee,s=l.stroke!==ee,d=!!(l.simplification&&l.simplification<1),t=(function(i,h,c){let g=bt(xt(Ye(i))),u=[],p=[],y=[0,0],m=[],f=()=>{m.length>=4&&p.push(...at(m,h)),m=[]},x=()=>{f(),p.length&&(u.push(p),p=[])};for(let{key:k,data:S}of g)switch(k){case"M":x(),y=[S[0],S[1]],p.push(y);break;case"L":f(),p.push([S[0],S[1]]);break;case"C":if(!m.length){let M=p.length?p[p.length-1]:y;m.push([M[0],M[1]])}m.push([S[0],S[1]]),m.push([S[2],S[3]]),m.push([S[4],S[5]]);break;case"Z":f(),p.push([y[0],y[1]])}if(x(),!c)return u;let b=[];for(let k of u){let S=xl(k,c);S.length&&b.push(S)}return b})(r,1,d?4-4*(l.simplification||1):(1+l.roughness)/2),o=vt(r,l);if(a)if(l.fillStyle==="solid")if(t.length===1){let i=vt(r,Object.assign(Object.assign({},l),{disableMultiStroke:!0,roughness:l.roughness?l.roughness+l.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(i.ops)})}else n.push(Ke(t,l));else n.push(fe(t,l));return s&&(d?t.forEach((i=>{n.push(Re(i,!1,l))})):n.push(o)),this._d("path",n,l)}opsToPath(r,e){let l="";for(let n of r.ops){let a=typeof e=="number"&&e>=0?n.data.map((s=>+s.toFixed(e))):n.data;switch(n.op){case"move":l+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":l+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":l+=`L${a[0]} ${a[1]} `}}return l.trim()}toPaths(r){let e=r.sets||[],l=r.options||this.defaultOptions,n=[];for(let a of e){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:l.stroke,strokeWidth:l.strokeWidth,fill:ee};break;case"fillPath":s={d:this.opsToPath(a),stroke:ee,strokeWidth:0,fill:l.fill||ee};break;case"fillSketch":s=this.fillSketch(a,l)}s&&n.push(s)}return n}fillSketch(r,e){let l=e.fillWeight;return l<0&&(l=e.strokeWidth/2),{d:this.opsToPath(r),stroke:e.fill||ee,strokeWidth:l,fill:ee}}_mergedShape(r){return r.filter(((e,l)=>l===0||e.op!=="move"))}},bl=class{constructor(r,e){this.canvas=r,this.ctx=this.canvas.getContext("2d"),this.gen=new je(e)}draw(r){let e=r.sets||[],l=r.options||this.getDefaultOptions(),n=this.ctx,a=r.options.fixedDecimalPlaceDigits;for(let s of e)switch(s.type){case"path":n.save(),n.strokeStyle=l.stroke==="none"?"transparent":l.stroke,n.lineWidth=l.strokeWidth,l.strokeLineDash&&n.setLineDash(l.strokeLineDash),l.strokeLineDashOffset&&(n.lineDashOffset=l.strokeLineDashOffset),this._drawToContext(n,s,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=l.fill||"";let d=r.shape==="curve"||r.shape==="polygon"||r.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,d),n.restore();break}case"fillSketch":this.fillSketch(n,s,l)}}fillSketch(r,e,l){let n=l.fillWeight;n<0&&(n=l.strokeWidth/2),r.save(),l.fillLineDash&&r.setLineDash(l.fillLineDash),l.fillLineDashOffset&&(r.lineDashOffset=l.fillLineDashOffset),r.strokeStyle=l.fill||"",r.lineWidth=n,this._drawToContext(r,e,l.fixedDecimalPlaceDigits),r.restore()}_drawToContext(r,e,l,n="nonzero"){r.beginPath();for(let a of e.ops){let s=typeof l=="number"&&l>=0?a.data.map((d=>+d.toFixed(l))):a.data;switch(a.op){case"move":r.moveTo(s[0],s[1]);break;case"bcurveTo":r.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":r.lineTo(s[0],s[1])}}e.type==="fillPath"?r.fill(n):r.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(r,e,l,n,a){let s=this.gen.line(r,e,l,n,a);return this.draw(s),s}rectangle(r,e,l,n,a){let s=this.gen.rectangle(r,e,l,n,a);return this.draw(s),s}ellipse(r,e,l,n,a){let s=this.gen.ellipse(r,e,l,n,a);return this.draw(s),s}circle(r,e,l,n){let a=this.gen.circle(r,e,l,n);return this.draw(a),a}linearPath(r,e){let l=this.gen.linearPath(r,e);return this.draw(l),l}polygon(r,e){let l=this.gen.polygon(r,e);return this.draw(l),l}arc(r,e,l,n,a,s,d=!1,t){let o=this.gen.arc(r,e,l,n,a,s,d,t);return this.draw(o),o}curve(r,e){let l=this.gen.curve(r,e);return this.draw(l),l}path(r,e){let l=this.gen.path(r,e);return this.draw(l),l}},He="http://www.w3.org/2000/svg",wl=class{constructor(r,e){this.svg=r,this.gen=new je(e)}draw(r){let e=r.sets||[],l=r.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(He,"g"),s=r.options.fixedDecimalPlaceDigits;for(let d of e){let t=null;switch(d.type){case"path":t=n.createElementNS(He,"path"),t.setAttribute("d",this.opsToPath(d,s)),t.setAttribute("stroke",l.stroke),t.setAttribute("stroke-width",l.strokeWidth+""),t.setAttribute("fill","none"),l.strokeLineDash&&t.setAttribute("stroke-dasharray",l.strokeLineDash.join(" ").trim()),l.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${l.strokeLineDashOffset}`);break;case"fillPath":t=n.createElementNS(He,"path"),t.setAttribute("d",this.opsToPath(d,s)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",l.fill||""),r.shape!=="curve"&&r.shape!=="polygon"||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(n,d,l)}t&&a.appendChild(t)}return a}fillSketch(r,e,l){let n=l.fillWeight;n<0&&(n=l.strokeWidth/2);let a=r.createElementNS(He,"path");return a.setAttribute("d",this.opsToPath(e,l.fixedDecimalPlaceDigits)),a.setAttribute("stroke",l.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),l.fillLineDash&&a.setAttribute("stroke-dasharray",l.fillLineDash.join(" ").trim()),l.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${l.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(r,e){return this.gen.opsToPath(r,e)}line(r,e,l,n,a){let s=this.gen.line(r,e,l,n,a);return this.draw(s)}rectangle(r,e,l,n,a){let s=this.gen.rectangle(r,e,l,n,a);return this.draw(s)}ellipse(r,e,l,n,a){let s=this.gen.ellipse(r,e,l,n,a);return this.draw(s)}circle(r,e,l,n){let a=this.gen.circle(r,e,l,n);return this.draw(a)}linearPath(r,e){let l=this.gen.linearPath(r,e);return this.draw(l)}polygon(r,e){let l=this.gen.polygon(r,e);return this.draw(l)}arc(r,e,l,n,a,s,d=!1,t){let o=this.gen.arc(r,e,l,n,a,s,d,t);return this.draw(o)}curve(r,e){let l=this.gen.curve(r,e);return this.draw(l)}path(r,e){let l=this.gen.path(r,e);return this.draw(l)}},A={canvas:(r,e)=>new bl(r,e),svg:(r,e)=>new wl(r,e),generator:r=>new je(r),newSeed:()=>je.newSeed()},z=w(async(r,e,l)=>{var c,g;let n,a=e.useHtmlLabels||Y((c=Z())==null?void 0:c.htmlLabels);n=l||"node default";let s=r.insert("g").attr("class",n).attr("id",e.domId||e.id),d=s.insert("g").attr("class","label").attr("style",U(e.labelStyle)),t;t=e.label===void 0?"":typeof e.label=="string"?e.label:e.label[0];let o=await pe(d,Ge(we(t),Z()),{useHtmlLabels:a,width:e.width||((g=Z().flowchart)==null?void 0:g.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img}),i=o.getBBox(),h=((e==null?void 0:e.padding)??0)/2;if(a){let u=o.children[0],p=Q(o),y=u.getElementsByTagName("img");if(y){let m=t.replace(/]*>/g,"").trim()==="";await Promise.all([...y].map(f=>new Promise(x=>{function b(){if(f.style.display="flex",f.style.flexDirection="column",m){let[k=al.fontSize]=el(Z().fontSize?Z().fontSize:window.getComputedStyle(document.body).fontSize),S=k*5+"px";f.style.minWidth=S,f.style.maxWidth=S}else f.style.width="100%";x(f)}w(b,"setupImage"),setTimeout(()=>{f.complete&&b()}),f.addEventListener("error",b),f.addEventListener("load",b)})))}i=u.getBoundingClientRect(),p.attr("width",i.width),p.attr("height",i.height)}return a?d.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):d.attr("transform","translate(0, "+-i.height/2+")"),e.centerLabel&&d.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:s,bbox:i,halfPadding:h,label:d}},"labelHelper"),lt=w(async(r,e,l)=>{var o,i,h,c,g,u;let n=l.useHtmlLabels||Y((i=(o=Z())==null?void 0:o.flowchart)==null?void 0:i.htmlLabels),a=r.insert("g").attr("class","label").attr("style",l.labelStyle||""),s=await pe(a,Ge(we(e),Z()),{useHtmlLabels:n,width:l.width||((c=(h=Z())==null?void 0:h.flowchart)==null?void 0:c.wrappingWidth),style:l.labelStyle,addSvgBackground:!!l.icon||!!l.img}),d=s.getBBox(),t=l.padding/2;if(Y((u=(g=Z())==null?void 0:g.flowchart)==null?void 0:u.htmlLabels)){let p=s.children[0],y=Q(s);d=p.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}return n?a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):a.attr("transform","translate(0, "+-d.height/2+")"),l.centerLabel&&a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:r,bbox:d,halfPadding:t,label:a}},"insertLabel"),T=w((r,e)=>{let l=e.node().getBBox();r.width=l.width,r.height=l.height},"updateNodeBounds"),j=w((r,e)=>(r.look==="handDrawn"?"rough-node":"node")+" "+r.cssClasses+" "+(e||""),"getNodeClasses");function q(r){let e=r.map((l,n)=>`${n===0?"M":"L"}${l.x},${l.y}`);return e.push("Z"),e.join(" ")}w(q,"createPathFromPoints");function ce(r,e,l,n,a,s){let d=[],t=l-r,o=n-e,i=t/s,h=2*Math.PI/i,c=e+o/2;for(let g=0;g<=50;g++){let u=r+g/50*t,p=c+a*Math.sin(h*(u-r));d.push({x:u,y:p})}return d}w(ce,"generateFullSineWavePoints");function ve(r,e,l,n,a,s){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;i{var l=r.x,n=r.y,a=e.x-l,s=e.y-n,d=r.width/2,t=r.height/2,o,i;return Math.abs(s)*d>Math.abs(a)*t?(s<0&&(t=-t),o=s===0?0:t*a/s,i=t):(a<0&&(d=-d),o=d,i=a===0?0:d*s/a),{x:l+o,y:n+i}},"intersectRect");function Lt(r,e){e&&r.attr("style",e)}w(Lt,"applyStyle");async function Nt(r){let e=Q(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),l=e.append("xhtml:div"),n=Z(),a=r.label;r.label&&yt(r.label)&&(a=await tl(r.label.replace(ll.lineBreakRegex,` +`),n));let s='"+a+"";return l.html(Ge(s,n)),Lt(l,r.labelStyle),l.style("display","inline-block"),l.style("padding-right","1px"),l.style("white-space","nowrap"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}w(Nt,"addHtmlLabel");var ze=w(async(r,e,l,n)=>{let a=r||"";if(typeof a=="object"&&(a=a[0]),Y(Z().flowchart.htmlLabels))return a=a.replace(/\\n|\n/g,"
"),V.info("vertexText"+a),await Nt({isNode:n,label:we(a).replace(/fa[blrs]?:fa-[\w-]+/g,s=>``),labelStyle:e&&e.replace("fill:","color:")});{let s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",e.replace("color:","fill:"));let d=[];d=typeof a=="string"?a.split(/\\n|\n|/gi):Array.isArray(a)?a:[];for(let t of d){let o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),l?o.setAttribute("class","title-row"):o.setAttribute("class","row"),o.textContent=t.trim(),s.appendChild(o)}return s}},"createLabel"),ge=w((r,e,l,n,a)=>["M",r+a,e,"H",r+l-a,"A",a,a,0,0,1,r+l,e+a,"V",e+n-a,"A",a,a,0,0,1,r+l-a,e+n,"H",r+a,"A",a,a,0,0,1,r,e+n-a,"V",e+a,"A",a,a,0,0,1,r+a,e,"Z"].join(" "),"createRoundedRectPathD"),Tt=w(async(r,e)=>{V.info("Creating subgraph rect for ",e.id,e);let l=Z(),{themeVariables:n,handDrawnSeed:a}=l,{clusterBkg:s,clusterBorder:d}=n,{labelStyles:t,nodeStyles:o,borderStyles:i,backgroundStyles:h}=R(e),c=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),g=Y(l.flowchart.htmlLabels),u=c.insert("g").attr("class","cluster-label "),p=await pe(u,e.label,{style:e.labelStyle,useHtmlLabels:g,isNode:!0}),y=p.getBBox();if(Y(l.flowchart.htmlLabels)){let C=p.children[0],P=Q(p);y=C.getBoundingClientRect(),P.attr("width",y.width),P.attr("height",y.height)}let m=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;let f=e.height,x=e.x-m/2,b=e.y-f/2;V.trace("Data ",e,JSON.stringify(e));let k;if(e.look==="handDrawn"){let C=A.svg(c),P=N(e,{roughness:.7,fill:s,stroke:d,fillWeight:3,seed:a}),_=C.path(ge(x,b,m,f,0),P);k=c.insert(()=>(V.debug("Rough node insert CXC",_),_),":first-child"),k.select("path:nth-child(2)").attr("style",i.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=c.insert("rect",":first-child"),k.attr("style",o).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",m).attr("height",f);let{subGraphTitleTopMargin:S}=ft(l);if(u.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+S})`),t){let C=u.select("span");C&&C.attr("style",t)}let M=k.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=y.height-e.padding/2,e.intersect=function(C){return me(e,C)},{cluster:c,labelBBox:y}},"rect"),Sl={rect:Tt,squareRect:Tt,roundedWithTitle:w(async(r,e)=>{let l=Z(),{themeVariables:n,handDrawnSeed:a}=l,{altBackground:s,compositeBackground:d,compositeTitleBackground:t,nodeBorder:o}=n,i=r.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),h=i.insert("g",":first-child"),c=i.insert("g").attr("class","cluster-label"),g=i.append("rect"),u=c.node().appendChild(await ze(e.label,e.labelStyle,void 0,!0)),p=u.getBBox();if(Y(l.flowchart.htmlLabels)){let P=u.children[0],_=Q(u);p=P.getBoundingClientRect(),_.attr("width",p.width),_.attr("height",p.height)}let y=0*e.padding,m=y/2,f=(e.width<=p.width+e.padding?p.width+e.padding:e.width)+y;e.width<=p.width+e.padding?e.diff=(f-e.width)/2-e.padding:e.diff=-e.padding;let x=e.height+y,b=e.height+y-p.height-6,k=e.x-f/2,S=e.y-x/2;e.width=f;let M=e.y-e.height/2-m+p.height+2,C;if(e.look==="handDrawn"){let P=e.cssClasses.includes("statediagram-cluster-alt"),_=A.svg(i),E=e.rx||e.ry?_.path(ge(k,S,f,x,10),{roughness:.7,fill:t,fillStyle:"solid",stroke:o,seed:a}):_.rectangle(k,S,f,x,{seed:a});C=i.insert(()=>E,":first-child");let I=_.rectangle(k,M,f,b,{fill:P?s:d,fillStyle:P?"hachure":"solid",stroke:o,seed:a});C=i.insert(()=>E,":first-child"),g=i.insert(()=>I)}else C=h.insert("rect",":first-child"),C.attr("class","outer").attr("x",k).attr("y",S).attr("width",f).attr("height",x).attr("data-look",e.look),g.attr("class","inner").attr("x",k).attr("y",M).attr("width",f).attr("height",b);return c.attr("transform",`translate(${e.x-p.width/2}, ${S+1-(Y(l.flowchart.htmlLabels)?0:3)})`),e.height=C.node().getBBox().height,e.offsetX=0,e.offsetY=p.height-e.padding/2,e.labelBBox=p,e.intersect=function(P){return me(e,P)},{cluster:i,labelBBox:p}},"roundedWithTitle"),noteGroup:w((r,e)=>{let l=r.insert("g").attr("class","note-cluster").attr("id",e.id),n=l.insert("rect",":first-child"),a=0*e.padding,s=a/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-s).attr("y",e.y-e.height/2-s).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");let d=n.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return me(e,t)},{cluster:l,labelBBox:{width:0,height:0}}},"noteGroup"),divider:w((r,e)=>{let{themeVariables:l,handDrawnSeed:n}=Z(),{nodeBorder:a}=l,s=r.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),d=s.insert("g",":first-child"),t=0*e.padding,o=e.width+t;e.diff=-e.padding;let i=e.height+t,h=e.x-o/2,c=e.y-i/2;e.width=o;let g;if(e.look==="handDrawn"){let u=A.svg(s).rectangle(h,c,o,i,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});g=s.insert(()=>u,":first-child")}else g=d.insert("rect",":first-child"),g.attr("class","divider").attr("x",h).attr("y",c).attr("width",o).attr("height",i).attr("data-look",e.look);return e.height=g.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(u){return me(e,u)},{cluster:s,labelBBox:{}}},"divider"),kanbanSection:w(async(r,e)=>{V.info("Creating subgraph rect for ",e.id,e);let l=Z(),{themeVariables:n,handDrawnSeed:a}=l,{clusterBkg:s,clusterBorder:d}=n,{labelStyles:t,nodeStyles:o,borderStyles:i,backgroundStyles:h}=R(e),c=r.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),g=Y(l.flowchart.htmlLabels),u=c.insert("g").attr("class","cluster-label "),p=await pe(u,e.label,{style:e.labelStyle,useHtmlLabels:g,isNode:!0,width:e.width}),y=p.getBBox();if(Y(l.flowchart.htmlLabels)){let C=p.children[0],P=Q(p);y=C.getBoundingClientRect(),P.attr("width",y.width),P.attr("height",y.height)}let m=e.width<=y.width+e.padding?y.width+e.padding:e.width;e.width<=y.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;let f=e.height,x=e.x-m/2,b=e.y-f/2;V.trace("Data ",e,JSON.stringify(e));let k;if(e.look==="handDrawn"){let C=A.svg(c),P=N(e,{roughness:.7,fill:s,stroke:d,fillWeight:4,seed:a}),_=C.path(ge(x,b,m,f,e.rx),P);k=c.insert(()=>(V.debug("Rough node insert CXC",_),_),":first-child"),k.select("path:nth-child(2)").attr("style",i.join(";")),k.select("path").attr("style",h.join(";").replace("fill","stroke"))}else k=c.insert("rect",":first-child"),k.attr("style",o).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",m).attr("height",f);let{subGraphTitleTopMargin:S}=ft(l);if(u.attr("transform",`translate(${e.x-y.width/2}, ${e.y-e.height/2+S})`),t){let C=u.select("span");C&&C.attr("style",t)}let M=k.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=y.height-e.padding/2,e.intersect=function(C){return me(e,C)},{cluster:c,labelBBox:y}},"kanbanSection")},Rt=new Map,kl=w(async(r,e)=>{let l=await Sl[e.shape||"rect"](r,e);return Rt.set(e.id,l),l},"insertCluster"),$l=w(()=>{Rt=new Map},"clear");function _t(r,e){return r.intersect(e)}w(_t,"intersectNode");var Ml=_t;function Ot(r,e,l,n){var a=r.x,s=r.y,d=a-n.x,t=s-n.y,o=Math.sqrt(e*e*t*t+l*l*d*d),i=Math.abs(e*l*d/o);n.x0}w(rt,"sameSign");var Dl=Wt;function jt(r,e,l){let n=r.x,a=r.y,s=[],d=1/0,t=1/0;typeof e.forEach=="function"?e.forEach(function(h){d=Math.min(d,h.x),t=Math.min(t,h.y)}):(d=Math.min(d,e.x),t=Math.min(t,e.y));let o=n-r.width/2-d,i=a-r.height/2-t;for(let h=0;h1&&s.sort(function(h,c){let g=h.x-l.x,u=h.y-l.y,p=Math.sqrt(g*g+u*u),y=c.x-l.x,m=c.y-l.y,f=Math.sqrt(y*y+m*m);return pi,":first-child");return h.attr("class","anchor").attr("style",U(d)),T(e,h),e.intersect=function(c){return V.info("Circle intersect",e,1,c),B.circle(e,1,c)},s}w(Ht,"anchor");function st(r,e,l,n,a,s,d){let t=(r+l)/2,o=(e+n)/2,i=Math.atan2(n-e,l-r),h=(l-r)/2,c=(n-e)/2,g=h/a,u=c/s,p=Math.sqrt(g**2+u**2);if(p>1)throw Error("The given radii are too small to create an arc between the points.");let y=Math.sqrt(1-p**2),m=t+y*s*Math.sin(i)*(d?-1:1),f=o-y*a*Math.cos(i)*(d?-1:1),x=Math.atan2((e-f)/s,(r-m)/a),b=Math.atan2((n-f)/s,(l-m)/a)-x;d&&b<0&&(b+=2*Math.PI),!d&&b>0&&(b-=2*Math.PI);let k=[];for(let S=0;S<20;S++){let M=x+S/19*b,C=m+a*Math.cos(M),P=f+s*Math.sin(M);k.push({x:C,y:P})}return k}w(st,"generateArcPoints");async function zt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.width+e.padding+20,t=s.height+e.padding,o=t/2,i=o/(2.5+t/50),{cssStyles:h}=e,c=[{x:d/2,y:-t/2},{x:-d/2,y:-t/2},...st(-d/2,-t/2,-d/2,t/2,i,o,!1),{x:d/2,y:t/2},...st(d/2,t/2,d/2,-t/2,i,o,!0)],g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=q(c),y=g.path(p,u),m=a.insert(()=>y,":first-child");return m.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(${i/2}, 0)`),T(e,m),e.intersect=function(f){return B.polygon(e,c,f)},a}w(zt,"bowTieRect");function ue(r,e,l,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+l/2+")")}w(ue,"insertPolygonShape");async function qt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.height+e.padding,t=s.width+e.padding+12,o=t,i=-d,h=[{x:12,y:i},{x:o,y:i},{x:o,y:0},{x:0,y:0},{x:0,y:i+12},{x:12,y:i}],c,{cssStyles:g}=e;if(e.look==="handDrawn"){let u=A.svg(a),p=N(e,{}),y=q(h),m=u.path(y,p);c=a.insert(()=>m,":first-child").attr("transform",`translate(${-t/2}, ${d/2})`),g&&c.attr("style",g)}else c=ue(a,t,d,h);return n&&c.attr("style",n),T(e,c),e.intersect=function(u){return B.polygon(e,h,u)},a}w(qt,"card");function Vt(r,e){let{nodeStyles:l}=R(e);e.label="";let n=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(28,e.width??0),d=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],t=A.svg(n),o=N(e,{});e.look!=="handDrawn"&&(o.roughness=0,o.fillStyle="solid");let i=q(d),h=t.path(i,o),c=n.insert(()=>h,":first-child");return a&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",a),l&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",l),e.width=28,e.height=28,e.intersect=function(g){return B.polygon(e,d,g)},n}w(Vt,"choice");async function it(r,e,l){let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n;let{shapeSvg:s,bbox:d,halfPadding:t}=await z(r,e,j(e)),o=(l==null?void 0:l.padding)??t,i=d.width/2+o,h,{cssStyles:c}=e;if(e.look==="handDrawn"){let g=A.svg(s),u=N(e,{}),p=g.circle(0,0,i*2,u);h=s.insert(()=>p,":first-child"),h.attr("class","basic label-container").attr("style",U(c))}else h=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",i).attr("cx",0).attr("cy",0);return T(e,h),e.calcIntersect=function(g,u){let p=g.width/2;return B.circle(g,p,u)},e.intersect=function(g){return V.info("Circle intersect",e,i,g),B.circle(e,i,g)},s}w(it,"circle");function Ft(r){let e=Math.cos(Math.PI/4),l=Math.sin(Math.PI/4),n=r*2,a={x:n/2*e,y:n/2*l},s={x:-(n/2)*e,y:n/2*l},d={x:-(n/2)*e,y:-(n/2)*l},t={x:n/2*e,y:-(n/2)*l};return`M ${s.x},${s.y} L ${t.x},${t.y} + M ${a.x},${a.y} L ${d.x},${d.y}`}w(Ft,"createLine");function Gt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l,e.label="";let a=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),s=Math.max(30,(e==null?void 0:e.width)??0),{cssStyles:d}=e,t=A.svg(a),o=N(e,{});e.look!=="handDrawn"&&(o.roughness=0,o.fillStyle="solid");let i=t.circle(0,0,s*2,o),h=Ft(s),c=t.path(h,o),g=a.insert(()=>i,":first-child");return g.insert(()=>c),d&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",n),T(e,g),e.intersect=function(u){return V.info("crossedCircle intersect",e,{radius:s,point:u}),B.circle(e,s,u)},a}w(Gt,"crossedCircle");function ie(r,e,l,n=100,a=0,s=180){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;ix,":first-child").attr("stroke-opacity",0),b.insert(()=>m,":first-child"),b.attr("class","text"),h&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${i}, 0)`),d.attr("transform",`translate(${-t/2+i-(s.x-(s.left??0))},${-o/2+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,b),e.intersect=function(k){return B.polygon(e,g,k)},a}w(Zt,"curlyBraceLeft");function ne(r,e,l,n=100,a=0,s=180){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;ix,":first-child").attr("stroke-opacity",0),b.insert(()=>m,":first-child"),b.attr("class","text"),h&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${-i}, 0)`),d.attr("transform",`translate(${-t/2+(e.padding??0)/2-(s.x-(s.left??0))},${-o/2+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,b),e.intersect=function(k){return B.polygon(e,g,k)},a}w(Xt,"curlyBraceRight");function J(r,e,l,n=100,a=0,s=180){let d=[],t=a*Math.PI/180,o=(s*Math.PI/180-t)/(n-1);for(let i=0;iS,":first-child").attr("stroke-opacity",0),M.insert(()=>f,":first-child"),M.insert(()=>b,":first-child"),M.attr("class","text"),h&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&M.selectAll("path").attr("style",n),M.attr("transform",`translate(${i-i/4}, 0)`),d.attr("transform",`translate(${-t/2+(e.padding??0)/2-(s.x-(s.left??0))},${-o/2+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,M),e.intersect=function(C){return B.polygon(e,u,C)},a}w(Qt,"curlyBraces");async function Jt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(80,(s.width+(e.padding??0)*2)*1.25,(e==null?void 0:e.width)??0),t=Math.max(20,s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=t/2,{cssStyles:i}=e,h=A.svg(a),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=d,u=t,p=g-o,y=u/4,m=[{x:p,y:0},{x:y,y:0},{x:0,y:u/2},{x:y,y:u},{x:p,y:u},...ve(-p,-u/2,o,50,270,90)],f=q(m),x=h.path(f,c),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container"),i&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),b.attr("transform",`translate(${-d/2}, ${-t/2})`),T(e,b),e.intersect=function(k){return B.polygon(e,m,k)},a}w(Jt,"curvedTrapezoid");var Cl=w((r,e,l,n,a,s)=>[`M${r},${e+s}`,`a${a},${s} 0,0,0 ${l},0`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),Pl=w((r,e,l,n,a,s)=>[`M${r},${e+s}`,`M${r+l},${e+s}`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),Bl=w((r,e,l,n,a,s)=>[`M${r-l/2},${-n/2}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createInnerCylinderPathD");async function Yt(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+e.padding,e.width??0),o=t/2,i=o/(2.5+t/50),h=Math.max(s.height+i+e.padding,e.height??0),c,{cssStyles:g}=e;if(e.look==="handDrawn"){let u=A.svg(a),p=Pl(0,0,t,h,o,i),y=Bl(0,i,t,h,o,i),m=u.path(p,N(e,{})),f=u.path(y,N(e,{fill:"none"}));c=a.insert(()=>f,":first-child"),c=a.insert(()=>m,":first-child"),c.attr("class","basic label-container"),g&&c.attr("style",g)}else{let u=Cl(0,0,t,h,o,i);c=a.insert("path",":first-child").attr("d",u).attr("class","basic label-container").attr("style",U(g)).attr("style",n)}return c.attr("label-offset-y",i),c.attr("transform",`translate(${-t/2}, ${-(h/2+i)})`),T(e,c),d.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(u){let p=B.rect(e,u),y=p.x-(e.x??0);if(o!=0&&(Math.abs(y)<(e.width??0)/2||Math.abs(y)==(e.width??0)/2&&Math.abs(p.y-(e.y??0))>(e.height??0)/2-i)){let m=i*i*(1-y*y/(o*o));m>0&&(m=Math.sqrt(m)),m=i-m,u.y-(e.y??0)>0&&(m=-m),p.y+=m}return p},a}w(Yt,"cylinder");async function Ut(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=s.width+e.padding,o=s.height+e.padding,i=o*.2,h=-t/2,c=-o/2-i/2,{cssStyles:g}=e,u=A.svg(a),p=N(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=[{x:h,y:c+i},{x:-h,y:c+i},{x:-h,y:-c},{x:h,y:-c},{x:h,y:c},{x:-h,y:c},{x:-h,y:c+i}],m=u.polygon(y.map(x=>[x.x,x.y]),p),f=a.insert(()=>m,":first-child");return f.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),d.attr("transform",`translate(${h+(e.padding??0)/2-(s.x-(s.left??0))}, ${c+i+(e.padding??0)/2-(s.y-(s.top??0))})`),T(e,f),e.intersect=function(x){return B.rect(e,x)},a}w(Ut,"dividedRectangle");async function Kt(r,e){var c,g;let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,halfPadding:d}=await z(r,e,j(e)),t=s.width/2+d+5,o=s.width/2+d,i,{cssStyles:h}=e;if(e.look==="handDrawn"){let u=A.svg(a),p=N(e,{roughness:.2,strokeWidth:2.5}),y=N(e,{roughness:.2,strokeWidth:1.5}),m=u.circle(0,0,t*2,p),f=u.circle(0,0,o*2,y);i=a.insert("g",":first-child"),i.attr("class",U(e.cssClasses)).attr("style",U(h)),(c=i.node())==null||c.appendChild(m),(g=i.node())==null||g.appendChild(f)}else{i=a.insert("g",":first-child");let u=i.insert("circle",":first-child"),p=i.insert("circle");i.attr("class","basic label-container").attr("style",n),u.attr("class","outer-circle").attr("style",n).attr("r",t).attr("cx",0).attr("cy",0),p.attr("class","inner-circle").attr("style",n).attr("r",o).attr("cx",0).attr("cy",0)}return T(e,i),e.intersect=function(u){return V.info("DoubleCircle intersect",e,t,u),B.circle(e,t,u)},a}w(Kt,"doublecircle");function ea(r,e,{config:{themeVariables:l}}){let{labelStyles:n,nodeStyles:a}=R(e);e.label="",e.labelStyle=n;let s=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:d}=e,t=A.svg(s),{nodeBorder:o}=l,i=N(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(i.roughness=0);let h=t.circle(0,0,14,i),c=s.insert(()=>h,":first-child");return c.selectAll("path").attr("style",`fill: ${o} !important;`),d&&d.length>0&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",d),a&&e.look!=="handDrawn"&&c.selectAll("path").attr("style",a),T(e,c),e.intersect=function(g){return V.info("filledCircle intersect",e,{radius:7,point:g}),B.circle(e,7,g)},s}w(ea,"filledCircle");async function ta(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=s.width+(e.padding??0),o=t+s.height,i=t+s.height,h=[{x:0,y:-o},{x:i,y:-o},{x:i/2,y:0}],{cssStyles:c}=e,g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=q(h),y=g.path(p,u),m=a.insert(()=>y,":first-child").attr("transform",`translate(${-o/2}, ${o/2})`);return c&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",c),n&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),e.width=t,e.height=o,T(e,m),d.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-o/2+(e.padding??0)/2+(s.y-(s.top??0))})`),e.intersect=function(f){return V.info("Triangle intersect",e,h,f),B.polygon(e,h,f)},a}w(ta,"flippedTriangle");function aa(r,e,{dir:l,config:{state:n,themeVariables:a}}){let{nodeStyles:s}=R(e);e.label="";let d=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:t}=e,o=Math.max(70,(e==null?void 0:e.width)??0),i=Math.max(10,(e==null?void 0:e.height)??0);l==="LR"&&(o=Math.max(10,(e==null?void 0:e.width)??0),i=Math.max(70,(e==null?void 0:e.height)??0));let h=-1*o/2,c=-1*i/2,g=A.svg(d),u=N(e,{stroke:a.lineColor,fill:a.lineColor});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=g.rectangle(h,c,o,i,u),y=d.insert(()=>p,":first-child");t&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",t),s&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",s),T(e,y);let m=(n==null?void 0:n.padding)??0;return e.width&&e.height&&(e.width+=m/2||0,e.height+=m/2||0),e.intersect=function(f){return B.rect(e,f)},d}w(aa,"forkJoin");async function la(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(80,s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(50,s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=t/2,{cssStyles:i}=e,h=A.svg(a),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=[{x:-d/2,y:-t/2},{x:d/2-o,y:-t/2},...ve(-d/2+o,0,o,50,90,270),{x:d/2-o,y:t/2},{x:-d/2,y:t/2}],u=q(g),p=h.path(u,c),y=a.insert(()=>p,":first-child");return y.attr("class","basic label-container"),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),n&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),T(e,y),e.intersect=function(m){return V.info("Pill intersect",e,{radius:o,point:m}),B.polygon(e,g,m)},a}w(la,"halfRoundedRectangle");async function ra(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.height+(e.padding??0),t=s.width+(e.padding??0)*2.5,{cssStyles:o}=e,i=A.svg(a),h=N(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let c=t/2,g=c/6;c+=g;let u=d/2,p=u/2,y=c-p,m=[{x:-y,y:-u},{x:0,y:-u},{x:y,y:-u},{x:c,y:0},{x:y,y:u},{x:0,y:u},{x:-y,y:u},{x:-c,y:0}],f=q(m),x=i.path(f,h),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container"),o&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",o),n&&e.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),e.width=t,e.height=d,T(e,b),e.intersect=function(k){return B.polygon(e,m,k)},a}w(ra,"hexagon");async function sa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.label="",e.labelStyle=l;let{shapeSvg:a}=await z(r,e,j(e)),s=Math.max(30,(e==null?void 0:e.width)??0),d=Math.max(30,(e==null?void 0:e.height)??0),{cssStyles:t}=e,o=A.svg(a),i=N(e,{});e.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let h=[{x:0,y:0},{x:s,y:0},{x:0,y:d},{x:s,y:d}],c=q(h),g=o.path(c,i),u=a.insert(()=>g,":first-child");return u.attr("class","basic label-container"),t&&e.look!=="handDrawn"&&u.selectChildren("path").attr("style",t),n&&e.look!=="handDrawn"&&u.selectChildren("path").attr("style",n),u.attr("transform",`translate(${-s/2}, ${-d/2})`),T(e,u),e.intersect=function(p){return V.info("Pill intersect",e,{points:h}),B.polygon(e,h,p)},a}w(sa,"hourglass");async function ia(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,label:c}=await z(r,e,"icon-shape default"),g=e.pos==="t",u=t,p=t,{nodeBorder:y}=l,{stylesMap:m}=Ae(e),f=-p/2,x=-u/2,b=e.label?8:0,k=A.svg(i),S=N(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let M=k.rectangle(f,x,p,u,S),C=Math.max(p,h.width),P=u+h.height+b,_=k.rectangle(-C/2,-P/2,C,P,{...S,fill:"transparent",stroke:"none"}),E=i.insert(()=>M,":first-child"),I=i.insert(()=>_);if(e.icon){let L=i.append("g");L.html(`${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}`);let v=L.node().getBBox(),$=v.width,D=v.height,O=v.x,W=v.y;L.attr("transform",`translate(${-$/2-O},${g?h.height/2+b/2-D/2-W:-h.height/2-b/2-D/2-W})`),L.attr("style",`color: ${m.get("stroke")??y};`)}return c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${g?-P/2:P/2-h.height})`),E.attr("transform",`translate(0,${g?h.height/2+b/2:-h.height/2-b/2})`),T(e,I),e.intersect=function(L){if(V.info("iconSquare intersect",e,L),!e.label)return B.rect(e,L);let v=e.x??0,$=e.y??0,D=e.height??0,O=[];return O=g?[{x:v-h.width/2,y:$-D/2},{x:v+h.width/2,y:$-D/2},{x:v+h.width/2,y:$-D/2+h.height+b},{x:v+p/2,y:$-D/2+h.height+b},{x:v+p/2,y:$+D/2},{x:v-p/2,y:$+D/2},{x:v-p/2,y:$-D/2+h.height+b},{x:v-h.width/2,y:$-D/2+h.height+b}]:[{x:v-p/2,y:$-D/2},{x:v+p/2,y:$-D/2},{x:v+p/2,y:$-D/2+u},{x:v+h.width/2,y:$-D/2+u},{x:v+h.width/2/2,y:$+D/2},{x:v-h.width/2,y:$+D/2},{x:v-h.width/2,y:$-D/2+u},{x:v-p/2,y:$-D/2+u}],B.polygon(e,O,L)},i}w(ia,"icon");async function na(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,label:c}=await z(r,e,"icon-shape default"),g=e.label?8:0,u=e.pos==="t",{nodeBorder:p,mainBkg:y}=l,{stylesMap:m}=Ae(e),f=A.svg(i),x=N(e,{});e.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid"),x.stroke=m.get("fill")??y;let b=i.append("g");e.icon&&b.html(`${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}`);let k=b.node().getBBox(),S=k.width,M=k.height,C=k.x,P=k.y,_=Math.max(S,M)*Math.SQRT2+40,E=f.circle(0,0,_,x),I=Math.max(_,h.width),L=_+h.height+g,v=f.rectangle(-I/2,-L/2,I,L,{...x,fill:"transparent",stroke:"none"}),$=i.insert(()=>E,":first-child"),D=i.insert(()=>v);return b.attr("transform",`translate(${-S/2-C},${u?h.height/2+g/2-M/2-P:-h.height/2-g/2-M/2-P})`),b.attr("style",`color: ${m.get("stroke")??p};`),c.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${u?-L/2:L/2-h.height})`),$.attr("transform",`translate(0,${u?h.height/2+g/2:-h.height/2-g/2})`),T(e,D),e.intersect=function(O){return V.info("iconSquare intersect",e,O),B.rect(e,O)},i}w(na,"iconCircle");async function ha(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,halfPadding:c,label:g}=await z(r,e,"icon-shape default"),u=e.pos==="t",p=t+c*2,y=t+c*2,{nodeBorder:m,mainBkg:f}=l,{stylesMap:x}=Ae(e),b=-y/2,k=-p/2,S=e.label?8:0,M=A.svg(i),C=N(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid"),C.stroke=x.get("fill")??f;let P=M.path(ge(b,k,y,p,5),C),_=Math.max(y,h.width),E=p+h.height+S,I=M.rectangle(-_/2,-E/2,_,E,{...C,fill:"transparent",stroke:"none"}),L=i.insert(()=>P,":first-child").attr("class","icon-shape2"),v=i.insert(()=>I);if(e.icon){let $=i.append("g");$.html(`${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}`);let D=$.node().getBBox(),O=D.width,W=D.height,X=D.x,te=D.y;$.attr("transform",`translate(${-O/2-X},${u?h.height/2+S/2-W/2-te:-h.height/2-S/2-W/2-te})`),$.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${u?-E/2:E/2-h.height})`),L.attr("transform",`translate(0,${u?h.height/2+S/2:-h.height/2-S/2})`),T(e,v),e.intersect=function($){if(V.info("iconSquare intersect",e,$),!e.label)return B.rect(e,$);let D=e.x??0,O=e.y??0,W=e.height??0,X=[];return X=u?[{x:D-h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2+h.height+S},{x:D+y/2,y:O-W/2+h.height+S},{x:D+y/2,y:O+W/2},{x:D-y/2,y:O+W/2},{x:D-y/2,y:O-W/2+h.height+S},{x:D-h.width/2,y:O-W/2+h.height+S}]:[{x:D-y/2,y:O-W/2},{x:D+y/2,y:O-W/2},{x:D+y/2,y:O-W/2+p},{x:D+h.width/2,y:O-W/2+p},{x:D+h.width/2/2,y:O+W/2},{x:D-h.width/2,y:O+W/2},{x:D-h.width/2,y:O-W/2+p},{x:D-y/2,y:O-W/2+p}],B.polygon(e,X,$)},i}w(ha,"iconRounded");async function oa(r,e,{config:{themeVariables:l,flowchart:n}}){let{labelStyles:a}=R(e);e.labelStyle=a;let s=e.assetHeight??48,d=e.assetWidth??48,t=Math.max(s,d),o=n==null?void 0:n.wrappingWidth;e.width=Math.max(t,o??0);let{shapeSvg:i,bbox:h,halfPadding:c,label:g}=await z(r,e,"icon-shape default"),u=e.pos==="t",p=t+c*2,y=t+c*2,{nodeBorder:m,mainBkg:f}=l,{stylesMap:x}=Ae(e),b=-y/2,k=-p/2,S=e.label?8:0,M=A.svg(i),C=N(e,{});e.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid"),C.stroke=x.get("fill")??f;let P=M.path(ge(b,k,y,p,.1),C),_=Math.max(y,h.width),E=p+h.height+S,I=M.rectangle(-_/2,-E/2,_,E,{...C,fill:"transparent",stroke:"none"}),L=i.insert(()=>P,":first-child"),v=i.insert(()=>I);if(e.icon){let $=i.append("g");$.html(`${await Le(e.icon,{height:t,width:t,fallbackPrefix:""})}`);let D=$.node().getBBox(),O=D.width,W=D.height,X=D.x,te=D.y;$.attr("transform",`translate(${-O/2-X},${u?h.height/2+S/2-W/2-te:-h.height/2-S/2-W/2-te})`),$.attr("style",`color: ${x.get("stroke")??m};`)}return g.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${u?-E/2:E/2-h.height})`),L.attr("transform",`translate(0,${u?h.height/2+S/2:-h.height/2-S/2})`),T(e,v),e.intersect=function($){if(V.info("iconSquare intersect",e,$),!e.label)return B.rect(e,$);let D=e.x??0,O=e.y??0,W=e.height??0,X=[];return X=u?[{x:D-h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2},{x:D+h.width/2,y:O-W/2+h.height+S},{x:D+y/2,y:O-W/2+h.height+S},{x:D+y/2,y:O+W/2},{x:D-y/2,y:O+W/2},{x:D-y/2,y:O-W/2+h.height+S},{x:D-h.width/2,y:O-W/2+h.height+S}]:[{x:D-y/2,y:O-W/2},{x:D+y/2,y:O-W/2},{x:D+y/2,y:O-W/2+p},{x:D+h.width/2,y:O-W/2+p},{x:D+h.width/2/2,y:O+W/2},{x:D-h.width/2,y:O+W/2},{x:D-h.width/2,y:O-W/2+p},{x:D-y/2,y:O-W/2+p}],B.polygon(e,X,$)},i}w(oa,"iconSquare");async function da(r,e,{config:{flowchart:l}}){let n=new Image;n.src=(e==null?void 0:e.img)??"",await n.decode();let a=Number(n.naturalWidth.toString().replace("px","")),s=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/s;let{labelStyles:d}=R(e);e.labelStyle=d;let t=l==null?void 0:l.wrappingWidth;e.defaultWidth=l==null?void 0:l.wrappingWidth;let o=Math.max(e.label?t??0:0,(e==null?void 0:e.assetWidth)??a),i=e.constraint==="on"&&(e!=null&&e.assetHeight)?e.assetHeight*e.imageAspectRatio:o,h=e.constraint==="on"?i/e.imageAspectRatio:(e==null?void 0:e.assetHeight)??s;e.width=Math.max(i,t??0);let{shapeSvg:c,bbox:g,label:u}=await z(r,e,"image-shape default"),p=e.pos==="t",y=-i/2,m=-h/2,f=e.label?8:0,x=A.svg(c),b=N(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=x.rectangle(y,m,i,h,b),S=Math.max(i,g.width),M=h+g.height+f,C=x.rectangle(-S/2,-M/2,S,M,{...b,fill:"none",stroke:"none"}),P=c.insert(()=>k,":first-child"),_=c.insert(()=>C);if(e.img){let E=c.append("image");E.attr("href",e.img),E.attr("width",i),E.attr("height",h),E.attr("preserveAspectRatio","none"),E.attr("transform",`translate(${-i/2},${p?M/2-h:-M/2})`)}return u.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${p?-h/2-g.height/2-f/2:h/2-g.height/2+f/2})`),P.attr("transform",`translate(0,${p?g.height/2+f/2:-g.height/2-f/2})`),T(e,_),e.intersect=function(E){if(V.info("iconSquare intersect",e,E),!e.label)return B.rect(e,E);let I=e.x??0,L=e.y??0,v=e.height??0,$=[];return $=p?[{x:I-g.width/2,y:L-v/2},{x:I+g.width/2,y:L-v/2},{x:I+g.width/2,y:L-v/2+g.height+f},{x:I+i/2,y:L-v/2+g.height+f},{x:I+i/2,y:L+v/2},{x:I-i/2,y:L+v/2},{x:I-i/2,y:L-v/2+g.height+f},{x:I-g.width/2,y:L-v/2+g.height+f}]:[{x:I-i/2,y:L-v/2},{x:I+i/2,y:L-v/2},{x:I+i/2,y:L-v/2+h},{x:I+g.width/2,y:L-v/2+h},{x:I+g.width/2/2,y:L+v/2},{x:I-g.width/2,y:L+v/2},{x:I-g.width/2,y:L-v/2+h},{x:I-i/2,y:L-v/2+h}],B.polygon(e,$,E)},c}w(da,"imageSquare");async function ca(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=[{x:0,y:0},{x:d,y:0},{x:d+3*t/6,y:-t},{x:-3*t/6,y:-t}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=q(o),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2}, ${t/2})`),h&&i.attr("style",h)}else i=ue(a,d,t,o);return n&&i.attr("style",n),e.width=d,e.height=t,T(e,i),e.intersect=function(c){return B.polygon(e,o,c)},a}w(ca,"inv_trapezoid");async function qe(r,e,l){let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n;let{shapeSvg:s,bbox:d}=await z(r,e,j(e)),t=Math.max(d.width+l.labelPaddingX*2,(e==null?void 0:e.width)||0),o=Math.max(d.height+l.labelPaddingY*2,(e==null?void 0:e.height)||0),i=-t/2,h=-o/2,c,{rx:g,ry:u}=e,{cssStyles:p}=e;if(l!=null&&l.rx&&l.ry&&(g=l.rx,u=l.ry),e.look==="handDrawn"){let y=A.svg(s),m=N(e,{}),f=g||u?y.path(ge(i,h,t,o,g||0),m):y.rectangle(i,h,t,o,m);c=s.insert(()=>f,":first-child"),c.attr("class","basic label-container").attr("style",U(p))}else c=s.insert("rect",":first-child"),c.attr("class","basic label-container").attr("style",a).attr("rx",U(g)).attr("ry",U(u)).attr("x",i).attr("y",h).attr("width",t).attr("height",o);return T(e,c),e.calcIntersect=function(y,m){return B.rect(y,m)},e.intersect=function(y){return B.rect(e,y)},s}w(qe,"drawRect");async function ga(r,e){let{shapeSvg:l,bbox:n,label:a}=await z(r,e,"label"),s=l.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),l.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),T(e,s),e.intersect=function(d){return B.rect(e,d)},l}w(ga,"labelRect");async function ua(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)??0),o=[{x:0,y:0},{x:d+3*t/6,y:0},{x:d,y:-t},{x:-(3*t)/6,y:-t}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=q(o),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2}, ${t/2})`),h&&i.attr("style",h)}else i=ue(a,d,t,o);return n&&i.attr("style",n),e.width=d,e.height=t,T(e,i),e.intersect=function(c){return B.polygon(e,o,c)},a}w(ua,"lean_left");async function pa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)??0),o=[{x:-3*t/6,y:0},{x:d,y:0},{x:d+3*t/6,y:-t},{x:0,y:-t}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=q(o),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2}, ${t/2})`),h&&i.attr("style",h)}else i=ue(a,d,t,o);return n&&i.attr("style",n),e.width=d,e.height=t,T(e,i),e.intersect=function(c){return B.polygon(e,o,c)},a}w(pa,"lean_right");function ya(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.label="",e.labelStyle=l;let a=r.insert("g").attr("class",j(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,d=Math.max(35,(e==null?void 0:e.width)??0),t=Math.max(35,(e==null?void 0:e.height)??0),o=[{x:d,y:0},{x:0,y:t+7/2},{x:d-14,y:t+7/2},{x:0,y:2*t},{x:d,y:t-7/2},{x:14,y:t-7/2}],i=A.svg(a),h=N(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let c=q(o),g=i.path(c,h),u=a.insert(()=>g,":first-child");return s&&e.look!=="handDrawn"&&u.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&u.selectAll("path").attr("style",n),u.attr("transform",`translate(-${d/2},${-t})`),T(e,u),e.intersect=function(p){return V.info("lightningBolt intersect",e,p),B.polygon(e,o,p)},a}w(ya,"lightningBolt");var Al=w((r,e,l,n,a,s,d)=>[`M${r},${e+s}`,`a${a},${s} 0,0,0 ${l},0`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`,`M${r},${e+s+d}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createCylinderPathD"),Ll=w((r,e,l,n,a,s,d)=>[`M${r},${e+s}`,`M${r+l},${e+s}`,`a${a},${s} 0,0,0 ${-l},0`,`l0,${n}`,`a${a},${s} 0,0,0 ${l},0`,`l0,${-n}`,`M${r},${e+s+d}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createOuterCylinderPathD"),Nl=w((r,e,l,n,a,s)=>[`M${r-l/2},${-n/2}`,`a${a},${s} 0,0,0 ${l},0`].join(" "),"createInnerCylinderPathD");async function fa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0),e.width??0),o=t/2,i=o/(2.5+t/50),h=Math.max(s.height+i+(e.padding??0),e.height??0),c=h*.1,g,{cssStyles:u}=e;if(e.look==="handDrawn"){let p=A.svg(a),y=Ll(0,0,t,h,o,i,c),m=Nl(0,i,t,h,o,i),f=N(e,{}),x=p.path(y,f),b=p.path(m,f);a.insert(()=>b,":first-child").attr("class","line"),g=a.insert(()=>x,":first-child"),g.attr("class","basic label-container"),u&&g.attr("style",u)}else{let p=Al(0,0,t,h,o,i,c);g=a.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",U(u)).attr("style",n)}return g.attr("label-offset-y",i),g.attr("transform",`translate(${-t/2}, ${-(h/2+i)})`),T(e,g),d.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+i-(s.y-(s.top??0))})`),e.intersect=function(p){let y=B.rect(e,p),m=y.x-(e.x??0);if(o!=0&&(Math.abs(m)<(e.width??0)/2||Math.abs(m)==(e.width??0)/2&&Math.abs(y.y-(e.y??0))>(e.height??0)/2-i)){let f=i*i*(1-m*m/(o*o));f>0&&(f=Math.sqrt(f)),f=i-f,p.y-(e.y??0)>0&&(f=-f),y.y+=f}return y},a}w(fa,"linedCylinder");async function ma(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=o/4,h=o+i,{cssStyles:c}=e,g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=[{x:-t/2-t/2*.1,y:-h/2},{x:-t/2-t/2*.1,y:h/2},...ce(-t/2-t/2*.1,h/2,t/2+t/2*.1,h/2,i,.8),{x:t/2+t/2*.1,y:-h/2},{x:-t/2-t/2*.1,y:-h/2},{x:-t/2,y:-h/2},{x:-t/2,y:h/2*1.1},{x:-t/2,y:-h/2}],y=g.polygon(p.map(f=>[f.x,f.y]),u),m=a.insert(()=>y,":first-child");return m.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",c),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(0,${-i/2})`),d.attr("transform",`translate(${-t/2+(e.padding??0)+t/2*.1/2-(s.x-(s.left??0))},${-o/2+(e.padding??0)-i/2-(s.y-(s.top??0))})`),T(e,m),e.intersect=function(f){return B.polygon(e,p,f)},a}w(ma,"linedWaveEdgedRect");async function xa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=-t/2,h=-o/2,{cssStyles:c}=e,g=A.svg(a),u=N(e,{}),p=[{x:i-5,y:h+5},{x:i-5,y:h+o+5},{x:i+t-5,y:h+o+5},{x:i+t-5,y:h+o},{x:i+t,y:h+o},{x:i+t,y:h+o-5},{x:i+t+5,y:h+o-5},{x:i+t+5,y:h-5},{x:i+5,y:h-5},{x:i+5,y:h},{x:i,y:h},{x:i,y:h+5}],y=[{x:i,y:h+5},{x:i+t-5,y:h+5},{x:i+t-5,y:h+o},{x:i+t,y:h+o},{x:i+t,y:h},{x:i,y:h}];e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=q(p),f=g.path(m,u),x=q(y),b=g.path(x,{...u,fill:"none"}),k=a.insert(()=>b,":first-child");return k.insert(()=>f,":first-child"),k.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",c),n&&e.look!=="handDrawn"&&k.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(s.width/2)-5-(s.x-(s.left??0))}, ${-(s.height/2)+5-(s.y-(s.top??0))})`),T(e,k),e.intersect=function(S){return B.polygon(e,p,S)},a}w(xa,"multiRect");async function ba(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=o/4,h=o+i,c=-t/2,g=-h/2,{cssStyles:u}=e,p=ce(c-5,g+h+5,c+t-5,g+h+5,i,.8),y=p==null?void 0:p[p.length-1],m=[{x:c-5,y:g+5},{x:c-5,y:g+h+5},...p,{x:c+t-5,y:y.y-5},{x:c+t,y:y.y-5},{x:c+t,y:y.y-10},{x:c+t+5,y:y.y-10},{x:c+t+5,y:g-5},{x:c+5,y:g-5},{x:c+5,y:g},{x:c,y:g},{x:c,y:g+5}],f=[{x:c,y:g+5},{x:c+t-5,y:g+5},{x:c+t-5,y:y.y-5},{x:c+t,y:y.y-5},{x:c+t,y:g},{x:c,y:g}],x=A.svg(a),b=N(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=q(m),S=x.path(k,b),M=q(f),C=x.path(M,b),P=a.insert(()=>S,":first-child");return P.insert(()=>C),P.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(0,${-i/2})`),d.attr("transform",`translate(${-(s.width/2)-5-(s.x-(s.left??0))}, ${-(s.height/2)+5-i/2-(s.y-(s.top??0))})`),T(e,P),e.intersect=function(_){return B.polygon(e,m,_)},a}w(ba,"multiWaveEdgedRectangle");async function wa(r,e,{config:{themeVariables:l}}){var f;let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n,e.useHtmlLabels||((f=Se().flowchart)==null?void 0:f.htmlLabels)!==!1||(e.centerLabel=!0);let{shapeSvg:s,bbox:d,label:t}=await z(r,e,j(e)),o=Math.max(d.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),i=Math.max(d.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=-o/2,c=-i/2,{cssStyles:g}=e,u=A.svg(s),p=N(e,{fill:l.noteBkgColor,stroke:l.noteBorderColor});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=u.rectangle(h,c,o,i,p),m=s.insert(()=>y,":first-child");return m.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",g),a&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",a),t.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),T(e,m),e.intersect=function(x){return B.rect(e,x)},s}w(wa,"note");var Tl=w((r,e,l)=>[`M${r+l/2},${e}`,`L${r+l},${e-l/2}`,`L${r+l/2},${e-l}`,`L${r},${e-l/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Sa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.width+e.padding+(s.height+e.padding),t=.5,o=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=Tl(0,0,d),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2+t}, ${d/2})`),h&&i.attr("style",h)}else i=ue(a,d,d,o),i.attr("transform",`translate(${-d/2+t}, ${d/2})`);return n&&i.attr("style",n),T(e,i),e.calcIntersect=function(c,g){let u=c.width,p=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],y=B.polygon(c,p,g);return{x:y.x-.5,y:y.y-.5}},e.intersect=function(c){return this.calcIntersect(e,c)},a}w(Sa,"question");async function ka(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0),(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0),(e==null?void 0:e.height)??0),i=-t/2,h=-o/2,c=h/2,g=[{x:i+c,y:h},{x:i,y:0},{x:i+c,y:-h},{x:-i,y:-h},{x:-i,y:h}],{cssStyles:u}=e,p=A.svg(a),y=N(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=q(g),f=p.path(m,y),x=a.insert(()=>f,":first-child");return x.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(${-c/2},0)`),d.attr("transform",`translate(${-c/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(e,x),e.intersect=function(b){return B.polygon(e,g,b)},a}w(ka,"rect_left_inv_arrow");async function $a(r,e){var P,_;let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let a;a=e.cssClasses?"node "+e.cssClasses:"node default";let s=r.insert("g").attr("class",a).attr("id",e.domId||e.id),d=s.insert("g"),t=s.insert("g").attr("class","label").attr("style",n),o=e.description,i=e.label,h=t.node().appendChild(await ze(i,e.labelStyle,!0,!0)),c={width:0,height:0};if(Y((_=(P=Z())==null?void 0:P.flowchart)==null?void 0:_.htmlLabels)){let E=h.children[0],I=Q(h);c=E.getBoundingClientRect(),I.attr("width",c.width),I.attr("height",c.height)}V.info("Text 2",o);let g=o||[],u=h.getBBox(),p=t.node().appendChild(await ze(g.join?g.join("
"):g,e.labelStyle,!0,!0)),y=p.children[0],m=Q(p);c=y.getBoundingClientRect(),m.attr("width",c.width),m.attr("height",c.height);let f=(e.padding||0)/2;Q(p).attr("transform","translate( "+(c.width>u.width?0:(u.width-c.width)/2)+", "+(u.height+f+5)+")"),Q(h).attr("transform","translate( "+(c.width(V.debug("Rough node insert CXC",L),v),":first-child"),M=s.insert(()=>(V.debug("Rough node insert CXC",L),L),":first-child")}else M=d.insert("rect",":first-child"),C=d.insert("line"),M.attr("class","outer title-state").attr("style",n).attr("x",-c.width/2-f).attr("y",-c.height/2-f).attr("width",c.width+(e.padding||0)).attr("height",c.height+(e.padding||0)),C.attr("class","divider").attr("x1",-c.width/2-f).attr("x2",c.width/2+f).attr("y1",-c.height/2-f+u.height+f).attr("y2",-c.height/2-f+u.height+f);return T(e,M),e.intersect=function(E){return B.rect(e,E)},s}w($a,"rectWithTitle");function De(r,e,l,n,a,s,d){let t=(r+l)/2,o=(e+n)/2,i=Math.atan2(n-e,l-r),h=(l-r)/2,c=(n-e)/2,g=h/a,u=c/s,p=Math.sqrt(g**2+u**2);if(p>1)throw Error("The given radii are too small to create an arc between the points.");let y=Math.sqrt(1-p**2),m=t+y*s*Math.sin(i)*(d?-1:1),f=o-y*a*Math.cos(i)*(d?-1:1),x=Math.atan2((e-f)/s,(r-m)/a),b=Math.atan2((n-f)/s,(l-m)/a)-x;d&&b<0&&(b+=2*Math.PI),!d&&b>0&&(b-=2*Math.PI);let k=[];for(let S=0;S<20;S++){let M=x+S/19*b,C=m+a*Math.cos(M),P=f+s*Math.sin(M);k.push({x:C,y:P})}return k}w(De,"generateArcPoints");async function Ma(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=(e==null?void 0:e.padding)??0,t=(e==null?void 0:e.padding)??0,o=(e!=null&&e.width?e==null?void 0:e.width:s.width)+d*2,i=(e!=null&&e.height?e==null?void 0:e.height:s.height)+t*2,h=e.radius||5,c=e.taper||5,{cssStyles:g}=e,u=A.svg(a),p=N(e,{});e.stroke&&(p.stroke=e.stroke),e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=[{x:-o/2+c,y:-i/2},{x:o/2-c,y:-i/2},...De(o/2-c,-i/2,o/2,-i/2+c,h,h,!0),{x:o/2,y:-i/2+c},{x:o/2,y:i/2-c},...De(o/2,i/2-c,o/2-c,i/2,h,h,!0),{x:o/2-c,y:i/2},{x:-o/2+c,y:i/2},...De(-o/2+c,i/2,-o/2,i/2-c,h,h,!0),{x:-o/2,y:i/2-c},{x:-o/2,y:-i/2+c},...De(-o/2,-i/2+c,-o/2+c,-i/2,h,h,!0)],m=q(y),f=u.path(m,p),x=a.insert(()=>f,":first-child");return x.attr("class","basic label-container outer-path"),g&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&x.selectChildren("path").attr("style",n),T(e,x),e.intersect=function(b){return B.polygon(e,y,b)},a}w(Ma,"roundedRect");async function va(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=(e==null?void 0:e.padding)??0,o=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),i=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=-s.width/2-t,c=-s.height/2-t,{cssStyles:g}=e,u=A.svg(a),p=N(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=[{x:h,y:c},{x:h+o+8,y:c},{x:h+o+8,y:c+i},{x:h-8,y:c+i},{x:h-8,y:c},{x:h,y:c},{x:h,y:c+i}],m=u.polygon(y.map(x=>[x.x,x.y]),p),f=a.insert(()=>m,":first-child");return f.attr("class","basic label-container").attr("style",U(g)),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),g&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),d.attr("transform",`translate(${-o/2+4+(e.padding??0)-(s.x-(s.left??0))},${-i/2+(e.padding??0)-(s.y-(s.top??0))})`),T(e,f),e.intersect=function(x){return B.rect(e,x)},a}w(va,"shadedProcess");async function Da(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=-t/2,h=-o/2,{cssStyles:c}=e,g=A.svg(a),u=N(e,{});e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let p=[{x:i,y:h},{x:i,y:h+o},{x:i+t,y:h+o},{x:i+t,y:h-o/2}],y=q(p),m=g.path(y,u),f=a.insert(()=>m,":first-child");return f.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&f.selectChildren("path").attr("style",c),n&&e.look!=="handDrawn"&&f.selectChildren("path").attr("style",n),f.attr("transform",`translate(0, ${o/4})`),d.attr("transform",`translate(${-t/2+(e.padding??0)-(s.x-(s.left??0))}, ${-o/4+(e.padding??0)-(s.y-(s.top??0))})`),T(e,f),e.intersect=function(x){return B.polygon(e,p,x)},a}w(Da,"slopedRect");async function Ca(r,e){return qe(r,e,{rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??((e==null?void 0:e.padding)||0)*2,labelPaddingY:((e==null?void 0:e.padding)||0)*1})}w(Ca,"squareRect");async function Pa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.height+e.padding,t=s.width+d/4+e.padding,o=d/2,{cssStyles:i}=e,h=A.svg(a),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=[{x:-t/2+o,y:-d/2},{x:t/2-o,y:-d/2},...ve(-t/2+o,0,o,50,90,270),{x:t/2-o,y:d/2},...ve(t/2-o,0,o,50,270,450)],u=q(g),p=h.path(u,c),y=a.insert(()=>p,":first-child");return y.attr("class","basic label-container outer-path"),i&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),n&&e.look!=="handDrawn"&&y.selectChildren("path").attr("style",n),T(e,y),e.intersect=function(m){return B.polygon(e,g,m)},a}w(Pa,"stadium");async function Ba(r,e){return qe(r,e,{rx:5,ry:5,classes:"flowchart-node"})}w(Ba,"state");function Aa(r,e,{config:{themeVariables:l}}){let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n;let{cssStyles:s}=e,{lineColor:d,stateBorder:t,nodeBorder:o}=l,i=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),h=A.svg(i),c=N(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");let g=h.circle(0,0,14,{...c,stroke:d,strokeWidth:2}),u=t??o,p=h.circle(0,0,5,{...c,fill:u,stroke:u,strokeWidth:2,fillStyle:"solid"}),y=i.insert(()=>g,":first-child");return y.insert(()=>p),s&&y.selectAll("path").attr("style",s),a&&y.selectAll("path").attr("style",a),T(e,y),e.intersect=function(m){return B.circle(e,7,m)},i}w(Aa,"stateEnd");function La(r,e,{config:{themeVariables:l}}){let{lineColor:n}=l,a=r.insert("g").attr("class","node default").attr("id",e.domId||e.id),s;if(e.look==="handDrawn"){let d=A.svg(a).circle(0,0,14,rl(n));s=a.insert(()=>d),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else s=a.insert("circle",":first-child"),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return T(e,s),e.intersect=function(d){return B.circle(e,7,d)},a}w(La,"stateStart");async function Na(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=((e==null?void 0:e.padding)||0)/2,t=s.width+e.padding,o=s.height+e.padding,i=-s.width/2-d,h=-s.height/2-d,c=[{x:0,y:0},{x:t,y:0},{x:t,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:t+8,y:0},{x:t+8,y:-o},{x:-8,y:-o},{x:-8,y:0}];if(e.look==="handDrawn"){let g=A.svg(a),u=N(e,{}),p=g.rectangle(i-8,h,t+16,o,u),y=g.line(i,h,i,h+o,u),m=g.line(i+t,h,i+t,h+o,u);a.insert(()=>y,":first-child"),a.insert(()=>m,":first-child");let f=a.insert(()=>p,":first-child"),{cssStyles:x}=e;f.attr("class","basic label-container").attr("style",U(x)),T(e,f)}else{let g=ue(a,t,o,c);n&&g.attr("style",n),T(e,g)}return e.intersect=function(g){return B.polygon(e,c,g)},a}w(Na,"subroutine");async function Ta(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=-d/2,i=-t/2,h=.2*t,c=.2*t,{cssStyles:g}=e,u=A.svg(a),p=N(e,{}),y=[{x:o-h/2,y:i},{x:o+d+h/2,y:i},{x:o+d+h/2,y:i+t},{x:o-h/2,y:i+t}],m=[{x:o+d-h/2,y:i+t},{x:o+d+h/2,y:i+t},{x:o+d+h/2,y:i+t-c}];e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let f=q(y),x=u.path(f,p),b=q(m),k=u.path(b,{...p,fillStyle:"solid"}),S=a.insert(()=>k,":first-child");return S.insert(()=>x,":first-child"),S.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),T(e,S),e.intersect=function(M){return B.polygon(e,y,M)},a}w(Ta,"taggedRect");async function Ra(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=o/4,h=.2*t,c=.2*o,g=o+i,{cssStyles:u}=e,p=A.svg(a),y=N(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=[{x:-t/2-t/2*.1,y:g/2},...ce(-t/2-t/2*.1,g/2,t/2+t/2*.1,g/2,i,.8),{x:t/2+t/2*.1,y:-g/2},{x:-t/2-t/2*.1,y:-g/2}],f=-t/2+t/2*.1,x=-g/2-c*.4,b=[{x:f+t-h,y:(x+o)*1.4},{x:f+t,y:x+o-c},{x:f+t,y:(x+o)*.9},...ce(f+t,(x+o)*1.3,f+t-h,(x+o)*1.5,-o*.03,.5)],k=q(m),S=p.path(k,y),M=q(b),C=p.path(M,{...y,fillStyle:"solid"}),P=a.insert(()=>C,":first-child");return P.insert(()=>S,":first-child"),P.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&P.selectAll("path").attr("style",n),P.attr("transform",`translate(0,${-i/2})`),d.attr("transform",`translate(${-t/2+(e.padding??0)-(s.x-(s.left??0))},${-o/2+(e.padding??0)-i/2-(s.y-(s.top??0))})`),T(e,P),e.intersect=function(_){return B.polygon(e,m,_)},a}w(Ra,"taggedWaveEdgedRectangle");async function _a(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+e.padding,(e==null?void 0:e.width)||0),t=Math.max(s.height+e.padding,(e==null?void 0:e.height)||0),o=-d/2,i=-t/2,h=a.insert("rect",":first-child");return h.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",o).attr("y",i).attr("width",d).attr("height",t),T(e,h),e.intersect=function(c){return B.rect(e,c)},a}w(_a,"text");var Rl=w((r,e,l,n,a,s)=>`M${r},${e} + a${a},${s} 0,0,1 0,${-n} + l${l},0 + a${a},${s} 0,0,1 0,${n} + M${l},${-n} + a${a},${s} 0,0,0 0,${n} + l${-l},0`,"createCylinderPathD"),_l=w((r,e,l,n,a,s)=>[`M${r},${e}`,`M${r+l},${e}`,`a${a},${s} 0,0,0 0,${-n}`,`l${-l},0`,`a${a},${s} 0,0,0 0,${n}`,`l${l},0`].join(" "),"createOuterCylinderPathD"),Ol=w((r,e,l,n,a,s)=>[`M${r+l/2},${-n/2}`,`a${a},${s} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");async function Oa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d,halfPadding:t}=await z(r,e,j(e)),o=e.look==="neo"?t*2:t,i=s.height+o,h=i/2,c=h/(2.5+i/50),g=s.width+c+o,{cssStyles:u}=e,p;if(e.look==="handDrawn"){let y=A.svg(a),m=_l(0,0,g,i,c,h),f=Ol(0,0,g,i,c,h),x=y.path(m,N(e,{})),b=y.path(f,N(e,{fill:"none"}));p=a.insert(()=>b,":first-child"),p=a.insert(()=>x,":first-child"),p.attr("class","basic label-container"),u&&p.attr("style",u)}else{let y=Rl(0,0,g,i,c,h);p=a.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",U(u)).attr("style",n),p.attr("class","basic label-container"),u&&p.selectAll("path").attr("style",u),n&&p.selectAll("path").attr("style",n)}return p.attr("label-offset-x",c),p.attr("transform",`translate(${-g/2}, ${i/2} )`),d.attr("transform",`translate(${-(s.width/2)-c-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),T(e,p),e.intersect=function(y){let m=B.rect(e,y),f=m.y-(e.y??0);if(h!=0&&(Math.abs(f)<(e.height??0)/2||Math.abs(f)==(e.height??0)/2&&Math.abs(m.x-(e.x??0))>(e.width??0)/2-c)){let x=c*c*(1-f*f/(h*h));x!=0&&(x=Math.sqrt(Math.abs(x))),x=c-x,y.x-(e.x??0)>0&&(x=-x),m.x+=x}return m},a}w(Oa,"tiltedCylinder");async function Ia(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=s.width+e.padding,t=s.height+e.padding,o=[{x:-3*t/6,y:0},{x:d+3*t/6,y:0},{x:d,y:-t},{x:0,y:-t}],i,{cssStyles:h}=e;if(e.look==="handDrawn"){let c=A.svg(a),g=N(e,{}),u=q(o),p=c.path(u,g);i=a.insert(()=>p,":first-child").attr("transform",`translate(${-d/2}, ${t/2})`),h&&i.attr("style",h)}else i=ue(a,d,t,o);return n&&i.attr("style",n),e.width=d,e.height=t,T(e,i),e.intersect=function(c){return B.polygon(e,o,c)},a}w(Ia,"trapezoid");async function Ea(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(60,s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(20,s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),{cssStyles:o}=e,i=A.svg(a),h=N(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let c=[{x:-d/2*.8,y:-t/2},{x:d/2*.8,y:-t/2},{x:d/2,y:-t/2*.6},{x:d/2,y:t/2},{x:-d/2,y:t/2},{x:-d/2,y:-t/2*.6}],g=q(c),u=i.path(g,h),p=a.insert(()=>u,":first-child");return p.attr("class","basic label-container"),o&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",o),n&&e.look!=="handDrawn"&&p.selectChildren("path").attr("style",n),T(e,p),e.intersect=function(y){return B.polygon(e,c,y)},a}w(Ea,"trapezoidalPentagon");async function Wa(r,e){var x;let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Y((x=Z().flowchart)==null?void 0:x.htmlLabels),o=s.width+(e.padding??0),i=o+s.height,h=o+s.height,c=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-i}],{cssStyles:g}=e,u=A.svg(a),p=N(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=q(c),m=u.path(y,p),f=a.insert(()=>m,":first-child").attr("transform",`translate(${-i/2}, ${i/2})`);return g&&e.look!=="handDrawn"&&f.selectChildren("path").attr("style",g),n&&e.look!=="handDrawn"&&f.selectChildren("path").attr("style",n),e.width=o,e.height=i,T(e,f),d.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${i/2-(s.height+(e.padding??0)/(t?2:1)-(s.y-(s.top??0)))})`),e.intersect=function(b){return V.info("Triangle intersect",e,c,b),B.polygon(e,c,b)},a}w(Wa,"triangle");async function ja(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=o/8,h=o+i,{cssStyles:c}=e,g=70-t,u=g>0?g/2:0,p=A.svg(a),y=N(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=[{x:-t/2-u,y:h/2},...ce(-t/2-u,h/2,t/2+u,h/2,i,.8),{x:t/2+u,y:-h/2},{x:-t/2-u,y:-h/2}],f=q(m),x=p.path(f,y),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",c),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(0,${-i/2})`),d.attr("transform",`translate(${-t/2+(e.padding??0)-(s.x-(s.left??0))},${-o/2+(e.padding??0)-i-(s.y-(s.top??0))})`),T(e,b),e.intersect=function(k){return B.polygon(e,m,k)},a}w(ja,"waveEdgedRectangle");async function Ha(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s}=await z(r,e,j(e)),d=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),t=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),o=d/t,i=d,h=t;i>h*o?h=i/o:i=h*o,i=Math.max(i,100),h=Math.max(h,50);let c=Math.min(h*.2,h/4),g=h+c*2,{cssStyles:u}=e,p=A.svg(a),y=N(e,{});e.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let m=[{x:-i/2,y:g/2},...ce(-i/2,g/2,i/2,g/2,c,1),{x:i/2,y:-g/2},...ce(i/2,-g/2,-i/2,-g/2,c,-1)],f=q(m),x=p.path(f,y),b=a.insert(()=>x,":first-child");return b.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&b.selectAll("path").attr("style",n),T(e,b),e.intersect=function(k){return B.polygon(e,m,k)},a}w(Ha,"waveRectangle");async function za(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,label:d}=await z(r,e,j(e)),t=Math.max(s.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(s.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),i=-t/2,h=-o/2,{cssStyles:c}=e,g=A.svg(a),u=N(e,{}),p=[{x:i-5,y:h-5},{x:i-5,y:h+o},{x:i+t,y:h+o},{x:i+t,y:h-5}],y=`M${i-5},${h-5} L${i+t},${h-5} L${i+t},${h+o} L${i-5},${h+o} L${i-5},${h-5} + M${i-5},${h} L${i+t},${h} + M${i},${h-5} L${i},${h+o}`;e.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let m=g.path(y,u),f=a.insert(()=>m,":first-child");return f.attr("transform",`translate(${5/2}, ${5/2})`),f.attr("class","basic label-container"),c&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",c),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(s.width/2)+5/2-(s.x-(s.left??0))}, ${-(s.height/2)+5/2-(s.y-(s.top??0))})`),T(e,f),e.intersect=function(x){return B.polygon(e,p,x)},a}w(za,"windowPane");async function nt(r,e){var Pe,ht,ot,dt,ct;let l=e;if(l.alias&&(e.label=l.alias),e.look==="handDrawn"){let{themeVariables:F}=Se(),{background:G}=F;await nt(r,{...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${G}`]})}let n=Se();e.useHtmlLabels=n.htmlLabels;let a=((Pe=n.er)==null?void 0:Pe.diagramPadding)??10,s=((ht=n.er)==null?void 0:ht.entityPadding)??6,{cssStyles:d}=e,{labelStyles:t,nodeStyles:o}=R(e);if(l.attributes.length===0&&e.label){let F={rx:0,ry:0,labelPaddingX:a,labelPaddingY:a*1.5,classes:""};Be(e.label,n)+F.labelPaddingX*20){let F=c.width+a*2-(y+m+f+x);y+=F/S,m+=F/S,f>0&&(f+=F/S),x>0&&(x+=F/S)}let C=y+m+f+x,P=A.svg(h),_=N(e,{});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let E=0;p.length>0&&(E=p.reduce((F,G)=>F+((G==null?void 0:G.rowHeight)??0),0));let I=Math.max(M.width+a*2,(e==null?void 0:e.width)||0,C),L=Math.max((E??0)+c.height,(e==null?void 0:e.height)||0),v=-I/2,$=-L/2;h.selectAll("g:not(:first-child)").each((F,G,re)=>{let ae=Q(re[G]),be=ae.attr("transform"),oe=0,gt=0;if(be){let Fe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(be);Fe&&(oe=parseFloat(Fe[1]),gt=parseFloat(Fe[2]),ae.attr("class").includes("attribute-name")?oe+=y:ae.attr("class").includes("attribute-keys")?oe+=y+m:ae.attr("class").includes("attribute-comment")&&(oe+=y+m+f))}ae.attr("transform",`translate(${v+a/2+oe}, ${gt+$+c.height+s/2})`)}),h.select(".name").attr("transform","translate("+-c.width/2+", "+($+s/2)+")");let D=P.rectangle(v,$,I,L,_),O=h.insert(()=>D,":first-child").attr("style",d.join("")),{themeVariables:W}=Se(),{rowEven:X,rowOdd:te,nodeBorder:he}=W;u.push(0);for(let[F,G]of p.entries()){let re=(F+1)%2==0&&G.yOffset!==0,ae=P.rectangle(v,c.height+$+(G==null?void 0:G.yOffset),I,G==null?void 0:G.rowHeight,{..._,fill:re?X:te,stroke:he});h.insert(()=>ae,"g.label").attr("style",d.join("")).attr("class",`row-rect-${re?"even":"odd"}`)}let le=P.line(v,c.height+$,I+v,c.height+$,_);h.insert(()=>le).attr("class","divider"),le=P.line(y+v,c.height+$,y+v,L+$,_),h.insert(()=>le).attr("class","divider"),b&&(le=P.line(y+m+v,c.height+$,y+m+v,L+$,_),h.insert(()=>le).attr("class","divider")),k&&(le=P.line(y+m+f+v,c.height+$,y+m+f+v,L+$,_),h.insert(()=>le).attr("class","divider"));for(let F of u)le=P.line(v,c.height+$+F,I+v,c.height+$+F,_),h.insert(()=>le).attr("class","divider");if(T(e,O),o&&e.look!=="handDrawn"){let F=(ct=(dt=o.split(";"))==null?void 0:dt.filter(G=>G.includes("stroke")))==null?void 0:ct.map(G=>`${G}`).join("; ");h.selectAll("path").attr("style",F??""),h.selectAll(".row-rect-even path").attr("style",o)}return e.intersect=function(F){return B.rect(e,F)},h}w(nt,"erBox");async function xe(r,e,l,n=0,a=0,s=[],d=""){let t=r.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${n}, ${a})`).attr("style",d);e!==ut(e)&&(e=ut(e),e=e.replaceAll("<","<").replaceAll(">",">"));let o=t.node().appendChild(await pe(t,e,{width:Be(e,l)+100,style:d,useHtmlLabels:l.htmlLabels},l));if(e.includes("<")||e.includes(">")){let h=o.children[0];for(h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("<","<").replaceAll(">",">")}let i=o.getBBox();if(Y(l.htmlLabels)){let h=o.children[0];h.style.textAlign="start";let c=Q(o);i=h.getBoundingClientRect(),c.attr("width",i.width),c.attr("height",i.height)}return i}w(xe,"addText");async function qa(r,e,l,n,a=l.class.padding??12){let s=n?0:3,d=r.insert("g").attr("class",j(e)).attr("id",e.domId||e.id),t=null,o=null,i=null,h=null,c=0,g=0,u=0;if(t=d.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let x=e.annotations[0];await Ce(t,{text:`\xAB${x}\xBB`},0),c=t.node().getBBox().height}o=d.insert("g").attr("class","label-group text"),await Ce(o,e,0,["font-weight: bolder"]);let p=o.node().getBBox();g=p.height,i=d.insert("g").attr("class","members-group text");let y=0;for(let x of e.members){let b=await Ce(i,x,y,[x.parseClassifier()]);y+=b+s}u=i.node().getBBox().height,u<=0&&(u=a/2),h=d.insert("g").attr("class","methods-group text");let m=0;for(let x of e.methods){let b=await Ce(h,x,m,[x.parseClassifier()]);m+=b+s}let f=d.node().getBBox();if(t!==null){let x=t.node().getBBox();t.attr("transform",`translate(${-x.width/2})`)}return o.attr("transform",`translate(${-p.width/2}, ${c})`),f=d.node().getBBox(),i.attr("transform",`translate(0, ${c+g+a*2})`),f=d.node().getBBox(),h.attr("transform",`translate(0, ${c+g+(u?u+a*4:a*2)})`),f=d.node().getBBox(),{shapeSvg:d,bbox:f}}w(qa,"textHelper");async function Ce(r,e,l,n=[]){let a=r.insert("g").attr("class","label").attr("style",n.join("; ")),s=Se(),d="useHtmlLabels"in e?e.useHtmlLabels:Y(s.htmlLabels)??!0,t="";t="text"in e?e.text:e.label,!d&&t.startsWith("\\")&&(t=t.substring(1)),yt(t)&&(d=!0);let o=await pe(a,pt(we(t)),{width:Be(t,s)+50,classes:"markdown-node-label",useHtmlLabels:d},s),i,h=1;if(d){let c=o.children[0],g=Q(o);h=c.innerHTML.split("
").length,c.innerHTML.includes("")&&(h+=c.innerHTML.split("").length-1);let u=c.getElementsByTagName("img");if(u){let p=t.replace(/]*>/g,"").trim()==="";await Promise.all([...u].map(y=>new Promise(m=>{function f(){var x;if(y.style.display="flex",y.style.flexDirection="column",p){let b=((x=s.fontSize)==null?void 0:x.toString())??window.getComputedStyle(document.body).fontSize,k=parseInt(b,10)*5+"px";y.style.minWidth=k,y.style.maxWidth=k}else y.style.width="100%";m(y)}w(f,"setupImage"),setTimeout(()=>{y.complete&&f()}),y.addEventListener("error",f),y.addEventListener("load",f)})))}i=c.getBoundingClientRect(),g.attr("width",i.width),g.attr("height",i.height)}else{n.includes("font-weight: bolder")&&Q(o).selectAll("tspan").attr("font-weight",""),h=o.children.length;let c=o.children[0];(o.textContent===""||o.textContent.includes(">"))&&(c.textContent=t[0]+t.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),t[1]===" "&&(c.textContent=c.textContent[0]+" "+c.textContent.substring(1))),c.textContent==="undefined"&&(c.textContent=""),i=o.getBBox()}return a.attr("transform","translate(0,"+(-i.height/(2*h)+l)+")"),i.height}w(Ce,"addText");async function Va(r,e){var _,E;let l=Z(),n=l.class.padding??12,a=n,s=e.useHtmlLabels??Y(l.htmlLabels)??!0,d=e;d.annotations=d.annotations??[],d.members=d.members??[],d.methods=d.methods??[];let{shapeSvg:t,bbox:o}=await qa(r,e,l,s,a),{labelStyles:i,nodeStyles:h}=R(e);e.labelStyle=i,e.cssStyles=d.styles||"";let c=((_=d.styles)==null?void 0:_.join(";"))||h||"";e.cssStyles||(e.cssStyles=c.replaceAll("!important","").split(";"));let g=d.members.length===0&&d.methods.length===0&&!((E=l.class)!=null&&E.hideEmptyMembersBox),u=A.svg(t),p=N(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let y=o.width,m=o.height;d.members.length===0&&d.methods.length===0?m+=a:d.members.length>0&&d.methods.length===0&&(m+=a*2);let f=-y/2,x=-m/2,b=u.rectangle(f-n,x-n-(g?n:d.members.length===0&&d.methods.length===0?-n/2:0),y+2*n,m+2*n+(g?n*2:d.members.length===0&&d.methods.length===0?-n:0),p),k=t.insert(()=>b,":first-child");k.attr("class","basic label-container");let S=k.node().getBBox();t.selectAll(".text").each((I,L,v)=>{var te;let $=Q(v[L]),D=$.attr("transform"),O=0;if(D){let he=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(D);he&&(O=parseFloat(he[2]))}let W=O+x+n-(g?n:d.members.length===0&&d.methods.length===0?-n/2:0);s||(W-=4);let X=f;($.attr("class").includes("label-group")||$.attr("class").includes("annotation-group"))&&(X=-((te=$.node())==null?void 0:te.getBBox().width)/2||0,t.selectAll("text").each(function(he,le,Pe){window.getComputedStyle(Pe[le]).textAnchor==="middle"&&(X=0)})),$.attr("transform",`translate(${X}, ${W})`)});let M=t.select(".annotation-group").node().getBBox().height-(g?n/2:0)||0,C=t.select(".label-group").node().getBBox().height-(g?n/2:0)||0,P=t.select(".members-group").node().getBBox().height-(g?n/2:0)||0;if(d.members.length>0||d.methods.length>0||g){let I=u.line(S.x,M+C+x+n,S.x+S.width,M+C+x+n,p);t.insert(()=>I).attr("class","divider").attr("style",c)}if(g||d.members.length>0||d.methods.length>0){let I=u.line(S.x,M+C+P+x+a*2+n,S.x+S.width,M+C+P+x+n+a*2,p);t.insert(()=>I).attr("class","divider").attr("style",c)}if(d.look!=="handDrawn"&&t.selectAll("path").attr("style",c),k.select(":nth-child(2)").attr("style",c),t.selectAll(".divider").select("path").attr("style",c),e.labelStyle?t.selectAll("span").attr("style",e.labelStyle):t.selectAll("span").attr("style",c),!s){let I=RegExp(/color\s*:\s*([^;]*)/),L=I.exec(c);if(L){let v=L[0].replace("color","fill");t.selectAll("tspan").attr("style",v)}else if(i){let v=I.exec(i);if(v){let $=v[0].replace("color","fill");t.selectAll("tspan").attr("style",$)}}}return T(e,k),e.intersect=function(I){return B.rect(e,I)},t}w(Va,"classBox");async function Fa(r,e){var k,S;let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let a=e,s=e,d="verifyMethod"in e,t=j(e),o=r.insert("g").attr("class",t).attr("id",e.domId??e.id),i;i=d?await se(o,`<<${a.type}>>`,0,e.labelStyle):await se(o,"<<Element>>",0,e.labelStyle);let h=i,c=await se(o,a.name,h,e.labelStyle+"; font-weight: bold;");if(h+=c+20,d){let M=await se(o,`${a.requirementId?`ID: ${a.requirementId}`:""}`,h,e.labelStyle);h+=M;let C=await se(o,`${a.text?`Text: ${a.text}`:""}`,h,e.labelStyle);h+=C;let P=await se(o,`${a.risk?`Risk: ${a.risk}`:""}`,h,e.labelStyle);h+=P,await se(o,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,h,e.labelStyle)}else{let M=await se(o,`${s.type?`Type: ${s.type}`:""}`,h,e.labelStyle);h+=M,await se(o,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,h,e.labelStyle)}let g=(((k=o.node())==null?void 0:k.getBBox().width)??200)+20,u=(((S=o.node())==null?void 0:S.getBBox().height)??200)+20,p=-g/2,y=-u/2,m=A.svg(o),f=N(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let x=m.rectangle(p,y,g,u,f),b=o.insert(()=>x,":first-child");if(b.attr("class","basic label-container").attr("style",n),o.selectAll(".label").each((M,C,P)=>{let _=Q(P[C]),E=_.attr("transform"),I=0,L=0;if(E){let D=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(E);D&&(I=parseFloat(D[1]),L=parseFloat(D[2]))}let v=L-u/2,$=p+20/2;(C===0||C===1)&&($=I),_.attr("transform",`translate(${$}, ${v+20})`)}),h>i+c+20){let M=m.line(p,y+i+c+20,p+g,y+i+c+20,f);o.insert(()=>M).attr("style",n)}return T(e,b),e.intersect=function(M){return B.rect(e,M)},o}w(Fa,"requirementBox");async function se(r,e,l,n=""){if(e==="")return 0;let a=r.insert("g").attr("class","label").attr("style",n),s=Z(),d=s.htmlLabels??!0,t=await pe(a,pt(we(e)),{width:Be(e,s)+50,classes:"markdown-node-label",useHtmlLabels:d,style:n},s),o;if(d){let i=t.children[0],h=Q(t);o=i.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}else{let i=t.children[0];for(let h of i.children)h.textContent=h.textContent.replaceAll(">",">").replaceAll("<","<"),n&&h.setAttribute("style",n);o=t.getBBox(),o.height+=6}return a.attr("transform",`translate(${-o.width/2},${-o.height/2+l})`),o.height}w(se,"addText");var Il=w(r=>{switch(r){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Ga(r,e,{config:l}){var E,I;let{labelStyles:n,nodeStyles:a}=R(e);e.labelStyle=n||"";let s=e.width;e.width=(e.width??200)-10;let{shapeSvg:d,bbox:t,label:o}=await z(r,e,j(e)),i=e.padding||10,h="",c;"ticket"in e&&e.ticket&&((E=l==null?void 0:l.kanban)!=null&&E.ticketBaseUrl)&&(h=(I=l==null?void 0:l.kanban)==null?void 0:I.ticketBaseUrl.replace("#TICKET#",e.ticket),c=d.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));let g={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1},u,p;c?{label:u,bbox:p}=await lt(c,"ticket"in e&&e.ticket||"",g):{label:u,bbox:p}=await lt(d,"ticket"in e&&e.ticket||"",g);let{label:y,bbox:m}=await lt(d,"assigned"in e&&e.assigned||"",g);e.width=s;let f=(e==null?void 0:e.width)||0,x=Math.max(p.height,m.height)/2,b=Math.max(t.height+20,(e==null?void 0:e.height)||0)+x,k=-f/2,S=-b/2;o.attr("transform","translate("+(i-f/2)+", "+(-x-t.height/2)+")"),u.attr("transform","translate("+(i-f/2)+", "+(-x+t.height/2)+")"),y.attr("transform","translate("+(i+f/2-m.width-20)+", "+(-x+t.height/2)+")");let M,{rx:C,ry:P}=e,{cssStyles:_}=e;if(e.look==="handDrawn"){let L=A.svg(d),v=N(e,{}),$=C||P?L.path(ge(k,S,f,b,C||0),v):L.rectangle(k,S,f,b,v);M=d.insert(()=>$,":first-child"),M.attr("class","basic label-container").attr("style",_||null)}else{M=d.insert("rect",":first-child"),M.attr("class","basic label-container __APA__").attr("style",a).attr("rx",C??5).attr("ry",P??5).attr("x",k).attr("y",S).attr("width",f).attr("height",b);let L="priority"in e&&e.priority;if(L){let v=d.append("line"),$=k+2,D=S+Math.floor((C??0)/2),O=S+b-Math.floor((C??0)/2);v.attr("x1",$).attr("y1",D).attr("x2",$).attr("y2",O).attr("stroke-width","4").attr("stroke",Il(L))}}return T(e,M),e.height=b,e.intersect=function(L){return B.rect(e,L)},d}w(Ga,"kanbanItem");async function Za(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,halfPadding:d,label:t}=await z(r,e,j(e)),o=s.width+10*d,i=s.height+8*d,h=.15*o,{cssStyles:c}=e,g=s.width+20,u=s.height+20,p=Math.max(o,g),y=Math.max(i,u);t.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let m,f=`M0 0 + a${h},${h} 1 0,0 ${p*.25},${-1*y*.1} + a${h},${h} 1 0,0 ${p*.25},0 + a${h},${h} 1 0,0 ${p*.25},0 + a${h},${h} 1 0,0 ${p*.25},${y*.1} + + a${h},${h} 1 0,0 ${p*.15},${y*.33} + a${h*.8},${h*.8} 1 0,0 0,${y*.34} + a${h},${h} 1 0,0 ${-1*p*.15},${y*.33} + + a${h},${h} 1 0,0 ${-1*p*.25},${y*.15} + a${h},${h} 1 0,0 ${-1*p*.25},0 + a${h},${h} 1 0,0 ${-1*p*.25},0 + a${h},${h} 1 0,0 ${-1*p*.25},${-1*y*.15} + + a${h},${h} 1 0,0 ${-1*p*.1},${-1*y*.33} + a${h*.8},${h*.8} 1 0,0 0,${-1*y*.34} + a${h},${h} 1 0,0 ${p*.1},${-1*y*.33} + H0 V0 Z`;if(e.look==="handDrawn"){let x=A.svg(a),b=N(e,{}),k=x.path(f,b);m=a.insert(()=>k,":first-child"),m.attr("class","basic label-container").attr("style",U(c))}else m=a.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",f);return m.attr("transform",`translate(${-p/2}, ${-y/2})`),T(e,m),e.calcIntersect=function(x,b){return B.rect(x,b)},e.intersect=function(x){return V.info("Bang intersect",e,x),B.rect(e,x)},a}w(Za,"bang");async function Xa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,halfPadding:d,label:t}=await z(r,e,j(e)),o=s.width+2*d,i=s.height+2*d,h=.15*o,c=.25*o,g=.35*o,u=.2*o,{cssStyles:p}=e,y,m=`M0 0 + a${h},${h} 0 0,1 ${o*.25},${-1*o*.1} + a${g},${g} 1 0,1 ${o*.4},${-1*o*.1} + a${c},${c} 1 0,1 ${o*.35},${o*.2} + + a${h},${h} 1 0,1 ${o*.15},${i*.35} + a${u},${u} 1 0,1 ${-1*o*.15},${i*.65} + + a${c},${h} 1 0,1 ${-1*o*.25},${o*.15} + a${g},${g} 1 0,1 ${-1*o*.5},0 + a${h},${h} 1 0,1 ${-1*o*.25},${-1*o*.15} + + a${h},${h} 1 0,1 ${-1*o*.1},${-1*i*.35} + a${u},${u} 1 0,1 ${o*.1},${-1*i*.65} + H0 V0 Z`;if(e.look==="handDrawn"){let f=A.svg(a),x=N(e,{}),b=f.path(m,x);y=a.insert(()=>b,":first-child"),y.attr("class","basic label-container").attr("style",U(p))}else y=a.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",m);return t.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),y.attr("transform",`translate(${-o/2}, ${-i/2})`),T(e,y),e.calcIntersect=function(f,x){return B.rect(f,x)},e.intersect=function(f){return V.info("Cloud intersect",e,f),B.rect(e,f)},a}w(Xa,"cloud");async function Qa(r,e){let{labelStyles:l,nodeStyles:n}=R(e);e.labelStyle=l;let{shapeSvg:a,bbox:s,halfPadding:d,label:t}=await z(r,e,j(e)),o=s.width+8*d,i=s.height+2*d,h=` + M${-o/2} ${i/2-5} + v${-i+10} + q0,-5 5,-5 + h${o-10} + q5,0 5,5 + v${i-10} + q0,5 -5,5 + h${-o+10} + q-5,0 -5,-5 + Z + `,c=a.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("style",n).attr("d",h);return a.append("line").attr("class","node-line-").attr("x1",-o/2).attr("y1",i/2).attr("x2",o/2).attr("y2",i/2),t.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),a.append(()=>t.node()),T(e,c),e.calcIntersect=function(g,u){return B.rect(g,u)},e.intersect=function(g){return B.rect(e,g)},a}w(Qa,"defaultMindmapNode");async function Ja(r,e){return it(r,e,{padding:e.padding??0})}w(Ja,"mindmapCircle");var El=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Ca},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Ma},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Pa},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Na},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Yt},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:it},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Za},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Xa},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Sa},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:ra},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:pa},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:ua},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Ia},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:ca},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Kt},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:_a},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:qt},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:va},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:La},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Aa},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:aa},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:sa},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Zt},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Xt},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Qt},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:ya},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ja},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:la},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Oa},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:fa},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Jt},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Ut},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Wa},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:za},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ea},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Ea},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ta},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Da},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:ba},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:xa},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:zt},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Gt},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Ra},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Ta},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Ha},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:ka},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:ma}],Ya=w(()=>{let r={state:Ba,choice:Vt,note:wa,rectWithTitle:$a,labelRect:ga,iconSquare:oa,iconCircle:na,icon:ia,iconRounded:ha,imageSquare:da,anchor:Ht,kanbanItem:Ga,mindmapCircle:Ja,defaultMindmapNode:Qa,classBox:Va,erBox:nt,requirementBox:Fa},e=[...Object.entries(r),...El.flatMap(l=>[l.shortName,..."aliases"in l?l.aliases:[],..."internalAliases"in l?l.internalAliases:[]].map(n=>[n,l.handler]))];return Object.fromEntries(e)},"generateShapeMap")();function Ua(r){return r in Ya}w(Ua,"isValidShape");var Ve=new Map;async function Ka(r,e,l){let n,a;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let s=e.shape?Ya[e.shape]:void 0;if(!s)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let d;l.config.securityLevel==="sandbox"?d="_top":e.linkTarget&&(d=e.linkTarget||"_blank"),n=r.insert("svg:a").attr("xlink:href",e.link).attr("target",d??null),a=await s(n,e,l)}else a=await s(r,e,l),n=a;return e.tooltip&&a.attr("title",e.tooltip),Ve.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}w(Ka,"insertNode");var Wl=w((r,e)=>{Ve.set(e.id,r)},"setNodeElem"),jl=w(()=>{Ve.clear()},"clear"),Hl=w(r=>{let e=Ve.get(r.id);V.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");let l=r.diff||0;return r.clusterNode?e.attr("transform","translate("+(r.x+l-r.width/2)+", "+(r.y-r.height/2-8)+")"):e.attr("transform","translate("+r.x+", "+r.y+")"),l},"positionNode");export{Ka as a,Hl as c,A as d,kl as i,Wl as l,jl as n,Ua as o,ze as r,z as s,$l as t,T as u}; diff --git a/docs/assets/chunk-LBM3YZW2-CQVIMcAR.js b/docs/assets/chunk-LBM3YZW2-CQVIMcAR.js new file mode 100644 index 0000000..44abdb0 --- /dev/null +++ b/docs/assets/chunk-LBM3YZW2-CQVIMcAR.js @@ -0,0 +1 @@ +var e;import{f as r,g as c,h as u,i as f,m as n,o as l,p as d,s as h,t as p}from"./chunk-FPAJGGOC-C0XAW5Os.js";var v=(e=class extends p{constructor(){super(["info","showInfo"])}},r(e,"InfoTokenBuilder"),e),o={parser:{TokenBuilder:r(()=>new v,"TokenBuilder"),ValueConverter:r(()=>new f,"ValueConverter")}};function t(i=d){let s=n(c(i),h),a=n(u({shared:s}),l,o);return s.ServiceRegistry.register(a),{shared:s,Info:a}}r(t,"createInfoServices");export{t as n,o as t}; diff --git a/docs/assets/chunk-LHMN2FUI-DW2iokr2.js b/docs/assets/chunk-LHMN2FUI-DW2iokr2.js new file mode 100644 index 0000000..82b08c8 --- /dev/null +++ b/docs/assets/chunk-LHMN2FUI-DW2iokr2.js @@ -0,0 +1 @@ +var e;import{f as r,g as d,h as u,i as c,m as t,p as l,s as p,t as v,u as h}from"./chunk-FPAJGGOC-C0XAW5Os.js";var R=(e=class extends v{constructor(){super(["radar-beta"])}},r(e,"RadarTokenBuilder"),e),n={parser:{TokenBuilder:r(()=>new R,"TokenBuilder"),ValueConverter:r(()=>new c,"ValueConverter")}};function i(o=l){let a=t(d(o),p),s=t(u({shared:a}),h,n);return a.ServiceRegistry.register(s),{shared:a,Radar:s}}r(i,"createRadarServices");export{i as n,n as t}; diff --git a/docs/assets/chunk-LvLJmgfZ.js b/docs/assets/chunk-LvLJmgfZ.js new file mode 100644 index 0000000..a25c847 --- /dev/null +++ b/docs/assets/chunk-LvLJmgfZ.js @@ -0,0 +1 @@ +var g=Object.create,l=Object.defineProperty,y=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,O=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,d=(e,t)=>()=>(e&&(t=e(e=0)),t),v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),j=(e,t)=>{let o={};for(var r in e)l(o,r,{get:e[r],enumerable:!0});return t&&l(o,Symbol.toStringTag,{value:"Module"}),o},u=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var p=m(t),s=0,f=p.length,a;st[c]).bind(null,a),enumerable:!(r=y(t,a))||r.enumerable});return e},x=(e,t,o,r)=>{r&&(l(e,Symbol.toStringTag,{value:"Module"}),o&&l(o,Symbol.toStringTag,{value:"Module"})),u(e,t,"default"),o&&u(o,t,"default")},b=(e,t,o)=>(o=e==null?{}:g(O(e)),u(t||!e||!e.__esModule?l(o,"default",{value:e,enumerable:!0}):o,e)),S=e=>n.call(e,"module.exports")?e["module.exports"]:u(l({},"__esModule",{value:!0}),e),i=e=>t=>b(t.default,e);export{S as a,x as i,d as n,i as o,j as r,b as s,v as t}; diff --git a/docs/assets/chunk-MI3HLSF2-CXMqGP2w.js b/docs/assets/chunk-MI3HLSF2-CXMqGP2w.js new file mode 100644 index 0000000..a0f86b0 --- /dev/null +++ b/docs/assets/chunk-MI3HLSF2-CXMqGP2w.js @@ -0,0 +1,32 @@ +import{n as c}from"./src-faGJHwXX.js";function nt(t){return t==null}c(nt,"isNothing");function Ct(t){return typeof t=="object"&&!!t}c(Ct,"isObject");function St(t){return Array.isArray(t)?t:nt(t)?[]:[t]}c(St,"toArray");function Ot(t,n){var i,o,r,a;if(n)for(a=Object.keys(n),i=0,o=a.length;il&&(a=" ... ",n=o-l+a.length),i-o>l&&(e=" ...",i=o+l-e.length),{str:a+t.slice(n,i).replace(/\t/g,"\u2192")+e,pos:o-n+a.length}}c(K,"getLine");function H(t,n){return k.repeat(" ",n-t.length)+t}c(H,"padStart");function Tt(t,n){if(n=Object.create(n||null),!t.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,o=[0],r=[],a,e=-1;a=i.exec(t.buffer);)r.push(a.index),o.push(a.index+a[0].length),t.position<=a.index&&e<0&&(e=o.length-2);e<0&&(e=o.length-1);var l="",s,u,d=Math.min(t.line+n.linesAfter,r.length).toString().length,p=n.maxLength-(n.indent+d+3);for(s=1;s<=n.linesBefore&&!(e-s<0);s++)u=K(t.buffer,o[e-s],r[e-s],t.position-(o[e]-o[e-s]),p),l=k.repeat(" ",n.indent)+H((t.line-s+1).toString(),d)+" | "+u.str+` +`+l;for(u=K(t.buffer,o[e],r[e],t.position,p),l+=k.repeat(" ",n.indent)+H((t.line+1).toString(),d)+" | "+u.str+` +`,l+=k.repeat("-",n.indent+d+3+u.pos)+`^ +`,s=1;s<=n.linesAfter&&!(e+s>=r.length);s++)u=K(t.buffer,o[e+s],r[e+s],t.position-(o[e]-o[e+s]),p),l+=k.repeat(" ",n.indent)+H((t.line+s+1).toString(),d)+" | "+u.str+` +`;return l.replace(/\n$/,"")}c(Tt,"makeSnippet");var pi=Tt,fi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],di=["scalar","sequence","mapping"];function Ft(t){var n={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(o){n[String(o)]=i})}),n}c(Ft,"compileStyleAliases");function Mt(t,n){if(n||(n={}),Object.keys(n).forEach(function(i){if(fi.indexOf(i)===-1)throw new S('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=n,this.tag=t,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Ft(n.styleAliases||null),di.indexOf(this.kind)===-1)throw new S('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}c(Mt,"Type$1");var w=Mt;function rt(t,n){var i=[];return t[n].forEach(function(o){var r=i.length;i.forEach(function(a,e){a.tag===o.tag&&a.kind===o.kind&&a.multi===o.multi&&(r=e)}),i[r]=o}),i}c(rt,"compileList");function Lt(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function o(r){r.multi?(t.multi[r.kind].push(r),t.multi.fallback.push(r)):t[r.kind][r.tag]=t.fallback[r.tag]=r}for(c(o,"collectType"),n=0,i=arguments.length;n=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:c(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:c(function(t){return t.toString(10)},"decimal"),hexadecimal:c(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),vi=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Kt(t){return!(t===null||!vi.test(t)||t[t.length-1]==="_")}c(Kt,"resolveYamlFloat");function Ht(t){var n=t.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1;return"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?1/0:-1/0:n===".nan"?NaN:i*parseFloat(n,10)}c(Ht,"constructYamlFloat");var bi=/^[-+]?[0-9]+e/;function Zt(t,n){var i;if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(t===1/0)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(t===-1/0)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(k.isNegativeZero(t))return"-0.0";return i=t.toString(10),bi.test(i)?i.replace("e",".e"):i}c(Zt,"representYamlFloat");function Qt(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!=0||k.isNegativeZero(t))}c(Qt,"isFloat");var Ai=new w("tag:yaml.org,2002:float",{kind:"scalar",resolve:Kt,construct:Ht,predicate:Qt,represent:Zt,defaultStyle:"lowercase"}),Gt=hi.extend({implicit:[mi,gi,yi,Ai]}),ki=Gt,zt=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Jt=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Vt(t){return t===null?!1:zt.exec(t)!==null||Jt.exec(t)!==null}c(Vt,"resolveYamlTimestamp");function Xt(t){var n,i,o,r,a,e,l,s=0,u=null,d,p,m;if(n=zt.exec(t),n===null&&(n=Jt.exec(t)),n===null)throw Error("Date resolve error");if(i=+n[1],o=n[2]-1,r=+n[3],!n[4])return new Date(Date.UTC(i,o,r));if(a=+n[4],e=+n[5],l=+n[6],n[7]){for(s=n[7].slice(0,3);s.length<3;)s+="0";s=+s}return n[9]&&(d=+n[10],p=+(n[11]||0),u=(d*60+p)*6e4,n[9]==="-"&&(u=-u)),m=new Date(Date.UTC(i,o,r,a,e,l,s)),u&&m.setTime(m.getTime()-u),m}c(Xt,"constructYamlTimestamp");function tn(t){return t.toISOString()}c(tn,"representYamlTimestamp");var wi=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Vt,construct:Xt,instanceOf:Date,represent:tn});function nn(t){return t==="<<"||t===null}c(nn,"resolveYamlMerge");var xi=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nn}),ot=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function rn(t){if(t===null)return!1;var n,i,o=0,r=t.length,a=ot;for(i=0;i64)){if(n<0)return!1;o+=6}return o%8==0}c(rn,"resolveYamlBinary");function on(t){var n,i,o=t.replace(/[\r\n=]/g,""),r=o.length,a=ot,e=0,l=[];for(n=0;n>16&255),l.push(e>>8&255),l.push(e&255)),e=e<<6|a.indexOf(o.charAt(n));return i=r%4*6,i===0?(l.push(e>>16&255),l.push(e>>8&255),l.push(e&255)):i===18?(l.push(e>>10&255),l.push(e>>2&255)):i===12&&l.push(e>>4&255),new Uint8Array(l)}c(on,"constructYamlBinary");function en(t){var n="",i=0,o,r,a=t.length,e=ot;for(o=0;o>18&63],n+=e[i>>12&63],n+=e[i>>6&63],n+=e[i&63]),i=(i<<8)+t[o];return r=a%3,r===0?(n+=e[i>>18&63],n+=e[i>>12&63],n+=e[i>>6&63],n+=e[i&63]):r===2?(n+=e[i>>10&63],n+=e[i>>4&63],n+=e[i<<2&63],n+=e[64]):r===1&&(n+=e[i>>2&63],n+=e[i<<4&63],n+=e[64],n+=e[64]),n}c(en,"representYamlBinary");function an(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}c(an,"isBinary");var Ci=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rn,construct:on,predicate:an,represent:en}),Si=Object.prototype.hasOwnProperty,Oi=Object.prototype.toString;function ln(t){if(t===null)return!0;var n=[],i,o,r,a,e,l=t;for(i=0,o=l.length;i>10)+55296,(t-65536&1023)+56320)}c(wn,"charFromCodepoint");var xn=Array(256),Cn=Array(256);for(N=0;N<256;N++)xn[N]=lt(N)?1:0,Cn[N]=lt(N);var N;function Sn(t,n){this.input=t,this.filename=n.filename||null,this.schema=n.schema||dn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}c(Sn,"State$1");function ct(t,n){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=pi(i),new S(n,i)}c(ct,"generateError");function f(t,n){throw ct(t,n)}c(f,"throwError");function U(t,n){t.onWarning&&t.onWarning.call(null,ct(t,n))}c(U,"throwWarning");var On={YAML:c(function(t,n,i){var o,r,a;t.version!==null&&f(t,"duplication of %YAML directive"),i.length!==1&&f(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&f(t,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),a=parseInt(o[2],10),r!==1&&f(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&U(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:c(function(t,n,i){var o,r;i.length!==2&&f(t,"TAG directive accepts exactly two arguments"),o=i[0],r=i[1],yn.test(o)||f(t,"ill-formed tag handle (first argument) of the TAG directive"),F.call(t.tagMap,o)&&f(t,'there is a previously declared suffix for "'+o+'" tag handle'),vn.test(r)||f(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch{f(t,"tag prefix is malformed: "+r)}t.tagMap[o]=r},"handleTagDirective")};function T(t,n,i,o){var r,a,e,l;if(n1&&(t.result+=k.repeat(` +`,n-1))}c(J,"writeFoldedLines");function In(t,n,i){var o,r,a,e,l,s,u,d,p=t.kind,m=t.result,h=t.input.charCodeAt(t.position);if(C(h)||L(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(r=t.input.charCodeAt(t.position+1),C(r)||i&&L(r)))return!1;for(t.kind="scalar",t.result="",a=e=t.position,l=!1;h!==0;){if(h===58){if(r=t.input.charCodeAt(t.position+1),C(r)||i&&L(r))break}else if(h===35){if(o=t.input.charCodeAt(t.position-1),C(o))break}else{if(t.position===t.lineStart&&P(t)||i&&L(h))break;if(I(h))if(s=t.line,u=t.lineStart,d=t.lineIndent,A(t,!1,-1),t.lineIndent>=n){l=!0,h=t.input.charCodeAt(t.position);continue}else{t.position=e,t.line=s,t.lineStart=u,t.lineIndent=d;break}}l&&(l=(T(t,a,e,!1),J(t,t.line-s),a=e=t.position,!1)),M(h)||(e=t.position+1),h=t.input.charCodeAt(++t.position)}return T(t,a,e,!1),t.result?!0:(t.kind=p,t.result=m,!1)}c(In,"readPlainScalar");function jn(t,n){var i=t.input.charCodeAt(t.position),o,r;if(i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,o=r=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(T(t,o,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)o=t.position,t.position++,r=t.position;else return!0;else I(i)?(T(t,o,r,!0),J(t,A(t,!1,n)),o=r=t.position):t.position===t.lineStart&&P(t)?f(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);f(t,"unexpected end of the stream within a single quoted scalar")}c(jn,"readSingleQuotedScalar");function Tn(t,n){var i,o,r,a,e,l=t.input.charCodeAt(t.position);if(l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return T(t,i,t.position,!0),t.position++,!0;if(l===92){if(T(t,i,t.position,!0),l=t.input.charCodeAt(++t.position),I(l))A(t,!1,n);else if(l<256&&xn[l])t.result+=Cn[l],t.position++;else if((e=An(l))>0){for(r=e,a=0;r>0;r--)l=t.input.charCodeAt(++t.position),(e=bn(l))>=0?a=(a<<4)+e:f(t,"expected hexadecimal character");t.result+=wn(a),t.position++}else f(t,"unknown escape sequence");i=o=t.position}else I(l)?(T(t,i,o,!0),J(t,A(t,!1,n)),i=o=t.position):t.position===t.lineStart&&P(t)?f(t,"unexpected end of the document within a double quoted scalar"):(t.position++,o=t.position)}f(t,"unexpected end of the stream within a double quoted scalar")}c(Tn,"readDoubleQuotedScalar");function Fn(t,n){var i=!0,o,r,a,e=t.tag,l,s=t.anchor,u,d,p,m,h,g=Object.create(null),v,b,O,y=t.input.charCodeAt(t.position);if(y===91)d=93,h=!1,l=[];else if(y===123)d=125,h=!0,l={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=l),y=t.input.charCodeAt(++t.position);y!==0;){if(A(t,!0,n),y=t.input.charCodeAt(t.position),y===d)return t.position++,t.tag=e,t.anchor=s,t.kind=h?"mapping":"sequence",t.result=l,!0;i?y===44&&f(t,"expected the node content, but found ','"):f(t,"missed comma between flow collection entries"),b=v=O=null,p=m=!1,y===63&&(u=t.input.charCodeAt(t.position+1),C(u)&&(p=m=!0,t.position++,A(t,!0,n))),o=t.line,r=t.lineStart,a=t.position,_(t,n,Q,!1,!0),b=t.tag,v=t.result,A(t,!0,n),y=t.input.charCodeAt(t.position),(m||t.line===o)&&y===58&&(p=!0,y=t.input.charCodeAt(++t.position),A(t,!0,n),_(t,n,Q,!1,!0),O=t.result),h?E(t,l,g,b,v,O,o,r,a):p?l.push(E(t,null,g,b,v,O,o,r,a)):l.push(v),A(t,!0,n),y=t.input.charCodeAt(t.position),y===44?(i=!0,y=t.input.charCodeAt(++t.position)):i=!1}f(t,"unexpected end of the stream within a flow collection")}c(Fn,"readFlowCollection");function Mn(t,n){var i,o,r=et,a=!1,e=!1,l=n,s=0,u=!1,d,p=t.input.charCodeAt(t.position);if(p===124)o=!1;else if(p===62)o=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)et===r?r=p===43?gn:Li:f(t,"repeat of a chomping mode identifier");else if((d=kn(p))>=0)d===0?f(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):e?f(t,"repeat of an indentation width identifier"):(l=n+d-1,e=!0);else break;if(M(p)){do p=t.input.charCodeAt(++t.position);while(M(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!I(p)&&p!==0)}for(;p!==0;){for(z(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!e||t.lineIndentl&&(l=t.lineIndent),I(p)){s++;continue}if(t.lineIndentn)&&s!==0)f(t,"bad indentation of a sequence entry");else if(t.lineIndentn)&&(b&&(e=t.line,l=t.lineStart,s=t.position),_(t,n,G,!0,r)&&(b?g=t.result:v=t.result),b||(E(t,p,m,h,g,v,e,l,s),h=g=v=null),A(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>n)&&y!==0)f(t,"bad indentation of a mapping entry");else if(t.lineIndentn?s=1:t.lineIndent===n?s=0:t.lineIndentn?s=1:t.lineIndent===n?s=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),p=0,m=t.implicitTypes.length;p"),t.result!==null&&g.kind!==t.kind&&f(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):f(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||d}c(_,"composeNode");function Yn(t){var n=t.position,i,o,r,a=!1,e;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(e=t.input.charCodeAt(t.position))!==0&&(A(t,!0,-1),e=t.input.charCodeAt(t.position),!(t.lineIndent>0||e!==37));){for(a=!0,e=t.input.charCodeAt(++t.position),i=t.position;e!==0&&!C(e);)e=t.input.charCodeAt(++t.position);for(o=t.input.slice(i,t.position),r=[],o.length<1&&f(t,"directive name must not be less than one character in length");e!==0;){for(;M(e);)e=t.input.charCodeAt(++t.position);if(e===35){do e=t.input.charCodeAt(++t.position);while(e!==0&&!I(e));break}if(I(e))break;for(i=t.position;e!==0&&!C(e);)e=t.input.charCodeAt(++t.position);r.push(t.input.slice(i,t.position))}e!==0&&z(t),F.call(On,o)?On[o](t,o,r):U(t,'unknown document directive "'+o+'"')}if(A(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,A(t,!0,-1)):a&&f(t,"directives end mark is expected"),_(t,t.lineIndent-1,G,!1,!0),A(t,!0,-1),t.checkLineBreaks&&Ei.test(t.input.slice(n,t.position))&&U(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&P(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,A(t,!0,-1));return}if(t.position=55296&&i<=56319&&n+1=56320&&o<=57343)?(i-55296)*1024+o-56320+65536:i}c(q,"codePointAt");function yt(t){return/^\n* /.test(t)}c(yt,"needIndentIndicator");var Xn=1,vt=2,ti=3,ni=4,B=5;function ii(t,n,i,o,r,a,e,l){var s,u=0,d=null,p=!1,m=!1,h=o!==-1,g=-1,v=Jn(q(t,0))&&Vn(q(t,t.length-1));if(n||e)for(s=0;s=65536?s+=2:s++){if(u=q(t,s),!D(u))return B;v&&(v=gt(u,d,l)),d=u}else{for(s=0;s=65536?s+=2:s++){if(u=q(t,s),u===R)p=!0,h&&(m||(m=s-g-1>o&&t[g+1]!==" "),g=s);else if(!D(u))return B;v&&(v=gt(u,d,l)),d=u}m||(m=h&&s-g-1>o&&t[g+1]!==" ")}return!p&&!m?v&&!e&&!r(t)?Xn:a===W?B:vt:i>9&&yt(t)?B:e?a===W?B:vt:m?ni:ti}c(ii,"chooseScalarStyle");function ri(t,n,i,o,r){t.dump=(function(){if(n.length===0)return t.quotingType===W?'""':"''";if(!t.noCompatMode&&(Vi.indexOf(n)!==-1||Xi.test(n)))return t.quotingType===W?'"'+n+'"':"'"+n+"'";var a=t.indent*Math.max(1,i),e=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),l=o||t.flowLevel>-1&&i>=t.flowLevel;function s(u){return zn(t,u)}switch(c(s,"testAmbiguity"),ii(n,l,t.indent,e,s,t.quotingType,t.forceQuotes&&!o,r)){case Xn:return n;case vt:return"'"+n.replace(/'/g,"''")+"'";case ti:return"|"+bt(n,t.indent)+At(ht(n,a));case ni:return">"+bt(n,t.indent)+At(ht(oi(n,e),a));case B:return'"'+ei(n)+'"';default:throw new S("impossible error: invalid scalar style")}})()}c(ri,"writeScalar");function bt(t,n){var i=yt(t)?String(n):"",o=t[t.length-1]===` +`;return i+(o&&(t[t.length-2]===` +`||t===` +`)?"+":o?"":"-")+` +`}c(bt,"blockHeader");function At(t){return t[t.length-1]===` +`?t.slice(0,-1):t}c(At,"dropEndingNewline");function oi(t,n){for(var i=/(\n+)([^\n]*)/g,o=(function(){var u=t.indexOf(` +`);return u=u===-1?t.length:u,i.lastIndex=u,kt(t.slice(0,u),n)})(),r=t[0]===` +`||t[0]===" ",a,e;e=i.exec(t);){var l=e[1],s=e[2];a=s[0]===" ",o+=l+(!r&&!a&&s!==""?` +`:"")+kt(s,n),r=a}return o}c(oi,"foldString");function kt(t,n){if(t===""||t[0]===" ")return t;for(var i=/ [^ ]/g,o,r=0,a,e=0,l=0,s="";o=i.exec(t);)l=o.index,l-r>n&&(a=e>r?e:l,s+=` +`+t.slice(r,a),r=a+1),e=l;return s+=` +`,t.length-r>n&&e>r?s+=t.slice(r,e)+` +`+t.slice(e+1):s+=t.slice(r),s.slice(1)}c(kt,"foldLine");function ei(t){for(var n="",i=0,o,r=0;r=65536?r+=2:r++)i=q(t,r),o=x[i],!o&&D(i)?(n+=t[r],i>=65536&&(n+=t[r+1])):n+=o||Qn(i);return n}c(ei,"escapeString");function ai(t,n,i){var o="",r=t.tag,a,e,l;for(a=0,e=i.length;a1024&&(d+="? "),d+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),j(t,n,u,!1,!1)&&(d+=t.dump,o+=d));t.tag=r,t.dump="{"+o+"}"}c(li,"writeFlowMapping");function ci(t,n,i,o){var r="",a=t.tag,e=Object.keys(i),l,s,u,d,p,m;if(t.sortKeys===!0)e.sort();else if(typeof t.sortKeys=="function")e.sort(t.sortKeys);else if(t.sortKeys)throw new S("sortKeys must be a boolean or a function");for(l=0,s=e.length;l1024,p&&(t.dump&&R===t.dump.charCodeAt(0)?m+="?":m+="? "),m+=t.dump,p&&(m+=X(t,n)),j(t,n+1,d,!0,p)&&(t.dump&&R===t.dump.charCodeAt(0)?m+=":":m+=": ",m+=t.dump,r+=m));t.tag=a,t.dump=r||"{}"}c(ci,"writeBlockMapping");function xt(t,n,i){var o,r=i?t.explicitTypes:t.implicitTypes,a,e,l,s;for(a=0,e=r.length;a tag resolver accepts not "'+s+'" style');t.dump=o}return!0}return!1}c(xt,"detectType");function j(t,n,i,o,r,a,e){t.tag=null,t.dump=i,xt(t,i,!1)||xt(t,i,!0);var l=Un.call(t.dump),s=o,u;o&&(o=t.flowLevel<0||t.flowLevel>n);var d=l==="[object Object]"||l==="[object Array]",p,m;if(d&&(p=t.duplicates.indexOf(i),m=p!==-1),(t.tag!==null&&t.tag!=="?"||m||t.indent!==2&&n>0)&&(r=!1),m&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(d&&m&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),l==="[object Object]")o&&Object.keys(t.dump).length!==0?(ci(t,n,t.dump,r),m&&(t.dump="&ref_"+p+t.dump)):(li(t,n,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(l==="[object Array]")o&&t.dump.length!==0?(t.noArrayIndent&&!e&&n>0?wt(t,n-1,t.dump,r):wt(t,n,t.dump,r),m&&(t.dump="&ref_"+p+t.dump)):(ai(t,n,t.dump),m&&(t.dump="&ref_"+p+" "+t.dump));else if(l==="[object String]")t.tag!=="?"&&ri(t,t.dump,n,a,s);else{if(l==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new S("unacceptable kind of an object to dump "+l)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),u=t.tag[0]==="!"?"!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?"!!"+u.slice(18):"!<"+u+">",t.dump=u+" "+t.dump)}return!0}c(j,"writeNode");function si(t,n){var i=[],o=[],r,a;for(tt(t,i,o),r=0,a=o.length;ri.map(i=>d[i]); +import{t as n}from"./preload-helper-BW0IMuFq.js";import{d as _}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as e,r as s}from"./src-faGJHwXX.js";import{s as d,y as u,__tla as h}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{a as y,i as f,s as p}from"./chunk-JZLCHNYA-DBaJpCky.js";import{a as c,i as L,n as w,r as E}from"./chunk-QXUST7PY-CIxWhn5L.js";let o,m,g,b=Promise.all([(()=>{try{return h}catch{}})()]).then(async()=>{let i,t;i={common:d,getConfig:u,insertCluster:f,insertEdge:w,insertEdgeLabel:E,insertMarkers:L,insertNode:y,interpolateToCurve:_,labelHelper:p,log:s,positionEdgeLabel:c},t={},o=e(r=>{for(let a of r)t[a.name]=a},"registerLayoutLoaders"),e(()=>{o([{name:"dagre",loader:e(async()=>await n(()=>import("./dagre-6UL2VRFP-Bnzt4A4J.js").then(async r=>(await r.__tla,r)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]),import.meta.url),"loader")},{name:"cose-bilkent",loader:e(async()=>await n(()=>import("./cose-bilkent-S5V4N54A-B-gjerAi.js").then(async r=>(await r.__tla,r)),__vite__mapDeps([53,54,4,2,5,6]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders")(),m=e(async(r,a)=>{if(!(r.layoutAlgorithm in t))throw Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let l=t[r.layoutAlgorithm];return(await l.loader()).render(r,a,i,{algorithm:l.algorithm})},"render"),g=e((r="",{fallback:a="dagre"}={})=>{if(r in t)return r;if(a in t)return s.warn(`Layout algorithm ${r} is not registered. Using ${a} as fallback.`),a;throw Error(`Both layout algorithms ${r} and ${a} are not registered.`)},"getRegisteredLayoutAlgorithm")});export{b as __tla,o as n,m as r,g as t}; diff --git a/docs/assets/chunk-O7ZBX7Z2-CYcfcXcp.js b/docs/assets/chunk-O7ZBX7Z2-CYcfcXcp.js new file mode 100644 index 0000000..d6bbacf --- /dev/null +++ b/docs/assets/chunk-O7ZBX7Z2-CYcfcXcp.js @@ -0,0 +1 @@ +var t,a;import{f as s,g as o,h as l,m as n,n as h,p as C,r as m,s as d,t as p}from"./chunk-FPAJGGOC-C0XAW5Os.js";var f=(t=class extends p{constructor(){super(["architecture"])}},s(t,"ArchitectureTokenBuilder"),t),v=(a=class extends h{runCustomConverter(e,r,A){if(e.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(e.name==="ARCH_TITLE")return r.replace(/[[\]]/g,"").trim()}},s(a,"ArchitectureValueConverter"),a),c={parser:{TokenBuilder:s(()=>new f,"TokenBuilder"),ValueConverter:s(()=>new v,"ValueConverter")}};function i(u=C){let e=n(o(u),d),r=n(l({shared:e}),m,c);return e.ServiceRegistry.register(r),{shared:e,Architecture:r}}s(i,"createArchitectureServices");export{i as n,c as t}; diff --git a/docs/assets/chunk-OGVTOU66-DQphfHw1.js b/docs/assets/chunk-OGVTOU66-DQphfHw1.js new file mode 100644 index 0000000..50a1061 --- /dev/null +++ b/docs/assets/chunk-OGVTOU66-DQphfHw1.js @@ -0,0 +1,56 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mermaid.core-XIi8b-BS.js","./dist-BA8xhrl2.js","./chunk-LvLJmgfZ.js","./chunk-JA3XYJ7Z-BlmyoDCa.js","./src-faGJHwXX.js","./src-Bp_72rVO.js","./timer-CPT_vXom.js","./chunk-S3R3BYOJ-By1A-M0T.js","./step-D7xg1Moj.js","./math-B-ZqhQTL.js","./chunk-ABZYJK2D-DAD3GlgM.js","./preload-helper-BW0IMuFq.js","./purify.es-N-2faAGj.js","./merge-BBX6ug-N.js","./_Uint8Array-BGESiCQL.js","./_baseFor-Duhs3RiJ.js","./memoize-DN0TMY36.js","./marked.esm-BZNXs5FA.js","./chunk-ATLVNIR6-DsKp3Ify.js","./chunk-CVBHYZKI-B6tT645I.js","./chunk-EXTU4WIE-GbJyzeBy.js","./chunk-HN2XXSSU-xW6J7MXn.js","./chunk-JZLCHNYA-DBaJpCky.js","./chunk-MI3HLSF2-CXMqGP2w.js","./chunk-N4CR4FBY-DtYoI569.js","./chunk-QXUST7PY-CIxWhn5L.js","./line-x4bpd_8D.js","./path-DvTahePH.js","./array-CC7vZNGO.js","./mermaid.core-iFdtpd1M.js","./isEmpty-DIxUV1UR.js","./_getTag-BWqNuuwU.js","./chunk-XAJISQIX-DnhQWiv2.js","./code-block-QI2IAROF-Ckkxnyg4.js","./cjs-Bj40p_Np.js","./katex-dFZM4X_7.js","./jsx-runtime-DN_bIXfG.js","./react-BGmjiNul.js","./mermaid-NA5CF7SZ-Rdx8a8Uo.js","./katex-BE1_QWuC.css"])))=>i.map(i=>d[i]); +import{r as Pi,s as ar,t as Jb}from"./chunk-LvLJmgfZ.js";import{t as ek}from"./react-BGmjiNul.js";import{t as tk}from"./jsx-runtime-DN_bIXfG.js";import{t as nk}from"./clsx-D0MtrJOx.js";import{t as rk}from"./cjs-Bj40p_Np.js";import{t as or}from"./preload-helper-BW0IMuFq.js";import{c as Mc}from"./katex-dFZM4X_7.js";import{t as ik}from"./marked.esm-BZNXs5FA.js";let $,Fi,sr,Zt,Bi,lr,In,Hi,Ui,ft,Gi,cr,Pe,ur,ak=(async()=>{const Jt=(function(e){if(e==null)return Uc;if(typeof e=="function")return Dn(e);if(typeof e=="object")return Array.isArray(e)?Fc(e):Bc(e);if(typeof e=="string")return Hc(e);throw Error("Expected function, string, or object as test")});function Fc(e){let t=[],n=-1;for(;++n":""))+")"})}return f;function f(){let p=zi,E,C,I;if((!t||a(c,u,h[h.length-1]||void 0))&&(p=zc(n(c,h)),p[0]===!1))return p;if("children"in c&&c.children){let b=c;if(b.children&&p[0]!=="skip")for(C=(r?b.children.length:-1)+o,I=h.concat(b);C>-1&&Cu==="*"),c=n.length&&!n.every(u=>u==="*");if(!e&&(l||c))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return u=>{St(u,Wc(e,t,n,r,i,a,o))}}function ji(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}return null}}function Yc(e){return typeof e=="string"?e.startsWith("/"):!1}var qc=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Vc=new Set(["javascript:","data:","file:","vbscript:"]);function Yi(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){let c=e.substring(5);if(c&&c.length>0&&c!=="invalid")return e}}catch{return null}return null}let o=ji(e,n);if(!o||Vc.has(o.protocol)||!(qc.has(o.protocol)||a.includes(o.protocol)||a.includes("*")))return null;if(o.protocol==="mailto:"||!o.protocol.match(/^https?:$/))return o.href;let l=Yc(e);return o&&t.some(c=>{let u=ji(c,n);return!u||u.origin!==o.origin?!1:o.href.startsWith(u.href)})?l?o.pathname+o.search+o.hash:o.href:t.includes("*")?o.protocol!=="https:"&&o.protocol!=="http:"?null:l?o.pathname+o.search+o.hash:o.href:null}var pr=Symbol("node-seen"),Wc=(e,t,n,r,i,a,o)=>{let l=(c,u,h)=>{if(c.type!=="element"||c[pr])return!0;if(c.tagName==="a"){let d=Yi(c.properties.href,t,e,!1,!1,i);return d===null?(c[pr]=!0,St(c,l),h&&typeof u=="number"&&(h.children[u]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(c.properties.href),class:o},children:[...c.children,{type:"text",value:" [blocked]"}]}),dr):(c.properties.href=d,c.properties.target="_blank",c.properties.rel="noopener noreferrer",!0)}if(c.tagName==="img"){let d=Yi(c.properties.src,n,e,r,!0,i);return d===null?(c[pr]=!0,St(c,l),h&&typeof u=="number"&&(h.children[u]={type:"element",tagName:"span",properties:{class:a},children:[{type:"text",value:"[Image blocked: "+String(c.properties.alt||"No description")+"]"}]}),dr):(c.properties.src=d,!0)}return!0};return l},en=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};en.prototype.normal={},en.prototype.property={},en.prototype.space=void 0;function qi(e,t){let n={},r={};for(let i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new en(n,r,t)}function tn(e){return e.toLowerCase()}var De=class{constructor(e,t){this.attribute=t,this.property=e}};De.prototype.attribute="",De.prototype.booleanish=!1,De.prototype.boolean=!1,De.prototype.commaOrSpaceSeparated=!1,De.prototype.commaSeparated=!1,De.prototype.defined=!1,De.prototype.mustUseProperty=!1,De.prototype.number=!1,De.prototype.overloadedBoolean=!1,De.prototype.property="",De.prototype.spaceSeparated=!1,De.prototype.space=void 0;var fr=Pi({boolean:()=>J,booleanish:()=>Ee,commaOrSpaceSeparated:()=>Le,commaSeparated:()=>Ct,number:()=>P,overloadedBoolean:()=>mr,spaceSeparated:()=>se},1),Qc=0;const J=mt(),Ee=mt(),mr=mt(),P=mt(),se=mt(),Ct=mt(),Le=mt();function mt(){return 2**++Qc}var gr=Object.keys(fr),Er=class extends De{constructor(e,t,n,r){let i=-1;if(super(e,t),Vi(this,"space",r),typeof n=="number")for(;++i4&&n.slice(0,4)==="data"&&Jc.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(Ji,tu);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=t.slice(4);if(!Ji.test(a)){let o=a.replace(Zc,eu);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Er}return new i(r,t)};function eu(e){return"-"+e.toLowerCase()}function tu(e){return e.charAt(1).toUpperCase()}Zt=qi([Wi,Kc,Xi,$i,Zi],"html"),ft=qi([Wi,Xc,Xi,$i,Zi],"svg");function ea(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}sr=function(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()};var ta=/[#.]/g;function nu(e,t){let n=e||"",r={},i=0,a,o;for(;iu&&(u=h):h&&(u!==void 0&&u>-1&&c.push(` +`.repeat(u)||" "),u=-1,c.push(h))}return c.join("")}function ga(e,t,n){return e.type==="element"?xu(e,t,n):e.type==="text"?n.whitespace==="normal"?Ea(e,n):Su(e):[]}function xu(e,t,n){let r=Ta(e,n),i=e.children||[],a=-1,o=[];if(ku(e))return o;let l,c;for(_r(e)||fa(e)&&ua(t,e,fa)?c=` +`:bu(e)?(l=2,c=2):ma(e)&&(l=1,c=1);++a{let n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let l=n([],i);for(let c of o)l.push(r(c));return l}case 2:{let l=n({},i);for(let[c,u]of o)l[r(c)]=r(u);return l}case 3:return n(new Date(o),i);case 4:{let{source:l,flags:c}=o;return n(new RegExp(l,c),i)}case 5:{let l=n(new Map,i);for(let[c,u]of o)l.set(r(c),r(u));return l}case 6:{let l=n(new Set,i);for(let c of o)l.add(r(c));return l}case 7:{let{name:l,message:c}=o;return n(new Aa[l](c),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(new Aa[a](o),i)};return r};const _a=e=>Lu(new Map,e)(0);var It="",{toString:Ru}={},{keys:wu}=Object,nn=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let n=Ru.call(e).slice(8,-1);switch(n){case"Array":return[1,It];case"Object":return[2,It];case"Date":return[3,It];case"RegExp":return[4,It];case"Map":return[5,It];case"Set":return[6,It];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},On=([e,t])=>e===0&&(t==="function"||t==="symbol"),Mu=(e,t,n,r)=>{let i=(o,l)=>{let c=r.push(o)-1;return n.set(l,c),c},a=o=>{if(n.has(o))return n.get(o);let[l,c]=nn(o);switch(l){case 0:{let h=o;switch(c){case"bigint":l=8,h=o.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+c);h=null;break;case"undefined":return i([-1],o)}return i([l,h],o)}case 1:{if(c){let f=o;return c==="DataView"?f=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(o)),i([c,[...f]],o)}let h=[],d=i([l,h],o);for(let f of o)h.push(a(f));return d}case 2:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());let h=[],d=i([l,h],o);for(let f of wu(o))(e||!On(nn(o[f])))&&h.push([a(f),a(o[f])]);return d}case 3:return i([l,o.toISOString()],o);case 4:{let{source:h,flags:d}=o;return i([l,{source:h,flags:d}],o)}case 5:{let h=[],d=i([l,h],o);for(let[f,p]of o)(e||!(On(nn(f))||On(nn(p))))&&h.push([a(f),a(p)]);return d}case 6:{let h=[],d=i([l,h],o);for(let f of o)(e||!On(nn(f)))&&h.push(a(f));return d}}let{message:u}=o;return i([l,{name:c,message:u}],o)};return a};const ba=(e,{json:t,lossy:n}={})=>{let r=[];return Mu(!(t||n),!!t,new Map,r)(e),r};var Dt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_a(ba(e,t)):structuredClone(e):(e,t)=>_a(ba(e,t));function Pu(e){let t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let o=0;for(;;){let l=n[o];if(l===void 0){let c=ka(t,n[o-1]);l=c===-1?t.length+1:c+1,n[o]=l}if(l>a)return{line:o+1,column:a-(o>0?n[o-1]:0)+1,offset:a};o++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(oZ,booleanish:()=>Te,commaOrSpaceSeparated:()=>Re,commaSeparated:()=>vt,number:()=>F,overloadedBoolean:()=>Na,spaceSeparated:()=>le},1),Gu=0;const Z=Et(),Te=Et(),Na=Et(),F=Et(),le=Et(),vt=Et(),Re=Et();function Et(){return 2**++Gu}var Sr=Object.keys(xr),Cr=class extends Fe{constructor(e,t,n,r){let i=-1;if(super(e,t),Ia(this,"space",r),typeof n=="number")for(;++i4&&n.slice(0,4)==="data"&&qu.test(t)){if(t.charAt(4)==="-"){let a=t.slice(5).replace(Ma,Ku);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=t.slice(4);if(!Ma.test(a)){let o=a.replace(Vu,Qu);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Cr}return new i(r,t)}function Qu(e){return"-"+e.toLowerCase()}function Ku(e){return e.charAt(1).toUpperCase()}const Xu=Ca([Oa,Da,Ra,wa,ju],"html"),Pa=Ca([Oa,Da,Ra,wa,Yu],"svg");var Fa={}.hasOwnProperty;lr=function(e,t){let n=t||{};function r(i,...a){let o=r.invalid,l=r.handlers;if(i&&Fa.call(i,e)){let c=String(i[e]);o=Fa.call(l,c)?l[c]:r.unknown}if(o)return o.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r};var $u={},Zu={}.hasOwnProperty,Ba=lr("type",{handlers:{root:ed,element:ad,text:rd,comment:id,doctype:nd}});function Ju(e,t){let n=(t||$u).space;return Ba(e,n==="svg"?Pa:Xu)}function ed(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Nr(e.children,n,t),Rt(e,n),n}function td(e,t){let n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Nr(e.children,n,t),Rt(e,n),n}function nd(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Rt(e,t),t}function rd(e){let t={nodeName:"#text",value:e.value,parentNode:null};return Rt(e,t),t}function id(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return Rt(e,t),t}function ad(e,t){let n=t,r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Pa);let i=[],a;if(e.properties){for(a in e.properties)if(a!=="children"&&Zu.call(e.properties,a)){let c=od(r,a,e.properties[a]);c&&i.push(c)}}let o=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Ke[o],childNodes:[],parentNode:null};return l.childNodes=Nr(e.children,l,r),Rt(e,l),e.tagName==="template"&&e.content&&(l.content=td(e.content,r)),l}function od(e,t,n){let r=Wu(e,t);if(n===!1||n==null||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?sr(n):ur(n));let i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){let a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Ke[r.space]}return i}function Nr(e,t,n){let r=-1,i=[];if(e)for(;++r=55296&&e<=57343}function ld(e){return e>=56320&&e<=57343}function cd(e,t){return(e-55296)*1024+9216+t}function Ua(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ga(e){return e>=64976&&e<=65007||sd.has(e)}var S;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(S||(S={}));var ud=65536,dd=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=ud,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(ld(t))return this.pos++,this._addGap(),cd(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(S.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let n=this.html.charCodeAt(t);return n===m.CARRIAGE_RETURN?m.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let e=this.html.charCodeAt(this.pos);return e===m.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED):e===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ha(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===m.LINE_FEED||e===m.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Ua(e)?this._err(S.controlCharacterInInputStream):Ga(e)&&this._err(S.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const hd=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var pd=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);String.fromCodePoint;function fd(e){return e>=55296&&e<=57343||e>1114111?65533:pd.get(e)??e}var be;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(be||(be={}));var md=32,Tt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Tt||(Tt={}));function Ir(e){return e>=be.ZERO&&e<=be.NINE}function gd(e){return e>=be.UPPER_A&&e<=be.UPPER_F||e>=be.LOWER_A&&e<=be.LOWER_F}function Ed(e){return e>=be.UPPER_A&&e<=be.UPPER_Z||e>=be.LOWER_A&&e<=be.LOWER_Z||Ir(e)}function Td(e){return e===be.EQUALS||Ed(e)}var ke;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ke||(ke={}));var ot;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ot||(ot={}));var Ad=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ke.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ot.Strict}startEntity(e){this.decodeMode=e,this.state=ke.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ke.EntityStart:return e.charCodeAt(t)===be.NUM?(this.state=ke.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ke.NamedEntity,this.stateNamedEntity(e,t));case ke.NumericStart:return this.stateNumericStart(e,t);case ke.NumericDecimal:return this.stateNumericDecimal(e,t);case ke.NumericHex:return this.stateNumericHex(e,t);case ke.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|md)===be.LOWER_X?(this.state=ke.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ke.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t>14;for(;t>14,i!==0){if(a===be.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ot.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Tt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~Tt.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ke.NamedEntity:return this.result!==0&&(this.decodeMode!==ot.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ke.NumericDecimal:return this.emitNumericEntity(0,2);case ke.NumericHex:return this.emitNumericEntity(0,3);case ke.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ke.EntityStart:return 0}}};function _d(e,t,n,r){let i=(t&Tt.BRANCH_LENGTH)>>7,a=t&Tt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let c=r-a;return c<0||c>=i?-1:e[n+c]-1}let o=n,l=o+i-1;for(;o<=l;){let c=o+l>>>1,u=e[c];if(ur)l=c-1;else return e[c+i]}return-1}var w;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(w||(w={}));var wt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(wt||(wt={}));var je;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(je||(je={}));var k;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(k||(k={}));var s;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(s||(s={}));var bd=new Map([[k.A,s.A],[k.ADDRESS,s.ADDRESS],[k.ANNOTATION_XML,s.ANNOTATION_XML],[k.APPLET,s.APPLET],[k.AREA,s.AREA],[k.ARTICLE,s.ARTICLE],[k.ASIDE,s.ASIDE],[k.B,s.B],[k.BASE,s.BASE],[k.BASEFONT,s.BASEFONT],[k.BGSOUND,s.BGSOUND],[k.BIG,s.BIG],[k.BLOCKQUOTE,s.BLOCKQUOTE],[k.BODY,s.BODY],[k.BR,s.BR],[k.BUTTON,s.BUTTON],[k.CAPTION,s.CAPTION],[k.CENTER,s.CENTER],[k.CODE,s.CODE],[k.COL,s.COL],[k.COLGROUP,s.COLGROUP],[k.DD,s.DD],[k.DESC,s.DESC],[k.DETAILS,s.DETAILS],[k.DIALOG,s.DIALOG],[k.DIR,s.DIR],[k.DIV,s.DIV],[k.DL,s.DL],[k.DT,s.DT],[k.EM,s.EM],[k.EMBED,s.EMBED],[k.FIELDSET,s.FIELDSET],[k.FIGCAPTION,s.FIGCAPTION],[k.FIGURE,s.FIGURE],[k.FONT,s.FONT],[k.FOOTER,s.FOOTER],[k.FOREIGN_OBJECT,s.FOREIGN_OBJECT],[k.FORM,s.FORM],[k.FRAME,s.FRAME],[k.FRAMESET,s.FRAMESET],[k.H1,s.H1],[k.H2,s.H2],[k.H3,s.H3],[k.H4,s.H4],[k.H5,s.H5],[k.H6,s.H6],[k.HEAD,s.HEAD],[k.HEADER,s.HEADER],[k.HGROUP,s.HGROUP],[k.HR,s.HR],[k.HTML,s.HTML],[k.I,s.I],[k.IMG,s.IMG],[k.IMAGE,s.IMAGE],[k.INPUT,s.INPUT],[k.IFRAME,s.IFRAME],[k.KEYGEN,s.KEYGEN],[k.LABEL,s.LABEL],[k.LI,s.LI],[k.LINK,s.LINK],[k.LISTING,s.LISTING],[k.MAIN,s.MAIN],[k.MALIGNMARK,s.MALIGNMARK],[k.MARQUEE,s.MARQUEE],[k.MATH,s.MATH],[k.MENU,s.MENU],[k.META,s.META],[k.MGLYPH,s.MGLYPH],[k.MI,s.MI],[k.MO,s.MO],[k.MN,s.MN],[k.MS,s.MS],[k.MTEXT,s.MTEXT],[k.NAV,s.NAV],[k.NOBR,s.NOBR],[k.NOFRAMES,s.NOFRAMES],[k.NOEMBED,s.NOEMBED],[k.NOSCRIPT,s.NOSCRIPT],[k.OBJECT,s.OBJECT],[k.OL,s.OL],[k.OPTGROUP,s.OPTGROUP],[k.OPTION,s.OPTION],[k.P,s.P],[k.PARAM,s.PARAM],[k.PLAINTEXT,s.PLAINTEXT],[k.PRE,s.PRE],[k.RB,s.RB],[k.RP,s.RP],[k.RT,s.RT],[k.RTC,s.RTC],[k.RUBY,s.RUBY],[k.S,s.S],[k.SCRIPT,s.SCRIPT],[k.SEARCH,s.SEARCH],[k.SECTION,s.SECTION],[k.SELECT,s.SELECT],[k.SOURCE,s.SOURCE],[k.SMALL,s.SMALL],[k.SPAN,s.SPAN],[k.STRIKE,s.STRIKE],[k.STRONG,s.STRONG],[k.STYLE,s.STYLE],[k.SUB,s.SUB],[k.SUMMARY,s.SUMMARY],[k.SUP,s.SUP],[k.TABLE,s.TABLE],[k.TBODY,s.TBODY],[k.TEMPLATE,s.TEMPLATE],[k.TEXTAREA,s.TEXTAREA],[k.TFOOT,s.TFOOT],[k.TD,s.TD],[k.TH,s.TH],[k.THEAD,s.THEAD],[k.TITLE,s.TITLE],[k.TR,s.TR],[k.TRACK,s.TRACK],[k.TT,s.TT],[k.U,s.U],[k.UL,s.UL],[k.SVG,s.SVG],[k.VAR,s.VAR],[k.WBR,s.WBR],[k.XMP,s.XMP]]);function Mt(e){return bd.get(e)??s.UNKNOWN}var M=s;const kd={[w.HTML]:new Set([M.ADDRESS,M.APPLET,M.AREA,M.ARTICLE,M.ASIDE,M.BASE,M.BASEFONT,M.BGSOUND,M.BLOCKQUOTE,M.BODY,M.BR,M.BUTTON,M.CAPTION,M.CENTER,M.COL,M.COLGROUP,M.DD,M.DETAILS,M.DIR,M.DIV,M.DL,M.DT,M.EMBED,M.FIELDSET,M.FIGCAPTION,M.FIGURE,M.FOOTER,M.FORM,M.FRAME,M.FRAMESET,M.H1,M.H2,M.H3,M.H4,M.H5,M.H6,M.HEAD,M.HEADER,M.HGROUP,M.HR,M.HTML,M.IFRAME,M.IMG,M.INPUT,M.LI,M.LINK,M.LISTING,M.MAIN,M.MARQUEE,M.MENU,M.META,M.NAV,M.NOEMBED,M.NOFRAMES,M.NOSCRIPT,M.OBJECT,M.OL,M.P,M.PARAM,M.PLAINTEXT,M.PRE,M.SCRIPT,M.SECTION,M.SELECT,M.SOURCE,M.STYLE,M.SUMMARY,M.TABLE,M.TBODY,M.TD,M.TEMPLATE,M.TEXTAREA,M.TFOOT,M.TH,M.THEAD,M.TITLE,M.TR,M.TRACK,M.UL,M.WBR,M.XMP]),[w.MATHML]:new Set([M.MI,M.MO,M.MN,M.MS,M.MTEXT,M.ANNOTATION_XML]),[w.SVG]:new Set([M.TITLE,M.FOREIGN_OBJECT,M.DESC]),[w.XLINK]:new Set,[w.XML]:new Set,[w.XMLNS]:new Set},Dr=new Set([M.H1,M.H2,M.H3,M.H4,M.H5,M.H6]);k.STYLE,k.SCRIPT,k.XMP,k.IFRAME,k.NOEMBED,k.NOFRAMES,k.PLAINTEXT;var g;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(g||(g={}));const ge={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function yd(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function an(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function xd(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z}function st(e){return xd(e)||an(e)}function ja(e){return st(e)||yd(e)}function Ln(e){return e+32}function Ya(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function qa(e){return Ya(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}function Sd(e){return e===m.NULL?S.nullCharacterReference:e>1114111?S.characterReferenceOutsideUnicodeRange:Ha(e)?S.surrogateCharacterReference:Ga(e)?S.noncharacterCharacterReference:Ua(e)||e===m.CARRIAGE_RETURN?S.controlCharacterReference:null}var Cd=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=g.DATA,this.returnState=g.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new dd(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ad(hd,(n,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(n)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(S.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(S.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{let r=Sd(n);r&&this._err(r,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)==null||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||(e==null||e()))}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||(n==null||n())}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(S.endTagWithAttributes),e.selfClosing&&this._err(S.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case re.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case re.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case re.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:re.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ya(e)?re.WHITESPACE_CHARACTER:e===m.NULL?re.NULL_CHARACTER:re.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(re.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=g.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ot.Attribute:ot.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===g.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case g.DATA:this._stateData(e);break;case g.RCDATA:this._stateRcdata(e);break;case g.RAWTEXT:this._stateRawtext(e);break;case g.SCRIPT_DATA:this._stateScriptData(e);break;case g.PLAINTEXT:this._statePlaintext(e);break;case g.TAG_OPEN:this._stateTagOpen(e);break;case g.END_TAG_OPEN:this._stateEndTagOpen(e);break;case g.TAG_NAME:this._stateTagName(e);break;case g.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case g.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case g.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case g.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case g.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case g.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case g.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case g.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case g.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case g.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case g.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case g.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case g.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case g.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case g.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case g.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case g.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case g.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case g.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case g.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case g.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case g.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case g.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case g.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case g.BOGUS_COMMENT:this._stateBogusComment(e);break;case g.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case g.COMMENT_START:this._stateCommentStart(e);break;case g.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case g.COMMENT:this._stateComment(e);break;case g.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case g.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case g.COMMENT_END:this._stateCommentEnd(e);break;case g.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case g.DOCTYPE:this._stateDoctype(e);break;case g.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case g.DOCTYPE_NAME:this._stateDoctypeName(e);break;case g.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case g.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case g.CDATA_SECTION:this._stateCdataSection(e);break;case g.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case g.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case g.CHARACTER_REFERENCE:this._stateCharacterReference();break;case g.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.TAG_OPEN;break;case m.AMPERSAND:this._startCharacterReference();break;case m.NULL:this._err(S.unexpectedNullCharacter),this._emitCodePoint(e);break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case m.AMPERSAND:this._startCharacterReference();break;case m.LESS_THAN_SIGN:this.state=g.RCDATA_LESS_THAN_SIGN;break;case m.NULL:this._err(S.unexpectedNullCharacter),this._emitChars("\uFFFD");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.RAWTEXT_LESS_THAN_SIGN;break;case m.NULL:this._err(S.unexpectedNullCharacter),this._emitChars("\uFFFD");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break;case m.NULL:this._err(S.unexpectedNullCharacter),this._emitChars("\uFFFD");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case m.NULL:this._err(S.unexpectedNullCharacter),this._emitChars("\uFFFD");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(st(e))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case m.EXCLAMATION_MARK:this.state=g.MARKUP_DECLARATION_OPEN;break;case m.SOLIDUS:this.state=g.END_TAG_OPEN;break;case m.QUESTION_MARK:this._err(S.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e);break;case m.EOF:this._err(S.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(S.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(st(e))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case m.GREATER_THAN_SIGN:this._err(S.missingEndTagName),this.state=g.DATA;break;case m.EOF:this._err(S.eofBeforeTagName),this._emitChars("");break;case m.NULL:this._err(S.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars("\uFFFD");break;case m.EOF:this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===m.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:st(e)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){st(e)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case m.NULL:this._err(S.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("\uFFFD");break;case m.EOF:this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===m.SOLIDUS?(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Oe.SCRIPT,!1)&&qa(this.preprocessor.peek(Oe.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==w.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(vd,w.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Od,w.HTML)}clearBackToTableRowContext(){this.clearBackTo(Dd,w.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===s.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===s.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case w.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case w.SVG:if(Ka.has(r))return!1;break;case w.MATHML:if(Qa.has(r))return!1;break}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Rn)}hasInListItemScope(e){return this.hasInDynamicScope(e,Nd)}hasInButtonScope(e){return this.hasInDynamicScope(e,Id)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case w.HTML:if(Dr.has(t))return!0;if(Rn.has(t))return!1;break;case w.SVG:if(Ka.has(t))return!1;break;case w.MATHML:if(Qa.has(t))return!1;break}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===w.HTML)switch(this.tagIDs[t]){case e:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===w.HTML)switch(this.tagIDs[e]){case s.TBODY:case s.THEAD:case s.TFOOT:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===w.HTML)switch(this.tagIDs[t]){case e:return!0;case s.OPTION:case s.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Va.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Wa.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&Wa.has(this.currentTagId);)this.pop()}},Or=3,et;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(et||(et={}));var Xa={type:et.Marker},wd=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o[a.name,a.value])),i=0;for(let a=0;ar.get(l.name)===l.value)&&(i+=1,i>=Or&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Xa)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:et.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:et.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(Xa);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(n=>n.type===et.Marker||this.treeAdapter.getTagName(n.element)===e);return t&&t.type===et.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===et.Element&&t.element===e)}};const lt={createDocument(){return{nodeName:"#document",mode:je.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{let a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};lt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(lt.isTextNode(n)){n.value+=t;return}}lt.appendChild(e,lt.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&<.isTextNode(r)?r.value+=t:lt.insertBefore(e,lt.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function Ud(e){return e.name===$a&&e.publicId===null&&(e.systemId===null||e.systemId===Md)}function Gd(e){if(e.name!==$a)return je.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===Pd)return je.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Bd.has(n))return je.QUIRKS;let r=t===null?Fd:Za;if(eo(n,r))return je.QUIRKS;if(r=t===null?Ja:Hd,eo(n,r))return je.LIMITED_QUIRKS}return je.NO_QUIRKS}var to={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},zd="definitionurl",jd="definitionURL",Yd=new Map("attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan".split(".").map(e=>[e.toLowerCase(),e])),qd=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:w.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:w.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:w.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:w.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:w.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:w.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:w.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:w.XML}],["xml:space",{prefix:"xml",name:"space",namespace:w.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:w.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:w.XMLNS}]]);const Vd=new Map("altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath".split(".").map(e=>[e.toLowerCase(),e]));var Wd=new Set([s.B,s.BIG,s.BLOCKQUOTE,s.BODY,s.BR,s.CENTER,s.CODE,s.DD,s.DIV,s.DL,s.DT,s.EM,s.EMBED,s.H1,s.H2,s.H3,s.H4,s.H5,s.H6,s.HEAD,s.HR,s.I,s.IMG,s.LI,s.LISTING,s.MENU,s.META,s.NOBR,s.OL,s.P,s.PRE,s.RUBY,s.S,s.SMALL,s.SPAN,s.STRONG,s.STRIKE,s.SUB,s.SUP,s.TABLE,s.TT,s.U,s.UL,s.VAR]);function Qd(e){let t=e.tagID;return t===s.FONT&&e.attrs.some(({name:n})=>n===wt.COLOR||n===wt.SIZE||n===wt.FACE)||Wd.has(t)}function no(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let i,a;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,a=this.fragmentContextID):{current:i,currentTagId:a}=this.openElements,this._setContextModes(i,a)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===w.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,w.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=T.TEXT}switchToPlaintextParsing(){this.insertionMode=T.TEXT,this.originalInsertionMode=T.IN_BODY,this.tokenizer.state=ge.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===k.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==w.HTML))switch(this.fragmentContextID){case s.TITLE:case s.TEXTAREA:this.tokenizer.state=ge.RCDATA;break;case s.STYLE:case s.XMP:case s.IFRAME:case s.NOEMBED:case s.NOFRAMES:case s.NOSCRIPT:this.tokenizer.state=ge.RAWTEXT;break;case s.SCRIPT:this.tokenizer.state=ge.SCRIPT_DATA;break;case s.PLAINTEXT:this.tokenizer.state=ge.PLAINTEXT;break;default:}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let i=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));i&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,w.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,w.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(k.HTML,w.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,s.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:a,endCol:o,endOffset:l}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:a,endCol:o,endOffset:l})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===re.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===s.SVG&&this.treeAdapter.getTagName(t)===k.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===w.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===s.MGLYPH||e.tagID===s.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,w.HTML)}_processToken(e){switch(e.type){case re.CHARACTER:this.onCharacter(e);break;case re.NULL_CHARACTER:this.onNullCharacter(e);break;case re.COMMENT:this.onComment(e);break;case re.DOCTYPE:this.onDoctype(e);break;case re.START_TAG:this._processStartTag(e);break;case re.END_TAG:this.onEndTag(e);break;case re.EOF:this.onEof(e);break;case re.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e);break}}_isIntegrationPoint(e,t,n){return Zd(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(r=>r.type===et.Marker||this.openElements.contains(r.element)),n=t===-1?e-1:t-1;for(let r=n;r>=0;r--){let i=this.activeFormattingElements.entries[r];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=T.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(s.P),this.openElements.popUntilTagNamePopped(s.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case s.TR:this.insertionMode=T.IN_ROW;return;case s.TBODY:case s.THEAD:case s.TFOOT:this.insertionMode=T.IN_TABLE_BODY;return;case s.CAPTION:this.insertionMode=T.IN_CAPTION;return;case s.COLGROUP:this.insertionMode=T.IN_COLUMN_GROUP;return;case s.TABLE:this.insertionMode=T.IN_TABLE;return;case s.BODY:this.insertionMode=T.IN_BODY;return;case s.FRAMESET:this.insertionMode=T.IN_FRAMESET;return;case s.SELECT:this._resetInsertionModeForSelect(e);return;case s.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case s.HTML:this.insertionMode=this.headElement?T.AFTER_HEAD:T.BEFORE_HEAD;return;case s.TD:case s.TH:if(e>0){this.insertionMode=T.IN_CELL;return}break;case s.HEAD:if(e>0){this.insertionMode=T.IN_HEAD;return}break}this.insertionMode=T.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let n=this.openElements.tagIDs[t];if(n===s.TEMPLATE)break;if(n===s.TABLE){this.insertionMode=T.IN_SELECT_IN_TABLE;return}}this.insertionMode=T.IN_SELECT}_isElementCausesFosterParenting(e){return io.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case s.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===w.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case s.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return kd[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Lp(this,e);return}switch(this.insertionMode){case T.INITIAL:on(this,e);break;case T.BEFORE_HTML:sn(this,e);break;case T.BEFORE_HEAD:ln(this,e);break;case T.IN_HEAD:cn(this,e);break;case T.IN_HEAD_NO_SCRIPT:un(this,e);break;case T.AFTER_HEAD:dn(this,e);break;case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:lo(this,e);break;case T.TEXT:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:Mr(this,e);break;case T.IN_TABLE_TEXT:Eo(this,e);break;case T.IN_COLUMN_GROUP:Pn(this,e);break;case T.AFTER_BODY:Hn(this,e);break;case T.AFTER_AFTER_BODY:Un(this,e);break;default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){vp(this,e);return}switch(this.insertionMode){case T.INITIAL:on(this,e);break;case T.BEFORE_HTML:sn(this,e);break;case T.BEFORE_HEAD:ln(this,e);break;case T.IN_HEAD:cn(this,e);break;case T.IN_HEAD_NO_SCRIPT:un(this,e);break;case T.AFTER_HEAD:dn(this,e);break;case T.TEXT:this._insertCharacters(e);break;case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:Mr(this,e);break;case T.IN_COLUMN_GROUP:Pn(this,e);break;case T.AFTER_BODY:Hn(this,e);break;case T.AFTER_AFTER_BODY:Un(this,e);break;default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Rr(this,e);return}switch(this.insertionMode){case T.INITIAL:case T.BEFORE_HTML:case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_TEMPLATE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:Rr(this,e);break;case T.IN_TABLE_TEXT:fn(this,e);break;case T.AFTER_BODY:ch(this,e);break;case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:uh(this,e);break;default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case T.INITIAL:dh(this,e);break;case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:this._err(e,S.misplacedDoctype);break;case T.IN_TABLE_TEXT:fn(this,e);break;default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,S.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?Rp(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case T.INITIAL:on(this,e);break;case T.BEFORE_HTML:hh(this,e);break;case T.BEFORE_HEAD:fh(this,e);break;case T.IN_HEAD:Ye(this,e);break;case T.IN_HEAD_NO_SCRIPT:Eh(this,e);break;case T.AFTER_HEAD:Ah(this,e);break;case T.IN_BODY:Se(this,e);break;case T.IN_TABLE:Pt(this,e);break;case T.IN_TABLE_TEXT:fn(this,e);break;case T.IN_CAPTION:mp(this,e);break;case T.IN_COLUMN_GROUP:Pr(this,e);break;case T.IN_TABLE_BODY:Fn(this,e);break;case T.IN_ROW:Bn(this,e);break;case T.IN_CELL:Tp(this,e);break;case T.IN_SELECT:_o(this,e);break;case T.IN_SELECT_IN_TABLE:_p(this,e);break;case T.IN_TEMPLATE:kp(this,e);break;case T.AFTER_BODY:xp(this,e);break;case T.IN_FRAMESET:Sp(this,e);break;case T.AFTER_FRAMESET:Np(this,e);break;case T.AFTER_AFTER_BODY:Dp(this,e);break;case T.AFTER_AFTER_FRAMESET:Op(this,e);break;default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?wp(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case T.INITIAL:on(this,e);break;case T.BEFORE_HTML:ph(this,e);break;case T.BEFORE_HEAD:mh(this,e);break;case T.IN_HEAD:gh(this,e);break;case T.IN_HEAD_NO_SCRIPT:Th(this,e);break;case T.AFTER_HEAD:_h(this,e);break;case T.IN_BODY:Mn(this,e);break;case T.TEXT:ap(this,e);break;case T.IN_TABLE:hn(this,e);break;case T.IN_TABLE_TEXT:fn(this,e);break;case T.IN_CAPTION:gp(this,e);break;case T.IN_COLUMN_GROUP:Ep(this,e);break;case T.IN_TABLE_BODY:Fr(this,e);break;case T.IN_ROW:Ao(this,e);break;case T.IN_CELL:Ap(this,e);break;case T.IN_SELECT:bo(this,e);break;case T.IN_SELECT_IN_TABLE:bp(this,e);break;case T.IN_TEMPLATE:yp(this,e);break;case T.AFTER_BODY:yo(this,e);break;case T.IN_FRAMESET:Cp(this,e);break;case T.AFTER_FRAMESET:Ip(this,e);break;case T.AFTER_AFTER_BODY:Un(this,e);break;default:}}onEof(e){switch(this.insertionMode){case T.INITIAL:on(this,e);break;case T.BEFORE_HTML:sn(this,e);break;case T.BEFORE_HEAD:ln(this,e);break;case T.IN_HEAD:cn(this,e);break;case T.IN_HEAD_NO_SCRIPT:un(this,e);break;case T.AFTER_HEAD:dn(this,e);break;case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:mo(this,e);break;case T.TEXT:op(this,e);break;case T.IN_TABLE_TEXT:fn(this,e);break;case T.IN_TEMPLATE:ko(this,e);break;case T.AFTER_BODY:case T.IN_FRAMESET:case T.AFTER_FRAMESET:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:wr(this,e);break;default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===m.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.TEXT:case T.IN_COLUMN_GROUP:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:this._insertCharacters(e);break;case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:case T.AFTER_BODY:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:so(this,e);break;case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:Mr(this,e);break;case T.IN_TABLE_TEXT:go(this,e);break;default:}}};function rh(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):fo(e,t),n}function ih(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function ah(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let l=e.activeFormattingElements.getElementEntry(o),c=l&&a>=th;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(o)):(o=oh(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function oh(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function sh(e,t,n){let r=Mt(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===s.TEMPLATE&&i===w.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function lh(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Lr(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let a=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(a);o&&!o.endTag&&e._setEndLocation(a,t)}}}}function dh(e,t){e._setDocumentType(t);let n=t.forceQuirks?je.QUIRKS:Gd(t);Ud(t)||e._err(t,S.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T.BEFORE_HTML}function on(e,t){e._err(t,S.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,je.QUIRKS),e.insertionMode=T.BEFORE_HTML,e._processToken(t)}function hh(e,t){t.tagID===s.HTML?(e._insertElement(t,w.HTML),e.insertionMode=T.BEFORE_HEAD):sn(e,t)}function ph(e,t){let n=t.tagID;(n===s.HTML||n===s.HEAD||n===s.BODY||n===s.BR)&&sn(e,t)}function sn(e,t){e._insertFakeRootElement(),e.insertionMode=T.BEFORE_HEAD,e._processToken(t)}function fh(e,t){switch(t.tagID){case s.HTML:Se(e,t);break;case s.HEAD:e._insertElement(t,w.HTML),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD;break;default:ln(e,t)}}function mh(e,t){let n=t.tagID;n===s.HEAD||n===s.BODY||n===s.HTML||n===s.BR?ln(e,t):e._err(t,S.endTagWithoutMatchingOpenElement)}function ln(e,t){e._insertFakeElement(k.HEAD,s.HEAD),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD,e._processToken(t)}function Ye(e,t){switch(t.tagID){case s.HTML:Se(e,t);break;case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:e._appendElement(t,w.HTML),t.ackSelfClosing=!0;break;case s.TITLE:e._switchToTextParsing(t,ge.RCDATA);break;case s.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,ge.RAWTEXT):(e._insertElement(t,w.HTML),e.insertionMode=T.IN_HEAD_NO_SCRIPT);break;case s.NOFRAMES:case s.STYLE:e._switchToTextParsing(t,ge.RAWTEXT);break;case s.SCRIPT:e._switchToTextParsing(t,ge.SCRIPT_DATA);break;case s.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=T.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(T.IN_TEMPLATE);break;case s.HEAD:e._err(t,S.misplacedStartTagForHeadElement);break;default:cn(e,t)}}function gh(e,t){switch(t.tagID){case s.HEAD:e.openElements.pop(),e.insertionMode=T.AFTER_HEAD;break;case s.BODY:case s.BR:case s.HTML:cn(e,t);break;case s.TEMPLATE:At(e,t);break;default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function At(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==s.TEMPLATE&&e._err(t,S.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,S.endTagWithoutMatchingOpenElement)}function cn(e,t){e.openElements.pop(),e.insertionMode=T.AFTER_HEAD,e._processToken(t)}function Eh(e,t){switch(t.tagID){case s.HTML:Se(e,t);break;case s.BASEFONT:case s.BGSOUND:case s.HEAD:case s.LINK:case s.META:case s.NOFRAMES:case s.STYLE:Ye(e,t);break;case s.NOSCRIPT:e._err(t,S.nestedNoscriptInHead);break;default:un(e,t)}}function Th(e,t){switch(t.tagID){case s.NOSCRIPT:e.openElements.pop(),e.insertionMode=T.IN_HEAD;break;case s.BR:un(e,t);break;default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function un(e,t){let n=t.type===re.EOF?S.openElementsLeftAfterEof:S.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=T.IN_HEAD,e._processToken(t)}function Ah(e,t){switch(t.tagID){case s.HTML:Se(e,t);break;case s.BODY:e._insertElement(t,w.HTML),e.framesetOk=!1,e.insertionMode=T.IN_BODY;break;case s.FRAMESET:e._insertElement(t,w.HTML),e.insertionMode=T.IN_FRAMESET;break;case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:e._err(t,S.abandonedHeadElementChild),e.openElements.push(e.headElement,s.HEAD),Ye(e,t),e.openElements.remove(e.headElement);break;case s.HEAD:e._err(t,S.misplacedStartTagForHeadElement);break;default:dn(e,t)}}function _h(e,t){switch(t.tagID){case s.BODY:case s.HTML:case s.BR:dn(e,t);break;case s.TEMPLATE:At(e,t);break;default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function dn(e,t){e._insertFakeElement(k.BODY,s.BODY),e.insertionMode=T.IN_BODY,wn(e,t)}function wn(e,t){switch(t.type){case re.CHARACTER:lo(e,t);break;case re.WHITESPACE_CHARACTER:so(e,t);break;case re.COMMENT:Rr(e,t);break;case re.START_TAG:Se(e,t);break;case re.END_TAG:Mn(e,t);break;case re.EOF:mo(e,t);break;default:}}function so(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function lo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function bh(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function kh(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function yh(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,w.HTML),e.insertionMode=T.IN_FRAMESET)}function xh(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,w.HTML)}function Sh(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Dr.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,w.HTML)}function Ch(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,w.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Nh(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,w.HTML),n||(e.formElement=e.openElements.current))}function Ih(e,t){e.framesetOk=!1;let n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let i=e.openElements.tagIDs[r];if(n===s.LI&&i===s.LI||(n===s.DD||n===s.DT)&&(i===s.DD||i===s.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==s.ADDRESS&&i!==s.DIV&&i!==s.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,w.HTML)}function Dh(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,w.HTML),e.tokenizer.state=ge.PLAINTEXT}function Oh(e,t){e.openElements.hasInScope(s.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.framesetOk=!1}function vh(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(k.A);n&&(Lr(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Lh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rh(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(s.NOBR)&&(Lr(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,w.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Mh(e,t){e.treeAdapter.getDocumentMode(e.document)!==je.QUIRKS&&e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,w.HTML),e.framesetOk=!1,e.insertionMode=T.IN_TABLE}function co(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,w.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uo(e){let t=za(e,wt.TYPE);return t!=null&&t.toLowerCase()===Jd}function Ph(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,w.HTML),uo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Fh(e,t){e._appendElement(t,w.HTML),t.ackSelfClosing=!0}function Bh(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._appendElement(t,w.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Hh(e,t){t.tagName=k.IMG,t.tagID=s.IMG,co(e,t)}function Uh(e,t){e._insertElement(t,w.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ge.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T.TEXT}function Gh(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ge.RAWTEXT)}function zh(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ge.RAWTEXT)}function ho(e,t){e._switchToTextParsing(t,ge.RAWTEXT)}function jh(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===T.IN_TABLE||e.insertionMode===T.IN_CAPTION||e.insertionMode===T.IN_TABLE_BODY||e.insertionMode===T.IN_ROW||e.insertionMode===T.IN_CELL?T.IN_SELECT_IN_TABLE:T.IN_SELECT}function Yh(e,t){e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML)}function qh(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,w.HTML)}function Vh(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(s.RTC),e._insertElement(t,w.HTML)}function Wh(e,t){e._reconstructActiveFormattingElements(),no(t),vr(t),t.selfClosing?e._appendElement(t,w.MATHML):e._insertElement(t,w.MATHML),t.ackSelfClosing=!0}function Qh(e,t){e._reconstructActiveFormattingElements(),ro(t),vr(t),t.selfClosing?e._appendElement(t,w.SVG):e._insertElement(t,w.SVG),t.ackSelfClosing=!0}function po(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML)}function Se(e,t){switch(t.tagID){case s.I:case s.S:case s.B:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.SMALL:case s.STRIKE:case s.STRONG:Lh(e,t);break;case s.A:vh(e,t);break;case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:Sh(e,t);break;case s.P:case s.DL:case s.OL:case s.UL:case s.DIV:case s.DIR:case s.NAV:case s.MAIN:case s.MENU:case s.ASIDE:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.DETAILS:case s.ADDRESS:case s.ARTICLE:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:xh(e,t);break;case s.LI:case s.DD:case s.DT:Ih(e,t);break;case s.BR:case s.IMG:case s.WBR:case s.AREA:case s.EMBED:case s.KEYGEN:co(e,t);break;case s.HR:Bh(e,t);break;case s.RB:case s.RTC:qh(e,t);break;case s.RT:case s.RP:Vh(e,t);break;case s.PRE:case s.LISTING:Ch(e,t);break;case s.XMP:Gh(e,t);break;case s.SVG:Qh(e,t);break;case s.HTML:bh(e,t);break;case s.BASE:case s.LINK:case s.META:case s.STYLE:case s.TITLE:case s.SCRIPT:case s.BGSOUND:case s.BASEFONT:case s.TEMPLATE:Ye(e,t);break;case s.BODY:kh(e,t);break;case s.FORM:Nh(e,t);break;case s.NOBR:Rh(e,t);break;case s.MATH:Wh(e,t);break;case s.TABLE:Mh(e,t);break;case s.INPUT:Ph(e,t);break;case s.PARAM:case s.TRACK:case s.SOURCE:Fh(e,t);break;case s.IMAGE:Hh(e,t);break;case s.BUTTON:Oh(e,t);break;case s.APPLET:case s.OBJECT:case s.MARQUEE:wh(e,t);break;case s.IFRAME:zh(e,t);break;case s.SELECT:jh(e,t);break;case s.OPTION:case s.OPTGROUP:Yh(e,t);break;case s.NOEMBED:case s.NOFRAMES:ho(e,t);break;case s.FRAMESET:yh(e,t);break;case s.TEXTAREA:Uh(e,t);break;case s.NOSCRIPT:e.options.scriptingEnabled?ho(e,t):po(e,t);break;case s.PLAINTEXT:Dh(e,t);break;case s.COL:case s.TH:case s.TD:case s.TR:case s.HEAD:case s.FRAME:case s.TBODY:case s.TFOOT:case s.THEAD:case s.CAPTION:case s.COLGROUP:break;default:po(e,t)}}function Kh(e,t){if(e.openElements.hasInScope(s.BODY)&&(e.insertionMode=T.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Xh(e,t){e.openElements.hasInScope(s.BODY)&&(e.insertionMode=T.AFTER_BODY,yo(e,t))}function $h(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Zh(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(s.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(s.FORM):n&&e.openElements.remove(n))}function Jh(e){e.openElements.hasInButtonScope(s.P)||e._insertFakeElement(k.P,s.P),e._closePElement()}function ep(e){e.openElements.hasInListItemScope(s.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(s.LI),e.openElements.popUntilTagNamePopped(s.LI))}function tp(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function np(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function rp(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ip(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(k.BR,s.BR),e.openElements.pop(),e.framesetOk=!1}function fo(e,t){let n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let a=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==s.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,o))break}}function Mn(e,t){switch(t.tagID){case s.A:case s.B:case s.I:case s.S:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.NOBR:case s.SMALL:case s.STRIKE:case s.STRONG:Lr(e,t);break;case s.P:Jh(e);break;case s.DL:case s.UL:case s.OL:case s.DIR:case s.DIV:case s.NAV:case s.PRE:case s.MAIN:case s.MENU:case s.ASIDE:case s.BUTTON:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.ADDRESS:case s.ARTICLE:case s.DETAILS:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.LISTING:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:$h(e,t);break;case s.LI:ep(e);break;case s.DD:case s.DT:tp(e,t);break;case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:np(e);break;case s.BR:ip(e);break;case s.BODY:Kh(e,t);break;case s.HTML:Xh(e,t);break;case s.FORM:Zh(e);break;case s.APPLET:case s.OBJECT:case s.MARQUEE:rp(e,t);break;case s.TEMPLATE:At(e,t);break;default:fo(e,t)}}function mo(e,t){e.tmplInsertionModeStack.length>0?ko(e,t):wr(e,t)}function ap(e,t){var n;t.tagID===s.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function op(e,t){e._err(t,S.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Mr(e,t){if(e.openElements.currentTagId!==void 0&&io.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T.IN_TABLE_TEXT,t.type){case re.CHARACTER:Eo(e,t);break;case re.WHITESPACE_CHARACTER:go(e,t);break}else pn(e,t)}function sp(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,w.HTML),e.insertionMode=T.IN_CAPTION}function lp(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,w.HTML),e.insertionMode=T.IN_COLUMN_GROUP}function cp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(k.COLGROUP,s.COLGROUP),e.insertionMode=T.IN_COLUMN_GROUP,Pr(e,t)}function up(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,w.HTML),e.insertionMode=T.IN_TABLE_BODY}function dp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(k.TBODY,s.TBODY),e.insertionMode=T.IN_TABLE_BODY,Fn(e,t)}function hp(e,t){e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function pp(e,t){uo(t)?e._appendElement(t,w.HTML):pn(e,t),t.ackSelfClosing=!0}function fp(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,w.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Pt(e,t){switch(t.tagID){case s.TD:case s.TH:case s.TR:dp(e,t);break;case s.STYLE:case s.SCRIPT:case s.TEMPLATE:Ye(e,t);break;case s.COL:cp(e,t);break;case s.FORM:fp(e,t);break;case s.TABLE:hp(e,t);break;case s.TBODY:case s.TFOOT:case s.THEAD:up(e,t);break;case s.INPUT:pp(e,t);break;case s.CAPTION:sp(e,t);break;case s.COLGROUP:lp(e,t);break;default:pn(e,t)}}function hn(e,t){switch(t.tagID){case s.TABLE:e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode());break;case s.TEMPLATE:At(e,t);break;case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:pn(e,t)}}function pn(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,wn(e,t),e.fosterParentingEnabled=n}function go(e,t){e.pendingCharacterTokens.push(t)}function Eo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function fn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===s.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===s.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop();break;case s.OPTION:e.openElements.currentTagId===s.OPTION&&e.openElements.pop();break;case s.SELECT:e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode());break;case s.TEMPLATE:At(e,t);break;default:}}function _p(e,t){let n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_o(e,t)}function bp(e,t){let n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e.onEndTag(t)):bo(e,t)}function kp(e,t){switch(t.tagID){case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:Ye(e,t);break;case s.CAPTION:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:e.tmplInsertionModeStack[0]=T.IN_TABLE,e.insertionMode=T.IN_TABLE,Pt(e,t);break;case s.COL:e.tmplInsertionModeStack[0]=T.IN_COLUMN_GROUP,e.insertionMode=T.IN_COLUMN_GROUP,Pr(e,t);break;case s.TR:e.tmplInsertionModeStack[0]=T.IN_TABLE_BODY,e.insertionMode=T.IN_TABLE_BODY,Fn(e,t);break;case s.TD:case s.TH:e.tmplInsertionModeStack[0]=T.IN_ROW,e.insertionMode=T.IN_ROW,Bn(e,t);break;default:e.tmplInsertionModeStack[0]=T.IN_BODY,e.insertionMode=T.IN_BODY,Se(e,t)}}function yp(e,t){t.tagID===s.TEMPLATE&&At(e,t)}function ko(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):wr(e,t)}function xp(e,t){t.tagID===s.HTML?Se(e,t):Hn(e,t)}function yo(e,t){var n;if(t.tagID===s.HTML){if(e.fragmentContext||(e.insertionMode=T.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===s.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];r&&!((n=e.treeAdapter.getNodeSourceCodeLocation(r))!=null&&n.endTag)&&e._setEndLocation(r,t)}}else Hn(e,t)}function Hn(e,t){e.insertionMode=T.IN_BODY,wn(e,t)}function Sp(e,t){switch(t.tagID){case s.HTML:Se(e,t);break;case s.FRAMESET:e._insertElement(t,w.HTML);break;case s.FRAME:e._appendElement(t,w.HTML),t.ackSelfClosing=!0;break;case s.NOFRAMES:Ye(e,t);break;default:}}function Cp(e,t){t.tagID===s.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==s.FRAMESET&&(e.insertionMode=T.AFTER_FRAMESET))}function Np(e,t){switch(t.tagID){case s.HTML:Se(e,t);break;case s.NOFRAMES:Ye(e,t);break;default:}}function Ip(e,t){t.tagID===s.HTML&&(e.insertionMode=T.AFTER_AFTER_FRAMESET)}function Dp(e,t){t.tagID===s.HTML?Se(e,t):Un(e,t)}function Un(e,t){e.insertionMode=T.IN_BODY,wn(e,t)}function Op(e,t){switch(t.tagID){case s.HTML:Se(e,t);break;case s.NOFRAMES:Ye(e,t);break;default:}}function vp(e,t){t.chars="\uFFFD",e._insertCharacters(t)}function Lp(e,t){e._insertCharacters(t),e.framesetOk=!1}function xo(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==w.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Rp(e,t){if(Qd(t))xo(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===w.MATHML?no(t):r===w.SVG&&(Kd(t),ro(t)),vr(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function wp(e,t){if(t.tagID===s.P||t.tagID===s.BR){xo(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===w.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}k.AREA,k.BASE,k.BASEFONT,k.BGSOUND,k.BR,k.COL,k.EMBED,k.FRAME,k.HR,k.IMG,k.INPUT,k.KEYGEN,k.LINK,k.META,k.PARAM,k.SOURCE,k.TRACK,k.WBR;const Gn=So("end"),Xe=So("start");function So(e){return t;function t(n){let r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Mp(e){let t=Xe(e),n=Gn(e);if(t&&n)return{start:t,end:n}}var Pp=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Fp=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Co={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function No(e,t){let n=Wp(e),r=lr("type",{handlers:{root:Bp,element:Hp,text:Up,comment:Do,doctype:Gp,raw:jp},unknown:Yp}),i={parser:n?new oo(Co):oo.getFragmentParser(void 0,Co),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),Ft(i,Xe());let a=Bu(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&St(a,"comment",function(o,l,c){let u=o;if(u.value.stitch&&c&&l!==void 0){let h=c.children;return h[l]=u.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function Io(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:re.CHARACTER,chars:e.value,location:mn(e)};Ft(t,Xe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Gp(e,t){let n={type:re.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:mn(e)};Ft(t,Xe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function zp(e,t){t.stitches=!0;let n=Qp(e);"children"in e&&"children"in n&&(n.children=No({type:"root",children:e.children},t.options).children),Do({type:"comment",value:{stitch:n}},t)}function Do(e,t){let n=e.value,r={type:re.COMMENT,data:n,location:mn(e)};Ft(t,Xe(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function jp(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Oo(t,Xe(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Pp,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Yp(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))zp(n,t);else{let r="";throw Fp.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+n.type+"` node"+r)}}function Ft(e,t){Oo(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ge.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Oo(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function qp(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ge.PLAINTEXT)return;Ft(t,Xe(e));let r=t.parser.openElements.current,i="namespaceURI"in r?r.namespaceURI:Ke.html;i===Ke.html&&n==="svg"&&(i=Ke.svg);let a=Ju({...e,children:[]},{space:i===Ke.svg?"svg":"html"}),o={type:re.START_TAG,tagName:n,tagID:Mt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:mn(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Vp(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Fi.includes(n)||t.parser.tokenizer.state===ge.PLAINTEXT)return;Ft(t,Gn(e));let r={type:re.END_TAG,tagName:n,tagID:Mt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:mn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ge.RCDATA||t.parser.tokenizer.state===ge.RAWTEXT||t.parser.tokenizer.state===ge.SCRIPT_DATA)&&(t.parser.tokenizer.state=ge.DATA)}function Wp(e){let t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function mn(e){let t=Xe(e)||{line:void 0,column:void 0,offset:void 0},n=Gn(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Qp(e){return"children"in e?Dt({...e,children:[]}):Dt(e)}function Kp(e){return function(t,n){return No(t,{...e,file:n})}}const Be={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},Bt={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},$e={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},Ie=ct(/[A-Za-z]/),Ce=ct(/[\dA-Za-z]/),Xp=ct(/[#-'*+\--9=?A-Z^-~]/);function zn(e){return e!==null&&(e<32||e===127)}const Br=ct(/\d/),$p=ct(/[\dA-Fa-f]/),Zp=ct(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function oe(e){return e!==null&&(e<0||e===32)}function ie(e){return e===-2||e===-1||e===32}const jn=ct(new RegExp("\\p{P}|\\p{S}","u")),_t=ct(/\s/);function ct(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Jp(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function ef(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function tf(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function nf(e){return Jp(e)?"ambiguous":ef(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":tf(e)?"wide":"neutral"}function rf(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function af(e){return rf(e),nf(e)}var of=Object.defineProperty,sf=(e,t,n)=>t in e?of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lf=(e,t,n)=>sf(e,typeof t=="symbol"?t:t+"",n);function cf(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function uf(e){if(!e||e<4352)return!1;switch(af(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!cf(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return new RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}function df(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function hf(e){return e!==null&&e>=65024&&e<=65038}var pf=vo(new RegExp("\\p{P}|\\p{S}","u")),ff=vo(/\s/);function vo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCodePoint(n))}}var He;(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(He||(He={}));function Ht(e){if(e===Be.eof||oe(e)||ff(e))return Bt.characterGroupWhitespace;let t=0;if(e>=4352){if(hf(e))return He.nonEmojiGeneralUseVS;switch(uf(e)){case null:return He.ivs;case!0:t|=He.cjk;break}}return pf(e)&&(t|=Bt.characterGroupPunctuation),t}function Lo(e,t,n){if(!Tf(e))return e;let r=t(),i=Ht(r);return!r||gn(i)?e:df(r,n)?He.cjkPunctuation:mf(i)}function mf(e){return e&~He.ivs}function gn(e){return!!(e&Bt.characterGroupWhitespace)}function Yn(e){return(e&He.cjkPunctuation)===Bt.characterGroupPunctuation}function Hr(e){return!!(e&He.cjk)}function gf(e){return e===He.ivs}function Ef(e){return!!(e&He.cjkOrIvs)}function Tf(e){return e===He.nonEmojiGeneralUseVS}function Ro(e){return!!(e&He.spaceOrPunctuation)}function wo(e){return!!(e&&e>=55296&&e<=56319)}function Mo(e){return!!(e&&e>=56320&&e<=57343)}function Po(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}function Af(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343=65536?l:o}var Fo=class{constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n,lf(this,"cachedValue")}value(){return this.cachedValue===void 0&&(this.cachedValue=Af(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function Bo(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}function ye(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(ye(e,e.length,0,t),e):t}function Ut(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Ho(d,-c),Ho(f,c),o={type:c>1?$e.strongSequence:$e.emphasisSequence,start:d,end:{...e[r][1].end}},l={type:c>1?$e.strongSequence:$e.emphasisSequence,start:{...e[n][1].start},end:f},a={type:c>1?$e.strongText:$e.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?$e.strong:$e.emphasis,start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=xe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=xe(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),t.parser.constructs.insideSpan.null,u=xe(u,Ut(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=xe(u,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,u=xe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,ye(e,r-1,n-r+3,u),n=r+u.length-h-2;break}}for(n=-1;++n1?l(v):(a.consume(v),I++,y);if(I<2&&!t)return l(v);let q=a.exit("strikethroughSequenceTemporary"),N=Ht(wo(v)?Bo(v,c(),u):v),Q=Yn(E)||gn(E),B=Yn(N)||gn(N),z=Hr(E)||gf(U);return q._open=!B||N===Bt.attentionSideAfter&&(Q||z),q._close=!Q||U===Bt.attentionSideAfter&&(B||Hr(N)),o(v)}}}function Sf(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(xf(e))}cr=function(e,t){let n=String(e);if(typeof t!="string")throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r};function Cf(e){if(typeof e!="string")throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Nf(e,t,n){let r=Jt((n||{}).ignore||[]),i=If(t),a=-1;for(;++a0?{type:"text",value:U}:void 0),U===!1?d.lastIndex=y+1:(p!==y&&I.push({type:"text",value:c.value.slice(p,y)}),Array.isArray(U)?I.push(...U):U&&I.push(U),p=y+b[0].length,C=!0),!d.global)break;b=d.exec(c.value)}return C?(p?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=cr(e,"("),a=cr(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Uo(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||_t(n)||jn(n))&&(!t||n!==47)}function qe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Go.peek=$f;function jf(){this.buffer()}function Yf(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qf(){this.buffer()}function Vf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Wf(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Qf(e){this.exit(e)}function Kf(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Xf(e){this.exit(e)}function $f(){return"["}function Go(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),l=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),o(),a+=i.move("]"),a}function Zf(){return{enter:{gfmFootnoteCallString:jf,gfmFootnoteCall:Yf,gfmFootnoteDefinitionLabelString:qf,gfmFootnoteDefinition:Vf},exit:{gfmFootnoteCallString:Wf,gfmFootnoteCall:Qf,gfmFootnoteDefinitionLabelString:Kf,gfmFootnoteDefinition:Xf}}}function Jf(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Go},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){let l=a.createTracker(o),c=l.move("[^"),u=a.enter("footnoteDefinition"),h=a.enter("label");return c+=l.move(a.safe(a.associationId(r),{before:c,after:"]"})),h(),c+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),c+=l.move((t?` +`:" ")+a.indentLines(a.containerFlow(r,l.current()),t?zo:em))),u(),c}}function em(e,t,n){return t===0?e:zo(e,t,n)}function zo(e,t,n){return(n?"":" ")+e}var tm=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jo.peek=om;function nm(){return{canContainEols:["delete"],enter:{strikethrough:im},exit:{strikethrough:am}}}function rm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tm}],handlers:{delete:jo}}}function im(e){this.enter({type:"delete",children:[]},e)}function am(e){this.exit(e)}function jo(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function om(){return"~"}function sm(e){return e.length}function lm(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||sm,a=[],o=[],l=[],c=[],u=0,h=-1;for(;++hu&&(u=e[h].length);++bc[b])&&(c[b]=v)}C.push(y)}o[h]=C,l[h]=I}let d=-1;if(typeof r=="object"&&"length"in r)for(;++dc[d]&&(c[d]=y),p[d]=y),f[d]=v}o.splice(1,0,f),l.splice(1,0,p),h=-1;let E=[];for(;++h "),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),dm);return i(),o}function dm(e,t,n){return">"+(n?"":" ")+e}function hm(e,t){return qo(e,t.inConstruct,!0)&&!qo(e,t.notInConstruct,!1)}function qo(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function pm(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function fm(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mm(e,t,n,r){let i=fm(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(pm(e,n)){let d=n.enter("codeIndented"),f=n.indentLines(a,gm);return d(),f}let l=n.createTracker(r),c=i.repeat(Math.max(Wo(a,i)+1,3)),u=n.enter("codeFenced"),h=l.move(c);if(e.lang){let d=n.enter(`codeFencedLang${o}`);h+=l.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){let d=n.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(n.safe(e.meta,{before:h,after:` +`,encode:["`"],...l.current()})),d()}return h+=l.move(` +`),a&&(h+=l.move(a+` +`)),h+=l.move(c),u(),h}function gm(e,t,n){return(n?"":" ")+e}function Yr(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Em(e,t,n,r){let i=Yr(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition"),l=n.enter("label"),c=n.createTracker(r),u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),l()),o(),u}function Tm(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function En(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Gt(e){if(e===null||oe(e)||_t(e))return 1;if(jn(e))return 2}function qn(e,t,n){let r=Gt(e),i=Gt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Qo.peek=Am;function Qo(e,t,n,r){let i=Tm(n),a=n.enter("emphasis"),o=n.createTracker(r),l=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()})),u=c.charCodeAt(0),h=qn(r.before.charCodeAt(r.before.length-1),u,i);h.inside&&(c=En(u)+c.slice(1));let d=c.charCodeAt(c.length-1),f=qn(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+En(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:h.outside},l+c+p}function Am(e,t,n){return n.options.emphasis||"*"}var _m={};function qr(e,t){let n=t||_m;return Ko(e,typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,typeof n.includeHtml=="boolean"?n.includeHtml:!0)}function Ko(e,t,n){if(bm(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xo(e.children,t,n)}return Array.isArray(e)?Xo(e,t,n):""}function Xo(e,t,n){let r=[],i=-1;for(;++i",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),l()),u+=c.move(")"),o(),u}function Sm(){return"!"}Jo.peek=Cm;function Jo(e,t,n,r){let i=e.referenceType,a=n.enter("imageReference"),o=n.enter("label"),l=n.createTracker(r),c=l.move("!["),u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();let h=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=h,a(),i==="full"||!u||u!==d?c+=l.move(d+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Cm(){return"!"}es.peek=Nm;function es(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}ns.peek=Im;function ns(e,t,n,r){let i=Yr(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r),l,c;if(ts(e,n)){let h=n.stack;n.stack=[],l=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),n.stack=h,d}l=n.enter("link"),c=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(c=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),c()),u+=o.move(")"),l(),u}function Im(e,t,n){return ts(e,n)?"<":"["}rs.peek=Dm;function rs(e,t,n,r){let i=e.referenceType,a=n.enter("linkReference"),o=n.enter("label"),l=n.createTracker(r),c=l.move("["),u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();let h=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=h,a(),i==="full"||!u||u!==d?c+=l.move(d+"]"):i==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Dm(){return"["}function Vr(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Om(e){let t=Vr(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function vm(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function is(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Lm(e,t,n,r){let i=n.enter("list"),a=n.bulletCurrent,o=e.ordered?vm(n):Vr(n),l=e.ordered?o==="."?")":".":Om(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),is(n)===o&&h){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let l=n.createTracker(r);l.move(a+" ".repeat(o-a.length)),l.shift(o);let c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),h);return c(),u;function h(d,f,p){return f?(p?"":" ".repeat(o))+d:(p?a:a+" ".repeat(o-a.length))+d}}function Mm(e,t,n,r){let i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const Pm=Jt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Fm(e,t,n,r){return(e.children.some(function(i){return Pm(i)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Bm(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}as.peek=Hm;function as(e,t,n,r){let i=Bm(n),a=n.enter("strong"),o=n.createTracker(r),l=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:l,...o.current()})),u=c.charCodeAt(0),h=qn(r.before.charCodeAt(r.before.length-1),u,i);h.inside&&(c=En(u)+c.slice(1));let d=c.charCodeAt(c.length-1),f=qn(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+En(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:h.outside},l+c+p}function Hm(e,t,n){return n.options.strong||"*"}function Um(e,t,n,r){return n.safe(e.value,r)}function Gm(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function zm(e,t,n){let r=(is(n)+(n.options.ruleSpaces?" ":"")).repeat(Gm(n));return n.options.ruleSpaces?r.slice(0,-1):r}const os={blockquote:um,break:Vo,code:mm,definition:Em,emphasis:Qo,hardBreak:Vo,heading:ym,html:$o,image:Zo,imageReference:Jo,inlineCode:es,link:ns,linkReference:rs,list:Lm,listItem:wm,paragraph:Mm,root:Fm,strong:as,text:Um,thematicBreak:zm};var ss=document.createElement("i");function Wr(e){let t="&"+e+";";ss.innerHTML=t;let n=ss.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ls(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}var jm=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ym(e){return e.replace(jm,qm)}function qm(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let r=n.charCodeAt(1),i=r===120||r===88;return ls(n.slice(i?2:1),i?16:10)}return Wr(n)||e}function Vm(){return{enter:{table:Wm,tableData:cs,tableHeader:cs,tableRow:Km},exit:{codeText:Xm,table:Qm,tableData:Qr,tableHeader:Qr,tableRow:Qr}}}function Wm(e){let t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Qm(e){this.exit(e),this.data.inTable=void 0}function Km(e){this.enter({type:"tableRow",children:[]},e)}function Qr(e){this.exit(e)}function cs(e){this.enter({type:"tableCell",children:[]},e)}function Xm(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$m));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $m(e,t){return t==="|"?t:e}function Zm(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:l}};function o(p,E,C,I){return u(h(p,C,I),p.align)}function l(p,E,C,I){let b=u([d(p,C,I)]);return b.slice(0,b.indexOf(` +`))}function c(p,E,C,I){let b=C.enter("tableCell"),y=C.enter("phrasing"),v=C.containerPhrasing(p,{...I,before:a,after:a});return y(),b(),v}function u(p,E){return lm(p,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function h(p,E,C){let I=p.children,b=-1,y=[],v=E.enter("table");for(;++b0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function zt(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),i=1):o="\uFFFD"}else o=String.fromCharCode(a);o&&(o=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,"")),i&&(i=(n+=i,0))}return t.join("")+e.slice(r)}const $r={name:"attention",resolveAll:Tg,tokenize:Ag};function Tg(e,t){let n=-1,r,i,a,o,l,c,u,h;for(;++n1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};bs(d,-c),bs(f,c),o={type:c>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=xe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=xe(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=xe(u,Ut(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=xe(u,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,u=xe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,ye(e,r-1,n-r+3,u),n=r+u.length-h-2;break}}for(n=-1;++n0&&ie(N)?ne(e,y,"linePrefix",a+1)(N):y(N)}function y(N){return N===null||V(N)?e.check(Ss,C,U)(N):(e.enter("codeFlowValue"),v(N))}function v(N){return N===null||V(N)?(e.exit("codeFlowValue"),y(N)):(e.consume(N),v)}function U(N){return e.exit("codeFenced"),t(N)}function q(N,Q,B){let z=0;return x;function x(ee){return N.enter("lineEnding"),N.consume(ee),N.exit("lineEnding"),G}function G(ee){return N.enter("codeFencedFence"),ie(ee)?ne(N,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):R(ee)}function R(ee){return ee===l?(N.enter("codeFencedFenceSequence"),K(ee)):B(ee)}function K(ee){return ee===l?(z++,N.consume(ee),K):z>=o?(N.exit("codeFencedFenceSequence"),ie(ee)?ne(N,ae,"whitespace")(ee):ae(ee)):B(ee)}function ae(ee){return ee===null||V(ee)?(N.exit("codeFencedFence"),Q(ee)):B(ee)}}}function Dg(e,t,n){let r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Zr={name:"codeIndented",tokenize:vg};var Og={partial:!0,tokenize:Lg};function vg(e,t,n){let r=this;return i;function i(u){return e.enter("codeIndented"),ne(e,a,"linePrefix",5)(u)}function a(u){let h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?c(u):V(u)?e.attempt(Og,o,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||V(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function Lg(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ne(e,a,"linePrefix",5)(o)}function a(o){let l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):V(o)?i(o):n(o)}}const Rg={name:"codeText",previous:Mg,resolve:wg,tokenize:Pg};function wg(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&An(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),An(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),An(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Is(e,t,n,r,i,a,o,l,c){let u=c||1/0,h=0;return d;function d(b){return b===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(b),e.exit(a),f):b===null||b===32||b===41||zn(b)?n(b):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),C(b))}function f(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(l),f(b)):b===null||b===60||V(b)?n(b):(e.consume(b),b===92?E:p)}function E(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function C(b){return!h&&(b===null||b===41||oe(b))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(b)):h999||p===null||p===91||p===93&&!c||p===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):V(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||V(p)||l++>999?(e.exit("chunkString"),h(p)):(e.consume(p),c||(c=!ie(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function Os(e,t,n,r,i,a){let o;return l;function l(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,c):n(f)}function c(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),u(f))}function u(f){return f===o?(e.exit(a),c(o)):f===null?n(f):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===o||f===null||V(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:h)}function d(f){return f===o||f===92?(e.consume(f),h):h(f)}}function _n(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ie(i)?ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Yg={name:"definition",tokenize:Vg};var qg={partial:!0,tokenize:Wg};function Vg(e,t,n){let r=this,i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return Ds.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return i=qe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return oe(p)?_n(e,u)(p):u(p)}function u(p){return Is(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(qg,d,d)(p)}function d(p){return ie(p)?ne(e,f,"whitespace")(p):f(p)}function f(p){return p===null||V(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function Wg(e,t,n){return r;function r(l){return oe(l)?_n(e,i)(l):n(l)}function i(l){return Os(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return ie(l)?ne(e,o,"whitespace")(l):o(l)}function o(l){return l===null||V(l)?t(l):n(l)}}const Qg={name:"hardBreakEscape",tokenize:Kg};function Kg(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return V(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Xg={name:"headingAtx",resolve:$g,tokenize:Zg};function $g(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ye(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Zg(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(e.consume(h),o):h===null||oe(h)?(e.exit("atxHeadingSequence"),l(h)):n(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),c(h)):h===null||V(h)?(e.exit("atxHeading"),t(h)):ie(h)?ne(e,l,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function c(h){return h===35?(e.consume(h),c):(e.exit("atxHeadingSequence"),l(h))}function u(h){return h===null||h===35||oe(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),u)}}const Jg="address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul".split("."),vs=["pre","script","style","textarea"],eE={concrete:!0,name:"htmlFlow",resolveTo:rE,tokenize:iE};var tE={partial:!0,tokenize:oE},nE={partial:!0,tokenize:aE};function rE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function iE(e,t,n){let r=this,i,a,o,l,c;return u;function u(A){return h(A)}function h(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),f):A===47?(e.consume(A),a=!0,C):A===63?(e.consume(A),i=3,r.interrupt?t:_):Ie(A)?(e.consume(A),o=String.fromCharCode(A),I):n(A)}function f(A){return A===45?(e.consume(A),i=2,p):A===91?(e.consume(A),i=5,l=0,E):Ie(A)?(e.consume(A),i=4,r.interrupt?t:_):n(A)}function p(A){return A===45?(e.consume(A),r.interrupt?t:_):n(A)}function E(A){return A==="CDATA[".charCodeAt(l++)?(e.consume(A),l===6?r.interrupt?t:R:E):n(A)}function C(A){return Ie(A)?(e.consume(A),o=String.fromCharCode(A),I):n(A)}function I(A){if(A===null||A===47||A===62||oe(A)){let me=A===47,Ge=o.toLowerCase();return!me&&!a&&vs.includes(Ge)?(i=1,r.interrupt?t(A):R(A)):Jg.includes(o.toLowerCase())?(i=6,me?(e.consume(A),b):r.interrupt?t(A):R(A)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):a?y(A):v(A))}return A===45||Ce(A)?(e.consume(A),o+=String.fromCharCode(A),I):n(A)}function b(A){return A===62?(e.consume(A),r.interrupt?t:R):n(A)}function y(A){return ie(A)?(e.consume(A),y):x(A)}function v(A){return A===47?(e.consume(A),x):A===58||A===95||Ie(A)?(e.consume(A),U):ie(A)?(e.consume(A),v):x(A)}function U(A){return A===45||A===46||A===58||A===95||Ce(A)?(e.consume(A),U):q(A)}function q(A){return A===61?(e.consume(A),N):ie(A)?(e.consume(A),q):v(A)}function N(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),c=A,Q):ie(A)?(e.consume(A),N):B(A)}function Q(A){return A===c?(e.consume(A),c=null,z):A===null||V(A)?n(A):(e.consume(A),Q)}function B(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||oe(A)?q(A):(e.consume(A),B)}function z(A){return A===47||A===62||ie(A)?v(A):n(A)}function x(A){return A===62?(e.consume(A),G):n(A)}function G(A){return A===null||V(A)?R(A):ie(A)?(e.consume(A),G):n(A)}function R(A){return A===45&&i===2?(e.consume(A),ce):A===60&&i===1?(e.consume(A),ue):A===62&&i===4?(e.consume(A),Ve):A===63&&i===3?(e.consume(A),_):A===93&&i===5?(e.consume(A),Ue):V(A)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(tE,we,K)(A)):A===null||V(A)?(e.exit("htmlFlowData"),K(A)):(e.consume(A),R)}function K(A){return e.check(nE,ae,we)(A)}function ae(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),ee}function ee(A){return A===null||V(A)?K(A):(e.enter("htmlFlowData"),R(A))}function ce(A){return A===45?(e.consume(A),_):R(A)}function ue(A){return A===47?(e.consume(A),o="",W):R(A)}function W(A){if(A===62){let me=o.toLowerCase();return vs.includes(me)?(e.consume(A),Ve):R(A)}return Ie(A)&&o.length<8?(e.consume(A),o+=String.fromCharCode(A),W):R(A)}function Ue(A){return A===93?(e.consume(A),_):R(A)}function _(A){return A===62?(e.consume(A),Ve):A===45&&i===2?(e.consume(A),_):R(A)}function Ve(A){return A===null||V(A)?(e.exit("htmlFlowData"),we(A)):(e.consume(A),Ve)}function we(A){return e.exit("htmlFlow"),t(A)}}function aE(e,t,n){let r=this;return i;function i(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function oE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Tn,t,n)}}const sE={name:"htmlText",tokenize:lE};function lE(e,t,n){let r=this,i,a,o;return l;function l(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),c}function c(_){return _===33?(e.consume(_),u):_===47?(e.consume(_),q):_===63?(e.consume(_),v):Ie(_)?(e.consume(_),B):n(_)}function u(_){return _===45?(e.consume(_),h):_===91?(e.consume(_),a=0,E):Ie(_)?(e.consume(_),y):n(_)}function h(_){return _===45?(e.consume(_),p):n(_)}function d(_){return _===null?n(_):_===45?(e.consume(_),f):V(_)?(o=d,ue(_)):(e.consume(_),d)}function f(_){return _===45?(e.consume(_),p):d(_)}function p(_){return _===62?ce(_):_===45?f(_):d(_)}function E(_){return _==="CDATA[".charCodeAt(a++)?(e.consume(_),a===6?C:E):n(_)}function C(_){return _===null?n(_):_===93?(e.consume(_),I):V(_)?(o=C,ue(_)):(e.consume(_),C)}function I(_){return _===93?(e.consume(_),b):C(_)}function b(_){return _===62?ce(_):_===93?(e.consume(_),b):C(_)}function y(_){return _===null||_===62?ce(_):V(_)?(o=y,ue(_)):(e.consume(_),y)}function v(_){return _===null?n(_):_===63?(e.consume(_),U):V(_)?(o=v,ue(_)):(e.consume(_),v)}function U(_){return _===62?ce(_):v(_)}function q(_){return Ie(_)?(e.consume(_),N):n(_)}function N(_){return _===45||Ce(_)?(e.consume(_),N):Q(_)}function Q(_){return V(_)?(o=Q,ue(_)):ie(_)?(e.consume(_),Q):ce(_)}function B(_){return _===45||Ce(_)?(e.consume(_),B):_===47||_===62||oe(_)?z(_):n(_)}function z(_){return _===47?(e.consume(_),ce):_===58||_===95||Ie(_)?(e.consume(_),x):V(_)?(o=z,ue(_)):ie(_)?(e.consume(_),z):ce(_)}function x(_){return _===45||_===46||_===58||_===95||Ce(_)?(e.consume(_),x):G(_)}function G(_){return _===61?(e.consume(_),R):V(_)?(o=G,ue(_)):ie(_)?(e.consume(_),G):z(_)}function R(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),i=_,K):V(_)?(o=R,ue(_)):ie(_)?(e.consume(_),R):(e.consume(_),ae)}function K(_){return _===i?(e.consume(_),i=void 0,ee):_===null?n(_):V(_)?(o=K,ue(_)):(e.consume(_),K)}function ae(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||oe(_)?z(_):(e.consume(_),ae)}function ee(_){return _===47||_===62||oe(_)?z(_):n(_)}function ce(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function ue(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),W}function W(_){return ie(_)?ne(e,Ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Ue(_)}function Ue(_){return e.enter("htmlTextData"),o(_)}}const Jr={name:"labelEnd",resolveAll:hE,resolveTo:pE,tokenize:fE};var cE={tokenize:mE},uE={tokenize:gE},dE={tokenize:EE};function hE(e){let t=-1,n=[];for(;++t=3&&(u===null||V(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),ie(u)?ne(e,l,"whitespace")(u):l(u))}}const ve={continuation:{tokenize:NE},exit:DE,name:"list",tokenize:CE};var xE={partial:!0,tokenize:OE},SE={partial:!0,tokenize:IE};function CE(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return l;function l(p){let E=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Br(p)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Vn,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return Br(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Tn,r.interrupt?n:h,e.attempt(xE,f,d))}function h(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function d(p){return ie(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function NE(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Tn,i,a);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!ie(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(SE,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(ve,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function IE(e,t,n){let r=this;return ne(e,i,"listItemIndent",r.containerState.size+1);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function DE(e){e.exit(this.containerState.type)}function OE(e,t,n){let r=this;return ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){let o=r.events[r.events.length-1];return!ie(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Ls={name:"setextUnderline",resolveTo:vE,tokenize:LE};function vE(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);let o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function LE(e,t,n){let r=this,i;return a;function a(u){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),ie(u)?ne(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||V(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}var RE={tokenize:GE,partial:!0};function wE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:BE,continuation:{tokenize:HE},exit:UE}},text:{91:{name:"gfmFootnoteCall",tokenize:FE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ME,resolveTo:PE}}}}function ME(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let c=r.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return n(c);let u=qe(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function PE(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function FE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),c}function c(d){return d===94?(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u):n(d)}function u(d){if(a>999||d===93&&!o||d===null||d===91||oe(d))return n(d);if(d===93){e.exit("chunkString");let f=e.exit("gfmFootnoteCallString");return i.includes(qe(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return oe(d)||(o=!0),a++,e.consume(d),d===92?h:u}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,u):u(d)}}function BE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,l;return c;function c(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(E)}function h(E){if(o>999||E===93&&!l||E===null||E===91||oe(E))return n(E);if(E===93){e.exit("chunkString");let C=e.exit("gfmFootnoteDefinitionLabelString");return a=qe(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return oe(E)||(l=!0),o++,e.consume(E),E===92?d:h}function d(E){return E===91||E===92||E===93?(e.consume(E),o++,h):h(E)}function f(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(a)||i.push(a),ne(e,p,"gfmFootnoteDefinitionWhitespace")):n(E)}function p(E){return t(E)}}function HE(e,t,n){return e.check(Tn,t,e.attempt(RE,t,n))}function UE(e){e.exit("gfmFootnoteDefinition")}function GE(e,t,n){let r=this;return ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function zE(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:i,resolveAll:r};return t??(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,o){let l=-1;for(;++l1?l(p):(a.consume(p),h++,f);if(h<2&&!t)return l(p);let C=a.exit("strikethroughSequenceTemporary"),I=Gt(p);return C._open=!I||I===2&&!!E,C._close=!E||E===2&&!!I,o(p)}}}var jE=class{constructor(){this.map=[]}add(e,t,n){YE(this,e,t,n)}consume(e){if(this.map.sort(function(i,a){return i[0]-a[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let i of r)e.push(i);r=n.pop()}this.map.length=0}};function YE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){let ae=r.events[G][1].type;if(ae==="lineEnding"||ae==="linePrefix")G--;else break}let R=G>-1?r.events[G][1].type:null,K=R==="tableHead"||R==="tableRow"?N:c;return K===N&&r.parser.lazy[r.now().line]?n(x):K(x)}function c(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(o=!0,a+=1),h(x)}function h(x){return x===null?n(x):V(x)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):n(x):ie(x)?ne(e,h,"whitespace")(x):(a+=1,o&&(o=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),d(x)))}function d(x){return x===null||x===124||oe(x)?(e.exit("data"),h(x)):(e.consume(x),x===92?f:d)}function f(x){return x===92||x===124?(e.consume(x),d):d(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),o=!1,ie(x)?ne(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):E(x))}function E(x){return x===45||x===58?I(x):x===124?(o=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):q(x)}function C(x){return ie(x)?ne(e,I,"whitespace")(x):I(x)}function I(x){return x===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(a+=1,b(x)):x===null||V(x)?U(x):q(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),y(x)):q(x)}function y(x){return x===45?(e.consume(x),y):x===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(x))}function v(x){return ie(x)?ne(e,U,"whitespace")(x):U(x)}function U(x){return x===124?E(x):x===null||V(x)?!o||i!==a?q(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):q(x)}function q(x){return n(x)}function N(x){return e.enter("tableRow"),Q(x)}function Q(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),Q):x===null||V(x)?(e.exit("tableRow"),t(x)):ie(x)?ne(e,Q,"whitespace")(x):(e.enter("data"),B(x))}function B(x){return x===null||x===124||oe(x)?(e.exit("data"),Q(x)):(e.consume(x),x===92?z:B)}function z(x){return x===92||x===124?(e.consume(x),B):B(x)}}function QE(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,u,h,d,f=new jE;for(;++nn[2]+1){let p=n[2]+1,E=n[3]-n[2]-1;e.add(p,E,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},jt(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Rs(e,t,n,r,i){let a=[],o=jt(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function jt(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var KE={name:"tasklistCheck",tokenize:$E};function XE(){return{text:{91:KE}}}function $E(e,t,n){let r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return oe(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return V(c)?t(c):ie(c)?e.check({tokenize:ZE},t,n)(c):n(c)}}function ZE(e,t,n){return ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function JE(e){return hs([cg(),wE(),zE(e),VE(),XE()])}var eT={};function tT(e){let t=this,n=e||eT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(JE(n)),a.push(rg()),o.push(ig(n))}function nT(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:l,mathText:o,mathTextData:l}};function e(c){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},c)}function t(){this.buffer()}function n(){let c=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=c}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(c){let u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(c),h.value=u;let d=h.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(c){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},c),this.buffer()}function o(c){let u=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(c),h.value=u,h.data.hChildren.push({type:"text",value:u})}function l(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}function rT(e){let t=(e||{}).singleDollarTextMath;return t??(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,o,l,c){let u=a.value||"",h=l.createTracker(c),d="$".repeat(Math.max(Wo(u,"$")+1,2)),f=l.enter("mathFlow"),p=h.move(d);if(a.meta){let E=l.enter("mathFlowMeta");p+=h.move(l.safe(a.meta,{after:` +`,before:p,encode:["$"],...h.current()})),E()}return p+=h.move(` +`),u&&(p+=h.move(u+` +`)),p+=h.move(d),f(),p}function r(a,o,l){let c=a.value||"",u=1;for(t||u++;RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(c);)u++;let h="$".repeat(u);/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^\$|\$$/.test(c))&&(c=" "+c+" ");let d=-1;for(;++d{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:AT.test(e)},Qn=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes(` +`)},kT=(e,t)=>{let n=1;for(let r=t-1;r>=0;--r)if(e[r]==="]")n+=1;else if(e[r]==="["&&(--n,n===0))return r;return-1},yT=(e,t)=>{let n=1;for(let r=t+1;r{let n=!1,r=!1;for(let i=0;i{if(n!==" "&&n!==" ")return!1;let r=0;for(let i=t-1;i>=0;--i)if(e[i]===` +`){r=i+1;break}for(let i=r;i!!(n==="\\"||n==="*"||r==="*"||n&&r&&ut(n)&&ut(r)||xT(e,t,r)),CT=e=>{let t=0,n=e.length;for(let r=0;r0?e[r-1]:"",a=r!!(n==="\\"||e.includes("$")&&Ps(e,t)||n==="_"||r==="_"||n&&r&&ut(n)&&ut(r)),IT=e=>{let t=0,n=e.length;for(let r=0;r0?e[r-1]:"",a=r{let t=0,n=0;for(let r=0;r=3&&(t+=Math.floor(n/3)),n=0);return n>=3&&(t+=Math.floor(n/3)),t},OT=e=>{if(Qn(e))return e;let t=e.match(hT);if(t){let n=t[2];if(!n||kt.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf(` +`),a=i===-1?0:i+1,o=e.substring(a,r);if(Ms.test(o)&&n.includes(` +`))return e;if((e.match(/\*\*/g)||[]).length%2==1)return`${e}**`}return e},vT=e=>{let t=e.match(pT);if(t){let n=t[2];if(!n||kt.test(n))return e;let r=e.lastIndexOf(t[1]),i=e.substring(0,r).lastIndexOf(` +`),a=i===-1?0:i+1,o=e.substring(a,r);if(Ms.test(o)&&n.includes(` +`))return e;if((e.match(/__/g)||[]).length%2==1)return`${e}__`}return e},LT=e=>{for(let t=0;t0?e[t-1]:"",r=t{if(Qn(e)||!e.match(mT))return e;let t=LT(e);if(t===-1)return e;let n=e.substring(t+1);return!n||kt.test(n)?e:CT(e)%2==1?`${e}*`:e},wT=e=>{for(let t=0;t0?e[t-1]:"",r=t{let t=e.length;for(;t>0&&e[t-1]===` +`;)--t;return t{if(Qn(e)||!e.match(gT))return e;let t=wT(e);if(t===-1)return e;let n=e.substring(t+1);return!n||kt.test(n)?e:IT(e)%2==1?MT(e):e},FT=e=>{if(Qn(e)||bT.test(e))return e;let t=e.match(fT);if(t){let n=t[2];if(!n||kt.test(n))return e;if(DT(e)%2==1)return`${e}***`}return e},ni=(e,t)=>{let n=!1,r=!1;for(let i=0;i{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},HT=e=>{let t=0;for(let n=0;n!e.match(_T)||e.includes(` +`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,GT=e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2==0&&e.includes(` +`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)},zT=e=>(e.match(/```/g)||[]).length%2==1,jT=e=>{let t=UT(e);if(t!==null)return t;if(GT(e))return e;let n=e.match(ET);if(n&&!zT(e)){let r=n[2];if(!r||kt.test(r))return e;if(HT(e)%2==1)return`${e}\``}return e},YT=e=>{if((e.match(/\$\$/g)||[]).length%2==0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(` +`,t)!==-1&&!e.endsWith(` +`)?`${e} +$$`:`${e}$$`},qT=(e,t)=>{if(e.substring(t+2).includes(")"))return null;let n=kT(e,t);if(n===-1||ni(e,n))return null;let r=n>0&&e[n-1]==="!",i=r?n-1:n,a=e.substring(0,i);return r?a:`${a}[${e.substring(n+1,t)}](streamdown:incomplete-link)`},VT=(e,t)=>{let n=t>0&&e[t-1]==="!",r=n?t-1:t;if(!e.substring(t+1).includes("]")){let i=e.substring(0,r);return n?i:`${e}](streamdown:incomplete-link)`}if(yT(e,t)===-1){let i=e.substring(0,r);return n?i:`${e}](streamdown:incomplete-link)`}return null},WT=e=>{let t=e.lastIndexOf("](");if(t!==-1&&!ni(e,t)){let n=qT(e,t);if(n!==null)return n}for(let n=e.length-1;n>=0;--n)if(e[n]==="["&&!ni(e,n)){let r=VT(e,n);if(r!==null)return r}return e},QT=e=>{let t=e.match(TT);if(t){let n=t[2];if(!n||kt.test(n))return e;if((e.match(/~~/g)||[]).length%2==1)return`${e}~~`}return e},KT=e=>{if(!e||typeof e!="string")return e;let t=e,n=WT(t);return n.endsWith("](streamdown:incomplete-link)")?n:(t=n,t=FT(t),t=OT(t),t=vT(t),t=RT(t),t=PT(t),t=jT(t),t=QT(t),t=YT(t),t)},XT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$T=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Fs=e=>{let t=$T(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bs=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),ZT=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0},JT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},L=ar(ek()),eA=(0,L.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...l},c)=>(0,L.createElement)("svg",{ref:c,...JT,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bs("lucide",i),...!a&&!ZT(l)&&{"aria-hidden":"true"},...l},[...o.map(([u,h])=>(0,L.createElement)(u,h)),...Array.isArray(a)?a:[a]])),nt=(e,t)=>{let n=(0,L.forwardRef)(({className:r,...i},a)=>(0,L.createElement)(eA,{ref:a,iconNode:t,className:Bs(`lucide-${XT(Fs(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Fs(e),n},Hs=nt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Us=nt("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Kn=nt("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),tA=nt("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),nA=nt("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),rA=nt("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),iA=nt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),aA=nt("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),oA=nt("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),ri="-",sA=e=>{let t=cA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let a=i.split(ri);return a[0]===""&&a.length!==1&&a.shift(),Gs(a,t)||lA(i)},getConflictingClassGroupIds:(i,a)=>{let o=n[i]||[];return a&&r[i]?[...o,...r[i]]:o}}},Gs=(e,t)=>{var o;if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?Gs(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(ri);return(o=t.validators.find(({validator:l})=>l(a)))==null?void 0:o.classGroupId},zs=/^\[(.+)\]$/,lA=e=>{if(zs.test(e)){let t=zs.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cA=e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let i in n)ii(n[i],r,i,t);return r},ii=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:js(t,i);a.classGroupId=n;return}if(typeof i=="function"){if(uA(i)){ii(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([a,o])=>{ii(o,js(t,a),n,r)})})},js=(e,t)=>{let n=e;return t.split(ri).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},uA=e=>e.isThemeGetter,dA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,i=(a,o)=>{n.set(a,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return i(a,o),o},set(a,o){n.has(a)?n.set(a,o):i(a,o)}}},ai="!",Ys=":",hA=1,pA=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=i=>{let a=[],o=0,l=0,c=0,u;for(let f=0;fc?u-c:void 0}};if(t){let i=t+Ys,a=r;r=o=>o.startsWith(i)?a(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){let i=r;r=a=>n({className:a,parseClassName:i})}return r},fA=e=>e.endsWith(ai)?e.substring(0,e.length-1):e.startsWith(ai)?e.substring(1):e,mA=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;let r=[],i=[];return n.forEach(a=>{a[0]==="["||t[a]?(r.push(...i.sort(),a),i=[]):i.push(a)}),r.push(...i.sort()),r}},gA=e=>({cache:dA(e.cacheSize),parseClassName:pA(e),sortModifiers:mA(e),...sA(e)}),EA=/\s+/,TA=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],l=e.trim().split(EA),c="";for(let u=l.length-1;u>=0;--u){let h=l[u],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:E,maybePostfixModifierPosition:C}=n(h);if(d){c=h+(c.length>0?" "+c:c);continue}let I=!!C,b=r(I?E.substring(0,C):E);if(!b){if(!I){c=h+(c.length>0?" "+c:c);continue}if(b=r(E),!b){c=h+(c.length>0?" "+c:c);continue}I=!1}let y=a(f).join(":"),v=p?y+ai:y,U=v+b;if(o.includes(U))continue;o.push(U);let q=i(b,I);for(let N=0;N0?" "+c:c)}return c};function AA(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rh(u),e())),r=n.cache.get,i=n.cache.set,a=l,l(c)}function l(c){let u=r(c);if(u)return u;let h=TA(c,n);return i(c,h),h}return function(){return a(AA.apply(null,arguments))}}var _e=e=>{let t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ws=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bA=/^\d+\/\d+$/,kA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,SA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,CA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yt=e=>bA.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),dt=e=>!!e&&Number.isInteger(Number(e)),oi=e=>e.endsWith("%")&&te(e.slice(0,-1)),rt=e=>kA.test(e),NA=()=>!0,IA=e=>yA.test(e)&&!xA.test(e),Qs=()=>!1,DA=e=>SA.test(e),OA=e=>CA.test(e),vA=e=>!j(e)&&!Y(e),LA=e=>qt(e,Js,Qs),j=e=>Vs.test(e),yt=e=>qt(e,el,IA),si=e=>qt(e,FA,te),Ks=e=>qt(e,$s,Qs),RA=e=>qt(e,Zs,OA),Xn=e=>qt(e,tl,DA),Y=e=>Ws.test(e),bn=e=>Vt(e,el),wA=e=>Vt(e,BA),Xs=e=>Vt(e,$s),MA=e=>Vt(e,Js),PA=e=>Vt(e,Zs),$n=e=>Vt(e,tl,!0),qt=(e,t,n)=>{let r=Vs.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vt=(e,t,n=!1)=>{let r=Ws.exec(e);return r?r[1]?t(r[1]):n:!1},$s=e=>e==="position"||e==="percentage",Zs=e=>e==="image"||e==="url",Js=e=>e==="length"||e==="size"||e==="bg-size",el=e=>e==="length",FA=e=>e==="number",BA=e=>e==="family-name",tl=e=>e==="shadow",HA=_A(()=>{let e=_e("color"),t=_e("font"),n=_e("text"),r=_e("font-weight"),i=_e("tracking"),a=_e("leading"),o=_e("breakpoint"),l=_e("container"),c=_e("spacing"),u=_e("radius"),h=_e("shadow"),d=_e("inset-shadow"),f=_e("text-shadow"),p=_e("drop-shadow"),E=_e("blur"),C=_e("perspective"),I=_e("aspect"),b=_e("ease"),y=_e("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...U(),Y,j],N=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],B=()=>[Y,j,c],z=()=>[Yt,"full","auto",...B()],x=()=>[dt,"none","subgrid",Y,j],G=()=>["auto",{span:["full",dt,Y,j]},dt,Y,j],R=()=>[dt,"auto",Y,j],K=()=>["auto","min","max","fr",Y,j],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...B()],ue=()=>[Yt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],W=()=>[e,Y,j],Ue=()=>[...U(),Xs,Ks,{position:[Y,j]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ve=()=>["auto","cover","contain",MA,LA,{size:[Y,j]}],we=()=>[oi,bn,yt],A=()=>["","none","full",u,Y,j],me=()=>["",te,bn,yt],Ge=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[te,oi,Xs,Ks],ze=()=>["","none",E,Y,j],We=()=>["none",te,Y,j],Qe=()=>["none",te,Y,j],Qt=()=>[te,Y,j],Kt=()=>[Yt,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rt],breakpoint:[rt],color:[NA],container:[rt],"drop-shadow":[rt],ease:["in","out","in-out"],font:[vA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rt],shadow:[rt],spacing:["px",te],text:[rt],"text-shadow":[rt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yt,j,Y,I]}],container:["container"],columns:[{columns:[te,j,Y,l]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[dt,"auto",Y,j]}],basis:[{basis:[Yt,"full","auto",l,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Yt,"auto","initial","none",j]}],grow:[{grow:["",te,Y,j]}],shrink:[{shrink:["",te,Y,j]}],order:[{order:[dt,"first","last","none",Y,j]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:ue()}],w:[{w:[l,"screen",...ue()]}],"min-w":[{"min-w":[l,"screen","none",...ue()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...ue()]}],h:[{h:["screen","lh",...ue()]}],"min-h":[{"min-h":["screen","lh","none",...ue()]}],"max-h":[{"max-h":["screen","lh",...ue()]}],"font-size":[{text:["base",n,bn,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Y,si]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oi,j]}],"font-family":[{font:[wA,j,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Y,j]}],"line-clamp":[{"line-clamp":[te,"none",Y,si]}],leading:[{leading:[a,...B()]}],"list-image":[{"list-image":["none",Y,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",Y,yt]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[te,"auto",Y,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ue()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:Ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dt,Y,j],radial:["",Y,j],conic:[dt,Y,j]},PA,RA]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:we()}],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ge(),"hidden","none"]}],"divide-style":[{divide:[...Ge(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...Ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,Y,j]}],"outline-w":[{outline:["",te,bn,yt]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",h,$n,Xn]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",d,$n,Xn]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[te,yt]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",f,$n,Xn]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[te,Y,j]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[Y,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ue()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:Ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,j]}],filter:[{filter:["","none",Y,j]}],blur:[{blur:ze()}],brightness:[{brightness:[te,Y,j]}],contrast:[{contrast:[te,Y,j]}],"drop-shadow":[{"drop-shadow":["","none",p,$n,Xn]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",te,Y,j]}],"hue-rotate":[{"hue-rotate":[te,Y,j]}],invert:[{invert:["",te,Y,j]}],saturate:[{saturate:[te,Y,j]}],sepia:[{sepia:["",te,Y,j]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,j]}],"backdrop-blur":[{"backdrop-blur":ze()}],"backdrop-brightness":[{"backdrop-brightness":[te,Y,j]}],"backdrop-contrast":[{"backdrop-contrast":[te,Y,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,Y,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,Y,j]}],"backdrop-invert":[{"backdrop-invert":["",te,Y,j]}],"backdrop-opacity":[{"backdrop-opacity":[te,Y,j]}],"backdrop-saturate":[{"backdrop-saturate":[te,Y,j]}],"backdrop-sepia":[{"backdrop-sepia":["",te,Y,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",Y,j]}],ease:[{ease:["linear","initial",b,Y,j]}],delay:[{delay:[te,Y,j]}],animate:[{animate:["none",y,Y,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,Y,j]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:We()}],"rotate-x":[{"rotate-x":We()}],"rotate-y":[{"rotate-y":We()}],"rotate-z":[{"rotate-z":We()}],scale:[{scale:Qe()}],"scale-x":[{"scale-x":Qe()}],"scale-y":[{"scale-y":Qe()}],"scale-z":[{"scale-z":Qe()}],"scale-3d":["scale-3d"],skew:[{skew:Qt()}],"skew-x":[{"skew-x":Qt()}],"skew-y":[{"skew-y":Qt()}],transform:[{transform:[Y,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Kt()}],"translate-x":[{"translate-x":Kt()}],"translate-y":[{"translate-y":Kt()}],"translate-z":[{"translate-z":Kt()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,j]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[te,bn,yt,si]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),UA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zA={};function nl(e,t){return((t||zA).jsx?GA:UA).test(e)}var jA=/[ \t\n\f\r]/g;Ui=function(e){return typeof e=="object"?e.type==="text"?rl(e.value):!1:rl(e)};function rl(e){return e.replace(jA,"")===""}function kn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?il(e.position):"start"in e||"end"in e?il(e):"line"in e||"column"in e?li(e):""}function li(e){return al(e&&e.line)+":"+al(e&&e.column)}function il(e){return li(e&&e.start)+"-"+li(e&&e.end)}function al(e){return e&&typeof e=="number"?e:1}var Ne=class extends Error{constructor(e,t,n){super(),typeof t=="string"&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),typeof e=="string"?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){let l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=kn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};Ne.prototype.file="",Ne.prototype.name="",Ne.prototype.reason="",Ne.prototype.message="",Ne.prototype.stack="",Ne.prototype.column=void 0,Ne.prototype.line=void 0,Ne.prototype.ancestors=void 0,Ne.prototype.cause=void 0,Ne.prototype.fatal=void 0,Ne.prototype.place=void 0,Ne.prototype.ruleId=void 0,Ne.prototype.source=void 0;var YA=ar(rk(),1),ci={}.hasOwnProperty,qA=new Map,VA=/[A-Z]/g,WA=new Set(["table","tbody","thead","tfoot","tr"]),QA=new Set(["td","th"]),ol="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function KA(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!="function")throw TypeError("Expected `jsxDEV` in options when `development: true`");r=r_(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw TypeError("Expected `jsxs` in production options");r=n_(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ft:Zt,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=sl(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function sl(e,t,n){if(t.type==="element")return XA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $A(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return JA(e,t,n);if(t.type==="mdxjsEsm")return ZA(e,t);if(t.type==="root")return e_(e,t,n);if(t.type==="text")return t_(e,t)}function XA(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ft,e.schema=i),e.ancestors.push(t);let a=cl(e,t.tagName,!1),o=i_(e,t),l=di(e,t);return WA.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!Ui(c):!0})),ll(e,o,a,t),ui(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function $A(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}yn(e,t.position)}function ZA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);yn(e,t.position)}function JA(e,t,n){let r=e.schema,i=r;t.name==="svg"&&r.space==="html"&&(i=ft,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:cl(e,t.name,!0),o=a_(e,t),l=di(e,t);return ll(e,o,a,t),ui(o,l),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function e_(e,t,n){let r={};return ui(r,di(e,t)),e.create(t,e.Fragment,r,n)}function t_(e,t){return t.value}function ll(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ui(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function n_(e,t,n){return r;function r(i,a,o,l){let c=Array.isArray(o.children)?n:t;return l?c(a,o,l):c(a,o)}}function r_(e,t){return n;function n(r,i,a,o){let l=Array.isArray(a.children),c=Xe(r);return t(i,a,o,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function i_(e,t){let n={},r,i;for(i in t.properties)if(i!=="children"&&ci.call(t.properties,i)){let a=o_(e,i,t.properties[i]);if(a){let[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&QA.has(t.tagName)?r=l:n[o]=l}}if(r){let a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function a_(e,t){let n={};for(let r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){let i=r.data.estree.body[0];i.type;let a=i.expression;a.type;let o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else yn(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){let o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else yn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function di(e,t){let n=[],r=-1,i=e.passKeys?new Map:qA;for(;++ro))return;let Q=t.events.length,B=Q,z,x;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(z){x=t.events[B][1].end;break}z=!0}for(b(r),N=Q;Nv;){let q=n[U];t.containerState=q[1],q[0].exit.call(t,e)}n.length=v}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function m_(e,t,n){return ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const g_={tokenize:E_};function E_(e){let t=this,n=e.attempt(Tn,r,e.attempt(this.parser.constructs.flowInitial,i,ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Hg,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const T_={resolveAll:hl()},A_=dl("string"),__=dl("text");function dl(e){return{resolveAll:hl(e==="text"?b_:void 0),tokenize:t};function t(n){let r=this,i=this.parser.constructs[e],a=n.attempt(i,o,l);return o;function o(h){return u(h)?a(h):l(h)}function l(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),c}function c(h){return u(h)?(n.exit("data"),a(h)):(n.consume(h),c)}function u(h){if(h===null)return!0;let d=i[h],f=-1;if(d)for(;++fO_,contentInitial:()=>x_,disable:()=>v_,document:()=>y_,flow:()=>C_,flowInitial:()=>S_,insideSpan:()=>D_,string:()=>N_,text:()=>I_},1);const y_={42:ve,43:ve,45:ve,48:ve,49:ve,50:ve,51:ve,52:ve,53:ve,54:ve,55:ve,56:ve,57:ve,62:ks},x_={91:Yg},S_={[-2]:Zr,[-1]:Zr,32:Zr},C_={35:Xg,42:Vn,45:[Ls,Vn],60:eE,61:Ls,95:Vn,96:Cs,126:Cs},N_={38:xs,92:ys},I_={[-5]:ei,[-4]:ei,[-3]:ei,33:TE,38:xs,42:$r,60:[_g,sE],91:_E,92:[Qg,ys],93:Jr,95:$r,96:Rg},D_={null:[$r,T_]},O_={null:[42,95]},v_={null:[]};function L_(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],l=[],c={attempt:Q(q),check:Q(N),consume:y,enter:v,exit:U,interrupt:Q(N,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:E,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},h=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function d(G){return o=xe(o,G),I(),o[o.length-1]===null?(B(t,0),u.events=Ut(a,u.events,u),u.events):[]}function f(G,R){return w_(p(G),R)}function p(G){return R_(o,G)}function E(){let{_bufferIndex:G,_index:R,line:K,column:ae,offset:ee}=r;return{_bufferIndex:G,_index:R,line:K,column:ae,offset:ee}}function C(G){i[G.line]=G.column,x()}function I(){let G;for(;r._index-1){let l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function w_(e,t){let n=-1,r=[],i;for(;++n0){let pt=X.tokenStack[X.tokenStack.length-1];(pt[1]||gl).call(X,void 0,pt[0])}for(H.position={start:ht(O.length>0?O[0][1].start:{line:1,column:1,offset:0}),end:ht(O.length>0?O[O.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);let u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function Q_(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function K_(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function El(e,t){let n=t.referenceType,r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function X_(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return El(e,t);let i={src:zt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function $_(e,t){let n={src:zt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Z_(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function J_(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return El(e,t);let i={href:zt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function eb(e,t){let n={href:zt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tb(e,t,n){let r=e.all(t),i=n?nb(n):Tl(t),a={},o=[];if(typeof t.checked=="boolean"){let h=r[0],d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l1}function rb(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){let o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Xe(t.children[1]),c=Gn(t.children[t.children.length-1]);l&&c&&(o.position={start:l,end:c}),i.push(o)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function lb(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length,l=-1,c=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(bl(t.slice(i),i>0,!1)),a.join("")}function bl(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Al||a===_l;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Al||a===_l;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function db(e,t){let n={type:"text",value:ub(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function hb(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const pb={blockquote:z_,break:j_,code:Y_,delete:q_,emphasis:V_,footnoteReference:W_,heading:Q_,html:K_,imageReference:X_,image:$_,inlineCode:Z_,linkReference:J_,link:eb,listItem:tb,list:rb,paragraph:ib,root:ab,strong:ob,table:sb,tableCell:cb,tableRow:lb,text:db,thematicBreak:hb,toml:Zn,yaml:Zn,definition:Zn,footnoteDefinition:Zn};function Zn(){}function fb(e,t){let n=[{type:"text",value:"\u21A9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function mb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gb(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||fb,r=e.options.footnoteBackLabel||mb,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],c=-1;for(;++c0&&E.push({type:"text",value:" "});let y=typeof n=="string"?n:n(c,p);typeof y=="string"&&(y={type:"text",value:y}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}let I=h[h.length-1];if(I&&I.type==="element"&&I.tagName==="p"){let y=I.children[I.children.length-1];y&&y.type==="text"?y.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...E)}else h.push(...E);let b={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(h,!0)};e.patch(u,b),l.push(b)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Dt(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` +`}]}}var hi={}.hasOwnProperty,Eb={};function Tb(e,t){let n=t||Eb,r=new Map,i=new Map,a={all:l,applyData:_b,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...pb,...n.handlers},one:o,options:n,patch:Ab,wrap:kb};return St(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let u=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();u.has(h)||u.set(h,c)}}),a;function o(c,u){let h=c.type,d=a.handlers[h];if(hi.call(a.handlers,h)&&d)return d(a,c,u);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in c){let{children:f,...p}=c,E=Dt(p);return E.children=a.all(c),E}return Dt(c)}return(a.options.unknownHandler||bb)(a,c,u)}function l(c){let u=[];if("children"in c){let h=c.children,d=-1;for(;++d0&&n.push({type:"text",value:` +`}),n}function kl(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yl(e,t){let n=Tb(e,t),r=n.one(e,void 0),i=gb(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&("children"in a,a.children.push({type:"text",value:` +`},i)),a}function yb(e,t){return e&&"run"in e?async function(n,r){let i=yl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return yl(n,{file:r,...e||t})}}function xl(e){if(e)throw e}var xb=Jb(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},l=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var d=n.call(h,"constructor"),f=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!f)return!1;for(var p in h);return p===void 0||n.call(h,p)},c=function(h,d){i&&d.name==="__proto__"?i(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},u=function(h,d){if(d==="__proto__")if(n.call(h,d)){if(a)return a(h,d).value}else return;return h[d]};t.exports=function h(){var d,f,p,E,C,I,b=arguments[0],y=1,v=arguments.length,U=!1;for(typeof b=="boolean"&&(U=b,b=arguments[1]||{},y=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});yo.length,c;l&&o.push(i);try{c=e.apply(this,o)}catch(u){let h=u;if(l&&n)throw h;return i(h)}l||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(o,...l){n||(n=!0,t(o,...l))}function a(o){i(null,o)}}const Je={basename:Nb,dirname:Ib,extname:Db,join:Ob,sep:"/"};function Nb(e,t){if(t!==void 0&&typeof t!="string")throw TypeError('"ext" argument must be a string');xn(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Ib(e){if(xn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Db(e){xn(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Ob(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Lb(e,t){let n="",r=0,i=-1,a=0,o=-1,l,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else l===46&&a>-1?a++:a=-1}return n}function xn(e){if(typeof e!="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}const Rb={cwd:wb};function wb(){return"/"}function fi(e){return!!(typeof e=="object"&&e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mb(e){if(typeof e=="string")e=new URL(e);else if(!fi(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Pb(e)}function Pb(e){if(e.hostname!==""){let r=TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let t=e.pathname,n=-1;for(;++n0){let[p,...E]=h,C=r[f][1];pi(C)&&pi(p)&&(p=(0,Ti.default)(!0,C,p)),r[f]=[u,p,...E]}}}}().freeze();function Ai(e,t){if(typeof t!="function")throw TypeError("Cannot `"+e+"` without `parser`")}function _i(e,t){if(typeof t!="function")throw TypeError("Cannot `"+e+"` without `compiler`")}function bi(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cl(e){if(!pi(e)||typeof e.type!="string")throw TypeError("Expected node, got `"+e+"`")}function Nl(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jn(e){return zb(e)?e:new Fb(e)}function zb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function jb(e){return typeof e=="string"||Yb(e)}function Yb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}let D,xt,ki,yi,xi,Il,Si,Dl,Ol,Ci,vl,Ll,Wt,Rl,wl,Ml,Ni,Ii,Pl,er,Fl,Bl,Hl,Ul,Gl,zl,jl;D=ar(tk(),1),$=(...e)=>HA(nk(e)),xt=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},Hi=(0,L.createContext)({code:""}),ki=()=>(0,L.useContext)(Hi),yi=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...o})=>{let[l,c]=(0,L.useState)(!1),u=(0,L.useRef)(0),{code:h}=ki(),{isAnimating:d}=(0,L.useContext)(Pe),f=a??h,p=async()=>{var C;if(typeof window>"u"||!((C=navigator==null?void 0:navigator.clipboard)!=null&&C.writeText)){t==null||t(Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(f),c(!0),e==null||e(),u.current=window.setTimeout(()=>c(!1),n))}catch(I){t==null||t(I)}};(0,L.useEffect)(()=>()=>{window.clearTimeout(u.current)},[]);let E=l?Hs:Us;return(0,D.jsx)("button",{className:$("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:d,onClick:p,title:"Copy Code",type:"button",...o,children:r??(0,D.jsx)(E,{size:14})})},xi={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",\u6587\u8A00:"wy"},Il=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...o})=>{let{code:l}=ki(),{isAnimating:c}=(0,L.useContext)(Pe),u=a??l,h=`file.${n&&n in xi?xi[n]:"txt"}`,d=()=>{try{xt(h,u,"text/plain"),e==null||e()}catch(f){t==null||t(f)}};return(0,D.jsx)("button",{className:$("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:c,onClick:d,title:"Download file",type:"button",...o,children:r??(0,D.jsx)(Kn,{size:14})})},Si=()=>(0,D.jsxs)("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[(0,D.jsx)("div",{className:"h-[46px] w-full bg-muted/80"}),(0,D.jsx)("div",{className:"flex w-full items-center justify-center p-4",children:(0,D.jsx)(tA,{className:"size-4 animate-spin"})})]}),Dl=/\.[^/.]+$/,Ol=({node:e,className:t,src:n,alt:r,...i})=>{let a=async()=>{if(n)try{let o=await(await fetch(n)).blob(),l=new URL(n,window.location.origin).pathname.split("/").pop()||"",c=l.split(".").pop(),u=l.includes(".")&&c!==void 0&&c.length<=4,h="";if(u)h=l;else{let d=o.type,f="png";d.includes("jpeg")||d.includes("jpg")?f="jpg":d.includes("png")?f="png":d.includes("svg")?f="svg":d.includes("gif")?f="gif":d.includes("webp")&&(f="webp"),h=`${(r||l||"image").replace(Dl,"")}.${f}`}xt(h,o,o.type)}catch(o){console.error("Failed to download image:",o)}};return n?(0,D.jsxs)("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[(0,D.jsx)("img",{alt:r,className:$("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),(0,D.jsx)("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),(0,D.jsx)("button",{className:$("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:a,title:"Download image",type:"button",children:(0,D.jsx)(Kn,{size:14})})]}):null},Ci=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},n=(await or(async()=>{let{default:r}=await import("./mermaid.core-XIi8b-BS.js").then(async i=>(await i.__tla,i));return{default:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url)).default;return n.initialize(t),n},vl=(e,t)=>new Promise((n,r)=>{let i="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),a=new Image;a.crossOrigin="anonymous",a.onload=()=>{let o=document.createElement("canvas"),l=a.width*5,c=a.height*5;o.width=l,o.height=c;let u=o.getContext("2d");if(!u){r(Error("Failed to create 2D canvas context for PNG export"));return}u.drawImage(a,0,0,l,c),o.toBlob(h=>{if(!h){r(Error("Failed to create PNG blob"));return}n(h)},"image/png")},a.onerror=()=>r(Error("Failed to load SVG image")),a.src=i}),Ll=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let[o,l]=(0,L.useState)(!1),c=(0,L.useRef)(null),{isAnimating:u}=(0,L.useContext)(Pe),h=async d=>{try{if(d==="mmd"){xt("diagram.mmd",e,"text/plain"),l(!1),r==null||r(d);return}let f=await Ci(i),p=e.split("").reduce((I,b)=>(I<<5)-I+b.charCodeAt(0)|0,0),E=`mermaid-${Math.abs(p)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:C}=await f.render(E,e);if(!C){a==null||a(Error("SVG not found. Please wait for the diagram to render."));return}if(d==="svg"){xt("diagram.svg",C,"image/svg+xml"),l(!1),r==null||r(d);return}if(d==="png"){xt("diagram.png",await vl(C),"image/png"),r==null||r(d),l(!1);return}}catch(f){a==null||a(f)}};return(0,L.useEffect)(()=>{let d=f=>{c.current&&!c.current.contains(f.target)&&l(!1)};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[]),(0,D.jsxs)("div",{className:"relative",ref:c,children:[(0,D.jsx)("button",{className:$("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:u,onClick:()=>l(!o),title:"Download diagram",type:"button",children:t??(0,D.jsx)(Kn,{size:14})}),o&&(0,D.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,D.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),(0,D.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),(0,D.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]})]})},Wt=0,Rl=()=>{Wt+=1,Wt===1&&(document.body.style.overflow="hidden")},wl=()=>{Wt=Math.max(0,Wt-1),Wt===0&&(document.body.style.overflow="")},Ml=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let[o,l]=(0,L.useState)(!1),{isAnimating:c,controls:u}=(0,L.useContext)(Pe),h=(()=>{if(typeof u=="boolean")return u;let f=u.mermaid;return f===!1?!1:f===!0||f===void 0?!0:f.panZoom!==!1})(),d=()=>{l(!o)};return(0,L.useEffect)(()=>{if(o){Rl();let f=p=>{p.key==="Escape"&&l(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),wl()}}},[o]),(0,L.useEffect)(()=>{o?n==null||n():r&&r()},[o,n,r]),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("button",{className:$("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:c,onClick:d,title:"View fullscreen",type:"button",...a,children:(0,D.jsx)(nA,{size:14})}),o&&(0,D.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:d,onKeyDown:f=>{f.key==="Escape"&&d()},role:"button",tabIndex:0,children:[(0,D.jsx)("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:d,title:"Exit fullscreen",type:"button",children:(0,D.jsx)(iA,{size:20})}),(0,D.jsx)("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:(0,D.jsx)(Gi,{chart:e,className:"h-full w-full [&>div]:h-full [&>div]:overflow-hidden [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:h})})]})]})},Ni=e=>{var a,o;let t=[],n=[],r=e.querySelectorAll("thead th");for(let l of r)t.push(((a=l.textContent)==null?void 0:a.trim())||"");let i=e.querySelectorAll("tbody tr");for(let l of i){let c=[],u=l.querySelectorAll("td");for(let h of u)c.push(((o=h.textContent)==null?void 0:o.trim())||"");n.push(c)}return{headers:t,rows:n}},Ii=e=>{let{headers:t,rows:n}=e,r=l=>{let c=!1,u=!1;for(let h=0;h0?n.length+1:n.length,a=Array(i),o=0;t.length>0&&(a[o]=t.map(r).join(","),o+=1);for(let l of n)a[o]=l.map(r).join(","),o+=1;return a.join(` +`)},Pl=e=>{let{headers:t,rows:n}=e,r=l=>{let c=!1;for(let h=0;h0?n.length+1:n.length,a=Array(i),o=0;t.length>0&&(a[o]=t.map(r).join(" "),o+=1);for(let l of n)a[o]=l.map(r).join(" "),o+=1;return a.join(` +`)},er=e=>{let t=!1;for(let r=0;r{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=Array(n.length+2),i=0;r[i]=`| ${t.map(o=>er(o)).join(" | ")} |`,i+=1;let a=Array(t.length);for(let o=0;oer(l)).join(" | ")} |`,i+=1;return r.join(` +`)},Bl=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,o]=(0,L.useState)(!1),[l,c]=(0,L.useState)(!1),u=(0,L.useRef)(null),h=(0,L.useRef)(0),{isAnimating:d}=(0,L.useContext)(Pe),f=async E=>{var I,b;var C;if(typeof window>"u"||!((C=navigator==null?void 0:navigator.clipboard)!=null&&C.write)){r==null||r(Error("Clipboard API not available"));return}try{let y=(b=(I=u.current)==null?void 0:I.closest('[data-streamdown="table-wrapper"]'))==null?void 0:b.querySelector("table");if(!y){r==null||r(Error("Table not found"));return}let v=Ni(y),U=E==="csv"?Ii(v):Pl(v),q=new ClipboardItem({"text/plain":new Blob([U],{type:"text/plain"}),"text/html":new Blob([y.outerHTML],{type:"text/html"})});await navigator.clipboard.write([q]),c(!0),o(!1),n==null||n(E),h.current=window.setTimeout(()=>c(!1),i)}catch(y){r==null||r(y)}};(0,L.useEffect)(()=>{let E=C=>{u.current&&!u.current.contains(C.target)&&o(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E),window.clearTimeout(h.current)}},[]);let p=l?Hs:Us;return(0,D.jsxs)("div",{className:"relative",ref:u,children:[(0,D.jsx)("button",{className:$("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>o(!a),title:"Copy table",type:"button",children:e??(0,D.jsx)(p,{size:14})}),a&&(0,D.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,D.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),(0,D.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},Hl=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=(0,L.useState)(!1),o=(0,L.useRef)(null),{isAnimating:l}=(0,L.useContext)(Pe),c=u=>{var h,d;try{let f=(d=(h=o.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'))==null?void 0:d.querySelector("table");if(!f){r==null||r(Error("Table not found"));return}let p=Ni(f),E=u==="csv"?Ii(p):Fl(p);xt(`table.${u==="csv"?"csv":"md"}`,E,u==="csv"?"text/csv":"text/markdown"),a(!1),n==null||n(u)}catch(f){r==null||r(f)}};return(0,L.useEffect)(()=>{let u=h=>{o.current&&!o.current.contains(h.target)&&a(!1)};return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]),(0,D.jsxs)("div",{className:"relative",ref:o,children:[(0,D.jsx)("button",{className:$("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>a(!i),title:"Download table",type:"button",children:e??(0,D.jsx)(Kn,{size:14})}),i&&(0,D.jsxs)("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[(0,D.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),(0,D.jsx)("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]})]})},Ul=({children:e,className:t,showControls:n,...r})=>(0,D.jsxs)("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n&&(0,D.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,D.jsx)(Bl,{}),(0,D.jsx)(Hl,{})]}),(0,D.jsx)("div",{className:"overflow-x-auto",children:(0,D.jsx)("table",{className:$("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]}),Gl=(0,L.lazy)(()=>or(()=>import("./code-block-QI2IAROF-Ckkxnyg4.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([33,11,34,2,35,17,36,37]),import.meta.url).then(e=>({default:e.CodeBlock}))),zl=(0,L.lazy)(()=>or(()=>import("./mermaid-NA5CF7SZ-Rdx8a8Uo.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([38,34,2,35,17,36,37]),import.meta.url).then(e=>({default:e.Mermaid}))),jl=/language-([^\s]+)/;function tr(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(n==null?void 0:n.line)===(r==null?void 0:r.line)&&(n==null?void 0:n.column)===(r==null?void 0:r.column)&&(i==null?void 0:i.line)===(a==null?void 0:a.line)&&(i==null?void 0:i.column)===(a==null?void 0:a.column)}function fe(e,t){return e.className===t.className&&tr(e.node,t.node)}var Di=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,nr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Oi=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("ol",{className:$("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>fe(e,t));Oi.displayName="MarkdownOl";var Yl=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("li",{className:$("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&tr(e.node,t.node));Yl.displayName="MarkdownLi";var ql=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("ul",{className:$("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>fe(e,t));ql.displayName="MarkdownUl";var Vl=(0,L.memo)(({className:e,node:t,...n})=>(0,D.jsx)("hr",{className:$("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>fe(e,t));Vl.displayName="MarkdownHr";var Wl=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("span",{className:$("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>fe(e,t));Wl.displayName="MarkdownStrong";var Ql=(0,L.memo)(({children:e,className:t,href:n,node:r,...i})=>{let a=n==="streamdown:incomplete-link";return(0,D.jsx)("a",{className:$("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":a,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},(e,t)=>fe(e,t)&&e.href===t.href);Ql.displayName="MarkdownA";var Kl=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("h1",{className:$("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>fe(e,t));Kl.displayName="MarkdownH1";var Xl=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("h2",{className:$("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>fe(e,t));Xl.displayName="MarkdownH2";var $l=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("h3",{className:$("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>fe(e,t));$l.displayName="MarkdownH3";var Zl=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("h4",{className:$("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>fe(e,t));Zl.displayName="MarkdownH4";var Jl=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("h5",{className:$("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>fe(e,t));Jl.displayName="MarkdownH5";var ec=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("h6",{className:$("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>fe(e,t));ec.displayName="MarkdownH6";var tc=(0,L.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i}=(0,L.useContext)(Pe),a=Di(i,"table");return(0,D.jsx)(Ul,{className:t,"data-streamdown":"table-wrapper",showControls:a,...r,children:e})},(e,t)=>fe(e,t));tc.displayName="MarkdownTable";var nc=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("thead",{className:$("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>fe(e,t));nc.displayName="MarkdownThead";var rc=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("tbody",{className:$("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>fe(e,t));rc.displayName="MarkdownTbody";var ic=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("tr",{className:$("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>fe(e,t));ic.displayName="MarkdownTr";var ac=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("th",{className:$("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>fe(e,t));ac.displayName="MarkdownTh";var oc=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("td",{className:$("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>fe(e,t));oc.displayName="MarkdownTd";var sc=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("blockquote",{className:$("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>fe(e,t));sc.displayName="MarkdownBlockquote";var lc=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("sup",{className:$("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>fe(e,t));lc.displayName="MarkdownSup";var cc=(0,L.memo)(({children:e,className:t,node:n,...r})=>(0,D.jsx)("sub",{className:$("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>fe(e,t));cc.displayName="MarkdownSub";var uc=(0,L.memo)(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=o=>{var h,d;if(!(0,L.isValidElement)(o))return!1;let l=Array.isArray(o.props.children)?o.props.children:[o.props.children],c=!1,u=!1;for(let f of l)if(f){if(typeof f=="string")f.trim()!==""&&(c=!0);else if((0,L.isValidElement)(f))if(((h=f.props)==null?void 0:h["data-footnote-backref"])!==void 0)u=!0;else{let p=Array.isArray(f.props.children)?f.props.children:[f.props.children];for(let E of p){if(typeof E=="string"&&E.trim()!==""){c=!0;break}if((0,L.isValidElement)(E)&&((d=E.props)==null?void 0:d["data-footnote-backref"])===void 0){c=!0;break}}}}return u&&!c},a=Array.isArray(e)?e.map(o=>{if(!(0,L.isValidElement)(o))return o;if(o.type===Oi){let l=(Array.isArray(o.props.children)?o.props.children:[o.props.children]).filter(c=>!i(c));return l.length===0?null:{...o,props:{...o.props,children:l}}}return o}):e;return(Array.isArray(a)?a.some(o=>o!==null):a!==null)?(0,D.jsx)("section",{className:t,...r,children:a}):null}return(0,D.jsx)("section",{className:t,...r,children:e})},(e,t)=>fe(e,t));uc.displayName="MarkdownSection";var dc=(0,L.memo)(({node:e,className:t,children:n,...r})=>{var h,d,f;let i=((h=e==null?void 0:e.position)==null?void 0:h.start.line)===((d=e==null?void 0:e.position)==null?void 0:d.end.line),{mermaid:a,controls:o}=(0,L.useContext)(Pe);if(i)return(0,D.jsx)("code",{className:$("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let l=((f=t==null?void 0:t.match(jl))==null?void 0:f.at(1))??"",c="";if((0,L.isValidElement)(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?c=n.props.children:typeof n=="string"&&(c=n),l==="mermaid"){let p=Di(o,"mermaid"),E=nr(o,"download"),C=nr(o,"copy"),I=nr(o,"fullscreen"),b=nr(o,"panZoom");return(0,D.jsx)(L.Suspense,{fallback:(0,D.jsx)(Si,{}),children:(0,D.jsxs)("div",{className:$("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[p&&(E||C||I)&&(0,D.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[E&&(0,D.jsx)(Ll,{chart:c,config:a==null?void 0:a.config}),C&&(0,D.jsx)(yi,{code:c}),I&&(0,D.jsx)(Ml,{chart:c,config:a==null?void 0:a.config})]}),(0,D.jsx)(zl,{chart:c,config:a==null?void 0:a.config,showControls:b})]})})}let u=Di(o,"code");return(0,D.jsx)(L.Suspense,{fallback:(0,D.jsx)(Si,{}),children:(0,D.jsx)(Gl,{className:$("overflow-x-auto border-border border-t",t),code:c,language:l,children:u&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Il,{code:c,language:l}),(0,D.jsx)(yi,{})]})})})},(e,t)=>e.className===t.className&&tr(e.node,t.node));dc.displayName="MarkdownCode";var hc=(0,L.memo)(Ol,(e,t)=>e.className===t.className&&tr(e.node,t.node));hc.displayName="MarkdownImg";var pc=(0,L.memo)(({children:e,className:t,node:n,...r})=>{var a;let i=(Array.isArray(e)?e:[e]).filter(o=>o!=null&&o!=="");return i.length===1&&(0,L.isValidElement)(i[0])&&((a=i[0].props.node)==null?void 0:a.tagName)==="img"?(0,D.jsx)(D.Fragment,{children:e}):(0,D.jsx)("p",{className:t,...r,children:e})},(e,t)=>fe(e,t));pc.displayName="MarkdownParagraph";let fc,vi,Li,Sn,Ri,wi,mc,gc,Ec,Tc,Ac,_c,bc,rr,kc,ir,yc,xc,Sc,Cc,Nc,Mi;fc={ol:Oi,li:Yl,ul:ql,hr:Vl,strong:Wl,a:Ql,h1:Kl,h2:Xl,h3:$l,h4:Zl,h5:Jl,h6:ec,table:tc,thead:nc,tbody:rc,tr:ic,th:ac,td:oc,blockquote:sc,code:dc,img:hc,pre:({children:e})=>e,sup:lc,sub:cc,p:pc,section:uc},vi=[],Li={allowDangerousHtml:!0},Sn=new WeakMap,Ri=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let c="default";return this.keyCache.set(e,c),c}let a=c=>{if(!c||c.length===0)return"";let u="";for(let h=0;h0&&(u+=","),Array.isArray(d)){let[f,p]=d;if(typeof f=="function"){let E=Sn.get(f);E||(E=f.name,Sn.set(f,E)),u+=E}else u+=String(f);u+=":",u+=JSON.stringify(p)}else if(typeof d=="function"){let f=Sn.get(d);f||(f=d.name,Sn.set(d,f)),u+=f}else u+=String(d)}return u},o=a(n),l=`${a(r)}::${o}::${i?JSON.stringify(i):""}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},wi=e=>{let t=mc(e),n=e.children||"";return Ec(t.runSync(t.parse(n),n),e)},mc=e=>{let t=Ri.get(e);if(t)return t;let n=gc(e);return Ri.set(e,n),n},gc=e=>{let t=e.rehypePlugins||vi,n=e.remarkPlugins||vi,r=e.remarkRehypeOptions?{...Li,...e.remarkRehypeOptions}:Li;return Gb().use(G_).use(n).use(yb,r).use(t)},Ec=(e,t)=>KA(e,{Fragment:D.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0}),Tc=/\[\^[^\]\s]{1,200}\](?!:)/,Ac=/\[\^[^\]\s]{1,200}\]:/,_c=/<\/(\w+)>/,bc=/<(\w+)[\s>]/,rr=e=>{let t=0;for(;t{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===` +`||e[t]==="\r");)--t;return t>=1&&e[t]==="$"&&e[t-1]==="$"},ir=e=>{let t=0;for(let n=0;n{let t=Tc.test(e),n=Ac.test(e);if(t||n)return[e];let r=ik.lex(e,{gfm:!0}),i=[],a=[];for(let o of r){let l=o.raw,c=i.length;if(a.length>0){if(i[c-1]+=l,o.type==="html"){let u=l.match(_c);if(u){let h=u[1];a.at(-1)===h&&a.pop()}}continue}if(o.type==="html"&&o.block){let u=l.match(bc);if(u){let h=u[1];l.includes(``)||a.push(h)}}if(l.trim()==="$$"&&c>0){let u=i[c-1],h=rr(u),d=ir(u);if(h&&d%2==1){i[c-1]=u+l;continue}}if(c>0&&kc(l)){let u=i[c-1],h=rr(u),d=ir(u),f=ir(l);if(h&&d%2==1&&!rr(l)&&f===1){i[c-1]=u+l;continue}}i.push(l)}return i},xc={raw:Kp,katex:[br,{errorColor:"var(--color-muted-foreground)"}],harden:[jc,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},Sc={gfm:[tT,{}],math:[ti,{singleDollarTextMath:!1}],cjkFriendly:[yf,{}],cjkFriendlyGfmStrikethrough:[Sf,{}]},Cc=Object.values(xc),Nc=Object.values(Sc),Pe=(0,L.createContext)({shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0}),Mi=(0,L.memo)(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let r=(0,L.useMemo)(()=>typeof e=="string"&&t?KT(e.trim()):e,[e,t]);return(0,D.jsx)(wi,{...n,children:r})},(e,t)=>{if(e.content!==t.content||e.shouldParseIncompleteMarkdown!==t.shouldParseIncompleteMarkdown||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,o;return((a=e.components)==null?void 0:a[i])!==((o=t.components)==null?void 0:o[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)}),Mi.displayName="Block";let Ic;Ic=["github-light","github-dark"],Bi=(0,L.memo)(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,components:r,rehypePlugins:i=Cc,remarkPlugins:a=Nc,className:o,shikiTheme:l=Ic,mermaid:c,controls:u=!0,isAnimating:h=!1,BlockComponent:d=Mi,parseMarkdownIntoBlocksFn:f=yc,...p})=>{let E=(0,L.useId)(),[C,I]=(0,L.useTransition)(),[b,y]=(0,L.useState)([]),v=(0,L.useMemo)(()=>f(typeof e=="string"?e:""),[e,f]);(0,L.useEffect)(()=>{t==="streaming"?I(()=>{y(v)}):y(v)},[v,t]);let U=t==="streaming"?b:v,q=(0,L.useMemo)(()=>U.map((B,z)=>`${E}-${z}`),[U.length,E]),N=(0,L.useMemo)(()=>({shikiTheme:l,controls:u,isAnimating:h,mode:t,mermaid:c}),[l,u,h,t,c]),Q=(0,L.useMemo)(()=>({...fc,...r}),[r]);return(0,L.useEffect)(()=>{if(!(Array.isArray(i)&&i.some(R=>Array.isArray(R)?R[0]===br:R===br)))return;let B=!1;if(Array.isArray(a)){let R=a.find(K=>Array.isArray(K)?K[0]===ti:K===ti);R&&Array.isArray(R)&&R[1]&&(B=R[1].singleDollarTextMath===!0)}let z=typeof e=="string"?e:"",x=z.includes("$$"),G=B&&(/[^$]\$[^$]/.test(z)||/^\$[^$]/.test(z)||/[^$]\$$/.test(z));(x||G)&&or(()=>Promise.resolve({}).then(async R=>(await R.__tla,R)),__vite__mapDeps([39]),import.meta.url)},[i,a,e]),t==="static"?(0,D.jsx)(Pe.Provider,{value:N,children:(0,D.jsx)("div",{className:$("space-y-4 whitespace-normal",o),children:(0,D.jsx)(wi,{components:Q,rehypePlugins:i,remarkPlugins:a,...p,children:e})})}):(0,D.jsx)(Pe.Provider,{value:N,children:(0,D.jsx)("div",{className:$("space-y-4 whitespace-normal",o),children:U.map((B,z)=>(0,D.jsx)(d,{components:Q,content:B,index:z,rehypePlugins:i,remarkPlugins:a,shouldParseIncompleteMarkdown:n,...p},q[z]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode),Bi.displayName="Streamdown";let Dc;Dc=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:o=1,fullscreen:l=!1})=>{let c=(0,L.useRef)(null),u=(0,L.useRef)(null),[h,d]=(0,L.useState)(o),[f,p]=(0,L.useState)({x:0,y:0}),[E,C]=(0,L.useState)(!1),[I,b]=(0,L.useState)({x:0,y:0}),[y,v]=(0,L.useState)({x:0,y:0}),U=(0,L.useCallback)(R=>{d(K=>Math.max(n,Math.min(r,K+R)))},[n,r]),q=(0,L.useCallback)(()=>{U(i)},[U,i]),N=(0,L.useCallback)(()=>{U(-i)},[U,i]),Q=(0,L.useCallback)(()=>{d(o),p({x:0,y:0})},[o]),B=(0,L.useCallback)(R=>{R.preventDefault(),U(R.deltaY>0?-i:i)},[U,i]),z=(0,L.useCallback)(R=>{if(R.button!==0||R.isPrimary===!1)return;C(!0),b({x:R.clientX,y:R.clientY}),v(f);let K=R.currentTarget;K instanceof HTMLElement&&K.setPointerCapture(R.pointerId)},[f]),x=(0,L.useCallback)(R=>{if(!E)return;R.preventDefault();let K=R.clientX-I.x,ae=R.clientY-I.y;p({x:y.x+K,y:y.y+ae})},[E,I,y]),G=(0,L.useCallback)(R=>{C(!1);let K=R.currentTarget;K instanceof HTMLElement&&K.releasePointerCapture(R.pointerId)},[]);return(0,L.useEffect)(()=>{let R=c.current;if(R)return R.addEventListener("wheel",B,{passive:!1}),()=>{R.removeEventListener("wheel",B)}},[B]),(0,L.useEffect)(()=>{let R=u.current;if(R&&E)return document.body.style.userSelect="none",R.addEventListener("pointermove",x,{passive:!1}),R.addEventListener("pointerup",G),R.addEventListener("pointercancel",G),()=>{document.body.style.userSelect="",R.removeEventListener("pointermove",x),R.removeEventListener("pointerup",G),R.removeEventListener("pointercancel",G)}},[E,x,G]),(0,D.jsxs)("div",{className:$("relative",l?"h-full w-full":"w-full",t),ref:c,style:{cursor:E?"grabbing":"grab"},children:[a&&(0,D.jsxs)("div",{className:$("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,D.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h>=r,onClick:q,title:"Zoom in",type:"button",children:(0,D.jsx)(aA,{size:16})}),(0,D.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h<=n,onClick:N,title:"Zoom out",type:"button",children:(0,D.jsx)(oA,{size:16})}),(0,D.jsx)("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:Q,title:"Reset zoom and pan",type:"button",children:(0,D.jsx)(rA,{size:16})})]}),(0,D.jsx)("div",{className:$("origin-center transition-transform duration-150 ease-out",l&&"flex w-full items-center justify-center"),onPointerDown:z,ref:u,role:"application",style:{transform:`translate(${f.x}px, ${f.y}px) scale(${h})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Gi=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[a,o]=(0,L.useState)(null),[l,c]=(0,L.useState)(!0),[u,h]=(0,L.useState)(""),[d,f]=(0,L.useState)(""),[p,E]=(0,L.useState)(0),{mermaid:C}=(0,L.useContext)(Pe),I=C==null?void 0:C.errorComponent;if((0,L.useEffect)(()=>{(async()=>{try{o(null),c(!0);let y=await Ci(n),v=e.split("").reduce((N,Q)=>(N<<5)-N+Q.charCodeAt(0)|0,0),U=`mermaid-${Math.abs(v)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:q}=await y.render(U,e);h(q),f(q)}catch(y){d||u||o(y instanceof Error?y.message:"Failed to render Mermaid chart")}finally{c(!1)}})()},[e,n,p]),l&&!u&&!d)return(0,D.jsx)("div",{className:$("my-4 flex justify-center p-4",t),children:(0,D.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,D.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),(0,D.jsx)("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!u&&!d)return I?(0,D.jsx)(I,{chart:e,error:a,retry:()=>E(y=>y+1)}):(0,D.jsxs)("div",{className:$("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[(0,D.jsxs)("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),(0,D.jsxs)("details",{className:"mt-2",children:[(0,D.jsx)("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),(0,D.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let b=u||d;return(0,D.jsx)(Dc,{className:$(r?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:(0,D.jsx)("div",{"aria-label":"Mermaid chart",className:$("flex justify-center",r&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:b},role:"img"})})}})();export{ak as __tla,$ as a,Fi as c,sr as d,Zt as f,Bi as i,lr as l,In as m,Hi as n,Ui as o,ft as p,Gi as r,cr as s,Pe as t,ur as u}; diff --git a/docs/assets/chunk-QN33PNHL-C0IBWhei.js b/docs/assets/chunk-QN33PNHL-C0IBWhei.js new file mode 100644 index 0000000..bac77df --- /dev/null +++ b/docs/assets/chunk-QN33PNHL-C0IBWhei.js @@ -0,0 +1 @@ +import{n as o,r as s}from"./src-faGJHwXX.js";import{c as w}from"./chunk-ABZYJK2D-DAD3GlgM.js";var x=o((t,i,e,a)=>{t.attr("class",e);let{width:h,height:r,x:n,y:g}=c(t,i);w(t,r,h,a);let d=l(n,g,h,r,i);t.attr("viewBox",d),s.debug(`viewBox configured: ${d} with padding: ${i}`)},"setupViewPortForSVG"),c=o((t,i)=>{var a;let e=((a=t.node())==null?void 0:a.getBBox())||{width:0,height:0,x:0,y:0};return{width:e.width+i*2,height:e.height+i*2,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),l=o((t,i,e,a,h)=>`${t-h} ${i-h} ${e} ${a}`,"createViewBox");export{x as t}; diff --git a/docs/assets/chunk-QXUST7PY-CIxWhn5L.js b/docs/assets/chunk-QXUST7PY-CIxWhn5L.js new file mode 100644 index 0000000..4381638 --- /dev/null +++ b/docs/assets/chunk-QXUST7PY-CIxWhn5L.js @@ -0,0 +1,7 @@ +import{u as G}from"./src-Bp_72rVO.js";import{_ as J,a as lt,i as dt,n as pt,o as ct,p as ht,r as ft,t as mt,u as yt,v as K}from"./step-D7xg1Moj.js";import{t as gt}from"./line-x4bpd_8D.js";import{g as S,v as kt,y as ut}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as f,r as m}from"./src-faGJHwXX.js";import{b as O,h as xt}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{n as R,r as v,t as bt}from"./chunk-HN2XXSSU-xW6J7MXn.js";import{t as wt}from"./chunk-CVBHYZKI-B6tT645I.js";import{i as Mt,n as Lt}from"./chunk-ATLVNIR6-DsKp3Ify.js";import{n as _t}from"./chunk-JA3XYJ7Z-BlmyoDCa.js";import{d as $t,r as A}from"./chunk-JZLCHNYA-DBaJpCky.js";var St=f((r,t,a,s,n,i)=>{t.arrowTypeStart&&tt(r,"start",t.arrowTypeStart,a,s,n,i),t.arrowTypeEnd&&tt(r,"end",t.arrowTypeEnd,a,s,n,i)},"addEdgeMarkers"),Ot={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},tt=f((r,t,a,s,n,i,e)=>{var l;let o=Ot[a];if(!o){m.warn(`Unknown arrow type: ${a}`);return}let h=`${n}_${i}-${o.type}${t==="start"?"Start":"End"}`;if(e&&e.trim()!==""){let d=`${h}_${e.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(d)){let p=document.getElementById(h);if(p){let c=p.cloneNode(!0);c.id=d,c.querySelectorAll("path, circle, line").forEach(x=>{x.setAttribute("stroke",e),o.fill&&x.setAttribute("fill",e)}),(l=p.parentNode)==null||l.appendChild(c)}}r.attr(`marker-${t}`,`url(${s}#${d})`)}else r.attr(`marker-${t}`,`url(${s}#${h})`)},"addEdgeMarker"),U=new Map,u=new Map,Et=f(()=>{U.clear(),u.clear()},"clear"),q=f(r=>r?r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Pt=f(async(r,t)=>{let a=xt(O().flowchart.htmlLabels),{labelStyles:s}=Mt(t);t.labelStyle=s;let n=await _t(r,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0,isNode:!1});m.info("abc82",t,t.labelType);let i=r.insert("g").attr("class","edgeLabel"),e=i.insert("g").attr("class","label").attr("data-id",t.id);e.node().appendChild(n);let o=n.getBBox();if(a){let l=n.children[0],d=G(n);o=l.getBoundingClientRect(),d.attr("width",o.width),d.attr("height",o.height)}e.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),U.set(t.id,i),t.width=o.width,t.height=o.height;let h;if(t.startLabelLeft){let l=await A(t.startLabelLeft,q(t.labelStyle)),d=r.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");h=p.node().appendChild(l);let c=l.getBBox();p.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),u.get(t.id)||u.set(t.id,{}),u.get(t.id).startLeft=d,T(h,t.startLabelLeft)}if(t.startLabelRight){let l=await A(t.startLabelRight,q(t.labelStyle)),d=r.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");h=d.node().appendChild(l),p.node().appendChild(l);let c=l.getBBox();p.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),u.get(t.id)||u.set(t.id,{}),u.get(t.id).startRight=d,T(h,t.startLabelRight)}if(t.endLabelLeft){let l=await A(t.endLabelLeft,q(t.labelStyle)),d=r.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");h=p.node().appendChild(l);let c=l.getBBox();p.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),d.node().appendChild(l),u.get(t.id)||u.set(t.id,{}),u.get(t.id).endLeft=d,T(h,t.endLabelLeft)}if(t.endLabelRight){let l=await A(t.endLabelRight,q(t.labelStyle)),d=r.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");h=p.node().appendChild(l);let c=l.getBBox();p.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),d.node().appendChild(l),u.get(t.id)||u.set(t.id,{}),u.get(t.id).endRight=d,T(h,t.endLabelRight)}return n},"insertEdgeLabel");function T(r,t){O().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}f(T,"setTerminalWidth");var Tt=f((r,t)=>{m.debug("Moving label abc88 ",r.id,r.label,U.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:s}=wt(O());if(r.label){let n=U.get(r.id),i=r.x,e=r.y;if(a){let o=S.calcLabelPosition(a);m.debug("Moving label "+r.label+" from (",i,",",e,") to (",o.x,",",o.y,") abc88"),t.updatedPath&&(i=o.x,e=o.y)}n.attr("transform",`translate(${i}, ${e+s/2})`)}if(r.startLabelLeft){let n=u.get(r.id).startLeft,i=r.x,e=r.y;if(a){let o=S.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);i=o.x,e=o.y}n.attr("transform",`translate(${i}, ${e})`)}if(r.startLabelRight){let n=u.get(r.id).startRight,i=r.x,e=r.y;if(a){let o=S.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);i=o.x,e=o.y}n.attr("transform",`translate(${i}, ${e})`)}if(r.endLabelLeft){let n=u.get(r.id).endLeft,i=r.x,e=r.y;if(a){let o=S.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);i=o.x,e=o.y}n.attr("transform",`translate(${i}, ${e})`)}if(r.endLabelRight){let n=u.get(r.id).endRight,i=r.x,e=r.y;if(a){let o=S.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);i=o.x,e=o.y}n.attr("transform",`translate(${i}, ${e})`)}},"positionEdgeLabel"),Xt=f((r,t)=>{let a=r.x,s=r.y,n=Math.abs(t.x-a),i=Math.abs(t.y-s),e=r.width/2,o=r.height/2;return n>=e||i>=o},"outsideNode"),Yt=f((r,t,a)=>{m.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(a)} + node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let s=r.x,n=r.y,i=Math.abs(s-a.x),e=r.width/2,o=a.xMath.abs(s-t.x)*h){let p=a.y{m.warn("abc88 cutPathAtIntersect",r,t);let a=[],s=r[0],n=!1;return r.forEach(i=>{if(m.info("abc88 checking point",i,t),!Xt(t,i)&&!n){let e=Yt(t,s,i);m.debug("abc88 inside",i,s,e),m.debug("abc88 intersection",e,t);let o=!1;a.forEach(h=>{o||(o=h.x===e.x&&h.y===e.y)}),a.some(h=>h.x===e.x&&h.y===e.y)?m.warn("abc88 no intersect",e,a):a.push(e),n=!0}else m.warn("abc88 outside",i,s),s=i,n||a.push(i)}),m.debug("returning points",a),a},"cutPathAtIntersect");function at(r){let t=[],a=[];for(let s=1;s5&&Math.abs(i.y-n.y)>5||n.y===i.y&&i.x===e.x&&Math.abs(i.x-n.x)>5&&Math.abs(i.y-e.y)>5)&&(t.push(i),a.push(s))}return{cornerPoints:t,cornerPointPositions:a}}f(at,"extractCornerPoints");var et=f(function(r,t,a){let s=t.x-r.x,n=t.y-r.y,i=a/Math.sqrt(s*s+n*n);return{x:t.x-i*s,y:t.y-i*n}},"findAdjacentPoint"),Wt=f(function(r){let{cornerPointPositions:t}=at(r),a=[];for(let s=0;s10&&Math.abs(i.y-n.y)>=10?(m.debug("Corner point fixing",Math.abs(i.x-n.x),Math.abs(i.y-n.y)),c=e.x===o.x?{x:l<0?o.x-5+p:o.x+5-p,y:d<0?o.y-p:o.y+p}:{x:l<0?o.x-p:o.x+p,y:d<0?o.y-5+p:o.y+5-p}):m.debug("Corner point skipping fixing",Math.abs(i.x-n.x),Math.abs(i.y-n.y)),a.push(c,h)}else a.push(r[s]);return a},"fixCorners"),Ht=f((r,t,a)=>{let s=r-t-a,n=Math.floor(s/4);return`0 ${t} ${Array(n).fill("2 2").join(" ")} ${a}`},"generateDashArray"),Ct=f(function(r,t,a,s,n,i,e,o=!1){var V;let{handDrawnSeed:h}=O(),l=t.points,d=!1,p=n;var c=i;let x=[];for(let k in t.cssCompiledStyles)Lt(k)||x.push(t.cssCompiledStyles[k]);m.debug("UIO intersect check",t.points,c.x,p.x),c.intersect&&p.intersect&&!o&&(l=l.slice(1,t.points.length-1),l.unshift(p.intersect(l[0])),m.debug("Last point UIO",t.start,"-->",t.end,l[l.length-1],c,c.intersect(l[l.length-1])),l.push(c.intersect(l[l.length-1])));let _=btoa(JSON.stringify(l));t.toCluster&&(m.info("to cluster abc88",a.get(t.toCluster)),l=rt(t.points,a.get(t.toCluster).node),d=!0),t.fromCluster&&(m.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=rt(l.reverse(),a.get(t.fromCluster).node).reverse(),d=!0);let w=l.filter(k=>!Number.isNaN(k.y));w=Wt(w);let y=J;switch(y=K,t.curve){case"linear":y=K;break;case"basis":y=J;break;case"cardinal":y=ht;break;case"bumpX":y=kt;break;case"bumpY":y=ut;break;case"catmullRom":y=yt;break;case"monotoneX":y=lt;break;case"monotoneY":y=ct;break;case"natural":y=dt;break;case"step":y=ft;break;case"stepAfter":y=mt;break;case"stepBefore":y=pt;break;default:y=J}let{x:X,y:Y}=bt(t),N=gt().x(X).y(Y).curve(y),b;switch(t.thickness){case"normal":b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-invisible";break;default:b="edge-thickness-normal"}switch(t.pattern){case"solid":b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed";break;default:b+=" edge-pattern-solid"}let g,L=t.curve==="rounded"?it(nt(w,t),5):N(w),M=Array.isArray(t.style)?t.style:[t.style],W=M.find(k=>k==null?void 0:k.startsWith("stroke:")),H=!1;if(t.look==="handDrawn"){let k=$t.svg(r);Object.assign([],w);let C=k.path(L,{roughness:.3,seed:h});b+=" transition",g=G(C).select("path").attr("id",t.id).attr("class"," "+b+(t.classes?" "+t.classes:"")).attr("style",M?M.reduce((B,z)=>B+";"+z,""):"");let E=g.attr("d");g.attr("d",E),r.node().appendChild(g.node())}else{let k=x.join(";"),C=M?M.reduce((P,j)=>P+j+";",""):"",E="";t.animate&&(E=" edge-animation-fast"),t.animation&&(E=" edge-animation-"+t.animation);let B=(k?k+";"+C+";":C)+";"+(M?M.reduce((P,j)=>P+";"+j,""):"");g=r.append("path").attr("d",L).attr("id",t.id).attr("class"," "+b+(t.classes?" "+t.classes:"")+(E??"")).attr("style",B),W=(V=B.match(/stroke:([^;]+)/))==null?void 0:V[1],H=t.animate===!0||!!t.animation||k.includes("animation");let z=g.node(),F=typeof z.getTotalLength=="function"?z.getTotalLength():0,Z=v[t.arrowTypeStart]||0,I=v[t.arrowTypeEnd]||0;if(t.look==="neo"&&!H){let P=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Ht(F,Z,I):`0 ${Z} ${F-Z-I} ${I}`}; stroke-dashoffset: 0;`;g.attr("style",P+g.attr("style"))}}g.attr("data-edge",!0),g.attr("data-et","edge"),g.attr("data-id",t.id),g.attr("data-points",_),t.showPoints&&w.forEach(k=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",k.x).attr("cy",k.y)});let $="";(O().flowchart.arrowMarkerAbsolute||O().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),m.info("arrowTypeStart",t.arrowTypeStart),m.info("arrowTypeEnd",t.arrowTypeEnd),St(g,t,$,e,s,W);let st=Math.floor(l.length/2),ot=l[st];S.isLabelCoordinateInPath(ot,g.attr("d"))||(d=!0);let Q={};return d&&(Q.updatedPath=l),Q.originalPath=t.points,Q},"insertEdge");function it(r,t){if(r.length<2)return"";let a="",s=r.length,n=1e-5;for(let i=0;i({...n}));if(r.length>=2&&R[t.arrowTypeStart]){let n=R[t.arrowTypeStart],i=r[0],e=r[1],{angle:o}=D(i,e),h=n*Math.cos(o),l=n*Math.sin(o);a[0].x=i.x+h,a[0].y=i.y+l}let s=r.length;if(s>=2&&R[t.arrowTypeEnd]){let n=R[t.arrowTypeEnd],i=r[s-1],e=r[s-2],{angle:o}=D(e,i),h=n*Math.cos(o),l=n*Math.sin(o);a[s-1].x=i.x-h,a[s-1].y=i.y-l}return a}f(nt,"applyMarkerOffsetsToPoints");var Bt=f((r,t,a,s)=>{t.forEach(n=>{zt[n](r,a,s)})},"insertMarkers"),zt={extension:f((r,t,a)=>{m.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),composition:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),point:f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),circle:f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),cross:f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),only_one:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),zero_or_one:f((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),one_or_more:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),zero_or_more:f((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),requirement_arrow:f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 + L20,10 + M20,10 + L0,20`)},"requirement_arrow"),requirement_contains:f((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")},Rt=Bt;export{Tt as a,Rt as i,Ct as n,Pt as r,Et as t}; diff --git a/docs/assets/chunk-QZHKN3VN-uHzoVf3q.js b/docs/assets/chunk-QZHKN3VN-uHzoVf3q.js new file mode 100644 index 0000000..446d2c9 --- /dev/null +++ b/docs/assets/chunk-QZHKN3VN-uHzoVf3q.js @@ -0,0 +1 @@ +var t;import{n as s}from"./src-faGJHwXX.js";var r=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{r as t}; diff --git a/docs/assets/chunk-S3R3BYOJ-By1A-M0T.js b/docs/assets/chunk-S3R3BYOJ-By1A-M0T.js new file mode 100644 index 0000000..b5f7042 --- /dev/null +++ b/docs/assets/chunk-S3R3BYOJ-By1A-M0T.js @@ -0,0 +1,2 @@ +var g;import{t as V}from"./merge-BBX6ug-N.js";import{t as $}from"./memoize-DN0TMY36.js";import{u as Z}from"./src-Bp_72rVO.js";import{_ as tt,a as et,c as rt,d as it,f as nt,g as at,h as ot,i as st,l as lt,m as ct,n as ht,o as ut,p as ft,r as dt,s as gt,t as xt,u as pt,v as yt}from"./step-D7xg1Moj.js";import{n as s,r as y}from"./src-faGJHwXX.js";import{F as mt,f as vt,m as v,r as A,s as M}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as _t}from"./dist-BA8xhrl2.js";var E=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function N(e){return new E(e,!0)}function P(e){return new E(e,!1)}var $t=_t(),Mt="\u200B",bt={curveBasis:tt,curveBasisClosed:at,curveBasisOpen:ot,curveBumpX:N,curveBumpY:P,curveBundle:ct,curveCardinalClosed:nt,curveCardinalOpen:it,curveCardinal:ft,curveCatmullRomClosed:lt,curveCatmullRomOpen:rt,curveCatmullRom:pt,curveLinear:yt,curveLinearClosed:gt,curveMonotoneX:et,curveMonotoneY:ut,curveNatural:st,curveStep:dt,curveStepAfter:xt,curveStepBefore:ht},wt=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,St=s(function(e,t){let r=D(e,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let o=r.map(l=>l.args);mt(o),i=A(i,[...o])}else i=r.args;if(!i)return;let a=vt(e,t),n="config";return i[n]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),i[a]=i[n],delete i[n]),i},"detectInit"),D=s(function(e,t=null){var r,i;try{let a=RegExp(`[%]{2}(?![{]${wt.source})(?=[}][%]{2}).* +`,"ig");e=e.trim().replace(a,"").replace(/'/gm,'"'),y.debug(`Detecting diagram directive${t===null?"":" type:"+t} based on the text:${e}`);let n,o=[];for(;(n=v.exec(e))!==null;)if(n.index===v.lastIndex&&v.lastIndex++,n&&!t||t&&((r=n[1])==null?void 0:r.match(t))||t&&((i=n[2])==null?void 0:i.match(t))){let l=n[1]?n[1]:n[2],c=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;o.push({type:l,args:c})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(a){return y.error(`ERROR: ${a.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Ct=s(function(e){return e.replace(v,"")},"removeDirectives"),It=s(function(e,t){for(let[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function b(e,t){return e?bt[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}s(b,"interpolateToCurve");function H(e,t){let r=e.trim();if(r)return t.securityLevel==="loose"?r:(0,$t.sanitizeUrl)(r)}s(H,"formatUrl");var Tt=s((e,...t)=>{let r=e.split("."),i=r.length-1,a=r[i],n=window;for(let o=0;o{r+=w(i,t),t=i}),S(e,r/2)}s(L,"traverseEdge");function R(e){return e.length===1?e[0]:L(e)}s(R,"calcLabelPosition");var O=s((e,t=2)=>{let r=10**t;return Math.round(e*r)/r},"roundNumber"),S=s((e,t)=>{let r,i=t;for(let a of e){if(r){let n=w(a,r);if(n===0)return r;if(n=1)return{x:a.x,y:a.y};if(o>0&&o<1)return{x:O((1-o)*r.x+o*a.x,5),y:O((1-o)*r.y+o*a.y,5)}}}r=a}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),Bt=s((e,t,r)=>{y.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=S(t,25),a=e?10:5,n=Math.atan2(t[0].y-i.y,t[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(n)*a+(t[0].x+i.x)/2,o.y=-Math.cos(n)*a+(t[0].y+i.y)/2,o},"calcCardinalityPosition");function j(e,t,r){let i=structuredClone(r);y.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();let a=S(i,25+e),n=10+e*.5,o=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(o+Math.PI)*n+(i[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*n+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(o-Math.PI)*n+(i[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*n+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(o)*n+(i[0].x+a.x)/2-5,l.y=-Math.cos(o)*n+(i[0].y+a.y)/2-5):(l.x=Math.sin(o)*n+(i[0].x+a.x)/2,l.y=-Math.cos(o)*n+(i[0].y+a.y)/2),l}s(j,"calcTerminalLabelPosition");function C(e){let t="",r="";for(let i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}s(C,"getStylesFromArray");var k=0,U=s(()=>(k++,"id-"+Math.random().toString(36).substr(2,12)+"-"+k),"generateId");function G(e){let t="";for(let r=0;rG(e.length),"random"),Wt=s(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Ft=s(function(e,t){let r=t.text.replace(M.lineBreakRegex," "),[,i]=_(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",i),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),t.class!==void 0&&a.attr("class",t.class);let n=a.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.attr("fill",t.fill),n.text(r),a},"drawSimpleText"),X=$((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),M.lineBreakRegex.test(e)))return e;let i=e.split(" ").filter(Boolean),a=[],n="";return i.forEach((o,l)=>{let c=d(`${o} `,r),h=d(n,r);if(c>t){let{hyphenatedStrings:u,remainingWord:x}=zt(o,t,"-",r);a.push(n,...u),n=x}else h+c>=t?(a.push(n),n=o):n=[n,o].filter(Boolean).join(" ");l+1===i.length&&a.push(n)}),a.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),zt=$((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let a=[...e],n=[],o="";return a.forEach((l,c)=>{let h=`${o}${l}`;if(d(h,i)>=t){let u=c+1,x=a.length===u,p=`${h}${r}`;n.push(x?h:p),o=""}else o=h}),{hyphenatedStrings:n,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function I(e,t){return T(e,t).height}s(I,"calculateTextHeight");function d(e,t){return T(e,t).width}s(d,"calculateTextWidth");var T=$((e,t)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};let[,n]=_(r),o=["sans-serif",i],l=e.split(M.lineBreakRegex),c=[],h=Z("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let u=h.append("svg");for(let x of o){let p=0,f={width:0,height:0,lineHeight:0};for(let Q of l){let F=Wt();F.text=Q||"\u200B";let z=Ft(u,F).style("font-size",n).style("font-weight",a).style("font-family",x),m=(z._groups||z)[0][0].getBBox();if(m.width===0&&m.height===0)throw Error("svg element not in render tree");f.width=Math.round(Math.max(f.width,m.width)),p=Math.round(m.height),f.height+=p,f.lineHeight=Math.round(Math.max(f.lineHeight,p))}c.push(f)}return u.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),At=(g=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},s(g,"InitIDGenerator"),g),B,Et=s(function(e){return B||(B=document.createElement("div")),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),B.innerHTML=e,unescape(B.textContent)},"entityDecode");function Y(e){return"str"in e}s(Y,"isDetailedError");var Nt=s((e,t,r,i)=>{var n;if(!i)return;let a=(n=e.node())==null?void 0:n.getBBox();a&&e.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",t)},"insertTitle"),_=s(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function W(e,t){return V({},e,t)}s(W,"cleanAndMerge");var Pt={assignWithDepth:A,wrapLabel:X,calculateTextHeight:I,calculateTextWidth:d,calculateTextDimensions:T,cleanAndMerge:W,detectInit:St,detectDirective:D,isSubstringInArray:It,interpolateToCurve:b,calcLabelPosition:R,calcCardinalityPosition:Bt,calcTerminalLabelPosition:j,formatUrl:H,getStylesFromArray:C,generateId:U,random:J,runFunc:Tt,entityDecode:Et,insertTitle:Nt,isLabelCoordinateInPath:K,parseFontSize:_,InitIDGenerator:At},Dt=s(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),t},"encodeEntities"),Ht=s(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Lt=s((e,t,{counter:r=0,prefix:i,suffix:a},n)=>n||`${i?`${i}_`:""}${e}_${t}_${r}${a?`_${a}`:""}`,"getEdgeId");function q(e){return e??null}s(q,"handleUndefinedAttr");function K(e,t){let r=Math.round(e.x),i=Math.round(e.y),a=t.replace(/(\d+\.\d+)/g,n=>Math.round(parseFloat(n)).toString());return a.includes(r.toString())||a.includes(i.toString())}s(K,"isLabelCoordinateInPath");export{X as _,Ht as a,Lt as c,b as d,Y as f,Pt as g,Ct as h,W as i,C as l,J as m,I as n,Dt as o,_ as p,d as r,U as s,Mt as t,q as u,N as v,P as y}; diff --git a/docs/assets/chunk-S6J4BHB3-D3MBXPxT.js b/docs/assets/chunk-S6J4BHB3-D3MBXPxT.js new file mode 100644 index 0000000..f010257 --- /dev/null +++ b/docs/assets/chunk-S6J4BHB3-D3MBXPxT.js @@ -0,0 +1 @@ +var e;import{a as c,f as r,g as u,h as p,i as h,m as t,p as l,s as d,t as G}from"./chunk-FPAJGGOC-C0XAW5Os.js";var v=(e=class extends G{constructor(){super(["gitGraph"])}},r(e,"GitGraphTokenBuilder"),e),i={parser:{TokenBuilder:r(()=>new v,"TokenBuilder"),ValueConverter:r(()=>new h,"ValueConverter")}};function n(o=l){let a=t(u(o),d),s=t(p({shared:a}),c,i);return a.ServiceRegistry.register(s),{shared:a,GitGraph:s}}r(n,"createGitGraphServices");export{n,i as t}; diff --git a/docs/assets/chunk-T53DSG4Q-B6Z3zF7Z.js b/docs/assets/chunk-T53DSG4Q-B6Z3zF7Z.js new file mode 100644 index 0000000..ef8898b --- /dev/null +++ b/docs/assets/chunk-T53DSG4Q-B6Z3zF7Z.js @@ -0,0 +1 @@ +var e,r;import{f as t,g as c,h as l,l as d,m as n,n as p,p as v,s as h,t as m}from"./chunk-FPAJGGOC-C0XAW5Os.js";var C=(e=class extends m{constructor(){super(["pie","showData"])}},t(e,"PieTokenBuilder"),e),f=(r=class extends p{runCustomConverter(s,a,P){if(s.name==="PIE_SECTION_LABEL")return a.replace(/"/g,"").trim()}},t(r,"PieValueConverter"),r),i={parser:{TokenBuilder:t(()=>new C,"TokenBuilder"),ValueConverter:t(()=>new f,"ValueConverter")}};function o(u=v){let s=n(c(u),h),a=n(l({shared:s}),d,i);return s.ServiceRegistry.register(a),{shared:s,Pie:a}}t(o,"createPieServices");export{o as n,i as t}; diff --git a/docs/assets/chunk-TZMSLE5B-BiNEgT46.js b/docs/assets/chunk-TZMSLE5B-BiNEgT46.js new file mode 100644 index 0000000..7f0d2a2 --- /dev/null +++ b/docs/assets/chunk-TZMSLE5B-BiNEgT46.js @@ -0,0 +1 @@ +import{n as l}from"./src-faGJHwXX.js";import{k as n}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as d}from"./dist-BA8xhrl2.js";var x=d(),o=l((s,t)=>{let a=s.append("rect");if(a.attr("x",t.x),a.attr("y",t.y),a.attr("fill",t.fill),a.attr("stroke",t.stroke),a.attr("width",t.width),a.attr("height",t.height),t.name&&a.attr("name",t.name),t.rx&&a.attr("rx",t.rx),t.ry&&a.attr("ry",t.ry),t.attrs!==void 0)for(let r in t.attrs)a.attr(r,t.attrs[r]);return t.class&&a.attr("class",t.class),a},"drawRect"),h=l((s,t)=>{o(s,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},"drawBackgroundRect"),c=l((s,t)=>{let a=t.text.replace(n," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);let e=r.append("tspan");return e.attr("x",t.x+t.textMargin*2),e.text(a),r},"drawText"),p=l((s,t,a,r)=>{let e=s.append("image");e.attr("x",t),e.attr("y",a);let i=(0,x.sanitizeUrl)(r);e.attr("xlink:href",i)},"drawImage"),y=l((s,t,a,r)=>{let e=s.append("use");e.attr("x",t),e.attr("y",a);let i=(0,x.sanitizeUrl)(r);e.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),g=l(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),m=l(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{c as a,o as i,y as n,g as o,p as r,m as s,h as t}; diff --git a/docs/assets/chunk-XAJISQIX-DnhQWiv2.js b/docs/assets/chunk-XAJISQIX-DnhQWiv2.js new file mode 100644 index 0000000..1a356c9 --- /dev/null +++ b/docs/assets/chunk-XAJISQIX-DnhQWiv2.js @@ -0,0 +1 @@ +var s={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}};export{s as t}; diff --git a/docs/assets/circle-check-Cr0N4h9T.js b/docs/assets/circle-check-Cr0N4h9T.js new file mode 100644 index 0000000..23a846b --- /dev/null +++ b/docs/assets/circle-check-Cr0N4h9T.js @@ -0,0 +1 @@ +import{t as c}from"./createLucideIcon-CW2xpJ57.js";var e=c("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);export{e as t}; diff --git a/docs/assets/circle-check-big-OIMTUpe6.js b/docs/assets/circle-check-big-OIMTUpe6.js new file mode 100644 index 0000000..1343f2a --- /dev/null +++ b/docs/assets/circle-check-big-OIMTUpe6.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var e=t("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);export{e as t}; diff --git a/docs/assets/circle-play-r3MHdB-P.js b/docs/assets/circle-play-r3MHdB-P.js new file mode 100644 index 0000000..2483549 --- /dev/null +++ b/docs/assets/circle-play-r3MHdB-P.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var r=a("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);export{r as t}; diff --git a/docs/assets/circle-plus-D1IRnTdM.js b/docs/assets/circle-plus-D1IRnTdM.js new file mode 100644 index 0000000..cc73ab3 --- /dev/null +++ b/docs/assets/circle-plus-D1IRnTdM.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CW2xpJ57.js";var c=e("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);export{c as t}; diff --git a/docs/assets/cjs-Bj40p_Np.js b/docs/assets/cjs-Bj40p_Np.js new file mode 100644 index 0000000..ee4a710 --- /dev/null +++ b/docs/assets/cjs-Bj40p_Np.js @@ -0,0 +1,2 @@ +import{t as A}from"./chunk-LvLJmgfZ.js";var L=A(((u,m)=>{var l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,h=/\n/g,o=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f=/^:\s*/,p=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,n=/^\s+|\s+$/g,i=` +`,g="/",C="*",d="",j="comment",k="declaration";function P(e,y){if(typeof e!="string")throw TypeError("First argument must be a string");if(!e)return[];y||(y={});var _=1,v=1;function b(t){var r=t.match(h);r&&(_+=r.length);var c=t.lastIndexOf(i);v=~c?t.length-c:v+t.length}function E(){var t={line:_,column:v};return function(r){return r.position=new z(t),$(),r}}function z(t){this.start=t,this.end={line:_,column:v},this.source=y.source}z.prototype.content=e;function M(t){var r=Error(y.source+":"+_+":"+v+": "+t);if(r.reason=t,r.filename=y.source,r.line=_,r.column=v,r.source=e,!y.silent)throw r}function w(t){var r=t.exec(e);if(r){var c=r[0];return b(c),e=e.slice(c.length),r}}function $(){w(o)}function D(t){var r;for(t||(t=[]);r=O();)r!==!1&&t.push(r);return t}function O(){var t=E();if(!(g!=e.charAt(0)||C!=e.charAt(1))){for(var r=2;d!=e.charAt(r)&&(C!=e.charAt(r)||g!=e.charAt(r+1));)++r;if(r+=2,d===e.charAt(r-1))return M("End of comment missing");var c=e.slice(2,r-2);return v+=2,b(c),e=e.slice(r),v+=2,t({type:j,comment:c})}}function T(){var t=E(),r=w(a);if(r){if(O(),!w(f))return M("property missing ':'");var c=w(p),I=t({type:k,property:x(r[0].replace(l,d)),value:c?x(c[0].replace(l,d)):d});return w(s),I}}function F(){var t=[];D(t);for(var r;r=T();)r!==!1&&(t.push(r),D(t));return t}return $(),F()}function x(e){return e?e.replace(n,d):d}m.exports=P})),S=A((u=>{var m=u&&u.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(u,"__esModule",{value:!0}),u.default=h;var l=m(L());function h(o,a){let f=null;if(!o||typeof o!="string")return f;let p=(0,l.default)(o),s=typeof a=="function";return p.forEach(n=>{if(n.type!=="declaration")return;let{property:i,value:g}=n;s?a(i,g,n):g&&(f||(f={}),f[i]=g)}),f}})),U=A((u=>{Object.defineProperty(u,"__esModule",{value:!0}),u.camelCase=void 0;var m=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,h=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,f=function(n){return!n||h.test(n)||m.test(n)},p=function(n,i){return i.toUpperCase()},s=function(n,i){return`${i}-`};u.camelCase=function(n,i){return i===void 0&&(i={}),f(n)?n:(n=n.toLowerCase(),n=i.reactCompat?n.replace(a,s):n.replace(o,s),n.replace(l,p))}})),Z=A(((u,m)=>{var l=(u&&u.__importDefault||function(a){return a&&a.__esModule?a:{default:a}})(S()),h=U();function o(a,f){var p={};return!a||typeof a!="string"||(0,l.default)(a,function(s,n){s&&n&&(p[(0,h.camelCase)(s,f)]=n)}),p}o.default=o,m.exports=o}));export{Z as t}; diff --git a/docs/assets/clarity-AzJiZfWO.js b/docs/assets/clarity-AzJiZfWO.js new file mode 100644 index 0000000..7242fff --- /dev/null +++ b/docs/assets/clarity-AzJiZfWO.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Clarity","name":"clarity","patterns":[{"include":"#expression"},{"include":"#define-constant"},{"include":"#define-data-var"},{"include":"#define-map"},{"include":"#define-function"},{"include":"#define-fungible-token"},{"include":"#define-non-fungible-token"},{"include":"#define-trait"},{"include":"#use-trait"}],"repository":{"built-in-func":{"begin":"(\\\\()\\\\s*([-+]|<=|>=|[*/<>]|and|append|as-contract|as-max-len\\\\?|asserts!|at-block|begin|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|buff-to-int-be|buff-to-int-le|buff-to-uint-be|buff-to-uint-le|concat|contract-call\\\\?|contract-of|default-to|element-at\\\\???|filter|fold|from-consensus-buff\\\\?|ft-burn\\\\?|ft-get-balance|ft-get-supply|ft-mint\\\\?|ft-transfer\\\\?|get-block-info\\\\?|get-burn-block-info\\\\?|get-stacks-block-info\\\\?|get-tenure-info\\\\?|get-burn-block-info\\\\?|hash160|if|impl-trait|index-of\\\\???|int-to-ascii|int-to-utf8|is-eq|is-err|is-none|is-ok|is-some|is-standard|keccak256|len|log2|map|match|merge|mod|nft-burn\\\\?|nft-get-owner\\\\?|nft-mint\\\\?|nft-transfer\\\\?|not|or|pow|principal-construct\\\\?|principal-destruct\\\\?|principal-of\\\\?|print|replace-at\\\\?|secp256k1-recover\\\\?|secp256k1-verify|sha256|sha512|sha512/256|slice\\\\?|sqrti|string-to-int\\\\?|string-to-uint\\\\?|stx-account|stx-burn\\\\?|stx-get-balance|stx-transfer-memo\\\\?|stx-transfer\\\\?|to-consensus-buff\\\\?|to-int|to-uint|try!|unwrap!|unwrap-err!|unwrap-err-panic|unwrap-panic|xor)\\\\s+","beginCaptures":{"1":{"name":"punctuation.built-in-function.start.clarity"},"2":{"name":"keyword.declaration.built-in-function.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.built-in-function.end.clarity"}},"name":"meta.built-in-function","patterns":[{"include":"#expression"},{"include":"#user-func"}]},"comment":{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(;).*$","name":"comment.line.semicolon.clarity"},"data-type":{"patterns":[{"include":"#comment"},{"match":"\\\\b(u?int)\\\\b","name":"entity.name.type.numeric.clarity"},{"match":"\\\\b(principal)\\\\b","name":"entity.name.type.principal.clarity"},{"match":"\\\\b(bool)\\\\b","name":"entity.name.type.bool.clarity"},{"captures":{"1":{"name":"punctuation.string_type-def.start.clarity"},"2":{"name":"entity.name.type.string_type.clarity"},"3":{"name":"constant.numeric.string_type-len.clarity"},"4":{"name":"punctuation.string_type-def.end.clarity"}},"match":"(\\\\()\\\\s*(string-(?:ascii|utf8))\\\\s+(\\\\d+)\\\\s*(\\\\))"},{"captures":{"1":{"name":"punctuation.buff-def.start.clarity"},"2":{"name":"entity.name.type.buff.clarity"},"3":{"name":"constant.numeric.buf-len.clarity"},"4":{"name":"punctuation.buff-def.end.clarity"}},"match":"(\\\\()\\\\s*(buff)\\\\s+(\\\\d+)\\\\s*(\\\\))"},{"begin":"(\\\\()\\\\s*(optional)\\\\s+","beginCaptures":{"1":{"name":"punctuation.optional-def.start.clarity"},"2":{"name":"storage.type.modifier"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.optional-def.end.clarity"}},"name":"meta.optional-def","patterns":[{"include":"#data-type"}]},{"begin":"(\\\\()\\\\s*(response)\\\\s+","beginCaptures":{"1":{"name":"punctuation.response-def.start.clarity"},"2":{"name":"storage.type.modifier"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.response-def.end.clarity"}},"name":"meta.response-def","patterns":[{"include":"#data-type"}]},{"begin":"(\\\\()\\\\s*(list)\\\\s+(\\\\d+)\\\\s+","beginCaptures":{"1":{"name":"punctuation.list-def.start.clarity"},"2":{"name":"entity.name.type.list.clarity"},"3":{"name":"constant.numeric.list-len.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.list-def.end.clarity"}},"name":"meta.list-def","patterns":[{"include":"#data-type"}]},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.tuple-def.start.clarity"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.tuple-def.end.clarity"}},"name":"meta.tuple-def","patterns":[{"match":"([A-Za-z][-!?\\\\w]*)(?=:)","name":"entity.name.tag.tuple-data-type-key.clarity"},{"include":"#data-type"}]}]},"define-constant":{"begin":"(\\\\()\\\\s*(define-constant)\\\\s+([A-Za-z][-!?\\\\w]*)\\\\s+","beginCaptures":{"1":{"name":"punctuation.define-constant.start.clarity"},"2":{"name":"keyword.declaration.define-constant.clarity"},"3":{"name":"entity.name.constant-name.clarity variable.other.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.define-constant.end.clarity"}},"name":"meta.define-constant","patterns":[{"include":"#expression"}]},"define-data-var":{"begin":"(\\\\()\\\\s*(define-data-var)\\\\s+([A-Za-z][-!?\\\\w]*)\\\\s+","beginCaptures":{"1":{"name":"punctuation.define-data-var.start.clarity"},"2":{"name":"keyword.declaration.define-data-var.clarity"},"3":{"name":"entity.name.data-var-name.clarity variable.other.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.define-data-var.end.clarity"}},"name":"meta.define-data-var","patterns":[{"include":"#data-type"},{"include":"#expression"}]},"define-function":{"begin":"(\\\\()\\\\s*(define-(?:public|private|read-only))\\\\s+","beginCaptures":{"1":{"name":"punctuation.define-function.start.clarity"},"2":{"name":"keyword.declaration.define-function.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.define-function.end.clarity"}},"name":"meta.define-function","patterns":[{"include":"#expression"},{"begin":"(\\\\()\\\\s*([A-Za-z][-!?\\\\w]*)\\\\s*","beginCaptures":{"1":{"name":"punctuation.function-signature.start.clarity"},"2":{"name":"entity.name.function.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.function-signature.end.clarity"}},"name":"meta.define-function-signature","patterns":[{"begin":"(\\\\()\\\\s*([A-Za-z][-!?\\\\w]*)\\\\s+","beginCaptures":{"1":{"name":"punctuation.function-argument.start.clarity"},"2":{"name":"variable.parameter.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.function-argument.end.clarity"}},"name":"meta.function-argument","patterns":[{"include":"#data-type"}]}]},{"include":"#user-func"}]},"define-fungible-token":{"captures":{"1":{"name":"punctuation.define-fungible-token.start.clarity"},"2":{"name":"keyword.declaration.define-fungible-token.clarity"},"3":{"name":"entity.name.fungible-token-name.clarity variable.other.clarity"},"4":{"name":"constant.numeric.fungible-token-total-supply.clarity"},"5":{"name":"punctuation.define-fungible-token.end.clarity"}},"match":"(\\\\()\\\\s*(define-fungible-token)\\\\s+([A-Za-z][-!?\\\\w]*)(?:\\\\s+(u\\\\d+))?"},"define-map":{"begin":"(\\\\()\\\\s*(define-map)\\\\s+([A-Za-z][-!?\\\\w]*)\\\\s+","beginCaptures":{"1":{"name":"punctuation.define-map.start.clarity"},"2":{"name":"keyword.declaration.define-map.clarity"},"3":{"name":"entity.name.map-name.clarity variable.other.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.define-map.end.clarity"}},"name":"meta.define-map","patterns":[{"include":"#data-type"},{"include":"#expression"}]},"define-non-fungible-token":{"begin":"(\\\\()\\\\s*(define-non-fungible-token)\\\\s+([A-Za-z][-!?\\\\w]*)\\\\s+","beginCaptures":{"1":{"name":"punctuation.define-non-fungible-token.start.clarity"},"2":{"name":"keyword.declaration.define-non-fungible-token.clarity"},"3":{"name":"entity.name.non-fungible-token-name.clarity variable.other.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.define-non-fungible-token.end.clarity"}},"name":"meta.define-non-fungible-token","patterns":[{"include":"#data-type"}]},"define-trait":{"begin":"(\\\\()\\\\s*(define-trait)\\\\s+([A-Za-z][-!?\\\\w]*)\\\\s+","beginCaptures":{"1":{"name":"punctuation.define-trait.start.clarity"},"2":{"name":"keyword.declaration.define-trait.clarity"},"3":{"name":"entity.name.trait-name.clarity variable.other.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.define-trait.end.clarity"}},"name":"meta.define-trait","patterns":[{"begin":"(\\\\()\\\\s*","beginCaptures":{"1":{"name":"punctuation.define-trait-body.start.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.define-trait-body.end.clarity"}},"name":"meta.define-trait-body","patterns":[{"include":"#expression"},{"begin":"(\\\\()\\\\s*([A-Za-z][-!?\\\\w]*)\\\\s+","beginCaptures":{"1":{"name":"punctuation.trait-function.start.clarity"},"2":{"name":"entity.name.function.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.trait-function.end.clarity"}},"name":"meta.trait-function","patterns":[{"include":"#data-type"},{"begin":"(\\\\()\\\\s*","beginCaptures":{"1":{"name":"punctuation.trait-function-args.start.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.trait-function-args.end.clarity"}},"name":"meta.trait-function-args","patterns":[{"include":"#data-type"}]}]}]}]},"expression":{"patterns":[{"include":"#comment"},{"include":"#keyword"},{"include":"#literal"},{"include":"#let-func"},{"include":"#built-in-func"},{"include":"#get-set-func"}]},"get-set-func":{"begin":"(\\\\()\\\\s*(var-get|var-set|map-get\\\\?|map-set|map-insert|map-delete|get)\\\\s+([A-Za-z][-!?\\\\w]*)\\\\s*","beginCaptures":{"1":{"name":"punctuation.get-set-func.start.clarity"},"2":{"name":"keyword.control.clarity"},"3":{"name":"variable.other.clarity"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.get-set-func.end.clarity"}},"name":"meta.get-set-func","patterns":[{"include":"#expression"}]},"keyword":{"match":"(?{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{a as diagram}; diff --git a/docs/assets/classDiagram-v2-WZHVMYZB-x3SAPA1o.js b/docs/assets/classDiagram-v2-WZHVMYZB-x3SAPA1o.js new file mode 100644 index 0000000..c116ca5 --- /dev/null +++ b/docs/assets/classDiagram-v2-WZHVMYZB-x3SAPA1o.js @@ -0,0 +1 @@ +import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as t}from"./src-faGJHwXX.js";import"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import"./chunk-N4CR4FBY-DtYoI569.js";import"./chunk-FMBD7UC4-DYXO3edG.js";import"./chunk-55IACEB6-DvJ_-Ku-.js";import"./chunk-QN33PNHL-C0IBWhei.js";import{i,n as o,r as m,t as p}from"./chunk-B4BG7PRW-Cv1rtZu-.js";var a={parser:o,get db(){return new p},renderer:m,styles:i,init:t(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{a as diagram}; diff --git a/docs/assets/clear-button-B9htnn2a.js b/docs/assets/clear-button-B9htnn2a.js new file mode 100644 index 0000000..fc132f4 --- /dev/null +++ b/docs/assets/clear-button-B9htnn2a.js @@ -0,0 +1 @@ +import{s as n}from"./chunk-LvLJmgfZ.js";import{t as c}from"./compiler-runtime-DeeZ7FnK.js";import{t as e}from"./jsx-runtime-DN_bIXfG.js";import{t as l}from"./cn-C1rgT0yh.js";var m=c(),i=n(e(),1);const d=a=>{let t=(0,m.c)(6),r=a.dataTestId,o;t[0]===a.className?o=t[1]:(o=l("text-xs font-semibold text-accent-foreground",a.className),t[0]=a.className,t[1]=o);let s;return t[2]!==a.dataTestId||t[3]!==a.onClick||t[4]!==o?(s=(0,i.jsx)("button",{type:"button","data-testid":r,className:o,onClick:a.onClick,children:"Clear"}),t[2]=a.dataTestId,t[3]=a.onClick,t[4]=o,t[5]=s):s=t[5],s};export{d as t}; diff --git a/docs/assets/click-outside-container-D4TDQXpY.js b/docs/assets/click-outside-container-D4TDQXpY.js new file mode 100644 index 0000000..6ad8887 --- /dev/null +++ b/docs/assets/click-outside-container-D4TDQXpY.js @@ -0,0 +1 @@ +var se=Object.defineProperty;var le=(e,t,r)=>t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var y=(e,t,r)=>le(e,typeof t!="symbol"?t+"":t,r);var h;import{s as A,t as l}from"./chunk-LvLJmgfZ.js";import{t as ue}from"./react-BGmjiNul.js";function D(e="This should not happen"){throw Error(e)}function de(e,t="Assertion failed"){if(!e)return D(t)}function L(e,t){return D(t??"Hell froze over")}function ce(e,t){try{return e()}catch{return t}}var M=Object.prototype.hasOwnProperty;function B(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&B(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){for(r in n=0,e)if(M.call(e,r)&&++n&&!M.call(t,r)||!(r in t)||!B(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}var pe=l(((e,t)=>{var r=Object.prototype.hasOwnProperty;function n(o,i){return o!=null&&r.call(o,i)}t.exports=n})),x=l(((e,t)=>{t.exports=Array.isArray})),N=l(((e,t)=>{t.exports=typeof global=="object"&&global&&global.Object===Object&&global})),F=l(((e,t)=>{var r=N(),n=typeof self=="object"&&self&&self.Object===Object&&self;t.exports=r||n||Function("return this")()})),_=l(((e,t)=>{t.exports=F().Symbol})),fe=l(((e,t)=>{var r=_(),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,a=r?r.toStringTag:void 0;function s(d){var u=o.call(d,a),c=d[a];try{d[a]=void 0;var p=!0}catch{}var b=i.call(d);return p&&(u?d[a]=c:delete d[a]),b}t.exports=s})),he=l(((e,t)=>{var r=Object.prototype.toString;function n(o){return r.call(o)}t.exports=n})),w=l(((e,t)=>{var r=_(),n=fe(),o=he(),i="[object Null]",a="[object Undefined]",s=r?r.toStringTag:void 0;function d(u){return u==null?u===void 0?a:i:s&&s in Object(u)?n(u):o(u)}t.exports=d})),k=l(((e,t)=>{function r(n){return typeof n=="object"&&!!n}t.exports=r})),S=l(((e,t)=>{var r=w(),n=k(),o="[object Symbol]";function i(a){return typeof a=="symbol"||n(a)&&r(a)==o}t.exports=i})),U=l(((e,t)=>{var r=x(),n=S(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function a(s,d){if(r(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||n(s)?!0:i.test(s)||!o.test(s)||d!=null&&s in Object(d)}t.exports=a})),z=l(((e,t)=>{function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}t.exports=r})),V=l(((e,t)=>{var r=w(),n=z(),o="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function d(u){if(!n(u))return!1;var c=r(u);return c==i||c==a||c==o||c==s}t.exports=d})),ge=l(((e,t)=>{t.exports=F()["__core-js_shared__"]})),ve=l(((e,t)=>{var r=ge(),n=(function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function o(i){return!!n&&n in i}t.exports=o})),G=l(((e,t)=>{var r=Function.prototype.toString;function n(o){if(o!=null){try{return r.call(o)}catch{}try{return o+""}catch{}}return""}t.exports=n})),be=l(((e,t)=>{var r=V(),n=ve(),o=z(),i=G(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,c=d.toString,p=u.hasOwnProperty,b=RegExp("^"+c.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(v){return!o(v)||n(v)?!1:(r(v)?b:s).test(i(v))}t.exports=g})),me=l(((e,t)=>{function r(n,o){return n==null?void 0:n[o]}t.exports=r})),R=l(((e,t)=>{var r=be(),n=me();function o(i,a){var s=n(i,a);return r(s)?s:void 0}t.exports=o})),H=l(((e,t)=>{t.exports=R()(Object,"create")})),ye=l(((e,t)=>{var r=H();function n(){this.__data__=r?r(null):{},this.size=0}t.exports=n})),xe=l(((e,t)=>{function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}t.exports=r})),Fe=l(((e,t)=>{var r=H(),n="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;function i(a){var s=this.__data__;if(r){var d=s[a];return d===n?void 0:d}return o.call(s,a)?s[a]:void 0}t.exports=i})),_e=l(((e,t)=>{var r=H(),n=Object.prototype.hasOwnProperty;function o(i){var a=this.__data__;return r?a[i]!==void 0:n.call(a,i)}t.exports=o})),we=l(((e,t)=>{var r=H(),n="__lodash_hash_undefined__";function o(i,a){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&a===void 0?n:a,this}t.exports=o})),ke=l(((e,t)=>{var r=ye(),n=xe(),o=Fe(),i=_e(),a=we();function s(d){var u=-1,c=d==null?0:d.length;for(this.clear();++u{function r(){this.__data__=[],this.size=0}t.exports=r})),J=l(((e,t)=>{function r(n,o){return n===o||n!==n&&o!==o}t.exports=r})),O=l(((e,t)=>{var r=J();function n(o,i){for(var a=o.length;a--;)if(r(o[a][0],i))return a;return-1}t.exports=n})),He=l(((e,t)=>{var r=O(),n=Array.prototype.splice;function o(i){var a=this.__data__,s=r(a,i);return s<0?!1:(s==a.length-1?a.pop():n.call(a,s,1),--this.size,!0)}t.exports=o})),Oe=l(((e,t)=>{var r=O();function n(o){var i=this.__data__,a=r(i,o);return a<0?void 0:i[a][1]}t.exports=n})),Ce=l(((e,t)=>{var r=O();function n(o){return r(this.__data__,o)>-1}t.exports=n})),je=l(((e,t)=>{var r=O();function n(o,i){var a=this.__data__,s=r(a,o);return s<0?(++this.size,a.push([o,i])):a[s][1]=i,this}t.exports=n})),q=l(((e,t)=>{var r=Se(),n=He(),o=Oe(),i=Ce(),a=je();function s(d){var u=-1,c=d==null?0:d.length;for(this.clear();++u{t.exports=R()(F(),"Map")})),Ee=l(((e,t)=>{var r=ke(),n=q(),o=W();function i(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}t.exports=i})),$e=l(((e,t)=>{function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}t.exports=r})),C=l(((e,t)=>{var r=$e();function n(o,i){var a=o.__data__;return r(i)?a[typeof i=="string"?"string":"hash"]:a.map}t.exports=n})),Be=l(((e,t)=>{var r=C();function n(o){var i=r(this,o).delete(o);return this.size-=i?1:0,i}t.exports=n})),ze=l(((e,t)=>{var r=C();function n(o){return r(this,o).get(o)}t.exports=n})),Re=l(((e,t)=>{var r=C();function n(o){return r(this,o).has(o)}t.exports=n})),Ie=l(((e,t)=>{var r=C();function n(o,i){var a=r(this,o),s=a.size;return a.set(o,i),this.size+=a.size==s?0:1,this}t.exports=n})),K=l(((e,t)=>{var r=Ee(),n=Be(),o=ze(),i=Re(),a=Ie();function s(d){var u=-1,c=d==null?0:d.length;for(this.clear();++u{var r=K(),n="Expected a function";function o(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw TypeError(n);var s=function(){var d=arguments,u=a?a.apply(this,d):d[0],c=s.cache;if(c.has(u))return c.get(u);var p=i.apply(this,d);return s.cache=c.set(u,p)||c,p};return s.cache=new(o.Cache||r),s}o.Cache=r,t.exports=o})),Te=l(((e,t)=>{var r=Pe(),n=500;function o(i){var a=r(i,function(d){return s.size===n&&s.clear(),d}),s=a.cache;return a}t.exports=o})),Ae=l(((e,t)=>{var r=Te(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;t.exports=r(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(n,function(s,d,u,c){a.push(u?c.replace(o,"$1"):d||s)}),a})})),De=l(((e,t)=>{function r(n,o){for(var i=-1,a=n==null?0:n.length,s=Array(a);++i{var r=_(),n=De(),o=x(),i=S(),a=1/0,s=r?r.prototype:void 0,d=s?s.toString:void 0;function u(c){if(typeof c=="string")return c;if(o(c))return n(c,u)+"";if(i(c))return d?d.call(c):"";var p=c+"";return p=="0"&&1/c==-a?"-0":p}t.exports=u})),Me=l(((e,t)=>{var r=Le();function n(o){return o==null?"":r(o)}t.exports=n})),Q=l(((e,t)=>{var r=x(),n=U(),o=Ae(),i=Me();function a(s,d){return r(s)?s:n(s,d)?[s]:o(i(s))}t.exports=a})),Ne=l(((e,t)=>{var r=w(),n=k(),o="[object Arguments]";function i(a){return n(a)&&r(a)==o}t.exports=i})),X=l(((e,t)=>{var r=Ne(),n=k(),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable;t.exports=r((function(){return arguments})())?r:function(s){return n(s)&&i.call(s,"callee")&&!a.call(s,"callee")}})),Y=l(((e,t)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(i,a){var s=typeof i;return a??(a=r),!!a&&(s=="number"||s!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i{var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}t.exports=n})),ee=l(((e,t)=>{var r=S(),n=1/0;function o(i){if(typeof i=="string"||r(i))return i;var a=i+"";return a=="0"&&1/i==-n?"-0":a}t.exports=o})),te=l(((e,t)=>{var r=Q(),n=X(),o=x(),i=Y(),a=Z(),s=ee();function d(u,c,p){c=r(c,u);for(var b=-1,g=c.length,v=!1;++b{var r=pe(),n=te();function o(i,a){return i!=null&&n(i,a,r)}t.exports=o}))(),1);const Ve=null,Ge=void 0;var f;(function(e){e.Uri="uri",e.Text="text",e.Image="image",e.RowID="row-id",e.Number="number",e.Bubble="bubble",e.Boolean="boolean",e.Loading="loading",e.Markdown="markdown",e.Drilldown="drilldown",e.Protected="protected",e.Custom="custom"})(f||(f={}));var re;(function(e){e.HeaderRowID="headerRowID",e.HeaderCode="headerCode",e.HeaderNumber="headerNumber",e.HeaderString="headerString",e.HeaderBoolean="headerBoolean",e.HeaderAudioUri="headerAudioUri",e.HeaderVideoUri="headerVideoUri",e.HeaderEmoji="headerEmoji",e.HeaderImage="headerImage",e.HeaderUri="headerUri",e.HeaderPhone="headerPhone",e.HeaderMarkdown="headerMarkdown",e.HeaderDate="headerDate",e.HeaderTime="headerTime",e.HeaderEmail="headerEmail",e.HeaderReference="headerReference",e.HeaderIfThenElse="headerIfThenElse",e.HeaderSingleValue="headerSingleValue",e.HeaderLookup="headerLookup",e.HeaderTextTemplate="headerTextTemplate",e.HeaderMath="headerMath",e.HeaderRollup="headerRollup",e.HeaderJoinStrings="headerJoinStrings",e.HeaderSplitString="headerSplitString",e.HeaderGeoDistance="headerGeoDistance",e.HeaderArray="headerArray",e.RowOwnerOverlay="rowOwnerOverlay",e.ProtectedColumnOverlay="protectedColumnOverlay"})(re||(re={}));var ne;(function(e){e.Triangle="triangle",e.Dots="dots"})(ne||(ne={}));function Je(e){return"width"in e&&typeof e.width=="number"}async function qe(e){return typeof e=="object"?e:await e()}function oe(e){return!(e.kind===f.Loading||e.kind===f.Bubble||e.kind===f.RowID||e.kind===f.Protected||e.kind===f.Drilldown)}function We(e){return e.kind===j.Marker||e.kind===j.NewRow}function Ke(e){if(!oe(e)||e.kind===f.Image)return!1;if(e.kind===f.Text||e.kind===f.Number||e.kind===f.Markdown||e.kind===f.Uri||e.kind===f.Custom||e.kind===f.Boolean)return e.readonly!==!0;L(e,"A cell was passed with an invalid kind")}function Qe(e){return(0,Ue.default)(e,"editor")}function Xe(e){return!(e.readonly??!1)}var j;(function(e){e.NewRow="new-row",e.Marker="marker"})(j||(j={}));function Ye(e){if(e.length===0)return[];let t=[...e],r=[];t.sort(function(n,o){return n[0]-o[0]}),r.push([...t[0]]);for(let n of t.slice(1)){let o=r[r.length-1];o[1][r[0]+t,r[1]+t]))}add(t){let r=typeof t=="number"?[t,t+1]:t;return new h(Ye([...this.items,r]))}remove(t){let r=[...this.items],n=typeof t=="number"?t:t[0],o=typeof t=="number"?t+1:t[1];for(let[i,a]of r.entries()){let[s,d]=a;if(s<=o&&n<=d){let u=[];s=n&&tZe??(Ze=new h([]))),y(h,"fromSingleSelection",t=>h.empty().add(t)),h),I={},m=null;function tt(){let e=document.createElement("div");return e.style.opacity="0",e.style.pointerEvents="none",e.style.position="fixed",document.body.append(e),e}function P(e){let t=e.toLowerCase().trim();if(I[t]!==void 0)return I[t];m||(m=tt()),m.style.color="#000",m.style.color=t;let r=getComputedStyle(m).color;m.style.color="#fff",m.style.color=t;let n=getComputedStyle(m).color;if(n!==r)return[0,0,0,1];let o=n.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return o.length<4&&o.push(1),o=o.map(i=>Number.isNaN(i)?0:i),I[t]=o,o}function rt(e,t){let[r,n,o]=P(e);return`rgba(${r}, ${n}, ${o}, ${t})`}var ie=new Map;function nt(e,t){let r=`${e}-${t}`,n=ie.get(r);if(n!==void 0)return n;let o=T(e,t);return ie.set(r,o),o}function T(e,t){if(t===void 0)return e;let[r,n,o,i]=P(e);if(i===1)return e;let[a,s,d,u]=P(t),c=i+u*(1-i);return`rgba(${(i*r+u*a*(1-i))/c}, ${(i*n+u*s*(1-i))/c}, ${(i*o+u*d*(1-i))/c}, ${c})`}var E=A(ue(),1);function ot(e){return{"--gdg-accent-color":e.accentColor,"--gdg-accent-fg":e.accentFg,"--gdg-accent-light":e.accentLight,"--gdg-text-dark":e.textDark,"--gdg-text-medium":e.textMedium,"--gdg-text-light":e.textLight,"--gdg-text-bubble":e.textBubble,"--gdg-bg-icon-header":e.bgIconHeader,"--gdg-fg-icon-header":e.fgIconHeader,"--gdg-text-header":e.textHeader,"--gdg-text-group-header":e.textGroupHeader??e.textHeader,"--gdg-text-header-selected":e.textHeaderSelected,"--gdg-bg-cell":e.bgCell,"--gdg-bg-cell-medium":e.bgCellMedium,"--gdg-bg-header":e.bgHeader,"--gdg-bg-header-has-focus":e.bgHeaderHasFocus,"--gdg-bg-header-hovered":e.bgHeaderHovered,"--gdg-bg-bubble":e.bgBubble,"--gdg-bg-bubble-selected":e.bgBubbleSelected,"--gdg-bg-search-result":e.bgSearchResult,"--gdg-border-color":e.borderColor,"--gdg-horizontal-border-color":e.horizontalBorderColor??e.borderColor,"--gdg-drilldown-border":e.drilldownBorder,"--gdg-link-color":e.linkColor,"--gdg-cell-horizontal-padding":`${e.cellHorizontalPadding}px`,"--gdg-cell-vertical-padding":`${e.cellVerticalPadding}px`,"--gdg-header-font-style":e.headerFontStyle,"--gdg-base-font-style":e.baseFontStyle,"--gdg-marker-font-style":e.markerFontStyle,"--gdg-font-family":e.fontFamily,"--gdg-editor-font-size":e.editorFontSize,...e.resizeIndicatorColor===void 0?{}:{"--gdg-resize-indicator-color":e.resizeIndicatorColor},...e.headerBottomBorderColor===void 0?{}:{"--gdg-header-bottom-border-color":e.headerBottomBorderColor},...e.roundingRadius===void 0?{}:{"--gdg-rounding-radius":`${e.roundingRadius}px`}}}var ae={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#353fb5",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",markerFontStyle:"9px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function it(){return ae}const at=E.createContext(ae);function st(e,...t){let r={...e};for(let n of t)if(n!==void 0)for(let o in n)n.hasOwnProperty(o)&&(o==="bgCell"?r[o]=T(n[o],r[o]):r[o]=n[o]);return(r.headerFontFull===void 0||e.fontFamily!==r.fontFamily||e.headerFontStyle!==r.headerFontStyle)&&(r.headerFontFull=`${r.headerFontStyle} ${r.fontFamily}`),(r.baseFontFull===void 0||e.fontFamily!==r.fontFamily||e.baseFontStyle!==r.baseFontStyle)&&(r.baseFontFull=`${r.baseFontStyle} ${r.fontFamily}`),(r.markerFontFull===void 0||e.fontFamily!==r.fontFamily||e.markerFontStyle!==r.markerFontStyle)&&(r.markerFontFull=`${r.markerFontStyle} ${r.fontFamily}`),r}var lt=class extends E.PureComponent{constructor(){super(...arguments);y(this,"wrapperRef",E.createRef());y(this,"clickOutside",t=>{if(!(this.props.isOutsideClick&&!this.props.isOutsideClick(t))&&this.wrapperRef.current!==null&&!this.wrapperRef.current.contains(t.target)){let r=t.target;for(;r!==null;){if(r.classList.contains("click-outside-ignore"))return;r=r.parentElement}this.props.onClickOutside()}})}componentDidMount(){let t=this.props.customEventTarget??document;t.addEventListener("touchend",this.clickOutside,!0),t.addEventListener("mousedown",this.clickOutside,!0),t.addEventListener("contextmenu",this.clickOutside,!0)}componentWillUnmount(){let t=this.props.customEventTarget??document;t.removeEventListener("touchend",this.clickOutside,!0),t.removeEventListener("mousedown",this.clickOutside,!0),t.removeEventListener("contextmenu",this.clickOutside,!0)}render(){let{onClickOutside:t,isOutsideClick:r,customEventTarget:n,...o}=this.props;return E.createElement("div",{...o,ref:this.wrapperRef},this.props.children)}};export{W as A,w as B,te as C,X as D,Y as E,V as F,de as G,F as H,z as I,ce as J,L as K,U as L,J as M,R as N,Q as O,G as P,S as R,qe as S,Z as T,N as U,_ as V,x as W,oe as _,st as a,Ke as b,rt as c,et as d,f,Xe as g,j as h,ot as i,q as j,K as k,Ve as l,ne as m,at as n,T as o,re as p,B as q,it as r,nt as s,lt as t,Ge as u,We as v,ee as w,Je as x,Qe as y,k as z}; diff --git a/docs/assets/client-SHlWC2SD.js b/docs/assets/client-SHlWC2SD.js new file mode 100644 index 0000000..8023f3e --- /dev/null +++ b/docs/assets/client-SHlWC2SD.js @@ -0,0 +1,4 @@ +var P=Object.defineProperty;var W=(n,e,t)=>e in n?P(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var c=(n,e,t)=>W(n,typeof e!="symbol"?e+"":e,t);var g;import{i as p,o as z,p as b}from"./useEvent-DlWF5OMa.js";import{At as L,Fr as R,H as B,Ht as K,Jt as w,Kr as j,Mr as J,Nr as Q,Pr as Y,Qt as Z,Vt as X,Wt as D,Yt as ee,Zr as te,_n as ne,_r as v,kr as ie,qt as a,vr as S}from"./cells-CmJW_FeD.js";import{x as re}from"./_Uint8Array-BGESiCQL.js";import{i as se}from"./useLifecycle-CmDXEyIC.js";import{t as oe}from"./debounce-BbFlGgjv.js";import{d as o}from"./hotkeys-uKX61F1_.js";import{t as x}from"./invariant-C6yE60hi.js";import{_ as I,f as ae}from"./utils-Czt8B2GX.js";import{O as le,r as ce}from"./config-CENq_7Pd.js";import{St as m,Ut as E,at as ue,ct as M}from"./dist-CAcX026F.js";import{O as T,g as de,k as F,w as me}from"./dist-CI6_zMIl.js";import{n as h}from"./once-CTiSlR1m.js";import{t as pe}from"./requests-C0HaHO6a.js";import{t as ge}from"./use-toast-Bzf3rpev.js";import{r as he}from"./errors-z7WpYca5.js";var fe="Expected a function";function we(n,e,t){var r=!0,s=!0;if(typeof n!="function")throw TypeError(fe);return re(t)&&(r="leading"in t?!!t.leading:r,s="trailing"in t?!!t.trailing:s),oe(n,e,{leading:r,maxWait:e,trailing:s})}var ve=we;function ye(n){"scheduler"in window?window.scheduler.postTask(n,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(n):setTimeout(n,0)}var y=null,Ce=class{constructor(n){c(this,"abortController",new AbortController);this.view=n.view,this.view.dom.addEventListener("focus",()=>{y=new WeakRef(this.view)},{signal:this.abortController.signal,capture:!0}),this.update()}update(){let n=this.view.dom.querySelector(".cm-vimCursorLayer");if(n instanceof HTMLElement)if(B())n.style.display="none";else{let e=(y==null?void 0:y.deref())===this.view;n.style.display=e?"":"none"}}destroy(){this.abortController.abort()}};const O={map:{args:["lhs","rhs"]},nmap:{mode:"normal",args:["lhs","rhs"]},vmap:{mode:"visual",args:["lhs","rhs"]},imap:{mode:"insert",args:["lhs","rhs"]},noremap:{args:["lhs","rhs"]},nnoremap:{mode:"normal",args:["lhs","rhs"]},vnoremap:{mode:"visual",args:["lhs","rhs"]},inoremap:{mode:"insert",args:["lhs","rhs"]},unmap:{args:["lhs"]},nunmap:{mode:"normal",args:["lhs"]},vunmap:{mode:"visual",args:["lhs"]},iunmap:{mode:"insert",args:["lhs"]},mapclear:{},nmapclear:{mode:"normal"},vmapclear:{mode:"visual"},imapclear:{mode:"insert"}};function be(n,e){let t=[];for(let r of n.split(` +`)){if(r.startsWith('"')||r.trim()==="")continue;let s=xe(r,e);s&&t.push(s)}return t}function xe(n,e){let t=n.split(/\s+/),r=t[0],s=0;if(r in O){let i=O[r],u={};for(let f of i.args||[])if(s+=1,s{if(X(n,!0)&&D(n)){let e=n.state.facet(v),t=n.state.facet(S);return e.moveToNextCell({cellId:t,before:!1,noCreate:!0}),!0}return!1}}]),m.of([{key:"k",run:n=>{if(K(n)&&D(n)){let e=n.state.facet(v),t=n.state.facet(S);return e.moveToNextCell({cellId:t,before:!0,noCreate:!0}),!0}return!1}}]),m.of([{linux:"Ctrl-[",win:"Ctrl-[",run:n=>{let e=w(n);return e?_(e)?e.state.vim.insertMode?(a.exitInsertMode(e,!0),!0):!1:(o.warn("Expected CodeMirror instance to have Vim state"),!1):(o.warn("Expected CodeMirror instance to have CodeMirror instance state"),!1)}}]),M.define(n=>(requestAnimationFrame(()=>{H.INSTANCES.addInstance(n)}),{destroy(){H.INSTANCES.removeInstance(n)}})),M.define(n=>new Ce({view:n})),ue.domEventHandlers({keydown(n,e){return n.ctrlKey&&n.key==="Escape"?(e.dom.dispatchEvent(new KeyboardEvent(n.type,n)),!0):!1}})]}var ke=h(()=>{a.defineAction("goToDefinition",n=>{let e=n.cm6;return Z(e)}),a.mapCommand("gd","action","goToDefinition",{},{context:"normal"}),a.defineEx("write","w",n=>{let e=n.cm6;e&&e.state.facet(v).saveNotebook()})}),De=h(async()=>{var e;let n=(e=p.get(I).keymap)==null?void 0:e.vimrc;if(n)try{o.log(`Loading vimrc from ${n}`);let t=(await pe().sendFileDetails({path:n})).contents;if(!t){o.error(`Failed to load vimrc from ${n}`);return}Se(be(t,o.warn))}catch(t){o.error("Failed to load vimrc:",t)}});function Se(n){function e(i){if(!i.args){o.warn(`Could not execute vimrc command "${i.name}: expected arguments"`);return}if(!i.args.lhs||!i.args.rhs){o.warn(`Could not execute vimrc command "${i.name}: expected arguments"`);return}i.mode?a.map(i.args.lhs,i.args.rhs,i.mode):a.map(i.args.lhs,i.args.rhs)}function t(i){if(!i.args){o.warn(`Could not execute vimrc command "${i.name}: expected arguments"`);return}if(!i.args.lhs||!i.args.rhs){o.warn(`Could not execute vimrc command "${i.name}: expected arguments"`);return}i.mode?a.noremap(i.args.lhs,i.args.rhs,i.mode):a.noremap(i.args.lhs,i.args.rhs)}function r(i){if(!i.args){o.warn(`Could not execute vimrc command "${i.name}: expected arguments"`);return}if(!i.args.lhs){o.warn(`Could not execute vimrc command "${i.name}: expected arguments"`);return}i.mode?a.unmap(i.args.lhs,i.mode):a.unmap(i.args.lhs)}function s(i){i.mode?a.mapclear(i.mode):a.mapclear()}for(let i of n)"map|nmap|vmap|imap".split("|").includes(i.name)?e(i):"noremap|nnoremap|vnoremap|inoremap".split("|").includes(i.name)?t(i):"unmap|nunmap|vunmap|iunmap".split("|").includes(i.name)?r(i):"mapclear|nmapclear|vmapclear|imapclear".split("|").includes(i.name)?s(i):o.warn(`Could not execute vimrc command "${i.name}: unknown command"`)}var H=(g=class{constructor(){c(this,"instances",new Set);c(this,"isBroadcasting",!1)}addInstance(e){this.instances.add(e);let t=w(e);if(!t){o.warn("Expected CodeMirror instance to have CodeMirror instance state");return}t.on("vim-mode-change",r=>{this.isBroadcasting||(x("mode"in r,'Expected event to have a "mode" property'),this.isBroadcasting=!0,ye(()=>{this.broadcastModeChange(e,r.mode,r.subMode),this.isBroadcasting=!1}))})}removeInstance(e){this.instances.delete(e)}broadcastModeChange(e,t,r){x("exitInsertMode"in a,"Vim does not have an exitInsertMode method"),x("exitVisualMode"in a,"Vim does not have an exitVisualMode method");for(let s of this.instances)if(s!==e){let i=w(s);if(!i){o.warn("Expected CodeMirror instance to have CodeMirror instance state");continue}let u=i.setSelections.bind(i);if(i.setSelections=()=>[],!_(i)){o.warn("Expected CodeMirror instance to have Vim state");continue}let d=i.state.vim;switch(t){case"normal":d.insertMode&&a.exitInsertMode(i,!0),d.visualMode&&a.exitVisualMode(i,!0);break;case"insert":d.insertMode||a.handleKey(i,"i","");break;case"visual":break}i.setSelections=u}}},c(g,"INSTANCES",new g),g);function _(n){return n.state.vim!==void 0}const Ee=["default","vim"];function Me(n,e){switch(n.preset){case"default":return[m.of($()),m.of(N(e))];case"vim":return[m.of(Fe()),m.of(N(e)),m.of([{key:"Enter",run:t=>{var r,s;return(s=(r=w(t))==null?void 0:r.state.vim)!=null&&s.insertMode?me(t):!1}}]),E.high(Oe("d",t=>t.state.doc.toString()==="",t=>t.state.doc.toString()===""?(t.state.facet(v).deleteCell(),!0):!1)),ee({status:!1}),E.high(Ie())];default:return se(n.preset),[]}}var Te=new Set([F,T]),$=h(()=>de.filter(n=>!Te.has(n.run))),N=n=>[{key:n.getHotkey("cell.toggleComment").key,run:F},{key:n.getHotkey("cell.toggleBlockComment").key,run:T}],Fe=h(()=>{let n=new Set(["Enter","Ctrl-v"]);return $().filter(e=>!n.has(e.key||e.mac||e.linux||e.win||""))});function Oe(n,e,t){let r="",s=0;return m.of([{any:(i,u)=>{let d=u.key,f=u.timeStamp;return d!==n||!e(i)?(r="",s=0,!1):r===n&&f-s<500&&t(i)?(r="",s=0,!0):(r=d,s=f,!1)}}])}var V="marimo:copilot:signedIn";const He=te(V,null,ne,{getOnInit:!0}),_e=b(null),C=b(null),k=b({busy:!1,kind:null,message:null});function $e(n){p.set(C,n)}function Ne(n){p.get(C)===n&&p.set(C,null)}function Ve(){return j.getItem(V)==="true"}function q(){let n=Ve(),e=ae();return n&&e.completion.copilot==="github"}function qe(){return z(I,n=>n.completion.copilot==="github")}var Ae=Q(),l=o.get("@github/copilot-language-server"),Ge=class extends J{constructor(e){super(e);c(this,"documentVersion",0);c(this,"hasOpenedDocument",!1);c(this,"copilotSettings",{});c(this,"getCompletionInternal",async(e,t)=>await this._request("textDocument/inlineCompletion",{...e,textDocument:{...e.textDocument,version:t}}));c(this,"throttledGetCompletionInternal",ve(this.getCompletionInternal,200));c(this,"handleNotification",e=>{if(!e.params)return;let t=e;if(t.method==="statusNotification"&&p.set(k,t.params),t.method==="didChangeStatus"&&p.set(k,t.params),t.method==="window/logMessage"){let{type:r,message:s}=t.params;switch(r){case 1:l.error("[GitHub Copilot]",s);break;case 2:l.warn("[GitHub Copilot]",s);break;case 3:l.debug("[GitHub Copilot]",s);break;default:l.log("[GitHub Copilot]",s);break}}});this.copilotSettings=e.copilotSettings??{},this.onNotification(this.handleNotification),this.attachInitializeListener()}attachInitializeListener(){this.initializePromise.then(()=>{this.sendConfiguration()})}async sendConfiguration(){let e=this.copilotSettings;!e||Object.keys(e).length===0||(await this.notify("workspace/didChangeConfiguration",{settings:e}),l.debug("#sendConfiguration: Configuration sent",e))}async _request(e,t){return await this.request(e,t)}async notify(e,t){return l.debug("#notify",e,t),super.notify(e,t)}getInitializationOptions(){let e={name:"marimo",version:"0.1.0"};return{...super.getInitializationOptions(),workspaceFolders:[],capabilities:{workspace:{workspaceFolders:!1}},initializationOptions:{editorInfo:e,editorPluginInfo:e}}}isDisabled(){return!q()}async textDocumentDidOpen(e){return this.isDisabled()?e:(this.hasOpenedDocument=!0,super.textDocumentDidOpen(e))}async textDocumentCompletion(e){return[]}async textDocumentDidChange(e){if(this.isDisabled())return e;this.hasOpenedDocument||await this.textDocumentDidOpen({textDocument:{uri:e.textDocument.uri,languageId:"python",version:e.textDocument.version,text:e.contentChanges[0].text}});let t=e.contentChanges;t.length!==1&&l.warn("#textDocumentDidChange: Multiple changes detected. This is not supported.",t);let r=t[0];"range"in r&&l.warn("#textDocumentDidChange: Copilot doesn't support range changes.",r);let s=L(r.text);return super.textDocumentDidChange({...e,contentChanges:[{text:s}],textDocument:Ae.VersionedTextDocumentIdentifier.create(e.textDocument.uri,++this.documentVersion)})}textDocumentHover(e){return Promise.resolve({contents:[]})}signOut(){return this._request("signOut",{})}async signInInitiate(){l.log("#signInInitiate: Starting sign-in flow");try{let e=await this._request("signIn",{});return l.log("#signInInitiate: Sign-in flow started successfully"),e}catch(e){throw l.warn("#signInInitiate: Failed to start sign-in flow",e),e}}async signInConfirm(e){l.log("#signInConfirm: Confirming sign-in");try{let t=await this._request("signInConfirm",e);return l.log("#signInConfirm: Sign-in confirmed successfully"),t}catch(t){throw l.warn("#signInConfirm: Failed to confirm sign-in",t),t}}async signedIn(){try{let{status:e}=await this._request("checkStatus",{});return l.log("#checkStatus: Status check completed",{status:e}),e==="SignedIn"||e==="AlreadySignedIn"||e==="OK"}catch(e){throw l.warn("#signedIn: Failed to check sign-in status",e),e}}async getCompletion(e){if(this.isDisabled())return null;let t=this.documentVersion;if(e.textDocument.version=t,t===0)return null;$e(t);let r=await this.throttledGetCompletionInternal(e,t);return Ne(t),t===this.documentVersion?r??null:null}},Ue=Y(),Pe=R(),We=class extends Pe.Transport{constructor(e){super();c(this,"pendingSubscriptions",[]);this.delegate=void 0,this.pendingSubscriptions=[],this.options={retries:e.retries??3,retryDelayMs:e.retryDelayMs??1e3,maxTimeoutMs:e.maxTimeoutMs??5e3,getWsUrl:e.getWsUrl,waitForReady:e.waitForReady,showError:e.showError}}subscribe(...e){super.subscribe(...e);let[t,r]=e;this.pendingSubscriptions.push({event:t,handler:r}),this.delegate&&this.delegate.subscribe(t,r)}unsubscribe(...e){let t=super.unsubscribe(...e),[r,s]=e;if(this.delegate&&this.delegate.unsubscribe(r,s),s)if(r){let i=this.pendingSubscriptions.findIndex(u=>u.event===r&&u.handler===s);i>-1&&this.pendingSubscriptions.splice(i,1)}else this.pendingSubscriptions=this.pendingSubscriptions.filter(i=>i.handler!==s);else r?this.pendingSubscriptions=this.pendingSubscriptions.filter(i=>i.event!==r):this.pendingSubscriptions=[];return t}createDelegate(){let e=new Ue.WebSocketTransport(this.options.getWsUrl());for(let{event:t,handler:r}of this.pendingSubscriptions)e.subscribe(t,r);return e}async tryConnect(){for(let e=1;e<=this.options.retries;e++)try{this.delegate||(this.delegate=this.createDelegate()),await this.delegate.connect(),o.log("Copilot#connect: Connected successfully");return}catch(t){if(o.warn(`Copilot#connect: Connection attempt ${e}/${this.options.retries} failed`,t),e===this.options.retries)throw this.delegate=void 0,this.options.showError("GitHub Copilot Connection Error",`Failed to connect to GitHub Copilot. Please check your settings and try again. + +`+he(t)),t;await new Promise(r=>setTimeout(r,this.options.retryDelayMs))}}async connect(){return await this.options.waitForReady(),this.tryConnect()}close(){var e;(e=this.delegate)==null||e.close(),this.delegate=void 0}async sendData(e,t){if(!this.delegate){o.log("Copilot#sendData: Delegate not initialized, reconnecting...");try{await this.options.waitForReady(),await this.tryConnect()}catch(r){throw o.error("Copilot#sendData: Failed to reconnect transport",r),Error("Unable to connect to GitHub Copilot. Please check your settings and try again.")}}if(!this.delegate)throw Error("Failed to initialize GitHub Copilot connection. Please try again.");return t=Math.min(t??this.options.maxTimeoutMs,this.options.maxTimeoutMs),this.delegate.sendData(e,t)}};const A="/__marimo_copilot__.py";var G=`file://${A}`;const ze=h(()=>{let n=ce();return new We({getWsUrl:()=>n.getLSPURL("copilot").toString(),waitForReady:async()=>{await qe(),await le()},showError:(e,t)=>{ge({variant:"danger",title:e,description:t})}})}),U=h(()=>{var e,t;let n=((t=(e=p.get(I).ai)==null?void 0:e.github)==null?void 0:t.copilot_settings)??{};return new Ge({rootUri:G,workspaceFolders:null,transport:ze(),copilotSettings:n})});function Le(){return ie({documentUri:G,client:U(),languageId:"copilot",hoverEnabled:!1,completionEnabled:!1,definitionEnabled:!1,renameEnabled:!1,codeActionsEnabled:!1,signatureHelpEnabled:!1,diagnosticsEnabled:!1,sendIncrementalChanges:!1})}export{k as a,He as c,_e as i,Ee as l,Le as n,C as o,U as r,q as s,A as t,Me as u}; diff --git a/docs/assets/clike-BhFoDDUF.js b/docs/assets/clike-BhFoDDUF.js new file mode 100644 index 0000000..d5a52cd --- /dev/null +++ b/docs/assets/clike-BhFoDDUF.js @@ -0,0 +1 @@ +import{a,c as s,d as e,f as c,i as r,l as o,m as p,n as t,o as i,p as l,r as n,s as d,t as f,u as j}from"./clike-CCdVFz-6.js";export{f as c,t as ceylon,n as clike,r as cpp,a as csharp,i as dart,d as java,s as kotlin,o as nesC,j as objectiveC,e as objectiveCpp,c as scala,l as shader,p as squirrel}; diff --git a/docs/assets/clike-CCdVFz-6.js b/docs/assets/clike-CCdVFz-6.js new file mode 100644 index 0000000..4d37c9f --- /dev/null +++ b/docs/assets/clike-CCdVFz-6.js @@ -0,0 +1 @@ +function F(e,t,n,s,c,f){this.indented=e,this.column=t,this.type=n,this.info=s,this.align=c,this.prev=f}function I(e,t,n,s){var c=e.indented;return e.context&&e.context.type=="statement"&&n!="statement"&&(c=e.context.indented),e.context=new F(c,t,n,s,null,e.context)}function x(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function V(e,t,n){if(t.prevToken=="variable"||t.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||t.typeAtEndOfLine&&e.column()==e.indentation())return!0}function P(e){for(;;){if(!e||e.type=="top")return!0;if(e.type=="}"&&e.prev.info!="namespace")return!1;e=e.prev}}function m(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,s=e.keywords||{},c=e.types||{},f=e.builtin||{},b=e.blockKeywords||{},_=e.defKeywords||{},v=e.atoms||{},h=e.hooks||{},ne=e.multiLineStrings,re=e.indentStatements!==!1,ae=e.indentSwitch!==!1,R=e.namespaceSeparator,ie=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,oe=e.numberStart||/[\d\.]/,le=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,A=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,j=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,U=e.isReservedIdentifier||!1,p,E;function B(a,o){var l=a.next();if(h[l]){var i=h[l](a,o);if(i!==!1)return i}if(l=='"'||l=="'")return o.tokenize=se(l),o.tokenize(a,o);if(oe.test(l)){if(a.backUp(1),a.match(le))return"number";a.next()}if(ie.test(l))return p=l,null;if(l=="/"){if(a.eat("*"))return o.tokenize=$,$(a,o);if(a.eat("/"))return a.skipToEnd(),"comment"}if(A.test(l)){for(;!a.match(/^\/[\/*]/,!1)&&a.eat(A););return"operator"}if(a.eatWhile(j),R)for(;a.match(R);)a.eatWhile(j);var u=a.current();return y(s,u)?(y(b,u)&&(p="newstatement"),y(_,u)&&(E=!0),"keyword"):y(c,u)?"type":y(f,u)||U&&U(u)?(y(b,u)&&(p="newstatement"),"builtin"):y(v,u)?"atom":"variable"}function se(a){return function(o,l){for(var i=!1,u,w=!1;(u=o.next())!=null;){if(u==a&&!i){w=!0;break}i=!i&&u=="\\"}return(w||!(i||ne))&&(l.tokenize=null),"string"}}function $(a,o){for(var l=!1,i;i=a.next();){if(i=="/"&&l){o.tokenize=null;break}l=i=="*"}return"comment"}function K(a,o){e.typeFirstDefinitions&&a.eol()&&P(o.context)&&(o.typeAtEndOfLine=V(a,o,a.pos))}return{name:e.name,startState:function(a){return{tokenize:null,context:new F(-a,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(a,o){var l=o.context;if(a.sol()&&(l.align??(l.align=!1),o.indented=a.indentation(),o.startOfLine=!0),a.eatSpace())return K(a,o),null;p=E=null;var i=(o.tokenize||B)(a,o);if(i=="comment"||i=="meta")return i;if(l.align??(l.align=!0),p==";"||p==":"||p==","&&a.match(/^\s*(?:\/\/.*)?$/,!1))for(;o.context.type=="statement";)x(o);else if(p=="{")I(o,a.column(),"}");else if(p=="[")I(o,a.column(),"]");else if(p=="(")I(o,a.column(),")");else if(p=="}"){for(;l.type=="statement";)l=x(o);for(l.type=="}"&&(l=x(o));l.type=="statement";)l=x(o)}else p==l.type?x(o):re&&((l.type=="}"||l.type=="top")&&p!=";"||l.type=="statement"&&p=="newstatement")&&I(o,a.column(),"statement",a.current());if(i=="variable"&&(o.prevToken=="def"||e.typeFirstDefinitions&&V(a,o,a.start)&&P(o.context)&&a.match(/^\s*\(/,!1))&&(i="def"),h.token){var u=h.token(a,o,i);u!==void 0&&(i=u)}return i=="def"&&e.styleDefs===!1&&(i="variable"),o.startOfLine=!1,o.prevToken=E?"def":i||p,K(a,o),i},indent:function(a,o,l){if(a.tokenize!=B&&a.tokenize!=null||a.typeAtEndOfLine&&P(a.context))return null;var i=a.context,u=o&&o.charAt(0),w=u==i.type;if(i.type=="statement"&&u=="}"&&(i=i.prev),e.dontIndentStatements)for(;i.type=="statement"&&e.dontIndentStatements.test(i.info);)i=i.prev;if(h.indent){var q=h.indent(a,i,o,l.unit);if(typeof q=="number")return q}var ce=i.prev&&i.prev.info=="switch";if(e.allmanIndentation&&/[{(]/.test(u)){for(;i.type!="top"&&i.type!="}";)i=i.prev;return i.indented}return i.type=="statement"?i.indented+(u=="{"?0:t||l.unit):i.align&&(!n||i.type!=")")?i.column+(w?0:1):i.type==")"&&!w?i.indented+(t||l.unit):i.indented+(w?0:l.unit)+(!w&&ce&&!/^(?:case|default)\b/.test(o)?l.unit:0)},languageData:{indentOnInput:ae?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(s).concat(Object.keys(c)).concat(Object.keys(f)).concat(Object.keys(v)),...e.languageData}}}function r(e){for(var t={},n=e.split(" "),s=0;s!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return e.match('""')?(t.tokenize=J,t.tokenize(e,t)):!1},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"character":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,t){var n=t.context;return n.type=="}"&&n.align&&e.eat(">")?(t.context=new F(n.indented,n.column,n.type,n.info,null,n.prev),"operator"):!1},"/":function(e,t){return e.eat("*")?(t.tokenize=D(1),t.tokenize(e,t)):!1}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function ge(e){return function(t,n){for(var s=!1,c,f=!1;!t.eol();){if(!e&&!s&&t.match('"')){f=!0;break}if(e&&t.match('"""')){f=!0;break}c=t.next(),!s&&c=="$"&&t.match("{")&&t.skipTo("}"),s=!s&&c=="\\"&&!e}return(f||!e)&&(n.tokenize=null),"string"}}const ke=m({name:"kotlin",keywords:r("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:r("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(ul?|l|f)?/i,blockKeywords:r("catch class do else finally for if where try while enum"),defKeywords:r("class val var object interface fun"),atoms:r("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return t.prevToken=="."?"variable":"operator"},'"':function(e,t){return t.tokenize=ge(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return e.eat("*")?(t.tokenize=D(1),t.tokenize(e,t)):!1},indent:function(e,t,n,s){var c=n&&n.charAt(0);if((e.prevToken=="}"||e.prevToken==")")&&n=="")return e.indented;if(e.prevToken=="operator"&&n!="}"&&e.context.type!="}"||e.prevToken=="variable"&&c=="."||(e.prevToken=="}"||e.prevToken==")")&&c==".")return s*2+t.indented;if(t.align&&t.type=="}")return t.indented+(e.context.type==(n||"").charAt(0)?0:s)}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),be=m({name:"shader",keywords:r("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:r("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:r("for while do if else struct"),builtin:r("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:r("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":g}}),ve=m({name:"nesc",keywords:r(S+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:T,blockKeywords:r(N),atoms:r("null true false"),hooks:{"#":g}}),we=m({name:"objectivec",keywords:r(S+" "+G),types:Z,builtin:r(Y),blockKeywords:r(N+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:r(C+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:L,hooks:{"#":g,"*":z}}),_e=m({name:"objectivecpp",keywords:r(S+" "+G+" "+W),types:Z,builtin:r(Y),blockKeywords:r(N+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:r(C+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:L,hooks:{"#":g,"*":z,u:k,U:k,L:k,R:k,0:d,1:d,2:d,3:d,4:d,5:d,6:d,7:d,8:d,9:d,token:function(e,t,n){if(n=="variable"&&e.peek()=="("&&(t.prevToken==";"||t.prevToken==null||t.prevToken=="}")&&Q(e.current()))return"def"}},namespaceSeparator:"::"}),xe=m({name:"squirrel",keywords:r("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:T,blockKeywords:r("case catch class else for foreach if switch try while"),defKeywords:r("function local class"),typeFirstDefinitions:!0,atoms:r("true false null"),hooks:{"#":g}});var M=null;function ee(e){return function(t,n){for(var s=!1,c,f=!1;!t.eol();){if(!s&&t.match('"')&&(e=="single"||t.match('""'))){f=!0;break}if(!s&&t.match("``")){M=ee(e),f=!0;break}c=t.next(),s=e=="single"&&!s&&c=="\\"}return f&&(n.tokenize=null),"string"}}const Se=m({name:"ceylon",keywords:r("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:r("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:r("class dynamic function interface module object package value"),builtin:r("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:r("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=ee(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!M||!e.match("`")?!1:(t.tokenize=M,M=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string.special":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},token:function(e,t,n){if((n=="variable"||n=="type")&&t.prevToken==".")return"variableName.special"}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function Te(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function te(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function Ne(e){return e.interpolationStack?e.interpolationStack.length:0}function O(e,t,n,s){var c=!1;if(t.eat(e))if(t.eat(e))c=!0;else return"string";function f(b,_){for(var v=!1;!b.eol();){if(!s&&!v&&b.peek()=="$")return Te(_),_.tokenize=De,"string";var h=b.next();if(h==e&&!v&&(!c||b.match(e+e))){_.tokenize=null;break}v=!s&&!v&&h=="\\"}return"string"}return n.tokenize=f,f(t,n)}function De(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=Ie,null}function Ie(e,t){return e.eatWhile(/[\w_]/),t.tokenize=te(t),"variable"}const Ce=m({name:"dart",keywords:r("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),blockKeywords:r("try catch finally do else for if switch while"),builtin:r("void bool num int double dynamic var String Null Never"),atoms:r("true false null"),number:/^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return O("'",e,t,!1)},'"':function(e,t){return O('"',e,t,!1)},r:function(e,t){var n=e.peek();return n=="'"||n=='"'?O(e.next(),e,t,!0):!1},"}":function(e,t){return Ne(t)>0?(t.tokenize=te(t),null):!1},"/":function(e,t){return e.eat("*")?(t.tokenize=D(1),t.tokenize(e,t)):!1},token:function(e,t,n){if(n=="variable"&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"type"}}});export{he as a,ke as c,_e as d,ye as f,pe as i,ve as l,xe as m,Se as n,Ce as o,be as p,m as r,me as s,fe as t,we as u}; diff --git a/docs/assets/clipboard-paste-CusmeEPf.js b/docs/assets/clipboard-paste-CusmeEPf.js new file mode 100644 index 0000000..a1bcfa0 --- /dev/null +++ b/docs/assets/clipboard-paste-CusmeEPf.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var e=a("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]);export{e as t}; diff --git a/docs/assets/clojure-BjmTMymc.js b/docs/assets/clojure-BjmTMymc.js new file mode 100644 index 0000000..08a0fb9 --- /dev/null +++ b/docs/assets/clojure-BjmTMymc.js @@ -0,0 +1 @@ +var d=["false","nil","true"],l=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],u="*,*',*1,*2,*3,*agent*,*allow-unresolved-vars*,*assert*,*clojure-version*,*command-line-args*,*compile-files*,*compile-path*,*compiler-options*,*data-readers*,*default-data-reader-fn*,*e,*err*,*file*,*flush-on-newline*,*fn-loader*,*in*,*math-context*,*ns*,*out*,*print-dup*,*print-length*,*print-level*,*print-meta*,*print-namespace-maps*,*print-readably*,*read-eval*,*reader-resolver*,*source-path*,*suppress-read*,*unchecked-math*,*use-context-classloader*,*verbose-defrecords*,*warn-on-reflection*,+,+',-,-',->,->>,->ArrayChunk,->Eduction,->Vec,->VecNode,->VecSeq,-cache-protocol-fn,-reset-methods,..,/,<,<=,=,==,>,>=,EMPTY-NODE,Inst,StackTraceElement->vec,Throwable->map,accessor,aclone,add-classpath,add-watch,agent,agent-error,agent-errors,aget,alength,alias,all-ns,alter,alter-meta!,alter-var-root,amap,ancestors,and,any?,apply,areduce,array-map,as->,aset,aset-boolean,aset-byte,aset-char,aset-double,aset-float,aset-int,aset-long,aset-short,assert,assoc,assoc!,assoc-in,associative?,atom,await,await-for,await1,bases,bean,bigdec,bigint,biginteger,binding,bit-and,bit-and-not,bit-clear,bit-flip,bit-not,bit-or,bit-set,bit-shift-left,bit-shift-right,bit-test,bit-xor,boolean,boolean-array,boolean?,booleans,bound-fn,bound-fn*,bound?,bounded-count,butlast,byte,byte-array,bytes,bytes?,case,cast,cat,char,char-array,char-escape-string,char-name-string,char?,chars,chunk,chunk-append,chunk-buffer,chunk-cons,chunk-first,chunk-next,chunk-rest,chunked-seq?,class,class?,clear-agent-errors,clojure-version,coll?,comment,commute,comp,comparator,compare,compare-and-set!,compile,complement,completing,concat,cond,cond->,cond->>,condp,conj,conj!,cons,constantly,construct-proxy,contains?,count,counted?,create-ns,create-struct,cycle,dec,dec',decimal?,declare,dedupe,default-data-readers,definline,definterface,defmacro,defmethod,defmulti,defn,defn-,defonce,defprotocol,defrecord,defstruct,deftype,delay,delay?,deliver,denominator,deref,derive,descendants,destructure,disj,disj!,dissoc,dissoc!,distinct,distinct?,doall,dorun,doseq,dosync,dotimes,doto,double,double-array,double?,doubles,drop,drop-last,drop-while,eduction,empty,empty?,ensure,ensure-reduced,enumeration-seq,error-handler,error-mode,eval,even?,every-pred,every?,ex-data,ex-info,extend,extend-protocol,extend-type,extenders,extends?,false?,ffirst,file-seq,filter,filterv,find,find-keyword,find-ns,find-protocol-impl,find-protocol-method,find-var,first,flatten,float,float-array,float?,floats,flush,fn,fn?,fnext,fnil,for,force,format,frequencies,future,future-call,future-cancel,future-cancelled?,future-done?,future?,gen-class,gen-interface,gensym,get,get-in,get-method,get-proxy-class,get-thread-bindings,get-validator,group-by,halt-when,hash,hash-combine,hash-map,hash-ordered-coll,hash-set,hash-unordered-coll,ident?,identical?,identity,if-let,if-not,if-some,ifn?,import,in-ns,inc,inc',indexed?,init-proxy,inst-ms,inst-ms*,inst?,instance?,int,int-array,int?,integer?,interleave,intern,interpose,into,into-array,ints,io!,isa?,iterate,iterator-seq,juxt,keep,keep-indexed,key,keys,keyword,keyword?,last,lazy-cat,lazy-seq,let,letfn,line-seq,list,list*,list?,load,load-file,load-reader,load-string,loaded-libs,locking,long,long-array,longs,loop,macroexpand,macroexpand-1,make-array,make-hierarchy,map,map-entry?,map-indexed,map?,mapcat,mapv,max,max-key,memfn,memoize,merge,merge-with,meta,method-sig,methods,min,min-key,mix-collection-hash,mod,munge,name,namespace,namespace-munge,nat-int?,neg-int?,neg?,newline,next,nfirst,nil?,nnext,not,not-any?,not-empty,not-every?,not=,ns,ns-aliases,ns-imports,ns-interns,ns-map,ns-name,ns-publics,ns-refers,ns-resolve,ns-unalias,ns-unmap,nth,nthnext,nthrest,num,number?,numerator,object-array,odd?,or,parents,partial,partition,partition-all,partition-by,pcalls,peek,persistent!,pmap,pop,pop!,pop-thread-bindings,pos-int?,pos?,pr,pr-str,prefer-method,prefers,primitives-classnames,print,print-ctor,print-dup,print-method,print-simple,print-str,printf,println,println-str,prn,prn-str,promise,proxy,proxy-call-with-super,proxy-mappings,proxy-name,proxy-super,push-thread-bindings,pvalues,qualified-ident?,qualified-keyword?,qualified-symbol?,quot,rand,rand-int,rand-nth,random-sample,range,ratio?,rational?,rationalize,re-find,re-groups,re-matcher,re-matches,re-pattern,re-seq,read,read-line,read-string,reader-conditional,reader-conditional?,realized?,record?,reduce,reduce-kv,reduced,reduced?,reductions,ref,ref-history-count,ref-max-history,ref-min-history,ref-set,refer,refer-clojure,reify,release-pending-sends,rem,remove,remove-all-methods,remove-method,remove-ns,remove-watch,repeat,repeatedly,replace,replicate,require,reset!,reset-meta!,reset-vals!,resolve,rest,restart-agent,resultset-seq,reverse,reversible?,rseq,rsubseq,run!,satisfies?,second,select-keys,send,send-off,send-via,seq,seq?,seqable?,seque,sequence,sequential?,set,set-agent-send-executor!,set-agent-send-off-executor!,set-error-handler!,set-error-mode!,set-validator!,set?,short,short-array,shorts,shuffle,shutdown-agents,simple-ident?,simple-keyword?,simple-symbol?,slurp,some,some->,some->>,some-fn,some?,sort,sort-by,sorted-map,sorted-map-by,sorted-set,sorted-set-by,sorted?,special-symbol?,spit,split-at,split-with,str,string?,struct,struct-map,subs,subseq,subvec,supers,swap!,swap-vals!,symbol,symbol?,sync,tagged-literal,tagged-literal?,take,take-last,take-nth,take-while,test,the-ns,thread-bound?,time,to-array,to-array-2d,trampoline,transduce,transient,tree-seq,true?,type,unchecked-add,unchecked-add-int,unchecked-byte,unchecked-char,unchecked-dec,unchecked-dec-int,unchecked-divide-int,unchecked-double,unchecked-float,unchecked-inc,unchecked-inc-int,unchecked-int,unchecked-long,unchecked-multiply,unchecked-multiply-int,unchecked-negate,unchecked-negate-int,unchecked-remainder-int,unchecked-short,unchecked-subtract,unchecked-subtract-int,underive,unquote,unquote-splicing,unreduced,unsigned-bit-shift-right,update,update-in,update-proxy,uri?,use,uuid?,val,vals,var-get,var-set,var?,vary-meta,vec,vector,vector-of,vector?,volatile!,volatile?,vreset!,vswap!,when,when-first,when-let,when-not,when-some,while,with-bindings,with-bindings*,with-in-str,with-loading-context,with-local-vars,with-meta,with-open,with-out-str,with-precision,with-redefs,with-redefs-fn,xml-seq,zero?,zipmap".split(","),p="->.->>.as->.binding.bound-fn.case.catch.comment.cond.cond->.cond->>.condp.def.definterface.defmethod.defn.defmacro.defprotocol.defrecord.defstruct.deftype.do.doseq.dotimes.doto.extend.extend-protocol.extend-type.fn.for.future.if.if-let.if-not.if-some.let.letfn.locking.loop.ns.proxy.reify.struct-map.some->.some->>.try.when.when-first.when-let.when-not.when-some.while.with-bindings.with-bindings*.with-in-str.with-loading-context.with-local-vars.with-meta.with-open.with-out-str.with-precision.with-redefs.with-redefs-fn".split("."),m=s(d),f=s(l),h=s(u),y=s(p),b=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,g=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,k=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,v=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function i(t,e){if(t.eatSpace()||t.eat(","))return["space",null];if(t.match(g))return[null,"number"];if(t.match(k))return[null,"string.special"];if(t.eat(/^"/))return(e.tokenize=x)(t,e);if(t.eat(/^[(\[{]/))return["open","bracket"];if(t.eat(/^[)\]}]/))return["close","bracket"];if(t.eat(/^;/))return t.skipToEnd(),["space","comment"];if(t.eat(/^[#'@^`~]/))return[null,"meta"];var r=t.match(v),n=r&&r[0];return n?n==="comment"&&e.lastToken==="("?(e.tokenize=w)(t,e):a(n,m)||n.charAt(0)===":"?["symbol","atom"]:a(n,f)||a(n,h)?["symbol","keyword"]:e.lastToken==="("?["symbol","builtin"]:["symbol","variable"]:(t.next(),t.eatWhile(function(o){return!a(o,b)}),[null,"error"])}function x(t,e){for(var r=!1,n;n=t.next();){if(n==='"'&&!r){e.tokenize=i;break}r=!r&&n==="\\"}return[null,"string"]}function w(t,e){for(var r=1,n;n=t.next();)if(n===")"&&r--,n==="("&&r++,r===0){t.backUp(1),e.tokenize=i;break}return["space","comment"]}function s(t){for(var e={},r=0;r|COMPILE_FLAGS|EXTERNAL_OBJECT|Fortran_FORMAT|GENERATED|HEADER_FILE_ONLY|KEEP_EXTENSION|LABELS|LANGUAGE|LOCATION|MACOSX_PACKAGE_LOCATION|OBJECT_DEPENDS|OBJECT_OUTPUTS|SYMBOLIC|WRAP_EXCLUDE)\\\\b","name":"entity.source.cmake"},{"match":"\\\\b(?i:ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|COST|DEPENDS|ENVIRONMENT|FAIL_REGULAR_EXPRESSION|LABELS|MEASUREMENT|PASS_REGULAR_EXPRESSION|PROCESSORS|REQUIRED_FILES|RESOURCE_LOCK|RUN_SERIAL|TIMEOUT|WILL_FAIL|WORKING_DIRECTORY)\\\\b","name":"entity.source.cmake"},{"match":"\\\\b(?i:ADDITIONAL_MAKE_CLEAN_FILES|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_\\\\w+|DEFINITIONS|EXCLUDE_FROM_ALL|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\\\w+|LINK_DIRECTORIES|LISTFILE_STACK|MACROS|PARENT_DIRECTORY|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|TEST_INCLUDE_FILE|VARIABLES|VS_GLOBAL_SECTION_POST_\\\\w+|VS_GLOBAL_SECTION_PRE_\\\\w+)\\\\b","name":"entity.source.cmake"},{"match":"\\\\b(?i:ALLOW_DUPLICATE_CUSTOM_TARGETS|DEBUG_CONFIGURATIONS|DISABLED_FEATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|IN_TRY_COMPILE|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PREDEFINED_TARGETS_FOLDER|REPORT_UNDEFINED_PROPERTIES|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_SUPPORTS_SHARED_LIBS|USE_FOLDERS|__CMAKE_DELETE_CACHE_CHANGE_VARS_)\\\\b","name":"entity.source.cmake"},{"match":"\\\\b(?i:\\\\w+_(OUTPUT_NAME|POSTFIX)|ARCHIVE_OUTPUT_(DIRECTORY(_\\\\w+)?|NAME(_\\\\w+)?)|AUTOMOC(_MOC_OPTIONS)?|BUILD_WITH_INSTALL_RPATH|BUNDLE(_EXTENSION)??|COMPATIBLE_INTERFACE_BOOL|COMPATIBLE_INTERFACE_STRING|COMPILE_(DEFINITIONS(_\\\\w+)?|FLAGS)|DEBUG_POSTFIX|DEFINE_SYMBOL|ENABLE_EXPORTS|EXCLUDE_FROM_ALL|EchoString|FOLDER|FRAMEWORK|Fortran_(FORMAT|MODULE_DIRECTORY)|GENERATOR_FILE_NAME|GNUtoMS|HAS_CXX|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(CONFIGURATIONS|IMPLIB(_\\\\w+)?|LINK_DEPENDENT_LIBRARIES(_\\\\w+)?|LINK_INTERFACE_LANGUAGES(_\\\\w+)?|LINK_INTERFACE_LIBRARIES(_\\\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\\\w+)?|LOCATION(_\\\\w+)?|NO_SONAME(_\\\\w+)?|SONAME(_\\\\w+)?)|IMPORT_PREFIX|IMPORT_SUFFIX|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE|INTERFACE_COMPILE_DEFINITIONS|INTERFACE_INCLUDE_DIRECTORIES|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\\\w+|LABELS|LIBRARY_OUTPUT_DIRECTORY(_\\\\w+)?|LIBRARY_OUTPUT_NAME(_\\\\w+)?|LINKER_LANGUAGE|LINK_DEPENDS|LINK_FLAGS(_\\\\w+)?|LINK_INTERFACE_LIBRARIES(_\\\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\\\w+)?|LINK_LIBRARIES|LINK_SEARCH_END_STATIC|LINK_SEARCH_START_STATIC|LOCATION(_\\\\w+)?|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MAP_IMPORTED_CONFIG_\\\\w+|NO_SONAME|OSX_ARCHITECTURES(_\\\\w+)?|OUTPUT_NAME(_\\\\w+)?|PDB_NAME(_\\\\w+)?|POST_INSTALL_SCRIPT|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE|PRIVATE_HEADER|PROJECT_LABEL|PUBLIC|PUBLIC_HEADER|RESOURCE|RULE_LAUNCH_(COMPILE|CUSTOM|LINK)|RUNTIME_OUTPUT_(DIRECTORY(_\\\\w+)?|NAME(_\\\\w+)?)|SKIP_BUILD_RPATH|SOURCES|SOVERSION|STATIC_LIBRARY_FLAGS(_\\\\w+)?|SUFFIX|TYPE|VERSION|VS_DOTNET_REFERENCES|VS_GLOBAL_(\\\\w+|KEYWORD|PROJECT_TYPES)|VS_KEYWORD|VS_SCC_(AUXPATH|LOCALPATH|PROJECTNAME|PROVIDER)|VS_WINRT_EXTENSIONS|VS_WINRT_REFERENCES|WIN32_EXECUTABLE|XCODE_ATTRIBUTE_\\\\w+)\\\\b","name":"entity.source.cmake"},{"begin":"\\\\\\\\\\"","end":"\\\\\\\\\\"","name":"string.source.cmake","patterns":[{"match":"\\\\\\\\(.|$)","name":"constant.character.escape"}]},{"begin":"\\"","end":"\\"","name":"string.source.cmake","patterns":[{"match":"\\\\\\\\(.|$)","name":"constant.character.escape"}]},{"match":"\\\\bBUILD_NAME\\\\b","name":"invalid.deprecated.source.cmake"},{"match":"\\\\b(?i:(CMAKE_)?(C(?:XX_FLAGS|MAKE_CXX_FLAGS_DEBUG|MAKE_CXX_FLAGS_MINSIZEREL|MAKE_CXX_FLAGS_RELEASE|MAKE_CXX_FLAGS_RELWITHDEBINFO)))\\\\b","name":"variable.source.cmake"}],"repository":{},"scopeName":"source.cmake"}'))];export{_ as t}; diff --git a/docs/assets/cmake-CbujdZpI.js b/docs/assets/cmake-CbujdZpI.js new file mode 100644 index 0000000..000ea8e --- /dev/null +++ b/docs/assets/cmake-CbujdZpI.js @@ -0,0 +1 @@ +import{t}from"./cmake-B-3s70IL.js";export{t as default}; diff --git a/docs/assets/cmake-CgqRscDS.js b/docs/assets/cmake-CgqRscDS.js new file mode 100644 index 0000000..7ed4be7 --- /dev/null +++ b/docs/assets/cmake-CgqRscDS.js @@ -0,0 +1 @@ +var r=/({)?[a-zA-Z0-9_]+(})?/;function c(n,t){for(var e,i,a=!1;!n.eol()&&(e=n.next())!=t.pending;){if(e==="$"&&i!="\\"&&t.pending=='"'){a=!0;break}i=e}return a&&n.backUp(1),e==t.pending?t.continueString=!1:t.continueString=!0,"string"}function o(n,t){var e=n.next();return e==="$"?n.match(r)?"variableName.special":"variable":t.continueString?(n.backUp(1),c(n,t)):n.match(/(\s+)?\w+\(/)||n.match(/(\s+)?\w+\ \(/)?(n.backUp(1),"def"):e=="#"?(n.skipToEnd(),"comment"):e=="'"||e=='"'?(t.pending=e,c(n,t)):e=="("||e==")"?"bracket":e.match(/[0-9]/)?"number":(n.eatWhile(/[\w-]/),null)}const u={name:"cmake",startState:function(){var n={};return n.inDefinition=!1,n.inInclude=!1,n.continueString=!1,n.pending=!1,n},token:function(n,t){return n.eatSpace()?null:o(n,t)}};export{u as t}; diff --git a/docs/assets/cn-C1rgT0yh.js b/docs/assets/cn-C1rgT0yh.js new file mode 100644 index 0000000..8b6ae0c --- /dev/null +++ b/docs/assets/cn-C1rgT0yh.js @@ -0,0 +1 @@ +import{t as K}from"./clsx-D0MtrJOx.js";var L=e=>typeof e=="boolean"?`${e}`:e===0?"0":e;const Q=K,se=(e,o)=>r=>{var s;if((o==null?void 0:o.variants)==null)return Q(e,r==null?void 0:r.class,r==null?void 0:r.className);let{variants:t,defaultVariants:l}=o,n=Object.keys(t).map(d=>{let b=r==null?void 0:r[d],m=l==null?void 0:l[d];if(b===null)return null;let g=L(b)||L(m);return t[d][g]}),i=r&&Object.entries(r).reduce((d,b)=>{let[m,g]=b;return g===void 0||(d[m]=g),d},{});return Q(e,n,(s=o==null?void 0:o.compoundVariants)==null?void 0:s.reduce((d,b)=>{let{class:m,className:g,...h}=b;return Object.entries(h).every(v=>{let[f,p]=v;return Array.isArray(p)?p.includes({...l,...i}[f]):{...l,...i}[f]===p})?[...d,m,g]:d},[]),r==null?void 0:r.class,r==null?void 0:r.className)};var _="-",ae=e=>{let o=de(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:l=>{let n=l.split(_);return n[0]===""&&n.length!==1&&n.shift(),U(n,o)||ie(l)},getConflictingClassGroupIds:(l,n)=>{let i=r[l]||[];return n&&t[l]?[...i,...t[l]]:i}}},U=(e,o)=>{var i;if(e.length===0)return o.classGroupId;let r=e[0],t=o.nextPart.get(r),l=t?U(e.slice(1),t):void 0;if(l)return l;if(o.validators.length===0)return;let n=e.join(_);return(i=o.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},ee=/^\[(.+)\]$/,ie=e=>{if(ee.test(e)){let o=ee.exec(e)[1],r=o==null?void 0:o.substring(0,o.indexOf(":"));if(r)return"arbitrary.."+r}},de=e=>{let{theme:o,prefix:r}=e,t={nextPart:new Map,validators:[]};return pe(Object.entries(e.classGroups),r).forEach(([l,n])=>{q(n,t,l,o)}),t},q=(e,o,r,t)=>{e.forEach(l=>{if(typeof l=="string"){let n=l===""?o:re(o,l);n.classGroupId=r;return}if(typeof l=="function"){if(ce(l)){q(l(t),o,r,t);return}o.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([n,i])=>{q(i,re(o,n),r,t)})})},re=(e,o)=>{let r=e;return o.split(_).forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r},ce=e=>e.isThemeGetter,pe=(e,o)=>o?e.map(([r,t])=>[r,t.map(l=>typeof l=="string"?o+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([n,i])=>[o+n,i])):l)]):e,ue=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=new Map,t=new Map,l=(n,i)=>{r.set(n,i),o++,o>e&&(o=0,t=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=t.get(n))!==void 0)return l(n,i),i},set(n,i){r.has(n)?r.set(n,i):l(n,i)}}},oe="!",be=e=>{let{separator:o,experimentalParseClassName:r}=e,t=o.length===1,l=o[0],n=o.length,i=s=>{let d=[],b=0,m=0,g;for(let f=0;fm?g-m:void 0}};return r?s=>r({className:s,parseClassName:i}):i},me=e=>{if(e.length<=1)return e;let o=[],r=[];return e.forEach(t=>{t[0]==="["?(o.push(...r.sort(),t),r=[]):r.push(t)}),o.push(...r.sort()),o},fe=e=>({cache:ue(e.cacheSize),parseClassName:be(e),...ae(e)}),ge=/\s+/,he=(e,o)=>{let{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:l}=o,n=[],i=e.trim().split(ge),s="";for(let d=i.length-1;d>=0;--d){let b=i[d],{modifiers:m,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:v}=r(b),f=!!v,p=t(f?h.substring(0,v):h);if(!p){if(!f){s=b+(s.length>0?" "+s:s);continue}if(p=t(h),!p){s=b+(s.length>0?" "+s:s);continue}f=!1}let x=me(m).join(":"),w=g?x+oe:x,y=w+p;if(n.includes(y))continue;n.push(y);let M=l(p,f);for(let G=0;G0?" "+s:s)}return s};function xe(){let e=0,o,r,t="";for(;e{if(typeof e=="string")return e;let o,r="";for(let t=0;tm(b),e())),t=r.cache.get,l=r.cache.set,n=s,s(d)}function s(d){let b=t(d);if(b)return b;let m=he(d,r);return l(d,m),m}return function(){return n(xe.apply(null,arguments))}}var c=e=>{let o=r=>r[e]||[];return o.isThemeGetter=!0,o},ne=/^\[(?:([a-z-]+):)?(.+)\]$/i,ve=/^\d+\/\d+$/,we=new Set(["px","full","screen"]),ke=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ce=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>N(e)||we.has(e)||ve.test(e),j=e=>P(e,"length",Ee),N=e=>!!e&&!Number.isNaN(Number(e)),D=e=>P(e,"number",N),I=e=>!!e&&Number.isInteger(Number(e)),Ne=e=>e.endsWith("%")&&N(e.slice(0,-1)),a=e=>ne.test(e),C=e=>ke.test(e),Pe=new Set(["length","size","percentage"]),Me=e=>P(e,Pe,le),Se=e=>P(e,"position",le),Ie=new Set(["image","url"]),Oe=e=>P(e,Ie,Re),$e=e=>P(e,"",We),O=()=>!0,P=(e,o,r)=>{let t=ne.exec(e);return t?t[1]?typeof o=="string"?t[1]===o:o.has(t[1]):r(t[2]):!1},Ee=e=>ze.test(e)&&!je.test(e),le=()=>!1,We=e=>Ce.test(e),Re=e=>Ge.test(e),Ae=ye(()=>{let e=c("colors"),o=c("spacing"),r=c("blur"),t=c("brightness"),l=c("borderColor"),n=c("borderRadius"),i=c("borderSpacing"),s=c("borderWidth"),d=c("contrast"),b=c("grayscale"),m=c("hueRotate"),g=c("invert"),h=c("gap"),v=c("gradientColorStops"),f=c("gradientColorStopPositions"),p=c("inset"),x=c("margin"),w=c("opacity"),y=c("padding"),M=c("saturate"),G=c("scale"),$=c("sepia"),J=c("skew"),X=c("space"),Y=c("translate"),R=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",a,o],u=()=>[a,o],Z=()=>["",z,j],E=()=>["auto",N,a],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",a],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[N,a];return{cacheSize:500,separator:":",theme:{colors:[O],spacing:[z,j],blur:["none","",C,a],brightness:k(),borderColor:[e],borderRadius:["none","","full",C,a],borderSpacing:u(),borderWidth:Z(),contrast:k(),grayscale:S(),hueRotate:k(),invert:S(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Ne,j],inset:T(),margin:T(),opacity:k(),padding:u(),saturate:k(),scale:k(),sepia:S(),skew:k(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",a]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),a]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I,a]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",a]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",I,a]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",I,a]},a]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[I,a]},a]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",a]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",a]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",a,o]}],"min-w":[{"min-w":[a,o,"min","max","fit"]}],"max-w":[{"max-w":[a,o,"none","full","min","max","fit","prose",{screen:[C]},C]}],h:[{h:[a,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[a,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[a,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[a,o,"auto","min","max","fit"]}],"font-size":[{text:["base",C,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",D]}],"font-family":[{font:[O]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",a]}],"line-clamp":[{"line-clamp":["none",N,D]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,a]}],"list-image":[{"list-image":["none",a]}],"list-style-type":[{list:["none","disc","decimal",a]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,j]}],"underline-offset":[{"underline-offset":["auto",z,a]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",a]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",a]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),Se]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Me]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Oe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:W()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[z,a]}],"outline-w":[{outline:[z,j]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[z,j]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,$e]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[t]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",C,a]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[M]}],sepia:[{sepia:[$]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",a]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",a]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",a]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[I,a]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",a]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",a]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",a]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,j,D]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function Te(...e){return Ae(K(e))}export{se as n,Te as t}; diff --git a/docs/assets/cobol-CZP4RjnO.js b/docs/assets/cobol-CZP4RjnO.js new file mode 100644 index 0000000..b7784b0 --- /dev/null +++ b/docs/assets/cobol-CZP4RjnO.js @@ -0,0 +1 @@ +import{t as o}from"./cobol-DZNhVUeB.js";export{o as cobol}; diff --git a/docs/assets/cobol-DZNhVUeB.js b/docs/assets/cobol-DZNhVUeB.js new file mode 100644 index 0000000..fad6a54 --- /dev/null +++ b/docs/assets/cobol-DZNhVUeB.js @@ -0,0 +1 @@ +var M="builtin",e="comment",L="string",D="atom",G="number",n="keyword",t="header",B="def",i="link";function C(E){for(var T={},I=E.split(" "),R=0;R >= "),N={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function F(E,T){return E==="0"&&T.eat(/x/i)?(T.eatWhile(N.hex),!0):((E=="+"||E=="-")&&N.digit.test(T.peek())&&(T.eat(N.sign),E=T.next()),N.digit.test(E)?(T.eat(E),T.eatWhile(N.digit),T.peek()=="."&&(T.eat("."),T.eatWhile(N.digit)),T.eat(N.exponent)&&(T.eat(N.sign),T.eatWhile(N.digit)),!0):!1)}const r={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(E,T){if(T.indentStack==null&&E.sol()&&(T.indentation=6),E.eatSpace())return null;var I=null;switch(T.mode){case"string":for(var R=!1;(R=E.next())!=null;)if((R=='"'||R=="'")&&!E.match(/['"]/,!1)){T.mode=!1;break}I=L;break;default:var O=E.next(),A=E.column();if(A>=0&&A<=5)I=B;else if(A>=72&&A<=79)E.skipToEnd(),I=t;else if(O=="*"&&A==6)E.skipToEnd(),I=e;else if(O=='"'||O=="'")T.mode="string",I=L;else if(O=="'"&&!N.digit_or_colon.test(E.peek()))I=D;else if(O==".")I=i;else if(F(O,E))I=G;else{if(E.current().match(N.symbol))for(;A<71&&E.eat(N.symbol)!==void 0;)A++;I=U&&U.propertyIsEnumerable(E.current().toUpperCase())?n:P&&P.propertyIsEnumerable(E.current().toUpperCase())?M:S&&S.propertyIsEnumerable(E.current().toUpperCase())?D:null}}return I},indent:function(E){return E.indentStack==null?E.indentation:E.indentStack.indent}};export{r as t}; diff --git a/docs/assets/cobol-DcIidm82.js b/docs/assets/cobol-DcIidm82.js new file mode 100644 index 0000000..b306bbc --- /dev/null +++ b/docs/assets/cobol-DcIidm82.js @@ -0,0 +1 @@ +import{t as e}from"./html-Bz1QLM72.js";import{t as n}from"./java-B5fxTROr.js";var t=Object.freeze(JSON.parse(`{"displayName":"COBOL","fileTypes":["ccp","scbl","cobol","cbl","cblle","cblsrce","cblcpy","lks","pdv","cpy","copybook","cobcopy","fd","sel","scb","scbl","sqlcblle","cob","dds","def","src","ss","wks","bib","pco"],"name":"cobol","patterns":[{"match":"^([ *][ *][ *][ *][ *][ *])([Dd]\\\\s.*)$","name":"token.info-token.cobol"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([ *][ *][ *][ *][ *][ *])(/.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([ *][ *][ *][ *][ *][ *])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s])(/.*)$"},{"match":"^[0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s]$","name":"constant.numeric.cobol"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"variable.other.constant"}},"match":"^\\\\s+(78)\\\\s+([0-9A-Za-z][-0-9A-Z_a-z]+)"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"variable.other.constant"},"3":{"name":"keyword.identifers.cobol"}},"match":"^\\\\s+([0-9]+)\\\\s+([0-9A-Za-z][-0-9A-Z_a-z]+)\\\\s+((?i:constant))"},{"captures":{"1":{"name":"constant.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s])(/.*)$"},{"match":"^\\\\*.*$","name":"comment.line.cobol.fixed"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"entity.name.function.cobol"},"4":{"name":"keyword.control.directive.conditional.cobol"}},"match":"((?:^|\\\\s+)(?i:\\\\$set)\\\\s+)((?i:constant)\\\\s+)([0-9A-Za-z][-0-9A-Za-z]+\\\\s*)([-0-9A-Za-z]*)"},{"captures":{"1":{"name":"entity.name.function.preprocessor.cobol"},"2":{"name":"storage.modifier.import.cobol"},"3":{"name":"punctuation.begin.bracket.round.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.end.bracket.round.cobol"}},"match":"((?i:\\\\$\\\\s*set\\\\s+)(ilusing)(\\\\()(.*)(\\\\)))"},{"captures":{"1":{"name":"entity.name.function.preprocessor.cobol"},"2":{"name":"storage.modifier.import.cobol"},"3":{"name":"punctuation.definition.string.begin.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.definition.string.begin.cobol"}},"match":"((?i:\\\\$\\\\s*set\\\\s+)(ilusing)(\\")(.*)(\\"))"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"punctuation.definition.string.begin.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.definition.string.begin.cobol"}},"match":"((?i:\\\\$set))\\\\s+(\\\\w+)\\\\s*(\\")(\\\\w*)(\\")"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"punctuation.begin.bracket.round.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.end.bracket.round.cobol"}},"match":"((?i:\\\\$set))\\\\s+(\\\\w+)\\\\s*(\\\\()(.*)(\\\\))"},{"captures":{"0":{"name":"keyword.control.directive.conditional.cobol"},"1":{"name":"invalid.illegal.directive"},"2":{"name":"comment.line.set.cobol"}},"match":"(?:^|\\\\s+)(?i:\\\\$\\\\s*set\\\\s)((?i:01SHUFFLE|64KPARA|64KSECT|AUXOPT|CHIP|DATALIT|EANIM|EXPANDDATA|FIXING|FLAG-CHIP|MASM|MODEL|OPTSIZE|OPTSPEED|PARAS|PROTMODE|REGPARM|SEGCROSS|SEGSIZE|SIGNCOMPARE|SMALLDD|TABLESEGCROSS|TRICKLECHECK|\\\\s)+).*$"},{"captures":{"1":{"name":"keyword.control.directive.cobol"},"2":{"name":"entity.other.attribute-name.preprocessor.cobol"}},"match":"(\\\\$(?:(?i:region)|(?i:end-region)))(.*)$"},{"begin":"\\\\$(?i:doc)(.*)$","end":"\\\\$(?i:end-doc)(.*)$","name":"invalid.illegal.iscobol"},{"match":">>\\\\s*(?i:turn|page|listing|leap-seconds|d)\\\\s+.*$","name":"invalid.illegal.meta.preprocessor.cobolit"},{"match":"(?i:substitute(?:-case|))\\\\s+","name":"invalid.illegal.functions.cobolit"},{"captures":{"1":{"name":"invalid.illegal.keyword.control.directive.conditional.cobol"},"2":{"name":"invalid.illegal.entity.name.function.preprocessor.cobol"},"3":{"name":"invalid.illegal.entity.name.function.preprocessor.cobol"}},"match":"((((>>|\\\\$)\\\\s*)(?i:elif))(.*))$"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"entity.name.function.preprocessor.cobol"}},"match":"((((>>|\\\\$)\\\\s*)(?i:if|else|elif|end-if|end-evaluate|end|define|evaluate|when|display|call-convention|set))(.*))$"},{"captures":{"1":{"name":"comment.line.scantoken.cobol"},"2":{"name":"keyword.cobol"},"3":{"name":"string.cobol"}},"match":"(\\\\*>)\\\\s+(@[0-9A-Za-z][-0-9A-Za-z]+)\\\\s+(.*)$"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(>>.*)$","name":"strong comment.line.set.cobol"},{"match":"([NUnu][Xx]|[HXhx])'\\\\h*'","name":"constant.numeric.integer.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])'.*'","name":"invalid.illegal.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])\\"\\\\h*\\"","name":"constant.numeric.integer.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])\\".*\\"","name":"invalid.illegal.hexadecimal.cobol"},{"match":"[Bb]\\"[01]\\"","name":"constant.numeric.integer.boolean.cobol"},{"match":"[Bb]'[01]'","name":"constant.numeric.integer.boolean.cobol"},{"match":"[Oo]\\"[0-7]*\\"","name":"constant.numeric.integer.octal.cobol"},{"match":"[Oo]\\".*\\"","name":"invalid.illegal.octal.cobol"},{"match":"(#)([0-9A-Za-z][-0-9A-Za-z]+)","name":"meta.symbol.forced.cobol"},{"begin":"((?.*)$","name":"comment.line.modern"},{"match":"(:([-0-9A-Z_a-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+cics)","contentName":"meta.embedded.block.cics","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\()","name":"meta.symbol.cobol"},{"include":"#cics-keywords"},{"include":"#string-double-quoted-constant"},{"include":"#string-quoted-constant"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"variable.cobol"}]},{"begin":"(?i:exec\\\\s+dli)","contentName":"meta.embedded.block.dli","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\()","name":"meta.symbol.cobol"},{"include":"#dli-keywords"},{"include":"#dli-options"},{"include":"#string-double-quoted-constant"},{"include":"#string-quoted-constant"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"variable.cobol"}]},{"begin":"(?i:exec\\\\s+sqlims)","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-A-Za-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+ado)","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(--.*)$","name":"comment.line.sql"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-A-Za-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+html)","contentName":"meta.embedded.block.html","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"include":"text.html.basic"}]},{"begin":"(?i:exec\\\\s+java)","contentName":"meta.embedded.block.java","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"include":"source.java"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(\\")(CBL_.*)(\\")"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(\\")(PC_.*)(\\")"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.double.cobol"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(')(CBL_.*)(')"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(')(PC_.*)(')"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"('|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"},{"begin":"(?]|<=|>=|<>|[-*+/]|(?i.map(i=>d[i]); +var nu=Object.defineProperty;var iu=Object.getPrototypeOf;var su=Reflect.get;var mn=k=>{throw TypeError(k)};var ou=(k,x,T)=>x in k?nu(k,x,{enumerable:!0,configurable:!0,writable:!0,value:T}):k[x]=T;var f=(k,x,T)=>ou(k,typeof x!="symbol"?x+"":x,T),lr=(k,x,T)=>x.has(k)||mn("Cannot "+T);var M=(k,x,T)=>(lr(k,x,"read from private field"),T?T.call(k):x.get(k)),we=(k,x,T)=>x.has(k)?mn("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(k):x.set(k,T),z=(k,x,T,Ue)=>(lr(k,x,"write to private field"),Ue?Ue.call(k,T):x.set(k,T),T),ur=(k,x,T)=>(lr(k,x,"access private method"),T);var dn=(k,x,T)=>su(iu(k),T,x);import{s as _n}from"./chunk-LvLJmgfZ.js";import{t as lu}from"./react-BGmjiNul.js";import{t as uu}from"./jsx-runtime-DN_bIXfG.js";import"./cjs-Bj40p_Np.js";import{t as c}from"./preload-helper-BW0IMuFq.js";import{a as cr,c as cu,d as pu,f as hu,l as mu,m as du,n as _u,o as pr,p as fn,s as gn,t as fu,u as gu,__tla as yu}from"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";let yn,wu=Promise.all([(()=>{try{return yu}catch{}})()]).then(async()=>{var ee,U,se,te,_e,fe,ge,je,mr,oe;var k=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function x(e){return T(e)}function T(e){return Array.isArray(e)?Ue(e):e instanceof RegExp?e:typeof e=="object"?An(e):e}function Ue(e){let t=[];for(let r=0,a=e.length;r{for(let a in r)e[a]=r[a]}),e}function _r(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?_r(e.substring(0,e.length-1)):e.substr(~t+1)}var Et=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Fe=class{static hasCaptures(e){return e===null?!1:(Et.lastIndex=0,Et.test(e))}static replaceCaptures(e,t,r){return e.replace(Et,(a,n,i,s)=>{let l=r[parseInt(n||i,10)];if(l){let o=t.substring(l.start,l.end);for(;o[0]===".";)o=o.substring(1);switch(s){case"downcase":return o.toLowerCase();case"upcase":return o.toUpperCase();default:return o}}else return a})}};function fr(e,t){return et?1:0}function gr(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,a=t.length;if(r===a){for(let n=0;nthis._root.match(e)));this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(xn(e),t)}static createFromParsedTheme(e,t){return Sn(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(a=>Cn(e.parent,a.parentScopes));return r?new br(r.fontStyle,r.foreground,r.background):null}},bt=class wt{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let a of r)t=new wt(t,a);return t}static from(...t){let r=null;for(let a=0;a"){if(r===t.length-1)return!1;a=t[++r],n=!0}for(;e&&!In(e.scopeName,a);){if(n)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function In(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var br=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function xn(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],a=0;for(let n=0,i=t.length;n1&&(y=d.slice(0,d.length-1),y.reverse()),r[a++]=new Ln(_,y,n,o,u,h)}}return r}var Ln=class{constructor(e,t,r,a,n,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=a,this.foreground=n,this.background=i}},V=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(V||{});function Sn(e,t){e.sort((o,u)=>{let h=fr(o.scope,u.scope);return h!==0||(h=gr(o.parentScopes,u.parentScopes),h!==0)?h:o.index-u.index});let r=0,a="#000000",n="#ffffff";for(;e.length>=1&&e[0].scope==="";){let o=e.shift();o.fontStyle!==-1&&(r=o.fontStyle),o.foreground!==null&&(a=o.foreground),o.background!==null&&(n=o.background)}let i=new Tn(t),s=new br(r,i.getId(a),i.getId(n)),l=new Rn(new kt(0,null,-1,0,0),[]);for(let o=0,u=e.length;ot?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),a!==0&&(this.foreground=a),n!==0&&(this.background=n)}},Rn=class hr{constructor(t,r=[],a={}){f(this,"_rulesWithParentScopes");this._mainRule=t,this._children=a,this._rulesWithParentScopes=r}static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let a=0,n=0;for(;t.parentScopes[a]===">"&&a++,r.parentScopes[n]===">"&&n++,!(a>=t.parentScopes.length||n>=r.parentScopes.length);){let i=r.parentScopes[n].length-t.parentScopes[a].length;if(i!==0)return i;a++,n++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let a=t.indexOf("."),n,i;if(a===-1?(n=t,i=""):(n=t.substring(0,a),i=t.substring(a+1)),this._children.hasOwnProperty(n))return this._children[n].match(i)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(hr._cmpBySpecificity),r}insert(t,r,a,n,i,s){if(r===""){this._doInsertHere(t,a,n,i,s);return}let l=r.indexOf("."),o,u;l===-1?(o=r,u=""):(o=r.substring(0,l),u=r.substring(l+1));let h;this._children.hasOwnProperty(o)?h=this._children[o]:(h=new hr(this._mainRule.clone(),kt.cloneArr(this._rulesWithParentScopes)),this._children[o]=h),h.insert(t+1,u,a,n,i,s)}_doInsertHere(t,r,a,n,i){if(r===null){this._mainRule.acceptOverwrite(t,a,n,i);return}for(let s=0,l=this._rulesWithParentScopes.length;s>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!=0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,a,n,i,s,l){let o=W.getLanguageId(t),u=W.getTokenType(t),h=W.containsBalancedBrackets(t)?1:0,p=W.getFontStyle(t),m=W.getForeground(t),d=W.getBackground(t);return r!==0&&(o=r),a!==8&&(u=a),n!==null&&(h=n?1:0),i!==-1&&(p=i),s!==0&&(m=s),l!==0&&(d=l),(o<<0|u<<8|h<<10|p<<11|m<<15|d<<24)>>>0}};function Eu(e){return e}function bu(e){return e}function He(e,t){let r=[],a=On(e),n=a.next();for(;n!==null;){let o=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":o=1;break;case"L":o=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=a.next()}let u=s();if(r.push({matcher:u,priority:o}),n!==",")break;n=a.next()}return r;function i(){if(n==="-"){n=a.next();let o=i();return u=>!!o&&!o(u)}if(n==="("){n=a.next();let o=l();return n===")"&&(n=a.next()),o}if(kr(n)){let o=[];do o.push(n),n=a.next();while(kr(n));return u=>t(o,u)}return null}function s(){let o=[],u=i();for(;u;)o.push(u),u=i();return h=>o.every(p=>p(h))}function l(){let o=[],u=s();for(;u&&(o.push(u),n==="|"||n===",");){do n=a.next();while(n==="|"||n===",");u=s()}return h=>o.some(p=>p(h))}}function kr(e){return!!e&&!!e.match(/[\w\.:]+/)}function On(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let a=r[0];return r=t.exec(e),a}}}function Ar(e){typeof e.dispose=="function"&&e.dispose()}var Pe=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},vn=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Nn=class{constructor(){f(this,"_references",[]);f(this,"_seenReferenceKeys",new Set);f(this,"visitedRule",new Set)}get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Dn=class{constructor(e,t){f(this,"seenFullScopeRequests",new Set);f(this,"seenPartialScopeRequests",new Set);f(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Pe(this.initialScopeName)]}processQueue(){let e=this.Q;this.Q=[];let t=new Nn;for(let r of e)Vn(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof Pe){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function Vn(e,t,r,a){let n=r.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let i=r.lookup(t);e instanceof Pe?qe({baseGrammar:i,selfGrammar:n},a):At(e.ruleName,{baseGrammar:i,selfGrammar:n,repository:n.repository},a);let s=r.injections(e.scopeName);if(s)for(let l of s)a.add(new Pe(l))}function At(e,t,r){if(t.repository&&t.repository[e]){let a=t.repository[e];ze([a],t,r)}}function qe(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ze(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ze(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ze(e,t,r){for(let a of e){if(r.visitedRule.has(a))continue;r.visitedRule.add(a);let n=a.repository?dr({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&ze(a.patterns,{...t,repository:n},r);let i=a.include;if(!i)continue;let s=Cr(i);switch(s.kind){case 0:qe({...t,selfGrammar:t.baseGrammar},r);break;case 1:qe(t,r);break;case 2:At(s.ruleName,{...t,repository:n},r);break;case 3:case 4:let l=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(l){let o={baseGrammar:t.baseGrammar,selfGrammar:l,repository:n};s.kind===4?At(s.ruleName,o,r):qe(o,r)}else s.kind===4?r.add(new vn(s.scopeName,s.ruleName)):r.add(new Pe(s.scopeName));break}}}var $n=class{constructor(){f(this,"kind",0)}},Mn=class{constructor(){f(this,"kind",1)}},Gn=class{constructor(e){f(this,"kind",2);this.ruleName=e}},Bn=class{constructor(e){f(this,"kind",3);this.scopeName=e}},jn=class{constructor(e,t){f(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Cr(e){if(e==="$base")return new $n;if(e==="$self")return new Mn;let t=e.indexOf("#");return t===-1?new Bn(e):t===0?new Gn(e.substring(1)):new jn(e.substring(0,t),e.substring(t+1))}var Un=/\\(\d+)/,Ir=/\\(\d+)/g,Fn=-1,xr=-2;function ku(e){return e}function Au(e){return e}var Re=class{constructor(e,t,r,a){f(this,"$location");f(this,"id");f(this,"_nameIsCapturing");f(this,"_name");f(this,"_contentNameIsCapturing");f(this,"_contentName");this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=Fe.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Fe.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${_r(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Fe.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Fe.replaceCaptures(this._contentName,e,t)}},Wn=class extends Re{constructor(t,r,a,n,i){super(t,r,a,n);f(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,r){throw Error("Not supported!")}compile(t,r){throw Error("Not supported!")}compileAG(t,r,a,n){throw Error("Not supported!")}},Hn=class extends Re{constructor(t,r,a,n,i){super(t,r,a,null);f(this,"_match");f(this,"captures");f(this,"_cachedCompiledPatterns");this._match=new Oe(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns=(this._cachedCompiledPatterns.dispose(),null))}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,a,n){return this._getCachedCompiledPatterns(t).compileAG(t,a,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Lr=class extends Re{constructor(t,r,a,n,i){super(t,r,a,n);f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns=(this._cachedCompiledPatterns.dispose(),null))}collectPatterns(t,r){for(let a of this.patterns)t.getRule(a).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,a,n){return this._getCachedCompiledPatterns(t).compileAG(t,a,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ve,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ct=class extends Re{constructor(t,r,a,n,i,s,l,o,u,h){super(t,r,a,n);f(this,"_begin");f(this,"beginCaptures");f(this,"_end");f(this,"endHasBackReferences");f(this,"endCaptures");f(this,"applyEndPatternLast");f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");this._begin=new Oe(i,this.id),this.beginCaptures=s,this._end=new Oe(l||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=u||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns=(this._cachedCompiledPatterns.dispose(),null))}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,a,n){return this._getCachedCompiledPatterns(t,r).compileAG(t,a,n)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(let a of this.patterns)t.getRule(a).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Xe=class extends Re{constructor(t,r,a,n,i,s,l,o,u){super(t,r,a,n);f(this,"_begin");f(this,"beginCaptures");f(this,"whileCaptures");f(this,"_while");f(this,"whileHasBackReferences");f(this,"hasMissingPatterns");f(this,"patterns");f(this,"_cachedCompiledPatterns");f(this,"_cachedCompiledWhilePatterns");this._begin=new Oe(i,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=new Oe(l,xr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns=(this._cachedCompiledPatterns.dispose(),null)),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns=(this._cachedCompiledWhilePatterns.dispose(),null))}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,a,n){return this._getCachedCompiledPatterns(t).compileAG(t,a,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ve;for(let r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,a,n){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,a,n)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ve,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"\uFFFF"),this._cachedCompiledWhilePatterns}},Sr=class ${static createCaptureRule(t,r,a,n,i){return t.registerRule(s=>new Wn(r,s,a,n,i))}static getCompiledRuleId(t,r,a){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new Hn(t.$vscodeTextmateLocation,t.id,t.name,t.match,$._compileCaptures(t.captures,r,a));if(t.begin===void 0){t.repository&&(a=dr({},a,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Lr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,$._compilePatterns(i,r,a))}return t.while?new Xe(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,$._compileCaptures(t.beginCaptures||t.captures,r,a),t.while,$._compileCaptures(t.whileCaptures||t.captures,r,a),$._compilePatterns(t.patterns,r,a)):new Ct(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,$._compileCaptures(t.beginCaptures||t.captures,r,a),t.end,$._compileCaptures(t.endCaptures||t.captures,r,a),t.applyEndPatternLast,$._compilePatterns(t.patterns,r,a))}),t.id}static _compileCaptures(t,r,a){let n=[];if(t){let i=0;for(let s in t){if(s==="$vscodeTextmateLocation")continue;let l=parseInt(s,10);l>i&&(i=l)}for(let s=0;s<=i;s++)n[s]=null;for(let s in t){if(s==="$vscodeTextmateLocation")continue;let l=parseInt(s,10),o=0;t[s].patterns&&(o=$.getCompiledRuleId(t[s],r,a)),n[l]=$.createCaptureRule(r,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,o)}}return n}static _compilePatterns(t,r,a){let n=[];if(t)for(let i=0,s=t.length;it.substring(n.start,n.end));return Ir.lastIndex=0,this.source.replace(Ir,(n,i)=>wr(a[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw Error("This method should only be called if the source is a string");let t=[],r=[],a=[],n=[],i,s,l,o;for(i=0,s=this.source.length;it.source),this._items.map(t=>t.ruleId))),this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){return new Tr(e,this._items.map(a=>a.resolveAnchors(t,r)),this._items.map(a=>a.ruleId))}},Tr=class{constructor(e,t,r){f(this,"scanner");this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;tnew It(this._scopeToLanguage(t),this._toStandardTokenType(t))));this._defaultAttributes=new It(t,8),this._embeddedLanguagesMatcher=new zn(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?ee._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match(ee.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}},f(ee,"_NULL_SCOPE_METADATA",new It(0,0)),f(ee,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),ee),zn=class{constructor(e){f(this,"values");f(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([r,a])=>wr(r));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<"u"&&{}.VSCODE_TEXTMATE_DEBUG;var Pr=!1,Rr=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Or(e,t,r,a,n,i,s,l){let o=t.content.length,u=!1,h=-1;if(s){let d=Xn(e,t,r,a,n,i);n=d.stack,a=d.linePos,r=d.isFirstLine,h=d.anchorPosition}let p=Date.now();for(;!u;){if(l!==0&&Date.now()-p>l)return new Rr(n,!0);m()}return new Rr(n,!1);function m(){let d=Qn(e,t,r,a,n,h);if(!d){i.produce(n,o),u=!0;return}let _=d.captureIndices,y=d.matchedRuleId,E=_&&_.length>0?_[0].end>a:!1;if(y===Fn){let g=n.getRule(e);i.produce(n,_[0].start),n=n.withContentNameScopesList(n.nameScopesList),Ne(e,t,r,n,i,g.endCaptures,_),i.produce(n,_[0].end);let w=n;if(n=n.parent,h=w.getAnchorPos(),!E&&w.getEnterPos()===a){n=w,i.produce(n,o),u=!0;return}}else{let g=e.getRule(y);i.produce(n,_[0].start);let w=n,b=g.getName(t.content,_),C=n.contentNameScopesList.pushAttributed(b,e);if(n=n.push(y,a,h,_[0].end===o,null,C,C),g instanceof Ct){let I=g;Ne(e,t,r,n,i,I.beginCaptures,_),i.produce(n,_[0].end),h=_[0].end;let S=I.getContentName(t.content,_),L=C.pushAttributed(S,e);if(n=n.withContentNameScopesList(L),I.endHasBackReferences&&(n=n.withEndRule(I.getEndWithResolvedBackReferences(t.content,_))),!E&&w.hasSameRuleAs(n)){n=n.pop(),i.produce(n,o),u=!0;return}}else if(g instanceof Xe){let I=g;Ne(e,t,r,n,i,I.beginCaptures,_),i.produce(n,_[0].end),h=_[0].end;let S=I.getContentName(t.content,_),L=C.pushAttributed(S,e);if(n=n.withContentNameScopesList(L),I.whileHasBackReferences&&(n=n.withEndRule(I.getWhileWithResolvedBackReferences(t.content,_))),!E&&w.hasSameRuleAs(n)){n=n.pop(),i.produce(n,o),u=!0;return}}else if(Ne(e,t,r,n,i,g.captures,_),i.produce(n,_[0].end),n=n.pop(),!E){n=n.safePop(),i.produce(n,o),u=!0;return}}_[0].end>a&&(a=_[0].end,r=!1)}}function Xn(e,t,r,a,n,i){let s=n.beginRuleCapturedEOL?0:-1,l=[];for(let o=n;o;o=o.pop()){let u=o.getRule(e);u instanceof Xe&&l.push({rule:u,stack:o})}for(let o=l.pop();o;o=l.pop()){let{ruleScanner:u,findOptions:h}=Kn(o.rule,e,o.stack.endRule,r,a===s),p=u.findNextMatchSync(t,a,h);if(p){if(p.ruleId!==xr){n=o.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(i.produce(o.stack,p.captureIndices[0].start),Ne(e,t,r,o.stack,i,o.rule.whileCaptures,p.captureIndices),i.produce(o.stack,p.captureIndices[0].end),s=p.captureIndices[0].end,p.captureIndices[0].end>a&&(a=p.captureIndices[0].end,r=!1))}else{n=o.stack.pop();break}}return{stack:n,linePos:a,anchorPosition:s,isFirstLine:r}}function Qn(e,t,r,a,n,i){let s=Jn(e,t,r,a,n,i),l=e.getInjections();if(l.length===0)return s;let o=Zn(l,e,t,r,a,n,i);if(!o)return s;if(!s)return o;let u=s.captureIndices[0].start,h=o.captureIndices[0].start;return h=l)&&(l=w,o=g.captureIndices,u=g.ruleId,h=_.priority,l===n))break}return o?{priorityMatch:h===-1,captureIndices:o,matchedRuleId:u}:null}function vr(e,t,r,a,n){return Pr?{ruleScanner:e.compile(t,r),findOptions:Nr(a,n)}:{ruleScanner:e.compileAG(t,r,a,n),findOptions:0}}function Kn(e,t,r,a,n){return Pr?{ruleScanner:e.compileWhile(t,r),findOptions:Nr(a,n)}:{ruleScanner:e.compileWhileAG(t,r,a,n),findOptions:0}}function Nr(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function Ne(e,t,r,a,n,i,s){if(i.length===0)return;let l=t.content,o=Math.min(i.length,s.length),u=[],h=s[0].end;for(let p=0;ph)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,d.start):n.produce(a,d.start),m.retokenizeCapturedWithRuleId){let y=m.getName(l,s),E=a.contentNameScopesList.pushAttributed(y,e),g=m.getContentName(l,s),w=E.pushAttributed(g,e),b=a.push(m.retokenizeCapturedWithRuleId,d.start,-1,!1,null,E,w),C=e.createOnigString(l.substring(0,d.end));Or(e,C,r&&d.start===0,d.start,b,n,!1,0),Ar(C);continue}let _=m.getName(l,s);if(_!==null){let y=(u.length>0?u[u.length-1].scopes:a.contentNameScopesList).pushAttributed(_,e);u.push(new Yn(y,d.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Yn=class{constructor(e,t){f(this,"scopes");f(this,"endPos");this.scopes=e,this.endPos=t}};function ei(e,t,r,a,n,i,s,l){return new ri(e,t,r,a,n,i,s,l)}function Dr(e,t,r,a,n){let i=He(t,Qe),s=Sr.getCompiledRuleId(r,a,n.repository);for(let l of i)e.push({debugSelector:t,matcher:l.matcher,ruleId:s,grammar:n,priority:l.priority})}function Qe(e,t){if(t.length{for(let n=r;nr&&e.substr(0,r)===t&&e[r]==="."}var ri=class{constructor(e,t,r,a,n,i,s,l){f(this,"_rootId");f(this,"_lastRuleId");f(this,"_ruleId2desc");f(this,"_includedGrammars");f(this,"_grammarRepository");f(this,"_grammar");f(this,"_injections");f(this,"_basicScopeAttributesProvider");f(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=l,this._basicScopeAttributesProvider=new qn(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Vr(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(let o of Object.keys(n)){let u=He(o,Qe);for(let h of u)this._tokenTypeMatchers.push({matcher:h.matcher,type:n[o]})}}get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},t=[],r=this._rootScopeName,a=e.lookup(r);if(a){let n=a.injections;if(n)for(let s in n)Dr(t,s,n[s],this,a);let i=this._grammarRepository.injections(r);i&&i.forEach(s=>{let l=this.getExternalGrammar(s);if(l){let o=l.injectionSelector;o&&Dr(t,o,l,this,l)}})}return t.sort((n,i)=>n.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Vr(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let a=this._tokenize(e,t,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,r=0){let a=this._tokenize(e,t,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,r,a){this._rootId===-1&&(this._rootId=Sr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!t||t===xt.NULL){n=!0;let u=this._basicScopeAttributesProvider.getDefaultAttributes(),h=this.themeProvider.getDefaults(),p=Ee.set(0,u.languageId,u.tokenType,null,h.fontStyle,h.foregroundId,h.backgroundId),m=this.getRule(this._rootId).getName(null,null),d;d=m?De.createRootAndLookUpScopeName(m,p,this):De.createRoot("unknown",p),t=new xt(null,this._rootId,-1,-1,!1,null,d,d)}else n=!1,t.reset();e+=` +`;let i=this.createOnigString(e),s=i.content.length,l=new ni(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),o=Or(this,i,n,0,t,l,!0,a);return Ar(i),{lineLength:s,lineTokens:l,ruleStack:o.stack,stoppedEarly:o.stoppedEarly}}};function Vr(e,t){return e=x(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var De=class Q{constructor(t,r,a){this.parent=t,this.scopePath=r,this.tokenAttributes=a}static fromExtension(t,r){let a=t,n=(t==null?void 0:t.scopePath)??null;for(let i of r)n=bt.push(n,i.scopeNames),a=new Q(a,n,i.encodedTokenAttributes);return a}static createRoot(t,r){return new Q(null,new bt(null,t),r)}static createRootAndLookUpScopeName(t,r,a){let n=a.getMetadataForScope(t),i=new bt(null,t),s=a.themeProvider.themeMatch(i);return new Q(null,i,Q.mergeAttributes(r,n,s))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Q.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,a){let n=-1,i=0,s=0;return a!==null&&(n=a.fontStyle,i=a.foregroundId,s=a.backgroundId),Ee.set(t,r.languageId,r.tokenType,null,n,i,s)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return Q._pushAttributed(this,t,r);let a=t.split(/ /g),n=this;for(let i of a)n=Q._pushAttributed(n,i,r);return n}static _pushAttributed(t,r,a){let n=a.getMetadataForScope(r),i=t.scopePath.push(r),s=a.themeProvider.themeMatch(i);return new Q(t,i,Q.mergeAttributes(t.tokenAttributes,n,s))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var n;let r=[],a=this;for(;a&&a!==t;)r.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(((n=a.parent)==null?void 0:n.scopePath)??null)}),a=a.parent;return a===t?r.reverse():void 0}},xt=(U=class{constructor(t,r,a,n,i,s,l,o){f(this,"_stackElementBrand");f(this,"_enterPos");f(this,"_anchorPos");f(this,"depth");this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=n}equals(t){return t===null?!1:U._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?De.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){U._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,a,n,i,s,l){return new U(this,t,r,a,n,i,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){var a,n;return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${(a=this.nameScopesList)==null?void 0:a.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new U(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){var t,r,a;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((r=this.nameScopesList)==null?void 0:r.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((a=this.contentNameScopesList)==null?void 0:a.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,r){let a=De.fromExtension((t==null?void 0:t.nameScopesList)??null,r.nameScopesList);return new U(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,a,De.fromExtension(a,r.contentNameScopesList))}},f(U,"NULL",new U(null,0,0,0,!1,null,null,null)),U),ai=class{constructor(e,t){f(this,"balancedBracketScopes");f(this,"unbalancedBracketScopes");f(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):He(r,Qe).map(a=>a.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>He(r,Qe).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ni=class{constructor(e,t,r,a){f(this,"_emitBinaryTokens");f(this,"_lineText");f(this,"_tokens");f(this,"_binaryTokens");f(this,"_lastTokenEndIndex");f(this,"_tokenTypeOverrides");this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var a;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=(e==null?void 0:e.tokenAttributes)??0,i=!1;if((a=this.balancedBracketSelectors)!=null&&a.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let s=(e==null?void 0:e.getScopeNames())??[];for(let l of this._tokenTypeOverrides)l.matcher(s)&&(n=Ee.set(n,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(s))}if(i&&(n=Ee.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let r=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let a=0,n=this._binaryTokens.length;a0;)i.Q.map(s=>this._loadSingleGrammar(s.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,a,n)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,a)}_grammarForScopeName(e,t=0,r=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,r,a,n)}},Lt=xt.NULL,oi=/["&'<>`]/g,li=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ui=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ci=/[|\\{}()[\]^$+*?.]/g,$r=new WeakMap;function pi(e,t){if(e=e.replace(t.subset?hi(t.subset):oi,a),t.subset||t.escapeOnly)return e;return e.replace(li,r).replace(ui,a);function r(n,i,s){return t.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function a(n,i,s){return t.format(n.charCodeAt(0),s.charCodeAt(i+1),t)}}function hi(e){let t=$r.get(e);return t||(t=mi(e),$r.set(e,t)),t}function mi(e){let t=[],r=-1;for(;++r",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},wi=["cent","copy","divide","gt","lt","not","para","times"];var Mr={}.hasOwnProperty,Tt={},Je;for(Je in St)Mr.call(St,Je)&&(Tt[St[Je]]=Je);var Ei=/[^\dA-Za-z]/;function bi(e,t,r,a){let n=String.fromCharCode(e);if(Mr.call(Tt,n)){let i=Tt[n],s="&"+i;return r&&yi.includes(i)&&!wi.includes(i)&&(!a||t&&t!==61&&Ei.test(String.fromCharCode(t)))?s:s+";"}return""}function ki(e,t,r){let a=_i(e,t,r.omitOptionalSemicolons),n;if((r.useNamedReferences||r.useShortestReferences)&&(n=bi(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let i=gi(e,t,r.omitOptionalSemicolons);i.length|^->||--!>|"],Ii=["<",">"];function xi(e,t,r,a){return a.settings.bogusComments?"":"";function n(i){return be(i,Object.assign({},a.settings.characterReferences,{subset:Ii}))}}function Li(e,t,r,a){return""}const R=Br(1),Gr=Br(-1);var Si=[];function Br(e){return t;function t(r,a,n){let i=r?r.children:Si,s=(a||0)+e,l=i[s];if(!n)for(;l&&pr(l);)s+=e,l=i[s];return l}}var Ti={}.hasOwnProperty;function jr(e){return t;function t(r,a,n){return Ti.call(e,r.tagName)&&e[r.tagName](r,a,n)}}const Pt=jr({body:Ri,caption:Rt,colgroup:Rt,dd:Di,dt:Ni,head:Rt,html:Pi,li:vi,optgroup:Vi,option:$i,p:Oi,rp:Ur,rt:Ur,tbody:Gi,td:Fr,tfoot:Bi,th:Fr,thead:Mi,tr:ji});function Rt(e,t,r){let a=R(r,t,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&pr(a.value.charAt(0)))}function Pi(e,t,r){let a=R(r,t);return!a||a.type!=="comment"}function Ri(e,t,r){let a=R(r,t);return!a||a.type!=="comment"}function Oi(e,t,r){let a=R(r,t);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function vi(e,t,r){let a=R(r,t);return!a||a.type==="element"&&a.tagName==="li"}function Ni(e,t,r){let a=R(r,t);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function Di(e,t,r){let a=R(r,t);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function Ur(e,t,r){let a=R(r,t);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function Vi(e,t,r){let a=R(r,t);return!a||a.type==="element"&&a.tagName==="optgroup"}function $i(e,t,r){let a=R(r,t);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function Mi(e,t,r){let a=R(r,t);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function Gi(e,t,r){let a=R(r,t);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function Bi(e,t,r){return!R(r,t)}function ji(e,t,r){let a=R(r,t);return!a||a.type==="element"&&a.tagName==="tr"}function Fr(e,t,r){let a=R(r,t);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}const Ui=jr({body:Hi,colgroup:qi,head:Wi,html:Fi,tbody:zi});function Fi(e){let t=R(e,-1);return!t||t.type!=="comment"}function Wi(e){let t=new Set;for(let a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(t.has(a.tagName))return!1;t.add(a.tagName)}let r=e.children[0];return!r||r.type==="element"}function Hi(e){let t=R(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&pr(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function qi(e,t,r){let a=Gr(r,t),n=R(e,-1,!0);return r&&a&&a.type==="element"&&a.tagName==="colgroup"&&Pt(a,r.children.indexOf(a),r)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function zi(e,t,r){let a=Gr(r,t),n=R(e,-1);return r&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&Pt(a,r.children.indexOf(a),r)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}var Ze={name:[[` +\f\r &/=>`.split(""),` +\f\r "&'/=>\``.split("")],[`\0 +\f\r "&'/<=>`.split(""),`\0 +\f\r "&'/<=>\``.split("")]],unquoted:[[` +\f\r &>`.split(""),`\0 +\f\r "&'<=>\``.split("")],[`\0 +\f\r "&'<=>\``.split(""),`\0 +\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Xi(e,t,r,a){let n=a.schema,i=n.space==="svg"?!1:a.settings.omitOptionalTags,s=n.space==="svg"?a.settings.closeEmptyElements:a.settings.voids.includes(e.tagName.toLowerCase()),l=[],o;n.space==="html"&&e.tagName==="svg"&&(a.schema=fn);let u=Qi(a,e.properties),h=a.all(n.space==="html"&&e.tagName==="template"?e.content:e);return a.schema=n,h&&(s=!1),(u||!i||!Ui(e,t,r))&&(l.push("<",e.tagName,u?" "+u:""),s&&(n.space==="svg"||a.settings.closeSelfClosing)&&(o=u.charAt(u.length-1),(!a.settings.tightSelfClosing||o==="/"||o&&o!=='"'&&o!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(h),!s&&(!i||!Pt(e,t,r))&&l.push(""),l.join("")}function Qi(e,t){let r=[],a=-1,n;if(t){for(n in t)if(t[n]!==null&&t[n]!==void 0){let i=Ji(e,n,t[n]);i&&r.push(i)}}for(;++agn(r,e.alternative)&&(s=e.alternative),l=s+be(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Ze.single:Ze.double)[n][i],attribute:!0}))+s),o+(l&&"="+l))}var Zi=["<","&"];function Wr(e,t,r,a){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:be(e.value,Object.assign({},a.settings.characterReferences,{subset:Zi}))}function Ki(e,t,r,a){return a.settings.allowDangerousHtml?e.value:Wr(e,t,r,a)}function Yi(e,t,r,a){return a.all(e)}const es=mu("type",{invalid:ts,unknown:rs,handlers:{comment:xi,doctype:Li,element:Xi,raw:Ki,root:Yi,text:Wr}});function ts(e){throw Error("Expected node, not `"+e+"`")}function rs(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var as={},ns={},is=[];function ss(e,t){let r=t||as,a=r.quote||'"',n=a==='"'?"'":'"';if(a!=='"'&&a!=="'")throw Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:os,all:ls,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||cu,characterReferences:r.characterReferences||ns,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?fn:hu,quote:a,alternative:n}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function os(e,t,r){return es(e,t,r,this)}function ls(e){let t=[],r=e&&e.children||is,a=-1;for(;++at.default||t)}function Ot(e){return!e||["plaintext","txt","text","plain"].includes(e)}function qr(e){return e==="ansi"||Ot(e)}function vt(e){return e==="none"}function zr(e){return vt(e)}function Xr(e,t){var a;if(!t)return e;e.properties||(e.properties={}),(a=e.properties).class||(a.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let r=Array.isArray(t)?t:t.split(/\s+/g);for(let n of r)n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function Ye(e,t=!1){var i;let r=e.split(/(\r?\n)/g),a=0,n=[];for(let s=0;sn);function r(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=n,s=0;for(let l of t){if(ii&&n[i])}var Nt="light-dark()",hs=["color","background-color"];function ms(e,t){let r=0,a=[];for(let n of t)n>r&&a.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return ra-n);return r.length?e.map(a=>a.flatMap(n=>{let i=r.filter(s=>n.offsets-n.offset).sort((s,l)=>s-l);return i.length?ms(n,i):n})):e}function _s(e,t,r,a,n="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(h=>et(e.variants[h])),l=new Set(s.flatMap(h=>Object.keys(h))),o={},u=(h,p)=>{let m=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return r+t[h]+(p==="color"?"":m)};return s.forEach((h,p)=>{for(let m of l){let d=h[m]||"inherit";if(p===0&&a&&hs.includes(m))if(a===Nt&&s.length>1){let _=t.findIndex(E=>E==="light"),y=t.findIndex(E=>E==="dark");if(_===-1||y===-1)throw new k('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');o[m]=`light-dark(${s[_][m]||"inherit"}, ${s[y][m]||"inherit"})`,n==="css-vars"&&(o[u(p,m)]=d)}else o[m]=d;else n==="css-vars"&&(o[u(p,m)]=d)}}),i.htmlStyle=o,i}function et(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&V.Italic&&(t["font-style"]="italic"),e.fontStyle&V.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&V.Underline&&r.push("underline"),e.fontStyle&V.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function Dt(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}var Qr=new WeakMap;function tt(e,t){Qr.set(e,t)}function Ve(e){return Qr.get(e)}var rt=class bn{constructor(...t){f(this,"_stacks",{});f(this,"lang");if(t.length===2){let[r,a]=t;this.lang=a,this._stacks=r}else{let[r,a,n]=t;this.lang=a,this._stacks={[n]:r}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new bn(Object.fromEntries(us(r).map(a=>[a,Lt])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return fs(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function fs(e){let t=[],r=new Set;function a(n){var s;if(r.has(n))return;r.add(n);let i=(s=n==null?void 0:n.nameScopesList)==null?void 0:s.scopeName;i&&t.push(i),n.parent&&a(n.parent)}return a(e),t}function gs(e,t){if(!(e instanceof rt))throw new k("Invalid grammar state");return e.getInternalStack(t)}function ys(){let e=new WeakMap;function t(r){if(!e.has(r.meta)){let a=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new k(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...n.indexToPos(s),offset:s}}else{let l=n.lines[s.line];if(l===void 0)throw new k(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let o=s.character;if(o<0&&(o=l.length+o),o<0||o>l.length)throw new k(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:o,offset:n.posToIndex(s.line,o)}}},n=cs(r.source),i=(r.options.decorations||[]).map(s=>({...s,start:a(s.start),end:a(s.end)}));ws(i),e.set(r.meta,{decorations:i,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){var a;if((a=this.options.decorations)!=null&&a.length)return ds(r,t(this).decorations.flatMap(n=>[n.start.offset,n.end.offset]))},code(r){var h;if(!((h=this.options.decorations)!=null&&h.length))return;let a=t(this),n=Array.from(r.children).filter(p=>p.type==="element"&&p.tagName==="span");if(n.length!==a.converter.lines.length)throw new k(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${a.converter.lines.length}). Failed to apply decorations.`);function i(p,m,d,_){let y=n[p],E="",g=-1,w=-1;if(m===0&&(g=0),d===0&&(w=0),d===1/0&&(w=y.children.length),g===-1||w===-1)for(let C=0;Cg);return p.tagName=m.tagName||"span",p.properties={...p.properties,..._,class:p.properties.class},(E=m.properties)!=null&&E.class&&Xr(p,m.properties.class),p=y(p,d)||p,p}let o=[],u=a.decorations.sort((p,m)=>m.start.offset-p.start.offset||p.end.offset-m.end.offset);for(let p of u){let{start:m,end:d}=p;if(m.line===d.line)i(m.line,m.character,d.character,p);else if(m.lines(_,p));i(d.line,0,d.character,p)}}o.forEach(p=>p())}}}function ws(e){for(let t=0;tr.end.offset)throw new k(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let a=t+1;aNumber.parseInt(a));return r.length!==3||r.some(a=>Number.isNaN(a))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){let r=e.shift();if(r)return{type:"table",index:Number(r)}}}function As(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)Vt[a]&&t.push({type:"setDecoration",value:Vt[a]});else if(a<=29){let n=Vt[a-20];n&&(t.push({type:"resetDecoration",value:n}),n==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:le[a-30]}});else if(a===38){let n=Zr(e);n&&t.push({type:"setForegroundColor",value:n})}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:le[a-40]}});else if(a===48){let n=Zr(e);n&&t.push({type:"setBackgroundColor",value:n})}else a===49?t.push({type:"resetBackgroundColor"}):a===53?t.push({type:"setDecoration",value:"overline"}):a===55?t.push({type:"resetDecoration",value:"overline"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:le[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:le[a-100+8]}})}return t}function Cs(){let e=null,t=null,r=new Set;return{parse(a){let n=[],i=0;do{let s=ks(a,i),l=s.sequence?a.substring(i,s.startPosition):a.substring(i);if(l.length>0&&n.push({value:l,foreground:e,background:t,decorations:new Set(r)}),s.sequence){let o=As(s.sequence);for(let u of o)u.type==="resetAll"?(e=null,t=null,r.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&r.delete(u.value);for(let u of o)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&r.add(u.value)}i=s.position}while(iMath.max(0,Math.min(o,255)).toString(16).padStart(2,"0")).join("")}`}let a;function n(){if(a)return a;a=[];for(let u=0;u{var o;return[l,(o=e.colors)==null?void 0:o[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]}))),s=Cs();return n.map(l=>s.parse(l[0]).map(o=>{let u,h;o.decorations.has("reverse")?(u=o.background?i.value(o.background):e.bg,h=o.foreground?i.value(o.foreground):e.fg):(u=o.foreground?i.value(o.foreground):e.fg,h=o.background?i.value(o.background):void 0),u=ae(u,a),h=ae(h,a),o.decorations.has("dim")&&(u=Ss(u));let p=V.None;return o.decorations.has("bold")&&(p|=V.Bold),o.decorations.has("italic")&&(p|=V.Italic),o.decorations.has("underline")&&(p|=V.Underline),o.decorations.has("strikethrough")&&(p|=V.Strikethrough),{content:o.value,offset:l[1],color:u,bgColor:h,fontStyle:p}}))}function Ss(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let a=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${a}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(a=>`${a}${a}`).join("")}80`;let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function $t(e,t,r={}){let{lang:a="text",theme:n=e.getLoadedThemes()[0]}=r;if(Ot(a)||vt(n))return Ye(t).map(o=>[{content:o[0],offset:o[1]}]);let{theme:i,colorMap:s}=e.setTheme(n);if(a==="ansi")return Ls(i,t,r);let l=e.getLanguage(a);if(r.grammarState){if(r.grammarState.lang!==l.name)throw new k(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${l.name}"`);if(!r.grammarState.themes.includes(i.name))throw new k(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Ps(t,l,i,s,r)}function Ts(...e){if(e.length===2)return Ve(e[1]);let[t,r,a={}]=e,{lang:n="text",theme:i=t.getLoadedThemes()[0]}=a;if(Ot(n)||vt(i))throw new k("Plain language does not have grammar state");if(n==="ansi")throw new k("ANSI language does not have grammar state");let{theme:s,colorMap:l}=t.setTheme(i),o=t.getLanguage(n);return new rt(nt(r,o,s,l,a).stateStack,o.name,s.name)}function Ps(e,t,r,a,n){let i=nt(e,t,r,a,n),s=new rt(nt(e,t,r,a,n).stateStack,t.name,r.name);return tt(i.tokens,s),i.tokens}function nt(e,t,r,a,n){let i=Ke(r,n),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=n,o=Ye(e),u=n.grammarState?gs(n.grammarState,r.name)??Lt:n.grammarContextCode==null?Lt:nt(n.grammarContextCode,t,r,a,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack,h=[],p=[];for(let m=0,d=o.length;m0&&_.length>=s){h=[],p.push([{content:_,offset:y,color:"",fontStyle:0}]);continue}let E,g,w;n.includeExplanation&&(E=t.tokenizeLine(_,u,l),g=E.tokens,w=0);let b=t.tokenizeLine2(_,u,l),C=b.tokens.length/2;for(let I=0;Ior.trim());break;case"object":Te=re.scope;break;default:continue}pn.push({settings:re,selectors:Te.map(or=>or.split(/ /))})}sr.explanation=[];let hn=0;for(;S+hn({scopeName:t}))}function Os(e,t){let r=[];for(let a=0,n=t.length;a=0&&n>=0;)Kr(e[a],r[n])&&--a,--n;return a===-1}function Ns(e,t,r){let a=[];for(let{selectors:n,settings:i}of e)for(let s of n)if(vs(s,t,r)){a.push(i);break}return a}function Yr(e,t,r){let a=Object.entries(r.themes).filter(o=>o[1]).map(o=>({color:o[0],theme:o[1]})),n=a.map(o=>{let u=$t(e,t,{...r,theme:o.theme});return{tokens:u,state:Ve(u),theme:typeof o.theme=="string"?o.theme:o.theme.name}}),i=Ds(...n.map(o=>o.tokens)),s=i[0].map((o,u)=>o.map((h,p)=>{let m={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in r&&r.includeExplanation&&(m.explanation=h.explanation),i.forEach((d,_)=>{let{content:y,explanation:E,offset:g,...w}=d[u][p];m.variants[a[_].color]=w}),m})),l=n[0].state?new rt(Object.fromEntries(n.map(o=>{var u;return[o.theme,(u=o.state)==null?void 0:u.getInternalStack(o.theme)]})),n[0].state.lang):void 0;return l&&tt(s,l),s}function Ds(...e){let t=e.map(()=>[]),r=e.length;for(let a=0;ao[a]),i=t.map(()=>[]);t.forEach((o,u)=>o.push(i[u]));let s=n.map(()=>0),l=n.map(o=>o[0]);for(;l.every(o=>o);){let o=Math.min(...l.map(u=>u.content.length));for(let u=0;ug[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,w)=>g.color===u?-1:w.color===u?1:0);if(m.length===0)throw new k("`themes` option must not be empty");let d=Yr(e,t,r);if(o=Ve(d),u&&Nt!==u&&!m.find(g=>g.color===u))throw new k(`\`themes\` option must contain the defaultColor key \`${u}\``);let _=m.map(g=>e.getTheme(g.theme)),y=m.map(g=>g.color);i=d.map(g=>g.map(w=>_s(w,y,h,u,p))),o&&tt(i,o);let E=m.map(g=>Ke(g.theme,r));n=ea(m,_,E,h,u,"fg",p),a=ea(m,_,E,h,u,"bg",p),s=`shiki-themes ${_.map(g=>g.name).join(" ")}`,l=u?void 0:[n,a].join(";")}else if("theme"in r){let u=Ke(r.theme,r);i=$t(e,t,r);let h=e.getTheme(r.theme);a=ae(h.bg,u),n=ae(h.fg,u),s=h.name,o=Ve(i)}else throw new k("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:a,themeName:s,rootStyle:l,grammarState:o}}function ea(e,t,r,a,n,i,s){return e.map((l,o)=>{let u=ae(t[o][i],r[o])||"inherit",h=`${a+l.color}${i==="bg"?"-bg":""}:${u}`;if(o===0&&n){if(n===Nt&&e.length>1){let p=e.findIndex(d=>d.color==="light"),m=e.findIndex(d=>d.color==="dark");if(p===-1||m===-1)throw new k('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${ae(t[p][i],r[p])||"inherit"}, ${ae(t[m][i],r[m])||"inherit"});${h}`}return u}return s==="css-vars"?h:null}).filter(l=>!!l).join(";")}function st(e,t,r,a={meta:{},options:r,codeToHast:(n,i)=>st(e,n,i),codeToTokens:(n,i)=>it(e,n,i)}){var _,y;let n=t;for(let E of at(r))n=((_=E.preprocess)==null?void 0:_.call(a,n,r))||n;let{tokens:i,fg:s,bg:l,themeName:o,rootStyle:u,grammarState:h}=it(e,n,r),{mergeWhitespaces:p=!0,mergeSameStyleTokens:m=!1}=r;p===!0?i=$s(i):p==="never"&&(i=Ms(i)),m&&(i=Gs(i));let d={...a,get source(){return n}};for(let E of at(r))i=((y=E.tokens)==null?void 0:y.call(d,i))||i;return Vs(i,{...r,fg:s,bg:l,themeName:o,rootStyle:u},d,h)}function Vs(e,t,r,a=Ve(e)){var _,y,E;let n=at(t),i=[],s={type:"root",children:[]},{structure:l="classic",tabindex:o="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...o!==!1&&o!=null?{tabindex:o.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([g])=>!g.startsWith("_")))},children:[]},h={type:"element",tagName:"code",properties:{},children:i},p=[],m={...r,structure:l,addClassToHast:Xr,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return h},get lines(){return p}};if(e.forEach((g,w)=>{var I,S;w&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&i.push({type:"text",value:` +`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},C=0;for(let L of g){let F={type:"element",tagName:"span",properties:{...L.htmlAttrs},children:[{type:"text",value:L.content}]},ye=Dt(L.htmlStyle||et(L));ye&&(F.properties.style=ye);for(let q of n)F=((I=q==null?void 0:q.span)==null?void 0:I.call(m,F,w+1,C,b,L))||F;l==="inline"?s.children.push(F):l==="classic"&&b.children.push(F),C+=L.content.length}if(l==="classic"){for(let L of n)b=((S=L==null?void 0:L.line)==null?void 0:S.call(m,b,w+1))||b;p.push(b),i.push(b)}}),l==="classic"){for(let g of n)h=((_=g==null?void 0:g.code)==null?void 0:_.call(m,h))||h;u.children.push(h);for(let g of n)u=((y=g==null?void 0:g.pre)==null?void 0:y.call(m,u))||u;s.children.push(u)}let d=s;for(let g of n)d=((E=g==null?void 0:g.root)==null?void 0:E.call(m,d))||d;return a&&tt(d,a),d}function $s(e){return e.map(t=>{let r=[],a="",n=0;return t.forEach((i,s)=>{let l=!(i.fontStyle&&(i.fontStyle&V.Underline||i.fontStyle&V.Strikethrough));l&&i.content.match(/^\s+$/)&&t[s+1]?(n||(n=i.offset),a+=i.content):a?(l?r.push({...i,offset:n,content:a+i.content}):r.push({content:a,offset:n},i),n=0,a=""):r.push(i)}),r})}function Ms(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;let a=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!a)return r;let[,n,i,s]=a;if(!n&&!s)return r;let l=[{...r,offset:r.offset+n.length,content:i}];return n&&l.unshift({content:n,offset:r.offset}),s&&l.push({content:s,offset:r.offset+n.length+i.length}),l}))}function Gs(e){return e.map(t=>{let r=[];for(let a of t){if(r.length===0){r.push({...a});continue}let n=r[r.length-1],i=Dt(n.htmlStyle||et(n)),s=Dt(a.htmlStyle||et(a)),l=n.fontStyle&&(n.fontStyle&V.Underline||n.fontStyle&V.Strikethrough),o=a.fontStyle&&(a.fontStyle&V.Underline||a.fontStyle&V.Strikethrough);!l&&!o&&i===s?n.content+=a.content:r.push({...a})}return r})}var Bs=ss;function js(e,t,r){var i;let a={meta:{},options:r,codeToHast:(s,l)=>st(e,s,l),codeToTokens:(s,l)=>it(e,s,l)},n=Bs(st(e,t,r,a));for(let s of at(r))n=((i=s.postprocess)==null?void 0:i.call(a,n,r))||n;return n}var ta={light:"#333333",dark:"#bbbbbb"},ra={light:"#fffffe",dark:"#1e1e1e"},aa="__shiki_resolved";function Mt(e){var l,o,u,h,p;if(e!=null&&e[aa])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:r,fg:a}=t;if(!r||!a){let m=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;(l=m==null?void 0:m.settings)!=null&&l.foreground&&(a=m.settings.foreground),(o=m==null?void 0:m.settings)!=null&&o.background&&(r=m.settings.background),!a&&((u=t==null?void 0:t.colors)!=null&&u["editor.foreground"])&&(a=t.colors["editor.foreground"]),!r&&((h=t==null?void 0:t.colors)!=null&&h["editor.background"])&&(r=t.colors["editor.background"]),a||(a=t.type==="light"?ta.light:ta.dark),r||(r=t.type==="light"?ra.light:ra.dark),t.fg=a,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let n=0,i=new Map;function s(m){var _;if(i.has(m))return i.get(m);n+=1;let d=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return(_=t.colorReplacements)!=null&&_[`#${d}`]?s(m):(i.set(m,d),d)}t.settings=t.settings.map(m=>{var E,g;let d=((E=m.settings)==null?void 0:E.foreground)&&!m.settings.foreground.startsWith("#"),_=((g=m.settings)==null?void 0:g.background)&&!m.settings.background.startsWith("#");if(!d&&!_)return m;let y={...m,settings:{...m.settings}};if(d){let w=s(m.settings.foreground);t.colorReplacements[w]=m.settings.foreground,y.settings.foreground=w}if(_){let w=s(m.settings.background);t.colorReplacements[w]=m.settings.background,y.settings.background=w}return y});for(let m of Object.keys(t.colors||{}))if((m==="editor.foreground"||m==="editor.background"||m.startsWith("terminal.ansi"))&&!((p=t.colors[m])!=null&&p.startsWith("#"))){let d=s(t.colors[m]);t.colorReplacements[d]=t.colors[m],t.colors[m]=d}return Object.defineProperty(t,aa,{enumerable:!1,writable:!1,value:!0}),t}async function na(e){return Array.from(new Set((await Promise.all(e.filter(t=>!qr(t)).map(async t=>await Hr(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function ia(e){return(await Promise.all(e.map(async t=>zr(t)?null:Mt(await Hr(t))))).filter(t=>!!t)}var Gt=3,Us=!1;function Fs(e,t=3){if(Gt&&!(typeof Gt=="number"&&t>Gt)){if(Us)throw Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}var ke=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Ws=class extends si{constructor(t,r,a,n={}){super(t);f(this,"_resolvedThemes",new Map);f(this,"_resolvedGrammars",new Map);f(this,"_langMap",new Map);f(this,"_langGraph",new Map);f(this,"_textmateThemeCache",new WeakMap);f(this,"_loadedThemesCache",null);f(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=r,this._langs=a,this._alias=n,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){let r=Mt(t);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let r=this._textmateThemeCache.get(t);r||(r=We.createFromRawTheme(t),this._textmateThemeCache.set(t,r)),this._syncRegistry.setTheme(r)}getGrammar(t){if(this._alias[t]){let r=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],r.has(t))throw new ke(`Circular alias \`${Array.from(r).join(" -> ")} -> ${t}\``);r.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){var i,s,l,o;if(this.getGrammar(t.name))return;let r=new Set([...this._langMap.values()].filter(u=>{var h;return(h=u.embeddedLangsLazy)==null?void 0:h.includes(t.name)}));this._resolver.addLanguage(t);let a={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);let n=this.loadGrammarWithConfiguration(t.scopeName,1,a);if(n.name=t.name,this._resolvedGrammars.set(t.name,n),t.aliases&&t.aliases.forEach(u=>{this._alias[u]=t.name}),this._loadedLanguagesCache=null,r.size)for(let u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(s=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||s.delete(u.scopeName),(o=(l=this._syncRegistry)==null?void 0:l._grammars)==null||o.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(let n of t)this.resolveEmbeddedLanguages(n);let r=Array.from(this._langGraph.entries()),a=r.filter(([n,i])=>!i);if(a.length){let n=r.filter(([i,s])=>{var l;return s&&((l=s.embeddedLangs)==null?void 0:l.some(o=>a.map(([u])=>u).includes(o)))}).filter(i=>!a.includes(i));throw new ke(`Missing languages ${a.map(([i])=>`\`${i}\``).join(", ")}, required by ${n.map(([i])=>`\`${i}\``).join(", ")}`)}for(let[n,i]of r)this._resolver.addLanguage(i);for(let[n,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(let r of t.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}},Hs=class{constructor(e,t){f(this,"_langs",new Map);f(this,"_scopeToLang",new Map);f(this,"_injections",new Map);f(this,"_onigLib");this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let a=1;a<=t.length;a++){let n=t.slice(0,a).join(".");r=[...r,...this._injections.get(n)||[]]}return r}},$e=0;function qs(e){$e+=1,e.warnings!==!1&&$e>=10&&$e%10==0&&console.warn(`[Shiki] ${$e} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ke("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(Mt),n=new Ws(new Hs(e.engine,r),a,r,e.langAlias),i;function s(g){y();let w=n.getGrammar(typeof g=="string"?g:g.name);if(!w)throw new ke(`Language \`${g}\` not found, you may need to load it first`);return w}function l(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();let w=n.getTheme(g);if(!w)throw new ke(`Theme \`${g}\` not found, you may need to load it first`);return w}function o(g){y();let w=l(g);return i!==g&&(n.setTheme(w),i=g),{theme:w,colorMap:n.getColorMap()}}function u(){return y(),n.getLoadedThemes()}function h(){return y(),n.getLoadedLanguages()}function p(...g){y(),n.loadLanguages(g.flat(1))}async function m(...g){return p(await na(g))}function d(...g){y();for(let w of g.flat(1))n.loadTheme(w)}async function _(...g){return y(),d(await ia(g))}function y(){if(t)throw new ke("Shiki instance has been disposed")}function E(){t||(t=!0,n.dispose(),--$e)}return{setTheme:o,getTheme:l,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:h,loadLanguage:m,loadLanguageSync:p,loadTheme:_,loadThemeSync:d,dispose:E,[Symbol.dispose]:E}}async function zs(e){e.engine||Fs("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,a]=await Promise.all([ia(e.themes||[]),na(e.langs||[]),e.engine]);return qs({...e,themes:t,langs:r,engine:a})}async function Xs(e){let t=await zs(e);return{getLastGrammarState:(...r)=>Ts(t,...r),codeToTokensBase:(r,a)=>$t(t,r,a),codeToTokensWithThemes:(r,a)=>Yr(t,r,a),codeToTokens:(r,a)=>it(t,r,a),codeToHast:(r,a)=>st(t,r,a),codeToHtml:(r,a)=>js(t,r,a),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Qs(e){let t=e.langs,r=e.themes,a=e.engine;async function n(i){function s(p){var m;if(typeof p=="string"){if(qr(p))return[];p=((m=i.langAlias)==null?void 0:m[p])||p;let d=t[p];if(!d)throw new k(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return d}return p}function l(p){if(zr(p))return"none";if(typeof p=="string"){let m=r[p];if(!m)throw new k(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return m}return p}let o=(i.themes??[]).map(p=>l(p)),u=(i.langs??[]).map(p=>s(p)),h=await Xs({engine:i.engine??a(),...i,themes:o,langs:u});return{...h,loadLanguage(...p){return h.loadLanguage(...p.map(s))},loadTheme(...p){return h.loadTheme(...p.map(l))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return n}function Js(e){let t;async function r(a={}){if(t){let n=await t;return await Promise.all([n.loadTheme(...a.themes||[]),n.loadLanguage(...a.langs||[])]),n}else return t=e({...a,themes:a.themes||[],langs:a.langs||[]}),t}return r}function Zs(e,t){let r=Js(e);async function a(n,i){var o;let s=await r({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)}),l=await((o=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:o.call(t,n,i.lang,s));return l&&await s.loadLanguage(...l),s}return{getSingletonHighlighter(n){return r(n)},async codeToHtml(n,i){return(await a(n,i)).codeToHtml(n,i)},async codeToHast(n,i){return(await a(n,i)).codeToHast(n,i)},async codeToTokens(n,i){return(await a(n,i)).codeToTokens(n,i)},async codeToTokensBase(n,i){return(await a(n,i)).codeToTokensBase(n,i)},async codeToTokensWithThemes(n,i){return(await a(n,i)).codeToTokensWithThemes(n,i)},async getLastGrammarState(n,i){return(await r({langs:[i.lang],themes:[i.theme]})).getLastGrammarState(n,i)}}}var sa=[{id:"abap",name:"ABAP",import:(()=>c(()=>import("./abap-SU6zWBwp.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>c(()=>import("./actionscript-3-BrOlQ4AF.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>c(()=>import("./ada-CkOW_epu.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>c(()=>import("./angular-html-OKVWEBnZ.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([0,1,2,3,4]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>c(()=>import("./angular-ts-BIRRYsa7.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([5,1,2,3,4,6]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>c(()=>import("./apache-9MTzi02Y.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>c(()=>import("./apex-Bwo4L2mL.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>c(()=>import("./apl-D89nlt3r.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([7,3,2,4,8,9,10]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>c(()=>import("./applescript-CZ1TEkBv.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>c(()=>import("./ara-EEpB00vK.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>c(()=>import("./asciidoc-JYZtYOcT.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>c(()=>import("./asm-C_svKHAM.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>c(()=>import("./astro-CjefMLzo.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([11,3,4,8,12,13,14]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>c(()=>import("./awk-BQ_ZzaAg.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>c(()=>import("./ballerina-I1WhEvZA.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>c(()=>import("./bat-MOg75oLY.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>c(()=>import("./beancount-98JxfrHB.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>c(()=>import("./berry-BH_jgFnX.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>c(()=>import("./bibtex-B7UmJSHk.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>c(()=>import("./bicep-jhZgfM-h.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>c(()=>import("./blade-C8Y-ujne.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([15,3,16,2,4,8,17,9,10]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>c(()=>import("./bsl-DTJwR2Lj.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([18,19]),import.meta.url))},{id:"c",name:"C",import:(()=>c(()=>import("./c-iRBcYuSn.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([20,21]),import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>c(()=>import("./cadence-Dy7MlTjY.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>c(()=>import("./cairo-D1ogmZMK.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([22,23]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>c(()=>import("./clarity-AzJiZfWO.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>c(()=>import("./clojure-uPm-GQ_Z.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>c(()=>import("./cmake-CbujdZpI.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([24,25]),import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>c(()=>import("./cobol-DcIidm82.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([26,2,3,4,10]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>c(()=>import("./codeowners-DBnO0B8s.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>c(()=>import("./codeql-BIjYTT5o.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>c(()=>import("./coffee-5DFMhSBl.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([27,4]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>c(()=>import("./common-lisp-bLDcgMys.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>c(()=>import("./coq-DCqQ1le1.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>c(()=>import("./cpp-BRiTgQM2.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([28,29,30,21,31,17]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>c(()=>import("./crystal-DjnXLfjs.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([32,21,3,2,4,33,17]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>c(()=>import("./csharp-DIGSFj_e.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([34,35]),import.meta.url))},{id:"css",name:"CSS",import:(()=>c(()=>import("./css-BsEWHSCn.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([36,3]),import.meta.url))},{id:"csv",name:"CSV",import:(()=>c(()=>import("./csv-BLuCiMPg.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>c(()=>import("./cue-BUBNE8hm.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>c(()=>import("./cypher-FCbbxft2.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"d",name:"D",import:(()=>c(()=>import("./d-Bi6mpdWD.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>c(()=>import("./dart-E-aEgwbd.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>c(()=>import("./dax-qq8dT5cg.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>c(()=>import("./desktop-BNphuiDB.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>c(()=>import("./diff-y8lnZMmD.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([37,38]),import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>c(()=>import("./docker-CVXANKL7.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>c(()=>import("./dotenv-3kT46W6n.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>c(()=>import("./dream-maker-CagcUd6F.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>c(()=>import("./edge-Ci3eSGFz.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([39,16,2,3,4,14]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>c(()=>import("./elixir-W0RBPVS-.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([40,2,3,4]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>c(()=>import("./elm-C7b2aJq3.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([41,30,21]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>c(()=>import("./emacs-lisp-BcNheR0i.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>c(()=>import("./erb-r3C7bA9H.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([42,2,3,4,43,21,29,30,31,17,44,45,13,14,46,47,33,9,10,48]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>c(()=>import("./erlang-yLn-8onD.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([49,50]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>c(()=>import("./fennel-BV_sl-8E.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>c(()=>import("./fish-D9dGscZt.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>c(()=>import("./fluent-Ci_dCj5a.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>c(()=>import("./fortran-fixed-form-OBD5ulQv.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([51,52]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>c(()=>import("./fortran-free-form-g8Lzga6K.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([53,52]),import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>c(()=>import("./fsharp-BTMwKGsE.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([54,50]),import.meta.url))},{id:"gdresource",name:"GDResource",import:(()=>c(()=>import("./gdresource-B6pXclxl.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([55,56,57]),import.meta.url))},{id:"gdscript",name:"GDScript",import:(()=>c(()=>import("./gdscript-CPqD-zPC.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([58,56]),import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>c(()=>import("./gdshader-DO5IkfXs.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([59,57]),import.meta.url))},{id:"genie",name:"Genie",import:(()=>c(()=>import("./genie-gEhniB2y.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>c(()=>import("./gherkin-5ZbgpIiD.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>c(()=>import("./git-commit-ClJTi5G-.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([60,38]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>c(()=>import("./git-rebase-DwdtIL6I.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([61,33]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>c(()=>import("./gleam-DbedYGMt.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>c(()=>import("./glimmer-js-B9ocDpQc.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([62,3,2,4,14]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>c(()=>import("./glimmer-ts-BNujtAQa.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([63,3,2,4,14]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>c(()=>import("./glsl-D-ItHUmD.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([64,30,21]),import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>c(()=>import("./gnuplot-y2o84AVG.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"go",name:"Go",import:(()=>c(()=>import("./go-DyIs3qQk.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([65,66]),import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>c(()=>import("./graphql-ea2rX4Pn.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([67,44,4,45,13,14]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>c(()=>import("./groovy-B6mf1TRH.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>c(()=>import("./hack-BnX-rsnc.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([68,2,3,4,17]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>c(()=>import("./haml-B8pvwVU8.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([69,46,3,4]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>c(()=>import("./handlebars-CV3XdPcE.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([70,3,2,4,48]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>c(()=>import("./haskell-BeFk9lSP.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>c(()=>import("./haxe-B6aOIwam.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([71,72]),import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>c(()=>import("./hcl-DRYvuNVJ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>c(()=>import("./hjson-DbFBAps2.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>c(()=>import("./hlsl--1ChKHXm.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([73,74]),import.meta.url))},{id:"html",name:"HTML",import:(()=>c(()=>import("./html-BwxSLDuz.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([75,2,3,4]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>c(()=>import("./html-derivative-Dl8qqS-O.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([76,16,2,3,4]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>c(()=>import("./http-SM9PQ4p3.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([77,44,4,45,13,14,8,33,9,10]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>c(()=>import("./hxml-BewqP3XB.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([78,72]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>c(()=>import("./hy-B2lFX9J4.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>c(()=>import("./imba-CAlGHwGH.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>c(()=>import("./ini-BoLUGVlu.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"java",name:"Java",import:(()=>c(()=>import("./java-BvFubqPm.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([79,10]),import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js"],import:(()=>c(()=>import("./javascript-Bai85G8g.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([80,4]),import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>c(()=>import("./jinja-B0tm6Ng1.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([81,2,3,4]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>c(()=>import("./jison-DJ5B-y0A.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([82,4]),import.meta.url))},{id:"json",name:"JSON",import:(()=>c(()=>import("./json-Bk31jFSV.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([83,8]),import.meta.url))},{id:"json5",name:"JSON5",import:(()=>c(()=>import("./json5-CjWkyEJI.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>c(()=>import("./jsonc-CZHgddHr.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>c(()=>import("./jsonl-B6btUDNl.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>c(()=>import("./jsonnet-DBu0H5Kn.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>c(()=>import("./jssm-DoyK9Alq.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>c(()=>import("./jsx-DARzpZIA.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([84,45]),import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>c(()=>import("./julia-CTbxlJE3.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([85,29,30,21,31,17,4,23,86]),import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>c(()=>import("./kotlin-BGd_lSNb.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>c(()=>import("./kusto-BrShWROQ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>c(()=>import("./latex-4Accjnw5.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([87,88,86]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>c(()=>import("./lean-DKBtmdIN.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"less",name:"Less",import:(()=>c(()=>import("./less-BEv9dydD.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([89,90]),import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>c(()=>import("./liquid-CCS7f-BT.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([91,3,2,4,8]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>c(()=>import("./llvm-B2Z3y3W4.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>c(()=>import("./log-CLRm7lga.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>c(()=>import("./logo-C6E5BMYK.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>c(()=>import("./lua-CT29upRv.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([92,47,21]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>c(()=>import("./luau-qrLXeRJe.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>c(()=>import("./make-mLsUblBy.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>c(()=>import("./markdown-B5dUEZKJ.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([93,50]),import.meta.url))},{id:"marko",name:"Marko",import:(()=>c(()=>import("./marko-Cip_Po2S.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([94,3,90,6,14]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>c(()=>import("./matlab-CIpdAccA.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>c(()=>import("./mdc-CYEL6kBx.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([95,16,2,3,4,50,48]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>c(()=>import("./mdx-CQ8NEEVL.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>c(()=>import("./mermaid-DxlVH6ic.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>c(()=>import("./mipsasm-D0HB7dFo.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>c(()=>import("./mojo-DcsbnSkY.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"move",name:"Move",import:(()=>c(()=>import("./move-BR5EeRuK.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>c(()=>import("./narrat-Chn12a8o.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>c(()=>import("./nextflow-Bzu3XAuz.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>c(()=>import("./nginx-b0P6EqEr.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([96,47,21]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>c(()=>import("./nim-2LoM9u8F.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([97,21,3,30,2,4,50,9,10]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>c(()=>import("./nix-lanrq7Px.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>c(()=>import("./nushell-greG_J0C.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>c(()=>import("./objective-c-2UNO56gW.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>c(()=>import("./objective-cpp-Dkuvmhfa.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>c(()=>import("./ocaml-DOYhgXv0.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>c(()=>import("./pascal-CZJGM8La.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>c(()=>import("./perl-BMO4-Wia.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([98,3,2,4,17,9,10]),import.meta.url))},{id:"php",name:"PHP",import:(()=>c(()=>import("./php-NuTACPfp.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([99,100,3,2,4,8,17,9,10]),import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>c(()=>import("./plsql-kUpHrBht.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>c(()=>import("./po-BS5thvpC.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>c(()=>import("./polar-DwGf_0dn.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>c(()=>import("./postcss-DjoFGpXH.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([101,12]),import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>c(()=>import("./powerquery-DwfWEfGM.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>c(()=>import("./powershell-BTseEwiJ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>c(()=>import("./prisma-CTx95L0F.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>c(()=>import("./prolog-DLhZTRQY.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>c(()=>import("./proto-wHGv56wX.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>c(()=>import("./pug-w6c6UB24.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([102,3,2,4]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>c(()=>import("./puppet-CEaveFBF.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>c(()=>import("./purescript-2gpsnJmf.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>c(()=>import("./python-CNXv2KWA.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([103,23]),import.meta.url))},{id:"qml",name:"QML",import:(()=>c(()=>import("./qml-DrwtSjfx.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([104,4]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>c(()=>import("./qmldir-DmEgJGvK.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>c(()=>import("./qss-DYQb8ZuJ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"r",name:"R",import:(()=>c(()=>import("./r-D6Z0BB-w.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([105,86]),import.meta.url))},{id:"racket",name:"Racket",import:(()=>c(()=>import("./racket-ZMtNHQDx.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>c(()=>import("./raku-D5hi73-p.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>c(()=>import("./razor-B4wA7jBD.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([106,35,2,3,4]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>c(()=>import("./reg-BRIC9nSn.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>c(()=>import("./regexp-DlTnRo5X.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([107,31]),import.meta.url))},{id:"rel",name:"Rel",import:(()=>c(()=>import("./rel-De0JbHVV.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>c(()=>import("./riscv-Br2LUTr7.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>c(()=>import("./rst-ftZ-oDhd.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([108,25,29,30,21,31,17,16,2,3,4,23,43,44,45,13,14,46,47,33,9,10,48]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>c(()=>import("./ruby-BBBmfZso.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([109,43,21,29,30,31,17,3,44,4,45,13,14,46,2,47,33,9,10,48]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>c(()=>import("./rust-5ykN96XM.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>c(()=>import("./sas-epRrdRwP.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([110,17]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>c(()=>import("./sass-BqcmLu4P.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>c(()=>import("./scala-B911DcDv.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>c(()=>import("./scheme-BTu--Sck.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>c(()=>import("./scss-B2xSI_mm.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([111,6,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>c(()=>import("./sdbl-v_PBVpFd.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([112,19]),import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>c(()=>import("./shaderlab-CfxIQFYg.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([113,74]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>c(()=>import("./shellscript-9NbB6rUg.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([114,33]),import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>c(()=>import("./shellsession-BhZwmtTx.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([115,33]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>c(()=>import("./smalltalk-DfOMJIU6.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>c(()=>import("./solidity-CEmuVXDJ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>c(()=>import("./soy-D40oJbOR.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([116,2,3,4]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>c(()=>import("./sparql-CJElaVsv.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([117,118]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>c(()=>import("./splunk-DRU55DSJ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>c(()=>import("./sql-CS8vCjQ-.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([119,17]),import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>c(()=>import("./ssh-config-B9b7z6T7.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>c(()=>import("./stata-DfVau2QO.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([120,17]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>c(()=>import("./stylus-DEqyykkC.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([121,122]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>c(()=>import("./svelte-CNe2JkA7.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([123,3,4,12,14]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>c(()=>import("./swift-Dl2cc5UE.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>c(()=>import("./system-verilog-_7ecP3he.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>c(()=>import("./systemd-CV2aRDdZ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>c(()=>import("./talonscript-CiURXyeK.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>c(()=>import("./tasl-CgR-R2KM.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>c(()=>import("./tcl-CjFzRx0U.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>c(()=>import("./templ-Dk-lmfRg.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([124,3,66,4]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>c(()=>import("./terraform-CzTiNJOl.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>c(()=>import("./tex-BTh7fu2c.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([125,88,86]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>c(()=>import("./toml-BuOKiCb8.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>c(()=>import("./ts-tags-DsSBybUC.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([126,3,30,21,2,4,17,14,9,10]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>c(()=>import("./tsv-BJzO207y.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>c(()=>import("./tsx-B7QHGODT.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([127,13]),import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>c(()=>import("./turtle-epRxag87.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([128,118]),import.meta.url))},{id:"twig",name:"Twig",import:(()=>c(()=>import("./twig-CaF5hrLR.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([129,3,4,100,2,8,17,9,10,23,43,21,29,30,31,44,45,13,14,46,47,33,48,6]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:(()=>c(()=>import("./typescript-BThuMR9H.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([130,14]),import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>c(()=>import("./typespec-Cv7FpWym.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>c(()=>import("./typst-nt6K7GZd.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"v",name:"V",import:(()=>c(()=>import("./v-BusYLuRB.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>c(()=>import("./vala-B-6xa0Aj.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>c(()=>import("./vb-KrbtzW33.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>c(()=>import("./verilog-DEtsCQZH.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>c(()=>import("./vhdl-DyPzTKhr.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>c(()=>import("./viml-U0et7bQk.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>c(()=>import("./vue-DlNI5OYp.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([131,132,3,16,2,4,8,14]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>c(()=>import("./vue-html-2SFryLhG.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([133,4,132,3,16,2,8,14]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>c(()=>import("./vue-vine-DC6NkOTk.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([134,3,4,90,132,16,2,8,14,12,6,122]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>c(()=>import("./vyper-D7A4m0kb.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>c(()=>import("./wasm-DJcF9RK8.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:(()=>c(()=>import("./wenyan-DLnVa8AQ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>c(()=>import("./wgsl-4REEFmor.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>c(()=>import("./wikitext-BeDmC88E.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>c(()=>import("./wit-DHRQXmKj.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>c(()=>import("./wolfram-Re6EdhRv.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>c(()=>import("./xml-C9-klnEl.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([135,9,10]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>c(()=>import("./xsl-Dhl_QCID.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([136,9,10]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>c(()=>import("./yaml-ClzXjtB1.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([137,48]),import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>c(()=>import("./zenscript-BVK4u88W.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>c(()=>import("./zig-78hakGAD.js").then(async e=>(await e.__tla,e)),[],import.meta.url))}],Ks=Object.fromEntries(sa.map(e=>[e.id,e.import])),Ys=Object.fromEntries(sa.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(r=>[r,e.import]))||[]})),oa={...Ks,...Ys},eo=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>c(()=>import("./andromeeda-RpH0ijbH.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>c(()=>import("./aurora-x-CTazLhTV.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>c(()=>import("./ayu-dark-BlrvTbf4.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:(()=>c(()=>import("./catppuccin-frappe-BkEK3Fpp.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>c(()=>import("./catppuccin-latte-DbZ9OhtD.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>c(()=>import("./catppuccin-macchiato-DNSQGnoS.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>c(()=>import("./catppuccin-mocha-DAt_A1jH.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>c(()=>import("./dark-plus-Dnz8nXIg.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>c(()=>import("./dracula-Ce4vXCNi.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>c(()=>import("./dracula-soft-4axSbb5e.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>c(()=>import("./everforest-dark-SDocAIJl.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>c(()=>import("./everforest-light-J9pIFEgA.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>c(()=>import("./github-dark-COEptyVj.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>c(()=>import("./github-dark-default-Lu9yb3Ll.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>c(()=>import("./github-dark-dimmed-DLr10ZfD.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>c(()=>import("./github-dark-high-contrast-BAD179q5.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>c(()=>import("./github-light-D5YDCk-k.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>c(()=>import("./github-light-default-DXVqiSkL.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>c(()=>import("./github-light-high-contrast-BOva7Avv.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-hard-123cz-bZ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-medium-mB3LasKh.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>c(()=>import("./gruvbox-dark-soft-DM38rmCC.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>c(()=>import("./gruvbox-light-hard-DrIZxY__.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>c(()=>import("./gruvbox-light-medium-WCkO6EfC.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>c(()=>import("./gruvbox-light-soft-Q3ucBsf4.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>c(()=>import("./houston-CjI-6J5n.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>c(()=>import("./kanagawa-dragon-D3Om-oa0.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>c(()=>import("./kanagawa-lotus-CNOs1zgt.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>c(()=>import("./kanagawa-wave-DEfHZ9uR.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>c(()=>import("./laserwave-BSELFgc5.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>c(()=>import("./light-plus-CEhmeeBE.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>c(()=>import("./material-theme-C2eZWwOB.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>c(()=>import("./material-theme-darker-DiwKV8Z6.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>c(()=>import("./material-theme-lighter-BrGzFd-D.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>c(()=>import("./material-theme-ocean-C12SSV5E.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>c(()=>import("./material-theme-palenight-Csg_YoNS.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>c(()=>import("./min-dark-B4ZhSFYH.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>c(()=>import("./min-light-QqjIaEXI.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>c(()=>import("./monokai-BLZ9vVX8.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>c(()=>import("./night-owl-ChBOsy9g.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>c(()=>import("./nord-Fs2BoKYD.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>c(()=>import("./one-dark-pro-CtR45KYl.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>c(()=>import("./one-light-BM-Ra5gf.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>c(()=>import("./plastic-J2wPiZqV.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>c(()=>import("./poimandres-CzQWEKLd.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>c(()=>import("./red-C-5Yz_5N.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:(()=>c(()=>import("./rose-pine-bs7wJeU7.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:(()=>c(()=>import("./rose-pine-dawn-xjyRql3i.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:(()=>c(()=>import("./rose-pine-moon-C5nFR3AZ.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>c(()=>import("./slack-dark-D-_qG20e.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>c(()=>import("./slack-ochin-B5HdGZTv.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>c(()=>import("./snazzy-light-DpCUG9N4.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>c(()=>import("./solarized-dark-DbtxXxKW.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>c(()=>import("./solarized-light-pJFmyeZD.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>c(()=>import("./synthwave-84-Bh-Hantf.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>c(()=>import("./tokyo-night-BeEDKSPs.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>c(()=>import("./vesper-BRSTM5zn.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>c(()=>import("./vitesse-black-CAF6yZ13.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>c(()=>import("./vitesse-dark-DG6LcOdW.js").then(async e=>(await e.__tla,e)),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>c(()=>import("./vitesse-light-Dc3v4rQW.js").then(async e=>(await e.__tla,e)),[],import.meta.url))}].map(e=>[e.id,e.import])),Bt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function to(){return 2147483648}function ro(){return typeof performance<"u"?performance.now():Date.now()}var ao=(e,t)=>e+(t-e%t)%t;async function no(e){let t,r,a={};function n(d){r=d,a.HEAPU8=new Uint8Array(d),a.HEAPU32=new Uint32Array(d)}function i(d,_,y){a.HEAPU8.copyWithin(d,_,_+y)}function s(d){try{return t.grow(d-r.byteLength+65535>>>16),n(t.buffer),1}catch{}}function l(d){let _=a.HEAPU8.length;d>>>=0;let y=to();if(d>y)return!1;for(let E=1;E<=4;E*=2){let g=_*(1+.2/E);if(g=Math.min(g,d+100663296),s(Math.min(y,ao(Math.max(d,g),65536))))return!0}return!1}let o=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,_,y=1024){let E=_+y,g=_;for(;d[g]&&!(g>=E);)++g;if(g-_>16&&d.buffer&&o)return o.decode(d.subarray(_,g));let w="";for(;_>10,56320|S&1023)}}return w}function h(d,_){return d?u(a.HEAPU8,d,_):""}let p={emscripten_get_now:ro,emscripten_memcpy_big:i,emscripten_resize_heap:l,fd_write:()=>0};async function m(){let d=await e({env:p,wasi_snapshot_preview1:p});t=d.memory,n(t.buffer),Object.assign(a,d),a.UTF8ToString=h}return await m(),a}var io=Object.defineProperty,so=(e,t,r)=>t in e?io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>so(e,typeof t=="symbol"?t:t+"",r),N=null;function oo(e){throw new Bt(e.UTF8ToString(e.getLastOnigError()))}var la=class kn{constructor(t){O(this,"utf16Length"),O(this,"utf8Length"),O(this,"utf16Value"),O(this,"utf8Value"),O(this,"utf16OffsetToUtf8"),O(this,"utf8OffsetToUtf16");let r=t.length,a=kn._utf8ByteLength(t),n=a!==r,i=n?new Uint32Array(r+1):null;n&&(i[r]=a);let s=n?new Uint32Array(a+1):null;n&&(s[a]=r);let l=new Uint8Array(a),o=0;for(let u=0;u=55296&&h<=56319&&u+1=56320&&d<=57343&&(p=(h-55296<<10)+65536|d-56320,m=!0)}n&&(i[u]=o,m&&(i[u+1]=o),p<=127?s[o+0]=u:p<=2047?(s[o+0]=u,s[o+1]=u):p<=65535?(s[o+0]=u,s[o+1]=u,s[o+2]=u):(s[o+0]=u,s[o+1]=u,s[o+2]=u,s[o+3]=u)),p<=127?l[o++]=p:p<=2047?(l[o++]=192|(p&1984)>>>6,l[o++]=128|(p&63)>>>0):p<=65535?(l[o++]=224|(p&61440)>>>12,l[o++]=128|(p&4032)>>>6,l[o++]=128|(p&63)>>>0):(l[o++]=240|(p&1835008)>>>18,l[o++]=128|(p&258048)>>>12,l[o++]=128|(p&4032)>>>6,l[o++]=128|(p&63)>>>0),m&&u++}this.utf16Length=r,this.utf8Length=a,this.utf16Value=t,this.utf8Value=l,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let r=0;for(let a=0,n=t.length;a=55296&&i<=56319&&a+1=56320&&o<=57343&&(s=(i-55296<<10)+65536|o-56320,l=!0)}s<=127?r+=1:s<=2047?r+=2:s<=65535?r+=3:r+=4,l&&a++}return r}createString(t){let r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}},ot=class X{constructor(t){if(O(this,"id",++X.LAST_ID),O(this,"_onigBinding"),O(this,"content"),O(this,"utf16Length"),O(this,"utf8Length"),O(this,"utf16OffsetToUtf8"),O(this,"utf8OffsetToUtf16"),O(this,"ptr"),!N)throw new Bt("Must invoke loadWasm first.");this._onigBinding=N,this.content=t;let r=new la(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!X._sharedPtrInUse?(X._sharedPtr||(X._sharedPtr=N.omalloc(1e4)),X._sharedPtrInUse=!0,N.HEAPU8.set(r.utf8Value,X._sharedPtr),this.ptr=X._sharedPtr):this.ptr=r.createString(N)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===X._sharedPtr?X._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};O(ot,"LAST_ID",0),O(ot,"_sharedPtr",0),O(ot,"_sharedPtrInUse",!1);var ua=ot,lo=class{constructor(e){if(O(this,"_onigBinding"),O(this,"_ptr"),!N)throw new Bt("Must invoke loadWasm first.");let t=[],r=[];for(let s=0,l=e.length;s{let a=e;return a=await a,typeof a=="function"&&(a=await a(r)),typeof a=="function"&&(a=await a(r)),uo(a)?a=await a.instantiator(r):co(a)?a=await a.default(r):(po(a)&&(a=a.data),ho(a)?a=typeof WebAssembly.instantiateStreaming=="function"?await fo(a)(r):await go(a)(r):mo(a)||a instanceof WebAssembly.Module?a=await ca(a)(r):"default"in a&&a.default instanceof WebAssembly.Module&&(a=await ca(a.default)(r))),"instance"in a&&(a=a.instance),"exports"in a&&(a=a.exports),a})}return lt=t(),lt}function ca(e){return t=>WebAssembly.instantiate(e,t)}function fo(e){return t=>WebAssembly.instantiateStreaming(e,t)}function go(e){return async t=>{let r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}async function yo(e){return e&&await _o(e),{createScanner(t){return new lo(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new ua(t)}}}var pa=Qs({langs:oa,themes:eo,engine:()=>yo(c(()=>import("./wasm-BZnE6t1f.js").then(async e=>(await e.__tla,e)),[],import.meta.url))}),{codeToHtml:Cu,codeToHast:Iu,codeToTokens:xu,codeToTokensBase:Lu,codeToTokensWithThemes:Su,getSingletonHighlighter:Tu,getLastGrammarState:Pu}=Zs(pa,{guessEmbeddedLanguages:ps});function Ae(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function wo(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var jt=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),D=String.raw;function Ce(e,t){if(e==null)throw Error(t??"Value expected");return e}var ha=D`\[\^?`,ma=`c.? | C(?:-.?)?|${D`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${D`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${D`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${D`o\{[^\}]*\}?`}|${D`\d{1,3}`}`,Ut=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ut=new RegExp(D` + \\ (?: + ${ma} + | [gk]<[^>]*>? + | [gk]'[^']*'? + | . + ) + | \( (?: + \? (?: + [:=!>({] + | <[=!] + | <[^>]*> + | '[^']*' + | ~\|? + | #(?:[^)\\]|\\.?)* + | [^:)]*[:)] + )? + | \*[^\)]*\)? + )? + | (?:${Ut.source})+ + | ${ha} + | . +`.replace(/\s+/g,""),"gsu"),Ft=new RegExp(D` + \\ (?: + ${ma} + | . + ) + | \[:(?:\^?\p{Alpha}+|\^):\] + | ${ha} + | && + | . +`.replace(/\s+/g,""),"gsu");function Eo(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw Error("String expected as pattern");let a=Go(r.flags),n=[a.extended],i={captureGroup:r.rules.captureGroup,getCurrentModX(){return n.at(-1)},numOpenGroups:0,popModX(){n.pop()},pushModX(p){n.push(p)},replaceCurrentModX(p){n[n.length-1]=p},singleline:r.rules.singleline},s=[],l;for(ut.lastIndex=0;l=ut.exec(e);){let p=bo(i,e,l[0],ut.lastIndex);p.tokens?s.push(...p.tokens):p.token&&s.push(p.token),p.lastIndex!==void 0&&(ut.lastIndex=p.lastIndex)}let o=[],u=0;s.filter(p=>p.type==="GroupOpen").forEach(p=>{p.kind==="capturing"?p.number=++u:p.raw==="("&&o.push(p)}),u||o.forEach((p,m)=>{p.kind="capturing",p.number=m+1});let h=u||o.length;return{tokens:s.map(p=>p.type==="EscapedNumber"?jo(p,h):p).flat(),flags:a}}function bo(e,t,r,a){let[n,i]=r;if(r==="["||r==="[^"){let s=ko(t,r,a);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(i))return{token:_a(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:Oo(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:fa(r)}}if(i==="K")return{token:ya("keep",r)};if(i==="N"||i==="R")return{token:ue("newline",r,{negate:i==="N"})};if(i==="O")return{token:ue("any",r)};if(i==="X")return{token:ue("text_segment",r)};let s=da(r,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(n==="("){if(i==="*")return{token:Vo(r)};if(r==="(?{")throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[a]!==")")throw Error('Unclosed comment group "(?#"');return{lastIndex:a+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:Do(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:Ie("group",r)};if(r==="(?>")return{token:Ie("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Ie("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw Error(`Unsupported absence function kind "${r}"`);return{token:Ie("absence_repeater",r)}}throw Error(r==="(?("?`Unsupported conditional "${r}"`:`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:To(r)}}if(e.getCurrentModX()){if(r==="#"){let s=t.indexOf(` +`,a);return{lastIndex:s===-1?t.length:s}}if(/^\s$/.test(r)){let s=/\s+/y;return s.lastIndex=a,{lastIndex:s.exec(t)?s.lastIndex:a}}}return r==="."?{token:ue("dot",r)}:r==="^"||r==="$"?{token:_a(e.singleline?{"^":D`\A`,$:D`\Z`}[r]:r,r)}:r==="|"?{token:Co(r)}:Ut.test(r)?{tokens:Uo(r)}:{token:J(Ae(r),r)}}function ko(e,t,r){let a=[ga(t[1]==="^",t)],n=1,i;for(Ft.lastIndex=r;i=Ft.exec(e);){let s=i[0];if(s[0]==="["&&s[1]!==":")n++,a.push(ga(s[1]==="^",s));else if(s==="]"){if(a.at(-1).type==="CharacterClassOpen")a.push(J(93,s));else if(n--,a.push(Io(s)),!n)break}else{let l=Ao(s);Array.isArray(l)?a.push(...l):a.push(l)}}return{tokens:a,lastIndex:Ft.lastIndex||e.length}}function Ao(e){if(e[0]==="\\")return da(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?\^?)(?[a-z]+):\]/.exec(e);if(!t||!jt.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return ue("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?xo(e):e==="&&"?Lo(e):J(Ae(e),e)}function da(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return No(e);if("dDhHsSwW".includes(r))return $o(e);if(e.startsWith(D`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Mo(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{let a=e.split(/\\x/).slice(1).map(s=>parseInt(s,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(a)),i=new TextEncoder;return[...n].map(s=>{let l=[...i.encode(s)].map(o=>`\\x${o.toString(16)}`).join("");return J(Ae(s),l)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return J(Bo(e),e);if(wa.has(r))return J(wa.get(r),e);if(/\d/.test(r))return So(t,e);if(e==="\\")throw Error(D`Incomplete escape "\"`);if(r==="M")throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return J(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function Co(e){return{type:"Alternator",raw:e}}function _a(e,t){return{type:"Assertion",kind:e,raw:t}}function fa(e){return{type:"Backreference",raw:e}}function J(e,t){return{type:"Character",value:e,raw:t}}function Io(e){return{type:"CharacterClassClose",raw:e}}function xo(e){return{type:"CharacterClassHyphen",raw:e}}function Lo(e){return{type:"CharacterClassIntersector",raw:e}}function ga(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ue(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function ya(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Ce(r.flags),raw:t}}function So(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function To(e){return{type:"GroupClose",raw:e}}function Ie(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Po(e,t,r,a){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:a}}function Ro(e,t,r,a){return{type:"Quantifier",kind:e,min:t,max:r,raw:a}}function Oo(e){return{type:"Subroutine",raw:e}}var vo=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),wa=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function No(e){let t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return J(Ae(t.toUpperCase())-64,e)}function Do(e,t){let{on:r,off:a}=/^\(\?(?[imx]*)(?:-(?[-imx]*))?/.exec(e).groups;a??(a="");let n=(t.getCurrentModX()||r.includes("x"))&&!a.includes("x"),i=ba(r),s=ba(a),l={};if(i&&(l.enable=i),s&&(l.disable=s),e.endsWith(")"))return t.replaceCurrentModX(n),ya("flags",e,{flags:l});if(e.endsWith(":"))return t.pushModX(n),t.numOpenGroups++,Ie("group",e,{...(i||s)&&{flags:l}});throw Error(`Unexpected flag modifier "${e}"`)}function Vo(e){let t=/\(\*(?[A-Za-z_]\w*)?(?:\[(?(?:[A-Za-z_]\w*)?)\])?(?:\{(?[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:a,args:n}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(a==="")throw Error(`Named callout tag with empty value not allowed "${e}"`);let i=n?n.split(",").filter(h=>h!=="").map(h=>/^[+-]?\d+$/.test(h)?+h:h):[],[s,l,o]=i,u=vo.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(i.length>0)throw Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw Error(`Named callout allows only one argument "${i}"`);if(typeof s=="string")throw Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!i.length||i.length>2)throw Error(`Named callout must have one or two arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(i.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(i.length>1)throw Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(i.length!==3)throw Error(`Named callout must have three arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);if(typeof o=="string"&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument three must be a tag or number "${o}"`);break;case"custom":throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${u}"`)}return Po(u,a??null,(n==null?void 0:n.split(","))??null,e)}function Ea(e){let t=null,r,a;if(e[0]==="{"){let{minStr:n,maxStr:i}=/^\{(?\d*)(?:,(?\d*))?/.exec(e).groups,s=1e5;if(+n>s||i&&+i>s)throw Error("Quantifier value unsupported in Oniguruma");if(r=+n,a=i===void 0?+n:i===""?1/0:+i,r>a&&(t="possessive",[r,a]=[a,r]),e.endsWith("?")){if(t==="possessive")throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,a=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Ro(t,r,a,e)}function $o(e){let t=e[1].toLowerCase();return ue({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Mo(e){let{p:t,neg:r,value:a}=/^\\(?

[pP])\{(?\^?)(?[^}]+)/.exec(e).groups;return ue("property",e,{value:a,negate:t==="P"&&!r||t==="p"&&!!r})}function ba(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Go(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function jo(e,t){let{raw:r,inCharClass:a}=e,n=r.slice(1);if(!a&&(n!=="0"&&n.length===1||n[0]!=="0"&&+n<=t))return[fa(r)];let i=[],s=n.match(/^[0-7]+|\d/g);for(let l=0;l127)throw Error(D`Octal encoded byte above 177 unsupported "${r}"`)}else u=Ae(o);i.push(J(u,(l===0?"\\":"")+o))}return i}function Uo(e){let t=[],r=new RegExp(Ut,"gy"),a;for(;a=r.exec(e);){let n=a[0];if(n[0]==="{"){let i=/^\{(?\d+),(?\d+)\}\??$/.exec(n);if(i){let{min:s,max:l}=i.groups;if(+s>+l&&n.endsWith("?")){r.lastIndex--,t.push(Ea(n.slice(0,-1)));continue}}}t.push(Ea(n))}return t}function ka(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(e.body.length!==1)return!1;let r=e.body[0];return!t||Object.keys(t).every(a=>t[a]===r[a])}function Fo(e){return Wo.has(e.type)}var Wo=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Aa(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},a=Eo(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),n=(m,d)=>{let _=a.tokens[i.nextIndex];switch(i.parent=m,i.nextIndex++,_.type){case"Alternator":return ce();case"Assertion":return Ho(_);case"Backreference":return qo(_,i);case"Character":return ct(_.value,{useLastValid:!!d.isCheckingRangeEnd});case"CharacterClassHyphen":return zo(_,i,d);case"CharacterClassOpen":return Xo(_,i,d);case"CharacterSet":return Qo(_,i);case"Directive":return tl(_.kind,{flags:_.flags});case"GroupOpen":return Jo(_,i,d);case"NamedCallout":return al(_.kind,_.tag,_.arguments);case"Quantifier":return Zo(_,i);case"Subroutine":return Ko(_,i);default:throw Error(`Unexpected token type "${_.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:a.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:n},s=il(rl(a.flags)),l=s.body[0];for(;i.nextIndexo.length)throw Error("Subroutine uses a group number that's not defined");m&&(o[m-1].isSubroutined=!0)}else if(h.has(m)){if(h.get(m).length>1)throw Error(D`Subroutine uses a duplicate group name "\g<${m}>"`);h.get(m)[0].isSubroutined=!0}else throw Error(D`Subroutine uses a group name that's not defined "\g<${m}>"`);return s}function Ho({kind:e}){return Wt(Ce({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===D`\B`||e===D`\Y`})}function qo({raw:e},t){let r=/^\\k[<']/.test(e),a=r?e.slice(3,-1):e.slice(1),n=(i,s=!1)=>{let l=t.capturingGroups.length,o=!1;if(i>l)if(t.skipBackrefValidation)o=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Ht(s?l+1-i:i,{orphan:o})};if(r){let i=/^(?-?)0*(?[1-9]\d*)$/.exec(a);if(i)return n(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(a))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(a))throw Error(`Group name not defined to the left "${e}"`);return Ht(a)}return n(+a)}function zo(e,t,r){let{tokens:a,walk:n}=t,i=t.parent,s=i.body.at(-1),l=a[t.nextIndex];if(!r.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){let o=n(i,{...r,isCheckingRangeEnd:!0});if(s.type==="Character"&&o.type==="Character")return i.body.pop(),el(s,o);throw Error("Invalid character class range")}return ct(Ae("-"))}function Xo({negate:e},t,r){let{tokens:a,walk:n}=t,i=a[t.nextIndex],s=[pt()],l=Pa(i);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")s.push(pt()),t.nextIndex++;else{let u=s.at(-1);u.body.push(n(u,r))}l=Pa(a[t.nextIndex],i)}let o=pt({negate:e});return s.length===1?o.body=s[0].body:(o.kind="intersection",o.body=s.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,o}function Qo({kind:e,negate:t,value:r},a){let{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:s}=a;if(e==="property"){let l=ht(r);if(jt.has(l)&&!(s!=null&&s.has(l)))e="posix",r=l;else return xe(r,{negate:t,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:s})}return e==="posix"?nl(r,{negate:t}):qt(e,{negate:t})}function Jo(e,t,r){let{tokens:a,capturingGroups:n,namedGroupsByName:i,skipLookbehindValidation:s,walk:l}=t,o=sl(e),u=o.type==="AbsenceFunction",h=Ta(o),p=h&&o.negate;if(o.type==="CapturingGroup"&&(n.push(o),o.name&&wo(i,o.name,[]).push(o)),u&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let m=Ra(a[t.nextIndex]);for(;m.type!=="GroupClose";){if(m.type==="Alternator")o.body.push(ce()),t.nextIndex++;else{let d=o.body.at(-1),_=l(d,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||h,isInNegLookbehind:r.isInNegLookbehind||p});if(d.body.push(_),(h||r.isInLookbehind)&&!s){let y="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(Sa(_)||_.type==="CapturingGroup")throw Error(y)}else if(Sa(_)||Ta(_)&&_.negate)throw Error(y)}}m=Ra(a[t.nextIndex])}return t.nextIndex++,o}function Zo({kind:e,min:t,max:r},a){let n=a.parent,i=n.body.at(-1);if(!i||!Fo(i))throw Error("Quantifier requires a repeatable token");let s=Ia(e,t,r,i);return n.body.pop(),s}function Ko({raw:e},t){let{capturingGroups:r,subroutines:a}=t,n=e.slice(3,-1),i=/^(?[-+]?)0*(?[1-9]\d*)$/.exec(n);if(i){let l=+i.groups.num,o=r.length;if(t.hasNumberedRef=!0,n={"":l,"+":o+l,"-":o+1-l}[i.groups.sign],n<1)throw Error("Invalid subroutine number")}else n==="0"&&(n=0);let s=xa(n);return a.push(s),s}function Yo(e,t){if(e!=="repeater")throw Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:Me(t==null?void 0:t.body)}}function ce(e){return{type:"Alternative",body:La(e==null?void 0:e.body)}}function Wt(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!(t!=null&&t.negate)),r}function Ht(e,t){let r=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...r&&{orphan:r}}}function Ca(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!ol(r.name))throw Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:Me(t==null?void 0:t.body)}}function ct(e,t){let r={useLastValid:!1,...t};if(e>1114111){let a=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${a}}"`):Error(`Invalid code point out of range in JS "\\x{${a}}"`)}return{type:"Character",value:e}}function pt(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:La(e==null?void 0:e.body)}}function el(e,t){if(t.valuer)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:a}}function il(e,t){return{type:"Regex",body:Me(t==null?void 0:t.body),flags:e}}function xa(e){return{type:"Subroutine",ref:e}}function xe(e,t){var n;let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},a=(n=r.unicodePropertyMap)==null?void 0:n.get(ht(e));if(!a){if(r.normalizeUnknownPropertyNames)a=ll(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(D`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:a??e,negate:r.negate}}function sl({flags:e,kind:t,name:r,negate:a,number:n}){switch(t){case"absence_repeater":return Yo("repeater");case"atomic":return H({atomic:!0});case"capturing":return Ca(n,{name:r});case"group":return H({flags:e});case"lookahead":case"lookbehind":return pe({behind:t==="lookbehind",negate:a});default:throw Error(`Unexpected group kind "${t}"`)}}function Me(e){if(e===void 0)e=[ce()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function La(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw Error("Invalid body; expected array of nodes");return e}function Sa(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Ta(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function ol(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function ll(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function ht(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Pa(e,t){return Ce(e,`${(t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function Ra(e){return Ce(e,"Unclosed group")}function Ge(e,t,r=null){function a(i,s){for(let l=0;lA-Za-z\-]|<[=!]|\(DEFINE\))`;function cl(e,t){for(let r=0;r=t&&e[r]++}function pl(e,t,r,a){return e.slice(0,t)+a+e.slice(t+r.length)}const B=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function zt(e,t,r,a){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1],s=0,l="";for(let o of e.matchAll(n)){let{0:u,groups:{$skip:h}}=o;if(!h&&(!a||a===B.DEFAULT==!s)){r instanceof Function?l+=r(o,{context:s?B.CHAR_CLASS:B.DEFAULT,negated:i[i.length-1]}):l+=r;continue}u[0]==="["?(s++,i.push(u[1]==="^")):u==="]"&&s&&(s--,i.pop()),l+=u}return l}function Oa(e,t,r,a){zt(e,t,r,a)}function hl(e,t,r=0,a){if(!new RegExp(t,"su").test(e))return null;let n=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let i=0,s;for(;s=n.exec(e);){let{0:l,groups:{$skip:o}}=s;if(!o&&(!a||a===B.DEFAULT==!i))return s;l==="["?i++:l==="]"&&i&&i--,n.lastIndex==s.index&&n.lastIndex++}return null}function dt(e,t,r){return!!hl(e,t,0,r)}function ml(e,t){let r=/\\?./gsu;r.lastIndex=t;let a=e.length,n=0,i=1,s;for(;s=r.exec(e);){let[l]=s;if(l==="[")n++;else if(n)l==="]"&&n--;else if(l==="(")i++;else if(l===")"&&(i--,!i)){a=s.index;break}}return e.slice(t,a)}var va=new RegExp(String.raw`(?${ul})|(?\((?:\?<[^>]+>)?)|\\?.`,"gsu");function dl(e,t){let r=(t==null?void 0:t.hiddenCaptures)??[],a=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};let n=[0],i=[],s=0,l=0,o=NaN,u;do{u=!1;let h=0,p=0,m=!1,d;for(va.lastIndex=Number.isNaN(o)?0:o+7;d=va.exec(e);){let{0:_,index:y,groups:{capturingStart:E,noncapturingStart:g}}=d;if(_==="[")h++;else if(h)_==="]"&&h--;else if(_==="(?>"&&!m)o=y,m=!0;else if(m&&g)p++;else if(E)m?p++:(s++,n.push(s+l));else if(_===")"&&m){if(!p){l++;let w=s+l;if(e=`${e.slice(0,o)}(?:(?=(${e.slice(o+3,y)}))<$$${w}>)${e.slice(y+1)}`,u=!0,i.push(w),cl(r,w),a.size){let b=new Map;a.forEach((C,I)=>{b.set(I>=w?I+1:I,C.map(S=>S>=w?S+1:S))}),a=b}break}p--}}}while(u);return r.push(...i),e=zt(e,String.raw`\\(?[1-9]\d*)|<\$\$(?\d+)>`,({0:h,groups:{backrefNum:p,wrappedBackrefNum:m}})=>{if(p){let d=+p;if(d>n.length-1)throw Error(`Backref "${h}" greater than number of captures`);return`\\${n[d]}`}return`\\${m}`},B.DEFAULT),{pattern:e,captureTransfers:a,hiddenCaptures:r}}var Na=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Xt=new RegExp(String.raw` +\\(?: \d+ + | c[A-Za-z] + | [gk]<[^>]+> + | [pPu]\{[^\}]+\} + | u[A-Fa-f\d]{4} + | x[A-Fa-f\d]{2} + ) +| \((?: \? (?: [:=!>] + | <(?:[=!]|[^>]+>) + | [A-Za-z\-]+: + | \(DEFINE\) + ))? +| (?${Na})(?[?+]?)(?[?*+\{]?) +| \\?. +`.replace(/\s+/g,""),"gsu");function _l(e){if(!RegExp(`${Na}\\+`).test(e))return{pattern:e};let t=[],r=null,a=null,n="",i=0,s;for(Xt.lastIndex=0;s=Xt.exec(e);){let{0:l,index:o,groups:{qBase:u,qMod:h,invalidQ:p}}=s;if(l==="[")i||(a=o),i++;else if(l==="]")i?i--:a=null;else if(!i)if(h==="+"&&n&&!n.startsWith("(")){if(p)throw Error(`Invalid quantifier "${l}"`);let m=-1;if(/^\{\d+\}$/.test(u))e=pl(e,o+u.length,h,"");else{if(n===")"||n==="]"){let d=n===")"?r:a;if(d===null)throw Error(`Invalid unmatched "${n}"`);e=`${e.slice(0,d)}(?>${e.slice(d,o)}${u})${e.slice(o+l.length)}`}else e=`${e.slice(0,o-n.length)}(?>${n}${u})${e.slice(o+l.length)}`;m+=4}Xt.lastIndex+=m}else l[0]==="("?t.push(o):l===")"&&(r=t.length?t.pop():null);n=l}return{pattern:e}}var j=String.raw,Qt=j`\(\?R=(?[^\)]+)\)|${j`\\g<(?[^>&]+)&R=(?[^>]+)>`}`,_t=j`\(\?<(?![=!])(?[^>]+)>`,Da=j`${_t}|(?\()(?!\?)`,he=new RegExp(j`${_t}|${Qt}|\(\?|\\?.`,"gsu"),Jt="Cannot use multiple overlapping recursions";function fl(e,t){let{hiddenCaptures:r,mode:a}={hiddenCaptures:[],mode:"plugin",...t},n=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Qt,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};if(a==="plugin"&&dt(e,j`\(\?\(DEFINE\)`,B.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let i=[],s=dt(e,j`\\[1-9]`,B.DEFAULT),l=new Map,o=[],u=!1,h=0,p=0,m;for(he.lastIndex=0;m=he.exec(e);){let{0:d,groups:{captureName:_,rDepth:y,gRNameOrNum:E,gRDepth:g}}=m;if(d==="[")h++;else if(h)d==="]"&&h--;else if(y){if(Va(y),u)throw Error(Jt);if(s)throw Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let w=e.slice(0,m.index),b=e.slice(he.lastIndex);if(dt(b,Qt,B.DEFAULT))throw Error(Jt);let C=y-1;e=$a(w,b,C,!1,r,i,p),n=Ga(n,w,C,i.length,0,p);break}else if(E){Va(g);let w=!1;for(let q of o)if(q.name===E||q.num===+E){if(w=!0,q.hasRecursedWithin)throw Error(Jt);break}if(!w)throw Error(j`Recursive \g cannot be used outside the referenced group "${a==="external"?E:j`\g<${E}&R=${g}>`}"`);let b=l.get(E),C=ml(e,b);if(s&&dt(C,j`${_t}|\((?!\?)`,B.DEFAULT))throw Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let I=e.slice(b,m.index),S=C.slice(I.length+d.length),L=i.length,F=g-1,ye=$a(I,S,F,!0,r,i,p);n=Ga(n,I,F,i.length-L,L,p),e=`${e.slice(0,b)}${ye}${e.slice(b+C.length)}`,he.lastIndex+=ye.length-d.length-I.length-S.length,o.forEach(q=>q.hasRecursedWithin=!0),u=!0}else if(_)p++,l.set(String(p),he.lastIndex),l.set(_,he.lastIndex),o.push({num:p,name:_});else if(d[0]==="("){let w=d==="(";w&&(p++,l.set(String(p),he.lastIndex)),o.push(w?{num:p}:{})}else d===")"&&o.pop()}return r.push(...i),{pattern:e,captureTransfers:n,hiddenCaptures:r}}function Va(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function $a(e,t,r,a,n,i,s){let l=new Set;a&&Oa(e+t,_t,({groups:{captureName:u}})=>{l.add(u)},B.DEFAULT);let o=[r,a?l:null,n,i,s];return`${e}${Ma(`(?:${e}`,"forward",...o)}(?:)${Ma(`${t})`,"backward",...o)}${t}`}function Ma(e,t,r,a,n,i,s){let l=u=>t==="forward"?u+2:r-u+2-1,o="";for(let u=0;u[^>]+)>`,({0:p,groups:{captureName:m,unnamed:d,backref:_}})=>{if(_&&a&&!a.has(_))return p;let y=`_$${h}`;if(d||m){let E=s+i.length+1;return i.push(E),gl(n,E),d?p:`(?<${m}${y}>`}return j`\k<${_}${y}>`},B.DEFAULT)}return o}function gl(e,t){for(let r=0;r=t&&e[r]++}function Ga(e,t,r,a,n,i){if(e.size&&a){let s=0;Oa(t,Da,()=>s++,B.DEFAULT);let l=i-s+n,o=new Map;return e.forEach((u,h)=>{let p=(a-s*r)/r,m=s*r,d=h>l+s?h+a:h,_=[];for(let y of u)if(y<=l)_.push(y);else if(y>l+s+p)_.push(y+a);else if(y<=l+s)for(let E=0;E<=r;E++)_.push(y+s*E);else for(let E=0;E<=r;E++)_.push(y+m+p*E);o.set(d,_)}),o}return e}var v=String.fromCodePoint,A=String.raw,Z={flagGroups:!0,unicodeSets:!0};Z.bugFlagVLiteralHyphenIsRange=Z.unicodeSets?(()=>{try{new RegExp(A`[\d\-a]`,"v")}catch{return!0}return!1})():!1,Z.bugNestedClassIgnoresNegation=Z.unicodeSets&&RegExp("[[^a]]","v").test("a");function ft(e,{enable:t,disable:r}){return{dotAll:!(r!=null&&r.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(r!=null&&r.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function Be(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function Zt(e,t){return Ba[e]>=Ba[t]}function yl(e,t){if(e==null)throw Error(t??"Value expected");return e}var Ba={ES2025:2025,ES2024:2024,ES2018:2018},wl={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function ja(e={}){if({}.toString.call(e)!=="[object Object]")throw Error("Unexpected options");if(e.target!==void 0&&!wl[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Z.flagGroups?"ES2025":Z.unicodeSets?"ES2024":"ES2018"),t}var El="[ -\r ]",bl=new Set([v(304),v(305)]),K=A`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ua(e){if(bl.has(e))return[e];let t=new Set,r=e.toLowerCase(),a=r.toUpperCase(),n=Cl.get(r),i=kl.get(r),s=Al.get(r);return[...a].length===1&&t.add(a),s&&t.add(s),n&&t.add(n),t.add(r),i&&t.add(i),[...t]}var Kt=new Map(`C Other +Cc Control cntrl +Cf Format +Cn Unassigned +Co Private_Use +Cs Surrogate +L Letter +LC Cased_Letter +Ll Lowercase_Letter +Lm Modifier_Letter +Lo Other_Letter +Lt Titlecase_Letter +Lu Uppercase_Letter +M Mark Combining_Mark +Mc Spacing_Mark +Me Enclosing_Mark +Mn Nonspacing_Mark +N Number +Nd Decimal_Number digit +Nl Letter_Number +No Other_Number +P Punctuation punct +Pc Connector_Punctuation +Pd Dash_Punctuation +Pe Close_Punctuation +Pf Final_Punctuation +Pi Initial_Punctuation +Po Other_Punctuation +Ps Open_Punctuation +S Symbol +Sc Currency_Symbol +Sk Modifier_Symbol +Sm Math_Symbol +So Other_Symbol +Z Separator +Zl Line_Separator +Zp Paragraph_Separator +Zs Space_Separator +ASCII +ASCII_Hex_Digit AHex +Alphabetic Alpha +Any +Assigned +Bidi_Control Bidi_C +Bidi_Mirrored Bidi_M +Case_Ignorable CI +Cased +Changes_When_Casefolded CWCF +Changes_When_Casemapped CWCM +Changes_When_Lowercased CWL +Changes_When_NFKC_Casefolded CWKCF +Changes_When_Titlecased CWT +Changes_When_Uppercased CWU +Dash +Default_Ignorable_Code_Point DI +Deprecated Dep +Diacritic Dia +Emoji +Emoji_Component EComp +Emoji_Modifier EMod +Emoji_Modifier_Base EBase +Emoji_Presentation EPres +Extended_Pictographic ExtPict +Extender Ext +Grapheme_Base Gr_Base +Grapheme_Extend Gr_Ext +Hex_Digit Hex +IDS_Binary_Operator IDSB +IDS_Trinary_Operator IDST +ID_Continue IDC +ID_Start IDS +Ideographic Ideo +Join_Control Join_C +Logical_Order_Exception LOE +Lowercase Lower +Math +Noncharacter_Code_Point NChar +Pattern_Syntax Pat_Syn +Pattern_White_Space Pat_WS +Quotation_Mark QMark +Radical +Regional_Indicator RI +Sentence_Terminal STerm +Soft_Dotted SD +Terminal_Punctuation Term +Unified_Ideograph UIdeo +Uppercase Upper +Variation_Selector VS +White_Space space +XID_Continue XIDC +XID_Start XIDS`.split(/\s/).map(e=>[ht(e),e])),kl=new Map([["s",v(383)],[v(383),"s"]]),Al=new Map([[v(223),v(7838)],[v(107),v(8490)],[v(229),v(8491)],[v(969),v(8486)]]),Cl=new Map([ne(453),ne(456),ne(459),ne(498),...Yt(8072,8079),...Yt(8088,8095),...Yt(8104,8111),ne(8124),ne(8140),ne(8188)]),Il=new Map([["alnum",A`[\p{Alpha}\p{Nd}]`],["alpha",A`\p{Alpha}`],["ascii",A`\p{ASCII}`],["blank",A`[\p{Zs}\t]`],["cntrl",A`\p{Cc}`],["digit",A`\p{Nd}`],["graph",A`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",A`\p{Lower}`],["print",A`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",A`[\p{P}\p{S}]`],["space",A`\p{space}`],["upper",A`\p{Upper}`],["word",A`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",A`\p{AHex}`]]);function xl(e,t){let r=[];for(let a=e;a<=t;a++)r.push(a);return r}function ne(e){let t=v(e);return[t.toLowerCase(),t]}function Yt(e,t){return xl(e,t).map(r=>ne(r))}var Fa=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Ll(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Wa(e);let a={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Zt(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Ge(e,Sl,a);let n={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:n,prevFlags:null,globalFlags:n,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap};return Ge(e,Tl,i),Ge(e,Pl,{groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer}),e._originMap=i.groupOriginByCopy,e._strategy=a.strategy,e}var Sl={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:a,kind:n}=e;if(n==="repeater"){let i=H();i.body[0].body.push(pe({negate:!0,body:a}),xe("Any"));let s=H();s.body[0].body.push(Ia("greedy",0,1/0,i)),r(P(s,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:a}){let n=e.body.filter(i=>i.kind==="flags");for(let i=r+1;i\r\n|${n?A`\p{RGI_Emoji}`:m}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(o==="hex")r(ie(xe("AHex",{negate:u}),t));else if(o==="newline")r(P(Y(u?`[^ +]`:`(?>\r +?|[ +\v\f\x85\u2028\u2029])`),t));else if(o==="posix")if(!n&&(h==="graph"||h==="print")){if(a==="strict")throw Error(`POSIX class "${h}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[h];u&&(p=`\0-${v(p.codePointAt(0)-1)}${v(p.codePointAt(2)+1)}-\u{10FFFF}`),r(P(Y(`[${p}]`),t))}else r(P(rr(Y(Il.get(h)),u),t));else if(o==="property")Kt.has(ht(h))||(e.key="sc");else if(o==="space")r(ie(xe("space",{negate:u}),t));else if(o==="word")r(P(rr(Y(K),u),t));else throw Error(`Unexpected character set kind "${o}"`)},Directive({node:e,parent:t,root:r,remove:a,replaceWith:n,removeAllPrevSiblings:i,removeAllNextSiblings:s}){let{kind:l,flags:o}=e;if(l==="flags")if(!o.enable&&!o.disable)a();else{let u=H({flags:o});u.body[0].body=s(),n(P(u,t),{traverse:!0})}else if(l==="keep"){let u=r.body[0],h=r.body.length===1&&ka(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(t.parent!==h||h.body.length>1)throw Error(A`Uses "\K" in a way that's unsupported`);let p=pe({behind:!0});p.body[0].body=i(),n(P(p,t))}else throw Error(`Unexpected directive kind "${l}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t!=null&&t.extended&&delete t.extended,r!=null&&r.extended&&delete r.extended,t!=null&&t.dotAll&&(r!=null&&r.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(r!=null&&r.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:a}=e;if(a==="fail")r(P(pe({negate:!0}),t));else throw Error(`Unsupported named callout "(*${a.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=H();t.body[0].body.push(e.body),e.body=P(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],a=!1,n=!1;for(let i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{let s=Qa(i.body);s?(a=!0,Array.isArray(s)?r.push(...s):r.push(s)):n=!0}a&&!n&&r.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:r,strategy:a}){if(t==="strict"&&r&&a)throw Error(A`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!tr(r)&&(r=er(r,t),e.ref=r)}},Tl={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:a,ref:n}=e;a||r.set(e,[...t.get(n).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:a},{groupOriginByCopy:n,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:l,reffedNodesByReferencer:o}){let u=n.get(e);if(u&&l.has(e.number)){let p=ie(qa(e.number),t);o.set(p,l.get(e.number)),r(p);return}l.set(e.number,e),s.set(e.number,[]),e.name&&Be(s,e.name,[]);let h=s.get(e.name??e.number);for(let p=0;pm.type==="Group"&&!!m.flags)),p=h?ft(a.globalFlags,h):a.globalFlags;Rl(p,a.currentFlags)||(u=H({flags:Nl(p)}),u.body[0].body.push(o))}r(P(u,t),{traverse:!l})}},Pl={Backreference({node:e,parent:t,replaceWith:r},a){if(e.orphan){a.highestOrphanBackref=Math.max(a.highestOrphanBackref,e.ref);return}let n=a.reffedNodesByReferencer.get(e).filter(i=>Ol(i,e));n.length?n.length>1?r(P(H({atomic:!0,body:n.reverse().map(i=>ce({body:[Ht(i.number)]}))}),t)):e.ref=n[0].number:r(P(pe({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let a=0;a{t.forEach(n=>{var i,s;(i=a.enable)!=null&&i[n]&&(delete r.disable[n],r.enable[n]=!0),(s=a.disable)!=null&&s[n]&&(r.disable[n]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function Nl({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function Xa(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Qa(e){let t=e.find(r=>r.kind==="search_start"||$l(r,{negate:!1})||!Dl(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){let r=[];for(let a of t.body){let n=Qa(a.body);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function Ja(e,t){let r=Xa(e)??[];for(let a of r)if(a===t||Ja(a,t))return!0;return!1}function Dl({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Vl(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function $l(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&ka(e.body[0],{type:"Assertion",kind:"search_start"})}function tr(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Y(e,t){let r=Aa(e,{...t,unicodePropertyMap:Kt}).body;return r.length>1||r[0].body.length>1?H({body:r}):r[0].body[0]}function rr(e,t){return e.negate=t,e}function ie(e,t){return e.parent=t,e}function P(e,t){return Wa(e),e.parent=t,e}function Ml(e,t){let r=ja(t),a=Zt(r.target,"ES2024"),n=Zt(r.target,"ES2025"),i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw Error("Invalid recursionLimit; use 2-20");let s=null,l=null;if(!n){let d=[e.flags.ignoreCase];Ge(e,Gl,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(_){d.push(_)},setHasCasedChar(){d.at(-1)?s=!0:l=!0}})}let o={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!l)},u=e,h={accuracy:r.accuracy,appliedGlobalFlags:o,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!n&&s&&l),useFlagMods:n,useFlagV:a,verbose:r.verbose};function p(d){return h.lastNode=u,u=d,yl(Bl[d.type],`Unexpected node type "${d.type}"`)(d,h,p)}let m={pattern:e.body.map(p).join("|"),flags:p(e.flags),options:{...e.options}};return a||(delete m.options.force.v,m.options.disable.v=!0,m.options.unicodeSetsPlugin=null),m._captureTransfers=new Map,m._hiddenCaptures=[],h.captureMap.forEach((d,_)=>{d.hidden&&m._hiddenCaptures.push(_),d.transferTo&&Be(m._captureTransfers,d.transferTo,[]).push(_)}),m}var Gl={"*":{enter({node:e},t){if(Ya(e)){let r=t.getCurrentModI();t.pushModI(e.flags?ft({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){Ya(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ar(v(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),Ka(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Fa.has(e.value)&&t.setHasCasedChar()}},Bl={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?A`\B`:A`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:a,name:n,number:i}=e,s={ignoreCase:t.currentFlags.ignoreCase},l=t.originMap.get(e);return l&&(s.hidden=!0,i>l.number&&(s.transferTo=l.number)),t.captureMap.set(i,s),`(${n?`?<${n}>`:""}${a.map(r).join("|")})`},Character({value:e},t){let r=v(e),a=Se(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(a!==r)return a;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ar(r)){let n=Ua(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r},CharacterClass(e,t,r){let{kind:a,negate:n,parent:i}=e,{body:s}=e;if(a==="intersection"&&!t.useFlagV)throw Error("Use of class intersection requires min target ES2024");Z.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(en)&&(s=[ct(45),...s.filter(u=>!en(u))]);let l=()=>`[${n?"^":""}${s.map(r).join(a==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Z.bugNestedClassIgnoresNegation)&&!n){let h=s.filter(p=>p.type==="CharacterClass"&&p.kind==="union"&&p.negate);if(h.length){let p=H(),m=p.body[0];return p.parent=i,m.parent=p,s=s.filter(d=>!h.includes(d)),e.body=s,s.length?(e.parent=m,m.body.push(e)):p.body.pop(),h.forEach(d=>{let _=ce({body:[d]});d.parent=_,_.parent=p,p.body.push(_)}),r(p)}}t.inCharClass=!0;let u=l();return t.inCharClass=!1,u}let o=s[0];if(a==="union"&&!n&&o&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(Z.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&s.length===1&&o.type!=="CharacterClassRange"))return s.map(r).join("");if(!t.useFlagV&&i.type==="CharacterClass")throw Error("Use of nested character class requires min target ES2024");return l()},CharacterClassRange(e,t){let r=e.min.value,a=e.max.value,n={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=Se(r,n),s=Se(a,n),l=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Hl(Ka(e)).forEach(o=>{l.add(Array.isArray(o)?`${Se(o[0],n)}-${Se(o[1],n)}`:Se(o,n))}),`${i}-${s}${[...l].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:a},n){if(e==="dot")return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":A`[^\n]`;if(e==="digit")return t?A`\D`:A`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&Fa.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?A`\P`:A`\p`}{${a?`${a}=`:""}${r}}`}if(e==="word")return t?A`\W`:A`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:a},n,i){let s=n.currentFlags;r&&(n.currentFlags=ft(s,r));let l=t.map(i).join("|"),o=!n.verbose&&t.length===1&&a.type!=="Quantifier"&&!e&&(!n.useFlagMods||!r)?l:`(?${ql(e,r,n.useFlagMods)}${l})`;return n.currentFlags=s,o},LookaroundAssertion({body:e,kind:t,negate:r},a,n){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(n).join("|")})`},Quantifier(e,t,r){return r(e.body)+zl(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let a=r.recursionLimit;return t===0?`(?R=${a})`:A`\g<${t}&R=${a}>`}},jl=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Ul=new Set(["-","\\","]","^","["]),Fl=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split("")),Za=new Map([[9,A`\t`],[10,A`\n`],[11,A`\v`],[12,A`\f`],[13,A`\r`],[8232,A`\u2028`],[8233,A`\u2029`],[65279,A`\uFEFF`]]),Wl=new RegExp("^\\p{Cased}$","u");function ar(e){return Wl.test(e)}function Ka(e,t){let r=!!(t!=null&&t.firstOnly),a=e.min.value,n=e.max.value,i=[];if(a<65&&(n===65535||n>=131071)||a===65536&&n>=131071)return i;for(let s=a;s<=n;s++){let l=v(s);if(!ar(l))continue;let o=Ua(l).filter(u=>{let h=u.codePointAt(0);return hn});if(o.length&&(i.push(...o),r))break}return i}function Se(e,{escDigit:t,inCharClass:r,useFlagV:a}){if(Za.has(e))return Za.get(e);if(e<32||e>126&&e<160||e>262143||t&&Xl(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?a?Fl:Ul:jl,i=v(e);return(n.has(i)?"\\":"")+i}function Hl(e){let t=e.map(n=>n.codePointAt(0)).sort((n,i)=>n-i),r=[],a=null;for(let n=0;n";let a="";if(t&&r){let{enable:n,disable:i}=t;a=(n!=null&&n.ignoreCase?"i":"")+(n!=null&&n.dotAll?"s":"")+(i?"-":"")+(i!=null&&i.ignoreCase?"i":"")+(i!=null&&i.dotAll?"s":"")}return`${a}:`}function zl({kind:e,max:t,min:r}){let a;return a=!r&&t===1?"?":!r&&t===1/0?"*":r===1&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`,a+{greedy:"",lazy:"?",possessive:"+"}[e]}function Ya({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function Xl(e){return e>47&&e<58}function en({type:e,value:t}){return e==="Character"&&t===45}var Ql=(oe=class extends RegExp{constructor(r,a,n){var t=(...Ru)=>(super(...Ru),we(this,je),we(this,se,new Map),we(this,te,null),we(this,_e),we(this,fe,null),we(this,ge,null),f(this,"rawOptions",{}),this);let i=!!(n!=null&&n.lazyCompile);if(r instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");let s=r;t(s,a),z(this,_e,s.source),s instanceof oe&&(z(this,se,M(s,se)),z(this,fe,M(s,fe)),z(this,ge,M(s,ge)),this.rawOptions=s.rawOptions)}else{let s={hiddenCaptures:[],strategy:null,transfers:[],...n};t(i?"":r,a),z(this,_e,r),z(this,se,Zl(s.hiddenCaptures,s.transfers)),z(this,ge,s.strategy),this.rawOptions=n??{}}i||z(this,te,this)}get source(){return M(this,_e)||"(?:)"}exec(r){if(!M(this,te)){let{lazyCompile:i,...s}=this.rawOptions;z(this,te,new oe(M(this,_e),this.flags,s))}let a=this.global||this.sticky,n=this.lastIndex;if(M(this,ge)==="clip_search"&&a&&n){this.lastIndex=0;let i=ur(this,je,mr).call(this,r.slice(n));return i&&(Jl(i,n,r,this.hasIndices),this.lastIndex+=n),i}return ur(this,je,mr).call(this,r)}},se=new WeakMap,te=new WeakMap,_e=new WeakMap,fe=new WeakMap,ge=new WeakMap,je=new WeakSet,mr=function(r){M(this,te).lastIndex=this.lastIndex;let a=dn(oe.prototype,this,"exec").call(M(this,te),r);if(this.lastIndex=M(this,te).lastIndex,!a||!M(this,se).size)return a;let n=[...a];a.length=1;let i;this.hasIndices&&(i=[...a.indices],a.indices.length=1);let s=[0];for(let l=1;l{let l=i[s];l&&(i[s]=[l[0]+t,l[1]+t])})}}function Zl(e,t){let r=new Map;for(let a of e)r.set(a,{hidden:!0});for(let[a,n]of t)for(let i of n)Be(r,i,{}).transferTo=a;return r}function Kl(e){let t=/(?\((?:\?<(?![=!])(?[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,a=0,n=0,i;for(;i=t.exec(e);){let{0:s,groups:{capture:l,name:o}}=i;s==="["?a++:a?s==="]"&&a--:l&&(n++,o&&r.set(n,o))}return r}function Yl(e,t){let r=eu(e,t);return r.options?new Ql(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function eu(e,t){let r=ja(t),a=Ll(Aa(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Kt}),{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),n=Ml(a,r),i=fl(n.pattern,{captureTransfers:n._captureTransfers,hiddenCaptures:n._hiddenCaptures,mode:"external"}),s=dl(_l(i.pattern).pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),l={pattern:s.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${n.flags}${n.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let o=s.hiddenCaptures.sort((m,d)=>m-d),u=Array.from(s.captureTransfers),h=a._strategy,p=l.pattern.length>=r.lazyCompileLength;(o.length||u.length||h||p)&&(l.options={...o.length&&{hiddenCaptures:o},...u.length&&{transfers:u},...h&&{strategy:h},...p&&{lazyCompile:p}})}return l}var tn=4294967295,tu=class{constructor(e,t={}){f(this,"regexps");this.patterns=e,this.options=t;let{forgiving:r=!1,cache:a,regexConstructor:n}=t;if(!n)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>{if(typeof i!="string")return i;let s=a==null?void 0:a.get(i);if(s){if(s instanceof RegExp)return s;if(r)return null;throw s}try{let l=n(i);return a==null||a.set(i,l),l}catch(l){if(a==null||a.set(i,l),r)return null;throw l}})}findNextMatchSync(e,t,r){let a=typeof e=="string"?e:e.content,n=[];function i(s,l,o=0){return{index:s,captureIndices:l.indices.map(u=>u==null?{start:tn,end:tn,length:0}:{start:u[0]+o,end:u[1]+o,length:u[1]-u[0]})}}for(let s=0;sl[1].index));for(let[l,o,u]of n)if(o.index===s)return i(l,o,u)}return null}};function ru(e,t){return Yl(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function au(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=r=>ru(r,{target:t.target})),{createScanner(r){return new tu(r,t)},createString(r){return{content:r}}}}let me,G,rn,an,nn,sn,on,gt,yt,de,ln,un,nr,cn,ir;me=_n(lu(),1),G=_n(uu(),1),rn=cr("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-4","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),an=(0,me.memo)(({children:e,result:t,language:r,className:a,...n})=>{let i=(0,me.useMemo)(()=>({backgroundColor:t.bg,color:t.fg}),[t.bg,t.fg]);return(0,G.jsx)("pre",{className:cr(a,"p-4 text-sm dark:bg-(--shiki-dark-bg)!"),"data-language":r,"data-streamdown":"code-block-body",style:i,...n,children:(0,G.jsx)("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:t.tokens.map((s,l)=>(0,G.jsx)("span",{className:rn,children:s.map((o,u)=>(0,G.jsx)("span",{className:"dark:bg-(--shiki-dark-bg)! dark:text-(--shiki-dark)!",style:{color:o.color,backgroundColor:o.bgColor,...o.htmlStyle},...o.htmlAttrs,children:o.content},u))},l))})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className),nn=({className:e,language:t,style:r,...a})=>(0,G.jsx)("div",{className:cr("my-4 w-full overflow-hidden rounded-xl border border-border",e),"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...a}),sn=({language:e,children:t})=>(0,G.jsxs)("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-language":e,"data-streamdown":"code-block-header",children:[(0,G.jsx)("span",{className:"ml-1 font-mono lowercase",children:e}),(0,G.jsx)("div",{className:"flex items-center gap-2",children:t})]}),on=au({forgiving:!0}),gt=new Map,yt=new Map,de=new Map,ln=(e,t)=>`${e}-${t[0]}-${t[1]}`,un=(e,t,r)=>{let a=e.slice(0,100),n=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${a}:${n}`},nr=e=>Object.hasOwn(oa,e),cn=(e,t)=>{let r=nr(e)?e:"text",a=ln(r,t);if(gt.has(a))return gt.get(a);let n=pa({themes:t,langs:[r],engine:on});return gt.set(a,n),n},ir=(e,t,r,a)=>{let n=nr(t)?t:"text",i=un(e,n,r);return yt.has(i)?yt.get(i):(a&&(de.has(i)||de.set(i,new Set),de.get(i).add(a)),cn(n,r).then(s=>{let l=s.codeToTokens(e,{lang:n,themes:{light:r[0],dark:r[1]}});yt.set(i,l);let o=de.get(i);if(o){for(let u of o)u(l);de.delete(i)}}).catch(s=>{console.error("Failed to highlight code:",s),de.delete(i)}),null)},yn=({code:e,language:t,className:r,children:a,...n})=>{let{shikiTheme:i}=(0,me.useContext)(fu),[s,l]=(0,me.useState)((0,me.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:e.split(` +`).map(o=>[{content:o,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[e]));return(0,me.useEffect)(()=>{let o=ir(e,t,i);if(o){l(o);return}ir(e,t,i,u=>{l(u)})},[e,t,i]),(0,G.jsx)(_u.Provider,{value:{code:e},children:(0,G.jsxs)(nn,{language:t,children:[(0,G.jsx)(sn,{language:t,children:a}),(0,G.jsx)(an,{className:r,language:t,result:s,...n})]})})}});export{yn as CodeBlock,wu as __tla}; diff --git a/docs/assets/code-xml-MBUyxNtK.js b/docs/assets/code-xml-MBUyxNtK.js new file mode 100644 index 0000000..060f193 --- /dev/null +++ b/docs/assets/code-xml-MBUyxNtK.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CW2xpJ57.js";var m=e("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);export{m as t}; diff --git a/docs/assets/codeowners-DBnO0B8s.js b/docs/assets/codeowners-DBnO0B8s.js new file mode 100644 index 0000000..c881f66 --- /dev/null +++ b/docs/assets/codeowners-DBnO0B8s.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"CODEOWNERS","name":"codeowners","patterns":[{"include":"#comment"},{"include":"#pattern"},{"include":"#owner"}],"repository":{"comment":{"patterns":[{"begin":"^\\\\s*#","captures":{"0":{"name":"punctuation.definition.comment.codeowners"}},"end":"$","name":"comment.line.codeowners"}]},"owner":{"match":"\\\\S*@\\\\S+","name":"storage.type.function.codeowners"},"pattern":{"match":"^\\\\s*(\\\\S+)","name":"variable.other.codeowners"}},"scopeName":"text.codeowners"}'))];export{e as default}; diff --git a/docs/assets/codeql-BIjYTT5o.js b/docs/assets/codeql-BIjYTT5o.js new file mode 100644 index 0000000..f5df2b4 --- /dev/null +++ b/docs/assets/codeql-BIjYTT5o.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"CodeQL","fileTypes":["ql","qll"],"name":"codeql","patterns":[{"include":"#module-member"}],"repository":{"abstract":{"match":"\\\\babstract(?![0-9A-Z_a-z])","name":"storage.modifier.abstract.ql"},"additional":{"match":"\\\\badditional(?![0-9A-Z_a-z])","name":"storage.modifier.additional.ql"},"and":{"match":"\\\\band(?![0-9A-Z_a-z])","name":"keyword.other.and.ql"},"annotation":{"patterns":[{"include":"#bindingset-annotation"},{"include":"#language-annotation"},{"include":"#pragma-annotation"},{"include":"#annotation-keyword"}]},"annotation-keyword":{"patterns":[{"include":"#abstract"},{"include":"#additional"},{"include":"#bindingset"},{"include":"#cached"},{"include":"#default"},{"include":"#deprecated"},{"include":"#external"},{"include":"#final"},{"include":"#language"},{"include":"#library"},{"include":"#override"},{"include":"#pragma"},{"include":"#private"},{"include":"#query"},{"include":"#signature"},{"include":"#transient"}]},"any":{"match":"\\\\bany(?![0-9A-Z_a-z])","name":"keyword.quantifier.any.ql"},"arithmetic-operator":{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ql"},"as":{"match":"\\\\bas(?![0-9A-Z_a-z])","name":"keyword.other.as.ql"},"asc":{"match":"\\\\basc(?![0-9A-Z_a-z])","name":"keyword.order.asc.ql"},"at-lower-id":{"match":"@[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])"},"avg":{"match":"\\\\bavg(?![0-9A-Z_a-z])","name":"keyword.aggregate.avg.ql"},"bindingset":{"match":"\\\\bbindingset(?![0-9A-Z_a-z])","name":"storage.modifier.bindingset.ql"},"bindingset-annotation":{"begin":"\\\\b(bindingset(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#bindingset"}]}},"end":"(?!(?:\\\\s|$|/[*/])|\\\\[)|(?<=])","name":"meta.block.bindingset-annotation.ql","patterns":[{"include":"#bindingset-annotation-body"},{"include":"#non-context-sensitive"}]},"bindingset-annotation-body":{"begin":"(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#open-bracket"}]}},"end":"(])","endCaptures":{"1":{"patterns":[{"include":"#close-bracket"}]}},"name":"meta.block.bindingset-annotation-body.ql","patterns":[{"include":"#non-context-sensitive"},{"match":"\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"variable.parameter.ql"}]},"boolean":{"match":"\\\\bboolean(?![0-9A-Z_a-z])","name":"keyword.type.boolean.ql"},"by":{"match":"\\\\bby(?![0-9A-Z_a-z])","name":"keyword.order.by.ql"},"cached":{"match":"\\\\bcached(?![0-9A-Z_a-z])","name":"storage.modifier.cached.ql"},"class":{"match":"\\\\bclass(?![0-9A-Z_a-z])","name":"keyword.other.class.ql"},"class-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#open-brace"}]}},"end":"(})","endCaptures":{"1":{"patterns":[{"include":"#close-brace"}]}},"name":"meta.block.class-body.ql","patterns":[{"include":"#class-member"}]},"class-declaration":{"begin":"\\\\b(class(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#class"}]}},"end":"(?<=[;}])","name":"meta.block.class-declaration.ql","patterns":[{"include":"#class-body"},{"include":"#extends-clause"},{"include":"#non-context-sensitive"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.type.class.ql"}]},"class-member":{"patterns":[{"include":"#predicate-or-field-declaration"},{"include":"#annotation"},{"include":"#non-context-sensitive"}]},"close-angle":{"match":">","name":"punctuation.anglebracket.close.ql"},"close-brace":{"match":"}","name":"punctuation.curlybrace.close.ql"},"close-bracket":{"match":"]","name":"punctuation.squarebracket.close.ql"},"close-paren":{"match":"\\\\)","name":"punctuation.parenthesis.close.ql"},"comma":{"match":",","name":"punctuation.separator.comma.ql"},"comment":{"patterns":[{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.documentation.ql","patterns":[{"begin":"(?<=/\\\\*\\\\*)([^*]|\\\\*(?!/))*$","patterns":[{"match":"\\\\G\\\\s*(@\\\\S+)","name":"keyword.tag.ql"}],"while":"(^|\\\\G)\\\\s*([^*]|\\\\*(?!/))(?=([^*]|\\\\*(?!/))*$)"}]},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.ql"},{"match":"//.*$","name":"comment.line.double-slash.ql"}]},"comment-start":{"match":"/[*/]"},"comparison-operator":{"match":"!??=","name":"keyword.operator.comparison.ql"},"concat":{"match":"\\\\bconcat(?![0-9A-Z_a-z])","name":"keyword.aggregate.concat.ql"},"count":{"match":"\\\\bcount(?![0-9A-Z_a-z])","name":"keyword.aggregate.count.ql"},"date":{"match":"\\\\bdate(?![0-9A-Z_a-z])","name":"keyword.type.date.ql"},"default":{"match":"\\\\bdefault(?![0-9A-Z_a-z])","name":"storage.modifier.default.ql"},"deprecated":{"match":"\\\\bdeprecated(?![0-9A-Z_a-z])","name":"storage.modifier.deprecated.ql"},"desc":{"match":"\\\\bdesc(?![0-9A-Z_a-z])","name":"keyword.order.desc.ql"},"dont-care":{"match":"\\\\b_(?![0-9A-Z_a-z])","name":"variable.language.dont-care.ql"},"dot":{"match":"\\\\.","name":"punctuation.accessor.ql"},"dotdot":{"match":"\\\\.\\\\.","name":"punctuation.operator.range.ql"},"else":{"match":"\\\\belse(?![0-9A-Z_a-z])","name":"keyword.other.else.ql"},"end-of-as-clause":{"match":"(?<=[0-9A-Z_a-z])(?![0-9A-Z_a-z])(?A-Z_a-z])(?!\\\\s*(\\\\.|::|[,<]))","name":"meta.block.import-directive.ql","patterns":[{"include":"#instantiation-args"},{"include":"#non-context-sensitive"},{"match":"\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.type.namespace.ql"}]},"in":{"match":"\\\\bin(?![0-9A-Z_a-z])","name":"keyword.other.in.ql"},"instanceof":{"match":"\\\\binstanceof(?![0-9A-Z_a-z])","name":"keyword.other.instanceof.ql"},"instantiation-args":{"begin":"(<)","beginCaptures":{"1":{"patterns":[{"include":"#open-angle"}]}},"end":"(>)","endCaptures":{"1":{"patterns":[{"include":"#close-angle"}]}},"name":"meta.type.parameters.ql","patterns":[{"include":"#instantiation-args"},{"include":"#non-context-sensitive"},{"match":"\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.type.namespace.ql"}]},"int":{"match":"\\\\bint(?![0-9A-Z_a-z])","name":"keyword.type.int.ql"},"int-literal":{"match":"-?[0-9]+(?![0-9])","name":"constant.numeric.decimal.ql"},"keyword":{"patterns":[{"include":"#dont-care"},{"include":"#and"},{"include":"#any"},{"include":"#as"},{"include":"#asc"},{"include":"#avg"},{"include":"#boolean"},{"include":"#by"},{"include":"#class"},{"include":"#concat"},{"include":"#count"},{"include":"#date"},{"include":"#desc"},{"include":"#else"},{"include":"#exists"},{"include":"#extends"},{"include":"#false"},{"include":"#float"},{"include":"#forall"},{"include":"#forex"},{"include":"#from"},{"include":"#if"},{"include":"#implies"},{"include":"#import"},{"include":"#in"},{"include":"#instanceof"},{"include":"#int"},{"include":"#max"},{"include":"#min"},{"include":"#module"},{"include":"#newtype"},{"include":"#none"},{"include":"#not"},{"include":"#or"},{"include":"#order"},{"include":"#predicate"},{"include":"#rank"},{"include":"#result"},{"include":"#select"},{"include":"#strictconcat"},{"include":"#strictcount"},{"include":"#strictsum"},{"include":"#string"},{"include":"#sum"},{"include":"#super"},{"include":"#then"},{"include":"#this"},{"include":"#true"},{"include":"#unique"},{"include":"#where"}]},"language":{"match":"\\\\blanguage(?![0-9A-Z_a-z])","name":"storage.modifier.language.ql"},"language-annotation":{"begin":"\\\\b(language(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#language"}]}},"end":"(?!(?:\\\\s|$|/[*/])|\\\\[)|(?<=])","name":"meta.block.language-annotation.ql","patterns":[{"include":"#language-annotation-body"},{"include":"#non-context-sensitive"}]},"language-annotation-body":{"begin":"(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#open-bracket"}]}},"end":"(])","endCaptures":{"1":{"patterns":[{"include":"#close-bracket"}]}},"name":"meta.block.language-annotation-body.ql","patterns":[{"include":"#non-context-sensitive"},{"match":"\\\\bmonotonicAggregates(?![0-9A-Z_a-z])","name":"storage.modifier.ql"}]},"library":{"match":"\\\\blibrary(?![0-9A-Z_a-z])","name":"storage.modifier.library.ql"},"literal":{"patterns":[{"include":"#float-literal"},{"include":"#int-literal"},{"include":"#string-literal"}]},"lower-id":{"match":"\\\\b[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])"},"max":{"match":"\\\\bmax(?![0-9A-Z_a-z])","name":"keyword.aggregate.max.ql"},"min":{"match":"\\\\bmin(?![0-9A-Z_a-z])","name":"keyword.aggregate.min.ql"},"module":{"match":"\\\\bmodule(?![0-9A-Z_a-z])","name":"keyword.other.module.ql"},"module-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#open-brace"}]}},"end":"(})","endCaptures":{"1":{"patterns":[{"include":"#close-brace"}]}},"name":"meta.block.module-body.ql","patterns":[{"include":"#module-member"}]},"module-declaration":{"begin":"\\\\b(module(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#module"}]}},"end":"(?<=[;}])","name":"meta.block.module-declaration.ql","patterns":[{"include":"#module-body"},{"include":"#implements-clause"},{"include":"#non-context-sensitive"},{"match":"\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.type.namespace.ql"}]},"module-member":{"patterns":[{"include":"#import-directive"},{"include":"#import-as-clause"},{"include":"#module-declaration"},{"include":"#newtype-declaration"},{"include":"#newtype-branch-name-with-prefix"},{"include":"#predicate-parameter-list"},{"include":"#predicate-body"},{"include":"#class-declaration"},{"include":"#select-clause"},{"include":"#predicate-or-field-declaration"},{"include":"#non-context-sensitive"},{"include":"#annotation"}]},"module-qualifier":{"match":"\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])(?=\\\\s*::)","name":"entity.name.type.namespace.ql"},"newtype":{"match":"\\\\bnewtype(?![0-9A-Z_a-z])","name":"keyword.other.newtype.ql"},"newtype-branch-name-with-prefix":{"begin":"=|\\\\bor(?![0-9A-Z_a-z])","beginCaptures":{"0":{"patterns":[{"include":"#or"},{"include":"#comparison-operator"}]}},"end":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","endCaptures":{"0":{"name":"entity.name.type.ql"}},"name":"meta.block.newtype-branch-name-with-prefix.ql","patterns":[{"include":"#non-context-sensitive"}]},"newtype-declaration":{"begin":"\\\\b(newtype(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#newtype"}]}},"end":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","endCaptures":{"0":{"name":"entity.name.type.ql"}},"name":"meta.block.newtype-declaration.ql","patterns":[{"include":"#non-context-sensitive"}]},"non-context-sensitive":{"patterns":[{"include":"#comment"},{"include":"#literal"},{"include":"#operator-or-punctuation"},{"include":"#keyword"}]},"none":{"match":"\\\\bnone(?![0-9A-Z_a-z])","name":"keyword.quantifier.none.ql"},"not":{"match":"\\\\bnot(?![0-9A-Z_a-z])","name":"keyword.other.not.ql"},"open-angle":{"match":"<","name":"punctuation.anglebracket.open.ql"},"open-brace":{"match":"\\\\{","name":"punctuation.curlybrace.open.ql"},"open-bracket":{"match":"\\\\[","name":"punctuation.squarebracket.open.ql"},"open-paren":{"match":"\\\\(","name":"punctuation.parenthesis.open.ql"},"operator-or-punctuation":{"patterns":[{"include":"#relational-operator"},{"include":"#comparison-operator"},{"include":"#arithmetic-operator"},{"include":"#comma"},{"include":"#semicolon"},{"include":"#dot"},{"include":"#dotdot"},{"include":"#pipe"},{"include":"#open-paren"},{"include":"#close-paren"},{"include":"#open-brace"},{"include":"#close-brace"},{"include":"#open-bracket"},{"include":"#close-bracket"},{"include":"#open-angle"},{"include":"#close-angle"}]},"or":{"match":"\\\\bor(?![0-9A-Z_a-z])","name":"keyword.other.or.ql"},"order":{"match":"\\\\border(?![0-9A-Z_a-z])","name":"keyword.order.order.ql"},"override":{"match":"\\\\boverride(?![0-9A-Z_a-z])","name":"storage.modifier.override.ql"},"pipe":{"match":"\\\\|","name":"punctuation.separator.pipe.ql"},"pragma":{"match":"\\\\bpragma(?![0-9A-Z_a-z])","name":"storage.modifier.pragma.ql"},"pragma-annotation":{"begin":"\\\\b(pragma(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#pragma"}]}},"end":"(?!(?:\\\\s|$|/[*/])|\\\\[)|(?<=])","name":"meta.block.pragma-annotation.ql","patterns":[{"include":"#pragma-annotation-body"},{"include":"#non-context-sensitive"}]},"pragma-annotation-body":{"begin":"(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#open-bracket"}]}},"end":"(])","endCaptures":{"1":{"patterns":[{"include":"#close-bracket"}]}},"name":"meta.block.pragma-annotation-body.ql","patterns":[{"match":"\\\\b(?:inline|noinline|nomagic|noopt)\\\\b","name":"storage.modifier.ql"}]},"predicate":{"match":"\\\\bpredicate(?![0-9A-Z_a-z])","name":"keyword.other.predicate.ql"},"predicate-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#open-brace"}]}},"end":"(})","endCaptures":{"1":{"patterns":[{"include":"#close-brace"}]}},"name":"meta.block.predicate-body.ql","patterns":[{"include":"#predicate-body-contents"}]},"predicate-body-contents":{"patterns":[{"include":"#expr-as-clause"},{"include":"#non-context-sensitive"},{"include":"#module-qualifier"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])\\\\s*[*+]?\\\\s*(?=\\\\()","name":"entity.name.function.ql"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"variable.other.ql"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])|@[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.type.ql"}]},"predicate-or-field-declaration":{"begin":"(?=\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z]))(?!\\\\b(?:(?:_(?![0-9A-Z_a-z])|and(?![0-9A-Z_a-z])|any(?![0-9A-Z_a-z])|as(?![0-9A-Z_a-z])|asc(?![0-9A-Z_a-z])|avg(?![0-9A-Z_a-z])|boolean(?![0-9A-Z_a-z])|by(?![0-9A-Z_a-z])|class(?![0-9A-Z_a-z])|concat(?![0-9A-Z_a-z])|count(?![0-9A-Z_a-z])|date(?![0-9A-Z_a-z])|desc(?![0-9A-Z_a-z])|else(?![0-9A-Z_a-z])|exists(?![0-9A-Z_a-z])|extends(?![0-9A-Z_a-z])|false(?![0-9A-Z_a-z])|float(?![0-9A-Z_a-z])|forall(?![0-9A-Z_a-z])|forex(?![0-9A-Z_a-z])|from(?![0-9A-Z_a-z])|if(?![0-9A-Z_a-z])|implies(?![0-9A-Z_a-z])|import(?![0-9A-Z_a-z])|in(?![0-9A-Z_a-z])|instanceof(?![0-9A-Z_a-z])|int(?![0-9A-Z_a-z])|max(?![0-9A-Z_a-z])|min(?![0-9A-Z_a-z])|module(?![0-9A-Z_a-z])|newtype(?![0-9A-Z_a-z])|none(?![0-9A-Z_a-z])|not(?![0-9A-Z_a-z])|or(?![0-9A-Z_a-z])|order(?![0-9A-Z_a-z])|predicate(?![0-9A-Z_a-z])|rank(?![0-9A-Z_a-z])|result(?![0-9A-Z_a-z])|select(?![0-9A-Z_a-z])|strictconcat(?![0-9A-Z_a-z])|strictcount(?![0-9A-Z_a-z])|strictsum(?![0-9A-Z_a-z])|string(?![0-9A-Z_a-z])|sum(?![0-9A-Z_a-z])|super(?![0-9A-Z_a-z])|then(?![0-9A-Z_a-z])|this(?![0-9A-Z_a-z])|true(?![0-9A-Z_a-z])|unique(?![0-9A-Z_a-z])|where(?![0-9A-Z_a-z]))|(?:abstract(?![0-9A-Z_a-z])|additional(?![0-9A-Z_a-z])|bindingset(?![0-9A-Z_a-z])|cached(?![0-9A-Z_a-z])|default(?![0-9A-Z_a-z])|deprecated(?![0-9A-Z_a-z])|external(?![0-9A-Z_a-z])|final(?![0-9A-Z_a-z])|language(?![0-9A-Z_a-z])|library(?![0-9A-Z_a-z])|override(?![0-9A-Z_a-z])|pragma(?![0-9A-Z_a-z])|private(?![0-9A-Z_a-z])|query(?![0-9A-Z_a-z])|signature(?![0-9A-Z_a-z])|transient(?![0-9A-Z_a-z]))))|(?=\\\\b(?:boolean(?![0-9A-Z_a-z])|date(?![0-9A-Z_a-z])|float(?![0-9A-Z_a-z])|int(?![0-9A-Z_a-z])|predicate(?![0-9A-Z_a-z])|string(?![0-9A-Z_a-z])))|(?=@[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z]))","end":"(?<=[;}])","name":"meta.block.predicate-or-field-declaration.ql","patterns":[{"include":"#predicate-parameter-list"},{"include":"#predicate-body"},{"include":"#non-context-sensitive"},{"include":"#module-qualifier"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])(?=\\\\s*;)","name":"variable.field.ql"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.function.ql"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])|@[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.type.ql"}]},"predicate-parameter-list":{"begin":"(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#open-paren"}]}},"end":"(\\\\))","endCaptures":{"1":{"patterns":[{"include":"#close-paren"}]}},"name":"meta.block.predicate-parameter-list.ql","patterns":[{"include":"#non-context-sensitive"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])(?=\\\\s*[),])","name":"variable.parameter.ql"},{"include":"#module-qualifier"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])|@[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"entity.name.type.ql"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"variable.parameter.ql"}]},"predicate-start-keyword":{"patterns":[{"include":"#boolean"},{"include":"#date"},{"include":"#float"},{"include":"#int"},{"include":"#predicate"},{"include":"#string"}]},"private":{"match":"\\\\bprivate(?![0-9A-Z_a-z])","name":"storage.modifier.private.ql"},"query":{"match":"\\\\bquery(?![0-9A-Z_a-z])","name":"storage.modifier.query.ql"},"rank":{"match":"\\\\brank(?![0-9A-Z_a-z])","name":"keyword.aggregate.rank.ql"},"relational-operator":{"match":"<=?|>=?","name":"keyword.operator.relational.ql"},"result":{"match":"\\\\bresult(?![0-9A-Z_a-z])","name":"variable.language.result.ql"},"select":{"match":"\\\\bselect(?![0-9A-Z_a-z])","name":"keyword.query.select.ql"},"select-as-clause":{"begin":"\\\\b(as(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#as"}]}},"end":"(?<=[0-9A-Z_a-z])(?![0-9A-Z_a-z])","match":"meta.block.select-as-clause.ql","patterns":[{"include":"#non-context-sensitive"},{"match":"\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])","name":"variable.other.ql"}]},"select-clause":{"begin":"(?=\\\\b(?:from(?![0-9A-Z_a-z])|where(?![0-9A-Z_a-z])|select(?![0-9A-Z_a-z])))","end":"(?!\\\\b(?:from(?![0-9A-Z_a-z])|where(?![0-9A-Z_a-z])|select(?![0-9A-Z_a-z])))","name":"meta.block.select-clause.ql","patterns":[{"include":"#from-section"},{"include":"#where-section"},{"include":"#select-section"}]},"select-section":{"begin":"\\\\b(select(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#select"}]}},"end":"(?=\\\\n)","name":"meta.block.select-section.ql","patterns":[{"include":"#predicate-body-contents"},{"include":"#select-as-clause"}]},"semicolon":{"match":";","name":"punctuation.separator.statement.ql"},"signature":{"match":"\\\\bsignature(?![0-9A-Z_a-z])","name":"storage.modifier.signature.ql"},"simple-id":{"match":"\\\\b[A-Za-z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])"},"strictconcat":{"match":"\\\\bstrictconcat(?![0-9A-Z_a-z])","name":"keyword.aggregate.strictconcat.ql"},"strictcount":{"match":"\\\\bstrictcount(?![0-9A-Z_a-z])","name":"keyword.aggregate.strictcount.ql"},"strictsum":{"match":"\\\\bstrictsum(?![0-9A-Z_a-z])","name":"keyword.aggregate.strictsum.ql"},"string":{"match":"\\\\bstring(?![0-9A-Z_a-z])","name":"keyword.type.string.ql"},"string-escape":{"match":"\\\\\\\\[\\"\\\\\\\\nrt]","name":"constant.character.escape.ql"},"string-literal":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ql"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ql"},"2":{"name":"invalid.illegal.newline.ql"}},"name":"string.quoted.double.ql","patterns":[{"include":"#string-escape"}]},"sum":{"match":"\\\\bsum(?![0-9A-Z_a-z])","name":"keyword.aggregate.sum.ql"},"super":{"match":"\\\\bsuper(?![0-9A-Z_a-z])","name":"variable.language.super.ql"},"then":{"match":"\\\\bthen(?![0-9A-Z_a-z])","name":"keyword.other.then.ql"},"this":{"match":"\\\\bthis(?![0-9A-Z_a-z])","name":"variable.language.this.ql"},"transient":{"match":"\\\\btransient(?![0-9A-Z_a-z])","name":"storage.modifier.transient.ql"},"true":{"match":"\\\\btrue(?![0-9A-Z_a-z])","name":"constant.language.boolean.true.ql"},"unique":{"match":"\\\\bunique(?![0-9A-Z_a-z])","name":"keyword.aggregate.unique.ql"},"upper-id":{"match":"\\\\b[A-Z][0-9A-Z_a-z]*(?![0-9A-Z_a-z])"},"where":{"match":"\\\\bwhere(?![0-9A-Z_a-z])","name":"keyword.query.where.ql"},"where-section":{"begin":"\\\\b(where(?![0-9A-Z_a-z]))","beginCaptures":{"1":{"patterns":[{"include":"#where"}]}},"end":"(?=\\\\bselect(?![0-9A-Z_a-z]))","name":"meta.block.where-section.ql","patterns":[{"include":"#predicate-body-contents"}]},"whitespace-or-comment-start":{"match":"\\\\s|$|/[*/]"}},"scopeName":"source.ql","aliases":["ql"]}'))];export{e as default}; diff --git a/docs/assets/coffee-5DFMhSBl.js b/docs/assets/coffee-5DFMhSBl.js new file mode 100644 index 0000000..1c38649 --- /dev/null +++ b/docs/assets/coffee-5DFMhSBl.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";var t=Object.freeze(JSON.parse(`{"displayName":"CoffeeScript","name":"coffee","patterns":[{"include":"#jsx"},{"captures":{"1":{"name":"keyword.operator.new.coffee"},"2":{"name":"storage.type.class.coffee"},"3":{"name":"entity.name.type.instance.coffee"},"4":{"name":"entity.name.type.instance.coffee"}},"match":"(new)\\\\s+(?:(class)\\\\s+(\\\\w+(?:\\\\.\\\\w*)*)?|(\\\\w+(?:\\\\.\\\\w*)*))","name":"meta.class.instance.constructor.coffee"},{"begin":"'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coffee"}},"end":"'''","endCaptures":{"0":{"name":"punctuation.definition.string.end.coffee"}},"name":"string.quoted.single.heredoc.coffee","patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.backslash.coffee"}},"match":"(\\\\\\\\).","name":"constant.character.escape.backslash.coffee"}]},{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coffee"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.coffee"}},"name":"string.quoted.double.heredoc.coffee","patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.backslash.coffee"}},"match":"(\\\\\\\\).","name":"constant.character.escape.backslash.coffee"},{"include":"#interpolated_coffee"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.coffee"},"2":{"name":"source.js.embedded.coffee","patterns":[{"include":"source.js"}]},"3":{"name":"punctuation.definition.string.end.coffee"}},"match":"(\`)(.*)(\`)","name":"string.quoted.script.coffee"},{"begin":"(?)","beginCaptures":{"1":{"name":"entity.name.function.coffee"},"2":{"name":"variable.other.readwrite.instance.coffee"},"3":{"name":"keyword.operator.assignment.coffee"}},"end":"[-=]>","endCaptures":{"0":{"name":"storage.type.function.coffee"}},"name":"meta.function.coffee","patterns":[{"include":"#function_params"}]},{"begin":"(?<=\\\\s|^)(?:((')([^']*?)('))|((\\")([^\\"]*?)(\\")))\\\\s*([:=])\\\\s*(?=(\\\\([^()]*\\\\)\\\\s*)?[-=]>)","beginCaptures":{"1":{"name":"string.quoted.single.coffee"},"2":{"name":"punctuation.definition.string.begin.coffee"},"3":{"name":"entity.name.function.coffee"},"4":{"name":"punctuation.definition.string.end.coffee"},"5":{"name":"string.quoted.double.coffee"},"6":{"name":"punctuation.definition.string.begin.coffee"},"7":{"name":"entity.name.function.coffee"},"8":{"name":"punctuation.definition.string.end.coffee"},"9":{"name":"keyword.operator.assignment.coffee"}},"end":"[-=]>","endCaptures":{"0":{"name":"storage.type.function.coffee"}},"name":"meta.function.coffee","patterns":[{"include":"#function_params"}]},{"begin":"(?=(\\\\([^()]*\\\\)\\\\s*)?[-=]>)","end":"[-=]>","endCaptures":{"0":{"name":"storage.type.function.coffee"}},"name":"meta.function.inline.coffee","patterns":[{"include":"#function_params"}]},{"begin":"(?<=\\\\s|^)(\\\\{)(?=[^\\"#']+?}[]}\\\\s]*=)","beginCaptures":{"1":{"name":"punctuation.definition.destructuring.begin.bracket.curly.coffee"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.destructuring.end.bracket.curly.coffee"}},"name":"meta.variable.assignment.destructured.object.coffee","patterns":[{"include":"$self"},{"match":"[$A-Z_a-z]\\\\w*","name":"variable.assignment.coffee"}]},{"begin":"(?<=\\\\s|^)(\\\\[)(?=[^\\"#']+?][]}\\\\s]*=)","beginCaptures":{"1":{"name":"punctuation.definition.destructuring.begin.bracket.square.coffee"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.destructuring.end.bracket.square.coffee"}},"name":"meta.variable.assignment.destructured.array.coffee","patterns":[{"include":"$self"},{"match":"[$A-Z_a-z]\\\\w*","name":"variable.assignment.coffee"}]},{"match":"\\\\b(?|-\\\\d|[\\"'\\\\[{]))","end":"(?=\\\\s*(?|-\\\\d|[\\"'\\\\[{])))","beginCaptures":{"1":{"name":"variable.other.readwrite.instance.coffee"},"2":{"patterns":[{"include":"#function_names"}]}},"end":"(?=\\\\s*(?)","name":"meta.tag.coffee"}]},"jsx-expression":{"begin":"\\\\{","beginCaptures":{"0":{"name":"meta.brace.curly.coffee"}},"end":"}","endCaptures":{"0":{"name":"meta.brace.curly.coffee"}},"patterns":[{"include":"#double_quoted_string"},{"include":"$self"}]},"jsx-tag":{"patterns":[{"begin":"(<)([-.\\\\w]+)","beginCaptures":{"1":{"name":"punctuation.definition.tag.coffee"},"2":{"name":"entity.name.tag.coffee"}},"end":"(/?>)","name":"meta.tag.coffee","patterns":[{"include":"#jsx-attribute"}]}]},"method_calls":{"patterns":[{"begin":"(?:(\\\\.)|(::))\\\\s*([$\\\\w]+)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.separator.method.period.coffee"},"2":{"name":"keyword.operator.prototype.coffee"},"3":{"patterns":[{"include":"#method_names"}]}},"end":"(?<=\\\\))","name":"meta.method-call.coffee","patterns":[{"include":"#arguments"}]},{"begin":"(?:(\\\\.)|(::))\\\\s*([$\\\\w]+)\\\\s*(?=\\\\s+(?!(?|-\\\\d|[\\"'\\\\[{])))","beginCaptures":{"1":{"name":"punctuation.separator.method.period.coffee"},"2":{"name":"keyword.operator.prototype.coffee"},"3":{"patterns":[{"include":"#method_names"}]}},"end":"(?=\\\\s*(?>>??|\\\\|)=)"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.coffee"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.coffee"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.coffee"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.coffee"},{"captures":{"1":{"name":"variable.assignment.coffee"},"2":{"name":"keyword.operator.assignment.coffee"}},"match":"([$A-Z_a-z][$\\\\w]*)?\\\\s*(=|:(?!:))(?![=>])"},{"match":"--","name":"keyword.operator.decrement.coffee"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.coffee"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.splat.coffee"},{"match":"\\\\?","name":"keyword.operator.existential.coffee"},{"match":"[-%*+/]","name":"keyword.operator.coffee"},{"captures":{"1":{"name":"keyword.operator.logical.coffee"},"2":{"name":"keyword.operator.comparison.coffee"}},"match":"\\\\b(?|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,v=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,d=/^[_A-Za-z$][_A-Za-z$0-9]*/,k=/^@[_A-Za-z$][_A-Za-z$0-9]*/,g=f(["and","or","not","is","isnt","in","instanceof","typeof"]),p=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],y=f(p.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));p=f(p);var z=/^('{3}|\"{3}|['\"])/,b=/^(\/{3}|\/)/,x=f(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function a(e,n){if(e.sol()){n.scope.align===null&&(n.scope.align=!1);var r=n.scope.offset;if(e.eatSpace()){var o=e.indentation();return o>r&&n.scope.type=="coffee"?"indent":o0&&l(e,n)}if(e.eatSpace())return null;var c=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return n.tokenize=w,n.tokenize(e,n);if(c==="#")return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var i=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^-?\d+\.\d*/)&&(i=!0),e.match(/^-?\.\d+/)&&(i=!0),i)return e.peek()=="."&&e.backUp(1),"number";var t=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(t=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(t=!0),e.match(/^-?0(?![\dx])/i)&&(t=!0),t)return"number"}if(e.match(z))return n.tokenize=m(e.current(),!1,"string"),n.tokenize(e,n);if(e.match(b)){if(e.current()!="/"||e.match(/^.*\//,!1))return n.tokenize=m(e.current(),!0,"string.special"),n.tokenize(e,n);e.backUp(1)}return e.match(h)||e.match(g)?"operator":e.match(v)?"punctuation":e.match(x)?"atom":e.match(k)||n.prop&&e.match(d)?"property":e.match(y)?"keyword":e.match(d)?"variable":(e.next(),s)}function m(e,n,r){return function(o,c){for(;!o.eol();)if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),n&&o.eol())return r}else{if(o.match(e))return c.tokenize=a,r;o.eat(/['"\/]/)}return n&&(c.tokenize=a),r}}function w(e,n){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){n.tokenize=a;break}e.eatWhile("#")}return"comment"}function u(e,n,r="coffee"){for(var o=0,c=!1,i=null,t=n.scope;t;t=t.prev)if(t.type==="coffee"||t.type=="}"){o=t.offset+e.indentUnit;break}r==="coffee"?n.scope.align&&(n.scope.align=!1):(c=null,i=e.column()+e.current().length),n.scope={offset:o,type:r,prev:n.scope,align:c,alignOffset:i}}function l(e,n){if(n.scope.prev)if(n.scope.type==="coffee"){for(var r=e.indentation(),o=!1,c=n.scope;c;c=c.prev)if(r===c.offset){o=!0;break}if(!o)return!0;for(;n.scope.prev&&n.scope.offset!==r;)n.scope=n.scope.prev;return!1}else return n.scope=n.scope.prev,!1}function A(e,n){var r=n.tokenize(e,n),o=e.current();o==="return"&&(n.dedent=!0),((o==="->"||o==="=>")&&e.eol()||r==="indent")&&u(e,n);var c="[({".indexOf(o);if(c!==-1&&u(e,n,"])}".slice(c,c+1)),p.exec(o)&&u(e,n),o=="then"&&l(e,n),r==="dedent"&&l(e,n))return s;if(c="])}".indexOf(o),c!==-1){for(;n.scope.type=="coffee"&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==o&&(n.scope=n.scope.prev)}return n.dedent&&e.eol()&&(n.scope.type=="coffee"&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),r=="indent"||r=="dedent"?null:r}const _={name:"coffeescript",startState:function(){return{tokenize:a,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,n){var r=n.scope.align===null&&n.scope;r&&e.sol()&&(r.align=!1);var o=A(e,n);return o&&o!="comment"&&(r&&(r.align=!0),n.prop=o=="punctuation"&&e.current()=="."),o},indent:function(e,n){if(e.tokenize!=a)return 0;var r=e.scope,o=n&&"])}".indexOf(n.charAt(0))>-1;if(o)for(;r.type=="coffee"&&r.prev;)r=r.prev;var c=o&&r.type===n.charAt(0);return r.align?r.alignOffset-(c?1:0):(c?r.prev:r).offset},languageData:{commentTokens:{line:"#"}}};export{_ as t}; diff --git a/docs/assets/colors-BG8Z91CW.js b/docs/assets/colors-BG8Z91CW.js new file mode 100644 index 0000000..c36b5cd --- /dev/null +++ b/docs/assets/colors-BG8Z91CW.js @@ -0,0 +1 @@ +function n(r){for(var t=r.length/6|0,a=Array(t),e=0;e{let e=(0,h.c)(4),{isExpanded:a}=o,s=a&&"rotate-90",t;e[0]===s?t=e[1]:(t=x("h-3 w-3 transition-transform",s),e[0]=s,e[1]=t);let r;return e[2]===t?r=e[3]:(r=(0,l.jsx)(ne,{className:t}),e[2]=t,e[3]=r),r},fe=o=>{let e=(0,h.c)(5),{children:a,className:s}=o,t;e[0]===s?t=e[1]:(t=x("flex gap-1.5 items-center font-bold py-1.5 text-muted-foreground bg-(--slate-2) text-sm",s),e[0]=s,e[1]=t);let r;return e[2]!==a||e[3]!==t?(r=(0,l.jsx)("div",{className:t,children:a}),e[2]=a,e[3]=t,e[4]=r):r=e[4],r},ge=o=>{let e=(0,h.c)(5),{content:a,className:s}=o,t;e[0]===s?t=e[1]:(t=x("text-sm text-muted-foreground py-1",s),e[0]=s,e[1]=t);let r;return e[2]!==a||e[3]!==t?(r=(0,l.jsx)("div",{className:t,children:a}),e[2]=a,e[3]=t,e[4]=r):r=e[4],r},ye=o=>{let e=(0,h.c)(6),{error:a,className:s}=o,t;e[0]===s?t=e[1]:(t=x("text-sm bg-red-50 dark:bg-red-900 text-red-600 dark:text-red-50 flex items-center gap-2 p-2 h-8",s),e[0]=s,e[1]=t);let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(re,{className:"h-4 w-4 mt-0.5"}),e[2]=r):r=e[2];let n;return e[3]!==a.message||e[4]!==t?(n=(0,l.jsxs)("div",{className:t,children:[r,a.message]}),e[3]=a.message,e[4]=t,e[5]=n):n=e[5],n},be=o=>{let e=(0,h.c)(6),{message:a,className:s}=o,t;e[0]===s?t=e[1]:(t=x("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8",s),e[0]=s,e[1]=t);let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(le,{className:"h-4 w-4 animate-spin"}),e[2]=r):r=e[2];let n;return e[3]!==a||e[4]!==t?(n=(0,l.jsxs)("div",{className:t,children:[r,a]}),e[3]=a,e[4]=t,e[5]=n):n=e[5],n},E=o=>{let e=(0,h.c)(5),{children:a,className:s}=o,t;e[0]===s?t=e[1]:(t=x("flex flex-col gap-2 relative",s),e[0]=s,e[1]=t);let r;return e[2]!==a||e[3]!==t?(r=(0,l.jsx)("div",{className:t,children:a}),e[2]=a,e[3]=t,e[4]=r):r=e[4],r},_e=o=>{let e=(0,h.c)(6),{columnName:a,dataType:s}=o,t=U[s],r=`w-4 h-4 p-0.5 rounded-sm stroke-card-foreground ${W(s)}`,n;e[0]!==t||e[1]!==r?(n=(0,l.jsx)(t,{className:r}),e[0]=t,e[1]=r,e[2]=n):n=e[2];let c;return e[3]!==a||e[4]!==n?(c=(0,l.jsxs)("div",{className:"flex flex-row items-center gap-1.5",children:[n,a]}),e[3]=a,e[4]=n,e[5]=c):c=e[5],c};var je=D(),Ne=L(R(),1);const ke=o=>{let e=(0,je.c)(13),{packages:a,showMaxPackages:s,className:t,onInstall:r}=o,{handleInstallPackages:n}=pe();if(!a||a.length===0)return null;let c;e[0]!==n||e[1]!==r||e[2]!==a?(c=()=>{n(a,r)},e[0]=n,e[1]=r,e[2]=a,e[3]=c):c=e[3];let i;e[4]===t?i=e[5]:(i=x("ml-2",t),e[4]=t,e[5]=i);let d;e[6]!==a||e[7]!==s?(d=s?a.slice(0,s).join(", "):a.join(", "),e[6]=a,e[7]=s,e[8]=d):d=e[8];let p;return e[9]!==c||e[10]!==i||e[11]!==d?(p=(0,l.jsxs)(z,{variant:"outline",size:"xs",onClick:c,className:i,children:["Install"," ",d]}),e[9]=c,e[10]=i,e[11]=d,e[12]=p):p=e[12],p};var Q=D();const ve=o=>{let e=(0,Q.c)(53),{table:a,column:s,preview:t,onAddColumnChart:r,sqlTableContext:n}=o,{theme:c}=ce(),{previewDatasetColumn:i}=ae(),{locale:d}=ie(),p;e[0]!==s.name||e[1]!==i||e[2]!==n||e[3]!==a.name||e[4]!==a.source||e[5]!==a.source_type?(p=()=>{i({source:a.source,tableName:a.name,columnName:s.name,sourceType:a.source_type,fullyQualifiedTableName:n?`${n.database}.${n.schema}.${a.name}`:a.name})},e[0]=s.name,e[1]=i,e[2]=n,e[3]=a.name,e[4]=a.source,e[5]=a.source_type,e[6]=p):p=e[6];let u=p,y;if(e[7]!==t||e[8]!==u||e[9]!==a.source_type?(y=()=>{t||a.source_type==="connection"||a.source_type==="catalog"||u()},e[7]=t,e[8]=u,e[9]=a.source_type,e[10]=y):y=e[10],X(y),a.source_type==="connection"){let m=s.name,H=s.external_type,f;e[11]!==s.name||e[12]!==r||e[13]!==n||e[14]!==a?(f=M.stopPropagation(()=>{r(O({table:a,columnName:s.name,sqlTableContext:n}))}),e[11]=s.name,e[12]=r,e[13]=n,e[14]=a,e[15]=f):f=e[15];let P;e[16]===Symbol.for("react.memo_cache_sentinel")?(P=(0,l.jsx)(I,{className:"h-3 w-3 mr-1"}),e[16]=P):P=e[16];let g;e[17]===f?g=e[18]:(g=(0,l.jsxs)(z,{variant:"outline",size:"xs",onClick:f,children:[P," Add SQL cell"]}),e[17]=f,e[18]=g);let T;return e[19]!==s.external_type||e[20]!==s.name||e[21]!==g?(T=(0,l.jsxs)("span",{className:"text-xs text-muted-foreground gap-2 flex items-center justify-between pl-7",children:[m," (",H,")",g]}),e[19]=s.external_type,e[20]=s.name,e[21]=g,e[22]=T):T=e[22],T}if(a.source_type==="catalog"){let m;return e[23]!==s.external_type||e[24]!==s.name?(m=(0,l.jsxs)("span",{className:"text-xs text-muted-foreground gap-2 flex items-center justify-between pl-7",children:[s.name," (",s.external_type,")"]}),e[23]=s.external_type,e[24]=s.name,e[25]=m):m=e[25],m}if(!t){let m;return e[26]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:"Loading..."}),e[26]=m):m=e[26],m}let b;e[27]!==t.error||e[28]!==t.missing_packages||e[29]!==u?(b=t.error&&G({error:t.error,missingPackages:t.missing_packages,refetchPreview:u}),e[27]=t.error,e[28]=t.missing_packages,e[29]=u,e[30]=b):b=e[30];let _=b,j;e[31]!==s.type||e[32]!==d||e[33]!==t.stats?(j=t.stats&&J({stats:t.stats,dataType:s.type,locale:d}),e[31]=s.type,e[32]=d,e[33]=t.stats,e[34]=j):j=e[34];let N=j,k;e[35]!==t.chart_spec||e[36]!==c?(k=t.chart_spec&&B(t.chart_spec,c),e[35]=t.chart_spec,e[36]=c,e[37]=k):k=e[37];let v=k,w;e[38]!==t.chart_code||e[39]!==a.source_type?(w=t.chart_code&&a.source_type==="local"&&(0,l.jsx)(F,{chartCode:t.chart_code}),e[38]=t.chart_code,e[39]=a.source_type,e[40]=w):w=e[40];let A=w,C;e[41]!==s.name||e[42]!==r||e[43]!==n||e[44]!==a?(C=a.source_type==="duckdb"&&(0,l.jsx)($,{content:"Add SQL cell",delayDuration:400,children:(0,l.jsx)(z,{variant:"outline",size:"icon",className:"z-10 bg-background absolute right-1 -top-1",onClick:M.stopPropagation(()=>{r(O({table:a,columnName:s.name,sqlTableContext:n}))}),children:(0,l.jsx)(I,{className:"h-3 w-3"})})}),e[41]=s.name,e[42]=r,e[43]=n,e[44]=a,e[45]=C):C=e[45];let q=C;if(!_&&!N&&!v){let m;return e[46]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)("span",{className:"text-xs text-muted-foreground",children:"No data"}),e[46]=m):m=e[46],m}let S;return e[47]!==A||e[48]!==q||e[49]!==v||e[50]!==_||e[51]!==N?(S=(0,l.jsxs)(E,{children:[_,A,q,v,N]}),e[47]=A,e[48]=q,e[49]=v,e[50]=_,e[51]=N,e[52]=S):S=e[52],S};function G({error:o,missingPackages:e,refetchPreview:a}){return(0,l.jsxs)("div",{className:"text-xs text-muted-foreground p-2 border border-border rounded flex items-center justify-between",children:[(0,l.jsx)("span",{children:o}),e&&(0,l.jsx)(ke,{packages:e,showMaxPackages:1,className:"w-32",onInstall:a})]})}function J({stats:o,dataType:e,locale:a}){return(0,l.jsx)("div",{className:"gap-x-16 gap-y-1 grid grid-cols-2-fit border rounded p-2 empty:hidden",children:Object.entries(o).map(([s,t])=>t==null?null:(0,l.jsxs)("div",{className:"flex items-center gap-1 group",children:[(0,l.jsx)("span",{className:"text-xs min-w-[60px] capitalize",children:V(s,e)}),(0,l.jsx)("span",{className:"text-xs font-bold text-muted-foreground tracking-wide",children:me(t,a)}),(0,l.jsx)(de,{className:"h-3 w-3 invisible group-hover:visible",value:String(t)})]},s))})}var we=(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(oe,{className:"size-4"})});function B(o,e){return(0,l.jsx)(Ne.Suspense,{fallback:we,children:(0,l.jsx)(te,{spec:(a=>({...a,background:"transparent",config:{...a.config,background:"transparent"}}))(JSON.parse(o)),options:{theme:e==="dark"?"dark":"vox",height:100,width:"container",actions:!1,renderer:"canvas"}})})}const F=o=>{let e=(0,Q.c)(10),{chartCode:a}=o,s=K(Z),t=xe(),{createNewCell:r}=Y(),n;e[0]!==s||e[1]!==r||e[2]!==t?(n=u=>{u.includes("alt")&&ue({autoInstantiate:s,createNewCell:r,fromCellId:t}),r({code:u,before:!1,cellId:t??"__end__"})},e[0]=s,e[1]=r,e[2]=t,e[3]=n):n=e[3];let c=n,i;e[4]!==a||e[5]!==c?(i=M.stopPropagation(()=>c(a)),e[4]=a,e[5]=c,e[6]=i):i=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,l.jsx)(I,{className:"h-3 w-3"}),e[7]=d):d=e[7];let p;return e[8]===i?p=e[9]:(p=(0,l.jsx)($,{content:"Add chart to notebook",delayDuration:400,children:(0,l.jsx)(z,{variant:"outline",size:"icon",className:"z-10 bg-background absolute right-1 -top-0.5",onClick:i,children:d})}),e[8]=i,e[9]=p),p};export{J as a,fe as c,be as d,he as f,G as i,ge as l,ve as n,_e as o,I as p,B as r,E as s,F as t,ye as u}; diff --git a/docs/assets/command-B1zRJT1a.js b/docs/assets/command-B1zRJT1a.js new file mode 100644 index 0000000..67f6838 --- /dev/null +++ b/docs/assets/command-B1zRJT1a.js @@ -0,0 +1 @@ +import{s as fe}from"./chunk-LvLJmgfZ.js";import{t as De}from"./react-BGmjiNul.js";import{G as Pe}from"./cells-CmJW_FeD.js";import{t as $e}from"./compiler-runtime-DeeZ7FnK.js";import{n as V}from"./useEventListener-COkmyg1v.js";import{t as Le}from"./jsx-runtime-DN_bIXfG.js";import{t as P}from"./cn-C1rgT0yh.js";import{lt as Fe}from"./input-Bkl2Yfmh.js";import{f as $}from"./Combination-D1TsGrBC.js";import{c as Ke,n as Oe,o as Ve,t as qe}from"./menu-items-9PZrU2e0.js";import{_ as ze,g as Be,h as Ge,p as He}from"./alert-dialog-jcHA5geR.js";import{n as Ue,t as Te}from"./dialog-CF5DtF1E.js";import{t as A}from"./dist-D0NgYwYf.js";var pe=1,We=.9,Je=.8,Qe=.17,ee=.1,te=.999,Xe=.9999,Ye=.99,Ze=/[\\\/_+.#"@\[\(\{&]/,et=/[\\\/_+.#"@\[\(\{&]/g,tt=/[\s-]/,ve=/[\s-]/g;function re(t,r,e,n,a,l,o){if(l===r.length)return a===t.length?pe:Ye;var m=`${a},${l}`;if(o[m]!==void 0)return o[m];for(var p=n.charAt(l),c=e.indexOf(p,a),f=0,v,y,x,I;c>=0;)v=re(t,r,e,n,c+1,l+1,o),v>f&&(c===a?v*=pe:Ze.test(t.charAt(c-1))?(v*=Je,x=t.slice(a,c-1).match(et),x&&a>0&&(v*=te**+x.length)):tt.test(t.charAt(c-1))?(v*=We,I=t.slice(a,c-1).match(ve),I&&a>0&&(v*=te**+I.length)):(v*=Qe,a>0&&(v*=te**+(c-a))),t.charAt(c)!==r.charAt(l)&&(v*=Xe)),(vv&&(v=y*ee)),v>f&&(f=v),c=e.indexOf(p,c+1);return o[m]=f,f}function he(t){return t.toLowerCase().replace(ve," ")}function rt(t,r,e){return t=e&&e.length>0?`${t+" "+e.join(" ")}`:t,re(t,r,he(t),he(r),0,0,{})}var u=fe(De(),1),q='[cmdk-group=""]',ae='[cmdk-group-items=""]',at='[cmdk-group-heading=""]',ge='[cmdk-item=""]',be=`${ge}:not([aria-disabled="true"])`,ne="cmdk-item-select",L="data-value",nt=(t,r,e)=>rt(t,r,e),we=u.createContext(void 0),z=()=>u.useContext(we),ye=u.createContext(void 0),le=()=>u.useContext(ye),xe=u.createContext(void 0),ke=u.forwardRef((t,r)=>{let e=F(()=>({search:"",value:t.value??t.defaultValue??"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),n=F(()=>new Set),a=F(()=>new Map),l=F(()=>new Map),o=F(()=>new Set),m=Se(t),{label:p,children:c,value:f,onValueChange:v,filter:y,shouldFilter:x,loop:I,disablePointerSelection:Me=!1,vimBindings:H=!0,...B}=t,U=$(),T=$(),K=$(),b=u.useRef(null),N=pt();M(()=>{if(f!==void 0){let i=f.trim();e.current.value=i,S.emit()}},[f]),M(()=>{N(6,ue)},[]);let S=u.useMemo(()=>({subscribe:i=>(o.current.add(i),()=>o.current.delete(i)),snapshot:()=>e.current,setState:(i,d,h)=>{var R;var s,g,w;if(!Object.is(e.current[i],d)){if(e.current[i]=d,i==="search")X(),J(),N(1,Q);else if(i==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let C=document.getElementById(K);C?C.focus():(s=document.getElementById(U))==null||s.focus()}if(N(7,()=>{var C;e.current.selectedItemId=(C=D())==null?void 0:C.id,S.emit()}),h||N(5,ue),((R=m.current)==null?void 0:R.value)!==void 0){let C=d??"";(w=(g=m.current).onValueChange)==null||w.call(g,C);return}}S.emit()}},emit:()=>{o.current.forEach(i=>i())}}),[]),W=u.useMemo(()=>({value:(i,d,h)=>{var s;d!==((s=l.current.get(i))==null?void 0:s.value)&&(l.current.set(i,{value:d,keywords:h}),e.current.filtered.items.set(i,oe(d,h)),N(2,()=>{J(),S.emit()}))},item:(i,d)=>(n.current.add(i),d&&(a.current.has(d)?a.current.get(d).add(i):a.current.set(d,new Set([i]))),N(3,()=>{X(),J(),e.current.value||Q(),S.emit()}),()=>{l.current.delete(i),n.current.delete(i),e.current.filtered.items.delete(i);let h=D();N(4,()=>{X(),(h==null?void 0:h.getAttribute("id"))===i&&Q(),S.emit()})}),group:i=>(a.current.has(i)||a.current.set(i,new Set),()=>{l.current.delete(i),a.current.delete(i)}),filter:()=>m.current.shouldFilter,label:p||t["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:U,inputId:K,labelId:T,listInnerRef:b}),[]);function oe(i,d){var s;let h=((s=m.current)==null?void 0:s.filter)??nt;return i?h(i,e.current.search,d):0}function J(){if(!e.current.search||m.current.shouldFilter===!1)return;let i=e.current.filtered.items,d=[];e.current.filtered.groups.forEach(s=>{let g=a.current.get(s),w=0;g.forEach(R=>{let C=i.get(R);w=Math.max(C,w)}),d.push([s,w])});let h=b.current;O().sort((s,g)=>{let w=s.getAttribute("id"),R=g.getAttribute("id");return(i.get(R)??0)-(i.get(w)??0)}).forEach(s=>{let g=s.closest(ae);g?g.appendChild(s.parentElement===g?s:s.closest(`${ae} > *`)):h.appendChild(s.parentElement===h?s:s.closest(`${ae} > *`))}),d.sort((s,g)=>g[1]-s[1]).forEach(s=>{var w;let g=(w=b.current)==null?void 0:w.querySelector(`${q}[${L}="${encodeURIComponent(s[0])}"]`);g==null||g.parentElement.appendChild(g)})}function Q(){var d;let i=(d=O().find(h=>h.getAttribute("aria-disabled")!=="true"))==null?void 0:d.getAttribute(L);S.setState("value",i||void 0)}function X(){var d,h;if(!e.current.search||m.current.shouldFilter===!1){e.current.filtered.count=n.current.size;return}e.current.filtered.groups=new Set;let i=0;for(let s of n.current){let g=oe(((d=l.current.get(s))==null?void 0:d.value)??"",((h=l.current.get(s))==null?void 0:h.keywords)??[]);e.current.filtered.items.set(s,g),g>0&&i++}for(let[s,g]of a.current)for(let w of g)if(e.current.filtered.items.get(w)>0){e.current.filtered.groups.add(s);break}e.current.filtered.count=i}function ue(){var h,s;var i;let d=D();d&&(((h=d.parentElement)==null?void 0:h.firstChild)===d&&((i=(s=d.closest(q))==null?void 0:s.querySelector(at))==null||i.scrollIntoView({block:"nearest"})),d.scrollIntoView({block:"nearest"}))}function D(){var i;return(i=b.current)==null?void 0:i.querySelector(`${ge}[aria-selected="true"]`)}function O(){var i;return Array.from(((i=b.current)==null?void 0:i.querySelectorAll(be))||[])}function Y(i){let d=O()[i];d&&S.setState("value",d.getAttribute(L))}function Z(i){var d;let h=D(),s=O(),g=s.findIndex(R=>R===h),w=s[g+i];(d=m.current)!=null&&d.loop&&(w=g+i<0?s[s.length-1]:g+i===s.length?s[0]:s[g+i]),w&&S.setState("value",w.getAttribute(L))}function ce(i){var s;let d=(s=D())==null?void 0:s.closest(q),h;for(;d&&!h;)d=i>0?mt(d,q):ft(d,q),h=d==null?void 0:d.querySelector(be);h?S.setState("value",h.getAttribute(L)):Z(i)}let se=()=>Y(O().length-1),de=i=>{i.preventDefault(),i.metaKey?se():i.altKey?ce(1):Z(1)},me=i=>{i.preventDefault(),i.metaKey?Y(0):i.altKey?ce(-1):Z(-1)};return u.createElement(A.div,{ref:r,tabIndex:-1,...B,"cmdk-root":"",onKeyDown:i=>{var d;(d=B.onKeyDown)==null||d.call(B,i);let h=i.nativeEvent.isComposing||i.keyCode===229;if(!(i.defaultPrevented||h))switch(i.key){case"n":case"j":H&&i.ctrlKey&&de(i);break;case"ArrowDown":de(i);break;case"p":case"k":H&&i.ctrlKey&&me(i);break;case"ArrowUp":me(i);break;case"Home":i.preventDefault(),Y(0);break;case"End":i.preventDefault(),se();break;case"Enter":{i.preventDefault();let s=D();if(s){let g=new Event(ne);s.dispatchEvent(g)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:W.inputId,id:W.labelId,style:ht},p),G(t,i=>u.createElement(ye.Provider,{value:S},u.createElement(we.Provider,{value:W},i))))}),lt=u.forwardRef((t,r)=>{var K;let e=$(),n=u.useRef(null),a=u.useContext(xe),l=z(),o=Se(t),m=((K=o.current)==null?void 0:K.forceMount)??(a==null?void 0:a.forceMount);M(()=>{if(!m)return l.item(e,a==null?void 0:a.id)},[m]);let p=Ne(e,n,[t.value,t.children,n],t.keywords),c=le(),f=_(b=>b.value&&b.value===p.current),v=_(b=>m||l.filter()===!1?!0:b.search?b.filtered.items.get(e)>0:!0);u.useEffect(()=>{let b=n.current;if(!(!b||t.disabled))return b.addEventListener(ne,y),()=>b.removeEventListener(ne,y)},[v,t.onSelect,t.disabled]);function y(){var b,N;x(),(N=(b=o.current).onSelect)==null||N.call(b,p.current)}function x(){c.setState("value",p.current,!0)}if(!v)return null;let{disabled:I,value:Me,onSelect:H,forceMount:B,keywords:U,...T}=t;return u.createElement(A.div,{ref:V(n,r),...T,id:e,"cmdk-item":"",role:"option","aria-disabled":!!I,"aria-selected":!!f,"data-disabled":!!I,"data-selected":!!f,onPointerMove:I||l.getDisablePointerSelection()?void 0:x,onClick:I?void 0:y},t.children)}),it=u.forwardRef((t,r)=>{let{heading:e,children:n,forceMount:a,...l}=t,o=$(),m=u.useRef(null),p=u.useRef(null),c=$(),f=z(),v=_(x=>a||f.filter()===!1?!0:x.search?x.filtered.groups.has(o):!0);M(()=>f.group(o),[]),Ne(o,m,[t.value,t.heading,p]);let y=u.useMemo(()=>({id:o,forceMount:a}),[a]);return u.createElement(A.div,{ref:V(m,r),...l,"cmdk-group":"",role:"presentation",hidden:v?void 0:!0},e&&u.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:c},e),G(t,x=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":e?c:void 0},u.createElement(xe.Provider,{value:y},x))))}),ot=u.forwardRef((t,r)=>{let{alwaysRender:e,...n}=t,a=u.useRef(null),l=_(o=>!o.search);return!e&&!l?null:u.createElement(A.div,{ref:V(a,r),...n,"cmdk-separator":"",role:"separator"})}),ut=u.forwardRef((t,r)=>{let{onValueChange:e,...n}=t,a=t.value!=null,l=le(),o=_(c=>c.search),m=_(c=>c.selectedItemId),p=z();return u.useEffect(()=>{t.value!=null&&l.setState("search",t.value)},[t.value]),u.createElement(A.input,{ref:r,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":m,id:p.inputId,type:"text",value:a?t.value:o,onChange:c=>{a||l.setState("search",c.target.value),e==null||e(c.target.value)}})}),Ee=u.forwardRef((t,r)=>{let{children:e,label:n="Suggestions",...a}=t,l=u.useRef(null),o=u.useRef(null),m=_(c=>c.selectedItemId),p=z();return u.useEffect(()=>{if(o.current&&l.current){let c=o.current,f=l.current,v,y=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let x=c.offsetHeight;f.style.setProperty("--cmdk-list-height",x.toFixed(1)+"px")})});return y.observe(c),()=>{cancelAnimationFrame(v),y.unobserve(c)}}},[]),u.createElement(A.div,{ref:V(l,r),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":n,id:p.listId},G(t,c=>u.createElement("div",{ref:V(o,p.listInnerRef),"cmdk-list-sizer":""},c)))}),ct=u.forwardRef((t,r)=>{let{open:e,onOpenChange:n,overlayClassName:a,contentClassName:l,container:o,...m}=t;return u.createElement(ze,{open:e,onOpenChange:n},u.createElement(Be,{container:o},u.createElement(Ge,{"cmdk-overlay":"",className:a}),u.createElement(He,{"aria-label":t.label,"cmdk-dialog":"",className:l},u.createElement(ke,{ref:r,...m}))))}),st=u.forwardRef((t,r)=>_(e=>e.filtered.count===0)?u.createElement(A.div,{ref:r,...t,"cmdk-empty":"",role:"presentation"}):null),dt=u.forwardRef((t,r)=>{let{progress:e,children:n,label:a="Loading...",...l}=t;return u.createElement(A.div,{ref:r,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},G(t,o=>u.createElement("div",{"aria-hidden":!0},o)))}),k=Object.assign(ke,{List:Ee,Item:lt,Input:ut,Group:it,Separator:ot,Dialog:ct,Empty:st,Loading:dt});function mt(t,r){let e=t.nextElementSibling;for(;e;){if(e.matches(r))return e;e=e.nextElementSibling}}function ft(t,r){let e=t.previousElementSibling;for(;e;){if(e.matches(r))return e;e=e.previousElementSibling}}function Se(t){let r=u.useRef(t);return M(()=>{r.current=t}),r}var M=typeof window>"u"?u.useEffect:u.useLayoutEffect;function F(t){let r=u.useRef();return r.current===void 0&&(r.current=t()),r}function _(t){let r=le(),e=()=>t(r.snapshot());return u.useSyncExternalStore(r.subscribe,e,e)}function Ne(t,r,e,n=[]){let a=u.useRef(),l=z();return M(()=>{var o;let m=(()=>{var c;for(let f of e){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(c=f.current.textContent)==null?void 0:c.trim():a.current}})(),p=n.map(c=>c.trim());l.value(t,m,p),(o=r.current)==null||o.setAttribute(L,m),a.current=m}),a}var pt=()=>{let[t,r]=u.useState(),e=F(()=>new Map);return M(()=>{e.current.forEach(n=>n()),e.current=new Map},[t]),(n,a)=>{e.current.set(n,a),r({})}};function vt(t){let r=t.type;return typeof r=="function"?r(t.props):"render"in r?r.render(t.props):t}function G({asChild:t,children:r},e){return t&&u.isValidElement(r)?u.cloneElement(vt(r),{ref:r.ref},e(r.props.children)):e(r)}var ht={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},j=$e(),E=fe(Le(),1),ie=u.forwardRef((t,r)=>{let e=(0,j.c)(9),n,a;e[0]===t?(n=e[1],a=e[2]):({className:n,...a}=t,e[0]=t,e[1]=n,e[2]=a);let l;e[3]===n?l=e[4]:(l=P("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n),e[3]=n,e[4]=l);let o;return e[5]!==a||e[6]!==r||e[7]!==l?(o=(0,E.jsx)(k,{ref:r,className:l,...a}),e[5]=a,e[6]=r,e[7]=l,e[8]=o):o=e[8],o});ie.displayName=k.displayName;var gt=t=>{let r=(0,j.c)(8),e,n;r[0]===t?(e=r[1],n=r[2]):({children:e,...n}=t,r[0]=t,r[1]=e,r[2]=n);let a;r[3]===e?a=r[4]:(a=(0,E.jsx)(Ue,{className:"overflow-hidden p-0 shadow-2xl",usePortal:!0,children:(0,E.jsx)(ie,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})}),r[3]=e,r[4]=a);let l;return r[5]!==n||r[6]!==a?(l=(0,E.jsx)(Te,{...n,children:a}),r[5]=n,r[6]=a,r[7]=l):l=r[7],l},Ie=u.forwardRef((t,r)=>{let e=(0,j.c)(19),n,a,l,o;e[0]===t?(n=e[1],a=e[2],l=e[3],o=e[4]):({className:n,icon:a,rootClassName:o,...l}=t,e[0]=t,e[1]=n,e[2]=a,e[3]=l,e[4]=o);let m;e[5]===o?m=e[6]:(m=P("flex items-center border-b px-3",o),e[5]=o,e[6]=m);let p;e[7]===a?p=e[8]:(p=a===null?null:(0,E.jsx)(Fe,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e[7]=a,e[8]=p);let c;e[9]===n?c=e[10]:(c=P("placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",n),e[9]=n,e[10]=c);let f;e[11]!==l||e[12]!==r||e[13]!==c?(f=(0,E.jsx)(k.Input,{ref:r,className:c,...l}),e[11]=l,e[12]=r,e[13]=c,e[14]=f):f=e[14];let v;return e[15]!==m||e[16]!==p||e[17]!==f?(v=(0,E.jsxs)("div",{className:m,"cmdk-input-wrapper":"",children:[p,f]}),e[15]=m,e[16]=p,e[17]=f,e[18]=v):v=e[18],v});Ie.displayName=k.Input.displayName;var Ce=u.forwardRef((t,r)=>{let e=(0,j.c)(9),n,a;e[0]===t?(n=e[1],a=e[2]):({className:n,...a}=t,e[0]=t,e[1]=n,e[2]=a);let l;e[3]===n?l=e[4]:(l=P("max-h-[300px] overflow-y-auto overflow-x-hidden",n),e[3]=n,e[4]=l);let o;return e[5]!==a||e[6]!==r||e[7]!==l?(o=(0,E.jsx)(k.List,{ref:r,className:l,...a}),e[5]=a,e[6]=r,e[7]=l,e[8]=o):o=e[8],o});Ce.displayName=k.List.displayName;var Re=u.forwardRef((t,r)=>{let e=(0,j.c)(3),n;return e[0]!==t||e[1]!==r?(n=(0,E.jsx)(k.Empty,{ref:r,className:"py-6 text-center text-sm",...t}),e[0]=t,e[1]=r,e[2]=n):n=e[2],n});Re.displayName=k.Empty.displayName;var Ae=u.forwardRef((t,r)=>{let e=(0,j.c)(9),n,a;e[0]===t?(n=e[1],a=e[2]):({className:n,...a}=t,e[0]=t,e[1]=n,e[2]=a);let l;e[3]===n?l=e[4]:(l=P("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",n),e[3]=n,e[4]=l);let o;return e[5]!==a||e[6]!==r||e[7]!==l?(o=(0,E.jsx)(k.Group,{ref:r,className:l,...a}),e[5]=a,e[6]=r,e[7]=l,e[8]=o):o=e[8],o});Ae.displayName=k.Group.displayName;var _e=u.forwardRef((t,r)=>{let e=(0,j.c)(9),n,a;e[0]===t?(n=e[1],a=e[2]):({className:n,...a}=t,e[0]=t,e[1]=n,e[2]=a);let l;e[3]===n?l=e[4]:(l=Ke({className:n}),e[3]=n,e[4]=l);let o;return e[5]!==a||e[6]!==r||e[7]!==l?(o=(0,E.jsx)(k.Separator,{ref:r,className:l,...a}),e[5]=a,e[6]=r,e[7]=l,e[8]=o):o=e[8],o});_e.displayName=k.Separator.displayName;var je=u.forwardRef((t,r)=>{let e=(0,j.c)(17),n,a,l,o,m;if(e[0]!==r||e[1]!==t){let{className:c,variant:f,inset:v,...y}=t;n=k.Item,a=r,e[7]!==c||e[8]!==v||e[9]!==f?(l=P(Ve({variant:f,inset:v}).replace(qe,"data-[disabled=false]:pointer-events-all data-[disabled=false]:opacity-100 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"),c),e[7]=c,e[8]=v,e[9]=f,e[10]=l):l=e[10],o=y,m=Pe.htmlEscape(y.value),e[0]=r,e[1]=t,e[2]=n,e[3]=a,e[4]=l,e[5]=o,e[6]=m}else n=e[2],a=e[3],l=e[4],o=e[5],m=e[6];let p;return e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==o||e[15]!==m?(p=(0,E.jsx)(n,{ref:a,className:l,...o,value:m}),e[11]=n,e[12]=a,e[13]=l,e[14]=o,e[15]=m,e[16]=p):p=e[16],p});je.displayName=k.Item.displayName;var bt=Oe;export{Ie as a,_e as c,Ae as i,bt as l,gt as n,je as o,Re as r,Ce as s,ie as t,Ee as u}; diff --git a/docs/assets/command-palette-DmYvtSUz.js b/docs/assets/command-palette-DmYvtSUz.js new file mode 100644 index 0000000..2a9d0f8 --- /dev/null +++ b/docs/assets/command-palette-DmYvtSUz.js @@ -0,0 +1 @@ +import{s as z}from"./chunk-LvLJmgfZ.js";import{l as X,u as B}from"./useEvent-DlWF5OMa.js";import{t as Y}from"./react-BGmjiNul.js";import{Wr as Z}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as U}from"./compiler-runtime-DeeZ7FnK.js";import"./tooltip-CrRUCOBw.js";import{a as ee,i as le,l as te}from"./hotkeys-uKX61F1_.js";import{p as ie,v as ae,y as oe}from"./utils-Czt8B2GX.js";import"./config-CENq_7Pd.js";import{i as re}from"./switch-C5jvDmuG.js";import{t as ne}from"./useEventListener-COkmyg1v.js";import{t as pe}from"./jsx-runtime-DN_bIXfG.js";import"./dist-CAcX026F.js";import"./JsonOutput-DlwRx3jE.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as se}from"./requests-C0HaHO6a.js";import"./layout-CBI2c778.js";import"./download-C_slsU-7.js";import{t as de}from"./useCellActionButton-DmwKwroH.js";import"./markdown-renderer-DjqhqmES.js";import{i as me,t as he}from"./useNotebookActions-DaM9w6Je.js";import{f as ce}from"./state-BphSR6sx.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import"./Combination-D1TsGrBC.js";import"./dates-CdsE1R40.js";import"./popover-DtnzNVk-.js";import"./share-CXQVxivL.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import"./purify.es-N-2faAGj.js";import{a as ye,c as fe,i as L,l as W,n as ue,o as J,r as be,s as ge}from"./command-B1zRJT1a.js";import"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import"./es-BJsT6vfZ.js";import{r as ke}from"./focus-KGgBDCvb.js";import{t as K}from"./renderShortcut-BzTDKVab.js";import"./esm-D2_Kx6xF.js";import"./name-cell-input-Dc5Oz84d.js";import"./multi-icon-6ulZXArq.js";import"./dist-cDyKKhtR.js";import"./dist-CsayQVA2.js";import"./dist-CebZ69Am.js";import"./dist-gkLBSkCp.js";import"./dist-ClsPkyB_.js";import"./dist-BZPaM2NB.js";import"./dist-CAJqQUSI.js";import"./dist-CGGpiWda.js";import"./dist-BsIAU6bk.js";import"./esm-BranOiPJ.js";var Ce=U(),je=z(Y(),1);function xe(e,l){let t=(0,Ce.c)(11),n;t[0]===l?n=t[1]:(n=new Z(l),t[0]=l,t[1]=n);let p=n,r;t[2]!==e||t[3]!==p?(r=()=>p.get(e),t[2]=e,t[3]=p,t[4]=r):r=t[4];let[m,g]=(0,je.useState)(r),i;t[5]!==e||t[6]!==p?(i=k=>{g(k),p.set(e,k)},t[5]=e,t[6]=p,t[7]=i):i=t[7];let f=i,h;return t[8]!==f||t[9]!==m?(h=[m,f],t[8]=f,t[9]=m,t[10]=h):h=t[10],h}var ve=U(),we=3;function Se(){let e=(0,ve.c)(7),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0];let[t,n]=xe("marimo:commands",l),p;e[1]!==t||e[2]!==n?(p=m=>{n(_e([m,...t]).slice(0,we))},e[1]=t,e[2]=n,e[3]=p):p=e[3];let r;return e[4]!==t||e[5]!==p?(r={recentCommands:t,addRecentCommand:p},e[4]=t,e[5]=p,e[6]=r):r=e[6],r}function _e(e){return[...new Set(e)]}function Q(e){return e.dropdown!==void 0}function V(e,l=""){return e.flatMap(t=>t.label?Q(t)?V(t.dropdown,`${l+t.label} > `):{...t,label:l+t.label}:[])}var He=U();function Ae(){let e=(0,He.c)(75),[l,t]=oe(),[n,p]=ae(),{saveAppConfig:r,saveUserConfig:m}=se(),g;e[0]!==m||e[1]!==t?(g=async d=>{await m({config:d}).then(()=>{t(c=>({...c,...d}))})},e[0]=m,e[1]=t,e[2]=g):g=e[2];let i=g,f;e[3]!==r||e[4]!==p?(f=async d=>{await r({config:d}).then(()=>{p(d)})},e[3]=r,e[4]=p,e[5]=f):f=e[5];let h=f,k;if(e[6]!==n||e[7]!==l.completion||e[8]!==l.display||e[9]!==l.keymap||e[10]!==h||e[11]!==i){let d;e[13]===n?d=e[14]:(d=T=>T!==n.width,e[13]=n,e[14]=d);let c;e[15]!==n||e[16]!==h?(c=T=>({label:`App config > Set width=${T}`,handle:()=>{h({...n,width:T})}}),e[15]=n,e[16]=h,e[17]=c):c=e[17];let H;e[18]!==l.display||e[19]!==i?(H={label:"Config > Set theme: dark",handle:()=>{i({display:{...l.display,theme:"dark"}})}},e[18]=l.display,e[19]=i,e[20]=H):H=e[20];let C;e[21]!==l.display||e[22]!==i?(C={label:"Config > Set theme: light",handle:()=>{i({display:{...l.display,theme:"light"}})}},e[21]=l.display,e[22]=i,e[23]=C):C=e[23];let A;e[24]!==l.display||e[25]!==i?(A={label:"Config > Set theme: system",handle:()=>{i({display:{...l.display,theme:"system"}})}},e[24]=l.display,e[25]=i,e[26]=A):A=e[26];let R=l.keymap.preset==="vim",M;e[27]!==l.keymap||e[28]!==i?(M=()=>{i({keymap:{...l.keymap,preset:"vim"}})},e[27]=l.keymap,e[28]=i,e[29]=M):M=e[29];let N;e[30]!==R||e[31]!==M?(N={label:"Config > Switch keymap to VIM",hidden:R,handle:M},e[30]=R,e[31]=M,e[32]=N):N=e[32];let D=l.keymap.preset==="default",j;e[33]!==l.keymap||e[34]!==i?(j=()=>{i({keymap:{...l.keymap,preset:"default"}})},e[33]=l.keymap,e[34]=i,e[35]=j):j=e[35];let u;e[36]!==D||e[37]!==j?(u={label:"Config > Switch keymap to default (current: VIM)",hidden:D,handle:j},e[36]=D,e[37]=j,e[38]=u):u=e[38];let x;e[39]!==l.completion||e[40]!==i?(x=()=>{i({completion:{...l.completion,copilot:!1}})},e[39]=l.completion,e[40]=i,e[41]=x):x=e[41];let v=l.completion.copilot!=="github",$;e[42]!==x||e[43]!==v?($={label:"Config > Disable GitHub Copilot",handle:x,hidden:v},e[42]=x,e[43]=v,e[44]=$):$=e[44];let w;e[45]!==l.completion||e[46]!==i?(w=()=>{i({completion:{...l.completion,copilot:"github"}})},e[45]=l.completion,e[46]=i,e[47]=w):w=e[47];let P=l.completion.copilot==="github",q;e[48]!==w||e[49]!==P?(q={label:"Config > Enable GitHub Copilot",handle:w,hidden:P},e[48]=w,e[49]=P,e[50]=q):q=e[50];let G=!l.display.reference_highlighting,S;e[51]!==l.display||e[52]!==i?(S=()=>{i({display:{...l.display,reference_highlighting:!1}})},e[51]=l.display,e[52]=i,e[53]=S):S=e[53];let b;e[54]!==G||e[55]!==S?(b={label:"Config > Disable reference highlighting",hidden:G,handle:S},e[54]=G,e[55]=S,e[56]=b):b=e[56];let y;e[57]!==l.display||e[58]!==i?(y=()=>{i({display:{...l.display,reference_highlighting:!0}})},e[57]=l.display,e[58]=i,e[59]=y):y=e[59];let E;e[60]!==l.display.reference_highlighting||e[61]!==y?(E={label:"Config > Enable reference highlighting",hidden:l.display.reference_highlighting,handle:y},e[60]=l.display.reference_highlighting,e[61]=y,e[62]=E):E=e[62];let o=l.display.cell_output==="above",a;e[63]!==l.display||e[64]!==i?(a=()=>{i({display:{...l.display,cell_output:"above"}})},e[63]=l.display,e[64]=i,e[65]=a):a=e[65];let F;e[66]!==o||e[67]!==a?(F={label:"Config > Set cell output area: above",hidden:o,handle:a},e[66]=o,e[67]=a,e[68]=F):F=e[68];let _=l.display.cell_output==="below",I;e[69]!==l.display||e[70]!==i?(I=()=>{i({display:{...l.display,cell_output:"below"}})},e[69]=l.display,e[70]=i,e[71]=I):I=e[71];let O;e[72]!==_||e[73]!==I?(O={label:"Config > Set cell output area: below",hidden:_,handle:I},e[72]=_,e[73]=I,e[74]=O):O=e[74],k=[...ce().filter(d).map(c),H,C,A,N,u,$,q,b,E,F,O].filter(Me),e[6]=n,e[7]=l.completion,e[8]=l.display,e[9]=l.keymap,e[10]=h,e[11]=i,e[12]=k}else k=e[12];return k}function Me(e){return!e.hidden}var Ne=U(),s=z(pe(),1),De=()=>{let e=(0,Ne.c)(37),[l,t]=X(me),n=re(),p=B(ke),r=B(ie),m;e[0]===p?m=e[1]:(m={cell:p},e[0]=p,e[1]=m);let g=de(m).flat();g=V(g);let i=Ae(),f=he();f=[...V(f),...V(i)];let h=f.filter(Ee),k=ee.keyBy(h,Fe),{recentCommands:d,addRecentCommand:c}=Se(),H;e[2]===d?H=e[3]:(H=new Set(d),e[2]=d,e[3]=H);let C=H,A;e[4]!==r||e[5]!==t?(A=o=>{te(r.getHotkey("global.commandPalette").key)(o)&&(o.preventDefault(),t(Ie))},e[4]=r,e[5]=t,e[6]=A):A=e[6],ne(document,"keydown",A);let R;e[7]!==c||e[8]!==r||e[9]!==n||e[10]!==t?(R=(o,a)=>{let F=n[o];if(!F)return null;let _=r.getHotkey(o);return(0,s.jsxs)(J,{disabled:a.disabled,onSelect:()=>{c(o),t(!1),requestAnimationFrame(()=>{F()})},value:_.name,children:[(0,s.jsxs)("span",{children:[_.name,a.tooltip&&(0,s.jsx)("span",{className:"ml-2",children:a.tooltip})]}),(0,s.jsx)(W,{children:(0,s.jsx)(K,{shortcut:_.key})})]},o)},e[7]=c,e[8]=r,e[9]=n,e[10]=t,e[11]=R):R=e[11];let M=R,N;e[12]!==c||e[13]!==r||e[14]!==t?(N=o=>{let{label:a,handle:F,props:_,hotkey:I}=o,O=_===void 0?{}:_;return(0,s.jsxs)(J,{disabled:O.disabled,onSelect:()=>{c(a),t(!1),requestAnimationFrame(()=>{F()})},value:a,children:[(0,s.jsxs)("span",{children:[a,O.tooltip&&(0,s.jsxs)("span",{className:"ml-2",children:["(",O.tooltip,")"]})]}),I&&(0,s.jsx)(W,{children:(0,s.jsx)(K,{shortcut:r.getHotkey(I).key})})]},a)},e[12]=c,e[13]=r,e[14]=t,e[15]=N):N=e[15];let D=N,j=ue,u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(ye,{placeholder:"Type to search..."}),e[16]=u):u=e[16];let x=ge,v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(be,{children:"No results found."}),e[17]=v):v=e[17];let $=d.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L,{heading:"Recently Used",children:d.map(o=>{let a=k[o];return le(o)?M(o,{disabled:a==null?void 0:a.disabled,tooltip:a==null?void 0:a.tooltip}):a&&!Q(a)?D({label:a.label,handle:a.handleHeadless||a.handle,props:{disabled:a.disabled,tooltip:a.tooltip}}):null})}),(0,s.jsx)(fe,{})]}),w=L,P=r.iterate().map(o=>{if(C.has(o))return null;let a=k[o];return M(o,{disabled:a==null?void 0:a.disabled,tooltip:a==null?void 0:a.tooltip})}),q=h.map(o=>C.has(o.label)?null:D({label:o.label,handle:o.handleHeadless||o.handle,props:{disabled:o.disabled,tooltip:o.tooltip}})),G;e[18]!==C||e[19]!==D?(G=o=>C.has(o.label)?null:D({label:`Cell > ${o.label}`,handle:o.handleHeadless||o.handle,props:{disabled:o.disabled,tooltip:o.tooltip}}),e[18]=C,e[19]=D,e[20]=G):G=e[20];let S=g.map(G),b;e[21]!==w||e[22]!==q||e[23]!==S||e[24]!==P?(b=(0,s.jsxs)(w,{heading:"Commands",children:[P,q,S]}),e[21]=w,e[22]=q,e[23]=S,e[24]=P,e[25]=b):b=e[25];let y;e[26]!==x||e[27]!==b||e[28]!==v||e[29]!==$?(y=(0,s.jsxs)(x,{children:[v,$,b]}),e[26]=x,e[27]=b,e[28]=v,e[29]=$,e[30]=y):y=e[30];let E;return e[31]!==j||e[32]!==l||e[33]!==t||e[34]!==y||e[35]!==u?(E=(0,s.jsxs)(j,{open:l,onOpenChange:t,children:[u,y]}),e[31]=j,e[32]=l,e[33]=t,e[34]=y,e[35]=u,e[36]=E):E=e[36],E};function Ee(e){return!e.hotkey}function Fe(e){return e.label}function Ie(e){return!e}export{De as default}; diff --git a/docs/assets/common-C2MMmHt4.js b/docs/assets/common-C2MMmHt4.js new file mode 100644 index 0000000..960e743 --- /dev/null +++ b/docs/assets/common-C2MMmHt4.js @@ -0,0 +1 @@ +import{s as j}from"./chunk-LvLJmgfZ.js";import{t as w}from"./react-BGmjiNul.js";import{k}from"./cells-CmJW_FeD.js";import{t as g}from"./compiler-runtime-DeeZ7FnK.js";import{t as N}from"./jsx-runtime-DN_bIXfG.js";import{t as y}from"./badge-DAnNhy3O.js";import{t as C}from"./use-toast-Bzf3rpev.js";import{i as _,r as b,t as I}from"./popover-DtnzNVk-.js";import{t as S}from"./copy-DRhpWiOq.js";import{t as v}from"./cell-link-D7bPw7Fz.js";var O=g(),i=j(N(),1);const B=p=>{let e=(0,O.c)(18),{maxCount:n,cellIds:r,onClick:t,skipScroll:o}=p,m=k(),l,a,c;if(e[0]!==r||e[1]!==m||e[2]!==n||e[3]!==t||e[4]!==o){c=Symbol.for("react.early_return_sentinel");e:{let f;e[8]===m?f=e[9]:(f=(s,x)=>m.inOrderIds.indexOf(s)-m.inOrderIds.indexOf(x),e[8]=m,e[9]=f);let u=[...r].sort(f);if(r.length===0){let s;e[10]===Symbol.for("react.memo_cache_sentinel")?(s=(0,i.jsx)("div",{className:"text-muted-foreground",children:"--"}),e[10]=s):s=e[10],c=s;break e}let h;e[11]!==r.length||e[12]!==t||e[13]!==o?(h=(s,x)=>(0,i.jsxs)("span",{className:"truncate",children:[(0,i.jsx)(v,{variant:"focus",cellId:s,skipScroll:o,className:"whitespace-nowrap",onClick:t?()=>t(s):void 0},s),xn&&(0,i.jsxs)(I,{children:[(0,i.jsx)(_,{asChild:!0,children:(0,i.jsxs)("span",{className:"whitespace-nowrap text-muted-foreground text-xs hover:underline cursor-pointer",children:["+",r.length-n," more"]})}),(0,i.jsx)(b,{className:"w-auto",children:(0,i.jsx)("div",{className:"flex flex-col gap-1 py-1",children:u.slice(n).map(s=>(0,i.jsx)(v,{variant:"focus",cellId:s,className:"whitespace-nowrap",onClick:t?()=>t(s):void 0},s))})})]})}e[0]=r,e[1]=m,e[2]=n,e[3]=t,e[4]=o,e[5]=l,e[6]=a,e[7]=c}else l=e[5],a=e[6],c=e[7];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[15]!==l||e[16]!==a?(d=(0,i.jsxs)(i.Fragment,{children:[l,a]}),e[15]=l,e[16]=a,e[17]=d):d=e[17],d};var F=g();w();const q=p=>{let e=(0,F.c)(15),n,r,t,o;e[0]===p?(n=e[1],r=e[2],t=e[3],o=e[4]):({name:r,declaredBy:n,onClick:t,...o}=p,e[0]=p,e[1]=n,e[2]=r,e[3]=t,e[4]=o);let m=n.length>1?"destructive":"outline",l;e[5]!==r||e[6]!==t?(l=async d=>{if(t){t(d);return}await S(r),C({title:"Copied to clipboard"})},e[5]=r,e[6]=t,e[7]=l):l=e[7];let a;e[8]!==r||e[9]!==m||e[10]!==l?(a=(0,i.jsx)(y,{title:r,variant:m,className:"rounded-sm text-ellipsis block overflow-hidden max-w-fit cursor-pointer font-medium",onClick:l,children:r}),e[8]=r,e[9]=m,e[10]=l,e[11]=a):a=e[11];let c;return e[12]!==o||e[13]!==a?(c=(0,i.jsx)("div",{className:"max-w-[130px]",...o,children:a}),e[12]=o,e[13]=a,e[14]=c):c=e[14],c};export{B as n,q as t}; diff --git a/docs/assets/common-keywords-15xBKau4.js b/docs/assets/common-keywords-15xBKau4.js new file mode 100644 index 0000000..cac814f --- /dev/null +++ b/docs/assets/common-keywords-15xBKau4.js @@ -0,0 +1 @@ +const e=JSON.parse(`{"select":{"description":"Retrieves data from one or more tables","syntax":"SELECT column1, column2, ... FROM table_name","example":"SELECT name, email FROM users WHERE active = true"},"from":{"description":"Specifies which table to select data from","syntax":"FROM table_name","example":"FROM users u JOIN orders o ON u.id = o.user_id"},"where":{"description":"Filters records based on specified conditions","syntax":"WHERE condition","example":"WHERE age > 18 AND status = 'active'"},"join":{"description":"Combines rows from two or more tables based on a related column","syntax":"JOIN table_name ON condition","example":"JOIN orders ON users.id = orders.user_id"},"inner":{"description":"Returns records that have matching values in both tables","syntax":"INNER JOIN table_name ON condition","example":"INNER JOIN orders ON users.id = orders.user_id"},"left":{"description":"Returns all records from the left table and matching records from the right","syntax":"LEFT JOIN table_name ON condition","example":"LEFT JOIN orders ON users.id = orders.user_id"},"right":{"description":"Returns all records from the right table and matching records from the left","syntax":"RIGHT JOIN table_name ON condition","example":"RIGHT JOIN users ON users.id = orders.user_id"},"full":{"description":"Returns all records when there is a match in either left or right table","syntax":"FULL OUTER JOIN table_name ON condition","example":"FULL OUTER JOIN orders ON users.id = orders.user_id"},"outer":{"description":"Used with FULL to return all records from both tables","syntax":"FULL OUTER JOIN table_name ON condition","example":"FULL OUTER JOIN orders ON users.id = orders.user_id"},"cross":{"description":"Returns the Cartesian product of both tables","syntax":"CROSS JOIN table_name","example":"CROSS JOIN colors"},"order":{"description":"Sorts the result set in ascending or descending order","syntax":"ORDER BY column_name [ASC|DESC]","example":"ORDER BY created_at DESC, name ASC"},"by":{"description":"Used with ORDER BY and GROUP BY clauses","syntax":"ORDER BY column_name or GROUP BY column_name","example":"ORDER BY name ASC or GROUP BY category"},"group":{"description":"Groups rows that have the same values into summary rows","syntax":"GROUP BY column_name","example":"GROUP BY category HAVING COUNT(*) > 5"},"having":{"description":"Filters groups based on specified conditions (used with GROUP BY)","syntax":"HAVING condition","example":"GROUP BY category HAVING COUNT(*) > 5"},"insert":{"description":"Adds new records to a table","syntax":"INSERT INTO table_name (columns) VALUES (values)","example":"INSERT INTO users (name, email) VALUES ('John', 'john@example.com')"},"into":{"description":"Specifies the target table for INSERT statements","syntax":"INSERT INTO table_name","example":"INSERT INTO users (name, email) VALUES ('John', 'john@example.com')"},"values":{"description":"Specifies the values to insert into a table","syntax":"VALUES (value1, value2, ...)","example":"VALUES ('John', 'john@example.com', true)"},"update":{"description":"Modifies existing records in a table","syntax":"UPDATE table_name SET column = value WHERE condition","example":"UPDATE users SET email = 'new@example.com' WHERE id = 1"},"set":{"description":"Specifies which columns to update and their new values","syntax":"SET column1 = value1, column2 = value2","example":"SET name = 'John', email = 'john@example.com'"},"delete":{"description":"Removes records from a table","syntax":"DELETE FROM table_name WHERE condition","example":"DELETE FROM users WHERE active = false"},"create":{"description":"Creates a new table, database, or other database object","syntax":"CREATE TABLE table_name (column definitions)","example":"CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(100))"},"table":{"description":"Specifies a table in CREATE, ALTER, or DROP statements","syntax":"CREATE TABLE table_name or ALTER TABLE table_name","example":"CREATE TABLE users (id INT, name VARCHAR(100))"},"drop":{"description":"Deletes a table, database, or other database object","syntax":"DROP TABLE table_name","example":"DROP TABLE old_users"},"alter":{"description":"Modifies an existing database object","syntax":"ALTER TABLE table_name ADD/DROP/MODIFY column","example":"ALTER TABLE users ADD COLUMN phone VARCHAR(20)"},"add":{"description":"Adds a new column or constraint to a table","syntax":"ALTER TABLE table_name ADD column_name data_type","example":"ALTER TABLE users ADD phone VARCHAR(20)"},"column":{"description":"Specifies a column in table operations","syntax":"ADD COLUMN column_name or DROP COLUMN column_name","example":"ADD COLUMN created_at TIMESTAMP DEFAULT NOW()"},"primary":{"description":"Defines a primary key constraint","syntax":"PRIMARY KEY (column_name)","example":"CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(100))"},"key":{"description":"Used with PRIMARY or FOREIGN to define constraints","syntax":"PRIMARY KEY or FOREIGN KEY","example":"PRIMARY KEY (id) or FOREIGN KEY (user_id) REFERENCES users(id)"},"foreign":{"description":"Defines a foreign key constraint","syntax":"FOREIGN KEY (column_name) REFERENCES table_name(column_name)","example":"FOREIGN KEY (user_id) REFERENCES users(id)"},"references":{"description":"Specifies the referenced table and column for foreign keys","syntax":"REFERENCES table_name(column_name)","example":"FOREIGN KEY (user_id) REFERENCES users(id)"},"unique":{"description":"Ensures all values in a column are unique","syntax":"UNIQUE (column_name)","example":"CREATE TABLE users (email VARCHAR(255) UNIQUE)"},"constraint":{"description":"Names a constraint for easier management","syntax":"CONSTRAINT constraint_name constraint_type","example":"CONSTRAINT fk_user FOREIGN KEY (user_id) REFERENCES users(id)"},"check":{"description":"Defines a condition that must be true for all rows","syntax":"CHECK (condition)","example":"CHECK (age >= 18)"},"default":{"description":"Specifies a default value for a column","syntax":"column_name data_type DEFAULT value","example":"created_at TIMESTAMP DEFAULT NOW()"},"index":{"description":"Creates an index to improve query performance","syntax":"CREATE INDEX index_name ON table_name (column_name)","example":"CREATE INDEX idx_user_email ON users (email)"},"view":{"description":"Creates a virtual table based on a SELECT statement","syntax":"CREATE VIEW view_name AS SELECT ...","example":"CREATE VIEW active_users AS SELECT * FROM users WHERE active = true"},"limit":{"description":"Restricts the number of records returned","syntax":"LIMIT number","example":"SELECT * FROM users LIMIT 10"},"offset":{"description":"Skips a specified number of rows before returning results","syntax":"OFFSET number","example":"SELECT * FROM users LIMIT 10 OFFSET 20"},"top":{"description":"Limits the number of records returned (SQL Server syntax)","syntax":"SELECT TOP number columns FROM table","example":"SELECT TOP 10 * FROM users"},"fetch":{"description":"Retrieves a specific number of rows (modern SQL standard)","syntax":"OFFSET number ROWS FETCH NEXT number ROWS ONLY","example":"OFFSET 10 ROWS FETCH NEXT 5 ROWS ONLY"},"with":{"description":"Defines a Common Table Expression (CTE)","syntax":"WITH cte_name AS (SELECT ...) SELECT ... FROM cte_name","example":"WITH user_stats AS (SELECT user_id, COUNT(*) FROM orders GROUP BY user_id) SELECT * FROM user_stats"},"recursive":{"description":"Creates a recursive CTE that can reference itself","syntax":"WITH RECURSIVE cte_name AS (...) SELECT ...","example":"WITH RECURSIVE tree AS (SELECT id, parent_id FROM categories WHERE parent_id IS NULL UNION ALL SELECT c.id, c.parent_id FROM categories c JOIN tree t ON c.parent_id = t.id) SELECT * FROM tree"},"distinct":{"description":"Returns only unique values","syntax":"SELECT DISTINCT column_name FROM table_name","example":"SELECT DISTINCT category FROM products"},"count":{"description":"Returns the number of rows that match a condition","syntax":"COUNT(*) or COUNT(column_name)","example":"SELECT COUNT(*) FROM users WHERE active = true"},"sum":{"description":"Returns the sum of numeric values","syntax":"SUM(column_name)","example":"SELECT SUM(price) FROM orders WHERE status = 'completed'"},"avg":{"description":"Returns the average value of numeric values","syntax":"AVG(column_name)","example":"SELECT AVG(age) FROM users"},"max":{"description":"Returns the maximum value","syntax":"MAX(column_name)","example":"SELECT MAX(price) FROM products"},"min":{"description":"Returns the minimum value","syntax":"MIN(column_name)","example":"SELECT MIN(price) FROM products"},"as":{"description":"Creates an alias for a column or table","syntax":"column_name AS alias_name or table_name AS alias_name","example":"SELECT name AS customer_name FROM users AS u"},"on":{"description":"Specifies the join condition between tables","syntax":"JOIN table_name ON condition","example":"JOIN orders ON users.id = orders.user_id"},"and":{"description":"Combines multiple conditions with logical AND","syntax":"WHERE condition1 AND condition2","example":"WHERE age > 18 AND status = 'active'"},"or":{"description":"Combines multiple conditions with logical OR","syntax":"WHERE condition1 OR condition2","example":"WHERE category = 'electronics' OR category = 'books'"},"not":{"description":"Negates a condition","syntax":"WHERE NOT condition","example":"WHERE NOT status = 'inactive'"},"null":{"description":"Represents a missing or unknown value","syntax":"column_name IS NULL or column_name IS NOT NULL","example":"WHERE email IS NOT NULL"},"is":{"description":"Used to test for NULL values or boolean conditions","syntax":"column_name IS NULL or column_name IS NOT NULL","example":"WHERE deleted_at IS NULL"},"in":{"description":"Checks if a value matches any value in a list","syntax":"column_name IN (value1, value2, ...)","example":"WHERE status IN ('active', 'pending', 'approved')"},"between":{"description":"Selects values within a range","syntax":"column_name BETWEEN value1 AND value2","example":"WHERE age BETWEEN 18 AND 65"},"like":{"description":"Searches for a pattern in a column","syntax":"column_name LIKE pattern","example":"WHERE name LIKE 'John%' (starts with 'John')"},"exists":{"description":"Tests whether a subquery returns any rows","syntax":"WHERE EXISTS (subquery)","example":"WHERE EXISTS (SELECT 1 FROM orders WHERE orders.user_id = users.id)"},"any":{"description":"Compares a value to any value returned by a subquery","syntax":"column_name operator ANY (subquery)","example":"WHERE price > ANY (SELECT price FROM products WHERE category = 'electronics')"},"all":{"description":"Compares a value to all values returned by a subquery","syntax":"column_name operator ALL (subquery)","example":"WHERE price > ALL (SELECT price FROM products WHERE category = 'books')"},"some":{"description":"Synonym for ANY - compares a value to some values in a subquery","syntax":"column_name operator SOME (subquery)","example":"WHERE price > SOME (SELECT price FROM products WHERE category = 'electronics')"},"union":{"description":"Combines the result sets of two or more SELECT statements","syntax":"SELECT ... UNION SELECT ...","example":"SELECT name FROM customers UNION SELECT name FROM suppliers"},"intersect":{"description":"Returns rows that are in both result sets","syntax":"SELECT ... INTERSECT SELECT ...","example":"SELECT customer_id FROM orders INTERSECT SELECT customer_id FROM returns"},"except":{"description":"Returns rows from the first query that are not in the second","syntax":"SELECT ... EXCEPT SELECT ...","example":"SELECT customer_id FROM customers EXCEPT SELECT customer_id FROM blacklist"},"case":{"description":"Provides conditional logic in SQL queries","syntax":"CASE WHEN condition THEN result ELSE result END","example":"CASE WHEN age < 18 THEN 'Minor' ELSE 'Adult' END"},"when":{"description":"Specifies conditions in CASE statements","syntax":"CASE WHEN condition THEN result","example":"CASE WHEN score >= 90 THEN 'A' WHEN score >= 80 THEN 'B' END"},"then":{"description":"Specifies the result for a WHEN condition","syntax":"WHEN condition THEN result","example":"WHEN age < 18 THEN 'Minor'"},"else":{"description":"Specifies the default result in CASE statements","syntax":"CASE WHEN condition THEN result ELSE default_result END","example":"CASE WHEN score >= 60 THEN 'Pass' ELSE 'Fail' END"},"end":{"description":"Terminates a CASE statement","syntax":"CASE WHEN condition THEN result END","example":"CASE WHEN age < 18 THEN 'Minor' ELSE 'Adult' END"},"over":{"description":"Defines a window for window functions","syntax":"window_function() OVER (PARTITION BY ... ORDER BY ...)","example":"ROW_NUMBER() OVER (PARTITION BY department ORDER BY salary DESC)"},"partition":{"description":"Divides the result set into groups for window functions","syntax":"OVER (PARTITION BY column_name)","example":"SUM(salary) OVER (PARTITION BY department)"},"row_number":{"description":"Assigns a unique sequential integer to each row","syntax":"ROW_NUMBER() OVER (ORDER BY column_name)","example":"ROW_NUMBER() OVER (ORDER BY created_at DESC)"},"rank":{"description":"Assigns a rank to each row with gaps for ties","syntax":"RANK() OVER (ORDER BY column_name)","example":"RANK() OVER (ORDER BY score DESC)"},"dense_rank":{"description":"Assigns a rank to each row without gaps for ties","syntax":"DENSE_RANK() OVER (ORDER BY column_name)","example":"DENSE_RANK() OVER (ORDER BY score DESC)"},"begin":{"description":"Starts a transaction block","syntax":"BEGIN [TRANSACTION]","example":"BEGIN; UPDATE accounts SET balance = balance - 100; COMMIT;"},"commit":{"description":"Permanently saves all changes made in the current transaction","syntax":"COMMIT [TRANSACTION]","example":"BEGIN; INSERT INTO users VALUES (...); COMMIT;"},"rollback":{"description":"Undoes all changes made in the current transaction","syntax":"ROLLBACK [TRANSACTION]","example":"BEGIN; DELETE FROM users WHERE id = 1; ROLLBACK;"},"transaction":{"description":"Groups multiple SQL statements into a single unit of work","syntax":"BEGIN TRANSACTION; ... COMMIT/ROLLBACK;","example":"BEGIN TRANSACTION; UPDATE accounts SET balance = balance - 100 WHERE id = 1; COMMIT;"}}`);var a={keywords:e};export{a as default,e as keywords}; diff --git a/docs/assets/common-lisp-bLDcgMys.js b/docs/assets/common-lisp-bLDcgMys.js new file mode 100644 index 0000000..079f114 --- /dev/null +++ b/docs/assets/common-lisp-bLDcgMys.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Common Lisp","fileTypes":["lisp","lsp","l","cl","asd","asdf"],"foldingStartMarker":"\\\\(","foldingStopMarker":"\\\\)","name":"common-lisp","patterns":[{"include":"#comment"},{"include":"#block-comment"},{"include":"#string"},{"include":"#escape"},{"include":"#constant"},{"include":"#lambda-list"},{"include":"#function"},{"include":"#style-guide"},{"include":"#def-name"},{"include":"#macro"},{"include":"#symbol"},{"include":"#special-operator"},{"include":"#declaration"},{"include":"#type"},{"include":"#class"},{"include":"#condition-type"},{"include":"#package"},{"include":"#variable"},{"include":"#punctuation"}],"repository":{"block-comment":{"begin":"#\\\\|","contentName":"comment.block.commonlisp","end":"\\\\|#","name":"comment","patterns":[{"include":"#block-comment","name":"comment"}]},"class":{"match":"(?i)(?<=^|[(\\\\s])(?:two-way-stream|synonym-stream|symbol|structure-object|structure-class|string-stream|stream|standard-object|standard-method|standard-generic-function|standard-class|sequence|restart|real|readtable|ratio|random-state|package|number|method|integer|hash-table|generic-function|file-stream|echo-stream|concatenated-stream|class|built-in-class|broadcast-stream|bit-vector|array)(?=([()\\\\s]))","name":"support.class.commonlisp"},"comment":{"begin":"(^[\\\\t ]+)?(?=;)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.commonlisp"}},"end":"(?!\\\\G)","patterns":[{"begin":";","beginCaptures":{"0":{"name":"punctuation.definition.comment.commonlisp"}},"end":"\\\\n","name":"comment.line.semicolon.commonlisp"}]},"condition-type":{"match":"(?i)(?<=^|[(\\\\s])(?:warning|undefined-function|unbound-variable|unbound-slot|type-error|style-warning|stream-error|storage-condition|simple-warning|simple-type-error|simple-error|simple-condition|serious-condition|reader-error|program-error|print-not-readable|parse-error|package-error|floating-point-underflow|floating-point-overflow|floating-point-invalid-operation|floating-point-inexact|file-error|error|end-of-file|division-by-zero|control-error|condition|cell-error|arithmetic-error)(?=([()\\\\s]))","name":"support.type.exception.commonlisp"},"constant":{"patterns":[{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(?:t|single-float-negative-epsilon|single-float-epsilon|short-float-negative-epsilon|short-float-epsilon|pi|nil|multiple-values-limit|most-positive-single-float|most-positive-short-float|most-positive-long-float|most-positive-fixnum|most-positive-double-float|most-negative-single-float|most-negative-short-float|most-negative-long-float|most-negative-fixnum|most-negative-double-float|long-float-negative-epsilon|long-float-epsilon|least-positive-single-float|least-positive-short-float|least-positive-normalized-single-float|least-positive-normalized-short-float|least-positive-normalized-long-float|least-positive-normalized-double-float|least-positive-long-float|least-positive-double-float|least-negative-single-float|least-negative-short-float|least-negative-normalized-single-float|least-negative-normalized-short-float|least-negative-normalized-long-float|least-negative-normalized-double-float|least-negative-long-float|least-negative-double-float|lambda-parameters-limit|lambda-list-keywords|internal-time-units-per-second|double-float-negative-epsilon|double-float-epsilon|char-code-limit|call-arguments-limit|boole-xor|boole-set|boole-orc2|boole-orc1|boole-nor|boole-nand|boole-ior|boole-eqv|boole-clr|boole-c2|boole-c1|boole-andc2|boole-andc1|boole-and|boole-2|boole-1|array-total-size-limit|array-rank-limit|array-dimension-limit)(?=([()\\\\s]))","name":"constant.language.commonlisp"},{"match":"(?<=^|[(\\\\s]|,@|,\\\\.?)([-+]?[0-9]+(?:/[0-9]+)*|[-+]?[0-9]*\\\\.?[0-9]+([Ee][-+]?[0-9]+)?|(#[Bb])[-+/01]+|(#[Oo])[-+/-7]+|(#[Xx])[-+/\\\\h]+|(#[0-9]+[Rr]?)[-+/-9A-Za-z]+)(?=([)\\\\s]))","name":"constant.numeric.commonlisp"},{"match":"(?i)(?<=\\\\s)(\\\\.)(?=\\\\s)","name":"variable.other.constant.dot.commonlisp"},{"match":"(?<=^|[(\\\\s]|,@|,\\\\.?)([-+]?[0-9]*\\\\.[0-9]*(([DEFLSdefls])[-+]?[0-9]+)?|[-+]?[0-9]+(\\\\.[0-9]*)?([DEFLSdefls])[-+]?[0-9]+)(?=([)\\\\s]))","name":"constant.numeric.commonlisp"}]},"declaration":{"match":"(?i)(?<=^|[(\\\\s])(?:type|speed|special|space|safety|optimize|notinline|inline|ignore|ignorable|ftype|dynamic-extent|declaration|debug|compilation-speed)(?=([()\\\\s]))","name":"storage.type.function.declaration.commonlisp"},"def-name":{"patterns":[{"captures":{"1":{"name":"storage.type.function.defname.commonlisp"},"3":{"name":"storage.type.function.defname.commonlisp"},"4":{"name":"variable.other.constant.defname.commonlisp"},"6":{"patterns":[{"include":"#package"},{"match":"\\\\S+?","name":"entity.name.function.commonlisp"}]},"7":{"name":"variable.other.constant.defname.commonlisp"},"9":{"patterns":[{"include":"#package"},{"match":"\\\\S+?","name":"entity.name.function.commonlisp"}]}},"match":"(?i)(?<=^|[(\\\\s])(def(?:un|setf|method|macro|ine-symbol-macro|ine-setf-expander|ine-modify-macro|ine-method-combination|ine-compiler-macro|generic))\\\\s+(\\\\(\\\\s*([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+)\\\\s*((,(?:@|\\\\.?))?)([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?)|((,(?:@|\\\\.?))?)([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?))(?=([()\\\\s]))"},{"captures":{"1":{"name":"storage.type.function.defname.commonlisp"},"2":{"name":"entity.name.type.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s])(def(?:type|package|ine-condition|class))\\\\s+([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?)(?=([()\\\\s]))"},{"captures":{"1":{"name":"storage.type.function.defname.commonlisp"},"2":{"patterns":[{"include":"#package"},{"match":"\\\\S+?","name":"variable.other.constant.defname.commonlisp"}]}},"match":"(?i)(?<=^|[(\\\\s])(defconstant)\\\\s+([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?)(?=([()\\\\s]))"},{"captures":{"1":{"name":"storage.type.function.defname.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s])(def(?:var|parameter))\\\\s+(?=([()\\\\s]))"},{"captures":{"1":{"name":"storage.type.function.defname.commonlisp"},"2":{"name":"entity.name.type.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s])(defstruct)\\\\s+\\\\(?\\\\s*([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?)(?=([()\\\\s]))"},{"captures":{"1":{"name":"keyword.control.commonlisp"},"2":{"patterns":[{"include":"#package"},{"match":"\\\\S+?","name":"entity.name.function.commonlisp"}]}},"match":"(?i)(?<=^|[(\\\\s])(macrolet|labels|flet)\\\\s+\\\\(\\\\s*\\\\(\\\\s*([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?)(?=([()\\\\s]))"}]},"escape":{"match":"(?i)(?<=^|[(\\\\s])#\\\\\\\\\\\\S+?(?=([()\\\\s]))","name":"constant.character.escape.commonlisp"},"function":{"patterns":[{"match":"(?i)(?<=^|[(\\\\s]|#')(?:values|third|tenth|symbol-value|symbol-plist|symbol-function|svref|subseq|sixth|seventh|second|schar|sbit|row-major-aref|rest|readtable-case|nth|ninth|mask-field|macro-function|logical-pathname-translations|ldb|gethash|getf?|fourth|first|find-class|fill-pointer|fifth|fdefinition|elt|eighth|compiler-macro-function|char|cdr|cddr|cdddr|cddddr|cdddar|cddar|cddadr|cddaar|cdar|cdadr|cdaddr|cdadar|cdaar|cdaadr|cdaaar|car|cadr|caddr|cadddr|caddar|cadar|cadadr|cadaar|caar|caadr|caaddr|caadar|caaar|caaadr|caaaar|bit|aref)(?=([()\\\\s]))","name":"support.function.accessor.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|#')(?:yes-or-no-p|y-or-n-p|write-sequence|write-char|write-byte|warn|vector-pop|use-value|use-package|unuse-package|union|unintern|unexport|terpri|tailp|substitute-if-not|substitute-if|substitute|subst-if-not|subst-if|subst|sublis|string-upcase|string-downcase|string-capitalize|store-value|sleep|signal|shadowing-import|shadow|set-syntax-from-char|set-macro-character|set-exclusive-or|set-dispatch-macro-character|set-difference|set|rplacd|rplaca|room|reverse|revappend|require|replace|remprop|remove-if-not|remove-if|remove-duplicates|remove|remhash|read-sequence|read-byte|random|provide|pprint-tabular|pprint-newline|pprint-linear|pprint-fill|nunion|nsubstitute-if-not|nsubstitute-if|nsubstitute|nsubst-if-not|nsubst-if|nsubst|nsublis|nstring-upcase|nstring-downcase|nstring-capitalize|nset-exclusive-or|nset-difference|nreverse|nreconc|nintersection|nconc|muffle-warning|method-combination-error|maphash|makunbound|ldiff|invoke-restart-interactively|invoke-restart|invoke-debugger|invalid-method-error|intersection|inspect|import|get-output-stream-string|get-macro-character|get-dispatch-macro-character|gentemp|gensym|fresh-line|fill|file-position|export|describe|delete-if-not|delete-if|delete-duplicates|delete|continue|clrhash|close|clear-input|break|abort)(?=([()\\\\s]))","name":"support.function.f.sideeffects.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|#')(?:zerop|write-to-string|write-string|write-line|write|wild-pathname-p|vectorp|vector-push-extend|vector-push|vector|values-list|user-homedir-pathname|upper-case-p|upgraded-complex-part-type|upgraded-array-element-type|unread-char|unbound-slot-instance|typep|type-of|type-error-expected-type|type-error-datum|two-way-stream-output-stream|two-way-stream-input-stream|truncate|truename|tree-equal|translate-pathname|translate-logical-pathname|tanh?|synonym-stream-symbol|symbolp|symbol-package|symbol-name|sxhash|subtypep|subsetp|stringp|string>=?|string=|string<=?|string/=|string-trim|string-right-trim|string-not-lessp|string-not-greaterp|string-not-equal|string-lessp|string-left-trim|string-greaterp|string-equal|string|streamp|stream-external-format|stream-error-stream|stream-element-type|standard-char-p|stable-sort|sqrt|special-operator-p|sort|some|software-version|software-type|slot-value|slot-makunbound|slot-exists-p|slot-boundp|sinh?|simple-vector-p|simple-string-p|simple-condition-format-control|simple-condition-format-arguments|simple-bit-vector-p|signum|short-site-name|set-pprint-dispatch|search|scale-float|round|restart-name|rename-package|rename-file|rem|reduce|realpart|realp|readtablep|read-preserving-whitespace|read-line|read-from-string|read-delimited-list|read-char-no-hang|read-char|read|rationalp|rationalize|rational|rassoc-if-not|rassoc-if|rassoc|random-state-p|proclaim|probe-file|print-not-readable-object|print|princ-to-string|princ|prin1-to-string|prin1|pprint-tab|pprint-indent|pprint-dispatch|pprint|position-if-not|position-if|position|plusp|phase|peek-char|pathnamep|pathname-version|pathname-type|pathname-name|pathname-match-p|pathname-host|pathname-directory|pathname-device|pathname|parse-namestring|parse-integer|pairlis|packagep|package-used-by-list|package-use-list|package-shadowing-symbols|package-nicknames|package-name|package-error-package|output-stream-p|open-stream-p|open|oddp|numerator|numberp|null|nthcdr|notevery|notany|not|next-method-p|nbutlast|namestring|name-char|mod|mismatch|minusp|min|merge-pathnames|merge|member-if-not|member-if|member|max|maplist|mapl|mapcon|mapcar|mapcan|mapc|map-into|map|make-two-way-stream|make-synonym-stream|make-symbol|make-string-output-stream|make-string-input-stream|make-string|make-sequence|make-random-state|make-pathname|make-package|make-load-form-saving-slots|make-list|make-hash-table|make-echo-stream|make-dispatch-macro-character|make-condition|make-concatenated-stream|make-broadcast-stream|make-array|macroexpand-1|macroexpand|machine-version|machine-type|machine-instance|lower-case-p|long-site-name|logxor|logtest|logorc2|logorc1|lognot|lognor|lognand|logior|logical-pathname|logeqv|logcount|logbitp|logandc2|logandc1|logand|log|load-logical-pathname-translations|load|listp|listen|list-length|list-all-packages|list\\\\*?|lisp-implementation-version|lisp-implementation-type|length|ldb-test|lcm|last|keywordp|isqrt|intern|interactive-stream-p|integerp|integer-length|integer-decode-float|input-stream-p|imagpart|identity|host-namestring|hash-table-test|hash-table-size|hash-table-rehash-threshold|hash-table-rehash-size|hash-table-p|hash-table-count|graphic-char-p|get-universal-time|get-setf-expansion|get-properties|get-internal-run-time|get-internal-real-time|get-decoded-time|gcd|functionp|function-lambda-expression|funcall|ftruncate|fround|format|force-output|fmakunbound|floor|floatp|float-sign|float-radix|float-precision|float-digits|float|finish-output|find-symbol|find-restart|find-package|find-if-not|find-if|find-all-symbols|find|file-write-date|file-string-length|file-namestring|file-length|file-error-pathname|file-author|ffloor|fceiling|fboundp|expt?|every|evenp|eval|equalp?|eql?|ensure-generic-function|ensure-directories-exist|enough-namestring|endp|encode-universal-time|ed|echo-stream-output-stream|echo-stream-input-stream|dribble|dpb|disassemble|directory-namestring|directory|digit-char-p|digit-char|deposit-field|denominator|delete-package|delete-file|decode-universal-time|decode-float|count-if-not|count-if|count|cosh?|copy-tree|copy-symbol|copy-structure|copy-seq|copy-readtable|copy-pprint-dispatch|copy-list|copy-alist|constantp|constantly|consp?|conjugate|concatenated-stream-streams|concatenate|compute-restarts|complexp?|complement|compiled-function-p|compile-file-pathname|compile-file|compile|coerce|code-char|clear-output|class-of|cis|characterp?|char>=?|char=|char<=?|char/=|char-upcase|char-not-lessp|char-not-greaterp|char-not-equal|char-name|char-lessp|char-int|char-greaterp|char-equal|char-downcase|char-code|cerror|cell-error-name|ceiling|call-next-method|byte-size|byte-position|byte|butlast|broadcast-stream-streams|boundp|both-case-p|boole|bit-xor|bit-vector-p|bit-orc2|bit-orc1|bit-not|bit-nor|bit-nand|bit-ior|bit-eqv|bit-andc2|bit-andc1|bit-and|atom|atanh?|assoc-if-not|assoc-if|assoc|asinh?|ash|arrayp|array-total-size|array-row-major-index|array-rank|array-in-bounds-p|array-has-fill-pointer-p|array-element-type|array-displacement|array-dimensions?|arithmetic-error-operation|arithmetic-error-operands|apropos-list|apropos|apply|append|alphanumericp|alpha-char-p|adjustable-array-p|adjust-array|adjoin|acosh?|acons|abs|>=|[=>]|<=?|1-|1\\\\+|/=|[-*+/])(?=([()\\\\s]))","name":"support.function.f.sideeffects.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|#')(?:variable|update-instance-for-redefined-class|update-instance-for-different-class|structure|slot-unbound|slot-missing|shared-initialize|remove-method|print-object|no-next-method|no-applicable-method|method-qualifiers|make-load-form|make-instances-obsolete|make-instance|initialize-instance|function-keywords|find-method|documentation|describe-object|compute-applicable-methods|compiler-macro|class-name|change-class|allocate-instance|add-method)(?=([()\\\\s]))","name":"support.function.sgf.nosideeffects.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|#')reinitialize-instance(?=([()\\\\s]))","name":"support.function.sgf.sideeffects.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|#')satisfies(?=([()\\\\s]))","name":"support.function.typespecifier.commonlisp"}]},"lambda-list":{"match":"(?i)(?<=^|[(\\\\s])&(?:[]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?|whole|rest|optional|key|environment|body|aux|allow-other-keys)(?=([()\\\\s]))","name":"keyword.other.lambdalist.commonlisp"},"macro":{"patterns":[{"match":"(?i)(?<=^|[(\\\\s])(?:with-standard-io-syntax|with-slots|with-simple-restart|with-package-iterator|with-hash-table-iterator|with-condition-restarts|with-compilation-unit|with-accessors|when|unless|typecase|time|step|shiftf|setf|rotatef|return|restart-case|restart-bind|psetf|prog2|prog1|prog\\\\*?|print-unreadable-object|pprint-logical-block|pprint-exit-if-list-exhausted|or|nth-value|multiple-value-setq|multiple-value-list|multiple-value-bind|make-method|loop|lambda|ignore-errors|handler-case|handler-bind|formatter|etypecase|dotimes|dolist|do-symbols|do-external-symbols|do-all-symbols|do\\\\*?|destructuring-bind|defun|deftype|defstruct|defsetf|defpackage|defmethod|defmacro|define-symbol-macro|define-setf-expander|define-condition|define-compiler-macro|defgeneric|defconstant|defclass|declaim|ctypecase|cond|call-method|assert|and)(?=([()\\\\s]))","name":"storage.type.function.m.nosideeffects.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s])(?:with-output-to-string|with-open-stream|with-open-file|with-input-from-string|untrace|trace|remf|pushnew|push|psetq|pprint-pop|pop|otherwise|loop-finish|incf|in-package|ecase|defvar|defparameter|define-modify-macro|define-method-combination|decf|check-type|ccase|case)(?=([()\\\\s]))","name":"storage.type.function.m.sideeffects.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s])setq(?=([()\\\\s]))","name":"storage.type.function.specialform.commonlisp"}]},"package":{"patterns":[{"captures":{"2":{"name":"support.type.package.commonlisp"},"3":{"name":"support.type.package.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(([]!$%\\\\&*+\\\\--9<-\\\\[^_a-{}~]+?)|(#))(?=::?)"}]},"punctuation":{"patterns":[{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(['\`])(?=\\\\S)","name":"variable.other.constant.singlequote.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?):[]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?(?=([()\\\\s]))","name":"entity.name.variable.commonlisp"},{"captures":{"1":{"name":"variable.other.constant.sharpsign.commonlisp"},"2":{"name":"constant.numeric.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#)([0-9]*)(?=\\\\()"},{"captures":{"1":{"name":"variable.other.constant.sharpsign.commonlisp"},"2":{"name":"constant.numeric.commonlisp"},"3":{"name":"variable.other.constant.sharpsign.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#)([0-9]*)(\\\\*)(?=[01])"},{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#0??\\\\*)(?=([()\\\\s]))","name":"variable.other.constant.sharpsign.commonlisp"},{"captures":{"1":{"name":"variable.other.constant.sharpsign.commonlisp"},"2":{"name":"constant.numeric.commonlisp"},"3":{"name":"variable.other.constant.sharpsign.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#)([0-9]+)([Aa])(?=.)"},{"captures":{"1":{"name":"variable.other.constant.sharpsign.commonlisp"},"2":{"name":"constant.numeric.commonlisp"},"3":{"name":"variable.other.constant.sharpsign.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#)([0-9]+)(=)(?=.)"},{"captures":{"1":{"name":"variable.other.constant.sharpsign.commonlisp"},"2":{"name":"constant.numeric.commonlisp"},"3":{"name":"variable.other.constant.sharpsign.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#)([0-9]+)(#)(?=.)"},{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#([-+]))(?=\\\\S)","name":"variable.other.constant.sharpsign.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#([',.CPScps]))(?=\\\\S)","name":"variable.other.constant.sharpsign.commonlisp"},{"captures":{"1":{"name":"support.type.package.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(#)(:)(?=\\\\S)"},{"captures":{"2":{"name":"variable.other.constant.backquote.commonlisp"},"3":{"name":"variable.other.constant.backquote.commonlisp"},"4":{"name":"variable.other.constant.backquote.commonlisp"},"5":{"name":"variable.other.constant.backquote.commonlisp"}},"match":"(?i)(?<=^|[(\\\\s])((\`#)|(\`)(,(?:@|\\\\.?))?|(,(?:@|\\\\.?)))(?=\\\\S)"}]},"special-operator":{"captures":{"2":{"name":"keyword.control.commonlisp"}},"match":"(?i)(\\\\(\\\\s*)(unwind-protect|throw|the|tagbody|symbol-macrolet|return-from|quote|progv|progn|multiple-value-prog1|multiple-value-call|macrolet|locally|load-time-value|let\\\\*?|labels|if|go|function|flet|eval-when|catch|block)(?=([()\\\\s]))"},"string":{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.commonlisp"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.commonlisp"}},"name":"string.quoted.double.commonlisp","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.commonlisp"},{"captures":{"1":{"name":"storage.type.function.formattedstring.commonlisp"},"2":{"name":"variable.other.constant.formattedstring.commonlisp"},"8":{"name":"storage.type.function.formattedstring.commonlisp"},"10":{"name":"storage.type.function.formattedstring.commonlisp"}},"match":"(?i)(~)(((([-+]?[0-9]+)|('.)|[#V])*?(,)?)*?)((:@|@:|[:@])?)([]();<>\\\\[^{}])"},{"captures":{"1":{"name":"entity.name.variable.commonlisp"},"2":{"name":"variable.other.constant.formattedstring.commonlisp"},"8":{"name":"entity.name.variable.commonlisp"},"10":{"name":"entity.name.variable.commonlisp"}},"match":"(?i)(~)(((([-+]?[0-9]+)|('.)|[#V])*?(,)?)*?)((:@|@:|[:@])?)([$%\\\\&*?A-GIOPRSTWX_|~])"},{"captures":{"1":{"name":"entity.name.variable.commonlisp"},"2":{"name":"variable.other.constant.formattedstring.commonlisp"},"8":{"name":"entity.name.variable.commonlisp"},"10":{"name":"entity.name.variable.commonlisp"},"11":{"name":"entity.name.variable.commonlisp"},"12":{"name":"entity.name.variable.commonlisp"}},"match":"(?i)(~)(((([-+]?[0-9]+)|('.)|[#V])*?(,)?)*?)((:@|@:|[:@])?)(/)([]!#-\\\\&*+\\\\--:<-\\\\[^_a-{}~]+?)(/)"},{"match":"(~\\\\n)","name":"variable.other.constant.formattedstring.commonlisp"}]},"style-guide":{"patterns":[{"captures":{"3":{"name":"source.commonlisp"}},"match":"(?i)(?<=(?:^|[(\\\\s]|,@|,\\\\.?)')(\\\\S+?)(::?)((\\\\+[^+\\\\s]+\\\\+)|(\\\\*[^*\\\\s]+\\\\*))(?=([()\\\\s]))"},{"match":"(?i)(?<=\\\\S:|^|[(\\\\s]|,@|,\\\\.?)(\\\\+[^+\\\\s]+\\\\+)(?=([()\\\\s]))","name":"variable.other.constant.earmuffsplus.commonlisp"},{"match":"(?i)(?<=\\\\S:|^|[(\\\\s]|,@|,\\\\.?)(\\\\*[^*\\\\s]+\\\\*)(?=([()\\\\s]))","name":"string.regexp.earmuffsasterisk.commonlisp"}]},"symbol":{"match":"(?i)(?<=^|[(\\\\s])(?:method-combination|declare)(?=([()\\\\s]))","name":"storage.type.function.symbol.commonlisp"},"type":{"match":"(?i)(?<=^|[(\\\\s])(?:unsigned-byte|standard-char|standard|single-float|simple-vector|simple-string|simple-bit-vector|simple-base-string|simple-array|signed-byte|short-float|long-float|keyword|fixnum|extended-char|double-float|compiled-function|boolean|bignum|base-string|base-char)(?=([()\\\\s]))","name":"support.type.t.commonlisp"},"variable":{"patterns":[{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)\\\\*(?:trace-output|terminal-io|standard-output|standard-input|readtable|read-suppress|read-eval|read-default-float-format|read-base|random-state|query-io|print-right-margin|print-readably|print-radix|print-pretty|print-pprint-dispatch|print-miser-width|print-lines|print-level|print-length|print-gensym|print-escape|print-circle|print-case|print-base|print-array|package|modules|macroexpand-hook|load-verbose|load-truename|load-print|load-pathname|gensym-counter|features|error-output|default-pathname-defaults|debugger-hook|debug-io|compile-verbose|compile-print|compile-file-truename|compile-file-pathname|break-on-signals)\\\\*(?=([()\\\\s]))","name":"string.regexp.earmuffsasterisk.commonlisp"},{"match":"(?i)(?<=^|[(\\\\s]|,@|,\\\\.?)(?:\\\\*\\\\*\\\\*?|\\\\+\\\\+\\\\+?|///?)(?=([()\\\\s]))","name":"variable.other.repl.commonlisp"}]}},"scopeName":"source.commonlisp","aliases":["lisp"]}`))];export{e as default}; diff --git a/docs/assets/commonlisp-DKNhPgyy.js b/docs/assets/commonlisp-DKNhPgyy.js new file mode 100644 index 0000000..fb45d34 --- /dev/null +++ b/docs/assets/commonlisp-DKNhPgyy.js @@ -0,0 +1 @@ +import{t as o}from"./commonlisp-De6q7_JS.js";export{o as commonLisp}; diff --git a/docs/assets/commonlisp-De6q7_JS.js b/docs/assets/commonlisp-De6q7_JS.js new file mode 100644 index 0000000..630ae8c --- /dev/null +++ b/docs/assets/commonlisp-De6q7_JS.js @@ -0,0 +1 @@ +var i=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,c=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,s=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,u=/[^\s'`,@()\[\]";]/,o;function l(t){for(var e;e=t.next();)if(e=="\\")t.next();else if(!u.test(e)){t.backUp(1);break}return t.current()}function a(t,e){if(t.eatSpace())return o="ws",null;if(t.match(s))return"number";var n=t.next();if(n=="\\"&&(n=t.next()),n=='"')return(e.tokenize=d)(t,e);if(n=="(")return o="open","bracket";if(n==")")return o="close","bracket";if(n==";")return t.skipToEnd(),o="ws","comment";if(/['`,@]/.test(n))return null;if(n=="|")return t.skipTo("|")?(t.next(),"variableName"):(t.skipToEnd(),"error");if(n=="#"){var n=t.next();return n=="("?(o="open","bracket"):/[+\-=\.']/.test(n)||/\d/.test(n)&&t.match(/^\d*#/)?null:n=="|"?(e.tokenize=f)(t,e):n==":"?(l(t),"meta"):n=="\\"?(t.next(),l(t),"string.special"):"error"}else{var r=l(t);return r=="."?null:(o="symbol",r=="nil"||r=="t"||r.charAt(0)==":"?"atom":e.lastType=="open"&&(i.test(r)||c.test(r))?"keyword":r.charAt(0)=="&"?"variableName.special":"variableName")}}function d(t,e){for(var n=!1,r;r=t.next();){if(r=='"'&&!n){e.tokenize=a;break}n=!n&&r=="\\"}return"string"}function f(t,e){for(var n,r;n=t.next();){if(n=="#"&&r=="|"){e.tokenize=a;break}r=n}return o="ws","comment"}const m={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:a}},token:function(t,e){t.sol()&&typeof e.ctx.indentTo!="number"&&(e.ctx.indentTo=e.ctx.start+1),o=null;var n=e.tokenize(t,e);return o!="ws"&&(e.ctx.indentTo==null?o=="symbol"&&c.test(t.current())?e.ctx.indentTo=e.ctx.start+t.indentUnit:e.ctx.indentTo="next":e.ctx.indentTo=="next"&&(e.ctx.indentTo=t.column()),e.lastType=o),o=="open"?e.ctx={prev:e.ctx,start:t.column(),indentTo:null}:o=="close"&&(e.ctx=e.ctx.prev||e.ctx),n},indent:function(t){var e=t.ctx.indentTo;return typeof e=="number"?e:t.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}};export{m as t}; diff --git a/docs/assets/compiler-runtime-DeeZ7FnK.js b/docs/assets/compiler-runtime-DeeZ7FnK.js new file mode 100644 index 0000000..5c71e48 --- /dev/null +++ b/docs/assets/compiler-runtime-DeeZ7FnK.js @@ -0,0 +1 @@ +import{t}from"./chunk-LvLJmgfZ.js";import{t as o}from"./react-BGmjiNul.js";var N=t((r=>{var _=o().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;r.c=function(e){return _.H.useMemoCache(e)}})),E=t(((r,_)=>{_.exports=N()}));export{E as t}; diff --git a/docs/assets/config-CENq_7Pd.js b/docs/assets/config-CENq_7Pd.js new file mode 100644 index 0000000..eeaba74 --- /dev/null +++ b/docs/assets/config-CENq_7Pd.js @@ -0,0 +1 @@ +var ct=Object.defineProperty;var ht=(t,n,s)=>n in t?ct(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s;var V=(t,n,s)=>ht(t,typeof n!="symbol"?n+"":n,s);import{t as F}from"./chunk-LvLJmgfZ.js";import{i as lt,l as ft,n as dt,o as pt,p as $,u as gt}from"./useEvent-DlWF5OMa.js";import{t as yt}from"./compiler-runtime-DeeZ7FnK.js";import{d as M}from"./hotkeys-uKX61F1_.js";import{t as Lt}from"./utils-Czt8B2GX.js";import{r as j}from"./constants-Bkp4R3bQ.js";import{t as wt}from"./Deferred-DzyBMRsy.js";function Y(){return typeof document<"u"&&document.querySelector("marimo-wasm")!==null}const S={NOT_STARTED:"NOT_STARTED",CONNECTING:"CONNECTING",OPEN:"OPEN",CLOSING:"CLOSING",CLOSED:"CLOSED"},mt={KERNEL_DISCONNECTED:"KERNEL_DISCONNECTED",ALREADY_RUNNING:"ALREADY_RUNNING",MALFORMED_QUERY:"MALFORMED_QUERY",KERNEL_STARTUP_ERROR:"KERNEL_STARTUP_ERROR"},W=$({state:S.NOT_STARTED});function bt(){return pt(W,t=>t.state===S.OPEN)}const St=$(t=>t(W).state===S.CONNECTING);$(t=>t(W).state===S.OPEN);const Et=$(t=>{let n=t(W);return n.state===S.OPEN||n.state===S.NOT_STARTED}),Rt=$(t=>t(W).state===S.CLOSED),Ot=$(t=>t(W).state===S.NOT_STARTED);function Ut(t){return t===S.CLOSED}function kt(t){return t===S.CONNECTING}function It(t){return t===S.OPEN}function vt(t){return t===S.CLOSING}function q(t){return t===S.NOT_STARTED}function Nt(t){return t===S.CLOSED||t===S.CLOSING||t===S.CONNECTING}function _t(t){switch(t){case S.CLOSED:return"App disconnected";case S.CONNECTING:return"Connecting to a runtime ...";case S.CLOSING:return"App disconnecting...";case S.OPEN:return"";case S.NOT_STARTED:return"Click to connect to a runtime";default:return""}}var xt=F((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=L,t.fromBig=f,t.split=h;var n=BigInt(2**32-1),s=BigInt(32);function f(o,i=!1){return i?{h:Number(o&n),l:Number(o>>s&n)}:{h:Number(o>>s&n)|0,l:Number(o&n)|0}}function h(o,i=!1){let e=o.length,d=new Uint32Array(e),O=new Uint32Array(e);for(let I=0;IBigInt(o>>>0)<>>0);t.toBig=R;var E=(o,i,e)=>o>>>e;t.shrSH=E;var C=(o,i,e)=>o<<32-e|i>>>e;t.shrSL=C;var H=(o,i,e)=>o>>>e|i<<32-e;t.rotrSH=H;var P=(o,i,e)=>o<<32-e|i>>>e;t.rotrSL=P;var v=(o,i,e)=>o<<64-e|i>>>e-32;t.rotrBH=v;var N=(o,i,e)=>o>>>e-32|i<<64-e;t.rotrBL=N;var T=(o,i)=>i;t.rotr32H=T;var D=(o,i)=>o;t.rotr32L=D;var _=(o,i,e)=>o<>>32-e;t.rotlSH=_;var k=(o,i,e)=>i<>>32-e;t.rotlSL=k;var p=(o,i,e)=>i<>>64-e;t.rotlBH=p;var w=(o,i,e)=>o<>>64-e;t.rotlBL=w;function L(o,i,e,d){let O=(i>>>0)+(d>>>0);return{h:o+e+(O/2**32|0)|0,l:O|0}}var y=(o,i,e)=>(o>>>0)+(i>>>0)+(e>>>0);t.add3L=y;var B=(o,i,e,d)=>i+e+d+(o/2**32|0)|0;t.add3H=B;var l=(o,i,e,d)=>(o>>>0)+(i>>>0)+(e>>>0)+(d>>>0);t.add4L=l;var a=(o,i,e,d,O)=>i+e+d+O+(o/2**32|0)|0;t.add4H=a;var c=(o,i,e,d,O)=>(o>>>0)+(i>>>0)+(e>>>0)+(d>>>0)+(O>>>0);t.add5L=c;var g=(o,i,e,d,O,I)=>i+e+d+O+I+(o/2**32|0)|0;t.add5H=g,t.default={fromBig:f,split:h,toBig:R,shrSH:E,shrSL:C,rotrSH:H,rotrSL:P,rotrBH:v,rotrBL:N,rotr32H:T,rotr32L:D,rotlSH:_,rotlSL:k,rotlBH:p,rotlBL:w,add:L,add3L:y,add3H:B,add4L:l,add4H:a,add5H:g,add5L:c}})),Ct=F((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0})),Ht=F((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=s,t.anumber=f,t.abytes=h,t.ahash=R,t.aexists=E,t.aoutput=C,t.u8=H,t.u32=P,t.clean=v,t.createView=N,t.rotr=T,t.rotl=D,t.byteSwap=_,t.byteSwap32=k,t.bytesToHex=L,t.hexToBytes=l,t.asyncLoop=a,t.utf8ToBytes=c,t.bytesToUtf8=g,t.toBytes=o,t.kdfInputToBytes=i,t.concatBytes=e,t.checkOpts=d,t.createHasher=O,t.createOptHasher=I,t.createXOFer=A,t.randomBytes=G;var n=Ct();function s(r){return r instanceof Uint8Array||ArrayBuffer.isView(r)&&r.constructor.name==="Uint8Array"}function f(r){if(!Number.isSafeInteger(r)||r<0)throw Error("positive integer expected, got "+r)}function h(r,...u){if(!s(r))throw Error("Uint8Array expected");if(u.length>0&&!u.includes(r.length))throw Error("Uint8Array expected of length "+u+", got length="+r.length)}function R(r){if(typeof r!="function"||typeof r.create!="function")throw Error("Hash should be wrapped by utils.createHasher");f(r.outputLen),f(r.blockLen)}function E(r,u=!0){if(r.destroyed)throw Error("Hash instance has been destroyed");if(u&&r.finished)throw Error("Hash#digest() has already been called")}function C(r,u){h(r);let m=u.outputLen;if(r.length>>u}function D(r,u){return r<>>32-u>>>0}t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function _(r){return r<<24&4278190080|r<<8&16711680|r>>>8&65280|r>>>24&255}t.swap8IfBE=t.isLE?r=>r:r=>_(r),t.byteSwapIfBE=t.swap8IfBE;function k(r){for(let u=0;ur:k;var p=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",w=Array.from({length:256},(r,u)=>u.toString(16).padStart(2,"0"));function L(r){if(h(r),p)return r.toHex();let u="";for(let m=0;m=y._0&&r<=y._9)return r-y._0;if(r>=y.A&&r<=y.F)return r-(y.A-10);if(r>=y.a&&r<=y.f)return r-(y.a-10)}function l(r){if(typeof r!="string")throw Error("hex string expected, got "+typeof r);if(p)return Uint8Array.fromHex(r);let u=r.length,m=u/2;if(u%2)throw Error("hex string expected, got unpadded hex of length "+u);let b=new Uint8Array(m);for(let U=0,x=0;U{};async function a(r,u,m){let b=Date.now();for(let U=0;U=0&&xr().update(o(b)).digest(),m=r();return u.outputLen=m.outputLen,u.blockLen=m.blockLen,u.create=()=>r(),u}function I(r){let u=(b,U)=>r(U).update(o(b)).digest(),m=r({});return u.outputLen=m.outputLen,u.blockLen=m.blockLen,u.create=b=>r(b),u}function A(r){let u=(b,U)=>r(U).update(o(b)).digest(),m=r({});return u.outputLen=m.outputLen,u.blockLen=m.blockLen,u.create=b=>r(b),u}t.wrapConstructor=O,t.wrapConstructorWithOpts=I,t.wrapXOFConstructorWithOpts=A;function G(r=32){if(n.crypto&&typeof n.crypto.getRandomValues=="function")return n.crypto.getRandomValues(new Uint8Array(r));if(n.crypto&&typeof n.crypto.randomBytes=="function")return Uint8Array.from(n.crypto.randomBytes(r));throw Error("crypto.getRandomValues must be defined")}})),Tt=F((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=void 0,t.keccakP=w;var n=xt(),s=Ht(),f=BigInt(0),h=BigInt(1),R=BigInt(2),E=BigInt(7),C=BigInt(256),H=BigInt(113),P=[],v=[],N=[];for(let l=0,a=h,c=1,g=0;l<24;l++){[c,g]=[g,(2*c+3*g)%5],P.push(2*(5*g+c)),v.push((l+1)*(l+2)/2%64);let o=f;for(let i=0;i<7;i++)a=(a<>E)*H)%C,a&R&&(o^=h<<(h<c>32?(0,n.rotlBH)(l,a,c):(0,n.rotlSH)(l,a,c),p=(l,a,c)=>c>32?(0,n.rotlBL)(l,a,c):(0,n.rotlSL)(l,a,c);function w(l,a=24){let c=new Uint32Array(10);for(let g=24-a;g<24;g++){for(let e=0;e<10;e++)c[e]=l[e]^l[e+10]^l[e+20]^l[e+30]^l[e+40];for(let e=0;e<10;e+=2){let d=(e+8)%10,O=(e+2)%10,I=c[O],A=c[O+1],G=k(I,A,1)^c[d],r=p(I,A,1)^c[d+1];for(let u=0;u<50;u+=10)l[e+u]^=G,l[e+u+1]^=r}let o=l[2],i=l[3];for(let e=0;e<24;e++){let d=v[e],O=k(o,i,d),I=p(o,i,d),A=P[e];o=l[A],i=l[A+1],l[A]=O,l[A+1]=I}for(let e=0;e<50;e+=10){for(let d=0;d<10;d++)c[d]=l[e+d];for(let d=0;d<10;d++)l[e+d]^=~c[(d+2)%10]&c[(d+4)%10]}l[0]^=D[g],l[1]^=_[g]}(0,s.clean)(c)}var L=class at extends s.Hash{constructor(a,c,g,o=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=a,this.suffix=c,this.outputLen=g,this.enableXOF=o,this.rounds=i,(0,s.anumber)(g),!(0=g&&this.keccak();let e=Math.min(g-this.posOut,i-o);a.set(c.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return a}xofInto(a){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(a)}xof(a){return(0,s.anumber)(a),this.xofInto(new Uint8Array(a))}digestInto(a){if((0,s.aoutput)(a,this),this.finished)throw Error("digest() was already called");return this.writeInto(a),this.destroy(),a}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,s.clean)(this.state)}_cloneInto(a){let{blockLen:c,suffix:g,outputLen:o,rounds:i,enableXOF:e}=this;return a||(a=new at(c,g,o,e,i)),a.state32.set(this.state32),a.pos=this.pos,a.posOut=this.posOut,a.finished=this.finished,a.rounds=i,a.suffix=g,a.outputLen=o,a.enableXOF=e,a.destroyed=this.destroyed,a}};t.Keccak=L;var y=(l,a,c)=>(0,s.createHasher)(()=>new L(a,l,c));t.sha3_224=y(6,144,224/8),t.sha3_256=y(6,136,256/8),t.sha3_384=y(6,104,384/8),t.sha3_512=y(6,72,512/8),t.keccak_224=y(1,144,224/8),t.keccak_256=y(1,136,256/8),t.keccak_384=y(1,104,384/8),t.keccak_512=y(1,72,512/8);var B=(l,a,c)=>(0,s.createXOFer)((g={})=>new L(a,l,g.dkLen===void 0?c:g.dkLen,!0));t.shake128=B(31,168,128/8),t.shake256=B(31,136,256/8)})),Bt=F(((t,n)=>{var{sha3_512:s}=Tt(),f=24,h=32,R=(p=4,w=Math.random)=>{let L="";for(;L.lengthE(s(p)).toString(36).slice(1),H=Array.from({length:26},(p,w)=>String.fromCharCode(w+97)),P=p=>H[Math.floor(p()*H.length)],v=({globalObj:p=typeof global<"u"?global:typeof window<"u"?window:{},random:w=Math.random}={})=>{let L=Object.keys(p).toString();return C(L.length?L+R(h,w):R(h,w)).substring(0,h)},N=p=>()=>p++,T=476782367,D=({random:p=Math.random,counter:w=N(Math.floor(p()*T)),length:L=f,fingerprint:y=v({random:p})}={})=>function(){let B=P(p),l=Date.now().toString(36),a=w().toString(36);return`${B+C(`${l+R(L,p)+a+y}`).substring(1,L)}`},_=D(),k=(p,{minLength:w=2,maxLength:L=h}={})=>{let y=p.length,B=/^[0-9a-z]+$/;return!!(typeof p=="string"&&y>=w&&y<=L&&B.test(p))};n.exports.getConstants=()=>({defaultLength:f,bigLength:h}),n.exports.init=D,n.exports.createId=_,n.exports.bufToBigInt=E,n.exports.createCounter=N,n.exports.createFingerprint=v,n.exports.isCuid=k})),Q=F(((t,n)=>{var{createId:s,init:f,getConstants:h,isCuid:R}=Bt();n.exports.createId=s,n.exports.init=f,n.exports.getConstants=h,n.exports.isCuid=R}));function J(t){return new URL(t,document.baseURI)}function Z(t){let n=new URL(window.location.href);t(n.searchParams),window.history.replaceState({},"",n.toString())}function At(t,n){if(typeof window>"u")return!1;let s=new URLSearchParams(window.location.search);return n===void 0?s.has(t):s.get(t)===n}function Pt(){return J(`?file=${`__new__${tt()}`}`).toString()}var Dt=/^(https?:\/\/\S+)$/;function $t(t){return typeof t=="string"&&Dt.test(t)}function Mt({href:t,queryParams:n,keys:s}){let f=typeof n=="string"?new URLSearchParams(n):n;if(f.size===0||t.startsWith("http://")||t.startsWith("https://"))return t;let h=t.startsWith("#"),R=h&&t.includes("?");if(h&&!R){let k=s?[...f.entries()].filter(([L])=>s.includes(L)):[...f.entries()],p=new URLSearchParams;for(let[L,y]of k)p.set(L,y);let w=p.toString();return w?`/?${w}${t}`:t}let E=t,C="",H=new URLSearchParams,P=h?1:0,v=t.indexOf("#",P);v!==-1&&(C=t.slice(v),E=t.slice(0,v));let N=E.indexOf("?");N!==-1&&(H=new URLSearchParams(E.slice(N+1)),E=E.slice(0,N));let T=new URLSearchParams(H),D=s?[...f.entries()].filter(([k])=>s.includes(k)):[...f.entries()];for(let[k,p]of D)T.set(k,p);let _=T.toString();return _?`${E}?${_}${C}`:t}var Wt=(0,Q().init)({length:6});function tt(){return`s_${Wt()}`}function rt(t){return t?/^s_[\da-z]{6}$/.test(t):!1}var Ft=(()=>{let t=new URL(window.location.href).searchParams.get(j.sessionId);return rt(t)?(Z(n=>{n.has(j.kiosk)||n.delete(j.sessionId)}),M.debug("Connecting to existing session",{sessionId:t}),t):(M.debug("Starting a new session",{sessionId:t}),tt())})();function z(){return Ft}var jt=class{constructor(t,n=!1){V(this,"initialHealthyCheck",new wt);this.config=t,this.lazy=n;try{new URL(this.config.url)}catch(s){throw Error(`Invalid runtime URL: ${this.config.url}. ${s instanceof Error?s.message:"Unknown error"}`)}this.lazy||this.init()}get isLazy(){return this.lazy}get httpURL(){return new URL(this.config.url)}get isSameOrigin(){return this.httpURL.origin===window.location.origin}formatHttpURL(t,n,s=!0){t||(t="");let f=this.httpURL,h=new URLSearchParams(window.location.search);if(n)for(let[R,E]of n.entries())f.searchParams.set(R,E);for(let[R,E]of h.entries())s&&!Object.values(j).includes(R)||f.searchParams.set(R,E);return f.pathname=`${f.pathname.replace(/\/$/,"")}/${t.replace(/^\//,"")}`,f.hash="",f}formatWsURL(t,n){return Gt(this.formatHttpURL(t,n,!1).toString())}getWsURL(t){let n=new URL(this.config.url),s=new URLSearchParams(n.search);return new URLSearchParams(window.location.search).forEach((f,h)=>{s.has(h)||s.set(h,f)}),s.set(j.sessionId,t),this.formatWsURL("/ws",s)}getWsSyncURL(t){let n=new URL(this.config.url),s=new URLSearchParams(n.search);return new URLSearchParams(window.location.search).forEach((f,h)=>{s.has(h)||s.set(h,f)}),s.set(j.sessionId,t),this.formatWsURL("/ws_sync",s)}getTerminalWsURL(){return this.formatWsURL("/terminal/ws")}getLSPURL(t){if(t==="copilot"){let n=this.formatWsURL(`/lsp/${t}`);return n.search="",n}return this.formatWsURL(`/lsp/${t}`)}getAiURL(t){return this.formatHttpURL(`/api/ai/${t}`)}healthURL(){return this.formatHttpURL("/health")}async isHealthy(){if(Y()||Lt())return!0;try{let t=await fetch(this.healthURL().toString());if(t.redirected){M.debug(`Runtime redirected to ${t.url}`);let s=t.url.replace(/\/health$/,"");this.config.url=s}let n=t.ok;return n&&this.setDOMBaseUri(this.config.url),n}catch{return!1}}setDOMBaseUri(t){t=t.split("?",1)[0],t.endsWith("/")||(t+="/");let n=document.querySelector("base");n?n.setAttribute("href",t):(n=document.createElement("base"),n.setAttribute("href",t),document.head.append(n))}async init(t){M.debug("Initializing runtime...");let n=0;for(;!await this.isHealthy();){if(n>=25){M.error("Failed to connect after 25 retries"),this.initialHealthyCheck.reject(Error("Failed to connect after 25 retries"));return}if(!(t!=null&&t.disableRetryDelay)){let s=Math.min(100*1.2**n,2e3);await new Promise(f=>setTimeout(f,s))}n++}M.debug("Runtime is healthy"),this.initialHealthyCheck.resolve()}async waitForHealthy(){return this.initialHealthyCheck.promise}headers(){let t={"Marimo-Session-Id":z(),"Marimo-Server-Token":this.config.serverToken??"","x-runtime-url":this.httpURL.toString()};return this.config.authToken&&(t.Authorization=`Bearer ${this.config.authToken}`),t}sessionHeaders(){return{"Marimo-Session-Id":z()}}};function Gt(t){if(!t.startsWith("http")){M.warn(`URL must start with http: ${t}`);let n=new URL(t);return n.protocol="ws",n}return new URL(t.replace(/^http/,"ws"))}var zt=yt();function Xt(){let t=new URL(document.baseURI);return t.search="",t.hash="",t.toString()}const nt={lazy:!0,url:Xt()},et=$(nt);var ot=$(t=>{let n=t(et);return new jt(n,n.lazy)});function st(){return gt(ot)}function Kt(){let t=(0,zt.c)(4),n=st(),[s,f]=ft(W),h;return t[0]!==s.state||t[1]!==n||t[2]!==f?(h=async()=>{q(s.state)?(f({state:S.CONNECTING}),await n.init()):M.log("Runtime already started or starting...")},t[0]=s.state,t[1]=n,t[2]=f,t[3]=h):h=t[3],dt(h)}function it(){return lt.get(ot)}function Vt(t){if(t.startsWith("http"))return new URL(t);let n=it().httpURL.toString();return n.startsWith("blob:")&&(n=n.replace("blob:","")),new URL(t,n)}export{S as A,Et as C,Ot as D,St as E,bt as O,q as S,Rt as T,Ut as _,Kt as a,kt as b,rt as c,$t as d,Pt as f,_t as g,Q as h,et as i,Y as j,mt as k,Mt as l,J as m,Vt as n,st as o,Z as p,it as r,z as s,nt as t,At as u,vt as v,W as w,Nt as x,It as y}; diff --git a/docs/assets/constants-Bkp4R3bQ.js b/docs/assets/constants-Bkp4R3bQ.js new file mode 100644 index 0000000..08a4729 --- /dev/null +++ b/docs/assets/constants-Bkp4R3bQ.js @@ -0,0 +1 @@ +const o={githubPage:"https://github.com/marimo-team/marimo",releasesPage:"https://github.com/marimo-team/marimo/releases",issuesPage:"https://github.com/marimo-team/marimo/issues",feedbackForm:"https://marimo.io/feedback",discordLink:"https://marimo.io/discord?ref=notebook",docsPage:"https://docs.marimo.io",youtube:"https://www.youtube.com/@marimo-team"},e={showCode:"show-code",includeCode:"include-code",sessionId:"session_id",kiosk:"kiosk",vscode:"vscode",filePath:"file",accessToken:"access_token",viewAs:"view-as",showChrome:"show-chrome"},s={outputArea:"output-area"};export{o as n,e as r,s as t}; diff --git a/docs/assets/context-BAYdLMF_.js b/docs/assets/context-BAYdLMF_.js new file mode 100644 index 0000000..86ac65e --- /dev/null +++ b/docs/assets/context-BAYdLMF_.js @@ -0,0 +1 @@ +import{s}from"./chunk-LvLJmgfZ.js";import{t as m}from"./react-BGmjiNul.js";import{t as g}from"./SSRProvider-DD7JA3RM.js";var p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),v=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function c(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),o=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(o)return o.direction==="rtl";if(t.script)return p.has(t.script)}let n=e.split("-")[0];return v.has(n)}var r=s(m(),1),h=Symbol.for("react-aria.i18n.locale");function u(){let e=typeof window<"u"&&window[h]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:c(e)?"rtl":"ltr"}}var l=u(),a=new Set;function f(){l=u();for(let e of a)e(l)}function d(){let e=g(),[n,t]=(0,r.useState)(l);return(0,r.useEffect)(()=>(a.size===0&&window.addEventListener("languagechange",f),a.add(t),()=>{a.delete(t),a.size===0&&window.removeEventListener("languagechange",f)}),[]),e?{locale:"en-US",direction:"ltr"}:n}var i=r.createContext(null);function w(e){let{locale:n,children:t}=e,o=r.useMemo(()=>({locale:n,direction:c(n)?"rtl":"ltr"}),[n]);return r.createElement(i.Provider,{value:o},t)}function S(e){let{children:n}=e,t=d();return r.createElement(i.Provider,{value:t},n)}function b(e){let{locale:n,children:t}=e;return n?r.createElement(w,{locale:n,children:t}):r.createElement(S,{children:t})}function x(){let e=d();return(0,r.useContext)(i)||e}export{b as n,x as t}; diff --git a/docs/assets/copy-DRhpWiOq.js b/docs/assets/copy-DRhpWiOq.js new file mode 100644 index 0000000..305cbe3 --- /dev/null +++ b/docs/assets/copy-DRhpWiOq.js @@ -0,0 +1 @@ +import{d as r}from"./hotkeys-uKX61F1_.js";async function a(o){if(navigator.clipboard===void 0){r.warn("navigator.clipboard is not supported"),window.prompt("Copy to clipboard: Ctrl+C, Enter",o);return}await navigator.clipboard.writeText(o).catch(async()=>{r.warn("Failed to copy to clipboard using navigator.clipboard"),window.prompt("Copy to clipboard: Ctrl+C, Enter",o)})}export{a as t}; diff --git a/docs/assets/copy-gBVL4NN-.js b/docs/assets/copy-gBVL4NN-.js new file mode 100644 index 0000000..8113def --- /dev/null +++ b/docs/assets/copy-gBVL4NN-.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var e=t("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);export{e as t}; diff --git a/docs/assets/copy-icon-jWsqdLn1.js b/docs/assets/copy-icon-jWsqdLn1.js new file mode 100644 index 0000000..7571fb8 --- /dev/null +++ b/docs/assets/copy-icon-jWsqdLn1.js @@ -0,0 +1 @@ +import{s as y}from"./chunk-LvLJmgfZ.js";import{t as j}from"./react-BGmjiNul.js";import{t as g}from"./compiler-runtime-DeeZ7FnK.js";import{t as v}from"./jsx-runtime-DN_bIXfG.js";import{r as T}from"./button-B8cGZzP5.js";import{t as w}from"./cn-C1rgT0yh.js";import{t as D}from"./check-CrAQug3q.js";import{t as S}from"./copy-gBVL4NN-.js";import{t as k}from"./use-toast-Bzf3rpev.js";import{t as E}from"./tooltip-CvjcEpZC.js";import{t as L}from"./copy-DRhpWiOq.js";var P=g(),_=y(j(),1),n=y(v(),1);const q=C=>{let t=(0,P.c)(14),{value:a,className:r,buttonClassName:c,tooltip:d,toastTitle:s,ariaLabel:N}=C,[e,x]=(0,_.useState)(!1),m;t[0]!==s||t[1]!==a?(m=T.stopPropagation(async h=>{await L(typeof a=="function"?a(h):a).then(()=>{x(!0),setTimeout(()=>x(!1),2e3),s&&k({title:s})})}),t[0]=s,t[1]=a,t[2]=m):m=t[2];let f=m,u=N??"Copy to clipboard",o;t[3]!==r||t[4]!==e?(o=e?(0,n.jsx)(D,{className:w(r,"text-(--grass-11)")}):(0,n.jsx)(S,{className:r}),t[3]=r,t[4]=e,t[5]=o):o=t[5];let i;t[6]!==c||t[7]!==f||t[8]!==u||t[9]!==o?(i=(0,n.jsx)("button",{type:"button",onClick:f,"aria-label":u,className:c,children:o}),t[6]=c,t[7]=f,t[8]=u,t[9]=o,t[10]=i):i=t[10];let l=i;if(d===!1)return l;let b=e?"Copied!":d??"Copy to clipboard",p;return t[11]!==l||t[12]!==b?(p=(0,n.jsx)(E,{content:b,delayDuration:400,children:l}),t[11]=l,t[12]=b,t[13]=p):p=t[13],p};export{q as t}; diff --git a/docs/assets/coq-DCqQ1le1.js b/docs/assets/coq-DCqQ1le1.js new file mode 100644 index 0000000..df47de0 --- /dev/null +++ b/docs/assets/coq-DCqQ1le1.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Coq","fileTypes":["v"],"name":"coq","patterns":[{"match":"\\\\b(From|Require|Import|Export|Local|Global|Include)\\\\b","name":"keyword.control.import.coq"},{"match":"\\\\b((Open|Close|Delimit|Undelimit|Bind)\\\\s+Scope)\\\\b","name":"keyword.control.import.coq"},{"captures":{"1":{"name":"keyword.source.coq"},"2":{"name":"entity.name.function.theorem.coq"}},"match":"\\\\b(Theorem|Lemma|Remark|Fact|Corollary|Property|Proposition)\\\\s+(([_\xA0\\\\p{L}])(['0-9_\xA0\\\\p{L}])*)"},{"match":"\\\\bGoal\\\\b","name":"keyword.source.coq"},{"captures":{"1":{"name":"keyword.source.coq"},"2":{"name":"keyword.source.coq"},"3":{"name":"entity.name.assumption.coq"}},"match":"\\\\b(Parameters?|Axioms?|Conjectures?|Variables?|Hypothesis|Hypotheses)(\\\\s+Inline)?\\\\b\\\\s*\\\\(?\\\\s*(([_\xA0\\\\p{L}])(['0-9_\xA0\\\\p{L}])*)"},{"captures":{"1":{"name":"keyword.source.coq"},"3":{"name":"entity.name.assumption.coq"}},"match":"\\\\b(Context)\\\\b\\\\s*\`?\\\\s*([({])?\\\\s*(([_\xA0\\\\p{L}])(['0-9_\xA0\\\\p{L}])*)"},{"captures":{"1":{"name":"keyword.source.coq"},"2":{"name":"keyword.source.coq"},"3":{"name":"entity.name.function.coq"}},"match":"(\\\\b(?:Program|Local)\\\\s+)?\\\\b(Definition|Fixpoint|CoFixpoint|Function|Example|Let(?:(?:\\\\s+|\\\\s+Co)Fixpoint)?|Instance|Equations|Equations?)\\\\s+(([_\xA0\\\\p{L}])(['0-9_\xA0\\\\p{L}])*)"},{"captures":{"1":{"name":"keyword.source.coq"}},"match":"\\\\b((Show\\\\s+)?Obligation\\\\s+Tactic|Obligations\\\\s+of|Obligation|Next\\\\s+Obligation(\\\\s+of)?|Solve\\\\s+Obligations(\\\\s+of)?|Solve\\\\s+All\\\\s+Obligations|Admit\\\\s+Obligations(\\\\s+of)?|Instance)\\\\b"},{"captures":{"1":{"name":"keyword.source.coq"},"3":{"name":"entity.name.type.coq"}},"match":"\\\\b(CoInductive|Inductive|Variant|Record|Structure|Class)\\\\s+(>\\\\s*)?(([_\xA0\\\\p{L}])(['0-9_\xA0\\\\p{L}])*)"},{"captures":{"1":{"name":"keyword.source.coq"},"2":{"name":"entity.name.function.ltac"}},"match":"\\\\b(Ltac)\\\\s+(([_\xA0\\\\p{L}])(['0-9_\xA0\\\\p{L}])*)"},{"captures":{"1":{"name":"keyword.source.coq"},"2":{"name":"keyword.source.coq"},"3":{"name":"entity.name.function.ltac"}},"match":"\\\\b(Ltac2)\\\\s+(mutable\\\\s+)?(rec\\\\s+)?(([_\xA0\\\\p{L}])(['0-9_\xA0\\\\p{L}])*)"},{"match":"\\\\b(Hint(\\\\s+Mode)?|Create\\\\s+HintDb|Constructors|Resolve|Rewrite|Ltac2??|Implicit(\\\\s+Types)?|Set|Unset|Remove\\\\s+Printing|Arguments|((Tactic|Reserved)\\\\s+)?Notation|Infix|Section|Module(\\\\s+Type)?|End|Check|Print(\\\\s+All)?|Eval|Compute|Search|Universe|Coercions|Generalizable(\\\\s+(All|Variable))?|Existing(\\\\s+(Class|Instance))?|Canonical|About|Locate|Collection|Typeclasses\\\\s+(Opaque|Transparent))\\\\b","name":"keyword.source.coq"},{"match":"\\\\b(Proof|Qed|Defined|Save|Abort(\\\\s+All)?|Undo(\\\\s+To)?|Restart|Focus|Unfocus|Unfocused|Show\\\\s+Proof|Show\\\\s+Existentials|Show|Unshelve)\\\\b","name":"keyword.source.coq"},{"match":"\\\\b(Quit|Drop|Time|Redirect|Timeout|Fail)\\\\b","name":"keyword.debug.coq"},{"match":"\\\\b(admit|Admitted)\\\\b","name":"invalid.illegal.admit.coq"},{"match":"[-*+:<=>{|}\xAC\u2192\u2194\u2227\u2228\u2260\u2264\u2265]","name":"keyword.operator.coq"},{"match":"\\\\b(forall|exists|Type|Set|Prop|nat|bool|option|list|unit|sum|prod|comparison|Empty_set)\\\\b|[\u2200\u2203]","name":"support.type.coq"},{"match":"\\\\b(try|repeat|rew|progress|fresh|solve|now|first|tryif|at|once|do|only)\\\\b","name":"keyword.control.ltac"},{"match":"\\\\b(into|with|eqn|by|move|as|using)\\\\b","name":"keyword.control.ltac"},{"match":"\\\\b(match|lazymatch|multimatch|match!|lazy_match!|multi_match!|fun|with|return|end|let|in|if|then|else|fix|for|where|and)\\\\b|\u03BB","name":"keyword.control.gallina"},{"match":"\\\\b(intros??|revert|induction|destruct|auto|eauto|tauto|eassumption|apply|eapply|assumption|constructor|econstructor|reflexivity|inversion|injection|assert|split|esplit|omega|fold|unfold|specialize|rewrite|erewrite|change|symmetry|refine|simpl|intuition|firstorder|generalize|idtac|exists??|eexists|elim|eelim|rename|subst|congruence|trivial|left|right|set|pose|discriminate|clear|clearbody|contradict|contradiction|exact|dependent|remember|case|easy|unshelve|pattern|transitivity|etransitivity|f_equal|exfalso|replace|abstract|cycle|swap|revgoals|shelve|unshelve)\\\\b","name":"support.function.builtin.ltac"},{"applyEndPatternLast":1,"begin":"\\\\(\\\\*(?!#)","end":"\\\\*\\\\)","name":"comment.block.coq","patterns":[{"include":"#block_comment"},{"include":"#block_double_quoted_string"}]},{"match":"\\\\b((0([Xx])\\\\h+)|([0-9]+(\\\\.[0-9]+)?))\\\\b","name":"constant.numeric.gallina"},{"match":"\\\\b(True|False|tt|false|true|Some|None|nil|cons|pair|inl|inr|[OS]|Eq|Lt|Gt|id|ex|all|unique)\\\\b","name":"constant.language.constructor.gallina"},{"match":"\\\\b_\\\\b","name":"constant.language.wildcard.coq"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coq"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.coq"}},"name":"string.quoted.double.coq"}],"repository":{"block_comment":{"applyEndPatternLast":1,"begin":"\\\\(\\\\*(?!#)","end":"\\\\*\\\\)","name":"comment.block.coq","patterns":[{"include":"#block_comment"},{"include":"#block_double_quoted_string"}]},"block_double_quoted_string":{"applyEndPatternLast":1,"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.coq"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.coq"}},"name":"string.quoted.double.coq"}},"scopeName":"source.coq"}`))];export{e as default}; diff --git a/docs/assets/cose-bilkent-S5V4N54A-B-gjerAi.js b/docs/assets/cose-bilkent-S5V4N54A-B-gjerAi.js new file mode 100644 index 0000000..ed0873d --- /dev/null +++ b/docs/assets/cose-bilkent-S5V4N54A-B-gjerAi.js @@ -0,0 +1 @@ +import{s as nt,t as V}from"./chunk-LvLJmgfZ.js";import{u as st}from"./src-Bp_72rVO.js";import{n as k,r as j}from"./src-faGJHwXX.js";import{t as z}from"./cytoscape.esm-CiNp3hmz.js";var Z=V(((C,P)=>{(function(m,L){typeof C=="object"&&typeof P=="object"?P.exports=L():typeof define=="function"&&define.amd?define([],L):typeof C=="object"?C.layoutBase=L():m.layoutBase=L()})(C,function(){return(function(m){var L={};function A(n){if(L[n])return L[n].exports;var i=L[n]={i:n,l:!1,exports:{}};return m[n].call(i.exports,i,i.exports,A),i.l=!0,i.exports}return A.m=m,A.c=L,A.i=function(n){return n},A.d=function(n,i,t){A.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:t})},A.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return A.d(i,"a",i),i},A.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},A.p="",A(A.s=26)})([(function(m,L,A){function n(){}n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,m.exports=n}),(function(m,L,A){var n=A(2),i=A(8),t=A(9);function e(h,o,N){n.call(this,N),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=N,this.bendpoints=[],this.source=h,this.target=o}for(var r in e.prototype=Object.create(n.prototype),n)e[r]=n[r];e.prototype.getSource=function(){return this.source},e.prototype.getTarget=function(){return this.target},e.prototype.isInterGraph=function(){return this.isInterGraph},e.prototype.getLength=function(){return this.length},e.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},e.prototype.getBendpoints=function(){return this.bendpoints},e.prototype.getLca=function(){return this.lca},e.prototype.getSourceInLca=function(){return this.sourceInLca},e.prototype.getTargetInLca=function(){return this.targetInLca},e.prototype.getOtherEnd=function(h){if(this.source===h)return this.target;if(this.target===h)return this.source;throw"Node is not incident with this edge"},e.prototype.getOtherEndInGraph=function(h,o){for(var N=this.getOtherEnd(h),s=o.getGraphManager().getRoot();;){if(N.getOwner()==o)return N;if(N.getOwner()==s)break;N=N.getOwner().getParent()}return null},e.prototype.updateLength=function(){var h=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),h),this.isOverlapingSourceAndTarget||(this.lengthX=h[0]-h[2],this.lengthY=h[1]-h[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},e.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},m.exports=e}),(function(m,L,A){function n(i){this.vGraphObject=i}m.exports=n}),(function(m,L,A){var n=A(2),i=A(10),t=A(13),e=A(0),r=A(16),h=A(4);function o(s,g,u,p){u==null&&p==null&&(p=g),n.call(this,p),s.graphManager!=null&&(s=s.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=s,u!=null&&g!=null?this.rect=new t(g.x,g.y,u.width,u.height):this.rect=new t}for(var N in o.prototype=Object.create(n.prototype),n)o[N]=n[N];o.prototype.getEdges=function(){return this.edges},o.prototype.getChild=function(){return this.child},o.prototype.getOwner=function(){return this.owner},o.prototype.getWidth=function(){return this.rect.width},o.prototype.setWidth=function(s){this.rect.width=s},o.prototype.getHeight=function(){return this.rect.height},o.prototype.setHeight=function(s){this.rect.height=s},o.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},o.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},o.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},o.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},o.prototype.getRect=function(){return this.rect},o.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},o.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},o.prototype.setRect=function(s,g){this.rect.x=s.x,this.rect.y=s.y,this.rect.width=g.width,this.rect.height=g.height},o.prototype.setCenter=function(s,g){this.rect.x=s-this.rect.width/2,this.rect.y=g-this.rect.height/2},o.prototype.setLocation=function(s,g){this.rect.x=s,this.rect.y=g},o.prototype.moveBy=function(s,g){this.rect.x+=s,this.rect.y+=g},o.prototype.getEdgeListToNode=function(s){var g=[],u=this;return u.edges.forEach(function(p){if(p.target==s){if(p.source!=u)throw"Incorrect edge source!";g.push(p)}}),g},o.prototype.getEdgesBetween=function(s){var g=[],u=this;return u.edges.forEach(function(p){if(!(p.source==u||p.target==u))throw"Incorrect edge source and/or target";(p.target==s||p.source==s)&&g.push(p)}),g},o.prototype.getNeighborsList=function(){var s=new Set,g=this;return g.edges.forEach(function(u){if(u.source==g)s.add(u.target);else{if(u.target!=g)throw"Incorrect incidency!";s.add(u.source)}}),s},o.prototype.withChildren=function(){var s=new Set,g,u;if(s.add(this),this.child!=null)for(var p=this.child.getNodes(),y=0;yg&&(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)),this.labelHeight>u&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-u)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-u),this.setHeight(this.labelHeight))}}},o.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},o.prototype.transform=function(s){var g=this.rect.x;g>e.WORLD_BOUNDARY?g=e.WORLD_BOUNDARY:g<-e.WORLD_BOUNDARY&&(g=-e.WORLD_BOUNDARY);var u=this.rect.y;u>e.WORLD_BOUNDARY?u=e.WORLD_BOUNDARY:u<-e.WORLD_BOUNDARY&&(u=-e.WORLD_BOUNDARY);var p=new h(g,u),y=s.inverseTransformPoint(p);this.setLocation(y.x,y.y)},o.prototype.getLeft=function(){return this.rect.x},o.prototype.getRight=function(){return this.rect.x+this.rect.width},o.prototype.getTop=function(){return this.rect.y},o.prototype.getBottom=function(){return this.rect.y+this.rect.height},o.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},m.exports=o}),(function(m,L,A){function n(i,t){i==null&&t==null?(this.x=0,this.y=0):(this.x=i,this.y=t)}n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(i){this.x=i},n.prototype.setY=function(i){this.y=i},n.prototype.getDifference=function(i){return new DimensionD(this.x-i.x,this.y-i.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(i){return this.x+=i.width,this.y+=i.height,this},m.exports=n}),(function(m,L,A){var n=A(2),i=A(10),t=A(0),e=A(6),r=A(3),h=A(1),o=A(13),N=A(12),s=A(11);function g(p,y,c){n.call(this,c),this.estimatedSize=i.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,y!=null&&y instanceof e?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}for(var u in g.prototype=Object.create(n.prototype),n)g[u]=n[u];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(p,y,c){if(y==null&&c==null){var f=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(f)>-1)throw"Node already in graph!";return f.owner=this,this.getNodes().push(f),f}else{var T=p;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(c)>-1))throw"Source or target not in graph!";if(!(y.owner==c.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner==c.owner?(T.source=y,T.target=c,T.isInterGraph=!1,this.getEdges().push(T),y.edges.push(T),c!=y&&c.edges.push(T),T):null}},g.prototype.remove=function(p){var y=p;if(p instanceof r){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var c=y.edges.slice(),f,T=c.length,E=0;E-1&&d>-1))throw"Source and/or target doesn't know this edge!";f.source.edges.splice(a,1),f.target!=f.source&&f.target.edges.splice(d,1);var O=f.source.owner.getEdges().indexOf(f);if(O==-1)throw"Not in owner's edge list!";f.source.owner.getEdges().splice(O,1)}},g.prototype.updateLeftTop=function(){for(var p=i.MAX_VALUE,y=i.MAX_VALUE,c,f,T,E=this.getNodes(),O=E.length,a=0;ac&&(p=c),y>f&&(y=f)}return p==i.MAX_VALUE?null:(T=E[0].getParent().paddingLeft==null?this.margin:E[0].getParent().paddingLeft,this.left=y-T,this.top=p-T,new N(this.left,this.top))},g.prototype.updateBounds=function(p){for(var y=i.MAX_VALUE,c=-i.MAX_VALUE,f=i.MAX_VALUE,T=-i.MAX_VALUE,E,O,a,d,l,v=this.nodes,_=v.length,D=0;D<_;D++){var I=v[D];p&&I.child!=null&&I.updateBounds(),E=I.getLeft(),O=I.getRight(),a=I.getTop(),d=I.getBottom(),y>E&&(y=E),ca&&(f=a),TE&&(y=E),ca&&(f=a),T=this.nodes.length){var d=0;c.forEach(function(l){l.owner==p&&d++}),d==this.nodes.length&&(this.isConnected=!0)}},m.exports=g}),(function(m,L,A){var n,i=A(1);function t(e){n=A(5),this.layout=e,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var e=this.layout.newGraph(),r=this.layout.newNode(null),h=this.add(e,r);return this.setRootGraph(h),this.rootGraph},t.prototype.add=function(e,r,h,o,N){if(h==null&&o==null&&N==null){if(e==null)throw"Graph is null!";if(r==null)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),e.parent!=null)throw"Already has a parent!";if(r.child!=null)throw"Already has a child!";return e.parent=r,r.child=e,e}else{N=h,o=r,h=e;var s=o.getOwner(),g=N.getOwner();if(!(s!=null&&s.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(s==g)return h.isInterGraph=!1,s.add(h,o,N);if(h.isInterGraph=!0,h.source=o,h.target=N,this.edges.indexOf(h)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(h),!(h.source!=null&&h.target!=null))throw"Edge source and/or target is null!";if(!(h.source.edges.indexOf(h)==-1&&h.target.edges.indexOf(h)==-1))throw"Edge already in source and/or target incidency list!";return h.source.edges.push(h),h.target.edges.push(h),h}},t.prototype.remove=function(e){if(e instanceof n){var r=e;if(r.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(r==this.rootGraph||r.parent!=null&&r.parent.graphManager==this))throw"Invalid parent node!";var h=[];h=h.concat(r.getEdges());for(var o,N=h.length,s=0;s=e.getRight()?r[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(r[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?r[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(r[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var N=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(N=1);var s=N*r[0],g=r[1]/N;r[0]s)return r[0]=h,r[1]=u,r[2]=N,r[3]=v,!1;if(oN)return r[0]=g,r[1]=o,r[2]=d,r[3]=s,!1;if(hN?(r[0]=y,r[1]=c,w=!0):(r[0]=p,r[1]=u,w=!0):G===M&&(h>N?(r[0]=g,r[1]=u,w=!0):(r[0]=f,r[1]=c,w=!0)),-x===M?N>h?(r[2]=l,r[3]=v,R=!0):(r[2]=d,r[3]=a,R=!0):x===M&&(N>h?(r[2]=O,r[3]=a,R=!0):(r[2]=_,r[3]=v,R=!0)),w&&R)return!1;if(h>N?o>s?(U=this.getCardinalDirection(G,M,4),b=this.getCardinalDirection(x,M,2)):(U=this.getCardinalDirection(-G,M,3),b=this.getCardinalDirection(-x,M,1)):o>s?(U=this.getCardinalDirection(-G,M,1),b=this.getCardinalDirection(-x,M,3)):(U=this.getCardinalDirection(G,M,2),b=this.getCardinalDirection(x,M,4)),!w)switch(U){case 1:S=u,F=h+-E/M,r[0]=F,r[1]=S;break;case 2:F=f,S=o+T*M,r[0]=F,r[1]=S;break;case 3:S=c,F=h+E/M,r[0]=F,r[1]=S;break;case 4:F=y,S=o+-T*M,r[0]=F,r[1]=S;break}if(!R)switch(b){case 1:X=a,Y=N+-I/M,r[2]=Y,r[3]=X;break;case 2:Y=_,X=s+D*M,r[2]=Y,r[3]=X;break;case 3:X=v,Y=N+I/M,r[2]=Y,r[3]=X;break;case 4:Y=l,X=s+-D*M,r[2]=Y,r[3]=X;break}}return!1},i.getCardinalDirection=function(t,e,r){return t>e?r:1+r%4},i.getIntersection=function(t,e,r,h){if(h==null)return this.getIntersection2(t,e,r);var o=t.x,N=t.y,s=e.x,g=e.y,u=r.x,p=r.y,y=h.x,c=h.y,f=void 0,T=void 0,E=void 0,O=void 0,a=void 0,d=void 0,l=void 0,v=void 0,_=void 0;return E=g-N,a=o-s,l=s*N-o*g,O=c-p,d=u-y,v=y*p-u*c,_=E*d-O*a,_===0?null:(f=(a*v-d*l)/_,T=(O*l-E*v)/_,new n(f,T))},i.angleOfVector=function(t,e,r,h){var o=void 0;return t===r?o=h0?1:i<0?-1:0},n.floor=function(i){return i<0?Math.ceil(i):Math.floor(i)},n.ceil=function(i){return i<0?Math.floor(i):Math.ceil(i)},m.exports=n}),(function(m,L,A){function n(){}n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,m.exports=n}),(function(m,L,A){var n=(function(){function h(o,N){for(var s=0;s0&&p;){for(E.push(a[0]);E.length>0&&p;){var d=E[0];E.splice(0,1),T.add(d);for(var l=d.getEdges(),f=0;f-1&&a.splice(I,1)}T=new Set,O=new Map}}return u},g.prototype.createDummyNodesForBendpoints=function(u){for(var p=[],y=u.source,c=this.graphManager.calcLowestCommonAncestor(u.source,u.target),f=0;f0){for(var c=this.edgeToDummyNodes.get(y),f=0;f=0&&p.splice(v,1),O.getNeighborsList().forEach(function(I){if(y.indexOf(I)<0){var w=c.get(I)-1;w==1&&d.push(I),c.set(I,w)}})}y=y.concat(d),(p.length==1||p.length==2)&&(f=!0,T=p[0])}return T},g.prototype.setGraphManager=function(u){this.graphManager=u},m.exports=g}),(function(m,L,A){function n(){}n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},m.exports=n}),(function(m,L,A){var n=A(4);function i(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(t){this.lworldExtX=t},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(t){this.lworldExtY=t},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},i.prototype.transformX=function(t){var e=0,r=this.lworldExtX;return r!=0&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/r),e},i.prototype.transformY=function(t){var e=0,r=this.lworldExtY;return r!=0&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/r),e},i.prototype.inverseTransformX=function(t){var e=0,r=this.ldeviceExtX;return r!=0&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/r),e},i.prototype.inverseTransformY=function(t){var e=0,r=this.ldeviceExtY;return r!=0&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/r),e},i.prototype.inverseTransformPoint=function(t){return new n(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},m.exports=i}),(function(m,L,A){function n(s){if(Array.isArray(s)){for(var g=0,u=Array(s.length);gt.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(s-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(s>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(s-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},o.prototype.calcSpringForces=function(){for(var s=this.getAllEdges(),g,u=0;u0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u,p,y,c,f=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),T=new Set,u=0;uE||T>E)&&(s.gravitationForceX=-this.gravityConstant*y,s.gravitationForceY=-this.gravityConstant*c)):(E=g.getEstimatedSize()*this.compoundGravityRangeFactor,(f>E||T>E)&&(s.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,s.gravitationForceY=-this.gravityConstant*c*this.compoundGravityConstant))},o.prototype.isConverged=function(){var s,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),s=this.totalDisplacement=f.length||E>=f[0].length)){for(var O=0;Or}}]),e})()}),(function(m,L,A){var n=(function(){function t(e,r){for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,t),this.sequence1=e,this.sequence2=r,this.match_score=h,this.mismatch_penalty=o,this.gap_penalty=N,this.iMax=e.length+1,this.jMax=r.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;r--){var h=this.listeners[r];h.event===t&&h.callback===e&&this.listeners.splice(r,1)}},i.emit=function(t,e){for(var r=0;r{(function(m,L){typeof C=="object"&&typeof P=="object"?P.exports=L(Z()):typeof define=="function"&&define.amd?define(["layout-base"],L):typeof C=="object"?C.coseBase=L(Z()):m.coseBase=L(m.layoutBase)})(C,function(m){return(function(L){var A={};function n(i){if(A[i])return A[i].exports;var t=A[i]={i,l:!1,exports:{}};return L[i].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=L,n.c=A,n.i=function(i){return i},n.d=function(i,t,e){n.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:e})},n.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(t,"a",t),t},n.o=function(i,t){return Object.prototype.hasOwnProperty.call(i,t)},n.p="",n(n.s=7)})([(function(L,A){L.exports=m}),(function(L,A,n){var i=n(0).FDLayoutConstants;function t(){}for(var e in i)t[e]=i[e];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,L.exports=t}),(function(L,A,n){var i=n(0).FDLayoutEdge;function t(r,h,o){i.call(this,r,h,o)}for(var e in t.prototype=Object.create(i.prototype),i)t[e]=i[e];L.exports=t}),(function(L,A,n){var i=n(0).LGraph;function t(r,h,o){i.call(this,r,h,o)}for(var e in t.prototype=Object.create(i.prototype),i)t[e]=i[e];L.exports=t}),(function(L,A,n){var i=n(0).LGraphManager;function t(r){i.call(this,r)}for(var e in t.prototype=Object.create(i.prototype),i)t[e]=i[e];L.exports=t}),(function(L,A,n){var i=n(0).FDLayoutNode,t=n(0).IMath;function e(h,o,N,s){i.call(this,h,o,N,s)}for(var r in e.prototype=Object.create(i.prototype),i)e[r]=i[r];e.prototype.move=function(){var h=this.graphManager.getLayout();this.displacementX=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),h.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},e.prototype.propogateDisplacementToChildren=function(h,o){for(var N=this.getChild().getNodes(),s,g=0;g0)this.positionNodesRadially(l);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(D){return a.has(D)});this.graphManager.setAllNodesToApplyGravitation(d),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},E.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%N.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var a=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(_){return a.has(_)});this.graphManager.setAllNodesToApplyGravitation(d),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=N.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=N.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var l=!this.isTreeGrowing&&!this.isGrowthFinished,v=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(l,v),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},E.prototype.getPositionsData=function(){for(var a=this.graphManager.getAllNodes(),d={},l=0;l1){var w;for(w=0;wv&&(v=Math.floor(I.y)),D=Math.floor(I.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new u(s.WORLD_CENTER_X-I.x/2,s.WORLD_CENTER_Y-I.y/2))},E.radialLayout=function(a,d,l){var v=Math.max(this.maxDiagonalInTree(a),o.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(d,null,0,359,0,v);var _=f.calculateBounds(a),D=new T;D.setDeviceOrgX(_.getMinX()),D.setDeviceOrgY(_.getMinY()),D.setWorldOrgX(l.x),D.setWorldOrgY(l.y);for(var I=0;I1;){var Y=S[0];S.splice(0,1);var X=x.indexOf(Y);X>=0&&x.splice(X,1),b--,M--}F=d==null?0:(x.indexOf(S[0])+1)%b;for(var W=Math.abs(v-l)/M,B=F;U!=M;B=++B%b){var H=x[B].getOtherEnd(a);if(H!=d){var q=(l+U*W)%360,ot=(q+W)%360;E.branchRadialLayout(H,a,q,ot,_+D,D),U++}}},E.maxDiagonalInTree=function(a){for(var d=y.MIN_VALUE,l=0;ld&&(d=v)}return d},E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},E.prototype.groupZeroDegreeMembers=function(){var a=this,d={};this.memberGroups={},this.idToDummyNode={};for(var l=[],v=this.graphManager.getAllNodes(),_=0;_1){var G="DummyCompound_"+R;a.memberGroups[G]=d[R];var x=d[R][0].getParent(),M=new r(a.graphManager);M.id=G,M.paddingLeft=x.paddingLeft||0,M.paddingRight=x.paddingRight||0,M.paddingBottom=x.paddingBottom||0,M.paddingTop=x.paddingTop||0,a.idToDummyNode[G]=M;var U=a.getGraphManager().add(a.newGraph(),M),b=x.getChild();b.add(M);for(var F=0;F=0;a--){var d=this.compoundOrder[a],l=d.id,v=d.paddingLeft,_=d.paddingTop;this.adjustLocations(this.tiledMemberPack[l],d.rect.x,d.rect.y,v,_)}},E.prototype.repopulateZeroDegreeMembers=function(){var a=this,d=this.tiledZeroDegreePack;Object.keys(d).forEach(function(l){var v=a.idToDummyNode[l],_=v.paddingLeft,D=v.paddingTop;a.adjustLocations(d[l],v.rect.x,v.rect.y,_,D)})},E.prototype.getToBeTiled=function(a){var d=a.id;if(this.toBeTiled[d]!=null)return this.toBeTiled[d];var l=a.getChild();if(l==null)return this.toBeTiled[d]=!1,!1;for(var v=l.getNodes(),_=0;_0)return this.toBeTiled[d]=!1,!1;if(D.getChild()==null){this.toBeTiled[D.id]=!1;continue}if(!this.getToBeTiled(D))return this.toBeTiled[d]=!1,!1}return this.toBeTiled[d]=!0,!0},E.prototype.getNodeDegree=function(a){a.id;for(var d=a.getEdges(),l=0,v=0;vR&&(R=x.rect.height)}l+=R+a.verticalPadding}},E.prototype.tileCompoundMembers=function(a,d){var l=this;this.tiledMemberPack=[],Object.keys(a).forEach(function(v){var _=d[v];l.tiledMemberPack[v]=l.tileNodes(a[v],_.paddingLeft+_.paddingRight),_.rect.width=l.tiledMemberPack[v].width,_.rect.height=l.tiledMemberPack[v].height})},E.prototype.tileNodes=function(a,d){var l={rows:[],rowWidth:[],rowHeight:[],width:0,height:d,verticalPadding:o.TILING_PADDING_VERTICAL,horizontalPadding:o.TILING_PADDING_HORIZONTAL};a.sort(function(D,I){return D.rect.width*D.rect.height>I.rect.width*I.rect.height?-1:D.rect.width*D.rect.height0&&(D+=a.horizontalPadding),a.rowWidth[l]=D,a.width0&&(I+=a.verticalPadding);var w=0;I>a.rowHeight[l]&&(w=a.rowHeight[l],a.rowHeight[l]=I,w=a.rowHeight[l]-w),a.height+=w,a.rows[l].push(d)},E.prototype.getShortestRowIndex=function(a){for(var d=-1,l=Number.MAX_VALUE,v=0;vl&&(d=v,l=a.rowWidth[v]);return d},E.prototype.canAddHorizontal=function(a,d,l){var v=this.getShortestRowIndex(a);if(v<0)return!0;var _=a.rowWidth[v];if(_+a.horizontalPadding+d<=a.width)return!0;var D=0;a.rowHeight[v]0&&(D=l+a.verticalPadding-a.rowHeight[v]);var I=a.width-_>=d+a.horizontalPadding?(a.height+D)/(_+d+a.horizontalPadding):(a.height+D)/a.width;D=l+a.verticalPadding;var w=a.widthD&&d!=l){v.splice(-1,1),a.rows[l].push(_),a.rowWidth[d]=a.rowWidth[d]-D,a.rowWidth[l]=a.rowWidth[l]+D,a.width=a.rowWidth[instance.getLongestRowIndex(a)];for(var I=Number.MIN_VALUE,w=0;wI&&(I=v[w].height);d>0&&(I+=a.verticalPadding);var R=a.rowHeight[d]+a.rowHeight[l];a.rowHeight[d]=I,a.rowHeight[l]<_.height+a.verticalPadding&&(a.rowHeight[l]=_.height+a.verticalPadding);var G=a.rowHeight[d]+a.rowHeight[l];a.height+=G-R,this.shiftToLastRow(a)}},E.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},E.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},E.prototype.reduceTrees=function(){for(var a=[],d=!0,l;d;){var v=this.graphManager.getAllNodes(),_=[];d=!1;for(var D=0;D0)for(var G=_;G<=D;G++)R[0]+=this.grid[G][I-1].length+this.grid[G][I].length-1;if(D0)for(var G=I;G<=w;G++)R[3]+=this.grid[_-1][G].length+this.grid[_][G].length-1;for(var x=y.MAX_VALUE,M,U,b=0;b{(function(m,L){typeof C=="object"&&typeof P=="object"?P.exports=L(Q()):typeof define=="function"&&define.amd?define(["cose-base"],L):typeof C=="object"?C.cytoscapeCoseBilkent=L(Q()):m.cytoscapeCoseBilkent=L(m.coseBase)})(C,function(m){return(function(L){var A={};function n(i){if(A[i])return A[i].exports;var t=A[i]={i,l:!1,exports:{}};return L[i].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=L,n.c=A,n.i=function(i){return i},n.d=function(i,t,e){n.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:e})},n.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(t,"a",t),t},n.o=function(i,t){return Object.prototype.hasOwnProperty.call(i,t)},n.p="",n(n.s=1)})([(function(L,A){L.exports=m}),(function(L,A,n){var i=n(0).layoutBase.LayoutConstants,t=n(0).layoutBase.FDLayoutConstants,e=n(0).CoSEConstants,r=n(0).CoSELayout,h=n(0).CoSENode,o=n(0).layoutBase.PointD,N=n(0).layoutBase.DimensionD,s={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function g(c,f){var T={};for(var E in c)T[E]=c[E];for(var E in f)T[E]=f[E];return T}function u(c){this.options=g(s,c),p(this.options)}var p=function(c){c.nodeRepulsion!=null&&(e.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=c.nodeRepulsion),c.idealEdgeLength!=null&&(e.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=c.idealEdgeLength),c.edgeElasticity!=null&&(e.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=c.edgeElasticity),c.nestingFactor!=null&&(e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.nestingFactor),c.gravity!=null&&(e.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=c.gravity),c.numIter!=null&&(e.MAX_ITERATIONS=t.MAX_ITERATIONS=c.numIter),c.gravityRange!=null&&(e.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=c.gravityRange),c.gravityCompound!=null&&(e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.gravityCompound),c.gravityRangeCompound!=null&&(e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.gravityRangeCompound),c.initialEnergyOnIncremental!=null&&(e.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.initialEnergyOnIncremental),c.quality=="draft"?i.QUALITY=0:c.quality=="proof"?i.QUALITY=2:i.QUALITY=1,e.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=c.nodeDimensionsIncludeLabels,e.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!c.randomize,e.ANIMATE=t.ANIMATE=i.ANIMATE=c.animate,e.TILE=c.tile,e.TILING_PADDING_VERTICAL=typeof c.tilingPaddingVertical=="function"?c.tilingPaddingVertical.call():c.tilingPaddingVertical,e.TILING_PADDING_HORIZONTAL=typeof c.tilingPaddingHorizontal=="function"?c.tilingPaddingHorizontal.call():c.tilingPaddingHorizontal};u.prototype.run=function(){var c,f,T=this.options;this.idToLNode={};var E=this.layout=new r,O=this;O.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var a=E.newGraphManager();this.gm=a;var d=this.options.eles.nodes(),l=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(d),E);for(var v=0;v0){var w=T.getGraphManager().add(T.newGraph(),l);this.processChildrenList(w,d,T)}}},u.prototype.stop=function(){return this.stopped=!0,this};var y=function(c){c("layout","cose-bilkent",u)};typeof cytoscape<"u"&&y(cytoscape),L.exports=y})])})}))(),1);z.use(at.default);function $(C,P){C.forEach(m=>{let L={id:m.id,labelText:m.label,height:m.height,width:m.width,padding:m.padding??0};Object.keys(m).forEach(A=>{["id","label","height","width","padding","x","y"].includes(A)||(L[A]=m[A])}),P.add({group:"nodes",data:L,position:{x:m.x??0,y:m.y??0}})})}k($,"addNodes");function K(C,P){C.forEach(m=>{let L={id:m.id,source:m.start,target:m.end};Object.keys(m).forEach(A=>{["id","start","end"].includes(A)||(L[A]=m[A])}),P.add({group:"edges",data:L})})}k(K,"addEdges");function J(C){return new Promise(P=>{let m=st("body").append("div").attr("id","cy").attr("style","display:none"),L=z({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});m.remove(),$(C.nodes,L),K(C.edges,L),L.nodes().forEach(function(A){A.layoutDimensions=()=>{let n=A.data();return{w:n.width,h:n.height}}}),L.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),L.ready(A=>{j.info("Cytoscape ready",A),P(L)})})}k(J,"createCytoscapeInstance");function tt(C){return C.nodes().map(P=>{let m=P.data(),L=P.position(),A={id:m.id,x:L.x,y:L.y};return Object.keys(m).forEach(n=>{n!=="id"&&(A[n]=m[n])}),A})}k(tt,"extractPositionedNodes");function et(C){return C.edges().map(P=>{let m=P.data(),L=P._private.rscratch,A={id:m.id,source:m.source,target:m.target,startX:L.startX,startY:L.startY,midX:L.midX,midY:L.midY,endX:L.endX,endY:L.endY};return Object.keys(m).forEach(n=>{["id","source","target"].includes(n)||(A[n]=m[n])}),A})}k(et,"extractPositionedEdges");async function it(C,P){j.debug("Starting cose-bilkent layout algorithm");try{rt(C);let m=await J(C),L=tt(m),A=et(m);return j.debug(`Layout completed: ${L.length} nodes, ${A.length} edges`),{nodes:L,edges:A}}catch(m){throw j.error("Error in cose-bilkent layout algorithm:",m),m}}k(it,"executeCoseBilkentLayout");function rt(C){if(!C)throw Error("Layout data is required");if(!C.config)throw Error("Configuration is required in layout data");if(!C.rootNode)throw Error("Root node is required");if(!C.nodes||!Array.isArray(C.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(C.edges))throw Error("Edges array is required in layout data");return!0}k(rt,"validateLayoutData");var ht=k(async(C,P,{insertCluster:m,insertEdge:L,insertEdgeLabel:A,insertMarkers:n,insertNode:i,log:t,positionEdgeLabel:e},{algorithm:r})=>{let h={},o={},N=P.select("g");n(N,C.markers,C.type,C.diagramId);let s=N.insert("g").attr("class","subgraphs"),g=N.insert("g").attr("class","edgePaths"),u=N.insert("g").attr("class","edgeLabels"),p=N.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(C.nodes.map(async c=>{if(c.isGroup){let f={...c};o[c.id]=f,h[c.id]=f,await m(s,c)}else{let f={...c};h[c.id]=f;let T=await i(p,c,{config:C.config,dir:C.direction||"TB"}),E=T.node().getBBox();f.width=E.width,f.height=E.height,f.domId=T,t.debug(`Node ${c.id} dimensions: ${E.width}x${E.height}`)}})),t.debug("Running cose-bilkent layout algorithm");let y=await it({...C,nodes:C.nodes.map(c=>{let f=h[c.id];return{...c,width:f.width,height:f.height}})},C.config);t.debug("Positioning nodes based on layout results"),y.nodes.forEach(c=>{let f=h[c.id];f!=null&&f.domId&&(f.domId.attr("transform",`translate(${c.x}, ${c.y})`),f.x=c.x,f.y=c.y,t.debug(`Positioned node ${f.id} at center (${c.x}, ${c.y})`))}),y.edges.forEach(c=>{let f=C.edges.find(T=>T.id===c.id);f&&(f.points=[{x:c.startX,y:c.startY},{x:c.midX,y:c.midY},{x:c.endX,y:c.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(C.edges.map(async c=>{await A(u,c);let f=h[c.start??""],T=h[c.end??""];if(f&&T){let E=y.edges.find(O=>O.id===c.id);if(E){t.debug("APA01 positionedEdge",E);let O={...c};e(O,L(g,O,o,C.type,f,T,C.diagramId))}else{let O={...c,points:[{x:f.x||0,y:f.y||0},{x:T.x||0,y:T.y||0}]};e(O,L(g,O,o,C.type,f,T,C.diagramId))}}})),t.debug("Cose-bilkent rendering completed")},"render");export{ht as render}; diff --git a/docs/assets/cpp-BRiTgQM2.js b/docs/assets/cpp-BRiTgQM2.js new file mode 100644 index 0000000..edbf503 --- /dev/null +++ b/docs/assets/cpp-BRiTgQM2.js @@ -0,0 +1 @@ +import{t}from"./cpp-ButBmjz6.js";export{t as default}; diff --git a/docs/assets/cpp-ButBmjz6.js b/docs/assets/cpp-ButBmjz6.js new file mode 100644 index 0000000..cf81cdd --- /dev/null +++ b/docs/assets/cpp-ButBmjz6.js @@ -0,0 +1 @@ +import{t as e}from"./sql-HYiT1H9d.js";import{t as n}from"./regexp-QwV8aHth.js";import{t}from"./glsl-DZDdueIl.js";var c=Object.freeze(JSON.parse(`{"displayName":"C++","name":"cpp-macro","patterns":[{"include":"#ever_present_context"},{"include":"#constructor_root"},{"include":"#destructor_root"},{"include":"#function_definition"},{"include":"#operator_overload"},{"include":"#using_namespace"},{"include":"source.cpp#type_alias"},{"include":"source.cpp#using_name"},{"include":"source.cpp#namespace_alias"},{"include":"#namespace_block"},{"include":"#extern_block"},{"include":"#typedef_class"},{"include":"#typedef_struct"},{"include":"#typedef_union"},{"include":"source.cpp#misc_keywords"},{"include":"source.cpp#standard_declares"},{"include":"#class_block"},{"include":"#struct_block"},{"include":"#union_block"},{"include":"#enum_block"},{"include":"source.cpp#template_isolated_definition"},{"include":"#template_definition"},{"include":"source.cpp#template_explicit_instantiation"},{"include":"source.cpp#access_control_keywords"},{"include":"#block"},{"include":"#static_assert"},{"include":"#assembly"},{"include":"#function_pointer"},{"include":"#evaluation_context"}],"repository":{"alignas_attribute":{"begin":"alignas\\\\(","beginCaptures":{"0":{"name":"punctuation.section.attribute.begin.cpp"}},"end":"\\\\)|(?=(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.italic.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.bold.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.inline.raw.string.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.cpp"}]},"3":{"patterns":[{"match":"(?]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.italic.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.bold.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.inline.raw.string.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.cpp"}]},"3":{"patterns":[{"match":"(?]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.italic.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.bold.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.inline.raw.string.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.cpp"}]},"3":{"patterns":[{"match":"(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.call.initializer.cpp"},"2":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"3":{},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"name":"punctuation.section.arguments.begin.bracket.round.function.call.initializer.cpp"}},"contentName":"meta.parameter.initialization","end":"\\\\)|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?>(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.call.initializer.cpp"},"2":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"3":{},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"name":"punctuation.section.arguments.begin.bracket.round.function.call.initializer.cpp"}},"contentName":"meta.parameter.initialization","end":"\\\\)|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\{)","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?|(?=(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?>(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::))?\\\\s+{0,1}((?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\b(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"source.cpp#scope_resolution_function_call_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.call.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.function.call.cpp"},"6":{"patterns":[{"include":"source.cpp#inline_comment"}]},"7":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"8":{"name":"comment.block.cpp"},"9":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"10":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"11":{},"12":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"13":{"name":"comment.block.cpp"},"14":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"15":{"name":"punctuation.section.arguments.begin.bracket.round.function.call.cpp"}},"end":"\\\\)|(?=(?|\\\\*/))\\\\s*+(?:((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:__(?:cdec|clrcal|stdcal|fastcal|thiscal|vectorcal)l)?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\b(?|(?=(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|(?=(?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\s*+((?:(?:(?:\\\\[\\\\[.*?]]|__attribute(?:__)?\\\\s*\\\\(\\\\s*\\\\(.*?\\\\)\\\\s*\\\\))|__declspec\\\\(.*?\\\\))|alignas\\\\(.*?\\\\))(?!\\\\)))?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:(?:unsigned|signed|short|long)|(?:struct|class|union|enum))((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*(?:((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\()(\\\\*)\\\\s+{0,1}((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?)\\\\s+{0,1}(?:(\\\\[)(\\\\w*)(])\\\\s+{0,1})*(\\\\))\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?|(?=(?{])(?!\\\\()|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\()(\\\\*)\\\\s+{0,1}((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?)\\\\s+{0,1}(?:(\\\\[)(\\\\w*)(])\\\\s+{0,1})*(\\\\))\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?|(?=(?{])(?!\\\\()|(?=(?|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))"}]},"lambdas":{"begin":"(?:(?<=\\\\S|^)(?\\\\[\\\\w])|(?<=(?:\\\\W|^)return))\\\\s+{0,1}(\\\\[(?!\\\\[| *+\\"| *+\\\\d))((?:[^]\\\\[]|((??)++]))*+)(](?!((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)[];=\\\\[]))","beginCaptures":{"1":{"name":"punctuation.definition.capture.begin.lambda.cpp"},"2":{"name":"meta.lambda.capture.cpp","patterns":[{"include":"source.cpp#the_this_keyword"},{"captures":{"1":{"name":"variable.parameter.capture.cpp"},"2":{"patterns":[{"include":"source.cpp#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"punctuation.separator.delimiter.comma.cpp"},"7":{"name":"keyword.operator.assignment.cpp"}},"match":"((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:(?=]|\\\\z|$)|(,))|(=))"},{"include":"#evaluation_context"}]},"3":{},"4":{"name":"punctuation.definition.capture.end.lambda.cpp"},"5":{"patterns":[{"include":"source.cpp#inline_comment"}]},"6":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"7":{"name":"comment.block.cpp"},"8":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"end":"(?<=[;}])|(?=(?","beginCaptures":{"0":{"name":"punctuation.definition.lambda.return-type.cpp"}},"end":"(?=\\\\{)|(?=(?\\\\*?))((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\s+{0,1}(?:\\\\.\\\\*?|->\\\\*?)\\\\s+{0,1})*)\\\\s+{0,1}(~?(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"source.cpp#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"variable.language.this.cpp"},"6":{"name":"variable.other.object.access.cpp"},"7":{"name":"punctuation.separator.dot-access.cpp"},"8":{"name":"punctuation.separator.pointer-access.cpp"},"9":{"patterns":[{"captures":{"1":{"patterns":[{"include":"source.cpp#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"variable.language.this.cpp"},"6":{"name":"variable.other.object.property.cpp"},"7":{"name":"punctuation.separator.dot-access.cpp"},"8":{"name":"punctuation.separator.pointer-access.cpp"}},"match":"(?<=\\\\.\\\\*?|->\\\\*??)\\\\s+{0,1}(?:((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))"},{"captures":{"1":{"patterns":[{"include":"source.cpp#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"variable.language.this.cpp"},"6":{"name":"variable.other.object.access.cpp"},"7":{"name":"punctuation.separator.dot-access.cpp"},"8":{"name":"punctuation.separator.pointer-access.cpp"}},"match":"(?:((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))"},{"include":"source.cpp#member_access"},{"include":"#method_access"}]},"10":{"name":"entity.name.function.member.cpp"},"11":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.cpp"}},"end":"\\\\)|(?=(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)\\\\s+{0,1}((?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?((?:__(?:cdec|clrcal|stdcal|fastcal|thiscal|vectorcal)l)?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(operator)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(?:(?:(delete\\\\[]|delete|new\\\\[]|<=>|<<=|new|>>=|->\\\\*|/=|%=|&=|>=|\\\\|=|\\\\+\\\\+|--|\\\\(\\\\)|\\\\[]|->|\\\\+\\\\+|<<|>>|--|<=|\\\\^=|==|!=|&&|\\\\|\\\\||\\\\+=|-=|\\\\*=|[!%\\\\&*-\\\\-/<=>^|~])|((?|(?=(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.cpp"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.cpp"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.cpp"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.cpp"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.cpp"},{"include":"source.cpp#assignment_operator"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.cpp"},{"include":"#ternary_operator"}]},"parameter":{"begin":"((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?=\\\\w)","beginCaptures":{"1":{"patterns":[{"include":"source.cpp#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"end":"(?:(?=\\\\))|(,))|(?=(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|\\\\?\\\\?>)|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?=(?|(?=(?|(?=(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\()(\\\\*)\\\\s+{0,1}((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?)\\\\s+{0,1}(?:(\\\\[)(\\\\w*)(])\\\\s+{0,1})*(\\\\))\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?|(?=(?{])(?!\\\\()|(?=(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[]))|(?=(?|\\\\?\\\\?>|(?=(?|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)|(?=(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)?((?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.class.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.class.cpp"}},"name":"meta.head.class.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#inheritance_context"},{"include":"#template_call_range"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.class.cpp"}},"name":"meta.body.class.cpp","patterns":[{"include":"#function_pointer"},{"include":"#static_assert"},{"include":"#constructor_inline"},{"include":"#destructor_inline"},{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.class.cpp","patterns":[{"include":"$self"}]}]},"class_declare":{"captures":{"1":{"name":"storage.type.class.declare.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"4":{"name":"entity.name.type.class.cpp"},"5":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"8":{"patterns":[{"include":"#inline_comment"}]},"9":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"12":{"name":"variable.other.object.declare.cpp"},"13":{"patterns":[{"include":"#inline_comment"}]},"14":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]}},"match":"((?]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.italic.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.bold.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.inline.raw.string.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.cpp"}]},"3":{"patterns":[{"match":"(?]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.italic.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.bold.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.inline.raw.string.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.cpp"}]},"3":{"patterns":[{"match":"(?]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.italic.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.bold.doxygen.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"name":"markup.inline.raw.string.cpp"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.cpp"},{"captures":{"1":{"name":"storage.type.class.doxygen.cpp"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.cpp"}]},"3":{"patterns":[{"match":"(?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.function.definition.special.constructor.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.function.definition.special.constructor.cpp"}},"name":"meta.head.function.definition.special.constructor.cpp","patterns":[{"include":"#ever_present_context"},{"captures":{"1":{"name":"keyword.operator.assignment.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"keyword.other.default.function.cpp keyword.other.default.constructor.cpp"},"7":{"name":"keyword.other.delete.function.cpp keyword.other.delete.constructor.cpp"}},"match":"(=)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(default)|(delete))"},{"include":"#functional_specifiers_pre_parameters"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.initializers.cpp"}},"end":"(?=\\\\{)","endCaptures":{},"patterns":[{"begin":"((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.call.initializer.cpp"},"2":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"3":{},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"name":"punctuation.section.arguments.begin.bracket.round.function.call.initializer.cpp"}},"contentName":"meta.parameter.initialization","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.call.initializer.cpp"}},"patterns":[{"include":"#evaluation_context"}]},{"begin":"((?|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.function.definition.special.constructor.cpp"}},"name":"meta.body.function.definition.special.constructor.cpp","patterns":[{"include":"#function_body_context"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.function.definition.special.constructor.cpp","patterns":[{"include":"$self"}]}]},"constructor_root":{"begin":"\\\\s*+((?:__(?:cdec|clrcal|stdcal|fastcal|thiscal|vectorcal)l)?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?>(?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.function.definition.special.constructor.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.function.definition.special.constructor.cpp"}},"name":"meta.head.function.definition.special.constructor.cpp","patterns":[{"include":"#ever_present_context"},{"captures":{"1":{"name":"keyword.operator.assignment.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"keyword.other.default.function.cpp keyword.other.default.constructor.cpp"},"7":{"name":"keyword.other.delete.function.cpp keyword.other.delete.constructor.cpp"}},"match":"(=)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(default)|(delete))"},{"include":"#functional_specifiers_pre_parameters"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.initializers.cpp"}},"end":"(?=\\\\{)","endCaptures":{},"patterns":[{"begin":"((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.call.initializer.cpp"},"2":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"3":{},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"name":"punctuation.section.arguments.begin.bracket.round.function.call.initializer.cpp"}},"contentName":"meta.parameter.initialization","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.call.initializer.cpp"}},"patterns":[{"include":"#evaluation_context"}]},{"begin":"((?|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.function.definition.special.constructor.cpp"}},"name":"meta.body.function.definition.special.constructor.cpp","patterns":[{"include":"#function_body_context"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.function.definition.special.constructor.cpp","patterns":[{"include":"$self"}]}]},"control_flow_keywords":{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"3":{"name":"keyword.control.$3.cpp"}},"match":"(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\{)","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"2":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"3":{"patterns":[{"include":"#inline_comment"}]},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"patterns":[{"include":"#inline_comment"}]},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?]*(>?)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//)))|((\\")[^\\"]*(\\"?)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//))))|((((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*(?:\\\\.(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)*(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//|;))))|(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//|;)))\\\\s+{0,1}(;?)","name":"meta.preprocessor.import.cpp"},"d9bc4796b0b_preprocessor_number_literal":{"captures":{"0":{"patterns":[{"begin":"(?=.)","beginCaptures":{},"end":"$","endCaptures":{},"patterns":[{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.cpp"},"2":{"name":"constant.numeric.hexadecimal.cpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.cpp"}]},"3":{"name":"punctuation.separator.constant.numeric.cpp"},"4":{"name":"constant.numeric.hexadecimal.cpp"},"5":{"name":"constant.numeric.hexadecimal.cpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.cpp"}]},"6":{"name":"punctuation.separator.constant.numeric.cpp"},"7":{"name":"keyword.other.unit.exponent.hexadecimal.cpp"},"8":{"name":"keyword.operator.plus.exponent.hexadecimal.cpp"},"9":{"name":"keyword.operator.minus.exponent.hexadecimal.cpp"},"10":{"name":"constant.numeric.exponent.hexadecimal.cpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.cpp"}]},"11":{"name":"keyword.other.suffix.literal.built-in.floating-point.cpp keyword.other.unit.suffix.floating-point.cpp"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?(?:(?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.function.definition.special.member.destructor.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.function.definition.special.member.destructor.cpp"}},"name":"meta.head.function.definition.special.member.destructor.cpp","patterns":[{"include":"#ever_present_context"},{"captures":{"1":{"name":"keyword.operator.assignment.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"keyword.other.default.function.cpp keyword.other.default.constructor.cpp keyword.other.default.destructor.cpp"},"7":{"name":"keyword.other.delete.function.cpp keyword.other.delete.constructor.cpp keyword.other.delete.destructor.cpp"}},"match":"(=)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(default)|(delete))"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.bracket.round.special.member.destructor.cpp"}},"contentName":"meta.function.definition.parameters.special.member.destructor","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.special.member.destructor.cpp"}},"patterns":[]},{"include":"#qualifiers_and_specifiers_post_parameters"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.function.definition.special.member.destructor.cpp"}},"name":"meta.body.function.definition.special.member.destructor.cpp","patterns":[{"include":"#function_body_context"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.function.definition.special.member.destructor.cpp","patterns":[{"include":"$self"}]}]},"destructor_root":{"begin":"((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:__(?:cdec|clrcal|stdcal|fastcal|thiscal|vectorcal)l)?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?>(?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.function.definition.special.member.destructor.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.function.definition.special.member.destructor.cpp"}},"name":"meta.head.function.definition.special.member.destructor.cpp","patterns":[{"include":"#ever_present_context"},{"captures":{"1":{"name":"keyword.operator.assignment.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"keyword.other.default.function.cpp keyword.other.default.constructor.cpp keyword.other.default.destructor.cpp"},"7":{"name":"keyword.other.delete.function.cpp keyword.other.delete.constructor.cpp keyword.other.delete.destructor.cpp"}},"match":"(=)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(default)|(delete))"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.bracket.round.special.member.destructor.cpp"}},"contentName":"meta.function.definition.parameters.special.member.destructor","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.special.member.destructor.cpp"}},"patterns":[]},{"include":"#qualifiers_and_specifiers_post_parameters"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.function.definition.special.member.destructor.cpp"}},"name":"meta.body.function.definition.special.member.destructor.cpp","patterns":[{"include":"#function_body_context"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.function.definition.special.member.destructor.cpp","patterns":[{"include":"$self"}]}]},"diagnostic":{"begin":"^(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(#)\\\\s+{0,1}(error|warning))\\\\b\\\\s+{0,1}","beginCaptures":{"1":{"name":"keyword.control.directive.diagnostic.$7.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"punctuation.definition.directive.cpp"},"7":{}},"end":"(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::))?\\\\s+{0,1}((?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.enum.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.enum.cpp"}},"name":"meta.head.enum.cpp","patterns":[{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.enum.cpp"}},"name":"meta.body.enum.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#enumerator_list"},{"include":"#comments"},{"include":"#comma"},{"include":"#semicolon"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.enum.cpp","patterns":[{"include":"$self"}]}]},"enum_declare":{"captures":{"1":{"name":"storage.type.enum.declare.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"4":{"name":"entity.name.type.enum.cpp"},"5":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"8":{"patterns":[{"include":"#inline_comment"}]},"9":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"12":{"name":"variable.other.object.declare.cpp"},"13":{"patterns":[{"include":"#inline_comment"}]},"14":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]}},"match":"((?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.extern.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.extern.cpp"}},"name":"meta.head.extern.cpp","patterns":[{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.extern.cpp"}},"name":"meta.body.extern.cpp","patterns":[{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.extern.cpp","patterns":[{"include":"$self"}]},{"include":"$self"}]},"function_body_context":{"patterns":[{"include":"#ever_present_context"},{"include":"#using_namespace"},{"include":"#type_alias"},{"include":"#using_name"},{"include":"#namespace_alias"},{"include":"#typedef_class"},{"include":"#typedef_struct"},{"include":"#typedef_union"},{"include":"#misc_keywords"},{"include":"#standard_declares"},{"include":"#class_block"},{"include":"#struct_block"},{"include":"#union_block"},{"include":"#enum_block"},{"include":"#access_control_keywords"},{"include":"#block"},{"include":"#static_assert"},{"include":"#assembly"},{"include":"#function_pointer"},{"include":"#switch_statement"},{"include":"#goto_statement"},{"include":"#evaluation_context"},{"include":"#label"}]},"function_call":{"begin":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\b(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#scope_resolution_function_call_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.call.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.function.call.cpp"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"8":{"name":"comment.block.cpp"},"9":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"10":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"11":{},"12":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"13":{"name":"comment.block.cpp"},"14":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"15":{"name":"punctuation.section.arguments.begin.bracket.round.function.call.cpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.call.cpp"}},"patterns":[{"include":"#evaluation_context"}]},"function_definition":{"begin":"(?:(?:^|\\\\G|(?<=[;}]))|(?<=>|\\\\*/))\\\\s*+(?:((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:__(?:cdec|clrcal|stdcal|fastcal|thiscal|vectorcal)l)?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\b(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"14":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"15":{"patterns":[{"include":"#inline_comment"}]},"16":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"17":{"name":"comment.block.cpp"},"18":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"19":{"patterns":[{"include":"#inline_comment"}]},"20":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"21":{"name":"comment.block.cpp"},"22":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"23":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.function.definition.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.function.definition.cpp"}},"name":"meta.head.function.definition.cpp","patterns":[{"include":"#ever_present_context"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.bracket.round.cpp"}},"contentName":"meta.function.definition.parameters","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.cpp"}},"patterns":[{"include":"#ever_present_context"},{"include":"#parameter_or_maybe_value"},{"include":"#comma"},{"include":"#evaluation_context"}]},{"captures":{"1":{"name":"punctuation.definition.function.return-type.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"7":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"8":{"patterns":[{"include":"#inline_comment"}]},"9":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"10":{"name":"comment.block.cpp"},"11":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"12":{"patterns":[{"include":"#inline_comment"}]},"13":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"14":{"name":"comment.block.cpp"},"15":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"16":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\s*+((?:(?:(?:\\\\[\\\\[.*?]]|__attribute(?:__)?\\\\s*\\\\(\\\\s*\\\\(.*?\\\\)\\\\s*\\\\))|__declspec\\\\(.*?\\\\))|alignas\\\\(.*?\\\\))(?!\\\\)))?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:(?:unsigned|signed|short|long)|(?:struct|class|union|enum))((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*(?:((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.function.definition.cpp"}},"name":"meta.body.function.definition.cpp","patterns":[{"include":"#function_body_context"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.function.definition.cpp","patterns":[{"include":"$self"}]}]},"function_parameter_context":{"patterns":[{"include":"#ever_present_context"},{"include":"#parameter"},{"include":"#comma"}]},"function_pointer":{"begin":"(\\\\s*+((?:(?:(?:\\\\[\\\\[.*?]]|__attribute(?:__)?\\\\s*\\\\(\\\\s*\\\\(.*?\\\\)\\\\s*\\\\))|__declspec\\\\(.*?\\\\))|alignas\\\\(.*?\\\\))(?!\\\\)))?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:(?:unsigned|signed|short|long)|(?:struct|class|union|enum))((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*(?:((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\()(\\\\*)\\\\s+{0,1}((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?)\\\\s+{0,1}(?:(\\\\[)(\\\\w*)(])\\\\s+{0,1})*(\\\\))\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"2":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"3":{"patterns":[{"include":"#inline_comment"}]},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"patterns":[{"include":"#inline_comment"}]},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?{])(?!\\\\()","endCaptures":{"1":{"name":"punctuation.section.parameters.end.bracket.round.function.pointer.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"patterns":[{"include":"#function_parameter_context"}]},"function_pointer_parameter":{"begin":"(\\\\s*+((?:(?:(?:\\\\[\\\\[.*?]]|__attribute(?:__)?\\\\s*\\\\(\\\\s*\\\\(.*?\\\\)\\\\s*\\\\))|__declspec\\\\(.*?\\\\))|alignas\\\\(.*?\\\\))(?!\\\\)))?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:(?:unsigned|signed|short|long)|(?:struct|class|union|enum))((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*(?:((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\()(\\\\*)\\\\s+{0,1}((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?)\\\\s+{0,1}(?:(\\\\[)(\\\\w*)(])\\\\s+{0,1})*(\\\\))\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"2":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"3":{"patterns":[{"include":"#inline_comment"}]},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"patterns":[{"include":"#inline_comment"}]},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?{])(?!\\\\()","endCaptures":{"1":{"name":"punctuation.section.parameters.end.bracket.round.function.pointer.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"patterns":[{"include":"#function_parameter_context"}]},"functional_specifiers_pre_parameters":{"match":"(?]*(>?)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//)))|((\\")[^\\"]*(\\"?)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//))))|((((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*(?:\\\\.(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)*(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//|;))))|(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:\\\\n|$)|(?=//|;)))","name":"meta.preprocessor.include.cpp"},"inheritance_context":{"patterns":[{"include":"#ever_present_context"},{"match":",","name":"punctuation.separator.delimiter.comma.inheritance.cpp"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"2":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"3":{"patterns":[{"include":"#inline_comment"}]},"4":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"5":{"patterns":[{"include":"#inline_comment"}]},"6":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"7":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))"}]},"inline_builtin_storage_type":{"captures":{"1":{"name":"storage.type.primitive.cpp storage.type.built-in.primitive.cpp"},"2":{"name":"storage.type.cpp storage.type.built-in.cpp"},"3":{"name":"support.type.posix-reserved.pthread.cpp support.type.built-in.posix-reserved.pthread.cpp"},"4":{"name":"support.type.posix-reserved.cpp support.type.built-in.posix-reserved.cpp"}},"match":"\\\\s*+(?\\\\[\\\\w])|(?<=(?:\\\\W|^)return))\\\\s+{0,1}(\\\\[(?!\\\\[| *+\\"| *+\\\\d))((?:[^]\\\\[]|((??)++]))*+)(](?!((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)[];=\\\\[]))","beginCaptures":{"1":{"name":"punctuation.definition.capture.begin.lambda.cpp"},"2":{"name":"meta.lambda.capture.cpp","patterns":[{"include":"#the_this_keyword"},{"captures":{"1":{"name":"variable.parameter.capture.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"punctuation.separator.delimiter.comma.cpp"},"7":{"name":"keyword.operator.assignment.cpp"}},"match":"((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:(?=]|\\\\z|$)|(,))|(=))"},{"include":"#evaluation_context"}]},"3":{},"4":{"name":"punctuation.definition.capture.end.lambda.cpp"},"5":{"patterns":[{"include":"#inline_comment"}]},"6":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"7":{"name":"comment.block.cpp"},"8":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"end":"(?<=[;}])","endCaptures":{},"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.lambda.cpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.lambda.cpp"}},"name":"meta.function.definition.parameters.lambda.cpp","patterns":[{"include":"#function_parameter_context"}]},{"match":"(?","beginCaptures":{"0":{"name":"punctuation.definition.lambda.return-type.cpp"}},"end":"(?=\\\\{)","endCaptures":{},"patterns":[{"include":"#comments"},{"match":"\\\\S+","name":"storage.type.return-type.lambda.cpp"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.lambda.cpp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.lambda.cpp"}},"name":"meta.function.definition.body.lambda.cpp","patterns":[{"include":"$self"}]}]},"language_constants":{"match":"(?\\\\*??)\\\\s+{0,1}(?:((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"variable.language.this.cpp"},"6":{"name":"variable.other.object.access.cpp"},"7":{"name":"punctuation.separator.dot-access.cpp"},"8":{"name":"punctuation.separator.pointer-access.cpp"}},"match":"(?:((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))"},{"include":"#member_access"},{"include":"#method_access"}]},"8":{"name":"variable.other.property.cpp"}},"match":"(?:(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\s+{0,1}(?:\\\\.\\\\*?|->\\\\*?)\\\\s+{0,1})*)\\\\s+{0,1}\\\\b((?!(?:uint_least32_t|uint_least16_t|uint_least64_t|int_least32_t|int_least64_t|uint_fast32_t|uint_fast64_t|uint_least8_t|uint_fast16_t|int_least16_t|int_fast16_t|int_least8_t|uint_fast8_t|int_fast64_t|int_fast32_t|int_fast8_t|suseconds_t|useconds_t|in_addr_t|uintmax_t|in_port_t|uintptr_t|blksize_t|uint32_t|uint64_t|u_quad_t|intmax_t|unsigned|blkcnt_t|uint16_t|intptr_t|swblk_t|wchar_t|u_short|qaddr_t|caddr_t|daddr_t|fixpt_t|nlink_t|segsz_t|clock_t|ssize_t|int16_t|int32_t|int64_t|uint8_t|int8_t|mode_t|quad_t|ushort|u_long|u_char|double|signed|time_t|size_t|key_t|div_t|ino_t|uid_t|gid_t|off_t|pid_t|float|dev_t|u_int|short|bool|id_t|uint|long|char|void|auto|id_t|int)\\\\W)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b(?!\\\\())"},"memory_operators":{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"3":{"name":"keyword.operator.wordlike.cpp"},"4":{"name":"keyword.operator.delete.array.cpp"},"5":{"name":"keyword.operator.delete.array.bracket.cpp"},"6":{"name":"keyword.operator.delete.cpp"},"7":{"name":"keyword.operator.new.cpp"}},"match":"(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:(?:(delete)\\\\s+{0,1}(\\\\[])|(delete))|(new))(?!\\\\w))"},"method_access":{"begin":"(?:((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\s+{0,1}(?:\\\\.\\\\*?|->\\\\*?)\\\\s+{0,1})*)\\\\s+{0,1}(~?(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"variable.language.this.cpp"},"6":{"name":"variable.other.object.access.cpp"},"7":{"name":"punctuation.separator.dot-access.cpp"},"8":{"name":"punctuation.separator.pointer-access.cpp"},"9":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"variable.language.this.cpp"},"6":{"name":"variable.other.object.property.cpp"},"7":{"name":"punctuation.separator.dot-access.cpp"},"8":{"name":"punctuation.separator.pointer-access.cpp"}},"match":"(?<=\\\\.\\\\*?|->\\\\*??)\\\\s+{0,1}(?:((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"variable.language.this.cpp"},"6":{"name":"variable.other.object.access.cpp"},"7":{"name":"punctuation.separator.dot-access.cpp"},"8":{"name":"punctuation.separator.pointer-access.cpp"}},"match":"(?:((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?\\\\*?))"},{"include":"#member_access"},{"include":"#method_access"}]},"10":{"name":"entity.name.function.member.cpp"},"11":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.cpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.member.cpp"}},"patterns":[{"include":"#evaluation_context"}]},"misc_keywords":{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"3":{"name":"keyword.other.$3.cpp"}},"match":"(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)\\\\s+{0,1}((?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.block.namespace.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.namespace.cpp"}},"name":"meta.head.namespace.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#attributes_context"},{"captures":{"1":{"patterns":[{"include":"#scope_resolution_namespace_block_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.block.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.namespace.cpp"},"6":{"name":"punctuation.separator.scope-resolution.namespace.block.cpp"},"7":{"name":"storage.modifier.inline.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)\\\\s+{0,1}((?|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.namespace.cpp"}},"name":"meta.body.namespace.cpp","patterns":[{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.namespace.cpp","patterns":[{"include":"$self"}]}]},"noexcept_operator":{"begin":"((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?((?:__(?:cdec|clrcal|stdcal|fastcal|thiscal|vectorcal)l)?)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(operator)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?:::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(?:(?:(delete\\\\[]|delete|new\\\\[]|<=>|<<=|new|>>=|->\\\\*|/=|%=|&=|>=|\\\\|=|\\\\+\\\\+|--|\\\\(\\\\)|\\\\[]|->|\\\\+\\\\+|<<|>>|--|<=|\\\\^=|==|!=|&&|\\\\|\\\\||\\\\+=|-=|\\\\*=|[!%\\\\&*-\\\\-/<=>^|~])|((?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"6":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"7":{"patterns":[{"include":"#inline_comment"}]},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"patterns":[{"include":"#inline_comment"}]},"12":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"13":{"name":"comment.block.cpp"},"14":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"15":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.function.definition.special.operator-overload.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.function.definition.special.operator-overload.cpp"}},"name":"meta.head.function.definition.special.operator-overload.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#template_call_range"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.bracket.round.special.operator-overload.cpp"}},"contentName":"meta.function.definition.parameters.special.operator-overload","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.special.operator-overload.cpp"}},"patterns":[{"include":"#function_parameter_context"},{"include":"#evaluation_context"}]},{"include":"#qualifiers_and_specifiers_post_parameters"},{"captures":{"1":{"name":"keyword.operator.assignment.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"name":"keyword.other.default.function.cpp"},"7":{"name":"keyword.other.delete.function.cpp"}},"match":"(=)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(default)|(delete))"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.function.definition.special.operator-overload.cpp"}},"name":"meta.body.function.definition.special.operator-overload.cpp","patterns":[{"include":"#function_body_context"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.function.definition.special.operator-overload.cpp","patterns":[{"include":"$self"}]}]},"operators":{"patterns":[{"begin":"((?>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.cpp"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.cpp"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.cpp"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.cpp"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.cpp"},{"include":"#assignment_operator"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.cpp"},{"include":"#ternary_operator"}]},"over_qualified_types":{"patterns":[{"captures":{"1":{"name":"storage.type.struct.parameter.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"4":{"name":"entity.name.type.struct.parameter.cpp"},"5":{"patterns":[{"include":"#inline_comment"}]},"6":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"7":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"8":{"patterns":[{"include":"#inline_comment"}]},"9":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"12":{"patterns":[{"include":"#inline_comment"}]},"13":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"14":{"name":"variable.other.object.declare.cpp"},"15":{"patterns":[{"include":"#inline_comment"}]},"16":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"17":{"patterns":[{"include":"#inline_comment"}]},"18":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"19":{"patterns":[{"include":"#inline_comment"}]},"20":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]}},"match":"\\\\b(struct)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"1":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"4":{"patterns":[{"include":"#inline_comment"}]},"5":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"6":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w])","name":"meta.qualified_type.cpp"},"qualifiers_and_specifiers_post_parameters":{"captures":{"1":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"5":{"name":"storage.modifier.specifier.functional.post-parameters.$5.cpp"}},"match":"((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_function_call":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_function_call_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.call.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_function_call_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_function_call_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.call.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.function.call.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.call.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_function_definition":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_function_definition_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_function_definition_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_function_definition_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.function.definition.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_function_definition_operator_overload":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_function_definition_operator_overload_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.operator-overload.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_function_definition_operator_overload_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_function_definition_operator_overload_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.operator-overload.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.function.definition.operator-overload.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.function.definition.operator-overload.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_namespace_alias":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_namespace_alias_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.alias.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_namespace_alias_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_namespace_alias_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.alias.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.namespace.alias.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.alias.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_namespace_block":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_namespace_block_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.block.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_namespace_block_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_namespace_block_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.block.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.namespace.block.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.block.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_namespace_using":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_namespace_using_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.using.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_namespace_using_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_namespace_using_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.using.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.namespace.using.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.namespace.using.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_parameter":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_parameter_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.parameter.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_parameter_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_parameter_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.parameter.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.parameter.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.parameter.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_template_call":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_template_call_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.call.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_template_call_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_template_call_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.call.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.template.call.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.call.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"scope_resolution_template_definition":{"captures":{"0":{"patterns":[{"include":"#scope_resolution_template_definition_inner_generated"}]},"1":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.definition.cpp"},"2":{"patterns":[{"include":"#template_call_range"}]}},"match":"(::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+"},"scope_resolution_template_definition_inner_generated":{"captures":{"1":{"patterns":[{"include":"#scope_resolution_template_definition_inner_generated"}]},"2":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.definition.cpp"},"3":{"patterns":[{"include":"#template_call_range"}]},"4":{},"5":{"name":"entity.name.scope-resolution.template.definition.cpp"},"6":{"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_range"}]},"7":{},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.template.definition.cpp"}},"match":"((::)?(?:(?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)((?!\\\\b(?:__has_cpp_attribute|reinterpret_cast|atomic_noexcept|atomic_commit|atomic_cancel|__has_include|thread_local|dynamic_cast|synchronized|static_cast|const_cast|consteval|co_return|protected|constinit|constexpr|co_return|consteval|namespace|constexpr|co_await|explicit|volatile|noexcept|co_yield|noexcept|requires|typename|decltype|operator|template|continue|co_await|co_yield|volatile|register|restrict|reflexpr|mutable|alignof|include|private|defined|typedef|_Pragma|__asm__|concept|mutable|warning|default|virtual|alignas|public|sizeof|delete|not_eq|bitand|and_eq|xor_eq|typeid|switch|return|struct|static|extern|inline|friend|ifndef|define|pragma|export|import|module|catch|throw|const|or_eq|compl|while|ifdef|const|bitor|union|class|undef|error|break|using|endif|goto|line|enum|this|case|else|elif|else|not|try|for|asm|and|xor|new|do|if|or|if)\\\\b)(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?(::)"},"semicolon":{"match":";","name":"punctuation.terminator.statement.cpp"},"simple_type":{"captures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"2":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"3":{"patterns":[{"include":"#inline_comment"}]},"4":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"5":{"patterns":[{"include":"#inline_comment"}]},"6":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"7":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))((((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*](((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?"},"single_line_macro":{"captures":{"0":{"patterns":[{"include":"#macro"},{"include":"#comments"}]},"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]}},"match":"^(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)#define.*(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.struct.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.struct.cpp"}},"name":"meta.head.struct.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#inheritance_context"},{"include":"#template_call_range"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.struct.cpp"}},"name":"meta.body.struct.cpp","patterns":[{"include":"#function_pointer"},{"include":"#static_assert"},{"include":"#constructor_inline"},{"include":"#destructor_inline"},{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.struct.cpp","patterns":[{"include":"$self"}]}]},"struct_declare":{"captures":{"1":{"name":"storage.type.struct.declare.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"4":{"name":"entity.name.type.struct.cpp"},"5":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"8":{"patterns":[{"include":"#inline_comment"}]},"9":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"12":{"name":"variable.other.object.declare.cpp"},"13":{"patterns":[{"include":"#inline_comment"}]},"14":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]}},"match":"((?|\\\\?\\\\?>)|(?=[];=>\\\\[])","endCaptures":{},"name":"meta.block.switch.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.switch.cpp"}},"name":"meta.head.switch.cpp","patterns":[{"include":"#switch_conditional_parentheses"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.switch.cpp"}},"name":"meta.body.switch.cpp","patterns":[{"include":"#default_statement"},{"include":"#case_statement"},{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.switch.cpp","patterns":[{"include":"$self"}]}]},"template_argument_defaulted":{"captures":{"1":{"name":"storage.type.template.argument.$1.cpp"},"2":{"name":"entity.name.type.template.cpp"},"3":{"name":"keyword.operator.assignment.cpp"}},"match":"(?<=[,<])\\\\s+{0,1}((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\s+((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?)\\\\s+{0,1}(=)"},"template_call_context":{"patterns":[{"include":"#ever_present_context"},{"include":"#template_call_range"},{"include":"#storage_types"},{"include":"#language_constants"},{"include":"#scope_resolution_template_call_inner_generated"},{"include":"#operators"},{"include":"#number_literal"},{"include":"#string_context"},{"include":"#comma_in_template_argument"},{"include":"#qualified_type"}]},"template_call_innards":{"captures":{"0":{"patterns":[{"include":"#template_call_range"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+","name":"meta.template.call.cpp"},"template_call_range":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.section.angle-brackets.begin.template.call.cpp"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},"template_definition":{"begin":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.definition.cpp"}},"name":"meta.template.definition.cpp","patterns":[{"begin":"(?<=\\\\w)\\\\s+{0,1}<","beginCaptures":{"0":{"name":"punctuation.section.angle-brackets.begin.template.call.cpp"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"patterns":[{"include":"#template_call_context"}]},{"include":"#template_definition_context"}]},"template_definition_argument":{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"3":{"name":"storage.type.template.argument.$3.cpp"},"4":{"patterns":[{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"storage.type.template.argument.$0.cpp"}]},"5":{"name":"entity.name.type.template.cpp"},"6":{"name":"storage.type.template.argument.$6.cpp"},"7":{"name":"punctuation.vararg-ellipses.template.definition.cpp"},"8":{"name":"entity.name.type.template.cpp"},"9":{"name":"storage.type.template.cpp"},"10":{"name":"punctuation.section.angle-brackets.begin.template.definition.cpp"},"11":{"name":"storage.type.template.argument.$11.cpp"},"12":{"name":"entity.name.type.template.cpp"},"13":{"name":"punctuation.section.angle-brackets.end.template.definition.cpp"},"14":{"name":"storage.type.template.argument.$14.cpp"},"15":{"name":"entity.name.type.template.cpp"},"16":{"name":"keyword.operator.assignment.cpp"},"17":{"name":"punctuation.separator.delimiter.comma.template.argument.cpp"}},"match":"(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(?:(?:(?:((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)|((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\s+)+)((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*))|((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)\\\\s+{0,1}(\\\\.\\\\.\\\\.)\\\\s+{0,1}((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*))|(?)\\\\s+{0,1}(class|typename)(?:\\\\s+((?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*))?)\\\\s+{0,1}(?:(=)\\\\s+{0,1}(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?(?:(,)|(?=>|$))"},"template_definition_context":{"patterns":[{"include":"#scope_resolution_template_definition_inner_generated"},{"include":"#template_definition_argument"},{"include":"#template_argument_defaulted"},{"include":"#template_call_innards"},{"include":"#evaluation_context"}]},"template_explicit_instantiation":{"captures":{"1":{"name":"storage.modifier.specifier.extern.cpp"},"2":{"name":"storage.type.template.cpp"}},"match":"(?)\\\\s+{0,1}$"},"ternary_operator":{"applyEndPatternLast":1,"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.cpp"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.cpp"}},"patterns":[{"include":"#ever_present_context"},{"include":"#string_context"},{"include":"#number_literal"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#predefined_macros"},{"include":"#operators"},{"include":"#memory_operators"},{"include":"#wordlike_operators"},{"include":"#type_casting_operators"},{"include":"#control_flow_keywords"},{"include":"#exception_keywords"},{"include":"#the_this_keyword"},{"include":"#language_constants"},{"include":"#builtin_storage_type_initilizer"},{"include":"#qualifiers_and_specifiers_post_parameters"},{"include":"#functional_specifiers_pre_parameters"},{"include":"#storage_types"},{"include":"#lambdas"},{"include":"#attributes_context"},{"include":"#parentheses"},{"include":"#function_call"},{"include":"#scope_resolution_inner_generated"},{"include":"#square_brackets"},{"include":"#semicolon"},{"include":"#comma"}]},"the_this_keyword":{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"3":{"name":"variable.language.this.cpp"}},"match":"(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"9":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"12":{"patterns":[{"include":"#inline_comment"}]},"13":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"14":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))|(.*(?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.class.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.class.cpp"}},"name":"meta.head.class.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#inheritance_context"},{"include":"#template_call_range"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.class.cpp"}},"name":"meta.body.class.cpp","patterns":[{"include":"#function_pointer"},{"include":"#static_assert"},{"include":"#constructor_inline"},{"include":"#destructor_inline"},{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.class.cpp","patterns":[{"captures":{"1":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"8":{"name":"comment.block.cpp"},"9":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"12":{"name":"comment.block.cpp"},"13":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"14":{"name":"entity.name.type.alias.cpp"}},"match":"(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(\\\\()(\\\\*)\\\\s+{0,1}((?:(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*)?)\\\\s+{0,1}(?:(\\\\[)(\\\\w*)(])\\\\s+{0,1})*(\\\\))\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"meta.qualified_type.cpp","patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.cpp"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"2":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"3":{"patterns":[{"include":"#inline_comment"}]},"4":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"5":{"name":"comment.block.cpp"},"6":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"7":{"patterns":[{"include":"#inline_comment"}]},"8":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"9":{"name":"comment.block.cpp"},"10":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"11":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?{])(?!\\\\()","endCaptures":{"1":{"name":"punctuation.section.parameters.end.bracket.round.function.pointer.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"patterns":[{"include":"#function_parameter_context"}]}]},"typedef_struct":{"begin":"((?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.struct.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.struct.cpp"}},"name":"meta.head.struct.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#inheritance_context"},{"include":"#template_call_range"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.struct.cpp"}},"name":"meta.body.struct.cpp","patterns":[{"include":"#function_pointer"},{"include":"#static_assert"},{"include":"#constructor_inline"},{"include":"#destructor_inline"},{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.struct.cpp","patterns":[{"captures":{"1":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"8":{"name":"comment.block.cpp"},"9":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"12":{"name":"comment.block.cpp"},"13":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"14":{"name":"entity.name.type.alias.cpp"}},"match":"(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.union.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.union.cpp"}},"name":"meta.head.union.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#inheritance_context"},{"include":"#template_call_range"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.union.cpp"}},"name":"meta.body.union.cpp","patterns":[{"include":"#function_pointer"},{"include":"#static_assert"},{"include":"#constructor_inline"},{"include":"#destructor_inline"},{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.union.cpp","patterns":[{"captures":{"1":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"4":{"name":"comment.block.cpp"},"5":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"8":{"name":"comment.block.cpp"},"9":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"12":{"name":"comment.block.cpp"},"13":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"},"14":{"name":"entity.name.type.alias.cpp"}},"match":"(((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)?(?:[\\\\&*]((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))*[\\\\&*])?((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?","endCaptures":{"0":{"name":"punctuation.section.angle-brackets.end.template.call.cpp"}},"name":"meta.template.call.cpp","patterns":[{"include":"#template_call_context"}]},{"match":"(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*","name":"entity.name.type.cpp"}]},"7":{"patterns":[{"include":"#attributes_context"},{"include":"#number_literal"}]},"8":{"patterns":[{"include":"#inline_comment"}]},"9":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"12":{"patterns":[{"match":"::","name":"punctuation.separator.namespace.access.cpp punctuation.separator.scope-resolution.type.cpp"},{"match":"(?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*+)(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z))?(?!(?:transaction_safe_dynamic|__has_cpp_attribute|reinterpret_cast|transaction_safe|atomic_noexcept|atomic_commit|__has_include|atomic_cancel|synchronized|thread_local|dynamic_cast|static_cast|const_cast|constexpr|co_return|constinit|namespace|protected|consteval|constexpr|co_return|consteval|co_await|continue|template|reflexpr|volatile|register|co_await|co_yield|restrict|noexcept|volatile|override|explicit|decltype|operator|noexcept|typename|requires|co_yield|nullptr|alignof|alignas|default|mutable|virtual|mutable|private|include|warning|_Pragma|defined|typedef|__asm__|concept|define|module|sizeof|switch|delete|pragma|and_eq|inline|xor_eq|typeid|import|extern|public|bitand|static|export|return|friend|ifndef|not_eq|false|final|break|const|catch|endif|ifdef|undef|error|audit|while|using|axiom|or_eq|compl|throw|bitor|const|line|case|else|this|true|goto|else|NULL|elif|new|asm|xor|and|try|not|for|do|if|or|if)\\\\b)(?:[A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))(?:[0-9A-Z_a-z]|\\\\\\\\(?:u\\\\h{4}|U\\\\h{8}))*\\\\b((?|(?:[^\\"'/<>]|/[^*])++)*>)?(?![.:<\\\\w]))"},"undef":{"captures":{"1":{"name":"keyword.control.directive.undef.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"4":{"name":"punctuation.definition.directive.cpp"},"5":{"patterns":[{"include":"#inline_comment"}]},"6":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"7":{"name":"entity.name.function.preprocessor.cpp"}},"match":"^((((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)(#)\\\\s+{0,1}undef)\\\\b(((?:\\\\s*+/\\\\*(?:[^*]++|\\\\*+(?!/))*+\\\\*/\\\\s*+)+)|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)((?|\\\\?\\\\?>)\\\\s+{0,1}(;)|(;))|(?=[];=>\\\\[])","endCaptures":{"1":{"name":"punctuation.terminator.statement.cpp"},"2":{"name":"punctuation.terminator.statement.cpp"}},"name":"meta.block.union.cpp","patterns":[{"begin":"\\\\G ?","beginCaptures":{},"end":"\\\\{|<%|\\\\?\\\\?<|(?=;)","endCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.union.cpp"}},"name":"meta.head.union.cpp","patterns":[{"include":"#ever_present_context"},{"include":"#inheritance_context"},{"include":"#template_call_range"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","beginCaptures":{},"end":"}|%>|\\\\?\\\\?>","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.union.cpp"}},"name":"meta.body.union.cpp","patterns":[{"include":"#function_pointer"},{"include":"#static_assert"},{"include":"#constructor_inline"},{"include":"#destructor_inline"},{"include":"$self"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)\\\\s*","beginCaptures":{},"end":"\\\\s*(?=;)","endCaptures":{},"name":"meta.tail.union.cpp","patterns":[{"include":"$self"}]}]},"union_declare":{"captures":{"1":{"name":"storage.type.union.declare.cpp"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"4":{"name":"entity.name.type.union.cpp"},"5":{"patterns":[{"match":"\\\\*","name":"storage.modifier.pointer.cpp"},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"3":{"name":"comment.block.cpp"},"4":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"(?:&((?:\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+)+|\\\\s++|(?<=\\\\W)|(?=\\\\W)|^|\\\\n?$|\\\\A|\\\\Z)){2,}&","name":"invalid.illegal.reference-type.cpp"},{"match":"&","name":"storage.modifier.reference.cpp"}]},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"8":{"patterns":[{"include":"#inline_comment"}]},"9":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"10":{"patterns":[{"include":"#inline_comment"}]},"11":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]},"12":{"name":"variable.other.object.declare.cpp"},"13":{"patterns":[{"include":"#inline_comment"}]},"14":{"patterns":[{"captures":{"1":{"name":"comment.block.cpp punctuation.definition.comment.begin.cpp"},"2":{"name":"comment.block.cpp"},"3":{"name":"comment.block.cpp punctuation.definition.comment.end.cpp"}},"match":"\\\\s*+(/\\\\*)((?:[^*]++|\\\\*+(?!/))*+(\\\\*/))\\\\s*+"}]}},"match":"((?|(?:[^\\"'/<>]|/[^*])++)*>)\\\\s*+)?::)*\\\\s*+)?((?r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),N=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,o)=>o?o.toUpperCase():t.toLowerCase()),c=r=>{let e=N(r);return e.charAt(0).toUpperCase()+e.slice(1)},n=(...r)=>r.filter((e,t,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===t).join(" ").trim(),k=r=>{for(let e in r)if(e.startsWith("aria-")||e==="role"||e==="title")return!0},g={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},a=f(p()),C=(0,a.forwardRef)(({color:r="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:s="",children:i,iconNode:d,...l},m)=>(0,a.createElement)("svg",{ref:m,...g,width:e,height:e,stroke:r,strokeWidth:o?Number(t)*24/Number(e):t,className:n("lucide",s),...!i&&!k(l)&&{"aria-hidden":"true"},...l},[...d.map(([h,u])=>(0,a.createElement)(h,u)),...Array.isArray(i)?i:[i]])),A=(r,e)=>{let t=(0,a.forwardRef)(({className:o,...s},i)=>(0,a.createElement)(C,{ref:i,iconNode:e,className:n(`lucide-${w(c(r))}`,`lucide-${r}`,o),...s}));return t.displayName=c(r),t};export{A as t}; diff --git a/docs/assets/createReducer-DDa-hVe3.js b/docs/assets/createReducer-DDa-hVe3.js new file mode 100644 index 0000000..032a3ac --- /dev/null +++ b/docs/assets/createReducer-DDa-hVe3.js @@ -0,0 +1 @@ +import{d as m,p as A}from"./useEvent-DlWF5OMa.js";import{t as h}from"./compiler-runtime-DeeZ7FnK.js";import{d as s}from"./hotkeys-uKX61F1_.js";var $=h();function v(i,c){return{reducer:(o,e)=>(o||(o=i()),e.type in c?c[e.type](o,e.payload):(s.error(`Action type ${e.type} is not defined in reducers.`),o)),createActions:o=>{let e={};for(let a in c)e[a]=u=>{o({type:a,payload:u})};return e}}}function w(i,c,o){let{reducer:e,createActions:a}=v(i,c),u=(n,r)=>{try{let t=e(n,r);if(o)for(let d of o)try{d(n,t,r)}catch(f){s.error(`Error in middleware for action ${r.type}:`,f)}return t}catch(t){return s.error(`Error in reducer for action ${r.type}:`,t),n}},l=A(i()),p=new WeakMap;function y(){let n=(0,$.c)(2),r=m(l);p.has(r)||p.set(r,a(d=>{r(f=>u(f,d))}));let t;return n[0]===r?t=n[1]:(t=p.get(r),n[0]=r,n[1]=t),t}return{reducer:u,createActions:a,valueAtom:l,useActions:y}}export{w as t}; diff --git a/docs/assets/crystal-BGXRJSF-.js b/docs/assets/crystal-BGXRJSF-.js new file mode 100644 index 0000000..8e11614 --- /dev/null +++ b/docs/assets/crystal-BGXRJSF-.js @@ -0,0 +1 @@ +function i(t,e){return RegExp((e?"":"^")+"(?:"+t.join("|")+")"+(e?"$":"\\b"))}function o(t,e,n){return n.tokenize.push(t),t(e,n)}var f=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,k=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,_=/^(?:\[\][?=]?)/,I=/^(?:\.(?:\.{2})?|->|[?:])/,m=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,h=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,w=i("abstract.alias.as.asm.begin.break.case.class.def.do.else.elsif.end.ensure.enum.extend.for.fun.if.include.instance_sizeof.lib.macro.module.next.of.out.pointerof.private.protected.rescue.return.require.select.sizeof.struct.super.then.type.typeof.uninitialized.union.unless.until.when.while.with.yield.__DIR__.__END_LINE__.__FILE__.__LINE__".split(".")),S=i(["true","false","nil","self"]),E=i(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),T=i(["if","unless","case","while","until","begin","then"]),b=["end","else","elsif","rescue","ensure"],A=i(b),g=["\\)","\\}","\\]"],Z=RegExp("^(?:"+g.join("|")+")$"),x={def:y,fun:y,macro:v,class:s,module:s,struct:s,lib:s,enum:s,union:s},d={"[":"]","{":"}","(":")","<":">"};function F(t,e){if(t.eatSpace())return null;if(e.lastToken!="\\"&&t.match("{%",!1))return o(c("%","%"),t,e);if(e.lastToken!="\\"&&t.match("{{",!1))return o(c("{","}"),t,e);if(t.peek()=="#")return t.skipToEnd(),"comment";var n;if(t.match(m))return t.eat(/[?!]/),n=t.current(),t.eat(":")?"atom":e.lastToken=="."?"property":w.test(n)?(E.test(n)?!(n=="fun"&&e.blocks.indexOf("lib")>=0)&&!(n=="def"&&e.lastToken=="abstract")&&(e.blocks.push(n),e.currentIndent+=1):(e.lastStyle=="operator"||!e.lastStyle)&&T.test(n)?(e.blocks.push(n),e.currentIndent+=1):n=="end"&&(e.blocks.pop(),--e.currentIndent),x.hasOwnProperty(n)&&e.tokenize.push(x[n]),"keyword"):S.test(n)?"atom":"variable";if(t.eat("@"))return t.peek()=="["?o(p("[","]","meta"),t,e):(t.eat("@"),t.match(m)||t.match(h),"propertyName");if(t.match(h))return"tag";if(t.eat(":"))return t.eat('"')?o(z('"',"atom",!1),t,e):t.match(m)||t.match(h)||t.match(f)||t.match(k)||t.match(_)?"atom":(t.eat(":"),"operator");if(t.eat('"'))return o(z('"',"string",!0),t,e);if(t.peek()=="%"){var a="string",r=!0,u;if(t.match("%r"))a="string.special",u=t.next();else if(t.match("%w"))r=!1,u=t.next();else if(t.match("%q"))r=!1,u=t.next();else if(u=t.match(/^%([^\w\s=])/))u=u[1];else{if(t.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(t.eat("%"))return"operator"}return d.hasOwnProperty(u)&&(u=d[u]),o(z(u,a,r),t,e)}return(n=t.match(/^<<-('?)([A-Z]\w*)\1/))?o(N(n[2],!n[1]),t,e):t.eat("'")?(t.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),t.eat("'"),"atom"):t.eat("0")?(t.eat("x")?t.match(/^[0-9a-fA-F_]+/):t.eat("o")?t.match(/^[0-7_]+/):t.eat("b")&&t.match(/^[01_]+/),"number"):t.eat(/^\d/)?(t.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):t.match(f)?(t.eat("="),"operator"):t.match(k)||t.match(I)?"operator":(n=t.match(/[({[]/,!1))?(n=n[0],o(p(n,d[n],null),t,e)):t.eat("\\")?(t.next(),"meta"):(t.next(),null)}function p(t,e,n,a){return function(r,u){if(!a&&r.match(t))return u.tokenize[u.tokenize.length-1]=p(t,e,n,!0),u.currentIndent+=1,n;var l=F(r,u);return r.current()===e&&(u.tokenize.pop(),--u.currentIndent,l=n),l}}function c(t,e,n){return function(a,r){return!n&&a.match("{"+t)?(r.currentIndent+=1,r.tokenize[r.tokenize.length-1]=c(t,e,!0),"meta"):a.match(e+"}")?(--r.currentIndent,r.tokenize.pop(),"meta"):F(a,r)}}function v(t,e){if(t.eatSpace())return null;var n;if(n=t.match(m)){if(n=="def")return"keyword";t.eat(/[?!]/)}return e.tokenize.pop(),"def"}function y(t,e){return t.eatSpace()?null:(t.match(m)?t.eat(/[!?]/):t.match(f)||t.match(k)||t.match(_),e.tokenize.pop(),"def")}function s(t,e){return t.eatSpace()?null:(t.match(h),e.tokenize.pop(),"def")}function z(t,e,n){return function(a,r){for(var u=!1;a.peek();)if(u)a.next(),u=!1;else{if(a.match("{%",!1))return r.tokenize.push(c("%","%")),e;if(a.match("{{",!1))return r.tokenize.push(c("{","}")),e;if(n&&a.match("#{",!1))return r.tokenize.push(p("#{","}","meta")),e;var l=a.next();if(l==t)return r.tokenize.pop(),e;u=n&&l=="\\"}return e}}function N(t,e){return function(n,a){if(n.sol()&&(n.eatSpace(),n.match(t)))return a.tokenize.pop(),"string";for(var r=!1;n.peek();)if(r)n.next(),r=!1;else{if(n.match("{%",!1))return a.tokenize.push(c("%","%")),"string";if(n.match("{{",!1))return a.tokenize.push(c("{","}")),"string";if(e&&n.match("#{",!1))return a.tokenize.push(p("#{","}","meta")),"string";r=n.next()=="\\"&&e}return"string"}}const O={name:"crystal",startState:function(){return{tokenize:[F],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(t,e){var n=e.tokenize[e.tokenize.length-1](t,e),a=t.current();return n&&n!="comment"&&(e.lastToken=a,e.lastStyle=n),n},indent:function(t,e,n){return e=e.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),A.test(e)||Z.test(e)?n.unit*(t.currentIndent-1):n.unit*t.currentIndent},languageData:{indentOnInput:i(g.concat(b),!0),commentTokens:{line:"#"}}};export{O as t}; diff --git a/docs/assets/crystal-DjnXLfjs.js b/docs/assets/crystal-DjnXLfjs.js new file mode 100644 index 0000000..966d886 --- /dev/null +++ b/docs/assets/crystal-DjnXLfjs.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t}from"./css-xi2XX7Oh.js";import{t as n}from"./html-Bz1QLM72.js";import{t as a}from"./sql-HYiT1H9d.js";import{t as r}from"./c-B0sc7wbk.js";import{t as s}from"./shellscript-CkXVEK14.js";var i=Object.freeze(JSON.parse(`{"displayName":"Crystal","fileTypes":["cr"],"firstLineMatch":"^#!/.*\\\\bcrystal","foldingStartMarker":"(?:^(\\\\s*+(annotation|module|class|struct|union|enum|def(?!.*\\\\bend\\\\s*$)|unless|if|case|begin|for|while|until|^=begin|(\\"(\\\\\\\\.|[^\\"])*+\\"|'(\\\\\\\\.|[^'])*+'|[^\\"#'])*(\\\\s(do|begin|case)|(?^|~]\\\\s*+(if|unless)))\\\\b(?![^;]*+;.*?\\\\bend\\\\b)|(\\"(\\\\\\\\.|[^\\"])*+\\"|'(\\\\\\\\.|[^'])*+'|[^\\"#'])*(\\\\{(?![^}]*+})|\\\\[(?![^]]*+]))).*|#.*?\\\\(fold\\\\)\\\\s*+)$","foldingStopMarker":"((^|;)\\\\s*+end\\\\s*+(#.*)?$|(^|;)\\\\s*+end\\\\..*$|^\\\\s*+[]}],?\\\\s*+(#.*)?$|#.*?\\\\(end\\\\)\\\\s*+$|^=end)","name":"crystal","patterns":[{"captures":{"1":{"name":"keyword.control.class.crystal"},"2":{"name":"keyword.control.class.crystal"},"3":{"name":"entity.name.type.class.crystal"},"5":{"name":"punctuation.separator.crystal"},"6":{"name":"support.class.other.type-param.crystal"},"7":{"name":"entity.other.inherited-class.crystal"},"8":{"name":"punctuation.separator.crystal"},"9":{"name":"punctuation.separator.crystal"},"10":{"name":"support.class.other.type-param.crystal"},"11":{"name":"punctuation.definition.variable.crystal"}},"match":"^\\\\s*(abstract)?\\\\s*(class|struct|union|annotation|enum)\\\\s+(([.:A-Z_\\\\x{80}-\\\\x{10FFFF}][.:\\\\x{80}-\\\\x{10FFFF}\\\\w]*(\\\\(([,.0-:A-Z_a-z\\\\x{80}-\\\\x{10FFFF}\\\\s]+)\\\\))?(\\\\s*(<)\\\\s*[.:A-Z\\\\x{80}-\\\\x{10FFFF}][.:\\\\x{80}-\\\\x{10FFFF}\\\\w]*(\\\\(([.0-:A-Z_a-z]+\\\\s,)\\\\))?)?)|((<<)\\\\s*[.0-:A-Z_\\\\x{80}-\\\\x{10FFFF}]+))","name":"meta.class.crystal"},{"captures":{"1":{"name":"keyword.control.module.crystal"},"2":{"name":"entity.name.type.module.crystal"},"3":{"name":"entity.other.inherited-class.module.first.crystal"},"4":{"name":"punctuation.separator.inheritance.crystal"},"5":{"name":"entity.other.inherited-class.module.second.crystal"},"6":{"name":"punctuation.separator.inheritance.crystal"},"7":{"name":"entity.other.inherited-class.module.third.crystal"},"8":{"name":"punctuation.separator.inheritance.crystal"}},"match":"^\\\\s*(module)\\\\s+(([A-Z\\\\x{80}-\\\\x{10FFFF}][\\\\x{80}-\\\\x{10FFFF}\\\\w]*(::))?([A-Z\\\\x{80}-\\\\x{10FFFF}][\\\\x{80}-\\\\x{10FFFF}\\\\w]*(::))?([A-Z\\\\x{80}-\\\\x{10FFFF}][\\\\x{80}-\\\\x{10FFFF}\\\\w]*(::))*[A-Z\\\\x{80}-\\\\x{10FFFF}][\\\\x{80}-\\\\x{10FFFF}\\\\w]*)","name":"meta.module.crystal"},{"captures":{"1":{"name":"keyword.control.lib.crystal"},"2":{"name":"entity.name.type.lib.crystal"},"3":{"name":"entity.other.inherited-class.lib.first.crystal"},"4":{"name":"punctuation.separator.inheritance.crystal"},"5":{"name":"entity.other.inherited-class.lib.second.crystal"},"6":{"name":"punctuation.separator.inheritance.crystal"},"7":{"name":"entity.other.inherited-class.lib.third.crystal"},"8":{"name":"punctuation.separator.inheritance.crystal"}},"match":"^\\\\s*(lib)\\\\s+(([A-Z]\\\\w*(::))?([A-Z]\\\\w*(::))?([A-Z]\\\\w*(::))*[A-Z]\\\\w*)","name":"meta.lib.crystal"},{"captures":{"1":{"name":"keyword.control.lib.type.crystal"},"2":{"name":"entity.name.lib.type.crystal"},"3":{"name":"keyword.control.lib.crystal"},"4":{"name":"entity.name.lib.type.value.crystal"}},"match":"(?[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|\\\\^|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/\`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[][=?]?|\\\\[]=?))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.def.crystal"},"2":{"name":"entity.name.function.crystal"},"3":{"name":"punctuation.definition.parameters.crystal"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.crystal"}},"name":"meta.function.method.with-arguments.crystal","patterns":[{"begin":"(?![),\\\\s])","end":"(?=,|\\\\)\\\\s*)","patterns":[{"captures":{"1":{"name":"storage.type.variable.crystal"},"2":{"name":"constant.other.symbol.hashkey.parameter.function.crystal"},"3":{"name":"punctuation.definition.constant.hashkey.crystal"},"4":{"name":"variable.parameter.function.crystal"}},"match":"\\\\G([\\\\&*]?)(?:([A-Z_a-z]\\\\w*(:))|([A-Z_a-z]\\\\w*))"},{"include":"$self"}]}]},{"captures":{"1":{"name":"keyword.control.def.crystal"},"3":{"name":"entity.name.function.crystal"}},"match":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\b(\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|\\\\^|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/\`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[][=?]?|\\\\[]=?)))?","name":"meta.function.method.without-arguments.crystal"},{"match":"\\\\b[0-9][0-9_]*\\\\.[0-9][0-9_]*([Ee][-+]?[0-9_]+)?(f(?:32|64))?\\\\b","name":"constant.numeric.float.crystal"},{"match":"\\\\b[0-9][0-9_]*(\\\\.[0-9][0-9_]*)?[Ee][-+]?[0-9_]+(f(?:32|64))?\\\\b","name":"constant.numeric.float.crystal"},{"match":"\\\\b[0-9][0-9_]*(\\\\.[0-9][0-9_]*)?([Ee][-+]?[0-9_]+)?(f(?:32|64))\\\\b","name":"constant.numeric.float.crystal"},{"match":"\\\\b(?!0[0-9])[0-9][0-9_]*([iu](8|16|32|64|128))?\\\\b","name":"constant.numeric.integer.decimal.crystal"},{"match":"\\\\b0x[_\\\\h]+([iu](8|16|32|64|128))?\\\\b","name":"constant.numeric.integer.hexadecimal.crystal"},{"match":"\\\\b0o[0-7_]+([iu](8|16|32|64|128))?\\\\b","name":"constant.numeric.integer.octal.crystal"},{"match":"\\\\b0b[01_]+([iu](8|16|32|64|128))?\\\\b","name":"constant.numeric.integer.binary.crystal"},{"begin":":'","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.crystal"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.crystal"}},"name":"constant.other.symbol.crystal","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.crystal"}]},{"begin":":\\"","beginCaptures":{"0":{"name":"punctuation.section.symbol.begin.crystal"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.section.symbol.end.crystal"}},"name":"constant.other.symbol.interpolated.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"match":"(?","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.interpolated.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%x\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.interpolated.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%x\\\\|","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.interpolated.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?:^|(?<=[\\\\&(,:;=>?\\\\[|~]|[;\\\\s]if\\\\s|[;\\\\s]elsif\\\\s|[;\\\\s]while\\\\s|[;\\\\s]unless\\\\s|[;\\\\s]when\\\\s|[;\\\\s]assert_match\\\\s|[;\\\\s]or\\\\s|[;\\\\s]and\\\\s|[;\\\\s]not\\\\s|[.\\\\s]index\\\\s|[.\\\\s]scan\\\\s|[.\\\\s]sub\\\\s|[.\\\\s]sub!\\\\s|[.\\\\s]gsub\\\\s|[.\\\\s]gsub!\\\\s|[.\\\\s]match\\\\s)|(?<=^(?:when|if|elsif|while|unless)\\\\s))\\\\s*((/))(?![*+?{}])","captures":{"1":{"name":"string.regexp.classic.crystal"},"2":{"name":"punctuation.definition.string.crystal"}},"contentName":"string.regexp.classic.crystal","end":"((/[imsx]*))","patterns":[{"include":"#regex_sub"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"}[imsx]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.regexp.mod-r.crystal","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},{"begin":"%r\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"][imsx]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.regexp.mod-r.crystal","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},{"begin":"%r\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\)[imsx]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.regexp.mod-r.crystal","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},{"begin":"%r<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":">[imsx]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.regexp.mod-r.crystal","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},{"begin":"%r\\\\|","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\|[imsx]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.regexp.mod-r.crystal","patterns":[{"include":"#regex_sub"}]},{"begin":"%Q?\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.upper.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%Q?\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.upper.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%Q?<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.upper.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%Q?\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.double.crystal.mod","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%Q\\\\|","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.upper.crystal","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"%[iqw]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.lower.crystal","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.crystal"},{"include":"#nest_parens"}]},{"begin":"%[iqw]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.lower.crystal","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.crystal"},{"include":"#nest_ltgt"}]},{"begin":"%[iqw]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.lower.crystal","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.crystal"},{"include":"#nest_brackets"}]},{"begin":"%[iqw]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.lower.crystal","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.crystal"},{"include":"#nest_curly"}]},{"begin":"%[iqw]\\\\|","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.quoted.other.literal.lower.crystal","patterns":[{"match":"\\\\\\\\."}]},{"captures":{"1":{"name":"punctuation.definition.constant.crystal"}},"match":"(?[A-Z_a-z\\\\x{80}-\\\\x{10FFFF}][\\\\x{80}-\\\\x{10FFFF}\\\\w]*(?>[!?]|=(?![=>]))?|===?|>[=>]?|<[<=]?|<=>|[%\\\\&/\`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[][=?]?|@@?[A-Z_a-z\\\\x{80}-\\\\x{10FFFF}][\\\\x{80}-\\\\x{10FFFF}\\\\w]*)","name":"constant.other.symbol.crystal"},{"captures":{"1":{"name":"punctuation.definition.constant.crystal"}},"match":"(?>[A-Z_a-z\\\\x{80}-\\\\x{10FFFF}][\\\\x{80}-\\\\x{10FFFF}\\\\w]*[!?]?)(:)(?!:)","name":"constant.other.symbol.crystal.19syntax"},{"captures":{"1":{"name":"punctuation.definition.comment.crystal"}},"match":"(?:^[\\\\t ]+)?(#).*$\\\\n?","name":"comment.line.number-sign.crystal"},{"match":"(?<<-('?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.html.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.html.crystal","patterns":[{"include":"#heredoc"},{"include":"text.html.basic"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.sql.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.sql.crystal","patterns":[{"include":"#heredoc"},{"include":"source.sql"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.css.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.css.crystal","patterns":[{"include":"#heredoc"},{"include":"source.css"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.c++.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.cplusplus.crystal","patterns":[{"include":"#heredoc"},{"include":"source.c++"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)C)\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.c.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.c.crystal","patterns":[{"include":"#heredoc"},{"include":"source.c"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.js.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.js.crystal","patterns":[{"include":"#heredoc"},{"include":"source.js"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.js.jquery.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.js.jquery.crystal","patterns":[{"include":"#heredoc"},{"include":"source.js.jquery"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.shell.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.shell.crystal","patterns":[{"include":"#heredoc"},{"include":"source.shell"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-('?)((?:[_\\\\w]+_|)CRYSTAL)\\\\b\\\\1)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"contentName":"text.crystal.embedded.crystal","end":"\\\\s*\\\\2\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.embedded.crystal.crystal","patterns":[{"include":"#heredoc"},{"include":"source.crystal"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?><<-'(\\\\w+)')","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\s*\\\\1\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.heredoc.crystal","patterns":[{"include":"#heredoc"},{"include":"#escaped_char"}]},{"begin":"(?><<-(\\\\w+)\\\\b)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.crystal"}},"end":"\\\\s*\\\\1\\\\b","endCaptures":{"0":{"name":"punctuation.definition.string.end.crystal"}},"name":"string.unquoted.heredoc.crystal","patterns":[{"include":"#heredoc"},{"include":"#interpolated_crystal"},{"include":"#escaped_char"}]},{"begin":"(?<=\\\\{\\\\s??|[^0-9A-Z_a-z]do|^do|[^0-9A-Z_a-z]do\\\\s|^do\\\\s)(\\\\|)","captures":{"1":{"name":"punctuation.separator.variable.crystal"}},"end":"(?","name":"punctuation.separator.key-value"},{"match":"->","name":"support.function.kernel.crystal"},{"match":"<<=|%=|&{1,2}=|\\\\*=|\\\\*\\\\*=|\\\\+=|-=|\\\\^=|\\\\|{1,2}=|<<","name":"keyword.operator.assignment.augmented.crystal"},{"match":"<=>|<(?![<=])|>(?![<=>])|<=|>=|===?|=~|!=|!~|(?<=[\\\\t ])\\\\?","name":"keyword.operator.comparison.crystal"},{"match":"(?<=^|[\\\\t ])!|&&|\\\\|\\\\||\\\\^","name":"keyword.operator.logical.crystal"},{"match":"(\\\\{%|%}|\\\\{\\\\{|}})","name":"keyword.operator.macro.crystal"},{"captures":{"1":{"name":"punctuation.separator.method.crystal"}},"match":"(&\\\\.)\\\\s*(?![A-Z])"},{"match":"([%\\\\&]|\\\\*\\\\*|[-*+/])","name":"keyword.operator.arithmetic.crystal"},{"match":"=","name":"keyword.operator.assignment.crystal"},{"match":"[|~]|>>","name":"keyword.operator.other.crystal"},{"match":":","name":"punctuation.separator.other.crystal"},{"match":";","name":"punctuation.separator.statement.crystal"},{"match":",","name":"punctuation.separator.object.crystal"},{"match":"\\\\.|::","name":"punctuation.separator.method.crystal"},{"match":"[{}]","name":"punctuation.section.scope.crystal"},{"match":"[]\\\\[]","name":"punctuation.section.array.crystal"},{"match":"[()]","name":"punctuation.section.function.crystal"},{"begin":"(?=[!0-9?A-Z_a-z]+\\\\()","end":"(?<=\\\\))","name":"meta.function-call.crystal","patterns":[{"match":"([!0-9?A-Z_a-z]+)(?=\\\\()","name":"entity.name.function.crystal"},{"include":"$self"}]},{"match":"((?<=\\\\W)\\\\b|^)\\\\w+\\\\b(?=\\\\s*([]$)-/=^}]|<\\\\s|<<[.|\\\\s]))","name":"variable.other.crystal"}],"repository":{"escaped_char":{"match":"\\\\\\\\(?:[0-7]{1,3}|x\\\\h{2}|u\\\\h{4}|u\\\\{[ \\\\h]+}|.)","name":"constant.character.escape.crystal"},"heredoc":{"begin":"^<<-?\\\\w+","end":"$","patterns":[{"include":"$self"}]},"interpolated_crystal":{"patterns":[{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.crystal"}},"contentName":"source.crystal","end":"(})","endCaptures":{"0":{"name":"punctuation.section.embedded.end.crystal"},"1":{"name":"source.crystal"}},"name":"meta.embedded.line.crystal","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}],"repository":{"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]}}},{"captures":{"1":{"name":"punctuation.definition.variable.crystal"}},"match":"(#@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.crystal"},{"captures":{"1":{"name":"punctuation.definition.variable.crystal"}},"match":"(#@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.crystal"},{"captures":{"1":{"name":"punctuation.definition.variable.crystal"}},"match":"(#\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.crystal"}]},"nest_brackets":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"]","patterns":[{"include":"#nest_brackets"}]},"nest_brackets_i":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"]","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},"nest_brackets_r":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"]","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},"nest_curly":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"}","patterns":[{"include":"#nest_curly"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]},"nest_curly_i":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"}","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},"nest_curly_r":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"}","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},"nest_ltgt":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":">","patterns":[{"include":"#nest_ltgt"}]},"nest_ltgt_i":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":">","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},"nest_ltgt_r":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":">","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},"nest_parens":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"\\\\)","patterns":[{"include":"#nest_parens"}]},"nest_parens_i":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"\\\\)","patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},"nest_parens_r":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.crystal"}},"end":"\\\\)","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},"regex_sub":{"patterns":[{"include":"#interpolated_crystal"},{"include":"#escaped_char"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.crystal"},"3":{"name":"punctuation.definition.arbitrary-repetition.crystal"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.crystal"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.crystal"}},"end":"]","name":"string.regexp.character-class.crystal","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.group.crystal"}},"end":"\\\\)","name":"string.regexp.group.crystal","patterns":[{"include":"#regex_sub"}]},{"captures":{"1":{"name":"punctuation.definition.comment.crystal"}},"match":"(?<=^|\\\\s)(#)\\\\s[-\\\\t !,.0-9?A-Za-z[^\\\\x00-\\\\x7F]]*$","name":"comment.line.number-sign.crystal"}]}},"scopeName":"source.crystal","embeddedLangs":["html","sql","css","c","javascript","shellscript"]}`)),c=[...n,...a,...t,...r,...e,...s,i];export{c as default}; diff --git a/docs/assets/crystal-DmwO_0_4.js b/docs/assets/crystal-DmwO_0_4.js new file mode 100644 index 0000000..a55bee8 --- /dev/null +++ b/docs/assets/crystal-DmwO_0_4.js @@ -0,0 +1 @@ +import{t as r}from"./crystal-BGXRJSF-.js";export{r as crystal}; diff --git a/docs/assets/csharp-5LNI6iDS.js b/docs/assets/csharp-5LNI6iDS.js new file mode 100644 index 0000000..21c92d3 --- /dev/null +++ b/docs/assets/csharp-5LNI6iDS.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"C#","name":"csharp","patterns":[{"include":"#preprocessor"},{"include":"#comment"},{"include":"#directives"},{"include":"#declarations"},{"include":"#script-top-level"}],"repository":{"accessor-getter":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"contentName":"meta.accessor.getter.cs","end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#statement"}]},{"include":"#accessor-getter-expression"},{"include":"#punctuation-semicolon"}]},"accessor-getter-expression":{"begin":"=>","beginCaptures":{"0":{"name":"keyword.operator.arrow.cs"}},"contentName":"meta.accessor.getter.cs","end":"(?=[;}])","patterns":[{"include":"#ref-modifier"},{"include":"#expression"}]},"accessor-setter":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"contentName":"meta.accessor.setter.cs","end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#statement"}]},{"begin":"=>","beginCaptures":{"0":{"name":"keyword.operator.arrow.cs"}},"contentName":"meta.accessor.setter.cs","end":"(?=[;}])","patterns":[{"include":"#ref-modifier"},{"include":"#expression"}]},{"include":"#punctuation-semicolon"}]},"anonymous-method-expression":{"patterns":[{"begin":"((?:\\\\b(?:async|static)\\\\b\\\\s*)*)(?:(@?[_[:alpha:]][_[:alnum:]]*)\\\\b|(\\\\()(?(?:[^()]|\\\\(\\\\g\\\\))*)(\\\\)))\\\\s*(=>)","beginCaptures":{"1":{"patterns":[{"match":"async|static","name":"storage.modifier.$0.cs"}]},"2":{"name":"entity.name.variable.parameter.cs"},"3":{"name":"punctuation.parenthesis.open.cs"},"4":{"patterns":[{"include":"#comment"},{"include":"#explicit-anonymous-function-parameter"},{"include":"#implicit-anonymous-function-parameter"},{"include":"#default-argument"},{"include":"#punctuation-comma"}]},"5":{"name":"punctuation.parenthesis.close.cs"},"6":{"name":"keyword.operator.arrow.cs"}},"end":"(?=[),;}])","patterns":[{"include":"#intrusive"},{"begin":"(?=\\\\{)","end":"(?=[),;}])","patterns":[{"include":"#block"},{"include":"#intrusive"}]},{"begin":"\\\\b(ref)\\\\b|(?=\\\\S)","beginCaptures":{"1":{"name":"storage.modifier.ref.cs"}},"end":"(?=[),;}])","patterns":[{"include":"#expression"}]}]},{"begin":"((?:\\\\b(?:async|static)\\\\b\\\\s*)*)\\\\b(delegate)\\\\b\\\\s*","beginCaptures":{"1":{"patterns":[{"match":"async|static","name":"storage.modifier.$0.cs"}]},"2":{"name":"storage.type.delegate.cs"}},"end":"(?<=})|(?=[),;}])","patterns":[{"include":"#intrusive"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#intrusive"},{"include":"#explicit-anonymous-function-parameter"},{"include":"#punctuation-comma"}]},{"include":"#block"}]}]},"anonymous-object-creation-expression":{"begin":"\\\\b(new)\\\\b\\\\s*(?=\\\\{|//|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.operator.expression.new.cs"}},"end":"(?<=})","patterns":[{"include":"#comment"},{"include":"#initializer-expression"}]},"argument":{"patterns":[{"match":"\\\\b(ref|in)\\\\b","name":"storage.modifier.$1.cs"},{"begin":"\\\\b(out)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.out.cs"}},"end":"(?=[]),])","patterns":[{"include":"#declaration-expression-local"},{"include":"#expression"}]},{"include":"#expression"}]},"argument-list":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#named-argument"},{"include":"#argument"},{"include":"#punctuation-comma"}]},"array-creation-expression":{"begin":"\\\\b(new|stackalloc)\\\\b\\\\s*(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)?\\\\s*(?=\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.expression.$1.cs"},"2":{"patterns":[{"include":"#type"}]}},"end":"(?<=])","patterns":[{"include":"#bracketed-argument-list"}]},"as-expression":{"captures":{"1":{"name":"keyword.operator.expression.as.cs"},"2":{"patterns":[{"include":"#type"}]}},"match":"(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?(?!\\\\?))?(?:\\\\s*\\\\[\\\\s*(?:,\\\\s*)*](?:\\\\s*\\\\?(?!\\\\?))?)*)?"},"assignment-expression":{"begin":"(?:[-%*+/]|\\\\?\\\\?|[\\\\&^]|<<|>>>?|\\\\|)?=(?![=>])","beginCaptures":{"0":{"patterns":[{"include":"#assignment-operators"}]}},"end":"(?=[]),;}])","patterns":[{"include":"#ref-modifier"},{"include":"#expression"}]},"assignment-operators":{"patterns":[{"match":"(?:[-%*+/]|\\\\?\\\\?)=","name":"keyword.operator.assignment.compound.cs"},{"match":"(?:[\\\\&^]|<<|>>>?|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.cs"},{"match":"=","name":"keyword.operator.assignment.cs"}]},"attribute":{"patterns":[{"include":"#type-name"},{"include":"#type-arguments"},{"include":"#attribute-arguments"}]},"attribute-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.parenthesis.open.cs"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#attribute-named-argument"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"attribute-named-argument":{"begin":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?==)","beginCaptures":{"1":{"name":"entity.name.variable.property.cs"}},"end":"(?=([),]))","patterns":[{"include":"#operator-assignment"},{"include":"#expression"}]},"attribute-section":{"begin":"(\\\\[)(assembly|module|field|event|method|param|property|return|type)?(:)?","beginCaptures":{"1":{"name":"punctuation.squarebracket.open.cs"},"2":{"name":"keyword.other.attribute-specifier.cs"},"3":{"name":"punctuation.separator.colon.cs"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.squarebracket.close.cs"}},"patterns":[{"include":"#comment"},{"include":"#attribute"},{"include":"#punctuation-comma"}]},"await-expression":{"match":"(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s*(\\\\))(?=\\\\s*-*!*@?[(_[:alnum:]])"},"casted-constant-pattern":{"begin":"(\\\\()([.:@_\\\\s[:alnum:]]+)(\\\\))(?=[-!+~\\\\s]*@?[\\"'(_[:alnum:]]+)","beginCaptures":{"1":{"name":"punctuation.parenthesis.open.cs"},"2":{"patterns":[{"include":"#type-builtin"},{"include":"#type-name"}]},"3":{"name":"punctuation.parenthesis.close.cs"}},"end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#casted-constant-pattern"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#constant-pattern"}]},{"include":"#constant-pattern"},{"captures":{"1":{"name":"entity.name.type.alias.cs"},"2":{"name":"punctuation.separator.coloncolon.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(::)"},{"captures":{"1":{"name":"entity.name.type.cs"},"2":{"name":"punctuation.accessor.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(\\\\.)"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"variable.other.constant.cs"}]},"catch-clause":{"begin":"(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s*(?:(\\\\g)\\\\b)?"}]},{"include":"#when-clause"},{"include":"#comment"},{"include":"#block"}]},"char-character-escape":{"match":"\\\\\\\\(x\\\\h{1,4}|u\\\\h{4}|.)","name":"constant.character.escape.cs"},"char-literal":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.char.begin.cs"}},"end":"(')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.char.end.cs"},"2":{"name":"invalid.illegal.newline.cs"}},"name":"string.quoted.single.cs","patterns":[{"include":"#char-character-escape"}]},"class-declaration":{"begin":"(?=(\\\\brecord\\\\b\\\\s+)?\\\\bclass\\\\b)","end":"(?<=})|(?=;)","patterns":[{"begin":"(\\\\b(record)\\\\b\\\\s+)?\\\\b(class)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*","beginCaptures":{"2":{"name":"storage.type.record.cs"},"3":{"name":"storage.type.class.cs"},"4":{"name":"entity.name.type.class.cs"}},"end":"(?=\\\\{)|(?=;)","patterns":[{"include":"#comment"},{"include":"#type-parameter-list"},{"include":"#parenthesized-parameter-list"},{"include":"#base-types"},{"include":"#generic-constraints"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#class-or-struct-members"}]},{"include":"#preprocessor"},{"include":"#comment"}]},"class-or-struct-members":{"patterns":[{"include":"#preprocessor"},{"include":"#comment"},{"include":"#storage-modifier"},{"include":"#type-declarations"},{"include":"#property-declaration"},{"include":"#field-declaration"},{"include":"#event-declaration"},{"include":"#indexer-declaration"},{"include":"#variable-initializer"},{"include":"#constructor-declaration"},{"include":"#destructor-declaration"},{"include":"#operator-declaration"},{"include":"#conversion-operator-declaration"},{"include":"#method-declaration"},{"include":"#attribute-section"},{"include":"#punctuation-semicolon"}]},"combinator-pattern":{"match":"\\\\b(and|or|not)\\\\b","name":"keyword.operator.expression.pattern.combinator.$1.cs"},"comment":{"patterns":[{"begin":"(^\\\\s+)?(///)(?!/)","captures":{"1":{"name":"punctuation.whitespace.comment.leading.cs"},"2":{"name":"punctuation.definition.comment.cs"}},"name":"comment.block.documentation.cs","patterns":[{"include":"#xml-doc-comment"}],"while":"^(\\\\s*)(///)(?!/)"},{"begin":"(^\\\\s+)?(/\\\\*\\\\*)(?!/)","captures":{"1":{"name":"punctuation.whitespace.comment.leading.cs"},"2":{"name":"punctuation.definition.comment.cs"}},"end":"(^\\\\s+)?(\\\\*/)","name":"comment.block.documentation.cs","patterns":[{"begin":"\\\\G(?=(?~\\\\*/)$)","patterns":[{"include":"#xml-doc-comment"}],"while":"^(\\\\s*+)(\\\\*(?!/))?(?=(?~\\\\*/)$)","whileCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.cs"},"2":{"name":"punctuation.definition.comment.cs"}}},{"include":"#xml-doc-comment"}]},{"begin":"(^\\\\s+)?(//).*$","captures":{"1":{"name":"punctuation.whitespace.comment.leading.cs"},"2":{"name":"punctuation.definition.comment.cs"}},"name":"comment.line.double-slash.cs","while":"^(\\\\s*)(//).*$"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.cs"}},"end":"\\\\*/","name":"comment.block.cs"}]},"conditional-operator":{"patterns":[{"match":"\\\\?(?!\\\\?|\\\\s*[.\\\\[])","name":"keyword.operator.conditional.question-mark.cs"},{"match":":","name":"keyword.operator.conditional.colon.cs"}]},"constant-pattern":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#char-literal"},{"include":"#string-literal"},{"include":"#raw-string-literal"},{"include":"#verbatim-string-literal"},{"include":"#type-operator-expression"},{"include":"#expression-operator-expression"},{"include":"#expression-operators"},{"include":"#casted-constant-pattern"}]},"constructor-declaration":{"begin":"(?=@?[_[:alpha:]][_[:alnum:]]*\\\\s*\\\\()","end":"(?<=})|(?=;)","patterns":[{"captures":{"1":{"name":"entity.name.function.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\b"},{"begin":"(:)","beginCaptures":{"1":{"name":"punctuation.separator.colon.cs"}},"end":"(?=\\\\{|=>)","patterns":[{"include":"#constructor-initializer"}]},{"include":"#parenthesized-parameter-list"},{"include":"#preprocessor"},{"include":"#comment"},{"include":"#expression-body"},{"include":"#block"}]},"constructor-initializer":{"begin":"\\\\b(base|this)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"variable.language.$1.cs"}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"context-control-paren-statement":{"patterns":[{"include":"#fixed-statement"},{"include":"#lock-statement"},{"include":"#using-statement"}]},"context-control-statement":{"match":"\\\\b(checked|unchecked|unsafe)\\\\b(?!\\\\s*[(@_[:alpha:]])","name":"keyword.control.context.$1.cs"},"conversion-operator-declaration":{"begin":"\\\\b(?(?:ex|im)plicit)\\\\s*\\\\b(?operator)\\\\s*(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"captures":{"1":{"name":"storage.modifier.explicit.cs"}},"match":"\\\\b(explicit)\\\\b"},{"captures":{"1":{"name":"storage.modifier.implicit.cs"}},"match":"\\\\b(implicit)\\\\b"}]},"2":{"name":"storage.type.operator.cs"},"3":{"patterns":[{"include":"#type"}]}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#expression-body"},{"include":"#block"}]},"declaration-expression-local":{"captures":{"1":{"name":"storage.type.var.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.variable.local.cs"}},"match":"(?:\\\\b(var)\\\\b|(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*))\\\\s+(\\\\g)\\\\b\\\\s*(?=[]),])"},"declaration-expression-tuple":{"captures":{"1":{"name":"storage.type.var.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.variable.tuple-element.cs"}},"match":"(?:\\\\b(var)\\\\b|(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*))\\\\s+(\\\\g)\\\\b\\\\s*(?=[),])"},"declarations":{"patterns":[{"include":"#namespace-declaration"},{"include":"#type-declarations"},{"include":"#punctuation-semicolon"}]},"default-argument":{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.cs"}},"end":"(?=[),])","patterns":[{"include":"#expression"}]},"default-literal-expression":{"captures":{"1":{"name":"keyword.operator.expression.default.cs"}},"match":"\\\\b(default)\\\\b"},"delegate-declaration":{"begin":"\\\\b(delegate)\\\\b\\\\s+(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+(\\\\g)\\\\s*(<([^<>]+)>)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.type.delegate.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.type.delegate.cs"},"8":{"patterns":[{"include":"#type-parameter-list"}]}},"end":"(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#generic-constraints"}]},"designation-pattern":{"patterns":[{"include":"#intrusive"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#punctuation-comma"},{"include":"#designation-pattern"}]},{"include":"#simple-designation-pattern"}]},"destructor-declaration":{"begin":"(~)(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.tilde.cs"},"2":{"name":"entity.name.function.cs"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#expression-body"},{"include":"#block"}]},"directives":{"patterns":[{"include":"#extern-alias-directive"},{"include":"#using-directive"},{"include":"#attribute-section"},{"include":"#punctuation-semicolon"}]},"discard-pattern":{"match":"_(?![_[:alnum:]])","name":"variable.language.discard.cs"},"do-statement":{"begin":"(?)\\\\s*)?(?:(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*)?(?:(\\\\?)\\\\s*)?(?=\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.null-conditional.cs"},"2":{"name":"punctuation.accessor.cs"},"3":{"name":"punctuation.accessor.pointer.cs"},"4":{"name":"variable.other.object.property.cs"},"5":{"name":"keyword.operator.null-conditional.cs"}},"end":"(?<=])(?!\\\\s*\\\\[)","patterns":[{"include":"#bracketed-argument-list"}]},"else-part":{"begin":"(?|//|/\\\\*|$)","beginCaptures":{"1":{"name":"storage.type.accessor.$1.cs"}},"end":"(?<=[;}])|(?=})","patterns":[{"include":"#accessor-setter"}]}]},"event-declaration":{"begin":"\\\\b(event)\\\\b\\\\s*(?(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+)(?\\\\g\\\\s*\\\\.\\\\s*)?(\\\\g)\\\\s*(?=[,;={]|//|/\\\\*|$)","beginCaptures":{"1":{"name":"storage.type.event.cs"},"2":{"patterns":[{"include":"#type"}]},"8":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"9":{"name":"entity.name.variable.event.cs"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#event-accessors"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.event.cs"},{"include":"#punctuation-comma"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.cs"}},"end":"(?<=,)|(?=;)","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]}]},"explicit-anonymous-function-parameter":{"captures":{"1":{"name":"storage.modifier.$1.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.variable.parameter.cs"}},"match":"(?:\\\\b(ref|params|out|in)\\\\b\\\\s*)?(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?<(?:[^<>]|\\\\g)*>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)*\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s*\\\\b(\\\\g)\\\\b"},"expression":{"patterns":[{"include":"#preprocessor"},{"include":"#comment"},{"include":"#expression-operator-expression"},{"include":"#type-operator-expression"},{"include":"#default-literal-expression"},{"include":"#throw-expression"},{"include":"#raw-interpolated-string"},{"include":"#interpolated-string"},{"include":"#verbatim-interpolated-string"},{"include":"#type-builtin"},{"include":"#language-variable"},{"include":"#switch-statement-or-expression"},{"include":"#with-expression"},{"include":"#conditional-operator"},{"include":"#assignment-expression"},{"include":"#expression-operators"},{"include":"#await-expression"},{"include":"#query-expression"},{"include":"#as-expression"},{"include":"#is-expression"},{"include":"#anonymous-method-expression"},{"include":"#object-creation-expression"},{"include":"#array-creation-expression"},{"include":"#anonymous-object-creation-expression"},{"include":"#invocation-expression"},{"include":"#member-access-expression"},{"include":"#element-access-expression"},{"include":"#cast-expression"},{"include":"#literal"},{"include":"#parenthesized-expression"},{"include":"#tuple-deconstruction-assignment"},{"include":"#initializer-expression"},{"include":"#identifier"}]},"expression-body":{"begin":"=>","beginCaptures":{"0":{"name":"keyword.operator.arrow.cs"}},"end":"(?=[),;}])","patterns":[{"include":"#ref-modifier"},{"include":"#expression"}]},"expression-operator-expression":{"begin":"\\\\b(checked|unchecked|nameof)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.expression.$1.cs"},"2":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#expression"}]},"expression-operators":{"patterns":[{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.cs"},{"match":"[!=]=","name":"keyword.operator.comparison.cs"},{"match":"<=|>=|[<>]","name":"keyword.operator.relational.cs"},{"match":"!|&&|\\\\|\\\\|","name":"keyword.operator.logical.cs"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.cs"},{"match":"--","name":"keyword.operator.decrement.cs"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.cs"},{"match":"\\\\+|-(?!>)|[%*/]","name":"keyword.operator.arithmetic.cs"},{"match":"\\\\?\\\\?","name":"keyword.operator.null-coalescing.cs"},{"match":"\\\\.\\\\.","name":"keyword.operator.range.cs"}]},"extern-alias-directive":{"begin":"\\\\b(extern)\\\\s+(alias)\\\\b","beginCaptures":{"1":{"name":"keyword.other.directive.extern.cs"},"2":{"name":"keyword.other.directive.alias.cs"}},"end":"(?=;)","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"variable.other.alias.cs"}]},"field-declaration":{"begin":"(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+(\\\\g)\\\\s*(?!=[=>])(?=[,;=]|$)","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"6":{"name":"entity.name.variable.field.cs"}},"end":"(?=;)","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.field.cs"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"},{"include":"#class-or-struct-members"}]},"finally-clause":{"begin":"(?(?:ref\\\\s+)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*))\\\\s+(\\\\g)\\\\s+\\\\b(in)\\\\b"},{"captures":{"1":{"name":"storage.type.var.cs"},"2":{"patterns":[{"include":"#tuple-declaration-deconstruction-element-list"}]},"3":{"name":"keyword.control.loop.in.cs"}},"match":"(?:\\\\b(var)\\\\b\\\\s*)?(?\\\\((?:[^()]|\\\\g)+\\\\))\\\\s+\\\\b(in)\\\\b"},{"include":"#expression"}]}]},"generic-constraints":{"begin":"(where)\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(:)","beginCaptures":{"1":{"name":"storage.modifier.where.cs"},"2":{"name":"entity.name.type.type-parameter.cs"},"3":{"name":"punctuation.separator.colon.cs"}},"end":"(?=\\\\{|where|;|=>)","patterns":[{"match":"\\\\bclass\\\\b","name":"storage.type.class.cs"},{"match":"\\\\bstruct\\\\b","name":"storage.type.struct.cs"},{"match":"\\\\bdefault\\\\b","name":"keyword.other.constraint.default.cs"},{"match":"\\\\bnotnull\\\\b","name":"keyword.other.constraint.notnull.cs"},{"match":"\\\\bunmanaged\\\\b","name":"keyword.other.constraint.unmanaged.cs"},{"captures":{"1":{"name":"keyword.operator.expression.new.cs"},"2":{"name":"punctuation.parenthesis.open.cs"},"3":{"name":"punctuation.parenthesis.close.cs"}},"match":"(new)\\\\s*(\\\\()\\\\s*(\\\\))"},{"include":"#type"},{"include":"#punctuation-comma"},{"include":"#generic-constraints"}]},"goto-statement":{"begin":"(?(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+)(?\\\\g\\\\s*\\\\.\\\\s*)?(?this)\\\\s*(?=\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"7":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"8":{"name":"variable.language.this.cs"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#bracketed-parameter-list"},{"include":"#property-accessors"},{"include":"#accessor-getter-expression"},{"include":"#variable-initializer"}]},"initializer-expression":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"interface-declaration":{"begin":"(?=\\\\binterface\\\\b)","end":"(?<=})|(?=;)","patterns":[{"begin":"(interface)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)","beginCaptures":{"1":{"name":"storage.type.interface.cs"},"2":{"name":"entity.name.type.interface.cs"}},"end":"(?=\\\\{)|(?=;)","patterns":[{"include":"#comment"},{"include":"#type-parameter-list"},{"include":"#base-types"},{"include":"#generic-constraints"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#interface-members"}]},{"include":"#preprocessor"},{"include":"#comment"}]},"interface-members":{"patterns":[{"include":"#preprocessor"},{"include":"#comment"},{"include":"#storage-modifier"},{"include":"#property-declaration"},{"include":"#event-declaration"},{"include":"#indexer-declaration"},{"include":"#method-declaration"},{"include":"#operator-declaration"},{"include":"#attribute-section"},{"include":"#punctuation-semicolon"}]},"interpolated-string":{"begin":"\\\\$\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.cs"},"2":{"name":"invalid.illegal.newline.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#string-character-escape"},{"include":"#interpolation"}]},"interpolation":{"begin":"(?<=[^{]|^)((?:\\\\{\\\\{)*)(\\\\{)(?=[^{])","beginCaptures":{"1":{"name":"string.quoted.double.cs"},"2":{"name":"punctuation.definition.interpolation.begin.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.cs"}},"name":"meta.interpolation.cs","patterns":[{"include":"#expression"}]},"intrusive":{"patterns":[{"include":"#preprocessor"},{"include":"#comment"}]},"invocation-expression":{"begin":"(?:(?:(\\\\?)\\\\s*)?(\\\\.)\\\\s*|(->)\\\\s*)?(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(<(?[^()<>]|\\\\((?:[^()<>]|<[^()<>]*>|\\\\([^()<>]*\\\\))*\\\\)|<\\\\g*>)*>\\\\s*)?(?=\\\\()","beginCaptures":{"1":{"name":"keyword.operator.null-conditional.cs"},"2":{"name":"punctuation.accessor.cs"},"3":{"name":"punctuation.accessor.pointer.cs"},"4":{"name":"entity.name.function.cs"},"5":{"patterns":[{"include":"#type-arguments"}]}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"is-expression":{"begin":"(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)?\\\\s+(\\\\g)\\\\b\\\\s*\\\\b(in)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.expression.query.join.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.variable.range-variable.cs"},"8":{"name":"keyword.operator.expression.query.in.cs"}},"end":"(?=[);])","patterns":[{"include":"#join-on"},{"include":"#join-equals"},{"include":"#join-into"},{"include":"#query-body"},{"include":"#expression"}]},"join-equals":{"captures":{"1":{"name":"keyword.operator.expression.query.equals.cs"}},"match":"\\\\b(equals)\\\\b\\\\s*"},"join-into":{"captures":{"1":{"name":"keyword.operator.expression.query.into.cs"},"2":{"name":"entity.name.variable.range-variable.cs"}},"match":"\\\\b(into)\\\\b\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)\\\\b\\\\s*"},"join-on":{"captures":{"1":{"name":"keyword.operator.expression.query.on.cs"}},"match":"\\\\b(on)\\\\b\\\\s*"},"labeled-statement":{"captures":{"1":{"name":"entity.name.label.cs"},"2":{"name":"punctuation.separator.colon.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(:)"},"language-variable":{"patterns":[{"match":"\\\\b(base|this)\\\\b","name":"variable.language.$1.cs"},{"match":"\\\\b(value)\\\\b","name":"variable.other.$1.cs"}]},"let-clause":{"begin":"\\\\b(let)\\\\b\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)\\\\b\\\\s*(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.expression.query.let.cs"},"2":{"name":"entity.name.variable.range-variable.cs"},"3":{"name":"keyword.operator.assignment.cs"}},"end":"(?=[);])","patterns":[{"include":"#query-body"},{"include":"#expression"}]},"list-pattern":{"begin":"(?=\\\\[)","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.squarebracket.open.cs"}},"end":"]","endCaptures":{"0":{"name":"punctuation.squarebracket.close.cs"}},"patterns":[{"include":"#pattern"},{"include":"#punctuation-comma"}]},{"begin":"(?<=])","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#intrusive"},{"include":"#simple-designation-pattern"}]}]},"literal":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#char-literal"},{"include":"#raw-string-literal"},{"include":"#string-literal"},{"include":"#verbatim-string-literal"},{"include":"#tuple-literal"}]},"local-constant-declaration":{"begin":"\\\\b(?const)\\\\b\\\\s*(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+(\\\\g)\\\\s*(?=[,;=])","beginCaptures":{"1":{"name":"storage.modifier.const.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.variable.local.cs"}},"end":"(?=;)","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.local.cs"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"}]},"local-declaration":{"patterns":[{"include":"#local-constant-declaration"},{"include":"#local-variable-declaration"},{"include":"#local-function-declaration"},{"include":"#local-tuple-var-deconstruction"}]},"local-function-declaration":{"begin":"\\\\b((?:(?:async|unsafe|static|extern)\\\\s+)*)(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?)?(?:\\\\s*\\\\[\\\\s*(?:,\\\\s*)*](?:\\\\s*\\\\?)?)*)\\\\s+(\\\\g)\\\\s*(<[^<>]+>)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#storage-modifier"}]},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.function.cs"},"8":{"patterns":[{"include":"#type-parameter-list"}]}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#generic-constraints"},{"include":"#expression-body"},{"include":"#block"}]},"local-tuple-var-deconstruction":{"begin":"\\\\b(var)\\\\b\\\\s*(?\\\\((?:[^()]|\\\\g)+\\\\))\\\\s*(?=[);=])","beginCaptures":{"1":{"name":"storage.type.var.cs"},"2":{"patterns":[{"include":"#tuple-declaration-deconstruction-element-list"}]}},"end":"(?=[);])","patterns":[{"include":"#comment"},{"include":"#variable-initializer"}]},"local-variable-declaration":{"begin":"(?:(?:\\\\b(ref)\\\\s+(?:\\\\b(readonly)\\\\s+)?)?\\\\b(var)\\\\b|(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*[*?]\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*))\\\\s+(\\\\g)\\\\s*(?!=>)(?=[),;=])","beginCaptures":{"1":{"name":"storage.modifier.ref.cs"},"2":{"name":"storage.modifier.readonly.cs"},"3":{"name":"storage.type.var.cs"},"4":{"patterns":[{"include":"#type"}]},"9":{"name":"entity.name.variable.local.cs"}},"end":"(?=[);}])","patterns":[{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.variable.local.cs"},{"include":"#punctuation-comma"},{"include":"#comment"},{"include":"#variable-initializer"}]},"lock-statement":{"begin":"\\\\b(lock)\\\\b","beginCaptures":{"1":{"name":"keyword.control.context.lock.cs"}},"end":"(?<=\\\\))|(?=[;}])","patterns":[{"include":"#intrusive"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#intrusive"},{"include":"#expression"}]}]},"member-access-expression":{"patterns":[{"captures":{"1":{"name":"keyword.operator.null-conditional.cs"},"2":{"name":"punctuation.accessor.cs"},"3":{"name":"punctuation.accessor.pointer.cs"},"4":{"name":"variable.other.object.property.cs"}},"match":"(?:(?:(\\\\?)\\\\s*)?(\\\\.)\\\\s*|(->)\\\\s*)(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?![(_[:alnum:]]|(\\\\?)?\\\\[|<)"},{"captures":{"1":{"name":"punctuation.accessor.cs"},"2":{"name":"variable.other.object.cs"},"3":{"patterns":[{"include":"#type-arguments"}]}},"match":"(\\\\.)?\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)(?\\\\s*<([^<>]|\\\\g)+>\\\\s*)(?=(\\\\s*\\\\?)?\\\\s*\\\\.\\\\s*@?[_[:alpha:]][_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.object.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)(?=\\\\s*(?:(?:\\\\?\\\\s*)?\\\\.|->)\\\\s*@?[_[:alpha:]][_[:alnum:]]*)"}]},"method-declaration":{"begin":"(?(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+)(?\\\\g\\\\s*\\\\.\\\\s*)?(\\\\g)\\\\s*(<([^<>]+)>)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"7":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"8":{"name":"entity.name.function.cs"},"9":{"patterns":[{"include":"#type-parameter-list"}]}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#generic-constraints"},{"include":"#expression-body"},{"include":"#block"}]},"named-argument":{"begin":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.variable.parameter.cs"},"2":{"name":"punctuation.separator.colon.cs"}},"end":"(?=([]),]))","patterns":[{"include":"#argument"}]},"namespace-declaration":{"begin":"\\\\b(namespace)\\\\s+","beginCaptures":{"1":{"name":"storage.type.namespace.cs"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.type.namespace.cs"},{"include":"#punctuation-accessor"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#declarations"},{"include":"#using-directive"},{"include":"#punctuation-semicolon"}]}]},"null-literal":{"match":"(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s*(?=\\\\{|//|/\\\\*|$)"},"object-creation-expression-with-parameters":{"begin":"(new)(?:\\\\s+(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*))?\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.operator.expression.new.cs"},"2":{"patterns":[{"include":"#type"}]}},"end":"(?<=\\\\))","patterns":[{"include":"#argument-list"}]},"operator-assignment":{"match":"(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s*\\\\b(?operator)\\\\b\\\\s*(?[-!%\\\\&*+/<=>^|~]+|true|false)\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"6":{"name":"storage.type.operator.cs"},"7":{"name":"entity.name.function.cs"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#parenthesized-parameter-list"},{"include":"#expression-body"},{"include":"#block"}]},"orderby-clause":{"begin":"\\\\b(orderby)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.expression.query.orderby.cs"}},"end":"(?=[);])","patterns":[{"include":"#ordering-direction"},{"include":"#query-body"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"ordering-direction":{"captures":{"1":{"name":"keyword.operator.expression.query.$1.cs"}},"match":"\\\\b((?:a|de)scending)\\\\b"},"parameter":{"captures":{"1":{"name":"storage.modifier.$1.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.variable.parameter.cs"}},"match":"(?:\\\\b(ref|params|out|in|this)\\\\b\\\\s+)?(?(?:ref\\\\s+)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+(\\\\g)"},"parenthesized-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#expression"}]},"parenthesized-parameter-list":{"begin":"(\\\\()","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"(\\\\))","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#comment"},{"include":"#attribute-section"},{"include":"#parameter"},{"include":"#punctuation-comma"},{"include":"#variable-initializer"}]},"pattern":{"patterns":[{"include":"#intrusive"},{"include":"#combinator-pattern"},{"include":"#discard-pattern"},{"include":"#constant-pattern"},{"include":"#relational-pattern"},{"include":"#var-pattern"},{"include":"#type-pattern"},{"include":"#positional-pattern"},{"include":"#property-pattern"},{"include":"#list-pattern"},{"include":"#slice-pattern"}]},"positional-pattern":{"begin":"(?=\\\\()","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#subpattern"},{"include":"#punctuation-comma"}]},{"begin":"(?<=\\\\))","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#intrusive"},{"include":"#property-pattern"},{"include":"#simple-designation-pattern"}]}]},"preprocessor":{"begin":"^\\\\s*(#)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.hash.cs"}},"end":"(?<=$)","name":"meta.preprocessor.cs","patterns":[{"include":"#comment"},{"include":"#preprocessor-define-or-undef"},{"include":"#preprocessor-if-or-elif"},{"include":"#preprocessor-else-or-endif"},{"include":"#preprocessor-warning-or-error"},{"include":"#preprocessor-region"},{"include":"#preprocessor-endregion"},{"include":"#preprocessor-load"},{"include":"#preprocessor-r"},{"include":"#preprocessor-line"},{"include":"#preprocessor-pragma-warning"},{"include":"#preprocessor-pragma-checksum"}]},"preprocessor-define-or-undef":{"captures":{"1":{"name":"keyword.preprocessor.define.cs"},"2":{"name":"keyword.preprocessor.undef.cs"},"3":{"name":"entity.name.variable.preprocessor.symbol.cs"}},"match":"\\\\b(?:(define)|(undef))\\\\b\\\\s*\\\\b([_[:alpha:]][_[:alnum:]]*)\\\\b"},"preprocessor-else-or-endif":{"captures":{"1":{"name":"keyword.preprocessor.else.cs"},"2":{"name":"keyword.preprocessor.endif.cs"}},"match":"\\\\b(?:(else)|(endif))\\\\b"},"preprocessor-endregion":{"captures":{"1":{"name":"keyword.preprocessor.endregion.cs"}},"match":"\\\\b(endregion)\\\\b"},"preprocessor-expression":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#preprocessor-expression"}]},{"captures":{"1":{"name":"constant.language.boolean.true.cs"},"2":{"name":"constant.language.boolean.false.cs"},"3":{"name":"entity.name.variable.preprocessor.symbol.cs"}},"match":"\\\\b(?:(true)|(false)|([_[:alpha:]][_[:alnum:]]*))\\\\b"},{"captures":{"1":{"name":"keyword.operator.comparison.cs"},"2":{"name":"keyword.operator.logical.cs"}},"match":"([!=]=)|(!|&&|\\\\|\\\\|)"}]},"preprocessor-if-or-elif":{"begin":"\\\\b(?:(if)|(elif))\\\\b","beginCaptures":{"1":{"name":"keyword.preprocessor.if.cs"},"2":{"name":"keyword.preprocessor.elif.cs"}},"end":"(?=$)","patterns":[{"include":"#comment"},{"include":"#preprocessor-expression"}]},"preprocessor-line":{"begin":"\\\\b(line)\\\\b","beginCaptures":{"1":{"name":"keyword.preprocessor.line.cs"}},"end":"(?=$)","patterns":[{"captures":{"1":{"name":"keyword.preprocessor.default.cs"},"2":{"name":"keyword.preprocessor.hidden.cs"}},"match":"\\\\b(default|hidden)"},{"captures":{"0":{"name":"constant.numeric.decimal.cs"}},"match":"[0-9]+"},{"captures":{"0":{"name":"string.quoted.double.cs"}},"match":"\\"[^\\"]*\\""}]},"preprocessor-load":{"begin":"\\\\b(load)\\\\b","beginCaptures":{"1":{"name":"keyword.preprocessor.load.cs"}},"end":"(?=$)","patterns":[{"captures":{"0":{"name":"string.quoted.double.cs"}},"match":"\\"[^\\"]*\\""}]},"preprocessor-pragma-checksum":{"captures":{"1":{"name":"keyword.preprocessor.pragma.cs"},"2":{"name":"keyword.preprocessor.checksum.cs"},"3":{"name":"string.quoted.double.cs"},"4":{"name":"string.quoted.double.cs"},"5":{"name":"string.quoted.double.cs"}},"match":"\\\\b(pragma)\\\\b\\\\s*\\\\b(checksum)\\\\b\\\\s*(\\"[^\\"]*\\")\\\\s*(\\"[^\\"]*\\")\\\\s*(\\"[^\\"]*\\")"},"preprocessor-pragma-warning":{"captures":{"1":{"name":"keyword.preprocessor.pragma.cs"},"2":{"name":"keyword.preprocessor.warning.cs"},"3":{"name":"keyword.preprocessor.disable.cs"},"4":{"name":"keyword.preprocessor.restore.cs"},"5":{"patterns":[{"captures":{"0":{"name":"constant.numeric.decimal.cs"}},"match":"[0-9]+"},{"include":"#punctuation-comma"}]}},"match":"\\\\b(pragma)\\\\b\\\\s*\\\\b(warning)\\\\b\\\\s*\\\\b(?:(disable)|(restore))\\\\b(\\\\s*[0-9]+(?:\\\\s*,\\\\s*[0-9]+)?)?"},"preprocessor-r":{"begin":"\\\\b(r)\\\\b","beginCaptures":{"1":{"name":"keyword.preprocessor.r.cs"}},"end":"(?=$)","patterns":[{"captures":{"0":{"name":"string.quoted.double.cs"}},"match":"\\"[^\\"]*\\""}]},"preprocessor-region":{"captures":{"1":{"name":"keyword.preprocessor.region.cs"},"2":{"name":"string.unquoted.preprocessor.message.cs"}},"match":"\\\\b(region)\\\\b\\\\s*(.*)(?=$)"},"preprocessor-warning-or-error":{"captures":{"1":{"name":"keyword.preprocessor.warning.cs"},"2":{"name":"keyword.preprocessor.error.cs"},"3":{"name":"string.unquoted.preprocessor.message.cs"}},"match":"\\\\b(?:(warning)|(error))\\\\b\\\\s*(.*)(?=$)"},"property-accessors":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#comment"},{"include":"#attribute-section"},{"match":"\\\\b(private|protected|internal)\\\\b","name":"storage.modifier.$1.cs"},{"begin":"\\\\b(get)\\\\b\\\\s*(?=[;{]|=>|//|/\\\\*|$)","beginCaptures":{"1":{"name":"storage.type.accessor.$1.cs"}},"end":"(?<=[;}])|(?=})","patterns":[{"include":"#accessor-getter"}]},{"begin":"\\\\b(set|init)\\\\b\\\\s*(?=[;{]|=>|//|/\\\\*|$)","beginCaptures":{"1":{"name":"storage.type.accessor.$1.cs"}},"end":"(?<=[;}])|(?=})","patterns":[{"include":"#accessor-setter"}]}]},"property-declaration":{"begin":"(?![[:word:]\\\\s]*\\\\b(?:class|interface|struct|enum|event)\\\\b)(?(?(?:ref\\\\s+(?:readonly\\\\s+)?)?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)\\\\s+)(?\\\\g\\\\s*\\\\.\\\\s*)?(?\\\\g)\\\\s*(?=\\\\{|=>|//|/\\\\*|$)","beginCaptures":{"1":{"patterns":[{"include":"#type"}]},"7":{"patterns":[{"include":"#type"},{"include":"#punctuation-accessor"}]},"8":{"name":"entity.name.variable.property.cs"}},"end":"(?<=})|(?=;)","patterns":[{"include":"#comment"},{"include":"#property-accessors"},{"include":"#accessor-getter-expression"},{"include":"#variable-initializer"},{"include":"#class-or-struct-members"}]},"property-pattern":{"begin":"(?=\\\\{)","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#subpattern"},{"include":"#punctuation-comma"}]},{"begin":"(?<=})","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#intrusive"},{"include":"#simple-designation-pattern"}]}]},"punctuation-accessor":{"match":"\\\\.","name":"punctuation.accessor.cs"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.cs"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.cs"},"query-body":{"patterns":[{"include":"#let-clause"},{"include":"#where-clause"},{"include":"#join-clause"},{"include":"#orderby-clause"},{"include":"#select-clause"},{"include":"#group-clause"}]},"query-expression":{"begin":"\\\\b(from)\\\\b\\\\s*(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)?\\\\s+(\\\\g)\\\\b\\\\s*\\\\b(in)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.expression.query.from.cs"},"2":{"patterns":[{"include":"#type"}]},"7":{"name":"entity.name.variable.range-variable.cs"},"8":{"name":"keyword.operator.expression.query.in.cs"}},"end":"(?=[);])","patterns":[{"include":"#query-body"},{"include":"#expression"}]},"raw-interpolated-string":{"patterns":[{"include":"#raw-interpolated-string-five-or-more-quote-one-or-more-interpolation"},{"include":"#raw-interpolated-string-three-or-more-quote-three-or-more-interpolation"},{"include":"#raw-interpolated-string-quadruple-quote-double-interpolation"},{"include":"#raw-interpolated-string-quadruple-quote-single-interpolation"},{"include":"#raw-interpolated-string-triple-quote-double-interpolation"},{"include":"#raw-interpolated-string-triple-quote-single-interpolation"}]},"raw-interpolated-string-five-or-more-quote-one-or-more-interpolation":{"begin":"\\\\$+\\"\\"\\"\\"\\"+","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"\\"\\"+","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs"},"raw-interpolated-string-quadruple-quote-double-interpolation":{"begin":"\\\\$\\\\$\\"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#double-raw-interpolation"}]},"raw-interpolated-string-quadruple-quote-single-interpolation":{"begin":"\\\\$\\"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#raw-interpolation"}]},"raw-interpolated-string-three-or-more-quote-three-or-more-interpolation":{"begin":"\\\\$\\\\$\\\\$+\\"\\"\\"+","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"+","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs"},"raw-interpolated-string-triple-quote-double-interpolation":{"begin":"\\\\$\\\\$\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#double-raw-interpolation"}]},"raw-interpolated-string-triple-quote-single-interpolation":{"begin":"\\\\$\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#raw-interpolation"}]},"raw-interpolation":{"begin":"(?<=[^{]|^)(\\\\{*)(\\\\{)(?=[^{])","beginCaptures":{"1":{"name":"string.quoted.double.cs"},"2":{"name":"punctuation.definition.interpolation.begin.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.cs"}},"name":"meta.interpolation.cs","patterns":[{"include":"#expression"}]},"raw-string-literal":{"patterns":[{"include":"#raw-string-literal-more"},{"include":"#raw-string-literal-quadruple"},{"include":"#raw-string-literal-triple"}]},"raw-string-literal-more":{"begin":"\\"\\"\\"\\"\\"+","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"\\"\\"+","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs"},"raw-string-literal-quadruple":{"begin":"\\"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs"},"raw-string-literal-triple":{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs"},"readonly-modifier":{"match":"\\\\breadonly\\\\b","name":"storage.modifier.readonly.cs"},"record-declaration":{"begin":"(?=\\\\brecord\\\\b)","end":"(?<=})|(?=;)","patterns":[{"begin":"(record)\\\\b\\\\s+(@?[_[:alpha:]][_[:alnum:]]*)","beginCaptures":{"1":{"name":"storage.type.record.cs"},"2":{"name":"entity.name.type.class.cs"}},"end":"(?=\\\\{)|(?=;)","patterns":[{"include":"#comment"},{"include":"#type-parameter-list"},{"include":"#parenthesized-parameter-list"},{"include":"#base-types"},{"include":"#generic-constraints"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#class-or-struct-members"}]},{"include":"#preprocessor"},{"include":"#comment"}]},"ref-modifier":{"match":"\\\\bref\\\\b","name":"storage.modifier.ref.cs"},"relational-pattern":{"begin":"<=?|>=?","beginCaptures":{"0":{"name":"keyword.operator.relational.cs"}},"end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#expression"}]},"return-statement":{"begin":"(?","beginCaptures":{"0":{"name":"keyword.operator.arrow.cs"}},"end":"(?=[,}])","patterns":[{"include":"#expression"}]},{"begin":"\\\\b(when)\\\\b","beginCaptures":{"1":{"name":"keyword.control.conditional.when.cs"}},"end":"(?==>|[,}])","patterns":[{"include":"#case-guard"}]},{"begin":"(?!\\\\s)","end":"(?=\\\\bwhen\\\\b|=>|[,}])","patterns":[{"include":"#pattern"}]}]},"switch-label":{"begin":"\\\\b(case|default)\\\\b","beginCaptures":{"1":{"name":"keyword.control.conditional.$1.cs"}},"end":"(:)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.colon.cs"}},"patterns":[{"begin":"\\\\b(when)\\\\b","beginCaptures":{"1":{"name":"keyword.control.conditional.when.cs"}},"end":"(?=[:}])","patterns":[{"include":"#case-guard"}]},{"begin":"(?!\\\\s)","end":"(?=\\\\bwhen\\\\b|[:}])","patterns":[{"include":"#pattern"}]}]},"switch-statement":{"patterns":[{"include":"#intrusive"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.curlybrace.open.cs"}},"end":"}","endCaptures":{"0":{"name":"punctuation.curlybrace.close.cs"}},"patterns":[{"include":"#switch-label"},{"include":"#statement"}]}]},"switch-statement-or-expression":{"begin":"(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\))\\\\s*(?!=[=>])(?==)"},"tuple-deconstruction-element-list":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#comment"},{"include":"#tuple-deconstruction-element-list"},{"include":"#declaration-expression-tuple"},{"include":"#punctuation-comma"},{"captures":{"1":{"name":"variable.other.readwrite.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\b\\\\s*(?=[),])"}]},"tuple-element":{"captures":{"1":{"patterns":[{"include":"#type"}]},"6":{"name":"entity.name.variable.tuple-element.cs"}},"match":"(?(?:(?:(?@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?\\\\g\\\\s*(?\\\\s*<(?:[^<>]|\\\\g)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g)*|(?\\\\s*\\\\((?:[^()]|\\\\g)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*\\\\??\\\\s*)*)(?:(?\\\\g)\\\\b)?"},"tuple-literal":{"begin":"(\\\\()(?=.*[,:])","beginCaptures":{"1":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#comment"},{"include":"#tuple-literal-element"},{"include":"#expression"},{"include":"#punctuation-comma"}]},"tuple-literal-element":{"begin":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(?=:)","beginCaptures":{"1":{"name":"entity.name.variable.tuple-element.cs"}},"end":"(:)","endCaptures":{"0":{"name":"punctuation.separator.colon.cs"}}},"tuple-type":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#tuple-element"},{"include":"#punctuation-comma"}]},"type":{"patterns":[{"include":"#comment"},{"include":"#ref-modifier"},{"include":"#readonly-modifier"},{"include":"#tuple-type"},{"include":"#type-builtin"},{"include":"#type-name"},{"include":"#type-arguments"},{"include":"#type-array-suffix"},{"include":"#type-nullable-suffix"},{"include":"#type-pointer-suffix"}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.cs"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.cs"}},"patterns":[{"include":"#type"},{"include":"#punctuation-comma"}]},"type-array-suffix":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.squarebracket.open.cs"}},"end":"]","endCaptures":{"0":{"name":"punctuation.squarebracket.close.cs"}},"patterns":[{"include":"#intrusive"},{"include":"#punctuation-comma"}]},"type-builtin":{"captures":{"1":{"name":"keyword.type.$1.cs"}},"match":"\\\\b(bool|s?byte|u?short|n?u?int|u?long|float|double|decimal|char|string|object|void|dynamic)\\\\b"},"type-declarations":{"patterns":[{"include":"#preprocessor"},{"include":"#comment"},{"include":"#storage-modifier"},{"include":"#class-declaration"},{"include":"#delegate-declaration"},{"include":"#enum-declaration"},{"include":"#interface-declaration"},{"include":"#struct-declaration"},{"include":"#record-declaration"},{"include":"#attribute-section"},{"include":"#punctuation-semicolon"}]},"type-name":{"patterns":[{"captures":{"1":{"name":"entity.name.type.alias.cs"},"2":{"name":"punctuation.separator.coloncolon.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(::)"},{"captures":{"1":{"name":"entity.name.type.cs"},"2":{"name":"punctuation.accessor.cs"}},"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(\\\\.)"},{"captures":{"1":{"name":"punctuation.accessor.cs"},"2":{"name":"entity.name.type.cs"}},"match":"(\\\\.)\\\\s*(@?[_[:alpha:]][_[:alnum:]]*)"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.type.cs"}]},"type-nullable-suffix":{"match":"\\\\?","name":"punctuation.separator.question-mark.cs"},"type-operator-expression":{"begin":"\\\\b(default|sizeof|typeof)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.expression.$1.cs"},"2":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"#type"}]},"type-parameter-list":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.cs"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.cs"}},"patterns":[{"match":"\\\\b(in|out)\\\\b","name":"storage.modifier.$1.cs"},{"match":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\b","name":"entity.name.type.type-parameter.cs"},{"include":"#comment"},{"include":"#punctuation-comma"},{"include":"#attribute-section"}]},"type-pattern":{"begin":"(?=@?[_[:alpha:]][_[:alnum:]]*)","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"begin":"\\\\G","end":"(?!\\\\G[@_[:alpha:]])(?=[]\\\\&(),:;=@^_{|}[:alpha:]]|(?:\\\\s|^)\\\\?|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#intrusive"},{"include":"#type-subpattern"}]},{"begin":"(?=[(@_{[:alpha:]])","end":"(?=[]\\\\&),:;=?^|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#intrusive"},{"include":"#positional-pattern"},{"include":"#property-pattern"},{"include":"#simple-designation-pattern"}]}]},"type-pointer-suffix":{"match":"\\\\*","name":"punctuation.separator.asterisk.cs"},"type-subpattern":{"patterns":[{"include":"#type-builtin"},{"begin":"(@?[_[:alpha:]][_[:alnum:]]*)\\\\s*(::)","beginCaptures":{"1":{"name":"entity.name.type.alias.cs"},"2":{"name":"punctuation.separator.coloncolon.cs"}},"end":"(?<=[_[:alnum:]])|(?=[]\\\\&(),.:-=?\\\\[^{|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#intrusive"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.type.cs"}]},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.type.cs"},{"begin":"\\\\.","beginCaptures":{"0":{"name":"punctuation.accessor.cs"}},"end":"(?<=[_[:alnum:]])|(?=[]\\\\&(),:-=?\\\\[^{|}]|!=|\\\\b(and|or|when)\\\\b)","patterns":[{"include":"#intrusive"},{"match":"@?[_[:alpha:]][_[:alnum:]]*","name":"entity.name.type.cs"}]},{"include":"#type-arguments"},{"include":"#type-array-suffix"},{"match":"(?])","beginCaptures":{"1":{"name":"keyword.operator.assignment.cs"}},"end":"(?=[]),;}])","patterns":[{"include":"#ref-modifier"},{"include":"#expression"}]},"verbatim-interpolated-string":{"begin":"(?:\\\\$@|@\\\\$)\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"(?=[^\\"])","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#verbatim-string-character-escape"},{"include":"#interpolation"}]},"verbatim-string-character-escape":{"match":"\\"\\"","name":"constant.character.escape.cs"},"verbatim-string-literal":{"begin":"@\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"(?=[^\\"])","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#verbatim-string-character-escape"}]},"when-clause":{"begin":"(?","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.unquoted.cdata.cs"},"xml-character-entity":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.constant.cs"},"3":{"name":"punctuation.definition.constant.cs"}},"match":"(&)([:_[:alpha:]][-.:_[:alnum:]]*|#\\\\d+|#x\\\\h+)(;)","name":"constant.character.entity.cs"},{"match":"&","name":"invalid.illegal.bad-ampersand.cs"}]},"xml-comment":{"begin":"","endCaptures":{"0":{"name":"punctuation.definition.comment.cs"}},"name":"comment.block.cs"},"xml-doc-comment":{"patterns":[{"include":"#xml-comment"},{"include":"#xml-character-entity"},{"include":"#xml-cdata"},{"include":"#xml-tag"}]},"xml-string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.single.cs","patterns":[{"include":"#xml-character-entity"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cs"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.cs"}},"name":"string.quoted.double.cs","patterns":[{"include":"#xml-character-entity"}]}]},"xml-tag":{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.cs"}},"name":"meta.tag.cs","patterns":[{"include":"#xml-attribute"}]},"yield-break-statement":{"captures":{"1":{"name":"keyword.control.flow.yield.cs"},"2":{"name":"keyword.control.flow.break.cs"}},"match":"(?*\/]/.test(t)?c(null,"select-op"):t=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?c("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(t)?c(null,t):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(r.tokenize=ie),c("variableName.function","variable")):/[\w\\\-]/.test(t)?(e.eatWhile(/[\w\\\-]/),c("property","word")):c(null,null)}function L(e){return function(r,t){for(var i=!1,d;(d=r.next())!=null;){if(d==e&&!i){e==")"&&r.backUp(1);break}i=!i&&d=="\\"}return(d==e||!i&&e!=")")&&(t.tokenize=null),c("string","string")}}function ie(e,r){return e.next(),e.match(/^\s*[\"\')]/,!1)?r.tokenize=null:r.tokenize=L(")"),c(null,"(")}function W(e,r,t){this.type=e,this.indent=r,this.prev=t}function s(e,r,t,i){return e.context=new W(t,r.indentation()+(i===!1?0:r.indentUnit),e.context),t}function p(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function k(e,r,t){return n[t.context.type](e,r,t)}function h(e,r,t,i){for(var d=i||1;d>0;d--)t.context=t.context.prev;return k(e,r,t)}function D(e){var r=e.current().toLowerCase();a=N.hasOwnProperty(r)?"atom":F.hasOwnProperty(r)?"keyword":"variable"}var n={};return n.top=function(e,r,t){if(e=="{")return s(t,r,"block");if(e=="}"&&t.context.prev)return p(t);if(re&&/@component/i.test(e))return s(t,r,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(t,r,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(t,r,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return t.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return s(t,r,"at");if(e=="hash")a="builtin";else if(e=="word")a="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return s(t,r,"interpolation");if(e==":")return"pseudo";if(b&&e=="(")return s(t,r,"parens")}return t.context.type},n.block=function(e,r,t){if(e=="word"){var i=r.current().toLowerCase();return C.hasOwnProperty(i)?(a="property","maybeprop"):S.hasOwnProperty(i)?(a=$?"string.special":"property","maybeprop"):b?(a=r.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(a="error","maybeprop")}else return e=="meta"?"block":!b&&(e=="hash"||e=="qualifier")?(a="error","block"):n.top(e,r,t)},n.maybeprop=function(e,r,t){return e==":"?s(t,r,"prop"):k(e,r,t)},n.prop=function(e,r,t){if(e==";")return p(t);if(e=="{"&&b)return s(t,r,"propBlock");if(e=="}"||e=="{")return h(e,r,t);if(e=="(")return s(t,r,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(r.current()))a="error";else if(e=="word")D(r);else if(e=="interpolation")return s(t,r,"interpolation");return"prop"},n.propBlock=function(e,r,t){return e=="}"?p(t):e=="word"?(a="property","maybeprop"):t.context.type},n.parens=function(e,r,t){return e=="{"||e=="}"?h(e,r,t):e==")"?p(t):e=="("?s(t,r,"parens"):e=="interpolation"?s(t,r,"interpolation"):(e=="word"&&D(r),"parens")},n.pseudo=function(e,r,t){return e=="meta"?"pseudo":e=="word"?(a="variableName.constant",t.context.type):k(e,r,t)},n.documentTypes=function(e,r,t){return e=="word"&&f.hasOwnProperty(r.current())?(a="tag",t.context.type):n.atBlock(e,r,t)},n.atBlock=function(e,r,t){if(e=="(")return s(t,r,"atBlock_parens");if(e=="}"||e==";")return h(e,r,t);if(e=="{")return p(t)&&s(t,r,b?"block":"top");if(e=="interpolation")return s(t,r,"interpolation");if(e=="word"){var i=r.current().toLowerCase();a=i=="only"||i=="not"||i=="and"||i=="or"?"keyword":G.hasOwnProperty(i)?"attribute":J.hasOwnProperty(i)?"property":Q.hasOwnProperty(i)?"keyword":C.hasOwnProperty(i)?"property":S.hasOwnProperty(i)?$?"string.special":"property":N.hasOwnProperty(i)?"atom":F.hasOwnProperty(i)?"keyword":"error"}return t.context.type},n.atComponentBlock=function(e,r,t){return e=="}"?h(e,r,t):e=="{"?p(t)&&s(t,r,b?"block":"top",!1):(e=="word"&&(a="error"),t.context.type)},n.atBlock_parens=function(e,r,t){return e==")"?p(t):e=="{"||e=="}"?h(e,r,t,2):n.atBlock(e,r,t)},n.restricted_atBlock_before=function(e,r,t){return e=="{"?s(t,r,"restricted_atBlock"):e=="word"&&t.stateArg=="@counter-style"?(a="variable","restricted_atBlock_before"):k(e,r,t)},n.restricted_atBlock=function(e,r,t){return e=="}"?(t.stateArg=null,p(t)):e=="word"?(a=t.stateArg=="@font-face"&&!R.hasOwnProperty(r.current().toLowerCase())||t.stateArg=="@counter-style"&&!ee.hasOwnProperty(r.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},n.keyframes=function(e,r,t){return e=="word"?(a="variable","keyframes"):e=="{"?s(t,r,"top"):k(e,r,t)},n.at=function(e,r,t){return e==";"?p(t):e=="{"||e=="}"?h(e,r,t):(e=="word"?a="tag":e=="hash"&&(a="builtin"),"at")},n.interpolation=function(e,r,t){return e=="}"?p(t):e=="{"||e==";"?h(e,r,t):(e=="word"?a="variable":e!="variable"&&e!="("&&e!=")"&&(a="error"),"interpolation")},{name:o.name,startState:function(){return{tokenize:null,state:l?"block":"top",stateArg:null,context:new W(l?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var t=(r.tokenize||oe)(e,r);return t&&typeof t=="object"&&(w=t[1],t=t[0]),a=t,w!="comment"&&(r.state=n[r.state](w,e,r)),a},indent:function(e,r,t){var i=e.context,d=r&&r.charAt(0),_=i.indent;return i.type=="prop"&&(d=="}"||d==")")&&(i=i.prev),i.prev&&(d=="}"&&(i.type=="block"||i.type=="top"||i.type=="interpolation"||i.type=="restricted_atBlock")?(i=i.prev,_=i.indent):(d==")"&&(i.type=="parens"||i.type=="atBlock_parens")||d=="{"&&(i.type=="at"||i.type=="atBlock"))&&(_=Math.max(0,i.indent-t.unit))),_},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:te,block:{open:"/*",close:"*/"}},autocomplete:M}}}function u(o){for(var l={},m=0;m>>","name":"invalid.deprecated.combinator.css"},{"match":">>|[+>~]","name":"keyword.operator.combinator.css"}]},"commas":{"match":",","name":"punctuation.separator.list.comma.css"},"comment-block":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.css"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.css"}},"name":"comment.block.css"},"escapes":{"patterns":[{"match":"\\\\\\\\\\\\h{1,6}","name":"constant.character.escape.codepoint.css"},{"begin":"\\\\\\\\$\\\\s*","end":"^(?]|/\\\\*)"},"media-query":{"begin":"\\\\G","end":"(?=\\\\s*[;{])","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#media-types"},{"match":"(?i)(?<=\\\\s|^|,|\\\\*/)(only|not)(?=[{\\\\s]|/\\\\*|$)","name":"keyword.operator.logical.$1.media.css"},{"match":"(?i)(?<=\\\\s|^|\\\\*/|\\\\))and(?=\\\\s|/\\\\*|$)","name":"keyword.operator.logical.and.media.css"},{"match":",(?:(?:\\\\s*,)+|(?=\\\\s*[);{]))","name":"invalid.illegal.comma.css"},{"include":"#commas"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.css"}},"patterns":[{"include":"#media-features"},{"include":"#media-feature-keywords"},{"match":":","name":"punctuation.separator.key-value.css"},{"match":">=|<=|[<=>]","name":"keyword.operator.comparison.css"},{"captures":{"1":{"name":"constant.numeric.css"},"2":{"name":"keyword.operator.arithmetic.css"},"3":{"name":"constant.numeric.css"}},"match":"(\\\\d+)\\\\s*(/)\\\\s*(\\\\d+)","name":"meta.ratio.css"},{"include":"#numeric-values"},{"include":"#comment-block"}]}]},"media-query-list":{"begin":"(?=\\\\s*[^;{])","end":"(?=\\\\s*[;{])","patterns":[{"include":"#media-query"}]},"media-types":{"captures":{"1":{"name":"support.constant.media.css"},"2":{"name":"invalid.deprecated.constant.media.css"}},"match":"(?i)(?<=^|[,\\\\s]|\\\\*/)(?:(all|print|screen|speech)|(aural|braille|embossed|handheld|projection|tty|tv))(?=$|[,;{\\\\s]|/\\\\*)"},"numeric-values":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.constant.css"}},"match":"(#)(?:\\\\h{3,4}|\\\\h{6}|\\\\h{8})\\\\b","name":"constant.other.color.rgb-value.hex.css"},{"captures":{"1":{"name":"keyword.other.unit.percentage.css"},"2":{"name":"keyword.other.unit.\${2:/downcase}.css"}},"match":"(?i)(?\\\\[{|~\\\\s]|/\\\\*)|(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*(?:[]!\\"%-(*;\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.class.css"},{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#escapes"}]}},"match":"(#)(-?(?![0-9])(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.id.css"},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.entity.begin.bracket.square.css"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.entity.end.bracket.square.css"}},"name":"meta.attribute-selector.css","patterns":[{"include":"#comment-block"},{"include":"#string"},{"captures":{"1":{"name":"storage.modifier.ignore-case.css"}},"match":"(?<=[\\"'\\\\s]|^|\\\\*/)\\\\s*([Ii])\\\\s*(?=[]\\\\s]|/\\\\*|$)"},{"captures":{"1":{"name":"string.unquoted.attribute-value.css","patterns":[{"include":"#escapes"}]}},"match":"(?<==)\\\\s*((?!/\\\\*)(?:[^]\\"'\\\\\\\\\\\\s]|\\\\\\\\.)+)"},{"include":"#escapes"},{"match":"[$*^|~]?=","name":"keyword.operator.pattern.css"},{"match":"\\\\|","name":"punctuation.separator.css"},{"captures":{"1":{"name":"entity.other.namespace-prefix.css","patterns":[{"include":"#escapes"}]}},"match":"(-?(?!\\\\d)(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+|\\\\*)(?=\\\\|(?![=\\\\s]|$|])(?:-?(?!\\\\d)|[-\\\\\\\\\\\\w[^\\\\x00-\\\\x7F]]))"},{"captures":{"1":{"name":"entity.other.attribute-name.css","patterns":[{"include":"#escapes"}]}},"match":"(-?(?!\\\\d)(?>[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)\\\\s*(?=[]$*=^|~]|/\\\\*)"}]},{"include":"#pseudo-classes"},{"include":"#pseudo-elements"},{"include":"#functional-pseudo-classes"},{"match":"(?\\\\[{|~\\\\s]|/\\\\*|$)","name":"entity.name.tag.css"},"unicode-range":{"captures":{"0":{"name":"constant.other.unicode-range.css"},"1":{"name":"punctuation.separator.dash.unicode-range.css"}},"match":"(?])=(?![=~])","name":"punctuation.bind"},{"match":"<-","name":"punctuation.arrow"},{"include":"#expression"}]},"expression":{"patterns":[{"patterns":[{"captures":{"1":{"name":"keyword.control.for"},"2":{"name":"variable.other"},"3":{"name":"punctuation.separator"},"4":{"name":"variable.other"},"5":{"name":"keyword.control.in"}},"match":"(?=|<(?![-=])|>(?!=)","name":"keyword.operator.comparison"},{"match":"&{2}|\\\\|{2}|!(?![=~])","name":"keyword.operator.logical"},{"match":"&(?!&)|\\\\|(?!\\\\|)","name":"keyword.operator.set"}]},{"captures":{"1":{"name":"punctuation.accessor"},"2":{"name":"variable.other.member"}},"match":"(?=&|~%^]/;const f={name:"cypher",startState:function(){return{tokenize:d,context:null,indent:0,col:0}},token:function(t,e){if(t.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=t.indentation()),t.eatSpace())return null;var n=e.tokenize(t,e);if(n!=="comment"&&e.context&&e.context.align==null&&e.context.type!=="pattern"&&(e.context.align=!0),a==="(")o(e,")",t.column());else if(a==="[")o(e,"]",t.column());else if(a==="{")o(e,"}",t.column());else if(/[\]\}\)]/.test(a)){for(;e.context&&e.context.type==="pattern";)s(e);e.context&&a===e.context.type&&s(e)}else a==="."&&e.context&&e.context.type==="pattern"?s(e):/atom|string|variable/.test(n)&&e.context&&(/[\}\]]/.test(e.context.type)?o(e,"pattern",t.column()):e.context.type==="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=t.column()));return n},indent:function(t,e,n){var l=e&&e.charAt(0),r=t.context;if(/[\]\}]/.test(l))for(;r&&r.type==="pattern";)r=r.prev;var c=r&&l===r.type;return r?r.type==="keywords"?null:r.align?r.col+(c?0:1):r.indent+(c?0:n.unit):0}};export{f as t}; diff --git a/docs/assets/cypher-Bld-ecrK.js b/docs/assets/cypher-Bld-ecrK.js new file mode 100644 index 0000000..c40ff56 --- /dev/null +++ b/docs/assets/cypher-Bld-ecrK.js @@ -0,0 +1 @@ +import{t as r}from"./cypher-BUDAQ7Fk.js";export{r as cypher}; diff --git a/docs/assets/cypher-FCbbxft2.js b/docs/assets/cypher-FCbbxft2.js new file mode 100644 index 0000000..208f41e --- /dev/null +++ b/docs/assets/cypher-FCbbxft2.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Cypher","fileTypes":["cql","cyp","cypher"],"name":"cypher","patterns":[{"include":"#comments"},{"include":"#constants"},{"include":"#keywords"},{"include":"#functions"},{"include":"#path-patterns"},{"include":"#operators"},{"include":"#identifiers"},{"include":"#properties_literal"},{"include":"#numbers"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"match":"//.*$\\\\n?","name":"comment.line.double-slash.cypher"}]},"constants":{"patterns":[{"match":"(?i)\\\\bTRUE|FALSE\\\\b","name":"constant.language.bool.cypher"},{"match":"(?i)\\\\bNULL\\\\b","name":"constant.language.missing.cypher"}]},"functions":{"patterns":[{"match":"(?i)\\\\b((NOT)(?=\\\\s*\\\\()|IS\\\\s+NULL|IS\\\\s+NOT\\\\s+NULL)","name":"keyword.control.function.boolean.cypher"},{"match":"(?i)\\\\b(ALL|ANY|NONE|SINGLE)(?=\\\\s*\\\\()","name":"support.function.predicate.cypher"},{"match":"(?i)\\\\b(LENGTH|TYPE|ID|COALESCE|HEAD|LAST|TIMESTAMP|STARTNODE|ENDNODE|TOINT|TOFLOAT)(?=\\\\s*\\\\()","name":"support.function.scalar.cypher"},{"match":"(?i)\\\\b(NODES|RELATIONSHIPS|LABELS|EXTRACT|FILTER|TAIL|RANGE|REDUCE)(?=\\\\s*\\\\()","name":"support.function.collection.cypher"},{"match":"(?i)\\\\b(ABS|ACOS|ASIN|ATAN2??|COS|COT|DEGREES|E|EXP|FLOOR|HAVERSIN|LOG|LOG10|PI|RADIANS|RAND|ROUND|SIGN|SIN|SQRT|TAN)(?=\\\\s*\\\\()","name":"support.function.math.cypher"},{"match":"(?i)\\\\b(COUNT|sum|avg|max|min|stdevp??|percentileDisc|percentileCont|collect)(?=\\\\s*\\\\()","name":"support.function.aggregation.cypher"},{"match":"(?i)\\\\b(STR|REPLACE|SUBSTRING|LEFT|RIGHT|LTRIM|RTRIM|TRIM|LOWER|UPPER|SPLIT)(?=\\\\s*\\\\()","name":"support.function.string.cypher"}]},"identifiers":{"patterns":[{"match":"`.+?`","name":"variable.other.quoted-identifier.cypher"},{"match":"[_\\\\p{L}][0-9_\\\\p{L}]*","name":"variable.other.identifier.cypher"}]},"keywords":{"patterns":[{"match":"(?i)\\\\b(START|MATCH|WHERE|RETURN|UNION|FOREACH|WITH|AS|LIMIT|SKIP|UNWIND|HAS|DISTINCT|OPTIONAL\\\\\\\\s+MATCH|ORDER\\\\s+BY|CALL|YIELD)\\\\b","name":"keyword.control.clause.cypher"},{"match":"(?i)\\\\b(ELSE|END|THEN|CASE|WHEN)\\\\b","name":"keyword.control.case.cypher"},{"match":"(?i)\\\\b(FIELDTERMINATOR|USING\\\\s+PERIODIC\\\\s+COMMIT|HEADERS|LOAD\\\\s+CSV|FROM)\\\\b","name":"keyword.data.import.cypher"},{"match":"(?i)\\\\b(USING\\\\s+INDEX|CREATE\\\\s+INDEX\\\\s+ON|DROP\\\\s+INDEX\\\\s+ON|CREATE\\\\s+CONSTRAINT\\\\s+ON|DROP\\\\s+CONSTRAINT\\\\s+ON)\\\\b","name":"keyword.other.indexes.cypher"},{"match":"(?i)\\\\b(MERGE|DELETE|SET|REMOVE|ON\\\\s+CREATE|ON\\\\s+MATCH|CREATE\\\\s+UNIQUE|CREATE)\\\\b","name":"keyword.data.definition.cypher"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.cypher"},{"begin":"(?i)\\\\b(node|relationship|rel)((:)([-_\\\\p{L}][0-9_\\\\p{L}]*))?(?=\\\\s*\\\\()","beginCaptures":{"1":{"name":"support.class.starting-functions-point.cypher"},"2":{"name":"keyword.control.index-seperator.cypher"},"3":{"name":"keyword.control.index-seperator.cypher"},"4":{"name":"support.class.index.cypher"}},"end":"\\\\)","name":"source.starting-functions.cypher","patterns":[{"match":"(`.+?`|[_\\\\p{L}][0-9_\\\\p{L}]*)","name":"variable.parameter.relationship-name.cypher"},{"match":"(\\\\*)","name":"keyword.control.starting-function-params.cypher"},{"include":"#comments"},{"include":"#numbers"},{"include":"#strings"}]}]},"numbers":{"patterns":[{"match":"\\\\b\\\\d+(\\\\.\\\\d+)?\\\\b","name":"constant.numeric.cypher"}]},"operators":{"patterns":[{"match":"([-!%*+/?])","name":"keyword.operator.math.cypher"},{"match":"(<=|=>|<>|[<>]|=~?)","name":"keyword.operator.compare.cypher"},{"match":"(?i)\\\\b(OR|AND|XOR|IS)\\\\b","name":"keyword.operator.logical.cypher"},{"match":"(?i)\\\\b(IN)\\\\b","name":"keyword.operator.in.cypher"}]},"path-patterns":{"patterns":[{"match":"(<--|-->?)","name":"support.function.relationship-pattern.cypher"},{"begin":"(?)","endCaptures":{"1":{"name":"keyword.operator.relationship-pattern-end.cypher"},"2":{"name":"support.function.relationship-pattern-end.cypher"}},"name":"path-pattern.cypher","patterns":[{"include":"#identifiers"},{"captures":{"1":{"name":"keyword.operator.relationship-type-start.cypher"},"2":{"name":"entity.name.class.relationship.type.cypher"}},"match":"(:)(`.+?`|[_\\\\p{L}][0-9_\\\\p{L}]*)","name":"entity.name.class.relationship-type.cypher"},{"captures":{"1":{"name":"support.type.operator.relationship-type-or.cypher"},"2":{"name":"entity.name.class.relationship.type-or.cypher"}},"match":"(\\\\|)(\\\\s*)(`.+?`|[_\\\\p{L}][0-9_\\\\p{L}]*)","name":"entity.name.class.relationship-type-ored.cypher"},{"match":"(?:\\\\?\\\\*|[*?])\\\\s*(?:\\\\d+\\\\s*(?:\\\\.\\\\.\\\\s*\\\\d+)?)?","name":"support.function.relationship-pattern.quant.cypher"},{"include":"#properties_literal"}]}]},"properties_literal":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"keyword.control.properties_literal.cypher"}},"end":"}","endCaptures":{"0":{"name":"keyword.control.properties_literal.cypher"}},"name":"source.cypher","patterns":[{"match":"[,:]","name":"keyword.control.properties_literal.seperator.cypher"},{"include":"#comments"},{"include":"#constants"},{"include":"#functions"},{"include":"#operators"},{"include":"#identifiers"},{"include":"#numbers"},{"include":"#strings"}]}]},"string_escape":{"captures":{"2":{"name":"string.quoted.double.cypher"}},"match":"(\\\\\\\\[\\\\\\\\bfnrt])|(\\\\\\\\[\\"\'])","name":"constant.character.escape.cypher"},"strings":{"patterns":[{"begin":"\'","end":"\'","name":"string.quoted.single.cypher","patterns":[{"include":"#string_escape"}]},{"begin":"\\"","end":"\\"","name":"string.quoted.double.cypher","patterns":[{"include":"#string_escape"}]}]}},"scopeName":"source.cypher","aliases":["cql"]}'))];export{e as default}; diff --git a/docs/assets/cytoscape.esm-CiNp3hmz.js b/docs/assets/cytoscape.esm-CiNp3hmz.js new file mode 100644 index 0000000..3192a34 --- /dev/null +++ b/docs/assets/cytoscape.esm-CiNp3hmz.js @@ -0,0 +1,321 @@ +function Ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(s){throw s},f:a}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var s=r.next();return o=s.done,s},e:function(s){u=!0,i=s},f:function(){try{o||r.return==null||r.return()}finally{if(u)throw i}}}}function ms(e,t,r){return(t=bs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kd(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,u=[],s=!0,l=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(c){l=!0,a=c}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return u}}function Hd(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zd(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e,t){return Wd(e)||Kd(e,t)||Ka(e,t)||Hd()}function Xn(e){return Ud(e)||Gd(e)||Ka(e)||Zd()}function Qd(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bs(e){var t=Qd(e,"string");return typeof t=="symbol"?t:t+""}function Ze(e){"@babel/helpers - typeof";return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ze(e)}function Ka(e,t){if(e){if(typeof e=="string")return Ga(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ga(e,t):void 0}}var Qe=typeof window>"u"?null:window,xs=Qe?Qe.navigator:null;Qe&&Qe.document;var Jd=Ze(""),ws=Ze({}),eh=Ze(function(){}),th=typeof HTMLElement>"u"?"undefined":Ze(HTMLElement),nn=function(e){return e&&e.instanceString&&We(e.instanceString)?e.instanceString():null},ce=function(e){return e!=null&&Ze(e)==Jd},We=function(e){return e!=null&&Ze(e)===eh},ze=function(e){return!Ct(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Be=function(e){return e!=null&&Ze(e)===ws&&!ze(e)&&e.constructor===Object},rh=function(e){return e!=null&&Ze(e)===ws},ee=function(e){return e!=null&&Ze(e)===Ze(1)&&!isNaN(e)},nh=function(e){return ee(e)&&Math.floor(e)===e},Yn=function(e){if(th!=="undefined")return e!=null&&e instanceof HTMLElement},Ct=function(e){return an(e)||Es(e)},an=function(e){return nn(e)==="collection"&&e._private.single},Es=function(e){return nn(e)==="collection"&&!e._private.single},Ha=function(e){return nn(e)==="core"},ks=function(e){return nn(e)==="stylesheet"},ah=function(e){return nn(e)==="event"},Qt=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},ih=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},oh=function(e){return Be(e)&&ee(e.x1)&&ee(e.x2)&&ee(e.y1)&&ee(e.y2)},sh=function(e){return rh(e)&&We(e.then)},lh=function(){return xs&&xs.userAgent.match(/msie|trident|edge/i)},Rr=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var n=[],a=0;at?1:0},gh=function(e,t){return-1*Ps(e,t)},he=Object.assign==null?function(e){for(var t=arguments,r=1;r1&&--v,v<1/6?f+(p-f)*6*v:v<1/2?p:v<2/3?f+(p-f)*(2/3-v)*6:f}var c=RegExp("^"+dh+"$").exec(e);if(c){if(r=parseInt(c[1]),r<0?r=(360- -1*r%360)%360:r>360&&(r%=360),r/=360,n=parseFloat(c[2]),n<0||n>100||(n/=100,a=parseFloat(c[3]),a<0||a>100)||(a/=100,i=c[4],i!==void 0&&(i=parseFloat(i),i<0||i>1)))return;if(n===0)o=u=s=Math.round(a*255);else{var d=a<.5?a*(1+n):a+n-a*n,h=2*a-d;o=Math.round(255*l(h,d,r+1/3)),u=Math.round(255*l(h,d,r)),s=Math.round(255*l(h,d,r-1/3))}t=[o,u,s,i]}return t},mh=function(e){var t,r=RegExp("^"+uh+"$").exec(e);if(r){t=[];for(var n=[],a=1;a<=3;a++){var i=r[a];if(i[i.length-1]==="%"&&(n[a]=!0),i=parseFloat(i),n[a]&&(i=i/100*255),i<0||i>255)return;t.push(Math.floor(i))}var o=n[1]||n[2]||n[3],u=n[1]&&n[2]&&n[3];if(o&&!u)return;var s=r[4];if(s!==void 0){if(s=parseFloat(s),s<0||s>1)return;t.push(s)}}return t},bh=function(e){return xh[e.toLowerCase()]},Bs=function(e){return(ze(e)?e:null)||bh(e)||vh(e)||mh(e)||yh(e)},xh={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ss=function(e){for(var t=e.map,r=e.keys,n=r.length,a=0;a=s||R<0||m&&_>=h}function S(){var D=t();if(w(D))return E(D);p=setTimeout(S,k(D))}function E(D){return p=void 0,b&&c?x(D):(c=d=void 0,f)}function P(){p!==void 0&&clearTimeout(p),y=0,c=v=d=p=void 0}function C(){return p===void 0?f:E(t())}function A(){var D=t(),R=w(D);if(c=arguments,d=this,v=D,R){if(p===void 0)return B(v);if(m)return clearTimeout(p),p=setTimeout(S,s),x(v)}return p===void 0&&(p=setTimeout(S,s)),f}return A.cancel=P,A.flush=C,A}return hi=o,hi}var un=on(Dh()),fi=Qe?Qe.performance:null,Ws=fi&&fi.now?function(){return fi.now()}:function(){return Date.now()},Ah=(function(){if(Qe){if(Qe.requestAnimationFrame)return function(e){Qe.requestAnimationFrame(e)};if(Qe.mozRequestAnimationFrame)return function(e){Qe.mozRequestAnimationFrame(e)};if(Qe.webkitRequestAnimationFrame)return function(e){Qe.webkitRequestAnimationFrame(e)};if(Qe.msRequestAnimationFrame)return function(e){Qe.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(Ws())},1e3/60)}})(),Un=function(e){return Ah(e)},Yt=Ws,gr=9261,Us=65599,_r=5381,$s=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gr,r;r=e.next(),!r.done;)t=t*Us+r.value|0;return t},cn=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:gr)*Us+e|0},dn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_r;return(t<<5)+t+e|0},Rh=function(e,t){return e*2097152+t},er=function(e){return e[0]*2097152+e[1]},$n=function(e,t){return[cn(e[0],t[0]),dn(e[1],t[1])]},Gs=function(e,t){var r={value:0,done:!1},n=0,a=e.length;return $s({next:function(){return n=0;n--)e[n]===t&&e.splice(n,1)},vi=function(e){e.splice(0,e.length)},Xh=function(e,t){for(var r=0;r"u"?"undefined":Ze(Set))===qh?jh:Set,Kn=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!Ha(e)){qe("An element must have a core reference and parameters set");return}var n=t.group;if(n??(n=t.data&&t.data.source!=null&&t.data.target!=null?"edges":"nodes"),n!=="nodes"&&n!=="edges"){qe("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?n==="edges":!!t.pannable,active:!1,classes:new Mr,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x??(a.position.x=0),a.position.y??(a.position.y=0),t.renderedPosition){var i=t.renderedPosition,o=e.pan(),u=e.zoom();a.position={x:(i.x-o.x)/u,y:(i.y-o.y)/u}}var s=[];ze(t.classes)?s=t.classes:ce(t.classes)&&(s=t.classes.split(/\s+/));for(var l=0,c=s.length;lm?1:0},c=function(g,m,b,x,B){var k;if(b??(b=0),B??(B=n),b<0)throw Error("lo must be non-negative");for(x??(x=g.length);bP;0<=P?E++:E--)S.push(E);return S}).apply(this).reverse(),w=[],x=0,B=k.length;xC;0<=C?++S:--S)A.push(o(g,b));return A},v=function(g,m,b,x){var B,k,w;for(x??(x=n),B=g[b];b>m;){if(w=b-1>>1,k=g[w],x(B,k)<0){g[b]=k,b=w;continue}break}return g[b]=B},y=function(g,m,b){var x,B,k,w,S;for(b??(b=n),B=g.length,S=m,k=g[m],x=2*m+1;x0;){var B=g.pop(),k=v(B),w=B.id();if(d[w]=k,k!==1/0)for(var S=B.neighborhood().intersect(f),E=0;E0)for(I.unshift(_);c[N];){var V=c[N];I.unshift(V.edge),I.unshift(V.node),M=V.node,N=M.id()}return o.spawn(I)}}}},Hh={kruskal:function(e){e||(e=function(m){return 1});for(var t=this.byGroup(),r=t.nodes,n=t.edges,a=r.length,i=Array(a),o=r,u=function(m){for(var b=0;b0;){if(x(),k++,b===l){for(var w=[],S=a,E=l,P=y[E];w.unshift(S),P!=null&&w.unshift(P),S=v[E],S!=null;)E=S.id(),P=y[E];return{found:!0,distance:c[b],path:this.spawn(w),steps:k}}h[b]=!0;for(var C=m._private.edges,A=0;AE&&(f[S]=E,y[S]=w,g[S]=b),!a){var P=w*l+k;!a&&f[P]>E&&(f[P]=E,y[P]=k,g[P]=b)}}}for(var C=0;C1&&arguments[1]!==void 0?arguments[1]:i,se=m(G),ye=[],pe=se;;){if(pe==null)return t.spawn();var Te=g(pe),xe=Te.edge,Ce=Te.pred;if(ye.unshift(pe[0]),pe.same(le)&&ye.length>0)break;xe!=null&&ye.unshift(xe),pe=Ce}return u.spawn(ye)},B=0;B=0;l--){var c=s[l],d=c[1],h=c[2];(t[d]===o&&t[h]===u||t[d]===u&&t[h]===o)&&s.splice(l,1)}for(var f=0;fn;)t=af(Math.floor(Math.random()*t.length),e,t),r--;return t},of={kargerStein:function(){var e=this,t=this.byGroup(),r=t.nodes,n=t.edges;n.unmergeBy(function(_){return _.isLoop()});var a=r.length,i=n.length,o=Math.ceil((Math.log(a)/Math.LN2)**2),u=Math.floor(a/nf);if(a<2){qe("At least 2 nodes are required for Karger-Stein algorithm");return}for(var s=[],l=0;l1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,a=0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,r):(r0&&e.splice(0,t));for(var o=0,u=e.length-1;u>=0;u--){var s=e[u];i?isFinite(s)||(e[u]=-1/0,o++):e.splice(u,1)}a&&e.sort(function(d,h){return d-h});var l=e.length,c=Math.floor(l/2);return l%2==0?(e[c-1+o]+e[c+o])/2:e[c+1+o]},hf=function(e){return Math.PI*e/180},Qn=function(e,t){return Math.atan2(t,e)-Math.PI/2},bi=Math.log2||function(e){return Math.log(e)/Math.log(2)},xi=function(e){return e>0?1:e<0?-1:0},yr=function(e,t){return Math.sqrt(mr(e,t))},mr=function(e,t){var r=t.x-e.x,n=t.y-e.y;return r*r+n*n},ff=function(e){for(var t=e.length,r=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},gf=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},vf=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},yf=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},ol=function(e,t,r){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r),e.y2=Math.max(e.y2,r),e.h=e.y2-e.y1},Jn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},ea=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],r,n,a,i;if(t.length===1)r=n=a=i=t[0];else if(t.length===2)r=a=t[0],i=n=t[1];else if(t.length===4){var o=Ge(t,4);r=o[0],n=o[1],a=o[2],i=o[3]}return e.x1-=i,e.x2+=n,e.y1-=r,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},sl=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},wi=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},rr=function(e,t,r){return e.x1<=t&&t<=e.x2&&e.y1<=r&&r<=e.y2},ll=function(e,t){return rr(e,t.x,t.y)},ul=function(e,t){return rr(e,t.x1,t.y1)&&rr(e,t.x2,t.y2)},mf=Math.hypot??function(e,t){return Math.sqrt(e*e+t*t)};function bf(e,t){if(e.length<3)throw Error("Need at least 3 vertices");var r=function(w,S){return{x:w.x+S.x,y:w.y+S.y}},n=function(w,S){return{x:w.x-S.x,y:w.y-S.y}},a=function(w,S){return{x:w.x*S,y:w.y*S}},i=function(w,S){return w.x*S.y-w.y*S.x},o=function(w){var S=mf(w.x,w.y);return S===0?{x:0,y:0}:{x:w.x/S,y:w.y/S}},u=function(w){for(var S=0,E=0;E7&&arguments[7]!==void 0?arguments[7]:"auto",s=u==="auto"?ar(a,i):u,l=a/2,c=i/2;s=Math.min(s,l,c);var d=s!==l,h=s!==c,f;if(d){var p=r-l+s-o,v=n-c-o;if(f=nr(e,t,r,n,p,v,r+l-s+o,v,!1),f.length>0)return f}if(h){var y=r+l+o;if(f=nr(e,t,r,n,y,n-c+s-o,y,n+c-s+o,!1),f.length>0)return f}if(d){var g=r-l+s-o,m=n+c+o;if(f=nr(e,t,r,n,g,m,r+l-s+o,m,!1),f.length>0)return f}if(h){var b=r-l-o;if(f=nr(e,t,r,n,b,n-c+s-o,b,n+c-s+o,!1),f.length>0)return f}var x,B=r-l+s,k=n-c+s;if(x=gn(e,t,r,n,B,k,s+o),x.length>0&&x[0]<=B&&x[1]<=k)return[x[0],x[1]];var w=r+l-s,S=n-c+s;if(x=gn(e,t,r,n,w,S,s+o),x.length>0&&x[0]>=w&&x[1]<=S)return[x[0],x[1]];var E=r+l-s,P=n+c-s;if(x=gn(e,t,r,n,E,P,s+o),x.length>0&&x[0]>=E&&x[1]>=P)return[x[0],x[1]];var C=r-l+s,A=n+c-s;return x=gn(e,t,r,n,C,A,s+o),x.length>0&&x[0]<=C&&x[1]>=A?[x[0],x[1]]:[]},wf=function(e,t,r,n,a,i,o){var u=o,s=Math.min(r,a),l=Math.max(r,a),c=Math.min(n,i),d=Math.max(n,i);return s-u<=e&&e<=l+u&&c-u<=t&&t<=d+u},Ef=function(e,t,r,n,a,i,o,u,s){var l={x1:Math.min(r,o,a)-s,x2:Math.max(r,o,a)+s,y1:Math.min(n,u,i)-s,y2:Math.max(n,u,i)+s};return!(el.x2||tl.y2)},kf=function(e,t,r,n){r-=n;var a=t*t-4*e*r;if(a<0)return[];var i=Math.sqrt(a),o=2*e;return[(-t+i)/o,(-t-i)/o]},Tf=function(e,t,r,n,a){e===0&&(e=1e-5),t/=e,r/=e,n/=e;var i,o=(3*r-t*t)/9,u=-(27*n)+t*(9*r-t*t*2),s,l,c,d,h;if(u/=54,i=o*o*o+u*u,a[1]=0,d=t/3,i>0){l=u+Math.sqrt(i),l=l<0?-((-l)**(1/3)):l**(1/3),c=u-Math.sqrt(i),c=c<0?-((-c)**(1/3)):c**(1/3),a[0]=-d+l+c,d+=(l+c)/2,a[4]=a[2]=-d,d=Math.sqrt(3)*(-c+l)/2,a[3]=d,a[5]=-d;return}if(a[5]=a[3]=0,i===0){h=u<0?-((-u)**(1/3)):u**(1/3),a[0]=-d+2*h,a[4]=a[2]=-(h+d);return}o=-o,s=o*o*o,s=Math.acos(u/Math.sqrt(s)),h=2*Math.sqrt(o),a[0]=-d+h*Math.cos(s/3),a[2]=-d+h*Math.cos((s+2*Math.PI)/3),a[4]=-d+h*Math.cos((s+4*Math.PI)/3)},Cf=function(e,t,r,n,a,i,o,u){var s=1*r*r-4*r*a+2*r*o+4*a*a-4*a*o+o*o+n*n-4*n*i+2*n*u+4*i*i-4*i*u+u*u,l=9*r*a-3*r*r-3*r*o-6*a*a+3*a*o+9*n*i-3*n*n-3*n*u-6*i*i+3*i*u,c=3*r*r-6*r*a+r*o-r*e+2*a*a+2*a*e-o*e+3*n*n-6*n*i+n*u-n*t+2*i*i+2*i*t-u*t,d=1*r*a-r*r+r*e-a*e+n*i-n*n+n*t-i*t,h=[];Tf(s,l,c,d,h);for(var f=1e-7,p=[],v=0;v<6;v+=2)Math.abs(h[v+1])=0&&h[v]<=1&&p.push(h[v]);p.push(1),p.push(0);for(var y=-1,g,m,b,x=0;x=0?bs?(e-a)*(e-a)+(t-i)*(t-i):l-d},Et=function(e,t,r){for(var n,a,i,o,u,s=0,l=0;l=e&&e>=i||n<=e&&e<=i)u=(e-n)/(i-n)*(o-a)+a,u>t&&s++;else continue;return s%2!=0},Wt=function(e,t,r,n,a,i,o,u,s){var l=Array(r.length),c;u[0]==null?c=u:(c=Math.atan(u[1]/u[0]),u[0]<0?c+=Math.PI/2:c=-c-Math.PI/2);for(var d=Math.cos(-c),h=Math.sin(-c),f=0;f0?ta(ra(l,-s)):l)},Bf=function(e,t,r,n,a,i,o,u){for(var s=Array(r.length*2),l=0;l=0&&v<=1&&g.push(v),y>=0&&y<=1&&g.push(y),g.length===0)return[];var m=g[0]*u[0]+e,b=g[0]*u[1]+t;return g.length>1?g[0]==g[1]?[m,b]:[m,b,g[1]*u[0]+e,g[1]*u[1]+t]:[m,b]},Ei=function(e,t,r){return t<=e&&e<=r||r<=e&&e<=t?e:e<=t&&t<=r||r<=t&&t<=e?t:r},nr=function(e,t,r,n,a,i,o,u,s){var l=e-a,c=r-e,d=o-a,h=t-i,f=n-t,p=u-i,v=d*h-p*l,y=c*h-f*l,g=p*c-d*f;if(g!==0){var m=v/g,b=y/g,x=.001,B=0-x,k=1+x;return B<=m&&m<=k&&B<=b&&b<=k||s?[e+m*c,t+m*f]:[]}else return v===0||y===0?Ei(e,r,o)===o?[o,u]:Ei(e,r,a)===a?[a,i]:Ei(a,o,r)===r?[r,n]:[]:[]},Df=function(e,t,r,n,a){var i=[],o=n/2,u=a/2,s=t,l=r;i.push({x:s+o*e[0],y:l+u*e[1]});for(var c=1;c0?ta(ra(c,-u)):c}else h=r;for(var p,v,y,g,m=0;m2){for(var f=[l[0],l[1]],p=(f[0]-e)**2+(f[1]-t)**2,v=1;vl&&(l=m)},get:function(g){return s[g]}},d=0;d0?A.edgesTo(C)[0]:C.edgesTo(A)[0];var R=n(D);C=C.id(),B[C]>B[E]+R&&(B[C]=B[E]+R,k.nodes.indexOf(C)<0?k.push(C):k.updateItem(C),x[C]=0,b[C]=[]),B[C]==B[E]+R&&(x[C]=x[C]+x[E],b[C].push(E))}else for(var _=0;_0;){for(var V=m.pop(),Y=0;Y0&&o.push(r[u]);o.length!==0&&a.push(n.collection(o))}return a},jf=function(e,t){for(var r=0;r5&&arguments[5]!==void 0?arguments[5]:$f,o=n,u,s,l=0;l=2?yn(e,t,r,0,bl,Gf):yn(e,t,r,0,ml)},squaredEuclidean:function(e,t,r){return yn(e,t,r,0,bl)},manhattan:function(e,t,r){return yn(e,t,r,0,ml)},max:function(e,t,r){return yn(e,t,r,-1/0,Kf)}};Or["squared-euclidean"]=Or.squaredEuclidean,Or.squaredeuclidean=Or.squaredEuclidean;function aa(e,t,r,n,a,i){var o=We(e)?e:Or[e]||Or.euclidean;return t===0&&We(e)?o(a,i):o(t,r,n,a,i)}var Hf=ot({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Si=function(e){return Hf(e)},ia=function(e,t,r,n,a){var i=a==="kMedoids"?function(l){return n[l](r)}:function(l){return r[l]},o=function(l){return n[l](t)},u=r,s=t;return aa(e,n.length,i,o,u,s)},Di=function(e,t,r){for(var n=r.length,a=Array(n),i=Array(n),o=Array(t),u=null,s=0;sr)return!1;return!0},Jf=function(e,t,r){for(var n=0;no&&(o=t[s][l],u=l);a[u].push(e[s])}for(var c=0;c=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var f=t[i],p=t[n[i]],v=a.mode==="dendrogram"?{left:f,right:p,key:f.key}:{value:f.value.concat(p.value),key:f.key};e[f.index]=v,e.splice(p.index,1),t[f.key]=v;for(var y=0;yr[p.key][g.key]&&(u=r[p.key][g.key])):a.linkage==="max"?(u=r[f.key][g.key],r[f.key][g.key]0&&n.push(a);return n},Bl=function(e,t,r){for(var n=[],a=0;ao&&(i=s,o=t[a*e+s])}i>0&&n.push(i)}for(var l=0;ls&&(u=l,s=c)}r[a]=i[u]}return n=Bl(e,t,r),n},Sl=function(e){for(var t=this.cy(),r=this.nodes(),n=dp(e),a={},i=0;i=P?(C=P,P=D,A=R):D>C&&(C=D);for(var _=0;_0?1:0;k[S%n.minIterations*o+q]=W,Y+=W}if(Y>0&&(S>=n.minIterations-1||S==n.maxIterations-1)){for(var H=0,j=0;j1||B>1)&&(o=!0),c[m]=[],g.outgoers().forEach(function(w){w.isEdge()&&c[m].push(w.id())})}else d[m]=[void 0,g.target().id()]}):i.forEach(function(g){var m=g.id();g.isNode()?(g.degree(!0)%2&&(u?s?o=!0:s=m:u=m),c[m]=[],g.connectedEdges().forEach(function(b){return c[m].push(b.id())})):d[m]=[g.source().id(),g.target().id()]});var h={found:!1,trail:void 0};if(o)return h;if(s&&u)if(a){if(l&&s!=l)return h;l=s}else{if(l&&s!=l&&u!=l)return h;l||(l=s)}else l||(l=i[0].id());var f=function(g){for(var m=g,b=[g],x,B,k;c[m].length;)x=c[m].shift(),B=d[x][0],k=d[x][1],m==k?!a&&m!=B&&(c[B]=c[B].filter(function(w){return w!=x}),m=B):(c[k]=c[k].filter(function(w){return w!=x}),m=k),b.unshift(x),b.unshift(m);return b},p=[],v=[];for(v=f(l);v.length!=1;)c[v[0]].length==0?(p.unshift(i.getElementById(v.shift())),p.unshift(i.getElementById(v.shift()))):v=f(v.shift()).concat(v);for(var y in p.unshift(i.getElementById(v.shift())),c)if(c[y].length)return h;return h.found=!0,h.trail=this.spawn(p,!0),h}},oa=function(){var e=this,t={},r=0,n=0,a=[],i=[],o={},u=function(c,d){for(var h=i.length-1,f=[],p=e.spawn();i[h].x!=c||i[h].y!=d;)f.push(i.pop().edge),h--;f.push(i.pop().edge),f.forEach(function(v){var y=v.connectedNodes().intersection(e);p.merge(v),y.forEach(function(g){var m=g.id(),b=g.connectedEdges().intersection(e);p.merge(g),t[m].cutVertex?p.merge(b.filter(function(x){return x.isLoop()})):p.merge(b)})}),a.push(p)},s=function(c,d,h){c===h&&(n+=1),t[d]={id:r,low:r++,cutVertex:!1};var f=e.getElementById(d).connectedEdges().intersection(e);if(f.size()===0)a.push(e.spawn(e.getElementById(d)));else{var p,v,y,g;f.forEach(function(m){p=m.source().id(),v=m.target().id(),y=p===d?v:p,y!==h&&(g=m.id(),o[g]||(o[g]=!0,i.push({x:d,y,edge:m})),y in t?t[d].low=Math.min(t[d].low,t[y].id):(s(c,y,d),t[d].low=Math.min(t[d].low,t[y].low),t[d].id<=t[y].low&&(t[d].cutVertex=!0,u(d,y))))})}};e.forEach(function(c){if(c.isNode()){var d=c.id();d in t||(n=0,s(d,d),t[d].cutVertex=n>1)}});var l=Object.keys(t).filter(function(c){return t[c].cutVertex}).map(function(c){return e.getElementById(c)});return{cut:e.spawn(l),components:a}},bp={hopcroftTarjanBiconnected:oa,htbc:oa,htb:oa,hopcroftTarjanBiconnectedComponents:oa},sa=function(){var e=this,t={},r=0,n=[],a=[],i=e.spawn(e),o=function(u){if(a.push(u),t[u]={index:r,low:r++,explored:!1},e.getElementById(u).connectedEdges().intersection(e).forEach(function(h){var f=h.target().id();f!==u&&(f in t||o(f),t[f].explored||(t[u].low=Math.min(t[u].low,t[f].low)))}),t[u].index===t[u].low){for(var s=e.spawn();;){var l=a.pop();if(s.merge(e.getElementById(l)),t[l].low=t[u].index,t[l].explored=!0,l===u)break}var c=s.edgesWith(s),d=s.merge(c);n.push(d),i=i.difference(d)}};return e.forEach(function(u){if(u.isNode()){var s=u.id();s in t||o(s)}}),{cut:i,components:n}},xp={tarjanStronglyConnected:sa,tsc:sa,tscc:sa,tarjanStronglyConnectedComponents:sa},Dl={};[hn,Kh,Hh,Qh,ef,rf,of,Mf,Lr,zr,Bi,Uf,ip,up,vp,mp,bp,xp].forEach(function(e){he(Dl,e)});var Al=0,Rl=1,_l=2,Rt=function(e){if(!(this instanceof Rt))return new Rt(e);this.id="Thenable/1.0.7",this.state=Al,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};Rt.prototype={fulfill:function(e){return Ml(this,Rl,"fulfillValue",e)},reject:function(e){return Ml(this,_l,"rejectReason",e)},then:function(e,t){var r=this,n=new Rt;return r.onFulfilled.push(Ll(e,n,"fulfill")),r.onRejected.push(Ll(t,n,"reject")),Il(r),n.proxy}};var Ml=function(e,t,r,n){return e.state===Al&&(e.state=t,e[r]=n,Il(e)),e},Il=function(e){e.state===Rl?Nl(e,"onFulfilled",e.fulfillValue):e.state===_l&&Nl(e,"onRejected",e.rejectReason)},Nl=function(e,t,r){if(e[t].length!==0){var n=e[t];e[t]=[];var a=function(){for(var i=0;i0}},clearQueue:function(){return function(){var e=this,t=e.length===void 0?[e]:e;if(!(this._private.cy||this).styleEnabled())return this;for(var r=0;r-1}return to=t,to}var ro,su;function Vp(){if(su)return ro;su=1;var e=ca();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return ro=t,ro}var no,lu;function Fp(){if(lu)return no;lu=1;var e=Np(),t=Lp(),r=zp(),n=Op(),a=Vp();function i(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u-1&&n%1==0&&n0&&this.spawn(n).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){ze(e)||(e=e.match(/\S+/g)||[]);for(var r=this,n=t===void 0,a=[],i=0,o=r.length;i0&&this.spawn(a).updateStyle().emit("class"),r},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var r=this;if(t==null)t=250;else if(t===0)return r;return r.addClass(e),setTimeout(function(){r.removeClass(e)},t),r}};ha.className=ha.classNames=ha.classes;var Se={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:Je,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Se.variable="(?:[\\w-.]|(?:\\\\"+Se.metaChar+"))+",Se.className="(?:[\\w-]|(?:\\\\"+Se.metaChar+"))+",Se.value=Se.string+"|"+Se.number,Se.id=Se.variable,(function(){var e=Se.comparatorOp.split("|"),t,r;for(r=0;r=0)&&t!=="="&&(Se.comparatorOp+="|\\!"+t)})();var Ne=function(){return{checks:[]}},ne={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Mo=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return gh(e.selector,t.selector)}),pg=(function(){for(var e={},t,r=0;r0&&l.edgeCount>0)return _e("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return _e("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;l.edgeCount===1&&_e("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(s){return s??""},t=function(s){return ce(s)?'"'+s+'"':e(s)},r=function(s){return" "+s+" "},n=function(s,l){var c=s.type,d=s.value;switch(c){case ne.GROUP:var h=e(d);return h.substring(0,h.length-1);case ne.DATA_COMPARE:var f=s.field,p=s.operator;return"["+f+r(e(p))+t(d)+"]";case ne.DATA_BOOL:var v=s.operator,y=s.field;return"["+e(v)+y+"]";case ne.DATA_EXIST:return"["+s.field+"]";case ne.META_COMPARE:var g=s.operator;return"[["+s.field+r(e(g))+t(d)+"]]";case ne.STATE:return d;case ne.ID:return"#"+d;case ne.CLASS:return"."+d;case ne.PARENT:case ne.CHILD:return a(s.parent,l)+r(">")+a(s.child,l);case ne.ANCESTOR:case ne.DESCENDANT:return a(s.ancestor,l)+" "+a(s.descendant,l);case ne.COMPOUND_SPLIT:var m=a(s.left,l),b=a(s.subject,l),x=a(s.right,l);return m+(m.length>0?" ":"")+b+x;case ne.TRUE:return""}},a=function(s,l){return s.checks.reduce(function(c,d,h){return c+(l===s&&h===0?"$":"")+n(d,l)},"")},i="",o=0;o1&&o=0&&(t=t.replace("!",""),c=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),l=!0),(a||o||l)&&(u=!a&&!i?"":""+e,s=""+r),l&&(e=u=u.toLowerCase(),r=s=s.toLowerCase()),t){case"*=":n=u.indexOf(s)>=0;break;case"$=":n=u.indexOf(s,u.length-s.length)>=0;break;case"^=":n=u.indexOf(s)===0;break;case"=":n=e===r;break;case">":d=!0,n=e>r;break;case">=":d=!0,n=e>=r;break;case"<":d=!0,n=e0;){var l=a.shift();t(l),i.add(l.id()),o&&n(a,i,l)}return e}function Xu(e,t,r){if(r.isParent())for(var n=r._private.children,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;return Lo(this,e,t,Xu)};function Yu(e,t,r){if(r.isChild()){var n=r._private.parent;t.has(n.id())||e.push(n)}}Yr.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Lo(this,e,t,Yu)};function Tg(e,t,r){Yu(e,t,r),Xu(e,t,r)}Yr.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Lo(this,e,t,Tg)},Yr.ancestors=Yr.parents;var fa=qu={data:Me.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:Me.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Me.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Me.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Me.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Me.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},qu;fa.attr=fa.data,fa.removeAttr=fa.removeData;var Cg=qu,pa={};function zo(e){return function(t){var r=this;if(t===void 0&&(t=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var n=0,a=r[0],i=a._private.edges,o=0;ot}),minIndegree:qr("indegree",function(e,t){return et}),minOutdegree:qr("outdegree",function(e,t){return et})}),he(pa,{totalDegree:function(e){for(var t=0,r=this.nodes(),n=0;n0,d=c;c&&(l=l[0]);var h=d?l.position():{x:0,y:0};t===void 0?a!==void 0&&s.position({x:a.x+h.x,y:a.y+h.y}):s.position(e,t+h[e])}else{var f=r.position(),p=o?r.parent():null,v=p&&p.length>0,y=v;v&&(p=p[0]);var g=y?p.position():{x:0,y:0};return a={x:f.x-g.x,y:f.y-g.y},e===void 0?a:a[e]}else if(!i)return;return this}},_t.modelPosition=_t.point=_t.position,_t.modelPositions=_t.points=_t.positions,_t.renderedPoint=_t.renderedPosition,_t.relativePoint=_t.relativePosition;var Pg=ju,mn=ur={},ur;ur.renderedBoundingBox=function(e){var t=this.boundingBox(e),r=this.cy(),n=r.zoom(),a=r.pan(),i=t.x1*n+a.x,o=t.x2*n+a.x,u=t.y1*n+a.y,s=t.y2*n+a.y;return{x1:i,x2:o,y1:u,y2:s,w:o-i,h:s-u}},ur.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()||this.forEachUp(function(r){if(r.isParent()){var n=r._private;n.compoundBoundsClean=!1,n.bbCache=null,e||r.emitAndNotify("bounds")}}),this},ur.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()||!e&&t.batching())return this;function r(o){if(!o.isParent())return;var u=o._private,s=o.children(),l=o.pstyle("compound-sizing-wrt-labels").value==="include",c={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},d=s.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),h=u.position;(d.w===0||d.h===0)&&(d={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},d.x1=h.x-d.w/2,d.x2=h.x+d.w/2,d.y1=h.y-d.h/2,d.y2=h.y+d.h/2);function f(E,P,C){var A=0,D=0,R=P+C;return E>0&&R>0&&(A=P/R*E,D=C/R*E),{biasDiff:A,biasComplementDiff:D}}function p(E,P,C,A){if(C.units==="%")switch(A){case"width":return E>0?C.pfValue*E:0;case"height":return P>0?C.pfValue*P:0;case"average":return E>0&&P>0?C.pfValue*(E+P)/2:0;case"min":return E>0&&P>0?E>P?C.pfValue*P:C.pfValue*E:0;case"max":return E>0&&P>0?E>P?C.pfValue*E:C.pfValue*P:0;default:return 0}else return C.units==="px"?C.pfValue:0}var v=c.width.left.value;c.width.left.units==="px"&&c.width.val>0&&(v=v*100/c.width.val);var y=c.width.right.value;c.width.right.units==="px"&&c.width.val>0&&(y=y*100/c.width.val);var g=c.height.top.value;c.height.top.units==="px"&&c.height.val>0&&(g=g*100/c.height.val);var m=c.height.bottom.value;c.height.bottom.units==="px"&&c.height.val>0&&(m=m*100/c.height.val);var b=f(c.width.val-d.w,v,y),x=b.biasDiff,B=b.biasComplementDiff,k=f(c.height.val-d.h,g,m),w=k.biasDiff,S=k.biasComplementDiff;u.autoPadding=p(d.w,d.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),u.autoWidth=Math.max(d.w,c.width.val),h.x=(-x+d.x1+d.x2+B)/2,u.autoHeight=Math.max(d.h,c.height.val),h.y=(-w+d.y1+d.y2+S)/2}for(var n=0;ne.x2?n:e.x2,e.y1=re.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},cr=function(e,t){return t==null?e:Mt(e,t.x1,t.y1,t.x2,t.y2)},bn=function(e,t,r){return wt(e,t,r)},ga=function(e,t,r){if(!t.cy().headless()){var n=t._private,a=n.rstyle,i=a.arrowWidth/2,o=t.pstyle(r+"-arrow-shape").value,u,s;if(o!=="none"){r==="source"?(u=a.srcX,s=a.srcY):r==="target"?(u=a.tgtX,s=a.tgtY):(u=a.midX,s=a.midY);var l=n.arrowBounds=n.arrowBounds||{},c=l[r]=l[r]||{};c.x1=u-i,c.y1=s-i,c.x2=u+i,c.y2=s+i,c.w=c.x2-c.x1,c.h=c.y2-c.y1,Jn(c,1),Mt(e,c.x1,c.y1,c.x2,c.y2)}}},Oo=function(e,t,r){if(!t.cy().headless()){var n=r?r+"-":"",a=t._private,i=a.rstyle;if(t.pstyle(n+"label").strValue){var o=t.pstyle("text-halign"),u=t.pstyle("text-valign"),s=bn(i,"labelWidth",r),l=bn(i,"labelHeight",r),c=bn(i,"labelX",r),d=bn(i,"labelY",r),h=t.pstyle(n+"text-margin-x").pfValue,f=t.pstyle(n+"text-margin-y").pfValue,p=t.isEdge(),v=t.pstyle(n+"text-rotation"),y=t.pstyle("text-outline-width").pfValue,g=t.pstyle("text-border-width").pfValue/2,m=t.pstyle("text-background-padding").pfValue,b=2,x=l,B=s,k=B/2,w=x/2,S,E,P,C;if(p)S=c-k,E=c+k,P=d-w,C=d+w;else{switch(o.value){case"left":S=c-B,E=c;break;case"center":S=c-k,E=c+k;break;case"right":S=c,E=c+B;break}switch(u.value){case"top":P=d-x,C=d;break;case"center":P=d-w,C=d+w;break;case"bottom":P=d,C=d+x;break}}var A=h-Math.max(y,g)-m-b,D=h+Math.max(y,g)+m+b,R=f-Math.max(y,g)-m-b,_=f+Math.max(y,g)+m+b;S+=A,E+=D,P+=R,C+=_;var I=r||"main",M=a.labelBounds,N=M[I]=M[I]||{};N.x1=S,N.y1=P,N.x2=E,N.y2=C,N.w=E-S,N.h=C-P,N.leftPad=A,N.rightPad=D,N.topPad=R,N.botPad=_;var V=p&&v.strValue==="autorotate",Y=v.pfValue!=null&&v.pfValue!==0;if(V||Y){var q=V?bn(a.rstyle,"labelAngle",r):v.pfValue,W=Math.cos(q),H=Math.sin(q),j=(S+E)/2,$=(P+C)/2;if(!p){switch(o.value){case"left":j=E;break;case"right":j=S;break}switch(u.value){case"top":$=C;break;case"bottom":$=P;break}}var J=function(fe,be){return fe-=j,be-=$,{x:fe*W-be*H+j,y:fe*H+be*W+$}},Q=J(S,P),O=J(S,C),z=J(E,P),F=J(E,C);S=Math.min(Q.x,O.x,z.x,F.x),E=Math.max(Q.x,O.x,z.x,F.x),P=Math.min(Q.y,O.y,z.y,F.y),C=Math.max(Q.y,O.y,z.y,F.y)}var Z=I+"Rot",oe=M[Z]=M[Z]||{};oe.x1=S,oe.y1=P,oe.x2=E,oe.y2=C,oe.w=E-S,oe.h=C-P,Mt(e,S,P,E,C),Mt(a.labelBounds.all,S,P,E,C)}return e}},$u=function(e,t){if(!t.cy().headless()){var r=t.pstyle("outline-opacity").value,n=t.pstyle("outline-width").value+t.pstyle("outline-offset").value;Gu(e,t,r,n,"outside",n/2)}},Gu=function(e,t,r,n,a,i){if(!(r===0||n<=0||a==="inside")){var o=t.cy(),u=t.pstyle("shape").value,s=o.renderer().nodeShapes[u],l=t.position(),c=l.x,d=l.y,h=t.width(),f=t.height();s.hasMiterBounds?(a==="center"&&(n/=2),cr(e,s.miterBounds(c,d,h,f,n))):i!=null&&i>0&&ea(e,[i,i,i,i])}},Bg=function(e,t){if(!t.cy().headless()){var r=t.pstyle("border-opacity").value,n=t.pstyle("border-width").pfValue,a=t.pstyle("border-position").value;Gu(e,t,r,n,a)}},Sg=function(e,t){var r=e._private.cy,n=r.styleEnabled(),a=r.headless(),i=gt(),o=e._private,u=e.isNode(),s=e.isEdge(),l,c,d,h,f,p,v=o.rstyle,y=u&&n?e.pstyle("bounds-expansion").pfValue:[0],g=function(z){return z.pstyle("display").value!=="none"},m=!n||g(e)&&(!s||g(e.source())&&g(e.target()));if(m){var b=0,x=0;n&&t.includeOverlays&&(b=e.pstyle("overlay-opacity").value,b!==0&&(x=e.pstyle("overlay-padding").value));var B=0,k=0;n&&t.includeUnderlays&&(B=e.pstyle("underlay-opacity").value,B!==0&&(k=e.pstyle("underlay-padding").value));var w=Math.max(x,k),S=0,E=0;if(n&&(S=e.pstyle("width").pfValue,E=S/2),u&&t.includeNodes){var P=e.position();f=P.x,p=P.y;var C=e.outerWidth()/2,A=e.outerHeight()/2;l=f-C,c=f+C,d=p-A,h=p+A,Mt(i,l,d,c,h),n&&$u(i,e),n&&t.includeOutlines&&!a&&$u(i,e),n&&Bg(i,e)}else if(s&&t.includeEdges)if(n&&!a){var D=e.pstyle("curve-style").strValue;if(l=Math.min(v.srcX,v.midX,v.tgtX),c=Math.max(v.srcX,v.midX,v.tgtX),d=Math.min(v.srcY,v.midY,v.tgtY),h=Math.max(v.srcY,v.midY,v.tgtY),l-=E,c+=E,d-=E,h+=E,Mt(i,l,d,c,h),D==="haystack"){var R=v.haystackPts;if(R&&R.length===2){if(l=R[0].x,d=R[0].y,c=R[1].x,h=R[1].y,l>c){var _=l;l=c,c=_}if(d>h){var I=d;d=h,h=I}Mt(i,l-E,d-E,c+E,h+E)}}else if(D==="bezier"||D==="unbundled-bezier"||Jt(D,"segments")||Jt(D,"taxi")){var M;switch(D){case"bezier":case"unbundled-bezier":M=v.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":M=v.linePts;break}if(M!=null)for(var N=0;Nc){var W=l;l=c,c=W}if(d>h){var H=d;d=h,h=H}l-=E,c+=E,d-=E,h+=E,Mt(i,l,d,c,h)}if(n&&t.includeEdges&&s&&(ga(i,e,"mid-source"),ga(i,e,"mid-target"),ga(i,e,"source"),ga(i,e,"target")),n&&e.pstyle("ghost").value==="yes"){var j=e.pstyle("ghost-offset-x").pfValue,$=e.pstyle("ghost-offset-y").pfValue;Mt(i,i.x1+j,i.y1+$,i.x2+j,i.y2+$)}var J=o.bodyBounds=o.bodyBounds||{};sl(J,i),ea(J,y),Jn(J,1),n&&(l=i.x1,c=i.x2,d=i.y1,h=i.y2,Mt(i,l-w,d-w,c+w,h+w));var Q=o.overlayBounds=o.overlayBounds||{};sl(Q,i),ea(Q,y),Jn(Q,1);var O=o.labelBounds=o.labelBounds||{};O.all==null?O.all=gt():vf(O.all),n&&t.includeLabels&&(t.includeMainLabels&&Oo(i,e,null),s&&(t.includeSourceLabels&&Oo(i,e,"source"),t.includeTargetLabels&&Oo(i,e,"target")))}return i.x1=Bt(i.x1),i.y1=Bt(i.y1),i.x2=Bt(i.x2),i.y2=Bt(i.y2),i.w=Bt(i.x2-i.x1),i.h=Bt(i.y2-i.y1),i.w>0&&i.h>0&&m&&(ea(i,y),Jn(i,1)),i},Ku=function(e){var t=0,r=function(a){return(a?1:0)<0&&arguments[0]!==void 0?arguments[0]:zg,t=arguments.length>1?arguments[1]:void 0,r=0;r=0;u--)o(u);return this},dr.removeAllListeners=function(){return this.removeListener("*")},dr.emit=dr.trigger=function(e,t,r){var n=this.listeners,a=n.length;return this.emitting++,ze(t)||(t=[t]),Og(this,function(i,o){r!=null&&(n=[{event:o.event,type:o.type,namespace:o.namespace,callback:r}],a=n.length);for(var u=function(){var l=n[s];if(l.type===o.type&&(!l.namespace||l.namespace===o.namespace||l.namespace===Lg)&&i.eventMatches(i.context,l,o)){var c=[o];t!=null&&Xh(c,t),i.beforeEmit(i.context,l,o),l.conf&&l.conf.one&&(i.listeners=i.listeners.filter(function(f){return f!==l}));var d=i.callbackContext(i.context,l,o),h=l.callback.apply(d,c);i.afterEmit(i.context,l,o),h===!1&&(o.stopPropagation(),o.preventDefault())}},s=0;s1&&!n){var a=this.length-1,i=this[a],o=i._private.data.id;this[a]=void 0,this[e]=i,r.set(o,{ele:i,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,r=e._private.data.id,n=t.map.get(r);if(!n)return this;var a=n.index;return this.unmergeAt(a),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&ce(e)){var r=e;e=t.mutableElements().filter(r)}for(var n=0;n=0;t--){var r=this[t];e(r)&&this.unmergeAt(t)}return this},map:function(e,t){for(var r=[],n=this,a=0;ar&&(r=u,n=o)}return{value:r,ele:n}},min:function(e,t){for(var r=1/0,n,a=this,i=0;i=0&&a"u"?"undefined":Ze(Symbol))!=e&&Ze(Symbol.iterator)!=e&&(xa[Symbol.iterator]=function(){var t=this,r={value:void 0,done:!1},n=0,a=this.length;return ms({next:function(){return n1&&arguments[1]!==void 0?arguments[1]:!0,r=this[0],n=r.cy();if(n.styleEnabled()&&r)return r._private.styleDirty&&(r._private.styleDirty=!1,n.style().apply(r)),r._private.style[e]??(t?n.style().getDefaultProperty(e):null)},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var r=t.pstyle(e);return r.pfValue===void 0?r.value:r.pfValue}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var r=this[0];if(r)return t.style().getRenderedStyle(r,e)},style:function(e,t){var r=this.cy();if(!r.styleEnabled())return this;var n=!1,a=r.style();if(Be(e)){var i=e;a.applyBypass(this,i,n),this.emitAndNotify("style")}else if(ce(e))if(t===void 0){var o=this[0];return o?a.getStylePropertyValue(o,e):void 0}else a.applyBypass(this,e,t,n),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?a.getRawStyle(u):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var r=!1,n=t.style(),a=this;if(e===void 0)for(var i=0;i0&&t.push(c[0]),t.push(u[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),ht.neighbourhood=ht.neighborhood,ht.closedNeighbourhood=ht.closedNeighborhood,ht.openNeighbourhood=ht.openNeighborhood,he(ht,{source:Pt(function(e){var t=this[0],r;return t&&(r=t._private.source||t.cy().collection()),r&&e?r.filter(e):r},"source"),target:Pt(function(e){var t=this[0],r;return t&&(r=t._private.target||t.cy().collection()),r&&e?r.filter(e):r},"target"),sources:vc({attr:"source"}),targets:vc({attr:"target"})});function vc(e){return function(t){for(var r=[],n=0;n0);return i},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),ht.componentsOf=ht.components;var lt=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){qe("A collection must have a reference to the core");return}var a=new jt,i=!1;if(!t)t=[];else if(t.length>0&&Be(t[0])&&!an(t[0])){i=!0;for(var o=[],u=new Mr,s=0,l=t.length;s0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=r.cy(),a=n._private,i=[],o=[],u,s=0,l=r.length;s0){for(var N=u.length===r.length?r:new lt(n,u),V=0;V0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,n=[],a={},i=r._private.cy;function o(D){for(var R=D._private.edges,_=0;_0&&(e?P.emitAndNotify("remove"):t&&P.emit("remove"));for(var C=0;C0?A=R:C=R;while(Math.abs(D)>o&&++_=i?m(P,_):I===0?_:x(P,C,C+l)}var k=!1;function w(){k=!0,(e!==t||r!==n)&&b()}var S=function(P){return k||w(),e===t&&r===n?P:P===0?0:P===1?1:y(B(P),t,n)};S.getControlPoints=function(){return[{x:e,y:t},{x:r,y:n}]};var E="generateBezier("+[e,t,r,n]+")";return S.toString=function(){return E},S}var jg=(function(){function e(n){return-n.tension*n.x-n.friction*n.v}function t(n,a,i){var o={x:n.x+i.dx*a,v:n.v+i.dv*a,tension:n.tension,friction:n.friction};return{dx:o.v,dv:e(o)}}function r(n,a){var i={dx:n.v,dv:e(n)},o=t(n,a*.5,i),u=t(n,a*.5,o),s=t(n,a,u),l=1/6*(i.dx+2*(o.dx+u.dx)+s.dx),c=1/6*(i.dv+2*(o.dv+u.dv)+s.dv);return n.x+=l*a,n.v+=c*a,n}return function n(a,i,o){var u={x:-1,v:0,tension:null,friction:null},s=[0],l=0,c=1/1e4,d=16/1e3,h,f,p;for(a=parseFloat(a)||500,i=parseFloat(i)||20,o||(o=null),u.tension=a,u.friction=i,h=o!==null,h?(l=n(a,i),f=l/o*d):f=d;p=r(p||u,f),s.push(1+p.x),l+=16,Math.abs(p.x)>c&&Math.abs(p.v)>c;);return h?function(v){return s[v*(s.length-1)|0]}:l}})(),Fe=function(e,t,r,n){var a=qg(e,t,r,n);return function(i,o,u){return i+(o-i)*a(u)}},Ta={linear:function(e,t,r){return e+(t-e)*r},ease:Fe(.25,.1,.25,1),"ease-in":Fe(.42,0,1,1),"ease-out":Fe(0,0,.58,1),"ease-in-out":Fe(.42,0,.58,1),"ease-in-sine":Fe(.47,0,.745,.715),"ease-out-sine":Fe(.39,.575,.565,1),"ease-in-out-sine":Fe(.445,.05,.55,.95),"ease-in-quad":Fe(.55,.085,.68,.53),"ease-out-quad":Fe(.25,.46,.45,.94),"ease-in-out-quad":Fe(.455,.03,.515,.955),"ease-in-cubic":Fe(.55,.055,.675,.19),"ease-out-cubic":Fe(.215,.61,.355,1),"ease-in-out-cubic":Fe(.645,.045,.355,1),"ease-in-quart":Fe(.895,.03,.685,.22),"ease-out-quart":Fe(.165,.84,.44,1),"ease-in-out-quart":Fe(.77,0,.175,1),"ease-in-quint":Fe(.755,.05,.855,.06),"ease-out-quint":Fe(.23,1,.32,1),"ease-in-out-quint":Fe(.86,0,.07,1),"ease-in-expo":Fe(.95,.05,.795,.035),"ease-out-expo":Fe(.19,1,.22,1),"ease-in-out-expo":Fe(1,0,0,1),"ease-in-circ":Fe(.6,.04,.98,.335),"ease-out-circ":Fe(.075,.82,.165,1),"ease-in-out-circ":Fe(.785,.135,.15,.86),spring:function(e,t,r){if(r===0)return Ta.linear;var n=jg(e,t,r);return function(a,i,o){return a+(i-a)*n(o)}},"cubic-bezier":Fe};function bc(e,t,r,n,a){if(n===1||t===r)return r;var i=a(t,r,n);return e==null||((e.roundValue||e.color)&&(i=Math.round(i)),e.min!==void 0&&(i=Math.max(i,e.min)),e.max!==void 0&&(i=Math.min(i,e.max))),i}function xc(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!=="%")?e.pfValue:e.value:e}function Ur(e,t,r,n,a){var i=a==null?null:a.type;r<0?r=0:r>1&&(r=1);var o=xc(e,a),u=xc(t,a);if(ee(o)&&ee(u))return bc(i,o,u,r,n);if(ze(o)&&ze(u)){for(var s=[],l=0;l0?(d==="spring"&&h.push(o.duration),o.easingImpl=Ta[d].apply(null,h)):o.easingImpl=Ta[d]}var f=o.easingImpl,p=o.duration===0?1:(r-s)/o.duration;if(o.applying&&(p=o.progress),p<0?p=0:p>1&&(p=1),o.delay==null){var v=o.startPosition,y=o.position;if(y&&a&&!e.locked()){var g={};kn(v.x,y.x)&&(g.x=Ur(v.x,y.x,p,f)),kn(v.y,y.y)&&(g.y=Ur(v.y,y.y,p,f)),e.position(g)}var m=o.startPan,b=o.pan,x=i.pan,B=b!=null&&n;B&&(kn(m.x,b.x)&&(x.x=Ur(m.x,b.x,p,f)),kn(m.y,b.y)&&(x.y=Ur(m.y,b.y,p,f)),e.emit("pan"));var k=o.startZoom,w=o.zoom,S=w!=null&&n;S&&(kn(k,w)&&(i.zoom=pn(i.minZoom,Ur(k,w,p,f),i.maxZoom)),e.emit("zoom")),(B||S)&&e.emit("viewport");var E=o.style;if(E&&E.length>0&&a){for(var P=0;P=0;k--){var w=B[k];w()}B.splice(0,B.length)},m=f.length-1;m>=0;m--){var b=f[m],x=b._private;if(x.stopped){f.splice(m,1),x.hooked=!1,x.playing=!1,x.started=!1,g(x.frames);continue}!x.playing&&!x.applying||(x.playing&&x.applying&&(x.applying=!1),x.started||Ug(c,b,e),Wg(c,b,e,d),x.applying&&(x.applying=!1),g(x.frames),x.step!=null&&x.step(e),b.completed()&&(f.splice(m,1),x.hooked=!1,x.playing=!1,x.started=!1,g(x.completes)),v=!0)}return!d&&f.length===0&&p.length===0&&n.push(c),v}for(var i=!1,o=0;o0?t.notify("draw",r):t.notify("draw")),r.unmerge(n),t.emit("step")}var $g={animate:Me.animate(),animation:Me.animation(),animated:Me.animated(),clearQueue:Me.clearQueue(),delay:Me.delay(),delayAnimation:Me.delayAnimation(),stop:Me.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&Un(function(n){wc(n,e),t()})}var r=e.renderer();r&&r.beforeRender?r.beforeRender(function(n,a){wc(a,e)},r.beforeRenderPriorities.animations):t()}},Gg={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,r){var n=t.qualifier;return n==null?!0:e!==r.target&&an(r.target)&&n.matches(r.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,r){return t.qualifier==null?e:r.target}},Ca=function(e){return ce(e)?new or(e):e},Ec={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new ma(Gg,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,r){return this.emitter().on(e,Ca(t),r),this},removeListener:function(e,t,r){return this.emitter().removeListener(e,Ca(t),r),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,r){return this.emitter().one(e,Ca(t),r),this},once:function(e,t,r){return this.emitter().one(e,Ca(t),r),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};Me.eventAliasesOn(Ec);var Xo={png:function(e){var t=this._private.renderer;return e||(e={}),t.png(e)},jpg:function(e){var t=this._private.renderer;return e||(e={}),e.bg=e.bg||"#fff",t.jpg(e)}};Xo.jpeg=Xo.jpg;var Pa={layout:function(e){var t=this;if(e==null){qe("Layout options must be specified to make a layout");return}if(e.name==null){qe("A `name` must be specified to make a layout");return}var r=e.name,n=t.extension("layout",r);if(n==null){qe("No such layout `"+r+"` found. Did you forget to import it and `cytoscape.use()` it?");return}return new n(he({},e,{cy:t,eles:ce(e.eles)?t.$(e.eles):e.eles==null?t.$():e.eles}))}};Pa.createLayout=Pa.makeLayout=Pa.layout;var Kg={notify:function(e,t){var r=this._private;if(this.batching()){r.batchNotifications=r.batchNotifications||{};var n=r.batchNotifications[e]=r.batchNotifications[e]||this.collection();t!=null&&n.merge(t);return}if(r.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount??(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(r){var n=e.batchNotifications[r];n.empty()?t.notify(r):t.notify(r,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var r=Object.keys(e),n=0;n0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(r){var n=r._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Yo.invalidateDimensions=Yo.resize;var Ba={collection:function(e,t){return ce(e)?this.$(e):Ct(e)?e.collection():ze(e)?(t||(t={}),new lt(this,e,t.unique,t.removed)):new lt(this)},nodes:function(e){var t=this.$(function(r){return r.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(r){return r.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};Ba.elements=Ba.filter=Ba.$;var nt={},Tn="t",Zg="f";nt.apply=function(e){for(var t=this,r=t._private.cy.collection(),n=0;n0;if(h||d&&f){var p=void 0;h&&f||h?p=l.properties:f&&(p=l.mappedProperties);for(var v=0;v1&&(x=1),u.color){var k=n.valueMin[0],w=n.valueMax[0],S=n.valueMin[1],E=n.valueMax[1],P=n.valueMin[2],C=n.valueMax[2],A=n.valueMin[3]==null?1:n.valueMin[3],D=n.valueMax[3]==null?1:n.valueMax[3],R=[Math.round(k+(w-k)*x),Math.round(S+(E-S)*x),Math.round(P+(C-P)*x),Math.round(A+(D-A)*x)];i={bypass:n.bypass,name:n.name,value:R,strValue:"rgb("+R[0]+", "+R[1]+", "+R[2]+")"}}else if(u.number){var _=n.valueMin+(n.valueMax-n.valueMin)*x;i=this.parse(n.name,_,n.bypass,h)}else return!1;if(!i)return v(),!1;i.mapping=n,n=i;break;case o.data:for(var I=n.field.split("."),M=d.data,N=0;N0&&i>0){for(var u={},s=!1,l=0;l0?e.delayAnimation(o).play().promise().then(m):m()}).then(function(){return e.animation({style:u,duration:i,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(e,a),e.emitAndNotify("style"),n.transitioning=!1})}else n.transitioning&&(n.transitioning=(this.removeBypasses(e,a),e.emitAndNotify("style"),!1))},nt.checkTrigger=function(e,t,r,n,a,i){var o=this.properties[t],u=a(o);e.removed()||u!=null&&u(r,n,e)&&i(o)},nt.checkZOrderTrigger=function(e,t,r,n){var a=this;this.checkTrigger(e,t,r,n,function(i){return i.triggersZOrder},function(){a._private.cy.notify("zorder",e)})},nt.checkBoundsTrigger=function(e,t,r,n){this.checkTrigger(e,t,r,n,function(a){return a.triggersBounds},function(a){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},nt.checkConnectedEdgesBoundsTrigger=function(e,t,r,n){this.checkTrigger(e,t,r,n,function(a){return a.triggersBoundsOfConnectedEdges},function(a){e.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},nt.checkParallelEdgesBoundsTrigger=function(e,t,r,n){this.checkTrigger(e,t,r,n,function(a){return a.triggersBoundsOfParallelEdges},function(a){e.parallelEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},nt.checkTriggers=function(e,t,r,n){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,r,n),this.checkBoundsTrigger(e,t,r,n),this.checkConnectedEdgesBoundsTrigger(e,t,r,n),this.checkParallelEdgesBoundsTrigger(e,t,r,n)};var Cn={};Cn.applyBypass=function(e,t,r,n){var a=this,i=[],o=!0;if(t==="*"||t==="**"){if(r!==void 0)for(var u=0;ua.length?n.substr(a.length):""}function s(){i=i.length>o.length?i.substr(o.length):""}for(;!n.match(/^\s*$/);){var l=n.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){_e("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+n);break}a=l[0];var c=l[1];if(c!=="core"&&new or(c).invalid){_e("Skipping parsing of block: Invalid selector found in string stylesheet: "+c),u();continue}var d=l[2],h=!1;i=d;for(var f=[];!i.match(/^\s*$/);){var p=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){_e("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),h=!0;break}o=p[0];var v=p[1],y=p[2];if(!t.properties[v]){_e("Skipping property: Invalid property name in: "+o),s();continue}if(!r.parse(v,y)){_e("Skipping property: Invalid property definition in: "+o),s();continue}f.push({name:v,val:y}),s()}if(h){u();break}r.selector(c);for(var g=0;g=7&&t[0]==="d"&&(c=new RegExp(u.data.regex).exec(t))){if(r)return!1;var h=u.data;return{name:e,value:c,strValue:""+t,mapped:h,field:c[1],bypass:r}}else if(t.length>=10&&t[0]==="m"&&(d=new RegExp(u.mapData.regex).exec(t))){if(r||l.multiple)return!1;var f=u.mapData;if(!(l.color||l.number))return!1;var p=this.parse(e,d[4]);if(!p||p.mapped)return!1;var v=this.parse(e,d[5]);if(!v||v.mapped)return!1;if(p.pfValue===v.pfValue||p.strValue===v.strValue)return _e("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+p.strValue+"`"),this.parse(e,p.strValue);if(l.color){var y=p.value,g=v.value;if(y[0]===g[0]&&y[1]===g[1]&&y[2]===g[2]&&(y[3]===g[3]||(y[3]==null||y[3]===1)&&(g[3]==null||g[3]===1)))return!1}return{name:e,value:d,strValue:""+t,mapped:f,field:d[1],fieldMin:parseFloat(d[2]),fieldMax:parseFloat(d[3]),valueMin:p.value,valueMax:v.value,bypass:r}}}if(l.multiple&&n!=="multiple"){var m=s?t.split(/\s+/):ze(t)?t:[t];if(l.evenMultiple&&m.length%2!=0)return null;for(var b=[],x=[],B=[],k="",w=!1,S=0;S0?" ":"")+E.strValue}return l.validate&&!l.validate(b,x)?null:l.singleEnum&&w?b.length===1&&ce(b[0])?{name:e,value:b[0],strValue:b[0],bypass:r}:null:{name:e,value:b,pfValue:B,strValue:k,bypass:r,units:x}}var P=function(){for(var J=0;Jl.max||l.strictMax&&t===l.max))return null;var _={name:e,value:t,strValue:""+t+(C||""),units:C,bypass:r};return l.unitless||C!=="px"&&C!=="em"?_.pfValue=t:_.pfValue=C==="px"||!C?t:this.getEmSizeInPixels()*t,(C==="ms"||C==="s")&&(_.pfValue=C==="ms"?t:1e3*t),(C==="deg"||C==="rad")&&(_.pfValue=C==="rad"?t:hf(t)),C==="%"&&(_.pfValue=t/100),_}else if(l.propList){var I=[],M=""+t;if(M!=="none"){for(var N=M.split(/\s*,\s*|\s+/),V=0;V0&&o>0&&!isNaN(r.w)&&!isNaN(r.h)&&r.w>0&&r.h>0){u=Math.min((i-2*t)/r.w,(o-2*t)/r.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u=r.minZoom&&(r.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,r=t.pan,n=t.zoom,a,i,o=!1;if(t.zoomingEnabled||(o=!0),ee(e)?i=e:Be(e)&&(i=e.level,e.position==null?e.renderedPosition!=null&&(a=e.renderedPosition):a=Zn(e.position,n,r),a!=null&&!t.panningEnabled&&(o=!0)),i=i>t.maxZoom?t.maxZoom:i,i=it.maxZoom||!t.zoomingEnabled?i=!0:(t.zoom=u,a.push("zoom"))}if(n&&(!i||!e.cancelOnFailedZoom)&&t.panningEnabled){var s=e.pan;ee(s.x)&&(t.pan.x=s.x,o=!1),ee(s.y)&&(t.pan.y=s.y,o=!1),o||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(ce(e)){var r=e;e=this.mutableElements().filter(r)}else Ct(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),a=this.width(),i=this.height();return t=t===void 0?this._private.zoom:t,{x:(a-t*(n.x1+n.x2))/2,y:(i-t*(n.y1+n.y2))/2}}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled||this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,r=this;return e.sizeCache=e.sizeCache||(t?(function(){var n=r.window().getComputedStyle(t),a=function(i){return parseFloat(n.getPropertyValue(i))};return{width:t.clientWidth-a("padding-left")-a("padding-right"),height:t.clientHeight-a("padding-top")-a("padding-bottom")}})():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,r=this.renderedExtent(),n={x1:(r.x1-e.x)/t,x2:(r.x2-e.x)/t,y1:(r.y1-e.y)/t,y2:(r.y2-e.y)/t};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};wr.centre=wr.center,wr.autolockNodes=wr.autolock,wr.autoungrabifyNodes=wr.autoungrabify;var Pn={data:Me.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Me.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Me.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Me.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Pn.attr=Pn.data,Pn.removeAttr=Pn.removeData;var Bn=function(e){var t=this;e=he({},e);var r=e.container;r&&!Yn(r)&&Yn(r[0])&&(r=r[0]);var n=r?r._cyreg:null;n||(n={}),n&&n.cy&&(n.cy.destroy(),n={});var a=n.readies=n.readies||[];r&&(r._cyreg=n),n.cy=t;var i=Qe!==void 0&&r!==void 0&&!e.headless,o=e;o.layout=he({name:i?"grid":"null"},o.layout),o.renderer=he({name:i?"canvas":"null"},o.renderer);var u=function(h,f,p){return f===void 0?p===void 0?h:p:f},s=this._private={container:r,ready:!1,options:o,elements:new lt(this),listeners:[],aniEles:new lt(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,o.zoomingEnabled),userZoomingEnabled:u(!0,o.userZoomingEnabled),panningEnabled:u(!0,o.panningEnabled),userPanningEnabled:u(!0,o.userPanningEnabled),boxSelectionEnabled:u(!0,o.boxSelectionEnabled),autolock:u(!1,o.autolock,o.autolockNodes),autoungrabify:u(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:u(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?i:o.styleEnabled,zoom:ee(o.zoom)?o.zoom:1,pan:{x:Be(o.pan)&&ee(o.pan.x)?o.pan.x:0,y:Be(o.pan)&&ee(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var l=function(h,f){if(h.some(sh))return Fr.all(h).then(f);f(h)};s.styleEnabled&&t.setStyle([]);var c=he({},o,o.renderer);t.initRenderer(c);var d=function(h,f,p){t.notifications(!1);var v=t.mutableElements();v.length>0&&v.remove(),h!=null&&(Be(h)||ze(h))&&t.add(h),t.one("layoutready",function(g){t.notifications(!0),t.emit(g),t.one("load",f),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",p),t.emit("done")});var y=he({},t._private.options.layout);y.eles=t.elements(),t.layout(y).run()};l([o.style,o.elements],function(h){var f=h[0],p=h[1];s.styleEnabled&&t.style().append(f),d(p,function(){t.startAnimationLoop(),s.ready=!0,We(o.ready)&&t.on("ready",o.ready);for(var v=0;v0,u=!!e.boundingBox,s=gt(u?e.boundingBox:structuredClone(t.extent())),l;if(Ct(e.roots))l=e.roots;else if(ze(e.roots)){for(var c=[],d=0;d0;){var R=D(),_=E(R,C);if(_)R.outgoers().filter(function(G){return G.isNode()&&r.has(G)}).forEach(A);else if(_===null){_e("Detected double maximal shift for node `"+R.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var I=0;if(e.avoidOverlap)for(var M=0;M0&&g[0].length<=3?pe/2:0),xe=2*Math.PI/g[se].length*ye;return se===0&&g[0].length===1&&(Te=1),{x:F.x+Te*Math.cos(xe),y:F.y+Te*Math.sin(xe)}}else{var Ce=g[se].length,Pe=Math.max(Ce===1?0:u?(s.w-e.padding*2-Z.w)/((e.grid?fe:Ce)-1):(s.w-e.padding*2-Z.w)/((e.grid?fe:Ce)+1),I);return{x:F.x+(ye+1-(Ce+1)/2)*Pe,y:F.y+(se+1-(j+1)/2)*oe}}},Le={downward:0,leftward:90,upward:180,rightward:-90};return Object.keys(Le).indexOf(e.direction)===-1&&qe(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(Le).join(", ")}`),r.nodes().layoutPositions(this,e,function(G){return Nh(be(G),s,Le[e.direction])}),this};var rv={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Cc(e){this.options=he({},rv,e)}Cc.prototype.run=function(){var e=this.options,t=e,r=e.cy,n=t.eles,a=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,i=n.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));for(var o=gt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),u={x:o.x1+o.w/2,y:o.y1+o.h/2},s=(t.sweep===void 0?2*Math.PI-2*Math.PI/i.length:t.sweep)/Math.max(1,i.length-1),l,c=0,d=0;d1&&t.avoidOverlap){c*=1.75;var v=Math.cos(s)-Math.cos(0),y=Math.sin(s)-Math.sin(0),g=Math.sqrt(c*c/(v*v+y*y));l=Math.max(g,l)}return n.nodes().layoutPositions(this,t,function(m,b){var x=t.startAngle+b*s*(a?1:-1),B=l*Math.cos(x),k=l*Math.sin(x);return{x:u.x+B,y:u.y+k}}),this};var nv={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Pc(e){this.options=he({},nv,e)}Pc.prototype.run=function(){for(var e=this.options,t=e,r=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,n=e.cy,a=t.eles,i=a.nodes().not(":parent"),o=gt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),u={x:o.x1+o.w/2,y:o.y1+o.h/2},s=[],l=0,c=0;c0&&Math.abs(g[0].value-b.value)>=v&&(g=[],y.push(g)),g.push(b)}var x=l+t.minNodeSpacing;if(!t.avoidOverlap){var B=y.length>0&&y[0].length>1,k=(Math.min(o.w,o.h)/2-x)/(y.length+B?1:0);x=Math.min(x,k)}for(var w=0,S=0;S1&&t.avoidOverlap){var C=Math.cos(P)-Math.cos(0),A=Math.sin(P)-Math.sin(0),D=Math.sqrt(x*x/(C*C+A*A));w=Math.max(D,w)}E.r=w,w+=x}if(t.equidistant){for(var R=0,_=0,I=0;I=e.numIter||(cv(n,e),n.temperature*=e.coolingFactor,n.temperature=e.animationThreshold&&i(),Un(c)):(_c(n,e),u())};c()}else{for(;l;)l=o(s),s++;_c(n,e),u()}return this},Ra.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Ra.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var iv=function(e,t,r){for(var n=r.eles.edges(),a=r.eles.nodes(),i=gt(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:r.initialTemp,clientWidth:i.w,clientHeight:i.h,boundingBox:i},u=r.eles.components(),s={},l=0;l0){o.graphSet.push(w);for(var l=0;ln.count?0:n.graph},Sc=function(e,t,r,n){var a=n.graphSet[r];if(-10)var p=n.nodeOverlap*u,f=Math.sqrt(a*a+i*i),v=p*a/f,y=p*i/f;else var s=_a(e,a,i),l=_a(t,-1*a,-1*i),c=l.x-s.x,d=l.y-s.y,h=c*c+d*d,f=Math.sqrt(h),p=(e.nodeRepulsion+t.nodeRepulsion)/h,v=p*c/f,y=p*d/f;e.isLocked||(e.offsetX-=v,e.offsetY-=y),t.isLocked||(t.offsetX+=v,t.offsetY+=y)}},fv=function(e,t,r,n){if(r>0)var a=e.maxX-t.minX;else var a=t.maxX-e.minX;if(n>0)var i=e.maxY-t.minY;else var i=t.maxY-e.minY;return a>=0&&i>=0?Math.sqrt(a*a+i*i):0},_a=function(e,t,r){var n=e.positionX,a=e.positionY,i=e.height||1,o=e.width||1,u=r/t,s=i/o,l={};return t===0&&0r?(l.x=n,l.y=a+i/2,l):0t&&-1*s<=u&&u<=s?(l.x=n-o/2,l.y=a-o*r/2/t,l):0=s)?(l.x=n+i*t/2/r,l.y=a+i/2,l):(0>r&&(u<=-1*s||u>=s)&&(l.x=n-i*t/2/r,l.y=a-i/2),l)},pv=function(e,t){for(var r=0;rr){var v=t.gravity*h/p,y=t.gravity*f/p;d.offsetX+=v,d.offsetY+=y}}}}},vv=function(e,t){var r=[],n=0,a=-1;for(r.push.apply(r,e.graphSet[0]),a+=e.graphSet[0].length;n<=a;){var i=r[n++],o=e.idToIndex[i],u=e.layoutNodes[o],s=u.children;if(0r)var a={x:r*e/n,y:r*t/n};else var a={x:e,y:t};return a},Rc=function(e,t){var r=e.parentId;if(r!=null){var n=t.layoutNodes[t.idToIndex[r]],a=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,a=!0),(n.minX==null||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,a=!0),(n.minY==null||e.minY-n.padTopv&&(h+=p+t.componentSpacing,d=0,f=0,p=0)}}},bv={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Mc(e){this.options=he({},bv,e)}Mc.prototype.run=function(){var e=this.options,t=e,r=e.cy,n=t.eles,a=n.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));var i=gt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)n.nodes().layoutPositions(this,t,function(W){return{x:i.x1,y:i.y1}});else{var o=a.size(),u=Math.sqrt(o*i.h/i.w),s=Math.round(u),l=Math.round(i.w/i.h*u),c=function(W){if(W==null)return Math.min(s,l);Math.min(s,l)==s?s=W:l=W},d=function(W){if(W==null)return Math.max(s,l);Math.max(s,l)==s?s=W:l=W},h=t.rows,f=t.cols==null?t.columns:t.cols;if(h!=null&&f!=null)s=h,l=f;else if(h!=null&&f==null)s=h,l=Math.ceil(o/s);else if(h==null&&f!=null)l=f,s=Math.ceil(o/l);else if(l*s>o){var p=c(),v=d();(p-1)*v>=o?c(p-1):(v-1)*p>=o&&d(v-1)}else for(;l*s=o?d(g+1):c(y+1)}var m=i.w/l,b=i.h/s;if(t.condense&&(m=0,b=0),t.avoidOverlap)for(var x=0;x=l&&(_=0,R++)},M={},N=0;N(M=Pf(e,t,N[V],N[V+1],N[V+2],N[V+3])))return y(w,M),!0}else if(E.edgeType==="bezier"||E.edgeType==="multibezier"||E.edgeType==="self"||E.edgeType==="compound"){for(var N=E.allpts,V=0;V+5(M=Cf(e,t,N[V],N[V+1],N[V+2],N[V+3],N[V+4],N[V+5])))return y(w,M),!0}for(var _=_||S.source,I=I||S.target,Y=a.getArrowWidth(P,C),q=[{name:"source",x:E.arrowStartX,y:E.arrowStartY,angle:E.srcArrowAngle},{name:"target",x:E.arrowEndX,y:E.arrowEndY,angle:E.tgtArrowAngle},{name:"mid-source",x:E.midX,y:E.midY,angle:E.midsrcArrowAngle},{name:"mid-target",x:E.midX,y:E.midY,angle:E.midtgtArrowAngle}],V=0;V0&&(g(_),g(I))}function b(w,S,E){return wt(w,S,E)}function x(w,S){var E=w._private,P=h,C=S?S+"-":"";w.boundingBox();var A=E.labelBounds[S||"main"],D=w.pstyle(C+"label").value;if(!(w.pstyle("text-events").strValue!=="yes"||!D)){var R=b(E.rscratch,"labelX",S),_=b(E.rscratch,"labelY",S),I=b(E.rscratch,"labelAngle",S),M=w.pstyle(C+"text-margin-x").pfValue,N=w.pstyle(C+"text-margin-y").pfValue,V=A.x1-P-M,Y=A.x2+P-M,q=A.y1-P-N,W=A.y2+P-N;if(I){var H=Math.cos(I),j=Math.sin(I),$=function(F,Z){return F-=R,Z-=_,{x:F*H-Z*j+R,y:F*j+Z*H+_}},J=$(V,q),Q=$(V,W),O=$(Y,q),z=$(Y,W);if(Et(e,t,[J.x+M,J.y+N,O.x+M,O.y+N,z.x+M,z.y+N,Q.x+M,Q.y+N]))return y(w),!0}else if(rr(A,e,t))return y(w),!0}}for(var B=o.length-1;B>=0;B--){var k=o[B];k.isNode()?g(k)||x(k):m(k)||x(k)||x(k,"source")||x(k,"target")}return u},Er.getAllInBox=function(e,t,r,n){var a=this.getCachedZSortedEles().interactive,i=2/this.cy.zoom(),o=[],u=Math.min(e,r),s=Math.max(e,r),l=Math.min(t,n),c=Math.max(t,n);e=u,r=s,t=l,n=c;var d=gt({x1:e,y1:t,x2:r,y2:n}),h=[{x:d.x1,y:d.y1},{x:d.x2,y:d.y1},{x:d.x2,y:d.y2},{x:d.x1,y:d.y2}],f=[[h[0],h[1]],[h[1],h[2]],[h[2],h[3]],[h[3],h[0]]];function p(Z,oe,fe){return wt(Z,oe,fe)}function v(Z,oe){var fe=Z._private,be=i,Le="";Z.boundingBox();var G=fe.labelBounds.main;if(!G)return null;var le=p(fe.rscratch,"labelX",oe),se=p(fe.rscratch,"labelY",oe),ye=p(fe.rscratch,"labelAngle",oe),pe=Z.pstyle(Le+"text-margin-x").pfValue,Te=Z.pstyle(Le+"text-margin-y").pfValue,xe=G.x1-be-pe,Ce=G.x2+be-pe,Pe=G.y1-be-Te,Ie=G.y2+be-Te;if(ye){var Ae=Math.cos(ye),ue=Math.sin(ye),me=function(ge,je){return ge-=le,je-=se,{x:ge*Ae-je*ue+le,y:ge*ue+je*Ae+se}};return[me(xe,Pe),me(Ce,Pe),me(Ce,Ie),me(xe,Ie)]}else return[{x:xe,y:Pe},{x:Ce,y:Pe},{x:Ce,y:Ie},{x:xe,y:Ie}]}function y(Z,oe,fe,be){function Le(G,le,se){return(se.y-G.y)*(le.x-G.x)>(le.y-G.y)*(se.x-G.x)}return Le(Z,fe,be)!==Le(oe,fe,be)&&Le(Z,oe,fe)!==Le(Z,oe,be)}for(var g=0;g0?-(Math.PI-e.ang):Math.PI+e.ang},Cv=function(e,t,r,n,a){if(e===qc?Tv(St,zt):jc(t,e,zt),jc(t,r,St),Vc=zt.nx*St.ny-zt.ny*St.nx,Fc=zt.nx*St.nx-zt.ny*-St.ny,Ut=Math.asin(Math.max(-1,Math.min(1,Vc))),Math.abs(Ut)<1e-6){$o=t.x,Go=t.y,Cr=Sn=0;return}kr=1,Ia=!1,Fc<0?Ut<0?Ut=Math.PI+Ut:(Ut=Math.PI-Ut,kr=-1,Ia=!0):Ut>0&&(kr=-1,Ia=!0),Sn=t.radius===void 0?n:t.radius,Tr=Ut/2,Na=Math.min(zt.len/2,St.len/2),a?(Ot=Math.abs(Math.cos(Tr)*Sn/Math.sin(Tr)),Ot>Na?(Ot=Na,Cr=Math.abs(Ot*Math.sin(Tr)/Math.cos(Tr))):Cr=Sn):(Ot=Math.min(Na,Sn),Cr=Math.abs(Ot*Math.sin(Tr)/Math.cos(Tr))),Ko=t.x+St.nx*Ot,Ho=t.y+St.ny*Ot,$o=Ko-St.ny*Cr*kr,Go=Ho+St.nx*Cr*kr,Xc=t.x+zt.nx*Ot,Yc=t.y+zt.ny*Ot,qc=t};function Wc(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function Zo(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return n===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(Cv(e,t,r,n,a),{cx:$o,cy:Go,radius:Cr,startX:Xc,startY:Yc,stopX:Ko,stopY:Ho,startAngle:zt.ang+Math.PI/2*kr,endAngle:St.ang-Math.PI/2*kr,counterClockwise:Ia})}var Dn=.01,Pv=Math.sqrt(2*Dn),pt={};pt.findMidptPtsEtc=function(e,t){var r=t.posPts,n=t.intersectionPts,a=t.vectorNormInverse,i,o=e.pstyle("source-endpoint"),u=e.pstyle("target-endpoint"),s=o.units!=null&&u.units!=null,l=function(g,m,b,x){var B=x-m,k=b-g,w=Math.sqrt(k*k+B*B);return{x:-B/w,y:k/w}};switch(e.pstyle("edge-distances").value){case"node-position":i=r;break;case"intersection":i=n;break;case"endpoints":if(s){var c=Ge(this.manualEndptToPx(e.source()[0],o),2),d=c[0],h=c[1],f=Ge(this.manualEndptToPx(e.target()[0],u),2),p=f[0],v=f[1],y={x1:d,y1:h,x2:p,y2:v};a=l(d,h,p,v),i=y}else _e(`Edge ${e.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`),i=n;break}return{midptPts:i,vectorNormInverse:a}},pt.findHaystackPoints=function(e){for(var t=0;t0?Math.max(G-le,0):Math.min(G+le,0)},A=C(E,w),D=C(P,S),R=!1;g===l?y=Math.abs(A)>Math.abs(D)?a:n:g===s||g===u?(y=n,R=!0):(g===i||g===o)&&(y=a,R=!0);var _=y===n,I=_?D:A,M=_?P:E,N=xi(M),V=!1;!(R&&(b||B))&&(g===u&&M<0||g===s&&M>0||g===i&&M>0||g===o&&M<0)&&(N*=-1,I=N*Math.abs(I),V=!0);var Y=b?(x<0?1+x:x)*I:(x<0?I:0)+x*N,q=function(G){return Math.abs(G)=Math.abs(I)},W=q(Y),H=q(Math.abs(I)-Math.abs(Y));if((W||H)&&!V)if(_){var j=Math.abs(M)<=h/2,$=Math.abs(E)<=f/2;if(j){var J=(c.x1+c.x2)/2;r.segpts=[J,c.y1,J,c.y2]}else if($){var Q=(c.y1+c.y2)/2;r.segpts=[c.x1,Q,c.x2,Q]}else r.segpts=[c.x1,c.y2]}else{var O=Math.abs(M)<=d/2,z=Math.abs(P)<=p/2;if(O){var F=(c.y1+c.y2)/2;r.segpts=[c.x1,F,c.x2,F]}else if(z){var Z=(c.x1+c.x2)/2;r.segpts=[Z,c.y1,Z,c.y2]}else r.segpts=[c.x2,c.y1]}else if(_){var oe=c.y1+Y+(v?h/2*N:0);r.segpts=[c.x1,oe,c.x2,oe]}else{var fe=c.x1+Y+(v?d/2*N:0);r.segpts=[fe,c.y1,fe,c.y2]}if(r.isRound){var be=e.pstyle("taxi-radius").value,Le=e.pstyle("radius-type").value[0]==="arc-radius";r.radii=Array(r.segpts.length/2).fill(be),r.isArcRadius=Array(r.segpts.length/2).fill(Le)}},pt.tryToCorrectInvalidPoints=function(e,t){var r=e._private.rscratch;if(r.edgeType==="bezier"){var n=t.srcPos,a=t.tgtPos,i=t.srcW,o=t.srcH,u=t.tgtW,s=t.tgtH,l=t.srcShape,c=t.tgtShape,d=t.srcCornerRadius,h=t.tgtCornerRadius,f=t.srcRs,p=t.tgtRs,v=!ee(r.startX)||!ee(r.startY),y=!ee(r.arrowStartX)||!ee(r.arrowStartY),g=!ee(r.endX)||!ee(r.endY),m=!ee(r.arrowEndX)||!ee(r.arrowEndY),b=3*(this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth),x=yr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),B=xR.poolIndex()){var _=D;D=R,R=_}var I=E.srcPos=D.position(),M=E.tgtPos=R.position(),N=E.srcW=D.outerWidth(),V=E.srcH=D.outerHeight(),Y=E.tgtW=R.outerWidth(),q=E.tgtH=R.outerHeight(),W=E.srcShape=r.nodeShapes[t.getNodeShape(D)],H=E.tgtShape=r.nodeShapes[t.getNodeShape(R)],j=E.srcCornerRadius=D.pstyle("corner-radius").value==="auto"?"auto":D.pstyle("corner-radius").pfValue,$=E.tgtCornerRadius=R.pstyle("corner-radius").value==="auto"?"auto":R.pstyle("corner-radius").pfValue,J=E.tgtRs=R._private.rscratch,Q=E.srcRs=D._private.rscratch;E.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var O=0;O=Pv||(xe=Math.sqrt(Math.max(Te*Te,Dn)+Math.max(pe*pe,Dn)));var Ce=E.vector={x:Te,y:pe},Pe=E.vectorNorm={x:Ce.x/xe,y:Ce.y/xe},Ie={x:-Pe.y,y:Pe.x};E.nodesOverlap=!ee(xe)||H.checkPoint(be[0],be[1],0,Y,q,M.x,M.y,$,J)||W.checkPoint(G[0],G[1],0,N,V,I.x,I.y,j,Q),E.vectorNormInverse=Ie,P={nodesOverlap:E.nodesOverlap,dirCounts:E.dirCounts,calculatedIntersection:!0,hasBezier:E.hasBezier,hasUnbundled:E.hasUnbundled,eles:E.eles,srcPos:M,srcRs:J,tgtPos:I,tgtRs:Q,srcW:Y,srcH:q,tgtW:N,tgtH:V,srcIntn:le,tgtIntn:Le,srcShape:H,tgtShape:W,posPts:{x1:ye.x2,y1:ye.y2,x2:ye.x1,y2:ye.y1},intersectionPts:{x1:se.x2,y1:se.y2,x2:se.x1,y2:se.y1},vector:{x:-Ce.x,y:-Ce.y},vectorNorm:{x:-Pe.x,y:-Pe.y},vectorNormInverse:{x:-Ie.x,y:-Ie.y}}}var Ae=fe?P:E;F.nodesOverlap=Ae.nodesOverlap,F.srcIntn=Ae.srcIntn,F.tgtIntn=Ae.tgtIntn,F.isRound=Z.startsWith("round"),n&&(D.isParent()||D.isChild()||R.isParent()||R.isChild())&&(D.parents().anySame(R)||R.parents().anySame(D)||D.same(R)&&D.isParent())?t.findCompoundLoopPoints(z,Ae,O,oe):D===R?t.findLoopPoints(z,Ae,O,oe):Z.endsWith("segments")?t.findSegmentsPoints(z,Ae):Z.endsWith("taxi")?t.findTaxiPoints(z,Ae):Z==="straight"||!oe&&E.eles.length%2==1&&O===Math.floor(E.eles.length/2)?t.findStraightEdgePoints(z):t.findBezierPoints(z,Ae,O,oe,fe),t.findEndpoints(z),t.tryToCorrectInvalidPoints(z,Ae),t.checkForInvalidEdgeWarning(z),t.storeAllpts(z),t.storeEdgeProjections(z),t.calculateArrowAngles(z),t.recalculateEdgeLabelProjections(z),t.calculateLabelAngles(z)}},x=0;x0){var be=u,Le=mr(be,Ir(a)),G=mr(be,Ir(fe)),le=Le;G2&&mr(be,{x:fe[2],y:fe[3]})0){var je=s,Ye=mr(je,Ir(a)),T=mr(je,Ir(ge)),L=Ye;T2&&mr(je,{x:ge[2],y:ge[3]})=h||B){p={cp:m,segment:x};break}}if(p)break}var k=p.cp,w=p.segment,S=(h-v)/w.length,E=w.t1-w.t0,P=d?w.t0+E*S:w.t1-E*S;P=pn(0,P,1),t=Nr(k.p0,k.p1,k.p2,P),c=Sv(k.p0,k.p1,k.p2,P);break;case"straight":case"segments":case"haystack":for(var C=0,A,D,R,_,I=n.allpts.length,M=0;M+3=h));M+=2);var N=(h-D)/A;N=pn(0,N,1),t=pf(R,_,N),c=Gc(R,_);break}o("labelX",l,t.x),o("labelY",l,t.y),o("labelAutoAngle",l,c)}};s("source"),s("target"),this.applyLabelDimensions(e)}},Vt.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},Vt.applyPrefixedLabelDimensions=function(e,t){var r=e._private,n=this.getLabelText(e,t),a=vr(n,e._private.labelDimsKey);if(wt(r.rscratch,"prefixedLabelDimsKey",t)!==a){qt(r.rscratch,"prefixedLabelDimsKey",t,a);var i=this.calculateLabelDimensions(e,n),o=e.pstyle("line-height").pfValue,u=e.pstyle("text-wrap").strValue,s=wt(r.rscratch,"labelWrapCachedLines",t)||[],l=u==="wrap"?Math.max(s.length,1):1,c=i.height/l,d=c*o,h=i.width,f=i.height+(l-1)*(o-1)*c;qt(r.rstyle,"labelWidth",t,h),qt(r.rscratch,"labelWidth",t,h),qt(r.rstyle,"labelHeight",t,f),qt(r.rscratch,"labelHeight",t,f),qt(r.rscratch,"labelLineHeight",t,d)}},Vt.getLabelText=function(e,t){var r=e._private,n=t?t+"-":"",a=e.pstyle(n+"label").strValue,i=e.pstyle("text-transform").value,o=function(I,M){return M?(qt(r.rscratch,I,t,M),M):wt(r.rscratch,I,t)};if(!a)return"";i=="none"||(i=="uppercase"?a=a.toUpperCase():i=="lowercase"&&(a=a.toLowerCase()));var u=e.pstyle("text-wrap").value;if(u==="wrap"){var s=o("labelKey");if(s!=null&&o("labelWrapKey")===s)return o("labelWrapCachedText");for(var l="\u200B",c=a.split(` +`),d=e.pstyle("text-max-width").pfValue,h=e.pstyle("text-overflow-wrap").value==="anywhere",f=[],p=/[\s\u200b]+|$/g,v=0;vd){var m=y.matchAll(p),b="",x=0,B=xt(m),k;try{for(B.s();!(k=B.n()).done;){var w=k.value,S=w[0],E=y.substring(x,w.index);x=w.index+S.length;var P=b.length===0?E:b+E+S;this.calculateLabelDimensions(e,P).width<=d?b+=E+S:(b&&f.push(b),b=E+S)}}catch(I){B.e(I)}finally{B.f()}b.match(/^[\s\u200b]+$/)||f.push(b)}else f.push(y)}o("labelWrapCachedLines",f),a=o("labelWrapCachedText",f.join(` +`)),o("labelWrapKey",s)}else if(u==="ellipsis"){var C=e.pstyle("text-max-width").pfValue,A="",D="\u2026",R=!1;if(this.calculateLabelDimensions(e,a).widthC);_++)A+=a[_],_===a.length-1&&(R=!0);return R||(A+=D),A}return a},Vt.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,r=e.pstyle("text-halign").strValue;if(t==="auto")if(e.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return t},Vt.calculateLabelDimensions=function(e,t){var r=this.cy.window().document,n=0,a=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue,o=e.pstyle("font-family").strValue,u=e.pstyle("font-weight").strValue,s=this.labelCalcCanvas,l=this.labelCalcCanvasContext;if(!s){s=this.labelCalcCanvas=r.createElement("canvas"),l=this.labelCalcCanvasContext=s.getContext("2d");var c=s.style;c.position="absolute",c.left="-9999px",c.top="-9999px",c.zIndex="-1",c.visibility="hidden",c.pointerEvents="none"}l.font=`${a} ${u} ${i}px ${o}`;for(var d=0,h=0,f=t.split(` +`),p=0;p1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(i),o)for(var u=0;u=e.desktopTapThreshold2}var tt=i(T);Oe&&(e.hoverData.tapholdCancelled=!0);var kt=function(){var It=e.hoverData.dragDelta=e.hoverData.dragDelta||[];It.length===0?(It.push(ve[0]),It.push(ve[1])):(It[0]+=ve[0],It[1]+=ve[1])};L=!0,a(Ee,["mousemove","vmousemove","tapdrag"],T,{x:te[0],y:te[1]});var Tt=function(It){return{originalEvent:T,type:It,position:{x:te[0],y:te[1]}}},en=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||X.emit(Tt("boxstart")),ie[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(e.hoverData.which===3){if(Oe){var On=Tt("cxtdrag");ae?ae.emit(On):X.emit(On),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||Ee!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(Tt("cxtdragout")),e.hoverData.cxtOver=Ee,Ee&&Ee.emit(Tt("cxtdragover")))}}else if(e.hoverData.dragging){if(L=!0,X.panningEnabled()&&X.userPanningEnabled()){var Ar;if(e.hoverData.justStartedPan){var Kt=e.hoverData.mdownPos;Ar={x:(te[0]-Kt[0])*U,y:(te[1]-Kt[1])*U},e.hoverData.justStartedPan=!1}else Ar={x:ve[0]*U,y:ve[1]*U};X.panBy(Ar),X.emit(Tt("dragpan")),e.hoverData.dragged=!0}te=e.projectIntoViewport(T.clientX,T.clientY)}else if(ie[4]==1&&(ae==null||ae.pannable()))Oe&&(!e.hoverData.dragging&&X.boxSelectionEnabled()&&(tt||!X.panningEnabled()||!X.userPanningEnabled())?en():!e.hoverData.selecting&&X.panningEnabled()&&X.userPanningEnabled()&&o(ae,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,ie[4]=0,e.data.bgActivePosistion=Ir(re),e.redrawHint("select",!0),e.redraw()),ae&&ae.pannable()&&ae.active()&&ae.unactivate());else{if(ae&&ae.pannable()&&ae.active()&&ae.unactivate(),(!ae||!ae.grabbed())&&Ee!=Re&&(Re&&a(Re,["mouseout","tapdragout"],T,{x:te[0],y:te[1]}),Ee&&a(Ee,["mouseover","tapdragover"],T,{x:te[0],y:te[1]}),e.hoverData.last=Ee),ae)if(Oe){if(X.boxSelectionEnabled()&&tt)ae&&ae.grabbed()&&(g(ke),ae.emit(Tt("freeon")),ke.emit(Tt("free")),e.dragData.didDrag&&(ae.emit(Tt("dragfreeon")),ke.emit(Tt("dragfree")))),en();else if(ae&&ae.grabbed()&&e.nodeIsDraggable(ae)){var mt=!e.dragData.didDrag;mt&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||v(ke,{inDragLayer:!0});var dt={x:0,y:0};if(ee(ve[0])&&ee(ve[1])&&(dt.x+=ve[0],dt.y+=ve[1],mt)){var bt=e.hoverData.dragDelta;bt&&ee(bt[0])&&ee(bt[1])&&(dt.x+=bt[0],dt.y+=bt[1])}e.hoverData.draggingEles=!0,ke.silentShift(dt).emit(Tt("position")).emit(Tt("drag")),e.redrawHint("drag",!0),e.redraw()}}else kt();L=!0}if(ie[2]=te[0],ie[3]=te[1],L)return T.stopPropagation&&T.stopPropagation(),T.preventDefault&&T.preventDefault(),!1}},!1);var A,D,R;e.registerBinding(t,"mouseup",function(T){if(!(e.hoverData.which===1&&T.which!==1&&e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var L=e.cy,X=e.projectIntoViewport(T.clientX,T.clientY),U=e.selection,K=e.findNearestElement(X[0],X[1],!0,!1),te=e.dragData.possibleDragElements,re=e.hoverData.down,de=i(T);e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,re&&re.unactivate();var ie=function(ke){return{originalEvent:T,type:ke,position:{x:X[0],y:X[1]}}};if(e.hoverData.which===3){var Ee=ie("cxttapend");if(re?re.emit(Ee):L.emit(Ee),!e.hoverData.cxtDragged){var Re=ie("cxttap");re?re.emit(Re):L.emit(Re)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(a(K,["mouseup","tapend","vmouseup"],T,{x:X[0],y:X[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(a(re,["click","tap","vclick"],T,{x:X[0],y:X[1]}),D=!1,T.timeStamp-R<=L.multiClickDebounceTime()?(A&&clearTimeout(A),D=!0,R=null,a(re,["dblclick","dbltap","vdblclick"],T,{x:X[0],y:X[1]})):(A=setTimeout(function(){D||a(re,["oneclick","onetap","voneclick"],T,{x:X[0],y:X[1]})},L.multiClickDebounceTime()),R=T.timeStamp)),re==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!i(T)&&(L.$(r).unselect(["tapunselect"]),te.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=te=L.collection()),K==re&&!e.dragData.didDrag&&!e.hoverData.selecting&&K!=null&&K._private.selectable&&(e.hoverData.dragging||(L.selectionType()==="additive"||de?K.selected()?K.unselect(["tapunselect"]):K.select(["tapselect"]):de||(L.$(r).unmerge(K).unselect(["tapunselect"]),K.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var ae=L.collection(e.getAllInBox(U[0],U[1],U[2],U[3]));e.redrawHint("select",!0),ae.length>0&&e.redrawHint("eles",!0),L.emit(ie("boxend")),L.selectionType()==="additive"||de||L.$(r).unmerge(ae).unselect(),ae.emit(ie("box")).stdFilter(function(ke){return ke.selectable()&&!ke.selected()}).select().emit(ie("boxselect")),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!U[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var ve=re&&re.grabbed();g(te),ve&&(re.emit(ie("freeon")),te.emit(ie("free")),e.dragData.didDrag&&(re.emit(ie("dragfreeon")),te.emit(ie("dragfree"))))}}U[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var _=[],I=4,M,N=1e5,V=function(T,L){for(var X=0;X=I){var U=_;if(M=V(U,5),!M){var K=Math.abs(U[0]);M=Y(U)&&K>5}if(M)for(var te=0;te5&&(X=xi(X)*5),ae=X/-250,M&&(ae/=N,ae*=3),ae*=e.wheelSensitivity,T.deltaMode===1&&(ae*=33);var ve=re.zoom()*10**ae;T.type==="gesturechange"&&(ve=e.gestureStartZoom*T.scale),re.zoom({level:ve,renderedPosition:{x:Re[0],y:Re[1]}}),re.emit({type:T.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:T,position:{x:Ee[0],y:Ee[1]}})}}}};e.registerBinding(e.container,"wheel",q,!0),e.registerBinding(t,"scroll",function(T){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(T){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||T.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(T){e.hasTouchStarted||q(T)},!0),e.registerBinding(e.container,"mouseout",function(T){var L=e.projectIntoViewport(T.clientX,T.clientY);e.cy.emit({originalEvent:T,type:"mouseout",position:{x:L[0],y:L[1]}})},!1),e.registerBinding(e.container,"mouseover",function(T){var L=e.projectIntoViewport(T.clientX,T.clientY);e.cy.emit({originalEvent:T,type:"mouseover",position:{x:L[0],y:L[1]}})},!1);var W,H,j,$,J,Q,O,z,F,Z,oe,fe,be,Le=function(T,L,X,U){return Math.sqrt((X-T)*(X-T)+(U-L)*(U-L))},G=function(T,L,X,U){return(X-T)*(X-T)+(U-L)*(U-L)},le;e.registerBinding(e.container,"touchstart",le=function(T){if(e.hasTouchStarted=!0,P(T)){b(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var L=e.cy,X=e.touchData.now,U=e.touchData.earlier;if(T.touches[0]){var K=e.projectIntoViewport(T.touches[0].clientX,T.touches[0].clientY);X[0]=K[0],X[1]=K[1]}if(T.touches[1]){var K=e.projectIntoViewport(T.touches[1].clientX,T.touches[1].clientY);X[2]=K[0],X[3]=K[1]}if(T.touches[2]){var K=e.projectIntoViewport(T.touches[2].clientX,T.touches[2].clientY);X[4]=K[0],X[5]=K[1]}var te=function(kt){return{originalEvent:T,type:kt,position:{x:X[0],y:X[1]}}};if(T.touches[1]){e.touchData.singleTouchMoved=!0,g(e.dragData.touchDragEles);var re=e.findContainerClientCoords();F=re[0],Z=re[1],oe=re[2],fe=re[3],W=T.touches[0].clientX-F,H=T.touches[0].clientY-Z,j=T.touches[1].clientX-F,$=T.touches[1].clientY-Z,be=0<=W&&W<=oe&&0<=j&&j<=oe&&0<=H&&H<=fe&&0<=$&&$<=fe;var de=L.pan(),ie=L.zoom();J=Le(W,H,j,$),Q=G(W,H,j,$),O=[(W+j)/2,(H+$)/2],z=[(O[0]-de.x)/ie,(O[1]-de.y)/ie];var Ee=200,Re=Ee*Ee;if(Q=1){for(var it=e.touchData.startPosition=[null,null,null,null,null,null],$e=0;$e=e.touchTapThreshold2}if(L&&e.touchData.cxt){T.preventDefault();var He=T.touches[0].clientX-F,it=T.touches[0].clientY-Z,$e=T.touches[1].clientX-F,tt=T.touches[1].clientY-Z,kt=G(He,it,$e,tt),Tt=kt/Q,en=150,On=en*en,Ar=1.5;if(Tt>=Ar*Ar||kt>=On){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Kt=ie("cxttapend");e.touchData.start?(e.touchData.start.unactivate().emit(Kt),e.touchData.start=null):U.emit(Kt)}}if(L&&e.touchData.cxt){var Kt=ie("cxtdrag");e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(Kt):U.emit(Kt),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var mt=e.findNearestElement(K[0],K[1],!0,!0);(!e.touchData.cxtOver||mt!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(ie("cxtdragout")),e.touchData.cxtOver=mt,mt&&mt.emit(ie("cxtdragover")))}else if(L&&T.touches[2]&&U.boxSelectionEnabled())T.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||U.emit(ie("boxstart")),e.touchData.selecting=!0,e.touchData.didSelect=!0,X[4]=1,!X||X.length===0||X[0]===void 0?(X[0]=(K[0]+K[2]+K[4])/3,X[1]=(K[1]+K[3]+K[5])/3,X[2]=(K[0]+K[2]+K[4])/3+1,X[3]=(K[1]+K[3]+K[5])/3+1):(X[2]=(K[0]+K[2]+K[4])/3,X[3]=(K[1]+K[3]+K[5])/3),e.redrawHint("select",!0),e.redraw();else if(L&&T.touches[1]&&!e.touchData.didSelect&&U.zoomingEnabled()&&U.panningEnabled()&&U.userZoomingEnabled()&&U.userPanningEnabled()){T.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var dt=e.dragData.touchDragEles;if(dt){e.redrawHint("drag",!0);for(var bt=0;bt0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1);var ye;e.registerBinding(t,"touchcancel",ye=function(T){var L=e.touchData.start;e.touchData.capture=!1,L&&L.unactivate()});var pe,Te,xe,Ce;if(e.registerBinding(t,"touchend",pe=function(T){var L=e.touchData.start;if(e.touchData.capture)T.touches.length===0&&(e.touchData.capture=!1),T.preventDefault();else return;var X=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var U=e.cy,K=U.zoom(),te=e.touchData.now,re=e.touchData.earlier;if(T.touches[0]){var de=e.projectIntoViewport(T.touches[0].clientX,T.touches[0].clientY);te[0]=de[0],te[1]=de[1]}if(T.touches[1]){var de=e.projectIntoViewport(T.touches[1].clientX,T.touches[1].clientY);te[2]=de[0],te[3]=de[1]}if(T.touches[2]){var de=e.projectIntoViewport(T.touches[2].clientX,T.touches[2].clientY);te[4]=de[0],te[5]=de[1]}var ie=function(tt){return{originalEvent:T,type:tt,position:{x:te[0],y:te[1]}}};L&&L.unactivate();var Ee;if(e.touchData.cxt){if(Ee=ie("cxttapend"),L?L.emit(Ee):U.emit(Ee),!e.touchData.cxtDragged){var Re=ie("cxttap");L?L.emit(Re):U.emit(Re)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!T.touches[2]&&U.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var ae=U.collection(e.getAllInBox(X[0],X[1],X[2],X[3]));X[0]=void 0,X[1]=void 0,X[2]=void 0,X[3]=void 0,X[4]=0,e.redrawHint("select",!0),U.emit(ie("boxend")),ae.emit(ie("box")).stdFilter(function(tt){return tt.selectable()&&!tt.selected()}).select().emit(ie("boxselect")),ae.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(L==null||L.unactivate(),T.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(!T.touches[1]&&!T.touches[0]&&!T.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var ve=e.dragData.touchDragEles;if(L!=null){var ke=L._private.grabbed;g(ve),e.redrawHint("drag",!0),e.redrawHint("eles",!0),ke&&(L.emit(ie("freeon")),ve.emit(ie("free")),e.dragData.didDrag&&(L.emit(ie("dragfreeon")),ve.emit(ie("dragfree")))),a(L,["touchend","tapend","vmouseup","tapdragout"],T,{x:te[0],y:te[1]}),L.unactivate(),e.touchData.start=null}else a(e.findNearestElement(te[0],te[1],!0,!0),["touchend","tapend","vmouseup","tapdragout"],T,{x:te[0],y:te[1]});var Oe=e.touchData.startPosition[0]-te[0],ct=Oe*Oe,He=e.touchData.startPosition[1]-te[1],it=(ct+He*He)*K*K;e.touchData.singleTouchMoved||(L||U.$(":selected").unselect(["tapunselect"]),a(L,["tap","vclick"],T,{x:te[0],y:te[1]}),Te=!1,T.timeStamp-Ce<=U.multiClickDebounceTime()?(xe&&clearTimeout(xe),Te=!0,Ce=null,a(L,["dbltap","vdblclick"],T,{x:te[0],y:te[1]})):(xe=setTimeout(function(){Te||a(L,["onetap","voneclick"],T,{x:te[0],y:te[1]})},U.multiClickDebounceTime()),Ce=T.timeStamp)),L!=null&&!e.dragData.didDrag&&L._private.selectable&&it"u"){var Pe=[],Ie=function(T){return{clientX:T.clientX,clientY:T.clientY,force:1,identifier:T.pointerId,pageX:T.pageX,pageY:T.pageY,radiusX:T.width/2,radiusY:T.height/2,screenX:T.screenX,screenY:T.screenY,target:T.target}},Ae=function(T){return{event:T,touch:Ie(T)}},ue=function(T){Pe.push(Ae(T))},me=function(T){for(var L=0;L0)return R[0]}return null},f=Object.keys(d),p=0;p0?d:cl(a,i,e,t,r,n,o,u)},checkPoint:function(e,t,r,n,a,i,o,u){u=u==="auto"?ar(n,a):u;var s=2*u;if(Wt(e,t,this.points,i,o,n,a-s,[0,-1],r)||Wt(e,t,this.points,i,o,n-s,a,[0,-1],r))return!0;var l=n/2+2*r,c=a/2+2*r;return!!(Et(e,t,[i-l,o-c,i-l,o,i+l,o,i+l,o-c])||br(e,t,s,s,i+n/2-u,o+a/2-u,r)||br(e,t,s,s,i-n/2+u,o+a/2-u,r))}}},$t.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",vt(3,0)),this.generateRoundPolygon("round-triangle",vt(3,0)),this.generatePolygon("rectangle",vt(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r),this.generatePolygon("pentagon",vt(5,0)),this.generateRoundPolygon("round-pentagon",vt(5,0)),this.generatePolygon("hexagon",vt(6,0)),this.generateRoundPolygon("round-hexagon",vt(6,0)),this.generatePolygon("heptagon",vt(7,0)),this.generateRoundPolygon("round-heptagon",vt(7,0)),this.generatePolygon("octagon",vt(8,0)),this.generateRoundPolygon("round-octagon",vt(8,0));var n=Array(20),a=ki(5,0),i=ki(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var u=0;u=e.deqFastCost*g)break}else if(o){if(v>=e.deqCost*c||v>=e.deqAvgCost*l)break}else if(y>=e.deqNoDrawCost*Jo)break;var m=e.deq(t,f,h);if(m.length>0)for(var b=0;b0&&(e.onDeqd(t,d),!o&&e.shouldRedraw(t,d,f,h)&&n())},i=e.priority||gi;r.beforeRender(a,i(t))}}}},Av=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn;Ht(this,e),this.idsByKey=new jt,this.keyForId=new jt,this.cachesByLvl=new jt,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=r}return Zt(e,[{key:"getIdsFor",value:function(t){t??qe("Can not get id list for null key");var r=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new Mr,r.set(t,n)),n}},{key:"addIdForKey",value:function(t,r){t!=null&&this.getIdsFor(t).add(r)}},{key:"deleteIdForKey",value:function(t,r){t!=null&&this.getIdsFor(t).delete(r)}},{key:"getNumberOfIdsForKey",value:function(t){return t==null?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var r=t.id(),n=this.keyForId.get(r),a=this.getKey(t);this.deleteIdForKey(n,r),this.addIdForKey(a,r),this.keyForId.set(r,a)}},{key:"deleteKeyMappingFor",value:function(t){var r=t.id(),n=this.keyForId.get(r);this.deleteIdForKey(n,r),this.keyForId.delete(r)}},{key:"keyHasChangedFor",value:function(t){var r=t.id();return this.keyForId.get(r)!==this.getKey(t)}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var r=this.cachesByLvl,n=this.lvls,a=r.get(t);return a||(a=new jt,r.set(t,a),n.push(t)),a}},{key:"getCache",value:function(t,r){return this.getCachesAt(r).get(t)}},{key:"get",value:function(t,r){var n=this.getKey(t),a=this.getCache(n,r);return a!=null&&this.updateKeyMappingFor(t),a}},{key:"getForCachedKey",value:function(t,r){var n=this.keyForId.get(t.id());return this.getCache(n,r)}},{key:"hasCache",value:function(t,r){return this.getCachesAt(r).has(t)}},{key:"has",value:function(t,r){var n=this.getKey(t);return this.hasCache(n,r)}},{key:"setCache",value:function(t,r,n){n.key=t,this.getCachesAt(r).set(t,n)}},{key:"set",value:function(t,r,n){var a=this.getKey(t);this.setCache(a,r,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,r){this.getCachesAt(r).delete(t)}},{key:"delete",value:function(t,r){var n=this.getKey(t);this.deleteCache(n,r)}},{key:"invalidateKey",value:function(t){var r=this;this.lvls.forEach(function(n){return r.deleteCache(t,n)})}},{key:"invalidate",value:function(t){var r=t.id(),n=this.keyForId.get(r);this.deleteKeyMappingFor(t);var a=this.doesEleInvalidateKey(t);return a&&this.invalidateKey(n),a||this.getNumberOfIdsForKey(n)===0}}])})(),rd=25,Oa=50,Va=-4,es=3,nd=7.99,Rv=8,_v=1024,Mv=1024,Iv=1024,Nv=.2,Lv=.8,zv=10,Ov=.15,Vv=.1,Fv=.9,Xv=.9,Yv=100,qv=1,Hr={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},jv=ot({getKey:null,doesEleInvalidateKey:Gn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Zs,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),_n=function(e,t){var r=this;r.renderer=e,r.onDequeues=[];var n=jv(t);he(r,n),r.lookup=new Av(n.getKey,n.doesEleInvalidateKey),r.setupDequeueing()},et=_n.prototype;et.reasons=Hr,et.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},et.getRetiredTextureQueue=function(e){var t=this,r=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return r[e]=r[e]||[]},et.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new fn(function(t,r){return r.reqs-t.reqs})},et.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},et.getElement=function(e,t,r,n,a){var i=this,o=this.renderer,u=o.cy.zoom(),s=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!i.allowEdgeTxrCaching&&e.isEdge()||!i.allowParentTxrCaching&&e.isParent())return null;if(n??(n=Math.ceil(bi(u*r))),n=nd||n>es)return null;var l=2**n,c=t.h*l,d=t.w*l,h=o.eleTextBiggerThanMin(e,l);if(!this.isVisible(e,h))return null;var f=s.get(e,n);if(f&&f.invalidated&&(f.invalidated=!1,f.texture.invalidatedWidth-=f.width),f)return f;var p=c<=rd?rd:c<=Oa?Oa:Math.ceil(c/Oa)*Oa;if(c>Iv||d>Mv)return null;var v=i.getTextureQueue(p),y=v[v.length-2],g=function(){return i.recycleTexture(p,d)||i.addTexture(p,d)};y||(y=v[v.length-1]),y||(y=g()),y.width-y.usedWidthn;C--)E=i.getElement(e,t,r,C,Hr.downscale);P()}else return i.queueElement(e,k.level-1),k;else{var A;if(!b&&!x&&!B)for(var D=n-1;D>=Va;D--){var R=s.get(e,D);if(R){A=R;break}}if(m(A))return i.queueElement(e,n),A;y.context.translate(y.usedWidth,0),y.context.scale(l,l),this.drawElement(y.context,e,t,h,!1),y.context.scale(1/l,1/l),y.context.translate(-y.usedWidth,0)}return f={x:y.usedWidth,texture:y,level:n,scale:l,width:d,height:c,scaledLabelShown:h},y.usedWidth+=Math.ceil(d+Rv),y.eleCaches.push(f),s.set(e,n,f),i.checkTextureFullness(y),f},et.invalidateElements=function(e){for(var t=0;t=Nv*e.width&&this.retireTexture(e)},et.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>Lv&&e.fullnessChecks>=zv?tr(t,e):e.fullnessChecks++},et.retireTexture=function(e){var t=this,r=e.height,n=t.getTextureQueue(r),a=this.lookup;tr(n,e),e.retired=!0;for(var i=e.eleCaches,o=0;o=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,vi(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),tr(a,o),n.push(o),o}},et.queueElement=function(e,t){var r=this,n=r.getElementQueue(),a=r.getElementKeyToQueue(),i=this.getKey(e),o=a[i];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,n.updateItem(o);else{var u={eles:e.spawn().merge(e),level:t,reqs:1,key:i};n.push(u),a[i]=u}},et.dequeue=function(e){for(var t=this,r=t.getElementQueue(),n=t.getElementKeyToQueue(),a=[],i=t.lookup,o=0;o0;o++){var u=r.pop(),s=u.key,l=u.eles[0],c=i.hasCache(l,u.level);if(n[s]=null,!c){a.push(u);var d=t.getBoundingBox(l);t.getElement(l,d,e,u.level,Hr.dequeue)}}return a},et.removeFromQueue=function(e){var t=this,r=t.getElementQueue(),n=t.getElementKeyToQueue(),a=this.getKey(e),i=n[a];i!=null&&(i.eles.length===1?(i.reqs=pi,r.updateItem(i),r.pop(),n[a]=null):i.eles.unmerge(e))},et.onDequeue=function(e){this.onDequeues.push(e)},et.offDequeue=function(e){tr(this.onDequeues,e)},et.setupDequeueing=td.setupDequeueing({deqRedrawThreshold:Yv,deqCost:Ov,deqAvgCost:Vv,deqNoDrawCost:Fv,deqFastCost:Xv,deq:function(e,t,r){return e.dequeue(t,r)},onDeqd:function(e,t){for(var r=0;r=Uv||r>Fa)return null}n.validateLayersElesOrdering(r,e);var o=n.layersByLevel,u=2**r,s=o[r]=o[r]||[],l,c=n.levelIsComplete(r,e),d,h=function(){var w=function(C){if(n.validateLayersElesOrdering(C,e),n.levelIsComplete(C,e))return d=o[C],!0},S=function(C){if(!d)for(var A=r+C;Mn<=A&&A<=Fa&&!w(A);A+=C);};S(1),S(-1);for(var E=s.length-1;E>=0;E--){var P=s[E];P.invalid&&tr(s,P)}};if(!c)h();else return s;var f=function(){if(!l){l=gt();for(var w=0;wid||P>id||E*P>ey)return null;var C=n.makeLayer(l,r);if(S!=null){var A=s.indexOf(S)+1;s.splice(A,0,C)}else(w.insert===void 0||w.insert)&&s.unshift(C);return C};if(n.skipping&&!i)return null;for(var v=null,y=e.length/Wv,g=!i,m=0;m=y||!ul(v.bb,b.boundingBox()))&&(v=p({insert:!0,after:v}),!v))return null;d||g?n.queueLayer(v,b):n.drawEleInLayer(v,b,r,t),v.eles.push(b),B[r]=v}return d||(g?null:s)},ut.getEleLevelForLayerLevel=function(e,t){return e},ut.drawEleInLayer=function(e,t,r,n){var a=this,i=this.renderer,o=e.context,u=t.boundingBox();u.w===0||u.h===0||!t.visible()||(r=a.getEleLevelForLayerLevel(r,n),i.setImgSmoothing(o,!1),i.drawCachedElement(o,t,null,null,r,ty),i.setImgSmoothing(o,!0))},ut.levelIsComplete=function(e,t){var r=this.layersByLevel[e];if(!r||r.length===0)return!1;for(var n=0,a=0;a0||i.invalid)return!1;n+=i.eles.length}return n===t.length},ut.validateLayersElesOrdering=function(e,t){var r=this.layersByLevel[e];if(r)for(var n=0;n0){t=!0;break}}return t},ut.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=Yt(),!(e.length===0||!t.haveLayers())&&t.updateElementsInLayers(e,function(r,n,a){t.invalidateLayer(r)}))},ut.invalidateLayer=function(e){if(this.lastInvalidationTime=Yt(),!e.invalid){var t=e.level,r=e.eles,n=this.layersByLevel[t];tr(n,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var a=0;a3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,u=t._private.rscratch;if(!(i&&!t.visible())&&!(u.badLine||u.allpts==null||isNaN(u.allpts[0]))){var s;r&&(s=r,e.translate(-s.x1,-s.y1));var l=i?t.pstyle("opacity").value:1,c=i?t.pstyle("line-opacity").value:1,d=t.pstyle("curve-style").value,h=t.pstyle("line-style").value,f=t.pstyle("width").pfValue,p=t.pstyle("line-cap").value,v=t.pstyle("line-outline-width").value,y=t.pstyle("line-outline-color").value,g=l*c,m=l*c,b=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;d==="straight-triangle"?(o.eleStrokeStyle(e,t,A),o.drawEdgeTrianglePath(t,e,u.allpts)):(e.lineWidth=f,e.lineCap=p,o.eleStrokeStyle(e,t,A),o.drawEdgePath(t,e,u.allpts,h),e.lineCap="butt")},x=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;if(e.lineWidth=f+v,e.lineCap=p,v>0)o.colorStrokeStyle(e,y[0],y[1],y[2],A);else{e.lineCap="butt";return}d==="straight-triangle"?o.drawEdgeTrianglePath(t,e,u.allpts):(o.drawEdgePath(t,e,u.allpts,h),e.lineCap="butt")},B=function(){a&&o.drawEdgeOverlay(e,t)},k=function(){a&&o.drawEdgeUnderlay(e,t)},w=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;o.drawArrowheads(e,t,A)},S=function(){o.drawElementText(e,t,null,n)};if(e.lineJoin="round",t.pstyle("ghost").value==="yes"){var E=t.pstyle("ghost-offset-x").pfValue,P=t.pstyle("ghost-offset-y").pfValue,C=g*t.pstyle("ghost-opacity").value;e.translate(E,P),b(C),w(C),e.translate(-E,-P)}else x();k(),b(),w(),B(),S(),r&&e.translate(s.x1,s.y1)}};var cd=function(e){if(!["overlay","underlay"].includes(e))throw Error("Invalid state");return function(t,r){if(r.visible()){var n=r.pstyle(`${e}-opacity`).value;if(n!==0){var a=this,i=a.usePaths(),o=r._private.rscratch,u=2*r.pstyle(`${e}-padding`).pfValue,s=r.pstyle(`${e}-color`).value;t.lineWidth=u,o.edgeType==="self"&&!i?t.lineCap="butt":t.lineCap="round",a.colorStrokeStyle(t,s[0],s[1],s[2],n),a.drawEdgePath(r,t,o.allpts,"solid")}}}};Gt.drawEdgeOverlay=cd("overlay"),Gt.drawEdgeUnderlay=cd("underlay"),Gt.drawEdgePath=function(e,t,r,n){var a=e._private.rscratch,i=t,o,u=!1,s=this.usePaths(),l=e.pstyle("line-dash-pattern").pfValue,c=e.pstyle("line-dash-offset").pfValue;if(s){var d=r.join("$");a.pathCacheKey&&a.pathCacheKey===d?(o=t=a.pathCache,u=!0):(o=t=new Path2D,a.pathCacheKey=d,a.pathCache=o)}if(i.setLineDash)switch(n){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(l),i.lineDashOffset=c;break;case"solid":i.setLineDash([]);break}if(!u&&!a.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(r[0],r[1]),a.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(n==null){if(i&&!o.eleTextBiggerThanMin(t))return}else if(n===!1)return;if(t.isNode()){var u=t.pstyle("label");if(!u||!u.value)return;e.textAlign=o.getLabelJustification(t),e.textBaseline="bottom"}else{var s=t.element()._private.rscratch.badLine,l=t.pstyle("label"),c=t.pstyle("source-label"),d=t.pstyle("target-label");if(s||(!l||!l.value)&&(!c||!c.value)&&(!d||!d.value))return;e.textAlign="center",e.textBaseline="bottom"}var h=!r,f;r&&(f=r,e.translate(-f.x1,-f.y1)),a==null?(o.drawText(e,t,null,h,i),t.isEdge()&&(o.drawText(e,t,"source",h,i),o.drawText(e,t,"target",h,i))):o.drawText(e,t,a,h,i),r&&e.translate(f.x1,f.y1)},Pr.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,n=t.pstyle("font-style").strValue,a=t.pstyle("font-size").pfValue+"px",i=t.pstyle("font-family").strValue,o=t.pstyle("font-weight").strValue,u=r?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,s=t.pstyle("text-outline-opacity").value*u,l=t.pstyle("color").value,c=t.pstyle("text-outline-color").value;e.font=n+" "+o+" "+a+" "+i,e.lineJoin="round",this.colorFillStyle(e,l[0],l[1],l[2],u),this.colorStrokeStyle(e,c[0],c[1],c[2],s)};function fy(e,t,r,n,a){var i=Math.min(n,a)/2,o=t+n/2,u=r+a/2;e.beginPath(),e.arc(o,u,i,0,Math.PI*2),e.closePath()}function dd(e,t,r,n,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(i,n/2,a/2);e.beginPath(),e.moveTo(t+o,r),e.lineTo(t+n-o,r),e.quadraticCurveTo(t+n,r,t+n,r+o),e.lineTo(t+n,r+a-o),e.quadraticCurveTo(t+n,r+a,t+n-o,r+a),e.lineTo(t+o,r+a),e.quadraticCurveTo(t,r+a,t,r+a-o),e.lineTo(t,r+o),e.quadraticCurveTo(t,r,t+o,r),e.closePath()}Pr.getTextAngle=function(e,t){var r,n=e._private.rscratch,a=t?t+"-":"",i=e.pstyle(a+"text-rotation");if(i.strValue==="autorotate"){var o=wt(n,"labelAngle",t);r=e.isEdge()?o:0}else r=i.strValue==="none"?0:i.pfValue;return r},Pr.drawText=function(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=t._private.rscratch,o=a?t.effectiveOpacity():1;if(!(a&&(o===0||t.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=wt(i,"labelX",r),s=wt(i,"labelY",r),l,c,d=this.getLabelText(t,r);if(d!=null&&d!==""&&!isNaN(u)&&!isNaN(s)){this.setupTextStyle(e,t,a);var h=r?r+"-":"",f=wt(i,"labelWidth",r),p=wt(i,"labelHeight",r),v=t.pstyle(h+"text-margin-x").pfValue,y=t.pstyle(h+"text-margin-y").pfValue,g=t.isEdge(),m=t.pstyle("text-halign").value,b=t.pstyle("text-valign").value;g&&(m="center",b="center"),u+=v,s+=y;var x=n?this.getTextAngle(t,r):0;switch(x!==0&&(l=u,c=s,e.translate(l,c),e.rotate(x),u=0,s=0),b){case"top":break;case"center":s+=p/2;break;case"bottom":s+=p;break}var B=t.pstyle("text-background-opacity").value,k=t.pstyle("text-border-opacity").value,w=t.pstyle("text-border-width").pfValue,S=t.pstyle("text-background-padding").pfValue,E=t.pstyle("text-background-shape").strValue,P=E==="round-rectangle"||E==="roundrectangle",C=E==="circle",A=2;if(B>0||w>0&&k>0){var D=e.fillStyle,R=e.strokeStyle,_=e.lineWidth,I=t.pstyle("text-background-color").value,M=t.pstyle("text-border-color").value,N=t.pstyle("text-border-style").value,V=B>0,Y=w>0&&k>0,q=u-S;switch(m){case"left":q-=f;break;case"center":q-=f/2;break}var W=s-p-S,H=f+2*S,j=p+2*S;if(V&&(e.fillStyle=`rgba(${I[0]},${I[1]},${I[2]},${B*o})`),Y&&(e.strokeStyle=`rgba(${M[0]},${M[1]},${M[2]},${k*o})`,e.lineWidth=w,e.setLineDash))switch(N){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=w/4,e.setLineDash([]);break;default:e.setLineDash([]);break}if(P?(e.beginPath(),dd(e,q,W,H,j,A)):C?(e.beginPath(),fy(e,q,W,H,j)):(e.beginPath(),e.rect(q,W,H,j)),V&&e.fill(),Y&&e.stroke(),Y&&N==="double"){var $=w/2;e.beginPath(),P?dd(e,q+$,W+$,H-2*$,j-2*$,A):e.rect(q+$,W+$,H-2*$,j-2*$),e.stroke()}e.fillStyle=D,e.strokeStyle=R,e.lineWidth=_,e.setLineDash&&e.setLineDash([])}var J=2*t.pstyle("text-outline-width").pfValue;if(J>0&&(e.lineWidth=J),t.pstyle("text-wrap").value==="wrap"){var Q=wt(i,"labelWrapCachedLines",r),O=wt(i,"labelLineHeight",r),z=f/2,F=this.getLabelJustification(t);switch(F==="auto"||(m==="left"?F==="left"?u+=-f:F==="center"&&(u+=-z):m==="center"?F==="left"?u+=-z:F==="right"&&(u+=z):m==="right"&&(F==="center"?u+=z:F==="right"&&(u+=f))),b){case"top":s-=(Q.length-1)*O;break;case"center":case"bottom":s-=(Q.length-1)*O;break}for(var Z=0;Z0&&e.strokeText(Q[Z],u,s),e.fillText(Q[Z],u,s),s+=O}else J>0&&e.strokeText(d,u,s),e.fillText(d,u,s);x!==0&&(e.rotate(-x),e.translate(-l,-c))}}};var fr={};fr.drawNode=function(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,u,s,l=t._private,c=l.rscratch,d=t.position();if(!(!ee(d.x)||!ee(d.y))&&!(i&&!t.visible())){var h=i?t.effectiveOpacity():1,f=o.usePaths(),p,v=!1,y=t.padding();u=t.width()+2*y,s=t.height()+2*y;var g;r&&(g=r,e.translate(-g.x1,-g.y1));for(var m=t.pstyle("background-image").value,b=Array(m.length),x=Array(m.length),B=0,k=0;k0&&arguments[0]!==void 0?arguments[0]:C;o.eleFillStyle(e,t,ue)},Q=function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V;o.colorStrokeStyle(e,A[0],A[1],A[2],ue)},O=function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H;o.colorStrokeStyle(e,q[0],q[1],q[2],ue)},z=function(ue,me,ge,je){var Ye=o.nodePathCache=o.nodePathCache||[],T=Ks(ge==="polygon"?ge+","+je.join(","):ge,""+me,""+ue,""+$),L=Ye[T],X,U=!1;return L==null?(X=new Path2D,Ye[T]=c.pathCache=X):(X=L,U=!0,c.pathCache=X),{path:X,cacheHit:U}},F=t.pstyle("shape").strValue,Z=t.pstyle("shape-polygon-points").pfValue;if(f){e.translate(d.x,d.y);var oe=z(u,s,F,Z);p=oe.path,v=oe.cacheHit}var fe=function(){if(!v){var ue=d;f&&(ue={x:0,y:0}),o.nodeShapes[o.getNodeShape(t)].draw(p||e,ue.x,ue.y,u,s,$,c)}f?e.fill(p):e.fill()},be=function(){for(var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ge=l.backgrounding,je=0,Ye=0;Ye0&&arguments[0]!==void 0?arguments[0]:!1,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h;o.hasPie(t)&&(o.drawPie(e,t,me),ue&&(f||o.nodeShapes[o.getNodeShape(t)].draw(e,d.x,d.y,u,s,$,c)))},G=function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h;o.hasStripe(t)&&(e.save(),f?e.clip(c.pathCache):(o.nodeShapes[o.getNodeShape(t)].draw(e,d.x,d.y,u,s,$,c),e.clip()),o.drawStripe(e,t,me),e.restore(),ue&&(f||o.nodeShapes[o.getNodeShape(t)].draw(e,d.x,d.y,u,s,$,c)))},le=function(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,me=(E>0?E:-E)*ue,ge=E>0?0:255;E!==0&&(o.colorFillStyle(e,ge,ge,ge,me),f?e.fill(p):e.fill())},se=function(){if(P>0){if(e.lineWidth=P,e.lineCap=_,e.lineJoin=R,e.setLineDash)switch(D){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(M),e.lineDashOffset=N;break;case"solid":case"double":e.setLineDash([]);break}if(I!=="center"){if(e.save(),e.lineWidth*=2,I==="inside")f?e.clip(p):e.clip();else{var ue=new Path2D;ue.rect(-u/2-P,-s/2-P,u+2*P,s+2*P),ue.addPath(p),e.clip(ue,"evenodd")}f?e.stroke(p):e.stroke(),e.restore()}else f?e.stroke(p):e.stroke();if(D==="double"){e.lineWidth=P/3;var me=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",f?e.stroke(p):e.stroke(),e.globalCompositeOperation=me}e.setLineDash&&e.setLineDash([])}},ye=function(){if(Y>0){if(e.lineWidth=Y,e.lineCap="butt",e.setLineDash)switch(W){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var ue=d;f&&(ue={x:0,y:0});var me=o.getNodeShape(t),ge=P;I==="inside"&&(ge=0),I==="outside"&&(ge*=2);var je=(u+ge+(Y+j))/u,Ye=(s+ge+(Y+j))/s,T=u*je,L=s*Ye,X=o.nodeShapes[me].points,U;if(f&&(U=z(T,L,me,X).path),me==="ellipse")o.drawEllipsePath(U||e,ue.x,ue.y,T,L);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(me)){var K=0,te=0,re=0;me==="round-diamond"?K=(ge+j+Y)*1.4:me==="round-heptagon"?(K=(ge+j+Y)*1.075,re=-(ge/2+j+Y)/35):me==="round-hexagon"?K=(ge+j+Y)*1.12:me==="round-pentagon"?(K=(ge+j+Y)*1.13,re=-(ge/2+j+Y)/15):me==="round-tag"?(K=(ge+j+Y)*1.12,te=(ge/2+Y+j)*.07):me==="round-triangle"&&(K=(ge+j+Y)*(Math.PI/2),re=-(ge+j/2+Y)/Math.PI),K!==0&&(je=(u+K)/u,T=u*je,["round-hexagon","round-tag"].includes(me)||(Ye=(s+K)/s,L=s*Ye)),$=$==="auto"?hl(T,L):$;for(var de=T/2,ie=L/2,Ee=$+(ge+Y+j)/2,Re=Array(X.length/2),ae=Array(X.length/2),ve=0;ve0){if(n||(n=r.position()),a==null||i==null){var h=r.padding();a=r.width()+2*h,i=r.height()+2*h}o.colorFillStyle(t,l[0],l[1],l[2],s),o.nodeShapes[c].draw(t,n.x,n.y,a+u*2,i+u*2,d),t.fill()}}}};fr.drawNodeOverlay=hd("overlay"),fr.drawNodeUnderlay=hd("underlay"),fr.hasPie=function(e){return e=e[0],e._private.hasPie},fr.hasStripe=function(e){return e=e[0],e._private.hasStripe},fr.drawPie=function(e,t,r,n){t=t[0],n||(n=t.position());var a=t.cy().style(),i=t.pstyle("pie-size"),o=t.pstyle("pie-hole"),u=t.pstyle("pie-start-angle").pfValue,s=n.x,l=n.y,c=t.width(),d=t.height(),h=Math.min(c,d)/2,f,p=0;if(this.usePaths()&&(s=0,l=0),i.units==="%"?h*=i.pfValue:i.pfValue!==void 0&&(h=i.pfValue/2),o.units==="%"?f=h*o.pfValue:o.pfValue!==void 0&&(f=o.pfValue/2),!(f>=h))for(var v=1;v<=a.pieBackgroundN;v++){var y=t.pstyle("pie-"+v+"-background-size").value,g=t.pstyle("pie-"+v+"-background-color").value,m=t.pstyle("pie-"+v+"-background-opacity").value*r,b=y/100;b+p>1&&(b=1-p);var x=1.5*Math.PI+2*Math.PI*p;x+=u;var B=2*Math.PI*b,k=x+B;y===0||p>=1||p+b>1||(f===0?(e.beginPath(),e.moveTo(s,l),e.arc(s,l,h,x,k),e.closePath()):(e.beginPath(),e.arc(s,l,h,x,k),e.arc(s,l,f,k,x,!0),e.closePath()),this.colorFillStyle(e,g[0],g[1],g[2],m),e.fill(),p+=b)}},fr.drawStripe=function(e,t,r,n){t=t[0],n||(n=t.position());var a=t.cy().style(),i=n.x,o=n.y,u=t.width(),s=t.height(),l=0,c=this.usePaths();e.save();var d=t.pstyle("stripe-direction").value,h=t.pstyle("stripe-size");switch(d){case"vertical":break;case"righward":e.rotate(-Math.PI/2);break}var f=u,p=s;h.units==="%"?(f*=h.pfValue,p*=h.pfValue):h.pfValue!==void 0&&(f=h.pfValue,p=h.pfValue),c&&(i=0,o=0),o-=f/2,i-=p/2;for(var v=1;v<=a.stripeBackgroundN;v++){var y=t.pstyle("stripe-"+v+"-background-size").value,g=t.pstyle("stripe-"+v+"-background-color").value,m=t.pstyle("stripe-"+v+"-background-opacity").value*r,b=y/100;b+l>1&&(b=1-l),!(y===0||l>=1||l+b>1)&&(e.beginPath(),e.rect(i,o+p*l,f,p*b),e.closePath(),this.colorFillStyle(e,g[0],g[1],g[2],m),e.fill(),l+=b)}e.restore()};var yt={},py=100;yt.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/r},yt.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],r=!0,n,a=0;at.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!d&&(c[t.NODE]=!0,c[t.SELECT_BOX]=!0);var m=r.style(),b=r.zoom(),x=o===void 0?b:o,B=r.pan(),k={x:B.x,y:B.y},w={zoom:b,pan:{x:B.x,y:B.y}},S=t.prevViewport;!(S===void 0||w.zoom!==S.zoom||w.pan.x!==S.pan.x||w.pan.y!==S.pan.y)&&!(v&&!p)&&(t.motionBlurPxRatio=1),u&&(k=u),x*=s,k.x*=s,k.y*=s;var E=t.getCachedZSortedEles();function P(Q,O,z,F,Z){var oe=Q.globalCompositeOperation;Q.globalCompositeOperation="destination-out",t.colorFillStyle(Q,255,255,255,t.motionBlurTransparency),Q.fillRect(O,z,F,Z),Q.globalCompositeOperation=oe}function C(Q,O){var z,F,Z,oe;!t.clearingMotionBlur&&(Q===l.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||Q===l.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(z={x:B.x*f,y:B.y*f},F=b*f,Z=t.canvasWidth*f,oe=t.canvasHeight*f):(z=k,F=x,Z=t.canvasWidth,oe=t.canvasHeight),Q.setTransform(1,0,0,1,0,0),O==="motionBlur"?P(Q,0,0,Z,oe):!n&&(O===void 0||O)&&Q.clearRect(0,0,Z,oe),a||(Q.translate(z.x,z.y),Q.scale(F,F)),u&&Q.translate(u.x,u.y),o&&Q.scale(o,o)}if(d||(t.textureDrawLastFrame=!1),d){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=r.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var A=t.data.bufferContexts[t.TEXTURE_BUFFER];A.setTransform(1,0,0,1,0,0),A.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:A,drawOnlyNodeLayer:!0,forcedPxRatio:s*t.textureMult});var w=t.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:t.canvasWidth,height:t.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}c[t.DRAG]=!1,c[t.NODE]=!1;var D=l.contexts[t.NODE],R=t.textureCache.texture,w=t.textureCache.viewport;D.setTransform(1,0,0,1,0,0),h?P(D,0,0,w.width,w.height):D.clearRect(0,0,w.width,w.height);var _=m.core("outside-texture-bg-color").value,I=m.core("outside-texture-bg-opacity").value;t.colorFillStyle(D,_[0],_[1],_[2],I),D.fillRect(0,0,w.width,w.height);var b=r.zoom();C(D,!1),D.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s),D.drawImage(R,w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s)}else t.textureOnViewport&&!n&&(t.textureCache=null);var M=r.extent(),N=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),V=t.hideEdgesOnViewport&&N,Y=[];if(Y[t.NODE]=!c[t.NODE]&&h&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,Y[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),Y[t.DRAG]=!c[t.DRAG]&&h&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,Y[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),c[t.NODE]||a||i||Y[t.NODE]){var q=h&&!Y[t.NODE]&&f!==1,D=n||(q?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:l.contexts[t.NODE]);C(D,h&&!q?"motionBlur":void 0),V?t.drawCachedNodes(D,E.nondrag,s,M):t.drawLayeredElements(D,E.nondrag,s,M),t.debug&&t.drawDebugPoints(D,E.nondrag),!a&&!h&&(c[t.NODE]=!1)}if(!i&&(c[t.DRAG]||a||Y[t.DRAG])){var q=h&&!Y[t.DRAG]&&f!==1,D=n||(q?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:l.contexts[t.DRAG]);C(D,h&&!q?"motionBlur":void 0),V?t.drawCachedNodes(D,E.drag,s,M):t.drawCachedElements(D,E.drag,s,M),t.debug&&t.drawDebugPoints(D,E.drag),!a&&!h&&(c[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,C),h&&f!==1){var W=l.contexts[t.NODE],H=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],j=l.contexts[t.DRAG],$=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],J=function(Q,O,z){Q.setTransform(1,0,0,1,0,0),z||!g?Q.clearRect(0,0,t.canvasWidth,t.canvasHeight):P(Q,0,0,t.canvasWidth,t.canvasHeight);var F=f;Q.drawImage(O,0,0,t.canvasWidth*F,t.canvasHeight*F,0,0,t.canvasWidth,t.canvasHeight)};(c[t.NODE]||Y[t.NODE])&&(J(W,H,Y[t.NODE]),c[t.NODE]=!1),(c[t.DRAG]||Y[t.DRAG])&&(J(j,$,Y[t.DRAG]),c[t.DRAG]=!1)}t.prevViewport=w,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),h&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!d,t.mbFrames=0,c[t.NODE]=!0,c[t.DRAG]=!0,t.redraw()},py)),n||r.emit("render")};var Xa;yt.drawSelectionRectangle=function(e,t){var r=this,n=r.cy,a=r.data,i=n.style(),o=e.drawOnlyNodeLayer,u=e.drawAllLayers,s=a.canvasNeedsRedraw,l=e.forcedContext;if(r.showFps||!o&&s[r.SELECT_BOX]&&!u){var c=l||a.contexts[r.SELECT_BOX];if(t(c),r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var d=r.cy.zoom(),h=i.core("selection-box-border-width").value/d;c.lineWidth=h,c.fillStyle="rgba("+i.core("selection-box-color").value[0]+","+i.core("selection-box-color").value[1]+","+i.core("selection-box-color").value[2]+","+i.core("selection-box-opacity").value+")",c.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]),h>0&&(c.strokeStyle="rgba("+i.core("selection-box-border-color").value[0]+","+i.core("selection-box-border-color").value[1]+","+i.core("selection-box-border-color").value[2]+","+i.core("selection-box-opacity").value+")",c.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]))}if(a.bgActivePosistion&&!r.hoverData.selecting){var d=r.cy.zoom(),f=a.bgActivePosistion;c.fillStyle="rgba("+i.core("active-bg-color").value[0]+","+i.core("active-bg-color").value[1]+","+i.core("active-bg-color").value[2]+","+i.core("active-bg-opacity").value+")",c.beginPath(),c.arc(f.x,f.y,i.core("active-bg-size").pfValue/d,0,2*Math.PI),c.fill()}var p=r.lastRedrawTime;if(r.showFps&&p){p=Math.round(p);var v=Math.round(1e3/p),y="1 frame = "+p+" ms = "+v+" fps";c.setTransform(1,0,0,1,0,0),c.fillStyle="rgba(255, 0, 0, 0.75)",c.strokeStyle="rgba(255, 0, 0, 0.75)",c.font="30px Arial",Xa||(Xa=c.measureText(y).actualBoundingBoxAscent),c.fillText(y,0,Xa),c.strokeRect(0,Xa+10,250,20),c.fillRect(0,Xa+10,250*Math.min(v/60,1),20)}u||(s[r.SELECT_BOX]=!1)}};function fd(e,t,r){var n=e.createShader(t);if(e.shaderSource(n,r),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(n));return n}function gy(e,t,r){var n=fd(e,e.VERTEX_SHADER,t),a=fd(e,e.FRAGMENT_SHADER,r),i=e.createProgram();if(e.attachShader(i,n),e.attachShader(i,a),e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS))throw Error("Could not initialize shaders");return i}function vy(e,t,r){r===void 0&&(r=t);var n=e.makeOffscreenCanvas(t,r),a=n.context=n.getContext("2d");return n.clear=function(){return a.clearRect(0,0,n.width,n.height)},n.clear(),n}function ns(e){var t=e.pixelRatio,r=e.cy.zoom(),n=e.cy.pan();return{zoom:r*t,pan:{x:n.x*t,y:n.y*t}}}function yy(e){var t=e.pixelRatio;return e.cy.zoom()*t}function my(e,t,r,n,a){var i=n*r+t.x,o=a*r+t.y;return o=Math.round(e.canvasHeight-o),[i,o]}function by(e){return e.pstyle("background-fill").value!=="solid"||e.pstyle("background-image").strValue!=="none"?!1:e.pstyle("border-width").value===0||e.pstyle("border-opacity").value===0?!0:e.pstyle("border-style").value==="solid"}function xy(e,t){if(e.length!==t.length)return!1;for(var r=0;r>0&255)/255,r[1]=(e>>8&255)/255,r[2]=(e>>16&255)/255,r[3]=(e>>24&255)/255,r}function wy(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function Ey(e,t){var r=e.createTexture();return r.buffer=function(n){e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},r.deleteTexture=function(){e.deleteTexture(r)},r}function pd(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function gd(e,t,r){switch(t){case e.FLOAT:return new Float32Array(r);case e.INT:return new Int32Array(r)}}function ky(e,t,r,n,a,i){switch(t){case e.FLOAT:return new Float32Array(r.buffer,i*n,a);case e.INT:return new Int32Array(r.buffer,i*n,a)}}function Ty(e,t,r,n){var a=Ge(pd(e,t),2),i=a[0],o=a[1],u=gd(e,o,n),s=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,s),e.bufferData(e.ARRAY_BUFFER,u,e.STATIC_DRAW),o===e.FLOAT?e.vertexAttribPointer(r,i,o,!1,0,0):o===e.INT&&e.vertexAttribIPointer(r,i,o,0,0),e.enableVertexAttribArray(r),e.bindBuffer(e.ARRAY_BUFFER,null),s}function Xt(e,t,r,n){var a=Ge(pd(e,r),3),i=a[0],o=a[1],u=a[2],s=gd(e,o,t*i),l=i*u,c=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,c),e.bufferData(e.ARRAY_BUFFER,t*l,e.DYNAMIC_DRAW),e.enableVertexAttribArray(n),o===e.FLOAT?e.vertexAttribPointer(n,i,o,!1,l,0):o===e.INT&&e.vertexAttribIPointer(n,i,o,l,0),e.vertexAttribDivisor(n,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var d=Array(t),h=0;hi&&(o=i/r,u=r*o,s=n*o),{scale:o,texW:u,texH:s}}},{key:"draw",value:function(t,r,n){var a=this;if(this.locked)throw Error("can't draw, atlas is locked");var i=this.texSize,o=this.texRows,u=this.texHeight,s=this.getScale(r),l=s.scale,c=s.texW,d=s.texH,h=function(g,m){if(n&&m){var b=m.context,x=g.x,B=g.row,k=x,w=u*B;b.save(),b.translate(k,w),b.scale(l,l),n(b,r),b.restore()}},f=[null,null],p=function(){h(a.freePointer,a.canvas),f[0]={x:a.freePointer.x,y:a.freePointer.row*u,w:c,h:d},f[1]={x:a.freePointer.x+c,y:a.freePointer.row*u,w:0,h:d},a.freePointer.x+=c,a.freePointer.x==i&&(a.freePointer.x=0,a.freePointer.row++)},v=function(){var g=a.scratch,m=a.canvas;g.clear(),h({x:0,row:0},g);var b=i-a.freePointer.x,x=c-b,B=u,k=a.freePointer.x,w=a.freePointer.row*u,S=b;m.context.drawImage(g,0,0,S,B,k,w,S,B),f[0]={x:k,y:w,w:S,h:d};var E=b,P=(a.freePointer.row+1)*u,C=x;m&&m.context.drawImage(g,E,0,C,B,0,P,C,B),f[1]={x:0,y:P,w:C,h:d},a.freePointer.x=x,a.freePointer.row++},y=function(){a.freePointer.x=0,a.freePointer.row++};if(this.freePointer.x+c<=i)p();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===i?(y(),p()):this.enableWrapping?v():(y(),p())}return this.keyToLocation.set(t,f),this.needsBuffer=!0,f}},{key:"getOffsets",value:function(t){return this.keyToLocation.get(t)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(t){if(this.locked)return!1;var r=this.texSize,n=this.texRows,a=this.getScale(t).texW;return this.freePointer.x+a>r?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},a=n.forceRedraw,i=a===void 0?!1:a,o=n.filterEle,u=o===void 0?function(){return!0}:o,s=n.filterType,l=s===void 0?function(){return!0}:s,c=!1,d=!1,h=xt(t),f;try{for(h.s();!(f=h.n()).done;){var p=f.value;if(u(p)){var v=xt(this.renderTypes.values()),y;try{var g=function(){var m=y.value,b=m.type;if(l(b)){var x=r.collections.get(m.collection),B=m.getKey(p),k=Array.isArray(B)?B:[B];if(i)k.forEach(function(P){return x.markKeyForGC(P)}),d=!0;else{var w=m.getID?m.getID(p):p.id(),S=r._key(b,w),E=r.typeAndIdToKey.get(S);E!==void 0&&!xy(k,E)&&(c=!0,r.typeAndIdToKey.delete(S),E.forEach(function(P){return x.markKeyForGC(P)}))}}};for(v.s();!(y=v.n()).done;)g()}catch(m){v.e(m)}finally{v.f()}}}}catch(m){h.e(m)}finally{h.f()}return d&&(this.gc(),c=!1),c}},{key:"gc",value:function(){var t=xt(this.collections.values()),r;try{for(t.s();!(r=t.n()).done;)r.value.gc()}catch(n){t.e(n)}finally{t.f()}}},{key:"getOrCreateAtlas",value:function(t,r,n,a){var i=this.renderTypes.get(r),o=this.collections.get(i.collection),u=!1,s=o.draw(a,n,function(d){i.drawClipped?(d.save(),d.beginPath(),d.rect(0,0,n.w,n.h),d.clip(),i.drawElement(d,t,n,!0,!0),d.restore()):i.drawElement(d,t,n,!0,!0),u=!0});if(u){var l=i.getID?i.getID(t):t.id(),c=this._key(r,l);this.typeAndIdToKey.has(c)?this.typeAndIdToKey.get(c).push(a):this.typeAndIdToKey.set(c,[a])}return s}},{key:"getAtlasInfo",value:function(t,r){var n=this,a=this.renderTypes.get(r),i=a.getKey(t);return(Array.isArray(i)?i:[i]).map(function(o){var u=a.getBoundingBox(t,o),s=n.getOrCreateAtlas(t,r,u,o),l=Ge(s.getOffsets(o),2),c=l[0];return{atlas:s,tex:c,tex1:c,tex2:l[1],bb:u}})}},{key:"getDebugInfo",value:function(){var t=[],r=xt(this.collections),n;try{for(r.s();!(n=r.n()).done;){var a=Ge(n.value,2),i=a[0],o=a[1].getCounts(),u=o.keyCount,s=o.atlasCount;t.push({type:i,keyCount:u,atlasCount:s})}}catch(l){r.e(l)}finally{r.f()}return t}}])})(),My=(function(){function e(t){Ht(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return Zt(e,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(t,r){return r})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(t){return this.batchAtlases.length===this.maxAtlasesPerBatch?this.batchAtlases.includes(t):!0}},{key:"getAtlasIndexForBatch",value:function(t){var r=this.batchAtlases.indexOf(t);if(r<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error("cannot add more atlases to batch");this.batchAtlases.push(t),r=this.batchAtlases.length-1}return r}}])})(),Iy=` + float circleSD(vec2 p, float r) { + return distance(vec2(0), p) - r; // signed distance + } +`,Ny=` + float rectangleSD(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); + } +`,Ly=` + float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { + cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; + cr.x = (p.y > 0.0) ? cr.x : cr.y; + vec2 q = abs(p) - b + cr.x; + return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; + } +`,zy=` + float ellipseSD(vec2 p, vec2 ab) { + p = abs( p ); // symmetry + + // find root with Newton solver + vec2 q = ab*(p-ab); + float w = (q.x1.0) ? d : -d; + } +`,In={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},qa={IGNORE:1,USE_BB:2},os=0,bd=1,xd=2,ss=3,Qr=4,ja=5,Nn=6,Ln=7,Oy=(function(){function e(t,r,n){Ht(this,e),this.r=t,this.gl=r,this.maxInstances=n.webglBatchSize,this.atlasSize=n.webglTexSize,this.bgColor=n.bgColor,this.debug=n.webglDebug,this.batchDebugInfo=[],n.enableWrapping=!0,n.createTextureCanvas=vy,this.atlasManager=new _y(t,n),this.batchManager=new My(n),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(In.SCREEN),this.pickingProgram=this._createShaderProgram(In.PICKING),this.vao=this._createVAO()}return Zt(e,[{key:"addAtlasCollection",value:function(t,r){this.atlasManager.addAtlasCollection(t,r)}},{key:"addTextureAtlasRenderType",value:function(t,r){this.atlasManager.addRenderType(t,r)}},{key:"addSimpleShapeRenderType",value:function(t,r){this.simpleShapeOptions.set(t,r)}},{key:"invalidate",value:function(t){var r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).type,n=this.atlasManager;return r?n.invalidate(t,{filterType:function(a){return a===r},forceRedraw:!0}):n.invalidate(t)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(t){var r=this.gl,n=`#version 300 es + precision highp float; + + uniform mat3 uPanZoomMatrix; + uniform int uAtlasSize; + + // instanced + in vec2 aPosition; // a vertex from the unit square + + in mat3 aTransform; // used to transform verticies, eg into a bounding box + in int aVertType; // the type of thing we are rendering + + // the z-index that is output when using picking mode + in vec4 aIndex; + + // For textures + in int aAtlasId; // which shader unit/atlas to use + in vec4 aTex; // x/y/w/h of texture in atlas + + // for edges + in vec4 aPointAPointB; + in vec4 aPointCPointD; + in vec2 aLineWidth; // also used for node border width + + // simple shapes + in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left] + in vec4 aColor; // also used for edges + in vec4 aBorderColor; // aLineWidth is used for border width + + // output values passed to the fragment shader + out vec2 vTexCoord; + out vec4 vColor; + out vec2 vPosition; + // flat values are not interpolated + flat out int vAtlasId; + flat out int vVertType; + flat out vec2 vTopRight; + flat out vec2 vBotLeft; + flat out vec4 vCornerRadius; + flat out vec4 vBorderColor; + flat out vec2 vBorderWidth; + flat out vec4 vIndex; + + void main(void) { + int vid = gl_VertexID; + vec2 position = aPosition; // TODO make this a vec3, simplifies some code below + + if(aVertType == ${os}) { + float texX = aTex.x; // texture coordinates + float texY = aTex.y; + float texW = aTex.z; + float texH = aTex.w; + + if(vid == 1 || vid == 2 || vid == 4) { + texX += texW; + } + if(vid == 2 || vid == 4 || vid == 5) { + texY += texH; + } + + float d = float(uAtlasSize); + vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${Qr} || aVertType == ${Ln} + || aVertType == ${ja} || aVertType == ${Nn}) { // simple shapes + + // the bounding box is needed by the fragment shader + vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat + vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat + vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated + + // calculations are done in the fragment shader, just pass these along + vColor = aColor; + vCornerRadius = aCornerRadius; + vBorderColor = aBorderColor; + vBorderWidth = aLineWidth; + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${bd}) { + vec2 source = aPointAPointB.xy; + vec2 target = aPointAPointB.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + // stretch the unit square into a long skinny rectangle + vec2 xBasis = target - source; + vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); + vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; + + gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); + vColor = aColor; + } + else if(aVertType == ${xd}) { + vec2 pointA = aPointAPointB.xy; + vec2 pointB = aPointAPointB.zw; + vec2 pointC = aPointCPointD.xy; + vec2 pointD = aPointCPointD.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + vec2 p0, p1, p2, pos; + if(position.x == 0.0) { // The left side of the unit square + p0 = pointA; + p1 = pointB; + p2 = pointC; + pos = position; + } else { // The right side of the unit square, use same approach but flip the geometry upside down + p0 = pointD; + p1 = pointC; + p2 = pointB; + pos = vec2(0.0, -position.y); + } + + vec2 p01 = p1 - p0; + vec2 p12 = p2 - p1; + vec2 p21 = p1 - p2; + + // Find the normal vector. + vec2 tangent = normalize(normalize(p12) + normalize(p01)); + vec2 normal = vec2(-tangent.y, tangent.x); + + // Find the vector perpendicular to p0 -> p1. + vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); + + // Determine the bend direction. + float sigma = sign(dot(p01 + p21, normal)); + float width = aLineWidth[0]; + + if(sign(pos.y) == -sigma) { + // This is an intersecting vertex. Adjust the position so that there's no overlap. + vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } else { + // This is a non-intersecting vertex. Treat it like a mitre join. + vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } + + vColor = aColor; + } + else if(aVertType == ${ss} && vid < 3) { + // massage the first triangle into an edge arrow + if(vid == 0) + position = vec2(-0.15, -0.3); + if(vid == 1) + position = vec2( 0.0, 0.0); + if(vid == 2) + position = vec2( 0.15, -0.3); + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + vColor = aColor; + } + else { + gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space + } + + vAtlasId = aAtlasId; + vVertType = aVertType; + vIndex = aIndex; + } + `,a=this.batchManager.getIndexArray(),i=gy(r,n,`#version 300 es + precision highp float; + + // declare texture unit for each texture atlas in the batch + ${a.map(function(u){return`uniform sampler2D uTexture${u};`}).join(` + `)} + + uniform vec4 uBGColor; + uniform float uZoom; + + in vec2 vTexCoord; + in vec4 vColor; + in vec2 vPosition; // model coordinates + + flat in int vAtlasId; + flat in vec4 vIndex; + flat in int vVertType; + flat in vec2 vTopRight; + flat in vec2 vBotLeft; + flat in vec4 vCornerRadius; + flat in vec4 vBorderColor; + flat in vec2 vBorderWidth; + + out vec4 outColor; + + ${Iy} + ${Ny} + ${Ly} + ${zy} + + vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha + return vec4( + top.rgb + (bot.rgb * (1.0 - top.a)), + top.a + (bot.a * (1.0 - top.a)) + ); + } + + vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance + // scale to the zoom level so that borders don't look blurry when zoomed in + // note 1.5 is an aribitrary value chosen because it looks good + return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); + } + + void main(void) { + if(vVertType == ${os}) { + // look up the texel from the texture unit + ${a.map(function(u){return`if(vAtlasId == ${u}) outColor = texture(uTexture${u}, vTexCoord);`}).join(` + else `)} + } + else if(vVertType == ${ss}) { + // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; + outColor = blend(vColor, uBGColor); + outColor.a = 1.0; // make opaque, masks out line under arrow + } + else if(vVertType == ${Qr} && vBorderWidth == vec2(0.0)) { // simple rectangle with no border + outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done + } + else if(vVertType == ${Qr} || vVertType == ${Ln} + || vVertType == ${ja} || vVertType == ${Nn}) { // use SDF + + float outerBorder = vBorderWidth[0]; + float innerBorder = vBorderWidth[1]; + float borderPadding = outerBorder * 2.0; + float w = vTopRight.x - vBotLeft.x - borderPadding; + float h = vTopRight.y - vBotLeft.y - borderPadding; + vec2 b = vec2(w/2.0, h/2.0); // half width, half height + vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center + + float d; // signed distance + if(vVertType == ${Qr}) { + d = rectangleSD(p, b); + } else if(vVertType == ${Ln} && w == h) { + d = circleSD(p, b.x); // faster than ellipse + } else if(vVertType == ${Ln}) { + d = ellipseSD(p, b); + } else { + d = roundRectangleSD(p, b, vCornerRadius.wzyx); + } + + // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling + // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box + if(d > 0.0) { + if(d > outerBorder) { + discard; + } else { + outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); + } + } else { + if(d > innerBorder) { + vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; + vec4 innerBorderColor = blend(vBorderColor, vColor); + outColor = distInterp(innerBorderColor, outerColor, d); + } + else { + vec4 outerColor; + if(innerBorder == 0.0 && outerBorder == 0.0) { + outerColor = vec4(0); + } else if(innerBorder == 0.0) { + outerColor = vBorderColor; + } else { + outerColor = blend(vBorderColor, vColor); + } + outColor = distInterp(vColor, outerColor, d - innerBorder); + } + } + } + else { + outColor = vColor; + } + + ${t.picking?`if(outColor.a == 0.0) discard; + else outColor = vIndex;`:""} + } + `);i.aPosition=r.getAttribLocation(i,"aPosition"),i.aIndex=r.getAttribLocation(i,"aIndex"),i.aVertType=r.getAttribLocation(i,"aVertType"),i.aTransform=r.getAttribLocation(i,"aTransform"),i.aAtlasId=r.getAttribLocation(i,"aAtlasId"),i.aTex=r.getAttribLocation(i,"aTex"),i.aPointAPointB=r.getAttribLocation(i,"aPointAPointB"),i.aPointCPointD=r.getAttribLocation(i,"aPointCPointD"),i.aLineWidth=r.getAttribLocation(i,"aLineWidth"),i.aColor=r.getAttribLocation(i,"aColor"),i.aCornerRadius=r.getAttribLocation(i,"aCornerRadius"),i.aBorderColor=r.getAttribLocation(i,"aBorderColor"),i.uPanZoomMatrix=r.getUniformLocation(i,"uPanZoomMatrix"),i.uAtlasSize=r.getUniformLocation(i,"uAtlasSize"),i.uBGColor=r.getUniformLocation(i,"uBGColor"),i.uZoom=r.getUniformLocation(i,"uZoom"),i.uTextures=[];for(var o=0;o1&&arguments[1]!==void 0?arguments[1]:In.SCREEN;this.panZoomMatrix=t,this.renderTarget=r,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(t,r){return t.visible()?r&&r.isVisible?r.isVisible(t):!0:!1}},{key:"drawTexture",value:function(t,r,n){var a=this.atlasManager,i=this.batchManager,o=a.getRenderTypeOpts(n);if(this._isVisible(t,o)&&!(t.isEdge()&&!this._isValidEdge(t))){if(this.renderTarget.picking&&o.getTexPickingMode){var u=o.getTexPickingMode(t);if(u===qa.IGNORE)return;if(u==qa.USE_BB){this.drawPickingRectangle(t,r,n);return}}var s=xt(a.getAtlasInfo(t,n)),l;try{for(s.s();!(l=s.n()).done;){var c=l.value,d=c.atlas,h=c.tex1,f=c.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var p=i.getAtlasIndexForBatch(d),v=0,y=[[h,!0],[f,!1]];v=this.maxInstances&&this.endBatch()}}}}catch(S){s.e(S)}finally{s.f()}}}},{key:"setTransformMatrix",value:function(t,r,n,a){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=0;if(n.shapeProps&&n.shapeProps.padding&&(o=t.pstyle(n.shapeProps.padding).pfValue),a){var u=a.bb,s=a.tex1,l=a.tex2,c=s.w/(s.w+l.w);i||(c=1-c);var d=this._getAdjustedBB(u,o,i,c);this._applyTransformMatrix(r,d,n,t)}else{var h=n.getBoundingBox(t),f=this._getAdjustedBB(h,o,!0,1);this._applyTransformMatrix(r,f,n,t)}}},{key:"_applyTransformMatrix",value:function(t,r,n,a){var i,o;yd(t);var u=n.getRotation?n.getRotation(a):0;if(u!==0){var s=n.getRotationPoint(a),l=s.x,c=s.y;Ya(t,t,[l,c]),md(t,t,u);var d=n.getRotationOffset(a);i=d.x+(r.xOffset||0),o=d.y+(r.yOffset||0)}else i=r.x1,o=r.y1;Ya(t,t,[i,o]),is(t,t,[r.w,r.h])}},{key:"_getAdjustedBB",value:function(t,r,n,a){var i=t.x1,o=t.y1,u=t.w,s=t.h,l=t.yOffset;r&&(i-=r,o-=r,u+=2*r,s+=2*r);var c=0,d=u*a;return n&&a<1?u=d:!n&&a<1&&(c=u-d,i+=c,u=d),{x1:i,y1:o,w:u,h:s,xOffset:c,yOffset:l}}},{key:"drawPickingRectangle",value:function(t,r,n){var a=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=Qr,Zr(r,this.indexBuffer.getView(i)),Br([0,0,0],1,this.colorBuffer.getView(i));var o=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(t,o,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(t,r,n){var a=this.simpleShapeOptions.get(n);if(this._isVisible(t,a)){var i=a.shapeProps,o=this._getVertTypeForShape(t,i.shape);if(o===void 0||a.isSimple&&!a.isSimple(t)){this.drawTexture(t,r,n);return}var u=this.instanceCount;if(this.vertTypeBuffer.getView(u)[0]=o,o===ja||o===Nn){var s=a.getBoundingBox(t),l=this._getCornerRadius(t,i.radius,s),c=this.cornerRadiusBuffer.getView(u);c[0]=l,c[1]=l,c[2]=l,c[3]=l,o===Nn&&(c[0]=0,c[2]=0)}Zr(r,this.indexBuffer.getView(u));var d=t.pstyle(i.color).value,h=t.pstyle(i.opacity).value;Br(d,h,this.colorBuffer.getView(u));var f=this.lineWidthBuffer.getView(u);if(f[0]=0,f[1]=0,i.border){var p=t.pstyle("border-width").value;if(p>0){var v=t.pstyle("border-color").value,y=t.pstyle("border-opacity").value;Br(v,y,this.borderColorBuffer.getView(u));var g=t.pstyle("border-position").value;if(g==="inside")f[0]=0,f[1]=-p;else if(g==="outside")f[0]=p,f[1]=0;else{var m=p/2;f[0]=m,f[1]=-m}}}var b=this.transformBuffer.getMatrixView(u);this.setTransformMatrix(t,b,a),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(t,r){switch(t.pstyle(r).value){case"rectangle":return Qr;case"ellipse":return Ln;case"roundrectangle":case"round-rectangle":return ja;case"bottom-round-rectangle":return Nn;default:return}}},{key:"_getCornerRadius",value:function(t,r,n){var a=n.w,i=n.h;if(t.pstyle(r).value==="auto")return ar(a,i);var o=t.pstyle(r).pfValue,u=a/2,s=i/2;return Math.min(o,s,u)}},{key:"drawEdgeArrow",value:function(t,r,n){if(t.visible()){var a=t._private.rscratch,i,o,u;if(n==="source"?(i=a.arrowStartX,o=a.arrowStartY,u=a.srcArrowAngle):(i=a.arrowEndX,o=a.arrowEndY,u=a.tgtArrowAngle),!(isNaN(i)||i==null||isNaN(o)||o==null||isNaN(u)||u==null)&&t.pstyle(n+"-arrow-shape").value!=="none"){var s=t.pstyle(n+"-arrow-color").value,l=t.pstyle("opacity").value*t.pstyle("line-opacity").value,c=t.pstyle("width").pfValue,d=t.pstyle("arrow-scale").value,h=this.r.getArrowWidth(c,d),f=this.instanceCount,p=this.transformBuffer.getMatrixView(f);yd(p),Ya(p,p,[i,o]),is(p,p,[h,h]),md(p,p,u),this.vertTypeBuffer.getView(f)[0]=ss,Zr(r,this.indexBuffer.getView(f)),Br(s,l,this.colorBuffer.getView(f)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:"drawEdgeLine",value:function(t,r){if(t.visible()){var n=this._getEdgePoints(t);if(n){var a=t.pstyle("opacity").value,i=t.pstyle("line-opacity").value,o=t.pstyle("width").pfValue,u=t.pstyle("line-color").value,s=a*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=bd,Zr(r,this.indexBuffer.getView(l)),Br(u,s,this.colorBuffer.getView(l));var c=this.lineWidthBuffer.getView(l);c[0]=o;var d=this.pointAPointBBuffer.getView(l);d[0]=n[0],d[1]=n[1],d[2]=n[2],d[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var h=0;h=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(t){var r=t._private.rscratch;return!(r.badLine||r.allpts==null||isNaN(r.allpts[0]))}},{key:"_getEdgePoints",value:function(t){var r=t._private.rscratch;if(this._isValidEdge(t)){var n=r.allpts;if(n.length==4)return n;var a=this._getNumSegments(t);return this._getCurveSegmentPoints(n,a)}}},{key:"_getNumSegments",value:function(t){return Math.min(15,this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(t,r){if(t.length==4)return t;for(var n=Array((r+1)*2),a=0;a<=r;a++)if(a==0)n[0]=t[0],n[1]=t[1];else if(a==r)n[a*2]=t[t.length-2],n[a*2+1]=t[t.length-1];else{var i=a/r;this._setCurvePoint(t,i,n,a*2)}return n}},{key:"_setCurvePoint",value:function(t,r,n,a){if(t.length<=2)n[a]=t[0],n[a+1]=t[1];else{for(var i=Array(t.length-2),o=0;o0}},u=function(c){return c.pstyle("text-events").strValue==="yes"?qa.USE_BB:qa.IGNORE},s=function(c){var d=c.position(),h=d.x,f=d.y,p=c.outerWidth(),v=c.outerHeight();return{w:p,h:v,x1:h-p/2,y1:f-v/2}};r.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),r.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),r.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),r.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:s,isSimple:by,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),r.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:s,isVisible:o("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),r.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:s,isVisible:o("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),r.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:u,getKey:ls(t.getLabelKey,null),getBoundingBox:us(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:a(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:i("label")}),r.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:u,getKey:ls(t.getSourceLabelKey,"source"),getBoundingBox:us(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:a("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:i("source-label")}),r.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:u,getKey:ls(t.getTargetLabelKey,"target"),getBoundingBox:us(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:a("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:i("target-label")});var l=un(function(){console.log("garbage collect flag set"),r.data.gc=!0},1e4);r.onUpdateEleCalcs(function(c,d){var h=!1;d&&d.length>0&&(h|=r.drawing.invalidate(d)),h&&l()}),Fy(r)};function Vy(e){var t=e.cy.container();return Bs(t&&t.style&&t.style.backgroundColor||"white")}function Ed(e,t){var r=e._private.rscratch;return wt(r,"labelWrapCachedLines",t)||[]}var ls=function(e,t){return function(r){var n=e(r),a=Ed(r,t);return a.length>1?a.map(function(i,o){return`${n}_${o}`}):n}},us=function(e,t){return function(r,n){var a=e(r);if(typeof n=="string"){var i=n.indexOf("_");if(i>0){var o=Number(n.substring(i+1)),u=Ed(r,t),s=a.h/u.length,l=s*o,c=a.y1+l;return{x1:a.x1,w:a.w,y1:c,h:s,yOffset:l}}}return a}};function Fy(e){var t=e.render;e.render=function(i){i||(i={});var o=e.cy;e.webgl&&(o.zoom()>nd?(Xy(e),t.call(e,i)):(Yy(e),Td(e,i,In.SCREEN)))};var r=e.matchCanvasSize;e.matchCanvasSize=function(i){r.call(e,i),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(i,o,u,s){return Gy(e,i,o)};var n=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){n.call(e),e.pickingFrameBuffer.needsDraw=!0};var a=e.notify;e.notify=function(i,o){a.call(e,i,o),i==="viewport"||i==="bounds"?e.pickingFrameBuffer.needsDraw=!0:i==="background"&&e.drawing.invalidate(o,{type:"node-body"})}}function Xy(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function Yy(e){var t=function(r){r.save(),r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,e.canvasWidth,e.canvasHeight),r.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function qy(e){var t=e.canvasWidth,r=e.canvasHeight,n=ns(e),a=n.pan,i=n.zoom,o=as();Ya(o,o,[a.x,a.y]),is(o,o,[i,i]);var u=as();Sy(u,t,r);var s=as();return By(s,u,o),s}function kd(e,t){var r=e.canvasWidth,n=e.canvasHeight,a=ns(e),i=a.pan,o=a.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,r,n),t.translate(i.x,i.y),t.scale(o,o)}function jy(e,t){e.drawSelectionRectangle(t,function(r){return kd(e,r)})}function Wy(e){var t=e.data.contexts[e.NODE];t.save(),kd(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function Uy(e){var t=function(n,a,i){for(var o=n.atlasManager.getAtlasCollection(a),u=e.data.contexts[e.NODE],s=o.atlases,l=0;l=0&&b.add(B)}return b}function Gy(e,t,r){var n=$y(e,t,r),a=e.getCachedZSortedEles(),i,o,u=xt(n),s;try{for(u.s();!(s=u.n()).done;){var l=a[s.value];if(!i&&l.isNode()&&(i=l),!o&&l.isEdge()&&(o=l),i&&o)break}}catch(c){u.e(c)}finally{u.f()}return[i,o].filter(Boolean)}function cs(e,t,r){var n=e.drawing;t+=1,r.isNode()?(n.drawNode(r,t,"node-underlay"),n.drawNode(r,t,"node-body"),n.drawTexture(r,t,"label"),n.drawNode(r,t,"node-overlay")):(n.drawEdgeLine(r,t),n.drawEdgeArrow(r,t,"source"),n.drawEdgeArrow(r,t,"target"),n.drawTexture(r,t,"label"),n.drawTexture(r,t,"edge-source-label"),n.drawTexture(r,t,"edge-target-label"))}function Td(e,t,r){var n;e.webglDebug&&(n=performance.now());var a=e.drawing,i=0;if(r.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&jy(e,t),e.data.canvasNeedsRedraw[e.NODE]||r.picking){var o=e.data.contexts[e.WEBGL];r.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var u=qy(e),s=e.getCachedZSortedEles();if(i=s.length,a.startFrame(u,r),r.screen){for(var l=0;l0&&i>0){h.clearRect(0,0,a,i),h.globalCompositeOperation="source-over";var f=this.getCachedZSortedEles();if(e.full)h.translate(-r.x1*s,-r.y1*s),h.scale(s,s),this.drawElements(h,f),h.scale(1/s,1/s),h.translate(r.x1*s,r.y1*s);else{var p=t.pan(),v={x:p.x*s,y:p.y*s};s*=t.zoom(),h.translate(v.x,v.y),h.scale(s,s),this.drawElements(h,f),h.scale(1/s,1/s),h.translate(-v.x,-v.y)}e.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=e.bg,h.rect(0,0,a,i),h.fill())}return d};function Ky(e,t){for(var r=atob(e),n=new ArrayBuffer(r.length),a=new Uint8Array(n),i=0;i"u"?"undefined":Ze(OffscreenCanvas))==="undefined"?(r=this.cy.window().document.createElement("canvas"),r.width=e,r.height=t):r=new OffscreenCanvas(e,t),r},[ld,Ft,Gt,rs,Pr,fr,yt,wd,pr,zn,Ad].forEach(function(e){he(we,e)});var Qy=[{type:"layout",extensions:kv},{type:"renderer",extensions:[{name:"null",impl:Lc},{name:"base",impl:ed},{name:"canvas",impl:Hy}]}],_d={},Md={};function Id(e,t,r){var n=r,a=function(k){_e("Can not register `"+t+"` for `"+e+"` since `"+k+"` already exists in the prototype and can not be overridden")};if(e==="core"){if(Bn.prototype[t])return a(t);Bn.prototype[t]=r}else if(e==="collection"){if(lt.prototype[t])return a(t);lt.prototype[t]=r}else if(e==="layout"){for(var i=function(k){this.options=k,r.call(this,k),Be(this._private)||(this._private={}),this._private.cy=k.cy,this._private.listeners=[],this.createEmitter()},o=i.prototype=Object.create(r.prototype),u=[],s=0;s!?|\/]/,o;function y(t,n){var e=t.next();if(m[e]){var r=m[e](t,n);if(r!==!1)return r}if(e=='"'||e=="'"||e=="`")return n.tokenize=z(e),n.tokenize(t,n);if(/[\[\]{}\(\),;\:\.]/.test(e))return o=e,null;if(/\d/.test(e))return t.eatWhile(/[\w\.]/),"number";if(e=="/"){if(t.eat("+"))return n.tokenize=b,b(t,n);if(t.eat("*"))return n.tokenize=h,h(t,n);if(t.eat("/"))return t.skipToEnd(),"comment"}if(p.test(e))return t.eatWhile(p),"operator";t.eatWhile(/[\w\$_\xa1-\uffff]/);var i=t.current();return x.propertyIsEnumerable(i)?(d.propertyIsEnumerable(i)&&(o="newstatement"),"keyword"):_.propertyIsEnumerable(i)?(d.propertyIsEnumerable(i)&&(o="newstatement"),"builtin"):w.propertyIsEnumerable(i)?"atom":"variable"}function z(t){return function(n,e){for(var r=!1,i,u=!1;(i=n.next())!=null;){if(i==t&&!r){u=!0;break}r=!r&&i=="\\"}return(u||!(r||g))&&(e.tokenize=null),"string"}}function h(t,n){for(var e=!1,r;r=t.next();){if(r=="/"&&e){n.tokenize=null;break}e=r=="*"}return"comment"}function b(t,n){for(var e=!1,r;r=t.next();){if(r=="/"&&e){n.tokenize=null;break}e=r=="+"}return"comment"}function k(t,n,e,r,i){this.indented=t,this.column=n,this.type=e,this.align=r,this.prev=i}function c(t,n,e){var r=t.indented;return t.context&&t.context.type=="statement"&&(r=t.context.indented),t.context=new k(r,n,e,null,t.context)}function l(t){var n=t.context.type;return(n==")"||n=="]"||n=="}")&&(t.indented=t.context.indented),t.context=t.context.prev}const I={name:"d",startState:function(t){return{tokenize:null,context:new k(-t,0,"top",!1),indented:0,startOfLine:!0}},token:function(t,n){var e=n.context;if(t.sol()&&(e.align??(e.align=!1),n.indented=t.indentation(),n.startOfLine=!0),t.eatSpace())return null;o=null;var r=(n.tokenize||y)(t,n);if(r=="comment"||r=="meta")return r;if(e.align??(e.align=!0),(o==";"||o==":"||o==",")&&e.type=="statement")l(n);else if(o=="{")c(n,t.column(),"}");else if(o=="[")c(n,t.column(),"]");else if(o=="(")c(n,t.column(),")");else if(o=="}"){for(;e.type=="statement";)e=l(n);for(e.type=="}"&&(e=l(n));e.type=="statement";)e=l(n)}else o==e.type?l(n):((e.type=="}"||e.type=="top")&&o!=";"||e.type=="statement"&&o=="newstatement")&&c(n,t.column(),"statement");return n.startOfLine=!1,r},indent:function(t,n,e){if(t.tokenize!=y&&t.tokenize!=null)return null;var r=t.context,i=n&&n.charAt(0);r.type=="statement"&&i=="}"&&(r=r.prev);var u=i==r.type;return r.type=="statement"?r.indented+(i=="{"?0:v||e.unit):r.align?r.column+(u?0:1):r.indented+(u?0:e.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{I as t}; diff --git a/docs/assets/d-Bi6mpdWD.js b/docs/assets/d-Bi6mpdWD.js new file mode 100644 index 0000000..1bf438f --- /dev/null +++ b/docs/assets/d-Bi6mpdWD.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"D","fileTypes":["d","di","dpp"],"name":"d","patterns":[{"include":"#comment"},{"include":"#type"},{"include":"#statement"},{"include":"#expression"}],"repository":{"aggregate-declaration":{"patterns":[{"include":"#class-declaration"},{"include":"#interface-declaration"},{"include":"#struct-declaration"},{"include":"#union-declaration"},{"include":"#mixin-template-declaration"},{"include":"#template-declaration"}]},"alias-declaration":{"patterns":[{"begin":"\\\\b(alias)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.alias.d"}},"end":";","endCaptures":{"0":{"name":"meta.alias.end.d"}},"patterns":[{"include":"#type"},{"match":"=(?![=>])","name":"keyword.operator.equal.alias.d"},{"include":"#expression"}]}]},"align-attribute":{"patterns":[{"begin":"\\\\balign\\\\s*\\\\(","end":"\\\\)","name":"storage.modifier.align-attribute.d","patterns":[{"include":"#integer-literal"}]},{"match":"\\\\balign\\\\b\\\\s*(?!\\\\()","name":"storage.modifier.align-attribute.d"}]},"alternate-wysiwyg-string":{"patterns":[{"begin":"`","end":"`[cdw]?","name":"string.alternate-wysiwyg-string.d","patterns":[{"include":"#wysiwyg-characters"}]}]},"arbitrary-delimited-string":{"begin":"q\\"(\\\\w+)","end":"\\\\1\\"","name":"string.delimited.d","patterns":[{"match":".","name":"string.delimited.d"}]},"arithmetic-expression":{"patterns":[{"match":"\\\\^\\\\^|\\\\+\\\\+|--|(?>>=|\\\\^\\\\^=|>>=|<<=|~=|\\\\^=|\\\\|=|&=|%=|/=|\\\\*=|-=|\\\\+=|=(?!>)","name":"keyword.operator.assign.d"}]},"attribute":{"patterns":[{"include":"#linkage-attribute"},{"include":"#align-attribute"},{"include":"#deprecated-attribute"},{"include":"#protection-attribute"},{"include":"#pragma"},{"match":"\\\\b(static|extern|abstract|final|override|synchronized|auto|scope|const|immutable|inout|shared|__gshared|nothrow|pure|ref)\\\\b","name":"entity.other.attribute-name.d"},{"include":"#property"}]},"base-type":{"patterns":[{"match":"\\\\b(auto|bool|byte|ubyte|short|ushort|int|uint|long|ulong|char|wchar|dchar|float|double|real|ifloat|idouble|ireal|cfloat|cdouble|creal|void|noreturn)\\\\b","name":"storage.type.basic-type.d"},{"match":"\\\\b(string|wstring|dstring|size_t|ptrdiff_t)\\\\b(?!\\\\s*=)","name":"storage.type.basic-type.d"}]},"binary-integer":{"patterns":[{"match":"\\\\b(0[Bb])[01_]+(Lu|LU|uL|UL|[LUu])?\\\\b","name":"constant.numeric.integer.binary.d"}]},"bitwise-expression":{"patterns":[{"match":"[\\\\&^|]","name":"keyword.operator.bitwise.d"}]},"block-comment":{"patterns":[{"begin":"/((?!\\\\*/)\\\\*)+","beginCaptures":{"0":{"name":"comment.block.begin.d"}},"end":"\\\\*+/","endCaptures":{"0":{"name":"comment.block.end.d"}},"name":"comment.block.content.d"}]},"break-statement":{"patterns":[{"match":"\\\\bbreak\\\\b","name":"keyword.control.break.d"}]},"case-statement":{"patterns":[{"begin":"\\\\b(case)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.case.range.d"}},"end":":","endCaptures":{"0":{"name":"meta.case.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"},{"include":"#comma"}]}]},"cast-expression":{"patterns":[{"begin":"\\\\b(cast)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.cast.d"},"2":{"name":"keyword.operator.cast.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.operator.cast.end.d"}},"patterns":[{"include":"#type"},{"include":"#extended-type"}]}]},"catch":{"patterns":[{"begin":"\\\\b(catch)\\\\b\\\\s*(?=\\\\()","captures":{"1":{"name":"keyword.control.catch.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]}]},"catches":{"patterns":[{"include":"#catch"}]},"character":{"patterns":[{"match":"[\\\\w\\\\s]+","name":"string.character.d"}]},"character-literal":{"patterns":[{"begin":"\'","end":"\'","name":"string.character-literal.d","patterns":[{"include":"#character"},{"include":"#escape-sequence"}]}]},"class-declaration":{"patterns":[{"captures":{"1":{"name":"storage.type.class.d"},"2":{"name":"entity.name.class.d"}},"match":"\\\\b(class)(?:\\\\s+([A-Z_a-z][_\\\\w\\\\d]*))?\\\\b"},{"include":"#protection-attribute"},{"include":"#class-members"}]},"class-members":{"patterns":[{"include":"#shared-static-constructor"},{"include":"#shared-static-destructor"},{"include":"#constructor"},{"include":"#destructor"},{"include":"#postblit"},{"include":"#invariant"},{"include":"#member-function-attribute"}]},"colon":{"patterns":[{"match":":","name":"support.type.colon.d"}]},"comma":{"patterns":[{"match":",","name":"keyword.operator.comma.d"}]},"comment":{"patterns":[{"include":"#block-comment"},{"include":"#line-comment"},{"include":"#nesting-block-comment"}]},"condition":{"patterns":[{"include":"#version-condition"},{"include":"#debug-condition"},{"include":"#static-if-condition"}]},"conditional-declaration":{"patterns":[{"include":"#condition"},{"match":"\\\\belse\\\\b","name":"keyword.control.else.d"},{"include":"#colon"},{"include":"#decl-defs"}]},"conditional-expression":{"patterns":[{"match":"\\\\s([:?])\\\\s","name":"keyword.operator.ternary.d"}]},"conditional-statement":{"patterns":[{"include":"#condition"},{"include":"#no-scope-non-empty-statement"},{"match":"\\\\belse\\\\b","name":"keyword.control.else.d"}]},"constructor":{"patterns":[{"match":"\\\\bthis\\\\b","name":"entity.name.function.constructor.d"}]},"continue-statement":{"patterns":[{"match":"\\\\bcontinue\\\\b","name":"keyword.control.continue.d"}]},"debug-condition":{"patterns":[{"begin":"\\\\bdebug\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.other.debug.identifier.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.debug.identifier.end.d"}},"patterns":[{"include":"#integer-literal"},{"include":"#identifier"}]},{"match":"\\\\bdebug\\\\b\\\\s*(?!\\\\()","name":"keyword.other.debug.plain.d"}]},"debug-specification":{"patterns":[{"match":"\\\\bdebug\\\\b\\\\s*(?==)","name":"keyword.other.debug-specification.d"}]},"decimal-float":{"patterns":[{"match":"\\\\b((\\\\.[0-9])|(0\\\\.)|(([1-9]|(0[1-9_]))[0-9_]*\\\\.))[0-9_]*((e-|E-|e\\\\+|E\\\\+|[Ee])[0-9][0-9_]*)?[FLf]?i?\\\\b","name":"constant.numeric.float.decimal.d"}]},"decimal-integer":{"patterns":[{"match":"\\\\b(0(?=[^BXbx\\\\d]))|([1-9][0-9_]*)(Lu|LU|uL|UL|[LUu])?\\\\b","name":"constant.numeric.integer.decimal.d"}]},"declaration":{"patterns":[{"include":"#alias-declaration"},{"include":"#aggregate-declaration"},{"include":"#enum-declaration"},{"include":"#import-declaration"},{"include":"#storage-class"},{"include":"#void-initializer"},{"include":"#mixin-declaration"}]},"declaration-statement":{"patterns":[{"include":"#declaration"}]},"default-statement":{"patterns":[{"captures":{"1":{"name":"keyword.control.case.default.d"},"2":{"name":"meta.default.colon.d"}},"match":"\\\\b(default)\\\\s*(:)"}]},"delete-expression":{"patterns":[{"match":"\\\\bdelete\\\\s+","name":"keyword.other.delete.d"}]},"delimited-string":{"begin":"q\\"","end":"\\"","name":"string.delimited.d","patterns":[{"include":"#delimited-string-bracket"},{"include":"#delimited-string-parens"},{"include":"#delimited-string-angle-brackets"},{"include":"#delimited-string-braces"}]},"delimited-string-angle-brackets":{"patterns":[{"begin":"<","end":">","name":"constant.character.angle-brackets.d","patterns":[{"include":"#wysiwyg-characters"}]}]},"delimited-string-braces":{"patterns":[{"begin":"\\\\{","end":"}","name":"constant.character.delimited.braces.d","patterns":[{"include":"#wysiwyg-characters"}]}]},"delimited-string-bracket":{"patterns":[{"begin":"\\\\[","end":"]","name":"constant.characters.delimited.brackets.d","patterns":[{"include":"#wysiwyg-characters"}]}]},"delimited-string-parens":{"patterns":[{"begin":"\\\\(","end":"\\\\)","name":"constant.character.delimited.parens.d","patterns":[{"include":"#wysiwyg-characters"}]}]},"deprecated-statement":{"patterns":[{"begin":"\\\\bdeprecated\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.other.deprecated.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.deprecated.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"},{"include":"#comma"}]},{"match":"\\\\bdeprecated\\\\b\\\\s*(?!\\\\()","name":"keyword.other.deprecated.plain.d"}]},"destructor":{"patterns":[{"match":"\\\\b~this\\\\s*\\\\(\\\\s*\\\\)","name":"entity.name.class.destructor.d"}]},"do-statement":{"patterns":[{"match":"\\\\bdo\\\\b","name":"keyword.control.do.d"}]},"double-quoted-characters":{"patterns":[{"include":"#character"},{"include":"#end-of-line"},{"include":"#escape-sequence"}]},"double-quoted-string":{"patterns":[{"begin":"\\"","end":"\\"[cdw]?","name":"string.double-quoted-string.d","patterns":[{"include":"#double-quoted-characters"}]}]},"end-of-line":{"patterns":[{"match":"\\\\n+","name":"string.character.end-of-line.d"}]},"enum-declaration":{"patterns":[{"begin":"\\\\b(enum)\\\\b\\\\s+(?=.*[;=])","beginCaptures":{"1":{"name":"storage.type.enum.d"}},"end":"([A-Z_a-z][_\\\\w\\\\d]*)\\\\s*(?=[(;=])(;)?","endCaptures":{"1":{"name":"entity.name.type.enum.d"},"2":{"name":"meta.enum.end.d"}},"patterns":[{"include":"#type"},{"include":"#extended-type"},{"match":"=(?![=>])","name":"keyword.operator.equal.alias.d"}]}]},"eof":{"patterns":[{"begin":"__EOF__","beginCaptures":{"0":{"name":"comment.block.documentation.eof.start.d"}},"end":"(?!__NEVER_MATCH__)__NEVER_MATCH__","name":"text.eof.d"}]},"equal":{"patterns":[{"match":"=(?![=>])","name":"keyword.operator.equal.d"}]},"escape-sequence":{"patterns":[{"match":"(\\\\\\\\(?:quot|amp|lt|gt|OElig|oelig|Scaron|scaron|Yuml|circ|tilde|ensp|emsp|thinsp|zwnj|zwj|lrm|rlm|ndash|mdash|lsquo|rsquo|sbquo|ldquo|rdquo|bdquo|dagger|Dagger|permil|lsaquo|rsaquo|euro|nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|Aelig|Ccedil|egrave|eacute|ecirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|fnof|Alpha|Beta|Gamma|Delta|Epsilon|Zeta|Eta|Theta|Iota|Kappa|Lambda|Mu|Nu|Xi|Omicron|Pi|Rho|Sigma|Tau|Upsilon|Phi|Chi|Psi|Omega|alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigmaf?|tau|upsilon|phi|chi|psi|omega|thetasym|upsih|piv|bull|hellip|prime|Prime|oline|frasl|weierp|image|real|trade|alefsym|larr|uarr|rarr|darr|harr|crarr|lArr|uArr|rArr|dArr|hArr|forall|part|exist|empty|nabla|isin|notin|ni|prod|sum|minux|lowast|radic|prop|infin|ang|and|or|cap|cup|int|there4|sim|cong|asymp|ne|equiv|le|ge|sub|sup|nsub|sube|supe|oplus|otimes|perp|sdot|lceil|rceil|lfloor|rfloor|loz|spades|clubs|hearts|diams|lang|rang))","name":"constant.character.escape-sequence.entity.d"},{"match":"(\\\\\\\\(?:x[_\\\\h]{2}|u[_\\\\h]{4}|U[_\\\\h]{8}|[0-7]{1,3}))","name":"constant.character.escape-sequence.number.d"},{"match":"(\\\\\\\\[\\"\'0?\\\\\\\\abfnrtv])","name":"constant.character.escape-sequence.d"}]},"expression":{"patterns":[{"include":"#index-expression"},{"include":"#expression-no-index"}]},"expression-no-index":{"patterns":[{"include":"#function-literal"},{"include":"#assert-expression"},{"include":"#assign-expression"},{"include":"#mixin-expression"},{"include":"#import-expression"},{"include":"#traits-expression"},{"include":"#is-expression"},{"include":"#typeid-expression"},{"include":"#shift-expression"},{"include":"#logical-expression"},{"include":"#rel-expression"},{"include":"#bitwise-expression"},{"include":"#identity-expression"},{"include":"#in-expression"},{"include":"#conditional-expression"},{"include":"#arithmetic-expression"},{"include":"#new-expression"},{"include":"#delete-expression"},{"include":"#cast-expression"},{"include":"#type-specialization"},{"include":"#comma"},{"include":"#special-keyword"},{"include":"#functions"},{"include":"#type"},{"include":"#parentheses-expression"},{"include":"#lexical"}]},"extended-type":{"patterns":[{"match":"\\\\b((\\\\.\\\\s*)?[_\\\\w][_\\\\d\\\\w]*)(\\\\s*\\\\.\\\\s*[_\\\\w][_\\\\d\\\\w]*)*\\\\b","name":"entity.name.type.d"},{"begin":"\\\\[","beginCaptures":{"0":{"name":"storage.type.array.expression.begin.d"}},"end":"]","endCaptures":{"0":{"name":"storage.type.array.expression.end.d"}},"patterns":[{"match":"\\\\.\\\\.|\\\\$","name":"keyword.operator.slice.d"},{"include":"#type"},{"include":"#expression"}]}]},"final-switch-statement":{"patterns":[{"begin":"\\\\b(final\\\\s+switch)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.final.switch.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]}]},"finally-statement":{"patterns":[{"match":"\\\\bfinally\\\\b","name":"keyword.control.throw.d"}]},"float-literal":{"patterns":[{"include":"#decimal-float"},{"include":"#hexadecimal-float"}]},"for-statement":{"patterns":[{"begin":"\\\\b(for)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.for.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]}]},"foreach-reverse-statement":{"patterns":[{"begin":"\\\\b(foreach_reverse)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.foreach_reverse.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"match":";","name":"keyword.operator.semi-colon.d"},{"include":"source.d"}]}]}]},"foreach-statement":{"patterns":[{"begin":"\\\\b(foreach)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.foreach.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"match":";","name":"keyword.operator.semi-colon.d"},{"include":"source.d"}]}]}]},"function-attribute":{"patterns":[{"match":"\\\\b(nothrow|pure)\\\\b","name":"storage.type.modifier.function-attribute.d"},{"include":"#property"}]},"function-body":{"patterns":[{"include":"#in-statement"},{"include":"#out-statement"},{"include":"#block-statement"}]},"function-literal":{"patterns":[{"match":"=>","name":"keyword.operator.lambda.d"},{"match":"\\\\b(function|delegate)\\\\b","name":"keyword.other.function-literal.d"},{"begin":"\\\\b([_\\\\w][_\\\\d\\\\w]*)\\\\s*(=>)","beginCaptures":{"1":{"name":"variable.parameter.d"},"2":{"name":"meta.lexical.token.symbolic.d"}},"end":"(?=[]),;}])","patterns":[{"include":"source.d"}]},{"begin":"(?<=[()])(\\\\s*)(\\\\{)","beginCaptures":{"1":{"name":"source.d"},"2":{"name":"source.d"}},"end":"}","patterns":[{"include":"source.d"}]}]},"function-prelude":{"patterns":[{"match":"(?!type(?:of|id))((\\\\.\\\\s*)?[_\\\\w][_\\\\d\\\\w]*)(\\\\s*\\\\.\\\\s*[_\\\\w][_\\\\d\\\\w]*)*\\\\s*(?=\\\\()","name":"entity.name.function.d"}]},"functions":{"patterns":[{"include":"#function-attribute"},{"include":"#function-prelude"}]},"goto-statement":{"patterns":[{"match":"\\\\bgoto\\\\s+default\\\\b","name":"keyword.control.goto.d"},{"match":"\\\\bgoto\\\\s+case\\\\b","name":"keyword.control.goto.d"},{"match":"\\\\bgoto\\\\b","name":"keyword.control.goto.d"}]},"hex-string":{"patterns":[{"begin":"x\\"","end":"\\"[cdw]?","name":"string.hex-string.d","patterns":[{"match":"[_s\\\\h]+","name":"constant.character.hex-string.d"}]}]},"hexadecimal-float":{"patterns":[{"match":"\\\\b0[Xx][_\\\\h]*(\\\\.[_\\\\h]*)?(p-|P-|p\\\\+|P\\\\+|[Pp])[0-9][0-9_]*[FLf]?i?\\\\b","name":"constant.numeric.float.hexadecimal.d"}]},"hexadecimal-integer":{"patterns":[{"match":"\\\\b(0[Xx])(\\\\h[_\\\\h]*)(Lu|LU|uL|UL|[LUu])?\\\\b","name":"constant.numeric.integer.hexadecimal.d"}]},"identifier":{"patterns":[{"match":"\\\\b((\\\\.\\\\s*)?[_\\\\w][_\\\\d\\\\w]*)(\\\\s*\\\\.\\\\s*[_\\\\w][_\\\\d\\\\w]*)*\\\\b","name":"variable.d"}]},"identifier-list":{"patterns":[{"match":",","name":"keyword.other.comma.d"},{"include":"#identifier"}]},"identity-expression":{"patterns":[{"match":"\\\\b(!??is)\\\\b","name":"keyword.operator.identity.d"}]},"ies-string":{"patterns":[{"begin":"i\\"","end":"\\"[cdw]?","name":"string.ies-string.d","patterns":[{"include":"#interpolation-escape"},{"include":"#interpolation-sequence"},{"include":"#double-quoted-characters"}]}]},"ies-token-string":{"begin":"iq\\\\{","beginCaptures":{"0":{"name":"string.quoted.token.d"}},"end":"}[cdw]?","endCaptures":{"0":{"name":"string.quoted.token.d"}},"patterns":[{"include":"#interpolation-sequence"},{"include":"#token-string-content"}]},"ies-wysiwyg-string":{"patterns":[{"begin":"i`","end":"`[cdw]?","name":"string.ies-wysiwyg-string.d","patterns":[{"include":"#interpolation-escape"},{"include":"#interpolation-sequence"},{"include":"#wysiwyg-characters"}]}]},"if-statement":{"patterns":[{"begin":"\\\\b(if)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.if.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]},{"match":"\\\\belse\\\\b\\\\s*","name":"keyword.control.else.d"}]},"import-declaration":{"patterns":[{"begin":"\\\\b(static\\\\s+)?(import)\\\\s+(?!\\\\()","beginCaptures":{"1":{"name":"keyword.package.import.d"},"2":{"name":"keyword.package.import.d"}},"end":";","endCaptures":{"0":{"name":"meta.import.end.d"}},"patterns":[{"include":"#import-identifier"},{"include":"#comma"},{"include":"#comment"}]}]},"import-expression":{"patterns":[{"begin":"\\\\b(import)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.import.d"},"2":{"name":"keyword.other.import.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.import.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"},{"include":"#comma"}]}]},"import-identifier":{"patterns":[{"match":"([A-Z_a-z][_\\\\d\\\\w]*)(\\\\s*\\\\.\\\\s*[A-Z_a-z][_\\\\d\\\\w]*)*","name":"variable.parameter.import.d"}]},"in-expression":{"patterns":[{"match":"\\\\b(!??in)\\\\b","name":"keyword.operator.in.d"}]},"in-statement":{"patterns":[{"match":"\\\\bin\\\\b","name":"keyword.control.in.d"}]},"index-expression":{"patterns":[{"begin":"\\\\[","end":"]","patterns":[{"match":"\\\\.\\\\.|\\\\$","name":"keyword.operator.slice.d"},{"include":"#expression-no-index"}]}]},"integer-literal":{"patterns":[{"include":"#decimal-integer"},{"include":"#binary-integer"},{"include":"#hexadecimal-integer"}]},"interface-declaration":{"patterns":[{"captures":{"1":{"name":"storage.type.interface.d"},"2":{"name":"entity.name.type.interface.d"}},"match":"\\\\b(interface)(?:\\\\s+([A-Z_a-z][_\\\\w\\\\d]*))?\\\\b"}]},"interpolation-escape":{"match":"\\\\\\\\\\\\$","name":"constant.character.escape-sequence.d"},"interpolation-sequence":{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.d"}},"name":"meta.interpolation.expression.d","patterns":[{"include":"#expression"}]},"invariant":{"patterns":[{"match":"\\\\binvariant\\\\s*\\\\(\\\\s*\\\\)","name":"entity.name.class.invariant.d"}]},"is-expression":{"patterns":[{"begin":"\\\\bis\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.token.is.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.token.is.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"},{"include":"#comma"}]}]},"keyword":{"patterns":[{"match":"\\\\babstract\\\\b","name":"keyword.token.abstract.d"},{"match":"\\\\balias\\\\b","name":"keyword.token.alias.d"},{"match":"\\\\balign\\\\b","name":"keyword.token.align.d"},{"match":"\\\\basm\\\\b","name":"keyword.token.asm.d"},{"match":"\\\\bassert\\\\b","name":"keyword.token.assert.d"},{"match":"\\\\bauto\\\\b","name":"keyword.token.auto.d"},{"match":"\\\\bbool\\\\b","name":"keyword.token.bool.d"},{"match":"\\\\bbreak\\\\b","name":"keyword.token.break.d"},{"match":"\\\\bbyte\\\\b","name":"keyword.token.byte.d"},{"match":"\\\\bcase\\\\b","name":"keyword.token.case.d"},{"match":"\\\\bcast\\\\b","name":"keyword.token.cast.d"},{"match":"\\\\bcatch\\\\b","name":"keyword.token.catch.d"},{"match":"\\\\bcdouble\\\\b","name":"keyword.token.cdouble.d"},{"match":"\\\\bcent\\\\b","name":"keyword.token.cent.d"},{"match":"\\\\bcfloat\\\\b","name":"keyword.token.cfloat.d"},{"match":"\\\\bchar\\\\b","name":"keyword.token.char.d"},{"match":"\\\\bclass\\\\b","name":"keyword.token.class.d"},{"match":"\\\\bconst\\\\b","name":"keyword.token.const.d"},{"match":"\\\\bcontinue\\\\b","name":"keyword.token.continue.d"},{"match":"\\\\bcreal\\\\b","name":"keyword.token.creal.d"},{"match":"\\\\bdchar\\\\b","name":"keyword.token.dchar.d"},{"match":"\\\\bdebug\\\\b","name":"keyword.token.debug.d"},{"match":"\\\\bdefault\\\\b","name":"keyword.token.default.d"},{"match":"\\\\bdelegate\\\\b","name":"keyword.token.delegate.d"},{"match":"\\\\bdelete\\\\b","name":"keyword.token.delete.d"},{"match":"\\\\bdeprecated\\\\b","name":"keyword.token.deprecated.d"},{"match":"\\\\bdo\\\\b","name":"keyword.token.do.d"},{"match":"\\\\bdouble\\\\b","name":"keyword.token.double.d"},{"match":"\\\\belse\\\\b","name":"keyword.token.else.d"},{"match":"\\\\benum\\\\b","name":"keyword.token.enum.d"},{"match":"\\\\bexport\\\\b","name":"keyword.token.export.d"},{"match":"\\\\bextern\\\\b","name":"keyword.token.extern.d"},{"match":"\\\\bfalse\\\\b","name":"constant.language.boolean.false.d"},{"match":"\\\\bfinal\\\\b","name":"keyword.token.final.d"},{"match":"\\\\bfinally\\\\b","name":"keyword.token.finally.d"},{"match":"\\\\bfloat\\\\b","name":"keyword.token.float.d"},{"match":"\\\\bfor\\\\b","name":"keyword.token.for.d"},{"match":"\\\\bforeach\\\\b","name":"keyword.token.foreach.d"},{"match":"\\\\bforeach_reverse\\\\b","name":"keyword.token.foreach_reverse.d"},{"match":"\\\\bfunction\\\\b","name":"keyword.token.function.d"},{"match":"\\\\bgoto\\\\b","name":"keyword.token.goto.d"},{"match":"\\\\bidouble\\\\b","name":"keyword.token.idouble.d"},{"match":"\\\\bif\\\\b","name":"keyword.token.if.d"},{"match":"\\\\bifloat\\\\b","name":"keyword.token.ifloat.d"},{"match":"\\\\bimmutable\\\\b","name":"keyword.token.immutable.d"},{"match":"\\\\bimport\\\\b","name":"keyword.token.import.d"},{"match":"\\\\bin\\\\b","name":"keyword.token.in.d"},{"match":"\\\\binout\\\\b","name":"keyword.token.inout.d"},{"match":"\\\\bint\\\\b","name":"keyword.token.int.d"},{"match":"\\\\binterface\\\\b","name":"keyword.token.interface.d"},{"match":"\\\\binvariant\\\\b","name":"keyword.token.invariant.d"},{"match":"\\\\bireal\\\\b","name":"keyword.token.ireal.d"},{"match":"\\\\bis\\\\b","name":"keyword.token.is.d"},{"match":"\\\\blazy\\\\b","name":"keyword.token.lazy.d"},{"match":"\\\\blong\\\\b","name":"keyword.token.long.d"},{"match":"\\\\bmacro\\\\b","name":"keyword.token.macro.d"},{"match":"\\\\bmixin\\\\b","name":"keyword.token.mixin.d"},{"match":"\\\\bmodule\\\\b","name":"keyword.token.module.d"},{"match":"\\\\bnew\\\\b","name":"keyword.token.new.d"},{"match":"\\\\bnothrow\\\\b","name":"keyword.token.nothrow.d"},{"match":"\\\\bnull\\\\b","name":"constant.language.null.d"},{"match":"\\\\bout\\\\b","name":"keyword.token.out.d"},{"match":"\\\\boverride\\\\b","name":"keyword.token.override.d"},{"match":"\\\\bpackage\\\\b","name":"keyword.token.package.d"},{"match":"\\\\bpragma\\\\b","name":"keyword.token.pragma.d"},{"match":"\\\\bprivate\\\\b","name":"keyword.token.private.d"},{"match":"\\\\bprotected\\\\b","name":"keyword.token.protected.d"},{"match":"\\\\bpublic\\\\b","name":"keyword.token.public.d"},{"match":"\\\\bpure\\\\b","name":"keyword.token.pure.d"},{"match":"\\\\breal\\\\b","name":"keyword.token.real.d"},{"match":"\\\\bref\\\\b","name":"keyword.token.ref.d"},{"match":"\\\\breturn\\\\b","name":"keyword.token.return.d"},{"match":"\\\\bscope\\\\b","name":"keyword.token.scope.d"},{"match":"\\\\bshared\\\\b","name":"keyword.token.shared.d"},{"match":"\\\\bshort\\\\b","name":"keyword.token.short.d"},{"match":"\\\\bstatic\\\\b","name":"keyword.token.static.d"},{"match":"\\\\bstruct\\\\b","name":"keyword.token.struct.d"},{"match":"\\\\bsuper\\\\b","name":"keyword.token.super.d"},{"match":"\\\\bswitch\\\\b","name":"keyword.token.switch.d"},{"match":"\\\\bsynchronized\\\\b","name":"keyword.token.synchronized.d"},{"match":"\\\\btemplate\\\\b","name":"keyword.token.template.d"},{"match":"\\\\bthis\\\\b","name":"keyword.token.this.d"},{"match":"\\\\bthrow\\\\b","name":"keyword.token.throw.d"},{"match":"\\\\btrue\\\\b","name":"constant.language.boolean.true.d"},{"match":"\\\\btry\\\\b","name":"keyword.token.try.d"},{"match":"\\\\btypedef\\\\b","name":"keyword.token.typedef.d"},{"match":"\\\\btypeid\\\\b","name":"keyword.token.typeid.d"},{"match":"\\\\btypeof\\\\b","name":"keyword.token.typeof.d"},{"match":"\\\\bubyte\\\\b","name":"keyword.token.ubyte.d"},{"match":"\\\\bucent\\\\b","name":"keyword.token.ucent.d"},{"match":"\\\\buint\\\\b","name":"keyword.token.uint.d"},{"match":"\\\\bulong\\\\b","name":"keyword.token.ulong.d"},{"match":"\\\\bunion\\\\b","name":"keyword.token.union.d"},{"match":"\\\\bunittest\\\\b","name":"keyword.token.unittest.d"},{"match":"\\\\bushort\\\\b","name":"keyword.token.ushort.d"},{"match":"\\\\bversion\\\\b","name":"keyword.token.version.d"},{"match":"\\\\bvoid\\\\b","name":"keyword.token.void.d"},{"match":"\\\\bvolatile\\\\b","name":"keyword.token.volatile.d"},{"match":"\\\\bwchar\\\\b","name":"keyword.token.wchar.d"},{"match":"\\\\bwhile\\\\b","name":"keyword.token.while.d"},{"match":"\\\\bwith\\\\b","name":"keyword.token.with.d"},{"match":"\\\\b__FILE__\\\\b","name":"keyword.token.__FILE__.d"},{"match":"\\\\b__MODULE__\\\\b","name":"keyword.token.__MODULE__.d"},{"match":"\\\\b__LINE__\\\\b","name":"keyword.token.__LINE__.d"},{"match":"\\\\b__FUNCTION__\\\\b","name":"keyword.token.__FUNCTION__.d"},{"match":"\\\\b__PRETTY_FUNCTION__\\\\b","name":"keyword.token.__PRETTY_FUNCTION__.d"},{"match":"\\\\b__gshared\\\\b","name":"keyword.token.__gshared.d"},{"match":"\\\\b__traits\\\\b","name":"keyword.token.__traits.d"},{"match":"\\\\b__vector\\\\b","name":"keyword.token.__vector.d"},{"match":"\\\\b__parameters\\\\b","name":"keyword.token.__parameters.d"}]},"labeled-statement":{"patterns":[{"match":"\\\\b(?!abstract|alias|align|asm|assert|auto|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|noreturn|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__gshared|__traits|__vector|__parameters)[A-Z_a-z][0-9A-Z_a-z]*\\\\s*:","name":"entity.name.d"}]},"lexical":{"patterns":[{"include":"#comment"},{"include":"#string-literal"},{"include":"#character-literal"},{"include":"#float-literal"},{"include":"#integer-literal"},{"include":"#eof"},{"include":"#special-tokens"},{"include":"#special-token-sequence"},{"include":"#keyword"},{"include":"#identifier"}]},"line-comment":{"patterns":[{"match":"//+.*$","name":"comment.line.d"}]},"linkage-attribute":{"patterns":[{"begin":"\\\\bextern\\\\s*\\\\(\\\\s*C\\\\+\\\\+\\\\s*,","beginCaptures":{"0":{"name":"keyword.other.extern.cplusplus.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.extern.cplusplus.end.d"}},"patterns":[{"include":"#identifier"},{"include":"#comma"}]},{"begin":"\\\\bextern\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.other.extern.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.extern.end.d"}},"patterns":[{"include":"#linkage-type"}]}]},"linkage-type":{"patterns":[{"match":"C|C\\\\+\\\\+|D|Windows|Pascal|System","name":"storage.modifier.linkage-type.d"}]},"logical-expression":{"patterns":[{"match":"\\\\|\\\\||&&|==|!=?","name":"keyword.operator.logical.d"}]},"member-function-attribute":{"patterns":[{"match":"\\\\b(const|immutable|inout|shared)\\\\b","name":"storage.type.modifier.member-function-attribute"}]},"mixin-declaration":{"patterns":[{"begin":"\\\\bmixin\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.mixin.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.mixin.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"},{"include":"#comma"}]}]},"mixin-expression":{"patterns":[{"begin":"\\\\bmixin\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.other.mixin.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.mixin.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"},{"include":"#comma"}]}]},"mixin-statement":{"patterns":[{"begin":"\\\\bmixin\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.control.mixin.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.control.mixin.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"},{"include":"#comma"}]}]},"mixin-template-declaration":{"patterns":[{"captures":{"1":{"name":"storage.type.mixintemplate.d"},"2":{"name":"entity.name.type.mixintemplate.d"}},"match":"\\\\b(mixin\\\\s*template)(?:\\\\s+([A-Z_a-z][_\\\\w\\\\d]*))?\\\\b"}]},"module":{"packages":[{"import":"#module-declaration"}]},"module-declaration":{"patterns":[{"begin":"\\\\b(module)\\\\s+","beginCaptures":{"1":{"name":"keyword.package.module.d"}},"end":";","endCaptures":{"0":{"name":"meta.module.end.d"}},"patterns":[{"include":"#module-identifier"},{"include":"#comment"}]}]},"module-identifier":{"patterns":[{"match":"([A-Z_a-z][_\\\\d\\\\w]*)(\\\\s*\\\\.\\\\s*[A-Z_a-z][_\\\\d\\\\w]*)*","name":"variable.parameter.module.d"}]},"nesting-block-comment":{"patterns":[{"begin":"/((?!\\\\+/)\\\\+)+","beginCaptures":{"0":{"name":"comment.block.documentation.begin.d"}},"end":"\\\\++/","endCaptures":{"0":{"name":"comment.block.documentation.end.d"}},"name":"comment.block.documentation.content.d","patterns":[{"include":"#nesting-block-comment"}]}]},"new-expression":{"patterns":[{"match":"\\\\bnew\\\\s+","name":"keyword.other.new.d"}]},"non-block-statement":{"patterns":[{"include":"#module-declaration"},{"include":"#labeled-statement"},{"include":"#if-statement"},{"include":"#while-statement"},{"include":"#do-statement"},{"include":"#for-statement"},{"include":"#static-foreach"},{"include":"#static-foreach-reverse"},{"include":"#foreach-statement"},{"include":"#foreach-reverse-statement"},{"include":"#switch-statement"},{"include":"#final-switch-statement"},{"include":"#case-statement"},{"include":"#default-statement"},{"include":"#continue-statement"},{"include":"#break-statement"},{"include":"#return-statement"},{"include":"#goto-statement"},{"include":"#with-statement"},{"include":"#synchronized-statement"},{"include":"#try-statement"},{"include":"#catches"},{"include":"#scope-guard-statement"},{"include":"#throw-statement"},{"include":"#finally-statement"},{"include":"#asm-statement"},{"include":"#pragma-statement"},{"include":"#mixin-statement"},{"include":"#conditional-statement"},{"include":"#static-assert"},{"include":"#deprecated-statement"},{"include":"#unit-test"},{"include":"#declaration-statement"}]},"operands":{"patterns":[{"match":"[:?]","name":"keyword.operator.ternary.assembly.d"},{"match":"[]\\\\[]","name":"keyword.operator.bracket.assembly.d"},{"match":">>>|\\\\|\\\\||&&|==|!=|<=|>=|<<|>>|[-!%\\\\&*+/<>^|~]","name":"keyword.operator.assembly.d"}]},"out-statement":{"patterns":[{"begin":"\\\\bout\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.control.out.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.control.out.end.d"}},"patterns":[{"include":"#identifier"}]},{"match":"\\\\bout\\\\b","name":"keyword.control.out.d"}]},"parentheses-expression":{"patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#expression"}]}]},"postblit":{"patterns":[{"match":"\\\\bthis\\\\s*\\\\(\\\\s*this\\\\s*\\\\)\\\\s","name":"entity.name.class.postblit.d"}]},"pragma":{"patterns":[{"match":"\\\\bpragma\\\\s*\\\\(\\\\s*[_\\\\w][_\\\\d\\\\w]*\\\\s*\\\\)","name":"keyword.other.pragma.d"},{"begin":"\\\\bpragma\\\\s*\\\\(\\\\s*[_\\\\w][_\\\\d\\\\w]*\\\\s*,","end":"\\\\)","name":"keyword.other.pragma.d","patterns":[{"include":"#expression"}]},{"match":"^#!.+","name":"gfm.markup.header.preprocessor.script-tag.d"}]},"pragma-statement":{"patterns":[{"include":"#pragma"}]},"property":{"patterns":[{"match":"@(property|safe|trusted|system|disable|nogc)\\\\b","name":"entity.name.tag.property.d"},{"include":"#user-defined-attribute"}]},"protection-attribute":{"patterns":[{"match":"\\\\b(private|package|protected|public|export)\\\\b","name":"keyword.other.protections.d"}]},"register":{"patterns":[{"match":"\\\\b(XMM0|XMM1|XMM2|XMM3|XMM4|XMM5|XMM6|XMM7|MM0|MM1|MM2|MM3|MM4|MM5|MM6|MM7|ST\\\\(0\\\\)|ST\\\\(1\\\\)|ST\\\\(2\\\\)|ST\\\\(3\\\\)|ST\\\\(4\\\\)|ST\\\\(5\\\\)|ST\\\\(6\\\\)|ST\\\\(7\\\\)|ST|TR1|TR2|TR3|TR4|TR5|TR6|TR7|DR0|DR1|DR2|DR3|DR4|DR5|DR6|DR7|CR0|CR2|CR3|CR4|EAX|EBX|ECX|EDX|EBP|ESP|EDI|ESI|AL|AH|AX|BL|BH|BX|CL|CH|CX|DL|DH|DX|BP|SP|DI|SI|ES|CS|SS|DS|GS|FS)\\\\b","name":"storage.type.assembly.register.d"}]},"register-64":{"patterns":[{"match":"\\\\b(RAX|RBX|RCX|RDX|BPL|RBP|SPL|RSP|DIL|RDI|SIL|RSI|R8B|R8W|R8D?|R9B|R9W|R9D?|R10B|R10W|R10D?|R11B|R11W|R11D?|R12B|R12W|R12D?|R13B|R13W|R13D?|R14B|R14W|R14D?|R15B|R15W|R15D?|XMM8|XMM9|XMM10|XMM11|XMM12|XMM13|XMM14|XMM15|YMM0|YMM1|YMM2|YMM3|YMM4|YMM5|YMM6|YMM7|YMM8|YMM9|YMM10|YMM11|YMM12|YMM13|YMM14|YMM15)\\\\b","name":"storage.type.assembly.register-64.d"}]},"rel-expression":{"patterns":[{"match":"!<>=?|<>=|!>=|!<=|<=|>=|<>|!>|!<|[<>]","name":"keyword.operator.rel.d"}]},"return-statement":{"patterns":[{"match":"\\\\breturn\\\\b","name":"keyword.control.return.d"}]},"scope-guard-statement":{"patterns":[{"match":"\\\\bscope\\\\s*\\\\((exit|success|failure)\\\\)","name":"keyword.control.scope.d"}]},"semi-colon":{"patterns":[{"match":";","name":"meta.statement.end.d"}]},"shared-static-constructor":{"patterns":[{"match":"\\\\b(shared\\\\s+)?static\\\\s+this\\\\s*\\\\(\\\\s*\\\\)","name":"entity.name.class.constructor.shared-static.d"},{"include":"#function-body"}]},"shared-static-destructor":{"patterns":[{"match":"\\\\b(shared\\\\s+)?static\\\\s+~this\\\\s*\\\\(\\\\s*\\\\)","name":"entity.name.class.destructor.static.d"}]},"shift-expression":{"patterns":[{"match":"<<|>>>??","name":"keyword.operator.shift.d"},{"include":"#add-expression"}]},"special-keyword":{"patterns":[{"match":"\\\\b(__(?:FILE|FILE_FULL_PATH|MODULE|LINE|FUNCTION|PRETTY_FUNCTION)__)\\\\b","name":"constant.language.special-keyword.d"}]},"special-token-sequence":{"patterns":[{"match":"#\\\\s*line.*","name":"gfm.markup.italic.special-token-sequence.d"}]},"special-tokens":{"patterns":[{"match":"\\\\b(__(?:DATE|TIME|TIMESTAMP|VENDOR|VERSION)__)\\\\b","name":"gfm.markup.raw.special-tokens.d"}]},"statement":{"patterns":[{"include":"#non-block-statement"},{"include":"#semi-colon"}]},"static-assert":{"patterns":[{"begin":"\\\\bstatic\\\\s+assert\\\\b\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.other.static-assert.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.static-assert.end.d"}},"patterns":[{"include":"#expression"}]}]},"static-foreach":{"patterns":[{"begin":"\\\\b(static\\\\s+foreach)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.static-foreach.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"match":";","name":"keyword.operator.semi-colon.d"},{"include":"source.d"}]}]}]},"static-foreach-reverse":{"patterns":[{"begin":"\\\\b(static\\\\s+foreach_reverse)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.static-foreach.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"match":";","name":"keyword.operator.semi-colon.d"},{"include":"source.d"}]}]}]},"static-if-condition":{"patterns":[{"begin":"\\\\bstatic\\\\s+if\\\\b\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.control.static-if.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.control.static-if.end.d"}},"patterns":[{"include":"#comment"},{"include":"#expression"}]}]},"storage-class":{"patterns":[{"match":"\\\\b(deprecated|enum|static|extern|abstract|final|override|synchronized|auto|scope|const|immutable|inout|shared|__gshared|nothrow|pure|ref)\\\\b","name":"storage.class.d"},{"include":"#linkage-attribute"},{"include":"#align-attribute"},{"include":"#property"}]},"string-literal":{"patterns":[{"include":"#wysiwyg-string"},{"include":"#alternate-wysiwyg-string"},{"include":"#hex-string"},{"include":"#arbitrary-delimited-string"},{"include":"#delimited-string"},{"include":"#double-quoted-string"},{"include":"#token-string"},{"include":"#ies-string"},{"include":"#ies-wysiwyg-string"},{"include":"#ies-token-string"}]},"struct-declaration":{"patterns":[{"captures":{"1":{"name":"storage.type.struct.d"},"2":{"name":"entity.name.type.struct.d"}},"match":"\\\\b(struct)(?:\\\\s+([A-Z_a-z][_\\\\w\\\\d]*))?\\\\b"}]},"switch-statement":{"patterns":[{"begin":"\\\\b(switch)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.switch.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]}]},"synchronized-statement":{"patterns":[{"begin":"\\\\b(synchronized)\\\\b\\\\s*(?=\\\\()","captures":{"1":{"name":"keyword.control.synchronized.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]}]},"template-declaration":{"patterns":[{"captures":{"1":{"name":"storage.type.template.d"},"2":{"name":"entity.name.type.template.d"}},"match":"\\\\b(template)(?:\\\\s+([A-Z_a-z][_\\\\w\\\\d]*))?\\\\b"}]},"throw-statement":{"patterns":[{"match":"\\\\bthrow\\\\b","name":"keyword.control.throw.d"}]},"token-string":{"begin":"q\\\\{","beginCaptures":{"0":{"name":"string.quoted.token.d"}},"end":"}[cdw]?","endCaptures":{"0":{"name":"string.quoted.token.d"}},"patterns":[{"include":"#token-string-content"}]},"token-string-content":{"patterns":[{"begin":"\\\\{","end":"}","patterns":[{"include":"#token-string-content"}]},{"include":"#comment"},{"include":"#tokens"}]},"tokens":{"patterns":[{"include":"#string-literal"},{"include":"#character-literal"},{"include":"#integer-literal"},{"include":"#float-literal"},{"include":"#keyword"},{"match":"~=?|>>>|>>=?|>=?|=>|==?|<>|<=|<=?|!=|!<>=?|!<=?|!|/=|[,/:;@]|-=|--?","name":"meta.lexical.token.symbolic.d"},{"include":"#identifier"}]},"traits-argument":{"patterns":[{"include":"#expression"},{"include":"#type"}]},"traits-arguments":{"patterns":[{"include":"#traits-argument"},{"include":"#comma"}]},"traits-expression":{"patterns":[{"begin":"\\\\b__traits\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.other.traits.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.traits.end.d"}},"patterns":[{"include":"#traits-keyword"},{"include":"#comma"},{"include":"#traits-argument"}]}]},"traits-keyword":{"patterns":[{"match":"isAbstractClass|isArithmetic|isAssociativeArray|isFinalClass|isPOD|isNested|isFloating|isIntegral|isScalar|isStaticArray|isUnsigned|isVirtualFunction|isVirtualMethod|isAbstractFunction|isFinalFunction|isStaticFunction|isOverrideFunction|isRef|isOut|isLazy|hasMember|identifier|getAliasThis|getAttributes|getMember|getOverloads|getProtection|getVirtualFunctions|getVirtualMethods|getUnitTests|parent|classInstanceSize|getVirtualIndex|allMembers|derivedMembers|isSame|compiles","name":"support.constant.traits-keyword.d"}]},"try-statement":{"patterns":[{"match":"\\\\btry\\\\b","name":"keyword.control.try.d"}]},"type":{"patterns":[{"include":"#typeof"},{"include":"#base-type"},{"include":"#type-ctor"},{"begin":"!\\\\(","end":"\\\\)","patterns":[{"include":"#type"},{"include":"#expression"}]}]},"type-ctor":{"patterns":[{"match":"(const|immutable|inout|shared)\\\\b","name":"storage.type.modifier.d"}]},"type-specialization":{"patterns":[{"match":"\\\\b(struct|union|class|interface|enum|function|delegate|super|const|immutable|inout|shared|return|__parameters)\\\\b","name":"keyword.other.storage.type-specialization.d"}]},"typeid-expression":{"patterns":[{"match":"\\\\btypeid\\\\s*(?=\\\\()","name":"keyword.other.typeid.d"}]},"typeof":{"begin":"typeof\\\\s*\\\\(","end":"\\\\)","name":"keyword.token.typeof.d","patterns":[{"match":"return","name":"keyword.control.return.d"},{"include":"#expression"}]},"union-declaration":{"patterns":[{"captures":{"1":{"name":"storage.type.union.d"},"2":{"name":"entity.name.type.union.d"}},"match":"\\\\b(union)(?:\\\\s+([A-Z_a-z][_\\\\w\\\\d]*))?\\\\b"}]},"user-defined-attribute":{"patterns":[{"match":"@([_\\\\w][_\\\\d\\\\w]*)\\\\b","name":"entity.name.tag.user-defined-property.d"},{"begin":"@([_\\\\w][_\\\\d\\\\w]*)?\\\\(","end":"\\\\)","name":"entity.name.tag.user-defined-property.d","patterns":[{"include":"#expression"}]}]},"version-condition":{"patterns":[{"match":"\\\\bversion\\\\s*\\\\(\\\\s*unittest\\\\s*\\\\)","name":"keyword.other.version.unittest.d"},{"match":"\\\\bversion\\\\s*\\\\(\\\\s*assert\\\\s*\\\\)","name":"keyword.other.version.assert.d"},{"begin":"\\\\bversion\\\\s*\\\\(","beginCaptures":{"0":{"name":"keyword.other.version.identifier.begin.d"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.other.version.identifer.end.d"}},"patterns":[{"include":"#integer-literal"},{"include":"#identifier"}]},{"include":"#version-specification"}]},"version-specification":{"patterns":[{"match":"\\\\bversion\\\\b\\\\s*(?==)","name":"keyword.other.version-specification.d"}]},"void-initializer":{"patterns":[{"match":"\\\\bvoid\\\\b","name":"support.type.void.d"}]},"while-statement":{"patterns":[{"begin":"\\\\b(while)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.while.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]}]},"with-statement":{"patterns":[{"begin":"\\\\b(with)\\\\b\\\\s*(?=\\\\()","captures":{"1":{"name":"keyword.control.with.d"}},"end":"(?<=\\\\))","patterns":[{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"source.d"}]}]}]},"wysiwyg-characters":{"patterns":[{"include":"#character"},{"include":"#end-of-line"}]},"wysiwyg-string":{"patterns":[{"begin":"r\\"","end":"\\"[cdw]?","name":"string.wysiwyg-string.d","patterns":[{"include":"#wysiwyg-characters"}]}]}},"scopeName":"source.d"}'))];export{e as default}; diff --git a/docs/assets/d-D0LlbZRM.js b/docs/assets/d-D0LlbZRM.js new file mode 100644 index 0000000..ba8d0cd --- /dev/null +++ b/docs/assets/d-D0LlbZRM.js @@ -0,0 +1 @@ +import{t as o}from"./d-BIAtzqpc.js";export{o as d}; diff --git a/docs/assets/dagre-6UL2VRFP-Bnzt4A4J.js b/docs/assets/dagre-6UL2VRFP-Bnzt4A4J.js new file mode 100644 index 0000000..2fc2455 --- /dev/null +++ b/docs/assets/dagre-6UL2VRFP-Bnzt4A4J.js @@ -0,0 +1,4 @@ +import{n as C,t as D}from"./graphlib-Dtxn1kuc.js";import{t as F}from"./clone-o2k1NhhT.js";import{t as L}from"./dagre-B0xEvXH8.js";import{i as O}from"./min-BgkyNW2f.js";import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as w,r as t}from"./src-faGJHwXX.js";import{b as M}from"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import{t as j}from"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import{a as Y,c as k,i as H,l as _,n as z,t as q,u as K}from"./chunk-JZLCHNYA-DBaJpCky.js";import{a as Q,i as U,n as V,r as W,t as Z}from"./chunk-QXUST7PY-CIxWhn5L.js";function X(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:$(e),edges:ee(e)};return C(e.graph())||(r.value=F(e.graph())),r}function $(e){return O(e.nodes(),function(r){var n=e.node(r),d=e.parent(r),o={v:r};return C(n)||(o.value=n),C(d)||(o.parent=d),o})}function ee(e){return O(e.edges(),function(r){var n=e.edge(r),d={v:r.v,w:r.w};return C(r.name)||(d.name=r.name),C(n)||(d.value=n),d})}var c=new Map,b=new Map,G=new Map,ne=w(()=>{b.clear(),G.clear(),c.clear()},"clear"),I=w((e,r)=>{let n=b.get(r)||[];return t.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),re=w((e,r)=>{let n=b.get(r)||[];return t.info("Descendants of ",r," is ",n),t.info("Edge is ",e),e.v===r||e.w===r?!1:n?n.includes(e.v)||I(e.v,r)||I(e.w,r)||n.includes(e.w):(t.debug("Tilt, ",r,",not in descendants"),!1)},"edgeInCluster"),P=w((e,r,n,d)=>{t.warn("Copying children of ",e,"root",d,"data",r.node(e),d);let o=r.children(e)||[];e!==d&&o.push(e),t.warn("Copying (nodes) clusterId",e,"nodes",o),o.forEach(l=>{if(r.children(l).length>0)P(l,r,n,d);else{let i=r.node(l);t.info("cp ",l," to ",d," with parent ",e),n.setNode(l,i),d!==r.parent(l)&&(t.warn("Setting parent",l,r.parent(l)),n.setParent(l,r.parent(l))),e!==d&&l!==e?(t.debug("Setting parent",l,e),n.setParent(l,e)):(t.info("In copy ",e,"root",d,"data",r.node(e),d),t.debug("Not Setting parent for node=",l,"cluster!==rootId",e!==d,"node!==clusterId",l!==e));let s=r.edges(l);t.debug("Copying Edges",s),s.forEach(f=>{t.info("Edge",f);let E=r.edge(f.v,f.w,f.name);t.info("Edge data",E,d);try{re(f,d)?(t.info("Copying as ",f.v,f.w,E,f.name),n.setEdge(f.v,f.w,E,f.name),t.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):t.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",d," clusterId:",e)}catch(N){t.error(N)}})}t.debug("Removing node",l),r.removeNode(l)})},"copy"),B=w((e,r)=>{let n=r.children(e),d=[...n];for(let o of n)G.set(o,e),d=[...d,...B(o,r)];return d},"extractDescendants"),ae=w((e,r,n)=>{let d=e.edges().filter(s=>s.v===r||s.w===r),o=e.edges().filter(s=>s.v===n||s.w===n),l=d.map(s=>({v:s.v===r?n:s.v,w:s.w===r?r:s.w})),i=o.map(s=>({v:s.v,w:s.w}));return l.filter(s=>i.some(f=>s.v===f.v&&s.w===f.w))},"findCommonEdges"),S=w((e,r,n)=>{let d=r.children(e);if(t.trace("Searching children of id ",e,d),d.length<1)return e;let o;for(let l of d){let i=S(l,r,n),s=ae(r,n,i);if(i)if(s.length>0)o=i;else return i}return o},"findNonClusterChild"),T=w(e=>!c.has(e)||!c.get(e).externalConnections?e:c.has(e)?c.get(e).id:e,"getAnchorId"),te=w((e,r)=>{if(!e||r>10){t.debug("Opting out, no graph ");return}else t.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(t.warn("Cluster identified",n," Replacement id in edges: ",S(n,e,n)),b.set(n,B(n,e)),c.set(n,{id:S(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let d=e.children(n),o=e.edges();d.length>0?(t.debug("Cluster identified",n,b),o.forEach(l=>{I(l.v,n)^I(l.w,n)&&(t.warn("Edge: ",l," leaves cluster ",n),t.warn("Descendants of XXX ",n,": ",b.get(n)),c.get(n).externalConnections=!0)})):t.debug("Not a cluster ",n,b)});for(let n of c.keys()){let d=c.get(n).id,o=e.parent(d);o!==n&&c.has(o)&&!c.get(o).externalConnections&&(c.get(n).id=o)}e.edges().forEach(function(n){let d=e.edge(n);t.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let o=n.v,l=n.w;if(t.warn("Fix XXX",c,"ids:",n.v,n.w,"Translating: ",c.get(n.v)," --- ",c.get(n.w)),c.get(n.v)||c.get(n.w)){if(t.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),o=T(n.v),l=T(n.w),e.removeEdge(n.v,n.w,n.name),o!==n.v){let i=e.parent(o);c.get(i).externalConnections=!0,d.fromCluster=n.v}if(l!==n.w){let i=e.parent(l);c.get(i).externalConnections=!0,d.toCluster=n.w}t.warn("Fix Replacing with XXX",o,l,n.name),e.setEdge(o,l,d,n.name)}}),t.warn("Adjusted Graph",X(e)),A(e,0),t.trace(c)},"adjustClustersAndEdges"),A=w((e,r)=>{var o,l;if(t.warn("extractor - ",r,X(e),e.children("D")),r>10){t.error("Bailing out");return}let n=e.nodes(),d=!1;for(let i of n){let s=e.children(i);d||(d=s.length>0)}if(!d){t.debug("Done, no node has children",e.nodes());return}t.debug("Nodes = ",n,r);for(let i of n)if(t.debug("Extracting node",i,c,c.has(i)&&!c.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",r),!c.has(i))t.debug("Not a cluster",i,r);else if(!c.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.warn("Cluster without external connections, without a parent and with children",i,r);let s=e.graph().rankdir==="TB"?"LR":"TB";(l=(o=c.get(i))==null?void 0:o.clusterData)!=null&&l.dir&&(s=c.get(i).clusterData.dir,t.warn("Fixing dir",c.get(i).clusterData.dir,s));let f=new D({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.warn("Old graph before copy",X(e)),P(i,e,f,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:c.get(i).clusterData,label:c.get(i).label,graph:f}),t.warn("New graph after copy node: (",i,")",X(f)),t.debug("Old graph after copy",X(e))}else t.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!c.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),r),t.debug(c);n=e.nodes(),t.warn("New list of nodes",n);for(let i of n){let s=e.node(i);t.warn(" Now next level",i,s),s!=null&&s.clusterNode&&A(s.graph,r+1)}},"extractor"),J=w((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach(d=>{let o=J(e,e.children(d));n=[...n,...o]}),n},"sorter"),ie=w(e=>J(e,e.children()),"sortNodesByHierarchy"),R=w(async(e,r,n,d,o,l)=>{t.warn("Graph in recursive render:XAX",X(r),o);let i=r.graph().rankdir;t.trace("Dir in recursive render - dir:",i);let s=e.insert("g").attr("class","root");r.nodes()?t.info("Recursive render XXX",r.nodes()):t.info("No nodes found for",r),r.edges().length>0&&t.info("Recursive edges",r.edge(r.edges()[0]));let f=s.insert("g").attr("class","clusters"),E=s.insert("g").attr("class","edgePaths"),N=s.insert("g").attr("class","edgeLabels"),p=s.insert("g").attr("class","nodes");await Promise.all(r.nodes().map(async function(g){let a=r.node(g);if(o!==void 0){let u=JSON.parse(JSON.stringify(o.clusterData));t.trace(`Setting data for parent cluster XXX + Node.id = `,g,` + data=`,u.height,` +Parent cluster`,o.height),r.setNode(o.id,u),r.parent(g)||(t.trace("Setting parent",g,o.id),r.setParent(g,o.id,u))}if(t.info("(Insert) Node XXX"+g+": "+JSON.stringify(r.node(g))),a==null?void 0:a.clusterNode){t.info("Cluster identified XBX",g,a.width,r.node(g));let{ranksep:u,nodesep:m}=r.graph();a.graph.setGraph({...a.graph.graph(),ranksep:u+25,nodesep:m});let y=await R(p,a.graph,n,d,r.node(g),l),x=y.elem;K(a,x),a.diff=y.diff||0,t.info("New compound node after recursive render XAX",g,"width",a.width,"height",a.height),_(x,a)}else r.children(g).length>0?(t.trace("Cluster - the non recursive path XBX",g,a.id,a,a.width,"Graph:",r),t.trace(S(a.id,r)),c.set(a.id,{id:S(a.id,r),node:a})):(t.trace("Node - the non recursive path XAX",g,p,r.node(g),i),await Y(p,r.node(g),{config:l,dir:i}))})),await w(async()=>{let g=r.edges().map(async function(a){let u=r.edge(a.v,a.w,a.name);t.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a)),t.info("Edge "+a.v+" -> "+a.w+": ",a," ",JSON.stringify(r.edge(a))),t.info("Fix",c,"ids:",a.v,a.w,"Translating: ",c.get(a.v),c.get(a.w)),await W(N,u)});await Promise.all(g)},"processEdges")(),t.info("Graph before layout:",JSON.stringify(X(r))),t.info("############################################# XXX"),t.info("### Layout ### XXX"),t.info("############################################# XXX"),L(r),t.info("Graph after layout:",JSON.stringify(X(r)));let h=0,{subGraphTitleTotalMargin:v}=j(l);return await Promise.all(ie(r).map(async function(g){var u;let a=r.node(g);if(t.info("Position XBX => "+g+": ("+a.x,","+a.y,") width: ",a.width," height: ",a.height),a==null?void 0:a.clusterNode)a.y+=v,t.info("A tainted cluster node XBX1",g,a.id,a.width,a.height,a.x,a.y,r.parent(g)),c.get(a.id).node=a,k(a);else if(r.children(g).length>0){t.info("A pure cluster node XBX1",g,a.id,a.x,a.y,a.width,a.height,r.parent(g)),a.height+=v,r.node(a.parentId);let m=(a==null?void 0:a.padding)/2||0,y=((u=a==null?void 0:a.labelBBox)==null?void 0:u.height)||0,x=y-m||0;t.debug("OffsetY",x,"labelHeight",y,"halfPadding",m),await H(f,a),c.get(a.id).node=a}else{let m=r.node(a.parentId);a.y+=v/2,t.info("A regular node XBX1 - using the padding",a.id,"parent",a.parentId,a.width,a.height,a.x,a.y,"offsetY",a.offsetY,"parent",m,m==null?void 0:m.offsetY,a),k(a)}})),r.edges().forEach(function(g){let a=r.edge(g);t.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(a),a),a.points.forEach(u=>u.y+=v/2),Q(a,V(E,a,c,n,r.node(g.v),r.node(g.w),d))}),r.nodes().forEach(function(g){let a=r.node(g);t.info(g,a.type,a.diff),a.isGroup&&(h=a.diff)}),t.warn("Returning from recursive render XAX",s,h),{elem:s,diff:h}},"recursiveRender"),de=w(async(e,r)=>{var l,i,s,f,E,N;let n=new D({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((l=e.config)==null?void 0:l.nodeSpacing)||((s=(i=e.config)==null?void 0:i.flowchart)==null?void 0:s.nodeSpacing)||e.nodeSpacing,ranksep:((f=e.config)==null?void 0:f.rankSpacing)||((N=(E=e.config)==null?void 0:E.flowchart)==null?void 0:N.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),d=r.select("g");U(d,e.markers,e.type,e.diagramId),z(),Z(),q(),ne(),e.nodes.forEach(p=>{n.setNode(p.id,{...p}),p.parentId&&n.setParent(p.id,p.parentId)}),t.debug("Edges:",e.edges),e.edges.forEach(p=>{if(p.start===p.end){let h=p.start,v=h+"---"+h+"---1",g=h+"---"+h+"---2",a=n.node(h);n.setNode(v,{domId:v,id:v,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(v,a.parentId),n.setNode(g,{domId:g,id:g,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(g,a.parentId);let u=structuredClone(p),m=structuredClone(p),y=structuredClone(p);u.label="",u.arrowTypeEnd="none",u.id=h+"-cyclic-special-1",m.arrowTypeStart="none",m.arrowTypeEnd="none",m.id=h+"-cyclic-special-mid",y.label="",a.isGroup&&(u.fromCluster=h,y.toCluster=h),y.id=h+"-cyclic-special-2",y.arrowTypeStart="none",n.setEdge(h,v,u,h+"-cyclic-special-0"),n.setEdge(v,g,m,h+"-cyclic-special-1"),n.setEdge(g,h,y,h+"-cyc2?r[2]:void 0;for(o&&Wn(r[0],r[1],o)&&(t=1);++e-1?o[i?r[a]:a]:void 0}}var lr=vr,pr=Math.max;function mr(n,r,e){var t=n==null?0:n.length;if(!t)return-1;var o=e==null?0:Jn(e);return o<0&&(o=pr(t+o,0)),$n(n,S(r,3),o)}var D=lr(mr);function wr(n,r){return n==null?n:Kn(n,on(r),tn)}var br=wr;function yr(n,r){return n&&an(n,on(r))}var xr=yr;function kr(n,r){return n>r}var Er=kr,Or=Object.prototype.hasOwnProperty;function jr(n,r){return n!=null&&Or.call(n,r)}var _r=jr;function Pr(n,r){return n!=null&&tr(n,r,_r)}var cn=Pr;function Nr(n,r){var e={};return r=S(r,3),an(n,function(t,o,i){Xn(e,o,r(t,o,i))}),e}var G=Nr;function Rr(n){return n&&n.length?un(n,Hn,Er):void 0}var y=Rr;function Mr(n,r){return n&&n.length?un(n,S(r,2),ir):void 0}var F=Mr,Cr=or("length"),fn="\\ud800-\\udfff",Lr="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Sr="\\ufe0e\\ufe0f",Tr="["+fn+"]",V="["+Lr+"]",A="\\ud83c[\\udffb-\\udfff]",Gr="(?:"+V+"|"+A+")",sn="[^"+fn+"]",hn="(?:\\ud83c[\\udde6-\\uddff]){2}",gn="[\\ud800-\\udbff][\\udc00-\\udfff]",Br="\\u200d",vn=Gr+"?",ln="["+Sr+"]?",qr="(?:"+Br+"(?:"+[sn,hn,gn].join("|")+")"+ln+vn+")*",zr=ln+vn+qr,Ir="(?:"+[sn+V+"?",V,hn,gn,Tr].join("|")+")",pn=RegExp(A+"(?="+A+")|"+Ir+zr,"g");function Dr(n){for(var r=pn.lastIndex=0;pn.test(n);)++r;return r}var Fr=Dr;function Vr(n){return rr(n)?Fr(n):Cr(n)}var Ar=Vr,Jr="[object Map]",Hr="[object Set]";function Kr(n){if(n==null)return 0;if(rn(n))return ar(n)?Ar(n):n.length;var r=Un(n);return r==Jr||r==Hr?n.size:Qn(n).length}var Qr=Kr,Ur=0;function Wr(n){var r=++Ur;return An(n)+r}var J=Wr;function Xr(n,r,e){for(var t=-1,o=n.length,i=r.length,a={};++t0;--u)if(a=r[u].dequeue(),a){t=t.concat(H(n,r,e,a,!0));break}}}return t}function H(n,r,e,t,o){var i=o?[]:void 0;return f(n.inEdges(t.v),function(a){var u=n.edge(a),c=n.node(a.v);o&&i.push({v:a.v,w:a.w}),c.out-=u,K(r,e,c)}),f(n.outEdges(t.v),function(a){var u=n.edge(a),c=a.w,d=n.node(c);d.in-=u,K(r,e,d)}),n.removeNode(t.v),i}function ie(n,r){var e=new b,t=0,o=0;f(n.nodes(),function(u){e.setNode(u,{v:u,in:0,out:0})}),f(n.edges(),function(u){var c=e.edge(u.v,u.w)||0,d=r(u),s=c+d;e.setEdge(u.v,u.w,s),o=Math.max(o,e.node(u.v).out+=d),t=Math.max(t,e.node(u.w).in+=d)});var i=E(o+t+3).map(function(){return new ne}),a=t+1;return f(e.nodes(),function(u){K(i,a,e.node(u))}),{graph:e,buckets:i,zeroIdx:a}}function K(n,r,e){e.out?e.in?n[e.out-e.in+r].enqueue(e):n[n.length-1].enqueue(e):n[0].enqueue(e)}function ae(n){f(n.graph().acyclicer==="greedy"?te(n,r(n)):ue(n),function(e){var t=n.edge(e);n.removeEdge(e),t.forwardName=e.name,t.reversed=!0,n.setEdge(e.w,e.v,t,J("rev"))});function r(e){return function(t){return e.edge(t).weight}}}function ue(n){var r=[],e={},t={};function o(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,e[i]=!0,f(n.outEdges(i),function(a){Object.prototype.hasOwnProperty.call(e,a.w)?r.push(a):o(a.w)}),delete e[i])}return f(n.nodes(),o),r}function de(n){f(n.edges(),function(r){var e=n.edge(r);if(e.reversed){n.removeEdge(r);var t=e.forwardName;delete e.reversed,delete e.forwardName,n.setEdge(r.w,r.v,e,t)}})}function O(n,r,e,t){var o;do o=J(t);while(n.hasNode(o));return e.dummy=r,n.setNode(o,e),o}function ce(n){var r=new b().setGraph(n.graph());return f(n.nodes(),function(e){r.setNode(e,n.node(e))}),f(n.edges(),function(e){var t=r.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);r.setEdge(e.v,e.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),r}function wn(n){var r=new b({multigraph:n.isMultigraph()}).setGraph(n.graph());return f(n.nodes(),function(e){n.children(e).length||r.setNode(e,n.node(e))}),f(n.edges(),function(e){r.setEdge(e,n.edge(e))}),r}function bn(n,r){var e=n.x,t=n.y,o=r.x-e,i=r.y-t,a=n.width/2,u=n.height/2;if(!o&&!i)throw Error("Not possible to find intersection inside of the rectangle");var c,d;return Math.abs(i)*a>Math.abs(o)*u?(i<0&&(u=-u),c=u*o/i,d=u):(o<0&&(a=-a),c=a,d=a*i/o),{x:e+c,y:t+d}}function B(n){var r=p(E(xn(n)+1),function(){return[]});return f(n.nodes(),function(e){var t=n.node(e),o=t.rank;w(o)||(r[o][t.order]=e)}),r}function fe(n){var r=N(p(n.nodes(),function(e){return n.node(e).rank}));f(n.nodes(),function(e){var t=n.node(e);cn(t,"rank")&&(t.rank-=r)})}function se(n){var r=N(p(n.nodes(),function(i){return n.node(i).rank})),e=[];f(n.nodes(),function(i){var a=n.node(i).rank-r;e[a]||(e[a]=[]),e[a].push(i)});var t=0,o=n.graph().nodeRankFactor;f(e,function(i,a){w(i)&&a%o!==0?--t:t&&f(i,function(u){n.node(u).rank+=t})})}function yn(n,r,e,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=e,o.order=t),O(n,"border",o,r)}function xn(n){return y(p(n.nodes(),function(r){var e=n.node(r).rank;if(!w(e))return e}))}function he(n,r){var e={lhs:[],rhs:[]};return f(n,function(t){r(t)?e.lhs.push(t):e.rhs.push(t)}),e}function ge(n,r){var e=en();try{return r()}finally{console.log(n+" time: "+(en()-e)+"ms")}}function ve(n,r){return r()}function le(n){function r(e){var t=n.children(e),o=n.node(e);if(t.length&&f(t,r),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,a=o.maxRank+1;ia.lim&&(u=a,c=!0),F(_(r.edges(),function(d){return c===Sn(n,n.node(d.v),u)&&c!==Sn(n,n.node(d.w),u)}),function(d){return M(r,d)})}function Ln(n,r,e,t){var o=e.v,i=e.w;n.removeEdge(o,i),n.setEdge(t.v,t.w,{}),Y(n),X(n,r),Me(n,r)}function Me(n,r){var e=Ne(n,D(n.nodes(),function(t){return!r.node(t).parent}));e=e.slice(1),f(e,function(t){var o=n.node(t).parent,i=r.edge(t,o),a=!1;i||(i=r.edge(o,t),a=!0),r.node(t).rank=r.node(o).rank+(a?i.minlen:-i.minlen)})}function Ce(n,r,e){return n.hasEdge(r,e)}function Sn(n,r,e){return e.low<=r.lim&&r.lim<=e.lim}function Le(n){switch(n.graph().ranker){case"network-simplex":Tn(n);break;case"tight-tree":Te(n);break;case"longest-path":Se(n);break;default:Tn(n)}}var Se=W;function Te(n){W(n),jn(n)}function Tn(n){x(n)}function Ge(n){var r=O(n,"root",{},"_root"),e=Be(n),t=y(k(e))-1,o=2*t+1;n.graph().nestingRoot=r,f(n.edges(),function(a){n.edge(a).minlen*=o});var i=qe(n)+1;f(n.children(),function(a){Gn(n,r,o,i,t,e,a)}),n.graph().nodeRankFactor=o}function Gn(n,r,e,t,o,i,a){var u=n.children(a);if(!u.length){a!==r&&n.setEdge(r,a,{weight:0,minlen:e});return}var c=yn(n,"_bt"),d=yn(n,"_bb"),s=n.node(a);n.setParent(c,a),s.borderTop=c,n.setParent(d,a),s.borderBottom=d,f(u,function(h){Gn(n,r,e,t,o,i,h);var g=n.node(h),l=g.borderTop?g.borderTop:h,v=g.borderBottom?g.borderBottom:h,m=g.borderTop?t:2*t,j=l===v?o-i[a]+1:1;n.setEdge(c,l,{weight:m,minlen:j,nestingEdge:!0}),n.setEdge(v,d,{weight:m,minlen:j,nestingEdge:!0})}),n.parent(a)||n.setEdge(r,c,{weight:0,minlen:o+i[a]})}function Be(n){var r={};function e(t,o){var i=n.children(t);i&&i.length&&f(i,function(a){e(a,o+1)}),r[t]=o}return f(n.children(),function(t){e(t,1)}),r}function qe(n){return C(n.edges(),function(r,e){return r+n.edge(e).weight},0)}function ze(n){var r=n.graph();n.removeNode(r.nestingRoot),delete r.nestingRoot,f(n.edges(),function(e){n.edge(e).nestingEdge&&n.removeEdge(e)})}function Ie(n,r,e){var t={},o;f(e,function(i){for(var a=n.parent(i),u,c;a;){if(u=n.parent(a),u?(c=t[u],t[u]=a):(c=o,o=a),c&&c!==a){r.setEdge(c,a);return}a=u}})}function De(n,r,e){var t=Fe(n),o=new b({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return n.node(i)});return f(n.nodes(),function(i){var a=n.node(i),u=n.parent(i);(a.rank===r||a.minRank<=r&&r<=a.maxRank)&&(o.setNode(i),o.setParent(i,u||t),f(n[e](i),function(c){var d=c.v===i?c.w:c.v,s=o.edge(d,i),h=w(s)?0:s.weight;o.setEdge(d,i,{weight:n.edge(c).weight+h})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&o.setNode(i,{borderLeft:a.borderLeft[r],borderRight:a.borderRight[r]}))}),o}function Fe(n){for(var r;n.hasNode(r=J("_root")););return r}function Ve(n,r){for(var e=0,t=1;t0;)s%2&&(h+=u[s+1]),s=s-1>>1,u[s]+=d.weight;c+=d.weight*h})),c}function Je(n){var r={},e=_(n.nodes(),function(i){return!n.children(i).length}),t=p(E(y(p(e,function(i){return n.node(i).rank}))+1),function(){return[]});function o(i){cn(r,i)||(r[i]=!0,t[n.node(i).rank].push(i),f(n.successors(i),o))}return f(R(e,function(i){return n.node(i).rank}),o),t}function He(n,r){return p(r,function(e){var t=n.inEdges(e);if(t.length){var o=C(t,function(i,a){var u=n.edge(a),c=n.node(a.v);return{sum:i.sum+u.weight*c.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:e}})}function Ke(n,r){var e={};return f(n,function(t,o){var i=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:o};w(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),f(r.edges(),function(t){var o=e[t.v],i=e[t.w];!w(o)&&!w(i)&&(i.indegree++,o.out.push(e[t.w]))}),Qe(_(e,function(t){return!t.indegree}))}function Qe(n){var r=[];function e(i){return function(a){a.merged||(w(a.barycenter)||w(i.barycenter)||a.barycenter>=i.barycenter)&&Ue(i,a)}}function t(i){return function(a){a.in.push(i),--a.indegree===0&&n.push(a)}}for(;n.length;){var o=n.pop();r.push(o),f(o.in.reverse(),e(o)),f(o.out,t(o))}return p(_(r,function(i){return!i.merged}),function(i){return L(i,["vs","i","barycenter","weight"])})}function Ue(n,r){var e=0,t=0;n.weight&&(e+=n.barycenter*n.weight,t+=n.weight),r.weight&&(e+=r.barycenter*r.weight,t+=r.weight),n.vs=r.vs.concat(n.vs),n.barycenter=e/t,n.weight=t,n.i=Math.min(r.i,n.i),r.merged=!0}function We(n,r){var e=he(n,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=e.lhs,o=R(e.rhs,function(s){return-s.i}),i=[],a=0,u=0,c=0;t.sort(Xe(!!r)),c=Bn(i,o,c),f(t,function(s){c+=s.vs.length,i.push(s.vs),a+=s.barycenter*s.weight,u+=s.weight,c=Bn(i,o,c)});var d={vs:P(i)};return u&&(d.barycenter=a/u,d.weight=u),d}function Bn(n,r,e){for(var t;r.length&&(t=T(r)).i<=e;)r.pop(),n.push(t.vs),e++;return e}function Xe(n){return function(r,e){return r.barycentere.barycenter?1:n?e.i-r.i:r.i-e.i}}function qn(n,r,e,t){var o=n.children(r),i=n.node(r),a=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,c={};a&&(o=_(o,function(v){return v!==a&&v!==u}));var d=He(n,o);f(d,function(v){if(n.children(v.v).length){var m=qn(n,v.v,e,t);c[v.v]=m,Object.prototype.hasOwnProperty.call(m,"barycenter")&&Ze(v,m)}});var s=Ke(d,e);Ye(s,c);var h=We(s,t);if(a&&(h.vs=P([a,h.vs,u]),n.predecessors(a).length)){var g=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+g.order+l.order)/(h.weight+2),h.weight+=2}return h}function Ye(n,r){f(n,function(e){e.vs=P(e.vs.map(function(t){return r[t]?r[t].vs:t}))})}function Ze(n,r){w(n.barycenter)?(n.barycenter=r.barycenter,n.weight=r.weight):(n.barycenter=(n.barycenter*n.weight+r.barycenter*r.weight)/(n.weight+r.weight),n.weight+=r.weight)}function $e(n){var r=xn(n),e=zn(n,E(1,r+1),"inEdges"),t=zn(n,E(r-1,-1,-1),"outEdges"),o=Je(n);In(n,o);for(var i=1/0,a,u=0,c=0;c<4;++u,++c){nt(u%2?e:t,u%4>=2),o=B(n);var d=Ve(n,o);da||u>r[c].lim));for(d=c,c=t;(c=n.parent(c))!==d;)i.push(c);return{path:o.concat(i.reverse()),lca:d}}function tt(n){var r={},e=0;function t(o){var i=e;f(n.children(o),t),r[o]={low:i,lim:e++}}return f(n.children(),t),r}function ot(n,r){var e={};function t(o,i){var a=0,u=0,c=o.length,d=T(i);return f(i,function(s,h){var g=at(n,s),l=g?n.node(g).order:c;(g||s===d)&&(f(i.slice(u,h+1),function(v){f(n.predecessors(v),function(m){var j=n.node(m),nn=j.order;(nnd)&&Dn(e,g,s)})})}function o(i,a){var u=-1,c,d=0;return f(a,function(s,h){if(n.node(s).dummy==="border"){var g=n.predecessors(s);g.length&&(c=n.node(g[0]).order,t(a,d,h,u,c),d=h,u=c)}t(a,d,a.length,c,i.length)}),a}return C(r,o),e}function at(n,r){if(n.node(r).dummy)return D(n.predecessors(r),function(e){return n.node(e).dummy})}function Dn(n,r,e){if(r>e){var t=r;r=e,e=t}Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=n[r];Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function ut(n,r,e){if(r>e){var t=r;r=e,e=t}return!!n[r]&&Object.prototype.hasOwnProperty.call(n[r],e)}function dt(n,r,e,t){var o={},i={},a={};return f(r,function(u){f(u,function(c,d){o[c]=c,i[c]=c,a[c]=d})}),f(r,function(u){var c=-1;f(u,function(d){var s=t(d);if(s.length){s=R(s,function(m){return a[m]});for(var h=(s.length-1)/2,g=Math.floor(h),l=Math.ceil(h);g<=l;++g){var v=s[g];i[d]===d&&c{var t=e(" buildLayoutGraph",()=>Mt(n));e(" runLayout",()=>yt(t,e)),e(" updateInputGraph",()=>xt(n,t))})}function yt(n,r){r(" makeSpaceForEdgeLabels",()=>Ct(n)),r(" removeSelfEdges",()=>Dt(n)),r(" acyclic",()=>ae(n)),r(" nestingGraph.run",()=>Ge(n)),r(" rank",()=>Le(wn(n))),r(" injectEdgeLabelProxies",()=>Lt(n)),r(" removeEmptyRanks",()=>se(n)),r(" nestingGraph.cleanup",()=>ze(n)),r(" normalizeRanks",()=>fe(n)),r(" assignRankMinMax",()=>St(n)),r(" removeEdgeLabelProxies",()=>Tt(n)),r(" normalize.run",()=>ye(n)),r(" parentDummyChains",()=>rt(n)),r(" addBorderSegments",()=>le(n)),r(" order",()=>$e(n)),r(" insertSelfEdges",()=>Ft(n)),r(" adjustCoordinateSystem",()=>pe(n)),r(" position",()=>mt(n)),r(" positionSelfEdges",()=>Vt(n)),r(" removeBorderNodes",()=>It(n)),r(" normalize.undo",()=>ke(n)),r(" fixupEdgeLabelCoords",()=>qt(n)),r(" undoCoordinateSystem",()=>me(n)),r(" translateGraph",()=>Gt(n)),r(" assignNodeIntersects",()=>Bt(n)),r(" reversePoints",()=>zt(n)),r(" acyclic.undo",()=>de(n))}function xt(n,r){f(n.nodes(),function(e){var t=n.node(e),o=r.node(e);t&&(t.x=o.x,t.y=o.y,r.children(e).length&&(t.width=o.width,t.height=o.height))}),f(n.edges(),function(e){var t=n.edge(e),o=r.edge(e);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),n.graph().width=r.graph().width,n.graph().height=r.graph().height}var kt=["nodesep","edgesep","ranksep","marginx","marginy"],Et={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ot=["acyclicer","ranker","rankdir","align"],jt=["width","height"],_t={width:0,height:0},Pt=["minlen","weight","width","height","labeloffset"],Nt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Rt=["labelpos"];function Mt(n){var r=new b({multigraph:!0,compound:!0}),e=$(n.graph());return r.setGraph(I({},Et,Z(e,kt),L(e,Ot))),f(n.nodes(),function(t){var o=$(n.node(t));r.setNode(t,hr(Z(o,jt),_t)),r.setParent(t,n.parent(t))}),f(n.edges(),function(t){var o=$(n.edge(t));r.setEdge(t,I({},Nt,Z(o,Pt),L(o,Rt)))}),r}function Ct(n){var r=n.graph();r.ranksep/=2,f(n.edges(),function(e){var t=n.edge(e);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Lt(n){f(n.edges(),function(r){var e=n.edge(r);if(e.width&&e.height){var t=n.node(r.v);O(n,"edge-proxy",{rank:(n.node(r.w).rank-t.rank)/2+t.rank,e:r},"_ep")}})}function St(n){var r=0;f(n.nodes(),function(e){var t=n.node(e);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,r=y(r,t.maxRank))}),n.graph().maxRank=r}function Tt(n){f(n.nodes(),function(r){var e=n.node(r);e.dummy==="edge-proxy"&&(n.edge(e.e).labelRank=e.rank,n.removeNode(r))})}function Gt(n){var r=1/0,e=0,t=1/0,o=0,i=n.graph(),a=i.marginx||0,u=i.marginy||0;function c(d){var s=d.x,h=d.y,g=d.width,l=d.height;r=Math.min(r,s-g/2),e=Math.max(e,s+g/2),t=Math.min(t,h-l/2),o=Math.max(o,h+l/2)}f(n.nodes(),function(d){c(n.node(d))}),f(n.edges(),function(d){var s=n.edge(d);Object.prototype.hasOwnProperty.call(s,"x")&&c(s)}),r-=a,t-=u,f(n.nodes(),function(d){var s=n.node(d);s.x-=r,s.y-=t}),f(n.edges(),function(d){var s=n.edge(d);f(s.points,function(h){h.x-=r,h.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=r),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),i.width=e-r+a,i.height=o-t+u}function Bt(n){f(n.edges(),function(r){var e=n.edge(r),t=n.node(r.v),o=n.node(r.w),i,a;e.points?(i=e.points[0],a=e.points[e.points.length-1]):(e.points=[],i=o,a=t),e.points.unshift(bn(t,i)),e.points.push(bn(o,a))})}function qt(n){f(n.edges(),function(r){var e=n.edge(r);if(Object.prototype.hasOwnProperty.call(e,"x"))switch((e.labelpos==="l"||e.labelpos==="r")&&(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset;break}})}function zt(n){f(n.edges(),function(r){var e=n.edge(r);e.reversed&&e.points.reverse()})}function It(n){f(n.nodes(),function(r){if(n.children(r).length){var e=n.node(r),t=n.node(e.borderTop),o=n.node(e.borderBottom),i=n.node(T(e.borderLeft)),a=n.node(T(e.borderRight));e.width=Math.abs(a.x-i.x),e.height=Math.abs(o.y-t.y),e.x=i.x+e.width/2,e.y=t.y+e.height/2}}),f(n.nodes(),function(r){n.node(r).dummy==="border"&&n.removeNode(r)})}function Dt(n){f(n.edges(),function(r){if(r.v===r.w){var e=n.node(r.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:r,label:n.edge(r)}),n.removeEdge(r)}})}function Ft(n){f(B(n),function(r){var e=0;f(r,function(t,o){var i=n.node(t);i.order=o+e,f(i.selfEdges,function(a){O(n,"selfedge",{width:a.label.width,height:a.label.height,rank:i.rank,order:o+ ++e,e:a.e,label:a.label},"_se")}),delete i.selfEdges})})}function Vt(n){f(n.nodes(),function(r){var e=n.node(r);if(e.dummy==="selfedge"){var t=n.node(e.e.v),o=t.x+t.width/2,i=t.y,a=e.x-o,u=t.height/2;n.setEdge(e.e,e.label),n.removeNode(r),e.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],e.label.x=e.x,e.label.y=e.y}})}function Z(n,r){return G(L(n,r),Number)}function $(n){var r={};return f(n,function(e,t){r[t.toLowerCase()]=e}),r}export{bt as t}; diff --git a/docs/assets/dark-plus-Dnz8nXIg.js b/docs/assets/dark-plus-Dnz8nXIg.js new file mode 100644 index 0000000..e1c6f4d --- /dev/null +++ b/docs/assets/dark-plus-Dnz8nXIg.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/dart-E-aEgwbd.js b/docs/assets/dart-E-aEgwbd.js new file mode 100644 index 0000000..3ea4e5d --- /dev/null +++ b/docs/assets/dart-E-aEgwbd.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Dart","name":"dart","patterns":[{"match":"^(#!.*)$","name":"meta.preprocessor.script.dart"},{"begin":"^\\\\w*\\\\b(augment\\\\s+library|library|import\\\\s+augment|import|part\\\\s+of|part|export)\\\\b","beginCaptures":{"0":{"name":"keyword.other.import.dart"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.dart"}},"name":"meta.declaration.dart","patterns":[{"include":"#strings"},{"include":"#comments"},{"match":"\\\\b(as|show|hide)\\\\b","name":"keyword.other.import.dart"},{"match":"\\\\b(if)\\\\b","name":"keyword.control.dart"}]},{"include":"#comments"},{"include":"#punctuation"},{"include":"#annotations"},{"include":"#keywords"},{"include":"#constants-and-special-vars"},{"include":"#operators"},{"include":"#strings"}],"repository":{"annotations":{"patterns":[{"match":"@[A-Za-z]+","name":"storage.type.annotation.dart"}]},"class-identifier":{"patterns":[{"match":"(??A-Z_a-z]|,\\\\s*|\\\\s+extends\\\\s+)+>)?[!?]?\\\\("}]},"keywords":{"patterns":[{"match":"(?>>?|[\\\\&^|~])","name":"keyword.operator.bitwise.dart"},{"match":"(([\\\\&^|]|<<|>>>?)=)","name":"keyword.operator.assignment.bitwise.dart"},{"match":"(=>)","name":"keyword.operator.closure.dart"},{"match":"(==|!=|<=?|>=?)","name":"keyword.operator.comparison.dart"},{"match":"(([-%*+/~])=)","name":"keyword.operator.assignment.arithmetic.dart"},{"match":"(=)","name":"keyword.operator.assignment.dart"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.dart"},{"match":"([-*+/]|~/|%)","name":"keyword.operator.arithmetic.dart"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.dart"}]},"punctuation":{"patterns":[{"match":",","name":"punctuation.comma.dart"},{"match":";","name":"punctuation.terminator.dart"},{"match":"\\\\.","name":"punctuation.dot.dart"}]},"string-interp":{"patterns":[{"captures":{"1":{"name":"variable.parameter.dart"}},"match":"\\\\$([0-9A-Z_a-z]+)","name":"meta.embedded.expression.dart"},{"begin":"\\\\$\\\\{","end":"}","name":"meta.embedded.expression.dart","patterns":[{"include":"#expression"}]},{"match":"\\\\\\\\.","name":"constant.character.escape.dart"}]},"strings":{"patterns":[{"begin":"(?)","endCaptures":{"1":{"name":"other.source.dart"}},"patterns":[{"include":"#class-identifier"},{"match":","},{"match":"extends","name":"keyword.declaration.dart"},{"include":"#comments"}]}},"scopeName":"source.dart"}'))];export{e as default}; diff --git a/docs/assets/data-grid-overlay-editor-Cm2nyRoH.js b/docs/assets/data-grid-overlay-editor-Cm2nyRoH.js new file mode 100644 index 0000000..c36f583 --- /dev/null +++ b/docs/assets/data-grid-overlay-editor-Cm2nyRoH.js @@ -0,0 +1 @@ +import{s as z}from"./chunk-LvLJmgfZ.js";import{t as J}from"./react-BGmjiNul.js";import{t as Q}from"./react-dom-C9fstfnp.js";import{_ as P,i as U,n as Z,t as ee,v as te,y as re}from"./click-outside-container-D4TDQXpY.js";import{t as ie}from"./dist-B-NVryHt.js";var ae=Q(),r=z(J(),1),ne=()=>t=>t.targetX,oe=()=>t=>t.targetY,le=()=>t=>t.targetWidth,de=()=>t=>t.targetHeight,se=()=>t=>t.targetY+10,ue=()=>t=>Math.max(0,(t.targetHeight-28)/2);const ce=ie("div")({name:"DataGridOverlayEditorStyle",class:"gdg-d19meir1",propsAsIs:!1,vars:{"d19meir1-0":[oe(),"px"],"d19meir1-1":[ne(),"px"],"d19meir1-2":[le(),"px"],"d19meir1-3":[de(),"px"],"d19meir1-4":[se(),"px"],"d19meir1-5":[ue(),"px"]}});function ge(){let[t,n]=r.useState();return[t??void 0,n]}function me(){let[t,n]=ge(),[a,f]=r.useState(0),[v,b]=r.useState(!0);return r.useLayoutEffect(()=>{if(t===void 0||!("IntersectionObserver"in window))return;let o=new IntersectionObserver(l=>{l.length!==0&&b(l[0].isIntersecting)},{threshold:1});return o.observe(t),()=>o.disconnect()},[t]),r.useEffect(()=>{if(v||t===void 0)return;let o,l=()=>{let{right:k}=t.getBoundingClientRect();f(x=>Math.min(x+window.innerWidth-k-10,0)),o=requestAnimationFrame(l)};return o=requestAnimationFrame(l),()=>{o!==void 0&&cancelAnimationFrame(o)}},[t,v]),{ref:n,style:r.useMemo(()=>({transform:`translateX(${a}px)`}),[a])}}var ve=t=>{let{target:n,content:a,onFinishEditing:f,forceEditMode:v,initialValue:b,imageEditorOverride:o,markdownDivCreateNode:l,highlight:k,className:x,theme:C,id:V,cell:w,bloom:c,validateCell:d,getCellRenderer:M,provideEditor:p,isOutsideClick:W,customEventTarget:X}=t,[s,Y]=r.useState(v?a:void 0),O=r.useRef(s??a);O.current=s??a;let[h,N]=r.useState(()=>d===void 0?!0:!(P(a)&&(d==null?void 0:d(w,a,O.current))===!1)),g=r.useCallback((e,i)=>{f(h?e:void 0,i)},[h,f]),q=r.useCallback(e=>{if(d!==void 0&&e!==void 0&&P(e)){let i=d(w,e,O.current);i===!1?N(!1):(typeof i=="object"&&(e=i),N(!0))}Y(e)},[w,d]),y=r.useRef(!1),m=r.useRef(void 0),B=r.useCallback(()=>{g(s,[0,0]),y.current=!0},[s,g]),G=r.useCallback((e,i)=>{g(e,i??m.current??[0,0]),y.current=!0},[g]),_=r.useCallback(async e=>{let i=!1;e.key==="Escape"?(e.stopPropagation(),e.preventDefault(),m.current=[0,0]):e.key==="Enter"&&!e.shiftKey?(e.stopPropagation(),e.preventDefault(),m.current=[0,1],i=!0):e.key==="Tab"&&(e.stopPropagation(),e.preventDefault(),m.current=[e.shiftKey?-1:1,0],i=!0),window.setTimeout(()=>{!y.current&&m.current!==void 0&&(g(i?s:void 0,m.current),y.current=!0)},0)},[g,s]),D=s??a,[u,j]=r.useMemo(()=>{var i,K;if(te(a))return[];let e=p==null?void 0:p(a);return e===void 0?[(K=(i=M(a))==null?void 0:i.provideEditor)==null?void 0:K.call(i,a),!1]:[e,!1]},[a,M,p]),{ref:L,style:$}=me(),R=!0,F,I=!0,E;if(u!==void 0){R=u.disablePadding!==!0,I=u.disableStyling!==!0;let e=re(u);e&&(E=u.styleOverride);let i=e?u.editor:u;F=r.createElement(i,{isHighlighted:k,onChange:q,value:D,initialValue:b,onFinishedEditing:G,validatedSelection:P(D)?D.selectionRange:void 0,forceEditMode:v,target:n,imageEditorOverride:o,markdownDivCreateNode:l,isValid:h,theme:C})}E={...E,...$};let A=document.getElementById("portal");if(A===null)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `

` as the last child of your ``.'),null;let S=I?"gdg-style":"gdg-unstyle";h||(S+=" gdg-invalid"),R&&(S+=" gdg-pad");let H=(c==null?void 0:c[0])??1,T=(c==null?void 0:c[1])??1;return(0,ae.createPortal)(r.createElement(Z.Provider,{value:C},r.createElement(ee,{style:U(C),className:x,onClickOutside:B,isOutsideClick:W,customEventTarget:X},r.createElement(ce,{ref:L,id:V,className:S,style:E,as:j===!0?"label":void 0,targetX:n.x-H,targetY:n.y-T,targetWidth:n.width+H*2,targetHeight:n.height+T*2},r.createElement("div",{className:"gdg-clip-region",onKeyDown:_},F)))),A)};export{ve as default}; diff --git a/docs/assets/database-zap-CaVvnK_o.js b/docs/assets/database-zap-CaVvnK_o.js new file mode 100644 index 0000000..f1e2937 --- /dev/null +++ b/docs/assets/database-zap-CaVvnK_o.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var e=a("database-zap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]);export{e as t}; diff --git a/docs/assets/datasource-CCq9qyVG.js b/docs/assets/datasource-CCq9qyVG.js new file mode 100644 index 0000000..20f332c --- /dev/null +++ b/docs/assets/datasource-CCq9qyVG.js @@ -0,0 +1,3 @@ +var x=Object.defineProperty;var A=(r,e,n)=>e in r?x(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var l=(r,e,n)=>A(r,typeof e!="symbol"?e+"":e,n);import{i as m}from"./useEvent-DlWF5OMa.js";import{Ct as I,Dn as E,Mn as T,Yr as C,gr as p,hi as M,ir as w,n as L,rr as O}from"./cells-CmJW_FeD.js";import{d as $}from"./hotkeys-uKX61F1_.js";import{t as P}from"./createLucideIcon-CW2xpJ57.js";import{t as R}from"./multi-map-CQd4MZr5.js";var D=P("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]),u,c;function S(r,e,n,a,i){var t={};return Object.keys(a).forEach(function(s){t[s]=a[s]}),t.enumerable=!!t.enumerable,t.configurable=!!t.configurable,("value"in t||t.initializer)&&(t.writable=!0),t=n.slice().reverse().reduce(function(s,o){return o(r,e,s)||s},t),i&&t.initializer!==void 0&&(t.value=t.initializer?t.initializer.call(i):void 0,t.initializer=void 0),t.initializer===void 0?(Object.defineProperty(r,e,t),null):t}var d=class{async getAttachments(r){return[]}asURI(r){return`${this.contextType}://${r}`}parseContextIds(r){let e=RegExp(`${this.mentionPrefix}([\\w-]+):\\/\\/([\\w./-]+)`,"g"),n=[...r.matchAll(e)],a=t=>t.slice(1),i=n.filter(([,t])=>t===this.contextType).map(([t])=>a(t));return[...new Set(i)]}createBasicCompletion(r,e){return{label:`${this.mentionPrefix}${r.uri.split("://")[1]}`,displayLabel:r.name,detail:(e==null?void 0:e.detail)||r.description,boost:(e==null?void 0:e.boost)||1,type:(e==null?void 0:e.type)||this.contextType,apply:`${this.mentionPrefix}${r.uri}`,section:(e==null?void 0:e.section)||this.title}}};let U=(u=C(),c=class{constructor(){l(this,"providers",new Set)}register(r){return this.providers.add(r),this}getProviders(){return this.providers}getProvider(r){return[...this.providers].find(e=>e.contextType===r)}getAllItems(){return[...this.providers].flatMap(r=>r.getItems())}parseAllContextIds(r){return[...this.providers].flatMap(e=>e.parseContextIds(r))}getContextInfo(r){let e=[],n=new Map(this.getAllItems().map(a=>[a.uri,a]));for(let a of r){let i=n.get(a);i&&e.push(i)}return e}formatContextForAI(r){let e=new Map(this.getAllItems().map(a=>[a.uri,a])),n=[];for(let a of r){let i=e.get(a);i&&n.push(i)}return n.length===0?"":n.map(a=>{var i;return((i=this.getProvider(a.type))==null?void 0:i.formatContext(a))||""}).join(` + +`)}async getAttachmentsForContext(r){let e=new Map(this.getAllItems().map(t=>[t.uri,t])),n=[];for(let t of r){let s=e.get(t);s&&n.push(s)}if(n.length===0)return[];let a=new R;for(let t of n){let s=t.type;a.add(s,t)}let i=[...a.entries()].map(async([t,s])=>{let o=this.getProvider(t);if(!o)return[];try{return await o.getAttachments(s)}catch(v){return $.error("Error getting attachments from provider",v),[]}});return(await Promise.all(i)).flat()}},S(c.prototype,"getAllItems",[u],Object.getOwnPropertyDescriptor(c.prototype,"getAllItems"),c.prototype),c);function f(r){return r.replaceAll("<","<").replaceAll(">",">")}function h(r){let{type:e,data:n,details:a}=r,i=`<${e}`;for(let[t,s]of Object.entries(n))if(s!==void 0){let o=f(typeof s=="object"&&s?JSON.stringify(s):String(s));i+=` ${t}="${o}"`}return i+=">",a&&(i+=f(a)),i+=``,i}const g={LOCAL_TABLE:7,REMOTE_TABLE:5,HIGH:4,MEDIUM:3,CELL_OUTPUT:2,LOW:2},y={ERROR:{name:"Error",rank:1},TABLE:{name:"Table",rank:2},DATA_SOURCES:{name:"Data Sources",rank:3},VARIABLE:{name:"Variable",rank:4},CELL_OUTPUT:{name:"Cell Output",rank:5},FILE:{name:"File",rank:6}};var _=M(),b="datasource",k=class extends d{constructor(e,n){super();l(this,"title","Datasource");l(this,"mentionPrefix","@");l(this,"contextType",b);this.connectionsMap=e,this.dataframes=[...n.values()].filter(a=>w(a)==="dataframe")}getItems(){return[...this.connectionsMap.values()].map(e=>{var i;let n="Database schema.",a={connection:e};return p.has(e.name)&&(a.tables=this.dataframes,n="Database schema and the dataframes that can be queried"),e.databases.length===0&&(((i=a.tables)==null?void 0:i.length)??0)===0?null:{uri:this.asURI(e.name),name:e.name,description:n,type:this.contextType,data:a}}).filter(Boolean)}formatContext(e){let n=e.data,{name:a,display_name:i,source:t,...s}=n.connection,o=s;return p.has(a)||(o={...s,engine_name:a}),h({type:this.contextType,data:{connection:o,tables:n.tables}})}formatCompletion(e){let n=e.data,a=n.connection,i=n.tables,t=a.name;return p.has(a.name)&&(t="In-Memory"),{label:`@${t}`,displayLabel:t,detail:T(a.dialect),boost:g.MEDIUM,type:this.contextType,section:y.DATA_SOURCES,info:()=>{let s=document.createElement("div");return s.classList.add("mo-cm-tooltip","docs-documentation"),(0,_.createRoot)(s).render(E(a,i)),s}}}};function z(r){var s;let e=(s=m.get(L(r)))==null?void 0:s.code;if(!e||e.trim()==="")return null;let[n,a,i]=I.sql.transformIn(e),t=m.get(O).connectionsMap.get(i.engine);return t?`@${b}://${t.name}`:null}export{h as a,D as c,y as i,z as n,d as o,g as r,U as s,k as t}; diff --git a/docs/assets/dates-CdsE1R40.js b/docs/assets/dates-CdsE1R40.js new file mode 100644 index 0000000..d023ff4 --- /dev/null +++ b/docs/assets/dates-CdsE1R40.js @@ -0,0 +1 @@ +var Lt=Object.defineProperty;var Ct=(n,t,e)=>t in n?Lt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var o=(n,t,e)=>Ct(n,typeof t!="symbol"?t+"":t,e);import{d as W}from"./hotkeys-uKX61F1_.js";import{a as Nt,i as Et,n as S,o as Qt,r as Gt,s as ct,t as x}from"./toDate-5JckKRQn.js";import{i as Z,n as Ft,r as A,t as lt}from"./en-US-DhMN8sxe.js";import{t as dt}from"./isValid-DhzaK-Y1.js";function ht(n,t,e){let r=x(n,e==null?void 0:e.in);return isNaN(t)?S((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function N(n,t){var c,h,y,b;let e=Z(),r=(t==null?void 0:t.weekStartsOn)??((h=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:h.weekStartsOn)??e.weekStartsOn??((b=(y=e.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,a=x(n,t==null?void 0:t.in),i=a.getDay(),s=(i=i.getTime()?r+1:e.getTime()>=c.getTime()?r:r-1}function mt(n,t){let e=x(n,t==null?void 0:t.in);return e.setHours(0,0,0,0),e}function Zt(n,t,e){let[r,a]=Ft(e==null?void 0:e.in,n,t),i=mt(r),s=mt(a),c=+i-A(i),h=+s-A(s);return Math.round((c-h)/Gt)}function $t(n,t){let e=wt(n,t),r=S((t==null?void 0:t.in)||n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),$(r)}function Ut(n,t){let e=x(n,t==null?void 0:t.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function It(n,t){let e=x(n,t==null?void 0:t.in);return Zt(e,Ut(e))+1}function ft(n,t){let e=x(n,t==null?void 0:t.in),r=$(e)-+$t(e);return Math.round(r/ct)+1}function j(n,t){var b,k,D,O;let e=x(n,t==null?void 0:t.in),r=e.getFullYear(),a=Z(),i=(t==null?void 0:t.firstWeekContainsDate)??((k=(b=t==null?void 0:t.locale)==null?void 0:b.options)==null?void 0:k.firstWeekContainsDate)??a.firstWeekContainsDate??((O=(D=a.locale)==null?void 0:D.options)==null?void 0:O.firstWeekContainsDate)??1,s=S((t==null?void 0:t.in)||n,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);let c=N(s,t),h=S((t==null?void 0:t.in)||n,0);h.setFullYear(r,0,i),h.setHours(0,0,0,0);let y=N(h,t);return+e>=+c?r+1:+e>=+y?r:r-1}function Bt(n,t){var s,c,h,y;let e=Z(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??e.firstWeekContainsDate??((y=(h=e.locale)==null?void 0:h.options)==null?void 0:y.firstWeekContainsDate)??1,a=j(n,t),i=S((t==null?void 0:t.in)||n,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),N(i,t)}function gt(n,t){let e=x(n,t==null?void 0:t.in),r=N(e,t)-+Bt(e,t);return Math.round(r/ct)+1}function d(n,t){return(n<0?"-":"")+Math.abs(n).toString().padStart(t,"0")}const E={y(n,t){let e=n.getFullYear(),r=e>0?e:1-e;return d(t==="yy"?r%100:r,t.length)},M(n,t){let e=n.getMonth();return t==="M"?String(e+1):d(e+1,2)},d(n,t){return d(n.getDate(),t.length)},a(n,t){let e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];default:return e==="am"?"a.m.":"p.m."}},h(n,t){return d(n.getHours()%12||12,t.length)},H(n,t){return d(n.getHours(),t.length)},m(n,t){return d(n.getMinutes(),t.length)},s(n,t){return d(n.getSeconds(),t.length)},S(n,t){let e=t.length,r=n.getMilliseconds();return d(Math.trunc(r*10**(e-3)),t.length)}};var U={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};const pt={G:function(n,t,e){let r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){let r=n.getFullYear(),a=r>0?r:1-r;return e.ordinalNumber(a,{unit:"year"})}return E.y(n,t)},Y:function(n,t,e,r){let a=j(n,r),i=a>0?a:1-a;return t==="YY"?d(i%100,2):t==="Yo"?e.ordinalNumber(i,{unit:"year"}):d(i,t.length)},R:function(n,t){return d(wt(n),t.length)},u:function(n,t){return d(n.getFullYear(),t.length)},Q:function(n,t,e){let r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){let r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){let r=n.getMonth();switch(t){case"M":case"MM":return E.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){let r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){let a=gt(n,r);return t==="wo"?e.ordinalNumber(a,{unit:"week"}):d(a,t.length)},I:function(n,t,e){let r=ft(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):E.d(n,t)},D:function(n,t,e){let r=It(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(n,t,e){let r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){let a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return d(i,2);case"eo":return e.ordinalNumber(i,{unit:"day"});case"eee":return e.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(a,{width:"short",context:"formatting"});default:return e.day(a,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){let a=n.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return d(i,t.length);case"co":return e.ordinalNumber(i,{unit:"day"});case"ccc":return e.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(a,{width:"narrow",context:"standalone"});case"cccccc":return e.day(a,{width:"short",context:"standalone"});default:return e.day(a,{width:"wide",context:"standalone"})}},i:function(n,t,e){let r=n.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return d(a,t.length);case"io":return e.ordinalNumber(a,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){let r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){let r=n.getHours(),a;switch(a=r===12?U.noon:r===0?U.midnight:r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(a,{width:"narrow",context:"formatting"});default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(n,t,e){let r=n.getHours(),a;switch(a=r>=17?U.evening:r>=12?U.afternoon:r>=4?U.morning:U.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(a,{width:"narrow",context:"formatting"});default:return e.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return E.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):E.H(n,t)},K:function(n,t,e){let r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):E.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):E.s(n,t)},S:function(n,t){return E.S(n,t)},X:function(n,t,e){let r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return bt(r);case"XXXX":case"XX":return Q(r);default:return Q(r,":")}},x:function(n,t,e){let r=n.getTimezoneOffset();switch(t){case"x":return bt(r);case"xxxx":case"xx":return Q(r);default:return Q(r,":")}},O:function(n,t,e){let r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yt(r,":");default:return"GMT"+Q(r,":")}},z:function(n,t,e){let r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yt(r,":");default:return"GMT"+Q(r,":")}},t:function(n,t,e){return d(Math.trunc(n/1e3),t.length)},T:function(n,t,e){return d(+n,t.length)}};function yt(n,t=""){let e=n>0?"-":"+",r=Math.abs(n),a=Math.trunc(r/60),i=r%60;return i===0?e+String(a):e+String(a)+t+d(i,2)}function bt(n,t){return n%60==0?(n>0?"-":"+")+d(Math.abs(n)/60,2):Q(n,t)}function Q(n,t=""){let e=n>0?"-":"+",r=Math.abs(n),a=d(Math.trunc(r/60),2),i=d(r%60,2);return e+a+t+i}var xt=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Tt=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const V={p:Tt,P:(n,t)=>{let e=n.match(/(P+)(p+)?/)||[],r=e[1],a=e[2];if(!a)return xt(n,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",xt(r,t)).replace("{{time}}",Tt(a,t))}};var Xt=/^D+$/,zt=/^Y+$/,Rt=["D","DD","YY","YYYY"];function Dt(n){return Xt.test(n)}function Mt(n){return zt.test(n)}function J(n,t,e){let r=Wt(n,t,e);if(console.warn(r),Rt.includes(n))throw RangeError(r)}function Wt(n,t,e){let r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var At=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Kt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jt=/^'([^]*?)'?$/,Vt=/''/g,Jt=/[a-zA-Z]/;function I(n,t,e){var b,k,D,O,v,C,P,L;let r=Z(),a=(e==null?void 0:e.locale)??r.locale??lt,i=(e==null?void 0:e.firstWeekContainsDate)??((k=(b=e==null?void 0:e.locale)==null?void 0:b.options)==null?void 0:k.firstWeekContainsDate)??r.firstWeekContainsDate??((O=(D=r.locale)==null?void 0:D.options)==null?void 0:O.firstWeekContainsDate)??1,s=(e==null?void 0:e.weekStartsOn)??((C=(v=e==null?void 0:e.locale)==null?void 0:v.options)==null?void 0:C.weekStartsOn)??r.weekStartsOn??((L=(P=r.locale)==null?void 0:P.options)==null?void 0:L.weekStartsOn)??0,c=x(n,e==null?void 0:e.in);if(!dt(c))throw RangeError("Invalid time value");let h=t.match(Kt).map(M=>{let T=M[0];if(T==="p"||T==="P"){let F=V[T];return F(M,a.formatLong)}return M}).join("").match(At).map(M=>{if(M==="''")return{isToken:!1,value:"'"};let T=M[0];if(T==="'")return{isToken:!1,value:_t(M)};if(pt[T])return{isToken:!0,value:M};if(T.match(Jt))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:M}});a.localize.preprocessor&&(h=a.localize.preprocessor(c,h));let y={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return h.map(M=>{if(!M.isToken)return M.value;let T=M.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Mt(T)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&Dt(T))&&J(T,t,String(n));let F=pt[T[0]];return F(c,T,a.localize,y)}).join("")}function _t(n){let t=n.match(jt);return t?t[1].replace(Vt,"'"):n}function te(){return Object.assign({},Z())}function ee(n,t){let e=x(n,t==null?void 0:t.in).getDay();return e===0?7:e}function re(n,t){let e=ne(t)?new t(0):S(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function ne(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}var ae=10,St=class{constructor(){o(this,"subPriority",0)}validate(n,t){return!0}},ie=class extends St{constructor(n,t,e,r,a){super(),this.value=n,this.validateValue=t,this.setValue=e,this.priority=r,a&&(this.subPriority=a)}validate(n,t){return this.validateValue(n,this.value,t)}set(n,t,e){return this.setValue(n,t,this.value,e)}},oe=class extends St{constructor(t,e){super();o(this,"priority",ae);o(this,"subPriority",-1);this.context=t||(r=>S(e,r))}set(t,e){return e.timestampIsSet?t:S(t,re(t,this.context))}},l=class{run(n,t,e,r){let a=this.parse(n,t,e,r);return a?{setter:new ie(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(n,t,e){return!0}},se=class extends l{constructor(){super(...arguments);o(this,"priority",140);o(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}};const g={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Y={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function p(n,t){return n&&{value:t(n.value),rest:n.rest}}function w(n,t){let e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function q(n,t){let e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};let r=e[1]==="+"?1:-1,a=e[2]?parseInt(e[2],10):0,i=e[3]?parseInt(e[3],10):0,s=e[5]?parseInt(e[5],10):0;return{value:r*(a*Et+i*Nt+s*Qt),rest:t.slice(e[0].length)}}function kt(n){return w(g.anyDigitsSigned,n)}function f(n,t){switch(n){case 1:return w(g.singleDigit,t);case 2:return w(g.twoDigits,t);case 3:return w(g.threeDigits,t);case 4:return w(g.fourDigits,t);default:return w(RegExp("^\\d{1,"+n+"}"),t)}}function vt(n,t){switch(n){case 1:return w(g.singleDigitSigned,t);case 2:return w(g.twoDigitsSigned,t);case 3:return w(g.threeDigitsSigned,t);case 4:return w(g.fourDigitsSigned,t);default:return w(RegExp("^-?\\d{1,"+n+"}"),t)}}function _(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Ht(n,t){let e=t>0,r=e?t:1-t,a;if(r<=50)a=n||100;else{let i=r+50,s=Math.trunc(i/100)*100,c=n>=i%100;a=n+s-(c?100:0)}return e?a:1-a}function Yt(n){return n%400==0||n%4==0&&n%100!=0}var ue=class extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){let a=i=>({year:i,isTwoDigitYear:e==="yy"});switch(e){case"y":return p(f(4,t),a);case"yo":return p(r.ordinalNumber(t,{unit:"year"}),a);default:return p(f(e.length,t),a)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){let a=t.getFullYear();if(r.isTwoDigitYear){let s=Ht(r.year,a);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},ce=class extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){let a=i=>({year:i,isTwoDigitYear:e==="YY"});switch(e){case"Y":return p(f(4,t),a);case"Yo":return p(r.ordinalNumber(t,{unit:"year"}),a);default:return p(f(e.length,t),a)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,a){let i=j(t,a);if(r.isTwoDigitYear){let c=Ht(r.year,i);return t.setFullYear(c,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),N(t,a)}let s=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(s,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),N(t,a)}},le=class extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return vt(e==="R"?4:e.length,t)}set(t,e,r){let a=S(t,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),$(a)}},de=class extends l{constructor(){super(...arguments);o(this,"priority",130);o(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return vt(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}},he=class extends l{constructor(){super(...arguments);o(this,"priority",120);o(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return f(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}},we=class extends l{constructor(){super(...arguments);o(this,"priority",120);o(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return f(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}},me=class extends l{constructor(){super(...arguments);o(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);o(this,"priority",110)}parse(t,e,r){let a=i=>i-1;switch(e){case"M":return p(w(g.month,t),a);case"MM":return p(f(2,t),a);case"Mo":return p(r.ordinalNumber(t,{unit:"month"}),a);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}},fe=class extends l{constructor(){super(...arguments);o(this,"priority",110);o(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){let a=i=>i-1;switch(e){case"L":return p(w(g.month,t),a);case"LL":return p(f(2,t),a);case"Lo":return p(r.ordinalNumber(t,{unit:"month"}),a);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};function ge(n,t,e){let r=x(n,e==null?void 0:e.in),a=gt(r,e)-t;return r.setDate(r.getDate()-a*7),x(r,e==null?void 0:e.in)}var pe=class extends l{constructor(){super(...arguments);o(this,"priority",100);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return w(g.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return f(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,a){return N(ge(t,r,a),a)}};function ye(n,t,e){let r=x(n,e==null?void 0:e.in),a=ft(r,e)-t;return r.setDate(r.getDate()-a*7),r}var be=class extends l{constructor(){super(...arguments);o(this,"priority",100);o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return w(g.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return f(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return $(ye(t,r))}},xe=[31,28,31,30,31,30,31,31,30,31,30,31],Te=[31,29,31,30,31,30,31,31,30,31,30,31],De=class extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"subPriority",1);o(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return w(g.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return f(e.length,t)}}validate(t,e){let r=Yt(t.getFullYear()),a=t.getMonth();return r?e>=1&&e<=Te[a]:e>=1&&e<=xe[a]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}},Me=class extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"subpriority",1);o(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return w(g.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return f(e.length,t)}}validate(t,e){return Yt(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}};function tt(n,t,e){var y,b,k,D;let r=Z(),a=(e==null?void 0:e.weekStartsOn)??((b=(y=e==null?void 0:e.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((D=(k=r.locale)==null?void 0:k.options)==null?void 0:D.weekStartsOn)??0,i=x(n,e==null?void 0:e.in),s=i.getDay(),c=(t%7+7)%7,h=7-a;return ht(i,t<0||t>6?t-(s+h)%7:(c+h)%7-(s+h)%7,e)}var Se=class extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,a){return t=tt(t,r,a),t.setHours(0,0,0,0),t}},ke=class extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,a){let i=s=>{let c=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+c};switch(e){case"e":case"ee":return p(f(e.length,t),i);case"eo":return p(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,a){return t=tt(t,r,a),t.setHours(0,0,0,0),t}},ve=class extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,a){let i=s=>{let c=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+c};switch(e){case"c":case"cc":return p(f(e.length,t),i);case"co":return p(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,a){return t=tt(t,r,a),t.setHours(0,0,0,0),t}};function He(n,t,e){let r=x(n,e==null?void 0:e.in);return ht(r,t-ee(r,e),e)}var Ye=class extends l{constructor(){super(...arguments);o(this,"priority",90);o(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){let a=i=>i===0?7:i;switch(e){case"i":case"ii":return f(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return p(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),a);case"iiiii":return p(r.day(t,{width:"narrow",context:"formatting"}),a);case"iiiiii":return p(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),a);default:return p(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),a)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=He(t,r),t.setHours(0,0,0,0),t}},qe=class extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(_(r),0,0,0),t}},Oe=class extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(_(r),0,0,0),t}},Pe=class extends l{constructor(){super(...arguments);o(this,"priority",80);o(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(_(r),0,0,0),t}},Le=class extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return w(g.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return f(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){let a=t.getHours()>=12;return a&&r<12?t.setHours(r+12,0,0,0):!a&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}},Ce=class extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return w(g.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return f(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}},Ne=class extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return w(g.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return f(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}},Ee=class extends l{constructor(){super(...arguments);o(this,"priority",70);o(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return w(g.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return f(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){let a=r<=24?r%24:r;return t.setHours(a,0,0,0),t}},Qe=class extends l{constructor(){super(...arguments);o(this,"priority",60);o(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return w(g.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return f(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}},Ge=class extends l{constructor(){super(...arguments);o(this,"priority",50);o(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return w(g.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return f(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}},Fe=class extends l{constructor(){super(...arguments);o(this,"priority",30);o(this,"incompatibleTokens",["t","T"])}parse(t,e){return p(f(e.length,t),r=>Math.trunc(r*10**(-e.length+3)))}set(t,e,r){return t.setMilliseconds(r),t}},Ze=class extends l{constructor(){super(...arguments);o(this,"priority",10);o(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return q(Y.basicOptionalMinutes,t);case"XX":return q(Y.basic,t);case"XXXX":return q(Y.basicOptionalSeconds,t);case"XXXXX":return q(Y.extendedOptionalSeconds,t);default:return q(Y.extended,t)}}set(t,e,r){return e.timestampIsSet?t:S(t,t.getTime()-A(t)-r)}},$e=class extends l{constructor(){super(...arguments);o(this,"priority",10);o(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return q(Y.basicOptionalMinutes,t);case"xx":return q(Y.basic,t);case"xxxx":return q(Y.basicOptionalSeconds,t);case"xxxxx":return q(Y.extendedOptionalSeconds,t);default:return q(Y.extended,t)}}set(t,e,r){return e.timestampIsSet?t:S(t,t.getTime()-A(t)-r)}},Ue=class extends l{constructor(){super(...arguments);o(this,"priority",40);o(this,"incompatibleTokens","*")}parse(t){return kt(t)}set(t,e,r){return[S(t,r*1e3),{timestampIsSet:!0}]}},Ie=class extends l{constructor(){super(...arguments);o(this,"priority",20);o(this,"incompatibleTokens","*")}parse(t){return kt(t)}set(t,e,r){return[S(t,r),{timestampIsSet:!0}]}};const Be={G:new se,y:new ue,Y:new ce,R:new le,u:new de,Q:new he,q:new we,M:new me,L:new fe,w:new pe,I:new be,d:new De,D:new Me,E:new Se,e:new ke,c:new ve,i:new Ye,a:new qe,b:new Oe,B:new Pe,h:new Le,H:new Ce,K:new Ne,k:new Ee,m:new Qe,s:new Ge,S:new Fe,X:new Ze,x:new $e,t:new Ue,T:new Ie};var Xe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,We=/''/g,Ae=/\S/,Ke=/[a-zA-Z]/;function je(n,t,e,r){var P,L,M,T,F,nt,at,it;let a=()=>S((r==null?void 0:r.in)||e,NaN),i=te(),s=(r==null?void 0:r.locale)??i.locale??lt,c=(r==null?void 0:r.firstWeekContainsDate)??((L=(P=r==null?void 0:r.locale)==null?void 0:P.options)==null?void 0:L.firstWeekContainsDate)??i.firstWeekContainsDate??((T=(M=i.locale)==null?void 0:M.options)==null?void 0:T.firstWeekContainsDate)??1,h=(r==null?void 0:r.weekStartsOn)??((nt=(F=r==null?void 0:r.locale)==null?void 0:F.options)==null?void 0:nt.weekStartsOn)??i.weekStartsOn??((it=(at=i.locale)==null?void 0:at.options)==null?void 0:it.weekStartsOn)??0;if(!t)return n?a():x(e,r==null?void 0:r.in);let y={firstWeekContainsDate:c,weekStartsOn:h,locale:s},b=[new oe(r==null?void 0:r.in,e)],k=t.match(ze).map(u=>{let m=u[0];if(m in V){let H=V[m];return H(u,s.formatLong)}return u}).join("").match(Xe),D=[];for(let u of k){!(r!=null&&r.useAdditionalWeekYearTokens)&&Mt(u)&&J(u,t,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Dt(u)&&J(u,t,n);let m=u[0],H=Be[m];if(H){let{incompatibleTokens:ot}=H;if(Array.isArray(ot)){let st=D.find(ut=>ot.includes(ut.token)||ut.token===m);if(st)throw RangeError(`The format string mustn't contain \`${st.fullToken}\` and \`${u}\` at the same time`)}else if(H.incompatibleTokens==="*"&&D.length>0)throw RangeError(`The format string mustn't contain \`${u}\` and any other token at the same time`);D.push({token:m,fullToken:u});let K=H.run(n,u,s.match,y);if(!K)return a();b.push(K.setter),n=K.rest}else{if(m.match(Ke))throw RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");if(u==="''"?u="'":m==="'"&&(u=Ve(u)),n.indexOf(u)===0)n=n.slice(u.length);else return a()}}if(n.length>0&&Ae.test(n))return a();let O=b.map(u=>u.priority).sort((u,m)=>m-u).filter((u,m,H)=>H.indexOf(u)===m).map(u=>b.filter(m=>m.priority===u).sort((m,H)=>H.subPriority-m.subPriority)).map(u=>u[0]),v=x(e,r==null?void 0:r.in);if(isNaN(+v))return a();let C={};for(let u of O){if(!u.validate(v,y))return a();let m=u.set(v,C,y);Array.isArray(m)?(v=m[0],Object.assign(C,m[1])):v=m}return v}function Ve(n){return n.match(Re)[1].replace(We,"'")}function Je(n,t,e){return dt(je(n,t,new Date,e))}function _e(n,t,e="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:n,timeZoneName:e}).format(t).split(/\s/g).slice(2).join(" ")}var et={},B={};function G(n,t){try{let e=(et[n]||(et[n]=new Intl.DateTimeFormat("en-US",{timeZone:n,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return e in B?B[e]:qt(e,e.split(":"))}catch{if(n in B)return B[n];let e=n==null?void 0:n.match(tr);return e?qt(n,e.slice(1)):NaN}}var tr=/([+-]\d\d):?(\d\d)?/;function qt(n,t){let e=+(t[0]||0),r=+(t[1]||0),a=(t[2]||0)/60;return B[n]=e*60+r>0?e*60+r+a:e*60-r-a}var X=class z extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(G(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Pt(this,NaN),rt(this)):this.setTime(Date.now())}static tz(t,...e){return e.length?new z(...e,t):new z(Date.now(),t)}withTimeZone(t){return new z(+this,t)}getTimezoneOffset(){let t=-G(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),rt(this),+this}[Symbol.for("constructDateFrom")](t){return new z(+new Date(t),this.timeZone)}},Ot=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(n=>{if(!Ot.test(n))return;let t=n.replace(Ot,"$1UTC");X.prototype[t]&&(n.startsWith("get")?X.prototype[n]=function(){return this.internal[t]()}:(X.prototype[n]=function(){return Date.prototype[t].apply(this.internal,arguments),er(this),+this},X.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),rt(this),+this}))});function rt(n){n.internal.setTime(+n),n.internal.setUTCSeconds(n.internal.getUTCSeconds()-Math.round(-G(n.timeZone,n)*60))}function er(n){Date.prototype.setFullYear.call(n,n.internal.getUTCFullYear(),n.internal.getUTCMonth(),n.internal.getUTCDate()),Date.prototype.setHours.call(n,n.internal.getUTCHours(),n.internal.getUTCMinutes(),n.internal.getUTCSeconds(),n.internal.getUTCMilliseconds()),Pt(n)}function Pt(n){let t=G(n.timeZone,n),e=t>0?Math.floor(t):Math.ceil(t),r=new Date(+n);r.setUTCHours(r.getUTCHours()-1);let a=-new Date(+n).getTimezoneOffset(),i=a- -new Date(+r).getTimezoneOffset(),s=Date.prototype.getHours.apply(n)!==n.internal.getUTCHours();i&&s&&n.internal.setUTCMinutes(n.internal.getUTCMinutes()+i);let c=a-e;c&&Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+c);let h=new Date(+n);h.setUTCSeconds(0);let y=a>0?h.getSeconds():(h.getSeconds()-60)%60,b=Math.round(-(G(n.timeZone,n)*60))%60;(b||y)&&(n.internal.setUTCSeconds(n.internal.getUTCSeconds()+b),Date.prototype.setUTCSeconds.call(n,Date.prototype.getUTCSeconds.call(n)+b+y));let k=G(n.timeZone,n),D=k>0?Math.floor(k):Math.ceil(k),O=-new Date(+n).getTimezoneOffset()-D,v=D!==e,C=O-c;if(v&&C){Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+C);let P=G(n.timeZone,n),L=D-(P>0?Math.floor(P):Math.ceil(P));L&&(n.internal.setUTCMinutes(n.internal.getUTCMinutes()+L),Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+L))}}var rr=class R extends X{static tz(t,...e){return e.length?new R(...e,t):new R(Date.now(),t)}toISOString(){let[t,e,r]=this.tzComponents(),a=`${t}${e}:${r}`;return this.internal.toISOString().slice(0,-1)+a}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[t,e,r,a]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${e} ${a}`}toTimeString(){let t=this.internal.toUTCString().split(" ")[4],[e,r,a]=this.tzComponents();return`${t} GMT${e}${r}${a} (${_e(this.timeZone,this)})`}toLocaleString(t,e){return Date.prototype.toLocaleString.call(this,t,{...e,timeZone:(e==null?void 0:e.timeZone)||this.timeZone})}toLocaleDateString(t,e){return Date.prototype.toLocaleDateString.call(this,t,{...e,timeZone:(e==null?void 0:e.timeZone)||this.timeZone})}toLocaleTimeString(t,e){return Date.prototype.toLocaleTimeString.call(this,t,{...e,timeZone:(e==null?void 0:e.timeZone)||this.timeZone})}tzComponents(){let t=this.getTimezoneOffset();return[t>0?"-":"+",String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),String(Math.abs(t)%60).padStart(2,"0")]}withTimeZone(t){return new R(+this,t)}[Symbol.for("constructDateFrom")](t){return new R(+new Date(t),this.timeZone)}};function nr(n,t,e){if(n==null)return"";try{return t==="date"?new Date(n).toLocaleDateString(e,{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"}):new Date(n).toLocaleDateString(e,{year:"numeric",month:"short",day:"numeric"})}catch(r){return W.warn("Failed to parse date",r),n.toString()}}function ar(n,t,e){let r=n.getUTCMilliseconds()!==0;try{if(t){let a=new rr(n,t),i=ir(t,e);return r?`${I(a,"yyyy-MM-dd HH:mm:ss.SSS")} ${i}`:`${I(a,"yyyy-MM-dd HH:mm:ss")} ${i}`}return r?I(n,"yyyy-MM-dd HH:mm:ss.SSS"):I(n,"yyyy-MM-dd HH:mm:ss")}catch(a){return W.warn("Failed to parse date",a),n.toISOString()}}function ir(n,t){var e;try{return((e=new Intl.DateTimeFormat(t,{timeZone:n,timeZoneName:"short"}).formatToParts(new Date).find(r=>r.type==="timeZoneName"))==null?void 0:e.value)??""}catch(r){return W.warn("Failed to get abbrev",r),n}}function or(n,t){if(n==null||n===0)return"";try{let e=new Date(n),r=new Date,a=new Date;return a.setDate(a.getDate()-1),e.toDateString()===r.toDateString()?`Today at ${e.toLocaleTimeString(t,{hour:"numeric",minute:"numeric"})}`:e.toDateString()===a.toDateString()?`Yesterday at ${e.toLocaleTimeString(t,{hour:"numeric",minute:"numeric"})}`:`${e.toLocaleDateString(t,{year:"numeric",month:"short",day:"numeric"})} at ${e.toLocaleTimeString(t,{hour:"numeric",minute:"numeric"})}`}catch(e){W.warn("Failed to parse date",e)}return n.toString()}const sr=["yyyy","yyyy-MM","yyyy-MM-dd"];function ur(n){for(let t of sr)if(Je(n,t))return t;return null}export{I as a,or as i,ur as n,nr as r,ar as t}; diff --git a/docs/assets/dax-qq8dT5cg.js b/docs/assets/dax-qq8dT5cg.js new file mode 100644 index 0000000..2fdf587 --- /dev/null +++ b/docs/assets/dax-qq8dT5cg.js @@ -0,0 +1 @@ +var E=[Object.freeze(JSON.parse(`{"displayName":"DAX","name":"dax","patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#labels"},{"include":"#parameters"},{"include":"#strings"},{"include":"#numbers"}],"repository":{"comments":{"patterns":[{"begin":"//","captures":{"0":{"name":"punctuation.definition.comment.dax"}},"end":"\\\\n","name":"comment.line.dax"},{"begin":"--","captures":{"0":{"name":"punctuation.definition.comment.dax"}},"end":"\\\\n","name":"comment.line.dax"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.dax"}},"end":"\\\\*/","name":"comment.block.dax"}]},"keywords":{"patterns":[{"match":"\\\\b(YIELDMAT|YIELDDISC|YIELD|YEARFRAC|YEAR|XNPV|XIRR|WEEKNUM|WEEKDAY|VDB|VARX.S|VARX.P|VAR.S|VAR.P|VALUES?|UTCTODAY|UTCNOW|USERPRINCIPALNAME|USEROBJECTID|USERNAME|USERELATIONSHIP|USERCULTURE|UPPER|UNION|UNICODE|UNICHAR|TRUNC|TRUE|TRIM|TREATAS|TOTALYTD|TOTALQTD|TOTALMTD|TOPNSKIP|TOPNPERLEVEL|TOPN|TODAY|TIMEVALUE|TIME|TBILLYIELD|TBILLPRICE|TBILLEQ|TANH?|T.INV.2T|T.INV|T.DIST.RT|T.DIST.2T|T.DIST|SYD|SWITCH|SUMX|SUMMARIZECOLUMNS|SUMMARIZE|SUM|SUBSTITUTEWITHINDEX|SUBSTITUTE|STDEVX.S|STDEVX.P|STDEV.S|STDEV.P|STARTOFYEAR|STARTOFQUARTER|STARTOFMONTH|SQRTPI|SQRT|SLN|SINH?|SIGN|SELECTEDVALUE|SELECTEDMEASURENAME|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURE|SELECTCOLUMNS|SECOND|SEARCH|SAMPLE|SAMEPERIODLASTYEAR|RRI|ROW|ROUNDUP|ROUNDDOWN|ROUND|ROLLUPISSUBTOTAL|ROLLUPGROUP|ROLLUPADDISSUBTOTAL|ROLLUP|RIGHT|REPT|REPLACE|REMOVEFILTERS|RELATEDTABLE|RELATED|RECEIVED|RATE|RANKX|RANK.EQ|RANDBETWEEN|RAND|RADIANS|QUOTIENT|QUARTER|PV|PRODUCTX?|PRICEMAT|PRICEDISC|PRICE|PREVIOUSYEAR|PREVIOUSQUARTER|PREVIOUSMONTH|PREVIOUSDAY|PPMT|POWER|POISSON.DIST|PMT|PI|PERMUT|PERCENTILEX.INC|PERCENTILEX.EXC|PERCENTILE.INC|PERCENTILE.EXC|PDURATION|PATHLENGTH|PATHITEMREVERSE|PATHITEM|PATHCONTAINS|PATH|PARALLELPERIOD|OR|OPENINGBALANCEYEAR|OPENINGBALANCEQUARTER|OPENINGBALANCEMONTH|ODDLYIELD|ODDLPRICE|ODDFYIELD|ODDFPRICE|ODD|NPER|NOW|NOT|NORM.S.INV|NORM.S.DIST|NORM.INV|NORM.DIST|NONVISUAL|NOMINAL|NEXTYEAR|NEXTQUARTER|NEXTMONTH|NEXTDAY|NATURALLEFTOUTERJOIN|NATURALINNERJOIN|MROUND|MONTH|MOD|MINX|MINUTE|MINA?|MID|MEDIANX?|MDURATION|MAXX|MAXA?|LOWER|LOOKUPVALUE|LOG10|LOG|LN|LEN|LEFT|LCM|LASTNONBLANKVALUE|LASTNONBLANK|LASTDATE|KEYWORDMATCH|KEEPFILTERS|ISTEXT|ISSUBTOTAL|ISSELECTEDMEASURE|ISPMT|ISONORAFTER|ISODD|ISO.CEILING|ISNUMBER|ISNONTEXT|ISLOGICAL|ISINSCOPE|ISFILTERED|ISEVEN|ISERROR|ISEMPTY|ISCROSSFILTERED|ISBLANK|ISAFTER|IPMT|INTRATE|INTERSECT|INT|IGNORE|IFERROR|IF.EAGER|IF|HOUR|HASONEVALUE|HASONEFILTER|HASH|GROUPBY|GEOMEANX?|GENERATESERIES|GENERATEALL|GENERATE|GCD|FV|FORMAT|FLOOR|FIXED|FIRSTNONBLANKVALUE|FIRSTNONBLANK|FIRSTDATE|FIND|FILTERS?|FALSE|FACT|EXPON.DIST|EXP|EXCEPT|EXACT|EVEN|ERROR|EOMONTH|ENDOFYEAR|ENDOFQUARTER|ENDOFMONTH|EFFECT|EDATE|EARLIEST|EARLIER|DURATION|DOLLARFR|DOLLARDE|DIVIDE|DISTINCTCOUNTNOBLANK|DISTINCTCOUNT|DISTINCT|DISC|DETAILROWS|DEGREES|DDB|DB|DAY|DATEVALUE|DATESYTD|DATESQTD|DATESMTD|DATESINPERIOD|DATESBETWEEN|DATEDIFF|DATEADD|DATE|DATATABLE|CUSTOMDATA|CURRENTGROUP|CURRENCY|CUMPRINC|CUMIPMT|CROSSJOIN|CROSSFILTER|COUPPCD|COUPNUM|COUPNCD|COUPDAYSNC|COUPDAYS|COUPDAYBS|COUNTX|COUNTROWS|COUNTBLANK|COUNTAX?|COUNT|COTH?|COSH?|CONVERT|CONTAINSSTRINGEXACT|CONTAINSSTRING|CONTAINSROW|CONTAINS|CONFIDENCE.T|CONFIDENCE.NORM|CONCATENATEX?|COMBINEVALUES|COMBINA?|COLUMNSTATISTICS|COALESCE|CLOSINGBALANCEYEAR|CLOSINGBALANCEQUARTER|CLOSINGBALANCEMONTH|CHISQ.INV.RT|CHISQ.INV|CHISQ.DIST.RT|CHISQ.DIST|CEILING|CALENDARAUTO|CALENDAR|CALCULATETABLE|CALCULATE|BLANK|BETA.INV|BETA.DIST|AVERAGEX|AVERAGEA?|ATANH?|ASINH?|APPROXIMATEDISTINCTCOUNT|AND|AMORLINC|AMORDEGRC|ALLSELECTED|ALLNOBLANKROW|ALLEXCEPT|ALLCROSSFILTERED|ALL|ADDMISSINGITEMS|ADDCOLUMNS|ACOTH?|ACOSH?|ACCRINTM?|ABS)\\\\b","name":"variable.language.dax"},{"match":"\\\\b(DEFINE|EVALUATE|ORDER BY|RETURN|VAR)\\\\b","name":"keyword.control.dax"},{"match":"[{}]","name":"keyword.array.constructor.dax"},{"match":"[<>]|>=|<=|=(?!==)","name":"keyword.operator.comparison.dax"},{"match":"&&|IN|NOT|\\\\|\\\\|","name":"keyword.operator.logical.dax"},{"match":"[-*+/]","name":"keyword.arithmetic.operator.dax"},{"begin":"\\\\[","end":"]","name":"support.function.dax"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.dax"},{"begin":"'","end":"'","name":"support.class.dax"}]},"labels":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.label.dax"},"2":{"name":"entity.name.label.dax"}},"match":"^((.*?)\\\\s*([!:]=))"}]},"metas":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.dax"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.dax"}}}]},"numbers":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.dax"},"parameters":{"patterns":[{"begin":"\\\\b(?=i||r<0||m&&c>=d}function l(){var t=h();if(y(t))return E(t);n=setTimeout(l,b(t))}function E(t){return n=void 0,p&&e?T(t):(e=f=void 0,a)}function C(){n!==void 0&&clearTimeout(n),v=0,e=o=f=n=void 0}function D(){return n===void 0?a:E(h())}function x(){var t=h(),r=y(t);if(e=arguments,f=this,o=t,r){if(n===void 0)return W(o);if(m)return clearTimeout(n),n=setTimeout(l,i),T(o)}return n===void 0&&(n=setTimeout(l,i)),a}return x.cancel=C,x.flush=D,x}var z=q;export{z as t}; diff --git a/docs/assets/defaultLocale-BLUna9fQ.js b/docs/assets/defaultLocale-BLUna9fQ.js new file mode 100644 index 0000000..ee1eb1a --- /dev/null +++ b/docs/assets/defaultLocale-BLUna9fQ.js @@ -0,0 +1 @@ +function Q(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function A(t,i){if((o=(t=i?t.toExponential(i-1):t.toExponential()).indexOf("e"))<0)return null;var o,n=t.slice(0,o);return[n.length>1?n[0]+n.slice(2):n,+t.slice(o+1)]}function T(t){return t=A(Math.abs(t)),t?t[1]:NaN}function R(t,i){return function(o,n){for(var a=o.length,c=[],m=0,f=t[0],y=0;a>0&&f>0&&(y+f+1>n&&(f=Math.max(1,n-y)),c.push(o.substring(a-=f,a+f)),!((y+=f+1)>n));)f=t[m=(m+1)%t.length];return c.reverse().join(i)}}function V(t){return function(i){return i.replace(/[0-9]/g,function(o){return t[+o]})}}var W=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function N(t){if(!(i=W.exec(t)))throw Error("invalid format: "+t);var i;return new $({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}N.prototype=$.prototype;function $(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tt(t){t:for(var i=t.length,o=1,n=-1,a;o0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var X;function it(t,i){var o=A(t,i);if(!o)return t+"";var n=o[0],a=o[1],c=a-(X=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,m=n.length;return c===m?n:c>m?n+Array(c-m+1).join("0"):c>0?n.slice(0,c)+"."+n.slice(c):"0."+Array(1-c).join("0")+A(t,Math.max(0,i+c-1))[0]}function _(t,i){var o=A(t,i);if(!o)return t+"";var n=o[0],a=o[1];return a<0?"0."+Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+Array(a-n.length+2).join("0")}var D={"%":(t,i)=>(t*100).toFixed(i),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Q,e:(t,i)=>t.toExponential(i),f:(t,i)=>t.toFixed(i),g:(t,i)=>t.toPrecision(i),o:t=>Math.round(t).toString(8),p:(t,i)=>_(t*100,i),r:_,s:it,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function G(t){return t}var U=Array.prototype.map,Y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Z(t){var i=t.grouping===void 0||t.thousands===void 0?G:R(U.call(t.grouping,Number),t.thousands+""),o=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",c=t.numerals===void 0?G:V(U.call(t.numerals,String)),m=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"\u2212":t.minus+"",y=t.nan===void 0?"NaN":t.nan+"";function C(s){s=N(s);var b=s.fill,M=s.align,u=s.sign,x=s.symbol,p=s.zero,w=s.width,E=s.comma,g=s.precision,P=s.trim,l=s.type;l==="n"?(E=!0,l="g"):D[l]||(g===void 0&&(g=12),P=!0,l="g"),(p||b==="0"&&M==="=")&&(p=!0,b="0",M="=");var I=x==="$"?o:x==="#"&&/[boxX]/.test(l)?"0"+l.toLowerCase():"",J=x==="$"?n:/[%p]/.test(l)?m:"",O=D[l],K=/[defgprs%]/.test(l);g=g===void 0?6:/[gprs]/.test(l)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function F(r){var v=I,h=J,e,L,k;if(l==="c")h=O(r)+h,r="";else{r=+r;var S=r<0||1/r<0;if(r=isNaN(r)?y:O(Math.abs(r),g),P&&(r=tt(r)),S&&+r==0&&u!=="+"&&(S=!1),v=(S?u==="("?u:f:u==="-"||u==="("?"":u)+v,h=(l==="s"?Y[8+X/3]:"")+h+(S&&u==="("?")":""),K){for(e=-1,L=r.length;++ek||k>57){h=(k===46?a+r.slice(e+1):r.slice(e))+h,r=r.slice(0,e);break}}}E&&!p&&(r=i(r,1/0));var z=v.length+r.length+h.length,d=z>1)+v+r+h+d.slice(z);break;default:r=d+v+r+h;break}return c(r)}return F.toString=function(){return s+""},F}function H(s,b){var M=C((s=N(s),s.type="f",s)),u=Math.max(-8,Math.min(8,Math.floor(T(b)/3)))*3,x=10**-u,p=Y[8+u/3];return function(w){return M(x*w)+p}}return{format:C,formatPrefix:H}}var j,q,B;rt({thousands:",",grouping:[3],currency:["$",""]});function rt(t){return j=Z(t),q=j.format,B=j.formatPrefix,j}export{T as a,N as i,B as n,Z as r,q as t}; diff --git a/docs/assets/defaultLocale-DzliDDTm.js b/docs/assets/defaultLocale-DzliDDTm.js new file mode 100644 index 0000000..aca4895 --- /dev/null +++ b/docs/assets/defaultLocale-DzliDDTm.js @@ -0,0 +1 @@ +var P=new Date,B=new Date;function T(t,e,n,r){function f(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return f.floor=a=>(t(a=new Date(+a)),a),f.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),f.round=a=>{let c=f(a),C=f.ceil(a);return a-c(e(a=new Date(+a),c==null?1:Math.floor(c)),a),f.range=(a,c,C)=>{let d=[];if(a=f.ceil(a),C=C==null?1:Math.floor(C),!(a0))return d;let X;do d.push(X=new Date(+a)),e(a,C),t(a);while(XT(c=>{if(c>=c)for(;t(c),!a(c);)c.setTime(c-1)},(c,C)=>{if(c>=c)if(C<0)for(;++C<=0;)for(;e(c,-1),!a(c););else for(;--C>=0;)for(;e(c,1),!a(c););}),n&&(f.count=(a,c)=>(P.setTime(+a),B.setTime(+c),t(P),t(B),Math.floor(n(P,B))),f.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?f.filter(r?c=>r(c)%a===0:c=>f.count(0,c)%a===0):f)),f}const z=T(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);z.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?T(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):z),z.range;const L=1e3,y=L*60,Z=y*60,m=Z*24,E=m*7,ie=m*30,ce=m*365,tt=T(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*L)},(t,e)=>(e-t)/L,t=>t.getUTCSeconds());tt.range;const et=T(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*L)},(t,e)=>{t.setTime(+t+e*y)},(t,e)=>(e-t)/y,t=>t.getMinutes());et.range;const nt=T(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*y)},(t,e)=>(e-t)/y,t=>t.getUTCMinutes());nt.range;const rt=T(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*L-t.getMinutes()*y)},(t,e)=>{t.setTime(+t+e*Z)},(t,e)=>(e-t)/Z,t=>t.getHours());rt.range;const ut=T(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Z)},(t,e)=>(e-t)/Z,t=>t.getUTCHours());ut.range;const J=T(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*y)/m,t=>t.getDate()-1);J.range;const I=T(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/m,t=>t.getUTCDate()-1);I.range;const ot=T(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/m,t=>Math.floor(t/m));ot.range;function S(t){return T(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*y)/E)}const G=S(0),W=S(1),at=S(2),it=S(3),p=S(4),ct=S(5),st=S(6);G.range,W.range,at.range,it.range,p.range,ct.range,st.range;function A(t){return T(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/E)}const _=A(0),N=A(1),se=A(2),le=A(3),b=A(4),ge=A(5),fe=A(6);_.range,N.range,se.range,le.range,b.range,ge.range,fe.range;const lt=T(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());lt.range;const gt=T(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());gt.range;const F=T(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());F.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:T(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}),F.range;const w=T(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());w.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:T(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}),w.range;function $(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function k(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function j(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function ft(t){var e=t.dateTime,n=t.date,r=t.time,f=t.periods,a=t.days,c=t.shortDays,C=t.months,d=t.shortMonths,X=O(f),Lt=Q(f),Zt=O(a),bt=Q(a),Vt=O(c),Wt=Q(c),jt=O(C),Ot=Q(C),Qt=O(d),Xt=Q(d),Y={a:_t,A:$t,b:kt,B:Rt,c:null,d:Dt,e:Dt,f:We,g:Pe,G:Ee,H:Ze,I:be,j:Ve,L:yt,m:je,M:Oe,p:Kt,q:te,Q:Yt,s:xt,S:Qe,u:Xe,U:qe,V:ze,w:Je,W:Ie,x:null,X:null,y:Ne,Y:Be,Z:Ge,"%":wt},x={a:ee,A:ne,b:re,B:ue,c:null,d:vt,e:vt,f:Re,g:sn,G:gn,H:_e,I:$e,j:ke,L:mt,m:Ke,M:tn,p:oe,q:ae,Q:Yt,s:xt,S:en,u:nn,U:rn,V:un,w:on,W:an,x:null,X:null,y:cn,Y:ln,Z:fn,"%":wt},qt={a:Jt,A:It,b:Nt,B:Pt,c:Bt,d:Ut,e:Ut,f:Se,g:Ct,G:ht,H:Mt,I:Mt,j:we,L:He,m:Fe,M:Ye,p:zt,q:me,Q:Ae,s:Le,S:xe,u:Me,U:De,V:ye,w:Ue,W:de,x:Et,X:Gt,y:Ct,Y:ht,Z:ve,"%":pe};Y.x=v(n,Y),Y.X=v(r,Y),Y.c=v(e,Y),x.x=v(n,x),x.X=v(r,x),x.c=v(e,x);function v(o,i){return function(s){var u=[],U=-1,g=0,M=o.length,D,H,K;for(s instanceof Date||(s=new Date(+s));++U53)return null;"w"in u||(u.w=1),"Z"in u?(g=k(j(u.y,0,1)),M=g.getUTCDay(),g=M>4||M===0?N.ceil(g):N(g),g=I.offset(g,(u.V-1)*7),u.y=g.getUTCFullYear(),u.m=g.getUTCMonth(),u.d=g.getUTCDate()+(u.w+6)%7):(g=$(j(u.y,0,1)),M=g.getDay(),g=M>4||M===0?W.ceil(g):W(g),g=J.offset(g,(u.V-1)*7),u.y=g.getFullYear(),u.m=g.getMonth(),u.d=g.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),M="Z"in u?k(j(u.y,0,1)).getUTCDay():$(j(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(M+5)%7:u.w+u.U*7-(M+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,k(u)):$(u)}}function q(o,i,s,u){for(var U=0,g=i.length,M=s.length,D,H;U=M)return-1;if(D=i.charCodeAt(U++),D===37){if(D=i.charAt(U++),H=qt[D in Tt?i.charAt(U++):D],!H||(u=H(o,s,u))<0)return-1}else if(D!=s.charCodeAt(u++))return-1}return u}function zt(o,i,s){var u=X.exec(i.slice(s));return u?(o.p=Lt.get(u[0].toLowerCase()),s+u[0].length):-1}function Jt(o,i,s){var u=Vt.exec(i.slice(s));return u?(o.w=Wt.get(u[0].toLowerCase()),s+u[0].length):-1}function It(o,i,s){var u=Zt.exec(i.slice(s));return u?(o.w=bt.get(u[0].toLowerCase()),s+u[0].length):-1}function Nt(o,i,s){var u=Qt.exec(i.slice(s));return u?(o.m=Xt.get(u[0].toLowerCase()),s+u[0].length):-1}function Pt(o,i,s){var u=jt.exec(i.slice(s));return u?(o.m=Ot.get(u[0].toLowerCase()),s+u[0].length):-1}function Bt(o,i,s){return q(o,e,i,s)}function Et(o,i,s){return q(o,n,i,s)}function Gt(o,i,s){return q(o,r,i,s)}function _t(o){return c[o.getDay()]}function $t(o){return a[o.getDay()]}function kt(o){return d[o.getMonth()]}function Rt(o){return C[o.getMonth()]}function Kt(o){return f[+(o.getHours()>=12)]}function te(o){return 1+~~(o.getMonth()/3)}function ee(o){return c[o.getUTCDay()]}function ne(o){return a[o.getUTCDay()]}function re(o){return d[o.getUTCMonth()]}function ue(o){return C[o.getUTCMonth()]}function oe(o){return f[+(o.getUTCHours()>=12)]}function ae(o){return 1+~~(o.getUTCMonth()/3)}return{format:function(o){var i=v(o+="",Y);return i.toString=function(){return o},i},parse:function(o){var i=R(o+="",!1);return i.toString=function(){return o},i},utcFormat:function(o){var i=v(o+="",x);return i.toString=function(){return o},i},utcParse:function(o){var i=R(o+="",!0);return i.toString=function(){return o},i}}}var Tt={"-":"",_:" ",0:"0"},h=/^\s*\d+/,Te=/^%/,he=/[\\^$*+?|[\]().{}]/g;function l(t,e,n){var r=t<0?"-":"",f=(r?-t:t)+"",a=f.length;return r+(a[e.toLowerCase(),n]))}function Ue(t,e,n){var r=h.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Me(t,e,n){var r=h.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function De(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ye(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function de(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=h.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ct(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ve(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function me(t,e,n){var r=h.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Fe(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ut(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function we(t,e,n){var r=h.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Mt(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ye(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function xe(t,e,n){var r=h.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function He(t,e,n){var r=h.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Se(t,e,n){var r=h.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pe(t,e,n){var r=Te.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ae(t,e,n){var r=h.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=h.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Dt(t,e){return l(t.getDate(),e,2)}function Ze(t,e){return l(t.getHours(),e,2)}function be(t,e){return l(t.getHours()%12||12,e,2)}function Ve(t,e){return l(1+J.count(F(t),t),e,3)}function yt(t,e){return l(t.getMilliseconds(),e,3)}function We(t,e){return yt(t,e)+"000"}function je(t,e){return l(t.getMonth()+1,e,2)}function Oe(t,e){return l(t.getMinutes(),e,2)}function Qe(t,e){return l(t.getSeconds(),e,2)}function Xe(t){var e=t.getDay();return e===0?7:e}function qe(t,e){return l(G.count(F(t)-1,t),e,2)}function dt(t){var e=t.getDay();return e>=4||e===0?p(t):p.ceil(t)}function ze(t,e){return t=dt(t),l(p.count(F(t),t)+(F(t).getDay()===4),e,2)}function Je(t){return t.getDay()}function Ie(t,e){return l(W.count(F(t)-1,t),e,2)}function Ne(t,e){return l(t.getFullYear()%100,e,2)}function Pe(t,e){return t=dt(t),l(t.getFullYear()%100,e,2)}function Be(t,e){return l(t.getFullYear()%1e4,e,4)}function Ee(t,e){var n=t.getDay();return t=n>=4||n===0?p(t):p.ceil(t),l(t.getFullYear()%1e4,e,4)}function Ge(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+l(e/60|0,"0",2)+l(e%60,"0",2)}function vt(t,e){return l(t.getUTCDate(),e,2)}function _e(t,e){return l(t.getUTCHours(),e,2)}function $e(t,e){return l(t.getUTCHours()%12||12,e,2)}function ke(t,e){return l(1+I.count(w(t),t),e,3)}function mt(t,e){return l(t.getUTCMilliseconds(),e,3)}function Re(t,e){return mt(t,e)+"000"}function Ke(t,e){return l(t.getUTCMonth()+1,e,2)}function tn(t,e){return l(t.getUTCMinutes(),e,2)}function en(t,e){return l(t.getUTCSeconds(),e,2)}function nn(t){var e=t.getUTCDay();return e===0?7:e}function rn(t,e){return l(_.count(w(t)-1,t),e,2)}function Ft(t){var e=t.getUTCDay();return e>=4||e===0?b(t):b.ceil(t)}function un(t,e){return t=Ft(t),l(b.count(w(t),t)+(w(t).getUTCDay()===4),e,2)}function on(t){return t.getUTCDay()}function an(t,e){return l(N.count(w(t)-1,t),e,2)}function cn(t,e){return l(t.getUTCFullYear()%100,e,2)}function sn(t,e){return t=Ft(t),l(t.getUTCFullYear()%100,e,2)}function ln(t,e){return l(t.getUTCFullYear()%1e4,e,4)}function gn(t,e){var n=t.getUTCDay();return t=n>=4||n===0?b(t):b.ceil(t),l(t.getUTCFullYear()%1e4,e,4)}function fn(){return"+0000"}function wt(){return"%"}function Yt(t){return+t}function xt(t){return Math.floor(t/1e3)}var V,Ht,St,pt,At;Tn({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Tn(t){return V=ft(t),Ht=V.format,St=V.parse,pt=V.utcFormat,At=V.utcParse,V}export{L as A,et as C,Z as D,m as E,ce as M,z as N,y as O,ut as S,tt as T,_,ft as a,I as b,lt as c,W as d,st as f,it as g,at as h,At as i,E as j,ie as k,gt as l,p as m,St as n,F as o,G as p,pt as r,w as s,Ht as t,ct as u,J as v,nt as w,rt as x,ot as y}; diff --git a/docs/assets/dependency-graph-panel-DI2T4e0o.js b/docs/assets/dependency-graph-panel-DI2T4e0o.js new file mode 100644 index 0000000..1035632 --- /dev/null +++ b/docs/assets/dependency-graph-panel-DI2T4e0o.js @@ -0,0 +1,4 @@ +var Hr=Object.defineProperty;var Vr=(t,e,n)=>e in t?Hr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ie=(t,e,n)=>Vr(t,typeof e!="symbol"?e+"":e,n);import{s as _t,t as q}from"./chunk-LvLJmgfZ.js";import{i as Pt,l as bn,n as Xr,p as It,u as jt}from"./useEvent-DlWF5OMa.js";import{t as Fr}from"./react-BGmjiNul.js";import{$t as Wr,Bn as xn,E as Yr,M as Zr,St as Kr,T as Gr,a as Ur,bn as qr,f as Qr,k as Dt,vn as En,vt as Jr,w as ea}from"./cells-CmJW_FeD.js";import{t as ta}from"./react-dom-C9fstfnp.js";import{t as Re}from"./compiler-runtime-DeeZ7FnK.js";import"./config-CENq_7Pd.js";import{t as na}from"./jsx-runtime-DN_bIXfG.js";import{r as oa,t as rt}from"./button-B8cGZzP5.js";import{t as Ve}from"./cn-C1rgT0yh.js";import"./dist-CAcX026F.js";import{r as ra}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{t as Rt}from"./createLucideIcon-CW2xpJ57.js";import{a as aa,i as ia,t as sa}from"./useDependencyPanelTab-C1afckCJ.js";import{h as la}from"./select-D9lTzMzP.js";import{l as da,u as ca}from"./download-C_slsU-7.js";import{t as ua}from"./ellipsis-vertical-CasjS3M6.js";import{t as ha}from"./settings-MTlHVxz3.js";import{t as ga}from"./square-function-DxXFdbn8.js";import{t as fa}from"./workflow-ZGK5flRg.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import"./Combination-D1TsGrBC.js";import{t as pa}from"./tooltip-CvjcEpZC.js";import{i as ma,r as ya,t as va}from"./popover-DtnzNVk-.js";import{n as ba}from"./useDebounce-em3gna-v.js";import{i as xa,t as At}from"./cell-link-D7bPw7Fz.js";import"./es-BJsT6vfZ.js";import{a as Ea,i as wa,t as Sa}from"./focus-KGgBDCvb.js";import{t as Ca}from"./label-CqyOmxjL.js";import"./esm-D2_Kx6xF.js";import{b as Na}from"./timer-CPT_vXom.js";import{a as Bt,c as zt,i as ka,l as Lt,n as Xe,o as Ma,r as Oa,s as wn,t as _a,u as ht}from"./src-Bp_72rVO.js";import{r as Pa}from"./name-cell-input-Dc5Oz84d.js";import"./multi-icon-6ulZXArq.js";import{n as Ia,t as Sn}from"./common-C2MMmHt4.js";var ja=Rt("arrow-right-from-line",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]),Da=Rt("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]),Ra=Rt("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);function he(t){if(typeof t=="string"||typeof t=="number")return""+t;let e="";if(Array.isArray(t))for(let n=0,o;nt;function Cn(t,e=La,n){let o=za(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return Ba(o),o}var Nn=(t,e)=>{let n=ca(t),o=(i,l=e)=>Cn(n,i,l);return Object.assign(o,n),o},$a=(t,e)=>t?Nn(t,e):Nn;function ue(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[o,i]of t)if(!Object.is(i,e.get(o)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let o of t)if(!e.has(o))return!1;return!0}let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let o of n)if(!Object.prototype.hasOwnProperty.call(e,o)||!Object.is(t[o],e[o]))return!1;return!0}var gt=t=>()=>t;function $t(t,{sourceEvent:e,subject:n,target:o,identifier:i,active:l,x:a,y:d,dx:s,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}$t.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Ta(t){return!t.ctrlKey&&!t.button}function Ha(){return this.parentNode}function Va(t,e){return e??{x:t.x,y:t.y}}function Xa(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fa(){var t=Ta,e=Ha,n=Va,o=Xa,i={},l=Na("start","drag","end"),a=0,d,s,c,u,r=0;function g(p){p.on("mousedown.drag",h).filter(o).on("touchstart.drag",y).on("touchmove.drag",x,Ma).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(p,S){if(!(u||!t.call(this,p,S))){var k=N(this,e.call(this,p,S),p,S,"mouse");k&&(ht(p.view).on("mousemove.drag",m,wn).on("mouseup.drag",f,wn),Oa(p.view),zt(p),c=!1,d=p.clientX,s=p.clientY,k("start",p))}}function m(p){if(Bt(p),!c){var S=p.clientX-d,k=p.clientY-s;c=S*S+k*k>r}i.mouse("drag",p)}function f(p){ht(p.view).on("mousemove.drag mouseup.drag",null),ka(p.view,c),Bt(p),i.mouse("end",p)}function y(p,S){if(t.call(this,p,S)){var k=p.changedTouches,_=e.call(this,p,S),P=k.length,I,E;for(I=0;I"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,e)=>`Couldn't create edge for ${t?"target":"source"} handle id: "${t?e.targetHandle:e.sourceHandle}", edge id: ${e.id}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`},kn=xe.error001();function ne(t,e){let n=(0,v.useContext)(ft);if(n===null)throw Error(kn);return Cn(n,t,e)}var le=()=>{let t=(0,v.useContext)(ft);if(t===null)throw Error(kn);return(0,v.useMemo)(()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe,destroy:t.destroy}),[t])},Ya=t=>t.userSelectionActive?"none":"all";function pt({position:t,children:e,className:n,style:o,...i}){let l=ne(Ya),a=`${t}`.split("-");return v.createElement("div",{className:he(["react-flow__panel",n,...a]),style:{...o,pointerEvents:l},...i},e)}function Za({proOptions:t,position:e="bottom-right"}){return t!=null&&t.hideAttribution?null:v.createElement(pt,{position:e,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},v.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}var Ka=(0,v.memo)(({x:t,y:e,label:n,labelStyle:o={},labelShowBg:i=!0,labelBgStyle:l={},labelBgPadding:a=[2,4],labelBgBorderRadius:d=2,children:s,className:c,...u})=>{let r=(0,v.useRef)(null),[g,h]=(0,v.useState)({x:0,y:0,width:0,height:0}),m=he(["react-flow__edge-textwrapper",c]);return(0,v.useEffect)(()=>{if(r.current){let f=r.current.getBBox();h({x:f.x,y:f.y,width:f.width,height:f.height})}},[n]),n===void 0||!n?null:v.createElement("g",{transform:`translate(${t-g.width/2} ${e-g.height/2})`,className:m,visibility:g.width?"visible":"hidden",...u},i&&v.createElement("rect",{width:g.width+2*a[0],x:-a[0],y:-a[1],height:g.height+2*a[1],className:"react-flow__edge-textbg",style:l,rx:d,ry:d}),v.createElement("text",{className:"react-flow__edge-text",y:g.height/2,dy:"0.3em",ref:r,style:o},n),s)}),Tt=t=>({width:t.offsetWidth,height:t.offsetHeight}),Fe=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),Ht=(t={x:0,y:0},e)=>({x:Fe(t.x,e[0][0],e[1][0]),y:Fe(t.y,e[0][1],e[1][1])}),Mn=(t,e,n)=>tn?-Fe(Math.abs(t-n),1,50)/50:0,On=(t,e)=>[Mn(t.x,35,e.width-35)*20,Mn(t.y,35,e.height-35)*20],_n=t=>{var e;return((e=t.getRootNode)==null?void 0:e.call(t))||(window==null?void 0:window.document)},Ga=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),Vt=({x:t,y:e,width:n,height:o})=>({x:t,y:e,x2:t+n,y2:e+o}),Ua=({x:t,y:e,x2:n,y2:o})=>({x:t,y:e,width:n-t,height:o-e}),Pn=t=>({...t.positionAbsolute||{x:0,y:0},width:t.width||0,height:t.height||0}),Xt=(t,e)=>{let n=Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x)),o=Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y));return Math.ceil(n*o)},qa=t=>me(t.width)&&me(t.height)&&me(t.x)&&me(t.y),me=t=>!isNaN(t)&&isFinite(t),re=Symbol.for("internals"),In=["Enter"," ","Escape"],Qa=(t,e)=>{},Ja=t=>"nativeEvent"in t;function Ft(t){var n,o,i;let e=((i=(o=(n=Ja(t)?t.nativeEvent:t).composedPath)==null?void 0:o.call(n))==null?void 0:i[0])||t.target;return["INPUT","SELECT","TEXTAREA"].includes(e==null?void 0:e.nodeName)||(e==null?void 0:e.hasAttribute("contenteditable"))||!!(e!=null&&e.closest(".nokey"))}var jn=t=>"clientX"in t,Se=(t,e)=>{var l,a;let n=jn(t),o=n?t.clientX:(l=t.touches)==null?void 0:l[0].clientX,i=n?t.clientY:(a=t.touches)==null?void 0:a[0].clientY;return{x:o-((e==null?void 0:e.left)??0),y:i-((e==null?void 0:e.top)??0)}},mt=()=>{var t;return typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)==null?void 0:t.indexOf("Mac"))>=0},at=({id:t,path:e,labelX:n,labelY:o,label:i,labelStyle:l,labelShowBg:a,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:r,markerStart:g,interactionWidth:h=20})=>v.createElement(v.Fragment,null,v.createElement("path",{id:t,style:u,d:e,fill:"none",className:"react-flow__edge-path",markerEnd:r,markerStart:g}),h&&v.createElement("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),i&&me(n)&&me(o)?v.createElement(Ka,{x:n,y:o,label:i,labelStyle:l,labelShowBg:a,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:c}):null);at.displayName="BaseEdge";function it(t,e,n){return n===void 0?n:o=>{let i=e().edges.find(l=>l.id===t);i&&n(o,{...i})}}function Dn({sourceX:t,sourceY:e,targetX:n,targetY:o}){let i=Math.abs(n-t)/2,l=n{let[y,x,b]=Bn({sourceX:t,sourceY:e,sourcePosition:i,targetX:n,targetY:o,targetPosition:l});return v.createElement(at,{path:y,labelX:x,labelY:b,label:a,labelStyle:d,labelShowBg:s,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:r,style:g,markerEnd:h,markerStart:m,interactionWidth:f})});Wt.displayName="SimpleBezierEdge";var zn={[W.Left]:{x:-1,y:0},[W.Right]:{x:1,y:0},[W.Top]:{x:0,y:-1},[W.Bottom]:{x:0,y:1}},ei=({source:t,sourcePosition:e=W.Bottom,target:n})=>e===W.Left||e===W.Right?t.xMath.sqrt((e.x-t.x)**2+(e.y-t.y)**2);function ti({source:t,sourcePosition:e=W.Bottom,target:n,targetPosition:o=W.Top,center:i,offset:l}){let a=zn[e],d=zn[o],s={x:t.x+a.x*l,y:t.y+a.y*l},c={x:n.x+d.x*l,y:n.y+d.y*l},u=ei({source:s,sourcePosition:e,target:c}),r=u.x===0?"y":"x",g=u[r],h=[],m,f,y={x:0,y:0},x={x:0,y:0},[b,N,p,S]=Dn({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(a[r]*d[r]===-1){m=i.x??b,f=i.y??N;let k=[{x:m,y:s.y},{x:m,y:c.y}],_=[{x:s.x,y:f},{x:c.x,y:f}];h=a[r]===g?r==="x"?k:_:r==="x"?_:k}else{let k=[{x:s.x,y:c.y}],_=[{x:c.x,y:s.y}];if(h=r==="x"?a.x===g?_:k:a.y===g?k:_,e===o){let E=Math.abs(t[r]-n[r]);if(E<=l){let w=Math.min(l-1,l-E);a[r]===g?y[r]=(s[r]>t[r]?-1:1)*w:x[r]=(c[r]>n[r]?-1:1)*w}}if(e!==o){let E=r==="x"?"y":"x",w=a[r]===d[E],O=s[E]>c[E],M=s[E]=Math.max(Math.abs(P.y-h[0].y),Math.abs(I.y-h[0].y))?(m=(P.x+I.x)/2,f=h[0].y):(m=h[0].x,f=(P.y+I.y)/2)}return[[t,{x:s.x+y.x,y:s.y+y.y},...h,{x:c.x+x.x,y:c.y+x.y},n],m,f,p,S]}function ni(t,e,n,o){let i=Math.min(Ln(t,e)/2,Ln(e,n)/2,o),{x:l,y:a}=e;if(t.x===l&&l===n.x||t.y===a&&a===n.y)return`L${l} ${a}`;if(t.y===a){let s=t.x{let b="";return b=x>0&&x{let[x,b,N]=Yt({sourceX:t,sourceY:e,sourcePosition:r,targetX:n,targetY:o,targetPosition:g,borderRadius:f==null?void 0:f.borderRadius,offset:f==null?void 0:f.offset});return v.createElement(at,{path:x,labelX:b,labelY:N,label:i,labelStyle:l,labelShowBg:a,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:h,markerStart:m,interactionWidth:y})});bt.displayName="SmoothStepEdge";var Zt=(0,v.memo)(t=>{var e;return v.createElement(bt,{...t,pathOptions:(0,v.useMemo)(()=>{var n;return{borderRadius:0,offset:(n=t.pathOptions)==null?void 0:n.offset}},[(e=t.pathOptions)==null?void 0:e.offset])})});Zt.displayName="StepEdge";function oi({sourceX:t,sourceY:e,targetX:n,targetY:o}){let[i,l,a,d]=Dn({sourceX:t,sourceY:e,targetX:n,targetY:o});return[`M ${t},${e}L ${n},${o}`,i,l,a,d]}var Kt=(0,v.memo)(({sourceX:t,sourceY:e,targetX:n,targetY:o,label:i,labelStyle:l,labelShowBg:a,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:r,markerStart:g,interactionWidth:h})=>{let[m,f,y]=oi({sourceX:t,sourceY:e,targetX:n,targetY:o});return v.createElement(at,{path:m,labelX:f,labelY:y,label:i,labelStyle:l,labelShowBg:a,labelBgStyle:d,labelBgPadding:s,labelBgBorderRadius:c,style:u,markerEnd:r,markerStart:g,interactionWidth:h})});Kt.displayName="StraightEdge";function xt(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function $n({pos:t,x1:e,y1:n,x2:o,y2:i,c:l}){switch(t){case W.Left:return[e-xt(e-o,l),n];case W.Right:return[e+xt(o-e,l),n];case W.Top:return[e,n-xt(n-i,l)];case W.Bottom:return[e,n+xt(i-n,l)]}}function Tn({sourceX:t,sourceY:e,sourcePosition:n=W.Bottom,targetX:o,targetY:i,targetPosition:l=W.Top,curvature:a=.25}){let[d,s]=$n({pos:n,x1:t,y1:e,x2:o,y2:i,c:a}),[c,u]=$n({pos:l,x1:o,y1:i,x2:t,y2:e,c:a}),[r,g,h,m]=Rn({sourceX:t,sourceY:e,targetX:o,targetY:i,sourceControlX:d,sourceControlY:s,targetControlX:c,targetControlY:u});return[`M${t},${e} C${d},${s} ${c},${u} ${o},${i}`,r,g,h,m]}var Et=(0,v.memo)(({sourceX:t,sourceY:e,targetX:n,targetY:o,sourcePosition:i=W.Bottom,targetPosition:l=W.Top,label:a,labelStyle:d,labelShowBg:s,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:r,style:g,markerEnd:h,markerStart:m,pathOptions:f,interactionWidth:y})=>{let[x,b,N]=Tn({sourceX:t,sourceY:e,sourcePosition:i,targetX:n,targetY:o,targetPosition:l,curvature:f==null?void 0:f.curvature});return v.createElement(at,{path:x,labelX:b,labelY:N,label:a,labelStyle:d,labelShowBg:s,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:r,style:g,markerEnd:h,markerStart:m,interactionWidth:y})});Et.displayName="BezierEdge";var Gt=(0,v.createContext)(null),ri=Gt.Provider;Gt.Consumer;var ai=()=>(0,v.useContext)(Gt),ii=t=>"id"in t&&"source"in t&&"target"in t,si=({source:t,sourceHandle:e,target:n,targetHandle:o})=>`reactflow__edge-${t}${e||""}-${n}${o||""}`,Ut=(t,e)=>t===void 0?"":typeof t=="string"?t:`${e?`${e}__`:""}${Object.keys(t).sort().map(n=>`${n}=${t[n]}`).join("&")}`,li=(t,e)=>e.some(n=>n.source===t.source&&n.target===t.target&&(n.sourceHandle===t.sourceHandle||!n.sourceHandle&&!t.sourceHandle)&&(n.targetHandle===t.targetHandle||!n.targetHandle&&!t.targetHandle)),di=(t,e)=>{if(!t.source||!t.target)return xe.error006(),e;let n;return n=ii(t)?{...t}:{...t,id:si(t)},li(n,e)?e:e.concat(n)},qt=({x:t,y:e},[n,o,i],l,[a,d])=>{let s={x:(t-n)/i,y:(e-o)/i};return l?{x:a*Math.round(s.x/a),y:d*Math.round(s.y/d)}:s},Hn=({x:t,y:e},[n,o,i])=>({x:t*i+n,y:e*i+o}),Ze=(t,e=[0,0])=>{if(!t)return{x:0,y:0,positionAbsolute:{x:0,y:0}};let n=(t.width??0)*e[0],o=(t.height??0)*e[1],i={x:t.position.x-n,y:t.position.y-o};return{...i,positionAbsolute:t.positionAbsolute?{x:t.positionAbsolute.x-n,y:t.positionAbsolute.y-o}:i}},Qt=(t,e=[0,0])=>t.length===0?{x:0,y:0,width:0,height:0}:Ua(t.reduce((n,o)=>{let{x:i,y:l}=Ze(o,e).positionAbsolute;return Ga(n,Vt({x:i,y:l,width:o.width||0,height:o.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),Vn=(t,e,[n,o,i]=[0,0,1],l=!1,a=!1,d=[0,0])=>{let s={x:(e.x-n)/i,y:(e.y-o)/i,width:e.width/i,height:e.height/i},c=[];return t.forEach(u=>{let{width:r,height:g,selectable:h=!0,hidden:m=!1}=u;if(a&&!h||m)return!1;let{positionAbsolute:f}=Ze(u,d),y=Xt(s,{x:f.x,y:f.y,width:r||0,height:g||0}),x=r===void 0||g===void 0||r===null||g===null,b=l&&y>0,N=(r||0)*(g||0);(x||b||y>=N||u.dragging)&&c.push(u)}),c},Xn=(t,e)=>{let n=t.map(o=>o.id);return e.filter(o=>n.includes(o.source)||n.includes(o.target))},Fn=(t,e,n,o,i,l=.1)=>{let a=e/(t.width*(1+l)),d=n/(t.height*(1+l)),s=Fe(Math.min(a,d),o,i),c=t.x+t.width/2,u=t.y+t.height/2;return{x:e/2-c*s,y:n/2-u*s,zoom:s}},Be=(t,e=0)=>t.transition().duration(e);function Wn(t,e,n,o){return(e[n]||[]).reduce((i,l)=>{var a,d;return`${t.id}-${l.id}-${n}`!==o&&i.push({id:l.id||null,type:n,nodeId:t.id,x:(((a=t.positionAbsolute)==null?void 0:a.x)??0)+l.x+l.width/2,y:(((d=t.positionAbsolute)==null?void 0:d.y)??0)+l.y+l.height/2}),i},[])}function ci(t,e,n,o,i,l){let{x:a,y:d}=Se(t),s=e.elementsFromPoint(a,d).find(h=>h.classList.contains("react-flow__handle"));if(s){let h=s.getAttribute("data-nodeid");if(h){let m=Jt(void 0,s),f=s.getAttribute("data-handleid"),y=l({nodeId:h,id:f,type:m});if(y){let x=i.find(b=>b.nodeId===h&&b.type===m&&b.id===f);return{handle:{id:f,type:m,nodeId:h,x:(x==null?void 0:x.x)||n.x,y:(x==null?void 0:x.y)||n.y},validHandleResult:y}}}}let c=[],u=1/0;if(i.forEach(h=>{let m=Math.sqrt((h.x-n.x)**2+(h.y-n.y)**2);if(m<=o){let f=l(h);m<=u&&(mh.isValid),g=c.some(({handle:h})=>h.type==="target");return c.find(({handle:h,validHandleResult:m})=>g?h.type==="target":r?m.isValid:!0)||c[0]}var ui={source:null,target:null,sourceHandle:null,targetHandle:null},Yn=()=>({handleDomNode:null,isValid:!1,connection:ui,endHandle:null});function Zn(t,e,n,o,i,l,a){let d=i==="target",s=a.querySelector(`.react-flow__handle[data-id="${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`),c={...Yn(),handleDomNode:s};if(s){let u=Jt(void 0,s),r=s.getAttribute("data-nodeid"),g=s.getAttribute("data-handleid"),h=s.classList.contains("connectable"),m=s.classList.contains("connectableend"),f={source:d?r:n,sourceHandle:d?g:o,target:d?n:r,targetHandle:d?o:g};c.connection=f,h&&m&&(e===We.Strict?d&&u==="source"||!d&&u==="target":r!==n||g!==o)&&(c.endHandle={nodeId:r,handleId:g,type:u},c.isValid=l(f))}return c}function hi({nodes:t,nodeId:e,handleId:n,handleType:o}){return t.reduce((i,l)=>{if(l[re]){let{handleBounds:a}=l[re],d=[],s=[];a&&(d=Wn(l,a,"source",`${e}-${n}-${o}`),s=Wn(l,a,"target",`${e}-${n}-${o}`)),i.push(...d,...s)}return i},[])}function Jt(t,e){return t||(e!=null&&e.classList.contains("target")?"target":e!=null&&e.classList.contains("source")?"source":null)}function en(t){t==null||t.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function gi(t,e){let n=null;return e?n="valid":t&&!e&&(n="invalid"),n}function Kn({event:t,handleId:e,nodeId:n,onConnect:o,isTarget:i,getState:l,setState:a,isValidConnection:d,edgeUpdaterType:s,onReconnectEnd:c}){let u=_n(t.target),{connectionMode:r,domNode:g,autoPanOnConnect:h,connectionRadius:m,onConnectStart:f,panBy:y,getNodes:x,cancelConnection:b}=l(),N=0,p,{x:S,y:k}=Se(t),_=u==null?void 0:u.elementFromPoint(S,k),P=Jt(s,_),I=g==null?void 0:g.getBoundingClientRect();if(!I||!P)return;let E,w=Se(t,I),O=!1,M=null,C=!1,R=null,L=hi({nodes:x(),nodeId:n,handleId:e,handleType:P}),H=()=>{if(!h)return;let[$,V]=On(w,I);y({x:$,y:V}),N=requestAnimationFrame(H)};a({connectionPosition:w,connectionStatus:null,connectionNodeId:n,connectionHandleId:e,connectionHandleType:P,connectionStartHandle:{nodeId:n,handleId:e,type:P},connectionEndHandle:null}),f==null||f(t,{nodeId:n,handleId:e,handleType:P});function F($){let{transform:V}=l();w=Se($,I);let{handle:X,validHandleResult:Z}=ci($,u,qt(w,V,!1,[1,1]),m,L,U=>Zn(U,r,n,e,i?"target":"source",d,u));if(p=X,O||(O=(H(),!0)),R=Z.handleDomNode,M=Z.connection,C=Z.isValid,a({connectionPosition:p&&C?Hn({x:p.x,y:p.y},V):w,connectionStatus:gi(!!p,C),connectionEndHandle:Z.endHandle}),!p&&!C&&!R)return en(E);M.source!==M.target&&R&&(en(E),E=R,R.classList.add("connecting","react-flow__handle-connecting"),R.classList.toggle("valid",C),R.classList.toggle("react-flow__handle-valid",C))}function D($){var V,X;(p||R)&&M&&C&&(o==null||o(M)),(X=(V=l()).onConnectEnd)==null||X.call(V,$),s&&(c==null||c($)),en(E),b(),cancelAnimationFrame(N),O=!1,C=!1,M=null,R=null,u.removeEventListener("mousemove",F),u.removeEventListener("mouseup",D),u.removeEventListener("touchmove",F),u.removeEventListener("touchend",D)}u.addEventListener("mousemove",F),u.addEventListener("mouseup",D),u.addEventListener("touchmove",F),u.addEventListener("touchend",D)}var Gn=()=>!0,fi=t=>({connectionStartHandle:t.connectionStartHandle,connectOnClick:t.connectOnClick,noPanClassName:t.noPanClassName}),pi=(t,e,n)=>o=>{let{connectionStartHandle:i,connectionEndHandle:l,connectionClickStartHandle:a}=o;return{connecting:(i==null?void 0:i.nodeId)===t&&(i==null?void 0:i.handleId)===e&&(i==null?void 0:i.type)===n||(l==null?void 0:l.nodeId)===t&&(l==null?void 0:l.handleId)===e&&(l==null?void 0:l.type)===n,clickConnecting:(a==null?void 0:a.nodeId)===t&&(a==null?void 0:a.handleId)===e&&(a==null?void 0:a.type)===n}},Un=(0,v.forwardRef)(({type:t="source",position:e=W.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:i=!0,isConnectableEnd:l=!0,id:a,onConnect:d,children:s,className:c,onMouseDown:u,onTouchStart:r,...g},h)=>{var I,E;let m=a||null,f=t==="target",y=le(),x=ai(),{connectOnClick:b,noPanClassName:N}=ne(fi,ue),{connecting:p,clickConnecting:S}=ne(pi(x,m,t),ue);x||((E=(I=y.getState()).onError)==null||E.call(I,"010",xe.error010()));let k=w=>{let{defaultEdgeOptions:O,onConnect:M,hasDefaultEdges:C}=y.getState(),R={...O,...w};if(C){let{edges:L,setEdges:H}=y.getState();H(di(R,L))}M==null||M(R),d==null||d(R)},_=w=>{if(!x)return;let O=jn(w);i&&(O&&w.button===0||!O)&&Kn({event:w,handleId:m,nodeId:x,onConnect:k,isTarget:f,getState:y.getState,setState:y.setState,isValidConnection:n||y.getState().isValidConnection||Gn}),O?u==null||u(w):r==null||r(w)},P=w=>{let{onClickConnectStart:O,onClickConnectEnd:M,connectionClickStartHandle:C,connectionMode:R,isValidConnection:L}=y.getState();if(!x||!C&&!i)return;if(!C){O==null||O(w,{nodeId:x,handleId:m,handleType:t}),y.setState({connectionClickStartHandle:{nodeId:x,type:t,handleId:m}});return}let H=_n(w.target),F=n||L||Gn,{connection:D,isValid:$}=Zn({nodeId:x,id:m,type:t},R,C.nodeId,C.handleId||null,C.type,F,H);$&&k(D),M==null||M(w),y.setState({connectionClickStartHandle:null})};return v.createElement("div",{"data-handleid":m,"data-nodeid":x,"data-handlepos":e,"data-id":`${x}-${m}-${t}`,className:he(["react-flow__handle",`react-flow__handle-${e}`,"nodrag",N,c,{source:!f,target:f,connectable:o,connectablestart:i,connectableend:l,connecting:S,connectionindicator:o&&(i&&!p||l&&p)}]),onMouseDown:_,onTouchStart:_,onClick:b?P:void 0,ref:h,...g},s)});Un.displayName="Handle";var Ce=(0,v.memo)(Un),qn=({data:t,isConnectable:e,targetPosition:n=W.Top,sourcePosition:o=W.Bottom})=>v.createElement(v.Fragment,null,v.createElement(Ce,{type:"target",position:n,isConnectable:e}),t==null?void 0:t.label,v.createElement(Ce,{type:"source",position:o,isConnectable:e}));qn.displayName="DefaultNode";var tn=(0,v.memo)(qn),Qn=({data:t,isConnectable:e,sourcePosition:n=W.Bottom})=>v.createElement(v.Fragment,null,t==null?void 0:t.label,v.createElement(Ce,{type:"source",position:n,isConnectable:e}));Qn.displayName="InputNode";var Jn=(0,v.memo)(Qn),eo=({data:t,isConnectable:e,targetPosition:n=W.Top})=>v.createElement(v.Fragment,null,v.createElement(Ce,{type:"target",position:n,isConnectable:e}),t==null?void 0:t.label);eo.displayName="OutputNode";var to=(0,v.memo)(eo),nn=()=>null;nn.displayName="GroupNode";var mi=t=>({selectedNodes:t.getNodes().filter(e=>e.selected),selectedEdges:t.edges.filter(e=>e.selected).map(e=>({...e}))}),wt=t=>t.id;function yi(t,e){return ue(t.selectedNodes.map(wt),e.selectedNodes.map(wt))&&ue(t.selectedEdges.map(wt),e.selectedEdges.map(wt))}var no=(0,v.memo)(({onSelectionChange:t})=>{let e=le(),{selectedNodes:n,selectedEdges:o}=ne(mi,yi);return(0,v.useEffect)(()=>{let i={nodes:n,edges:o};t==null||t(i),e.getState().onSelectionChange.forEach(l=>l(i))},[n,o,t]),null});no.displayName="SelectionListener";var vi=t=>!!t.onSelectionChange;function bi({onSelectionChange:t}){let e=ne(vi);return t||e?v.createElement(no,{onSelectionChange:t}):null}var xi=t=>({setNodes:t.setNodes,setEdges:t.setEdges,setDefaultNodesAndEdges:t.setDefaultNodesAndEdges,setMinZoom:t.setMinZoom,setMaxZoom:t.setMaxZoom,setTranslateExtent:t.setTranslateExtent,setNodeExtent:t.setNodeExtent,reset:t.reset});function Ke(t,e){(0,v.useEffect)(()=>{t!==void 0&&e(t)},[t])}function Q(t,e,n){(0,v.useEffect)(()=>{e!==void 0&&n({[t]:e})},[e])}var Ei=({nodes:t,edges:e,defaultNodes:n,defaultEdges:o,onConnect:i,onConnectStart:l,onConnectEnd:a,onClickConnectStart:d,onClickConnectEnd:s,nodesDraggable:c,nodesConnectable:u,nodesFocusable:r,edgesFocusable:g,edgesUpdatable:h,elevateNodesOnSelect:m,minZoom:f,maxZoom:y,nodeExtent:x,onNodesChange:b,onEdgesChange:N,elementsSelectable:p,connectionMode:S,snapGrid:k,snapToGrid:_,translateExtent:P,connectOnClick:I,defaultEdgeOptions:E,fitView:w,fitViewOptions:O,onNodesDelete:M,onEdgesDelete:C,onNodeDrag:R,onNodeDragStart:L,onNodeDragStop:H,onSelectionDrag:F,onSelectionDragStart:D,onSelectionDragStop:$,noPanClassName:V,nodeOrigin:X,rfId:Z,autoPanOnConnect:U,autoPanOnNodeDrag:j,onError:A,connectionRadius:B,isValidConnection:T,nodeDragThreshold:Y})=>{let{setNodes:G,setEdges:ee,setDefaultNodesAndEdges:ae,setMinZoom:ge,setMaxZoom:oe,setTranslateExtent:J,setNodeExtent:de,reset:te}=ne(xi,ue),K=le();return(0,v.useEffect)(()=>{let fe=o==null?void 0:o.map(Me=>({...Me,...E}));return ae(n,fe),()=>{te()}},[]),Q("defaultEdgeOptions",E,K.setState),Q("connectionMode",S,K.setState),Q("onConnect",i,K.setState),Q("onConnectStart",l,K.setState),Q("onConnectEnd",a,K.setState),Q("onClickConnectStart",d,K.setState),Q("onClickConnectEnd",s,K.setState),Q("nodesDraggable",c,K.setState),Q("nodesConnectable",u,K.setState),Q("nodesFocusable",r,K.setState),Q("edgesFocusable",g,K.setState),Q("edgesUpdatable",h,K.setState),Q("elementsSelectable",p,K.setState),Q("elevateNodesOnSelect",m,K.setState),Q("snapToGrid",_,K.setState),Q("snapGrid",k,K.setState),Q("onNodesChange",b,K.setState),Q("onEdgesChange",N,K.setState),Q("connectOnClick",I,K.setState),Q("fitViewOnInit",w,K.setState),Q("fitViewOnInitOptions",O,K.setState),Q("onNodesDelete",M,K.setState),Q("onEdgesDelete",C,K.setState),Q("onNodeDrag",R,K.setState),Q("onNodeDragStart",L,K.setState),Q("onNodeDragStop",H,K.setState),Q("onSelectionDrag",F,K.setState),Q("onSelectionDragStart",D,K.setState),Q("onSelectionDragStop",$,K.setState),Q("noPanClassName",V,K.setState),Q("nodeOrigin",X,K.setState),Q("rfId",Z,K.setState),Q("autoPanOnConnect",U,K.setState),Q("autoPanOnNodeDrag",j,K.setState),Q("onError",A,K.setState),Q("connectionRadius",B,K.setState),Q("isValidConnection",T,K.setState),Q("nodeDragThreshold",Y,K.setState),Ke(t,G),Ke(e,ee),Ke(f,ge),Ke(y,oe),Ke(P,J),Ke(x,de),null},oo={display:"none"},wi={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ro="react-flow__node-desc",ao="react-flow__edge-desc",Si="react-flow__aria-live",Ci=t=>t.ariaLiveMessage;function Ni({rfId:t}){let e=ne(Ci);return v.createElement("div",{id:`${Si}-${t}`,"aria-live":"assertive","aria-atomic":"true",style:wi},e)}function ki({rfId:t,disableKeyboardA11y:e}){return v.createElement(v.Fragment,null,v.createElement("div",{id:`${ro}-${t}`,style:oo},"Press enter or space to select a node.",!e&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),v.createElement("div",{id:`${ao}-${t}`,style:oo},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!e&&v.createElement(Ni,{rfId:t}))}var st=(t=null,e={actInsideInputWithModifier:!0})=>{let[n,o]=(0,v.useState)(!1),i=(0,v.useRef)(!1),l=(0,v.useRef)(new Set([])),[a,d]=(0,v.useMemo)(()=>{if(t!==null){let s=(Array.isArray(t)?t:[t]).filter(c=>typeof c=="string").map(c=>c.split("+"));return[s,s.reduce((c,u)=>c.concat(...u),[])]}return[[],[]]},[t]);return(0,v.useEffect)(()=>{let s=typeof document<"u"?document:null,c=(e==null?void 0:e.target)||s;if(t!==null){let u=h=>{if(i.current=h.ctrlKey||h.metaKey||h.shiftKey,(!i.current||i.current&&!e.actInsideInputWithModifier)&&Ft(h))return!1;let m=so(h.code,d);l.current.add(h[m]),io(a,l.current,!1)&&(h.preventDefault(),o(!0))},r=h=>{if((!i.current||i.current&&!e.actInsideInputWithModifier)&&Ft(h))return!1;let m=so(h.code,d);io(a,l.current,!0)?(o(!1),l.current.clear()):l.current.delete(h[m]),h.key==="Meta"&&l.current.clear(),i.current=!1},g=()=>{l.current.clear(),o(!1)};return c==null||c.addEventListener("keydown",u),c==null||c.addEventListener("keyup",r),window.addEventListener("blur",g),()=>{c==null||c.removeEventListener("keydown",u),c==null||c.removeEventListener("keyup",r),window.removeEventListener("blur",g)}}},[t,o]),n};function io(t,e,n){return t.filter(o=>n||o.length===e.size).some(o=>o.every(i=>e.has(i)))}function so(t,e){return e.includes(t)?"code":"key"}function lo(t,e,n,o){var d,s;let i=t.parentNode||t.parentId;if(!i)return n;let l=e.get(i),a=Ze(l,o);return lo(l,e,{x:(n.x??0)+a.x,y:(n.y??0)+a.y,z:(((d=l[re])==null?void 0:d.z)??0)>(n.z??0)?((s=l[re])==null?void 0:s.z)??0:n.z??0},o)}function co(t,e,n){t.forEach(o=>{var l;let i=o.parentNode||o.parentId;if(i&&!t.has(i))throw Error(`Parent node ${i} not found`);if(i||n!=null&&n[o.id]){let{x:a,y:d,z:s}=lo(o,t,{...o.position,z:((l=o[re])==null?void 0:l.z)??0},e);o.positionAbsolute={x:a,y:d},o[re].z=s,n!=null&&n[o.id]&&(o[re].isParent=!0)}})}function on(t,e,n,o){let i=new Map,l={},a=o?1e3:0;return t.forEach(d=>{var h;let s=(me(d.zIndex)?d.zIndex:0)+(d.selected?a:0),c=e.get(d.id),u={...d,positionAbsolute:{x:d.position.x,y:d.position.y}},r=d.parentNode||d.parentId;r&&(l[r]=!0);let g=(c==null?void 0:c.type)&&(c==null?void 0:c.type)!==d.type;Object.defineProperty(u,re,{enumerable:!1,value:{handleBounds:g||(h=c==null?void 0:c[re])==null?void 0:h.handleBounds,z:s}}),i.set(d.id,u)}),co(i,n,l),i}function uo(t,e={}){let{getNodes:n,width:o,height:i,minZoom:l,maxZoom:a,d3Zoom:d,d3Selection:s,fitViewOnInitDone:c,fitViewOnInit:u,nodeOrigin:r}=t(),g=e.initial&&!c&&u;if(d&&s&&(g||!e.initial)){let h=n().filter(f=>{var x;let y=e.includeHiddenNodes?f.width&&f.height:!f.hidden;return(x=e.nodes)!=null&&x.length?y&&e.nodes.some(b=>b.id===f.id):y}),m=h.every(f=>f.width&&f.height);if(h.length>0&&m){let{x:f,y,zoom:x}=Fn(Qt(h,r),o,i,e.minZoom??l,e.maxZoom??a,e.padding??.1),b=Xe.translate(f,y).scale(x);return typeof e.duration=="number"&&e.duration>0?d.transform(Be(s,e.duration),b):d.transform(s,b),!0}}return!1}function Mi(t,e){return t.forEach(n=>{let o=e.get(n.id);o&&e.set(o.id,{...o,[re]:o[re],selected:n.selected})}),new Map(e)}function Oi(t,e){return e.map(n=>{let o=t.find(i=>i.id===n.id);return o&&(n.selected=o.selected),n})}function St({changedNodes:t,changedEdges:e,get:n,set:o}){let{nodeInternals:i,edges:l,onNodesChange:a,onEdgesChange:d,hasDefaultNodes:s,hasDefaultEdges:c}=n();t!=null&&t.length&&(s&&o({nodeInternals:Mi(t,i)}),a==null||a(t)),e!=null&&e.length&&(c&&o({edges:Oi(e,l)}),d==null||d(e))}var Ge=()=>{},_i={zoomIn:Ge,zoomOut:Ge,zoomTo:Ge,getZoom:()=>1,setViewport:Ge,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Ge,fitBounds:Ge,project:t=>t,screenToFlowPosition:t=>t,flowToScreenPosition:t=>t,viewportInitialized:!1},Pi=t=>({d3Zoom:t.d3Zoom,d3Selection:t.d3Selection}),Ii=()=>{let t=le(),{d3Zoom:e,d3Selection:n}=ne(Pi,ue);return(0,v.useMemo)(()=>n&&e?{zoomIn:o=>e.scaleBy(Be(n,o==null?void 0:o.duration),1.2),zoomOut:o=>e.scaleBy(Be(n,o==null?void 0:o.duration),1/1.2),zoomTo:(o,i)=>e.scaleTo(Be(n,i==null?void 0:i.duration),o),getZoom:()=>t.getState().transform[2],setViewport:(o,i)=>{let[l,a,d]=t.getState().transform,s=Xe.translate(o.x??l,o.y??a).scale(o.zoom??d);e.transform(Be(n,i==null?void 0:i.duration),s)},getViewport:()=>{let[o,i,l]=t.getState().transform;return{x:o,y:i,zoom:l}},fitView:o=>uo(t.getState,o),setCenter:(o,i,l)=>{let{width:a,height:d,maxZoom:s}=t.getState(),c=(l==null?void 0:l.zoom)===void 0?s:l.zoom,u=a/2-o*c,r=d/2-i*c,g=Xe.translate(u,r).scale(c);e.transform(Be(n,l==null?void 0:l.duration),g)},fitBounds:(o,i)=>{let{width:l,height:a,minZoom:d,maxZoom:s}=t.getState(),{x:c,y:u,zoom:r}=Fn(o,l,a,d,s,(i==null?void 0:i.padding)??.1),g=Xe.translate(c,u).scale(r);e.transform(Be(n,i==null?void 0:i.duration),g)},project:o=>{let{transform:i,snapToGrid:l,snapGrid:a}=t.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),qt(o,i,l,a)},screenToFlowPosition:o=>{let{transform:i,snapToGrid:l,snapGrid:a,domNode:d}=t.getState();if(!d)return o;let{x:s,y:c}=d.getBoundingClientRect();return qt({x:o.x-s,y:o.y-c},i,l,a)},flowToScreenPosition:o=>{let{transform:i,domNode:l}=t.getState();if(!l)return o;let{x:a,y:d}=l.getBoundingClientRect(),s=Hn(o,i);return{x:s.x+a,y:s.y+d}},viewportInitialized:!0}:_i,[e,n])};function lt(){let t=Ii(),e=le(),n=(0,v.useCallback)(()=>e.getState().getNodes().map(f=>({...f})),[]),o=(0,v.useCallback)(f=>e.getState().nodeInternals.get(f),[]),i=(0,v.useCallback)(()=>{let{edges:f=[]}=e.getState();return f.map(y=>({...y}))},[]),l=(0,v.useCallback)(f=>{let{edges:y=[]}=e.getState();return y.find(x=>x.id===f)},[]),a=(0,v.useCallback)(f=>{let{getNodes:y,setNodes:x,hasDefaultNodes:b,onNodesChange:N}=e.getState(),p=y(),S=typeof f=="function"?f(p):f;b?x(S):N&&N(S.length===0?p.map(k=>({type:"remove",id:k.id})):S.map(k=>({item:k,type:"reset"})))},[]),d=(0,v.useCallback)(f=>{let{edges:y=[],setEdges:x,hasDefaultEdges:b,onEdgesChange:N}=e.getState(),p=typeof f=="function"?f(y):f;b?x(p):N&&N(p.length===0?y.map(S=>({type:"remove",id:S.id})):p.map(S=>({item:S,type:"reset"})))},[]),s=(0,v.useCallback)(f=>{let y=Array.isArray(f)?f:[f],{getNodes:x,setNodes:b,hasDefaultNodes:N,onNodesChange:p}=e.getState();N?b([...x(),...y]):p&&p(y.map(S=>({item:S,type:"add"})))},[]),c=(0,v.useCallback)(f=>{let y=Array.isArray(f)?f:[f],{edges:x=[],setEdges:b,hasDefaultEdges:N,onEdgesChange:p}=e.getState();N?b([...x,...y]):p&&p(y.map(S=>({item:S,type:"add"})))},[]),u=(0,v.useCallback)(()=>{let{getNodes:f,edges:y=[],transform:x}=e.getState(),[b,N,p]=x;return{nodes:f().map(S=>({...S})),edges:y.map(S=>({...S})),viewport:{x:b,y:N,zoom:p}}},[]),r=(0,v.useCallback)(({nodes:f,edges:y})=>{let{nodeInternals:x,getNodes:b,edges:N,hasDefaultNodes:p,hasDefaultEdges:S,onNodesDelete:k,onEdgesDelete:_,onNodesChange:P,onEdgesChange:I}=e.getState(),E=(f||[]).map(R=>R.id),w=(y||[]).map(R=>R.id),O=b().reduce((R,L)=>{let H=L.parentNode||L.parentId,F=!E.includes(L.id)&&H&&R.find(D=>D.id===H);return(typeof L.deletable!="boolean"||L.deletable)&&(E.includes(L.id)||F)&&R.push(L),R},[]),M=N.filter(R=>typeof R.deletable=="boolean"?R.deletable:!0),C=M.filter(R=>w.includes(R.id));if(O||C){let R=Xn(O,M),L=[...C,...R],H=L.reduce((F,D)=>(F.includes(D.id)||F.push(D.id),F),[]);(S||p)&&(S&&e.setState({edges:N.filter(F=>!H.includes(F.id))}),p&&(O.forEach(F=>{x.delete(F.id)}),e.setState({nodeInternals:new Map(x)}))),H.length>0&&(_==null||_(L),I&&I(H.map(F=>({id:F,type:"remove"})))),O.length>0&&(k==null||k(O),P&&P(O.map(F=>({id:F.id,type:"remove"}))))}},[]),g=(0,v.useCallback)(f=>{let y=qa(f),x=y?null:e.getState().nodeInternals.get(f.id);return!y&&!x?[null,null,y]:[y?f:Pn(x),x,y]},[]),h=(0,v.useCallback)((f,y=!0,x)=>{let[b,N,p]=g(f);return b?(x||e.getState().getNodes()).filter(S=>{if(!p&&(S.id===N.id||!S.positionAbsolute))return!1;let k=Xt(Pn(S),b);return y&&k>0||k>=b.width*b.height}):[]},[]),m=(0,v.useCallback)((f,y,x=!0)=>{let[b]=g(f);if(!b)return!1;let N=Xt(b,y);return x&&N>0||N>=b.width*b.height},[]);return(0,v.useMemo)(()=>({...t,getNodes:n,getNode:o,getEdges:i,getEdge:l,setNodes:a,setEdges:d,addNodes:s,addEdges:c,toObject:u,deleteElements:r,getIntersectingNodes:h,isNodeIntersecting:m}),[t,n,o,i,l,a,d,s,c,u,r,h,m])}var ji={actInsideInputWithModifier:!1},Di=({deleteKeyCode:t,multiSelectionKeyCode:e})=>{let n=le(),{deleteElements:o}=lt(),i=st(t,ji),l=st(e);(0,v.useEffect)(()=>{if(i){let{edges:a,getNodes:d}=n.getState();o({nodes:d().filter(s=>s.selected),edges:a.filter(s=>s.selected)}),n.setState({nodesSelectionActive:!1})}},[i]),(0,v.useEffect)(()=>{n.setState({multiSelectionActive:l})},[l])};function Ri(t){let e=le();(0,v.useEffect)(()=>{let n,o=()=>{var l,a;if(!t.current)return;let i=Tt(t.current);(i.height===0||i.width===0)&&((a=(l=e.getState()).onError)==null||a.call(l,"004",xe.error004())),e.setState({width:i.width||500,height:i.height||500})};return o(),window.addEventListener("resize",o),t.current&&(n=new ResizeObserver(()=>o()),n.observe(t.current)),()=>{window.removeEventListener("resize",o),n&&t.current&&n.unobserve(t.current)}},[])}var rn={position:"absolute",width:"100%",height:"100%",top:0,left:0},Ai=(t,e)=>t.x!==e.x||t.y!==e.y||t.zoom!==e.k,Ct=t=>({x:t.x,y:t.y,zoom:t.k}),Ue=(t,e)=>t.target.closest(`.${e}`),ho=(t,e)=>e===2&&Array.isArray(t)&&t.includes(2),go=t=>{let e=t.ctrlKey&&mt()?10:1;return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*e},Bi=t=>({d3Zoom:t.d3Zoom,d3Selection:t.d3Selection,d3ZoomHandler:t.d3ZoomHandler,userSelectionActive:t.userSelectionActive}),zi=({onMove:t,onMoveStart:e,onMoveEnd:n,onPaneContextMenu:o,zoomOnScroll:i=!0,zoomOnPinch:l=!0,panOnScroll:a=!1,panOnScrollSpeed:d=.5,panOnScrollMode:s=Ye.Free,zoomOnDoubleClick:c=!0,elementsSelectable:u,panOnDrag:r=!0,defaultViewport:g,translateExtent:h,minZoom:m,maxZoom:f,zoomActivationKeyCode:y,preventScrolling:x=!0,children:b,noWheelClassName:N,noPanClassName:p})=>{let S=(0,v.useRef)(),k=le(),_=(0,v.useRef)(!1),P=(0,v.useRef)(!1),I=(0,v.useRef)(null),E=(0,v.useRef)({x:0,y:0,zoom:0}),{d3Zoom:w,d3Selection:O,d3ZoomHandler:M,userSelectionActive:C}=ne(Bi,ue),R=st(y),L=(0,v.useRef)(0),H=(0,v.useRef)(!1),F=(0,v.useRef)();return Ri(I),(0,v.useEffect)(()=>{if(I.current){let D=I.current.getBoundingClientRect(),$=_a().scaleExtent([m,f]).translateExtent(h),V=ht(I.current).call($),X=Xe.translate(g.x,g.y).scale(Fe(g.zoom,m,f)),Z=[[0,0],[D.width,D.height]],U=$.constrain()(X,Z,h);$.transform(V,U),$.wheelDelta(go),k.setState({d3Zoom:$,d3Selection:V,d3ZoomHandler:V.on("wheel.zoom"),transform:[U.x,U.y,U.k],domNode:I.current.closest(".react-flow")})}},[]),(0,v.useEffect)(()=>{O&&w&&(a&&!R&&!C?O.on("wheel.zoom",D=>{if(Ue(D,N))return!1;D.preventDefault(),D.stopImmediatePropagation();let $=O.property("__zoom").k||1;if(D.ctrlKey&&l){let T=Lt(D),Y=$*2**go(D);w.scaleTo(O,Y,T,D);return}let V=D.deltaMode===1?20:1,X=s===Ye.Vertical?0:D.deltaX*V,Z=s===Ye.Horizontal?0:D.deltaY*V;!mt()&&D.shiftKey&&s!==Ye.Vertical&&(X=D.deltaY*V,Z=0),w.translateBy(O,-(X/$)*d,-(Z/$)*d,{internal:!0});let U=Ct(O.property("__zoom")),{onViewportChangeStart:j,onViewportChange:A,onViewportChangeEnd:B}=k.getState();clearTimeout(F.current),H.current||(H.current=!0,e==null||e(D,U),j==null||j(U)),H.current&&(t==null||t(D,U),A==null||A(U),F.current=setTimeout(()=>{n==null||n(D,U),B==null||B(U),H.current=!1},150))},{passive:!1}):M!==void 0&&O.on("wheel.zoom",function(D,$){if(!x&&D.type==="wheel"&&!D.ctrlKey||Ue(D,N))return null;D.preventDefault(),M.call(this,D,$)},{passive:!1}))},[C,a,s,O,w,M,R,l,x,N,e,t,n]),(0,v.useEffect)(()=>{w&&w.on("start",D=>{var X,Z;if(!D.sourceEvent||D.sourceEvent.internal)return null;L.current=(X=D.sourceEvent)==null?void 0:X.button;let{onViewportChangeStart:$}=k.getState(),V=Ct(D.transform);_.current=!0,E.current=V,((Z=D.sourceEvent)==null?void 0:Z.type)==="mousedown"&&k.setState({paneDragging:!0}),$==null||$(V),e==null||e(D.sourceEvent,V)})},[w,e]),(0,v.useEffect)(()=>{w&&(C&&!_.current?w.on("zoom",null):C||w.on("zoom",D=>{var V;let{onViewportChange:$}=k.getState();if(k.setState({transform:[D.transform.x,D.transform.y,D.transform.k]}),P.current=!!(o&&ho(r,L.current??0)),(t||$)&&!((V=D.sourceEvent)!=null&&V.internal)){let X=Ct(D.transform);$==null||$(X),t==null||t(D.sourceEvent,X)}}))},[C,w,t,r,o]),(0,v.useEffect)(()=>{w&&w.on("end",D=>{if(!D.sourceEvent||D.sourceEvent.internal)return null;let{onViewportChangeEnd:$}=k.getState();if(_.current=!1,k.setState({paneDragging:!1}),o&&ho(r,L.current??0)&&!P.current&&o(D.sourceEvent),P.current=!1,(n||$)&&Ai(E.current,D.transform)){let V=Ct(D.transform);E.current=V,clearTimeout(S.current),S.current=setTimeout(()=>{$==null||$(V),n==null||n(D.sourceEvent,V)},a?150:0)}})},[w,a,r,n,o]),(0,v.useEffect)(()=>{w&&w.filter(D=>{let $=R||i,V=l&&D.ctrlKey;if((r===!0||Array.isArray(r)&&r.includes(1))&&D.button===1&&D.type==="mousedown"&&(Ue(D,"react-flow__node")||Ue(D,"react-flow__edge")))return!0;if(!r&&!$&&!a&&!c&&!l||C||!c&&D.type==="dblclick"||Ue(D,N)&&D.type==="wheel"||Ue(D,p)&&(D.type!=="wheel"||a&&D.type==="wheel"&&!R)||!l&&D.ctrlKey&&D.type==="wheel"||!$&&!a&&!V&&D.type==="wheel"||!r&&(D.type==="mousedown"||D.type==="touchstart")||Array.isArray(r)&&!r.includes(D.button)&&D.type==="mousedown")return!1;let X=Array.isArray(r)&&r.includes(D.button)||!D.button||D.button<=1;return(!D.ctrlKey||D.type==="wheel")&&X})},[C,w,i,l,a,c,r,u,R]),v.createElement("div",{className:"react-flow__renderer",ref:I,style:rn},b)},Li=t=>({userSelectionActive:t.userSelectionActive,userSelectionRect:t.userSelectionRect});function $i(){let{userSelectionActive:t,userSelectionRect:e}=ne(Li,ue);return t&&e?v.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:e.width,height:e.height,transform:`translate(${e.x}px, ${e.y}px)`}}):null}function fo(t,e){let n=e.parentNode||e.parentId,o=t.find(i=>i.id===n);if(o){let i=e.position.x+e.width-o.width,l=e.position.y+e.height-o.height;if(i>0||l>0||e.position.x<0||e.position.y<0){if(o.style={...o.style},o.style.width=o.style.width??o.width,o.style.height=o.style.height??o.height,i>0&&(o.style.width+=i),l>0&&(o.style.height+=l),e.position.x<0){let a=Math.abs(e.position.x);o.position.x=o.position.x-a,o.style.width+=a,e.position.x=0}if(e.position.y<0){let a=Math.abs(e.position.y);o.position.y=o.position.y-a,o.style.height+=a,e.position.y=0}o.width=o.style.width,o.height=o.style.height}}}function po(t,e){if(t.some(o=>o.type==="reset"))return t.filter(o=>o.type==="reset").map(o=>o.item);let n=t.filter(o=>o.type==="add").map(o=>o.item);return e.reduce((o,i)=>{let l=t.filter(d=>d.id===i.id);if(l.length===0)return o.push(i),o;let a={...i};for(let d of l)if(d)switch(d.type){case"select":a.selected=d.selected;break;case"position":d.position!==void 0&&(a.position=d.position),d.positionAbsolute!==void 0&&(a.positionAbsolute=d.positionAbsolute),d.dragging!==void 0&&(a.dragging=d.dragging),a.expandParent&&fo(o,a);break;case"dimensions":d.dimensions!==void 0&&(a.width=d.dimensions.width,a.height=d.dimensions.height),d.updateStyle!==void 0&&(a.style={...a.style||{},...d.dimensions}),typeof d.resizing=="boolean"&&(a.resizing=d.resizing),a.expandParent&&fo(o,a);break;case"remove":return o}return o.push(a),o},n)}function mo(t,e){return po(t,e)}function Ti(t,e){return po(t,e)}var Ne=(t,e)=>({id:t,type:"select",selected:e});function qe(t,e){return t.reduce((n,o)=>{let i=e.includes(o.id);return!o.selected&&i?(o.selected=!0,n.push(Ne(o.id,!0))):o.selected&&!i&&(o.selected=!1,n.push(Ne(o.id,!1))),n},[])}var an=(t,e)=>n=>{n.target===e.current&&(t==null||t(n))},Hi=t=>({userSelectionActive:t.userSelectionActive,elementsSelectable:t.elementsSelectable,dragging:t.paneDragging}),yo=(0,v.memo)(({isSelecting:t,selectionMode:e=yt.Full,panOnDrag:n,onSelectionStart:o,onSelectionEnd:i,onPaneClick:l,onPaneContextMenu:a,onPaneScroll:d,onPaneMouseEnter:s,onPaneMouseMove:c,onPaneMouseLeave:u,children:r})=>{let g=(0,v.useRef)(null),h=le(),m=(0,v.useRef)(0),f=(0,v.useRef)(0),y=(0,v.useRef)(),{userSelectionActive:x,elementsSelectable:b,dragging:N}=ne(Hi,ue),p=()=>{h.setState({userSelectionActive:!1,userSelectionRect:null}),m.current=0,f.current=0},S=M=>{l==null||l(M),h.getState().resetSelectedElements(),h.setState({nodesSelectionActive:!1})},k=M=>{if(Array.isArray(n)&&(n!=null&&n.includes(2))){M.preventDefault();return}a==null||a(M)},_=d?M=>d(M):void 0,P=M=>{let{resetSelectedElements:C,domNode:R}=h.getState();if(y.current=R==null?void 0:R.getBoundingClientRect(),!b||!t||M.button!==0||M.target!==g.current||!y.current)return;let{x:L,y:H}=Se(M,y.current);C(),h.setState({userSelectionRect:{width:0,height:0,startX:L,startY:H,x:L,y:H}}),o==null||o(M)},I=M=>{let{userSelectionRect:C,nodeInternals:R,edges:L,transform:H,onNodesChange:F,onEdgesChange:D,nodeOrigin:$,getNodes:V}=h.getState();if(!t||!y.current||!C)return;h.setState({userSelectionActive:!0,nodesSelectionActive:!1});let X=Se(M,y.current),Z=C.startX??0,U=C.startY??0,j={...C,x:X.xG.id),Y=B.map(G=>G.id);if(m.current!==Y.length){m.current=Y.length;let G=qe(A,Y);G.length&&(F==null||F(G))}if(f.current!==T.length){f.current=T.length;let G=qe(L,T);G.length&&(D==null||D(G))}h.setState({userSelectionRect:j})},E=M=>{if(M.button!==0)return;let{userSelectionRect:C}=h.getState();!x&&C&&M.target===g.current&&(S==null||S(M)),h.setState({nodesSelectionActive:m.current>0}),p(),i==null||i(M)},w=M=>{x&&(h.setState({nodesSelectionActive:m.current>0}),i==null||i(M)),p()},O=b&&(t||x);return v.createElement("div",{className:he(["react-flow__pane",{dragging:N,selection:t}]),onClick:O?void 0:an(S,g),onContextMenu:an(k,g),onWheel:an(_,g),onMouseEnter:O?void 0:s,onMouseDown:O?P:void 0,onMouseMove:O?I:c,onMouseUp:O?E:void 0,onMouseLeave:O?w:u,ref:g,style:rn},r,v.createElement($i,null))});yo.displayName="Pane";function vo(t,e){let n=t.parentNode||t.parentId;if(!n)return!1;let o=e.get(n);return o?o.selected?!0:vo(o,e):!1}function bo(t,e,n){let o=t;do{if(o!=null&&o.matches(e))return!0;if(o===n.current)return!1;o=o.parentElement}while(o);return!1}function Vi(t,e,n,o){return Array.from(t.values()).filter(i=>(i.selected||i.id===o)&&(!i.parentNode||i.parentId||!vo(i,t))&&(i.draggable||e&&i.draggable===void 0)).map(i=>{var l,a;return{id:i.id,position:i.position||{x:0,y:0},positionAbsolute:i.positionAbsolute||{x:0,y:0},distance:{x:n.x-(((l=i.positionAbsolute)==null?void 0:l.x)??0),y:n.y-(((a=i.positionAbsolute)==null?void 0:a.y)??0)},delta:{x:0,y:0},extent:i.extent,parentNode:i.parentNode||i.parentId,parentId:i.parentNode||i.parentId,width:i.width,height:i.height,expandParent:i.expandParent}})}function Xi(t,e){return!e||e==="parent"?e:[e[0],[e[1][0]-(t.width||0),e[1][1]-(t.height||0)]]}function xo(t,e,n,o,i=[0,0],l){let a=Xi(t,t.extent||o),d=a,s=t.parentNode||t.parentId;if(t.extent==="parent"&&!t.expandParent)if(s&&t.width&&t.height){let r=n.get(s),{x:g,y:h}=Ze(r,i).positionAbsolute;d=r&&me(g)&&me(h)&&me(r.width)&&me(r.height)?[[g+t.width*i[0],h+t.height*i[1]],[g+r.width-t.width+t.width*i[0],h+r.height-t.height+t.height*i[1]]]:d}else l==null||l("005",xe.error005()),d=a;else if(t.extent&&s&&t.extent!=="parent"){let{x:r,y:g}=Ze(n.get(s),i).positionAbsolute;d=[[t.extent[0][0]+r,t.extent[0][1]+g],[t.extent[1][0]+r,t.extent[1][1]+g]]}let c={x:0,y:0};s&&(c=Ze(n.get(s),i).positionAbsolute);let u=d&&d!=="parent"?Ht(e,d):e;return{position:{x:u.x-c.x,y:u.y-c.y},positionAbsolute:u}}function sn({nodeId:t,dragItems:e,nodeInternals:n}){let o=e.map(i=>({...n.get(i.id),position:i.position,positionAbsolute:i.positionAbsolute}));return[t?o.find(i=>i.id===t):o[0],o]}var Eo=(t,e,n,o)=>{let i=e.querySelectorAll(t);if(!i||!i.length)return null;let l=Array.from(i),a=e.getBoundingClientRect(),d={x:a.width*o[0],y:a.height*o[1]};return l.map(s=>{let c=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),position:s.getAttribute("data-handlepos"),x:(c.left-a.left-d.x)/n,y:(c.top-a.top-d.y)/n,...Tt(s)}})};function dt(t,e,n){return n===void 0?n:o=>{let i=e().nodeInternals.get(t);i&&n(o,{...i})}}function ln({id:t,store:e,unselect:n=!1,nodeRef:o}){let{addSelectedNodes:i,unselectNodesAndEdges:l,multiSelectionActive:a,nodeInternals:d,onError:s}=e.getState(),c=d.get(t);if(!c){s==null||s("012",xe.error012(t));return}e.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&a)&&(l({nodes:[c],edges:[]}),requestAnimationFrame(()=>{var u;return(u=o==null?void 0:o.current)==null?void 0:u.blur()})):i([t])}function Fi(){let t=le();return(0,v.useCallback)(({sourceEvent:e})=>{let{transform:n,snapGrid:o,snapToGrid:i}=t.getState(),l=e.touches?e.touches[0].clientX:e.clientX,a=e.touches?e.touches[0].clientY:e.clientY,d={x:(l-n[0])/n[2],y:(a-n[1])/n[2]};return{xSnapped:i?o[0]*Math.round(d.x/o[0]):d.x,ySnapped:i?o[1]*Math.round(d.y/o[1]):d.y,...d}},[])}function dn(t){return(e,n,o)=>t==null?void 0:t(e,o)}function wo({nodeRef:t,disabled:e=!1,noDragClassName:n,handleSelector:o,nodeId:i,isSelectable:l,selectNodesOnDrag:a}){let d=le(),[s,c]=(0,v.useState)(!1),u=(0,v.useRef)([]),r=(0,v.useRef)({x:null,y:null}),g=(0,v.useRef)(0),h=(0,v.useRef)(null),m=(0,v.useRef)({x:0,y:0}),f=(0,v.useRef)(null),y=(0,v.useRef)(!1),x=(0,v.useRef)(!1),b=(0,v.useRef)(!1),N=Fi();return(0,v.useEffect)(()=>{if(t!=null&&t.current){let p=ht(t.current),S=({x:P,y:I})=>{let{nodeInternals:E,onNodeDrag:w,onSelectionDrag:O,updateNodePositions:M,nodeExtent:C,snapGrid:R,snapToGrid:L,nodeOrigin:H,onError:F}=d.getState();r.current={x:P,y:I};let D=!1,$={x:0,y:0,x2:0,y2:0};if(u.current.length>1&&C&&($=Vt(Qt(u.current,H))),u.current=u.current.map(X=>{let Z={x:P-X.distance.x,y:I-X.distance.y};L&&(Z.x=R[0]*Math.round(Z.x/R[0]),Z.y=R[1]*Math.round(Z.y/R[1]));let U=[[C[0][0],C[0][1]],[C[1][0],C[1][1]]];u.current.length>1&&C&&!X.extent&&(U[0][0]=X.positionAbsolute.x-$.x+C[0][0],U[1][0]=X.positionAbsolute.x+(X.width??0)-$.x2+C[1][0],U[0][1]=X.positionAbsolute.y-$.y+C[0][1],U[1][1]=X.positionAbsolute.y+(X.height??0)-$.y2+C[1][1]);let j=xo(X,Z,E,U,H,F);return D=D||X.position.x!==j.position.x||X.position.y!==j.position.y,X.position=j.position,X.positionAbsolute=j.positionAbsolute,X}),!D)return;M(u.current,!0,!0),c(!0);let V=i?w:dn(O);if(V&&f.current){let[X,Z]=sn({nodeId:i,dragItems:u.current,nodeInternals:E});V(f.current,X,Z)}},k=()=>{if(!h.current)return;let[P,I]=On(m.current,h.current);if(P!==0||I!==0){let{transform:E,panBy:w}=d.getState();r.current.x=(r.current.x??0)-P/E[2],r.current.y=(r.current.y??0)-I/E[2],w({x:P,y:I})&&S(r.current)}g.current=requestAnimationFrame(k)},_=P=>{var H;let{nodeInternals:I,multiSelectionActive:E,nodesDraggable:w,unselectNodesAndEdges:O,onNodeDragStart:M,onSelectionDragStart:C}=d.getState();x.current=!0;let R=i?M:dn(C);(!a||!l)&&!E&&i&&((H=I.get(i))!=null&&H.selected||O()),i&&l&&a&&ln({id:i,store:d,nodeRef:t});let L=N(P);if(r.current=L,u.current=Vi(I,w,L,i),R&&u.current){let[F,D]=sn({nodeId:i,dragItems:u.current,nodeInternals:I});R(P.sourceEvent,F,D)}};if(e)p.on(".drag",null);else{let P=Fa().on("start",I=>{let{domNode:E,nodeDragThreshold:w}=d.getState();w===0&&_(I),b.current=!1,r.current=N(I),h.current=(E==null?void 0:E.getBoundingClientRect())||null,m.current=Se(I.sourceEvent,h.current)}).on("drag",I=>{var M,C;let E=N(I),{autoPanOnNodeDrag:w,nodeDragThreshold:O}=d.getState();if(I.sourceEvent.type==="touchmove"&&I.sourceEvent.touches.length>1&&(b.current=!0),!b.current){if(!y.current&&x.current&&w&&(y.current=!0,k()),!x.current){let R=E.xSnapped-(((M=r==null?void 0:r.current)==null?void 0:M.x)??0),L=E.ySnapped-(((C=r==null?void 0:r.current)==null?void 0:C.y)??0);Math.sqrt(R*R+L*L)>O&&_(I)}(r.current.x!==E.xSnapped||r.current.y!==E.ySnapped)&&u.current&&x.current&&(f.current=I.sourceEvent,m.current=Se(I.sourceEvent,h.current),S(E))}}).on("end",I=>{if(!(!x.current||b.current)&&(c(!1),y.current=!1,x.current=!1,cancelAnimationFrame(g.current),u.current)){let{updateNodePositions:E,nodeInternals:w,onNodeDragStop:O,onSelectionDragStop:M}=d.getState(),C=i?O:dn(M);if(E(u.current,!1,!1),C){let[R,L]=sn({nodeId:i,dragItems:u.current,nodeInternals:w});C(I.sourceEvent,R,L)}}}).filter(I=>{let E=I.target;return!I.button&&(!n||!bo(E,`.${n}`,t))&&(!o||bo(E,o,t))});return p.call(P),()=>{p.on(".drag",null)}}}},[t,e,n,o,l,d,i,a,N]),s}function So(){let t=le();return(0,v.useCallback)(e=>{let{nodeInternals:n,nodeExtent:o,updateNodePositions:i,getNodes:l,snapToGrid:a,snapGrid:d,onError:s,nodesDraggable:c}=t.getState(),u=l().filter(y=>y.selected&&(y.draggable||c&&y.draggable===void 0)),r=a?d[0]:5,g=a?d[1]:5,h=e.isShiftPressed?4:1,m=e.x*r*h,f=e.y*g*h;i(u.map(y=>{if(y.positionAbsolute){let x={x:y.positionAbsolute.x+m,y:y.positionAbsolute.y+f};a&&(x.x=d[0]*Math.round(x.x/d[0]),x.y=d[1]*Math.round(x.y/d[1]));let{positionAbsolute:b,position:N}=xo(y,x,n,o,void 0,s);y.position=N,y.positionAbsolute=b}return y}),!0,!1)},[])}var Qe={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},ct=t=>{let e=({id:n,type:o,data:i,xPos:l,yPos:a,xPosOrigin:d,yPosOrigin:s,selected:c,onClick:u,onMouseEnter:r,onMouseMove:g,onMouseLeave:h,onContextMenu:m,onDoubleClick:f,style:y,className:x,isDraggable:b,isSelectable:N,isConnectable:p,isFocusable:S,selectNodesOnDrag:k,sourcePosition:_,targetPosition:P,hidden:I,resizeObserver:E,dragHandle:w,zIndex:O,isParent:M,noDragClassName:C,noPanClassName:R,initialized:L,disableKeyboardA11y:H,ariaLabel:F,rfId:D,hasHandleBounds:$})=>{let V=le(),X=(0,v.useRef)(null),Z=(0,v.useRef)(null),U=(0,v.useRef)(_),j=(0,v.useRef)(P),A=(0,v.useRef)(o),B=N||b||u||r||g||h,T=So(),Y=dt(n,V.getState,r),G=dt(n,V.getState,g),ee=dt(n,V.getState,h),ae=dt(n,V.getState,m),ge=dt(n,V.getState,f),oe=te=>{let{nodeDragThreshold:K}=V.getState();if(N&&(!k||!b||K>0)&&ln({id:n,store:V,nodeRef:X}),u){let fe=V.getState().nodeInternals.get(n);fe&&u(te,{...fe})}},J=te=>{Ft(te)||H||(In.includes(te.key)&&N?ln({id:n,store:V,unselect:te.key==="Escape",nodeRef:X}):b&&c&&Object.prototype.hasOwnProperty.call(Qe,te.key)&&(V.setState({ariaLiveMessage:`Moved selected node ${te.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~l}, y: ${~~a}`}),T({x:Qe[te.key].x,y:Qe[te.key].y,isShiftPressed:te.shiftKey})))};(0,v.useEffect)(()=>()=>{Z.current&&(Z.current=(E==null||E.unobserve(Z.current),null))},[]),(0,v.useEffect)(()=>{if(X.current&&!I){let te=X.current;(!L||!$||Z.current!==te)&&(Z.current&&(E==null||E.unobserve(Z.current)),E==null||E.observe(te),Z.current=te)}},[I,L,$]),(0,v.useEffect)(()=>{let te=A.current!==o,K=U.current!==_,fe=j.current!==P;X.current&&(te||K||fe)&&(te&&(A.current=o),K&&(U.current=_),fe&&(j.current=P),V.getState().updateNodeDimensions([{id:n,nodeElement:X.current,forceUpdate:!0}]))},[n,o,_,P]);let de=wo({nodeRef:X,disabled:I||!b,noDragClassName:C,handleSelector:w,nodeId:n,isSelectable:N,selectNodesOnDrag:k});return I?null:v.createElement("div",{className:he(["react-flow__node",`react-flow__node-${o}`,{[R]:b},x,{selected:c,selectable:N,parent:M,dragging:de}]),ref:X,style:{zIndex:O,transform:`translate(${d}px,${s}px)`,pointerEvents:B?"all":"none",visibility:L?"visible":"hidden",...y},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:Y,onMouseMove:G,onMouseLeave:ee,onContextMenu:ae,onClick:oe,onDoubleClick:ge,onKeyDown:S?J:void 0,tabIndex:S?0:void 0,role:S?"button":void 0,"aria-describedby":H?void 0:`${ro}-${D}`,"aria-label":F},v.createElement(ri,{value:n},v.createElement(t,{id:n,data:i,type:o,xPos:l,yPos:a,selected:c,isConnectable:p,sourcePosition:_,targetPosition:P,dragging:de,dragHandle:w,zIndex:O})))};return e.displayName="NodeWrapper",(0,v.memo)(e)},Wi=t=>({...Qt(t.getNodes().filter(e=>e.selected),t.nodeOrigin),transformString:`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`,userSelectionActive:t.userSelectionActive});function Yi({onSelectionContextMenu:t,noPanClassName:e,disableKeyboardA11y:n}){let o=le(),{width:i,height:l,x:a,y:d,transformString:s,userSelectionActive:c}=ne(Wi,ue),u=So(),r=(0,v.useRef)(null);if((0,v.useEffect)(()=>{var h;n||((h=r.current)==null||h.focus({preventScroll:!0}))},[n]),wo({nodeRef:r}),c||!i||!l)return null;let g=t?h=>{t(h,o.getState().getNodes().filter(m=>m.selected))}:void 0;return v.createElement("div",{className:he(["react-flow__nodesselection","react-flow__container",e]),style:{transform:s}},v.createElement("div",{ref:r,className:"react-flow__nodesselection-rect",onContextMenu:g,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h=>{Object.prototype.hasOwnProperty.call(Qe,h.key)&&u({x:Qe[h.key].x,y:Qe[h.key].y,isShiftPressed:h.shiftKey})},style:{width:i,height:l,top:d,left:a}}))}var Zi=(0,v.memo)(Yi),Ki=t=>t.nodesSelectionActive,Co=({children:t,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:i,onPaneContextMenu:l,onPaneScroll:a,deleteKeyCode:d,onMove:s,onMoveStart:c,onMoveEnd:u,selectionKeyCode:r,selectionOnDrag:g,selectionMode:h,onSelectionStart:m,onSelectionEnd:f,multiSelectionKeyCode:y,panActivationKeyCode:x,zoomActivationKeyCode:b,elementsSelectable:N,zoomOnScroll:p,zoomOnPinch:S,panOnScroll:k,panOnScrollSpeed:_,panOnScrollMode:P,zoomOnDoubleClick:I,panOnDrag:E,defaultViewport:w,translateExtent:O,minZoom:M,maxZoom:C,preventScrolling:R,onSelectionContextMenu:L,noWheelClassName:H,noPanClassName:F,disableKeyboardA11y:D})=>{let $=ne(Ki),V=st(r),X=st(x),Z=X||E,U=X||k,j=V||g&&Z!==!0;return Di({deleteKeyCode:d,multiSelectionKeyCode:y}),v.createElement(zi,{onMove:s,onMoveStart:c,onMoveEnd:u,onPaneContextMenu:l,elementsSelectable:N,zoomOnScroll:p,zoomOnPinch:S,panOnScroll:U,panOnScrollSpeed:_,panOnScrollMode:P,zoomOnDoubleClick:I,panOnDrag:!V&&Z,defaultViewport:w,translateExtent:O,minZoom:M,maxZoom:C,zoomActivationKeyCode:b,preventScrolling:R,noWheelClassName:H,noPanClassName:F},v.createElement(yo,{onSelectionStart:m,onSelectionEnd:f,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:i,onPaneContextMenu:l,onPaneScroll:a,panOnDrag:Z,isSelecting:!!j,selectionMode:h},t,$&&v.createElement(Zi,{onSelectionContextMenu:L,noPanClassName:F,disableKeyboardA11y:D})))};Co.displayName="FlowRenderer";var Gi=(0,v.memo)(Co);function Ui(t){return ne((0,v.useCallback)(e=>t?Vn(e.nodeInternals,{x:0,y:0,width:e.width,height:e.height},e.transform,!0):e.getNodes(),[t]))}function qi(t){let e={input:ct(t.input||Jn),default:ct(t.default||tn),output:ct(t.output||to),group:ct(t.group||nn)},n=Object.keys(t).filter(o=>!["input","default","output","group"].includes(o)).reduce((o,i)=>(o[i]=ct(t[i]||tn),o),{});return{...e,...n}}var Qi=({x:t,y:e,width:n,height:o,origin:i})=>!n||!o||i[0]<0||i[1]<0||i[0]>1||i[1]>1?{x:t,y:e}:{x:t-n*i[0],y:e-o*i[1]},Ji=t=>({nodesDraggable:t.nodesDraggable,nodesConnectable:t.nodesConnectable,nodesFocusable:t.nodesFocusable,elementsSelectable:t.elementsSelectable,updateNodeDimensions:t.updateNodeDimensions,onError:t.onError}),No=t=>{let{nodesDraggable:e,nodesConnectable:n,nodesFocusable:o,elementsSelectable:i,updateNodeDimensions:l,onError:a}=ne(Ji,ue),d=Ui(t.onlyRenderVisibleElements),s=(0,v.useRef)(),c=(0,v.useMemo)(()=>{if(typeof ResizeObserver>"u")return null;let u=new ResizeObserver(r=>{l(r.map(g=>({id:g.target.getAttribute("data-id"),nodeElement:g.target,forceUpdate:!0})))});return s.current=u,u},[]);return(0,v.useEffect)(()=>()=>{var u;(u=s==null?void 0:s.current)==null||u.disconnect()},[]),v.createElement("div",{className:"react-flow__nodes",style:rn},d.map(u=>{var S,k,_;let r=u.type||"default";t.nodeTypes[r]||(a==null||a("003",xe.error003(r)),r="default");let g=t.nodeTypes[r]||t.nodeTypes.default,h=!!(u.draggable||e&&u.draggable===void 0),m=!!(u.selectable||i&&u.selectable===void 0),f=!!(u.connectable||n&&u.connectable===void 0),y=!!(u.focusable||o&&u.focusable===void 0),x=t.nodeExtent?Ht(u.positionAbsolute,t.nodeExtent):u.positionAbsolute,b=(x==null?void 0:x.x)??0,N=(x==null?void 0:x.y)??0,p=Qi({x:b,y:N,width:u.width??0,height:u.height??0,origin:t.nodeOrigin});return v.createElement(g,{key:u.id,id:u.id,className:u.className,style:u.style,type:r,data:u.data,sourcePosition:u.sourcePosition||W.Bottom,targetPosition:u.targetPosition||W.Top,hidden:u.hidden,xPos:b,yPos:N,xPosOrigin:p.x,yPosOrigin:p.y,selectNodesOnDrag:t.selectNodesOnDrag,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,selected:!!u.selected,isDraggable:h,isSelectable:m,isConnectable:f,isFocusable:y,resizeObserver:c,dragHandle:u.dragHandle,zIndex:((S=u[re])==null?void 0:S.z)??0,isParent:!!((k=u[re])!=null&&k.isParent),noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,initialized:!!u.width&&!!u.height,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,ariaLabel:u.ariaLabel,hasHandleBounds:!!((_=u[re])!=null&&_.handleBounds)})}))};No.displayName="NodeRenderer";var es=(0,v.memo)(No),ts=(t,e,n)=>n===W.Left?t-e:n===W.Right?t+e:t,ns=(t,e,n)=>n===W.Top?t-e:n===W.Bottom?t+e:t,ko="react-flow__edgeupdater",Mo=({position:t,centerX:e,centerY:n,radius:o=10,onMouseDown:i,onMouseEnter:l,onMouseOut:a,type:d})=>v.createElement("circle",{onMouseDown:i,onMouseEnter:l,onMouseOut:a,className:he([ko,`${ko}-${d}`]),cx:ts(e,o,t),cy:ns(n,o,t),r:o,stroke:"transparent",fill:"transparent"}),os=()=>!0,Je=t=>{let e=({id:n,className:o,type:i,data:l,onClick:a,onEdgeDoubleClick:d,selected:s,animated:c,label:u,labelStyle:r,labelShowBg:g,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:f,style:y,source:x,target:b,sourceX:N,sourceY:p,targetX:S,targetY:k,sourcePosition:_,targetPosition:P,elementsSelectable:I,hidden:E,sourceHandleId:w,targetHandleId:O,onContextMenu:M,onMouseEnter:C,onMouseMove:R,onMouseLeave:L,reconnectRadius:H,onReconnect:F,onReconnectStart:D,onReconnectEnd:$,markerEnd:V,markerStart:X,rfId:Z,ariaLabel:U,isFocusable:j,isReconnectable:A,pathOptions:B,interactionWidth:T,disableKeyboardA11y:Y})=>{let G=(0,v.useRef)(null),[ee,ae]=(0,v.useState)(!1),[ge,oe]=(0,v.useState)(!1),J=le(),de=(0,v.useMemo)(()=>`url('#${Ut(X,Z)}')`,[X,Z]),te=(0,v.useMemo)(()=>`url('#${Ut(V,Z)}')`,[V,Z]);if(E)return null;let K=ce=>{var we;let{edges:pe,addSelectedEdges:Pe,unselectNodesAndEdges:Ie,multiSelectionActive:je}=J.getState(),be=pe.find(nt=>nt.id===n);be&&(I&&(J.setState({nodesSelectionActive:!1}),be.selected&&je?(Ie({nodes:[],edges:[be]}),(we=G.current)==null||we.blur()):Pe([n])),a&&a(ce,be))},fe=it(n,J.getState,d),Me=it(n,J.getState,M),tt=it(n,J.getState,C),ze=it(n,J.getState,R),Le=it(n,J.getState,L),Ee=(ce,pe)=>{if(ce.button!==0)return;let{edges:Pe,isValidConnection:Ie}=J.getState(),je=pe?b:x,be=(pe?O:w)||null,we=pe?"target":"source",nt=Ie||os,Mt=pe,ot=Pe.find(De=>De.id===n);oe(!0),D==null||D(ce,ot,we),Kn({event:ce,handleId:be,nodeId:je,onConnect:De=>F==null?void 0:F(ot,De),isTarget:Mt,getState:J.getState,setState:J.setState,isValidConnection:nt,edgeUpdaterType:we,onReconnectEnd:De=>{oe(!1),$==null||$(De,ot,we)}})},$e=ce=>Ee(ce,!0),Oe=ce=>Ee(ce,!1),_e=()=>ae(!0),Te=()=>ae(!1),He=!I&&!a;return v.createElement("g",{className:he(["react-flow__edge",`react-flow__edge-${i}`,o,{selected:s,animated:c,inactive:He,updating:ee}]),onClick:K,onDoubleClick:fe,onContextMenu:Me,onMouseEnter:tt,onMouseMove:ze,onMouseLeave:Le,onKeyDown:j?ce=>{var pe;if(!Y&&In.includes(ce.key)&&I){let{unselectNodesAndEdges:Pe,addSelectedEdges:Ie,edges:je}=J.getState();ce.key==="Escape"?((pe=G.current)==null||pe.blur(),Pe({edges:[je.find(be=>be.id===n)]})):Ie([n])}}:void 0,tabIndex:j?0:void 0,role:j?"button":"img","data-testid":`rf__edge-${n}`,"aria-label":U===null?void 0:U||`Edge from ${x} to ${b}`,"aria-describedby":j?`${ao}-${Z}`:void 0,ref:G},!ge&&v.createElement(t,{id:n,source:x,target:b,selected:s,animated:c,label:u,labelStyle:r,labelShowBg:g,labelBgStyle:h,labelBgPadding:m,labelBgBorderRadius:f,data:l,style:y,sourceX:N,sourceY:p,targetX:S,targetY:k,sourcePosition:_,targetPosition:P,sourceHandleId:w,targetHandleId:O,markerStart:de,markerEnd:te,pathOptions:B,interactionWidth:T}),A&&v.createElement(v.Fragment,null,(A==="source"||A===!0)&&v.createElement(Mo,{position:_,centerX:N,centerY:p,radius:H,onMouseDown:$e,onMouseEnter:_e,onMouseOut:Te,type:"source"}),(A==="target"||A===!0)&&v.createElement(Mo,{position:P,centerX:S,centerY:k,radius:H,onMouseDown:Oe,onMouseEnter:_e,onMouseOut:Te,type:"target"})))};return e.displayName="EdgeWrapper",(0,v.memo)(e)};function rs(t){let e={default:Je(t.default||Et),straight:Je(t.bezier||Kt),step:Je(t.step||Zt),smoothstep:Je(t.step||bt),simplebezier:Je(t.simplebezier||Wt)},n=Object.keys(t).filter(o=>!["default","bezier"].includes(o)).reduce((o,i)=>(o[i]=Je(t[i]||Et),o),{});return{...e,...n}}function Oo(t,e,n=null){let o=((n==null?void 0:n.x)||0)+e.x,i=((n==null?void 0:n.y)||0)+e.y,l=(n==null?void 0:n.width)||e.width,a=(n==null?void 0:n.height)||e.height;switch(t){case W.Top:return{x:o+l/2,y:i};case W.Right:return{x:o+l,y:i+a/2};case W.Bottom:return{x:o+l/2,y:i+a};case W.Left:return{x:o,y:i+a/2}}}function _o(t,e){return t?t.length===1||!e?t[0]:e&&t.find(n=>n.id===e)||null:null}var as=(t,e,n,o,i,l)=>{let a=Oo(n,t,e),d=Oo(l,o,i);return{sourceX:a.x,sourceY:a.y,targetX:d.x,targetY:d.y}};function is({sourcePos:t,targetPos:e,sourceWidth:n,sourceHeight:o,targetWidth:i,targetHeight:l,width:a,height:d,transform:s}){let c={x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x+n,e.x+i),y2:Math.max(t.y+o,e.y+l)};c.x===c.x2&&(c.x2+=1),c.y===c.y2&&(c.y2+=1);let u=Vt({x:(0-s[0])/s[2],y:(0-s[1])/s[2],width:a/s[2],height:d/s[2]}),r=Math.max(0,Math.min(u.x2,c.x2)-Math.max(u.x,c.x)),g=Math.max(0,Math.min(u.y2,c.y2)-Math.max(u.y,c.y));return Math.ceil(r*g)>0}function Po(t){var o,i,l,a,d;let e=((o=t==null?void 0:t[re])==null?void 0:o.handleBounds)||null,n=e&&(t==null?void 0:t.width)&&(t==null?void 0:t.height)&&((i=t==null?void 0:t.positionAbsolute)==null?void 0:i.x)!==void 0&&((l=t==null?void 0:t.positionAbsolute)==null?void 0:l.y)!==void 0;return[{x:((a=t==null?void 0:t.positionAbsolute)==null?void 0:a.x)||0,y:((d=t==null?void 0:t.positionAbsolute)==null?void 0:d.y)||0,width:(t==null?void 0:t.width)||0,height:(t==null?void 0:t.height)||0},e,!!n]}var ss=[{level:0,isMaxLevel:!0,edges:[]}];function ls(t,e,n=!1){let o=-1,i=t.reduce((a,d)=>{var u,r;let s=me(d.zIndex),c=s?d.zIndex:0;if(n){let g=e.get(d.target),h=e.get(d.source),m=d.selected||(g==null?void 0:g.selected)||(h==null?void 0:h.selected),f=Math.max(((u=h==null?void 0:h[re])==null?void 0:u.z)||0,((r=g==null?void 0:g[re])==null?void 0:r.z)||0,1e3);c=(s?d.zIndex:0)+(m?f:0)}return a[c]?a[c].push(d):a[c]=[d],o=c>o?c:o,a},{}),l=Object.entries(i).map(([a,d])=>{let s=+a;return{edges:d,level:s,isMaxLevel:s===o}});return l.length===0?ss:l}function ds(t,e,n){return ls(ne((0,v.useCallback)(o=>t?o.edges.filter(i=>{let l=e.get(i.source),a=e.get(i.target);return(l==null?void 0:l.width)&&(l==null?void 0:l.height)&&(a==null?void 0:a.width)&&(a==null?void 0:a.height)&&is({sourcePos:l.positionAbsolute||{x:0,y:0},targetPos:a.positionAbsolute||{x:0,y:0},sourceWidth:l.width,sourceHeight:l.height,targetWidth:a.width,targetHeight:a.height,width:o.width,height:o.height,transform:o.transform})}):o.edges,[t,e])),e,n)}var cs=({color:t="none",strokeWidth:e=1})=>v.createElement("polyline",{style:{stroke:t,strokeWidth:e},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),us=({color:t="none",strokeWidth:e=1})=>v.createElement("polyline",{style:{stroke:t,fill:t,strokeWidth:e},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Io={[vt.Arrow]:cs,[vt.ArrowClosed]:us};function hs(t){let e=le();return(0,v.useMemo)(()=>{var n,o;return Object.prototype.hasOwnProperty.call(Io,t)?Io[t]:((o=(n=e.getState()).onError)==null||o.call(n,"009",xe.error009(t)),null)},[t])}var gs=({id:t,type:e,color:n,width:o=12.5,height:i=12.5,markerUnits:l="strokeWidth",strokeWidth:a,orient:d="auto-start-reverse"})=>{let s=hs(e);return s?v.createElement("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${o}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:l,orient:d,refX:"0",refY:"0"},v.createElement(s,{color:n,strokeWidth:a})):null},fs=({defaultColor:t,rfId:e})=>n=>{let o=[];return n.edges.reduce((i,l)=>([l.markerStart,l.markerEnd].forEach(a=>{if(a&&typeof a=="object"){let d=Ut(a,e);o.includes(d)||(i.push({id:d,color:a.color||t,...a}),o.push(d))}}),i),[]).sort((i,l)=>i.id.localeCompare(l.id))},jo=({defaultColor:t,rfId:e})=>{let n=ne((0,v.useCallback)(fs({defaultColor:t,rfId:e}),[t,e]),(o,i)=>!(o.length!==i.length||o.some((l,a)=>l.id!==i[a].id)));return v.createElement("defs",null,n.map(o=>v.createElement(gs,{id:o.id,key:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient})))};jo.displayName="MarkerDefinitions";var ps=(0,v.memo)(jo),ms=t=>({nodesConnectable:t.nodesConnectable,edgesFocusable:t.edgesFocusable,edgesUpdatable:t.edgesUpdatable,elementsSelectable:t.elementsSelectable,width:t.width,height:t.height,connectionMode:t.connectionMode,nodeInternals:t.nodeInternals,onError:t.onError}),Do=({defaultMarkerColor:t,onlyRenderVisibleElements:e,elevateEdgesOnSelect:n,rfId:o,edgeTypes:i,noPanClassName:l,onEdgeContextMenu:a,onEdgeMouseEnter:d,onEdgeMouseMove:s,onEdgeMouseLeave:c,onEdgeClick:u,onEdgeDoubleClick:r,onReconnect:g,onReconnectStart:h,onReconnectEnd:m,reconnectRadius:f,children:y,disableKeyboardA11y:x})=>{let{edgesFocusable:b,edgesUpdatable:N,elementsSelectable:p,width:S,height:k,connectionMode:_,nodeInternals:P,onError:I}=ne(ms,ue),E=ds(e,P,n);return S?v.createElement(v.Fragment,null,E.map(({level:w,edges:O,isMaxLevel:M})=>v.createElement("svg",{key:w,style:{zIndex:w},width:S,height:k,className:"react-flow__edges react-flow__container"},M&&v.createElement(ps,{defaultColor:t,rfId:o}),v.createElement("g",null,O.map(C=>{let[R,L,H]=Po(P.get(C.source)),[F,D,$]=Po(P.get(C.target));if(!H||!$)return null;let V=C.type||"default";i[V]||(I==null||I("011",xe.error011(V)),V="default");let X=i[V]||i.default,Z=_===We.Strict?D.target:(D.target??[]).concat(D.source??[]),U=_o(L.source,C.sourceHandle),j=_o(Z,C.targetHandle),A=(U==null?void 0:U.position)||W.Bottom,B=(j==null?void 0:j.position)||W.Top,T=!!(C.focusable||b&&C.focusable===void 0),Y=C.reconnectable||C.updatable,G=g!==void 0&&(Y||N&&Y===void 0);if(!U||!j)return I==null||I("008",xe.error008(U,C)),null;let{sourceX:ee,sourceY:ae,targetX:ge,targetY:oe}=as(R,U,A,F,j,B);return v.createElement(X,{key:C.id,id:C.id,className:he([C.className,l]),type:V,data:C.data,selected:!!C.selected,animated:!!C.animated,hidden:!!C.hidden,label:C.label,labelStyle:C.labelStyle,labelShowBg:C.labelShowBg,labelBgStyle:C.labelBgStyle,labelBgPadding:C.labelBgPadding,labelBgBorderRadius:C.labelBgBorderRadius,style:C.style,source:C.source,target:C.target,sourceHandleId:C.sourceHandle,targetHandleId:C.targetHandle,markerEnd:C.markerEnd,markerStart:C.markerStart,sourceX:ee,sourceY:ae,targetX:ge,targetY:oe,sourcePosition:A,targetPosition:B,elementsSelectable:p,onContextMenu:a,onMouseEnter:d,onMouseMove:s,onMouseLeave:c,onClick:u,onEdgeDoubleClick:r,onReconnect:g,onReconnectStart:h,onReconnectEnd:m,reconnectRadius:f,rfId:o,ariaLabel:C.ariaLabel,isFocusable:T,isReconnectable:G,pathOptions:"pathOptions"in C?C.pathOptions:void 0,interactionWidth:C.interactionWidth,disableKeyboardA11y:x})})))),y):null};Do.displayName="EdgeRenderer";var ys=(0,v.memo)(Do),vs=t=>`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`;function bs({children:t}){let e=ne(vs);return v.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:e}},t)}function xs(t){let e=lt(),n=(0,v.useRef)(!1);(0,v.useEffect)(()=>{!n.current&&e.viewportInitialized&&t&&(setTimeout(()=>t(e),1),n.current=!0)},[t,e.viewportInitialized])}var Es={[W.Left]:W.Right,[W.Right]:W.Left,[W.Top]:W.Bottom,[W.Bottom]:W.Top},Ro=({nodeId:t,handleType:e,style:n,type:o=Ae.Bezier,CustomComponent:i,connectionStatus:l})=>{var k,_,P;let{fromNode:a,handleId:d,toX:s,toY:c,connectionMode:u}=ne((0,v.useCallback)(I=>({fromNode:I.nodeInternals.get(t),handleId:I.connectionHandleId,toX:(I.connectionPosition.x-I.transform[0])/I.transform[2],toY:(I.connectionPosition.y-I.transform[1])/I.transform[2],connectionMode:I.connectionMode}),[t]),ue),r=(k=a==null?void 0:a[re])==null?void 0:k.handleBounds,g=r==null?void 0:r[e];if(u===We.Loose&&(g||(g=r==null?void 0:r[e==="source"?"target":"source"])),!a||!g)return null;let h=d?g.find(I=>I.id===d):g[0],m=h?h.x+h.width/2:(a.width??0)/2,f=h?h.y+h.height/2:a.height??0,y=(((_=a.positionAbsolute)==null?void 0:_.x)??0)+m,x=(((P=a.positionAbsolute)==null?void 0:P.y)??0)+f,b=h==null?void 0:h.position,N=b?Es[b]:null;if(!b||!N)return null;if(i)return v.createElement(i,{connectionLineType:o,connectionLineStyle:n,fromNode:a,fromHandle:h,fromX:y,fromY:x,toX:s,toY:c,fromPosition:b,toPosition:N,connectionStatus:l});let p="",S={sourceX:y,sourceY:x,sourcePosition:b,targetX:s,targetY:c,targetPosition:N};return o===Ae.Bezier?[p]=Tn(S):o===Ae.Step?[p]=Yt({...S,borderRadius:0}):o===Ae.SmoothStep?[p]=Yt(S):o===Ae.SimpleBezier?[p]=Bn(S):p=`M${y},${x} ${s},${c}`,v.createElement("path",{d:p,fill:"none",className:"react-flow__connection-path",style:n})};Ro.displayName="ConnectionLine";var ws=t=>({nodeId:t.connectionNodeId,handleType:t.connectionHandleType,nodesConnectable:t.nodesConnectable,connectionStatus:t.connectionStatus,width:t.width,height:t.height});function Ss({containerStyle:t,style:e,type:n,component:o}){let{nodeId:i,handleType:l,nodesConnectable:a,width:d,height:s,connectionStatus:c}=ne(ws,ue);return i&&l&&d&&a?v.createElement("svg",{style:t,width:d,height:s,className:"react-flow__edges react-flow__connectionline react-flow__container"},v.createElement("g",{className:he(["react-flow__connection",c])},v.createElement(Ro,{nodeId:i,handleType:l,style:e,type:n,CustomComponent:o,connectionStatus:c}))):null}function Ao(t,e){return(0,v.useRef)(null),le(),(0,v.useMemo)(()=>e(t),[t])}var Bo=({nodeTypes:t,edgeTypes:e,onMove:n,onMoveStart:o,onMoveEnd:i,onInit:l,onNodeClick:a,onEdgeClick:d,onNodeDoubleClick:s,onEdgeDoubleClick:c,onNodeMouseEnter:u,onNodeMouseMove:r,onNodeMouseLeave:g,onNodeContextMenu:h,onSelectionContextMenu:m,onSelectionStart:f,onSelectionEnd:y,connectionLineType:x,connectionLineStyle:b,connectionLineComponent:N,connectionLineContainerStyle:p,selectionKeyCode:S,selectionOnDrag:k,selectionMode:_,multiSelectionKeyCode:P,panActivationKeyCode:I,zoomActivationKeyCode:E,deleteKeyCode:w,onlyRenderVisibleElements:O,elementsSelectable:M,selectNodesOnDrag:C,defaultViewport:R,translateExtent:L,minZoom:H,maxZoom:F,preventScrolling:D,defaultMarkerColor:$,zoomOnScroll:V,zoomOnPinch:X,panOnScroll:Z,panOnScrollSpeed:U,panOnScrollMode:j,zoomOnDoubleClick:A,panOnDrag:B,onPaneClick:T,onPaneMouseEnter:Y,onPaneMouseMove:G,onPaneMouseLeave:ee,onPaneScroll:ae,onPaneContextMenu:ge,onEdgeContextMenu:oe,onEdgeMouseEnter:J,onEdgeMouseMove:de,onEdgeMouseLeave:te,onReconnect:K,onReconnectStart:fe,onReconnectEnd:Me,reconnectRadius:tt,noDragClassName:ze,noWheelClassName:Le,noPanClassName:Ee,elevateEdgesOnSelect:$e,disableKeyboardA11y:Oe,nodeOrigin:_e,nodeExtent:Te,rfId:He})=>{let ce=Ao(t,qi),pe=Ao(e,rs);return xs(l),v.createElement(Gi,{onPaneClick:T,onPaneMouseEnter:Y,onPaneMouseMove:G,onPaneMouseLeave:ee,onPaneContextMenu:ge,onPaneScroll:ae,deleteKeyCode:w,selectionKeyCode:S,selectionOnDrag:k,selectionMode:_,onSelectionStart:f,onSelectionEnd:y,multiSelectionKeyCode:P,panActivationKeyCode:I,zoomActivationKeyCode:E,elementsSelectable:M,onMove:n,onMoveStart:o,onMoveEnd:i,zoomOnScroll:V,zoomOnPinch:X,zoomOnDoubleClick:A,panOnScroll:Z,panOnScrollSpeed:U,panOnScrollMode:j,panOnDrag:B,defaultViewport:R,translateExtent:L,minZoom:H,maxZoom:F,onSelectionContextMenu:m,preventScrolling:D,noDragClassName:ze,noWheelClassName:Le,noPanClassName:Ee,disableKeyboardA11y:Oe},v.createElement(bs,null,v.createElement(ys,{edgeTypes:pe,onEdgeClick:d,onEdgeDoubleClick:c,onlyRenderVisibleElements:O,onEdgeContextMenu:oe,onEdgeMouseEnter:J,onEdgeMouseMove:de,onEdgeMouseLeave:te,onReconnect:K,onReconnectStart:fe,onReconnectEnd:Me,reconnectRadius:tt,defaultMarkerColor:$,noPanClassName:Ee,elevateEdgesOnSelect:!!$e,disableKeyboardA11y:Oe,rfId:He},v.createElement(Ss,{style:b,type:x,component:N,containerStyle:p})),v.createElement("div",{className:"react-flow__edgelabel-renderer"}),v.createElement(es,{nodeTypes:ce,onNodeClick:a,onNodeDoubleClick:s,onNodeMouseEnter:u,onNodeMouseMove:r,onNodeMouseLeave:g,onNodeContextMenu:h,selectNodesOnDrag:C,onlyRenderVisibleElements:O,noPanClassName:Ee,noDragClassName:ze,disableKeyboardA11y:Oe,nodeOrigin:_e,nodeExtent:Te,rfId:He})))};Bo.displayName="GraphView";var Cs=(0,v.memo)(Bo),cn=[[-1/0,-1/0],[1/0,1/0]],ke={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:cn,nodeExtent:cn,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:We.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:Qa,isValidConnection:void 0},Ns=()=>$a((t,e)=>({...ke,setNodes:n=>{let{nodeInternals:o,nodeOrigin:i,elevateNodesOnSelect:l}=e();t({nodeInternals:on(n,o,i,l)})},getNodes:()=>Array.from(e().nodeInternals.values()),setEdges:n=>{let{defaultEdgeOptions:o={}}=e();t({edges:n.map(i=>({...o,...i}))})},setDefaultNodesAndEdges:(n,o)=>{let i=n!==void 0,l=o!==void 0;t({nodeInternals:i?on(n,new Map,e().nodeOrigin,e().elevateNodesOnSelect):new Map,edges:l?o:[],hasDefaultNodes:i,hasDefaultEdges:l})},updateNodeDimensions:n=>{let{onNodesChange:o,nodeInternals:i,fitViewOnInit:l,fitViewOnInitDone:a,fitViewOnInitOptions:d,domNode:s,nodeOrigin:c}=e(),u=s==null?void 0:s.querySelector(".react-flow__viewport");if(!u)return;let r=window.getComputedStyle(u),{m22:g}=new window.DOMMatrixReadOnly(r.transform),h=n.reduce((f,y)=>{let x=i.get(y.id);if(x!=null&&x.hidden)i.set(x.id,{...x,[re]:{...x[re],handleBounds:void 0}});else if(x){let b=Tt(y.nodeElement);b.width&&b.height&&(x.width!==b.width||x.height!==b.height||y.forceUpdate)&&(i.set(x.id,{...x,[re]:{...x[re],handleBounds:{source:Eo(".source",y.nodeElement,g,c),target:Eo(".target",y.nodeElement,g,c)}},...b}),f.push({id:x.id,type:"dimensions",dimensions:b}))}return f},[]);co(i,c);let m=a||l&&!a&&uo(e,{initial:!0,...d});t({nodeInternals:new Map(i),fitViewOnInitDone:m}),(h==null?void 0:h.length)>0&&(o==null||o(h))},updateNodePositions:(n,o=!0,i=!1)=>{let{triggerNodeChanges:l}=e();l(n.map(a=>{let d={id:a.id,type:"position",dragging:i};return o&&(d.positionAbsolute=a.positionAbsolute,d.position=a.position),d}))},triggerNodeChanges:n=>{let{onNodesChange:o,nodeInternals:i,hasDefaultNodes:l,nodeOrigin:a,getNodes:d,elevateNodesOnSelect:s}=e();n!=null&&n.length&&(l&&t({nodeInternals:on(mo(n,d()),i,a,s)}),o==null||o(n))},addSelectedNodes:n=>{let{multiSelectionActive:o,edges:i,getNodes:l}=e(),a,d=null;o?a=n.map(s=>Ne(s,!0)):(a=qe(l(),n),d=qe(i,[])),St({changedNodes:a,changedEdges:d,get:e,set:t})},addSelectedEdges:n=>{let{multiSelectionActive:o,edges:i,getNodes:l}=e(),a,d=null;o?a=n.map(s=>Ne(s,!0)):(a=qe(i,n),d=qe(l(),[])),St({changedNodes:d,changedEdges:a,get:e,set:t})},unselectNodesAndEdges:({nodes:n,edges:o}={})=>{let{edges:i,getNodes:l}=e(),a=n||l(),d=o||i;St({changedNodes:a.map(s=>(s.selected=!1,Ne(s.id,!1))),changedEdges:d.map(s=>Ne(s.id,!1)),get:e,set:t})},setMinZoom:n=>{let{d3Zoom:o,maxZoom:i}=e();o==null||o.scaleExtent([n,i]),t({minZoom:n})},setMaxZoom:n=>{let{d3Zoom:o,minZoom:i}=e();o==null||o.scaleExtent([i,n]),t({maxZoom:n})},setTranslateExtent:n=>{var o;(o=e().d3Zoom)==null||o.translateExtent(n),t({translateExtent:n})},resetSelectedElements:()=>{let{edges:n,getNodes:o}=e();St({changedNodes:o().filter(i=>i.selected).map(i=>Ne(i.id,!1)),changedEdges:n.filter(i=>i.selected).map(i=>Ne(i.id,!1)),get:e,set:t})},setNodeExtent:n=>{let{nodeInternals:o}=e();o.forEach(i=>{i.positionAbsolute=Ht(i.position,n)}),t({nodeExtent:n,nodeInternals:new Map(o)})},panBy:n=>{let{transform:o,width:i,height:l,d3Zoom:a,d3Selection:d,translateExtent:s}=e();if(!a||!d||!n.x&&!n.y)return!1;let c=Xe.translate(o[0]+n.x,o[1]+n.y).scale(o[2]),u=[[0,0],[i,l]],r=a==null?void 0:a.constrain()(c,u,s);return a.transform(d,r),o[0]!==r.x||o[1]!==r.y||o[2]!==r.k},cancelConnection:()=>t({connectionNodeId:ke.connectionNodeId,connectionHandleId:ke.connectionHandleId,connectionHandleType:ke.connectionHandleType,connectionStatus:ke.connectionStatus,connectionStartHandle:ke.connectionStartHandle,connectionEndHandle:ke.connectionEndHandle}),reset:()=>t({...ke})}),Object.is),un=({children:t})=>{let e=(0,v.useRef)(null);return e.current||(e.current=Ns()),v.createElement(Wa,{value:e.current},t)};un.displayName="ReactFlowProvider";var zo=({children:t})=>(0,v.useContext)(ft)?v.createElement(v.Fragment,null,t):v.createElement(un,null,t);zo.displayName="ReactFlowWrapper";var ks={input:Jn,default:tn,output:to,group:nn},Ms={default:Et,straight:Kt,step:Zt,smoothstep:bt,simplebezier:Wt},Os=[0,0],_s=[15,15],Ps={x:0,y:0,zoom:1},Is={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},Lo=(0,v.forwardRef)(({nodes:t,edges:e,defaultNodes:n,defaultEdges:o,className:i,nodeTypes:l=ks,edgeTypes:a=Ms,onNodeClick:d,onEdgeClick:s,onInit:c,onMove:u,onMoveStart:r,onMoveEnd:g,onConnect:h,onConnectStart:m,onConnectEnd:f,onClickConnectStart:y,onClickConnectEnd:x,onNodeMouseEnter:b,onNodeMouseMove:N,onNodeMouseLeave:p,onNodeContextMenu:S,onNodeDoubleClick:k,onNodeDragStart:_,onNodeDrag:P,onNodeDragStop:I,onNodesDelete:E,onEdgesDelete:w,onSelectionChange:O,onSelectionDragStart:M,onSelectionDrag:C,onSelectionDragStop:R,onSelectionContextMenu:L,onSelectionStart:H,onSelectionEnd:F,connectionMode:D=We.Strict,connectionLineType:$=Ae.Bezier,connectionLineStyle:V,connectionLineComponent:X,connectionLineContainerStyle:Z,deleteKeyCode:U="Backspace",selectionKeyCode:j="Shift",selectionOnDrag:A=!1,selectionMode:B=yt.Full,panActivationKeyCode:T="Space",multiSelectionKeyCode:Y=mt()?"Meta":"Control",zoomActivationKeyCode:G=mt()?"Meta":"Control",snapToGrid:ee=!1,snapGrid:ae=_s,onlyRenderVisibleElements:ge=!1,selectNodesOnDrag:oe=!0,nodesDraggable:J,nodesConnectable:de,nodesFocusable:te,nodeOrigin:K=Os,edgesFocusable:fe,edgesUpdatable:Me,elementsSelectable:tt,defaultViewport:ze=Ps,minZoom:Le=.5,maxZoom:Ee=2,translateExtent:$e=cn,preventScrolling:Oe=!0,nodeExtent:_e,defaultMarkerColor:Te="#b1b1b7",zoomOnScroll:He=!0,zoomOnPinch:ce=!0,panOnScroll:pe=!1,panOnScrollSpeed:Pe=.5,panOnScrollMode:Ie=Ye.Free,zoomOnDoubleClick:je=!0,panOnDrag:be=!0,onPaneClick:we,onPaneMouseEnter:nt,onPaneMouseMove:Mt,onPaneMouseLeave:ot,onPaneScroll:De,onPaneContextMenu:ar,children:ir,onEdgeContextMenu:sr,onEdgeDoubleClick:lr,onEdgeMouseEnter:dr,onEdgeMouseMove:cr,onEdgeMouseLeave:ur,onEdgeUpdate:hr,onEdgeUpdateStart:gr,onEdgeUpdateEnd:fr,onReconnect:pr,onReconnectStart:mr,onReconnectEnd:yr,reconnectRadius:vr=10,edgeUpdaterRadius:br=10,onNodesChange:xr,onEdgesChange:Er,noDragClassName:wr="nodrag",noWheelClassName:Sr="nowheel",noPanClassName:mn="nopan",fitView:Cr=!1,fitViewOptions:Nr,connectOnClick:kr=!0,attributionPosition:Mr,proOptions:Or,defaultEdgeOptions:_r,elevateNodesOnSelect:Pr=!0,elevateEdgesOnSelect:Ir=!1,disableKeyboardA11y:yn=!1,autoPanOnConnect:jr=!0,autoPanOnNodeDrag:Dr=!0,connectionRadius:Rr=20,isValidConnection:Ar,onError:Br,style:zr,id:vn,nodeDragThreshold:Lr,...$r},Tr)=>{let Ot=vn||"1";return v.createElement("div",{...$r,style:{...zr,...Is},ref:Tr,className:he(["react-flow",i]),"data-testid":"rf__wrapper",id:vn},v.createElement(zo,null,v.createElement(Cs,{onInit:c,onMove:u,onMoveStart:r,onMoveEnd:g,onNodeClick:d,onEdgeClick:s,onNodeMouseEnter:b,onNodeMouseMove:N,onNodeMouseLeave:p,onNodeContextMenu:S,onNodeDoubleClick:k,nodeTypes:l,edgeTypes:a,connectionLineType:$,connectionLineStyle:V,connectionLineComponent:X,connectionLineContainerStyle:Z,selectionKeyCode:j,selectionOnDrag:A,selectionMode:B,deleteKeyCode:U,multiSelectionKeyCode:Y,panActivationKeyCode:T,zoomActivationKeyCode:G,onlyRenderVisibleElements:ge,selectNodesOnDrag:oe,defaultViewport:ze,translateExtent:$e,minZoom:Le,maxZoom:Ee,preventScrolling:Oe,zoomOnScroll:He,zoomOnPinch:ce,zoomOnDoubleClick:je,panOnScroll:pe,panOnScrollSpeed:Pe,panOnScrollMode:Ie,panOnDrag:be,onPaneClick:we,onPaneMouseEnter:nt,onPaneMouseMove:Mt,onPaneMouseLeave:ot,onPaneScroll:De,onPaneContextMenu:ar,onSelectionContextMenu:L,onSelectionStart:H,onSelectionEnd:F,onEdgeContextMenu:sr,onEdgeDoubleClick:lr,onEdgeMouseEnter:dr,onEdgeMouseMove:cr,onEdgeMouseLeave:ur,onReconnect:pr??hr,onReconnectStart:mr??gr,onReconnectEnd:yr??fr,reconnectRadius:vr??br,defaultMarkerColor:Te,noDragClassName:wr,noWheelClassName:Sr,noPanClassName:mn,elevateEdgesOnSelect:Ir,rfId:Ot,disableKeyboardA11y:yn,nodeOrigin:K,nodeExtent:_e}),v.createElement(Ei,{nodes:t,edges:e,defaultNodes:n,defaultEdges:o,onConnect:h,onConnectStart:m,onConnectEnd:f,onClickConnectStart:y,onClickConnectEnd:x,nodesDraggable:J,nodesConnectable:de,nodesFocusable:te,edgesFocusable:fe,edgesUpdatable:Me,elementsSelectable:tt,elevateNodesOnSelect:Pr,minZoom:Le,maxZoom:Ee,nodeExtent:_e,onNodesChange:xr,onEdgesChange:Er,snapToGrid:ee,snapGrid:ae,connectionMode:D,translateExtent:$e,connectOnClick:kr,defaultEdgeOptions:_r,fitView:Cr,fitViewOptions:Nr,onNodesDelete:E,onEdgesDelete:w,onNodeDragStart:_,onNodeDrag:P,onNodeDragStop:I,onSelectionDrag:C,onSelectionDragStart:M,onSelectionDragStop:R,noPanClassName:mn,nodeOrigin:K,rfId:Ot,autoPanOnConnect:jr,autoPanOnNodeDrag:Dr,onError:Br,connectionRadius:Rr,isValidConnection:Ar,nodeDragThreshold:Lr}),v.createElement(bi,{onSelectionChange:O}),ir,v.createElement(Za,{proOptions:Or,position:Mr}),v.createElement(ki,{rfId:Ot,disableKeyboardA11y:yn})))});Lo.displayName="ReactFlow";function $o(t){return e=>{let[n,o]=(0,v.useState)(e);return[n,o,(0,v.useCallback)(i=>o(l=>t(i,l)),[])]}}var js=$o(mo),Ds=$o(Ti);function Rs(){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},v.createElement("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"}))}function As(){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},v.createElement("path",{d:"M0 0h32v4.2H0z"}))}function Bs(){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},v.createElement("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"}))}function zs(){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},v.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"}))}function Ls(){return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},v.createElement("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"}))}var et=({children:t,className:e,...n})=>v.createElement("button",{type:"button",className:he(["react-flow__controls-button",e]),...n},t);et.displayName="ControlButton";var $s=t=>({isInteractive:t.nodesDraggable||t.nodesConnectable||t.elementsSelectable,minZoomReached:t.transform[2]<=t.minZoom,maxZoomReached:t.transform[2]>=t.maxZoom}),To=({style:t,showZoom:e=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:i,onZoomIn:l,onZoomOut:a,onFitView:d,onInteractiveChange:s,className:c,children:u,position:r="bottom-left"})=>{let g=le(),[h,m]=(0,v.useState)(!1),{isInteractive:f,minZoomReached:y,maxZoomReached:x}=ne($s,ue),{zoomIn:b,zoomOut:N,fitView:p}=lt();if((0,v.useEffect)(()=>{m(!0)},[]),!h)return null;let S=()=>{b(),l==null||l()},k=()=>{N(),a==null||a()},_=()=>{p(i),d==null||d()},P=()=>{g.setState({nodesDraggable:!f,nodesConnectable:!f,elementsSelectable:!f}),s==null||s(!f)};return v.createElement(pt,{className:he(["react-flow__controls",c]),position:r,style:t,"data-testid":"rf__controls"},e&&v.createElement(v.Fragment,null,v.createElement(et,{onClick:S,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:x},v.createElement(Rs,null)),v.createElement(et,{onClick:k,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:y},v.createElement(As,null))),n&&v.createElement(et,{className:"react-flow__controls-fitview",onClick:_,title:"fit view","aria-label":"fit view"},v.createElement(Bs,null)),o&&v.createElement(et,{className:"react-flow__controls-interactive",onClick:P,title:"toggle interactivity","aria-label":"toggle interactivity"},f?v.createElement(Ls,null):v.createElement(zs,null)),u)};To.displayName="Controls";var Ts=(0,v.memo)(To),ye;(function(t){t.Lines="lines",t.Dots="dots",t.Cross="cross"})(ye||(ye={}));function Hs({color:t,dimensions:e,lineWidth:n}){return v.createElement("path",{stroke:t,strokeWidth:n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})}function Vs({color:t,radius:e}){return v.createElement("circle",{cx:e,cy:e,r:e,fill:t})}var Xs={[ye.Dots]:"#91919a",[ye.Lines]:"#eee",[ye.Cross]:"#e2e2e2"},Fs={[ye.Dots]:1,[ye.Lines]:1,[ye.Cross]:6},Ws=t=>({transform:t.transform,patternId:`pattern-${t.rfId}`});function Ho({id:t,variant:e=ye.Dots,gap:n=20,size:o,lineWidth:i=1,offset:l=2,color:a,style:d,className:s}){let c=(0,v.useRef)(null),{transform:u,patternId:r}=ne(Ws,ue),g=a||Xs[e],h=o||Fs[e],m=e===ye.Dots,f=e===ye.Cross,y=Array.isArray(n)?n:[n,n],x=[y[0]*u[2]||1,y[1]*u[2]||1],b=h*u[2],N=f?[b,b]:x,p=m?[b/l,b/l]:[N[0]/l,N[1]/l];return v.createElement("svg",{className:he(["react-flow__background",s]),style:{...d,position:"absolute",width:"100%",height:"100%",top:0,left:0},ref:c,"data-testid":"rf__background"},v.createElement("pattern",{id:r+t,x:u[0]%x[0],y:u[1]%x[1],width:x[0],height:x[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${p[0]},-${p[1]})`},m?v.createElement(Vs,{color:g,radius:b/l}):v.createElement(Hs,{dimensions:N,color:g,lineWidth:i})),v.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${r+t})`}))}Ho.displayName="Background";var Ys=(0,v.memo)(Ho),Zs=Re();function Vo(t){return Math.min(t*11+35,200)}const hn="outputs",gn="inputs";var Ks=class{createEdge(t,e){return{animated:!0,markerEnd:{type:vt.ArrowClosed},id:`${t}-${e}`,style:{strokeWidth:2},source:t,sourceHandle:hn,targetHandle:gn,target:e}}createNode(t,e){let n=Pt.get(e).code.trim().split(` +`).length,o=Vo(n);return{id:t,data:{atom:e,forceWidth:300},width:300,type:"custom",height:o,position:{x:0,y:0}}}createElements(t,e,n,o){let i=[],l=[],a=new Set,d=new Set;for(let s of Object.values(n)){if(s.value==="marimo"&&s.name==="mo")continue;let{declaredBy:c,usedBy:u}=s;for(let r of c)for(let g of u){let h=`${r}-${g}`;d.has(h)||(d.add(h),a.add(r),a.add(g),l.push(this.createEdge(r,g)))}}for(let[s,c]of ra.zip(t,e)){o||i.push(this.createNode(s,c));let u=a.has(s),r=Pt.get(c).code.trim().startsWith("mo.md");(u||!r)&&i.push(this.createNode(s,c))}return{nodes:i,edges:l}}},z=_t(na(),1);function Gs(t){return Math.min(Math.max(t-100,100),400)}const Xo=v.createContext("LR"),Fo=(0,v.memo)(t=>{let e=(0,Zs.c)(51),{data:n,selected:o}=t,i=jt(n.atom),l=Dt().inOrderIds.indexOf(i.id),a=o?"var(--gray-9)":"var(--gray-3)",d=ne(qs),s=(0,v.use)(Xo),c,u,r,g;if(e[0]!==i.code||e[1]!==a||e[2]!==s||e[3]!==o){let E=i.code.split(` +`).length,w=s==="LR"?W.Left:W.Top,O;e[8]===a?O=e[9]:(O={background:a},e[8]=a,e[9]=O),e[10]!==w||e[11]!==O?(r=(0,z.jsx)(Ce,{type:"target",id:gn,"data-testid":"input-one",position:w,style:O}),e[10]=w,e[11]=O,e[12]=r):r=e[12];let M=s==="LR"?W.Left:W.Top,C;e[13]===a?C=e[14]:(C={background:a},e[13]=a,e[14]=C),e[15]!==M||e[16]!==C?(g=(0,z.jsx)(Ce,{type:"source",id:gn,"data-testid":"input-two",position:M,style:C}),e[15]=M,e[16]=C,e[17]=g):g=e[17];let R=o&&"border-primary";e[18]===R?u=e[19]:(u=Ve("flex flex-col bg-card border border-input/50 rounded-md mx-[2px] overflow-hidden",R),e[18]=R,e[19]=u),c=Vo(E),e[0]=i.code,e[1]=a,e[2]=s,e[3]=o,e[4]=c,e[5]=u,e[6]=r,e[7]=g}else c=e[4],u=e[5],r=e[6],g=e[7];let h;e[20]!==n.forceWidth||e[21]!==d?(h=n.forceWidth||Gs(d),e[20]=n.forceWidth,e[21]=d,e[22]=h):h=e[22];let m;e[23]!==c||e[24]!==h?(m={height:c,width:h},e[23]=c,e[24]=h,e[25]=m):m=e[25];let f=Jr(i.name,l),y;e[26]===f?y=e[27]:(y=(0,z.jsx)("div",{className:"text-muted-foreground font-semibold text-xs py-1 px-2 bg-muted border-b",children:f}),e[26]=f,e[27]=y);let x;e[28]===i.code?x=e[29]:(x=(0,z.jsx)(Pa,{code:i.code}),e[28]=i.code,e[29]=x);let b;e[30]!==u||e[31]!==m||e[32]!==y||e[33]!==x?(b=(0,z.jsxs)("div",{className:u,style:m,children:[y,x]}),e[30]=u,e[31]=m,e[32]=y,e[33]=x,e[34]=b):b=e[34];let N=s==="LR"?W.Right:W.Bottom,p;e[35]===a?p=e[36]:(p={background:a},e[35]=a,e[36]=p);let S;e[37]!==N||e[38]!==p?(S=(0,z.jsx)(Ce,{type:"source",id:hn,"data-testid":"output-one",position:N,style:p}),e[37]=N,e[38]=p,e[39]=S):S=e[39];let k=s==="LR"?W.Right:W.Bottom,_;e[40]===a?_=e[41]:(_={background:a},e[40]=a,e[41]=_);let P;e[42]!==k||e[43]!==_?(P=(0,z.jsx)(Ce,{type:"target",id:hn,"data-testid":"output-two",position:k,style:_}),e[42]=k,e[43]=_,e[44]=P):P=e[44];let I;return e[45]!==b||e[46]!==S||e[47]!==P||e[48]!==r||e[49]!==g?(I=(0,z.jsxs)("div",{children:[r,g,b,S,P]}),e[45]=b,e[46]=S,e[47]=P,e[48]=r,e[49]=g,e[50]=I):I=e[50],I},(t,e)=>["data","selected","id"].every(n=>t[n]===e[n]));Fo.displayName="CustomNode";const Us={custom:Fo};function qs(t){let{width:e}=t;return e}var Wo=Re();const Yo=(0,v.memo)(t=>{let e=(0,Wo.c)(34),{onChange:n,view:o,settings:i,onSettingsChange:l}=t,a;e[0]!==l||e[1]!==i?(a=(E,w)=>{l({...i,[E]:w})},e[0]=l,e[1]=i,e[2]=a):a=e[2];let d=a,s=(0,v.useId)(),c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,z.jsx)(ma,{asChild:!0,children:(0,z.jsx)(rt,{variant:"text",size:"xs",children:(0,z.jsx)(ha,{className:"w-4 h-4"})})}),e[3]=c):c=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,z.jsx)("div",{className:"font-semibold pb-4",children:"Settings"}),e[4]=u):u=e[4];let r;e[5]===d?r=e[6]:(r=E=>d("hidePureMarkdown",!!E),e[5]=d,e[6]=r);let g;e[7]!==s||e[8]!==i.hidePureMarkdown||e[9]!==r?(g=(0,z.jsx)(Kr,{"data-testid":"hide-pure-markdown-checkbox",id:s,checked:i.hidePureMarkdown,onCheckedChange:r}),e[7]=s,e[8]=i.hidePureMarkdown,e[9]=r,e[10]=g):g=e[10];let h;e[11]===s?h=e[12]:(h=(0,z.jsx)(Ca,{htmlFor:s,children:"Hide pure markdown"}),e[11]=s,e[12]=h);let m;e[13]!==g||e[14]!==h?(m=(0,z.jsxs)(va,{children:[c,(0,z.jsxs)(ya,{className:"w-auto p-2 text-muted-foreground",children:[u,(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[g,h]})]})]}),e[13]=g,e[14]=h,e[15]=m):m=e[15];let f=m,y=o==="TB",x;e[16]===n?x=e[17]:(x=()=>n("TB"),e[16]=n,e[17]=x);let b;e[18]===Symbol.for("react.memo_cache_sentinel")?(b=(0,z.jsx)(xn,{className:"w-4 h-4 mr-1"}),e[18]=b):b=e[18];let N;e[19]!==y||e[20]!==x?(N=(0,z.jsxs)(rt,{variant:"outline",className:"bg-background","aria-selected":y,size:"xs",onClick:x,children:[b,"Vertical Tree"]}),e[19]=y,e[20]=x,e[21]=N):N=e[21];let p=o==="LR",S;e[22]===n?S=e[23]:(S=()=>n("LR"),e[22]=n,e[23]=S);let k;e[24]===Symbol.for("react.memo_cache_sentinel")?(k=(0,z.jsx)(xn,{className:"w-4 h-4 mr-1 transform -rotate-90"}),e[24]=k):k=e[24];let _;e[25]!==p||e[26]!==S?(_=(0,z.jsxs)(rt,{variant:"outline",className:"bg-background","aria-selected":p,size:"xs",onClick:S,children:[k," ","Horizontal Tree"]}),e[25]=p,e[26]=S,e[27]=_):_=e[27];let P;e[28]!==N||e[29]!==_?(P=(0,z.jsxs)("div",{className:"flex gap-2",children:[N,_]}),e[28]=N,e[29]=_,e[30]=P):P=e[30];let I;return e[31]!==f||e[32]!==P?(I=(0,z.jsxs)(pt,{position:"top-right",className:"flex flex-col items-end gap-2",children:[P,f]}),e[31]=f,e[32]=P,e[33]=I):I=e[33],I});Yo.displayName="GraphToolbar";const Zo=(0,v.memo)(t=>{let e=(0,Wo.c)(11),{selection:n,variables:o,onClearSelection:i}=t;if(!n)return null;let l=Qs,a;e[0]!==i||e[1]!==n.id||e[2]!==n.source||e[3]!==n.target||e[4]!==n.type||e[5]!==o?(a=()=>{if(n.type==="node"){let u=Object.values(o).filter(h=>h.usedBy.includes(n.id)),r=Object.values(o).filter(h=>h.declaredBy.includes(n.id)),g=(h,m)=>(0,z.jsxs)(z.Fragment,{children:[h.length===0&&(0,z.jsx)("div",{className:"text-muted-foreground text-sm text-center",children:"--"}),(0,z.jsx)("div",{className:"grid grid-cols-5 gap-3 items-center text-sm py-1 flex-1 empty:hidden",children:h.map(f=>(0,z.jsxs)(v.Fragment,{children:[(0,z.jsx)(Sn,{declaredBy:f.declaredBy,name:f.name}),(0,z.jsxs)("div",{className:"truncate col-span-2",title:f.value??"",children:[f.value,(0,z.jsxs)("span",{className:"ml-1 truncate text-foreground/60 font-mono",children:["(",f.dataType,")"]})]}),(0,z.jsx)("div",{className:"truncate col-span-2 gap-1 items-center",children:(0,z.jsx)(Ia,{skipScroll:!0,onClick:()=>l(m==="in"?f.declaredBy[0]:f.usedBy[0],f.name),maxCount:3,cellIds:f.usedBy})})]},f.name))})]});return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("div",{className:"font-bold py-2 flex items-center gap-2 border-b px-3",children:[(0,z.jsx)(ga,{className:"w-5 h-5"}),(0,z.jsx)(At,{cellId:n.id}),(0,z.jsx)("div",{className:"flex-1"}),(0,z.jsx)(ia,{cellId:n.id,children:(0,z.jsx)(rt,{variant:"ghost",size:"icon",children:(0,z.jsx)(ua,{className:"w-4 h-4"})})}),(0,z.jsx)(rt,{variant:"text",size:"icon",onClick:()=>{i()},children:(0,z.jsx)(la,{className:"w-4 h-4"})})]}),(0,z.jsxs)("div",{className:"text-sm flex flex-col py-3 pl-2 pr-4 flex-1 justify-center",children:[(0,z.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,z.jsxs)("span",{className:"flex items-center gap-2 font-semibold",children:[(0,z.jsx)(ja,{className:"w-4 h-4"}),"Outputs"]}),g(r,"out")]}),(0,z.jsx)("hr",{className:"border-divider my-3"}),(0,z.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,z.jsxs)("span",{className:"flex items-center gap-2 font-semibold",children:[(0,z.jsx)(Da,{className:"w-4 h-4"}),"Inputs"]}),g(u,"in")]})]})]})}if(n.type==="edge"){let u=Object.values(o).filter(r=>r.declaredBy.includes(n.source)&&r.usedBy.includes(n.target));return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)("div",{className:"font-bold py-2 flex items-center gap-2 border-b px-3",children:[(0,z.jsx)(fa,{className:"w-4 h-4"}),(0,z.jsx)(At,{cellId:n.source}),(0,z.jsx)(aa,{className:"w-4 h-4"}),(0,z.jsx)(At,{cellId:n.target})]}),(0,z.jsx)("div",{className:"grid grid-cols-4 gap-3 max-w-[350px] items-center text-sm p-3 flex-1",children:u.map(r=>(0,z.jsxs)(v.Fragment,{children:[(0,z.jsx)(Sn,{declaredBy:r.declaredBy,name:r.name,onClick:()=>{l(r.declaredBy[0],r.name)}}),(0,z.jsx)("div",{className:"truncate text-foreground/60 font-mono",children:r.dataType}),(0,z.jsx)("div",{className:"truncate col-span-2",title:r.value??"",children:r.value})]},r.name))})]})}},e[0]=i,e[1]=n.id,e[2]=n.source,e[3]=n.target,e[4]=n.type,e[5]=o,e[6]=a):a=e[6];let d=a,s;e[7]===d?s=e[8]:(s=d(),e[7]=d,e[8]=s);let c;return e[9]===s?c=e[10]:(c=(0,z.jsx)(pt,{position:"bottom-left",className:"max-h-[90%] flex flex-col w-[calc(100%-5rem)]",children:(0,z.jsx)("div",{className:"min-h-[100px] shadow-md rounded-md border max-w-[550px] border-primary/40 my-4 min-w-[240px] bg-(--slate-1) text-muted-foreground/80 flex flex-col overflow-y-auto",children:s})}),e[9]=s,e[10]=c),c});Zo.displayName="GraphSelectionPanel";function Qs(t,e){let n=Qr(t);n&&Wr(n,e)}var fn=q(((t,e)=>{var n="\0",o="\0",i="",l=class{constructor(r){ie(this,"_isDirected",!0);ie(this,"_isMultigraph",!1);ie(this,"_isCompound",!1);ie(this,"_label");ie(this,"_defaultNodeLabelFn",()=>{});ie(this,"_defaultEdgeLabelFn",()=>{});ie(this,"_nodes",{});ie(this,"_in",{});ie(this,"_preds",{});ie(this,"_out",{});ie(this,"_sucs",{});ie(this,"_edgeObjs",{});ie(this,"_edgeLabels",{});ie(this,"_nodeCount",0);ie(this,"_edgeCount",0);ie(this,"_parent");ie(this,"_children");r&&(this._isDirected=Object.hasOwn(r,"directed")?r.directed:!0,this._isMultigraph=Object.hasOwn(r,"multigraph")?r.multigraph:!1,this._isCompound=Object.hasOwn(r,"compound")?r.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[o]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(r){return this._label=r,this}graph(){return this._label}setDefaultNodeLabel(r){return this._defaultNodeLabelFn=r,typeof r!="function"&&(this._defaultNodeLabelFn=()=>r),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var r=this;return this.nodes().filter(g=>Object.keys(r._in[g]).length===0)}sinks(){var r=this;return this.nodes().filter(g=>Object.keys(r._out[g]).length===0)}setNodes(r,g){var h=arguments,m=this;return r.forEach(function(f){h.length>1?m.setNode(f,g):m.setNode(f)}),this}setNode(r,g){return Object.hasOwn(this._nodes,r)?(arguments.length>1&&(this._nodes[r]=g),this):(this._nodes[r]=arguments.length>1?g:this._defaultNodeLabelFn(r),this._isCompound&&(this._parent[r]=o,this._children[r]={},this._children[o][r]=!0),this._in[r]={},this._preds[r]={},this._out[r]={},this._sucs[r]={},++this._nodeCount,this)}node(r){return this._nodes[r]}hasNode(r){return Object.hasOwn(this._nodes,r)}removeNode(r){var g=this;if(Object.hasOwn(this._nodes,r)){var h=m=>g.removeEdge(g._edgeObjs[m]);delete this._nodes[r],this._isCompound&&(this._removeFromParentsChildList(r),delete this._parent[r],this.children(r).forEach(function(m){g.setParent(m)}),delete this._children[r]),Object.keys(this._in[r]).forEach(h),delete this._in[r],delete this._preds[r],Object.keys(this._out[r]).forEach(h),delete this._out[r],delete this._sucs[r],--this._nodeCount}return this}setParent(r,g){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(g===void 0)g=o;else{g+="";for(var h=g;h!==void 0;h=this.parent(h))if(h===r)throw Error("Setting "+g+" as parent of "+r+" would create a cycle");this.setNode(g)}return this.setNode(r),this._removeFromParentsChildList(r),this._parent[r]=g,this._children[g][r]=!0,this}_removeFromParentsChildList(r){delete this._children[this._parent[r]][r]}parent(r){if(this._isCompound){var g=this._parent[r];if(g!==o)return g}}children(r=o){if(this._isCompound){var g=this._children[r];if(g)return Object.keys(g)}else{if(r===o)return this.nodes();if(this.hasNode(r))return[]}}predecessors(r){var g=this._preds[r];if(g)return Object.keys(g)}successors(r){var g=this._sucs[r];if(g)return Object.keys(g)}neighbors(r){var g=this.predecessors(r);if(g){let m=new Set(g);for(var h of this.successors(r))m.add(h);return Array.from(m.values())}}isLeaf(r){return(this.isDirected()?this.successors(r):this.neighbors(r)).length===0}filterNodes(r){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var h=this;Object.entries(this._nodes).forEach(function([y,x]){r(y)&&g.setNode(y,x)}),Object.values(this._edgeObjs).forEach(function(y){g.hasNode(y.v)&&g.hasNode(y.w)&&g.setEdge(y,h.edge(y))});var m={};function f(y){var x=h.parent(y);return x===void 0||g.hasNode(x)?(m[y]=x,x):x in m?m[x]:f(x)}return this._isCompound&&g.nodes().forEach(y=>g.setParent(y,f(y))),g}setDefaultEdgeLabel(r){return this._defaultEdgeLabelFn=r,typeof r!="function"&&(this._defaultEdgeLabelFn=()=>r),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(r,g){var h=this,m=arguments;return r.reduce(function(f,y){return m.length>1?h.setEdge(f,y,g):h.setEdge(f,y),y}),this}setEdge(){var r,g,h,m,f=!1,y=arguments[0];typeof y=="object"&&y&&"v"in y?(r=y.v,g=y.w,h=y.name,arguments.length===2&&(m=arguments[1],f=!0)):(r=y,g=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],f=!0)),r=""+r,g=""+g,h!==void 0&&(h=""+h);var x=s(this._isDirected,r,g,h);if(Object.hasOwn(this._edgeLabels,x))return f&&(this._edgeLabels[x]=m),this;if(h!==void 0&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(g),this._edgeLabels[x]=f?m:this._defaultEdgeLabelFn(r,g,h);var b=c(this._isDirected,r,g,h);return r=b.v,g=b.w,Object.freeze(b),this._edgeObjs[x]=b,a(this._preds[g],r),a(this._sucs[r],g),this._in[g][x]=b,this._out[r][x]=b,this._edgeCount++,this}edge(r,g,h){var m=arguments.length===1?u(this._isDirected,arguments[0]):s(this._isDirected,r,g,h);return this._edgeLabels[m]}edgeAsObj(){let r=this.edge(...arguments);return typeof r=="object"?r:{label:r}}hasEdge(r,g,h){var m=arguments.length===1?u(this._isDirected,arguments[0]):s(this._isDirected,r,g,h);return Object.hasOwn(this._edgeLabels,m)}removeEdge(r,g,h){var m=arguments.length===1?u(this._isDirected,arguments[0]):s(this._isDirected,r,g,h),f=this._edgeObjs[m];return f&&(r=f.v,g=f.w,delete this._edgeLabels[m],delete this._edgeObjs[m],d(this._preds[g],r),d(this._sucs[r],g),delete this._in[g][m],delete this._out[r][m],this._edgeCount--),this}inEdges(r,g){var h=this._in[r];if(h){var m=Object.values(h);return g?m.filter(f=>f.v===g):m}}outEdges(r,g){var h=this._out[r];if(h){var m=Object.values(h);return g?m.filter(f=>f.w===g):m}}nodeEdges(r,g){var h=this.inEdges(r,g);if(h)return h.concat(this.outEdges(r,g))}};function a(r,g){r[g]?r[g]++:r[g]=1}function d(r,g){--r[g]||delete r[g]}function s(r,g,h,m){var f=""+g,y=""+h;if(!r&&f>y){var x=f;f=y,y=x}return f+i+y+i+(m===void 0?n:m)}function c(r,g,h,m){var f=""+g,y=""+h;if(!r&&f>y){var x=f;f=y,y=x}var b={v:f,w:y};return m&&(b.name=m),b}function u(r,g){return s(r,g.v,g.w,g.name)}e.exports=l})),Js=q(((t,e)=>{e.exports="2.2.4"})),el=q(((t,e)=>{e.exports={Graph:fn(),version:Js()}})),tl=q(((t,e)=>{var n=fn();e.exports={write:o,read:a};function o(d){var s={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:i(d),edges:l(d)};return d.graph()!==void 0&&(s.value=structuredClone(d.graph())),s}function i(d){return d.nodes().map(function(s){var c=d.node(s),u=d.parent(s),r={v:s};return c!==void 0&&(r.value=c),u!==void 0&&(r.parent=u),r})}function l(d){return d.edges().map(function(s){var c=d.edge(s),u={v:s.v,w:s.w};return s.name!==void 0&&(u.name=s.name),c!==void 0&&(u.value=c),u})}function a(d){var s=new n(d.options).setGraph(d.value);return d.nodes.forEach(function(c){s.setNode(c.v,c.value),c.parent&&s.setParent(c.v,c.parent)}),d.edges.forEach(function(c){s.setEdge({v:c.v,w:c.w,name:c.name},c.value)}),s}})),nl=q(((t,e)=>{e.exports=n;function n(o){var i={},l=[],a;function d(s){Object.hasOwn(i,s)||(i[s]=!0,a.push(s),o.successors(s).forEach(d),o.predecessors(s).forEach(d))}return o.nodes().forEach(function(s){a=[],d(s),a.length&&l.push(a)}),l}})),Ko=q(((t,e)=>{e.exports=class{constructor(){ie(this,"_arr",[]);ie(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw Error("Queue underflow");return this._arr[0].key}add(n,o){var i=this._keyIndices;if(n=String(n),!Object.hasOwn(i,n)){var l=this._arr,a=l.length;return i[n]=a,l.push({key:n,priority:o}),this._decrease(a),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var i=this._keyIndices[n];if(o>this._arr[i].priority)throw Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+o);this._arr[i].priority=o,this._decrease(i)}_heapify(n){var o=this._arr,i=2*n,l=i+1,a=n;i>1,!(o[l].priority{var n=Ko();e.exports=i;var o=()=>1;function i(a,d,s,c){return l(a,String(d),s||o,c||function(u){return a.outEdges(u)})}function l(a,d,s,c){var u={},r=new n,g,h,m=function(f){var y=f.v===g?f.w:f.v,x=u[y],b=s(f),N=h.distance+b;if(b<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+f+" Weight: "+b);N0&&(g=r.removeMin(),h=u[g],h.distance!==1/0);)c(g).forEach(m);return u}})),ol=q(((t,e)=>{var n=Go();e.exports=o;function o(i,l,a){return i.nodes().reduce(function(d,s){return d[s]=n(i,s,l,a),d},{})}})),Uo=q(((t,e)=>{e.exports=n;function n(o){var i=0,l=[],a={},d=[];function s(c){var u=a[c]={onStack:!0,lowlink:i,index:i++};if(l.push(c),o.successors(c).forEach(function(h){Object.hasOwn(a,h)?a[h].onStack&&(u.lowlink=Math.min(u.lowlink,a[h].index)):(s(h),u.lowlink=Math.min(u.lowlink,a[h].lowlink))}),u.lowlink===u.index){var r=[],g;do g=l.pop(),a[g].onStack=!1,r.push(g);while(c!==g);d.push(r)}}return o.nodes().forEach(function(c){Object.hasOwn(a,c)||s(c)}),d}})),rl=q(((t,e)=>{var n=Uo();e.exports=o;function o(i){return n(i).filter(function(l){return l.length>1||l.length===1&&i.hasEdge(l[0],l[0])})}})),al=q(((t,e)=>{e.exports=o;var n=()=>1;function o(l,a,d){return i(l,a||n,d||function(s){return l.outEdges(s)})}function i(l,a,d){var s={},c=l.nodes();return c.forEach(function(u){s[u]={},s[u][u]={distance:0},c.forEach(function(r){u!==r&&(s[u][r]={distance:1/0})}),d(u).forEach(function(r){var g=r.v===u?r.w:r.v,h=a(r);s[u][g]={distance:h,predecessor:u}})}),c.forEach(function(u){var r=s[u];c.forEach(function(g){var h=s[g];c.forEach(function(m){var f=h[u],y=r[m],x=h[m],b=f.distance+y.distance;b{function n(i){var l={},a={},d=[];function s(c){if(Object.hasOwn(a,c))throw new o;Object.hasOwn(l,c)||(a[c]=!0,l[c]=!0,i.predecessors(c).forEach(s),delete a[c],d.push(c))}if(i.sinks().forEach(s),Object.keys(l).length!==i.nodeCount())throw new o;return d}var o=class extends Error{constructor(){super(...arguments)}};e.exports=n,n.CycleException=o})),il=q(((t,e)=>{var n=qo();e.exports=o;function o(i){try{n(i)}catch(l){if(l instanceof n.CycleException)return!1;throw l}return!0}})),Qo=q(((t,e)=>{e.exports=n;function n(a,d,s){Array.isArray(d)||(d=[d]);var c=a.isDirected()?h=>a.successors(h):h=>a.neighbors(h),u=s==="post"?o:i,r=[],g={};return d.forEach(h=>{if(!a.hasNode(h))throw Error("Graph does not have node: "+h);u(h,c,g,r)}),r}function o(a,d,s,c){for(var u=[[a,!1]];u.length>0;){var r=u.pop();r[1]?c.push(r[0]):Object.hasOwn(s,r[0])||(s[r[0]]=!0,u.push([r[0],!0]),l(d(r[0]),g=>u.push([g,!1])))}}function i(a,d,s,c){for(var u=[a];u.length>0;){var r=u.pop();Object.hasOwn(s,r)||(s[r]=!0,c.push(r),l(d(r),g=>u.push(g)))}}function l(a,d){for(var s=a.length;s--;)d(a[s],s,a);return a}})),sl=q(((t,e)=>{var n=Qo();e.exports=o;function o(i,l){return n(i,l,"post")}})),ll=q(((t,e)=>{var n=Qo();e.exports=o;function o(i,l){return n(i,l,"pre")}})),dl=q(((t,e)=>{var n=fn(),o=Ko();e.exports=i;function i(l,a){var d=new n,s={},c=new o,u;function r(h){var m=h.v===u?h.w:h.v,f=c.priority(m);if(f!==void 0){var y=a(h);y0;){if(u=c.removeMin(),Object.hasOwn(s,u))d.setEdge(u,s[u]);else{if(g)throw Error("Input graph is not connected: "+l);g=!0}l.nodeEdges(u).forEach(r)}return d}})),cl=q(((t,e)=>{e.exports={components:nl(),dijkstra:Go(),dijkstraAll:ol(),findCycles:rl(),floydWarshall:al(),isAcyclic:il(),postorder:sl(),preorder:ll(),prim:dl(),tarjan:Uo(),topsort:qo()}})),ve=q(((t,e)=>{var n=el();e.exports={Graph:n.Graph,json:tl(),alg:cl(),version:n.version}})),ul=q(((t,e)=>{var n=class{constructor(){let l={};l._next=l._prev=l,this._sentinel=l}dequeue(){let l=this._sentinel,a=l._prev;if(a!==l)return o(a),a}enqueue(l){let a=this._sentinel;l._prev&&l._next&&o(l),l._next=a._next,a._next._prev=l,a._next=l,l._prev=a}toString(){let l=[],a=this._sentinel,d=a._prev;for(;d!==a;)l.push(JSON.stringify(d,i)),d=d._prev;return"["+l.join(", ")+"]"}};function o(l){l._prev._next=l._next,l._next._prev=l._prev,delete l._next,delete l._prev}function i(l,a){if(l!=="_next"&&l!=="_prev")return a}e.exports=n})),hl=q(((t,e)=>{var n=ve().Graph,o=ul();e.exports=l;var i=()=>1;function l(r,g){if(r.nodeCount()<=1)return[];let h=s(r,g||i);return a(h.graph,h.buckets,h.zeroIdx).flatMap(m=>r.outEdges(m.v,m.w))}function a(r,g,h){let m=[],f=g[g.length-1],y=g[0],x;for(;r.nodeCount();){for(;x=y.dequeue();)d(r,g,h,x);for(;x=f.dequeue();)d(r,g,h,x);if(r.nodeCount()){for(let b=g.length-2;b>0;--b)if(x=g[b].dequeue(),x){m=m.concat(d(r,g,h,x,!0));break}}}return m}function d(r,g,h,m,f){let y=f?[]:void 0;return r.inEdges(m.v).forEach(x=>{let b=r.edge(x),N=r.node(x.v);f&&y.push({v:x.v,w:x.w}),N.out-=b,c(g,h,N)}),r.outEdges(m.v).forEach(x=>{let b=r.edge(x),N=x.w,p=r.node(N);p.in-=b,c(g,h,p)}),r.removeNode(m.v),y}function s(r,g){let h=new n,m=0,f=0;r.nodes().forEach(b=>{h.setNode(b,{v:b,in:0,out:0})}),r.edges().forEach(b=>{let N=h.edge(b.v,b.w)||0,p=g(b),S=N+p;h.setEdge(b.v,b.w,S),f=Math.max(f,h.node(b.v).out+=p),m=Math.max(m,h.node(b.w).in+=p)});let y=u(f+m+3).map(()=>new o),x=m+1;return h.nodes().forEach(b=>{c(y,x,h.node(b))}),{graph:h,buckets:y,zeroIdx:x}}function c(r,g,h){h.out?h.in?r[h.out-h.in+g].enqueue(h):r[r.length-1].enqueue(h):r[0].enqueue(h)}function u(r){let g=[];for(let h=0;h{var n=ve().Graph;e.exports={addBorderNode:g,addDummyNode:o,applyWithChunking:f,asNonCompoundGraph:l,buildLayerMatrix:c,intersectRect:s,mapValues:P,maxRank:y,normalizeRanks:u,notime:N,partition:x,pick:_,predecessorWeights:d,range:k,removeEmptyRanks:r,simplify:i,successorWeights:a,time:b,uniqueId:S,zipObject:I};function o(E,w,O,M){for(var C=M;E.hasNode(C);)C=S(M);return O.dummy=w,E.setNode(C,O),C}function i(E){let w=new n().setGraph(E.graph());return E.nodes().forEach(O=>w.setNode(O,E.node(O))),E.edges().forEach(O=>{let M=w.edge(O.v,O.w)||{weight:0,minlen:1},C=E.edge(O);w.setEdge(O.v,O.w,{weight:M.weight+C.weight,minlen:Math.max(M.minlen,C.minlen)})}),w}function l(E){let w=new n({multigraph:E.isMultigraph()}).setGraph(E.graph());return E.nodes().forEach(O=>{E.children(O).length||w.setNode(O,E.node(O))}),E.edges().forEach(O=>{w.setEdge(O,E.edge(O))}),w}function a(E){let w=E.nodes().map(O=>{let M={};return E.outEdges(O).forEach(C=>{M[C.w]=(M[C.w]||0)+E.edge(C).weight}),M});return I(E.nodes(),w)}function d(E){let w=E.nodes().map(O=>{let M={};return E.inEdges(O).forEach(C=>{M[C.v]=(M[C.v]||0)+E.edge(C).weight}),M});return I(E.nodes(),w)}function s(E,w){let O=E.x,M=E.y,C=w.x-O,R=w.y-M,L=E.width/2,H=E.height/2;if(!C&&!R)throw Error("Not possible to find intersection inside of the rectangle");let F,D;return Math.abs(R)*L>Math.abs(C)*H?(R<0&&(H=-H),F=H*C/R,D=H):(C<0&&(L=-L),F=L,D=L*R/C),{x:O+F,y:M+D}}function c(E){let w=k(y(E)+1).map(()=>[]);return E.nodes().forEach(O=>{let M=E.node(O),C=M.rank;C!==void 0&&(w[C][M.order]=O)}),w}function u(E){let w=E.nodes().map(M=>{let C=E.node(M).rank;return C===void 0?Number.MAX_VALUE:C}),O=f(Math.min,w);E.nodes().forEach(M=>{let C=E.node(M);Object.hasOwn(C,"rank")&&(C.rank-=O)})}function r(E){let w=E.nodes().map(L=>E.node(L).rank),O=f(Math.min,w),M=[];E.nodes().forEach(L=>{let H=E.node(L).rank-O;M[H]||(M[H]=[]),M[H].push(L)});let C=0,R=E.graph().nodeRankFactor;Array.from(M).forEach((L,H)=>{L===void 0&&H%R!==0?--C:L!==void 0&&C&&L.forEach(F=>E.node(F).rank+=C)})}function g(E,w,O,M){let C={width:0,height:0};return arguments.length>=4&&(C.rank=O,C.order=M),o(E,"border",C,w)}function h(E,w=m){let O=[];for(let M=0;Mm){let O=h(w);return E.apply(null,O.map(M=>E.apply(null,M)))}else return E.apply(null,w)}function y(E){let w=E.nodes().map(O=>{let M=E.node(O).rank;return M===void 0?Number.MIN_VALUE:M});return f(Math.max,w)}function x(E,w){let O={lhs:[],rhs:[]};return E.forEach(M=>{w(M)?O.lhs.push(M):O.rhs.push(M)}),O}function b(E,w){let O=Date.now();try{return w()}finally{console.log(E+" time: "+(Date.now()-O)+"ms")}}function N(E,w){return w()}var p=0;function S(E){return E+(""+ ++p)}function k(E,w,O=1){w??(w=E,E=0);let M=R=>RwM[w]),Object.entries(E).reduce((M,[C,R])=>(M[C]=O(R,C),M),{})}function I(E,w){return E.reduce((O,M,C)=>(O[M]=w[C],O),{})}})),gl=q(((t,e)=>{var n=hl(),o=se().uniqueId;e.exports={run:i,undo:a};function i(d){(d.graph().acyclicer==="greedy"?n(d,s(d)):l(d)).forEach(c=>{let u=d.edge(c);d.removeEdge(c),u.forwardName=c.name,u.reversed=!0,d.setEdge(c.w,c.v,u,o("rev"))});function s(c){return u=>c.edge(u).weight}}function l(d){let s=[],c={},u={};function r(g){Object.hasOwn(u,g)||(u[g]=!0,c[g]=!0,d.outEdges(g).forEach(h=>{Object.hasOwn(c,h.w)?s.push(h):r(h.w)}),delete c[g])}return d.nodes().forEach(r),s}function a(d){d.edges().forEach(s=>{let c=d.edge(s);if(c.reversed){d.removeEdge(s);let u=c.forwardName;delete c.reversed,delete c.forwardName,d.setEdge(s.w,s.v,c,u)}})}})),fl=q(((t,e)=>{var n=se();e.exports={run:o,undo:l};function o(a){a.graph().dummyChains=[],a.edges().forEach(d=>i(a,d))}function i(a,d){let s=d.v,c=a.node(s).rank,u=d.w,r=a.node(u).rank,g=d.name,h=a.edge(d),m=h.labelRank;if(r===c+1)return;a.removeEdge(d);let f,y,x;for(x=0,++c;c{let s=a.node(d),c=s.edgeLabel,u;for(a.setEdge(s.edgeObj,c);s.dummy;)u=a.successors(d)[0],a.removeNode(d),c.points.push({x:s.x,y:s.y}),s.dummy==="edge-label"&&(c.x=s.x,c.y=s.y,c.width=s.width,c.height=s.height),d=u,s=a.node(d)})}})),Nt=q(((t,e)=>{var{applyWithChunking:n}=se();e.exports={longestPath:o,slack:i};function o(l){var a={};function d(s){var c=l.node(s);if(Object.hasOwn(a,s))return c.rank;a[s]=!0;let u=l.outEdges(s).map(g=>g==null?1/0:d(g.w)-l.edge(g).minlen);var r=n(Math.min,u);return r===1/0&&(r=0),c.rank=r}l.sources().forEach(d)}function i(l,a){return l.node(a.w).rank-l.node(a.v).rank-l.edge(a).minlen}})),Jo=q(((t,e)=>{var n=ve().Graph,o=Nt().slack;e.exports=i;function i(s){var c=new n({directed:!1}),u=s.nodes()[0],r=s.nodeCount();c.setNode(u,{});for(var g,h;l(c,s){var h=g.v,m=r===h?g.w:h;!s.hasNode(m)&&!o(c,g)&&(s.setNode(m,{}),s.setEdge(r,m,{}),u(m))})}return s.nodes().forEach(u),s.nodeCount()}function a(s,c){return c.edges().reduce((u,r)=>{let g=1/0;return s.hasNode(r.v)!==s.hasNode(r.w)&&(g=o(c,r)),gc.node(r).rank+=u)}})),pl=q(((t,e)=>{var n=Jo(),o=Nt().slack,i=Nt().longestPath,l=ve().alg.preorder,a=ve().alg.postorder,d=se().simplify;e.exports=s,s.initLowLimValues=g,s.initCutValues=c,s.calcCutValue=r,s.leaveEdge=m,s.enterEdge=f,s.exchangeEdges=y;function s(p){p=d(p),i(p);var S=n(p);g(S),c(S,p);for(var k,_;k=m(S);)_=f(S,p,k),y(S,p,k,_)}function c(p,S){var k=a(p,p.nodes());k=k.slice(0,k.length-1),k.forEach(_=>u(p,S,_))}function u(p,S,k){var _=p.node(k).parent;p.edge(k,_).cutvalue=r(p,S,k)}function r(p,S,k){var _=p.node(k).parent,P=!0,I=S.edge(k,_),E=0;return I||(I=(P=!1,S.edge(_,k))),E=I.weight,S.nodeEdges(k).forEach(w=>{var O=w.v===k,M=O?w.w:w.v;if(M!==_){var C=O===P,R=S.edge(w).weight;if(E+=C?R:-R,b(p,k,M)){var L=p.edge(k,M).cutvalue;E+=C?-L:L}}}),E}function g(p,S){arguments.length<2&&(S=p.nodes()[0]),h(p,{},1,S)}function h(p,S,k,_,P){var I=k,E=p.node(_);return S[_]=!0,p.neighbors(_).forEach(w=>{Object.hasOwn(S,w)||(k=h(p,S,k,w,_))}),E.low=I,E.lim=k++,P?E.parent=P:delete E.parent,k}function m(p){return p.edges().find(S=>p.edge(S).cutvalue<0)}function f(p,S,k){var _=k.v,P=k.w;S.hasEdge(_,P)||(_=k.w,P=k.v);var I=p.node(_),E=p.node(P),w=I,O=!1;return I.lim>E.lim&&(w=E,O=!0),S.edges().filter(M=>O===N(p,p.node(M.v),w)&&O!==N(p,p.node(M.w),w)).reduce((M,C)=>o(S,C)!S.node(_).parent));k=k.slice(1),k.forEach(_=>{var P=p.node(_).parent,I=S.edge(_,P),E=!1;I||(I=S.edge(P,_),E=!0),S.node(_).rank=S.node(P).rank+(E?I.minlen:-I.minlen)})}function b(p,S,k){return p.hasEdge(S,k)}function N(p,S,k){return k.low<=S.lim&&S.lim<=k.lim}})),ml=q(((t,e)=>{var n=Nt().longestPath,o=Jo(),i=pl();e.exports=l;function l(c){var u=c.graph().ranker;if(u instanceof Function)return u(c);switch(c.graph().ranker){case"network-simplex":s(c);break;case"tight-tree":d(c);break;case"longest-path":a(c);break;case"none":break;default:s(c)}}var a=n;function d(c){n(c),o(c)}function s(c){i(c)}})),yl=q(((t,e)=>{e.exports=n;function n(l){let a=i(l);l.graph().dummyChains.forEach(d=>{let s=l.node(d),c=s.edgeObj,u=o(l,a,c.v,c.w),r=u.path,g=u.lca,h=0,m=r[h],f=!0;for(;d!==c.w;){if(s=l.node(d),f){for(;(m=r[h])!==g&&l.node(m).maxRankr||g>a[h].lim));for(m=h,h=s;(h=l.parent(h))!==m;)u.push(h);return{path:c.concat(u.reverse()),lca:m}}function i(l){let a={},d=0;function s(c){let u=d;l.children(c).forEach(s),a[c]={low:u,lim:d++}}return l.children().forEach(s),a}})),vl=q(((t,e)=>{var n=se();e.exports={run:o,cleanup:d};function o(s){let c=n.addDummyNode(s,"root",{},"_root"),u=l(s),r=Object.values(u),g=n.applyWithChunking(Math.max,r)-1,h=2*g+1;s.graph().nestingRoot=c,s.edges().forEach(f=>s.edge(f).minlen*=h);let m=a(s)+1;s.children().forEach(f=>i(s,c,h,m,g,u,f)),s.graph().nodeRankFactor=h}function i(s,c,u,r,g,h,m){let f=s.children(m);if(!f.length){m!==c&&s.setEdge(c,m,{weight:0,minlen:u});return}let y=n.addBorderNode(s,"_bt"),x=n.addBorderNode(s,"_bb"),b=s.node(m);s.setParent(y,m),b.borderTop=y,s.setParent(x,m),b.borderBottom=x,f.forEach(N=>{i(s,c,u,r,g,h,N);let p=s.node(N),S=p.borderTop?p.borderTop:N,k=p.borderBottom?p.borderBottom:N,_=p.borderTop?r:2*r,P=S===k?g-h[m]+1:1;s.setEdge(y,S,{weight:_,minlen:P,nestingEdge:!0}),s.setEdge(k,x,{weight:_,minlen:P,nestingEdge:!0})}),s.parent(m)||s.setEdge(c,y,{weight:0,minlen:g+h[m]})}function l(s){var c={};function u(r,g){var h=s.children(r);h&&h.length&&h.forEach(m=>u(m,g+1)),c[r]=g}return s.children().forEach(r=>u(r,1)),c}function a(s){return s.edges().reduce((c,u)=>c+s.edge(u).weight,0)}function d(s){var c=s.graph();s.removeNode(c.nestingRoot),delete c.nestingRoot,s.edges().forEach(u=>{s.edge(u).nestingEdge&&s.removeEdge(u)})}})),bl=q(((t,e)=>{var n=se();e.exports=o;function o(l){function a(d){let s=l.children(d),c=l.node(d);if(s.length&&s.forEach(a),Object.hasOwn(c,"minRank")){c.borderLeft=[],c.borderRight=[];for(let u=c.minRank,r=c.maxRank+1;u{e.exports={adjust:n,undo:o};function n(u){let r=u.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&i(u)}function o(u){let r=u.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&a(u),(r==="lr"||r==="rl")&&(s(u),i(u))}function i(u){u.nodes().forEach(r=>l(u.node(r))),u.edges().forEach(r=>l(u.edge(r)))}function l(u){let r=u.width;u.width=u.height,u.height=r}function a(u){u.nodes().forEach(r=>d(u.node(r))),u.edges().forEach(r=>{let g=u.edge(r);g.points.forEach(d),Object.hasOwn(g,"y")&&d(g)})}function d(u){u.y=-u.y}function s(u){u.nodes().forEach(r=>c(u.node(r))),u.edges().forEach(r=>{let g=u.edge(r);g.points.forEach(c),Object.hasOwn(g,"x")&&c(g)})}function c(u){let r=u.x;u.x=u.y,u.y=r}})),El=q(((t,e)=>{var n=se();e.exports=o;function o(i){let l={},a=i.nodes().filter(r=>!i.children(r).length),d=a.map(r=>i.node(r).rank),s=n.applyWithChunking(Math.max,d),c=n.range(s+1).map(()=>[]);function u(r){l[r]||(l[r]=!0,c[i.node(r).rank].push(r),i.successors(r).forEach(u))}return a.sort((r,g)=>i.node(r).rank-i.node(g).rank).forEach(u),c}})),wl=q(((t,e)=>{var n=se().zipObject;e.exports=o;function o(l,a){let d=0;for(let s=1;sf)),c=a.flatMap(m=>l.outEdges(m).map(f=>({pos:s[f.w],weight:l.edge(f).weight})).sort((f,y)=>f.pos-y.pos)),u=1;for(;u{let f=m.pos+u;g[f]+=m.weight;let y=0;for(;f>0;)f%2&&(y+=g[f+1]),f=f-1>>1,g[f]+=m.weight;h+=m.weight*y}),h}})),Sl=q(((t,e)=>{e.exports=n;function n(o,i=[]){return i.map(l=>{let a=o.inEdges(l);if(a.length){let d=a.reduce((s,c)=>{let u=o.edge(c),r=o.node(c.v);return{sum:s.sum+u.weight*r.order,weight:s.weight+u.weight}},{sum:0,weight:0});return{v:l,barycenter:d.sum/d.weight,weight:d.weight}}else return{v:l}})}})),Cl=q(((t,e)=>{var n=se();e.exports=o;function o(a,d){let s={};return a.forEach((c,u)=>{let r=s[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:u};c.barycenter!==void 0&&(r.barycenter=c.barycenter,r.weight=c.weight)}),d.edges().forEach(c=>{let u=s[c.v],r=s[c.w];u!==void 0&&r!==void 0&&(r.indegree++,u.out.push(s[c.w]))}),i(Object.values(s).filter(c=>!c.indegree))}function i(a){let d=[];function s(u){return r=>{r.merged||(r.barycenter===void 0||u.barycenter===void 0||r.barycenter>=u.barycenter)&&l(u,r)}}function c(u){return r=>{r.in.push(u),--r.indegree===0&&a.push(r)}}for(;a.length;){let u=a.pop();d.push(u),u.in.reverse().forEach(s(u)),u.out.forEach(c(u))}return d.filter(u=>!u.merged).map(u=>n.pick(u,["vs","i","barycenter","weight"]))}function l(a,d){let s=0,c=0;a.weight&&(s+=a.barycenter*a.weight,c+=a.weight),d.weight&&(s+=d.barycenter*d.weight,c+=d.weight),a.vs=d.vs.concat(a.vs),a.barycenter=s/c,a.weight=c,a.i=Math.min(d.i,a.i),d.merged=!0}})),Nl=q(((t,e)=>{var n=se();e.exports=o;function o(a,d){let s=n.partition(a,y=>Object.hasOwn(y,"barycenter")),c=s.lhs,u=s.rhs.sort((y,x)=>x.i-y.i),r=[],g=0,h=0,m=0;c.sort(l(!!d)),m=i(r,u,m),c.forEach(y=>{m+=y.vs.length,r.push(y.vs),g+=y.barycenter*y.weight,h+=y.weight,m=i(r,u,m)});let f={vs:r.flat(!0)};return h&&(f.barycenter=g/h,f.weight=h),f}function i(a,d,s){let c;for(;d.length&&(c=d[d.length-1]).i<=s;)d.pop(),a.push(c.vs),s++;return s}function l(a){return(d,s)=>d.barycenters.barycenter?1:a?s.i-d.i:d.i-s.i}})),kl=q(((t,e)=>{var n=Sl(),o=Cl(),i=Nl();e.exports=l;function l(s,c,u,r){let g=s.children(c),h=s.node(c),m=h?h.borderLeft:void 0,f=h?h.borderRight:void 0,y={};m&&(g=g.filter(p=>p!==m&&p!==f));let x=n(s,g);x.forEach(p=>{if(s.children(p.v).length){let S=l(s,p.v,u,r);y[p.v]=S,Object.hasOwn(S,"barycenter")&&d(p,S)}});let b=o(x,u);a(b,y);let N=i(b,r);if(m&&(N.vs=[m,N.vs,f].flat(!0),s.predecessors(m).length)){let p=s.node(s.predecessors(m)[0]),S=s.node(s.predecessors(f)[0]);Object.hasOwn(N,"barycenter")||(N.barycenter=0,N.weight=0),N.barycenter=(N.barycenter*N.weight+p.order+S.order)/(N.weight+2),N.weight+=2}return N}function a(s,c){s.forEach(u=>{u.vs=u.vs.flatMap(r=>c[r]?c[r].vs:r)})}function d(s,c){s.barycenter===void 0?(s.barycenter=c.barycenter,s.weight=c.weight):(s.barycenter=(s.barycenter*s.weight+c.barycenter*c.weight)/(s.weight+c.weight),s.weight+=c.weight)}})),Ml=q(((t,e)=>{var n=ve().Graph,o=se();e.exports=i;function i(a,d,s,c){c||(c=a.nodes());let u=l(a),r=new n({compound:!0}).setGraph({root:u}).setDefaultNodeLabel(g=>a.node(g));return c.forEach(g=>{let h=a.node(g),m=a.parent(g);(h.rank===d||h.minRank<=d&&d<=h.maxRank)&&(r.setNode(g),r.setParent(g,m||u),a[s](g).forEach(f=>{let y=f.v===g?f.w:f.v,x=r.edge(y,g),b=x===void 0?0:x.weight;r.setEdge(y,g,{weight:a.edge(f).weight+b})}),Object.hasOwn(h,"minRank")&&r.setNode(g,{borderLeft:h.borderLeft[d],borderRight:h.borderRight[d]}))}),r}function l(a){for(var d;a.hasNode(d=o.uniqueId("_root")););return d}})),Ol=q(((t,e)=>{e.exports=n;function n(o,i,l){let a={},d;l.forEach(s=>{let c=o.parent(s),u,r;for(;c;){if(u=o.parent(c),u?(r=a[u],a[u]=c):(r=d,d=c),r&&r!==c){i.setEdge(r,c);return}c=u}})}})),_l=q(((t,e)=>{var n=El(),o=wl(),i=kl(),l=Ml(),a=Ol(),d=ve().Graph,s=se();e.exports=c;function c(h,m){if(m&&typeof m.customOrder=="function"){m.customOrder(h,c);return}let f=s.maxRank(h),y=u(h,s.range(1,f+1),"inEdges"),x=u(h,s.range(f-1,-1,-1),"outEdges"),b=n(h);if(g(h,b),m&&m.disableOptimalOrderHeuristic)return;let N=1/0,p;for(let S=0,k=0;k<4;++S,++k){r(S%2?y:x,S%4>=2),b=s.buildLayerMatrix(h);let _=o(h,b);_{y.has(b)||y.set(b,[]),y.get(b).push(N)};for(let b of h.nodes()){let N=h.node(b);if(typeof N.rank=="number"&&x(N.rank,b),typeof N.minRank=="number"&&typeof N.maxRank=="number")for(let p=N.minRank;p<=N.maxRank;p++)p!==N.rank&&x(p,b)}return m.map(function(b){return l(h,b,f,y.get(b)||[])})}function r(h,m){let f=new d;h.forEach(function(y){let x=y.graph().root,b=i(y,x,f,m);b.vs.forEach((N,p)=>y.node(N).order=p),a(y,f,b.vs)})}function g(h,m){Object.values(m).forEach(f=>f.forEach((y,x)=>h.node(y).order=x))}})),Pl=q(((t,e)=>{var n=ve().Graph,o=se();e.exports={positionX:f,findType1Conflicts:i,findType2Conflicts:l,addConflict:d,hasConflict:s,verticalAlignment:c,horizontalCompaction:u,alignCoordinates:h,findSmallestWidthAlignment:g,balance:m};function i(b,N){let p={};function S(k,_){let P=0,I=0,E=k.length,w=_[_.length-1];return _.forEach((O,M)=>{let C=a(b,O),R=C?b.node(C).order:E;(C||O===w)&&(_.slice(I,M+1).forEach(L=>{b.predecessors(L).forEach(H=>{let F=b.node(H),D=F.order;(D{O=_[M],b.node(O).dummy&&b.predecessors(O).forEach(C=>{let R=b.node(C);R.dummy&&(R.orderw)&&d(p,C,O)})})}function k(_,P){let I=-1,E,w=0;return P.forEach((O,M)=>{if(b.node(O).dummy==="border"){let C=b.predecessors(O);C.length&&(E=b.node(C[0]).order,S(P,w,M,I,E),w=M,I=E)}S(P,w,P.length,E,_.length)}),P}return N.length&&N.reduce(k),p}function a(b,N){if(b.node(N).dummy)return b.predecessors(N).find(p=>b.node(p).dummy)}function d(b,N,p){if(N>p){let k=N;N=p,p=k}let S=b[N];S||(b[N]=S={}),S[p]=!0}function s(b,N,p){if(N>p){let S=N;N=p,p=S}return!!b[N]&&Object.hasOwn(b[N],p)}function c(b,N,p,S){let k={},_={},P={};return N.forEach(I=>{I.forEach((E,w)=>{k[E]=E,_[E]=E,P[E]=w})}),N.forEach(I=>{let E=-1;I.forEach(w=>{let O=S(w);if(O.length){O=O.sort((C,R)=>P[C]-P[R]);let M=(O.length-1)/2;for(let C=Math.floor(M),R=Math.ceil(M);C<=R;++C){let L=O[C];_[w]===w&&EMath.max(C,_[R.v]+P.edge(R)),0)}function O(M){let C=P.outEdges(M).reduce((L,H)=>Math.min(L,_[H.w]-P.edge(H)),1/0),R=b.node(M);C!==1/0&&R.borderType!==I&&(_[M]=Math.max(_[M],C))}return E(w,P.predecessors.bind(P)),E(O,P.successors.bind(P)),Object.keys(S).forEach(M=>_[M]=_[p[M]]),_}function r(b,N,p,S){let k=new n,_=b.graph(),P=y(_.nodesep,_.edgesep,S);return N.forEach(I=>{let E;I.forEach(w=>{let O=p[w];if(k.setNode(O),E){var M=p[E],C=k.edge(M,O);k.setEdge(M,O,Math.max(P(b,w,E),C||0))}E=w})}),k}function g(b,N){return Object.values(N).reduce((p,S)=>{let k=-1/0,_=1/0;Object.entries(S).forEach(([I,E])=>{let w=x(b,I)/2;k=Math.max(E+w,k),_=Math.min(E-w,_)});let P=k-_;return P{["l","r"].forEach(P=>{let I=_+P,E=b[I];if(E===N)return;let w=Object.values(E),O=S-o.applyWithChunking(Math.min,w);P!=="l"&&(O=k-o.applyWithChunking(Math.max,w)),O&&(b[I]=o.mapValues(E,M=>M+O))})})}function m(b,N){return o.mapValues(b.ul,(p,S)=>{if(N)return b[N.toLowerCase()][S];{let k=Object.values(b).map(_=>_[S]).sort((_,P)=>_-P);return(k[1]+k[2])/2}})}function f(b){let N=o.buildLayerMatrix(b),p=Object.assign(i(b,N),l(b,N)),S={},k;return["u","d"].forEach(_=>{k=_==="u"?N:Object.values(N).reverse(),["l","r"].forEach(P=>{P==="r"&&(k=k.map(O=>Object.values(O).reverse()));let I=(_==="u"?b.predecessors:b.successors).bind(b),E=c(b,k,p,I),w=u(b,k,E.root,E.align,P==="r");P==="r"&&(w=o.mapValues(w,O=>-O)),S[_+P]=w})}),h(S,g(b,S)),m(S,b.graph().align)}function y(b,N,p){return(S,k,_)=>{let P=S.node(k),I=S.node(_),E=0,w;if(E+=P.width/2,Object.hasOwn(P,"labelpos"))switch(P.labelpos.toLowerCase()){case"l":w=-P.width/2;break;case"r":w=P.width/2;break}if(w&&(E+=p?w:-w),w=0,E+=(P.dummy?N:b)/2,E+=(I.dummy?N:b)/2,E+=I.width/2,Object.hasOwn(I,"labelpos"))switch(I.labelpos.toLowerCase()){case"l":w=I.width/2;break;case"r":w=-I.width/2;break}return w&&(E+=p?w:-w),w=0,E}}function x(b,N){return b.node(N).width}})),Il=q(((t,e)=>{var n=se(),o=Pl().positionX;e.exports=i;function i(a){a=n.asNonCompoundGraph(a),l(a),Object.entries(o(a)).forEach(([d,s])=>a.node(d).x=s)}function l(a){let d=n.buildLayerMatrix(a),s=a.graph().ranksep,c=0;d.forEach(u=>{let r=u.reduce((g,h)=>{let m=a.node(h).height;return g>m?g:m},0);u.forEach(g=>a.node(g).y=c+r/2),c+=r+s})}})),jl=q(((t,e)=>{var n=gl(),o=fl(),i=ml(),l=se().normalizeRanks,a=yl(),d=se().removeEmptyRanks,s=vl(),c=bl(),u=xl(),r=_l(),g=Il(),h=se(),m=ve().Graph;e.exports=f;function f(j,A){let B=A&&A.debugTiming?h.time:h.notime;B("layout",()=>{let T=B(" buildLayoutGraph",()=>E(j));B(" runLayout",()=>y(T,B,A)),B(" updateInputGraph",()=>x(j,T))})}function y(j,A,B){A(" makeSpaceForEdgeLabels",()=>w(j)),A(" removeSelfEdges",()=>$(j)),A(" acyclic",()=>n.run(j)),A(" nestingGraph.run",()=>s.run(j)),A(" rank",()=>i(h.asNonCompoundGraph(j))),A(" injectEdgeLabelProxies",()=>O(j)),A(" removeEmptyRanks",()=>d(j)),A(" nestingGraph.cleanup",()=>s.cleanup(j)),A(" normalizeRanks",()=>l(j)),A(" assignRankMinMax",()=>M(j)),A(" removeEdgeLabelProxies",()=>C(j)),A(" normalize.run",()=>o.run(j)),A(" parentDummyChains",()=>a(j)),A(" addBorderSegments",()=>c(j)),A(" order",()=>r(j,B)),A(" insertSelfEdges",()=>V(j)),A(" adjustCoordinateSystem",()=>u.adjust(j)),A(" position",()=>g(j)),A(" positionSelfEdges",()=>X(j)),A(" removeBorderNodes",()=>D(j)),A(" normalize.undo",()=>o.undo(j)),A(" fixupEdgeLabelCoords",()=>H(j)),A(" undoCoordinateSystem",()=>u.undo(j)),A(" translateGraph",()=>R(j)),A(" assignNodeIntersects",()=>L(j)),A(" reversePoints",()=>F(j)),A(" acyclic.undo",()=>n.undo(j))}function x(j,A){j.nodes().forEach(B=>{let T=j.node(B),Y=A.node(B);T&&(T.x=Y.x,T.y=Y.y,T.rank=Y.rank,A.children(B).length&&(T.width=Y.width,T.height=Y.height))}),j.edges().forEach(B=>{let T=j.edge(B),Y=A.edge(B);T.points=Y.points,Object.hasOwn(Y,"x")&&(T.x=Y.x,T.y=Y.y)}),j.graph().width=A.graph().width,j.graph().height=A.graph().height}var b=["nodesep","edgesep","ranksep","marginx","marginy"],N={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},p=["acyclicer","ranker","rankdir","align"],S=["width","height","rank"],k={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],P={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},I=["labelpos"];function E(j){let A=new m({multigraph:!0,compound:!0}),B=U(j.graph());return A.setGraph(Object.assign({},N,Z(B,b),h.pick(B,p))),j.nodes().forEach(T=>{let Y=Z(U(j.node(T)),S);Object.keys(k).forEach(G=>{Y[G]===void 0&&(Y[G]=k[G])}),A.setNode(T,Y),A.setParent(T,j.parent(T))}),j.edges().forEach(T=>{let Y=U(j.edge(T));A.setEdge(T,Object.assign({},P,Z(Y,_),h.pick(Y,I)))}),A}function w(j){let A=j.graph();A.ranksep/=2,j.edges().forEach(B=>{let T=j.edge(B);T.minlen*=2,T.labelpos.toLowerCase()!=="c"&&(A.rankdir==="TB"||A.rankdir==="BT"?T.width+=T.labeloffset:T.height+=T.labeloffset)})}function O(j){j.edges().forEach(A=>{let B=j.edge(A);if(B.width&&B.height){let T=j.node(A.v),Y={rank:(j.node(A.w).rank-T.rank)/2+T.rank,e:A};h.addDummyNode(j,"edge-proxy",Y,"_ep")}})}function M(j){let A=0;j.nodes().forEach(B=>{let T=j.node(B);T.borderTop&&(T.minRank=j.node(T.borderTop).rank,T.maxRank=j.node(T.borderBottom).rank,A=Math.max(A,T.maxRank))}),j.graph().maxRank=A}function C(j){j.nodes().forEach(A=>{let B=j.node(A);B.dummy==="edge-proxy"&&(j.edge(B.e).labelRank=B.rank,j.removeNode(A))})}function R(j){let A=1/0,B=0,T=1/0,Y=0,G=j.graph(),ee=G.marginx||0,ae=G.marginy||0;function ge(oe){let J=oe.x,de=oe.y,te=oe.width,K=oe.height;A=Math.min(A,J-te/2),B=Math.max(B,J+te/2),T=Math.min(T,de-K/2),Y=Math.max(Y,de+K/2)}j.nodes().forEach(oe=>ge(j.node(oe))),j.edges().forEach(oe=>{let J=j.edge(oe);Object.hasOwn(J,"x")&&ge(J)}),A-=ee,T-=ae,j.nodes().forEach(oe=>{let J=j.node(oe);J.x-=A,J.y-=T}),j.edges().forEach(oe=>{let J=j.edge(oe);J.points.forEach(de=>{de.x-=A,de.y-=T}),Object.hasOwn(J,"x")&&(J.x-=A),Object.hasOwn(J,"y")&&(J.y-=T)}),G.width=B-A+ee,G.height=Y-T+ae}function L(j){j.edges().forEach(A=>{let B=j.edge(A),T=j.node(A.v),Y=j.node(A.w),G,ee;B.points?(G=B.points[0],ee=B.points[B.points.length-1]):(B.points=[],G=Y,ee=T),B.points.unshift(h.intersectRect(T,G)),B.points.push(h.intersectRect(Y,ee))})}function H(j){j.edges().forEach(A=>{let B=j.edge(A);if(Object.hasOwn(B,"x"))switch((B.labelpos==="l"||B.labelpos==="r")&&(B.width-=B.labeloffset),B.labelpos){case"l":B.x-=B.width/2+B.labeloffset;break;case"r":B.x+=B.width/2+B.labeloffset;break}})}function F(j){j.edges().forEach(A=>{let B=j.edge(A);B.reversed&&B.points.reverse()})}function D(j){j.nodes().forEach(A=>{if(j.children(A).length){let B=j.node(A),T=j.node(B.borderTop),Y=j.node(B.borderBottom),G=j.node(B.borderLeft[B.borderLeft.length-1]),ee=j.node(B.borderRight[B.borderRight.length-1]);B.width=Math.abs(ee.x-G.x),B.height=Math.abs(Y.y-T.y),B.x=G.x+B.width/2,B.y=T.y+B.height/2}}),j.nodes().forEach(A=>{j.node(A).dummy==="border"&&j.removeNode(A)})}function $(j){j.edges().forEach(A=>{if(A.v===A.w){var B=j.node(A.v);B.selfEdges||(B.selfEdges=[]),B.selfEdges.push({e:A,label:j.edge(A)}),j.removeEdge(A)}})}function V(j){h.buildLayerMatrix(j).forEach(A=>{var B=0;A.forEach((T,Y)=>{var G=j.node(T);G.order=Y+B,(G.selfEdges||[]).forEach(ee=>{h.addDummyNode(j,"selfedge",{width:ee.label.width,height:ee.label.height,rank:G.rank,order:Y+ ++B,e:ee.e,label:ee.label},"_se")}),delete G.selfEdges})})}function X(j){j.nodes().forEach(A=>{var B=j.node(A);if(B.dummy==="selfedge"){var T=j.node(B.e.v),Y=T.x+T.width/2,G=T.y,ee=B.x-Y,ae=T.height/2;j.setEdge(B.e,B.label),j.removeNode(A),B.label.points=[{x:Y+2*ee/3,y:G-ae},{x:Y+5*ee/6,y:G-ae},{x:Y+ee,y:G},{x:Y+5*ee/6,y:G+ae},{x:Y+2*ee/3,y:G+ae}],B.label.x=B.x,B.label.y=B.y}})}function Z(j,A){return h.mapValues(h.pick(j,A),Number)}function U(j){var A={};return j&&Object.entries(j).forEach(([B,T])=>{typeof B=="string"&&(B=B.toLowerCase()),A[B]=T}),A}})),Dl=q(((t,e)=>{var n=se(),o=ve().Graph;e.exports={debugOrdering:i};function i(l){let a=n.buildLayerMatrix(l),d=new o({compound:!0,multigraph:!0}).setGraph({});return l.nodes().forEach(s=>{d.setNode(s,{label:s}),d.setParent(s,"layer"+l.node(s).rank)}),l.edges().forEach(s=>d.setEdge(s.v,s.w,{},s.name)),a.forEach((s,c)=>{let u="layer"+c;d.setNode(u,{rank:"same"}),s.reduce((r,g)=>(d.setEdge(r,g,{style:"invis"}),g))}),d}})),Rl=q(((t,e)=>{e.exports="1.1.8"})),er=q(((t,e)=>{e.exports={graphlib:ve(),layout:jl(),debug:Dl(),util:{time:se().time,notime:se().notime},version:Rl()}}))(),ut=new er.graphlib.Graph().setDefaultEdgeLabel(()=>({}));const tr=({nodes:t,edges:e,direction:n})=>(ut.setGraph({rankdir:n,nodesep:150,ranksep:200,ranker:"longest-path"}),e.forEach(o=>ut.setEdge(o.source,o.target)),t.forEach(o=>ut.setNode(o.id,{...o,width:o.width??0,height:o.height??0})),(0,er.layout)(ut),{nodes:t.map(o=>{let{x:i,y:l}=ut.node(o.id);return{...o,position:{x:i,y:l}}}),edges:e});var Al=Re();function Bl(){let t=(0,Al.c)(7),e=lt(),n=ne(Ll),o=ne(zl),i;t[0]===e?i=t[1]:(i=()=>{e.fitView({duration:100})},t[0]=e,t[1]=i);let l=ba(i,100),a,d;t[2]!==l||t[3]!==o||t[4]!==n?(a=()=>{!n||!o||l()},d=[n,o,l],t[2]=l,t[3]=o,t[4]=n,t[5]=a,t[6]=d):(a=t[5],d=t[6]),(0,v.useEffect)(a,d)}function zl(t){let{height:e}=t;return e}function Ll(t){let{width:e}=t;return e}var $l=Re(),nr=new Ks;const Tl=t=>{let e=(0,$l.c)(43),{cellIds:n,variables:o,cellAtoms:i,children:l,layoutDirection:a,settings:d}=t,s;e[0]!==i||e[1]!==n||e[2]!==a||e[3]!==d.hidePureMarkdown||e[4]!==o?(s=()=>{let D=nr.createElements(n,i,o,d.hidePureMarkdown);return D=tr({nodes:D.nodes,edges:D.edges,direction:a}),D},e[0]=i,e[1]=n,e[2]=a,e[3]=d.hidePureMarkdown,e[4]=o,e[5]=s):s=e[5];let[c]=(0,v.useState)(s),[u,r,g]=js(c.nodes),[h,m,f]=Ds(c.edges),y=lt(),x;e[6]!==a||e[7]!==m||e[8]!==r?(x=D=>{let $=tr({nodes:D.nodes,edges:D.edges,direction:a});r($.nodes),m($.edges)},e[6]=a,e[7]=m,e[8]=r,e[9]=x):x=e[9];let b=Xr(x),N,p;e[10]!==i||e[11]!==n||e[12]!==d.hidePureMarkdown||e[13]!==b||e[14]!==o?(N=()=>{b(nr.createElements(n,i,o,d.hidePureMarkdown))},p=[n,o,i,b,d.hidePureMarkdown],e[10]=i,e[11]=n,e[12]=d.hidePureMarkdown,e[13]=b,e[14]=o,e[15]=N,e[16]=p):(N=e[15],p=e[16]),(0,v.useEffect)(N,p);let[S,k]=(0,v.useState)();Bl();let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{k(void 0)},e[17]=_):_=e[17];let P=_,I,E,w;e[18]===Symbol.for("react.memo_cache_sentinel")?(I={minZoom:.5,maxZoom:1.5},E=(D,$)=>{k({type:"node",id:$.id})},w=(D,$)=>{let{source:V,target:X}=$;k({type:"edge",source:V,target:X})},e[18]=I,e[19]=E,e[20]=w):(I=e[18],E=e[19],w=e[20]);let O;e[21]===Symbol.for("react.memo_cache_sentinel")?(O=(0,z.jsx)(Ys,{color:"#ccc",variant:ye.Dots}),e[21]=O):O=e[21];let M;e[22]!==y||e[23]!==u?(M=()=>{let D=Pt.get(wa);if(D){let $=u.find(V=>V.id===D);$&&(y.fitView({padding:1,duration:600,nodes:[$]}),k({type:"node",id:D}))}},e[22]=y,e[23]=u,e[24]=M):M=e[24];let C;e[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,z.jsx)(Ra,{className:"size-4"}),e[25]=C):C=e[25];let R;e[26]===M?R=e[27]:(R=(0,z.jsx)(Ts,{position:"bottom-right",showInteractive:!1,children:(0,z.jsx)(pa,{content:"Jump to focused cell",delayDuration:200,side:"left",asChild:!1,children:(0,z.jsx)(et,{onMouseDown:oa.preventFocus,onClick:M,children:C})})}),e[26]=M,e[27]=R);let L;e[28]!==h||e[29]!==S||e[30]!==o?(L=(0,z.jsx)(Zo,{selection:S,variables:o,edges:h,onClearSelection:P}),e[28]=h,e[29]=S,e[30]=o,e[31]=L):L=e[31];let H;e[32]!==l||e[33]!==h||e[34]!==u||e[35]!==f||e[36]!==g||e[37]!==R||e[38]!==L?(H=(0,z.jsxs)(Lo,{nodes:u,edges:h,nodeTypes:Us,minZoom:.2,fitViewOptions:I,onNodeClick:E,onEdgeClick:w,onNodeDoubleClick:Hl,fitView:!0,onNodesChange:g,onEdgesChange:f,zoomOnDoubleClick:!1,nodesConnectable:!1,children:[O,R,L,l]}),e[32]=l,e[33]=h,e[34]=u,e[35]=f,e[36]=g,e[37]=R,e[38]=L,e[39]=H):H=e[39];let F;return e[40]!==a||e[41]!==H?(F=(0,z.jsx)(Xo,{value:a,children:H}),e[40]=a,e[41]=H,e[42]=F):F=e[42],F};function Hl(t,e){xa(e.id,"focus")}var Vl=Re(),Xl=It("TB"),Fl=It({hidePureMarkdown:!0});const Wl=t=>{let e=(0,Vl.c)(13),[n,o]=bn(Xl),[i,l]=bn(Fl),a;e[0]!==n||e[1]!==o||e[2]!==l||e[3]!==i?(a=(0,z.jsx)(Yo,{settings:i,onSettingsChange:l,view:n,onChange:o}),e[0]=n,e[1]=o,e[2]=l,e[3]=i,e[4]=a):a=e[4];let d;e[5]!==n||e[6]!==t||e[7]!==i||e[8]!==a?(d=(0,z.jsx)(Tl,{...t,settings:i,layoutDirection:n,children:a}),e[5]=n,e[6]=t,e[7]=i,e[8]=a,e[9]=d):d=e[9];let s;return e[10]!==n||e[11]!==d?(s=(0,z.jsx)(un,{children:d},n),e[10]=n,e[11]=d,e[12]=s):s=e[12],s};function pn(t,e,n=new Set){if(n.has(t))return new Set;n.add(t);let o=new Set;for(let i of e(t)){o.add(i);for(let l of pn(i,e,n))o.add(l)}return o}function Yl(t,e){var i,l,a;let n=new Map;for(let d of t)n.set(d,{variables:new Set,parents:new Set,children:new Set});for(let d of Object.values(e))if(d.dataType!=="module")for(let s of d.declaredBy){(i=n.get(s))==null||i.variables.add(d.name);for(let c of d.usedBy)s!==c&&((l=n.get(c))==null||l.parents.add(s),(a=n.get(s))==null||a.children.add(c))}let o={};for(let[d,s]of n.entries())o[d]={parents:s.parents,children:s.children,variables:[...s.variables],ancestors:pn(d,c=>{var u;return((u=n.get(c))==null?void 0:u.parents)??new Set}),descendants:pn(d,c=>{var u;return((u=n.get(c))==null?void 0:u.children)??new Set})};return o}const Zl=It(t=>{let e=t(Ur),n=t(qr);return Yl(e.inOrderIds,n)});function Kl(t,e){return e?t.usedBy.includes(e.id)||t.declaredBy.includes(e.id)?!0:t.declaredBy.some(n=>e.graph.parents.has(n))?t.usedBy.some(n=>e.graph.parents.has(n)):!!t.declaredBy.some(n=>e.graph.children.has(n)):!1}var kt=Re(),Gl=t=>{let e=(0,kt.c)(43),n=jt(Sa),o=jt(Zl),i=ea(),l=Ea(),a=t.cellId,d=o[t.cellId],s=Gr(t.cellId),c=s.code,u=Zr(t.cellId),r,g,h,m,f,y,x,b,N,p,S;if(e[0]!==i||e[1]!==l||e[2]!==n.focusedCellId||e[3]!==o||e[4]!==t.cellId||e[5]!==d||e[6]!==s.code||e[7]!==u.errored){r={id:a,graph:d,code:c,hasError:u.errored},n.focusedCellId&&o[n.focusedCellId]&&(m={id:n.focusedCellId,graph:o[n.focusedCellId]}),h=(m==null?void 0:m.id)===r.id,g=rr(r.graph)?1.5:3;let E=()=>{h?l.blurCell():(i.focusCell({cellId:r.id,where:"exact"}),l.focusCell({cellId:r.id}))};b="button",N=r.id;let w=h?"text-primary-foreground":"text-(--gray-8) hover:text-(--gray-9)";e[19]===w?p=e[20]:(p=Ve("group bg-transparent text-left w-full flex relative justify-between items-center","border-none rounded cursor-pointer","h-[21px] pl-[51px] font-inherit",w),e[19]=w,e[20]=p),S=E,f=nd;let O=h&&"bg-primary group-hover:bg-primary",M;e[21]===O?M=e[22]:(M=Ve("group-hover:bg-(--gray-2) flex h-full w-full px-0.5 items-center rounded",O),e[21]=O,e[22]=M),y=(0,z.jsx)("div",{className:M,children:(0,z.jsx)("div",{className:"truncate px-1 font-mono text-sm flex gap-1",title:r.code,children:r.graph.variables.length>0?(0,z.jsx)(ql,{cell:r,selectedCell:m}):(0,z.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap max-w-full",children:Ul(r.code)??(0,z.jsx)("span",{className:"italic",children:"empty"})})})}),x=Ve("absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+17px)] pointer-events-none",h?"z-[1]":"z-0",ed({cell:r,selectedCell:m})),e[0]=i,e[1]=l,e[2]=n.focusedCellId,e[3]=o,e[4]=t.cellId,e[5]=d,e[6]=s.code,e[7]=u.errored,e[8]=r,e[9]=g,e[10]=h,e[11]=m,e[12]=f,e[13]=y,e[14]=x,e[15]=b,e[16]=N,e[17]=p,e[18]=S}else r=e[8],g=e[9],h=e[10],m=e[11],f=e[12],y=e[13],x=e[14],b=e[15],N=e[16],p=e[17],S=e[18];let k;e[23]===r.id?k=e[24]:(k=(0,z.jsxs)("title",{children:["Cell dependency connections for cell ",r.id]}),e[23]=r.id,e[24]=k);let _;e[25]!==r||e[26]!==g||e[27]!==h||e[28]!==t.cellPositions||e[29]!==m?(_=h?(0,z.jsx)(Ql,{cell:r,cellPositions:t.cellPositions,circleRadius:g}):(0,z.jsx)(Jl,{cell:r,selectedCell:m,circleRadius:g}),e[25]=r,e[26]=g,e[27]=h,e[28]=t.cellPositions,e[29]=m,e[30]=_):_=e[30];let P;e[31]!==k||e[32]!==_||e[33]!==x?(P=(0,z.jsxs)("svg",{className:x,width:"1",height:"1",children:[k,_]}),e[31]=k,e[32]=_,e[33]=x,e[34]=P):P=e[34];let I;return e[35]!==f||e[36]!==y||e[37]!==P||e[38]!==b||e[39]!==N||e[40]!==p||e[41]!==S?(I=(0,z.jsxs)("button",{type:b,"data-node-id":N,className:p,onClick:S,onMouseDown:f,children:[y,P]}),e[35]=f,e[36]=y,e[37]=P,e[38]=b,e[39]=N,e[40]=p,e[41]=S,e[42]=I):I=e[42],I};function Ul(t){return t.split(` +`)[0].trim()||void 0}var ql=t=>{let e=(0,kt.c)(11),{cell:n,selectedCell:o}=t,i=En(),l=n.id===(o==null?void 0:o.id),a;if(e[0]!==n.graph.variables||e[1]!==l||e[2]!==o||e[3]!==i){let s;e[5]!==l||e[6]!==o||e[7]!==i?(s=(c,u)=>{let r=i[c];return(0,z.jsxs)(v.Fragment,{children:[u>0&&", ",(0,z.jsx)("span",{className:Ve({"font-bold":l,"text-foreground":o===void 0,"text-primary font-medium":!l&&Kl(r,o)}),children:c})]},c)},e[5]=l,e[6]=o,e[7]=i,e[8]=s):s=e[8],a=n.graph.variables.map(s),e[0]=n.graph.variables,e[1]=l,e[2]=o,e[3]=i,e[4]=a}else a=e[4];let d;return e[9]===a?d=e[10]:(d=(0,z.jsx)(z.Fragment,{children:a}),e[9]=a,e[10]=d),d},Ql=t=>{let e=(0,kt.c)(12),{cell:n,cellPositions:o,circleRadius:i}=t,l;if(e[0]!==n.graph.children||e[1]!==n.graph.parents||e[2]!==n.id||e[3]!==o){l=[];let c=o[n.id]??0,u=new Set;for(let r of n.graph.parents)n.graph.children.has(r)&&u.add(r);for(let r of u){let g=o[r];if(g!==void 0){let h=(g-c)*21;l.push((0,z.jsx)("path",{d:`M -3 0 H -7 v ${h} h 14 v ${-h} H 3`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-cycle-${r}`))}}for(let r of n.graph.parents){if(u.has(r))continue;let g=o[r];if(g!==void 0){let h=(g-c)*21;l.push((0,z.jsx)("path",{d:`M -3 0 H -7 v ${h} h -4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-up-${r}`))}}for(let r of n.graph.children){if(u.has(r))continue;let g=o[r];if(g!==void 0){let h=(g-c)*21;l.push((0,z.jsx)("path",{d:`M 3 0 H 7 v ${h} h 4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${n.id}-down-${r}`))}}e[0]=n.graph.children,e[1]=n.graph.parents,e[2]=n.id,e[3]=o,e[4]=l}else l=e[4];let a;e[5]===i?a=e[6]:(a=(0,z.jsx)("circle",{r:i,fill:"currentColor",className:"pointer-events-auto"}),e[5]=i,e[6]=a);let d;e[7]===l?d=e[8]:(d=(0,z.jsx)("g",{className:"pen pointer-events-auto",children:l}),e[7]=l,e[8]=d);let s;return e[9]!==a||e[10]!==d?(s=(0,z.jsxs)("g",{transform:"translate(0, 0)",children:[a,d]}),e[9]=a,e[10]=d,e[11]=s):s=e[11],s};function Jl(t){let{cell:e,selectedCell:n,circleRadius:o}=t,i=e.graph.ancestors.size>0,l=e.graph.descendants.size>0;if(!n)return or({circleRadius:o,leftWisker:i,rightWisker:l});let a=n.graph.ancestors.has(e.id),d=n.graph.descendants.has(e.id);return or(a||d?{circleRadius:o,leftWisker:i,rightWisker:l,shift:a&&d?void 0:a?"left":"right"}:{circleRadius:o,leftWisker:!1,rightWisker:!1})}function or(t){let{circleRadius:e,leftWisker:n,rightWisker:o,shift:i}=t;return(0,z.jsxs)("g",{transform:`translate(${i===void 0?0:i==="left"?-14:14}, 0)`,children:[(0,z.jsxs)("g",{children:[n&&(0,z.jsx)("path",{d:"M 0 0 h -8",fill:"none",strokeWidth:"2",stroke:"currentColor"}),o&&(0,z.jsx)("path",{d:"M 0 0 h 8",fill:"none",strokeWidth:"2",stroke:"currentColor"})]}),(0,z.jsx)("circle",{r:e,fill:"currentColor",className:"pointer-events-auto"})]})}function ed({cell:t,selectedCell:e}){return t.hasError?"text-destructive":!e&&!rr(t.graph)?"text-foreground":(e==null?void 0:e.id)===t.id||e!=null&&e.graph.parents.has(t.id)||e!=null&&e.graph.children.has(t.id)?"text-primary":"text-(--gray-8)"}function rr(t){return t.variables.length===0&&t.ancestors.size===0&&t.descendants.size===0}const td=()=>{let t=(0,kt.c)(16),e=Dt(),n;t[0]===e.inOrderIds?n=t[1]:(n=Object.fromEntries(e.inOrderIds.map(od)),t[0]=e.inOrderIds,t[1]=n);let o=n,i;if(t[2]!==e){i=[];let c=0;for(let[u,r]of e.getColumns().entries())u>0&&i.push(c),c+=r.inOrderIds.length;t[2]=e,t[3]=i}else i=t[3];let l;if(t[4]!==e.inOrderIds||t[5]!==o||t[6]!==i){let c;t[8]!==o||t[9]!==i?(c=(u,r)=>{let g=i.includes(r);return(0,z.jsxs)(v.Fragment,{children:[g&&(0,z.jsx)("div",{className:"absolute left-5 w-[36px] h-px bg-(--gray-4) pointer-events-none","aria-hidden":"true"}),(0,z.jsx)(Gl,{cellId:u,cellPositions:o})]},u)},t[8]=o,t[9]=i,t[10]=c):c=t[10],l=e.inOrderIds.map(c),t[4]=e.inOrderIds,t[5]=o,t[6]=i,t[7]=l}else l=t[7];let a;t[11]===l?a=t[12]:(a=(0,z.jsx)("div",{className:"py-3 pl-3 pr-4 relative min-h-full",children:l}),t[11]=l,t[12]=a);let d;t[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,z.jsx)("div",{className:"h-0 overflow-hidden","aria-hidden":"true"}),t[13]=d):d=t[13];let s;return t[14]===a?s=t[15]:(s=(0,z.jsxs)("div",{className:"overflow-y-auto overflow-x-hidden flex-1 scrollbar-none h-full max-w-80",children:[a,d]}),t[14]=a,t[15]=s),s};function nd(t){return t.preventDefault()}function od(t,e){return[t,e]}var rd=Re(),ad=()=>{let t=(0,rd.c)(6),{dependencyPanelTab:e}=sa(),n=En(),o=Dt(),[i]=Yr(),l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ve("w-full h-full flex-1 mx-auto -mb-4 relative"),t[0]=l):l=t[0];let a;return t[1]!==o||t[2]!==i||t[3]!==e||t[4]!==n?(a=(0,z.jsx)("div",{className:l,children:e==="minimap"?(0,z.jsx)(td,{}):(0,z.jsx)(Wl,{cellAtoms:i,variables:n,cellIds:o.inOrderIds})}),t[1]=o,t[2]=i,t[3]=e,t[4]=n,t[5]=a):a=t[5],a};export{ad as default}; diff --git a/docs/assets/dependency-graph-panel-DZccg5W0.css b/docs/assets/dependency-graph-panel-DZccg5W0.css new file mode 100644 index 0000000..8479870 --- /dev/null +++ b/docs/assets/dependency-graph-panel-DZccg5W0.css @@ -0,0 +1 @@ +.react-flow{direction:ltr}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{cursor:-webkit-grab;cursor:grab;z-index:1}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{pointer-events:none;transform-origin:0 0;z-index:2}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__connection-path,.react-flow__edge-path{stroke:#b1b1b7;stroke-width:1px;fill:none}.react-flow__edge{cursor:pointer;pointer-events:visibleStroke}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{box-sizing:border-box;cursor:-webkit-grab;cursor:grab;pointer-events:all;transform-origin:0 0;user-select:none;position:absolute}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{pointer-events:none;transform-origin:0 0;z-index:3}.react-flow__nodesselection-rect{cursor:-webkit-grab;cursor:grab;pointer-events:all;position:absolute}.react-flow__handle{pointer-events:none;background:#1a192b;border:1px solid #fff;border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectionindicator{cursor:crosshair;pointer-events:all}.react-flow__handle-bottom{top:auto;bottom:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-top{top:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{top:50%;right:-4px;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{background:#ffffff80;margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;user-select:none;width:100%;height:100%;position:absolute}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-group,.react-flow__node-input,.react-flow__node-output{color:#222;text-align:center;background-color:#fff;border:1px solid #1a192b;border-radius:3px;width:150px;padding:10px;font-size:12px}.react-flow__node-default.selectable:hover,.react-flow__node-group.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted #0059dccc}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{box-sizing:content-box;cursor:pointer;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.bottom,.react-flow__resize-control.top{cursor:ns-resize}.react-flow__resize-control.bottom.right,.react-flow__resize-control.top.left{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:#3367d9;border:1px solid #fff;border-radius:1px;width:4px;height:4px;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.bottom.left,.react-flow__resize-control.handle.top.left{left:0}.react-flow__resize-control.handle.bottom.right,.react-flow__resize-control.handle.top.right{left:100%}.react-flow__resize-control.line{border:0 solid #3367d9}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.bottom,.react-flow__resize-control.line.top{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__pane.react-flow__pane{cursor:default}.react-flow__node.react-flow__node{cursor:pointer}.react-flow__handle.react-flow__handle{border-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.react-flow__handle.react-flow__handle{border-color:color-mix(in srgb,var(--background),transparent 0%)}}.react-flow__controls.react-flow__controls{bottom:8px} diff --git a/docs/assets/desktop-BNphuiDB.js b/docs/assets/desktop-BNphuiDB.js new file mode 100644 index 0000000..815dc1b --- /dev/null +++ b/docs/assets/desktop-BNphuiDB.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Desktop","name":"desktop","patterns":[{"include":"#layout"},{"include":"#keywords"},{"include":"#values"},{"include":"#inCommands"},{"include":"#inCategories"}],"repository":{"inCategories":{"patterns":[{"match":"(?<=^Categories.*)AudioVideo|(?<=^Categories.*)Audio|(?<=^Categories.*)Video|(?<=^Categories.*)Development|(?<=^Categories.*)Education|(?<=^Categories.*)Game|(?<=^Categories.*)Graphics|(?<=^Categories.*)Network|(?<=^Categories.*)Office|(?<=^Categories.*)Science|(?<=^Categories.*)Settings|(?<=^Categories.*)System|(?<=^Categories.*)Utility","name":"markup.bold"}]},"inCommands":{"patterns":[{"match":"(?<=^Exec.*\\\\s)-+\\\\S+","name":"variable.parameter"},{"match":"(?<=^Exec.*)\\\\s%[FUcfiku]\\\\s","name":"variable.language"},{"match":"\\".*\\"","name":"string"}]},"keywords":{"patterns":[{"match":"^(?:Type|Version|Name|GenericName|NoDisplay|Comment|Icon|Hidden|OnlyShowIn|NotShowIn|DBusActivatable|TryExec|Exec|Path|Terminal|Actions|MimeType|Categories|Implements|Keywords|StartupNotify|StartupWMClass|URL|PrefersNonDefaultGPU|Encoding)\\\\b","name":"keyword"},{"match":"^X-[- 0-9A-z]*","name":"keyword.other"},{"match":"(?{de(s)&&(r!=null&&r.textStyles?r.textStyles.push(s):r.textStyles=[s]),r!=null&&r.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(a,r)}getClasses(){return this.classes}getStylesForClass(a){var i;return((i=this.classes.get(a))==null?void 0:i.styles)??[]}clear(){re(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},h($,"TreeMapDB"),$);function U(c){if(!c.length)return[];let a=[],i=[];return c.forEach(r=>{let n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r==null?void 0:r.classSelector,r!=null&&r.cssCompiledStyles&&(n.cssCompiledStyles=[r.cssCompiledStyles]),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)a.push(n);else{let s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),a}h(U,"buildHierarchy");var ye=h((c,a)=>{pe(c,a);let i=[];for(let s of c.TreemapRows??[])s.$type==="ClassDefStatement"&&a.addClass(s.className??"",s.styleText??"");for(let s of c.TreemapRows??[]){let d=s.item;if(!d)continue;let y=s.indent?parseInt(s.indent):0,z=fe(d),l=d.classSelector?a.getStylesForClass(d.classSelector):[],w=l.length>0?l.join(";"):void 0,g={level:y,name:z,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:w};i.push(g)}let r=U(i),n=h((s,d)=>{for(let y of s)a.addNode(y,d),y.children&&y.children.length>0&&n(y.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),fe=h(c=>c.name?String(c.name):"","getItemName"),q={parser:{yy:void 0},parse:h(async c=>{var a;try{let i=await he("treemap",c);V.debug("Treemap AST:",i);let r=(a=q.parser)==null?void 0:a.yy;if(!(r instanceof O))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ye(i,r)}catch(i){throw V.error("Error parsing treemap:",i),i}},"parse")},ue=10,v=10,M=25,Se={draw:h((c,a,i,r)=>{let n=r.db,s=n.getConfig(),d=s.padding??ue,y=n.getDiagramTitle(),z=n.getRoot(),{themeVariables:l}=G();if(!z)return;let w=y?30:0,g=ce(a),E=s.nodeWidth?s.nodeWidth*v:960,R=s.nodeHeight?s.nodeHeight*v:500,W=E,B=R+w;g.attr("viewBox",`0 0 ${W} ${B}`),se(g,B,W,s.useMaxWidth);let x;try{let e=s.valueFormat||",";if(e==="$0,0")x=h(t=>"$"+T(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),p=t?t[0]:"";x=h(f=>"$"+T(","+p)(f),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);x=h(p=>"$"+T(t||"")(p),"valueFormat")}else x=T(e)}catch(e){V.error("Error creating format function:",e),x=T(",")}let L=A().range(["transparent",l.cScale0,l.cScale1,l.cScale2,l.cScale3,l.cScale4,l.cScale5,l.cScale6,l.cScale7,l.cScale8,l.cScale9,l.cScale10,l.cScale11]),J=A().range(["transparent",l.cScalePeer0,l.cScalePeer1,l.cScalePeer2,l.cScalePeer3,l.cScalePeer4,l.cScalePeer5,l.cScalePeer6,l.cScalePeer7,l.cScalePeer8,l.cScalePeer9,l.cScalePeer10,l.cScalePeer11]),F=A().range([l.cScaleLabel0,l.cScaleLabel1,l.cScaleLabel2,l.cScaleLabel3,l.cScaleLabel4,l.cScaleLabel5,l.cScaleLabel6,l.cScaleLabel7,l.cScaleLabel8,l.cScaleLabel9,l.cScaleLabel10,l.cScaleLabel11]);y&&g.append("text").attr("x",W/2).attr("y",w/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(y);let I=g.append("g").attr("transform",`translate(0, ${w})`).attr("class","treemapContainer"),K=Y(z).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),j=Z().size([E,R]).paddingTop(e=>e.children&&e.children.length>0?M+v:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?v:0).paddingRight(e=>e.children&&e.children.length>0?v:0).paddingBottom(e=>e.children&&e.children.length>0?v:0).round(!0)(K),Q=j.descendants().filter(e=>e.children&&e.children.length>0),k=I.selectAll(".treemapSection").data(Q).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);k.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),k.append("clipPath").attr("id",(e,t)=>`clip-section-${a}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),k.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>L(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>J(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";let t=C({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),k.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>e.depth===0?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+F(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+C({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(e.depth===0)return;let t=D(this),p=e.data.name;t.text(p);let f=e.x1-e.x0,S;S=s.showValues!==!1&&e.value?f-10-30-10-6:f-6-6;let m=Math.max(15,S),u=t.node();if(u.getComputedTextLength()>m){let o=p;for(;o.length>0;){if(o=p.substring(0,o.length-1),o.length===0){t.text("..."),u.getComputedTextLength()>m&&t.text("");break}if(t.text(o+"..."),u.getComputedTextLength()<=m)break}}}),s.showValues!==!1&&k.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?x(e.value):"").attr("font-style","italic").attr("style",e=>e.depth===0?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+F(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+C({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let X=j.leaves(),P=I.selectAll(".treemapLeafGroup").data(X).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?L(e.parent.data.name):L(e.data.name)).attr("style",e=>C({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?L(e.parent.data.name):L(e.data.name)).attr("stroke-width",3),P.append("clipPath").attr("id",(e,t)=>`clip-${a}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),P.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+F(e.data.name)+";"+C({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${a}-${t})`).text(e=>e.data.name).each(function(e){let t=D(this),p=e.x1-e.x0,f=e.y1-e.y0,S=t.node(),m=p-8,u=f-8;if(m<10||u<10){t.style("display","none");return}let o=parseInt(t.style("font-size"),10),N=.6;for(;S.getComputedTextLength()>m&&o>8;)o--,t.style("font-size",`${o}px`);let b=Math.max(6,Math.min(28,Math.round(o*N))),H=o+2+b;for(;H>u&&o>8&&(o--,b=Math.max(6,Math.min(28,Math.round(o*N))),!(b<6&&o===8));)t.style("font-size",`${o}px`),H=o+2+b;t.style("font-size",`${o}px`),(S.getComputedTextLength()>m||o<8||u(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+F(e.data.name)+";"+C({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${a}-${t})`).text(e=>e.value?x(e.value):"").each(function(e){let t=D(this),p=this.parentNode;if(!p){t.style("display","none");return}let f=D(p).select(".treemapLabel");if(f.empty()||f.style("display")==="none"){t.style("display","none");return}let S=parseFloat(f.style("font-size")),m=Math.max(6,Math.min(28,Math.round(S*.6)));t.style("font-size",`${m}px`);let u=(e.y1-e.y0)/2+S/2+2;t.attr("y",u);let o=e.x1-e.x0,N=e.y1-e.y0-4,b=o-8;t.node().getComputedTextLength()>b||u+m>N||m<6?t.style("display","none"):t.style("display",null)}),me(g,s.diagramPadding??8,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),getClasses:h(function(c,a){return a.db.getClasses()},"getClasses")},ge={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},xe={parser:q,get db(){return new O},renderer:Se,styles:h(({treemap:c}={})=>{let a=_(ge,c);return` + .treemapNode.section { + stroke: ${a.sectionStrokeColor}; + stroke-width: ${a.sectionStrokeWidth}; + fill: ${a.sectionFillColor}; + } + .treemapNode.leaf { + stroke: ${a.leafStrokeColor}; + stroke-width: ${a.leafStrokeWidth}; + fill: ${a.leafFillColor}; + } + .treemapLabel { + fill: ${a.labelColor}; + font-size: ${a.labelFontSize}; + } + .treemapValue { + fill: ${a.valueColor}; + font-size: ${a.valueFontSize}; + } + .treemapTitle { + fill: ${a.titleColor}; + font-size: ${a.titleFontSize}; + } + `},"getStyles")};export{xe as diagram}; diff --git a/docs/assets/diagram-QEK2KX5R-CPk22-jF.js b/docs/assets/diagram-QEK2KX5R-CPk22-jF.js new file mode 100644 index 0000000..91e2efd --- /dev/null +++ b/docs/assets/diagram-QEK2KX5R-CPk22-jF.js @@ -0,0 +1,43 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import"./purify.es-N-2faAGj.js";import"./src-Bp_72rVO.js";import{i as y}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as o,r as k}from"./src-faGJHwXX.js";import{B as O,C as S,T as I,U as z,_ as E,a as F,d as P,v as R,y as w,z as D}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as B}from"./chunk-EXTU4WIE-GbJyzeBy.js";import"./dist-BA8xhrl2.js";import"./chunk-O7ZBX7Z2-CYcfcXcp.js";import"./chunk-S6J4BHB3-D3MBXPxT.js";import"./chunk-LBM3YZW2-CQVIMcAR.js";import"./chunk-76Q3JFCE-COngPFoW.js";import"./chunk-T53DSG4Q-B6Z3zF7Z.js";import"./chunk-LHMN2FUI-DW2iokr2.js";import"./chunk-FWNWRKHM-XgKeqUvn.js";import{t as G}from"./chunk-4BX2VUAB-B5-8Pez8.js";import{t as V}from"./mermaid-parser.core-wRO0EX_C.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},b={axes:[],curves:[],options:h},g=structuredClone(b),_=P.radar,j=o(()=>y({..._,...w().radar}),"getConfig"),C=o(()=>g.axes,"getAxes"),W=o(()=>g.curves,"getCurves"),H=o(()=>g.options,"getOptions"),N=o(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),U=o(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=o(a=>{if(a[0].axis==null)return a.map(e=>e.value);let t=C();if(t.length===0)throw Error("Axes must be populated before curves for reference entries");return t.map(e=>{let r=a.find(i=>{var n;return((n=i.axis)==null?void 0:n.$refText)===e.name});if(r===void 0)throw Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),x={getAxes:C,getCurves:W,getOptions:H,setAxes:N,setCurves:U,setOptions:o(a=>{var e,r,i,n,l;let t=a.reduce((s,c)=>(s[c.name]=c,s),{});g.options={showLegend:((e=t.showLegend)==null?void 0:e.value)??h.showLegend,ticks:((r=t.ticks)==null?void 0:r.value)??h.ticks,max:((i=t.max)==null?void 0:i.value)??h.max,min:((n=t.min)==null?void 0:n.value)??h.min,graticule:((l=t.graticule)==null?void 0:l.value)??h.graticule}},"setOptions"),getConfig:j,clear:o(()=>{F(),g=structuredClone(b)},"clear"),setAccTitle:O,getAccTitle:R,setDiagramTitle:z,getDiagramTitle:S,getAccDescription:E,setAccDescription:D},q=o(a=>{G(a,x);let{axes:t,curves:e,options:r}=a;x.setAxes(t),x.setCurves(e),x.setOptions(r)},"populate"),J={parse:o(async a=>{let t=await V("radar",a);k.debug(t),q(t)},"parse")},K=o((a,t,e,r)=>{let i=r.db,n=i.getAxes(),l=i.getCurves(),s=i.getOptions(),c=i.getConfig(),p=i.getDiagramTitle(),d=Q(B(t),c),m=s.max??Math.max(...l.map($=>Math.max(...$.entries))),u=s.min,f=Math.min(c.width,c.height)/2;X(d,n,f,s.ticks,s.graticule),Y(d,n,f,c),M(d,n,l,u,m,s.graticule,c),A(d,l,s.showLegend,c),d.append("text").attr("class","radarTitle").text(p).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),Q=o((a,t)=>{let e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return a.attr("viewbox",`0 0 ${e} ${r}`).attr("width",e).attr("height",r),a.append("g").attr("transform",`translate(${i.x}, ${i.y})`)},"drawFrame"),X=o((a,t,e,r,i)=>{if(i==="circle")for(let n=0;n{let m=2*d*Math.PI/n-Math.PI/2;return`${s*Math.cos(m)},${s*Math.sin(m)}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),Y=o((a,t,e,r)=>{let i=t.length;for(let n=0;n{if(p.entries.length!==s)return;let m=p.entries.map((u,f)=>{let $=2*Math.PI*f/s-Math.PI/2,v=L(u,r,i,c);return{x:v*Math.cos($),y:v*Math.sin($)}});n==="circle"?a.append("path").attr("d",T(m,l.curveTension)).attr("class",`radarCurve-${d}`):n==="polygon"&&a.append("polygon").attr("points",m.map(u=>`${u.x},${u.y}`).join(" ")).attr("class",`radarCurve-${d}`)})}o(M,"drawCurves");function L(a,t,e,r){return r*(Math.min(Math.max(a,t),e)-t)/(e-t)}o(L,"relativeRadius");function T(a,t){let e=a.length,r=`M${a[0].x},${a[0].y}`;for(let i=0;i{let c=a.append("g").attr("transform",`translate(${i}, ${n+s*20})`);c.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${s}`),c.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(l.label)})}o(A,"drawLegend");var tt={draw:K},et=o((a,t)=>{let e="";for(let r=0;r{let t=y(I(),w().themeVariables);return{themeVariables:t,radarOptions:y(t.radar,a)}},"buildRadarStyleOptions"),rt={parser:J,db:x,renderer:tt,styles:o(({radar:a}={})=>{let{themeVariables:t,radarOptions:e}=at(a);return` + .radarTitle { + font-size: ${t.fontSize}; + color: ${t.titleColor}; + dominant-baseline: hanging; + text-anchor: middle; + } + .radarAxisLine { + stroke: ${e.axisColor}; + stroke-width: ${e.axisStrokeWidth}; + } + .radarAxisLabel { + dominant-baseline: middle; + text-anchor: middle; + font-size: ${e.axisLabelFontSize}px; + color: ${e.axisColor}; + } + .radarGraticule { + fill: ${e.graticuleColor}; + fill-opacity: ${e.graticuleOpacity}; + stroke: ${e.graticuleColor}; + stroke-width: ${e.graticuleStrokeWidth}; + } + .radarLegendText { + text-anchor: start; + font-size: ${e.legendFontSize}px; + dominant-baseline: hanging; + } + ${et(t,e)} + `},"styles")};export{rt as diagram}; diff --git a/docs/assets/diagram-S2PKOQOG-BGwcIRrz.js b/docs/assets/diagram-S2PKOQOG-BGwcIRrz.js new file mode 100644 index 0000000..1f771e9 --- /dev/null +++ b/docs/assets/diagram-S2PKOQOG-BGwcIRrz.js @@ -0,0 +1,24 @@ +var g;import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import"./purify.es-N-2faAGj.js";import"./src-Bp_72rVO.js";import{i as u}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as f,r as y}from"./src-faGJHwXX.js";import{B as C,C as v,U as P,_ as z,a as S,c as E,d as F,v as T,y as W,z as D}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as A}from"./chunk-EXTU4WIE-GbJyzeBy.js";import"./dist-BA8xhrl2.js";import"./chunk-O7ZBX7Z2-CYcfcXcp.js";import"./chunk-S6J4BHB3-D3MBXPxT.js";import"./chunk-LBM3YZW2-CQVIMcAR.js";import"./chunk-76Q3JFCE-COngPFoW.js";import"./chunk-T53DSG4Q-B6Z3zF7Z.js";import"./chunk-LHMN2FUI-DW2iokr2.js";import"./chunk-FWNWRKHM-XgKeqUvn.js";import{t as R}from"./chunk-4BX2VUAB-B5-8Pez8.js";import{t as Y}from"./mermaid-parser.core-wRO0EX_C.js";var _=F.packet,w=(g=class{constructor(){this.packet=[],this.setAccTitle=C,this.getAccTitle=T,this.setDiagramTitle=P,this.getDiagramTitle=v,this.getAccDescription=z,this.setAccDescription=D}getConfig(){let t=u({..._,...W().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){S(),this.packet=[]}},f(g,"PacketDB"),g),H=1e4,L=f((e,t)=>{R(e,t);let i=-1,a=[],l=1,{bitsPerRow:n}=t.getConfig();for(let{start:r,end:s,bits:c,label:d}of e.blocks){if(r!==void 0&&s!==void 0&&s{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*i)return[e,void 0];let a=t*i-1,l=t*i;return[{start:e.start,end:a,label:e.label,bits:a-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:f(async e=>{var a;let t=await Y("packet",e),i=(a=x.parser)==null?void 0:a.yy;if(!(i instanceof w))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");y.debug(t),L(t,i)},"parse")},j=f((e,t,i,a)=>{let l=a.db,n=l.getConfig(),{rowHeight:r,paddingY:s,bitWidth:c,bitsPerRow:d}=n,p=l.getPacket(),o=l.getDiagramTitle(),b=r+s,h=b*(p.length+1)-(o?0:r),k=c*d+2,m=A(t);m.attr("viewbox",`0 0 ${k} ${h}`),E(m,h,k,n.useMaxWidth);for(let[$,B]of p.entries())I(m,B,$,n);m.append("text").text(o).attr("x",k/2).attr("y",h-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),I=f((e,t,i,{rowHeight:a,paddingX:l,paddingY:n,bitWidth:r,bitsPerRow:s,showBits:c})=>{let d=e.append("g"),p=i*(a+n)+n;for(let o of t){let b=o.start%s*r+1,h=(o.end-o.start+1)*r-l;if(d.append("rect").attr("x",b).attr("y",p).attr("width",h).attr("height",a).attr("class","packetBlock"),d.append("text").attr("x",b+h/2).attr("y",p+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!c)continue;let k=o.end===o.start,m=p-2;d.append("text").attr("x",b+(k?h/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||d.append("text").attr("x",b+h).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),N={draw:j},U={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},X={parser:x,get db(){return new w},renderer:N,styles:f(({packet:e}={})=>{let t=u(U,e);return` + .packetByte { + font-size: ${t.byteFontSize}; + } + .packetByte.start { + fill: ${t.startByteColor}; + } + .packetByte.end { + fill: ${t.endByteColor}; + } + .packetLabel { + fill: ${t.labelColor}; + font-size: ${t.labelFontSize}; + } + .packetTitle { + fill: ${t.titleColor}; + font-size: ${t.titleFontSize}; + } + .packetBlock { + stroke: ${t.blockStrokeColor}; + stroke-width: ${t.blockStrokeWidth}; + fill: ${t.blockFillColor}; + } + `},"styles")};export{X as diagram}; diff --git a/docs/assets/dialog-CF5DtF1E.js b/docs/assets/dialog-CF5DtF1E.js new file mode 100644 index 0000000..cfdcd2d --- /dev/null +++ b/docs/assets/dialog-CF5DtF1E.js @@ -0,0 +1 @@ +import{s as b}from"./chunk-LvLJmgfZ.js";import{t as E}from"./react-BGmjiNul.js";import{t as F}from"./compiler-runtime-DeeZ7FnK.js";import{t as H}from"./jsx-runtime-DN_bIXfG.js";import{t as m}from"./cn-C1rgT0yh.js";import{h as O}from"./select-D9lTzMzP.js";import{s as P,u as T}from"./Combination-D1TsGrBC.js";import{_ as q,d as A,f as B,g as v,h as j,m as w,p as k,v as z,y as G}from"./alert-dialog-jcHA5geR.js";var n=F(),u=b(E(),1),i=b(H(),1),I=q,J=G,y=P(({className:o,children:s,...a})=>(0,i.jsx)(v,{...a,children:(0,i.jsx)(T,{children:(0,i.jsx)("div",{className:m("fixed inset-0 z-50 flex items-start justify-center sm:items-start sm:top-[15%]",o),children:s})})}));y.displayName=v.displayName;var h=u.forwardRef((o,s)=>{let a=(0,n.c)(9),e,t;a[0]===o?(e=a[1],t=a[2]):({className:e,...t}=o,a[0]=o,a[1]=e,a[2]=t);let r;a[3]===e?r=a[4]:(r=m("fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),a[3]=e,a[4]=r);let l;return a[5]!==t||a[6]!==s||a[7]!==r?(l=(0,i.jsx)(j,{ref:s,className:r,...t}),a[5]=t,a[6]=s,a[7]=r,a[8]=l):l=a[8],l});h.displayName=j.displayName;var R=u.forwardRef((o,s)=>{let a=(0,n.c)(17),e,t,r,l;a[0]===o?(e=a[1],t=a[2],r=a[3],l=a[4]):({className:t,children:e,usePortal:l,...r}=o,a[0]=o,a[1]=e,a[2]=t,a[3]=r,a[4]=l);let N=l===void 0?!0:l,g=A(),d;a[5]===t?d=a[6]:(d=m("fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-sm animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-2xl sm:mx-4 sm:rounded-lg sm:zoom-in-90 sm:data-[state=open]:slide-in-from-bottom-0",t),a[5]=t,a[6]=d);let c;a[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,i.jsxs)(B,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,i.jsx)(O,{className:"h-4 w-4"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]}),a[7]=c):c=a[7];let f;a[8]!==e||a[9]!==r||a[10]!==s||a[11]!==g||a[12]!==d?(f=(0,i.jsxs)(k,{ref:s,className:d,...g,...r,children:[e,c]}),a[8]=e,a[9]=r,a[10]=s,a[11]=g,a[12]=d,a[13]=f):f=a[13];let p=f,x;return a[14]!==p||a[15]!==N?(x=N?(0,i.jsxs)(y,{children:[(0,i.jsx)(h,{}),p]}):p,a[14]=p,a[15]=N,a[16]=x):x=a[16],x});R.displayName=k.displayName;var _=o=>{let s=(0,n.c)(8),a,e;s[0]===o?(a=s[1],e=s[2]):({className:a,...e}=o,s[0]=o,s[1]=a,s[2]=e);let t;s[3]===a?t=s[4]:(t=m("flex flex-col space-y-1.5 text-center sm:text-left",a),s[3]=a,s[4]=t);let r;return s[5]!==e||s[6]!==t?(r=(0,i.jsx)("div",{className:t,...e}),s[5]=e,s[6]=t,s[7]=r):r=s[7],r};_.displayName="DialogHeader";var D=o=>{let s=(0,n.c)(8),a,e;s[0]===o?(a=s[1],e=s[2]):({className:a,...e}=o,s[0]=o,s[1]=a,s[2]=e);let t;s[3]===a?t=s[4]:(t=m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),s[3]=a,s[4]=t);let r;return s[5]!==e||s[6]!==t?(r=(0,i.jsx)("div",{className:t,...e}),s[5]=e,s[6]=t,s[7]=r):r=s[7],r};D.displayName="DialogFooter";var C=u.forwardRef((o,s)=>{let a=(0,n.c)(9),e,t;a[0]===o?(e=a[1],t=a[2]):({className:e,...t}=o,a[0]=o,a[1]=e,a[2]=t);let r;a[3]===e?r=a[4]:(r=m("text-lg font-semibold leading-none tracking-tight",e),a[3]=e,a[4]=r);let l;return a[5]!==t||a[6]!==s||a[7]!==r?(l=(0,i.jsx)(z,{ref:s,className:r,...t}),a[5]=t,a[6]=s,a[7]=r,a[8]=l):l=a[8],l});C.displayName=z.displayName;var S=u.forwardRef((o,s)=>{let a=(0,n.c)(9),e,t;a[0]===o?(e=a[1],t=a[2]):({className:e,...t}=o,a[0]=o,a[1]=e,a[2]=t);let r;a[3]===e?r=a[4]:(r=m("text-sm text-muted-foreground",e),a[3]=e,a[4]=r);let l;return a[5]!==t||a[6]!==s||a[7]!==r?(l=(0,i.jsx)(w,{ref:s,className:r,...t}),a[5]=t,a[6]=s,a[7]=r,a[8]=l):l=a[8],l});S.displayName=w.displayName;export{_ as a,C as c,D as i,J as l,R as n,h as o,S as r,y as s,I as t}; diff --git a/docs/assets/diff-BhkLDFRp.js b/docs/assets/diff-BhkLDFRp.js new file mode 100644 index 0000000..285ef3f --- /dev/null +++ b/docs/assets/diff-BhkLDFRp.js @@ -0,0 +1 @@ +import{t as f}from"./diff-aadYO3ro.js";export{f as diff}; diff --git a/docs/assets/diff-DPcVaaVw.js b/docs/assets/diff-DPcVaaVw.js new file mode 100644 index 0000000..5ab01fd --- /dev/null +++ b/docs/assets/diff-DPcVaaVw.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse('{"displayName":"Diff","name":"diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\\\*{15})|(={67})|(-{3}))$\\\\n?","name":"meta.separator.diff"},{"match":"^\\\\d+(,\\\\d+)*([acd])\\\\d+(,\\\\d+)*$\\\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\\\s*(.+?)\\\\s*(@@)($\\\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((-{3}) .+ (-{4}))|((\\\\*{3}) .+ (\\\\*{4})))$\\\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\\\S+\\\\s+\\\\S+).*$\\\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"^((((-{3}) .+)|((\\\\*{3}) .+))$\\\\n?|(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\\\+{3}) .+$\\\\n?| (-) .* (={4})$\\\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\\\+).*))$\\\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"end":"\\\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\\\.\\\\.[0-9a-f]{7,40}.*$\\\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\\\n?","name":"meta.diff.only-in"}],"scopeName":"source.diff"}'))];export{n as t}; diff --git a/docs/assets/diff-aadYO3ro.js b/docs/assets/diff-aadYO3ro.js new file mode 100644 index 0000000..31f3a70 --- /dev/null +++ b/docs/assets/diff-aadYO3ro.js @@ -0,0 +1 @@ +var n={"+":"inserted","-":"deleted","@":"meta"};const s={name:"diff",token:function(e){var r=e.string.search(/[\t ]+?$/);if(!e.sol()||r===0)return e.skipToEnd(),("error "+(n[e.string.charAt(0)]||"")).replace(/ $/,"");var o=n[e.peek()]||e.skipToEnd();return r===-1?e.skipToEnd():e.pos=r,o}};export{s as t}; diff --git a/docs/assets/diff-y8lnZMmD.js b/docs/assets/diff-y8lnZMmD.js new file mode 100644 index 0000000..0ea1cf4 --- /dev/null +++ b/docs/assets/diff-y8lnZMmD.js @@ -0,0 +1 @@ +import{t}from"./diff-DPcVaaVw.js";export{t as default}; diff --git a/docs/assets/dist-B-NVryHt.js b/docs/assets/dist-B-NVryHt.js new file mode 100644 index 0000000..596a948 --- /dev/null +++ b/docs/assets/dist-B-NVryHt.js @@ -0,0 +1 @@ +import{s as b}from"./chunk-LvLJmgfZ.js";import{t as v}from"./react-BGmjiNul.js";import{t as m}from"./emotion-is-prop-valid.esm-lG8j6oqk.js";var O=function(){let r=Array.prototype.slice.call(arguments).filter(Boolean),e={},a=[];r.forEach(s=>{(s?s.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){let[,o]=l.split("_");e[o]=l}else a.push(l)})});let t=[];for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.push(e[s]);return t.push(...a),t.join(" ")},f=b(v(),1),x=r=>r.toUpperCase()===r,R=r=>e=>r.indexOf(e)===-1,_=(r,e)=>{let a={};return Object.keys(r).filter(R(e)).forEach(t=>{a[t]=r[t]}),a};function g(r,e,a){let t=_(e,a);if(!r){let s=typeof m=="function"?{default:m}:m;Object.keys(t).forEach(l=>{s.default(l)||delete t[l]})}return t}function k(r){return e=>{let a=(s,l)=>{let{as:o=r,class:y=""}=s,n=g(e.propsAsIs===void 0?!(typeof o=="string"&&o.indexOf("-")===-1&&!x(o[0])):e.propsAsIs,s,["as","class"]);n.ref=l,n.className=e.atomic?O(e.class,n.className||y):O(n.className||y,e.class);let{vars:c}=e;if(c){let p={};for(let i in c){let E=c[i],u=E[0],j=E[1]||"",N=typeof u=="function"?u(s):u;e.name,p[`--${i}`]=`${N}${j}`}let d=n.style||{},h=Object.keys(d);h.length>0&&h.forEach(i=>{p[i]=d[i]}),n.style=p}return r.__linaria&&r!==o?(n.as=o,f.createElement(r,n)):f.createElement(o,n)},t=f.forwardRef?f.forwardRef(a):s=>a(_(s,["innerRef"]),s.innerRef);return t.displayName=e.name,t.__linaria={className:e.class||"",extends:r},t}}var w=k;export{w as t}; diff --git a/docs/assets/dist-B9BRSqKp.js b/docs/assets/dist-B9BRSqKp.js new file mode 100644 index 0000000..600932f --- /dev/null +++ b/docs/assets/dist-B9BRSqKp.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{n as a,t}from"./dist-CQhcYtN0.js";export{t as wast,a as wastLanguage}; diff --git a/docs/assets/dist-BA8xhrl2.js b/docs/assets/dist-BA8xhrl2.js new file mode 100644 index 0000000..2aaff5e --- /dev/null +++ b/docs/assets/dist-BA8xhrl2.js @@ -0,0 +1 @@ +import{t as g}from"./chunk-LvLJmgfZ.js";var p=g((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"})),f=g((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=void 0;var t=p();function R(r){return t.relativeFirstCharacters.indexOf(r[0])>-1}function m(r){return r.replace(t.ctrlCharactersRegex,"").replace(t.htmlEntitiesRegex,function(l,a){return String.fromCharCode(a)})}function x(r){return URL.canParse(r)}function s(r){try{return decodeURIComponent(r)}catch{return r}}function C(r){if(!r)return t.BLANK_URL;var l,a=s(r.trim());do a=m(a).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim(),a=s(a),l=a.match(t.ctrlCharactersRegex)||a.match(t.htmlEntitiesRegex)||a.match(t.htmlCtrlEntityRegex)||a.match(t.whitespaceEscapeCharsRegex);while(l&&l.length>0);var i=a;if(!i)return t.BLANK_URL;if(R(i))return i;var h=i.trimStart(),u=h.match(t.urlSchemeRegex);if(!u)return i;var n=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(n))return t.BLANK_URL;var o=h.replace(/\\/g,"/");if(n==="mailto:"||n.includes("://"))return o;if(n==="http:"||n==="https:"){if(!x(o))return t.BLANK_URL;var c=new URL(o);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return o}e.sanitizeUrl=C}));export{f as t}; diff --git a/docs/assets/dist-BCDfHX1C.js b/docs/assets/dist-BCDfHX1C.js new file mode 100644 index 0000000..e8f2e79 --- /dev/null +++ b/docs/assets/dist-BCDfHX1C.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{i as a,n as s,r as m,t as o}from"./dist-CGGpiWda.js";export{o as autoCloseTags,s as completeFromSchema,m as xml,a as xmlLanguage}; diff --git a/docs/assets/dist-BDE62V06.js b/docs/assets/dist-BDE62V06.js new file mode 100644 index 0000000..71945b6 --- /dev/null +++ b/docs/assets/dist-BDE62V06.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{a,c as s,i as r,n,o as e,r as o,s as m,t as i}from"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";export{i as commonmarkLanguage,n as deleteMarkupBackward,o as insertNewlineContinueMarkup,r as insertNewlineContinueMarkupCommand,a as markdown,e as markdownKeymap,m as markdownLanguage,s as pasteURLAsLink}; diff --git a/docs/assets/dist-BD_oEsO-.js b/docs/assets/dist-BD_oEsO-.js new file mode 100644 index 0000000..b86d730 --- /dev/null +++ b/docs/assets/dist-BD_oEsO-.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{n as p,t as a}from"./dist-cDyKKhtR.js";export{a as cpp,p as cppLanguage}; diff --git a/docs/assets/dist-BOoAATU5.js b/docs/assets/dist-BOoAATU5.js new file mode 100644 index 0000000..b386fd3 --- /dev/null +++ b/docs/assets/dist-BOoAATU5.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import{n as o,t as r}from"./dist-zq3bdql0.js";export{r as vue,o as vueLanguage}; diff --git a/docs/assets/dist-BRKKmf0q.js b/docs/assets/dist-BRKKmf0q.js new file mode 100644 index 0000000..ce8e75f --- /dev/null +++ b/docs/assets/dist-BRKKmf0q.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{a,i as t,n as o,o as s,r as m,t as i}from"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";export{i as autoCloseTags,o as html,m as htmlCompletionSource,t as htmlCompletionSourceWith,a as htmlLanguage,s as htmlPlain}; diff --git a/docs/assets/dist-BSCxV_8B.js b/docs/assets/dist-BSCxV_8B.js new file mode 100644 index 0000000..f1888be --- /dev/null +++ b/docs/assets/dist-BSCxV_8B.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import{i as a,n as r,r as o,t as i}from"./dist-BnNY29MI.js";export{i as closePercentBrace,r as jinja,o as jinjaCompletionSource,a as jinjaLanguage}; diff --git a/docs/assets/dist-BVf1IY4_.js b/docs/assets/dist-BVf1IY4_.js new file mode 100644 index 0000000..fb97819 --- /dev/null +++ b/docs/assets/dist-BVf1IY4_.js @@ -0,0 +1 @@ +import{$ as x,D as q,H as j,J as r,N as G,T as R,Y as E,g as T,i as U,n as c,q as Z,r as C,s as V,u as _}from"./dist-CAcX026F.js";var W=122,g=1,F=123,N=124,$=2,I=125,D=3,B=4,y=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],K=58,J=40,P=95,A=91,p=45,L=46,H=35,M=37,ee=38,Oe=92,ae=10,te=42;function d(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function m(e){return e>=48&&e<=57}function b(e){return m(e)||e>=97&&e<=102||e>=65&&e<=70}var f=(e,t,l)=>(O,a)=>{for(let o=!1,i=0,Q=0;;Q++){let{next:n}=O;if(d(n)||n==p||n==P||o&&m(n))!o&&(n!=p||Q>0)&&(o=!0),i===Q&&n==p&&i++,O.advance();else if(n==Oe&&O.peek(1)!=ae){if(O.advance(),b(O.next)){do O.advance();while(b(O.next));O.next==32&&O.advance()}else O.next>-1&&O.advance();o=!0}else{o&&O.acceptToken(i==2&&a.canShift($)?t:n==J?l:e);break}}},re=new c(f(F,$,N)),le=new c(f(I,D,B)),oe=new c(e=>{if(y.includes(e.peek(-1))){let{next:t}=e;(d(t)||t==P||t==H||t==L||t==te||t==A||t==K&&d(e.peek(1))||t==p||t==ee)&&e.acceptToken(W)}}),ie=new c(e=>{if(!y.includes(e.peek(-1))){let{next:t}=e;if(t==M&&(e.advance(),e.acceptToken(g)),d(t)){do e.advance();while(d(e.next)||m(e.next));e.acceptToken(g)}}}),Qe=Z({"AtKeyword import charset namespace keyframes media supports":r.definitionKeyword,"from to selector":r.keyword,NamespaceName:r.namespace,KeyframeName:r.labelName,KeyframeRangeName:r.operatorKeyword,TagName:r.tagName,ClassName:r.className,PseudoClassName:r.constant(r.className),IdName:r.labelName,"FeatureName PropertyName":r.propertyName,AttributeName:r.attributeName,NumberLiteral:r.number,KeywordQuery:r.keyword,UnaryQueryOp:r.operatorKeyword,"CallTag ValueName":r.atom,VariableName:r.variableName,Callee:r.operatorKeyword,Unit:r.unit,"UniversalSelector NestingSelector":r.definitionOperator,"MatchOp CompareOp":r.compareOperator,"ChildOp SiblingOp, LogicOp":r.logicOperator,BinOp:r.arithmeticOperator,Important:r.modifier,Comment:r.blockComment,ColorLiteral:r.color,"ParenthesizedContent StringLiteral":r.string,":":r.punctuation,"PseudoOp #":r.derefOperator,"; ,":r.separator,"( )":r.paren,"[ ]":r.squareBracket,"{ }":r.brace}),ne={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},se={__proto__:null,or:98,and:98,not:106,only:106,layer:170},de={__proto__:null,selector:112,layer:166},ce={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},pe={__proto__:null,to:207},me=C.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO'#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO'#EtO5TQ`O,5;zO5TQ`O,5;zPOOO'#Ej'#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO'#DoO7oQdO'#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO'#DZO8UQ!bO,59vO8^QhO,5:OOOQO'#F]'#F]O8XQ!bO,59zO'tQhO,59xO8fQhO'#EvO8sQ`O,5;{O9OQhO,59|O9uQhO'#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO'#FYOOQS'#FY'#FYOOQS'#Em'#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mOPQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO'#F_O?ZQ`O,5:ZO?`Q!fO'#ElO@^QdO'#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO'#DZOAtQhO'#F^OBPQ`O'#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO'#DYOBmQ`O,59sO'tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO'#DPOOQO'#Eb'#EbOCYQ`O'#EaOOQO'#Ea'#EaOCeQ`O'#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO'#EsO&lQdO'#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<WO&lQdO1G0uOK]Q`O7+'OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#s~!a`OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;'S%Q;'S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;'S%Q;'S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;'S%Q;'S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;'S%Q;'S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;'S%Q;'S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;'S%Q;'S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;'S%Q;'S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;'S%Q;'S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;'S%Q;'S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c<%lO-u~.gOt~~.jRO;'S-u;'S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;'S%Q;'S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;'S%Q;'S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;'S%Q;'S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;'S%Q;'S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;'S%Q;'S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;'S%Q;'S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;'S%Q;'S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;'S%Q;'S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qb7VSZQOy%Qz;'S%Q;'S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z<%lO7c~8RRO;'S7c;'S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;'S%Q;'S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!hO[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!hyS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!hne[e]||-1},{term:125,get:e=>se[e]||-1},{term:4,get:e=>de[e]||-1},{term:25,get:e=>ce[e]||-1},{term:123,get:e=>pe[e]||-1}],tokenPrec:1963}),u=null;function S(){if(!u&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],l=new Set;for(let O in e)O!="cssText"&&O!="cssFloat"&&typeof e[O]=="string"&&(/[A-Z]/.test(O)&&(O=O.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())),l.has(O)||(t.push(O),l.add(O)));u=t.sort().map(O=>({type:"property",label:O,apply:O+": "}))}return u||[]}var X="active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where".split(".").map(e=>({type:"class",label:e})),k="above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small".split(".").map(e=>({type:"keyword",label:e})).concat("aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen".split(".").map(e=>({type:"constant",label:e}))),ue="a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul".split(".").map(e=>({type:"type",label:e})),Se=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),s=/^(\w[\w-]*|-\w[\w-]*|)$/,he=/^-(-[\w-]*)?$/;function ge(e,t){var O;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let l=(O=e.parent)==null?void 0:O.firstChild;return(l==null?void 0:l.name)=="Callee"?t.sliceString(l.from,l.to)=="var":!1}var z=new x,$e=["Declaration"];function ye(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function v(e,t,l){if(t.to-t.from>4096){let O=z.get(t);if(O)return O;let a=[],o=new Set,i=t.cursor(E.IncludeAnonymous);if(i.firstChild())do for(let Q of v(e,i.node,l))o.has(Q.label)||(o.add(Q.label),a.push(Q));while(i.nextSibling());return z.set(t,a),a}else{let O=[],a=new Set;return t.cursor().iterate(o=>{var i;if(l(o)&&o.matchContext($e)&&((i=o.node.nextSibling)==null?void 0:i.name)==":"){let Q=e.sliceString(o.from,o.to);a.has(Q)||(a.add(Q),O.push({label:Q,type:"variable"}))}}),O}}var w=e=>t=>{let{state:l,pos:O}=t,a=j(l).resolveInner(O,-1),o=a.type.isError&&a.from==a.to-1&&l.doc.sliceString(a.from,a.to)=="-";if(a.name=="PropertyName"||(o||a.name=="TagName")&&/^(Block|Styles)$/.test(a.resolve(a.to).name))return{from:a.from,options:S(),validFor:s};if(a.name=="ValueName")return{from:a.from,options:k,validFor:s};if(a.name=="PseudoClassName")return{from:a.from,options:X,validFor:s};if(e(a)||(t.explicit||o)&&ge(a,l.doc))return{from:e(a)||o?a.from:O,options:v(l.doc,ye(a),e),validFor:he};if(a.name=="TagName"){for(let{parent:n}=a;n;n=n.parent)if(n.name=="Block")return{from:a.from,options:S(),validFor:s};return{from:a.from,options:ue,validFor:s}}if(a.name=="AtKeyword")return{from:a.from,options:Se,validFor:s};if(!t.explicit)return null;let i=a.resolve(O),Q=i.childBefore(O);return Q&&Q.name==":"&&i.name=="PseudoClassSelector"?{from:O,options:X,validFor:s}:Q&&Q.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:O,options:k,validFor:s}:i.name=="Block"||i.name=="Styles"?{from:O,options:S(),validFor:s}:null},Y=w(e=>e.name=="VariableName"),h=V.define({name:"css",parser:me.configure({props:[G.add({Declaration:T()}),q.add({"Block KeyframeList":R})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Pe(){return new _(h,h.data.of({autocomplete:Y}))}export{w as i,Y as n,h as r,Pe as t}; diff --git a/docs/assets/dist-BZPaM2NB.js b/docs/assets/dist-BZPaM2NB.js new file mode 100644 index 0000000..7d714d5 --- /dev/null +++ b/docs/assets/dist-BZPaM2NB.js @@ -0,0 +1 @@ +import{D as o,J as Q,N as _,T as q,g as r,n as e,q as l,r as w,s as V,u as R}from"./dist-CAcX026F.js";var g=1,b=2,y=3,p=4,T=5,s=98,c=101,v=102,t=114,d=69,X=48,W=46,f=43,x=45,Y=35,z=34,U=124,h=60,G=62;function a(O){return O>=48&&O<=57}function i(O){return a(O)||O==95}var m=new e((O,n)=>{if(a(O.next)){let P=!1;do O.advance();while(i(O.next));if(O.next==W){if(P=!0,O.advance(),a(O.next))do O.advance();while(i(O.next));else if(O.next==W||O.next>127||/\w/.test(String.fromCharCode(O.next)))return}if(O.next==c||O.next==d){if(P=!0,O.advance(),(O.next==f||O.next==x)&&O.advance(),!i(O.next))return;do O.advance();while(i(O.next))}if(O.next==v){let $=O.peek(1);if($==X+3&&O.peek(2)==X+2||$==X+6&&O.peek(2)==X+4)O.advance(3),P=!0;else return}P&&O.acceptToken(T)}else if(O.next==s||O.next==t){if(O.next==s&&O.advance(),O.next!=t)return;O.advance();let P=0;for(;O.next==Y;)P++,O.advance();if(O.next!=z)return;O.advance();O:for(;;){if(O.next<0)return;let $=O.next==z;if(O.advance(),$){for(let S=0;S{O.next==U&&O.acceptToken(g,1)}),k=new e(O=>{O.next==h?O.acceptToken(b,1):O.next==G&&O.acceptToken(y,1)}),j=l({"const macro_rules struct union enum type fn impl trait let static":Q.definitionKeyword,"mod use crate":Q.moduleKeyword,"pub unsafe async mut extern default move":Q.modifier,"for if else loop while match continue break return await":Q.controlKeyword,"as in ref":Q.operatorKeyword,"where _ crate super dyn":Q.keyword,self:Q.self,String:Q.string,Char:Q.character,RawString:Q.special(Q.string),Boolean:Q.bool,Identifier:Q.variableName,"CallExpression/Identifier":Q.function(Q.variableName),BoundIdentifier:Q.definition(Q.variableName),"FunctionItem/BoundIdentifier":Q.function(Q.definition(Q.variableName)),LoopLabel:Q.labelName,FieldIdentifier:Q.propertyName,"CallExpression/FieldExpression/FieldIdentifier":Q.function(Q.propertyName),Lifetime:Q.special(Q.variableName),ScopeIdentifier:Q.namespace,TypeIdentifier:Q.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":Q.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":Q.macroName,'"!"':Q.macroName,UpdateOp:Q.updateOperator,LineComment:Q.lineComment,BlockComment:Q.blockComment,Integer:Q.integer,Float:Q.float,ArithOp:Q.arithmeticOperator,LogicOp:Q.logicOperator,BitOp:Q.bitwiseOperator,CompareOp:Q.compareOperator,"=":Q.definitionOperator,".. ... => ->":Q.punctuation,"( )":Q.paren,"[ ]":Q.squareBracket,"{ }":Q.brace,". DerefOp":Q.derefOperator,"&":Q.operator,", ; ::":Q.separator,"Attribute/...":Q.meta}),E={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476},I=w.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWOOO4QQ_O'#FPO7hQWO'#J`OOQV'#FY'#FYO7{Q_O'#F^O:WQ_O'#FaOOQO'#F`'#F`O=sQ_O'#FcO=}Q_O'#FbO@VQWO'#FgOOQO'#J`'#J`OOQV'#Io'#IoOA]Q_O'#InOEPQWO'#InOOQV'#Fw'#FwOF[QWO'#JuOFcQWO'#F|OOQO'#IO'#IOOGrQWO'#GhOOQV'#Im'#ImOOQV'#Il'#IlOOQV'#Hj'#HjQGyQ_OOOKeQ_O'#DUOKlQYO'#CqOOQP'#I_'#I_OOQV'#Hg'#HgQ]Q_OOOLuQWO'#I`ONsQYO'#DXO!!eQWO'#JuO!!lQWO'#JuO!!vQ_O'#DfO!%]Q_O'#E}O!(sQ_O'#FWO!,ZQWO'#FZO!.^QXO'#FbO!.cQ_O'#EeO!!vQ_O'#FmO!0uQWO'#FoO!0zQWO'#FoO!1PQ^O'#FqO!1WQWO'#JuO!1_QWO'#FtO!1dQWO'#FxO!2WQWO'#JjO!2_QWO'#GOO!2_QWO'#G`O!2_QWO'#GbO!2_QWO'#GsOOQO'#Ju'#JuO!2dQWO'#GhO!2lQYO'#GpO!2_QWO'#GqO!3uQ^O'#GtO!3|QWO'#GuO!4hQWO'#HOP!4sOpO'#CcPOOO)CC})CC}OOOO'#Hi'#HiO!5OO`O,59iOOQV,59i,59iO!5ZQYO,5?aOOQO-E;i-E;iOOQO,5:[,5:[OOQP,59Z,59ZO)xQWO,5:[O)xQWO,5:[O!5oQWO,5?kO!5zQYO,5;qO!6PQYO,5;TO!6hQWO,59QO!7kQXO'#CnO!7xQXO'#I`O!9SQWO'#CoO,^QWO'#EiOOQV-E;n-E;nO!9eQWO'#FsOOQV,5WQWO,5:fOOQP,5:h,5:hO!1PQ^O,5:hO!1PQ^O,5:mO$>]QYO,5gQ_O'#HsO$>tQXO,5@QOOQV1G1i1G1iOOQP,5:e,5:eO$>|QXO,5]QYO,5=vO$LRQWO'#KRO$L^QWO,5=xOOQR,5=y,5=yO$LcQWO,5=zO$>]QYO,5>PO$>]QYO,5>POOQO1G.w1G.wO$>]QYO1G.wO$LnQYO,5=pO$LvQZO,59^OOQR,59^,59^O$>]QYO,5=wO% YQZO,5=}OOQR,5=},5=}O%#lQWO1G/_O!6PQYO1G/_O#FYQYO1G2vO%#qQWO1G2vO%$PQYO1G2vOOQV1G/i1G/iO%%YQWO,5:SO%%bQ_O1G/lO%*kQWO1G1^O%+RQWO1G1hOOQO1G1h1G1hO$>]QYO1G1hO%+iQ^O'#EgOOQV1G0k1G0kOOQV1G1s1G1sO!!vQ_O1G1sO!0zQWO1G1uO!1PQ^O1G1wO!.cQ_O1G1wOOQP,5:j,5:jO$>]QYO1G/^OOQO'#Cn'#CnO%+vQWO1G1zOOQV1G2O1G2OO%,OQWO'#CnO%,WQWO1G3TO%,]QWO1G3TO%,bQYO'#GQO%,sQWO'#G]O%-UQYO'#G_O%.hQYO'#GXOOQV1G2U1G2UO%/wQWO1G2UO%/|QWO1G2UO$ARQWO1G2UOOQV1G2f1G2fO%/wQWO1G2fO#CpQWO1G2fO%0UQWO'#GdOOQV1G2h1G2hO%0gQWO1G2hO#C{QWO1G2hO%0lQYO'#GSO$>]QYO1G2lO$AdQWO1G2lOOQV1G2y1G2yO%1xQWO1G2yO%3hQ^O'#GkO%3rQWO1G2nO#DfQWO1G2nO%4QQYO,5]QYO1G2vOOQV1G2w1G2wO%5tQWO1G2wO%5yQWO1G2wO#HXQWO1G2wOOQV1G2z1G2zO.YQ_O1G2zO$>]QYO1G2zO%6RQWO1G2zOOQO,5>l,5>lOOQO-E]QYO1G3UPOOO-E;d-E;dPOOO1G.i1G.iOOQO7+*g7+*gO%7VQYO'#IcO%7nQYO'#IfO%7yQYO'#IfO%8RQYO'#IfO%8^QYO,59eOOQO7+%b7+%bOOQP7+$a7+$aO%8cQ!fO'#JTOOQS'#EX'#EXOOQS'#EY'#EYOOQS'#EZ'#EZOOQS'#JT'#JTO%;UQWO'#EWOOQS'#E`'#E`OOQS'#JR'#JROOQS'#Hn'#HnO%;ZQ!fO,5:oOOQV,5:o,5:oOOQV'#JQ'#JQO%;bQ!fO,5:{OOQV,5:{,5:{O%;iQ!fO,5:|OOQV,5:|,5:|OOQV7+'e7+'eOOQV7+&Z7+&ZO%;pQ!fO,59TOOQO,59T,59TO%>YQWO7+$WO%>_QWO1G1yOOQV1G1y1G1yO!9SQWO1G.uO%>dQWO,5?}O%>nQ_O'#HqO%@|QWO,5?}OOQO1G1X1G1XOOQO7+&}7+&}O%AUQWO,5>^OOQO-E;p-E;pO%AcQWO7+'OO.YQ_O7+'OOOQO7+'O7+'OOOQO7+'P7+'PO%AjQWO7+'POOQO7+'W7+'WOOQP1G0V1G0VO%ArQXO1G/tO!M{QWO1G/tO%BsQXO1G0RO%CkQ^O'#HlO%C{QWO,5?eOOQP1G/u1G/uO%DWQWO1G/uO%D]QWO'#D_OOQO'#Dt'#DtO%DhQWO'#DtO%DmQWO'#I{OOQO'#Iz'#IzO%DuQWO,5:_O%DzQWO'#DtO%EPQWO'#DtOOQP1G0Q1G0QOOQP1G0S1G0SOOQP1G0X1G0XO%EXQXO1G1jO%EdQXO'#FeOOQP,5>_,5>_O!1PQ^O'#FeOOQP-E;q-E;qO$>]QYO1G1jOOQO7+'S7+'SOOQO,5]QYO7+$xOOQV7+'j7+'jO%FsQWO7+(oO%FxQWO7+(oOOQV7+'p7+'pO%/wQWO7+'pO%F}QWO7+'pO%GVQWO7+'pOOQV7+(Q7+(QO%/wQWO7+(QO#CpQWO7+(QOOQV7+(S7+(SO%0gQWO7+(SO#C{QWO7+(SO$>]QYO7+(WO%GeQWO7+(WO#HUQYO7+(cO%GjQWO7+(YO#DfQWO7+(YOOQV7+(c7+(cO%5tQWO7+(cO%5yQWO7+(cO#HXQWO7+(cOOQV7+(g7+(gO$>]QYO7+(pO%GxQWO7+(pO!1dQWO7+(pOOQV7+$v7+$vO%G}QWO7+$vO%HSQZO1G3ZO%JfQWO1G4jOOQO1G4j1G4jOOQR1G.}1G.}O#.WQWO1G.}O%JkQWO'#KQOOQO'#HW'#HWO%J|QWO'#HXO%KXQWO'#KQOOQO'#KP'#KPO%KaQWO,5=qO%KfQYO'#H[O%LrQWO'#GmO%L}QYO'#CtO%MXQWO'#GmO$>]QYO1G3ZOOQR1G3g1G3gO#7aQWO1G3ZO%M^QZO1G3bO$>]QYO1G3bO& mQYO'#IVO& }QWO,5@mOOQR1G3d1G3dOOQR1G3f1G3fO.YQ_O1G3fOOQR1G3k1G3kO&!VQYO7+$cO&!_QYO'#KOOOQQ'#J}'#J}O&!gQYO1G3[O&!lQZO1G3cOOQQ7+$y7+$yO&${QWO7+$yO&%QQWO7+(bOOQV7+(b7+(bO%5tQWO7+(bO$>]QYO7+(bO#FYQYO7+(bO&%YQWO7+(bO!.cQ_O1G/nO&%hQWO7+%WO$?[QWO7+'SO&%pQWO'#EhO&%{Q^O'#EhOOQU'#Ho'#HoO&%{Q^O,5;ROOQV,5;R,5;RO&&VQWO,5;RO&&[Q^O,5;RO!0zQWO7+'_OOQV7+'a7+'aO&&iQWO7+'cO&&qQWO7+'cO&&xQWO7+$xO&'TQ!fO7+'fO&'[Q!fO7+'fOOQV7+(o7+(oO!1dQWO7+(oO&'cQYO,5]QYO'#JrOOQO'#Jq'#JqO&*YQWO,5]QYO'#GUO&,SQYO'#JkOOQQ,5]QYO7+(YO&0SQYO'#HxO&0hQYO1G2WOOQQ1G2W1G2WOOQQ,5]QYO,5]QYO7+(fO&1dQWO'#IRO&1nQWO,5@hOOQO1G3Q1G3QOOQO1G2}1G2}OOQO1G3P1G3POOQO1G3R1G3ROOQO1G3S1G3SOOQO1G3O1G3OO&1vQWO7+(pO$>]QYO,59fO&2RQ^O'#ISO&2xQYO,5?QOOQR1G/P1G/PO&3QQ!bO,5:pO&3VQ!fO,5:rOOQS-E;l-E;lOOQV1G0Z1G0ZOOQV1G0g1G0gOOQV1G0h1G0hO&3^QWO'#JTOOQO1G.o1G.oOOQV<]O&3qQWO,5>]OOQO-E;o-E;oOOQO<WOOQO-E;j-E;jOOQP7+%a7+%aO!1PQ^O,5:`O&5cQWO'#HmO&5wQWO,5?gOOQP1G/y1G/yOOQO,5:`,5:`O&6PQWO,5:`O%DzQWO,5:`O$>]QYO,5`,5>`OOQO-E;r-E;rOOQV7+'l7+'lO&6yQWO<]QYO<]QYO<]QYO<]QYO7+(uOOQO7+*U7+*UOOQR7+$i7+$iO&8cQWO,5@lOOQO'#Gm'#GmO&8kQWO'#GmO&8vQYO'#IUO&8cQWO,5@lOOQR1G3]1G3]O&:cQYO,5=vO&;rQYO,5=XO&;|QWO,5=XOOQO,5=X,5=XOOQR7+(u7+(uO&eQZO7+(|O&@tQWO,5>qOOQO-E]QYO<]QYO,5]QYO,5@^O&D^QYO'#H|O&EsQWO,5@^OOQO1G2e1G2eO%,nQWO,5]QYO,5PO&I]QYO,5@VOOQV<]QYO,5=WO&KuQWO,5@cO&K}QWO,5@cO&MvQ^O'#IPO&KuQWO,5@cOOQO1G2q1G2qO&NTQWO,5=WO&N]QWO<oO&NvQYO,5>dO' UQYO,5>dOOQQ,5>d,5>dOOQQ-E;v-E;vOOQQ7+'r7+'rO' aQYO1G2]O$>]QYO1G2^OOQV<m,5>mOOQO-EnOOQQ,5>n,5>nO'!fQYO,5>nOOQQ-EX,5>XOOQO-E;k-E;kO!1PQ^O1G/zOOQO1G/z1G/zO'%oQWO1G/zO'%tQXO1G1kO$>]QYO1G1kO'&PQWO7+'[OOQVANA`ANA`O'&ZQWOANA`O$>]QYOANA`O'&cQWOANA`OOQVAN>OAN>OO.YQ_OAN>OO'&qQWOANAuOOQVAN@vAN@vO'&vQWOAN@vOOQVANAWANAWOOQVANAYANAYOOQVANA^ANA^O'&{QWOANA^OOQVANAiANAiO%5tQWOANAiO%5yQWOANAiO''TQWOANA`OOQVANAvANAvO.YQ_OANAvO''cQWOANAvO$>]QYOANAvOOQR<pOOQO'#HY'#HYO''vQWO'#HZOOQO,5>p,5>pOOQO-E]QYO<o,5>oOOQQ-E]QYOANAhO'(bQWO1G1rO')UQ^O1G0nO.YQ_O1G0nO'*zQWO,5;UO'+RQWO1G0nP'+WQWO'#ERP&%{Q^O'#HpOOQV7+&X7+&XO'+cQWO7+&XO&&qQWOAN@iO'+hQWOAN>OO!5oQWO,5a,5>aO'+oQWOAN@lO'+tQWOAN@lOOQS-E;s-E;sOOQVAN@lAN@lO'+|QWOAN@lOOQVANAuANAuO',UQWO1G5vO',^QWO1G2dO$>]QYO1G2dO&'|QWO,5>gOOQO,5>g,5>gOOQO-E;y-E;yO',iQWO1G5xO',qQWO1G5xO&(nQYO,5>hO',|QWO,5>hO$>]QYO,5>hOOQO-E;z-E;zO'-XQWO'#JnOOQO1G2a1G2aOOQO,5>f,5>fOOQO-E;x-E;xO&'cQYO,5iOOQO,5>i,5>iOOQO-E;{-E;{OOQQ,5>c,5>cOOQQ-E;u-E;uO'.pQWO1G2sO'/QQWO1G2rO'/]QWO1G5}O'/eQ^O,5>kOOQO'#Go'#GoOOQO,5>k,5>kO'/lQWO,5>kOOQO-E;}-E;}O$>]QYO1G2rO'/zQYO7+'xO'0VQWOANAlOOQVANAlANAlO.YQ_OANAlO'0^QWOANAvOOQS7+%x7+%xO'0eQWO7+%xO'0pQ!fO7+%xO'0}QWO7+%fO!1PQ^O7+%fO'1YQXO7+'VOOQVG26zG26zO'1eQWOG26zO'1sQWOG26zO$>]QYOG26zO'1{QWOG23jOOQVG27aG27aOOQVG26bG26bOOQVG26xG26xOOQVG27TG27TO%5tQWOG27TO'2SQWOG27bOOQVG27bG27bO.YQ_OG27bO'2ZQWOG27bOOQO1G4[1G4[OOQO7+(_7+(_OOQRANA{ANA{OOQVG27SG27SO%5tQWOG27SO&0uQWOG27SO'2fQ^O7+&YO'4PQWO7+'^O'4sQ^O7+&YO.YQ_O7+&YP.YQ_O,5;SP'6PQWO,5;SP'6UQWO,5;SOOQV<]QYO1G4SO%,nQWO'#HyO'7UQWO,5@YO'7dQWO7+(VO.YQ_O7+(VOOQO1G4T1G4TOOQO1G4V1G4VO'7nQWO1G4VO'7|QWO7+(^OOQVG27WG27WO'8XQWOG27WOOQS<e,5>eOOQO-E;w-E;wO'?rQWO<wD_DpPDvHQPPPPPPK`P! P! _PPPPP!!VP!$oP!$oPP!&oP!(rP!(w!)n!*f!*f!*f!(w!+]P!(w!.Q!.TPP!.ZP!(w!(w!(w!(wP!(w!(wP!(w!(w!.y!/dP!/dJ}J}J}PPPP!/d!.y!/sPP!$oP!0^!0a!0g!1h!1t!3t!3t!5r!7t!1t!1t!9p!;_!=O!>k!@U!Am!CS!De!1t!1tP!1tP!1t!1t!Et!1tP!Ge!1t!1tP!Ie!1tP!1t!7t!7t!1t!7t!1t!Kl!Mt!Mw!7t!1t!Mz!M}!M}!M}!NR!$oP!$oP!$oP! P! PP!N]! P! PP!Ni# }! PP! PP#!^##c##k#$Z#$_#$e#$e#$mP#&s#&s#&y#'o#'{! PP! PP#(]#(l! PP! PPP#(x#)W#)d#)|#)^! P! PP! P! P! PP#*S#*S#*Y#*`#*S#*S! P! PP#*m#*v#+Q#+Q#,x#.l#.x#.x#.{#.{5a5a5a5a5a5a5a5aP5a#/O#/U#/p#1{#2R#2b#6^#6d#6j#6|#7W#8w#9R#9b#9h#9n#9x#:S#:Y#:g#:m#:s#:}#;]#;g#=u#>R#>`#>f#>n#>u#?PPPPPPPP#?V#BaP#F^#Jx#Ls#Nr$&^P$&aPPP$)_$)h$)z$/U$1d$1m$3fP!(w$4`$7r$:i$>T$>^$>c$>fPPP$>i$A`$A|P$BaPPPPPPPPPP$BvP$EU$EX$E[$Eb$Ee$Eh$Ek$En$Et$HO$HR$HU$HX$H[$H_$Hb$He$Hh$Hk$Hn$Jt$Jw$Jz#*S$KW$K^$Ka$Kd$Kh$Kl$Ko$KrQ!tPT'V!s'Wi!SOlm!P!T$T$W$y%b)U*f/gQ'i#QR,n'l(OSOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%X%_%b&U&Y&[&b&u&z&|'P'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n+z,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1P1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:gS(z$v-oQ*p&eQ*t&hQ-k(yQ-y)ZW0Z+Q0Y4Z7UR4Y0[&w!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#r]Ofgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hb#[b#Q$y'l(b)S)U*Z-t!h$bo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m$b%k!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g!W:y!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:|%n$_%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g$e%l!Q!n$O$u%n%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g'hZOY[fgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r%_%b%i%j&U&Y&[&b&u'a'}(W(Y(d(e(f(j(o(p(r(|)i)p)q*f*i*k*l+Z+n,s,z-R-T-g-m.i.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:x$^%l!Q!n$O$u%n%o%p%q%y%{&P&p&r(q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ&j!hQ&k!iQ&l!jQ&m!kQ&s!oQ)[%QQ)]%RQ)^%SQ)_%TQ)b%WQ+`&oS,R']1ZQ.W)`S/r*u4TR4n0s+yTOY[bfgilmop!O!P!Q!T!Y!Z![!_!`!c!n!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$O$T$W$`$a$e$g$h$q$r$u$y%X%_%b%i%j%n%o%p%q%y%{&P&U&Y&[&b&o&p&r&u&z&|'P']'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(q(r(|)S)U)i)p)q)s)x)y*O*P*R*V*Z*[*^*e*f*i*k*l*n*w*x+U+V+Z+h+n+o+z+},q,s,z-R-T-g-i-m-t-v.U.`.i.p.t.x.y.}/Z/[/^/b/d/g/{/}0`0e0g0m0r0w0}1O1P1Y1Z1h1r1y1|2a2h2j2m2s2v3V3_3a3f3h3k3u3{3|4R4U4W4_4c4e4h4t4v4|5[5`5d5g5t5v6R6Y6]6a6p6v6x7S7^7c7g7m7r7{8W8X8g8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:xQ'[!xQ'h#PQ)l%gU)r%m*T*WR.f)kQ,T']R5P1Z#t%s!Q!n$O$u%p%q&P&p&r(q)x)y*O*R*V*[*^*e*n*w+V+h+o+}-i-v.U.`.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2v3V3u3{3|4U4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)x%oQ+_&oQ,U']n,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7kS.q)s2sQ/O*PQ/Q*SQ/q*uS0Q*x4RQ0a+U[0o+Z.j0g4h5y7^Q2v.pS4d0e2rQ4m0sQ5Q1ZQ6T3RQ6z4PQ7O4TQ7X4_R9Y8h&jVOfgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u']'}(W(Y(b(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1Z1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fU&g!g%P%[o,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7k$nsOfgilm!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y'}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9z9{:O:P:Q:R:S:T:U:V:W:X:Y:eS$tp9xS&O!W#bS&Q!X#cQ&`!bQ*_&RQ*a&VS*d&[:fQ*h&^Q,T']Q-j(wQ/i*jQ0p+[S2f.X0qQ3]/_Q3^/`Q3g/hQ3i/kQ5P1ZU5b2R2g4lU7o5c5e5rQ8]6dS8u7p7qS9_8v8wR9i9`i{Ob!O!P!T$y%_%b)S)U)i-thxOb!O!P!T$y%_%b)S)U)i-tW/v*v/t3w6qQ/}*wW0[+Q0Y4Z7UQ3{/{Q6x3|R8g6v!h$do!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ&d!dQ&f!fQ&n!mW&x!q%X&|1PQ'S!rQ)X$}Q)Y%OQ)a%VU)d%Y'T'UQ*s&hS+s&z'PS-Y(k1sQ-u)WQ-x)ZS.a)e)fS0x+c/sQ1S+zQ1W+{S1v-_-`Q2k.bQ3s/pQ5]1xR5h2V${sOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$zsOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR3]/_V&T!Y!`*i!i$lo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!k$^o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!i$co!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&e^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR(l$fQ-[(kR5Y1sQ(S#|S({$v-oS-Z(k1sQ-l(yW/u*v/t3w6qS1w-_-`Q3v/vR5^1xQ'e#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,o'mk,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ'f#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,p'mR*g&]X/c*f/d/g3f!}aOb!O!P!T#z$v$y%_%b'}(y)S)U)i)s*f*v*w+Q+Z,s-o-t.j/b/d/g/t/{0Y0g1h2s3f3w3|4Z4h5y6a6q6v7U7^Q3`/aQ6_3bQ8Y6`R9V8Z${rOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#nfOfglmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!T9u!Y!_!`*i*l/^3h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#rfOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!X9u!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$srOfglmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#U#oh#d$P$Q$V$s%^&W&X'q't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b}:P&S&]/k3[6d:[:]:c:d:h:j:k:l:m:n:o:p:q:r:v:w:{#W#ph#d$P$Q$V$s%^&W&X'q'r't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b!P:Q&S&]/k3[6d:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{#S#qh#d$P$Q$V$s%^&W&X'q'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b{:R&S&]/k3[6d:[:]:c:d:h:k:l:m:n:o:p:q:r:v:w:{#Q#rh#d$P$Q$V$s%^&W&X'q'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9by:S&S&]/k3[6d:[:]:c:d:h:l:m:n:o:p:q:r:v:w:{#O#sh#d$P$Q$V$s%^&W&X'q'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bw:T&S&]/k3[6d:[:]:c:d:h:m:n:o:p:q:r:v:w:{!|#th#d$P$Q$V$s%^&W&X'q'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bu:U&S&]/k3[6d:[:]:c:d:h:n:o:p:q:r:v:w:{!x#vh#d$P$Q$V$s%^&W&X'q'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bq:W&S&]/k3[6d:[:]:c:d:h:p:q:r:v:w:{!v#wh#d$P$Q$V$s%^&W&X'q'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bo:X&S&]/k3[6d:[:]:c:d:h:q:r:v:w:{$]#{h#`#d$P$Q$V$s%^&S&W&X&]'q'r's't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n/k0z1i1l1}3P3[4w5V5a6^6d6e7R7e7h7s7y8j8q8{9[9b:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{${jOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$v!aOfgilmp!O!P!T!Y!Z!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ&Y![Q&Z!]R:e9{#rpOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hQ&[!^!W9x!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:f:zR$moR-f(rR$wqT(}$v-oQ/f*fS3d/d/gR6c3fQ3m/mQ3p/nQ6i3nR6l3qQ$zwQ)V${Q*q&fQ+f&qQ+i&sQ-w)YW.Z)b+j+k+lS/X*]+gW2b.W.[.].^U3W/Y/]0yU5o2c2d2eS6W3X3ZS7w5p5qS8Q6V6XQ8y7xS8}8R8SR9c9O^|O!O!P!T%_%b)iX)R$y)S)U-tQ&r!nQ*^&PQ*|&jQ+P&kQ+T&lQ+W&mQ+]&nQ+l&sQ-})[Q.Q)]Q.T)^Q.V)_Q.Y)aQ.^)bQ2S-uQ2e.WR4U0VU+a&o*u4TR4o0sQ+Y&mQ+k&sS.])b+l^0v+_+`/q/r4m4n7OS2d.W.^S4Q0R0SR5q2eS0R*x4RQ0a+UR7X4_U+d&o*u4TR4p0sQ*z&jQ+O&kQ+S&lQ+g&qQ+j&sS-{)[*|S.P)]+PS.S)^+TU.[)b+k+lQ/Y*]Q0X*{Q0q+[Q2X-|Q2Y-}Q2].QQ2_.TU2c.W.].^Q2g.XS3Z/]0yS5c2R4lQ5j2ZS5p2d2eQ6X3XS7q5e5rQ7x5qQ8R6VQ8v7pQ9O8SR9`8wQ0T*xR6|4RQ*y&jQ*}&kU-z)[*z*|U.O)]+O+PS2W-{-}S2[.P.QQ4X0ZQ5i2YQ5k2]R7T4YQ/w*vQ3t/tQ6r3wR8d6qQ*{&jS-|)[*|Q2Z-}Q4X0ZR7T4YQ+R&lU.R)^+S+TS2^.S.TR5l2_Q0]+QQ4V0YQ7V4ZR8l7UQ+[&nS.X)a+]S2R-u.YR5e2SQ0i+ZQ4f0gQ7`4hR8m7^Q.m)sQ0i+ZQ2p.jQ4f0gQ5|2sQ7`4hQ7}5yR8m7^Q0i+ZR4f0gX'O!q%X&|1PX&{!q%X&|1PW'O!q%X&|1PS+u&z'PR1U+z_|O!O!P!T%_%b)iQ%a!PS)h%_%bR.d)i$^%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ*U%yR*X%{$c%n!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gW)t%m%x*T*WQ.e)jR2{.vR.m)sR5|2sQ'W!sR,O'WQ!TOQ$TlQ$WmQ%b!P[%|!T$T$W%b)U/gQ)U$yR/g*f$b%i!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g[)n%i)p.i:`:t:xQ)p%jQ.i)qQ:`%nQ:t:aR:x:uQ!vUR'Y!vS!OO!TU%]!O%_)iQ%_!PR)i%b#rYOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hh!yY!|#U$`'a'n(d,q-R9s9|:gQ!|[b#Ub#Q$y'l(b)S)U*Z-t!h$`o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ'a!}Q'n#ZQ(d$aQ,q'oQ-R(e!W9s!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ9|9tR:g9}Q-U(gR1p-UQ1t-[R5Z1tQ,c'bQ,f'cQ,h'dW1`,c,f,h5UR5U1_Q/d*fS3c/d3fR3f/gfbO!O!P!T$y%_%b)S)U)i-tp#Wb'}(y.j/b/t/{0Y0g1h5y6a6q6v7U7^Q'}#zS(y$v-oQ.j)sW/b*f/d/g3fQ/t*vQ/{*wQ0Y+QQ0g+ZQ1h,sQ5y2sQ6q3wQ6v3|Q7U4ZR7^4hQ,t(OQ1g,rT1j,t1gS(X$Q([Q(^$VU,x(X(^,}R,}(`Q(s$mR-h(sQ-p)OR2P-pQ3n/mQ3q/nT6j3n3qQ)S$yS-r)S-tR-t)UQ4`0aR7Y4``0t+^+_+`+a+d/q/r7OR4q0tQ8i6zR9Z8iQ4S0TR6}4SQ3x/wQ6n3tT6s3x6nQ3}/|Q6t3zU6y3}6t8eR8e6uQ4[0]Q7Q4VT7W4[7QhzOb!O!P!T$y%_%b)S)U)i-tQ$|xW%Zz$|%f)v$b%f!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR)v%nS4i0i0nS7]4f4gT7b4i7]W&z!q%X&|1PS+r&z+zR+z'PQ1Q+wR4z1QU1[,S,T,UR5R1[S3S/Q7OR6U3SQ2t.mQ5x2pT5}2t5xQ.z)zR3O.z^_O!O!P!T%_%b)iY#Xb$y)S)U-t$l#_fgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!h$io!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'j#Q'lQ-P(bR/V*Z&v!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!{Y[#U#Z9s9tW&{!q%X&|1P['`!|!}'n'o9|9}S(c$`$aS+t&z'PU,X'a,q:gS-Q(d(eQ1T+zR1n-RS%t!Q&oQ&q!nQ(V$OQ(w$uS)w%o.pQ)z%pQ)}%qS*]&P&rQ+e&pQ,S']Q-d(qQ.l)sU.w)x)y2vS/O*O*PQ/P*RQ/T*VQ/W*[Q/]*^Q/`*eQ/l*nQ/|*wS0S*x4RQ0a+UQ0c+VQ0y+hQ0{+oQ1X+}Q1{-iQ2T-vQ2`.UQ2i.`Q2z.tQ2|.xQ2}.yQ3X/ZQ3Y/[S3z/{/}Q4^0`Q4l0rQ4s0wQ4x1OQ4}1YQ5O1ZQ5_1yQ5n2aQ5r2hQ5u2jQ5w2mQ5{2sQ6V3VQ6o3uQ6u3{Q6w3|Q7P4UQ7X4_Q7[4eQ7d4tQ7n5`Q7p5dQ7|5vQ8P6RQ8S6YQ8c6pS8f6v6xQ8o7cQ8w7rR9X8g$^%m!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)j%nQ*T%yR*W%{$y%h!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x'pWOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$x%g!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x_&y!q%X&z&|'P+z1PR,V']$zrOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!j$]o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ,T']R5P1Z_}O!O!P!T%_%b)i^|O!O!P!T%_%b)iQ#YbX)R$y)S)U-tbhO!O!T3_6]8W8X9U9hS#`f9uQ#dgQ$PiQ$QlQ$VmQ$spW%^!P%_%b)iU&S!Y!`*iQ&W!ZQ&X![Q&]!_Q'q#eQ'r#oS's#p:QQ't#qQ'u#rQ'v#sQ'w#tQ'x#uQ'y#vQ'z#wQ'{#xQ'|#yQ(O#zQ(U#}Q([$TQ(`$WQ*b&YQ*c&[Q,r'}Q,w(WQ,y(YQ-n(|Q/k*lQ0z+nQ1i,sQ1l,zQ1}-mQ3P.}Q3[/^Q4w0}Q5V1hQ5a1|Q6^3aQ6d3hQ6e3kQ7R4WQ7e4vQ7h4|Q7s5gQ7y5tQ8j7SQ8q7gQ8{7{Q9[8kQ9b8|Q:[9wQ:]9xQ:c9zQ:d9{Q:h:OQ:i:PQ:j:RQ:k:SQ:l:TQ:m:UQ:n:VQ:o:WQ:p:XQ:q:YQ:r:ZQ:v:eQ:w:fR:{9v^tO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6[3_Q8V6]Q9R8WQ9T8XQ9g9UR9m9hQ&V!YQ&^!`R/h*iQ$joQ&a!cQ&t!pU(g$e$g(jS(n$h0eQ(u$qQ(v$rQ*`&UQ*m&bQ+p&uQ-S(fS-b(o4cQ-c(pQ-e(rW/a*f/d/g3fQ/j*kW0f+Z0g4h7^Q1o-TQ1z-gQ3b/bQ4k0mQ5X1rQ7l5[Q8Z6aR8t7m!h$_o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mR-P(b'qXOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$zqOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$fo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&d^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!zY[$`$a9s9t['_!|!}(d(e9|9}W)o%i%j:`:aU,W'a-R:gW.h)p)q:t:uT2o.i:xQ(i$eQ(m$gR-W(jV(h$e$g(jR-^(kR-](k$znOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$ko!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'g#O'pj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ,m'jQ.u)uR8_6f`,b'b'c'd,c,f,h1_5UQ1e,lX3l/m/n3n3qj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ7j5TR8s7k^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",nodeNames:"\u26A0 | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["isolate",-4,4,6,7,33,""],["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[j],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"$%h_R!XOX$nXY5gYZ6iZ]$n]^5g^p$npq5gqr7Xrs9cst:Rtu;Tuv>vvwAQwxCbxy!+Tyz!,Vz{!-X{|!/_|}!0g}!O!1i!O!P!3v!P!Q!8[!Q!R!Bw!R![!Dr![!]#+q!]!^#-{!^!_#.}!_!`#1b!`!a#3o!a!b#6S!b!c#7U!c!}#8W!}#O#:T#O#P#;V#P#Q#Cb#Q#R#Dd#R#S#8W#S#T$n#T#U#8W#U#V#El#V#f#8W#f#g#Ic#g#o#8W#o#p$ S#p#q$!U#q#r$$f#r${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nU$u]'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU%uV'_Q'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&aV'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&yVOz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`S'cVOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S'{UOz'`{!P'`!P!Q(_!Q;'S'`;'S;=`*m<%lO'`S(bUOz(t{!P(t!P!Q(_!Q;'S(t;'S;=`*a<%lO(tS(wVOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^S)eV'PS'OSOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^S)}UOz(tz{)z{!P(t!Q;'S(t;'S;=`*a<%lO(tS*dP;=`<%l(tS*jP;=`<%l)^S*pP;=`<%l'`S*vP;=`<%l&[S+OO'PSU+T]'_QOY+|YZ-xZr+|rs'`sz+|z{+O{!P+|!P!Q4y!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|U,R]'_QOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU-P]'_QOY+|YZ-xZr+|rs'`sz+|z{.d{!P+|!P!Q/Z!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|U-}V'_QOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[Q.iV'_QOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.dQ/TO'_QQ/WP;=`<%l.dU/`]'_QOY0XYZ3uZr0Xrs(tsz0Xz{.d{!P0X!P!Q/Z!Q#O0X#O#P(t#P;'S0X;'S;=`4a<%lO0XU0^]'_QOY1VYZ2XZr1Vrs)^sz1Vz{2w{!P1V!P!Q/Z!Q#O1V#O#P)^#P;'S1V;'S;=`4g<%lO1VU1`]'_Q'PS'OSOY1VYZ2XZr1Vrs)^sz1Vz{2w{!P1V!P!Q/Z!Q#O1V#O#P)^#P;'S1V;'S;=`4g<%lO1VU2bV'_Q'PS'OSOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^U2|]'_QOY0XYZ3uZr0Xrs(tsz0Xz{2w{!P0X!P!Q.d!Q#O0X#O#P(t#P;'S0X;'S;=`4a<%lO0XU3zV'_QOz)^z{)z{!P)^!P!Q(_!Q;'S)^;'S;=`*g<%lO)^U4dP;=`<%l0XU4jP;=`<%l1VU4pP;=`<%l+|U4vP;=`<%l$nU5QV'_Q'PSOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.d_5p]'_Q&|X'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_6rV'_Q&|X'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_7b_ZX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`8a!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_8j]#PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_9lV']Q'OS'^XOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_:[]'QX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_;^i'_Q'vW'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!c$n!c!}<{!}#O$n#O#P&[#P#R$n#R#S<{#S#T$n#T#o<{#o${$n${$|<{$|4w$n4w5b<{5b5i$n5i6S<{6S;'S$n;'S;=`4s<%lO$n_=Uj'_Q_X'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![<{![!c$n!c!}<{!}#O$n#O#P&[#P#R$n#R#S<{#S#T$n#T#o<{#o${$n${$|<{$|4w$n4w5b<{5b5i$n5i6S<{6S;'S$n;'S;=`4s<%lO$n_?P_(TP'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_@X]#OX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_AZa!qX'_Q'OSOY$nYZ%nZr$nrs&[sv$nvwB`wz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Bi]'}X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Cik'_Q'OSOYE^YZGfZrE^rsHvswE^wxFdxzE^z{Ih{!PE^!P!QKl!Q!cE^!c!}Lp!}#OE^#O#P!!l#P#RE^#R#SLp#S#TE^#T#oLp#o${E^${$|Lp$|4wE^4w5bLp5b5iE^5i6SLp6S;'SE^;'S;=`!*}<%lOE^_Ee_'_Q'OSOY$nYZ%nZr$nrs&[sw$nwxFdxz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Fm]'_Q'OSsXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_GmX'_Q'OSOw&[wxHYxz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]HaV'OSsXOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]H{X'OSOw&[wxHYxz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_Im_'_QOY+|YZ-xZr+|rs'`sw+|wxJlxz+|z{+O{!P+|!P!Q4y!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_Js]'_QsXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_Kq_'_QOY+|YZ-xZr+|rs'`sw+|wxJlxz+|z{.d{!P+|!P!Q/Z!Q#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_Lyl'_Q'OS'ZXOY$nYZ%nZr$nrs&[sw$nwxFdxz$nz{+O{!P$n!P!Q,z!Q![Nq![!c$n!c!}Nq!}#O$n#O#P&[#P#R$n#R#SNq#S#T$n#T#oNq#o${$n${$|Nq$|4w$n4w5bNq5b5i$n5i6SNq6S;'S$n;'S;=`4s<%lO$n_Nzj'_Q'OS'ZXOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![Nq![!c$n!c!}Nq!}#O$n#O#P&[#P#R$n#R#SNq#S#T$n#T#oNq#o${$n${$|Nq$|4w$n4w5bNq5b5i$n5i6SNq6S;'S$n;'S;=`4s<%lO$n]!!qZ'OSOzHvz{!#d{!PHv!P!Q!$n!Q#iHv#i#j!%Z#j#lHv#l#m!'V#m;'SHv;'S;=`!*w<%lOHv]!#gXOw'`wx!$Sxz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`]!$XVsXOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[]!$qWOw'`wx!$Sxz'`{!P'`!P!Q(_!Q;'S'`;'S;=`*m<%lO'`]!%`^'OSOz&[z{&v{!P&[!P!Q'x!Q![!&[![!c&[!c!i!&[!i#T&[#T#Z!&[#Z#o&[#o#p!({#p;'S&[;'S;=`*s<%lO&[]!&a['OSOz&[z{&v{!P&[!P!Q'x!Q![!'V![!c&[!c!i!'V!i#T&[#T#Z!'V#Z;'S&[;'S;=`*s<%lO&[]!'[['OSOz&[z{&v{!P&[!P!Q'x!Q![!(Q![!c&[!c!i!(Q!i#T&[#T#Z!(Q#Z;'S&[;'S;=`*s<%lO&[]!(V['OSOz&[z{&v{!P&[!P!Q'x!Q![Hv![!c&[!c!iHv!i#T&[#T#ZHv#Z;'S&[;'S;=`*s<%lO&[]!)Q['OSOz&[z{&v{!P&[!P!Q'x!Q![!)v![!c&[!c!i!)v!i#T&[#T#Z!)v#Z;'S&[;'S;=`*s<%lO&[]!){^'OSOz&[z{&v{!P&[!P!Q'x!Q![!)v![!c&[!c!i!)v!i#T&[#T#Z!)v#Z#q&[#q#rHv#r;'S&[;'S;=`*s<%lO&[]!*zP;=`<%lHv_!+QP;=`<%lE^_!+^]}X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!,`]!PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!-`_(QX'_QOY+|YZ-xZr+|rs'`sz+|z{+O{!P+|!P!Q4y!Q!_+|!_!`!._!`#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_!.f]#OX'_QOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!/h_(PX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!0p]!eX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!1r`'gX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`!a!2t!a#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!2}]#QX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!4P^(OX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!O$n!O!P!4{!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!5U`!lX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!O$n!O!P!6W!P!Q,z!Q!_$n!_!`!7Y!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!6a]!tX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nV!7c]'qP'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_!8c_'_Q'xXOY+|YZ-xZr+|rs'`sz+|z{!9b{!P+|!P!Q!:O!Q!_+|!_!`!._!`#O+|#O#P'`#P;'S+|;'S;=`4m<%lO+|_!9iV&}]'_QOY.dYZ/OZr.ds#O.d#P;'S.d;'S;=`/T<%lO.d_!:V]'_QUXOY!;OYZ3uZr!;Ors!>jsz!;Oz{!Aq{!P!;O!P!Q!:O!Q#O!;O#O#P!>j#P;'S!;O;'S;=`!Bk<%lO!;O_!;V]'_QUXOY!jYZ(tZz!>jz{!=x{!P!>j!P!Q!?|!Q;'S!>j;'S;=`!@e<%lO!>j]!>oXUXOY!=SYZ)^Zz!=Sz{!=x{!P!=S!P!Q!?[!Q;'S!=S;'S;=`!@k<%lO!=S]!?aXUXOY!>jYZ(tZz!>jz{!?|{!P!>j!P!Q!?[!Q;'S!>j;'S;=`!@e<%lO!>jX!@RSUXOY!?|Z;'S!?|;'S;=`!@_<%lO!?|X!@bP;=`<%l!?|]!@hP;=`<%l!>j]!@nP;=`<%l!=S_!@x]'_QUXOY!;OYZ3uZr!;Ors!>jsz!;Oz{!@q{!P!;O!P!Q!Aq!Q#O!;O#O#P!>j#P;'S!;O;'S;=`!Bk<%lO!;OZ!AxX'_QUXOY!AqYZ/OZr!Aqrs!?|s#O!Aq#O#P!?|#P;'S!Aq;'S;=`!Be<%lO!AqZ!BhP;=`<%l!Aq_!BnP;=`<%l!;O_!BtP;=`<%l!o![!c&[!c!i#>o!i#T&[#T#Z#>o#Z#o&[#o#p#A`#p;'S&[;'S;=`*s<%lO&[U#>t['OSOz&[z{&v{!P&[!P!Q'x!Q![#?j![!c&[!c!i#?j!i#T&[#T#Z#?j#Z;'S&[;'S;=`*s<%lO&[U#?o['OSOz&[z{&v{!P&[!P!Q'x!Q![#@e![!c&[!c!i#@e!i#T&[#T#Z#@e#Z;'S&[;'S;=`*s<%lO&[U#@j['OSOz&[z{&v{!P&[!P!Q'x!Q![#;}![!c&[!c!i#;}!i#T&[#T#Z#;}#Z;'S&[;'S;=`*s<%lO&[U#Ae['OSOz&[z{&v{!P&[!P!Q'x!Q![#BZ![!c&[!c!i#BZ!i#T&[#T#Z#BZ#Z;'S&[;'S;=`*s<%lO&[U#B`^'OSOz&[z{&v{!P&[!P!Q'x!Q![#BZ![!c&[!c!i#BZ!i#T&[#T#Z#BZ#Z#q&[#q#r#;}#r;'S&[;'S;=`*s<%lO&[U#C_P;=`<%l#;}_#Ck]XX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_#Dm_'{X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_#Ewl'_Q'OS!yW'TPOY$nYZ%nZr$nrs#Gosw$nwx#H]xz$nz{+O{!P$n!P!Q,z!Q![#8W![!c$n!c!}#8W!}#O$n#O#P&[#P#R$n#R#S#8W#S#T$n#T#o#8W#o${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$n]#GvV'OS'^XOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[_#Hd_'_Q'OSOYE^YZGfZrE^rsHvswE^wxFdxzE^z{Ih{!PE^!P!QKl!Q#OE^#O#P!!l#P;'SE^;'S;=`!*}<%lOE^_#Ink'_Q'OS!yW'TPOY$nYZ%nZr$nrs&[st#Kctz$nz{+O{!P$n!P!Q,z!Q![#8W![!c$n!c!}#8W!}#O$n#O#P&[#P#R$n#R#S#8W#S#T$n#T#o#8W#o${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nV#Kji'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$nV#Mbj'_Q'OS'TPOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q![#MX![!c$n!c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$n_$ ]]wX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$!_a'rX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P#p$n#p#q$#d#q;'S$n;'S;=`4s<%lO$n_$#m]'|X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$$o]vX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n",tokenizers:[u,k,m,0,1,2,3],topRules:{SourceFile:[0,8]},specialized:[{term:281,get:O=>E[O]||-1}],tokenPrec:15596}),Z=V.define({name:"rust",parser:I.configure({props:[_.add({IfExpression:r({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:O=>O.continue(),"Statement MatchArm":r()}),o.add(O=>{if(/(Block|edTokens|List)$/.test(O.name))return q;if(O.name=="BlockComment")return n=>({from:n.from+2,to:n.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function A(){return new R(Z)}export{Z as n,A as t}; diff --git a/docs/assets/dist-B_BsW7xk.js b/docs/assets/dist-B_BsW7xk.js new file mode 100644 index 0000000..9277778 --- /dev/null +++ b/docs/assets/dist-B_BsW7xk.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import{n as p,t as o}from"./dist-ClsPkyB_.js";export{o as php,p as phpLanguage}; diff --git a/docs/assets/dist-BlHq73nV.js b/docs/assets/dist-BlHq73nV.js new file mode 100644 index 0000000..2bfb95c --- /dev/null +++ b/docs/assets/dist-BlHq73nV.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import"./dist-BVf1IY4_.js";import{n as s,r as a,t as e}from"./dist-ByyW-iwc.js";export{e as less,s as lessCompletionSource,a as lessLanguage}; diff --git a/docs/assets/dist-BmJp4tX0.js b/docs/assets/dist-BmJp4tX0.js new file mode 100644 index 0000000..54a501f --- /dev/null +++ b/docs/assets/dist-BmJp4tX0.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{a,c as s,d as t,f as e,i as o,l as p,n as i,o as n,r,s as c,t as g,u}from"./dist-Cq_4nPfh.js";export{g as autoCloseTags,i as completionPath,r as esLint,o as javascript,a as javascriptLanguage,n as jsxLanguage,c as localCompletionSource,s as scopeCompletionSource,p as snippets,u as tsxLanguage,t as typescriptLanguage,e as typescriptSnippets}; diff --git a/docs/assets/dist-BnNY29MI.js b/docs/assets/dist-BnNY29MI.js new file mode 100644 index 0000000..46e55e2 --- /dev/null +++ b/docs/assets/dist-BnNY29MI.js @@ -0,0 +1 @@ +import{D as m,H as u,J as r,N as x,at as Z,i as G,n as l,nt as b,q as R,r as h,s as k,u as w,y as X,zt as T}from"./dist-CAcX026F.js";import{n as y}from"./dist-CVj-_Iiz.js";var U=1,z=2,j=3,Y=155,E=4,W=156;function _(O){return O>=65&&O<=90||O>=97&&O<=122}var V=new l(O=>{let e=O.pos;for(;;){let{next:t}=O;if(t<0)break;if(t==123){let i=O.peek(1);if(i==123){if(O.pos>e)break;O.acceptToken(U,2);return}else if(i==35){if(O.pos>e)break;O.acceptToken(z,2);return}else if(i==37){if(O.pos>e)break;let a=2,Q=2;for(;;){let P=O.peek(a);if(P==32||P==10)++a;else if(P==35)for(++a;;){let n=O.peek(a);if(n<0||n==10)break;a++}else if(P==45&&Q==2)Q=++a;else{O.acceptToken(j,Q);return}}}}if(O.advance(),t==10)break}O.pos>e&&O.acceptToken(Y)});function q(O,e,t){return new l(i=>{let a=i.pos;for(;;){let{next:Q}=i;if(Q==123&&i.peek(1)==37){let P=2;for(;;P++){let o=i.peek(P);if(o!=32&&o!=10)break}let n="";for(;;P++){let o=i.peek(P);if(!_(o))break;n+=String.fromCharCode(o)}if(n==O){if(i.pos>a)break;i.acceptToken(t,2);break}}else if(Q<0)break;if(i.advance(),Q==10)break}i.pos>a&&i.acceptToken(e)})}var F=q("endraw",W,E),N={__proto__:null,in:38,is:40,and:46,or:48,not:52,if:78,else:80,true:98,false:98,self:100,super:102,loop:104,recursive:136,scoped:160,required:162,as:256,import:260,ignore:268,missing:270,with:272,without:274,context:276},D={__proto__:null,if:112,elif:118,else:122,endif:126,for:132,endfor:140,raw:146,endraw:152,block:158,endblock:166,macro:172,endmacro:182,call:188,endcall:192,filter:198,endfilter:202,set:208,endset:212,trans:218,pluralize:222,endtrans:226,with:232,endwith:236,autoescape:242,endautoescape:246,import:254,from:258,include:266},C=h.deserialize({version:14,states:"!*dQVOPOOOOOP'#F`'#F`OeOTO'#CbOvQSO'#CdO!kOPO'#DcO!yOPO'#DnO#XOQO'#DuO#^OPO'#D{O#lOPO'#ESO#zOPO'#E[O$YOPO'#EaO$hOPO'#EfO$vOPO'#EkO%UOPO'#ErO%dOPO'#EwOOOP'#F|'#F|O%rQWO'#E|O&sO#tO'#F]OOOP'#Fq'#FqOOOP'#F_'#F_QVOPOOOOOP-E9^-E9^OOQO'#Ce'#CeO'sQSO,59OO'zQSO'#DWO(RQSO'#DXO(YQ`O'#DZOOQO'#Fr'#FrOvQSO'#CuO(aOPO'#CbOOOP'#Fd'#FdO!kOPO,59}OOOP,59},59}O(oOPO,59}O(}QWO'#E|OOOP,5:Y,5:YO)[OPO,5:YO!yOPO,5:YO)jQWO'#E|OOOQ'#Ff'#FfO)tOQO'#DxO)|OQO,5:aOOOP,5:g,5:gO#^OPO,5:gO*RQWO'#E|OOOP,5:n,5:nO#lOPO,5:nO*YQWO'#E|OOOP,5:v,5:vO#zOPO,5:vO*aQWO'#E|OOOP,5:{,5:{O$YOPO,5:{O*hQWO'#E|OOOP,5;Q,5;QO$hOPO,5;QO*oQWO'#E|OOOP,5;V,5;VO*vOPO,5;VO$vOPO,5;VO+UQWO'#E|OOOP,5;^,5;^O%UOPO,5;^O+`QWO'#E|OOOP,5;c,5;cO%dOPO,5;cO+gQWO'#E|O+nQSO,5;hOvQSO,5:OO+uQSO,5:ZO+zQSO,5:bO+uQSO,5:hO+uQSO,5:oO,PQSO,5:wO,XQpO,5:|O+uQSO,5;RO,^QSO,5;WO,fQSO,5;_OvQSO,5;dOvQSO,5;jOvQSO,5;jOvQSO,5;pOOOO'#Fk'#FkO,nO#tO,5;wOOOP-E9]-E9]O,vQ!bO,59QOvQSO,59TOvQSO,59UOvQSO,59UOvQSO,59UOvQSO,59UO,{QSO'#C}O,XQpO,59cOOQO,59q,59qOOOP1G.j1G.jOvQSO,59UO-SQSO,59UOvQSO,59UOvQSO,59UOvQSO,59nO-wQSO'#FxO.RQSO,59rO.WQSO,59tOOQO,59s,59sO.bQSO'#D[O.iQWO'#F{O.qQWO,59uO0WQSO,59aOOOP-E9b-E9bOOOP1G/i1G/iO(oOPO1G/iO(oOPO1G/iO)TQWO'#E|OvQSO,5:SO0nQSO,5:UO0sQSO,5:WOOOP1G/t1G/tO)[OPO1G/tO)mQWO'#E|O)[OPO1G/tO0xQSO,5:_OOOQ-E9d-E9dOOOP1G/{1G/{O0}QWO'#DyOOOP1G0R1G0RO1SQSO,5:lOOOP1G0Y1G0YO1[QSO,5:tOOOP1G0b1G0bO1aQSO,5:yOOOP1G0g1G0gO1fQSO,5;OOOOP1G0l1G0lO1kQSO,5;TOOOP1G0q1G0qO*vOPO1G0qO+XQWO'#E|O*vOPO1G0qOvQSO,5;YO1pQSO,5;[OOOP1G0x1G0xO1uQSO,5;aOOOP1G0}1G0}O1zQSO,5;fO2PQSO1G1SOOOP1G1S1G1SO2WQSO1G/jOOQO'#Dq'#DqO2_QSO1G/uOOOQ1G/|1G/|O2gQSO1G0SO2rQSO1G0ZO2zQSO'#EVO3SQSO1G0cO,SQSO1G0cO4fQSO'#FvOOQO'#Fv'#FvO5]QSO1G0hO5bQSO1G0mOOOP1G0r1G0rO5mQSO1G0rO5rQSO'#GOO5zQSO1G0yO6PQSO1G1OO6WQSO1G1UO6_QSO1G1UO6fQSO1G1[OOOO-E9i-E9iOOOP1G1c1G1cOOQO1G.l1G.lO6vQSO1G.oO8wQSO1G.pO:oQSO1G.pO:vQSO1G.pOQQSO'#FrO>XQSO'#FwO>aQSO,59iOOQO1G.}1G.}O>fQSO1G.pO@aQSO1G.pOB_QSO1G.pOBfQSO1G.pOD^QSO1G/YOvQSO'#FbODeQSO,5gOOOPAN>gAN>gO! }QSOAN>gOOOPAN>tAN>tO!!SQSO1G0^O!!^QSO,5SQ`O1G.pP!>ZQ`O1G.pP!>bQ`O1G/YP!?QQ`O<mOZ!wO_!yO`!zOa!{Ob!|Oc#ROd#SOp!}O$i!xOV^ih^il^iw^it^i$h^io^i!P^i!Z^i#t^i#v^i#z^i#|^i#}^ix^i!f^i~Og^i~P@nOg#TO~P@nOZ!wO_!yO`!zOa!{Ob!|Oc#ROd#SOg#TOh#UOp!}O$i!xOVvilviwvitvi$hviovi!Pvi!Zvi#tvi#vvi#zvi#|vi#}vi!fvi~Ox&gO~PBmOt%PO$h$la~Oo&jOt%PO~OekOfkOj(yOpiO!RkO!SkO!TkO!UkO$gfO$ihO$njO~Ot%VO$m$oa~O!]#eO~P%rO!Z&pO~P&xO!Z&rO~O!Z&sO~O!Z&uO~P&xOc&xOt%rO~O!Z&zO~O!Z&zO!s&{O~O!Z&|O~Os&}Ot'OOo$qX~Oo'QO~O!Z'RO~Op!}O!Z'RO~Os'TOt%rO~Os'WOt%rO~O$g'ZO~O$O'_O~O#{'`O~Ot&bOo$ka~Ot$Ua$h$Uao$Ua~P&xOZ!wO_(zO`({Oa(|Ob(}Oc)POd)QOg)ROh)SOl)OOp!}Ow)TO$i!xO~Ot!Oi$m!Oi~PHrO!P'hO~P&xO!Z'jO!f'kO~P&xO!Z'lO~Ot'OOo$qa~O!Z'qO~O!Z'sO~P&xOt'tO!Z'vO~P&xOt'xO!Z$ri~P&xO!Z'zO~Ot!eX!Z!eX#tXX~O#t'{O~Ot'|O!Z'zO~O!Z(OO~O!Z(OO#|(PO#}(PO~Oo$Tat$Ta~P&xOs(QO~P=POoritri~P&xOZ!wOp!}O$i!xOVvylvywvytvy$hvyovy!Pvy!Zvy#tvy#vvy#zvy#|vy#}vyxvy!fvy~O_!yO`!zOa!{Ob!|Oc#ROd#SOg#TOh#UO~PLsOZ!wOp!}O$i!xOgiahialiatiawia$miaxia~O_(zO`({Oa(|Ob(}Oc)POd)QO~PNkO!Z(^O!f(_O~P&xO!Z(^O~Oo!zit!zi~P&xOs(`Oo$Zat$Za~O!Z(aO~P&xOt'tO!Z(dO~Ot'xO!Z$rq~P&xOt'xO!Z$rq~Ot'|O!Z(kO~O$O(lO~OZ!wOp!}O$i!xO`^ia^ib^ic^id^ig^ih^il^it^iw^i$m^ie^if^i$g^ix^i~O_^i~P!#iOZ!wO_(zOp!}O$i!xOa^ib^ic^id^ig^ih^il^it^iw^i$m^ix^i~O`^i~P!$zO`({O~P!$zOZ!wO_(zO`({Oa(|Op!}O$i!xOc^id^ig^ih^il^it^iw^i$m^ix^i~Ob^i~P!&ZO$m$jX~P3[Ob(}O~P!&ZOZ!wO_)zO`){Oa)|Ob)}Oc*OOp!}O$i!xOd^ig^ih^il^it^iw^i$m^ix^i~Oe&fOf&fO$gfO~P!'qOZ!wO_(zO`({Oa(|Ob(}Oc)POd)QOp!}O$i!xOh^il^it^iw^i$m^ix^i~Og^i~P!)SOg)RO~P!)SOZ!wO_(zO`({Oa(|Ob(}Oc)POd)QOg)ROh)SOp!}O$i!xOlvitviwvi$mvi~Ox)WO~P!*cOt!Qi$m!Qi~PHrO!Z(nO~Os(pO~Ot'xO!Z$ry~Os(rOt%rO~O!Z(sO~Oouitui~P&xOo!{it!{i~P&xOs(vOt%rO~OZ!wO_(zO`({Oa(|Ob(}Oc)POd)QOg)ROh)SOp!}O$i!xO~Olvytvywvy$mvyxvy~P!-SOt$[q!Z$[q~P&xOt$]q!Z$]q~P&xOt$]y!Z$]y~P&xOm(VO~OekOfkOj)yOpiO!RkO!SkO!TkO!UkO$gfO$ihO$njO~Oe^if^i$g^i~P>mOxvi~PBmOe^if^i$g^i~P!'qOxvi~P!*cO_)gO`)hOa)iOb)jOc)kOd)ZOeiafia$gia~P.vOZ!wO_)gO`)hOa)iOb)jOc)kOd)ZOp!}O$i!xOV^ie^if^ih^il^iw^i$g^it^i$h^io^i!P^i!Z^i#t^i#v^i#z^i#|^i#}^ix^i!f^i~Og^i~P!1_Og)lO~P!1_OZ!wO_)gO`)hOa)iOb)jOc)kOd)ZOg)lOh)mOp!}O$i!xOVvievifvilviwvi$gvitvi$hviovi!Pvi!Zvi#tvi#vvi#zvi#|vi#}vi!fvi~Ox)sO~P!3gO_)gO`)hOa)iOb)jOc)kOd)ZOg)lOh)mOevyfvy$gvy~PLsOxvi~P!3gOZ!wO_)zO`){Oa)|Ob)}Oc*OOd)bOg*POh*QOp!}O$i!xOevifvilvitviwvi$gvi$mvi~Oxvi~P!6fO_)gO~P6}OZ!wO_)gO`)hOp!}O$i!xOV^ib^ic^id^ie^if^ig^ih^il^iw^i$g^it^i$h^io^i!P^i!Z^i#t^i#v^i#z^i#|^i#}^ix^i!f^i~Oa^i~P!8OOa)iO~P!8OOZ!wOp!}O$i!xOc^id^ie^if^ig^ih^il^iw^i$g^it^ix^i~O_)gO`)hOa)iOb)jOV^i$h^io^i!P^i!Z^i#t^i#v^i#z^i#|^i#}^i!f^i~P!:WO_)zO`){Oa)|Ob)}Oc*OOd)bOeiafia$gia~PNkOZ!wO_)zO`){Oa)|Ob)}Oc*OOd)bOp!}O$i!xOe^if^ih^il^it^iw^i$g^i$m^ix^i~Og^i~P!iO_)zO~P!#iO_)zO`){Oa^ib^i$m^i~P!:WO_)zO`){Oa)|Ob^i$m^i~P!:WO_)zO`){Oa)|Ob)}O$m^i~P!:WOfaZa~",goto:"Cy$sPPPPPP$tP$t%j'sPP's'sPPPPPPPPPP'sP'sPP)jPP)o+nPP+q'sPP's's's's's+tP+wPPPP+z,pPPP-fP-jP-vP+z.UP.zP/zP+z0YP1O1RP+z1UPPP1zP+z2QP2v2|3P3SP+z3YP4OP+z4UP4zP+z5QP5vP+z5|P6rP6xP+z7WP7|P+z8SP8xP$t$t$tPPPP9O$tPPPPPP$tP9U:j;f;m;w;}YPPPCcCjCmPPCp$tCsCv!gbOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%k$dkRhijl!e!f!p!q!r!s!x!y!z!{!|#R#S#T#U#V#e$O%P%U%V%t&U&V&X&d&g&x&}'T'W'h(Q(`(p(r(v(y(z({(|(})P)Q)R)S)T)W)Z)[)b)c)f)g)h)i)j)k)l)m)n)s)y)z){)|)}*O*P*Q*R*S*T*UQ$_!kQ$v!}Q&P$`S&f${(XS']&]'|R'b&b$ikRhijl!e!f!p!q!r!s!x!y!z!{!|!}#R#S#T#U#V#e$O%P%U%V%t&U&V&X&b&d&g&x&}'T'W'h(Q(`(p(r(v(y(z({(|(})P)Q)R)S)T)W)Z)[)b)c)f)g)h)i)j)k)l)m)n)s)y)z){)|)}*O*P*Q*R*S*T*UV$b!l#O)O$d#Pg#W#Y#[#_$U$W$i$j$k$l$p$q$r$s$t$u$z${$|$}%O%]%l&h&k&l&y'U'V'X'a'e'f'g'i'm'r'w(R(S(T(U(W(X(Y(Z([(](m(o(t(u(w(x)U)V)X)Y)])^)_)`)a)d)e)o)p)q)r)t)u)v)w)x*V*W*X*YQ&O$_S&Q$a(VR'S&PR$w!}R'c&bR#]jR&m%V!g_OSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%k!gSOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kTnSoQqSQtTQ#boR#kuQpSS#aoqS%Z#b#cR&o%[!gTOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ$Y!gQ$[!iQ$]!jQ$d!mQ$f!nQ$g!oQ%e#qQ%z$^Q&v%rQ'Y&[S'[&]'|Q'n'OQ(b'tQ(f'xR(h'{QsTS#htuS%`#i#kR&q%a!gUOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kRyUR#ny!gVOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQzVR#p{!gWOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ$`!kR%y$]R%{$^R'o'OQ}WR#r!O!gXOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ!QXR#t!R!gYOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ!TYR#v!U!gZOSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ!WZR#x!X!g[OSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ![[R#}!]Q!Z[S#z![!]S%j#{#}R&t%k!g]OSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ!_]R$Q!`!g^OSTVWXYZ[]^doqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kQ!b^R$S!cQ'^&]R(i'|QdOQuTQ{VQ!OWQ!RXQ!UYQ!XZQ!][Q!`]Q!c^p!vdu{!O!R!U!X!]!`!c#c#i#{%[%a%kQ#cqQ#itQ#{![Q%[#bQ%a#kR%k#}SQOdSeQm!cmSTVWXYZ[]^oqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kS&c$u$wR'd&cQ%Q#WQ%S#YT&i%Q%SQ%W#]R&n%WQoSR#`oQ%s$YQ&S$dQ&W$gW&w%s&S&W(qR(q(fQxUR#mxS'P%z%{R'p'PQ'u'VR(c'uQ'y'XQ(e'wT(g'y(eQ'}'^R(j'}Q!uaR$m!u!bcOTVWXYZ[]^dqtu{!O!R!U!X![!]!`!c#b#c#i#k#{#}%[%a%kTnSoQgRQ#WhQ#YiQ#[jQ#_lQ$U!eQ$W!fQ$i!pQ$j!qQ$k!rQ$l!sQ$p!xS$q!y)gQ$r!zQ$s!{Q$t!|Q$u!}Q$z#RQ${#SQ$|#TQ$}#UQ%O#VQ%]#eQ%l$OQ&h%PQ&k%UQ&l%VQ&y%tQ'U&UQ'V&VQ'X&XQ'a&bQ'e&dQ'f&gQ'g(yQ'i&xQ'm&}Q'r'TQ'w'WS(R(z)zQ(S({Q(T(|Q(U(}Q(W)PQ(X)QQ(Y)RQ(Z)SQ([)TQ(]'hQ(m(QQ(o(`Q(t)WQ(u(pQ(w(rQ(x(vQ)U)ZQ)V)[Q)X)bQ)Y)cQ)])fQ)^)lQ)_)mQ)`)nQ)a)sQ)d*TQ)e*UQ)o)hQ)p)iQ)q)jQ)r)kQ)t)yQ)u*PQ)v*QQ)w*RQ)x*SQ*V){Q*W)|Q*X)}R*Y*OQ$c!lT$y#O)OR$x!}R#XhR#^jR%|$^R$h!o",nodeNames:"\u26A0 {{ {# {% {% Template Text }} Interpolation VariableName MemberExpression . PropertyName SubscriptExpression BinaryExpression ConcatOp ArithOp ArithOp CompareOp in is StringLiteral NumberLiteral and or NotExpression not FilterExpression FilterOp FilterName FilterCall ) ( ArgumentList NamedArgument AssignOp , NamedArgument ConditionalExpression if else CallExpression ArrayExpression TupleExpression ParenthesizedExpression DictExpression Entry : Entry BooleanLiteral self super loop IfStatement Tag TagName if %} Tag elif Tag else EndTag endif ForStatement Tag for Definition recursive EndTag endfor RawStatement Tag raw RawText EndTag endraw BlockStatement Tag block scoped required EndTag endblock MacroStatement Tag macro ParamList OptionalParameter OptionalParameter EndTag endmacro CallStatement Tag call EndTag endcall FilterStatement Tag filter EndTag endfilter SetStatement Tag set EndTag endset TransStatement Tag trans Tag pluralize EndTag endtrans WithStatement Tag with EndTag endwith AutoescapeStatement Tag autoescape EndTag endautoescape Tag Tag Tag import as from import ImportItem Tag include ignore missing with without context Comment #}",maxTerm:173,nodeProps:[["closedBy",1,"}}",2,"#}",-2,3,4,"%}",32,")"],["openedBy",7,"{{",31,"(",57,"{%",140,"{#"],["group",-18,9,10,13,14,21,22,25,27,38,41,42,43,44,45,49,50,51,52,"Expression",-11,53,64,71,77,84,92,97,102,107,114,119,"Statement"]],skippedNodes:[0],repeatNodeCount:13,tokenData:".|~RqXY#YYZ#Y]^#Ypq#Yqr#krs#vuv&nwx&{xy)nyz)sz{)x{|*V|}+|}!O,R!O!P,g!P!Q,o!Q![+h![!],w!^!_,|!_!`-U!`!a,|!c!}-^!}#O.U#P#Q.Z#R#S-^#T#o-^#o#p.`#p#q.e#q#r.j#r#s.w%W;'S-^;'S;:j.O<%lO-^~#_S$d~XY#YYZ#Y]^#Ypq#Y~#nP!_!`#q~#vOb~~#yWOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~$hOe~~$kYOY#vYZ#vZr#vrs%Zs#O#v#O#P$h#P;'S#v;'S;=`&O;=`<%l#v<%lO#v~%`We~OY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x<%lO#v~%{P;=`<%l#v~&RXOY#vZr#vrs$cs#O#v#O#P$h#P;'S#v;'S;=`%x;=`<%l#v<%lO#v~&sP`~#q#r&v~&{O!Z~~'OWOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~'kYOY&{YZ&{Zw&{wx(Zx#O&{#O#P'h#P;'S&{;'S;=`)O;=`<%l&{<%lO&{~(`We~OY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x<%lO&{~({P;=`<%l&{~)RXOY&{Zw&{wx$cx#O&{#O#P'h#P;'S&{;'S;=`(x;=`<%l&{<%lO&{~)sOp~~)xOo~~)}P`~z{*Q~*VO`~~*[Qa~!O!P*b!Q![+h~*eP!Q![*h~*mSf~!Q![*h!g!h*y#R#S*h#X#Y*y~*|R{|+V}!O+V!Q![+]~+YP!Q![+]~+bQf~!Q![+]#R#S+]~+mTf~!O!P*b!Q![+h!g!h*y#R#S+h#X#Y*y~,ROt~~,WRa~uv,a!O!P*b!Q![+h~,dP#q#r&v~,lPZ~!Q![*h~,tP`~!P!Q*Q~,|O!P~~-RPb~!_!`#q~-ZPs~!_!`#q!`-iVm`[p!XS$gY!Q![-^!c!}-^#R#S-^#T#o-^%W;'S-^;'S;:j.O<%lO-^!`.RP;=`<%l-^~.ZO$i~~.`O$h~~.eO$n~~.jOl~^.oP$m[#q#r.rQ.wOVQ~.|O_~",tokenizers:[V,F,1,2,3,4,5,new G("b~RPstU~XP#q#r[~aO$Q~~",17,173)],topRules:{Template:[0,5]},specialized:[{term:161,get:O=>N[O]||-1},{term:55,get:O=>D[O]||-1}],tokenPrec:3602});function S(O,e){return O.split(" ").map(t=>({label:t,type:e}))}var A=S("abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr","function"),I=S("boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace","function"),L=S("loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller","keyword"),s=I.concat(L),p=S("raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends","keyword");function H(O){var P;let{state:e,pos:t}=O,i=u(e).resolveInner(t,-1).enterUnfinishedNodesBefore(t),a=((P=i.childBefore(t))==null?void 0:P.name)||i.name;if(i.name=="FilterName")return{type:"filter",node:i};if(O.explicit&&(a=="FilterOp"||a=="filter"))return{type:"filter"};if(i.name=="TagName")return{type:"tag",node:i};if(O.explicit&&a=="{%")return{type:"tag"};if(i.name=="PropertyName"&&i.parent.name=="MemberExpression")return{type:"prop",node:i,target:i.parent};if(i.name=="."&&i.parent.name=="MemberExpression")return{type:"prop",target:i.parent};if(i.name=="MemberExpression"&&a==".")return{type:"prop",target:i};if(i.name=="VariableName")return{type:"expr",from:i.from};if(i.name=="Comment"||i.name=="StringLiteral"||i.name=="NumberLiteral")return null;let Q=O.matchBefore(/[\w\u00c0-\uffff]+$/);return Q?{type:"expr",from:Q.from}:O.explicit?{type:"expr"}:null}function B(O,e,t,i){let a=[];for(;;){let Q=e.getChild("Expression");if(!Q)return[];if(Q.name=="VariableName"){a.unshift(O.sliceDoc(Q.from,Q.to));break}else if(Q.name=="MemberExpression"){let P=Q.getChild("PropertyName");P&&a.unshift(O.sliceDoc(P.from,P.to)),e=Q}else return[]}return i(a,O,t)}function f(O={}){let e=O.tags?O.tags.concat(p):p,t=O.variables?O.variables.concat(s):s,{properties:i}=O;return a=>{let Q=H(a);if(!Q)return null;let P=Q.from??(Q.node?Q.node.from:a.pos),n;return n=Q.type=="filter"?A:Q.type=="tag"?e:Q.type=="expr"?t:i?B(a.state,Q.target,a,i):[],n.length?{options:n,from:P,validFor:/^[\w\u00c0-\uffff]*$/}:null}}var c=Z.inputHandler.of((O,e,t,i)=>i!="%"||e!=t||O.state.doc.sliceString(e-1,t+1)!="{}"?!1:(O.dispatch(O.state.changeByRange(a=>({changes:{from:a.from,to:a.to,insert:"%%"},range:T.cursor(a.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function v(O){return e=>{let t=O.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)}}var J=k.define({name:"jinja",parser:C.configure({props:[R({"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape":r.keyword,"required scoped recursive with without context ignore missing":r.modifier,self:r.self,"loop super":r.standard(r.variableName),"if elif else endif for endfor call endcall":r.controlKeyword,"block endblock set endset macro endmacro import from include":r.definitionKeyword,"Comment/...":r.blockComment,VariableName:r.variableName,Definition:r.definition(r.variableName),PropertyName:r.propertyName,FilterName:r.special(r.variableName),ArithOp:r.arithmeticOperator,AssignOp:r.definitionOperator,"not and or":r.logicOperator,CompareOp:r.compareOperator,"in is":r.operatorKeyword,"FilterOp ConcatOp":r.operator,StringLiteral:r.string,NumberLiteral:r.number,BooleanLiteral:r.bool,"{% %} {# #} {{ }} { }":r.brace,"( )":r.paren,".":r.derefOperator,": , .":r.punctuation}),x.add({Tag:X({closing:"%}"}),"IfStatement ForStatement":v(/^\s*(\{%-?\s*)?(endif|endfor|else|elif)\b/),Statement:v(/^\s*(\{%-?\s*)?end\w/)}),m.add({"Statement Comment"(O){let e=O.firstChild,t=O.lastChild;return!e||e.name!="Tag"&&e.name!="{#"?null:{from:e.to,to:t.name=="EndTag"||t.name=="#}"?t.from:O.to}}})]}),languageData:{indentOnInput:/^\s*{%-?\s*(?:end|elif|else)$/}}),$=y();function d(O){return J.configure({wrap:b(e=>e.type.isTop?{parser:O.parser,overlay:t=>t.name=="Text"||t.name=="RawText"}:null)},"jinja")}var g=d($.language);function K(O={}){let e=O.base||$,t=e.language==$.language?g:d(e.language);return new w(t,[e.support,t.data.of({autocomplete:f(O)}),e.language.data.of({closeBrackets:{brackets:["{"]}}),c])}export{g as i,K as n,f as r,c as t}; diff --git a/docs/assets/dist-BsIAU6bk.js b/docs/assets/dist-BsIAU6bk.js new file mode 100644 index 0000000..186329f --- /dev/null +++ b/docs/assets/dist-BsIAU6bk.js @@ -0,0 +1 @@ +import{D as E,J as P,N as B,T as L,n as R,nt as j,q as T,r as D,s as Y,t as N,u as d,y as q}from"./dist-CAcX026F.js";var i=63,W=64,F=1,A=2,U=3,H=4,Z=5,I=6,M=7,y=65,K=66,J=8,OO=9,nO=10,eO=11,tO=12,z=13,aO=19,PO=20,QO=29,rO=33,oO=34,sO=47,cO=0,S=1,k=2,X=3,b=4,s=class{constructor(O,n,e){this.parent=O,this.depth=n,this.type=e,this.hash=(O?O.hash+O.hash<<8:0)+n+(n<<4)+e}};s.top=new s(null,-1,cO);function f(O,n){for(let e=0,t=n-O.pos-1;;t--,e++){let Q=O.peek(t);if(r(Q)||Q==-1)return e}}function x(O){return O==32||O==9}function r(O){return O==10||O==13}function V(O){return x(O)||r(O)}function c(O){return O<0||V(O)}var iO=new N({start:s.top,reduce(O,n){return O.type==X&&(n==PO||n==oO)?O.parent:O},shift(O,n,e,t){if(n==U)return new s(O,f(t,t.pos),S);if(n==y||n==Z)return new s(O,f(t,t.pos),k);if(n==i)return O.parent;if(n==aO||n==rO)return new s(O,0,X);if(n==z&&O.type==b)return O.parent;if(n==sO){let Q=/[1-9]/.exec(t.read(t.pos,e.pos));if(Q)return new s(O,O.depth+ +Q[0],b)}return O},hash(O){return O.hash}});function p(O,n,e=0){return O.peek(e)==n&&O.peek(e+1)==n&&O.peek(e+2)==n&&c(O.peek(e+3))}var pO=new R((O,n)=>{if(O.next==-1&&n.canShift(W))return O.acceptToken(W);let e=O.peek(-1);if((r(e)||e<0)&&n.context.type!=X){if(p(O,45))if(n.canShift(i))O.acceptToken(i);else return O.acceptToken(F,3);if(p(O,46))if(n.canShift(i))O.acceptToken(i);else return O.acceptToken(A,3);let t=0;for(;O.next==32;)t++,O.advance();(t{if(n.context.type==X){O.next==63&&(O.advance(),c(O.next)&&O.acceptToken(M));return}if(O.next==45)O.advance(),c(O.next)&&O.acceptToken(n.context.type==S&&n.context.depth==f(O,O.pos-1)?H:U);else if(O.next==63)O.advance(),c(O.next)&&O.acceptToken(n.context.type==k&&n.context.depth==f(O,O.pos-1)?I:Z);else{let e=O.pos;for(;;)if(x(O.next)){if(O.pos==e)return;O.advance()}else if(O.next==33)_(O);else if(O.next==38)m(O);else if(O.next==42){m(O);break}else if(O.next==39||O.next==34){if($(O,!0))break;return}else if(O.next==91||O.next==123){if(!lO(O))return;break}else{w(O,!0,!1,0);break}for(;x(O.next);)O.advance();if(O.next==58){if(O.pos==e&&n.canShift(QO))return;c(O.peek(1))&&O.acceptTokenTo(n.context.type==k&&n.context.depth==f(O,e)?K:y,e)}}},{contextual:!0});function fO(O){return O>32&&O<127&&O!=34&&O!=37&&O!=44&&O!=60&&O!=62&&O!=92&&O!=94&&O!=96&&O!=123&&O!=124&&O!=125}function C(O){return O>=48&&O<=57||O>=97&&O<=102||O>=65&&O<=70}function G(O,n){return O.next==37?(O.advance(),C(O.next)&&O.advance(),C(O.next)&&O.advance(),!0):fO(O.next)||n&&O.next==44?(O.advance(),!0):!1}function _(O){if(O.advance(),O.next==60){for(O.advance();;)if(!G(O,!0)){O.next==62&&O.advance();break}}else for(;G(O,!1););}function m(O){for(O.advance();!c(O.next)&&u(O.tag)!="f";)O.advance()}function $(O,n){let e=O.next,t=!1,Q=O.pos;for(O.advance();;){let a=O.next;if(a<0)break;if(O.advance(),a==e)if(a==39)if(O.next==39)O.advance();else break;else break;else if(a==92&&e==34)O.next>=0&&O.advance();else if(r(a)){if(n)return!1;t=!0}else if(n&&O.pos>=Q+1024)return!1}return!t}function lO(O){for(let n=[],e=O.pos+1024;;)if(O.next==91||O.next==123)n.push(O.next),O.advance();else if(O.next==39||O.next==34){if(!$(O,!0))return!1}else if(O.next==93||O.next==125){if(n[n.length-1]!=O.next-2)return!1;if(n.pop(),O.advance(),!n.length)return!0}else{if(O.next<0||O.pos>e||r(O.next))return!1;O.advance()}}var RO="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function u(O){return O<33?"u":O>125?"s":RO[O-33]}function g(O,n){let e=u(O);return e!="u"&&!(n&&e=="f")}function w(O,n,e,t){if(u(O.next)=="s"||(O.next==63||O.next==58||O.next==45)&&g(O.peek(1),e))O.advance();else return!1;let Q=O.pos;for(;;){let a=O.next,o=0,l=t+1;for(;V(a);){if(r(a)){if(n)return!1;l=0}else l++;a=O.peek(++o)}if(!(a>=0&&(a==58?g(O.peek(o+1),e):a==35?O.peek(o-1)!=32:g(a,e)))||!e&&l<=t||l==0&&!e&&(p(O,45,o)||p(O,46,o)))break;if(n&&u(a)=="f")return!1;for(let v=o;v>=0;v--)O.advance();if(n&&O.pos>Q+1024)return!1}return!0}var uO=new R((O,n)=>{if(O.next==33)_(O),O.acceptToken(tO);else if(O.next==38||O.next==42){let e=O.next==38?nO:eO;m(O),O.acceptToken(e)}else O.next==39||O.next==34?($(O,!1),O.acceptToken(OO)):w(O,!1,n.context.type==X,n.context.depth)&&O.acceptToken(J)}),dO=new R((O,n)=>{let e=n.context.type==b?n.context.depth:-1,t=O.pos;O:for(;;){let Q=0,a=O.next;for(;a==32;)a=O.peek(++Q);if(!Q&&(p(O,45,Q)||p(O,46,Q))||!r(a)&&(e<0&&(e=Math.max(n.context.depth+1,Q)),QYAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"\u26A0 DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:iO,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[SO],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[pO,XO,uO,dO,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),bO=D.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"\u26A0 Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),h=Y.define({name:"yaml",parser:kO.configure({props:[B.add({Stream:O=>{for(let n=O.node.resolve(O.pos,-1);n&&n.to>=O.pos;n=n.parent){if(n.name=="BlockLiteralContent"&&n.fromO.pos)return null}}return null},FlowMapping:q({closing:"}"}),FlowSequence:q({closing:"]"})}),E.add({"FlowMapping FlowSequence":L,"Item Pair BlockLiteral":(O,n)=>({from:n.doc.lineAt(O.from).to,to:O.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function xO(){return new d(h)}var mO=Y.define({name:"yaml-frontmatter",parser:bO.configure({props:[T({DashLine:P.meta})]})});function $O(O){let{language:n,support:e}=O.content instanceof d?O.content:{language:O.content,support:[]};return new d(mO.configure({wrap:j(t=>t.name=="FrontmatterContent"?{parser:h.parser}:t.name=="Body"?{parser:n.parser}:null)}),e)}export{$O as n,h as r,xO as t}; diff --git a/docs/assets/dist-BtxvfUI7.js b/docs/assets/dist-BtxvfUI7.js new file mode 100644 index 0000000..9ea6e58 --- /dev/null +++ b/docs/assets/dist-BtxvfUI7.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{n as a,t as o}from"./dist-CebZ69Am.js";export{o as java,a as javaLanguage}; diff --git a/docs/assets/dist-Bug4O2lR.js b/docs/assets/dist-Bug4O2lR.js new file mode 100644 index 0000000..94e8977 --- /dev/null +++ b/docs/assets/dist-Bug4O2lR.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{n as s,r as a,t as n}from"./dist-gkLBSkCp.js";export{n as json,s as jsonLanguage,a as jsonParseLinter}; diff --git a/docs/assets/dist-BuhT82Xx.js b/docs/assets/dist-BuhT82Xx.js new file mode 100644 index 0000000..c54ec13 --- /dev/null +++ b/docs/assets/dist-BuhT82Xx.js @@ -0,0 +1,2 @@ +import{D as re,H as ae,J as i,N as ne,g as ie,n as se,q as oe,r as le,s as ce,u as de}from"./dist-CAcX026F.js";import{s as ue,u as me}from"./dist-DKNOF5xd.js";var pe=36,B=1,_e=2,b=3,q=4,fe=5,ge=6,he=7,be=8,ye=9,ve=10,xe=11,ke=12,Oe=13,we=14,Qe=15,qe=16,Ce=17,I=18,Pe=19,R=20,Z=21,D=22,Se=23,Te=24;function C(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function ze(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function _(t,e,r){for(let a=!1;;){if(t.next<0)return;if(t.next==e&&!a){t.advance();return}a=r&&!a&&t.next==92,t.advance()}}function je(t,e){e:for(;;){if(t.next<0)return;if(t.next==36){t.advance();for(let r=0;r)".charCodeAt(r);for(;;){if(t.next<0)return;if(t.next==a&&t.peek(1)==39){t.advance(2);return}t.advance()}}function P(t,e){for(;!(t.next!=95&&!C(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function Xe(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),_(t,e,!1)}else P(t)}function N(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function V(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function $(t){for(;!(t.next<0||t.next==10);)t.advance()}function f(t,e){for(let r=0;r!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:A(h,g)};function Be(t,e,r,a){let n={};for(let l in T)n[l]=(t.hasOwnProperty(l)?t:T)[l];return e&&(n.words=A(e,r||"",a)),n}function E(t){return new se(e=>{let{next:r}=e;if(e.advance(),f(r,S)){for(;f(e.next,S);)e.advance();e.acceptToken(pe)}else if(r==36&&t.doubleDollarQuotedStrings){let a=P(e,"");e.next==36&&(e.advance(),je(e,a),e.acceptToken(b))}else if(r==39||r==34&&t.doubleQuotedStrings)_(e,r,t.backslashEscapes),e.acceptToken(b);else if(r==35&&t.hashComments||r==47&&e.next==47&&t.slashComments)$(e),e.acceptToken(B);else if(r==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))$(e),e.acceptToken(B);else if(r==47&&e.next==42){e.advance();for(let a=1;;){let n=e.next;if(e.next<0)break;if(e.advance(),n==42&&e.next==47){if(a--,e.advance(),!a)break}else n==47&&e.next==42&&(a++,e.advance())}e.acceptToken(_e)}else if((r==101||r==69)&&e.next==39)e.advance(),_(e,39,!0),e.acceptToken(b);else if((r==110||r==78)&&e.next==39&&t.charSetCasts)e.advance(),_(e,39,t.backslashEscapes),e.acceptToken(b);else if(r==95&&t.charSetCasts)for(let a=0;;a++){if(e.next==39&&a>1){e.advance(),_(e,39,t.backslashEscapes),e.acceptToken(b);break}if(!C(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(r==113||r==81)&&e.next==39&&e.peek(1)>0&&!f(e.peek(1),S)){let a=e.peek(1);e.advance(2),Ue(e,a),e.acceptToken(b)}else if(f(r,t.identifierQuotes))_(e,r==91?93:r,!1),e.acceptToken(Pe);else if(r==40)e.acceptToken(he);else if(r==41)e.acceptToken(be);else if(r==123)e.acceptToken(ye);else if(r==125)e.acceptToken(ve);else if(r==91)e.acceptToken(xe);else if(r==93)e.acceptToken(ke);else if(r==59)e.acceptToken(Oe);else if(t.unquotedBitLiterals&&r==48&&e.next==98)e.advance(),N(e),e.acceptToken(D);else if((r==98||r==66)&&(e.next==39||e.next==34)){let a=e.next;e.advance(),t.treatBitsAsBytes?(_(e,a,t.backslashEscapes),e.acceptToken(Se)):(N(e,a),e.acceptToken(D))}else if(r==48&&(e.next==120||e.next==88)||(r==120||r==88)&&e.next==39){let a=e.next==39;for(e.advance();ze(e.next);)e.advance();a&&e.next==39&&e.advance(),e.acceptToken(q)}else if(r==46&&e.next>=48&&e.next<=57)V(e,!0),e.acceptToken(q);else if(r==46)e.acceptToken(we);else if(r>=48&&r<=57)V(e,!1),e.acceptToken(q);else if(f(r,t.operatorChars)){for(;f(e.next,t.operatorChars);)e.advance();e.acceptToken(Qe)}else if(f(r,t.specialVar))e.next==r&&e.advance(),Xe(e),e.acceptToken(Ce);else if(r==58||r==44)e.acceptToken(qe);else if(C(r)){let a=P(e,String.fromCharCode(r));e.acceptToken(e.next==46||e.peek(-a.length-1)==46?I:t.words[a.toLowerCase()]??I)}})}var L=E(T),Ie=le.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"\u26A0 LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,L],topRules:{Script:[0,25]},tokenPrec:0});function z(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function x(t,e){let r=t.sliceString(e.from,e.to),a=/^([`'"\[])(.*)([`'"\]])$/.exec(r);return a?a[2]:r}function w(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function Re(t,e){if(e.name=="CompositeIdentifier"){let r=[];for(let a=e.firstChild;a;a=a.nextSibling)w(a)&&r.push(x(t,a));return r}return[x(t,e)]}function W(t,e){for(let r=[];;){if(!e||e.name!=".")return r;let a=z(e);if(!w(a))return r;r.unshift(x(t,a)),e=z(a)}}function Ze(t,e){let r=ae(t).resolveInner(e,-1),a=Ne(t.doc,r);return r.name=="Identifier"||r.name=="QuotedIdentifier"||r.name=="Keyword"?{from:r.from,quoted:r.name=="QuotedIdentifier"?t.doc.sliceString(r.from,r.from+1):null,parents:W(t.doc,z(r)),aliases:a}:r.name=="."?{from:e,quoted:null,parents:W(t.doc,r),aliases:a}:{from:e,quoted:null,parents:[],empty:!0,aliases:a}}var De=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function Ne(t,e){let r;for(let n=e;!r;n=n.parent){if(!n)return null;n.name=="Statement"&&(r=n)}let a=null;for(let n=r.firstChild,l=!1,s=null;n;n=n.nextSibling){let o=n.name=="Keyword"?t.sliceString(n.from,n.to).toLowerCase():null,u=null;if(!l)l=o=="from";else if(o=="as"&&s&&w(n.nextSibling))u=x(t,n.nextSibling);else{if(o&&De.has(o))break;s&&w(n)&&(u=x(t,n))}u&&(a||(a=Object.create(null)),a[u]=Re(t,s)),s=/Identifier$/.test(n.name)?n:null}return a}function Ve(t,e,r){return r.map(a=>({...a,label:a.label[0]==t?a.label:t+a.label+e,apply:void 0}))}var $e=/^\w*$/,Ae=/^[`'"\[]?\w*[`'"\]]?$/;function G(t){return t.self&&typeof t.self.label=="string"}var Ee=class ee{constructor(e,r){this.idQuote=e,this.idCaseInsensitive=r,this.list=[],this.children=void 0}child(e){let r=this.children||(this.children=Object.create(null));return r[e]||(e&&!this.list.some(a=>a.label==e)&&this.list.push(Y(e,"type",this.idQuote,this.idCaseInsensitive)),r[e]=new ee(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let r=this.list.findIndex(a=>a.label==e.label);r>-1?this.list[r]=e:this.list.push(e)}addCompletions(e){for(let r of e)this.addCompletion(typeof r=="string"?Y(r,"property",this.idQuote,this.idCaseInsensitive):r)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):G(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let r of Object.keys(e)){let a=e[r],n=null,l=r.replace(/\\?\./g,o=>o=="."?"\0":o).split("\0"),s=this;G(a)&&(n=a.self,a=a.children);for(let o=0;o{let{parents:y,from:U,quoted:X,empty:te,aliases:k}=Ze(m.state,m.pos);if(te&&!m.explicit)return null;k&&y.length==1&&(y=k[y[0]]||y);let c=s;for(let p of y){for(;!c.children||!c.children[p];)if(c==s&&o)c=o;else if(c==o&&a)c=c.child(a);else return null;let v=c.maybeChild(p);if(!v)return null;c=v}let O=c.list;if(c==s&&k&&(O=O.concat(Object.keys(k).map(p=>({label:p,type:"constant"})))),X){let p=X[0],v=K(p);return{from:U,to:m.state.sliceDoc(m.pos,m.pos+1)==v?m.pos+1:void 0,options:Ve(p,v,O),validFor:Ae}}else return{from:U,options:O,validFor:$e}}}function We(t){return t==Z?"type":t==R?"keyword":"variable"}function Ge(t,e,r){return me(["QuotedIdentifier","String","LineComment","BlockComment","."],ue(Object.keys(t).map(a=>r(e?a.toUpperCase():a,We(t[a])))))}var Ye=Ie.configure({props:[ne.add({Statement:ie()}),re.add({Statement(t,e){return{from:Math.min(t.from+100,e.doc.lineAt(t.from).to),to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),oe({Keyword:i.keyword,Type:i.typeName,Builtin:i.standard(i.name),Bits:i.number,Bytes:i.string,Bool:i.bool,Null:i.null,Number:i.number,String:i.string,Identifier:i.name,QuotedIdentifier:i.special(i.string),SpecialVar:i.special(i.name),LineComment:i.lineComment,BlockComment:i.blockComment,Operator:i.operator,"Semi Punctuation":i.punctuation,"( )":i.paren,"{ }":i.brace,"[ ]":i.squareBracket})]}),d=class j{constructor(e,r,a){this.dialect=e,this.language=r,this.spec=a}get extension(){return this.language.extension}configureLanguage(e,r){return new j(this.dialect,this.language.configure(e,r),this.spec)}static define(e){let r=Be(e,e.keywords,e.types,e.builtin);return new j(r,ce.define({name:"sql",parser:Ye.configure({tokenizers:[{from:L,to:E(r)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}),e)}};function Ke(t,e){return{label:t,type:e,boost:-1}}function M(t,e=!1,r){return Ge(t.dialect.words,e,r||Ke)}function F(t){return t.schema?Le(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||Q):()=>null}function Me(t){return t.schema?(t.dialect||Q).language.data.of({autocomplete:F(t)}):[]}function Fe(t={}){let e=t.dialect||Q;return new de(e.language,[Me(t),e.language.data.of({autocomplete:M(e,t.upperCaseKeywords,t.keywordCompletion)})])}var Q=d.define({}),He=d.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:h+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:g+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),H=g+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",J="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",Je=d.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:h+"group_concat accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",types:H,builtin:J}),et=d.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:h+"always generated groupby_concat hard persistent shutdown soft virtual accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",types:H,builtin:J}),tt=d.define({keywords:h+"add external procedure all fetch public alter file raiserror and fillfactor read any for readtext as foreign reconfigure asc freetext references authorization freetexttable replication backup from restore begin full restrict between function return break goto revert browse grant revoke bulk group right by having rollback cascade holdlock rowcount case identity rowguidcol check identity_insert rule checkpoint identitycol save close if schema clustered in securityaudit coalesce index select collate inner semantickeyphrasetable column insert semanticsimilaritydetailstable commit intersect semanticsimilaritytable compute into session_user constraint is set contains join setuser containstable key shutdown continue kill some convert left statistics create like system_user cross lineno table current load tablesample current_date merge textsize current_time national then current_timestamp nocheck to current_user nonclustered top cursor not tran database null transaction dbcc nullif trigger deallocate of truncate declare off try_convert default offsets tsequal delete on union deny open unique desc opendatasource unpivot disk openquery update distinct openrowset updatetext distributed openxml use double option user drop or values dump order varying else outer view end over waitfor errlvl percent when escape pivot where except plan while exec precision with execute primary within group exists print writetext exit proc noexpand index forceseek forcescan holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot spatial_window_max_cells tablock tablockx updlock xlock keepidentity keepdefaults ignore_constraints ignore_triggers",types:g+"smalldatetime datetimeoffset datetime2 datetime bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"approx_count_distinct approx_percentile_cont approx_percentile_disc avg checksum_agg count count_big grouping grouping_id max min product stdev stdevp sum var varp ai_generate_embeddings ai_generate_chunks cume_dist first_value lag last_value lead percentile_cont percentile_disc percent_rank left_shift right_shift bit_count get_bit set_bit collationproperty tertiary_weights @@datefirst @@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 date_bucket dateadd datediff datediff_big datefromparts datename datepart datetime2fromparts datetimefromparts datetimeoffsetfromparts datetrunc day eomonth getdate getutcdate isdate month smalldatetimefromparts switchoffset sysdatetime sysdatetimeoffset sysutcdatetime timefromparts todatetimeoffset year edit_distance edit_distance_similarity jaro_winkler_distance jaro_winkler_similarity edge_id_from_parts graph_id_from_edge_id graph_id_from_node_id node_id_from_parts object_id_from_edge_id object_id_from_node_id json isjson json_array json_contains json_modify json_object json_path_exists json_query json_value regexp_like regexp_replace regexp_substr regexp_instr regexp_count regexp_matches regexp_split_to_table 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 certenclosed certprivatekey current_user database_principal_id has_dbaccess has_perms_by_name is_member is_rolemember is_srvrolemember loginproperty original_login permissions pwdencrypt pwdcompare session_user sessionproperty suser_id suser_name suser_sid suser_sname system_user user user_id user_name ascii char charindex concat concat_ws difference format left len lower ltrim nchar patindex quotename replace replicate reverse right rtrim soundex space str string_agg string_escape stuff substring translate trim unicode upper $partition @@error @@identity @@pack_received @@rowcount @@trancount binary_checksum checksum compress connectionproperty context_info current_request_id current_transaction_id decompress error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big session_context xact_state @@connections @@cpu_busy @@idle @@io_busy @@pack_sent @@packet_errors @@timeticks @@total_errors @@total_read @@total_write textptr textvalid columns_updated eventdata trigger_nestlevel vector_distance vectorproperty vector_search generate_series opendatasource openjson openquery openrowset openxml predict string_split coalesce nullif apply catch filter force include keep keepfixed modify optimize parameterization parameters partition recompile sequence set",operatorChars:"*+-%<>!=^&|/",specialVar:"@",identifierQuotes:'"['}),rt=d.define({keywords:h+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:g+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),at=d.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:g+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),nt=d.define({keywords:h+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:g+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0});export{nt as a,rt as c,F as d,Fe as f,Je as i,Q as l,tt as n,He as o,et as r,d as s,at as t,M as u}; diff --git a/docs/assets/dist-ByyW-iwc.js b/docs/assets/dist-ByyW-iwc.js new file mode 100644 index 0000000..ee8f622 --- /dev/null +++ b/docs/assets/dist-ByyW-iwc.js @@ -0,0 +1 @@ +import{D as i,J as O,N as $,T as y,g as X,n as S,q as P,r as m,s as n,u as c}from"./dist-CAcX026F.js";import{i as f}from"./dist-BVf1IY4_.js";var p=110,r=1,s=2,t=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function e(T){return T>=65&&T<=90||T>=97&&T<=122||T>=161}function W(T){return T>=48&&T<=57}var Z=new S((T,Q)=>{if(T.next==40){let a=T.peek(-1);(e(a)||W(a)||a==95||a==45)&&T.acceptToken(s,1)}}),w=new S(T=>{if(t.indexOf(T.peek(-1))>-1){let{next:Q}=T;(e(Q)||Q==95||Q==35||Q==46||Q==91||Q==58||Q==45)&&T.acceptToken(p)}}),h=new S(T=>{if(t.indexOf(T.peek(-1))<0){let{next:Q}=T;if(Q==37&&(T.advance(),T.acceptToken(r)),e(Q)){do T.advance();while(e(T.next));T.acceptToken(r)}}}),d=P({"import charset namespace keyframes media supports when":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName PropertyVariable":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,"AtKeyword Interpolation":O.special(O.variableName),Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,MatchOp:O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,"Comment LineComment":O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,Escape:O.special(O.string),": ...":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),z={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},u={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},U=m.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQWO'#EYOOQO'#Er'#ErOOQO'#FV'#FVOOQO'#Ec'#EcO){QWO'#EqO*WQWO'#EqQOQWOOOOQP'#Ch'#ChOOQP,59R,59RO$RQWO,59RO*bQWO'#EdO+PQWO,58|O+_QWO,59TO%kQWO,59uO%pQWO,59xO*bQWO,59{O*bQWO,59}OOQO'#De'#DeO*bQWO,5:OO,bQpO'#E}O,iQWO'#DkOOQO,58|,58|O(QQWO,58|O,pQWO,5:{OOQO,5:{,5:{OOQT'#Cl'#ClO-UQeO,59TO.cQ[O,59TOOQP'#D]'#D]OOQP,59u,59uOOQO'#D_'#D_O.hQpO,59xOOQO'#EZ'#EZO.pQ`O,5;oOOQO,5;o,5;oO/OQWO,5:WO/VQWO,5:WOOQS'#Dn'#DnO/rQWO'#DsO/yQ!fO'#FRO0eQWO'#DtOOQS'#FS'#FSO+YQWO,5:eO'bQWO'#DrOOQS'#Cu'#CuO(QQWO'#CwO0jQ!hO'#CyO2^Q!fO,5:gO2oQWO'#DWOOQS'#Ex'#ExO(QQWO'#DQOOQO'#EP'#EPO2tQWO,5:iO2yQWO,5:iOOQO'#ES'#ESO3RQWO,5:lO3WQ!fO,5:rO3iQ`O'#EkO.pQ`O,5;oOOQO,5:|,5:|O3zQWO,5:tOOQO,5:},5:}O4XQWO,5;]OOQO-E8a-E8aOOQP1G.m1G.mOOQP'#Ce'#CeO5RQaO,5;OOOQP'#Df'#DfOOQO-E8b-E8bOOQO1G.h1G.hO(QQWO1G.hO5fQWO1G.hO5nQeO1G.oO.cQ[O1G.oOOQP1G/a1G/aO6{QpO1G/dO7fQaO1G/gO8cQaO1G/iO9`QaO1G/jO:]Q!fO'#FOO:yQ!fO'#ExOOQO'#FO'#FOOOQO,5;i,5;iO<^QWO,5;iOWQWO1G/rO>]Q!fO'#DnO>qQWO,5:ZO>vQ!fO,5:_OOQO'#DP'#DPO'bQWO,5:]O?XQWO'#DwOOQS,5:b,5:bO?`QWO,5:dO'bQWO'#EiO?gQWO,5;mO*bQWO,5:`OOQO1G0P1G0PO?uQ!fO,5:^O@aQ!fO,59cOOQS,59e,59eO(QQWO,59iOOQS,59n,59nO@rQWO,59pOOQO1G0R1G0RO@yQ#tO,59rOARQ!fO,59lOOQO1G0T1G0TOBrQWO1G0TOBwQWO'#ETOOQO1G0W1G0WOOQO1G0^1G0^OOQO,5;V,5;VOOQO-E8i-E8iOCVQ!fO1G0bOCvQWO1G0`O%kQWO'#E_O$RQWO'#E`OEZQWO'#E^OOQO1G0b1G0bPEkQWO'#EcOUAN>UO!!RQWO,5;QOOQO-E8d-E8dO!!]QWOAN>dOOQS<S![;'S%T;'S;=`%f<%lO%Tm>ZY#m]|`Oy%Tz!Q%T!Q![>S![!g%T!g!h>y!h#X%T#X#Y>y#Y;'S%T;'S;=`%f<%lO%Tm?OY|`Oy%Tz{%T{|?n|}%T}!O?n!O!Q%T!Q![@V![;'S%T;'S;=`%f<%lO%Tm?sU|`Oy%Tz!Q%T!Q![@V![;'S%T;'S;=`%f<%lO%Tm@^U#m]|`Oy%Tz!Q%T!Q![@V![;'S%T;'S;=`%f<%lO%Tm@w[#m]|`Oy%Tz!O%T!O!P>S!P!Q%T!Q![@p![!g%T!g!h>y!h#X%T#X#Y>y#Y;'S%T;'S;=`%f<%lO%TbAtS#xQ|`Oy%Tz;'S%T;'S;=`%f<%lO%TkBVScZOy%Tz;'S%T;'S;=`%f<%lO%TmBhXrWOy%Tz}%T}!OCT!O!P=k!P!Q%T!Q![@p![;'S%T;'S;=`%f<%lO%TmCYW|`Oy%Tz!c%T!c!}Cr!}#T%T#T#oCr#o;'S%T;'S;=`%f<%lO%TmCy[f]|`Oy%Tz}%T}!OCr!O!Q%T!Q![Cr![!c%T!c!}Cr!}#T%T#T#oCr#o;'S%T;'S;=`%f<%lO%ToDtW#iROy%Tz!O%T!O!PE^!P!Q%T!Q![>S![;'S%T;'S;=`%f<%lO%TlEcU|`Oy%Tz!O%T!O!PEu!P;'S%T;'S;=`%f<%lO%TlE|S#s[|`Oy%Tz;'S%T;'S;=`%f<%lO%T~F_VrWOy%Tz{Ft{!P%T!P!QIl!Q;'S%T;'S;=`%f<%lO%T~FyU|`OyFtyzG]z{Hd{;'SFt;'S;=`If<%lOFt~G`TOzG]z{Go{;'SG];'S;=`H^<%lOG]~GrVOzG]z{Go{!PG]!P!QHX!Q;'SG];'S;=`H^<%lOG]~H^OR~~HaP;=`<%lG]~HiW|`OyFtyzG]z{Hd{!PFt!P!QIR!Q;'SFt;'S;=`If<%lOFt~IYS|`R~Oy%Tz;'S%T;'S;=`%f<%lO%T~IiP;=`<%lFt~IsV|`S~OYIlYZ%TZyIlyzJYz;'SIl;'S;=`Jq<%lOIl~J_SS~OYJYZ;'SJY;'S;=`Jk<%lOJY~JnP;=`<%lJY~JtP;=`<%lIlmJ|[#m]Oy%Tz!O%T!O!P>S!P!Q%T!Q![@p![!g%T!g!h>y!h#X%T#X#Y>y#Y;'S%T;'S;=`%f<%lO%TkKwU^ZOy%Tz![%T![!]LZ!];'S%T;'S;=`%f<%lO%TcLbS_R|`Oy%Tz;'S%T;'S;=`%f<%lO%TkLsS!ZZOy%Tz;'S%T;'S;=`%f<%lO%ThMUUrWOy%Tz!_%T!_!`Mh!`;'S%T;'S;=`%f<%lO%ThMoS|`rWOy%Tz;'S%T;'S;=`%f<%lO%TlNSW!SSrWOy%Tz!^%T!^!_Mh!_!`%T!`!aMh!a;'S%T;'S;=`%f<%lO%TjNsV!UQrWOy%Tz!_%T!_!`Mh!`!a! Y!a;'S%T;'S;=`%f<%lO%Tb! aS!UQ|`Oy%Tz;'S%T;'S;=`%f<%lO%To! rYg]Oy%Tz!b%T!b!c!!b!c!}!#R!}#T%T#T#o!#R#o#p!$O#p;'S%T;'S;=`%f<%lO%Tm!!iWg]|`Oy%Tz!c%T!c!}!#R!}#T%T#T#o!#R#o;'S%T;'S;=`%f<%lO%Tm!#Y[g]|`Oy%Tz}%T}!O!#R!O!Q%T!Q![!#R![!c%T!c!}!#R!}#T%T#T#o!#R#o;'S%T;'S;=`%f<%lO%To!$TW|`Oy%Tz!c%T!c!}!$m!}#T%T#T#o!$m#o;'S%T;'S;=`%f<%lO%To!$r^|`Oy%Tz}%T}!O!$m!O!Q%T!Q![!$m![!c%T!c!}!$m!}#T%T#T#o!$m#o#q%T#q#r!%n#r;'S%T;'S;=`%f<%lO%To!%uSp_|`Oy%Tz;'S%T;'S;=`%f<%lO%To!&W[#h_Oy%Tz}%T}!O!&|!O!Q%T!Q![!&|![!c%T!c!}!&|!}#T%T#T#o!&|#o;'S%T;'S;=`%f<%lO%To!'T[#h_|`Oy%Tz}%T}!O!&|!O!Q%T!Q![!&|![!c%T!c!}!&|!}#T%T#T#o!&|#o;'S%T;'S;=`%f<%lO%Tk!(OSyZOy%Tz;'S%T;'S;=`%f<%lO%Tm!(aSw]Oy%Tz;'S%T;'S;=`%f<%lO%Td!(pUOy%Tz!_%T!_!`6|!`;'S%T;'S;=`%f<%lO%Tk!)XS!^ZOy%Tz;'S%T;'S;=`%f<%lO%Tk!)jS!]ZOy%Tz;'S%T;'S;=`%f<%lO%To!){Y#oQOr%Trs!*ksw%Twx!.wxy%Tz!_%T!_!`6|!`;'S%T;'S;=`%f<%lO%Tm!*pZ|`OY!*kYZ%TZr!*krs!+csy!*kyz!+vz#O!*k#O#P!-j#P;'S!*k;'S;=`!.q<%lO!*km!+jSo]|`Oy%Tz;'S%T;'S;=`%f<%lO%T]!+yWOY!+vZr!+vrs!,cs#O!+v#O#P!,h#P;'S!+v;'S;=`!-d<%lO!+v]!,hOo]]!,kRO;'S!+v;'S;=`!,t;=`O!+v]!,wXOY!+vZr!+vrs!,cs#O!+v#O#P!,h#P;'S!+v;'S;=`!-d;=`<%l!+v<%lO!+v]!-gP;=`<%l!+vm!-oU|`Oy!*kyz!+vz;'S!*k;'S;=`!.R;=`<%l!+v<%lO!*km!.UXOY!+vZr!+vrs!,cs#O!+v#O#P!,h#P;'S!+v;'S;=`!-d;=`<%l!*k<%lO!+vm!.tP;=`<%l!*km!.|Z|`OY!.wYZ%TZw!.wwx!+cxy!.wyz!/oz#O!.w#O#P!1^#P;'S!.w;'S;=`!2e<%lO!.w]!/rWOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W<%lO!/o]!0_RO;'S!/o;'S;=`!0h;=`O!/o]!0kXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!/o<%lO!/o]!1ZP;=`<%l!/om!1cU|`Oy!.wyz!/oz;'S!.w;'S;=`!1u;=`<%l!/o<%lO!.wm!1xXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",tokenizers:[w,h,Z,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:T=>z[T]||-1},{term:23,get:T=>u[T]||-1}],tokenPrec:2180}),l=n.define({name:"less",parser:U.configure({props:[$.add({Declaration:X()}),i.add({Block:y})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),o=f(T=>T.name=="VariableName"||T.name=="AtKeyword");function g(){return new c(l,l.data.of({autocomplete:o}))}export{o as n,l as r,g as t}; diff --git a/docs/assets/dist-CAJqQUSI.js b/docs/assets/dist-CAJqQUSI.js new file mode 100644 index 0000000..6ce0900 --- /dev/null +++ b/docs/assets/dist-CAJqQUSI.js @@ -0,0 +1 @@ +import{D as f,J as e,N as Y,T as _,g as W,n as r,q as x,r as g,s as V,t as E,u as N}from"./dist-CAcX026F.js";import{i as C}from"./dist-BVf1IY4_.js";var h=168,P=169,I=170,D=1,F=2,w=3,K=171,L=172,z=4,T=173,A=5,B=174,Z=175,G=176,s=177,q=6,U=7,H=8,J=9,c=0,i=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],M=58,OO=40,m=95,$O=91,S=45,eO=46,p=35,QO=37,k=123,tO=125,l=47,d=42,n=10,j=61,aO=43,nO=38;function o(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function u(O){return O>=48&&O<=57}function y(O){let $;return O.next==l&&(($=O.peek(1))==l||$==d)}var RO=new r((O,$)=>{if($.dialectEnabled(c)){let Q;if(O.next<0&&$.canShift(G))O.acceptToken(G);else if(((Q=O.peek(-1))==n||Q<0)&&$.canShift(Z)){let t=0;for(;O.next!=n&&i.includes(O.next);)O.advance(),t++;O.next==n||y(O)?O.acceptToken(Z,-t):t&&O.acceptToken(s)}else if(O.next==n)O.acceptToken(B,1);else if(i.includes(O.next)){for(O.advance();O.next!=n&&i.includes(O.next);)O.advance();O.acceptToken(s)}}else{let Q=0;for(;i.includes(O.next);)O.advance(),Q++;Q&&O.acceptToken(s)}},{contextual:!0}),iO=new r((O,$)=>{if(y(O)){if(O.advance(),$.dialectEnabled(c)){let Q=-1;for(let t=1;;t++){let R=O.peek(-t-1);if(R==n||R<0){Q=t+1;break}else if(!i.includes(R))break}if(Q>-1){let t=O.next==d,R=0;for(O.advance();O.next>=0;)if(O.next==n){O.advance();let a=0;for(;O.next!=n&&i.includes(O.next);)a++,O.advance();if(a=0;)O.advance();O.acceptToken(q)}else{for(O.advance();O.next>=0;){let{next:Q}=O;if(O.advance(),Q==d&&O.next==l){O.advance();break}}O.acceptToken(U)}}}),rO=new r((O,$)=>{(O.next==aO||O.next==j)&&$.dialectEnabled(c)&&O.acceptToken(O.next==j?H:J,1)}),oO=new r((O,$)=>{if(!$.dialectEnabled(c))return;let Q=$.context.depth;if(O.next<0&&Q){O.acceptToken(P);return}if(O.peek(-1)==n){let t=0;for(;O.next!=n&&i.includes(O.next);)O.advance(),t++;t!=Q&&O.next!=n&&!y(O)&&(t{for(let Q=!1,t=0,R=0;;R++){let{next:a}=O;if(o(a)||a==S||a==m||Q&&u(a))!Q&&(a!=S||R>0)&&(Q=!0),t===R&&a==S&&t++,O.advance();else if(a==p&&O.peek(1)==k){O.acceptToken(A,2);break}else{Q&&O.acceptToken(t==2&&$.canShift(z)?z:$.canShift(T)?T:a==OO?K:L);break}}}),lO=new r(O=>{if(O.next==tO){for(O.advance();o(O.next)||O.next==S||O.next==m||u(O.next);)O.advance();O.next==p&&O.peek(1)==k?O.acceptToken(F,2):O.acceptToken(D)}}),dO=new r(O=>{if(i.includes(O.peek(-1))){let{next:$}=O;(o($)||$==m||$==p||$==eO||$==$O||$==M&&o(O.peek(1))||$==S||$==nO||$==d)&&O.acceptToken(I)}}),cO=new r(O=>{if(!i.includes(O.peek(-1))){let{next:$}=O;if($==QO&&(O.advance(),O.acceptToken(w)),o($)){do O.advance();while(o(O.next)||u(O.next));O.acceptToken(w)}}});function b(O,$){this.parent=O,this.depth=$,this.hash=(O?O.hash+O.hash<<8:0)+$+($<<4)}var XO=new E({start:new b(null,0),shift(O,$,Q,t){return $==h?new b(O,Q.pos-t.pos):$==P?O.parent:O},hash(O){return O.hash}}),PO=x({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":e.definitionKeyword,"Keyword selector":e.keyword,ControlKeyword:e.controlKeyword,NamespaceName:e.namespace,KeyframeName:e.labelName,KeyframeRangeName:e.operatorKeyword,TagName:e.tagName,"ClassName Suffix":e.className,PseudoClassName:e.constant(e.className),IdName:e.labelName,"FeatureName PropertyName":e.propertyName,AttributeName:e.attributeName,NumberLiteral:e.number,KeywordQuery:e.keyword,UnaryQueryOp:e.operatorKeyword,"CallTag ValueName":e.atom,VariableName:e.variableName,SassVariableName:e.special(e.variableName),Callee:e.operatorKeyword,Unit:e.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":e.definitionOperator,MatchOp:e.compareOperator,"ChildOp SiblingOp, LogicOp":e.logicOperator,BinOp:e.arithmeticOperator,"Important Global Default":e.modifier,Comment:e.blockComment,LineComment:e.lineComment,ColorLiteral:e.color,"ParenthesizedContent StringLiteral":e.string,"InterpolationStart InterpolationContinue InterpolationEnd":e.meta,': "..."':e.punctuation,"PseudoOp #":e.derefOperator,"; ,":e.separator,"( )":e.paren,"[ ]":e.squareBracket,"{ }":e.brace}),sO={__proto__:null,not:62,using:197,as:207,with:211,without:211,hide:225,show:225,if:263,from:269,to:271,through:273,in:279},mO={__proto__:null,url:82,"url-prefix":82,domain:82,regexp:82,lang:104,"nth-child":104,"nth-last-child":104,"nth-of-type":104,"nth-last-of-type":104,dir:104,"host-context":104},pO={__proto__:null,"@import":162,"@include":194,"@mixin":200,"@function":200,"@use":204,"@extend":214,"@at-root":218,"@forward":222,"@media":228,"@charset":232,"@namespace":236,"@keyframes":242,"@supports":254,"@if":258,"@else":260,"@for":266,"@each":276,"@while":282,"@debug":286,"@warn":286,"@error":286,"@return":286},uO={__proto__:null,layer:166,not:184,only:184,selector:190},yO=g.deserialize({version:14,states:"!$WQ`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#GXO%rQ.jO'#CnO&mQ#dO'#D]O'dQ(pO'#CgO'kQ)OO'#D_O'vQ#dO'#DfO'{Q#dO'#DiO(QQ#dO'#DqOOQ#U'#GX'#GXO(VQ(pO'#GXO(^Q(nO'#DuO%rQ.jO'#D}O%rQ.jO'#E`O%rQ.jO'#EcO%rQ.jO'#EeO(cQ)OO'#EjO)TQ)OO'#ElO%rQ.jO'#EnO)bQ)OO'#EqO%rQ.jO'#EsO)|Q)OO'#EuO*XQ)OO'#ExO*aQ)OO'#FOO*uQ)OO'#FbOOQ&Z'#GW'#GWOOQ&Y'#Fe'#FeO+PQ(nO'#FeQ`Q+tOOO%rQ.jO'#FQO+[Q(nO'#FUO+aQ)OO'#FZO%rQ.jO'#F^O%rQ.jO'#F`OOQ&Z'#Fm'#FmO+iQ+uO'#GaO+vQ(oO'#GaQOQ#SOOP,XO#SO'#GVPOOO)CAz)CAzOOQ#U'#Cm'#CmOOQ#U,59W,59WOOQ#i'#Cp'#CpO%rQ.jO'#CsO,xQ.wO'#CuO/dQ.^O,59YO%rQ.jO'#CzOOQ#S'#DP'#DPO/uQ(nO'#DUO/zQ)OO'#DZOOQ#i'#GZ'#GZO0SQ(nO'#DOOOQ#U'#D^'#D^OOQ#U,59w,59wO&mQ#dO,59wO0XQ)OO,59yO'vQ#dO,5:QO'{Q#dO,5:TO(cQ)OO,5:WO(cQ)OO,5:YO(cQ)OO,5:ZO(cQ)OO'#FlO0dQ(nO,59RO0oQ+tO'#DsO0vQ#TO'#DsOOQ&Z,59R,59ROOQ#U'#Da'#DaOOQ#S'#Dd'#DdOOQ#U,59y,59yO0{Q(nO,59yO1QQ(nO,59yOOQ#U'#Dh'#DhOOQ#U,5:Q,5:QOOQ#S'#Dj'#DjO1VQ9`O,5:TOOQ#U'#Dr'#DrOOQ#U,5:],5:]O2YQ.jO,5:aO2dQ.jO,5:iO3`Q.jO,5:zO3mQ.YO,5:}O4OQ.jO,5;POOQ#U'#Cj'#CjO4wQ(pO,5;UO5UQ(pO,5;WOOQ&Z,5;W,5;WO5]Q)OO,5;WO5bQ.jO,5;YOOQ#S'#ET'#ETO6TQ.jO'#E]O6kQ(nO'#GcO*aQ)OO'#EZO7PQ(nO'#E^OOQ#S'#Gd'#GdO0gQ(nO,5;]O4UQ.YO,5;_OOQ#d'#Ew'#EwO+PQ(nO,5;aO7UQ)OO,5;aOOQ#S'#Ez'#EzO7^Q(nO,5;dO7cQ(nO,5;jO7nQ(nO,5;|OOQ&Z'#Gf'#GfOOQ&Y,5VQ9`O1G/oO>pQ(pO1G/rO?dQ(pO1G/tO@WQ(pO1G/uO@zQ(pO,5aAN>aO!6QQ(pO,5_Ow!bi!a!bi!d!bi!h!bi$p!bi$t!bi!o!bi$v!bif!bie!bi~P>_Ow!ci!a!ci!d!ci!h!ci$p!ci$t!ci!o!ci$v!cif!cie!ci~P>_Ow$`a!h$`a$t$`a~P4]O!p%|O~O$o%TP~P`Oe%RP~P(cOe%QP~P%rOS!XOTVO_!XOc!XOf!QOh!XOo!TOy!VO|!WO$q!UO$r!PO%O!RO~Oe&VOj&TO~PAsOl#sOm#sOq#tOw&XO!l&ZO!m&ZO!n&ZO!o!ii$t!ii$v!ii$m!ii!p!ii$o!ii~P%rOf&[OT!tXc!tX!o!tX#O!tX#R!tX$s!tX$t!tX$v!tX~O$n$_OS%YXT%YXW%YXX%YX_%YXc%YXq%YXu%YX|%YX!S%YX!Z%YX!r%YX!s%YX#T%YX#W%YX#Y%YX#_%YX#a%YX#c%YX#f%YX#h%YX#j%YX#m%YX#s%YX#u%YX#y%YX$O%YX$R%YX$T%YX$m%YX$r%YX$|%YX%S%YX!p%YX!o%YX$t%YX$o%YX~O$r!PO$|&aO~O#]&cO~Ou&dO~O!o#`O#d$wO$t#`O$v#`O~O!o%ZP#d%ZP$t%ZP$v%ZP~P%rO$r!PO~OR#rO!|iXeiX~Oe!wXm!wXu!yX!|!yX~Ou&jO!|&kO~Oe&lOm%PO~Ow$fX!h$fX$t$fX!o$fX$v$fX~P*aOw%QO!h%Va$t%Va!o%Va$v%Va~Om%POw!}a!h!}a$t!}a!o!}a$v!}ae!}a~O!p&xO$r&sO%O&rO~O#v&zOS#tiT#tiW#tiX#ti_#tic#tiq#tiu#ti|#ti!S#ti!Z#ti!r#ti!s#ti#T#ti#W#ti#Y#ti#_#ti#a#ti#c#ti#f#ti#h#ti#j#ti#m#ti#s#ti#u#ti#y#ti$O#ti$R#ti$T#ti$m#ti$r#ti$|#ti%S#ti!p#ti!o#ti$t#ti$o#ti~Oc&|Ow$lX$P$lX~Ow%`O$P%[a~O!o#kO$t#kO$m%Ti!p%Ti$o%Ti~O!o$da$m$da$t$da!p$da$o$da~P`Oq#tOPkiQkilkimkiTkickifki!oki!uki#Oki#Rki$ski$tki$vki!hki#Uki#Zki#]ki#dkiekiSki_kihkijkiokiwkiyki|ki!lki!mki!nki$qki$rki%Oki$mkivki{ki#{ki#|ki!pki$oki~Ol#sOm#sOq#tOP$]aQ$]a~Oe'QO~Ol#sOm#sOq#tOS$YXT$YX_$YXc$YXe$YXf$YXh$YXj$YXo$YXv$YXw$YXy$YX|$YX$q$YX$r$YX%O$YX~Ov'UOw'SOe%PX~P%rOS$}XT$}X_$}Xc$}Xe$}Xf$}Xh$}Xj$}Xl$}Xm$}Xo$}Xq$}Xv$}Xw$}Xy$}X|$}X$q$}X$r$}X%O$}X~Ou'VO~P!%OOe'WO~O$o'YO~Ow'ZOe%RX~P4]Oe']O~Ow'^Oe%QX~P%rOe'`O~Ol#sOm#sOq#tO{'aO~Ou'bOe$}Xl$}Xm$}Xq$}X~Oe'eOj'cO~Ol#sOm#sOq#tOS$cXT$cX_$cXc$cXf$cXh$cXj$cXo$cXw$cXy$cX|$cX!l$cX!m$cX!n$cX!o$cX$q$cX$r$cX$t$cX$v$cX%O$cX$m$cX!p$cX$o$cX~Ow&XO!l'hO!m'hO!n'hO!o!iq$t!iq$v!iq$m!iq!p!iq$o!iq~P%rO$r'iO~O!o#`O#]'nO$t#`O$v#`O~Ou'oO~Ol#sOm#sOq#tOw'qO!o%ZX#d%ZX$t%ZX$v%ZX~O$s'uO~P5oOm%POw$fa!h$fa$t$fa!o$fa$v$fa~Oe'wO~P4]O%O&rOw#pX!h#pX$t#pX~Ow'yO!h!fO$t!gO~O!p'}O$r&sO%O&rO~O#v(POS#tqT#tqW#tqX#tq_#tqc#tqq#tqu#tq|#tq!S#tq!Z#tq!r#tq!s#tq#T#tq#W#tq#Y#tq#_#tq#a#tq#c#tq#f#tq#h#tq#j#tq#m#tq#s#tq#u#tq#y#tq$O#tq$R#tq$T#tq$m#tq$r#tq$|#tq%S#tq!p#tq!o#tq$t#tq$o#tq~O!h!fO#w(QO$t!gO~Ol#sOm#sOq#tO#{(SO#|(SO~Oc(VOe$ZXw$ZX~P=TOw'SOe%Pa~Ol#sOm#sOq#tO{(ZO~Oe$_Xw$_X~P(cOw'ZOe%Ra~Oe$^Xw$^X~P%rOw'^Oe%Qa~Ou'bO~Ol#sOm#sOq#tOS$caT$ca_$cac$caf$cah$caj$cao$caw$cay$ca|$ca!l$ca!m$ca!n$ca!o$ca$q$ca$r$ca$t$ca$v$ca%O$ca$m$ca!p$ca$o$ca~Oe(dOq(bO~Oe(gOm%PO~Ow$hX!o$hX#d$hX$t$hX$v$hX~P%rOw'qO!o%Za#d%Za$t%Za$v%Za~Oe(lO~P%rOe(mO!|(nO~Ov(vOe$Zaw$Za~P%rOu(wO~P!%OOw'SOe%Pi~Ow'SOe%Pi~P%rOe$_aw$_a~P4]Oe$^aw$^a~P%rOl#sOm#sOq#tOw(yOe$bij$bi~Oe(|Oq(bO~Oe)OOm%PO~Ol#sOm#sOq#tOw$ha!o$ha#d$ha$t$ha$v$ha~OS$}Oh$}Oj$}Oy!VO$q!UO$s'uO%O&rO~O#w(QO~Ow'SOe%Pq~Oe)WO~Oe$Zqw$Zq~P%rO%Oql!dl~",goto:"=Y%]PPPPPPPPPPP%^%h%h%{P%h&`&cP(UPP)ZP*YP)ZPP)ZP)ZP+f,j-lPPP-xPPPP)Z/S%h/W%hP/^P/d/j/p%hP/v%h/|P%hP%h%hP%h0S0VP1k1}2XPPPPP%^PP2_P2b'w'w2h'w'wP'wP'w'wP%^PP%^P%^PP2qP%^P%^P%^PP%^P%^P%^P2w%^P2z2}3Q3X%^P%^PPP%^PPPP%^PP%^P%^P%^P3^3d3j4Y4h4n4t4z5Q5W5d5j5p5z6Q6W6b6h6n6t6zPPPPPPPPPPPP7Q7T7aP8WP:_:b:eP:h:q:w;T;p;y=S=VanOPqx!f#l$_%fs^OPefqx!a!b!c!d!f#l$_$`%T%f'ZsTOPefqx!a!b!c!d!f#l$_$`%T%f'ZR!OUb^ef!a!b!c!d$`%T'Z`_OPqx!f#l$_%f!x!XVabcdgiruv!Q!T!t#s#t#u$O$a$c$d$e$w%_%b%v%{&Q&X&Y&j'S'V'^'b'q't(Q(S(U(Y(^(w)Ug#Uhlm!u#Q#S$i%P%Q&d'o!x!XVabcdgiruv!Q!T!t#s#t#u$O$a$c$d$e$w%_%b%v%{&Q&X&Y&j'S'V'^'b'q't(Q(S(U(Y(^(w)UQ&b$pR&i$x!y!XVabcdgiruv!Q!T!t#s#t#u$O$a$c$d$e$w%_%b%v%{&Q&X&Y&j'S'V'^'b'q't(Q(S(U(Y(^(w)U!x!XVabcdgiruv!Q!T!t#s#t#u$O$a$c$d$e$w%_%b%v%{&Q&X&Y&j'S'V'^'b'q't(Q(S(U(Y(^(w)UU$}#Q&k(nU&u%Y&w'yR'x&t!x!XVabcdgiruv!Q!T!t#s#t#u$O$a$c$d$e$w%_%b%v%{&Q&X&Y&j'S'V'^'b'q't(Q(S(U(Y(^(w)UV$}#Q&k(n#P!YVabcdgiruv!Q!T!t#Q#s#t#u$O$a$c$d$e$w%_%b%v%{&Q&X&Y&j&k'S'V'^'b'q't(Q(S(U(Y(^(n(w)UQ$P!YQ&_$lQ&`$oR(e'n!x!XVabcdgiruv!Q!T!t#s#t#u$O$a$c$d$e$w%_%b%v%{&Q&X&Y&j'S'V'^'b'q't(Q(S(U(Y(^(w)UQ#YjU$}#Q&k(nR%X#ZT#{!W#|Q![WR$Q!]Q!kYR$R!^Q$R!mR%y$TQ!lYR$S!^Q$R!lR%y$SQ!oZR$U!_Q!q[R$V!`R!s]Q!hXQ!|fQ$]!eQ$f!tQ$k!vQ$m!wQ$r!{Q%U#VQ%[#^Q%]#_Q%^#cQ%c#gQ'l&_Q'{&vQ(R&zQ(T'OQ(q'zQ(s(PQ)P(gQ)S(tQ)T(uR)V)OSpOqUyP!f$_Q#jxQ%g#lR'P%fa`OPqx!f#l$_%fQ$f!tR(a'bR$i!uQ'j&[R(z(bQ${#QQ'v&kR)R(nQ&b$pR's&iR#ZjR#]kR%Z#]S&v%Y&wR(o'yV&t%Y&w'yQ#o{R%i#oQqOR#bqQ%v$OQ&Q$a^'R%v&Q't(U(Y(^)UQ't&jQ(U'SQ(Y'VQ(^'^R)U(wQ'T%vU(W'T(X(xQ(X'UR(x(YQ#|!WR%s#|Q#v!SR%o#vQ'_&QR(_'_Q'[&OR(]'[Q!eXR$[!eUxP!f$_S#ix%fR%f#lQ&U$dR'd&UQ&Y$eR'g&YQ#myQ%e#jT%h#m%eQ(c'jR({(cQ%R#RR&o%RQ$u#OS&e$u(jR(j'sQ'r&gR(i'rQ&w%YR'|&wQ'z&vR(p'zQ&y%^R(O&yQ%a#eR&}%aR|QSoOq]wPx!f#l$_%f`XOPqx!f#l$_%fQ!zeQ!{fQ$W!aQ$X!bQ$Y!cQ$Z!dQ&O$`Q&p%TR(['ZQ!SVQ!uaQ!vbQ!wcQ!xdQ#OgQ#WiQ#crQ#guQ#hvS#q!Q$dQ#x!TQ$e!tQ%l#sQ%m#tQ%n#ul%u$O$a%v&Q&j'S'V'^'t(U(Y(^(w)UQ&S$cS&W$e&YQ&g$wQ&{%_Q'O%bQ'X%{Q'f&XQ(`'bQ(h'qQ(t(QR(u(SR%x$OR&R$aR&P$`QzPQ$^!fR%}$_X#ly#j#m%eQ#VhQ#_mQ$h!uR&^$iW#Rhm!u$iQ#^lQ$|#QQ%S#SQ&m%PQ&n%QQ'p&dR(f'oQ%O#QQ'v&kR)R(nQ#apQ$k!vQ$n!xQ$q!zQ$v#OQ%V#WQ%W#YQ%]#_Q%d#hQ&]$hQ&f$uQ&q%XQ'k&^Q'l&_S'm&`&bQ(k'sQ(}(eR)Q(jR&h$wR#ft",nodeNames:"\u26A0 InterpolationEnd InterpolationContinue Unit VariableName InterpolationStart LineComment Comment IndentedMixin IndentedInclude StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector SuffixedSelector Suffix Interpolation SassVariableName ValueName ) ( ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp LogicOp UnaryExpression LogicOp NamespacedValue . CallExpression Callee ArgList : ... , CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName ClassSelector ClassName PseudoClassSelector :: PseudoClassName PseudoClassName ArgList PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp PlaceholderSelector ClassName Block { Declaration PropertyName Map Important Global Default ; } ImportStatement AtKeyword import Layer layer LayerName KeywordQuery FeatureQuery FeatureName BinaryQuery ComparisonQuery CompareOp UnaryQuery LogicOp ParenthesizedQuery SelectorQuery selector IncludeStatement include Keyword MixinStatement mixin UseStatement use Keyword Star Keyword ExtendStatement extend RootStatement at-root ForwardStatement forward Keyword MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports IfStatement ControlKeyword ControlKeyword Keyword ForStatement ControlKeyword Keyword Keyword Keyword EachStatement ControlKeyword Keyword WhileStatement ControlKeyword OutputStatement ControlKeyword AtRule Styles",maxTerm:196,context:XO,nodeProps:[["openedBy",1,"InterpolationStart",5,"InterpolationEnd",21,"(",43,"[",78,"{"],["isolate",-3,6,7,26,""],["closedBy",22,")",44,"]",70,"}"]],propSources:[PO],skippedNodes:[0,6,7,146],repeatNodeCount:21,tokenData:"!$Q~RyOq#rqr$jrs0jst2^tu8{uv;hvw;{wx<^xy={yz>^z{>c{|>||}Co}!ODQ!O!PDo!P!QFY!Q![Fk![!]Gf!]!^Hb!^!_Hs!_!`Is!`!aJ^!a!b#r!b!cKa!c!}#r!}#OMn#O#P#r#P#QNP#Q#RNb#R#T#r#T#UNw#U#c#r#c#d!!Y#d#o#r#o#p!!o#p#qNb#q#r!#Q#r#s!#c#s;'S#r;'S;=`!#z<%lO#rW#uSOy$Rz;'S$R;'S;=`$d<%lO$RW$WSzWOy$Rz;'S$R;'S;=`$d<%lO$RW$gP;=`<%l$RY$m[Oy$Rz!_$R!_!`%c!`#W$R#W#X%v#X#Z$R#Z#[)Z#[#]$R#]#^,V#^;'S$R;'S;=`$d<%lO$RY%jSzWlQOy$Rz;'S$R;'S;=`$d<%lO$RY%{UzWOy$Rz#X$R#X#Y&_#Y;'S$R;'S;=`$d<%lO$RY&dUzWOy$Rz#Y$R#Y#Z&v#Z;'S$R;'S;=`$d<%lO$RY&{UzWOy$Rz#T$R#T#U'_#U;'S$R;'S;=`$d<%lO$RY'dUzWOy$Rz#i$R#i#j'v#j;'S$R;'S;=`$d<%lO$RY'{UzWOy$Rz#`$R#`#a(_#a;'S$R;'S;=`$d<%lO$RY(dUzWOy$Rz#h$R#h#i(v#i;'S$R;'S;=`$d<%lO$RY(}S!nQzWOy$Rz;'S$R;'S;=`$d<%lO$RY)`UzWOy$Rz#`$R#`#a)r#a;'S$R;'S;=`$d<%lO$RY)wUzWOy$Rz#c$R#c#d*Z#d;'S$R;'S;=`$d<%lO$RY*`UzWOy$Rz#U$R#U#V*r#V;'S$R;'S;=`$d<%lO$RY*wUzWOy$Rz#T$R#T#U+Z#U;'S$R;'S;=`$d<%lO$RY+`UzWOy$Rz#`$R#`#a+r#a;'S$R;'S;=`$d<%lO$RY+yS!mQzWOy$Rz;'S$R;'S;=`$d<%lO$RY,[UzWOy$Rz#a$R#a#b,n#b;'S$R;'S;=`$d<%lO$RY,sUzWOy$Rz#d$R#d#e-V#e;'S$R;'S;=`$d<%lO$RY-[UzWOy$Rz#c$R#c#d-n#d;'S$R;'S;=`$d<%lO$RY-sUzWOy$Rz#f$R#f#g.V#g;'S$R;'S;=`$d<%lO$RY.[UzWOy$Rz#h$R#h#i.n#i;'S$R;'S;=`$d<%lO$RY.sUzWOy$Rz#T$R#T#U/V#U;'S$R;'S;=`$d<%lO$RY/[UzWOy$Rz#b$R#b#c/n#c;'S$R;'S;=`$d<%lO$RY/sUzWOy$Rz#h$R#h#i0V#i;'S$R;'S;=`$d<%lO$RY0^S!lQzWOy$Rz;'S$R;'S;=`$d<%lO$R~0mWOY0jZr0jrs1Vs#O0j#O#P1[#P;'S0j;'S;=`2W<%lO0j~1[Oj~~1_RO;'S0j;'S;=`1h;=`O0j~1kXOY0jZr0jrs1Vs#O0j#O#P1[#P;'S0j;'S;=`2W;=`<%l0j<%lO0j~2ZP;=`<%l0jZ2cY!ZPOy$Rz!Q$R!Q![3R![!c$R!c!i3R!i#T$R#T#Z3R#Z;'S$R;'S;=`$d<%lO$RY3WYzWOy$Rz!Q$R!Q![3v![!c$R!c!i3v!i#T$R#T#Z3v#Z;'S$R;'S;=`$d<%lO$RY3{YzWOy$Rz!Q$R!Q![4k![!c$R!c!i4k!i#T$R#T#Z4k#Z;'S$R;'S;=`$d<%lO$RY4rYhQzWOy$Rz!Q$R!Q![5b![!c$R!c!i5b!i#T$R#T#Z5b#Z;'S$R;'S;=`$d<%lO$RY5iYhQzWOy$Rz!Q$R!Q![6X![!c$R!c!i6X!i#T$R#T#Z6X#Z;'S$R;'S;=`$d<%lO$RY6^YzWOy$Rz!Q$R!Q![6|![!c$R!c!i6|!i#T$R#T#Z6|#Z;'S$R;'S;=`$d<%lO$RY7TYhQzWOy$Rz!Q$R!Q![7s![!c$R!c!i7s!i#T$R#T#Z7s#Z;'S$R;'S;=`$d<%lO$RY7xYzWOy$Rz!Q$R!Q![8h![!c$R!c!i8h!i#T$R#T#Z8h#Z;'S$R;'S;=`$d<%lO$RY8oShQzWOy$Rz;'S$R;'S;=`$d<%lO$R_9O`Oy$Rz}$R}!O:Q!O!Q$R!Q![:Q![!_$R!_!`;T!`!c$R!c!}:Q!}#R$R#R#S:Q#S#T$R#T#o:Q#o;'S$R;'S;=`$d<%lO$RZ:X^zWcROy$Rz}$R}!O:Q!O!Q$R!Q![:Q![!c$R!c!}:Q!}#R$R#R#S:Q#S#T$R#T#o:Q#o;'S$R;'S;=`$d<%lO$R[;[S!_SzWOy$Rz;'S$R;'S;=`$d<%lO$RZ;oS%SPlQOy$Rz;'S$R;'S;=`$d<%lO$RZQSfROy$Rz;'S$R;'S;=`$d<%lO$R~>cOe~_>jU$|PlQOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RZ?TWlQ!dPOy$Rz!O$R!O!P?m!P!Q$R!Q![Br![;'S$R;'S;=`$d<%lO$RZ?rUzWOy$Rz!Q$R!Q![@U![;'S$R;'S;=`$d<%lO$RZ@]YzW%OROy$Rz!Q$R!Q![@U![!g$R!g!h@{!h#X$R#X#Y@{#Y;'S$R;'S;=`$d<%lO$RZAQYzWOy$Rz{$R{|Ap|}$R}!OAp!O!Q$R!Q![BX![;'S$R;'S;=`$d<%lO$RZAuUzWOy$Rz!Q$R!Q![BX![;'S$R;'S;=`$d<%lO$RZB`UzW%OROy$Rz!Q$R!Q![BX![;'S$R;'S;=`$d<%lO$RZBy[zW%OROy$Rz!O$R!O!P@U!P!Q$R!Q![Br![!g$R!g!h@{!h#X$R#X#Y@{#Y;'S$R;'S;=`$d<%lO$RZCtSwROy$Rz;'S$R;'S;=`$d<%lO$RZDVWlQOy$Rz!O$R!O!P?m!P!Q$R!Q![Br![;'S$R;'S;=`$d<%lO$RZDtWqROy$Rz!O$R!O!PE^!P!Q$R!Q![@U![;'S$R;'S;=`$d<%lO$RYEcUzWOy$Rz!O$R!O!PEu!P;'S$R;'S;=`$d<%lO$RYE|SvQzWOy$Rz;'S$R;'S;=`$d<%lO$RYF_SlQOy$Rz;'S$R;'S;=`$d<%lO$RZFp[%OROy$Rz!O$R!O!P@U!P!Q$R!Q![Br![!g$R!g!h@{!h#X$R#X#Y@{#Y;'S$R;'S;=`$d<%lO$RkGkUucOy$Rz![$R![!]G}!];'S$R;'S;=`$d<%lO$RXHUS!SPzWOy$Rz;'S$R;'S;=`$d<%lO$RZHgS!oROy$Rz;'S$R;'S;=`$d<%lO$RjHzU!|`lQOy$Rz!_$R!_!`I^!`;'S$R;'S;=`$d<%lO$RjIgS!|`zWlQOy$Rz;'S$R;'S;=`$d<%lO$RnIzU!|`!_SOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$RkJgV!aP!|`lQOy$Rz!_$R!_!`I^!`!aJ|!a;'S$R;'S;=`$d<%lO$RXKTS!aPzWOy$Rz;'S$R;'S;=`$d<%lO$RXKdYOy$Rz}$R}!OLS!O!c$R!c!}Lq!}#T$R#T#oLq#o;'S$R;'S;=`$d<%lO$RXLXWzWOy$Rz!c$R!c!}Lq!}#T$R#T#oLq#o;'S$R;'S;=`$d<%lO$RXLx[!rPzWOy$Rz}$R}!OLq!O!Q$R!Q![Lq![!c$R!c!}Lq!}#T$R#T#oLq#o;'S$R;'S;=`$d<%lO$RZMsS|ROy$Rz;'S$R;'S;=`$d<%lO$R_NUS{VOy$Rz;'S$R;'S;=`$d<%lO$R[NeUOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RkNzUOy$Rz#b$R#b#c! ^#c;'S$R;'S;=`$d<%lO$Rk! cUzWOy$Rz#W$R#W#X! u#X;'S$R;'S;=`$d<%lO$Rk! |SmczWOy$Rz;'S$R;'S;=`$d<%lO$Rk!!]UOy$Rz#f$R#f#g! u#g;'S$R;'S;=`$d<%lO$RZ!!tS!hROy$Rz;'S$R;'S;=`$d<%lO$RZ!#VS!pROy$Rz;'S$R;'S;=`$d<%lO$R]!#hU!dPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!#}P;=`<%l#r",tokenizers:[oO,dO,lO,cO,SO,RO,iO,rO,0,1,2,3,4],topRules:{StyleSheet:[0,10],Styles:[1,145]},dialects:{indented:0},specialized:[{term:172,get:O=>sO[O]||-1},{term:171,get:O=>mO[O]||-1},{term:80,get:O=>pO[O]||-1},{term:173,get:O=>uO[O]||-1}],tokenPrec:3217}),X=V.define({name:"sass",parser:yO.configure({props:[f.add({Block:_,Comment(O,$){return{from:O.from+2,to:$.sliceDoc(O.to-2,O.to)=="*/"?O.to-2:O.to}}}),Y.add({Declaration:W()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),fO=X.configure({dialect:"indented",props:[Y.add({"Block RuleSet":O=>O.baseIndent+O.unit}),f.add({Block:O=>({from:O.from,to:O.to})})]}),v=C(O=>O.name=="VariableName"||O.name=="SassVariableName");function YO(O){return new N(O!=null&&O.indented?fO:X,X.data.of({autocomplete:v}))}export{v as n,X as r,YO as t}; diff --git a/docs/assets/dist-CAcX026F.js b/docs/assets/dist-CAcX026F.js new file mode 100644 index 0000000..ce8023e --- /dev/null +++ b/docs/assets/dist-CAcX026F.js @@ -0,0 +1,13 @@ +var sh,ds=[],xn=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,i=0;t>1;if(e=xn[s])t=s+1;else return!0;if(t==i)return!1}}function yn(e){return e>=127462&&e<=127487}var kn=8205;function Vh(e,t,i=!0,s=!0){return(i?Sn:zh)(e,t,s)}function Sn(e,t,i){if(t==e.length)return t;t&&Cn(e.charCodeAt(t))&&An(e.charCodeAt(t-1))&&t--;let s=ps(e,t);for(t+=Mn(s);t=0&&yn(ps(e,o));)n++,o-=2;if(n%2==0)break;t+=2}else break}return t}function zh(e,t,i){for(;t>0;){let s=Sn(e,t-2,i);if(s=56320&&e<57344}function An(e){return e>=55296&&e<56320}function Mn(e){return e<65536?1:2}var W=class rh{lineAt(t){if(t<0||t>this.length)throw RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,i,s){[t,i]=fe(this,t,i);let r=[];return this.decompose(0,t,r,2),s.length&&s.decompose(0,s.length,r,3),this.decompose(i,this.length,r,1),fi.from(r,this.length-(i-t)+s.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,i=this.length){[t,i]=fe(this,t,i);let s=[];return this.decompose(t,i,s,0),fi.from(s,i-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let i=this.scanIdentical(t,1),s=this.length-this.scanIdentical(t,-1),r=new Ee(this),n=new Ee(t);for(let o=i,l=i;;){if(r.next(o),n.next(o),o=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(l+=r.value.length,r.done||l>=s)return!0}}iter(t=1){return new Ee(this,t)}iterRange(t,i=this.length){return new On(this,t,i)}iterLines(t,i){let s;if(t==null)s=this.iter();else{i??(i=this.lines+1);let r=this.line(t).from;s=this.iterRange(r,Math.max(r,i==this.lines+1?this.length:i<=1?0:this.line(i-1).to))}return new Dn(s)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw RangeError("A document must have at least one line");return t.length==1&&!t[0]?rh.empty:t.length<=32?new bt(t):fi.from(bt.split(t,[]))}},bt=class Wt extends W{constructor(t,i=Fh(t)){super(),this.text=t,this.length=i}get lines(){return this.text.length}get children(){return null}lineInner(t,i,s,r){for(let n=0;;n++){let o=this.text[n],l=r+o.length;if((i?s:l)>=t)return new qh(r,l,s,o);r=l+1,s++}}decompose(t,i,s,r){let n=t<=0&&i>=this.length?this:new Wt(Tn(this.text,t,i),Math.min(i,this.length)-Math.max(0,t));if(r&1){let o=s.pop(),l=di(n.text,o.text.slice(),0,n.length);if(l.length<=32)s.push(new Wt(l,o.length+n.length));else{let a=l.length>>1;s.push(new Wt(l.slice(0,a)),new Wt(l.slice(a)))}}else s.push(n)}replace(t,i,s){if(!(s instanceof Wt))return super.replace(t,i,s);[t,i]=fe(this,t,i);let r=di(this.text,di(s.text,Tn(this.text,0,t)),i),n=this.length+s.length-(i-t);return r.length<=32?new Wt(r,n):fi.from(Wt.split(r,[]),n)}sliceString(t,i=this.length,s=` +`){[t,i]=fe(this,t,i);let r="";for(let n=0,o=0;n<=i&&ot&&o&&(r+=s),tn&&(r+=l.slice(Math.max(0,t-n),i-n)),n=a+1}return r}flatten(t){for(let i of this.text)t.push(i)}scanIdentical(){return 0}static split(t,i){let s=[],r=-1;for(let n of t)s.push(n),r+=n.length+1,s.length==32&&(i.push(new Wt(s,r)),s=[],r=-1);return r>-1&&i.push(new Wt(s,r)),i}},fi=class Be extends W{constructor(t,i){super(),this.children=t,this.length=i,this.lines=0;for(let s of t)this.lines+=s.lines}lineInner(t,i,s,r){for(let n=0;;n++){let o=this.children[n],l=r+o.length,a=s+o.lines-1;if((i?a:l)>=t)return o.lineInner(t,i,s,r);r=l+1,s=a+1}}decompose(t,i,s,r){for(let n=0,o=0;o<=i&&n=o){let h=r&((o<=t?1:0)|(a>=i?2:0));o>=t&&a<=i&&!h?s.push(l):l.decompose(t-o,i-o,s,h)}o=a+1}}replace(t,i,s){if([t,i]=fe(this,t,i),s.lines=n&&i<=l){let a=o.replace(t-n,i-n,s),h=this.lines-o.lines+a.lines;if(a.lines>4&&a.lines>h>>6){let c=this.children.slice();return c[r]=a,new Be(c,this.length-(i-t)+s.length)}return super.replace(n,l,a)}n=l+1}return super.replace(t,i,s)}sliceString(t,i=this.length,s=` +`){[t,i]=fe(this,t,i);let r="";for(let n=0,o=0;nt&&n&&(r+=s),to&&(r+=l.sliceString(t-o,i-o,s)),o=a+1}return r}flatten(t){for(let i of this.children)i.flatten(t)}scanIdentical(t,i){if(!(t instanceof Be))return 0;let s=0,[r,n,o,l]=i>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;r+=i,n+=i){if(r==o||n==l)return s;let a=this.children[r],h=t.children[n];if(a!=h)return s+a.scanIdentical(h,i);s+=a.length+1}}static from(t,i=t.reduce((s,r)=>s+r.length+1,-1)){let s=0;for(let d of t)s+=d.lines;if(s<32){let d=[];for(let p of t)p.flatten(d);return new bt(d,i)}let r=Math.max(32,s>>5),n=r<<1,o=r>>1,l=[],a=0,h=-1,c=[];function u(d){let p;if(d.lines>n&&d instanceof Be)for(let g of d.children)u(g);else d.lines>o&&(a>o||!a)?(f(),l.push(d)):d instanceof bt&&a&&(p=c[c.length-1])instanceof bt&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new bt(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>r&&f(),a+=d.lines,h+=d.length+1,c.push(d))}function f(){a!=0&&(l.push(c.length==1?c[0]:Be.from(c,h)),h=-1,a=c.length=0)}for(let d of t)u(d);return f(),l.length==1?l[0]:new Be(l,i)}};W.empty=new bt([""],0);function Fh(e){let t=-1;for(let i of e)t+=i.length+1;return t}function di(e,t,i=0,s=1e9){for(let r=0,n=0,o=!0;n=i&&(a>s&&(l=l.slice(0,s-r)),r0?1:(e instanceof bt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],n=r>>1,o=s instanceof bt?s.text.length:s.children.length;if(n==(t>0?o:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(s instanceof bt){let l=s.text[n+(t<0?-1:0)];if(this.offsets[i]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=s.children[n+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof bt?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},On=class{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Ee(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Dn=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(W.prototype[Symbol.iterator]=function(){return this.iter()},Ee.prototype[Symbol.iterator]=On.prototype[Symbol.iterator]=Dn.prototype[Symbol.iterator]=function(){return this});var qh=class{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}};function fe(e,t,i){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,i))]}function ot(e,t,i=!0,s=!0){return Vh(e,t,i,s)}function Kh(e){return e>=56320&&e<57344}function jh(e){return e>=55296&&e<56320}function gs(e,t){let i=e.charCodeAt(t);if(!jh(i)||t+1==e.length)return i;let s=e.charCodeAt(t+1);return Kh(s)?(i-55296<<10)+(s-56320)+65536:i}function $h(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Pn(e){return e<65536?1:2}var ms=/\r\n?|\n/,st=(function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e})(st||(st={})),de=class cs{constructor(t){this.sections=t}get length(){let t=0;for(let i=0;it)return n+(t-r);n+=l}else{if(s!=st.Simple&&h>=t&&(s==st.TrackDel&&rt||s==st.TrackBefore&&rt))return null;if(h>t||h==t&&i<0&&!l)return t==r||i<0?n:n+a;n+=a}r=h}if(t>r)throw RangeError(`Position ${t} is out of range for changeset of length ${r}`);return n}touchesRange(t,i=t){for(let s=0,r=0;s=0&&r<=i&&l>=t)return ri?"cover":!0;r=l}return!1}toString(){let t="";for(let i=0;i=0?":"+r:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(i=>typeof i!="number"))throw RangeError("Invalid JSON representation of ChangeDesc");return new cs(t)}static create(t){return new cs(t)}},xt=class re extends de{constructor(t,i){super(t),this.inserted=i}apply(t){if(this.length!=t.length)throw RangeError("Applying change set to a document with the wrong length");return vs(this,(i,s,r,n,o)=>t=t.replace(r,r+(s-i),o),!1),t}mapDesc(t,i=!1){return ws(this,t,i,!0)}invert(t){let i=this.sections.slice(),s=[];for(let r=0,n=0;r=0){i[r]=l,i[r+1]=o;let a=r>>1;for(;s.length0&&Yt(s,i,n.text),n.forward(c),l+=c}let h=t[o++];for(;l>1].toJSON()))}return t}static of(t,i,s){let r=[],n=[],o=0,l=null;function a(c=!1){if(!c&&!r.length)return;of||u<0||f>i)throw RangeError(`Invalid change range ${u} to ${f} (in doc of length ${i})`);let p=d?typeof d=="string"?W.of(d.split(s||ms)):d:W.empty,g=p.length;if(u==f&&g==0)return;uo&&Z(r,u-o,-1),Z(r,f-u,g),Yt(n,r,p),o=f}}return h(t),a(!l),l}static empty(t){return new re(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError("Invalid JSON representation of ChangeSet");let i=[],s=[];for(let r=0;rl&&typeof o!="string"))throw RangeError("Invalid JSON representation of ChangeSet");if(n.length==1)i.push(n[0],0);else{for(;s.length=0&&i<=0&&i==e[r+1]?e[r]+=t:r>=0&&t==0&&e[r]==0?e[r+1]+=i:s?(e[r]+=t,e[r+1]+=i):e.push(t,i)}function Yt(e,t,i){if(i.length==0)return;let s=t.length-2>>1;if(s>1])),!(i||o==e.sections.length||e.sections[o+1]<0);)l=e.sections[o++],a=e.sections[o++];t(r,h,n,c,u),r=h,n=c}}}function ws(e,t,i,s=!1){let r=[],n=s?[]:null,o=new Re(e),l=new Re(t);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);Z(r,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let u=Math.min(c,l.len);h+=u,c-=u,l.forward(u)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||s.length>h),n.forward2(a),o.forward(a)}}}}var Re=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?W.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?W.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},pi=class en{constructor(t,i,s){this.from=t,this.to=i,this.flags=s}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,i=-1){let s,r;return this.empty?s=r=t.mapPos(this.from,i):(s=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),s==this.from&&r==this.to?this:new en(s,r,this.flags)}extend(t,i=t){if(t<=this.anchor&&i>=this.anchor)return O.range(t,i);let s=Math.abs(t-this.anchor)>Math.abs(i-this.anchor)?t:i;return O.range(this.anchor,s)}eq(t,i=!1){return this.anchor==t.anchor&&this.head==t.head&&(!i||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw RangeError("Invalid JSON representation for SelectionRange");return O.range(t.anchor,t.head)}static create(t,i,s){return new en(t,i,s)}},O=class at{constructor(t,i){this.ranges=t,this.mainIndex=i}map(t,i=-1){return t.empty?this:at.create(this.ranges.map(s=>s.map(t,i)),this.mainIndex)}eq(t,i=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let s=0;st.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new at(t.ranges.map(i=>pi.fromJSON(i)),t.main)}static single(t,i=t){return new at([at.range(t,i)],0)}static create(t,i=0){if(t.length==0)throw RangeError("A selection needs at least one range");for(let s=0,r=0;rt?8:0)|n)}static normalized(t,i=0){let s=t[i];t.sort((r,n)=>r.from-n.from),i=t.indexOf(s);for(let r=1;rn.head?at.range(a,l):at.range(l,a))}}return new at(t,i)}};function En(e,t){for(let i of e.ranges)if(i.to>t)throw RangeError("Selection points outside of document")}var bs=0,A=class nh{constructor(t,i,s,r,n){this.combine=t,this.compareInput=i,this.compare=s,this.isStatic=r,this.id=bs++,this.default=t([]),this.extensions=typeof n=="function"?n(this):n}get reader(){return this}static define(t={}){return new nh(t.combine||(i=>i),t.compareInput||((i,s)=>i===s),t.compare||(t.combine?(i,s)=>i===s:xs),!!t.static,t.enables)}of(t){return new gi([],this,0,t)}compute(t,i){if(this.isStatic)throw Error("Can't compute a static facet");return new gi(t,this,1,i)}computeN(t,i){if(this.isStatic)throw Error("Can't compute a static facet");return new gi(t,this,2,i)}from(t,i){return i||(i=s=>s),this.compute([t],s=>i(s.field(t)))}};function xs(e,t){return e==t||e.length==t.length&&e.every((i,s)=>i===t[s])}var gi=class{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=bs++}dynamicSlot(e){let t=this.value,i=this.facet.compareInput,s=this.id,r=e[s]>>1,n=this.type==2,o=!1,l=!1,a=[];for(let h of this.dependencies)h=="doc"?o=!0:h=="selection"?l=!0:(e[h.id]??1)&1||a.push(e[h.id]);return{create(h){return h.values[r]=t(h),1},update(h,c){if(o&&c.docChanged||l&&(c.docChanged||c.selection)||ys(h,a)){let u=t(h);if(n?!Rn(u,h.values[r],i):!i(u,h.values[r]))return h.values[r]=u,1}return 0},reconfigure:(h,c)=>{let u,f=c.config.address[s];if(f!=null){let d=vi(c,f);if(this.dependencies.every(p=>p instanceof A?c.facet(p)===h.facet(p):p instanceof Tt?c.field(p,!1)==h.field(p,!1):!0)||(n?Rn(u=t(h),d,i):i(u=t(h),d)))return h.values[r]=d,0}else u=t(h);return h.values[r]=u,1}}}};function Rn(e,t,i){if(e.length!=t.length)return!1;for(let s=0;se[a.id]),r=i.map(a=>a.type),n=s.filter(a=>!(a&1)),o=e[t.id]>>1;function l(a){let h=[];for(let c=0;cs===r),t);return t.provide&&(i.provides=t.provide(i)),i}create(t){var i;return(((i=t.facet(mi).find(s=>s.field==this))==null?void 0:i.create)||this.createF)(t)}slot(t){let i=t[this.id]>>1;return{create:s=>(s.values[i]=this.create(s),1),update:(s,r)=>{let n=s.values[i],o=this.updateF(n,r);return this.compareF(n,o)?0:(s.values[i]=o,1)},reconfigure:(s,r)=>{let n=s.facet(mi),o=r.facet(mi),l;return(l=n.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(s.values[i]=l.create(s),1):r.config.address[this.id]==null?(s.values[i]=this.create(s),1):(s.values[i]=r.field(this),0)}}}init(t){return[this,mi.of({field:this,create:t})]}get extension(){return this}},oe={lowest:4,low:3,default:2,high:1,highest:0};function Ne(e){return t=>new Nn(t,e)}var Le={highest:Ne(oe.highest),high:Ne(oe.high),default:Ne(oe.default),low:Ne(oe.low),lowest:Ne(oe.lowest)},Nn=class{constructor(e,t){this.inner=e,this.prec=t}},ks=class lh{of(t){return new Ss(this,t)}reconfigure(t){return lh.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}},Ss=class{constructor(e,t){this.compartment=e,this.inner=t}},Ln=class ah{constructor(t,i,s,r,n,o){for(this.base=t,this.compartments=i,this.dynamicSlots=s,this.address=r,this.staticValues=n,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,i,s){let r=[],n=Object.create(null),o=new Map;for(let u of Gh(t,i,o))u instanceof Tt?r.push(u):(n[u.facet.id]||(n[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of r)l[u.id]=h.length<<1,h.push(f=>u.slot(f));let c=s==null?void 0:s.config.facets;for(let u in n){let f=n[u],d=f[0].facet,p=c&&c[u]||[];if(f.every(g=>g.type==0))if(l[d.id]=a.length<<1|1,xs(p,f))a.push(s.facet(d));else{let g=d.combine(f.map(m=>m.value));a.push(s&&d.compare(g,s.facet(d))?s.facet(d):g)}else{for(let g of f)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(m=>g.dynamicSlot(m)));l[d.id]=h.length<<1,h.push(g=>Uh(g,d,f))}}return new ah(t,o,h.map(u=>u(l)),l,a,n)}};function Gh(e,t,i){let s=[[],[],[],[],[]],r=new Map;function n(o,l){let a=r.get(o);if(a!=null){if(a<=l)return;let h=s[a].indexOf(o);h>-1&&s[a].splice(h,1),o instanceof Ss&&i.delete(o.compartment)}if(r.set(o,l),Array.isArray(o))for(let h of o)n(h,l);else if(o instanceof Ss){if(i.has(o.compartment))throw RangeError("Duplicate use of compartment in extensions");let h=t.get(o.compartment)||o.inner;i.set(o.compartment,h),n(h,l)}else if(o instanceof Nn)n(o.inner,o.prec);else if(o instanceof Tt)s[l].push(o),o.provides&&n(o.provides,l);else if(o instanceof gi)s[l].push(o),o.facet.extensions&&n(o.facet.extensions,oe.default);else{let h=o.extension;if(!h)throw Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);n(h,l)}}return n(e,oe.default),s.reduce((o,l)=>o.concat(l))}function Ie(e,t){if(t&1)return 2;let i=t>>1,s=e.status[i];if(s==4)throw Error("Cyclic dependency between fields and/or facets");if(s&2)return s;e.status[i]=4;let r=e.computeSlot(e,e.config.dynamicSlots[i]);return e.status[i]=2|r}function vi(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}var In=A.define(),Cs=A.define({combine:e=>e.some(t=>t),static:!0}),Wn=A.define({combine:e=>e.length?e[0]:void 0,static:!0}),Hn=A.define(),Vn=A.define(),zn=A.define(),Fn=A.define({combine:e=>e.length?e[0]:!1}),le=class{constructor(e,t){this.type=e,this.value=t}static define(){return new Yh}},Yh=class{of(e){return new le(this,e)}},Xh=class{constructor(e){this.map=e}of(e){return new U(this,e)}},U=class hh{constructor(t,i){this.type=t,this.value=i}map(t){let i=this.type.map(this.value,t);return i===void 0?void 0:i==this.value?this:new hh(this.type,i)}is(t){return this.type==t}static define(t={}){return new Xh(t.map||(i=>i))}static mapEffects(t,i){if(!t.length)return t;let s=[];for(let r of t){let n=r.map(i);n&&s.push(n)}return s}};U.reconfigure=U.define(),U.appendConfig=U.define();var dt=class hi{constructor(t,i,s,r,n,o){this.startState=t,this.changes=i,this.selection=s,this.effects=r,this.annotations=n,this.scrollIntoView=o,this._doc=null,this._state=null,s&&En(s,i.newLength),n.some(l=>l.type==hi.time)||(this.annotations=n.concat(hi.time.of(Date.now())))}static create(t,i,s,r,n,o){return new hi(t,i,s,r,n,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let i of this.annotations)if(i.type==t)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let i=this.annotation(hi.userEvent);return!!(i&&(i==t||i.length>t.length&&i.slice(0,t.length)==t&&i[t.length]=="."))}};dt.time=le.define(),dt.userEvent=le.define(),dt.addToHistory=le.define(),dt.remote=le.define();function Jh(e,t){let i=[];for(let s=0,r=0;;){let n,o;if(s=e[s]))n=e[s++],o=e[s++];else if(r=0;r--){let n=s[r](e);e=n instanceof dt?n:Array.isArray(n)&&n.length==1&&n[0]instanceof dt?n[0]:Kn(t,pe(n),!1)}return e}function Zh(e){let t=e.startState,i=t.facet(zn),s=e;for(let r=i.length-1;r>=0;r--){let n=i[r](e);n&&Object.keys(n).length&&(s=qn(s,As(t,n,e.changes.newLength),!0))}return s==e?e:dt.create(t,e.changes,e.selection,s.effects,s.annotations,s.scrollIntoView)}var _h=[];function pe(e){return e==null?_h:Array.isArray(e)?e:[e]}var Ht=(function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e})(Ht||(Ht={})),tc=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ms;try{Ms=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ec(e){if(Ms)return Ms.test(e);for(let t=0;t"\x80"&&(i.toUpperCase()!=i.toLowerCase()||tc.test(i)))return!0}return!1}function ic(e){return t=>{if(!/\S/.test(t))return Ht.Space;if(ec(t))return Ht.Word;for(let i=0;i-1)return Ht.Word;return Ht.Other}}var G=class Ct{constructor(t,i,s,r,n,o){this.config=t,this.doc=i,this.selection=s,this.values=r,this.status=t.statusTemplate.slice(),this.computeSlot=n,o&&(o._state=this);for(let l=0;lr.set(h,a)),null)),r.set(l.value.compartment,l.value.extension)):l.is(U.reconfigure)?(i=null,s=l.value):l.is(U.appendConfig)&&(i=null,s=pe(s).concat(l.value));let n;i?n=t.startState.values.slice():(i=Ln.resolve(s,r,this),n=new Ct(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(l,a)=>a.reconfigure(l,this),null).values);let o=t.startState.facet(Cs)?t.newSelection:t.newSelection.asSingle();new Ct(i,t.newDoc,o,n,(l,a)=>a.update(l,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:t},range:O.cursor(i.from+t.length)}))}changeByRange(t){let i=this.selection,s=t(i.ranges[0]),r=this.changes(s.changes),n=[s.range],o=pe(s.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return Ct.create({doc:t.doc,selection:O.fromJSON(t.selection),extensions:i.extensions?r.concat([i.extensions]):r})}static create(t={}){let i=Ln.resolve(t.extensions||[],new Map),s=t.doc instanceof W?t.doc:W.of((t.doc||"").split(i.staticFacet(Ct.lineSeparator)||ms)),r=t.selection?t.selection instanceof O?t.selection:O.single(t.selection.anchor,t.selection.head):O.single(0);return En(r,s.length),i.staticFacet(Cs)||(r=r.asSingle()),new Ct(i,s,r,i.dynamicSlots.map(()=>null),(n,o)=>o.create(n),null)}get tabSize(){return this.facet(Ct.tabSize)}get lineBreak(){return this.facet(Ct.lineSeparator)||` +`}get readOnly(){return this.facet(Fn)}phrase(t,...i){for(let s of this.facet(Ct.phrases))if(Object.prototype.hasOwnProperty.call(s,t)){t=s[t];break}return i.length&&(t=t.replace(/\$(\$|\d*)/g,(s,r)=>{if(r=="$")return"$";let n=+(r||1);return!n||n>i.length?s:i[n-1]})),t}languageDataAt(t,i,s=-1){let r=[];for(let n of this.facet(In))for(let o of n(this,i,s))Object.prototype.hasOwnProperty.call(o,t)&&r.push(o[t]);return r}charCategorizer(t){let i=this.languageDataAt("wordChars",t);return ic(i.length?i[0]:"")}wordAt(t){let{text:i,from:s,length:r}=this.doc.lineAt(t),n=this.charCategorizer(t),o=t-s,l=t-s;for(;o>0;){let a=ot(i,o,!1);if(n(i.slice(a,o))!=Ht.Word)break;o=a}for(;le.length?e[0]:4}),G.lineSeparator=Wn,G.readOnly=Fn,G.phrases=A.define({compare(e,t){let i=Object.keys(e),s=Object.keys(t);return i.length==s.length&&i.every(r=>e[r]==t[r])}}),G.languageData=In,G.changeFilter=Hn,G.transactionFilter=Vn,G.transactionExtender=zn,ks.reconfigure=U.define();function ge(e,t,i={}){let s={};for(let r of e)for(let n of Object.keys(r)){let o=r[n],l=s[n];if(l===void 0)s[n]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(i,n))s[n]=i[n](l,o);else throw Error("Config merge conflict for field "+n)}for(let r in t)s[r]===void 0&&(s[r]=t[r]);return s}var Xt=class{eq(e){return this==e}range(e,t=e){return Os.create(e,t,this)}};Xt.prototype.startSide=Xt.prototype.endSide=0,Xt.prototype.point=!1,Xt.prototype.mapMode=st.TrackDel;function Ts(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}var Os=class ch{constructor(t,i,s){this.from=t,this.to=i,this.value=s}static create(t,i,s){return new ch(t,i,s)}};function Ds(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var sc=class uh{constructor(t,i,s,r){this.from=t,this.to=i,this.value=s,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(t,i,s,r=0){let n=s?this.to:this.from;for(let o=r,l=n.length;;){if(o==l)return o;let a=o+l>>1,h=n[a]-t||(s?this.value[a].endSide:this.value[a].startSide)-i;if(a==o)return h>=0?o:l;h>=0?l=a:o=a+1}}between(t,i,s,r){for(let n=this.findIndex(i,-1e9,!0),o=this.findIndex(s,1e9,!1,n);nd||f==d&&h.startSide>0&&h.endSide<=0)continue;(d-f||h.endSide-h.startSide)<0||(o<0&&(o=f),h.point&&(l=Math.max(l,d-f)),s.push(h),r.push(f-o),n.push(d-o))}return{mapped:s.length?new uh(r,n,s,l):null,pos:o}}},H=class Gt{constructor(t,i,s,r){this.chunkPos=t,this.chunk=i,this.nextLayer=s,this.maxPoint=r}static create(t,i,s,r){return new Gt(t,i,s,r)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let i of this.chunk)t+=i.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:i=[],sort:s=!1,filterFrom:r=0,filterTo:n=this.length}=t,o=t.filter;if(i.length==0&&!o)return this;if(s&&(i=i.slice().sort(Ds)),this.isEmpty)return i.length?Gt.of(i):this;let l=new $n(this,null,-1).goto(0),a=0,h=[],c=new me;for(;l.value||a=0){let u=i[a++];c.addInner(u.from,u.to,u.value)||h.push(u)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||nl.to||n=n&&t<=n+o.length&&o.between(n,t-n,i-n,s)===!1)return}this.nextLayer.between(t,i,s)}}iter(t=0){return Ps.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,i=0){return Ps.from(t).goto(i)}static compare(t,i,s,r,n=-1){let o=t.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=n),l=i.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=n),a=jn(o,l,s),h=new We(o,a,n),c=new We(l,a,n);s.iterGaps((u,f,d)=>Un(h,u,c,f,d,r)),s.empty&&s.length==0&&Un(h,0,c,0,0,r)}static eq(t,i,s=0,r){r??(r=999999999);let n=t.filter(c=>!c.isEmpty&&i.indexOf(c)<0),o=i.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(n.length!=o.length)return!1;if(!n.length)return!0;let l=jn(n,o),a=new We(n,l,0).goto(s),h=new We(o,l,0).goto(s);for(;;){if(a.to!=h.to||!Es(a.active,h.active)||a.point&&(!h.point||!Ts(a.point,h.point)))return!1;if(a.to>r)return!0;a.next(),h.next()}}static spans(t,i,s,r,n=-1){let o=new We(t,null,n).goto(i),l=i,a=o.openStart;for(;;){let h=Math.min(o.to,s);if(o.point){let c=o.activeForPoint(o.to),u=o.pointFroml&&(r.span(l,h,o.active,a),a=o.openEnd(h));if(o.to>s)return a+(o.point&&o.to>s?1:0);l=o.to,o.next()}}static of(t,i=!1){let s=new me;for(let r of t instanceof Os?[t]:i?rc(t):t)s.add(r.from,r.to,r.value);return s.finish()}static join(t){if(!t.length)return Gt.empty;let i=t[t.length-1];for(let s=t.length-2;s>=0;s--)for(let r=t[s];r!=Gt.empty;r=r.nextLayer)i=new Gt(r.chunkPos,r.chunk,i,Math.max(r.maxPoint,i.maxPoint));return i}};H.empty=new H([],[],null,-1);function rc(e){if(e.length>1)for(let t=e[0],i=1;i0)return e.slice().sort(Ds);t=s}return e}H.empty.nextLayer=H.empty;var me=class fh{finishChunk(t){this.chunks.push(new sc(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,i,s){this.addInner(t,i,s)||(this.nextLayer||(this.nextLayer=new fh)).add(t,i,s)}addInner(t,i,s){let r=t-this.lastTo||s.startSide-this.last.endSide;if(r<=0&&(t-this.lastFrom||s.startSide-this.last.startSide)<0)throw Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(i-this.chunkStart),this.last=s,this.lastFrom=t,this.lastTo=i,this.value.push(s),s.point&&(this.maxPoint=Math.max(this.maxPoint,i-t)),!0)}addChunk(t,i){if((t-this.lastTo||i.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,i.maxPoint),this.chunks.push(i),this.chunkPos.push(t);let s=i.value.length-1;return this.last=i.value[s],this.lastFrom=i.from[s]+t,this.lastTo=i.to[s]+t,!0}finish(){return this.finishInner(H.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let i=H.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,i}};function jn(e,t,i){let s=new Map;for(let n of e)for(let o=0;o=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=s&&r.push(new $n(o,i,s,n));return r.length==1?r[0]:new dh(r)}get startSide(){return this.value?this.value.startSide:0}goto(t,i=-1e9){for(let s of this.heap)s.goto(t,i);for(let s=this.heap.length>>1;s>=0;s--)Bs(this.heap,s);return this.next(),this}forward(t,i){for(let s of this.heap)s.forward(t,i);for(let s=this.heap.length>>1;s>=0;s--)Bs(this.heap,s);(this.to-t||this.value.endSide-i)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),Bs(this.heap,0)}}};function Bs(e,t){for(let i=e[t];;){let s=(t<<1)+1;if(s>=e.length)break;let r=e[s];if(s+1=0&&(r=e[s+1],s++),i.compare(r)<0)break;e[s]=i,e[t]=r,t=s}}var We=class{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ps.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){wi(this.active,e),wi(this.activeTo,e),wi(this.activeRank,e),this.minActive=Gn(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:r}=this.cursor;for(;t0;)t++;bi(this.active,t,i),bi(this.activeTo,t,s),bi(this.activeRank,t,r),e&&bi(e,t,this.cursor.from),this.minActive=Gn(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&wi(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}};function Un(e,t,i,s,r,n){e.goto(t),i.goto(s);let o=s+r,l=s,a=s-t,h=!!n.boundChange;for(let c=!1;;){let u=e.to+a-i.to,f=u||e.endSide-i.endSide,d=f<0?e.to+a:i.to,p=Math.min(d,o);if(e.point||i.point?(e.point&&i.point&&Ts(e.point,i.point)&&Es(e.activeForPoint(e.to),i.activeForPoint(i.to))||n.comparePoint(l,p,e.point,i.point),c=!1):(c&&n.boundChange(l),p>l&&!Es(e.active,i.active)&&n.compareRange(l,p,e.active,i.active),h&&po)break;l=d,f<=0&&e.next(),f>=0&&i.next()}}function Es(e,t){if(e.length!=t.length)return!1;for(let i=0;i=t;s--)e[s+1]=e[s];e[t]=i}function Gn(e,t){let i=-1,s=1e9;for(let r=0;r=t)return r;if(r==e.length)break;n+=e.charCodeAt(r)==9?i-n%i:1,r=ot(e,r)}return s===!0?-1:e.length}for(var Ns="\u037C",Yn=typeof Symbol>"u"?"__"+Ns:Symbol.for(Ns),Ls=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Vt=class{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(n){return/^@/.test(n)?[n]:n.split(/,\s*/)}function r(n,o,l,a){let h=[],c=/^@(\w+)\b/.exec(n[0]),u=c&&c[1]=="keyframes";if(c&&o==null)return l.push(n[0]+";");for(let f in o){let d=o[f];if(/&/.test(f))r(f.split(/,\s*/).map(p=>n.map(g=>p.replace(/&/,g))).reduce((p,g)=>p.concat(g)),d,l);else if(d&&typeof d=="object"){if(!c)throw RangeError("The value of a property ("+f+") should be a primitive value.");r(s(f),d,h,u)}else d!=null&&h.push(f.replace(/_.*/,"").replace(/[A-Z]/g,p=>"-"+p.toLowerCase())+": "+d+";")}(h.length||u)&&l.push((i&&!c&&!a?n.map(i):n).join(", ")+" {"+h.join(" ")+"}")}for(let n in e)r(s(n),e[n],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=Xn[Yn]||1;return Xn[Yn]=e+1,Ns+e.toString(36)}static mount(e,t,i){let s=e[Ls],r=i&&i.nonce;s?r&&s.setNonce(r):s=new nc(e,r),s.mount(Array.isArray(t)?t:[t],e)}},Jn=new Map,nc=class{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let r=Jn.get(i);if(r)return e[Ls]=r;this.sheet=new s.CSSStyleSheet,Jn.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Ls]=this}mount(e,t){let i=this.sheet,s=0,r=0;for(let n=0;n-1&&(this.modules.splice(l,1),r--,l=-1),l==-1){if(this.modules.splice(r++,0,o),i)for(let a=0;a",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},oc=typeof navigator<"u"&&/Mac/.test(navigator.platform),lc=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Q=0;Q<10;Q++)Jt[48+Q]=Jt[96+Q]=String(Q);for(var Q=1;Q<=24;Q++)Jt[Q+111]="F"+Q;for(var Q=65;Q<=90;Q++)Jt[Q]=String.fromCharCode(Q+32),He[Q]=String.fromCharCode(Q);for(var Is in Jt)He.hasOwnProperty(Is)||(He[Is]=Jt[Is]);function ac(e){var t=!(oc&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||lc&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified")&&e.key||(e.shiftKey?He:Jt)[e.keyCode]||e.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function hc(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var r=i[s];typeof r=="string"?e.setAttribute(s,r):r!=null&&(e[s]=r)}t++}for(;t2),k={mac:eo||/Mac/.test(et.platform),windows:/Win/.test(et.platform),linux:/Linux|X11/.test(et.platform),ie:yi,ie_version:Zn?Ws.documentMode||6:Vs?+Vs[1]:Hs?+Hs[1]:0,gecko:_n,gecko_version:_n?+(/Firefox\/(\d+)/.exec(et.userAgent)||[0,0])[1]:0,chrome:!!zs,chrome_version:zs?+zs[1]:0,ios:eo,android:/Android\b/.test(et.userAgent),webkit:to,webkit_version:to?+(/\bAppleWebKit\/(\d+)/.exec(et.userAgent)||[0,0])[1]:0,safari:Fs,safari_version:Fs?+(/\bVersion\/(\d+(\.\d+)?)/.exec(et.userAgent)||[0,0])[1]:0,tabSize:Ws.documentElement.style.tabSize==null?"-moz-tab-size":"tab-size"};function qs(e,t){for(let i in e)i=="class"&&t.class?t.class+=" "+e.class:i=="style"&&t.style?t.style+=";"+e.style:t[i]=e[i];return t}var ki=Object.create(null);function Ks(e,t,i){if(e==t)return!0;e||(e=ki),t||(t=ki);let s=Object.keys(e),r=Object.keys(t);if(s.length-(i&&s.indexOf(i)>-1?1:0)!=r.length-(i&&r.indexOf(i)>-1?1:0))return!1;for(let n of s)if(n!=i&&(r.indexOf(n)==-1||e[n]!==t[n]))return!1;return!0}function cc(e,t){for(let i=e.attributes.length-1;i>=0;i--){let s=e.attributes[i].name;t[s]??e.removeAttribute(s)}for(let i in t){let s=t[i];i=="style"?e.style.cssText=s:e.getAttribute(i)!=s&&e.setAttribute(i,s)}}function io(e,t,i){let s=!1;if(t)for(let r in t)i&&r in i||(s=!0,r=="style"?e.style.cssText="":e.removeAttribute(r));if(i)for(let r in i)t&&t[r]==i[r]||(s=!0,r=="style"?e.style.cssText=i[r]:e.setAttribute(r,i[r]));return s}function uc(e){let t=Object.create(null);for(let i=0;i0?3e8:-4e8:t>0?1e8:-1e8,new Ve(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:r,end:n}=so(e,t);i=(r?t?-3e8:-1:5e8)-1,s=(n?t?2e8:1:-6e8)+1}return new Ve(e,i,s,t,e.widget||null,!0)}static line(e){return new $s(e)}static set(e,t=!1){return H.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};N.none=H.empty;var js=class ph extends N{constructor(t){let{start:i,end:s}=so(t);super(i?-1:5e8,s?1:-6e8,null,t),this.tagName=t.tagName||"span",this.attrs=t.class&&t.attributes?qs(t.attributes,{class:t.class}):t.class?{class:t.class}:t.attributes||ki}eq(t){return this==t||t instanceof ph&&this.tagName==t.tagName&&Ks(this.attrs,t.attrs)}range(t,i=t){if(t>=i)throw RangeError("Mark decorations may not be empty");return super.range(t,i)}};js.prototype.point=!1;var $s=class gh extends N{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof gh&&this.spec.class==t.spec.class&&Ks(this.spec.attributes,t.spec.attributes)}range(t,i=t){if(i!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,i)}};$s.prototype.mapMode=st.TrackBefore,$s.prototype.point=!0;var Ve=class mh extends N{constructor(t,i,s,r,n,o){super(i,s,n,t),this.block=r,this.isReplace=o,this.mapMode=r?i<=0?st.TrackBefore:st.TrackAfter:st.TrackDel}get type(){return this.startSide==this.endSide?this.startSide<=0?_.WidgetBefore:_.WidgetAfter:_.WidgetRange}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof mh&&fc(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,i=t){if(this.isReplace&&(t>i||t==i&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&i!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,i)}};Ve.prototype.point=!0;function so(e,t=!1){let{inclusiveStart:i,inclusiveEnd:s}=e;return i??(i=e.inclusive),s??(s=e.inclusive),{start:i??t,end:s??t}}function fc(e,t){return e==t||!!(e&&t&&e.compare(t))}function ve(e,t,i,s=0){let r=i.length-1;r>=0&&i[r]+s>=e?i[r]=Math.max(i[r],t):i.push(e,t)}var ro=class sn extends Xt{constructor(t,i){super(),this.tagName=t,this.attributes=i}eq(t){return t==this||t instanceof sn&&this.tagName==t.tagName&&Ks(this.attributes,t.attributes)}static create(t){return new sn(t.tagName,t.attributes||ki)}static set(t,i=!1){return H.of(t,i)}};ro.prototype.startSide=ro.prototype.endSide=-1;function ze(e){let t;return t=e.nodeType==11?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Us(e,t){return t?e==t||e.contains(t.nodeType==1?t:t.parentNode):!1}function Si(e,t){if(!t.anchorNode)return!1;try{return Us(e,t.anchorNode)}catch{return!1}}function Fe(e){return e.nodeType==3?je(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function qe(e,t,i,s){return i?no(e,t,i,s,-1)||no(e,t,i,s,1):!1}function Qt(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function Ci(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function no(e,t,i,s,r){for(;;){if(e==i&&t==s)return!0;if(t==(r<0?0:zt(e))){if(e.nodeName=="DIV")return!1;let n=e.parentNode;if(!n||n.nodeType!=1)return!1;t=Qt(e)+(r<0?0:1),e=n}else if(e.nodeType==1){if(e=e.childNodes[t+(r<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=r<0?zt(e):0}else return!1}}function zt(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Ke(e,t){let i=t?e.left:e.right;return{left:i,right:i,top:e.top,bottom:e.bottom}}function dc(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function oo(e,t){let i=t.width/e.offsetWidth,s=t.height/e.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.width-e.offsetWidth)<1)&&(i=1),(s>.995&&s<1.005||!isFinite(s)||Math.abs(t.height-e.offsetHeight)<1)&&(s=1),{scaleX:i,scaleY:s}}function pc(e,t,i,s,r,n,o,l){let a=e.ownerDocument,h=a.defaultView||window;for(let c=e,u=!1;c&&!u;)if(c.nodeType==1){let f,d=c==a.body,p=1,g=1;if(d)f=dc(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(u=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let M=c.getBoundingClientRect();({scaleX:p,scaleY:g}=oo(c,M)),f={left:M.left,right:M.left+c.clientWidth*p,top:M.top,bottom:M.top+c.clientHeight*g}}let m=0,v=0;if(r=="nearest")t.top0&&t.bottom>f.bottom+v&&(v=t.bottom-f.bottom+o)):t.bottom>f.bottom&&(v=t.bottom-f.bottom+o,i<0&&t.top-v0&&t.right>f.right+m&&(m=t.right-f.right+n)):t.right>f.right&&(m=t.right-f.right+n,i<0&&t.leftf.bottom||t.leftf.right)&&(t={left:Math.max(t.left,f.left),right:Math.min(t.right,f.right),top:Math.max(t.top,f.top),bottom:Math.min(t.bottom,f.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function gc(e){let t=e.ownerDocument,i,s;for(let r=e.parentNode;r&&!(r==t.body||i&&s);)if(r.nodeType==1)!s&&r.scrollHeight>r.clientHeight&&(s=r),!i&&r.scrollWidth>r.clientWidth&&(i=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:i,y:s}}var mc=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?zt(t):0),i,Math.min(e.focusOffset,i?zt(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}},ae=null;k.safari&&k.safari_version>=26&&(ae=!1);function lo(e){if(e.setActive)return e.setActive();if(ae)return e.focus(ae);let t=[];for(let i=e;i&&(t.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(e.focus(ae==null?{get preventScroll(){return ae={preventScroll:!0},!0}}:void 0),!ae){ae=!1;for(let i=0;iMath.max(1,e.scrollHeight-e.clientHeight-4)}function ho(e,t){for(let i=e,s=t;;){if(i.nodeType==3&&s>0)return{node:i,offset:s};if(i.nodeType==1&&s>0){if(i.contentEditable=="false")return null;i=i.childNodes[s-1],s=zt(i)}else if(i.parentNode&&!Ci(i))s=Qt(i),i=i.parentNode;else return null}}function co(e,t){for(let i=e,s=t;;){if(i.nodeType==3&&s=t){if(o.level==i)return n;(r<0||(s==0?e[r].level>o.level:s<0?o.fromt))&&(r=n)}}if(r<0)throw RangeError("Index out of range");return r}};function po(e,t){if(e.length!=t.length)return!1;for(let i=0;i=0;g-=3)if(Dt[g+1]==-d){let m=Dt[g+2],v=m&2?r:m&4?m&1?n:r:0;v&&(q[u]=q[Dt[g]]=v),l=g;break}}else{if(Dt.length==189)break;Dt[l++]=u,Dt[l++]=f,Dt[l++]=a}else if((p=q[u])==2||p==1){let g=p==r;a=g?0:1;for(let m=l-3;m>=0;m-=3){let v=Dt[m+2];if(v&2)break;if(g)Dt[m+2]|=2;else{if(v&4)break;Dt[m+2]|=4}}}}}function Ac(e,t,i,s){for(let r=0,n=s;r<=i.length;r++){let o=r?i[r-1].to:e,l=ra;)d==g&&(d=i[--p].from,g=p?i[p-1].to:e),q[--d]=f;a=c}else n=h,a++}}}function Xs(e,t,i,s,r,n,o){let l=s%2?2:1;if(s%2==r%2)for(let a=t,h=0;aa&&o.push(new Ft(a,g.from,d)),Js(e,g.direction==he==!(d%2)?s:s+1,r,g.inner,g.from,g.to,o),a=g.to),p=g.to}else{if(p==i||(c?q[p]!=l:q[p]==l))break;p++}f?Xs(e,a,p,s+1,r,f,o):at;){let c=!0,u=!1;if(!h||a>n[h-1].to){let g=q[a-1];g!=l&&(c=!1,u=g==16)}let f=!c&&l==1?[]:null,d=c?s:s+1,p=a;t:for(;;)if(h&&p==n[h-1].to){if(u)break t;let g=n[--h];if(!c)for(let m=g.from,v=h;;){if(m==t)break t;if(v&&n[v-1].to==m)m=n[--v].from;else{if(q[m-1]==l)break t;break}}f?f.push(g):(g.toq.length;)q[q.length]=256;let s=[],r=t==he?0:1;return Js(e,r,r,i,0,e.length,s),s}function go(e){return[new Ft(0,e,0)]}var mo="";function Tc(e,t,i,s,r){let n=s.head-e.from,o=Ft.find(t,n,s.bidiLevel??-1,s.assoc),l=t[o],a=l.side(r,i);if(n==a){let u=o+=r?1:-1;if(u<0||u>=t.length)return null;l=t[o=u],n=l.side(!r,i),a=l.side(r,i)}let h=ot(e.text,n,l.forward(r,i));(hl.to)&&(h=a),mo=e.text.slice(Math.min(n,h),Math.max(n,h));let c=o==(r?t.length-1:0)?null:t[o+(r?1:-1)];return c&&h==a&&c.level+(r?0:1)e.some(t=>t)}),Co=A.define({combine:e=>e.some(t=>t)}),Ao=A.define(),tr=class nn{constructor(t,i="nearest",s="nearest",r=5,n=5,o=!1){this.range=t,this.y=i,this.x=s,this.yMargin=r,this.xMargin=n,this.isSnapshot=o}map(t){return t.empty?this:new nn(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new nn(O.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},Ai=U.define({map:(e,t)=>e.map(t)}),Mo=U.define();function pt(e,t,i){let s=e.facet(xo);s.length?s[0](t):window.onerror&&window.onerror(String(t),i,void 0,void 0,t)||(i?console.error(i+":",t):console.error(t))}var qt=A.define({combine:e=>e.length?e[0]:!0}),Dc=0,be=A.define({combine(e){return e.filter((t,i)=>{for(let s=0;s{let a=[];return o&&a.push(Mi.of(h=>{let c=h.plugin(l);return c?o(c):N.none})),n&&a.push(n(l)),a})}static fromClass(t,i){return on.define((s,r)=>new t(s,r),i)}},er=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(pt(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){pt(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if((t=this.value)!=null&&t.destroy)try{this.value.destroy()}catch(i){pt(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},To=A.define(),ir=A.define(),Mi=A.define(),Oo=A.define(),sr=A.define(),$e=A.define(),Do=A.define();function Po(e,t){let i=e.state.facet(Do);if(!i.length)return i;let s=i.map(n=>n instanceof Function?n(e):n),r=[];return H.spans(s,t.from,t.to,{point(){},span(n,o,l,a){let h=n-t.from,c=o-t.from,u=r;for(let f=l.length-1;f>=0;f--,a--){let d=l[f].spec.bidiIsolate,p;if(d??(d=Oc(t.text,h,c)),a>0&&u.length&&(p=u[u.length-1]).to==h&&p.direction==d)p.to=c,u=p.inner;else{let g={from:h,to:c,direction:d,inner:[]};u.push(g),u=g.inner}}}}),r}var Bo=A.define();function rr(e){let t=0,i=0,s=0,r=0;for(let n of e.state.facet(Bo)){let o=n(e);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(i=Math.max(i,o.right)),o.top!=null&&(s=Math.max(s,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:t,right:i,top:s,bottom:r}}var Ue=A.define(),Kt=class ln{constructor(t,i,s,r){this.fromA=t,this.toA=i,this.fromB=s,this.toB=r}join(t){return new ln(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let i=t.length,s=this;for(;i>0;i--){let r=t[i-1];if(!(r.fromA>s.toA)){if(r.toAr.push(new Kt(n,o,l,a))),this.changedRanges=r}static create(t,i,s){return new vh(t,i,s)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},Pc=[],Y=class{constructor(e,t,i=0){this.dom=e,this.length=t,this.flags=i,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return Pc}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&cc(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let i=t;for(let s of this.children){if(s==e)return i;i+=s.length+s.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let i=Qt(this.dom),s=this.length?e>0:t>0;return new Zt(this.parent.dom,i+(s?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof Oi)return e;return null}static get(e){return e.cmTile}},Ti=class extends Y{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,i=null,s,r=(e==null?void 0:e.node)==t?e:null,n=0;for(let o of this.children){if(o.sync(e),n+=o.length+o.breakAfter,s=i?i.nextSibling:t.firstChild,r&&s!=o.dom&&(r.written=!0),o.dom.parentNode==t)for(;s&&s!=o.dom;)s=Ro(s);else t.insertBefore(o.dom,s);i=o.dom}for(s=i?i.nextSibling:t.firstChild,r&&s&&(r.written=!0);s;)s=Ro(s);this.length=n}};function Ro(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var Oi=class extends Ti{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=Y.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],i=this,s=0,r=0;;)if(s==i.children.length){if(!t.length)return;i=i.parent,i.breakAfter&&r++,s=t.pop()}else{let n=i.children[s++];if(n instanceof xe)t.push(s),i=n,s=0;else{let o=r+n.length,l=e(n,r);if(l!==void 0)return l;r=o+n.breakAfter}}}resolveBlock(e,t){let i,s=-1,r,n=-1;if(this.blockTiles((o,l)=>{let a=l+o.length;if(e>=l&&e<=a){if(o.isWidget()&&t>=-1&&t<=1){if(o.flags&32)return!0;o.flags&16&&(i=void 0)}(le||e==l&&(t>1?o.length:o.covers(-1)))&&(!r||!o.isWidget()&&r.isWidget())&&(r=o,n=e-l)}}),!i&&!r)throw Error("No tile at position "+e);return i&&t<0||!r?{tile:i,offset:s}:{tile:r,offset:n}}},xe=class wh extends Ti{constructor(t,i){super(t),this.wrapper=i}isBlock(){return!0}covers(t){return this.children.length?t<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(t,i){let s=new wh(i||document.createElement(t.tagName),t);return i||(s.flags|=4),s}},Di=class bh extends Ti{constructor(t,i){super(t),this.attrs=i}isLine(){return!0}static start(t,i,s){let r=new bh(i||document.createElement("div"),t);return(!i||!s)&&(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(t,i,s){let r=null,n=-1,o=null,l=-1;function a(c,u){for(let f=0,d=0;f=u&&(p.isComposite()?a(p,u-d):(!o||o.isHidden&&(i>0||s&&Ec(o,p)))&&(g>u||p.flags&32)?(o=p,l=u-d):(ds&&(t=s);let r=t,n=t,o=0;t==0&&i<0||t==s&&i>=0?k.chrome||k.gecko||(t?(r--,o=1):n=0)?0:l.length-1];return k.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,h=>h.width)||a),o?Ke(a,o<0):a||null}static of(t,i){let s=new yh(i||document.createTextNode(t),t);return i||(s.flags|=2),s}},Ye=class kh extends Y{constructor(t,i,s,r){super(t,i,r),this.widget=s}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(t){return this.flags&48?!1:(this.flags&(t<0?64:128))>0}coordsIn(t,i){return this.coordsInWidget(t,i,!1)}coordsInWidget(t,i,s){let r=this.widget.coordsAt(this.dom,t,i);if(r)return r;if(s)return Ke(this.dom.getBoundingClientRect(),this.length?t==0:i<=0);{let n=this.dom.getClientRects(),o=null;if(!n.length)return null;let l=this.flags&16?!0:this.flags&32?!1:t>0;for(let a=l?n.length-1:0;o=n[a],!(t>0?a==0:a==n.length-1||o.top0;)if(s.isComposite())if(n){if(!e)break;i&&i.break(),e--,n=!1}else if(r==s.children.length){if(!e&&!o.length)break;i&&i.leave(s),n=!!s.breakAfter,{tile:s,index:r}=o.pop(),r++}else{let l=s.children[r],a=l.breakAfter;(t>0?l.length<=e:l.length=0;o--){let l=t.marks[o],a=s.lastChild;if(a instanceof gt&&a.mark.eq(l.mark))a.dom!=l.dom&&a.setDOM(nr(l.dom)),s=a;else{if(this.cache.reused.get(l)){let c=Y.get(l.dom);c&&c.setDOM(nr(l.dom))}let h=gt.of(l.mark,l.dom);s.append(h),s=h}this.cache.reused.set(l,2)}let r=Y.get(e.text);r&&this.cache.reused.set(r,2);let n=new Ge(e.text,e.text.nodeValue);n.flags|=8,s.append(n)}addInlineWidget(e,t,i){let s=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);s||this.flushBuffer();let r=this.ensureMarks(t,i);!s&&!(e.flags&16)&&r.append(this.getBuffer(1)),r.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,i){this.flushBuffer(),this.ensureMarks(t,i).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var s;e||(e=Lo);let i=Di.start(e,t||((s=this.cache.find(Di))==null?void 0:s.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=i)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var s;let i=this.curLine;for(let r=e.length-1;r>=0;r--){let n=e[r],o;if(t>0&&(o=i.lastChild)&&o instanceof gt&&o.mark.eq(n))i=o,t--;else{let l=gt.of(n,(s=this.cache.find(gt,a=>a.mark.eq(n)))==null?void 0:s.dom);i.append(l),i=l,t=0}}return i}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!No(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(k.ios&&No(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(or,0,32)||new Ye(or.toDOM(),0,or,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to=this.pos){let t=new Nc(e.from,e.to,e.value,e.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-t.rank||this.wrappers[i-1].to-t.to)<0;)i--;this.wrappers.splice(i,0,t)}this.wrapperPos=this.pos}getBlockPos(){var t;this.updateBlockWrappers();let e=this.root;for(let i of this.wrappers){let s=e.lastChild;if(i.fromn.wrapper.eq(i.wrapper)))==null?void 0:t.dom);e.append(r),e=r}}return e}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),i=this.cache.find(Pi,void 0,1);return i&&(i.flags=t),i||new Pi(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},Ic=class{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:s,lineBreak:r,done:n}=this.cursor.next(this.skipCount);if(this.skipCount=0,n)throw Error("Ran out of text content when drawing inline views");this.text=s;let o=this.textOff=Math.min(e,s.length);return r?null:s.slice(0,o)}let t=Math.min(this.text.length,this.textOff+e),i=this.text.slice(this.textOff,t);return this.textOff=t,i}},Bi=[Ye,Di,Ge,gt,Pi,xe,Oi];for(let e=0;e[]),this.index=Bi.map(()=>0),this.reused=new Map}add(e){e.demo&&console.log("Add widget to cache");let t=e.constructor.bucket,i=this.buckets[t];i.length<6?i.push(e):i[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,i=2){let s=e.bucket,r=this.buckets[s],n=this.index[s];for(let o=r.length-1;o>=0;o--){let l=(o+n)%r.length,a=r[l];if((!t||t(a))&&!this.reused.has(a))return r.splice(l,1),l{if(this.cache.add(n),n.isComposite())return!1},enter:n=>this.cache.add(n),leave:()=>{},break:()=>{}}}run(e,t){let i=t&&this.getCompositionContext(t.text);for(let s=0,r=0,n=0;;){let o=ns){let a=l-s;this.preserve(a,!n,!o),s=l,r+=a}if(!o)break;t&&o.fromA<=t.range.fromA&&o.toA>=t.range.toA?(this.forward(o.fromA,t.range.fromA),this.emit(r,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,i),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,o.toA),this.emit(t.range.toB,o.toB)):(this.forward(o.fromA,o.toA),this.emit(r,o.toB)),r=o.toB,s=o.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,i){let s=Fc(this.old),r=this.openMarks;this.old.advance(e,i?1:-1,{skip:(n,o,l)=>{if(n.isWidget())if(this.openWidget)this.builder.continueWidget(l-o);else{let a=l>0||o{n.isLine()?this.builder.addLineStart(n.attrs,this.cache.maybeReuse(n)):(this.cache.add(n),n instanceof gt&&s.unshift(n.mark)),this.openWidget=!1},leave:n=>{n.isLine()?s.length&&(s.length=r=0):n instanceof gt&&(s.shift(),r=Math.min(r,s.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let i=null,s=this.builder,r=0,n=H.spans(this.decorations,e,t,{point:(o,l,a,h,c,u)=>{if(a instanceof Ve){if(this.disallowBlockEffectsFor[u]){if(a.block)throw RangeError("Block decorations may not be specified via plugins");if(l>this.view.state.doc.lineAt(o).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=h.length,c>h.length)s.continueWidget(l-o);else{let f=a.widget||(a.block?ye.block:ye.inline),d=Vc(a),p=this.cache.findWidget(f,l-o,d)||Ye.of(f,this.view,l-o,d);a.block?(a.startSide>0&&s.addLineStartIfNotCovered(i),s.addBlockWidget(p)):(s.ensureLine(i),s.addInlineWidget(p,h,c))}i=null}else i=zc(i,a);l>o&&this.text.skip(l-o)},span:(o,l,a,h)=>{for(let c=o;cr,this.openMarks=n}forward(e,t){t-e<=10?this.old.advance(t-e,1,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,1,this.reuseWalker))}getCompositionContext(e){let t=[],i=null;for(let s=e.parentNode;;s=s.parentNode){let r=Y.get(s);if(s==this.view.contentDOM)break;r instanceof gt?t.push(r):r!=null&&r.isLine()?i=r:s.nodeName=="DIV"&&!i&&s!=this.view.contentDOM?i=new Di(s,Lo):t.push(gt.of(new js({tagName:s.nodeName.toLowerCase(),attributes:uc(s)}),s))}return{line:i,marks:t}}};function No(e,t){let i=s=>{for(let r of s.children)if((t?r.isText():r.length)||i(r))return!0;return!1};return i(e)}function Vc(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}var Lo={class:"cm-line"};function zc(e,t){let i=t.spec.attributes,s=t.spec.class;return!i&&!s||(e||(e={class:"cm-line"}),i&&qs(i,e),s&&(e.class+=" "+s)),e}function Fc(e){let t=[];for(let i=e.parents.length;i>1;i--){let s=i==e.parents.length?e.tile:e.parents[i].tile;s instanceof gt&&t.push(s.mark)}return t}function nr(e){let t=Y.get(e);return t&&t.setDOM(e.cloneNode()),e}var ye=class extends Ot{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};ye.inline=new ye("span"),ye.block=new ye("div");var or=new class extends Ot{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}},Io=class{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=N.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Oi(e,e.contentDOM),this.updateInner([new Kt(0,0,0,e.state.doc.length)],null)}update(e){var a;let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every(({fromA:h,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((a=this.domChanged)!=null&&a.newSel?i=this.domChanged.newSel.head:!Jc(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let s=i>-1?Kc(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){let{from:h,to:c}=this.hasComposition;t=new Kt(h,c,e.changes.mapPos(h,-1),e.changes.mapPos(c,1)).addToSet(t.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(k.ie||k.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,n=this.blockWrappers;this.updateDeco();let o=Uc(r,this.decorations,e.changes);o.length&&(t=Kt.extendWithRanges(t,o));let l=Yc(n,this.blockWrappers,e.changes);return l.length&&(t=Kt.extendWithRanges(t,l)),s&&!t.some(h=>h.fromA<=s.range.fromA&&h.toA>=s.range.toA)&&(t=s.range.addToSet(t.slice())),this.tile.flags&2&&t.length==0?!1:(this.updateInner(t,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(t||e.length){let n=this.tile,o=new Hc(this.view,n,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=o.run(e,t),lr(n,o.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=k.chrome||k.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(r),r&&(r.written||i.selectionRange.focusNode!=r.node||!this.tile.dom.contains(r.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to-1)&&Si(i,this.view.observer.selectionRange)&&!(s&&i.contains(s));if(!(r||t||n))return;let o=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a,h;if(l.empty?h=a=this.inlineDOMNearPos(l.anchor,l.assoc||1):(h=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),a=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),k.gecko&&l.empty&&!this.hasComposition&&qc(a)){let u=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(u,a.node.childNodes[a.offset]||null)),a=h=new Zt(u,0),o=!0}let c=this.view.observer.selectionRange;(o||!c.focusNode||(!qe(a.node,a.offset,c.anchorNode,c.anchorOffset)||!qe(h.node,h.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,l))&&(this.view.observer.ignore(()=>{k.android&&k.chrome&&i.contains(c.focusNode)&&Xc(c.focusNode,i)&&(i.blur(),i.focus({preventScroll:!0}));let u=ze(this.view.root);if(u)if(l.empty){if(k.gecko){let f=jc(a.node,a.offset);if(f&&f!=3){let d=(f==1?ho:co)(a.node,a.offset);d&&(a=new Zt(d.node,d.offset))}}u.collapse(a.node,a.offset),l.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=l.bidiLevel)}else if(u.extend){u.collapse(a.node,a.offset);try{u.extend(h.node,h.offset)}catch{}}else{let f=document.createRange();l.anchor>l.head&&([a,h]=[h,a]),f.setEnd(h.node,h.offset),f.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(f)}n&&this.view.root.activeElement==i&&(i.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(a,h)),this.impreciseAnchor=a.precise?null:new Zt(c.anchorNode,c.anchorOffset),this.impreciseHead=h.precise?null:new Zt(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&qe(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=ze(e.root),{anchorNode:s,anchorOffset:r}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let n=this.lineAt(t.head,t.assoc);if(!n)return;let o=n.posAtStart;if(t.head==o||t.head==o+n.length)return;let l=this.coordsAt(t.head,-1),a=this.coordsAt(t.head,1);if(!l||!a||l.bottom>a.top)return;let h=this.domAtPos(t.head+t.assoc,t.assoc);i.collapse(h.node,h.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&i.collapse(s,r)}posFromDOM(e,t){let i=this.tile.nearest(e);if(!i)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let s=i.posAtStart;if(i.isComposite()){let r;if(e==i.dom)r=i.dom.childNodes[t];else{let n=zt(e)==0?0:t==0?-1:1;for(;;){let o=e.parentNode;if(o==i.dom)break;n==0&&o.firstChild!=o.lastChild&&(n=e==o.firstChild?-1:1),e=o}r=n<0?e:e.nextSibling}if(r==i.dom.firstChild)return s;for(;r&&!Y.get(r);)r=r.nextSibling;if(!r)return s+i.length;for(let n=0,o=s;;n++){let l=i.children[n];if(l.dom==r)return o;o+=l.length+l.breakAfter}}else return i.isText()?e==i.dom?s+t:s+(t?i.length:0):s}domAtPos(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.domPosFor(e,t):i.domIn(s,t)}inlineDOMNearPos(e,t){let i,s=-1,r=!1,n,o=-1,l=!1;return this.tile.blockTiles((a,h)=>{if(a.isWidget()){if(a.flags&32&&h>=e)return!0;a.flags&16&&(r=!0)}else{let c=h+a.length;if(h<=e&&(i=a,s=e-h,r=c=e&&!n&&(n=a,o=e-h,l=h>e),h>e&&n)return!0}}),!i&&!n?this.domAtPos(e,t):(r&&n?i=null:l&&i&&(n=null),i&&t<0||!n?i.domIn(s,t):n.domIn(o,t))}coordsAt(e,t){let{tile:i,offset:s}=this.tile.resolveBlock(e,t);return i.isWidget()?i.widget instanceof ar?null:i.coordsInWidget(s,t,!0):i.coordsIn(s,t)}lineAt(e,t){let{tile:i}=this.tile.resolveBlock(e,t);return i.isLine()?i:null}coordsForChar(e){let{tile:t,offset:i}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function s(r,n){if(r.isComposite())for(let o of r.children){if(o.length>=n){let l=s(o,n);if(l)return l}if(n-=o.length,n<0)break}else if(r.isText()&&nMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==j.LTR,a=0,h=(c,u,f)=>{for(let d=0;ds);d++){let p=c.children[d],g=u+p.length,m=p.dom.getBoundingClientRect(),{height:v}=m;if(f&&!d&&(a+=m.top-f.top),p instanceof xe)g>i&&h(p,u,m);else if(u>=i&&(a>0&&t.push(-a),t.push(v+a),a=0,n)){let M=p.dom.lastChild,C=M?Fe(M):[];if(C.length){let S=C[C.length-1],x=l?S.right-m.left:m.right-S.left;x>o&&(o=x,this.minWidth=r,this.minWidthFrom=u,this.minWidthTo=g)}}f&&d==c.children.length-1&&(a+=f.bottom-m.bottom),u=g+p.breakAfter}};return h(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?j.RTL:j.LTR}measureTextSize(){let e=this.tile.blockTiles(n=>{if(n.isLine()&&n.children.length&&n.length<=20){let o=0,l;for(let a of n.children){if(!a.isText()||/[^ -~]/.test(a.text))return;let h=Fe(a.dom);if(h.length!=1)return;o+=h[0].width,l=h[0].height}if(o)return{lineHeight:n.dom.getBoundingClientRect().height,charWidth:o/n.length,textHeight:l}}});if(e)return e;let t=document.createElement("div"),i,s,r;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let n=Fe(t.firstChild)[0];i=t.getBoundingClientRect().height,s=n&&n.width?n.width/27:7,r=n&&n.height?n.height:i,t.remove()}),{lineHeight:i,charWidth:s,textHeight:r}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let r=s==t.viewports.length?null:t.viewports[s],n=r?r.from-1:this.view.state.doc.length;if(n>i){let o=(t.lineBlockAt(n).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(N.replace({widget:new ar(o),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!r)break;i=r.to+1}return N.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Mi).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),i=!1,s=this.view.state.facet(sr).map((r,n)=>{let o=typeof r=="function";return o&&(i=!0),o?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(H.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];etypeof r=="function"?r(this.view):r)}scrollIntoView(e){if(e.isSnapshot){let a=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=a.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let a of this.view.state.facet(Ao))try{if(a(this.view,e.range,e))return!0}catch(h){pt(this.view.state,h,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let r=rr(this.view),n={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;pc(this.view.scrollDOM,n,t.headi.isWidget()||i.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){lr(this.tile)}};function lr(e,t){let i=t==null?void 0:t.get(e);if(i!=1){i??e.destroy();for(let s of e.children)lr(s,t)}}function qc(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}function Wo(e,t){let i=e.observer.selectionRange;if(!i.focusNode)return null;let s=ho(i.focusNode,i.focusOffset),r=co(i.focusNode,i.focusOffset),n=s||r;if(r&&s&&r.node!=s.node){let l=Y.get(r.node);if(!l||l.isText()&&l.text!=r.node.nodeValue)n=r;else if(e.docView.lastCompositionAfterCursor){let a=Y.get(s.node);!a||a.isText()&&a.text!=s.node.nodeValue||(n=r)}}if(e.docView.lastCompositionAfterCursor=n!=s,!n)return null;let o=t-n.offset;return{from:o,to:o+n.node.nodeValue.length,node:n.node}}function Kc(e,t,i){let s=Wo(e,i);if(!s)return null;let{node:r,from:n,to:o}=s,l=r.nodeValue;if(/[\n\r]/.test(l)||e.state.doc.sliceString(s.from,s.to)!=l)return null;let a=t.invertedDesc;return{range:new Kt(a.mapPos(n),a.mapPos(o),n,o),text:r}}function jc(e,t){return e.nodeType==1?(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{st.from&&(i=!0)}),i}var ar=class extends Ot{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}};function Qc(e,t,i=1){let s=e.charCategorizer(t),r=e.doc.lineAt(t),n=t-r.from;if(r.length==0)return O.cursor(t);n==0?i=1:n==r.length&&(i=-1);let o=n,l=n;i<0?o=ot(r.text,n,!1):l=ot(r.text,n);let a=s(r.text.slice(o,l));for(;o>0;){let h=ot(r.text,o,!1);if(s(r.text.slice(h,o))!=a)break;o=h}for(;le.defaultLineHeight*1.5){let l=e.viewState.heightOracle.textHeight,a=Math.floor((r-i.top-(e.defaultLineHeight-l)*.5)/l);n+=a*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(i.from,i.to);return i.from+Rs(o,n,e.state.tabSize)}function hr(e,t,i){let s=e.lineBlockAt(t);if(Array.isArray(s.type)){let r;for(let n of s.type){if(n.from>t)break;if(!(n.tot)return n;(!r||n.type==_.Text&&(r.type!=n.type||(i<0?n.fromt)))&&(r=n)}}return r||s}return s}function _c(e,t,i,s){let r=hr(e,t.head,t.assoc||-1),n=!s||r.type!=_.Text||!(e.lineWrapping||r.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head);if(n){let o=e.dom.getBoundingClientRect(),l=e.textDirectionAt(r.from),a=e.posAtCoords({x:i==(l==j.LTR)?o.right-1:o.left+1,y:(n.top+n.bottom)/2});if(a!=null)return O.cursor(a,i?-1:1)}return O.cursor(i?r.to:r.from,i?-1:1)}function Ho(e,t,i,s){let r=e.state.doc.lineAt(t.head),n=e.bidiSpans(r),o=e.textDirectionAt(r.from);for(let l=t,a=null;;){let h=Tc(r,n,o,l,i),c=mo;if(!h){if(r.number==(i?e.state.doc.lines:1))return l;c=` +`,r=e.state.doc.line(r.number+(i?1:-1)),n=e.bidiSpans(r),h=e.visualLineSide(r,!i)}if(a){if(!a(c))return l}else{if(!s)return h;a=s(c)}l=h}}function tu(e,t,i){let s=e.state.charCategorizer(t),r=s(i);return n=>{let o=s(n);return r==Ht.Space&&(r=o),r==o}}function eu(e,t,i,s){let r=t.head,n=i?1:-1;if(r==(i?e.state.doc.length:0))return O.cursor(r,t.assoc);let o=t.goalColumn,l,a=e.contentDOM.getBoundingClientRect(),h=e.coordsAtPos(r,t.assoc||-1),c=e.documentTop;if(h)o??(o=h.left-a.left),l=n<0?h.top:h.bottom;else{let d=e.viewState.lineBlockAt(r);o??(o=Math.min(a.right-a.left,e.defaultCharacterWidth*(r-d.from))),l=(n<0?d.top:d.bottom)+c}let u=a.left+o,f=s??e.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=ur(e,{x:u,y:l+(f+d)*n},!1,n);return O.cursor(p.pos,p.assoc,void 0,o)}}function Xe(e,t,i){for(;;){let s=0;for(let r of e)r.between(t-1,t+1,(n,o,l)=>{if(t>n&&tr(e)),i.from,t.head>i.from?-1:1);return s==i.from?i:O.cursor(s,se.viewState.docHeight)return new Pt(e.state.doc.length,-1);if(h=e.elementAtHeight(a),s==null)break;if(h.type==_.Text){let f=e.docView.coordsAt(s<0?h.from:h.to,s);if(f&&(s<0?f.top<=a+n:f.bottom>=a+n))break}let u=e.viewState.heightOracle.textHeight/2;a=s>0?h.bottom+u:h.top-u}if(e.viewport.from>=h.to||e.viewport.to<=h.from){if(i)return null;if(h.type==_.Text){let u=Zc(e,r,h,o,l);return new Pt(u,u==h.from?1:-1)}}if(h.type!=_.Text)return a<(h.top+h.bottom)/2?new Pt(h.from,1):new Pt(h.to,-1);let c=e.docView.lineAt(h.from,2);return(!c||c.length!=h.length)&&(c=e.docView.lineAt(h.from,-2)),zo(e,c,h.from,o,l)}function zo(e,t,i,s,r){let n=-1,o=null,l=1e9,a=1e9,h=r,c=r,u=(f,d)=>{for(let p=0;ps?g.left-s:g.rightr?g.top-r:g.bottom=h&&(h=Math.min(g.top,h),c=Math.max(g.bottom,c),v=0),(n<0||(v-a||m-l)<0)&&(n>=0&&a&&l=h+2?a=0:(n=d,l=m,a=v,o=g))}};if(t.isText()){for(let f=0;f(o.left+o.right)/2==(Fo(e,n+i)==j.LTR)?new Pt(i+ot(t.text,n),-1):new Pt(i+n,1)}else{if(!t.length)return new Pt(i,1);for(let p=0;p(o.left+o.right)/2==(Fo(e,n+i)==j.LTR)?new Pt(d+f.length,-1):new Pt(d,1)}}function Fo(e,t){let i=e.state.doc.lineAt(t);return e.bidiSpans(i)[Ft.find(e.bidiSpans(i),t-i.from,-1,1)].dir}var Je="\uFFFF",iu=class{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(G.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Je}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let s=e;;){this.findPointBefore(i,s);let r=this.text.length;this.readNode(s);let n=Y.get(s),o=s.nextSibling;if(o==t){n!=null&&n.breakAfter&&!o&&i!=this.view.contentDOM&&this.lineBreak();break}let l=Y.get(o);(n&&l?n.breakAfter:(n?n.breakAfter:Ci(s))||Ci(o)&&(s.nodeName!="BR"||n!=null&&n.isWidget())&&this.text.length>r)&&!ru(o,t)&&this.lineBreak(),s=o}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,n=1,o;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,i),n=this.lineSeparator.length):(o=s.exec(t))&&(r=o.index,n=o[0].length),this.append(t.slice(i,r<0?t.length:r)),r<0)break;if(this.lineBreak(),n>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=n-1);i=r+n}}readNode(e){let t=Y.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(su(e,i.node,i.offset)?t:0))}};function su(e,t,i){for(;;){if(!t||i-1;let{impreciseHead:r,impreciseAnchor:n}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=Ko(e.docView.tile,t,i,0))){let o=r||n?[]:lu(e),l=new iu(o,e);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=au(o,this.bounds.from)}else{let o=e.observer.selectionRange,l=r&&r.node==o.focusNode&&r.offset==o.focusOffset||!Us(e.contentDOM,o.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(o.focusNode,o.focusOffset),a=n&&n.node==o.anchorNode&&n.offset==o.anchorOffset||!Us(e.contentDOM,o.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(o.anchorNode,o.anchorOffset),h=e.viewport;if((k.ios||k.chrome)&&e.state.selection.main.empty&&l!=a&&(h.from>0||h.to-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(O.range(a,l)):this.newSel=O.single(a,l)}}};function Ko(e,t,i,s){if(e.isComposite()){let r=-1,n=-1,o=-1,l=-1;for(let a=0,h=s,c=s;ai)return Ko(u,t,i,h);if(f>=t&&r==-1&&(r=a,n=h),h>i&&u.dom.parentNode==e.dom){o=a,l=c;break}c=f,h=f+u.breakAfter}return{from:n,to:l<0?s+e.length:l,startDOM:(r?e.children[r-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:o=0?e.children[o].dom:null}}else return e.isText()?{from:s,to:s+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function jo(e,t){let i,{newSel:s}=t,r=e.state.selection.main,n=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:l}=t.bounds,a=r.from,h=null;(n===8||k.android&&t.text.length=r.from&&i.to<=r.to&&(i.from!=r.from||i.to!=r.to)&&r.to-r.from-(i.to-i.from)<=4?i={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,i.from).append(i.insert).append(e.state.doc.slice(i.to,r.to))}:e.state.doc.lineAt(r.from).toDate.now()-50?i={from:r.from,to:r.to,insert:e.state.toText(e.inputState.insertingText)}:k.chrome&&i&&i.from==i.to&&i.from==r.head&&i.insert.toString()==` + `&&e.lineWrapping&&(s&&(s=O.single(s.main.anchor-1,s.main.head-1)),i={from:r.from,to:r.to,insert:W.of([" "])}),i)return fr(e,i,s,n);if(s&&!s.main.eq(r)){let o=!1,l="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(o=!0),l=e.inputState.lastSelectionOrigin,l=="select.pointer"&&(s=Vo(e.state.facet($e).map(a=>a(e)),s))),e.dispatch({selection:s,scrollIntoView:o,userEvent:l}),!0}else return!1}function fr(e,t,i,s=-1){if(k.ios&&e.inputState.flushIOSKey(t))return!0;let r=e.state.selection.main;if(k.android&&(t.to==r.to&&(t.from==r.from||t.from==r.from-1&&e.state.sliceDoc(t.from,r.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&we(e.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&t.insert.length==0||s==8&&t.insert.lengthr.head)&&we(e.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&t.insert.length==0&&we(e.contentDOM,"Delete",46)))return!0;let n=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,l=()=>o||(o=ou(e,t,i));return e.state.facet(yo).some(a=>a(e,t.from,t.to,n,l))||e.dispatch(l()),!0}function ou(e,t,i){let s,r=e.state,n=r.selection.main,o=-1;if(t.from==t.to&&t.fromn.to){let a=t.fromu(e)),h,a);t.from==c&&(o=c)}if(o>-1)s={changes:t,selection:O.cursor(t.from+t.insert.length,-1)};else if(t.from>=n.from&&t.to<=n.to&&t.to-t.from>=(n.to-n.from)/3&&(!i||i.main.empty&&i.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let a=n.fromt.to?r.sliceDoc(t.to,n.to):"";s=r.replaceSelection(e.state.toText(a+t.insert.sliceString(0,void 0,e.state.lineBreak)+h))}else{let a=r.changes(t),h=i&&i.main.to<=a.newLength?i.main:void 0;if(r.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=n.to+10&&t.to>=n.to-10){let c=e.state.sliceDoc(t.from,t.to),u,f=i&&Wo(e,i.main.head);if(f){let p=t.insert.length-(t.to-t.from);u={from:f.from,to:f.to-p}}else u=e.state.doc.lineAt(n.head);let d=n.to-t.to;s=r.changeByRange(p=>{if(p.from==n.from&&p.to==n.to)return{changes:a,range:h||p.map(a)};let g=p.to-d,m=g-c.length;if(e.state.sliceDoc(m,g)!=c||g>=u.from&&m<=u.to)return{range:p};let v=r.changes({from:m,to:g,insert:t.insert}),M=p.to-n.to;return{changes:v,range:h?O.range(Math.max(0,h.anchor+M),Math.max(0,h.head+M)):p.map(v)}})}else s={changes:a,selection:h&&r.selection.replaceRange(h)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),r.update(s,{userEvent:l,scrollIntoView:!0})}function $o(e,t,i,s){let r=Math.min(e.length,t.length),n=0;for(;n0&&l>0&&e.charCodeAt(o-1)==t.charCodeAt(l-1);)o--,l--;if(s=="end"){let a=Math.max(0,n-Math.min(o,l));i-=o+a-n}if(o=o?n-i:0;n-=a,l=n+(l-o),o=n}else if(l=l?n-i:0;n-=a,o=n+(o-l),l=n}return{from:n,toA:o,toB:l}}function lu(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:i,anchorOffset:s,focusNode:r,focusOffset:n}=e.observer.selectionRange;return i&&(t.push(new qo(i,s)),(r!=i||n!=s)&&t.push(new qo(r,n))),t}function au(e,t){if(e.length==0)return null;let i=e[0].pos,s=e.length==2?e[1].pos:i;return i>-1&&s>-1?O.single(i+t,s+t):null}var hu=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,k.safari&&e.contentDOM.addEventListener("input",()=>null),k.gecko&&Cu(e.contentDOM.ownerDocument)}handleEvent(e){!vu(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState==0?this.runHandlers(e.type,e):Promise.resolve().then(()=>this.runHandlers(e.type,e)))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=cu(e),i=this.handlers,s=this.view.contentDOM;for(let r in t)if(r!="scroll"){let n=!t[r].handlers.length,o=i[r];o&&n!=!o.handlers.length&&(s.removeEventListener(r,this.handleEvent),o=null),o||s.addEventListener(r,this.handleEvent,{passive:n})}for(let r in i)r!="scroll"&&!t[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&Yo.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),k.android&&k.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return k.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=Go.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||uu.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:k.safari&&!k.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function Uo(e,t){return(i,s)=>{try{return t.call(e,s,i)}catch(r){pt(i.state,r)}}}function cu(e){let t=Object.create(null);function i(s){return t[s]||(t[s]={observers:[],handlers:[]})}for(let s of e){let r=s.spec,n=r&&r.plugin.domEventHandlers,o=r&&r.plugin.domEventObservers;if(n)for(let l in n){let a=n[l];a&&i(l).handlers.push(Uo(s.value,a))}if(o)for(let l in o){let a=o[l];a&&i(l).observers.push(Uo(s.value,a))}}for(let s in yt)i(s).handlers.push(yt[s]);for(let s in mt)i(s).observers.push(mt[s]);return t}var Go=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],uu="dthko",Yo=[16,17,18,20,91,92,224,225],Ei=6;function Ri(e){return Math.max(0,e)*.7+8}function fu(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}var du=class{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=gc(e.contentDOM),this.atoms=e.state.facet($e).map(n=>n(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(G.allowMultipleSelections)&&pu(e,t),this.dragging=mu(e,t)&&el(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&fu(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,r=0,n=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:n}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:o}=this.scrollParents.y.getBoundingClientRect());let l=rr(this.view);e.clientX-l.left<=s+Ei?t=-Ri(s-e.clientX):e.clientX+l.right>=n-Ei&&(t=Ri(e.clientX-n)),e.clientY-l.top<=r+Ei?i=-Ri(r-e.clientY):e.clientY+l.bottom>=o-Ei&&(i=Ri(e.clientY-o)),this.setScrollSpeed(t,i)}up(e){this.dragging??this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,i=Vo(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function pu(e,t){let i=e.state.facet(vo);return i.length?i[0](t):k.mac?t.metaKey:t.ctrlKey}function gu(e,t){let i=e.state.facet(wo);return i.length?i[0](t):k.mac?!t.altKey:!t.ctrlKey}function mu(e,t){let{main:i}=e.state.selection;if(i.empty)return!1;let s=ze(e.root);if(!s||s.rangeCount==0)return!0;let r=s.getRangeAt(0).getClientRects();for(let n=0;n=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function vu(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let i=t.target,s;i!=e.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(s=Y.get(i))&&s.isWidget()&&!s.isHidden&&s.widget.ignoreEvent(t))return!1;return!0}var yt=Object.create(null),mt=Object.create(null),Xo=k.ie&&k.ie_version<15||k.ios&&k.webkit_version<604;function wu(e){let t=e.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{e.focus(),i.remove(),Jo(e,i.value)},50)}function Ni(e,t,i){for(let s of e.facet(t))i=s(i,e);return i}function Jo(e,t){t=Ni(e.state,Zs,t);let{state:i}=e,s,r=1,n=i.toText(t),o=n.lines==i.selection.ranges.length;if(dr!=null&&i.selection.ranges.every(l=>l.empty)&&dr==n.toString()){let l=-1;s=i.changeByRange(a=>{let h=i.doc.lineAt(a.from);if(h.from==l)return{range:a};l=h.from;let c=i.toText((o?n.line(r++).text:t)+i.lineBreak);return{changes:{from:h.from,insert:c},range:O.cursor(a.from+c.length)}})}else s=o?i.changeByRange(l=>{let a=n.line(r++);return{changes:{from:l.from,to:l.to,insert:a.text},range:O.cursor(l.from+a.length)}}):i.replaceSelection(n);e.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}mt.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},yt.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&e.inputState.tabFocusMode!=0&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),mt.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},mt.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},yt.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let s of e.state.facet(bo))if(i=s(e,t),i)break;if(!i&&t.button==0&&(i=xu(e,t)),i){let s=!e.hasFocus;e.inputState.startMouseSelection(new du(e,t,i,s)),s&&e.observer.ignore(()=>{lo(e.contentDOM);let n=e.root.activeElement;n&&!n.contains(e.contentDOM)&&n.blur()});let r=e.inputState.mouseSelection;if(r)return r.start(t),r.dragging===!1}else e.inputState.setSelectionOrigin("select.pointer");return!1};function Qo(e,t,i,s){if(s==1)return O.cursor(t,i);if(s==2)return Qc(e.state,t,i);{let r=e.docView.lineAt(t,i),n=e.state.doc.lineAt(r?r.posAtEnd:t),o=r?r.posAtStart:n.from,l=r?r.posAtEnd:n.to;return lDate.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(_o+1)%3:1}function xu(e,t){let i=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),s=el(t),r=e.state.selection;return{update(n){n.docChanged&&(i.pos=n.changes.mapPos(i.pos),r=r.map(n.changes))},get(n,o,l){let a=e.posAndSideAtCoords({x:n.clientX,y:n.clientY},!1),h,c=Qo(e,a.pos,a.assoc,s);if(i.pos!=a.pos&&!o){let u=Qo(e,i.pos,i.assoc,s),f=Math.min(u.from,c.from),d=Math.max(u.to,c.to);c=f1&&(h=yu(r,a.pos))?h:l?r.addRange(c):O.create([c])}}}function yu(e,t){for(let i=0;i=t)return O.create(e.ranges.slice(0,i).concat(e.ranges.slice(i+1)),e.mainIndex==i?0:e.mainIndex-(e.mainIndex>i?1:0))}return null}yt.dragstart=(e,t)=>{let{selection:{main:i}}=e.state;if(t.target.draggable){let r=e.docView.tile.nearest(t.target);if(r&&r.isWidget()){let n=r.posAtStart,o=n+r.length;(n>=i.to||o<=i.from)&&(i=O.range(n,o))}}let{inputState:s}=e;return s.mouseSelection&&(s.mouseSelection.dragging=!0),s.draggedContent=i,t.dataTransfer&&(t.dataTransfer.setData("Text",Ni(e.state,_s,e.state.sliceDoc(i.from,i.to))),t.dataTransfer.effectAllowed="copyMove"),!1},yt.dragend=e=>(e.inputState.draggedContent=null,!1);function il(e,t,i,s){if(i=Ni(e.state,Zs,i),!i)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:n}=e.inputState,o=s&&n&&gu(e,t)?{from:n.from,to:n.to}:null,l={from:r,insert:i},a=e.state.changes(o?[o,l]:l);e.focus(),e.dispatch({changes:a,selection:{anchor:a.mapPos(r,-1),head:a.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}yt.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let i=t.dataTransfer.files;if(i&&i.length){let s=Array(i.length),r=0,n=()=>{++r==i.length&&il(e,t,s.filter(o=>o!=null).join(e.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[o]=l.result),n()},l.readAsText(i[o])}return!0}else{let s=t.dataTransfer.getData("Text");if(s)return il(e,t,s,!0),!0}return!1},yt.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let i=Xo?null:t.clipboardData;return i?(Jo(e,i.getData("text/plain")||i.getData("text/uri-list")),!0):(wu(e),!1)};function ku(e,t){let i=e.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=t,s.focus(),s.selectionEnd=t.length,s.selectionStart=0,setTimeout(()=>{s.remove(),e.focus()},50)}function Su(e){let t=[],i=[],s=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),i.push(r));if(!t.length){let r=-1;for(let{from:n}of e.selection.ranges){let o=e.doc.lineAt(n);o.number>r&&(t.push(o.text),i.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),r=o.number}s=!0}return{text:Ni(e,_s,t.join(e.lineBreak)),ranges:i,linewise:s}}var dr=null;yt.copy=yt.cut=(e,t)=>{let{text:i,ranges:s,linewise:r}=Su(e.state);if(!i&&!r)return!1;dr=r?i:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let n=Xo?null:t.clipboardData;return n?(n.clearData(),n.setData("text/plain",i),!0):(ku(e,i),!1)};var sl=le.define();function rl(e,t){let i=[];for(let s of e.facet(ko)){let r=s(e,t);r&&i.push(r)}return i.length?e.update({effects:i,annotations:sl.of(!0)}):null}function nl(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let i=rl(e.state,t);i?e.dispatch(i):e.update([])}},10)}mt.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),nl(e)},mt.blur=e=>{e.observer.clearSelectionRange(),nl(e)},mt.compositionstart=mt.compositionupdate=e=>{e.observer.editContext||(e.inputState.compositionFirstChange??(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},mt.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,k.chrome&&k.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},mt.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},yt.beforeinput=(e,t)=>{var s,r;if((t.inputType=="insertText"||t.inputType=="insertCompositionText")&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),t.inputType=="insertReplacementText"&&e.observer.editContext){let n=(s=t.dataTransfer)==null?void 0:s.getData("text/plain"),o=t.getTargetRanges();if(n&&o.length){let l=o[0];return fr(e,{from:e.posAtDOM(l.startContainer,l.startOffset),to:e.posAtDOM(l.endContainer,l.endOffset),insert:e.state.toText(n)},null),!0}}let i;if(k.chrome&&k.android&&(i=Go.find(n=>n.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let n=((r=window.visualViewport)==null?void 0:r.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)==null?void 0:o.height)||0)>n+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return k.ios&&t.inputType=="deleteContentForward"&&e.observer.flushSoon(),k.safari&&t.inputType=="insertText"&&e.inputState.composing>=0&&setTimeout(()=>mt.compositionend(e,t),20),!1};var ol=new Set;function Cu(e){ol.has(e)||(ol.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}var ll=["pre-wrap","normal","pre-line","break-spaces"],ke=!1;function al(){ke=!1}var Au=class{constructor(e){this.lineWrapping=e,this.doc=W.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return ll.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i-1,l=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=r,l){this.heightSamples={};for(let a=0;a0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>Li&&(ke=!0),this.height=t)}replace(t,i,s){return us.of(s)}decomposeLeft(t,i){i.push(this)}decomposeRight(t,i){i.push(this)}applyChanges(t,i,s,r){let n=this,o=s.doc;for(let l=r.length-1;l>=0;l--){let{fromA:a,toA:h,fromB:c,toB:u}=r[l],f=n.lineAt(a,$.ByPosNoHeight,s.setDoc(i),0,0),d=f.to>=h?f:n.lineAt(h,$.ByPosNoHeight,s,0,0);for(u+=d.to-h,h=d.to;l>0&&f.from<=r[l-1].toA;)a=r[l-1].fromA,c=r[l-1].fromB,l--,an*2){let l=t[i-1];l.break?t.splice(--i,1,l.left,null,l.right):t.splice(--i,1,l.left,l.right),s+=1+l.break,r-=l.size}else if(n>r*2){let l=t[s];l.break?t.splice(s,1,l.left,null,l.right):t.splice(s,1,l.left,l.right),s+=2+l.break,n-=l.size}else break;else if(r=r&&n(this.lineAt(0,$.ByPos,i,s,r))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setMeasuredHeight(s),this.outdated=!1,this}toString(){return`block(${this.length})`}},Bt=class an extends hl{constructor(t,i,s){super(t,i,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=s}mainBlock(t,i){return new jt(i,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,i,s){let r=s[0];return s.length==1&&(r instanceof an||r instanceof Se&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Se?r=new an(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):kt.of(s)}updateHeight(t,i=0,s=!1,r){return r&&r.from<=i&&r.more?this.setMeasuredHeight(r):(s||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},Se=class At extends kt{constructor(t){super(t,0)}heightMetrics(t,i){let s=t.doc.lineAt(i).number,r=t.doc.lineAt(i+this.length).number,n=r-s+1,o,l=0;if(t.lineWrapping){let a=Math.min(this.height,t.lineHeight*n);o=a/n,this.length>n+1&&(l=(this.height-a)/(this.length-n-1))}else o=this.height/n;return{firstLine:s,lastLine:r,perLine:o,perChar:l}}blockAt(t,i,s,r){let{firstLine:n,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(i,r);if(i.lineWrapping){let h=r+(t0){let n=s[s.length-1];n instanceof At?s[s.length-1]=new At(n.length+r):s.push(null,new At(r-1))}if(t>0){let n=s[0];n instanceof At?s[0]=new At(t+n.length):s.unshift(new At(t-1),null)}return kt.of(s)}decomposeLeft(t,i){i.push(new At(t-1),null)}decomposeRight(t,i){i.push(null,new At(this.length-t-1))}updateHeight(t,i=0,s=!1,r){let n=i+this.length;if(r&&r.from<=i+this.length&&r.more){let o=[],l=Math.max(i,r.from),a=-1;for(r.from>i&&o.push(new At(r.from-i-1).updateHeight(t,i));l<=n&&r.more;){let c=t.doc.lineAt(l).length;o.length&&o.push(null);let u=r.heights[r.index++],f=0;u<0&&(f=-u,u=r.heights[r.index++]),a==-1?a=u:Math.abs(u-a)>=Li&&(a=-2);let d=new Bt(c,u,f);d.outdated=!1,o.push(d),l+=c+1}l<=n&&o.push(null,new At(n-l).updateHeight(t,l));let h=kt.of(o);return(a<0||Math.abs(h.height-this.height)>=Li||Math.abs(a-this.heightMetrics(t,i).perLine)>=Li)&&(ke=!0),Ii(this,h)}else(s||this.outdated)&&(this.setHeight(t.heightForGap(i,i+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Ou=class extends kt{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let r=i+this.left.height;return eo))return a;let h=t==$.ByPosNoHeight?$.ByPosNoHeight:$.ByPos;return l?a.join(this.right.lineAt(o,h,i,n,o)):this.left.lineAt(o,h,i,s,r).join(a)}forEachLine(e,t,i,s,r,n){let o=s+this.left.height,l=r+this.left.length+this.break;if(this.break)e=l&&this.right.forEachLine(e,t,i,o,l,n);else{let a=this.lineAt(l,$.ByPos,i,s,r);e=e&&a.from<=t&&n(a),t>a.to&&this.right.forEachLine(a.to+1,t,i,o,l,n)}}replace(e,t,i){let s=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let r=[];e>0&&this.decomposeLeft(e,r);let n=r.length;for(let o of i)r.push(o);if(e>0&&cl(r,n-1),t=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e2*t.size||t.size>2*e.size?kt.of(this.break?[e,null,t]:[e,t]):(this.left=Ii(this.left,e),this.right=Ii(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:r,right:n}=this,o=t+r.length+this.break,l=null;return s&&s.from<=t+r.length&&s.more?l=r=r.updateHeight(e,t,i,s):r.updateHeight(e,t,i),s&&s.from<=o+n.length&&s.more?l=n=n.updateHeight(e,o,i,s):n.updateHeight(e,o,i),l?this.balanced(r,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function cl(e,t){let i,s;e[t]==null&&(i=e[t-1])instanceof Se&&(s=e[t+1])instanceof Se&&e.splice(t-1,3,new Se(i.length+1+s.length))}var Du=5,Pu=class Ch{constructor(t,i){this.pos=t,this.oracle=i,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,i){if(this.lineStart>-1){let s=Math.min(i,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Bt?r.length+=s-this.pos:(s>this.pos||!this.isCovered)&&this.nodes.push(new Bt(s-this.pos,-1,0)),this.writtenTo=s,i>s&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=i}point(t,i,s){if(t=Du)&&this.addLineDeco(r,n,o)}else i>t&&this.span(t,i);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:i}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=i,this.writtenTot&&this.nodes.push(new Bt(this.pos-t,-1,0)),this.writtenTo=this.pos}blankContent(t,i){let s=new Se(i-t);return this.oracle.doc.lineAt(t).to==i&&(s.flags|=4),s}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Bt)return t;let i=new Bt(0,-1,0);return this.nodes.push(i),i}addBlock(t){this.enterLine();let i=t.deco;i&&i.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos+=t.length,i&&i.endSide>0&&(this.covering=t)}addLineDeco(t,i,s){let r=this.ensureLine();r.length+=s,r.collapsed+=s,r.widgetHeight=Math.max(r.widgetHeight,t),r.breaks+=i,this.writtenTo=this.pos+=s}finish(t){let i=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(i instanceof Bt)&&!this.isCovered?this.nodes.push(new Bt(0,-1,0)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&u.overflow!="visible"){let f=c.getBoundingClientRect();n=Math.max(n,f.left),o=Math.min(o,f.right),l=Math.max(l,f.top),a=Math.min(h==e.parentNode?r.innerHeight:a,f.bottom)}h=u.position=="absolute"||u.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:n-i.left,right:Math.max(n,o)-i.left,top:l-(i.top+t),bottom:Math.max(l,a)-(i.top+t)}}function Nu(e){let t=e.getBoundingClientRect(),i=e.ownerDocument.defaultView||window;return t.left0&&t.top0}function Lu(e,t){let i=e.getBoundingClientRect();return{left:0,right:i.right-i.left,top:t,bottom:i.bottom-(i.top+t)}}var pr=class{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;itypeof t!="function"&&t.class=="cm-lineWrapping")),this.stateDeco=dl(e),this.heightMap=kt.empty().applyChanges(this.stateDeco,W.empty,this.heightOracle.setDoc(e.doc),[new Kt(0,0,0,e.doc.length)]);for(let t=0;t<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());t++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=N.set(this.lineGaps.map(t=>t.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:r,to:n})=>s>=r&&s<=n)){let{from:r,to:n}=this.lineBlockAt(s);e.push(new Wi(r,n))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?fl:new Vu(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Qe(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=dl(this.state);let s=e.changedRanges,r=Kt.extendWithRanges(s,Bu(i,this.stateDeco,e?e.changes:xt.empty(this.state.doc.length))),n=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);al(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=n||ke)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=n);let l=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let a=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(a||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Co)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?j.RTL:j.LTR;let n=this.heightOracle.mustRefreshForWrapping(r),o=t.getBoundingClientRect(),l=n||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let a=0,h=0;if(o.width&&o.height){let{scaleX:C,scaleY:S}=oo(t,o);(C>.005&&Math.abs(this.scaleX-C)>.005||S>.005&&Math.abs(this.scaleY-S)>.005)&&(this.scaleX=C,this.scaleY=S,a|=16,n=l=!0)}let c=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=c||this.paddingBottom!=u)&&(this.paddingTop=c,this.paddingBottom=u,a|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,a|=16);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=ao(e.scrollDOM);let d=(this.printing?Lu:Ru)(t,this.paddingTop),p=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(l=!0)),!this.inView&&!this.scrollTarget&&!Nu(e.dom))return 0;let v=o.width;if((this.contentDOMWidth!=v||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,a|=16),l){let C=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(C)&&(n=!0),n||s.lineWrapping&&Math.abs(v-this.contentDOMWidth)>s.charWidth){let{lineHeight:S,charWidth:x,textHeight:y}=e.docView.measureTextSize();n=S>0&&s.refresh(r,S,x,y,Math.max(5,v/x),C),n&&(e.docView.minWidth=0,a|=16)}p>0&&g>0?h=Math.max(p,g):p<0&&g<0&&(h=Math.min(p,g)),al();for(let S of this.viewports){let x=S.from==this.viewport.from?C:e.docView.measureVisibleLineHeights(S);this.heightMap=(n?kt.empty().applyChanges(this.stateDeco,W.empty,this.heightOracle,[new Kt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new Mu(S.from,x))}ke&&(a|=2)}let M=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return M&&(a&2&&(a|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),a|=this.updateForViewport()),(a&2||M)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,e)),a|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:n,visibleBottom:o}=this,l=new Wi(s.lineAt(n-i*1e3,$.ByHeight,r,0,0).from,s.lineAt(o+(1-i)*1e3,$.ByHeight,r,0,0).to);if(t){let{head:a}=t.range;if(al.to){let h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(a,$.ByPos,r,0,0),u;u=t.y=="center"?(c.top+c.bottom)/2-h/2:t.y=="start"||t.y=="nearest"&&a=o+Math.max(10,Math.min(i,250)))&&s>n-2*1e3&&r>1,n=s<<1;if(this.defaultTextDirection!=j.LTR&&!i)return[];let o=[],l=(h,c,u,f)=>{if(c-hh&&mm.from>=u.from&&m.to<=u.to&&Math.abs(m.from-h)m.fromv));if(!g){if(cv.from<=c&&v.to>=c)){let v=t.moveToLineBoundary(O.cursor(c),!1,!0).head;v>h&&(c=v)}let m=this.gapSize(u,h,c,f);g=new pr(h,c,m,i||m<2e6?m:2e6)}o.push(g)},a=h=>{if(h.length2e6)for(let x of e)x.from>=h.from&&x.fromh.from&&l(h.from,f,h,c),dt.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];H.spans(t,this.viewport.from,this.viewport.to,{span(r,n){i.push({from:r,to:n})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let r=0;r=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Qe(this.heightMap.lineAt(e,$.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||Qe(this.heightMap.lineAt(this.scaler.fromDOM(e),$.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Qe(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},Wi=class{constructor(e,t){this.from=e,this.to=t}};function Wu(e,t,i){let s=[],r=e,n=0;return H.spans(i,e,t,{span(){},point(o,l){o>r&&(s.push({from:r,to:o}),n+=o-r),r=l}},20),r=1)return t[t.length-1].to;let s=Math.floor(e*i);for(let r=0;;r++){let{from:n,to:o}=t[r],l=o-n;if(s<=l)return n+s;s-=l}}function Vi(e,t){let i=0;for(let{from:s,to:r}of e.ranges){if(t<=r){i+=t-s;break}i+=r-s}return i/e.total}function Hu(e,t){for(let i of e)if(t(i))return i}var fl={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};function dl(e){let t=e.facet(Mi).filter(s=>typeof s!="function"),i=e.facet(sr).filter(s=>typeof s!="function");return i.length&&t.push(H.join(i)),t}var Vu=class Ah{constructor(t,i,s){let r=0,n=0,o=0;this.viewports=s.map(({from:l,to:a})=>{let h=i.lineAt(l,$.ByPos,t,0,0).top,c=i.lineAt(a,$.ByPos,t,0,0).bottom;return r+=c-h,{from:l,to:a,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(i.height-r);for(let l of this.viewports)l.domTop=o+(l.top-n)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),n=l.bottom}toDOM(t){for(let i=0,s=0,r=0;;i++){let n=ii.from==t.viewports[s].from&&i.to==t.viewports[s].to):!1}};function Qe(e,t){if(t.scale==1)return e;let i=t.toDOM(e.top),s=t.toDOM(e.bottom);return new jt(e.from,e.length,i,s-i,Array.isArray(e._content)?e._content.map(r=>Qe(r,t)):e._content)}var zi=A.define({combine:e=>e.join(" ")}),gr=A.define({combine:e=>e.indexOf(!0)>-1}),mr=Vt.newName(),pl=Vt.newName(),gl=Vt.newName(),ml={"&light":"."+pl,"&dark":"."+gl};function vr(e,t,i){return new Vt(t,{finish(s){return/&/.test(s)?s.replace(/&\w*/,r=>{if(r=="&")return e;if(!i||!i[r])throw RangeError(`Unsupported selector: ${r}`);return i[r]}):e+" "+s}})}var zu=vr("."+mr,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ml),Fu={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},wr=k.ie&&k.ie_version<=11,qu=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new mc,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(k.ie&&k.ie_version<=11||k.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&k.android&&e.constructor.EDIT_CONTEXT!==!1&&!(k.chrome&&k.chrome_version<126)&&(this.editContext=new ju(e),e.state.facet(qt)&&(e.contentDOM.editContext=this.editContext.editContext)),wr&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)==null?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(qt)?i.root.activeElement!=this.dom:!Si(this.dom,s))return;let r=s.anchorNode&&i.docView.tile.nearest(s.anchorNode);if(r&&r.isWidget()&&r.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(k.ie&&k.ie_version<=11||k.android&&k.chrome)&&!i.state.selection.main.empty&&s.focusNode&&qe(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=ze(e.root);if(!t)return!1;let i=k.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Ku(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=Si(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&we(this.dom,s.key,s.keyCode))})),(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let r of e){let n=this.readMutation(r);n&&(n.typeOver&&(s=!0),t==-1?{from:t,to:i}=n:(t=Math.min(n.from,t),i=Math.max(n.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Si(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new nu(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=jo(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type=="attributes"),e.type=="childList"){let i=vl(t,e.previousSibling||e.target.previousSibling,-1),s=vl(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(qt)!=e.state.facet(qt)&&(e.view.contentDOM.editContext=e.state.facet(qt)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)==null||e.disconnect(),(t=this.gapIntersection)==null||t.disconnect(),(i=this.resizeScroll)==null||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function vl(e,t,i){for(;t;){let s=Y.get(t);if(s&&s.parent==e)return s;let r=t.parentNode;t=r==e.dom?i>0?t.nextSibling:t.previousSibling:r}return null}function wl(e,t){let i=t.startContainer,s=t.startOffset,r=t.endContainer,n=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor,1);return qe(o.node,o.offset,r,n)&&([i,s,r,n]=[r,n,i,s]),{anchorNode:i,anchorOffset:s,focusNode:r,focusOffset:n}}function Ku(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return wl(e,r)}let i=null;function s(r){r.preventDefault(),r.stopImmediatePropagation(),i=r.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",s,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",s,!0),i?wl(e,i):null}var ju=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});for(let i in this.handlers.textupdate=s=>{let r=e.state.selection.main,{anchor:n,head:o}=r,l=this.toEditorPos(s.updateRangeStart),a=this.toEditorPos(s.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:s.updateRangeStart,editorBase:l,drifted:!1});let h=a-l>s.text.length;l==this.from&&nthis.to&&(a=n);let c=$o(e.state.sliceDoc(l,a),s.text,(h?r.from:r.to)-l,h?"end":null);if(!c){let f=O.single(this.toEditorPos(s.selectionStart),this.toEditorPos(s.selectionEnd));f.main.eq(r)||e.dispatch({selection:f,userEvent:"select"});return}let u={from:c.from+l,to:c.toA+l,insert:W.of(s.text.slice(c.from,c.toB).split(` +`))};if((k.mac||k.android)&&u.from==o-1&&/^\. ?$/.test(s.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(u={from:l,to:a,insert:W.of([s.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let f=this.to-this.from+(u.to-u.from+u.insert.length);fr(e,u,O.single(this.toEditorPos(s.selectionStart,f),this.toEditorPos(s.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,s.updateRangeStart-1),Math.min(t.text.length,s.updateRangeStart+1)))&&this.handlers.compositionend(s)},this.handlers.characterboundsupdate=s=>{let r=[],n=null;for(let o=this.toEditorPos(s.rangeStart),l=this.toEditorPos(s.rangeEnd);o{let r=[];for(let n of s.getTextFormats()){let o=n.underlineStyle,l=n.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(l)){let a=this.toEditorPos(n.rangeStart),h=this.toEditorPos(n.rangeEnd);if(a{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:s}=this.composing;this.composing=null,s&&this.reset(e.state)}},this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=ze(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((r,n,o,l,a)=>{if(i)return;let h=a.length-(n-r);if(s&&n>=s.to)if(s.from==r&&s.to==n&&s.insert.eq(a)){s=this.pendingContextChange=null,t+=h,this.to+=h;return}else s=null,this.revertPending(e.state);if(r+=t,n+=t,n<=this.from)this.from+=h,this.to+=h;else if(rthis.to||this.to-this.from+a.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(n),a.toString()),this.to+=h}t+=h}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},P=class hn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var s;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:i}=t;this.dispatchTransactions=t.dispatchTransactions||i&&(r=>r.forEach(n=>i(n,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||wc(t.parent)||document,this.viewState=new ul(t.state||G.create(t)),t.scrollTo&&t.scrollTo.is(Ai)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(be).map(r=>new er(r));for(let r of this.plugins)r.update(this);this.observer=new qu(this),this.inputState=new hu(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Io(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(s=document.fonts)!=null&&s.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...t){let i=t.length==1&&t[0]instanceof dt?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(i,this)}update(t){if(this.updateState!=0)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let i=!1,s=!1,r,n=this.state;for(let f of t){if(f.startState!=n)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");n=f.state}if(this.destroyed){this.viewState.state=n;return}let o=this.hasFocus,l=0,a=null;t.some(f=>f.annotation(sl))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=rl(n,o),a||(l=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(n.doc)||!this.state.selection.eq(n.selection))&&(c=null)):this.observer.clear(),n.facet(G.phrases)!=this.state.facet(G.phrases))return this.setState(n);r=Eo.create(this,n,t),r.flags|=l;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let f of t){if(u&&(u=u.map(f.changes)),f.scrollIntoView){let{main:d}=f.state.selection;u=new tr(d.empty?d:O.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of f.effects)d.is(Ai)&&(u=d.value.clip(this.state))}this.viewState.update(r,u),this.bidiCache=xl.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),i=this.docView.update(r),this.state.facet(Ue)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(i,t.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(zi)!=r.state.facet(zi)&&(this.viewState.mustMeasureContent=!0),(i||s||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!r.empty)for(let f of this.state.facet(Qs))try{f(r)}catch(d){pt(this.state,d,"update listener")}(a||c)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!jo(this,c)&&h.force&&we(this.contentDOM,h.key,h.keyCode)})}setState(t){if(this.updateState!=0)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let i=this.hasFocus;try{for(let s of this.plugins)s.destroy(this);this.viewState=new ul(t),this.plugins=t.facet(be).map(s=>new er(s)),this.pluginMap.clear();for(let s of this.plugins)s.update(this);this.docView.destroy(),this.docView=new Io(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}i&&this.focus(),this.requestMeasure()}updatePlugins(t){let i=t.startState.facet(be),s=t.state.facet(be);if(i!=s){let r=[];for(let n of s){let o=i.indexOf(n);if(o<0)r.push(new er(n));else{let l=this.plugins[o];l.mustUpdate=t,r.push(l)}}for(let n of this.plugins)n.mustUpdate!=t&&n.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=t;for(let r=0;r-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let i=null,s=this.scrollDOM,r=s.scrollTop*this.scaleY,{scrollAnchorPos:n,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(ao(s))n=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(r);n=d.from,o=d.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];a&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(d=>{try{return d.read(this)}catch(p){return pt(this.state,p),bl}}),u=Eo.create(this,this.state,[]),f=!1;u.flags|=a,i?i.flags|=a:i=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u),f&&this.docViewUpdate());for(let d=0;d1||d<-1){r+=d,s.scrollTop=r/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty)for(let l of this.state.facet(Qs))l(i)}get themeClasses(){return mr+" "+(this.state.facet(gr)?gl:pl)+" "+this.state.facet(zi)}updateAttrs(){let t=yl(this,To,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(qt)?"true":"false",class:"cm-content",style:`${k.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),yl(this,ir,i);let s=this.observer.ignore(()=>{let r=io(this.contentDOM,this.contentAttrs,i),n=io(this.dom,this.editorAttrs,t);return r||n});return this.editorAttrs=t,this.contentAttrs=i,s}showAnnouncements(t){let i=!0;for(let s of t)for(let r of s.effects)if(r.is(hn.announce)){i&&(this.announceDOM.textContent=""),i=!1;let n=this.announceDOM.appendChild(document.createElement("div"));n.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(Ue);let t=this.state.facet(hn.cspNonce);Vt.mount(this.root,this.styleModules.concat(zu).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let i=0;is.plugin==t)||null),i&&i.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,i,s){return cr(this,t,Ho(this,t,i,s))}moveByGroup(t,i){return cr(this,t,Ho(this,t,i,s=>tu(this,t.head,s)))}visualLineSide(t,i){let s=this.bidiSpans(t),r=this.textDirectionAt(t.from),n=s[i?s.length-1:0];return O.cursor(n.side(i,r)+t.from,n.forward(!i,r)?1:-1)}moveToLineBoundary(t,i,s=!0){return _c(this,t,i,s)}moveVertically(t,i,s){return cr(this,t,eu(this,t,i,s))}domAtPos(t,i=1){return this.docView.domAtPos(t,i)}posAtDOM(t,i=0){return this.docView.posFromDOM(t,i)}posAtCoords(t,i=!0){this.readMeasured();let s=ur(this,t,i);return s&&s.pos}posAndSideAtCoords(t,i=!0){return this.readMeasured(),ur(this,t,i)}coordsAtPos(t,i=1){this.readMeasured();let s=this.docView.coordsAt(t,i);if(!s||s.left==s.right)return s;let r=this.state.doc.lineAt(t),n=this.bidiSpans(r),o=n[Ft.find(n,t-r.from,-1,i)];return Ke(s,o.dir==j.LTR==i>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(So)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>$u)return go(t.length);let i=this.textDirectionAt(t.from),s;for(let n of this.bidiCache)if(n.from==t.from&&n.dir==i&&(n.fresh||po(n.isolates,s=Po(this,t))))return n.order;s||(s=Po(this,t));let r=Mc(t.text,i,s);return this.bidiCache.push(new xl(t.from,t.to,i,s,!0,r)),r}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||k.safari&&((t=this.inputState)==null?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{lo(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,i={}){return Ai.of(new tr(typeof t=="number"?O.cursor(t):t,i.y,i.x,i.yMargin,i.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:i}=this.scrollDOM,s=this.viewState.scrollAnchorAt(t);return Ai.of(new tr(O.cursor(s.from),"start","start",s.top-t,i,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return tt.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return tt.define(()=>({}),{eventObservers:t})}static theme(t,i){let s=Vt.newName(),r=[zi.of(s),Ue.of(vr(`.${s}`,t))];return i&&i.dark&&r.push(gr.of(!0)),r}static baseTheme(t){return Le.lowest(Ue.of(vr("."+mr,t,ml)))}static findFromDOM(t){var s,r;let i=t.querySelector(".cm-content");return((r=(s=i&&Y.get(i)||Y.get(t))==null?void 0:s.root)==null?void 0:r.view)||null}};P.styleModule=Ue,P.inputHandler=yo,P.clipboardInputFilter=Zs,P.clipboardOutputFilter=_s,P.scrollHandler=Ao,P.focusChangeEffect=ko,P.perLineTextDirection=So,P.exceptionSink=xo,P.updateListener=Qs,P.editable=qt,P.mouseSelectionStyle=bo,P.dragMovesSelection=wo,P.clickAddsSelectionRange=vo,P.decorations=Mi,P.blockWrappers=Oo,P.outerDecorations=sr,P.atomicRanges=$e,P.bidiIsolatedRanges=Do,P.scrollMargins=Bo,P.darkTheme=gr,P.cspNonce=A.define({combine:e=>e.length?e[0]:""}),P.contentAttributes=ir,P.editorAttributes=To,P.lineWrapping=P.contentAttributes.of({class:"cm-lineWrapping"}),P.announce=U.define();var $u=4096,bl={},xl=class Mh{constructor(t,i,s,r,n,o){this.from=t,this.to=i,this.dir=s,this.isolates=r,this.fresh=n,this.order=o}static update(t,i){if(i.empty&&!t.some(n=>n.fresh))return t;let s=[],r=t.length?t[t.length-1].dir:j.LTR;for(let n=Math.max(0,t.length-10);n=0;r--){let n=s[r],o=typeof n=="function"?n(e):n;o&&qs(o,i)}return i}var Uu=k.mac?"mac":k.windows?"win":k.linux?"linux":"key";function Gu(e,t){let i=e.split(/-(?!$)/),s=i[i.length-1];s=="Space"&&(s=" ");let r,n,o,l;for(let a=0;as.concat(r),[]))),i}function Xu(e,t,i){return Al(Cl(e.state),t,e,i)}var _t=null,Ju=4e3;function Qu(e,t=Uu){let i=Object.create(null),s=Object.create(null),r=(o,l)=>{let a=s[o];if(a==null)s[o]=l;else if(a!=l)throw Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},n=(o,l,a,h,c)=>{var g,m;let u=i[o]||(i[o]=Object.create(null)),f=l.split(/ (?!$)/).map(v=>Gu(v,t));for(let v=1;v{let S=_t={view:C,prefix:M,scope:o};return setTimeout(()=>{_t==S&&(_t=null)},Ju),!0}]})}let d=f.join(" ");r(d,!1);let p=u[d]||(u[d]={preventDefault:!1,stopPropagation:!1,run:((m=(g=u._any)==null?void 0:g.run)==null?void 0:m.slice())||[]});a&&p.run.push(a),h&&(p.preventDefault=!0),c&&(p.stopPropagation=!0)};for(let o of e){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of l){let c=i[h]||(i[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:u}=o;for(let f in c)c[f].run.push(d=>u(d,br))}let a=o[t]||o.key;if(a)for(let h of l)n(h,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&n(h,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return i}var br=null;function Al(e,t,i,s){br=t;let r=ac(t),n=Pn(gs(r,0))==r.length&&r!=" ",o="",l=!1,a=!1,h=!1;_t&&_t.view==i&&_t.scope==s&&(o=_t.prefix+" ",Yo.indexOf(t.keyCode)<0&&(a=!0,_t=null));let c=new Set,u=g=>{if(g){for(let m of g.run)if(!c.has(m)&&(c.add(m),m(i)))return g.stopPropagation&&(h=!0),!0;g.preventDefault&&(g.stopPropagation&&(h=!0),a=!0)}return!1},f=e[s],d,p;return f&&(u(f[o+Fi(r,t,!n)])?l=!0:n&&(t.altKey||t.metaKey||t.ctrlKey)&&!(k.windows&&t.ctrlKey&&t.altKey)&&!(k.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(d=Jt[t.keyCode])&&d!=r?(u(f[o+Fi(d,t,!0)])||t.shiftKey&&(p=He[t.keyCode])!=r&&p!=d&&u(f[o+Fi(p,t,!1)]))&&(l=!0):n&&t.shiftKey&&u(f[o+Fi(r,t,!0)])&&(l=!0),!l&&u(f._any)&&(l=!0)),a&&(l=!0),l&&h&&t.stopPropagation(),br=null,l}var qi=class Th{constructor(t,i,s,r,n){this.className=t,this.left=i,this.top=s,this.width=r,this.height=n}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,i){return i.className==this.className?(this.adjust(t),!0):!1}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,i,s){if(s.empty){let r=t.coordsAtPos(s.head,s.assoc||1);if(!r)return[];let n=Ml(t);return[new Th(i,r.left-n.left,r.top-n.top,null,r.bottom-r.top)]}else return Zu(t,i,s)}};function Ml(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==j.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Tl(e,t,i,s){let r=e.coordsAtPos(t,i*2);if(!r)return s;let n=e.dom.getBoundingClientRect(),o=(r.top+r.bottom)/2,l=e.posAtCoords({x:n.left+1,y:o}),a=e.posAtCoords({x:n.right-1,y:o});return l==null||a==null?s:{from:Math.max(s.from,Math.min(l,a)),to:Math.min(s.to,Math.max(l,a))}}function Zu(e,t,i){if(i.to<=e.viewport.from||i.from>=e.viewport.to)return[];let s=Math.max(i.from,e.viewport.from),r=Math.min(i.to,e.viewport.to),n=e.textDirection==j.LTR,o=e.contentDOM,l=o.getBoundingClientRect(),a=Ml(e),h=o.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),u=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=l.right-(c?parseInt(c.paddingRight):0),d=hr(e,s,1),p=hr(e,r,-1),g=d.type==_.Text?d:null,m=p.type==_.Text?p:null;if(g&&(e.lineWrapping||d.widgetLineBreaks)&&(g=Tl(e,s,1,g)),m&&(e.lineWrapping||p.widgetLineBreaks)&&(m=Tl(e,r,-1,m)),g&&m&&g.from==m.from&&g.to==m.to)return M(C(i.from,i.to,g));{let x=g?C(i.from,null,g):S(d,!1),y=m?C(null,i.to,m):S(p,!0),T=[];return(g||d).to<(m||p).from-(g&&m?1:0)||d.widgetLineBreaks>1&&x.bottom+e.defaultLineHeight/2I&&K.from=ht)break;X>J&&D(Math.max(ut,J),x==null&&ut<=I,Math.min(X,ht),y==null&&X>=z,nt.dir)}if(J=ct.to+1,J>=ht)break}return B.length==0&&D(I,x==null,z,y==null,e.textDirection),{top:R,bottom:L,horizontal:B}}function S(x,y){let T=l.top+(y?x.top:x.bottom);return{top:T,bottom:T,horizontal:[]}}}function _u(e,t){return e.constructor==t.constructor&&e.eq(t)}var tf=class{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Ki)!=e.state.facet(Ki)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,i=e.facet(Ki);for(;t!_u(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[i].constructor&&s.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e,k.safari&&k.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},Ki=A.define();function xr(e){return[tt.define(t=>new tf(t,e)),Ki.of(e)]}var Ce=A.define({combine(e){return ge(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,i)=>Math.min(t,i),drawRangeCursor:(t,i)=>t||i})}});function ef(e={}){return[Ce.of(e),rf,nf,of,Co.of(!0)]}function sf(e){return e.facet(Ce)}function Ol(e){return e.startState.facet(Ce)!=e.state.facet(Ce)}var rf=xr({above:!0,markers(e){let{state:t}=e,i=t.facet(Ce),s=[];for(let r of t.selection.ranges){let n=r==t.selection.main;if(r.empty||i.drawRangeCursor){let o=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=r.empty?r:O.cursor(r.head,r.head>r.anchor?-1:1);for(let a of qi.forRange(e,o,l))s.push(a)}}return s},update(e,t){e.transactions.some(s=>s.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let i=Ol(e);return i&&Dl(e.state,t),e.docChanged||e.selectionSet||i},mount(e,t){Dl(t.state,e)},class:"cm-cursorLayer"});function Dl(e,t){t.style.animationDuration=e.facet(Ce).cursorBlinkRate+"ms"}var nf=xr({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:qi.forRange(e,"cm-selectionBackground",t)).reduce((t,i)=>t.concat(i))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||Ol(e)},class:"cm-selectionLayer"}),of=Le.highest(P.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),Pl=U.define({map(e,t){return e==null?null:t.mapPos(e)}}),Ze=Tt.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((i,s)=>s.is(Pl)?s.value:i,e)}}),lf=tt.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let i=e.state.field(Ze);i==null?this.cursor!=null&&((t=this.cursor)==null||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Ze)!=i||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Ze),i=t!=null&&e.coordsAtPos(t);if(!i)return null;let s=e.scrollDOM.getBoundingClientRect();return{left:i.left-s.left+e.scrollDOM.scrollLeft*e.scaleX,top:i.top-s.top+e.scrollDOM.scrollTop*e.scaleY,height:i.bottom-i.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:i}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/i+"px",this.cursor.style.height=e.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Ze)!=e&&this.view.dispatch({effects:Pl.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function af(){return[Ze,lf]}function Bl(e,t,i,s,r){t.lastIndex=0;for(let n=e.iterRange(i,s),o=i,l;!n.next().done;o+=n.value.length)if(!n.lineBreak)for(;l=t.exec(n.value);)r(o+l.index,l)}function hf(e,t){let i=e.visibleRanges;if(i.length==1&&i[0].from==e.viewport.from&&i[0].to==e.viewport.to)return i;let s=[];for(let{from:r,to:n}of i)r=Math.max(e.state.doc.lineAt(r).from,r-t),n=Math.min(e.state.doc.lineAt(n).to,n+t),s.length&&s[s.length-1].to>=r?s[s.length-1].to=n:s.push({from:r,to:n});return s}var cf=class{constructor(e){let{regexp:t,decoration:i,decorate:s,boundary:r,maxLength:n=1e3}=e;if(!t.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(o,l,a,h)=>s(h,a,a+o[0].length,o,l);else if(typeof i=="function")this.addMatch=(o,l,a,h)=>{let c=i(o,l,a);c&&h(a,a+o[0].length,c)};else if(i)this.addMatch=(o,l,a,h)=>h(a,a+o[0].length,i);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=r,this.maxLength=n}createDeco(e){let t=new me,i=t.add.bind(t);for(let{from:s,to:r}of hf(e,this.maxLength))Bl(e.state.doc,this.regexp,s,r,(n,o)=>this.addMatch(o,e,n,i));return t.finish()}updateDeco(e,t){let i=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((r,n,o,l)=>{l>=e.view.viewport.from&&o<=e.view.viewport.to&&(i=Math.min(o,i),s=Math.max(l,s))}),e.viewportMoved||s-i>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),i,s):t}updateRange(e,t,i,s){for(let r of e.visibleRanges){let n=Math.max(r.from,i),o=Math.min(r.to,s);if(o>=n){let l=e.state.doc.lineAt(n),a=l.tol.from;n--)if(this.boundary.test(l.text[n-1-l.from])){h=n;break}for(;ou.push(m.range(p,g));if(l==a)for(this.regexp.lastIndex=h-l.from;(f=this.regexp.exec(l.text))&&f.indexthis.addMatch(g,e,p,d));t=t.update({filterFrom:h,filterTo:c,filter:(p,g)=>pc,add:u})}}return t}},yr=/x/.unicode==null?"g":"gu",uf=RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,yr),ff={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},kr=null;function df(){if(kr==null&&typeof document<"u"&&document.body){let e=document.body.style;kr=(e.tabSize??e.MozTabSize)!=null}return kr||!1}var ji=A.define({combine(e){let t=ge(e,{render:null,specialChars:uf,addSpecialChars:null});return(t.replaceTabs=!df())&&(t.specialChars=RegExp(" |"+t.specialChars.source,yr)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,yr)),t}});function pf(e={}){return[ji.of(e),mf()]}var gf=null;function mf(){return gf||(gf=tt.fromClass(class{constructor(e){this.view=e,this.decorations=N.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(ji)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new cf({regexp:e.specialChars,decoration:(t,i,s)=>{let{doc:r}=i.state,n=gs(t[0],0);if(n==9){let o=r.lineAt(s),l=i.state.tabSize,a=xi(o.text,l,s-o.from);return N.replace({widget:new xf((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[n]||(this.decorationCache[n]=N.replace({widget:new bf(e,n)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(ji);e.startState.facet(ji)==t?this.decorations=this.decorator.updateDeco(e,this.decorations):(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view))}},{decorations:e=>e.decorations}))}var vf="\u2022";function wf(e){return e>=32?vf:e==10?"\u2424":String.fromCharCode(9216+e)}var bf=class extends Ot{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=wf(this.code),i=e.state.phrase("Control character")+" "+(ff[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let r=document.createElement("span");return r.textContent=t,r.title=i,r.setAttribute("aria-label",i),r.className="cm-specialChar",r}ignoreEvent(){return!1}},xf=class extends Ot{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function yf(){return Sf}var kf=N.line({class:"cm-activeLine"}),Sf=tt.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,i=[];for(let s of e.state.selection.ranges){let r=e.lineBlockAt(s.head);r.from>t&&(i.push(kf.range(r.from)),t=r.from)}return N.set(i)}},{decorations:e=>e.decorations}),Cf=class extends Ot{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?Fe(e.firstChild):[];if(!t.length)return null;let i=window.getComputedStyle(e.parentNode),s=Ke(t[0],i.direction!="rtl"),r=parseInt(i.lineHeight);return s.bottom-s.top>r*1.5?{left:s.left,right:s.right,top:s.top,bottom:s.top+r}:s}ignoreEvent(){return!1}};function Af(e){let t=tt.fromClass(class{constructor(i){this.view=i,this.placeholder=e?N.set([N.widget({widget:new Cf(e),side:1}).range(0)]):N.none}get decorations(){return this.view.state.doc.length?N.none:this.placeholder}},{decorations:i=>i.decorations});return typeof e=="string"?[t,P.contentAttributes.of({"aria-placeholder":e})]:t}var Sr=2e3;function Mf(e,t,i){let s=Math.min(t.line,i.line),r=Math.max(t.line,i.line),n=[];if(t.off>Sr||i.off>Sr||t.col<0||i.col<0){let o=Math.min(t.off,i.off),l=Math.max(t.off,i.off);for(let a=s;a<=r;a++){let h=e.doc.line(a);h.length<=l&&n.push(O.range(h.from+o,h.to+l))}}else{let o=Math.min(t.col,i.col),l=Math.max(t.col,i.col);for(let a=s;a<=r;a++){let h=e.doc.line(a),c=Rs(h.text,o,e.tabSize,!0);if(c<0)n.push(O.cursor(h.to));else{let u=Rs(h.text,l,e.tabSize);n.push(O.range(h.from+c,h.from+u))}}}return n}function Tf(e,t){let i=e.coordsAtPos(e.viewport.from);return i?Math.round(Math.abs((i.left-t)/e.defaultCharacterWidth)):-1}function El(e,t){let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),s=e.state.doc.lineAt(i),r=i-s.from,n=r>Sr?-1:r==s.length?Tf(e,t.clientX):xi(s.text,e.state.tabSize,i-s.from);return{line:s.number,col:n,off:r}}function Of(e,t){let i=El(e,t),s=e.state.selection;return i?{update(r){if(r.docChanged){let n=r.changes.mapPos(r.startState.doc.line(i.line).from),o=r.state.doc.lineAt(n);i={line:o.number,col:i.col,off:Math.min(i.off,o.length)},s=s.map(r.changes)}},get(r,n,o){let l=El(e,r);if(!l)return s;let a=Mf(e.state,i,l);return a.length?o?O.create(a.concat(s.ranges)):O.create(a):s}}:null}function Df(e){let t=(e==null?void 0:e.eventFilter)||(i=>i.altKey&&i.button==0);return P.mouseSelectionStyle.of((i,s)=>t(s)?Of(i,s):null)}var Pf={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Bf={style:"cursor: crosshair"};function Ef(e={}){let[t,i]=Pf[e.key||"Alt"],s=tt.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==t||i(r))},keyup(r){(r.keyCode==t||!i(r))&&this.set(!1)},mousemove(r){this.set(i(r))}}});return[s,P.contentAttributes.of(r=>{var n;return(n=r.plugin(s))!=null&&n.isDown?Bf:null})]}var $i="-10000px",Rl=class{constructor(e,t,i,s){this.facet=t,this.createTooltipView=i,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(n=>n);let r=null;this.tooltipViews=this.tooltips.map(n=>r=i(n,r))}update(e,t){var i;let s=e.state.facet(this.facet),r=s.filter(l=>l);if(s===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let n=[],o=t?[]:null;for(let l=0;lt[a]=l),t.length=o.length),this.input=s,this.tooltips=r,this.tooltipViews=n,!0}};function Rf(e={}){return Ui.of(e)}function Nf(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}var Ui=A.define({combine:e=>{var t,i,s;return{position:k.ios?"absolute":((t=e.find(r=>r.position))==null?void 0:t.position)||"fixed",parent:((i=e.find(r=>r.parent))==null?void 0:i.parent)||null,tooltipSpace:((s=e.find(r=>r.tooltipSpace))==null?void 0:s.tooltipSpace)||Nf}}}),Nl=new WeakMap,Cr=tt.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Ui);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Rl(e,Ar,(i,s)=>this.createTooltip(i,s),i=>{this.resizeObserver&&this.resizeObserver.unobserve(i.dom),i.dom.remove()}),this.above=this.manager.tooltips.map(i=>!!i.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(i=>{Date.now()>this.lastTransaction-50&&i.length>0&&i[i.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let i=t||e.geometryChanged,s=e.state.facet(Ui);if(s.position!=this.position&&!this.madeAbsolute){this.position=s.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;i=!0}if(s.parent!=this.parent){this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(e,t){let i=e.create(this.view),s=t?t.dom:null;if(i.dom.classList.add("cm-tooltip"),e.arrow&&!i.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",i.dom.appendChild(r)}return i.dom.style.position=this.position,i.dom.style.top=$i,i.dom.style.left="0px",this.container.insertBefore(i.dom,s),i.mount&&i.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(i.dom),i}destroy(){var e,t,i;this.view.win.removeEventListener("resize",this.measureSoon);for(let s of this.manager.tooltipViews)s.dom.remove(),(e=s.destroy)==null||e.call(s);this.parent&&this.container.remove(),(t=this.resizeObserver)==null||t.disconnect(),(i=this.intersectionObserver)==null||i.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:n}=this.manager.tooltipViews[0];if(k.safari){let o=n.getBoundingClientRect();i=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else i=!!n.offsetParent&&n.offsetParent!=this.container.ownerDocument.body}if(i||this.position=="absolute")if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let s=this.view.scrollDOM.getBoundingClientRect(),r=rr(this.view);return{visible:{left:s.left+r.left,top:s.top+r.top,right:s.right-r.right,bottom:s.bottom-r.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((n,o)=>{let l=this.manager.tooltipViews[o];return l.getCoords?l.getCoords(n.pos):this.view.coordsAtPos(n.pos)}),size:this.manager.tooltipViews.map(({dom:n})=>n.getBoundingClientRect()),space:this.view.state.facet(Ui).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:i}}writeMeasure(e){if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{visible:t,space:i,scaleX:s,scaleY:r}=e,n=[];for(let o=0;o=Math.min(t.bottom,i.bottom)||c.rightMath.min(t.right,i.right)+.1)){h.style.top=$i;continue}let f=l.arrow?a.dom.querySelector(".cm-tooltip-arrow"):null,d=f?7:0,p=u.right-u.left,g=Nl.get(a)??u.bottom-u.top,m=a.offset||If,v=this.view.textDirection==j.LTR,M=u.width>i.right-i.left?v?i.left:i.right-u.width:v?Math.max(i.left,Math.min(c.left-(f?14:0)+m.x,i.right-p)):Math.min(Math.max(i.left,c.left-p+(f?14:0)-m.x),i.right-p),C=this.above[o];!l.strictSide&&(C?c.top-g-d-m.yi.bottom)&&C==i.bottom-c.bottom>c.top-i.top&&(C=this.above[o]=!C);let S=(C?c.top-i.top:i.bottom-c.bottom)-d;if(SM&&T.topx&&(x=C?T.top-g-2-d:T.bottom+d+2);if(this.position=="absolute"?(h.style.top=(x-e.parent.top)/r+"px",Ll(h,(M-e.parent.left)/s)):(h.style.top=x/r+"px",Ll(h,M/s)),f){let T=c.left+(v?m.x:-m.x)-(M+14-7);f.style.left=T/s+"px"}a.overlap!==!0&&n.push({left:M,top:x,right:y,bottom:x+g}),h.classList.toggle("cm-tooltip-above",C),h.classList.toggle("cm-tooltip-below",!C),a.positioned&&a.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=$i}},{eventObservers:{scroll(){this.maybeMeasure()}}});function Ll(e,t){let i=parseInt(e.style.left,10);(isNaN(i)||Math.abs(t-i)>1)&&(e.style.left=t+"px")}var Lf=P.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),If={x:0,y:0},Ar=A.define({enables:[Cr,Lf]}),Gi=A.define({combine:e=>e.reduce((t,i)=>t.concat(i),[])}),Il=class Oh{static create(t){return new Oh(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Rl(t,Gi,(i,s)=>this.createHostedView(i,s),i=>i.dom.remove())}createHostedView(t,i){let s=t.create(this.view);return s.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(s.dom,i?i.dom.nextSibling:this.dom.firstChild),this.mounted&&s.mount&&s.mount(this.view),s}mount(t){for(let i of this.manager.tooltipViews)i.mount&&i.mount(t);this.mounted=!0}positioned(t){for(let i of this.manager.tooltipViews)i.positioned&&i.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let i of this.manager.tooltipViews)(t=i.destroy)==null||t.call(i)}passProp(t){let i;for(let s of this.manager.tooltipViews){let r=s[t];if(r!==void 0){if(i===void 0)i=r;else if(i!==r)return}}return i}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},Wf=Ar.compute([Gi],e=>{let t=e.facet(Gi);return t.length===0?null:{pos:Math.min(...t.map(i=>i.pos)),end:Math.max(...t.map(i=>i.end??i.pos)),create:Il.create,above:t[0].above,arrow:t.some(i=>i.arrow)}}),Hf=class{constructor(e,t,i,s,r){this.view=e,this.source=t,this.field=i,this.setHover=s,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;eo.bottom||t.xo.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(s)).find(h=>h.from<=s&&h.to>=s),a=l&&l.dir==j.RTL?-1:1;r=t.x{this.pending==o&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>pt(e.state,l,"hover tooltip"))}else n&&!(Array.isArray(n)&&!n.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])})}get tooltip(){let e=this.view.plugin(Cr),t=e?e.manager.tooltips.findIndex(i=>i.create==Il.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var s;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:t,tooltip:i}=this;if(t.length&&i&&!Vf(i.dom,e)||this.pending){let{pos:r}=t[0]||this.pending,n=((s=t[0])==null?void 0:s.end)??r;(r==n?this.view.posAtCoords(this.lastMove)!=r:!zf(this.view,r,n,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},Yi=4;function Vf(e,t){let{left:i,right:s,top:r,bottom:n}=e.getBoundingClientRect(),o;if(o=e.querySelector(".cm-tooltip-arrow")){let l=o.getBoundingClientRect();r=Math.min(l.top,r),n=Math.max(l.bottom,n)}return t.clientX>=i-Yi&&t.clientX<=s+Yi&&t.clientY>=r-Yi&&t.clientY<=n+Yi}function zf(e,t,i,s,r,n){let o=e.scrollDOM.getBoundingClientRect(),l=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>s||o.rightr||Math.min(o.bottom,l)=t&&a<=i}function Ff(e,t={}){let i=U.define(),s=Tt.define({create(){return[]},update(r,n){if(r.length&&(t.hideOnChange&&(n.docChanged||n.selection)?r=[]:t.hideOn&&(r=r.filter(o=>!t.hideOn(n,o))),n.docChanged)){let o=[];for(let l of r){let a=n.changes.mapPos(l.pos,-1,st.TrackDel);if(a!=null){let h=Object.assign(Object.create(null),l);h.pos=a,h.end!=null&&(h.end=n.changes.mapPos(h.end)),o.push(h)}}r=o}for(let o of n.effects)o.is(i)&&(r=o.value),o.is(Wl)&&(r=[]);return r},provide:r=>Gi.from(r)});return{active:s,extension:[s,tt.define(r=>new Hf(r,e,s,i,t.hoverTime||300)),Wf]}}function qf(e,t){let i=e.plugin(Cr);if(!i)return null;let s=i.manager.tooltips.indexOf(t);return s<0?null:i.manager.tooltipViews[s]}var Wl=U.define(),Kf=Wl.of(null),Hl=A.define({combine(e){let t,i;for(let s of e)t||(t=s.topContainer),i||(i=s.bottomContainer);return{topContainer:t,bottomContainer:i}}});function jf(e,t){let i=e.plugin(Vl),s=i?i.specs.indexOf(t):-1;return s>-1?i.panels[s]:null}var Vl=tt.fromClass(class{constructor(e){this.input=e.state.facet(Mr),this.specs=this.input.filter(i=>i),this.panels=this.specs.map(i=>i(e));let t=e.state.facet(Hl);this.top=new Xi(e,!0,t.topContainer),this.bottom=new Xi(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(i=>i.top)),this.bottom.sync(this.panels.filter(i=>!i.top));for(let i of this.panels)i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(e){let t=e.state.facet(Hl);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Xi(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Xi(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=e.state.facet(Mr);if(i!=this.input){let s=i.filter(a=>a),r=[],n=[],o=[],l=[];for(let a of s){let h=this.specs.indexOf(a),c;h<0?(c=a(e.view),l.push(c)):(c=this.panels[h],c.update&&c.update(e)),r.push(c),(c.top?n:o).push(c)}this.specs=s,this.panels=r,this.top.sync(n),this.bottom.sync(o);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let s of this.panels)s.update&&s.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>P.scrollMargins.of(t=>{let i=t.plugin(e);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})}),Xi=class{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom=(this.dom.remove(),void 0));return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=zl(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=zl(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function zl(e){let t=e.nextSibling;return e.remove(),t}var Mr=A.define({enables:Vl}),Et=class extends Xt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Et.prototype.elementClass="",Et.prototype.toDOM=void 0,Et.prototype.mapMode=st.TrackBefore,Et.prototype.startSide=Et.prototype.endSide=-1,Et.prototype.point=!0;var Ji=A.define(),$f=A.define(),Uf={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>H.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},_e=A.define();function Fl(e){return[ql(),_e.of({...Uf,...e})]}var Tr=A.define({combine:e=>e.some(t=>t)});function ql(e){let t=[Gf];return e&&e.fixed===!1&&t.push(Tr.of(!0)),t}var Gf=tt.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(_e).map(t=>new jl(e,t)),this.fixed=!e.state.facet(Tr);for(let t of this.gutters)t.config.side=="after"?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,i=e.view.viewport,s=Math.min(t.to,i.to)-Math.max(t.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}if(e.geometryChanged){let t=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=t,this.domAfter&&(this.domAfter.style.minHeight=t)}this.view.state.facet(Tr)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let i=H.iter(this.view.state.facet(Ji),this.view.viewport.from),s=[],r=this.gutters.map(n=>new Yf(n,this.view.viewport,-this.view.documentPadding.top));for(let n of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(n.type)){let o=!0;for(let l of n.type)if(l.type==_.Text&&o){Or(i,s,l.from);for(let a of r)a.line(this.view,l,s);o=!1}else if(l.widget)for(let a of r)a.widget(this.view,l)}else if(n.type==_.Text){Or(i,s,n.from);for(let o of r)o.line(this.view,n,s)}else if(n.widget)for(let o of r)o.widget(this.view,n);for(let n of r)n.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(_e),i=e.state.facet(_e),s=e.docChanged||e.heightChanged||e.viewportChanged||!H.eq(e.startState.facet(Ji),e.state.facet(Ji),e.view.viewport.from,e.view.viewport.to);if(t==i)for(let r of this.gutters)r.update(e)&&(s=!0);else{s=!0;let r=[];for(let n of i){let o=t.indexOf(n);o<0?r.push(new jl(this.view,n)):(this.gutters[o].update(e),r.push(this.gutters[o]))}for(let n of this.gutters)n.dom.remove(),r.indexOf(n)<0&&n.destroy();for(let n of r)n.config.side=="after"?this.getDOMAfter().appendChild(n.dom):this.dom.appendChild(n.dom);this.gutters=r}return s}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>P.scrollMargins.of(t=>{let i=t.plugin(e);if(!i||i.gutters.length==0||!i.fixed)return null;let s=i.dom.offsetWidth*t.scaleX,r=i.domAfter?i.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==j.LTR?{left:s,right:r}:{right:s,left:r}})});function Kl(e){return Array.isArray(e)?e:[e]}function Or(e,t,i){for(;e.value&&e.from<=i;)e.from==i&&t.push(e.value),e.next()}var Yf=class{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=H.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,r=(t.top-this.height)/e.scaleY,n=t.height/e.scaleY;if(this.i==s.elements.length){let o=new $l(e,n,r,i);s.elements.push(o),s.dom.appendChild(o.dom)}else s.elements[this.i].update(e,n,r,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];Or(this.cursor,s,t.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(e,t,s);r&&s.unshift(r);let n=this.gutter;s.length==0&&!n.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let r of e.state.facet($f)){let n=r(e,t.widget,t);n&&(s||(s=[])).push(n)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},jl=class{constructor(e,t){for(let i in this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),t.domEventHandlers)this.dom.addEventListener(i,s=>{let r=s.target,n;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let l=r.getBoundingClientRect();n=(l.top+l.bottom)/2}else n=s.clientY;let o=e.lineBlockAtHeight(n-e.documentTop);t.domEventHandlers[i](e,o,s)&&s.preventDefault()});this.markers=Kl(t.markers(e)),t.initialSpacer&&(this.spacer=new $l(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Kl(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!H.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},$l=class{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Xf(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,n=0;;){let o=n,l=rn(l,a,h)||o(l,a,h):o}return s}})}}),Dr=class extends Et{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function Pr(e,t){return e.state.facet(Ae).formatNumber(t,e.state)}var Zf=_e.compute([Ae],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(Jf)},lineMarker(t,i,s){return s.some(r=>r.toDOM)?null:new Dr(Pr(t,t.state.doc.lineAt(i.from).number))},widgetMarker:(t,i,s)=>{for(let r of t.state.facet(Qf)){let n=r(t,i,s);if(n)return n}return null},lineMarkerChange:t=>t.startState.facet(Ae)!=t.state.facet(Ae),initialSpacer(t){return new Dr(Pr(t,Ul(t.state.doc.lines)))},updateSpacer(t,i){let s=Pr(i.view,Ul(i.view.state.doc.lines));return s==t.number?t:new Dr(s)},domEventHandlers:e.facet(Ae).domEventHandlers,side:"before"}));function _f(e={}){return[Ae.of(e),ql(),Zf]}function Ul(e){let t=9;for(;t{let t=[],i=-1;for(let s of e.selection.ranges){let r=e.doc.lineAt(s.head).from;r>i&&(i=r,t.push(td.range(r)))}return H.of(t)});function id(){return ed}var Gl=1024,sd=0,vt=class{constructor(e,t){this.from=e,this.to=t}},E=class{constructor(e={}){this.id=sd++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=it.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}};E.closedBy=new E({deserialize:e=>e.split(" ")}),E.openedBy=new E({deserialize:e=>e.split(" ")}),E.group=new E({deserialize:e=>e.split(" ")}),E.isolate=new E({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),E.contextHash=new E({perNode:!0}),E.lookAhead=new E({perNode:!0}),E.mounted=new E({perNode:!0});var Me=class{constructor(e,t,i,s=!1){this.tree=e,this.overlay=t,this.parser=i,this.bracketed=s}static get(e){return e&&e.props&&e.props[E.mounted.id]}},rd=Object.create(null),it=class Dh{constructor(t,i,s,r=0){this.name=t,this.props=i,this.id=s,this.flags=r}static define(t){let i=t.props&&t.props.length?Object.create(null):rd,s=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),r=new Dh(t.name||"",i,t.id,s);if(t.props){for(let n of t.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");i[n[0].id]=n[1]}}return r}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let i=this.prop(E.group);return i?i.indexOf(t)>-1:!1}return this.id==t}static match(t){let i=Object.create(null);for(let s in t)for(let r of s.split(" "))i[r]=t[s];return s=>{for(let r=s.prop(E.group),n=-1;n<(r?r.length:0);n++){let o=i[n<0?s.name:r[n]];if(o)return o}}}};it.none=new it("",Object.create(null),0,8);var Br=class Ph{constructor(t){this.types=t;for(let i=0;i0;for(let a=this.cursor(o|F.IncludeAnonymous);;){let h=!1;if(a.from<=n&&a.to>=r&&(!l&&a.type.isAnonymous||i(a)!==!1)){if(a.firstChild())continue;h=!0}for(;h&&s&&(l||!a.type.isAnonymous)&&s(a),!a.nextSibling();){if(!a.parent())return;h=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let i in this.props)t.push([+i,this.props[i]]);return t}balance(t={}){return this.children.length<=8?this:Nr(it.none,this.children,this.positions,0,this.children.length,0,this.length,(i,s,r)=>new cn(this.type,i,s,r,this.propValues),t.makeTree||((i,s,r)=>new cn(it.none,i,s,r)))}static build(t){return hd(t)}};V.empty=new V(it.none,[],[],0);var nd=class Bh{constructor(t,i){this.buffer=t,this.index=i}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Bh(this.buffer,this.index)}},Te=class Eh{constructor(t,i,s){this.buffer=t,this.length=i,this.set=s}get type(){return it.none}toString(){let t=[];for(let i=0;i0));a=o[a+3]);return l}slice(t,i,s){let r=this.buffer,n=new Uint16Array(i-t),o=0;for(let l=t,a=0;l=t&&it;case 1:return i<=t&&s>t;case 2:return s>t;case 4:return!0}}function ti(e,t,i,s){var n;for(;e.from==e.to||(i<1?e.from>=t:e.from>t)||(i>-1?e.to<=t:e.to0?a.length:-1;t!=c;t+=i){let u=a[t],f=h[t]+l.from;if(!(!(n&F.EnterBracketed&&u instanceof V&&((o=Me.get(u))==null?void 0:o.overlay)===null&&(f>=s||f+u.length<=s))&&!Xl(r,s,f,f+u.length))){if(u instanceof Te){if(n&F.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,i,s-f,r);if(d>-1)return new ei(new od(l,u,t,f),null,d)}else if(n&F.IncludeAnonymous||!u.type.isAnonymous||Rr(u)){let d;if(!(n&F.IgnoreMounts)&&(d=Me.get(u))&&!d.overlay)return new fs(d.tree,f,t,l);let p=new fs(u,f,t,l);return n&F.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(i<0?u.children.length-1:0,i,s,r,n)}}}if(n&F.IncludeAnonymous||!l.type.isAnonymous||(t=l.index>=0?l.index+i:i<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,i,s=0){let r;if(!(s&F.IgnoreOverlays)&&(r=Me.get(this._tree))&&r.overlay){let n=t-this.from,o=s&F.EnterBracketed&&r.bracketed;for(let{from:l,to:a}of r.overlay)if((i>0||o?l<=n:l=n:a>n))return new fs(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,i,s)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function Ql(e,t,i,s){let r=e.cursor(),n=[];if(!r.firstChild())return n;if(i!=null){for(let o=!1;!o;)if(o=r.type.is(i),!r.nextSibling())return n}for(;;){if(s!=null&&r.type.is(s))return n;if(r.type.is(t)&&n.push(r.node),!r.nextSibling())return s==null?n:[]}}function Er(e,t,i=t.length-1){for(let s=e;i>=0;s=s.parent){if(!s)return!1;if(!s.type.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}var od=class{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}},ei=class ci extends Jl{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,i,s){super(),this.context=t,this._parent=i,this.index=s,this.type=t.buffer.set.types[t.buffer.buffer[s]]}child(t,i,s){let{buffer:r}=this.context,n=r.findChild(this.index+4,r.buffer[this.index+3],t,i-this.context.start,s);return n<0?null:new ci(this.context,this,n)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,i,s=0){if(s&F.ExcludeBuffers)return null;let{buffer:r}=this.context,n=r.findChild(this.index+4,r.buffer[this.index+3],i>0?1:-1,t-this.context.start,i);return n<0?null:new ci(this.context,this,n)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,i=t.buffer[this.index+3];return i<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new ci(this.context,this._parent,i):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,i=this._parent?this._parent.index+4:0;return this.index==i?this.externalSibling(-1):new ci(this.context,this._parent,t.findChild(i,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],i=[],{buffer:s}=this.context,r=this.index+4,n=s.buffer[this.index+3];if(n>r){let o=s.buffer[this.index+1];t.push(s.slice(r,n,o)),i.push(0)}return new V(this.type,t,i,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function Zl(e){if(!e.length)return null;let t=0,i=e[0];for(let n=1;ni.from||o.to=t){let l=new wt(o.tree,o.overlay[0].from+n.from,-1,n);(r||(r=[s])).push(ti(l,t,i,!1))}}return r?Zl(r):s}var Zi=class{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~F.EnterBracketed,e instanceof wt)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof wt?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&F.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&F.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&F.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index-1)for(let r=t+e,n=e<0?-1:i._tree.children.length;r!=n;r+=e){let o=i._tree.children[r];if(this.mode&F.IncludeAnonymous||o instanceof Te||!o.type.isAnonymous||Rr(o))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let n=e;n;n=n._parent)if(n.index==s){if(s==this.index)return n;t=n,i=r+1;break t}s=this.stack[--r]}for(let s=i;s=0;r--){if(r<0)return Er(this._tree,e,s);let n=i[t.buffer[this.stack[r]]];if(!n.isAnonymous){if(e[s]&&e[s]!=n.name)return!1;s--}}return!0}};function Rr(e){return e.children.some(t=>t instanceof Te||!t.type.isAnonymous||Rr(t))}function hd(e){let{buffer:t,nodeSet:i,maxBufferLength:s=Gl,reused:r=[],minRepeatType:n=i.types.length}=e,o=Array.isArray(t)?new nd(t,t.length):t,l=i.types,a=0,h=0;function c(S,x,y,T,R,L){let{id:B,start:D,end:I,size:z}=o,K=h,J=a;if(z<0)if(o.next(),z==-1){let X=r[B];y.push(X),T.push(D-S);return}else if(z==-3){a=B;return}else if(z==-4){h=B;return}else throw RangeError(`Unrecognized record size: ${z}`);let ht=l[B],ct,nt,ut=D-S;if(I-D<=s&&(nt=g(o.pos-x,R))){let X=new Uint16Array(nt.size-nt.skip),ft=o.pos-nt.size,Mt=X.length;for(;o.pos>ft;)Mt=m(nt.start,X,Mt);ct=new Te(X,I-nt.start,i),ut=nt.start-S}else{let X=o.pos-z;o.next();let ft=[],Mt=[],ne=B>=n?B:-1,ue=0,ui=I;for(;o.pos>X;)ne>=0&&o.id==ne&&o.size>=0?(o.end<=ui-s&&(d(ft,Mt,D,ue,o.end,ui,ne,K,J),ue=ft.length,ui=o.end),o.next()):L>2500?u(D,X,ft,Mt):c(D,X,ft,Mt,ne,L+1);if(ne>=0&&ue>0&&ue-1&&ue>0){let bn=f(ht,J);ct=Nr(ht,ft,Mt,0,ft.length,0,I-D,bn,bn)}else ct=p(ht,ft,Mt,I-D,K-I,J)}y.push(ct),T.push(ut)}function u(S,x,y,T){let R=[],L=0,B=-1;for(;o.pos>x;){let{id:D,start:I,end:z,size:K}=o;if(K>4)o.next();else{if(B>-1&&I=0;z-=3)D[K++]=R[z],D[K++]=R[z+1]-I,D[K++]=R[z+2]-I,D[K++]=K;y.push(new Te(D,R[2]-I,i)),T.push(I-S)}}function f(S,x){return(y,T,R)=>{let L=0,B=y.length-1,D,I;if(B>=0&&(D=y[B])instanceof V){if(!B&&D.type==S&&D.length==R)return D;(I=D.prop(E.lookAhead))&&(L=T[B]+D.length+I)}return p(S,y,T,R,L,x)}}function d(S,x,y,T,R,L,B,D,I){let z=[],K=[];for(;S.length>T;)z.push(S.pop()),K.push(x.pop()+y-R);S.push(p(i.types[B],z,K,L-R,D-L,I)),x.push(R-y)}function p(S,x,y,T,R,L,B){if(L){let D=[E.contextHash,L];B=B?[D].concat(B):[D]}if(R>25){let D=[E.lookAhead,R];B=B?[D].concat(B):[D]}return new V(S,x,y,T,B)}function g(S,x){let y=o.fork(),T=0,R=0,L=0,B=y.end-s,D={size:0,start:0,skip:0};t:for(let I=y.pos-S;y.pos>I;){let z=y.size;if(y.id==x&&z>=0){D.size=T,D.start=R,D.skip=L,L+=4,T+=4,y.next();continue}let K=y.pos-z;if(z<0||K=n?4:0,ht=y.start;for(y.next();y.pos>K;){if(y.size<0)if(y.size==-3||y.size==-4)J+=4;else break t;else y.id>=n&&(J+=4);y.next()}R=ht,T+=z,L+=J}return(x<0||T==S)&&(D.size=T,D.start=R,D.skip=L),D.size>4?D:void 0}function m(S,x,y){let{id:T,start:R,end:L,size:B}=o;if(o.next(),B>=0&&T4){let I=o.pos-(B-4);for(;o.pos>I;)y=m(S,x,y)}x[--y]=D,x[--y]=L-S,x[--y]=R-S,x[--y]=T}else B==-3?a=T:B==-4&&(h=T);return y}let v=[],M=[];for(;o.pos>0;)c(e.start||0,e.bufferStart||0,v,M,-1,0);let C=e.length??(v.length?M[0]+v[0].length:0);return new V(l[e.topID],v.reverse(),M.reverse(),C)}var _l=new WeakMap;function _i(e,t){if(!e.isAnonymous||t instanceof Te||t.type!=e)return 1;let i=_l.get(t);if(i==null){i=1;for(let s of t.children){if(s.type!=e||!(s instanceof V)){i=1;break}i+=_i(e,s)}_l.set(t,i)}return i}function Nr(e,t,i,s,r,n,o,l,a){let h=0;for(let p=s;p=c)break;y+=T}if(C==S+1){if(y>c){let T=p[S];d(T.children,T.positions,0,T.children.length,g[S]+M);continue}u.push(p[S])}else{let T=g[C-1]+p[C-1].length-x;u.push(Nr(e,p,g,S,C,x,T,null,a))}f.push(x+M-n)}}return d(t,i,s,r,0),(l||a)(u,f,o)}var cd=class{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let s=this.map.get(e);s||this.map.set(e,s=new Map),s.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof ei?this.setBuffer(e.context.buffer,e.index,t):e instanceof wt&&this.map.set(e.tree,t)}get(e){return e instanceof ei?this.getBuffer(e.context.buffer,e.index):e instanceof wt?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},Oe=class un{constructor(t,i,s,r,n=!1,o=!1){this.from=t,this.to=i,this.tree=s,this.offset=r,this.open=(n?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,i=[],s=!1){let r=[new un(0,t.length,t,0,!1,s)];for(let n of i)n.to>t.length&&r.push(n);return r}static applyChanges(t,i,s=128){if(!i.length)return t;let r=[],n=1,o=t.length?t[0]:null;for(let l=0,a=0,h=0;;l++){let c=l=s)for(;o&&o.from=f.from||u<=f.to||h){let d=Math.max(f.from,a)-h,p=Math.min(f.to,u)-h;f=d>=p?null:new un(d,p,f.tree,f.offset+h,l>0,!!c)}if(f&&r.push(f),o.to>u)break;o=nnew vt(s.from,s.to)):[new vt(0,0)]:[new vt(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let r=s.advance();if(r)return r}}},ud=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};function fd(e){return(t,i,s,r)=>new pd(t,e,i,s,r)}var ta=class{constructor(e,t,i,s,r,n){this.parser=e,this.parse=t,this.overlay=i,this.bracketed=s,this.target=r,this.from=n}};function ea(e){if(!e.length||e.some(t=>t.from>=t.to))throw RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}var dd=class{constructor(e,t,i,s,r,n,o,l){this.parser=e,this.predicate=t,this.mounts=i,this.index=s,this.start=r,this.bracketed=n,this.target=o,this.prev=l,this.depth=0,this.ranges=[]}},Lr=new E({perNode:!0}),pd=class{constructor(e,t,i,s,r){this.nest=t,this.input=i,this.fragments=s,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let s of this.inner)s.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new V(i.type,i.children,i.positions,i.length,i.propValues.concat([[Lr,this.stoppedAt]]))),i}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[E.mounted.id]=new Me(t,e.overlay,e.parser,e.bracketed),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t=this.stoppedAt)o=!1;else if(e.hasNode(s)){if(t){let a=t.mounts.find(h=>h.frag.from<=s.from&&h.frag.to>=s.to&&h.mount.overlay);if(a)for(let h of a.mount.overlay){let c=h.from+a.pos,u=h.to+a.pos;c>=s.from&&u<=s.to&&!t.ranges.some(f=>f.fromc)&&t.ranges.push({from:c,to:u})}}o=!1}else if(i&&(n=gd(i.ranges,s.from,s.to)))o=n!=2;else if(!s.type.isAnonymous&&(r=this.nest(s,this.input))&&(s.fromnew vt(c.from-s.from,c.to-s.from)):null,!!r.bracketed,s.tree,h.length?h[0].from:s.from)),r.overlay?h.length&&(i={ranges:h,depth:0,prev:i}):o=!1}}else if(t&&(l=t.predicate(s))&&(l===!0&&(l=new vt(s.from,s.to)),l.from=0&&t.ranges[a].to==l.from?t.ranges[a]={from:t.ranges[a].from,to:l.to}:t.ranges.push(l)}if(o&&s.firstChild())t&&t.depth++,i&&i.depth++;else for(;!s.nextSibling();){if(!s.parent())break t;if(t&&!--t.depth){let a=ra(this.ranges,t.ranges);a.length&&(ea(a),this.inner.splice(t.index,0,new ta(t.parser,t.parser.startParse(this.input,na(t.mounts,a),a),t.ranges.map(h=>new vt(h.from-t.start,h.to-t.start)),t.bracketed,t.target,a[0].from))),t=t.prev}i&&!--i.depth&&(i=i.prev)}}}};function gd(e,t,i){for(let s of e){if(s.from>=i)break;if(s.to>t)return s.from<=t&&s.to>=i?2:1}return 0}function ia(e,t,i,s,r,n){if(t=e&&t.enter(i,1,F.IgnoreOverlays|F.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof V)t=t.children[0];else break}return!1}},vd=class{constructor(e){if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let t=this.curFrag=e[0];this.curTo=t.tree.prop(Lr)??t.to,this.inner=new sa(t.tree,-t.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=e.tree.prop(Lr)??e.to,this.inner=new sa(e.tree,-e.offset)}}findMounts(e,t){var s;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let r=this.inner.cursor.node;r;r=r.parent){let n=(s=r.tree)==null?void 0:s.prop(E.mounted);if(n&&n.parser==t)for(let o=this.fragI;o=r.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:r.from-l.offset,mount:n})}}}return i}};function ra(e,t){let i=null,s=t;for(let r=1,n=0;r=l)break;a.to<=o||(i||(s=i=t.slice()),a.froml&&i.splice(n+1,0,new vt(l,a.to))):a.to>l?i[n--]=new vt(l,a.to):i.splice(n--,1))}}return s}function wd(e,t,i,s){let r=0,n=0,o=!1,l=!1,a=-1e9,h=[];for(;;){let c=r==e.length?1e9:o?e[r].to:e[r].from,u=n==t.length?1e9:l?t[n].to:t[n].from;if(o!=l){let f=Math.max(a,i),d=Math.min(c,u,s);fnew vt(u.from+s,u.to+s)),a,h);for(let u=0,f=a;;u++){let d=u==c.length,p=d?h:c[u].from;if(p>f&&i.push(new Oe(f,p,r.tree,-o,n.from>=f||n.openStart,n.to<=p||n.openEnd)),d)break;f=c[u].to}}else i.push(new Oe(a,h,r.tree,-o,n.from>=o||n.openStart,n.to<=l||n.openEnd))}return i}var bd=0,Rt=class fn{constructor(t,i,s,r){this.name=t,this.set=i,this.base=s,this.modified=r,this.id=bd++}toString(){let{name:t}=this;for(let i of this.modified)i.name&&(t=`${i.name}(${t})`);return t}static define(t,i){let s=typeof t=="string"?t:"?";if(t instanceof fn&&(i=t),i==null?void 0:i.base)throw Error("Can not derive from a modified tag");let r=new fn(s,[],null,[]);if(r.set.push(r),i)for(let n of i.set)r.set.push(n);return r}static defineModifier(t){let i=new oa(t);return s=>s.modified.indexOf(i)>-1?s:oa.get(s.base||s,s.modified.concat(i).sort((r,n)=>r.id-n.id))}},xd=0,oa=class Rh{constructor(t){this.name=t,this.instances=[],this.id=xd++}static get(t,i){if(!i.length)return t;let s=i[0].instances.find(l=>l.base==t&&yd(i,l.modified));if(s)return s;let r=[],n=new Rt(t.name,r,t,i);for(let l of i)l.instances.push(n);let o=kd(i);for(let l of t.set)if(!l.modified.length)for(let a of o)r.push(Rh.get(l,a));return n}};function yd(e,t){return e.length==t.length&&e.every((i,s)=>i==t[s])}function kd(e){let t=[[]];for(let i=0;is.length-i.length)}function la(e){let t=Object.create(null);for(let i in e){let s=e[i];Array.isArray(s)||(s=[s]);for(let r of i.split(" "))if(r){let n=[],o=2,l=r;for(let c=0;;){if(l=="..."&&c>0&&c+3==r.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw RangeError("Invalid path: "+r);if(n.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),c+=u[0].length,c==r.length)break;let f=r[c++];if(c==r.length&&f=="!"){o=0;break}if(f!="/")throw RangeError("Invalid path: "+r);l=r.slice(c)}let a=n.length-1,h=n[a];if(!h)throw RangeError("Invalid path: "+r);t[h]=new ii(s,o,a>0?n.slice(0,a):null).sort(t[h])}}return aa.add(t)}var aa=new E({combine(e,t){let i,s,r;for(;e||t;){if(!e||t&&e.depth>=t.depth?(r=t,t=t.next):(r=e,e=e.next),i&&i.mode==r.mode&&!r.context&&!i.context)continue;let n=new ii(r.tags,r.mode,r.context);i?i.next=n:s=n,i=n}return s}}),ii=class{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let o=r;for(let l of n)for(let a of l.set){let h=i[a.id];if(h){o=o?o+" "+h:h;break}}return o},scope:s}}function Sd(e,t){let i=null;for(let s of e){let r=s.style(t);r&&(i=i?i+" "+r:r)}return i}function ca(e,t,i,s=0,r=e.length){let n=new Cd(s,Array.isArray(t)?t:[t],i);n.highlightRange(e.cursor(),s,r,"",n.highlighters),n.flush(r)}var Cd=class{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,r){let{type:n,from:o,to:l}=e;if(o>=i||l<=t)return;n.isTop&&(r=this.highlighters.filter(f=>!f.scope||f.scope(n)));let a=s,h=Ad(e)||ii.empty,c=Sd(r,h.tags);if(c&&(a&&(a+=" "),a+=c,h.mode==1&&(s+=(s?" ":"")+c)),this.startSpan(Math.max(t,o),a),h.opaque)return;let u=e.tree&&e.tree.prop(E.mounted);if(u&&u.overlay){let f=e.node.enter(u.overlay[0].from+o,1),d=this.highlighters.filter(g=>!g.scope||g.scope(u.tree.type)),p=e.firstChild();for(let g=0,m=o;;g++){let v=g=M||!e.nextSibling())););if(!v||M>i)break;m=v.to+o,m>t&&(this.highlightRange(f.cursor(),Math.max(t,v.from+o),Math.min(i,m),"",d),this.startSpan(Math.min(i,m),a))}p&&e.parent()}else if(e.firstChild()){u&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,r),this.startSpan(Math.min(i,e.to),a)}while(e.nextSibling());e.parent()}}};function Ad(e){let t=e.type.prop(aa);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}var w=Rt.define,es=w(),te=w(),ua=w(te),fa=w(te),ee=w(),is=w(ee),Ir=w(ee),Nt=w(),ce=w(Nt),Lt=w(),It=w(),Wr=w(),si=w(Wr),ss=w(),b={comment:es,lineComment:w(es),blockComment:w(es),docComment:w(es),name:te,variableName:w(te),typeName:ua,tagName:w(ua),propertyName:fa,attributeName:w(fa),className:w(te),labelName:w(te),namespace:w(te),macroName:w(te),literal:ee,string:is,docString:w(is),character:w(is),attributeValue:w(is),number:Ir,integer:w(Ir),float:w(Ir),bool:w(ee),regexp:w(ee),escape:w(ee),color:w(ee),url:w(ee),keyword:Lt,self:w(Lt),null:w(Lt),atom:w(Lt),unit:w(Lt),modifier:w(Lt),operatorKeyword:w(Lt),controlKeyword:w(Lt),definitionKeyword:w(Lt),moduleKeyword:w(Lt),operator:It,derefOperator:w(It),arithmeticOperator:w(It),logicOperator:w(It),bitwiseOperator:w(It),compareOperator:w(It),updateOperator:w(It),definitionOperator:w(It),typeOperator:w(It),controlOperator:w(It),punctuation:Wr,separator:w(Wr),bracket:si,angleBracket:w(si),squareBracket:w(si),paren:w(si),brace:w(si),content:Nt,heading:ce,heading1:w(ce),heading2:w(ce),heading3:w(ce),heading4:w(ce),heading5:w(ce),heading6:w(ce),contentSeparator:w(Nt),list:w(Nt),quote:w(Nt),emphasis:w(Nt),strong:w(Nt),link:w(Nt),monospace:w(Nt),strikethrough:w(Nt),inserted:w(),deleted:w(),changed:w(),invalid:w(),meta:ss,documentMeta:w(ss),annotation:w(ss),processingInstruction:w(ss),definition:Rt.defineModifier("definition"),constant:Rt.defineModifier("constant"),function:Rt.defineModifier("function"),standard:Rt.defineModifier("standard"),local:Rt.defineModifier("local"),special:Rt.defineModifier("special")};for(let e in b){let t=b[e];t instanceof Rt&&(t.name=e)}ha([{tag:b.link,class:"tok-link"},{tag:b.heading,class:"tok-heading"},{tag:b.emphasis,class:"tok-emphasis"},{tag:b.strong,class:"tok-strong"},{tag:b.keyword,class:"tok-keyword"},{tag:b.atom,class:"tok-atom"},{tag:b.bool,class:"tok-bool"},{tag:b.url,class:"tok-url"},{tag:b.labelName,class:"tok-labelName"},{tag:b.inserted,class:"tok-inserted"},{tag:b.deleted,class:"tok-deleted"},{tag:b.literal,class:"tok-literal"},{tag:b.string,class:"tok-string"},{tag:b.number,class:"tok-number"},{tag:[b.regexp,b.escape,b.special(b.string)],class:"tok-string2"},{tag:b.variableName,class:"tok-variableName"},{tag:b.local(b.variableName),class:"tok-variableName tok-local"},{tag:b.definition(b.variableName),class:"tok-variableName tok-definition"},{tag:b.special(b.variableName),class:"tok-variableName2"},{tag:b.definition(b.propertyName),class:"tok-propertyName tok-definition"},{tag:b.typeName,class:"tok-typeName"},{tag:b.namespace,class:"tok-namespace"},{tag:b.className,class:"tok-className"},{tag:b.macroName,class:"tok-macroName"},{tag:b.propertyName,class:"tok-propertyName"},{tag:b.operator,class:"tok-operator"},{tag:b.comment,class:"tok-comment"},{tag:b.meta,class:"tok-meta"},{tag:b.invalid,class:"tok-invalid"},{tag:b.punctuation,class:"tok-punctuation"}]);var ie=new E;function Hr(e){return A.define({combine:e?t=>t.concat(e):void 0})}var da=new E,rt=class{constructor(e,t,i=[],s=""){this.data=e,this.name=s,G.prototype.hasOwnProperty("tree")||Object.defineProperty(G.prototype,"tree",{get(){return St(this)}}),this.parser=t,this.extension=[$t.of(this),G.languageData.of((r,n,o)=>{let l=pa(r,n,o),a=l.type.prop(ie);if(!a)return[];let h=r.facet(a),c=l.type.prop(da);if(c){let u=l.resolve(n-l.from,o);for(let f of c)if(f.test(u,r)){let d=r.facet(f.facet);return f.type=="replace"?d:d.concat(h)}}return h})].concat(i)}isActiveAt(e,t,i=-1){return pa(e,t,i).type.prop(ie)==this.data}findRegions(e){let t=e.facet($t);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(r,n)=>{if(r.prop(ie)==this.data){i.push({from:n,to:n+r.length});return}let o=r.prop(E.mounted);if(o){if(o.tree.prop(ie)==this.data){if(o.overlay)for(let l of o.overlay)i.push({from:l.from+n,to:l.to+n});else i.push({from:n,to:n+r.length});return}else if(o.overlay){let l=i.length;if(s(o.tree,o.overlay[0].from+n),i.length>l)return}}for(let l=0;ls.isTop?i:void 0)]}),t.name)}configure(t,i){return new dn(this.data,this.parser.configure(t),i||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function St(e){let t=e.field(rt.state,!1);return t?t.tree:V.empty}function Td(e,t,i=50){var o;let s=(o=e.field(rt.state,!1))==null?void 0:o.context;if(!s)return null;let r=s.viewport;s.updateViewport({from:0,to:t});let n=s.isDone(t)||s.work(i,t)?s.tree:null;return s.updateViewport(r),n}var Od=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}},ri=null,rs=class pn{constructor(t,i,s=[],r,n,o,l,a){this.parser=t,this.state=i,this.fragments=s,this.tree=r,this.treeLen=n,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,i,s){return new pn(t,i,[],V.empty,0,s,[],null)}startParse(){return this.parser.startParse(new Od(this.state.doc),this.fragments)}work(t,i){return i!=null&&i>=this.state.doc.length&&(i=void 0),this.tree!=V.empty&&this.isDone(i??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{if(typeof t=="number"){let s=Date.now()+t;t=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),i!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>i)&&i=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(i=this.parse.advance()););}),this.treeLen=t,this.tree=i,this.fragments=this.withoutTempSkipped(Oe.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let i=ri;ri=this;try{return t()}finally{ri=i}}withoutTempSkipped(t){for(let i;i=this.tempSkipped.pop();)t=ga(t,i.from,i.to);return t}changes(t,i){let{fragments:s,tree:r,treeLen:n,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let a=[];if(t.iterChangedRanges((h,c,u,f)=>a.push({fromA:h,toA:c,fromB:u,toB:f})),s=Oe.applyChanges(s,a),r=V.empty,n=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let c=t.mapPos(h.from,1),u=t.mapPos(h.to,-1);ct.from&&(this.fragments=ga(this.fragments,r,n),this.skipped.splice(s--,1))}return this.skipped.length>=i?!1:(this.reset(),!0)}reset(){this.parse&&(this.parse=(this.takeTree(),null))}skipUntilInView(t,i){this.skipped.push({from:t,to:i})}static getSkippingParser(t){return new class extends ts{createParse(i,s,r){let n=r[0].from,o=r[r.length-1].to;return{parsedPos:n,advance(){let l=ri;if(l){for(let a of r)l.tempSkipped.push(a);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=o,new V(it.none,[],[],o-n)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let i=this.fragments;return this.treeLen>=t&&i.length&&i[0].from==0&&i[0].to>=t}static get(){return ri}};function ga(e,t,i){return Oe.applyChanges(e,[{fromA:t,toA:i,fromB:t,toB:i}])}var Vr=class gn{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let i=this.context.changes(t.changes,t.state),s=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),i.viewport.to);return i.work(20,s)||i.takeTree(),new gn(i)}static init(t){let i=Math.min(3e3,t.doc.length),s=rs.create(t.facet($t).parser,t,{from:0,to:i});return s.work(20,i)||s.takeTree(),new gn(s)}};rt.state=Tt.define({create:Vr.init,update(e,t){for(let i of t.effects)if(i.is(rt.setState))return i.value;return t.startState.facet($t)==t.state.facet($t)?e.apply(t):Vr.init(t.state)}});var ma=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(ma=e=>{let t=-1,i=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(i):cancelIdleCallback(t)});var zr=typeof navigator<"u"&&((sh=navigator.scheduling)!=null&&sh.isInputPending)?()=>navigator.scheduling.isInputPending():null,Dd=tt.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(rt.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(rt.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=ma(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnds+1e3,l=r.context.work(()=>zr&&zr()||Date.now()>n,s+(o?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:rt.setState.of(new Vr(r.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(e.scheduleOn=(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>pt(this.view.state,t)).then(()=>this.workScheduled--),null))}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),$t=A.define({combine(e){return e.length?e[0]:null},enables:e=>[rt.state,Dd,P.contentAttributes.compute([e],t=>{let i=t.facet(e);return i&&i.name?{"data-language":i.name}:{}})]}),Pd=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}},Bd=class Nh{constructor(t,i,s,r,n,o=void 0){this.name=t,this.alias=i,this.extensions=s,this.filename=r,this.loadFunc=n,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:i,support:s}=t;if(!i){if(!s)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");i=()=>Promise.resolve(s)}return new Nh(t.name,(t.alias||[]).concat(t.name).map(r=>r.toLowerCase()),t.extensions||[],t.filename,i,s)}static matchFilename(t,i){for(let r of t)if(r.filename&&r.filename.test(i))return r;let s=/\.([^.]+)$/.exec(i);if(s){for(let r of t)if(r.extensions.indexOf(s[1])>-1)return r}return null}static matchLanguageName(t,i,s=!0){i=i.toLowerCase();for(let r of t)if(r.alias.some(n=>n==i))return r;if(s)for(let r of t)for(let n of r.alias){let o=i.indexOf(n);if(o>-1&&(n.length>2||!/\w/.test(i[o-1])&&!/\w/.test(i[o+n.length])))return r}return null}},Ed=A.define(),Fr=A.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(i=>i!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function ni(e){let t=e.facet(Fr);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function va(e,t){let i="",s=e.tabSize,r=e.facet(Fr)[0];if(r==" "){for(;t>=s;)i+=" ",t-=s;r=" "}for(let n=0;n=t?Rd(e,i,t):null}var qr=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=ni(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=i.from&&s<=i.to?r&&s==e?{text:"",from:e}:(t<0?s-1&&(r+=n-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return xi(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let n=r(s);if(n>-1)return n}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Kr=new E;function Rd(e,t,i){let s=t.resolveStack(i),r=t.resolveInner(i,-1).resolve(i,0).enterUnfinishedNodesBefore(i);if(r!=s.node){let n=[];for(let o=r;o&&!(o.froms.node.to||o.from==s.node.from&&o.type==s.node.type);o=o.parent)n.push(o);for(let o=n.length-1;o>=0;o--)s={node:n[o],next:s}}return ba(s,e,i)}function ba(e,t,i){for(let s=e;s;s=s.next){let r=Ld(s.node);if(r)return r(Wd.create(t,i,s))}return 0}function Nd(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function Ld(e){let t=e.type.prop(Kr);if(t)return t;let i=e.firstChild,s;if(i&&(s=i.type.prop(E.closedBy))){let r=e.lastChild,n=r&&s.indexOf(r.name)>-1;return o=>xa(o,!0,1,void 0,n&&!Nd(o)?r.from:void 0)}return e.parent==null?Id:null}function Id(){return 0}var Wd=class Lh extends qr{constructor(t,i,s){super(t.state,t.options),this.base=t,this.pos=i,this.context=s}get node(){return this.context.node}static create(t,i,s){return new Lh(t,i,s)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let i=this.state.doc.lineAt(t.from);for(;;){let s=t.resolve(i.from);for(;s.parent&&s.parent.from==s.from;)s=s.parent;if(Hd(s,t))break;i=this.state.doc.lineAt(s.from)}return this.lineIndent(i.from)}continue(){return ba(this.context.next,this.base,this.pos)}};function Hd(e,t){for(let i=t;i;i=i.parent)if(e==i)return!0;return!1}function Vd(e){let t=e.node,i=t.childAfter(t.from),s=t.lastChild;if(!i)return null;let r=e.options.simulateBreak,n=e.state.doc.lineAt(i.from),o=r==null||r<=n.from?n.to:Math.min(n.to,r);for(let l=i.to;;){let a=t.childAfter(l);if(!a||a==s)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let h=/^ */.exec(n.text.slice(i.to-n.from))[0].length;return{from:i.from,to:i.to+h}}l=a.to}}function zd({closing:e,align:t=!0,units:i=1}){return s=>xa(s,t,i,e)}function xa(e,t,i,s,r){let n=e.textAfter,o=n.match(/^\s*/)[0].length,l=s&&n.slice(o,o+s.length)==s||r==e.pos+o,a=t?Vd(e):null;return a?l?e.column(a.from):e.column(a.to):e.baseIndent+(l?0:e.unit*i)}var Fd=e=>e.baseIndent;function qd({except:e,units:t=1}={}){return i=>{let s=e&&e.test(i.textAfter);return i.baseIndent+(s?0:t*i.unit)}}var Kd=200;function jd(){return G.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let i=e.newDoc,{head:s}=e.newSelection.main,r=i.lineAt(s);if(s>r.from+Kd)return e;let n=i.sliceString(r.from,s);if(!t.some(h=>h.test(n)))return e;let{state:o}=e,l=-1,a=[];for(let{head:h}of o.selection.ranges){let c=o.doc.lineAt(h);if(c.from==l)continue;l=c.from;let u=wa(o,c.from);if(u==null)continue;let f=/^\s*/.exec(c.text)[0],d=va(o,u);f!=d&&a.push({from:c.from,to:c.from+f.length,insert:d})}return a.length?[e,{changes:a,sequential:!0}]:e})}var ya=A.define(),ka=new E;function $d(e){let t=e.firstChild,i=e.lastChild;return t&&t.toi)continue;if(n&&l.from=t&&h.to>i&&(n=h)}}return n}function Gd(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function ns(e,t,i){for(let s of e.facet(ya)){let r=s(e,t,i);if(r)return r}return Ud(e,t,i)}function Sa(e,t){let i=t.mapPos(e.from,1),s=t.mapPos(e.to,-1);return i>=s?void 0:{from:i,to:s}}var os=U.define({map:Sa}),De=U.define({map:Sa});function Ca(e){let t=[];for(let{head:i}of e.state.selection.ranges)t.some(s=>s.from<=i&&s.to>=i)||t.push(e.lineBlockAt(i));return t}var se=Tt.define({create(){return N.none},update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((i,s)=>e=Aa(e,i,s)),e=e.map(t.changes);for(let i of t.effects)if(i.is(os)&&!Xd(e,i.value.from,i.value.to)){let{preparePlaceholder:s}=t.state.facet(jr),r=s?N.replace({widget:new _d(s(t.state,i.value))}):Ra;e=e.update({add:[r.range(i.value.from,i.value.to)]})}else i.is(De)&&(e=e.update({filter:(s,r)=>i.value.from!=s||i.value.to!=r,filterFrom:i.value.from,filterTo:i.value.to}));return t.selection&&(e=Aa(e,t.selection.main.head)),e},provide:e=>P.decorations.from(e),toJSON(e,t){let i=[];return e.between(0,t.doc.length,(s,r)=>{i.push(s,r)}),i},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let i=0;i{rt&&(s=!0)}),s?e.update({filterFrom:t,filterTo:i,filter:(r,n)=>r>=i||n<=t}):e}function Yd(e){return e.field(se,!1)||H.empty}function ls(e,t,i){var s;let r=null;return(s=e.field(se,!1))==null||s.between(t,i,(n,o)=>{(!r||r.from>n)&&(r={from:n,to:o})}),r}function Xd(e,t,i){let s=!1;return e.between(t,t,(r,n)=>{r==t&&n==i&&(s=!0)}),s}function Ma(e,t){return e.field(se,!1)?t:t.concat(U.appendConfig.of(Ba()))}var Ta=e=>{for(let t of Ca(e)){let i=ns(e.state,t.from,t.to);if(i)return e.dispatch({effects:Ma(e.state,[os.of(i),Oa(e,i)])}),!0}return!1},Jd=e=>{if(!e.state.field(se,!1))return!1;let t=[];for(let i of Ca(e)){let s=ls(e.state,i.from,i.to);s&&t.push(De.of(s),Oa(e,s,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function Oa(e,t,i=!0){let s=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return P.announce.of(`${e.state.phrase(i?"Folded lines":"Unfolded lines")} ${s} ${e.state.phrase("to")} ${r}.`)}var Da=e=>{let{state:t}=e,i=[];for(let s=0;s{let t=e.state.field(se,!1);if(!t||!t.size)return!1;let i=[];return t.between(0,e.state.doc.length,(s,r)=>{i.push(De.of({from:s,to:r}))}),e.dispatch({effects:i}),!0},Qd=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Ta},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Jd},{key:"Ctrl-Alt-[",run:Da},{key:"Ctrl-Alt-]",run:Pa}],Zd={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},jr=A.define({combine(e){return ge(e,Zd)}});function Ba(e){let t=[se,ip];return e&&t.push(jr.of(e)),t}function Ea(e,t){let{state:i}=e,s=i.facet(jr),r=o=>{let l=e.lineBlockAt(e.posAtDOM(o.target)),a=ls(e.state,l.from,l.to);a&&e.dispatch({effects:De.of(a)}),o.preventDefault()};if(s.placeholderDOM)return s.placeholderDOM(e,r,t);let n=document.createElement("span");return n.textContent=s.placeholderText,n.setAttribute("aria-label",i.phrase("folded code")),n.title=i.phrase("unfold"),n.className="cm-foldPlaceholder",n.onclick=r,n}var Ra=N.replace({widget:new class extends Ot{toDOM(e){return Ea(e,null)}}}),_d=class extends Ot{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ea(e,this.value)}},tp={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},$r=class extends Et{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}};function ep(e={}){let t={...tp,...e},i=new $r(t,!0),s=new $r(t,!1),r=tt.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet($t)!=o.state.facet($t)||o.startState.field(se,!1)!=o.state.field(se,!1)||St(o.startState)!=St(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new me;for(let a of o.viewportLineBlocks){let h=ls(o.state,a.from,a.to)?s:ns(o.state,a.from,a.to)?i:null;h&&l.add(a.from,a.from,h)}return l.finish()}}),{domEventHandlers:n}=t;return[r,Fl({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(r))==null?void 0:l.markers)||H.empty},initialSpacer(){return new $r(t,!1)},domEventHandlers:{...n,click:(o,l,a)=>{if(n.click&&n.click(o,l,a))return!0;let h=ls(o.state,l.from,l.to);if(h)return o.dispatch({effects:De.of(h)}),!0;let c=ns(o.state,l.from,l.to);return c?(o.dispatch({effects:os.of(c)}),!0):!1}}}),Ba()]}var ip=P.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),Ur=class Ih{constructor(t,i){this.specs=t;let s;function r(l){let a=Vt.newName();return(s||(s=Object.create(null)))["."+a]=l,a}let n=typeof i.all=="string"?i.all:i.all?r(i.all):void 0,o=i.scope;this.scope=o instanceof rt?l=>l.prop(ie)==o.data:o?l=>l==o:void 0,this.style=ha(t.map(l=>({tag:l.tag,class:l.class||r(Object.assign({},l,{tag:null}))})),{all:n}).style,this.module=s?new Vt(s):null,this.themeType=i.themeType}static define(t,i){return new Ih(t,i||{})}},Gr=A.define(),Na=A.define({combine(e){return e.length?[e[0]]:null}});function as(e){let t=e.facet(Gr);return t.length?t:e.facet(Na)}function sp(e,t){let i=[op],s;return e instanceof Ur&&(e.module&&i.push(P.styleModule.of(e.module)),s=e.themeType),t!=null&&t.fallback?i.push(Na.of(e)):s?i.push(Gr.computeN([P.darkTheme],r=>r.facet(P.darkTheme)==(s=="dark")?[e]:[])):i.push(Gr.of(e)),i}function rp(e,t,i){let s=as(e),r=null;if(s){for(let n of s)if(!n.scope||i&&n.scope(i)){let o=n.style(t);o&&(r=r?r+" "+o:o)}}return r}var np=class{constructor(e){this.markCache=Object.create(null),this.tree=St(e.state),this.decorations=this.buildDeco(e,as(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=St(e.state),i=as(e.state),s=i!=as(e.startState),{viewport:r}=e.view,n=e.changes.mapPos(this.decoratedTo,1);t.length=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=n):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return N.none;let i=new me;for(let{from:s,to:r}of e.visibleRanges)ca(this.tree,t,(n,o,l)=>{i.add(n,o,this.markCache[l]||(this.markCache[l]=N.mark({class:l})))},s,r);return i.finish()}},op=Le.high(tt.fromClass(np,{decorations:e=>e.decorations})),lp=Ur.define([{tag:b.meta,color:"#404740"},{tag:b.link,textDecoration:"underline"},{tag:b.heading,textDecoration:"underline",fontWeight:"bold"},{tag:b.emphasis,fontStyle:"italic"},{tag:b.strong,fontWeight:"bold"},{tag:b.strikethrough,textDecoration:"line-through"},{tag:b.keyword,color:"#708"},{tag:[b.atom,b.bool,b.url,b.contentSeparator,b.labelName],color:"#219"},{tag:[b.literal,b.inserted],color:"#164"},{tag:[b.string,b.deleted],color:"#a11"},{tag:[b.regexp,b.escape,b.special(b.string)],color:"#e40"},{tag:b.definition(b.variableName),color:"#00f"},{tag:b.local(b.variableName),color:"#30a"},{tag:[b.typeName,b.namespace],color:"#085"},{tag:b.className,color:"#167"},{tag:[b.special(b.variableName),b.macroName],color:"#256"},{tag:b.definition(b.propertyName),color:"#00c"},{tag:b.comment,color:"#940"},{tag:b.invalid,color:"#f00"}]),ap=P.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),La=1e4,Ia="()[]{}",Wa=A.define({combine(e){return ge(e,{afterCursor:!0,brackets:Ia,maxScanDistance:La,renderMatch:up})}}),hp=N.mark({class:"cm-matchingBracket"}),cp=N.mark({class:"cm-nonmatchingBracket"});function up(e){let t=[],i=e.matched?hp:cp;return t.push(i.range(e.start.from,e.start.to)),e.end&&t.push(i.range(e.end.from,e.end.to)),t}var fp=[Tt.define({create(){return N.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let i=[],s=t.state.facet(Wa);for(let r of t.state.selection.ranges){if(!r.empty)continue;let n=oi(t.state,r.head,-1,s)||r.head>0&&oi(t.state,r.head-1,1,s)||s.afterCursor&&(oi(t.state,r.head,1,s)||r.headP.decorations.from(e)}),ap];function dp(e={}){return[Wa.of(e),fp]}var Ha=new E;function Yr(e,t,i){let s=e.prop(t<0?E.openedBy:E.closedBy);if(s)return s;if(e.name.length==1){let r=i.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[i[r+t]]}return null}function Xr(e){let t=e.type.prop(Ha);return t?t(e.node):e}function oi(e,t,i,s={}){let r=s.maxScanDistance||La,n=s.brackets||Ia,o=St(e),l=o.resolveInner(t,i);for(let a=l;a;a=a.parent){let h=Yr(a.type,i,n);if(h&&a.from0?t>=c.from&&tc.from&&t<=c.to))return pp(e,t,i,a,c,h,n)}}return gp(e,t,i,o,l.type,r,n)}function pp(e,t,i,s,r,n,o){let l=s.parent,a={from:r.from,to:r.to},h=0,c=l==null?void 0:l.cursor();if(c&&(i<0?c.childBefore(s.from):c.childAfter(s.to)))do if(i<0?c.to<=s.from:c.from>=s.to){if(h==0&&n.indexOf(c.type.name)>-1&&c.from0)return null;let h={from:i<0?t-1:t,to:i>0?t+1:t},c=e.doc.iterRange(t,i>0?e.doc.length:0),u=0;for(let f=0;!c.next().done&&f<=n;){let d=c.value;i<0&&(f+=d.length);let p=t+f*i;for(let g=i>0?0:d.length-1,m=i>0?d.length:-1;g!=m;g+=i){let v=o.indexOf(d[g]);if(!(v<0||s.resolveInner(p+g,1).type!=r))if(v%2==0==i>0)u++;else{if(u==1)return{start:h,end:{from:p+g,to:p+g+1},matched:v>>1==a>>1};u--}}i>0&&(f+=d.length)}return c.done?{start:h,matched:!1}:null}function Va(e,t,i,s=0,r=0){t??(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));let n=r;for(let o=s;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosi?r.toLowerCase():r;return s(this.string.substr(this.pos,e.length))==s(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}};function mp(e){return{name:e.name||"",token:e.token,blankLine:e.blankLine||(()=>{}),startState:e.startState||(()=>!0),copyState:e.copyState||vp,indent:e.indent||(()=>null),languageData:e.languageData||{},tokenTable:e.tokenTable||Zr,mergeTokens:e.mergeTokens!==!1}}function vp(e){if(typeof e!="object")return e;let t={};for(let i in e){let s=e[i];t[i]=s instanceof Array?s.slice():s}return t}var za=new WeakMap,wp=class Wh extends rt{constructor(t){let i=Hr(t.languageData),s=mp(t),r,n=new class extends ts{createParse(o,l,a){return new xp(r,o,l,a)}};super(i,n,[],t.name),this.topNode=Sp(i,this),r=this,this.streamParser=s,this.stateAfter=new E({perNode:!0}),this.tokenTable=t.tokenTable?new Ua(s.tokenTable):kp}static define(t){return new Wh(t)}getIndent(t){let i,{overrideIndentation:s}=t.options;s&&(i=za.get(t.state),i!=null&&i1e4)return null;for(;n=s&&i+t.length<=r&&t.prop(e.stateAfter);if(n)return{state:e.streamParser.copyState(n),pos:i+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],a=i+t.positions[o],h=l instanceof V&&a=t.length)return t;!r&&i==0&&t.type==e.topNode&&(r=!0);for(let n=t.children.length-1;n>=0;n--){let o=t.positions[n],l=t.children[n],a;if(oi&&Qr(e,n.tree,0-n.offset,i,l),h;if(a&&a.pos<=s&&(h=Fa(e,n.tree,i+n.offset,a.pos+n.offset,!1)))return{state:a.state,tree:h}}return{state:e.streamParser.startState(r?ni(r):4),tree:V.empty}}var xp=class{constructor(e,t,i,s){this.lang=e,this.input=t,this.fragments=i,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let r=rs.get(),n=s[0].from,{state:o,tree:l}=bp(e,i,n,this.to,r==null?void 0:r.state);this.state=o,this.parsedPos=this.chunkStart=n+l.length;for(let a=0;aa.from<=r.viewport.from&&a.to>=r.viewport.from)&&(this.state=this.lang.streamParser.startState(ni(r.state)),r.skipUntilInView(this.parsedPos,r.viewport.from),this.parsedPos=r.viewport.from),this.moveRangeIndex()}advance(){let e=rs.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),i=Math.min(t,this.chunkStart+512);for(e&&(i=Math.min(i,e.viewport.to));this.parsedPos=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==` +`&&(t="");else{let i=t.indexOf(` +`);i>-1&&(t=t.slice(0,i))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),i=e+t.length;for(let s=this.rangeIndex;;){let r=this.ranges[s].to;if(r>=i||(t=t.slice(0,r-(i-t.length)),s++,s==this.ranges.length))break;let n=this.ranges[s].from,o=this.lineAfter(n);t+=o,i=n+o.length}return{line:t,end:i}}skipGapsTo(e,t,i){for(;;){let s=this.ranges[this.rangeIndex].to,r=e+t;if(i>0?s>r:s>=r)break;let n=this.ranges[++this.rangeIndex].from;t+=n-s}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){s=this.skipGapsTo(t,s,1),t+=s;let o=this.chunk.length;s=this.skipGapsTo(i,s,-1),i+=s,r+=this.chunk.length-o}let n=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&r==4&&n>=0&&this.chunk[n]==e&&this.chunk[n+2]==t?this.chunk[n+2]=i:this.chunk.push(e,t,i,r),s}parseLine(e){let{line:t,end:i}=this.nextLine(),s=0,{streamParser:r}=this.lang,n=new Jr(t,e?e.state.tabSize:4,e?ni(e.state):2);if(n.eol())r.blankLine(this.state,n.indentUnit);else for(;!n.eol();){let o=qa(r.token,n,this.state);if(o&&(s=this.emitToken(this.lang.tokenTable.resolve(o),this.parsedPos+n.start,this.parsedPos+n.pos,s)),n.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPost.start)return r}throw Error("Stream parser failed to advance stream.")}var Zr=Object.create(null),li=[it.none],yp=new Br(li),Ka=[],ja=Object.create(null),$a=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])$a[e]=Ga(Zr,t);var Ua=class{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),$a)}resolve(e){return e?this.table[e]||(this.table[e]=Ga(this.extra,e)):0}},kp=new Ua(Zr);function _r(e,t){Ka.indexOf(e)>-1||(Ka.push(e),console.warn(t))}function Ga(e,t){let i=[];for(let l of t.split(" ")){let a=[];for(let h of l.split(".")){let c=e[h]||b[h];c?typeof c=="function"?a.length?a=a.map(c):_r(h,`Modifier ${h} used at start of tag`):a.length?_r(h,`Tag ${h} used as modifier`):a=Array.isArray(c)?c:[c]:_r(h,`Unknown highlighting tag ${h}`)}for(let h of a)i.push(h)}if(!i.length)return 0;let s=t.replace(/ /g,"_"),r=s+" "+i.map(l=>l.id),n=ja[r];if(n)return n.id;let o=ja[r]=it.define({id:li.length,name:s,props:[la({[s]:i})]});return li.push(o),o.id}function Sp(e,t){let i=it.define({id:li.length,name:"Document",props:[ie.add(()=>e),Kr.add(()=>s=>t.getIndent(s))],top:!0});return li.push(i),i}j.RTL,j.LTR;var Cp=class mn{constructor(t,i,s,r,n,o,l,a,h,c=0,u){this.p=t,this.stack=i,this.state=s,this.reducePos=r,this.pos=n,this.score=o,this.buffer=l,this.bufferBase=a,this.curContext=h,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((t,i)=>i%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,i,s=0){let r=t.parser.context;return new mn(t,[],i,s,s,0,[],0,r?new Ya(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,i){this.stack.push(this.state,i,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var f;let i=t>>19,s=t&65535,{parser:r}=this.p,n=this.reducePos=2e3&&!((f=this.p.parser.nodeSet.types[s])!=null&&f.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(s,a)}storeNode(t,i,s,r=4,n=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(i==s)return;if(o.buffer[l-2]>=i){o.buffer[l-2]=s;return}}}if(!n||this.pos==s)this.buffer.push(t,i,s,r);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let l=!1;for(let a=o;a>0&&this.buffer[a-2]>s;a-=4)if(this.buffer[a-1]>=0){l=!0;break}if(l)for(;o>0&&this.buffer[o-2]>s;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4)}this.buffer[o]=t,this.buffer[o+1]=i,this.buffer[o+2]=s,this.buffer[o+3]=r}}shift(t,i,s,r){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=r,this.shiftContext(i,s),i<=this.p.parser.maxNode&&this.buffer.push(i,s,r,4);else{let n=t,{parser:o}=this.p;this.pos=r,!o.stateFlag(n,1)&&(r>s||i<=o.maxNode)&&(this.reducePos=r),this.pushState(n,Math.min(s,this.reducePos)),this.shiftContext(i,s),i<=o.maxNode&&this.buffer.push(i,s,r,4)}}apply(t,i,s,r){t&65536?this.reduce(t):this.shift(t,i,s,r)}useNode(t,i){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let r=this.pos;this.reducePos=this.pos=r+t.length,this.pushState(i,r),this.buffer.push(s,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,i=t.buffer.length;for(;i>0&&t.buffer[i-2]>t.reducePos;)i-=4;let s=t.buffer.slice(i),r=t.bufferBase+i;for(;t&&r==t.bufferBase;)t=t.parent;return new mn(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,r,this.curContext,this.lookAhead,t)}recoverByDelete(t,i){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,i,4),this.storeNode(0,this.pos,i,s?8:4),this.pos=this.reducePos=i,this.score-=190}canShift(t){for(let i=new Ap(this);;){let s=this.p.parser.stateSlot(i.state,4)||this.p.parser.hasAction(i.state,t);if(s==0)return!1;if(!(s&65536))return!0;i.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let i=this.p.parser.nextStates(this.state);if(i.length>8||this.stack.length>=120){let r=[];for(let n=0,o;na&1&&l==o)||r.push(i[n],o)}i=r}let s=[];for(let r=0;r>19,r=i&65535,n=this.stack.length-s*3;if(n<0||t.getGoto(this.stack[n],r,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;i=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(i),!0}findForcedReduction(){let{parser:t}=this.p,i=[],s=(r,n)=>{if(!i.includes(r))return i.push(r),t.allActions(r,o=>{if(!(o&393216))if(o&65536){let l=(o>>19)-n;if(l>1){let a=o&65535,h=this.stack.length-l*3;if(h>=0&&t.getGoto(this.stack[h],a,!1)>=0)return l<<19|65536|a}}else{let l=s(o,n+1);if(l!=null)return l}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let i=0;i0&&this.emitLookAhead()}},Ya=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Ap=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3,this.state=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0)}},Mp=class vn{constructor(t,i,s){this.stack=t,this.pos=i,this.index=s,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,i=t.bufferBase+t.buffer.length){return new vn(t,i,i-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new vn(this.stack,this.pos,this.index)}};function ai(e,t=Uint16Array){if(typeof e!="string")return e;let i=null;for(let s=0,r=0;s=92&&o--,o>=34&&o--;let a=o-32;if(a>=46&&(a-=46,l=!0),n+=a,l)break;n*=46}i?i[r++]=n:i=new t(n)}return i}var hs=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},Xa=new hs,Tp=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Xa,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,s=this.rangeIndex,r=this.pos+e;for(;ri.to:r>=i.to;){if(s==this.ranges.length-1)return null;let n=this.ranges[++s];r+=n.from-i.to,i=n}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,s;if(t>=0&&t=this.chunk2Pos&&io.to&&(this.chunk2=this.chunk2.slice(0,o.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Xa,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(i+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return i}},Pe=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;Qa(this.data,e,t,this.id,i.data,i.tokenPrecTable)}};Pe.prototype.contextual=Pe.prototype.fallback=Pe.prototype.extend=!1;var Ja=class{constructor(e,t,i){this.precTable=t,this.elseToken=i,this.data=typeof e=="string"?ai(e):e}token(e,t){let i=e.pos,s=0;for(;;){let r=e.next<0,n=e.resolveOffset(1,1);if(Qa(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(r||s++,n==null)break;e.reset(n,e.token)}s&&(e.reset(i,e.token),e.acceptToken(this.elseToken,s))}};Ja.prototype.contextual=Pe.prototype.fallback=Pe.prototype.extend=!1;var Op=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function Qa(e,t,i,s,r,n){let o=0,l=1<0){let p=e[d];if(a.allows(p)&&(t.token.value==-1||t.token.value==p||Dp(p,t.token.value,r,n))){t.acceptToken(p);break}}let c=t.next,u=0,f=e[o+2];if(t.next<0&&f>u&&e[h+f*3-3]==65535){o=e[h+f*3-1];continue t}for(;u>1,p=h+d+(d<<1),g=e[p],m=e[p+1]||65536;if(c=m)u=d+1;else{o=e[p+2],t.advance();continue t}}break}}function Za(e,t,i){for(let s=t,r;(r=e[s])!=65535;s++)if(r==i)return s-t;return-1}function Dp(e,t,i,s){let r=Za(i,s,t);return r<0||Za(i,s,e)t)&&!s.type.isError)return i<0?Math.max(0,Math.min(s.to-1,t-25)):Math.min(e.length,Math.max(s.from+1,t+25));if(i<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return i<0?0:e.length}}var Pp=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?th(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?th(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=n,null;if(r instanceof V){if(n==e){if(n=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(n),this.index.push(0))}else this.index[t]++,this.nextStart=n+r.length}}},Bp=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new hs)}getActions(e){let t=0,i=null,{parser:s}=e.p,{tokenizers:r}=s,n=s.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,l=0;for(let a=0;ac.end+25&&(l=Math.max(c.lookAhead,l)),c.value!=0)){let u=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!h.extend&&(i=c,t>u))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!i&&e.pos==this.stream.end&&(i=new hs,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new hs,{pos:i,p:s}=e;return t.start=i,t.end=Math.min(i+1,s.stream.end),t.value=i==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,i){let s=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(s,e),i),e.value>-1){let{parser:r}=i.p;for(let n=0;n=0&&i.p.parser.dialect.allows(o>>1)){o&1?e.extended=o>>1:e.value=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,i,s){for(let r=0;re.bufferLength*4?new Pp(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],s,r;if(this.bigReductionCount>300&&e.length==1){let[n]=e;for(;n.forceReduce()&&n.stack.length&&n.stack[n.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let n=0;nt)i.push(o);else{if(this.advanceStack(o,i,e))continue;{s||(s=[],r=[]),s.push(o);let l=this.tokens.getMainToken(o);r.push(l.value,l.end)}}break}}if(!i.length){let n=s&&Ip(s);if(n)return lt&&console.log("Finish with "+this.stackID(n)),this.stackToTree(n);if(this.parser.strict)throw lt&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let n=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,r,i);if(n)return lt&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let n=this.recovering==1?1:this.recovering*3;if(i.length>n)for(i.sort((o,l)=>l.score-o.score);i.length>n;)i.pop();i.some(o=>o.reducePos>t)&&this.recovering--}else if(i.length>1){t:for(let n=0;n500&&a.buffer.length>500)if((o.score-a.score||o.buffer.length-a.buffer.length)>0)i.splice(l--,1);else{i.splice(n--,1);continue t}}}i.length>12&&(i.sort((n,o)=>o.score-n.score),i.splice(12,i.length-12))}this.minStackPos=i[0].pos;for(let n=1;n ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let a=e.curContext&&e.curContext.tracker.strict,h=a?e.curContext.hash:0;for(let c=this.fragments.nodeAt(s);c;){let u=this.parser.nodeSet.types[c.type.id]==c.type?r.getGoto(e.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(E.contextHash)||0)==h))return e.useNode(c,u),lt&&console.log(n+this.stackID(e)+` (via reuse of ${r.getName(c.type.id)})`),!0;if(!(c instanceof V)||c.children.length==0||c.positions[0]>0)break;let f=c.children[0];if(f instanceof V&&c.positions[0]==0)c=f;else break}}let o=r.stateSlot(e.state,4);if(o>0)return e.reduce(o),lt&&console.log(n+this.stackID(e)+` (via always-reduce ${r.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let a=0;as?t.push(d):i.push(d)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return eh(e,t),!0}}runRecovery(e,t,i){let s=null,r=!1;for(let n=0;n ":"";if(o.deadEnd&&(r||(r=!0,o.restart(),lt&&console.log(h+this.stackID(o)+" (restarted)"),this.advanceFully(o,i))))continue;let c=o.split(),u=h;for(let f=0;f<10&&c.forceReduce()&&(lt&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,i));f++)lt&&(u=this.stackID(c)+" -> ");for(let f of o.recoverByInsert(l))lt&&console.log(h+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,i);this.stream.end>o.pos?(a==o.pos&&(a++,l=0),o.recoverByDelete(l,a),lt&&console.log(h+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),eh(o,i)):(!s||s.scoree,Np=class{constructor(e){this.start=e.start,this.shift=e.shift||tn,this.reduce=e.reduce||tn,this.reuse=e.reuse||tn,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},Lp=class wn extends ts{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let i=t.nodeNames.split(" ");this.minRepeatTerm=i.length;for(let l=0;lt.topRules[l][1]),r=[];for(let l=0;l=0)n(c,a,l[h++]);else{let u=l[h+-c];for(let f=-c;f>0;f--)n(l[h++],a,u);h++}}}this.nodeSet=new Br(i.map((l,a)=>it.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:r[a],top:s.indexOf(a)>-1,error:a==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(a)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Gl;let o=ai(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Pe(o,l):l),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,i,s){let r=new Ep(this,t,i,s);for(let n of this.wrappers)r=n(r,t,i,s);return r}getGoto(t,i,s=!1){let r=this.goto;if(i>=r[0])return-1;for(let n=r[i+1];;){let o=r[n++],l=o&1,a=r[n++];if(l&&s)return a;for(let h=n+(o>>1);n0}validAction(t,i){return!!this.allActions(t,s=>s==i?!0:null)}allActions(t,i){let s=this.stateSlot(t,4),r=s?i(s):void 0;for(let n=this.stateSlot(t,1);r==null;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=Ut(this.data,n+2);else break;r=i(Ut(this.data,n+1))}return r}nextStates(t){let i=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=Ut(this.data,s+2);else break;if(!(this.data[s+2]&1)){let r=this.data[s+1];i.some((n,o)=>o&1&&n==r)||i.push(this.data[s],r)}}return i}configure(t){let i=Object.assign(Object.create(wn.prototype),this);if(t.props&&(i.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw RangeError(`Invalid top rule name ${t.top}`);i.top=s}return t.tokenizers&&(i.tokenizers=this.tokenizers.map(s=>{let r=t.tokenizers.find(n=>n.from==s);return r?r.to:s})),t.specializers&&(i.specializers=this.specializers.slice(),i.specializerSpecs=this.specializerSpecs.map((s,r)=>{let n=t.specializers.find(l=>l.from==s.external);if(!n)return s;let o=Object.assign(Object.assign({},s),{external:n.to});return i.specializers[r]=ih(o),o})),t.contextTracker&&(i.context=t.contextTracker),t.dialect&&(i.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(i.strict=t.strict),t.wrap&&(i.wrappers=i.wrappers.concat(t.wrap)),t.bufferLength!=null&&(i.bufferLength=t.bufferLength),i}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let i=this.dynamicPrecedences;return i==null?0:i[t]||0}parseDialect(t){let i=Object.keys(this.dialects),s=i.map(()=>!1);if(t)for(let n of t.split(" ")){let o=i.indexOf(n);o>=0&&(s[o]=!0)}let r=null;for(let n=0;ns)&&i.p.parser.stateFlag(i.state,2)&&(!t||t.scoree.external(i,s)<<1|t}return e.get}export{cd as $,ge as $t,ni as A,Ar as At,da as B,G as Bt,Ta as C,xr as Ct,ka as D,Df as Dt,Qd as E,Af as Et,va as F,de as Ft,Rt as G,me as Gt,St as H,st as Ht,Fr as I,xt as It,b as J,Tt as Jt,ca as K,Xt as Kt,$t as L,Ht as Lt,rp as M,hc as Mt,Kr as N,Vt as Nt,ya as O,Xu as Ot,jd as P,le as Pt,it as Q,Pn as Qt,ie as R,ks as Rt,Da as S,kl as St,$d as T,pt as Tt,Pa as U,Le as Ut,sp as V,A as Vt,De as W,H as Wt,E as X,dt as Xt,F as Y,W as Yt,Br as Z,gs as Zt,lp as _,Fl as _t,Ur as a,P as at,Td as b,pf as bt,rt as c,tt as ct,rs as d,Ef as dt,xi as en,ts as et,wp as f,ef as ft,qd as g,qf as gt,Ha as h,jf as ht,Ja as i,j as it,wa as j,Rf as jt,Yd as k,Mr as kt,Bd as l,Ot as lt,dp as m,sf as mt,Op as n,$h as nn,fd as nt,qr as o,Et as ot,Jr as p,af as pt,la as q,U as qt,Lp as r,N as rt,Md as s,qi as st,Np as t,ot as tn,V as tt,Pd as u,Kf as ut,Hr as v,yf as vt,ep as w,_f as wt,Fd as x,Ff as xt,zd as y,id as yt,oi as z,O as zt}; diff --git a/docs/assets/dist-CBrDuocE.js b/docs/assets/dist-CBrDuocE.js new file mode 100644 index 0000000..16bcf4e --- /dev/null +++ b/docs/assets/dist-CBrDuocE.js @@ -0,0 +1 @@ +import{s as wt}from"./chunk-LvLJmgfZ.js";import{t as De}from"./react-BGmjiNul.js";import{t as ke}from"./react-dom-C9fstfnp.js";import{r as $t}from"./useEventListener-COkmyg1v.js";import{t as He}from"./jsx-runtime-DN_bIXfG.js";import{C as xt,E as je,_ as st,g as Fe}from"./Combination-D1TsGrBC.js";var R=wt(De(),1);function Nt(t){let[e,r]=R.useState(void 0);return xt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});let n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;let o=i[0],l,a;if("borderBoxSize"in o){let s=o.borderBoxSize,u=Array.isArray(s)?s[0]:s;l=u.inlineSize,a=u.blockSize}else l=t.offsetWidth,a=t.offsetHeight;r({width:l,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var We=["top","right","bottom","left"],J=Math.min,_=Math.max,ft=Math.round,ct=Math.floor,N=t=>({x:t,y:t}),_e={left:"right",right:"left",bottom:"top",top:"bottom"},Be={start:"end",end:"start"};function vt(t,e,r){return _(t,J(e,r))}function q(t,e){return typeof t=="function"?t(e):t}function G(t){return t.split("-")[0]}function U(t){return t.split("-")[1]}function bt(t){return t==="x"?"y":"x"}function At(t){return t==="y"?"height":"width"}var Me=new Set(["top","bottom"]);function V(t){return Me.has(G(t))?"y":"x"}function Rt(t){return bt(V(t))}function ze(t,e,r){r===void 0&&(r=!1);let n=U(t),i=Rt(t),o=At(i),l=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=ut(l)),[l,ut(l)]}function $e(t){let e=ut(t);return[St(t),e,St(e)]}function St(t){return t.replace(/start|end/g,e=>Be[e])}var Vt=["left","right"],It=["right","left"],Ne=["top","bottom"],Ve=["bottom","top"];function Ie(t,e,r){switch(t){case"top":case"bottom":return r?e?It:Vt:e?Vt:It;case"left":case"right":return e?Ne:Ve;default:return[]}}function Ye(t,e,r,n){let i=U(t),o=Ie(G(t),r==="start",n);return i&&(o=o.map(l=>l+"-"+i),e&&(o=o.concat(o.map(St)))),o}function ut(t){return t.replace(/left|right|bottom|top/g,e=>_e[e])}function Xe(t){return{top:0,right:0,bottom:0,left:0,...t}}function Yt(t){return typeof t=="number"?{top:t,right:t,bottom:t,left:t}:Xe(t)}function dt(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function Xt(t,e,r){let{reference:n,floating:i}=t,o=V(e),l=Rt(e),a=At(l),s=G(e),u=o==="y",f=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,h=n[a]/2-i[a]/2,c;switch(s){case"top":c={x:f,y:n.y-i.height};break;case"bottom":c={x:f,y:n.y+n.height};break;case"right":c={x:n.x+n.width,y:d};break;case"left":c={x:n.x-i.width,y:d};break;default:c={x:n.x,y:n.y}}switch(U(e)){case"start":c[l]-=h*(r&&u?-1:1);break;case"end":c[l]+=h*(r&&u?-1:1);break}return c}var qe=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:l}=r,a=o.filter(Boolean),s=await(l.isRTL==null?void 0:l.isRTL(e)),u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:d}=Xt(u,n,s),h=n,c={},p=0;for(let m=0;m({name:"arrow",options:t,async fn(e){let{x:r,y:n,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=e,{element:u,padding:f=0}=q(t,e)||{};if(u==null)return{};let d=Yt(f),h={x:r,y:n},c=Rt(i),p=At(c),m=await l.getDimensions(u),y=c==="y",g=y?"top":"left",w=y?"bottom":"right",x=y?"clientHeight":"clientWidth",v=o.reference[p]+o.reference[c]-h[c]-o.floating[p],b=h[c]-o.reference[c],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u)),P=S?S[x]:0;(!P||!await(l.isElement==null?void 0:l.isElement(S)))&&(P=a.floating[x]||o.floating[p]);let O=v/2-b/2,D=P/2-m[p]/2-1,F=J(d[g],D),H=J(d[w],D),j=F,E=P-m[p]-H,T=P/2-m[p]/2+O,W=vt(j,T,E),L=!s.arrow&&U(i)!=null&&T!==W&&o.reference[p]/2-(TT<=0)){let T=(((H=i.flip)==null?void 0:H.index)||0)+1,W=S[T];if(W&&(!(f==="alignment"&&g!==V(W))||D.every(C=>C.overflows[0]>0&&V(C.placement)===g)))return{data:{index:T,overflows:D},reset:{placement:W}};let L=(j=D.filter(C=>C.overflows[0]<=0).sort((C,A)=>C.overflows[1]-A.overflows[1])[0])==null?void 0:j.placement;if(!L)switch(h){case"bestFit":{let C=(E=D.filter(A=>{if(b){let k=V(A.placement);return k===g||k==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(k=>k>0).reduce((k,$)=>k+$,0)]).sort((A,k)=>A[1]-k[1])[0])==null?void 0:E[0];C&&(L=C);break}case"initialPlacement":L=l;break}if(n!==L)return{reset:{placement:L}}}return{}}}};function qt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Gt(t){return We.some(e=>t[e]>=0)}var Ke=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:r}=e,{strategy:n="referenceHidden",...i}=q(t,e);switch(n){case"referenceHidden":{let o=qt(await rt(e,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Gt(o)}}}case"escaped":{let o=qt(await rt(e,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:o,escaped:Gt(o)}}}default:return{}}}}},Jt=new Set(["left","top"]);async function Qe(t,e){let{placement:r,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),l=G(r),a=U(r),s=V(r)==="y",u=Jt.has(l)?-1:1,f=o&&s?-1:1,d=q(e,t),{mainAxis:h,crossAxis:c,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof p=="number"&&(c=a==="end"?p*-1:p),s?{x:c*f,y:h*u}:{x:h*u,y:c*f}}var Ue=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var s;var r;let{x:n,y:i,placement:o,middlewareData:l}=e,a=await Qe(e,t);return o===((s=l.offset)==null?void 0:s.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+a.x,y:i+a.y,data:{...a,placement:o}}}}},Ze=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:y=>{let{x:g,y:w}=y;return{x:g,y:w}}},...s}=q(t,e),u={x:r,y:n},f=await rt(e,s),d=V(G(i)),h=bt(d),c=u[h],p=u[d];if(o){let y=h==="y"?"top":"left",g=h==="y"?"bottom":"right",w=c+f[y],x=c-f[g];c=vt(w,c,x)}if(l){let y=d==="y"?"top":"left",g=d==="y"?"bottom":"right",w=p+f[y],x=p-f[g];p=vt(w,p,x)}let m=a.fn({...e,[h]:c,[d]:p});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:o,[d]:l}}}}}},tn=function(t){return t===void 0&&(t={}),{options:t,fn(e){var g,w;let{x:r,y:n,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=q(t,e),f={x:r,y:n},d=V(i),h=bt(d),c=f[h],p=f[d],m=q(a,e),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let x=h==="y"?"height":"width",v=o.reference[h]-o.floating[x]+y.mainAxis,b=o.reference[h]+o.reference[x]-y.mainAxis;cb&&(c=b)}if(u){let x=h==="y"?"width":"height",v=Jt.has(G(i)),b=o.reference[d]-o.floating[x]+(v&&((g=l.offset)==null?void 0:g[d])||0)+(v?0:y.crossAxis),S=o.reference[d]+o.reference[x]+(v?0:((w=l.offset)==null?void 0:w[d])||0)-(v?y.crossAxis:0);pS&&(p=S)}return{[h]:c,[d]:p}}}},en=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;let{placement:i,rects:o,platform:l,elements:a}=e,{apply:s=()=>{},...u}=q(t,e),f=await rt(e,u),d=G(i),h=U(i),c=V(i)==="y",{width:p,height:m}=o.floating,y,g;d==="top"||d==="bottom"?(y=d,g=h===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(g=d,y=h==="end"?"top":"bottom");let w=m-f.top-f.bottom,x=p-f.left-f.right,v=J(m-f[y],w),b=J(p-f[g],x),S=!e.middlewareData.shift,P=v,O=b;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(O=x),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(P=w),S&&!h){let F=_(f.left,0),H=_(f.right,0),j=_(f.top,0),E=_(f.bottom,0);c?O=p-2*(F!==0||H!==0?F+H:_(f.left,f.right)):P=m-2*(j!==0||E!==0?j+E:_(f.top,f.bottom))}await s({...e,availableWidth:O,availableHeight:P});let D=await l.getDimensions(a.floating);return p!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function Z(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function I(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return pt()?t instanceof Node||t instanceof B(t).Node:!1}function M(t){return pt()?t instanceof Element||t instanceof B(t).Element:!1}function Y(t){return pt()?t instanceof HTMLElement||t instanceof B(t).HTMLElement:!1}function Qt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof B(t).ShadowRoot}var nn=new Set(["inline","contents"]);function it(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!nn.has(i)}var rn=new Set(["table","td","th"]);function on(t){return rn.has(Z(t))}var ln=[":popover-open",":modal"];function ht(t){return ln.some(e=>{try{return t.matches(e)}catch{return!1}})}var an=["transform","translate","scale","rotate","perspective"],sn=["transform","translate","scale","rotate","perspective","filter"],fn=["paint","layout","strict","content"];function Pt(t){let e=Tt(),r=M(t)?z(t):t;return an.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||sn.some(n=>(r.willChange||"").includes(n))||fn.some(n=>(r.contain||"").includes(n))}function cn(t){let e=K(t);for(;Y(e)&&!tt(e);){if(Pt(e))return e;if(ht(e))return null;e=K(e)}return null}function Tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var un=new Set(["html","body","#document"]);function tt(t){return un.has(Z(t))}function z(t){return B(t).getComputedStyle(t)}function mt(t){return M(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(Z(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Qt(t)&&t.host||I(t);return Qt(e)?e.host:e}function Ut(t){let e=K(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&it(e)?e:Ut(e)}function ot(t,e,r){var l;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Ut(t),i=n===((l=t.ownerDocument)==null?void 0:l.body),o=B(n);if(i){let a=Ct(o);return e.concat(o,o.visualViewport||[],it(n)?n:[],a&&r?ot(a):[])}return e.concat(n,ot(n,[],r))}function Ct(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Zt(t){let e=z(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Y(t),o=i?t.offsetWidth:r,l=i?t.offsetHeight:n,a=ft(r)!==o||ft(n)!==l;return a&&(r=o,n=l),{width:r,height:n,$:a}}function Et(t){return M(t)?t:t.contextElement}function et(t){let e=Et(t);if(!Y(e))return N(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=Zt(e),l=(o?ft(r.width):r.width)/n,a=(o?ft(r.height):r.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}var dn=N(0);function te(t){let e=B(t);return!Tt()||!e.visualViewport?dn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function pn(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==B(t)?!1:e}function Q(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=Et(t),l=N(1);e&&(n?M(n)&&(l=et(n)):l=et(t));let a=pn(o,r,n)?te(o):N(0),s=(i.left+a.x)/l.x,u=(i.top+a.y)/l.y,f=i.width/l.x,d=i.height/l.y;if(o){let h=B(o),c=n&&M(n)?B(n):n,p=h,m=Ct(p);for(;m&&n&&c!==p;){let y=et(m),g=m.getBoundingClientRect(),w=z(m),x=g.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,v=g.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;s*=y.x,u*=y.y,f*=y.x,d*=y.y,s+=x,u+=v,p=B(m),m=Ct(p)}}return dt({width:f,height:d,x:s,y:u})}function Lt(t,e){let r=mt(t).scrollLeft;return e?e.left+r:Q(I(t)).left+r}function ee(t,e,r){r===void 0&&(r=!1);let n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-(r?0:Lt(t,n)),y:n.top+e.scrollTop}}function hn(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",l=I(n),a=e?ht(e.floating):!1;if(n===l||a&&o)return r;let s={scrollLeft:0,scrollTop:0},u=N(1),f=N(0),d=Y(n);if((d||!d&&!o)&&((Z(n)!=="body"||it(l))&&(s=mt(n)),Y(n))){let c=Q(n);u=et(n),f.x=c.x+n.clientLeft,f.y=c.y+n.clientTop}let h=l&&!d&&!o?ee(l,s,!0):N(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-s.scrollTop*u.y+f.y+h.y}}function mn(t){return Array.from(t.getClientRects())}function gn(t){let e=I(t),r=mt(t),n=t.ownerDocument.body,i=_(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=_(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+Lt(t),a=-r.scrollTop;return z(n).direction==="rtl"&&(l+=_(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:l,y:a}}function yn(t,e){let r=B(t),n=I(t),i=r.visualViewport,o=n.clientWidth,l=n.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let u=Tt();(!u||u&&e==="fixed")&&(a=i.offsetLeft,s=i.offsetTop)}return{width:o,height:l,x:a,y:s}}var wn=new Set(["absolute","fixed"]);function xn(t,e){let r=Q(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=Y(t)?et(t):N(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:n*o.y}}function ne(t,e,r){let n;if(e==="viewport")n=yn(t,r);else if(e==="document")n=gn(I(t));else if(M(e))n=xn(e,r);else{let i=te(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return dt(n)}function re(t,e){let r=K(t);return r===e||!M(r)||tt(r)?!1:z(r).position==="fixed"||re(r,e)}function vn(t,e){let r=e.get(t);if(r)return r;let n=ot(t,[],!1).filter(a=>M(a)&&Z(a)!=="body"),i=null,o=z(t).position==="fixed",l=o?K(t):t;for(;M(l)&&!tt(l);){let a=z(l),s=Pt(l);!s&&a.position==="fixed"&&(i=null),(o?!s&&!i:!s&&a.position==="static"&&i&&wn.has(i.position)||it(l)&&!s&&re(t,l))?n=n.filter(u=>u!==l):i=a,l=K(l)}return e.set(t,n),n}function bn(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,o=[...r==="clippingAncestors"?ht(e)?[]:vn(e,this._c):[].concat(r),n],l=o[0],a=o.reduce((s,u)=>{let f=ne(e,u,i);return s.top=_(f.top,s.top),s.right=J(f.right,s.right),s.bottom=J(f.bottom,s.bottom),s.left=_(f.left,s.left),s},ne(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function An(t){let{width:e,height:r}=Zt(t);return{width:e,height:r}}function Rn(t,e,r){let n=Y(e),i=I(e),o=r==="fixed",l=Q(t,!0,o,e),a={scrollLeft:0,scrollTop:0},s=N(0);function u(){s.x=Lt(i)}if(n||!n&&!o)if((Z(e)!=="body"||it(i))&&(a=mt(e)),n){let d=Q(e,!0,o,e);s.x=d.x+e.clientLeft,s.y=d.y+e.clientTop}else i&&u();o&&!n&&i&&u();let f=i&&!n&&!o?ee(i,a):N(0);return{x:l.left+a.scrollLeft-s.x-f.x,y:l.top+a.scrollTop-s.y-f.y,width:l.width,height:l.height}}function Ot(t){return z(t).position==="static"}function ie(t,e){if(!Y(t)||z(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return I(t)===r&&(r=r.ownerDocument.body),r}function oe(t,e){let r=B(t);if(ht(t))return r;if(!Y(t)){let i=K(t);for(;i&&!tt(i);){if(M(i)&&!Ot(i))return i;i=K(i)}return r}let n=ie(t,e);for(;n&&on(n)&&Ot(n);)n=ie(n,e);return n&&tt(n)&&Ot(n)&&!Pt(n)?r:n||cn(t)||r}var Sn=async function(t){let e=this.getOffsetParent||oe,r=this.getDimensions,n=await r(t.floating);return{reference:Rn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pn(t){return z(t).direction==="rtl"}var Tn={convertOffsetParentRelativeRectToViewportRelativeRect:hn,getDocumentElement:I,getClippingRect:bn,getOffsetParent:oe,getElementRects:Sn,getClientRects:mn,getDimensions:An,getScale:et,isElement:M,isRTL:Pn};function le(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Cn(t,e){let r=null,n,i=I(t);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();let u=t.getBoundingClientRect(),{left:f,top:d,width:h,height:c}=u;if(a||e(),!h||!c)return;let p=ct(d),m=ct(i.clientWidth-(f+h)),y=ct(i.clientHeight-(d+c)),g=ct(f),w={rootMargin:-p+"px "+-m+"px "+-y+"px "+-g+"px",threshold:_(0,J(1,s))||1},x=!0;function v(b){let S=b[0].intersectionRatio;if(S!==s){if(!x)return l();S?l(!1,S):n=setTimeout(()=>{l(!1,1e-7)},1e3)}S===1&&!le(u,t.getBoundingClientRect())&&l(),x=!1}try{r=new IntersectionObserver(v,{...w,root:i.ownerDocument})}catch{r=new IntersectionObserver(v,w)}r.observe(t)}return l(!0),o}function En(t,e,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,u=Et(t),f=i||o?[...u?ot(u):[],...ot(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",r,{passive:!0}),o&&g.addEventListener("resize",r)});let d=u&&a?Cn(u,r):null,h=-1,c=null;l&&(c=new ResizeObserver(g=>{let[w]=g;w&&w.target===u&&c&&(c.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(e)})),r()}),u&&!s&&c.observe(u),c.observe(e));let p,m=s?Q(t):null;s&&y();function y(){let g=Q(t);m&&!le(m,g)&&r(),m=g,p=requestAnimationFrame(y)}return r(),()=>{var g;f.forEach(w=>{i&&w.removeEventListener("scroll",r),o&&w.removeEventListener("resize",r)}),d==null||d(),(g=c)==null||g.disconnect(),c=null,s&&cancelAnimationFrame(p)}}var Ln=Ue,On=Ze,Dn=Je,kn=en,Hn=Ke,ae=Ge,jn=tn,Fn=(t,e,r)=>{let n=new Map,i={platform:Tn,...r},o={...i.platform,_c:n};return qe(t,e,{...i,platform:o})},Wn=wt(ke(),1),gt=typeof document<"u"?R.useLayoutEffect:function(){};function yt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!yt(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!(o==="_owner"&&t.$$typeof)&&!yt(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function se(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function fe(t,e){let r=se(t);return Math.round(e*r)/r}function Dt(t){let e=R.useRef(t);return gt(()=>{e.current=t}),e}function _n(t){t===void 0&&(t={});let{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:l}={},transform:a=!0,whileElementsMounted:s,open:u}=t,[f,d]=R.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,c]=R.useState(n);yt(h,n)||c(n);let[p,m]=R.useState(null),[y,g]=R.useState(null),w=R.useCallback(A=>{A!==S.current&&(S.current=A,m(A))},[]),x=R.useCallback(A=>{A!==P.current&&(P.current=A,g(A))},[]),v=o||p,b=l||y,S=R.useRef(null),P=R.useRef(null),O=R.useRef(f),D=s!=null,F=Dt(s),H=Dt(i),j=Dt(u),E=R.useCallback(()=>{if(!S.current||!P.current)return;let A={placement:e,strategy:r,middleware:h};H.current&&(A.platform=H.current),Fn(S.current,P.current,A).then(k=>{let $={...k,isPositioned:j.current!==!1};T.current&&!yt(O.current,$)&&(O.current=$,Wn.flushSync(()=>{d($)}))})},[h,e,r,H,j]);gt(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[u]);let T=R.useRef(!1);gt(()=>(T.current=!0,()=>{T.current=!1}),[]),gt(()=>{if(v&&(S.current=v),b&&(P.current=b),v&&b){if(F.current)return F.current(v,b,E);E()}},[v,b,E,F,D]);let W=R.useMemo(()=>({reference:S,floating:P,setReference:w,setFloating:x}),[w,x]),L=R.useMemo(()=>({reference:v,floating:b}),[v,b]),C=R.useMemo(()=>{let A={position:r,left:0,top:0};if(!L.floating)return A;let k=fe(L.floating,f.x),$=fe(L.floating,f.y);return a?{...A,transform:"translate("+k+"px, "+$+"px)",...se(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:k,top:$}},[r,a,L.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:E,refs:W,elements:L,floatingStyles:C}),[f,E,W,L,C])}var Bn=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){let{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current==null?{}:ae({element:n.current,padding:i}).fn(r):n?ae({element:n,padding:i}).fn(r):{}}}},Mn=(t,e)=>({...Ln(t),options:[t,e]}),zn=(t,e)=>({...On(t),options:[t,e]}),$n=(t,e)=>({...jn(t),options:[t,e]}),Nn=(t,e)=>({...Dn(t),options:[t,e]}),Vn=(t,e)=>({...kn(t),options:[t,e]}),In=(t,e)=>({...Hn(t),options:[t,e]}),Yn=(t,e)=>({...Bn(t),options:[t,e]}),X=wt(He(),1),Xn="Arrow",ce=R.forwardRef((t,e)=>{let{children:r,width:n=10,height:i=5,...o}=t;return(0,X.jsx)(st.svg,{...o,ref:e,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:(0,X.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ce.displayName=Xn;var qn=ce,kt="Popper",[ue,Gn]=je(kt),[Jn,de]=ue(kt),pe=t=>{let{__scopePopper:e,children:r}=t,[n,i]=R.useState(null);return(0,X.jsx)(Jn,{scope:e,anchor:n,onAnchorChange:i,children:r})};pe.displayName=kt;var he="PopperAnchor",me=R.forwardRef((t,e)=>{let{__scopePopper:r,virtualRef:n,...i}=t,o=de(he,r),l=R.useRef(null),a=$t(e,l),s=R.useRef(null);return R.useEffect(()=>{let u=s.current;s.current=(n==null?void 0:n.current)||l.current,u!==s.current&&o.onAnchorChange(s.current)}),n?null:(0,X.jsx)(st.div,{...i,ref:a})});me.displayName=he;var Ht="PopperContent",[Kn,Qn]=ue(Ht),ge=R.forwardRef((t,e)=>{var Ft,Wt,_t,Bt,Mt,zt;let{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:c="optimized",onPlaced:p,...m}=t,y=de(Ht,r),[g,w]=R.useState(null),x=$t(e,nt=>w(nt)),[v,b]=R.useState(null),S=Nt(v),P=(S==null?void 0:S.width)??0,O=(S==null?void 0:S.height)??0,D=n+(o==="center"?"":"-"+o),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(u)?u:[u],j=H.length>0,E={padding:F,boundary:H.filter(Zn),altBoundary:j},{refs:T,floatingStyles:W,placement:L,isPositioned:C,middlewareData:A}=_n({strategy:"fixed",placement:D,whileElementsMounted:(...nt)=>En(...nt,{animationFrame:c==="always"}),elements:{reference:y.anchor},middleware:[Mn({mainAxis:i+O,alignmentAxis:l}),s&&zn({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?$n():void 0,...E}),s&&Nn({...E}),Vn({...E,apply:({elements:nt,rects:Te,availableWidth:Ce,availableHeight:Ee})=>{let{width:Le,height:Oe}=Te.reference,at=nt.floating.style;at.setProperty("--radix-popper-available-width",`${Ce}px`),at.setProperty("--radix-popper-available-height",`${Ee}px`),at.setProperty("--radix-popper-anchor-width",`${Le}px`),at.setProperty("--radix-popper-anchor-height",`${Oe}px`)}}),v&&Yn({element:v,padding:a}),tr({arrowWidth:P,arrowHeight:O}),h&&In({strategy:"referenceHidden",...E})]}),[k,$]=xe(L),lt=Fe(p);xt(()=>{C&&(lt==null||lt())},[C,lt]);let be=(Ft=A.arrow)==null?void 0:Ft.x,Ae=(Wt=A.arrow)==null?void 0:Wt.y,Re=((_t=A.arrow)==null?void 0:_t.centerOffset)!==0,[Se,Pe]=R.useState();return xt(()=>{g&&Pe(window.getComputedStyle(g).zIndex)},[g]),(0,X.jsx)("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:C?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(Bt=A.transformOrigin)==null?void 0:Bt.x,(Mt=A.transformOrigin)==null?void 0:Mt.y].join(" "),...((zt=A.hide)==null?void 0:zt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,X.jsx)(Kn,{scope:r,placedSide:k,onArrowChange:b,arrowX:be,arrowY:Ae,shouldHideArrow:Re,children:(0,X.jsx)(st.div,{"data-side":k,"data-align":$,...m,ref:x,style:{...m.style,animation:C?void 0:"none"}})})})});ge.displayName=Ht;var ye="PopperArrow",Un={top:"bottom",right:"left",bottom:"top",left:"right"},we=R.forwardRef(function(t,e){let{__scopePopper:r,...n}=t,i=Qn(ye,r),o=Un[i.placedSide];return(0,X.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,X.jsx)(qn,{...n,ref:e,style:{...n.style,display:"block"}})})});we.displayName=ye;function Zn(t){return t!==null}var tr=t=>({name:"transformOrigin",options:t,fn(e){var m,y,g;let{placement:r,rects:n,middlewareData:i}=e,o=((m=i.arrow)==null?void 0:m.centerOffset)!==0,l=o?0:t.arrowWidth,a=o?0:t.arrowHeight,[s,u]=xe(r),f={start:"0%",center:"50%",end:"100%"}[u],d=(((y=i.arrow)==null?void 0:y.x)??0)+l/2,h=(((g=i.arrow)==null?void 0:g.y)??0)+a/2,c="",p="";return s==="bottom"?(c=o?f:`${d}px`,p=`${-a}px`):s==="top"?(c=o?f:`${d}px`,p=`${n.floating.height+a}px`):s==="right"?(c=`${-a}px`,p=o?f:`${h}px`):s==="left"&&(c=`${n.floating.width+a}px`,p=o?f:`${h}px`),{data:{x:c,y:p}}}});function xe(t){let[e,r="center"]=t.split("-");return[e,r]}var er=pe,nr=me,rr=ge,ir=we,ve=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),or="VisuallyHidden",jt=R.forwardRef((t,e)=>(0,X.jsx)(st.span,{...t,ref:e,style:{...ve,...t.style}}));jt.displayName=or;var lr=jt;export{ir as a,Gn as c,nr as i,Nt as l,ve as n,rr as o,jt as r,er as s,lr as t}; diff --git a/docs/assets/dist-CGGpiWda.js b/docs/assets/dist-CGGpiWda.js new file mode 100644 index 0000000..9f102a4 --- /dev/null +++ b/docs/assets/dist-CGGpiWda.js @@ -0,0 +1 @@ +import{D as U,H as _,J as m,N as Z,at as B,h as D,n as R,q as M,r as F,s as J,t as K,u as H,zt as L}from"./dist-CAcX026F.js";var W=1,OO=2,tO=3,eO=4,oO=5,rO=36,nO=37,aO=38,lO=11,sO=13;function iO(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}function cO(O){return O==9||O==10||O==13||O==32}var E=null,z=null,G=0;function w(O,t){let e=O.pos+t;if(z==O&&G==e)return E;for(;cO(O.peek(t));)t++;let o="";for(;;){let s=O.peek(t);if(!iO(s))break;o+=String.fromCharCode(s),t++}return z=O,G=e,E=o||null}function A(O,t){this.name=O,this.parent=t}var $O=new K({start:null,shift(O,t,e,o){return t==W?new A(w(o,1)||"",O):O},reduce(O,t){return t==lO&&O?O.parent:O},reuse(O,t,e,o){let s=t.type.id;return s==W||s==sO?new A(w(o,1)||"",O):O},strict:!1}),SO=new R((O,t)=>{if(O.next==60){if(O.advance(),O.next==47){O.advance();let e=w(O,0);if(!e)return O.acceptToken(oO);if(t.context&&e==t.context.name)return O.acceptToken(OO);for(let o=t.context;o;o=o.parent)if(o.name==e)return O.acceptToken(tO,-2);O.acceptToken(eO)}else if(O.next!=33&&O.next!=63)return O.acceptToken(W)}},{contextual:!0});function Q(O,t){return new R(e=>{let o=0,s=t.charCodeAt(0);O:for(;!(e.next<0);e.advance(),o++)if(e.next==s){for(let a=1;a"),gO=Q(nO,"?>"),mO=Q(aO,"]]>"),uO=M({Text:m.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":m.angleBracket,TagName:m.tagName,"MismatchedCloseTag/TagName":[m.tagName,m.invalid],AttributeName:m.attributeName,AttributeValue:m.attributeValue,Is:m.definitionOperator,"EntityReference CharacterReference":m.character,Comment:m.blockComment,ProcessingInst:m.processingInstruction,DoctypeDecl:m.documentMeta,Cdata:m.special(m.string)}),xO=F.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[SO,pO,gO,mO,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function v(O,t){let e=t&&t.getChild("TagName");return e?O.sliceString(e.from,e.to):""}function y(O,t){let e=t&&t.firstChild;return!e||e.name!="OpenTag"?"":v(O,e)}function fO(O,t,e){let o=t&&t.getChildren("Attribute").find(a=>a.from<=e&&a.to>=e),s=o&&o.getChild("AttributeName");return s?O.sliceString(s.from,s.to):""}function X(O){for(let t=O&&O.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function qO(O,t){var s;let e=_(O).resolveInner(t,-1),o=null;for(let a=e;!o&&a.parent;a=a.parent)(a.name=="OpenTag"||a.name=="CloseTag"||a.name=="SelfClosingTag"||a.name=="MismatchedCloseTag")&&(o=a);if(o&&(o.to>t||o.lastChild.type.isError)){let a=o.parent;if(e.name=="TagName")return o.name=="CloseTag"||o.name=="MismatchedCloseTag"?{type:"closeTag",from:e.from,context:a}:{type:"openTag",from:e.from,context:X(a)};if(e.name=="AttributeName")return{type:"attrName",from:e.from,context:o};if(e.name=="AttributeValue")return{type:"attrValue",from:e.from,context:o};let l=e==o||e.name=="Attribute"?e.childBefore(t):e;return(l==null?void 0:l.name)=="StartTag"?{type:"openTag",from:t,context:X(a)}:(l==null?void 0:l.name)=="StartCloseTag"&&l.to<=t?{type:"closeTag",from:t,context:a}:(l==null?void 0:l.name)=="Is"?{type:"attrValue",from:t,context:o}:l?{type:"attrName",from:t,context:o}:null}else if(e.name=="StartCloseTag")return{type:"closeTag",from:t,context:e.parent};for(;e.parent&&e.to==t&&!((s=e.lastChild)!=null&&s.type.isError);)e=e.parent;return e.name=="Element"||e.name=="Text"||e.name=="Document"?{type:"tag",from:t,context:e.name=="Element"?e:X(e)}:null}var dO=class{constructor(O,t,e){this.attrs=t,this.attrValues=e,this.children=[],this.name=O.name,this.completion=Object.assign(Object.assign({type:"type"},O.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=O.textContent?O.textContent.map(o=>({label:o,type:"text"})):[]}},V=/^[:\-\.\w\u00b7-\uffff]*$/;function k(O){return Object.assign(Object.assign({type:"property"},O.completion||{}),{label:O.name})}function Y(O){return typeof O=="string"?{label:`"${O}"`,type:"constant"}:/^"/.test(O.label)?O:Object.assign(Object.assign({},O),{label:`"${O.label}"`})}function I(O,t){let e=[],o=[],s=Object.create(null);for(let n of t){let r=k(n);e.push(r),n.global&&o.push(r),n.values&&(s[n.name]=n.values.map(Y))}let a=[],l=[],u=Object.create(null);for(let n of O){let r=o,g=s;n.attributes&&(r=r.concat(n.attributes.map(c=>typeof c=="string"?e.find(S=>S.label==c)||{label:c,type:"property"}:(c.values&&(g==s&&(g=Object.create(g)),g[c.name]=c.values.map(Y)),k(c)))));let i=new dO(n,r,g);u[i.name]=i,a.push(i),n.top&&l.push(i)}l.length||(l=a);for(let n=0;n{var f,q,x,d;let{doc:r}=n.state,g=qO(n.state,n.pos);if(!g||g.type=="tag"&&!n.explicit)return null;let{type:i,from:c,context:S}=g;if(i=="openTag"){let $=l,p=y(r,S);return p&&($=((f=u[p])==null?void 0:f.children)||a),{from:c,options:$.map(P=>P.completion),validFor:V}}else if(i=="closeTag"){let $=y(r,S);return $?{from:c,to:n.pos+(r.sliceString(n.pos,n.pos+1)==">"?1:0),options:[((q=u[$])==null?void 0:q.closeNameCompletion)||{label:$+">",type:"type"}],validFor:V}:null}else{if(i=="attrName")return{from:c,options:((x=u[v(r,S)])==null?void 0:x.attrs)||o,validFor:V};if(i=="attrValue"){let $=fO(r,S,c);if(!$)return null;let p=(((d=u[v(r,S)])==null?void 0:d.attrValues)||s)[$];return!p||!p.length?null:{from:c,to:n.pos+(r.sliceString(n.pos,n.pos+1)=='"'?1:0),options:p,validFor:/^"[^"]*"?$/}}else if(i=="tag"){let $=y(r,S),p=u[$],P=[],C=S&&S.lastChild;$&&(!C||C.name!="CloseTag"||v(r,C)!=$)&&P.push(p?p.closeCompletion:{label:"",type:"type",boost:2});let b=P.concat(((p==null?void 0:p.children)||(S?a:l)).map(T=>T.openCompletion));if(S&&(p!=null&&p.text.length)){let T=S.firstChild;T.to>n.pos-20&&!/\S/.test(n.state.sliceDoc(T.to,n.pos))&&(b=b.concat(p.text))}return{from:c,options:b,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}}var h=J.define({name:"xml",parser:xO.configure({props:[Z.add({Element(O){let t=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(t?0:O.unit)},"OpenTag CloseTag SelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),U.add({Element(O){let t=O.firstChild,e=O.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:e.name=="CloseTag"?e.from:O.to}}}),D.add({"OpenTag CloseTag":O=>O.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/$/}});function PO(O={}){let t=[h.data.of({autocomplete:I(O.elements||[],O.attributes||[])})];return O.autoCloseTags!==!1&&t.push(j),new H(h,t)}function N(O,t,e=O.length){if(!t)return"";let o=t.firstChild,s=o&&o.getChild("TagName");return s?O.sliceString(s.from,Math.min(s.to,e)):""}var j=B.inputHandler.of((O,t,e,o,s)=>{if(O.composing||O.state.readOnly||t!=e||o!=">"&&o!="/"||!h.isActiveAt(O.state,t,-1))return!1;let a=s(),{state:l}=a,u=l.changeByRange(n=>{var S,f,q;let{head:r}=n,g=l.doc.sliceString(r-1,r)==o,i=_(l).resolveInner(r,-1),c;if(g&&o==">"&&i.name=="EndTag"){let x=i.parent;if(((f=(S=x.parent)==null?void 0:S.lastChild)==null?void 0:f.name)!="CloseTag"&&(c=N(l.doc,x.parent,r)))return{range:n,changes:{from:r,to:r+(l.doc.sliceString(r,r+1)===">"?1:0),insert:``}}}else if(g&&o=="/"&&i.name=="StartCloseTag"){let x=i.parent;if(i.from==r-2&&((q=x.lastChild)==null?void 0:q.name)!="CloseTag"&&(c=N(l.doc,x,r))){let d=r+(l.doc.sliceString(r,r+1)===">"?1:0),$=`${c}>`;return{range:L.cursor(r+$.length,-1),changes:{from:r,to:d,insert:$}}}}return{range:n}});return u.changes.empty?!1:(O.dispatch([a,l.update(u,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});export{h as i,I as n,PO as r,j as t}; diff --git a/docs/assets/dist-CI6_zMIl.js b/docs/assets/dist-CI6_zMIl.js new file mode 100644 index 0000000..eb4b87f --- /dev/null +++ b/docs/assets/dist-CI6_zMIl.js @@ -0,0 +1,2 @@ +import{$t as G,A as Se,At as On,Bt as Bn,F as oe,Ft as En,Gt as lt,H as Ce,I as In,It as qn,Jt as P,Lt as S,Mt as m,Ot as Fn,Pt as ct,Qt as Pn,Tt as Wn,Ut as zn,Vt as W,Wt as De,X as Le,Xt as Te,Yt as ht,Zt as Vn,_t as $n,at as w,ct as Re,en as Oe,ht as X,it as Nn,j as ut,kt as Be,lt as Jn,nn as Hn,o as ft,ot as Un,qt as C,rt as k,tn as F,xt as jn,z,zt as f}from"./dist-CAcX026F.js";var dt=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=Ie(e.state,n.from);return r.line?Gn(e):r.block?Xn(e):!1};function Ee(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let o=e(t,n);return o?(r(n.update(o)),!0):!1}}var Gn=Ee(Qn,0),mt=Ee(pt,0),Xn=Ee((e,t)=>pt(e,t,Zn(t)),0);function Ie(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}var Y=50;function Yn(e,{open:t,close:n},r,o){let i=e.sliceDoc(r-Y,r),s=e.sliceDoc(o,o+Y),a=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(s)[0].length,h=i.length-a;if(i.slice(h-t.length,h)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-a,margin:a&&1},close:{pos:o+l,margin:l&&1}};let c,u;o-r<=2*Y?c=u=e.sliceDoc(r,o):(c=e.sliceDoc(r,r+Y),u=e.sliceDoc(o-Y,o));let d=/^\s*/.exec(c)[0].length,p=/\s*$/.exec(u)[0].length,v=u.length-p-n.length;return c.slice(d,d+t.length)==t&&u.slice(v,v+n.length)==n?{open:{pos:r+d+t.length,margin:/\s/.test(c.charAt(d+t.length))?1:0},close:{pos:o-p-n.length,margin:/\s/.test(u.charAt(v-1))?1:0}}:null}function Zn(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),o=n.to<=r.to?r:e.doc.lineAt(n.to);o.from>r.from&&o.from==n.to&&(o=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let i=t.length-1;i>=0&&t[i].to>r.from?t[i].to=o.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}function pt(e,t,n=t.selection.ranges){let r=n.map(i=>Ie(t,i.from).block);if(!r.every(i=>i))return null;let o=n.map((i,s)=>Yn(t,r[s],i.from,i.to));if(e!=2&&!o.every(i=>i))return{changes:t.changes(n.map((i,s)=>o[s]?[]:[{from:i.from,insert:r[s].open+" "},{from:i.to,insert:" "+r[s].close}]))};if(e!=1&&o.some(i=>i)){let i=[];for(let s=0,a;so&&(i==s||s>u.from)){o=u.from;let d=/^\s*/.exec(u.text)[0].length,p=d==u.length,v=u.text.slice(d,d+h.length)==h?d:-1;di.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:a,token:l,indent:h,empty:c,single:u}of r)(u||!c)&&i.push({from:a.from+h,insert:l+" "});let s=t.changes(i);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(i=>i.comment>=0)){let i=[];for(let{line:s,comment:a,token:l}of r)if(a>=0){let h=s.from+a,c=h+l.length;s.text[c-s.from]==" "&&c++,i.push({from:h,to:c})}return{changes:i}}return null}var qe=ct.define(),Kn=ct.define(),_n=W.define(),gt=W.define({combine(e){return G(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,o)=>t(r,o)||n(r,o)})}}),Fe=P.define({create(){return Z.empty},update(e,t){let n=t.state.facet(gt),r=t.annotation(qe);if(r){let l=E.fromTransaction(t,r.selection),h=r.side,c=h==0?e.undone:e.done;return c=l?ae(c,c.length,n.minDepth,l):yt(c,t.startState.selection),new Z(h==0?r.rest:c,h==0?c:r.rest)}let o=t.annotation(Kn);if((o=="full"||o=="before")&&(e=e.isolate()),t.annotation(Te.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let i=E.fromTransaction(t),s=t.annotation(Te.time),a=t.annotation(Te.userEvent);return i?e=e.addChanges(i,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),(o=="full"||o=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new Z(e.done.map(E.fromJSON),e.undone.map(E.fromJSON))}});function er(e={}){return[Fe,gt.of(e),w.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?Pe:t.inputType=="historyRedo"?se:null;return r?(t.preventDefault(),r(n)):!1}})]}var tr=Fe;function ie(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let o=n.field(Fe,!1);if(!o)return!1;let i=o.pop(e,n,t);return i?(r(i),!0):!1}}var Pe=ie(0,!1),se=ie(1,!1),nr=ie(0,!0),rr=ie(1,!0),E=class te{constructor(t,n,r,o,i){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=o,this.selectionsAfter=i}setSelAfter(t){return new te(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)==null?void 0:t.toJSON(),mapped:(n=this.mapped)==null?void 0:n.toJSON(),startSelection:(r=this.startSelection)==null?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(o=>o.toJSON())}}static fromJSON(t){return new te(t.changes&&qn.fromJSON(t.changes),[],t.mapped&&En.fromJSON(t.mapped),t.startSelection&&f.fromJSON(t.startSelection),t.selectionsAfter.map(f.fromJSON))}static fromTransaction(t,n){let r=D;for(let o of t.startState.facet(_n)){let i=o(t);i.length&&(r=r.concat(i))}return!r.length&&t.changes.empty?null:new te(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,D)}static selection(t){return new te(void 0,D,void 0,void 0,t)}};function ae(e,t,n,r){let o=t+1>n+20?t-n-1:0,i=e.slice(o,t);return i.push(r),i}function or(e,t){let n=[],r=!1;return e.iterChangedRanges((o,i)=>n.push(o,i)),t.iterChangedRanges((o,i,s,a)=>{for(let l=0;l=h&&s<=c&&(r=!0)}}),r}function ir(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function vt(e,t){return e.length?t.length?e.concat(t):e:t}var D=[],sr=200;function yt(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-sr));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),ae(e,e.length-1,1e9,n.setSelAfter(r)))}else return[E.selection([t])]}function ar(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function We(e,t){if(!e.length)return e;let n=e.length,r=D;for(;n;){let o=lr(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let i=e.slice(0,n);return i[n-1]=o,i}else t=o.mapped,n--,r=o.selectionsAfter}return r.length?[E.selection(r)]:D}function lr(e,t,n){let r=vt(e.selectionsAfter.length?e.selectionsAfter.map(a=>a.map(t)):D,n);if(!e.changes)return E.selection(r);let o=e.changes.map(t),i=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(i):i;return new E(o,C.mapEffects(e.effects,t),s,e.startSelection.map(i),r)}var cr=/^(input\.type|delete)($|\.)/,Z=class ne{constructor(t,n,r=0,o=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}isolate(){return this.prevTime?new ne(this.done,this.undone):this}addChanges(t,n,r,o,i){let s=this.done,a=s[s.length-1];return s=a&&a.changes&&!a.changes.empty&&t.changes&&(!r||cr.test(r))&&(!a.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):le(n,t))}function b(e){return e.textDirectionAt(e.state.selection.main.head)==Nn.LTR}var Ve=e=>ze(e,!b(e)),wt=e=>ze(e,b(e)),ur=e=>ze(e,!1);function kt(e,t){return R(e,n=>n.empty?e.moveByGroup(n,t):le(n,t))}var fr=e=>kt(e,!b(e)),dr=e=>kt(e,b(e));typeof Intl<"u"&&Intl.Segmenter;function mr(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function ce(e,t,n){let r=Ce(e).resolveInner(t.head),o=n?Le.closedBy:Le.openedBy;for(let l=t.head;;){let h=n?r.childAfter(l):r.childBefore(l);if(!h)break;mr(e,h,o)?r=h:l=n?h.to:h.from}let i=r.type.prop(o),s,a;return a=i&&(s=n?z(e,r.from,1):z(e,r.to,-1))&&s.matched?n?s.end.to:s.end.from:n?r.to:r.from,f.cursor(a,n?-1:1)}var pr=e=>R(e,t=>ce(e.state,t,!b(e))),gr=e=>R(e,t=>ce(e.state,t,b(e)));function xt(e,t){return R(e,n=>{if(!n.empty)return le(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var bt=e=>xt(e,!1),At=e=>xt(e,!0);function Mt(e){let t=e.scrollDOM.clientHeights.empty?e.moveVertically(s,t,n.height):le(s,t));if(o.eq(r.selection))return!1;let i;if(n.selfScroll){let s=e.coordsAtPos(r.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,h=a.bottom-n.marginBottom;s&&s.top>l&&s.bottomSt(e,!1),$e=e=>St(e,!0);function I(e,t,n){let r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){let i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(o=f.cursor(r.from+i))}return o}var Dt=e=>R(e,t=>I(e,t,!0)),Lt=e=>R(e,t=>I(e,t,!1)),vr=e=>R(e,t=>I(e,t,!b(e))),yr=e=>R(e,t=>I(e,t,b(e))),wr=e=>R(e,t=>f.cursor(e.lineBlockAt(t.head).from,1)),kr=e=>R(e,t=>f.cursor(e.lineBlockAt(t.head).to,-1));function xr(e,t,n){let r=!1,o=V(e.selection,i=>{let s=z(e,i.head,-1)||z(e,i.head,1)||i.head>0&&z(e,i.head-1,1)||i.headxr(e,t,!1);function L(e,t){let n=V(e.state.selection,r=>{let o=t(r);return f.range(r.anchor,o.head,o.goalColumn,o.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(T(e.state,n)),!0)}function Tt(e,t){return L(e,n=>e.moveByChar(n,t))}var Rt=e=>Tt(e,!b(e)),Ot=e=>Tt(e,b(e));function Bt(e,t){return L(e,n=>e.moveByGroup(n,t))}var Ar=e=>Bt(e,!b(e)),Mr=e=>Bt(e,b(e)),Sr=e=>L(e,t=>ce(e.state,t,!b(e))),Cr=e=>L(e,t=>ce(e.state,t,b(e)));function Et(e,t){return L(e,n=>e.moveVertically(n,t))}var It=e=>Et(e,!1),qt=e=>Et(e,!0);function Ft(e,t){return L(e,n=>e.moveVertically(n,t,Mt(e).height))}var Pt=e=>Ft(e,!1),Wt=e=>Ft(e,!0),Dr=e=>L(e,t=>I(e,t,!0)),Lr=e=>L(e,t=>I(e,t,!1)),Tr=e=>L(e,t=>I(e,t,!b(e))),Rr=e=>L(e,t=>I(e,t,b(e))),Or=e=>L(e,t=>f.cursor(e.lineBlockAt(t.head).from)),Br=e=>L(e,t=>f.cursor(e.lineBlockAt(t.head).to)),zt=({state:e,dispatch:t})=>(t(T(e,{anchor:0})),!0),Vt=({state:e,dispatch:t})=>(t(T(e,{anchor:e.doc.length})),!0),$t=({state:e,dispatch:t})=>(t(T(e,{anchor:e.selection.main.anchor,head:0})),!0),Nt=({state:e,dispatch:t})=>(t(T(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Er=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),Ir=({state:e,dispatch:t})=>{let n=ue(e).map(({from:r,to:o})=>f.range(r,Math.min(o+1,e.doc.length)));return t(e.update({selection:f.create(n),userEvent:"select"})),!0},qr=({state:e,dispatch:t})=>{let n=V(e.selection,r=>{let o=Ce(e),i=o.resolveStack(r.from,1);if(r.empty){let s=o.resolveStack(r.from,-1);s.node.from>=i.node.from&&s.node.to<=i.node.to&&(i=s)}for(let s=i;s;s=s.next){let{node:a}=s;if((a.from=r.to||a.to>r.to&&a.from<=r.from)&&s.next)return f.range(a.to,a.from)}return r});return n.eq(e.selection)?!1:(t(T(e,n)),!0)};function Jt(e,t){let{state:n}=e,r=n.selection,o=n.selection.ranges.slice();for(let i of n.selection.ranges){let s=n.doc.lineAt(i.head);if(t?s.to0)for(let a=i;;){let l=e.moveVertically(a,t);if(l.heads.to){o.some(h=>h.head==l.head)||o.push(l);break}else{if(l.head==a.head)break;a=l}}}return o.length==r.ranges.length?!1:(e.dispatch(T(n,f.create(o,o.length-1))),!0)}var Fr=e=>Jt(e,!1),Pr=e=>Jt(e,!0),Ht=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=f.create([n.main]):n.main.empty||(r=f.create([f.cursor(n.main.head)])),r?(t(T(e,r)),!0):!1};function Q(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,o=r.changeByRange(i=>{let{from:s,to:a}=i;if(s==a){let l=t(i);ls&&(n="delete.forward",l=he(e,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=he(e,s,!1),a=he(e,a,!0);return s==a?{range:i}:{changes:{from:s,to:a},range:f.cursor(s,so(e)))r.between(t,t,(o,i)=>{ot&&(t=n?i:o)});return t}var Ut=(e,t,n)=>Q(e,r=>{let o=r.from,{state:i}=e,s=i.doc.lineAt(o),a,l;if(n&&!t&&o>s.from&&oUt(e,!1,!0),jt=e=>Ut(e,!0,!1),Gt=(e,t)=>Q(e,n=>{let r=n.head,{state:o}=e,i=o.doc.lineAt(r),s=o.charCategorizer(r);for(let a=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}let l=F(i.text,r-i.from,t)+i.from,h=i.text.slice(Math.min(r,l)-i.from,Math.max(r,l)-i.from),c=s(h);if(a!=null&&c!=a)break;(h!=" "||r!=n.head)&&(a=c),r=l}return r}),Xt=e=>Gt(e,!1),Wr=e=>Gt(e,!0),zr=e=>Q(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headQ(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),$r=e=>Q(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:ht.of(["",""])},range:f.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Jr=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let o=r.from,i=e.doc.lineAt(o),s=o==i.from?o-1:F(i.text,o-i.from,!1)+i.from,a=o==i.to?o+1:F(i.text,o-i.from,!0)+i.from;return{changes:{from:s,to:a,insert:e.doc.slice(o,a).append(e.doc.slice(s,o))},range:f.cursor(a)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function ue(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),i=e.doc.lineAt(r.to);if(!r.empty&&r.to==i.from&&(i=e.doc.lineAt(r.to-1)),n>=o.number){let s=t[t.length-1];s.to=i.to,s.ranges.push(r)}else t.push({from:o.from,to:i.to,ranges:[r]});n=i.number+1}return t}function Yt(e,t,n){if(e.readOnly)return!1;let r=[],o=[];for(let i of ue(e)){if(n?i.to==e.doc.length:i.from==0)continue;let s=e.doc.lineAt(n?i.to+1:i.from-1),a=s.length+1;if(n){r.push({from:i.to,to:s.to},{from:i.from,insert:s.text+e.lineBreak});for(let l of i.ranges)o.push(f.range(Math.min(e.doc.length,l.anchor+a),Math.min(e.doc.length,l.head+a)))}else{r.push({from:s.from,to:i.from},{from:i.to,insert:e.lineBreak+s.text});for(let l of i.ranges)o.push(f.range(l.anchor-a,l.head-a))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:f.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}var Hr=({state:e,dispatch:t})=>Yt(e,t,!1),Ur=({state:e,dispatch:t})=>Yt(e,t,!0);function Zt(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of ue(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});let o=e.changes(r);return t(e.update({changes:o,selection:e.selection.map(o,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}var jr=({state:e,dispatch:t})=>Zt(e,t,!1),Gr=({state:e,dispatch:t})=>Zt(e,t,!0),Xr=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(ue(t).map(({from:o,to:i})=>(o>0?o--:i{let i;if(e.lineWrapping){let s=e.lineBlockAt(o.head),a=e.coordsAtPos(o.head,o.assoc||1);a&&(i=s.bottom+e.documentTop-a.bottom+e.defaultLineHeight/2)}return e.moveVertically(o,!0,i)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Yr(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Ce(e).resolveInner(t),r=n.childBefore(t),o=n.childAfter(t),i;return r&&o&&r.to<=t&&o.from>=t&&(i=r.type.prop(Le.closedBy))&&i.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(r.to,o.from))?{from:r.to,to:o.from}:null}var Je=Qt(!1),Zr=Qt(!0);function Qt(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(o=>{let{from:i,to:s}=o,a=t.doc.lineAt(i),l=!e&&i==s&&Yr(t,i);e&&(i=s=(s<=a.to?a:t.doc.lineAt(s)).to);let h=new ft(t,{simulateBreak:i,simulateDoubleBreak:!!l}),c=ut(h,i);for(c??(c=Oe(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));sa.from&&i{let o=[];for(let s=r.from;s<=r.to;){let a=e.doc.lineAt(s);a.number>n&&(r.empty||r.to>a.from)&&(t(a,o,r),n=a.number),s=a.to+1}let i=e.changes(o);return{changes:o,range:f.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}})}var Kt=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new ft(e,{overrideIndentation:i=>n[i]??-1}),o=He(e,(i,s,a)=>{let l=ut(r,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let h=/^\s*/.exec(i.text)[0],c=oe(e,l);(h!=c||a.frome.readOnly?!1:(t(e.update(He(e,(n,r)=>{r.push({from:n.from,insert:e.facet(In)})}),{userEvent:"input.indent"})),!0),Ue=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(He(e,(n,r)=>{let o=/^\s*/.exec(n.text)[0];if(!o)return;let i=Oe(o,e.tabSize),s=0,a=oe(e,Math.max(0,i-Se(e)));for(;s(e.setTabFocusMode(),!0),Kr=({state:e,dispatch:t})=>e.selection.ranges.some(n=>!n.empty)?fe({state:e,dispatch:t}):(t(e.update(e.replaceSelection(" "),{scrollIntoView:!0,userEvent:"input"})),!0),_r=[{key:"Ctrl-b",run:Ve,shift:Rt,preventDefault:!0},{key:"Ctrl-f",run:wt,shift:Ot},{key:"Ctrl-p",run:bt,shift:It},{key:"Ctrl-n",run:At,shift:qt},{key:"Ctrl-a",run:wr,shift:Or},{key:"Ctrl-e",run:kr,shift:Br},{key:"Ctrl-d",run:jt},{key:"Ctrl-h",run:Ne},{key:"Ctrl-k",run:zr},{key:"Ctrl-Alt-h",run:Xt},{key:"Ctrl-o",run:Nr},{key:"Ctrl-t",run:Jr},{key:"Ctrl-v",run:$e}],eo=[{key:"ArrowLeft",run:Ve,shift:Rt,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:fr,shift:Ar,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:vr,shift:Tr,preventDefault:!0},{key:"ArrowRight",run:wt,shift:Ot,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:dr,shift:Mr,preventDefault:!0},{mac:"Cmd-ArrowRight",run:yr,shift:Rr,preventDefault:!0},{key:"ArrowUp",run:bt,shift:It,preventDefault:!0},{mac:"Cmd-ArrowUp",run:zt,shift:$t},{mac:"Ctrl-ArrowUp",run:Ct,shift:Pt},{key:"ArrowDown",run:At,shift:qt,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Vt,shift:Nt},{mac:"Ctrl-ArrowDown",run:$e,shift:Wt},{key:"PageUp",run:Ct,shift:Pt},{key:"PageDown",run:$e,shift:Wt},{key:"Home",run:Lt,shift:Lr,preventDefault:!0},{key:"Mod-Home",run:zt,shift:$t},{key:"End",run:Dt,shift:Dr,preventDefault:!0},{key:"Mod-End",run:Vt,shift:Nt},{key:"Enter",run:Je,shift:Je},{key:"Mod-a",run:Er},{key:"Backspace",run:Ne,shift:Ne,preventDefault:!0},{key:"Delete",run:jt,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Xt,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:Wr,preventDefault:!0},{mac:"Mod-Backspace",run:Vr,preventDefault:!0},{mac:"Mod-Delete",run:$r,preventDefault:!0}].concat(_r.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),to=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:pr,shift:Sr},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:gr,shift:Cr},{key:"Alt-ArrowUp",run:Hr},{key:"Shift-Alt-ArrowUp",run:jr},{key:"Alt-ArrowDown",run:Ur},{key:"Shift-Alt-ArrowDown",run:Gr},{key:"Mod-Alt-ArrowUp",run:Fr},{key:"Mod-Alt-ArrowDown",run:Pr},{key:"Escape",run:Ht},{key:"Mod-Enter",run:Zr},{key:"Alt-l",mac:"Ctrl-l",run:Ir},{key:"Mod-i",run:qr,preventDefault:!0},{key:"Mod-[",run:Ue},{key:"Mod-]",run:fe},{key:"Mod-Alt-\\",run:Kt},{key:"Shift-Mod-k",run:Xr},{key:"Shift-Mod-\\",run:br},{key:"Mod-/",run:dt},{key:"Alt-A",run:mt},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Qr}].concat(eo),no={key:"Tab",run:fe,shift:Ue},_t=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},K=class Tn{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let o=r.facet(B).markerFilter;o&&(t=o(t,r));let i=t.slice().sort((p,v)=>p.from-v.from||p.to-v.to),s=new lt,a=[],l=0,h=r.doc.iter(),c=0,u=r.doc.length;for(let p=0;;){let v=p==i.length?null:i[p];if(!v&&!a.length)break;let y,x;if(a.length)y=l,x=a.reduce((g,O)=>Math.min(g,O.to),v&&v.from>y?v.from:1e8);else{if(y=v.from,y>u)break;x=v.to,a.push(v),p++}for(;pg.from||g.to==y))a.push(g),p++,x=Math.min(g.to,x);else{x=Math.min(g.from,x);break}}x=Math.min(x,u);let re=!1;if(a.some(g=>g.from==y&&(g.to==x||x==u))&&(re=y==x,!re&&x-y<10)){let g=y-(c+h.value.length);g>0&&(h.next(g),c=y);for(let O=y;;){if(O>=x){re=!0;break}if(!h.lineBreak&&c+h.value.length>O)break;O=c+h.value.length,c+=h.value.length,h.next()}}let st=un(a);if(re)s.add(y,y,k.widget({widget:new ho(st),diagnostics:a.slice()}));else{let g=a.reduce((O,at)=>at.markClass?O+" "+at.markClass:O,"");s.add(y,x,k.mark({class:"cm-lintRange cm-lintRange-"+st+g,diagnostics:a.slice(),inclusiveEnd:a.some(O=>O.to>x)}))}if(l=x,l==u)break;for(let g=0;g{if(!(t&&s.diagnostics.indexOf(t)<0))if(!r)r=new _t(o,i,t||s.diagnostics[0]);else{if(s.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new _t(r.from,i,r.diagnostic)}}),r}function en(e,t){let n=t.pos,r=t.end||n,o=e.state.facet(B).hideOn(e,n,r);if(o!=null)return o;let i=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(s=>s.is(de))||e.changes.touchesRange(i.from,Math.max(i.to,r)))}function tn(e,t){return e.field(A,!1)?t:t.concat(C.appendConfig.of(mn))}function nn(e,t){return{effects:tn(e,[de.of(t)])}}var de=C.define(),je=C.define(),rn=C.define(),A=P.define({create(){return new K(k.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,o=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=$(n,e.selected.diagnostic,i)||$(n,null,i)}!n.size&&o&&t.state.facet(B).autoPanel&&(o=null),e=new K(n,o,r)}for(let n of t.effects)if(n.is(de)){let r=t.state.facet(B).autoPanel?n.value.length?Ge.open:null:e.panel;e=K.init(n.value,r,t.state)}else n.is(je)?e=new K(e.diagnostics,n.value?Ge.open:null,e.selected):n.is(rn)&&(e=new K(e.diagnostics,e.panel,n.value));return e},provide:e=>[Be.from(e,t=>t.panel),w.decorations.from(e,t=>t.diagnostics)]}),ro=k.mark({class:"cm-lintRange cm-lintRange-active"});function oo(e,t,n){let{diagnostics:r}=e.state.field(A),o,i=-1,s=-1;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,h,{spec:c})=>{if(t>=l&&t<=h&&(l==h||(t>l||n>0)&&(tcn(e,n,!1)))}var io=e=>{let t=e.state.field(A,!1);(!t||!t.panel)&&e.dispatch({effects:tn(e.state,[je.of(!0)])});let n=X(e,Ge.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},sn=e=>{let t=e.state.field(A,!1);return!t||!t.panel?!1:(e.dispatch({effects:je.of(!1)}),!0)},so=[{key:"Mod-Shift-m",run:io,preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(A,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],ao=Re.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(B);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(ePromise.resolve(r(this.view))),r=>{this.view.state.doc==t.doc&&this.view.dispatch(nn(this.view.state,r.reduce((o,i)=>o.concat(i))))},r=>{Wn(this.view.state,r)})}}update(e){let t=e.state.facet(B);(e.docChanged||t!=e.startState.facet(B)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function lo(e,t,n){let r=[],o=-1;for(let i of e)i.then(s=>{r.push(s),clearTimeout(o),r.length==e.length?t(r):o=setTimeout(()=>t(r),200)},n)}var B=W.define({combine(e){return{sources:e.map(t=>t.source).filter(t=>t!=null),...G(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:an,tooltipFilter:an,needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n,hideOn:(t,n)=>t?n?(r,o,i)=>t(r,o,i)||n(r,o,i):t:n,autoPanel:(t,n)=>t||n})}}});function an(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function co(e,t={}){return[B.of({source:e,config:t}),ao,mn]}function ln(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ri.toLowerCase()==o.toLowerCase())){t.push(o);continue e}}t.push("")}return t}function cn(e,t,n){var o;let r=n?ln(t.actions):[];return m("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},m("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),(o=t.actions)==null?void 0:o.map((i,s)=>{let a=!1,l=d=>{if(d.preventDefault(),a)return;a=!0;let p=$(e.state.field(A).diagnostics,t);p&&i.apply(e,p.from,p.to)},{name:h}=i,c=r[s]?h.indexOf(r[s]):-1,u=c<0?h:[h.slice(0,c),m("u",h.slice(c,c+1)),h.slice(c+1)];return m("button",{type:"button",class:"cm-diagnosticAction"+(i.markClass?" "+i.markClass:""),onclick:l,onmousedown:l,"aria-label":` Action: ${h}${c<0?"":` (access key "${r[s]})"`}.`},u)}),t.source&&m("div",{class:"cm-diagnosticSource"},t.source))}var ho=class extends Jn{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return m("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}},hn=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=cn(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Ge=class Rn{constructor(t){this.view=t,this.items=[];let n=o=>{if(o.keyCode==27)sn(this.view),this.view.focus();else if(o.keyCode==38||o.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(o.keyCode==40||o.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(o.keyCode==36)this.moveSelection(0);else if(o.keyCode==35)this.moveSelection(this.items.length-1);else if(o.keyCode==13)this.view.focus();else if(o.keyCode>=65&&o.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],s=ln(i.actions);for(let a=0;a{for(let i=0;isn(this.view)},"\xD7")),this.update()}get selectedIndex(){let t=this.view.state.field(A).selected;if(!t)return-1;for(let n=0;n{for(let c of h.diagnostics){if(s.has(c))continue;s.add(c);let u=-1,d;for(let p=r;pr&&(this.items.splice(r,u-r),o=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),i=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++}});r({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let h=l.height/this.list.offsetHeight;a.topl.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=$(this.view.state.field(A).diagnostics,this.items[t].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:rn.of(n)})}static open(t){return new Rn(t)}};function me(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function pe(e){return me(``,'width="6" height="3"')}var uo=w.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:pe("#d11")},".cm-lintRange-warning":{backgroundImage:pe("orange")},".cm-lintRange-info":{backgroundImage:pe("#999")},".cm-lintRange-hint":{backgroundImage:pe("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function fo(e){return e=="error"?4:e=="warning"?3:e=="info"?2:1}function un(e){let t="hint",n=1;for(let r of e){let o=fo(r.severity);o>n&&(n=o,t=r.severity)}return t}var fn=class extends Un{constructor(e){super(),this.diagnostics=e,this.severity=un(e)}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let n=this.diagnostics,r=e.state.facet(ge).tooltipFilter;return r&&(n=r(n,e.state)),n.length&&(t.onmouseover=()=>po(e,t,n)),t}};function mo(e,t){let n=r=>{let o=t.getBoundingClientRect();if(!(r.clientX>o.left-10&&r.clientXo.top-10&&r.clientYt.getBoundingClientRect()}}})}),t.onmouseout=t.onmousemove=null,mo(e,t)}let{hoverTime:o}=e.state.facet(ge),i=setTimeout(r,o);t.onmouseout=()=>{clearTimeout(i),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(i),i=setTimeout(r,o)}}function go(e,t){let n=Object.create(null);for(let o of t){let i=e.lineAt(o.from);(n[i.from]||(n[i.from]=[])).push(o)}let r=[];for(let o in n)r.push(new fn(n[o]).range(+o));return De.of(r,!0)}var vo=$n({class:"cm-gutter-lint",markers:e=>e.state.field(Xe),widgetMarker:(e,t,n)=>{let r=[];return e.state.field(Xe).between(n.from,n.to,(o,i,s)=>{o>n.from&&or.is(Ye)?r.value:n,e)},provide:e=>On.from(e)}),yo=w.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:me('')},".cm-lint-marker-warning":{content:me('')},".cm-lint-marker-error":{content:me('')}}),mn=[A,w.decorations.compute([A],e=>{let{selected:t,panel:n}=e.field(A);return!t||!n||t.from==t.to?k.none:k.set([ro.range(t.from,t.to)])}),jn(oo,{hideOn:en}),uo],ge=W.define({combine(e){return G(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function wo(e={}){return[ge.of(e),Xe,vo,yo,dn]}function ko(e,t){let n=e.field(A,!1);if(n&&n.diagnostics.size){let r=[],o=[],i=-1;for(let s=De.iter([n.diagnostics]);;s.next()){for(let a=0;ae.normalize("NFKD"):e=>e,N=class{constructor(e,t,n=0,r=e.length,o,i){this.test=i,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=o?s=>o(pn(s)):pn,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Vn(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Hn(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Pn(e);let r=this.normalize(t);if(r.length)for(let o=0,i=n;;o++){let s=r.charCodeAt(o),a=this.match(s,i,this.bufferPos+this.bufferStart);if(o==r.length-1){if(a)return this.value=a,this;break}i==n&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=ve(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||o.to<=n){let a=new Me(n,t.sliceString(n,r));return Ke.set(t,a),a}if(o.from==n&&o.to==r)return o;let{text:i,from:s}=o;return s>n&&(i=t.sliceString(n,s)+i,s=n),o.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=ve(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=vn.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Qe.prototype[Symbol.iterator]=yn.prototype[Symbol.iterator]=function(){return this});function xo(e){try{return new RegExp(e,Ze),!0}catch{return!1}}function ve(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function _e(e){let t=m("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)}),n=m("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),e.dispatch({effects:_.of(!1)}),e.focus()):o.keyCode==13&&(o.preventDefault(),r())},onsubmit:o=>{o.preventDefault(),r()}},m("label",e.state.phrase("Go to line"),": ",t)," ",m("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),m("button",{name:"close",onclick:()=>{e.dispatch({effects:_.of(!1)}),e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["\xD7"]));function r(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!o)return;let{state:i}=e,s=i.doc.lineAt(i.selection.main.head),[,a,l,h,c]=o,u=h?+h.slice(1):0,d=l?+l:s.number;if(l&&c){let y=d/100;a&&(y=y*(a=="-"?-1:1)+s.number/i.doc.lines),d=Math.round(i.doc.lines*y)}else l&&a&&(d=d*(a=="-"?-1:1)+s.number);let p=i.doc.line(Math.max(1,Math.min(i.doc.lines,d))),v=f.cursor(p.from+Math.max(0,Math.min(u,p.length)));e.dispatch({effects:[_.of(!1),w.scrollIntoView(v.from,{y:"center"})],selection:v}),e.focus()}return{dom:n}}var _=C.define(),wn=P.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(_)&&(e=n.value);return e},provide:e=>Be.from(e,t=>t?_e:null)}),bo=e=>{let t=X(e,_e);if(!t){let n=[_.of(!0)];e.state.field(wn,!1)??n.push(C.appendConfig.of([wn,Ao])),e.dispatch({effects:n}),t=X(e,_e)}return t&&t.dom.querySelector("input").select(),!0},Ao=w.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),Mo={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},kn=W.define({combine(e){return G(e,Mo,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function So(e){let t=[Ro,To];return e&&t.push(kn.of(e)),t}var Co=k.mark({class:"cm-selectionMatch"}),Do=k.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function xn(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=S.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=S.Word)}function Lo(e,t,n,r){return e(t.sliceDoc(n,n+1))==S.Word&&e(t.sliceDoc(r-1,r))==S.Word}var To=Re.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(kn),{state:n}=e,r=n.selection;if(r.ranges.length>1)return k.none;let o=r.main,i,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return k.none;let l=n.wordAt(o.head);if(!l)return k.none;s=n.charCategorizer(o.head),i=n.sliceDoc(l.from,l.to)}else{let l=o.to-o.from;if(l200)return k.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),s=n.charCategorizer(o.head),!(xn(s,n,o.from,o.to)&&Lo(s,n,o.from,o.to)))return k.none}else if(i=n.sliceDoc(o.from,o.to),!i)return k.none}let a=[];for(let l of e.visibleRanges){let h=new N(n.doc,i,l.from,l.to);for(;!h.next().done;){let{from:c,to:u}=h.value;if((!s||xn(s,n,c,u))&&(o.empty&&c<=o.from&&u>=o.to?a.push(Do.range(c,u)):(c>=o.to||u<=o.from)&&a.push(Co.range(c,u)),a.length>t.maxMatches))return k.none}}return k.set(a)}},{decorations:e=>e.decorations}),Ro=w.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Oo=({state:e,dispatch:t})=>{let{selection:n}=e,r=f.create(n.ranges.map(o=>e.wordAt(o.head)||f.cursor(o.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function Bo(e,t){let{main:n,ranges:r}=e.selection,o=e.wordAt(n.head),i=o&&o.from==n.from&&o.to==n.to;for(let s=!1,a=new N(e.doc,t,r[r.length-1].to);;)if(a.next(),a.done){if(s)return null;a=new N(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==a.value.from))continue;if(i){let l=e.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}var bn=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(i=>i.from===i.to))return Oo({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(i=>e.sliceDoc(i.from,i.to)!=r))return!1;let o=Bo(e,r);return o?(t(e.update({selection:e.selection.addRange(f.range(o.from,o.to),!1),effects:w.scrollIntoView(o.to)})),!0):!1},J=W.define({combine(e){return G(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new Ho(t),scrollToMatch:t=>w.scrollIntoView(t)})}}),et=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||xo(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?` +`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Fo(this):new Io(this)}getCursor(e,t=0,n){let r=e.doc?e:Bn.create({doc:e});return n??(n=r.doc.length),this.regexp?U(this,r,t,n):H(this,r,t,n)}},An=class{constructor(e){this.spec=e}};function H(e,t,n,r){return new N(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:o=>o.toLowerCase(),e.wholeWord?Eo(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function Eo(e,t){return(n,r,o,i)=>((i>n||i+o.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=H(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}};function U(e,t,n,r){return new Qe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?qo(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function ye(e,t){return e.slice(F(e,t,!1),t)}function we(e,t){return e.slice(t,F(e,t))}function qo(e){return(t,n,r)=>!r[0].length||(e(ye(r.input,r.index))!=S.Word||e(we(r.input,r.index))!=S.Word)&&(e(we(r.input,r.index+r[0].length))!=S.Word||e(ye(r.input,r.index+r[0].length))!=S.Word)}var Fo=class extends An{nextMatch(e,t,n){let r=U(this.spec,e,n,e.doc.length).next();return r.done&&(r=U(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let o=Math.max(t,n-r*1e4),i=U(this.spec,e,o,n),s=null;for(;!i.next().done;)s=i.value;if(s&&(o==t||s.from>o+10))return s;if(o==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let r=n.length;r>0;r--){let o=+n.slice(0,r);if(o>0&&o=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let o=U(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}},j=C.define(),tt=C.define(),q=P.define({create(e){return new nt(ot(e).create(),null)},update(e,t){for(let n of t.effects)n.is(j)?e=new nt(n.value.create(),e.panel):n.is(tt)&&(e=new nt(e.query,n.value?rt:null));return e},provide:e=>Be.from(e,t=>t.panel)}),nt=class{constructor(e,t){this.query=e,this.panel=t}},Po=k.mark({class:"cm-searchMatch"}),Wo=k.mark({class:"cm-searchMatch cm-searchMatch-selected"}),zo=Re.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(q))}update(e){let t=e.state.field(q);(t!=e.startState.field(q)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return k.none;let{view:n}=this,r=new lt;for(let o=0,i=n.visibleRanges,s=i.length;oi[o+1].from-500;)l=i[++o].to;e.highlight(n.state,a,l,(h,c)=>{let u=n.state.selection.ranges.some(d=>d.from==h&&d.to==c);r.add(h,c,u?Wo:Po)})}return r.finish()}},{decorations:e=>e.decorations});function ee(e){return t=>{let n=t.state.field(q,!1);return n&&n.query.spec.valid?e(t,n):Dn(t)}}var ke=ee((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let o=f.single(r.from,r.to),i=e.state.facet(J);return e.dispatch({selection:o,effects:[it(e,r),i.scrollToMatch(o.main,e)],userEvent:"select.search"}),Cn(e),!0}),xe=ee((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,o=t.prevMatch(n,r,r);if(!o)return!1;let i=f.single(o.from,o.to),s=e.state.facet(J);return e.dispatch({selection:i,effects:[it(e,o),s.scrollToMatch(i.main,e)],userEvent:"select.search"}),Cn(e),!0}),Vo=ee((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:f.create(n.map(r=>f.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),$o=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:o}=n.main,i=[],s=0;for(let a=new N(e.doc,e.sliceDoc(r,o));!a.next().done;){if(i.length>1e3)return!1;a.value.from==r&&(s=i.length),i.push(f.range(a.value.from,a.value.to))}return t(e.update({selection:f.create(i,s),userEvent:"select.search.matches"})),!0},Mn=ee((e,{query:t})=>{let{state:n}=e,{from:r,to:o}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,r,r);if(!i)return!1;let s=i,a=[],l,h,c=[];s.from==r&&s.to==o&&(h=n.toText(t.getReplacement(s)),a.push({from:s.from,to:s.to,insert:h}),s=t.nextMatch(n,s.from,s.to),c.push(w.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+".")));let u=e.state.changes(a);return s&&(l=f.single(s.from,s.to).map(u),c.push(it(e,s)),c.push(n.facet(J).scrollToMatch(l.main,e))),e.dispatch({changes:u,selection:l,effects:c,userEvent:"input.replace"}),!0}),No=ee((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(o=>{let{from:i,to:s}=o;return{from:i,to:s,insert:t.getReplacement(o)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:w.announce.of(r),userEvent:"input.replace.all"}),!0});function rt(e){return e.state.facet(J).createPanel(e)}function ot(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?"":e.sliceDoc(n.from,n.to);if(t&&!r)return t;let o=e.facet(J);return new et({search:(t==null?void 0:t.literal)??o.literal?r:r.replace(/\n/g,"\\n"),caseSensitive:(t==null?void 0:t.caseSensitive)??o.caseSensitive,literal:(t==null?void 0:t.literal)??o.literal,regexp:(t==null?void 0:t.regexp)??o.regexp,wholeWord:(t==null?void 0:t.wholeWord)??o.wholeWord})}function Sn(e){let t=X(e,rt);return t&&t.dom.querySelector("[main-field]")}function Cn(e){let t=Sn(e);t&&t==e.root.activeElement&&t.select()}var Dn=e=>{let t=e.state.field(q,!1);if(t&&t.panel){let n=Sn(e);if(n&&n!=e.root.activeElement){let r=ot(e.state,t.query.spec);r.valid&&e.dispatch({effects:j.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[tt.of(!0),t?j.of(ot(e.state,t.query.spec)):C.appendConfig.of(jo)]});return!0},Ln=e=>{let t=e.state.field(q,!1);if(!t||!t.panel)return!1;let n=X(e,rt);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:tt.of(!1)}),!0},Jo=[{key:"Mod-f",run:Dn,scope:"editor search-panel"},{key:"F3",run:ke,shift:xe,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:ke,shift:xe,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ln,scope:"editor search-panel"},{key:"Mod-Shift-l",run:$o},{key:"Mod-Alt-g",run:bo},{key:"Mod-d",run:bn,preventDefault:!0}],Ho=class{constructor(e){this.view=e;let t=this.query=e.state.field(q).query.spec;this.commit=this.commit.bind(this),this.searchField=m("input",{value:t.search,placeholder:M(e,"Find"),"aria-label":M(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=m("input",{value:t.replace,placeholder:M(e,"Replace"),"aria-label":M(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=m("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=m("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=m("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(r,o,i){return m("button",{class:"cm-button",name:r,onclick:o,type:"button"},i)}this.dom=m("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>ke(e),[M(e,"next")]),n("prev",()=>xe(e),[M(e,"previous")]),n("select",()=>Vo(e),[M(e,"all")]),m("label",null,[this.caseField,M(e,"match case")]),m("label",null,[this.reField,M(e,"regexp")]),m("label",null,[this.wordField,M(e,"by word")]),...e.state.readOnly?[]:[m("br"),this.replaceField,n("replace",()=>Mn(e),[M(e,"replace")]),n("replaceAll",()=>No(e),[M(e,"replace all")])],m("button",{name:"close",onclick:()=>Ln(e),"aria-label":M(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new et({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:j.of(e)}))}keydown(e){Fn(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?xe:ke)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Mn(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(j)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(J).top}};function M(e,t){return e.state.phrase(t)}var be=30,Ae=/[\s\.,:;?!]/;function it(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),o=e.state.doc.lineAt(n).to,i=Math.max(r.from,t-be),s=Math.min(o,n+be),a=e.state.sliceDoc(i,s);if(i!=r.from){for(let l=0;la.length-be;l--)if(!Ae.test(a[l-1])&&Ae.test(a[l])){a=a.slice(0,l);break}}return w.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${r.number}.`)}var Uo=w.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),jo=[q,zn.low(zo),Uo];export{Pe as A,no as C,Ht as D,se as E,mt as O,Kt as S,Kr as T,er as _,bn as a,Ue as b,wo as c,nn as d,ur as f,to as g,Dt as h,Jo as i,dt as k,so as l,Lt as m,et as n,j as o,Ve as p,So as r,ko as s,Qe as t,co as u,tr as v,Je as w,fe as x,hr as y}; diff --git a/docs/assets/dist-CQhcYtN0.js b/docs/assets/dist-CQhcYtN0.js new file mode 100644 index 0000000..a7d9c49 --- /dev/null +++ b/docs/assets/dist-CQhcYtN0.js @@ -0,0 +1 @@ +import{D as b,J as e,N as r,T as s,q as a,r as t,s as P,u as S,y as Q}from"./dist-CAcX026F.js";var n={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},i=t.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"\u26A0 LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:O=>n[O]||-1}],tokenPrec:0}),o=P.define({name:"wast",parser:i.configure({props:[r.add({App:Q({closing:")",align:!1})}),b.add({App:s,BlockComment(O){return{from:O.from+2,to:O.to-2}}}),a({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function p(){return new S(o)}export{o as n,p as t}; diff --git a/docs/assets/dist-CSsW5_Dq.js b/docs/assets/dist-CSsW5_Dq.js new file mode 100644 index 0000000..f909c2c --- /dev/null +++ b/docs/assets/dist-CSsW5_Dq.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import{i,n as r,r as a,t as o}from"./dist-Cp3Es6uA.js";export{o as closePercentBrace,r as liquid,a as liquidCompletionSource,i as liquidLanguage}; diff --git a/docs/assets/dist-CVj-_Iiz.js b/docs/assets/dist-CVj-_Iiz.js new file mode 100644 index 0000000..e12a175 --- /dev/null +++ b/docs/assets/dist-CVj-_Iiz.js @@ -0,0 +1 @@ +import{D as Pt,H as W,J as S,N as Vt,at as wt,h as Tt,n as X,nt as vt,q as Xt,r as yt,s as kt,t as $t,u as qt,zt as _t}from"./dist-CAcX026F.js";import{r as D,t as Qt}from"./dist-BVf1IY4_.js";import{a as $,d as At,i as Yt,o as Ct,u as Mt}from"./dist-Cq_4nPfh.js";var Rt=54,Zt=1,Bt=55,Et=2,zt=56,Wt=3,G=4,Dt=5,y=6,I=7,j=8,U=9,N=10,Gt=11,It=12,jt=13,q=57,Ut=14,F=58,H=20,Nt=22,K=23,Ft=24,_=26,J=27,Ht=28,Kt=31,Jt=34,Lt=36,te=37,ee=0,ae=1,le={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},re={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},L={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function ne(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function tt(t){return t==9||t==10||t==13||t==32}var et=null,at=null,lt=0;function Q(t,a){let r=t.pos+a;if(lt==r&&at==t)return et;let l=t.peek(a);for(;tt(l);)l=t.peek(++a);let e="";for(;ne(l);)e+=String.fromCharCode(l),l=t.peek(++a);return at=t,lt=r,et=e?e.toLowerCase():l==se||l==oe?void 0:null}var rt=60,k=62,A=47,se=63,oe=33,Oe=45;function nt(t,a){this.name=t,this.parent=a}var ie=[y,N,I,j,U],ue=new $t({start:null,shift(t,a,r,l){return ie.indexOf(a)>-1?new nt(Q(l,1)||"",t):t},reduce(t,a){return a==H&&t?t.parent:t},reuse(t,a,r,l){let e=a.type.id;return e==y||e==Lt?new nt(Q(l,1)||"",t):t},strict:!1}),pe=new X((t,a)=>{if(t.next!=rt){t.next<0&&a.context&&t.acceptToken(q);return}t.advance();let r=t.next==A;r&&t.advance();let l=Q(t,0);if(l===void 0)return;if(!l)return t.acceptToken(r?Ut:y);let e=a.context?a.context.name:null;if(r){if(l==e)return t.acceptToken(Gt);if(e&&re[e])return t.acceptToken(q,-2);if(a.dialectEnabled(ee))return t.acceptToken(It);for(let s=a.context;s;s=s.parent)if(s.name==l)return;t.acceptToken(jt)}else{if(l=="script")return t.acceptToken(I);if(l=="style")return t.acceptToken(j);if(l=="textarea")return t.acceptToken(U);if(le.hasOwnProperty(l))return t.acceptToken(N);e&&L[e]&&L[e][l]?t.acceptToken(q,-1):t.acceptToken(y)}},{contextual:!0}),ce=new X(t=>{for(let a=0,r=0;;r++){if(t.next<0){r&&t.acceptToken(F);break}if(t.next==Oe)a++;else if(t.next==k&&a>=2){r>=3&&t.acceptToken(F,-2);break}else a=0;t.advance()}});function de(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}var me=new X((t,a)=>{if(t.next==A&&t.peek(1)==k){let r=a.dialectEnabled(ae)||de(a.context);t.acceptToken(r?Dt:G,2)}else t.next==k&&t.acceptToken(G,1)});function Y(t,a,r){let l=2+t.length;return new X(e=>{for(let s=0,o=0,O=0;;O++){if(e.next<0){O&&e.acceptToken(a);break}if(s==0&&e.next==rt||s==1&&e.next==A||s>=2&&so?e.acceptToken(a,-o):e.acceptToken(r,-(o-2));break}else if((e.next==10||e.next==13)&&O){e.acceptToken(a,1);break}else s=o=0;e.advance()}})}var fe=Y("script",Rt,Zt),Se=Y("style",Bt,Et),he=Y("textarea",zt,Wt),ge=Xt({"Text RawText":S.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":S.angleBracket,TagName:S.tagName,"MismatchedCloseTag/TagName":[S.tagName,S.invalid],AttributeName:S.attributeName,"AttributeValue UnquotedAttributeValue":S.attributeValue,Is:S.definitionOperator,"EntityReference CharacterReference":S.character,Comment:S.blockComment,ProcessingInst:S.processingInstruction,DoctypeDecl:S.documentMeta}),xe=yt.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:ue,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[ge],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let h=O.type.id;if(h==Ht)return C(O,i,r);if(h==Kt)return C(O,i,l);if(h==Jt)return C(O,i,e);if(h==H&&s.length){let u=O.node,p=u.firstChild,c=p&&ot(p,i),f;if(c){for(let d of s)if(d.tag==c&&(!d.attrs||d.attrs(f||(f=st(p,i))))){let x=u.lastChild,g=x.type.id==te?x.from:u.to;if(g>p.to)return{parser:d.parser,overlay:[{from:p.to,to:g}]}}}}if(o&&h==K){let u=O.node,p;if(p=u.firstChild){let c=o[i.read(p.from,p.to)];if(c)for(let f of c){if(f.tagName&&f.tagName!=ot(u.parent,i))continue;let d=u.lastChild;if(d.type.id==_){let x=d.from+1,g=d.lastChild,v=d.to-(g&&g.isError?0:1);if(v>x)return{parser:f.parser,overlay:[{from:x,to:v}]}}else if(d.type.id==J)return{parser:f.parser,overlay:[{from:d.from,to:d.to}]}}}}return null})}var V=["_blank","_self","_top","_parent"],M=["ascii","utf-8","utf-16","latin1","latin1"],R=["get","post","put","delete"],Z=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],m=["true","false"],n={},be={a:{attrs:{href:null,ping:null,type:null,media:null,target:V,hreflang:null}},abbr:n,address:n,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:n,aside:n,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:n,base:{attrs:{href:null,target:V}},bdi:n,bdo:n,blockquote:{attrs:{cite:null}},body:n,br:n,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Z,formmethod:R,formnovalidate:["novalidate"],formtarget:V,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:n,center:n,cite:n,code:n,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:n,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:n,div:n,dl:n,dt:n,em:n,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:n,figure:n,footer:n,form:{attrs:{action:null,name:null,"accept-charset":M,autocomplete:["on","off"],enctype:Z,method:R,novalidate:["novalidate"],target:V}},h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:n,hgroup:n,hr:n,html:{attrs:{manifest:null}},i:n,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Z,formmethod:R,formnovalidate:["novalidate"],formtarget:V,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:n,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:n,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:n,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:M,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:n,noscript:n,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:n,param:{attrs:{name:null,value:null}},pre:n,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:n,rt:n,ruby:n,samp:n,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:M}},section:n,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:n,source:{attrs:{src:null,type:null,media:null}},span:n,strong:n,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:n,summary:n,sup:n,table:n,tbody:n,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:n,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:n,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:n,time:{attrs:{datetime:null}},title:n,tr:n,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:n,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:n},it={accesskey:null,class:null,contenteditable:m,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:m,autocorrect:m,autocapitalize:m,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":m,"aria-autocomplete":["inline","list","both","none"],"aria-busy":m,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":m,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":m,"aria-hidden":m,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":m,"aria-multiselectable":m,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":m,"aria-relevant":null,"aria-required":m,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},ut="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of ut)it[t]=null;var w=class{constructor(t,a){this.tags=Object.assign(Object.assign({},be),t),this.globalAttrs=Object.assign(Object.assign({},it),a),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};w.default=new w;function b(t,a,r=t.length){if(!a)return"";let l=a.firstChild,e=l&&l.getChild("TagName");return e?t.sliceString(e.from,Math.min(e.to,r)):""}function P(t,a=!1){for(;t;t=t.parent)if(t.name=="Element")if(a)a=!1;else return t;return null}function pt(t,a,r){var l;return((l=r.tags[b(t,P(a))])==null?void 0:l.children)||r.allTags}function B(t,a){let r=[];for(let l=P(a);l&&!l.type.isTop;l=P(l.parent)){let e=b(t,l);if(e&&l.lastChild.name=="CloseTag")break;e&&r.indexOf(e)<0&&(a.name=="EndTag"||a.from>=l.firstChild.to)&&r.push(e)}return r}var ct=/^[:\-\.\w\u00b7-\uffff]*$/;function dt(t,a,r,l,e){let s=/\s*>/.test(t.sliceDoc(e,e+5))?"":">",o=P(r,!0);return{from:l,to:e,options:pt(t.doc,o,a).map(O=>({label:O,type:"type"})).concat(B(t.doc,r).map((O,i)=>({label:"/"+O,apply:"/"+O+s,type:"type",boost:99-i}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function mt(t,a,r,l){let e=/\s*>/.test(t.sliceDoc(l,l+5))?"":">";return{from:r,to:l,options:B(t.doc,a).map((s,o)=>({label:s,apply:s+e,type:"type",boost:99-o})),validFor:ct}}function Pe(t,a,r,l){let e=[],s=0;for(let o of pt(t.doc,r,a))e.push({label:"<"+o,type:"type"});for(let o of B(t.doc,r))e.push({label:"",type:"type",boost:99-s++});return{from:l,to:l,options:e,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ve(t,a,r,l,e){let s=P(r),o=s?a.tags[b(t.doc,s)]:null,O=o&&o.attrs?Object.keys(o.attrs):[];return{from:l,to:e,options:(o&&o.globalAttrs===!1?O:O.length?O.concat(a.globalAttrNames):a.globalAttrNames).map(i=>({label:i,type:"property"})),validFor:ct}}function we(t,a,r,l,e){var i;let s=(i=r.parent)==null?void 0:i.getChild("AttributeName"),o=[],O;if(s){let h=t.sliceDoc(s.from,s.to),u=a.globalAttrs[h];if(!u){let p=P(r),c=p?a.tags[b(t.doc,p)]:null;u=(c==null?void 0:c.attrs)&&c.attrs[h]}if(u){let p=t.sliceDoc(l,e).toLowerCase(),c='"',f='"';/^['"]/.test(p)?(O=p[0]=='"'?/^[^"]*$/:/^[^']*$/,c="",f=t.sliceDoc(e,e+1)==p[0]?"":p[0],p=p.slice(1),l++):O=/^[^\s<>='"]*$/;for(let d of u)o.push({label:d,apply:c+d+f,type:"constant"})}}return{from:l,to:e,options:o,validFor:O}}function ft(t,a){let{state:r,pos:l}=a,e=W(r).resolveInner(l,-1),s=e.resolve(l);for(let o=l,O;s==e&&(O=e.childBefore(o));){let i=O.lastChild;if(!i||!i.type.isError||i.fromft(l,e)}var ve=$.parser.configure({top:"SingleExpression"}),ht=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:At.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Ct.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Mt.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:ve},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:$.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:D.parser}],gt=[{name:"style",parser:D.parser.configure({top:"Styles"})}].concat(ut.map(t=>({name:t,parser:$.parser}))),E=kt.define({name:"html",parser:xe.configure({props:[Vt.add({Element(t){let a=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+a[0].length?t.continue():t.lineIndent(t.node.from)+(a[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),T=E.configure({wrap:Ot(ht,gt)});function Xe(t={}){let a="",r;return t.matchClosingTags===!1&&(a="noMatch"),t.selfClosingTags===!0&&(a=(a?a+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(r=Ot((t.nestedLanguages||[]).concat(ht),(t.nestedAttributes||[]).concat(gt))),new qt(r?E.configure({wrap:r,dialect:a}):a?T.configure({dialect:a}):T,[T.data.of({autocomplete:St(t)}),t.autoCloseTags===!1?[]:bt,Yt().support,Qt().support])}var xt=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),bt=wt.inputHandler.of((t,a,r,l,e)=>{if(t.composing||t.state.readOnly||a!=r||l!=">"&&l!="/"||!T.isActiveAt(t.state,a,-1))return!1;let s=e(),{state:o}=s,O=o.changeByRange(i=>{var f,d,x;let h=o.doc.sliceString(i.from-1,i.to)==l,{head:u}=i,p=W(o).resolveInner(u,-1),c;if(h&&l==">"&&p.name=="EndTag"){let g=p.parent;if(((d=(f=g.parent)==null?void 0:f.lastChild)==null?void 0:d.name)!="CloseTag"&&(c=b(o.doc,g.parent,u))&&!xt.has(c))return{range:i,changes:{from:u,to:u+(o.doc.sliceString(u,u+1)===">"?1:0),insert:``}}}else if(h&&l=="/"&&p.name=="IncompleteCloseTag"){let g=p.parent;if(p.from==u-2&&((x=g.lastChild)==null?void 0:x.name)!="CloseTag"&&(c=b(o.doc,g,u))&&!xt.has(c)){let v=u+(o.doc.sliceString(u,u+1)===">"?1:0),z=`${c}>`;return{range:_t.cursor(u+z.length,-1),changes:{from:u,to:v,insert:z}}}}return{range:i}});return O.changes.empty?!1:(t.dispatch([s,o.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});export{T as a,St as i,Xe as n,E as o,Te as r,bt as t}; diff --git a/docs/assets/dist-CebZ69Am.js b/docs/assets/dist-CebZ69Am.js new file mode 100644 index 0000000..35fc1bd --- /dev/null +++ b/docs/assets/dist-CebZ69Am.js @@ -0,0 +1 @@ +import{D as e,J as O,N as s,T as X,g as $,q as l,r as Y,s as S,u as o,x as t,y as Z}from"./dist-CAcX026F.js";var n=l({null:O.null,instanceof:O.operatorKeyword,this:O.self,"new super assert open to with void":O.keyword,"class interface extends implements enum var":O.definitionKeyword,"module package import":O.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":O.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":O.modifier,IntegerLiteral:O.integer,FloatingPointLiteral:O.float,"StringLiteral TextBlock":O.string,CharacterLiteral:O.character,LineComment:O.lineComment,BlockComment:O.blockComment,BooleanLiteral:O.bool,PrimitiveType:O.standard(O.typeName),TypeName:O.typeName,Identifier:O.variableName,"MethodName/Identifier":O.function(O.variableName),Definition:O.definition(O.variableName),ArithOp:O.arithmeticOperator,LogicOp:O.logicOperator,BitOp:O.bitwiseOperator,CompareOp:O.compareOperator,AssignOp:O.definitionOperator,UpdateOp:O.updateOperator,Asterisk:O.punctuation,Label:O.labelName,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace,".":O.derefOperator,", ;":O.separator}),_={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332,switch:336,case:342,do:346,break:350,continue:354,return:358,throw:364,try:368,catch:372,finally:380},d=Y.deserialize({version:14,states:"##jQ]QPOOQ$wQPOOO(bQQO'#H^O*iQQO'#CbOOQO'#Cb'#CbO*pQPO'#CaO*xOSO'#CpOOQO'#Hc'#HcOOQO'#Cu'#CuO,eQPO'#D_O-OQQO'#HmOOQO'#Hm'#HmO/gQQO'#HhO/nQQO'#HhOOQO'#Hh'#HhOOQO'#Hg'#HgO1rQPO'#DUO2PQPO'#GnO4wQPO'#D_O5OQPO'#DzO*pQPO'#E[O5qQPO'#E[OOQO'#DV'#DVO7SQQO'#HaO9^QQO'#EeO9eQPO'#EdO9jQPO'#EfOOQO'#Hb'#HbO7jQQO'#HbO:pQQO'#FhO:wQPO'#ExO:|QPO'#E}O:|QPO'#FPOOQO'#Ha'#HaOOQO'#HY'#HYOOQO'#Gh'#GhOOQO'#HX'#HXO<^QPO'#FiOOQO'#HW'#HWOOQO'#Gg'#GgQ]QPOOOOQO'#Hs'#HsOQQPO'#GSO>]QPO'#GUO=kQPO'#GWO:|QPO'#GXO>dQPO'#GZO?QQQO'#HiO?mQQO'#CuO?tQPO'#HxO@SQPO'#D_O@rQPO'#DpO?wQPO'#DqO@|QPO'#HxOA_QPO'#DpOAgQPO'#IROAlQPO'#E`OOQO'#Hr'#HrOOQO'#Gm'#GmQ$wQPOOOAtQPO'#HsOOQO'#H^'#H^OCsQQO,58{OOQO'#H['#H[OOOO'#Gi'#GiOEfOSO,59[OOQO,59[,59[OOQO'#Hi'#HiOFVQPO,59eOGXQPO,59yOOQO-E:f-E:fO*pQPO,58zOG{QPO,58zO*pQPO,5;}OHQQPO'#DQOHVQPO'#DQOOQO'#Gk'#GkOIVQQO,59jOOQO'#Dm'#DmOJqQPO'#HuOJ{QPO'#DlOKZQPO'#HtOKcQPO,5<_OKhQPO,59^OLRQPO'#CxOOQO,59c,59cOLYQPO,59bOLeQQO'#H^ONgQQO'#CbO!!iQPO'#D_O!#nQQO'#HmO!$OQQO,59pO!$VQPO'#DvO!$eQPO'#H|O!$mQPO,5:`O!$rQPO,5:`O!%YQPO,5;nO!%eQPO'#ITO!%pQPO,5;eO!%uQPO,5=YOOQO-E:l-E:lOOQO,5:f,5:fO!']QPO,5:fO!'dQPO,5:vO?tQPO,5<_O*pQPO,5:vO_,5>_O!*sQPO,5:gO!+RQPO,5:qO!+ZQPO,5:lO!+fQPO,5>[O!$VQPO,5>[O!'iQPO,59UO!+qQQO,58zO!+yQQO,5;}O!,RQQO,5gQPO,5gQPO,5<}O!2mQPO,59jO!2zQPO'#HuO!3RQPO,59xO!3WQPO,5>dO?tQPO,59xO!3cQPO,5:[OAlQPO,5:zO!3kQPO'#DrO?wQPO'#DrO!3vQPO'#HyO!4OQPO,5:]O?tQPO,5>dO!(hQPO,5>dOAgQPO,5>mOOQO,5:[,5:[O!$rQPO'#DtOOQO,5>m,5>mO!4TQPO'#EaOOQO,5:z,5:zO!7UQPO,5:zO!(hQPO'#DxOOQO-E:k-E:kOOQO,5:y,5:yO*pQPO,58}O!7ZQPO'#ChOOQO1G.k1G.kOOOO-E:g-E:gOOQO1G.v1G.vO!+qQQO1G.fO*pQPO1G.fO!7eQQO1G1iOOQO,59l,59lO!7mQPO,59lOOQO-E:i-E:iO!7rQPO,5>aO!8ZQPO,5:WO`OOQO1G1y1G1yOOQO1G.x1G.xO!8{QPO'#CyO!9kQPO'#HmO!9uQPO'#CzO!:TQPO'#HlO!:]QPO,59dOOQO1G.|1G.|OLYQPO1G.|O!:sQPO,59eO!;QQQO'#H^O!;cQQO'#CbOOQO,5:b,5:bOhOOQO1G/z1G/zO!oOOQO1G1P1G1POOQO1G0Q1G0QO!=oQPO'#E]OOQO1G0b1G0bO!>`QPO1G1yO!'dQPO1G0bO!*sQPO1G0RO!+RQPO1G0]O!+ZQPO1G0WOOQO1G/]1G/]O!>eQQO1G.pO9eQPO1G0jO*pQPO1G0jOgQPO'#GaOOQO1G2a1G2aO#2zQPO1G2iO#6xQPO,5>gOOQO1G/d1G/dOOQO1G4O1G4OO#7ZQPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO!7UQPO1G0fOOQO,5:^,5:^O!(hQPO'#DsO#7`QPO,5:^O?wQPO'#GrO#7kQPO,5>eOOQO1G/w1G/wOAgQPO'#H{O#7sQPO1G4OO?tQPO1G4OOOQO1G4X1G4XO!#YQPO'#DvO!!iQPO'#D_OOQO,5:{,5:{O#8OQPO,5:{O#8OQPO,5:{O#8VQQO'#HaO#9hQQO'#HbO#9rQQO'#EbO#9}QPO'#EbO#:VQPO'#IOOOQO,5:d,5:dOOQO1G.i1G.iO#:bQQO'#EeO#:rQQO'#H`O#;SQPO'#FTOOQO'#H`'#H`O#;^QPO'#H`O#;{QPO'#IWO#WOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#=cQQO1G/{OOQO1G/}1G/}O#=hQPO1G/{OOQO1G/|1G/|OdQPO,5:wOOQO,5:w,5:wOOQO7+'e7+'eOOQO7+%|7+%|OOQO7+%m7+%mO!KqQPO7+%mO!KvQPO7+%mO!LOQPO7+%mOOQO7+%w7+%wO!LnQPO7+%wOOQO7+%r7+%rO!MmQPO7+%rO!MrQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO9eQPO7+&UO9eQPO,5>[O#?TQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO:|QPO'#GlO#?cQPO,5>]OOQO1G/_1G/_O:|QPO7+&lO#?nQQO,59eO#@tQPO,59vOOQO,59v,59vOOQO,5:h,5:hOOQO'#EP'#EPOOQO,5:i,5:iO#@{QPO'#EYOgQPO,5jO#M{QPO,59TO#NSQPO'#IVO#N[QPO,5;oO*pQPO'#G{O#NaQPO,5>rOOQO1G.n1G.nOOQO<Z,5>ZOOQO,5=U,5=UOOQO-E:h-E:hO#NvQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<kO$%tQPO'#EZOOQO1G0_1G0_O$%{QPO1G0_O?tQPO,5:pOOQO-E:s-E:sOOQO1G0Z1G0ZOOQO1G0n1G0nO$&QQQO1G0nOOQO<qOOQO1G1Z1G1ZO$+dQPO'#FUOOQO,5=g,5=gOOQO-E:y-E:yO$+iQPO'#GoO$+vQPO,5>cOOQO1G/u1G/uOOQO<sAN>sO!KqQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O9eQPOAN?[OOQO1G0`1G0`O$,_QPO1G0`OOQO,5=b,5=bOOQO-E:t-E:tO$,mQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1`1G1`O$,tQQO1G1`OOQO-E:{-E:{O$,|QQO'#IYO$,wQPO1G1`O$&gQPO1G1`O*pQPO1G1`OOQOAN@]AN@]O$-XQQO<tO$.qQPO7+&zO$.vQQO'#IZOOQOAN@nAN@nO$/RQQOAN@nOOQOAN@jAN@jO$/YQPOAN@jO$/_QQO<uOOQOG26YG26YOOQOG26UG26UOOQO<lOWiXuiX%}iX&PiX&RiX&_iX~OZ!aX~P?XOu#OO%}TO&P#SO&R#SO~O%}TO~P3gOg^Oh^Ov#pO!u#rO!z#qO&_!hO&t#oO~O&P!cO&R!dO~P@ZOg^Oh^O%}TO&P!cO&R!dO~O}cO!P%aO~OZ%bO~O}%dO!m%gO~O}cOg&gXh&gXv&gX!S&gX!T&gX!U&gX!V&gX!W&gX!X&gX!Y&gX!Z&gX!]&gX!^&gX!_&gX!u&gX!z&gX%}&gX&P&gX&R&gX&_&gX&t&gX~OW%jOZ%kOgTahTa%}Ta&PTa&RTa~OvTa!STa!TTa!UTa!VTa!WTa!XTa!YTa!ZTa!]Ta!^Ta!_Ta!uTa!zTa#yTa#zTa$WTa$hTa&tTa&_TauTaYTaqTa|Ta!PTa~PC[O&W%nO&Y!tO~Ou#OO%}TOqma&^maYma&nma!Pma~O&vma}ma!rma~PEnO!SyO!TyO!UyO!VyO!WyO!XyO!YyO!ZzO!]yO!^yO!_yO~Og!Rah!Rav!Ra!u!Ra!z!Ra$h!Ra&P!Ra&R!Ra&t!Ra&_!Ra~PFdO#z%pO~Os%rO~Ou%sO%}TO~Ou#OO%}ra&Pra&Rra&vraYrawra&nra&qra!Pra&^raqra~OWra#_ra#ara#bra#dra#era#fra#gra#hra#ira#kra#ora#rra&_ra#prasra|ra~PH_Ou#OO%}TOq&iX!P&iX!b&iX~OY&iX#p&iX~PJ`O!b%vOq!`X!P!`XY!`X~Oq%wO!P&hX~O!P%yO~Ov%zO~Og^Oh^O%}0oO&P!wO&RWO&b%}O~O&^&`P~PKmO%}TO&P!wO&RWO~OW&QXYiXY!aXY&QXZ&QXq!aXu&QXwiX!b&QX#]&QX#_&QX#a&QX#b&QX#d&QX#e&QX#f&QX#g&QX#h&QX#i&QX#k&QX#o&QX#r&QX&^&QX&_&QX&niX&n&QX&qiX&viX&v&QX&x!aX~P?XOWUXYUXY!aXY&]XZUXq!aXuUXw&]X!bUX#]UX#_UX#aUX#bUX#dUX#eUX#fUX#gUX#hUX#iUX#kUX#oUX#rUX&^UX&_UX&nUX&n&]X&q&]X&vUX&v&]X&x!aX~P>lOg^Oh^O%}TO&P!wO&RWOg!RXh!RX&P!RX&R!RX~PFdOu#OOw&XO%}TO&P&UO&R&TO&q&WO~OW#XOY&aX&n&aX&v&aX~P!#YOY&ZO~P9oOg^Oh^O&P!wO&RWO~Oq&]OY&pX~OY&_O~Og^Oh^O%}TO&P!wO&RWOY&pP~PFdOY&dO&n&bO&v#vO~Oq&eO&x$ZOY&wX~OY&gO~O%}TOg%bah%bav%ba!S%ba!T%ba!U%ba!V%ba!W%ba!X%ba!Y%ba!Z%ba!]%ba!^%ba!_%ba!u%ba!z%ba$h%ba&P%ba&R%ba&t%ba&_%ba~O|&hO~P]O}&iO~Op&uOw&vO&PSO&R!qO&_#YO~Oz&tO~P!'iOz&xO&PSO&R!qO&_#YO~OY&eP~P:|Og^Oh^O%}TO&P!wO&RWO~O}cO~P:|OW#XOu#OO%}TO&v&aX~O#r$WO!P#sa#_#sa#a#sa#b#sa#d#sa#e#sa#f#sa#g#sa#h#sa#i#sa#k#sa#o#sa&^#sa&_#sa&n#saY#sa#p#sas#saq#sa|#sa~Oo'_O}'^O!r'`O&_!hO~O}'eO!r'`O~Oo'iO}'hO&_!hO~OZ#xOu'mO%}TO~OW%jO}'sO~OW%jO!P'uO~OW'vO!P'wO~O$h!WO&P0qO&R0pO!P&eP~P/uO!P(SO#p(TO~P9oO}(UO~O$c(WO~O!P(XO~O!P(YO~O!P(ZO~P9oO!P(]O~P9oOZ$lO_VO`VOaVObVOcVOeVOg^Oh^Op!POwkOz!OO%}TO&P(_O&R(^O&XUO~PFdO%Q(hO%U(iOZ$}a_$}a`$}aa$}ab$}ac$}ae$}ag$}ah$}ap$}av$}aw$}az$}a}$}a!P$}a!S$}a!T$}a!U$}a!V$}a!W$}a!X$}a!Y$}a!Z$}a![$}a!]$}a!^$}a!_$}a!u$}a!z$}a#f$}a#r$}a#t$}a#u$}a#y$}a#z$}a$W$}a$Y$}a$`$}a$c$}a$e$}a$h$}a$l$}a$n$}a$s$}a$u$}a$w$}a$y$}a$|$}a%O$}a%w$}a%}$}a&P$}a&R$}a&X$}a&t$}a|$}a$a$}a$q$}a~O}ra!rra'Ora~PH_OZ%bO~PJ`O!P(mO~O!m%gO}&la!P&la~O}cO!P(pO~Oo(tOq!fX&^!fX~Oq(vO&^&mX~O&^(xO~OZ`O_VO`VOaVObVOcVOeVOg^Oh^Op)UOv{Ow)TOz!OO|)PO}cO!PvO![!`O!u}O!z|O#fpO#roO#tpO#upO#y!RO#z!QO$W!SO$Y!TO$`!UO$c!VO$e!XO$h!WO$l!YO$n!ZO$s![O$u!]O$w!^O$y!_O$|!aO%O!bO%}TO&PRO&RQO&XUO&_#YO&tdO~PFdO}%dO~O})]OY&zP~P:|OW%jO!P)dO~Os)eO~Ou#OO%}TOq&ia!P&ia!b&iaY&ia#p&ia~O})fO~P:|Oq%wO!P&ha~Og^Oh^O%}0oO&P!wO&RWO~O&b)mO~P!8jOu#OO%}TOq&aX&^&aXY&aX&n&aX!P&aX~O}&aX!r&aX~P!9SOo)oOp)oOqnX&^nX~Oq)pO&^&`X~O&^)rO~Ou#OOw)tO%}TO&PSO&R!qO~OYma&nma&vma~P!:bOW&QXY!aXq!aXu!aX%}!aX~OWUXY!aXq!aXu!aX%}!aX~OW)wO~Ou#OO%}TO&P#SO&R#SO&q)yO~Og^Oh^O%}TO&P!wO&RWO~PFdOq&]OY&pa~Ou#OO%}TO&P#SO&R#SO&q&WO~OY)|O~OY*PO&n&bO~Oq&eOY&wa~Og^Oh^Ov{O|*XO!u}O%}TO&P!wO&RWO&tdO~PFdO!P*YO~OW^iZ#XXu^i!P^i!b^i#]^i#_^i#a^i#b^i#d^i#e^i#f^i#g^i#h^i#i^i#k^i#o^i#r^i&^^i&_^i&n^i&v^iY^i#p^is^iq^i|^i~OW*iO~Os*jO~P9oOz*kO&PSO&R!qO~O!P]iY]i#p]is]iq]i|]i~P9oOq*lOY&eX!P&eX~P9oOY*nO~O#f$SO#g$TO#k$YO#r$WO!P#^i#_#^i#a#^i#b#^i#d#^i#e#^i#o#^i&^#^i&_#^i&n#^iY#^i#p#^is#^iq#^i|#^i~O#h$UO#i$UO~P!AmO#_#|O#d$QO#e$RO#f$SO#g$TO#h$UO#i$UO#k$YO#r$WO&^#zO&_#zO&n#{O!P#^i#b#^i#o#^iY#^i#p#^is#^iq#^i|#^i~O#a#^i~P!CUO#a#}O~P!CUO#_#|O#f$SO#g$TO#h$UO#i$UO#k$YO#r$WO&^#zO&_#zO!P#^i#a#^i#b#^i#d#^i#e#^i#o#^iY#^i#p#^is#^iq#^i|#^i~O&n#^i~P!DtO&n#{O~P!DtO#f$SO#g$TO#k$YO#r$WO!P#^i#a#^i#b#^i#e#^i#o#^iY#^i#p#^is#^iq#^i|#^i~O#_#|O#d$QO#h$UO#i$UO&^#zO&_#zO&n#{O~P!FdO#k$YO#r$WO!P#^i#_#^i#a#^i#b#^i#d#^i#e#^i#f#^i#h#^i#i#^i#o#^i&^#^i&_#^i&n#^iY#^i#p#^is#^iq#^i|#^i~O#g$TO~P!G{O#g#^i~P!G{O#h#^i#i#^i~P!AmO#p*oO~P9oO#_&aX#a&aX#b&aX#d&aX#e&aX#f&aX#g&aX#h&aX#i&aX#k&aX#o&aX#r&aX&_&aX#p&aXs&aX|&aX~P!9SO!P#liY#li#p#lis#liq#li|#li~P9oO|*rO~P$wO}'^O~O}'^O!r'`O~Oo'_O}'^O!r'`O~O%}TO&P#SO&R#SO|&sP!P&sP~PFdO}'eO~Og^Oh^Ov{O|+PO!P*}O!u}O!z|O%}TO&P!wO&RWO&_!hO&tdO~PFdO}'hO~Oo'iO}'hO~Os+RO~P:|Ou+TO%}TO~Ou'mO})fO%}TOW#Zi!P#Zi#_#Zi#a#Zi#b#Zi#d#Zi#e#Zi#f#Zi#g#Zi#h#Zi#i#Zi#k#Zi#o#Zi#r#Zi&^#Zi&_#Zi&n#Zi&v#ZiY#Zi#p#Zis#Ziq#Zi|#Zi~O}'^OW&diu&di!P&di#_&di#a&di#b&di#d&di#e&di#f&di#g&di#h&di#i&di#k&di#o&di#r&di&^&di&_&di&n&di&v&diY&di#p&dis&diq&di|&di~O#}+]O$P+^O$R+^O$S+_O$T+`O~O|+[O~P##nO$Z+aO&PSO&R!qO~OW+bO!P+cO~O$a+dOZ$_i_$_i`$_ia$_ib$_ic$_ie$_ig$_ih$_ip$_iv$_iw$_iz$_i}$_i!P$_i!S$_i!T$_i!U$_i!V$_i!W$_i!X$_i!Y$_i!Z$_i![$_i!]$_i!^$_i!_$_i!u$_i!z$_i#f$_i#r$_i#t$_i#u$_i#y$_i#z$_i$W$_i$Y$_i$`$_i$c$_i$e$_i$h$_i$l$_i$n$_i$s$_i$u$_i$w$_i$y$_i$|$_i%O$_i%w$_i%}$_i&P$_i&R$_i&X$_i&t$_i|$_i$q$_i~Og^Oh^O$h#sO&P!wO&RWO~O!P+hO~P:|O!P+iO~OZ`O_VO`VOaVObVOcVOeVOg^Oh^Op!POv{OwkOz!OO}cO!PvO!SyO!TyO!UyO!VyO!WyO!XyO!YyO!Z+nO![!`O!]yO!^yO!_yO!u}O!z|O#fpO#roO#tpO#upO#y!RO#z!QO$W!SO$Y!TO$`!UO$c!VO$e!XO$h!WO$l!YO$n!ZO$q+oO$s![O$u!]O$w!^O$y!_O$|!aO%O!bO%}TO&PRO&RQO&XUO&tdO~O|+mO~P#)QOW&QXY&QXZ&QXu&QX!P&QX&viX&v&QX~P?XOWUXYUXZUXuUX!PUX&vUX&v&]X~P>lOW#tOu#uO&v#vO~OW&UXY%XXu&UX!P%XX&v&UX~OZ#XX~P#.VOY+uO!P+sO~O%Q(hO%U(iOZ$}i_$}i`$}ia$}ib$}ic$}ie$}ig$}ih$}ip$}iv$}iw$}iz$}i}$}i!P$}i!S$}i!T$}i!U$}i!V$}i!W$}i!X$}i!Y$}i!Z$}i![$}i!]$}i!^$}i!_$}i!u$}i!z$}i#f$}i#r$}i#t$}i#u$}i#y$}i#z$}i$W$}i$Y$}i$`$}i$c$}i$e$}i$h$}i$l$}i$n$}i$s$}i$u$}i$w$}i$y$}i$|$}i%O$}i%w$}i%}$}i&P$}i&R$}i&X$}i&t$}i|$}i$a$}i$q$}i~OZ+xO~O%Q(hO%U(iOZ%Vi_%Vi`%Via%Vib%Vic%Vie%Vig%Vih%Vip%Viv%Viw%Viz%Vi}%Vi!P%Vi!S%Vi!T%Vi!U%Vi!V%Vi!W%Vi!X%Vi!Y%Vi!Z%Vi![%Vi!]%Vi!^%Vi!_%Vi!u%Vi!z%Vi#f%Vi#r%Vi#t%Vi#u%Vi#y%Vi#z%Vi$W%Vi$Y%Vi$`%Vi$c%Vi$e%Vi$h%Vi$l%Vi$n%Vi$s%Vi$u%Vi$w%Vi$y%Vi$|%Vi%O%Vi%w%Vi%}%Vi&P%Vi&R%Vi&X%Vi&t%Vi|%Vi$a%Vi$q%Vi~Ou#OO%}TO}&oa!P&oa!m&oa~O!P,OO~Oo(tOq!fa&^!fa~Oq(vO&^&ma~O!m%gO}&li!P&li~O|,XO~P]OW,ZO~P5xOW&UXu&UX#_&UX#a&UX#b&UX#d&UX#e&UX#f&UX#g&UX#h&UX#i&UX#k&UX#o&UX#r&UX&^&UX&_&UX&n&UX&v&UX~OZ#xO!P&UX~P#8^OW$gOZ#xO&v#vO~Op,]Ow,]O~Oq,^O}&rX!P&rX~O!b,`O#]#wOY&UXZ#XX~P#8^OY&SXq&SX|&SX!P&SX~P9oO})]O|&yP~P:|OY&SXg%[Xh%[X%}%[X&P%[X&R%[Xq&SX|&SX!P&SX~Oq,cOY&zX~OY,eO~O})fO|&kP~P:|Oq&jX!P&jX|&jXY&jX~P9oO&bTa~PC[Oo)oOp)oOqna&^na~Oq)pO&^&`a~OW,mO~Ow,nO~Ou#OO%}TO&P,rO&R,qO~Og^Oh^Ov#pO!u#rO&P!wO&RWO&t#oO~Og^Oh^Ov{O|,wO!u}O%}TO&P!wO&RWO&tdO~PFdOw-SO&PSO&R!qO&_#YO~Oq*lOY&ea!P&ea~O#_ma#ama#bma#dma#ema#fma#gma#hma#ima#kma#oma#rma&_ma#pmasma|ma~PEnO|-WO~P$wOZ#xO}'^Oq!|X|!|X!P!|X~Oq-[O|&sX!P&sX~O|-_O!P-^O~O&_!hO~P5VOg^Oh^Ov{O|-cO!P*}O!u}O!z|O%}TO&P!wO&RWO&_!hO&tdO~PFdOs-dO~P9oOs-dO~P:|O}'^OW&dqu&dq!P&dq#_&dq#a&dq#b&dq#d&dq#e&dq#f&dq#g&dq#h&dq#i&dq#k&dq#o&dq#r&dq&^&dq&_&dq&n&dq&v&dqY&dq#p&dqs&dqq&dq|&dq~O|-hO~P##nO!W-lO$O-lO&PSO&R!qO~O!P-oO~O$Z-pO&PSO&R!qO~O!b%vO#p-rOq!`X!P!`X~O!P-tO~P9oO!P-tO~P:|O!P-wO~P9oO|-yO~P#)QO![$aO#p-zO~O!P-|O~O!b-}O~OY.QOZ$lO_VO`VOaVObVOcVOeVOg^Oh^Op!POwkOz!OO%}TO&P(_O&R(^O&XUO~PFdOY.QO!P.RO~O%Q(hO%U(iOZ%Vq_%Vq`%Vqa%Vqb%Vqc%Vqe%Vqg%Vqh%Vqp%Vqv%Vqw%Vqz%Vq}%Vq!P%Vq!S%Vq!T%Vq!U%Vq!V%Vq!W%Vq!X%Vq!Y%Vq!Z%Vq![%Vq!]%Vq!^%Vq!_%Vq!u%Vq!z%Vq#f%Vq#r%Vq#t%Vq#u%Vq#y%Vq#z%Vq$W%Vq$Y%Vq$`%Vq$c%Vq$e%Vq$h%Vq$l%Vq$n%Vq$s%Vq$u%Vq$w%Vq$y%Vq$|%Vq%O%Vq%w%Vq%}%Vq&P%Vq&R%Vq&X%Vq&t%Vq|%Vq$a%Vq$q%Vq~Ou#OO%}TO}&oi!P&oi!m&oi~O&n&bOq!ga&^!ga~O!m%gO}&lq!P&lq~O|.^O~P]Op.`Ow&vOz&tO&PSO&R!qO&_#YO~O!P.aO~Oq,^O}&ra!P&ra~O})]O~P:|Oq.gO|&yX~O|.iO~Oq,cOY&za~Oq.mO|&kX~O|.oO~Ow.pO~Oq!aXu!aX!P!aX!b!aX%}!aX~OZ&QX~P#N{OZUX~P#N{O!P.qO~OZ.rO~OW^yZ#XXu^y!P^y!b^y#]^y#_^y#a^y#b^y#d^y#e^y#f^y#g^y#h^y#i^y#k^y#o^y#r^y&^^y&_^y&n^y&v^yY^y#p^ys^yq^y|^y~OY%`aq%`a!P%`a~P9oO!P#nyY#ny#p#nys#nyq#ny|#ny~P9oO}'^Oq!|a|!|a!P!|a~OZ#xO}'^Oq!|a|!|a!P!|a~O%}TO&P#SO&R#SOq%jX|%jX!P%jX~PFdOq-[O|&sa!P&sa~O|!}X~P$wO|/PO~Os/QO~P9oOW%jO!P/RO~OW%jO$Q/WO&PSO&R!qO!P&|P~OW%jO$U/XO~O!P/YO~O!b%vO#p/[Oq!`X!P!`X~OY/^O~O!P/_O~P9oO#p/`O~P9oO!b/bO~OY/cOZ$lO_VO`VOaVObVOcVOeVOg^Oh^Op!POwkOz!OO%}TO&P(_O&R(^O&XUO~PFdOW#[Ou&[X%}&[X&P&[X&R&[X'O&[X~O&_#YO~P$)QOu#OO%}TO'O/eO&P%SX&R%SX~O&n&bOq!gi&^!gi~Op/iO&PSO&R!qO~OW*iOZ#xO~O!P/kO~OY&SXq&SX~P9oO})]Oq%nX|%nX~P:|Oq.gO|&ya~O!b/nO~O})fOq%cX|%cX~P:|Oq.mO|&ka~OY/qO~O!P/rO~OZ/sO~O}'^Oq!|i|!|i!P!|i~O|!}a~P$wOW%jO!P/wO~OW%jOq/xO!P&|X~OY/|O~P9oOY0OO~OY%Xq!P%Xq~P9oO'O/eO&P%Sa&R%Sa~OY0TO~O!P0WO~Ou#OO!P0YO!Z0ZO%}TO~OY0[O~Oq/xO!P&|a~O!P0_O~OW%jOq/xO!P&}X~OY0aO~P9oOY0bO~OY%Xy!P%Xy~P9oOu#OO%}TO&P%ua&R%ua'O%ua~OY0cO~O!P0dO~Ou#OO!P0eO!Z0fO%}TO~OW%jOq%ra!P%ra~Oq/xO!P&}a~O!P0jO~Ou#OO!P0jO!Z0kO%}TO~O!P0lO~O!P0nO~O#p&QXY&QXs&QXq&QX|&QX~P&bO#pUXYUXsUXqUX|UX~P(iO`Q_P#g%y&P&Xc&X~",goto:"#+S'OPPPP'P'd*x.OP'dPP.d.h0PPPPPP1nP3ZPP4v7l:[WP!?[P!Ap!BW!E]3ZPPP!F|!Jm!MaPP#!P#!SP#$`#$f#&V#&f#&n#'p#(Y#)T#)^#)a#)oP#)r#*OP#*V#*^P#*aP#*lP#*o#*r#*u#*y#+PstOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,Y'urOPXY`acopx!Y![!_!a!e!f!h!i!o!x#P#T#Y#[#_#`#e#i#l#n#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$]$_$e$l$m$n$o$p$q%O%S%V%Z%^%_%b%d%g%k%u%v%{%|&R&S&[&]&`&b&d&i'X'^'_'`'e'h'i'm'n'p'{'|(O(T(U(`(l(t(v({(})O)Q)R)])f)o)p*P*T*W*l*o*p*q*z*{+O+T+d+f+h+i+l+o+r+s+x+},W,Y,^,`,u-[-^-a-r-t-}.R.V.g.m/O/[/_/b/d/n/q0R0X0Z0[0f0h0k0r#xhO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%d%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0kt!sT!Q!S!T!{!}$k%p+]+^+_+`-k-m/W/X/x0oQ#mdS&Y#`(}Q&l#oU&q#t$g,ZQ&x#vW(b%O+s.R/dU)Y%j'v+bQ)Z%kS)u&S,WU*f&s-R._Q*k&yQ,t*TQ-P*iQ.j,cR.t,uu!sT!Q!S!T!{!}$k%p+]+^+_+`-k-m/W/X/x0oT%l!r)l#{qO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0k#zlO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0kX(c%O+s.R/d$TVO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0k$TkO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0k&O[OPX`ceopx!O!Y![!_!a!g!i!o#Y#_#b#e#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$_$f$l$m$n$o$p$q%O%_%b%d%g%k%v%{&]&b&d&i&t'^'_'`'h'i'm'{'}(O(T(U(d(t)O)Q)R)])f)o)p*P*U*W*l*o*q*{*|+O+T+d+h+i+l+o+s,Y,^,`-^-r-t-}.R.g.m/O/[/_/b/d/n0Z0f0k0rQ&Q#[Q)s&RV.T+x.X/e&O[OPX`ceopx!O!Y![!_!a!g!i!o#Y#_#b#e#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$_$f$l$m$n$o$p$q%O%_%b%d%g%k%v%{&]&b&d&i&t'^'_'`'h'i'm'{'}(O(T(U(d(t)O)Q)R)])f)o)p*P*U*W*l*o*q*{*|+O+T+d+h+i+l+o+s,Y,^,`-^-r-t-}.R.g.m/O/[/_/b/d/n0Z0f0k0rV.T+x.X/e&O]OPX`ceopx!O!Y![!_!a!g!i!o#Y#_#b#e#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$_$f$l$m$n$o$p$q%O%_%b%d%g%k%v%{&]&b&d&i&t'^'_'`'h'i'm'{'}(O(T(U(d(t)O)Q)R)])f)o)p*P*U*W*l*o*q*{*|+O+T+d+h+i+l+o+s,Y,^,`-^-r-t-}.R.g.m/O/[/_/b/d/n0Z0f0k0rV.U+x.X/eS#Z[.TS$f!O&tS&s#t$gQ&y#vQ)V%dQ-R*iR._,Z$kZO`copx!Y![!_!a#Y#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$_$l$m$n$o$p$q%O%d%g%k%v&b&d'_'`'i'm(O(T(U(t)Q)R)])f)o)p*P*l*o+T+d+h+i+l+o+s,Y,^,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kQ&O#YR,k)p&P_OPX`ceopx!Y![!_!a!g!i!o#Y#_#b#e#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$_$l$m$n$o$p$q%O%_%b%d%g%k%v%{&]&b&d&i'^'_'`'h'i'm'{'}(O(T(U(d(t)O)Q)R)])f)o)p*P*U*W*l*o*q*{*|+O+T+d+h+i+l+o+s+x,Y,^,`-^-r-t-}.R.X.g.m/O/[/_/b/d/e/n0Z0f0k0r!o#QY!e!x#R#T#`#n$]%R%S%V%^%u%|&S&[&`'X'|(`(l({(}*T*p*z+f+r+},W,u-a.V/q0R0X0[0h$SkO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kQ$m!UQ$n!VQ$s!ZQ$|!`R+p(WQ#yiS'q$e*hQ*e&rQ+X'rS,[)T)UQ-O*gQ-Y*vQ.b,]Q.x-QQ.{-ZQ/j.`Q/u.yR0V/iQ'a$bW*[&m'b'c'dQ+W'qU,x*]*^*_Q-X*vQ-f+XS.u,y,zS.z-Y-ZQ/t.vR/v.{]!mP!o'^*q-^/OreOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,Y[!gP!o'^*q-^/OW#b`#e%b&]Q'}$oW(d%O+s.R/dS*U&i*WS*w'e-[S*|'h+OR.X+xh#VY!W!e#n#s%V'|*T*z+f,u-aQ)j%wQ)v&WR,o)y#xnOcopx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0k^!kP!g!o'^*q-^/Ov#TY!W#`#n#s%w&W&[&`'|(`(})y*T+f+r,u.W/hQ#g`Q$b{Q$c|Q$d}W%S!e%V*z-aS%Y!h(vQ%`!iQ&m#pQ&n#qQ&o#rQ(u%ZS(y%^({Q*R&eS*v'e-[R-Z*wU)h%v)f.mR+V'p[!mP!o'^*q-^/OT*}'h+O^!iP!g!o'^*q-^/OQ'd$bQ'l$dQ*_&mQ*d&oV*{'h*|+OQ%[!hR,S(vQ(s%YR,R(u#znO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0kQ%c!kS(l%S(yR(|%`T#e`%bU#c`#e%bR)z&]Q%f!lQ(n%UQ(r%XQ,U(zR.],VrvOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,Y[!mP!o'^*q-^/OQ%P!bQ%a!jQ%i!pQ'[$ZQ([$|Q(k%QQ(p%WQ+z(iR.Y+yrtOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,Y[!mP!o'^*q-^/OS*V&i*WT*}'h+OQ'c$bS*^&m'dR,z*_Q'b$bQ'g$cU*]&m'c'dQ*a&nS,y*^*_R.v,zQ*u'`R+Q'iQ'k$dS*c&o'lR,}*dQ'j$dU*b&o'k'lS,|*c*dR.w,}rtOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,Y[!mP!o'^*q-^/OT*}'h+OQ'f$cS*`&n'gR,{*aQ*x'eR.|-[R-`*yQ&j#mR*Z&lT*V&i*WQ%e!lS(q%X%fR,P(rR)R%dWk%O+s.R/d#{lO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0k$SiO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kU&r#t$g,ZS*g&s._Q-Q*iR.y-RT'o$e'p!_#|m#a$r$z$}&w&z&{'O'P'Q'R'S'W'Z)[)g+S+g+j-T-V-e-v-{.e/Z/a/}0Q!]$Pm#a$r$z$}&w&z&{'O'P'R'S'W'Z)[)g+S+g+j-T-V-e-v-{.e/Z/a/}0Q#{nO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0ka)^%k)],`.g/n0Z0f0kQ)`%kR.k,cQ't$hQ)b%oR,f)cT+Y's+ZsvOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,YruOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,YQ$w!]R$y!^R$p!XrvOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,YR(O$oR$q!XR(V$sT+k(U+lX(f%P(g(k+{R+y(hQ.W+xR/h.XQ(j%PQ+w(gQ+|(kR.Z+{R%Q!bQ(e%OV.P+s.R/dQxOQ#lcW$`x#l)Q,YQ)Q%dR,Y)RrXOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,Yn!fP!o#e&]&i'^'e'h*W*q+O+x-[-^/Ol!zX!f#P#_#i$[%Z%_%{&R'n'{)O0r!j#PY!e!x#T#`#n$]%S%V%^%u%|&S&[&`'X'|(`(l({(}*T*p*z+f+r+},W,u-a.V/q0R0X0[0hQ#_`Q#ia#d$[op!Y!_!a#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$l%g%k%v&b&d'_'`'i'm(O(T(t)])f)o*P*l*o+T+h+i+o,^,`-r-t-}.g.m/[/_/b/n0Z0f0kS%Z!h(vS%_!i*{S%{#Y)pQ&R#[S'n$e'pY'{$o%O+s.R/dQ)O%bR0r$YQ!uUR%m!uQ)q&OR,l)q^#RY#`$]'X'|(`*px%R!e!x#n%V%^%|&S&[&`({(}*T*z+f+r,W,u-a.V0R[%t#R%R%u+}0X0hS%u#T%SQ+}(lQ0X/qR0h0[Q*m&{R-U*mQ!oPU%h!o*q/OQ*q'^R/O-^!pbOP`cx![!o#e#l$_$m$n$o$p$q%O%b%d&]&i'^'e'h(U)Q)R*W*q+O+d+l+s+x,Y-[-^.R/O/dY!yX!f#_'{)OT#jb!yQ.n,gR/p.nQ%x#VR)k%xQ&c#fS*O&c.[R.[,QQ(w%[R,T(wQ&^#cR){&^Q,_)WR.d,_Q+O'hR-b+OQ-]*xR.}-]Q*W&iR,v*WQ'p$eR+U'pQ&f#gR*S&fQ.h,aR/m.hQ,d)`R.l,dQ+Z'sR-g+ZQ-k+]R/T-kQ/y/US0^/y0`R0`/{Q+l(UR-x+lQ(g%PS+v(g+{R+{(kQ/f.VR0S/fQ+t(eR.S+t`wOcx#l%d)Q)R,YQ$t![Q']$_Q'y$mQ'z$nQ(Q$pQ(R$qS+k(U+lR-q+d'dsOPXY`acopx!Y![!_!a!e!f!h!i!o!x#P#T#Y#[#_#`#e#i#l#n#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$]$_$e$l$m$n$o$p$q%O%S%V%Z%^%_%b%d%g%u%v%{%|&R&S&[&]&`&b&d&i'X'^'_'`'e'h'i'm'n'p'{'|(O(T(U(`(l(t(v({(})O)Q)R)f)o)p*P*T*W*l*o*p*q*z*{+O+T+d+f+h+i+l+o+r+s+x+},W,Y,^,u-[-^-a-r-t-}.R.V.m/O/[/_/b/d/q0R0X0[0h0ra)_%k)],`.g/n0Z0f0kQ!rTQ$h!QQ$i!SQ$j!TQ%o!{Q%q!}Q'x$kQ)c%pQ)l0oS-i+]+_Q-m+^Q-n+`Q/S-kS/U-m/WQ/{/XR0]/x%uSOT`cdopx!Q!S!T!Y![!_!a!{!}#`#l#o#t#u#v#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$g$k$l$m$n$o$p$q%O%d%j%k%p%v&S&d&s&y'm'v(O(T(U(})Q)R)])f*P*T*i*l*o+T+]+^+_+`+b+d+h+i+l+o+s,W,Y,Z,`,c,u-R-k-m-r-t-}.R._.g.m/W/X/[/_/b/d/n/x0Z0f0k0oQ)a%kQ,a)]S.f,`/nQ/l.gQ0g0ZQ0i0fR0m0krmOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,YS#a`$lQ$WoQ$^pQ$r!YQ$z!_Q$}!aQ&w#uQ&z#wY&{#x$o+h-t/_Q&}#|Q'O#}Q'P$OQ'Q$PQ'R$QQ'S$RQ'T$SQ'U$TQ'V$UQ'W$VQ'Z$Z^)[%k)].g/n0Z0f0kU)g%v)f.mQ*Q&dQ+S'mQ+g(OQ+j(TQ,p*PQ-T*lQ-V*oQ-e+TQ-v+iQ-{+oQ.e,`Q/Z-rQ/a-}Q/}/[R0Q/b#xgO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o,Y,`-r-t-}.g.m/[/_/b/n0Z0f0kW(a%O+s.R/dR)S%drYOcx![#l$_$m$n$p$q%d(U)Q)R+d+l,Y[!eP!o'^*q-^/OW!xX$[%{'{Q#``Q#ne#S$]op!Y!_!a#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$l%k%v&d'm(O(T)])f*P*l*o+T+h+i+o,`-r-t-}.g.m/[/_/b/n0Z0f0kQ%V!gS%^!i*{d%|#Y%g&b'_'`'i(t)o)p,^Q&S#_Q&[#bS&`#e&]Q'X$YQ'|$oW(`%O+s.R/dQ({%_Q(}%bS*T&i*WQ*p0rS*z'h+OQ+f'}Q+r(dQ,W)OQ,u*UQ-a*|S.V+x.XR0R/e&O_OPX`ceopx!Y![!_!a!g!i!o#Y#_#b#e#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$_$l$m$n$o$p$q%O%_%b%d%g%k%v%{&]&b&d&i'^'_'`'h'i'm'{'}(O(T(U(d(t)O)Q)R)])f)o)p*P*U*W*l*o*q*{*|+O+T+d+h+i+l+o+s+x,Y,^,`-^-r-t-}.R.X.g.m/O/[/_/b/d/e/n0Z0f0k0rQ$e!OQ'r$fR*h&t&ZWOPX`ceopx!O!Y![!_!a!g!i!o#Y#[#_#b#e#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Y$Z$[$_$f$l$m$n$o$p$q%O%_%b%d%g%k%v%{&R&]&b&d&i&t'^'_'`'h'i'm'{'}(O(T(U(d(t)O)Q)R)])f)o)p*P*U*W*l*o*q*{*|+O+T+d+h+i+l+o+s+x,Y,^,`-^-r-t-}.R.X.g.m/O/[/_/b/d/e/n0Z0f0k0rR&P#Y$QjOcopx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kQ#f`Q&O#YQ'Y$YU)W%g'`'iQ)}&bQ*s'_Q,Q(tQ,j)oQ,k)pR.c,^Q)n%}R,i)m$SfO`copx!Y![!_!a#l#u#w#x#|#}$O$P$Q$R$S$T$U$V$Z$_$l$m$n$o$p$q%O%d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kT&p#t,ZQ&|#xQ(P$oQ-u+hQ/]-tR0P/_]!nP!o'^*q-^/O#PaOPX`bcx![!f!o!y#_#e#l$_$m$n$o$p$q%O%b%d&]&i'^'e'h'{(U)O)Q)R*W*q+O+d+l+s+x,Y-[-^.R/O/dU#WY!W'|Q%T!eU&k#n#s+fQ(o%VS,s*T*zT.s,u-aj#UY!W!e#n#s%V%w&W)y*T*z,u-aU&V#`&`(}Q)x&[Q+e'|Q+q(`Q-s+fQ.O+rQ/g.WR0U/hQ)i%vQ,g)fR/o.mR,h)f`!jP!o'^'h*q+O-^/OT%W!g*|R%]!hW%U!e%V*z-aQ(z%^R,V({S#d`%bR&a#eQ)X%gT*t'`'iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"\u26A0 LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[n],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#'f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5zvw7[wx8rxyAZyzAwz{Be{|CZ|}Dq}!OE_!O!PFx!P!Q! r!Q!R!,h!R![!0`![!]!>p!]!^!@Q!^!_!@n!_!`!BX!`!a!B{!a!b!Di!b!c!EX!c!}!LT!}#O!Mj#O#P%Q#P#Q!NW#Q#R!Nt#R#S4e#S#T%Q#T#o4e#o#p# h#p#q#!U#q#r##n#r#s#$[#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4eS%VV&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&YSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&YS%yZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%Q_)iY&YS%yZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XZ*^Y%yZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XV+TX#tP&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QU+wV#_Q&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT,aXOY,|YZ%lZr,|rs3Ys#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T-PXOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT-qX&YSOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT.cVcPOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZT.}V&YSOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT/iW&YSOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0UWOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0sOcPP0vTOY0RYZ0RZ;'S0R;'S;=`1V<%lO0RP1YP;=`<%l0RT1`XOY,|YZ%lZr,|rs1{s#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T2QUcPOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZT2gVOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT3PP;=`<%l-lT3VP;=`<%l,|T3_VcPOY&ZYZ%lZr&Zrs3ts;'S&Z;'S;=`'`<%lO&ZT3yR&WSXY4SYZ4`pq4SP4VRXY4SYZ4`pq4SP4eO&XP_4lb&YS&PZOY%QYZ%lZr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o$g%Q$g;'S4e;'S;=`5t<%lO4e_5wP;=`<%l4eU6RX#hQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%QU6uV#]Q&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV7cZ&nR&YSOY%QYZ%lZr%Qrs%qsv%Qvw8Uw!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%QU8]V#aQ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT8wZ&YSOY9jYZ%lZr9jrs:xsw9jwx%Qx#O9j#O#PhYZ%lZr>hrs?dsw>hwx;hx#O>h#O#P&Z#P;'S>h;'S;=`@}<%lO>hT>kZOYhYZ%lZr>hrs@Ysw>hwx;hx#O>h#O#P&Z#P;'S>h;'S;=`@}<%lO>hP@]VOY@YZw@Ywx@rx#O@Y#P;'S@Y;'S;=`@w<%lO@YP@wObPP@zP;=`<%l@YTAQP;=`<%l>hTAWP;=`<%l9j_AbVZZ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVBOVYR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVBnX$ZP&YS#gQOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%QVCbZ#fR&YSOY%QYZ%lZr%Qrs%qs{%Q{|DT|!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%QVD[V#rR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVDxVqR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVEf[#fR&YSOY%QYZ%lZr%Qrs%qs}%Q}!ODT!O!_%Q!_!`6n!`!aF[!a;'S%Q;'S;=`&s<%lO%QVFcV&xR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_GPZWY&YSOY%QYZ%lZr%Qrs%qs!O%Q!O!PGr!P!Q%Q!Q![IQ![;'S%Q;'S;=`&s<%lO%QVGwX&YSOY%QYZ%lZr%Qrs%qs!O%Q!O!PHd!P;'S%Q;'S;=`&s<%lO%QVHkV&qR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTIXc&YS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![IQ![!f%Q!f!gJd!g!hKQ!h!iJd!i#R%Q#R#SNz#S#W%Q#W#XJd#X#YKQ#Y#ZJd#Z;'S%Q;'S;=`&s<%lO%QTJkV&YS`POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTKV]&YSOY%QYZ%lZr%Qrs%qs{%Q{|LO|}%Q}!OLO!O!Q%Q!Q![Lp![;'S%Q;'S;=`&s<%lO%QTLTX&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lp![;'S%Q;'S;=`&s<%lO%QTLwc&YS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lp![!f%Q!f!gJd!g!h%Q!h!iJd!i#R%Q#R#SNS#S#W%Q#W#XJd#X#Y%Q#Y#ZJd#Z;'S%Q;'S;=`&s<%lO%QTNXZ&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Lp![#R%Q#R#SNS#S;'S%Q;'S;=`&s<%lO%QT! PZ&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![IQ![#R%Q#R#SNz#S;'S%Q;'S;=`&s<%lO%Q_! y]&YS#gQOY%QYZ%lZr%Qrs%qsz%Qz{!!r{!P%Q!P!Q!)e!Q!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%Q_!!wX&YSOY!!rYZ!#dZr!!rrs!%Psz!!rz{!&_{;'S!!r;'S;=`!'s<%lO!!r_!#iT&YSOz!#xz{!$[{;'S!#x;'S;=`!$y<%lO!#xZ!#{TOz!#xz{!$[{;'S!#x;'S;=`!$y<%lO!#xZ!$_VOz!#xz{!$[{!P!#x!P!Q!$t!Q;'S!#x;'S;=`!$y<%lO!#xZ!$yOQZZ!$|P;=`<%l!#x_!%SXOY!%oYZ!#dZr!%ors!'ysz!%oz{!(i{;'S!%o;'S;=`!)_<%lO!%o_!%rXOY!!rYZ!#dZr!!rrs!%Psz!!rz{!&_{;'S!!r;'S;=`!'s<%lO!!r_!&dZ&YSOY!!rYZ!#dZr!!rrs!%Psz!!rz{!&_{!P!!r!P!Q!'V!Q;'S!!r;'S;=`!'s<%lO!!r_!'^V&YSQZOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!'vP;=`<%l!!r_!'|XOY!%oYZ!#dZr!%ors!#xsz!%oz{!(i{;'S!%o;'S;=`!)_<%lO!%o_!(lZOY!!rYZ!#dZr!!rrs!%Psz!!rz{!&_{!P!!r!P!Q!'V!Q;'S!!r;'S;=`!'s<%lO!!r_!)bP;=`<%l!%o_!)lV&YSPZOY!)eYZ%lZr!)ers!*Rs;'S!)e;'S;=`!+X<%lO!)e_!*WVPZOY!*mYZ%lZr!*mrs!+_s;'S!*m;'S;=`!,b<%lO!*m_!*rVPZOY!)eYZ%lZr!)ers!*Rs;'S!)e;'S;=`!+X<%lO!)e_!+[P;=`<%l!)e_!+dVPZOY!*mYZ%lZr!*mrs!+ys;'S!*m;'S;=`!,b<%lO!*mZ!,OSPZOY!+yZ;'S!+y;'S;=`!,[<%lO!+yZ!,_P;=`<%l!+y_!,eP;=`<%l!*mT!,ou&YS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!/S!P!Q%Q!Q![!0`![!d%Q!d!e!3j!e!f%Q!f!gJd!g!hKQ!h!iJd!i!n%Q!n!o!2U!o!q%Q!q!r!5h!r!z%Q!z!{!7`!{#R%Q#R#S!2r#S#U%Q#U#V!3j#V#W%Q#W#XJd#X#YKQ#Y#ZJd#Z#`%Q#`#a!2U#a#c%Q#c#d!5h#d#l%Q#l#m!7`#m;'S%Q;'S;=`&s<%lO%QT!/Za&YS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![IQ![!f%Q!f!gJd!g!hKQ!h!iJd!i#W%Q#W#XJd#X#YKQ#Y#ZJd#Z;'S%Q;'S;=`&s<%lO%QT!0gi&YS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!/S!P!Q%Q!Q![!0`![!f%Q!f!gJd!g!hKQ!h!iJd!i!n%Q!n!o!2U!o#R%Q#R#S!2r#S#W%Q#W#XJd#X#YKQ#Y#ZJd#Z#`%Q#`#a!2U#a;'S%Q;'S;=`&s<%lO%QT!2]V&YS_POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT!2wZ&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!0`![#R%Q#R#S!2r#S;'S%Q;'S;=`&s<%lO%QT!3oY&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4_!R!S!4_!S;'S%Q;'S;=`&s<%lO%QT!4f`&YS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4_!R!S!4_!S!n%Q!n!o!2U!o#R%Q#R#S!3j#S#`%Q#`#a!2U#a;'S%Q;'S;=`&s<%lO%QT!5mX&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!6Y!Y;'S%Q;'S;=`&s<%lO%QT!6a_&YS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!6Y!Y!n%Q!n!o!2U!o#R%Q#R#S!5h#S#`%Q#`#a!2U#a;'S%Q;'S;=`&s<%lO%QT!7e_&YSOY%QYZ%lZr%Qrs%qs!O%Q!O!P!8d!P!Q%Q!Q![!:r![!c%Q!c!i!:r!i#T%Q#T#Z!:r#Z;'S%Q;'S;=`&s<%lO%QT!8i]&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9b![!c%Q!c!i!9b!i#T%Q#T#Z!9b#Z;'S%Q;'S;=`&s<%lO%QT!9gc&YSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9b![!c%Q!c!i!9b!i!r%Q!r!sKQ!s#R%Q#R#S!8d#S#T%Q#T#Z!9b#Z#d%Q#d#eKQ#e;'S%Q;'S;=`&s<%lO%QT!:yi&YS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!wX#pR&YSOY%QYZ%lZr%Qrs%qs![%Q![!]!?d!];'S%Q;'S;=`&s<%lO%QV!?kV&vR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!@XV!PR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!@uY&_Z&YSOY%QYZ%lZr%Qrs%qs!^%Q!^!_!Ae!_!`+p!`;'S%Q;'S;=`&s<%lO%QU!AlX#iQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%QV!B`X!bR&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QV!CSY&^R&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`!a!Cr!a;'S%Q;'S;=`&s<%lO%QU!CyY#iQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`!a!Ae!a;'S%Q;'S;=`&s<%lO%Q_!DrV&bX#oQ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!E`X%}Z&YSOY%QYZ%lZr%Qrs%qs#]%Q#]#^!E{#^;'S%Q;'S;=`&s<%lO%QV!FQX&YSOY%QYZ%lZr%Qrs%qs#b%Q#b#c!Fm#c;'S%Q;'S;=`&s<%lO%QV!FrX&YSOY%QYZ%lZr%Qrs%qs#h%Q#h#i!G_#i;'S%Q;'S;=`&s<%lO%QV!GdX&YSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!HP#Y;'S%Q;'S;=`&s<%lO%QV!HUX&YSOY%QYZ%lZr%Qrs%qs#f%Q#f#g!Hq#g;'S%Q;'S;=`&s<%lO%QV!HvX&YSOY%QYZ%lZr%Qrs%qs#Y%Q#Y#Z!Ic#Z;'S%Q;'S;=`&s<%lO%QV!IhX&YSOY%QYZ%lZr%Qrs%qs#T%Q#T#U!JT#U;'S%Q;'S;=`&s<%lO%QV!JYX&YSOY%QYZ%lZr%Qrs%qs#V%Q#V#W!Ju#W;'S%Q;'S;=`&s<%lO%QV!JzX&YSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!Kg#Y;'S%Q;'S;=`&s<%lO%QV!KnV&tR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!L[b&RZ&YSOY%QYZ%lZr%Qrs%qst%Qtu!LTu!Q%Q!Q![!LT![!c%Q!c!}!LT!}#R%Q#R#S!LT#S#T%Q#T#o!LT#o$g%Q$g;'S!LT;'S;=`!Md<%lO!LT_!MgP;=`<%l!LT_!MqVuZ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!N_VsR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QU!N{X#eQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`;'S%Q;'S;=`&s<%lO%QV# oV}R&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_#!_Z'OX#dQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`#p%Q#p#q##Q#q;'S%Q;'S;=`&s<%lO%QU##XV#bQ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##uV|R&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT#$cV#uP&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_#%Ru&YS%yZ&PZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4e",tokenizers:[0,1,2,3],topRules:{Program:[0,3],ClassContent:[1,194]},dynamicPrecedences:{27:1,232:-1,243:-1},specialized:[{term:231,get:Q=>_[Q]||-1}],tokenPrec:7144}),i=S.define({name:"java",parser:d.configure({props:[s.add({IfStatement:$({except:/^\s*({|else\b)/}),TryStatement:$({except:/^\s*({|catch|finally)\b/}),LabeledStatement:t,SwitchBlock:Q=>{let P=Q.textAfter,a=/^\s*\}/.test(P),r=/^\s*(case|default)\b/.test(P);return Q.baseIndent+(a?0:r?1:2)*Q.unit},Block:Z({closing:"}"}),BlockComment:()=>null,Statement:$({except:/^{/})}),e.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":X,BlockComment(Q){return{from:Q.from+2,to:Q.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function R(){return new o(i)}export{i as n,R as t}; diff --git a/docs/assets/dist-ClsPkyB_.js b/docs/assets/dist-ClsPkyB_.js new file mode 100644 index 0000000..eed277a --- /dev/null +++ b/docs/assets/dist-ClsPkyB_.js @@ -0,0 +1 @@ +import{D as o,J as $,N as R,T as x,g as W,n as S,nt as U,q as V,r as l,s as r,u as b,y as m}from"./dist-CAcX026F.js";import{n as u}from"./dist-CVj-_Iiz.js";var c=1,p=2,j=263,v=3,k=264,n=265,_=266,Y=4,f=5,w=6,g=7,q=8,Z=9,G=10,h=11,E=12,I=13,N=14,F=15,C=16,A=17,L=18,H=19,K=20,D=21,B=22,M=23,J=24,OO=25,$O=26,QO=27,iO=28,yO=29,aO=30,zO=31,SO=32,PO=33,WO=34,XO=35,eO=36,nO=37,qO=38,sO=39,tO=40,TO=41,dO=42,oO=43,RO=44,xO=45,UO=46,VO=47,lO=48,rO=49,bO=50,mO=51,uO=52,cO=53,pO=54,jO=55,vO=56,kO=57,_O=58,YO=59,fO=60,wO=61,X=62,gO={abstract:Y,and:f,array:w,as:g,true:q,false:q,break:Z,case:G,catch:h,clone:E,const:I,continue:N,declare:C,default:F,do:A,echo:L,else:H,elseif:K,enddeclare:D,endfor:B,endforeach:M,endif:J,endswitch:OO,endwhile:$O,enum:QO,extends:iO,final:yO,finally:aO,fn:zO,for:SO,foreach:PO,from:WO,function:XO,global:eO,goto:nO,if:qO,implements:sO,include:tO,include_once:TO,instanceof:dO,insteadof:oO,interface:RO,list:xO,match:UO,namespace:VO,new:lO,null:rO,or:bO,print:mO,require:uO,require_once:cO,return:pO,switch:jO,throw:vO,trait:kO,try:_O,unset:YO,use:fO,var:wO,public:X,private:X,protected:X,while:63,xor:64,yield:65,__proto__:null};function s(O){return gO[O.toLowerCase()]??-1}function t(O){return O==9||O==10||O==13||O==32}function T(O){return O>=97&&O<=122||O>=65&&O<=90}function a(O){return O==95||O>=128||T(O)}function e(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}var ZO={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},GO=new S(O=>{if(O.next==40){O.advance();let Q=0;for(;t(O.peek(Q));)Q++;let i="",y;for(;T(y=O.peek(Q));)i+=String.fromCharCode(y),Q++;for(;t(O.peek(Q));)Q++;O.peek(Q)==41&&ZO[i.toLowerCase()]&&O.acceptToken(c)}else if(O.next==60&&O.peek(1)==60&&O.peek(2)==60){for(let y=0;y<3;y++)O.advance();for(;O.next==32||O.next==9;)O.advance();let Q=O.next==39;if(Q&&O.advance(),!a(O.next))return;let i=String.fromCharCode(O.next);for(;O.advance(),!(!a(O.next)&&!(O.next>=48&&O.next<=55));)i+=String.fromCharCode(O.next);if(Q){if(O.next!=39)return;O.advance()}if(O.next!=10&&O.next!=13)return;for(;;){let y=O.next==10||O.next==13;if(O.advance(),O.next<0)return;if(y){for(;O.next==32||O.next==9;)O.advance();let z=!0;for(let P=0;P{O.next<0&&O.acceptToken(_)}),EO=new S((O,Q)=>{O.next==63&&Q.canShift(n)&&O.peek(1)==62&&O.acceptToken(n)});function IO(O){let Q=O.peek(1);if(Q==110||Q==114||Q==116||Q==118||Q==101||Q==102||Q==92||Q==36||Q==34||Q==123)return 2;if(Q>=48&&Q<=55){let i=2,y;for(;i<5&&(y=O.peek(i))>=48&&y<=55;)i++;return i}if(Q==120&&e(O.peek(2)))return e(O.peek(3))?4:3;if(Q==117&&O.peek(2)==123)for(let i=3;;i++){let y=O.peek(i);if(y==125)return i==2?0:i+1;if(!e(y))break}return 0}var NO=new S((O,Q)=>{let i=!1;for(;!(O.next==34||O.next<0||O.next==36&&(a(O.peek(1))||O.peek(1)==123)||O.next==123&&O.peek(1)==36);i=!0){if(O.next==92){let y=IO(O);if(y){if(i)break;return O.acceptToken(v,y)}}else if(!i&&(O.next==91||O.next==45&&O.peek(1)==62&&a(O.peek(2))||O.next==63&&O.peek(1)==45&&O.peek(2)==62&&a(O.peek(3)))&&Q.canShift(k))break;O.advance()}i&&O.acceptToken(j)}),FO=V({"Visibility abstract final static":$.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":$.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":$.controlKeyword,"and or xor yield unset clone instanceof insteadof":$.operatorKeyword,"function fn class trait implements extends const enum global interface use var":$.definitionKeyword,"include include_once require require_once namespace":$.moduleKeyword,"new from echo print array list as":$.keyword,null:$.null,Boolean:$.bool,VariableName:$.variableName,"NamespaceName/...":$.namespace,"NamedType/...":$.typeName,Name:$.name,"CallExpression/Name":$.function($.variableName),"LabelStatement/Name":$.labelName,"MemberExpression/Name":$.propertyName,"MemberExpression/VariableName":$.special($.propertyName),"ScopedExpression/ClassMemberName/Name":$.propertyName,"ScopedExpression/ClassMemberName/VariableName":$.special($.propertyName),"CallExpression/MemberExpression/Name":$.function($.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":$.function($.propertyName),"MethodDeclaration/Name":$.function($.definition($.variableName)),"FunctionDefinition/Name":$.function($.definition($.variableName)),"ClassDeclaration/Name":$.definition($.className),UpdateOp:$.updateOperator,ArithOp:$.arithmeticOperator,LogicOp:$.logicOperator,BitOp:$.bitwiseOperator,CompareOp:$.compareOperator,ControlOp:$.controlOperator,AssignOp:$.definitionOperator,"$ ConcatOp":$.operator,LineComment:$.lineComment,BlockComment:$.blockComment,Integer:$.integer,Float:$.float,String:$.string,ShellExpression:$.special($.string),"=> ->":$.punctuation,"( )":$.paren,"#[ [ ]":$.squareBracket,"${ { }":$.brace,"-> ?->":$.derefOperator,", ; :: : \\":$.separator,"PhpOpen PhpClose":$.processingInstruction}),CO={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},AO=l.deserialize({version:14,states:"$FvQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#Ip'#IpOOQS'#IW'#IWO,zQ`O'#GdO,zQ`O'#GfO,zQ`O'#GkOhQaO'#GmO9UQ`O'#GnO9ZQ`O'#GqO9`Q`O'#GtO9eQeO'#GuO9eQeO'#GvO9eQeO'#GwO9oQ`O'#GxO9tQ`O'#GzO9yQaO'#G{OS,5>SOJ[QdO,5;gOOQO-E;f-E;fOL^Q`O,5;gOLcQpO,5;bO0aQ`O'#EyOLkQtO'#E}OOQS'#Ez'#EzOOQS'#Ib'#IbOM`QaO,5:wO*kQaO,5;nOOQS,5;p,5;pO*kQaO,5;pOMgQdO,5UQaO,5=hO!-eQ`O'#F}O!-jQdO'#IlO!&WQdO,5=iOOQ#u,5=j,5=jO!-uQ`O,5=lO!-xQ`O,5=mO!-}Q`O,5=nO!.YQdO,5=qOOQ#u,5=q,5=qO!.eQ`O,5=rO!.eQ`O,5=rO!.mQdO'#IwO!.{Q`O'#HXO!&WQdO,5=rO!/ZQ`O,5=rO!/fQdO'#IYO!&WQdO,5=vOOQ#u-E;_-E;_O!1RQ`O,5=kOOO#u,5:^,5:^O!1^O#|O,5:^OOO#u-E;^-E;^OOOO,5>p,5>pOOQ#y1G0S1G0SO!1fQ`O1G0XO*kQaO1G0XO!2xQ`O1G0pOOQS1G0p1G0pO!4[Q`O1G0pOOQS'#I_'#I_O*kQaO'#I_OOQS1G0q1G0qO!4cQ`O'#IaO!7lQ`O'#E}O!7yQaO'#EuOOQO'#Ia'#IaO!8TQ`O'#I`O!8]Q`O,5;_OOQS'#FQ'#FQOOQS1G1U1G1UO!8bQdO1G1]O!:dQdO1G1]O!wO#(fQaO'#HdO#(vQ`O,5>vOOQS1G0d1G0dO#)OQ`O1G0dO#)TQ`O'#I^O#*mQ`O'#I^O#*uQ`O,5;ROIbQaO,5;ROOQS1G0u1G0uPOQO'#E}'#E}O#+fQdO1G1RO0aQ`O'#HgO#-hQtO,5;cO#.YQaO1G0|OOQS,5;e,5;eO#0iQtO,5;gO#0vQdO1G0cO*kQaO1G0cO#2cQdO1G1YO#4OQdO1G1[OOQO,5<^,5<^O#4`Q`O'#HjO#4nQ`O,5?ROOQO1G1w1G1wO#4vQ`O,5?ZO!&WQdO1G3TO<_Q`O1G3TOOQ#u1G3U1G3UO#4{Q`O1G3YO!1RQ`O1G3VO#5WQ`O1G3VO#5]QpO'#FoO#5kQ`O'#FoO#5{Q`O'#FoO#6WQ`O'#FoO#6`Q`O'#FsO#6eQ`O'#FtOOQO'#If'#IfO#6lQ`O'#IeO#6tQ`O,5tOOQ#u1G3b1G3bOOQ#u1G3V1G3VO!-xQ`O1G3VO!1UQ`O1G3VOOO#u1G/x1G/xO*kQaO7+%sO#MyQdO7+%sOOQS7+&[7+&[O$ fQ`O,5>yO>UQaO,5;`O$ mQ`O,5;aO$#SQaO'#HfO$#^Q`O,5>zOOQS1G0y1G0yO$#fQ`O'#EYO$#kQ`O'#IXO$#sQ`O,5:sOOQS1G0e1G0eO$#xQ`O1G0eO$#}Q`O1G0iO9yQaO1G0iOOQO,5>O,5>OOOQO-E;b-E;bOOQS7+&O7+&OO>UQaO,5;SO$%dQaO'#HeO$%nQ`O,5>xOOQS1G0m1G0mO$%vQ`O1G0mOOQS,5>R,5>ROOQS-E;e-E;eO$%{QdO7+&hO$'}QtO1G1RO$([QdO7+%}OOQS1G0i1G0iOOQO,5>U,5>UOOQO-E;h-E;hOOQ#u7+(o7+(oO!&WQdO7+(oOOQ#u7+(t7+(tO#KqQ`O7+(tO0aQ`O7+(tOOQ#u7+(q7+(qO!-xQ`O7+(qO!1UQ`O7+(qO!1RQ`O7+(qO$)wQ`O,5UQaO,5],5>]OOQS-E;o-E;oO$.mQdO7+'hO$.}QpO7+'hO$/VQdO'#IiOOQO,5dOOQ#u,5>d,5>dOOQ#u-E;v-E;vO$;pQaO7+(lO$cOOQS-E;u-E;uO!&WQdO7+(nO$=qQdO1G2TOOQS,5>[,5>[OOQS-E;n-E;nOOQ#u7+(r7+(rO$?ZQ`O'#GOO$?}Q`O'#HUOOQO'#Hy'#HyO$@SQ`O,5=oOOQ#u,5=o,5=oO$@|QpO7+(tOOQ#u7+(x7+(xO!&WQdO7+(xO$AXQdO,5>fOOQS-E;x-E;xO$AgQdO1G4}O$ArQ`O,5=tO$AwQ`O,5=tO$BSQ`O'#H{O$BhQ`O,5?dOOQS1G3_1G3_O#KvQ`O7+(xO$BpQdO,5=|OOQS-E;`-E;`O$D]QdO<Q,5>QOOQO-E;d-E;dO$8^QaO,5:tO$G_QaO'#HcO$GlQ`O,5>sOOQS1G0_1G0_OOQS7+&P7+&PO$GtQ`O7+&TO$IZQ`O1G0nO$JpQ`O,5>POOQO,5>P,5>POOQO-E;c-E;cOOQS7+&X7+&XOOQS7+&T7+&TOOQ#u<UQaO1G1uO$LYQ`O1G1uO$LeQ`O1G1yOOQO1G1y1G1yO$LjQ`O1G1uO$LrQ`O1G1uO$NXQ`O1G1zO>UQaO1G1zOOQO,5>V,5>VOOQO-E;i-E;iOOQS<`OOQ#u-E;r-E;rOhQaO<aOOQO-E;s-E;sO!&WQdO<g,5>gOOQO-E;y-E;yO!&WQdO<UQaO,5;TOOQ#uANAzANAzO#KqQ`OANAzOOQ#uANAwANAwO!-xQ`OANAwO%*`Q`O7+'aO>UQaO7+'aOOQO7+'e7+'eO%+uQ`O7+'aO%,QQ`O7+'eO>UQaO7+'fO%,VQ`O7+'fO%-lQ`O'#HlO%-zQ`O,5?SO%-zQ`O,5?SOOQO1G1{1G1{O$+uQpOAN@dOOQSAN@dAN@dO0aQ`OAN@dO%.SQtOANCgO%.bQ`OAN@dO*kQaOAN@nO%.jQdOAN@nO%.zQpOAN@nOOQS,5>X,5>XOOQS-E;k-E;kOOQO1G2U1G2UO!&WQdO1G2UO$/hQpO1G2UO<_Q`O1G2SO!.YQdO1G2WO!&WQdO1G2SOOQO1G2W1G2WOOQO1G2S1G2SO%/SQaO'#GSOOQO1G2X1G2XOOQSAN@oAN@oOOOQ<UQaO<W,5>WO%7aQ`O,5>WOOQO-E;j-E;jO%7fQ`O1G4nOOQSG26OG26OO$+uQpOG26OO0aQ`OG26OO%7nQdOG26YO*kQaOG26YOOQO7+'p7+'pO!&WQdO7+'pO!&WQdO7+'nOOQO7+'r7+'rOOQO7+'n7+'nO%8OQ`OLD+tO%9_Q`O'#E}O%9iQ`O'#IZO!&WQdO'#HrO%;fQaO,5RQ`OG27^OOQO7+(v7+(vO%>WQ`O7+(vO!&WQdO7+(vOOQO1G3a1G3aO%>`Q`O1G3aO%>eQ`OAN@gOOQO1G3r1G3rOOQSLD+jLD+jO$+uQpOLD+jO%?zQdOLD+tOOQO<^,5>^OOQP-E;p-E;pOOQO1G2Y1G2YOOQ#uLD,bLD,bOOQTG27RG27RO!&WQdOLD,xO!&WQdO<wO&EiQdO1G0cO#.YQaO1G0cO&GeQdO1G1YO&IaQdO1G1[O#.YQaO1G1|O#.YQaO7+%sO&K]QdO7+%sO&MXQdO7+%}O#.YQaO7+'hO' TQdO7+'hO'#PQdO<wO(AWQdO1G0cO'.jQaO1G0cO(CYQdO1G1YO(E[QdO1G1[O'.jQaO1G1|O'.jQaO7+%sO(G^QdO7+%sO(I`QdO7+%}O'.jQaO7+'hO(KbQdO7+'hO(MdQdO<wO*2]QaO'#HdO*2mQ`O,5>vO*2uQdO1G0cO9yQaO1G0cO*4qQdO1G1YO*6mQdO1G1[O9yQaO1G1|O>UQaO'#HwO*8iQ`O,5=[O*8qQaO'#HbO*8{Q`O,5>tO9yQaO7+%sO*9TQdO7+%sO*;PQ`O1G0iO>UQaO1G0iO*bQdO7+'hO*@^Q`O,5>cO*AsQ`O,5=|O*CYQdO<UQaO'#FeO>UQaO'#FfO>UQaO'#FgO>UQaO'#FhO>UQaO'#FhO>UQaO'#FkO+'qQaO'#FwO>UQaO'#GVO>UQaO'#GYO+'xQaO,5:mO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO+(PQ`O'#I]O$8^QaO'#EaO+)iQaOG26YO$8^QaO'#I]O++eQ`O'#I[O++mQaO,5:wO>UQaO,5;nO>UQaO,5;pO++tQ`O,5UQaO1G0XO+:QQ`O1G1]O+;mQ`O1G1]O+=YQ`O1G1]O+>uQ`O1G1]O+@bQ`O1G1]O+A}Q`O1G1]O+CjQ`O1G1]O+EVQ`O1G1]O+FrQ`O1G1]O+H_Q`O1G1]O+IzQ`O1G1]O+KgQ`O1G1]O+MSQ`O1G1]O+NoQ`O1G1]O,![Q`O1G1]O,#wQ`O1G0cO>UQaO1G0cO,%dQ`O1G1YO,'PQ`O1G1[O,(lQ`O1G1|O>UQaO1G1|O>UQaO7+%sO,(tQ`O7+%sO,*aQ`O7+%}O>UQaO7+'hO,+|Q`O7+'hO,,UQ`O7+'hO,-qQpO7+'hO,-yQ`O<UQaO<UQaOAN@nO,1ZQ`OAN@nO,2vQpOAN@nO,3OQ`OG26YO>UQaOG26YO,4kQ`OLD+tO,6WQaO,5:}O>UQaO1G0iO,6_Q`O'#I]O$8^QaO'#FeO$8^QaO'#FfO$8^QaO'#FgO$8^QaO'#FhO$8^QaO'#FhO+)iQaO'#FhO$8^QaO'#FkO,6lQaO'#FwO,6sQaO'#FwO$8^QaO'#GVO+)iQaO'#GVO$8^QaO'#GYO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO$8^QaO,5;qO+)iQaO,5;qO,8rQ`O'#FlO>UQaO'#EaO>UQaO'#I]O,8zQaO,5:wO,9RQaO,5:wO$8^QaO,5;nO+)iQaO,5;nO$8^QaO,5;pO,;QQ`O,5YQ`O,5PQ`O1G1]O-?lQ`O1G1]O-@{Q`O1G1]O-BhQ`O1G1]O-CwQ`O1G1]O-EdQ`O1G1]O-FsQ`O,5:{O-H`Q`O,5>wO-I{Q`O1G0cO-KhQ`O1G0cO$8^QaO1G0cO+)iQaO1G0cO-LwQ`O1G1YO-NdQ`O1G1YO. sQ`O1G1[O$8^QaO1G1|O$8^QaO7+%sO+)iQaO7+%sO.#`Q`O7+%sO.${Q`O7+%sO.&[Q`O7+%}O.'wQ`O7+%}O$8^QaO7+'hO.)WQ`O7+'hO.*sQ`O<wO.@kQ`O1G1|O!%WQ`O1G1|O0aQ`O1G1|O0aQ`O7+'hO.@sQ`O7+'hO.@{QpO7+'hO.ATQpO<UO#X&PO~P>UO!o&SO!s&RO#b&RO~OPgOQ|OU^OW}O[8jOo=wOs#hOx8hOy8hO}`O!O]O!Q8nO!R}O!T8mO!U8iO!V8iO!Y8pO!c8gO!s&VO!y[O#U&WO#W_O#bhO#daO#ebO#peO$T8lO$]8kO$^8lO$aqO$z8oO${!OO$}}O%O}O%V|O'g{O~O!x'SP~PAOO!s&[O#b&[O~OT#TOz#RO!S#UO!b#VO!o!{O!v!yO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO~O!x&nO~PCqO!x'VX!}'VX#O'VX#X'VX!n'VXV'VX!q'VX#u'VX#w'VXw'VX~P&sO!y$hO#S&oO~Oo$mOs$lO~O!o&pO~O!}&sO#S;bO#U;aO!x'OP~P9yOT6gOz6eO!S6hO!b6iO!o!{O!v8qO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}'PX#X'PX~O#O&tO~PGSO!}&wO#X'OX~O#X&yO~O!}'OO!x'QP~P9yO!n'PO~PCqO!m#oa!o#oa#S#oa#p#qX&s#oa!x#oa#O#oaw#oa~OT#oaz#oa!S#oa!b#oa!v#oa!y#oa#W#oa#`#oa#a#oa#s#oa#z#oa#{#oa#|#oa#}#oa$O#oa$Q#oa$R#oa$S#oa$T#oa$U#oa$V#oa$W#oa$z#oa!}#oa#X#oa!n#oaV#oa!q#oa#u#oa#w#oa~PIpO!s'RO~O!x'UO#l'SO~O!x'VX#l'VX#p#qX#S'VX#U'VX#b'VX!o'VX#O'VXw'VX!m'VX&s'VX~O#S'YO~P*kO!m$Xa&s$Xa!x$Xa!n$Xa~PCqO!m$Ya&s$Ya!x$Ya!n$Ya~PCqO!m$Za&s$Za!x$Za!n$Za~PCqO!m$[a&s$[a!x$[a!n$[a~PCqO!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO$z#dOT$[a!S$[a!b$[a!m$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a&s$[a!x$[a!n$[a~Oz#RO~PNyO!m$_a&s$_a!x$_a!n$_a~PCqO!y!}O!}$fX#X$fX~O!}'^O#X'ZX~O#X'`O~O!s$kO#S'aO~O]'cO~O!s'eO~O!s'fO~O$l'gO~O!`'mO#S'kO#U'lO#b'jO$drO!x'XP~P0aO!^'sO!oXO!q'rO~O!s'uO!y$hO~O!y$hO#S'wO~O!y$hO#S'yO~O#u'zO!m$sX!}$sX&s$sX~O!}'{O!m'bX&s'bX~O!m#cO&s#cO~O!q(PO#O(OO~O!m$ka&s$ka!x$ka!n$ka~PCqOl(ROw(SO!o(TO!y!}O~O!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO~OT$yaz$ya!S$ya!b$ya!m$ya!v$ya#S$ya#z$ya#{$ya#|$ya#}$ya$O$ya$Q$ya$R$ya$S$ya$T$ya$U$ya$V$ya$W$ya$z$ya&s$ya!x$ya!}$ya#O$ya#X$ya!n$ya!q$yaV$ya#u$ya#w$ya~P!'WO!m$|a&s$|a!x$|a!n$|a~PCqO#W([O#`(YO#a(YO&r(ZOR&gX!o&gX#b&gX#e&gX&q&gX'f&gX~O'f(_O~P8lO!q(`O~PhO!o(cO!q(dO~O!q(`O&s(gO~PhO!a(kO~O!m(lO~P9yOZ(wOn(xO~O!s(zO~OT6gOz6eO!S6hO!b6iO!v8qO!}({O#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m'jX&s'jX~P!'WO#u)PO~O!})QO!m'`X&s'`X~Ol(RO!o(TO~Ow(SO!o)WO!q)ZO~O!m#cO!oXO&s#cO~O!o%pO!s#yO~OV)aO!})_O!m'kX&s'kX~O])cOs)cO!s#gO#peO~O!o%pO!s#gO#p)hO~OT6gOz6eO!S6hO!b6iO!v8qO!})iO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m&|X&s&|X#O&|X~P!'WOl(ROw(SO!o(TO~O!i)oO&t)oO~OT8tOz8rO!S8uO!b8vO!q)pO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#X)rO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO~P!'WO!n)rO~PCqOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x'TX!}'TX~P!'WOT'VXz'VX!S'VX!b'VX!o'VX!v'VX!y'VX#S'VX#W'VX#`'VX#a'VX#p#qX#s'VX#z'VX#{'VX#|'VX#}'VX$O'VX$Q'VX$R'VX$S'VX$T'VX$U'VX$V'VX$W'VX$z'VX~O!q)tO!x'VX!}'VX~P!5xO!x#iX!}#iX~P>UO!})vO!x'SX~O!x)xO~O$z#dOT#yiz#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi$W#yi&s#yi!x#yi!}#yi#O#yi#X#yi!n#yi!q#yiV#yi#u#yi#w#yi~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi&s#yi!x#yi!n#yi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!b#VO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi~P!'WOz#RO$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi~P!'WO_)yO~P9yO!x)|O~O#S*PO~P9yOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}#Ta#X#Ta#O#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}'Pa#X'Pa#O'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WO#S#oO#U#nO!}&WX#X&WX~P9yO!}&wO#X'Oa~O#X*SO~OT6gOz6eO!S6hO!b6iO!v8qO!}*UO#O*TO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!x'QX~P!'WO!}*UO!x'QX~O!x*WO~O!m#oi!o#oi#S#oi#p#qX&s#oi!x#oi#O#oiw#oi~OT#oiz#oi!S#oi!b#oi!v#oi!y#oi#W#oi#`#oi#a#oi#s#oi#z#oi#{#oi#|#oi#}#oi$O#oi$Q#oi$R#oi$S#oi$T#oi$U#oi$V#oi$W#oi$z#oi!}#oi#X#oi!n#oiV#oi!q#oi#u#oi#w#oi~P#*zO#l'SO!x#ka#S#ka#U#ka#b#ka!o#ka#O#kaw#ka!m#ka&s#ka~OPgOQ|OU^OW}O[3|Oo5vOs#hOx3xOy3xO}`O!O]O!Q2[O!R}O!T4SO!U3zO!V3zO!Y2^O!c3vO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4QO$]4OO$^4QO$aqO$z2]O${!OO$}}O%O}O%V|O'g{O~O#l#oa#U#oa#b#oa~PIpOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pi!S#Pi!b#Pi!m#Pi&s#Pi!x#Pi!n#Pi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#vi!S#vi!b#vi!m#vi&s#vi!x#vi!n#vi~P!'WO!m#xi&s#xi!x#xi!n#xi~PCqO!s#gO#peO!}&^X#X&^X~O!}'^O#X'Za~O!s'uO~Ow(SO!o)WO!q*fO~O!s*jO~O#S*lO#U*mO#b*kO#l'SO~O#S*lO#U*mO#b*kO$drO~P0aO#u*oO!x$cX!}$cX~O#U*mO#b*kO~O#b*pO~O#b*rO~P0aO!}*sO!x'XX~O!x*uO~O!y*wO~O!^*{O!oXO!q*zO~O!q*}O!o'ci!m'ci&s'ci~O!q+QO#O+PO~O#b$nO!m&eX!}&eX&s&eX~O!}'{O!m'ba&s'ba~OT$kiz$ki!S$ki!b$ki!m$ki!o$ki!v$ki!y$ki#S$ki#W$ki#`$ki#a$ki#s$ki#u#fa#w#fa#z$ki#{$ki#|$ki#}$ki$O$ki$Q$ki$R$ki$S$ki$T$ki$U$ki$V$ki$W$ki$z$ki&s$ki!x$ki!}$ki#O$ki#X$ki!n$ki!q$kiV$ki~OS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n+hO#b$nO$aqO$drO~P0aO!s+lO~O#W+nO#`+mO#a+mO~O!s+pO#b+pO$}+pO%T+oO~O!n+qO~PCqOc%XXd%XXh%XXj%XXf%XXg%XXe%XX~PhOc+uOd+sOP%WiQ%WiS%WiU%WiW%WiX%Wi[%Wi]%Wi^%Wi`%Wia%Wib%Wik%Wim%Wio%Wip%Wiq%Wis%Wit%Wiu%Wiv%Wix%Wiy%Wi|%Wi}%Wi!O%Wi!P%Wi!Q%Wi!R%Wi!T%Wi!U%Wi!V%Wi!W%Wi!X%Wi!Y%Wi!Z%Wi![%Wi!]%Wi!^%Wi!`%Wi!a%Wi!c%Wi!m%Wi!o%Wi!s%Wi!y%Wi#W%Wi#b%Wi#d%Wi#e%Wi#p%Wi$T%Wi$]%Wi$^%Wi$a%Wi$d%Wi$l%Wi$z%Wi${%Wi$}%Wi%O%Wi%V%Wi&p%Wi'g%Wi&t%Wi!n%Wih%Wij%Wif%Wig%WiY%Wi_%Wii%Wie%Wi~Oc+yOd+vOh+xO~OY+zO_+{O!n,OO~OY+zO_+{Oi%^X~Oi,QO~Oj,RO~O!m,TO~P9yO!m,VO~Of,WO~OT6gOV,XOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO~P!'WOg,YO~O!y,ZO~OZ(wOn(xOP%liQ%liS%liU%liW%liX%li[%li]%li^%li`%lia%lib%lik%lim%lio%lip%liq%lis%lit%liu%liv%lix%liy%li|%li}%li!O%li!P%li!Q%li!R%li!T%li!U%li!V%li!W%li!X%li!Y%li!Z%li![%li!]%li!^%li!`%li!a%li!c%li!m%li!o%li!s%li!y%li#W%li#b%li#d%li#e%li#p%li$T%li$]%li$^%li$a%li$d%li$l%li$z%li${%li$}%li%O%li%V%li&p%li'g%li&t%li!n%lic%lid%lih%lij%lif%lig%liY%li_%lii%lie%li~O#u,_O~O!}({O!m%da&s%da~O!x,bO~O!s%dO!m&dX!}&dX&s&dX~O!})QO!m'`a&s'`a~OS+^OY,hO]+aOm+^Os$aO!^+dO!_+^O!`+^O!n,kO#b$nO$aqO$drO~P0aO!o)WO~O!o%pO!s'RO~O!s#gO#peO!m&nX!}&nX&s&nX~O!})_O!m'ka&s'ka~O!s,qO~OV,rO!n%|X!}%|X~O!},tO!n'lX~O!n,vO~O!m&UX!}&UX&s&UX#O&UX~P9yO!})iO!m&|a&s&|a#O&|a~Oz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq&s!uq!x!uq!n!uq~P!'WO!n,{O~PCqOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x#ia!}#ia~P!'WO!x&YX!}&YX~PAOO!})vO!x'Sa~O#O-PO~O!}-QO!n&{X~O!n-SO~O!x-TO~OT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}#Vi#X#Vi~P!'WO!x&XX!}&XX~P9yO!}*UO!x'Qa~O!x-ZO~OT#jqz#jq!S#jq!b#jq!m#jq!v#jq#S#jq#u#jq#w#jq#z#jq#{#jq#|#jq#}#jq$O#jq$Q#jq$R#jq$S#jq$T#jq$U#jq$V#jq$W#jq$z#jq&s#jq!x#jq!}#jq#O#jq#X#jq!n#jq!q#jqV#jq~P!'WO#l#oi#U#oi#b#oi~P#*zOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pq!S#Pq!b#Pq!m#Pq&s#Pq!x#Pq!n#Pq~P!'WO#u-cO!x$ca!}$ca~O#U-eO#b-dO~O#b-fO~O#S-gO#U-eO#b-dO#l'SO~O#b-iO#l'SO~O#u-jO!x$ha!}$ha~O!`'mO#S'kO#U'lO#b'jO$drO!x&_X!}&_X~P0aO!}*sO!x'Xa~O!oXO#l'SO~O#S-oO#b-nO!x'[P~O!oXO!q-qO~O!q-tO!o'cq!m'cq&s'cq~O!^-vO!oXO!q-qO~O!q-zO#O-yO~OT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m$si!}$si&s$si~P!'WO!m$jq&s$jq!x$jq!n$jq~PCqO#O-yO#l'SO~O!}-{Ow']X!o']X!m']X&s']X~O#b$nO#l'SO~OS+^O].QOm+^Os$aO!_+^O!`+^O#b$nO$aqO$drO~P0aOS+^O].QOm+^Os$aO!_+^O!`+^O#b$nO$aqO~P0aOS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n.YO#b$nO$aqO$drO~P0aO!s.]O~O!s.^O#b.^O$}.^O%T+oO~O$}._O~O#X.`O~Oc%Xad%Xah%Xaj%Xaf%Xag%Xae%Xa~PhOc.cOd+sOP%WqQ%WqS%WqU%WqW%WqX%Wq[%Wq]%Wq^%Wq`%Wqa%Wqb%Wqk%Wqm%Wqo%Wqp%Wqq%Wqs%Wqt%Wqu%Wqv%Wqx%Wqy%Wq|%Wq}%Wq!O%Wq!P%Wq!Q%Wq!R%Wq!T%Wq!U%Wq!V%Wq!W%Wq!X%Wq!Y%Wq!Z%Wq![%Wq!]%Wq!^%Wq!`%Wq!a%Wq!c%Wq!m%Wq!o%Wq!s%Wq!y%Wq#W%Wq#b%Wq#d%Wq#e%Wq#p%Wq$T%Wq$]%Wq$^%Wq$a%Wq$d%Wq$l%Wq$z%Wq${%Wq$}%Wq%O%Wq%V%Wq&p%Wq'g%Wq&t%Wq!n%Wqh%Wqj%Wqf%Wqg%WqY%Wq_%Wqi%Wqe%Wq~Oc.hOd+vOh.gO~O!q(`O~OP6ZOQ|OU^OW}O[:dOo>POs#hOx:bOy:bO}`O!O]O!Q:iO!R}O!T:hO!U:cO!V:cO!Y:mO!c8eO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:fO$]:eO$^:fO$aqO$z:kO${!OO$}}O%O}O%V|O'g{O~O!m.kO!q.kO~OY+zO_+{O!n.mO~OY+zO_+{Oi%^a~O!x.qO~P>UO!m.sO~O!m.sO~P9yOQ|OW}O!R}O$}}O%O}O%V|O'g{O~OT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m&ka!}&ka&s&ka~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m$qi!}$qi&s$qi~P!'WOS+^OY.}O].QOm+^Os$aO!_+^O!`+^O#b$nO$aqO$drO~P0aO!s/OO~OS+^OY,hO]+aOm+^Os$aO!^+dO!_+^O!`+^O!n/QO#b$nO$aqO$drO~P0aOw(SO!o)WO#l'SO~OV/TO!m&na!}&na&s&na~O!})_O!m'ki&s'ki~O!s/VO~OV/WO!n%|a!}%|a~O]/YOs/YO!s#gO#peO!n&oX!}&oX~O!},tO!n'la~OT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m&Ua!}&Ua&s&Ua#O&Ua~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy&s!uy!x!uy!n!uy~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x#hi!}#hi~P!'WO_)yO!n&VX!}&VX~P9yO!}-QO!n&{a~OT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}#Vq#X#Vq~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x#[i!}#[i~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#O/aO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!x&Xa!}&Xa~P!'WO#u/gO!x$ci!}$ci~O#b/hO~O#U/jO#b/iO~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x$ci!}$ci~P!'WO#u/kO!x$hi!}$hi~O!}/mO!x'[X~O#b/oO~O!x/pO~O!oXO!q/sO~O#l'SO!o'cy!m'cy&s'cy~O!m$jy&s$jy!x$jy!n$jy~PCqO#O/vO#l'SO~O!s#gO#peOw&aX!o&aX!}&aX!m&aX&s&aX~O!}-{Ow']a!o']a!m']a&s']a~OS+^O]0OOm+^Os$aO!_+^O!`+^O#b$nO$aqO~P0aO!m#cO!o0TO&s#cO~O#X0WO~Oh0]O~OT:rOz:nO!S:tO!b:vO!m0^O!q0^O!v=kO#S#QO#z:pO#{:xO#|:zO#}:|O$O;OO$Q;SO$R;UO$S;WO$T;YO$U;[O$V;^O$W;^O$z#dO~P!'WOY%]a_%]a!n%]ai%]a~PhO!x0`O~O!x0`O~P>UO!m0bO~OT6gOz6eO!S6hO!b6iO!v8qO!x0dO#O0cO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO~P!'WO!x0dO~O!x0eO#b0fO#l'SO~O!x0gO~O!s0hO~O!m#cO#u0jO&s#cO~O!s0kO~O!})_O!m'kq&s'kq~O!s0lO~OV0mO!n%}X!}%}X~OT:rOz:nO!S:tO!b:vO!v=kO#S#QO#z:pO#{:xO#|:zO#}:|O$O;OO$Q;SO$R;UO$S;WO$T;YO$U;[O$V;^O$W;^O$z#dO!n!|i!}!|i~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x$cq!}$cq~P!'WO#u0tO!x$cq!}$cq~O#b0uO~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x$hq!}$hq~P!'WO#S0xO#b0wO!x&`X!}&`X~O!}/mO!x'[a~O#l'SO!o'c!R!m'c!R&s'c!R~O!oXO!q0}O~O!m$j!R&s$j!R!x$j!R!n$j!R~PCqO#O1PO#l'SO~OP6ZOU^O[9UOo>QOs#hOx9UOy9UO}`O!O]O!Q:jO!T9UO!U9UO!V9UO!Y9UO!c8fO!n1[O!s1WO!y[O#W_O#bhO#daO#ebO#peO$T:gO$]9UO$^:gO$aqO$z:lO${!OO~P$;pOh1]O~OY%[i_%[i!n%[ii%[i~PhOY%]i_%]i!n%]ii%]i~PhO!x1`O~O!x1`O~P>UO!x1cO~O!m#cO#u1gO&s#cO~O$}1hO%V1hO~O!s1iO~OV1jO!n%}a!}%}a~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x#]i!}#]i~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x$cy!}$cy~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x$hy!}$hy~P!'WO#b1lO~O!}/mO!x'[i~O!m$j!Z&s$j!Z!x$j!Z!n$j!Z~PCqOT:sOz:oO!S:uO!b:wO!v=lO#S#QO#z:qO#{:yO#|:{O#}:}O$O;PO$Q;TO$R;VO$S;XO$T;ZO$U;]O$V;_O$W;_O$z#dO~P!'WOV1sO{1rO~P!5xOV1sO{1rOT&}Xz&}X!S&}X!b&}X!o&}X!v&}X!y&}X#S&}X#W&}X#`&}X#a&}X#s&}X#u&}X#w&}X#z&}X#{&}X#|&}X#}&}X$O&}X$Q&}X$R&}X$S&}X$T&}X$U&}X$V&}X$W&}X$z&}X~OP6ZOU^O[9UOo>QOs#hOx9UOy9UO}`O!O]O!Q:jO!T9UO!U9UO!V9UO!Y9UO!c8fO!n1vO!s1WO!y[O#W_O#bhO#daO#ebO#peO$T:gO$]9UO$^:gO$aqO$z:lO${!OO~P$;pOY%[q_%[q!n%[qi%[q~PhO!x1xO~O!x%gi~PCqOe1yO~O$}1zO%V1zO~O!s1|O~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x$c!R!}$c!R~P!'WO!m$j!c&s$j!c!x$j!c!n$j!c~PCqO!s2OO~O!`2QO!s2PO~O!s2TO!m$xi&s$xi~O!s'WO~O!s*]O~OT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$ka#u$ka#w$ka&s$ka!x$ka!n$ka!q$ka#X$ka!}$ka~P!'WO#S2ZO~P*kO$l$tO~P#.YOT6gOz6eO!S6hO!b6iO!v8qO#O2YO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m'PX&s'PX!x'PX!n'PX~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#O3sO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}'PX#X'PX#u'PX#w'PX!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~P!'WO#S3bO~P#.YOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$Xa#u$Xa#w$Xa&s$Xa!x$Xa!n$Xa!q$Xa#X$Xa!}$Xa~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$Ya#u$Ya#w$Ya&s$Ya!x$Ya!n$Ya!q$Ya#X$Ya!}$Ya~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$Za#u$Za#w$Za&s$Za!x$Za!n$Za!q$Za#X$Za!}$Za~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$[a#u$[a#w$[a&s$[a!x$[a!n$[a!q$[a#X$[a!}$[a~P!'WOz2_O#u$[a#w$[a!q$[a#X$[a!}$[a~PNyOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$_a#u$_a#w$_a&s$_a!x$_a!n$_a!q$_a#X$_a!}$_a~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$|a#u$|a#w$|a&s$|a!x$|a!n$|a!q$|a#X$|a!}$|a~P!'WOz2_O#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2aOz2_O!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!S#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2aOz2_O!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O#S#QO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O#S#QO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O#S#QO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O#S#QO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O$T2lO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O$S2kO$T2lO$V2nO$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2_O$W2nO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m#Ta#u#Ta#w#Ta&s#Ta!x#Ta!n#Ta!q#Ta#X#Ta!}#Ta~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m'Pa#u'Pa#w'Pa&s'Pa!x'Pa!n'Pa!q'Pa#X'Pa!}'Pa~P!'WOz2_O!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#Pi!S#Pi!b#Pi!m#Pi#u#Pi#w#Pi&s#Pi!x#Pi!n#Pi!q#Pi#X#Pi!}#Pi~P!'WOz2_O!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#vi!S#vi!b#vi!m#vi#u#vi#w#vi&s#vi!x#vi!n#vi!q#vi#X#vi!}#vi~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m#xi#u#xi#w#xi&s#xi!x#xi!n#xi!q#xi#X#xi!}#xi~P!'WOz2_O#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq#u!uq#w!uq&s!uq!x!uq!n!uq!q!uq#X!uq!}!uq~P!'WOz2_O!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT#Pq!S#Pq!b#Pq!m#Pq#u#Pq#w#Pq&s#Pq!x#Pq!n#Pq!q#Pq#X#Pq!}#Pq~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$jq#u$jq#w$jq&s$jq!x$jq!n$jq!q$jq#X$jq!}$jq~P!'WOz2_O#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy#u!uy#w!uy&s!uy!x!uy!n!uy!q!uy#X!uy!}!uy~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$jy#u$jy#w$jy&s$jy!x$jy!n$jy!q$jy#X$jy!}$jy~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$j!R#u$j!R#w$j!R&s$j!R!x$j!R!n$j!R!q$j!R#X$j!R!}$j!R~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$j!Z#u$j!Z#w$j!Z&s$j!Z!x$j!Z!n$j!Z!q$j!Z#X$j!Z!}$j!Z~P!'WOT2aOz2_O!S2bO!b2cO!v4UO#S#QO#z2`O#{2dO#|2eO#}2fO$O2gO$Q2iO$R2jO$S2kO$T2lO$U2mO$V2nO$W2nO$z#dO!m$j!c#u$j!c#w$j!c&s$j!c!x$j!c!n$j!c!q$j!c#X$j!c!}$j!c~P!'WOP6ZOU^O[3}Oo8[Os#hOx3yOy3yO}`O!O]O!Q4_O!T4TO!U3{O!V3{O!Y4aO!c3wO!s#gO!y[O#S3tO#W_O#bhO#daO#ebO#peO$T4RO$]4PO$^4RO$aqO$z4`O${!OO~P$;pOP6ZOU^O[3}Oo8[Os#hOx3yOy3yO}`O!O]O!Q4_O!T4TO!U3{O!V3{O!Y4aO!c3wO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4RO$]4PO$^4RO$aqO$z4`O${!OO~P$;pO#u2sO#w2tO!q&zX#X&zX!}&zX~P0rOP6ZOU^O[3}Oo8[Or2uOs#hOx3yOy3yO}`O!O]O!Q4_O!T4TO!U3{O!V3{O!Y4aO!c3wO!s#gO!y[O#S2rO#U2qO#W_O#bhO#daO#ebO#peO$T4RO$]4PO$^4RO$aqO$z4`O${!OOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!v#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX&s#xX!x#xX!n#xX!q#xX#X#xX!}#xX~P$;pOP6ZOU^O[3}Oo8[Or4vOs#hOx3yOy3yO}`O!O]O!Q4_O!T4TO!U3{O!V3{O!Y4aO!c3wO!s#gO!y[O#S4sO#U4rO#W_O#bhO#daO#ebO#peO$T4RO$]4PO$^4RO$aqO$z4`O${!OOT#xXz#xX!S#xX!b#xX!o#xX!v#xX!}#xX#O#xX#X#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!m#xX&s#xX!x#xX!n#xXV#xX!q#xX~P$;pO!q2}O~P>UO!q5{O#O3eO~OT8tOz8rO!S8uO!b8vO!q3fO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO~P!'WO!q5|O#O3iO~O!q5}O#O3mO~O#O3mO#l'SO~O#O3nO#l'SO~O#O3qO#l'SO~OP6ZOU^O[3}Oo8[Os#hOx3yOy3yO}`O!O]O!Q4_O!T4TO!U3{O!V3{O!Y4aO!c3wO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4RO$]4PO$^4RO$aqO$l$tO$z4`O${!OO~P$;pOP6ZOU^O[3}Oo8[Os#hOx3yOy3yO}`O!O]O!Q4_O!T4TO!U3{O!V3{O!Y4aO!c3wO!s#gO!y[O#S5cO#W_O#bhO#daO#ebO#peO$T4RO$]4PO$^4RO$aqO$z4`O${!OO~P$;pOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$Xa#O$Xa#X$Xa#u$Xa#w$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$Ya#O$Ya#X$Ya#u$Ya#w$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$Za#O$Za#X$Za#u$Za#w$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$[a#O$[a#X$[a#u$[a#w$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz4bO!}$[a#O$[a#X$[a#u$[a#w$[aV$[a!q$[a~PNyOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$_a#O$_a#X$_a#u$_a#w$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$|a#O$|a#X$|a#u$|a#w$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOz4bO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4dOz4bO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!S#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4dOz4bO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO#S#QO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO#S#QO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO#S#QO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO#S#QO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO$T4oO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO$S4nO$T4oO$V4qO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4bO$W4qO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}#Ta#O#Ta#X#Ta#u#Ta#w#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}'Pa#O'Pa#X'Pa#u'Pa#w'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WOz4bO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi#u#Pi#w#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz4bO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi#u#vi#w#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}#xi#O#xi#X#xi#u#xi#w#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WOz4bO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq#u!uq#w!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOz4bO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq#u#Pq#w#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$jq#O$jq#X$jq#u$jq#w$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOz4bO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy#u!uy#w!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$jy#O$jy#X$jy#u$jy#w$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$j!R#O$j!R#X$j!R#u$j!R#w$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$j!Z#O$j!Z#X$j!Z#u$j!Z#w$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$j!c#O$j!c#X$j!c#u$j!c#w$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S5uO~P#.YO!y$hO#S5yO~O!x4XO#l'SO~O!y$hO#S5zO~OT4dOz4bO!S4eO!b4fO!v6RO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!}$ka#O$ka#X$ka#u$ka#w$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT4dOz4bO!S4eO!b4fO!v6RO#O5tO#S#QO#z4cO#{4gO#|4hO#}4iO$O4jO$Q4lO$R4mO$S4nO$T4oO$U4pO$V4qO$W4qO$z#dO!m'PX#u'PX#w'PX&s'PX!x'PX!n'PX!q'PX#X'PX!}'PX~P!'WO#u4tO#w4uO!}&zX#O&zX#X&zXV&zX!q&zX~P0rO!q5OO~P>UO!q8`O#O5fO~OT8tOz8rO!S8uO!b8vO!q5gO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO~P!'WO!q8aO#O5jO~O!q8bO#O5nO~O#O5nO#l'SO~O#O5oO#l'SO~O#O5rO#l'SO~O$l$tO~P9yOo5xOs$lO~O#S7mO~P9yOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$Xa#O$Xa#X$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$Ya#O$Ya#X$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$Za#O$Za#X$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$[a#O$[a#X$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz6eO!}$[a#O$[a#X$[aV$[a!q$[a~PNyOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$_a#O$_a#X$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$ka#O$ka#X$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$|a#O$|a#X$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOT8tOz8rO!S8uO!b8vO!v=XO!}7qO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x'jX~P!'WOT8tOz8rO!S8uO!b8vO!v=XO!}7sO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x&|X~P!'WOz6eO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6gOz6eO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!S#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6gOz6eO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO#S#QO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO#S#QO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO#S#QO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO#S#QO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO$T6rO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO$S6qO$T6rO$V6tO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6eO$W6tO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WO#S7xO~P>UO!m#Ta&s#Ta!x#Ta!n#Ta~PCqO!m'Pa&s'Pa!x'Pa!n'Pa~PCqO#S;bO#U;aO!x&WX!}&WX~P9yO!}7jO!x'Oa~Oz6eO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz6eO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}#xi#O#xi#X#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WO!}7qO!x%da~O!x&UX!}&UX~P>UO!}7sO!x&|a~Oz6eO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x#Vi!}#Vi~P!'WOz6eO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$jq#O$jq#X$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x&ka!}&ka~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x&Ua!}&Ua~P!'WOz6eO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!x#Vq!}#Vq~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$jy#O$jy#X$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$j!R#O$j!R#X$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$j!Z#O$j!Z#X$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!}$j!c#O$j!c#X$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S8YO~P9yO#O8XO!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~PGSO!y$hO#S8^O~O!y$hO#S8_O~O#u6xO#w6yO!}&zX#O&zX#X&zXV&zX!q&zX~P0rOr6zO#S#oO#U#nO!}#xX#O#xX#X#xXV#xX!q#xX~P2yOr;gO#S9VO#U9TOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!n#xX!}#xX~P9yOr9UO#S9UO#U9UOT#xXz#xX!S#xX!b#xX!o#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX~P9yOr9ZO#S;bO#U;aOT#xXz#xX!S#xX!b#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX#X#xX!x#xX!}#xX~P9yO$l$tO~P>UO!q7VO~P>UOT6gOz6eO!S6hO!b6iO!v8qO#O7gO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!x'PX!}'PX~P!'WOP6ZOU^O[9UOo>QOs#hOx9UOy9UO}`O!O]O!Q:jO!T9UO!U9UO!V9UO!Y9UO!c8fO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:gO$]9UO$^:gO$aqO$z:lO${!OO~P$;pO!}7jO!x'OX~O#S9wO~P>UOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$Xa#X$Xa!x$Xa!}$Xa~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$Ya#X$Ya!x$Ya!}$Ya~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$Za#X$Za!x$Za!}$Za~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$[a#X$[a!x$[a!}$[a~P!'WOz8rO$z#dOT$[a!S$[a!b$[a!q$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a#X$[a!x$[a!}$[a~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$_a#X$_a!x$_a!}$_a~P!'WO!q=bO#O7pO~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$ka#X$ka!x$ka!}$ka~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$|a#X$|a!x$|a!}$|a~P!'WOT8tOz8rO!S8uO!b8vO!q7uO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO~P!'WOz8rO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#X#yi!x#yi!}#yi~P!'WOz8rO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8tOz8rO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!S#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8tOz8rO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOz8rO#S#QO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#X#yi!x#yi!}#yi~P!'WOz8rO#S#QO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#X#yi!x#yi!}#yi~P!'WOz8rO#S#QO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi#X#yi!x#yi!}#yi~P!'WOz8rO#S#QO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8rO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8rO$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi#X#yi!x#yi!}#yi~P!'WOz8rO$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi#X#yi!x#yi!}#yi~P!'WOz8rO$T9PO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8rO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8rO$S9OO$T9PO$V9RO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8rO$W9RO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi#X#yi!x#yi!}#yi~P!'WOz8rO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#Pi!S#Pi!b#Pi!q#Pi#X#Pi!x#Pi!}#Pi~P!'WOz8rO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#vi!S#vi!b#vi!q#vi#X#vi!x#vi!}#vi~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q#xi#X#xi!x#xi!}#xi~P!'WO!q=cO#O7zO~Oz8rO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT!uq!S!uq!b!uq!q!uq!v!uq#X!uq!x!uq!}!uq~P!'WOz8rO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT#Pq!S#Pq!b#Pq!q#Pq#X#Pq!x#Pq!}#Pq~P!'WO!q=gO#O8RO~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$jq#X$jq!x$jq!}$jq~P!'WO#O8RO#l'SO~Oz8rO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dOT!uy!S!uy!b!uy!q!uy!v!uy#X!uy!x!uy!}!uy~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$jy#X$jy!x$jy!}$jy~P!'WO#O8SO#l'SO~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$j!R#X$j!R!x$j!R!}$j!R~P!'WO#O8VO#l'SO~OT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$j!Z#X$j!Z!x$j!Z!}$j!Z~P!'WOT8tOz8rO!S8uO!b8vO!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO!q$j!c#X$j!c!x$j!c!}$j!c~P!'WO#S:`O~P>UO#O:_O!q'PX!x'PX~PGSO$l$tO~P$8^OP6ZOU^O[9UOo>QOs#hOx9UOy9UO}`O!O]O!Q:jO!T9UO!U9UO!V9UO!Y9UO!c8fO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:gO$]9UO$^:gO$aqO$l$tO$z:lO${!OO~P$;pOo8]Os$lO~O#SQOs#hOx9UOy9UO}`O!O]O!Q:jO!T9UO!U9UO!V9UO!Y9UO!c8fO!s#gO!y[O#SQOs#hOx9UOy9UO}`O!O]O!Q:jO!T9UO!U9UO!V9UO!Y9UO!c8fO!s#gO!y[O#S=SO#W_O#bhO#daO#ebO#peO$T:gO$]9UO$^:gO$aqO$z:lO${!OO~P$;pOT6gOz6eO!S6hO!b6iO!v8qO#O=QO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO~P!'WOT6gOz6eO!S6hO!b6iO!v8qO#O=PO#S#QO#z6fO#{6jO#|6kO#}6lO$O6mO$Q6oO$R6pO$S6qO$T6rO$U6sO$V6tO$W6tO$z#dO!m'PX!q'PX!n'PX!}'PX~P!'WOT&zXz&zX!S&zX!b&zX!o&zX!q&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX!}&zX~O#u9XO#w9YO#X&zX!x&zX~P.9XO!y$hO#S=[O~O!q9fO~P>UO!y$hO#S=aO~O!q=|O#O9{O~OT8tOz8rO!S8uO!b8vO!q9|O!v=XO#S#QO#z8sO#{8wO#|8xO#}8yO$O8zO$Q8|O$R8}O$S9OO$T9PO$U9QO$V9RO$W9RO$z#dO~P!'WOT:rOz:nO!S:tO!b:vO!v=kO#S#QO#z:pO#{:xO#|:zO#}:|O$O;OO$Q;SO$R;UO$S;WO$T;YO$U;[O$V;^O$W;^O$z#dO!m#Ta!q#Ta!n#Ta!}#Ta~P!'WOT:rOz:nO!S:tO!b:vO!v=kO#S#QO#z:pO#{:xO#|:zO#}:|O$O;OO$Q;SO$R;UO$S;WO$T;YO$U;[O$V;^O$W;^O$z#dO!m'Pa!q'Pa!n'Pa!}'Pa~P!'WO!q=}O#O:PO~O!q>OO#O:WO~O#O:WO#l'SO~O#O:XO#l'SO~O#O:]O#l'SO~O#u;cO#w;eO!m&zX!n&zX~P.9XO#u;dO#w;fOT&zXz&zX!S&zX!b&zX!o&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX~O!q;rO~P>UO!q;sO~P>UO!q>VO#OWO#O9UO~OT8tOz8rO!S8uO!b8vO!qXO#OYO#OSO~O!y$hO#S>TO~O!y$hO#S>UO~Oo=yOs$lO~Oo>ROs$lO~Oo>QOs$lO~O%O$U$}$d!d$V#b%V#e'g!s#d~",goto:"%'X'mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP'nP'uPP'{(OPPP(hP(OP(O*ZP*ZPP2W:j:mPP*Z:sBpPBsPBsPP:sCSCVCZ:s:sPPPC^PP:sK^!$S!$S:s!$WP!$W!$W!%XP!.c!7yP!?xP*ZP*Z*ZPPPPP!?{PPPPPPP*Z*Z*Z*ZPP*Z*ZP!Ef!G[P!G`!HS!G[!G[!HY*Z*ZP!Hc!Hu!Ik!Ji!Jo!Ji!Jz!Ji!Ji!K]!K`!K`*ZPP*ZPP!Kd#%b#%b#%fP#%lP(O#%p(O#&Y#&]#&]#&c(O#&f(O(O#&l#&o(O#&x#&{(O(O(O(O(O#'O(O(O(O(O(O(O(O(O(O#'R#'e(O(O#'i#'y#'|(O(OP#(P#(W#(^#(y#)T#)Z#)e#)l#)r#*n#4f#5b#5h#5n#5x#6O#6U#6d#6j#6p#6v#6|#7S#7Y#7d#7n#7t#7z#8UPPPPPPPP#8[#8`#9U#NV#NY#Nd$(m$(y$)`$)f$)i$)l$)r$,c$6T$>j$>m$>s$>v$>y$?S$?[$?f$?x$Bx$C`$DZ$LZPP%&X%&]%&i%'O%'UQ!nQT!qV!rQUOR%x!mRVO}!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.a.c.k0^0_0g1_|!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.a.c.k0^0_0g1_Q%^!ZQ%g!aQ%l!eQ'd$dQ'q$iQ)[%kQ*y'tQ,](xU-m*v*x+OQ.V+cQ.z,[S/r-r-sQ0R.RS0{/q/uQ1T0PQ1m0|R1}1n0u!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-P-Q-c-j-y.a.c.k.s/a/g/k/v0T0^0_0b0c0g0t1P1Z1_2Y2Z2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2q2r2s2t2u2}3b3e3f3i3m3n3q3s3t3v3w3x3y3z3{3|3}4O4P4Q4R4S4T4U4X4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v5O5c5f5g5j5n5o5r5t5u6R6[6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6v6w6x6y6z7V7g7j7m7p7q7s7u7x7z8R8S8V8X8Y8d8e8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9T9U9V9X9Y9Z9f9w9{9|:P:W:X:]:_:`:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;a;b;c;d;e;f;g;r;sO>V>W>X>Y3afPVX[_bgjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#}$R$S$U$h$y$}%P%R%S%T%U%c%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)W)Z)_)c)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,g,j,t-P-Q-c-j-q-t-y-z-{.P.a.c.k.s/Y/a/g/k/s/v0T0^0_0b0c0g0t0}1P1Z1_2Y2Z2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2q2r2s2t2u2}3b3e3f3i3m3n3q3s3t3v3w3x3y3z3{3|3}4O4P4Q4R4S4T4U4X4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v5O5c5f5g5j5n5o5r5t5u5{5|5}6R6Z6[6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6v6w6x6y6z7V7g7j7m7p7q7s7u7x7z8R8S8V8X8Y8`8a8b8d8e8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9T9U9V9X9Y9Z9f9w9{9|:P:W:X:]:_:`:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;a;b;c;d;e;f;g;r;sO>V>W>X>Y3ycPVX[_bdegjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#{#}$R$S$U$h$y$}%P%R%S%T%U%c%m%n%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)W)Z)^)_)c)g)h)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,g,j,t,w-P-Q-c-j-q-t-y-z-{.P.a.c.k.s/Y/a/g/k/s/v0T0^0_0b0c0g0t0}1P1Z1_2U2V2W2Y2Z2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2q2r2s2t2u2}3b3e3f3i3m3n3q3s3t3v3w3x3y3z3{3|3}4O4P4Q4R4S4T4U4X4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v5O5c5f5g5j5n5o5r5t5u5{5|5}6R6Z6[6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6v6w6x6y6z7V7g7j7m7p7q7s7u7x7z8R8S8V8X8Y8`8a8b8d8e8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9T9U9V9X9Y9Z9f9w9{9|:P:W:X:]:_:`:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;a;b;c;d;e;f;g;r;sO>V>W>X>Y0phPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-P-Q-c-j-y.a.c.k.s/a/g/k/v0^0_0b0c0g0t1P1_2Y2Z2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2q2r2s2t2u2}3b3e3f3i3m3n3q3s3t3v3w3x3y3z3{3|3}4O4P4Q4R4S4T4U4X4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v5O5c5f5g5j5n5o5r5t5u6R6[6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6v6w6x6y6z7V7g7j7m7p7q7s7u7x7z8R8S8V8X8Y8d8e8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9T9U9V9X9Y9Z9f9w9{9|:P:W:X:]:_:`:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;a;b;c;d;e;f;g;r;sPS=n>Q>TS=q>R>SR=r>UT'n$h*s!csPVXt!S!j!r!s!w$h$}%P%S%U'i(T(`)W*s+]+g+r+u,g,j.a.c.k0^0_0g1_Q$^rR*`'^Q*x'sQ-s*{R/u-vQ(W$tQ)U%hQ)n%vQ*i'fQ+k(XR-b*jQ(V$tQ)Y%jQ)m%vQ*e'eS*h'f)nS+j(W(XS-a*i*jQ.[+kQ/R,lQ/c-_R/e-bQ(U$tQ)T%hQ)V%iQ)l%vU*g'f)m)nU+i(V(W(XQ,f)UU-`*h*i*jS.Z+j+kS/d-a-bQ0V.[R0r/eX+e(T)W+g,j[%e!_$b'c+a.Q0OR,d)Qh$ov(T)W+[+]+`+g,g,j.O.P/}R+T'{R0U.WT1Y0T1Z0w|PVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X,_-P-Q-c-j-y.a.c.k.s/a/g/k/v0T0^0_0b0c0g0t1P1Z1_2Y2Z2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2q2r2s2t2u2}3b3e3f3i3m3n3q3s3t3v3w3x3y3z3{3|3}4O4P4Q4R4S4T4U4X4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v5O5c5f5g5j5n5o5r5t5u6R6[6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6v6w6x6y6z7V7g7j7m7p7q7s7u7x7z8R8S8V8X8Y8d8e8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9T9U9V9X9Y9Z9f9w9{9|:P:W:X:]:_:`:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;a;b;c;d;e;f;g;r;sO>V>W>X>YR2W2V|tPVX!S!j!r!s!w$}%P%S%U(`+r+u.a.c.k0^0_0g1_W$`t'i+],gS'i$h*sS+](T+gT,g)W,jQ'_$^R*a'_Q*t'oR-l*tQ/n-nS0y/n0zR0z/oQ-|+XR/z-|Q+g(TR.X+gW+`(T)W+g,jS.P+],gT.S+`.PQ)R%eR,e)RQ'|$oR+U'|Q1Z0TR1u1ZQ${{R(^${Q+t(aR.b+tQ+w(bR.f+wQ+}(cQ,P(dT.l+},PQ(|%`S,a(|7rR7r7TQ(y%^R,^(yQ,j)WR/P,jQ)`%oS,p)`/UR/U,qQ,u)dR/[,uT!uV!rj!iPVX!j!r!s!w(`+r.k0^0_1_Q%Q!SQ(a$}W(h%P%S%U0gQ.d+uQ0X.aR0Y.c|ZPVX!S!j!r!s!w$}%P%S%U(`+r+u.a.c.k0^0_0g1_Q#f[U#m_#s&wQ#wbQ$VkQ$WlQ$XmQ$YnQ$ZoQ$[pQ$sx^$uy2]4`6c8o:k:lQ$vzQ%W!WQ%Y!XQ%[!YW%`!]%R(l,VU%s!g&p-QQ%|!yQ&O!zQ&Q!{S&U!})v^&^#R2_4b6e8r:n:oQ&_#SQ&`#TQ&a#UQ&b#VQ&c#WQ&d#XQ&e#YQ&f#ZQ&g#[Q&h#]Q&i#^Q&j#_Q&k#`Q&l#aQ&m#bQ&u#nQ&v#oS&{#t'OQ'X$RQ'Z$SQ'[$UQ(]$yQ(p%TQ)q%}Q)s&SQ)u&WQ*O&tS*['U4XQ*^'Y^*_2Y3s5t8X:_=P=QQ+S'zQ+V(OQ,`({Q,c)PQ,x)iQ,z)pQ,|)tQ-U*PQ-V*TQ-W*U^-[2Z3t5u8Y:`=R=SQ-h*oQ-w+PQ.j+zQ.v,XQ/^-PQ/f-cQ/l-jQ/w-yQ0p/aQ0s/gQ0v/kQ1O/vU1V0T1Z9UQ1b0cQ1k0tQ1o1PQ2X2[Q2ojQ2p3wQ2v3xQ2w3zQ2x3|Q2y4OQ2z4QQ2{4SQ2|2^Q3O2`Q3P2aQ3Q2bQ3R2cQ3S2dQ3T2eQ3U2fQ3V2gQ3W2hQ3X2iQ3Y2jQ3Z2kQ3[2lQ3]2mQ3^2nQ3_2qQ3`2rQ3a2sQ3c2tQ3d2uQ3g2}Q3h3bQ3j3eQ3k3fQ3l3iQ3o3mQ3p3nQ3r3qQ4W4UQ4w3yQ4x3{Q4y3}Q4z4PQ4{4RQ4|4TQ4}4aQ5P4cQ5Q4dQ5R4eQ5S4fQ5T4gQ5U4hQ5V4iQ5W4jQ5X4kQ5Y4lQ5Z4mQ5[4nQ5]4oQ5^4pQ5_4qQ5`4rQ5a4sQ5b4tQ5d4uQ5e4vQ5h5OQ5i5cQ5k5fQ5l5gQ5m5jQ5p5nQ5q5oQ5s5rQ6O4_Q6P3vQ6T6RQ6{6[Q6|6]Q6}6^Q7O6_Q7P6`Q7Q6aQ7R6bQ7S6dU7T,T.s0bQ7U%cQ7W6fQ7X6gQ7Y6hQ7Z6iQ7[6jQ7]6kQ7^6lQ7_6mQ7`6nQ7a6oQ7b6pQ7c6qQ7d6rQ7e6sQ7f6tQ7h6vQ7i6wQ7l6xQ7n6yQ7o6zQ7v7VQ7w7gQ7y7mQ7{7pQ7|7qQ7}7sQ8O7uQ8P7xQ8Q7zQ8T8RQ8U8SQ8W8VQ8Z8dU9S#k&s7jQ9[8hQ9]8iQ9^8jQ9_8kQ9`8lQ9a8mQ9c8nQ9d8pQ9e8qQ9g8sQ9h8tQ9i8uQ9j8vQ9k8wQ9l8xQ9m8yQ9n8zQ9o8{Q9p8|Q9q8}Q9r9OQ9s9PQ9t9QQ9u9RQ9v9XQ9x9YQ9y9ZQ9}9fQ:O9wQ:R9{Q:T9|Q:U:PQ:Y:WQ:[:XQ:^:]Q:a8gQ;h:bQ;i:cQ;j:dQ;k:eQ;l:fQ;m:gQ;n:hQ;o:iQ;p:jQ;q:mQ;t:pQ;u:qQ;v:rQ;w:sQ;x:tQ;y:uQ;z:vQ;{:wQ;|:xQ;}:yQOQ=s>VQ=t>WQ=u>XR=v>Y0t!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-P-Q-c-j-y.a.c.k.s/a/g/k/v0T0^0_0b0c0g0t1P1Z1_2Y2Z2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2q2r2s2t2u2}3b3e3f3i3m3n3q3s3t3v3w3x3y3z3{3|3}4O4P4Q4R4S4T4U4X4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v5O5c5f5g5j5n5o5r5t5u6R6[6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6v6w6x6y6z7V7g7j7m7p7q7s7u7x7z8R8S8V8X8Y8d8e8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9T9U9V9X9Y9Z9f9w9{9|:P:W:X:]:_:`:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;a;b;c;d;e;f;g;r;sO>V>W>X>YS$]r'^Q%k!eS%o!f%rQ)b%pU+X(R(S+dQ,o)_Q,s)cQ/X,tQ/y-{R0n/Y|vPVX!S!j!r!s!w$}%P%S%U(`+r+u.a.c.k0^0_0g1_#U#i[bklmnopxyz!W!X!Y!{#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b$R$S$U$y%}&S'Y(O)p+P-y/v0c1P2Y2Z6v6w`+^(T)W+]+`+g,g,j.P!t6u'U2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2q2r2s2t2u2}3b3e3f3i3m3n3q3x3z3|4O4Q4S5t5u!x;`3s3t3v3w3y3{3}4P4R4T4X4_4`4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v5O5c5f5g5j5n5o5r$O=x_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-Q6[6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6x6y6z7V7j7m7p7u7z8R8S8V8X8Y8d8e8f8g#|>Z!y!z!}%c&W)t)v*T*o,T-c-j.s/a/g/k0b0t4U6R7g7q7s7x8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9X9Y9Z9f9w9{9|:P:W:X:]:_:`;a;b=X=k=l!v>[+z-P9T9V:b:c:d:e:f:h:i:k:m:n:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;c;e;g;r]0T1Z9U:g:j:l:o:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;d;f;s AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["isolate",-4,66,67,70,191,""],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[FO],skippedNodes:[0],repeatNodeCount:29,tokenData:"!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!V<%lO8VR9WV&wP%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%VQQ:aRO;'S9m;'S;=`:j;=`O9mQ:oW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l9m<%lO9mQ;[P;=`<%l9mR;fV&wP%VQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRV<%l~8V~O8V~~%fR=OW&wPOY8VYZ9PZ!^8V!^!_;{!_;'S8V;'S;=`=h;=`<%l9m<%lO8VR=mW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l8V<%lO9mR>YP;=`<%l8VR>dV!yQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV?QV!xU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR?nY&wP$VQOY$zYZ%fZz$zz{@^{!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR@eW$WQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRAUY$TQ&wPOY$zYZ%fZ{$z{|At|!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRA{V$zQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRBiV!}Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_CXZ$TQ%TW&wPOY$zYZ%fZ}$z}!OAt!O!^$z!^!_%k!_!`6U!`!aCz!a;'S$z;'S;=`&W<%lO$zVDRV#`U&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVDo[&wP$UQOY$zYZ%fZ!O$z!O!PEe!P!Q$z!Q![Fs![!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVEjX&wPOY$zYZ%fZ!O$z!O!PFV!P!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVF^V#UU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRFz_&wP%OQOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#SJc#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zRHO]&wPOY$zYZ%fZ{$z{|Hw|}$z}!OHw!O!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRH|X&wPOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRIpZ&wP%OQOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_#R$z#R#SHw#S;'S$z;'S;=`&W<%lO$zRJhX&wPOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVK[[&wP$VQOY$zYZ%fZz$zz{LQ{!P$z!P!Q,o!Q!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVLVX&wPOYLQYZLrZzLQz{N_{!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQVLwT&wPOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMZTOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMmVOzMWz{Mj{!PMW!P!QNS!Q;'SMW;'S;=`NX<%lOMWUNXO!eUUN[P;=`<%lMWVNdZ&wPOYLQYZLrZzLQz{N_{!PLQ!P!Q! V!Q!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQV! ^V!eU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV! vZOYLQYZLrZzLQz{N_{!aLQ!a!bMW!b;'SLQ;'S;=`!!i<%l~LQ~OLQ~~%fV!!lP;=`<%lLQZ!!vm&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!d$z!d!e!&o!e!g$z!g!hGy!h!q$z!q!r!(a!r!z$z!z!{!){!{#R$z#R#S!%}#S#U$z#U#V!&o#V#X$z#X#YGy#Y#c$z#c#d!(a#d#l$z#l#m!){#m;'S$z;'S;=`&W<%lO$zZ!$xa&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#S!%}#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zZ!&SX&wPOY$zYZ%fZ!Q$z!Q![!$q![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!&tY&wPOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!'k[&wP$}YOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_#R$z#R#S!&o#S;'S$z;'S;=`&W<%lO$zZ!(fX&wPOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!)YZ&wP$}YOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_#R$z#R#S!(a#S;'S$z;'S;=`&W<%lO$zZ!*Q]&wPOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zZ!+Q_&wP$}YOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#R$z#R#S!){#S#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zR!,WX!qQ&wPOY$zYZ%fZ![$z![!]!,s!]!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!,zV#sQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!-hV!mU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!.S[$RQOY$zYZ%fZ!^$z!^!_!.x!_!`!/i!`!a*c!a!b!0]!b;'S$z;'S;=`&W<%l~$z~O$z~~%fR!/PW$SQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!/pX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a*c!a;'S$z;'S;=`&W<%lO$zP!0bR!iP!_!`!0k!r!s!0p#d#e!0pP!0pO!iPP!0sQ!j!k!0y#[#]!0yP!0|Q!r!s!0k#d#e!0kV!1ZX#uQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`)r!`!a!1v!a;'S$z;'S;=`&W<%lO$zV!1}V#OU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!2kX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`!3W!`!a!.x!a;'S$z;'S;=`&W<%lO$zR!3_V$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!3{[!vQ&wPOY$zYZ%fZ}$z}!O!4q!O!^$z!^!_%k!_!`$z!`!a!6P!a!b!6m!b;'S$z;'S;=`&W<%lO$zV!4vX&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a!5c!a;'S$z;'S;=`&W<%lO$zV!5jV#aU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!6WV!gU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!6tW#zQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!7eV$]Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_!8Ra&wP!s^OY$zYZ%fZ!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$z_!9_e&wP!s^OY$zYZ%fZr$zrs!:psw$zwx8Vx!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$zR!:wV&wP'gQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!;eV#WU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!mZ!^!=u!^!_!@u!_#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%lO!=uR!>rV&wPO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?[VO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?tRO;'S!?X;'S;=`!?};=`O!?XQ!@QWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!?X<%lO!?XQ!@oO${QQ!@rP;=`<%l!?XR!@x]OY!=uYZ!>mZ!a!=u!a!b!?X!b#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%l~!=u~O!=u~~%fR!AvW&wPOY!=uYZ!>mZ!^!=u!^!_!@u!_;'S!=u;'S;=`!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[GO,NO,EO,0,1,2,3,hO],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(O,Q)=>s(O)<<1,external:s},{term:81,get:O=>CO[O]||-1}],tokenPrec:29378}),d=r.define({name:"php",parser:AO.configure({props:[R.add({IfStatement:W({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:W({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:O=>{let Q=O.textAfter,i=/^\s*\}/.test(Q),y=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(i?0:y?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":m({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:W({except:/^({|end(for|foreach|switch|while)\b)/})}),o.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":x,ColonBlock(O){return{from:O.from+1,to:O.to}},BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function LO(O={}){let Q=[],i;if(O.baseLanguage!==null)if(O.baseLanguage)i=O.baseLanguage;else{let y=u({matchClosingTags:!1});Q.push(y.support),i=y.language}return new b(d.configure({wrap:i&&U(y=>y.type.isTop?{parser:i.parser,overlay:z=>z.name=="Text"}:null),top:O.plain?"Program":"Template"}),Q)}export{d as n,LO as t}; diff --git a/docs/assets/dist-CoibEXVK.js b/docs/assets/dist-CoibEXVK.js new file mode 100644 index 0000000..4393311 --- /dev/null +++ b/docs/assets/dist-CoibEXVK.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{i as o,n as a,r as t,t as s}from"./dist-RKnr9SNh.js";export{s as globalCompletion,a as localCompletionSource,t as python,o as pythonLanguage}; diff --git a/docs/assets/dist-Cp3Es6uA.js b/docs/assets/dist-Cp3Es6uA.js new file mode 100644 index 0000000..fe38060 --- /dev/null +++ b/docs/assets/dist-Cp3Es6uA.js @@ -0,0 +1 @@ +import{D as v,H as y,J as t,N as u,at as k,n as l,nt as _,q as W,r as T,s as Y,u as R,y as w,zt as U}from"./dist-CAcX026F.js";import{n as G}from"./dist-CVj-_Iiz.js";var X=1,j=2,z=3,S=180,x=4,Z=181,E=5,V=182,D=6;function F(O){return O>=65&&O<=90||O>=97&&O<=122}var N=new l(O=>{let a=O.pos;for(;;){let{next:e}=O;if(e<0)break;if(e==123){let $=O.peek(1);if($==123){if(O.pos>a)break;O.acceptToken(X,2);return}else if($==37){if(O.pos>a)break;let i=2,n=2;for(;;){let r=O.peek(i);if(r==32||r==10)++i;else if(r==35)for(++i;;){let Q=O.peek(i);if(Q<0||Q==10)break;i++}else if(r==45&&n==2)n=++i;else{let Q=r==101&&O.peek(i+1)==110&&O.peek(i+2)==100;O.acceptToken(Q?z:j,n);return}}}}if(O.advance(),e==10)break}O.pos>a&&O.acceptToken(S)});function P(O,a,e){return new l($=>{let i=$.pos;for(;;){let{next:n}=$;if(n==123&&$.peek(1)==37){let r=2;for(;;r++){let c=$.peek(r);if(c!=32&&c!=10)break}let Q="";for(;;r++){let c=$.peek(r);if(!F(c))break;Q+=String.fromCharCode(c)}if(Q==O){if($.pos>i)break;$.acceptToken(e,2);break}}else if(n<0)break;if($.advance(),n==10)break}$.pos>i&&$.acceptToken(a)})}var C=P("endcomment",V,E),I=P("endraw",Z,x),A=new l(O=>{if(O.next==35){for(O.advance();!(O.next==10||O.next<0||(O.next==37||O.next==125)&&O.peek(1)==125);)O.advance();O.acceptToken(D)}}),B={__proto__:null,contains:32,or:36,and:36,true:50,false:50,empty:52,forloop:54,tablerowloop:56,continue:58,in:128,with:194,for:196,as:198,if:234,endif:238,unless:244,endunless:248,elsif:252,else:256,case:262,endcase:266,when:270,endfor:278,tablerow:284,endtablerow:288,break:292,cycle:298,echo:302,render:306,include:312,assign:316,capture:322,endcapture:326,increment:330,decrement:334},H={__proto__:null,if:82,endif:86,elsif:90,else:94,unless:100,endunless:104,case:110,endcase:114,when:118,for:126,endfor:136,tablerow:142,endtablerow:146,break:150,continue:154,cycle:158,comment:164,endcomment:170,raw:176,endraw:182,echo:186,render:190,include:202,assign:206,capture:212,endcapture:216,increment:220,decrement:224,liquid:228},L=T.deserialize({version:14,states:"HOQYOPOOOOOP'#F{'#F{OeOaO'#CdOsQhO'#CfO!bQxO'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQW'#Cg'#CgO&`Q!jO,59QO&gQ!jO'#G^OsQhO'#CsOOQW'#G^'#G^OOOP,59l,59lO)PQhO,59lOsQhO,59pOsQhO,59tO)ZQhO,59vOsQhO,59yOsQhO,5:OOsQhO,5:SO!]QhO,5:WO!]QhO,5:`O)`QhO,5:dO)eQhO,5:fO)jQhO,5:hO)oQhO,5:kO)tQhO,5:qOsQhO,5:vOsQhO,5:xOsQhO,5;OOsQhO,5;QOsQhO,5;TOsQhO,5;XOsQhO,5;ZO+TQhO,5;]O+[OPO'#CdOOOP,59o,59oO#{OPO,59oO+jQxO'#DWOOOP,59x,59xO$ZOPO,59xO+oQxO'#DaOOOP,59},59}O$iOPO,59}O+tQxO'#DfOOOP,5:V,5:VO$wOPO,5:VO+yQxO'#DqOOOP,5:_,5:_O%VOPO,5:_O,OQxO'#DvOOOS'#GQ'#GQO,TOSO'#ERO,]OSO,5:jOOOQ'#GR'#GRO,bOQO'#EXO,jOQO,5:pOOOP,5;S,5;SO%oOPO,5;SO,oQxO'#EkOOOP-E9x-E9xO,tQ#|O,59SOsQhO,59VOsQhO,59VO,yQhO'#C|OOQW'#F|'#F|O-OQhO1G.lOOOP1G.l1G.lOsQhO,59VOsQhO,59ZO-WQ!jO,59_O-iQ!jO1G/WO-pQhO1G/WOOOP1G/W1G/WO-xQ!jO1G/[O.ZQ!jO1G/`OOOP1G/b1G/bO.lQ!jO1G/eO.}Q!jO1G/jO/qQ!jO1G/nO/xQhO1G/rO/}QhO1G/zOOOP1G0O1G0OOOOP1G0Q1G0QO0SQhO1G0SOOOS1G0V1G0VOOOQ1G0]1G0]O0_Q!jO1G0bO0fQ!jO1G0dO1QQ!jO1G0jO1cQ!jO1G0lO1jQ!jO1G0oO1{Q!jO1G0sO2^Q!jO1G0uO2oQhO'#EsO2vQhO'#ExO2}QhO'#FRO3UQhO'#FYO3]QhO'#F^O3dQhO'#FqOOQW'#Ga'#GaOOQW'#GT'#GTO3kQhO1G0wOsQhO'#EtOsQhO'#EyOsQhO'#E}OOQW'#FP'#FPOsQhO'#FSOsQhO'#FWO!]QhO'#FZO!]QhO'#F_OOQW'#Fc'#FcOOQW'#Fe'#FeO3rQhO'#FfOsQhO'#FhOsQhO'#FjOsQhO'#FmOsQhO'#FoOsQhO'#FrOsQhO'#FvOsQhO'#FxOOOP1G0w1G0wOOOP1G/Z1G/ZO3wQhO,59rOOOP1G/d1G/dO3|QhO,59{OOOP1G/i1G/iO4RQhO,5:QOOOP1G/q1G/qO4WQhO,5:]OOOP1G/y1G/yO4]QhO,5:bOOOS-E:O-E:OOOOP1G0U1G0UO4bQxO'#ESOOOQ-E:P-E:POOOP1G0[1G0[O4gQxO'#EYOOOP1G0n1G0nO4lQhO,5;VOOQW1G.n1G.nOOQW1G.q1G.qO7QQ!jO1G.qOOQW'#DO'#DOO7[QhO,59hOOQW-E9z-E9zOOOP7+$W7+$WO9UQ!jO1G.qO9`Q!jO1G.uOsQhO1G.yO;uQhO7+$rOOOP7+$r7+$rOOOP7+$v7+$vOOOP7+$z7+$zOOOP7+%P7+%POOOP7+%U7+%UOsQhO'#F}O;}QhO7+%YOOOP7+%Y7+%YOsQhO7+%^OsQhO7+%fOrQ!jO,5;eO@]Q!jO,5;iOBYQ!jO,5;nOCsQ!jO,5;rOEfQhO,5;uOEkQhO,5;yOEpQhO,5dOOOPAN>dAN>dO!7QQhOAN>lOOOPAN>lAN>lO!7YQhOAN>tOOOPAN>tAN>tOsQhO1G0fO!]QhO1G0fO!7bQ!jO7+&{O!8qQ!jO7+'PO!:QQhO7+'WO!;tQhO,5B[O]||-1},{term:37,get:O=>H[O]||-1}],tokenPrec:0});function o(O,a){return O.split(" ").map(e=>({label:e,type:a}))}var p=o("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),q=o("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),d=o("empty forloop tablerowloop in with as contains","keyword"),M=o("first index index0 last length rindex","property"),K=o("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function J(O){var r;let{state:a,pos:e}=O,$=y(a).resolveInner(e,-1).enterUnfinishedNodesBefore(e),i=((r=$.childBefore(e))==null?void 0:r.name)||$.name;if($.name=="FilterName")return{type:"filter",node:$};if(O.explicit&&i=="|")return{type:"filter"};if($.name=="TagName")return{type:"tag",node:$};if(O.explicit&&i=="{%")return{type:"tag"};if($.name=="PropertyName"&&$.parent.name=="MemberExpression")return{type:"property",node:$,target:$.parent};if($.name=="."&&$.parent.name=="MemberExpression")return{type:"property",target:$.parent};if($.name=="MemberExpression"&&i==".")return{type:"property",target:$};if($.name=="VariableName")return{type:"expression",from:$.from};let n=O.matchBefore(/[\w\u00c0-\uffff]+$/);return n?{type:"expression",from:n.from}:O.explicit&&$.name!="CommentText"&&$.name!="StringLiteral"&&$.name!="NumberLiteral"&&$.name!="InlineComment"?{type:"expression"}:null}function OO(O,a,e,$){let i=[];for(;;){let n=a.getChild("Expression");if(!n)return[];if(n.name=="forloop")return i.length?[]:M;if(n.name=="tablerowloop")return i.length?[]:K;if(n.name=="VariableName"){i.unshift(O.sliceDoc(n.from,n.to));break}else if(n.name=="MemberExpression"){let r=n.getChild("PropertyName");r&&i.unshift(O.sliceDoc(r.from,r.to)),a=n}else return[]}return $?$(i,O,e):[]}function f(O={}){let a=O.filters?O.filters.concat(p):p,e=O.tags?O.tags.concat(q):q,$=O.variables?O.variables.concat(d):d,{properties:i}=O;return n=>{let r=J(n);if(!r)return null;let Q=r.from??(r.node?r.node.from:n.pos),c;return c=r.type=="filter"?a:r.type=="tag"?e:r.type=="expression"?$:OO(n.state,r.target,n,i),c.length?{options:c,from:Q,validFor:/^[\w\u00c0-\uffff]*$/}:null}}var h=k.inputHandler.of((O,a,e,$)=>$!="%"||a!=e||O.state.doc.sliceString(a-1,e+1)!="{}"?!1:(O.dispatch(O.state.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:"%%"},range:U.cursor(i.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function s(O){return a=>{let e=O.test(a.textAfter);return a.lineIndent(a.node.from)+(e?0:a.unit)}}var $O=Y.define({name:"liquid",parser:L.configure({props:[W({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":t.keyword,"empty forloop tablerowloop":t.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":t.controlKeyword,"assign capture endcapture":t.definitionKeyword,contains:t.operatorKeyword,"render include":t.moduleKeyword,VariableName:t.variableName,TagName:t.tagName,FilterName:t.function(t.variableName),PropertyName:t.propertyName,CompareOp:t.compareOperator,AssignOp:t.definitionOperator,LogicOp:t.logicOperator,NumberLiteral:t.number,StringLiteral:t.string,BooleanLiteral:t.bool,InlineComment:t.lineComment,CommentText:t.blockComment,"{% %} {{ }}":t.brace,"( )":t.paren,".":t.derefOperator,", .. : |":t.punctuation}),u.add({Tag:w({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":s(/^\s*(\{%-?\s*)?end\w/),IfDirective:s(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:s(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),v.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O){let a=O.firstChild,e=O.lastChild;return!a||a.name!="Tag"?null:{from:a.to,to:e.name=="EndTag"?e.from:O.to}}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),m=G();function g(O){return $O.configure({wrap:_(a=>a.type.isTop?{parser:O.parser,overlay:e=>e.name=="Text"||e.name=="RawText"}:null)},"liquid")}var b=g(m.language);function aO(O={}){let a=O.base||m,e=a.language==m.language?b:g(a.language);return new R(e,[a.support,e.data.of({autocomplete:f(O)}),a.language.data.of({closeBrackets:{brackets:["{"]}}),h])}export{b as i,aO as n,f as r,h as t}; diff --git a/docs/assets/dist-Cq_4nPfh.js b/docs/assets/dist-Cq_4nPfh.js new file mode 100644 index 0000000..95433b8 --- /dev/null +++ b/docs/assets/dist-Cq_4nPfh.js @@ -0,0 +1,13 @@ +import{$ as K,B as v,D as N,H as g,J as i,N as H,T as F,Y as OO,at as aO,g as f,i as b,n as S,q as QO,r as iO,s as $O,t as rO,u as eO,v as tO,x as lO,y as nO,zt as ZO}from"./dist-CAcX026F.js";import{m as Z,s as PO,u as oO}from"./dist-DKNOF5xd.js";var sO=315,pO=316,R=1,SO=2,cO=3,XO=4,xO=317,mO=319,gO=320,fO=5,YO=6,kO=0,Y=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],j=125,qO=59,k=47,_O=42,yO=43,uO=45,dO=60,hO=44,vO=63,bO=46,RO=91,jO=new rO({start:!1,shift(O,a){return a==fO||a==YO||a==mO?O:a==gO},strict:!1}),TO=new S((O,a)=>{let{next:Q}=O;(Q==j||Q==-1||a.context)&&O.acceptToken(xO)},{contextual:!0,fallback:!0}),wO=new S((O,a)=>{let{next:Q}=O,$;Y.indexOf(Q)>-1||Q==k&&(($=O.peek(1))==k||$==_O)||Q!=j&&Q!=qO&&Q!=-1&&!a.context&&O.acceptToken(sO)},{contextual:!0}),VO=new S((O,a)=>{O.next==RO&&!a.context&&O.acceptToken(pO)},{contextual:!0}),GO=new S((O,a)=>{let{next:Q}=O;if(Q==yO||Q==uO){if(O.advance(),Q==O.next){O.advance();let $=!a.context&&a.canShift(R);O.acceptToken($?R:SO)}}else Q==vO&&O.peek(1)==bO&&(O.advance(),O.advance(),(O.next<48||O.next>57)&&O.acceptToken(cO))},{contextual:!0});function q(O,a){return O>=65&&O<=90||O>=97&&O<=122||O==95||O>=192||!a&&O>=48&&O<=57}var zO=new S((O,a)=>{if(O.next!=dO||!a.dialectEnabled(kO)||(O.advance(),O.next==k))return;let Q=0;for(;Y.indexOf(O.next)>-1;)O.advance(),Q++;if(q(O.next,!0)){for(O.advance(),Q++;q(O.next,!1);)O.advance(),Q++;for(;Y.indexOf(O.next)>-1;)O.advance(),Q++;if(O.next==hO)return;for(let $=0;;$++){if($==7){if(!q(O.next,!0))return;break}if(O.next!="extends".charCodeAt($))break;O.advance(),Q++}}O.acceptToken(XO,-Q)}),UO=QO({"get set async static":i.modifier,"for while do if else switch try catch finally return throw break continue default case":i.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":i.operatorKeyword,"let var const using function class extends":i.definitionKeyword,"import export from":i.moduleKeyword,"with debugger new":i.keyword,TemplateString:i.special(i.string),super:i.atom,BooleanLiteral:i.bool,this:i.self,null:i.null,Star:i.modifier,VariableName:i.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.function(i.variableName),VariableDefinition:i.definition(i.variableName),Label:i.labelName,PropertyName:i.propertyName,PrivatePropertyName:i.special(i.propertyName),"CallExpression/MemberExpression/PropertyName":i.function(i.propertyName),"FunctionDeclaration/VariableDefinition":i.function(i.definition(i.variableName)),"ClassDeclaration/VariableDefinition":i.definition(i.className),"NewExpression/VariableName":i.className,PropertyDefinition:i.definition(i.propertyName),PrivatePropertyDefinition:i.definition(i.special(i.propertyName)),UpdateOp:i.updateOperator,"LineComment Hashbang":i.lineComment,BlockComment:i.blockComment,Number:i.number,String:i.string,Escape:i.escape,ArithOp:i.arithmeticOperator,LogicOp:i.logicOperator,BitOp:i.bitwiseOperator,CompareOp:i.compareOperator,RegExp:i.regexp,Equals:i.definitionOperator,Arrow:i.function(i.punctuation),": Spread":i.punctuation,"( )":i.paren,"[ ]":i.squareBracket,"{ }":i.brace,"InterpolationStart InterpolationEnd":i.special(i.brace),".":i.derefOperator,", ;":i.separator,"@":i.meta,TypeName:i.typeName,TypeDefinition:i.definition(i.typeName),"type enum interface implements namespace module declare":i.definitionKeyword,"abstract global Privacy readonly override":i.modifier,"is keyof unique infer asserts":i.operatorKeyword,JSXAttributeValue:i.attributeValue,JSXText:i.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.angleBracket,"JSXIdentifier JSXNameSpacedName":i.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.attributeName,"JSXBuiltin/JSXIdentifier":i.standard(i.tagName)}),WO={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,for:474,of:483,while:486,with:490,do:494,if:498,else:500,switch:504,case:510,try:516,catch:520,finally:524,return:528,throw:532,break:536,continue:540,debugger:544},MO={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},LO={__proto__:null,"<":193},T=iO.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Ik'#IkO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JqO6[Q!0MxO'#JrO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO7eQMhO'#F|O9[Q`O'#F{OOQ!0Lf'#Jr'#JrOOQ!0Lb'#Jq'#JqO9aQ`O'#GwOOQ['#K^'#K^O9lQ`O'#IXO9qQ!0LrO'#IYOOQ['#J_'#J_OOQ['#I^'#I^Q`QlOOQ`QlOOO9yQ!L^O'#DvO:QQlO'#EOO:XQlO'#EQO9gQ`O'#GsO:`QMhO'#CoO:nQ`O'#EnO:yQ`O'#EyO;OQMhO'#FeO;mQ`O'#GsOOQO'#K_'#K_O;rQ`O'#K_O`Q`O'#CeO>pQ`O'#HbO>xQ`O'#HhO>xQ`O'#HjO`QlO'#HlO>xQ`O'#HnO>xQ`O'#HqO>}Q`O'#HwO?SQ!0LsO'#H}O%[QlO'#IPO?_Q!0LsO'#IRO?jQ!0LsO'#ITO9qQ!0LrO'#IVO?uQ!0MxO'#CiO@wQpO'#DlQOQ`OOO%[QlO'#EQOA_Q`O'#ETO:`QMhO'#EnOAjQ`O'#EnOAuQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Ju'#JuO%[QlO'#JuOOQO'#Jx'#JxOOQO'#Ig'#IgOBuQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#J|'#J|OCqQ!0MSO'#EgOC{QpO'#EWOOQO'#Jw'#JwODaQpO'#JxOEnQpO'#EWOC{QpO'#EgPE{O&2DjO'#CbPOOO)CD|)CD|OOOO'#I_'#I_OFWO#tO,59UOOQ!0Lh,59U,59UOOOO'#I`'#I`OFfO&jO,59UOFtQ!L^O'#DcOOOO'#Ib'#IbOF{O#@ItO,59{OOQ!0Lf,59{,59{OGZQlO'#IcOGnQ`O'#JsOImQ!fO'#JsO+}QlO'#JsOItQ`O,5:ROJ[Q`O'#EpOJiQ`O'#KSOJtQ`O'#KROJtQ`O'#KROJ|Q`O,5;^OKRQ`O'#KQOOQ!0Ln,5:^,5:^OKYQlO,5:^OMWQ!0MxO,5:fOMwQ`O,5:nONbQ!0LrO'#KPONiQ`O'#KOO9aQ`O'#KOON}Q`O'#KOO! VQ`O,5;]O! [Q`O'#KOO!#aQ!fO'#JrOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$PQ!fO,5:sOOQS'#Jy'#JyOOQO-EsOOQ['#Jg'#JgOOQ[,5>t,5>tOOQ[-E<[-E<[O!nQ!0MxO,5:jO%[QlO,5:jO!AUQ!0MxO,5:lOOQO,5@y,5@yO!AuQMhO,5=_O!BTQ!0LrO'#JhO9[Q`O'#JhO!BfQ!0LrO,59ZO!BqQpO,59ZO!ByQMhO,59ZO:`QMhO,59ZO!CUQ`O,5;ZO!C^Q`O'#HaO!CrQ`O'#KcO%[QlO,5;}O!9xQpO,5}Q`O'#HWO9gQ`O'#HYO!EZQ`O'#HYO:`QMhO'#H[O!E`Q`O'#H[OOQ[,5=p,5=pO!EeQ`O'#H]O!EvQ`O'#CoO!E{Q`O,59PO!FVQ`O,59PO!H[QlO,59POOQ[,59P,59PO!HlQ!0LrO,59PO%[QlO,59PO!JwQlO'#HdOOQ['#He'#HeOOQ['#Hf'#HfO`QlO,5=|O!K_Q`O,5=|O`QlO,5>SO`QlO,5>UO!KdQ`O,5>WO`QlO,5>YO!KiQ`O,5>]O!KnQlO,5>cOOQ[,5>i,5>iO%[QlO,5>iO9qQ!0LrO,5>kOOQ[,5>m,5>mO# xQ`O,5>mOOQ[,5>o,5>oO# xQ`O,5>oOOQ[,5>q,5>qO#!fQpO'#D_O%[QlO'#JuO##XQpO'#JuO##cQpO'#DmO##tQpO'#DmO#&VQlO'#DmO#&^Q`O'#JtO#&fQ`O,5:WO#&kQ`O'#EtO#&yQ`O'#KTO#'RQ`O,5;_O#'WQpO'#DmO#'eQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#'lQ`O,5:oO>}Q`O,5;YO!BqQpO,5;YO!ByQMhO,5;YO:`QMhO,5;YO#'tQ`O,5@aO#'yQ07dO,5:sOOQO-E}O+}QlO,5>}OOQO,5?T,5?TO#+RQlO'#IcOOQO-EOO$5PQ`O,5>OOOQ[1G3h1G3hO`QlO1G3hOOQ[1G3n1G3nOOQ[1G3p1G3pO>xQ`O1G3rO$5UQlO1G3tO$9YQlO'#HsOOQ[1G3w1G3wO$9gQ`O'#HyO>}Q`O'#H{OOQ[1G3}1G3}O$9oQlO1G3}O9qQ!0LrO1G4TOOQ[1G4V1G4VOOQ!0Lb'#G_'#G_O9qQ!0LrO1G4XO9qQ!0LrO1G4ZO$=vQ`O,5@aO!)PQlO,5;`O9aQ`O,5;`O>}Q`O,5:XO!)PQlO,5:XO!BqQpO,5:XO$={Q?MtO,5:XOOQO,5;`,5;`O$>VQpO'#IdO$>mQ`O,5@`OOQ!0Lf1G/r1G/rO$>uQpO'#IjO$?PQ`O,5@oOOQ!0Lb1G0y1G0yO##tQpO,5:XOOQO'#If'#IfO$?XQpO,5:qOOQ!0Ln,5:q,5:qO#'oQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO>}Q`O1G0tO!BqQpO1G0tO!ByQMhO1G0tOOQ!0Lb1G5{1G5{O!BfQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$?`Q!0LrO1G0mO$?kQ!0LrO1G0mO!BqQpO1G0^OC{QpO1G0^O$?yQ!0LrO1G0mOOQO1G0^1G0^O$@_Q!0MxO1G0mPOOO-E}O$@{Q`O1G5yO$ATQ`O1G6XO$A]Q!fO1G6YO9aQ`O,5?TO$AgQ!0MxO1G6VO%[QlO1G6VO$AwQ!0LrO1G6VO$BYQ`O1G6UO$BYQ`O1G6UO9aQ`O1G6UO$BbQ`O,5?WO9aQ`O,5?WOOQO,5?W,5?WO$BvQ`O,5?WO$){Q`O,5?WOOQO-E_OOQ[,5>_,5>_O%[QlO'#HtO%>RQ`O'#HvOOQ[,5>e,5>eO9aQ`O,5>eOOQ[,5>g,5>gOOQ[7+)i7+)iOOQ[7+)o7+)oOOQ[7+)s7+)sOOQ[7+)u7+)uO%>WQpO1G5{O%>rQ?MtO1G0zO%>|Q`O1G0zOOQO1G/s1G/sO%?XQ?MtO1G/sO>}Q`O1G/sO!)PQlO'#DmOOQO,5?O,5?OOOQO-E}Q`O7+&`O!BqQpO7+&`OOQO7+%x7+%xO$@_Q!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%?cQ!0LrO7+&XO!BfQ!0LrO7+%xO!BqQpO7+%xO%?nQ!0LrO7+&XO%?|Q!0MxO7++qO%[QlO7++qO%@^Q`O7++pO%@^Q`O7++pOOQO1G4r1G4rO9aQ`O1G4rO%@fQ`O1G4rOOQS7+%}7+%}O#'oQ`O<`OOQ[,5>b,5>bO&=hQ`O1G4PO9aQ`O7+&fO!)PQlO7+&fOOQO7+%_7+%_O&=mQ?MtO1G6YO>}Q`O7+%_OOQ!0Lf<}Q`O<SQ!0MxO<= ]O&>dQ`O<= [OOQO7+*^7+*^O9aQ`O7+*^OOQ[ANAkANAkO&>lQ!fOANAkO!&oQMhOANAkO#'oQ`OANAkO4UQ!fOANAkO&>sQ`OANAkO%[QlOANAkO&>{Q!0MzO7+'zO&A^Q!0MzO,5?`O&CiQ!0MzO,5?bO&EtQ!0MzO7+'|O&HVQ!fO1G4kO&HaQ?MtO7+&aO&JeQ?MvO,5=XO&LlQ?MvO,5=ZO&L|Q?MvO,5=XO&M^Q?MvO,5=ZO&MnQ?MvO,59uO' tQ?MvO,5}Q`O7+)kO'-dQ`O<QPPP!>YHxPPPPPPPPP!AiP!BvPPHx!DXPHxPHxHxHxHxHxPHx!EkP!HuP!K{P!LP!LZ!L_!L_P!HrP!Lc!LcP# iP# mHxPHx# s#$xCW@zP@zP@z@zP#&V@z@z#(i@z#+a@z#-m@z@z#.]#0q#0q#0v#1P#0q#1[PP#0qP@z#1t@z#5s@z@z6bPPP#9xPPP#:c#:cP#:cP#:y#:cPP#;PP#:vP#:v#;d#:v#S#>Y#>d#>j#>t#>z#?[#?b#@S#@f#@l#@r#AQ#Ag#C[#Cj#Cq#E]#Ek#G]#Gk#Gq#Gw#G}#HX#H_#He#Ho#IR#IXPPPPPPPPPPP#I_PPPPPPP#JS#MZ#Ns#Nz$ SPPP$&nP$&w$)p$0Z$0^$0a$1`$1c$1j$1rP$1x$1{P$2i$2m$3e$4s$4x$5`PP$5e$5k$5o$5r$5v$5z$6v$7_$7v$7z$7}$8Q$8W$8Z$8_$8cR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:379,context:jO,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,236,242,244,246,248,251,257,263,265,267,269,271,273,274,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[UO],skippedNodes:[0,5,6,277],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(VpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(VpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Vp(Y!b'{0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(W#S$i&j'|0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$i&j(Vp(Y!b'|0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(U':f$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(Y!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$d`(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Vp(Y!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Y!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$i&j(VpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(VpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Vp(Y!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$i&j(Y!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(Y!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(Y!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(Y!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Y!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-v$?V_!^(CdvBr$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$i&j(Vp(Y!b'{0/l$]#t(S,2j(d$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Vp(Y!b'|0/l$]#t(S,2j(d$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[wO,VO,GO,zO,2,3,4,5,6,7,8,9,10,11,12,13,14,TO,new b("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(b~~",141,339),new b("j~RQYZXz{^~^O(P~~aP!P!Qd~iO(Q~~",25,322)],topRules:{Script:[0,7],SingleExpression:[1,275],SingleClassItem:[2,276]},dialects:{jsx:0,ts:15098},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:326,get:O=>WO[O]||-1},{term:342,get:O=>MO[O]||-1},{term:95,get:O=>LO[O]||-1}],tokenPrec:15124}),_=[Z("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Z("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Z("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Z("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Z("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Z(`try { + \${} +} catch (\${error}) { + \${} +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Z("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Z(`if (\${}) { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),Z(`class \${name} { + constructor(\${params}) { + \${} + } +}`,{label:"class",detail:"definition",type:"keyword"}),Z('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Z('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],w=_.concat([Z("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Z("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Z("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),V=new K,G=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function c(O){return(a,Q)=>{let $=a.node.getChild("VariableDefinition");return $&&Q($,O),!0}}var EO=["FunctionDeclaration"],AO={FunctionDeclaration:c("function"),ClassDeclaration:c("class"),ClassExpression:()=>!0,EnumDeclaration:c("constant"),TypeAliasDeclaration:c("type"),NamespaceDeclaration:c("namespace"),VariableDefinition(O,a){O.matchContext(EO)||a(O,"variable")},TypeDefinition(O,a){a(O,"type")},__proto__:null};function z(O,a){let Q=V.get(a);if(Q)return Q;let $=[],e=!0;function t(r,l){let o=O.sliceString(r.from,r.to);$.push({label:o,type:l})}return a.cursor(OO.IncludeAnonymous).iterate(r=>{if(e)e=!1;else if(r.name){let l=AO[r.name];if(l&&l(r,t)||G.has(r.name))return!1}else if(r.to-r.from>8192){for(let l of z(O,r.node))$.push(l);return!1}}),V.set(a,$),$}var x=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,y=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function U(O){let a=g(O.state).resolveInner(O.pos,-1);if(y.indexOf(a.name)>-1)return null;let Q=a.name=="VariableName"||a.to-a.from<20&&x.test(O.state.sliceDoc(a.from,a.to));if(!Q&&!O.explicit)return null;let $=[];for(let e=a;e;e=e.parent)G.has(e.name)&&($=$.concat(z(O.state.doc,e)));return{options:$,from:Q?a.from:O.pos,validFor:x}}function u(O,a,Q){var e;let $=[];for(;;){let t=a.firstChild,r;if((t==null?void 0:t.name)=="VariableName")return $.push(O(t)),{path:$.reverse(),name:Q};if((t==null?void 0:t.name)=="MemberExpression"&&((e=r=t.lastChild)==null?void 0:e.name)=="PropertyName")$.push(O(r)),a=t;else return null}}function W(O){let a=$=>O.state.doc.sliceString($.from,$.to),Q=g(O.state).resolveInner(O.pos,-1);return Q.name=="PropertyName"?u(a,Q.parent,a(Q)):(Q.name=="."||Q.name=="?.")&&Q.parent.name=="MemberExpression"?u(a,Q.parent,""):y.indexOf(Q.name)>-1?null:Q.name=="VariableName"||Q.to-Q.from<20&&x.test(a(Q))?{path:[],name:a(Q)}:Q.name=="MemberExpression"?u(a,Q,""):O.explicit?{path:[],name:""}:null}function CO(O,a){let Q=[],$=new Set;for(let e=0;;e++){for(let r of(Object.getOwnPropertyNames||Object.keys)(O)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(r)||$.has(r))continue;$.add(r);let l;try{l=O[r]}catch{continue}Q.push({label:r,type:typeof l=="function"?/^[A-Z]/.test(r)?"class":a?"function":"method":a?"variable":"property",boost:-e})}let t=Object.getPrototypeOf(O);if(!t)return Q;O=t}}function JO(O){let a=new Map;return Q=>{let $=W(Q);if(!$)return null;let e=O;for(let r of $.path)if(e=e[r],!e)return null;let t=a.get(e);return t||a.set(e,t=CO(e,!$.path.length)),{from:Q.pos-$.name.length,options:t,validFor:x}}}var s=$O.define({name:"javascript",parser:T.configure({props:[H.add({IfStatement:f({except:/^\s*({|else\b)/}),TryStatement:f({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:lO,SwitchBody:O=>{let a=O.textAfter,Q=/^\s*\}/.test(a),$=/^\s*(case|default)\b/.test(a);return O.baseIndent+(Q?0:$?1:2)*O.unit},Block:nO({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>null,"Statement Property":f({except:/^\s*{/}),JSXElement(O){let a=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(a?0:O.unit)},JSXEscape(O){let a=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(a?0:O.unit)},"JSXOpenTag JSXSelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),N.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":F,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),M={test:O=>/^JSX/.test(O.name),facet:tO({commentTokens:{block:{open:"{/*",close:"*/}"}}})},L=s.configure({dialect:"ts"},"typescript"),E=s.configure({dialect:"jsx",props:[v.add(O=>O.isTop?[M]:void 0)]}),A=s.configure({dialect:"jsx ts",props:[v.add(O=>O.isTop?[M]:void 0)]},"typescript"),C=O=>({label:O,type:"keyword"}),J="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(C),IO=J.concat(["declare","implements","private","protected","public"].map(C));function BO(O={}){let a=O.jsx?O.typescript?A:E:O.typescript?L:s,Q=O.typescript?w.concat(IO):_.concat(J);return new eO(a,[s.data.of({autocomplete:oO(y,PO(Q))}),s.data.of({autocomplete:U}),O.jsx?B:[]])}function DO(O){for(;;){if(O.name=="JSXOpenTag"||O.name=="JSXSelfClosingTag"||O.name=="JSXFragmentTag")return O;if(O.name=="JSXEscape"||!O.parent)return null;O=O.parent}}function I(O,a,Q=O.length){for(let $=a==null?void 0:a.firstChild;$;$=$.nextSibling)if($.name=="JSXIdentifier"||$.name=="JSXBuiltin"||$.name=="JSXNamespacedName"||$.name=="JSXMemberExpression")return O.sliceString($.from,Math.min($.to,Q));return""}var KO=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),B=aO.inputHandler.of((O,a,Q,$,e)=>{if((KO?O.composing:O.compositionStarted)||O.state.readOnly||a!=Q||$!=">"&&$!="/"||!s.isActiveAt(O.state,a,-1))return!1;let t=e(),{state:r}=t,l=r.changeByRange(o=>{var d;let{head:n}=o,P=g(r).resolveInner(n-1,-1),X;if(P.name=="JSXStartTag"&&(P=P.parent),!(r.doc.sliceString(n-1,n)!=$||P.name=="JSXAttributeValue"&&P.to>n)){if($==">"&&P.name=="JSXFragmentTag")return{range:o,changes:{from:n,insert:""}};if($=="/"&&P.name=="JSXStartCloseTag"){let p=P.parent,m=p.parent;if(m&&p.from==n-2&&((X=I(r.doc,m.firstChild,n))||((d=m.firstChild)==null?void 0:d.name)=="JSXFragmentTag")){let h=`${X}>`;return{range:ZO.cursor(n+h.length,-1),changes:{from:n,insert:h}}}}else if($==">"){let p=DO(P);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(r.doc.sliceString(n,n+2))&&(X=I(r.doc,p,n)))return{range:o,changes:{from:n,insert:``}}}}return{range:o}});return l.changes.empty?!1:(O.dispatch([t,r.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function NO(O,a){return a||(a={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},O.getRules().forEach((Q,$)=>{var e;(e=Q.meta.docs)!=null&&e.recommended&&(a.rules[$]=2)})),Q=>{let{state:$}=Q,e=[];for(let{from:t,to:r}of s.findRegions($)){let l=$.doc.lineAt(t),o={line:l.number-1,col:t-l.from,pos:t};for(let n of O.verify($.sliceDoc(t,r),a))e.push(HO(n,$.doc,o))}return e}}function D(O,a,Q,$){return Q.line(O+$.line).from+a+(O==1?$.col-1:-1)}function HO(O,a,Q){let $=D(O.line,O.column,a,Q),e={from:$,to:O.endLine!=null&&O.endColumn!=1?D(O.endLine,O.endColumn,a,Q):$,message:O.message,source:O.ruleId?"eslint:"+O.ruleId:"eslint",severity:O.severity==1?"warning":"error"};if(O.fix){let{range:t,text:r}=O.fix,l=t[0]+Q.pos-$,o=t[1]+Q.pos-$;e.actions=[{name:"fix",apply(n,P){n.dispatch({changes:{from:P+l,to:P+o,insert:r},scrollIntoView:!0})}}]}return e}export{s as a,JO as c,L as d,w as f,BO as i,_ as l,W as n,E as o,T as p,NO as r,U as s,B as t,A as u}; diff --git a/docs/assets/dist-Cs61SvFK.js b/docs/assets/dist-Cs61SvFK.js new file mode 100644 index 0000000..832f50f --- /dev/null +++ b/docs/assets/dist-Cs61SvFK.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{a,c as s,d as o,f as r,i as S,l as e,n as t,o as L,r as i,s as Q,t as c,u as d}from"./dist-BuhT82Xx.js";export{c as Cassandra,t as MSSQL,i as MariaSQL,S as MySQL,a as PLSQL,L as PostgreSQL,Q as SQLDialect,s as SQLite,e as StandardSQL,d as keywordCompletionSource,o as schemaCompletionSource,r as sql}; diff --git a/docs/assets/dist-CsayQVA2.js b/docs/assets/dist-CsayQVA2.js new file mode 100644 index 0000000..9ebf812 --- /dev/null +++ b/docs/assets/dist-CsayQVA2.js @@ -0,0 +1,7 @@ +import{$ as x,D as w,H as s,J as O,N as k,T as h,Y as d,g as $,i as y,n as u,q as f,r as j,s as g,t as U,u as G,x as b,y as Z}from"./dist-CAcX026F.js";import{m as P,s as q,u as _}from"./dist-DKNOF5xd.js";var E=177,v=179,D=184,C=12,z=13,F=17,B=20,N=25,I=53,L=95,A=142,J=144,M=145,H=148,K=10,OO=13,QO=32,eO=9,l=47,aO=41,XO=125,iO=new u((Q,e)=>{for(let t=0,a=Q.next;(e.context&&(a<0||a==K||a==OO||a==l&&Q.peek(t+1)==l)||a==aO||a==XO)&&Q.acceptToken(E),!(a!=QO&&a!=eO);)a=Q.peek(++t)},{contextual:!0}),PO=new Set([L,D,B,C,F,J,M,A,H,z,I,N]),tO=new U({start:!1,shift:(Q,e)=>e==v?Q:PO.has(e)}),nO=f({"func interface struct chan map const type var":O.definitionKeyword,"import package":O.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":O.controlKeyword,range:O.keyword,Bool:O.bool,String:O.string,Rune:O.character,Number:O.number,Nil:O.null,VariableName:O.variableName,DefName:O.definition(O.variableName),TypeName:O.typeName,LabelName:O.labelName,FieldName:O.propertyName,"FunctionDecl/DefName":O.function(O.definition(O.variableName)),"TypeSpec/DefName":O.definition(O.typeName),"CallExpr/VariableName":O.function(O.variableName),LineComment:O.lineComment,BlockComment:O.blockComment,LogicOp:O.logicOperator,ArithOp:O.arithmeticOperator,BitOp:O.bitwiseOperator,"DerefOp .":O.derefOperator,"UpdateOp IncDecOp":O.updateOperator,CompareOp:O.compareOperator,"= :=":O.definitionOperator,"<-":O.operator,'~ "*"':O.modifier,"; ,":O.separator,"... :":O.punctuation,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),oO={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},cO=j.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETO4cQQO'#EPO5}QQO'#EPOOQP'#Ga'#GaO6UQQO'#E`O6^QQO'#EcOOQP'#G`'#G`O6cQQO'#EsOOQP'#G_'#G_O&]QRO'#FnOOQO'#Fn'#FnO9QQQO'#G^QOQQOOO&]QROOO9XQQO'#C`O9^QSO'#CdO9lQQO'#C}O9tQQO'#DSO9yQQO'#D[O:kQQO'#CsO:pQQO'#DhO:uQQO'#EeO:}QQO'#EiO;VQQO'#EoO;_QQO'#EuOPQSO7+%hOOQP7+%h7+%hO4cQQO7+%hOOQP1G0Q1G0QO!>^QQO1G0QOOQP1G0U1G0UO!>fQQO1G0UOF|QQO1G0UOOQO,5nAN>nO4cQQOAN>nO!IsQSOAN>nOOQP<nQQO'#FrOOQO,5vAN>vO!LtQQOAN>vP.hQQO'#F|OOQPG25XG25XO!LyQQOG25bO!MOQQO'#FPOOQPG25bG25bO!MZQQOG25bOOQPLD)tLD)tOOQPG24bG24bO!JqQQOLD*|O!9OQQO'#GQO!McQQO,5;kOOQP,5;k,5;kO?tQQO'#FQO!MnQQO'#FQO!MsQQOLD*|OOQP!$'Nh!$'NhOOQO,5VO^!hOh!POr-TOw}O!P-_O!Q-`O!W-^O!]-eO%O!eO%Y!fO~OZ!sO~O^#uO~O!P$xO~On!lO#W%]aV%]a^%]ah%]ar%]aw%]a!P%]a!Q%]a!W%]a!]%]a#T%]a$w%]a%O%]a%Y%]au%]a~O]${O^#QO~OZ#RO^#VO!W#SO%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YO%p#[O%q#]O~O]$|O!|,WO~PBROj!qOn%QO!QnOi%cP~P*aO!V%WO!|#`O~PBRO!V%YO~OV!}O[oO^YOaoOdoOh!POjcOr!pOw}O!P!OO!QnO!WaO!]!QO!phO!qhO#Y!RO#^!SO#d!TO#j!UO#m!VO#v!WO#{!XO#}!YO$S!ZO$U![O$V![O$W!]O$Y!^O$[!_O%OQO%UTO%VUO%YVO%fiO%giO%hjO%ikO%jlO~Oi%dX#p%dX#q%dX~PDQOi%]O~O[oO^YOaoOdoOh!POr!pOw}O!P!OO!Q-QO!WaO!]!QO!phO!qhO%O+{O%UTO%VUO%YVO%fiO%giO%hjO%ikO%jlO~O^%aO%O%_O~O!QnO!a%cO~P*aO!QnOn$mX#T$mX#U$mXV$mX$w$mX!a$mX~P*aOn#TO#T%ea#U%eaV%ea$w%ea!a%ea~O]%fO~PF|OV#ga$w#ga~PDTO[%sO~OZ#rO[#qO]%vO%O#oO~O^!hOh!POn%zOr-TOu%xOw}O!P-_O!Q-`O!W-^O!]-eO%O,dO%Y!fO]%[P~O^&OOh!POr!jOw}O!P!OO!Q!kO!WaO!]!QO%Y!fO^%ZXj%ZX~O%O%}O~PKfOjcO^qa]qanqa!Vqa~O^#uO!W&SO~O^!hOh!POr-TOw}O{&WO!P-_O!Q-`O!W-^O!]-eO%O,xO%Y!fO~Oi&^O~PL{O^!hOh!POr!jOw}O!Q!kO!WaO!]!QO%O!eO%Y!fO~O!P#hO~PMwOi&eO%O,yO%Y!fO~O#T&gOV#ZX$w#ZX~P?tO]&kO%O#oO~O^!hOh!POr-TOw}O!P-_O!Q-`O!]-eO%O!eO%Y!fO~O!W&lO#T&mO~P! _O]&qO%O#oO~O#T&sOV#eX$w#eX~P?tO]&vO%O#oO~OjeX~P$XOjcO!|,XO~P2gOn!lO#W&yO#W%]X~O^#VOn#TO!Q#cO!W#SO!|,XO#R#dO%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YO%p#[O%q#]OV`X#T%eX#U%eX~OZ&zOj$`O$w`X~P!#cOi'OO#p'PO#q'QO~OZ#ROjcO~P!#cO#T'TO#U#iO~O#W'UO~OV'WO!QnO~P*aOV'XO~OjcO~O!|#`OV#za$w#za~PBROi'[O#p']O#q'^O~On#TO!|#`OV%eX$w%eX!a%eX~PBRO!|#`OV$Za$w$Za~PBRO${$rO$|$rO$}'`O~O]${O~O%O!eO]%ZXn%ZX!V%ZX~PKfO!|#`Oi!_Xn!_X!a!`X~PBROi!_Xn!_X!a!`X~O!a'aO~On'bOi%cX~Oi'dO~On'eO!V%bX!a%bX~O!V'gO~O]'jOn'kO!|,YO~PBROn'nO!V'mO!a'oO!|#`O~PBRO!QnO!V'qO!a'rO~P*aO!|#`On$ma#T$ma#U$maV$ma$w$ma!a$ma~PBRO]'sOu'tO~O%Y#XO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YOV!xiZ!xi^!xin!xi!Q!xi!W!xi!|!xi#R!xi#T!xi#U!xi$w!xi%`!xi%f!xi%g!xi%i!xi%p!xi%q!xi~O!V!xii!xi!a!xi~P!+YO%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YOV!xiZ!xi^!xin!xi!Q!xi!W!xi#R!xi#T!xi#U!xi$w!xi%p!xi%q!xi!V!xii!xi!a!xi~O!|!xi~P!-TO!|#`O~P!-TO%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YO%p#[OV!xiZ!xi^!xin!xi!Q!xi!W!xi#R!xi#T!xi#U!xi$w!xi%q!xi~O!|#`O!V!xii!xi!a!xi~P!/VO!|#`OV#Pi$w#Pi!a#Pi~PBRO]'uOn'wOu'vO~OZ#rO[#qO]'zO%O#oO~Ou'|O~P?tOn'}O]%[X~O](PO~OZeX^mX^!TXj!TX!W!TX~OjcOV$]i$w$]i~O%`(ZOV%^X$w%^Xn%^X!V%^X~Oi(`O~PL{O[(aO!W!tOVlX$wlX~On(bO~P?tO[(aOVlX$wlX~Oi(hO%O,yO%Y!fO~O!V(iO~O#T(kO~O](nO%O#oO~O[oO^YOaoOdoOh!POr!pOu-bOw}O!P!OO!QnO!V-UO!WaO!]!QO!phO!qhO%UTO%VUO%YVO%fiO%giO%hjO%ikO%jlO~O%O+zO~P!4vO](sO%O#oO~O#T(tOV#ea$w#ea~O](xO%O#oO~O#k(yOV#ii$w#ii~O[oO^YOaoOdoOh!POr!pOw}O!P!OO!Q-PO!WaO!]!QO!phO!qhO%O+xO%UTO%VUO%YVO%fiO%giO%hjO%ikO%jlO~O^(|O%O%_O~O#p%dP#q%dP~P/uOi)PO#p'PO#q'QO~O!a)RO~O!QnO#y)VO~P*aOV)WO!|#`O~PBROj#wa~P;_OV)WO!QnO~P*aOi)]O#p']O#q'^O~O[oO^YOaoOdoOh!POr!pOw}O!P!OO!QnO!WaO!]!QO!phO!qhO%UTO%VUO%YVO%fiO%giO%hjO%ikO%jlO~O%O,eO~P!:lO!a)bO~Oj!qO!QnO~P*aOj!qO!QnOi%ca~P*aOn)iOi%ca~O!V%ba!a%ba~P?tOn)lO!V%ba!a%ba~O])nO~O])oO~O!V)pO~O!QnO!V)rO!a)sO~P*aO!V)rO!a)sO!|#`O~PBRO])uOn)vO~O])wOn)xO~O^!hOh!POr-TOu%xOw}O!P-_O!Q-`O!W-^O!]-eO%O,dO%Y!fO~O]%[a~P!>nOn)|O]%[a~O]${O]tXntX~OjcOV$^q$w$^q~On*PO{&WO~P?tOn*SO!V%rX~O!V*UO~OjcOV$]q$w$]q~O%`(ZOV|a$w|an|a!V|a~O[*]OVla$wla~O[*]O!W!tOVla$wla~On*PO{&WO!W*`O^%WXj%WX~P! _OjcO#j!UO~OjcO!|,XO~PBROZ*dO^#VO!W#SO%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YO%p#[O%q#]O~O!|#`O~P!BoO#^*eO~P?tO!a*fO~Oj$`O!|,XO~P!BoO#W*hO~Oj#wi~P;_OV*kO!|#`O~PBROn#TO!Q#cO!|#`O!a$QX#T%eX~PBRO#T*lO~O#W*lO~O!a*mO~O!|#`Oi!_in!_i~PBRO!|#`Oi!bXn!bX!a!cX~PBROi!bXn!bX!a!cX~O!a*nO~Oj!qO!QnOi%ci~P*aO!V%bi!a%bi~P?tO!V*qO!a*rO!|#`O~PBRO!V*qO!|#`O~PBRO]*tO~O]*uO~O]*uOu*vO~O]%[i~P!>nO%O!eO!V%ra~On*|O!V%ra~O[+OOVli$wli~O%O+yO~P!4vO#k+QOV#iy$w#iy~O^+RO%O%_O~O]+SO~O!|,XOj#xq~PBROj#wq~P;_O!V+ZO!|#`O~PBRO]+[On+]O~O%O!eO!V%ri~O^#QOn'eO!V%bX~O#^+`O~P?tOj+aO~O^#VO!W#SO!|#`O%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YO%p#[O%q#]O~OZ+cO~P!JvO!|#`O!a$Qi~PBRO!|#`Oi!bin!bi~PBRO!V+dO!|#`O~PBRO]+eO~O]+fO~Oi+iO#p+jO#q+kO~O^+lO%O%_O~Oi+pO#p+jO#q+kO~O!a+rO~O#^+sO~P?tO!a+tO~O]+uO~OZeX^eX^!TXj!TX!WeX!W!TX!|eX%YeX%`eX%feX%geX%ieX%jeX%keX%leX%meX%neX%oeX%peX%qeXVeXneX!QeX#ReX#TeX#UeX$weX~O]eX]!TX!VeXieX!aeX~P!NUOjeX~P!NUOZeX^eX^!TXj!TX!WeX!W!TX!|eX%YeX%`eX%feX%geX%ieX%jeX%keX%leX%meX%neX%oeX%peX%qeXn!TX!VeX~O]eX!V!TX~P#!gOh!TXr!TXw!TX{!TX!P!TX!Q!TX!]!TX%O!TX%Y!TX~P#!gOZeX^eX^!TXj!TXneX!WeX!W!TX!|eX%YeX%`eX%feX%geX%ieX%jeX%keX%leX%meX%neX%oeX%peX%qeX~O]eXueX~P#$xO]$mXn$mXu$mX~PF|Oj$mXn$mX~P!7`On+|O]%eau%ea~On+}Oj%ea~O[oO^YOaoOdoOh!POr!pOw}O!P!OO!Q-OO!WaO!]!QO!phO!qhO%O+yO%UTO%VUO%YVO%fiO%giO%hjO%ikO%jlO~OZeX]!TX^UXhUXnUXn!TXrUXuUXwUX!PUX!QUX!WUX!W!TX!]UX%OUX%YUX~OnUX!QeX!aeX#TeX#WUX~P#$xOn+|O!|,YO]%eXu%eX~PBROn+}O!|,XOj%eX~PBRO^&OOV%ZXj%ZX$w%ZX]%ZXn%ZX!V%ZXu%ZX%`%ZX#T%ZX[%ZX!a%ZX~P?wO!|,YO]$man$mau$ma~PBRO!|,XOj$man$ma~PBRO%Y#XO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YOZ!xi]!xi^!xi!W!xi!|!xi%`!xi%f!xi%g!xi%i!xi%p!xi%q!xi~Oj!xi~P!+YOn!xiu!xi~P#,hO%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YOZ!xi]!xi^!xi!W!xi!|!xi%p!xi%q!xi~O%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YOV!xiZ!xi^!xij!xin!xi!Q!xi!W!xi#R!xi#T!xi#U!xi$w!xi%p!xi%q!xi~O!|!xi~P#/_On!xiu!xi~P#.TO%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YOZ!xi]!xi^!xi!W!xi%p!xi%q!xi~O!|,WO~P#1^O!|,XO~P#/_O!|,YOn!xiu!xi~P#1^O%Y#XO%`#ZO%fiO%giO%i#ZO%j#YO%k#XO%l#XO%m#YO%n#YO%o#YO%p#[OZ!xi]!xi^!xi!W!xi%q!xi~O!|,WO~P#3QO!|,XOj!xi~P!/VO!|,YOn!xiu!xi~P#3QO!|,XOj#Pi~PBROV!TXZeX^mX!W!TX$w!TX~O%`!TX~P#5RO[!TXhmXnmXrmXwmX!PmX!QmX!WmX!]mX%OmX%YmX~P#5ROn#TO!Q,aO!|,XO#R#dOj`X#T%eX#U%eX~PBRO[oO^YOaoOdoOh!POr!pOw}O!P#hO!WaO!]!QO!phO!qhO%UTO%VUO%YVO%fiO%giO%hjO%ikO%jlO~O!Q-OO%O+yO~P#6{O!Q-PO%O+xO~P#6{O!Q-QO%O+{O~P#6{O#T,bO#U,bO~O#W,cO~O^!hOh!POr-TOw}O!P-_O!Q-WO!W-^O!]-eO%O!eO%Y!fO~O^!hOh!POr-TOw}O!Q-`O!W-^O!]-eO%O!eO%Y!fO~O!P-VO~P#9zO%O+wO~P!4vO!P-XO~O!V-YO!|#`O~PBRO!V-ZO~O!V-[O~O!W-dO~OP%ka%Oa~",goto:"!FW%sPP%tP%wP%zP'SP'XPPPP'`'cP'u'uP)w'u-_PPP0j0m0qP1V4b1VP7s8WP1VP8a8d8hP8p8w1VPP1V8{<`?vPPCY-_-_-_PCdCuCxPC{DQ'u'uDV'uES'u'u'u'uGUIW'uPPJR'uJUMjMjMj'u! r! r!#SP!$`!%d!&d'cP'cPP'cP!&yP!'V!'^!&yP!'a!'h!'n!'w!&yP!'z!(R!&y!(U!(fPP!&yP!(x!)UPP!&y!)Y!)c!&yP!)g!)gP!&yP!&yP!)j!)m!&v!&yP!&yPPP!&yP!&yP!)q!)q!)w!)}!*U!*[!*d!*j!*p!*w!*}!+T!+Z!.q!.x!/O!/X!/m!/s!/z!0Q!0W!0^!0d!0jPPPPPPPPP!0p!1f!1k!1{!2kPP!7P!:^P!>u!?Z!?_!@Z!@fP!@p!D_!Df!Di!DuPPPPPPPPPPPP!FSR!aPRyO!WXOScw!R!T!U!W#O#k#n#u$R$X&O&j&u&|'W'Y']'})W)|*k*w+gQ#pzU#r{#s%uQ#x|U$T!S$U&pQ$^!VQ$y!lR)U'RVROS#nQ#t{T%t#s%uR#t{qrOScw!U!V!W#O#k#n&|'W'Y)W*k+g%PoOSYacmnw!U!V!W!X!Z!_!q#O#Q#S#T#V#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&x&y&|'P'R'T'U'W'X'Y']'a'b'o'r'w(k(t)V)W)i)s*`*h*k*l*n*o*r+g+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,{,|,}-O-P-Q-^%O]OSYacmnw!U!V!W!X!Z!_!q#O#Q#S#T#V#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&x&y&|'P'R'T'U'W'X'Y']'a'b'o'r'w(k(t)V)W)i)s*`*h*k*l*n*o*r+g+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,{,|,}-O-P-Q-^#u!iW^!O!h!t!z#e#h#u#v#y#|#}$P$Q$T$W$v$x%W%Y%a%x%y&O&S&W&]&`&b&d&m'e'|'}(S([(c(i(o(|)l)|*P*Q*S*p*w*|+R+^+j+l,h-U-V-W-X-Y-Z-[-]-_-d'cbOSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&l&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dR$O!PT&c#}&dW%`#R&z*d+cQ&Q#vS&V#y&]S&`#}&dR*Y(b'cZOSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&l&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-d%fWOSWYacmnw!O!U!V!W!X!Z!_!q!z#O#Q#S#T#V#^#_#`#a#b#c#h#i#j#k#n#v#|$f$v$x%W%Y%c&g&l&s&x&y&|'P'R'T'U'W'X'Y']'a'b'o'r'w(i(k(t)V)W)i)s*`*h*k*l*n*o*r+g+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,{,|,}-O-P-Q-^S&b#}&d!{-]!h!t#e#u#y$P$Q$T$W%a%x%y&O&W&]&`&m'e'|'}(S([(c(o(|)l)|*Q*p*w+R+j+l,h-U-V-W-X-Y-Z-[-]-_-dQ#v|S$v!j!pU&P#v$v,hZ,h#x&Q&U&V-TS%{#u&OV){'})|*wR#z}T&[#y&]]&X#y&](S([(o*QZ&Z#y&](S(o*QT([&Y(]'s_OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|#}$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&S&W&]&`&b&d&g&l&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*P*Q*S*`*h*k*l*n*o*p*r*w*|+R+^+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-d'r_OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|#}$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&S&W&]&`&b&d&g&l&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*P*Q*S*`*h*k*l*n*o*p*r*w*|+R+^+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dR!w^'bbOSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&l&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&a#}&dR(d&bS!u]fX!x`&_(e(oQ!r[Q%O!qQ)d'aU)f'b)i*oR+X*nR%R!qR%P!qV)h'b)i*oV)g'b)i*odtOScw#O#k#n&|'Y+gQ$h!WQ&R#wQ&w$[S'S$c$iQ(V&TQ*O(RQ*V(WQ*b(yQ*c(zR+_+Q%PfOSYacmnw!U!V!W!X!Z!_!q#O#Q#S#T#V#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&x&y&|'P'R'T'U'W'X'Y']'a'b'o'r'w(k(t)V)W)i)s*`*h*k*l*n*o*r+g+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,{,|,}-O-P-Q-^%PgOSYacmnw!U!V!W!X!Z!_!q#O#Q#S#T#V#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&x&y&|'P'R'T'U'W'X'Y']'a'b'o'r'w(k(t)V)W)i)s*`*h*k*l*n*o*r+g+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,{,|,}-O-P-Q-^!q#Weg!o!y$[$_$c$j$m$q$}%^%b%d%m'V'p(z({)S)Y)^)c)e)q)t*i*s+T+V+W+Y,f,g,i,j,w,z-aR#fh#^mOSacmnw!X!Z!_!q#O#S#T#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&y&|'P'T'U'X'Y']'a'b'o'r(k(t)i)s*`*h*l*n*o*r+g-^!W#_e!y$j$m$q$}%b%d%j%k%l%m'V'p({)Y)^)c)e)q)t*s+T+V+W+Y-aW,T!o,n,q,tj,U$[$_$c(z)S*i,g,j,o,r,u,w,z[,V%^,f,i,p,s,v`,{Y,Q,T,W,Z,^,{-Ox,|!U!V!W&x'R'W)V)W*k+},R,U,X,[,_,a,b,c,|-Pg,}#Q#V'w+|,S,V,Y,],`,}-Q#^mOSacmnw!X!Z!_!q#O#S#T#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&y&|'P'T'U'X'Y']'a'b'o'r(k(t)i)s*`*h*l*n*o*r+g-^`,{Y,Q,T,W,Z,^,{-Ox,|!U!V!W&x'R'W)V)W*k+},R,U,X,[,_,a,b,c,|-Pg,}#Q#V'w+|,S,V,Y,],`,}-Q!Y#^e!y$j$m$q$}%b%d%i%j%k%l%m'V'p({)Y)^)c)e)q)t*s+T+V+W+Y-aY,Q!o,k,n,q,tl,R$[$_$c(z)S*i,g,j,l,o,r,u,w,z_,S%^,f,i,m,p,s,v!W#_e!y$j$m$q$}%b%d%j%k%l%m'V'p({)Y)^)c)e)q)t*s+T+V+W+Y-aW,T!o,n,q,tj,U$[$_$c(z)S*i,g,j,o,r,u,w,z],V%^,f,i,p,s,v!S#ae!y$j$m$q$}%b%d%l%m'V'p({)Y)^)c)e)q)t*s+T+V+W+Y-aS,Z!o,tf,[$[$_$c(z)S*i,g,j,u,w,zX,]%^,f,i,v!Q#be!y$j$m$q$}%b%d%m'V'p({)Y)^)c)e)q)t*s+T+V+W+Y-aQ,^!od,_$[$_$c(z)S*i,g,j,w,zV,`%^,f,iprOScw!U!V!W#O#k#n&|'W'Y)W*k+gR)a']etOScw#O#k#n&|'Y+gQ$S!RT&i$R&jR$S!RQ$V!ST&o$U&pQ&U#xR&m$TS(T&S&lV*{*S*|+^R$V!SQ$Y!TT&t$X&uR$Y!TdsOScw#O#k#n&|'Y+gT$p![!]dtOScw#O#k#n&|'Y+gQ*b(yR+_+QQ$a!VQ&{$_Q)T'RR*g)ST&|$`&}Q+b+SQ+m+fR+v+uT+g+a+hR$i!WR$l!YT'Y$k'ZXuOSw#nQ$s!`R'_$sSSO#nR!dSQ%u#sR'y%uUwOS#nR#mwQ&d#}R(g&dQ(c&`R*Z(cS!mX$^R$z!mQ(O%{R)}(OQ&]#yR(_&]Q(]&YR*X(]'r^OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|#}$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&S&W&]&`&b&d&g&l&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*P*Q*S*`*h*k*l*n*o*p*r*w*|+R+^+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dR!v^S'f%T+PR)m'fQ'c%RR)j'cW#Oc&|'Y+gR%[#O^#Ue$[$_$c$m)^,zU%e#U,O,PQ,O,fR,P,gQ&j$RR(m&jS*Q(S(oR*y*QQ*T(TR*}*TQ&p$UR(r&pQ&u$XR(w&uQ&}$`R)O&}Q+h+aR+o+hQ'Z$kR)['ZQ!cRQ#luQ#nyQ%Z!|Q&x$]Q'R$bQ'x%tQ(^&[Q(f&cQ(l&iQ(q&oR(v&tVxOS#nWuOSw#nY!|c#O&|'Y+gR%r#kdtOScw#O#k#n&|'Y+gQ$]!UQ$b!VQ$g!WQ)X'WQ*j)WR+U*kdeOScw#O#k#n&|'Y+gQ!oYQ!ya`#gmn,{,|,}-O-P-QQ$[!UQ$_!VQ$c!WQ$j!Xd$m!Z#i#j&g&s'P'T'U(k(tQ$q!_Q$}!qQ%^#QQ%b#SQ%d#TW%h#^,Q,R,SQ%i#_Q%j#`Q%k#aQ%l#bQ%m#cQ'V$fQ'p%cQ(z&xQ({&yQ)S'RQ)Y'XQ)^']Q)c'aU)e'b)i*oQ)q'oQ)t'rQ*i)VQ*s)sQ+T*hQ+V*lQ+W*nQ+Y*rS,f#V'wS,g,b,cQ,i+|Q,j+}Q,k,TQ,l,UQ,m,VQ,n,WQ,o,XQ,p,YQ,q,ZQ,r,[Q,s,]Q,t,^Q,u,_Q,v,`Q,w,aU,z'W)W*kV-a&l*`-^#bZW!O!h!t!z#e#h#u#v#y#|$P$Q$T$W$v$x%W%Y%a%x%y&O&W&]&`&m'e'|'}(S([(c(i(o(|)l)|*Q*p*w+R+j+l,h-U-V-W-X-Y-Z-[-]-_-d%P[OSYacmnw!U!V!W!X!Z!_!q#O#Q#S#T#V#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&x&y&|'P'R'T'U'W'X'Y']'a'b'o'r'w(k(t)V)W)i)s*`*h*k*l*n*o*r+g+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,{,|,}-O-P-Q-^$zdOSacmnw!U!V!W!X!Z!_!q#O#Q#S#T#V#^#_#`#a#b#c#i#j#k#n$f%c&g&l&s&x&y&|'P'R'T'U'W'X'Y']'a'b'o'r'w(k(t)V)W)i)s*h*k*l*n*o*r+g+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,{,|,}-O-P-Q-^S!gW-]Q!nYS#{!O-_Q$u!hS%T!t+jS%X!z-UQ%n#e[%o#h#|$x-V-W-XW%w#u'})|*wU&P#v$v,h[&X#y&](S([(o*QQ&f$PQ&h$QQ&n$TQ&r$WS'h%W-YS'i%Y-ZW'l%a(|+R+lS'{%x%yQ(Q&OQ(Y&WQ(d&`Q(p&mU)k'e)l*pQ)z'|Q*[(cS*^(i-[Q+P*`R-c-dS#w|!pS$w!j-TQ&T#xQ(R&QQ(W&UR(X&VT%|#u&OhqOScw!U!V#O#k#n&|'Y+gU$Q!R$R&jU$W!T$X&uQ$e!WY%y#u&O'})|*wQ)`']V-S'W)W*kS&[#y&]S*R(S(oR*z*QY&Y#y&](S(o*QR*W(['``OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"\u26A0 LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:tO,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[nO],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<%lO$X~%|P;=`<%l$X~&UP%l~!_!`&X~&^O#U~~&cR%j~vw&l!_!`&X#Q#R&q~&qO%p~~&vP%o~!_!`&X~'OWd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k<%lO&y~'mOd~~'pRO;'S&y;'S;=`'y;=`O&y~(OXd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k;=`<%l&y<%lO&y~(nP;=`<%l&y~(vO^~~({O]~~)QP%Y~!_!`&X~)YQ%f~{|)`!_!`&X~)eO#R~~)jOn~~)oQ%g~}!O)`!_!`&X~)zRZS!O!P*T!Q![*`#R#S+w~*WP!O!P*Z~*`Ou~Q*eTaQ!Q![*`!g!h*t#R#S+w#X#Y*t#]#^+rQ*wS{|+T}!O+T!Q![+^#R#S+lQ+WQ!Q![+^#R#S+lQ+cRaQ!Q![+^#R#S+l#]#^+rQ+oP!Q![+^Q+wOaQQ+zP!Q![*`~,SR%k~z{,]!P!Q,b!_!`&X~,bO$z~~,gSP~OY,bZ;'S,b;'S;=`,s<%lO,b~,vP;=`<%l,bQ-O[aQ!O!P*`!Q![-t!d!e.c!g!h*t!q!r/Z!z!{/x#R#S.]#U#V.c#X#Y*t#]#^+r#c#d/Z#l#m/xQ-yUaQ!O!P*`!Q![-t!g!h*t#R#S.]#X#Y*t#]#^+rQ.`P!Q![-tQ.fR!Q!R.o!R!S.o#R#S/QQ.tSaQ!Q!R.o!R!S.o#R#S/Q#]#^+rQ/TQ!Q!R.o!R!S.oQ/^Q!Q!Y/d#R#S/rQ/iRaQ!Q!Y/d#R#S/r#]#^+rQ/uP!Q!Y/dQ/{T!O!P0[!Q![1c!c!i1c#R#S2Q#T#Z1cQ0_S!Q![0k!c!i0k#R#S1V#T#Z0kQ0pVaQ!Q![0k!c!i0k!r!s*t#R#S1V#T#Z0k#]#^+r#d#e*tQ1YR!Q![0k!c!i0k#T#Z0kQ1hWaQ!O!P0k!Q![1c!c!i1c!r!s*t#R#S2Q#T#Z1c#]#^+r#d#e*tQ2TR!Q![1c!c!i1c#T#Z1c~2cP!a~!_!`2f~2kO#W~~2pOV~~2uR!|S}!O3O!^!_3T!_!`$S~3TO!Q~~3YP%m~!_!`&X~3bP#T~!_!`$S~3jQ!|S!_!`$S!`!a3p~3uP%n~!_!`&X~3}V%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~4gP;=`<%l3x~4oO!W~~4tO!V~~4yP%i~!_!`&X~5RV%O~!Q![5h!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~5o^aQ%O~!O!P*`!Q![5h!c!g3x!g!h6k!h!}3x#R#S4|#T#X3x#X#Y6k#Y#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[iO,1,2,new y("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:Q=>oO[Q]||-1}],tokenPrec:5451}),S=[P("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),P("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),P("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),P("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),P("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),P("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),P("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),P("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),P(`select { + \${} +}`,{label:"select",detail:"statement",type:"keyword"}),P("case ${}:\n${}",{label:"case",type:"keyword"}),P("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),P("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),P("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),P(`if \${} { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),P('import ${name} "${module}"\n${}',{label:"import",detail:"declaration",type:"keyword"})],T=new x,p=new Set(["SourceFile","Block","FunctionDecl","MethodDecl","FunctionLiteral","ForStatement","SwitchStatement","TypeSwitchStatement","IfStatement"]);function o(Q,e){return(t,a)=>{O:for(let X=t.node.firstChild,c=0,i=null;;){for(;!X;){if(!c)break O;c--,X=i.nextSibling,i=i.parent}e&&X.name==e||X.name=="SpecList"?(c++,i=X,X=X.firstChild):(X.name=="DefName"&&a(X,Q),X=X.nextSibling)}return!0}}var rO={FunctionDecl:o("function"),VarDecl:o("var","VarSpec"),ConstDecl:o("constant","ConstSpec"),TypeDecl:o("type","TypeSpec"),ImportDecl:o("constant","ImportSpec"),Parameter:o("var"),__proto__:null};function W(Q,e){let t=T.get(e);if(t)return t;let a=[],X=!0;function c(i,n){let R=Q.sliceString(i.from,i.to);a.push({label:R,type:n})}return e.cursor(d.IncludeAnonymous).iterate(i=>{if(X)X=!1;else if(i.name){let n=rO[i.name];if(n&&n(i,c)||p.has(i.name))return!1}else if(i.to-i.from>8192){for(let n of W(Q,i.node))a.push(n);return!1}}),T.set(e,a),a}var V=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,m=["String","LineComment","BlockComment","DefName","LabelName","FieldName",".","?."],Y=Q=>{let e=s(Q.state).resolveInner(Q.pos,-1);if(m.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&V.test(Q.state.sliceDoc(e.from,e.to));if(!t&&!Q.explicit)return null;let a=[];for(let X=e;X;X=X.parent)p.has(X.name)&&(a=a.concat(W(Q.state.doc,X)));return{options:a,from:t?e.from:Q.pos,validFor:V}},r=g.define({name:"go",parser:cO.configure({props:[k.add({IfStatement:$({except:/^\s*({|else\b)/}),LabeledStatement:b,"SwitchBlock SelectBlock":Q=>{let e=Q.textAfter,t=/^\s*\}/.test(e),a=/^\s*(case|default)\b/.test(e);return Q.baseIndent+(t||a?0:Q.unit)},Block:Z({closing:"}"}),BlockComment:()=>null,Statement:$({except:/^{/})}),w.add({"Block SwitchBlock SelectBlock LiteralValue InterfaceType StructType SpecList":h,BlockComment(Q){return{from:Q.from+2,to:Q.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case\b|default\b|\})$/}}),$O="interface struct chan map package go return break continue goto fallthrough else defer range true false nil".split(" ").map(Q=>({label:Q,type:"keyword"}));function lO(){let Q=S.concat($O);return new G(r,[r.data.of({autocomplete:_(m,q(Q))}),r.data.of({autocomplete:Y})])}export{S as i,r as n,Y as r,lO as t}; diff --git a/docs/assets/dist-D0NgYwYf.js b/docs/assets/dist-D0NgYwYf.js new file mode 100644 index 0000000..fc6be23 --- /dev/null +++ b/docs/assets/dist-D0NgYwYf.js @@ -0,0 +1 @@ +import{s as o}from"./chunk-LvLJmgfZ.js";import{t as p}from"./react-BGmjiNul.js";import{t as n}from"./react-dom-C9fstfnp.js";import{t as d}from"./jsx-runtime-DN_bIXfG.js";import{a as u}from"./button-B8cGZzP5.js";var v=o(p(),1);n();var w=o(d(),1),b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,r)=>{let t=u(`Primitive.${r}`),i=v.forwardRef((e,m)=>{let{asChild:s,...f}=e,l=s?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,w.jsx)(l,{...f,ref:m})});return i.displayName=`Primitive.${r}`,{...a,[r]:i}},{});export{b as t}; diff --git a/docs/assets/dist-D9Fiuh_3.js b/docs/assets/dist-D9Fiuh_3.js new file mode 100644 index 0000000..4eef1ec --- /dev/null +++ b/docs/assets/dist-D9Fiuh_3.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{i as s,n as a,r as o,t as e}from"./dist-BVf1IY4_.js";export{e as css,a as cssCompletionSource,o as cssLanguage,s as defineCSSCompletionSource}; diff --git a/docs/assets/dist-DKNOF5xd.js b/docs/assets/dist-DKNOF5xd.js new file mode 100644 index 0000000..7a961a1 --- /dev/null +++ b/docs/assets/dist-DKNOF5xd.js @@ -0,0 +1 @@ +import{$t as Ut,At as qt,H as U,Ht as Q,I as Wt,Jt as X,Kt as Ht,Lt as Y,Pt as jt,Qt as k,St as rt,Tt as J,Ut as Z,Vt as lt,Wt as Vt,Xt as zt,Yt as Kt,Zt as C,at as L,ct as Qt,gt as at,it as Xt,lt as Yt,nn as ct,qt as D,rt as q,zt as x}from"./dist-CAcX026F.js";var G=class{constructor(e,t,n,i){this.state=e,this.pos=t,this.explicit=n,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=U(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),o=i.search(ut(e,!1));return o<0?null:{from:n+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function ht(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Jt(e){let t=Object.create(null),n=Object.create(null);for(let{label:o}of e){t[o[0]]=!0;for(let s=1;stypeof o=="string"?{label:o}:o),[n,i]=t.every(o=>/^\w+$/.test(o.label))?[/\w*$/,/\w+$/]:Jt(t);return o=>{let s=o.matchBefore(i);return s||o.explicit?{from:s?s.from:o.pos,options:t,validFor:n}:null}}function Zt(e,t){return n=>{for(let i=U(n.state).resolveInner(n.pos,-1);i;i=i.parent){if(e.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return t(n)}}var ft=class{constructor(e,t,n,i){this.completion=e,this.source=t,this.match=n,this.score=i}};function T(e){return e.selection.main.from}function ut(e,t){let{source:n}=e,i=t&&n[0]!="^",o=n[n.length-1]!="$";return!i&&!o?e:RegExp(`${i?"^":""}(?:${n})${o?"$":""}`,e.flags??(e.ignoreCase?"i":""))}var _=jt.define();function dt(e,t,n,i){let{main:o}=e.selection,s=n-o.from,l=i-o.from;return{...e.changeByRange(r=>{if(r!=o&&n!=i&&e.sliceDoc(r.from+s,r.from+l)!=e.sliceDoc(n,i))return{range:r};let a=e.toText(t);return{changes:{from:r.from+s,to:i==o.from?r.to:r.from+l,insert:a},range:x.cursor(r.from+s+a.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}var mt=new WeakMap;function Gt(e){if(!Array.isArray(e))return e;let t=mt.get(e);return t||mt.set(e,t=pt(e)),t}var W=D.define(),R=D.define(),_t=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&b<=57||b>=97&&b<=122?2:b>=65&&b<=90?1:0:(N=ct(b))==N.toLowerCase()?N==N.toUpperCase()?0:2:1;(!d||K==1&&y||I==0&&K!=0)&&(t[c]==b||n[c]==b&&(h=!0)?s[c++]=d:s.length&&(O=!1)),I=K,d+=k(b)}return c==r&&s[0]==0&&O?this.result(-100+(h?-200:0),s,e):f==r&&u==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):f==r?this.ret(-900-e.length,[u,m]):c==r?this.result(-100+(h?-200:0)+-700+(O?0:-1100),s,e):t.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],o=0;for(let s of t){let l=s+(this.astral?k(C(n,s)):1);o&&i[o-1]==s?i[o-1]=l:(i[o++]=s,i[o++]=l)}return this.ret(e-n.length,i)}},te=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ee,filterStrict:!1,compareCompletions:(t,n)=>(t.sortText||t.label).localeCompare(n.sortText||n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>i=>gt(t(i),n(i)),optionClass:(t,n)=>i=>gt(t(i),n(i)),addToOptions:(t,n)=>t.concat(n),filterStrict:(t,n)=>t||n})}});function gt(e,t){return e?t?e+" "+t:e:t}function ee(e,t,n,i,o,s){let l=e.textDirection==Xt.RTL,r=l,a=!1,p="top",c,h,f=t.left-o.left,u=o.right-t.right,m=i.right-i.left,y=i.bottom-i.top;if(r&&f=y||w>t.top?c=n.bottom-t.top:(p="bottom",c=t.bottom-n.top)}let O=(t.bottom-t.top)/s.offsetHeight,d=(t.right-t.left)/s.offsetWidth;return{style:`${p}: ${c/O}px; max-width: ${h/d}px`,class:"cm-completionInfo-"+(a?l?"left-narrow":"right-narrow":r?"left":"right")}}function ne(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(o=>"cm-completionIcon-"+o)),i.setAttribute("aria-hidden","true"),i},position:20}),t.push({render(n,i,o,s){let l=document.createElement("span");l.className="cm-completionLabel";let r=n.displayLabel||n.label,a=0;for(let p=0;pa&&l.appendChild(document.createTextNode(r.slice(a,c)));let f=l.appendChild(document.createElement("span"));f.appendChild(document.createTextNode(r.slice(c,h))),f.className="cm-completionMatchedText",a=h}return an.position-i.position).map(n=>n.render)}function tt(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let o=Math.floor(t/n);return{from:o*n,to:(o+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}var ie=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:r=>this.placeInfo(r),key:this},this.space=null,this.currentClass="";let i=e.state.field(t),{options:o,selected:s}=i.open,l=e.state.facet(g);this.optionContent=ne(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=tt(o.length,s,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",r=>{let{options:a}=e.state.field(t).open;for(let p=r.target,c;p&&p!=this.dom;p=p.parentNode)if(p.nodeName=="LI"&&(c=/-(\d+)$/.exec(p.id))&&+c[1]{let a=e.state.field(this.stateField,!1);a&&a.tooltip&&e.state.facet(g).closeOnBlur&&r.relatedTarget!=e.contentDOM&&e.dispatch({effects:R.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var i;let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:o,selected:s,disabled:l}=t.open;(!n.open||n.open.options!=o)&&(this.range=tt(o.length,s,e.state.facet(g).maxRenderedOptions),this.showOptions(o,t.id)),this.updateSel(),l!=((i=n.open)==null?void 0:i.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected=this.range.to)&&(this.range=tt(t.options.length,t.selected,this.view.state.facet(g).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:i}=t.options[t.selected],{info:o}=i;if(!o)return;let s=typeof o=="string"?document.createTextNode(o):o(i);if(!s)return;"then"in s?s.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,i)}).catch(l=>J(this.view.state,l,"completion info")):(this.addInfoPane(s,i),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:o}=e;n.appendChild(i),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)n.nodeName!="LI"||!n.id?i--:i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&(n.removeAttribute("aria-selected"),n.removeAttribute("aria-describedby"));return t&&se(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),o=this.space;if(!o){let s=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:s.clientWidth,bottom:s.clientHeight}}return i.top>Math.min(o.bottom,t.bottom)-10||i.bottom{s.target==i&&s.preventDefault()});let o=null;for(let s=n.from;sn.from||n.from==0))if(o=h,typeof a!="string"&&a.header)i.appendChild(a.header(a));else{let f=i.appendChild(document.createElement("completion-section"));f.textContent=h}}let p=i.appendChild(document.createElement("li"));p.id=t+"-"+s,p.setAttribute("role","option");let c=this.optionClass(l);c&&(p.className=c);for(let h of this.optionContent){let f=h(l,this.view.state,this.view,r);f&&p.appendChild(f)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.tonew ie(n,e,t)}function se(e,t){let n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=n.height/e.offsetHeight;i.topn.bottom&&(e.scrollTop+=(i.bottom-n.bottom)/o)}function vt(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function re(e,t){let n=[],i=null,o=null,s=c=>{n.push(c);let{section:h}=c.completion;if(h){i||(i=[]);let f=typeof h=="string"?h:h.name;i.some(u=>u.name==f)||i.push(typeof h=="string"?{name:f}:h)}},l=t.facet(g);for(let c of e)if(c.hasResult()){let h=c.result.getMatch;if(c.result.filter===!1)for(let f of c.result.options)s(new ft(f,c.source,h?h(f):[],1e9-n.length));else{let f=t.sliceDoc(c.from,c.to),u,m=l.filterStrict?new te(f):new _t(f);for(let y of c.result.options)if(u=m.match(y.label)){let O=y.displayLabel?h?h(y,u.matched):[]:u.matched,d=u.score+(y.boost||0);if(s(new ft(y,c.source,O,d)),typeof y.section=="object"&&y.section.rank==="dynamic"){let{name:w}=y.section;o||(o=Object.create(null)),o[w]=Math.max(d,o[w]||-1e9)}}}}if(i){let c=Object.create(null),h=0,f=(u,m)=>(u.rank==="dynamic"&&m.rank==="dynamic"?o[m.name]-o[u.name]:0)||(typeof u.rank=="number"?u.rank:1e9)-(typeof m.rank=="number"?m.rank:1e9)||(u.namef.score-h.score||p(h.completion,f.completion))){let h=c.completion;!a||a.label!=h.label||a.detail!=h.detail||a.type!=null&&h.type!=null&&a.type!=h.type||a.apply!=h.apply||a.boost!=h.boost?r.push(c):vt(c.completion)>vt(a)&&(r[r.length-1]=c),a=c.completion}return r}var le=class F{constructor(t,n,i,o,s,l){this.options=t,this.attrs=n,this.tooltip=i,this.timestamp=o,this.selected=s,this.disabled=l}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new F(this.options,bt(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,i,o,s,l){if(o&&!l&&t.some(p=>p.isPending))return o.setDisabled();let r=re(t,n);if(!r.length)return o&&t.some(p=>p.isPending)?o.setDisabled():null;let a=n.facet(g).selectOnOpen?0:-1;if(o&&o.selected!=a&&o.selected!=-1){let p=o.options[o.selected].completion;for(let c=0;cc.hasResult()?Math.min(p,c.from):p,1e8),create:de,above:s.aboveCursor},o?o.timestamp:Date.now(),a,!1)}map(t){return new F(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new F(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},ae=class st{constructor(t,n,i){this.active=t,this.id=n,this.open=i}static start(){return new st(fe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,i=n.facet(g),o=(i.override||n.languageDataAt("autocomplete",T(n)).map(Gt)).map(r=>(this.active.find(a=>a.source==r)||new A(r,this.active.some(a=>a.state!=0)?1:0)).update(t,i));o.length==this.active.length&&o.every((r,a)=>r==this.active[a])&&(o=this.active);let s=this.open,l=t.effects.some(r=>r.is(et));s&&t.docChanged&&(s=s.map(t.changes)),t.selection||o.some(r=>r.hasResult()&&t.changes.touchesRange(r.from,r.to))||!ce(o,this.active)||l?s=le.build(o,n,this.id,s,i,l):s&&s.disabled&&!o.some(r=>r.isPending)&&(s=null),!s&&o.every(r=>!r.isPending)&&o.some(r=>r.hasResult())&&(o=o.map(r=>r.hasResult()?new A(r.source,0):r));for(let r of t.effects)r.is(xt)&&s&&(s=s.setSelected(r.value,this.id));return o==this.active&&s==this.open?this:new st(o,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?he:pe}};function ce(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}var fe=[];function yt(e,t){if(e.isUserEvent("input.complete")){let i=e.annotation(_);if(i&&t.activateOnCompletion(i))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}var A=class ${constructor(t,n,i=!1){this.source=t,this.state=n,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let i=yt(t,n),o=this;(i&8||i&16&&this.touches(t))&&(o=new $(o.source,0)),i&4&&o.state==0&&(o=new $(this.source,1)),o=o.updateFor(t,i);for(let s of t.effects)if(s.is(W))o=new $(o.source,1,s.value);else if(s.is(R))o=new $(o.source,0);else if(s.is(et))for(let l of s.value)l.source==o.source&&(o=l);return o}updateFor(t,n){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(T(t.state))}},wt=class z extends A{constructor(t,n,i,o,s,l){super(t,3,n),this.limit=i,this.result=o,this.from=s,this.to=l}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let o=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),l=T(t.state);if(l>s||!i||n&2&&(T(t.startState)==this.from||ln.map(t))}}),xt=D.define(),v=X.define({create(){return ae.start()},update(e,t){return e.update(t)},provide:e=>[qt.from(e,t=>t.tooltip),L.contentAttributes.from(e,t=>t.attrs)]});function nt(e,t){let n=t.completion.apply||t.completion.label,i=e.state.field(v).active.find(o=>o.source==t.source);return i instanceof wt?(typeof n=="string"?e.dispatch({...dt(e.state,n,i.from,i.to),annotations:_.of(t.completion)}):n(e,t.completion,i.from,i.to),!0):!1}var de=oe(v,nt);function E(e,t="option"){return n=>{let i=n.state.field(v,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+o*(e?1:-1):e?0:l-1;return r<0?r=t=="page"?0:l-1:r>=l&&(r=t=="page"?l-1:0),n.dispatch({effects:xt.of(r)}),!0}}var Ct=e=>{let t=e.state.field(v,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(v,!1)?(e.dispatch({effects:W.of(!0)}),!0):!1,It=e=>{let t=e.state.field(v,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:R.of(null)}),!0)},me=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},ge=50,ve=1e3,be=Qt.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(v).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(v),n=e.state.facet(g);if(!e.selectionSet&&!e.docChanged&&e.startState.field(v)==t)return;let i=e.transactions.some(s=>{let l=yt(s,n);return l&8||(s.selection||s.docChanged)&&!(l&3)});for(let s=0;sge&&Date.now()-l.time>ve){for(let r of l.context.abortListeners)try{r()}catch(a){J(this.view.state,a)}l.context.abortListeners=null,this.running.splice(s--,1)}else l.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(s=>s.effects.some(l=>l.is(W)))&&(this.pendingStart=!0);let o=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(s=>s.isPending&&!this.running.some(l=>l.active.source==s.source))?setTimeout(()=>this.startUpdate(),o):-1,this.composing!=0)for(let s of e.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(v);for(let n of t.active)n.isPending&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(g).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new G(t,T(t),e.explicit,this.view),i=new me(e,n);this.running.push(i),Promise.resolve(e.source(n)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:R.of(null)}),J(this.view.state,o)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(g).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(g),n=this.view.state.field(v);for(let i=0;il.source==o.active.source);if(s&&s.isPending)if(o.done==null){let l=new A(o.active.source,0);for(let r of o.updates)l=l.update(r,t);l.isPending||e.push(l)}else this.startQuery(s)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:et.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(v,!1);if(t&&t.tooltip&&this.view.state.facet(g).closeOnBlur){let n=t.open&&at(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:R.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:W.of(!1)}),20),this.composing=0}}}),ye=typeof navigator=="object"&&/Win/.test(navigator.platform),we=Z.highest(L.domEventHandlers({keydown(e,t){let n=t.state.field(v,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(ye&&e.altKey)||e.metaKey)return!1;let i=n.open.options[n.open.selected],o=n.active.find(l=>l.source==i.source),s=i.completion.commitCharacters||o.result.commitCharacters;return s&&s.indexOf(e.key)>-1&&nt(t,i),!1}})),kt=L.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),xe=class{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}},Ce=class Ft{constructor(t,n,i){this.field=t,this.from=n,this.to=i}map(t){let n=t.mapPos(this.from,-1,Q.TrackDel),i=t.mapPos(this.to,1,Q.TrackDel);return n==null||i==null?null:new Ft(this.field,n,i)}},Ie=class $t{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let i=[],o=[n],s=t.doc.lineAt(n),l=/^\s*/.exec(s.text)[0];for(let r of this.lines){if(i.length){let a=l,p=/^\t*/.exec(r)[0].length;for(let c=0;cnew Ce(r.field,o[r.line]+r.from,o[r.line]+r.to))}}static parse(t){let n=[],i=[],o=[],s;for(let l of t.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(l);){let r=s[1]?+s[1]:null,a=s[2]||s[3]||"",p=-1,c=a.replace(/\\[{}]/g,h=>h[1]);for(let h=0;h=p&&f.field++}for(let h of o)if(h.line==i.length&&h.from>s.index){let f=s[2]?3+(s[1]||"").length:2;h.from-=f,h.to-=f}o.push(new xe(p,i.length,s.index,s.index+c.length)),l=l.slice(0,s.index)+a+l.slice(s.index+s[0].length)}l=l.replace(/\\([{}])/g,(r,a,p)=>{for(let c of o)c.line==i.length&&c.from>p&&(c.from--,c.to--);return a}),i.push(l)}return new $t(i,o)}},ke=q.widget({widget:new class extends Yt{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),De=q.mark({class:"cm-snippetField"}),j=class Nt{constructor(t,n){this.ranges=t,this.active=n,this.deco=q.set(t.map(i=>(i.from==i.to?ke:De).range(i.from,i.to)),!0)}map(t){let n=[];for(let i of this.ranges){let o=i.map(t);if(!o)return null;n.push(o)}return new Nt(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(i=>i.field==this.active&&i.from<=n.from&&i.to>=n.to))}},P=D.define({map(e,t){return e&&e.map(t)}}),Oe=D.define(),M=X.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(P))return n.value;if(n.is(Oe)&&e)return new j(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>L.decorations.from(e,t=>t?t.deco:q.none)});function it(e,t){return x.create(e.filter(n=>n.field==t).map(n=>x.range(n.from,n.to)))}function Dt(e){let t=Ie.parse(e);return(n,i,o,s)=>{let{text:l,ranges:r}=t.instantiate(n.state,o),{main:a}=n.state.selection,p={changes:{from:o,to:s==a.from?a.to:s,insert:Kt.of(l)},scrollIntoView:!0,annotations:i?[_.of(i),zt.userEvent.of("input.complete")]:void 0};if(r.length&&(p.selection=it(r,0)),r.some(c=>c.field>0)){let c=new j(r,0),h=p.effects=[P.of(c)];n.state.field(M,!1)===void 0&&h.push(D.appendConfig.of([M,Ae,Le,kt]))}n.dispatch(n.state.update(p))}}function Ot(e){return({state:t,dispatch:n})=>{let i=t.field(M,!1);if(!i||e<0&&i.active==0)return!1;let o=i.active+e,s=e>0&&!i.ranges.some(l=>l.field==o+e);return n(t.update({selection:it(i.ranges,o),effects:P.of(s?null:new j(i.ranges,o)),scrollIntoView:!0})),!0}}var Te=[{key:"Tab",run:Ot(1),shift:Ot(-1)},{key:"Escape",run:({state:e,dispatch:t})=>e.field(M,!1)?(t(e.update({effects:P.of(null)})),!0):!1}],Tt=lt.define({combine(e){return e.length?e[0]:Te}}),Ae=Z.highest(rt.compute([Tt],e=>e.facet(Tt)));function Se(e,t){return{...t,apply:Dt(e)}}var Le=L.domEventHandlers({mousedown(e,t){let n=t.state.field(M,!1),i;if(!n||(i=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let o=n.ranges.find(s=>s.from<=i&&s.to>=i);return!o||o.field==n.active?!1:(t.dispatch({selection:it(n.ranges,o.field),effects:P.of(n.ranges.some(s=>s.field>o.field)?new j(n.ranges,o.field):null),scrollIntoView:!0}),!0)}}),B={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},S=D.define({map(e,t){return t.mapPos(e,-1,Q.TrackAfter)??void 0}}),ot=new class extends Ht{};ot.startSide=1,ot.endSide=-1;var At=X.define({create(){return Vt.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of t.effects)n.is(S)&&(e=e.update({add:[ot.range(n.value,n.value+1)]}));return e}});function Re(){return[Pe,At]}var St="()[]{}<>\xAB\xBB\xBB\xAB\uFF3B\uFF3D\uFF5B\uFF5D";function Lt(e){for(let t=0;t<16;t+=2)if(St.charCodeAt(t)==e)return St.charAt(t+1);return ct(e<128?e:e+1)}function Rt(e,t){return e.languageDataAt("closeBrackets",t)[0]||B}var Ee=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Pe=L.inputHandler.of((e,t,n,i)=>{if((Ee?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||i.length==2&&k(C(i,0))==1||t!=o.from||n!=o.to)return!1;let s=Be(e.state,i);return s?(e.dispatch(s),!0):!1}),Me=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Rt(e,e.selection.main.head).brackets||B.brackets,i=null,o=e.changeByRange(s=>{if(s.empty){let l=Fe(e.doc,s.head);for(let r of n)if(r==l&&V(e.doc,s.head)==Lt(C(r,0)))return{changes:{from:s.head-r.length,to:s.head+r.length},range:x.cursor(s.head-r.length)}}return{range:i=s}});return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function Be(e,t){let n=Rt(e,e.selection.main.head),i=n.brackets||B.brackets;for(let o of i){let s=Lt(C(o,0));if(t==o)return s==o?Ue(e,o,i.indexOf(o+o+o)>-1,n):$e(e,o,s,n.before||B.before);if(t==s&&Et(e,e.selection.main.from))return Ne(e,o,s)}return null}function Et(e,t){let n=!1;return e.field(At).between(0,e.doc.length,i=>{i==t&&(n=!0)}),n}function V(e,t){let n=e.sliceString(t,t+2);return n.slice(0,k(C(n,0)))}function Fe(e,t){let n=e.sliceString(t-2,t);return k(C(n,0))==n.length?n:n.slice(1)}function $e(e,t,n,i){let o=null,s=e.changeByRange(l=>{if(!l.empty)return{changes:[{insert:t,from:l.from},{insert:n,from:l.to}],effects:S.of(l.to+t.length),range:x.range(l.anchor+t.length,l.head+t.length)};let r=V(e.doc,l.head);return!r||/\s/.test(r)||i.indexOf(r)>-1?{changes:{insert:t+n,from:l.head},effects:S.of(l.head+t.length),range:x.cursor(l.head+t.length)}:{range:o=l}});return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Ne(e,t,n){let i=null,o=e.changeByRange(s=>s.empty&&V(e.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:x.cursor(s.head+n.length)}:i={range:s});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Ue(e,t,n,i){let o=i.stringPrefixes||B.stringPrefixes,s=null,l=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:S.of(r.to+t.length),range:x.range(r.anchor+t.length,r.head+t.length)};let a=r.head,p=V(e.doc,a),c;if(p==t){if(Pt(e,a))return{changes:{insert:t+t,from:a},effects:S.of(a+t.length),range:x.cursor(a+t.length)};if(Et(e,a)){let h=n&&e.sliceDoc(a,a+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:a,to:a+h.length,insert:h},range:x.cursor(a+h.length)}}}else{if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(c=Mt(e,a-2*t.length,o))>-1&&Pt(e,c))return{changes:{insert:t+t+t+t,from:a},effects:S.of(a+t.length),range:x.cursor(a+t.length)};if(e.charCategorizer(a)(p)!=Y.Word&&Mt(e,a,o)>-1&&!qe(e,a,t,o))return{changes:{insert:t+t,from:a},effects:S.of(a+t.length),range:x.cursor(a+t.length)}}return{range:s=r}});return s?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Pt(e,t){let n=U(e).resolveInner(t+1);return n.parent&&n.from==t}function qe(e,t,n,i){let o=U(e).resolveInner(t,-1),s=i.reduce((l,r)=>Math.max(l,r.length),0);for(let l=0;l<5;l++){let r=e.sliceDoc(o.from,Math.min(o.to,o.from+n.length+s)),a=r.indexOf(n);if(!a||a>-1&&i.indexOf(r.slice(0,a))>-1){let c=o.firstChild;for(;c&&c.from==o.from&&c.to-c.from>n.length+a;){if(e.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let p=o.to==t&&o.parent;if(!p)break;o=p}return!1}function Mt(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=Y.Word)return t;for(let o of n){let s=t-o.length;if(e.sliceDoc(s,t)==o&&i(e.sliceDoc(s-1,s))!=Y.Word)return s}return-1}function We(e={}){return[we,v,g.of(e),be,He,kt]}var Bt=[{key:"Ctrl-Space",run:H},{mac:"Alt-`",run:H},{mac:"Alt-i",run:H},{key:"Escape",run:It},{key:"ArrowDown",run:E(!0)},{key:"ArrowUp",run:E(!1)},{key:"PageDown",run:E(!0,"page")},{key:"PageUp",run:E(!1,"page")},{key:"Enter",run:Ct}],He=Z.highest(rt.computeN([g],e=>e.facet(g).defaultKeymap?[Bt]:[]));function je(e){let t=e.field(v,!1);return t&&t.active.some(n=>n.isPending)?"pending":t&&t.active.some(n=>n.state!=0)?"active":null}export{Me as a,Bt as c,dt as d,E as f,H as h,Re as i,je as l,Se as m,Ct as n,It as o,Dt as p,We as r,pt as s,G as t,Zt as u}; diff --git a/docs/assets/dist-DWPMWcXL.js b/docs/assets/dist-DWPMWcXL.js new file mode 100644 index 0000000..0d03bd6 --- /dev/null +++ b/docs/assets/dist-DWPMWcXL.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{n as a,r as t,t as m}from"./dist-BsIAU6bk.js";export{m as yaml,a as yamlFrontmatter,t as yamlLanguage}; diff --git a/docs/assets/dist-Dh6p3Rvf.js b/docs/assets/dist-Dh6p3Rvf.js new file mode 100644 index 0000000..56db68e --- /dev/null +++ b/docs/assets/dist-Dh6p3Rvf.js @@ -0,0 +1 @@ +import{J as r,n as l,nt as o,q as P,r as g,s as R,u as $}from"./dist-CAcX026F.js";import{n as m}from"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import{a as Q}from"./dist-Cq_4nPfh.js";var c=1,b=33,v=34,W=35,f=36,d=new l(O=>{let e=O.pos;for(;;){if(O.next==10){O.advance();break}else if(O.next==123&&O.peek(1)==123||O.next<0)break;O.advance()}O.pos>e&&O.acceptToken(c)});function n(O,e,a){return new l(t=>{let q=t.pos;for(;t.next!=O&&t.next>=0&&(a||t.next!=38&&(t.next!=123||t.peek(1)!=123));)t.advance();t.pos>q&&t.acceptToken(e)})}var C=n(39,b,!1),T=n(34,v,!1),x=n(39,W,!0),V=n(34,f,!0),U=g.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<O.name=="InterpolationContent"?i:null)}),N=S.configure({wrap:o((O,e)=>{var a;return O.name=="InterpolationContent"?i:O.name=="AttributeInterpolation"?((a=O.node.parent)==null?void 0:a.name)=="StatementAttributeValue"?y:i:null}),top:"Attribute"}),E={parser:A},k={parser:N},p=m({selfClosingTags:!0});function s(O){return O.configure({wrap:o(z)},"angular")}var u=s(p.language);function z(O,e){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(e.read(O.from,O.to))?k:null;case"Text":return E}return null}function I(O={}){let e=p;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof R))throw RangeError("The base option must be the result of calling html(...)");e=O.base}return new $(e.language==p.language?u:s(e.language),[e.support,e.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}export{I as angular,u as angularLanguage}; diff --git a/docs/assets/dist-HGZzCB0y.js b/docs/assets/dist-HGZzCB0y.js new file mode 100644 index 0000000..12287e6 --- /dev/null +++ b/docs/assets/dist-HGZzCB0y.js @@ -0,0 +1,6 @@ +import{Bt as ue,D as lt,G as ce,H as N,I as de,J as m,N as pe,O as me,Q as q,R as ge,St as ke,Ut as xe,X as E,Z as ht,at as Le,c as be,d as Se,en as O,et as Ce,l as ft,nt as we,q as ut,tt as v,u as ct,v as ye,zt as H}from"./dist-CAcX026F.js";import{t as Ae}from"./dist-DKNOF5xd.js";import{n as Ie,r as Te}from"./dist-CVj-_Iiz.js";var dt=class le{static create(e,r,n,s,i){return new le(e,r,n,s+(s<<8)+e+(r<<4)|0,i,[],[])}constructor(e,r,n,s,i,o,a){this.type=e,this.value=r,this.from=n,this.hash=s,this.end=i,this.children=o,this.positions=a,this.hashProp=[[E.contextHash,s]]}addChild(e,r){e.prop(E.contextHash)!=this.hash&&(e=new v(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(r)}toTree(e,r=this.end){let n=this.children.length-1;return n>=0&&(r=Math.max(r,this.positions[n]+this.children[n].length+this.from)),new v(e.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(s,i,o)=>new v(q.none,s,i,o,this.hashProp)})}},u;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(u||(u={}));var ve=class{constructor(t,e){this.start=t,this.content=e,this.marks=[],this.parsers=[]}},Be=class{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return R(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,e=0,r=0){for(let n=e;n=e.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let n=(t.type==u.OrderedList?V:_)(r,e,!1);return n>0&&(t.type!=u.BulletList||Z(r,e,!1)<0)&&r.text.charCodeAt(r.pos+n-1)==t.value}var mt={[u.Blockquote](t,e,r){return r.next==62?(r.markers.push(g(u.QuoteMark,e.lineStart+r.pos,e.lineStart+r.pos+1)),r.moveBase(r.pos+(w(r.text.charCodeAt(r.pos+1))?2:1)),t.end=e.lineStart+r.text.length,!0):!1},[u.ListItem](t,e,r){return r.indent-1?!1:(r.moveBaseColumn(r.baseIndent+t.value),!0)},[u.OrderedList]:pt,[u.BulletList]:pt,[u.Document](){return!0}};function w(t){return t==32||t==9||t==10||t==13}function R(t,e=0){for(;er&&w(t.charCodeAt(e-1));)e--;return e}function kt(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(It.SetextHeading)>-1||n<3?-1:1}function Lt(t,e){for(let r=t.stack.length-1;r>=0;r--)if(t.stack[r].type==e)return!0;return!1}function _(t,e,r){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||w(t.text.charCodeAt(t.pos+1)))&&(!r||Lt(e,u.BulletList)||t.skipSpace(t.pos+2)=48&&s<=57;){if(n++,n==t.text.length)return-1;s=t.text.charCodeAt(n)}return n==t.pos||n>t.pos+9||s!=46&&s!=41||nt.pos+1||t.next!=49)?-1:n+1-t.pos}function bt(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:r}function St(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,wt=/\?>/,J=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(n);if(i)return t.append(g(u.Comment,r,r+1+i[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return t.append(g(u.ProcessingInstruction,r,r+1+o[0].length));let a=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return a?t.append(g(u.HTMLTag,r,r+1+a[0].length)):-1},Emphasis(t,e,r){if(e!=95&&e!=42)return-1;let n=r+1;for(;t.char(n)==e;)n++;let s=t.slice(r-1,r),i=t.slice(n,n+1),o=D.test(s),a=D.test(i),l=/\s|^$/.test(s),h=/\s|^$/.test(i),f=!h&&(!a||l||o),d=!l&&(!o||h||a),c=f&&(e==42||!d||o),p=d&&(e==42||!f||a);return t.append(new C(e==95?Mt:Pt,r,n,(c?1:0)|(p?2:0)))},HardBreak(t,e,r){if(e==92&&t.char(r+1)==10)return t.append(g(u.HardBreak,r,r+2));if(e==32){let n=r+1;for(;t.char(n)==32;)n++;if(t.char(n)==10&&n>=r+2)return t.append(g(u.HardBreak,r,n+1))}return-1},Link(t,e,r){return e==91?t.append(new C(B,r,r+1,1)):-1},Image(t,e,r){return e==33&&t.char(r+1)==91?t.append(new C(Q,r,r+2,1)):-1},LinkEnd(t,e,r){if(e!=93)return-1;for(let n=t.parts.length-1;n>=0;n--){let s=t.parts[n];if(s instanceof C&&(s.type==B||s.type==Q)){if(!s.side||t.skipSpace(s.to)==r&&!/[(\[]/.test(t.slice(r+1,r+2)))return t.parts[n]=null,-1;let i=t.takeContent(n),o=t.parts[n]=Re(t,i,s.type==B?u.Link:u.Image,s.from,r+1);if(s.type==B)for(let a=0;ae?g(u.URL,e+r,s+r):s==t.length?null:!1}}function Ot(t,e,r){let n=t.charCodeAt(e);if(n!=39&&n!=34&&n!=40)return!1;let s=n==40?41:n;for(let i=e+1,o=!1;i=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,e){return this.text.slice(t-this.offset,e-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,e,r,n,s){return this.append(new C(t,e,r,(n?1:0)|(s?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let e=this.parts[t];if(e instanceof C&&(e.type==B||e.type==Q))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;a--){let p=this.parts[a];if(p instanceof C&&p.side&1&&p.type==n.type&&!(s&&(n.side&1||p.side&2)&&(p.to-p.from+i)%3==0&&((p.to-p.from)%3||i%3))){o=p;break}}if(!o)continue;let l=n.type.resolve,h=[],f=o.from,d=n.to;if(s){let p=Math.min(2,o.to-o.from,i);f=o.to-p,d=n.from+p,l=p==1?"Emphasis":"StrongEmphasis"}o.type.mark&&h.push(this.elt(o.type.mark,f,o.to));for(let p=a+1;p=0;e--){let r=this.parts[e];if(r instanceof C&&r.type==t&&r.side&1)return e}return null}takeContent(t){let e=this.resolveMarkers(t);return this.parts.length=t,e}getDelimiterAt(t){let e=this.parts[t];return e instanceof C?e:null}skipSpace(t){return R(this.text,t-this.offset)+this.offset}elt(t,e,r,n){return typeof t=="string"?g(this.parser.getNodeType(t),e,r,n):new Ht(t,e)}};tt.linkStart=B,tt.imageStart=Q;function et(t,e){if(!e.length)return t;if(!t.length)return e;let r=t.slice(),n=0;for(let s of e){for(;n(t?t-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=` +`;)s--;this.fragmentEnd=s?s-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let n=t+this.fragment.offset;for(;r.to<=n;)if(!r.parent())return!1;for(;;){if(r.from>=n)return this.fragment.from<=e;if(!r.childAfter(n))return!1}}matches(t){let e=this.cursor.tree;return e&&e.prop(E.contextHash)==t}takeNodes(t){let e=this.cursor,r=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0),s=t.absoluteLineStart,i=s,o=t.block.children.length,a=i,l=o;for(;;){if(e.to-r>n){if(e.type.isAnonymous&&e.firstChild())continue;break}let h=Xt(e.from-r,t.ranges);if(e.to-r<=t.ranges[t.rangeI].to)t.addNode(e.tree,h);else{let f=new v(t.parser.nodeSet.types[u.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,e.tree),t.addNode(f,h)}if(e.type.is("Block")&&(Xe.indexOf(e.type.id)<0?(i=e.to-r,o=t.block.children.length):(i=a,o=l),a=e.to-r,l=t.block.children.length),!e.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return i-s}};function Xt(t,e){let r=t;for(let n=1;nj[t]),Object.keys(j).map(t=>It[t]),Object.keys(j),Me,mt,Object.keys(Y).map(t=>Y[t]),Object.keys(Y),[]);function Fe(t,e,r){let n=[];for(let s=t.firstChild,i=e;;s=s.nextSibling){let o=s?s.from:r;if(o>i&&n.push({from:i,to:o}),!s)break;i=s.to}return n}function qe(t){let{codeParser:e,htmlParser:r}=t;return{wrap:we((n,s)=>{let i=n.type.id;if(e&&(i==u.CodeBlock||i==u.FencedCode)){let o="";if(i==u.FencedCode){let l=n.node.getChild(u.CodeInfo);l&&(o=s.read(l.from,l.to))}let a=e(o);if(a)return{parser:a,overlay:l=>l.type.id==u.CodeText,bracketed:i==u.FencedCode}}else if(r&&(i==u.HTMLBlock||i==u.HTMLTag||i==u.CommentBlock))return{parser:r,overlay:Fe(n.node,n.from,n.to)};return null})}}var je={resolve:"Strikethrough",mark:"StrikethroughMark"},Ue={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":m.strikethrough}},{name:"StrikethroughMark",style:m.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,r){if(e!=126||t.char(r+1)!=126||t.char(r+2)==126)return-1;let n=t.slice(r-1,r),s=t.slice(r+2,r+3),i=/\s|^$/.test(n),o=/\s|^$/.test(s),a=D.test(n),l=D.test(s);return t.addDelimiter(je,r,r+2,!o&&(!l||i||a),!i&&(!a||o||l))},after:"Emphasis"}]};function $(t,e,r=0,n,s=0){let i=0,o=!0,a=-1,l=-1,h=!1,f=()=>{n.push(t.elt("TableCell",s+a,s+l,t.parser.parseInline(e.slice(a,l),s+a)))};for(let d=r;d-1)&&i++,o=!1,n&&(a>-1&&f(),n.push(t.elt("TableDelimiter",d+s,d+s+1))),a=l=-1):(h||c!=32&&c!=9)&&(a<0&&(a=d),l=d+1),h=!h&&c==92}return a>-1&&(i++,n&&f()),i}function zt(t,e){for(let r=e;rs instanceof $t)||!zt(e.text,e.basePos))return!1;let n=t.peekLine();return Dt.test(n)&&$(t,e.text,e.basePos)==$(t,n,e.basePos)},before:"SetextHeading"}]},Ze=class{nextLine(){return!1}finish(t,e){return t.addLeafElement(e,t.elt("Task",e.start,e.start+e.content.length,[t.elt("TaskMarker",e.start,e.start+3),...t.parser.parseInline(e.content.slice(3),e.start+3)])),!0}},_e={defineNodes:[{name:"Task",block:!0,style:m.list},{name:"TaskMarker",style:m.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Ze:null},after:"SetextHeading"}]},Ft=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,qt=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Ve=/[\w-]+\.[\w-]+($|\/)/,jt=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Ut=/\/[a-zA-Z\d@.]+/gy;function Qt(t,e,r,n){let s=0;for(let i=e;i-1)return-1;let n=e+r[0].length;for(;;){let s=t[n-1],i;if(/[?!.,:*_~]/.test(s)||s==")"&&Qt(t,e,n,")")>Qt(t,e,n,"("))n--;else if(s==";"&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,n))))n=e+i.index;else break}return n}function Zt(t,e){jt.lastIndex=e;let r=jt.exec(t);if(!r)return-1;let n=r[0][r[0].length-1];return n=="_"||n=="-"?-1:e+r[0].length-(n=="."?1:0)}var Je=[Qe,_e,Ue,{parseInline:[{name:"Autolink",parse(t,e,r){let n=r-t.offset;if(n&&/\w/.test(t.text[n-1]))return-1;Ft.lastIndex=n;let s=Ft.exec(t.text),i=-1;return!s||(s[1]||s[2]?(i=Ge(t.text,n+s[0].length),i>-1&&t.hasOpenLink&&(i=n+/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(n,i))[0].length)):s[3]?i=Zt(t.text,n):(i=Zt(t.text,n+s[0].length),i>-1&&s[0]=="xmpp:"&&(Ut.lastIndex=i,s=Ut.exec(t.text),s&&(i=s.index+s[0].length))),i<0)?-1:(t.addElement(t.elt("URL",r,i+t.offset)),i+t.offset)}}]}];function _t(t,e,r){return(n,s,i)=>{if(s!=t||n.char(i+1)==t)return-1;let o=[n.elt(r,i,i+1)];for(let a=i+1;a"}}}),Gt=new E,Jt=$e.configure({props:[lt.add(t=>!t.is("Block")||t.is("Document")||rt(t)!=null||tr(t)?void 0:(e,r)=>({from:r.doc.lineAt(e.from).to,to:e.to})),Gt.add(rt),pe.add({Document:()=>null}),ge.add({Document:Vt})]});function rt(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function tr(t){return t.name=="OrderedList"||t.name=="BulletList"}function er(t,e){let r=t;for(;;){let n=r.nextSibling,s;if(!n||(s=rt(n.type))!=null&&s<=e)break;r=n}return r.to}var rr=me.of((t,e,r)=>{for(let n=N(t).resolveInner(r,-1);n&&!(n.fromr)return{from:r,to:i}}return null});function nt(t){return new be(Vt,t,[],"markdown")}var Kt=nt(Jt),F=nt(Jt.configure([Je,We,Ke,Ye,{props:[lt.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]));function nr(t,e){return r=>{if(r&&t){let n=null;if(r=/\S*/.exec(r)[0],n=typeof t=="function"?t(r):ft.matchLanguageName(t,r,!0),n instanceof ft)return n.support?n.support.language.parser:Se.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}var st=class{constructor(t,e,r,n,s,i,o){this.node=t,this.from=e,this.to=r,this.spaceBefore=n,this.spaceAfter=s,this.type=i,this.item=o}blank(t,e=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;n--)r+=" ";return r+(e?this.spaceAfter:"")}}marker(t,e){let r=this.node.name=="OrderedList"?String(+Yt(this.item,t)[2]+e):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function Wt(t,e){let r=[],n=[];for(let s=t;s;s=s.parent){if(s.name=="FencedCode")return n;(s.name=="ListItem"||s.name=="Blockquote")&&r.push(s)}for(let s=r.length-1;s>=0;s--){let i=r[s],o,a=e.lineAt(i.from),l=i.from-a.from;if(i.name=="Blockquote"&&(o=/^ *>( ?)/.exec(a.text.slice(l))))n.push(new st(i,l,l+o[0].length,"",o[1],">",null));else if(i.name=="ListItem"&&i.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let h=o[3],f=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),f-=4),n.push(new st(i.parent,l,l+f,o[1],h,o[2],i))}else if(i.name=="ListItem"&&i.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let h=o[4],f=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),f-=4);let d=o[2];o[3]&&(d+=o[3].replace(/[xX]/," ")),n.push(new st(i.parent,l,l+f,o[1],h,d,i))}}return n}function Yt(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function it(t,e,r,n=0){for(let s=-1,i=t;;){if(i.name=="ListItem"){let a=Yt(i,e),l=+a[2];if(s>=0){if(l!=s+1)return;r.push({from:i.from+a[1].length,to:i.from+a[0].length,insert:String(s+2+n)})}s=l}let o=i.nextSibling;if(!o)break;i=o}}function ot(t,e){let r=/^[ \t]*/.exec(t)[0].length;if(!r||e.facet(de)!=" ")return t;let n=O(t,4,r),s="";for(let i=n;i>0;)i>=4?(s+=" ",i-=4):(s+=" ",i--);return s+t.slice(r)}var te=(t={})=>({state:e,dispatch:r})=>{let n=N(e),{doc:s}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!F.isActiveAt(e,a.from,-1)&&!F.isActiveAt(e,a.from,1))return i={range:a};let l=a.from,h=s.lineAt(l),f=Wt(n.resolveInner(l,-1),s);for(;f.length&&f[f.length-1].from>l-h.from;)f.pop();if(!f.length)return i={range:a};let d=f[f.length-1];if(d.to-d.spaceAfter.length>l-h.from)return i={range:a};let c=l>=d.to-d.spaceAfter.length&&!/\S/.test(h.text.slice(d.to));if(d.item&&c){let L=d.node.firstChild,b=d.node.getChild("ListItem","ListItem");if(L.to>=l||b&&b.to0&&!/[^\s>]/.test(s.lineAt(h.from-1).text)||t.nonTightLists===!1){let x=f.length>1?f[f.length-2]:null,I,T="";x&&x.item?(I=h.from+x.from,T=x.marker(s,1)):I=h.from+(x?x.to:0);let P=[{from:I,to:l,insert:T}];return d.node.name=="OrderedList"&&it(d.item,s,P,-2),x&&x.node.name=="OrderedList"&&it(x.item,s,P),{range:H.cursor(I+T.length),changes:P}}else{let x=ne(f,e,h);return{range:H.cursor(l+x.length+1),changes:{from:h.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&c&&h.from){let L=s.lineAt(h.from-1),b=/>\s*$/.exec(L.text);if(b&&b.index==d.from){let x=e.changes([{from:L.from+b.index,to:L.to},{from:h.from+d.from,to:h.to}]);return{range:a.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&it(d.item,s,p);let k=d.item&&d.item.from]*/.exec(h.text)[0].length>=d.to)for(let L=0,b=f.length-1;L<=b;L++)S+=L==b&&!k?f[L].marker(s,1):f[L].blank(Lh.from&&/\s/.test(h.text.charAt(A-h.from-1));)A--;return S=ot(S,e),sr(d.node,e.doc)&&(S=ne(f,e,h)+e.lineBreak+S),p.push({from:A,to:l,insert:e.lineBreak+S}),{range:H.cursor(A+S.length+1),changes:p}});return i?!1:(r(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},ee=te();function re(t){return t.name=="QuoteMark"||t.name=="ListMark"}function sr(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let r=t.firstChild,n=t.getChild("ListItem","ListItem");if(!n)return!1;let s=e.lineAt(r.to),i=e.lineAt(n.from),o=/^[\s>]*$/.test(s.text);return s.number+(o?0:1){let r=N(t),n=null,s=t.changeByRange(i=>{let o=i.from,{doc:a}=t;if(i.empty&&F.isActiveAt(t,i.from)){let l=a.lineAt(o),h=Wt(ir(r,o),a);if(h.length){let f=h[h.length-1],d=f.to-f.spaceAfter.length+(f.spaceAfter?1:0);if(o-l.from>d&&!/\S/.test(l.text.slice(d,o-l.from)))return{range:H.cursor(l.from+d),changes:{from:l.from+d,to:o}};if(o-l.from==d&&(!f.item||l.from<=f.item.from||!/\S/.test(l.text.slice(0,f.to)))){let c=l.from+f.from;if(f.item&&f.node.from{var o;let{main:r}=e.state.selection;if(r.empty)return!1;let n=(o=t.clipboardData)==null?void 0:o.getData("text/plain");if(!n||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(n)||(/^www\./.test(n)&&(n="https://"+n),!F.isActiveAt(e.state,r.from,1)))return!1;let s=N(e.state),i=!1;return s.iterate({from:r.from,to:r.to,enter:a=>{(a.from>r.from||hr.test(a.name))&&(i=!0)},leave:a=>{a.to=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102}var di=new $((O,i)=>{let a;if(O.next<0)O.acceptToken(SO);else if(i.context.flags&h)v(O.next)&&O.acceptToken(lO,1);else if(((a=O.peek(-1))<0||v(a))&&i.canShift(U)){let n=0;for(;O.next==z||O.next==m;)O.advance(),n++;(O.next==T||O.next==S||O.next==f)&&O.acceptToken(U,-n)}else v(O.next)&&O.acceptToken(sO,1)},{contextual:!0}),Ti=new $((O,i)=>{let a=i.context;if(a.flags)return;let n=O.peek(-1);if(n==T||n==S){let e=0,r=0;for(;;){if(O.next==z)e++;else if(O.next==m)e+=8-e%8;else break;O.advance(),r++}e!=a.indent&&O.next!=T&&O.next!=S&&O.next!=f&&(e[O,i|Y])),Si=new rO({start:si,reduce(O,i,a,n){return O.flags&h&&oi.has(i)||(i==uO||i==b)&&O.flags&Y?O.parent:O},shift(O,i,a,n){return i==x?new g(O,li(n.read(n.pos,a.pos)),0):i==_?O.parent:i==PO||i==gO||i==yO||i==V?new g(O,0,h):F.has(i)?new g(O,0,F.get(i)|O.flags&h):O},hash(O){return O.hash}}),pi=new $(O=>{for(let i=0;i<5;i++){if(O.next!="print".charCodeAt(i))return;O.advance()}if(!/\w/.test(String.fromCharCode(O.next)))for(let i=0;;i++){let a=O.peek(i);if(!(a==z||a==m)){a!=ii&&a!=ai&&a!=T&&a!=S&&a!=f&&O.acceptToken(TO);return}}}),qi=new $((O,i)=>{let{flags:a}=i.context,n=a&p?w:j,e=(a&s)>0,r=!(a&l),t=(a&q)>0,o=O.pos;for(;!(O.next<0);)if(t&&O.next==W)if(O.peek(1)==W)O.advance(2);else{if(O.pos==o){O.acceptToken(V,1);return}break}else if(r&&O.next==E){if(O.pos==o){O.advance();let P=O.next;P>=0&&(O.advance(),Pi(O,P)),O.acceptToken(qO);return}break}else if(O.next==E&&!r&&O.peek(1)>-1)O.advance(2);else if(O.next==n&&(!e||O.peek(1)==n&&O.peek(2)==n)){if(O.pos==o){O.acceptToken(G,e?3:1);return}break}else if(O.next==T){if(e)O.advance();else if(O.pos==o){O.acceptToken(G);return}break}else O.advance();O.pos>o&&O.acceptToken(pO)});function Pi(O,i){if(i==ni)for(let a=0;a<2&&O.next>=48&&O.next<=55;a++)O.advance();else if(i==Qi)for(let a=0;a<2&&R(O.next);a++)O.advance();else if(i==ri)for(let a=0;a<4&&R(O.next);a++)O.advance();else if(i==ti)for(let a=0;a<8&&R(O.next);a++)O.advance();else if(i==ei&&O.next==W){for(O.advance();O.next>=0&&O.next!=Z&&O.next!=j&&O.next!=w&&O.next!=T;)O.advance();O.next==Z&&O.advance()}}var $i=nO({'async "*" "**" FormatConversion FormatSpec':Q.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Q.controlKeyword,"in not and or is del":Q.operatorKeyword,"from def class global nonlocal lambda":Q.definitionKeyword,import:Q.moduleKeyword,"with as print":Q.keyword,Boolean:Q.bool,None:Q.null,VariableName:Q.variableName,"CallExpression/VariableName":Q.function(Q.variableName),"FunctionDefinition/VariableName":Q.function(Q.definition(Q.variableName)),"ClassDefinition/VariableName":Q.definition(Q.className),PropertyName:Q.propertyName,"CallExpression/MemberExpression/PropertyName":Q.function(Q.propertyName),Comment:Q.lineComment,Number:Q.number,String:Q.string,FormatString:Q.special(Q.string),Escape:Q.escape,UpdateOp:Q.updateOperator,"ArithOp!":Q.arithmeticOperator,BitOp:Q.bitwiseOperator,CompareOp:Q.compareOperator,AssignOp:Q.definitionOperator,Ellipsis:Q.punctuation,At:Q.meta,"( )":Q.paren,"[ ]":Q.squareBracket,"{ }":Q.brace,".":Q.derefOperator,", ;":Q.separator}),mi={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},J=QO.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO5TQdO'#DoOOQS,5:Y,5:YO5hQdO'#HdOOQS,5:],5:]O5uQ!fO,5:]O5zQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8jQdO,59bO8oQdO,59bO8vQdO,59jO8}QdO'#HTO:TQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:lQdO,59aO'vQdO,59aO:zQdO,59aOOQS,59y,59yO;PQdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;_QdO,5:QO;dQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;uQdO,5:UO;zQdO,5:WOOOW'#Fy'#FyOOOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!/[QtO1G.|O!/cQtO1G.|O1lQdO1G.|O!0OQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!0VQdO1G/eO!0gQdO1G/eO!0oQdO1G/fO'vQdO'#H[O!0tQdO'#H[O!0yQtO1G.{O!1ZQdO,59iO!2aQdO,5=zO!2qQdO,5=zO!2yQdO1G/mO!3OQtO1G/mOOQS1G/l1G/lO!3`QdO,5=uO!4VQdO,5=uO0rQdO1G/qO!4tQdO1G/sO!4yQtO1G/sO!5ZQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!5kQdO'#HxO0rQdO'#HxO!5|QdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!6[Q#xO1G2zO!6{QtO1G2zO'vQdO,5kOOQS1G1`1G1`O!8RQdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!8WQdO'#FrO!8cQdO,59oO!8kQdO1G/XO!8uQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!9fQdO'#GtOOQS,5jO!;ZQdO,5>jO1XQdO,5>jO!;lQdO,5>iOOQS-E:R-E:RO!;qQdO1G0lO!;|QdO1G0lO!lO!lO!hO!=VQdO,5>hO!=hQdO'#EpO0rQdO1G0tO!=sQdO1G0tO!=xQgO1G0zO!AvQgO1G0}O!EqQdO,5>oO!E{QdO,5>oO!FTQtO,5>oO0rQdO1G1PO!F_QdO1G1PO4iQdO1G1UO!!vQdO1G1WOOQV,5;a,5;aO!FdQfO,5;aO!FiQgO1G1QO!JjQdO'#GZO4iQdO1G1QO4iQdO1G1QO!JzQdO,5>pO!KXQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!KaQdO'#FSO!KrQ!fO1G1WO!KzQdO1G1WOOQV1G1]1G1]O4iQdO1G1]O!LPQdO1G1]O!LXQdO'#F^OOQV1G1b1G1bO!#ZQtO1G1bPOOO1G2v1G2vP!L^OSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!LfQdO,5=|O!LyQdO,5=|OOQS1G/u1G/uO!MRQdO,5>PO!McQdO,5>PO!MkQdO,5>PO!NOQdO,5>PO!N`QdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!8kQdO7+$pO#!RQdO1G.|O#!YQdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO#!aQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO#!qQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO#!vQdO7+%PO##OQdO7+%QO##TQdO1G3fOOQS7+%X7+%XO##eQdO1G3fO##mQdO7+%XOOQS,5<_,5<_O'vQdO,5<_O##rQdO1G3aOOQS-E9q-E9qO#$iQdO7+%]OOQS7+%_7+%_O#$wQdO1G3aO#%fQdO7+%_O#%kQdO1G3gO#%{QdO1G3gO#&TQdO7+%]O#&YQdO,5>dO#&sQdO,5>dO#&sQdO,5>dOOQS'#Dx'#DxO#'UO&jO'#DzO#'aO`O'#HyOOOW1G3}1G3}O#'fQdO1G3}O#'nQdO1G3}O#'yQ#xO7+(fO#(jQtO1G2UP#)TQdO'#GOOOQS,5nQdO,5sQdO1G4OOOQS-E9y-E9yO#?^QdO1G4OO<[QdO'#H{OOOO'#D{'#D{OOOO'#F|'#F|O#?oO&jO,5:fOOOW,5>e,5>eOOOW7+)i7+)iO#?zQdO7+)iO#@SQdO1G2zO#@mQdO1G2zP'vQdO'#FuO0rQdO<mO#BQQdO,5>mOOQS1G0v1G0vOOQS<rO#KgQdO,5>rO#KrQdO,5>rO#K}QdO,5>qO#L`QdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<VAN>VO$ oQdO<cAN>cO0rQdO1G1|O$!PQtO1G1|P$!ZQdO'#FvOOQS1G2R1G2RP$!hQdO'#F{O$!uQdO7+)jO$#`QdO,5>gOOOO-E9z-E9zOOOW<tO$4{QdO,5>tO1XQdO,5vO$)nQdO,5>vOOQS1G1p1G1pOOQS,5<[,5<[OOQU7+'P7+'PO$+zQdO1G/iO$)nQdO,5wO$8zQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$)nQdO'#GdO$9SQdO1G4bO$9^QdO1G4bO$9fQdO1G4bOOQS7+%T7+%TO$9tQdO1G1tO$:SQtO'#FaO$:ZQdO,5<}OOQS,5<},5<}O$:iQdO1G4cOOQS-E:a-E:aO$)nQdO,5<|O$:pQdO,5<|O$:uQdO7+)|OOQS-E:`-E:`O$;PQdO7+)|O$)nQdO,5S~O%cOS%^OSSOS%]PQ~OPdOVaOfoOhYOopOs!POvqO!PrO!Q{O!T!SO!U!RO!XZO!][O!h`O!r`O!s`O!t`O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#l!QO#o!TO#s!UO#u!VO#z!WO#}hO$P!XO%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~O%]!YO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%j![O%k!]O%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aO~Ok%xXl%xXm%xXn%xXo%xXp%xXs%xXz%xX{%xX!x%xX#g%xX%[%xX%_%xX%z%xXg%xX!T%xX!U%xX%{%xX!W%xX![%xX!Q%xX#[%xXt%xX!m%xX~P%SOfoOhYO!XZO!][O!h`O!r`O!s`O!t`O%oRO%pRO%tSO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O~Oz%wX{%wX#g%wX%[%wX%_%wX%z%wX~Ok!pOl!qOm!oOn!oOo!rOp!sOs!tO!x%wX~P)pOV!zOg!|Oo0cOv0qO!PrO~P'vOV#OOo0cOv0qO!W#PO~P'vOV#SOa#TOo0cOv0qO![#UO~P'vOQ#XO%`#XO%a#ZO~OQ#^OR#[O%`#^O%a#`O~OV%iX_%iXa%iXh%iXk%iXl%iXm%iXn%iXo%iXp%iXs%iXz%iX!X%iX!f%iX%j%iX%k%iX%l%iX%m%iX%n%iX%o%iX%p%iX%q%iX%r%iX%s%iXg%iX!T%iX!U%iX~O&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O&c^O&d^O&e^O&f^O&g^O&h^O&i^O&j^O{%iX!x%iX#g%iX%[%iX%_%iX%z%iX%{%iX!W%iX![%iX!Q%iX#[%iXt%iX!m%iX~P,eOz#dO{%hX!x%hX#g%hX%[%hX%_%hX%z%hX~Oo0cOv0qO~P'vO#g#gO%[#iO%_#iO~O%uWO~O!T#nO#u!VO#z!WO#}hO~OopO~P'vOV#sOa#tO%uWO{wP~OV#xOo0cOv0qO!Q#yO~P'vO{#{O!x$QO%z#|O#g!yX%[!yX%_!yX~OV#xOo0cOv0qO#g#SX%[#SX%_#SX~P'vOo0cOv0qO#g#WX%[#WX%_#WX~P'vOh$WO%uWO~O!f$YO!r$YO%uWO~OV$eO~P'vO!U$gO#s$hO#u$iO~O{$jO~OV$qO~P'vOS$sO%[$rO%_$rO%c$tO~OV$}Oa$}Og%POo0cOv0qO~P'vOo0cOv0qO{%SO~P'vO&Y%UO~Oa!bOh!iO!X!kO!f!mOVba_bakbalbambanbaobapbasbazba{ba!xba#gba%[ba%_ba%jba%kba%lba%mba%nba%oba%pba%qba%rba%sba%zbagba!Tba!Uba%{ba!Wba![ba!Qba#[batba!mba~On%ZO~Oo%ZO~P'vOo0cO~P'vOk0eOl0fOm0dOn0dOo0mOp0nOs0rOg%wX!T%wX!U%wX%{%wX!W%wX![%wX!Q%wX#[%wX!m%wX~P)pO%{%]Og%vXz%vX!T%vX!U%vX!W%vX{%vX~Og%_Oz%`O!T%dO!U%cO~Og%_O~Oz%gO!T%dO!U%cO!W&SX~O!W%kO~Oz%lO{%nO!T%dO!U%cO![%}X~O![%rO~O![%sO~OQ#XO%`#XO%a%uO~OV%wOo0cOv0qO!PrO~P'vOQ#^OR#[O%`#^O%a%zO~OV!qa_!qaa!qah!qak!qal!qam!qan!qao!qap!qas!qaz!qa{!qa!X!qa!f!qa!x!qa#g!qa%[!qa%_!qa%j!qa%k!qa%l!qa%m!qa%n!qa%o!qa%p!qa%q!qa%r!qa%s!qa%z!qag!qa!T!qa!U!qa%{!qa!W!qa![!qa!Q!qa#[!qat!qa!m!qa~P#yOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P%SOV&OOopOvqO{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~P'vOz%|O{%ha!x%ha#g%ha%[%ha%_%ha%z%ha~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO#g$zX%[$zX%_$zX~P'vO#g#gO%[&TO%_&TO~O!f&UOh&sX%[&sXz&sX#[&sX#g&sX%_&sX#Z&sXg&sX~Oh!iO%[&WO~Okealeameaneaoeapeaseazea{ea!xea#gea%[ea%_ea%zeagea!Tea!Uea%{ea!Wea![ea!Qea#[eatea!mea~P%SOsqazqa{qa#gqa%[qa%_qa%zqa~Ok!pOl!qOm!oOn!oOo!rOp!sO!xqa~PEcO%z&YOz%yX{%yX~O%uWOz%yX{%yX~Oz&]O{wX~O{&_O~Oz%lO#g%}X%[%}X%_%}Xg%}X{%}X![%}X!m%}X%z%}X~OV0lOo0cOv0qO!PrO~P'vO%z#|O#gUa%[Ua%_Ua~Oz&hO#g&PX%[&PX%_&PXn&PX~P%SOz&kO!Q&jO#g#Wa%[#Wa%_#Wa~Oz&lO#[&nO#g&rX%[&rX%_&rXg&rX~O!f$YO!r$YO#Z&qO%uWO~O#Z&qO~Oz&sO#g&tX%[&tX%_&tX~Oz&uO#g&pX%[&pX%_&pX{&pX~O!X&wO%z&xO~Oz&|On&wX~P%SOn'PO~OPdOVaOopOvqO!PrO!Q{O!{tO!}uO#PvO#RwO#TxO#XyO#ZzO#^|O#_|O#a}O#c!OO%['UO~P'vOt'YO#p'WO#q'XOP#naV#naf#nah#nao#nas#nav#na!P#na!Q#na!T#na!U#na!X#na!]#na!h#na!r#na!s#na!t#na!{#na!}#na#P#na#R#na#T#na#X#na#Z#na#^#na#_#na#a#na#c#na#l#na#o#na#s#na#u#na#z#na#}#na$P#na%X#na%o#na%p#na%t#na%u#na&Z#na&[#na&]#na&^#na&_#na&`#na&a#na&b#na&c#na&d#na&e#na&f#na&g#na&h#na&i#na&j#na%Z#na%_#na~Oz'ZO#[']O{&xX~Oh'_O!X&wO~Oh!iO{$jO!X&wO~O{'eO~P%SO%['hO%_'hO~OS'iO%['hO%_'hO~OV!aO_!aOa!bOh!iO!X!kO!f!mO%l!^O%m!_O%n!_O%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%k!]O~P!#uO%kWi~P!#uOV!aO_!aOa!bOh!iO!X!kO!f!mO%o!`O%p!`O%q!aO%r!aO%s!aOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~O%m!_O%n!_O~P!&pO%mWi%nWi~P!&pOa!bOh!iO!X!kO!f!mOkWilWimWinWioWipWisWizWi{Wi!xWi#gWi%[Wi%_Wi%jWi%kWi%lWi%mWi%nWi%oWi%pWi%zWigWi!TWi!UWi%{Wi!WWi![Wi!QWi#[WitWi!mWi~OV!aO_!aO%q!aO%r!aO%s!aO~P!)nOVWi_Wi%qWi%rWi%sWi~P!)nO!T%dO!U%cOg&VXz&VX~O%z'kO%{'kO~P,eOz'mOg&UX~Og'oO~Oz'pO{'rO!W&XX~Oo0cOv0qOz'pO{'sO!W&XX~P'vO!W'uO~Om!oOn!oOo!rOp!sOkjisjizji{ji!xji#gji%[ji%_ji%zji~Ol!qO~P!.aOlji~P!.aOk0eOl0fOm0dOn0dOo0mOp0nO~Ot'wO~P!/jOV'|Og'}Oo0cOv0qO~P'vOg'}Oz(OO~Og(QO~O!U(SO~Og(TOz(OO!T%dO!U%cO~P%SOk0eOl0fOm0dOn0dOo0mOp0nOgqa!Tqa!Uqa%{qa!Wqa![qa!Qqa#[qatqa!mqa~PEcOV'|Oo0cOv0qO!W&Sa~P'vOz(WO!W&Sa~O!W(XO~Oz(WO!T%dO!U%cO!W&Sa~P%SOV(]Oo0cOv0qO![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~P'vOz(^O![%}a#g%}a%[%}a%_%}ag%}a{%}a!m%}a%z%}a~O![(aO~Oz(^O!T%dO!U%cO![%}a~P%SOz(dO!T%dO!U%cO![&Ta~P%SOz(gO{&lX![&lX!m&lX%z&lX~O{(kO![(mO!m(nO%z(jO~OV&OOopOvqO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~P'vOz(pO{%hi!x%hi#g%hi%[%hi%_%hi%z%hi~O!f&UOh&sa%[&saz&sa#[&sa#g&sa%_&sa#Z&sag&sa~O%[(uO~OV#sOa#tO%uWO~Oz&]O{wa~OopOvqO~P'vOz(^O#g%}a%[%}a%_%}ag%}a{%}a![%}a!m%}a%z%}a~P%SOz(zO#g%hX%[%hX%_%hX%z%hX~O%z#|O#gUi%[Ui%_Ui~O#g&Pa%[&Pa%_&Pan&Pa~P'vOz(}O#g&Pa%[&Pa%_&Pan&Pa~O%uWO#g&ra%[&ra%_&rag&ra~Oz)SO#g&ra%[&ra%_&rag&ra~Og)VO~OV)WOh$WO%uWO~O#Z)XO~O%uWO#g&ta%[&ta%_&ta~Oz)ZO#g&ta%[&ta%_&ta~Oo0cOv0qO#g&pa%[&pa%_&pa{&pa~P'vOz)^O#g&pa%[&pa%_&pa{&pa~OV)`Oa)`O%uWO~O%z)eO~Ot)hO#j)gOP#hiV#hif#hih#hio#his#hiv#hi!P#hi!Q#hi!T#hi!U#hi!X#hi!]#hi!h#hi!r#hi!s#hi!t#hi!{#hi!}#hi#P#hi#R#hi#T#hi#X#hi#Z#hi#^#hi#_#hi#a#hi#c#hi#l#hi#o#hi#s#hi#u#hi#z#hi#}#hi$P#hi%X#hi%o#hi%p#hi%t#hi%u#hi&Z#hi&[#hi&]#hi&^#hi&_#hi&`#hi&a#hi&b#hi&c#hi&d#hi&e#hi&f#hi&g#hi&h#hi&i#hi&j#hi%Z#hi%_#hi~Ot)iOP#kiV#kif#kih#kio#kis#kiv#ki!P#ki!Q#ki!T#ki!U#ki!X#ki!]#ki!h#ki!r#ki!s#ki!t#ki!{#ki!}#ki#P#ki#R#ki#T#ki#X#ki#Z#ki#^#ki#_#ki#a#ki#c#ki#l#ki#o#ki#s#ki#u#ki#z#ki#}#ki$P#ki%X#ki%o#ki%p#ki%t#ki%u#ki&Z#ki&[#ki&]#ki&^#ki&_#ki&`#ki&a#ki&b#ki&c#ki&d#ki&e#ki&f#ki&g#ki&h#ki&i#ki&j#ki%Z#ki%_#ki~OV)kOn&wa~P'vOz)lOn&wa~Oz)lOn&wa~P%SOn)pO~O%Y)tO~Ot)wO#p'WO#q)vOP#niV#nif#nih#nio#nis#niv#ni!P#ni!Q#ni!T#ni!U#ni!X#ni!]#ni!h#ni!r#ni!s#ni!t#ni!{#ni!}#ni#P#ni#R#ni#T#ni#X#ni#Z#ni#^#ni#_#ni#a#ni#c#ni#l#ni#o#ni#s#ni#u#ni#z#ni#}#ni$P#ni%X#ni%o#ni%p#ni%t#ni%u#ni&Z#ni&[#ni&]#ni&^#ni&_#ni&`#ni&a#ni&b#ni&c#ni&d#ni&e#ni&f#ni&g#ni&h#ni&i#ni&j#ni%Z#ni%_#ni~OV)zOo0cOv0qO{$jO~P'vOo0cOv0qO{&xa~P'vOz*OO{&xa~OV*SOa*TOg*WO%q*UO%uWO~O{$jO&{*YO~Oh'_O~Oh!iO{$jO~O%[*_O~O%[*aO%_*aO~OV$}Oa$}Oo0cOv0qOg&Ua~P'vOz*dOg&Ua~Oo0cOv0qO{*gO!W&Xa~P'vOz*hO!W&Xa~Oo0cOv0qOz*hO{*kO!W&Xa~P'vOo0cOv0qOz*hO!W&Xa~P'vOz*hO{*kO!W&Xa~Om0dOn0dOo0mOp0nOgjikjisjizji!Tji!Uji%{ji!Wji{ji![ji#gji%[ji%_ji!Qji#[jitji!mji%zji~Ol0fO~P!NkOlji~P!NkOV'|Og*pOo0cOv0qO~P'vOn*rO~Og*pOz*tO~Og*uO~OV'|Oo0cOv0qO!W&Si~P'vOz*vO!W&Si~O!W*wO~OV(]Oo0cOv0qO![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~P'vOz*zO!T%dO!U%cO![&Ti~Oz*}O![%}i#g%}i%[%}i%_%}ig%}i{%}i!m%}i%z%}i~O![+OO~Oa+QOo0cOv0qO![&Ti~P'vOz*zO![&Ti~O![+SO~OV+UOo0cOv0qO{&la![&la!m&la%z&la~P'vOz+VO{&la![&la!m&la%z&la~O!]+YO&n+[O![!nX~O![+^O~O{(kO![+_O~O{(kO![+_O!m+`O~OV&OOopOvqO{%hq!x%hq#g%hq%[%hq%_%hq%z%hq~P'vOz$ri{$ri!x$ri#g$ri%[$ri%_$ri%z$ri~P%SOV&OOopOvqO~P'vOV&OOo0cOv0qO#g%ha%[%ha%_%ha%z%ha~P'vOz+aO#g%ha%[%ha%_%ha%z%ha~Oz$ia#g$ia%[$ia%_$ian$ia~P%SO#g&Pi%[&Pi%_&Pin&Pi~P'vOz+dO#g#Wq%[#Wq%_#Wq~O#[+eOz$va#g$va%[$va%_$vag$va~O%uWO#g&ri%[&ri%_&rig&ri~Oz+gO#g&ri%[&ri%_&rig&ri~OV+iOh$WO%uWO~O%uWO#g&ti%[&ti%_&ti~Oo0cOv0qO#g&pi%[&pi%_&pi{&pi~P'vO{#{Oz#eX!W#eX~Oz+mO!W&uX~O!W+oO~Ot+rO#j)gOP#hqV#hqf#hqh#hqo#hqs#hqv#hq!P#hq!Q#hq!T#hq!U#hq!X#hq!]#hq!h#hq!r#hq!s#hq!t#hq!{#hq!}#hq#P#hq#R#hq#T#hq#X#hq#Z#hq#^#hq#_#hq#a#hq#c#hq#l#hq#o#hq#s#hq#u#hq#z#hq#}#hq$P#hq%X#hq%o#hq%p#hq%t#hq%u#hq&Z#hq&[#hq&]#hq&^#hq&_#hq&`#hq&a#hq&b#hq&c#hq&d#hq&e#hq&f#hq&g#hq&h#hq&i#hq&j#hq%Z#hq%_#hq~On$|az$|a~P%SOV)kOn&wi~P'vOz+yOn&wi~Oz,TO{$jO#[,TO~O#q,VOP#nqV#nqf#nqh#nqo#nqs#nqv#nq!P#nq!Q#nq!T#nq!U#nq!X#nq!]#nq!h#nq!r#nq!s#nq!t#nq!{#nq!}#nq#P#nq#R#nq#T#nq#X#nq#Z#nq#^#nq#_#nq#a#nq#c#nq#l#nq#o#nq#s#nq#u#nq#z#nq#}#nq$P#nq%X#nq%o#nq%p#nq%t#nq%u#nq&Z#nq&[#nq&]#nq&^#nq&_#nq&`#nq&a#nq&b#nq&c#nq&d#nq&e#nq&f#nq&g#nq&h#nq&i#nq&j#nq%Z#nq%_#nq~O#[,WOz%Oa{%Oa~Oo0cOv0qO{&xi~P'vOz,YO{&xi~O{#{O%z,[Og&zXz&zX~O%uWOg&zXz&zX~Oz,`Og&yX~Og,bO~O%Y,eO~O!T%dO!U%cOg&Viz&Vi~OV$}Oa$}Oo0cOv0qOg&Ui~P'vO{,hOz$la!W$la~Oo0cOv0qO{,iOz$la!W$la~P'vOo0cOv0qO{*gO!W&Xi~P'vOz,lO!W&Xi~Oo0cOv0qOz,lO!W&Xi~P'vOz,lO{,oO!W&Xi~Og$hiz$hi!W$hi~P%SOV'|Oo0cOv0qO~P'vOn,qO~OV'|Og,rOo0cOv0qO~P'vOV'|Oo0cOv0qO!W&Sq~P'vOz$gi![$gi#g$gi%[$gi%_$gig$gi{$gi!m$gi%z$gi~P%SOV(]Oo0cOv0qO~P'vOa+QOo0cOv0qO![&Tq~P'vOz,sO![&Tq~O![,tO~OV(]Oo0cOv0qO![%}q#g%}q%[%}q%_%}qg%}q{%}q!m%}q%z%}q~P'vO{,uO~OV+UOo0cOv0qO{&li![&li!m&li%z&li~P'vOz,zO{&li![&li!m&li%z&li~O!]+YO&n+[O![!na~O{(kO![,}O~OV&OOo0cOv0qO#g%hi%[%hi%_%hi%z%hi~P'vOz-OO#g%hi%[%hi%_%hi%z%hi~O%uWO#g&rq%[&rq%_&rqg&rq~Oz-RO#g&rq%[&rq%_&rqg&rq~OV)`Oa)`O%uWO!W&ua~Oz-TO!W&ua~On$|iz$|i~P%SOV)kO~P'vOV)kOn&wq~P'vOt-XOP#myV#myf#myh#myo#mys#myv#my!P#my!Q#my!T#my!U#my!X#my!]#my!h#my!r#my!s#my!t#my!{#my!}#my#P#my#R#my#T#my#X#my#Z#my#^#my#_#my#a#my#c#my#l#my#o#my#s#my#u#my#z#my#}#my$P#my%X#my%o#my%p#my%t#my%u#my&Z#my&[#my&]#my&^#my&_#my&`#my&a#my&b#my&c#my&d#my&e#my&f#my&g#my&h#my&i#my&j#my%Z#my%_#my~O%Z-]O%_-]O~P`O#q-^OP#nyV#nyf#nyh#nyo#nys#nyv#ny!P#ny!Q#ny!T#ny!U#ny!X#ny!]#ny!h#ny!r#ny!s#ny!t#ny!{#ny!}#ny#P#ny#R#ny#T#ny#X#ny#Z#ny#^#ny#_#ny#a#ny#c#ny#l#ny#o#ny#s#ny#u#ny#z#ny#}#ny$P#ny%X#ny%o#ny%p#ny%t#ny%u#ny&Z#ny&[#ny&]#ny&^#ny&_#ny&`#ny&a#ny&b#ny&c#ny&d#ny&e#ny&f#ny&g#ny&h#ny&i#ny&j#ny%Z#ny%_#ny~Oz-aO{$jO#[-aO~Oo0cOv0qO{&xq~P'vOz-dO{&xq~O%z,[Og&zaz&za~O{#{Og&zaz&za~OV*SOa*TO%q*UO%uWOg&ya~Oz-hOg&ya~O$S-lO~OV$}Oa$}Oo0cOv0qO~P'vOo0cOv0qO{-mOz$li!W$li~P'vOo0cOv0qOz$li!W$li~P'vO{-mOz$li!W$li~Oo0cOv0qO{*gO~P'vOo0cOv0qO{*gO!W&Xq~P'vOz-pO!W&Xq~Oo0cOv0qOz-pO!W&Xq~P'vOs-sO!T%dO!U%cOg&Oq!W&Oq![&Oqz&Oq~P!/jOa+QOo0cOv0qO![&Ty~P'vOz$ji![$ji~P%SOa+QOo0cOv0qO~P'vOV+UOo0cOv0qO~P'vOV+UOo0cOv0qO{&lq![&lq!m&lq%z&lq~P'vO{(kO![-xO!m-yO%z-wO~OV&OOo0cOv0qO#g%hq%[%hq%_%hq%z%hq~P'vO%uWO#g&ry%[&ry%_&ryg&ry~OV)`Oa)`O%uWO!W&ui~Ot-}OP#m!RV#m!Rf#m!Rh#m!Ro#m!Rs#m!Rv#m!R!P#m!R!Q#m!R!T#m!R!U#m!R!X#m!R!]#m!R!h#m!R!r#m!R!s#m!R!t#m!R!{#m!R!}#m!R#P#m!R#R#m!R#T#m!R#X#m!R#Z#m!R#^#m!R#_#m!R#a#m!R#c#m!R#l#m!R#o#m!R#s#m!R#u#m!R#z#m!R#}#m!R$P#m!R%X#m!R%o#m!R%p#m!R%t#m!R%u#m!R&Z#m!R&[#m!R&]#m!R&^#m!R&_#m!R&`#m!R&a#m!R&b#m!R&c#m!R&d#m!R&e#m!R&f#m!R&g#m!R&h#m!R&i#m!R&j#m!R%Z#m!R%_#m!R~Oo0cOv0qO{&xy~P'vOV*SOa*TO%q*UO%uWOg&yi~O$S-lO%Z.VO%_.VO~OV.aOh._O!X.^O!].`O!h.YO!s.[O!t.[O%p.XO%uWO&Z]O&[]O&]]O&^]O&_]O&`]O&a]O&b]O~Oo0cOv0qOz$lq!W$lq~P'vO{.fOz$lq!W$lq~Oo0cOv0qO{*gO!W&Xy~P'vOz.gO!W&Xy~Oo0cOv.kO~P'vOs-sO!T%dO!U%cOg&Oy!W&Oy![&Oyz&Oy~P!/jO{(kO![.nO~O{(kO![.nO!m.oO~OV*SOa*TO%q*UO%uWO~Oh.tO!f.rOz$TX#[$TX%j$TXg$TX~Os$TX{$TX!W$TX![$TX~P$-bO%o.vO%p.vOs$UXz$UX{$UX#[$UX%j$UX!W$UXg$UX![$UX~O!h.xO~Oz.|O#[/OO%j.yOs&|X{&|X!W&|Xg&|X~Oa/RO~P$)zOh.tOs&}Xz&}X{&}X#[&}X%j&}X!W&}Xg&}X![&}X~Os/VO{$jO~Oo0cOv0qOz$ly!W$ly~P'vOo0cOv0qO{*gO!W&X!R~P'vOz/ZO!W&X!R~Og&RXs&RX!T&RX!U&RX!W&RX![&RXz&RX~P!/jOs-sO!T%dO!U%cOg&Qa!W&Qa![&Qaz&Qa~O{(kO![/^O~O!f.rOh$[as$[az$[a{$[a#[$[a%j$[a!W$[ag$[a![$[a~O!h/eO~O%o.vO%p.vOs$Uaz$Ua{$Ua#[$Ua%j$Ua!W$Uag$Ua![$Ua~O%j.yOs$Yaz$Ya{$Ya#[$Ya!W$Yag$Ya![$Ya~Os&|a{&|a!W&|ag&|a~P$)nOz/jOs&|a{&|a!W&|ag&|a~O!W/mO~Og/mO~O{/oO~O![/pO~Oo0cOv0qO{*gO!W&X!Z~P'vO{/sO~O%z/tO~P$-bOz/uO#[/OO%j.yOg'PX~Oz/uOg'PX~Og/wO~O!h/xO~O#[/OOs%Saz%Sa{%Sa%j%Sa!W%Sag%Sa![%Sa~O#[/OO%j.yOs%Waz%Wa{%Wa!W%Wag%Wa~Os&|i{&|i!W&|ig&|i~P$)nOz/zO#[/OO%j.yO!['Oa~Og'Pa~P$)nOz0SOg'Pa~Oa0UO!['Oi~P$)zOz0WO!['Oi~Oz0WO#[/OO%j.yO!['Oi~O#[/OO%j.yOg$biz$bi~O%z0ZO~P$-bO#[/OO%j.yOg%Vaz%Va~Og'Pi~P$)nO{0^O~Oa0UO!['Oq~P$)zOz0`O!['Oq~O#[/OO%j.yOz%Ui![%Ui~Oa0UO~P$)zOa0UO!['Oy~P$)zO#[/OO%j.yOg$ciz$ci~O#[/OO%j.yOz%Uq![%Uq~Oz+aO#g%ha%[%ha%_%ha%z%ha~P%SOV&OOo0cOv0qO~P'vOn0hO~Oo0hO~P'vO{0iO~Ot0jO~P!/jO&]&Z&j&h&i&g&f&d&e&c&b&`&a&_&^&[%u~",goto:"!=j'QPPPPPP'RP'Z*s+[+t,_,y-fP.SP'Z.r.r'ZPPP'Z2[PPPPPP2[5PPP5PP7b7k=sPP=v>h>kPP'Z'ZPP>zPP'Z'ZPP'Z'Z'Z'Z'Z?O?w'ZP?zP@QDXGuGyPG|HWH['ZPPPH_Hk'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPHqH}IVPI^IdPI^PI^I^PPPI^PKrPK{LVL]KrPI^LfPI^PLmLsPLwM]MzNeLwLwNkNxLwLwLwLw! ^! d! g! l! o! y!!P!!]!!o!!u!#P!#V!#s!#y!$P!$Z!$a!$g!$y!%T!%Z!%a!%k!%q!%w!%}!&T!&Z!&e!&k!&u!&{!'U!'[!'k!'s!'}!(UPPPPPPPPPPP!([!(_!(e!(n!(x!)TPPPPPPPPPPPP!-u!/Z!3^!6oPP!6w!7W!7a!8Y!8P!8c!8i!8l!8o!8r!8z!9jPPPPPPPPPPPPPPPPP!9m!9q!9wP!:]!:a!:m!:v!;S!;j!;m!;p!;v!;|!_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[pi,Ti,di,qi,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:O=>mi[O]||-1}],tokenPrec:7668}),A=new B,C=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function c(O){return(i,a,n)=>{if(n)return!1;let e=i.node.getChild("VariableName");return e&&a(e,O),!0}}var hi={FunctionDefinition:c("function"),ClassDefinition:c("class"),ForStatement(O,i,a){if(a){for(let n=O.node.firstChild;n;n=n.nextSibling)if(n.name=="VariableName")i(n,"variable");else if(n.name=="in")break}},ImportStatement(O,i){var e,r;let{node:a}=O,n=((e=a.firstChild)==null?void 0:e.name)=="from";for(let t=a.getChild("import");t;t=t.nextSibling)t.name=="VariableName"&&((r=t.nextSibling)==null?void 0:r.name)!="as"&&i(t,n?"variable":"namespace")},AssignStatement(O,i){for(let a=O.node.firstChild;a;a=a.nextSibling)if(a.name=="VariableName")i(a,"variable");else if(a.name==":"||a.name=="AssignOp")break},ParamList(O,i){for(let a=null,n=O.node.firstChild;n;n=n.nextSibling)n.name=="VariableName"&&(!a||!/\*|AssignOp/.test(a.name))&&i(n,"variable"),a=n},CapturePattern:c("variable"),AsPattern:c("variable"),__proto__:null};function N(O,i){let a=A.get(i);if(a)return a;let n=[],e=!0;function r(t,o){let P=O.sliceString(t.from,t.to);n.push({label:P,type:o})}return i.cursor(aO.IncludeAnonymous).iterate(t=>{if(t.name){let o=hi[t.name];if(o&&o(t,r,e)||!e&&C.has(t.name))return!1;e=!1}else if(t.to-t.from>8192){for(let o of N(O,t.node))n.push(o);return!1}}),A.set(i,n),n}var I=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,D=["String","FormatString","Comment","PropertyName"];function H(O){let i=M(O.state).resolveInner(O.pos,-1);if(D.indexOf(i.name)>-1)return null;let a=i.name=="VariableName"||i.to-i.from<20&&I.test(O.state.sliceDoc(i.from,i.to));if(!a&&!O.explicit)return null;let n=[];for(let e=i;e;e=e.parent)C.has(e.name)&&(n=n.concat(N(O.state.doc,e)));return{options:n,from:a?i.from:O.pos,validFor:I}}var gi=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(O=>({label:O,type:"constant"})).concat("ArithmeticError.AssertionError.AttributeError.BaseException.BlockingIOError.BrokenPipeError.BufferError.BytesWarning.ChildProcessError.ConnectionAbortedError.ConnectionError.ConnectionRefusedError.ConnectionResetError.DeprecationWarning.EOFError.Ellipsis.EncodingWarning.EnvironmentError.Exception.FileExistsError.FileNotFoundError.FloatingPointError.FutureWarning.GeneratorExit.IOError.ImportError.ImportWarning.IndentationError.IndexError.InterruptedError.IsADirectoryError.KeyError.KeyboardInterrupt.LookupError.MemoryError.ModuleNotFoundError.NameError.NotADirectoryError.NotImplemented.NotImplementedError.OSError.OverflowError.PendingDeprecationWarning.PermissionError.ProcessLookupError.RecursionError.ReferenceError.ResourceWarning.RuntimeError.RuntimeWarning.StopAsyncIteration.StopIteration.SyntaxError.SyntaxWarning.SystemError.SystemExit.TabError.TimeoutError.TypeError.UnboundLocalError.UnicodeDecodeError.UnicodeEncodeError.UnicodeError.UnicodeTranslateError.UnicodeWarning.UserWarning.ValueError.Warning.ZeroDivisionError".split(".").map(O=>({label:O,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(O=>({label:O,type:"class"}))).concat("abs.aiter.all.anext.any.ascii.bin.breakpoint.callable.chr.compile.delattr.dict.dir.divmod.enumerate.eval.exec.exit.filter.format.getattr.globals.hasattr.hash.help.hex.id.input.isinstance.issubclass.iter.len.license.locals.max.min.next.oct.open.ord.pow.print.property.quit.repr.reversed.round.setattr.slice.sorted.sum.vars.zip".split(".").map(O=>({label:O,type:"function"}))),ci=[d("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),d("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),d("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),d("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),d(`if \${}: + +`,{label:"if",detail:"block",type:"keyword"}),d("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),d("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),d("import ${module}",{label:"import",detail:"statement",type:"keyword"}),d("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],L=dO(D,oO(gi.concat(ci)));function k(O){let{node:i,pos:a}=O,n=O.lineIndent(a,-1),e=null;for(;;){let r=i.childBefore(a);if(r)if(r.name=="Comment")a=r.from;else if(r.name=="Body"||r.name=="MatchBody")O.baseIndentFor(r)+O.unit<=n&&(e=r),i=r;else if(r.name=="MatchClause")i=r;else if(r.type.is("Statement"))i=r;else break;else break}return e}function u(O,i){let a=O.baseIndentFor(i),n=O.lineAt(O.pos,-1),e=n.from+n.text.length;return/^\s*($|#)/.test(n.text)&&O.node.toa?null:a+O.unit}var X=eO.define({name:"python",parser:J.configure({props:[OO.add({Body:O=>u(O,/^\s*(#|$)/.test(O.textAfter)&&k(O)||O.node)??O.continue(),MatchBody:O=>u(O,k(O)||O.node)??O.continue(),IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),"ForStatement WhileStatement":O=>/^\s*else:/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except[ :]|finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),MatchStatement:O=>/^\s*case /.test(O.textAfter)?O.baseIndent+O.unit:O.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":y({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":y({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":y({closing:"]"}),MemberExpression:O=>O.baseIndent+O.unit,"String FormatString":()=>null,Script:O=>{let i=k(O);return(i&&u(O,i))??O.continue()}}),K.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":iO,Body:(O,i)=>({from:O.from+1,to:O.to-(O.to==i.doc.length?0:1)}),"String FormatString":(O,i)=>({from:i.doc.lineAt(O.from).to,to:O.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function Xi(){return new tO(X,[X.data.of({autocomplete:H}),X.data.of({autocomplete:L})])}export{J as a,X as i,H as n,Xi as r,L as t}; diff --git a/docs/assets/dist-VnTTrJGI.js b/docs/assets/dist-VnTTrJGI.js new file mode 100644 index 0000000..491eaae --- /dev/null +++ b/docs/assets/dist-VnTTrJGI.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{n as r,t}from"./dist-BZPaM2NB.js";export{t as rust,r as rustLanguage}; diff --git a/docs/assets/dist-X4wBA4ja.js b/docs/assets/dist-X4wBA4ja.js new file mode 100644 index 0000000..561ff7c --- /dev/null +++ b/docs/assets/dist-X4wBA4ja.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import"./dist-BVf1IY4_.js";import{n as s,r as a,t as o}from"./dist-CAJqQUSI.js";export{o as sass,s as sassCompletionSource,a as sassLanguage}; diff --git a/docs/assets/dist-cDyKKhtR.js b/docs/assets/dist-cDyKKhtR.js new file mode 100644 index 0000000..873f0de --- /dev/null +++ b/docs/assets/dist-cDyKKhtR.js @@ -0,0 +1 @@ +import{D as j,J as Q,N as s,T as x,g as a,n as r,q as W,r as f,s as S,u as c,x as q,y as l}from"./dist-CAcX026F.js";var Y=1,u=2,n=3,Z=82,V=76,T=117,z=85,w=97,m=122,b=65,y=90,p=95,i=48,P=34,v=40,U=41,_=32,t=62,d=new r(O=>{if(O.next==V||O.next==z?O.advance():O.next==T&&(O.advance(),O.next==i+8&&O.advance()),O.next!=Z||(O.advance(),O.next!=P))return;O.advance();let e="";for(;O.next!=v;){if(O.next==_||O.next<=13||O.next==U)return;e+=String.fromCharCode(O.next),O.advance()}for(O.advance();;){if(O.next<0)return O.acceptToken(Y);if(O.next==U){let X=!0;for(let $=0;X&&${if(O.next==t)O.peek(1)==t&&O.acceptToken(u,1);else{let e=!1,X=0;for(;;X++){if(O.next>=b&&O.next<=y)e=!0;else{if(O.next>=w&&O.next<=m)return;if(O.next!=p&&!(O.next>=i&&O.next<=i+9))break}O.advance()}e&&X>1&&O.acceptToken(n)}},{extend:!0}),h=W({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":Q.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":Q.modifier,"if else switch for while do case default return break continue goto throw try catch":Q.controlKeyword,"co_return co_yield co_await":Q.controlKeyword,"new sizeof delete static_assert":Q.operatorKeyword,"NULL nullptr":Q.null,this:Q.self,"True False":Q.bool,"TypeSize PrimitiveType":Q.standard(Q.typeName),TypeIdentifier:Q.typeName,FieldIdentifier:Q.propertyName,"CallExpression/FieldExpression/FieldIdentifier":Q.function(Q.propertyName),"ModuleName/Identifier":Q.namespace,PartitionName:Q.labelName,StatementIdentifier:Q.labelName,"Identifier DestructorName":Q.variableName,"CallExpression/Identifier":Q.function(Q.variableName),"CallExpression/ScopedIdentifier/Identifier":Q.function(Q.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":Q.function(Q.definition(Q.variableName)),NamespaceIdentifier:Q.namespace,OperatorName:Q.operator,ArithOp:Q.arithmeticOperator,LogicOp:Q.logicOperator,BitOp:Q.bitwiseOperator,CompareOp:Q.compareOperator,AssignOp:Q.definitionOperator,UpdateOp:Q.updateOperator,LineComment:Q.lineComment,BlockComment:Q.blockComment,Number:Q.number,String:Q.string,"RawString SystemLibString":Q.special(Q.string),CharLiteral:Q.character,EscapeSequence:Q.escape,"UserDefinedLiteral/Identifier":Q.literal,PreProcArg:Q.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":Q.processingInstruction,MacroName:Q.special(Q.name),"( )":Q.paren,"[ ]":Q.squareBracket,"{ }":Q.brace,"< >":Q.angleBracket,". ->":Q.derefOperator,", ;":Q.separator}),g={__proto__:null,bool:36,char:36,int:36,float:36,double:36,void:36,size_t:36,ssize_t:36,intptr_t:36,uintptr_t:36,charptr_t:36,int8_t:36,int16_t:36,int32_t:36,int64_t:36,uint8_t:36,uint16_t:36,uint32_t:36,uint64_t:36,char8_t:36,char16_t:36,char32_t:36,char64_t:36,const:70,volatile:72,restrict:74,_Atomic:76,mutable:78,constexpr:80,constinit:82,consteval:84,struct:88,__declspec:92,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},k={__proto__:null,"<":131},G={__proto__:null,">":135},E={__proto__:null,operator:388,new:576,delete:582},C=f.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CxO.UQUO'#CxO0TQUO'#KZO0[QUO'#CwO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#K|'#K|OOQR'#J_'#J_Q!QQVOOOHkQVO'#FOOIWQUO'#EhOI_QUOOOKZQVO'#HgOKkQUO'#HgONVQUO'#KqONaQUO'#KqOOQQ'#Kq'#KqO!!_QUO'#KqOOQQ'#Jq'#JqO!!lQUO'#HxOOQQ'#KZ'#KZO!&^QUO'#KZO!&zQUO'#KQO!(zQVO'#I]O!(zQVO'#I`OCQQUO'#KQOOQQ'#Ip'#IpOOQQ'#KQ'#KQO!,}QUO'#KZOOQR'#KY'#KYO!-UQUO'#DZO!/mQUO'#KnOOQQ'#Kn'#KnO!/tQUO'#KnO!/{QUO'#ETO!0QQUO'#EWO!0VQUO'#FRO8zQUO'#FPO!QQVO'#F^O!0[Q#vO'#F`O!0gQUO'#FkO!0oQUO'#FpO!0tQVO'#FrO!0oQUO'#FuO!3sQUO'#FvO!3xQVO'#FxO!4SQUO'#FzO!4XQUO'#F|O!4^QUO'#GOO!4cQVO'#GQO!(zQVO'#GSO!4jQUO'#GpO!4xQUO'#GYO!(zQVO'#FeO!6VQUO'#FeO!6[QVO'#G`O!6cQUO'#GaO!6nQUO'#GnO!6sQUO'#GrO!6xQUO'#GzO!7jQ&lO'#HiO!:mQUO'#GuO!:}QUO'#HXO!;YQUO'#HZO!;bQUO'#DXO!;bQUO'#HuO!;bQUO'#HvO!;yQUO'#HwO!<[QUO'#H|O!=PQUO'#H}O!>uQVO'#IbO!(zQVO'#IdO!?PQUO'#IgO!?WQVO'#IjP!@}{,UO'#CbP!6n{,UO'#CbP!AY{7[O'#CbP!6n{,UO'#CbP!A_{,UO'#CbP!AjOSO'#IzPOOO)CEn)CEnOOOO'#I|'#I|O!AtOWO,59OOOQR,59O,59OO!(zQVO,59VOOQQ,59X,59XO!(zQVO,5;ROOQR,5qOOQR'#IX'#IXOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[O!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!(zQVO,5>rO!DOQVO,5>zOOQQ,5?W,5?WO!EqQVO'#CjO!IjQUO'#CzOOQQ,59d,59dOOQQ,59c,59cOOQQ,5<},5<}O!IwQ&lO,5=mO!?PQUO,5?RO!LkQVO,5?UO!LrQbO,59dO!L}QVO'#FYOOQQ,5?P,5?PO!M_QVO,59WO!MfO`O,5:bO!MkQbO'#D^O!M|QbO'#K_O!N[QbO,59wO!NdQbO'#CxO!NuQUO'#CxO!NzQUO'#KZO# UQUO'#CwOOQR-E<|-E<|O# aQUO,5AoO# hQVO'#EfO@XQVO'#EiOBUQUO,5;kOOQR,5l,5>lO#3gQUO'#CgO#4]QUO,5>pO#6OQUO'#IeOOQR'#I}'#I}O#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CuO!0QQUO'#CmOOQQ'#JW'#JWO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#DOO#9kQUO,5;QO#9pQUO,5>QO#:|QUO'#DOO#;dQUO,5>{O#;iQUO'#KwO#}QUO'#L[O#?UQUO,5>UO#?ZQbO'#CxO#?fQUO'#GcO#?kQUO'#E^O#@[QUO,5;kO#@sQUO'#K}O#@{QUO,5;rOKkQUO'#HfOBUQUO'#HgO#AQQUO'#KqO!6nQUO'#HjO#AxQUO'#CuO!0tQVO,5PO$(WQUO'#E[O$(eQUO,5>ROOQQ,5>S,5>SO$,RQVO'#C|OOQQ-E=o-E=oOOQQ,5>d,5>dOOQQ,59a,59aO$,]QUO,5>wO$.]QUO,5>zO!6nQUO,59uO$.pQUO,5;qO$.}QUO,5<{O!0QQUO,5:oOOQQ,5:r,5:rO$/YQUO,5;mO$/_QUO'#KmOBUQUO,5;kOOQR,5;x,5;xO$0OQUO'#FbO$0^QUO'#FbO$0cQUO,5;zO$3|QVO'#FmO!0tQVO,5eQUO,5pQUO,5=[O$>uQUO,5=[O!4xQUO,5}QUO,5uQUO,5<{O$DQQUO,5<{O$D]QUO,5=YO!(zQVO,5=^O!(zQVO,5=fO#NeQUO,5=mOOQQ,5>T,5>TO$FbQUO,5>TO$FlQUO,5>TO$FqQUO,5>TO$FvQUO,5>TO!6nQUO,5>TO$HtQUO'#KZO$H{QUO,5=oO$IWQUO,5=aOKkQUO,5=oO$JQQUO,5=sOOQR,5=s,5=sO$JYQUO,5=sO$LeQVO'#H[OOQQ,5=u,5=uO!;]QUO,5=uO%#`QUO'#KjO%#gQUO'#K[O%#{QUO'#KjO%$VQUO'#DyO%$hQUO'#D|O%'eQUO'#K[OOQQ'#K['#K[O%)WQUO'#K[O%#gQUO'#K[O%)]QUO'#K[OOQQ,59s,59sOOQQ,5>a,5>aOOQQ,5>b,5>bO%)eQUO'#HzO%)mQUO,5>cOOQQ,5>c,5>cO%-XQUO,5>cO%-dQUO,5>hO%1OQVO,5>iO%1VQUO,5>|O# hQVO'#EfO%4]QUO,5>|OOQQ,5>|,5>|O%4|QUO,5?OO%7QQUO,5?RO!<[QUO,5?RO%8|QUO,5?UO%sQUO1G0mOOQQ1G0m1G0mO%@PQUO'#CpO%B`QbO'#CxO%BkQUO'#CsO%BpQUO'#CsO%BuQUO1G.uO#AxQUO'#CrOOQQ1G.u1G.uO%DxQUO1G4]O%FOQUO1G4^O%GqQUO1G4^O%IdQUO1G4^O%KVQUO1G4^O%LxQUO1G4^O%NkQUO1G4^O&!^QUO1G4^O&$PQUO1G4^O&%rQUO1G4^O&'eQUO1G4^O&)WQUO1G4^O&*yQUO'#KPO&,SQUO'#KPO&,[QUO,59UOOQQ,5=P,5=PO&.dQUO,5=PO&.nQUO,5=PO&.sQUO,5=PO&.xQUO,5=PO!6nQUO,5=PO#NeQUO1G3XO&/SQUO1G4mO!<[QUO1G4mO&1OQUO1G4pO&2qQVO1G4pOOQQ1G/O1G/OOOQQ1G.}1G.}OOQQ1G2i1G2iO!IwQ&lO1G3XO&2xQUO'#LOO@XQVO'#EiO&4RQUO'#F]OOQQ'#Ja'#JaO&4WQUO'#FZO&4cQUO'#LOO&4kQUO,5;tO&4pQUO1G.rOOQQ1G.r1G.rOOQR1G/|1G/|O&6cQ!dO'#JPO&6hQbO,59xO&8yQ!eO'#D`O&9QQ!dO'#JRO&9VQbO,5@yO&9VQbO,5@yOOQR1G/c1G/cO&9bQbO1G/cO&9gQ&lO'#GeO&:eQbO,59dOOQR1G7Z1G7ZO#@[QUO1G1VO&:pQUO1G1^OBUQUO1G1VO&=RQUO'#CzO#*wQbO,59dO&@tQUO1G6sOOQR-E<{-E<{O&BWQUO1G0dO#6WQUO1G0dOOQQ-E=U-E=UO#6tQUO1G0dOOQQ1G0l1G0lO&B{QUO,59jOOQQ1G3l1G3lO&CcQUO,59jO&CyQUO,59jO!M_QVO1G4gO!(zQVO'#JYO&DeQUO,5AcOOQQ1G0o1G0oO!(zQVO1G0oO!6nQUO'#JnO&DmQUO,5AvOOQQ1G3p1G3pOOQR1G1V1G1VO&HjQVO'#FOO!M_QVO,5;sOOQQ,5;s,5;sOBUQUO'#JcO&JfQUO,5AiO&JnQVO'#E[OOQR1G1^1G1^O&M]QUO'#L[OOQR1G1n1G1nOOQR-E=f-E=fOOQR1G7]1G7]O#DhQUO1G7]OGVQUO1G7]O#DhQUO1G7_OOQR1G7_1G7_O&MeQUO'#G}O&MmQUO'#LWOOQQ,5=h,5=hO&M{QUO,5=jO&NQQUO,5=kOOQR1G7`1G7`O#EfQVO1G7`O&NVQUO1G7`O' ]QVO,5=kOOQR1G1U1G1UO$.vQUO'#E]O'!RQUO'#E]OOQQ'#Ky'#KyO'!lQUO'#KxO'!wQUO,5;UO'#PQUO'#ElO'#dQUO'#ElO'#wQUO'#EtOOQQ'#J['#J[O'#|QUO,5;cO'$sQUO,5;cO'%nQUO,5;dO'&tQVO,5;dOOQQ,5;d,5;dO''OQVO,5;dO'&tQVO,5;dO''VQUO,5;bO'(SQUO,5;eO'(_QUO'#KpO'(gQUO,5:vO'(lQUO,5;fOOQQ1G0n1G0nOOQQ'#J]'#J]O''VQUO,5;bO!4xQUO'#E}OOQQ,5;b,5;bO')gQUO'#E`O'+aQUO'#E{OHrQUO1G0nO'+fQUO'#EbOOQQ'#JX'#JXO'-OQUO'#KrOOQQ'#Kr'#KrO'-xQUO1G0eO'.pQUO1G3kO'/vQVO1G3kOOQQ1G3k1G3kO'0QQVO1G3kO'0XQUO'#L_O'1eQUO'#KXO'1sQUO'#KWO'2OQUO,59hO'2WQUO1G/aO'2]QUO'#FPOOQR1G1]1G1]OOQR1G2g1G2gO$>uQUO1G2gO'2gQUO1G2gO'2rQUO1G0ZOOQR'#J`'#J`O'2wQVO1G1XO'8pQUO'#FTO'8uQUO1G1VO!6nQUO'#JdO'9TQUO,5;|O$0^QUO,5;|OOQQ'#Fc'#FcOOQQ,5;|,5;|O'9cQUO1G1fOOQR1G1f1G1fO'9kQUO,5}QUO1G2`OOQQ'#Cv'#CvO'CzQUO'#G[O'DuQUO'#G[O'DzQUO'#LRO'EYQUO'#G_OOQQ'#LS'#LSO'EhQUO1G2`O'EmQVO1G1kO'HOQVO'#GUOBUQUO'#FWOOQR'#Je'#JeO'EmQVO1G1kO'HYQUO'#FvOOQR1G2f1G2fO'H_QUO1G2gO'HdQUO'#JgO'2gQUO1G2gO!(zQVO1G2tO'HlQUO1G2xO'IuQUO1G3QO'J{QUO1G3XOOQQ1G3o1G3oO'KaQUO1G3oOOQR1G3Z1G3ZO'KfQUO'#KZO'2]QUO'#LTOGkQUO'#LVOOQR'#Gy'#GyO#DhQUO'#LXOOQR'#HQ'#HQO'KpQUO'#GvO'#wQUO'#GuOOQR1G2{1G2{O'LmQUO1G2{O'MdQUO1G3ZO'MoQUO1G3_O'MtQUO1G3_OOQR1G3_1G3_O'M|QUO'#H]OOQR'#H]'#H]O( VQUO'#H]O!(zQVO'#H`O!(zQVO'#H_OOQR'#LZ'#LZO( [QUO'#LZOOQR'#Jk'#JkO( aQVO,5=vOOQQ,5=v,5=vO( hQUO'#H^O( pQUO'#HZOOQQ1G3a1G3aO( zQUO,5@vOOQQ,5@v,5@vO%)WQUO,5@vO%)]QUO,5@vO%$VQUO,5:eO(%iQUO'#KkO(%wQUO'#KkOOQQ,5:e,5:eOOQQ'#JS'#JSO(&SQUO'#D}O(&^QUO'#KqOGkQUO'#LVO('YQUO'#D}OOQQ'#Hp'#HpOOQQ'#Hr'#HrOOQQ'#Hs'#HsOOQQ'#Kl'#KlOOQQ'#JU'#JUO('dQUO,5:hOOQQ,5:h,5:hO((aQUO'#LVO((nQUO'#HtO()UQUO,5@vO()]QUO'#H{O()hQUO'#L^O()pQUO,5>fO()uQUO'#L]OOQQ1G3}1G3}O(-lQUO1G3}O(-sQUO1G3}O(-zQUO1G4TO(/QQUO1G4TO(/VQUO,5A|O!6nQUO1G4hO!(zQVO'#IiOOQQ1G4m1G4mO(/[QUO1G4mO(1_QVO1G4pPOOO1G.h1G.hP!A_{,UO1G.hP(3_QUO'#LeP(3j{,UO1G.hP(3o{7[O1G.hPO{O-E=s-E=sPOOO,5A},5A}P(3w{,UO,5A}POOO1G5Q1G5QO!(zQVO7+$]O(3|QUO'#CzOOQQ,59_,59_O(4XQbO,59dO(4dQbO,59_OOQQ,59^,59^OOQQ7+)w7+)wO!M_QVO'#JtO(4oQUO,5@kOOQQ1G.p1G.pOOQQ1G2k1G2kO(4wQUO1G2kO(4|QUO7+(sOOQQ7+*X7+*XO(7bQUO7+*XO(7iQUO7+*XO(1_QVO7+*[O#NeQUO7+(sO(7vQVO'#JbO(8ZQUO,5AjO(8cQUO,5;vOOQQ'#Cp'#CpOOQQ,5;w,5;wO!(zQVO'#F[OOQQ-E=_-E=_O!M_QVO,5;uOOQQ1G1`1G1`OOQQ,5?k,5?kOOQQ-E<}-E<}OOQR'#Dg'#DgOOQR'#Di'#DiOOQR'#Dl'#DlO(9lQ!eO'#K`O(9sQMkO'#K`O(9zQ!eO'#K`OOQR'#K`'#K`OOQR'#JQ'#JQO(:RQ!eO,59zOOQQ,59z,59zO(:YQbO,5?mOOQQ-E=P-E=PO(:hQbO1G6eOOQR7+$}7+$}OOQR7+&q7+&qOOQR7+&x7+&xO'8uQUO7+&qO(:sQUO7+&OO#6WQUO7+&OO(;hQUO1G/UO(]QUO,5?tOOQQ-E=W-E=WO(?fQUO7+&ZOOQQ,5@Y,5@YOOQQ-E=l-E=lO(?kQUO'#LOO@XQVO'#EiO(@wQUO1G1_OOQQ1G1_1G1_O(BQQUO,5?}OOQQ,5?},5?}OOQQ-E=a-E=aO(BfQUO'#KpOOQR7+,w7+,wO#DhQUO7+,wOOQR7+,y7+,yO(BsQUO,5=iO#DsQUO'#JjO(CUQUO,5ArOOQR1G3U1G3UOOQR1G3V1G3VO(CdQUO7+,zOOQR7+,z7+,zO(E[QUO,5:wO(FyQUO'#EwO!(zQVO,5;VO(GlQUO,5:wO(GvQUO'#EpO(HXQUO'#EzOOQQ,5;Z,5;ZO#K]QVO'#ExO(HoQUO,5:wO(HvQUO'#EyO#GgQUO'#JZO(J`QUO,5AdOOQQ1G0p1G0pO(JkQUO,5;WO!<[QUO,5;^O(KUQUO,5;_O(KdQUO,5;WO(MvQUO,5;`OOQQ-E=Y-E=YO(NOQUO1G0}OOQQ1G1O1G1OO(NyQUO1G1OO)!PQVO1G1OO)!WQVO1G1OO)!bQUO1G0|OOQQ1G0|1G0|OOQQ1G1P1G1PO)#_QUO'#JoO)#iQUO,5A[OOQQ1G0b1G0bOOQQ-E=Z-E=ZO)#qQUO,5;iO!<[QUO,5;iO)$nQVO,5:zO)$uQUO,5;gO$ mQUO7+&YOOQQ7+&Y7+&YO!(zQVO'#EfO)$|QUO,5:|OOQQ'#Ks'#KsOOQQ-E=V-E=VOOQQ,5A^,5A^OOQQ'#Jl'#JlO)(qQUO7+&PPOQQ7+&P7+&POOQQ7+)V7+)VO))iQUO7+)VO)*oQVO7+)VOOQQ,5>m,5>mO$)YQVO'#JsO)*vQUO,5@rOOQQ1G/S1G/SOOQQ7+${7+${O)+RQUO7+(RO)+WQUO7+(ROOQR7+(R7+(RO$>uQUO7+(ROOQQ7+%u7+%uOOQR-E=^-E=^O!0VQUO,5;oOOQQ,5@O,5@OOOQQ-E=b-E=bO$0^QUO1G1hOOQQ1G1h1G1hOOQR7+'Q7+'QOOQR1G1s1G1sOBUQUO,5;rO)+tQUO,5hQUO,5}QUO7+(dO)?SQVO7+(dOOQQ7+(l7+(lOOQQ7+)Z7+)ZO)?[QUO'#KjO)?fQUO'#KjOOQR,5=b,5=bO)?sQUO,5=bO!;bQUO,5=bO!;bQUO,5=bO!;bQUO,5=bOOQR7+(g7+(gOOQR7+(u7+(uOOQR7+(y7+(yOOQR,5=w,5=wO)?xQUO,5=zO)AOQUO,5=yOOQR,5Au,5AuOOQR-E=i-E=iOOQQ1G3b1G3bO)BUQUO,5=xO)BZQVO'#EfOOQQ1G6b1G6bO%)WQUO1G6bO%)]QUO1G6bOOQQ1G0P1G0POOQQ-E=Q-E=QO)DrQUO,5AVO(%iQUO'#JTO)D}QUO,5AVO)D}QUO,5AVO)EVQUO,5:iO8zQUO,5:iOOQQ,5>],5>]O)EaQUO,5AqO)EhQUO'#EVO)FrQUO'#EVO)G]QUO,5:iO)GgQUO'#HlO)GgQUO'#HmOOQQ'#Ko'#KoO)HUQUO'#KoO!(zQVO'#HnOOQQ,5:i,5:iO)HvQUO,5:iO!M_QVO,5:iOOQQ-E=S-E=SOOQQ1G0S1G0SOOQQ,5>`,5>`O)H{QUO1G6bO!(zQVO,5>gO)LjQUO'#JrO)LuQUO,5AxOOQQ1G4Q1G4QO)L}QUO,5AwOOQQ,5Aw,5AwOOQQ7+)i7+)iO*!lQUO7+)iOOQQ7+)o7+)oO*'kQVO1G7hO*)mQUO7+*SO*)rQUO,5?TO**xQUO7+*[POOO7+$S7+$SP*,kQUO'#LfP*,sQUO,5BPP*,x{,UO7+$SPOOO1G7i1G7iO*,}QUO<XQUO7+&jO*?_QVO7+&jOOQQ7+&h7+&hOOQQ,5@Z,5@ZOOQQ-E=m-E=mO*@ZQUO1G1TO*@eQUO1G1TO*AOQUO1G0fOOQQ1G0f1G0fO*BUQUO'#K{O*B^QUO1G1ROOQQ<uQUO<VO)GgQUO'#JpO*NQQUO1G0TO*NcQVO1G0TOOQQ1G3u1G3uO*NjQUO,5>WO*NuQUO,5>XO+ dQUO,5>YO+!jQUO1G0TO%)]QUO7++|O+#pQUO1G4ROOQQ,5@^,5@^OOQQ-E=p-E=pOOQQ<n,5>nO+/iQUOANAXOOQRANAXANAXO+/nQUO7+'`OOQRAN@cAN@cO+0zQVOAN@nO+1RQUOAN@nO!0tQVOAN@nO+2[QUOAN@nO+2aQUOAN@}O+2lQUOAN@}O+3rQUOAN@}OOQRAN@nAN@nO!M_QVOAN@}OOQRANAOANAOO+3wQUO7+'|O)7VQUO7+'|OOQQ7+(O7+(OO+4YQUO7+(OO+5`QVO7+(OO+5gQVO7+'hO+5nQUOANAjOOQR7+(h7+(hOOQR7+)P7+)PO+5sQUO7+)PO+5xQUO7+)POOQQ<= h<= hO+6QQUO7+,]O+6YQUO1G5ZOOQQ1G5Z1G5ZO+6eQUO7+%oOOQQ7+%o7+%oO+6vQUO7+%oO*NcQVO7+%oOOQQ7+)a7+)aO+6{QUO7+%oO+8RQUO7+%oO!M_QVO7+%oO+8]QUO1G0]O*LkQUO1G0]O)EhQUO1G0]OOQQ1G0a1G0aO+8zQUO1G3qO+:QQVO1G3qOOQQ1G3q1G3qO+:[QVO1G3qO+:cQUO,5@[OOQQ-E=n-E=nOOQQ1G3r1G3rO%)WQUO<= hOOQQ7+*Z7+*ZPOQQ,5@b,5@bPOQQ-E=t-E=tOOQQ1G/}1G/}OOQQ,5?x,5?xOOQQ-E=[-E=[OOQRG26sG26sO+:zQUOG26YO!0tQVOG26YO+QQUO<uAN>uO+BpQUOAN>uO+CvQUOAN>uO!M_QVOAN>uO+C{QUO<nQUO'#KZO,?OQUO'#CzO,?^QbO,59dO,6VQUO7+&OO,OP>i>{?aFXMX!&]!,sP!3m!4b!5VP!5qPPPPPPPP!6[P!7tP!9V!:oP!:uPPPPPP!:xP!:xPP!:xPPPPPPPPP!;U!>lP!>oPP!?]!@QPPPPP!@UP>l!AgPP>l!Cn!Eo!E}!Gd!ITP!I`P!Io!Io!MP#!`##v#'S#*^!Eo#*hPP!Eo#*o#*u#*h#*h#*xP#*|#+k#+k#+k#+k!ITP#,U#,g#.|P#/bP#0}P#1R#1Z#2O#2Z#4i#4q#4q#1RP#1RP#4x#5OP#5YPP#5u#6d#7U#5uP#7v#8SP#5uP#5uPP#5u#5uP#5uP#5uP#5uP#5uP#5uP#5uP#8V#5Y#8sP#9YP#9o#9o#9o#9o#9|#1RP#:d#?`#?}PPPPPPPP#@uP#ATP#ATP#Aa#Dn#9OPP#@}#EQP#Ee#Ep#Ev#Ev#@}#FlP#1R#1R#1R#1R#1RP!Io#GW#G_#G_#G_#Gc!Ly#Gm!Ly#Gq!E}!E}!E}#Gt#L^!E}>l>l>l$#V!@Q!@Q!@Q!@Q!@Q!@Q!6[!6[!6[$#jP$%V$%e!6[$%kPP!6[$'y$'|#@l$(P:t7j$+V$-Q$.q$0a7jPP7j$2T7jP7j7jP7jP$5Z7jP7jPP7j$5gPPPPPPPPP*[P$8o$8u$;^$=d$=j$>Q$>[$>g$>v$>|$@[$AZ$Ab$Ai$Ao$Aw$BR$BX$Bd$Bj$Bs$B{$CW$C^$Ch$Cn$Cx$DP$D`$Df$DlP$Dr$Dz$ER$Ea$F}$GT$GZ$Gb$GkPPPPPPPP$Gq$GuPPPPP$Nw$'y$Nz%$S%&[PP%&i%&lPPPPPPPPP%&x%'{%(R%(V%)|%+Z%+|%,T%.d%.jPPP%.t%/P%/S%/Y%0a%0d%0n%0x%0|%2Q%2s%2y#@uP%3d%3t%3w%4X%4e%4i%4o%4u$'y$'|$'|%4x%4{P%5V%5YR#cP'`mO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*q*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0h0{1Q1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fU%om%p7QQ&m!`Q(j#]d0P)}/|/}0O0R4}5O5P5S8QR7Q3Tb}Oaewx{!g&S*q&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0{1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fS%`f0h#d%jgnp|#O$g$|$}%S%d%h%i%w&s't'u(Q*Y*`*b*t+],l,v-_-p-w.f.m.o0]0y0z1O1S2_2j5a6g;W;X;Y;`;a;b;o;p;q;r;v;w;x;y MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ) ( ArgumentList ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,15,16,17,19,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,18,25,26,27,43,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-4,4,5,8,10,""],["openedBy",12,"(",52,"{",54,"["],["closedBy",13,")",51,"}",53,"]"]],propSources:[h],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)]W(qQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)]W(qQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#X4Y#X#Y7W#Y#o4Y#o;'S$e;'S;=`(u<%lO$e4e7cd)]W(qQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#Y4Y#Y#Z8q#Z#o4Y#o;'S$e;'S;=`(u<%lO$e4e8|d)]W(qQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#]4Y#]#^:[#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e:gd)]W(qQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#b4Y#b#c;u#c#o4Y#o;'S$e;'S;=`(u<%lO$e4e][)T,g)]W(qQ%Z!b'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!?`^)]W(qQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|!@[|!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!@gY)]W!X-y(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!AbY!h,k)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!B__)]W(qQ%Z!b!Y,g'f&jOY$eZr$ers%^sw$ewx(Ox}$e}!O!@[!O!_$e!_!`!8g!`!a!C^!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!CiY(x-y)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Dd^)]W(qQ'f&j(w,gOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!E`!P!Q$e!Q![!GY![#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Ei[)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!F_!P#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!FjY)Y,k)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]!Gen)]W(qQ!i,g'f&jOY$eZr$ers%^sw$ewx!Icx!Q$e!Q![!GY![!g$e!g!h#$w!h!i#*Y!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#X$e#X#Y#$w#Y#Z#*Y#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2T!IjY(qQ'f&jOY(OZr(Ors%}s!Q(O!Q![!JY![#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O2T!Jcn(qQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Icx!Q(O!Q![!JY![!g(O!g!h!La!h!i##`!i!n(O!n!o##`!o!r(O!r!s!La!s!w(O!w!x##`!x#O(O#O#P&f#P#X(O#X#Y!La#Y#Z##`#Z#`(O#`#a##`#a#d(O#d#e!La#e#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ljl(qQ!i,g'f&jOY(OZr(Ors%}s{(O{|!Nb|}(O}!O!Nb!O!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ni^(qQ'f&jOY(OZr(Ors%}s!Q(O!Q![# e![!c(O!c!i# e!i#O(O#O#P&f#P#T(O#T#Z# e#Z;'S(O;'S;=`(o<%lO(O2T# nj(qQ!i,g'f&jOY(OZr(Ors%}sw(Owx!Nbx!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T##id(qQ!i,g'f&jOY(OZr(Ors%}s!h(O!h!i##`!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#Y(O#Y#Z##`#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2]#%Sn)]W(qQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox{$e{|#'Q|}$e}!O#'Q!O!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#'Z`)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![#(]![!c$e!c!i#(]!i#O$e#O#P&f#P#T$e#T#Z#(]#Z;'S$e;'S;=`(u<%lO$e2]#(hj)]W(qQ!i,g'f&jOY$eZr$ers%^sw$ewx!Nbx!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#*ef)]W(qQ!i,g'f&jOY$eZr$ers%^sw$ewx(Ox!h$e!h!i#*Y!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#Y$e#Y#Z#*Y#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e7Z#,W`)]W(qQ%Z!b![,g'f&jOY$eZr$ers%^sw$ewx(Oxz$ez{#-Y{!P$e!P!Q#:s!Q!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#-c])]W(qQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y1e#._TOz#.[z{#.n{;'S#.[;'S;=`#/]<%lO#.[1e#.qVOz#.[z{#.n{!P#.[!P!Q#/W!Q;'S#.[;'S;=`#/]<%lO#.[1e#/]OT1e1e#/`P;=`<%l#.[7X#/jZ)]W'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7P#0bX'f&jOY#0]YZ#.[Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1SZ'f&jOY#0]YZ#.[Zz#0]z{#0}{!P#0]!P!Q#1u!Q#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1|UT1e'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}7P#2eZ'f&jOY#0]YZ#0]Z]#0]]^#3W^z#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3]X'f&jOY#0]YZ#0]Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3{P;=`<%l#0]7X#4V])]W'f&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{!P#/c!P!Q#5O!Q#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7X#5XW)]WT1e'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^7X#5tP;=`<%l#/c7R#6OZ(qQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#6x](qQ'f&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{!P#5w!P!Q#7q!Q#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#7zW(qQT1e'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O7R#8gP;=`<%l#5w7Z#8s_)]W(qQ'f&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{!P#-Y!P!Q#9r!Q#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y7Z#9}Y)]W(qQT1e'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#:pP;=`<%l#-Y7Z#;OY)]W(qQS1e'f&jOY#:sZr#:srs#;nsw#:swx#@{x#O#:s#O#P#[<%lO#b#P;'S#[<%lO#[<%lO#_P;=`<%l#i]S1e'f&jOY#b#P#b#[<%lO#[<%lO#b#P#b#[<%lO#t!R![$2V![!c$e!c!i$2V!i#O$e#O#P&f#P#T$e#T#Z$2V#Z;'S$e;'S;=`(u<%lO$e2]$?Pv)]W(qQ!i,g'f&jOY$eZr$ers%^sw$ewx$4lx!O$e!O!P$ m!P!Q$e!Q![$2V![!c$e!c!g$2V!g!h$:p!h!i$2V!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#U$2V#U#V$2V#V#X$2V#X#Y$:p#Y#Z$2V#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j#l$e#l#m$0z#m;'S$e;'S;=`(u<%lO$e4e$Ar[(v-X)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox![$e![!]$Bh!]#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3s$BsYm-})]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]$CnY)X,g)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7V$Dk_q,g%]!b)]W(qQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!^$Ej!^!_%+w!_!`%.U!`!a%0]!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej*[$Es])]W(qQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ejp$FoTO!`$Fl!`!a$GO!a;'S$Fl;'S;=`$GT<%lO$Flp$GTO$Wpp$GWP;=`<%l$Fl*Y$GbZ)]W'f&jOY$GZYZ$FlZw$GZwx$HTx!`$GZ!`!a%(U!a#O$GZ#O#P$Ib#P;'S$GZ;'S;=`%(y<%lO$GZ*Q$HYX'f&jOY$HTYZ$FlZ!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q$IOU$WpY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}*Q$Ig['f&jOY$HTYZ$HTZ]$HT]^$J]^!`$HT!`!a$NO!a#O$HT#O#P%&n#P;'S$HT;'S;=`%'f;=`<%l%$z<%lO$HT*Q$JbX'f&jOY$HTYZ$J}Z!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT'[$KSX'f&jOY$J}YZ$FlZ!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$KvU$Wp'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}'[$L_Z'f&jOY$J}YZ$J}Z]$J}]^$MQ^!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MVX'f&jOY$J}YZ$J}Z!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MuP;=`<%l$J}*Q$M{P;=`<%l$HT*Q$NVW$Wp'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`$NtW'f&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`% eUY#t'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%})`% |Y'f&jOY$NoYZ$NoZ]$No]^%!l^#O$No#O#P%#d#P;'S$No;'S;=`%$[;=`<%l%$z<%lO$No)`%!qX'f&jOY$NoYZ%}Z!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%#aP;=`<%l$No)`%#iZ'f&jOY$NoYZ%}Z]$No]^%!l^!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%$_XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$No<%lO%$z#t%$}WOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h<%lO%$z#t%%lOY#t#t%%oRO;'S%$z;'S;=`%%x;=`O%$z#t%%{XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l%$z<%lO%$z#t%&kP;=`<%l%$z*Q%&sZ'f&jOY$HTYZ$J}Z]$HT]^$J]^!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q%'iXOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$HT<%lO%$z*Y%(aW$WpY#t)]W'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^*Y%(|P;=`<%l$GZ*S%)WZ(qQ'f&jOY%)PYZ$FlZr%)Prs$HTs!`%)P!`!a%)y!a#O%)P#O#P$Ib#P;'S%)P;'S;=`%*n<%lO%)P*S%*UW$WpY#t(qQ'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O*S%*qP;=`<%l%)P*[%+RY$WpY#t)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e*[%+tP;=`<%l$Ej7V%,U^)]W(qQ%[!b!f,g'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!_$Ej!_!`%-Q!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%-]]!g-y)]W(qQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%.c]%]!b!b,g)]W(qQ'f&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%/[!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%/mY%]!b!b,g$WpY#t)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e)j%0hYY#t)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%1c[)j!c)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`0Q!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%2f]%]!b)]W(qQ!d,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`%3_!`!a%4[!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%3lY%]!b!b,g)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%4i[)]W(qQ%[!b!f,g'f&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%5jY(uP)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z%6ib)]W(yS(qQ!R,f(r%y'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e7Z%8Qb)]W(yS(qQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e5P%9cW)]W(p/]'f&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^2T%:UW(qQ)[,g'f&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O3o%:yZ!V-y)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox!}$e!}#O%;l#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%;wY)QP)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e4e%[Z]%=q]^%?Z^!Q%=q!Q![%?w![!w%=q!w!x%AX!x#O%=q#O#P%H_#P#i%=q#i#j%Ds#j#l%=q#l#m%IR#m;'S%=q;'S;=`%Kt<%lO%=q&t%=xUXY'f&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}4e%>e[XY(n.o'f&jOX%}XY-OYZ*[Z]%}]^-O^p%}pq-Oq#O%}#O#P,^#P;'S%};'S;=`'r<%lO%}4e%?bVXY'f&jOY%}YZ-OZ#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@OWXY'f&jOY%}Z!Q%}!Q![%@h![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@oWXY'f&jOY%}Z!Q%}!Q![%=q![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%A^['f&jOY%}Z!Q%}!Q![%BS![!c%}!c!i%BS!i#O%}#O#P&f#P#T%}#T#Z%BS#Z;'S%};'S;=`'r<%lO%}&t%BX['f&jOY%}Z!Q%}!Q![%B}![!c%}!c!i%B}!i#O%}#O#P&f#P#T%}#T#Z%B}#Z;'S%};'S;=`'r<%lO%}&t%CS['f&jOY%}Z!Q%}!Q![%Cx![!c%}!c!i%Cx!i#O%}#O#P&f#P#T%}#T#Z%Cx#Z;'S%};'S;=`'r<%lO%}&t%C}['f&jOY%}Z!Q%}!Q![%Ds![!c%}!c!i%Ds!i#O%}#O#P&f#P#T%}#T#Z%Ds#Z;'S%};'S;=`'r<%lO%}&t%Dx['f&jOY%}Z!Q%}!Q![%En![!c%}!c!i%En!i#O%}#O#P&f#P#T%}#T#Z%En#Z;'S%};'S;=`'r<%lO%}&t%Es['f&jOY%}Z!Q%}!Q![%Fi![!c%}!c!i%Fi!i#O%}#O#P&f#P#T%}#T#Z%Fi#Z;'S%};'S;=`'r<%lO%}&t%Fn['f&jOY%}Z!Q%}!Q![%Gd![!c%}!c!i%Gd!i#O%}#O#P&f#P#T%}#T#Z%Gd#Z;'S%};'S;=`'r<%lO%}&t%Gi['f&jOY%}Z!Q%}!Q![%=q![!c%}!c!i%=q!i#O%}#O#P&f#P#T%}#T#Z%=q#Z;'S%};'S;=`'r<%lO%}&t%HfXXY'f&jOY%}YZ%}Z]%}]^'W^#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%IW['f&jOY%}Z!Q%}!Q![%I|![!c%}!c!i%I|!i#O%}#O#P&f#P#T%}#T#Z%I|#Z;'S%};'S;=`'r<%lO%}&t%JR['f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KO[XY'f&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KwP;=`<%l%=q2a%LVZ!W,V)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P#Q%Lx#Q;'S$e;'S;=`(u<%lO$e'Y%MTY)Pd)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%NQ[)]W(qQ%[!b'f&j!_,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z& Vd)]W(yS(qQ!R,f(r%y'f&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q!Y%6Y!Y!Z%7q!Z![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e2]&!pY!T,g)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o&#m^)]W(qQ%[!b'f&j!^,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P#p$e#p#q&$i#q;'S$e;'S;=`(u<%lO$e3o&$vY)U,g%^!b)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)]W(qQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)]W(qQ%[!b'RP'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)]W(qQ'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)]W(qQeT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[d,R,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:O=>g[O]||-1},{term:33,get:O=>k[O]||-1},{term:66,get:O=>G[O]||-1},{term:363,get:O=>E[O]||-1}],tokenPrec:24891}),o=S.define({name:"cpp",parser:C.configure({props:[s.add({IfStatement:a({except:/^\s*({|else\b)/}),TryStatement:a({except:/^\s*({|catch)\b/}),LabeledStatement:q,CaseStatement:O=>O.baseIndent+O.unit,BlockComment:()=>null,CompoundStatement:l({closing:"}"}),Statement:a({except:/^{/})}),j.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":x,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function D(){return new c(o)}export{o as n,D as t}; diff --git a/docs/assets/dist-gkLBSkCp.js b/docs/assets/dist-gkLBSkCp.js new file mode 100644 index 0000000..d2bd2ec --- /dev/null +++ b/docs/assets/dist-gkLBSkCp.js @@ -0,0 +1 @@ +import{D as s,J as r,N as Q,T as n,g as t,q as o,r as c,s as i,u as l}from"./dist-CAcX026F.js";var g=o({String:r.string,Number:r.number,"True False":r.bool,PropertyName:r.propertyName,Null:r.null,", :":r.separator,"[ ]":r.squareBracket,"{ }":r.brace}),p=c.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26A0 JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[g],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),m=()=>a=>{try{JSON.parse(a.state.doc.toString())}catch(O){if(!(O instanceof SyntaxError))throw O;let e=u(O,a.state.doc);return[{from:e,message:O.message,severity:"error",to:e}]}return[]};function u(a,O){let e;return(e=a.message.match(/at position (\d+)/))?Math.min(+e[1],O.length):(e=a.message.match(/at line (\d+) column (\d+)/))?Math.min(O.line(+e[1]).from+ +e[2]-1,O.length):0}var P=i.define({name:"json",parser:p.configure({props:[Q.add({Object:t({except:/^\s*\}/}),Array:t({except:/^\s*\]/})}),s.add({"Object Array":n})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function R(){return new l(P)}export{P as n,m as r,R as t}; diff --git a/docs/assets/dist-mED403RR.js b/docs/assets/dist-mED403RR.js new file mode 100644 index 0000000..6fb8682 --- /dev/null +++ b/docs/assets/dist-mED403RR.js @@ -0,0 +1 @@ +import"./dist-CAcX026F.js";import{i as a,n as o,r as s,t as r}from"./dist-CsayQVA2.js";export{r as go,o as goLanguage,s as localCompletionSource,a as snippets}; diff --git a/docs/assets/dist-vjCyCXRJ.js b/docs/assets/dist-vjCyCXRJ.js new file mode 100644 index 0000000..e919e43 --- /dev/null +++ b/docs/assets/dist-vjCyCXRJ.js @@ -0,0 +1,3 @@ +import{Bt as he,Gt as T,It as de,Jt as H,K as nt,L as it,M as st,Nt as lt,Rt as ue,Ut as j,Vt as me,Wt as ge,Yt as pe,_t as Ae,at as O,ct as at,lt as z,ot as X,qt as G,rt as w}from"./dist-CAcX026F.js";var b=class rt{constructor(t,o,i,n){this.fromA=t,this.toA=o,this.fromB=i,this.toB=n}offset(t,o=t){return new rt(this.fromA+t,this.toA+t,this.fromB+o,this.toB+o)}};function E(e,t,o,i,n,r){if(e==i)return[];let s=te(e,t,o,i,n,r),l=re(e,t+s,o,i,n+s,r);t+=s,o-=l,n+=s,r-=l;let f=o-t,h=r-n;if(!f||!h)return[new b(t,o,n,r)];if(f>h){let c=e.slice(t,o).indexOf(i.slice(n,r));if(c>-1)return[new b(t,t+c,n,n),new b(t+c+h,o,r,r)]}else if(h>f){let c=i.slice(n,r).indexOf(e.slice(t,o));if(c>-1)return[new b(t,t,n,n+c),new b(o,o,n+c+f,r)]}if(f==1||h==1)return[new b(t,o,n,r)];let a=be(e,t,o,i,n,r);if(a){let[c,d,u]=a;return E(e,t,c,i,n,d).concat(E(e,c+u,o,i,d+u,r))}return ft(e,t,o,i,n,r)}var U=1e9,q=0,Z=!1;function ft(e,t,o,i,n,r){let s=o-t,l=r-n;if(U<1e9&&Math.min(s,l)>U*16||q>0&&Date.now()>q)return Math.min(s,l)>U*64?[new b(t,o,n,r)]:Ce(e,t,o,i,n,r);let f=Math.ceil((s+l)/2);_.reset(f),ee.reset(f);let h=(u,g)=>e.charCodeAt(t+u)==i.charCodeAt(n+g),a=(u,g)=>e.charCodeAt(o-u-1)==i.charCodeAt(r-g-1),c=(s-l)%2==0?null:ee,d=c?null:_;for(let u=0;uU||q>0&&!(u&63)&&Date.now()>q)return Ce(e,t,o,i,n,r);let g=_.advance(u,s,l,f,c,!1,h)||ee.advance(u,s,l,f,d,!0,a);if(g)return ct(e,t,o,t+g[0],i,n,r,n+g[1])}return[new b(t,o,n,r)]}var ve=class{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let t=0;tt)this.end+=2;else if(a>o)this.start+=2;else if(n){let c=i+(t-o)-l;if(c>=0&&c=t-h)return[d,i+d-c]}else{let d=t-n.vec[c];if(h>=d)return[h,a]}}}return null}},_=new ve,ee=new ve;function ct(e,t,o,i,n,r,s,l){let f=!1;return!N(e,i)&&++i==o&&(f=!0),!N(n,l)&&++l==s&&(f=!0),f?[new b(t,o,r,s)]:E(e,t,i,n,r,l).concat(E(e,i,o,n,l,s))}function Be(e,t){let o=1,i=Math.min(e,t);for(;oo||a>r||e.slice(l,h)!=i.slice(f,a)){if(s==1)return l-t-(N(e,l)?0:1);s>>=1}else{if(h==o||a==r)return h-t;l=h,f=a}}}function re(e,t,o,i,n,r){if(t==o||n==r||e.charCodeAt(o-1)!=i.charCodeAt(r-1))return 0;let s=Be(o-t,r-n);for(let l=o,f=r;;){let h=l-s,a=f-s;if(h>=1}else{if(h==t||a==n)return o-h;l=h,f=a}}}function oe(e,t,o,i,n,r,s,l){let f=i.slice(n,r),h=null;for(;;){if(h||s=o)break;let d=e.slice(a,c),u=-1;for(;(u=f.indexOf(d,u+1))!=-1;){let g=te(e,c,o,i,n+u+d.length,r),p=re(e,t,a,i,n,n+u),m=d.length+g+p;(!h||h[2]>=1}}function be(e,t,o,i,n,r){let s=o-t,l=r-n;if(sn.fromA-t&&i.toB>n.fromB-t&&(e[o-1]=new b(i.fromA,n.toA,i.fromB,n.toB),e.splice(o--,1))}}function ht(e,t,o){for(;;){we(o,1);let i=!1;for(let n=0;n3||l>3){let f=n==e.length-1?t.length:e[n+1].fromA,h=r.fromA-i,a=f-r.toA,c=Le(t,r.fromA,h),d=Oe(t,r.toA,a),u=r.fromA-c,g=d-r.toA;if((!s||!l)&&u&&g){let p=Math.max(s,l),[m,A,D]=s?[t,r.fromA,r.toA]:[o,r.fromB,r.toB];p>u&&t.slice(c,r.fromA)==m.slice(D-u,D)?(r=e[n]=new b(c,c+s,r.fromB-u,r.toB-u),c=r.fromA,d=Oe(t,r.toA,f-r.toA)):p>g&&t.slice(r.toA,d)==m.slice(A,A+g)&&(r=e[n]=new b(d-s,d,r.fromB+g,r.toB+g),d=r.toA,c=Le(t,r.fromA,r.fromA-i)),u=r.fromA-c,g=d-r.toA}if(u||g)r=e[n]=new b(r.fromA-u,r.toA+g,r.fromB-u,r.toB+g);else if(s){if(!l){let p=ye(t,r.fromA,r.toA),m,A=p<0?-1:Ee(t,r.toA,r.fromA);p>-1&&(m=p-r.fromA)<=a&&t.slice(r.fromA,p)==t.slice(r.toA,r.toA+m)?r=e[n]=r.offset(m):A>-1&&(m=r.toA-A)<=h&&t.slice(r.fromA-m,r.fromA)==t.slice(A,r.toA)&&(r=e[n]=r.offset(-m))}}else{let p=ye(o,r.fromB,r.toB),m,A=p<0?-1:Ee(o,r.toB,r.fromB);p>-1&&(m=p-r.fromB)<=a&&o.slice(r.fromB,p)==o.slice(r.toB,r.toB+m)?r=e[n]=r.offset(m):A>-1&&(m=r.toB-A)<=h&&o.slice(r.fromB-m,r.fromB)==o.slice(A,r.toB)&&(r=e[n]=r.offset(-m))}}i=r.toA}return we(e,3),e}var y;try{y=RegExp("[\\p{Alphabetic}\\p{Number}]","u")}catch{}function ke(e){return e>48&&e<58||e>64&&e<91||e>96&&e<123}function xe(e,t){if(t==e.length)return 0;let o=e.charCodeAt(t);return o<192?ke(o)?1:0:y?!Se(o)||t==e.length-1?y.test(String.fromCharCode(o))?1:0:y.test(e.slice(t,t+2))?2:0:0}function Me(e,t){if(!t)return 0;let o=e.charCodeAt(t-1);return o<192?ke(o)?1:0:y?!Te(o)||t==1?y.test(String.fromCharCode(o))?1:0:y.test(e.slice(t-2,t))?2:0:0}var De=8;function Oe(e,t,o){if(t==e.length||!Me(e,t))return t;for(let i=t,n=t+o,r=0;rn)return i;i+=s}return t}function Le(e,t,o){if(!t||!xe(e,t))return t;for(let i=t,n=t-o,r=0;re>=55296&&e<=56319,Te=e=>e>=56320&&e<=57343;function N(e,t){return!t||t==e.length||!Se(e.charCodeAt(t-1))||!Te(e.charCodeAt(t))}function ut(e,t,o){return U=((o==null?void 0:o.scanLimit)??1e9)>>1,q=o!=null&&o.timeout?Date.now()+o.timeout:0,Z=!1,ht(e,t,E(e,0,e.length,t,0,t.length))}function Ge(){return!Z}function Ne(e,t,o){return dt(ut(e,t,o),e,t)}var k=me.define({combine:e=>e[0]}),ne=G.define(),Re=me.define(),M=H.define({create(e){return null},update(e,t){for(let o of t.effects)o.is(ne)&&(e=o.value);for(let o of t.state.facet(Re))e=o(e,t);return e}}),S=class ot{constructor(t,o,i,n,r,s=!0){this.changes=t,this.fromA=o,this.toA=i,this.fromB=n,this.toB=r,this.precise=s}offset(t,o){return t||o?new ot(this.changes,this.fromA+t,this.toA+t,this.fromB+o,this.toB+o,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(t,o,i){return Ue(Ne(t.toString(),o.toString(),i),t,o,0,0,Ge())}static updateA(t,o,i,n,r){return je(Ie(t,n,!0,i.length),t,o,i,r)}static updateB(t,o,i,n,r){return je(Ie(t,n,!1,o.length),t,o,i,r)}};function Ve(e,t,o,i){let n=o.lineAt(e),r=i.lineAt(t);return n.to==e&&r.to==t&&ec+1&&m>d+1)break;u.push(g.offset(-h+i,-a+n)),[c,d]=He(g.toA+i,g.toB+n,t,o),l++}s.push(new S(u,h,Math.max(h,c),a,Math.max(a,d),r))}return s}var W=1e3;function qe(e,t,o,i){let n=0,r=e.length;for(;;){if(n==r){let a=0,c=0;n&&({toA:a,toB:c}=e[n-1]);let d=t-(o?a:c);return[a+d,c+d]}let s=n+r>>1,l=e[s],[f,h]=o?[l.fromA,l.toA]:[l.fromB,l.toB];if(f>t)r=s;else if(h<=t)n=s+1;else return i?[l.fromA,l.fromB]:[l.toA,l.toB]}}function Ie(e,t,o,i){let n=[];return t.iterChangedRanges((r,s,l,f)=>{let h=0,a=o?t.length:i,c=0,d=o?i:t.length;r>W&&([h,c]=qe(e,r-W,o,!0)),s=h?n[n.length-1]={fromA:g.fromA,fromB:g.fromB,toA:a,toB:d,diffA:g.diffA+p,diffB:g.diffB+m}:n.push({fromA:h,toA:a,fromB:c,toB:d,diffA:p,diffB:m})}),n}function je(e,t,o,i,n){if(!e.length)return t;let r=[];for(let s=0,l=0,f=0,h=0;;s++){let a=s==e.length?null:e[s],c=a?a.fromA+l:o.length,d=a?a.fromB+f:i.length;for(;hc||Math.min(i.length,m.toB+f)>d)break;r.push(m.offset(l,f)),h++}if(!a)break;let u=a.toA+l+a.diffA,g=a.toB+f+a.diffB,p=Ne(o.sliceString(c,u),i.sliceString(d,g),n);for(let m of Ue(p,o,i,c,d,Ge()))r.push(m);for(l+=a.diffA,f+=a.diffB;hu&&m.fromB+f>g)break;h++}}return r}var ze={scanLimit:500},Y=at.fromClass(class{constructor(e){({deco:this.deco,gutter:this.gutter}=Je(e))}update(e){(e.docChanged||e.viewportChanged||mt(e.startState,e.state)||gt(e.startState,e.state))&&({deco:this.deco,gutter:this.gutter}=Je(e.view))}},{decorations:e=>e.deco}),F=j.low(Ae({class:"cm-changeGutter",markers:e=>{var t;return((t=e.plugin(Y))==null?void 0:t.gutter)||ge.empty}}));function mt(e,t){return e.field(M,!1)!=t.field(M,!1)}function gt(e,t){return e.facet(k)!=t.facet(k)}var We=w.line({class:"cm-changedLine"}),Ye=w.mark({class:"cm-changedText"}),pt=w.mark({tagName:"ins",class:"cm-insertedLine"}),At=w.mark({tagName:"del",class:"cm-deletedLine"}),Fe=new class extends X{constructor(){super(...arguments),this.elementClass="cm-changedLineGutter"}};function vt(e,t,o,i,n,r){let s=o?e.fromA:e.fromB,l=o?e.toA:e.toB,f=0;if(s!=l){n.add(s,s,We),n.add(s,l,o?At:pt),r&&r.add(s,s,Fe);for(let h=t.iterRange(s,l-1),a=s;!h.next().done;){if(h.lineBreak){a++,n.add(a,a,We),r&&r.add(a,a,Fe);continue}let c=a+h.value.length;if(i)for(;f=a)break;(s?c.toA:c.toB)>h&&(!r||!r(e.state,c,l,f))&&vt(c,e.state.doc,s,i,l,f)}return{deco:l.finish(),gutter:f&&f.finish()}}var J=class extends z{constructor(e){super(),this.height=e}eq(e){return this.height==e.height}toDOM(){let e=document.createElement("div");return e.className="cm-mergeSpacer",e.style.height=this.height+"px",e}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},K=G.define({map:(e,t)=>e.map(t)}),I=H.define({create:()=>w.none,update:(e,t)=>{for(let o of t.effects)if(o.is(K))return o.value;return e.map(t.changes)},provide:e=>O.decorations.from(e)}),P=.01;function Ke(e,t){if(e.size!=t.size)return!1;let o=e.iter(),i=t.iter();for(;o.value;){if(o.from!=i.from||Math.abs(o.value.spec.widget.height-i.value.spec.widget.height)>1)return!1;o.next(),i.next()}return!0}function Bt(e,t,o){let i=new T,n=new T,r=e.state.field(I).iter(),s=t.state.field(I).iter(),l=0,f=0,h=0,a=0,c=e.viewport,d=t.viewport;for(let m=0;;m++){let A=mP&&(a+=v,n.add(f,f,w.widget({widget:new J(v),block:!0,side:-1})))}if(D>l+1e3&&lc.from&&fd.from){let v=Math.min(c.from-l,d.from-f);l+=v,f+=v,m--}else if(A)l=A.toA,f=A.toB;else break;for(;r.value&&r.fromP&&n.add(t.state.doc.length,t.state.doc.length,w.widget({widget:new J(u),block:!0,side:1}));let g=i.finish(),p=n.finish();Ke(g,e.state.field(I))||e.dispatch({effects:K.of(g)}),Ke(p,t.state.field(I))||t.dispatch({effects:K.of(p)})}var ie=G.define({map:(e,t)=>t.mapPos(e)}),bt=class extends z{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let t=document.createElement("div");return t.className="cm-collapsedLines",t.textContent=e.state.phrase("$ unchanged lines",this.lines),t.addEventListener("click",o=>{let i=e.posAtDOM(o.target);e.dispatch({effects:ie.of(i)});let{side:n,sibling:r}=e.state.facet(k);r&&r().dispatch({effects:ie.of(Ct(i,e.state.field(M),n=="a"))})}),t}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return"collapsed-unchanged-code"}};function Ct(e,t,o){let i=0,n=0;for(let r=0;;r++){let s=r=e)return n+(e-i);[i,n]=o?[s.toA,s.toB]:[s.toB,s.toA]}}var wt=H.define({create(e){return w.none},update(e,t){e=e.map(t.changes);for(let o of t.effects)o.is(ie)&&(e=e.update({filter:i=>i!=o.value}));return e},provide:e=>O.decorations.from(e)});function se({margin:e=3,minSize:t=4}){return wt.init(o=>kt(o,e,t))}function kt(e,t,o){let i=new T,n=e.facet(k).side=="a",r=e.field(M),s=1;for(let l=0;;l++){let f=l=o&&i.add(e.doc.line(h).from,e.doc.line(a).to,w.replace({widget:new bt(c),block:!0})),!f)break;s=e.doc.lineAt(Math.min(e.doc.length,n?f.toA:f.toB)).number}return i.finish()}var xt=O.styleModule.of(new lt({".cm-mergeView":{overflowY:"auto"},".cm-mergeViewEditors":{display:"flex",alignItems:"stretch"},".cm-mergeViewEditor":{flexGrow:1,flexBasis:0,overflow:"hidden"},".cm-merge-revert":{width:"1.6em",flexGrow:0,flexShrink:0,position:"relative"},".cm-merge-revert button":{position:"absolute",display:"block",width:"100%",boxSizing:"border-box",textAlign:"center",background:"none",border:"none",font:"inherit",cursor:"pointer"}})),Pe=O.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:"auto !important",overflowY:"visible !important"},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:"rgba(160, 128, 100, .08)"},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:"rgba(100, 160, 128, .08)"},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat"},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat"},"&light.cm-merge-b .cm-changedText":{background:"linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat"},"&dark.cm-merge-b .cm-changedText":{background:"linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat"},"&.cm-merge-b .cm-deletedText":{background:"#ff000033"},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:"none"},".cm-deletedChunk":{paddingLeft:"6px","& .cm-chunkButtons":{position:"absolute",insetInlineEnd:"5px"},"& button":{border:"none",cursor:"pointer",color:"white",margin:"0 2px",borderRadius:"3px","&[name=accept]":{background:"#2a2"},"&[name=reject]":{background:"#d43"}}},".cm-collapsedLines":{padding:"5px 5px 5px 10px",cursor:"pointer","&:before":{content:'"\u299A"',marginInlineEnd:"7px"},"&:after":{content:'"\u299A"',marginInlineStart:"7px"}},"&light .cm-collapsedLines":{color:"#444",background:"linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)"},"&dark .cm-collapsedLines":{color:"#ddd",background:"linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)"},".cm-changeGutter":{width:"3px",paddingLeft:"1px"},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:"#e43"},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:"#fa9"},"&light.cm-merge-b .cm-changedLineGutter":{background:"#2b2"},"&dark.cm-merge-b .cm-changedLineGutter":{background:"#8f8"},".cm-inlineChangedLineGutter":{background:"#75d"}}),$e=new ue,$=new ue,Mt=class{constructor(e){this.revertDOM=null,this.revertToA=!1,this.revertToLeft=!1,this.measuring=-1,this.diffConf=e.diffConfig||ze;let t=[j.low(Y),Pe,xt,I,O.updateListener.of(a=>{this.measuring<0&&(a.heightChanged||a.viewportChanged)&&!a.transactions.some(c=>c.effects.some(d=>d.is(K)))&&this.measure()})],o=[k.of({side:"a",sibling:()=>this.b,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&o.push(F);let i=he.create({doc:e.a.doc,selection:e.a.selection,extensions:[e.a.extensions||[],O.editorAttributes.of({class:"cm-merge-a"}),$.of(o),t]}),n=[k.of({side:"b",sibling:()=>this.a,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&n.push(F);let r=he.create({doc:e.b.doc,selection:e.b.selection,extensions:[e.b.extensions||[],O.editorAttributes.of({class:"cm-merge-b"}),$.of(n),t]});this.chunks=S.build(i.doc,r.doc,this.diffConf);let s=[M.init(()=>this.chunks),$e.of(e.collapseUnchanged?se(e.collapseUnchanged):[])];i=i.update({effects:G.appendConfig.of(s)}).state,r=r.update({effects:G.appendConfig.of(s)}).state,this.dom=document.createElement("div"),this.dom.className="cm-mergeView",this.editorDOM=this.dom.appendChild(document.createElement("div")),this.editorDOM.className="cm-mergeViewEditors";let l=e.orientation||"a-b",f=document.createElement("div");f.className="cm-mergeViewEditor";let h=document.createElement("div");h.className="cm-mergeViewEditor",this.editorDOM.appendChild(l=="a-b"?f:h),this.editorDOM.appendChild(l=="a-b"?h:f),this.a=new O({state:i,parent:f,root:e.root,dispatchTransactions:a=>this.dispatch(a,this.a)}),this.b=new O({state:r,parent:h,root:e.root,dispatchTransactions:a=>this.dispatch(a,this.b)}),this.setupRevertControls(!!e.revertControls,e.revertControls=="b-to-a",e.renderRevertControl),e.parent&&e.parent.appendChild(this.dom),this.scheduleMeasure()}dispatch(e,t){if(e.some(o=>o.docChanged)){let o=e[e.length-1],i=e.reduce((r,s)=>r.compose(s.changes),de.empty(e[0].startState.doc.length));this.chunks=t==this.a?S.updateA(this.chunks,o.newDoc,this.b.state.doc,i,this.diffConf):S.updateB(this.chunks,this.a.state.doc,o.newDoc,i,this.diffConf),t.update([...e,o.state.update({effects:ne.of(this.chunks)})]);let n=t==this.a?this.b:this.a;n.update([n.state.update({effects:ne.of(this.chunks)})]),this.scheduleMeasure()}else t.update(e)}reconfigure(e){if("diffConfig"in e&&(this.diffConf=e.diffConfig),"orientation"in e){let n=e.orientation!="b-a";if(n!=(this.editorDOM.firstChild==this.a.dom.parentNode)){let r=this.a.dom.parentNode,s=this.b.dom.parentNode;r.remove(),s.remove(),this.editorDOM.insertBefore(n?r:s,this.editorDOM.firstChild),this.editorDOM.appendChild(n?s:r),this.revertToLeft=!this.revertToLeft,this.revertDOM&&(this.revertDOM.textContent="")}}if("revertControls"in e||"renderRevertControl"in e){let n=!!this.revertDOM,r=this.revertToA,s=this.renderRevert;"revertControls"in e&&(n=!!e.revertControls,r=e.revertControls=="b-to-a"),"renderRevertControl"in e&&(s=e.renderRevertControl),this.setupRevertControls(n,r,s)}let t="highlightChanges"in e,o="gutter"in e,i="collapseUnchanged"in e;if(t||o||i){let n=[],r=[];if(t||o){let s=this.a.state.facet(k),l=o?e.gutter!==!1:s.markGutter,f=t?e.highlightChanges!==!1:s.highlightChanges;n.push($.reconfigure([k.of({side:"a",sibling:()=>this.b,highlightChanges:f,markGutter:l}),l?F:[]])),r.push($.reconfigure([k.of({side:"b",sibling:()=>this.a,highlightChanges:f,markGutter:l}),l?F:[]]))}if(i){let s=$e.reconfigure(e.collapseUnchanged?se(e.collapseUnchanged):[]);n.push(s),r.push(s)}this.a.dispatch({effects:n}),this.b.dispatch({effects:r})}this.scheduleMeasure()}setupRevertControls(e,t,o){this.revertToA=t,this.revertToLeft=this.revertToA==(this.editorDOM.firstChild==this.a.dom.parentNode),this.renderRevert=o,!e&&this.revertDOM?(this.revertDOM.remove(),this.revertDOM=null):e&&!this.revertDOM?(this.revertDOM=this.editorDOM.insertBefore(document.createElement("div"),this.editorDOM.firstChild.nextSibling),this.revertDOM.addEventListener("mousedown",i=>this.revertClicked(i)),this.revertDOM.className="cm-merge-revert"):this.revertDOM&&(this.revertDOM.textContent="")}scheduleMeasure(){this.measuring<0&&(this.measuring=(this.dom.ownerDocument.defaultView||window).requestAnimationFrame(()=>{this.measuring=-1,this.measure()}))}measure(){Bt(this.a,this.b,this.chunks),this.revertDOM&&this.updateRevertButtons()}updateRevertButtons(){let e=this.revertDOM,t=e.firstChild,o=this.a.viewport,i=this.b.viewport;for(let n=0;no.to||r.fromB>i.to)break;if(r.fromA-1&&(this.dom.ownerDocument.defaultView||window).cancelAnimationFrame(this.measuring),this.dom.remove()}};function Qe(e){let t=e.nextSibling;return e.remove(),t}var Dt=new class extends X{constructor(){super(...arguments),this.elementClass="cm-deletedLineGutter"}},Ot=j.low(Ae({class:"cm-changeGutter",markers:e=>{var t;return((t=e.plugin(Y))==null?void 0:t.gutter)||ge.empty},widgetMarker:(e,t)=>t instanceof Ze?Dt:null}));function Lt(e){let t=typeof e.original=="string"?pe.of(e.original.split(/\r?\n/)):e.original,o=e.diffConfig||ze;return[j.low(Y),Tt,Pe,O.editorAttributes.of({class:"cm-merge-b"}),Re.of((i,n)=>{let r=n.effects.find(s=>s.is(le));return r&&(i=S.updateA(i,r.value.doc,n.startState.doc,r.value.changes,o)),n.docChanged&&(i=S.updateB(i,n.state.field(R),n.newDoc,n.changes,o)),i}),k.of({highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1,syntaxHighlightDeletions:e.syntaxHighlightDeletions!==!1,syntaxHighlightDeletionsMaxLength:3e3,mergeControls:e.mergeControls??!0,overrideChunk:e.allowInlineDiffs?Vt:void 0,side:"b"}),R.init(()=>t),e.gutter===!1?[]:Ot,e.collapseUnchanged?se(e.collapseUnchanged):[],M.init(i=>S.build(t,i.doc,o))]}var le=G.define(),R=H.define({create:()=>pe.empty,update(e,t){for(let o of t.effects)o.is(le)&&(e=o.value.doc);return e}}),Xe=new WeakMap,Ze=class extends z{constructor(e){super(),this.buildDOM=e,this.dom=null}eq(e){return this.dom==e.dom}toDOM(e){return this.dom||(this.dom=this.buildDOM(e))}};function Et(e,t,o){let i=Xe.get(t.changes);if(i)return i;let n=w.widget({block:!0,side:-1,widget:new Ze(r=>{let{highlightChanges:s,syntaxHighlightDeletions:l,syntaxHighlightDeletionsMaxLength:f,mergeControls:h}=e.facet(k),a=document.createElement("div");if(a.className="cm-deletedChunk",h){let C=a.appendChild(document.createElement("div"));C.className="cm-chunkButtons";let v=B=>{B.preventDefault(),yt(r,r.posAtDOM(a))},L=B=>{B.preventDefault(),St(r,r.posAtDOM(a))};if(typeof h=="function")C.appendChild(h("accept",v)),C.appendChild(h("reject",L));else{let B=C.appendChild(document.createElement("button"));B.name="accept",B.textContent=e.phrase("Accept"),B.onmousedown=v;let x=C.appendChild(document.createElement("button"));x.name="reject",x.textContent=e.phrase("Reject"),x.onmousedown=L}}if(o||t.fromA>=t.toA)return a;let c=r.state.field(R).sliceString(t.fromA,t.endA),d=l&&e.facet(it),u=A(),g=t.changes,p=0,m=!1;function A(){let C=a.appendChild(document.createElement("div"));return C.className="cm-deletedLine",C.appendChild(document.createElement("del"))}function D(C,v,L){for(let B=C;B-1&&QB){let V=document.createTextNode(c.slice(B,x));if(ae){let ce=u.appendChild(document.createElement("span"));ce.className=ae,ce.appendChild(V)}else u.appendChild(V);B=x}fe&&(m=!m)}}if(d&&t.toA-t.fromA<=f){let C=d.parser.parse(c),v=0;nt(C,{style:L=>st(e,L)},(L,B,x)=>{L>v&&D(v,L,""),D(L,B,x),v=B}),D(v,c.length,"")}else D(0,c.length,"");return u.firstChild||u.appendChild(document.createElement("br")),a})});return Xe.set(t.changes,n),n}function yt(e,t){let{state:o}=e,i=t??o.selection.main.head,n=e.state.field(M).find(f=>f.fromB<=i&&f.endB>=i);if(!n)return!1;let r=e.state.sliceDoc(n.fromB,Math.max(n.fromB,n.toB-1)),s=e.state.field(R);n.fromB!=n.toB&&n.toA<=s.length&&(r+=e.state.lineBreak);let l=de.of({from:n.fromA,to:Math.min(s.length,n.toA),insert:r},s.length);return e.dispatch({effects:le.of({doc:l.apply(s),changes:l}),userEvent:"accept"}),!0}function St(e,t){let{state:o}=e,i=t??o.selection.main.head,n=o.field(M).find(s=>s.fromB<=i&&s.endB>=i);if(!n)return!1;let r=o.field(R).sliceString(n.fromA,Math.max(n.fromA,n.toA-1));return n.fromA!=n.toA&&n.toB<=o.doc.length&&(r+=o.lineBreak),e.dispatch({changes:{from:n.fromB,to:Math.min(o.doc.length,n.toB),insert:r},userEvent:"revert"}),!0}function _e(e){let t=new T;for(let o of e.field(M)){let i=e.facet(k).overrideChunk&&tt(e,o);t.add(o.fromB,o.fromB,Et(e,o,!!i))}return t.finish()}var Tt=H.define({create:e=>_e(e),update(e,t){return t.state.field(M,!1)==t.startState.field(M,!1)?e:_e(t.state)},provide:e=>O.decorations.from(e)}),et=new WeakMap;function tt(e,t){let o=et.get(t);if(o!==void 0)return o;o=null;let i=e.field(R),n=e.doc,r=i.lineAt(t.endA).number-i.lineAt(t.fromA).number+1,s=n.lineAt(t.endB).number-n.lineAt(t.fromB).number+1;e:if(r==s&&r<10){let l=[],f=0,h=t.fromA,a=t.fromB;for(let c of t.changes){if(c.fromA=t.endB)break;s=e.doc.lineAt(s.to+1)}return!0}export{Lt as n,Mt as t}; diff --git a/docs/assets/dist-zq3bdql0.js b/docs/assets/dist-zq3bdql0.js new file mode 100644 index 0000000..4f0b597 --- /dev/null +++ b/docs/assets/dist-zq3bdql0.js @@ -0,0 +1 @@ +import{J as e,i as r,nt as a,q as p,r as u,s as m,u as S}from"./dist-CAcX026F.js";import{n as b}from"./dist-CVj-_Iiz.js";import{a as c}from"./dist-Cq_4nPfh.js";var Q=u.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"\u26A0 Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new r("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new r("[~RPwxU~ZOp~~",11,15),new r("[~RPrsU~ZOn~~",11,14),new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),P=c.parser.configure({top:"SingleExpression"}),o=Q.configure({props:[p({Text:e.content,Is:e.definitionOperator,AttributeName:e.attributeName,VueAttributeName:e.keyword,Identifier:e.variableName,"AttributeValue ScriptAttributeValue":e.attributeValue,Entity:e.character,"{{ }}":e.brace,"@ :":e.punctuation})]}),i={parser:P},y=o.configure({wrap:a((O,t)=>O.name=="InterpolationContent"?i:null)}),g=o.configure({wrap:a((O,t)=>O.name=="AttributeScript"?i:null),top:"Attribute"}),X={parser:y},f={parser:g},n=b();function s(O){return O.configure({dialect:"selfClosing",wrap:a(R)},"vue")}var l=s(n.language);function R(O,t){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(t.read(O.from,O.from+2))?f:null;case"Text":return X}return null}function T(O={}){let t=n;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof m))throw RangeError("The base option must be the result of calling html(...)");t=O.base}return new S(t.language==n.language?l:s(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{l as n,T as t}; diff --git a/docs/assets/docker-CVXANKL7.js b/docs/assets/docker-CVXANKL7.js new file mode 100644 index 0000000..898f773 --- /dev/null +++ b/docs/assets/docker-CVXANKL7.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Dockerfile","name":"docker","patterns":[{"captures":{"1":{"name":"keyword.other.special-method.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*\\\\b(?i:(FROM))\\\\b.*?\\\\b(?i:(AS))\\\\b"},{"captures":{"1":{"name":"keyword.control.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\\\s"},{"captures":{"1":{"name":"keyword.operator.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(CMD|ENTRYPOINT))\\\\s"},{"include":"#string-character-escape"},{"begin":"\\"","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"\\"","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.double.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"begin":"'","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.single.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.dockerfile"},"2":{"name":"comment.line.number-sign.dockerfile"},"3":{"name":"punctuation.definition.comment.dockerfile"}},"match":"^(\\\\s*)((#).*$\\\\n?)"}],"repository":{"string-character-escape":{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}},"scopeName":"source.dockerfile","aliases":["dockerfile"]}`))];export{e as default}; diff --git a/docs/assets/dockerfile-mDMHwaZE.js b/docs/assets/dockerfile-mDMHwaZE.js new file mode 100644 index 0000000..d44fb50 --- /dev/null +++ b/docs/assets/dockerfile-mDMHwaZE.js @@ -0,0 +1 @@ +import{t as o}from"./simple-mode-B3UD3n_i.js";var e="from",l=RegExp("^(\\s*)\\b("+e+")\\b","i"),n=["run","cmd","entrypoint","shell"],s=RegExp("^(\\s*)("+n.join("|")+")(\\s+\\[)","i"),t="expose",x=RegExp("^(\\s*)("+t+")(\\s+)","i"),r="("+[e,t].concat(n,["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",g=RegExp("^(\\s*)"+r+"(\\s*)(#.*)?$","i"),k=RegExp("^(\\s*)"+r+"(\\s+)","i");const a=o({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:l,token:[null,"keyword"],sol:!0,next:"from"},{regex:g,token:[null,"keyword",null,"error"],sol:!0},{regex:s,token:[null,"keyword",null],sol:!0,next:"array"},{regex:x,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:k,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}});export{a as dockerFile}; diff --git a/docs/assets/documentation-panel-BxwnSjGK.js b/docs/assets/documentation-panel-BxwnSjGK.js new file mode 100644 index 0000000..25758e2 --- /dev/null +++ b/docs/assets/documentation-panel-BxwnSjGK.js @@ -0,0 +1 @@ +import{s as a}from"./chunk-LvLJmgfZ.js";import{u as p}from"./useEvent-DlWF5OMa.js";import{t as s}from"./react-BGmjiNul.js";import{Pn as l,an as n}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as c}from"./compiler-runtime-DeeZ7FnK.js";import"./config-CENq_7Pd.js";import{t as f}from"./jsx-runtime-DN_bIXfG.js";import"./dist-CAcX026F.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import"./Combination-D1TsGrBC.js";import{t as u}from"./RenderHTML-B4Nb8r0D.js";import"./purify.es-N-2faAGj.js";import{t as d}from"./empty-state-H6r25Wek.js";var x=c();s();var e=a(f(),1),v=()=>{let o=(0,x.c)(5),{documentation:r}=p(n);if(!r){let i;return o[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,e.jsx)(d,{title:"View docs as you type",description:"Move your text cursor over a symbol to see its documentation.",icon:(0,e.jsx)(l,{})}),o[0]=i):i=o[0],i}let t;o[1]===r?t=o[2]:(t=u({html:r}),o[1]=r,o[2]=t);let m;return o[3]===t?m=o[4]:(m=(0,e.jsx)("div",{className:"p-3 overflow-y-auto overflow-x-hidden h-full docs-documentation flex flex-col gap-4",children:t}),o[3]=t,o[4]=m),m};export{v as default}; diff --git a/docs/assets/dotenv-3kT46W6n.js b/docs/assets/dotenv-3kT46W6n.js new file mode 100644 index 0000000..8664406 --- /dev/null +++ b/docs/assets/dotenv-3kT46W6n.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"dotEnv","name":"dotenv","patterns":[{"captures":{"1":{"patterns":[{"include":"#line-comment"}]}},"match":"^\\\\s?(#.*)$\\\\n"},{"captures":{"1":{"patterns":[{"include":"#key"}]},"2":{"name":"keyword.operator.assignment.dotenv"},"3":{"name":"property.value.dotenv","patterns":[{"include":"#line-comment"},{"include":"#double-quoted-string"},{"include":"#single-quoted-string"},{"include":"#interpolation"}]}},"match":"^\\\\s?(.*?)\\\\s?(=)(.*)$"}],"repository":{"double-quoted-string":{"captures":{"1":{"patterns":[{"include":"#interpolation"},{"include":"#escape-characters"}]}},"match":"\\"(.*)\\"","name":"string.quoted.double.dotenv"},"escape-characters":{"match":"\\\\\\\\(?:[\\"'\\\\\\\\bfnrt]|u[0-9A-F]{4})","name":"constant.character.escape.dotenv"},"interpolation":{"captures":{"1":{"name":"keyword.interpolation.begin.dotenv"},"2":{"name":"variable.interpolation.dotenv"},"3":{"name":"keyword.interpolation.end.dotenv"}},"match":"(\\\\$\\\\{)(.*)(})"},"key":{"captures":{"1":{"name":"keyword.key.export.dotenv"},"2":{"name":"variable.key.dotenv","patterns":[{"include":"#variable"}]}},"match":"(export\\\\s)?(.*)"},"line-comment":{"match":"#.*$","name":"comment.line.dotenv"},"single-quoted-string":{"match":"'(.*)'","name":"string.quoted.single.dotenv"},"variable":{"match":"[A-Z_a-z]+[0-9A-Z_a-z]*"}},"scopeName":"source.dotenv"}`))];export{e as default}; diff --git a/docs/assets/download-C_slsU-7.js b/docs/assets/download-C_slsU-7.js new file mode 100644 index 0000000..ff13028 --- /dev/null +++ b/docs/assets/download-C_slsU-7.js @@ -0,0 +1 @@ +import{t as R}from"./chunk-LvLJmgfZ.js";import{t as G}from"./react-BGmjiNul.js";import{ii as I,zt as M}from"./cells-CmJW_FeD.js";import{d as N}from"./hotkeys-uKX61F1_.js";import{t as B}from"./requests-C0HaHO6a.js";import{t as W}from"./createLucideIcon-CW2xpJ57.js";import{t as j}from"./use-toast-Bzf3rpev.js";import{s as q}from"./popover-DtnzNVk-.js";import{r as z}from"./errors-z7WpYca5.js";import{t as k}from"./es-BJsT6vfZ.js";var C=W("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),T=t=>{let e,n=new Set,o=(f,L)=>{let d=typeof f=="function"?f(e):f;if(!Object.is(d,e)){let a=e;e=L??(typeof d!="object"||!d)?d:Object.assign({},e,d),n.forEach(i=>i(e,a))}},r=()=>e,c={setState:o,getState:r,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{n.clear()}},u=e=t(o,r,c);return c},H=t=>t?T(t):T,Y=R((t=>{var e=G(),n=q();function o(a,i){return a===i&&(a!==0||1/a==1/i)||a!==a&&i!==i}var r=typeof Object.is=="function"?Object.is:o,c=n.useSyncExternalStore,u=e.useRef,f=e.useEffect,L=e.useMemo,d=e.useDebugValue;t.useSyncExternalStoreWithSelector=function(a,i,E,S,v){var m=u(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=L(function(){function O(l){if(!P){if(P=!0,b=l,l=S(l),v!==void 0&&p.hasValue){var y=p.value;if(v(y,l))return g=y}return g=l}if(y=g,r(b,l))return y;var D=S(l);return v!==void 0&&v(y,D)?(b=l,y):(b=l,g=D)}var P=!1,b,g,F=E===void 0?null:E;return[function(){return O(i())},F===null?void 0:function(){return O(F())}]},[i,E,S,v]);var w=c(a,m[0],m[1]);return f(function(){p.hasValue=!0,p.value=w},[w]),d(w),w}})),_=R(((t,e)=>{e.exports=Y()}));const s={toMarkdown:t=>s.replace(t,"md"),toHTML:t=>s.replace(t,"html"),toPNG:t=>s.replace(t,"png"),toPDF:t=>s.replace(t,"pdf"),toPY:t=>s.replace(t,"py"),withoutExtension:t=>{let e=t.split(".");return e.length===1?t:e.slice(0,-1).join(".")},replace:(t,e)=>t.endsWith(`.${e}`)?t:`${s.withoutExtension(t)}.${e}`};async function J(t,e){let n=j({title:t,duration:1/0});try{let o=await e();return n.dismiss(),o}catch(o){throw n.dismiss(),o}}function U(t){let e=document.getElementById(I.create(t));if(!e){N.error(`Output element not found for cell ${t}`);return}return e}var h=0;function K(){h++,h===1&&document.body.classList.add("printing")}function Q(){h--,h===0&&document.body.classList.remove("printing")}function V(t){t.classList.add("printing-output"),K();let e=t.style.overflow;return t.style.overflow="auto",()=>{t.classList.remove("printing-output"),Q(),t.style.overflow=e}}async function X(t){let e=U(t);if(!e)return;let n=V(e);try{return await k(e)}finally{n()}}async function Z(t,e){let n=U(t);n&&await $({element:n,filename:e,prepare:V})}async function $(t){let{element:e,filename:n,prepare:o}=t,r=document.getElementById("App"),c=(r==null?void 0:r.scrollTop)??0,u;o?u=o(e):document.body.classList.add("printing");try{x(await k(e),s.toPNG(n))}catch{j({title:"Error",description:"Failed to download as PNG.",variant:"danger"})}finally{u==null||u(),document.body.classList.contains("printing")&&document.body.classList.remove("printing"),requestAnimationFrame(()=>{r==null||r.scrollTo(0,c)})}}function x(t,e){let n=document.createElement("a");n.href=t,n.download=e,n.click(),n.remove()}function A(t,e){let n=URL.createObjectURL(t);x(n,e),URL.revokeObjectURL(n)}async function tt(t){let e=B(),{filename:n,webpdf:o}=t;try{let r=await e.exportAsPDF({webpdf:o}),c=M.basename(n);A(r,s.toPDF(c))}catch(r){throw j({title:"Failed to download",description:z(r),variant:"danger"}),r}}export{$ as a,s as c,C as d,Z as i,_ as l,A as n,X as o,x as r,J as s,tt as t,H as u}; diff --git a/docs/assets/download-DobaYJPt.js b/docs/assets/download-DobaYJPt.js new file mode 100644 index 0000000..8e1d6b8 --- /dev/null +++ b/docs/assets/download-DobaYJPt.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);export{t}; diff --git a/docs/assets/dracula-Ce4vXCNi.js b/docs/assets/dracula-Ce4vXCNi.js new file mode 100644 index 0000000..b45a827 --- /dev/null +++ b/docs/assets/dracula-Ce4vXCNi.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBackground":"#BD93F910","activityBar.activeBorder":"#FF79C680","activityBar.background":"#343746","activityBar.foreground":"#F8F8F2","activityBar.inactiveForeground":"#6272A4","activityBarBadge.background":"#FF79C6","activityBarBadge.foreground":"#F8F8F2","badge.background":"#44475A","badge.foreground":"#F8F8F2","breadcrumb.activeSelectionForeground":"#F8F8F2","breadcrumb.background":"#282A36","breadcrumb.focusForeground":"#F8F8F2","breadcrumb.foreground":"#6272A4","breadcrumbPicker.background":"#191A21","button.background":"#44475A","button.foreground":"#F8F8F2","button.secondaryBackground":"#282A36","button.secondaryForeground":"#F8F8F2","button.secondaryHoverBackground":"#343746","debugToolBar.background":"#21222C","diffEditor.insertedTextBackground":"#50FA7B20","diffEditor.removedTextBackground":"#FF555550","dropdown.background":"#343746","dropdown.border":"#191A21","dropdown.foreground":"#F8F8F2","editor.background":"#282A36","editor.findMatchBackground":"#FFB86C80","editor.findMatchHighlightBackground":"#FFFFFF40","editor.findRangeHighlightBackground":"#44475A75","editor.foldBackground":"#21222C80","editor.foreground":"#F8F8F2","editor.hoverHighlightBackground":"#8BE9FD50","editor.lineHighlightBorder":"#44475A","editor.rangeHighlightBackground":"#BD93F915","editor.selectionBackground":"#44475A","editor.selectionHighlightBackground":"#424450","editor.snippetFinalTabstopHighlightBackground":"#282A36","editor.snippetFinalTabstopHighlightBorder":"#50FA7B","editor.snippetTabstopHighlightBackground":"#282A36","editor.snippetTabstopHighlightBorder":"#6272A4","editor.wordHighlightBackground":"#8BE9FD50","editor.wordHighlightStrongBackground":"#50FA7B50","editorBracketHighlight.foreground1":"#F8F8F2","editorBracketHighlight.foreground2":"#FF79C6","editorBracketHighlight.foreground3":"#8BE9FD","editorBracketHighlight.foreground4":"#50FA7B","editorBracketHighlight.foreground5":"#BD93F9","editorBracketHighlight.foreground6":"#FFB86C","editorBracketHighlight.unexpectedBracket.foreground":"#FF5555","editorCodeLens.foreground":"#6272A4","editorError.foreground":"#FF5555","editorGroup.border":"#BD93F9","editorGroup.dropBackground":"#44475A70","editorGroupHeader.tabsBackground":"#191A21","editorGutter.addedBackground":"#50FA7B80","editorGutter.deletedBackground":"#FF555580","editorGutter.modifiedBackground":"#8BE9FD80","editorHoverWidget.background":"#282A36","editorHoverWidget.border":"#6272A4","editorIndentGuide.activeBackground":"#FFFFFF45","editorIndentGuide.background":"#FFFFFF1A","editorLineNumber.foreground":"#6272A4","editorLink.activeForeground":"#8BE9FD","editorMarkerNavigation.background":"#21222C","editorOverviewRuler.addedForeground":"#50FA7B80","editorOverviewRuler.border":"#191A21","editorOverviewRuler.currentContentForeground":"#50FA7B","editorOverviewRuler.deletedForeground":"#FF555580","editorOverviewRuler.errorForeground":"#FF555580","editorOverviewRuler.incomingContentForeground":"#BD93F9","editorOverviewRuler.infoForeground":"#8BE9FD80","editorOverviewRuler.modifiedForeground":"#8BE9FD80","editorOverviewRuler.selectionHighlightForeground":"#FFB86C","editorOverviewRuler.warningForeground":"#FFB86C80","editorOverviewRuler.wordHighlightForeground":"#8BE9FD","editorOverviewRuler.wordHighlightStrongForeground":"#50FA7B","editorRuler.foreground":"#FFFFFF1A","editorSuggestWidget.background":"#21222C","editorSuggestWidget.foreground":"#F8F8F2","editorSuggestWidget.selectedBackground":"#44475A","editorWarning.foreground":"#8BE9FD","editorWhitespace.foreground":"#FFFFFF1A","editorWidget.background":"#21222C","errorForeground":"#FF5555","extensionButton.prominentBackground":"#50FA7B90","extensionButton.prominentForeground":"#F8F8F2","extensionButton.prominentHoverBackground":"#50FA7B60","focusBorder":"#6272A4","foreground":"#F8F8F2","gitDecoration.conflictingResourceForeground":"#FFB86C","gitDecoration.deletedResourceForeground":"#FF5555","gitDecoration.ignoredResourceForeground":"#6272A4","gitDecoration.modifiedResourceForeground":"#8BE9FD","gitDecoration.untrackedResourceForeground":"#50FA7B","inlineChat.regionHighlight":"#343746","input.background":"#282A36","input.border":"#191A21","input.foreground":"#F8F8F2","input.placeholderForeground":"#6272A4","inputOption.activeBorder":"#BD93F9","inputValidation.errorBorder":"#FF5555","inputValidation.infoBorder":"#FF79C6","inputValidation.warningBorder":"#FFB86C","list.activeSelectionBackground":"#44475A","list.activeSelectionForeground":"#F8F8F2","list.dropBackground":"#44475A","list.errorForeground":"#FF5555","list.focusBackground":"#44475A75","list.highlightForeground":"#8BE9FD","list.hoverBackground":"#44475A75","list.inactiveSelectionBackground":"#44475A75","list.warningForeground":"#FFB86C","listFilterWidget.background":"#343746","listFilterWidget.noMatchesOutline":"#FF5555","listFilterWidget.outline":"#424450","merge.currentHeaderBackground":"#50FA7B90","merge.incomingHeaderBackground":"#BD93F990","panel.background":"#282A36","panel.border":"#BD93F9","panelTitle.activeBorder":"#FF79C6","panelTitle.activeForeground":"#F8F8F2","panelTitle.inactiveForeground":"#6272A4","peekView.border":"#44475A","peekViewEditor.background":"#282A36","peekViewEditor.matchHighlightBackground":"#F1FA8C80","peekViewResult.background":"#21222C","peekViewResult.fileForeground":"#F8F8F2","peekViewResult.lineForeground":"#F8F8F2","peekViewResult.matchHighlightBackground":"#F1FA8C80","peekViewResult.selectionBackground":"#44475A","peekViewResult.selectionForeground":"#F8F8F2","peekViewTitle.background":"#191A21","peekViewTitleDescription.foreground":"#6272A4","peekViewTitleLabel.foreground":"#F8F8F2","pickerGroup.border":"#BD93F9","pickerGroup.foreground":"#8BE9FD","progressBar.background":"#FF79C6","selection.background":"#BD93F9","settings.checkboxBackground":"#21222C","settings.checkboxBorder":"#191A21","settings.checkboxForeground":"#F8F8F2","settings.dropdownBackground":"#21222C","settings.dropdownBorder":"#191A21","settings.dropdownForeground":"#F8F8F2","settings.headerForeground":"#F8F8F2","settings.modifiedItemIndicator":"#FFB86C","settings.numberInputBackground":"#21222C","settings.numberInputBorder":"#191A21","settings.numberInputForeground":"#F8F8F2","settings.textInputBackground":"#21222C","settings.textInputBorder":"#191A21","settings.textInputForeground":"#F8F8F2","sideBar.background":"#21222C","sideBarSectionHeader.background":"#282A36","sideBarSectionHeader.border":"#191A21","sideBarTitle.foreground":"#F8F8F2","statusBar.background":"#191A21","statusBar.debuggingBackground":"#FF5555","statusBar.debuggingForeground":"#191A21","statusBar.foreground":"#F8F8F2","statusBar.noFolderBackground":"#191A21","statusBar.noFolderForeground":"#F8F8F2","statusBarItem.prominentBackground":"#FF5555","statusBarItem.prominentHoverBackground":"#FFB86C","statusBarItem.remoteBackground":"#BD93F9","statusBarItem.remoteForeground":"#282A36","tab.activeBackground":"#282A36","tab.activeBorderTop":"#FF79C680","tab.activeForeground":"#F8F8F2","tab.border":"#191A21","tab.inactiveBackground":"#21222C","tab.inactiveForeground":"#6272A4","terminal.ansiBlack":"#21222C","terminal.ansiBlue":"#BD93F9","terminal.ansiBrightBlack":"#6272A4","terminal.ansiBrightBlue":"#D6ACFF","terminal.ansiBrightCyan":"#A4FFFF","terminal.ansiBrightGreen":"#69FF94","terminal.ansiBrightMagenta":"#FF92DF","terminal.ansiBrightRed":"#FF6E6E","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#FFFFA5","terminal.ansiCyan":"#8BE9FD","terminal.ansiGreen":"#50FA7B","terminal.ansiMagenta":"#FF79C6","terminal.ansiRed":"#FF5555","terminal.ansiWhite":"#F8F8F2","terminal.ansiYellow":"#F1FA8C","terminal.background":"#282A36","terminal.foreground":"#F8F8F2","titleBar.activeBackground":"#21222C","titleBar.activeForeground":"#F8F8F2","titleBar.inactiveBackground":"#191A21","titleBar.inactiveForeground":"#6272A4","walkThrough.embeddedEditorBackground":"#21222C"},"displayName":"Dracula Theme","name":"dracula","semanticHighlighting":true,"tokenColors":[{"scope":["emphasis"],"settings":{"fontStyle":"italic"}},{"scope":["strong"],"settings":{"fontStyle":"bold"}},{"scope":["header"],"settings":{"foreground":"#BD93F9"}},{"scope":["meta.diff","meta.diff.header"],"settings":{"foreground":"#6272A4"}},{"scope":["markup.inserted"],"settings":{"foreground":"#50FA7B"}},{"scope":["markup.deleted"],"settings":{"foreground":"#FF5555"}},{"scope":["markup.changed"],"settings":{"foreground":"#FFB86C"}},{"scope":["invalid"],"settings":{"fontStyle":"underline italic","foreground":"#FF5555"}},{"scope":["invalid.deprecated"],"settings":{"fontStyle":"underline italic","foreground":"#F8F8F2"}},{"scope":["entity.name.filename"],"settings":{"foreground":"#F1FA8C"}},{"scope":["markup.error"],"settings":{"foreground":"#FF5555"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.bold"],"settings":{"fontStyle":"bold","foreground":"#FFB86C"}},{"scope":["markup.heading"],"settings":{"fontStyle":"bold","foreground":"#BD93F9"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#F1FA8C"}},{"scope":["beginning.punctuation.definition.list.markdown","beginning.punctuation.definition.quote.markdown","punctuation.definition.link.restructuredtext"],"settings":{"foreground":"#8BE9FD"}},{"scope":["markup.inline.raw","markup.raw.restructuredtext"],"settings":{"foreground":"#50FA7B"}},{"scope":["markup.underline.link","markup.underline.link.image"],"settings":{"foreground":"#8BE9FD"}},{"scope":["meta.link.reference.def.restructuredtext","punctuation.definition.directive.restructuredtext","string.other.link.description","string.other.link.title"],"settings":{"foreground":"#FF79C6"}},{"scope":["entity.name.directive.restructuredtext","markup.quote"],"settings":{"fontStyle":"italic","foreground":"#F1FA8C"}},{"scope":["meta.separator.markdown"],"settings":{"foreground":"#6272A4"}},{"scope":["fenced_code.block.language","markup.raw.inner.restructuredtext","markup.fenced_code.block.markdown punctuation.definition.markdown"],"settings":{"foreground":"#50FA7B"}},{"scope":["punctuation.definition.constant.restructuredtext"],"settings":{"foreground":"#BD93F9"}},{"scope":["markup.heading.markdown punctuation.definition.string.begin","markup.heading.markdown punctuation.definition.string.end"],"settings":{"foreground":"#BD93F9"}},{"scope":["meta.paragraph.markdown punctuation.definition.string.begin","meta.paragraph.markdown punctuation.definition.string.end"],"settings":{"foreground":"#F8F8F2"}},{"scope":["markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin","markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end"],"settings":{"foreground":"#F1FA8C"}},{"scope":["entity.name.type.class","entity.name.class"],"settings":{"fontStyle":"normal","foreground":"#8BE9FD"}},{"scope":["keyword.expressions-and-types.swift","keyword.other.this","variable.language","variable.language punctuation.definition.variable.php","variable.other.readwrite.instance.ruby","variable.parameter.function.language.special"],"settings":{"fontStyle":"italic","foreground":"#BD93F9"}},{"scope":["entity.other.inherited-class"],"settings":{"fontStyle":"italic","foreground":"#8BE9FD"}},{"scope":["comment","punctuation.definition.comment","unused.comment","wildcard.comment"],"settings":{"foreground":"#6272A4"}},{"scope":["comment keyword.codetag.notation","comment.block.documentation keyword","comment.block.documentation storage.type.class"],"settings":{"foreground":"#FF79C6"}},{"scope":["comment.block.documentation entity.name.type"],"settings":{"fontStyle":"italic","foreground":"#8BE9FD"}},{"scope":["comment.block.documentation entity.name.type punctuation.definition.bracket"],"settings":{"foreground":"#8BE9FD"}},{"scope":["comment.block.documentation variable"],"settings":{"fontStyle":"italic","foreground":"#FFB86C"}},{"scope":["constant","variable.other.constant"],"settings":{"foreground":"#BD93F9"}},{"scope":["constant.character.escape","constant.character.string.escape","constant.regexp"],"settings":{"foreground":"#FF79C6"}},{"scope":["entity.name.tag"],"settings":{"foreground":"#FF79C6"}},{"scope":["entity.other.attribute-name.parent-selector"],"settings":{"foreground":"#FF79C6"}},{"scope":["entity.other.attribute-name"],"settings":{"fontStyle":"italic","foreground":"#50FA7B"}},{"scope":["entity.name.function","meta.function-call.object","meta.function-call.php","meta.function-call.static","meta.method-call.java meta.method","meta.method.groovy","support.function.any-method.lua","keyword.operator.function.infix"],"settings":{"foreground":"#50FA7B"}},{"scope":["entity.name.variable.parameter","meta.at-rule.function variable","meta.at-rule.mixin variable","meta.function.arguments variable.other.php","meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql","variable.parameter"],"settings":{"fontStyle":"italic","foreground":"#FFB86C"}},{"scope":["meta.decorator variable.other.readwrite","meta.decorator variable.other.property"],"settings":{"fontStyle":"italic","foreground":"#50FA7B"}},{"scope":["meta.decorator variable.other.object"],"settings":{"foreground":"#50FA7B"}},{"scope":["keyword","punctuation.definition.keyword"],"settings":{"foreground":"#FF79C6"}},{"scope":["keyword.control.new","keyword.operator.new"],"settings":{"fontStyle":"bold"}},{"scope":["meta.selector"],"settings":{"foreground":"#FF79C6"}},{"scope":["support"],"settings":{"fontStyle":"italic","foreground":"#8BE9FD"}},{"scope":["support.function.magic","support.variable","variable.other.predefined"],"settings":{"fontStyle":"regular","foreground":"#BD93F9"}},{"scope":["support.function","support.type.property-name"],"settings":{"fontStyle":"regular"}},{"scope":["constant.other.symbol.hashkey punctuation.definition.constant.ruby","entity.other.attribute-name.placeholder punctuation","entity.other.attribute-name.pseudo-class punctuation","entity.other.attribute-name.pseudo-element punctuation","meta.group.double.toml","meta.group.toml","meta.object-binding-pattern-variable punctuation.destructuring","punctuation.colon.graphql","punctuation.definition.block.scalar.folded.yaml","punctuation.definition.block.scalar.literal.yaml","punctuation.definition.block.sequence.item.yaml","punctuation.definition.entity.other.inherited-class","punctuation.function.swift","punctuation.separator.dictionary.key-value","punctuation.separator.hash","punctuation.separator.inheritance","punctuation.separator.key-value","punctuation.separator.key-value.mapping.yaml","punctuation.separator.namespace","punctuation.separator.pointer-access","punctuation.separator.slice","string.unquoted.heredoc punctuation.definition.string","support.other.chomping-indicator.yaml","punctuation.separator.annotation"],"settings":{"foreground":"#FF79C6"}},{"scope":["keyword.operator.other.powershell","keyword.other.statement-separator.powershell","meta.brace.round","meta.function-call punctuation","punctuation.definition.arguments.begin","punctuation.definition.arguments.end","punctuation.definition.entity.begin","punctuation.definition.entity.end","punctuation.definition.tag.cs","punctuation.definition.type.begin","punctuation.definition.type.end","punctuation.section.scope.begin","punctuation.section.scope.end","punctuation.terminator.expression.php","storage.type.generic.java","string.template meta.brace","string.template punctuation.accessor"],"settings":{"foreground":"#F8F8F2"}},{"scope":["meta.string-contents.quoted.double punctuation.definition.variable","punctuation.definition.interpolation.begin","punctuation.definition.interpolation.end","punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded.begin","punctuation.section.embedded.coffee","punctuation.section.embedded.end","punctuation.section.embedded.end source.php","punctuation.section.embedded.end source.ruby","punctuation.definition.variable.makefile"],"settings":{"foreground":"#FF79C6"}},{"scope":["entity.name.function.target.makefile","entity.name.section.toml","entity.name.tag.yaml","variable.other.key.toml"],"settings":{"foreground":"#8BE9FD"}},{"scope":["constant.other.date","constant.other.timestamp"],"settings":{"foreground":"#FFB86C"}},{"scope":["variable.other.alias.yaml"],"settings":{"fontStyle":"italic underline","foreground":"#50FA7B"}},{"scope":["storage","meta.implementation storage.type.objc","meta.interface-or-protocol storage.type.objc","source.groovy storage.type.def"],"settings":{"fontStyle":"regular","foreground":"#FF79C6"}},{"scope":["entity.name.type","keyword.primitive-datatypes.swift","keyword.type.cs","meta.protocol-list.objc","meta.return-type.objc","source.go storage.type","source.groovy storage.type","source.java storage.type","source.powershell entity.other.attribute-name","storage.class.std.rust","storage.type.attribute.swift","storage.type.c","storage.type.core.rust","storage.type.cs","storage.type.groovy","storage.type.objc","storage.type.php","storage.type.haskell","storage.type.ocaml"],"settings":{"fontStyle":"italic","foreground":"#8BE9FD"}},{"scope":["entity.name.type.type-parameter","meta.indexer.mappedtype.declaration entity.name.type","meta.type.parameters entity.name.type"],"settings":{"foreground":"#FFB86C"}},{"scope":["storage.modifier"],"settings":{"foreground":"#FF79C6"}},{"scope":["string.regexp","constant.other.character-class.set.regexp","constant.character.escape.backslash.regexp"],"settings":{"foreground":"#F1FA8C"}},{"scope":["punctuation.definition.group.capture.regexp"],"settings":{"foreground":"#FF79C6"}},{"scope":["string.regexp punctuation.definition.string.begin","string.regexp punctuation.definition.string.end"],"settings":{"foreground":"#FF5555"}},{"scope":["punctuation.definition.character-class.regexp"],"settings":{"foreground":"#8BE9FD"}},{"scope":["punctuation.definition.group.regexp"],"settings":{"foreground":"#FFB86C"}},{"scope":["punctuation.definition.group.assertion.regexp","keyword.operator.negation.regexp"],"settings":{"foreground":"#FF5555"}},{"scope":["meta.assertion.look-ahead.regexp"],"settings":{"foreground":"#50FA7B"}},{"scope":["string"],"settings":{"foreground":"#F1FA8C"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#E9F284"}},{"scope":["punctuation.support.type.property-name.begin","punctuation.support.type.property-name.end"],"settings":{"foreground":"#8BE9FE"}},{"scope":["string.quoted.docstring.multi","string.quoted.docstring.multi.python punctuation.definition.string.begin","string.quoted.docstring.multi.python punctuation.definition.string.end","string.quoted.docstring.multi.python constant.character.escape"],"settings":{"foreground":"#6272A4"}},{"scope":["variable","constant.other.key.perl","support.variable.property","variable.other.constant.js","variable.other.constant.ts","variable.other.constant.tsx"],"settings":{"foreground":"#F8F8F2"}},{"scope":["meta.import variable.other.readwrite","meta.variable.assignment.destructured.object.coffee variable"],"settings":{"fontStyle":"italic","foreground":"#FFB86C"}},{"scope":["meta.import variable.other.readwrite.alias","meta.export variable.other.readwrite.alias","meta.variable.assignment.destructured.object.coffee variable variable"],"settings":{"fontStyle":"normal","foreground":"#F8F8F2"}},{"scope":["meta.selectionset.graphql variable"],"settings":{"foreground":"#F1FA8C"}},{"scope":["meta.selectionset.graphql meta.arguments variable"],"settings":{"foreground":"#F8F8F2"}},{"scope":["entity.name.fragment.graphql","variable.fragment.graphql"],"settings":{"foreground":"#8BE9FD"}},{"scope":["constant.other.symbol.hashkey.ruby","keyword.operator.dereference.java","keyword.operator.navigation.groovy","meta.scope.for-loop.shell punctuation.definition.string.begin","meta.scope.for-loop.shell punctuation.definition.string.end","meta.scope.for-loop.shell string","storage.modifier.import","punctuation.section.embedded.begin.tsx","punctuation.section.embedded.end.tsx","punctuation.section.embedded.begin.jsx","punctuation.section.embedded.end.jsx","punctuation.separator.list.comma.css","constant.language.empty-list.haskell"],"settings":{"foreground":"#F8F8F2"}},{"scope":["source.shell variable.other"],"settings":{"foreground":"#BD93F9"}},{"scope":["support.constant"],"settings":{"fontStyle":"normal","foreground":"#BD93F9"}},{"scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#F1FA8C"}},{"scope":["meta.attribute-selector.scss"],"settings":{"foreground":"#F1FA8C"}},{"scope":["punctuation.definition.attribute-selector.end.bracket.square.scss","punctuation.definition.attribute-selector.begin.bracket.square.scss"],"settings":{"foreground":"#F8F8F2"}},{"scope":["meta.preprocessor.haskell"],"settings":{"foreground":"#6272A4"}},{"scope":["log.error"],"settings":{"fontStyle":"bold","foreground":"#FF5555"}},{"scope":["log.warning"],"settings":{"fontStyle":"bold","foreground":"#F1FA8C"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/dracula-soft-4axSbb5e.js b/docs/assets/dracula-soft-4axSbb5e.js new file mode 100644 index 0000000..1eb895c --- /dev/null +++ b/docs/assets/dracula-soft-4axSbb5e.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBackground":"#BD93F910","activityBar.activeBorder":"#FF79C680","activityBar.background":"#343746","activityBar.foreground":"#f6f6f4","activityBar.inactiveForeground":"#7b7f8b","activityBarBadge.background":"#f286c4","activityBarBadge.foreground":"#f6f6f4","badge.background":"#44475A","badge.foreground":"#f6f6f4","breadcrumb.activeSelectionForeground":"#f6f6f4","breadcrumb.background":"#282A36","breadcrumb.focusForeground":"#f6f6f4","breadcrumb.foreground":"#7b7f8b","breadcrumbPicker.background":"#191A21","button.background":"#44475A","button.foreground":"#f6f6f4","button.secondaryBackground":"#282A36","button.secondaryForeground":"#f6f6f4","button.secondaryHoverBackground":"#343746","debugToolBar.background":"#262626","diffEditor.insertedTextBackground":"#50FA7B20","diffEditor.removedTextBackground":"#FF555550","dropdown.background":"#343746","dropdown.border":"#191A21","dropdown.foreground":"#f6f6f4","editor.background":"#282A36","editor.findMatchBackground":"#FFB86C80","editor.findMatchHighlightBackground":"#FFFFFF40","editor.findRangeHighlightBackground":"#44475A75","editor.foldBackground":"#21222C80","editor.foreground":"#f6f6f4","editor.hoverHighlightBackground":"#8BE9FD50","editor.lineHighlightBorder":"#44475A","editor.rangeHighlightBackground":"#BD93F915","editor.selectionBackground":"#44475A","editor.selectionHighlightBackground":"#424450","editor.snippetFinalTabstopHighlightBackground":"#282A36","editor.snippetFinalTabstopHighlightBorder":"#62e884","editor.snippetTabstopHighlightBackground":"#282A36","editor.snippetTabstopHighlightBorder":"#7b7f8b","editor.wordHighlightBackground":"#8BE9FD50","editor.wordHighlightStrongBackground":"#50FA7B50","editorBracketHighlight.foreground1":"#f6f6f4","editorBracketHighlight.foreground2":"#f286c4","editorBracketHighlight.foreground3":"#97e1f1","editorBracketHighlight.foreground4":"#62e884","editorBracketHighlight.foreground5":"#bf9eee","editorBracketHighlight.foreground6":"#FFB86C","editorBracketHighlight.unexpectedBracket.foreground":"#ee6666","editorCodeLens.foreground":"#7b7f8b","editorError.foreground":"#ee6666","editorGroup.border":"#bf9eee","editorGroup.dropBackground":"#44475A70","editorGroupHeader.tabsBackground":"#191A21","editorGutter.addedBackground":"#50FA7B80","editorGutter.deletedBackground":"#FF555580","editorGutter.modifiedBackground":"#8BE9FD80","editorHoverWidget.background":"#282A36","editorHoverWidget.border":"#7b7f8b","editorIndentGuide.activeBackground":"#FFFFFF45","editorIndentGuide.background":"#FFFFFF1A","editorLineNumber.foreground":"#7b7f8b","editorLink.activeForeground":"#97e1f1","editorMarkerNavigation.background":"#262626","editorOverviewRuler.addedForeground":"#50FA7B80","editorOverviewRuler.border":"#191A21","editorOverviewRuler.currentContentForeground":"#62e884","editorOverviewRuler.deletedForeground":"#FF555580","editorOverviewRuler.errorForeground":"#FF555580","editorOverviewRuler.incomingContentForeground":"#bf9eee","editorOverviewRuler.infoForeground":"#8BE9FD80","editorOverviewRuler.modifiedForeground":"#8BE9FD80","editorOverviewRuler.selectionHighlightForeground":"#FFB86C","editorOverviewRuler.warningForeground":"#FFB86C80","editorOverviewRuler.wordHighlightForeground":"#97e1f1","editorOverviewRuler.wordHighlightStrongForeground":"#62e884","editorRuler.foreground":"#FFFFFF1A","editorSuggestWidget.background":"#262626","editorSuggestWidget.foreground":"#f6f6f4","editorSuggestWidget.selectedBackground":"#44475A","editorWarning.foreground":"#97e1f1","editorWhitespace.foreground":"#FFFFFF1A","editorWidget.background":"#262626","errorForeground":"#ee6666","extensionButton.prominentBackground":"#50FA7B90","extensionButton.prominentForeground":"#f6f6f4","extensionButton.prominentHoverBackground":"#50FA7B60","focusBorder":"#7b7f8b","foreground":"#f6f6f4","gitDecoration.conflictingResourceForeground":"#FFB86C","gitDecoration.deletedResourceForeground":"#ee6666","gitDecoration.ignoredResourceForeground":"#7b7f8b","gitDecoration.modifiedResourceForeground":"#97e1f1","gitDecoration.untrackedResourceForeground":"#62e884","inlineChat.regionHighlight":"#343746","input.background":"#282A36","input.border":"#191A21","input.foreground":"#f6f6f4","input.placeholderForeground":"#7b7f8b","inputOption.activeBorder":"#bf9eee","inputValidation.errorBorder":"#ee6666","inputValidation.infoBorder":"#f286c4","inputValidation.warningBorder":"#FFB86C","list.activeSelectionBackground":"#44475A","list.activeSelectionForeground":"#f6f6f4","list.dropBackground":"#44475A","list.errorForeground":"#ee6666","list.focusBackground":"#44475A75","list.highlightForeground":"#97e1f1","list.hoverBackground":"#44475A75","list.inactiveSelectionBackground":"#44475A75","list.warningForeground":"#FFB86C","listFilterWidget.background":"#343746","listFilterWidget.noMatchesOutline":"#ee6666","listFilterWidget.outline":"#424450","merge.currentHeaderBackground":"#50FA7B90","merge.incomingHeaderBackground":"#BD93F990","panel.background":"#282A36","panel.border":"#bf9eee","panelTitle.activeBorder":"#f286c4","panelTitle.activeForeground":"#f6f6f4","panelTitle.inactiveForeground":"#7b7f8b","peekView.border":"#44475A","peekViewEditor.background":"#282A36","peekViewEditor.matchHighlightBackground":"#F1FA8C80","peekViewResult.background":"#262626","peekViewResult.fileForeground":"#f6f6f4","peekViewResult.lineForeground":"#f6f6f4","peekViewResult.matchHighlightBackground":"#F1FA8C80","peekViewResult.selectionBackground":"#44475A","peekViewResult.selectionForeground":"#f6f6f4","peekViewTitle.background":"#191A21","peekViewTitleDescription.foreground":"#7b7f8b","peekViewTitleLabel.foreground":"#f6f6f4","pickerGroup.border":"#bf9eee","pickerGroup.foreground":"#97e1f1","progressBar.background":"#f286c4","selection.background":"#bf9eee","settings.checkboxBackground":"#262626","settings.checkboxBorder":"#191A21","settings.checkboxForeground":"#f6f6f4","settings.dropdownBackground":"#262626","settings.dropdownBorder":"#191A21","settings.dropdownForeground":"#f6f6f4","settings.headerForeground":"#f6f6f4","settings.modifiedItemIndicator":"#FFB86C","settings.numberInputBackground":"#262626","settings.numberInputBorder":"#191A21","settings.numberInputForeground":"#f6f6f4","settings.textInputBackground":"#262626","settings.textInputBorder":"#191A21","settings.textInputForeground":"#f6f6f4","sideBar.background":"#262626","sideBarSectionHeader.background":"#282A36","sideBarSectionHeader.border":"#191A21","sideBarTitle.foreground":"#f6f6f4","statusBar.background":"#191A21","statusBar.debuggingBackground":"#ee6666","statusBar.debuggingForeground":"#191A21","statusBar.foreground":"#f6f6f4","statusBar.noFolderBackground":"#191A21","statusBar.noFolderForeground":"#f6f6f4","statusBarItem.prominentBackground":"#ee6666","statusBarItem.prominentHoverBackground":"#FFB86C","statusBarItem.remoteBackground":"#bf9eee","statusBarItem.remoteForeground":"#282A36","tab.activeBackground":"#282A36","tab.activeBorderTop":"#FF79C680","tab.activeForeground":"#f6f6f4","tab.border":"#191A21","tab.inactiveBackground":"#262626","tab.inactiveForeground":"#7b7f8b","terminal.ansiBlack":"#262626","terminal.ansiBlue":"#bf9eee","terminal.ansiBrightBlack":"#7b7f8b","terminal.ansiBrightBlue":"#d6b4f7","terminal.ansiBrightCyan":"#adf6f6","terminal.ansiBrightGreen":"#78f09a","terminal.ansiBrightMagenta":"#f49dda","terminal.ansiBrightRed":"#f07c7c","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#f6f6ae","terminal.ansiCyan":"#97e1f1","terminal.ansiGreen":"#62e884","terminal.ansiMagenta":"#f286c4","terminal.ansiRed":"#ee6666","terminal.ansiWhite":"#f6f6f4","terminal.ansiYellow":"#e7ee98","terminal.background":"#282A36","terminal.foreground":"#f6f6f4","titleBar.activeBackground":"#262626","titleBar.activeForeground":"#f6f6f4","titleBar.inactiveBackground":"#191A21","titleBar.inactiveForeground":"#7b7f8b","walkThrough.embeddedEditorBackground":"#262626"},"displayName":"Dracula Theme Soft","name":"dracula-soft","semanticHighlighting":true,"tokenColors":[{"scope":["emphasis"],"settings":{"fontStyle":"italic"}},{"scope":["strong"],"settings":{"fontStyle":"bold"}},{"scope":["header"],"settings":{"foreground":"#bf9eee"}},{"scope":["meta.diff","meta.diff.header"],"settings":{"foreground":"#7b7f8b"}},{"scope":["markup.inserted"],"settings":{"foreground":"#62e884"}},{"scope":["markup.deleted"],"settings":{"foreground":"#ee6666"}},{"scope":["markup.changed"],"settings":{"foreground":"#FFB86C"}},{"scope":["invalid"],"settings":{"fontStyle":"underline italic","foreground":"#ee6666"}},{"scope":["invalid.deprecated"],"settings":{"fontStyle":"underline italic","foreground":"#f6f6f4"}},{"scope":["entity.name.filename"],"settings":{"foreground":"#e7ee98"}},{"scope":["markup.error"],"settings":{"foreground":"#ee6666"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.bold"],"settings":{"fontStyle":"bold","foreground":"#FFB86C"}},{"scope":["markup.heading"],"settings":{"fontStyle":"bold","foreground":"#bf9eee"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#e7ee98"}},{"scope":["beginning.punctuation.definition.list.markdown","beginning.punctuation.definition.quote.markdown","punctuation.definition.link.restructuredtext"],"settings":{"foreground":"#97e1f1"}},{"scope":["markup.inline.raw","markup.raw.restructuredtext"],"settings":{"foreground":"#62e884"}},{"scope":["markup.underline.link","markup.underline.link.image"],"settings":{"foreground":"#97e1f1"}},{"scope":["meta.link.reference.def.restructuredtext","punctuation.definition.directive.restructuredtext","string.other.link.description","string.other.link.title"],"settings":{"foreground":"#f286c4"}},{"scope":["entity.name.directive.restructuredtext","markup.quote"],"settings":{"fontStyle":"italic","foreground":"#e7ee98"}},{"scope":["meta.separator.markdown"],"settings":{"foreground":"#7b7f8b"}},{"scope":["fenced_code.block.language","markup.raw.inner.restructuredtext","markup.fenced_code.block.markdown punctuation.definition.markdown"],"settings":{"foreground":"#62e884"}},{"scope":["punctuation.definition.constant.restructuredtext"],"settings":{"foreground":"#bf9eee"}},{"scope":["markup.heading.markdown punctuation.definition.string.begin","markup.heading.markdown punctuation.definition.string.end"],"settings":{"foreground":"#bf9eee"}},{"scope":["meta.paragraph.markdown punctuation.definition.string.begin","meta.paragraph.markdown punctuation.definition.string.end"],"settings":{"foreground":"#f6f6f4"}},{"scope":["markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin","markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end"],"settings":{"foreground":"#e7ee98"}},{"scope":["entity.name.type.class","entity.name.class"],"settings":{"fontStyle":"normal","foreground":"#97e1f1"}},{"scope":["keyword.expressions-and-types.swift","keyword.other.this","variable.language","variable.language punctuation.definition.variable.php","variable.other.readwrite.instance.ruby","variable.parameter.function.language.special"],"settings":{"fontStyle":"italic","foreground":"#bf9eee"}},{"scope":["entity.other.inherited-class"],"settings":{"fontStyle":"italic","foreground":"#97e1f1"}},{"scope":["comment","punctuation.definition.comment","unused.comment","wildcard.comment"],"settings":{"foreground":"#7b7f8b"}},{"scope":["comment keyword.codetag.notation","comment.block.documentation keyword","comment.block.documentation storage.type.class"],"settings":{"foreground":"#f286c4"}},{"scope":["comment.block.documentation entity.name.type"],"settings":{"fontStyle":"italic","foreground":"#97e1f1"}},{"scope":["comment.block.documentation entity.name.type punctuation.definition.bracket"],"settings":{"foreground":"#97e1f1"}},{"scope":["comment.block.documentation variable"],"settings":{"fontStyle":"italic","foreground":"#FFB86C"}},{"scope":["constant","variable.other.constant"],"settings":{"foreground":"#bf9eee"}},{"scope":["constant.character.escape","constant.character.string.escape","constant.regexp"],"settings":{"foreground":"#f286c4"}},{"scope":["entity.name.tag"],"settings":{"foreground":"#f286c4"}},{"scope":["entity.other.attribute-name.parent-selector"],"settings":{"foreground":"#f286c4"}},{"scope":["entity.other.attribute-name"],"settings":{"fontStyle":"italic","foreground":"#62e884"}},{"scope":["entity.name.function","meta.function-call.object","meta.function-call.php","meta.function-call.static","meta.method-call.java meta.method","meta.method.groovy","support.function.any-method.lua","keyword.operator.function.infix"],"settings":{"foreground":"#62e884"}},{"scope":["entity.name.variable.parameter","meta.at-rule.function variable","meta.at-rule.mixin variable","meta.function.arguments variable.other.php","meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql","variable.parameter"],"settings":{"fontStyle":"italic","foreground":"#FFB86C"}},{"scope":["meta.decorator variable.other.readwrite","meta.decorator variable.other.property"],"settings":{"fontStyle":"italic","foreground":"#62e884"}},{"scope":["meta.decorator variable.other.object"],"settings":{"foreground":"#62e884"}},{"scope":["keyword","punctuation.definition.keyword"],"settings":{"foreground":"#f286c4"}},{"scope":["keyword.control.new","keyword.operator.new"],"settings":{"fontStyle":"bold"}},{"scope":["meta.selector"],"settings":{"foreground":"#f286c4"}},{"scope":["support"],"settings":{"fontStyle":"italic","foreground":"#97e1f1"}},{"scope":["support.function.magic","support.variable","variable.other.predefined"],"settings":{"fontStyle":"regular","foreground":"#bf9eee"}},{"scope":["support.function","support.type.property-name"],"settings":{"fontStyle":"regular"}},{"scope":["constant.other.symbol.hashkey punctuation.definition.constant.ruby","entity.other.attribute-name.placeholder punctuation","entity.other.attribute-name.pseudo-class punctuation","entity.other.attribute-name.pseudo-element punctuation","meta.group.double.toml","meta.group.toml","meta.object-binding-pattern-variable punctuation.destructuring","punctuation.colon.graphql","punctuation.definition.block.scalar.folded.yaml","punctuation.definition.block.scalar.literal.yaml","punctuation.definition.block.sequence.item.yaml","punctuation.definition.entity.other.inherited-class","punctuation.function.swift","punctuation.separator.dictionary.key-value","punctuation.separator.hash","punctuation.separator.inheritance","punctuation.separator.key-value","punctuation.separator.key-value.mapping.yaml","punctuation.separator.namespace","punctuation.separator.pointer-access","punctuation.separator.slice","string.unquoted.heredoc punctuation.definition.string","support.other.chomping-indicator.yaml","punctuation.separator.annotation"],"settings":{"foreground":"#f286c4"}},{"scope":["keyword.operator.other.powershell","keyword.other.statement-separator.powershell","meta.brace.round","meta.function-call punctuation","punctuation.definition.arguments.begin","punctuation.definition.arguments.end","punctuation.definition.entity.begin","punctuation.definition.entity.end","punctuation.definition.tag.cs","punctuation.definition.type.begin","punctuation.definition.type.end","punctuation.section.scope.begin","punctuation.section.scope.end","punctuation.terminator.expression.php","storage.type.generic.java","string.template meta.brace","string.template punctuation.accessor"],"settings":{"foreground":"#f6f6f4"}},{"scope":["meta.string-contents.quoted.double punctuation.definition.variable","punctuation.definition.interpolation.begin","punctuation.definition.interpolation.end","punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded.begin","punctuation.section.embedded.coffee","punctuation.section.embedded.end","punctuation.section.embedded.end source.php","punctuation.section.embedded.end source.ruby","punctuation.definition.variable.makefile"],"settings":{"foreground":"#f286c4"}},{"scope":["entity.name.function.target.makefile","entity.name.section.toml","entity.name.tag.yaml","variable.other.key.toml"],"settings":{"foreground":"#97e1f1"}},{"scope":["constant.other.date","constant.other.timestamp"],"settings":{"foreground":"#FFB86C"}},{"scope":["variable.other.alias.yaml"],"settings":{"fontStyle":"italic underline","foreground":"#62e884"}},{"scope":["storage","meta.implementation storage.type.objc","meta.interface-or-protocol storage.type.objc","source.groovy storage.type.def"],"settings":{"fontStyle":"regular","foreground":"#f286c4"}},{"scope":["entity.name.type","keyword.primitive-datatypes.swift","keyword.type.cs","meta.protocol-list.objc","meta.return-type.objc","source.go storage.type","source.groovy storage.type","source.java storage.type","source.powershell entity.other.attribute-name","storage.class.std.rust","storage.type.attribute.swift","storage.type.c","storage.type.core.rust","storage.type.cs","storage.type.groovy","storage.type.objc","storage.type.php","storage.type.haskell","storage.type.ocaml"],"settings":{"fontStyle":"italic","foreground":"#97e1f1"}},{"scope":["entity.name.type.type-parameter","meta.indexer.mappedtype.declaration entity.name.type","meta.type.parameters entity.name.type"],"settings":{"foreground":"#FFB86C"}},{"scope":["storage.modifier"],"settings":{"foreground":"#f286c4"}},{"scope":["string.regexp","constant.other.character-class.set.regexp","constant.character.escape.backslash.regexp"],"settings":{"foreground":"#e7ee98"}},{"scope":["punctuation.definition.group.capture.regexp"],"settings":{"foreground":"#f286c4"}},{"scope":["string.regexp punctuation.definition.string.begin","string.regexp punctuation.definition.string.end"],"settings":{"foreground":"#ee6666"}},{"scope":["punctuation.definition.character-class.regexp"],"settings":{"foreground":"#97e1f1"}},{"scope":["punctuation.definition.group.regexp"],"settings":{"foreground":"#FFB86C"}},{"scope":["punctuation.definition.group.assertion.regexp","keyword.operator.negation.regexp"],"settings":{"foreground":"#ee6666"}},{"scope":["meta.assertion.look-ahead.regexp"],"settings":{"foreground":"#62e884"}},{"scope":["string"],"settings":{"foreground":"#e7ee98"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#dee492"}},{"scope":["punctuation.support.type.property-name.begin","punctuation.support.type.property-name.end"],"settings":{"foreground":"#97e2f2"}},{"scope":["string.quoted.docstring.multi","string.quoted.docstring.multi.python punctuation.definition.string.begin","string.quoted.docstring.multi.python punctuation.definition.string.end","string.quoted.docstring.multi.python constant.character.escape"],"settings":{"foreground":"#7b7f8b"}},{"scope":["variable","constant.other.key.perl","support.variable.property","variable.other.constant.js","variable.other.constant.ts","variable.other.constant.tsx"],"settings":{"foreground":"#f6f6f4"}},{"scope":["meta.import variable.other.readwrite","meta.variable.assignment.destructured.object.coffee variable"],"settings":{"fontStyle":"italic","foreground":"#FFB86C"}},{"scope":["meta.import variable.other.readwrite.alias","meta.export variable.other.readwrite.alias","meta.variable.assignment.destructured.object.coffee variable variable"],"settings":{"fontStyle":"normal","foreground":"#f6f6f4"}},{"scope":["meta.selectionset.graphql variable"],"settings":{"foreground":"#e7ee98"}},{"scope":["meta.selectionset.graphql meta.arguments variable"],"settings":{"foreground":"#f6f6f4"}},{"scope":["entity.name.fragment.graphql","variable.fragment.graphql"],"settings":{"foreground":"#97e1f1"}},{"scope":["constant.other.symbol.hashkey.ruby","keyword.operator.dereference.java","keyword.operator.navigation.groovy","meta.scope.for-loop.shell punctuation.definition.string.begin","meta.scope.for-loop.shell punctuation.definition.string.end","meta.scope.for-loop.shell string","storage.modifier.import","punctuation.section.embedded.begin.tsx","punctuation.section.embedded.end.tsx","punctuation.section.embedded.begin.jsx","punctuation.section.embedded.end.jsx","punctuation.separator.list.comma.css","constant.language.empty-list.haskell"],"settings":{"foreground":"#f6f6f4"}},{"scope":["source.shell variable.other"],"settings":{"foreground":"#bf9eee"}},{"scope":["support.constant"],"settings":{"fontStyle":"normal","foreground":"#bf9eee"}},{"scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e7ee98"}},{"scope":["meta.attribute-selector.scss"],"settings":{"foreground":"#e7ee98"}},{"scope":["punctuation.definition.attribute-selector.end.bracket.square.scss","punctuation.definition.attribute-selector.begin.bracket.square.scss"],"settings":{"foreground":"#f6f6f4"}},{"scope":["meta.preprocessor.haskell"],"settings":{"foreground":"#7b7f8b"}},{"scope":["log.error"],"settings":{"fontStyle":"bold","foreground":"#ee6666"}},{"scope":["log.warning"],"settings":{"fontStyle":"bold","foreground":"#e7ee98"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/dream-maker-CagcUd6F.js b/docs/assets/dream-maker-CagcUd6F.js new file mode 100644 index 0000000..1d76e2e --- /dev/null +++ b/docs/assets/dream-maker-CagcUd6F.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Dream Maker","fileTypes":["dm","dme"],"foldingStartMarker":"/\\\\*\\\\*(?!\\\\*)|^(?![^{]*?//|[^{]*?/\\\\*(?!.*?\\\\*/.*?\\\\{)).*?\\\\{\\\\s*($|//|/\\\\*(?!.*?\\\\*/.*\\\\S))","foldingStopMarker":"(?])(=)?|[.:]|/(=)?|~|\\\\+([+=])?|-([-=])?|\\\\*([*=])?|%|>>|<<|=(=)?|!(=)?|<>|&&??|[\\\\^|]|\\\\|\\\\||\\\\bto\\\\b|\\\\bin\\\\b|\\\\bstep\\\\b)","name":"keyword.operator.dm"},{"match":"\\\\b([A-Z_][0-9A-Z_]*)\\\\b","name":"constant.language.dm"},{"match":"\\\\bnull\\\\b","name":"constant.language.dm"},{"begin":"\\\\{\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"end":"\\"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}},"name":"string.quoted.triple.dm","patterns":[{"include":"#string_escaped_char"},{"include":"#string_embedded_expression"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}},"name":"string.quoted.double.dm","patterns":[{"include":"#string_escaped_char"},{"include":"#string_embedded_expression"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}},"name":"string.quoted.single.dm","patterns":[{"include":"#string_escaped_char"}]},{"begin":"^\\\\s*((#)\\\\s*define)\\\\s+((?[A-Z_a-z][0-9A-Z_a-z]*))(\\\\()(\\\\s*\\\\g\\\\s*((,)\\\\s*\\\\g\\\\s*)*(?:\\\\.\\\\.\\\\.)?)(\\\\))","beginCaptures":{"1":{"name":"keyword.control.directive.define.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"entity.name.function.preprocessor.dm"},"5":{"name":"punctuation.definition.parameters.begin.dm"},"6":{"name":"variable.parameter.preprocessor.dm"},"8":{"name":"punctuation.separator.parameters.dm"},"9":{"name":"punctuation.definition.parameters.end.dm"}},"end":"(?=/[*/])|(?[A-Z_a-z][0-9A-Z_a-z]*))","beginCaptures":{"1":{"name":"keyword.control.directive.define.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"variable.other.preprocessor.dm"}},"end":"(?=/[*/])|(?\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.dm"}]},{"begin":"^\\\\s*(?:((#)\\\\s*(?:elif|else|if|ifdef|ifndef))|((#)\\\\s*(undef|include)))\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"keyword.control.directive.$5.dm"},"4":{"name":"punctuation.definition.directive.dm"}},"end":"(?=/[*/])|(?\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.dm"}]},{"include":"#block"},{"begin":"(?:^|(?:(?=\\\\s)(?])))(\\\\s*)(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.whitespace.function.leading.dm"},"3":{"name":"entity.name.function.dm"},"4":{"name":"punctuation.definition.parameters.dm"}},"end":"(?<=})|(?=#)|(;)?","name":"meta.function.dm","patterns":[{"include":"#comments"},{"include":"#parens"},{"match":"\\\\bconst\\\\b","name":"storage.modifier.dm"},{"include":"#block"}]}],"repository":{"access":{"match":"\\\\.[A-Z_a-z][0-9A-Z_a-z]*\\\\b(?!\\\\s*\\\\()","name":"variable.other.dot-access.dm"},"block":{"begin":"\\\\{","end":"}","name":"meta.block.dm","patterns":[{"include":"#block_innards"}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-other-block"},{"include":"#access"},{"captures":{"1":{"name":"punctuation.whitespace.function-call.leading.dm"},"2":{"name":"support.function.any-method.dm"},"3":{"name":"punctuation.definition.parameters.dm"}},"match":"(?:(?=\\\\s)(?:(?<=else|new|return)|(?\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.dm"}]}]},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b.*$","patterns":[{"include":"#disabled"}]},"parens":{"begin":"\\\\(","end":"\\\\)","name":"meta.parens.dm","patterns":[{"include":"$base"}]},"preprocessor-rule-disabled":{"begin":"^\\\\s*(#(if)\\\\s+(0))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}},"end":"(?=^\\\\s*#\\\\s*endif\\\\b.*$)","patterns":[{"include":"$base"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*$)","name":"comment.block.preprocessor.if-branch","patterns":[{"include":"#disabled"}]}]},"preprocessor-rule-disabled-block":{"begin":"^\\\\s*(#(if)\\\\s+(0))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}},"end":"(?=^\\\\s*#\\\\s*endif\\\\b.*$)","patterns":[{"include":"#block_innards"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*$)","name":"comment.block.preprocessor.if-branch.in-block","patterns":[{"include":"#disabled"}]}]},"preprocessor-rule-enabled":{"begin":"^\\\\s*(#(if)\\\\s+(0*1))\\\\b","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}},"contentName":"comment.block.preprocessor.else-branch","end":"(?=^\\\\s*#\\\\s*endif\\\\b.*$)","patterns":[{"include":"#disabled"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*$)","patterns":[{"include":"$base"}]}]},"preprocessor-rule-enabled-block":{"begin":"^\\\\s*(#(if)\\\\s+(0*1))\\\\b","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}},"contentName":"comment.block.preprocessor.else-branch.in-block","end":"(?=^\\\\s*#\\\\s*endif\\\\b.*$)","patterns":[{"include":"#disabled"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*$)","patterns":[{"include":"#block_innards"}]}]},"preprocessor-rule-other":{"begin":"^\\\\s*((#\\\\s*(if(n?def)?))\\\\b.*?(?:(?=/[*/])|$))","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.dm"}},"end":"^\\\\s*((#\\\\s*(endif)))\\\\b.*$","patterns":[{"include":"$base"}]},"preprocessor-rule-other-block":{"begin":"^\\\\s*(#\\\\s*(if(n?def)?)\\\\b.*?(?:(?=/[*/])|$))","captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.dm"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b.*$","patterns":[{"include":"#block_innards"}]},"string_embedded_expression":{"patterns":[{"begin":"(?\\\\[ns])","name":"constant.character.escape.dm"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.dm"}]}},"scopeName":"source.dm"}`))];export{e as default}; diff --git a/docs/assets/dropdown-menu-BP4_BZLr.js b/docs/assets/dropdown-menu-BP4_BZLr.js new file mode 100644 index 0000000..4b80872 --- /dev/null +++ b/docs/assets/dropdown-menu-BP4_BZLr.js @@ -0,0 +1 @@ +import{s as Ne}from"./chunk-LvLJmgfZ.js";import{t as wr}from"./react-BGmjiNul.js";import{t as gr}from"./compiler-runtime-DeeZ7FnK.js";import{n as Ie,r as G}from"./useEventListener-COkmyg1v.js";import{t as xr}from"./jsx-runtime-DN_bIXfG.js";import{t as ke}from"./cn-C1rgT0yh.js";import{t as yr}from"./createLucideIcon-CW2xpJ57.js";import{t as _r}from"./check-CrAQug3q.js";import{t as br}from"./chevron-right-CqEd11Di.js";import{E as ue,S as ce,_ as S,a as Mr,c as Se,d as Cr,f as B,g as ee,i as Dr,m as jr,o as Rr,r as Nr,s as Ir,t as kr,u as Sr,v as Er,w as v,x as ne,y as Or}from"./Combination-D1TsGrBC.js";import{a as Tr,c as Ee,i as Pr,o as Fr,s as Oe}from"./dist-CBrDuocE.js";import{a as Te,c as Ar,d as Pe,i as Fe,l as Kr,n as Lr,o as Gr,r as Ae,s as Ur,u as Ke}from"./menu-items-9PZrU2e0.js";var Le=yr("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),i=Ne(wr(),1),l=Ne(xr(),1),de="rovingFocusGroup.onEntryFocus",Vr={bubbles:!1,cancelable:!0},X="RovingFocusGroup",[pe,Ge,Br]=Pe(X),[Xr,fe]=ue(X,[Br]),[Hr,zr]=Xr(X),Ue=i.forwardRef((n,t)=>(0,l.jsx)(pe.Provider,{scope:n.__scopeRovingFocusGroup,children:(0,l.jsx)(pe.Slot,{scope:n.__scopeRovingFocusGroup,children:(0,l.jsx)(Yr,{...n,ref:t})})}));Ue.displayName=X;var Yr=i.forwardRef((n,t)=>{let{__scopeRovingFocusGroup:e,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:p,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,...c}=n,m=i.useRef(null),x=G(t,m),w=Ke(a),[R,g]=ce({prop:s,defaultProp:u??null,onChange:p,caller:X}),[D,_]=i.useState(!1),b=ee(f),q=Ge(e),U=i.useRef(!1),[J,T]=i.useState(0);return i.useEffect(()=>{let M=m.current;if(M)return M.addEventListener(de,b),()=>M.removeEventListener(de,b)},[b]),(0,l.jsx)(Hr,{scope:e,orientation:r,dir:w,loop:o,currentTabStopId:R,onItemFocus:i.useCallback(M=>g(M),[g]),onItemShiftTab:i.useCallback(()=>_(!0),[]),onFocusableItemAdd:i.useCallback(()=>T(M=>M+1),[]),onFocusableItemRemove:i.useCallback(()=>T(M=>M-1),[]),children:(0,l.jsx)(S.div,{tabIndex:D||J===0?-1:0,"data-orientation":r,...c,ref:x,style:{outline:"none",...n.style},onMouseDown:v(n.onMouseDown,()=>{U.current=!0}),onFocus:v(n.onFocus,M=>{let A=!U.current;if(M.target===M.currentTarget&&A&&!D){let P=new CustomEvent(de,Vr);if(M.currentTarget.dispatchEvent(P),!P.defaultPrevented){let V=q().filter(N=>N.focusable);Xe([V.find(N=>N.active),V.find(N=>N.id===R),...V].filter(Boolean).map(N=>N.ref.current),d)}}U.current=!1}),onBlur:v(n.onBlur,()=>_(!1))})})}),Ve="RovingFocusGroupItem",Be=i.forwardRef((n,t)=>{let{__scopeRovingFocusGroup:e,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...u}=n,p=B(),f=a||p,d=zr(Ve,e),c=d.currentTabStopId===f,m=Ge(e),{onFocusableItemAdd:x,onFocusableItemRemove:w,currentTabStopId:R}=d;return i.useEffect(()=>{if(r)return x(),()=>w()},[r,x,w]),(0,l.jsx)(pe.ItemSlot,{scope:e,id:f,focusable:r,active:o,children:(0,l.jsx)(S.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...u,ref:t,onMouseDown:v(n.onMouseDown,g=>{r?d.onItemFocus(f):g.preventDefault()}),onFocus:v(n.onFocus,()=>d.onItemFocus(f)),onKeyDown:v(n.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;let D=$r(g,d.orientation,d.dir);if(D!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let _=m().filter(b=>b.focusable).map(b=>b.ref.current);if(D==="last")_.reverse();else if(D==="prev"||D==="next"){D==="prev"&&_.reverse();let b=_.indexOf(g.currentTarget);_=d.loop?qr(_,b+1):_.slice(b+1)}setTimeout(()=>Xe(_))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:R!=null}):s})})});Be.displayName=Ve;var Wr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Zr(n,t){return t==="rtl"?n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n:n}function $r(n,t,e){let r=Zr(n.key,e);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Wr[r]}function Xe(n,t=!1){let e=document.activeElement;for(let r of n)if(r===e||(r.focus({preventScroll:t}),document.activeElement!==e))return}function qr(n,t){return n.map((e,r)=>n[(t+r)%n.length])}var He=Ue,ze=Be,me=["Enter"," "],Jr=["ArrowDown","PageUp","Home"],Ye=["ArrowUp","PageDown","End"],Qr=[...Jr,...Ye],et={ltr:[...me,"ArrowRight"],rtl:[...me,"ArrowLeft"]},nt={ltr:["ArrowLeft"],rtl:["ArrowRight"]},H="Menu",[z,rt,tt]=Pe(H),[F,he]=ue(H,[tt,Ee,fe]),Y=Ee(),We=fe(),[Ze,E]=F(H),[ot,W]=F(H),$e=n=>{let{__scopeMenu:t,open:e=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=n,u=Y(t),[p,f]=i.useState(null),d=i.useRef(!1),c=ee(a),m=Ke(o);return i.useEffect(()=>{let x=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),(0,l.jsx)(Oe,{...u,children:(0,l.jsx)(Ze,{scope:t,open:e,onOpenChange:c,content:p,onContentChange:f,children:(0,l.jsx)(ot,{scope:t,onClose:i.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:m,modal:s,children:r})})})};$e.displayName=H;var at="MenuAnchor",ve=i.forwardRef((n,t)=>{let{__scopeMenu:e,...r}=n,o=Y(e);return(0,l.jsx)(Pr,{...o,...r,ref:t})});ve.displayName=at;var we="MenuPortal",[st,qe]=F(we,{forceMount:void 0}),Je=n=>{let{__scopeMenu:t,forceMount:e,children:r,container:o}=n,a=E(we,t);return(0,l.jsx)(st,{scope:t,forceMount:e,children:(0,l.jsx)(ne,{present:e||a.open,children:(0,l.jsx)(Cr,{asChild:!0,container:o,children:r})})})};Je.displayName=we;var j="MenuContent",[it,ge]=F(j),Qe=i.forwardRef((n,t)=>{let e=qe(j,n.__scopeMenu),{forceMount:r=e.forceMount,...o}=n,a=E(j,n.__scopeMenu),s=W(j,n.__scopeMenu);return(0,l.jsx)(z.Provider,{scope:n.__scopeMenu,children:(0,l.jsx)(ne,{present:r||a.open,children:(0,l.jsx)(z.Slot,{scope:n.__scopeMenu,children:s.modal?(0,l.jsx)(lt,{...o,ref:t}):(0,l.jsx)(ut,{...o,ref:t})})})})}),lt=i.forwardRef((n,t)=>{let e=E(j,n.__scopeMenu),r=i.useRef(null),o=G(t,r);return i.useEffect(()=>{let a=r.current;if(a)return Nr(a)},[]),(0,l.jsx)(xe,{...n,ref:o,trapFocus:e.open,disableOutsidePointerEvents:e.open,disableOutsideScroll:!0,onFocusOutside:v(n.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>e.onOpenChange(!1)})}),ut=i.forwardRef((n,t)=>{let e=E(j,n.__scopeMenu);return(0,l.jsx)(xe,{...n,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>e.onOpenChange(!1)})}),ct=Or("MenuContent.ScrollLock"),xe=i.forwardRef((n,t)=>{let{__scopeMenu:e,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:p,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:m,onDismiss:x,disableOutsideScroll:w,...R}=n,g=E(j,e),D=W(j,e),_=Y(e),b=We(e),q=rt(e),[U,J]=i.useState(null),T=i.useRef(null),M=G(t,T,g.onContentChange),A=i.useRef(0),P=i.useRef(""),V=i.useRef(0),N=i.useRef(null),Ce=i.useRef("right"),se=i.useRef(0),mr=w?kr:i.Fragment,hr=w?{as:ct,allowPinchZoom:!0}:void 0,vr=h=>{var De,je;let C=P.current+h,I=q().filter(k=>!k.disabled),ie=document.activeElement,le=(De=I.find(k=>k.ref.current===ie))==null?void 0:De.textValue,Q=bt(I.map(k=>k.textValue),C,le),L=(je=I.find(k=>k.textValue===Q))==null?void 0:je.ref.current;(function k(Re){P.current=Re,window.clearTimeout(A.current),Re!==""&&(A.current=window.setTimeout(()=>k(""),1e3))})(C),L&&setTimeout(()=>L.focus())};i.useEffect(()=>()=>window.clearTimeout(A.current),[]),Mr();let K=i.useCallback(h=>{var C,I;return Ce.current===((C=N.current)==null?void 0:C.side)&&Ct(h,(I=N.current)==null?void 0:I.area)},[]);return(0,l.jsx)(it,{scope:e,searchRef:P,onItemEnter:i.useCallback(h=>{K(h)&&h.preventDefault()},[K]),onItemLeave:i.useCallback(h=>{var C;K(h)||((C=T.current)==null||C.focus(),J(null))},[K]),onTriggerLeave:i.useCallback(h=>{K(h)&&h.preventDefault()},[K]),pointerGraceTimerRef:V,onPointerGraceIntentChange:i.useCallback(h=>{N.current=h},[]),children:(0,l.jsx)(mr,{...hr,children:(0,l.jsx)(Dr,{asChild:!0,trapped:o,onMountAutoFocus:v(a,h=>{var C;h.preventDefault(),(C=T.current)==null||C.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,l.jsx)(jr,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:m,onDismiss:x,children:(0,l.jsx)(He,{asChild:!0,...b,dir:D.dir,orientation:"vertical",loop:r,currentTabStopId:U,onCurrentTabStopIdChange:J,onEntryFocus:v(p,h=>{D.isUsingKeyboardRef.current||h.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,l.jsx)(Fr,{role:"menu","aria-orientation":"vertical","data-state":gn(g.open),"data-radix-menu-content":"",dir:D.dir,..._,...R,ref:M,style:{outline:"none",...R.style},onKeyDown:v(R.onKeyDown,h=>{let C=h.target.closest("[data-radix-menu-content]")===h.currentTarget,I=h.ctrlKey||h.altKey||h.metaKey,ie=h.key.length===1;C&&(h.key==="Tab"&&h.preventDefault(),!I&&ie&&vr(h.key));let le=T.current;if(h.target!==le||!Qr.includes(h.key))return;h.preventDefault();let Q=q().filter(L=>!L.disabled).map(L=>L.ref.current);Ye.includes(h.key)&&Q.reverse(),yt(Q)}),onBlur:v(n.onBlur,h=>{h.currentTarget.contains(h.target)||(window.clearTimeout(A.current),P.current="")}),onPointerMove:v(n.onPointerMove,$(h=>{let C=h.target,I=se.current!==h.clientX;h.currentTarget.contains(C)&&I&&(Ce.current=h.clientX>se.current?"right":"left",se.current=h.clientX)}))})})})})})})});Qe.displayName=j;var dt="MenuGroup",ye=i.forwardRef((n,t)=>{let{__scopeMenu:e,...r}=n;return(0,l.jsx)(S.div,{role:"group",...r,ref:t})});ye.displayName=dt;var pt="MenuLabel",en=i.forwardRef((n,t)=>{let{__scopeMenu:e,...r}=n;return(0,l.jsx)(S.div,{...r,ref:t})});en.displayName=pt;var re="MenuItem",nn="menu.itemSelect",te=i.forwardRef((n,t)=>{let{disabled:e=!1,onSelect:r,...o}=n,a=i.useRef(null),s=W(re,n.__scopeMenu),u=ge(re,n.__scopeMenu),p=G(t,a),f=i.useRef(!1),d=()=>{let c=a.current;if(!e&&c){let m=new CustomEvent(nn,{bubbles:!0,cancelable:!0});c.addEventListener(nn,x=>r==null?void 0:r(x),{once:!0}),Er(c,m),m.defaultPrevented?f.current=!1:s.onClose()}};return(0,l.jsx)(rn,{...o,ref:p,disabled:e,onClick:v(n.onClick,d),onPointerDown:c=>{var m;(m=n.onPointerDown)==null||m.call(n,c),f.current=!0},onPointerUp:v(n.onPointerUp,c=>{var m;f.current||((m=c.currentTarget)==null||m.click())}),onKeyDown:v(n.onKeyDown,c=>{let m=u.searchRef.current!=="";e||m&&c.key===" "||me.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});te.displayName=re;var rn=i.forwardRef((n,t)=>{let{__scopeMenu:e,disabled:r=!1,textValue:o,...a}=n,s=ge(re,e),u=We(e),p=i.useRef(null),f=G(t,p),[d,c]=i.useState(!1),[m,x]=i.useState("");return i.useEffect(()=>{let w=p.current;w&&x((w.textContent??"").trim())},[a.children]),(0,l.jsx)(z.ItemSlot,{scope:e,disabled:r,textValue:o??m,children:(0,l.jsx)(ze,{asChild:!0,...u,focusable:!r,children:(0,l.jsx)(S.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:f,onPointerMove:v(n.onPointerMove,$(w=>{r?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v(n.onPointerLeave,$(w=>s.onItemLeave(w))),onFocus:v(n.onFocus,()=>c(!0)),onBlur:v(n.onBlur,()=>c(!1))})})})}),ft="MenuCheckboxItem",tn=i.forwardRef((n,t)=>{let{checked:e=!1,onCheckedChange:r,...o}=n;return(0,l.jsx)(un,{scope:n.__scopeMenu,checked:e,children:(0,l.jsx)(te,{role:"menuitemcheckbox","aria-checked":oe(e)?"mixed":e,...o,ref:t,"data-state":Me(e),onSelect:v(o.onSelect,()=>r==null?void 0:r(oe(e)?!0:!e),{checkForDefaultPrevented:!1})})})});tn.displayName=ft;var on="MenuRadioGroup",[mt,ht]=F(on,{value:void 0,onValueChange:()=>{}}),an=i.forwardRef((n,t)=>{let{value:e,onValueChange:r,...o}=n,a=ee(r);return(0,l.jsx)(mt,{scope:n.__scopeMenu,value:e,onValueChange:a,children:(0,l.jsx)(ye,{...o,ref:t})})});an.displayName=on;var sn="MenuRadioItem",ln=i.forwardRef((n,t)=>{let{value:e,...r}=n,o=ht(sn,n.__scopeMenu),a=e===o.value;return(0,l.jsx)(un,{scope:n.__scopeMenu,checked:a,children:(0,l.jsx)(te,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Me(a),onSelect:v(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,e)},{checkForDefaultPrevented:!1})})})});ln.displayName=sn;var _e="MenuItemIndicator",[un,vt]=F(_e,{checked:!1}),cn=i.forwardRef((n,t)=>{let{__scopeMenu:e,forceMount:r,...o}=n,a=vt(_e,e);return(0,l.jsx)(ne,{present:r||oe(a.checked)||a.checked===!0,children:(0,l.jsx)(S.span,{...o,ref:t,"data-state":Me(a.checked)})})});cn.displayName=_e;var wt="MenuSeparator",dn=i.forwardRef((n,t)=>{let{__scopeMenu:e,...r}=n;return(0,l.jsx)(S.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});dn.displayName=wt;var gt="MenuArrow",pn=i.forwardRef((n,t)=>{let{__scopeMenu:e,...r}=n,o=Y(e);return(0,l.jsx)(Tr,{...o,...r,ref:t})});pn.displayName=gt;var be="MenuSub",[xt,fn]=F(be),mn=n=>{let{__scopeMenu:t,children:e,open:r=!1,onOpenChange:o}=n,a=E(be,t),s=Y(t),[u,p]=i.useState(null),[f,d]=i.useState(null),c=ee(o);return i.useEffect(()=>(a.open===!1&&c(!1),()=>c(!1)),[a.open,c]),(0,l.jsx)(Oe,{...s,children:(0,l.jsx)(Ze,{scope:t,open:r,onOpenChange:c,content:f,onContentChange:d,children:(0,l.jsx)(xt,{scope:t,contentId:B(),triggerId:B(),trigger:u,onTriggerChange:p,children:e})})})};mn.displayName=be;var Z="MenuSubTrigger",hn=i.forwardRef((n,t)=>{let e=E(Z,n.__scopeMenu),r=W(Z,n.__scopeMenu),o=fn(Z,n.__scopeMenu),a=ge(Z,n.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:p}=a,f={__scopeMenu:n.__scopeMenu},d=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{let c=u.current;return()=>{window.clearTimeout(c),p(null)}},[u,p]),(0,l.jsx)(ve,{asChild:!0,...f,children:(0,l.jsx)(rn,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":e.open,"aria-controls":o.contentId,"data-state":gn(e.open),...n,ref:Ie(t,o.onTriggerChange),onClick:c=>{var m;(m=n.onClick)==null||m.call(n,c),!(n.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),e.open||e.onOpenChange(!0))},onPointerMove:v(n.onPointerMove,$(c=>{a.onItemEnter(c),!c.defaultPrevented&&!n.disabled&&!e.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{e.onOpenChange(!0),d()},100))})),onPointerLeave:v(n.onPointerLeave,$(c=>{var x,w;d();let m=(x=e.content)==null?void 0:x.getBoundingClientRect();if(m){let R=(w=e.content)==null?void 0:w.dataset.side,g=R==="right",D=g?-5:5,_=m[g?"left":"right"],b=m[g?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+D,y:c.clientY},{x:_,y:m.top},{x:b,y:m.top},{x:b,y:m.bottom},{x:_,y:m.bottom}],side:R}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:v(n.onKeyDown,c=>{var x;let m=a.searchRef.current!=="";n.disabled||m&&c.key===" "||et[r.dir].includes(c.key)&&(e.onOpenChange(!0),(x=e.content)==null||x.focus(),c.preventDefault())})})})});hn.displayName=Z;var vn="MenuSubContent",wn=i.forwardRef((n,t)=>{let e=qe(j,n.__scopeMenu),{forceMount:r=e.forceMount,...o}=n,a=E(j,n.__scopeMenu),s=W(j,n.__scopeMenu),u=fn(vn,n.__scopeMenu),p=i.useRef(null),f=G(t,p);return(0,l.jsx)(z.Provider,{scope:n.__scopeMenu,children:(0,l.jsx)(ne,{present:r||a.open,children:(0,l.jsx)(z.Slot,{scope:n.__scopeMenu,children:(0,l.jsx)(xe,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:f,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var c;s.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:v(n.onFocusOutside,d=>{d.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:v(n.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:v(n.onKeyDown,d=>{var x;let c=d.currentTarget.contains(d.target),m=nt[s.dir].includes(d.key);c&&m&&(a.onOpenChange(!1),(x=u.trigger)==null||x.focus(),d.preventDefault())})})})})})});wn.displayName=vn;function gn(n){return n?"open":"closed"}function oe(n){return n==="indeterminate"}function Me(n){return oe(n)?"indeterminate":n?"checked":"unchecked"}function yt(n){let t=document.activeElement;for(let e of n)if(e===t||(e.focus(),document.activeElement!==t))return}function _t(n,t){return n.map((e,r)=>n[(t+r)%n.length])}function bt(n,t,e){let r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=e?n.indexOf(e):-1,a=_t(n,Math.max(o,0));r.length===1&&(a=a.filter(u=>u!==e));let s=a.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return s===e?void 0:s}function Mt(n,t){let{x:e,y:r}=n,o=!1;for(let a=0,s=t.length-1;ar!=m>r&&e<(c-f)*(r-d)/(m-d)+f&&(o=!o)}return o}function Ct(n,t){return t?Mt({x:n.clientX,y:n.clientY},t):!1}function $(n){return t=>t.pointerType==="mouse"?n(t):void 0}var xn=$e,yn=ve,_n=Je,bn=Qe,Mn=ye,Cn=en,Dn=te,jn=tn,Rn=an,Nn=ln,In=cn,kn=dn,Sn=pn,En=mn,On=hn,Tn=wn,ae="DropdownMenu",[Dt,mo]=ue(ae,[he]),y=he(),[jt,Pn]=Dt(ae),Fn=n=>{let{__scopeDropdownMenu:t,children:e,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=n,p=y(t),f=i.useRef(null),[d,c]=ce({prop:o,defaultProp:a??!1,onChange:s,caller:ae});return(0,l.jsx)(jt,{scope:t,triggerId:B(),triggerRef:f,contentId:B(),open:d,onOpenChange:c,onOpenToggle:i.useCallback(()=>c(m=>!m),[c]),modal:u,children:(0,l.jsx)(xn,{...p,open:d,onOpenChange:c,dir:r,modal:u,children:e})})};Fn.displayName=ae;var An="DropdownMenuTrigger",Kn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,disabled:r=!1,...o}=n,a=Pn(An,e),s=y(e);return(0,l.jsx)(yn,{asChild:!0,...s,children:(0,l.jsx)(S.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ie(t,a.triggerRef),onPointerDown:v(n.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(a.onOpenToggle(),a.open||u.preventDefault())}),onKeyDown:v(n.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&a.onOpenToggle(),u.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});Kn.displayName=An;var Rt="DropdownMenuPortal",Ln=n=>{let{__scopeDropdownMenu:t,...e}=n,r=y(t);return(0,l.jsx)(_n,{...r,...e})};Ln.displayName=Rt;var Gn="DropdownMenuContent",Un=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=Pn(Gn,e),a=y(e),s=i.useRef(!1);return(0,l.jsx)(bn,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:v(n.onCloseAutoFocus,u=>{var p;s.current||((p=o.triggerRef.current)==null||p.focus()),s.current=!1,u.preventDefault()}),onInteractOutside:v(n.onInteractOutside,u=>{let p=u.detail.originalEvent,f=p.button===0&&p.ctrlKey===!0,d=p.button===2||f;(!o.modal||d)&&(s.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Un.displayName=Gn;var Nt="DropdownMenuGroup",Vn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(Mn,{...o,...r,ref:t})});Vn.displayName=Nt;var It="DropdownMenuLabel",Bn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(Cn,{...o,...r,ref:t})});Bn.displayName=It;var kt="DropdownMenuItem",Xn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(Dn,{...o,...r,ref:t})});Xn.displayName=kt;var St="DropdownMenuCheckboxItem",Hn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(jn,{...o,...r,ref:t})});Hn.displayName=St;var Et="DropdownMenuRadioGroup",Ot=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(Rn,{...o,...r,ref:t})});Ot.displayName=Et;var Tt="DropdownMenuRadioItem",zn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(Nn,{...o,...r,ref:t})});zn.displayName=Tt;var Pt="DropdownMenuItemIndicator",Yn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(In,{...o,...r,ref:t})});Yn.displayName=Pt;var Ft="DropdownMenuSeparator",Wn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(kn,{...o,...r,ref:t})});Wn.displayName=Ft;var At="DropdownMenuArrow",Kt=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(Sn,{...o,...r,ref:t})});Kt.displayName=At;var Lt=n=>{let{__scopeDropdownMenu:t,children:e,open:r,onOpenChange:o,defaultOpen:a}=n,s=y(t),[u,p]=ce({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return(0,l.jsx)(En,{...s,open:u,onOpenChange:p,children:e})},Gt="DropdownMenuSubTrigger",Zn=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(On,{...o,...r,ref:t})});Zn.displayName=Gt;var Ut="DropdownMenuSubContent",$n=i.forwardRef((n,t)=>{let{__scopeDropdownMenu:e,...r}=n,o=y(e);return(0,l.jsx)(Tn,{...o,...r,ref:t,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$n.displayName=Ut;var Vt=Fn,Bt=Kn,Xt=Ln,qn=Un,Ht=Vn,Jn=Bn,Qn=Xn,er=Hn,nr=zn,rr=Yn,tr=Wn,zt=Lt,or=Zn,ar=$n,O=gr(),Yt=Vt,Wt=Bt,Zt=Ht,sr=Ir(Xt),$t=Se(qn),qt=Se(ar),Jt=zt,ir=i.forwardRef((n,t)=>{let e=(0,O.c)(17),r,o,a,s,u;e[0]===n?(r=e[1],o=e[2],a=e[3],s=e[4],u=e[5]):({className:o,inset:a,showChevron:u,children:r,...s}=n,e[0]=n,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=u);let p=u===void 0?!0:u,f;e[6]!==o||e[7]!==a?(f=Kr({className:o,inset:a}),e[6]=o,e[7]=a,e[8]=f):f=e[8];let d;e[9]===p?d=e[10]:(d=p&&(0,l.jsx)(br,{className:"ml-auto h-4 w-4"}),e[9]=p,e[10]=d);let c;return e[11]!==r||e[12]!==s||e[13]!==t||e[14]!==f||e[15]!==d?(c=(0,l.jsxs)(or,{ref:t,className:f,...s,children:[r,d]}),e[11]=r,e[12]=s,e[13]=t,e[14]=f,e[15]=d,e[16]=c):c=e[16],c});ir.displayName=or.displayName;var lr=i.forwardRef((n,t)=>{let e=(0,O.c)(9),r,o;e[0]===n?(r=e[1],o=e[2]):({className:r,...o}=n,e[0]=n,e[1]=r,e[2]=o);let a;e[3]===r?a=e[4]:(a=ke(Ae({subcontent:!0}),"animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",r),e[3]=r,e[4]=a);let s;return e[5]!==o||e[6]!==t||e[7]!==a?(s=(0,l.jsx)(qt,{ref:t,className:a,...o}),e[5]=o,e[6]=t,e[7]=a,e[8]=s):s=e[8],s});lr.displayName=ar.displayName;var ur=i.forwardRef((n,t)=>{let e=(0,O.c)(17),r,o,a,s;e[0]===n?(r=e[1],o=e[2],a=e[3],s=e[4]):({className:r,scrollable:a,sideOffset:s,...o}=n,e[0]=n,e[1]=r,e[2]=o,e[3]=a,e[4]=s);let u=a===void 0?!0:a,p=s===void 0?4:s,f;e[5]!==r||e[6]!==u?(f=ke(Ae(),"animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",u&&"overflow-auto",r),e[5]=r,e[6]=u,e[7]=f):f=e[7];let d=u?`calc(var(--radix-dropdown-menu-content-available-height) - ${Rr}px)`:void 0,c;e[8]!==o.style||e[9]!==d?(c={...o.style,maxHeight:d},e[8]=o.style,e[9]=d,e[10]=c):c=e[10];let m;return e[11]!==o||e[12]!==t||e[13]!==p||e[14]!==f||e[15]!==c?(m=(0,l.jsx)(sr,{children:(0,l.jsx)(Sr,{children:(0,l.jsx)($t,{ref:t,sideOffset:p,className:f,style:c,...o})})}),e[11]=o,e[12]=t,e[13]=p,e[14]=f,e[15]=c,e[16]=m):m=e[16],m});ur.displayName=qn.displayName;var cr=i.forwardRef((n,t)=>{let e=(0,O.c)(13),r,o,a,s;e[0]===n?(r=e[1],o=e[2],a=e[3],s=e[4]):({className:r,inset:o,variant:s,...a}=n,e[0]=n,e[1]=r,e[2]=o,e[3]=a,e[4]=s);let u;e[5]!==r||e[6]!==o||e[7]!==s?(u=Gr({className:r,inset:o,variant:s}),e[5]=r,e[6]=o,e[7]=s,e[8]=u):u=e[8];let p;return e[9]!==a||e[10]!==t||e[11]!==u?(p=(0,l.jsx)(Qn,{ref:t,className:u,...a}),e[9]=a,e[10]=t,e[11]=u,e[12]=p):p=e[12],p});cr.displayName=Qn.displayName;var dr=i.forwardRef((n,t)=>{let e=(0,O.c)(15),r,o,a,s;e[0]===n?(r=e[1],o=e[2],a=e[3],s=e[4]):({className:a,children:o,checked:r,...s}=n,e[0]=n,e[1]=r,e[2]=o,e[3]=a,e[4]=s);let u;e[5]===a?u=e[6]:(u=Te({className:a}),e[5]=a,e[6]=u);let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=Fe(),e[7]=p):p=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=(0,l.jsx)("span",{className:p,children:(0,l.jsx)(rr,{children:(0,l.jsx)(_r,{className:"h-4 w-4"})})}),e[8]=f):f=e[8];let d;return e[9]!==r||e[10]!==o||e[11]!==s||e[12]!==t||e[13]!==u?(d=(0,l.jsxs)(er,{ref:t,className:u,checked:r,...s,children:[f,o]}),e[9]=r,e[10]=o,e[11]=s,e[12]=t,e[13]=u,e[14]=d):d=e[14],d});dr.displayName=er.displayName;var Qt=i.forwardRef((n,t)=>{let e=(0,O.c)(13),r,o,a;e[0]===n?(r=e[1],o=e[2],a=e[3]):({className:o,children:r,...a}=n,e[0]=n,e[1]=r,e[2]=o,e[3]=a);let s;e[4]===o?s=e[5]:(s=Te({className:o}),e[4]=o,e[5]=s);let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=Fe(),e[6]=u):u=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)("span",{className:u,children:(0,l.jsx)(rr,{children:(0,l.jsx)(Le,{className:"h-2 w-2 fill-current"})})}),e[7]=p):p=e[7];let f;return e[8]!==r||e[9]!==a||e[10]!==t||e[11]!==s?(f=(0,l.jsxs)(nr,{ref:t,className:s,...a,children:[p,r]}),e[8]=r,e[9]=a,e[10]=t,e[11]=s,e[12]=f):f=e[12],f});Qt.displayName=nr.displayName;var pr=i.forwardRef((n,t)=>{let e=(0,O.c)(11),r,o,a;e[0]===n?(r=e[1],o=e[2],a=e[3]):({className:r,inset:o,...a}=n,e[0]=n,e[1]=r,e[2]=o,e[3]=a);let s;e[4]!==r||e[5]!==o?(s=Ur({className:r,inset:o}),e[4]=r,e[5]=o,e[6]=s):s=e[6];let u;return e[7]!==a||e[8]!==t||e[9]!==s?(u=(0,l.jsx)(Jn,{ref:t,className:s,...a}),e[7]=a,e[8]=t,e[9]=s,e[10]=u):u=e[10],u});pr.displayName=Jn.displayName;var fr=i.forwardRef((n,t)=>{let e=(0,O.c)(9),r,o;e[0]===n?(r=e[1],o=e[2]):({className:r,...o}=n,e[0]=n,e[1]=r,e[2]=o);let a;e[3]===r?a=e[4]:(a=Ar({className:r}),e[3]=r,e[4]=a);let s;return e[5]!==o||e[6]!==t||e[7]!==a?(s=(0,l.jsx)(tr,{ref:t,className:a,...o}),e[5]=o,e[6]=t,e[7]=a,e[8]=s):s=e[8],s});fr.displayName=tr.displayName;var eo=Lr;export{he as A,Rn as C,En as D,kn as E,He as M,fe as N,Tn as O,Le as P,_n as S,xn as T,bn as _,cr as a,In as b,fr as c,lr as d,ir as f,jn as g,Sn as h,Zt as i,ze as j,On as k,eo as l,yn as m,dr as n,pr as o,Wt as p,ur as r,sr as s,Yt as t,Jt as u,Mn as v,Nn as w,Cn as x,Dn as y}; diff --git a/docs/assets/dtd-CjtwvVlM.js b/docs/assets/dtd-CjtwvVlM.js new file mode 100644 index 0000000..2b102a8 --- /dev/null +++ b/docs/assets/dtd-CjtwvVlM.js @@ -0,0 +1 @@ +import{t}from"./dtd-uNeIl1u0.js";export{t as dtd}; diff --git a/docs/assets/dtd-uNeIl1u0.js b/docs/assets/dtd-uNeIl1u0.js new file mode 100644 index 0000000..f2ed460 --- /dev/null +++ b/docs/assets/dtd-uNeIl1u0.js @@ -0,0 +1 @@ +var a;function u(e,t){return a=t,e}function l(e,t){var n=e.next();if(n=="<"&&e.eat("!")){if(e.eatWhile(/[\-]/))return t.tokenize=s,s(e,t);if(e.eatWhile(/[\w]/))return u("keyword","doindent")}else{if(n=="<"&&e.eat("?"))return t.tokenize=o("meta","?>"),u("meta",n);if(n=="#"&&e.eatWhile(/[\w]/))return u("atom","tag");if(n=="|")return u("keyword","separator");if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return u(null,n);if(n.match(/[\[\]]/))return u("rule",n);if(n=='"'||n=="'")return t.tokenize=c(n),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var r=e.current();return r.substr(r.length-1,r.length).match(/\?|\+/)!==null&&e.backUp(1),u("tag","tag")}else return n=="%"||n=="*"?u("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),u(null,null))}}function s(e,t){for(var n=0,r;(r=e.next())!=null;){if(n>=2&&r==">"){t.tokenize=l;break}n=r=="-"?n+1:0}return u("comment","comment")}function c(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null;){if(i==e&&!r){n.tokenize=l;break}r=!r&&i=="\\"}return u("string","tag")}}function o(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=l;break}n.next()}return e}}const k={name:"dtd",startState:function(){return{tokenize:l,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return e.current()=="["||a==="doindent"||a=="["?t.stack.push("rule"):a==="endtag"?t.stack[t.stack.length-1]="endtag":e.current()=="]"||a=="]"||a==">"&&r=="rule"?t.stack.pop():a=="["&&t.stack.push("["),n},indent:function(e,t,n){var r=e.stack.length;return t.charAt(0)==="]"?r--:t.substr(t.length-1,t.length)===">"&&(t.substr(0,1)==="<"||a=="doindent"&&t.length>1||(a=="doindent"?r--:a==">"&&t.length>1||a=="tag"&&t!==">"||(a=="tag"&&e.stack[e.stack.length-1]=="rule"?r--:a=="tag"?r++:t===">"&&e.stack[e.stack.length-1]=="rule"&&a===">"?r--:t===">"&&e.stack[e.stack.length-1]=="rule"||(t.substr(0,1)!=="<"&&t.substr(0,1)===">"?--r:t===">"||--r))),(a==null||a=="]")&&r--),e.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}};export{k as t}; diff --git a/docs/assets/duckdb-keywords-CYQ5DEZJ.js b/docs/assets/duckdb-keywords-CYQ5DEZJ.js new file mode 100644 index 0000000..a81c067 --- /dev/null +++ b/docs/assets/duckdb-keywords-CYQ5DEZJ.js @@ -0,0 +1 @@ +const e=JSON.parse(`{"array_agg":{"description":"Returns a LIST containing all the values of a column.","example":"list(A)"},"array_aggr":{"description":"Executes the aggregate function name on the elements of list","example":"list_aggregate([1, 2, NULL], 'min')"},"array_aggregate":{"description":"Executes the aggregate function name on the elements of list","example":"list_aggregate([1, 2, NULL], 'min')"},"array_apply":{"description":"Returns a list that is the result of applying the lambda function to each element of the input list. See the Lambda Functions section for more details","example":"list_transform([1, 2, 3], x -> x + 1)"},"array_cat":{"description":"Concatenates two lists.","example":"list_concat([2, 3], [4, 5, 6])"},"array_concat":{"description":"Concatenates two lists.","example":"list_concat([2, 3], [4, 5, 6])"},"array_contains":{"description":"Returns true if the list contains the element.","example":"list_contains([1, 2, NULL], 1)"},"array_cosine_distance":{"description":"Compute the cosine distance between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.","example":"array_cosine_distance([1, 2, 3], [1, 2, 3])"},"array_cosine_similarity":{"description":"Compute the cosine similarity between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.","example":"array_cosine_similarity([1, 2, 3], [1, 2, 3])"},"array_cross_product":{"description":"Compute the cross product of two arrays of size 3. The array elements can not be NULL.","example":"array_cross_product([1, 2, 3], [1, 2, 3])"},"array_distance":{"description":"Compute the distance between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.","example":"array_distance([1, 2, 3], [1, 2, 3])"},"array_distinct":{"description":"Removes all duplicates and NULLs from a list. Does not preserve the original order","example":"list_distinct([1, 1, NULL, -3, 1, 5])"},"array_dot_product":{"description":"Compute the inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.","example":"array_inner_product([1, 2, 3], [1, 2, 3])"},"array_extract":{"description":"Extract the indexth (1-based) value from the array.","example":"array_extract('DuckDB', 2)"},"array_filter":{"description":"Constructs a list from those elements of the input list for which the lambda function returns true","example":"list_filter([3, 4, 5], x -> x > 4)"},"array_grade_up":{"description":"Returns the index of their sorted position.","example":"list_grade_up([3, 6, 1, 2])"},"array_has":{"description":"Returns true if the list contains the element.","example":"list_contains([1, 2, NULL], 1)"},"array_has_all":{"description":"Returns true if all elements of l2 are in l1. NULLs are ignored.","example":"list_has_all([1, 2, 3], [2, 3])"},"array_has_any":{"description":"Returns true if the lists have any element in common. NULLs are ignored.","example":"list_has_any([1, 2, 3], [2, 3, 4])"},"array_indexof":{"description":"Returns the index of the element if the list contains the element. If the element is not found, it returns NULL.","example":"list_position([1, 2, NULL], 2)"},"array_inner_product":{"description":"Compute the inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.","example":"array_inner_product([1, 2, 3], [1, 2, 3])"},"array_length":{"description":"Returns the length of the \`list\`.","example":"array_length([1,2,3])"},"array_negative_dot_product":{"description":"Compute the negative inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.","example":"array_negative_inner_product([1, 2, 3], [1, 2, 3])"},"array_negative_inner_product":{"description":"Compute the negative inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.","example":"array_negative_inner_product([1, 2, 3], [1, 2, 3])"},"array_position":{"description":"Returns the index of the element if the list contains the element. If the element is not found, it returns NULL.","example":"list_position([1, 2, NULL], 2)"},"array_reduce":{"description":"Returns a single value that is the result of applying the lambda function to each element of the input list, starting with the first element and then repeatedly applying the lambda function to the result of the previous application and the next element of the list. When an initial value is provided, it is used as the first argument to the lambda function","example":"list_reduce([1, 2, 3], (x, y) -> x + y)"},"array_resize":{"description":"Resizes the list to contain size elements. Initializes new elements with value or NULL if value is not set.","example":"list_resize([1, 2, 3], 5, 0)"},"array_reverse_sort":{"description":"Sorts the elements of the list in reverse order","example":"list_reverse_sort([3, 6, 1, 2])"},"array_select":{"description":"Returns a list based on the elements selected by the index_list.","example":"list_select([10, 20, 30, 40], [1, 4])"},"array_slice":{"description":"list_slice with added step feature.","example":"list_slice([4, 5, 6], 2, 3)"},"array_sort":{"description":"Sorts the elements of the list","example":"list_sort([3, 6, 1, 2])"},"array_transform":{"description":"Returns a list that is the result of applying the lambda function to each element of the input list. See the Lambda Functions section for more details","example":"list_transform([1, 2, 3], x -> x + 1)"},"array_unique":{"description":"Counts the unique elements of a list","example":"list_unique([1, 1, NULL, -3, 1, 5])"},"array_value":{"description":"Create an ARRAY containing the argument values.","example":"array_value(4, 5, 6)"},"array_where":{"description":"Returns a list with the BOOLEANs in mask_list applied as a mask to the value_list.","example":"list_where([10, 20, 30, 40], [true, false, false, true])"},"array_zip":{"description":"Zips k LISTs to a new LIST whose length will be that of the longest list. Its elements are structs of k elements from each list list_1, \u2026, list_k, missing elements are replaced with NULL. If truncate is set, all lists are truncated to the smallest list length.","example":"list_zip([1, 2], [3, 4], [5, 6])"},"cast_to_type":{"description":"Casts the first argument to the type of the second argument","example":"cast_to_type('42', NULL::INTEGER)"},"concat":{"description":"Concatenates many strings together.","example":"concat('Hello', ' ', 'World')"},"concat_ws":{"description":"Concatenates strings together separated by the specified separator.","example":"concat_ws(', ', 'Banana', 'Apple', 'Melon')"},"contains":{"description":"Returns true if the \`list\` contains the \`element\`.","example":"contains([1, 2, NULL], 1)"},"count":{"description":"Returns the number of non-null values in arg.","example":"count(A)"},"count_if":{"description":"Counts the total number of TRUE values for a boolean column","example":"count_if(A)"},"countif":{"description":"Counts the total number of TRUE values for a boolean column","example":"count_if(A)"},"date_diff":{"description":"The number of partition boundaries between the timestamps","example":"date_diff('hour', TIMESTAMPTZ '1992-09-30 23:59:59', TIMESTAMPTZ '1992-10-01 01:58:00')"},"date_part":{"description":"Get subfield (equivalent to extract)","example":"date_part('minute', TIMESTAMP '1992-09-20 20:38:40')"},"date_sub":{"description":"The number of complete partitions between the timestamps","example":"date_sub('hour', TIMESTAMPTZ '1992-09-30 23:59:59', TIMESTAMPTZ '1992-10-01 01:58:00')"},"date_trunc":{"description":"Truncate to specified precision","example":"date_trunc('hour', TIMESTAMPTZ '1992-09-20 20:38:40')"},"datediff":{"description":"The number of partition boundaries between the timestamps","example":"date_diff('hour', TIMESTAMPTZ '1992-09-30 23:59:59', TIMESTAMPTZ '1992-10-01 01:58:00')"},"datepart":{"description":"Get subfield (equivalent to extract)","example":"date_part('minute', TIMESTAMP '1992-09-20 20:38:40')"},"datesub":{"description":"The number of complete partitions between the timestamps","example":"date_sub('hour', TIMESTAMPTZ '1992-09-30 23:59:59', TIMESTAMPTZ '1992-10-01 01:58:00')"},"datetrunc":{"description":"Truncate to specified precision","example":"date_trunc('hour', TIMESTAMPTZ '1992-09-20 20:38:40')"},"day":{"description":"Extract the day component from a date or timestamp","example":"day(timestamp '2021-08-03 11:59:44.123456')"},"dayname":{"description":"The (English) name of the weekday","example":"dayname(TIMESTAMP '1992-03-22')"},"dayofmonth":{"description":"Extract the dayofmonth component from a date or timestamp","example":"dayofmonth(timestamp '2021-08-03 11:59:44.123456')"},"dayofweek":{"description":"Extract the dayofweek component from a date or timestamp","example":"dayofweek(timestamp '2021-08-03 11:59:44.123456')"},"dayofyear":{"description":"Extract the dayofyear component from a date or timestamp","example":"dayofyear(timestamp '2021-08-03 11:59:44.123456')"},"generate_series":{"description":"Create a list of values between start and stop - the stop parameter is inclusive","example":"generate_series(2, 5, 3)"},"histogram":{"description":"Returns a LIST of STRUCTs with the fields bucket and count.","example":"histogram(A)"},"histogram_exact":{"description":"Returns a LIST of STRUCTs with the fields bucket and count matching the buckets exactly.","example":"histogram_exact(A, [0, 1, 2])"},"string_agg":{"description":"Concatenates the column string values with an optional separator.","example":"string_agg(A, '-')"},"string_split":{"description":"Splits the \`string\` along the \`separator\`","example":"string_split('hello-world', '-')"},"string_split_regex":{"description":"Splits the \`string\` along the \`regex\`","example":"string_split_regex('hello world; 42', ';? ')"},"string_to_array":{"description":"Splits the \`string\` along the \`separator\`","example":"string_split('hello-world', '-')"},"struct_concat":{"description":"Merge the multiple STRUCTs into a single STRUCT.","example":"struct_concat(struct_pack(i := 4), struct_pack(s := 'string'))"},"struct_extract":{"description":"Extract the named entry from the STRUCT.","example":"struct_extract({'i': 3, 'v2': 3, 'v3': 0}, 'i')"},"struct_extract_at":{"description":"Extract the entry from the STRUCT by position (starts at 1!).","example":"struct_extract_at({'i': 3, 'v2': 3, 'v3': 0}, 2)"},"struct_insert":{"description":"Adds field(s)/value(s) to an existing STRUCT with the argument values. The entry name(s) will be the bound variable name(s)","example":"struct_insert({'a': 1}, b := 2)"},"struct_pack":{"description":"Create a STRUCT containing the argument values. The entry name will be the bound variable name.","example":"struct_pack(i := 4, s := 'string')"},"substring":{"description":"Extract substring of \`length\` characters starting from character \`start\`. Note that a start value of 1 refers to the first character of the \`string\`.","example":"substring('Hello', 2, 2)"},"substring_grapheme":{"description":"Extract substring of \`length\` grapheme clusters starting from character \`start\`. Note that a start value of 1 refers to the first character of the \`string\`.","example":"substring_grapheme('\u{1F986}\u{1F926}\u{1F3FC}\u200D\u2642\uFE0F\u{1F926}\u{1F3FD}\u200D\u2640\uFE0F\u{1F986}', 3, 2)"},"to_base":{"description":"Converts a value to a string in the given base radix, optionally padding with leading zeros to the minimum length","example":"to_base(42, 16)"},"to_base64":{"description":"Converts a \`blob\` to a base64 encoded \`string\`.","example":"base64('A'::BLOB)"},"to_binary":{"description":"Converts the value to binary representation","example":"bin(42)"},"to_centuries":{"description":"Construct a century interval","example":"to_centuries(5)"},"to_days":{"description":"Construct a day interval","example":"to_days(5)"},"to_decades":{"description":"Construct a decade interval","example":"to_decades(5)"},"to_hex":{"description":"Converts the value to hexadecimal representation.","example":"hex(42)"},"to_hours":{"description":"Construct a hour interval","example":"to_hours(5)"},"to_microseconds":{"description":"Construct a microsecond interval","example":"to_microseconds(5)"},"to_millennia":{"description":"Construct a millennium interval","example":"to_millennia(1)"},"to_milliseconds":{"description":"Construct a millisecond interval","example":"to_milliseconds(5.5)"},"to_minutes":{"description":"Construct a minute interval","example":"to_minutes(5)"},"to_months":{"description":"Construct a month interval","example":"to_months(5)"},"to_quarters":{"description":"Construct a quarter interval","example":"to_quarters(5)"},"to_seconds":{"description":"Construct a second interval","example":"to_seconds(5.5)"},"to_timestamp":{"description":"Converts secs since epoch to a timestamp with time zone","example":"to_timestamp(1284352323.5)"},"to_weeks":{"description":"Construct a week interval","example":"to_weeks(5)"},"to_years":{"description":"Construct a year interval","example":"to_years(5)"},"trim":{"description":"Removes any spaces from either side of the string.","example":"trim('>>>>test<<', '><')"}}`);var t={keywords:e};export{t as default,e as keywords}; diff --git a/docs/assets/dylan-CrZBaY0F.js b/docs/assets/dylan-CrZBaY0F.js new file mode 100644 index 0000000..0e43889 --- /dev/null +++ b/docs/assets/dylan-CrZBaY0F.js @@ -0,0 +1 @@ +function p(e,n){for(var t=0;t",symbolGlobal:"\\*"+f+"\\*",symbolConstant:"\\$"+f},D={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var s in l)l.hasOwnProperty(s)&&(l[s]=RegExp("^"+l[s]));l.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var c={};c.keyword="keyword",c.definition="def",c.simpleDefinition="def",c.signalingCalls="builtin";var b={},h={};p(["keyword","definition","simpleDefinition","signalingCalls"],function(e){p(i[e],function(n){b[n]=e,h[n]=c[e]})});function u(e,n,t){return n.tokenize=t,t(e,n)}function m(e,n){var t=e.peek();if(t=="'"||t=='"')return e.next(),u(e,n,y(t,"string"));if(t=="/"){if(e.next(),e.eat("*"))return u(e,n,v);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(t)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if(t=="#")return e.next(),t=e.peek(),t=='"'?(e.next(),u(e,n,y('"',"string"))):t=="b"?(e.next(),e.eatWhile(/[01]/),"number"):t=="x"?(e.next(),e.eatWhile(/[\da-f]/i),"number"):t=="o"?(e.next(),e.eatWhile(/[0-7]/),"number"):t=="#"?(e.next(),"punctuation"):t=="["||t=="("?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if(t=="~")return e.next(),t=e.peek(),t=="="&&(e.next(),t=e.peek(),t=="="&&e.next()),"operator";if(t==":"){if(e.next(),t=e.peek(),t=="=")return e.next(),"operator";if(t==":")return e.next(),"punctuation"}else{if("[](){}".indexOf(t)!=-1)return e.next(),"bracket";if(".,".indexOf(t)!=-1)return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var o in l)if(l.hasOwnProperty(o)){var r=l[o];if(r instanceof Array&&k(r,function(a){return e.match(a)})||e.match(r))return D[o]}return/[+\-*\/^=<>&|]/.test(t)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),b.hasOwnProperty(e.current())?h[e.current()]:e.current().match(x)?"variable":(e.next(),"variableName.standard"))}function v(e,n){for(var t=!1,o=!1,r=0,a;a=e.next();){if(a=="/"&&t)if(r>0)r--;else{n.tokenize=m;break}else a=="*"&&o&&r++;t=a=="*",o=a=="/"}return"comment"}function y(e,n){return function(t,o){for(var r=!1,a,d=!1;(a=t.next())!=null;){if(a==e&&!r){d=!0;break}r=!r&&a=="\\"}return(d||!r)&&(o.tokenize=m),n}}const g={name:"dylan",startState:function(){return{tokenize:m,currentIndent:0}},token:function(e,n){return e.eatSpace()?null:n.tokenize(e,n)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}};export{g as t}; diff --git a/docs/assets/dylan-D750ej-H.js b/docs/assets/dylan-D750ej-H.js new file mode 100644 index 0000000..bd6073e --- /dev/null +++ b/docs/assets/dylan-D750ej-H.js @@ -0,0 +1 @@ +import{t as a}from"./dylan-CrZBaY0F.js";export{a as dylan}; diff --git a/docs/assets/ebnf-XMH6KY7E.js b/docs/assets/ebnf-XMH6KY7E.js new file mode 100644 index 0000000..1e8b869 --- /dev/null +++ b/docs/assets/ebnf-XMH6KY7E.js @@ -0,0 +1 @@ +var c={slash:0,parenthesis:1},a={comment:0,_string:1,characterClass:2};const r={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,t){if(e){switch(t.stack.length===0&&(e.peek()=='"'||e.peek()=="'"?(t.stringType=e.peek(),e.next(),t.stack.unshift(a._string)):e.match("/*")?(t.stack.unshift(a.comment),t.commentType=c.slash):e.match("(*")&&(t.stack.unshift(a.comment),t.commentType=c.parenthesis)),t.stack[0]){case a._string:for(;t.stack[0]===a._string&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string";case a.comment:for(;t.stack[0]===a.comment&&!e.eol();)t.commentType===c.slash&&e.match("*/")||t.commentType===c.parenthesis&&e.match("*)")?(t.stack.shift(),t.commentType=null):e.match(/^.[^\*]*/);return"comment";case a.characterClass:for(;t.stack[0]===a.characterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||t.stack.shift();return"operator"}var s=e.peek();switch(s){case"[":return e.next(),t.stack.unshift(a.characterClass),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(s))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":["[","]","(",")"].indexOf(e.peek())==-1?(e.eatSpace()||e.next(),null):(e.next(),"bracket")}}};export{r as ebnf}; diff --git a/docs/assets/ecl-ByTsrrt6.js b/docs/assets/ecl-ByTsrrt6.js new file mode 100644 index 0000000..f22dd4b --- /dev/null +++ b/docs/assets/ecl-ByTsrrt6.js @@ -0,0 +1 @@ +function s(e){for(var n={},t=e.split(" "),r=0;r!?|\/]/,o;function c(e,n){var t=e.next();if(f[t]){var r=f[t](e,n);if(r!==!1)return r}if(t=='"'||t=="'")return n.tokenize=I(t),n.tokenize(e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return o=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(t=="/"){if(e.eat("*"))return n.tokenize=y,y(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(h.test(t))return e.eatWhile(h),"operator";e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();if(v.propertyIsEnumerable(a))return l.propertyIsEnumerable(a)&&(o="newstatement"),"keyword";if(x.propertyIsEnumerable(a))return l.propertyIsEnumerable(a)&&(o="newstatement"),"variable";if(k.propertyIsEnumerable(a))return l.propertyIsEnumerable(a)&&(o="newstatement"),"modifier";if(m.propertyIsEnumerable(a))return l.propertyIsEnumerable(a)&&(o="newstatement"),"type";if(w.propertyIsEnumerable(a))return l.propertyIsEnumerable(a)&&(o="newstatement"),"builtin";for(var i=a.length-1;i>=0&&(!isNaN(a[i])||a[i]=="_");)--i;if(i>0){var d=a.substr(0,i+1);if(m.propertyIsEnumerable(d))return l.propertyIsEnumerable(d)&&(o="newstatement"),"type"}return E.propertyIsEnumerable(a)?"atom":null}function I(e){return function(n,t){for(var r=!1,a,i=!1;(a=n.next())!=null;){if(a==e&&!r){i=!0;break}r=!r&&a=="\\"}return(i||!r)&&(t.tokenize=c),"string"}}function y(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=c;break}t=r=="*"}return"comment"}function g(e,n,t,r,a){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=a}function p(e,n,t){return e.context=new g(e.indented,n,t,null,e.context)}function u(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}const z={name:"ecl",startState:function(e){return{tokenize:null,context:new g(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align??(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;o=null;var r=(n.tokenize||c)(e,n);if(r=="comment"||r=="meta")return r;if(t.align??(t.align=!0),(o==";"||o==":")&&t.type=="statement")u(n);else if(o=="{")p(n,e.column(),"}");else if(o=="[")p(n,e.column(),"]");else if(o=="(")p(n,e.column(),")");else if(o=="}"){for(;t.type=="statement";)t=u(n);for(t.type=="}"&&(t=u(n));t.type=="statement";)t=u(n)}else o==t.type?u(n):(t.type=="}"||t.type=="top"||t.type=="statement"&&o=="newstatement")&&p(n,e.column(),"statement");return n.startOfLine=!1,r},indent:function(e,n,t){if(e.tokenize!=c&&e.tokenize!=null)return 0;var r=e.context,a=n&&n.charAt(0);r.type=="statement"&&a=="}"&&(r=r.prev);var i=a==r.type;return r.type=="statement"?r.indented+(a=="{"?0:t.unit):r.align?r.column+(i?0:1):r.indented+(i?0:t.unit)},languageData:{indentOnInput:/^\s*[{}]$/}};export{z as t}; diff --git a/docs/assets/ecl-ChePjOI6.js b/docs/assets/ecl-ChePjOI6.js new file mode 100644 index 0000000..c34f976 --- /dev/null +++ b/docs/assets/ecl-ChePjOI6.js @@ -0,0 +1 @@ +import{t as e}from"./ecl-ByTsrrt6.js";export{e as ecl}; diff --git a/docs/assets/edge-Ci3eSGFz.js b/docs/assets/edge-Ci3eSGFz.js new file mode 100644 index 0000000..68e0f02 --- /dev/null +++ b/docs/assets/edge-Ci3eSGFz.js @@ -0,0 +1 @@ +import{t as e}from"./html-Bz1QLM72.js";import{t}from"./typescript-DAlbup0L.js";import{t as n}from"./html-derivative-CWtHbpe8.js";var a=Object.freeze(JSON.parse('{"displayName":"Edge","injections":{"text.html.edge - (meta.embedded | meta.tag | comment.block.edge), L:(text.html.edge meta.tag - (comment.block.edge | meta.embedded.block.edge)), L:(source.ts.embedded.html - (comment.block.edge | meta.embedded.block.edge))":{"patterns":[{"include":"#comment"},{"include":"#escapedMustache"},{"include":"#safeMustache"},{"include":"#mustache"},{"include":"#nonSeekableTag"},{"include":"#tag"}]}},"name":"edge","patterns":[{"include":"text.html.basic"},{"include":"text.html.derivative"}],"repository":{"comment":{"begin":"\\\\{\\\\{--","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.edge"}},"end":"--}}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.edge"}},"name":"comment.block"},"escapedMustache":{"begin":"@\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.edge"}},"end":"}}","endCaptures":{"0":{"name":"punctuation.definition.comment.end.edge"}},"name":"comment.block"},"mustache":{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.mustache.begin"}},"end":"}}","endCaptures":{"0":{"name":"punctuation.mustache.end"}},"name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]},"nonSeekableTag":{"captures":{"2":{"name":"support.function.edge"}},"match":"^(\\\\s*)((@{1,2})(!)?([.A-Z_a-z]+))(~)?$","name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]},"safeMustache":{"begin":"\\\\{\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.mustache.begin"}},"end":"}}}","endCaptures":{"0":{"name":"punctuation.mustache.end"}},"name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]},"tag":{"begin":"^(\\\\s*)((@{1,2})(!)?([.A-Z_a-z]+)(\\\\s{0,2}))(\\\\()","beginCaptures":{"2":{"name":"support.function.edge"},"7":{"name":"punctuation.paren.open"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.paren.close"}},"name":"meta.embedded.block.javascript","patterns":[{"include":"source.ts#expression"}]}},"scopeName":"text.html.edge","embeddedLangs":["typescript","html","html-derivative"]}')),m=[...t,...e,...n,a];export{m as default}; diff --git a/docs/assets/edit-page-CHi5vFR5.js b/docs/assets/edit-page-CHi5vFR5.js new file mode 100644 index 0000000..5430935 --- /dev/null +++ b/docs/assets/edit-page-CHi5vFR5.js @@ -0,0 +1,12 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./terminal-CZ_e8rW4.js","./renderShortcut-BzTDKVab.js","./dropdown-menu-BP4_BZLr.js","./Combination-D1TsGrBC.js","./useEventListener-COkmyg1v.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./react-dom-C9fstfnp.js","./jsx-runtime-DN_bIXfG.js","./menu-items-9PZrU2e0.js","./cn-C1rgT0yh.js","./clsx-D0MtrJOx.js","./dist-CBrDuocE.js","./createLucideIcon-CW2xpJ57.js","./check-CrAQug3q.js","./chevron-right-CqEd11Di.js","./kbd-Czc5z_04.js","./tooltip-CvjcEpZC.js","./utils-Czt8B2GX.js","./hotkeys-uKX61F1_.js","./useEvent-DlWF5OMa.js","./_baseIsEqual-Cz9Tt_-E.js","./_getTag-BWqNuuwU.js","./_Uint8Array-BGESiCQL.js","./invariant-C6yE60hi.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-Cg4WLWh2.js","./state-D4d80DfQ.js","./createReducer-DDa-hVe3.js","./uuid-ClFZlR7U.js","./config-CENq_7Pd.js","./constants-Bkp4R3bQ.js","./Deferred-DzyBMRsy.js","./useDebounce-em3gna-v.js","./debounce-BbFlGgjv.js","./now-6sUe0ZdD.js","./isSymbol-BGkTcW3U.js","./copy-DRhpWiOq.js","./clipboard-paste-CusmeEPf.js","./copy-gBVL4NN-.js","./trash-2-C-lF7BNB.js","./terminal-ByuMlBP_.css","./chat-panel-Chm2DqS8.js","./ai-model-dropdown-C-5PlP5A.js","./cells-CmJW_FeD.js","./preload-helper-BW0IMuFq.js","./badge-DAnNhy3O.js","./button-B8cGZzP5.js","./select-D9lTzMzP.js","./use-toast-Bzf3rpev.js","./DeferredRequestRegistry-B3BENoUa.js","./requests-C0HaHO6a.js","./useLifecycle-CmDXEyIC.js","./toString-DlRqgfqz.js","./_hasUnicode-zBEpxwYe.js","./useNonce-EAuSVK-5.js","./useTheme-BSVRc0kJ.js","./once-CTiSlR1m.js","./capabilities-BmAOeMOK.js","./dist-DKNOF5xd.js","./dist-CAcX026F.js","./dist-CI6_zMIl.js","./dist-HGZzCB0y.js","./dist-CVj-_Iiz.js","./dist-BVf1IY4_.js","./dist-Cq_4nPfh.js","./dist-RKnr9SNh.js","./dist-BuhT82Xx.js","./stex-0ac7Aukl.js","./toDate-5JckKRQn.js","./cjs-Bj40p_Np.js","./type-BdyvjzTI.js","./_arrayReduce-bZBYsK-u.js","./_baseProperty-DuoFhI7N.js","./toInteger-CDcO32Gx.js","./database-zap-CaVvnK_o.js","./main-CwSdzVhm.js","./cells-jmgGt1lS.css","./multi-map-CQd4MZr5.js","./capitalize-DQeWKRGx.js","./state-BphSR6sx.js","./spinner-C1czjtp7.js","./alert-BEdExd6A.js","./dialog-CF5DtF1E.js","./alert-dialog-jcHA5geR.js","./textarea-DzIuH-E_.js","./label-CqyOmxjL.js","./dist-D0NgYwYf.js","./input-Bkl2Yfmh.js","./numbers-C9_R_vlY.js","./useNumberFormatter-D8ks3oPN.js","./context-BAYdLMF_.js","./SSRProvider-DD7JA3RM.js","./usePress-C2LPFxyv.js","./links-DNmjkr65.js","./popover-DtnzNVk-.js","./switch-C5jvDmuG.js","./table-BatLo2vd.js","./tabs-CHiEPtZV.js","./client-SHlWC2SD.js","./errors-z7WpYca5.js","./mode-CXc0VeQq.js","./useAsyncData-Dj1oqsrZ.js","./error-banner-Cq4Yn1WZ.js","./VisuallyHidden-B0mBEsSm.js","./get-CyLJYAfP.js","./memoize-DN0TMY36.js","./circle-check-big-OIMTUpe6.js","./plug-Bp1OpH-w.js","./plus-CHesBJpY.js","./refresh-cw-Din9uFKE.js","./triangle-alert-CbD0f2J6.js","./SelectionIndicator-BtLUNjRz.js","./chat-components-BQ_d4LQG.js","./file-BnFXtaZZ.js","./play-BJDBXApx.js","./chat-display-ZS_L6G-P.js","./markdown-renderer-DjqhqmES.js","./es-BJsT6vfZ.js","./focus-KGgBDCvb.js","./LazyAnyLanguageCodeMirror-Dr2G5gxJ.js","./chunk-OGVTOU66-DQphfHw1.js","./katex-dFZM4X_7.js","./marked.esm-BZNXs5FA.js","./markdown-renderer-DdDKmWlR.css","./datasource-CCq9qyVG.js","./isEmpty-DIxUV1UR.js","./add-cell-with-ai-DEdol3w0.js","./useDeleteCell-D-55qWAK.js","./icons-9QU2Dup7.js","./useRunCells-DNnhJ0Gs.js","./cell-link-D7bPw7Fz.js","./ImperativeModal-BZvZlZQZ.js","./process-output-DN66BQYe.js","./state-B8vBQnkH.js","./blob-DtJQFQyD.js","./esm-D2_Kx6xF.js","./extends-B9D0JO9U.js","./objectWithoutPropertiesLoose-CboCOq4o.js","./empty-state-H6r25Wek.js","./copy-icon-jWsqdLn1.js","./dates-CdsE1R40.js","./en-US-DhMN8sxe.js","./isValid-DhzaK-Y1.js","./settings-MTlHVxz3.js","./square-leQTJTJJ.js","./agent-panel-DNF472QI.js","./JsonOutput-DlwRx3jE.js","./tooltip-CrRUCOBw.js","./vega-loader.browser-C8wT63Va.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./defaultLocale-DzliDDTm.js","./ErrorBoundary-C7JBxSzd.js","./MarimoErrorOutput-DAK6volb.js","./useInstallPackage-RldLPyJs.js","./command-B1zRJT1a.js","./RenderHTML-B4Nb8r0D.js","./purify.es-N-2faAGj.js","./useIframeCapabilities-CU-WWxnz.js","./formats-DtJ_484s.js","./download-C_slsU-7.js","./maps-s2pQkyf5.js","./emotion-is-prop-valid.esm-lG8j6oqk.js","./useDateFormatter-CV0QXb5P.js","./range-sshwVRcP.js","./table-BLx7B_us.js","./JsonOutput-B7vuddcd.css","./dist-vjCyCXRJ.js","./file-video-camera-CZUg-nFA.js","./rotate-ccw-CF2xzGPz.js","./agent-panel-uD4NfS9H.css","./dependency-graph-panel-DI2T4e0o.js","./name-cell-input-Dc5Oz84d.js","./name-cell-input-ujOhus_y.css","./useDependencyPanelTab-C1afckCJ.js","./useCellActionButton-DmwKwroH.js","./useSplitCell-Dfn0Ozrw.js","./multi-icon-6ulZXArq.js","./multi-icon-pwGWVz3d.css","./circle-plus-D1IRnTdM.js","./code-xml-MBUyxNtK.js","./eye-off-D9zAYqG9.js","./link-54sBkoQp.js","./common-C2MMmHt4.js","./timer-CPT_vXom.js","./src-Bp_72rVO.js","./ellipsis-vertical-CasjS3M6.js","./square-function-DxXFdbn8.js","./workflow-ZGK5flRg.js","./dependency-graph-panel-DZccg5W0.css","./session-panel-DVgM22Up.js","./column-preview-DZ--KOk1.js","./useAddCell-DveVmvs9.js","./add-database-form-0DEJX5nr.js","./write-secret-modal-BL-FoIag.js","./field-86WoveRM.js","./form-DyJ8-Zz6.js","./toggle-D-5M3JI_.js","./refresh-ccw-DbW1_PHb.js","./request-registry-CxxnIU-g.js","./_baseEach-BH6a1vAB.js","./hasIn-DydgU7lx.js","./sortBy-Bdnw8bdS.js","./_baseFlatten-CLPh0yMf.js","./_baseMap-DCtSqKLi.js","./documentation-panel-BxwnSjGK.js","./error-panel-BCy5nltz.js","./file-explorer-panel-riLtoV84.js","./icon-32x32-BLg_IoeR.js","./types-D5CL190S.js","./Inputs-BLUpxKII.js","./Inputs-CuKU-ENz.css","./links-Dh2BjF0A.js","./es-FiXEquL2.js","./prop-types-C638SUfx.js","./tree-CeX0mTvA.js","./arrow-left-DdsrQ78n.js","./download-DobaYJPt.js","./file-plus-corner-BO_uS88s.js","./save-BOTLFf-P.js","./bundle.esm-dxSncdJD.js","./logs-panel-C4-6DwM7.js","./clear-button-B9htnn2a.js","./outline-panel-Hazc5lot.js","./floating-outline-DqdzWKrn.js","./outline-panel-w43V587L.css","./packages-panel-B193htcT.js","./scratchpad-panel-Bxttzf7V.js","./loro_wasm_bg-BCxPjJ2X.js","./layout-CBI2c778.js","./readonly-python-code-Dr5fAkba.js","./esm-BranOiPJ.js","./dist-cDyKKhtR.js","./dist-CsayQVA2.js","./dist-CebZ69Am.js","./dist-BnNY29MI.js","./dist-gkLBSkCp.js","./dist-ByyW-iwc.js","./dist-Cp3Es6uA.js","./dist-ClsPkyB_.js","./dist-BZPaM2NB.js","./dist-CAJqQUSI.js","./dist-zq3bdql0.js","./dist-CQhcYtN0.js","./dist-CGGpiWda.js","./dist-BsIAU6bk.js","./apl-C1zdcQvI.js","./asciiarmor-B--OGpM1.js","./asn1-D2UnMTL5.js","./brainfuck-DrjMyC8V.js","./clike-CCdVFz-6.js","./clojure-BjmTMymc.js","./cmake-CgqRscDS.js","./cobol-DZNhVUeB.js","./coffeescript-Qp7k0WHA.js","./commonlisp-De6q7_JS.js","./crystal-BGXRJSF-.js","./css-CNKF6pC6.js","./cypher-BUDAQ7Fk.js","./d-BIAtzqpc.js","./diff-aadYO3ro.js","./dtd-uNeIl1u0.js","./dylan-CrZBaY0F.js","./ecl-ByTsrrt6.js","./eiffel-DRhIEZQi.js","./elm-BBPeNBgT.js","./erlang-EMEOk6kj.js","./factor-D7Lm0c37.js","./simple-mode-B3UD3n_i.js","./forth-BdKkHzwH.js","./fortran-DxGNM9Kj.js","./gas-hf-H6Zc4.js","./gherkin-D1O_VlrS.js","./groovy-Budmgm6I.js","./haskell-CDrggYs0.js","./haxe-CPnBkTzf.js","./idl-BTZd0S94.js","./javascript-Czx24F5X.js","./julia-OeEN0FvJ.js","./livescript-DLmsZIyI.js","./lua-BM3BXoTQ.js","./mathematica-BbPQ8-Rw.js","./mbox-D2_16jOO.js","./mirc-CzS_wutP.js","./mllike-D9b50pH5.js","./modelica-C8E83p8w.js","./mscgen-Dk-3wFOB.js","./mumps-BRQASZoy.js","./nsis-C5Oj2cBc.js","./ntriples-D6VU4eew.js","./octave-xff1drIF.js","./oz-CRz8coQc.js","./pascal-DZhgfws7.js","./perl-BKXEkch3.js","./pig-rvFhLOOE.js","./powershell-Db7zgjV-.js","./properties-BF6anRzc.js","./protobuf-De4giNfG.js","./pug-CzQlD5xP.js","./puppet-CMgcPW4L.js","./python-DOZzlkV_.js","./q-8XMigH-s.js","./r-BuEncdBJ.js","./rpm-DnfrioeJ.js","./ruby-C9f8lbWZ.js","./sas-TQvbwzLU.js","./scheme-DCJ8_Fy0.js","./shell-D8pt0LM7.js","./sieve-DGXZ82l_.js","./smalltalk-DyRmt5Ka.js","./sparql-CLILkzHY.js","./stylus-BCmjnwMM.js","./swift-BkcVjmPv.js","./tcl-B3wbfJh2.js","./textile-D12VShq0.js","./toml-XXoBgyAV.js","./troff-D9lX0BP4.js","./ttcn-cfg-pqnJIxH9.js","./ttcn-DQ5upjvU.js","./turtle-BUVCUZMx.js","./vb-CgKmZtlp.js","./vbscript-mB-oVfPH.js","./velocity-CrvX3BFT.js","./verilog-C0Wzs7-f.js","./vhdl-s8UGv0A3.js","./webidl-GTmlnawS.js","./xquery-Bq3_mXJv.js","./yacas-B1P8UzPS.js","./z80-C8FzIVqi.js","./ellipsis-DwHM80y-.js","./trash-BUTJdkWl.js","./layout-BjXzDXoG.css","./cell-editor-BaPoX5lw.js","./hooks-DjduWDUD.js","./useInterval-DPyGJkQD.js","./globals-DPW2B3A9.js","./circle-check-Cr0N4h9T.js","./ws-Sb1KIggW.js","./cell-editor-Iey559K_.css","./kiosk-mode-CQH06LFg.js","./react-resizable-panels.browser.esm-B7ZqbY8M.js","./secrets-panel-CaBDi8LW.js","./snippets-panel--0uDwhrb.js","./snippets-panel-fg1cdAzn.css","./tracing-panel-C9hGUzPk.js","./cache-panel-BljwLE9L.js","./requests-bNszE-ju.js","./command-palette-DmYvtSUz.js","./useNotebookActions-DaM9w6Je.js","./types-DBNA0l6L.js","./share-CXQVxivL.js","./youtube-BJQRl2JC.js","./house-CncUa_LL.js"])))=>i.map(i=>d[i]); +var Jh=Object.defineProperty;var Qh=(Je,Qe,Et)=>Qe in Je?Jh(Je,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Je[Qe]=Et;var Wl=(Je,Qe,Et)=>Qh(Je,typeof Qe!="symbol"?Qe+"":Qe,Et);import{s as Ul}from"./chunk-LvLJmgfZ.js";import{a as ef,d as xt,f as ql,i as bt,l as mr,n as ke,p as Ea,s as tf,t as rf,u as J}from"./useEvent-DlWF5OMa.js";import{t as nf}from"./react-BGmjiNul.js";import{$ as af,C as of,Ct as an,En as lf,Gn as Xl,Hn as Ca,Hr as sf,Jn as Gl,M as on,N as uf,O as cf,Or as df,P as pf,Q as mf,Qt as gf,S as hf,Sr as Yl,T as ln,Tn as ff,Tt as xf,Wn as bf,X as Zl,Y as Sa,Yn as Ta,Zn as _a,Zr as yf,_ as vf,_n as Df,a as kf,at as jf,b as wf,c as Ef,cn as Ia,dn as Jl,et as Ql,f as es,fn as ts,h as Cf,hn as Sf,ii as Tf,k as rs,ln as sn,m as un,on as ns,pn as cn,r as Na,s as _f,si as If,t as Nf,tt as zf,u as dn,un as za,v as $f,w as qe,xr as Af,y as $a,zt as as,__tla as Bf}from"./cells-CmJW_FeD.js";import{t as os}from"./react-dom-C9fstfnp.js";import{I as Pf,P as is,R as ls,V as Kf}from"./zod-Cg4WLWh2.js";import{t as U}from"./compiler-runtime-DeeZ7FnK.js";import{i as ss,t as us}from"./useLifecycle-CmDXEyIC.js";import{a as Of}from"./type-BdyvjzTI.js";import{t as Rf}from"./debounce-BbFlGgjv.js";import"./tooltip-CrRUCOBw.js";import{C as gr,D as Mf,E as cs,S as pn,_ as Ff,a as Aa,b as hr,c as ds,ct as Vf,d as Lf,f as Hf,g as ps,h as Wf,i as Uf,l as mn,m as fr,n as Zt,o as Jt,p as Ba,r as Pa,s as nt,st as qf,t as gn,u as Ka,v as lt,w as Xf,x as hn,y as xr}from"./utilities.esm-CqQATX3k.js";import{a as Gf,c as ms,i as Yf,o as Zf,r as Jf}from"./client-SHlWC2SD.js";import{d as Me,f as br}from"./hotkeys-uKX61F1_.js";import{t as fn}from"./invariant-C6yE60hi.js";import{D as Qf,E as e0,S as t0,_ as r0,n as n0,p as a0,r as gs,v as o0,y as Oa}from"./utils-Czt8B2GX.js";import{n as Ra,r as i0,t as Ma}from"./constants-Bkp4R3bQ.js";import{A as hs,C as fs,D as l0,E as xs,S as Fa,T as s0,a as bs,b as u0,g as xn,j as yr,o as c0,s as d0,v as p0,w as Qt,x as Xe,y as bn}from"./config-CENq_7Pd.js";import{n as Ee,t as ys}from"./switch-C5jvDmuG.js";import{n as m0}from"./globals-DPW2B3A9.js";import{t as vs}from"./ErrorBoundary-C7JBxSzd.js";import{t as g0}from"./useEventListener-COkmyg1v.js";import{t as h0}from"./jsx-runtime-DN_bIXfG.js";import{i as f0,r as Va,t as ae}from"./button-B8cGZzP5.js";import{n as yn}from"./clsx-D0MtrJOx.js";import{n as x0,t as Z}from"./cn-C1rgT0yh.js";import{at as b0,zt as La}from"./dist-CAcX026F.js";import{n as y0}from"./dist-CI6_zMIl.js";import{E as vn,Q as v0,_ as Ds,f as ks,g as D0,h as k0,m as js,n as Ha,p as j0,__tla as w0}from"./JsonOutput-DlwRx3jE.js";import{r as E0,u as C0}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import{c as S0,l as T0,o as _0}from"./dist-DKNOF5xd.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as at,t as I0}from"./requests-C0HaHO6a.js";import{t as Re}from"./createLucideIcon-CW2xpJ57.js";import{c as N0,d as ws,l as Wa,__tla as z0}from"./layout-CBI2c778.js";import{t as $0}from"./arrow-left-DdsrQ78n.js";import{a as A0,n as B0,r as P0,t as K0}from"./useDependencyPanelTab-C1afckCJ.js";import{_ as Ua,a as O0,i as R0,r as M0,t as F0,y as Es}from"./add-cell-with-ai-DEdol3w0.js";import{r as V0,t as L0}from"./CellStatus-D1YyNsC9.js";import{a as H0,o as W0,r as U0,t as q0}from"./useBoolean-GvygmcM1.js";import{t as X0}from"./check-CrAQug3q.js";import{_ as er,g as qa,h as Ge,l as Xa}from"./select-D9lTzMzP.js";import{d as G0}from"./download-C_slsU-7.js";import{t as Ga}from"./chevron-right-CqEd11Di.js";import{f as Y0}from"./maps-s2pQkyf5.js";import{a as Z0,i as tr,n as J0,o as Q0,r as rr,s as ex,t as tx}from"./useCellActionButton-DmwKwroH.js";import{d as rx,l as Ya}from"./markdown-renderer-DjqhqmES.js";import{t as Cs}from"./circle-check-Cr0N4h9T.js";import{a as nx,c as ax,i as ox,l as ix,n as lx,o as sx,r as ux,s as cx,t as dx,u as px}from"./useNotebookActions-DaM9w6Je.js";import{u as Ss}from"./toDate-5JckKRQn.js";import{P as mx,a as yt,c as vt,d as gx,f as hx,n as Ts,o as fx,p as Dt,r as kt,s as xx,t as jt,u as bx}from"./dropdown-menu-BP4_BZLr.js";import{t as yx}from"./clipboard-paste-CusmeEPf.js";import{t as vx}from"./code-xml-MBUyxNtK.js";import{t as Dx}from"./copy-gBVL4NN-.js";import{A as kx,C as jx,D as _s,E as wx,M as Ex,N as Cx,O as Sx,P as Tx,S as _x,T as Ix,_ as Nx,b as zx,g as $x,h as Ax,i as Bx,j as Px,k as Kx,m as Dn,n as Is,o as Za,p as Ns,u as Ox,v as Rx,w as Mx,x as zs,y as Ja}from"./state-BphSR6sx.js";import{t as Qa}from"./ellipsis-DwHM80y-.js";import{t as Fx}from"./eye-off-D9zAYqG9.js";import{_ as Vx,a as eo,c as Lx,d as Hx,f as $s,g as Wx,h as Ux,i as qx,l as Xx,m as vr,n as As,o as Gx,p as Yx,r as Zx,s as Bs,t as Ps,u as Jx,v as to,__tla as Qx}from"./cell-editor-BaPoX5lw.js";import{a as e1,c as Ks,d as t1,i as r1,l as n1,n as a1,o as o1,r as Os,s as Rs,t as i1,u as l1}from"./panels-wPsRwJLC.js";import{n as s1,t as Dr}from"./play-BJDBXApx.js";import{n as u1,t as kn}from"./spinner-C1czjtp7.js";import{t as ro}from"./plus-CHesBJpY.js";import{n as c1,r as jn,t as d1}from"./app-config-button-r0SnKeQv.js";import{t as p1}from"./refresh-ccw-DbW1_PHb.js";import{t as m1}from"./rotate-ccw-CF2xzGPz.js";import{$ as g1,B as h1,J as Ms,M as f1,N as Fs,P as x1,R as b1,V as Vs,W as wn,X as nr,Y as no,Z as y1,ct as st,h as v1,j as D1,lt as k1,ot as Ls,q as En,r as ao,z as Cn}from"./input-Bkl2Yfmh.js";import{a as Sn,n as Hs}from"./state-B8vBQnkH.js";import{t as j1}from"./square-function-DxXFdbn8.js";import{a as w1,c as E1,d as C1,g as S1,i as T1,l as _1,p as I1,y as N1}from"./textarea-DzIuH-E_.js";import{t as Ws}from"./square-leQTJTJJ.js";import{t as Us}from"./trash-2-C-lF7BNB.js";import{t as Tn}from"./triangle-alert-CbD0f2J6.js";import{t as Te}from"./preload-helper-BW0IMuFq.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{t as kr}from"./use-toast-Bzf3rpev.js";import{r as z1}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{i as oo,s as _n,t as Q}from"./tooltip-CvjcEpZC.js";import{o as $1}from"./menu-items-9PZrU2e0.js";import"./dates-CdsE1R40.js";import{a as A1,r as B1}from"./mode-CXc0VeQq.js";import{a as P1,c as K1,n as O1,r as R1}from"./dialog-CF5DtF1E.js";import{_ as M1,i as In,m as F1,o as V1,p as L1,s as H1,u as io}from"./VisuallyHidden-B0mBEsSm.js";import{C as qs,E as W1,F as U1,I as Xs,L as Nn,O as Ye,R as jr,S as q1,d as Gs,h as X1,p as G1,u as Ys,x as Zs,z as lo}from"./usePress-C2LPFxyv.js";import{t as zn}from"./context-BAYdLMF_.js";import{t as $n}from"./useNumberFormatter-D8ks3oPN.js";import{i as Y1,r as Z1,t as J1}from"./popover-DtnzNVk-.js";import{n as Q1,t as eb}from"./SelectionIndicator-BtLUNjRz.js";import{n as tb}from"./ImperativeModal-BZvZlZQZ.js";import"./share-CXQVxivL.js";import{r as rb}from"./errors-z7WpYca5.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as nb}from"./copy-DRhpWiOq.js";import{t as ab}from"./RenderHTML-B4Nb8r0D.js";import"./purify.es-N-2faAGj.js";import{a as Js,i as so,o as ob,r as ib}from"./useRunCells-DNnhJ0Gs.js";import{t as lb}from"./kbd-Czc5z_04.js";import{t as Qs}from"./links-DNmjkr65.js";import{a as sb,i as ub,o as cb,t as db}from"./cell-link-D7bPw7Fz.js";import{t as wt}from"./error-banner-Cq4Yn1WZ.js";import{i as An,r as eu,t as tu}from"./tabs-CHiEPtZV.js";import{n as uo}from"./useAsyncData-Dj1oqsrZ.js";import{__tla as pb}from"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import{r as Bn}from"./es-BJsT6vfZ.js";import{a as Ze,i as mb,n as gb,r as co,t as hb}from"./renderShortcut-BzTDKVab.js";import{n as ru,r as fb,t as nu}from"./useDeleteCell-D-55qWAK.js";import"./esm-D2_Kx6xF.js";import{n as xb,t as bb}from"./icons-9QU2Dup7.js";import{n as au,r as ou,t as Pn}from"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import{t as po}from"./toggle-D-5M3JI_.js";import{t as yb}from"./floating-outline-DqdzWKrn.js";import"./name-cell-input-Dc5Oz84d.js";import"./multi-icon-6ulZXArq.js";import{t as ut}from"./Inputs-BLUpxKII.js";import{__tla as vb}from"./loro_wasm_bg-BCxPjJ2X.js";import"./ws-Sb1KIggW.js";import{t as iu}from"./useInterval-DPyGJkQD.js";import"./dist-cDyKKhtR.js";import"./dist-CsayQVA2.js";import"./dist-CebZ69Am.js";import"./dist-gkLBSkCp.js";import"./dist-ClsPkyB_.js";import"./dist-BZPaM2NB.js";import"./dist-CAJqQUSI.js";import"./dist-CGGpiWda.js";import"./dist-BsIAU6bk.js";import"./esm-BranOiPJ.js";import{n as Db,r as lu,t as su}from"./kiosk-mode-CQH06LFg.js";let uu,kb=Promise.all([(()=>{try{return Bf}catch{}})(),(()=>{try{return w0}catch{}})(),(()=>{try{return z0}catch{}})(),(()=>{try{return Qx}catch{}})(),(()=>{try{return pb}catch{}})(),(()=>{try{return vb}catch{}})()]).then(async()=>{var Je=Re("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),Qe=Re("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Et=Re("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),cu=Re("memory-stick",[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]]),du=Re("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),pu=Re("microchip",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 17h4",key:"pvmtpo"}],["path",{d:"M10 7h4",key:"1vgcok"}],["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 18h2",key:"4scel"}],["path",{d:"M18 6h2",key:"1ptzki"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 18h2",key:"1xrofg"}],["path",{d:"M4 6h2",key:"1cx33n"}],["rect",{x:"6",y:"2",width:"12",height:"20",rx:"2",key:"749fme"}]]),mu=Re("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),gu=Re("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),mo=Re("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),hu=Re("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),fu=Re("square-code",[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),xu=Re("square-m",[["path",{d:"M8 16V8.5a.5.5 0 0 1 .9-.3l2.7 3.599a.5.5 0 0 0 .8 0l2.7-3.6a.5.5 0 0 1 .9.3V16",key:"1ywlsj"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),bu=Re("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),yu=Re("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),Kn=new WeakMap;function vu(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function Du(t,e){let r=Kn.get(t);if(!r)throw Error("Unknown list");return`${r.id}-option-${vu(e)}`}function ku(t,e,r){let n=st(t,{labelable:!0}),a=t.selectionBehavior||"toggle",i=t.linkBehavior||(a==="replace"?"action":"override");a==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Kx({...t,ref:r,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=x1({onFocusWithin:t.onFocus,onBlurWithin:t.onBlur,onFocusWithinChange:t.onFocusChange}),c=Nn(t.id);Kn.set(e,{id:c,shouldUseVirtualFocus:t.shouldUseVirtualFocus,shouldSelectOnPressUp:t.shouldSelectOnPressUp,shouldFocusOnHover:t.shouldFocusOnHover,isVirtualized:t.isVirtualized,onAction:t.onAction,linkBehavior:i,UNSTABLE_itemBehavior:t.UNSTABLE_itemBehavior});let{labelProps:u,fieldProps:p}=D1({...t,id:c,labelElementType:"span"});return{labelProps:u,listBoxProps:Ye(n,s,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Ye(p,l)})}}var go=new WeakMap;function ju(t){let e=go.get(t);if(e!=null)return e;let r=0,n=a=>{for(let i of a)i.type==="section"?n(_s(i,t)):i.type==="item"&&r++};return n(t),go.set(t,r),r}function wu(t,e,r){var _,E;let{key:n}=t,a=Kn.get(e),i=t.isDisabled??e.selectionManager.isDisabled(n),l=t.isSelected??e.selectionManager.isSelected(n),s=t.shouldSelectOnPressUp??(a==null?void 0:a.shouldSelectOnPressUp),c=t.shouldFocusOnHover??(a==null?void 0:a.shouldFocusOnHover),u=t.shouldUseVirtualFocus??(a==null?void 0:a.shouldUseVirtualFocus),p=t.isVirtualized??(a==null?void 0:a.isVirtualized),d=Xs(),m=Xs(),g={role:"option","aria-disabled":i||void 0,"aria-selected":e.selectionManager.selectionMode==="none"?void 0:l};qs()&&Zs()||(g["aria-label"]=t["aria-label"],g["aria-labelledby"]=d,g["aria-describedby"]=m);let f=e.collection.getItem(n);if(p){let T=Number(f==null?void 0:f.index);g["aria-posinset"]=Number.isNaN(T)?void 0:T+1,g["aria-setsize"]=ju(e.collection)}let b=a!=null&&a.onAction?()=>{var T;return(T=a==null?void 0:a.onAction)==null?void 0:T.call(a,n)}:void 0,h=Du(e,n),{itemProps:y,isPressed:k,isFocused:x,hasAction:D,allowsSelection:j}=Px({selectionManager:e.selectionManager,key:n,ref:r,shouldSelectOnPressUp:s,allowsDifferentPressOrigin:s&&c,isVirtualized:p,shouldUseVirtualFocus:u,isDisabled:i,onAction:b||f!=null&&((_=f.props)!=null&&_.onAction)?U1((E=f==null?void 0:f.props)==null?void 0:E.onAction,b):void 0,linkBehavior:a==null?void 0:a.linkBehavior,UNSTABLE_itemBehavior:a==null?void 0:a.UNSTABLE_itemBehavior,id:h}),{hoverProps:w}=Fs({isDisabled:i||!c,onHoverStart(){Vs()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(n))}}),C=st(f==null?void 0:f.props);delete C.id;let S=X1(f==null?void 0:f.props);return{optionProps:{...g,...Ye(C,y,w,S),id:h},labelProps:{id:d},descriptionProps:{id:m},isFocused:x,isFocusVisible:x&&e.selectionManager.isFocused&&Vs(),isSelected:l,isDisabled:i,isPressed:k,allowsSelection:j,hasAction:D}}function Eu(t){let{heading:e,"aria-label":r}=t,n=Nn();return{itemProps:{role:"presentation"},headingProps:e?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":e?n:void 0}}}var v=Ul(nf(),1);function Cu(t,e){let{"aria-label":r,"aria-labelledby":n,orientation:a="horizontal"}=t,[i,l]=(0,v.useState)(!1);lo(()=>{var f;l(!!(e.current&&((f=e.current.parentElement)!=null&&f.closest('[role="toolbar"]'))))});let{direction:s}=zn(),c=s==="rtl"&&a==="horizontal",u=V1(e),p=f=>{if(f.currentTarget.contains(f.target)){if(a==="horizontal"&&f.key==="ArrowRight"||a==="vertical"&&f.key==="ArrowDown")c?u.focusPrevious():u.focusNext();else if(a==="horizontal"&&f.key==="ArrowLeft"||a==="vertical"&&f.key==="ArrowUp")c?u.focusNext():u.focusPrevious();else if(f.key==="Tab"){f.stopPropagation(),d.current=document.activeElement,f.shiftKey?u.focusFirst():u.focusLast();return}else return;f.stopPropagation(),f.preventDefault()}},d=(0,v.useRef)(null),m=f=>{!f.currentTarget.contains(f.relatedTarget)&&!d.current&&(d.current=f.target)},g=f=>{var h;if(d.current&&!f.currentTarget.contains(f.relatedTarget)&&((h=e.current)!=null&&h.contains(f.target))){var b;(b=d.current)==null||b.focus(),d.current=null}};return{toolbarProps:{...st(t,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":a,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:p,onFocusCapture:i?void 0:g,onBlurCapture:i?void 0:m}}}var me=(function(t){return t[t.none=0]="none",t[t.cancel=0]="cancel",t[t.move=1]="move",t[t.copy=2]="copy",t[t.link=4]="link",t[t.all=7]="all",t})({}),ho={...me,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},fo=xo(ho);fo[7]="all";var ar={none:"cancel",link:"link",copy:"copy",move:"move"},On=xo(ar);function xo(t){let e={};for(let r in t)e[t[r]]=r;return e}var Su=new Set(["text/plain","text/uri-list","text/html"]),bo="application/vnd.react-aria.items+json",Tu="application/octet-stream",Rn=new WeakMap,yo=Symbol();function _u(t){let{id:e}=Rn.get(t)||{};if(!e)throw Error("Droppable item outside a droppable collection");return e}function Iu(t){let{ref:e}=Rn.get(t)||{};if(!e)throw Error("Droppable item outside a droppable collection");return e}function ct(t){let e=new Set;for(let r of t)for(let n of Object.keys(r))e.add(n);return e}function vo(t){return t||(t="virtual"),t==="pointer"&&(t="virtual"),t==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(t="touch"),t}function Mn(){return vo(h1())}function Do(){return vo(b1())}function Nu(t,e){let r=new Map,n=!1,a=[];for(let i of e){let l=Object.keys(i);l.length>1&&(n=!0);let s={};for(let c of l){let u=r.get(c);u?n=!0:(u=[],r.set(c,u));let p=i[c];s[c]=p,u.push(p)}a.push(s)}for(let[i,l]of r)if(Su.has(i)){let s=l.join(` +`);t.items.add(s,i)}else t.items.add(l[0],i);if(n){let i=JSON.stringify(a);t.items.add(i,bo)}}var wr=class{has(t){return this.includesUnknownTypes||t===yo&&this.types.has("application/octet-stream")?!0:typeof t=="string"&&this.types.has(t)}constructor(t){this.types=new Set;let e=!1;for(let r of t.items)r.type!=="application/vnd.react-aria.items+json"&&(r.kind==="file"&&(e=!0),r.type?this.types.add(r.type):this.types.add(Tu));this.includesUnknownTypes=!e&&t.types.includes("Files")}};function zu(t){let e=[];if(!t)return e;let r=!1;if(t.types.includes("application/vnd.react-aria.items+json"))try{let n=t.getData(bo),a=JSON.parse(n);for(let i of a)e.push({kind:"text",types:new Set(Object.keys(i)),getText:l=>Promise.resolve(i[l])});r=!0}catch{}if(!r){let n=new Map;for(let a of t.items)if(a.kind==="string")n.set(a.type||"application/octet-stream",t.getData(a.type));else if(a.kind==="file")if(typeof a.webkitGetAsEntry=="function"){let i=a.webkitGetAsEntry();if(!i)continue;i.isFile?e.push(Fn(a.getAsFile())):i.isDirectory&&e.push(ko(i))}else e.push(Fn(a.getAsFile()));n.size>0&&e.push({kind:"text",types:new Set(n.keys()),getText:a=>Promise.resolve(n.get(a))})}return e}function $u(t){return typeof t.text=="function"?t.text():new Promise((e,r)=>{let n=new FileReader;n.onload=()=>{e(n.result)},n.onerror=r,n.readAsText(t)})}function Fn(t){if(!t)throw Error("No file provided");return{kind:"file",type:t.type||"application/octet-stream",name:t.name,getText:()=>$u(t),getFile:()=>Promise.resolve(t)}}function ko(t){return{kind:"directory",name:t.name,getEntries:()=>Au(t)}}async function*Au(t){let e=t.createReader(),r;do{r=await new Promise((n,a)=>{e.readEntries(n,a)});for(let n of r)n.isFile?yield Fn(await Bu(n)):n.isDirectory&&(yield ko(n))}while(r.length>0)}function Bu(t){return new Promise((e,r)=>t.file(e,r))}var xe={draggingKeys:new Set};function Pu(t){xe.draggingCollectionRef=t}function Ku(t){xe.draggingKeys=t}function Ct(t){xe.dropCollectionRef=t}function jo(){xe={draggingKeys:new Set}}function Ou(t){xe=t}function Le(t){let{draggingCollectionRef:e,dropCollectionRef:r}=xe;return(e==null?void 0:e.current)!=null&&e.current===((t==null?void 0:t.current)||(r==null?void 0:r.current))}var Er;function Cr(t){Er=t}var Vn=me.none;function Ln(t){Vn=t}var Hn=new Map,or=new Map,ze=null,Sr=new Set;function wo(t){return Hn.set(t.element,t),ze==null||ze.updateValidDropTargets(),()=>{Hn.delete(t.element),ze==null||ze.updateValidDropTargets()}}function Ru(t){return or.set(t.element,t),()=>{or.delete(t.element)}}function Mu(t,e){if(ze)throw Error("Cannot begin dragging while already dragging");ze=new Wu(t,e),requestAnimationFrame(()=>{ze&&(ze.setup(),Do()==="keyboard"&&ze.next())});for(let r of Sr)r()}function Wn(){let[t,e]=(0,v.useState)(ze);return(0,v.useEffect)(()=>{let r=()=>e(ze);return Sr.add(r),()=>{Sr.delete(r)}},[]),t}function Fu(){return!!ze}function Vu(){ze=null;for(let t of Sr)t()}var Eo=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],Lu=["pointerup","mouseup","touchend"],Hu={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"},Wu=class{setup(){document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("keyup",this.onKeyUp,!0),window.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur,!0),document.addEventListener("click",this.onClick,!0),document.addEventListener("pointerdown",this.onPointerDown,!0);for(let t of Eo)document.addEventListener(t,this.cancelEvent,!0);this.mutationObserver=new MutationObserver(()=>this.updateValidDropTargets()),this.updateValidDropTargets(),En(this.stringFormatter.format(Hu[Do()]))}teardown(){var t,e,r;document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("keyup",this.onKeyUp,!0),window.removeEventListener("focus",this.onFocus,!0),window.removeEventListener("blur",this.onBlur,!0),document.removeEventListener("click",this.onClick,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);for(let n of Eo)document.removeEventListener(n,this.cancelEvent,!0);(t=this.mutationObserver)==null||t.disconnect(),(e=(r=this).restoreAriaHidden)==null||e.call(r)}onKeyDown(t){var e;if(this.cancelEvent(t),t.key==="Escape"){this.cancel();return}t.key==="Tab"&&!(t.metaKey||t.altKey||t.ctrlKey)&&(t.shiftKey?this.previous():this.next()),typeof((e=this.currentDropTarget)==null?void 0:e.onKeyDown)=="function"&&this.currentDropTarget.onKeyDown(t,this.dragTarget)}onKeyUp(t){var e;this.cancelEvent(t),t.key==="Enter"&&(t.altKey||(e=this.getCurrentActivateButton())!=null&&e.contains(t.target)?this.activate(this.currentDropTarget,this.currentDropItem):this.drop())}getCurrentActivateButton(){var t,e,r,n;return((e=(t=this.currentDropItem)==null?void 0:t.activateButtonRef)==null?void 0:e.current)??((n=(r=this.currentDropTarget)==null?void 0:r.activateButtonRef)==null?void 0:n.current)??null}onFocus(t){let e=this.getCurrentActivateButton();if(t.target===e){this.cancelEvent(t);return}if(t.target!==this.dragTarget.element&&this.cancelEvent(t),!(t.target instanceof HTMLElement)||t.target===this.dragTarget.element)return;let r=this.validDropTargets.find(a=>a.element===t.target)||this.validDropTargets.find(a=>a.element.contains(t.target));if(!r){this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus();return}let n=or.get(t.target);r&&this.setCurrentDropTarget(r,n)}onBlur(t){let e=this.getCurrentActivateButton();if(t.relatedTarget===e){this.cancelEvent(t);return}t.target!==this.dragTarget.element&&this.cancelEvent(t),(!t.relatedTarget||!(t.relatedTarget instanceof HTMLElement))&&(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus())}onClick(t){var e,r,n;if(this.cancelEvent(t),Gs(t)||this.isVirtualClick){let a=[...or.values()].find(l=>{var s,c;return l.element===t.target||((c=(s=l.activateButtonRef)==null?void 0:s.current)==null?void 0:c.contains(t.target))}),i=this.validDropTargets.find(l=>l.element.contains(t.target));if((n=((e=a==null?void 0:a.activateButtonRef)==null?void 0:e.current)??((r=i==null?void 0:i.activateButtonRef)==null?void 0:r.current))!=null&&n.contains(t.target)&&i){this.activate(i,a);return}if(t.target===this.dragTarget.element){this.cancel();return}i&&(this.setCurrentDropTarget(i,a),this.drop(a))}}onPointerDown(t){this.cancelEvent(t),this.isVirtualClick=Ys(t)}cancelEvent(t){var e;(t.type==="focusin"||t.type==="focusout")&&(t.target===((e=this.dragTarget)==null?void 0:e.element)||t.target===this.getCurrentActivateButton())||(Lu.includes(t.type)||t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=Uu(this.dragTarget),this.validDropTargets.length>0){let n=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(n),...this.validDropTargets.slice(0,n)]}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let t=ct(this.dragTarget.items),e=[...or.values()].filter(n=>typeof n.getDropOperation=="function"?n.getDropOperation(t,this.dragTarget.allowedDropOperations)!=="cancel":!0),r=this.validDropTargets.filter(n=>!e.some(a=>n.element.contains(a.element)));this.restoreAriaHidden=H0([this.dragTarget.element,...e.flatMap(n=>{var a,i;return(a=n.activateButtonRef)!=null&&a.current?[n.element,(i=n.activateButtonRef)==null?void 0:i.current]:[n.element]}),...r.flatMap(n=>{var a,i;return(a=n.activateButtonRef)!=null&&a.current?[n.element,(i=n.activateButtonRef)==null?void 0:i.current]:[n.element]})],{shouldUseInert:!0}),this.mutationObserver.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["aria-hidden","inert"]})}next(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[0]);return}let t=this.validDropTargets.indexOf(this.currentDropTarget);if(t<0){this.setCurrentDropTarget(this.validDropTargets[0]);return}t===this.validDropTargets.length-1?this.dragTarget.element.closest('[aria-hidden="true"], [inert]')?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[t+1])}previous(){if(!this.currentDropTarget){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}let t=this.validDropTargets.indexOf(this.currentDropTarget);if(t<0){this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);return}t===0?this.dragTarget.element.closest('[aria-hidden="true"], [inert]')?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[t-1])}findNearestDropTarget(){let t=this.dragTarget.element.getBoundingClientRect(),e=1/0,r=-1;for(let n=0;n({kind:"text",types:new Set(Object.keys(n)),getText:a=>Promise.resolve(n[a])})),r=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:"drop",x:r.left+r.width/2,y:r.top+r.height/2,items:e,dropOperation:this.dropOperation},(t==null?void 0:t.target)??null)}this.end(),En(this.stringFormatter.format("dropComplete"))}activate(t,e){if(t&&typeof t.onDropActivate=="function"){let r=(e==null?void 0:e.target)??null,n=t.element.getBoundingClientRect();t.onDropActivate({type:"dropactivate",x:n.left+n.width/2,y:n.top+n.height/2},r)}}constructor(t,e){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=t,this.stringFormatter=e,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}};function Uu(t){let e=ct(t.items);return[...Hn.values()].filter(r=>r.element.closest('[aria-hidden="true"], [inert]')?!1:typeof r.getDropOperation=="function"?r.getDropOperation(e,t.allowedDropOperations)!=="cancel":!0)}var Co={};Co={dragDescriptionKeyboard:"\u0627\u0636\u063A\u0637 Enter \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionKeyboardAlt:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + Enter \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionLongPress:"\u0627\u0636\u063A\u0637 \u0628\u0627\u0633\u062A\u0645\u0631\u0627\u0631 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionTouch:"\u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragDescriptionVirtual:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0627\u0644\u0633\u062D\u0628.",dragItem:t=>`\u0627\u0633\u062D\u0628 ${t.itemText}`,dragSelectedItems:(t,e)=>`\u0627\u0633\u062D\u0628 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`,other:()=>`${e.number(t.count)} \u0639\u0646\u0627\u0635\u0631 \u0645\u062D\u062F\u062F\u0629`})}`,dragSelectedKeyboard:(t,e)=>`\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Enter \u0644\u0644\u0633\u062D\u0628 ${e.plural(t.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragSelectedKeyboardAlt:(t,e)=>`\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D\u064A Alt + Enter \u0644\u0644\u0633\u062D\u0628 ${e.plural(t.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragSelectedLongPress:(t,e)=>`\u0627\u0636\u063A\u0637 \u0628\u0627\u0633\u062A\u0645\u0631\u0627\u0631 \u0644\u0644\u0633\u062D\u0628 ${e.plural(t.count,{one:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629",other:"\u0639\u062F\u062F \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629"})}.`,dragStartedKeyboard:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 Tab \u0644\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0645\u0648\u0636\u0639 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u0623\u0648 \u0627\u0636\u063A\u0637 Escape \u0644\u0644\u0625\u0644\u063A\u0627\u0621.",dragStartedTouch:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0645\u0648\u0636\u0639 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dragStartedVirtual:"\u0628\u062F\u0623 \u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0645\u0643\u0627\u0646 \u0627\u0644\u0625\u0641\u0644\u0627\u062A\u060C \u062B\u0645 \u0627\u0646\u0642\u0631 \u0623\u0648 \u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropCanceled:"\u062A\u0645 \u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0625\u0641\u0644\u0627\u062A.",dropComplete:"\u0627\u0643\u062A\u0645\u0644 \u0627\u0644\u0625\u0641\u0644\u0627\u062A.",dropDescriptionKeyboard:"\u0627\u0636\u063A\u0637 Enter \u0644\u0644\u0625\u0641\u0644\u0627\u062A. \u0627\u0636\u063A\u0637 Escape \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",dropDescriptionTouch:"\u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropDescriptionVirtual:"\u0627\u0646\u0642\u0631 \u0644\u0644\u0625\u0641\u0644\u0627\u062A.",dropIndicator:"\u0645\u0624\u0634\u0631 \u0627\u0644\u0625\u0641\u0644\u0627\u062A",dropOnItem:t=>`\u0625\u0641\u0644\u0627\u062A ${t.itemText}`,dropOnRoot:"\u0627\u0644\u0625\u0641\u0644\u0627\u062A",endDragKeyboard:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 Enter \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",endDragTouch:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0636\u063A\u0637 \u0645\u0631\u062A\u064A\u0646 \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",endDragVirtual:"\u0627\u0644\u0633\u062D\u0628. \u0627\u0646\u0642\u0631 \u0644\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0633\u062D\u0628.",insertAfter:t=>`\u0623\u062F\u062E\u0644 \u0628\u0639\u062F ${t.itemText}`,insertBefore:t=>`\u0623\u062F\u062E\u0644 \u0642\u0628\u0644 ${t.itemText}`,insertBetween:t=>`\u0623\u062F\u062E\u0644 \u0628\u064A\u0646 ${t.beforeItemText} \u0648 ${t.afterItemText}`};var So={};So={dragDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt + Enter, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionLongPress:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragDescriptionVirtual:"\u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u0442\u0435.",dragItem:t=>`\u041F\u043B\u044A\u0437\u043D\u0438 ${t.itemText}`,dragSelectedItems:(t,e)=>`\u041F\u043B\u044A\u0437\u043D\u0438 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430`})}`,dragSelectedKeyboard:(t,e)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Enter, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragSelectedKeyboardAlt:(t,e)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt \u0438 Enter, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragSelectedLongPress:(t,e)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E, \u0437\u0430 \u0434\u0430 \u043F\u043B\u044A\u0437\u043D\u0435\u0442\u0435 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,dragStartedKeyboard:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201ETab\u201C, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u043F\u0440\u0438\u0434\u0432\u0438\u0436\u0438\u0442\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435 \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEscape\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430.",dragStartedTouch:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041F\u0440\u0438\u0434\u0432\u0438\u0436\u0435\u0442\u0435 \u0441\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E, \u0437\u0430 \u0434\u0430 \u043F\u0443\u0441\u043D\u0435\u0442\u0435.",dragStartedVirtual:"\u0417\u0430\u043F\u043E\u0447\u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041F\u0440\u0438\u0434\u0432\u0438\u0436\u0435\u0442\u0435 \u0441\u0435 \u0434\u043E \u0446\u0435\u043B\u0442\u0430, \u0441\u043B\u0435\u0434 \u043A\u043E\u0435\u0442\u043E \u0449\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropCanceled:"\u041F\u0443\u0441\u043A\u0430\u043D\u0435\u0442\u043E \u0435 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043E.",dropComplete:"\u041F\u0443\u0441\u043A\u0430\u043D\u0435\u0442\u043E \u0435 \u0437\u0430\u0432\u044A\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEscape\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",dropDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropDescriptionVirtual:"\u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435.",dropIndicator:"\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u0437\u0430 \u043F\u0443\u0441\u043A\u0430\u043D\u0435",dropOnItem:t=>`\u041F\u0443\u0441\u043D\u0438 \u0432\u044A\u0440\u0445\u0443 ${t.itemText}`,dropOnRoot:"\u041F\u0443\u0441\u043D\u0438 \u0432\u044A\u0440\u0445\u0443",endDragKeyboard:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",endDragTouch:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0434\u0432\u0443\u043A\u0440\u0430\u0442\u043D\u043E \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430 \u043D\u0430 \u043F\u043B\u044A\u0437\u0433\u0430\u043D\u0435\u0442\u043E.",endDragVirtual:"\u041F\u043B\u044A\u0437\u0433\u0430\u043D\u0435. \u0429\u0440\u0430\u043A\u043D\u0435\u0442\u0435 \u0437\u0430 \u043E\u0442\u043C\u044F\u043D\u0430.",insertAfter:t=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u0441\u043B\u0435\u0434 ${t.itemText}`,insertBefore:t=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u043F\u0440\u0435\u0434\u0438 ${t.itemText}`,insertBetween:t=>`\u0412\u043C\u044A\u043A\u043D\u0438 \u043C\u0435\u0436\u0434\u0443 ${t.beforeItemText} \u0438 ${t.afterItemText}`};var To={};To={dragDescriptionKeyboard:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragDescriptionKeyboardAlt:"Stisknut\xEDm Alt + Enter zah\xE1j\xEDte p\u0159etahov\xE1n\xED.",dragDescriptionLongPress:"Dlouh\xFDm stisknut\xEDm zah\xE1j\xEDte p\u0159etahov\xE1n\xED.",dragDescriptionTouch:"Poklep\xE1n\xEDm za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragDescriptionVirtual:"Kliknut\xEDm za\u010Dnete s p\u0159etahov\xE1n\xEDm.",dragItem:t=>`P\u0159et\xE1hnout ${t.itemText}`,dragSelectedItems:(t,e)=>`P\u0159et\xE1hnout ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybranou polo\u017Eku`,few:()=>`${e.number(t.count)} vybran\xE9 polo\u017Eky`,other:()=>`${e.number(t.count)} vybran\xFDch polo\u017Eek`})}`,dragSelectedKeyboard:(t,e)=>`Stisknut\xEDm kl\xE1vesy Enter p\u0159et\xE1hn\u011Bte ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybranou polo\u017Eku`,other:()=>`${e.number(t.count)} vybran\xE9 polo\u017Eky`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Stisknut\xEDm Alt + Enter p\u0159et\xE1hn\u011Bte ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybranou polo\u017Eku`,other:()=>`${e.number(t.count)} vybran\xE9 polo\u017Eky`})}.`,dragSelectedLongPress:(t,e)=>`Dlouh\xFDm stisknut\xEDm p\u0159et\xE1hnete ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybranou polo\u017Eku`,other:()=>`${e.number(t.count)} vybran\xE9 polo\u017Eky`})}.`,dragStartedKeyboard:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Po stisknut\xED kl\xE1vesy Tab najd\u011Bte po\u017Eadovan\xFD c\xEDl a stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete nebo stisknut\xEDm kl\xE1vesy Esc akci zru\u0161te.",dragStartedTouch:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Najd\u011Bte po\u017Eadovan\xFD c\xEDl a poklep\xE1n\xEDm p\u0159eta\u017Een\xED dokon\u010Dete.",dragStartedVirtual:"Za\u010Dn\u011Bte s p\u0159etahov\xE1n\xEDm. Najd\u011Bte po\u017Eadovan\xFD c\xEDl a kliknut\xEDm nebo stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete.",dropCanceled:"P\u0159eta\u017Een\xED bylo zru\u0161eno.",dropComplete:"P\u0159eta\u017Een\xED bylo dokon\u010Deno.",dropDescriptionKeyboard:"Stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED dokon\u010Dete nebo stisknut\xEDm kl\xE1vesy Esc akci zru\u0161te.",dropDescriptionTouch:"Poklep\xE1n\xEDm p\u0159eta\u017Een\xED dokon\u010Dete.",dropDescriptionVirtual:"Kliknut\xEDm objekt p\u0159et\xE1hn\u011Bte.",dropIndicator:"indik\xE1tor p\u0159eta\u017Een\xED",dropOnItem:t=>`P\u0159et\xE1hnout na ${t.itemText}`,dropOnRoot:"P\u0159et\xE1hnout na",endDragKeyboard:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Stisknut\xEDm kl\xE1vesy Enter p\u0159eta\u017Een\xED zru\u0161\xEDte.",endDragTouch:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Poklep\xE1n\xEDm p\u0159eta\u017Een\xED zru\u0161\xEDte.",endDragVirtual:"Prob\xEDh\xE1 p\u0159etahov\xE1n\xED. Kliknut\xEDm p\u0159eta\u017Een\xED zru\u0161\xEDte.",insertAfter:t=>`Vlo\u017Eit za ${t.itemText}`,insertBefore:t=>`Vlo\u017Eit p\u0159ed ${t.itemText}`,insertBetween:t=>`Vlo\u017Eit mezi ${t.beforeItemText} a ${t.afterItemText}`};var _o={};_o={dragDescriptionKeyboard:"Tryk p\xE5 Enter for at starte med at tr\xE6kke.",dragDescriptionKeyboardAlt:"Tryk p\xE5 Alt + Enter for at starte med at tr\xE6kke.",dragDescriptionLongPress:"Tryk l\xE6nge for at starte med at tr\xE6kke.",dragDescriptionTouch:"Dobbelttryk for at starte med at tr\xE6kke.",dragDescriptionVirtual:"Klik for at starte med at tr\xE6kke.",dragItem:t=>`Tr\xE6k ${t.itemText}`,dragSelectedItems:(t,e)=>`Tr\xE6k ${e.plural(t.count,{one:()=>`${e.number(t.count)} valgt element`,other:()=>`${e.number(t.count)} valgte elementer`})}`,dragSelectedKeyboard:(t,e)=>`Tryk p\xE5 Enter for at tr\xE6kke ${e.plural(t.count,{one:()=>`${e.number(t.count)} valgte element`,other:()=>`${e.number(t.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Tryk p\xE5 Alt + Enter for at tr\xE6kke ${e.plural(t.count,{one:()=>`${e.number(t.count)} valgte element`,other:()=>`${e.number(t.count)} valgte elementer`})}.`,dragSelectedLongPress:(t,e)=>`Tryk l\xE6nge for at tr\xE6kke ${e.plural(t.count,{one:()=>`${e.number(t.count)} valgte element`,other:()=>`${e.number(t.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at tr\xE6kke. Tryk p\xE5 Tab for at g\xE5 til et slip-m\xE5l, tryk derefter p\xE5 Enter for at slippe, eller tryk p\xE5 Escape for at annullere.",dragStartedTouch:"Startet med at tr\xE6kke. G\xE5 til et slip-m\xE5l, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at tr\xE6kke. G\xE5 til et slip-m\xE5l, og klik eller tryk derefter p\xE5 enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldf\xF8rt.",dropDescriptionKeyboard:"Tryk p\xE5 Enter for at slippe. Tryk p\xE5 Escape for at annullere tr\xE6kning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:t=>`Slip p\xE5 ${t.itemText}`,dropOnRoot:"Slip p\xE5",endDragKeyboard:"Tr\xE6kning. Tryk p\xE5 enter for at annullere tr\xE6k.",endDragTouch:"Tr\xE6kning. Dobbelttryk for at annullere tr\xE6k.",endDragVirtual:"Tr\xE6kning. Klik for at annullere tr\xE6kning.",insertAfter:t=>`Inds\xE6t efter ${t.itemText}`,insertBefore:t=>`Inds\xE6t f\xF8r ${t.itemText}`,insertBetween:t=>`Inds\xE6t mellem ${t.beforeItemText} og ${t.afterItemText}`};var Io={};Io={dragDescriptionKeyboard:"Dr\xFCcken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe dr\xFCcken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang dr\xFCcken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:t=>`${t.itemText} ziehen`,dragSelectedItems:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ausgew\xE4hltes Objekt`,other:()=>`${e.number(t.count)} ausgew\xE4hlte Objekte`})} ziehen`,dragSelectedKeyboard:(t,e)=>`Eingabetaste dr\xFCcken, um ${e.plural(t.count,{one:()=>`${e.number(t.count)} ausgew\xE4hltes Element`,other:()=>`${e.number(t.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(t,e)=>`Alt + Eingabetaste dr\xFCcken, um ${e.plural(t.count,{one:()=>`${e.number(t.count)} ausgew\xE4hltes Element`,other:()=>`${e.number(t.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragSelectedLongPress:(t,e)=>`Lang dr\xFCcken, um ${e.plural(t.count,{one:()=>`${e.number(t.count)} ausgew\xE4hltes Element`,other:()=>`${e.number(t.count)} ausgew\xE4hlte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Dr\xFCcken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und dr\xFCcken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder dr\xFCcken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Dr\xFCcken Sie die Eingabetaste, um das Objekt abzulegen. Dr\xFCcken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:t=>`Auf ${t.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang l\xE4uft. Dr\xFCcken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang l\xE4uft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang l\xE4uft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:t=>`Nach ${t.itemText} einf\xFCgen`,insertBefore:t=>`Vor ${t.itemText} einf\xFCgen`,insertBetween:t=>`Zwischen ${t.beforeItemText} und ${t.afterItemText} einf\xFCgen`};var No={};No={dragDescriptionKeyboard:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionKeyboardAlt:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionLongPress:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC.",dragDescriptionTouch:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dragDescriptionVirtual:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC.",dragItem:t=>`\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC ${t.itemText}`,dragSelectedItems:(t,e)=>`\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}`,dragSelectedKeyboard:(t,e)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragSelectedKeyboardAlt:(t,e)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + Enter \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragSelectedLongPress:(t,e)=>`\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03CD\u03C1\u03B5\u03C4\u03B5 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`${e.number(t.count)} \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,dragStartedKeyboard:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C0\u03BB\u03AE\u03BA\u03C4\u03C1\u03BF Tab \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BC\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Escape \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7.",dragStartedTouch:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u039C\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dragStartedVirtual:"\u0397 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03BE\u03B5\u03BA\u03AF\u03BD\u03B7\u03C3\u03B5. \u039C\u03B5\u03C4\u03B1\u03B2\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C0\u03C1\u03BF\u03BF\u03C1\u03B9\u03C3\u03BC\u03CC \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2 \u03BA\u03B1\u03B9, \u03C3\u03C4\u03B7 \u03C3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1, \u03BA\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropCanceled:"\u0397 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03B1\u03BA\u03C5\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5.",dropComplete:"\u0397 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03B8\u03B7\u03BA\u03B5.",dropDescriptionKeyboard:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Escape \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",dropDescriptionTouch:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropDescriptionVirtual:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7.",dropIndicator:"\u03B4\u03B5\u03AF\u03BA\u03C4\u03B7\u03C2 \u03B1\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7\u03C2",dropOnItem:t=>`\u0391\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03C3\u03B5 ${t.itemText}`,dropOnRoot:"\u0391\u03C0\u03CC\u03B8\u03B5\u03C3\u03B7 \u03C3\u03B5",endDragKeyboard:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",endDragTouch:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B4\u03CD\u03BF \u03C6\u03BF\u03C1\u03AD\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",endDragVirtual:"\u039C\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC \u03C3\u03B5 \u03B5\u03BE\u03AD\u03BB\u03B9\u03BE\u03B7. \u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03AC\u03C2.",insertAfter:t=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BC\u03B5\u03C4\u03AC \u03B1\u03C0\u03CC ${t.itemText}`,insertBefore:t=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC ${t.itemText}`,insertBetween:t=>`\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BC\u03B5\u03C4\u03B1\u03BE\u03CD ${t.beforeItemText} \u03BA\u03B1\u03B9 ${t.afterItemText}`};var zo={};zo={dragItem:t=>`Drag ${t.itemText}`,dragSelectedItems:(t,e)=>`Drag ${e.plural(t.count,{one:()=>`${e.number(t.count)} selected item`,other:()=>`${e.number(t.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(t,e)=>`Press Enter to drag ${e.plural(t.count,{one:()=>`${e.number(t.count)} selected item`,other:()=>`${e.number(t.count)} selected items`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Press Alt + Enter to drag ${e.plural(t.count,{one:()=>`${e.number(t.count)} selected item`,other:()=>`${e.number(t.count)} selected items`})}.`,dragSelectedLongPress:(t,e)=>`Long press to drag ${e.plural(t.count,{one:()=>`${e.number(t.count)} selected item`,other:()=>`${e.number(t.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:t=>`Drop on ${t.itemText}`,insertBefore:t=>`Insert before ${t.itemText}`,insertBetween:t=>`Insert between ${t.beforeItemText} and ${t.afterItemText}`,insertAfter:t=>`Insert after ${t.itemText}`};var $o={};$o={dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:t=>`Arrastrar ${t.itemText}`,dragSelectedItems:(t,e)=>`Arrastrar ${e.plural(t.count,{one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(t,e)=>`Pulse Intro para arrastrar ${e.plural(t.count,{one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Pulse Alt + Intro para arrastrar ${e.plural(t.count,{one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(t,e)=>`Mantenga pulsado para arrastrar ${e.plural(t.count,{one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al p\xFAblico destinatario donde se vaya a colocar y, a continuaci\xF3n, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al p\xFAblico destinatario donde se vaya a colocar y, a continuaci\xF3n, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al p\xFAblico destinatario donde se vaya a colocar y, a continuaci\xF3n, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocaci\xF3n.",dropComplete:"Colocaci\xF3n finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocaci\xF3n",dropOnItem:t=>`Soltar en ${t.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:t=>`Insertar despu\xE9s de ${t.itemText}`,insertBefore:t=>`Insertar antes de ${t.itemText}`,insertBetween:t=>`Insertar entre ${t.beforeItemText} y ${t.afterItemText}`};var Ao={};Ao={dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Kl\xF5psake lohistamise alustamiseks.",dragItem:t=>`Lohista ${t.itemText}`,dragSelectedItems:(t,e)=>`Lohista ${e.plural(t.count,{one:()=>`${e.number(t.count)} valitud \xFCksust`,other:()=>`${e.number(t.count)} valitud \xFCksust`})}`,dragSelectedKeyboard:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} valitud \xFCksuse`,other:()=>`${e.number(t.count)} valitud \xFCksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(t,e)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${e.plural(t.count,{one:()=>`${e.number(t.count)} valitud \xFCksuse`,other:()=>`${e.number(t.count)} valitud \xFCksuse`})} jaoks.`,dragSelectedLongPress:(t,e)=>`Pikk vajutus ${e.plural(t.count,{one:()=>`${e.number(t.count)} valitud \xFCksuse`,other:()=>`${e.number(t.count)} valitud \xFCksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtm\xE4rgi juurde navigeerimiseks vajutage klahvi Tab, seej\xE4rel vajutage kukutamiseks klahvi Enter v\xF5i loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtm\xE4rgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtm\xE4rgi juurde ja kukutamiseks kl\xF5psake v\xF5i vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks kl\xF5psake.",dropIndicator:"lohistamise indikaator",dropOnItem:t=>`Kukuta asukohta ${t.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks kl\xF5psake.",insertAfter:t=>`Sisesta ${t.itemText} j\xE4rele`,insertBefore:t=>`Sisesta ${t.itemText} ette`,insertBetween:t=>`Sisesta ${t.beforeItemText} ja ${t.afterItemText} vahele`};var Bo={};Bo={dragDescriptionKeyboard:"Aloita vet\xE4minen painamalla Enter-n\xE4pp\xE4int\xE4.",dragDescriptionKeyboardAlt:"Aloita vet\xE4minen painamalla Alt + Enter -n\xE4pp\xE4inyhdistelm\xE4\xE4.",dragDescriptionLongPress:"Aloita vet\xE4minen pit\xE4m\xE4ll\xE4 painettuna.",dragDescriptionTouch:"Aloita vet\xE4minen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vet\xE4minen napsauttamalla.",dragItem:t=>`Ved\xE4 kohdetta ${t.itemText}`,dragSelectedItems:(t,e)=>`Ved\xE4 ${e.plural(t.count,{one:()=>`${e.number(t.count)} valittua kohdetta`,other:()=>`${e.number(t.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(t,e)=>`Ved\xE4 painamalla Enter ${e.plural(t.count,{one:()=>`${e.number(t.count)} valittu kohde`,other:()=>`${e.number(t.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Ved\xE4 painamalla Alt + Enter ${e.plural(t.count,{one:()=>`${e.number(t.count)} valittu kohde`,other:()=>`${e.number(t.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(t,e)=>`Ved\xE4 pit\xE4m\xE4ll\xE4 painettuna ${e.plural(t.count,{one:()=>`${e.number(t.count)} valittu kohde`,other:()=>`${e.number(t.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen painamalla sarkainn\xE4pp\xE4int\xE4 ja sitten pudota painamalla Enter-n\xE4pp\xE4int\xE4 tai peruuta painamalla Escape-n\xE4pp\xE4int\xE4.",dragStartedTouch:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vet\xE4minen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-n\xE4pp\xE4int\xE4.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-n\xE4pp\xE4int\xE4. Peruuta vet\xE4minen painamalla Escape-n\xE4pp\xE4int\xE4.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:t=>`Pudota kohteeseen ${t.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedet\xE4\xE4n. Peruuta vet\xE4minen painamalla Enter-n\xE4pp\xE4int\xE4.",endDragTouch:"Vedet\xE4\xE4n. Peruuta vet\xE4minen kaksoisnapauttamalla.",endDragVirtual:"Vedet\xE4\xE4n. Peruuta vet\xE4minen napsauttamalla.",insertAfter:t=>`Lis\xE4\xE4 kohteen ${t.itemText} j\xE4lkeen`,insertBefore:t=>`Lis\xE4\xE4 ennen kohdetta ${t.itemText}`,insertBetween:t=>`Lis\xE4\xE4 kohteiden ${t.beforeItemText} ja ${t.afterItemText} v\xE4liin`};var Po={};Po={dragDescriptionKeyboard:"Appuyez sur Entr\xE9e pour commencer le d\xE9placement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt\xA0+\xA0Entr\xE9e pour commencer \xE0 faire glisser.",dragDescriptionLongPress:"Appuyez de mani\xE8re prolong\xE9e pour commencer \xE0 faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le d\xE9placement.",dragDescriptionVirtual:"Cliquez pour commencer le d\xE9placement.",dragItem:t=>`D\xE9placer ${t.itemText}`,dragSelectedItems:(t,e)=>`D\xE9placer ${e.plural(t.count,{one:()=>`${e.number(t.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${e.number(t.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}`,dragSelectedKeyboard:(t,e)=>`Appuyez sur Entr\xE9e pour faire glisser ${e.plural(t.count,{one:()=>`${e.number(t.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${e.number(t.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Appuyez sur Alt\xA0+\xA0Entr\xE9e pour faire glisser ${e.plural(t.count,{one:()=>`${e.number(t.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${e.number(t.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragSelectedLongPress:(t,e)=>`Appuyez de mani\xE8re prolong\xE9e pour faire glisser ${e.plural(t.count,{one:()=>`${e.number(t.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${e.number(t.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,dragStartedKeyboard:"D\xE9placement commenc\xE9. Appuyez sur Tabulation pour acc\xE9der \xE0 une cible de d\xE9p\xF4t, puis appuyez sur Entr\xE9e pour d\xE9poser, ou appuyez sur \xC9chap pour annuler.",dragStartedTouch:"D\xE9placement commenc\xE9. Acc\xE9dez \xE0 une cible de d\xE9p\xF4t, puis touchez deux fois pour d\xE9poser.",dragStartedVirtual:"D\xE9placement commenc\xE9. Acc\xE9dez \xE0 une cible de d\xE9p\xF4t, puis cliquez ou appuyez sur Entr\xE9e pour d\xE9poser.",dropCanceled:"D\xE9p\xF4t annul\xE9.",dropComplete:"D\xE9p\xF4t termin\xE9.",dropDescriptionKeyboard:"Appuyez sur Entr\xE9e pour d\xE9poser. Appuyez sur \xC9chap pour annuler le d\xE9placement.",dropDescriptionTouch:"Touchez deux fois pour d\xE9poser.",dropDescriptionVirtual:"Cliquez pour d\xE9poser.",dropIndicator:"indicateur de d\xE9p\xF4t",dropOnItem:t=>`D\xE9poser sur ${t.itemText}`,dropOnRoot:"D\xE9poser sur",endDragKeyboard:"D\xE9placement. Appuyez sur Entr\xE9e pour annuler le d\xE9placement.",endDragTouch:"D\xE9placement. Touchez deux fois pour annuler le d\xE9placement.",endDragVirtual:"D\xE9placement. Cliquez pour annuler le d\xE9placement.",insertAfter:t=>`Ins\xE9rer apr\xE8s ${t.itemText}`,insertBefore:t=>`Ins\xE9rer avant ${t.itemText}`,insertBetween:t=>`Ins\xE9rer entre ${t.beforeItemText} et ${t.afterItemText}`};var Ko={};Ko={dragDescriptionKeyboard:"\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionKeyboardAlt:"\u05D4\u05E7\u05E9 Alt + Enter \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionLongPress:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragDescriptionTouch:"\u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D2\u05E8\u05D9\u05E8\u05D4.",dragDescriptionVirtual:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05DC\u05D2\u05E8\u05D5\u05E8.",dragItem:t=>`\u05D2\u05E8\u05D5\u05E8 \u05D0\u05EA ${t.itemText}`,dragSelectedItems:(t,e)=>`\u05D2\u05E8\u05D5\u05E8 ${e.plural(t.count,{one:()=>`\u05E4\u05E8\u05D9\u05D8 \u05E0\u05D1\u05D7\u05E8 ${e.number(t.count)}`,other:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}`,dragSelectedKeyboard:(t,e)=>`\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragSelectedKeyboardAlt:(t,e)=>`\u05D4\u05E7\u05E9 Alt + Enter \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragSelectedLongPress:(t,e)=>`\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DB\u05D3\u05D9 \u05DC\u05D2\u05E8\u05D5\u05E8 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8 \u05E9\u05E0\u05D1\u05D7\u05E8`,other:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E9\u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,dragStartedKeyboard:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Tab \u05DB\u05D3\u05D9 \u05DC\u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8 \u05D0\u05D5 \u05E2\u05DC Escape \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC.",dragStartedTouch:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dragStartedVirtual:"\u05D4\u05EA\u05D7\u05DC\u05EA \u05DC\u05D2\u05E8\u05D5\u05E8. \u05E0\u05D5\u05D5\u05D8 \u05DC\u05E0\u05E7\u05D5\u05D3\u05EA \u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D5\u05DC\u05D0\u05D7\u05E8 \u05DE\u05DB\u05DF \u05DC\u05D7\u05E5 \u05D0\u05D5 \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropCanceled:"\u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D1\u05D5\u05D8\u05DC.",dropComplete:"\u05D4\u05E9\u05D7\u05E8\u05D5\u05E8 \u05D4\u05D5\u05E9\u05DC\u05DD.",dropDescriptionKeyboard:"\u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Escape \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",dropDescriptionTouch:"\u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropDescriptionVirtual:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E9\u05D7\u05E8\u05E8.",dropIndicator:"\u05DE\u05D7\u05D5\u05D5\u05DF \u05E9\u05D7\u05E8\u05D5\u05E8",dropOnItem:t=>`\u05E9\u05D7\u05E8\u05E8 \u05E2\u05DC ${t.itemText}`,dropOnRoot:"\u05E9\u05D7\u05E8\u05E8 \u05E2\u05DC",endDragKeyboard:"\u05D2\u05D5\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E2\u05DC Enter \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",endDragTouch:"\u05D2\u05D5\u05E8\u05E8. \u05D4\u05E7\u05E9 \u05E4\u05E2\u05DE\u05D9\u05D9\u05DD \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",endDragVirtual:"\u05D2\u05D5\u05E8\u05E8. \u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D4\u05D2\u05E8\u05D9\u05E8\u05D4.",insertAfter:t=>`\u05D4\u05D5\u05E1\u05E3 \u05D0\u05D7\u05E8\u05D9 ${t.itemText}`,insertBefore:t=>`\u05D4\u05D5\u05E1\u05E3 \u05DC\u05E4\u05E0\u05D9 ${t.itemText}`,insertBetween:t=>`\u05D4\u05D5\u05E1\u05E3 \u05D1\u05D9\u05DF ${t.beforeItemText} \u05DC\u05D1\u05D9\u05DF ${t.afterItemText}`};var Oo={};Oo={dragDescriptionKeyboard:"Pritisnite Enter da biste po\u010Deli povla\u010Diti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za po\u010Detak povla\u010Denja.",dragDescriptionLongPress:"Dugo pritisnite za po\u010Detak povla\u010Denja.",dragDescriptionTouch:"Dvaput dodirnite da biste po\u010Deli povla\u010Diti.",dragDescriptionVirtual:"Kliknite da biste po\u010Deli povla\u010Diti.",dragItem:t=>`Povucite stavku ${t.itemText}`,dragSelectedItems:(t,e)=>`Povucite ${e.plural(t.count,{one:()=>`${e.number(t.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${e.number(t.count)}`})}`,dragSelectedKeyboard:(t,e)=>`Pritisnite Enter za povla\u010Denje ${e.plural(t.count,{one:()=>`${e.number(t.count)} odabrana stavka`,other:()=>`${e.number(t.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Pritisnite Alt + Enter za povla\u010Denje ${e.plural(t.count,{one:()=>`${e.number(t.count)} odabrana stavka`,other:()=>`${e.number(t.count)} odabrane stavke`})}.`,dragSelectedLongPress:(t,e)=>`Dugo pritisnite za povla\u010Denje ${e.plural(t.count,{one:()=>`${e.number(t.count)} odabrana stavka`,other:()=>`${e.number(t.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Po\u010Deli ste povla\u010Diti. Pritisnite tipku tabulatora da biste do\u0161li do cilja ispu\u0161tanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povla\u010Denje.",dragStartedTouch:"Po\u010Deli ste povla\u010Diti. Do\u0111ite do cilja ispu\u0161tanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Po\u010Deli ste povla\u010Diti. Do\u0111ite do cilja ispu\u0161tanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povla\u010Denje je prekinuto.",dropComplete:"Ispu\u0161tanje je dovr\u0161eno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povla\u010Denje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispu\u0161tanja",dropOnItem:t=>`Ispustite na stavku ${t.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povla\u010Denje. Pritisnite Enter da biste prekinuli povla\u010Denje.",endDragTouch:"Povla\u010Denje. Dvaput dodirnite da biste prekinuli povla\u010Denje.",endDragVirtual:"Povla\u010Denje. Kliknite da biste prekinuli povla\u010Denje.",insertAfter:t=>`Umetnite iza stavke ${t.itemText}`,insertBefore:t=>`Ispustite ispred stavke ${t.itemText}`,insertBetween:t=>`Umetnite izme\u0111u stavki ${t.beforeItemText} i ${t.afterItemText}`};var Ro={};Ro={dragDescriptionKeyboard:"Nyomja le az Enter billenty\u0171t a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billenty\u0171ket a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionLongPress:"Hosszan nyomja meg a h\xFAz\xE1s elind\xEDt\xE1s\xE1hoz.",dragDescriptionTouch:"Koppintson dupl\xE1n a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragDescriptionVirtual:"Kattintson a h\xFAz\xE1s megkezd\xE9s\xE9hez.",dragItem:t=>`${t.itemText} h\xFAz\xE1sa`,dragSelectedItems:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} kijel\xF6lt elem`,other:()=>`${e.number(t.count)} kijel\xF6lt elem`})} h\xFAz\xE1sa`,dragSelectedKeyboard:(t,e)=>`Nyomja meg az Entert ${e.plural(t.count,{one:()=>`${e.number(t.count)} kijel\xF6lt elem`,other:()=>`${e.number(t.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragSelectedKeyboardAlt:(t,e)=>`Nyomja meg az Alt + Enter billenty\u0171ket ${e.plural(t.count,{one:()=>`${e.number(t.count)} kijel\xF6lt elem`,other:()=>`${e.number(t.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragSelectedLongPress:(t,e)=>`Tartsa lenyomva hosszan ${e.plural(t.count,{one:()=>`${e.number(t.count)} kijel\xF6lt elem`,other:()=>`${e.number(t.count)} kijel\xF6lt elem`})} h\xFAz\xE1s\xE1hoz.`,dragStartedKeyboard:"H\xFAz\xE1s megkezdve. Nyomja le a Tab billenty\u0171t az elenged\xE9si c\xE9lhoz navig\xE1l\xE1s\xE1hoz, majd nyomja le az Enter billenty\u0171t az elenged\xE9shez, vagy nyomja le az Escape billenty\u0171t a megszak\xEDt\xE1shoz.",dragStartedTouch:"H\xFAz\xE1s megkezdve. Navig\xE1ljon egy elenged\xE9si c\xE9lhoz, majd koppintson dupl\xE1n az elenged\xE9shez.",dragStartedVirtual:"H\xFAz\xE1s megkezdve. Navig\xE1ljon egy elenged\xE9si c\xE9lhoz, majd kattintson vagy nyomja le az Enter billenty\u0171t az elenged\xE9shez.",dropCanceled:"Elenged\xE9s megszak\xEDtva.",dropComplete:"Elenged\xE9s teljes\xEDtve.",dropDescriptionKeyboard:"Nyomja le az Enter billenty\u0171t az elenged\xE9shez. Nyomja le az Escape billenty\u0171t a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",dropDescriptionTouch:"Koppintson dupl\xE1n az elenged\xE9shez.",dropDescriptionVirtual:"Kattintson az elenged\xE9shez.",dropIndicator:"elenged\xE9sjelz\u0151",dropOnItem:t=>`Elenged\xE9s erre: ${t.itemText}`,dropOnRoot:"Elenged\xE9s erre:",endDragKeyboard:"H\xFAz\xE1s folyamatban. Nyomja le az Enter billenty\u0171t a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",endDragTouch:"H\xFAz\xE1s folyamatban. Koppintson dupl\xE1n a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",endDragVirtual:"H\xFAz\xE1s folyamatban. Kattintson a h\xFAz\xE1s megszak\xEDt\xE1s\xE1hoz.",insertAfter:t=>`Besz\xFAr\xE1s ${t.itemText} ut\xE1n`,insertBefore:t=>`Besz\xFAr\xE1s ${t.itemText} el\xE9`,insertBetween:t=>`Besz\xFAr\xE1s ${t.beforeItemText} \xE9s ${t.afterItemText} k\xF6z\xE9`};var Mo={};Mo={dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:t=>`Trascina ${t.itemText}`,dragSelectedItems:(t,e)=>`Trascina ${e.plural(t.count,{one:()=>`${e.number(t.count)} altro elemento selezionato`,other:()=>`${e.number(t.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(t,e)=>`Premi Invio per trascinare ${e.plural(t.count,{one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Premi Alt + Invio per trascinare ${e.plural(t.count,{one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,dragSelectedLongPress:(t,e)=>`Premi a lungo per trascinare ${e.plural(t.count,{one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull\u2019area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull\u2019area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull\u2019area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:t=>`Rilascia su ${t.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:t=>`Inserisci dopo ${t.itemText}`,insertBefore:t=>`Inserisci prima di ${t.itemText}`,insertBetween:t=>`Inserisci tra ${t.beforeItemText} e ${t.afterItemText}`};var Fo={};Fo={dragDescriptionKeyboard:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dragDescriptionKeyboardAlt:"Alt+Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionLongPress:"\u9577\u62BC\u3057\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionTouch:"\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragDescriptionVirtual:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002",dragItem:t=>`${t.itemText} \u3092\u30C9\u30E9\u30C3\u30B0`,dragSelectedItems:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u306E\u9078\u629E\u9805\u76EE`,other:()=>`${e.number(t.count)} \u500B\u306E\u9078\u629E\u9805\u76EE`})} \u3092\u30C9\u30E9\u30C3\u30B0`,dragSelectedKeyboard:(t,e)=>`Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u3001${e.plural(t.count,{one:()=>`${e.number(t.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${e.number(t.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragSelectedKeyboardAlt:(t,e)=>`Alt+Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u3001${e.plural(t.count,{one:()=>`${e.number(t.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${e.number(t.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragSelectedLongPress:(t,e)=>`\u9577\u62BC\u3057\u3057\u3066\u3001${e.plural(t.count,{one:()=>`${e.number(t.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`,other:()=>`${e.number(t.count)} \u9078\u629E\u3057\u305F\u9805\u76EE`})}\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u307E\u3059\u3002`,dragStartedKeyboard:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3059\u3002Tab \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u3044\u3069\u3046\u3057\u3001Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3059\u308B\u304B\u3001Esc \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",dragStartedTouch:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3057\u305F\u3002\u30C9\u30ED\u30C3\u30D7\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u79FB\u52D5\u3057\u3001\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dragStartedVirtual:"\u30C9\u30E9\u30C3\u30B0\u3092\u958B\u59CB\u3057\u307E\u3057\u305F\u3002\u30C9\u30ED\u30C3\u30D7\u306E\u30BF\u30FC\u30B2\u30C3\u30C8\u306B\u79FB\u52D5\u3057\u3001\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropCanceled:"\u30C9\u30ED\u30C3\u30D7\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",dropComplete:"\u30C9\u30ED\u30C3\u30D7\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",dropDescriptionKeyboard:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002Esc \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",dropDescriptionTouch:"\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropDescriptionVirtual:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30ED\u30C3\u30D7\u3057\u307E\u3059\u3002",dropIndicator:"\u30C9\u30ED\u30C3\u30D7\u30A4\u30F3\u30B8\u30B1\u30FC\u30BF\u30FC",dropOnItem:t=>`${t.itemText} \u306B\u30C9\u30ED\u30C3\u30D7`,dropOnRoot:"\u30C9\u30ED\u30C3\u30D7\u5834\u6240",endDragKeyboard:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",endDragTouch:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002\u30C0\u30D6\u30EB\u30BF\u30C3\u30D7\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",endDragVirtual:"\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u3044\u307E\u3059\u3002\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30C9\u30E9\u30C3\u30B0\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3059\u3002",insertAfter:t=>`${t.itemText} \u306E\u5F8C\u306B\u633F\u5165`,insertBefore:t=>`${t.itemText} \u306E\u524D\u306B\u633F\u5165`,insertBetween:t=>`${t.beforeItemText} \u3068 ${t.afterItemText} \u306E\u9593\u306B\u633F\u5165`};var Vo={};Vo={dragDescriptionKeyboard:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",dragDescriptionKeyboardAlt:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 Alt + Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.",dragDescriptionLongPress:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.",dragDescriptionTouch:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uB354\uBE14 \uD0ED\uD558\uC138\uC694.",dragDescriptionVirtual:"\uB4DC\uB798\uADF8\uB97C \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",dragItem:t=>`${t.itemText} \uB4DC\uB798\uADF8`,dragSelectedItems:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})} \uB4DC\uB798\uADF8`,dragSelectedKeyboard:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragSelectedKeyboardAlt:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 Alt + Enter\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragSelectedLongPress:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`,other:()=>`${e.number(t.count)}\uAC1C \uC120\uD0DD \uD56D\uBAA9`})}\uC744 \uB4DC\uB798\uADF8\uD558\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.`,dragStartedKeyboard:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Tab\uC744 \uB20C\uB7EC \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C Enter\uB97C \uB20C\uB7EC \uB4DC\uB86D\uD558\uAC70\uB098 Esc\uB97C \uB20C\uB7EC \uCDE8\uC18C\uD558\uC138\uC694.",dragStartedTouch:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C \uB354\uBE14 \uD0ED\uD558\uC5EC \uB4DC\uB86D\uD558\uC138\uC694.",dragStartedVirtual:"\uB4DC\uB798\uADF8\uAC00 \uC2DC\uC791\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB4DC\uB86D \uB300\uC0C1\uC73C\uB85C \uC774\uB3D9\uD55C \uB2E4\uC74C \uD074\uB9AD\uD558\uAC70\uB098 Enter\uB97C \uB20C\uB7EC \uB4DC\uB86D\uD558\uC138\uC694.",dropCanceled:"\uB4DC\uB86D\uC774 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",dropComplete:"\uB4DC\uB86D\uC774 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",dropDescriptionKeyboard:"\uB4DC\uB86D\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 Esc\uB97C \uB204\uB974\uC138\uC694.",dropDescriptionTouch:"\uB354\uBE14 \uD0ED\uD558\uC5EC \uB4DC\uB86D\uD558\uC138\uC694.",dropDescriptionVirtual:"\uB4DC\uB86D\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",dropIndicator:"\uB4DC\uB86D \uD45C\uC2DC\uAE30",dropOnItem:t=>`${t.itemText}\uC5D0 \uB4DC\uB86D`,dropOnRoot:"\uB4DC\uB86D \uB300\uC0C1",endDragKeyboard:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",endDragTouch:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 \uB354\uBE14 \uD0ED\uD558\uC138\uC694.",endDragVirtual:"\uB4DC\uB798\uADF8 \uC911\uC785\uB2C8\uB2E4. \uB4DC\uB798\uADF8\uB97C \uCDE8\uC18C\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC138\uC694.",insertAfter:t=>`${t.itemText} \uC774\uD6C4\uC5D0 \uC0BD\uC785`,insertBefore:t=>`${t.itemText} \uC774\uC804\uC5D0 \uC0BD\uC785`,insertBetween:t=>`${t.beforeItemText} \uBC0F ${t.afterItemText} \uC0AC\uC774\uC5D0 \uC0BD\uC785`};var Lo={};Lo={dragDescriptionKeyboard:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te vilkti.",dragDescriptionKeyboardAlt:"Paspauskite \u201EAlt + Enter\u201C, kad prad\u0117tum\u0117te vilkti.",dragDescriptionLongPress:"Palaikykite nuspaud\u0119, kad prad\u0117tum\u0117te vilkti.",dragDescriptionTouch:"Palieskite dukart, kad prad\u0117tum\u0117te vilkti.",dragDescriptionVirtual:"Spustel\u0117kite, kad prad\u0117tum\u0117te vilkti.",dragItem:t=>`Vilkti ${t.itemText}`,dragSelectedItems:(t,e)=>`Vilkti ${e.plural(t.count,{one:()=>`${e.number(t.count)} pasirinkt\u0105 element\u0105`,other:()=>`${e.number(t.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(t,e)=>`Paspauskite \u201EEnter\u201C, jei norite nuvilkti ${e.plural(t.count,{one:()=>`${e.number(t.count)} pasirinkt\u0105 element\u0105`,other:()=>`${e.number(t.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Paspauskite \u201EAlt + Enter\u201C, kad nuvilktum\u0117te ${e.plural(t.count,{one:()=>`${e.number(t.count)} pasirinkt\u0105 element\u0105`,other:()=>`${e.number(t.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(t,e)=>`Nuspaud\u0119 palaikykite, kad nuvilktum\u0117te ${e.plural(t.count,{one:()=>`${e.number(t.count)} pasirinkt\u0105 element\u0105`,other:()=>`${e.number(t.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Prad\u0117ta vilkti. Paspauskite \u201ETab\u201C, kad pereitum\u0117te \u012F tiesiogin\u0119 paskirties viet\u0105, tada paspauskite \u201EEnter\u201C, kad numestum\u0117te, arba \u201EEscape\u201C, kad at\u0161auktum\u0117te.",dragStartedTouch:"Prad\u0117ta vilkti. Eikite \u012F tiesiogin\u0119 paskirties viet\u0105, tada palieskite dukart, kad numestum\u0117te.",dragStartedVirtual:"Prad\u0117ta vilkti. Eikite \u012F tiesiogin\u0119 paskirties viet\u0105 ir spustel\u0117kite arba paspauskite \u201EEnter\u201C, kad numestum\u0117te.",dropCanceled:"Numetimas at\u0161auktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite \u201EEnter\u201C, kad numestum\u0117te. Paspauskite \u201EEscape\u201C, kad at\u0161auktum\u0117te vilkim\u0105.",dropDescriptionTouch:"Palieskite dukart, kad numestum\u0117te.",dropDescriptionVirtual:"Spustel\u0117kite, kad numestum\u0117te.",dropIndicator:"numetimo indikatorius",dropOnItem:t=>`Numesti ant ${t.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite \u201EEnter\u201C, kad at\u0161auktum\u0117te vilkim\u0105.",endDragTouch:"Velkama. Spustel\u0117kite dukart, kad at\u0161auktum\u0117te vilkim\u0105.",endDragVirtual:"Velkama. Spustel\u0117kite, kad at\u0161auktum\u0117te vilkim\u0105.",insertAfter:t=>`\u012Eterpti po ${t.itemText}`,insertBefore:t=>`\u012Eterpti prie\u0161 ${t.itemText}`,insertBetween:t=>`\u012Eterpti tarp ${t.beforeItemText} ir ${t.afterItemText}`};var Ho={};Ho={dragDescriptionKeyboard:"Nospiediet Enter, lai s\u0101ktu vilk\u0161anu.",dragDescriptionKeyboardAlt:"Nospiediet tausti\u0146u kombin\u0101ciju Alt+Enter, lai s\u0101ktu vilk\u0161anu.",dragDescriptionLongPress:"Turiet nospiestu, lai s\u0101ktu vilk\u0161anu.",dragDescriptionTouch:"Veiciet dubultsk\u0101rienu, lai s\u0101ktu vilk\u0161anu.",dragDescriptionVirtual:"Noklik\u0161\u0137iniet, lai s\u0101ktu vilk\u0161anu.",dragItem:t=>`Velciet ${t.itemText}`,dragSelectedItems:(t,e)=>`Velciet ${e.plural(t.count,{one:()=>`${e.number(t.count)} atlas\u012Bto vienumu`,other:()=>`${e.number(t.count)} atlas\u012Btos vienumus`})}`,dragSelectedKeyboard:(t,e)=>`Nospiediet tausti\u0146u Enter, lai vilktu ${e.plural(t.count,{one:()=>`${e.number(t.count)} atlas\u012Bto vienumu`,other:()=>`${e.number(t.count)} atlas\u012Btos vienumus`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Nospiediet tausti\u0146u kombin\u0101ciju Alt+Enter, lai vilktu ${e.plural(t.count,{one:()=>`${e.number(t.count)} atlas\u012Bto vienumu`,other:()=>`${e.number(t.count)} atlas\u012Btos vienumus`})}.`,dragSelectedLongPress:(t,e)=>`Turiet nospiestu, lai vilktu ${e.plural(t.count,{one:()=>`${e.number(t.count)} atlas\u012Bto vienumu`,other:()=>`${e.number(t.count)} atlas\u012Btos vienumus`})}.`,dragStartedKeyboard:"Uzs\u0101kta vilk\u0161ana. Nospiediet tausti\u0146u Tab, lai p\u0101rietu uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzs\u0101kta vilk\u0161ana. P\u0101rejiet uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam veiciet dubultsk\u0101rienu, lai nomestu.",dragStartedVirtual:"Uzs\u0101kta vilk\u0161ana. P\u0101rejiet uz nome\u0161anas m\u0113r\u0137i, p\u0113c tam nospiediet Enter, lai nomestu.",dropCanceled:"Nome\u0161ana atcelta.",dropComplete:"Nome\u0161ana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilk\u0161anu.",dropDescriptionTouch:"Veiciet dubultsk\u0101rienu, lai nomestu.",dropDescriptionVirtual:"Noklik\u0161\u0137iniet, lai nomestu.",dropIndicator:"nome\u0161anas indikators",dropOnItem:t=>`Nometiet uz ${t.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilk\u0161ana. Nospiediet Enter, lai atceltu vilk\u0161anu.",endDragTouch:"Notiek vilk\u0161ana. Veiciet dubultsk\u0101rienu, lai atceltu vilk\u0161anu.",endDragVirtual:"Notiek vilk\u0161ana. Noklik\u0161\u0137iniet, lai atceltu vilk\u0161anu.",insertAfter:t=>`Ievietojiet p\u0113c ${t.itemText}`,insertBefore:t=>`Ievietojiet pirms ${t.itemText}`,insertBetween:t=>`Ievietojiet starp ${t.beforeItemText} un ${t.afterItemText}`};var Wo={};Wo={dragDescriptionKeyboard:"Trykk p\xE5 Enter for \xE5 begynne \xE5 dra.",dragDescriptionKeyboardAlt:"Trykk p\xE5 Alt + Enter for \xE5 begynne \xE5 dra.",dragDescriptionLongPress:"Trykk lenge for \xE5 begynne \xE5 dra.",dragDescriptionTouch:"Dobbelttrykk for \xE5 begynne \xE5 dra.",dragDescriptionVirtual:"Klikk for \xE5 begynne \xE5 dra.",dragItem:t=>`Dra ${t.itemText}`,dragSelectedItems:(t,e)=>`Dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} merket element`,other:()=>`${e.number(t.count)} merkede elementer`})}`,dragSelectedKeyboard:(t,e)=>`Trykk Enter for \xE5 dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} valgt element`,other:()=>`${e.number(t.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Trykk p\xE5 Alt + Enter for \xE5 dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} valgt element`,other:()=>`${e.number(t.count)} valgte elementer`})}.`,dragSelectedLongPress:(t,e)=>`Trykk lenge for \xE5 dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} valgt element`,other:()=>`${e.number(t.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte \xE5 dra. Trykk p\xE5 Tab for \xE5 navigere til et m\xE5l, og trykk deretter p\xE5 Enter for \xE5 slippe eller p\xE5 Esc for \xE5 avbryte.",dragStartedTouch:"Begynte \xE5 dra. Naviger til et m\xE5l, og dobbelttrykk for \xE5 slippe.",dragStartedVirtual:"Begynte \xE5 dra. Naviger til et m\xE5l, og klikk eller trykk p\xE5 Enter for \xE5 slippe.",dropCanceled:"Avbr\xF8t slipping.",dropComplete:"Slippingen er fullf\xF8rt.",dropDescriptionKeyboard:"Trykk p\xE5 Enter for \xE5 slippe. Trykk p\xE5 Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for \xE5 slippe.",dropDescriptionVirtual:"Klikk for \xE5 slippe.",dropIndicator:"slippeindikator",dropOnItem:t=>`Slipp p\xE5 ${t.itemText}`,dropOnRoot:"Slipp p\xE5",endDragKeyboard:"Drar. Trykk p\xE5 Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:t=>`Sett inn etter ${t.itemText}`,insertBefore:t=>`Sett inn f\xF8r ${t.itemText}`,insertBetween:t=>`Sett inn mellom ${t.beforeItemText} og ${t.afterItemText}`};var Uo={};Uo={dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:t=>`${t.itemText} slepen`,dragSelectedItems:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} geselecteerd item`,other:()=>`${e.number(t.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(t,e)=>`Druk op Enter om ${e.plural(t.count,{one:()=>`${e.number(t.count)} geselecteerd item`,other:()=>`${e.number(t.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(t,e)=>`Druk op Alt + Enter om ${e.plural(t.count,{one:()=>`${e.number(t.count)} geselecteerd item`,other:()=>`${e.number(t.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(t,e)=>`Houd lang ingedrukt om ${e.plural(t.count,{one:()=>`${e.number(t.count)} geselecteerd item`,other:()=>`${e.number(t.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:t=>`Neerzetten op ${t.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:t=>`Plaatsen na ${t.itemText}`,insertBefore:t=>`Plaatsen v\xF3\xF3r ${t.itemText}`,insertBetween:t=>`Plaatsen tussen ${t.beforeItemText} en ${t.afterItemText}`};var qo={};qo={dragDescriptionKeyboard:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionKeyboardAlt:"Naci\u015Bnij Alt + Enter, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionLongPress:"Naci\u015Bnij i przytrzymaj, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragDescriptionVirtual:"Kliknij, aby rozpocz\u0105\u0107 przeci\u0105ganie.",dragItem:t=>`Przeci\u0105gnij ${t.itemText}`,dragSelectedItems:(t,e)=>`Przeci\u0105gnij ${e.plural(t.count,{one:()=>`${e.number(t.count)} wybrany element`,other:()=>`${e.number(t.count)} wybranych element\xF3w`})}`,dragSelectedKeyboard:(t,e)=>`Naci\u015Bnij Enter, aby przeci\u0105gn\u0105\u0107 ${e.plural(t.count,{one:()=>`${e.number(t.count)} wybrany element`,other:()=>`${e.number(t.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Naci\u015Bnij Alt + Enter, aby przeci\u0105gn\u0105\u0107 ${e.plural(t.count,{one:()=>`${e.number(t.count)} wybrany element`,other:()=>`${e.number(t.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragSelectedLongPress:(t,e)=>`Naci\u015Bnij i przytrzymaj, aby przeci\u0105gn\u0105\u0107 ${e.plural(t.count,{one:()=>`${e.number(t.count)} wybrany element`,other:()=>`${e.number(t.count)} wybrane(-ych) elementy(-\xF3w)`})}.`,dragStartedKeyboard:"Rozpocz\u0119to przeci\u0105ganie. Naci\u015Bnij Tab, aby wybra\u0107 miejsce docelowe, a nast\u0119pnie naci\u015Bnij Enter, aby upu\u015Bci\u0107, lub Escape, aby anulowa\u0107.",dragStartedTouch:"Rozpocz\u0119to przeci\u0105ganie. Wybierz miejsce, w kt\xF3rym chcesz upu\u015Bci\u0107 element, a nast\u0119pnie dotknij dwukrotnie, aby upu\u015Bci\u0107.F",dragStartedVirtual:"Rozpocz\u0119to przeci\u0105ganie. Wybierz miejsce, w kt\xF3rym chcesz upu\u015Bci\u0107 element, a nast\u0119pnie kliknij lub naci\u015Bnij Enter, aby upu\u015Bci\u0107.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zako\u0144czono upuszczanie.",dropDescriptionKeyboard:"Naci\u015Bnij Enter, aby upu\u015Bci\u0107. Naci\u015Bnij Escape, aby anulowa\u0107 przeci\u0105gni\u0119cie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upu\u015Bci\u0107.",dropDescriptionVirtual:"Kliknij, aby upu\u015Bci\u0107.",dropIndicator:"wska\u017Anik upuszczenia",dropOnItem:t=>`Upu\u015B\u0107 na ${t.itemText}`,dropOnRoot:"Upu\u015B\u0107",endDragKeyboard:"Przeci\u0105ganie. Naci\u015Bnij Enter, aby anulowa\u0107 przeci\u0105gni\u0119cie.",endDragTouch:"Przeci\u0105ganie. Kliknij dwukrotnie, aby anulowa\u0107 przeci\u0105gni\u0119cie.",endDragVirtual:"Przeci\u0105ganie. Kliknij, aby anulowa\u0107 przeci\u0105ganie.",insertAfter:t=>`Umie\u015B\u0107 za ${t.itemText}`,insertBefore:t=>`Umie\u015B\u0107 przed ${t.itemText}`,insertBetween:t=>`Umie\u015B\u0107 mi\u0119dzy ${t.beforeItemText} i ${t.afterItemText}`};var Xo={};Xo={dragDescriptionKeyboard:"Pressione Enter para come\xE7ar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para come\xE7ar a arrastar.",dragDescriptionLongPress:"Pressione e segure para come\xE7ar a arrastar.",dragDescriptionTouch:"Toque duas vezes para come\xE7ar a arrastar.",dragDescriptionVirtual:"Clique para come\xE7ar a arrastar.",dragItem:t=>`Arrastar ${t.itemText}`,dragSelectedItems:(t,e)=>`Arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}`,dragSelectedKeyboard:(t,e)=>`Pressione Enter para arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} o item selecionado`,other:()=>`${e.number(t.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Pressione Alt + Enter para arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} o item selecionado`,other:()=>`${e.number(t.count)} os itens selecionados`})}.`,dragSelectedLongPress:(t,e)=>`Pressione e segure para arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} o item selecionado`,other:()=>`${e.number(t.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar at\xE9 um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue at\xE9 um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue at\xE9 um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Libera\xE7\xE3o cancelada.",dropComplete:"Libera\xE7\xE3o conclu\xEDda.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de libera\xE7\xE3o",dropOnItem:t=>`Soltar em ${t.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:t=>`Inserir ap\xF3s ${t.itemText}`,insertBefore:t=>`Inserir antes de ${t.itemText}`,insertBetween:t=>`Inserir entre ${t.beforeItemText} e ${t.afterItemText}`};var Go={};Go={dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para come\xE7ar a arrastar.",dragDescriptionTouch:"Fa\xE7a duplo toque para come\xE7ar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:t=>`Arrastar ${t.itemText}`,dragSelectedItems:(t,e)=>`Arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}`,dragSelectedKeyboard:(t,e)=>`Prima Enter para arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} o item selecionado`,other:()=>`${e.number(t.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Prima Alt + Enter para arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} o item selecionado`,other:()=>`${e.number(t.count)} os itens selecionados`})}.`,dragSelectedLongPress:(t,e)=>`Prima longamente para arrastar ${e.plural(t.count,{one:()=>`${e.number(t.count)} o item selecionado`,other:()=>`${e.number(t.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabula\xE7\xE3o para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida fa\xE7a duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Fa\xE7a duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:t=>`Largar em ${t.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Fa\xE7a duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:t=>`Inserir depois de ${t.itemText}`,insertBefore:t=>`Inserir antes de ${t.itemText}`,insertBetween:t=>`Inserir entre ${t.beforeItemText} e ${t.afterItemText}`};var Yo={};Yo={dragDescriptionKeyboard:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe glisarea.",dragDescriptionKeyboardAlt:"Ap\u0103sa\u021Bi pe Alt + Enter pentru a \xEEncepe glisarea.",dragDescriptionLongPress:"Ap\u0103sa\u021Bi lung pentru a \xEEncepe glisarea.",dragDescriptionTouch:"Atinge\u021Bi de dou\u0103 ori pentru a \xEEncepe s\u0103 glisa\u021Bi.",dragDescriptionVirtual:"Face\u021Bi clic pentru a \xEEncepe glisarea.",dragItem:t=>`Glisa\u021Bi ${t.itemText}`,dragSelectedItems:(t,e)=>`Glisa\u021Bi ${e.plural(t.count,{one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}`,dragSelectedKeyboard:(t,e)=>`Ap\u0103sa\u021Bi pe Enter pentru a glisa ${e.plural(t.count,{one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Ap\u0103sa\u021Bi pe Alt + Enter pentru a glisa ${e.plural(t.count,{one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,dragSelectedLongPress:(t,e)=>`Ap\u0103sa\u021Bi lung pentru a glisa ${e.plural(t.count,{one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,dragStartedKeyboard:"A \xEEnceput glisarea. Ap\u0103sa\u021Bi pe Tab pentru a naviga la o \u021Bint\u0103 de fixare, apoi ap\u0103sa\u021Bi pe Enter pentru a fixa sau ap\u0103sa\u021Bi pe Escape pentru a anula glisarea.",dragStartedTouch:"A \xEEnceput glisarea. Naviga\u021Bi la o \u021Bint\u0103 de fixare, apoi atinge\u021Bi de dou\u0103 ori pentru a fixa.",dragStartedVirtual:"A \xEEnceput glisarea. Naviga\u021Bi la o \u021Bint\u0103 de fixare, apoi face\u021Bi clic sau ap\u0103sa\u021Bi pe Enter pentru a fixa.",dropCanceled:"Fixare anulat\u0103.",dropComplete:"Fixare finalizat\u0103.",dropDescriptionKeyboard:"Ap\u0103sa\u021Bi pe Enter pentru a fixa. Ap\u0103sa\u021Bi pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atinge\u021Bi de dou\u0103 ori pentru a fixa.",dropDescriptionVirtual:"Face\u021Bi clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:t=>`Fixa\u021Bi pe ${t.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se gliseaz\u0103. Ap\u0103sa\u021Bi pe Enter pentru a anula glisarea.",endDragTouch:"Se gliseaz\u0103. Atinge\u021Bi de dou\u0103 ori pentru a anula glisarea.",endDragVirtual:"Se gliseaz\u0103. Face\u021Bi clic pentru a anula glisarea.",insertAfter:t=>`Insera\u021Bi dup\u0103 ${t.itemText}`,insertBefore:t=>`Insera\u021Bi \xEEnainte de ${t.itemText}`,insertBetween:t=>`Insera\u021Bi \xEEntre ${t.beforeItemText} \u0219i ${t.afterItemText}`};var Zo={};Zo={dragDescriptionKeyboard:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + Enter, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u0442\u044C.",dragDescriptionLongPress:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u0442\u044C.",dragDescriptionTouch:"\u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragDescriptionVirtual:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F.",dragItem:t=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C ${t.itemText}`,dragSelectedItems:(t,e)=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u044D\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C`})}`,dragSelectedKeyboard:(t,e)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Enter \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragSelectedKeyboardAlt:(t,e)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + Enter \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragSelectedLongPress:(t,e)=>`\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430`,other:()=>`${e.number(t.count)} \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432`})}.`,dragStartedKeyboard:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Tab \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0446\u0435\u043B\u0438, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435, \u0438\u043B\u0438 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Escape \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F.",dragStartedTouch:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0446\u0435\u043B\u044C, \u0437\u0430\u0442\u0435\u043C \u0434\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dragStartedVirtual:"\u041D\u0430\u0447\u0430\u0442\u043E \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Tab \u0434\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0446\u0435\u043B\u0438, \u0437\u0430\u0442\u0435\u043C \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropCanceled:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043E.",dropComplete:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Escape \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",dropDescriptionTouch:"\u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropDescriptionVirtual:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435.",dropIndicator:"\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u044F",dropOnItem:t=>`\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u043D\u0430 ${t.itemText}`,dropOnRoot:"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044C \u043D\u0430",endDragKeyboard:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",endDragTouch:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0414\u0432\u0430\u0436\u0434\u044B \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",endDragVirtual:"\u041F\u0435\u0440\u0435\u0442\u0430\u0441\u043A\u0438\u0432\u0430\u043D\u0438\u0435. \u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u0434\u043B\u044F \u043E\u0442\u043C\u0435\u043D\u044B.",insertAfter:t=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u043E\u0441\u043B\u0435 ${t.itemText}`,insertBefore:t=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u0434 ${t.itemText}`,insertBetween:t=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0436\u0434\u0443 ${t.beforeItemText} \u0438 ${t.afterItemText}`};var Jo={};Jo={dragDescriptionKeyboard:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete pres\xFAvanie.",dragDescriptionKeyboardAlt:"Stla\u010Den\xEDm kl\xE1vesov Alt + Enter za\u010Dnete pres\xFAvanie.",dragDescriptionLongPress:"Dlh\xFDm stla\u010Den\xEDm za\u010Dnete pres\xFAvanie.",dragDescriptionTouch:"Dvojit\xFDm kliknut\xEDm za\u010Dnete pres\xFAvanie.",dragDescriptionVirtual:"Kliknut\xEDm za\u010Dnete pres\xFAvanie.",dragItem:t=>`Presun\xFA\u0165 polo\u017Eku ${t.itemText}`,dragSelectedItems:(t,e)=>`Presun\xFA\u0165 ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybrat\xFA polo\u017Eku`,other:()=>`${e.number(t.count)} vybrat\xE9 polo\u017Eky`})}`,dragSelectedKeyboard:(t,e)=>`Stla\u010Den\xEDm kl\xE1vesu Enter presuniete ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybrat\xFA polo\u017Eku`,other:()=>`${e.number(t.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Stla\u010Den\xEDm kl\xE1vesov Alt + Enter presuniete ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybrat\xFA polo\u017Eku`,other:()=>`${e.number(t.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragSelectedLongPress:(t,e)=>`Dlh\xFDm stla\u010Den\xEDm presuniete ${e.plural(t.count,{one:()=>`${e.number(t.count)} vybrat\xFA polo\u017Eku`,other:()=>`${e.number(t.count)} vybrat\xFDch polo\u017Eiek`})}.`,dragStartedKeyboard:"Pres\xFAvanie sa za\u010Dalo. Do cie\u013Eov\xE9ho umiestnenia prejdete stla\u010Den\xEDm kl\xE1vesu Tab. Ak chcete polo\u017Eku umiestni\u0165, stla\u010Dte kl\xE1ves Enter alebo stla\u010Dte kl\xE1ves Esc, ak chcete pres\xFAvanie zru\u0161i\u0165.",dragStartedTouch:"Pres\xFAvanie sa za\u010Dalo. Prejdite na cie\u013Eov\xE9 umiestnenie a dvojit\xFDm kliknut\xEDm umiestnite polo\u017Eku.",dragStartedVirtual:"Pres\xFAvanie sa za\u010Dalo. Prejdite na cie\u013Eov\xE9 umiestnenie a kliknut\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Enter umiestnite polo\u017Eku.",dropCanceled:"Umiestnenie zru\u0161en\xE9.",dropComplete:"Umiestnenie dokon\u010Den\xE9.",dropDescriptionKeyboard:"Stla\u010Den\xEDm kl\xE1vesu Enter umiestnite polo\u017Eku. Stla\u010Den\xEDm kl\xE1vesu Esc zru\u0161\xEDte pres\xFAvanie.",dropDescriptionTouch:"Dvojit\xFDm kliknut\xEDm umiestnite polo\u017Eku.",dropDescriptionVirtual:"Kliknut\xEDm umiestnite polo\u017Eku.",dropIndicator:"indik\xE1tor umiestnenia",dropOnItem:t=>`Umiestni\u0165 na polo\u017Eku ${t.itemText}`,dropOnRoot:"Umiestni\u0165 na",endDragKeyboard:"Prebieha pres\xFAvanie. Ak ho chcete zru\u0161i\u0165, stla\u010Dte kl\xE1ves Enter.",endDragTouch:"Prebieha pres\xFAvanie. Dvojit\xFDm kliknut\xEDm ho m\xF4\u017Eete zru\u0161i\u0165.",endDragVirtual:"Prebieha pres\xFAvanie.",insertAfter:t=>`Vlo\u017Ei\u0165 za polo\u017Eku ${t.itemText}`,insertBefore:t=>`Vlo\u017Ei\u0165 pred polo\u017Eku ${t.itemText}`,insertBetween:t=>`Vlo\u017Ei\u0165 medzi polo\u017Eky ${t.beforeItemText} a ${t.afterItemText}`};var Qo={};Qo={dragDescriptionKeyboard:"Pritisnite tipko Enter za za\u010Detek vle\u010Denja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za za\u010Detek vle\u010Denja.",dragDescriptionLongPress:"Pritisnite in zadr\u017Eite za za\u010Detek vle\u010Denja.",dragDescriptionTouch:"Dvotapnite za za\u010Detek vle\u010Denja.",dragDescriptionVirtual:"Kliknite za za\u010Detek vle\u010Denja.",dragItem:t=>`Povleci ${t.itemText}`,dragSelectedItems:(t,e)=>`Povlecite ${e.plural(t.count,{one:()=>`${e.number(t.count)} izbran element`,other:()=>`izbrane elemente (${e.number(t.count)})`})}`,dragSelectedKeyboard:(t,e)=>`Pritisnite tipko Enter, da povle\u010Dete ${e.plural(t.count,{one:()=>`${e.number(t.count)} izbrani element`,other:()=>`${e.number(t.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Pritisnite tipki Alt + Enter, da povle\u010Dete ${e.plural(t.count,{one:()=>`${e.number(t.count)} izbrani element`,other:()=>`${e.number(t.count)} izbranih elementov`})}.`,dragSelectedLongPress:(t,e)=>`Pritisnite in zadr\u017Eite, da povle\u010Dete ${e.plural(t.count,{one:()=>`${e.number(t.count)} izbrani element`,other:()=>`${e.number(t.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vle\u010Denje se je za\u010Delo. Pritisnite tipko Tab za pomik na mesto, kamor \u017Eelite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekli\u010Dete postopek.",dragStartedTouch:"Vle\u010Denje se je za\u010Delo. Pomaknite se na mesto, kamor \u017Eelite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vle\u010Denje se je za\u010Delo. Pomaknite se na mesto, kamor \u017Eelite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je kon\u010Dan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekli\u010Dete vle\u010Denje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:t=>`Spusti na mesto ${t.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vle\u010Denje. Pritisnite tipko Enter za preklic vle\u010Denja.",endDragTouch:"Vle\u010Denje. Dvotapnite za preklic vle\u010Denja.",endDragVirtual:"Vle\u010Denje. Kliknite, da prekli\u010Dete vle\u010Denje.",insertAfter:t=>`Vstavi za ${t.itemText}`,insertBefore:t=>`Vstavi pred ${t.itemText}`,insertBetween:t=>`Vstavi med ${t.beforeItemText} in ${t.afterItemText}`};var ei={};ei={dragDescriptionKeyboard:"Pritisnite Enter da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionLongPress:"Pritisnite dugo da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionTouch:"Dvaput dodirnite da biste zapo\u010Deli prevla\u010Denje.",dragDescriptionVirtual:"Kliknite da biste zapo\u010Deli prevla\u010Denje.",dragItem:t=>`Prevucite ${t.itemText}`,dragSelectedItems:(t,e)=>`Prevucite ${e.plural(t.count,{one:()=>`${e.number(t.count)} izabranu stavku`,other:()=>`${e.number(t.count)} izabrane stavke`})}`,dragSelectedKeyboard:(t,e)=>`Pritisnite Enter da biste prevukli ${e.plural(t.count,{one:()=>`${e.number(t.count)} izabranu stavku`,other:()=>`${e.number(t.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Pritisnite Alt + Enter da biste prevukli ${e.plural(t.count,{one:()=>`${e.number(t.count)} izabranu stavku`,other:()=>`${e.number(t.count)} izabranih stavki`})}.`,dragSelectedLongPress:(t,e)=>`Pritisnite dugo da biste prevukli ${e.plural(t.count,{one:()=>`${e.number(t.count)} izabranu stavku`,other:()=>`${e.number(t.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevla\u010Denje je zapo\u010Deto. Pritisnite Tab da biste oti\u0161li do cilja za otpu\u0161tanje, zatim pritisnite Enter za ispu\u0161tanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevla\u010Denje je zapo\u010Deto. Idite do cilja za otpu\u0161tanje, a zatim dvaput dodirnite za otpu\u0161tanje.",dragStartedVirtual:"Prevla\u010Denje je zapo\u010Deto. Idite do cilja za otpu\u0161tanje, a zatim kliknite ili pritinite Enter za otpu\u0161tanje.",dropCanceled:"Otpu\u0161tanje je otkazano.",dropComplete:"Prevla\u010Denje je zavr\u0161eno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevla\u010Denje.",dropDescriptionTouch:"Dvaput dodirnite za otpu\u0161tanje.",dropDescriptionVirtual:"Kliknite za otpu\u0161tanje.",dropIndicator:"Indikator otpu\u0161tanja",dropOnItem:t=>`Otpusti na ${t.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevla\u010Denje u toku. Pritisnite Enter da biste otkazali prevla\u010Denje.",endDragTouch:"Prevla\u010Denje u toku. Dvaput dodirnite da biste otkazali prevla\u010Denje.",endDragVirtual:"Prevla\u010Denje u toku. Kliknite da biste otkazali prevla\u010Denje.",insertAfter:t=>`Umetnite posle ${t.itemText}`,insertBefore:t=>`Umetnite ispred ${t.itemText}`,insertBetween:t=>`Umetnite izme\u0111u ${t.beforeItemText} i ${t.afterItemText}`};var ti={};ti={dragDescriptionKeyboard:"Tryck p\xE5 enter f\xF6r att b\xF6rja dra.",dragDescriptionKeyboardAlt:"Tryck p\xE5 Alt + Retur f\xF6r att b\xF6rja dra.",dragDescriptionLongPress:"Tryck l\xE4nge f\xF6r att b\xF6rja dra.",dragDescriptionTouch:"Dubbeltryck f\xF6r att b\xF6rja dra.",dragDescriptionVirtual:"Klicka f\xF6r att b\xF6rja dra.",dragItem:t=>`Dra ${t.itemText}`,dragSelectedItems:(t,e)=>`Dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} valt objekt`,other:()=>`${e.number(t.count)} valda objekt`})}`,dragSelectedKeyboard:(t,e)=>`Tryck p\xE5 Retur f\xF6r att dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(t,e)=>`Tryck p\xE5 Alt + Retur f\xF6r att dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,dragSelectedLongPress:(t,e)=>`Tryck l\xE4nge f\xF6r att dra ${e.plural(t.count,{one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,dragStartedKeyboard:"B\xF6rja dra. Tryck p\xE5 tabb f\xF6r att navigera till m\xE5let, tryck p\xE5 enter f\xF6r att sl\xE4ppa eller p\xE5 escape f\xF6r att avbryta.",dragStartedTouch:"B\xF6rja dra. Navigera till ett m\xE5l och dubbeltryck f\xF6r att sl\xE4ppa.",dragStartedVirtual:"B\xF6rja dra. Navigera till ett m\xE5l och klicka eller tryck p\xE5 enter f\xF6r att sl\xE4ppa.",dropCanceled:"Sl\xE4pp\xE5tg\xE4rd avbr\xF6ts.",dropComplete:"Sl\xE4pp\xE5tg\xE4rd klar.",dropDescriptionKeyboard:"Tryck p\xE5 enter f\xF6r att sl\xE4ppa. Tryck p\xE5 escape f\xF6r att avbryta drag\xE5tg\xE4rd.",dropDescriptionTouch:"Dubbeltryck f\xF6r att sl\xE4ppa.",dropDescriptionVirtual:"Klicka f\xF6r att sl\xE4ppa.",dropIndicator:"sl\xE4ppindikator",dropOnItem:t=>`Sl\xE4pp p\xE5 ${t.itemText}`,dropOnRoot:"Sl\xE4pp p\xE5",endDragKeyboard:"Drar. Tryck p\xE5 enter f\xF6r att avbryta drag\xE5tg\xE4rd.",endDragTouch:"Drar. Dubbeltryck f\xF6r att avbryta drag\xE5tg\xE4rd.",endDragVirtual:"Drar. Klicka f\xF6r att avbryta drag\xE5tg\xE4rd.",insertAfter:t=>`Infoga efter ${t.itemText}`,insertBefore:t=>`Infoga f\xF6re ${t.itemText}`,insertBetween:t=>`Infoga mellan ${t.beforeItemText} och ${t.afterItemText}`};var ri={};ri={dragDescriptionKeyboard:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in Enter'a bas\u0131n.",dragDescriptionKeyboardAlt:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in Alt + Enter'a bas\u0131n.",dragDescriptionLongPress:"S\xFCr\xFCklemeye ba\u015Flamak i\xE7in uzun bas\u0131n.",dragDescriptionTouch:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in \xE7ift t\u0131klay\u0131n.",dragDescriptionVirtual:"S\xFCr\xFCklemeyi ba\u015Flatmak i\xE7in t\u0131klay\u0131n.",dragItem:t=>`${t.itemText}\u2019i s\xFCr\xFCkle`,dragSelectedItems:(t,e)=>`S\xFCr\xFCkle ${e.plural(t.count,{one:()=>`${e.number(t.count)} se\xE7ili \xF6ge`,other:()=>`${e.number(t.count)} se\xE7ili \xF6ge`})}`,dragSelectedKeyboard:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${e.number(t.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in Enter'a bas\u0131n.`,dragSelectedKeyboardAlt:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${e.number(t.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in Alt + Enter tu\u015Funa bas\u0131n.`,dragSelectedLongPress:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} se\xE7ilmi\u015F \xF6\u011Fe`,other:()=>`${e.number(t.count)} se\xE7ilmi\u015F \xF6\u011Fe`})} \xF6\u011Fesini s\xFCr\xFCklemek i\xE7in uzun bas\u0131n.`,dragStartedKeyboard:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gitmek i\xE7in Tab\u2019a bas\u0131n, ard\u0131ndan b\u0131rakmak i\xE7in Enter\u2019a bas\u0131n veya iptal etmek i\xE7in Escape\u2019e bas\u0131n.",dragStartedTouch:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gidin, ard\u0131ndan b\u0131rakmak i\xE7in \xE7ift t\u0131klay\u0131n.",dragStartedVirtual:"S\xFCr\xFCkleme ba\u015Flat\u0131ld\u0131. Bir b\u0131rakma hedefine gidin, ard\u0131ndan b\u0131rakmak i\xE7in Enter\u2019a t\u0131klay\u0131n veya bas\u0131n.",dropCanceled:"B\u0131rakma iptal edildi.",dropComplete:"B\u0131rakma tamamland\u0131.",dropDescriptionKeyboard:"B\u0131rakmak i\xE7in Enter'a bas\u0131n. S\xFCr\xFCklemeyi iptal etmek i\xE7in Escape'e bas\u0131n.",dropDescriptionTouch:"B\u0131rakmak i\xE7in \xE7ift t\u0131klay\u0131n.",dropDescriptionVirtual:"B\u0131rakmak i\xE7in t\u0131klay\u0131n.",dropIndicator:"b\u0131rakma g\xF6stergesi",dropOnItem:t=>`${t.itemText} \xFCzerine b\u0131rak`,dropOnRoot:"B\u0131rak\u0131n",endDragKeyboard:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in Enter'a bas\u0131n.",endDragTouch:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in \xE7ift t\u0131klay\u0131n.",endDragVirtual:"S\xFCr\xFCkleme. S\xFCr\xFCklemeyi iptal etmek i\xE7in t\u0131klay\u0131n.",insertAfter:t=>`${t.itemText}\u2019den sonra gir`,insertBefore:t=>`${t.itemText}\u2019den \xF6nce gir`,insertBetween:t=>`${t.beforeItemText} ve ${t.afterItemText} aras\u0131na gir`};var ni={};ni={dragDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionKeyboardAlt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Alt + Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionLongPress:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0456 \u0443\u0442\u0440\u0438\u043C\u0443\u0439\u0442\u0435, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragDescriptionVirtual:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dragItem:t=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${t.itemText}`,dragSelectedItems:(t,e)=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C`})}`,dragSelectedKeyboard:(t,e)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragSelectedKeyboardAlt:(t,e)=>`\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Alt + Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragSelectedLongPress:(t,e)=>`\u0423\u0442\u0440\u0438\u043C\u0443\u0439\u0442\u0435, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438(-\u0456\u0432)`})}.`,dragStartedKeyboard:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Tab, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438, \u0430\u0431\u043E Escape, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438.",dragStartedTouch:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dragStartedVirtual:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u043F\u043E\u0447\u0430\u043B\u043E\u0441\u044F. \u041F\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044C \u0434\u043E \u0446\u0456\u043B\u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F, \u043F\u043E\u0442\u0456\u043C \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropCanceled:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u0441\u043A\u0430\u0441\u043E\u0432\u0430\u043D\u043E.",dropComplete:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E.",dropDescriptionKeyboard:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Escape, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",dropDescriptionTouch:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropDescriptionVirtual:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438.",dropIndicator:"\u0456\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F",dropOnItem:t=>`\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 \u043D\u0430 ${t.itemText}`,dropOnRoot:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0443\u0442\u0438 \u043D\u0430",endDragKeyboard:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",endDragTouch:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0434\u0432\u0456\u0447\u0456, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",endDragVirtual:"\u0422\u0440\u0438\u0432\u0430\u0454 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0441\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",insertAfter:t=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043F\u0456\u0441\u043B\u044F ${t.itemText}`,insertBefore:t=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043F\u0435\u0440\u0435\u0434 ${t.itemText}`,insertBetween:t=>`\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043C\u0456\u0436 ${t.beforeItemText} \u0456 ${t.afterItemText}`};var ai={};ai={dragDescriptionKeyboard:"\u6309 Enter \u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionKeyboardAlt:"\u6309 Alt + Enter \u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionLongPress:"\u957F\u6309\u4EE5\u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionTouch:"\u53CC\u51FB\u5F00\u59CB\u62D6\u52A8\u3002",dragDescriptionVirtual:"\u5355\u51FB\u5F00\u59CB\u62D6\u52A8\u3002",dragItem:t=>`\u62D6\u52A8 ${t.itemText}`,dragSelectedItems:(t,e)=>`\u62D6\u52A8 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u9009\u4E2D\u9879\u76EE`,other:()=>`${e.number(t.count)} \u9009\u4E2D\u9879\u76EE`})}`,dragSelectedKeyboard:(t,e)=>`\u6309 Enter \u4EE5\u62D6\u52A8 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${e.number(t.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragSelectedKeyboardAlt:(t,e)=>`\u6309 Alt + Enter \u4EE5\u62D6\u52A8 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${e.number(t.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragSelectedLongPress:(t,e)=>`\u957F\u6309\u4EE5\u62D6\u52A8 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u4E2A\u9009\u5B9A\u9879`,other:()=>`${e.number(t.count)} \u4E2A\u9009\u5B9A\u9879`})}\u3002`,dragStartedKeyboard:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u6309 Tab \u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u6309 Enter \u653E\u7F6E\u6216\u6309 Escape \u53D6\u6D88\u3002",dragStartedTouch:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u53CC\u51FB\u653E\u7F6E\u3002",dragStartedVirtual:"\u5DF2\u5F00\u59CB\u62D6\u52A8\u3002\u5BFC\u822A\u5230\u653E\u7F6E\u76EE\u6807\uFF0C\u7136\u540E\u5355\u51FB\u6216\u6309 Enter \u653E\u7F6E\u3002",dropCanceled:"\u653E\u7F6E\u5DF2\u53D6\u6D88\u3002",dropComplete:"\u653E\u7F6E\u5DF2\u5B8C\u6210\u3002",dropDescriptionKeyboard:"\u6309 Enter \u653E\u7F6E\u3002\u6309 Escape \u53D6\u6D88\u62D6\u52A8\u3002",dropDescriptionTouch:"\u53CC\u51FB\u653E\u7F6E\u3002",dropDescriptionVirtual:"\u5355\u51FB\u653E\u7F6E\u3002",dropIndicator:"\u653E\u7F6E\u6807\u8BB0",dropOnItem:t=>`\u653E\u7F6E\u4E8E ${t.itemText}`,dropOnRoot:"\u653E\u7F6E\u4E8E",endDragKeyboard:"\u6B63\u5728\u62D6\u52A8\u3002\u6309 Enter \u53D6\u6D88\u62D6\u52A8\u3002",endDragTouch:"\u6B63\u5728\u62D6\u52A8\u3002\u53CC\u51FB\u53D6\u6D88\u62D6\u52A8\u3002",endDragVirtual:"\u6B63\u5728\u62D6\u52A8\u3002\u5355\u51FB\u53D6\u6D88\u62D6\u52A8\u3002",insertAfter:t=>`\u63D2\u5165\u5230 ${t.itemText} \u4E4B\u540E`,insertBefore:t=>`\u63D2\u5165\u5230 ${t.itemText} \u4E4B\u524D`,insertBetween:t=>`\u63D2\u5165\u5230 ${t.beforeItemText} \u548C ${t.afterItemText} \u4E4B\u95F4`};var oi={};oi={dragDescriptionKeyboard:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionKeyboardAlt:"\u6309 Alt+Enter \u9375\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionLongPress:"\u9577\u6309\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionTouch:"\u8F15\u9EDE\u5169\u4E0B\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragDescriptionVirtual:"\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u958B\u59CB\u62D6\u66F3\u3002",dragItem:t=>`\u62D6\u66F3\u300C${t.itemText}\u300D`,dragSelectedItems:(t,e)=>`\u62D6\u66F3 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}`,dragSelectedKeyboard:(t,e)=>`\u6309 Enter \u9375\u4EE5\u62D6\u66F3 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragSelectedKeyboardAlt:(t,e)=>`\u6309 Alt+Enter \u9375\u4EE5\u62D6\u66F3 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragSelectedLongPress:(t,e)=>`\u9577\u6309\u4EE5\u62D6\u66F3 ${e.plural(t.count,{one:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`,other:()=>`${e.number(t.count)} \u500B\u9078\u5B9A\u9805\u76EE`})}\u3002`,dragStartedKeyboard:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u6309 Tab \u9375\u4EE5\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u6309 Enter \u9375\u4EE5\u653E\u7F6E\uFF0C\u6216\u6309 Escape \u9375\u4EE5\u53D6\u6D88\u3002",dragStartedTouch:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u8F15\u9EDE\u5169\u4E0B\u4EE5\u653E\u7F6E\u3002",dragStartedVirtual:"\u5DF2\u958B\u59CB\u62D6\u66F3\u3002\u700F\u89BD\u81F3\u653E\u7F6E\u76EE\u6A19\uFF0C\u7136\u5F8C\u6309\u4E00\u4E0B\u6ED1\u9F20\u6216\u6309 Enter \u9375\u4EE5\u653E\u7F6E\u3002",dropCanceled:"\u653E\u7F6E\u5DF2\u53D6\u6D88\u3002",dropComplete:"\u653E\u7F6E\u5DF2\u5B8C\u6210\u3002",dropDescriptionKeyboard:"\u6309 Enter \u9375\u4EE5\u653E\u7F6E\u3002\u6309 Escape \u9375\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",dropDescriptionTouch:"\u8F15\u9EDE\u5169\u4E0B\u4EE5\u653E\u7F6E\u3002",dropDescriptionVirtual:"\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u653E\u7F6E\u3002",dropIndicator:"\u653E\u7F6E\u6307\u793A\u5668",dropOnItem:t=>`\u653E\u7F6E\u5728\u300C${t.itemText}\u300D\u4E0A`,dropOnRoot:"\u653E\u7F6E\u5728",endDragKeyboard:"\u62D6\u66F3\u4E2D\u3002\u6309 Enter \u9375\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",endDragTouch:"\u62D6\u66F3\u4E2D\u3002\u8F15\u9EDE\u5169\u4E0B\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",endDragVirtual:"\u62D6\u66F3\u4E2D\u3002\u6309\u4E00\u4E0B\u6ED1\u9F20\u4EE5\u53D6\u6D88\u62D6\u66F3\u3002",insertAfter:t=>`\u63D2\u5165\u81F3\u300C${t.itemText}\u300D\u4E4B\u5F8C`,insertBefore:t=>`\u63D2\u5165\u81F3\u300C${t.itemText}\u300D\u4E4B\u524D`,insertBetween:t=>`\u63D2\u5165\u81F3\u300C${t.beforeItemText}\u300D\u548C\u300C${t.afterItemText}\u300D\u4E4B\u9593`};var ir={};ir={"ar-AE":Co,"bg-BG":So,"cs-CZ":To,"da-DK":_o,"de-DE":Io,"el-GR":No,"en-US":zo,"es-ES":$o,"et-EE":Ao,"fi-FI":Bo,"fr-FR":Po,"he-IL":Ko,"hr-HR":Oo,"hu-HU":Ro,"it-IT":Mo,"ja-JP":Fo,"ko-KR":Vo,"lt-LT":Lo,"lv-LV":Ho,"nb-NO":Wo,"nl-NL":Uo,"pl-PL":qo,"pt-BR":Xo,"pt-PT":Go,"ro-RO":Yo,"ru-RU":Zo,"sk-SK":Jo,"sl-SI":Qo,"sr-SP":ei,"sv-SE":ti,"tr-TR":ri,"uk-UA":ni,"zh-CN":ai,"zh-TW":oi};function qu(t){return t&&t.__esModule?t.default:t}var ii={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function Xu(t){let{hasDragButton:e,isDisabled:r}=t,n=wn(qu(ir),"@react-aria/dnd"),a=(0,v.useRef)({options:t,x:0,y:0}).current;a.options=t;let i=(0,v.useRef)(null),[l,s]=(0,v.useState)(!1),c=j=>{i.current=j,s(!!j)},{addGlobalListener:u,removeAllGlobalListeners:p}=G1(),d=(0,v.useRef)(null),m=j=>{var N;var w,C;if(j.defaultPrevented)return;if(j.stopPropagation(),d.current==="virtual"){j.preventDefault(),h(j.target),d.current=null;return}typeof t.onDragStart=="function"&&t.onDragStart({type:"dragstart",x:j.clientX,y:j.clientY});let S=t.getItems();(w=(C=j.dataTransfer).clearData)==null||w.call(C),Nu(j.dataTransfer,S);let _=me.all;if(typeof t.getAllowedDropOperations=="function"){let z=t.getAllowedDropOperations();_=me.none;for(let $ of z)_|=me[$]||me.none}Ln(_);let E=fo[_]||"none";j.dataTransfer.effectAllowed=E==="cancel"?"none":E,typeof((N=t.preview)==null?void 0:N.current)=="function"&&t.preview.current(S,(z,$,P)=>{if(!z)return;let I=z.getBoundingClientRect(),A=j.currentTarget.getBoundingClientRect(),B=j.clientX-A.x,R=j.clientY-A.y;(B>I.width||R>I.height)&&(B=I.width/2,R=I.height/2);let K=B,M=R;typeof $=="number"&&typeof P=="number"&&(K=$,M=P),K=Math.max(0,Math.min(K,I.width)),M=Math.max(0,Math.min(M,I.height));let H=2*Math.round(I.height/2);z.style.height=`${H}px`,j.dataTransfer.setDragImage(z,K,M)}),u(window,"drop",z=>{z.preventDefault(),z.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.")},{once:!0}),a.x=j.clientX,a.y=j.clientY;let T=j.target;requestAnimationFrame(()=>{c(T)})},g=j=>{j.stopPropagation(),!(j.clientX===a.x&&j.clientY===a.y)&&(typeof t.onDragMove=="function"&&t.onDragMove({type:"dragmove",x:j.clientX,y:j.clientY}),a.x=j.clientX,a.y=j.clientY)},f=j=>{if(j.stopPropagation(),typeof t.onDragEnd=="function"){let w={type:"dragend",x:j.clientX,y:j.clientY,dropOperation:ar[j.dataTransfer.dropEffect]};Er&&(w.dropOperation=ar[Er]),t.onDragEnd(w)}c(null),p(),Ln(me.none),Cr(void 0)};(0,v.useEffect)(()=>()=>{if(i.current&&(!i.current.isConnected||parseInt(v.version,10)<17)){if(typeof a.options.onDragEnd=="function"){let j={type:"dragend",x:0,y:0,dropOperation:ar[Er||"none"]};a.options.onDragEnd(j)}c(null),Ln(me.none),Cr(void 0)}},[a]);let b=j=>{j.pointerType!=="keyboard"&&j.pointerType!=="virtual"||h(j.target)},h=j=>{if(typeof a.options.onDragStart=="function"){let w=j.getBoundingClientRect();a.options.onDragStart({type:"dragstart",x:w.x+w.width/2,y:w.y+w.height/2})}Mu({element:j,items:a.options.getItems(),allowedDropOperations:typeof a.options.getAllowedDropOperations=="function"?a.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(w){c(null),typeof a.options.onDragEnd=="function"&&a.options.onDragEnd(w)}},n),c(j)},y=Mn(),k=l?ii[y].end:ii[y].start,x=io(n.format(k)),D={};return e||(D={...x,onPointerDown(j){if(d.current=Ys(j.nativeEvent)?"virtual":j.pointerType,j.width<1&&j.height<1)d.current="virtual";else{let w=j.currentTarget.getBoundingClientRect(),C=j.clientX-w.x,S=j.clientY-w.y,_=w.width/2,E=w.height/2;Math.abs(C-_)<=.5&&Math.abs(S-E)<=.5?d.current="virtual":d.current=j.pointerType}},onKeyDownCapture(j){j.target===j.currentTarget&&j.key==="Enter"&&(j.preventDefault(),j.stopPropagation())},onKeyUpCapture(j){j.target===j.currentTarget&&j.key==="Enter"&&(j.preventDefault(),j.stopPropagation(),h(j.target))},onClick(j){(Gs(j.nativeEvent)||d.current==="virtual")&&(j.preventDefault(),j.stopPropagation(),h(j.target))}}),r?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:!1}:{dragProps:{...D,draggable:"true",onDragStart:m,onDrag:g,onDragEnd:f},dragButtonProps:{...x,onPress:b},isDragging:l}}function Gu(t){return t&&t.__esModule?t.default:t}var Yu={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function li(){let t=wn(Gu(ir),"@react-aria/dnd"),e=Mn();return{dropProps:{...io(Wn()?t.format(Yu[e]):""),onClick:()=>{}}}}var Zu=800;function Ju(t){let{hasDropButton:e,isDisabled:r}=t,[n,a]=(0,v.useState)(!1),i=(0,v.useRef)({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:me.all,dropActivateTimer:void 0}).current,l=x=>{if(a(!0),typeof t.onDropEnter=="function"){let D=x.currentTarget.getBoundingClientRect();t.onDropEnter({type:"dropenter",x:x.clientX-D.x,y:x.clientY-D.y})}},s=x=>{if(a(!1),typeof t.onDropExit=="function"){let D=x.currentTarget.getBoundingClientRect();t.onDropExit({type:"dropexit",x:x.clientX-D.x,y:x.clientY-D.y})}},c=x=>{x.preventDefault(),x.stopPropagation();let D=si(x);if(x.clientX===i.x&&x.clientY===i.y&&D===i.allowedOperations){x.dataTransfer.dropEffect=i.dropEffect;return}i.x=x.clientX,i.y=x.clientY;let j=i.dropEffect;if(D!==i.allowedOperations){let w=Un(D),C=w[0];if(typeof t.getDropOperation=="function"){let S=new wr(x.dataTransfer);C=Tr(D,t.getDropOperation(S,w))}i.dropEffect=On[C]||"none"}if(typeof t.getDropOperationForPoint=="function"){let w=new wr(x.dataTransfer),C=x.currentTarget.getBoundingClientRect();i.dropEffect=On[Tr(D,t.getDropOperationForPoint(w,Un(D),i.x-C.x,i.y-C.y))]||"none"}if(i.allowedOperations=D,x.dataTransfer.dropEffect=i.dropEffect,i.dropEffect==="none"&&j!=="none"?s(x):i.dropEffect!=="none"&&j==="none"&&l(x),typeof t.onDropMove=="function"&&i.dropEffect!=="none"){let w=x.currentTarget.getBoundingClientRect();t.onDropMove({type:"dropmove",x:i.x-w.x,y:i.y-w.y})}if(clearTimeout(i.dropActivateTimer),t.onDropActivate&&typeof t.onDropActivate=="function"&&i.dropEffect!=="none"){let w=t.onDropActivate,C=x.currentTarget.getBoundingClientRect();i.dropActivateTimer=setTimeout(()=>{w({type:"dropactivate",x:i.x-C.x,y:i.y-C.y})},Zu)}},u=x=>{if(x.preventDefault(),x.stopPropagation(),i.dragOverElements.add(x.target),i.dragOverElements.size>1)return;let D=si(x),j=Un(D),w=j[0];if(typeof t.getDropOperation=="function"){let C=new wr(x.dataTransfer);w=Tr(D,t.getDropOperation(C,j))}if(typeof t.getDropOperationForPoint=="function"){let C=new wr(x.dataTransfer),S=x.currentTarget.getBoundingClientRect();w=Tr(D,t.getDropOperationForPoint(C,j,x.clientX-S.x,x.clientY-S.y))}i.x=x.clientX,i.y=x.clientY,i.allowedOperations=D,i.dropEffect=On[w]||"none",x.dataTransfer.dropEffect=i.dropEffect,w!=="cancel"&&l(x)},p=x=>{x.preventDefault(),x.stopPropagation(),i.dragOverElements.delete(x.target);for(let D of i.dragOverElements)x.currentTarget.contains(D)||i.dragOverElements.delete(D);i.dragOverElements.size>0||(i.dropEffect!=="none"&&s(x),clearTimeout(i.dropActivateTimer))},d=x=>{if(x.preventDefault(),x.stopPropagation(),Cr(i.dropEffect),typeof t.onDrop=="function"){let j=ar[i.dropEffect],w=zu(x.dataTransfer),C=x.currentTarget.getBoundingClientRect(),S={type:"drop",x:x.clientX-C.x,y:x.clientY-C.y,items:w,dropOperation:j};t.onDrop(S)}let D={...xe};i.dragOverElements.clear(),s(x),clearTimeout(i.dropActivateTimer),D.draggingCollectionRef==null?Cr(void 0):Ou(D)},m=jr(x=>{typeof t.onDropEnter=="function"&&t.onDropEnter(x)}),g=jr(x=>{typeof t.onDropExit=="function"&&t.onDropExit(x)}),f=jr(x=>{typeof t.onDropActivate=="function"&&t.onDropActivate(x)}),b=jr(x=>{typeof t.onDrop=="function"&&t.onDrop(x)}),h=jr((x,D)=>t.getDropOperation?t.getDropOperation(x,D):D[0]),{ref:y}=t;lo(()=>{if(!(r||!y.current))return wo({element:y.current,getDropOperation:h,onDropEnter(x){a(!0),m(x)},onDropExit(x){a(!1),g(x)},onDrop:b,onDropActivate:f})},[r,y,h,m,g,b,f]);let{dropProps:k}=li();return r?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!e&&k,onDragEnter:u,onDragOver:c,onDragLeave:p,onDrop:d},dropButtonProps:{...e&&k},isDropTarget:n}}function si(t){let e=ho[t.dataTransfer.effectAllowed];Vn&&(e&=Vn);let r=me.none;return qs()?(t.altKey&&(r|=me.copy),t.ctrlKey&&!q1()&&(r|=me.link),t.metaKey&&(r|=me.move)):(t.altKey&&(r|=me.link),t.shiftKey&&(r|=me.move),t.ctrlKey&&(r|=me.copy)),r?e&r:e}function Un(t){let e=[];return t&me.move&&e.push("move"),t&me.copy&&e.push("copy"),t&me.link&&e.push("link"),e}function Tr(t,e){return t&me[e]?e:"cancel"}function Qu(t,e,r,n,a=!1,i=!1){switch(n){case"left":return a?qn(t,e,r,i,"left"):Xn(t,e,r,i,"left");case"right":return a?Xn(t,e,r,i,"right"):qn(t,e,r,i,"right");case"up":return Xn(t,e,r,i);case"down":return qn(t,e,r,i)}}function qn(t,e,r,n=!1,a=null){var i,l,s,c;if(!r)return{type:"root"};if(r.type==="root"){let u=((i=t.getFirstKey)==null?void 0:i.call(t))??null;return u==null?null:{type:"item",key:u,dropPosition:"before"}}if(r.type==="item"){let u=null;u=a?a==="right"?(l=t.getKeyRightOf)==null?void 0:l.call(t,r.key):(s=t.getKeyLeftOf)==null?void 0:s.call(t,r.key):(c=t.getKeyBelow)==null?void 0:c.call(t,r.key);let p=e.getKeyAfter(r.key);if(u!=null&&u!==p)return{type:"item",key:u,dropPosition:r.dropPosition};switch(r.dropPosition){case"before":return{type:"item",key:r.key,dropPosition:"on"};case"on":{let d=e.getItem(r.key),m=u==null?null:e.getItem(u);return d&&m&&m.level>=d.level?{type:"item",key:m.key,dropPosition:"before"}:{type:"item",key:r.key,dropPosition:"after"}}case"after":{let d=e.getItem(r.key);if(d&&d.nextKey==null&&d.parentKey!=null){let m=e.getItem(d.parentKey);if((m==null?void 0:m.nextKey)!=null)return{type:"item",key:m.nextKey,dropPosition:"before"};if(m)return{type:"item",key:m.key,dropPosition:"after"}}if((d==null?void 0:d.nextKey)!=null)return{type:"item",key:d.nextKey,dropPosition:"on"}}}}return n?{type:"root"}:null}function Xn(t,e,r,n=!1,a=null){var i,l,s,c,u;if(!r||n&&r.type==="root"){let p=null,d=(i=t.getLastKey)==null?void 0:i.call(t);for(;d!=null;)p=d,d=(l=e.getItem(d))==null?void 0:l.parentKey;return p==null?null:{type:"item",key:p,dropPosition:"after"}}if(r.type==="item"){let p=null;p=a?a==="left"?(s=t.getKeyLeftOf)==null?void 0:s.call(t,r.key):(c=t.getKeyRightOf)==null?void 0:c.call(t,r.key):(u=t.getKeyAbove)==null?void 0:u.call(t,r.key);let d=e.getKeyBefore(r.key);if(p!=null&&p!==d)return{type:"item",key:p,dropPosition:r.dropPosition};switch(r.dropPosition){case"before":{let m=e.getItem(r.key);if(m&&m.prevKey!=null){let g=ui(e,m.prevKey);if(g)return g}return p==null?{type:"root"}:{type:"item",key:p,dropPosition:"on"}}case"on":return{type:"item",key:r.key,dropPosition:"before"};case"after":return ui(e,r.key)||{type:"item",key:r.key,dropPosition:"on"}}}return r.type==="root"?null:{type:"root"}}function ui(t,e){let r=t.getItem(e),n=t.getKeyAfter(e),a=n==null?null:t.getItem(n);if(r&&a&&a.level>r.level){let i=_s(r,t),l=null;for(let s of i)s.type==="item"&&(l=s);if(l)return{type:"item",key:l.key,dropPosition:"after"}}return null}var _r=20;function ec(t){let e=(0,v.useRef)(null),r=(0,v.useRef)(!0),n=(0,v.useRef)(!0);(0,v.useEffect)(()=>{if(t.current){e.current=F1(t.current)?t.current:L1(t.current);let l=window.getComputedStyle(e.current);r.current=/(auto|scroll)/.test(l.overflowX),n.current=/(auto|scroll)/.test(l.overflowY)}},[t]);let a=(0,v.useRef)({timer:void 0,dx:0,dy:0}).current;(0,v.useEffect)(()=>()=>{a.timer&&(a.timer=(cancelAnimationFrame(a.timer),void 0))},[a]);let i=(0,v.useCallback)(()=>{r.current&&e.current&&(e.current.scrollLeft+=a.dx),n.current&&e.current&&(e.current.scrollTop+=a.dy),a.timer&&(a.timer=requestAnimationFrame(i))},[e,a]);return{move(l,s){if(!Zs()||W1()||!e.current)return;let c=e.current.getBoundingClientRect(),u=_r,p=_r,d=c.height-_r,m=c.width-_r;lm||sd?(lm&&(a.dx=l-m),sd&&(a.dy=s-d),a.timer||(a.timer=requestAnimationFrame(i))):this.stop()},stop(){a.timer&&(a.timer=(cancelAnimationFrame(a.timer),void 0))}}}function tc(t,e,r){let n=(0,v.useRef)({props:t,state:e,nextTarget:null,dropOperation:null}).current;n.props=t,n.state=e;let a=(0,v.useCallback)(async m=>{let{onInsert:g,onRootDrop:f,onItemDrop:b,onReorder:h,onMove:y,acceptedDragTypes:k="all",shouldAcceptItemDrop:x}=n.props,{draggingKeys:D}=xe,j=Le(r),{target:w,dropOperation:C,items:S}=m,_=S;(k!=="all"||x)&&(_=S.filter(E=>{let T;return T=E.kind==="directory"?new Set([yo]):E.kind==="file"?new Set([E.type]):E.types,k==="all"||k.some(N=>T.has(N))?w.type==="item"&&w.dropPosition==="on"&&x?x(w,T):!0:!1})),_.length>0&&(w.type==="root"&&f&&await f({items:_,dropOperation:C}),w.type==="item"&&(w.dropPosition==="on"&&b&&await b({items:_,dropOperation:C,isInternal:j,target:w}),y&&j&&await y({keys:D,dropOperation:C,target:w}),w.dropPosition!=="on"&&(!j&&g&&await g({items:_,dropOperation:C,target:w}),j&&h&&await h({keys:D,dropOperation:C,target:w}))))},[n,r]),i=ec(r),{dropProps:l}=Ju({ref:r,onDropEnter(){n.nextTarget!=null&&e.setTarget(n.nextTarget)},onDropMove(m){n.nextTarget!=null&&e.setTarget(n.nextTarget),i.move(m.x,m.y)},getDropOperationForPoint(m,g,f,b){let{draggingKeys:h,dropCollectionRef:y}=xe,k=Le(r),x=t.dropTargetDelegate.getDropTargetFromPoint(f,b,D=>e.getDropOperation({target:D,types:m,allowedOperations:g,isInternal:k,draggingKeys:h})!=="cancel");if(!x)return n.dropOperation="cancel",n.nextTarget=null,"cancel";if(n.dropOperation=e.getDropOperation({target:x,types:m,allowedOperations:g,isInternal:k,draggingKeys:h}),n.dropOperation==="cancel"){let D={type:"root"},j=e.getDropOperation({target:D,types:m,allowedOperations:g,isInternal:k,draggingKeys:h});j!=="cancel"&&(x=D,n.dropOperation=j)}return x&&n.dropOperation!=="cancel"&&(r==null?void 0:r.current)!==(y==null?void 0:y.current)&&Ct(r),n.nextTarget=n.dropOperation==="cancel"?null:x,n.dropOperation},onDropExit(){Ct(void 0),e.setTarget(null),i.stop()},onDropActivate(m){var g;((g=e.target)==null?void 0:g.type)==="item"&&typeof t.onDropActivate=="function"&&t.onDropActivate({type:"dropactivate",x:m.x,y:m.y,target:e.target})},onDrop(m){Ct(r),e.target&&u(m,e.target);let{draggingCollectionRef:g}=xe;g??jo()}}),s=(0,v.useRef)(null),c=(0,v.useCallback)(()=>{var g,f;let{state:m}=n;if(s.current){let{target:b,collection:h,selectedKeys:y,focusedKey:k,isInternal:x,draggingKeys:D}=s.current;if(m.collection.size>h.size&&m.selectionManager.isSelectionEqual(y)){let j=new Set;for(let w of m.collection.getKeys())h.getItem(w)||j.add(w);if(m.selectionManager.setSelectedKeys(j),m.selectionManager.focusedKey===k){let w=j.keys().next().value;if(w!=null){let C=m.collection.getItem(w);(C==null?void 0:C.type)==="cell"&&(w=C.parentKey),w!=null&&m.selectionManager.setFocusedKey(w),m.selectionManager.selectionMode==="none"&&Cn("keyboard")}}}else k!=null&&m.selectionManager.focusedKey===k&&x&&b.type==="item"&&b.dropPosition!=="on"&&D.has((g=m.collection.getItem(k))==null?void 0:g.parentKey)?(m.selectionManager.setFocusedKey(((f=m.collection.getItem(k))==null?void 0:f.parentKey)??null),Cn("keyboard")):m.selectionManager.focusedKey===k&&b.type==="item"&&b.dropPosition==="on"&&m.collection.getItem(b.key)!=null?(m.selectionManager.setFocusedKey(b.key),Cn("keyboard")):m.selectionManager.focusedKey!=null&&!m.selectionManager.isSelected(m.selectionManager.focusedKey)&&Cn("keyboard");m.selectionManager.setFocused(!0)}},[n]),u=(0,v.useCallback)((m,g)=>{let{state:f}=n;s.current={timeout:void 0,focusedKey:f.selectionManager.focusedKey,collection:f.collection,selectedKeys:f.selectionManager.selectedKeys,draggingKeys:xe.draggingKeys,isInternal:Le(r),target:g},(n.props.onDrop||a)({type:"drop",x:m.x,y:m.y,target:g,items:m.items,dropOperation:m.dropOperation}),s.current.timeout=setTimeout(()=>{c(),s.current=null},50)},[n,a,r,c]);(0,v.useEffect)(()=>()=>{s.current&&clearTimeout(s.current.timeout)},[]),lo(()=>{s.current&&e.collection!==s.current.collection&&c()});let{direction:p}=zn();(0,v.useEffect)(()=>{if(!r.current)return;let m=(b,h=!0,y="down")=>Qu(n.props.keyboardDelegate,n.state.collection,b,y,p==="rtl",h),g=(b,h=!0)=>m(b,h,"up"),f=(b,h,y,k,x=!0)=>{let D=0,j,{draggingKeys:w}=xe,C=Le(r);do{let S=k(b,x);if(!S)return null;b=S,j=n.state.getDropOperation({target:S,types:h,allowedOperations:y,isInternal:C,draggingKeys:w}),b.type==="root"&&D++}while(j==="cancel"&&!n.state.isDropTarget(b)&&D<2);return j==="cancel"?null:b};return wo({element:r.current,preventFocusOnDrop:!0,getDropOperation(b,h){if(n.state.target){let{draggingKeys:y}=xe,k=Le(r);return n.state.getDropOperation({target:n.state.target,types:b,allowedOperations:h,isInternal:k,draggingKeys:y})}return f(null,b,h,m)?"move":"cancel"},onDropEnter(b,h){let y=ct(h.items),k=n.state.selectionManager,x=null;Ct(r);let D=k.focusedKey,j="after",w=D==null?null:n.state.collection.getItem(D);if((w==null?void 0:w.type)==="cell"&&(D=w.parentKey),D!=null&&k.isSelected(D)&&(k.selectedKeys.size>1&&k.firstSelectedKey===D?j="before":D=k.lastSelectedKey),D!=null){x={type:"item",key:D,dropPosition:j};let{draggingKeys:C}=xe,S=Le(r);n.state.getDropOperation({target:x,types:y,allowedOperations:h.allowedDropOperations,isInternal:S,draggingKeys:C})==="cancel"&&(x=f(x,y,h.allowedDropOperations,m,!1)??f(x,y,h.allowedDropOperations,g,!1))}x||(x=f(null,y,h.allowedDropOperations,m)),n.state.setTarget(x)},onDropExit(){Ct(void 0),n.state.setTarget(null)},onDropTargetEnter(b){n.state.setTarget(b)},onDropActivate(b,h){(h==null?void 0:h.type)==="item"&&(h==null?void 0:h.dropPosition)==="on"&&typeof n.props.onDropActivate=="function"&&n.props.onDropActivate({type:"dropactivate",x:b.x,y:b.y,target:h})},onDrop(b,h){Ct(r),n.state.target&&u(b,h||n.state.target)},onKeyDown(b,h){var j,w,C,S,_;var y,k;let{keyboardDelegate:x}=n.props,D=ct(h.items);switch(b.key){case"ArrowDown":if(x.getKeyBelow){let E=f(n.state.target,D,h.allowedDropOperations,(T,N)=>m(T,N,"down"));n.state.setTarget(E)}break;case"ArrowUp":if(x.getKeyAbove){let E=f(n.state.target,D,h.allowedDropOperations,(T,N)=>m(T,N,"up"));n.state.setTarget(E)}break;case"ArrowLeft":if(x.getKeyLeftOf){let E=f(n.state.target,D,h.allowedDropOperations,(T,N)=>m(T,N,"left"));n.state.setTarget(E)}break;case"ArrowRight":if(x.getKeyRightOf){let E=f(n.state.target,D,h.allowedDropOperations,(T,N)=>m(T,N,"right"));n.state.setTarget(E)}break;case"Home":if(x.getFirstKey){let E=f(null,D,h.allowedDropOperations,m);n.state.setTarget(E)}break;case"End":if(x.getLastKey){let E=f(null,D,h.allowedDropOperations,g);n.state.setTarget(E)}break;case"PageDown":if(x.getKeyPageBelow){let E=n.state.target;if(!E)E=f(null,D,h.allowedDropOperations,m);else{let T=(j=x.getFirstKey)==null?void 0:j.call(x);E.type==="item"&&(T=E.key);let N=null;T!=null&&(N=x.getKeyPageBelow(T));let z=E.type==="item"?E.dropPosition:"after";if((N==null||E.type==="item"&&E.key===((w=x.getLastKey)==null?void 0:w.call(x)))&&(N=((C=x.getLastKey)==null?void 0:C.call(x))??null,z="after"),N==null)break;E={type:"item",key:N,dropPosition:z};let{draggingCollectionRef:$,draggingKeys:P}=xe,I=($==null?void 0:$.current)===(r==null?void 0:r.current);n.state.getDropOperation({target:E,types:D,allowedOperations:h.allowedDropOperations,isInternal:I,draggingKeys:P})==="cancel"&&(E=f(E,D,h.allowedDropOperations,m,!1)??f(E,D,h.allowedDropOperations,g,!1))}n.state.setTarget(E??n.state.target)}break;case"PageUp":{if(!x.getKeyPageAbove)break;let E=n.state.target;if(!E)E=f(null,D,h.allowedDropOperations,g);else if(E.type==="item"){if(E.key===((S=x.getFirstKey)==null?void 0:S.call(x)))E={type:"root"};else{let z=x.getKeyPageAbove(E.key),$=E.dropPosition;if(z??(z=(_=x.getFirstKey)==null?void 0:_.call(x),$="before"),z==null)break;E={type:"item",key:z,dropPosition:$}}let{draggingKeys:T}=xe,N=Le(r);n.state.getDropOperation({target:E,types:D,allowedOperations:h.allowedDropOperations,isInternal:N,draggingKeys:T})==="cancel"&&(E=f(E,D,h.allowedDropOperations,g,!1)??f(E,D,h.allowedDropOperations,m,!1))}n.state.setTarget(E??n.state.target);break}}(y=(k=n.props).onKeyDown)==null||y.call(k,b)}})},[n,r,u,p]);let d=Nn();return Rn.set(e,{id:d,ref:r}),{collectionProps:Ye(l,{id:d,"aria-describedby":null})}}function ci(t,e,r){let{dropProps:n}=li(),a=Iu(e);(0,v.useEffect)(()=>{if(r.current)return Ru({element:r.current,target:t.target,getDropOperation(p,d){let{draggingKeys:m}=xe,g=Le(a);return e.getDropOperation({target:t.target,types:p,allowedOperations:d,isInternal:g,draggingKeys:m})},activateButtonRef:t.activateButtonRef})},[r,t.target,e,a,t.activateButtonRef]);let i=Wn(),{draggingKeys:l}=xe,s=Le(a),c=i&&e.getDropOperation({target:t.target,types:ct(i.dragTarget.items),allowedOperations:i.dragTarget.allowedDropOperations,isInternal:s,draggingKeys:l})!=="cancel",u=e.isDropTarget(t.target);return(0,v.useEffect)(()=>{i&&u&&r.current&&r.current.focus()},[u,i,r]),{dropProps:{...n,"aria-hidden":!i||c?void 0:"true"},isDropTarget:u}}function rc(t){return t&&t.__esModule?t.default:t}function nc(t,e,r){var f,b;let{target:n}=t,{collection:a}=e,i=wn(rc(ir),"@react-aria/dnd"),l=Wn(),{dropProps:s}=ci(t,e,r),c=Nn(),u=h=>{var y,k;return h==null?"":((y=a.getTextValue)==null?void 0:y.call(a,h))??((k=a.getItem(h))==null?void 0:k.textValue)??""},p="",d;if(n.type==="root")p=i.format("dropOnRoot"),d=`${c} ${_u(e)}`;else if(n.dropPosition==="on")p=i.format("dropOnItem",{itemText:u(n.key)});else{let h,y;if(n.dropPosition==="before"){let k=(f=a.getItem(n.key))==null?void 0:f.prevKey,x=k==null?null:a.getItem(k);h=(x==null?void 0:x.type)==="item"?x.key:null}else h=n.key;if(n.dropPosition==="after"){let k=(b=a.getItem(n.key))==null?void 0:b.nextKey,x=k==null?null:a.getItem(k);y=(x==null?void 0:x.type)==="item"?x.key:null}else y=n.key;h!=null&&y!=null?p=i.format("insertBetween",{beforeItemText:u(h),afterItemText:u(y)}):h==null?y!=null&&(p=i.format("insertBefore",{itemText:u(y)})):p=i.format("insertAfter",{itemText:u(h)})}let m=e.isDropTarget(n),g=l?s["aria-hidden"]:"true";return{dropIndicatorProps:{...s,id:c,"aria-roledescription":i.format("dropIndicator"),"aria-label":p,"aria-labelledby":d,"aria-hidden":g,tabIndex:-1},isDropTarget:m,isHidden:!m&&!!g}}function ac(t){return t&&t.__esModule?t.default:t}var oc={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function ic(t,e){var f;let r=wn(ac(ir),"@react-aria/dnd"),n=e.isDisabled||e.selectionManager.isDisabled(t.key),{dragProps:a,dragButtonProps:i}=Xu({getItems(){return e.getItems(t.key)},preview:e.preview,getAllowedDropOperations:e.getAllowedDropOperations,hasDragButton:t.hasDragButton,onDragStart(b){e.startDrag(t.key,b),Ku(e.draggingKeys)},onDragMove(b){e.moveDrag(b)},onDragEnd(b){let{dropOperation:h}=b,y=h==="cancel"?!1:Le();e.endDrag({...b,keys:e.draggingKeys,isInternal:y}),jo()}}),l=e.collection.getItem(t.key),s=e.getKeysForDrag(t.key).size,c=s>1&&e.selectionManager.isSelected(t.key),u,p,d=Mn();if(!t.hasDragButton&&e.selectionManager.selectionMode!=="none"){let b=oc[d][c?"selected":"notSelected"];t.hasAction&&d==="keyboard"&&(b+="Alt"),p=c?r.format(b,{count:s}):r.format(b),delete a.onClick}else if(c)u=r.format("dragSelectedItems",{count:s});else{var m;let b=((f=(m=e.collection).getTextValue)==null?void 0:f.call(m,t.key))??(l==null?void 0:l.textValue)??"";u=r.format("dragItem",{itemText:b})}let g=io(p);if(p&&Object.assign(a,g),!t.hasDragButton&&t.hasAction){let{onKeyDownCapture:b,onKeyUpCapture:h}=a;d==="touch"&&delete a["aria-describedby"],a.onKeyDownCapture=y=>{y.altKey&&(b==null||b(y))},a.onKeyUpCapture=y=>{y.altKey&&(h==null||h(y))}}return{dragProps:n?{}:a,dragButtonProps:{...i,isDisabled:n,"aria-label":u}}}function lc(t,e,r){let{draggingCollectionRef:n}=xe;e.draggingKeys.size>0&&(n==null?void 0:n.current)!==r.current&&Pu(r)}var sc=os(),uc=v.forwardRef(function(t,e){let r=t.children,[n,a]=(0,v.useState)(null),i=(0,v.useRef)(null),l=(0,v.useRef)(void 0);return(0,v.useImperativeHandle)(e,()=>(s,c)=>{let u=r(s),p,d,m;u&&typeof u=="object"&&"element"in u?(p=u.element,d=u.x,m=u.y):p=u,(0,sc.flushSync)(()=>{a(p)}),c(i.current,d,m),l.current=requestAnimationFrame(()=>{a(null)})},[r]),(0,v.useEffect)(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[]),n?v.createElement("div",{style:{zIndex:-100,position:"absolute",top:0,left:-1e5},ref:i},n):null}),cc=class{getPrimaryStart(t){return this.orientation==="horizontal"?t.left:t.top}getPrimaryEnd(t){return this.orientation==="horizontal"?t.right:t.bottom}getSecondaryStart(t){return this.orientation==="horizontal"?t.top:t.left}getSecondaryEnd(t){return this.orientation==="horizontal"?t.bottom:t.right}getFlowStart(t){return this.layout==="stack"?this.getPrimaryStart(t):this.getSecondaryStart(t)}getFlowEnd(t){return this.layout==="stack"?this.getPrimaryEnd(t):this.getSecondaryEnd(t)}getFlowSize(t){return this.getFlowEnd(t)-this.getFlowStart(t)}getDropTargetFromPoint(t,e,r){var y,k;if(this.collection[Symbol.iterator]().next().done||!this.ref.current)return{type:"root"};let n=this.ref.current.getBoundingClientRect(),a=this.orientation==="horizontal"?t:e,i=this.orientation==="horizontal"?e:t;a+=this.getPrimaryStart(n),i+=this.getSecondaryStart(n);let l=this.layout==="stack"?a:i,s=this.orientation==="horizontal"&&this.direction==="rtl",c=this.layout==="grid"&&this.orientation==="vertical"&&this.direction==="rtl",u=this.layout==="stack"?s:c,p=(y=this.ref.current)==null?void 0:y.dataset.collection,d=this.ref.current.querySelectorAll(p?`[data-collection="${CSS.escape(p)}"]`:"[data-key]"),m=new Map;for(let x of d)x instanceof HTMLElement&&x.dataset.key!=null&&m.set(x.dataset.key,x);let g=[...this.collection].filter(x=>x.type==="item"),f=0,b=g.length;for(;f{S?f=x+1:b=x};if(athis.getPrimaryEnd(w))C(!s);else if(ithis.getSecondaryEnd(w))C(!c);else{let S={type:"item",key:D.key,dropPosition:"on"};if(r(S))l<=this.getFlowStart(w)+5&&r({...S,dropPosition:"before"})?S.dropPosition=u?"after":"before":l>=this.getFlowEnd(w)-5&&r({...S,dropPosition:"after"})&&(S.dropPosition=u?"before":"after");else{let _=this.getFlowStart(w)+this.getFlowSize(w)/2;l<=_&&r({...S,dropPosition:"before"})?S.dropPosition=u?"after":"before":l>=_&&r({...S,dropPosition:"after"})&&(S.dropPosition=u?"before":"after")}return S}}let h=g[Math.min(f,g.length-1)];return n=(k=m.get(String(h.key)))==null?void 0:k.getBoundingClientRect(),n&&(a{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)e(l)};for(let i of t)e(i);let r=null,n=0,a=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&a++,r=l,r.nextKey=void 0;this._size=a,this.lastKey=(r==null?void 0:r.key)??null}};function dc(t){let{filter:e,layoutDelegate:r}=t,n=Rx(t),a=(0,v.useMemo)(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),i=Sx(t,(0,v.useCallback)(s=>e?new di(e(s)):new di(s),[e]),(0,v.useMemo)(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning])),l=(0,v.useMemo)(()=>new Nx(i,n,{layoutDelegate:r}),[i,n,r]);return pi(i,l),{collection:i,disabledKeys:a,selectionManager:l}}function pc(t,e){let r=(0,v.useMemo)(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),n=t.selectionManager.withCollection(r);return pi(r,n),{collection:r,selectionManager:n,disabledKeys:t.disabledKeys}}function pi(t,e){let r=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(e.focusedKey!=null&&!t.getItem(e.focusedKey)&&r.current){let n=r.current.getItem(e.focusedKey),a=[...r.current.getKeys()].map(p=>{let d=r.current.getItem(p);return(d==null?void 0:d.type)==="item"?d:null}).filter(p=>p!==null),i=[...t.getKeys()].map(p=>{let d=t.getItem(p);return(d==null?void 0:d.type)==="item"?d:null}).filter(p=>p!==null),l=((a==null?void 0:a.length)??0)-((i==null?void 0:i.length)??0),s=Math.min(l>1?Math.max(((n==null?void 0:n.index)??0)-l+1,0):(n==null?void 0:n.index)??0,((i==null?void 0:i.length)??0)-1),c=null,u=!1;for(;s>=0;){if(!e.isDisabled(i[s].key)){c=i[s];break}s((n==null?void 0:n.index)??0)&&(s=(n==null?void 0:n.index)??0),s--)}e.setFocusedKey(c?c.key:null)}r.current=t},[t,e])}function mc(t){let{getItems:e,isDisabled:r,collection:n,selectionManager:a,onDragStart:i,onDragMove:l,onDragEnd:s,preview:c,getAllowedDropOperations:u}=t,[,p]=(0,v.useState)(!1),d=(0,v.useRef)(new Set),m=(0,v.useRef)(null),g=f=>{let b=new Set;if(a.isSelected(f))for(let h of a.selectedKeys){let y=n.getItem(h);if(y){let k=!1,x=y.parentKey;for(;x!=null;){if(a.selectedKeys.has(x)){k=!0;break}let D=n.getItem(x);x=D?D.parentKey:null}k||b.add(h)}}else b.add(f);return b};return{collection:n,selectionManager:a,get draggedKey(){return m.current},get draggingKeys(){return d.current},isDragging(f){return d.current.has(f)},getKeysForDrag:g,getItems(f){var y;let b=g(f),h=[];for(let k of b){let x=(y=n.getItem(k))==null?void 0:y.value;x!=null&&h.push(x)}return e(g(f),h)},isDisabled:r,preview:c,getAllowedDropOperations:u,startDrag(f,b){let h=g(f);d.current=h,m.current=f,a.setFocused(!1),p(!0),typeof i=="function"&&i({...b,keys:h})},moveDrag(f){typeof l=="function"&&l({...f,keys:d.current})},endDrag(f){let{isInternal:b}=f;typeof s=="function"&&s({...f,keys:d.current,isInternal:b}),d.current=new Set,m.current=null,p(!1)}}}function gc(t){let{acceptedDragTypes:e="all",isDisabled:r,onInsert:n,onRootDrop:a,onItemDrop:i,onReorder:l,onMove:s,shouldAcceptItemDrop:c,collection:u,selectionManager:p,onDropEnter:d,getDropOperation:m,onDrop:g}=t,[f,b]=(0,v.useState)(null),h=(0,v.useRef)(null),y=x=>{if(x.dropPosition==="before"){let D=u.getItem(x.key);return D&&D.prevKey!=null?{type:"item",key:D.prevKey,dropPosition:"after"}:null}else if(x.dropPosition==="after"){let D=u.getItem(x.key);return D&&D.nextKey!=null?{type:"item",key:D.nextKey,dropPosition:"before"}:null}return null},k=(0,v.useCallback)(x=>{let{target:D,types:j,allowedOperations:w,isInternal:C,draggingKeys:S}=x;if(r||!D)return"cancel";if(e==="all"||e.some(_=>j.has(_))){let _=n&&D.type==="item"&&!C&&(D.dropPosition==="before"||D.dropPosition==="after"),E=l&&D.type==="item"&&C&&(D.dropPosition==="before"||D.dropPosition==="after")&&hc(u,D,S),T=D.type!=="item"||D.dropPosition!=="on"||!c||c(D,j),N=s&&D.type==="item"&&C&&T,z=a&&D.type==="root"&&!C,$=i&&D.type==="item"&&D.dropPosition==="on"&&!(C&&D.key!=null&&S.has(D.key))&&T;if(g||_||E||N||z||$)return m?m(D,j,w):w[0]}return"cancel"},[r,u,e,m,n,a,i,c,l,s,g]);return{collection:u,selectionManager:p,isDisabled:r,target:f,setTarget(x){if(this.isDropTarget(x))return;let D=h.current;D&&typeof t.onDropExit=="function"&&t.onDropExit({type:"dropexit",x:0,y:0,target:D}),x&&typeof d=="function"&&d({type:"dropenter",x:0,y:0,target:x}),h.current=x??null,b(x??null)},isDropTarget(x){let D=h.current;return!D||!x?!1:Gn(x,D)?!0:(x==null?void 0:x.type)==="item"&&(D==null?void 0:D.type)==="item"&&x.key!==D.key&&x.dropPosition!==D.dropPosition&&x.dropPosition!=="on"&&D.dropPosition!=="on"?Gn(y(x),D)||Gn(x,y(D)):!1},getDropOperation(x){return k(x)}}}function Gn(t,e){if(!t)return!e;switch(t.type){case"root":return(e==null?void 0:e.type)==="root";case"item":return(e==null?void 0:e.type)==="item"&&(e==null?void 0:e.key)===t.key&&(e==null?void 0:e.dropPosition)===t.dropPosition}}function hc(t,e,r){var a;let n=t.getItem(e.key);for(let i of r)if(((a=t.getItem(i))==null?void 0:a.parentKey)!==(n==null?void 0:n.parentKey))return!1;return!0}var fc=(0,v.createContext)({}),xc=(0,v.createContext)({}),bc=class extends Ix{filter(t,e){let r=e.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return e.addDescendants(n,t),n}return null}};bc.type="separator";var mi=(0,v.createContext)(null),lr=(0,v.createContext)(null),yc=(0,v.forwardRef)(function(t,e){[t,e]=no(t,e,mi);let r=(0,v.useContext)(lr);return r?v.createElement(gi,{state:r,props:t,listBoxRef:e}):v.createElement(_x,{content:v.createElement(jx,t)},n=>v.createElement(vc,{props:t,listBoxRef:e,collection:n}))});function vc({props:t,listBoxRef:e,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:n}=(0,v.useContext)(Ja),a=dc({...t,layoutDelegate:n});return v.createElement(gi,{state:a,props:t,listBoxRef:e})}function gi({state:t,props:e,listBoxRef:r}){[e,r]=no(e,r,M1);let{dragAndDropHooks:n,layout:a="stack",orientation:i="vertical",filter:l}=e,s=pc(t,l),{collection:c,selectionManager:u}=s,p=!!(n!=null&&n.useDraggableCollectionState),d=!!(n!=null&&n.useDroppableCollectionState),{direction:m}=zn(),{disabledBehavior:g,disabledKeys:f}=u,b=H1({usage:"search",sensitivity:"base"}),{isVirtualized:h,layoutDelegate:y,dropTargetDelegate:k,CollectionRoot:x}=(0,v.useContext)(Ja),D=(0,v.useMemo)(()=>e.keyboardDelegate||new kx({collection:c,collator:b,ref:r,disabledKeys:f,disabledBehavior:g,layout:a,orientation:i,direction:m,layoutDelegate:y}),[c,b,r,g,f,i,m,e.keyboardDelegate,a,y]),{listBoxProps:j}=ku({...e,shouldSelectOnPressUp:p||e.shouldSelectOnPressUp,keyboardDelegate:D,isVirtualized:h},s,r);(0,v.useRef)(p),(0,v.useRef)(d),(0,v.useEffect)(()=>{},[p,d]);let w,C,S,_=!1,E=null,T=(0,v.useRef)(null);if(p&&n){w=n.useDraggableCollectionState({collection:c,selectionManager:u,preview:n.renderDragPreview?T:void 0}),n.useDraggableCollection({},w,r);let K=n.DragPreview;E=n.renderDragPreview?v.createElement(K,{ref:T},n.renderDragPreview):null}if(d&&n){C=n.useDroppableCollectionState({collection:c,selectionManager:u});let K=n.dropTargetDelegate||k||new n.ListDropTargetDelegate(c,r,{orientation:i,layout:a,direction:m});S=n.useDroppableCollection({keyboardDelegate:D,dropTargetDelegate:K},C,r),_=C.isDropTarget({type:"root"})}let{focusProps:N,isFocused:z,isFocusVisible:$}=f1(),P=s.collection.size===0,I={isDropTarget:_,isEmpty:P,isFocused:z,isFocusVisible:$,layout:e.layout||"stack",state:s},A=nr({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:I}),B=null;P&&e.renderEmptyState&&(B=v.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(I)));let R=st(e,{global:!0});return v.createElement(In,null,v.createElement("div",{...Ye(R,A,j,N,S==null?void 0:S.collectionProps),ref:r,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":_||void 0,"data-empty":P||void 0,"data-focused":z||void 0,"data-focus-visible":$||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},v.createElement(Ms,{values:[[mi,e],[lr,s],[Dn,{dragAndDropHooks:n,dragState:w,dropState:C}],[xc,{elementType:"div"}],[$x,{render:kc}],[zx,{name:"ListBoxSection",render:Dc}]]},v.createElement(Q1,null,v.createElement(x,{collection:c,scrollRef:r,persistedKeys:Ax(u,n,C),renderDropIndicator:Ns(n,C)}))),B,E))}function Dc(t,e,r,n="react-aria-ListBoxSection"){let a=(0,v.useContext)(lr),{dragAndDropHooks:i,dropState:l}=(0,v.useContext)(Dn),{CollectionBranch:s}=(0,v.useContext)(Ja),[c,u]=y1(),{headingProps:p,groupProps:d}=Eu({heading:u,"aria-label":t["aria-label"]??void 0}),m=nr({defaultClassName:n,className:t.className,style:t.style,values:{}}),g=st(t,{global:!0});return delete g.id,v.createElement("section",{...Ye(g,m,d),ref:e},v.createElement(fc.Provider,{value:{...p,ref:c}},v.createElement(s,{collection:a.collection,parent:r,renderDropIndicator:Ns(i,l)})))}var hi=zs(wx,function(t,e,r){let n=Ls(e),a=(0,v.useContext)(lr),{dragAndDropHooks:i,dragState:l,dropState:s}=(0,v.useContext)(Dn),{optionProps:c,labelProps:u,descriptionProps:p,...d}=wu({key:r.key,"aria-label":t==null?void 0:t["aria-label"]},a,n),{hoverProps:m,isHovered:g}=Fs({isDisabled:!d.allowsSelection&&!d.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),f=null;l&&i&&(f=i.useDraggableItem({key:r.key},l));let b=null;s&&i&&(b=i.useDroppableItem({target:{type:"item",key:r.key,dropPosition:"on"}},s,n));let h=l&&l.isDragging(r.key),y=nr({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...d,isHovered:g,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!l,isDragging:h,isDropTarget:b==null?void 0:b.isDropTarget}});(0,v.useEffect)(()=>{r.textValue},[r.textValue]);let k=t.href?"a":"div",x=st(t,{global:!0});return delete x.id,delete x.onClick,v.createElement(k,{...Ye(x,y,c,m,f==null?void 0:f.dragProps,b==null?void 0:b.dropProps),ref:n,"data-allows-dragging":!!l||void 0,"data-selected":d.isSelected||void 0,"data-disabled":d.isDisabled||void 0,"data-hovered":g||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-dragging":h||void 0,"data-drop-target":(b==null?void 0:b.isDropTarget)||void 0,"data-selection-mode":a.selectionManager.selectionMode==="none"?void 0:a.selectionManager.selectionMode},v.createElement(Ms,{values:[[v1,{slots:{[g1]:u,label:u,description:p}}],[eb,{isSelected:d.isSelected}]]},y.children))});function kc(t,e){e=Ls(e);let{dragAndDropHooks:r,dropState:n}=(0,v.useContext)(Dn),{dropIndicatorProps:a,isHidden:i,isDropTarget:l}=r.useDropIndicator(t,n,e);return i?null:v.createElement(wc,{...t,dropIndicatorProps:a,isDropTarget:l,ref:e})}function jc(t,e){let{dropIndicatorProps:r,isDropTarget:n,...a}=t,i=nr({...a,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return v.createElement("div",{...r,...i,role:"option",ref:e,"data-drop-target":n||void 0})}var wc=(0,v.forwardRef)(jc);zs(Mx,function(t,e,r){let n=(0,v.useContext)(lr),{isLoading:a,onLoadMore:i,scrollOffset:l,...s}=t,c=(0,v.useRef)(null);Cx((0,v.useMemo)(()=>({onLoadMore:i,collection:n==null?void 0:n.collection,sentinelRef:c,scrollOffset:l}),[i,l,n==null?void 0:n.collection]),c);let u=nr({...s,id:void 0,children:r.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),p={tabIndex:-1};return v.createElement(v.Fragment,null,v.createElement("div",{style:{position:"relative",width:0,height:0},inert:Ex(!0)},v.createElement("div",{"data-testid":"loadMoreSentinel",ref:c,style:{position:"absolute",height:1,width:1}})),a&&u.children&&v.createElement("div",{...Ye(st(t,{global:!0}),p),...u,role:"option",ref:e},u.children))});var Ec=(0,v.createContext)({}),Cc=(0,v.forwardRef)(function(t,e){[t,e]=no(t,e,Ec);let{toolbarProps:r}=Cu(t,e),n=nr({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),a=st(t,{global:!0});return delete a.id,v.createElement("div",{...Ye(a,n,r),ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},n.children)});function Sc(t){return{dragAndDropHooks:(0,v.useMemo)(()=>{let{onDrop:e,onInsert:r,onItemDrop:n,onReorder:a,onMove:i,onRootDrop:l,getItems:s,renderDragPreview:c,renderDropIndicator:u,dropTargetDelegate:p}=t,d=!!s,m=!!(e||r||n||a||i||l),g={};return d&&(g.useDraggableCollectionState=function(f){return mc({...f,...t})},g.useDraggableCollection=lc,g.useDraggableItem=ic,g.DragPreview=uc,g.renderDragPreview=c,g.isVirtualDragging=Fu),m&&(g.useDroppableCollectionState=function(f){return gc({...f,...t})},g.useDroppableItem=ci,g.useDroppableCollection=function(f,b,h){return tc({...f,...t},b,h)},g.useDropIndicator=nc,g.renderDropIndicator=u,g.dropTargetDelegate=p,g.ListDropTargetDelegate=cc),g},[t])}}var Tc=U(),o=Ul(h0(),1),_c=t=>{let e=(0,Tc.c)(13),{className:r,size:n,gap:a,durationMs:i}=t,l=n===void 0?8:n,s=a===void 0?"gap-1":a,c=i===void 0?1200:i,u=`${c}ms`,p;e[0]===u?p=e[1]:(p={animationDuration:u},e[0]=u,e[1]=p);let d=p,m;e[2]!==r||e[3]!==s?(m=yn("flex",s,r),e[2]=r,e[3]=s,e[4]=m):m=e[4];let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=[0,1,2],e[5]=g):g=e[5];let f;e[6]!==d||e[7]!==c||e[8]!==l?(f=g.map(h=>(0,o.jsx)(mx,{width:l,height:l,className:"fill-current text-current animate-ellipsis-dot",style:{...d,animationDelay:`${c/3*h}ms`}},h)),e[6]=d,e[7]=c,e[8]=l,e[9]=f):f=e[9];let b;return e[10]!==m||e[11]!==f?(b=(0,o.jsx)("div",{className:m,"aria-label":"Loading",children:f}),e[10]=m,e[11]=f,e[12]=b):b=e[12],b},Ic=U();const fi=t=>{let e=(0,Ic.c)(11),{title:r,children:n,show:a,delayMs:i,kind:l}=t,s=i===void 0?2e3:i,c=l===void 0?"info":l;if(!a)return null;let u;e[0]===r?u=e[1]:(u=r&&(0,o.jsx)("div",{className:"flex justify-between",children:(0,o.jsx)("span",{className:"font-bold text-lg flex items-center mb-1",children:r})}),e[0]=r,e[1]=u);let p;e[2]===n?p=e[3]:(p=(0,o.jsx)("div",{className:"flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",children:(0,o.jsx)("div",{children:n})}),e[2]=n,e[3]=p);let d;e[4]!==c||e[5]!==u||e[6]!==p?(d=(0,o.jsx)("div",{className:"flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-200 opacity-95",children:(0,o.jsxs)(wt,{kind:c,className:"flex flex-col rounded py-2 px-4 animate-in slide-in-from-top w-fit",children:[u,p]})}),e[4]=c,e[5]=u,e[6]=p,e[7]=d):d=e[7];let m=d,g;return e[8]!==m||e[9]!==s?(g=(0,o.jsx)(vn,{milliseconds:s,children:m}),e[8]=m,e[9]=s,e[10]=g):g=e[10],g};var xi=U(),Nc=1e3,zc=5e3;const $c=()=>{let t=(0,xi.c)(6),e=J(xs),r=J(s0);if(e){let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)(Q,{content:"Connecting to a marimo runtime",children:(0,o.jsx)("div",{className:"flex items-center",children:(0,o.jsx)(_c,{size:5,className:"text-yellow-500"})})}),t[0]=n):n=t[0];let a=n,i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(wt,{kind:"info",className:"flex flex-col rounded py-2 px-4 animate-in slide-in-from-top w-fit",children:(0,o.jsx)("div",{className:"flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",children:(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(kn,{className:"h-4 w-4"}),(0,o.jsx)("p",{children:"Connecting to a marimo runtime ..."})]})})}),t[1]=i):i=t[1];let l=i,s;return t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(vn,{milliseconds:Nc,children:(0,o.jsx)("div",{className:"m-0 flex items-center min-h-[28px] fixed top-5 left-1/2 transform -translate-x-1/2 z-200",children:(0,o.jsx)(vn,{milliseconds:zc,fallback:a,children:l})})}),t[2]=s):s=t[2],s}if(r){let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)("div",{className:"flex items-center gap-2",children:(0,o.jsx)("p",{children:"Failed to connect."})}),t[3]=n):n=t[3];let a;return t[4]===r?a=t[5]:(a=(0,o.jsx)(fi,{show:r,kind:"danger",children:n}),t[4]=r,t[5]=a),a}},bi=()=>{let t=(0,xi.c)(6),e=J(l0),r=bs();if(e){let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)("p",{children:"Not connected to a runtime."}),t[0]=n):n=t[0];let a;t[1]===r?a=t[2]:(a=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[n,(0,o.jsx)(ae,{variant:"link",onClick:r,children:"Click to connect"})]}),t[1]=r,t[2]=a);let i;return t[3]!==e||t[4]!==a?(i=(0,o.jsx)(fi,{show:e,kind:"info",children:a}),t[3]=e,t[4]=a,t[5]=i):i=t[5],i}return null};var Ac=U();const Bc=t=>{let e=(0,Ac.c)(33),{disabled:r,tooltip:n}=t,a=r===void 0?!1:r,i=n===void 0?"Actions":n,l=dx(),{locale:s}=zn(),c;e[0]===i?c=e[1]:(c=(0,o.jsx)("div",{children:i}),e[0]=i,e[1]=c);let u;e[2]===a?u=e[3]:(u=!a&&(0,o.jsxs)("div",{className:"text-xs text-muted-foreground font-medium pt-1 -mt-2 border-t border-border flex items-center gap-2",children:[(0,o.jsx)("span",{children:"Open command palette"}),Ze("global.commandPalette",!1)]}),e[2]=a,e[3]=u);let p;e[4]!==c||e[5]!==u?(p=(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[c,u]}),e[4]=c,e[5]=u,e[6]=p):p=e[6];let d=p,m=a?"disabled":"hint-green",g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,o.jsx)(t1,{strokeWidth:1.8}),e[7]=g):g=e[7];let f;e[8]===d?f=e[9]:(f=(0,o.jsx)(Q,{content:d,children:g}),e[8]=d,e[9]=f);let b;e[10]!==a||e[11]!==m||e[12]!==f?(b=(0,o.jsx)(ut,{"aria-label":"Config",shape:"circle",size:"small",className:"h-[27px] w-[27px]","data-testid":"notebook-menu-dropdown",disabled:a,color:m,children:f}),e[10]=a,e[11]=m,e[12]=f,e[13]=b):b=e[13];let h=b,y=Pc,k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=N=>{let z=(0,o.jsx)(yt,{variant:N.variant,disabled:N.disabled,onSelect:$=>N.handle($),"data-testid":`notebook-menu-dropdown-${N.label}`,children:y(N)},N.label);return N.tooltip?(0,o.jsx)(Q,{content:N.tooltip,side:"left",delayDuration:100,children:(0,o.jsx)("span",{children:z})},N.label):z},e[14]=k):k=e[14];let x=k,D;e[15]!==h||e[16]!==a?(D=(0,o.jsx)(Dt,{asChild:!0,disabled:a,children:h}),e[15]=h,e[16]=a,e[17]=D):D=e[17];let j;if(e[18]!==l){let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=z=>z.hidden||z.redundant?null:z.dropdown?(0,o.jsxs)(bx,{children:[(0,o.jsx)(hx,{"data-testid":`notebook-menu-dropdown-${z.label}`,children:y(z)}),(0,o.jsx)(xx,{children:(0,o.jsx)(gx,{children:z.dropdown.map($=>(0,o.jsxs)(v.Fragment,{children:[$.divider&&(0,o.jsx)(vt,{}),x($)]},$.label))})})]},z.label):(0,o.jsxs)(v.Fragment,{children:[z.divider&&(0,o.jsx)(vt,{}),x(z)]},z.label),e[20]=N):N=e[20],j=l.map(N),e[18]=l,e[19]=j}else j=e[19];let w;e[21]===Symbol.for("react.memo_cache_sentinel")?(w=(0,o.jsx)(vt,{}),e[21]=w):w=e[21];let C;e[22]===s?C=e[23]:(C=(0,o.jsxs)("span",{children:["Locale: ",s]}),e[22]=s,e[23]=C);let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=(0,o.jsxs)("span",{children:["Version: ",m0()]}),e[24]=S):S=e[24];let _;e[25]===C?_=e[26]:(_=(0,o.jsxs)("div",{className:"flex-1 px-2 text-xs text-muted-foreground flex flex-col gap-1",children:[C,S]}),e[25]=C,e[26]=_);let E;e[27]!==j||e[28]!==_?(E=(0,o.jsxs)(kt,{align:"end",className:"no-print w-[240px]",children:[j,w,_]}),e[27]=j,e[28]=_,e[29]=E):E=e[29];let T;return e[30]!==D||e[31]!==E?(T=(0,o.jsxs)(jt,{modal:!1,children:[D,E]}),e[30]=D,e[31]=E,e[32]=T):T=e[32],T};function Pc(t){return(0,o.jsxs)(o.Fragment,{children:[t.icon&&(0,o.jsx)("span",{className:"flex-0 mr-2",children:t.icon}),(0,o.jsx)("span",{className:"flex-1",children:t.labelElement||t.label}),t.hotkey&&(0,o.jsx)(co,{shortcut:t.hotkey,className:"ml-4"}),t.rightElement]})}function Ir(t){return()=>{let e=bt.get(vr),r=new y0({search:e.findText,caseSensitive:e.caseSensitive,regexp:e.regexp,replace:e.replaceText,wholeWord:e.wholeWord});return r.valid?t({query:Wx(r).create(),search:r}):!1}}var yi=t=>Ir(({query:e})=>{let r=dn(),n=bt.get(vr).currentView||{view:r[0],range:{from:0,to:0}},a=n.range.to;t==="prev"&&(r.reverse(),a=n.range.from);let i=r.indexOf(n.view);i<0&&(i=0);let l=[...r,...r].slice(i);for(let s of l){let c=t==="next"?e.nextMatch(s.state,0,a??0):e.prevMatch(s.state,a??s.state.doc.length,s.state.doc.length);if(!c){a=null,s.dispatch({selection:La.single(0)});continue}let u=La.single(c.from,c.to);return s.dispatch({selection:u,effects:[b0.scrollIntoView(u.main,{y:"center"})],userEvent:"select.search"}),bt.set(vr,{type:"setCurrentView",view:s,range:{from:c.from,to:c.to}}),c}return!1});const Nr=yi("next"),Yn=yi("prev"),Kc=Ir(({query:t})=>{var n;let e=dn(),r=[];for(let a of e){if(a.state.readOnly)continue;let i=(n=t.matchAll(a.state,1e9))==null?void 0:n.map(s=>{let{from:c,to:u}=s;return{from:c,to:u,insert:t.getReplacement(s)}});if(!i||i.length===0)continue;let l=a.state.doc.toString();r.push(()=>{df(a,l,{userEvent:"input.replace.all"})}),a.dispatch({changes:i,userEvent:"input.replace.all"})}return()=>{for(let a of r)a()}}),Oc=Ir(({query:t})=>{let e=dn(),r=bt.get(vr).currentView||{view:e[0],range:{from:0,to:0}},n=r.range.from,a=e.indexOf(r.view);a<0&&(a=0);let i=[...e,...e].slice(a);for(let l of i){let s=t.nextMatch(l.state,0,n??0);if(!s){n=null,l.dispatch({selection:La.single(0)});continue}let c=l.state.toText(t.getReplacement(s));return l.dispatch({changes:[{from:s.from,to:s.to,insert:c}],userEvent:"input.replace"}),Nr()}return!1}),Rc=Ir(({query:t})=>{let e=dn(),r=0,n=new Map;for(let a of e){let i=t.matchAll(a.state,1e9)||[];for(let l of i){let{from:s,to:c}=l,u=n.get(a)||new Map;u.set(`${s}:${c}`,r++),n.set(a,u)}}return{count:r,position:n}});var Mc=U();const Fc=()=>{var He;let t=(0,Mc.c)(102),[e,r]=(0,v.useState)(!1),[n,a]=mr(vr),[i,l]=(0,v.useState)(),s=(0,v.useRef)(null),c=J(a0),u;t[0]!==e||t[1]!==n.isOpen?(u=()=>e&&n.isOpen?!1:Ux(),t[0]=e,t[1]=n.isOpen,t[2]=u):u=t[2],Ee("cell.findAndReplace",u);let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{let ie=Rc();l(ie===!1?void 0:ie)},t[3]=p):p=t[3];let d=p,m,g;t[4]===n.isOpen?(m=t[5],g=t[6]):(m=()=>{n.isOpen&&s.current&&(s.current.focus(),s.current.select())},g=[n.isOpen],t[4]=n.isOpen,t[5]=m,t[6]=g),(0,v.useEffect)(m,g);let f;t[7]!==n.findText||t[8]!==n.isOpen?(f=()=>{if(!n.isOpen){$s();return}if(n.findText===""){l(void 0),$s();return}d(),Yx()},t[7]=n.findText,t[8]=n.isOpen,t[9]=f):f=t[9];let b;if(t[10]!==n.caseSensitive||t[11]!==n.findText||t[12]!==n.isOpen||t[13]!==n.regexp||t[14]!==n.wholeWord?(b=[n.findText,n.isOpen,n.caseSensitive,n.regexp,n.wholeWord],t[10]=n.caseSensitive,t[11]=n.findText,t[12]=n.isOpen,t[13]=n.regexp,t[14]=n.wholeWord,t[15]=b):b=t[15],(0,v.useEffect)(f,b),!n.isOpen)return null;let h=n.currentView,y;t[16]!==i||t[17]!==h?(y=h&&i?(He=i.position.get(h.view))==null?void 0:He.get(`${h.range.from}:${h.range.to}`):void 0,t[16]=i,t[17]=h,t[18]=y):y=t[18];let k=y,x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=()=>r(!0),t[19]=x):x=t[19];let D;t[20]===Symbol.for("react.memo_cache_sentinel")?(D=()=>r(!1),t[20]=D):D=t[20];let j;t[21]===a?j=t[22]:(j=ie=>{ie.key==="Escape"&&a({type:"setIsOpen",isOpen:!1})},t[21]=a,t[22]=j);let w;t[23]===a?w=t[24]:(w=()=>a({type:"setIsOpen",isOpen:!1}),t[23]=a,t[24]=w);let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,o.jsx)(Ge,{className:"w-4 h-4"}),t[25]=C):C=t[25];let S;t[26]===w?S=t[27]:(S=(0,o.jsx)("div",{className:"absolute top-0 right-0",children:(0,o.jsx)(ae,{"data-testid":"close-find-replace-button",onClick:w,size:"xs",variant:"text",children:C})}),t[26]=w,t[27]=S);let _;t[28]===a?_=t[29]:(_=ie=>{a({type:"setFind",find:ie.target.value})},t[28]=a,t[29]=_);let E;t[30]!==n.findText||t[31]!==_?(E=(0,o.jsx)(ao,{ref:s,"data-testid":"find-input",value:n.findText,autoFocus:!0,className:"mr-2 mb-0",placeholder:"Find",onKeyDown:Lc,onChange:_}),t[30]=n.findText,t[31]=_,t[32]=E):E=t[32];let T;t[33]===a?T=t[34]:(T=ie=>{a({type:"setReplace",replace:ie.target.value})},t[33]=a,t[34]=T);let N;t[35]!==n.replaceText||t[36]!==T?(N=(0,o.jsx)(ao,{"data-testid":"replace-input",value:n.replaceText,placeholder:"Replace",onChange:T}),t[35]=n.replaceText,t[36]=T,t[37]=N):N=t[37];let z;t[38]!==E||t[39]!==N?(z=(0,o.jsxs)("div",{className:"flex flex-col flex-2 gap-2 w-[55%]",children:[E,N]}),t[38]=E,t[39]=N,t[40]=z):z=t[40];let $=n.caseSensitive?"on":"off",P;t[41]===a?P=t[42]:(P=ie=>a({type:"setCaseSensitive",caseSensitive:ie}),t[41]=a,t[42]=P);let I;t[43]===Symbol.for("react.memo_cache_sentinel")?(I=(0,o.jsx)(W0,{className:"w-4 h-4"}),t[43]=I):I=t[43];let A;t[44]!==n.caseSensitive||t[45]!==$||t[46]!==P?(A=(0,o.jsx)(Q,{content:"Case Sensitive",children:(0,o.jsx)(po,{size:"sm",pressed:n.caseSensitive,"data-state":$,onPressedChange:P,children:I})}),t[44]=n.caseSensitive,t[45]=$,t[46]=P,t[47]=A):A=t[47];let B=n.wholeWord?"on":"off",R;t[48]===a?R=t[49]:(R=ie=>a({type:"setWholeWord",wholeWord:ie}),t[48]=a,t[49]=R);let K;t[50]===Symbol.for("react.memo_cache_sentinel")?(K=(0,o.jsx)(yu,{className:"w-4 h-4"}),t[50]=K):K=t[50];let M;t[51]!==n.wholeWord||t[52]!==B||t[53]!==R?(M=(0,o.jsx)(Q,{content:"Match Whole Word",children:(0,o.jsx)(po,{size:"sm",pressed:n.wholeWord,"data-state":B,onPressedChange:R,children:K})}),t[51]=n.wholeWord,t[52]=B,t[53]=R,t[54]=M):M=t[54];let H=n.regexp?"on":"off",O;t[55]===a?O=t[56]:(O=ie=>a({type:"setRegex",regexp:ie}),t[55]=a,t[56]=O);let F;t[57]===Symbol.for("react.memo_cache_sentinel")?(F=(0,o.jsx)(hu,{className:"w-4 h-4"}),t[57]=F):F=t[57];let L;t[58]!==n.regexp||t[59]!==H||t[60]!==O?(L=(0,o.jsx)(Q,{content:"Use Regular Expression",children:(0,o.jsx)(po,{size:"sm",pressed:n.regexp,"data-state":H,onPressedChange:O,children:F})}),t[58]=n.regexp,t[59]=H,t[60]=O,t[61]=L):L=t[61];let V;t[62]!==A||t[63]!==M||t[64]!==L?(V=(0,o.jsxs)("div",{className:"flex items-center gap-[2px]",children:[A,M,L]}),t[62]=A,t[63]=M,t[64]=L,t[65]=V):V=t[65];let q;t[66]===Symbol.for("react.memo_cache_sentinel")?(q=()=>{Oc()&&d()},t[66]=q):q=t[66];let W=n.findText==="",X;t[67]===W?X=t[68]:(X=(0,o.jsx)(ae,{"data-testid":"replace-next-button",size:"xs",variant:"outline",className:"h-6 text-xs",onClick:q,disabled:W,children:"Replace Next"}),t[67]=W,t[68]=X);let te;t[69]===Symbol.for("react.memo_cache_sentinel")?(te=()=>{let ie=Kc();if(!ie)return;d();let{dismiss:et}=kr({title:"Replaced all occurrences",action:(0,o.jsx)(fb,{"data-testid":"undo-replace-all-button",onClick:()=>{ie(),gt()}})}),gt=et},t[69]=te):te=t[69];let re=n.findText==="",ee;t[70]===re?ee=t[71]:(ee=(0,o.jsx)(ae,{"data-testid":"replace-all-button",size:"xs",variant:"outline",className:"h-6 text-xs",onClick:te,disabled:re,children:"Replace All"}),t[70]=re,t[71]=ee);let oe;t[72]!==X||t[73]!==ee?(oe=(0,o.jsxs)("div",{className:"flex items-center gap-[2px]",children:[X,ee]}),t[72]=X,t[73]=ee,t[74]=oe):oe=t[74];let Y;t[75]!==V||t[76]!==oe?(Y=(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[V,oe]}),t[75]=V,t[76]=oe,t[77]=Y):Y=t[77];let se;t[78]!==z||t[79]!==Y?(se=(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[z,Y]}),t[78]=z,t[79]=Y,t[80]=se):se=t[80];let de;t[81]===Symbol.for("react.memo_cache_sentinel")?(de=(0,o.jsx)(Q,{content:"Find Previous",children:(0,o.jsx)(ae,{"data-testid":"find-prev-button",size:"xs",variant:"secondary",onClick:Hc,children:(0,o.jsx)($0,{className:"w-4 h-4"})})}),t[81]=de):de=t[81];let be;t[82]===Symbol.for("react.memo_cache_sentinel")?(be=(0,o.jsx)(Q,{content:"Find Next",children:(0,o.jsx)(ae,{"data-testid":"find-next-button",size:"xs",variant:"secondary",onClick:Wc,children:(0,o.jsx)(A0,{className:"w-4 h-4"})})}),t[82]=be):be=t[82];let ge;t[83]!==k||t[84]!==i?(ge=i!=null&&k==null&&(0,o.jsxs)("span",{className:"text-sm",children:[i.count," matches"]}),t[83]=k,t[84]=i,t[85]=ge):ge=t[85];let _e;t[86]!==k||t[87]!==i?(_e=i!=null&&k!=null&&(0,o.jsxs)("span",{className:"text-sm",children:[k+1," of ",i.count]}),t[86]=k,t[87]=i,t[88]=_e):_e=t[88];let Ie;t[89]!==ge||t[90]!==_e?(Ie=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[de,be,ge,_e]}),t[89]=ge,t[90]=_e,t[91]=Ie):Ie=t[91];let le;t[92]===c?le=t[93]:(le=c.getHotkey("cell.findAndReplace"),t[92]=c,t[93]=le);let ce;t[94]===le.key?ce=t[95]:(ce=(0,o.jsxs)("div",{className:"text-xs text-muted-foreground flex gap-1 mt-2",children:["Press"," ",(0,o.jsx)(hb,{shortcut:le.key})," ","again to open the native browser search."]}),t[94]=le.key,t[95]=ce);let we;return t[96]!==S||t[97]!==se||t[98]!==Ie||t[99]!==ce||t[100]!==j?(we=(0,o.jsx)(In,{restoreFocus:!0,autoFocus:!0,children:(0,o.jsxs)("div",{onFocus:x,onClick:Vc,onBlur:D,className:"fixed top-0 right-0 w-[500px] flex flex-col bg-(--sage-1) p-4 z-50 mt-2 mr-3 rounded-md shadow-lg border gap-2 print:hidden",onKeyDown:j,children:[S,se,Ie,ce]})}),t[96]=S,t[97]=se,t[98]=Ie,t[99]=ce,t[100]=j,t[101]=we):we=t[101],we};function Vc(t){t.stopPropagation(),t.preventDefault()}function Lc(t){t.key==="Enter"&&(t.shiftKey?Yn():Nr()),(t.metaKey||t.ctrlKey)&&t.key.toLowerCase()==="g"&&(t.preventDefault(),t.shiftKey?Yn():Nr())}function Hc(){return Yn()}function Wc(){return Nr()}var Uc=U(),qc=200;function vi(t){let e=(0,Uc.c)(3),[r,n]=(0,v.useState)(!1),a,i;return e[0]===t?(a=e[1],i=e[2]):(a=()=>{if(!t)return;n(!1);let l=setTimeout(()=>{n(!0)},qc);return()=>clearTimeout(l)},i=[t],e[0]=t,e[1]=a,e[2]=i),(0,v.useEffect)(a,i),t&&r}var Xc=U();const Gc=()=>{let t=(0,Xc.c)(6),e=xt(ox),r;t[0]===e?r=t[1]:(r=()=>e(Yc),t[0]=e,t[1]=r);let n=r,a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=Ze("global.commandPalette"),t[2]=a):a=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(ix,{strokeWidth:1.5,size:18}),t[3]=i):i=t[3];let l;return t[4]===n?l=t[5]:(l=(0,o.jsx)(Q,{content:a,children:(0,o.jsx)(ut,{"data-testid":"command-palette-button",onClick:n,shape:"rectangle",color:"hint-green",children:i})}),t[4]=n,t[5]=l),l};function Yc(t){return!t}var Zn=U();const Zc=t=>{let e=(0,Zn.c)(45),{presenting:r,onTogglePresenting:n,onInterrupt:a,onRun:i,connectionState:l,running:s}=t,c=J(Nf),u=J($f),{undoDeleteCell:p}=qe(),d=l===hs.CLOSED,m=null;if(!d&&c){let I;e[0]===Symbol.for("react.memo_cache_sentinel")?(I=(0,o.jsx)(sx,{size:16,strokeWidth:1.5}),e[0]=I):I=e[0];let A;e[1]===p?A=e[2]:(A=(0,o.jsx)(Q,{content:"Undo cell deletion",children:(0,o.jsx)(ut,{"data-testid":"undo-delete-cell",size:"medium",color:"hint-green",shape:"circle",onClick:p,children:I})}),e[1]=p,e[2]=A),m=A}let g;e[3]===l?g=e[4]:(g=Xe(l),e[3]=l,e[4]=g);let f=g,b;e[5]!==l||e[6]!==f?(b=f?xn(l):void 0,e[5]=l,e[6]=f,e[7]=b):b=e[7];let h=b,y;e[8]===r?y=e[9]:(y=!r&&(0,o.jsx)(Fc,{}),e[8]=r,e[9]=y);let k;e[10]!==d||e[11]!==h||e[12]!==f||e[13]!==r?(k=!d&&(0,o.jsxs)("div",{className:ed,children:[r&&(0,o.jsx)(ux,{}),(0,o.jsx)(Bc,{disabled:f,tooltip:h}),(0,o.jsx)(d1,{disabled:f,tooltip:h}),(0,o.jsx)(c1,{description:"This will terminate the Python kernel. You'll lose all data that's in memory.",disabled:f,tooltip:h})]}),e[10]=d,e[11]=h,e[12]=f,e[13]=r,e[14]=k):k=e[14];let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=Z(td),e[15]=x):x=e[15];let D;e[16]===Symbol.for("react.memo_cache_sentinel")?(D=(0,o.jsx)(su,{children:(0,o.jsx)(Lx,{kioskMode:!1})}),e[16]=D):D=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=Ze("global.hideCode"),e[17]=j):j=e[17];let w;e[18]===r?w=e[19]:(w=r?(0,o.jsx)(N1,{strokeWidth:1.5,size:18}):(0,o.jsx)(cx,{strokeWidth:1.5,size:18}),e[18]=r,e[19]=w);let C;e[20]!==n||e[21]!==w?(C=(0,o.jsx)(Q,{content:j,children:(0,o.jsx)(ut,{"data-testid":"hide-code-button",id:"preview-button",shape:"rectangle",color:"hint-green",onClick:n,children:w})}),e[20]=n,e[21]=w,e[22]=C):C=e[22];let S,_,E;e[23]===Symbol.for("react.memo_cache_sentinel")?(S=(0,o.jsx)(Gc,{}),_=(0,o.jsx)(Ox,{}),E=(0,o.jsx)("div",{}),e[23]=S,e[24]=_,e[25]=E):(S=e[23],_=e[24],E=e[25]);let T;e[26]!==d||e[27]!==a||e[28]!==s?(T=!d&&(0,o.jsx)(Qc,{running:s,onInterrupt:a}),e[26]=d,e[27]=a,e[28]=s,e[29]=T):T=e[29];let N;e[30]!==d||e[31]!==u||e[32]!==i?(N=!d&&(0,o.jsx)(Jc,{needsRun:u,onRun:i}),e[30]=d,e[31]=u,e[32]=i,e[33]=N):N=e[33];let z;e[34]!==T||e[35]!==N||e[36]!==m?(z=(0,o.jsx)(su,{children:(0,o.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[m,T,N]})}),e[34]=T,e[35]=N,e[36]=m,e[37]=z):z=e[37];let $;e[38]!==z||e[39]!==C?($=(0,o.jsxs)("div",{className:x,children:[D,C,S,_,E,z]}),e[38]=z,e[39]=C,e[40]=$):$=e[40];let P;return e[41]!==$||e[42]!==y||e[43]!==k?(P=(0,o.jsxs)(o.Fragment,{children:[y,k,$]}),e[41]=$,e[42]=y,e[43]=k,e[44]=P):P=e[44],P};var Jc=t=>{let e=(0,Zn.c)(8),{needsRun:r,onRun:n}=t,a=J(fs);if(r){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=Ze("global.runStale"),e[0]=c):c=e[0];let u=!a,p;e[1]===Symbol.for("react.memo_cache_sentinel")?(p=(0,o.jsx)(Dr,{strokeWidth:1.5,size:16}),e[1]=p):p=e[1];let d;return e[2]!==n||e[3]!==u?(d=(0,o.jsx)(Q,{content:c,children:(0,o.jsx)(ut,{"data-testid":"run-button",size:"medium",color:"yellow",shape:"circle",onClick:n,disabled:u,children:p})}),e[2]=n,e[3]=u,e[4]=d):d=e[4],d}let i=!a,l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(Dr,{strokeWidth:1.5,size:16}),e[5]=l):l=e[5];let s;return e[6]===i?s=e[7]:(s=(0,o.jsx)(Q,{content:"Nothing to run",children:(0,o.jsx)(ut,{"data-testid":"run-button",className:"inactive-button",color:"disabled",size:"medium",shape:"circle",disabled:i,children:l})}),e[6]=i,e[7]=s),s},Qc=t=>{let e=(0,Zn.c)(8),{running:r,onInterrupt:n}=t,a=vi(r),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=Ze("global.interrupt"),e[0]=i):i=e[0];let l=!a&&"inactive-button active:shadow-xs-solid",s;e[1]===l?s=e[2]:(s=Z(l),e[1]=l,e[2]=s);let c=a?"yellow":"disabled",u=a?n:br.NOOP,p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=(0,o.jsx)(Ws,{strokeWidth:1.5,size:16}),e[3]=p):p=e[3];let d;return e[4]!==s||e[5]!==c||e[6]!==u?(d=(0,o.jsx)(Q,{content:i,children:(0,o.jsx)(ut,{className:s,"data-testid":"interrupt-button",size:"medium",color:c,shape:"circle",onClick:u,children:p})}),e[4]=s,e[5]=c,e[6]=u,e[7]=d):d=e[7],d},ed="absolute top-3 right-5 m-0 flex items-center gap-2 min-h-[28px] no-print pointer-events-auto z-30 print:hidden",td="absolute bottom-5 right-5 flex flex-col gap-2 items-center no-print pointer-events-auto z-30 print:hidden",rd=U();const nd=t=>{let e=(0,rd.c)(7),{filename:r}=t,n=cb(),a;e[0]===r?a=e[1]:(a=r?as.basename(r):"untitled marimo notebook",e[0]=r,e[1]=a);let i=r===null?"missing-filename":"filename",l;return e[2]!==r||e[3]!==n||e[4]!==a||e[5]!==i?(l=(0,o.jsx)(Jx,{placeholderText:a,initialValue:r,onNameChange:n,flexibleWidth:!0,resetOnBlur:!0,"data-testid":"filename-input",className:i}),e[2]=r,e[3]=n,e[4]=a,e[5]=i,e[6]=l):l=e[6],l};var St=U(),ad=t=>{let e=(0,St.c)(14),{actions:r,cellIds:n,disabled:a}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(Qa,{size:13,strokeWidth:1.5}),e[0]=i):i=e[0];let l;e[1]===a?l=e[2]:(l=(0,o.jsx)(Dt,{asChild:!0,children:(0,o.jsx)(ae,{variant:"ghost",size:"sm",className:"h-8 px-2 gap-1",title:"More actions",disabled:a,children:i})}),e[1]=a,e[2]=l);let s;if(e[3]!==r||e[4]!==n){let p;e[6]!==r.length||e[7]!==n?(p=(d,m)=>{let g=d.map(f=>(0,o.jsx)(yt,{onSelect:()=>f.handle(n),className:"flex items-center gap-2",children:(0,o.jsxs)("div",{className:"flex items-center flex-1",children:[f.icon&&(0,o.jsx)("div",{className:"mr-2 w-5 text-muted-foreground",children:f.icon}),(0,o.jsx)("div",{className:"flex-1",children:f.label}),f.hotkey&&(0,o.jsx)(co,{shortcut:f.hotkey,className:"ml-4"})]})},f.label));return(0,o.jsxs)(v.Fragment,{children:[g,m{if(d.idle&&m.keymap.destructive_delete){d.submit(I);return}s({cellIds:I}),d.clear(),u.clear()},e[0]=s,e[1]=d,e[2]=u,e[3]=m,e[4]=h):h=e[4];let y=ke(h),k;e[5]===n?k=e[6]:(k=(I,A)=>{if(A==="down"){let B=I[I.length-1];if(bt.get($a).cellIds.findWithId(B).last()===B)return}if(A==="up"){let B=I[0];if(bt.get($a).cellIds.findWithId(B).first()===B)return}(A==="up"?I:[...I].reverse()).forEach(B=>{n({cellId:B,before:A==="up"})})},e[5]=n,e[6]=k);let x=ke(k),D;e[7]===i?D=e[8]:(D=I=>{[...I].reverse().forEach(A=>{i({cellId:A})})},e[7]=i,e[8]=D);let j=ke(D),w;e[9]===l?w=e[10]:(w=I=>{I.forEach(A=>{l({cellId:A})})},e[9]=l,e[10]=w);let C=ke(w),S=ke(pd),_;e[11]===a?_=e[12]:(_=I=>{I.forEach(A=>{a({cellId:A})})},e[11]=a,e[12]=_);let E=ke(_),T;e[13]!==g||e[14]!==r?(T=async(I,A,B)=>{let R={};I.forEach(K=>{R[K]={[A]:B}}),await g({configs:R}),I.forEach(K=>{r({cellId:K,config:R[K]})})},e[13]=g,e[14]=r,e[15]=T):T=e[15];let N=ke(T),z;e[16]===Symbol.for("react.memo_cache_sentinel")?(z=(0,o.jsx)(Dr,{size:13,strokeWidth:1.5}),e[16]=z):z=e[16];let $;e[17]===p?$=e[18]:($=I=>p(I),e[17]=p,e[18]=$);let P;if(e[19]!==b||e[20]!==E||e[21]!==y||e[22]!==S||e[23]!==x||e[24]!==C||e[25]!==j||e[26]!==$||e[27]!==N){let I=[[{icon:z,label:"Run cells",handle:$,hotkey:"cell.run"}],[{icon:(0,o.jsx)(qa,{size:13,strokeWidth:1.5}),label:"Move up",handle:K=>x(K,"up"),hotkey:"cell.moveUp"},{icon:(0,o.jsx)(er,{size:13,strokeWidth:1.5}),label:"Move down",handle:K=>x(K,"down"),hotkey:"cell.moveDown"}],[{icon:(0,o.jsx)(Us,{size:13,strokeWidth:1.5}),label:"Delete cells",variant:"danger",hidden:!b,handle:y}]],A=[[{icon:(0,o.jsx)(vx,{size:13,strokeWidth:1.5}),label:"Format cells",handle:S,hotkey:"cell.format"},{icon:(0,o.jsx)(Gl,{size:13,strokeWidth:1.5}),label:"Clear outputs",handle:E}],[{icon:(0,o.jsx)(Fx,{size:13,strokeWidth:1.5}),label:"Hide code",handle:K=>N(K,"hide_code",!0),hotkey:"cell.hideCode"},{icon:(0,o.jsx)(bf,{size:13,strokeWidth:1.5}),label:"Show code",handle:K=>N(K,"hide_code",!1),hotkey:"cell.hideCode"}],[{icon:(0,o.jsx)(qa,{size:13,strokeWidth:1.5}),label:"Move up",handle:K=>x(K,"up"),hotkey:"cell.moveUp"},{icon:(0,o.jsx)(er,{size:13,strokeWidth:1.5}),label:"Move down",handle:K=>x(K,"down"),hotkey:"cell.moveDown"},{icon:(0,o.jsx)(Q0,{size:13,strokeWidth:1.5}),label:"Send to top",handle:j,hotkey:"cell.sendToTop"},{icon:(0,o.jsx)(ex,{size:13,strokeWidth:1.5}),label:"Send to bottom",handle:C,hotkey:"cell.sendToBottom"}],[{icon:(0,o.jsx)(tr,{size:13,strokeWidth:1.5}),label:"Disable cells",handle:K=>N(K,"disabled",!0)},{icon:(0,o.jsx)(rr,{size:13,strokeWidth:1.5}),label:"Enable cells",handle:K=>N(K,"disabled",!1)}]],B=I.map(cd),R;e[29]===B?R=e[30]:(R=B.filter(ud),e[29]=B,e[30]=R),P={actions:R,moreActions:A.map(ld).filter(id)},e[19]=b,e[20]=E,e[21]=y,e[22]=S,e[23]=x,e[24]=C,e[25]=j,e[26]=$,e[27]=N,e[28]=P}else P=e[28];return P}function id(t){return t.length>0}function ld(t){return t.filter(sd)}function sd(t){return!t.hidden}function ud(t){return t.length>0}function cd(t){return t.filter(dd)}function dd(t){return!t.hidden}function pd(t){let e={};t.forEach(r=>{let n=es(r);n&&(e[r]=n)}),lf(e)}const md=()=>{let t=(0,St.c)(4),e=Gx(),r;t[0]===e.selected?r=t[1]:(r=[...e.selected],t[0]=e.selected,t[1]=r);let n=r;if(n.length<2)return null;let a;return t[2]===n?a=t[3]:(a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(hd,{cellIds:n}),(0,o.jsx)(gd,{cellIds:n})]}),t[2]=n,t[3]=a),a};var Jn=()=>{let t=(0,St.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"h-4 w-px bg-border mx-1"}),t[0]=e):e=t[0],e},gd=t=>{let e=(0,St.c)(12),{cellIds:r}=t,n=to(),a=ru(),i=eo();if(!n.shouldConfirmDelete)return null;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(Tn,{className:"w-4 h-4 text-(--amber-11) mt-0.5 shrink-0"}),e[0]=l):l=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsxs)("div",{className:"font-code text-sm text-[0.84375rem]",children:[(0,o.jsx)("p",{className:"text-(--amber-11) font-medium",children:"Some cells in selection may contain expensive operations."}),(0,o.jsx)("p",{className:"text-(--amber-11) mt-1",children:"Are you sure you want to delete?"})]}),e[1]=s):s=e[1];let c;e[2]===n?c=e[3]:(c=(0,o.jsx)(ae,{size:"xs",variant:"ghost",onClick:()=>n.clear(),className:"text-(--amber-11) hover:bg-(--amber-4) hover:text-(--amber-11)",children:"Cancel"}),e[2]=n,e[3]=c);let u;e[4]!==r||e[5]!==a||e[6]!==n||e[7]!==i?(u=(0,o.jsx)(ae,{size:"xs",variant:"secondary",onClick:()=>{a({cellIds:r}),n.clear(),i.clear()},className:"bg-(--amber-11) hover:bg-(--amber-12) text-white border-(--amber-11)",children:"Delete"}),e[4]=r,e[5]=a,e[6]=n,e[7]=i,e[8]=u):u=e[8];let p;return e[9]!==c||e[10]!==u?(p=(0,o.jsx)("div",{className:"absolute top-12 justify-center flex w-full left-0 right-0 z-50","data-keep-cell-selection":!0,children:(0,o.jsx)("div",{className:"mx-20",children:(0,o.jsx)("div",{className:"bg-(--amber-2) border border-(--amber-6) rounded-lg shadow-lg mt-14 px-4 py-3 animate-in slide-in-from-top-2 duration-200",children:(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[l,(0,o.jsxs)("div",{className:"flex-1",children:[s,(0,o.jsx)(In,{restoreFocus:!0,autoFocus:!0,children:(0,o.jsxs)("div",{className:"flex items-center gap-2 mt-3",onKeyDown:fd,children:[c,u]})})]})]})})})}),e[9]=c,e[10]=u,e[11]=p):p=e[11],p},hd=t=>{let e=(0,St.c)(23),{cellIds:r}=t,n=eo(),a=to(),{actions:i,moreActions:l}=od(r),s=r.length,c;e[0]!==a||e[1]!==n?(c=h=>{(h.target instanceof HTMLElement||h.target instanceof SVGElement)&&h.target.closest("[data-keep-cell-selection]")!==null||h.target instanceof HTMLHtmlElement||(a.clear(),n.clear())},e[0]=a,e[1]=n,e[2]=c):c=e[2],g0(window,"mousedown",c);let u=!a.idle,p;e[3]===s?p=e[4]:(p=(0,o.jsxs)("span",{className:"text-sm font-medium text-muted-foreground px-2 shrink-0",children:[s," cells selected"]}),e[3]=s,e[4]=p);let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,o.jsx)(Jn,{}),e[5]=d):d=e[5];let m;if(e[6]!==i||e[7]!==r||e[8]!==u){let h;e[10]!==i.length||e[11]!==r||e[12]!==u?(h=(y,k)=>(0,o.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[y.map(x=>(0,o.jsxs)(ae,{variant:x.variant==="danger"?"linkDestructive":"ghost",size:"sm",onClick:()=>x.handle(r),className:"h-8 px-2 gap-1 shrink-0 flex items-center",title:x.label,disabled:u&&x.label!=="Delete cells",children:[x.icon,(0,o.jsx)("span",{className:"text-xs",children:x.label}),x.hotkey&&(0,o.jsx)("div",{className:"ml-1 border bg-muted rounded-md px-1",children:(0,o.jsx)(co,{shortcut:x.hotkey})})]},x.label)),k{r!=null&&e(r)},[]),announcement:t}}var sr=os(),Di=(0,v.createContext)(null);function Dd(t){let e=(0,v.useContext)(Di);(0,v.useEffect)(()=>{if(!e)throw Error("useDndMonitor must be used within a children of ");return e(t)},[t,e])}function kd(){let[t]=(0,v.useState)(()=>new Set),e=(0,v.useCallback)(r=>(t.add(r),()=>t.delete(r)),[t]);return[(0,v.useCallback)(r=>{let{type:n,event:a}=r;t.forEach(i=>{var l;return(l=i[n])==null?void 0:l.call(i,a)})},[t]),e]}var jd={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},wd={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was moved over droppable area "+r.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was dropped over droppable area "+r.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Ed(t){let{announcements:e=wd,container:r,hiddenTextDescribedById:n,screenReaderInstructions:a=jd}=t,{announce:i,announcement:l}=vd(),s=gr("DndLiveRegion"),[c,u]=(0,v.useState)(!1);if((0,v.useEffect)(()=>{u(!0)},[]),Dd((0,v.useMemo)(()=>({onDragStart(d){let{active:m}=d;i(e.onDragStart({active:m}))},onDragMove(d){let{active:m,over:g}=d;e.onDragMove&&i(e.onDragMove({active:m,over:g}))},onDragOver(d){let{active:m,over:g}=d;i(e.onDragOver({active:m,over:g}))},onDragEnd(d){let{active:m,over:g}=d;i(e.onDragEnd({active:m,over:g}))},onDragCancel(d){let{active:m,over:g}=d;i(e.onDragCancel({active:m,over:g}))}}),[i,e])),!c)return null;let p=v.createElement(v.Fragment,null,v.createElement(bd,{id:n,value:a.draggable}),v.createElement(yd,{id:s,announcement:l}));return r?(0,sr.createPortal)(p,r):p}var je;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(je||(je={}));function zr(){}function ki(t,e){return(0,v.useMemo)(()=>({sensor:t,options:e??{}}),[t,e])}function Cd(){var t=[...arguments];return(0,v.useMemo)(()=>[...t].filter(e=>e!=null),[...t])}var Fe=Object.freeze({x:0,y:0});function Qn(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function ea(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return r-n}function Sd(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return n-r}function ta(t){let{left:e,top:r,height:n,width:a}=t;return[{x:e,y:r},{x:e+a,y:r},{x:e,y:r+n},{x:e+a,y:r+n}]}function ra(t,e){if(!t||t.length===0)return null;let[r]=t;return e?r[e]:r}function ji(t,e,r){return e===void 0&&(e=t.left),r===void 0&&(r=t.top),{x:e+t.width*.5,y:r+t.height*.5}}var na=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,a=ji(e,e.left,e.top),i=[];for(let l of n){let{id:s}=l,c=r.get(s);if(c){let u=Qn(ji(c),a);i.push({id:s,data:{droppableContainer:l,value:u}})}}return i.sort(ea)},Td=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,a=ta(e),i=[];for(let l of n){let{id:s}=l,c=r.get(s);if(c){let u=ta(c),p=a.reduce((m,g,f)=>m+Qn(u[f],g),0),d=Number((p/4).toFixed(4));i.push({id:s,data:{droppableContainer:l,value:d}})}}return i.sort(ea)};function _d(t,e){let r=Math.max(e.top,t.top),n=Math.max(e.left,t.left),a=Math.min(e.left+e.width,t.left+t.width),i=Math.min(e.top+e.height,t.top+t.height),l=a-n,s=i-r;if(n{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t,a=[];for(let i of n){let{id:l}=i,s=r.get(l);if(s){let c=_d(s,e);c>0&&a.push({id:l,data:{droppableContainer:i,value:c}})}}return a.sort(Sd)};function Id(t,e){let{top:r,left:n,bottom:a,right:i}=e;return r<=t.y&&t.y<=a&&n<=t.x&&t.x<=i}var Nd=t=>{let{droppableContainers:e,droppableRects:r,pointerCoordinates:n}=t;if(!n)return[];let a=[];for(let i of e){let{id:l}=i,s=r.get(l);if(s&&Id(n,s)){let c=ta(s).reduce((p,d)=>p+Qn(n,d),0),u=Number((c/4).toFixed(4));a.push({id:l,data:{droppableContainer:i,value:u}})}}return a.sort(ea)};function zd(t,e,r){return{...t,scaleX:e&&r?e.width/r.width:1,scaleY:e&&r?e.height/r.height:1}}function Ei(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:Fe}function $d(t){return function(e){return[...arguments].slice(1).reduce((r,n)=>({...r,top:r.top+t*n.y,bottom:r.bottom+t*n.y,left:r.left+t*n.x,right:r.right+t*n.x}),{...e})}}var Ad=$d(1);function Bd(t){if(t.startsWith("matrix3d(")){let e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){let e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Pd(t,e,r){let n=Bd(e);if(!n)return t;let{scaleX:a,scaleY:i,x:l,y:s}=n,c=t.left-l-(1-a)*parseFloat(r),u=t.top-s-(1-i)*parseFloat(r.slice(r.indexOf(" ")+1)),p=a?t.width/a:t.width,d=i?t.height/i:t.height;return{width:p,height:d,top:u,right:c+p,bottom:u+d,left:c}}var Kd={ignoreTransform:!1};function Tt(t,e){e===void 0&&(e=Kd);let r=t.getBoundingClientRect();if(e.ignoreTransform){let{transform:u,transformOrigin:p}=nt(t).getComputedStyle(t);u&&(r=Pd(r,u,p))}let{top:n,left:a,width:i,height:l,bottom:s,right:c}=r;return{top:n,left:a,width:i,height:l,bottom:s,right:c}}function Ci(t){return Tt(t,{ignoreTransform:!0})}function Od(t){let e=t.innerWidth,r=t.innerHeight;return{top:0,left:0,right:e,bottom:r,width:e,height:r}}function Rd(t,e){return e===void 0&&(e=nt(t).getComputedStyle(t)),e.position==="fixed"}function Md(t,e){e===void 0&&(e=nt(t).getComputedStyle(t));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(n=>{let a=e[n];return typeof a=="string"?r.test(a):!1})}function $r(t,e){let r=[];function n(a){if(e!=null&&r.length>=e||!a)return r;if(ds(a)&&a.scrollingElement!=null&&!r.includes(a.scrollingElement))return r.push(a.scrollingElement),r;if(!mn(a)||Hf(a)||r.includes(a))return r;let i=nt(t).getComputedStyle(a);return a!==t&&Md(a,i)&&r.push(a),Rd(a,i)?r:n(a.parentNode)}return t?n(t):r}function Si(t){let[e]=$r(t,1);return e??null}function aa(t){return!Pa||!t?null:Ba(t)?t:Lf(t)?ds(t)||t===Jt(t).scrollingElement?window:mn(t)?t:null:null}function Ti(t){return Ba(t)?t.scrollX:t.scrollLeft}function _i(t){return Ba(t)?t.scrollY:t.scrollTop}function oa(t){return{x:Ti(t),y:_i(t)}}var Ce;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Ce||(Ce={}));function Ii(t){return!Pa||!t?!1:t===document.scrollingElement}function Ni(t){let e={x:0,y:0},r=Ii(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},n={x:t.scrollWidth-r.width,y:t.scrollHeight-r.height};return{isTop:t.scrollTop<=e.y,isLeft:t.scrollLeft<=e.x,isBottom:t.scrollTop>=n.y,isRight:t.scrollLeft>=n.x,maxScroll:n,minScroll:e}}var Fd={x:.2,y:.2};function Vd(t,e,r,n,a){let{top:i,left:l,right:s,bottom:c}=r;n===void 0&&(n=10),a===void 0&&(a=Fd);let{isTop:u,isBottom:p,isLeft:d,isRight:m}=Ni(t),g={x:0,y:0},f={x:0,y:0},b={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+b.height?(g.y=Ce.Backward,f.y=n*Math.abs((e.top+b.height-i)/b.height)):!p&&c>=e.bottom-b.height&&(g.y=Ce.Forward,f.y=n*Math.abs((e.bottom-b.height-c)/b.height)),!m&&s>=e.right-b.width?(g.x=Ce.Forward,f.x=n*Math.abs((e.right-b.width-s)/b.width)):!d&&l<=e.left+b.width&&(g.x=Ce.Backward,f.x=n*Math.abs((e.left+b.width-l)/b.width)),{direction:g,speed:f}}function Ld(t){if(t===document.scrollingElement){let{innerWidth:i,innerHeight:l}=window;return{top:0,left:0,right:i,bottom:l,width:i,height:l}}let{top:e,left:r,right:n,bottom:a}=t.getBoundingClientRect();return{top:e,left:r,right:n,bottom:a,width:t.clientWidth,height:t.clientHeight}}function zi(t){return t.reduce((e,r)=>Zt(e,oa(r)),Fe)}function Hd(t){return t.reduce((e,r)=>e+Ti(r),0)}function Wd(t){return t.reduce((e,r)=>e+_i(r),0)}function Ud(t,e){if(e===void 0&&(e=Tt),!t)return;let{top:r,left:n,bottom:a,right:i}=e(t);Si(t)&&(a<=0||i<=0||r>=window.innerHeight||n>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}var qd=[["x",["left","right"],Hd],["y",["top","bottom"],Wd]],ia=class{constructor(t,e){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=$r(e),n=zi(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[a,i,l]of qd)for(let s of i)Object.defineProperty(this,s,{get:()=>{let c=l(r),u=n[a]-c;return this.rect[s]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},ur=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...e)})},this.target=t}add(t,e,r){var n;(n=this.target)==null||n.addEventListener(t,e,r),this.listeners.push([t,e,r])}};function Xd(t){let{EventTarget:e}=nt(t);return t instanceof e?t:Jt(t)}function la(t,e){let r=Math.abs(t.x),n=Math.abs(t.y);return typeof e=="number"?Math.sqrt(r**2+n**2)>e:"x"in e&&"y"in e?r>e.x&&n>e.y:"x"in e?r>e.x:"y"in e?n>e.y:!1}var Ve;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Ve||(Ve={}));function $i(t){t.preventDefault()}function Gd(t){t.stopPropagation()}var ne;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(ne||(ne={}));var Ai={start:[ne.Space,ne.Enter],cancel:[ne.Esc],end:[ne.Space,ne.Enter,ne.Tab]},Yd=(t,e)=>{let{currentCoordinates:r}=e;switch(t.code){case ne.Right:return{...r,x:r.x+25};case ne.Left:return{...r,x:r.x-25};case ne.Down:return{...r,y:r.y+25};case ne.Up:return{...r,y:r.y-25}}},sa=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:e}}=t;this.props=t,this.listeners=new ur(Jt(e)),this.windowListeners=new ur(nt(e)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ve.Resize,this.handleCancel),this.windowListeners.add(Ve.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ve.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:e}=this.props,r=t.node.current;r&&Ud(r),e(Fe)}handleKeyDown(t){if(Ka(t)){let{active:e,context:r,options:n}=this.props,{keyboardCodes:a=Ai,coordinateGetter:i=Yd,scrollBehavior:l="smooth"}=n,{code:s}=t;if(a.end.includes(s)){this.handleEnd(t);return}if(a.cancel.includes(s)){this.handleCancel(t);return}let{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Fe;this.referenceCoordinates||(this.referenceCoordinates=u);let p=i(t,{active:e,context:r.current,currentCoordinates:u});if(p){let d=fr(p,u),m={x:0,y:0},{scrollableAncestors:g}=r.current;for(let f of g){let b=t.code,{isTop:h,isRight:y,isLeft:k,isBottom:x,maxScroll:D,minScroll:j}=Ni(f),w=Ld(f),C={x:Math.min(b===ne.Right?w.right-w.width/2:w.right,Math.max(b===ne.Right?w.left:w.left+w.width/2,p.x)),y:Math.min(b===ne.Down?w.bottom-w.height/2:w.bottom,Math.max(b===ne.Down?w.top:w.top+w.height/2,p.y))},S=b===ne.Right&&!y||b===ne.Left&&!k,_=b===ne.Down&&!x||b===ne.Up&&!h;if(S&&C.x!==p.x){let E=f.scrollLeft+d.x,T=b===ne.Right&&E<=D.x||b===ne.Left&&E>=j.x;if(T&&!d.y){f.scrollTo({left:E,behavior:l});return}T?m.x=f.scrollLeft-E:m.x=b===ne.Right?f.scrollLeft-D.x:f.scrollLeft-j.x,m.x&&f.scrollBy({left:-m.x,behavior:l});break}else if(_&&C.y!==p.y){let E=f.scrollTop+d.y,T=b===ne.Down&&E<=D.y||b===ne.Up&&E>=j.y;if(T&&!d.x){f.scrollTo({top:E,behavior:l});return}T?m.y=f.scrollTop-E:m.y=b===ne.Down?f.scrollTop-D.y:f.scrollTop-j.y,m.y&&f.scrollBy({top:-m.y,behavior:l});break}}this.handleMove(t,Zt(fr(p,this.referenceCoordinates),m))}}}handleMove(t,e){let{onMove:r}=this.props;t.preventDefault(),r(e)}handleEnd(t){let{onEnd:e}=this.props;t.preventDefault(),this.detach(),e()}handleCancel(t){let{onCancel:e}=this.props;t.preventDefault(),this.detach(),e()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};sa.activators=[{eventName:"onKeyDown",handler:(t,e,r)=>{let{keyboardCodes:n=Ai,onActivation:a}=e,{active:i}=r,{code:l}=t.nativeEvent;if(n.start.includes(l)){let s=i.activatorNode.current;return s&&t.target!==s?!1:(t.preventDefault(),a==null||a({event:t.nativeEvent}),!0)}return!1}}];function Bi(t){return!!(t&&"distance"in t)}function Pi(t){return!!(t&&"delay"in t)}var ua=class{constructor(t,e,r){r===void 0&&(r=Xd(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=e;let{event:n}=t,{target:a}=n;this.props=t,this.events=e,this.document=Jt(a),this.documentListeners=new ur(this.document),this.listeners=new ur(r),this.windowListeners=new ur(nt(a)),this.initialCoordinates=Aa(n)??Fe,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:e,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ve.Resize,this.handleCancel),this.windowListeners.add(Ve.DragStart,$i),this.windowListeners.add(Ve.VisibilityChange,this.handleCancel),this.windowListeners.add(Ve.ContextMenu,$i),this.documentListeners.add(Ve.Keydown,this.handleKeydown),e){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Pi(e)){this.timeoutId=setTimeout(this.handleStart,e.delay),this.handlePending(e);return}if(Bi(e)){this.handlePending(e);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,e){let{active:r,onPending:n}=this.props;n(r,t,this.initialCoordinates,e)}handleStart(){let{initialCoordinates:t}=this,{onStart:e}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ve.Click,Gd,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ve.SelectionChange,this.removeTextSelection),e(t))}handleMove(t){let{activated:e,initialCoordinates:r,props:n}=this,{onMove:a,options:{activationConstraint:i}}=n;if(!r)return;let l=Aa(t)??Fe,s=fr(r,l);if(!e&&i){if(Bi(i)){if(i.tolerance!=null&&la(s,i.tolerance))return this.handleCancel();if(la(s,i.distance))return this.handleStart()}if(Pi(i)&&la(s,i.tolerance))return this.handleCancel();this.handlePending(i,s);return}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){let{onAbort:t,onEnd:e}=this.props;this.detach(),this.activated||t(this.props.active),e()}handleCancel(){let{onAbort:t,onCancel:e}=this.props;this.detach(),this.activated||t(this.props.active),e()}handleKeydown(t){t.code===ne.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},Zd={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},ca=class extends ua{constructor(t){let{event:e}=t,r=Jt(e.target);super(t,Zd,r)}};ca.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];var Jd={move:{name:"mousemove"},end:{name:"mouseup"}},Ki;(function(t){t[t.RightClick=2]="RightClick"})(Ki||(Ki={}));var Qd=class extends ua{constructor(t){super(t,Jd,Jt(t.event.target))}};Qd.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return r.button===Ki.RightClick?!1:(n==null||n({event:r}),!0)}}];var da={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},ep=class extends ua{constructor(t){super(t,da)}static setup(){return window.addEventListener(da.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(da.move.name,t)};function t(){}}};ep.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e,{touches:a}=r;return a.length>1?!1:(n==null||n({event:r}),!0)}}];var Ar;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Ar||(Ar={}));var pa;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(pa||(pa={}));function tp(t){let{acceleration:e,activator:r=Ar.Pointer,canScroll:n,draggingRect:a,enabled:i,interval:l=5,order:s=pa.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:p,delta:d,threshold:m}=t,g=np({delta:d,disabled:!i}),[f,b]=Ff(),h=(0,v.useRef)({x:0,y:0}),y=(0,v.useRef)({x:0,y:0}),k=(0,v.useMemo)(()=>{switch(r){case Ar.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ar.DraggableRect:return a}},[r,a,c]),x=(0,v.useRef)(null),D=(0,v.useCallback)(()=>{let w=x.current;if(!w)return;let C=h.current.x*y.current.x,S=h.current.y*y.current.y;w.scrollBy(C,S)},[]),j=(0,v.useMemo)(()=>s===pa.TreeOrder?[...u].reverse():u,[s,u]);(0,v.useEffect)(()=>{if(!i||!u.length||!k){b();return}for(let w of j){if((n==null?void 0:n(w))===!1)continue;let C=p[u.indexOf(w)];if(!C)continue;let{direction:S,speed:_}=Vd(w,C,k,e,m);for(let E of["x","y"])g[E][S[E]]||(_[E]=0,S[E]=0);if(_.x>0||_.y>0){b(),x.current=w,f(D,l),h.current=_,y.current=S;return}}h.current={x:0,y:0},y.current={x:0,y:0},b()},[e,D,n,b,i,l,JSON.stringify(k),JSON.stringify(g),f,u,j,p,JSON.stringify(m)])}var rp={x:{[Ce.Backward]:!1,[Ce.Forward]:!1},y:{[Ce.Backward]:!1,[Ce.Forward]:!1}};function np(t){let{delta:e,disabled:r}=t,n=pn(e);return hr(a=>{if(r||!n||!a)return rp;let i={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[Ce.Backward]:a.x[Ce.Backward]||i.x===-1,[Ce.Forward]:a.x[Ce.Forward]||i.x===1},y:{[Ce.Backward]:a.y[Ce.Backward]||i.y===-1,[Ce.Forward]:a.y[Ce.Forward]||i.y===1}}},[r,e,n])}function ap(t,e){let r=e==null?void 0:t.get(e),n=r?r.node.current:null;return hr(a=>e==null?null:n??a??null,[n,e])}function op(t,e){return(0,v.useMemo)(()=>t.reduce((r,n)=>{let{sensor:a}=n,i=a.activators.map(l=>({eventName:l.eventName,handler:e(l.handler,n)}));return[...r,...i]},[]),[t,e])}var Br;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Br||(Br={}));var Oi;(function(t){t.Optimized="optimized"})(Oi||(Oi={}));var Ri=new Map;function ip(t,e){let{dragging:r,dependencies:n,config:a}=e,[i,l]=(0,v.useState)(null),{frequency:s,measure:c,strategy:u}=a,p=(0,v.useRef)(t),d=h(),m=xr(d),g=(0,v.useCallback)(function(y){y===void 0&&(y=[]),!m.current&&l(k=>k===null?y:k.concat(y.filter(x=>!k.includes(x))))},[m]),f=(0,v.useRef)(null),b=hr(y=>{if(d&&!r)return Ri;if(!y||y===Ri||p.current!==t||i!=null){let k=new Map;for(let x of t){if(!x)continue;if(i&&i.length>0&&!i.includes(x.id)&&x.rect.current){k.set(x.id,x.rect.current);continue}let D=x.node.current,j=D?new ia(c(D),D):null;x.rect.current=j,j&&k.set(x.id,j)}return k}return y},[t,i,r,d,c]);return(0,v.useEffect)(()=>{p.current=t},[t]),(0,v.useEffect)(()=>{d||g()},[r,d]),(0,v.useEffect)(()=>{i&&i.length>0&&l(null)},[JSON.stringify(i)]),(0,v.useEffect)(()=>{d||typeof s!="number"||f.current!==null||(f.current=setTimeout(()=>{g(),f.current=null},s))},[s,d,g,...n]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:i!=null};function h(){switch(u){case Br.Always:return!1;case Br.BeforeDragging:return r;default:return!r}}}function Mi(t,e){return hr(r=>t?r||(typeof e=="function"?e(t):t):null,[e,t])}function lp(t,e){return Mi(t,e)}function sp(t){let{callback:e,disabled:r}=t,n=ps(e),a=(0,v.useMemo)(()=>{if(r||typeof window>"u"||window.MutationObserver===void 0)return;let{MutationObserver:i}=window;return new i(n)},[n,r]);return(0,v.useEffect)(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Pr(t){let{callback:e,disabled:r}=t,n=ps(e),a=(0,v.useMemo)(()=>{if(r||typeof window>"u"||window.ResizeObserver===void 0)return;let{ResizeObserver:i}=window;return new i(n)},[r]);return(0,v.useEffect)(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function up(t){return new ia(Tt(t),t)}function Fi(t,e,r){e===void 0&&(e=up);let[n,a]=(0,v.useState)(null);function i(){a(c=>{if(!t)return null;if(t.isConnected===!1)return c??r??null;let u=e(t);return JSON.stringify(c)===JSON.stringify(u)?c:u})}let l=sp({callback(c){if(t)for(let u of c){let{type:p,target:d}=u;if(p==="childList"&&d instanceof HTMLElement&&d.contains(t)){i();break}}}}),s=Pr({callback:i});return lt(()=>{i(),t?(s==null||s.observe(t),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),l==null||l.disconnect())},[t]),n}function cp(t){return Ei(t,Mi(t))}var Vi=[];function dp(t){let e=(0,v.useRef)(t),r=hr(n=>t?n&&n!==Vi&&t&&e.current&&t.parentNode===e.current.parentNode?n:$r(t):Vi,[t]);return(0,v.useEffect)(()=>{e.current=t},[t]),r}function pp(t){let[e,r]=(0,v.useState)(null),n=(0,v.useRef)(t),a=(0,v.useCallback)(i=>{let l=aa(i.target);l&&r(s=>s?(s.set(l,oa(l)),new Map(s)):null)},[]);return(0,v.useEffect)(()=>{let i=n.current;if(t!==i){l(i);let s=t.map(c=>{let u=aa(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,oa(u)]):null}).filter(c=>c!=null);r(s.length?new Map(s):null),n.current=t}return()=>{l(t),l(i)};function l(s){s.forEach(c=>{var u;(u=aa(c))==null||u.removeEventListener("scroll",a)})}},[a,t]),(0,v.useMemo)(()=>t.length?e?Array.from(e.values()).reduce((i,l)=>Zt(i,l),Fe):zi(t):Fe,[t,e])}function Li(t,e){e===void 0&&(e=[]);let r=(0,v.useRef)(null);return(0,v.useEffect)(()=>{r.current=null},e),(0,v.useEffect)(()=>{let n=t!==Fe;n&&!r.current&&(r.current=t),!n&&r.current&&(r.current=null)},[t]),r.current?fr(t,r.current):Fe}function mp(t){(0,v.useEffect)(()=>{if(!Pa)return;let e=t.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(let r of e)r==null||r()}},t.map(e=>{let{sensor:r}=e;return r}))}function gp(t,e){return(0,v.useMemo)(()=>t.reduce((r,n)=>{let{eventName:a,handler:i}=n;return r[a]=l=>{i(l,e)},r},{}),[t,e])}function Hi(t){return(0,v.useMemo)(()=>t?Od(t):null,[t])}var Wi=[];function hp(t,e){e===void 0&&(e=Tt);let[r]=t,n=Hi(r?nt(r):null),[a,i]=(0,v.useState)(Wi);function l(){i(()=>t.length?t.map(c=>Ii(c)?n:new ia(e(c),c)):Wi)}let s=Pr({callback:l});return lt(()=>{s==null||s.disconnect(),l(),t.forEach(c=>s==null?void 0:s.observe(c))},[t]),a}function fp(t){if(!t)return null;if(t.children.length>1)return t;let e=t.children[0];return mn(e)?e:t}function xp(t){let{measure:e}=t,[r,n]=(0,v.useState)(null),a=Pr({callback:(0,v.useCallback)(s=>{for(let{target:c}of s)if(mn(c)){n(u=>{let p=e(c);return u?{...u,width:p.width,height:p.height}:p});break}},[e])}),[i,l]=hn((0,v.useCallback)(s=>{let c=fp(s);a==null||a.disconnect(),c&&(a==null||a.observe(c)),n(c?e(c):null)},[e,a]));return(0,v.useMemo)(()=>({nodeRef:i,rect:r,setRef:l}),[r,i,l])}var bp=[{sensor:ca,options:{}},{sensor:sa,options:{}}],yp={current:{}},Kr={draggable:{measure:Ci},droppable:{measure:Ci,strategy:Br.WhileDragging,frequency:Oi.Optimized},dragOverlay:{measure:Tt}},cr=class extends Map{get(t){return t==null?void 0:super.get(t)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:e}=t;return!e})}getNodeFor(t){var e;return((e=this.get(t))==null?void 0:e.node.current)??void 0}},vp={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new cr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zr},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kr,measureDroppableContainers:zr,windowRect:null,measuringScheduled:!1},Dp={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zr,draggableNodes:new Map,over:null,measureDroppableContainers:zr},Or=(0,v.createContext)(Dp),Ui=(0,v.createContext)(vp);function kp(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new cr}}}function jp(t,e){switch(e.type){case je.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case je.DragMove:return t.draggable.active==null?t:{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case je.DragEnd:case je.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case je.RegisterDroppable:{let{element:r}=e,{id:n}=r,a=new cr(t.droppable.containers);return a.set(n,r),{...t,droppable:{...t.droppable,containers:a}}}case je.SetDroppableDisabled:{let{id:r,key:n,disabled:a}=e,i=t.droppable.containers.get(r);if(!i||n!==i.key)return t;let l=new cr(t.droppable.containers);return l.set(r,{...i,disabled:a}),{...t,droppable:{...t.droppable,containers:l}}}case je.UnregisterDroppable:{let{id:r,key:n}=e,a=t.droppable.containers.get(r);if(!a||n!==a.key)return t;let i=new cr(t.droppable.containers);return i.delete(r),{...t,droppable:{...t.droppable,containers:i}}}default:return t}}function wp(t){let{disabled:e}=t,{active:r,activatorEvent:n,draggableNodes:a}=(0,v.useContext)(Or),i=pn(n),l=pn(r==null?void 0:r.id);return(0,v.useEffect)(()=>{if(!e&&!n&&i&&l!=null){if(!Ka(i)||document.activeElement===i.target)return;let s=a.get(l);if(!s)return;let{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let p of[c.current,u.current]){if(!p)continue;let d=Uf(p);if(d){d.focus();break}}})}},[n,e,a,l,i]),null}function Ep(t,e){let{transform:r,...n}=e;return t!=null&&t.length?t.reduce((a,i)=>i({transform:a,...n}),r):r}function Cp(t){return(0,v.useMemo)(()=>({draggable:{...Kr.draggable,...t==null?void 0:t.draggable},droppable:{...Kr.droppable,...t==null?void 0:t.droppable},dragOverlay:{...Kr.dragOverlay,...t==null?void 0:t.dragOverlay}}),[t==null?void 0:t.draggable,t==null?void 0:t.droppable,t==null?void 0:t.dragOverlay])}function Sp(t){let{activeNode:e,measure:r,initialRect:n,config:a=!0}=t,i=(0,v.useRef)(!1),{x:l,y:s}=typeof a=="boolean"?{x:a,y:a}:a;lt(()=>{if(!l&&!s||!e){i.current=!1;return}if(i.current||!n)return;let c=e==null?void 0:e.node.current;if(!c||c.isConnected===!1)return;let u=Ei(r(c),n);if(l||(u.x=0),s||(u.y=0),i.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){let p=Si(c);p&&p.scrollBy({top:u.y,left:u.x})}},[e,l,s,n,r])}var qi=(0,v.createContext)({...Fe,scaleX:1,scaleY:1}),dt;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(dt||(dt={}));var Tp=(0,v.memo)(function(t){var rt;let{id:e,accessibility:r,autoScroll:n=!0,children:a,sensors:i=bp,collisionDetection:l=wi,measuring:s,modifiers:c,...u}=t,[p,d]=(0,v.useReducer)(jp,void 0,kp),[m,g]=kd(),[f,b]=(0,v.useState)(dt.Uninitialized),h=f===dt.Initialized,{draggable:{active:y,nodes:k,translate:x},droppable:{containers:D}}=p,j=y==null?null:k.get(y),w=(0,v.useRef)({initial:null,translated:null}),C=(0,v.useMemo)(()=>y==null?null:{id:y,data:(j==null?void 0:j.data)??yp,rect:w},[y,j]),S=(0,v.useRef)(null),[_,E]=(0,v.useState)(null),[T,N]=(0,v.useState)(null),z=xr(u,Object.values(u)),$=gr("DndDescribedBy",e),P=(0,v.useMemo)(()=>D.getEnabled(),[D]),I=Cp(s),{droppableRects:A,measureDroppableContainers:B,measuringScheduled:R}=ip(P,{dragging:h,dependencies:[x.x,x.y],config:I.droppable}),K=ap(k,y),M=(0,v.useMemo)(()=>T?Aa(T):null,[T]),H=it(),O=lp(K,I.draggable.measure);Sp({activeNode:y==null?null:k.get(y),config:H.layoutShiftCompensation,initialRect:O,measure:I.draggable.measure});let F=Fi(K,I.draggable.measure,O),L=Fi(K?K.parentElement:null),V=(0,v.useRef)({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:A,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),q=D.getNodeFor((rt=V.current.over)==null?void 0:rt.id),W=xp({measure:I.dragOverlay.measure}),X=W.nodeRef.current??K,te=h?W.rect??F:null,re=!!(W.nodeRef.current&&W.rect),ee=cp(re?null:F),oe=Hi(X?nt(X):null),Y=dp(h?q??K:null),se=hp(Y),de=Ep(c,{transform:{x:x.x-ee.x,y:x.y-ee.y,scaleX:1,scaleY:1},activatorEvent:T,active:C,activeNodeRect:F,containerNodeRect:L,draggingNodeRect:te,over:V.current.over,overlayNodeRect:W.rect,scrollableAncestors:Y,scrollableAncestorRects:se,windowRect:oe}),be=M?Zt(M,x):null,ge=pp(Y),_e=Li(ge),Ie=Li(ge,[F]),le=Zt(de,_e),ce=te?Ad(te,de):null,we=C&&ce?l({active:C,collisionRect:ce,droppableRects:A,droppableContainers:P,pointerCoordinates:be}):null,He=ra(we,"id"),[ie,et]=(0,v.useState)(null),gt=zd(re?de:Zt(de,Ie),(ie==null?void 0:ie.rect)??null,F),We=(0,v.useRef)(null),tt=(0,v.useCallback)((Se,he)=>{let{sensor:fe,options:$e}=he;if(S.current==null)return;let ye=k.get(S.current);if(!ye)return;let ve=Se.nativeEvent;We.current=new fe({active:S.current,activeNode:ye,event:ve,options:$e,context:V,onAbort(pe){if(!k.get(pe))return;let{onDragAbort:ue}=z.current,Ke={id:pe};ue==null||ue(Ke),m({type:"onDragAbort",event:Ke})},onPending(pe,ue,Ke,Oe){if(!k.get(pe))return;let{onDragPending:Ne}=z.current,Be={id:pe,constraint:ue,initialCoordinates:Ke,offset:Oe};Ne==null||Ne(Be),m({type:"onDragPending",event:Be})},onStart(pe){let ue=S.current;if(ue==null)return;let Ke=k.get(ue);if(!Ke)return;let{onDragStart:Oe}=z.current,Ne={activatorEvent:ve,active:{id:ue,data:Ke.data,rect:w}};(0,sr.unstable_batchedUpdates)(()=>{Oe==null||Oe(Ne),b(dt.Initializing),d({type:je.DragStart,initialCoordinates:pe,active:ue}),m({type:"onDragStart",event:Ne}),E(We.current),N(ve)})},onMove(pe){d({type:je.DragMove,coordinates:pe})},onEnd:Ae(je.DragEnd),onCancel:Ae(je.DragCancel)});function Ae(pe){return async function(){let{active:ue,collisions:Ke,over:Oe,scrollAdjustedTranslate:Ne}=V.current,Be=null;if(ue&&Ne){let{cancelDrop:Ue}=z.current;Be={activatorEvent:ve,active:ue,collisions:Ke,delta:Ne,over:Oe},pe===je.DragEnd&&typeof Ue=="function"&&await Promise.resolve(Ue(Be))&&(pe=je.DragCancel)}S.current=null,(0,sr.unstable_batchedUpdates)(()=>{d({type:pe}),b(dt.Uninitialized),et(null),E(null),N(null),We.current=null;let Ue=pe===je.DragEnd?"onDragEnd":"onDragCancel";if(Be){let ft=z.current[Ue];ft==null||ft(Be),m({type:Ue,event:Be})}})}}},[k]),ht=op(i,(0,v.useCallback)((Se,he)=>(fe,$e)=>{let ye=fe.nativeEvent,ve=k.get($e);if(S.current!==null||!ve||ye.dndKit||ye.defaultPrevented)return;let Ae={active:ve};Se(fe,he.options,Ae)===!0&&(ye.dndKit={capturedBy:he.sensor},S.current=$e,tt(fe,he))},[k,tt]));mp(i),lt(()=>{F&&f===dt.Initializing&&b(dt.Initialized)},[F,f]),(0,v.useEffect)(()=>{let{onDragMove:Se}=z.current,{active:he,activatorEvent:fe,collisions:$e,over:ye}=V.current;if(!he||!fe)return;let ve={active:he,activatorEvent:fe,collisions:$e,delta:{x:le.x,y:le.y},over:ye};(0,sr.unstable_batchedUpdates)(()=>{Se==null||Se(ve),m({type:"onDragMove",event:ve})})},[le.x,le.y]),(0,v.useEffect)(()=>{let{active:Se,activatorEvent:he,collisions:fe,droppableContainers:$e,scrollAdjustedTranslate:ye}=V.current;if(!Se||S.current==null||!he||!ye)return;let{onDragOver:ve}=z.current,Ae=$e.get(He),pe=Ae&&Ae.rect.current?{id:Ae.id,rect:Ae.rect.current,data:Ae.data,disabled:Ae.disabled}:null,ue={active:Se,activatorEvent:he,collisions:fe,delta:{x:ye.x,y:ye.y},over:pe};(0,sr.unstable_batchedUpdates)(()=>{et(pe),ve==null||ve(ue),m({type:"onDragOver",event:ue})})},[He]),lt(()=>{V.current={activatorEvent:T,active:C,activeNode:K,collisionRect:ce,collisions:we,droppableRects:A,draggableNodes:k,draggingNode:X,draggingNodeRect:te,droppableContainers:D,over:ie,scrollableAncestors:Y,scrollAdjustedTranslate:le},w.current={initial:te,translated:ce}},[C,K,we,ce,k,X,te,A,D,ie,Y,le]),tp({...H,delta:x,draggingRect:ce,pointerCoordinates:be,scrollableAncestors:Y,scrollableAncestorRects:se});let Nt=(0,v.useMemo)(()=>({active:C,activeNode:K,activeNodeRect:F,activatorEvent:T,collisions:we,containerNodeRect:L,dragOverlay:W,draggableNodes:k,droppableContainers:D,droppableRects:A,over:ie,measureDroppableContainers:B,scrollableAncestors:Y,scrollableAncestorRects:se,measuringConfiguration:I,measuringScheduled:R,windowRect:oe}),[C,K,F,T,we,L,W,k,D,A,ie,B,Y,se,I,R,oe]),ot=(0,v.useMemo)(()=>({activatorEvent:T,activators:ht,active:C,activeNodeRect:F,ariaDescribedById:{draggable:$},dispatch:d,draggableNodes:k,over:ie,measureDroppableContainers:B}),[T,ht,C,F,d,$,k,ie,B]);return v.createElement(Di.Provider,{value:g},v.createElement(Or.Provider,{value:ot},v.createElement(Ui.Provider,{value:Nt},v.createElement(qi.Provider,{value:gt},a)),v.createElement(wp,{disabled:(r==null?void 0:r.restoreFocus)===!1})),v.createElement(Ed,{...r,hiddenTextDescribedById:$}));function it(){let Se=(_==null?void 0:_.autoScrollEnabled)===!1,he=typeof n=="object"?n.enabled===!1:n===!1,fe=h&&!Se&&!he;return typeof n=="object"?{...n,enabled:fe}:{enabled:fe}}}),_p=(0,v.createContext)(null),Xi="button",Ip="Draggable";function Np(t){let{id:e,data:r,disabled:n=!1,attributes:a}=t,i=gr(Ip),{activators:l,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:p,draggableNodes:d,over:m}=(0,v.useContext)(Or),{role:g=Xi,roleDescription:f="draggable",tabIndex:b=0}=a??{},h=(c==null?void 0:c.id)===e,y=(0,v.useContext)(h?qi:_p),[k,x]=hn(),[D,j]=hn(),w=gp(l,e),C=xr(r);return lt(()=>(d.set(e,{id:e,key:i,node:k,activatorNode:D,data:C}),()=>{let S=d.get(e);S&&S.key===i&&d.delete(e)}),[d,e]),{active:c,activatorEvent:s,activeNodeRect:u,attributes:(0,v.useMemo)(()=>({role:g,tabIndex:b,"aria-disabled":n,"aria-pressed":h&&g===Xi?!0:void 0,"aria-roledescription":f,"aria-describedby":p.draggable}),[n,g,b,h,f,p.draggable]),isDragging:h,listeners:n?void 0:w,node:k,over:m,setNodeRef:x,setActivatorNodeRef:j,transform:y}}function zp(){return(0,v.useContext)(Ui)}var $p="Droppable",Ap={timeout:25};function Bp(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:a}=t,i=gr($p),{active:l,dispatch:s,over:c,measureDroppableContainers:u}=(0,v.useContext)(Or),p=(0,v.useRef)({disabled:r}),d=(0,v.useRef)(!1),m=(0,v.useRef)(null),g=(0,v.useRef)(null),{disabled:f,updateMeasurementsFor:b,timeout:h}={...Ap,...a},y=xr(b??n),k=Pr({callback:(0,v.useCallback)(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),g.current=null},h)},[h]),disabled:f||!l}),[x,D]=hn((0,v.useCallback)((w,C)=>{k&&(C&&(k.unobserve(C),d.current=!1),w&&k.observe(w))},[k])),j=xr(e);return(0,v.useEffect)(()=>{!k||!x.current||(k.disconnect(),d.current=!1,k.observe(x.current))},[x,k]),(0,v.useEffect)(()=>(s({type:je.RegisterDroppable,element:{id:n,key:i,disabled:r,node:x,rect:m,data:j}}),()=>s({type:je.UnregisterDroppable,key:i,id:n})),[n]),(0,v.useEffect)(()=>{r!==p.current.disabled&&(s({type:je.SetDroppableDisabled,id:n,key:i,disabled:r}),p.current.disabled=r)},[n,i,r,s]),{active:l,rect:m,isOver:(c==null?void 0:c.id)===n,node:x,over:c,setNodeRef:D}}function Gi(t,e,r){let n=t.slice();return n.splice(r<0?n.length+r:r,0,n.splice(e,1)[0]),n}function Pp(t,e){return t.reduce((r,n,a)=>{let i=e.get(n);return i&&(r[a]=i),r},Array(t.length))}function Rr(t){return t!==null&&t>=0}function Kp(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r{let{rects:e,activeNodeRect:r,activeIndex:n,overIndex:a,index:i}=t,l=e[n]??r;if(!l)return null;let s=Mp(e,i,n);if(i===n){let c=e[a];return c?{x:nn&&i<=a?{x:-l.width-s,y:0,...Mr}:i=a?{x:l.width+s,y:0,...Mr}:{x:0,y:0,...Mr}};function Mp(t,e,r){let n=t[e],a=t[e-1],i=t[e+1];return!n||!a&&!i?0:r{let{rects:e,activeIndex:r,overIndex:n,index:a}=t,i=Gi(e,n,r),l=e[a],s=i[a];return!s||!l?null:{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}},Fr={scaleX:1,scaleY:1},Fp=t=>{let{activeIndex:e,activeNodeRect:r,index:n,rects:a,overIndex:i}=t,l=a[e]??r;if(!l)return null;if(n===e){let c=a[i];return c?{x:0,y:ee&&n<=i?{x:0,y:-l.height-s,...Fr}:n=i?{x:0,y:l.height+s,...Fr}:{x:0,y:0,...Fr}};function Vp(t,e,r){let n=t[e],a=t[e-1],i=t[e+1];return n?rn.map(w=>typeof w=="object"&&"id"in w?w.id:w),[n]),f=l!=null,b=l?g.indexOf(l.id):-1,h=u?g.indexOf(u.id):-1,y=(0,v.useRef)(g),k=!Kp(g,y.current),x=h!==-1&&b===-1||k,D=Op(i);lt(()=>{k&&f&&p(g)},[k,g,f,p]),(0,v.useEffect)(()=>{y.current=g},[g]);let j=(0,v.useMemo)(()=>({activeIndex:b,containerId:d,disabled:D,disableTransforms:x,items:g,overIndex:h,useDragOverlay:m,sortedRects:Pp(g,c),strategy:a}),[b,d,D.draggable,D.droppable,x,g,h,c,m,a]);return v.createElement(Ji.Provider,{value:j},e)}var Lp=t=>{let{id:e,items:r,activeIndex:n,overIndex:a}=t;return Gi(r,n,a).indexOf(e)},Hp=t=>{let{containerId:e,isSorting:r,wasDragging:n,index:a,items:i,newIndex:l,previousItems:s,previousContainerId:c,transition:u}=t;return!u||!n||s!==i&&a===l?!1:r?!0:l!==a&&e===c},Wp={duration:200,easing:"ease"},el="transform",Up=gn.Transition.toString({property:el,duration:0,easing:"linear"}),qp={roleDescription:"sortable"};function Xp(t){let{disabled:e,index:r,node:n,rect:a}=t,[i,l]=(0,v.useState)(null),s=(0,v.useRef)(r);return lt(()=>{if(!e&&r!==s.current&&n.current){let c=a.current;if(c){let u=Tt(n.current,{ignoreTransform:!0}),p={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(p.x||p.y)&&l(p)}}r!==s.current&&(s.current=r)},[e,r,n,a]),(0,v.useEffect)(()=>{i&&l(null)},[i]),i}function tl(t){let{animateLayoutChanges:e=Hp,attributes:r,disabled:n,data:a,getNewIndex:i=Lp,id:l,strategy:s,resizeObserverConfig:c,transition:u=Wp}=t,{items:p,containerId:d,activeIndex:m,disabled:g,disableTransforms:f,sortedRects:b,overIndex:h,useDragOverlay:y,strategy:k}=(0,v.useContext)(Ji),x=Gp(n,g),D=p.indexOf(l),j=(0,v.useMemo)(()=>({sortable:{containerId:d,index:D,items:p},...a}),[d,a,D,p]),w=(0,v.useMemo)(()=>p.slice(p.indexOf(l)),[p,l]),{rect:C,node:S,isOver:_,setNodeRef:E}=Bp({id:l,data:j,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...c}}),{active:T,activatorEvent:N,activeNodeRect:z,attributes:$,setNodeRef:P,listeners:I,isDragging:A,over:B,setActivatorNodeRef:R,transform:K}=Np({id:l,data:j,attributes:{...qp,...r},disabled:x.draggable}),M=Wf(E,P),H=!!T,O=H&&!f&&Rr(m)&&Rr(h),F=!y&&A,L=O?(F&&O?K:null)??(s??k)({rects:b,activeNodeRect:z,activeIndex:m,overIndex:h,index:D}):null,V=Rr(m)&&Rr(h)?i({id:l,items:p,activeIndex:m,overIndex:h}):D,q=T==null?void 0:T.id,W=(0,v.useRef)({activeId:q,items:p,newIndex:V,containerId:d}),X=p!==W.current.items,te=e({active:T,containerId:d,isDragging:A,isSorting:H,id:l,index:D,items:p,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:u,wasDragging:W.current.activeId!=null}),re=Xp({disabled:!te,index:D,node:S,rect:C});return(0,v.useEffect)(()=>{H&&W.current.newIndex!==V&&(W.current.newIndex=V),d!==W.current.containerId&&(W.current.containerId=d),p!==W.current.items&&(W.current.items=p)},[H,V,d,p]),(0,v.useEffect)(()=>{if(q===W.current.activeId)return;if(q!=null&&W.current.activeId==null){W.current.activeId=q;return}let oe=setTimeout(()=>{W.current.activeId=q},50);return()=>clearTimeout(oe)},[q]),{active:T,activeIndex:m,attributes:$,data:j,rect:C,index:D,newIndex:V,items:p,isOver:_,isSorting:H,isDragging:A,listeners:I,node:S,overIndex:h,over:B,setNodeRef:M,setActivatorNodeRef:R,setDroppableNodeRef:E,setDraggableNodeRef:P,transform:re??L,transition:ee()};function ee(){if(re||X&&W.current.newIndex===D)return Up;if(!(F&&!Ka(N)||!u)&&(H||te))return gn.Transition.toString({...u,property:el})}}function Gp(t,e){return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(t==null?void 0:t.draggable)??e.draggable,droppable:(t==null?void 0:t.droppable)??e.droppable}}function Vr(t){if(!t)return!1;let e=t.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}var Yp=[ne.Down,ne.Right,ne.Up,ne.Left],Zp=(t,e)=>{let{context:{active:r,collisionRect:n,droppableRects:a,droppableContainers:i,over:l,scrollableAncestors:s}}=e;if(Yp.includes(t.code)){if(t.preventDefault(),!r||!n)return;let c=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;let m=a.get(d.id);if(m)switch(t.code){case ne.Down:n.topm.top&&c.push(d);break;case ne.Left:n.left>m.left&&c.push(d);break;case ne.Right:n.left1&&(p=u[1].id),p!=null){let d=i.get(r.id),m=i.get(p),g=m?a.get(m.id):null,f=m==null?void 0:m.node.current;if(f&&g&&d&&m){let b=$r(f).some((D,j)=>s[j]!==D),h=rl(d,m),y=Jp(d,m),k=b||!h?{x:0,y:0}:{x:y?n.width-g.width:0,y:y?n.height-g.height:0},x={x:g.left,y:g.top};return k.x&&k.y?x:fr(x,k)}}}};function rl(t,e){return!Vr(t)||!Vr(e)?!1:t.data.current.sortable.containerId===e.data.current.sortable.containerId}function Jp(t,e){return!Vr(t)||!Vr(e)||!rl(t,e)?!1:t.data.current.sortable.index{let t=(0,Qp.c)(21),{startupLogsAlert:e}=Ks(),{clearStartupLogsAlert:r}=Rs(),[n,a]=(0,v.useState)(!1),i=e==null?void 0:e.status,l;t[0]===r?l=t[1]:(l=()=>{r(),a(!0)},t[0]=r,t[1]=l);let s=rf(l),c=i==="done",u=i==="start"||i==="append",p;t[2]!==s||t[3]!==c?(p=()=>{let j;return c&&(j=window.setTimeout(()=>s(),5e3)),()=>{j&&window.clearTimeout(j)}},t[2]=s,t[3]=c,t[4]=p):p=t[4];let d;if(t[5]===c?d=t[6]:(d=[c],t[5]=c,t[6]=d),(0,v.useEffect)(p,d),e===null||n)return null;let m;t[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,o.jsx)(_a,{className:"w-5 h-5 inline-block mr-2"}),t[7]=m):m=t[7];let g=u?"Initializing...":"Initialized",f;t[8]===g?f=t[9]:(f=(0,o.jsxs)("span",{className:"font-bold text-lg flex items-center mb-2",children:[m,g]}),t[8]=g,t[9]=f);let b;t[10]===Symbol.for("react.memo_cache_sentinel")?(b=(0,o.jsx)(Ge,{className:"w-5 h-5"}),t[10]=b):b=t[10];let h;t[11]===s?h=t[12]:(h=(0,o.jsx)(ae,{variant:"text","data-testid":"remove-startup-logs-button",size:"icon",onClick:s,children:b}),t[11]=s,t[12]=h);let y;t[13]!==f||t[14]!==h?(y=(0,o.jsxs)("div",{className:"flex justify-between",children:[f,h]}),t[13]=f,t[14]=h,t[15]=y):y=t[15];let k=e.content||"Starting startup script...",x;t[16]===k?x=t[17]:(x=(0,o.jsx)("div",{className:"flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",children:(0,o.jsx)("div",{className:"w-full",children:(0,o.jsx)("pre",{className:"bg-muted p-3 rounded text-sm font-mono overflow-auto max-h-64 whitespace-pre-wrap",children:k})})}),t[16]=k,t[17]=x);let D;return t[18]!==x||t[19]!==y?(D=(0,o.jsx)("div",{className:"flex flex-col gap-4 mb-5 fixed top-5 left-12 min-w-[400px] max-w-[600px] z-200 opacity-95",children:(0,o.jsxs)(wt,{kind:"info",className:"flex flex-col rounded py-3 px-5 animate-in slide-in-from-left",children:[y,x]})}),t[18]=x,t[19]=y,t[20]=D):D=t[20],D};var nl=U(),tm=x0("rounded-full shadow-xs-solid border p-[5px] transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 [&>svg]:size-3 active:shadow-none bg-background",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",stale:"bg-(--yellow-3) hover:bg-(--yellow-4) text-(--yellow-11)",green:"hover:bg-(--grass-2) hover:text-(--grass-11) hover:border-[var(--grass-7)],",disabled:"opacity-50 cursor-not-allowed",danger:"hover:bg-(--red-3) hover:text-(--red-11)"}},defaultVariants:{variant:"default"}});const dr=t=>{let e=(0,nl.c)(18),r,n,a,i,l,s,c;if(e[0]!==t){let{children:d,tooltip:m,disabled:g,variant:f,...b}=t;r=d,c=m;let h=g===void 0?!1:g;n=h,a=b,i=y=>{var k;h||((k=b.onClick)==null||k.call(b,y))},l=Va.preventFocus,s=Z(tm({variant:f}),b.className),e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=i,e[5]=l,e[6]=s,e[7]=c}else r=e[1],n=e[2],a=e[3],i=e[4],l=e[5],s=e[6],c=e[7];let u;e[8]!==r||e[9]!==n||e[10]!==a||e[11]!==i||e[12]!==l||e[13]!==s?(u=(0,o.jsx)("button",{disabled:n,...a,onClick:i,onMouseDown:l,className:s,children:r}),e[8]=r,e[9]=n,e[10]=a,e[11]=i,e[12]=l,e[13]=s,e[14]=u):u=e[14];let p=u;if(c){let d;return e[15]!==p||e[16]!==c?(d=(0,o.jsx)(Q,{content:c,side:"top",delayDuration:200,usePortal:!1,children:p}),e[15]=p,e[16]=c,e[17]=d):d=e[17],d}return p},rm=t=>{let e=(0,nl.c)(5),{children:r,className:n}=t,a;e[0]===n?a=e[1]:(a=Z("flex items-center gap-1 bg-background m-[2px] rounded-full",n),e[0]=n,e[1]=a);let i;return e[2]!==r||e[3]!==a?(i=(0,o.jsx)(Cc,{className:a,children:r}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i};var nm=U();const am=t=>{let e=(0,nm.c)(9),{connectionState:r,status:n}=t,{sendInterrupt:a}=at(),i=vi(n==="running"),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ze("global.interrupt"),e[0]=l):l=e[0];let s;e[1]!==r||e[2]!==i?(s=Xe(r)||!i,e[1]=r,e[2]=i,e[3]=s):s=e[3];let c=i?a:br.NOOP,u=i?"stale":"disabled",p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,o.jsx)(Ws,{strokeWidth:1.5}),e[4]=p):p=e[4];let d;return e[5]!==s||e[6]!==c||e[7]!==u?(d=(0,o.jsx)(dr,{tooltip:l,disabled:s,onClick:c,variant:u,"data-testid":"run-button",children:p}),e[5]=s,e[6]=c,e[7]=u,e[8]=d):d=e[8],d};var om={width:void 0,height:void 0};function im(t){let{ref:e,box:r="content-box",skip:n}=t,a=(0,v.useRef)({...om}),i=(0,v.useRef)(void 0);i.current=t.onResize,(0,v.useEffect)(()=>{if(!e.current||n||typeof window>"u"||!("ResizeObserver"in window))return;let l=new ResizeObserver(([s])=>{let c=r==="border-box"?"borderBoxSize":r==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",u=al(s,c,"inlineSize"),p=al(s,c,"blockSize");if(a.current.width!==u||a.current.height!==p){let d={width:u,height:p};a.current.width=u,a.current.height=p,i.current&&i.current(d)}});return l.observe(e.current,{box:r}),()=>{l.disconnect()}},[r,e,n])}function al(t,e,r){return t[e]?Array.isArray(t[e])?t[e][0][r]:t[e][r]:e==="contentBoxSize"?t.contentRect[r==="inlineSize"?"width":"height"]:void 0}function lm(){return{countRender:()=>{}}}function sm(t){let e=t.current;if(e===null)throw ReferenceError("Attempting to dereference null object.");return e}var um=U();const ol=t=>{let e=(0,um.c)(56),{connectionState:r,onClick:n,tooltipContent:a,oneClickShortcut:i}=t,{createNewCell:l,addSetupCellIfDoesntExist:s}=qe(),c=`${i}-Click`,[u,p]=(0,v.useState)(!1),[d,m]=(0,v.useState)(!1),g;e[0]!==r||e[1]!==a?(g=xn(r)||a,e[0]=r,e[1]=a,e[2]=g):g=e[2];let f=g,b;e[3]!==f||e[4]!==r||e[5]!==c?(b=Xe(r)?f:(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,o.jsx)("div",{children:f}),(0,o.jsxs)("div",{className:"text-xs text-muted-foreground font-medium pt-1 -mt-2 border-t border-border",children:[(0,o.jsx)(gb,{shortcut:c,className:"inline"})," ",(0,o.jsx)("span",{children:"for other cell types"})]})]}),e[3]=f,e[4]=r,e[5]=c,e[6]=b):b=e[6];let h=b,y;e[7]===n?y=e[8]:(y=()=>{n==null||n({code:""})},e[7]=n,e[8]=y);let k=y,x;e[9]!==l||e[10]!==n?(x=()=>{Bn({autoInstantiate:!0,createNewCell:l}),n==null||n({code:an.markdown.defaultCode,hideCode:!0})},e[9]=l,e[10]=n,e[11]=x):x=e[11];let D=x,j;e[12]!==l||e[13]!==n?(j=()=>{Bn({autoInstantiate:!0,createNewCell:l}),n==null||n({code:an.sql.defaultCode})},e[12]=l,e[13]=n,e[14]=j):j=e[14];let w=j,C;e[15]===s?C=e[16]:(C=()=>{s({})},e[15]=s,e[16]=C);let S=C,_=cm,E;e[17]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{p(!0),m(!0),setTimeout(()=>m(!1),200)},e[17]=E):E=e[17];let T=E,N;e[18]!==k||e[19]!==i?(N=Y=>{Y.button!==2&&(Y.preventDefault(),Y.stopPropagation(),(i==="shift"?Y.shiftKey:Y.metaKey||Y.ctrlKey)?T():k())},e[18]=k,e[19]=i,e[20]=N):N=e[20];let z=N,$;e[21]===Symbol.for("react.memo_cache_sentinel")?($=Y=>{Y.preventDefault(),Y.stopPropagation(),T()},e[21]=$):$=e[21];let P=$,I;e[22]===Symbol.for("react.memo_cache_sentinel")?(I=Y=>{p(Y),Y&&(m(!0),setTimeout(()=>m(!1),200))},e[22]=I):I=e[22];let A=I,B;e[23]!==k||e[24]!==d?(B=Y=>{if(d){Y.preventDefault(),Y.stopPropagation();return}k()},e[23]=k,e[24]=d,e[25]=B):B=e[25];let R=B,K;e[26]===r?K=e[27]:(K=Z("border-none hover-action shadow-none! bg-transparent! focus-visible:outline-none",Xe(r)&&" inactive-button"),e[26]=r,e[27]=K);let M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M=(0,o.jsx)(ro,{strokeWidth:1.8,size:14,className:"opacity-60 hover:opacity-90"}),e[28]=M):M=e[28];let H;e[29]===h?H=e[30]:(H=(0,o.jsx)(Q,{content:h,children:M}),e[29]=h,e[30]=H);let O;e[31]!==z||e[32]!==K||e[33]!==H?(O=(0,o.jsx)(Dt,{asChild:!0,children:(0,o.jsx)(ut,{className:K,onPointerDownCapture:z,onContextMenuCapture:P,size:"small","data-testid":"create-cell-button",children:H})}),e[31]=z,e[32]=K,e[33]=H,e[34]=O):O=e[34];let F;e[35]===Symbol.for("react.memo_cache_sentinel")?(F=_((0,o.jsx)(xb,{})),e[35]=F):F=e[35];let L;e[36]===R?L=e[37]:(L=(0,o.jsxs)(yt,{onClick:R,children:[F,"Python cell"]}),e[36]=R,e[37]=L);let V;e[38]===Symbol.for("react.memo_cache_sentinel")?(V=_((0,o.jsx)(bb,{})),e[38]=V):V=e[38];let q;e[39]===D?q=e[40]:(q=(0,o.jsxs)(yt,{onClick:D,children:[V,"Markdown cell"]}),e[39]=D,e[40]=q);let W;e[41]===Symbol.for("react.memo_cache_sentinel")?(W=_((0,o.jsx)(Xl,{size:13,strokeWidth:1.5})),e[41]=W):W=e[41];let X;e[42]===w?X=e[43]:(X=(0,o.jsxs)(yt,{onClick:w,children:[W,"SQL cell"]}),e[42]=w,e[43]=X);let te;e[44]===Symbol.for("react.memo_cache_sentinel")?(te=_((0,o.jsx)(ax,{size:13,strokeWidth:1.5})),e[44]=te):te=e[44];let re;e[45]===S?re=e[46]:(re=(0,o.jsxs)(yt,{onClick:S,children:[te,"Setup cell"]}),e[45]=S,e[46]=re);let ee;e[47]!==L||e[48]!==q||e[49]!==X||e[50]!==re?(ee=(0,o.jsxs)(kt,{side:"bottom",sideOffset:-30,children:[L,q,X,re]}),e[47]=L,e[48]=q,e[49]=X,e[50]=re,e[51]=ee):ee=e[51];let oe;return e[52]!==u||e[53]!==O||e[54]!==ee?(oe=(0,o.jsxs)(jt,{open:u,onOpenChange:A,children:[O,ee]}),e[52]=u,e[53]=O,e[54]=ee,e[55]=oe):oe=e[55],oe};function cm(t){return(0,o.jsx)("div",{className:"mr-3 text-muted-foreground",children:t})}var dm=U();const il=t=>{let e=(0,dm.c)(35),{children:r,cellId:n,getEditorView:a}=t,i=ln(n),l=on(n),s=!Ya(l.output),c=l.consoleOutputs.length>0,u;e[0]!==i.config||e[1]!==i.name||e[2]!==n||e[3]!==l.status||e[4]!==a||e[5]!==s||e[6]!==c?(u={cell:{cellId:n,name:i.name,config:i.config,status:l.status,hasOutput:s,hasConsoleOutput:c,getEditorView:a}},e[0]=i.config,e[1]=i.name,e[2]=n,e[3]=l.status,e[4]=a,e[5]=s,e[6]=c,e[7]=u):u=e[7];let p=tx(u),[d,m]=v.useState(),g=!!d,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(Dx,{size:13,strokeWidth:1.5}),e[8]=f):f=e[8];let b;e[9]===n?b=e[10]:(b=async()=>{var _;if((_=window.getSelection())!=null&&_.toString()){document.execCommand("copy");return}let S=document.getElementById(Tf.create(n));if(!S){Me.warn("cell-context-menu: output not found");return}await nb(S.textContent??"")},e[9]=n,e[10]=b);let h,y,k,x,D,j;if(e[11]!==p||e[12]!==r||e[13]!==a||e[14]!==d||e[15]!==g||e[16]!==b){let S=[[{label:"Copy",hidden:g,icon:f,handle:b},{label:"Cut",hidden:!!d,icon:(0,o.jsx)(Z0,{size:13,strokeWidth:1.5}),handle:pm},{label:"Paste",hidden:!!d,icon:(0,o.jsx)(yx,{size:13,strokeWidth:1.5}),handle:async()=>{let E=a();if(E)try{let T=await navigator.clipboard.readText();if(T){let{from:N,to:z}=E.state.selection.main,$=E.state.update({changes:{from:N,to:z,insert:T}});E.dispatch($)}}catch(T){let N=T;Me.error("Failed to paste from clipboard",N),U0({command:"paste"})}}},{label:"Copy image",hidden:!d,icon:(0,o.jsx)(px,{size:13,strokeWidth:1.5}),handle:async()=>{if(d){let E=await(await fetch(d.src)).blob(),T=new ClipboardItem({[E.type]:E});await navigator.clipboard.write([T]).then(mm).catch(gm)}}},{icon:(0,o.jsx)(s1,{size:13,strokeWidth:1.5}),label:"Download image",hidden:!d,handle:()=>{if(d){let E=document.createElement("a");E.download="image.png",E.href=d.src,E.click()}}},{label:"Go to Definition",icon:(0,o.jsx)(k1,{size:13,strokeWidth:1.5}),handle:()=>{let E=a();E&&gf(E)}}],...p];y=ks;let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=E=>{E.target instanceof HTMLImageElement?m(E.target):m(void 0)},e[23]=_):_=e[23],e[24]===r?k=e[25]:(k=(0,o.jsx)(Ds,{onContextMenu:_,asChild:!0,children:r}),e[24]=r,e[25]=k),h=js,x="w-[300px]",D=!0,j=S.map((E,T)=>(0,o.jsxs)(v.Fragment,{children:[E.map(fm),T{t.disableClick||t.disabled||t.handle(r)},variant:t.variant,children:e})},t.label)}var xm=U();const bm=t=>{let e=(0,xm.c)(10),r;e[0]===t.left?r=e[1]:(r=(0,o.jsx)("div",{className:"flex-1 flex item-center gap-2",children:t.left}),e[0]=t.left,e[1]=r);let n;e[2]===t.center?n=e[3]:(n=(0,o.jsx)("div",{className:"flex-1 flex item-center gap-2 justify-center",children:t.center}),e[2]=t.center,e[3]=n);let a;e[4]===t.right?a=e[5]:(a=(0,o.jsx)("div",{className:"flex-1 flex item-center gap-2 justify-end",children:t.right}),e[4]=t.right,e[5]=a);let i;return e[6]!==r||e[7]!==n||e[8]!==a?(i=(0,o.jsxs)("div",{className:"flex items-center gap-2 w-full px-3",children:[r,n,a]}),e[6]=r,e[7]=n,e[8]=a,e[9]=i):i=e[9],i};var ma=U();const ym=t=>{let e=(0,ma.c)(8);if(!t.canCollapse&&!t.isCollapsed)return null;let r=t.isCollapsed?"Expand":"Collapse",n;e[0]===t.isCollapsed?n=e[1]:(n=(0,o.jsx)("span",{children:(0,o.jsx)(vm,{isCollapsed:t.isCollapsed})}),e[0]=t.isCollapsed,e[1]=n);let a;e[2]!==r||e[3]!==n?(a=(0,o.jsx)(Q,{content:r,children:n}),e[2]=r,e[3]=n,e[4]=a):a=e[4];let i;return e[5]!==t.onClick||e[6]!==a?(i=(0,o.jsx)(ae,{variant:"text",size:"icon",onClick:t.onClick,children:a}),e[5]=t.onClick,e[6]=a,e[7]=i):i=e[7],i};var vm=t=>{let e=(0,ma.c)(2),{isCollapsed:r}=t,n;return e[0]===r?n=e[1]:(n=r?(0,o.jsx)(Ga,{className:"shrink-0 opacity-60",strokeWidth:1.8,size:14}):(0,o.jsx)(er,{className:"shrink-0 opacity-60",strokeWidth:1.8,size:14}),e[0]=r,e[1]=n),n};const ll=(0,v.memo)(t=>{let e=(0,ma.c)(24),{onClick:r,count:n,cellId:a}=t,i=uf(),l;e[0]!==a||e[1]!==i?(l=Af(i,a),e[0]=a,e[1]=i,e[2]=l):l=e[2];let s=l,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=Z("flex items-center justify-between w-[calc(100%-2rem)] h-9 bg-muted rounded-b mx-4 opacity-80 hover:opacity-100 cursor-pointer"),e[3]=c):c=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsx)(rx,{className:"w-4 h-4 shrink-0"}),e[4]=u):u=e[4];let p=n===1?"cell":"cells",d;e[5]!==n||e[6]!==p?(d=(0,o.jsxs)(o.Fragment,{children:[u,(0,o.jsxs)("span",{className:"text-sm text-gray-500",children:[n," ",p," collapsed"]})]}),e[5]=n,e[6]=p,e[7]=d):d=e[7];let m;e[8]===s.errored?m=e[9]:(m=s.errored&&(0,o.jsx)(Q,{content:"Has errors",delayDuration:100,children:(0,o.jsx)(mu,{className:"w-4 h-4 shrink-0 text-destructive"})}),e[8]=s.errored,e[9]=m);let g;e[10]===s.stale?g=e[11]:(g=s.stale&&(0,o.jsx)(Q,{content:"Has stale cells",delayDuration:100,children:(0,o.jsx)(p1,{className:"w-4 h-4 shrink-0 text-(--yellow-11)"})}),e[10]=s.stale,e[11]=g);let f;e[12]===s.runningOrQueued?f=e[13]:(f=s.runningOrQueued&&(0,o.jsx)(Q,{content:"Running",delayDuration:100,children:(0,o.jsx)(u1,{className:"w-4 h-4 shrink-0 animate-spin"})}),e[12]=s.runningOrQueued,e[13]=f);let b;e[14]!==m||e[15]!==g||e[16]!==f?(b=(0,o.jsxs)(o.Fragment,{children:[m,g,f]}),e[14]=m,e[15]=g,e[16]=f,e[17]=b):b=e[17];let h;e[18]!==d||e[19]!==b?(h=(0,o.jsx)(bm,{center:d,right:b}),e[18]=d,e[19]=b,e[20]=h):h=e[20];let y;return e[21]!==r||e[22]!==h?(y=(0,o.jsx)("div",{onClick:r,className:c,children:h}),e[21]=r,e[22]=h,e[23]=y):y=e[23],y});ll.displayName="CollapsedCellBanner";var Dm=U();const sl=t=>{let e=(0,Dm.c)(31),{status:r,connectionState:n,onClick:a}=t,i=r==="running"||r==="queued",l,s,c,u,p,d,m,g,f,b;if(e[0]!==n||e[1]!==i||e[2]!==a||e[3]!==r){let D=Xe(n),j;if(D){let w;e[14]===n?w=e[15]:(w=xn(n),e[14]=n,e[15]=w),j=w}else j=r==="running"?"A cell can't be deleted when it's running":r==="queued"?"A cell can't be deleted when it's queued to run":"Delete";s=Q,f=j,b=!1,l=ae,c="ghost",u="icon",p=a,d="delete-button",m=Va.preventFocus,g=Z("hover:bg-transparent text-destructive/60 hover:text-destructive",(D||i)&&"inactive-button"),e[0]=n,e[1]=i,e[2]=a,e[3]=r,e[4]=l,e[5]=s,e[6]=c,e[7]=u,e[8]=p,e[9]=d,e[10]=m,e[11]=g,e[12]=f,e[13]=b}else l=e[4],s=e[5],c=e[6],u=e[7],p=e[8],d=e[9],m=e[10],g=e[11],f=e[12],b=e[13];let h,y;e[16]===Symbol.for("react.memo_cache_sentinel")?(h={boxShadow:"none"},y=(0,o.jsx)(Us,{size:14}),e[16]=h,e[17]=y):(h=e[16],y=e[17]);let k;e[18]!==l||e[19]!==c||e[20]!==u||e[21]!==p||e[22]!==d||e[23]!==m||e[24]!==g?(k=(0,o.jsx)(l,{variant:c,size:u,onClick:p,"data-testid":d,onMouseDown:m,className:g,style:h,children:y}),e[18]=l,e[19]=c,e[20]=u,e[21]=p,e[22]=d,e[23]=m,e[24]=g,e[25]=k):k=e[25];let x;return e[26]!==s||e[27]!==k||e[28]!==f||e[29]!==b?(x=(0,o.jsx)(s,{content:f,usePortal:b,children:k}),e[26]=s,e[27]=k,e[28]=f,e[29]=b,e[30]=x):x=e[30],x};var km=U();const jm=t=>{let e=(0,km.c)(22),{cellId:r}=t,n=Vx(r);if(!n.isPending)return null;if(n.type==="simple"){let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=Z("px-3 py-1.5","bg-(--amber-2) border-t border-(--amber-6)","animate-in slide-in-from-top-2 duration-200"),e[0]=y):y=e[0];let k=`pending-delete-${r}`,x;e[1]===Symbol.for("react.memo_cache_sentinel")?(x=(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(Tn,{className:"w-3 h-3 text-(--amber-11) shrink-0"}),(0,o.jsx)("span",{className:"text-(--amber-11) text-xs",children:"Pending deletion"})]}),e[1]=x):x=e[1];let D;return e[2]===k?D=e[3]:(D=(0,o.jsx)("div",{className:y,"data-testid":k,children:x}),e[2]=k,e[3]=D),D}let a=n.executionDurationMs!==void 0,i=n.defs.size>0,l=V0(n.executionDurationMs??0),s="Pending deletion";a&&i?s=`This cell took ${l} to run and contains variables referenced by other cells.`:a?s=`This cell took ${l} to run.`:i&&(s="This cell contains variables referenced by other cells.");let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=Z("px-4 py-3","bg-(--amber-2) border-t border-(--amber-6)","animate-in slide-in-from-top-2 duration-200"),e[4]=c):c=e[4];let u=`pending-delete-${r}`,p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=(0,o.jsx)(Tn,{className:"w-4 h-4 text-(--amber-11) mt-0.5 shrink-0"}),e[5]=p):p=e[5];let d;e[6]===s?d=e[7]:(d=(0,o.jsx)("p",{className:"text-(--amber-11) font-medium",children:s}),e[6]=s,e[7]=d);let m;e[8]!==i||e[9]!==n.defs?(m=i&&[...n.defs.entries()].map(Em),e[8]=i,e[9]=n.defs,e[10]=m):m=e[10];let g;e[11]!==d||e[12]!==m?(g=(0,o.jsxs)("div",{className:"font-code text-sm text-[0.84375rem]",children:[d,m]}),e[11]=d,e[12]=m,e[13]=g):g=e[13];let f;e[14]===n?f=e[15]:(f=n.shouldConfirmDelete&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"text-(--amber-11) mt-2 mb-3",children:"Are you sure you want to delete?"}),(0,o.jsx)(In,{autoFocus:!0,children:(0,o.jsxs)("div",{className:"flex items-center gap-2",onKeyDown:Cm,children:[(0,o.jsx)(ae,{size:"xs",variant:"ghost",onClick:()=>n.cancel(),className:"text-(--amber-11) hover:bg-(--amber-4) hover:text-(--amber-11)",children:"Cancel"}),(0,o.jsx)(ae,{size:"xs",variant:"secondary",onClick:()=>n.confirm(),className:"bg-(--amber-11) hover:bg-(--amber-12) text-white border-(--amber-11)",children:"Delete"})]})})]}),e[14]=n,e[15]=f);let b;e[16]!==g||e[17]!==f?(b=(0,o.jsxs)("div",{className:"flex items-start gap-3",children:[p,(0,o.jsxs)("div",{className:"flex-1",children:[g,f]})]}),e[16]=g,e[17]=f,e[18]=b):b=e[18];let h;return e[19]!==u||e[20]!==b?(h=(0,o.jsx)("div",{className:c,"data-testid":u,children:b}),e[19]=u,e[20]=b,e[21]=h):h=e[21],h};function wm(t){return(0,o.jsx)("li",{className:"my-0.5 ml-8 text-(--amber-11)/60",children:(0,o.jsx)(db,{cellId:t})},t)}function Em(t){let[e,r]=t;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{className:"text-(--amber-11) mt-2",children:["'",(0,o.jsx)("span",{className:"font-mono",children:e}),"' is referenced by:"]}),(0,o.jsx)("ul",{className:"list-disc",children:r.map(wm)})]},e)}function Cm(t){t.stopPropagation()}var Sm=U();function Tm({connectionState:t,needsRun:e,loading:r,inactive:n}){return Xe(t)?"disabled":e&&!r?"stale":r||n?"disabled":"green"}const _m=t=>{let e=(0,Sm.c)(27),{onClick:r,connectionState:n,needsRun:a,status:i,config:l,edited:s}=t,c=i==="disabled-transitively",u=i==="running"||i==="queued",p,d;e[0]!==c||e[1]!==l.disabled||e[2]!==n||e[3]!==s||e[4]!==u||e[5]!==a?(p=Xe(n)||u||!l.disabled&&c&&!s,d=Tm({connectionState:n,needsRun:a,loading:u,inactive:p}),e[0]=c,e[1]=l.disabled,e[2]=n,e[3]=s,e[4]=u,e[5]=a,e[6]=p,e[7]=d):(p=e[6],d=e[7]);let m=d;if(l.disabled){let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)(Et,{}),e[8]=h):h=e[8];let y;return e[9]!==p||e[10]!==r||e[11]!==m?(y=(0,o.jsx)(dr,{tooltip:"Add code to notebook",disabled:p,onClick:r,variant:m,"data-testid":"run-button",children:h}),e[9]=p,e[10]=r,e[11]=m,e[12]=y):y=e[12],y}if(!l.disabled&&c&&!s){let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)(Dr,{strokeWidth:1.2}),e[13]=h):h=e[13];let y;return e[14]!==p||e[15]!==r||e[16]!==m?(y=(0,o.jsx)(dr,{disabled:p,tooltip:"This cell can't be run because it has a disabled ancestor",onClick:r,variant:m,"data-testid":"run-button",children:h}),e[14]=p,e[15]=r,e[16]=m,e[17]=y):y=e[17],y}let g;if(Xe(n)){let h;e[18]===n?h=e[19]:(h=xn(n),e[18]=n,e[19]=h),g=h}else if(i==="queued")g="This cell is already queued to run";else if(i==="running")g="This cell is already running.";else{let h;e[20]===Symbol.for("react.memo_cache_sentinel")?(h=Ze("cell.run"),e[20]=h):h=e[20],g=h}let f;e[21]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(Dr,{strokeWidth:1.2}),e[21]=f):f=e[21];let b;return e[22]!==p||e[23]!==r||e[24]!==g||e[25]!==m?(b=(0,o.jsx)(dr,{tooltip:g,disabled:p,onClick:r,variant:m,"data-testid":"run-button",children:f}),e[22]=p,e[23]=r,e[24]=g,e[25]=m,e[26]=b):b=e[26],b};var ul=U();const cl=t=>{let e=(0,ul.c)(5),{cellId:r,className:n}=t,a=J(Ua).get(r);if(!a)return null;let i=a.type==="delete_cell"?"mo-ai-deleted-cell":"mo-ai-generated-cell",l;e[0]!==i||e[1]!==n?(l=Z(i,n),e[0]=i,e[1]=n,e[2]=l):l=e[2];let s;return e[3]===l?s=e[4]:(s=(0,o.jsx)("div",{className:l}),e[3]=l,e[4]=s),s},dl=t=>{let e=(0,ul.c)(15),{cellId:r}=t,n=ql(),a=J(Ua),i;e[0]!==r||e[1]!==a?(i=a.get(r),e[0]=r,e[1]=a,e[2]=i):i=e[2];let l=i,s=so(r),{deleteStagedCell:c,removeStagedCell:u}=Es(n);if(!l)return null;let p;e[3]!==r||e[4]!==c||e[5]!==u||e[6]!==l?(p=b=>{(b==="accept"?pl:ml)(r,l,u,c)},e[3]=r,e[4]=c,e[5]=u,e[6]=l,e[7]=p):p=e[7];let d=p,m,g;e[8]===d?(m=e[9],g=e[10]):(m=()=>d("accept"),g=()=>d("reject"),e[8]=d,e[9]=m,e[10]=g);let f;return e[11]!==s||e[12]!==m||e[13]!==g?(f=(0,o.jsx)("div",{className:"flex items-center justify-end gap-1.5 w-full pb-1 pt-2",children:(0,o.jsx)(R0,{isLoading:!1,onAccept:m,onDecline:g,size:"xs",runCell:s})}),e[11]=s,e[12]=m,e[13]=g,e[14]=f):f=e[14],f};function pl(t,e,r,n){e.type==="delete_cell"?n(t):r(t)}function ml(t,e,r,n){switch(e.type){case"update_cell":{let a=es(t);if(!a){Me.error("Editor for this cell not found",{cellId:t});break}jf(a,e.previousCode),r(t);break}case"add_cell":n(t);break;case"delete_cell":r(t);break}}var Im=U();const Nm=t=>{let e=(0,Im.c)(13),{cellId:r,hide:n}=t,a=xf(r);if(!a||n)return;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(Ta,{size:13,className:"mt-[3px] text-destructive"}),e[0]=i):i=e[0];let l;e[1]===a.errorType?l=e[2]:(l=(0,o.jsxs)("span",{className:"font-bold text-destructive",children:[a.errorType,":"]}),e[1]=a.errorType,e[2]=l);let s;e[3]===a.errorMessage?s=e[4]:(s=(0,o.jsx)("span",{className:"whitespace-pre-wrap",children:a.errorMessage}),e[3]=a.errorMessage,e[4]=s);let c;e[5]!==l||e[6]!==s?(c=(0,o.jsxs)("div",{className:"flex items-start gap-1.5",children:[i,(0,o.jsxs)("p",{children:[l," ",s]})]}),e[5]=l,e[6]=s,e[7]=c):c=e[7];let u;e[8]===a.codeblock?u=e[9]:(u=a.codeblock&&(0,o.jsx)("pre",{lang:"sql",className:"text-xs bg-muted/80 rounded p-2 pb-0 mx-3 font-medium whitespace-pre-wrap",children:a.codeblock}),e[8]=a.codeblock,e[9]=u);let p;return e[10]!==c||e[11]!==u?(p=(0,o.jsxs)("div",{className:"p-3 text-sm flex flex-col text-muted-foreground gap-1.5 bg-destructive/4",children:[c,u]}),e[10]=c,e[11]=u,e[12]=p):p=e[12],p};var gl=U(),hl=v.createContext(null);const fl=(0,v.memo)(()=>(0,v.use)(hl));fl.displayName="DragHandle";function zm(t){return t?t.x===0&&t.y===0&&t.scaleX===1&&t.scaleY===1:!0}const xl=v.forwardRef((t,e)=>{let r=(0,gl.c)(21),n,a,i;r[0]===t?(n=r[1],a=r[2],i=r[3]):({cellId:a,canMoveX:n,...i}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i);let l;r[4]===a?l=r[5]:(l=a.toString(),r[4]=a,r[5]=l);let s;r[6]===l?s=r[7]:(s={id:l},r[6]=l,r[7]=s);let{attributes:c,listeners:u,setNodeRef:p,transform:d,transition:m,isDragging:g}=tl(s),f;r[8]===d?f=r[9]:(f=zm(d)?null:d,r[8]=d,r[9]=f);let b=f,h=b==null?void 0:m,y;return r[10]!==c||r[11]!==n||r[12]!==a||r[13]!==g||r[14]!==u||r[15]!==i||r[16]!==e||r[17]!==p||r[18]!==b||r[19]!==h?(y=(0,o.jsx)(bl,{ref:e,cellId:a,canMoveX:n,...i,attributes:c,listeners:u,setNodeRef:p,transform:b,transition:h,isDragging:g}),r[10]=c,r[11]=n,r[12]=a,r[13]=g,r[14]=u,r[15]=i,r[16]=e,r[17]=p,r[18]=b,r[19]=h,r[20]=y):y=r[20],y});xl.displayName="SortableCell";var bl=v.forwardRef((t,e)=>{let r=(0,gl.c)(35),n,a,i,l,s,c,u,p;if(r[0]!==e||r[1]!==t){let{cellId:g,canMoveX:f,children:b,attributes:h,listeners:y,setNodeRef:k,transform:x,transition:D,isDragging:j,...w}=t;n=b;let C;r[10]!==f||r[11]!==x?(C=x?gn.Transform.toString({x:f?x.x:0,y:x.y,scaleX:1,scaleY:1}):void 0,r[10]=f,r[11]=x,r[12]=C):C=r[12];let S=j?2:void 0,_;r[13]!==C||r[14]!==S||r[15]!==D?(_={transform:C,transition:D,zIndex:S,position:"relative"},r[13]=C,r[14]=S,r[15]=D,r[16]=_):_=r[16],i=_;let E;r[17]===Symbol.for("react.memo_cache_sentinel")?(E=(0,o.jsx)(Qe,{strokeWidth:1,size:20}),r[17]=E):E=r[17];let T;r[18]!==h||r[19]!==y?(T=(0,o.jsx)("div",{...h,...y,onMouseDown:Va.preventFocus,"data-testid":"drag-button",className:"py-px cursor-grab opacity-50 hover:opacity-100 hover-action hover:bg-muted rounded border border-transparent hover:border-border active:bg-accent",children:E}),r[18]=h,r[19]=y,r[20]=T):T=r[20],a=T;let N=!!x;l=-1,r[21]!==e||r[22]!==k?(s=z=>{Bs(e,k)(z)},r[21]=e,r[22]=k,r[23]=s):s=r[23],c=w,u=j,p=Z(w.className,N&&"is-moving","outline-hidden rounded-lg"),r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=l,r[6]=s,r[7]=c,r[8]=u,r[9]=p}else n=r[2],a=r[3],i=r[4],l=r[5],s=r[6],c=r[7],u=r[8],p=r[9];let d;r[24]!==n||r[25]!==a?(d=(0,o.jsx)(hl.Provider,{value:a,children:n}),r[24]=n,r[25]=a,r[26]=d):d=r[26];let m;return r[27]!==i||r[28]!==l||r[29]!==s||r[30]!==c||r[31]!==u||r[32]!==p||r[33]!==d?(m=(0,o.jsx)("div",{tabIndex:l,ref:s,...c,"data-is-dragging":u,className:p,style:i,children:d}),r[27]=i,r[28]=l,r[29]=s,r[30]=c,r[31]=u,r[32]=p,r[33]=d,r[34]=m):m=r[34],m});bl.displayName="SortableCellInternal";var _t=U();function yl(t,e){let r=(0,_t.c)(9),n;r[0]!==t||r[1]!==e?(n=c=>{t.current!==null&&!t.current.contains(c.relatedTarget)&&e.current!==null&&_0(e.current)},r[0]=t,r[1]=e,r[2]=n):n=r[2];let a=ke(n),i;r[3]!==t||r[4]!==e?(i=c=>{if(!(t.current!==document.activeElement||e.current===null||T0(e.current.state)!=="active")){for(let u of S0)if(c.key===u.key&&u.run){u.run(e.current),c.preventDefault(),c.stopPropagation();break}e.current.focus()}},r[3]=t,r[4]=e,r[5]=i):i=r[5];let l=ke(i),s;return r[6]!==a||r[7]!==l?(s={closeCompletionHandler:a,resumeCompletionHandler:l},r[6]=a,r[7]=l,r[8]=s):s=r[8],s}function vl(t){let e=(0,_t.c)(16),{cellId:r,cellConfig:n,languageAdapter:a,editorView:i}=t,l=Zx(r),s=qx(),c;e[0]===r?c=e[1]:(c=Ef(r),e[0]=r,e[1]=c);let u=J(c),p=!n.hide_code||l||u,d=a==="markdown",m=d&&!p,g;e[2]!==r||e[3]!==i||e[4]!==p||e[5]!==s?(g=k=>{var D;if(p)return;let x=(k==null?void 0:k.focus)??!0;s.add(r),x&&((D=i.current)==null||D.focus())},e[2]=r,e[3]=i,e[4]=p,e[5]=s,e[6]=g):g=e[6];let f=ke(g),b;e[7]!==m||e[8]!==f?(b=()=>{m&&f({focus:!0})},e[7]=m,e[8]=f,e[9]=b):b=e[9];let h=ke(b),y;return e[10]!==p||e[11]!==d||e[12]!==m||e[13]!==f||e[14]!==h?(y={isCellCodeShown:p,isMarkdown:d,isMarkdownCodeHidden:m,showHiddenCode:f,showHiddenCodeIfMarkdown:h},e[10]=p,e[11]=d,e[12]=m,e[13]=f,e[14]=h,e[15]=y):y=e[15],y}var $m=t=>{let{cellId:e,mode:r}=t,n=cf(e);lm().countRender(),Me.debug("Rendering Cell",e);let a=(0,v.useRef)(null);return(0,v.useImperativeHandle)(n,()=>({get editorView(){return sm(a)},get editorViewOrNull(){return a.current}}),[a]),e==="setup"?(0,o.jsx)(Bm,{...t,cellId:e,editorView:a,setEditorView:i=>{a.current=i}}):r==="edit"?(0,o.jsx)(Am,{...t,cellId:e,editorView:a,setEditorView:i=>{a.current=i}}):(0,o.jsx)(Dl,{cellId:e})},Dl=(0,v.forwardRef)((t,e)=>{var b;let r=(0,_t.c)(18),{cellId:n}=t,a=ln(n),i=on(n),l;r[0]===Symbol.for("react.memo_cache_sentinel")?(l=yn("marimo-cell","hover-actions-parent z-10",{published:!0}),r[0]=l):l=r[0];let s=l,c=Ql((b=i.output)==null?void 0:b.mimetype);if(i.errored||i.interrupted||i.stopped||c)return null;let u;r[1]!==a.name||r[2]!==n?(u=Wa(n,a.name),r[1]=a.name,r[2]=n,r[3]=u):u=r[3];let p=i.output,d;r[4]!==a.edited||r[5]!==i?(d=Zl(i,a.edited),r[4]=a.edited,r[5]=i,r[6]=d):d=r[6];let m;r[7]===i.status?m=r[8]:(m=Sa(i.status),r[7]=i.status,r[8]=m);let g;r[9]!==n||r[10]!==i.output||r[11]!==d||r[12]!==m?(g=(0,o.jsx)(Ha,{allowExpand:!1,forceExpand:!0,className:Ma.outputArea,cellId:n,output:p,stale:d,loading:m}),r[9]=n,r[10]=i.output,r[11]=d,r[12]=m,r[13]=g):g=r[13];let f;return r[14]!==e||r[15]!==u||r[16]!==g?(f=(0,o.jsx)("div",{tabIndex:-1,ref:e,className:s,...u,children:g}),r[14]=e,r[15]=u,r[16]=g,r[17]=f):f=r[17],f});Dl.displayName="ReadonlyCellComponent";var Am=({theme:t,showPlaceholder:e,cellId:r,canDelete:n,userConfig:a,isCollapsed:i,collapseCount:l,canMoveX:s,editorView:c,setEditorView:u})=>{var _e,Ie;let p=(0,v.useRef)(null),d=ln(r),m=on(r),g=(0,v.useRef)(null),f=(0,v.useRef)(null),b=(0,v.useRef)(null),h=qe(),y=J(Qt),k=xt(Hs),x=nu(),D=so(r),{sendStdin:j}=at(),[w,C]=(0,v.useState)(),S=d.config.disabled||m.status==="disabled-transitively",_=Yl({executionTime:m.runElapsedTimeMs??d.lastExecutionTime,status:m.status,errored:m.errored,interrupted:m.interrupted,stopped:m.stopped}),E=d.edited||m.interrupted||m.staleInputs&&!S,T=Sa(m.status),N=(m.status==="queued"||d.edited||m.staleInputs)&&!m.interrupted,z=(0,v.useCallback)(()=>c.current,[c]),{closeCompletionHandler:$,resumeCompletionHandler:P}=yl(p,c),{isCellCodeShown:I,isMarkdown:A,isMarkdownCodeHidden:B,showHiddenCode:R,showHiddenCodeIfMarkdown:K}=vl({cellId:r,cellConfig:d.config,languageAdapter:w,editorView:c,editorViewParentRef:f}),M=As(r,{canMoveX:s,editorView:c,cellActionDropdownRef:g}),H=zf(m.outline),O=!Ya(m.output),F=Zl(m,d.edited),L=m.consoleOutputs.length>0,V=a.display.cell_output,q=O&&V==="above",[W,X]=(0,v.useState)(!1),[te,re]=(0,v.useState)(!1),ee=A&&((_e=c.current)==null?void 0:_e.state.doc.toString().trim())==="";im({ref:b,skip:!A,onResize:le=>{let ce=le.height&&le.height<68,we=B&&(ce||V==="below");X(we),H&&we?re(!0):te&&re(!1)}});let oe=B&&ee&&!E&&(0,o.jsx)("div",{role:"button","aria-label":"Double-click to edit markdown",className:"relative cursor-pointer px-3 py-2",onDoubleClick:K,onKeyDown:le=>{le.key==="Enter"&&K()},tabIndex:0,children:(0,o.jsx)("span",{className:"text-(--slate-8) text-sm",children:"Double-click (or enter) to edit"})}),Y=O&&!ee&&(0,o.jsxs)("div",{className:"relative",onDoubleClick:K,children:[(0,o.jsx)("div",{className:"absolute top-5 -left-7 z-20 print:hidden",children:(0,o.jsx)(ym,{isCollapsed:i,onClick:()=>{i?h.expandCell({cellId:r}):h.collapseCell({cellId:r})},canCollapse:H})}),(0,o.jsx)(Ha,{allowExpand:!0,forceExpand:B,className:Ma.outputArea,cellId:r,output:m.output,stale:F,loading:Sa(m.status)})]}),se=yn("marimo-cell","hover-actions-parent z-10",{interactive:!0,"needs-run":E,"has-error":m.errored,stopped:m.stopped,disabled:d.config.disabled,stale:m.status==="disabled-transitively",borderless:B&&O&&!M["data-selected"]}),de=ke(le=>{k({cellId:r,initialPrompt:le.prompt,triggerImmediately:le.triggerImmediately})}),be=()=>{if(d.config.disabled)return"This cell is disabled";if(m.status==="disabled-transitively")return"This cell has a disabled ancestor"},ge=((Ie=m.serialization)==null?void 0:Ie.toLowerCase())==="valid";return(0,o.jsx)(oo,{children:(0,o.jsx)(il,{cellId:r,getEditorView:z,children:(0,o.jsxs)(xl,{tabIndex:-1,ref:p,"data-status":m.status,onBlur:$,onKeyDown:P,cellId:r,canMoveX:s,title:be(),children:[(0,o.jsxs)("div",{tabIndex:-1,...M,className:Z(se,M.className,"focus:ring-1 focus:ring-(--slate-8) focus:ring-offset-2"),ref:b,...Wa(r,d.name),children:[(0,o.jsx)(kl,{cellId:r,actions:h}),V==="above"&&(Y||oe),(0,o.jsxs)("div",{className:Z("tray"),"data-has-output-above":q,"data-hidden":B,children:[(0,o.jsx)(cl,{cellId:r}),(0,o.jsx)("div",{className:"absolute right-2 -top-4 z-10",children:(0,o.jsx)(ha,{edited:d.edited,status:m.status,cellConfig:d.config,needsRun:E,hasOutput:O,hasConsoleOutput:L,cellActionDropdownRef:g,cellId:r,name:d.name,getEditorView:z,onRun:D})}),(0,o.jsx)(Ps,{theme:t,showPlaceholder:e,id:r,code:d.code,config:d.config,status:m.status,serializedEditorState:d.serializedEditorState,runCell:D,setEditorView:u,userConfig:a,editorViewRef:c,editorViewParentRef:f,hidden:!I,hasOutput:O,showHiddenCode:R,languageAdapter:w,setLanguageAdapter:C,outputArea:V}),(0,o.jsx)(ga,{className:Z(B&&V==="below"&&"top-14"),edited:d.edited,status:m.status,isCellStatusInline:W,uninstantiated:_,disabled:d.config.disabled,runElapsedTimeMs:m.runElapsedTimeMs,runStartTimestamp:m.runStartTimestamp,lastRunStartTimestamp:m.lastRunStartTimestamp,staleInputs:m.staleInputs,interrupted:m.interrupted}),(0,o.jsx)("div",{className:"shoulder-bottom hover-action",children:n&&I&&(0,o.jsx)(sl,{status:m.status,connectionState:y.state,onClick:()=>{!T&&!Xe(y.state)&&x({cellId:r})}})})]}),(0,o.jsx)(Nm,{cellId:r,hide:m.errored&&!F}),V==="below"&&(Y||oe),m.serialization&&(0,o.jsxs)("div",{className:"py-1 px-2 flex items-center justify-end gap-2 last:rounded-b",children:[ge&&(0,o.jsx)("a",{href:"https://links.marimo.app/reusable-definitions",target:"_blank",className:"hover:underline text-muted-foreground text-xs font-bold",rel:"noopener",children:"reusable"}),(0,o.jsx)(Q,{content:(0,o.jsx)("span",{className:"max-w-16 text-xs",children:ge&&"This function or class can be imported into other Python notebooks or modules."||(0,o.jsxs)(o.Fragment,{children:["This definition can't be reused in other Python modules:",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsx)("pre",{children:m.serialization}),(0,o.jsx)("br",{}),"Click this icon to learn more."]})}),children:ge?(0,o.jsx)("a",{href:"https://links.marimo.app/reusable-definitions",target:"_blank",rel:"noopener",children:(0,o.jsx)(j1,{size:16,strokeWidth:1.5,className:"rounded-lg text-muted-foreground"})}):(0,o.jsx)("a",{href:"https://links.marimo.app/reusable-definitions",target:"_blank",rel:"noopener",children:(0,o.jsx)(Ss,{size:16,strokeWidth:1.5,className:"rounded-lg text-muted-foreground"})})})]}),(0,o.jsx)(ws,{consoleOutputs:m.consoleOutputs,stale:N,cellName:m.serialization?"_":d.name,onRefactorWithAI:de,onClear:()=>{h.clearCellConsoleOutput({cellId:r})},onSubmitDebugger:(le,ce)=>{h.setStdinResponse({cellId:r,response:le,outputIndex:ce}),j({text:le})},cellId:r,debuggerActive:m.debuggerActive}),(0,o.jsx)(jm,{cellId:r})]}),(0,o.jsx)(dl,{cellId:r}),i&&(0,o.jsx)(ll,{onClick:()=>h.expandCell({cellId:r}),count:l,cellId:r})]})})})},ga=(0,v.memo)(t=>{let e=(0,_t.c)(19),{className:r,disabled:n,edited:a,interrupted:i,isCellStatusInline:l,lastRunStartTimestamp:s,runElapsedTimeMs:c,runStartTimestamp:u,staleInputs:p,status:d,uninstantiated:m}=t,g=n===void 0?!1:n,f;e[0]!==g||e[1]!==a||e[2]!==i||e[3]!==s||e[4]!==c||e[5]!==u||e[6]!==p||e[7]!==d||e[8]!==m?(f=(0,o.jsx)(L0,{status:d,staleInputs:p,interrupted:i,editing:!0,edited:a,disabled:g,elapsedTime:c,runStartTimestamp:u,uninstantiated:m,lastRunStartTimestamp:s}),e[0]=g,e[1]=a,e[2]=i,e[3]=s,e[4]=c,e[5]=u,e[6]=p,e[7]=d,e[8]=m,e[9]=f):f=e[9];let b=f,h;e[10]===r?h=e[11]:(h=Z("shoulder-right z-20",r),e[10]=r,e[11]=h);let y=!l&&b,k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=(0,o.jsx)(fl,{}),e[12]=k):k=e[12];let x=l&&b,D;e[13]===x?D=e[14]:(D=(0,o.jsxs)("div",{className:"flex gap-2 items-end",children:[k,x]}),e[13]=x,e[14]=D);let j;return e[15]!==h||e[16]!==y||e[17]!==D?(j=(0,o.jsxs)("div",{className:h,children:[y,D]}),e[15]=h,e[16]=y,e[17]=D,e[18]=j):j=e[18],j});ga.displayName="CellRightSideActions";var kl=(0,v.memo)(t=>{let e=(0,_t.c)(21),r=J(Qt),{className:n,actions:a,cellId:i}=t,l;e[0]!==a||e[1]!==i?(l=y=>{let k=y===void 0?{}:y;return a.createNewCell({cellId:i,before:!1,...k})},e[0]=a,e[1]=i,e[2]=l):l=e[2];let s=ke(l),c;e[3]!==a||e[4]!==i?(c=y=>{let k=y===void 0?{}:y;return a.createNewCell({cellId:i,before:!0,...k})},e[3]=a,e[4]=i,e[5]=c):c=e[5];let u=ke(c),p;e[6]===n?p=e[7]:(p=Z("absolute flex flex-col justify-center h-full left-[-26px] z-20 border-b-0!",n),e[6]=n,e[7]=p);let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=Ze("cell.createAbove"),e[8]=d):d=e[8];let m;e[9]!==r.state||e[10]!==u?(m=(0,o.jsx)("div",{className:"-mt-1 min-h-7",children:(0,o.jsx)(ol,{tooltipContent:d,connectionState:r.state,onClick:u,oneClickShortcut:"mod"})}),e[9]=r.state,e[10]=u,e[11]=m):m=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=(0,o.jsx)("div",{className:"flex-1 pointer-events-none w-3"}),e[12]=g):g=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=Ze("cell.createBelow"),e[13]=f):f=e[13];let b;e[14]!==r.state||e[15]!==s?(b=(0,o.jsx)("div",{className:"-mb-2 min-h-7",children:(0,o.jsx)(ol,{tooltipContent:f,connectionState:r.state,onClick:s,oneClickShortcut:"mod"})}),e[14]=r.state,e[15]=s,e[16]=b):b=e[16];let h;return e[17]!==p||e[18]!==m||e[19]!==b?(h=(0,o.jsxs)("div",{className:p,children:[m,g,b]}),e[17]=p,e[18]=m,e[19]=b,e[20]=h):h=e[20],h});kl.displayName="CellLeftSideActions";var ha=(0,v.memo)(t=>{let e=(0,_t.c)(27),{edited:r,status:n,cellConfig:a,needsRun:i,hasOutput:l,hasConsoleOutput:s,onRun:c,cellActionDropdownRef:u,cellId:p,getEditorView:d,name:m,includeCellActions:g}=t,f=g===void 0?!0:g,b=J(Qt),h=!i&&"hover-action",y;e[0]===h?y=e[1]:(y=Z(h),e[0]=h,e[1]=y);let k;e[2]!==a||e[3]!==b.state||e[4]!==r||e[5]!==i||e[6]!==c||e[7]!==n?(k=(0,o.jsx)(_m,{edited:r,onClick:c,connectionState:b.state,status:n,config:a,needsRun:i}),e[2]=a,e[3]=b.state,e[4]=r,e[5]=i,e[6]=c,e[7]=n,e[8]=k):k=e[8];let x;e[9]!==b.state||e[10]!==n?(x=(0,o.jsx)(am,{status:n,connectionState:b.state}),e[9]=b.state,e[10]=n,e[11]=x):x=e[11];let D;e[12]!==u||e[13]!==a||e[14]!==p||e[15]!==d||e[16]!==s||e[17]!==l||e[18]!==f||e[19]!==m||e[20]!==n?(D=f&&(0,o.jsx)(P0,{ref:u,cellId:p,status:n,getEditorView:d,name:m,config:a,hasOutput:l,hasConsoleOutput:s,children:(0,o.jsx)(dr,{variant:"green",tooltip:null,"data-testid":"cell-actions-button",children:(0,o.jsx)(Qa,{strokeWidth:1.5})})}),e[12]=u,e[13]=a,e[14]=p,e[15]=d,e[16]=s,e[17]=l,e[18]=f,e[19]=m,e[20]=n,e[21]=D):D=e[21];let j;return e[22]!==y||e[23]!==k||e[24]!==x||e[25]!==D?(j=(0,o.jsxs)(rm,{className:y,children:[k,x,D]}),e[22]=y,e[23]=k,e[24]=x,e[25]=D,e[26]=j):j=e[26],j});ha.displayName="CellToolbar";var Bm=({theme:t,showPlaceholder:e,cellId:r,canDelete:n,userConfig:a,canMoveX:i,editorView:l,setEditorView:s})=>{var K;let c=(0,v.useRef)(null),u=ln(r),p=on(r),d=(0,v.useRef)(null),m=(0,v.useRef)(null),g=J(Qt),f=qe(),b=at(),h=nu(),y=xt(Hs),k=so(r),x=u.config.disabled||p.status==="disabled-transitively",D=Yl({executionTime:p.runElapsedTimeMs??u.lastExecutionTime,status:p.status,errored:p.errored,interrupted:p.interrupted,stopped:p.stopped}),j=u.edited||p.interrupted||p.staleInputs&&!x,w=p.status==="running"||p.status==="queued",C=(p.status==="queued"||u.edited||p.staleInputs)&&!p.interrupted,S=(0,v.useCallback)(()=>l.current,[l]),{isCellCodeShown:_,showHiddenCode:E}=vl({cellId:r,cellConfig:u.config,languageAdapter:"python",editorView:l,editorViewParentRef:m}),{closeCompletionHandler:T,resumeCompletionHandler:N}=yl(c,l),z=As(r,{canMoveX:i,editorView:l,cellActionDropdownRef:d}),$=!Ya(p.output),P=p.consoleOutputs.length>0,I=Ql((K=p.output)==null?void 0:K.mimetype),A=yn("marimo-cell","hover-actions-parent z-10",{interactive:!0,"needs-run":j,"has-error":p.errored,stopped:p.stopped}),B=ke(M=>{y({cellId:r,initialPrompt:M.prompt,triggerImmediately:M.triggerImmediately})}),R=()=>{if(u.config.disabled)return"This cell is disabled";if(p.status==="disabled-transitively")return"This cell has a disabled ancestor"};return(0,o.jsx)(oo,{children:(0,o.jsx)(il,{cellId:r,getEditorView:S,children:(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{"data-status":p.status,ref:c,...Ye(z,{className:Z(A,"focus:ring-1 focus:ring-(--slate-8) focus:ring-offset-2"),onBlur:T,onKeyDown:N}),...Wa(r,u.name),title:R(),tabIndex:-1,"data-setup-cell":!0,children:[(0,o.jsxs)("div",{className:Z("tray"),"data-has-output-above":!1,"data-hidden":!_,children:[(0,o.jsx)(cl,{cellId:r,className:"mo-ai-setup-cell"}),(0,o.jsx)("div",{className:"absolute right-2 -top-4 z-10",children:(0,o.jsx)(ha,{edited:u.edited,status:p.status,cellConfig:u.config,needsRun:j,hasOutput:$,hasConsoleOutput:P,cellActionDropdownRef:d,cellId:r,name:u.name,getEditorView:S,onRun:k,includeCellActions:!0})}),(0,o.jsx)(Ps,{theme:t,showPlaceholder:e,id:r,code:u.code,config:u.config,status:p.status,serializedEditorState:u.serializedEditorState,runCell:k,setEditorView:s,userConfig:a,editorViewRef:l,editorViewParentRef:m,hidden:!_,hasOutput:$,showHiddenCode:E,languageAdapter:"python",setLanguageAdapter:br.NOOP,showLanguageToggles:!1}),(0,o.jsx)(ga,{edited:u.edited,status:p.status,isCellStatusInline:!1,uninstantiated:D,disabled:u.config.disabled,runElapsedTimeMs:p.runElapsedTimeMs,runStartTimestamp:p.runStartTimestamp,lastRunStartTimestamp:p.lastRunStartTimestamp,staleInputs:p.staleInputs,interrupted:p.interrupted}),(0,o.jsx)("div",{className:"shoulder-bottom hover-action",children:n&&(0,o.jsx)(sl,{connectionState:g.state,status:p.status,onClick:()=>{!w&&!Xe(g.state)&&h({cellId:r})}})})]}),(0,o.jsxs)("div",{className:"py-1 px-2 flex justify-end gap-2 last:rounded-b",children:[(0,o.jsx)("span",{className:"text-muted-foreground text-xs font-bold",children:"setup cell"}),(0,o.jsx)(Q,{content:(0,o.jsxs)("span",{className:"max-w-16",children:["This ",(0,o.jsx)("b",{children:"setup cell"})," is guaranteed to run before all other cells. Include ",(0,o.jsx)("br",{}),"initialization or imports and constants required by top-level functions."]}),children:(0,o.jsx)(Ss,{size:16,strokeWidth:1.5,className:"rounded-lg text-muted-foreground"})})]}),I&&(0,o.jsx)(Ha,{allowExpand:!0,forceExpand:!0,className:Ma.outputArea,cellId:r,output:p.output,stale:!1,loading:w}),(0,o.jsx)(ws,{consoleOutputs:p.consoleOutputs,stale:C,cellName:"_",onRefactorWithAI:B,onClear:()=>{f.clearCellConsoleOutput({cellId:r})},onSubmitDebugger:(M,H)=>{f.setStdinResponse({cellId:r,response:M,outputIndex:H}),b.sendStdin({text:M})},cellId:r,debuggerActive:p.debuggerActive})]}),(0,o.jsx)(dl,{cellId:r})]})})})};const jl=(0,v.memo)($m);var Pm=class{constructor(t){Wl(this,"cache",new Map);this.ttl=t.ttl}cleanupExpiredEntries(){let t=Date.now();for(let[e,r]of this.cache.entries())t-r.timestamp>this.ttl&&this.cache.delete(e)}get(t){this.cleanupExpiredEntries();let e=this.cache.get(t);if(e){if(Date.now()-e.timestamp>this.ttl){this.cache.delete(t);return}return e.data}}set(t,e){this.cache.set(t,{data:e,timestamp:Date.now()})}clear(){this.cache.clear()}};function Km(t,e){let r=/^(\d+)\.(\d+)\.(\d+)(?:-([\w.-]+))?(?:\+([\w.-]+))?$/,n=a=>{let i=a.match(r);if(!i)return null;let[,l,s,c,u]=i;return{major:Number.parseInt(l,10),minor:Number.parseInt(s,10),patch:Number.parseInt(c,10),preRelease:u||""}};try{let a=n(t),i=n(e);return!a||!i?t.localeCompare(e,void 0,{numeric:!0,sensitivity:"base"}):a.major===i.major?a.minor===i.minor?a.patch===i.patch?a.preRelease===""&&i.preRelease!==""?1:a.preRelease!==""&&i.preRelease===""?-1:a.preRelease.localeCompare(i.preRelease):a.patch-i.patch:a.minor-i.minor:a.major-i.major}catch{return t.localeCompare(e,void 0,{numeric:!0,sensitivity:"base"})}}const Om=(t,e)=>Km(e,t);function Rm(t){return t.replaceAll(/\[.*]/g,"").trim()}var Mm=U(),wl=new Pm({ttl:300*1e3}),Fm=is({info:is({provides_extra:ls().array().nullable()}),releases:Pf(ls(),Kf())});function El(t){let e=(0,Mm.c)(5),r;e[0]===t?r=e[1]:(r=Rm(t),e[0]=t,e[1]=r);let n=r,a,i;return e[2]===n?(a=e[3],i=e[4]):(a=async()=>{let l=wl.get(n);if(l)return l;let s=await fetch(`https://pypi.org/pypi/${n}/json`,{method:"GET"});if(!s.ok)throw Error(`HTTP ${s.status}: ${s.statusText}`);let c=Fm.transform(Vm).parse(await s.json());return wl.set(n,c),c},i=[n],e[2]=n,e[3]=a,e[4]=i),uo(a,i)}function Vm(t){return{versions:Object.keys(t.releases).toSorted(Om),extras:t.info.provides_extra??[]}}var pt=U();function Cl(t){let e=t.match(/^([^[]+)(?:\[([^\]]+)])?$/);if(!e)return{name:t,extras:[]};let[,r,n]=e;return{name:r,extras:n?n.split(",").map(a=>a.trim()):[]}}function Lm(t,e){return e.length===0?t:`${t}[${e.join(",")}]`}const Hm=()=>{let t=(0,pt.c)(69),{packageAlert:e,packageLogs:r}=Ks(),{clearPackageAlert:n}=Rs(),[a]=Oa(),i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={},t[0]=i):i=t[0];let[l,s]=(0,v.useState)(i),c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={},t[1]=c):c=t[1];let[u,p]=(0,v.useState)(c);if(e===null)return null;let d=a.package_management.manager!=="pixi";if(o1(e)){let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=(0,o.jsxs)("span",{className:"font-bold text-lg flex items-center mb-2",children:[(0,o.jsx)(mo,{className:"w-5 h-5 inline-block mr-2"}),"Missing packages"]}),t[2]=m):m=t[2];let g;t[3]!==n||t[4]!==e.id?(g=()=>n(e.id),t[3]=n,t[4]=e.id,t[5]=g):g=t[5];let f;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(Ge,{className:"w-5 h-5"}),t[6]=f):f=t[6];let b;t[7]===g?b=t[8]:(b=(0,o.jsxs)("div",{className:"flex justify-between",children:[m,(0,o.jsx)(ae,{variant:"text","data-testid":"remove-banner-button",size:"icon",onClick:g,children:f})]}),t[7]=g,t[8]=b);let h;t[9]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)("p",{children:"The following packages were not found:"}),t[9]=h):h=t[9];let y;if(t[10]!==l||t[11]!==d||t[12]!==e.packages||t[13]!==u){let w;t[15]!==l||t[16]!==d||t[17]!==u?(w=(C,S)=>{let _=Cl(C),E=u[C]||_.extras;return(0,o.jsxs)("tr",{className:"font-mono text-sm",children:[(0,o.jsx)("td",{className:"pr-2 py-1 align-middle",children:(0,o.jsx)(_a,{size:"1rem"})}),(0,o.jsx)("td",{className:"pr-2 py-1 align-middle",children:(0,o.jsx)(Gm,{packageName:_.name,selectedExtras:E,onExtrasChange:T=>p(N=>({...N,[C]:T}))})}),d&&(0,o.jsx)("td",{className:"pr-2 py-1 align-middle",children:(0,o.jsx)(Ym,{value:l[C]??"latest",onChange:T=>s(N=>({...N,[C]:T})),packageName:_.name})})]},S)},t[15]=l,t[16]=d,t[17]=u,t[18]=w):w=t[18],y=e.packages.map(w),t[10]=l,t[11]=d,t[12]=e.packages,t[13]=u,t[14]=y}else y=t[14];let k;t[19]===y?k=t[20]:(k=(0,o.jsxs)("div",{children:[h,(0,o.jsx)("table",{className:"list-disc ml-2 mt-1",children:(0,o.jsx)("tbody",{children:y})})]}),t[19]=y,t[20]=k);let x;t[21]!==n||t[22]!==l||t[23]!==e.id||t[24]!==e.isolated||t[25]!==e.packages||t[26]!==u||t[27]!==a.package_management.manager?(x=(0,o.jsx)("div",{className:"ml-auto flex flex-row items-baseline",children:e.isolated?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(qm,{manager:a.package_management.manager,packages:e.packages.map(w=>{let C=Cl(w),S=u[w]||C.extras;return Lm(C.name,S)}),versions:l,clearPackageAlert:()=>n(e.id)}),!yr()&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"px-2 text-sm",children:"with"})," ",(0,o.jsx)(Xm,{})]})]}):(0,o.jsxs)("p",{children:["If you set up a"," ",(0,o.jsx)(Qs,{href:"https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments",children:"virtual environment"}),", marimo can install these packages for you."]})}),t[21]=n,t[22]=l,t[23]=e.id,t[24]=e.isolated,t[25]=e.packages,t[26]=u,t[27]=a.package_management.manager,t[28]=x):x=t[28];let D;t[29]!==k||t[30]!==x?(D=(0,o.jsxs)("div",{className:"flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",children:[k,x]}),t[29]=k,t[30]=x,t[31]=D):D=t[31];let j;return t[32]!==D||t[33]!==b?(j=(0,o.jsx)("div",{className:"flex flex-col gap-4 mb-5 fixed top-5 left-12 min-w-[400px] z-200 opacity-95 max-w-[600px]",children:(0,o.jsxs)(wt,{kind:"danger",className:"flex flex-col rounded py-3 px-5 animate-in slide-in-from-left overflow-auto max-h-[80vh] scrollbar-thin",children:[b,D]})}),t[32]=D,t[33]=b,t[34]=j):j=t[34],j}if(e1(e)){let m;t[35]===e.packages?m=t[36]:(m=Wm(e.packages),t[35]=e.packages,t[36]=m);let{status:g,title:f,titleIcon:b,description:h}=m;g==="installed"&&setTimeout(()=>n(e.id),1e4);let y=g==="failed"?"danger":"info",k;t[37]!==f||t[38]!==b?(k=(0,o.jsxs)("span",{className:"font-bold text-lg flex items-center mb-2",children:[b,f]}),t[37]=f,t[38]=b,t[39]=k):k=t[39];let x;t[40]!==n||t[41]!==e.id?(x=()=>n(e.id),t[40]=n,t[41]=e.id,t[42]=x):x=t[42];let D;t[43]===Symbol.for("react.memo_cache_sentinel")?(D=(0,o.jsx)(Ge,{className:"w-5 h-5"}),t[43]=D):D=t[43];let j;t[44]===x?j=t[45]:(j=(0,o.jsx)(ae,{variant:"text","data-testid":"remove-banner-button",size:"icon",onClick:x,children:D}),t[44]=x,t[45]=j);let w;t[46]!==k||t[47]!==j?(w=(0,o.jsxs)("div",{className:"flex justify-between",children:[k,j]}),t[46]=k,t[47]=j,t[48]=w):w=t[48];let C=g==="installed"&&"text-accent-foreground",S;t[49]===C?S=t[50]:(S=Z("flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",C),t[49]=C,t[50]=S);let _;t[51]===h?_=t[52]:(_=(0,o.jsx)("p",{children:h}),t[51]=h,t[52]=_);let E;t[53]===e.packages?E=t[54]:(E=Object.entries(e.packages),t[53]=e.packages,t[54]=E);let T;t[55]!==g||t[56]!==E?(T=(0,o.jsx)("ul",{className:"list-disc ml-2 mt-1",children:E.map((P,I)=>{let[A,B]=P;return(0,o.jsxs)("li",{className:Z("flex items-center gap-1 font-mono text-sm",B==="installing"&&"font-semibold",B==="failed"&&"text-destructive",B==="installed"&&"text-accent-foreground",B==="installed"&&g==="failed"&&"text-muted-foreground"),children:[(0,o.jsx)(Um,{status:B}),A]},I)})}),t[55]=g,t[56]=E,t[57]=T):T=t[57];let N;t[58]===r?N=t[59]:(N=Object.keys(r).length>0&&(0,o.jsx)(Zm,{packageLogs:r}),t[58]=r,t[59]=N);let z;t[60]!==S||t[61]!==_||t[62]!==T||t[63]!==N?(z=(0,o.jsxs)("div",{className:S,children:[_,T,N]}),t[60]=S,t[61]=_,t[62]=T,t[63]=N,t[64]=z):z=t[64];let $;return t[65]!==z||t[66]!==y||t[67]!==w?($=(0,o.jsx)("div",{className:"flex flex-col gap-4 mb-5 fixed top-5 left-12 min-w-[400px] z-200 opacity-95 max-w-[600px] ",children:(0,o.jsxs)(wt,{kind:y,className:"flex flex-col rounded pt-3 pb-4 px-5 overflow-auto max-h-[80vh] scrollbar-thin",children:[w,z]})}),t[65]=z,t[66]=y,t[67]=w,t[68]=$):$=t[68],$}return ss(e),null};function Wm(t){let e=new Set(Object.values(t)),r=e.has("queued")||e.has("installing")?"installing":e.has("failed")?"failed":"installed";return r==="installing"?{status:"installing",title:"Installing packages",titleIcon:(0,o.jsx)(Je,{className:"w-5 h-5 inline-block mr-2"}),description:"Installing packages:"}:r==="installed"?{status:"installed",title:"All packages installed!",titleIcon:(0,o.jsx)(gu,{className:"w-5 h-5 inline-block mr-2"}),description:"Installed packages:"}:{status:"failed",title:"Some packages failed to install",titleIcon:(0,o.jsx)(mo,{className:"w-5 h-5 inline-block mr-2"}),description:"See error logs."}}var Um=t=>{let e=(0,pt.c)(4),{status:r}=t;switch(r){case"queued":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)(_a,{size:"1rem"}),e[0]=n):n=e[0],n}case"installing":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)(Je,{size:"1rem"}),e[1]=n):n=e[1],n}case"installed":{let n;return e[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)(X0,{size:"1rem"}),e[2]=n):n=e[2],n}case"failed":{let n;return e[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)(Ge,{size:"1rem"}),e[3]=n):n=e[3],n}default:return ss(r),null}},qm=t=>{let e=(0,pt.c)(10),{manager:r,packages:n,versions:a,clearPackageAlert:i}=t,{sendInstallMissingPackages:l}=at(),s;e[0]!==i||e[1]!==r||e[2]!==n||e[3]!==l||e[4]!==a?(s=async()=>{i();let d={...a};for(let m of n)d[m]=d[m]??"";await l({manager:r,versions:d}).catch(Jm)},e[0]=i,e[1]=r,e[2]=n,e[3]=l,e[4]=a,e[5]=s):s=e[5];let c,u;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)(Je,{className:"w-4 h-4 mr-2"}),u=(0,o.jsx)("span",{className:"font-semibold",children:"Install"}),e[6]=c,e[7]=u):(c=e[6],u=e[7]);let p;return e[8]===s?p=e[9]:(p=(0,o.jsxs)(ae,{variant:"outline","data-testid":"install-packages-button",size:"sm",onClick:s,children:[c,u]}),e[8]=s,e[9]=p),p},Xm=()=>{let t=(0,pt.c)(18),[e,r]=Oa(),{saveUserConfig:n}=at(),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=I1(Qf),t[0]=a):a=t[0];let i;t[1]===e?i=t[2]:(i={resolver:a,defaultValues:e},t[1]=e,t[2]=i);let l=S1(i),s;t[3]!==l.formState||t[4]!==n||t[5]!==r?(s=async g=>{let f=Bx(g,l.formState.dirtyFields);Object.keys(f).length!==0&&await n({config:f}).then(()=>{r(b=>({...b,...g}))})},t[3]=l.formState,t[4]=n,t[5]=r,t[6]=s):s=t[6];let c=s,u;t[7]!==l||t[8]!==c?(u=l.handleSubmit(c),t[7]=l,t[8]=c,t[9]=u):u=t[9];let p;t[10]===l.control?p=t[11]:(p=(0,o.jsx)("div",{className:"flex flex-col gap-3",children:(0,o.jsx)(E1,{control:l.control,name:"package_management.manager",render:eg})}),t[10]=l.control,t[11]=p);let d;t[12]!==u||t[13]!==p?(d=(0,o.jsx)("form",{onChange:u,className:"flex flex-col gap-5",children:p}),t[12]=u,t[13]=p,t[14]=d):d=t[14];let m;return t[15]!==l||t[16]!==d?(m=(0,o.jsx)(T1,{...l,children:d}),t[15]=l,t[16]=d,t[17]=m):m=t[17],m},Gm=t=>{let e=(0,pt.c)(12),{packageName:r,selectedExtras:n,onExtrasChange:a}=t,[i,l]=(0,v.useState)(!1),{isPending:s,error:c,data:u}=El(r),p;e[0]!==a||e[1]!==n?(p=(f,b)=>{a(b?[...n,f]:n.filter(h=>h!==f))},e[0]=a,e[1]=n,e[2]=p):p=e[2];let d=p,m=!s&&!c,g;if(e[3]!==m||e[4]!==d||e[5]!==i||e[6]!==r||e[7]!==(u==null?void 0:u.extras)||e[8]!==n){let f=((u==null?void 0:u.extras)??[]).filter(tg),b;e[10]===r?b=e[11]:(b=(0,o.jsx)("span",{className:"shrink-0 flex-1",children:r}),e[10]=r,e[11]=b),g=(0,o.jsxs)("div",{className:"flex items-center max-w-72",children:[b,n.length>0?(0,o.jsxs)("span",{className:"flex items-center min-w-0 flex-1",children:[(0,o.jsx)("span",{className:"shrink-0",children:"["}),(0,o.jsxs)(jt,{open:i&&m,onOpenChange:h=>{m&&l(h)},children:[(0,o.jsx)(Dt,{asChild:!0,children:(0,o.jsx)("button",{className:"hover:bg-muted/50 rounded text-sm px-1 transition-colors border border-muted-foreground/30 hover:border-muted-foreground/60 min-w-0 flex-1 truncate text-left",title:`Selected extras: ${n.join(", ")}`,type:"button",children:n.join(",")})}),(0,o.jsxs)(kt,{align:"start",className:"w-64 p-0 max-h-96 flex flex-col",children:[n.length>0&&(0,o.jsx)("div",{className:"p-2 bg-popover border-b border-border",children:(0,o.jsx)("div",{className:"flex flex-wrap gap-1 p-1 min-h-[24px]",children:n.map(h=>(0,o.jsxs)("span",{className:"inline-flex items-center gap-1 px-1 py-0.5 text-sm font-mono border border-muted-foreground/30 hover:border-muted-foreground/60 rounded-sm cursor-pointer group transition-colors",onClick:()=>d(h,!1),children:[h,(0,o.jsx)(Ge,{className:"w-3 h-3 opacity-60 group-hover:opacity-100"})]},h))})}),(0,o.jsx)("div",{className:"overflow-y-auto flex-1",children:f.map(h=>(0,o.jsx)(Ts,{checked:n.includes(h),onCheckedChange:y=>{d(h,y)},className:"font-mono text-sm",onSelect:rg,children:h},h))})]})]}),(0,o.jsx)("span",{className:"shrink-0",children:"]"})]}):f.length>0?(0,o.jsxs)(jt,{open:i&&m,onOpenChange:h=>{m&&l(h)},children:[(0,o.jsx)(Dt,{asChild:!0,children:(0,o.jsx)("button",{disabled:!m,className:Z("hover:bg-muted/50 rounded text-sm ml-2 transition-colors border border-muted-foreground/30 hover:border-muted-foreground/60 h-5 w-5 flex items-center justify-center p-0",!m&&"opacity-50 cursor-not-allowed"),title:m?"Add extras":"Loading extras...",type:"button",children:(0,o.jsx)(ro,{className:"w-3 h-3 shrink-0"})})}),(0,o.jsxs)(kt,{align:"start",className:"w-64 p-0 max-h-96 flex flex-col",children:[(0,o.jsx)("div",{className:"p-2 bg-popover border-b border-border",children:(0,o.jsx)("span",{className:"text-muted-foreground italic text-sm",children:"Package extras"})}),(0,o.jsx)("div",{className:"overflow-y-auto flex-1",children:f.map(h=>(0,o.jsx)(Ts,{checked:n.includes(h),onCheckedChange:y=>{d(h,y)},className:"font-mono text-sm",onSelect:ng,children:h},h))})]})]}):null]}),e[3]=m,e[4]=d,e[5]=i,e[6]=r,e[7]=u==null?void 0:u.extras,e[8]=n,e[9]=g}else g=e[9];return g},Ym=t=>{let e=(0,pt.c)(16),{value:r,onChange:n,packageName:a}=t,{error:i,isPending:l,data:s}=El(a);if(i){let d;e[0]===n?d=e[1]:(d=f=>n(f.target.value),e[0]=n,e[1]=d);let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=(0,o.jsx)("option",{value:"latest",children:"latest"}),e[2]=m):m=e[2];let g;return e[3]!==d||e[4]!==r?(g=(0,o.jsx)(Q,{content:"Failed to fetch package versions",children:(0,o.jsx)(Xa,{value:r,onChange:d,disabled:!0,className:"inline-flex ml-2 w-24 text-ellipsis",children:m})}),e[3]=d,e[4]=r,e[5]=g):g=e[5],g}let c;e[6]===n?c=e[7]:(c=d=>n(d.target.value),e[6]=n,e[7]=c);let u;e[8]!==l||e[9]!==s?(u=l?(0,o.jsx)("option",{value:"latest",children:"latest"}):["latest",...s.versions.slice(0,100)].map(ag),e[8]=l,e[9]=s,e[10]=u):u=e[10];let p;return e[11]!==l||e[12]!==c||e[13]!==u||e[14]!==r?(p=(0,o.jsx)(Xa,{value:r,onChange:c,disabled:l,className:"inline-flex ml-2 w-24 text-ellipsis",children:u}),e[11]=l,e[12]=c,e[13]=u,e[14]=r,e[15]=p):p=e[15],p},Zm=t=>{let e=(0,pt.c)(13),{packageLogs:r}=t,[n,a]=(0,v.useState)(!0);if(Object.keys(r).length===0)return null;let i;e[0]===n?i=e[1]:(i=()=>a(!n),e[0]=n,e[1]=i);let l;e[2]===n?l=e[3]:(l=n?(0,o.jsx)(er,{className:"w-4 h-4"}):(0,o.jsx)(Ga,{className:"w-4 h-4"}),e[2]=n,e[3]=l);let s;e[4]!==i||e[5]!==l?(s=(0,o.jsxs)("button",{onClick:i,className:"flex items-center gap-2 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",type:"button",children:[l,"Installation logs"]}),e[4]=i,e[5]=l,e[6]=s):s=e[6];let c;e[7]!==n||e[8]!==r?(c=n&&(0,o.jsx)("div",{className:"mt-3 space-y-3 w-full",children:Object.entries(r).map(og)}),e[7]=n,e[8]=r,e[9]=c):c=e[9];let u;return e[10]!==s||e[11]!==c?(u=(0,o.jsxs)("div",{className:"mt-4 border-t border-border pt-4 w-full",children:[s,c]}),e[10]=s,e[11]=c,e[12]=u):u=e[12],u};function Jm(t){Me.error(t)}function Qm(t){return(0,o.jsx)("option",{value:t,children:t},t)}function eg(t){let{field:e}=t;return(0,o.jsxs)(_1,{children:[(0,o.jsx)(w1,{children:(0,o.jsx)(Xa,{"data-testid":"install-package-manager-select",onChange:r=>e.onChange(r.target.value),value:e.value,disabled:e.disabled,className:"inline-flex mr-2",children:e0.map(Qm)})}),(0,o.jsx)(C1,{})]})}function tg(t){return!/^(dev|test|testing)$/i.test(t)}function rg(t){return t.preventDefault()}function ng(t){return t.preventDefault()}function ag(t){return(0,o.jsx)("option",{value:t,children:t},t)}function og(t){let[e,r]=t;return(0,o.jsxs)("div",{className:"w-full",children:[(0,o.jsx)("h4",{className:"font-mono text-sm font-medium mb-2 text-foreground",children:e}),(0,o.jsx)("div",{className:"border border-border rounded w-full",children:(0,o.jsx)("pre",{className:"p-3 text-xs font-mono bg-background max-h-64 overflow-y-auto text-muted-foreground whitespace-pre-wrap scrollbar-thin",children:r||"No logs available"})})]},e)}var ig=t=>{let{transform:e}=t;return{...e,x:0}},lg=U(),sg={threshold:{x:0,y:.1}};const ug=v.memo(t=>{let e=(0,lg.c)(23),{children:r,multiColumn:n}=t,{dropCellOverCell:a,dropCellOverColumn:i,moveColumn:l,compactColumns:s}=qe(),[c,u]=(0,v.useState)(null),[p,d]=(0,v.useState)(null),[m]=o0(),g;e:{if(m.width==="columns"){g=E0.EMPTY;break e}let $;e[0]===Symbol.for("react.memo_cache_sentinel")?($=[ig],e[0]=$):$=e[0],g=$}let f=g,b;e[1]===Symbol.for("react.memo_cache_sentinel")?(b={activationConstraint:{distance:8}},e[1]=b):b=e[1];let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={coordinateGetter:Zp},e[2]=h):h=e[2];let y=Cd(ki(ca,b),ki(sa,h)),k;e[3]===Symbol.for("react.memo_cache_sentinel")?(k=$=>{u($.active.id),d(un().cellIds)},e[3]=k):k=e[3];let x=ke(k),D;e[4]===p?D=e[5]:(D=()=>{u(null),d(null)},e[4]=p,e[5]=D);let j=ke(D),w;e[6]===c?w=e[7]:(w=$=>{let P=$.droppableContainers.filter(cg);if(c&&It(c))return na({...$,droppableContainers:P});let I=Nd({...$,droppableContainers:P}),A=ra(I.length>0?I:wi({...$,droppableContainers:P}),"id");if(!A)return[];fn(It(A),`Expected column id. Got: ${A}`);let B=un().cellIds.get(A);if(fn(B,`Expected column. Got: ${A}`),B&&B.topLevelIds.length===0)return[{id:A}];let R=new Set(B.topLevelIds),K=na({...$,droppableContainers:$.droppableContainers.filter(M=>M.id!==A&&R.has(M.id))});if(K.length>0){let M=K[0].id;return fn(fa(M),`Expected cell id. Got: ${M}`),[{id:M}]}return[]},e[6]=c,e[7]=w);let C=w,S;e[8]!==a||e[9]!==i||e[10]!==l?(S=$=>{let{active:P,over:I}=$,A=I==null?void 0:I.id;if(!(A==null||P.id===A)){if(fa(P.id)){if(It(A)){i({cellId:P.id,columnId:A});return}if(fa(A)){a({cellId:P.id,overCellId:A});return}}It(P.id)&&It(A)&&l({column:P.id,overColumn:A})}},e[8]=a,e[9]=i,e[10]=l,e[11]=S):S=e[11];let _=ke(S),E;e[12]===s?E=e[13]:(E=$=>{let{active:P,over:I}=$;I===null||P.id===I.id||s()},e[12]=s,e[13]=E);let T=ke(E),N=n?C:na,z;return e[14]!==r||e[15]!==j||e[16]!==T||e[17]!==_||e[18]!==x||e[19]!==f||e[20]!==y||e[21]!==N?(z=(0,o.jsx)(Tp,{autoScroll:sg,sensors:y,collisionDetection:N,modifiers:f,onDragEnd:T,onDragStart:x,onDragCancel:j,onDragOver:_,children:r}),e[14]=r,e[15]=j,e[16]=T,e[17]=_,e[18]=x,e[19]=f,e[20]=y,e[21]=N,e[22]=z):z=e[22],z});function fa(t){return typeof t=="string"&&!t.startsWith("tree_")}function It(t){return typeof t=="string"&&t.startsWith("tree_")}function cg(t){return It(t.id)}var dg=U(),Sl=v.forwardRef((t,e)=>{let r=(0,dg.c)(60),{columnId:n,canDelete:a,canMoveLeft:i,canMoveRight:l,footer:s,...c}=t,u;r[0]===n?u=r[1]:(u={id:n},r[0]=n,r[1]=u);let{attributes:p,listeners:d,setNodeRef:m,transform:g,transition:f,isDragging:b,isOver:h}=tl(u),y;r[2]===g?y=r[3]:(y=g?gn.Transform.toString({x:g.x,y:0,scaleX:1,scaleY:1}):void 0,r[2]=g,r[3]=y);let k=b?2:void 0,x;r[4]!==y||r[5]!==k||r[6]!==f?(x={transform:y,transition:f,zIndex:k,position:"relative","--gutter-width":"50px"},r[4]=y,r[5]=k,r[6]=f,r[7]=x):x=r[7];let D=x,{deleteColumn:j,moveColumn:w,addColumn:C}=qe(),S=mg,_;r[8]!==n||r[9]!==w?(_=()=>w({column:n,overColumn:"_left_"}),r[8]=n,r[9]=w,r[10]=_):_=r[10];let E=!i,T;r[11]===Symbol.for("react.memo_cache_sentinel")?(T=(0,o.jsx)(G0,{className:"size-4"}),r[11]=T):T=r[11];let N;r[12]!==_||r[13]!==E?(N=(0,o.jsx)(Q,{content:"Move column left",side:"top",delayDuration:300,children:(0,o.jsx)(ae,{variant:"text",size:"xs",className:"hover:bg-(--gray-3) aspect-square p-0 w-7 h-7",onClick:_,disabled:E,children:T})}),r[12]=_,r[13]=E,r[14]=N):N=r[14];let z;r[15]!==n||r[16]!==w?(z=()=>w({column:n,overColumn:"_right_"}),r[15]=n,r[16]=w,r[17]=z):z=r[17];let $=!l,P;r[18]===Symbol.for("react.memo_cache_sentinel")?(P=(0,o.jsx)(Ga,{className:"size-4"}),r[18]=P):P=r[18];let I;r[19]!==$||r[20]!==z?(I=(0,o.jsx)(Q,{content:"Move column right",side:"top",delayDuration:300,children:(0,o.jsx)(ae,{variant:"text",size:"xs",className:"hover:bg-(--gray-3) aspect-square p-0 w-7 h-7",onClick:z,disabled:$,children:P})}),r[19]=$,r[20]=z,r[21]=I):I=r[21];let A;r[22]===Symbol.for("react.memo_cache_sentinel")?(A=(0,o.jsx)(v0,{className:"size-4 opacity-0 group-hover:opacity-50 transition-opacity duration-200"}),r[22]=A):A=r[22];let B;r[23]!==p||r[24]!==d?(B=(0,o.jsx)("div",{className:"flex gap-2 h-full grow cursor-grab active:cursor-grabbing items-center justify-center","data-testid":"column-drag-spacer",...p,...d,children:A}),r[23]=p,r[24]=d,r[25]=B):B=r[25];let R;r[26]===Symbol.for("react.memo_cache_sentinel")?(R=(0,o.jsx)(Dt,{asChild:!0,children:(0,o.jsx)(ae,{variant:"text",size:"xs",className:"hover:bg-(--gray-3) aspect-square p-0 w-7 h-7",children:(0,o.jsx)(Qa,{className:"size-4"})})}),r[26]=R):R=r[26];let K;r[27]!==n||r[28]!==j?(K=()=>j({columnId:n}),r[27]=n,r[28]=j,r[29]=K):K=r[29];let M=!a,H;r[30]===Symbol.for("react.memo_cache_sentinel")?(H=(0,o.jsx)(Ge,{className:"mr-2 size-4"}),r[30]=H):H=r[30];let O;r[31]!==K||r[32]!==M?(O=(0,o.jsxs)(jt,{children:[R,(0,o.jsx)(kt,{align:"end",children:(0,o.jsxs)(yt,{onClick:K,disabled:M,children:[H,"Delete column"]})})]}),r[31]=K,r[32]=M,r[33]=O):O=r[33];let F;r[34]!==C||r[35]!==n?(F=()=>{C({columnId:n}),requestAnimationFrame(S)},r[34]=C,r[35]=n,r[36]=F):F=r[36];let L;r[37]===Symbol.for("react.memo_cache_sentinel")?(L=(0,o.jsx)(ro,{className:"size-4"}),r[37]=L):L=r[37];let V;r[38]===F?V=r[39]:(V=(0,o.jsx)(Q,{content:"Add column",side:"top",delayDuration:300,children:(0,o.jsx)(ae,{variant:"text",size:"xs",className:"hover:bg-(--gray-3) aspect-square p-0 w-7 h-7",onClick:F,children:L})}),r[38]=F,r[39]=V);let q;r[40]!==I||r[41]!==B||r[42]!==O||r[43]!==V||r[44]!==N?(q=(0,o.jsxs)("div",{className:"px-2 pb-0 group flex items-center overflow-hidden border-b border-[var(--slate-7)]",children:[N,I,B,O,V]}),r[40]=I,r[41]=B,r[42]=O,r[43]=V,r[44]=N,r[45]=q):q=r[45];let W=q,X;r[46]!==e||r[47]!==m?(X=oe=>{Bs(e,m)(oe)},r[46]=e,r[47]=m,r[48]=X):X=r[48];let te=Z(b?"":c.className,b?"z-20":"z-1 hover:z-10 focus-within:z-10",h&&"bg-accent/20"),re;r[49]!==W||r[50]!==c.children?(re=(0,o.jsxs)("div",{className:"border border-[var(--slate-7)]",children:[W,c.children]}),r[49]=W,r[50]=c.children,r[51]=re):re=r[51];let ee;return r[52]!==s||r[53]!==b||r[54]!==c||r[55]!==D||r[56]!==X||r[57]!==te||r[58]!==re?(ee=(0,o.jsxs)("div",{tabIndex:-1,ref:X,...c,style:D,"data-is-dragging":b,className:te,children:[re,s]}),r[52]=s,r[53]=b,r[54]=c,r[55]=D,r[56]=X,r[57]=te,r[58]=re,r[59]=ee):ee=r[59],ee});Sl.displayName="SortableColumn";const pg=(0,v.memo)(Sl);function mg(){let t=document.getElementById("App");t&&t.scrollTo({left:t.scrollLeft+1e3,behavior:"smooth"})}var Tl=U(),{getColumnWidth:gg,saveColumnWidth:hg}=sf;const _l=(0,v.memo)(t=>{let e=(0,Tl.c)(20),r=(0,v.useRef)(null);if(t.width==="columns"){let i=t.canDelete,l=t.columnId,s=t.canMoveLeft,c=t.canMoveRight,u=t.footer,p;e[0]===t.index?p=e[1]:(p=gg(t.index),e[0]=t.index,e[1]=p);let d;e[2]===t.index?d=e[3]:(d=f=>{hg(t.index,f)},e[2]=t.index,e[3]=d);let m;e[4]!==t.children||e[5]!==p||e[6]!==d?(m=(0,o.jsx)(fg,{startingWidth:p,onResize:d,children:t.children}),e[4]=t.children,e[5]=p,e[6]=d,e[7]=m):m=e[7];let g;return e[8]!==t.canDelete||e[9]!==t.canMoveLeft||e[10]!==t.canMoveRight||e[11]!==t.columnId||e[12]!==t.footer||e[13]!==m?(g=(0,o.jsx)(pg,{tabIndex:-1,ref:r,canDelete:i,columnId:l,canMoveLeft:s,canMoveRight:c,className:"group/column",footer:u,children:m}),e[8]=t.canDelete,e[9]=t.canMoveLeft,e[10]=t.canMoveRight,e[11]=t.columnId,e[12]=t.footer,e[13]=m,e[14]=g):g=e[14],g}let n;e[15]===t.children?n=e[16]:(n=(0,o.jsx)("div",{"data-testid":"cell-column",className:"flex flex-col gap-5",children:t.children}),e[15]=t.children,e[16]=n);let a;return e[17]!==t.footer||e[18]!==n?(a=(0,o.jsxs)(o.Fragment,{children:[n,t.footer]}),e[17]=t.footer,e[18]=n,e[19]=a):a=e[19],a});_l.displayName="Column";var fg=t=>{let e=(0,Tl.c)(15),{startingWidth:r,onResize:n,children:a}=t,i;e[0]!==n||e[1]!==r?(i={startingWidth:r,onResize:n},e[0]=n,e[1]=r,e[2]=i):i=e[2];let{resizableDivRef:l,handleRefs:s,style:c}=Mf(i),u=xg,p;e[3]===s.left?p=e[4]:(p=u(s.left),e[3]=s.left,e[4]=p);let d;e[5]!==a||e[6]!==l||e[7]!==c?(d=(0,o.jsx)("div",{ref:l,className:"flex flex-col gap-5 box-content min-h-[100px] px-11 pt-3 pb-6 min-w-[500px] z-1",style:c,children:a}),e[5]=a,e[6]=l,e[7]=c,e[8]=d):d=e[8];let m;e[9]===s.right?m=e[10]:(m=u(s.right),e[9]=s.right,e[10]=m);let g;return e[11]!==p||e[12]!==d||e[13]!==m?(g=(0,o.jsxs)("div",{className:"flex flex-row",children:[p,d,m]}),e[11]=p,e[12]=d,e[13]=m,e[14]=g):g=e[14],g};function xg(t){return(0,o.jsx)("div",{ref:t,className:`w-[3px] cursor-col-resize transition-colors duration-200 z-100 + relative before:content-[''] before:absolute before:inset-y-0 before:-left-[3px] + before:right-[-3px] before:w-[9px] before:z-[-1] + hover/column:bg-[var(--slate-3)] dark:hover/column:bg-[var(--slate-5)] + hover/column:hover:bg-primary/60 dark:hover/column:hover:bg-primary/60`})}var Il=U();const bg=t=>{let e=(0,Il.c)(10),{width:r}=t,{banners:n}=qf(),{removeBanner:a}=Vf();if(n.length===0)return null;let i=r==="columns"&&"w-full max-w-[80vw]",l;e[0]===i?l=e[1]:(l=Z("flex flex-col gap-4 mb-5 print:hidden",i),e[0]=i,e[1]=l);let s;if(e[2]!==n||e[3]!==a){let u;e[5]===a?u=e[6]:(u=p=>(0,o.jsxs)(wt,{kind:p.variant||"info",className:"flex flex-col rounded p-3",children:[(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsxs)("span",{className:"font-bold text-lg flex items-center mb-2",children:[(0,o.jsx)(Ta,{className:"w-5 h-5 inline-block mr-2"}),p.title]}),(0,o.jsx)(ae,{"data-testid":"remove-banner-button",variant:"text",size:"icon",onClick:()=>a(p.id),children:(0,o.jsx)(Ge,{className:"w-5 h-5"})})]}),(0,o.jsxs)("div",{className:"flex justify-between items-end",children:[(0,o.jsx)("span",{children:ab({html:p.description})}),p.action==="restart"&&(0,o.jsx)(yg,{})]})]},p.id),e[5]=a,e[6]=u),s=n.map(u),e[2]=n,e[3]=a,e[4]=s}else s=e[4];let c;return e[7]!==l||e[8]!==s?(c=(0,o.jsx)("div",{className:l,children:s}),e[7]=l,e[8]=s,e[9]=c):c=e[9],c};var yg=()=>{let t=(0,Il.c)(3),e=lx(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)(m1,{className:"w-3 h-3 mr-2"}),t[0]=r):r=t[0];let n;return t[1]===e?n=t[2]:(n=(0,o.jsxs)(ae,{"data-testid":"restart-session-button",variant:"link",size:"xs",onClick:e,children:[r,"Restart"]}),t[1]=e,t[2]=n),n},vg=U(),Dg=Ea(t=>{let e=t($a);for(let r of e.cellIds.inOrderIds){let n=e.cellRuntime[r];if(n.status==="idle"&&n.consoleOutputs.some(a=>a.channel==="stdin"&&a.response===void 0))return!0}return!1});const kg=()=>{let t=(0,vg.c)(3),e=J(Dg),r=jg;if(!e)return null;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)("div",{className:"flex justify-between",children:(0,o.jsx)("span",{className:"font-bold text-lg flex items-center mb-1",children:"Program waiting for input"})}),t[0]=n):n=t[0];let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(lb,{className:"inline",children:"stdin"}),t[1]=a):a=t[1];let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)(vn,{milliseconds:2e3,children:(0,o.jsx)("div",{className:"flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-200 opacity-95",children:(0,o.jsxs)(wt,{kind:"info",className:"flex flex-col rounded py-2 px-4 animate-in slide-in-from-top w-fit",children:[n,(0,o.jsx)("div",{className:"flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",children:(0,o.jsx)("div",{children:(0,o.jsxs)("p",{children:["The program is still running, but blocked on"," ",a,".",(0,o.jsx)(ae,{variant:"link",className:"h-auto font-normal",onClick:r,children:"Jump to the cell"})]})})})]})})}),t[2]=i):i=t[2],i};function jg(){let t=document.querySelector("[data-stdin-blocking]");t?(t.scrollIntoView({behavior:"smooth",block:"center"}),requestAnimationFrame(()=>{t.focus()})):Me.error("No element with data-stdin-blocking found")}function wg(){us(Eg)}function Eg(){let t=setTimeout(Cg,100);return()=>clearTimeout(t)}function Cg(){requestAnimationFrame(Sg)}function Sg(){if(!document.hasFocus())return;let t=window.location.hash,e=J0(t);if(e)Tg(e);else try{Nl()}catch(r){let n=r;Me.warn("Error focusing first editor",n)}}function Nl(){var n,a;let{cellIds:t,cellData:e,cellHandles:r}=un();for(let i of t.iterateTopLevelIds){let l=r[i];if(!((n=e[i])!=null&&n.config.hide_code)&&((a=l==null?void 0:l.current)!=null&&a.editorView)){l.current.editorView.focus();return}}}var zl=!1;function Tg(t){var r,n;if(zl)return;let e=document.querySelector(`[data-cell-name="${t}"]`);if(e){if(e.scrollIntoView({behavior:"smooth",block:"start"}),zl=!0,e instanceof HTMLElement){e.focus();let{cellHandles:a}=un(),i=e.dataset.cellId;if(!i){Me.error(`Missing cellId for cell with name ${t}`);return}let l=(n=(r=a[i])==null?void 0:r.current)==null?void 0:n.editorView;l&&l.focus()}}else Me.warn(`Cannot focus cell with name ${t} because it was not found`),Nl()}var Lr=U();const _g=t=>{let e=(0,Lr.c)(8),r=J(_f),n=t.appConfig.width==="columns",a;e[0]===t?a=e[1]:(a=(0,o.jsx)(Ig,{...t}),e[0]=t,e[1]=a);let i;e[2]!==r||e[3]!==a?(i=(0,o.jsx)(Qi,{"data-testid":"column-container",items:r,strategy:Rp,children:a}),e[2]=r,e[3]=a,e[4]=i):i=e[4];let l;return e[5]!==n||e[6]!==i?(l=(0,o.jsx)(ug,{multiColumn:n,children:i}),e[5]=n,e[6]=i,e[7]=l):l=e[7],l};var Ig=t=>{let e=(0,Lr.c)(31),{mode:r,userConfig:n,appConfig:a}=t,i=qe(),{theme:l}=z1(),{toggleSidebarPanel:s}=sn();wg(),Ee("global.focusTop",i.focusTopCell),Ee("global.focusBottom",i.focusBottomCell),Ee("global.toggleSidebar",s),Ee("global.foldCode",i.foldAll),Ee("global.unfoldCode",i.unfoldAll),Ee("global.formatAll",$g),Ee("cell.hideCode",br.NOOP),Ee("cell.format",br.NOOP);let c=rs(),u=pf(),p=c.getColumnIds(),d=i.scrollToTarget,m;e[0]!==u||e[1]!==d?(m=()=>{u!==null&&d()},e[0]=u,e[1]=d,e[2]=m):m=e[2];let g;e[3]!==c||e[4]!==u||e[5]!==d?(g=[c,u,d],e[3]=c,e[4]=u,e[5]=d,e[6]=g):g=e[6],(0,v.useEffect)(m,g);let f=N0,b,h,y,k;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=(0,o.jsx)(Hm,{}),h=(0,o.jsx)(em,{}),y=(0,o.jsx)(kg,{}),k=(0,o.jsx)($c,{}),e[7]=b,e[8]=h,e[9]=y,e[10]=k):(b=e[7],h=e[8],y=e[9],k=e[10]);let x;e[11]===a.width?x=e[12]:(x=(0,o.jsx)(bg,{width:a.width}),e[11]=a.width,e[12]=x);let D;e[13]===c.idLength?D=e[14]:(D=c.idLength===0&&(0,o.jsx)(bi,{}),e[13]=c.idLength,e[14]=D);let j=a.width==="columns"&&"grid grid-flow-col auto-cols-min gap-6",w;e[15]===j?w=e[16]:(w=Z(j),e[15]=j,e[16]=w);let C=p.map((T,N)=>(0,o.jsx)(Ng,{columnId:T,index:N,columnsLength:p.length,appConfig:a,mode:r,userConfig:n,theme:l},T)),S;e[17]!==w||e[18]!==C?(S=(0,o.jsx)("div",{className:w,children:C}),e[17]=w,e[18]=C,e[19]=S):S=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=(0,o.jsx)(yb,{}),e[20]=_):_=e[20];let E;return e[21]!==f||e[22]!==a||e[23]!==x||e[24]!==D||e[25]!==S||e[26]!==b||e[27]!==h||e[28]!==y||e[29]!==k?(E=(0,o.jsxs)(f,{className:"pb-[40vh]",invisible:!1,appConfig:a,innerClassName:"pr-4",children:[b,h,y,k,x,D,S,_]}),e[21]=f,e[22]=a,e[23]=x,e[24]=D,e[25]=S,e[26]=b,e[27]=h,e[28]=y,e[29]=k,e[30]=E):E=e[30],E},Ng=t=>{let e=(0,Lr.c)(54),{columnId:r,index:n,columnsLength:a,appConfig:i,mode:l,userConfig:s,theme:c}=t,u=rs(),p,d,m,g,f,b,h,y,k,x,D,j,w,C;if(e[0]!==i.width||e[1]!==u||e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==l||e[6]!==c||e[7]!==s){let E=u.get(r);fn(E,`Expected column for: ${r}`);let T;e[22]===u?T=e[23]:(T=u.hasOnlyOneId(),e[22]=u,e[23]=T);let N=T,z;e[24]===u.inOrderIds?z=e[25]:(z=u.inOrderIds.includes(If),e[24]=u.inOrderIds,e[25]=z);let $=z;d=_l,D=r,j=n,w=n>0,C=n1;let P=i.width==="columns"&&"opacity-0 group-hover/column:opacity-100",I;e[26]===P?I=e[27]:(I=Z(P),e[26]=P,e[27]=I),e[28]!==r||e[29]!==I?(b=(0,o.jsx)(zg,{columnId:r,className:I}),e[28]=r,e[29]=I,e[30]=b):b=e[30],p=Qi,m=`column-${n+1}`,h=E.topLevelIds,y=Fp,e[31]!==$||e[32]!==n||e[33]!==l||e[34]!==c||e[35]!==s?(k=n===0&&$&&(0,o.jsx)(jl,{cellId:"setup",theme:c,showPlaceholder:!1,canDelete:!0,mode:l,userConfig:s,isCollapsed:!1,collapseCount:0,canMoveX:!1},"setup"),e[31]=$,e[32]=n,e[33]=l,e[34]=c,e[35]=s,e[36]=k):k=e[36],x=E.topLevelIds.map(A=>A==="setup"?null:(0,o.jsx)(jl,{cellId:A,theme:c,showPlaceholder:N,canDelete:!N,mode:l,userConfig:s,isCollapsed:E.isCollapsed(A),collapseCount:E.getCount(A),canMoveX:i.width==="columns"},A)),e[0]=i.width,e[1]=u,e[2]=r,e[3]=a,e[4]=n,e[5]=l,e[6]=c,e[7]=s,e[8]=p,e[9]=d,e[10]=m,e[11]=g,e[12]=f,e[13]=b,e[14]=h,e[15]=y,e[16]=k,e[17]=x,e[18]=D,e[19]=j,e[20]=w,e[21]=C}else p=e[8],d=e[9],m=e[10],g=e[11],f=e[12],b=e[13],h=e[14],y=e[15],k=e[16],x=e[17],D=e[18],j=e[19],w=e[20],C=e[21];let S;e[37]!==p||e[38]!==m||e[39]!==h||e[40]!==y||e[41]!==k||e[42]!==x?(S=(0,o.jsxs)(p,{id:m,items:h,strategy:y,children:[k,x]}),e[37]=p,e[38]=m,e[39]=h,e[40]=y,e[41]=k,e[42]=x,e[43]=S):S=e[43];let _;return e[44]!==d||e[45]!==g||e[46]!==f||e[47]!==b||e[48]!==S||e[49]!==D||e[50]!==j||e[51]!==w||e[52]!==C?(_=(0,o.jsx)(d,{columnId:D,index:j,canMoveLeft:w,canMoveRight:C,width:g,canDelete:f,footer:b,children:S}),e[44]=d,e[45]=g,e[46]=f,e[47]=b,e[48]=S,e[49]=D,e[50]=j,e[51]=w,e[52]=C,e[53]=_):_=e[53],_},zg=t=>{let e=(0,Lr.c)(18),{columnId:r,className:n}=t,{createNewCell:a}=qe(),[i,l]=q0(!1),s=J(gs),c=J(fs),u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=Z("mb-0 rounded-none sm:px-4 md:px-5 lg:px-8 tracking-wide no-wrap whitespace-nowrap","font-semibold opacity-70 hover:opacity-90 uppercase text-xs"),e[0]=u):u=e[0];let p=u,d;e[1]!==s||e[2]!==c||e[3]!==r||e[4]!==a||e[5]!==i||e[6]!==l.toggle?(d=()=>i?(0,o.jsx)(F0,{onClose:l.toggle}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(ae,{className:p,variant:"text",size:"sm",disabled:!c,onClick:()=>a({cellId:{type:"__end__",columnId:r},before:!1}),children:[(0,o.jsx)(fu,{className:"mr-2 size-4 shrink-0"}),"Python"]}),(0,o.jsxs)(ae,{className:p,variant:"text",size:"sm",disabled:!c,onClick:()=>{Bn({autoInstantiate:!0,createNewCell:a}),a({cellId:{type:"__end__",columnId:r},before:!1,code:an.markdown.defaultCode,hideCode:!0})},children:[(0,o.jsx)(xu,{className:"mr-2 size-4 shrink-0"}),"Markdown"]}),(0,o.jsxs)(ae,{className:p,variant:"text",size:"sm",disabled:!c,onClick:()=>{Bn({autoInstantiate:!0,createNewCell:a}),a({cellId:{type:"__end__",columnId:r},before:!1,code:an.sql.defaultCode})},children:[(0,o.jsx)(Xl,{className:"mr-2 size-4 shrink-0"}),"SQL"]}),(0,o.jsx)(Q,{content:s?null:(0,o.jsx)("span",{children:"Enable via settings under AI Assist"}),delayDuration:100,asChild:!1,children:(0,o.jsxs)(ae,{className:p,variant:"text",size:"sm",disabled:!s||!c,onClick:l.toggle,children:[(0,o.jsx)(Sn,{className:"mr-2 size-4 shrink-0"}),"Generate with AI"]})})]}),e[1]=s,e[2]=c,e[3]=r,e[4]=a,e[5]=i,e[6]=l.toggle,e[7]=d):d=e[7];let m=d,g=!i&&"w-fit shadow-sm-solid-shade",f=i&&"w-full max-w-4xl shadow-md-solid-shade shadow-(color:--blue-3)",b=i&&"opacity-100",h;e[8]!==n||e[9]!==g||e[10]!==f||e[11]!==b?(h=Z("border border-border rounded transition-all duration-200 overflow-hidden divide-x divide-border flex",g,f,n,b),e[8]=n,e[9]=g,e[10]=f,e[11]=b,e[12]=h):h=e[12];let y;e[13]===m?y=e[14]:(y=m(),e[13]=m,e[14]=y);let k;return e[15]!==h||e[16]!==y?(k=(0,o.jsx)("div",{className:"flex justify-center mt-4 pt-6 pb-32 group gap-4 w-full print:hidden",children:(0,o.jsx)("div",{className:h,children:y})}),e[15]=h,e[16]=y,e[17]=k):k=e[17],k};function $g(){ff()}var Ag=Rf(t=>I0().syncCellIds(t),400);const Bg={onCellIdsChange:(t,e)=>{bt.get(B1)||t.isEmpty()||e.isEmpty()||tf(t.inOrderIds,e.inOrderIds)||Ag({cellIds:t.inOrderIds})}};var Pg=U();const $l=t=>{let e=(0,Pg.c)(73),{userConfig:r,appConfig:n,hideControls:a}=t,i=a===void 0?!1:a;ef(kf,Bg.onCellIdsChange);let{setCells:l,mergeAllColumns:s,collapseAllCells:c,expandAllCells:u}=qe(),p=J(A1),d=J(of),m=J(Cf),g=sb(),f=xt(Xx),{sendComponentValues:b,sendInterrupt:h}=at(),y=p.mode==="edit",k=p.mode==="present",x=J(wf),D;e[0]===b?D=e[1]:(D=()=>(Os.INSTANCE.start(b),Kg),e[0]=b,e[1]=D);let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[2]=j):j=e[2],(0,v.useEffect)(D,j);let w=r.runtime.auto_instantiate,C;e[3]!==l||e[4]!==f?(C=(be,ge)=>{l(be),f({names:be.map(Og),codes:be.map(Rg),configs:be.map(Mg),layout:ge})},e[3]=l,e[4]=f,e[5]=C):C=e[5];let S;e[6]===Symbol.for("react.memo_cache_sentinel")?(S=d0(),e[6]=S):S=e[6];let _;e[7]!==C||e[8]!==r.runtime.auto_instantiate?(_={autoInstantiate:w,setCells:C,sessionId:S},e[7]=C,e[8]=r.runtime.auto_instantiate,e[9]=_):_=e[9];let{connection:E}=a1(_),T,N;e[10]!==n.app_title||e[11]!==g?(T=()=>{document.title=n.app_title||as.basename(g??"")||"Untitled Notebook"},N=[n.app_title,g],e[10]=n.app_title,e[11]=g,e[12]=T,e[13]=N):(T=e[12],N=e[13]),(0,v.useEffect)(T,N);let z=pn(n.width),$;e[14]!==n.width||e[15]!==s||e[16]!==z?($=()=>{z==="columns"&&n.width!=="columns"&&s()},e[14]=n.width,e[15]=s,e[16]=z,e[17]=$):$=e[17];let P;e[18]!==n.width||e[19]!==s||e[20]!==d||e[21]!==z?(P=[n.width,z,s,d],e[18]=n.width,e[19]=s,e[20]=d,e[21]=z,e[22]=P):P=e[22],(0,v.useEffect)($,P);let I=ob(),A=ib(),B=nx(),R;e[23]===I?R=e[24]:(R=()=>{I()},e[23]=I,e[24]=R),Ee("global.runStale",R);let K;e[25]===h?K=e[26]:(K=()=>{h()},e[25]=h,e[26]=K),Ee("global.interrupt",K);let M;e[27]===B?M=e[28]:(M=()=>{B()},e[27]=B,e[28]=M),Ee("global.hideCode",M);let H;e[29]===A?H=e[30]:(H=()=>{A()},e[29]=A,e[30]=H),Ee("global.runAll",H);let O;e[31]===c?O=e[32]:(O=()=>{c()},e[31]=c,e[32]=O),Ee("global.collapseAllSections",O);let F;e[33]===u?F=e[34]:(F=()=>{u()},e[33]=u,e[34]=F),Ee("global.expandAllSections",F);let L;e[35]!==n||e[36]!==r||e[37]!==p.mode?(L=(0,o.jsx)(_g,{mode:p.mode,userConfig:r,appConfig:n}),e[35]=n,e[36]=r,e[37]=p.mode,e[38]=L):L=e[38];let V=L,q=n.width,W;e[39]===Symbol.for("react.memo_cache_sentinel")?(W=Z("pt-4 sm:pt-12 pb-2 mb-4 print:hidden z-50","sticky left-0"),e[39]=W):W=e[39];let X;e[40]!==g||e[41]!==y?(X=y&&(0,o.jsx)("div",{className:"flex items-center justify-center container",children:(0,o.jsx)(nd,{filename:g})}),e[40]=g,e[41]=y,e[42]=X):X=e[42];let te;e[43]!==E||e[44]!==X?(te=(0,o.jsx)(l1,{connection:E,className:W,children:X}),e[43]=E,e[44]=X,e[45]=te):te=e[45];let re;e[46]!==n||e[47]!==V||e[48]!==m||e[49]!==p.mode?(re=m&&(0,o.jsx)(r1,{appConfig:n,mode:p.mode,children:V}),e[46]=n,e[47]=V,e[48]=m,e[49]=p.mode,e[50]=re):re=e[50];let ee;e[51]===m?ee=e[52]:(ee=!m&&(0,o.jsx)(bi,{}),e[51]=m,e[52]=ee);let oe;e[53]!==n.width||e[54]!==E||e[55]!==x||e[56]!==te||e[57]!==re||e[58]!==ee?(oe=(0,o.jsxs)(n1,{connection:E,isRunning:x,width:q,children:[te,re,ee]}),e[53]=n.width,e[54]=E,e[55]=x,e[56]=te,e[57]=re,e[58]=ee,e[59]=oe):oe=e[59];let Y;e[60]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,o.jsx)(md,{}),e[60]=Y):Y=e[60];let se;e[61]!==n||e[62]!==E||e[63]!==i||e[64]!==k||e[65]!==x||e[66]!==I||e[67]!==h||e[68]!==B?(se=!i&&(0,o.jsx)(_n,{children:(0,o.jsx)(Zc,{presenting:k,onTogglePresenting:B,onInterrupt:h,onRun:I,connectionState:E.state,running:x,appConfig:n})}),e[61]=n,e[62]=E,e[63]=i,e[64]=k,e[65]=x,e[66]=I,e[67]=h,e[68]=B,e[69]=se):se=e[69];let de;return e[70]!==oe||e[71]!==se?(de=(0,o.jsxs)(o.Fragment,{children:[oe,Y,se]}),e[70]=oe,e[71]=se,e[72]=de):de=e[72],de};function Kg(){Os.INSTANCE.stop()}function Og(t){return t.name}function Rg(t){return t.code}function Mg(t){return t.config}var Fg=U();const mt=(0,v.forwardRef)((t,e)=>{let r=(0,Fg.c)(18),n,a,i,l,s;r[0]===t?(n=r[1],a=r[2],i=r[3],l=r[4],s=r[5]):({children:n,tooltip:s,selected:l,className:a,...i}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i,r[4]=l,r[5]=s);let c=!l&&"hover:bg-(--sage-3)",u=l&&"bg-(--sage-4)",p;r[6]!==a||r[7]!==c||r[8]!==u?(p=Z("h-full flex items-center p-2 text-sm shadow-inset font-mono cursor-pointer rounded",c,u,a),r[6]=a,r[7]=c,r[8]=u,r[9]=p):p=r[9];let d;r[10]!==n||r[11]!==e||r[12]!==i||r[13]!==p?(d=(0,o.jsx)("div",{ref:e,className:p,...i,children:n}),r[10]=n,r[11]=e,r[12]=i,r[13]=p,r[14]=d):d=r[14];let m=d;if(s){let g;return r[15]!==m||r[16]!==s?(g=(0,o.jsx)(Q,{content:s,side:"top",delayDuration:200,children:m}),r[15]=m,r[16]=s,r[17]=g):g=r[17],g}return m});mt.displayName="FooterItem";var Vg=U();const Lg=()=>{var g,f;let t=(0,Vg.c)(17),e=J(n0),r=J(gs),n=((g=e==null?void 0:e.models)==null?void 0:g.chat_model)||"openai/gpt-4o",a=((f=e==null?void 0:e.models)==null?void 0:f.edit_model)||n,{handleClick:i}=Is();if(!r){let b;t[0]===i?b=t[1]:(b=()=>i("ai"),t[0]=i,t[1]=b);let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)(Sn,{className:"h-4 w-4 opacity-60"}),t[2]=h):h=t[2];let y;return t[3]===b?y=t[4]:(y=(0,o.jsx)(mt,{tooltip:"Assist is disabled",selected:!1,onClick:b,"data-testid":"footer-ai-disabled",children:h}),t[3]=b,t[4]=y),y}let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)("b",{children:"Chat model:"}),t[5]=l):l=t[5];let s,c;t[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)("br",{}),c=(0,o.jsx)("b",{children:"Edit model:"}),t[6]=s,t[7]=c):(s=t[6],c=t[7]);let u;t[8]!==n||t[9]!==a?(u=(0,o.jsxs)(o.Fragment,{children:[l," ",n,s,c," ",a]}),t[8]=n,t[9]=a,t[10]=u):u=t[10];let p;t[11]===i?p=t[12]:(p=()=>i("ai"),t[11]=i,t[12]=p);let d;t[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,o.jsx)(Sn,{className:"h-4 w-4"}),t[13]=d):d=t[13];let m;return t[14]!==u||t[15]!==p?(m=(0,o.jsx)(mt,{tooltip:u,onClick:p,selected:!1,"data-testid":"footer-ai-enabled",children:d}),t[14]=u,t[15]=p,t[16]=m):m=t[16],m};var Hg=3e4;const Al=Ea("connecting"),Bl=()=>{let t=J(Qt).state,e=c0(),r=bs(),n=xt(Al),{isFetching:a,error:i,data:l,refetch:s}=uo(async()=>{if(!bn(t)){n("disconnected");return}if(yr())return n("healthy"),{isHealthy:!0,lastChecked:new Date,error:void 0};try{let d=await e.isHealthy();return n(d?"healthy":"unhealthy"),{isHealthy:d,lastChecked:new Date,error:void 0}}catch(d){return n("unhealthy"),{isHealthy:!1,lastChecked:new Date,error:d instanceof Error?d.message:"Unknown error"}}},[e,t]);iu(s,{delayMs:bn(t)?Hg:null,whenVisible:!0});let c=()=>Fa(t)?"Not connected to a runtime":[Of(t.toLowerCase()),l!=null&&l.lastChecked?l.isHealthy?"\u2713 Healthy":"\u2717 Unhealthy":"Health: Unknown",i?`Error: ${i}`:""].filter(Boolean).join(` +`),u=()=>a||u0(t)?(0,o.jsx)(kn,{size:"small"}):p0(t)?(0,o.jsx)(kn,{className:"text-destructive",size:"small"}):bn(t)?l!=null&&l.isHealthy?(0,o.jsx)(Cs,{className:"w-4 h-4 text-(--green-9)"}):l!=null&&l.lastChecked?(0,o.jsx)(Ta,{className:"w-4 h-4 text-(--yellow-9)"}):(0,o.jsx)(Cs,{className:"w-4 h-4"}):Fa(t)?(0,o.jsx)(jn,{className:"w-4 h-4"}):(0,o.jsx)(jn,{className:"w-4 h-4 text-red-500"}),p=()=>{Fa(t)?r():s()};return(0,o.jsx)(Q,{content:(0,o.jsxs)("div",{className:"text-sm whitespace-pre-line",children:[c(),bn(t)&&(0,o.jsx)("div",{className:"mt-2 text-xs text-muted-foreground",children:"Click to refresh health status"})]}),"data-testid":"footer-backend-status",children:(0,o.jsxs)("button",{type:"button",onClick:p,className:"p-1 hover:bg-accent rounded flex items-center gap-1.5 text-xs text-muted-foreground","data-testid":"backend-status",children:[u(),(0,o.jsx)("span",{children:"Kernel"})]})})};var Wg=U();const Ug=t=>{let e=(0,Wg.c)(3),r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,o.jsx)("path",{d:"M205.28 31.36c14.096 14.88 20.016 35.2 22.512 63.68c6.626 0 12.805 1.47 16.976 7.152l7.792 10.56A17.55 17.55 0 0 1 256 123.2v28.688c-.008 3.704-1.843 7.315-4.832 9.504C215.885 187.222 172.35 208 128 208c-49.066 0-98.19-28.273-123.168-46.608c-2.989-2.189-4.825-5.8-4.832-9.504V123.2c0-3.776 1.2-7.424 3.424-10.464l7.792-10.544c4.173-5.657 10.38-7.152 16.992-7.152c2.496-28.48 8.4-48.8 22.512-63.68C77.331 3.165 112.567.06 127.552 0H128c14.72 0 50.4 2.88 77.28 31.36m-77.264 47.376c-3.04 0-6.544.176-10.272.544c-1.312 4.896-3.248 9.312-6.08 12.128c-11.2 11.2-24.704 12.928-31.936 12.928c-6.802 0-13.927-1.42-19.744-5.088c-5.502 1.808-10.786 4.415-11.136 10.912c-.586 12.28-.637 24.55-.688 36.824c-.026 6.16-.05 12.322-.144 18.488c.024 3.579 2.182 6.903 5.44 8.384C79.936 185.92 104.976 192 128.016 192c23.008 0 48.048-6.08 74.512-18.144c3.258-1.48 5.415-4.805 5.44-8.384c.317-18.418.062-36.912-.816-55.312h.016c-.342-6.534-5.648-9.098-11.168-10.912c-5.82 3.652-12.927 5.088-19.728 5.088c-7.232 0-20.72-1.728-31.936-12.928c-2.832-2.816-4.768-7.232-6.08-12.128a106 106 0 0 0-10.24-.544m-26.941 43.93c5.748 0 10.408 4.66 10.408 10.409v19.183c0 5.749-4.66 10.409-10.408 10.409s-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408m53.333 0c5.749 0 10.409 4.66 10.409 10.409v19.183c0 5.749-4.66 10.409-10.409 10.409c-5.748 0-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408M81.44 28.32c-11.2 1.12-20.64 4.8-25.44 9.92c-10.4 11.36-8.16 40.16-2.24 46.24c4.32 4.32 12.48 7.2 21.28 7.2c6.72 0 19.52-1.44 30.08-12.16c4.64-4.48 7.52-15.68 7.2-27.04c-.32-9.12-2.88-16.64-6.72-19.84c-4.16-3.68-13.6-5.28-24.16-4.32m68.96 4.32c-3.84 3.2-6.4 10.72-6.72 19.84c-.32 11.36 2.56 22.56 7.2 27.04c10.56 10.72 23.36 12.16 30.08 12.16c8.8 0 16.96-2.88 21.28-7.2c5.92-6.08 8.16-34.88-2.24-46.24c-4.8-5.12-14.24-8.8-25.44-9.92c-10.56-.96-20 .64-24.16 4.32M128 56c-2.56 0-5.6.16-8.96.48c.32 1.76.48 3.68.64 5.76c0 1.44 0 2.88-.16 4.48c3.2-.32 5.92-.32 8.48-.32s5.28 0 8.48.32c-.16-1.6-.16-3.04-.16-4.48c.16-2.08.32-4 .64-5.76c-3.36-.32-6.4-.48-8.96-.48"}),e[0]=r):r=e[0];let n;return e[1]===t?n=e[2]:(n=(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.24em",height:"1em",viewBox:"0 0 256 208",fill:"currentColor",...t,children:r}),e[1]=t,e[2]=n),n};var qg=U(),Xg=Ea(t=>t(r0).completion.copilot);const Gg=()=>{let t=(0,qg.c)(1);if(J(Xg)==="github"){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(Yg,{}),t[0]=e):e=t[0],e}return null};var Pl=Me.get("[copilot-status-bar]"),Yg=()=>{let t=J(ms),e=J(Zf)!==null,r=J(Gf),{handleClick:n}=Is(),a=()=>n("ai"),i=t?"Ready":"Not connected";r.message?i=r.message:r.busy&&(i="Processing...");let l=xt(ms),s=xt(Yf);us(()=>{let u=Jf(),p=!0;return(async()=>{try{if(await u.initializePromise.catch(m=>{throw Pl.error("Failed to initialize",m),u.close(),m}),!p)return;let d=await u.signedIn();if(!p)return;l(d),s(d?"signedIn":"signedOut")}catch(d){if(!p)return;Pl.warn("Connection failed",d),l(!1),s("connectionError"),kr({title:"GitHub Copilot Connection Error",description:(0,o.jsxs)(o.Fragment,{children:[" ",(0,o.jsx)("div",{children:"Failed to connect to GitHub Copilot. Check settings and try again."}),(0,o.jsx)("br",{}),(0,o.jsx)("div",{className:"text-sm font-mono whitespace-pre-wrap",children:rb(d)})]}),variant:"danger",action:(0,o.jsx)(ae,{variant:"link",onClick:a,children:"Settings"})})}})(),()=>{p=!1}});let c=r.kind==="Warning"||r.kind==="Error"?"text-(--yellow-11)":t?"":"opacity-60";return(0,o.jsx)(mt,{tooltip:(0,o.jsxs)("div",{className:"max-w-[200px]",children:[(0,o.jsx)("b",{children:"GitHub Copilot:"})," ",i,r.kind&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("br",{}),(0,o.jsxs)("span",{className:"pt-1 text-xs",children:["Status: ",r.kind]})]})]}),selected:!1,onClick:a,"data-testid":"footer-copilot-status",children:(0,o.jsx)("span",{children:e||r.busy?(0,o.jsx)(kn,{className:"h-4 w-4"}):(0,o.jsx)(Ug,{className:Z("h-4 w-4",c)})})})},pr=U();const Zg=()=>{let t=(0,pr.c)(18),[e,r]=(0,v.useState)(0),n=J(Qt),{getUsageStats:a}=at(),i,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>r(th),l={delayMs:1e4,whenVisible:!0},t[0]=i,t[1]=l):(i=t[0],l=t[1]),iu(i,l);let s;t[2]!==n.state||t[3]!==a?(s=async()=>yr()||n.state!==hs.OPEN?null:a(),t[2]=n.state,t[3]=a,t[4]=s):s=t[4];let c;t[5]!==n.state||t[6]!==e?(c=[e,n.state],t[5]=n.state,t[6]=e,t[7]=c):c=t[7];let{data:u}=uo(s,c),p;t[8]===u?p=t[9]:(p=(u==null?void 0:u.gpu)&&u.gpu.length>0&&(0,o.jsx)(eh,{gpus:u.gpu}),t[8]=u,t[9]=p);let d;t[10]===u?d=t[11]:(d=u&&(0,o.jsx)(Jg,{memory:u.memory,kernel:u.kernel,server:u.server}),t[10]=u,t[11]=d);let m;t[12]===u?m=t[13]:(m=u&&(0,o.jsx)(Qg,{cpu:u.cpu}),t[12]=u,t[13]=m);let g;return t[14]!==p||t[15]!==d||t[16]!==m?(g=(0,o.jsxs)("div",{className:"flex gap-2 items-center px-1",children:[p,d,m]}),t[14]=p,t[15]=d,t[16]=m,t[17]=g):g=t[17],g};var Jg=t=>{let e=(0,pr.c)(38),{memory:r,kernel:n,server:a}=t,{percent:i,total:l,available:s,has_cgroup_mem_limit:c}=r,u;e[0]===i?u=e[1]:(u=Math.round(i),e[0]=i,e[1]=u);let p=u,d=c?"container memory":"computer memory",m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m={maximumFractionDigits:2},e[2]=m):m=e[2];let g=$n(m),f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f={maximumFractionDigits:0},e[3]=f):f=e[3];let b=$n(f),h;e[4]!==g||e[5]!==b?(h=P=>P>1073741824?`${g.format(P/1073741824)} GB`:`${b.format(P/1048576)} MB`,e[4]=g,e[5]=b,e[6]=h):h=e[6];let y=h,k;e[7]===g?k=e[8]:(k=P=>g.format(P/1073741824),e[7]=g,e[8]=k);let x=k,D;e[9]===d?D=e[10]:(D=(0,o.jsxs)("b",{children:[d,":"]}),e[9]=d,e[10]=D);let j=l-s,w;e[11]!==x||e[12]!==j?(w=x(j),e[11]=x,e[12]=j,e[13]=w):w=e[13];let C;e[14]!==x||e[15]!==l?(C=x(l),e[14]=x,e[15]=l,e[16]=C):C=e[16];let S;e[17]!==p||e[18]!==D||e[19]!==w||e[20]!==C?(S=(0,o.jsxs)("span",{children:[D," ",w," /"," ",C," GB (",p,"%)"]}),e[17]=p,e[18]=D,e[19]=w,e[20]=C,e[21]=S):S=e[21];let _;e[22]!==y||e[23]!==a?(_=(a==null?void 0:a.memory)&&(0,o.jsxs)("span",{children:[(0,o.jsx)("b",{children:"marimo server:"})," ",y(a.memory)]}),e[22]=y,e[23]=a,e[24]=_):_=e[24];let E;e[25]!==y||e[26]!==n?(E=(n==null?void 0:n.memory)&&(0,o.jsxs)("span",{children:[(0,o.jsx)("b",{children:"kernel:"})," ",y(n.memory)]}),e[25]=y,e[26]=n,e[27]=E):E=e[27];let T;e[28]!==S||e[29]!==_||e[30]!==E?(T=(0,o.jsxs)("div",{className:"flex flex-col gap-1",children:[S,_,E]}),e[28]=S,e[29]=_,e[30]=E,e[31]=T):T=e[31];let N;e[32]===Symbol.for("react.memo_cache_sentinel")?(N=(0,o.jsx)(cu,{className:"w-4 h-4"}),e[32]=N):N=e[32];let z;e[33]===p?z=e[34]:(z=(0,o.jsxs)("div",{className:"flex items-center gap-1","data-testid":"memory-usage-bar",children:[N,(0,o.jsx)(xa,{percent:p,colorClassName:"bg-primary"})]}),e[33]=p,e[34]=z);let $;return e[35]!==T||e[36]!==z?($=(0,o.jsx)(Q,{delayDuration:200,content:T,children:z}),e[35]=T,e[36]=z,e[37]=$):$=e[37],$},Qg=t=>{let e=(0,pr.c)(11),{cpu:r}=t,{percent:n}=r,a;e[0]===n?a=e[1]:(a=Math.round(n),e[0]=n,e[1]=a);let i=a,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)("b",{children:"CPU:"}),e[2]=l):l=e[2];let s;e[3]===i?s=e[4]:(s=(0,o.jsxs)("span",{children:[l," ",i,"%"]}),e[3]=i,e[4]=s);let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsx)(Tx,{className:"w-4 h-4"}),e[5]=c):c=e[5];let u;e[6]===i?u=e[7]:(u=(0,o.jsxs)("div",{className:"flex items-center gap-1","data-testid":"cpu-bar",children:[c,(0,o.jsx)(xa,{percent:i,colorClassName:"bg-primary"})]}),e[6]=i,e[7]=u);let p;return e[8]!==s||e[9]!==u?(p=(0,o.jsx)(Q,{delayDuration:200,content:s,children:u}),e[8]=s,e[9]=u,e[10]=p):p=e[10],p},eh=t=>{let e=(0,pr.c)(20),{gpus:r}=t,n;e[0]===r?n=e[1]:(n=Math.round(r.reduce(rh,0)/r.length),e[0]=r,e[1]=n);let a=n,i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={maximumFractionDigits:2},e[2]=i):i=e[2];let l=$n(i),s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={maximumFractionDigits:0},e[3]=s):s=e[3];let c=$n(s),u;e[4]!==l||e[5]!==c?(u=h=>h>1073741824?`${l.format(h/1073741824)} GB`:`${c.format(h/1048576)} MB`,e[4]=l,e[5]=c,e[6]=u):u=e[6];let p=u,d;if(e[7]!==p||e[8]!==r){let h;e[10]===p?h=e[11]:(h=y=>(0,o.jsxs)("span",{children:[(0,o.jsxs)("b",{children:["GPU ",y.index," (",y.name,"):"]})," ",p(y.memory.used)," / ",p(y.memory.total)," (",Math.round(y.memory.percent),"%)"]},y.index),e[10]=p,e[11]=h),d=r.map(h),e[7]=p,e[8]=r,e[9]=d}else d=e[9];let m;e[12]===d?m=e[13]:(m=(0,o.jsx)("div",{className:"flex flex-col gap-1",children:d}),e[12]=d,e[13]=m);let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=(0,o.jsx)(pu,{className:"w-4 h-4"}),e[14]=g):g=e[14];let f;e[15]===a?f=e[16]:(f=(0,o.jsxs)("div",{className:"flex items-center gap-1","data-testid":"gpu-bar",children:[g,(0,o.jsx)(xa,{percent:a,colorClassName:"bg-(--grass-9)"})]}),e[15]=a,e[16]=f);let b;return e[17]!==m||e[18]!==f?(b=(0,o.jsx)(Q,{delayDuration:200,content:m,children:f}),e[17]=m,e[18]=f,e[19]=b):b=e[19],b},xa=t=>{let e=(0,pr.c)(7),{percent:r,colorClassName:n}=t,a;e[0]===n?a=e[1]:(a=Z("h-full bg-primary",n),e[0]=n,e[1]=a);let i=`${r}%`,l;e[2]===i?l=e[3]:(l={width:i},e[2]=i,e[3]=l);let s;return e[4]!==a||e[5]!==l?(s=(0,o.jsx)("div",{className:"h-3 w-20 bg-(--slate-4) rounded-lg overflow-hidden border",children:(0,o.jsx)("div",{className:a,style:l})}),e[4]=a,e[5]=l,e[6]=s):s=e[6],s};function th(t){return t+1}function rh(t,e){return t+e.memory.percent}var nh=U();const ah=()=>{let t=(0,nh.c)(13),e=J(Hx),[r,n]=mr(af),[a,i]=(0,v.useState)(!1);if(!mf()||e==="disabled")return null;let l=e?"Real-time collaboration active":"Connecting to real-time collaboration",s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(bu,{className:"w-4 h-4"}),t[0]=s):s=t[0];let c;t[1]===l?c=t[2]:(c=(0,o.jsx)(Y1,{asChild:!0,children:(0,o.jsx)(mt,{tooltip:l,selected:!1,"data-testid":"footer-rtc-status",children:s})}),t[1]=l,t[2]=c);let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)("h4",{className:"font-medium leading-none",children:"Username"}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground",children:"Set your username for real-time collaboration"})]}),t[3]=u):u=t[3];let p;t[4]===n?p=t[5]:(p=g=>n(g.target.value),t[4]=n,t[5]=p);let d;t[6]!==p||t[7]!==r?(d=(0,o.jsx)(Z1,{className:"w-80",children:(0,o.jsxs)("div",{className:"space-y-4",children:[u,(0,o.jsx)(ao,{value:r,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",onChange:p,placeholder:"Enter your username"})]})}),t[6]=p,t[7]=r,t[8]=d):d=t[8];let m;return t[9]!==a||t[10]!==c||t[11]!==d?(m=(0,o.jsxs)(J1,{open:a,onOpenChange:i,children:[c,d]}),t[9]=a,t[10]=c,t[11]=d,t[12]=m):m=t[12],m};var oh=U();const ih=t=>{let e=(0,oh.c)(60),{saveUserConfig:r}=at(),[n,a]=Oa(),i;e[0]!==r||e[1]!==a?(i=async M=>{await r({config:{runtime:{auto_instantiate:M}}}).then(()=>{a(H=>({...H,runtime:{...H.runtime,auto_instantiate:M}}))})},e[0]=r,e[1]=a,e[2]=i):i=e[2];let l=i,s;e[3]!==r||e[4]!==a?(s=async M=>{let H=M?"autorun":"lazy";await r({config:{runtime:{on_cell_change:H}}}).then(()=>{a(O=>({...O,runtime:{...O.runtime,on_cell_change:H}}))})},e[3]=r,e[4]=a,e[5]=s):s=e[5];let c=s,u;e[6]!==r||e[7]!==a?(u=async M=>{await r({config:{runtime:{auto_reload:M}}}).then(()=>{a(H=>({...H,runtime:{...H.runtime,auto_reload:M}}))})},e[6]=r,e[7]=a,e[8]=u):u=e[8];let p=u,d;e[9]!==n.runtime.auto_instantiate||e[10]!==n.runtime.auto_reload||e[11]!==n.runtime.on_cell_change?(d=!n.runtime.auto_instantiate&&n.runtime.on_cell_change==="lazy"&&(yr()||n.runtime.auto_reload!=="autorun"),e[9]=n.runtime.auto_instantiate,e[10]=n.runtime.auto_reload,e[11]=n.runtime.on_cell_change,e[12]=d):d=e[12];let m=d,g;e[13]===m?g=e[14]:(g=m?(0,o.jsx)(tr,{size:16,className:"text-muted-foreground"}):(0,o.jsx)(rr,{size:16,className:"text-amber-500"}),e[13]=m,e[14]=g);let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=(0,o.jsx)(er,{size:14}),e[15]=f):f=e[15];let b;e[16]===g?b=e[17]:(b=(0,o.jsx)(Dt,{asChild:!0,children:(0,o.jsx)(mt,{tooltip:"Runtime reactivity",selected:!1,"data-testid":"footer-runtime-settings",children:(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[g,f]})})}),e[16]=g,e[17]=b);let h;e[18]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)("span",{children:"Runtime reactivity"}),e[18]=h):h=e[18];let y,k;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=(0,o.jsx)(fx,{children:(0,o.jsxs)("div",{className:"flex items-center justify-between w-full",children:[h,(0,o.jsx)(Qs,{href:"https://links.marimo.app/runtime-configuration",children:(0,o.jsxs)("span",{className:"text-xs font-normal flex items-center gap-1",children:["Docs",(0,o.jsx)(Y0,{className:"w-3 h-3"})]})})]})}),y=(0,o.jsx)(vt,{}),e[19]=y,e[20]=k):(y=e[19],k=e[20]);let x;e[21]===n.runtime.auto_instantiate?x=e[22]:(x=n.runtime.auto_instantiate?(0,o.jsx)(rr,{size:14,className:"text-amber-500"}):(0,o.jsx)(tr,{size:14,className:"text-muted-foreground"}),e[21]=n.runtime.auto_instantiate,e[22]=x);let D;e[23]===Symbol.for("react.memo_cache_sentinel")?(D=(0,o.jsxs)("div",{className:"text-sm font-medium flex items-center gap-1",children:["On startup",(0,o.jsx)(Q,{content:(0,o.jsx)("div",{className:"max-w-[200px]",children:"Whether to automatically run the notebook on startup"}),children:(0,o.jsx)(Ca,{className:"w-3 h-3"})})]}),e[23]=D):D=e[23];let j=n.runtime.auto_instantiate?"autorun":"lazy",w;e[24]===j?w=e[25]:(w=(0,o.jsxs)("div",{children:[D,(0,o.jsx)("div",{className:"text-xs text-muted-foreground",children:j})]}),e[24]=j,e[25]=w);let C;e[26]!==x||e[27]!==w?(C=(0,o.jsxs)("div",{className:"flex items-center space-x-2",children:[x,w]}),e[26]=x,e[27]=w,e[28]=C):C=e[28];let S;e[29]!==n.runtime.auto_instantiate||e[30]!==l?(S=(0,o.jsx)(ys,{checked:n.runtime.auto_instantiate,onCheckedChange:l,size:"sm"}),e[29]=n.runtime.auto_instantiate,e[30]=l,e[31]=S):S=e[31];let _;e[32]!==C||e[33]!==S?(_=(0,o.jsx)(Za,{name:"runtime.auto_instantiate",children:(0,o.jsxs)("div",{className:"flex items-center justify-between px-2 py-2",children:[C,S]})}),e[32]=C,e[33]=S,e[34]=_):_=e[34];let E;e[35]===Symbol.for("react.memo_cache_sentinel")?(E=(0,o.jsx)(vt,{}),e[35]=E):E=e[35];let T;e[36]===n.runtime.on_cell_change?T=e[37]:(T=n.runtime.on_cell_change==="autorun"?(0,o.jsx)(rr,{size:14,className:"text-amber-500"}):(0,o.jsx)(tr,{size:14,className:"text-muted-foreground"}),e[36]=n.runtime.on_cell_change,e[37]=T);let N;e[38]===Symbol.for("react.memo_cache_sentinel")?(N=(0,o.jsxs)("div",{className:"text-sm font-medium flex items-center gap-1",children:["On cell change",(0,o.jsx)(Q,{content:(0,o.jsx)("div",{className:"max-w-[300px]",children:"Whether to automatically run dependent cells after running a cell"}),children:(0,o.jsx)(Ca,{className:"w-3 h-3"})})]}),e[38]=N):N=e[38];let z;e[39]===n.runtime.on_cell_change?z=e[40]:(z=(0,o.jsxs)("div",{children:[N,(0,o.jsx)("div",{className:"text-xs text-muted-foreground",children:n.runtime.on_cell_change})]}),e[39]=n.runtime.on_cell_change,e[40]=z);let $;e[41]!==T||e[42]!==z?($=(0,o.jsxs)("div",{className:"flex items-center space-x-2",children:[T,z]}),e[41]=T,e[42]=z,e[43]=$):$=e[43];let P=n.runtime.on_cell_change==="autorun",I;e[44]!==c||e[45]!==P?(I=(0,o.jsx)(ys,{checked:P,onCheckedChange:c,size:"sm"}),e[44]=c,e[45]=P,e[46]=I):I=e[46];let A;e[47]!==$||e[48]!==I?(A=(0,o.jsx)(Za,{name:"runtime.on_cell_change",children:(0,o.jsxs)("div",{className:"flex items-center justify-between px-2 py-2",children:[$,I]})}),e[47]=$,e[48]=I,e[49]=A):A=e[49];let B;e[50]!==n.runtime.auto_reload||e[51]!==p?(B=!yr()&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(vt,{}),(0,o.jsx)(Za,{name:"runtime.auto_reload",children:(0,o.jsxs)("div",{className:"px-2 py-1",children:[(0,o.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[n.runtime.auto_reload==="off"&&(0,o.jsx)(jn,{size:14,className:"text-muted-foreground"}),n.runtime.auto_reload==="lazy"&&(0,o.jsx)(tr,{size:14,className:"text-muted-foreground"}),n.runtime.auto_reload==="autorun"&&(0,o.jsx)(rr,{size:14,className:"text-amber-500"}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"text-sm font-medium flex items-center gap-1",children:["On module change",(0,o.jsx)(Q,{content:(0,o.jsx)("div",{className:"max-w-[300px]",children:"Whether to run affected cells, mark them as stale, or do nothing when an external module is updated"}),children:(0,o.jsx)(Ca,{className:"w-3 h-3"})})]}),(0,o.jsx)("div",{className:"text-xs text-muted-foreground",children:n.runtime.auto_reload})]})]}),(0,o.jsx)("div",{className:"space-y-1",children:["off","lazy","autorun"].map(M=>(0,o.jsxs)("button",{onClick:()=>p(M),className:Z("w-full flex items-center px-2 py-1 text-sm rounded hover:bg-accent",M===n.runtime.auto_reload&&"bg-accent"),children:[M==="off"&&(0,o.jsx)(jn,{size:12,className:"mr-2"}),M==="lazy"&&(0,o.jsx)(tr,{size:12,className:"mr-2"}),M==="autorun"&&(0,o.jsx)(rr,{size:12,className:"mr-2"}),(0,o.jsx)("span",{className:"capitalize",children:M}),M===n.runtime.auto_reload&&(0,o.jsx)("span",{className:"ml-auto",children:"\u2713"})]},M))})]})})]}),e[50]=n.runtime.auto_reload,e[51]=p,e[52]=B):B=e[52];let R;e[53]!==_||e[54]!==A||e[55]!==B?(R=(0,o.jsxs)(kt,{align:"start",className:"w-64",children:[k,y,(0,o.jsxs)(oo,{children:[_,E,A,B]})]}),e[53]=_,e[54]=A,e[55]=B,e[56]=R):R=e[56];let K;return e[57]!==R||e[58]!==b?(K=(0,o.jsxs)(jt,{children:[b,R]}),e[57]=R,e[58]=b,e[59]=K):K=e[59],K};var Kl=U();const lh=()=>{let t=(0,Kl.c)(30),{isDeveloperPanelOpen:e}=za(),{toggleDeveloperPanel:r,toggleApplication:n}=sn(),a=B0(),i=J(Na),l=J(Al),s=(J(Ia).sidebar.includes("errors")?0:i)+(l==="unhealthy"||l==="disconnected"?1:0),c;t[0]===n?c=t[1]:(c=()=>{n("terminal")},t[0]=n,t[1]=c),Ee("global.toggleTerminal",c);let u;t[2]===r?u=t[3]:(u=()=>{r()},t[2]=r,t[3]=u),Ee("global.togglePanel",u);let p;t[4]!==a||t[5]!==n?(p=()=>{n("dependencies"),a("minimap")},t[4]=a,t[5]=n,t[6]=p):p=t[6],Ee("global.toggleMinimap",p);let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,o.jsxs)("span",{className:"flex items-center gap-2",children:["Toggle developer panel ",Ze("global.togglePanel",!1)]}),t[7]=d):d=t[7];let m;t[8]===r?m=t[9]:(m=()=>r(),t[8]=r,t[9]=m);let g=`w-4 h-4 ${s>0?"text-destructive":""}`,f;t[10]===g?f=t[11]:(f=(0,o.jsx)(Gl,{className:g}),t[10]=g,t[11]=f);let b;t[12]===s?b=t[13]:(b=(0,o.jsx)("span",{children:s}),t[12]=s,t[13]=b);let h,y;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=(0,o.jsx)(Tn,{className:"w-4 h-4 ml-1 "}),y=(0,o.jsx)("span",{children:0}),t[14]=h,t[15]=y):(h=t[14],y=t[15]);let k;t[16]!==f||t[17]!==b?(k=(0,o.jsxs)("div",{className:"flex items-center gap-1 h-full",children:[f,b,h,y]}),t[16]=f,t[17]=b,t[18]=k):k=t[18];let x;t[19]!==e||t[20]!==k||t[21]!==m?(x=(0,o.jsx)(mt,{className:"h-full",tooltip:d,selected:e,onClick:m,"data-testid":"footer-panel",children:k}),t[19]=e,t[20]=k,t[21]=m,t[22]=x):x=t[22];let D,j,w;t[23]===Symbol.for("react.memo_cache_sentinel")?(D=(0,o.jsx)(ih,{}),j=(0,o.jsx)("div",{className:"mx-auto"}),w=(0,o.jsx)(sh,{}),t[23]=D,t[24]=j,t[25]=w):(D=t[23],j=t[24],w=t[25]);let C;t[26]===Symbol.for("react.memo_cache_sentinel")?(C=(0,o.jsx)(Db,{children:(0,o.jsx)(Q,{content:(0,o.jsx)("div",{className:"w-[200px]",children:"Kiosk mode is enabled. This allows you to view the outputs of the cells without the ability to edit them."}),children:(0,o.jsx)("span",{className:"text-muted-foreground text-sm mr-4",children:"kiosk mode"})})}),t[26]=C):C=t[26];let S;t[27]===Symbol.for("react.memo_cache_sentinel")?(S=(0,o.jsxs)("div",{className:"flex items-center shrink-0 min-w-0",children:[(0,o.jsx)(Zg,{}),(0,o.jsx)(Lg,{}),(0,o.jsx)(Gg,{}),(0,o.jsx)(ah,{})]}),t[27]=S):S=t[27];let _;return t[28]===x?_=t[29]:(_=(0,o.jsxs)("footer",{className:"h-10 py-1 gap-1 bg-background flex items-center text-muted-foreground text-md pl-2 pr-1 border-t border-border select-none no-print text-sm z-50 print:hidden hide-on-fullscreen overflow-x-auto overflow-y-hidden scrollbar-thin",children:[x,D,j,w,C,S]}),t[28]=x,t[29]=_),_};var sh=()=>{let t=(0,Kl.c)(1);if(!J(xs))return null;let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(Bl,{}),t[0]=e):e=t[0],e},uh=U();function ch(t){return`application/x-reorderable-${t}`}function dh(t){try{return JSON.parse(t)}catch{return null}}const Ol=t=>{let e=(0,uh.c)(75),{value:r,setValue:n,getKey:a,renderItem:i,onAction:l,availableItems:s,getItemLabel:c,minItems:u,ariaLabel:p,className:d,crossListDrag:m}=t,g=u===void 0?1:u,f=p===void 0?"Reorderable list":p,b;e[0]===m?b=e[1]:(b=m?ch(m.dragType):null,e[0]=m,e[1]=b);let h=b,y=m==null?void 0:m.onReceive,k;e[2]!==m||e[3]!==a||e[4]!==h||e[5]!==y||e[6]!==n||e[7]!==r?(k=async(O,F)=>{if(!(!h||!(m!=null&&m.listId)||!y))for(let L of O){if(L.kind!=="text"||!L.types.has(h))continue;let V=dh(await L.getText(h));V&&V.sourceListId!==m.listId&&(r.some(q=>a(q)===a(V.item))||(n([...r.slice(0,F),V.item,...r.slice(F)]),y(V.item,V.sourceListId,F)))}},e[2]=m,e[3]=a,e[4]=h,e[5]=y,e[6]=n,e[7]=r,e[8]=k):k=e[8];let x=k,D;e[9]!==m||e[10]!==a||e[11]!==h||e[12]!==r?(D=O=>[...O].map(F=>{let L=r.find(q=>a(q)===F),V={"text/plain":String(F)};if(h&&(m!=null&&m.listId)&&L){let q={itemId:String(F),sourceListId:m.listId,item:L};V[h]=JSON.stringify(q)}return V}),e[9]=m,e[10]=a,e[11]=h,e[12]=r,e[13]=D):D=e[13];let j;e[14]===h?j=e[15]:(j=h?[h,"text/plain"]:["text/plain"],e[14]=h,e[15]=j);let w;e[16]!==a||e[17]!==x||e[18]!==n||e[19]!==D||e[20]!==j||e[21]!==r?(w={getItems:D,acceptedDragTypes:j,onReorder(O){let F=new Set(O.keys),L=r.filter(X=>F.has(a(X))),V=r.filter(X=>!F.has(a(X))),q=V.findIndex(X=>a(X)===O.target.key),W=O.target.dropPosition==="before"?q:q+1;n([...V.slice(0,W),...L,...V.slice(W)])},async onInsert(O){let F=r.findIndex(V=>a(V)===O.target.key),L=O.target.dropPosition==="before"?F:F+1;await x(O.items,L)},async onRootDrop(O){await x(O.items,r.length)}},e[16]=a,e[17]=x,e[18]=n,e[19]=D,e[20]=j,e[21]=r,e[22]=w):w=e[22];let{dragAndDropHooks:C}=Sc(w),S;if(e[23]!==a||e[24]!==r){let O;e[26]===a?O=e[27]:(O=F=>a(F),e[26]=a,e[27]=O),S=new Set(r.map(O)),e[23]=a,e[24]=r,e[25]=S}else S=e[25];let _=S,E;e[28]!==a||e[29]!==g||e[30]!==n||e[31]!==r?(E=(O,F)=>{F?n([...r,O]):r.length>g&&n(r.filter(L=>a(L)!==a(O)))},e[28]=a,e[29]=g,e[30]=n,e[31]=r,e[32]=E):E=e[32];let T=E,N;e[33]!==a||e[34]!==l||e[35]!==r?(N=O=>{if(!l)return;let F=r.find(L=>a(L)===O);if(!F){Me.warn("handleAction: item not found for key",{key:O,availableKeys:r.map(L=>a(L))});return}l(F)},e[33]=a,e[34]=l,e[35]=r,e[36]=N):N=e[36];let z=N,$=r.length===0,P;if(e[37]!==a||e[38]!==i||e[39]!==r){let O;e[41]!==a||e[42]!==i?(O=F=>(0,o.jsx)(hi,{id:a(F),className:"active:cursor-grabbing data-[dragging]:opacity-60 outline-none",children:i(F)},a(F)),e[41]=a,e[42]=i,e[43]=O):O=e[43],P=r.map(O),e[37]=a,e[38]=i,e[39]=r,e[40]=P}else P=e[40];let I;e[44]===$?I=e[45]:(I=$&&(0,o.jsx)(hi,{id:"__empty__",className:"min-h-[40px] min-w-[40px]",children:(0,o.jsx)("span",{})}),e[44]=$,e[45]=I);let A;e[46]!==f||e[47]!==d||e[48]!==C||e[49]!==z||e[50]!==P||e[51]!==I?(A=(0,o.jsxs)(yc,{"aria-label":f,selectionMode:"none",dragAndDropHooks:C,className:d,onAction:z,children:[P,I]}),e[46]=f,e[47]=d,e[48]=C,e[49]=z,e[50]=P,e[51]=I,e[52]=A):A=e[52];let B=A;if(!s)return B;let R;e[53]===B?R=e[54]:(R=(0,o.jsx)(Ds,{asChild:!0,children:B}),e[53]=B,e[54]=R);let K;if(e[55]!==s||e[56]!==_||e[57]!==c||e[58]!==a||e[59]!==T||e[60]!==g||e[61]!==r.length){let O;e[63]!==_||e[64]!==c||e[65]!==a||e[66]!==T||e[67]!==g||e[68]!==r.length?(O=F=>{let L=a(F),V=_.has(L);return(0,o.jsx)(j0,{checked:V,disabled:V&&r.length<=g,onCheckedChange:q=>{T(F,q)},children:c?c(F):L},L)},e[63]=_,e[64]=c,e[65]=a,e[66]=T,e[67]=g,e[68]=r.length,e[69]=O):O=e[69],K=s.map(O),e[55]=s,e[56]=_,e[57]=c,e[58]=a,e[59]=T,e[60]=g,e[61]=r.length,e[62]=K}else K=e[62];let M;e[70]===K?M=e[71]:(M=(0,o.jsx)(js,{children:K}),e[70]=K,e[71]=M);let H;return e[72]!==R||e[73]!==M?(H=(0,o.jsxs)(ks,{children:[R,M]}),e[72]=R,e[73]=M,e[74]=H):H=e[74],H};var Rl=U();const ph=t=>{let e=(0,Rl.c)(6),{children:r}=t,{openModal:n,closeModal:a}=tb(),i;e[0]!==a||e[1]!==n?(i=()=>n((0,o.jsx)(mh,{onClose:a})),e[0]=a,e[1]=n,e[2]=i):i=e[2];let l;return e[3]!==r||e[4]!==i?(l=(0,o.jsx)(f0,{onClick:i,children:r}),e[3]=r,e[4]=i,e[5]=l):l=e[5],l};var mh=t=>{let e=(0,Rl.c)(9),{onClose:r}=t,n;e[0]===r?n=e[1]:(n=async p=>{p.preventDefault();let d=new FormData(p.target),m=d.get("rating"),g=d.get("message");fetch("https://marimo.io/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({rating:m,message:g})}),r(),kr({title:"Feedback sent!",description:"Thank you for your feedback!"})},e[0]=r,e[1]=n);let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(K1,{children:"Send Feedback"}),e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)("p",{className:"my-2 prose dark:prose-invert",children:"We want to hear from you \u2014 from minor bug reports to wishlist features and everything in between. Here are some ways you can get in touch:"}),e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsxs)("li",{className:"my-0",children:["Take our"," ",(0,o.jsx)("a",{href:Ra.feedbackForm,target:"_blank",className:"underline",children:"two-minute survey."})]}),e[4]=l):l=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsxs)("li",{className:"my-0",children:["File a"," ",(0,o.jsx)("a",{href:Ra.issuesPage,target:"_blank",className:"underline",children:"GitHub issue."})]}),e[5]=s):s=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,o.jsxs)(P1,{children:[a,(0,o.jsxs)(R1,{children:[i,(0,o.jsxs)("ul",{className:"list-disc ml-8 my-2 prose dark:prose-invert",children:[l,s,(0,o.jsxs)("li",{className:"my-0",children:["Chat with us on"," ",(0,o.jsx)("a",{href:Ra.discordLink,target:"_blank",className:"underline",children:"Discord."})]})]}),(0,o.jsx)("p",{className:"my-2 prose dark:prose-invert",children:"We're excited you're here as we build the future of Python data tooling. Thanks for being part of our community!"})]})]}),e[6]=c):c=e[6];let u;return e[7]===n?u=e[8]:(u=(0,o.jsx)(O1,{className:"w-fit",children:(0,o.jsx)("form",{onSubmit:n,children:c})}),e[7]=n,e[8]=u),u},Hr=U();const gh=()=>{let t=(0,Hr.c)(44),{selectedPanel:e,selectedDeveloperPanelTab:r,isSidebarOpen:n}=za(),{toggleApplication:a,openApplication:i,setIsSidebarOpen:l}=sn(),[s,c]=mr(Ia),u=J(ns),p=xh,d;t[0]===s.developerPanel?d=t[1]:(d=new Set(s.developerPanel),t[0]=s.developerPanel,t[1]=d);let m=d,g;t[2]!==u||t[3]!==m?(g=Jl.filter(I=>!(cn(I,u)||m.has(I.type))),t[2]=u,t[3]=m,t[4]=g):g=t[4];let f=g,b;if(t[5]!==u||t[6]!==s.sidebar){let I;t[8]===u?I=t[9]:(I=A=>{let B=ts.get(A);return!B||cn(B,u)?[]:[B]},t[8]=u,t[9]=I),b=s.sidebar.flatMap(I),t[5]=u,t[6]=s.sidebar,t[7]=b}else b=t[7];let h=b,y;t[10]===c?y=t[11]:(y=I=>{c(A=>({...A,sidebar:I.map(bh)}))},t[10]=c,t[11]=y);let k=y,x;t[12]!==i||t[13]!==s.developerPanel||t[14]!==r||t[15]!==c||t[16]!==a?(x=(I,A)=>{if(A==="developer-panel"&&(c(B=>({...B,developerPanel:B.developerPanel.filter(R=>R!==I.type)})),r===I.type)){let B=s.developerPanel.filter(R=>R!==I.type);B.length>0&&i(B[0])}a(I.type)},t[12]=i,t[13]=s.developerPanel,t[14]=r,t[15]=c,t[16]=a,t[17]=x):x=t[17];let D=x,j,w;t[18]!==n||t[19]!==i||t[20]!==e||t[21]!==l||t[22]!==h?(j=()=>{n&&(h.some(I=>I.type===e)||(h.length>0?i(h[0].type):l(!1)))},w=[n,h,e,i,l],t[18]=n,t[19]=i,t[20]=e,t[21]=l,t[22]=h,t[23]=j,t[24]=w):(j=t[23],w=t[24]),(0,v.useEffect)(j,w);let C;t[25]===D?C=t[26]:(C={dragType:"panels",listId:"sidebar",onReceive:D},t[25]=D,t[26]=C);let S;t[27]===Symbol.for("react.memo_cache_sentinel")?(S=I=>(0,o.jsxs)("span",{className:"flex items-center gap-2",children:[p(I,"h-4 w-4 text-muted-foreground"),I.label]}),t[27]=S):S=t[27];let _;t[28]===a?_=t[29]:(_=I=>a(I.type),t[28]=a,t[29]=_);let E;t[30]===e?E=t[31]:(E=I=>(0,o.jsx)(Ml,{tooltip:I.tooltip,selected:e===I.type,children:I.type==="errors"?(0,o.jsx)(hh,{Icon:I.Icon}):p(I)}),t[30]=e,t[31]=E);let T;t[32]!==f||t[33]!==k||t[34]!==h||t[35]!==E||t[36]!==C||t[37]!==_?(T=(0,o.jsx)(Ol,{value:h,setValue:k,getKey:yh,availableItems:f,crossListDrag:C,getItemLabel:S,ariaLabel:"Sidebar panels",className:"flex flex-col gap-0",minItems:0,onAction:_,renderItem:E}),t[32]=f,t[33]=k,t[34]=h,t[35]=E,t[36]=C,t[37]=_,t[38]=T):T=t[38];let N,z,$;t[39]===Symbol.for("react.memo_cache_sentinel")?(N=(0,o.jsx)(ph,{children:(0,o.jsx)(Ml,{tooltip:"Send feedback!",selected:!1,children:(0,o.jsx)(du,{className:"h-5 w-5"})})}),z=(0,o.jsx)("div",{className:"flex-1"}),$=(0,o.jsx)(fh,{}),t[39]=N,t[40]=z,t[41]=$):(N=t[39],z=t[40],$=t[41]);let P;return t[42]===T?P=t[43]:(P=(0,o.jsxs)("div",{className:"h-full pt-4 pb-1 px-1 flex flex-col items-start text-muted-foreground text-md select-none no-print text-sm z-50 dark:bg-background print:hidden hide-on-fullscreen",children:[T,N,z,$]}),t[42]=T,t[43]=P),P};var hh=t=>{let e=(0,Hr.c)(5),{Icon:r}=t,n=J(Na)>0&&"text-destructive",a;e[0]===n?a=e[1]:(a=Z("h-5 w-5",n),e[0]=n,e[1]=a);let i;return e[2]!==r||e[3]!==a?(i=(0,o.jsx)(r,{className:a}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i},fh=()=>{let t=(0,Hr.c)(7),e=J(hf),r;t[0]===e?r=t[1]:(r=e>0?(0,o.jsxs)("span",{children:[e," cell",e>1?"s":""," queued or running"]}):"No cells queued or running",t[0]=e,t[1]=r);let n;t[2]===e?n=t[3]:(n=(0,o.jsx)("div",{className:"flex flex-col-reverse gap-px overflow-hidden",children:Array.from({length:e}).map(vh)}),t[2]=e,t[3]=n);let a;return t[4]!==r||t[5]!==n?(a=(0,o.jsx)(Q,{content:r,side:"right",delayDuration:200,children:n}),t[4]=r,t[5]=n,t[6]=a):a=t[6],a},Ml=t=>{let e=(0,Hr.c)(11),{children:r,tooltip:n,selected:a,className:i,onClick:l}=t,s=!a&&"hover:bg-(--sage-3)",c=a&&"bg-(--sage-4)",u;e[0]!==i||e[1]!==s||e[2]!==c?(u=Z("flex items-center p-2 text-sm mx-px shadow-inset font-mono rounded",s,c,i),e[0]=i,e[1]=s,e[2]=c,e[3]=u):u=e[3];let p=u,d;e[4]!==r||e[5]!==p||e[6]!==l?(d=l?(0,o.jsx)("button",{className:p,onClick:l,children:r}):(0,o.jsx)("div",{className:p,children:r}),e[4]=r,e[5]=p,e[6]=l,e[7]=d):d=e[7];let m=d,g;return e[8]!==m||e[9]!==n?(g=(0,o.jsx)(Q,{content:n,side:"right",delayDuration:200,children:m}),e[8]=m,e[9]=n,e[10]=g):g=e[10],g};function xh(t,e){let{Icon:r}=t;return(0,o.jsx)(r,{className:Z("h-5 w-5",e)})}function bh(t){return t.type}function yh(t){return t.type}function vh(t,e){return(0,o.jsx)("div",{className:"shrink-0 h-1 w-2 bg-(--grass-6) border border-(--grass-7)"},e.toString())}var Dh=U();const Fl=t=>{let e=(0,Dh.c)(2),[r,n]=v.useState(!1);if(t.mode==="visible"&&!r&&n(!0),r){let a;return e[0]===t?a=e[1]:(a=(0,o.jsx)(v.Activity,{...t}),e[0]=t,e[1]=a),a}return null};var kh=U();const jh=()=>{let t=(0,kh.c)(46),[e,r]=(0,v.useState)(null),n=J(Ua),a;t[0]===n?a=t[1]:(a=[...n.keys()],t[0]=n,t[1]=a);let i=a,{deleteStagedCell:l,removeStagedCell:s}=Es(ql()),c=Js();if(n.size===0)return null;let u=wh,p;t[2]!==e||t[3]!==i?(p=B=>{let R=C0(e,i.length,B);r(R),u(i[R])},t[2]=e,t[3]=i,t[4]=p):p=t[4];let d=p,m;t[5]!==l||t[6]!==s||t[7]!==n?(m=()=>{for(let[B,R]of n)pl(B,R,s,l)},t[5]=l,t[6]=s,t[7]=n,t[8]=m):m=t[8];let g=m,f;t[9]!==l||t[10]!==s||t[11]!==n?(f=()=>{for(let[B,R]of n)ml(B,R,s,l)},t[9]=l,t[10]=s,t[11]=n,t[12]=f):f=t[12];let b=f,h;t[13]!==i||t[14]!==c?(h=()=>{c(i)},t[13]=i,t[14]=c,t[15]=h):h=t[15];let y=h,k,x;t[16]===Symbol.for("react.memo_cache_sentinel")?(k=Z("fixed bottom-16 left-1/2 transform -translate-x-1/2 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/80 border border-border rounded-lg px-3 py-2 flex items-center justify-between gap-2.5 w-100","shadow-[0_0_6px_0_#00A2C733]"),x=(0,o.jsx)(Sn,{className:"h-4 w-4 text-primary"}),t[16]=k,t[17]=x):(k=t[16],x=t[17]);let D;t[18]===d?D=t[19]:(D=()=>d("up"),t[18]=d,t[19]=D);let j;t[20]===Symbol.for("react.memo_cache_sentinel")?(j=(0,o.jsx)(qa,{className:"h-3.5 w-3.5"}),t[20]=j):j=t[20];let w;t[21]===D?w=t[22]:(w=(0,o.jsx)(ae,{variant:"ghost",size:"icon",onClick:D,children:j}),t[21]=D,t[22]=w);let C=e===null?`${i.length} pending`:`${e+1} / ${i.length}`,S;t[23]===C?S=t[24]:(S=(0,o.jsx)("span",{className:"text-xs font-mono min-w-[3.5rem] text-center",children:C}),t[23]=C,t[24]=S);let _;t[25]===d?_=t[26]:(_=()=>d("down"),t[25]=d,t[26]=_);let E;t[27]===Symbol.for("react.memo_cache_sentinel")?(E=(0,o.jsx)(er,{className:"h-3.5 w-3.5"}),t[27]=E):E=t[27];let T;t[28]===_?T=t[29]:(T=(0,o.jsx)(ae,{variant:"ghost",size:"icon",onClick:_,children:E}),t[28]=_,t[29]=T);let N;t[30]!==S||t[31]!==T||t[32]!==w?(N=(0,o.jsxs)("div",{className:"flex items-center",children:[w,S,T]}),t[30]=S,t[31]=T,t[32]=w,t[33]=N):N=t[33];let z;t[34]===Symbol.for("react.memo_cache_sentinel")?(z=(0,o.jsx)("div",{className:"h-5 w-px bg-border"}),t[34]=z):z=t[34];let $;t[35]!==g||t[36]!==y?($=(0,o.jsx)(M0,{multipleCompletions:!0,onAccept:g,isLoading:!1,size:"xs",buttonStyles:"h-6.5",playButtonStyles:"h-6.5",runCell:y}),t[35]=g,t[36]=y,t[37]=$):$=t[37];let P;t[38]===b?P=t[39]:(P=(0,o.jsx)(O0,{multipleCompletions:!0,onDecline:b,size:"xs",className:"h-6.5"}),t[38]=b,t[39]=P);let I;t[40]!==$||t[41]!==P?(I=(0,o.jsxs)("div",{className:"flex items-center gap-1.5",children:[$,P]}),t[40]=$,t[41]=P,t[42]=I):I=t[42];let A;return t[43]!==N||t[44]!==I?(A=(0,o.jsxs)("div",{className:k,children:[x,N,z,I]}),t[43]=N,t[44]=I,t[45]=A):A=t[45],A};function wh(t){ub(t,"focus")}var Eh=U(),Ch=yf("marimo:chrome:ai-panel-tab","chat",Df);function Sh(){let t=(0,Eh.c)(3),[e,r]=mr(Ch),n;return t[0]!==e||t[1]!==r?(n={aiPanelTab:e,setAiPanelTab:r},t[0]=e,t[1]=r,t[2]=n):n=t[2],n}var Th=U(),Vl=v.lazy(()=>Te(()=>import("./terminal-CZ_e8rW4.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43]),import.meta.url)),_h=v.lazy(()=>Te(()=>import("./chat-panel-Chm2DqS8.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([44,45,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,80,2,16,81,82,83,1,17,84,85,86,87,88,89,35,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,39,106,107,108,109,41,110,111,112,42,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147]),import.meta.url)),Ih=v.lazy(()=>Te(()=>import("./agent-panel-DNF472QI.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([148,45,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,80,2,16,81,149,150,151,152,153,154,155,156,157,17,133,134,86,85,90,35,91,92,93,94,95,84,96,127,136,142,39,41,83,119,120,121,122,123,124,125,126,158,89,97,159,132,103,160,99,100,104,161,105,102,162,143,144,145,163,164,139,165,166,167,168,169,115,116,117,129,130,1,131,135,137,138,140,141,29,170,109,171,110,112,172,147,173]),import.meta.url)),Nh=v.lazy(()=>Te(()=>import("./dependency-graph-panel-DI2T4e0o.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([174,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,175,90,35,91,92,93,94,95,138,139,140,176,177,178,130,1,2,16,17,131,132,179,180,181,134,86,85,88,89,136,120,103,39,163,97,102,182,183,184,117,185,42,158,121,186,133,187,188,189,146,190,191,192]),import.meta.url)),zh=v.lazy(()=>Te(()=>import("./session-panel-DVgM22Up.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([193,149,47,150,20,151,152,153,154,24,46,48,11,12,5,6,7,9,49,4,3,8,50,10,13,14,15,18,51,19,21,22,23,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,155,156,157,17,133,134,86,85,90,35,91,92,93,94,95,80,84,2,16,96,127,136,142,39,41,83,119,120,121,122,123,124,125,126,158,89,97,159,132,103,160,99,100,104,161,105,102,162,143,144,145,163,164,139,165,166,167,81,168,169,194,131,195,141,196,197,198,88,199,87,200,111,201,42,202,203,107,108,204,182,186,205,206,207,112,191]),import.meta.url)),$h=v.lazy(()=>Te(()=>import("./documentation-panel-BxwnSjGK.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([208,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,141,159,132,142,39,41,103,95,94,160]),import.meta.url)),Ah=v.lazy(()=>Te(()=>import("./error-panel-BCy5nltz.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([209,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,141,156,157,17,133,134,86,85,90,35,91,92,93,94,95,80,84,2,16,96,127,136]),import.meta.url)),Bh=v.lazy(()=>Te(()=>import("./file-explorer-panel-riLtoV84.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([210,211,149,47,150,20,151,152,153,154,24,46,48,11,12,5,6,7,9,49,4,3,8,50,10,13,14,15,18,51,19,21,22,23,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,155,156,157,17,133,134,86,85,90,35,91,92,93,94,95,80,84,2,16,96,127,136,142,39,41,83,119,120,121,122,123,124,125,126,158,89,97,159,132,103,160,99,100,104,161,105,102,162,143,144,145,163,164,139,165,166,167,81,168,169,212,171,116,213,214,1,137,215,216,217,218,219,220,189,184,221,201,112,222,42,113,223]),import.meta.url)),Ph=v.lazy(()=>Te(()=>import("./logs-panel-C4-6DwM7.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([224,225,11,12,5,6,7,9,46,47,48,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,141,133,134,86,85,90,35,91,92,93,94,95]),import.meta.url)),Kh=v.lazy(()=>Te(()=>import("./outline-panel-Hazc5lot.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([226,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,141,227,103,228]),import.meta.url)),Oh=v.lazy(()=>Te(()=>import("./packages-panel-B193htcT.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([229,82,45,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,80,2,16,81,83,1,17,84,85,86,87,88,89,35,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,39,106,107,108,109,41,110,111,112,42,113,114,141,157]),import.meta.url)),Rh=v.lazy(()=>Te(()=>import("./scratchpad-panel-Bxttzf7V.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([230,231,7,149,47,150,20,151,152,153,154,24,46,48,11,12,5,6,9,49,4,3,8,50,10,13,14,15,18,51,19,21,22,23,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,155,156,157,17,133,134,86,85,90,35,91,92,93,94,95,80,84,2,16,96,127,136,142,39,41,83,119,120,121,122,123,124,125,126,158,89,97,159,132,103,160,99,100,104,161,105,102,162,143,144,145,163,164,139,165,166,167,81,168,169,232,175,138,140,176,227,233,195,184,111,135,88,98,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,183,332,117,333,217,114,334,335,45,130,1,129,131,137,179,212,171,116,213,214,101,336,337,338,170,339,222,340,341,342,343]),import.meta.url)),Mh=v.lazy(()=>Te(()=>import("./secrets-panel-CaBDi8LW.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([344,141,5,6,7,9,197,49,20,4,11,12,85,86,3,8,50,10,13,14,15,198,90,35,21,22,23,24,36,37,38,91,59,25,92,93,94,95,88,89,96,51,53,83,134,48,99,52,34,31,202,104,105,102,28,39,41,111,343]),import.meta.url)),Fh=v.lazy(()=>Te(()=>import("./snippets-panel--0uDwhrb.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([345,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,141,342,103,83,134,86,85,90,35,91,92,93,94,95,158,89,159,132,142,39,41,160,121,104,122,105,102,111,343,346]),import.meta.url)),Vh=v.lazy(()=>Te(()=>import("./tracing-panel-C9hGUzPk.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([347,47,83,11,12,14,6,7,5,9]),import.meta.url)),Lh=v.lazy(()=>Te(()=>import("./cache-panel-BljwLE9L.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([348,141,5,6,7,9,83,11,12,14,86,49,20,4,3,8,51,349,21,22,23,24,53,25,104,91,59,93,94,77,112,42]),import.meta.url));const Hh=t=>{let e=(0,Th.c)(175),{children:r}=t,{isSidebarOpen:n,isDeveloperPanelOpen:a,selectedPanel:i,selectedDeveloperPanelTab:l}=za(),{setIsSidebarOpen:s,setIsDeveloperPanelOpen:c,openApplication:u}=sn(),p=v.useRef(null),d=v.useRef(null),{aiPanelTab:m,setAiPanelTab:g}=Sh(),{dependencyPanelTab:f,setDependencyPanelTab:b}=K0(),h=J(Na),[y,k]=mr(Ia),x=J(ns),D;if(e[0]!==x||e[1]!==y.developerPanel){let G;e[3]===x?G=e[4]:(G=Pe=>{let De=ts.get(Pe);return!De||cn(De,x)?[]:[De]},e[3]=x,e[4]=G),D=y.developerPanel.flatMap(G),e[0]=x,e[1]=y.developerPanel,e[2]=D}else D=e[2];let j=D,w;e[5]===k?w=e[6]:(w=G=>{k(Pe=>({...Pe,developerPanel:G.map(Wh)}))},e[5]=k,e[6]=w);let C=w,S;e[7]!==u||e[8]!==y.sidebar||e[9]!==i||e[10]!==k?(S=(G,Pe)=>{if(Pe==="sidebar"&&(k(De=>({...De,sidebar:De.sidebar.filter(wa=>wa!==G.type)})),i===G.type)){let De=y.sidebar.filter(wa=>wa!==G.type);De.length>0&&u(De[0])}u(G.type)},e[7]=u,e[8]=y.sidebar,e[9]=i,e[10]=k,e[11]=S):S=e[11];let _=S,E;e[12]===y.sidebar?E=e[13]:(E=new Set(y.sidebar),e[12]=y.sidebar,e[13]=E);let T=E,N;e[14]!==x||e[15]!==T?(N=Jl.filter(G=>!(cn(G,x)||T.has(G.type))),e[14]=x,e[15]=T,e[16]=N):N=e[16];let z=N,$,P;e[17]===n?($=e[18],P=e[19]):($=()=>{if(!p.current)return;let G=p.current.isCollapsed();n&&G&&p.current.expand(),!n&&!G&&p.current.collapse(),requestAnimationFrame(qh)},P=[n],e[17]=n,e[18]=$,e[19]=P),(0,v.useEffect)($,P);let I,A;e[20]===a?(I=e[21],A=e[22]):(I=()=>{if(!d.current)return;let G=d.current.isCollapsed();a&&G&&d.current.expand(),!a&&!G&&d.current.collapse(),requestAnimationFrame(Gh)},A=[a],e[20]=a,e[21]=I,e[22]=A),(0,v.useEffect)(I,A);let B,R;e[23]!==j||e[24]!==a||e[25]!==u||e[26]!==l||e[27]!==c?(B=()=>{a&&(j.some(G=>G.type===l)||(j.length>0?u(j[0].type):c(!1)))},R=[a,j,l,u,c],e[23]=j,e[24]=a,e[25]=u,e[26]=l,e[27]=c,e[28]=B,e[29]=R):(B=e[28],R=e[29]),(0,v.useEffect)(B,R);let K;e[30]===r?K=e[31]:(K=(0,o.jsx)(Pn,{id:"app",className:"relative h-full",children:(0,o.jsx)(v.Suspense,{children:r})},"app"),e[30]=r,e[31]=K);let M=K,H=n?"resize-handle":"resize-handle-collapsed",O;e[32]===H?O=e[33]:(O=Z("border-border no-print z-10",H,"vertical"),e[32]=H,e[33]=O);let F;e[34]===O?F=e[35]:(F=(0,o.jsx)(ou,{onDragging:cs,className:O}),e[34]=O,e[35]=F);let L=F,V=a?"resize-handle":"resize-handle-collapsed",q;e[36]===V?q=e[37]:(q=Z("border-border no-print z-20",V,"horizontal"),e[36]=V,e[37]=q);let W;e[38]===q?W=e[39]:(W=(0,o.jsx)(ou,{onDragging:cs,className:q}),e[38]=q,e[39]=W);let X=W,te;e[40]===Symbol.for("react.memo_cache_sentinel")?(te=Sf("external_agents"),e[40]=te):te=e[40];let re=te,ee;e[41]===m?ee=e[42]:(ee=()=>re&&m==="agents"?(0,o.jsx)(Ih,{}):(0,o.jsx)(_h,{}),e[41]=m,e[42]=ee);let oe=ee,Y,se,de,be,ge,_e,Ie;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,o.jsx)(Bh,{}),se=(0,o.jsx)(zh,{}),de=(0,o.jsx)(Nh,{}),be=(0,o.jsx)(Oh,{}),ge=(0,o.jsx)(Kh,{}),_e=(0,o.jsx)($h,{}),Ie=(0,o.jsx)(Fh,{}),e[43]=Y,e[44]=se,e[45]=de,e[46]=be,e[47]=ge,e[48]=_e,e[49]=Ie):(Y=e[43],se=e[44],de=e[45],be=e[46],ge=e[47],_e=e[48],Ie=e[49]);let le;e[50]===oe?le=e[51]:(le=oe(),e[50]=oe,e[51]=le);let ce,we,He,ie,et;e[52]===Symbol.for("react.memo_cache_sentinel")?(ce=(0,o.jsx)(Ah,{}),we=(0,o.jsx)(Rh,{}),He=(0,o.jsx)(Vh,{}),ie=(0,o.jsx)(Mh,{}),et=(0,o.jsx)(Ph,{}),e[52]=ce,e[53]=we,e[54]=He,e[55]=ie,e[56]=et):(ce=e[52],we=e[53],He=e[54],ie=e[55],et=e[56]);let gt=n&&i==="terminal",We;e[57]===s?We=e[58]:(We=()=>s(!1),e[57]=s,e[58]=We);let tt;e[59]!==gt||e[60]!==We?(tt=(0,o.jsx)(Vl,{visible:gt,onClose:We}),e[59]=gt,e[60]=We,e[61]=tt):tt=e[61];let ht;e[62]===Symbol.for("react.memo_cache_sentinel")?(ht=(0,o.jsx)(Lh,{}),e[62]=ht):ht=e[62];let Nt;e[63]!==le||e[64]!==tt?(Nt={files:Y,variables:se,dependencies:de,packages:be,outline:ge,documentation:_e,snippets:Ie,ai:le,errors:ce,scratchpad:we,tracing:He,secrets:ie,logs:et,terminal:tt,cache:ht},e[63]=le,e[64]=tt,e[65]=Nt):Nt=e[65];let ot=Nt,it;e[66]!==m||e[67]!==f||e[68]!==i||e[69]!==g||e[70]!==b?(it=i==="dependencies"?(0,o.jsxs)("div",{className:"flex items-center justify-between flex-1",children:[(0,o.jsx)("span",{className:"text-sm text-(--slate-11) uppercase tracking-wide font-semibold",children:"Dependencies"}),(0,o.jsx)(tu,{value:f,onValueChange:G=>{(G==="minimap"||G==="graph")&&b(G)},children:(0,o.jsxs)(eu,{children:[(0,o.jsx)(An,{value:"minimap",className:"py-0.5 text-xs uppercase tracking-wide font-bold",children:"Minimap"}),(0,o.jsx)(An,{value:"graph",className:"py-0.5 text-xs uppercase tracking-wide font-bold",children:"Graph"})]})})]}):i==="ai"&&re?(0,o.jsx)(tu,{value:m,onValueChange:G=>{(G==="chat"||G==="agents")&&g(G)},children:(0,o.jsxs)(eu,{children:[(0,o.jsx)(An,{value:"chat",className:"py-0.5 text-xs uppercase tracking-wide font-bold",children:"Chat"}),(0,o.jsx)(An,{value:"agents",className:"py-0.5 text-xs uppercase tracking-wide font-bold",children:"Agents"})]})}):(0,o.jsx)("span",{className:"text-sm text-(--slate-11) uppercase tracking-wide font-semibold flex-1",children:i}),e[66]=m,e[67]=f,e[68]=i,e[69]=g,e[70]=b,e[71]=it):it=e[71];let rt;e[72]===s?rt=e[73]:(rt=()=>s(!1),e[72]=s,e[73]=rt);let Se;e[74]===Symbol.for("react.memo_cache_sentinel")?(Se=(0,o.jsx)(Ge,{className:"w-4 h-4"}),e[74]=Se):Se=e[74];let he;e[75]===rt?he=e[76]:(he=(0,o.jsx)(ae,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:rt,children:Se}),e[75]=rt,e[76]=he);let fe;e[77]!==it||e[78]!==he?(fe=(0,o.jsxs)("div",{className:"p-3 border-b flex justify-between items-center",children:[it,he]}),e[77]=it,e[78]=he,e[79]=fe):fe=e[79];let $e;e[80]===ot?$e=e[81]:($e=Object.entries(ot),e[80]=ot,e[81]=$e);let ye;e[82]!==n||e[83]!==i||e[84]!==$e?(ye=(0,o.jsx)(v.Suspense,{children:(0,o.jsx)(_n,{children:$e.map(G=>{let[Pe,De]=G;return(0,o.jsx)(Fl,{mode:n&&i===Pe?"visible":"hidden",children:De},Pe)})})}),e[82]=n,e[83]=i,e[84]=$e,e[85]=ye):ye=e[85];let ve;e[86]!==fe||e[87]!==ye?(ve=(0,o.jsx)(vs,{children:(0,o.jsx)(lu,{value:"sidebar",children:(0,o.jsxs)("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[fe,ye]})})}),e[86]=fe,e[87]=ye,e[88]=ve):ve=e[88];let Ae=ve,pe=n&&"border-r border-l border-(--slate-7)",ue;e[89]===pe?ue=e[90]:(ue=Z("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",pe),e[89]=pe,e[90]=ue);let Ke;e[91]===Symbol.for("react.memo_cache_sentinel")?(Ke=(G,Pe)=>{var De;Pe===0&&G===10&&((De=p.current)==null||De.resize(30))},e[91]=Ke):Ke=e[91];let Oe,Ne;e[92]===s?(Oe=e[93],Ne=e[94]):(Oe=()=>s(!1),Ne=()=>s(!0),e[92]=s,e[93]=Oe,e[94]=Ne);let Be;e[95]!==Ae||e[96]!==L?(Be=(0,o.jsxs)("span",{className:"flex flex-row h-full",children:[Ae," ",L]}),e[95]=Ae,e[96]=L,e[97]=Be):Be=e[97];let Ue;e[98]!==ue||e[99]!==Oe||e[100]!==Ne||e[101]!==Be?(Ue=(0,o.jsx)(Pn,{ref:p,id:"app-chrome-sidebar","data-testid":"helper",collapsedSize:0,collapsible:!0,className:ue,minSize:10,defaultSize:0,maxSize:75,onResize:Ke,onCollapse:Oe,onExpand:Ne,children:Be},"helper"),e[98]=ue,e[99]=Oe,e[100]=Ne,e[101]=Be,e[102]=Ue):Ue=e[102];let ft=Ue,ya=a&&l==="terminal",zt;e[103]===c?zt=e[104]:(zt=()=>c(!1),e[103]=c,e[104]=zt);let $t;e[105]!==ya||e[106]!==zt?($t=(0,o.jsx)(Vl,{visible:ya,onClose:zt}),e[105]=ya,e[106]=zt,e[107]=$t):$t=e[107];let Wr;e[108]!==ot||e[109]!==$t?(Wr={...ot,terminal:$t},e[108]=ot,e[109]=$t,e[110]=Wr):Wr=e[110];let va=Wr,Da=a&&"border-t",At;e[111]===Da?At=e[112]:(At=Z("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",Da),e[111]=Da,e[112]=At);let Ur;e[113]===Symbol.for("react.memo_cache_sentinel")?(Ur=(G,Pe)=>{var De;Pe===0&&G===10&&((De=d.current)==null||De.resize(30))},e[113]=Ur):Ur=e[113];let Bt,Pt;e[114]===c?(Bt=e[115],Pt=e[116]):(Bt=()=>c(!1),Pt=()=>c(!0),e[114]=c,e[115]=Bt,e[116]=Pt);let Kt;e[117]===_?Kt=e[118]:(Kt={dragType:"panels",listId:"developer-panel",onReceive:_},e[117]=_,e[118]=Kt);let Ot;e[119]===u?Ot=e[120]:(Ot=G=>u(G.type),e[119]=u,e[120]=Ot);let Rt;e[121]!==h||e[122]!==l?(Rt=G=>(0,o.jsxs)("div",{className:Z("text-sm flex gap-2 px-2 pt-1 pb-0.5 items-center leading-none rounded-sm cursor-pointer",l===G.type?"bg-muted":"hover:bg-muted/50"),children:[(0,o.jsx)(G.Icon,{className:Z("w-4 h-4",G.type==="errors"&&h>0&&"text-destructive")}),G.label]}),e[121]=h,e[122]=l,e[123]=Rt):Rt=e[123];let Mt;e[124]!==z||e[125]!==j||e[126]!==C||e[127]!==Kt||e[128]!==Ot||e[129]!==Rt?(Mt=(0,o.jsx)(Ol,{value:j,setValue:C,getKey:Yh,availableItems:z,crossListDrag:Kt,getItemLabel:Zh,ariaLabel:"Developer panel tabs",className:"flex flex-row gap-1",minItems:0,onAction:Ot,renderItem:Rt}),e[124]=z,e[125]=j,e[126]=C,e[127]=Kt,e[128]=Ot,e[129]=Rt,e[130]=Mt):Mt=e[130];let qr,Xr,Gr;e[131]===Symbol.for("react.memo_cache_sentinel")?(qr=(0,o.jsx)("div",{className:"border-l border-border h-4 mx-1"}),Xr=(0,o.jsx)(Bl,{}),Gr=(0,o.jsx)("div",{className:"flex-1"}),e[131]=qr,e[132]=Xr,e[133]=Gr):(qr=e[131],Xr=e[132],Gr=e[133]);let Ft;e[134]===c?Ft=e[135]:(Ft=()=>c(!1),e[134]=c,e[135]=Ft);let Yr;e[136]===Symbol.for("react.memo_cache_sentinel")?(Yr=(0,o.jsx)(Ge,{className:"w-4 h-4"}),e[136]=Yr):Yr=e[136];let Vt;e[137]===Ft?Vt=e[138]:(Vt=(0,o.jsx)(ae,{size:"xs",variant:"text",onClick:Ft,children:Yr}),e[137]=Ft,e[138]=Vt);let Lt;e[139]!==Mt||e[140]!==Vt?(Lt=(0,o.jsxs)("div",{className:"flex items-center justify-between border-b px-2 h-8 bg-background shrink-0",children:[Mt,qr,Xr,Gr,Vt]}),e[139]=Mt,e[140]=Vt,e[141]=Lt):Lt=e[141];let Zr;e[142]===Symbol.for("react.memo_cache_sentinel")?(Zr=(0,o.jsx)("div",{}),e[142]=Zr):Zr=e[142];let Ht;e[143]===va?Ht=e[144]:(Ht=Object.entries(va),e[143]=va,e[144]=Ht);let Wt;e[145]!==a||e[146]!==l||e[147]!==Ht?(Wt=(0,o.jsx)(v.Suspense,{fallback:Zr,children:(0,o.jsx)(lu,{value:"developer-panel",children:(0,o.jsx)("div",{className:"flex-1 overflow-hidden",children:Ht.map(G=>{let[Pe,De]=G;return(0,o.jsx)(Fl,{mode:a&&l===Pe?"visible":"hidden",children:De},Pe)})})})}),e[145]=a,e[146]=l,e[147]=Ht,e[148]=Wt):Wt=e[148];let Ut;e[149]!==Lt||e[150]!==Wt?(Ut=(0,o.jsxs)("div",{className:"flex flex-col h-full",children:[Lt,Wt]}),e[149]=Lt,e[150]=Wt,e[151]=Ut):Ut=e[151];let Jr;e[152]!==X||e[153]!==At||e[154]!==Bt||e[155]!==Pt||e[156]!==Ut?(Jr=(0,o.jsxs)(Pn,{ref:d,id:"app-chrome-panel","data-testid":"panel",collapsedSize:0,collapsible:!0,className:At,minSize:10,defaultSize:0,maxSize:75,onResize:Ur,onCollapse:Bt,onExpand:Pt,children:[X,Ut]},"panel"),e[152]=X,e[153]=At,e[154]=Bt,e[155]=Pt,e[156]=Ut,e[157]=Jr):Jr=e[157];let ka=Jr,Qr;e[158]===Symbol.for("react.memo_cache_sentinel")?(Qr=(0,o.jsx)(_n,{children:(0,o.jsx)(gh,{})}),e[158]=Qr):Qr=e[158];let ja=a&&!n&&"border-l",qt;e[159]===ja?qt=e[160]:(qt=Z(ja),e[159]=ja,e[160]=qt);let Xt;e[161]!==M||e[162]!==ka?(Xt=(0,o.jsxs)(au,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[M,ka]}),e[161]=M,e[162]=ka,e[163]=Xt):Xt=e[163];let Gt;e[164]!==qt||e[165]!==Xt?(Gt=(0,o.jsx)(Pn,{id:"app-chrome-body",className:qt,children:Xt}),e[164]=qt,e[165]=Xt,e[166]=Gt):Gt=e[166];let en;e[167]===Symbol.for("react.memo_cache_sentinel")?(en=(0,o.jsx)(Xf,{}),e[167]=en):en=e[167];let Yt;e[168]!==ft||e[169]!==Gt?(Yt=(0,o.jsxs)(au,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",children:[Qr,ft,Gt,en]}),e[168]=ft,e[169]=Gt,e[170]=Yt):Yt=e[170];let tn;e[171]===Symbol.for("react.memo_cache_sentinel")?(tn=(0,o.jsx)(jh,{}),e[171]=tn):tn=e[171];let rn;e[172]===Symbol.for("react.memo_cache_sentinel")?(rn=(0,o.jsx)(vs,{children:(0,o.jsx)(_n,{children:(0,o.jsx)(lh,{})})}),e[172]=rn):rn=e[172];let nn;return e[173]===Yt?nn=e[174]:(nn=(0,o.jsxs)(i1,{children:[Yt,tn,rn]}),e[173]=Yt,e[174]=nn),nn};function Wh(t){return t.type}function Uh(){window.dispatchEvent(new Event("resize"))}function qh(){requestAnimationFrame(Uh)}function Xh(){window.dispatchEvent(new Event("resize"))}function Gh(){requestAnimationFrame(Xh)}function Yh(t){return t.type}function Zh(t){return(0,o.jsxs)("span",{className:"flex items-center gap-2",children:[(0,o.jsx)(t.Icon,{className:"w-4 h-4 text-muted-foreground"}),t.label]})}let Ll,ba,Hl;Ll=U(),ba=(0,v.lazy)(()=>Te(()=>import("./command-palette-DmYvtSUz.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([350,82,45,46,47,48,11,12,5,6,7,9,49,20,4,3,8,50,10,13,14,15,18,51,19,21,22,23,24,25,26,27,28,32,33,34,52,31,53,54,55,38,56,57,58,59,60,30,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,36,37,76,77,78,79,80,2,16,81,83,1,17,84,85,86,87,88,89,35,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,39,106,107,108,109,41,110,111,112,42,113,114,149,150,151,152,153,154,155,156,157,133,134,127,136,142,119,120,121,122,123,124,125,126,158,159,132,160,161,162,143,144,145,163,164,139,165,166,167,168,169,232,175,138,140,176,227,233,195,184,135,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,183,332,117,333,217,334,178,130,131,179,180,181,182,185,351,196,197,198,199,200,201,202,203,204,352,336,337,353,215,220,221,116,354,355,146,147]),import.meta.url)),Hl=new URL(window.location.href).searchParams.get(i0.showChrome)==="false",uu=t=>{let e=(0,Ll.c)(10);if(Hl){let i;e[0]===t?i=e[1]:(i=(0,o.jsx)($l,{hideControls:!0,...t}),e[0]=t,e[1]=i);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,o.jsx)(ba,{}),e[2]=l):l=e[2];let s;return e[3]===i?s=e[4]:(s=(0,o.jsxs)(o.Fragment,{children:[i,l]}),e[3]=i,e[4]=s),s}let r;e[5]===t?r=e[6]:(r=(0,o.jsx)($l,{...t}),e[5]=t,e[6]=r);let n;e[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,o.jsx)(ba,{}),e[7]=n):n=e[7];let a;return e[8]===r?a=e[9]:(a=(0,o.jsxs)(Hh,{children:[r,n]}),e[8]=r,e[9]=a),a}});export{kb as __tla,uu as default}; diff --git a/docs/assets/edit-page-Dstp9NQ5.css b/docs/assets/edit-page-Dstp9NQ5.css new file mode 100644 index 0000000..240c30b --- /dev/null +++ b/docs/assets/edit-page-Dstp9NQ5.css @@ -0,0 +1 @@ +.react-aria-DropIndicator[data-drop-target]{outline:1px solid var(--blue-9)}.resize-handle,.resize-handle-collapsed{outline:none;transition:background-color .25s linear}.resize-handle-collapsed.horizontal,.resize-handle.horizontal{height:4px}.resize-handle-collapsed.vertical,.resize-handle.vertical{width:4px}.resize-handle-collapsed:hover,.resize-handle-collapsed[data-resize-handle-active],.resize-handle:hover,.resize-handle[data-resize-handle-active]{background-color:var(--slate-11)} diff --git a/docs/assets/eiffel-DRhIEZQi.js b/docs/assets/eiffel-DRhIEZQi.js new file mode 100644 index 0000000..e9501b8 --- /dev/null +++ b/docs/assets/eiffel-DRhIEZQi.js @@ -0,0 +1 @@ +function o(e){for(var r={},t=0,n=e.length;t>"]);function c(e,r,t){return t.tokenize.push(e),e(r,t)}function f(e,r){if(e.eatSpace())return null;var t=e.next();return t=='"'||t=="'"?c(p(t,"string"),e,r):t=="-"&&e.eat("-")?(e.skipToEnd(),"comment"):t==":"&&e.eat("=")?"operator":/[0-9]/.test(t)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"variable"):/[a-zA-Z_0-9]/.test(t)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"variable"):/[=+\-\/*^%<>~]/.test(t)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}function p(e,r,t){return function(n,l){for(var a=!1,i;(i=n.next())!=null;){if(i==e&&(t||!a)){l.tokenize.pop();break}a=!a&&i=="%"}return r}}const d={name:"eiffel",startState:function(){return{tokenize:[f]}},token:function(e,r){var t=r.tokenize[r.tokenize.length-1](e,r);if(t=="variable"){var n=e.current();t=s.propertyIsEnumerable(e.current())?"keyword":u.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(n)?"tag":/^0[bB][0-1]+$/g.test(n)||/^0[cC][0-7]+$/g.test(n)||/^0[xX][a-fA-F0-9]+$/g.test(n)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n)||/^[0-9]+$/g.test(n)?"number":"variable"}return t},languageData:{commentTokens:{line:"--"}}};export{d as t}; diff --git a/docs/assets/eiffel-MZyxske9.js b/docs/assets/eiffel-MZyxske9.js new file mode 100644 index 0000000..55dee87 --- /dev/null +++ b/docs/assets/eiffel-MZyxske9.js @@ -0,0 +1 @@ +import{t as e}from"./eiffel-DRhIEZQi.js";export{e as eiffel}; diff --git a/docs/assets/elixir-W0RBPVS-.js b/docs/assets/elixir-W0RBPVS-.js new file mode 100644 index 0000000..b29ba74 --- /dev/null +++ b/docs/assets/elixir-W0RBPVS-.js @@ -0,0 +1 @@ +import{t as e}from"./html-Bz1QLM72.js";var i=Object.freeze(JSON.parse(`{"displayName":"Elixir","fileTypes":["ex","exs"],"firstLineMatch":"^#!/.*\\\\belixir","foldingStartMarker":"(after|else|catch|rescue|->|[\\\\[{]|do)\\\\s*$","foldingStopMarker":"^\\\\s*(([]}]|after|else|catch|rescue)\\\\s*$|end\\\\b)","name":"elixir","patterns":[{"begin":"\\\\b(fn)\\\\b(?!.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"$","patterns":[{"include":"#core_syntax"}]},{"captures":{"1":{"name":"entity.name.type.class.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"([A-Z]\\\\w+)\\\\s*(\\\\.)\\\\s*([_a-z]\\\\w*[!?]?)"},{"captures":{"1":{"name":"constant.other.symbol.elixir"},"2":{"name":"punctuation.separator.method.elixir"},"3":{"name":"entity.name.function.elixir"}},"match":"(:\\\\w+)\\\\s*(\\\\.)\\\\s*(_?\\\\w*[!?]?)"},{"captures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"entity.name.function.elixir"}},"match":"(\\\\|>)\\\\s*([_a-z]\\\\w*[!?]?)"},{"match":"\\\\b[_a-z]\\\\w*[!?]?(?=\\\\s*\\\\.?\\\\s*\\\\()","name":"entity.name.function.elixir"},{"begin":"\\\\b(fn)\\\\b(?=.*->)","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]},{"include":"#core_syntax"},{"begin":"^(?=.*->)((?![^\\"']*([\\"'])[^\\"']*->)|(?=.*->[^\\"']*([\\"'])[^\\"']*->))((?!.*\\\\([^)]*->)|(?=[^()]*->)|(?=\\\\s*\\\\(.*\\\\).*->))((?!.*\\\\b(fn)\\\\b)|(?=.*->.*\\\\bfn\\\\b))","beginCaptures":{"1":{"name":"keyword.control.elixir"}},"end":"(?>(->)|(when)|(\\\\)))","endCaptures":{"1":{"name":"keyword.operator.other.elixir"},"2":{"name":"keyword.control.elixir"},"3":{"name":"punctuation.section.function.elixir"}},"patterns":[{"include":"#core_syntax"}]}],"repository":{"core_syntax":{"patterns":[{"begin":"^\\\\s*(defmodule)\\\\b","beginCaptures":{"1":{"name":"keyword.control.module.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.module.elixir"}},"name":"meta.module.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*(?=\\\\.)","name":"entity.other.inherited-class.elixir"},{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.class.elixir"}]},{"begin":"^\\\\s*(defprotocol)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_declaration.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(defimpl)\\\\b","beginCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"end":"\\\\b(do)\\\\b","endCaptures":{"1":{"name":"keyword.control.protocol.elixir"}},"name":"meta.protocol_implementation.elixir","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.protocol.elixir"}]},{"begin":"^\\\\s*(def(?:|macro|delegate|guard))\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/\`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.public.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:|n|macro|delegate|guard))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.public.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"^\\\\s*(def(?:|n|macro|guard)p)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|>[=>]?|<=>|<[<=]?|[%\\\\&/\`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))((\\\\()|\\\\s*)","beginCaptures":{"1":{"name":"keyword.control.module.elixir"},"2":{"name":"entity.name.function.private.elixir"},"4":{"name":"punctuation.section.function.elixir"}},"end":"\\\\b(do:)|\\\\b(do)\\\\b|(?=\\\\s+(def(?:p|macrop|guardp))\\\\b)","endCaptures":{"1":{"name":"constant.other.keywords.elixir"},"2":{"name":"keyword.control.module.elixir"}},"name":"meta.function.private.elixir","patterns":[{"include":"$self"},{"begin":"\\\\s(\\\\\\\\\\\\\\\\)","beginCaptures":{"1":{"name":"keyword.operator.other.elixir"}},"end":"[),]|$","patterns":[{"include":"$self"}]},{"match":"\\\\b(is_atom|is_binary|is_bitstring|is_boolean|is_float|is_function|is_integer|is_list|is_map|is_nil|is_number|is_pid|is_port|is_record|is_reference|is_tuple|is_exception|abs|bit_size|byte_size|div|elem|hd|length|map_size|node|rem|round|tl|trunc|tuple_size)\\\\b","name":"keyword.control.elixir"}]},{"begin":"\\\\s*~L\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.leex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"\\\\s*~H\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"sigil.heex","patterns":[{"include":"text.elixir"},{"include":"text.html.basic"}]},{"begin":"@(module|type)?doc (~[a-z])?\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]\\"\\"\\"","end":"\\\\s*\\"\\"\\"","name":"comment.block.documentation.heredoc"},{"begin":"@(module|type)?doc (~[a-z])?'''","end":"\\\\s*'''","name":"comment.block.documentation.heredoc","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"@(module|type)?doc ~[A-Z]'''","end":"\\\\s*'''","name":"comment.block.documentation.heredoc"},{"match":"@(module|type)?doc false","name":"comment.block.documentation.false"},{"begin":"@(module|type)?doc \\"","end":"\\"","name":"comment.block.documentation.string","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"match":"(?_?\\\\h)*\\\\b","name":"constant.numeric.hex.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)+)([Ee][-+]?\\\\d(?>_?\\\\d)*)?\\\\b","name":"constant.numeric.float.elixir"},{"match":"\\\\b\\\\d(?>_?\\\\d)*\\\\b","name":"constant.numeric.integer.elixir"},{"match":"\\\\b0b[01](?>_?[01])*\\\\b","name":"constant.numeric.binary.elixir"},{"match":"\\\\b0o[0-7](?>_?[0-7])*\\\\b","name":"constant.numeric.octal.elixir"},{"begin":":'","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"'","name":"constant.other.symbol.single-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":":\\"","captures":{"0":{"name":"punctuation.definition.constant.elixir"}},"end":"\\"","name":"constant.other.symbol.double-quoted.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*'''","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.single.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.double.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[a-z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.elixir","patterns":[{"include":"#interpolated_elixir"},{"include":"#escaped_char"}]},{"begin":"~[A-Z]\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"^\\\\s*\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.heredoc.literal.elixir"},{"begin":"~[A-Z]\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"}[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"][a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":">[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\)[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"begin":"~[A-Z](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elixir"}},"end":"\\\\1[a-z]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.elixir"}},"name":"string.quoted.other.sigil.literal.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?[A-Z_a-z][@\\\\w]*(?>[!?]|=(?![=>]))?|<>|===?|!==?|<<>>|<<<|>>>|~~~|::|<-|\\\\|>|=>|=~|[/=]|\\\\\\\\\\\\\\\\|\\\\*\\\\*?|\\\\.\\\\.?\\\\.?|\\\\.\\\\.//|>=?|<=?|&&?&?|\\\\+\\\\+?|--?|\\\\|\\\\|?\\\\|?|[!@]|%?\\\\{}|%|\\\\[]|\\\\^(\\\\^\\\\^)?)","name":"constant.other.symbol.elixir"},{"captures":{"1":{"name":"punctuation.definition.constant.elixir"}},"match":"(?>[A-Z_a-z][@\\\\w]*[!?]?)(:)(?!:)","name":"constant.other.keywords.elixir"},{"begin":"(^[\\\\t ]+)?(?=##)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"##","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.section.elixir"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.elixir"}},"end":"(?!#)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.elixir"}},"end":"\\\\n","name":"comment.line.number-sign.elixir"}]},{"match":"\\\\b_([^_]\\\\w+[!?]?)","name":"comment.unused.elixir"},{"match":"\\\\b_\\\\b","name":"comment.wildcard.elixir"},{"match":"(?","name":"keyword.operator.concatenation.elixir"},{"match":"\\\\|>|<~>|<>|<<<|>>>|~>>|<<~|~>|<~|<\\\\|>","name":"keyword.operator.sigils_1.elixir"},{"match":"&&&?","name":"keyword.operator.sigils_2.elixir"},{"match":"<-|\\\\\\\\\\\\\\\\","name":"keyword.operator.sigils_3.elixir"},{"match":"===?|!==?|<=?|>=?","name":"keyword.operator.comparison.elixir"},{"match":"(\\\\|\\\\|\\\\||&&&|\\\\^\\\\^\\\\^|<<<|>>>|~~~)","name":"keyword.operator.bitwise.elixir"},{"match":"(?<=[\\\\t ])!+|\\\\bnot\\\\b|&&|\\\\band\\\\b|\\\\|\\\\||\\\\bor\\\\b|\\\\bxor\\\\b","name":"keyword.operator.logical.elixir"},{"match":"([-*+/])","name":"keyword.operator.arithmetic.elixir"},{"match":"\\\\||\\\\+\\\\+|--|\\\\*\\\\*|\\\\\\\\\\\\\\\\|<-|<>|<<|>>|::|\\\\.\\\\.|//|\\\\|>|~|=>|&","name":"keyword.operator.other.elixir"},{"match":"=","name":"keyword.operator.assignment.elixir"},{"match":":","name":"punctuation.separator.other.elixir"},{"match":";","name":"punctuation.separator.statement.elixir"},{"match":",","name":"punctuation.separator.object.elixir"},{"match":"\\\\.","name":"punctuation.separator.method.elixir"},{"match":"[{}]","name":"punctuation.section.scope.elixir"},{"match":"[]\\\\[]","name":"punctuation.section.array.elixir"},{"match":"[()]","name":"punctuation.section.function.elixir"}]},"escaped_char":{"match":"\\\\\\\\(x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escaped.elixir"},"interpolated_elixir":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.elixir"}},"contentName":"source.elixir","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.elixir"}},"name":"meta.embedded.line.elixir","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.elixir"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]}},"scopeName":"source.elixir","embeddedLangs":["html"]}`)),n=[...e,i];export{n as default}; diff --git a/docs/assets/ellipsis-DwHM80y-.js b/docs/assets/ellipsis-DwHM80y-.js new file mode 100644 index 0000000..f6b76c9 --- /dev/null +++ b/docs/assets/ellipsis-DwHM80y-.js @@ -0,0 +1 @@ +import{t as c}from"./createLucideIcon-CW2xpJ57.js";var r=c("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);export{r as t}; diff --git a/docs/assets/ellipsis-vertical-CasjS3M6.js b/docs/assets/ellipsis-vertical-CasjS3M6.js new file mode 100644 index 0000000..5e26bb3 --- /dev/null +++ b/docs/assets/ellipsis-vertical-CasjS3M6.js @@ -0,0 +1 @@ +import{t as c}from"./createLucideIcon-CW2xpJ57.js";var e=c("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);export{e as t}; diff --git a/docs/assets/elm-BBPeNBgT.js b/docs/assets/elm-BBPeNBgT.js new file mode 100644 index 0000000..ff9db8b --- /dev/null +++ b/docs/assets/elm-BBPeNBgT.js @@ -0,0 +1 @@ +function o(t,e,r){return e(r),r(t,e)}var p=/[a-z]/,m=/[A-Z]/,u=/[a-zA-Z0-9_]/,a=/[0-9]/,g=/[0-9A-Fa-f]/,f=/[-&*+.\\/<>=?^|:]/,x=/[(),[\]{}]/,k=/[ \v\f]/;function n(){return function(t,e){if(t.eatWhile(k))return null;var r=t.next();if(x.test(r))return r==="{"&&t.eat("-")?o(t,e,s(1)):r==="["&&t.match("glsl|")?o(t,e,T):"builtin";if(r==="'")return o(t,e,v);if(r==='"')return t.eat('"')?t.eat('"')?o(t,e,d):"string":o(t,e,h);if(m.test(r))return t.eatWhile(u),"type";if(p.test(r)){var i=t.pos===1;return t.eatWhile(u),i?"def":"variable"}if(a.test(r)){if(r==="0"){if(t.eat(/[xX]/))return t.eatWhile(g),"number"}else t.eatWhile(a);return t.eat(".")&&t.eatWhile(a),t.eat(/[eE]/)&&(t.eat(/[-+]/),t.eatWhile(a)),"number"}return f.test(r)?r==="-"&&t.eat("-")?(t.skipToEnd(),"comment"):(t.eatWhile(f),"keyword"):r==="_"?"keyword":"error"}}function s(t){return t==0?n():function(e,r){for(;!e.eol();){var i=e.next();if(i=="{"&&e.eat("-"))++t;else if(i=="-"&&e.eat("}")&&(--t,t===0))return r(n()),"comment"}return r(s(t)),"comment"}}function d(t,e){for(;!t.eol();)if(t.next()==='"'&&t.eat('"')&&t.eat('"'))return e(n()),"string";return"string"}function h(t,e){for(;t.skipTo('\\"');)t.next(),t.next();return t.skipTo('"')?(t.next(),e(n()),"string"):(t.skipToEnd(),e(n()),"error")}function v(t,e){for(;t.skipTo("\\'");)t.next(),t.next();return t.skipTo("'")?(t.next(),e(n()),"string"):(t.skipToEnd(),e(n()),"error")}function T(t,e){for(;!t.eol();)if(t.next()==="|"&&t.eat("]"))return e(n()),"string";return"string"}var W={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const y={name:"elm",startState:function(){return{f:n()}},copyState:function(t){return{f:t.f}},token:function(t,e){var r=e.f(t,function(c){e.f=c}),i=t.current();return W.hasOwnProperty(i)?"keyword":r},languageData:{commentTokens:{line:"--"}}};export{y as t}; diff --git a/docs/assets/elm-C7b2aJq3.js b/docs/assets/elm-C7b2aJq3.js new file mode 100644 index 0000000..1f27698 --- /dev/null +++ b/docs/assets/elm-C7b2aJq3.js @@ -0,0 +1 @@ +import{t as e}from"./glsl-DZDdueIl.js";var a=Object.freeze(JSON.parse(`{"displayName":"Elm","fileTypes":["elm"],"name":"elm","patterns":[{"include":"#import"},{"include":"#module"},{"include":"#debug"},{"include":"#comments"},{"match":"\\\\b(_)\\\\b","name":"keyword.unused.elm"},{"include":"#type-signature"},{"include":"#type-declaration"},{"include":"#type-alias-declaration"},{"include":"#string-triple"},{"include":"#string-quote"},{"include":"#char"},{"match":"\\\\b([0-9]+\\\\.[0-9]+([Ee][-+]?[0-9]+)?|[0-9]+[Ee][-+]?[0-9]+)\\\\b","name":"constant.numeric.float.elm"},{"match":"\\\\b([0-9]+)\\\\b","name":"constant.numeric.elm"},{"match":"\\\\b(0x\\\\h+)\\\\b","name":"constant.numeric.elm"},{"include":"#glsl"},{"include":"#record-prefix"},{"include":"#module-prefix"},{"include":"#constructor"},{"captures":{"1":{"name":"punctuation.bracket.elm"},"2":{"name":"record.name.elm"},"3":{"name":"keyword.pipe.elm"},"4":{"name":"entity.name.record.field.elm"}},"match":"(\\\\{)\\\\s+([a-z][0-9A-Z_a-z]*)\\\\s+(\\\\|)\\\\s+([a-z][0-9A-Z_a-z]*)","name":"meta.record.field.update.elm"},{"captures":{"1":{"name":"keyword.pipe.elm"},"2":{"name":"entity.name.record.field.elm"},"3":{"name":"keyword.operator.assignment.elm"}},"match":"(\\\\|)\\\\s+([a-z][0-9A-Z_a-z]*)\\\\s+(=)","name":"meta.record.field.update.elm"},{"captures":{"1":{"name":"punctuation.bracket.elm"},"2":{"name":"record.name.elm"}},"match":"(\\\\{)\\\\s+([a-z][0-9A-Z_a-z]*)\\\\s+$","name":"meta.record.field.update.elm"},{"captures":{"1":{"name":"punctuation.bracket.elm"},"2":{"name":"entity.name.record.field.elm"},"3":{"name":"keyword.operator.assignment.elm"}},"match":"(\\\\{)\\\\s+([a-z][0-9A-Z_a-z]*)\\\\s+(=)","name":"meta.record.field.elm"},{"captures":{"1":{"name":"punctuation.separator.comma.elm"},"2":{"name":"entity.name.record.field.elm"},"3":{"name":"keyword.operator.assignment.elm"}},"match":"(,)\\\\s+([a-z][0-9A-Z_a-z]*)\\\\s+(=)","name":"meta.record.field.elm"},{"match":"([{}])","name":"punctuation.bracket.elm"},{"include":"#unit"},{"include":"#comma"},{"include":"#parens"},{"match":"(->)","name":"keyword.operator.arrow.elm"},{"include":"#infix_op"},{"match":"([:=\\\\\\\\|])","name":"keyword.other.elm"},{"match":"\\\\b(type|as|port|exposing|alias|infixl|infixr?)\\\\s+","name":"keyword.other.elm"},{"match":"\\\\b(if|then|else|case|of|let|in)\\\\s+","name":"keyword.control.elm"},{"include":"#record-accessor"},{"include":"#top_level_value"},{"include":"#value"},{"include":"#period"},{"include":"#square_brackets"}],"repository":{"block_comment":{"applyEndPatternLast":1,"begin":"\\\\{-(?!#)","captures":{"0":{"name":"punctuation.definition.comment.elm"}},"end":"-}","name":"comment.block.elm","patterns":[{"include":"#block_comment"}]},"char":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.char.begin.elm"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.char.end.elm"}},"name":"string.quoted.single.elm","patterns":[{"match":"\\\\\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[\\"\\\\&'\\\\\\\\abfnrtv]|x\\\\h{1,5})","name":"constant.character.escape.elm"},{"match":"\\\\^[@-_]","name":"constant.character.escape.control.elm"}]},"comma":{"match":"(,)","name":"punctuation.separator.comma.elm"},"comments":{"patterns":[{"begin":"--","captures":{"1":{"name":"punctuation.definition.comment.elm"}},"end":"$","name":"comment.line.double-dash.elm"},{"include":"#block_comment"}]},"constructor":{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"constant.type-constructor.elm"},"debug":{"match":"\\\\b(Debug)\\\\b","name":"invalid.illegal.debug.elm"},"glsl":{"begin":"(\\\\[)(glsl)(\\\\|)","beginCaptures":{"1":{"name":"entity.glsl.bracket.elm"},"2":{"name":"entity.glsl.name.elm"},"3":{"name":"entity.glsl.bracket.elm"}},"end":"(\\\\|])","endCaptures":{"1":{"name":"entity.glsl.bracket.elm"}},"name":"meta.embedded.block.glsl","patterns":[{"include":"source.glsl"}]},"import":{"begin":"^\\\\b(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.import.elm"}},"end":"\\\\n(?!\\\\s)","name":"meta.import.elm","patterns":[{"match":"(as|exposing)","name":"keyword.control.elm"},{"include":"#module_chunk"},{"include":"#period"},{"match":"\\\\s+","name":"punctuation.spaces.elm"},{"include":"#module-exports"}]},"infix_op":{"match":"(|<\\\\?>|<\\\\||<=|\\\\|\\\\||&&|>=|\\\\|>|\\\\|=|\\\\|\\\\.|\\\\+\\\\+|::|/=|==|//|>>|<<|[-*+/<>^])","name":"keyword.operator.elm"},"module":{"begin":"^\\\\b((port |effect )?module)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.elm"}},"end":"\\\\n(?!\\\\s)","endCaptures":{"1":{"name":"keyword.other.elm"}},"name":"meta.declaration.module.elm","patterns":[{"include":"#module_chunk"},{"include":"#period"},{"match":"(exposing)","name":"keyword.other.elm"},{"match":"\\\\s+","name":"punctuation.spaces.elm"},{"include":"#module-exports"}]},"module-exports":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.parens.module-export.elm"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parens.module-export.elm"}},"name":"meta.declaration.exports.elm","patterns":[{"match":"\\\\b[a-z]['0-9A-Z_a-z]*","name":"entity.name.function.elm"},{"match":"\\\\b[A-Z]['0-9A-Z_a-z]*","name":"storage.type.elm"},{"match":",","name":"punctuation.separator.comma.elm"},{"match":"\\\\s+","name":"punctuation.spaces.elm"},{"include":"#comma"},{"match":"\\\\(\\\\.\\\\.\\\\)","name":"punctuation.parens.ellipses.elm"},{"match":"\\\\.\\\\.","name":"punctuation.parens.ellipses.elm"},{"include":"#infix_op"},{"match":"\\\\(.*?\\\\)","name":"meta.other.unknown.elm"}]},"module-prefix":{"captures":{"1":{"name":"support.module.elm"},"2":{"name":"keyword.other.period.elm"}},"match":"([A-Z][0-9A-Z_a-z]*)(\\\\.)","name":"meta.module.name.elm"},"module_chunk":{"match":"[A-Z][0-9A-Z_a-z]*","name":"support.module.elm"},"parens":{"match":"([()])","name":"punctuation.parens.elm"},"period":{"match":"\\\\.","name":"keyword.other.period.elm"},"record-accessor":{"captures":{"1":{"name":"keyword.other.period.elm"},"2":{"name":"entity.name.record.field.accessor.elm"}},"match":"(\\\\.)([a-z][0-9A-Z_a-z]*)","name":"meta.record.accessor"},"record-prefix":{"captures":{"1":{"name":"record.name.elm"},"2":{"name":"keyword.other.period.elm"},"3":{"name":"entity.name.record.field.accessor.elm"}},"match":"([a-z][0-9A-Z_a-z]*)(\\\\.)([a-z][0-9A-Z_a-z]*)","name":"record.accessor.elm"},"square_brackets":{"match":"[]\\\\[]","name":"punctuation.definition.list.elm"},"string-quote":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elm"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elm"}},"name":"string.quoted.double.elm","patterns":[{"match":"\\\\\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[\\"\\\\&'\\\\\\\\abfnrtv]|x\\\\h{1,5})","name":"constant.character.escape.elm"},{"match":"\\\\^[@-_]","name":"constant.character.escape.control.elm"}]},"string-triple":{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.elm"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.elm"}},"name":"string.quoted.triple.elm","patterns":[{"match":"\\\\\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[\\"\\\\&'\\\\\\\\abfnrtv]|x\\\\h{1,5})","name":"constant.character.escape.elm"},{"match":"\\\\^[@-_]","name":"constant.character.escape.control.elm"}]},"top_level_value":{"match":"^[a-z][0-9A-Z_a-z]*\\\\b","name":"entity.name.function.top_level.elm"},"type-alias-declaration":{"begin":"^(type\\\\s+)(alias\\\\s+)([A-Z]['0-9A-Z_a-z]*)\\\\s+","beginCaptures":{"1":{"name":"keyword.type.elm"},"2":{"name":"keyword.type-alias.elm"},"3":{"name":"storage.type.elm"}},"end":"^(?=\\\\S)","name":"meta.function.type-declaration.elm","patterns":[{"match":"\\\\n\\\\s+","name":"punctuation.spaces.elm"},{"match":"=","name":"keyword.operator.assignment.elm"},{"include":"#module-prefix"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"storage.type.elm"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*\\\\b","name":"variable.type.elm"},{"include":"#comments"},{"include":"#type-record"}]},"type-declaration":{"begin":"^(type\\\\s+)([A-Z]['0-9A-Z_a-z]*)\\\\s+","beginCaptures":{"1":{"name":"keyword.type.elm"},"2":{"name":"storage.type.elm"}},"end":"^(?=\\\\S)","name":"meta.function.type-declaration.elm","patterns":[{"captures":{"1":{"name":"constant.type-constructor.elm"}},"match":"^\\\\s*([A-Z][0-9A-Z_a-z]*)\\\\b","name":"meta.record.field.elm"},{"match":"\\\\s+","name":"punctuation.spaces.elm"},{"captures":{"1":{"name":"keyword.operator.assignment.elm"},"2":{"name":"constant.type-constructor.elm"}},"match":"([=|])\\\\s+([A-Z][0-9A-Z_a-z]*)\\\\b","name":"meta.record.field.elm"},{"match":"=","name":"keyword.operator.assignment.elm"},{"match":"->","name":"keyword.operator.arrow.elm"},{"include":"#module-prefix"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*\\\\b","name":"variable.type.elm"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"storage.type.elm"},{"include":"#comments"},{"include":"#type-record"}]},"type-record":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.braces.begin"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.braces.end"}},"name":"meta.function.type-record.elm","patterns":[{"match":"\\\\s+","name":"punctuation.spaces.elm"},{"match":"->","name":"keyword.operator.arrow.elm"},{"captures":{"1":{"name":"entity.name.record.field.elm"},"2":{"name":"keyword.other.elm"}},"match":"([a-z][0-9A-Z_a-z]*)\\\\s+(:)","name":"meta.record.field.elm"},{"match":",","name":"punctuation.separator.comma.elm"},{"include":"#module-prefix"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*\\\\b","name":"variable.type.elm"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"storage.type.elm"},{"include":"#comments"},{"include":"#type-record"}]},"type-signature":{"begin":"^(port\\\\s+)?([_a-z]['0-9A-Z_a-z]*)\\\\s+(:)","beginCaptures":{"1":{"name":"keyword.other.port.elm"},"2":{"name":"entity.name.function.elm"},"3":{"name":"keyword.other.colon.elm"}},"end":"^(((?=[a-z]))|$)","name":"meta.function.type-declaration.elm","patterns":[{"include":"#type-signature-chunk"}]},"type-signature-chunk":{"patterns":[{"match":"->","name":"keyword.operator.arrow.elm"},{"match":"\\\\s+","name":"punctuation.spaces.elm"},{"include":"#module-prefix"},{"match":"\\\\b[a-z][0-9A-Z_a-z]*\\\\b","name":"variable.type.elm"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"storage.type.elm"},{"match":"\\\\(\\\\)","name":"constant.unit.elm"},{"include":"#comma"},{"include":"#parens"},{"include":"#comments"},{"include":"#type-record"}]},"unit":{"match":"\\\\(\\\\)","name":"constant.unit.elm"},"value":{"match":"\\\\b[a-z][0-9A-Z_a-z]*\\\\b","name":"meta.value.elm"}},"scopeName":"source.elm","embeddedLangs":["glsl"]}`)),n=[...e,a];export{n as default}; diff --git a/docs/assets/elm-gXtxhfT4.js b/docs/assets/elm-gXtxhfT4.js new file mode 100644 index 0000000..f99fdd9 --- /dev/null +++ b/docs/assets/elm-gXtxhfT4.js @@ -0,0 +1 @@ +import{t as e}from"./elm-BBPeNBgT.js";export{e as elm}; diff --git a/docs/assets/emacs-lisp-BcNheR0i.js b/docs/assets/emacs-lisp-BcNheR0i.js new file mode 100644 index 0000000..5c17c2f --- /dev/null +++ b/docs/assets/emacs-lisp-BcNheR0i.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Emacs Lisp","fileTypes":["el","elc","eld","spacemacs","_emacs","emacs","emacs.desktop","abbrev_defs","Project.ede","Cask","gnus","viper"],"firstLineMatch":"^#!.*(?:[/\\\\s]|(?<=!)\\\\b)emacs(?:$|\\\\s)|(?:-\\\\*-(?i:[\\\\t ]*(?=[^:;\\\\s]+[\\\\t ]*-\\\\*-)|(?:.*?[\\\\t ;]|(?<=-\\\\*-))[\\\\t ]*mode[\\\\t ]*:[\\\\t ]*)(?i:emacs-lisp)(?=[\\\\t ;]|(?]?[0-9]+|))?|[\\\\t ]ex)(?=:(?:(?=[\\\\t ]*set?[\\\\t ][^\\\\n\\\\r:]+:)|(?![\\\\t ]*set?[\\\\t ])))(?:(?:[\\\\t ]*:[\\\\t ]*|[\\\\t ])\\\\w*(?:[\\\\t ]*=(?:[^\\\\\\\\\\\\s]|\\\\\\\\.)*)?)*[\\\\t :](?:filetype|ft|syntax)[\\\\t ]*=(?i:e(?:macs-|)lisp)(?=$|[:\\\\s]))","name":"emacs-lisp","patterns":[{"begin":"\\\\A(#!)","beginCaptures":{"1":{"name":"punctuation.definition.comment.hashbang.emacs.lisp"}},"end":"$","name":"comment.line.hashbang.emacs.lisp"},{"include":"#main"}],"repository":{"archive-sources":{"captures":{"1":{"name":"support.language.constant.archive-source.emacs.lisp"}},"match":"\\\\b(?<=[()\\\\[\\\\s]|^)(SC|gnu|marmalade|melpa-stable|melpa|org)(?=[()\\\\s]|$)\\\\b"},"arg-values":{"patterns":[{"match":"&(optional|rest)(?=[)\\\\s])","name":"constant.language.$1.arguments.emacs.lisp"}]},"autoload":{"begin":"^(;;;###)(autoload)","beginCaptures":{"1":{"name":"punctuation.definition.comment.emacs.lisp"},"2":{"name":"storage.modifier.autoload.emacs.lisp"}},"contentName":"string.unquoted.other.emacs.lisp","end":"$","name":"comment.line.semicolon.autoload.emacs.lisp"},"binding":{"match":"\\\\b(?<=[()\\\\[\\\\s]|^)(let\\\\*?|set[fq]?)(?=[()\\\\s]|$)","name":"storage.binding.emacs.lisp"},"boolean":{"patterns":[{"match":"\\\\b(?<=[()\\\\[\\\\s]|^)t(?=[()\\\\s]|$)\\\\b","name":"constant.boolean.true.emacs.lisp"},{"match":"\\\\b(?<=[()\\\\[\\\\s]|^)(nil)(?=[()\\\\s]|$)\\\\b","name":"constant.language.nil.emacs.lisp"}]},"cask":{"match":"\\\\b(?<=[()\\\\[\\\\s]|^)(?:files|source|development|depends-on|package-file|package-descriptor|package)(?=[()\\\\s]|$)\\\\b","name":"support.function.emacs.lisp"},"comment":{"begin":";","beginCaptures":{"0":{"name":"punctuation.definition.comment.emacs.lisp"}},"end":"$","name":"comment.line.semicolon.emacs.lisp","patterns":[{"include":"#modeline"},{"include":"#eldoc"}]},"definition":{"patterns":[{"begin":"(\\\\()(?:(cl-(def(?:un|macro|subst)))|(def(?:un|macro|subst)))(?!-)\\\\b(?:\\\\s*(?![-+\\\\d])([-!$%\\\\&*+/:<-@^{}~\\\\w]+))?","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"storage.type.$3.function.cl-lib.emacs.lisp"},"4":{"name":"storage.type.$4.function.emacs.lisp"},"5":{"name":"entity.function.name.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.function.definition.emacs.lisp","patterns":[{"include":"#defun-innards"}]},{"match":"\\\\b(?<=[()\\\\[\\\\s]|^)defun(?=[()\\\\s]|$)","name":"storage.type.function.emacs.lisp"},{"begin":"(?<=\\\\s|^)(\\\\()(def(advice|class|const|custom|face|image|group|package|struct|subst|theme|type|var))(?:\\\\s+([-!$%\\\\&*+/:<-@^{}~\\\\w]+))?(?=[()\\\\s]|$)","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"storage.type.$3.emacs.lisp"},"4":{"name":"entity.name.$3.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.$3.definition.emacs.lisp","patterns":[{"include":"$self"}]},{"match":"\\\\b(?<=[()\\\\[\\\\s]|^)(define-(?:condition|widget))(?=[()\\\\s]|$)\\\\b","name":"storage.type.$1.emacs.lisp"}]},"defun-innards":{"patterns":[{"begin":"\\\\G\\\\s*(\\\\()","beginCaptures":{"0":{"name":"punctuation.section.expression.begin.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.argument-list.expression.emacs.lisp","patterns":[{"include":"#arg-keywords"},{"match":"(?![-#\\\\&'+:\\\\d])([-!$%\\\\&*+/:<-@^{}~\\\\w]+)","name":"variable.parameter.emacs.lisp"},{"include":"$self"}]},{"include":"$self"}]},"docesc":{"patterns":[{"match":"\\\\\\\\{2}=","name":"constant.escape.character.key-sequence.emacs.lisp"},{"match":"\\\\\\\\{2}+","name":"constant.escape.character.suppress-link.emacs.lisp"}]},"dockey":{"captures":{"1":{"name":"punctuation.definition.reference.begin.emacs.lisp"},"2":{"name":"constant.other.reference.link.emacs.lisp"},"3":{"name":"punctuation.definition.reference.end.emacs.lisp"}},"match":"(\\\\\\\\{2}\\\\[)((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(])","name":"variable.other.reference.key-sequence.emacs.lisp"},"docmap":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.reference.begin.emacs.lisp"},"2":{"name":"entity.name.tag.keymap.emacs.lisp"},"3":{"name":"punctuation.definition.reference.end.emacs.lisp"}},"match":"(\\\\\\\\{2}\\\\{)((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(})","name":"meta.keymap.summary.emacs.lisp"},{"captures":{"1":{"name":"punctuation.definition.reference.begin.emacs.lisp"},"2":{"name":"entity.name.tag.keymap.emacs.lisp"},"3":{"name":"punctuation.definition.reference.end.emacs.lisp"}},"match":"(\\\\\\\\{2}<)((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(>)","name":"meta.keymap.specifier.emacs.lisp"}]},"docvar":{"captures":{"1":{"name":"punctuation.definition.quote.begin.emacs.lisp"},"2":{"name":"punctuation.definition.quote.end.emacs.lisp"}},"match":"(\`)[^()\\\\s]+(')","name":"variable.other.literal.emacs.lisp"},"eldoc":{"patterns":[{"include":"#docesc"},{"include":"#docvar"},{"include":"#dockey"},{"include":"#docmap"}]},"escapes":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.codepoint.emacs.lisp"},"2":{"name":"punctuation.definition.codepoint.emacs.lisp"}},"match":"(\\\\?)\\\\\\\\u\\\\h{4}|(\\\\?)\\\\\\\\U00\\\\h{6}","name":"constant.character.escape.hex.emacs.lisp"},{"captures":{"1":{"name":"punctuation.definition.codepoint.emacs.lisp"}},"match":"(\\\\?)\\\\\\\\x\\\\h+","name":"constant.character.escape.hex.emacs.lisp"},{"captures":{"1":{"name":"punctuation.definition.codepoint.emacs.lisp"}},"match":"(\\\\?)\\\\\\\\[0-7]{1,3}","name":"constant.character.escape.octal.emacs.lisp"},{"captures":{"1":{"name":"punctuation.definition.codepoint.emacs.lisp"},"2":{"name":"punctuation.definition.backslash.emacs.lisp"}},"match":"(\\\\?)(?:[^\\\\\\\\]|(\\\\\\\\).)","name":"constant.numeric.codepoint.emacs.lisp"},{"captures":{"1":{"name":"punctuation.definition.backslash.emacs.lisp"}},"match":"(\\\\\\\\).","name":"constant.character.escape.emacs.lisp"}]},"expression":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.expression.begin.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.expression.emacs.lisp","patterns":[{"include":"$self"}]},{"begin":"(')(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.symbol.emacs.lisp"},"2":{"name":"punctuation.section.quoted.expression.begin.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.quoted.expression.end.emacs.lisp"}},"name":"meta.quoted.expression.emacs.lisp","patterns":[{"include":"$self"}]},{"begin":"(\`)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.symbol.emacs.lisp"},"2":{"name":"punctuation.section.backquoted.expression.begin.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.backquoted.expression.end.emacs.lisp"}},"name":"meta.backquoted.expression.emacs.lisp","patterns":[{"include":"$self"}]},{"begin":"(,@)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.symbol.emacs.lisp"},"2":{"name":"punctuation.section.interpolated.expression.begin.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.interpolated.expression.end.emacs.lisp"}},"name":"meta.interpolated.expression.emacs.lisp","patterns":[{"include":"$self"}]}]},"face-innards":{"patterns":[{"captures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"variable.language.display.type.emacs.lisp"},"3":{"name":"support.constant.display.type.emacs.lisp"},"4":{"name":"punctuation.section.expression.end.emacs.lisp"}},"match":"(\\\\()(type)\\\\s+(graphic|x|pc|w32|tty)(\\\\))","name":"meta.expression.display-type.emacs.lisp"},{"captures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"variable.language.display.class.emacs.lisp"},"3":{"name":"support.constant.display.class.emacs.lisp"},"4":{"name":"punctuation.section.expression.end.emacs.lisp"}},"match":"(\\\\()(class)\\\\s+(color|grayscale|mono)(\\\\))","name":"meta.expression.display-class.emacs.lisp"},{"captures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"variable.language.background-type.emacs.lisp"},"3":{"name":"support.constant.background-type.emacs.lisp"},"4":{"name":"punctuation.section.expression.end.emacs.lisp"}},"match":"(\\\\()(background)\\\\s+(light|dark)(\\\\))","name":"meta.expression.background-type.emacs.lisp"},{"begin":"(\\\\()(min-colors|supports)(?=[()\\\\s]|$)","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"variable.language.display-prerequisite.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.expression.display-prerequisite.emacs.lisp","patterns":[{"include":"$self"}]}]},"faces":{"match":"\\\\b(?<=[()\\\\[\\\\s]|^)(?:Buffer-menu-buffer|Info-quoted|Info-title-1-face|Info-title-2-face|Info-title-3-face|Info-title-4-face|Man-overstrike|Man-reverse|Man-underline|antlr-default|antlr-font-lock-default-face|antlr-font-lock-keyword-face|antlr-font-lock-literal-face|antlr-font-lock-ruledef-face|antlr-font-lock-ruleref-face|antlr-font-lock-syntax-face|antlr-font-lock-tokendef-face|antlr-font-lock-tokenref-face|antlr-keyword|antlr-literal|antlr-ruledef|antlr-ruleref|antlr-syntax|antlr-tokendef|antlr-tokenref|apropos-keybinding|apropos-property|apropos-symbol|bat-label-face|bg:erc-color-face0|bg:erc-color-face10??|bg:erc-color-face11|bg:erc-color-face12|bg:erc-color-face13|bg:erc-color-face14|bg:erc-color-face15|bg:erc-color-face2|bg:erc-color-face3|bg:erc-color-face4|bg:erc-color-face5|bg:erc-color-face6|bg:erc-color-face7|bg:erc-color-face8|bg:erc-color-face9|bold-italic|bold|bookmark-menu-bookmark|bookmark-menu-heading|border|breakpoint-disabled|breakpoint-enabled|buffer-menu-buffer|button|c-annotation-face|calc-nonselected-face|calc-selected-face|calendar-month-header|calendar-today|calendar-weekday-header|calendar-weekend-header|change-log-acknowledgement-face|change-log-acknowledgement|change-log-acknowledgment|change-log-conditionals-face|change-log-conditionals|change-log-date-face|change-log-date|change-log-email-face|change-log-email|change-log-file-face|change-log-file|change-log-function-face|change-log-function|change-log-list-face|change-log-list|change-log-name-face|change-log-name|comint-highlight-input|comint-highlight-prompt|compare-windows|compilation-column-number|compilation-error|compilation-info|compilation-line-number|compilation-mode-line-exit|compilation-mode-line-fail|compilation-mode-line-run|compilation-warning|completions-annotations|completions-common-part|completions-first-difference|cperl-array-face|cperl-hash-face|cperl-nonoverridable-face|css-property|css-selector|cua-global-mark|cua-rectangle-noselect|cua-rectangle|cursor|custom-button-mouse|custom-button-pressed-unraised|custom-button-pressed|custom-button-unraised|custom-button|custom-changed|custom-comment-tag|custom-comment|custom-documentation|custom-face-tag|custom-group-subtitle|custom-group-tag-1|custom-group-tag|custom-invalid|custom-link|custom-modified|custom-rogue|custom-saved|custom-set|custom-state|custom-themed|custom-variable-button|custom-variable-tag|custom-visibility|cvs-filename-face|cvs-filename|cvs-handled-face|cvs-handled|cvs-header-face|cvs-header|cvs-marked-face|cvs-marked|cvs-msg-face|cvs-msg|cvs-need-action-face|cvs-need-action|cvs-unknown-face|cvs-unknown|default|diary-anniversary|diary-button|diary-time|diary|diff-added-face|diff-added|diff-changed-face|diff-changed|diff-context-face|diff-context|diff-file-header-face|diff-file-header|diff-function-face|diff-function|diff-header-face|diff-header|diff-hunk-header-face|diff-hunk-header|diff-index-face|diff-index|diff-indicator-added|diff-indicator-changed|diff-indicator-removed|diff-nonexistent-face|diff-nonexistent|diff-refine-added|diff-refine-changed??|diff-refine-removed|diff-removed-face|diff-removed|dired-directory|dired-flagged|dired-header|dired-ignored|dired-mark|dired-marked|dired-perm-write|dired-symlink|dired-warning|ebrowse-default|ebrowse-file-name|ebrowse-member-attribute|ebrowse-member-class|ebrowse-progress|ebrowse-root-class|ebrowse-tree-mark|ediff-current-diff-A|ediff-current-diff-Ancestor|ediff-current-diff-B|ediff-current-diff-C|ediff-even-diff-A|ediff-even-diff-Ancestor|ediff-even-diff-B|ediff-even-diff-C|ediff-fine-diff-A|ediff-fine-diff-Ancestor|ediff-fine-diff-B|ediff-fine-diff-C|ediff-odd-diff-A|ediff-odd-diff-Ancestor|ediff-odd-diff-B|ediff-odd-diff-C|eieio-custom-slot-tag-face|eldoc-highlight-function-argument|epa-field-body|epa-field-name|epa-mark|epa-string|epa-validity-disabled|epa-validity-high|epa-validity-low|epa-validity-medium|erc-action-face|erc-bold-face|erc-button|erc-command-indicator-face|erc-current-nick-face|erc-dangerous-host-face|erc-default-face|erc-direct-msg-face|erc-error-face|erc-fool-face|erc-header-line|erc-input-face|erc-inverse-face|erc-keyword-face|erc-my-nick-face|erc-my-nick-prefix-face|erc-nick-default-face|erc-nick-msg-face|erc-nick-prefix-face|erc-notice-face|erc-pal-face|erc-prompt-face|erc-timestamp-face|erc-underline-face|error|ert-test-result-expected|ert-test-result-unexpected|escape-glyph|eww-form-checkbox|eww-form-file|eww-form-select|eww-form-submit|eww-form-text|eww-form-textarea|eww-invalid-certificate|eww-valid-certificate|excerpt|ffap|fg:erc-color-face0|fg:erc-color-face10??|fg:erc-color-face11|fg:erc-color-face12|fg:erc-color-face13|fg:erc-color-face14|fg:erc-color-face15|fg:erc-color-face2|fg:erc-color-face3|fg:erc-color-face4|fg:erc-color-face5|fg:erc-color-face6|fg:erc-color-face7|fg:erc-color-face8|fg:erc-color-face9|file-name-shadow|fixed-pitch|fixed|flymake-errline|flymake-warnline|flyspell-duplicate|flyspell-incorrect|font-lock-builtin-face|font-lock-comment-delimiter-face|font-lock-comment-face|font-lock-constant-face|font-lock-doc-face|font-lock-function-name-face|font-lock-keyword-face|font-lock-negation-char-face|font-lock-preprocessor-face|font-lock-regexp-grouping-backslash|font-lock-regexp-grouping-construct|font-lock-string-face|font-lock-type-face|font-lock-variable-name-face|font-lock-warning-face|fringe|glyphless-char|gnus-button|gnus-cite-10??|gnus-cite-11|gnus-cite-2|gnus-cite-3|gnus-cite-4|gnus-cite-5|gnus-cite-6|gnus-cite-7|gnus-cite-8|gnus-cite-9|gnus-cite-attribution-face|gnus-cite-attribution|gnus-cite-face-10??|gnus-cite-face-11|gnus-cite-face-2|gnus-cite-face-3|gnus-cite-face-4|gnus-cite-face-5|gnus-cite-face-6|gnus-cite-face-7|gnus-cite-face-8|gnus-cite-face-9|gnus-emphasis-bold-italic|gnus-emphasis-bold|gnus-emphasis-highlight-words|gnus-emphasis-italic|gnus-emphasis-strikethru|gnus-emphasis-underline-bold-italic|gnus-emphasis-underline-bold|gnus-emphasis-underline-italic|gnus-emphasis-underline|gnus-group-mail-1-empty-face|gnus-group-mail-1-empty|gnus-group-mail-1-face|gnus-group-mail-1|gnus-group-mail-2-empty-face|gnus-group-mail-2-empty|gnus-group-mail-2-face|gnus-group-mail-2|gnus-group-mail-3-empty-face|gnus-group-mail-3-empty|gnus-group-mail-3-face|gnus-group-mail-3|gnus-group-mail-low-empty-face|gnus-group-mail-low-empty|gnus-group-mail-low-face|gnus-group-mail-low|gnus-group-news-1-empty-face|gnus-group-news-1-empty|gnus-group-news-1-face|gnus-group-news-1|gnus-group-news-2-empty-face|gnus-group-news-2-empty|gnus-group-news-2-face|gnus-group-news-2|gnus-group-news-3-empty-face|gnus-group-news-3-empty|gnus-group-news-3-face|gnus-group-news-3|gnus-group-news-4-empty-face|gnus-group-news-4-empty|gnus-group-news-4-face|gnus-group-news-4|gnus-group-news-5-empty-face|gnus-group-news-5-empty|gnus-group-news-5-face|gnus-group-news-5|gnus-group-news-6-empty-face|gnus-group-news-6-empty|gnus-group-news-6-face|gnus-group-news-6|gnus-group-news-low-empty-face|gnus-group-news-low-empty|gnus-group-news-low-face|gnus-group-news-low|gnus-header-content-face|gnus-header-content|gnus-header-from-face|gnus-header-from|gnus-header-name-face|gnus-header-name|gnus-header-newsgroups-face|gnus-header-newsgroups|gnus-header-subject-face|gnus-header-subject|gnus-signature-face|gnus-signature|gnus-splash-face|gnus-splash|gnus-summary-cancelled-face|gnus-summary-cancelled|gnus-summary-high-ancient-face|gnus-summary-high-ancient|gnus-summary-high-read-face|gnus-summary-high-read|gnus-summary-high-ticked-face|gnus-summary-high-ticked|gnus-summary-high-undownloaded-face|gnus-summary-high-undownloaded|gnus-summary-high-unread-face|gnus-summary-high-unread|gnus-summary-low-ancient-face|gnus-summary-low-ancient|gnus-summary-low-read-face|gnus-summary-low-read|gnus-summary-low-ticked-face|gnus-summary-low-ticked|gnus-summary-low-undownloaded-face|gnus-summary-low-undownloaded|gnus-summary-low-unread-face|gnus-summary-low-unread|gnus-summary-normal-ancient-face|gnus-summary-normal-ancient|gnus-summary-normal-read-face|gnus-summary-normal-read|gnus-summary-normal-ticked-face|gnus-summary-normal-ticked|gnus-summary-normal-undownloaded-face|gnus-summary-normal-undownloaded|gnus-summary-normal-unread-face|gnus-summary-normal-unread|gnus-summary-selected-face|gnus-summary-selected|gomoku-O|gomoku-X|header-line|help-argument-name|hexl-address-region|hexl-ascii-region|hi-black-b|hi-black-hb|hi-blue-b|hi-blue|hi-green-b|hi-green|hi-pink|hi-red-b|hi-yellow|hide-ifdef-shadow|highlight-changes-delete-face|highlight-changes-delete|highlight-changes-face|highlight-changes|highlight|hl-line|holiday|icomplete-first-match|idlwave-help-link|idlwave-shell-bp|idlwave-shell-disabled-bp|idlwave-shell-electric-stop-line|idlwave-shell-pending-electric-stop|idlwave-shell-pending-stop|ido-first-match|ido-incomplete-regexp|ido-indicator|ido-only-match|ido-subdir|ido-virtual|info-header-node|info-header-xref|info-index-match|info-menu-5|info-menu-header|info-menu-star|info-node|info-title-1|info-title-2|info-title-3|info-title-4|info-xref|isearch-fail|isearch-lazy-highlight-face|isearch|iswitchb-current-match|iswitchb-invalid-regexp|iswitchb-single-match|iswitchb-virtual-matches|italic|landmark-font-lock-face-O|landmark-font-lock-face-X|lazy-highlight|ld-script-location-counter|link-visited|link|log-edit-header|log-edit-summary|log-edit-unknown-header|log-view-file-face|log-view-file|log-view-message-face|log-view-message|makefile-makepp-perl|makefile-shell|makefile-space-face|makefile-space|makefile-targets|match|menu|message-cited-text-face|message-cited-text|message-header-cc-face|message-header-cc|message-header-name-face|message-header-name|message-header-newsgroups-face|message-header-newsgroups|message-header-other-face|message-header-other|message-header-subject-face|message-header-subject|message-header-to-face|message-header-to|message-header-xheader-face|message-header-xheader|message-mml-face|message-mml|message-separator-face|message-separator|mh-folder-address|mh-folder-blacklisted|mh-folder-body|mh-folder-cur-msg-number|mh-folder-date|mh-folder-deleted|mh-folder-followup|mh-folder-msg-number|mh-folder-refiled|mh-folder-sent-to-me-hint|mh-folder-sent-to-me-sender|mh-folder-subject|mh-folder-tick|mh-folder-to|mh-folder-whitelisted|mh-letter-header-field|mh-search-folder|mh-show-cc|mh-show-date|mh-show-from|mh-show-header|mh-show-pgg-bad|mh-show-pgg-good|mh-show-pgg-unknown|mh-show-signature|mh-show-subject|mh-show-to|mh-speedbar-folder-with-unseen-messages|mh-speedbar-folder|mh-speedbar-selected-folder-with-unseen-messages|mh-speedbar-selected-folder|minibuffer-prompt|mm-command-output|mm-uu-extract|mode-line-buffer-id|mode-line-emphasis|mode-line-highlight|mode-line-inactive|mode-line|modeline-buffer-id|modeline-highlight|modeline-inactive|mouse|mpuz-solved|mpuz-text|mpuz-trivial|mpuz-unsolved|newsticker-date-face|newsticker-default-face|newsticker-enclosure-face|newsticker-extra-face|newsticker-feed-face|newsticker-immortal-item-face|newsticker-new-item-face|newsticker-obsolete-item-face|newsticker-old-item-face|newsticker-statistics-face|newsticker-treeview-face|newsticker-treeview-immortal-face|newsticker-treeview-new-face|newsticker-treeview-obsolete-face|newsticker-treeview-old-face|newsticker-treeview-selection-face|next-error|nobreak-space|nxml-attribute-colon|nxml-attribute-local-name|nxml-attribute-prefix|nxml-attribute-value-delimiter|nxml-attribute-value|nxml-cdata-section-CDATA|nxml-cdata-section-content|nxml-cdata-section-delimiter|nxml-char-ref-delimiter|nxml-char-ref-number|nxml-comment-content|nxml-comment-delimiter|nxml-delimited-data|nxml-delimiter|nxml-element-colon|nxml-element-local-name|nxml-element-prefix|nxml-entity-ref-delimiter|nxml-entity-ref-name|nxml-glyph|nxml-hash|nxml-heading|nxml-markup-declaration-delimiter|nxml-name|nxml-namespace-attribute-colon|nxml-namespace-attribute-prefix|nxml-namespace-attribute-value-delimiter|nxml-namespace-attribute-value|nxml-namespace-attribute-xmlns|nxml-outline-active-indicator|nxml-outline-ellipsis|nxml-outline-indicator|nxml-processing-instruction-content|nxml-processing-instruction-delimiter|nxml-processing-instruction-target|nxml-prolog-keyword|nxml-prolog-literal-content|nxml-prolog-literal-delimiter|nxml-ref|nxml-tag-delimiter|nxml-tag-slash|nxml-text|octave-function-comment-block|org-agenda-calendar-event|org-agenda-calendar-sexp|org-agenda-clocking|org-agenda-column-dateline|org-agenda-current-time|org-agenda-date-today|org-agenda-date-weekend|org-agenda-date|org-agenda-diary|org-agenda-dimmed-todo-face|org-agenda-done|org-agenda-filter-category|org-agenda-filter-regexp|org-agenda-filter-tags|org-agenda-restriction-lock|org-agenda-structure|org-archived|org-block-background|org-block-begin-line|org-block-end-line|org-block|org-checkbox-statistics-done|org-checkbox-statistics-todo|org-checkbox|org-clock-overlay|org-code|org-column-title|org-column|org-date-selected|org-date|org-default|org-document-info-keyword|org-document-info|org-document-title|org-done|org-drawer|org-ellipsis|org-footnote|org-formula|org-headline-done|org-hide|org-latex-and-related|org-level-1|org-level-2|org-level-3|org-level-4|org-level-5|org-level-6|org-level-7|org-level-8|org-link|org-list-dt|org-macro|org-meta-line|org-mode-line-clock-overrun|org-mode-line-clock|org-priority|org-property-value|org-quote|org-scheduled-previously|org-scheduled-today|org-scheduled|org-sexp-date|org-special-keyword|org-table|org-tag-group|org-tag|org-target|org-time-grid|org-todo|org-upcoming-deadline|org-verbatim|org-verse|org-warning|outline-1|outline-2|outline-3|outline-4|outline-5|outline-6|outline-7|outline-8|proced-mark|proced-marked|proced-sort-header|pulse-highlight-face|pulse-highlight-start-face|query-replace|rcirc-bright-nick|rcirc-dim-nick|rcirc-keyword|rcirc-my-nick|rcirc-nick-in-message-full-line|rcirc-nick-in-message|rcirc-other-nick|rcirc-prompt|rcirc-server-prefix|rcirc-server|rcirc-timestamp|rcirc-track-keyword|rcirc-track-nick|rcirc-url|reb-match-0|reb-match-1|reb-match-2|reb-match-3|rectangle-preview-face|region|rmail-header-name|rmail-highlight|rng-error|rst-adornment|rst-block|rst-comment|rst-definition|rst-directive|rst-emphasis1|rst-emphasis2|rst-external|rst-level-1|rst-level-2|rst-level-3|rst-level-4|rst-level-5|rst-level-6|rst-literal|rst-reference|rst-transition|ruler-mode-column-number|ruler-mode-comment-column|ruler-mode-current-column|ruler-mode-default|ruler-mode-fill-column|ruler-mode-fringes|ruler-mode-goal-column|ruler-mode-margins|ruler-mode-pad|ruler-mode-tab-stop|scroll-bar|secondary-selection|semantic-highlight-edits-face|semantic-highlight-func-current-tag-face|semantic-unmatched-syntax-face|senator-momentary-highlight-face|sgml-namespace|sh-escaped-newline|sh-heredoc-face|sh-heredoc|sh-quoted-exec|shadow|show-paren-match-face|show-paren-match|show-paren-mismatch-face|show-paren-mismatch|shr-link|shr-strike-through|smerge-base-face|smerge-base|smerge-markers-face|smerge-markers|smerge-mine-face|smerge-mine|smerge-other-face|smerge-other|smerge-refined-added|smerge-refined-changed??|smerge-refined-removed|speedbar-button-face|speedbar-directory-face|speedbar-file-face|speedbar-highlight-face|speedbar-selected-face|speedbar-separator-face|speedbar-tag-face|srecode-separator-face|strokes-char|subscript|success|superscript|table-cell|tcl-escaped-newline|term-bold|term-color-black|term-color-blue|term-color-cyan|term-color-green|term-color-magenta|term-color-red|term-color-white|term-color-yellow|term-underline|term|testcover-1value|testcover-nohits|tex-math-face|tex-math|tex-verbatim-face|tex-verbatim|texinfo-heading-face|texinfo-heading|tmm-inactive|todo-archived-only|todo-button|todo-category-string|todo-comment|todo-date|todo-diary-expired|todo-done-sep|todo-done|todo-key-prompt|todo-mark|todo-nondiary|todo-prefix-string|todo-search|todo-sorted-column|todo-time|todo-top-priority|tool-bar|tooltip|trailing-whitespace|tty-menu-disabled-face|tty-menu-enabled-face|tty-menu-selected-face|underline|variable-pitch|vc-conflict-state|vc-edited-state|vc-locally-added-state|vc-locked-state|vc-missing-state|vc-needs-update-state|vc-removed-state|vc-state-base-face|vc-up-to-date-state|vcursor|vera-font-lock-function|vera-font-lock-interface|vera-font-lock-number|verilog-font-lock-ams-face|verilog-font-lock-grouping-keywords-face|verilog-font-lock-p1800-face|verilog-font-lock-translate-off-face|vertical-border|vhdl-font-lock-attribute-face|vhdl-font-lock-directive-face|vhdl-font-lock-enumvalue-face|vhdl-font-lock-function-face|vhdl-font-lock-generic-/constant-face|vhdl-font-lock-prompt-face|vhdl-font-lock-reserved-words-face|vhdl-font-lock-translate-off-face|vhdl-font-lock-type-face|vhdl-font-lock-variable-face|vhdl-speedbar-architecture-face|vhdl-speedbar-architecture-selected-face|vhdl-speedbar-configuration-face|vhdl-speedbar-configuration-selected-face|vhdl-speedbar-entity-face|vhdl-speedbar-entity-selected-face|vhdl-speedbar-instantiation-face|vhdl-speedbar-instantiation-selected-face|vhdl-speedbar-library-face|vhdl-speedbar-package-face|vhdl-speedbar-package-selected-face|vhdl-speedbar-subprogram-face|viper-minibuffer-emacs|viper-minibuffer-insert|viper-minibuffer-vi|viper-replace-overlay|viper-search|warning|which-func|whitespace-big-indent|whitespace-empty|whitespace-hspace|whitespace-indentation|whitespace-line|whitespace-newline|whitespace-space-after-tab|whitespace-space-before-tab|whitespace-space|whitespace-tab|whitespace-trailing|widget-button-face|widget-button-pressed-face|widget-button-pressed|widget-button|widget-documentation-face|widget-documentation|widget-field-face|widget-field|widget-inactive-face|widget-inactive|widget-single-line-field-face|widget-single-line-field|window-divider-first-pixel|window-divider-last-pixel|window-divider|woman-addition-face|woman-addition|woman-bold-face|woman-bold|woman-italic-face|woman-italic|woman-unknown-face|woman-unknown)(?=[()\\\\s]|$)\\\\b","name":"support.constant.face.emacs.lisp"},"format":{"begin":"\\\\G","contentName":"string.quoted.double.emacs.lisp","end":"(?=\\")","patterns":[{"captures":{"1":{"name":"constant.other.placeholder.emacs.lisp"},"2":{"name":"invalid.illegal.placeholder.emacs.lisp"}},"match":"(%[%SXc-gosx])|(%.)"},{"include":"#string-innards"}]},"formatting":{"begin":"(\\\\()(format|format-message|message|error)(?=\\\\s|$|\\")","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"support.function.$2.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.string-formatting.expression.emacs.lisp","patterns":[{"begin":"\\\\G\\\\s*(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.emacs.lisp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.emacs.lisp"}},"patterns":[{"include":"#format"}]},{"begin":"\\\\G\\\\s*$\\\\n?","end":"\\"|(?>)","name":"constant.command-name.key.emacs.lisp"},{"captures":{"1":{"name":"constant.numeric.integer.int.decimal.emacs.lisp"},"2":{"name":"keyword.operator.arithmetic.multiply.emacs.lisp"}},"match":"([0-9]+)(\\\\*)(?=\\\\S)","name":"meta.key-repetition.emacs.lisp"},{"captures":{"1":{"patterns":[{"include":"#key-notation-prefix"}]},"2":{"name":"constant.character.key.emacs.lisp"}},"match":"\\\\b(M-)(-?[0-9]+)\\\\b","name":"meta.key-sequence.emacs.lisp"},{"captures":{"1":{"patterns":[{"include":"#key-notation-prefix"}]},"2":{"name":"punctuation.definition.angle.bracket.begin.emacs.lisp"},"3":{"name":"constant.control-character.key.emacs.lisp"},"4":{"name":"punctuation.definition.angle.bracket.end.emacs.lisp"},"5":{"name":"constant.control-character.key.emacs.lisp"},"6":{"name":"invalid.illegal.bad-prefix.emacs.lisp"},"7":{"name":"constant.character.key.emacs.lisp"}},"match":"\\\\b((?:[ACHMSs]-)+)(?:(<)(DEL|ESC|LFD|NUL|RET|SPC|TAB)(>)|(DEL|ESC|LFD|NUL|RET|SPC|TAB)\\\\b|([!-_a-z]{2,})|([!-_a-z]))?","name":"meta.key-sequence.emacs.lisp"},{"captures":{"1":{"patterns":[{"match":"<","name":"punctuation.definition.angle.bracket.begin.emacs.lisp"},{"include":"#key-notation-prefix"}]},"2":{"name":"constant.function-key.emacs.lisp"},"3":{"name":"punctuation.definition.angle.bracket.end.emacs.lisp"}},"match":"([ACHMSs]-<|<[ACHMSs]-|<)([-0-9A-Za-z]+)(>)","name":"meta.function-key.emacs.lisp"},{"match":"(?<=\\\\s)(?![<>ACHMSs])[!-_a-z](?=\\\\s)","name":"constant.character.key.emacs.lisp"}]},"key-notation-prefix":{"captures":{"1":{"name":"constant.character.key.modifier.emacs.lisp"},"2":{"name":"punctuation.separator.modifier.dash.emacs.lisp"}},"match":"([ACHMSs])(-)"},"keyword":{"captures":{"1":{"name":"punctuation.definition.keyword.emacs.lisp"}},"match":"(?<=[()\\\\[\\\\s]|^)(:)[-!$%\\\\&*+/:<-@^{}~\\\\w]+","name":"constant.keyword.emacs.lisp"},"lambda":{"begin":"(\\\\()(lambda|function)(?:\\\\s+|(?=[()]))","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"storage.type.lambda.function.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.lambda.expression.emacs.lisp","patterns":[{"include":"#defun-innards"}]},"loop":{"begin":"(\\\\()(cl-loop)(?=[()\\\\s]|$)","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.emacs.lisp"},"2":{"name":"support.function.cl-lib.emacs.lisp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.expression.end.emacs.lisp"}},"name":"meta.cl-lib.loop.emacs.lisp","patterns":[{"match":"(?<=[()\\\\[\\\\s]|^)(above|across|across-ref|always|and|append|as|below|by|collect|concat|count|do|each|finally|for|from|if|in|in-ref|initially|into|maximize|minimize|named|nconc|never|of|of-ref|on|repeat|return|sum|then|thereis|sum|to|unless|until|using|vconcat|when|while|with|being\\\\s+(?:the)?\\\\s+(?:element|hash-key|hash-value|key-code|key-binding|key-seq|overlay|interval|symbols|frame|window|buffer)s?)(?=[()\\\\s]|$)","name":"keyword.control.emacs.lisp"},{"include":"$self"}]},"main":{"patterns":[{"include":"#autoload"},{"include":"#comment"},{"include":"#lambda"},{"include":"#loop"},{"include":"#escapes"},{"include":"#definition"},{"include":"#formatting"},{"include":"#face-innards"},{"include":"#expression"},{"include":"#operators"},{"include":"#functions"},{"include":"#binding"},{"include":"#keyword"},{"include":"#string"},{"include":"#number"},{"include":"#quote"},{"include":"#symbols"},{"include":"#vectors"},{"include":"#arg-values"},{"include":"#archive-sources"},{"include":"#boolean"},{"include":"#faces"},{"include":"#cask"},{"include":"#stdlib"}]},"modeline":{"captures":{"1":{"name":"punctuation.definition.modeline.begin.emacs.lisp"},"2":{"patterns":[{"include":"#modeline-innards"}]},"3":{"name":"punctuation.definition.modeline.end.emacs.lisp"}},"match":"(-\\\\*-)(.*)(-\\\\*-)","name":"meta.modeline.emacs.lisp"},"modeline-innards":{"patterns":[{"captures":{"1":{"name":"variable.assignment.modeline.emacs.lisp"},"2":{"name":"punctuation.separator.key-value.emacs.lisp"},"3":{"patterns":[{"include":"#modeline-innards"}]}},"match":"([^:;\\\\s]+)\\\\s*(:)\\\\s*([^;]*)","name":"meta.modeline.variable.emacs.lisp"},{"match":";","name":"punctuation.terminator.statement.emacs.lisp"},{"match":":","name":"punctuation.separator.key-value.emacs.lisp"},{"match":"\\\\S+","name":"string.other.modeline.emacs.lisp"}]},"number":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.binary.emacs.lisp"}},"match":"(?<=[()\\\\[\\\\s]|^)(#)[Bb][01]+","name":"constant.numeric.integer.binary.emacs.lisp"},{"captures":{"1":{"name":"punctuation.definition.hex.emacs.lisp"}},"match":"(?<=[()\\\\[\\\\s]|^)(#)[Xx]\\\\h+","name":"constant.numeric.integer.hex.viml"},{"match":"(?<=[()\\\\[\\\\s]|^)[-+]?\\\\d*\\\\.\\\\d+(?:[Ee][-+]?\\\\d+|[Ee]\\\\+(?:INF|NaN))?(?=[()\\\\s]|$)","name":"constant.numeric.float.emacs.lisp"},{"match":"(?<=[()\\\\[\\\\s]|^)[-+]?\\\\d+(?:[Ee][-+]?\\\\d+|[Ee]\\\\+(?:INF|NaN))?(?=[()\\\\s]|$)","name":"constant.numeric.integer.emacs.lisp"}]},"operators":{"patterns":[{"match":"(?<=[()]|^)(and|catch|cond|condition-case(?:-unless-debug)?|dotimes|eql?|equal|if|not|or|pcase|prog[12n]|throw|unless|unwind-protect|when|while)(?=[()\\\\s]|$)","name":"keyword.control.$1.emacs.lisp"},{"match":"(?<=[(\\\\s]|^)(interactive)(?=[()\\\\s])","name":"storage.modifier.interactive.function.emacs.lisp"},{"match":"(?<=[(\\\\s]|^)[-%*+/](?=[)\\\\s]|$)","name":"keyword.operator.numeric.emacs.lisp"},{"match":"(?<=[(\\\\s]|^)[/<>]=|[<=>](?=[)\\\\s]|$)","name":"keyword.operator.comparison.emacs.lisp"},{"match":"(?<=\\\\s)\\\\.(?=\\\\s|$)","name":"keyword.operator.pair-separator.emacs.lisp"}]},"quote":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.quote.emacs.lisp"},"2":{"patterns":[{"include":"$self"}]}},"match":"(')([-!$%\\\\&*+/:<-@^{}~\\\\w]+)","name":"constant.other.symbol.emacs.lisp"}]},"stdlib":{"patterns":[{"match":"(?<=[()]|^)(\`--pcase-macroexpander|Buffer-menu-unmark-all-buffers|Buffer-menu-unmark-all|Info-node-description|aa2u-mark-as-text|aa2u-mark-rectangle-as-text|aa2u-rectangle|aa2u|ada-find-file|ada-header|ada-mode|add-abbrev|add-change-log-entry-other-window|add-change-log-entry|add-dir-local-variable|add-file-local-variable-prop-line|add-file-local-variable|add-global-abbrev|add-log-current-defun|add-minor-mode|add-mode-abbrev|add-submenu|add-timeout|add-to-coding-system-list|add-to-list--anon-cmacro|add-variable-watcher|adoc-mode|advertised-undo|advice--add-function|advice--buffer-local|advice--called-interactively-skip|advice--car|advice--cd\\\\*r|advice--cdr|advice--defalias-fset|advice--interactive-form|advice--make-1|advice--make-docstring|advice--make-interactive-form|advice--make|advice--member-p|advice--normalize-place|advice--normalize|advice--props|advice--p|advice--remove-function|advice--set-buffer-local|advice--strip-macro|advice--subst-main|advice--symbol-function|advice--tweak|advice--where|after-insert-file-set-coding|aggressive-indent--extend-end-to-whole-sexps|aggressive-indent--indent-current-balanced-line|aggressive-indent--indent-if-changed|aggressive-indent--keep-track-of-changes|aggressive-indent--local-electric|aggressive-indent--proccess-changed-list-and-indent|aggressive-indent--run-user-hooks|aggressive-indent--softly-indent-defun|aggressive-indent--softly-indent-region-and-on|aggressive-indent-bug-report|aggressive-indent-global-mode|aggressive-indent-indent-defun|aggressive-indent-indent-region-and-on|aggressive-indent-mode-set-explicitly|aggressive-indent-mode|align-current|align-entire|align-highlight-rule|align-newline-and-indent|align-regexp|align-unhighlight-rule|align|alist-get|all-threads|allout-auto-activation-helper|allout-mode-p|allout-mode|allout-setup|allout-widgets-mode|allout-widgets-setup|alter-text-property|and-let\\\\*|ange-ftp-completion-hook-function|apache-mode|apropos-local-value|apropos-local-variable|arabic-shape-gstring|assoc-delete-all|auth-source--decode-octal-string|auth-source--symbol-keyword|auth-source-backend--anon-cmacro|auth-source-backend--eieio-childp|auth-source-backends-parser-file|auth-source-backends-parser-macos-keychain|auth-source-backends-parser-secrets|auth-source-json-check|auth-source-json-search|auth-source-pass-enable|auth-source-secrets-saver|auto-save-visited-mode|backtrace-frame--internal|backtrace-frames|backward-to-word|backward-word-strictly|battery-upower-prop|battery-upower|beginning-of-defun--in-emptyish-line-p|beginning-of-defun-comments|bf-help-describe-symbol|bf-help-mode|bf-help-setup|bignump|bison-mode|blink-cursor--rescan-frames|blink-cursor--should-blink|blink-cursor--start-idle-timer|blink-cursor--start-timer|bookmark-set-no-overwrite|brainfuck-mode|browse-url-conkeror|buffer-hash|bufferpos-to-filepos|byte-compile--function-signature|byte-compile--log-warning-for-byte-compile|byte-compile-cond-jump-table-info|byte-compile-cond-jump-table|byte-compile-cond-vars|byte-compile-define-symbol-prop|byte-compile-file-form-defvar-function|byte-compile-file-form-make-obsolete|byte-opt--arith-reduce|byte-opt--portable-numberp|byte-optimize-1-|byte-optimize-1\\\\+|byte-optimize-memq|c-or-c\\\\+\\\\+-mode|call-shell-region|cancel-debug-on-variable-change|cancel-debug-watch|capitalize-dwim|cconv--convert-funcbody|cconv--remap-llv|char-fold-to-regexp|char-from-name|checkdoc-file|checkdoc-package-keywords|cl--assertion-failed|cl--class-docstring--cmacro|cl--class-docstring|cl--class-index-table--cmacro|cl--class-index-table|cl--class-name--cmacro|cl--class-name|cl--class-p--cmacro|cl--class-parents--cmacro|cl--class-parents|cl--class-p|cl--class-slots--cmacro|cl--class-slots|cl--copy-slot-descriptor-1|cl--copy-slot-descriptor|cl--defstruct-predicate|cl--describe-class-slots?|cl--describe-class|cl--do-&aux|cl--find-class|cl--generic-arg-specializer|cl--generic-build-combined-method|cl--generic-cache-miss|cl--generic-class-parents|cl--generic-derived-specializers|cl--generic-describe|cl--generic-dispatches--cmacro|cl--generic-dispatches|cl--generic-fgrep|cl--generic-generalizer-name--cmacro|cl--generic-generalizer-name|cl--generic-generalizer-p--cmacro|cl--generic-generalizer-priority--cmacro|cl--generic-generalizer-priority|cl--generic-generalizer-p|cl--generic-generalizer-specializers-function--cmacro|cl--generic-generalizer-specializers-function|cl--generic-generalizer-tagcode-function--cmacro|cl--generic-generalizer-tagcode-function|cl--generic-get-dispatcher|cl--generic-isnot-nnm-p|cl--generic-lambda|cl--generic-load-hist-format|cl--generic-make--cmacro|cl--generic-make-defmethod-docstring|cl--generic-make-function|cl--generic-make-method--cmacro|cl--generic-make-method|cl--generic-make-next-function|cl--generic-make|cl--generic-member-method|cl--generic-method-documentation|cl--generic-method-files|cl--generic-method-function--cmacro|cl--generic-method-function|cl--generic-method-info|cl--generic-method-qualifiers--cmacro|cl--generic-method-qualifiers|cl--generic-method-specializers--cmacro|cl--generic-method-specializers|cl--generic-method-table--cmacro|cl--generic-method-table|cl--generic-method-uses-cnm--cmacro|cl--generic-method-uses-cnm|cl--generic-name--cmacro|cl--generic-name)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(cl--generic-no-next-method-function|cl--generic-options--cmacro|cl--generic-options|cl--generic-search-method|cl--generic-specializers-apply-to-type-p|cl--generic-split-args|cl--generic-standard-method-combination|cl--generic-struct-specializers|cl--generic-struct-tag|cl--generic-with-memoization|cl--generic|cl--make-random-state--cmacro|cl--make-random-state|cl--make-slot-descriptor--cmacro|cl--make-slot-descriptor|cl--make-slot-desc|cl--old-struct-type-of|cl--pcase-mutually-exclusive-p|cl--plist-remove|cl--print-table|cl--prog|cl--random-state-i--cmacro|cl--random-state-i|cl--random-state-j--cmacro|cl--random-state-j|cl--random-state-vec--cmacro|cl--random-state-vec|cl--slot-descriptor-initform--cmacro|cl--slot-descriptor-initform|cl--slot-descriptor-name--cmacro|cl--slot-descriptor-name|cl--slot-descriptor-props--cmacro|cl--slot-descriptor-props|cl--slot-descriptor-type--cmacro|cl--slot-descriptor-type|cl--struct-all-parents|cl--struct-cl--generic-method-p--cmacro|cl--struct-cl--generic-method-p|cl--struct-cl--generic-p--cmacro|cl--struct-cl--generic-p|cl--struct-class-children-sym--cmacro|cl--struct-class-children-sym|cl--struct-class-docstring--cmacro|cl--struct-class-docstring|cl--struct-class-index-table--cmacro|cl--struct-class-index-table|cl--struct-class-name--cmacro|cl--struct-class-named--cmacro|cl--struct-class-named?|cl--struct-class-p--cmacro|cl--struct-class-parents--cmacro|cl--struct-class-parents|cl--struct-class-print--cmacro|cl--struct-class-print|cl--struct-class-p|cl--struct-class-slots--cmacro|cl--struct-class-slots|cl--struct-class-tag--cmacro|cl--struct-class-tag|cl--struct-class-type--cmacro|cl--struct-class-type|cl--struct-get-class|cl--struct-name-p|cl--struct-new-class--cmacro|cl--struct-new-class|cl--struct-register-child|cl-call-next-method|cl-defgeneric|cl-defmethod|cl-describe-type|cl-find-class|cl-find-method|cl-generic-all-functions|cl-generic-apply|cl-generic-call-method|cl-generic-combine-methods|cl-generic-current-method-specializers|cl-generic-define-context-rewriter|cl-generic-define-generalizer|cl-generic-define-method|cl-generic-define|cl-generic-ensure-function|cl-generic-function-options|cl-generic-generalizers|cl-generic-make-generalizer--cmacro|cl-generic-make-generalizer|cl-generic-p|cl-iter-defun|cl-method-qualifiers|cl-next-method-p|cl-no-applicable-method|cl-no-next-method|cl-no-primary-method|cl-old-struct-compat-mode|cl-prin1-to-string|cl-prin1|cl-print-expand-ellipsis|cl-print-object|cl-print-to-string-with-limit|cl-prog\\\\*?|cl-random-state-p--cmacro|cl-slot-descriptor-p--cmacro|cl-slot-descriptor-p|cl-struct--pcase-macroexpander|cl-struct-define|cl-struct-p--cmacro|cl-struct-p|cl-struct-slot-value--inliner|cl-typep--inliner|clear-composition-cache|cmake-command-run|cmake-help-command|cmake-help-list-commands|cmake-help-module|cmake-help-property|cmake-help-variable|cmake-help|cmake-mode|coffee-mode|combine-change-calls-1|combine-change-calls|comment-line|comment-make-bol-ws|comment-quote-nested-default|comment-region-default-1|completion--category-override|completion-pcm--pattern-point-idx|condition-mutex|condition-name|condition-notify|condition-variable-p|condition-wait|conf-desktop-mode|conf-toml-mode|conf-toml-recognize-section|connection-local-set-profile-variables|connection-local-set-profiles|copy-cl--generic-generalizer|copy-cl--generic-method|copy-cl--generic|copy-from-above-command|copy-lisp-indent-state|copy-xref-elisp-location|copy-yas--exit|copy-yas--field|copy-yas--mirror|copy-yas--snippet|copy-yas--table|copy-yas--template|css-lookup-symbol|csv-mode|cuda-mode|current-thread|cursor-intangible-mode|cursor-sensor-mode|custom--should-apply-setting|debug-on-variable-change|debug-watch|default-font-width|define-symbol-prop|define-thing-chars|defined-colors-with-face-attributes|delete-selection-uses-region-p|describe-char-eldoc|describe-symbol|dir-locals--all-files|dir-locals-read-from-dir|dired--align-all-files|dired--need-align-p|dired-create-empty-file|dired-do-compress-to|dired-do-find-regexp-and-replace|dired-do-find-regexp|dired-mouse-find-file-other-frame|dired-mouse-find-file|dired-omit-mode|display-buffer--maybe-at-bottom|display-buffer--maybe-pop-up-frame|display-buffer--maybe-pop-up-window|display-buffer-in-child-frame|display-buffer-reuse-mode-window|display-buffer-use-some-frame|display-line-numbers-mode|dna-add-hooks|dna-isearch-forward|dna-mode|dna-reverse-complement-region|dockerfile-build-buffer|dockerfile-build-no-cache-buffer|dockerfile-mode|dolist-with-progress-reporter|dotenv-mode|downcase-dwim|dyalog-ediff-forward-word|dyalog-editor-connect|dyalog-fix-altgr-chars|dyalog-mode|dyalog-session-connect|easy-mmode--mode-docstring|eieio--add-new-slot|eieio--c3-candidate|eieio--c3-merge-lists|eieio--class-children--cmacro|eieio--class-class-allocation-values--cmacro|eieio--class-class-slots--cmacro|eieio--class-class-slots|eieio--class-constructor|eieio--class-default-object-cache--cmacro|eieio--class-docstring--cmacro|eieio--class-docstring|eieio--class-index-table--cmacro|eieio--class-index-table|eieio--class-initarg-tuples--cmacro|eieio--class-make--cmacro|eieio--class-make|eieio--class-method-invocation-order|eieio--class-name--cmacro|eieio--class-name|eieio--class-object|eieio--class-option-assoc|eieio--class-options--cmacro|eieio--class-option|eieio--class-p--cmacro)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(eieio--class-parents--cmacro|eieio--class-parents|eieio--class-precedence-bfs|eieio--class-precedence-c3|eieio--class-precedence-dfs|eieio--class-precedence-list|eieio--class-print-name|eieio--class-p|eieio--class-slot-initarg|eieio--class-slot-name-index|eieio--class-slots--cmacro|eieio--class-slots|eieio--class/struct-parents|eieio--generic-subclass-specializers|eieio--initarg-to-attribute|eieio--object-class-tag|eieio--pcase-macroexpander|eieio--perform-slot-validation-for-default|eieio--perform-slot-validation|eieio--slot-name-index|eieio--slot-override|eieio--validate-class-slot-value|eieio--validate-slot-value|eieio-change-class|eieio-class-slots|eieio-default-superclass--eieio-childp|eieio-defclass-internal|eieio-make-child-predicate|eieio-make-class-predicate|eieio-oref--anon-cmacro|eieio-pcase-slot-index-from-index-table|eieio-pcase-slot-index-table|eieio-slot-descriptor-name|eldoc--supported-p|eldoc-docstring-format-sym-doc|eldoc-mode-set-explicitly|electric-pair--balance-info|electric-pair--insert|electric-pair--inside-string-p|electric-pair--skip-whitespace|electric-pair--syntax-ppss|electric-pair--unbalanced-strings-p|electric-pair--with-uncached-syntax|electric-pair-conservative-inhibit|electric-pair-default-inhibit|electric-pair-default-skip-self|electric-pair-delete-pair|electric-pair-inhibit-if-helps-balance|electric-pair-local-mode|electric-pair-post-self-insert-function|electric-pair-skip-if-helps-balance|electric-pair-syntax-info|electric-pair-will-use-region|electric-quote-local-mode|electric-quote-mode|electric-quote-post-self-insert-function|elisp--font-lock-backslash|elisp--font-lock-flush-elisp-buffers|elisp--xref-backend|elisp--xref-make-xref|elisp-flymake--batch-compile-for-flymake|elisp-flymake--byte-compile-done|elisp-flymake-byte-compile|elisp-flymake-checkdoc|elisp-function-argstring|elisp-get-fnsym-args-string|elisp-get-var-docstring|elisp-load-path-roots|emacs-repository-version-git|enh-ruby-mode|epg-config--make-gpg-configuration|epg-config--make-gpgsm-configuration|epg-context-error-buffer--cmacro|epg-context-error-buffer|epg-find-configuration|erlang-compile|erlang-edoc-mode|erlang-find-tag-other-window|erlang-find-tag|erlang-mode|erlang-shell|erldoc-apropos|erldoc-browse-topic|erldoc-browse|erldoc-eldoc-function|etags--xref-backend|eval-expression-get-print-arguments|event-line-count|face-list-p|facemenu-set-charset|faces--attribute-at-point|faceup-clean-buffer|faceup-defexplainer|faceup-render-view-buffer|faceup-view-buffer|faceup-write-file|fic-mode|file-attribute-access-time|file-attribute-collect|file-attribute-device-number|file-attribute-group-id|file-attribute-inode-number|file-attribute-link-number|file-attribute-modes|file-attribute-modification-time|file-attribute-size|file-attribute-status-change-time|file-attribute-type|file-attribute-user-id|file-local-name|file-name-case-insensitive-p|file-name-quoted-p|file-name-quote|file-name-unquote|file-system-info|filepos-to-bufferpos--dos|filepos-to-bufferpos|files--ask-user-about-large-file|files--ensure-directory|files--force|files--make-magic-temp-file|files--message|files--name-absolute-system-p|files--splice-dirname-file|fill-polish-nobreak-p|find-function-on-key-other-frame|find-function-on-key-other-window|find-library-other-frame|find-library-other-window|fixnump|flymake-cc|flymake-diag-region|flymake-diagnostics|flymake-make-diagnostic|follow-scroll-down-window|follow-scroll-up-window|font-lock--remove-face-from-text-property|form-feed-mode|format-message|forth-block-mode|forth-eval-defun|forth-eval-last-expression-display-output|forth-eval-last-expression|forth-eval-region|forth-eval|forth-interaction-send|forth-kill|forth-load-file|forth-mode|forth-restart|forth-see|forth-switch-to-output-buffer|forth-switch-to-source-buffer|forth-words|fortune-message|forward-to-word|forward-word-strictly|frame--size-history|frame-after-make-frame|frame-ancestor-p|frame-creation-function|frame-edges|frame-focus-state|frame-geometry|frame-inner-height|frame-inner-width|frame-internal-border-width|frame-list-z-order|frame-monitor-attribute|frame-monitor-geometry|frame-monitor-workarea|frame-native-height|frame-native-width|frame-outer-height|frame-outer-width|frame-parent|frame-position|frame-restack|frame-size-changed-p|func-arity|generic--normalize-comments|generic-bracket-support|generic-mode-set-comments|generic-set-comment-syntax|generic-set-comment-vars|get-variable-watchers|gfm-mode|gfm-view-mode|ghc-core-create-core|ghc-core-mode|ghci-script-mode|git-commit--save-and-exit|git-commit-ack|git-commit-cc|git-commit-committer-email|git-commit-committer-name|git-commit-commit|git-commit-find-pseudo-header-position|git-commit-first-env-var|git-commit-font-lock-diff|git-commit-git-config-var|git-commit-insert-header-as-self|git-commit-insert-header|git-commit-mode|git-commit-reported|git-commit-review|git-commit-signoff|git-commit-test|git-define-git-commit-self|git-define-git-commit|gitattributes-mode--highlight-1st-field|gitattributes-mode-backward-field|gitattributes-mode-eldoc|gitattributes-mode-forward-field|gitattributes-mode-help|gitattributes-mode-menu|gitattributes-mode|gitconfig-indent-line|gitconfig-indentation-string|gitconfig-line-indented-p|gitconfig-mode|gitconfig-point-in-indentation-p|gitignore-mode|global-aggressive-indent-mode-check-buffers|global-aggressive-indent-mode-cmhh|global-aggressive-indent-mode-enable-in-buffers|global-aggressive-indent-mode|global-display-line-numbers-mode|global-eldoc-mode-check-buffers|global-eldoc-mode-cmhh|global-eldoc-mode-enable-in-buffers|glsl-mode|gnutls-asynchronous-parameters|gnutls-ciphers|gnutls-digests|gnutls-hash-digest|gnutls-hash-mac|gnutls-macs|gnutls-symmetric-decrypt|gnutls-symmetric-encrypt|go-download-play|go-mode|godoc|gofmt-before-save|gui-backend-get-selection|gui-backend-selection-exists-p|gui-backend-selection-owner-p|gui-backend-set-selection|gv-delay-error|gv-setter|gv-synthetic-place|hack-connection-local-variables-apply|handle-args-function|handle-move-frame|hash-table-empty-p|haskell-align-imports|haskell-c2hs-mode|haskell-cabal-get-dir|haskell-cabal-get-field|haskell-cabal-mode|haskell-cabal-visit-file|haskell-collapse-mode|haskell-compile|haskell-completions-completion-at-point|haskell-decl-scan-mode|haskell-describe|haskell-doc-current-info|haskell-doc-mode|haskell-doc-show-type|haskell-ds-create-imenu-index|haskell-forward-sexp|haskell-hayoo|haskell-hoogle-lookup-from-local|haskell-hoogle|haskell-indent-mode|haskell-indentation-mode|haskell-interactive-bring|haskell-interactive-kill|haskell-interactive-mode-echo|haskell-interactive-mode-reset-error|haskell-interactive-mode-return|haskell-interactive-mode-visit-error|haskell-interactive-switch|haskell-kill-session-process|haskell-menu|haskell-mode-after-save-handler|haskell-mode-find-uses|haskell-mode-generate-tags|haskell-mode-goto-loc|haskell-mode-jump-to-def-or-tag|haskell-mode-jump-to-def|haskell-mode-jump-to-tag|haskell-mode-show-type-at)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(haskell-mode-stylish-buffer|haskell-mode-tag-find|haskell-mode-view-news|haskell-mode|haskell-move-nested-left|haskell-move-nested-right|haskell-move-nested|haskell-navigate-imports-go|haskell-navigate-imports-return|haskell-navigate-imports|haskell-process-cabal-build|haskell-process-cabal-macros|haskell-process-cabal|haskell-process-cd|haskell-process-clear|haskell-process-do-info|haskell-process-do-type|haskell-process-interrupt|haskell-process-load-file|haskell-process-load-or-reload|haskell-process-minimal-imports|haskell-process-reload-devel-main|haskell-process-reload-file|haskell-process-reload|haskell-process-restart|haskell-process-show-repl-response|haskell-process-unignore|haskell-rgrep|haskell-session-all-modules|haskell-session-change-target|haskell-session-change|haskell-session-installed-modules|haskell-session-kill|haskell-session-maybe|haskell-session-process|haskell-session-project-modules|haskell-session|haskell-sort-imports|haskell-tab-indent-mode|haskell-version|hayoo|help--analyze-key|help--binding-undefined-p|help--docstring-quote|help--filter-info-list|help--load-prefixes|help--loaded-p|help--make-usage-docstring|help--make-usage|help--read-key-sequence|help--symbol-completion-table|help-definition-prefixes|help-fns--analyze-function|help-fns-function-description-header|help-fns-short-filename|highlight-uses-mode|hoogle|hyperspec-lookup|ibuffer-jump|ido-dired-other-frame|ido-dired-other-window|ido-display-buffer-other-frame|ido-find-alternate-file-other-window|if-let\\\\*|image-dired-minor-mode|image-mode-to-text|indent--default-inside-comment|indent--funcall-widened|indent-region-line-by-line|indent-relative-first-indent-point|inferior-erlang|inferior-lfe-mode|inferior-lfe|ini-mode|insert-directory-clean|insert-directory-wildcard-in-dir-p|interactive-haskell-mode|internal--compiler-macro-cXXr|internal--syntax-propertize|internal-auto-fill|internal-default-interrupt-process|internal-echo-keystrokes-prefix|internal-handle-focus-in|isearch--describe-regexp-mode|isearch--describe-word-mode|isearch--lax-regexp-function-p|isearch--momentary-message|isearch--yank-char-or-syntax|isearch-define-mode-toggle|isearch-lazy-highlight-start|isearch-string-propertize|isearch-toggle-char-fold|isearch-update-from-string-properties|isearch-xterm-paste|isearch-yank-symbol-or-char|jison-mode|jit-lock--run-functions|js-jsx-mode|js2-highlight-unused-variables-mode|js2-imenu-extras-mode|js2-imenu-extras-setup|js2-jsx-mode|js2-minor-mode|js2-mode|json--check-position|json--decode-utf-16-surrogates|json--plist-reverse|json--plist-to-alist|json--record-path|json-advance--inliner|json-path-to-position|json-peek--inliner|json-pop--inliner|json-pretty-print-buffer-ordered|json-pretty-print-ordered|json-readtable-dispatch|json-skip-whitespace--inliner|kill-current-buffer|kmacro-keyboard-macro-p|kmacro-p|kqueue-add-watch|kqueue-rm-watch|kqueue-valid-p|langdoc-call-fun|langdoc-define-help-mode|langdoc-if-let|langdoc-insert-link|langdoc-matched-strings|langdoc-while-let|lcms-cam02-ucs|lcms-cie-de2000|lcms-jab->jch|lcms-jch->jab|lcms-jch->xyz|lcms-temp->white-point|lcms-xyz->jch|lcms2-available-p|less-css-mode|let-when-compile|lfe-indent-function|lfe-mode|lgstring-remove-glyph|libxml-available-p|line-number-display-width|lisp--el-match-keyword|lisp--el-non-funcall-position-p|lisp-adaptive-fill|lisp-indent-calc-next|lisp-indent-initial-state|lisp-indent-region|lisp-indent-state-p--cmacro|lisp-indent-state-ppss--cmacro|lisp-indent-state-ppss-point--cmacro|lisp-indent-state-ppss-point|lisp-indent-state-ppss|lisp-indent-state-p|lisp-indent-state-stack--cmacro|lisp-indent-state-stack|lisp-ppss|list-timers|literate-haskell-mode|load-user-init-file|loadhist-unload-element|logcount|lread--substitute-object-in-subtree|macroexp-macroexpand|macroexp-parse-body|macrostep-c-mode-hook|macrostep-expand|macrostep-mode|major-mode-restore|major-mode-suspend|make-condition-variable|make-empty-file|make-finalizer|make-mutex|make-nearby-temp-file|make-pipe-process|make-process|make-record|make-temp-file-internal|make-thread|make-xref-elisp-location--cmacro|make-xref-elisp-location|make-yas--exit--cmacro|make-yas--exit|make-yas--field--cmacro|make-yas--field|make-yas--mirror--cmacro|make-yas--mirror|make-yas--snippet--cmacro|make-yas--snippet|make-yas--table--cmacro|make-yas--table|map--apply-alist|map--apply-array|map--apply-hash-table|map--do-alist|map--do-array|map--into-hash-table|map--make-pcase-bindings|map--make-pcase-patterns|map--pcase-macroexpander|map--put|map-apply|map-contains-key|map-copy|map-delete|map-do|map-elt|map-empty-p|map-every-p|map-filter|map-into|map-keys-apply|map-keys|map-length|map-let|map-merge-with|map-merge|map-nested-elt|map-pairs|map-put|map-remove|map-some|map-values-apply|map-values|mapbacktrace|mapp|mark-beginning-of-buffer|mark-end-of-buffer|markdown-live-preview-mode|markdown-mode|markdown-view-mode|mc-hide-unmatched-lines-mode|mc/add-cursor-on-click|mc/edit-beginnings-of-lines|mc/edit-ends-of-lines|mc/edit-lines|mc/insert-letters|mc/insert-numbers|mc/mark-all-dwim|mc/mark-all-in-region-regexp|mc/mark-all-in-region|mc/mark-all-like-this-dwim|mc/mark-all-like-this-in-defun|mc/mark-all-like-this|mc/mark-all-symbols-like-this-in-defun|mc/mark-all-symbols-like-this|mc/mark-all-words-like-this-in-defun|mc/mark-all-words-like-this|mc/mark-more-like-this-extended|mc/mark-next-like-this-word|mc/mark-next-like-this|mc/mark-next-lines|mc/mark-next-symbol-like-this|mc/mark-next-word-like-this|mc/mark-pop|mc/mark-previous-like-this-word|mc/mark-previous-like-this|mc/mark-previous-lines|mc/mark-previous-symbol-like-this|mc/mark-previous-word-like-this|mc/mark-sgml-tag-pair|mc/reverse-regions|mc/skip-to-next-like-this|mc/skip-to-previous-like-this|mc/sort-regions|mc/toggle-cursor-on-click|mc/unmark-next-like-this|mc/unmark-previous-like-this|mc/vertical-align-with-space|mc/vertical-align|menu-bar-bottom-and-right-window-divider|menu-bar-bottom-window-divider|menu-bar-display-line-numbers-mode|menu-bar-goto-uses-etags-p|menu-bar-no-window-divider|menu-bar-right-window-divider|menu-bar-window-divider-customize|mhtml-mode|midnight-mode|minibuffer-maybe-quote-filename|minibuffer-prompt-properties--setter|mm-images-in-region-p|mocha--get-callsite-name|mocha-attach-indium|mocha-check-debugger|mocha-compilation-filter|mocha-debug-at-point|mocha-debug-file|mocha-debug-project|mocha-debugger-get|mocha-debugger-name-p|mocha-debug|mocha-find-current-test|mocha-find-project-root|mocha-generate-command|mocha-list-of-strings-p|mocha-make-imenu-alist|mocha-opts-file|mocha-realgud:nodejs-attach|mocha-run|mocha-test-at-point|mocha-test-file|mocha-test-project|mocha-toggle-imenu-function|mocha-walk-up-to-it|mode-line-default-help-echo|module-function-p|module-load|mouse--click-1-maybe-follows-link|mouse-absolute-pixel-position|mouse-drag-and-drop-region|mouse-drag-bottom-edge|mouse-drag-bottom-left-corner|mouse-drag-bottom-right-corner|mouse-drag-frame|mouse-drag-left-edge|mouse-drag-right-edge|mouse-drag-top-edge|mouse-drag-top-left-corner|mouse-drag-top-right-corner|mouse-resize-frame|move-text--at-first-line-p)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(move-text--at-last-line-p|move-text--at-penultimate-line-p|move-text--last-line-is-just-newline|move-text--total-lines|move-text-default-bindings|move-text-down|move-text-line-down|move-text-line-up|move-text-region-down|move-text-region-up|move-text-region|move-text-up|move-to-window-group-line|mule--ucs-names-annotation|multiple-cursors-mode|mutex-lock|mutex-name|mutex-unlock|mutexp|nasm-mode|newlisp-mode|newlisp-show-repl|next-error-buffer-on-selected-frame|next-error-found|next-error-select-buffer|ninja-mode|obarray-get|obarray-make|obarray-map|obarray-put|obarray-remove|obarray-size|obarrayp|occur-regexp-descr|org-columns-insert-dblock|org-duration-from-minutes|org-duration-h:mm-only-p|org-duration-p|org-duration-set-regexps|org-duration-to-minutes|org-lint|package--activate-autoloads-and-load-path|package--add-to-compatibility-table|package--append-to-alist|package--autoloads-file-name|package--build-compatibility-table|package--check-signature-content|package--download-and-read-archives|package--find-non-dependencies|package--get-deps|package--incompatible-p|package--load-files-for-activation|package--newest-p|package--prettify-quick-help-key|package--print-help-section|package--quickstart-maybe-refresh|package--read-pkg-desc|package--removable-packages|package--remove-hidden|package--save-selected-packages|package--sort-by-dependence|package--sort-deps-in-alist|package--update-downloads-in-progress|package--update-selected-packages|package--used-elsewhere-p|package--user-installed-p|package--user-selected-p|package--with-response-buffer|package-activate-all|package-archive-priority|package-autoremove|package-delete-button-action|package-desc-priority-version|package-desc-priority|package-dir-info|package-install-selected-packages|package-menu--find-and-notify-upgrades|package-menu--list-to-prompt|package-menu--mark-or-notify-upgrades|package-menu--mark-upgrades-1|package-menu--partition-transaction|package-menu--perform-transaction|package-menu--populate-new-package-list|package-menu--post-refresh|package-menu--print-info-simple|package-menu--prompt-transaction-p|package-menu-hide-package|package-menu-mode-menu|package-menu-toggle-hiding|package-quickstart-refresh|package-reinstall|pcase--edebug-match-macro|pcase--make-docstring|pcase-lambda|pcomplete/find|perl-flymake|picolisp-mode|picolisp-repl-mode|picolisp-repl|pixel-scroll-mode|pos-visible-in-window-group-p|pov-mode|powershell-mode|powershell|prefix-command-preserve-state|prefix-command-update|prettify-symbols--post-command-hook|prettify-symbols-default-compose-p|print--preprocess|process-thread|prog-first-column|project-current|project-find-file|project-find-regexp|project-or-external-find-file|project-or-external-find-regexp|proper-list-p|provided-mode-derived-p|pulse-momentary-highlight-one-line|pulse-momentary-highlight-region|quelpa|query-replace--split-string|radix-tree--insert|radix-tree--lookup|radix-tree--prefixes|radix-tree--remove|radix-tree--subtree|radix-tree-count|radix-tree-from-map|radix-tree-insert|radix-tree-iter-mappings|radix-tree-iter-subtrees|radix-tree-leaf--pcase-macroexpander|radix-tree-lookup|radix-tree-prefixes|radix-tree-subtree|read-answer|read-multiple-choice|readable-foreground-color|recenter-window-group|recentf-mode|recode-file-name|recode-region|record-window-buffer|recordp?|recover-file|recover-session-finish|recover-session|recover-this-file|rectangle-mark-mode|rectangle-number-lines|rectangular-region-mode|redirect-debugging-output|redisplay--pre-redisplay-functions|redisplay--update-region-highlight|redraw-modeline|refill-mode|reftex-all-document-files|reftex-citation|reftex-index-phrases-mode|reftex-isearch-minor-mode|reftex-mode|reftex-reset-scanning-information|regexp-builder|regexp-opt-group|region-active-p|region-bounds|region-modifiable-p|region-noncontiguous-p|register-ccl-program|register-code-conversion-map|register-definition-prefixes|register-describe-oneline|register-input-method|register-preview-default|register-preview|register-swap-out|register-to-point|register-val-describe|register-val-insert|register-val-jump-to|registerv--make--cmacro|registerv--make|registerv-data--cmacro|registerv-data|registerv-insert-func--cmacro|registerv-insert-func|registerv-jump-func--cmacro|registerv-jump-func|registerv-make|registerv-p--cmacro|registerv-print-func--cmacro|registerv-print-func|registerv-p|remember-clipboard|remember-diary-extract-entries|remember-notes|remember-other-frame|remember|remove-variable-watcher|remove-yank-excluded-properties|rename-uniquely|repeat-complex-command|repeat-matching-complex-command|repeat|replace--push-stack|replace-buffer-contents|replace-dehighlight|replace-eval-replacement|replace-highlight|replace-loop-through-replacements|replace-match-data|replace-match-maybe-edit|replace-match-string-symbols|replace-quote|replace-rectangle|replace-regexp|replace-search|replace-string|report-emacs-bug|report-errors|reporter-submit-bug-report|reposition-window|repunctuate-sentences|reset-language-environment|reset-this-command-lengths|resize-mini-window-internal|resize-temp-buffer-window|reveal-mode|reverse-region|revert-buffer--default|revert-buffer-insert-file-contents--default-function|revert-buffer-with-coding-system|rfc2104-hash|rfc822-goto-eoh|rfn-eshadow-setup-minibuffer|rfn-eshadow-sifn-equal|rfn-eshadow-update-overlay|rgrep|right-char|right-word|rlogin|rmail-input|rmail-mode|rmail-movemail-variant-p|rmail-output-as-seen|run-erlang|run-forth|run-haskell|run-lfe|run-newlisp|run-sml|rust-mode|rx--pcase-macroexpander|save-mark-and-excursion--restore|save-mark-and-excursion--save|save-mark-and-excursion|save-place-local-mode|save-place-mode|scad-mode|search-forward-help-for-help|secondary-selection-exist-p|secondary-selection-from-region|secondary-selection-to-region|secure-hash-algorithms|sed-mode|selected-window-group|seq--activate-font-lock-keywords|seq--elt-safe|seq--into-list|seq--into-string|seq--into-vector|seq--make-pcase-bindings|seq--make-pcase-patterns|seq--pcase-macroexpander|seq-contains|seq-difference|seq-do-indexed|seq-find|seq-group-by|seq-intersection|seq-into-sequence|seq-into|seq-let|seq-map-indexed|seq-mapcat|seq-mapn|seq-max|seq-min|seq-partition|seq-position|seq-random-elt|seq-set-equal-p|seq-some|seq-sort-by|seqp|set--this-command-keys|set-binary-mode|set-buffer-redisplay|set-mouse-absolute-pixel-position|set-process-thread|set-rectangular-region-anchor|set-window-group-start|shell-command--save-pos-or-erase|shell-command--set-point-after-cmd|shift-number-down|shift-number-up|slime-connect|slime-lisp-mode-hook|slime-mode|slime-scheme-mode-hook|slime-selector|slime-setup|slime|smerge-refine-regions|sml-cm-mode|sml-lex-mode|sml-mode|sml-run|sml-yacc-mode|snippet-mode|spice-mode|split-window-no-error|sql-mariadb|ssh-authorized-keys-mode|ssh-config-mode|ssh-known-hosts-mode|startup--setup-quote-display|string-distance|string-greaterp|string-version-lessp|string>|subr--with-wrapper-hook-no-warnings|switch-to-haskell|sxhash-eql|sxhash-equal|sxhash-eq|syntax-ppss--data)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(tabulated-list--col-local-max-widths|tabulated-list--get-sorter|tabulated-list-header-overlay-p|tabulated-list-line-number-width|tabulated-list-watch-line-number-width|tabulated-list-window-scroll-function|terminal-init-xterm|thing-at-point--beginning-of-sexp|thing-at-point--end-of-sexp|thing-at-point--read-from-whole-string|thread--blocker|thread-alive-p|thread-handle-event|thread-join|thread-last-error|thread-live-p|thread-name|thread-signal|thread-yield|threadp|tildify-mode|tildify-space|toml-mode|tramp-archive-autoload-file-name-regexp|tramp-register-archive-file-name-handler|tty-color-24bit|turn-on-haskell-decl-scan|turn-on-haskell-doc-mode|turn-on-haskell-doc|turn-on-haskell-indentation|turn-on-haskell-indent|turn-on-haskell-unicode-input-method|typescript-mode|uncomment-region-default-1|undo--wrap-and-run-primitive-undo|undo-amalgamate-change-group|undo-auto--add-boundary|undo-auto--boundaries|undo-auto--boundary-ensure-timer|undo-auto--boundary-timer|undo-auto--ensure-boundary|undo-auto--last-boundary-amalgamating-number|undo-auto--needs-boundary-p|undo-auto--undoable-change|undo-auto-amalgamate|universal-argument--description|universal-argument--preserve|upcase-char|upcase-dwim|url-asynchronous--cmacro|url-asynchronous|url-directory-files|url-domain|url-file-attributes|url-file-directory-p|url-file-executable-p|url-file-exists-p|url-file-handler-identity|url-file-name-all-completions|url-file-name-completion|url-file-symlink-p|url-file-truename|url-file-writable-p|url-handler-directory-file-name|url-handler-expand-file-name|url-handler-file-name-directory|url-handler-file-remote-p|url-handler-unhandled-file-name-directory|url-handlers-create-wrapper|url-handlers-set-buffer-mode|url-insert-buffer-contents|url-insert|url-run-real-handler|user-ptrp|userlock--ask-user-about-supersession-threat|vc-message-unresolved-conflicts|vc-print-branch-log|vc-push|vc-refresh-state|version-control-safe-local-p|vimrc-mode|wavefront-obj-mode|when-let\\\\*|window--adjust-process-windows|window--even-window-sizes|window--make-major-side-window-next-to|window--make-major-side-window|window--process-window-list|window--sides-check-failed|window--sides-check|window--sides-reverse-all|window--sides-reverse-frame|window--sides-reverse-on-frame-p|window--sides-reverse-side|window--sides-reverse|window--sides-verticalize-frame|window--sides-verticalize|window-absolute-body-pixel-edges|window-absolute-pixel-position|window-adjust-process-window-size-largest|window-adjust-process-window-size-smallest|window-adjust-process-window-size|window-body-edges|window-body-pixel-edges|window-divider-mode-apply|window-divider-mode|window-divider-width-valid-p|window-font-height|window-font-width|window-group-end|window-group-start|window-largest-empty-rectangle--disjoint-maximums|window-largest-empty-rectangle--maximums-1|window-largest-empty-rectangle--maximums|window-largest-empty-rectangle|window-lines-pixel-dimensions|window-main-window|window-max-chars-per-line|window-pixel-height-before-size-change|window-pixel-width-before-size-change|window-swap-states|window-system-initialization|window-toggle-side-windows|with-connection-local-profiles|with-mutex|x-load-color-file|xml-remove-comments|xref-backend-apropos|xref-backend-definitions|xref-backend-identifier-completion-table|xref-collect-matches|xref-elisp-location-file--cmacro|xref-elisp-location-file|xref-elisp-location-p--cmacro|xref-elisp-location-symbol--cmacro|xref-elisp-location-symbol|xref-elisp-location-type--cmacro|xref-elisp-location-type|xref-find-backend|xref-find-definitions-at-mouse|xref-make-elisp-location--cmacro|xref-marker-stack-empty-p|xterm--init-activate-get-selection|xterm--init-activate-set-selection|xterm--init-bracketed-paste-mode|xterm--init-focus-tracking|xterm--init-frame-title|xterm--init-modify-other-keys|xterm--pasted-text|xterm--push-map|xterm--query|xterm--read-event-for-query|xterm--report-background-handler|xterm--selection-char|xterm--suspend-tty-function|xterm--version-handler|xterm-maybe-set-dark-background-mode|xterm-paste|xterm-register-default-colors|xterm-rgb-convert-to-16bit|xterm-set-window-title-flag|xterm-set-window-title|xterm-translate-bracketed-paste|xterm-translate-focus-in|xterm-translate-focus-out|xterm-unset-window-title-flag|xwidget-webkit-browse-url|yaml-mode|yas--add-template|yas--advance-end-maybe|yas--advance-end-of-parents-maybe|yas--advance-start-maybe|yas--all-templates|yas--apply-transform|yas--auto-fill-wrapper|yas--auto-fill|yas--auto-next|yas--calculate-adjacencies|yas--calculate-group|yas--calculate-mirror-depth|yas--calculate-simple-fom-parentage|yas--check-commit-snippet|yas--collect-snippet-markers|yas--commit-snippet|yas--compute-major-mode-and-parents|yas--create-snippet-xrefs|yas--define-menu-1|yas--define-parents|yas--define-snippets-1|yas--define-snippets-2|yas--define|yas--delete-from-keymap|yas--delete-regions|yas--describe-pretty-table|yas--escape-string|yas--eval-condition|yas--eval-for-effect|yas--eval-for-string|yas--exit-marker--cmacro|yas--exit-marker|yas--exit-next--cmacro|yas--exit-next|yas--exit-p--cmacro|yas--exit-p|yas--expand-from-keymap-doc|yas--expand-from-trigger-key-doc|yas--expand-or-prompt-for-template|yas--expand-or-visit-from-menu|yas--fallback-translate-input|yas--fallback|yas--fetch|yas--field-contains-point-p|yas--field-end--cmacro|yas--field-end|yas--field-mirrors--cmacro|yas--field-mirrors|yas--field-modified-p--cmacro|yas--field-modified-p|yas--field-next--cmacro|yas--field-next|yas--field-number--cmacro|yas--field-number|yas--field-p--cmacro|yas--field-parent-field--cmacro|yas--field-parent-field|yas--field-parse-create|yas--field-probably-deleted-p|yas--field-p|yas--field-start--cmacro|yas--field-start|yas--field-text-for-display|yas--field-transform--cmacro|yas--field-transform|yas--field-update-display|yas--filter-templates-by-condition|yas--find-next-field|yas--finish-moving-snippets|yas--fom-end|yas--fom-next|yas--fom-parent-field|yas--fom-start|yas--format|yas--get-field-once|yas--get-snippet-tables|yas--get-template-by-uuid|yas--global-mode-reload-with-jit-maybe|yas--goto-saved-location|yas--guess-snippet-directories-1|yas--guess-snippet-directories|yas--indent-parse-create|yas--indent-region|yas--indent|yas--key-from-desc|yas--keybinding-beyond-yasnippet|yas--letenv|yas--load-directory-1|yas--load-directory-2|yas--load-pending-jits|yas--load-snippet-dirs|yas--load-yas-setup-file|yas--lookup-snippet-1|yas--make-control-overlay|yas--make-directory-maybe|yas--make-exit--cmacro|yas--make-exit|yas--make-field--cmacro|yas--make-field|yas--make-marker|yas--make-menu-binding|yas--make-mirror--cmacro|yas--make-mirror|yas--make-move-active-field-overlay|yas--make-move-field-protection-overlays|yas--make-snippet--cmacro|yas--make-snippet-table--cmacro|yas--make-snippet-table|yas--make-snippet|yas--make-template--cmacro|yas--make-template)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(yas--mark-this-and-children-modified|yas--markers-to-points|yas--maybe-clear-field-filter|yas--maybe-expand-from-keymap-filter|yas--maybe-expand-key-filter|yas--maybe-move-to-active-field|yas--menu-keymap-get-create|yas--message|yas--minor-mode-menu|yas--mirror-depth--cmacro|yas--mirror-depth|yas--mirror-end--cmacro|yas--mirror-end|yas--mirror-next--cmacro|yas--mirror-next|yas--mirror-p--cmacro|yas--mirror-parent-field--cmacro|yas--mirror-parent-field|yas--mirror-p|yas--mirror-start--cmacro|yas--mirror-start|yas--mirror-transform--cmacro|yas--mirror-transform|yas--mirror-update-display|yas--modes-to-activate|yas--move-to-field|yas--namehash-templates-alist|yas--on-buffer-kill|yas--on-field-overlay-modification|yas--on-protection-overlay-modification|yas--parse-template|yas--place-overlays|yas--points-to-markers|yas--post-command-handler|yas--prepare-snippets-for-move|yas--prompt-for-keys|yas--prompt-for-table|yas--prompt-for-template|yas--protect-escapes|yas--read-keybinding|yas--read-lisp|yas--read-table|yas--remove-misc-free-from-undo|yas--remove-template-by-uuid|yas--replace-all|yas--require-template-specific-condition-p|yas--restore-backquotes|yas--restore-escapes|yas--restore-marker-location|yas--restore-overlay-line-location|yas--restore-overlay-location|yas--safely-call-fun|yas--safely-run-hook|yas--save-backquotes|yas--save-restriction-and-widen|yas--scan-sexps|yas--schedule-jit|yas--show-menu-p|yas--simple-fom-create|yas--skip-and-clear-field-p|yas--skip-and-clear|yas--snapshot-marker-location|yas--snapshot-overlay-line-location|yas--snapshot-overlay-location|yas--snippet-active-field--cmacro|yas--snippet-active-field|yas--snippet-control-overlay--cmacro|yas--snippet-control-overlay|yas--snippet-create|yas--snippet-description-finish-runonce|yas--snippet-exit--cmacro|yas--snippet-exit|yas--snippet-expand-env--cmacro|yas--snippet-expand-env|yas--snippet-field-compare|yas--snippet-fields--cmacro|yas--snippet-fields|yas--snippet-find-field|yas--snippet-force-exit--cmacro|yas--snippet-force-exit|yas--snippet-id--cmacro|yas--snippet-id|yas--snippet-live-p|yas--snippet-map-markers|yas--snippet-next-id|yas--snippet-p--cmacro|yas--snippet-parse-create|yas--snippet-previous-active-field--cmacro|yas--snippet-previous-active-field|yas--snippet-p|yas--snippet-revive|yas--snippet-sort-fields|yas--snippets-at-point|yas--subdirs|yas--table-all-keys|yas--table-direct-keymap--cmacro|yas--table-direct-keymap|yas--table-get-create|yas--table-hash--cmacro|yas--table-hash|yas--table-mode|yas--table-name--cmacro|yas--table-name|yas--table-p--cmacro|yas--table-parents--cmacro|yas--table-parents|yas--table-p|yas--table-templates|yas--table-uuidhash--cmacro|yas--table-uuidhash|yas--take-care-of-redo|yas--template-can-expand-p|yas--template-condition--cmacro|yas--template-condition|yas--template-content--cmacro|yas--template-content|yas--template-expand-env--cmacro|yas--template-expand-env|yas--template-fine-group|yas--template-get-file|yas--template-group--cmacro|yas--template-group|yas--template-key--cmacro|yas--template-keybinding--cmacro|yas--template-keybinding|yas--template-key|yas--template-load-file--cmacro|yas--template-load-file|yas--template-menu-binding-pair--cmacro|yas--template-menu-binding-pair-get-create|yas--template-menu-binding-pair|yas--template-menu-managed-by-yas-define-menu|yas--template-name--cmacro|yas--template-name|yas--template-p--cmacro|yas--template-perm-group--cmacro|yas--template-perm-group|yas--template-pretty-list|yas--template-p|yas--template-save-file--cmacro|yas--template-save-file|yas--template-table--cmacro|yas--template-table|yas--template-uuid--cmacro|yas--template-uuid|yas--templates-for-key-at-point|yas--transform-mirror-parse-create|yas--undo-in-progress|yas--update-mirrors|yas--update-template-menu|yas--update-template|yas--visit-snippet-file-1|yas--warning|yas--watch-auto-fill|yas-abort-snippet|yas-about|yas-activate-extra-mode|yas-active-keys|yas-active-snippets|yas-auto-next|yas-choose-value|yas-compile-directory|yas-completing-prompt|yas-current-field|yas-deactivate-extra-mode|yas-default-from-field|yas-define-condition-cache|yas-define-menu|yas-define-snippets|yas-describe-table-by-namehash|yas-describe-tables|yas-direct-keymaps-reload|yas-dropdown-prompt|yas-escape-text|yas-exit-all-snippets|yas-exit-snippet|yas-expand-from-keymap|yas-expand-from-trigger-key|yas-expand-snippet|yas-expand|yas-field-value|yas-global-mode-check-buffers|yas-global-mode-cmhh|yas-global-mode-enable-in-buffers|yas-global-mode|yas-hippie-try-expand|yas-ido-prompt|yas-initialize|yas-insert-snippet|yas-inside-string|yas-key-to-value|yas-load-directory|yas-load-snippet-buffer-and-close|yas-load-snippet-buffer|yas-longest-key-from-whitespace|yas-lookup-snippet|yas-maybe-ido-prompt|yas-maybe-load-snippet-buffer|yas-minor-mode-on|yas-minor-mode-set-explicitly|yas-minor-mode|yas-new-snippet|yas-next-field-or-maybe-expand|yas-next-field-will-exit-p|yas-next-field|yas-no-prompt|yas-prev-field|yas-recompile-all|yas-reload-all|yas-selected-text|yas-shortest-key-until-whitespace|yas-skip-and-clear-field|yas-skip-and-clear-or-delete-char|yas-snippet-dirs|yas-snippet-mode-buffer-p|yas-substr|yas-text|yas-throw|yas-try-key-from-whitespace|yas-tryout-snippet|yas-unimplemented|yas-verify-value|yas-visit-snippet-file|yas-x-prompt|yas/abort-snippet|yas/about|yas/choose-value|yas/compile-directory|yas/completing-prompt|yas/default-from-field|yas/define-condition-cache|yas/define-menu|yas/define-snippets|yas/describe-tables|yas/direct-keymaps-reload|yas/dropdown-prompt|yas/exit-all-snippets|yas/exit-snippet|yas/expand-from-keymap|yas/expand-from-trigger-key|yas/expand-snippet|yas/expand|yas/field-value|yas/global-mode|yas/hippie-try-expand|yas/ido-prompt|yas/initialize|yas/insert-snippet|yas/inside-string|yas/key-to-value|yas/load-directory|yas/load-snippet-buffer|yas/minor-mode-on|yas/minor-mode|yas/new-snippet|yas/next-field-or-maybe-expand|yas/next-field|yas/no-prompt|yas/prev-field|yas/recompile-all|yas/reload-all|yas/selected-text|yas/skip-and-clear-or-delete-char|yas/snippet-dirs|yas/substr|yas/text|yas/throw|yas/tryout-snippet|yas/unimplemented|yas/verify-value|yas/visit-snippet-file|yas/x-prompt|yasnippet-unload-function|zap-up-to-char)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(abbrev-all-caps|abbrev-expand-function|abbrev-expansion|abbrev-file-name|abbrev-get|abbrev-insert|abbrev-map|abbrev-minor-mode-table-alist|abbrev-prefix-mark|abbrev-put|abbrev-start-location|abbrev-start-location-buffer|abbrev-symbol|abbrev-table-get|abbrev-table-name-list|abbrev-table-p|abbrev-table-put|abbreviate-file-name|abbrevs-changed|abort-recursive-edit|accept-change-group|accept-process-output|access-file|accessible-keymaps|acos|activate-change-group|activate-mark-hook|active-minibuffer-window|adaptive-fill-first-line-regexp|adaptive-fill-function|adaptive-fill-mode|adaptive-fill-regexp|add-face-text-property|add-function|add-hook|add-name-to-file|add-text-properties|add-to-history|add-to-invisibility-spec|add-to-list|add-to-ordered-list|adjust-window-trailing-edge|advice-add|advice-eval-interactive-spec|advice-function-mapc|advice-function-member-p|advice-mapc|advice-member-p|advice-remove|after-change-functions|after-change-major-mode-hook|after-find-file|after-init-hook|after-init-time|after-insert-file-functions|after-load-functions|after-make-frame-functions|after-revert-hook|after-save-hook|after-setting-font-hook|all-completions|append-to-file|apply-partially|apropos|aref|argv|arrayp|ascii-case-table|aset|ash|asin|ask-user-about-lock|ask-user-about-supersession-threat|assoc-default|assoc-string|assq|assq-delete-all|atan|atom|auto-coding-alist|auto-coding-functions|auto-coding-regexp-alist|auto-fill-chars|auto-fill-function|auto-hscroll-mode|auto-mode-alist|auto-raise-tool-bar-buttons|auto-resize-tool-bars|auto-save-default|auto-save-file-name-p|auto-save-hook|auto-save-interval|auto-save-list-file-name|auto-save-list-file-prefix|auto-save-mode|auto-save-timeout|auto-save-visited-file-name|auto-window-vscroll|autoload|autoload-do-load|autoloadp|back-to-indentation|backtrace|backtrace-debug|backtrace-frame|backup-buffer|backup-by-copying|backup-by-copying-when-linked|backup-by-copying-when-mismatch|backup-by-copying-when-privileged-mismatch|backup-directory-alist|backup-enable-predicate|backup-file-name-p|backup-inhibited|backward-button|backward-char|backward-delete-char-untabify|backward-delete-char-untabify-method|backward-list|backward-prefix-chars|backward-sexp|backward-to-indentation|backward-word|balance-windows|balance-windows-area|barf-if-buffer-read-only|base64-decode-region|base64-decode-string|base64-encode-region|base64-encode-string|batch-byte-compile|baud-rate|beep|before-change-functions|before-hack-local-variables-hook|before-init-hook|before-init-time|before-make-frame-hook|before-revert-hook|before-save-hook|beginning-of-buffer|beginning-of-defun|beginning-of-defun-function|beginning-of-line|bidi-display-reordering|bidi-paragraph-direction|bidi-string-mark-left-to-right|bindat-get-field|bindat-ip-to-string|bindat-length|bindat-pack|bindat-unpack|bitmap-spec-p|blink-cursor-alist|blink-matching-delay|blink-matching-open|blink-matching-paren|blink-matching-paren-distance|blink-paren-function|bobp|bolp|bool-vector-count-consecutive|bool-vector-count-population|bool-vector-exclusive-or|bool-vector-intersection|bool-vector-not|bool-vector-p|bool-vector-set-difference|bool-vector-subsetp|bool-vector-union|booleanp|boundp|buffer-access-fontified-property|buffer-access-fontify-functions|buffer-auto-save-file-format|buffer-auto-save-file-name|buffer-backed-up|buffer-base-buffer|buffer-chars-modified-tick|buffer-disable-undo|buffer-display-count|buffer-display-table|buffer-display-time|buffer-enable-undo|buffer-end|buffer-file-coding-system|buffer-file-format|buffer-file-name|buffer-file-number|buffer-file-truename|buffer-invisibility-spec|buffer-list|buffer-list-update-hook|buffer-live-p|buffer-local-value|buffer-local-variables|buffer-modified-p|buffer-modified-tick|buffer-name|buffer-name-history|buffer-narrowed-p|buffer-offer-save|buffer-quit-function|buffer-read-only|buffer-save-without-query|buffer-saved-size|buffer-size|buffer-stale-function|buffer-string|buffer-substring|buffer-substring-filters|buffer-substring-no-properties|buffer-swap-text|buffer-undo-list|bufferp|bury-buffer|button-activate|button-at|button-end|button-get|button-has-type-p|button-label|button-put|button-start|button-type|button-type-get|button-type-put|button-type-subtype-p|byte-boolean-vars|byte-code-function-p|byte-compile|byte-compile-dynamic|byte-compile-dynamic-docstrings|byte-compile-file|byte-recompile-directory|byte-to-position|byte-to-string|call-interactively|call-process|call-process-region|call-process-shell-command|called-interactively-p|cancel-change-group|cancel-debug-on-entry|cancel-timer|capitalize|capitalize-region|capitalize-word|case-fold-search|case-replace|case-table-p|category-docstring|category-set-mnemonics|category-table|category-table-p|ceiling|change-major-mode-after-body-hook|change-major-mode-hook|char-after|char-before|char-category-set|char-charset|char-code-property-description|char-displayable-p|char-equal|char-or-string-p|char-property-alias-alist|char-script-table|char-syntax|char-table-extra-slot|char-table-p|char-table-parent|char-table-range|char-table-subtype|char-to-string|char-width|char-width-table|characterp|charset-after|charset-list|charset-plist|charset-priority-list|charsetp|check-coding-system|check-coding-systems-region|checkdoc-minor-mode|cl|clear-abbrev-table|clear-image-cache|clear-string|clear-this-command-keys|clear-visited-file-modtime|clone-indirect-buffer|clrhash|coding-system-aliases|coding-system-change-eol-conversion|coding-system-change-text-conversion|coding-system-charset-list|coding-system-eol-type|coding-system-for-read|coding-system-for-write|coding-system-get|coding-system-list|coding-system-p|coding-system-priority-list|collapse-delayed-warnings|color-defined-p|color-gray-p|color-supported-p|color-values|combine-after-change-calls|combine-and-quote-strings|command-debug-status|command-error-function|command-execute|command-history|command-line|command-line-args|command-line-args-left|command-line-functions|command-line-processed|command-remapping|command-switch-alist|commandp|compare-buffer-substrings|compare-strings|compare-window-configurations|compile-defun|completing-read|completing-read-function|completion-at-point|completion-at-point-functions|completion-auto-help|completion-boundaries|completion-category-overrides|completion-extra-properties|completion-ignore-case|completion-ignored-extensions|completion-in-region|completion-regexp-list|completion-styles|completion-styles-alist|completion-table-case-fold|completion-table-dynamic|completion-table-in-turn|completion-table-merge|completion-table-subvert|completion-table-with-cache|completion-table-with-predicate|completion-table-with-quoting|completion-table-with-terminator|compute-motion|concat|cons-cells-consed|constrain-to-field|continue-process|controlling-tty-p|convert-standard-filename|coordinates-in-window-p|copy-abbrev-table|copy-category-table|copy-directory|copy-file|copy-hash-table|copy-keymap|copy-marker|copy-overlay|copy-region-as-kill|copy-sequence|copy-syntax-table|copysign|cos|count-lines|count-loop|count-screen-lines|count-words|create-file-buffer|create-fontset-from-fontset-spec|create-image|create-lockfiles|current-active-maps|current-bidi-paragraph-direction|current-buffer|current-case-table|current-column|current-fill-column|current-frame-configuration|current-global-map|current-idle-time|current-indentation|current-input-method|current-input-mode|current-justification|current-kill|current-left-margin|current-local-map|current-message|current-minor-mode-maps|current-prefix-arg|current-time|current-time-string|current-time-zone|current-window-configuration|current-word|cursor-in-echo-area|cursor-in-non-selected-windows|cursor-type|cust-print|custom-add-frequent-value|custom-initialize-delay|custom-known-themes|custom-reevaluate-setting|custom-set-faces|custom-set-variables|custom-theme-p|custom-theme-set-faces|custom-theme-set-variables|custom-unlispify-remove-prefixes|custom-variable-p|customize-package-emacs-version-alist|cygwin-convert-file-name-from-windows|cygwin-convert-file-name-to-windows|data-directory|date-leap-year-p|date-to-time|deactivate-mark|deactivate-mark-hook|debug|debug-ignored-errors|debug-on-entry|debug-on-error|debug-on-event|debug-on-message|debug-on-next-call|debug-on-quit|debug-on-signal|debugger|debugger-bury-or-kill|declare|declare-function|decode-char|decode-coding-inserted-region|decode-coding-region|decode-coding-string|decode-time|def-edebug-spec|defalias|default-boundp|default-directory|default-file-modes|default-frame-alist|default-input-method|default-justification|default-minibuffer-frame|default-process-coding-system|default-text-properties|default-value|define-abbrev|define-abbrev-table|define-alternatives|define-button-type|define-category|define-derived-mode|define-error|define-fringe-bitmap|define-generic-mode|define-globalized-minor-mode|define-hash-table-test|define-key|define-key-after|define-minor-mode|define-obsolete-face-alias|define-obsolete-function-alias|define-obsolete-variable-alias|define-package|define-prefix-command|defined-colors|defining-kbd-macro|defun-prompt-regexp|defvar-local|defvaralias|delay-mode-hooks|delayed-warnings-hook|delayed-warnings-list|delete|delete-and-extract-region|delete-auto-save-file-if-necessary|delete-auto-save-files|delete-backward-char|delete-blank-lines|delete-by-moving-to-trash|delete-char|delete-directory|delete-dups|delete-exited-processes|delete-field|delete-file|delete-frame|delete-frame-functions|delete-horizontal-space|delete-indentation|delete-minibuffer-contents|delete-old-versions|delete-other-windows|delete-overlay|delete-process|delete-region|delete-terminal|delete-terminal-functions|delete-to-left-margin|delete-trailing-whitespace|delete-window|delete-windows-on|delq|derived-mode-p|describe-bindings|describe-buffer-case-table|describe-categories|describe-current-display-table|describe-display-table|describe-mode|describe-prefix-bindings|describe-syntax|desktop-buffer-mode-handlers|desktop-save-buffer|destroy-fringe-bitmap|detect-coding-region|detect-coding-string|digit-argument|ding|dir-locals-class-alist|dir-locals-directory-cache|dir-locals-file|dir-locals-set-class-variables|dir-locals-set-directory-class|directory-file-name|directory-files|directory-files-and-attributes|dired-kept-versions|disable-command|disable-point-adjustment|disable-theme|disabled|disabled-command-function|disassemble|discard-input|display-backing-store|display-buffer|display-buffer-alist|display-buffer-at-bottom|display-buffer-base-action|display-buffer-below-selected|display-buffer-fallback-action|display-buffer-in-previous-window|display-buffer-no-window|display-buffer-overriding-action|display-buffer-pop-up-frame|display-buffer-pop-up-window|display-buffer-reuse-window|display-buffer-same-window|display-buffer-use-some-window|display-color-cells|display-color-p|display-completion-list|display-delayed-warnings|display-graphic-p|display-grayscale-p|display-images-p|display-message-or-buffer|display-mm-dimensions-alist|display-mm-height|display-mm-width|display-monitor-attributes-list|display-mouse-p|display-pixel-height|display-pixel-width|display-planes|display-popup-menus-p|display-save-under|display-screens|display-selections-p|display-supports-face-attributes-p|display-table-slot|display-visual-class|display-warning|dnd-protocol-alist|do-auto-save|doc-directory|documentation|documentation-property|dotimes-with-progress-reporter|double-click-fuzz|double-click-time|down-list|downcase|downcase-region|downcase-word|dump-emacs|dynamic-library-alist)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(easy-menu-define|easy-mmode-define-minor-mode|echo-area-clear-hook|echo-keystrokes|edebug|edebug-all-defs|edebug-all-forms|edebug-continue-kbd-macro|edebug-defun|edebug-display-freq-count|edebug-eval-macro-args|edebug-eval-top-level-form|edebug-global-break-condition|edebug-initial-mode|edebug-on-error|edebug-on-quit|edebug-print-circle|edebug-print-length|edebug-print-level|edebug-print-trace-after|edebug-print-trace-before|edebug-save-displayed-buffer-points|edebug-save-windows|edebug-set-global-break-condition|edebug-setup-hook|edebug-sit-for-seconds|edebug-temp-display-freq-count|edebug-test-coverage|edebug-trace|edebug-tracing|edebug-unwrap-results|edit-and-eval-command|electric-future-map|elt|emacs-build-time|emacs-init-time|emacs-lisp-docstring-fill-column|emacs-major-version|emacs-minor-version|emacs-pid|emacs-save-session-functions|emacs-session-restore|emacs-startup-hook|emacs-uptime|emacs-version|emulation-mode-map-alists|enable-command|enable-dir-local-variables|enable-local-eval|enable-local-variables|enable-multibyte-characters|enable-recursive-minibuffers|enable-theme|encode-char|encode-coding-region|encode-coding-string|encode-time|end-of-buffer|end-of-defun|end-of-defun-function|end-of-file|end-of-line|eobp|eolp|equal-including-properties|erase-buffer|error|error-conditions|error-message-string|esc-map|ESC-prefix|eval|eval-and-compile|eval-buffer|eval-current-buffer|eval-expression-debug-on-error|eval-expression-print-length|eval-expression-print-level|eval-minibuffer|eval-region|eval-when-compile|event-basic-type|event-click-count|event-convert-list|event-end|event-modifiers|event-start|eventp|ewoc-buffer|ewoc-collect|ewoc-create|ewoc-data|ewoc-delete|ewoc-enter-after|ewoc-enter-before|ewoc-enter-first|ewoc-enter-last|ewoc-filter|ewoc-get-hf|ewoc-goto-next|ewoc-goto-node|ewoc-goto-prev|ewoc-invalidate|ewoc-locate|ewoc-location|ewoc-map|ewoc-next|ewoc-nth|ewoc-prev|ewoc-refresh|ewoc-set-data|ewoc-set-hf|exec-directory|exec-path|exec-suffixes|executable-find|execute-extended-command|execute-kbd-macro|executing-kbd-macro|exit|exit-minibuffer|exit-recursive-edit|exp|expand-abbrev|expand-file-name|expt|extended-command-history|extra-keyboard-modifiers|face-all-attributes|face-attribute|face-attribute-relative-p|face-background|face-bold-p|face-differs-from-default-p|face-documentation|face-equal|face-font|face-font-family-alternatives|face-font-registry-alternatives|face-font-rescale-alist|face-font-selection-order|face-foreground|face-id|face-inverse-video-p|face-italic-p|face-list|face-name-history|face-remap-add-relative|face-remap-remove-relative|face-remap-reset-base|face-remap-set-base|face-remapping-alist|face-spec-set|face-stipple|face-underline-p|facemenu-keymap|facep|fboundp|fceiling|feature-unload-function|featurep|features|fetch-bytecode|ffloor|field-beginning|field-end|field-string|field-string-no-properties|file-accessible-directory-p|file-acl|file-already-exists|file-attributes|file-chase-links|file-coding-system-alist|file-directory-p|file-equal-p|file-error|file-executable-p|file-exists-p|file-expand-wildcards|file-extended-attributes|file-in-directory-p|file-local-copy|file-local-variables-alist|file-locked|file-locked-p|file-modes|file-modes-symbolic-to-number|file-name-absolute-p|file-name-all-completions|file-name-as-directory|file-name-base|file-name-coding-system|file-name-completion|file-name-directory|file-name-extension|file-name-handler-alist|file-name-history|file-name-nondirectory|file-name-sans-extension|file-name-sans-versions|file-newer-than-file-p|file-newest-backup|file-nlinks|file-notify-add-watch|file-notify-rm-watch|file-ownership-preserved-p|file-precious-flag|file-readable-p|file-regular-p|file-relative-name|file-remote-p|file-selinux-context|file-supersession|file-symlink-p|file-truename|file-writable-p|fill-column|fill-context-prefix|fill-forward-paragraph-function|fill-individual-paragraphs|fill-individual-varying-indent|fill-nobreak-predicate|fill-paragraph|fill-paragraph-function|fill-prefix|fill-region|fill-region-as-paragraph|fillarray|filter-buffer-substring|filter-buffer-substring-functions??|find-auto-coding|find-backup-file-name|find-buffer-visiting|find-charset-region|find-charset-string|find-coding-systems-for-charsets|find-coding-systems-region|find-coding-systems-string|find-file|find-file-hook|find-file-literally|find-file-name-handler|find-file-noselect|find-file-not-found-functions|find-file-other-window|find-file-read-only|find-file-wildcards|find-font|find-image|find-operation-coding-system|first-change-hook|fit-frame-to-buffer|fit-frame-to-buffer-margins|fit-frame-to-buffer-sizes|fit-window-to-buffer|fit-window-to-buffer-horizontally|fixup-whitespace|float|float-e|float-output-format|float-pi|float-time|floatp|floats-consed|floor|fmakunbound|focus-follows-mouse|focus-in-hook|focus-out-hook|following-char|font-at|font-face-attributes|font-family-list|font-get|font-lock-add-keywords|font-lock-beginning-of-syntax-function|font-lock-builtin-face|font-lock-comment-delimiter-face|font-lock-comment-face|font-lock-constant-face|font-lock-defaults|font-lock-doc-face|font-lock-extend-after-change-region-function|font-lock-extra-managed-props|font-lock-fontify-buffer-function|font-lock-fontify-region-function|font-lock-function-name-face|font-lock-keyword-face|font-lock-keywords|font-lock-keywords-case-fold-search|font-lock-keywords-only|font-lock-mark-block-function|font-lock-multiline|font-lock-negation-char-face|font-lock-preprocessor-face|font-lock-remove-keywords|font-lock-string-face|font-lock-syntactic-face-function|font-lock-syntax-table|font-lock-type-face|font-lock-unfontify-buffer-function|font-lock-unfontify-region-function|font-lock-variable-name-face|font-lock-warning-face|font-put|font-spec|font-xlfd-name|fontification-functions|fontp|for|force-mode-line-update|force-window-update|format|format-alist|format-find-file|format-insert-file|format-mode-line|format-network-address|format-seconds|format-time-string|format-write-file|forward-button|forward-char|forward-comment|forward-line|forward-list|forward-sexp|forward-to-indentation|forward-word|frame-alpha-lower-limit|frame-auto-hide-function|frame-char-height|frame-char-width|frame-current-scroll-bars|frame-first-window|frame-height|frame-inherited-parameters|frame-list|frame-live-p|frame-monitor-attributes|frame-parameters??|frame-pixel-height|frame-pixel-width|frame-pointer-visible-p|frame-resize-pixelwise|frame-root-window|frame-selected-window|frame-terminal|frame-title-format|frame-visible-p|frame-width|framep|frexp|fringe-bitmaps-at-pos|fringe-cursor-alist|fringe-indicator-alist|fringes-outside-margins|fround|fset|ftp-login|ftruncate|function-get|functionp|fundamental-mode|fundamental-mode-abbrev-table|gap-position|gap-size|garbage-collect|garbage-collection-messages|gc-cons-percentage|gc-cons-threshold|gc-elapsed|gcs-done|generate-autoload-cookie|generate-new-buffer|generate-new-buffer-name|generated-autoload-file|get|get-buffer|get-buffer-create|get-buffer-process|get-buffer-window|get-buffer-window-list|get-byte|get-char-code-property|get-char-property|get-char-property-and-overlay|get-charset-property|get-device-terminal|get-file-buffer|get-internal-run-time|get-largest-window|get-load-suffixes|get-lru-window|get-pos-property|get-process|get-register|get-text-property|get-unused-category|get-window-with-predicate|getenv|gethash|global-abbrev-table|global-buffers-menu-map|global-disable-point-adjustment|global-key-binding|global-map|global-mode-string|global-set-key|global-unset-key|glyph-char|glyph-face|glyph-table|glyphless-char-display|glyphless-char-display-control|goto-char|goto-map|group-gid|group-real-gid|gv-define-expander|gv-define-setter|gv-define-simple-setter|gv-letplace|hack-dir-local-variables|hack-dir-local-variables-non-file-buffer|hack-local-variables|hack-local-variables-hook|handle-shift-selection|handle-switch-frame|hash-table-count|hash-table-p|hash-table-rehash-size|hash-table-rehash-threshold|hash-table-size|hash-table-test|hash-table-weakness|header-line-format|help-buffer|help-char|help-command|help-event-list|help-form|help-map|help-setup-xref|help-window-select|Helper-describe-bindings|Helper-help|Helper-help-map|history-add-new-input|history-delete-duplicates|history-length)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(icon-title-format|iconify-frame|identity|ignore|ignore-errors|ignore-window-parameters|ignored-local-variables|image-animate|image-animate-timer|image-cache-eviction-delay|image-current-frame|image-default-frame-delay|image-flush|image-format-suffixes|image-load-path|image-load-path-for-library|image-mask-p|image-minimum-frame-delay|image-multi-frame-p|image-show-frame|image-size|image-type-available-p|image-types|imagemagick-enabled-types|imagemagick-types|imagemagick-types-inhibit|imenu-add-to-menubar|imenu-case-fold-search|imenu-create-index-function|imenu-extract-index-name-function|imenu-generic-expression|imenu-prev-index-position-function|imenu-syntax-alist|inc|indent-according-to-mode|indent-code-rigidly|indent-for-tab-command|indent-line-function|indent-region|indent-region-function|indent-relative|indent-relative-maybe|indent-rigidly|indent-tabs-mode|indent-to|indent-to-left-margin|indicate-buffer-boundaries|indicate-empty-lines|indirect-function|indirect-variable|inhibit-default-init|inhibit-eol-conversion|inhibit-field-text-motion|inhibit-file-name-handlers|inhibit-file-name-operation|inhibit-iso-escape-detection|inhibit-local-variables-regexps|inhibit-modification-hooks|inhibit-null-byte-detection|inhibit-point-motion-hooks|inhibit-quit|inhibit-read-only|inhibit-splash-screen|inhibit-startup-echo-area-message|inhibit-startup-message|inhibit-startup-screen|inhibit-x-resources|init-file-user|initial-buffer-choice|initial-environment|initial-frame-alist|initial-major-mode|initial-scratch-message|initial-window-system|input-decode-map|input-method-alist|input-method-function|input-pending-p|insert|insert-abbrev-table-description|insert-and-inherit|insert-before-markers|insert-before-markers-and-inherit|insert-buffer|insert-buffer-substring|insert-buffer-substring-as-yank|insert-buffer-substring-no-properties|insert-button|insert-char|insert-default-directory|insert-directory|insert-directory-program|insert-file-contents|insert-file-contents-literally|insert-for-yank|insert-image|insert-register|insert-sliced-image|insert-text-button|installation-directory|integer-or-marker-p|integerp|interactive-form|intern|intern-soft|interpreter-mode-alist|interprogram-cut-function|interprogram-paste-function|interrupt-process|intervals-consed|invalid-function|invalid-read-syntax|invalid-regexp|invert-face|invisible-p|invocation-directory|invocation-name|isnan|jit-lock-register|jit-lock-unregister|just-one-space|justify-current-line|kbd|kbd-macro-termination-hook|kept-new-versions|kept-old-versions|key-binding|key-description|key-translation-map|keyboard-coding-system|keyboard-quit|keyboard-translate|keyboard-translate-table|keymap-parent|keymap-prompt|keymapp|keywordp|kill-all-local-variables|kill-append|kill-buffer|kill-buffer-hook|kill-buffer-query-functions|kill-emacs|kill-emacs-hook|kill-emacs-query-functions|kill-local-variable|kill-new|kill-process|kill-read-only-ok|kill-region|kill-ring|kill-ring-max|kill-ring-yank-pointer|kmacro-keymap|last-abbrev|last-abbrev-location|last-abbrev-text|last-buffer|last-coding-system-used|last-command|last-command-event|last-event-frame|last-input-event|last-kbd-macro|last-nonmenu-event|last-prefix-arg|last-repeatable-command|lax-plist-get|lax-plist-put|lazy-completion-table|ldexp|left-fringe-width|left-margin|left-margin-width|lexical-binding|libxml-parse-html-region|libxml-parse-xml-region|line-beginning-position|line-end-position|line-move-ignore-invisible|line-number-at-pos|line-prefix|line-spacing|lisp-mode-abbrev-table|list-buffers-directory|list-charset-chars|list-fonts|list-load-path-shadows|list-processes|list-system-processes|listify-key-sequence|ln|load-average|load-file|load-file-name|load-file-rep-suffixes|load-history|load-in-progress|load-library|load-path|load-prefer-newer|load-read-function|load-suffixes|load-theme|local-abbrev-table|local-function-key-map|local-key-binding|local-set-key|local-unset-key|local-variable-if-set-p|local-variable-p|locale-coding-system|locale-info|locate-file|locate-library|locate-user-emacs-file|lock-buffer|log|logand|logb|logior|lognot|logxor|looking-at|looking-at-p|looking-back|lookup-key|lower-frame|lsh|lwarn|macroexpand|macroexpand-all|macrop|magic-fallback-mode-alist|magic-mode-alist|mail-host-address|major-mode|make-abbrev-table|make-auto-save-file-name|make-backup-file-name|make-backup-file-name-function|make-backup-files|make-bool-vector|make-button|make-byte-code|make-category-set|make-category-table|make-char-table|make-composed-keymap|make-directory|make-display-table|make-frame|make-frame-invisible|make-frame-on-display|make-frame-visible|make-glyph-code|make-hash-table|make-help-screen|make-indirect-buffer|make-keymap|make-local-variable|make-marker|make-network-process|make-obsolete|make-obsolete-variable|make-overlay|make-progress-reporter|make-ring|make-serial-process|make-sparse-keymap|make-string|make-symbol|make-symbolic-link|make-syntax-table|make-temp-file|make-temp-name|make-text-button|make-translation-table|make-translation-table-from-alist|make-translation-table-from-vector|make-variable-buffer-local|make-vector|makehash|makunbound|map-char-table|map-charset-chars|map-keymap|map-y-or-n-p|mapatoms|mapconcat|maphash|mark|mark-active|mark-even-if-inactive|mark-marker|mark-ring|mark-ring-max|marker-buffer|marker-insertion-type|marker-position|markerp|match-beginning|match-data|match-end|match-string|match-string-no-properties|match-substitute-replacement|max-char|max-image-size|max-lisp-eval-depth|max-mini-window-height|max-specpdl-size|maximize-window|md5|member-ignore-case|memory-full|memory-limit|memory-use-counts|memql??|menu-bar-file-menu|menu-bar-final-items|menu-bar-help-menu|menu-bar-options-menu|menu-bar-tools-menu|menu-bar-update-hook|menu-item|menu-prompt-more-char|merge-face-attribute|message|message-box|message-log-max|message-or-box|message-truncate-lines|messages-buffer|meta-prefix-char|minibuffer-allow-text-properties|minibuffer-auto-raise|minibuffer-complete|minibuffer-complete-and-exit|minibuffer-complete-word|minibuffer-completion-confirm|minibuffer-completion-help|minibuffer-completion-predicate|minibuffer-completion-table|minibuffer-confirm-exit-commands|minibuffer-contents|minibuffer-contents-no-properties|minibuffer-depth|minibuffer-exit-hook|minibuffer-frame-alist|minibuffer-help-form|minibuffer-history|minibuffer-inactive-mode|minibuffer-local-completion-map|minibuffer-local-filename-completion-map|minibuffer-local-map|minibuffer-local-must-match-map|minibuffer-local-ns-map|minibuffer-local-shell-command-map|minibuffer-message|minibuffer-message-timeout|minibuffer-prompt|minibuffer-prompt-end|minibuffer-prompt-width|minibuffer-scroll-window|minibuffer-selected-window|minibuffer-setup-hook|minibuffer-window|minibuffer-window-active-p|minibufferp|minimize-window|minor-mode-alist|minor-mode-key-binding|minor-mode-list|minor-mode-map-alist|minor-mode-overriding-map-alist|misc-objects-consed|mkdir|mod|mode-line-buffer-identification|mode-line-client|mode-line-coding-system-map|mode-line-column-line-number-mode-map|mode-line-format|mode-line-frame-identification|mode-line-input-method-map|mode-line-modes|mode-line-modified|mode-line-mule-info|mode-line-position|mode-line-process|mode-line-remote|mode-name|mode-specific-map|modify-all-frames-parameters|modify-category-entry|modify-frame-parameters|modify-syntax-entry|momentary-string-display|most-negative-fixnum|most-positive-fixnum|mouse-1-click-follows-link|mouse-appearance-menu-map|mouse-leave-buffer-hook|mouse-movement-p|mouse-on-link-p|mouse-pixel-position|mouse-position|mouse-position-function|mouse-wheel-down-event|mouse-wheel-up-event|move-marker|move-overlay|move-point-visually|move-to-column|move-to-left-margin|move-to-window-line|movemail|mule-keymap|multi-query-replace-map|multibyte-char-to-unibyte|multibyte-string-p|multibyte-syntax-as-symbol|multiple-frames|narrow-map|narrow-to-page|narrow-to-region|natnump|negative-argument|network-coding-system-alist|network-interface-info|network-interface-list|newline|newline-and-indent|next-button|next-char-property-change|next-complete-history-element|next-frame|next-history-element|next-matching-history-element|next-overlay-change|next-property-change|next-screen-context-lines|next-single-char-property-change|next-single-property-change|next-window|nlistp|no-byte-compile|no-catch|no-redraw-on-reenter|noninteractive|noreturn|normal-auto-fill-function|normal-backup-enable-predicate|normal-mode|not-modified|notifications-close-notification|notifications-get-capabilities|notifications-get-server-information|notifications-notify|num-input-keys|num-nonmacro-input-events|number-or-marker-p|number-sequence|number-to-string|numberp|obarray|one-window-p|only-global-abbrevs|open-dribble-file|open-network-stream|open-paren-in-column-0-is-defun-start|open-termscript|other-buffer|other-window|other-window-scroll-buffer|overflow-newline-into-fringe|overlay-arrow-position|overlay-arrow-string|overlay-arrow-variable-list|overlay-buffer|overlay-end|overlay-get|overlay-properties|overlay-put|overlay-recenter|overlay-start|overlayp|overlays-at|overlays-in|overriding-local-map|overriding-local-map-menu-flag|overriding-terminal-local-map|overwrite-mode|package-archive-upload-base|package-archives|package-initialize|package-upload-buffer|package-upload-file|page-delimiter|paragraph-separate|paragraph-start|parse-colon-path|parse-partial-sexp|parse-sexp-ignore-comments|parse-sexp-lookup-properties|path-separator|perform-replace|play-sound|play-sound-file|play-sound-functions|plist-get|plist-member|plist-put|point|point-marker|point-max|point-max-marker|point-min|point-min-marker|pop-mark|pop-to-buffer|pop-up-frame-alist|pop-up-frame-function|pop-up-frames|pop-up-windows|pos-visible-in-window-p|position-bytes|posix-looking-at|posix-search-backward|posix-search-forward|posix-string-match|posn-actual-col-row|posn-area|posn-at-point|posn-at-x-y|posn-col-row|posn-image|posn-object|posn-object-width-height|posn-object-x-y|posn-point|posn-string|posn-timestamp|posn-window|posn-x-y|posnp|post-command-hook|post-gc-hook|post-self-insert-hook|pp|pre-command-hook|pre-redisplay-function|preceding-char|prefix-arg|prefix-help-command|prefix-numeric-value|preloaded-file-list|prepare-change-group|previous-button|previous-char-property-change|previous-complete-history-element|previous-frame|previous-history-element|previous-matching-history-element|previous-overlay-change|previous-property-change|previous-single-char-property-change|previous-single-property-change|previous-window|primitive-undo|prin1-to-string|print-circle|print-continuous-numbering|print-escape-multibyte|print-escape-newlines|print-escape-nonascii|print-gensym|print-length|print-level|print-number-table|print-quoted|printable-chars|process-adaptive-read-buffering|process-attributes|process-buffer|process-coding-system|process-coding-system-alist|process-command|process-connection-type|process-contact|process-datagram-address|process-environment|process-exit-status|process-file|process-file-shell-command|process-file-side-effects|process-filter|process-get|process-id|process-kill-buffer-query-function|process-lines|process-list|process-live-p|process-mark|process-name|process-plist|process-put|process-query-on-exit-flag|process-running-child-p|process-send-eof|process-send-region|process-send-string|process-sentinel|process-status|process-tty-name|process-type|processp|prog-mode|prog-mode-hook|progress-reporter-done|progress-reporter-force-update|progress-reporter-update|propertize|provide|provide-theme|pure-bytes-used|purecopy|purify-flag|push-button|push-mark|put|put-char-code-property|put-charset-property|put-image|put-text-property|puthash|query-replace-history|query-replace-map|quietly-read-abbrev-file|quit-flag|quit-process|quit-restore-window|quit-window|raise-frame|random|rassq|rassq-delete-all|re-builder|re-search-backward|re-search-forward|read|read-buffer|read-buffer-completion-ignore-case|read-buffer-function|read-char|read-char-choice|read-char-exclusive|read-circle|read-coding-system|read-color|read-command|read-directory-name|read-event|read-expression-history|read-file-modes|read-file-name|read-file-name-completion-ignore-case|read-file-name-function|read-from-minibuffer|read-from-string|read-input-method-name|read-kbd-macro|read-key|read-key-sequence|read-key-sequence-vector|read-minibuffer|read-no-blanks-input|read-non-nil-coding-system|read-only-mode|read-passwd|read-quoted-char|read-regexp|read-regexp-defaults-function|read-shell-command|read-string|read-variable|real-last-command|recent-auto-save-p|recent-keys|recenter|recenter-positions|recenter-redisplay|recenter-top-bottom|recursion-depth|recursive-edit|redirect-frame-focus|redisplay|redraw-display|redraw-frame|regexp-history|regexp-opt|regexp-opt-charset|regexp-opt-depth|regexp-quote|region-beginning|region-end|register-alist|register-read-with-preview|reindent-then-newline-and-indent|remhash|remote-file-name-inhibit-cache|remove|remove-from-invisibility-spec|remove-function|remove-hook|remove-images|remove-list-of-text-properties|remove-overlays|remove-text-properties|remq|rename-auto-save-file|rename-buffer|rename-file|replace-buffer-in-windows|replace-match|replace-re-search-function|replace-regexp-in-string|replace-search-function|require|require-final-newline|restore-buffer-modified-p|resume-tty|resume-tty-functions|revert-buffer|revert-buffer-function|revert-buffer-in-progress-p|revert-buffer-insert-file-contents-function|revert-without-query|right-fringe-width|right-margin-width|ring-bell-function|ring-copy|ring-elements|ring-empty-p|ring-insert|ring-insert-at-beginning|ring-length|ring-p|ring-ref|ring-remove|ring-size|risky-local-variable-p|rm|round|run-at-time|run-hook-with-args|run-hook-with-args-until-failure|run-hook-with-args-until-success|run-hooks|run-mode-hooks|run-with-idle-timer)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(safe-local-eval-forms|safe-local-variable-p|safe-local-variable-values|same-window-buffer-names|same-window-p|same-window-regexps|save-abbrevs|save-buffer|save-buffer-coding-system|save-current-buffer|save-excursion|save-match-data|save-restriction|save-selected-window|save-some-buffers|save-window-excursion|scalable-fonts-allowed|scan-lists|scan-sexps|scroll-bar-event-ratio|scroll-bar-mode|scroll-bar-scale|scroll-bar-width|scroll-conservatively|scroll-down|scroll-down-aggressively|scroll-down-command|scroll-error-top-bottom|scroll-left|scroll-margin|scroll-other-window|scroll-preserve-screen-position|scroll-right|scroll-step|scroll-up|scroll-up-aggressively|scroll-up-command|search-backward|search-failed|search-forward|search-map|search-spaces-regexp|seconds-to-time|secure-hash|select-frame|select-frame-set-input-focus|select-safe-coding-system|select-safe-coding-system-accept-default-p|select-window|selected-frame|selected-window|selection-coding-system|selective-display|selective-display-ellipses|self-insert-and-exit|self-insert-command|send-string-to-terminal|sentence-end|sentence-end-double-space|sentence-end-without-period|sentence-end-without-space|sequencep|serial-process-configure|serial-term|set-advertised-calling-convention|set-auto-coding|set-auto-mode|set-buffer|set-buffer-auto-saved|set-buffer-major-mode|set-buffer-modified-p|set-buffer-multibyte|set-case-syntax|set-case-syntax-delims|set-case-syntax-pair|set-case-table|set-category-table|set-char-table-extra-slot|set-char-table-parent|set-char-table-range|set-charset-priority|set-coding-system-priority|set-default|set-default-file-modes|set-display-table-slot|set-face-attribute|set-face-background|set-face-bold|set-face-font|set-face-foreground|set-face-inverse-video|set-face-italic|set-face-stipple|set-face-underline|set-file-acl|set-file-extended-attributes|set-file-modes|set-file-selinux-context|set-file-times|set-fontset-font|set-frame-configuration|set-frame-height|set-frame-parameter|set-frame-position|set-frame-selected-window|set-frame-size|set-frame-width|set-fringe-bitmap-face|set-input-method|set-input-mode|set-keyboard-coding-system|set-keymap-parent|set-left-margin|set-mark|set-marker|set-marker-insertion-type|set-match-data|set-minibuffer-window|set-mouse-pixel-position|set-mouse-position|set-network-process-option|set-process-buffer|set-process-coding-system|set-process-datagram-address|set-process-filter|set-process-plist|set-process-query-on-exit-flag|set-process-sentinel|set-register|set-right-margin|set-standard-case-table|set-syntax-table|set-terminal-coding-system|set-terminal-parameter|set-text-properties|set-transient-map|set-visited-file-modtime|set-visited-file-name|set-window-buffer|set-window-combination-limit|set-window-configuration|set-window-dedicated-p|set-window-display-table|set-window-fringes|set-window-hscroll|set-window-margins|set-window-next-buffers|set-window-parameter|set-window-point|set-window-prev-buffers|set-window-scroll-bars|set-window-start|set-window-vscroll|setenv|setplist|setq-default|setq-local|shell-command-history|shell-command-to-string|shell-quote-argument|show-help-function|shr-insert-document|shrink-window-if-larger-than-buffer|signal|signal-process|sin|single-key-description|sit-for|site-run-file|skip-chars-backward|skip-chars-forward|skip-syntax-backward|skip-syntax-forward|sleep-for|small-temporary-file-directory|smie-bnf->prec2|smie-close-block|smie-config|smie-config-guess|smie-config-local|smie-config-save|smie-config-set-indent|smie-config-show-indent|smie-down-list|smie-merge-prec2s|smie-prec2->grammar|smie-precs->prec2|smie-rule-bolp|smie-rule-hanging-p|smie-rule-next-p|smie-rule-parent|smie-rule-parent-p|smie-rule-prev-p|smie-rule-separator|smie-rule-sibling-p|smie-setup|Snarf-documentation|sort|sort-columns|sort-fields|sort-fold-case|sort-lines|sort-numeric-base|sort-numeric-fields|sort-pages|sort-paragraphs|sort-regexp-fields|sort-subr|special-event-map|special-form-p|special-mode|special-variable-p|split-height-threshold|split-string|split-string-and-unquote|split-string-default-separators|split-width-threshold|split-window|split-window-below|split-window-keep-point|split-window-preferred-function|split-window-right|split-window-sensibly|sqrt|standard-case-table|standard-category-table|standard-display-table|standard-input|standard-output|standard-syntax-table|standard-translation-table-for-decode|standard-translation-table-for-encode|start-file-process|start-file-process-shell-command|start-process|start-process-shell-command|stop-process|store-match-data|store-substring|string|string-as-multibyte|string-as-unibyte|string-bytes|string-chars-consed|string-equal|string-lessp|string-match|string-match-p|string-or-null-p|string-prefix-p|string-suffix-p|string-to-char|string-to-int|string-to-multibyte|string-to-number|string-to-syntax|string-to-unibyte|string-width|string<|string=|stringp|strings-consed|subr-arity|subrp|subst-char-in-region|substitute-command-keys|substitute-in-file-name|substitute-key-definition|substring|substring-no-properties|suppress-keymap|suspend-emacs|suspend-frame|suspend-hook|suspend-resume-hook|suspend-tty|suspend-tty-functions|switch-to-buffer|switch-to-buffer-other-frame|switch-to-buffer-other-window|switch-to-buffer-preserve-window-point|switch-to-next-buffer|switch-to-prev-buffer|switch-to-visible-buffer|sxhash|symbol-file|symbol-function|symbol-name|symbol-plist|symbol-value|symbolp|symbols-consed|syntax-after|syntax-begin-function|syntax-class|syntax-ppss|syntax-ppss-flush-cache|syntax-ppss-toplevel-pos|syntax-propertize-extend-region-functions|syntax-propertize-function|syntax-table|syntax-table-p|system-configuration|system-groups|system-key-alist|system-messages-locale|system-name|system-time-locale|system-type|system-users|tab-always-indent|tab-stop-list|tab-to-tab-stop|tab-width|tabulated-list-entries|tabulated-list-format|tabulated-list-init-header|tabulated-list-mode|tabulated-list-print|tabulated-list-printer|tabulated-list-revert-hook|tabulated-list-sort-key|tan|temacs|temp-buffer-setup-hook|temp-buffer-show-function|temp-buffer-show-hook|temp-buffer-window-setup-hook|temp-buffer-window-show-hook|temporary-file-directory|term-file-prefix|terminal-coding-system|terminal-list|terminal-live-p|terminal-name|terminal-parameters??|terpri|test-completion|testcover-mark-all|testcover-next-mark|testcover-start|text-char-description|text-mode|text-mode-abbrev-table|text-properties-at|text-property-any|text-property-default-nonsticky|text-property-not-all|thing-at-point|this-command|this-command-keys|this-command-keys-shift-translated|this-command-keys-vector|this-original-command|three-step-help|time-add|time-less-p|time-subtract|time-to-day-in-year|time-to-days|timer-max-repeats|toggle-enable-multibyte-characters|tool-bar-add-item|tool-bar-add-item-from-menu|tool-bar-border|tool-bar-button-margin|tool-bar-button-relief|tool-bar-local-item-from-menu|tool-bar-map|top-level|tq-close|tq-create|tq-enqueue|track-mouse|transient-mark-mode|translate-region|translation-table-for-input|transpose-regions|truncate|truncate-lines|truncate-partial-width-windows|truncate-string-to-width|try-completion|tty-color-alist|tty-color-approximate|tty-color-clear|tty-color-define|tty-color-translate|tty-erase-char|tty-setup-hook|tty-top-frame|type-of|unbury-buffer|undefined|underline-minimum-offset|undo-ask-before-discard|undo-boundary|undo-in-progress|undo-limit|undo-outer-limit|undo-strong-limit|unhandled-file-name-directory|unibyte-char-to-multibyte|unibyte-string|unicode-category-table|unintern|universal-argument|universal-argument-map|unload-feature|unload-feature-special-hooks|unlock-buffer|unread-command-events|unsafep|up-list|upcase|upcase-initials|upcase-region|upcase-word|update-directory-autoloads|update-file-autoloads|use-empty-active-region|use-global-map|use-hard-newlines|use-local-map|use-region-p|user-emacs-directory|user-error|user-full-name|user-init-file|user-login-name|user-mail-address|user-real-login-name|user-real-uid|user-uid|values|vc-mode|vc-prefix-map|vconcat|vector|vector-cells-consed|vectorp|verify-visited-file-modtime|version-control|vertical-motion|vertical-scroll-bar|view-register|visible-bell|visible-frame-list|visited-file-modtime|void-function|void-text-area-pointer|waiting-for-user-input-p|walk-windows|warn|warning-fill-prefix|warning-levels|warning-minimum-level|warning-minimum-log-level|warning-prefix-function|warning-series|warning-suppress-log-types|warning-suppress-types|warning-type-format|where-is-internal|while-no-input|wholenump|widen|window-absolute-pixel-edges|window-at|window-body-height|window-body-size|window-body-width|window-bottom-divider-width|window-buffer|window-child|window-combination-limit|window-combination-resize|window-combined-p|window-configuration-change-hook|window-configuration-frame|window-configuration-p|window-current-scroll-bars|window-dedicated-p|window-display-table|window-edges|window-end|window-frame|window-fringes|window-full-height-p|window-full-width-p|window-header-line-height|window-hscroll|window-in-direction|window-inside-absolute-pixel-edges|window-inside-edges|window-inside-pixel-edges|window-left-child|window-left-column|window-line-height|window-list|window-live-p|window-margins|window-min-height|window-min-size|window-min-width|window-minibuffer-p|window-mode-line-height|window-next-buffers|window-next-sibling|window-parameters??|window-parent|window-persistent-parameters|window-pixel-edges|window-pixel-height|window-pixel-left|window-pixel-top|window-pixel-width|window-point|window-point-insertion-type|window-prev-buffers|window-prev-sibling|window-resizable|window-resize|window-resize-pixelwise|window-right-divider-width|window-scroll-bar-width|window-scroll-bars|window-scroll-functions|window-setup-hook|window-size-change-functions|window-size-fixed|window-start|window-state-get|window-state-put|window-system|window-system-initialization-alist|window-text-change-functions|window-text-pixel-size|window-top-child|window-top-line|window-total-height|window-total-size|window-total-width|window-tree|window-valid-p|window-vscroll|windowp|with-case-table|with-coding-priority|with-current-buffer|with-current-buffer-window|with-demoted-errors|with-eval-after-load|with-help-window|with-local-quit|with-no-warnings|with-output-to-string|with-output-to-temp-buffer|with-selected-window|with-syntax-table|with-temp-buffer|with-temp-buffer-window|with-temp-file|with-temp-message|with-timeout|word-search-backward|word-search-backward-lax|word-search-forward|word-search-forward-lax|word-search-regexp|words-include-escapes|wrap-prefix|write-abbrev-file|write-char|write-contents-functions|write-file|write-file-functions|write-region|write-region-annotate-functions|write-region-post-annotation-function|wrong-number-of-arguments|wrong-type-argument|x-alt-keysym|x-alternatives-map|x-bitmap-file-path|x-close-connection|x-color-defined-p|x-color-values|x-defined-colors|x-display-color-p|x-display-list|x-dnd-known-types|x-dnd-test-function|x-dnd-types-alist|x-family-fonts|x-get-resource|x-get-selection|x-hyper-keysym|x-list-fonts|x-meta-keysym|x-open-connection|x-parse-geometry|x-pointer-shape|x-popup-dialog|x-popup-menu|x-resource-class|x-resource-name|x-sensitive-text-pointer-shape|x-server-vendor|x-server-version|x-set-selection|x-setup-function-keys|x-super-keysym|y-or-n-p|y-or-n-p-with-timeout|yank|yank-excluded-properties|yank-handled-properties|yank-pop|yank-undo-function|yes-or-no-p|zerop|zlib-available-p|zlib-decompress-region)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:mocha--other-js2-imenu-function|mocha-command|mocha-debug-port|mocha-debuggers?|mocha-environment-variables|mocha-imenu-functions|mocha-options|mocha-project-test-directory|mocha-reporter|mocha-test-definition-nodes|mocha-which-node|node-error-regexp-alist|node-error-regexp)(?=[()\\\\s]|$)","name":"support.variable.emacs.lisp"},{"match":"(?<=[()]|^)(?:define-modify-macro|define-setf-method|defsetf|eval-when-compile|flet|labels|lexical-let\\\\*?|cl-(?:acons|adjoin|assert|assoc|assoc-if|assoc-if-not|block|caddr|callf2??|case|ceiling|check-type|coerce|compiler-macroexpand|concatenate|copy-list|count|count-if|count-if-not|decf|declaim|declare|define-compiler-macro|defmacro|defstruct|defsubst|deftype|defun|delete|delete-duplicates|delete-if|delete-if-not|destructuring-bind|do\\\\*?|do-all-symbols|do-symbols|dolist|dotimes|ecase|endp|equalp|etypecase|eval-when|evenp|every|fill|find|find-if|find-if-not|first|flet|float-limits|floor|function|gcd|gensym|gentemp|getf?|incf|intersection|isqrt|labels|lcm|ldiff|letf\\\\*?|list\\\\*|list-length|load-time-value|locally|loop|macrolet|make-random-state|mapc??|mapcan|mapcar|mapcon|mapl|maplist|member|member-if|member-if-not|merge|minusp|mismatch|mod|multiple-value-bind|multiple-value-setq|nintersection|notany|notevery|nset-difference|nset-exclusive-or|nsublis|nsubst|nsubst-if|nsubst-if-not|nsubstitute|nsubstitute-if|nsubstitute-if-not|nunion|oddp|pairlis|plusp|position|position-if|position-if-not|prettyexpand|proclaim|progv|psetf|psetq|pushnew|random|random-state-p|rassoc|rassoc-if|rassoc-if-not|reduce|remf?|remove|remove-duplicates|remove-if|remove-if-not|remprop|replace|rest|return|return-from|rotatef|round|search|set-difference|set-exclusive-or|shiftf|some|sort|stable-sort|sublis|subseq|subsetp|subst|subst-if|subst-if-not|substitute|substitute-if|substitute-if-not|symbol-macrolet|tagbody|tailp|the|tree-equal|truncate|typecase|typep|union))(?=[()\\\\s]|$)","name":"support.function.cl-lib.emacs.lisp"},{"match":"(?<=[()]|^)(?:\\\\*table--cell-backward-kill-paragraph|\\\\*table--cell-backward-kill-sentence|\\\\*table--cell-backward-kill-sexp|\\\\*table--cell-backward-kill-word|\\\\*table--cell-backward-paragraph|\\\\*table--cell-backward-sentence|\\\\*table--cell-backward-word|\\\\*table--cell-beginning-of-buffer|\\\\*table--cell-beginning-of-line|\\\\*table--cell-center-line|\\\\*table--cell-center-paragraph|\\\\*table--cell-center-region|\\\\*table--cell-clipboard-yank|\\\\*table--cell-copy-region-as-kill|\\\\*table--cell-dabbrev-completion|\\\\*table--cell-dabbrev-expand|\\\\*table--cell-delete-backward-char|\\\\*table--cell-delete-char|\\\\*table--cell-delete-region|\\\\*table--cell-describe-bindings|\\\\*table--cell-describe-mode|\\\\*table--cell-end-of-buffer|\\\\*table--cell-end-of-line|\\\\*table--cell-fill-paragraph|\\\\*table--cell-forward-paragraph|\\\\*table--cell-forward-sentence|\\\\*table--cell-forward-word|\\\\*table--cell-insert|\\\\*table--cell-kill-line|\\\\*table--cell-kill-paragraph|\\\\*table--cell-kill-region|\\\\*table--cell-kill-ring-save|\\\\*table--cell-kill-sentence|\\\\*table--cell-kill-sexp|\\\\*table--cell-kill-word|\\\\*table--cell-move-beginning-of-line|\\\\*table--cell-move-end-of-line|\\\\*table--cell-newline-and-indent|\\\\*table--cell-newline|\\\\*table--cell-open-line|\\\\*table--cell-quoted-insert|\\\\*table--cell-self-insert-command|\\\\*table--cell-yank-clipboard-selection|\\\\*table--cell-yank|\\\\*table--present-cell-popup-menu|-cvs-create-fileinfo--cmacro|-cvs-create-fileinfo|-cvs-flags-make--cmacro|-cvs-flags-make|1\\\\+|1-|1value|2C-associate-buffer|2C-associated-buffer|2C-autoscroll|2C-command|2C-dissociate|2C-enlarge-window-horizontally|2C-merge|2C-mode|2C-newline|2C-other|2C-shrink-window-horizontally|2C-split|2C-toggle-autoscroll|2C-two-columns|5x5-bol|5x5-cell|5x5-copy-grid|5x5-crack-mutating-best|5x5-crack-mutating-current|5x5-crack-randomly|5x5-crack-xor-mutate|5x5-crack|5x5-defvar-local|5x5-down|5x5-draw-grid-end|5x5-draw-grid|5x5-eol|5x5-first|5x5-flip-cell|5x5-flip-current|5x5-grid-to-vec|5x5-grid-value|5x5-last|5x5-left|5x5-log-init|5x5-log|5x5-made-move|5x5-make-move|5x5-make-mutate-best|5x5-make-mutate-current|5x5-make-new-grid|5x5-make-random-grid|5x5-make-random-solution|5x5-make-xor-with-mutation|5x5-mode-menu|5x5-mode|5x5-mutate-solution|5x5-new-game|5x5-play-solution|5x5-position-cursor|5x5-quit-game|5x5-randomize|5x5-right|5x5-row-value|5x5-set-cell|5x5-solve-rotate-left|5x5-solve-rotate-right|5x5-solve-suggest|5x5-solver|5x5-up|5x5-vec-to-grid|5x5-xor|5x5-y-or-n-p|5x5|Buffer-menu--pretty-file-name|Buffer-menu--pretty-name|Buffer-menu--unmark|Buffer-menu-1-window|Buffer-menu-2-window|Buffer-menu-backup-unmark|Buffer-menu-beginning|Buffer-menu-buffer|Buffer-menu-bury|Buffer-menu-delete-backwards|Buffer-menu-delete|Buffer-menu-execute|Buffer-menu-info-node-description|Buffer-menu-isearch-buffers-regexp|Buffer-menu-isearch-buffers|Buffer-menu-mark|Buffer-menu-marked-buffers|Buffer-menu-mode|Buffer-menu-mouse-select|Buffer-menu-multi-occur|Buffer-menu-no-header|Buffer-menu-not-modified|Buffer-menu-other-window|Buffer-menu-save|Buffer-menu-select|Buffer-menu-sort|Buffer-menu-switch-other-window|Buffer-menu-this-window|Buffer-menu-toggle-files-only|Buffer-menu-toggle-read-only|Buffer-menu-unmark|Buffer-menu-view-other-window|Buffer-menu-view|Buffer-menu-visit-tags-table|Control-X-prefix|Custom-buffer-done|Custom-goto-parent|Custom-help|Custom-mode-menu|Custom-mode|Custom-newline|Custom-no-edit|Custom-reset-current|Custom-reset-saved|Custom-reset-standard|Custom-save|Custom-set|Electric-buffer-menu-exit|Electric-buffer-menu-mode-view-buffer|Electric-buffer-menu-mode|Electric-buffer-menu-mouse-select|Electric-buffer-menu-quit|Electric-buffer-menu-select|Electric-buffer-menu-undefined|Electric-command-history-redo-expression|Electric-command-loop|Electric-pop-up-window|Footnote-add-footnote|Footnote-assoc-index|Footnote-back-to-message|Footnote-current-regexp|Footnote-cycle-style|Footnote-delete-footnote|Footnote-english-lower|Footnote-english-upper|Footnote-goto-char-point-max|Footnote-goto-footnote|Footnote-index-to-string|Footnote-insert-footnote|Footnote-insert-numbered-footnote|Footnote-insert-pointer-marker|Footnote-insert-text-marker|Footnote-latin|Footnote-make-hole|Footnote-narrow-to-footnotes|Footnote-numeric|Footnote-refresh-footnotes|Footnote-renumber-footnotes|Footnote-renumber|Footnote-roman-common|Footnote-roman-lower|Footnote-roman-upper|Footnote-set-style|Footnote-sort|Footnote-style-p|Footnote-text-under-cursor|Footnote-under-cursor|Footnote-unicode|Info--search-loop|Info-apropos-find-file|Info-apropos-find-node|Info-apropos-matches|Info-apropos-toc-nodes|Info-backward-node|Info-bookmark-jump|Info-bookmark-make-record|Info-breadcrumbs|Info-build-node-completions-1|Info-build-node-completions|Info-cease-edit|Info-check-pointer|Info-clone-buffer|Info-complete-menu-item|Info-copy-current-node-name|Info-default-dirs|Info-desktop-buffer-misc-data|Info-dir-remove-duplicates|Info-directory-find-file|Info-directory-find-node|Info-directory-toc-nodes|Info-directory|Info-display-images-node|Info-edit-mode|Info-edit|Info-exit|Info-extract-menu-counting|Info-extract-menu-item|Info-extract-menu-node-name|Info-extract-pointer|Info-file-supports-index-cookies|Info-final-node|Info-find-emacs-command-nodes|Info-find-file|Info-find-in-tag-table-1|Info-find-in-tag-table|Info-find-index-name|Info-find-node-2|Info-find-node-in-buffer-1|Info-find-node-in-buffer|Info-find-node|Info-finder-find-file|Info-finder-find-node|Info-follow-nearest-node|Info-follow-reference|Info-following-node-name-re|Info-following-node-name|Info-fontify-node|Info-forward-node|Info-get-token|Info-goto-emacs-command-node|Info-goto-emacs-key-command-node|Info-goto-index|Info-goto-node|Info-help|Info-hide-cookies-node|Info-history-back|Info-history-find-file|Info-history-find-node|Info-history-forward|Info-history-toc-nodes|Info-history|Info-index-next|Info-index-nodes??|Info-index|Info-insert-dir|Info-install-speedbar-variables|Info-isearch-end|Info-isearch-filter|Info-isearch-pop-state|Info-isearch-push-state|Info-isearch-search|Info-isearch-start|Info-isearch-wrap|Info-kill-buffer|Info-last-menu-item|Info-last-preorder|Info-last|Info-menu-update|Info-menu|Info-mode-menu|Info-mode|Info-mouse-follow-link|Info-mouse-follow-nearest-node|Info-mouse-scroll-down|Info-mouse-scroll-up|Info-next-menu-item|Info-next-preorder|Info-next-reference-or-link|Info-next-reference|Info-next|Info-no-error|Info-node-at-bob-matching|Info-nth-menu-item|Info-on-current-buffer|Info-prev-reference-or-link|Info-prev-reference|Info-prev|Info-read-node-name-1|Info-read-node-name-2|Info-read-node-name|Info-read-subfile|Info-restore-desktop-buffer|Info-restore-point|Info-revert-buffer-function|Info-revert-find-node|Info-scroll-down|Info-scroll-up|Info-search-backward|Info-search-case-sensitively|Info-search-next|Info-search|Info-select-node|Info-set-mode-line|Info-speedbar-browser|Info-speedbar-buttons|Info-speedbar-expand-node|Info-speedbar-fetch-file-nodes|Info-speedbar-goto-node|Info-speedbar-hierarchy-buttons|Info-split-parameter-string|Info-split|Info-summary|Info-tagify|Info-toc-build|Info-toc-find-node|Info-toc-insert|Info-toc-nodes|Info-toc|Info-top-node|Info-try-follow-nearest-node|Info-undefined|Info-unescape-quotes|Info-up|Info-validate-node-name|Info-validate-tags-table|Info-validate|Info-virtual-call|Info-virtual-file-p|Info-virtual-fun|Info-virtual-index-find-node|Info-virtual-index|LaTeX-mode|Man-bgproc-filter|Man-bgproc-sentinel|Man-bookmark-jump|Man-bookmark-make-record|Man-build-man-command|Man-build-page-list|Man-build-references-alist|Man-build-section-alist|Man-cleanup-manpage|Man-completion-table|Man-default-bookmark-title|Man-default-man-entry|Man-find-section|Man-follow-manual-reference|Man-fontify-manpage|Man-getpage-in-background|Man-goto-page|Man-goto-section|Man-goto-see-also-section|Man-highlight-references0??|Man-init-defvars|Man-kill|Man-make-page-mode-string|Man-mode|Man-next-manpage|Man-next-section|Man-notify-when-ready|Man-page-from-arguments|Man-parse-man-k|Man-possibly-hyphenated-word|Man-previous-manpage|Man-previous-section|Man-quit|Man-softhyphen-to-minus|Man-start-calling|Man-strip-page-headers|Man-support-local-filenames|Man-translate-cleanup|Man-translate-references|Man-unindent|Man-update-manpage|Man-view-header-file|Man-xref-button-action|Math-anglep|Math-bignum-test|Math-equal-int|Math-equal|Math-integer-negp??|Math-integer-posp|Math-integerp|Math-lessp|Math-looks-negp|Math-messy-integerp|Math-natnum-lessp|Math-natnump|Math-negp|Math-num-integerp|Math-numberp|Math-objectp|Math-objvecp|Math-posp|Math-primp|Math-ratp|Math-realp|Math-scalarp|Math-vectorp|Math-zerop|TeX-mode|View-back-to-mark|View-exit-and-edit|View-exit|View-goto-line|View-goto-percent|View-kill-and-leave|View-leave|View-quit-all|View-quit|View-revert-buffer-scroll-page-forward|View-scroll-half-page-backward|View-scroll-half-page-forward|View-scroll-line-backward|View-scroll-line-forward|View-scroll-page-backward-set-page-size|View-scroll-page-backward|View-scroll-page-forward-set-page-size|View-scroll-page-forward|View-scroll-to-buffer-end|View-search-last-regexp-backward|View-search-last-regexp-forward|View-search-regexp-backward|View-search-regexp-forward|WoMan-find-buffer|WoMan-getpage-in-background|WoMan-log-1|WoMan-log-begin|WoMan-log-end|WoMan-log|WoMan-next-manpage|WoMan-previous-manpage|WoMan-warn-ignored|WoMan-warn|abbrev--active-tables|abbrev--before-point|abbrev--check-chars|abbrev--default-expand|abbrev--describe|abbrev--symbol|abbrev--write|abbrev-edit-save-buffer|abbrev-edit-save-to-file|abbrev-mode|abbrev-table-empty-p|abbrev-table-menu|abbrev-table-name|abort-if-file-too-large|about-emacs|accelerate-menu|accept-completion|acons|activate-input-method|activate-mark|activate-mode-local-bindings|ad--defalias-fset|ad--make-advised-docstring|ad-Advice-c-backward-sws|ad-Advice-c-beginning-of-macro|ad-Advice-c-forward-sws|ad-Advice-save-place-find-file-hook|ad-access-argument|ad-activate-advised-definition|ad-activate-all|ad-activate-internal|ad-activate-on|ad-activate-regexp|ad-activate|ad-add-advice|ad-advice-definition|ad-advice-enabled|ad-advice-name|ad-advice-p|ad-advice-position|ad-advice-protected|ad-advice-set-enabled|ad-advised-arglist|ad-advised-interactive-form|ad-arg-binding-field|ad-arglist|ad-assemble-advised-definition|ad-body-forms|ad-cache-id-verification-code|ad-class-p|ad-clear-advicefunname-definition|ad-clear-cache|ad-compile-function|ad-compiled-code|ad-compiled-p|ad-copy-advice-info|ad-deactivate-all|ad-deactivate-regexp|ad-deactivate|ad-definition-type|ad-disable-advice|ad-disable-regexp|ad-do-advised-functions|ad-docstring|ad-element-access|ad-enable-advice-internal|ad-enable-advice|ad-enable-regexp-internal|ad-enable-regexp|ad-find-advice|ad-find-some-advice|ad-get-advice-info-field|ad-get-advice-info-macro|ad-get-advice-info|ad-get-arguments??|ad-get-cache-class-id|ad-get-cache-definition|ad-get-cache-id|ad-get-enabled-advices|ad-get-orig-definition|ad-has-any-advice|ad-has-enabled-advice|ad-has-proper-definition|ad-has-redefining-advice|ad-initialize-advice-info|ad-insert-argument-access-forms|ad-interactive-form|ad-is-active|ad-is-advised|ad-is-compilable|ad-lambda-expression|ad-lambda-p|ad-lambdafy|ad-list-access|ad-macrofy|ad-make-advice|ad-make-advicefunname|ad-make-advised-definition|ad-make-cache-id|ad-make-hook-form|ad-make-single-advice-docstring|ad-map-arglists|ad-name-p|ad-parse-arglist|ad-pop-advised-function|ad-position-p|ad-preactivate-advice|ad-pushnew-advised-function|ad-read-advice-class|ad-read-advice-name|ad-read-advice-specification|ad-read-advised-function|ad-read-regexp|ad-real-definition|ad-real-orig-definition|ad-recover-all|ad-recover-normality|ad-recover|ad-remove-advice|ad-retrieve-args-form|ad-set-advice-info-field|ad-set-advice-info|ad-set-arguments??|ad-set-cache|ad-should-compile|ad-substitute-tree|ad-unadvise-all|ad-unadvise|ad-update-all|ad-update-regexp|ad-update|ad-verify-cache-class-id|ad-verify-cache-id|ad-with-originals|ada-activate-keys-for-case|ada-add-extensions|ada-adjust-case-buffer|ada-adjust-case-identifier|ada-adjust-case-interactive|ada-adjust-case-region|ada-adjust-case-skeleton|ada-adjust-case-substring|ada-adjust-case|ada-after-keyword-p|ada-array|ada-batch-reformat|ada-call-from-contextual-menu|ada-capitalize-word|ada-case-read-exceptions-from-file)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)a(?:da-case-read-exceptions|da-case|da-change-prj|da-check-current|da-check-defun-name|da-check-matching-start|da-compile-application|da-compile-current|da-compile-goto-error|da-compile-mouse-goto-error|da-complete-identifier|da-contextual-menu|da-create-case-exception-substring|da-create-case-exception|da-create-keymap|da-create-menu|da-customize|da-declare-block|da-else|da-elsif|da-exception-block|da-exception|da-exit|da-ff-other-window|da-fill-comment-paragraph-justify|da-fill-comment-paragraph-postfix|da-fill-comment-paragraph|da-find-any-references|da-find-file|da-find-local-references|da-find-references|da-find-src-file-in-dir|da-for-loop|da-format-paramlist|da-function-spec|da-gdb-application|da-gen-treat-proc|da-get-body-name|da-get-current-indent|da-get-indent-block-label|da-get-indent-block-start|da-get-indent-case|da-get-indent-end|da-get-indent-goto-label|da-get-indent-if|da-get-indent-loop|da-get-indent-nochange|da-get-indent-noindent|da-get-indent-open-paren|da-get-indent-paramlist|da-get-indent-subprog|da-get-indent-type|da-get-indent-when|da-gnat-style|da-goto-decl-start|da-goto-declaration-other-frame|da-goto-declaration|da-goto-matching-end|da-goto-matching-start|da-goto-next-non-ws|da-goto-next-word|da-goto-parent|da-goto-previous-word|da-goto-stmt-end|da-goto-stmt-start|da-header|da-if|da-in-comment-p|da-in-decl-p|da-in-numeric-literal-p|da-in-open-paren-p|da-in-paramlist-p|da-in-string-or-comment-p|da-in-string-p|da-indent-current-function|da-indent-current|da-indent-newline-indent-conditional|da-indent-newline-indent|da-indent-on-previous-lines|da-indent-region|da-insert-paramlist|da-justified-indent-current|da-looking-at-semi-or|da-looking-at-semi-private|da-loop|da-loose-case-word|da-make-body-gnatstub|da-make-body|da-make-filename-from-adaname|da-make-subprogram-body|da-mode-menu|da-mode-version|da-mode|da-move-to-end|da-move-to-start|da-narrow-to-defun|da-next-package|da-next-procedure|da-no-auto-case|da-other-file-name|da-outline-level|da-package-body|da-package-spec|da-point-and-xref|da-popup-menu|da-previous-package|da-previous-procedure|da-private|da-prj-edit|da-prj-new|da-prj-save|da-procedure-spec|da-record|da-region-selected|da-remove-trailing-spaces|da-reread-prj-file|da-run-application|da-save-exceptions-to-file|da-scan-paramlist|da-search-ignore-complex-boolean|da-search-ignore-string-comment|da-search-prev-end-stmt|da-set-default-project-file|da-set-main-compile-application|da-set-point-accordingly|da-show-current-main|da-subprogram-body|da-subtype|da-tab-hard|da-tab|da-tabsize|da-task-body|da-task-spec|da-type|da-uncomment-region|da-untab-hard|da-untab|da-use|da-when|da-which-function-are-we-in|da-which-function|da-while-loop|da-with|da-xref-goto-previous-reference|dd-abbrev|dd-change-log-entry-other-window|dd-change-log-entry|dd-completion-to-head|dd-completion-to-tail-if-new|dd-completion|dd-completions-from-buffer|dd-completions-from-c-buffer|dd-completions-from-file|dd-completions-from-lisp-buffer|dd-completions-from-tags-table|dd-dir-local-variable|dd-file-local-variable-prop-line|dd-file-local-variable|dd-global-abbrev|dd-log-current-defun|dd-log-edit-next-comment|dd-log-edit-prev-comment|dd-log-file-name|dd-log-iso8601-time-string|dd-log-iso8601-time-zone|dd-log-tcl-defun|dd-minor-mode|dd-mode-abbrev|dd-new-page|dd-permanent-completion|dd-submenu|dd-timeout|dd-to-coding-system-list|dd-to-list--anon-cmacro|ddbib|djoin|dvertised-undo|dvertised-widget-backward|dvertised-xscheme-send-previous-expression|dvice--add-function|dvice--buffer-local|dvice--called-interactively-skip|dvice--car|dvice--cd\\\\*r|dvice--cdr|dvice--defalias-fset|dvice--interactive-form|dvice--make-1|dvice--make-docstring|dvice--make-interactive-form|dvice--make|dvice--member-p|dvice--normalize-place|dvice--normalize|dvice--p|dvice--props|dvice--remove-function|dvice--set-buffer-local|dvice--strip-macro|dvice--subst-main|dvice--symbol-function|dvice--tweak|fter-insert-file-set-coding|lign--set-marker|lign-adjust-col-for-rule|lign-areas|lign-column|lign-current|lign-entire|lign-highlight-rule|lign-match-tex-pattern|lign-new-section-p|lign-newline-and-indent|lign-regexp|lign-regions??|lign-set-vhdl-rules|lign-unhighlight-rule|lign|list-get|llout-aberrant-container-p|llout-add-resumptions|llout-adjust-file-variable|llout-after-saves-handler|llout-annotate-hidden|llout-ascend-to-depth|llout-ascend|llout-auto-activation-helper|llout-auto-fill|llout-back-to-current-heading|llout-back-to-heading|llout-back-to-visible-text|llout-backward-current-level|llout-before-change-handler|llout-beginning-of-current-entry|llout-beginning-of-current-line|llout-beginning-of-level|llout-beginning-of-line|llout-body-modification-handler|llout-bullet-for-depth|llout-bullet-isearch|llout-called-interactively-p|llout-chart-exposure-contour-by-icon|llout-chart-siblings|llout-chart-subtree|llout-chart-to-reveal|llout-compose-and-institute-keymap|llout-copy-exposed-to-buffer|llout-copy-line-as-kill|llout-copy-topic-as-kill|llout-current-bullet-pos|llout-current-bullet|llout-current-decorated-p|llout-current-depth|llout-current-topic-collapsed-p|llout-deannotate-hidden|llout-decorate-item-and-context|llout-decorate-item-body|llout-decorate-item-cue|llout-decorate-item-guides|llout-decorate-item-icon|llout-decorate-item-span|llout-depth|llout-descend-to-depth|llout-distinctive-bullet|llout-do-doublecheck|llout-do-resumptions|llout-e-o-prefix-p|llout-elapsed-time-seconds|llout-encrypt-decrypted|llout-encrypt-string|llout-encrypted-topic-p|llout-encrypted-type-prefix|llout-end-of-current-heading|llout-end-of-current-line|llout-end-of-current-subtree|llout-end-of-entry|llout-end-of-heading|llout-end-of-level|llout-end-of-line|llout-end-of-prefix|llout-end-of-subtree|llout-expose-topic|llout-fetch-icon-image|llout-file-vars-section-data|llout-find-file-hook|llout-find-image|llout-flag-current-subtree|llout-flag-region|llout-flatten-exposed-to-buffer|llout-flatten|llout-format-quote|llout-forward-current-level|llout-frame-property|llout-get-body-text|llout-get-bullet|llout-get-configvar-values|llout-get-current-prefix|llout-get-invisibility-overlay|llout-get-item-widget|llout-get-or-create-item-widget|llout-get-or-create-parent-widget|llout-get-prefix-bullet|llout-goto-prefix-doublechecked|llout-goto-prefix|llout-graphics-modification-handler|llout-hidden-p|llout-hide-bodies|llout-hide-by-annotation|llout-hide-current-entry|llout-hide-current-leaves|llout-hide-current-subtree|llout-hide-region-body|llout-hotspot-key-handler|llout-indented-exposed-to-buffer|llout-infer-body-reindent|llout-infer-header-lead-and-primary-bullet|llout-infer-header-lead|llout-inhibit-auto-save-info-for-decryption|llout-init|llout-insert-latex-header|llout-insert-latex-trailer|llout-insert-listified|llout-institute-keymap|llout-isearch-end-handler|llout-item-actual-position|llout-item-element-span-is|llout-item-icon-key-handler|llout-item-location|llout-item-span|llout-kill-line|llout-kill-topic|llout-latex-verb-quote|llout-latex-verbatim-quote-curr-line|llout-latexify-exposed|llout-latexify-one-item|llout-lead-with-comment-string|llout-listify-exposed|llout-make-topic-prefix|llout-mark-active-p|llout-mark-marker|llout-mark-topic|llout-maybe-resume-auto-save-info-after-encryption|llout-minor-mode|llout-mode-map|llout-mode-p|llout-mode|llout-new-exposure|llout-new-item-widget|llout-next-heading|llout-next-sibling-leap|llout-next-sibling|llout-next-single-char-property-change|llout-next-topic-pending-encryption|llout-next-visible-heading|llout-number-siblings|llout-numbered-type-prefix|llout-old-expose-topic|llout-on-current-heading-p|llout-on-heading-p|llout-open-sibtopic|llout-open-subtopic|llout-open-supertopic|llout-open-topic|llout-overlay-insert-in-front-handler|llout-overlay-interior-modification-handler|llout-overlay-preparations|llout-parse-item-at-point|llout-post-command-business|llout-pre-command-business|llout-pre-next-prefix|llout-prefix-data|llout-previous-heading|llout-previous-sibling|llout-previous-single-char-property-change|llout-previous-visible-heading|llout-process-exposed|llout-range-overlaps|llout-rebullet-current-heading|llout-rebullet-heading|llout-rebullet-topic-grunt|llout-rebullet-topic|llout-recent-bullet|llout-recent-depth|llout-recent-prefix|llout-redecorate-item|llout-redecorate-visible-subtree|llout-region-active-p|llout-reindent-body|llout-renumber-to-depth|llout-reset-header-lead|llout-resolve-xref|llout-run-unit-tests|llout-select-safe-coding-system|llout-set-boundary-marker|llout-setup-menubar|llout-setup-text-properties|llout-setup|llout-shift-in|llout-shift-out|llout-show-all|llout-show-children|llout-show-current-branches|llout-show-current-entry|llout-show-current-subtree|llout-show-entry|llout-show-to-offshoot|llout-sibling-index|llout-snug-back|llout-solicit-alternate-bullet|llout-stringify-flat-index-indented|llout-stringify-flat-index-plain|llout-stringify-flat-index|llout-substring-no-properties|llout-test-range-overlaps|llout-test-resumptions|llout-tests-obliterate-variable|llout-this-or-next-heading|llout-toggle-current-subtree-encryption|llout-toggle-current-subtree-exposure|llout-toggle-subtree-encryption|llout-topic-flat-index|llout-unload-function|llout-unprotected|llout-up-current-level|llout-version|llout-widgetize-buffer|llout-widgets-additions-processor|llout-widgets-additions-recorder|llout-widgets-adjusting-message|llout-widgets-after-change-handler|llout-widgets-after-copy-or-kill-function|llout-widgets-after-undo-function|llout-widgets-before-change-handler|llout-widgets-changes-dispatcher|llout-widgets-copy-list|llout-widgets-count-buttons-in-region|llout-widgets-deletions-processor|llout-widgets-deletions-recorder|llout-widgets-exposure-change-processor|llout-widgets-exposure-change-recorder|llout-widgets-exposure-undo-processor|llout-widgets-exposure-undo-recorder|llout-widgets-hook-error-handler|llout-widgets-mode-disable|llout-widgets-mode-enable|llout-widgets-mode-off|llout-widgets-mode-on|llout-widgets-mode|llout-widgets-post-command-business|llout-widgets-pre-command-business|llout-widgets-prepopulate-buffer|llout-widgets-run-unit-tests|llout-widgets-setup|llout-widgets-shifts-processor|llout-widgets-shifts-recorder|llout-widgets-tally-string|llout-widgets-undecorate-item|llout-widgets-undecorate-region|llout-widgets-undecorate-text|llout-widgets-version|llout-write-contents-hook-handler|llout-yank-pop|llout-yank-processing|llout-yank|lter-text-property|nge-ftp-abbreviate-filename|nge-ftp-add-bs2000-host|nge-ftp-add-bs2000-posix-host|nge-ftp-add-cms-host|nge-ftp-add-dl-dir|nge-ftp-add-dumb-unix-host|nge-ftp-add-file-entry|nge-ftp-add-mts-host|nge-ftp-add-vms-host|nge-ftp-allow-child-lookup|nge-ftp-barf-if-not-directory|nge-ftp-barf-or-query-if-file-exists|nge-ftp-binary-file|nge-ftp-bs2000-cd-to-posix|nge-ftp-bs2000-host|nge-ftp-bs2000-posix-host|nge-ftp-call-chmod|nge-ftp-call-cont|nge-ftp-canonize-filename|nge-ftp-cd|nge-ftp-cf1|nge-ftp-cf2|nge-ftp-chase-symlinks|nge-ftp-cms-host|nge-ftp-cms-make-compressed-filename|nge-ftp-completion-hook-function|nge-ftp-compress|nge-ftp-copy-file-internal|nge-ftp-copy-file|nge-ftp-copy-files-async|nge-ftp-del-tmp-name|nge-ftp-delete-directory|nge-ftp-delete-file-entry|nge-ftp-delete-file|nge-ftp-directory-file-name|nge-ftp-directory-files-and-attributes|nge-ftp-directory-files|nge-ftp-dired-compress-file|nge-ftp-dired-uncache|nge-ftp-dl-parser|nge-ftp-dumb-unix-host|nge-ftp-error|nge-ftp-expand-dir|nge-ftp-expand-file-name|nge-ftp-expand-symlink|nge-ftp-file-attributes|nge-ftp-file-directory-p|nge-ftp-file-entry-not-ignored-p|nge-ftp-file-entry-p|nge-ftp-file-executable-p|nge-ftp-file-exists-p|nge-ftp-file-local-copy|nge-ftp-file-modtime|nge-ftp-file-name-all-completions|nge-ftp-file-name-as-directory|nge-ftp-file-name-completion-1|nge-ftp-file-name-completion|nge-ftp-file-name-directory|nge-ftp-file-name-nondirectory|nge-ftp-file-name-sans-versions)(?=[()\\\\s]|$)"},{"match":"(?<=[()]|^)a(?:nge-ftp-file-newer-than-file-p|nge-ftp-file-readable-p|nge-ftp-file-remote-p|nge-ftp-file-size|nge-ftp-file-symlink-p|nge-ftp-file-writable-p|nge-ftp-find-backup-file-name|nge-ftp-fix-dir-name-for-bs2000|nge-ftp-fix-dir-name-for-cms|nge-ftp-fix-dir-name-for-mts|nge-ftp-fix-dir-name-for-vms|nge-ftp-fix-name-for-bs2000|nge-ftp-fix-name-for-cms|nge-ftp-fix-name-for-mts|nge-ftp-fix-name-for-vms|nge-ftp-ftp-name-component|nge-ftp-ftp-name|nge-ftp-ftp-process-buffer|nge-ftp-generate-passwd-key|nge-ftp-generate-root-prefixes|nge-ftp-get-account|nge-ftp-get-file-entry|nge-ftp-get-file-part|nge-ftp-get-files|nge-ftp-get-host-with-passwd|nge-ftp-get-passwd|nge-ftp-get-process|nge-ftp-get-pwd|nge-ftp-get-user|nge-ftp-guess-hash-mark-size|nge-ftp-guess-host-type|nge-ftp-gwp-filter|nge-ftp-gwp-sentinel|nge-ftp-gwp-start|nge-ftp-hash-entry-exists-p|nge-ftp-hash-table-keys|nge-ftp-hook-function|nge-ftp-host-type|nge-ftp-ignore-errors-if-non-essential|nge-ftp-insert-directory|nge-ftp-insert-file-contents|nge-ftp-internal-add-file-entry|nge-ftp-internal-delete-file-entry|nge-ftp-kill-ftp-process|nge-ftp-load|nge-ftp-lookup-passwd|nge-ftp-ls-parser|nge-ftp-ls|nge-ftp-make-directory|nge-ftp-make-tmp-name|nge-ftp-message|nge-ftp-mts-host|nge-ftp-normal-login|nge-ftp-nslookup-host|nge-ftp-parse-bs2000-filename|nge-ftp-parse-bs2000-listing|nge-ftp-parse-cms-listing|nge-ftp-parse-dired-listing|nge-ftp-parse-filename|nge-ftp-parse-mts-listing|nge-ftp-parse-netrc-group|nge-ftp-parse-netrc-token|nge-ftp-parse-netrc|nge-ftp-parse-vms-filename|nge-ftp-parse-vms-listing|nge-ftp-passive-mode|nge-ftp-process-file|nge-ftp-process-filter|nge-ftp-process-handle-hash|nge-ftp-process-handle-line|nge-ftp-process-sentinel|nge-ftp-quote-string|nge-ftp-raw-send-cmd|nge-ftp-re-read-dir|nge-ftp-real-backup-buffer|nge-ftp-real-copy-file|nge-ftp-real-delete-directory|nge-ftp-real-delete-file|nge-ftp-real-directory-file-name|nge-ftp-real-directory-files-and-attributes|nge-ftp-real-directory-files|nge-ftp-real-expand-file-name|nge-ftp-real-file-attributes|nge-ftp-real-file-directory-p|nge-ftp-real-file-executable-p|nge-ftp-real-file-exists-p|nge-ftp-real-file-name-all-completions|nge-ftp-real-file-name-as-directory|nge-ftp-real-file-name-completion|nge-ftp-real-file-name-directory|nge-ftp-real-file-name-nondirectory|nge-ftp-real-file-name-sans-versions|nge-ftp-real-file-newer-than-file-p|nge-ftp-real-file-readable-p|nge-ftp-real-file-symlink-p|nge-ftp-real-file-writable-p|nge-ftp-real-find-backup-file-name|nge-ftp-real-insert-directory|nge-ftp-real-insert-file-contents|nge-ftp-real-load|nge-ftp-real-make-directory|nge-ftp-real-rename-file|nge-ftp-real-shell-command|nge-ftp-real-verify-visited-file-modtime|nge-ftp-real-write-region|nge-ftp-rename-file|nge-ftp-rename-local-to-remote|nge-ftp-rename-remote-to-local|nge-ftp-rename-remote-to-remote|nge-ftp-repaint-minibuffer|nge-ftp-replace-name-component|nge-ftp-reread-dir|nge-ftp-root-dir-p|nge-ftp-run-real-handler-orig|nge-ftp-run-real-handler|nge-ftp-send-cmd|nge-ftp-set-account|nge-ftp-set-ascii-mode|nge-ftp-set-binary-mode|nge-ftp-set-buffer-mode|nge-ftp-set-file-modes|nge-ftp-set-files|nge-ftp-set-passwd|nge-ftp-set-user|nge-ftp-set-xfer-size|nge-ftp-shell-command|nge-ftp-smart-login|nge-ftp-start-process|nge-ftp-switches-ok|nge-ftp-uncompress|nge-ftp-unhandled-file-name-directory|nge-ftp-use-gateway-p|nge-ftp-use-smart-gateway-p|nge-ftp-verify-visited-file-modtime|nge-ftp-vms-add-file-entry|nge-ftp-vms-delete-file-entry|nge-ftp-vms-file-name-as-directory|nge-ftp-vms-host|nge-ftp-vms-make-compressed-filename|nge-ftp-vms-sans-version|nge-ftp-wait-not-busy|nge-ftp-wipe-file-entries|nge-ftp-write-region|nimate-birthday-present|nimate-initialize|nimate-place-char|nimate-sequence|nimate-step|nimate-string|nother-calc|nsi-color--find-face|nsi-color-apply-on-region|nsi-color-apply-overlay-face|nsi-color-apply-sequence|nsi-color-apply|nsi-color-filter-apply|nsi-color-filter-region|nsi-color-for-comint-mode-filter|nsi-color-for-comint-mode-off|nsi-color-for-comint-mode-on|nsi-color-freeze-overlay|nsi-color-get-face-1|nsi-color-make-color-map|nsi-color-make-extent|nsi-color-make-face|nsi-color-map-update|nsi-color-parse-sequence|nsi-color-process-output|nsi-color-set-extent-face|nsi-color-unfontify-region|nsi-term|ntlr-beginning-of-body|ntlr-beginning-of-rule|ntlr-c\\\\+\\\\+-mode-extra|ntlr-c-forward-sws|ntlr-c-init-language-vars|ntlr-default-directory|ntlr-directory-dependencies|ntlr-downcase-literals|ntlr-electric-character|ntlr-end-of-body|ntlr-end-of-rule|ntlr-file-dependencies|ntlr-font-lock-keywords|ntlr-grammar-tokens|ntlr-hide-actions|ntlr-imenu-create-index-function|ntlr-indent-command|ntlr-indent-line|ntlr-insert-makefile-rules|ntlr-insert-option-area|ntlr-insert-option-do|ntlr-insert-option-existing|ntlr-insert-option-interactive|ntlr-insert-option-space|ntlr-insert-option|ntlr-inside-rule-p|ntlr-invalidate-context-cache|ntlr-language-option-extra|ntlr-language-option|ntlr-makefile-insert-variable|ntlr-mode-menu|ntlr-mode|ntlr-next-rule|ntlr-option-kind|ntlr-option-level|ntlr-option-location|ntlr-option-spec|ntlr-options-menu-filter|ntlr-outside-rule-p|ntlr-re-search-forward|ntlr-read-boolean|ntlr-read-shell-command|ntlr-read-value|ntlr-run-tool-interactive|ntlr-run-tool|ntlr-search-backward|ntlr-search-forward|ntlr-set-tabs|ntlr-show-makefile-rules|ntlr-skip-exception-part|ntlr-skip-file-prelude|ntlr-skip-sexps|ntlr-superclasses-glibs|ntlr-syntactic-context|ntlr-syntactic-grammar-depth|ntlr-upcase-literals|ntlr-upcase-p|ntlr-version-string|ntlr-with-displaying-help-buffer|ntlr-with-syntax-table|ppend-next-kill|ppend-to-buffer|ppend-to-register|pply-macro-to-region-lines|pply-on-rectangle|ppt-activate|ppt-add|propos-command|propos-documentation-property|propos-documentation|propos-internal|propos-library|propos-read-pattern|propos-user-option|propos-value|propos-variable|rchive-\\\\*-expunge|rchive-\\\\*-extract|rchive-\\\\*-write-file-member|rchive-7z-extract|rchive-7z-summarize|rchive-7z-write-file-member|rchive-add-new-member|rchive-alternate-display|rchive-ar-extract|rchive-ar-summarize|rchive-arc-rename-entry|rchive-arc-summarize|rchive-calc-mode|rchive-chgrp-entry|rchive-chmod-entry|rchive-chown-entry|rchive-delete-local|rchive-desummarize|rchive-display-other-window|rchive-dosdate|rchive-dostime|rchive-expunge|rchive-extract-by-file|rchive-extract-by-stdout|rchive-extract-other-window|rchive-extract|rchive-file-name-handler|rchive-find-type|rchive-flag-deleted|rchive-get-descr|rchive-get-lineno|rchive-get-marked|rchive-int-to-mode|rchive-l-e|rchive-lzh-chgrp-entry|rchive-lzh-chmod-entry|rchive-lzh-chown-entry|rchive-lzh-exe-extract|rchive-lzh-exe-summarize|rchive-lzh-extract|rchive-lzh-ogm|rchive-lzh-rename-entry|rchive-lzh-resum|rchive-lzh-summarize|rchive-mark|rchive-maybe-copy|rchive-maybe-update|rchive-mode-revert|rchive-mode|rchive-mouse-extract|rchive-name|rchive-next-line|rchive-previous-line|rchive-rar-exe-extract|rchive-rar-exe-summarize|rchive-rar-extract|rchive-rar-summarize|rchive-rename-entry|rchive-resummarize|rchive-set-buffer-as-visiting-file|rchive-summarize-files|rchive-summarize|rchive-try-jka-compr|rchive-undo|rchive-unflag-backwards|rchive-unflag|rchive-unique-fname|rchive-unixdate|rchive-unixtime|rchive-unmark-all-files|rchive-view|rchive-write-file-member|rchive-write-file|rchive-zip-chmod-entry|rchive-zip-extract|rchive-zip-summarize|rchive-zip-write-file-member|rchive-zoo-extract|rchive-zoo-summarize|rp|rray-backward-column|rray-beginning-of-field|rray-copy-backward|rray-copy-column-backward|rray-copy-column-forward|rray-copy-down|rray-copy-forward|rray-copy-once-horizontally|rray-copy-once-vertically|rray-copy-row-down|rray-copy-row-up|rray-copy-to-cell|rray-copy-to-column|rray-copy-to-row|rray-copy-up|rray-current-column|rray-current-row|rray-cursor-in-array-range|rray-display-local-variables|rray-end-of-field|rray-expand-rows|rray-field-string|rray-fill-rectangle|rray-forward-column|rray-goto-cell|rray-make-template|rray-maybe-scroll-horizontally|rray-mode|rray-move-one-column|rray-move-one-row|rray-move-to-cell|rray-move-to-column|rray-move-to-row|rray-next-row|rray-normalize-cursor|rray-previous-row|rray-reconfigure-rows|rray-update-array-position|rray-update-buffer-position|rray-what-position|rtist-2point-get-endpoint1|rtist-2point-get-endpoint2|rtist-2point-get-shapeinfo|rtist-arrow-point-get-direction|rtist-arrow-point-get-marker|rtist-arrow-point-get-orig-char|rtist-arrow-point-get-state|rtist-arrow-point-set-state|rtist-arrows|rtist-backward-char|rtist-calculate-new-chars??|rtist-charlist-to-string|rtist-clear-arrow-points|rtist-clear-buffer|rtist-compute-key-compl-table|rtist-compute-line-char|rtist-compute-popup-menu-table-sub|rtist-compute-popup-menu-table|rtist-compute-up-event-key|rtist-coord-add-new-char|rtist-coord-add-saved-char|rtist-coord-get-new-char|rtist-coord-get-saved-char|rtist-coord-get-x|rtist-coord-get-y|rtist-coord-set-new-char|rtist-coord-set-x|rtist-coord-set-y|rtist-coord-win-to-buf|rtist-copy-generic|rtist-copy-rect|rtist-copy-square|rtist-current-column|rtist-current-line|rtist-cut-rect|rtist-cut-square|rtist-direction-char|rtist-direction-step-x|rtist-direction-step-y|rtist-do-nothing|rtist-down-mouse-1|rtist-down-mouse-3|rtist-draw-circle|rtist-draw-ellipse-general|rtist-draw-ellipse-with-0-height|rtist-draw-ellipse|rtist-draw-line|rtist-draw-rect|rtist-draw-region-reset|rtist-draw-region-trim-line-endings|rtist-draw-sline|rtist-draw-square|rtist-eight-point|rtist-ellipse-compute-fill-info|rtist-ellipse-fill-info-add-center|rtist-ellipse-generate-quadrant|rtist-ellipse-mirror-quadrant|rtist-ellipse-point-list-add-center|rtist-ellipse-remove-0-fills|rtist-endpoint-get-x|rtist-endpoint-get-y|rtist-erase-char|rtist-erase-rect|rtist-event-is-shifted|rtist-fc-get-fn-from-symbol|rtist-fc-get-fn|rtist-fc-get-keyword|rtist-fc-get-symbol|rtist-fc-retrieve-from-symbol-sub|rtist-fc-retrieve-from-symbol|rtist-ff-get-rightmost-from-xy|rtist-ff-is-bottommost-line|rtist-ff-is-topmost-line|rtist-ff-too-far-right|rtist-figlet-choose-font|rtist-figlet-get-extra-args|rtist-figlet-get-font-list|rtist-figlet-run|rtist-figlet|rtist-file-to-string|rtist-fill-circle|rtist-fill-ellipse|rtist-fill-item-get-width|rtist-fill-item-get-x|rtist-fill-item-get-y|rtist-fill-item-set-width|rtist-fill-item-set-x|rtist-fill-item-set-y|rtist-fill-rect|rtist-fill-square|rtist-find-direction|rtist-find-octant|rtist-flood-fill|rtist-forward-char|rtist-funcall|rtist-get-buffer-contents-at-xy|rtist-get-char-at-xy-conv|rtist-get-char-at-xy|rtist-get-dfdx-init-coeff|rtist-get-dfdy-init-coeff|rtist-get-first-non-nil-op|rtist-get-last-non-nil-op|rtist-get-replacement-char|rtist-get-x-step-q<0|rtist-get-x-step-q>=0|rtist-get-y-step-q<0|rtist-get-y-step-q>=0|rtist-go-get-arrow-pred-from-symbol|rtist-go-get-arrow-pred|rtist-go-get-arrow-set-fn-from-symbol|rtist-go-get-arrow-set-fn|rtist-go-get-desc|rtist-go-get-draw-fn-from-symbol|rtist-go-get-draw-fn|rtist-go-get-draw-how-from-symbol|rtist-go-get-draw-how|rtist-go-get-exit-fn-from-symbol|rtist-go-get-exit-fn|rtist-go-get-fill-fn-from-symbol|rtist-go-get-fill-fn|rtist-go-get-fill-pred-from-symbol|rtist-go-get-fill-pred|rtist-go-get-init-fn-from-symbol|rtist-go-get-init-fn|rtist-go-get-interval-fn-from-symbol|rtist-go-get-interval-fn|rtist-go-get-keyword-from-symbol|rtist-go-get-keyword|rtist-go-get-mode-line-from-symbol|rtist-go-get-mode-line|rtist-go-get-prep-fill-fn-from-symbol|rtist-go-get-prep-fill-fn|rtist-go-get-shifted|rtist-go-get-symbol-shift-sub|rtist-go-get-symbol-shift|rtist-go-get-symbol|rtist-go-get-undraw-fn-from-symbol|rtist-go-get-undraw-fn|rtist-go-get-unshifted|rtist-go-retrieve-from-symbol-sub|rtist-go-retrieve-from-symbol|rtist-intersection-char|rtist-is-in-op-list-p|rtist-key-do-continously-1point|rtist-key-do-continously-2points|rtist-key-do-continously-common)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:artist-key-do-continously-continously|artist-key-do-continously-poly|artist-key-draw-1point|artist-key-draw-2points|artist-key-draw-common|artist-key-draw-continously|artist-key-draw-poly|artist-key-set-point-1point|artist-key-set-point-2points|artist-key-set-point-common|artist-key-set-point-continously|artist-key-set-point-poly|artist-key-set-point|artist-key-undraw-1point|artist-key-undraw-2points|artist-key-undraw-common|artist-key-undraw-continously|artist-key-undraw-poly|artist-make-2point-object|artist-make-arrow-point|artist-make-endpoint|artist-make-prev-next-op-alist|artist-mn-get-items|artist-mn-get-title|artist-mode-exit|artist-mode-init|artist-mode-line-show-curr-operation|artist-mode-off|artist-mode|artist-modify-new-chars|artist-mouse-choose-operation|artist-mouse-draw-1point|artist-mouse-draw-2points|artist-mouse-draw-continously|artist-mouse-draw-poly|artist-move-to-xy|artist-mt-get-info-part|artist-mt-get-symbol-from-keyword-sub|artist-mt-get-symbol-from-keyword|artist-mt-get-tag|artist-new-coord|artist-new-fill-item|artist-next-line|artist-nil|artist-no-arrows|artist-no-rb-set-point1|artist-no-rb-set-point2|artist-no-rb-unset-point1|artist-no-rb-unset-point2|artist-no-rb-unset-points|artist-paste|artist-pen-line|artist-pen-reset-last-xy|artist-pen-set-arrow-points|artist-pen|artist-previous-line|artist-put-pixel|artist-rect-corners-squarify|artist-replace-chars??|artist-replace-string|artist-save-chars-under-point-list|artist-save-chars-under-sline|artist-select-erase-char|artist-select-fill-char|artist-select-line-char|artist-select-next-op-in-list|artist-select-op-circle|artist-select-op-copy-rectangle|artist-select-op-copy-square|artist-select-op-cut-rectangle|artist-select-op-cut-square|artist-select-op-ellipse|artist-select-op-erase-char|artist-select-op-erase-rectangle|artist-select-op-flood-fill|artist-select-op-line|artist-select-op-paste|artist-select-op-pen-line|artist-select-op-poly-line|artist-select-op-rectangle|artist-select-op-spray-can|artist-select-op-spray-set-size|artist-select-op-square|artist-select-op-straight-line|artist-select-op-straight-poly-line|artist-select-op-text-overwrite|artist-select-op-text-see-thru|artist-select-op-vaporize-lines??|artist-select-operation|artist-select-prev-op-in-list|artist-select-spray-chars|artist-set-arrow-points-for-2points|artist-set-arrow-points-for-poly|artist-set-pointer-shape|artist-shift-has-changed|artist-sline|artist-spray-clear-circle|artist-spray-get-interval|artist-spray-random-points|artist-spray-set-radius|artist-spray|artist-straight-calculate-length|artist-string-split|artist-string-to-charlist|artist-string-to-file|artist-submit-bug-report|artist-system|artist-t-if-fill-char-set|artist-t|artist-text-insert-common|artist-text-insert-overwrite|artist-text-insert-see-thru|artist-text-overwrite|artist-text-see-thru|artist-toggle-borderless-shapes|artist-toggle-first-arrow|artist-toggle-rubber-banding|artist-toggle-second-arrow|artist-toggle-trim-line-endings|artist-undraw-circle|artist-undraw-ellipse|artist-undraw-line|artist-undraw-rect|artist-undraw-sline|artist-undraw-square|artist-unintersection-char|artist-uniq|artist-update-display|artist-update-pointer-shape|artist-vap-find-endpoint|artist-vap-find-endpoints-horiz|artist-vap-find-endpoints-nwse|artist-vap-find-endpoints-swne|artist-vap-find-endpoints-vert|artist-vap-find-endpoints|artist-vap-group-in-pairs|artist-vaporize-by-endpoints|artist-vaporize-lines??|asm-calculate-indentation|asm-colon|asm-comment|asm-indent-line|asm-mode|asm-newline|assert|assoc\\\\*|assoc-if-not|assoc-if|assoc-ignore-case|assoc-ignore-representation|async-shell-command|atomic-change-group|auth-source--aget|auth-source--aput-1|auth-source--aput|auth-source-backend-child-p|auth-source-backend-list-p|auth-source-backend-p|auth-source-backend-parse-parameters|auth-source-backend-parse|auth-source-backend|auth-source-current-line|auth-source-delete|auth-source-do-debug|auth-source-do-trivia|auth-source-do-warn|auth-source-ensure-strings|auth-source-epa-extract-gpg-token|auth-source-epa-make-gpg-token|auth-source-forget\\\\+|auth-source-forget-all-cached|auth-source-forget|auth-source-format-cache-entry|auth-source-format-prompt|auth-source-macos-keychain-create|auth-source-macos-keychain-result-append|auth-source-macos-keychain-search-items|auth-source-macos-keychain-search|auth-source-netrc-create|auth-source-netrc-element-or-first|auth-source-netrc-normalize|auth-source-netrc-parse-entries|auth-source-netrc-parse-next-interesting|auth-source-netrc-parse-one|auth-source-netrc-parse|auth-source-netrc-saver|auth-source-netrc-search|auth-source-pick-first-password|auth-source-plstore-create|auth-source-plstore-search|auth-source-read-char-choice|auth-source-recall|auth-source-remember|auth-source-remembered-p|auth-source-search-backends|auth-source-search-collection|auth-source-search|auth-source-secrets-create|auth-source-secrets-listify-pattern|auth-source-secrets-search|auth-source-specmatchp|auth-source-token-passphrase-callback-function|auth-source-user-and-password|auth-source-user-or-password|auto-coding-alist-lookup|auto-coding-regexp-alist-lookup|auto-compose-chars|auto-composition-mode|auto-compression-mode|auto-encryption-mode|auto-fill-mode|auto-image-file-mode|auto-insert-mode|auto-insert|auto-lower-mode|auto-raise-mode|auto-revert-active-p|auto-revert-buffers|auto-revert-handler|auto-revert-mode|auto-revert-notify-add-watch|auto-revert-notify-handler|auto-revert-notify-rm-watch|auto-revert-set-timer|auto-revert-tail-handler|auto-revert-tail-mode|autoarg-kp-digit-argument|autoarg-kp-mode|autoarg-mode|autoarg-terminate|autoconf-current-defun-function|autoconf-mode|autodoc-font-lock-keywords|autodoc-font-lock-line-markup|autoload-coding-system|autoload-rubric|avl-tree--check-node|avl-tree--check|avl-tree--cmpfun--cmacro|avl-tree--cmpfun|avl-tree--create--cmacro|avl-tree--create|avl-tree--del-balance|avl-tree--dir-to-sign|avl-tree--do-copy|avl-tree--do-del-internal|avl-tree--do-delete|avl-tree--do-enter|avl-tree--dummyroot--cmacro|avl-tree--dummyroot|avl-tree--enter-balance|avl-tree--mapc|avl-tree--node-balance--cmacro|avl-tree--node-balance|avl-tree--node-branch|avl-tree--node-create--cmacro|avl-tree--node-create|avl-tree--node-data--cmacro|avl-tree--node-data|avl-tree--node-left--cmacro|avl-tree--node-left|avl-tree--node-right--cmacro|avl-tree--node-right|avl-tree--root|avl-tree--sign-to-dir|avl-tree--stack-create|avl-tree--stack-p--cmacro|avl-tree--stack-p|avl-tree--stack-repopulate|avl-tree--stack-reverse--cmacro|avl-tree--stack-reverse|avl-tree--stack-store--cmacro|avl-tree--stack-store|avl-tree--switch-dir|avl-tree-clear|avl-tree-compare-function|avl-tree-copy|avl-tree-create|avl-tree-delete|avl-tree-empty|avl-tree-enter|avl-tree-first|avl-tree-flatten|avl-tree-last|avl-tree-mapc??|avl-tree-mapcar|avl-tree-mapf|avl-tree-member-p|avl-tree-member|avl-tree-p--cmacro|avl-tree-p|avl-tree-size|avl-tree-stack-empty-p|avl-tree-stack-first|avl-tree-stack-p|avl-tree-stack-pop|avl-tree-stack|awk-mode|babel-as-string|background-color-at-point|backquote-delay-process|backquote-list\\\\*-function|backquote-list\\\\*-macro|backquote-list\\\\*|backquote-listify|backquote-process|backquote|backtrace--locals|backtrace-eval|backup-buffer-copy|backup-extract-version|backward-delete-char|backward-ifdef|backward-kill-paragraph|backward-kill-sentence|backward-kill-sexp|backward-kill-word|backward-page|backward-paragraph|backward-sentence|backward-text-line|backward-up-list|bad-package-check|balance-windows-1|balance-windows-2|balance-windows-area-adjust|basic-save-buffer-1|basic-save-buffer-2|basic-save-buffer|bat-cmd-help|bat-mode|bat-run-args|bat-run|bat-template|batch-byte-compile-file|batch-byte-compile-if-not-done|batch-byte-recompile-directory|batch-info-validate|batch-texinfo-format|batch-titdic-convert|batch-unrmail|batch-update-autoloads|battery-bsd-apm|battery-format|battery-linux-proc-acpi|battery-linux-proc-apm|battery-linux-sysfs|battery-pmset|battery-search-for-one-match-in-files|battery-update-handler|battery-update|battery|bb-bol|bb-done|bb-down|bb-eol|bb-goto|bb-init-board|bb-insert-board|bb-left|bb-outside-box|bb-place-ball|bb-right|bb-romp|bb-show-bogus-balls-2|bb-show-bogus-balls|bb-trace-ray-2|bb-trace-ray|bb-up|bb-update-board|beginning-of-buffer-other-window|beginning-of-defun-raw|beginning-of-icon-defun|beginning-of-line-text|beginning-of-sexp|beginning-of-thing|beginning-of-visual-line|benchmark-elapse|benchmark-run-compiled|benchmark-run|benchmark|bib-capitalize-title-region|bib-capitalize-title|bib-find-key|bib-mode|bibtex-Article|bibtex-Book|bibtex-BookInBook|bibtex-Booklet|bibtex-Collection|bibtex-InBook|bibtex-InCollection|bibtex-InProceedings|bibtex-InReference|bibtex-MVBook|bibtex-MVCollection|bibtex-MVProceedings|bibtex-MVReference|bibtex-Manual|bibtex-MastersThesis|bibtex-Misc|bibtex-Online|bibtex-Patent|bibtex-Periodical|bibtex-PhdThesis|bibtex-Preamble|bibtex-Proceedings|bibtex-Reference|bibtex-Report|bibtex-String|bibtex-SuppBook|bibtex-SuppCollection|bibtex-SuppPeriodical|bibtex-TechReport|bibtex-Thesis|bibtex-Unpublished|bibtex-autofill-entry|bibtex-autokey-abbrev|bibtex-autokey-demangle-name|bibtex-autokey-demangle-title|bibtex-autokey-get-field|bibtex-autokey-get-names|bibtex-autokey-get-title|bibtex-autokey-get-year|bibtex-beginning-first-field|bibtex-beginning-of-entry|bibtex-beginning-of-field|bibtex-beginning-of-first-entry|bibtex-button-action|bibtex-button|bibtex-clean-entry|bibtex-complete-crossref-cleanup|bibtex-complete-string-cleanup|bibtex-complete|bibtex-completion-at-point-function|bibtex-convert-alien|bibtex-copy-entry-as-kill|bibtex-copy-field-as-kill|bibtex-copy-summary-as-kill|bibtex-count-entries|bibtex-current-line|bibtex-delete-whitespace|bibtex-display-entries|bibtex-dist|bibtex-edit-menu|bibtex-empty-field|bibtex-enclosing-field|bibtex-end-of-entry|bibtex-end-of-field|bibtex-end-of-name-in-field|bibtex-end-of-string|bibtex-end-of-text-in-field|bibtex-end-of-text-in-string|bibtex-entry-alist|bibtex-entry-index|bibtex-entry-left-delimiter|bibtex-entry-right-delimiter|bibtex-entry-update|bibtex-entry|bibtex-field-left-delimiter|bibtex-field-list|bibtex-field-re-init|bibtex-field-right-delimiter|bibtex-fill-entry|bibtex-fill-field-bounds|bibtex-fill-field|bibtex-find-crossref|bibtex-find-entry|bibtex-find-text-internal|bibtex-find-text|bibtex-flash-head|bibtex-font-lock-cite|bibtex-font-lock-crossref|bibtex-font-lock-url|bibtex-format-entry|bibtex-generate-autokey|bibtex-global-key-alist|bibtex-goto-line|bibtex-init-sort-entry-class-alist|bibtex-initialize|bibtex-insert-kill|bibtex-ispell-abstract|bibtex-ispell-entry|bibtex-key-in-head|bibtex-kill-entry|bibtex-kill-field|bibtex-lessp|bibtex-make-field|bibtex-make-optional-field|bibtex-map-entries|bibtex-mark-entry|bibtex-mode|bibtex-move-outside-of-entry|bibtex-name-in-field|bibtex-narrow-to-entry|bibtex-next-field|bibtex-parse-association|bibtex-parse-buffers-stealthily|bibtex-parse-entry|bibtex-parse-field-name|bibtex-parse-field-string|bibtex-parse-field-text|bibtex-parse-field|bibtex-parse-keys|bibtex-parse-preamble|bibtex-parse-string-postfix|bibtex-parse-string-prefix|bibtex-parse-strings??|bibtex-pop-next|bibtex-pop-previous|bibtex-pop|bibtex-prepare-new-entry|bibtex-print-help-message|bibtex-progress-message|bibtex-read-key|bibtex-read-string-key|bibtex-realign|bibtex-reference-key-in-string|bibtex-reformat|bibtex-remove-OPT-or-ALT|bibtex-remove-delimiters|bibtex-reposition-window|bibtex-search-backward-field|bibtex-search-crossref|bibtex-search-entries|bibtex-search-entry|bibtex-search-forward-field|bibtex-search-forward-string|bibtex-set-dialect|bibtex-skip-to-valid-entry|bibtex-sort-buffer|bibtex-start-of-field|bibtex-start-of-name-in-field|bibtex-start-of-text-in-field|bibtex-start-of-text-in-string|bibtex-string-files-init|bibtex-string=|bibtex-strings|bibtex-style-calculate-indentation|bibtex-style-indent-line|bibtex-style-mode|bibtex-summary|bibtex-text-in-field-bounds|bibtex-text-in-field|bibtex-text-in-string|bibtex-type-in-head|bibtex-url|bibtex-valid-entry|bibtex-validate-globally|bibtex-validate|bibtex-vec-incr|bibtex-vec-push|bibtex-yank-pop|bibtex-yank|bidi-find-overridden-directionality)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)b(?:idi-resolved-levels|inary-overwrite-mode|indat--length-group|indat--pack-group|indat--pack-item|indat--pack-u16r??|indat--pack-u24r??|indat--pack-u32r??|indat--pack-u8|indat--unpack-group|indat--unpack-item|indat--unpack-u16r??|indat--unpack-u24r??|indat--unpack-u32r??|indat--unpack-u8|indat-format-vector|indat-vector-to-dec|indat-vector-to-hex|indings--define-key|inhex-char-int|inhex-char-map|inhex-decode-region-external|inhex-decode-region-internal|inhex-decode-region|inhex-header|inhex-insert-char|inhex-push-char|inhex-string-big-endian|inhex-string-little-endian|inhex-update-crc|inhex-verify-crc|lackbox-mode|lackbox-redefine-key|lackbox|link-cursor-check|link-cursor-end|link-cursor-mode|link-cursor-start|link-cursor-suspend|link-cursor-timer-function|link-matching-check-mismatch|link-paren-post-self-insert-function|lock|ookmark--jump-via|ookmark-alist-from-buffer|ookmark-all-names|ookmark-bmenu-1-window|ookmark-bmenu-2-window|ookmark-bmenu-any-marks|ookmark-bmenu-backup-unmark|ookmark-bmenu-bookmark|ookmark-bmenu-delete-backwards|ookmark-bmenu-delete|ookmark-bmenu-edit-annotation|ookmark-bmenu-ensure-position|ookmark-bmenu-execute-deletions|ookmark-bmenu-filter-alist-by-regexp|ookmark-bmenu-goto-bookmark|ookmark-bmenu-hide-filenames|ookmark-bmenu-list|ookmark-bmenu-load|ookmark-bmenu-locate|ookmark-bmenu-mark|ookmark-bmenu-mode|ookmark-bmenu-other-window-with-mouse|ookmark-bmenu-other-window|ookmark-bmenu-relocate|ookmark-bmenu-rename|ookmark-bmenu-save|ookmark-bmenu-search|ookmark-bmenu-select|ookmark-bmenu-set-header|ookmark-bmenu-show-all-annotations|ookmark-bmenu-show-annotation|ookmark-bmenu-show-filenames|ookmark-bmenu-surreptitiously-rebuild-list|ookmark-bmenu-switch-other-window|ookmark-bmenu-this-window|ookmark-bmenu-toggle-filenames|ookmark-bmenu-unmark|ookmark-buffer-file-name|ookmark-buffer-name|ookmark-completing-read|ookmark-default-annotation-text|ookmark-default-handler|ookmark-delete|ookmark-edit-annotation-mode|ookmark-edit-annotation|ookmark-exit-hook-internal|ookmark-get-annotation|ookmark-get-bookmark-record|ookmark-get-bookmark|ookmark-get-filename|ookmark-get-front-context-string|ookmark-get-handler|ookmark-get-position|ookmark-get-rear-context-string|ookmark-grok-file-format-version|ookmark-handle-bookmark|ookmark-import-new-list|ookmark-insert-annotation|ookmark-insert-file-format-version-stamp|ookmark-insert-location|ookmark-insert|ookmark-jump-noselect|ookmark-jump-other-window|ookmark-jump|ookmark-kill-line|ookmark-load|ookmark-locate|ookmark-location|ookmark-make-record-default|ookmark-make-record|ookmark-map|ookmark-maybe-historicize-string|ookmark-maybe-load-default-file|ookmark-maybe-message|ookmark-maybe-rename|ookmark-maybe-sort-alist|ookmark-maybe-upgrade-file-format|ookmark-menu-popup-paned-menu|ookmark-name-from-full-record|ookmark-prop-get|ookmark-prop-set|ookmark-relocate|ookmark-rename|ookmark-save|ookmark-send-edited-annotation|ookmark-set-annotation|ookmark-set-filename|ookmark-set-front-context-string|ookmark-set-name|ookmark-set-position|ookmark-set-rear-context-string|ookmark-set|ookmark-show-all-annotations|ookmark-show-annotation|ookmark-store|ookmark-time-to-save-p|ookmark-unload-function|ookmark-upgrade-file-format-from-0|ookmark-upgrade-version-0-alist|ookmark-write-file|ookmark-write|ookmark-yank-word|ool-vector|ound-and-true-p|ounds-of-thing-at-point|ovinate|ovine-grammar-mode|rowse-url-at-mouse|rowse-url-at-point|rowse-url-can-use-xdg-open|rowse-url-cci|rowse-url-chromium|rowse-url-default-browser|rowse-url-default-macosx-browser|rowse-url-default-windows-browser|rowse-url-delete-temp-file|rowse-url-elinks-new-window|rowse-url-elinks-sentinel|rowse-url-elinks|rowse-url-emacs-display|rowse-url-emacs|rowse-url-encode-url|rowse-url-epiphany-sentinel|rowse-url-epiphany|rowse-url-file-url|rowse-url-firefox-sentinel|rowse-url-firefox|rowse-url-galeon-sentinel|rowse-url-galeon|rowse-url-generic|rowse-url-gnome-moz|rowse-url-interactive-arg|rowse-url-kde|rowse-url-mail|rowse-url-maybe-new-window|rowse-url-mosaic|rowse-url-mozilla-sentinel|rowse-url-mozilla|rowse-url-netscape-reload|rowse-url-netscape-send|rowse-url-netscape-sentinel|rowse-url-netscape|rowse-url-of-buffer|rowse-url-of-dired-file|rowse-url-of-file|rowse-url-of-region|rowse-url-process-environment|rowse-url-text-emacs|rowse-url-text-xterm|rowse-url-url-at-point|rowse-url-url-encode-chars|rowse-url-w3-gnudoit|rowse-url-w3|rowse-url-xdg-open|rowse-url|rowse-web|s--configuration-name-for-prefix-arg|s--create-header-line|s--current-buffer|s--current-config-message|s--down|s--format-aux|s--get-file-name|s--get-marked-string|s--get-mode-name|s--get-modified-string|s--get-name-length|s--get-name|s--get-readonly-string|s--get-size-string|s--get-value|s--goto-current-buffer|s--insert-one-entry|s--make-header-match-string|s--mark-unmark|s--nth-wrapper|s--redisplay|s--remove-hooks|s--restore-window-config|s--set-toggle-to-show|s--set-window-height|s--show-config-message|s--show-header|s--show-with-configuration|s--sort-by-filename|s--sort-by-mode|s--sort-by-name|s--sort-by-size|s--track-window-changes|s--up|s--update-current-line|s-abort|s-apply-sort-faces|s-buffer-list|s-buffer-sort|s-bury-buffer|s-clear-modified|s-config--all-intern-last|s-config--all|s-config--files-and-scratch|s-config--only-files|s-config-clear|s-customize|s-cycle-next|s-cycle-previous|s-define-sort-function|s-delete-backward|s-delete|s-down|s-help|s-kill|s-mark-current|s-message-without-log|s-mode|s-mouse-select-other-frame|s-mouse-select|s-next-buffer|s-next-config-aux|s-next-config|s-previous-buffer|s-refresh|s-save|s-select-in-one-window|s-select-next-configuration|s-select-other-frame|s-select-other-window|s-select|s-set-configuration-and-refresh|s-set-configuration|s-set-current-buffer-to-show-always|s-set-current-buffer-to-show-never|s-show-in-buffer|s-show-sorted|s-show|s-sort-buffer-interns-are-last|s-tmp-select-other-window|s-toggle-current-to-show|s-toggle-readonly|s-toggle-show-all|s-unload-function|s-unmark-current|s-up|s-view|s-visit-tags-table|s-visits-non-file|ubbles--char-at|ubbles--col|ubbles--colors|ubbles--compute-offsets|ubbles--count|ubbles--empty-char|ubbles--game-over|ubbles--goto|ubbles--grid-height|ubbles--grid-width|ubbles--initialize-faces|ubbles--initialize-images|ubbles--initialize|ubbles--mark-direct-neighbors|ubbles--mark-neighborhood|ubbles--neighborhood-available|ubbles--remove-overlays|ubbles--reset-score|ubbles--row|ubbles--set-faces|ubbles--shift-mode|ubbles--shift|ubbles--show-images|ubbles--show-scores|ubbles--update-faces-or-images|ubbles--update-neighborhood-score|ubbles--update-score|ubbles-customize|ubbles-mode|ubbles-plop|ubbles-quit|ubbles-save-settings|ubbles-set-game-difficult|ubbles-set-game-easy|ubbles-set-game-hard|ubbles-set-game-medium|ubbles-set-game-userdefined|ubbles-set-graphics-theme-ascii|ubbles-set-graphics-theme-balls|ubbles-set-graphics-theme-circles|ubbles-set-graphics-theme-diamonds|ubbles-set-graphics-theme-emacs|ubbles-set-graphics-theme-squares|ubbles-undo|ubbles|uffer-face-mode-invoke|uffer-face-mode|uffer-face-set|uffer-face-toggle|uffer-has-markers-at|uffer-menu-open|uffer-menu-other-window|uffer-menu|uffer-stale--default-function|uffer-substring--filter|uffer-substring-with-bidi-context|ug-reference-fontify|ug-reference-mode|ug-reference-prog-mode|ug-reference-push-button|ug-reference-set-overlay-properties|ug-reference-unfontify|uild-mail-abbrevs|uild-mail-aliases|ury-buffer-internal|utterfly|utton--area-button-p|utton--area-button-string|utton-category-symbol|yte-code|yte-compile--declare-var|yte-compile--reify-function|yte-compile-abbreviate-file|yte-compile-and-folded|yte-compile-and-recursion|yte-compile-and|yte-compile-annotate-call-tree|yte-compile-arglist-signature-string|yte-compile-arglist-signature|yte-compile-arglist-signatures-congruent-p|yte-compile-arglist-vars|yte-compile-arglist-warn|yte-compile-associative|yte-compile-autoload|yte-compile-backward-char|yte-compile-backward-word|yte-compile-bind|yte-compile-body-do-effect|yte-compile-body|yte-compile-butlast|yte-compile-callargs-warn|yte-compile-catch|yte-compile-char-before|yte-compile-check-lambda-list|yte-compile-check-variable|yte-compile-cl-file-p|yte-compile-cl-warn|yte-compile-close-variables|yte-compile-concat|yte-compile-cond|yte-compile-condition-case--new|yte-compile-condition-case--old|yte-compile-condition-case|yte-compile-constant|yte-compile-constants-vector|yte-compile-defvar|yte-compile-delete-first|yte-compile-dest-file|yte-compile-disable-warning|yte-compile-discard|yte-compile-dynamic-variable-bind|yte-compile-dynamic-variable-op|yte-compile-enable-warning|yte-compile-eval-before-compile|yte-compile-eval|yte-compile-fdefinition|yte-compile-file-form-autoload|yte-compile-file-form-custom-declare-variable|yte-compile-file-form-defalias|yte-compile-file-form-define-abbrev-table|yte-compile-file-form-defmumble|yte-compile-file-form-defvar|yte-compile-file-form-eval|yte-compile-file-form-progn|yte-compile-file-form-require|yte-compile-file-form-with-no-warnings|yte-compile-file-form|yte-compile-find-bound-condition|yte-compile-find-cl-functions|yte-compile-fix-header|yte-compile-flush-pending|yte-compile-form-do-effect|yte-compile-form-make-variable-buffer-local|yte-compile-form|yte-compile-format-warn|yte-compile-from-buffer|yte-compile-fset|yte-compile-funcall|yte-compile-function-form|yte-compile-function-warn|yte-compile-get-closed-var|yte-compile-get-constant|yte-compile-goto-if|yte-compile-goto|yte-compile-if|yte-compile-indent-to|yte-compile-inline-expand|yte-compile-inline-lapcode|yte-compile-insert-header|yte-compile-insert|yte-compile-keep-pending|yte-compile-lambda-form|yte-compile-lambda|yte-compile-lapcode|yte-compile-let|yte-compile-list|yte-compile-log-1|yte-compile-log-file|yte-compile-log-lap-1|yte-compile-log-lap|yte-compile-log-warning|yte-compile-log|yte-compile-macroexpand-declare-function|yte-compile-make-args-desc|yte-compile-make-closure|yte-compile-make-lambda-lexenv|yte-compile-make-obsolete-variable|yte-compile-make-tag|yte-compile-make-variable-buffer-local|yte-compile-maybe-guarded|yte-compile-minus|yte-compile-nconc|yte-compile-negated|yte-compile-negation-optimizer|yte-compile-nilconstp|yte-compile-no-args|yte-compile-no-warnings|yte-compile-nogroup-warn|yte-compile-noop|yte-compile-normal-call|yte-compile-not-lexical-var-p|yte-compile-one-arg|yte-compile-one-or-two-args|yte-compile-or-recursion|yte-compile-or|yte-compile-out-tag|yte-compile-out-toplevel|yte-compile-out|yte-compile-output-as-comment|yte-compile-output-docform|yte-compile-output-file-form|yte-compile-preprocess|yte-compile-print-syms|yte-compile-prog1|yte-compile-prog2|yte-compile-progn|yte-compile-push-binding-init|yte-compile-push-bytecode-const2|yte-compile-push-bytecodes|yte-compile-push-constant|yte-compile-quo|yte-compile-quote|yte-compile-recurse-toplevel|yte-compile-refresh-preloaded|yte-compile-report-error|yte-compile-report-ops|yte-compile-save-current-buffer|yte-compile-save-excursion|yte-compile-save-restriction|yte-compile-set-default|yte-compile-set-symbol-position|yte-compile-setq-default|yte-compile-setq|yte-compile-sexp|yte-compile-stack-adjustment|yte-compile-stack-ref|yte-compile-stack-set|yte-compile-subr-wrong-args|yte-compile-three-args|yte-compile-top-level-body|yte-compile-top-level|yte-compile-toplevel-file-form|yte-compile-trueconstp|yte-compile-two-args|yte-compile-two-or-three-args|yte-compile-unbind|yte-compile-unfold-bcf|yte-compile-unfold-lambda|yte-compile-unwind-protect|yte-compile-variable-ref)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:byte-compile-variable-set|byte-compile-warn-about-unresolved-functions|byte-compile-warn-obsolete|byte-compile-warn|byte-compile-warning-enabled-p|byte-compile-warning-prefix|byte-compile-warning-series|byte-compile-while|byte-compile-zero-or-one-arg|byte-compiler-base-file-name|byte-decompile-bytecode-1|byte-decompile-bytecode|byte-defop-compiler-1|byte-defop-compiler|byte-defop|byte-extrude-byte-code-vectors|byte-force-recompile|byte-optimize-all-constp|byte-optimize-and|byte-optimize-apply|byte-optimize-approx-equal|byte-optimize-associative-math|byte-optimize-binary-predicate|byte-optimize-body|byte-optimize-cond|byte-optimize-delay-constants-math|byte-optimize-divide|byte-optimize-form-code-walker|byte-optimize-form|byte-optimize-funcall|byte-optimize-identity|byte-optimize-if|byte-optimize-inline-handler|byte-optimize-lapcode|byte-optimize-letX|byte-optimize-logmumble|byte-optimize-minus|byte-optimize-multiply|byte-optimize-nonassociative-math|byte-optimize-nth|byte-optimize-nthcdr|byte-optimize-or|byte-optimize-plus|byte-optimize-predicate|byte-optimize-quote|byte-optimize-set|byte-optimize-while|byte-recompile-file|byteorder|c\\\\+\\\\+-font-lock-keywords-2|c\\\\+\\\\+-font-lock-keywords-3|c\\\\+\\\\+-font-lock-keywords|c\\\\+\\\\+-mode|c--macroexpand-all|c-add-class-syntax|c-add-language|c-add-stmt-syntax|c-add-style|c-add-syntax|c-add-type|c-advise-fl-for-region|c-after-change-check-<>-operators|c-after-change|c-after-conditional|c-after-font-lock-init|c-after-special-operator-id|c-after-statement-terminator-p|c-append-backslashes-forward|c-append-lower-brace-pair-to-state-cache|c-append-syntax|c-append-to-state-cache|c-ascertain-following-literal|c-ascertain-preceding-literal|c-at-expression-start-p|c-at-macro-vsemi-p|c-at-statement-start-p|c-at-toplevel-p|c-at-vsemi-p|c-awk-menu|c-back-over-illiterals|c-back-over-member-initializer-braces|c-back-over-member-initializers|c-backslash-region|c-backward-<>-arglist|c-backward-colon-prefixed-type|c-backward-comments|c-backward-conditional|c-backward-into-nomenclature|c-backward-over-enum-header|c-backward-sexp|c-backward-single-comment|c-backward-sws|c-backward-syntactic-ws|c-backward-to-block-anchor|c-backward-to-decl-anchor|c-backward-to-nth-BOF-\\\\{|c-backward-token-1|c-backward-token-2|c-basic-common-init|c-before-change-check-<>-operators|c-before-change|c-before-hack-hook|c-beginning-of-current-token|c-beginning-of-decl-1|c-beginning-of-defun-1|c-beginning-of-defun|c-beginning-of-inheritance-list|c-beginning-of-macro|c-beginning-of-sentence-in-comment|c-beginning-of-sentence-in-string|c-beginning-of-statement-1|c-beginning-of-statement|c-beginning-of-syntax|c-benign-error|c-bind-special-erase-keys|c-block-in-arglist-dwim|c-bos-pop-state-and-retry|c-bos-pop-state|c-bos-push-state|c-bos-report-error|c-bos-restore-pos|c-bos-save-error-info|c-bos-save-pos|c-brace-anchor-point|c-brace-newlines|c-c\\\\+\\\\+-menu|c-c-menu|c-calc-comment-indent|c-calc-offset|c-calculate-state|c-change-set-fl-decl-start|c-cheap-inside-bracelist-p|c-check-type|c-clear-<-pair-props-if-match-after|c-clear-<-pair-props|c-clear-<>-pair-props|c-clear->-pair-props-if-match-before|c-clear->-pair-props|c-clear-c-type-property|c-clear-char-properties|c-clear-char-property-with-value-function|c-clear-char-property-with-value|c-clear-char-property|c-clear-cpp-delimiters|c-clear-found-types|c-collect-line-comments|c-comment-indent|c-comment-line-break-function|c-comment-out-cpps|c-common-init|c-compose-keywords-list|c-concat-separated|c-constant-symbol|c-context-line-break|c-context-open-line|c-context-set-fl-decl-start|c-count-cfss|c-cpp-define-name|c-crosses-statement-barrier-p|c-debug-add-face|c-debug-parse-state-double-cons|c-debug-parse-state|c-debug-put-decl-spot-faces|c-debug-remove-decl-spot-faces|c-debug-remove-face|c-debug-sws-msg|c-declaration-limits|c-declare-lang-variables|c-default-value-sentence-end|c-define-abbrev-table|c-define-lang-constant|c-defun-name|c-delete-and-extract-region|c-delete-backslashes-forward|c-delete-overlay|c-determine-\\\\+ve-limit|c-determine-limit-get-base|c-determine-limit|c-do-auto-fill|c-down-conditional-with-else|c-down-conditional|c-down-list-backward|c-down-list-forward|c-echo-parsing-error|c-electric-backspace|c-electric-brace|c-electric-colon|c-electric-continued-statement|c-electric-delete-forward|c-electric-delete|c-electric-indent-local-mode-hook|c-electric-indent-mode-hook|c-electric-lt-gt|c-electric-paren|c-electric-pound|c-electric-semi&comma|c-electric-slash|c-electric-star|c-end-of-current-token|c-end-of-decl-1|c-end-of-defun-1|c-end-of-defun|c-end-of-macro|c-end-of-sentence-in-comment|c-end-of-sentence-in-string|c-end-of-statement|c-evaluate-offset|c-extend-after-change-region|c-extend-font-lock-region-for-macros|c-extend-region-for-CPP|c-face-name-p|c-fdoc-shift-type-backward|c-fill-paragraph|c-find-assignment-for-mode|c-find-decl-prefix-search|c-find-decl-spots|c-find-invalid-doc-markup|c-fn-region-is-active-p|c-font-lock-<>-arglists|c-font-lock-c\\\\+\\\\+-new|c-font-lock-complex-decl-prepare|c-font-lock-declarations|c-font-lock-declarators|c-font-lock-doc-comments|c-font-lock-enclosing-decls|c-font-lock-enum-tail|c-font-lock-fontify-region|c-font-lock-init|c-font-lock-invalid-string|c-font-lock-keywords-2|c-font-lock-keywords-3|c-font-lock-keywords|c-font-lock-labels|c-font-lock-objc-methods??|c-fontify-recorded-types-and-refs|c-fontify-types-and-refs|c-forward-<>-arglist-recur|c-forward-<>-arglist|c-forward-annotation|c-forward-comments|c-forward-conditional|c-forward-decl-or-cast-1|c-forward-id-comma-list|c-forward-into-nomenclature|c-forward-keyword-clause|c-forward-keyword-prefixed-id|c-forward-label|c-forward-name|c-forward-objc-directive|c-forward-over-cpp-define-id|c-forward-over-illiterals|c-forward-sexp|c-forward-single-comment|c-forward-sws|c-forward-syntactic-ws|c-forward-to-cpp-define-body|c-forward-to-nth-EOF-}|c-forward-token-1|c-forward-token-2|c-forward-type|c-get-cache-scan-pos|c-get-char-property|c-get-current-file|c-get-lang-constant|c-get-offset|c-get-style-variables|c-get-syntactic-indentation|c-gnu-impose-minimum|c-go-down-list-backward|c-go-down-list-forward|c-go-list-backward|c-go-list-forward|c-go-up-list-backward|c-go-up-list-forward|c-got-face-at|c-guess-accumulate-offset|c-guess-accumulate|c-guess-basic-syntax|c-guess-buffer-no-install|c-guess-buffer|c-guess-continued-construct|c-guess-current-offset|c-guess-dump-accumulator|c-guess-dump-guessed-style|c-guess-dump-guessed-values|c-guess-empty-line-p|c-guess-examine|c-guess-fill-prefix|c-guess-guess|c-guess-guessed-syntactic-symbols|c-guess-install|c-guess-make-basic-offset|c-guess-make-offsets-alist|c-guess-make-style|c-guess-merge-offsets-alists|c-guess-no-install|c-guess-region-no-install|c-guess-region|c-guess-reset-accumulator|c-guess-sort-accumulator|c-guess-style-name|c-guess-symbolize-integer|c-guess-symbolize-offsets-alist|c-guess-view-mark-guessed-entries|c-guess-view-reorder-offsets-alist-in-style|c-guess-view|c-guess|c-hungry-backspace|c-hungry-delete-backwards|c-hungry-delete-forward|c-hungry-delete|c-idl-menu|c-in-comment-line-prefix-p|c-in-function-trailer-p|c-in-gcc-asm-p|c-in-knr-argdecl|c-in-literal|c-in-method-def-p|c-indent-command|c-indent-defun|c-indent-exp|c-indent-line-or-region|c-indent-line|c-indent-multi-line-block|c-indent-new-comment-line|c-indent-one-line-block|c-indent-region|c-init-language-vars-for|c-initialize-builtin-style|c-initialize-cc-mode|c-inside-bracelist-p|c-int-to-char|c-intersect-lists|c-invalidate-find-decl-cache|c-invalidate-macro-cache|c-invalidate-state-cache-1|c-invalidate-state-cache|c-invalidate-sws-region-after|c-java-menu|c-just-after-func-arglist-p|c-keep-region-active|c-keyword-member|c-keyword-sym|c-lang-const|c-lang-defconst-eval-immediately|c-lang-defconst|c-lang-major-mode-is|c-langelem-2nd-pos|c-langelem-col|c-langelem-pos|c-langelem-sym|c-last-command-char|c-least-enclosing-brace|c-leave-cc-mode-mode|c-lineup-C-comments|c-lineup-ObjC-method-args-2|c-lineup-ObjC-method-args|c-lineup-ObjC-method-call-colons|c-lineup-ObjC-method-call|c-lineup-after-whitesmith-blocks|c-lineup-argcont-scan|c-lineup-argcont|c-lineup-arglist-close-under-paren|c-lineup-arglist-intro-after-paren|c-lineup-arglist-operators|c-lineup-arglist|c-lineup-assignments|c-lineup-cascaded-calls|c-lineup-close-paren|c-lineup-comment|c-lineup-cpp-define|c-lineup-dont-change|c-lineup-gcc-asm-reg|c-lineup-gnu-DEFUN-intro-cont|c-lineup-inexpr-block|c-lineup-java-inher|c-lineup-java-throws|c-lineup-knr-region-comment|c-lineup-math|c-lineup-multi-inher|c-lineup-respect-col-0|c-lineup-runin-statements|c-lineup-streamop|c-lineup-string-cont|c-lineup-template-args|c-lineup-topmost-intro-cont|c-lineup-whitesmith-in-block|c-list-found-types|c-literal-limits-fast|c-literal-limits|c-literal-type|c-looking-at-bos|c-looking-at-decl-block|c-looking-at-inexpr-block-backward|c-looking-at-inexpr-block|c-looking-at-non-alphnumspace|c-looking-at-special-brace-list|c-lookup-lists|c-macro-display-buffer|c-macro-expand|c-macro-expansion|c-macro-is-genuine-p|c-macro-vsemi-status-unknown-p|c-major-mode-is|c-make-bare-char-alt|c-make-font-lock-BO-decl-search-function|c-make-font-lock-context-search-function|c-make-font-lock-extra-types-blurb|c-make-font-lock-search-form|c-make-font-lock-search-function|c-make-inherited-keymap|c-make-inverse-face|c-make-keywords-re|c-make-macro-with-semi-re|c-make-styles-buffer-local|c-make-syntactic-matcher|c-mark-<-as-paren|c-mark->-as-paren|c-mark-function|c-mask-paragraph|c-mode-menu|c-mode-symbol|c-mode-var|c-mode|c-most-enclosing-brace|c-most-enclosing-decl-block|c-narrow-to-comment-innards|c-narrow-to-most-enclosing-decl-block|c-neutralize-CPP-line|c-neutralize-syntax-in-and-mark-CPP|c-newline-and-indent|c-next-single-property-change|c-objc-menu|c-on-identifier|c-one-line-string-p|c-outline-level|c-override-default-keywords|c-parse-state-1|c-parse-state-get-strategy|c-parse-state|c-partial-ws-p|c-pike-menu|c-point-syntax|c-point|c-populate-syntax-table|c-postprocess-file-styles|c-progress-fini|c-progress-init|c-progress-update|c-pull-open-brace|c-punctuation-in|c-put-c-type-property|c-put-char-property-fun|c-put-char-property|c-put-font-lock-face|c-put-font-lock-string-face|c-put-in-sws|c-put-is-sws|c-put-overlay|c-query-and-set-macro-start|c-query-macro-start|c-read-offset|c-real-parse-state|c-record-parse-state-state|c-record-ref-id|c-record-type-id|c-regexp-opt-depth|c-regexp-opt|c-region-is-active-p|c-remove-any-local-eval-or-mode-variables|c-remove-font-lock-face|c-remove-in-sws|c-remove-is-and-in-sws|c-remove-is-sws|c-remove-stale-state-cache-backwards|c-remove-stale-state-cache|c-renarrow-state-cache|c-replay-parse-state-state|c-restore-<->-as-parens|c-run-mode-hooks|c-safe-position|c-safe-scan-lists|c-safe|c-save-buffer-state|c-sc-parse-partial-sexp-no-category|c-sc-parse-partial-sexp|c-sc-scan-lists-no-category\\\\+1\\\\+1|c-sc-scan-lists-no-category\\\\+1-1|c-sc-scan-lists-no-category-1\\\\+1|c-sc-scan-lists-no-category-1-1|c-sc-scan-lists|c-scan-conditionals|c-scope-operator|c-search-backward-char-property|c-search-decl-header-end|c-search-forward-char-property|c-search-uplist-for-classkey|c-semi&comma-inside-parenlist|c-semi&comma-no-newlines-before-nonblanks|c-semi&comma-no-newlines-for-oneline-inliners|c-sentence-end|c-set-cpp-delimiters|c-set-fl-decl-start|c-set-offset|c-set-region-active|c-set-style-1|c-set-style|c-set-stylevar-fallback|c-setup-doc-comment-style|c-setup-filladapt|c-setup-paragraph-variables|c-shift-line-indentation|c-show-syntactic-information|c-simple-skip-symbol-backward|c-skip-comments-and-strings|c-skip-conditional|c-skip-ws-backward|c-skip-ws-forward|c-snug-1line-defun-close|c-snug-do-while|c-ssb-lit-begin|c-state-balance-parens-backwards|c-state-cache-after-top-paren|c-state-cache-init|c-state-cache-non-literal-place|c-state-cache-top-lparen|c-state-cache-top-paren|c-state-get-min-scan-pos|c-state-lit-beg|c-state-literal-at|c-state-mark-point-min-literal|c-state-maybe-marker|c-state-pp-to-literal|c-state-push-any-brace-pair|c-state-safe-place|c-state-semi-safe-place|c-submit-bug-report|c-subword-mode|c-suppress-<->-as-parens|c-syntactic-content|c-syntactic-end-of-macro|c-syntactic-information-on-region|c-syntactic-re-search-forward|c-syntactic-skip-backward|c-tentative-buffer-changes|c-tnt-chng-cleanup)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)c(?:-tnt-chng-record-state|-toggle-auto-hungry-state|-toggle-auto-newline|-toggle-auto-state|-toggle-electric-state|-toggle-hungry-state|-toggle-parse-state-debug|-toggle-syntactic-indentation|-trim-found-types|-try-one-liner|-uncomment-out-cpps|-unfind-coalesced-tokens|-unfind-enclosing-token|-unfind-type|-unmark-<->-as-paren|-up-conditional-with-else|-up-conditional|-up-list-backward|-up-list-forward|-update-modeline|-valid-offset|-version|-vsemi-status-unknown-p|-whack-state-after|-whack-state-before|-where-wrt-brace-construct|-while-widening-to-decl-block|-widen-to-enclosing-decl-scope|-with-<->-as-parens-suppressed|-with-all-but-one-cpps-commented-out|-with-cpps-commented-out|-with-syntax-table|aaaar|aaadr|aaar|aadar|aaddr|aadr|adaar|adadr|adar|addar|adddr|addr|al-html-cursor-month|al-html-cursor-year|al-menu-context-mouse-menu|al-menu-global-mouse-menu|al-menu-holiday-window-suffix|al-menu-set-date-title|al-menu-x-popup-menu|al-tex-cursor-day|al-tex-cursor-filofax-2week|al-tex-cursor-filofax-daily|al-tex-cursor-filofax-week|al-tex-cursor-filofax-year|al-tex-cursor-month-landscape|al-tex-cursor-month|al-tex-cursor-week-iso|al-tex-cursor-week-monday|al-tex-cursor-week|al-tex-cursor-week2-summary|al-tex-cursor-week2|al-tex-cursor-year-landscape|al-tex-cursor-year|alc-alg-digit-entry|alc-alg-entry|alc-algebraic-entry|alc-align-stack-window|alc-auto-algebraic-entry|alc-big-or-small|alc-binary-op|alc-change-sign|alc-check-defines|alc-check-stack|alc-check-trail-aligned|alc-check-user-syntax|alc-clear-unread-commands|alc-count-lines|alc-create-buffer|alc-cursor-stack-index|alc-dispatch-help|alc-dispatch|alc-divide|alc-do-alg-entry|alc-do-calc-eval|alc-do-dispatch|alc-do-embedded-activate|alc-do-handle-whys|alc-do-quick-calc|alc-do-refresh|alc-do|alc-embedded-activate|alc-embedded|alc-enter-result|alc-enter|alc-eval|alc-get-stack-element|alc-grab-rectangle|alc-grab-region|alc-grab-sum-across|alc-grab-sum-down|alc-handle-whys|alc-help|alc-info-goto-node|alc-info-summary|alc-info|alc-inv|alc-keypad|alc-kill-stack-buffer|alc-last-args-stub|alc-left-divide|alc-match-user-syntax|alc-minibuffer-contains|alc-minibuffer-size|alc-minus|alc-missing-key|alc-mod|alc-mode-var-list-restore-default-values|alc-mode-var-list-restore-saved-values|alc-normalize|alc-num-prefix-name|alc-other-window|alc-over|alc-percent|alc-plus|alc-pop-above|alc-pop-push-list|alc-pop-push-record-list|alc-pop-stack|alc-pop|alc-power|alc-push-list|alc-quit|alc-read-key-sequence|alc-read-key|alc-record-list|alc-record-undo|alc-record-why|alc-record|alc-refresh|alc-renumber-stack|alc-report-bug|alc-roll-down-stack|alc-roll-down|alc-roll-up-stack|alc-roll-up|alc-same-interface|alc-select-buffer|alc-set-command-flag|alc-set-mode-line|alc-shift-Y-prefix-help|alc-slow-wrapper|alc-stack-size|alc-substack-height|alc-temp-minibuffer-message|alc-times|alc-top-list-n|alc-top-list|alc-top-n|alc-top|alc-trail-buffer|alc-trail-display|alc-trail-here|alc-transpose-lines|alc-tutorial|alc-unary-op|alc-undo|alc-unread-command|alc-user-invocation|alc-window-width|alc-with-default-simplification|alc-with-trail-buffer|alc-wrapper|alc-yank|alc|alcDigit-algebraic|alcDigit-backspace|alcDigit-edit|alcDigit-key|alcDigit-letter|alcDigit-nondigit|alcDigit-start|alcFunc-floor|alcFunc-inv|alcFunc-trunc|alculate-icon-indent|alculate-lisp-indent|alculate-tcl-indent|alculator-add-operators|alculator-backspace|alculator-clear-fragile|alculator-clear-saved|alculator-clear|alculator-close-paren|alculator-copy|alculator-dec/deg-mode|alculator-decimal|alculator-digit|alculator-displayer-next|alculator-displayer-prev|alculator-eng-display|alculator-enter|alculator-expt??|alculator-fact|alculator-funcall|alculator-get-display|alculator-get-register|alculator-groupize-number|alculator-help|alculator-last-input|alculator-menu|alculator-message|alculator-mode|alculator-need-3-lines|alculator-number-to-string|alculator-op-arity|alculator-op-or-exp|alculator-op-prec|alculator-op|alculator-open-paren|alculator-paste|alculator-push-curnum|alculator-put-value|alculator-quit|alculator-radix-input-mode|alculator-radix-mode|alculator-radix-output-mode|alculator-reduce-stack-once|alculator-reduce-stack|alculator-remove-zeros|alculator-repL|alculator-repR|alculator-reset|alculator-rotate-displayer-back|alculator-rotate-displayer|alculator-save-and-quit|alculator-save-on-list|alculator-saved-down|alculator-saved-move|alculator-saved-up|alculator-set-register|alculator-standard-displayer|alculator-string-to-number|alculator-truncate|alculator-update-display|alculator|alendar-abbrev-construct|alendar-absolute-from-gregorian|alendar-astro-date-string|alendar-astro-from-absolute|alendar-astro-goto-day-number|alendar-astro-print-day-number|alendar-astro-to-absolute|alendar-backward-day|alendar-backward-month|alendar-backward-week|alendar-backward-year|alendar-bahai-date-string|alendar-bahai-goto-date|alendar-bahai-mark-date-pattern|alendar-bahai-print-date|alendar-basic-setup|alendar-beginning-of-month|alendar-beginning-of-week|alendar-beginning-of-year|alendar-buffer-list|alendar-check-holidays|alendar-chinese-date-string|alendar-chinese-goto-date|alendar-chinese-print-date|alendar-column-to-segment|alendar-coptic-date-string|alendar-coptic-goto-date|alendar-coptic-print-date|alendar-count-days-region|alendar-current-date|alendar-cursor-holidays|alendar-cursor-to-date|alendar-cursor-to-nearest-date|alendar-cursor-to-visible-date|alendar-customized-p|alendar-date-compare|alendar-date-equal|alendar-date-is-valid-p|alendar-date-is-visible-p|alendar-date-string|alendar-day-header-construct|alendar-day-name|alendar-day-number|alendar-day-of-week|alendar-day-of-year-string|alendar-dayname-on-or-before|alendar-end-of-month|alendar-end-of-week|alendar-end-of-year|alendar-ensure-newline|alendar-ethiopic-date-string|alendar-ethiopic-goto-date|alendar-ethiopic-print-date|alendar-exchange-point-and-mark|alendar-exit|alendar-extract-day|alendar-extract-month|alendar-extract-year|alendar-forward-day|alendar-forward-month|alendar-forward-week|alendar-forward-year|alendar-frame-setup|alendar-french-date-string|alendar-french-goto-date|alendar-french-print-date|alendar-generate-month|alendar-generate-window|alendar-generate|alendar-goto-date|alendar-goto-day-of-year|alendar-goto-info-node|alendar-goto-today|alendar-gregorian-from-absolute|alendar-hebrew-date-string|alendar-hebrew-goto-date|alendar-hebrew-list-yahrzeits|alendar-hebrew-mark-date-pattern|alendar-hebrew-print-date|alendar-holiday-list|alendar-in-read-only-buffer|alendar-increment-month-cons|alendar-increment-month|alendar-insert-at-column|alendar-interval|alendar-islamic-date-string|alendar-islamic-goto-date|alendar-islamic-mark-date-pattern|alendar-islamic-print-date|alendar-iso-date-string|alendar-iso-from-absolute|alendar-iso-goto-date|alendar-iso-goto-week|alendar-iso-print-date|alendar-julian-date-string|alendar-julian-from-absolute|alendar-julian-goto-date|alendar-julian-print-date|alendar-last-day-of-month|alendar-leap-year-p|alendar-list-holidays|alendar-lunar-phases|alendar-make-alist|alendar-make-temp-face|alendar-mark-1|alendar-mark-complex|alendar-mark-date-pattern|alendar-mark-days-named|alendar-mark-holidays|alendar-mark-month|alendar-mark-today|alendar-mark-visible-date|alendar-mayan-date-string|alendar-mayan-goto-long-count-date|alendar-mayan-next-haab-date|alendar-mayan-next-round-date|alendar-mayan-next-tzolkin-date|alendar-mayan-previous-haab-date|alendar-mayan-previous-round-date|alendar-mayan-previous-tzolkin-date|alendar-mayan-print-date|alendar-mode-line-entry|alendar-mode|alendar-month-edges|alendar-month-name|alendar-mouse-view-diary-entries|alendar-mouse-view-other-diary-entries|alendar-move-to-column|alendar-nongregorian-visible-p|alendar-not-implemented|alendar-nth-named-absday|alendar-nth-named-day|alendar-other-dates|alendar-other-month|alendar-persian-date-string|alendar-persian-goto-date|alendar-persian-print-date|alendar-print-day-of-year|alendar-print-other-dates|alendar-read-date|alendar-read|alendar-recompute-layout-variables|alendar-redraw|alendar-scroll-left-three-months|alendar-scroll-left|alendar-scroll-right-three-months|alendar-scroll-right|alendar-scroll-toolkit-scroll|alendar-set-date-style|alendar-set-layout-variable|alendar-set-mark|alendar-set-mode-line|alendar-star-date|alendar-string-spread|alendar-sum|alendar-sunrise-sunset-month|alendar-sunrise-sunset|alendar-unmark|alendar-update-mode-line|alendar-week-end-day|alendar|all-last-kbd-macro|all-next-method|allf2??|ancel-edebug-on-entry|ancel-function-timers|ancel-kbd-macro-events|ancel-timer-internal|anlock-insert-header|anlock-verify|anonicalize-coding-system-name|anonically-space-region|apitalized-words-mode|ar-less-than-car|ase-table-get-table|ase|c-choose-style-for-mode|c-eval-when-compile|c-imenu-init|c-imenu-java-build-type-args-regex|c-imenu-objc-function|c-imenu-objc-method-to-selector|c-imenu-objc-remove-white-space|cl-compile|cl-dump|cl-execute-on-string|cl-execute-with-args|cl-execute|cl-program-p|conv--analyze-function|conv--analyze-use|conv--convert-function|conv--map-diff-elem|conv--map-diff-set|conv--map-diff|conv--set-diff-map|conv--set-diff|conv-analyse-form|conv-analyze-form|conv-closure-convert|conv-convert|conv-warnings-only|d-absolute|d|daaar|daadr|daar|dadar|daddr|dadr|ddaar|ddadr|ddar|dddar|ddddr|dddr|dl-get-file|dl-put-region|edet-version|eiling\\\\*|enter-line|enter-paragraph|enter-region|fengine-auto-mode|fengine-common-settings|fengine-common-syntax|fengine-fill-paragraph|fengine-mode|fengine2-beginning-of-defun|fengine2-end-of-defun|fengine2-indent-line|fengine2-mode|fengine2-outline-level|fengine3--current-function|fengine3-beginning-of-defun|fengine3-clear-syntax-cache|fengine3-completion-function|fengine3-create-imenu-index|fengine3-current-defun|fengine3-documentation-function|fengine3-end-of-defun|fengine3-format-function-docstring|fengine3-indent-line|fengine3-make-syntax-cache|fengine3-mode|hange-class|hange-log-beginning-of-defun|hange-log-end-of-defun|hange-log-fill-forward-paragraph|hange-log-fill-parenthesized-list|hange-log-find-file|hange-log-get-method-definition-1|hange-log-get-method-definition|hange-log-goto-source-1|hange-log-goto-source|hange-log-indent|hange-log-merge|hange-log-mode|hange-log-name|hange-log-next-buffer|hange-log-next-error|hange-log-resolve-conflict|hange-log-search-file-name|hange-log-search-tag-name-1|hange-log-search-tag-name|hange-log-sortable-date-at|hange-log-version-number-search|har-resolve-modifiers|har-valid-p|harset-bytes|harset-chars|harset-description|harset-dimension|harset-id-internal|harset-id|harset-info|harset-iso-final-char|harset-long-name|harset-short-name|hart-add-sequence|hart-axis-child-p|hart-axis-draw|hart-axis-list-p|hart-axis-names-child-p|hart-axis-names-list-p|hart-axis-names-p|hart-axis-names|hart-axis-p|hart-axis-range-child-p|hart-axis-range-list-p|hart-axis-range-p|hart-axis-range|hart-axis|hart-bar-child-p|hart-bar-list-p|hart-bar-p|hart-bar-quickie|hart-bar|hart-child-p|hart-deface-rectangle|hart-display-label|hart-draw-axis|hart-draw-data|hart-draw-line|hart-draw-title|hart-draw|hart-emacs-lists|hart-emacs-storage|hart-file-count|hart-goto-xy|hart-list-p|hart-mode|hart-new-buffer|hart-p|hart-rmail-from|hart-sequece-child-p|hart-sequece-list-p|hart-sequece-p|hart-sequece|hart-size-in-dir|hart-sort-matchlist|hart-sort|hart-space-usage|hart-test-it-all|hart-translate-namezone|hart-translate-xpos|hart-translate-ypos|hart-trim|hart-zap-chars|hart|heck-ccl-program|heck-completion-length|heck-declare-directory|heck-declare-errmsg|heck-declare-files??|heck-declare-locate|heck-declare-scan|heck-declare-sort|heck-declare-verify|heck-declare-warn)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)c(?:heck-face|heck-ispell-version|heck-parens|heck-type|heckdoc-autofix-ask-replace|heckdoc-buffer-label|heckdoc-char=|heckdoc-comments|heckdoc-continue|heckdoc-create-common-verbs-regexp|heckdoc-create-error|heckdoc-current-buffer|heckdoc-defun-info|heckdoc-defun|heckdoc-delete-overlay|heckdoc-display-status-buffer|heckdoc-error-end|heckdoc-error-start|heckdoc-error-text|heckdoc-error-unfixable|heckdoc-error|heckdoc-eval-current-buffer|heckdoc-eval-defun|heckdoc-file-comments-engine|heckdoc-in-example-string-p|heckdoc-in-sample-code-p|heckdoc-interactive-ispell-loop|heckdoc-interactive-loop|heckdoc-interactive|heckdoc-ispell-comments|heckdoc-ispell-continue|heckdoc-ispell-current-buffer|heckdoc-ispell-defun|heckdoc-ispell-docstring-engine|heckdoc-ispell-init|heckdoc-ispell-interactive|heckdoc-ispell-message-interactive|heckdoc-ispell-message-text|heckdoc-ispell-start|heckdoc-ispell|heckdoc-list-of-strings-p|heckdoc-make-overlay|heckdoc-message-interactive-ispell-loop|heckdoc-message-interactive|heckdoc-message-text-engine|heckdoc-message-text-next-string|heckdoc-message-text-search|heckdoc-message-text|heckdoc-mode-line-update|heckdoc-next-docstring|heckdoc-next-error|heckdoc-next-message-error|heckdoc-output-mode|heckdoc-outside-major-sexp|heckdoc-overlay-end|heckdoc-overlay-put|heckdoc-overlay-start|heckdoc-proper-noun-region-engine|heckdoc-recursive-edit|heckdoc-rogue-space-check-engine|heckdoc-rogue-spaces|heckdoc-run-hooks|heckdoc-sentencespace-region-engine|heckdoc-show-diagnostics|heckdoc-start-section|heckdoc-start|heckdoc-this-string-valid-engine|heckdoc-this-string-valid|heckdoc-y-or-n-p|heckdoc|hild-of-class-p|hmod|hoose-completion-delete-max-match|hoose-completion-guess-base-position|hoose-completion-string|hoose-completion|l--adjoin|l--arglist-args|l--block-throw--cmacro|l--block-throw|l--block-wrapper--cmacro|l--block-wrapper|l--check-key|l--check-match|l--check-test-nokey|l--check-test|l--compile-time-too|l--compiler-macro-adjoin|l--compiler-macro-assoc|l--compiler-macro-cXXr|l--compiler-macro-get|l--compiler-macro-list\\\\*|l--compiler-macro-member|l--compiler-macro-typep|l--compiling-file|l--const-expr-p|l--const-expr-val|l--defalias|l--defsubst-expand|l--delete-duplicates|l--do-arglist|l--do-prettyprint|l--do-proclaim|l--do-remf|l--do-subst|l--expand-do-loop|l--expr-contains-any|l--expr-contains|l--expr-depends-p|l--finite-do|l--function-convert|l--gv-adapt|l--labels-convert|l--letf|l--loop-build-ands|l--loop-handle-accum|l--loop-let|l--loop-set-iterator-function|l--macroexp-fboundp|l--make-type-test|l--make-usage-args|l--make-usage-var|l--map-intervals|l--map-keymap-recursively|l--map-overlays|l--mapcar-many|l--nsublis-rec|l--parse-loop-clause|l--parsing-keywords|l--pass-args-to-cl-declare|l--pop2|l--position|l--random-time|l--safe-expr-p|l--set-buffer-substring|l--set-frame-visible-p|l--set-getf|l--set-substring|l--simple-expr-p|l--simple-exprs-p|l--sm-macroexpand|l--struct-epg-context-p--cmacro|l--struct-epg-context-p|l--struct-epg-data-p--cmacro|l--struct-epg-data-p|l--struct-epg-import-result-p--cmacro|l--struct-epg-import-result-p|l--struct-epg-import-status-p--cmacro|l--struct-epg-import-status-p|l--struct-epg-key-p--cmacro|l--struct-epg-key-p|l--struct-epg-key-signature-p--cmacro|l--struct-epg-key-signature-p|l--struct-epg-new-signature-p--cmacro|l--struct-epg-new-signature-p|l--struct-epg-sig-notation-p--cmacro|l--struct-epg-sig-notation-p|l--struct-epg-signature-p--cmacro|l--struct-epg-signature-p|l--struct-epg-sub-key-p--cmacro|l--struct-epg-sub-key-p|l--struct-epg-user-id-p--cmacro|l--struct-epg-user-id-p|l--sublis-rec|l--sublis|l--transform-lambda|l--tree-equal-rec|l--unused-var-p|l--wrap-in-nil-block|l-caaaar|l-caaadr|l-caaar|l-caadar|l-caaddr|l-caadr|l-cadaar|l-cadadr|l-cadar|l-caddar|l-cadddr|l-cdaaar|l-cdaadr|l-cdaar|l-cdadar|l-cdaddr|l-cdadr|l-cddaar|l-cddadr|l-cddar|l-cdddar|l-cddddr|l-cdddr|l-clrhash|l-copy-seq|l-copy-tree|l-digit-char-p|l-eighth|l-fifth|l-flet\\\\*|l-floatp-safe|l-fourth|l-fresh-line|l-gethash|l-hash-table-count|l-hash-table-p|l-maclisp-member|l-macroexpand-all|l-macroexpand|l-make-hash-table|l-map-extents|l-map-intervals|l-map-keymap-recursively|l-map-keymap|l-maphash|l-multiple-value-apply|l-multiple-value-call|l-multiple-value-list|l-ninth|l-not-hash-table|l-nreconc|l-nth-value|l-parse-integer|l-prettyprint|l-puthash|l-remhash|l-revappend|l-second|l-set-getf|l-seventh|l-signum|l-sixth|l-struct-sequence-type|l-struct-setf-expander|l-struct-slot-info|l-struct-slot-offset|l-struct-slot-value--cmacro|l-struct-slot-value|l-svref|l-tenth|l-third|l-unload-function|l-values-list|l-values|lass-abstract-p|lass-children|lass-constructor|lass-direct-subclasses|lass-direct-superclasses|lass-method-invocation-order|lass-name|lass-of|lass-option-assoc|lass-option|lass-p|lass-parents??|lass-precedence-list|lass-slot-initarg|lass-v|lean-buffer-list-delay|lean-buffer-list|lear-all-completions|lear-buffer-auto-save-failure|lear-charset-maps|lear-face-cache|lear-font-cache|lear-rectangle-line|lear-rectangle|lipboard-kill-region|lipboard-kill-ring-save|lipboard-yank|lone-buffer|lone-indirect-buffer-other-window|lone-process|lone|lose-display-connection|lose-font|lose-rectangle|mpl-coerce-string-case|mpl-hours-since-origin|mpl-merge-string-cases|mpl-prefix-entry-head|mpl-prefix-entry-tail|mpl-string-case-type|oding-system-base|oding-system-category|oding-system-doc-string|oding-system-eol-type-mnemonic|oding-system-equal|oding-system-from-name|oding-system-lessp|oding-system-mnemonic|oding-system-plist|oding-system-post-read-conversion|oding-system-pre-write-conversion|oding-system-put|oding-system-translation-table-for-decode|oding-system-translation-table-for-encode|oding-system-type|oerce|olor-cie-de2000|olor-clamp|olor-complement-hex|olor-complement|olor-darken-hsl|olor-darken-name|olor-desaturate-hsl|olor-desaturate-name|olor-distance|olor-gradient|olor-hsl-to-rgb|olor-hue-to-rgb|olor-lab-to-srgb|olor-lab-to-xyz|olor-lighten-hsl|olor-lighten-name|olor-name-to-rgb|olor-rgb-to-hex|olor-rgb-to-hsl|olor-rgb-to-hsv|olor-saturate-hsl|olor-saturate-name|olor-srgb-to-lab|olor-srgb-to-xyz|olor-xyz-to-lab|olor-xyz-to-srgb|olumn-number-mode|ombine-after-change-execute|omint--complete-file-name-data|omint--match-partial-filename|omint--requote-argument|omint--unquote&expand-filename|omint--unquote&requote-argument|omint--unquote-argument|omint-accumulate|omint-add-to-input-history|omint-adjust-point|omint-adjust-window-point|omint-after-pmark-p|omint-append-output-to-file|omint-args|omint-arguments|omint-backward-matching-input|omint-bol-or-process-mark|omint-bol|omint-c-a-p-replace-by-expanded-history|omint-carriage-motion|omint-check-proc|omint-check-source|omint-completion-at-point|omint-completion-file-name-table|omint-continue-subjob|omint-copy-old-input|omint-delchar-or-maybe-eof|omint-delete-input|omint-delete-output|omint-delim-arg|omint-directory|omint-dynamic-complete-as-filename|omint-dynamic-complete-filename|omint-dynamic-complete|omint-dynamic-list-completions|omint-dynamic-list-filename-completions|omint-dynamic-list-input-ring-select|omint-dynamic-list-input-ring|omint-dynamic-simple-complete|omint-exec-1|omint-exec|omint-extract-string|omint-filename-completion|omint-forward-matching-input|omint-get-next-from-history|omint-get-old-input-default|omint-get-source|omint-goto-input|omint-goto-process-mark|omint-history-isearch-backward-regexp|omint-history-isearch-backward|omint-history-isearch-end|omint-history-isearch-message|omint-history-isearch-pop-state|omint-history-isearch-push-state|omint-history-isearch-search|omint-history-isearch-setup|omint-history-isearch-wrap|omint-how-many-region|omint-insert-input|omint-insert-previous-argument|omint-interrupt-subjob|omint-kill-input|omint-kill-region|omint-kill-subjob|omint-kill-whole-line|omint-line-beginning-position|omint-magic-space|omint-match-partial-filename|omint-mode|omint-next-input|omint-next-matching-input-from-input|omint-next-matching-input|omint-next-prompt|omint-output-filter|omint-postoutput-scroll-to-bottom|omint-preinput-scroll-to-bottom|omint-previous-input-string|omint-previous-input|omint-previous-matching-input-from-input|omint-previous-matching-input-string-position|omint-previous-matching-input-string|omint-previous-matching-input|omint-previous-prompt|omint-proc-query|omint-quit-subjob|omint-quote-filename|omint-read-input-ring|omint-read-noecho|omint-redirect-cleanup|omint-redirect-filter|omint-redirect-preoutput-filter|omint-redirect-remove-redirection|omint-redirect-results-list-from-process|omint-redirect-results-list|omint-redirect-send-command-to-process|omint-redirect-send-command|omint-redirect-setup|omint-regexp-arg|omint-replace-by-expanded-filename|omint-replace-by-expanded-history-before-point|omint-replace-by-expanded-history|omint-restore-input|omint-run|omint-search-arg|omint-search-start|omint-send-eof|omint-send-input|omint-send-region|omint-send-string|omint-set-process-mark|omint-show-maximum-output|omint-show-output|omint-simple-send|omint-skip-input|omint-skip-prompt|omint-snapshot-last-prompt|omint-source-default|omint-stop-subjob|omint-strip-ctrl-m|omint-substitute-in-file-name|omint-truncate-buffer|omint-unquote-filename|omint-update-fence|omint-watch-for-password-prompt|omint-within-quotes|omint-word|omint-write-input-ring|omint-write-output|ommand-apropos|ommand-error-default-function|ommand-history-mode|ommand-history-repeat|ommand-line-1|ommand-line-normalize-file-name|omment-add|omment-beginning|omment-box|omment-choose-indent|omment-dwim|omment-enter-backward|omment-forward|omment-indent-default|omment-indent-new-line|omment-indent|omment-kill|omment-make-extra-lines|omment-normalize-vars|omment-only-p|omment-or-uncomment-region|omment-padleft|omment-padright|omment-quote-nested|omment-quote-re|omment-region-default|omment-region-internal|omment-region|omment-search-backward|omment-search-forward|omment-set-column|omment-string-reverse|omment-string-strip|omment-valid-prefix-p|omment-with-narrowing|ommon-lisp-indent-function|ommon-lisp-mode|ompare-windows-dehighlight|ompare-windows-get-next-window|ompare-windows-get-recent-window|ompare-windows-highlight|ompare-windows-skip-whitespace|ompare-windows-sync-default-function|ompare-windows-sync-regexp|ompare-windows|ompilation--compat-error-properties|ompilation--compat-parse-errors|ompilation--ensure-parse|ompilation--file-struct->file-spec|ompilation--file-struct->formats|ompilation--file-struct->loc-tree|ompilation--flush-directory-cache|ompilation--flush-file-structure|ompilation--flush-parse|ompilation--loc->col|ompilation--loc->file-struct|ompilation--loc->line|ompilation--loc->marker|ompilation--loc->visited|ompilation--make-cdrloc|ompilation--make-file-struct|ompilation--make-message--cmacro|ompilation--make-message|ompilation--message->end-loc--cmacro|ompilation--message->end-loc|ompilation--message->loc--cmacro|ompilation--message->loc|ompilation--message->type--cmacro|ompilation--message->type|ompilation--message-p--cmacro|ompilation--message-p|ompilation--parse-region|ompilation--previous-directory|ompilation--put-prop|ompilation--remove-properties|ompilation--unsetup|ompilation-auto-jump|ompilation-buffer-internal-p|ompilation-buffer-name|ompilation-buffer-p|ompilation-button-map|ompilation-directory-properties|ompilation-display-error|ompilation-error-properties|ompilation-face|ompilation-fake-loc|ompilation-filter|ompilation-find-buffer|ompilation-find-file|ompilation-forget-errors|ompilation-get-file-structure|ompilation-goto-locus-delete-o|ompilation-goto-locus|ompilation-handle-exit|ompilation-internal-error-properties|ompilation-loop|ompilation-minor-mode|ompilation-mode-font-lock-keywords|ompilation-mode|ompilation-move-to-column|ompilation-next-error-function|ompilation-next-error|ompilation-next-file|ompilation-next-single-property-change)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)c(?:ompilation-parse-errors|ompilation-previous-error|ompilation-previous-file|ompilation-read-command|ompilation-revert-buffer|ompilation-sentinel|ompilation-set-skip-threshold|ompilation-set-window-height|ompilation-set-window|ompilation-setup|ompilation-shell-minor-mode|ompilation-start|ompile-goto-error|ompile-mouse-goto-error|ompile|ompiler-macroexpand|omplete-in-turn|omplete-symbol|omplete-tag|omplete-with-action|omplete|ompleting-read-default|ompleting-read-multiple|ompletion--cache-all-sorted-completions|ompletion--capf-wrapper|ompletion--common-suffix|ompletion--complete-and-exit|ompletion--cycle-threshold|ompletion--do-completion|ompletion--done|ompletion--embedded-envvar-table|ompletion--field-metadata|ompletion--file-name-table|ompletion--flush-all-sorted-completions|ompletion--in-region-1|ompletion--in-region|ompletion--insert-strings|ompletion--make-envvar-table|ompletion--merge-suffix|ompletion--message|ompletion--metadata|ompletion--nth-completion|ompletion--post-self-insert|ompletion--replace|ompletion--sifn-requote|ompletion--some|ompletion--string-equal-p|ompletion--styles|ompletion--try-word-completion|ompletion--twq-all|ompletion--twq-try|ompletion-all-completions|ompletion-all-sorted-completions|ompletion-backup-filename|ompletion-basic--pattern|ompletion-basic-all-completions|ompletion-basic-try-completion|ompletion-before-command|ompletion-c-mode-hook|ompletion-complete-and-exit|ompletion-def-wrapper|ompletion-emacs21-all-completions|ompletion-emacs21-try-completion|ompletion-emacs22-all-completions|ompletion-emacs22-try-completion|ompletion-file-name-table|ompletion-find-file-hook|ompletion-help-at-point|ompletion-hilit-commonality|ompletion-in-region--postch|ompletion-in-region--single-word|ompletion-in-region-mode|ompletion-initialize|ompletion-initials-all-completions|ompletion-initials-expand|ompletion-initials-try-completion|ompletion-kill-region|ompletion-last-use-time|ompletion-lisp-mode-hook|ompletion-list-mode-finish|ompletion-list-mode|ompletion-metadata-get|ompletion-metadata|ompletion-mode|ompletion-num-uses|ompletion-pcm--all-completions|ompletion-pcm--filename-try-filter|ompletion-pcm--find-all-completions|ompletion-pcm--hilit-commonality|ompletion-pcm--merge-completions|ompletion-pcm--merge-try|ompletion-pcm--optimize-pattern|ompletion-pcm--pattern->regex|ompletion-pcm--pattern->string|ompletion-pcm--pattern-trivial-p|ompletion-pcm--prepare-delim-re|ompletion-pcm--string->pattern|ompletion-pcm-all-completions|ompletion-pcm-try-completion|ompletion-search-next|ompletion-search-peek|ompletion-search-reset-1|ompletion-search-reset|ompletion-setup-fortran-mode|ompletion-setup-function|ompletion-source|ompletion-string|ompletion-substring--all-completions|ompletion-substring-all-completions|ompletion-substring-try-completion|ompletion-table-with-context|ompletion-try-completion|ompose-chars-after|ompose-chars|ompose-glyph-string-relative|ompose-glyph-string|ompose-gstring-for-dotted-circle|ompose-gstring-for-graphic|ompose-gstring-for-terminal|ompose-gstring-for-variation-glyph|ompose-last-chars|ompose-mail-other-frame|ompose-mail-other-window|ompose-mail|ompose-region-internal|ompose-region|ompose-string-internal|ompose-string|omposition-get-gstring|oncatenate|ondition-case-no-debug|onf-align-assignments|onf-colon-mode|onf-javaprop-mode|onf-mode-initialize|onf-mode-maybe|onf-mode|onf-outline-level|onf-ppd-mode|onf-quote-normal|onf-space-keywords|onf-space-mode-internal|onf-space-mode|onf-unix-mode|onf-windows-mode|onf-xdefaults-mode|onfirm-nonexistent-file-or-buffer|onstructor|onvert-define-charset-argument|ookie-apropos|ookie-check-file|ookie-doctor|ookie-insert|ookie-read|ookie-shuffle-vector|ookie-snarf|ookie1??|opy-case-table|opy-cvs-flags|opy-cvs-tag|opy-dir-locals-to-file-locals-prop-line|opy-dir-locals-to-file-locals|opy-ebrowse-bs|opy-ebrowse-cs|opy-ebrowse-hs|opy-ebrowse-ms|opy-ebrowse-position|opy-ebrowse-ts|opy-erc-channel-user|opy-erc-response|opy-erc-server-user|opy-ert--ewoc-entry|opy-ert--stats|opy-ert--test-execution-info|opy-ert-test-aborted-with-non-local-exit|opy-ert-test-failed|opy-ert-test-passed|opy-ert-test-quit|opy-ert-test-result-with-condition|opy-ert-test-result|opy-ert-test-skipped|opy-ert-test|opy-ewoc--node|opy-ewoc|opy-face|opy-file-locals-to-dir-locals|opy-flymake-ler|opy-gdb-handler|opy-gdb-table|opy-htmlize-fstruct|opy-js--js-handle|opy-js--pitem|opy-list|opy-package--bi-desc|opy-package-desc|opy-profiler-calltree|opy-profiler-profile|opy-rectangle-as-kill|opy-rectangle-to-register|opy-seq|opy-ses--locprn|opy-sgml-tag|opy-soap-array-type|opy-soap-basic-type|opy-soap-binding|opy-soap-bound-operation|opy-soap-element|opy-soap-message|opy-soap-namespace-link|opy-soap-namespace|opy-soap-operation|opy-soap-port-type|opy-soap-port|opy-soap-sequence-element|opy-soap-sequence-type|opy-soap-simple-type|opy-soap-wsdl|opy-tar-header|opy-to-buffer|opy-to-register|opy-url-queue|opyright-find-copyright|opyright-find-end|opyright-fix-years|opyright-limit|opyright-offset-too-large-p|opyright-re-search|opyright-start-point|opyright-update-directory|opyright-update-year|opyright-update|opyright|ount-if-not|ount-if|ount-lines-page|ount-lines-region|ount-matches|ount-text-lines|ount-trailing-whitespace-region|ount-windows|ount-words--buffer-message|ount-words--message|ount-words-region|ount|perl-1\\\\+|perl-1-|perl-add-tags-recurse-noxs-fullpath|perl-add-tags-recurse-noxs|perl-add-tags-recurse|perl-after-block-and-statement-beg|perl-after-block-p|perl-after-change-function|perl-after-expr-p|perl-after-label|perl-after-sub-regexp|perl-at-end-of-expr|perl-backward-to-noncomment|perl-backward-to-start-of-continued-exp|perl-backward-to-start-of-expr|perl-beautify-level|perl-beautify-regexp-piece|perl-beautify-regexp|perl-beginning-of-property|perl-block-p|perl-build-manpage|perl-cached-syntax-table|perl-calculate-indent-within-comment|perl-calculate-indent|perl-check-syntax|perl-choose-color|perl-comment-indent|perl-comment-region|perl-commentify|perl-contract-levels??|perl-db|perl-define-key|perl-delay-update-hook|perl-describe-perl-symbol|perl-do-auto-fill|perl-electric-backspace|perl-electric-brace|perl-electric-else|perl-electric-keyword|perl-electric-lbrace|perl-electric-paren|perl-electric-pod|perl-electric-rparen|perl-electric-semi|perl-electric-terminator|perl-emulate-lazy-lock|perl-enable-font-lock|perl-ensure-newlines|perl-etags|perl-facemenu-add-face-function|perl-fill-paragraph|perl-find-bad-style|perl-find-pods-heres-region|perl-find-pods-heres|perl-find-sub-attrs|perl-find-tags|perl-fix-line-spacing|perl-font-lock-fontify-region-function|perl-font-lock-unfontify-region-function|perl-fontify-syntaxically|perl-fontify-update-bad|perl-fontify-update|perl-forward-group-in-re|perl-forward-re|perl-forward-to-end-of-expr|perl-get-help-defer|perl-get-help|perl-get-here-doc-region|perl-get-state|perl-here-doc-spell|perl-highlight-charclass|perl-imenu--create-perl-index|perl-imenu-addback|perl-imenu-info-imenu-name|perl-imenu-info-imenu-search|perl-imenu-name-and-position|perl-imenu-on-info|perl-indent-command|perl-indent-exp|perl-indent-for-comment|perl-indent-line|perl-indent-region|perl-info-buffer|perl-info-on-command|perl-info-on-current-command|perl-init-faces-weak|perl-init-faces|perl-inside-parens-p|perl-invert-if-unless-modifiers|perl-invert-if-unless|perl-lazy-hook|perl-lazy-install|perl-lazy-unstall|perl-linefeed|perl-lineup|perl-list-fold|perl-load-font-lock-keywords-1|perl-load-font-lock-keywords-2|perl-load-font-lock-keywords|perl-look-at-leading-count|perl-make-indent|perl-make-regexp-x|perl-map-pods-heres|perl-mark-active|perl-menu-to-keymap|perl-menu|perl-mode|perl-modify-syntax-type|perl-msb-fix|perl-narrow-to-here-doc|perl-next-bad-style|perl-next-interpolated-REx-0|perl-next-interpolated-REx-1|perl-next-interpolated-REx|perl-outline-level|perl-perldoc-at-point|perl-perldoc|perl-pod-spell|perl-pod-to-manpage|perl-pod2man-build-command|perl-postpone-fontification|perl-protect-defun-start|perl-ps-print-init|perl-ps-print|perl-put-do-not-fontify|perl-putback-char|perl-regext-to-level-start|perl-select-this-pod-or-here-doc|perl-set-style-back|perl-set-style|perl-setup-tmp-buf|perl-sniff-for-indent|perl-switch-to-doc-buffer|perl-tags-hier-fill|perl-tags-hier-init|perl-tags-treeify|perl-time-fontification|perl-to-comment-or-eol|perl-toggle-abbrev|perl-toggle-auto-newline|perl-toggle-autohelp|perl-toggle-construct-fix|perl-toggle-electric|perl-toggle-set-debug-unwind|perl-uncomment-region|perl-unwind-to-safe|perl-update-syntaxification|perl-use-region-p|perl-val|perl-windowed-init|perl-word-at-point-hard|perl-word-at-point|perl-write-tags|perl-xsub-scan|pp-choose-branch|pp-choose-default-face|pp-choose-face|pp-choose-symbol|pp-create-bg-face|pp-edit-apply|pp-edit-background|pp-edit-false|pp-edit-home|pp-edit-known|pp-edit-list-entry-get-or-create|pp-edit-load|pp-edit-mode|pp-edit-reset|pp-edit-save|pp-edit-toggle-known|pp-edit-toggle-unknown|pp-edit-true|pp-edit-unknown|pp-edit-write|pp-face-name|pp-grow-overlay|pp-highlight-buffer|pp-make-button|pp-make-known-overlay|pp-make-overlay-hidden|pp-make-overlay-read-only|pp-make-overlay-sticky|pp-make-unknown-overlay|pp-parse-close|pp-parse-edit|pp-parse-error|pp-parse-open|pp-parse-reset|pp-progress-message|pp-push-button|pp-signal-read-only|reate-default-fontset|reate-fontset-from-ascii-font|reate-fontset-from-x-resource|reate-glyph|rm--choose-completion-string|rm--collection-fn|rm--completion-command|rm--current-element|rm-complete-and-exit|rm-complete-word|rm-complete|rm-completion-help|rm-minibuffer-complete-and-exit|rm-minibuffer-complete|rm-minibuffer-completion-help|ss--font-lock-keywords|ss-current-defun-name|ss-extract-keyword-list|ss-extract-parse-val-grammar|ss-extract-props-and-vals|ss-fill-paragraph|ss-mode|ss-smie--backward-token|ss-smie--forward-token|ss-smie-rules|text-non-standard-encodings-table|text-post-read-conversion|text-pre-write-conversion|tl-x-4-prefix|tl-x-5-prefix|tl-x-ctl-p-prefix|ua--M/H-key|ua--deactivate|ua--fallback|ua--filter-buffer-noprops|ua--init-keymaps|ua--keep-active|ua--post-command-handler-1|ua--post-command-handler|ua--pre-command-handler-1|ua--pre-command-handler|ua--prefix-arg|ua--prefix-copy-handler|ua--prefix-cut-handler|ua--prefix-override-handler|ua--prefix-override-replay|ua--prefix-override-timeout|ua--prefix-repeat-handler|ua--select-keymaps|ua--self-insert-char-p|ua--shift-control-c-prefix|ua--shift-control-prefix|ua--shift-control-x-prefix|ua--update-indications|ua-cancel|ua-copy-region|ua-cut-region|ua-debug|ua-delete-region|ua-exchange-point-and-mark|ua-help-for-region|ua-mode|ua-paste-pop|ua-paste|ua-pop-to-last-change|ua-rectangle-mark-mode|ua-scroll-down|ua-scroll-up|ua-selection-mode|ua-set-mark|ua-set-rectangle-mark|ua-toggle-global-mark|urrent-line|ustom--frame-color-default|ustom--initialize-widget-variables|ustom--sort-vars-1|ustom--sort-vars|ustom-add-dependencies|ustom-add-link|ustom-add-load|ustom-add-option|ustom-add-package-version|ustom-add-parent-links|ustom-add-see-also|ustom-add-to-group|ustom-add-version|ustom-autoload|ustom-available-themes|ustom-browse-face-tag-action|ustom-browse-group-tag-action|ustom-browse-insert-prefix|ustom-browse-variable-tag-action|ustom-browse-visibility-action|ustom-buffer-create-internal|ustom-buffer-create-other-window|ustom-buffer-create|ustom-check-theme|ustom-command-apply|ustom-comment-create|ustom-comment-hide|ustom-comment-invisible-p|ustom-comment-show|ustom-convert-widget|ustom-current-group|ustom-declare-face|ustom-declare-group|ustom-declare-theme|ustom-declare-variable|ustom-face-action|ustom-face-attributes-get|ustom-face-edit-activate|ustom-face-edit-all|ustom-face-edit-attribute-tag|ustom-face-edit-convert-widget)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:custom-face-edit-deactivate|custom-face-edit-delete|custom-face-edit-fix-value|custom-face-edit-lisp|custom-face-edit-selected|custom-face-edit-value-create|custom-face-edit-value-visibility-action|custom-face-get-current-spec|custom-face-mark-to-reset-standard|custom-face-mark-to-save|custom-face-menu-create|custom-face-reset-saved|custom-face-reset-standard|custom-face-save-command|custom-face-save|custom-face-set|custom-face-standard-value|custom-face-state-set-and-redraw|custom-face-state-set|custom-face-state|custom-face-value-create|custom-face-widget-to-spec|custom-facep|custom-file|custom-filter-face-spec|custom-fix-face-spec|custom-get-fresh-buffer|custom-group-action|custom-group-link-action|custom-group-mark-to-reset-standard|custom-group-mark-to-save|custom-group-members|custom-group-menu-create|custom-group-of-mode|custom-group-reset-current|custom-group-reset-saved|custom-group-reset-standard|custom-group-sample-face-get|custom-group-save|custom-group-set|custom-group-state-set-and-redraw|custom-group-state-update|custom-group-value-create|custom-group-visibility-create|custom-guess-type|custom-handle-all-keywords|custom-handle-keyword|custom-hook-convert-widget|custom-initialize-changed|custom-initialize-default|custom-initialize-reset|custom-initialize-set|custom-load-symbol|custom-load-widget|custom-magic-reset|custom-magic-value-create|custom-make-theme-feature|custom-menu-create|custom-menu-filter|custom-mode|custom-note-var-changed|custom-notify|custom-post-filter-face-spec|custom-pre-filter-face-spec|custom-prefix-add|custom-prompt-customize-unsaved-options|custom-prompt-variable|custom-push-theme|custom-put-if-not|custom-quote|custom-redraw-magic|custom-redraw|custom-reset-faces|custom-reset-standard-save-and-update|custom-reset-variables|custom-reset|custom-save-all|custom-save-delete|custom-save-faces|custom-save-variables|custom-set-default|custom-set-minor-mode|custom-show|custom-sort-items|custom-split-regexp-maybe|custom-state-buffer-message|custom-tag-action|custom-tag-mouse-down-action|custom-theme--load-path|custom-theme-enabled-p|custom-theme-load-confirm|custom-theme-name-valid-p|custom-theme-recalc-face|custom-theme-recalc-variable|custom-theme-reset-faces|custom-theme-reset-variables|custom-theme-visit-theme|custom-toggle-hide-face|custom-toggle-hide-variable|custom-toggle-hide|custom-toggle-parent|custom-unlispify-menu-entry|custom-unlispify-tag-name|custom-unloaded-symbol-p|custom-unloaded-widget-p|custom-unsaved-options|custom-variable-action|custom-variable-backup-value|custom-variable-documentation|custom-variable-edit-lisp|custom-variable-edit|custom-variable-mark-to-reset-standard|custom-variable-mark-to-save|custom-variable-menu-create|custom-variable-prompt|custom-variable-reset-backup|custom-variable-reset-saved|custom-variable-reset-standard|custom-variable-save|custom-variable-set|custom-variable-standard-value|custom-variable-state-set-and-redraw|custom-variable-state-set|custom-variable-state|custom-variable-theme-value|custom-variable-type|custom-variable-value-create|customize-apropos-faces|customize-apropos-groups|customize-apropos-options|customize-apropos|customize-browse|customize-changed-options|customize-changed|customize-create-theme|customize-customized|customize-face-other-window|customize-face|customize-group-other-window|customize-group|customize-mark-as-set|customize-mark-to-save|customize-menu-create|customize-mode|customize-object|customize-option-other-window|customize-option|customize-package-emacs-version|customize-project|customize-push-and-save|customize-read-group|customize-rogue|customize-save-customized|customize-save-variable|customize-saved|customize-set-value|customize-set-variable|customize-target|customize-themes|customize-unsaved|customize-variable-other-window|customize-variable|customize-version-lessp|customize|cvs-add-branch-prefix|cvs-add-face|cvs-add-secondary-branch-prefix|cvs-addto-collection|cvs-append-to-ignore|cvs-append|cvs-applicable-p|cvs-buffer-check|cvs-buffer-p|cvs-bury-buffer|cvs-car|cvs-cdr|cvs-change-cvsroot|cvs-check-fileinfo|cvs-checkout|cvs-cleanup-collection|cvs-cleanup-removed|cvs-cmd-do|cvs-commit-filelist|cvs-commit-minor-wrap|cvs-create-fileinfo|cvs-defaults|cvs-diff-backup-extractor|cvs-dir-member-p|cvs-dired-noselect|cvs-do-commit|cvs-do-edit-log|cvs-do-match|cvs-do-removal|cvs-ediff-diff|cvs-ediff-exit-hook|cvs-ediff-merge|cvs-ediff-startup-hook|cvs-edit-log-filelist|cvs-edit-log-minor-wrap|cvs-edit-log-text-at-point|cvs-emerge-diff|cvs-emerge-merge|cvs-enabledp|cvs-every|cvs-examine|cvs-execute-single-file-list|cvs-execute-single-file|cvs-expand-dir-name|cvs-file-to-string|cvs-fileinfo->backup-file|cvs-fileinfo->base-rev--cmacro|cvs-fileinfo->base-rev|cvs-fileinfo->dir--cmacro|cvs-fileinfo->dir|cvs-fileinfo->file--cmacro|cvs-fileinfo->file|cvs-fileinfo->full-log--cmacro|cvs-fileinfo->full-log|cvs-fileinfo->full-name|cvs-fileinfo->full-path|cvs-fileinfo->head-rev--cmacro|cvs-fileinfo->head-rev|cvs-fileinfo->marked--cmacro|cvs-fileinfo->marked|cvs-fileinfo->merge--cmacro|cvs-fileinfo->merge|cvs-fileinfo->pp-name|cvs-fileinfo->subtype--cmacro|cvs-fileinfo->subtype|cvs-fileinfo->type--cmacro|cvs-fileinfo->type|cvs-fileinfo-from-entries|cvs-fileinfo-p--cmacro|cvs-fileinfo-pp??|cvs-fileinfo-update|cvs-fileinfo<|cvs-find-modif|cvs-first|cvs-flags-defaults--cmacro|cvs-flags-defaults|cvs-flags-define|cvs-flags-desc--cmacro|cvs-flags-desc|cvs-flags-hist-sym--cmacro|cvs-flags-hist-sym|cvs-flags-p--cmacro|cvs-flags-p|cvs-flags-persist--cmacro|cvs-flags-persist|cvs-flags-qtypedesc--cmacro|cvs-flags-qtypedesc|cvs-flags-query|cvs-flags-set|cvs-get-buffer-create|cvs-get-cvsroot|cvs-get-marked|cvs-get-module|cvs-global-menu|cvs-header-msg|cvs-help|cvs-ignore-marks-p|cvs-insert-file|cvs-insert-strings|cvs-insert-visited-file|cvs-is-within-p|cvs-make-cvs-buffer|cvs-map|cvs-mark-buffer-changed|cvs-mark-fis-dead|cvs-match|cvs-menu|cvs-minor-mode|cvs-mode!|cvs-mode-acknowledge|cvs-mode-add-change-log-entry-other-window|cvs-mode-add|cvs-mode-byte-compile-files|cvs-mode-checkout|cvs-mode-commit-setup|cvs-mode-commit|cvs-mode-delete-lock|cvs-mode-diff-1|cvs-mode-diff-backup|cvs-mode-diff-head|cvs-mode-diff-map|cvs-mode-diff-repository|cvs-mode-diff-vendor|cvs-mode-diff-yesterday|cvs-mode-diff|cvs-mode-display-file|cvs-mode-do|cvs-mode-edit-log|cvs-mode-examine|cvs-mode-files|cvs-mode-find-file-other-window|cvs-mode-find-file|cvs-mode-force-command|cvs-mode-idiff-other|cvs-mode-idiff|cvs-mode-ignore|cvs-mode-imerge|cvs-mode-insert|cvs-mode-kill-buffers|cvs-mode-kill-process|cvs-mode-log|cvs-mode-map|cvs-mode-mark-all-files|cvs-mode-mark-get-modif|cvs-mode-mark-matching-files|cvs-mode-mark-on-state|cvs-mode-mark|cvs-mode-marked|cvs-mode-next-line|cvs-mode-previous-line|cvs-mode-quit|cvs-mode-remove-handled|cvs-mode-remove|cvs-mode-revert-buffer|cvs-mode-revert-to-rev|cvs-mode-run|cvs-mode-set-flags|cvs-mode-status|cvs-mode-tag|cvs-mode-toggle-marks??|cvs-mode-tree|cvs-mode-undo|cvs-mode-unmark-all-files|cvs-mode-unmark-up|cvs-mode-unmark|cvs-mode-untag|cvs-mode-update|cvs-mode-view-file-other-window|cvs-mode-view-file|cvs-mode|cvs-mouse-toggle-mark|cvs-move-to-goal-column|cvs-or|cvs-parse-buffer|cvs-parse-commit|cvs-parse-merge|cvs-parse-msg|cvs-parse-process|cvs-parse-run-table|cvs-parse-status|cvs-parse-table|cvs-parsed-fileinfo|cvs-partition|cvs-pop-to-buffer-same-frame|cvs-prefix-define|cvs-prefix-get|cvs-prefix-make-local|cvs-prefix-set|cvs-prefix-sym|cvs-qtypedesc-complete--cmacro|cvs-qtypedesc-complete|cvs-qtypedesc-create--cmacro|cvs-qtypedesc-create|cvs-qtypedesc-hist-sym--cmacro|cvs-qtypedesc-hist-sym|cvs-qtypedesc-obj2str--cmacro|cvs-qtypedesc-obj2str|cvs-qtypedesc-p--cmacro|cvs-qtypedesc-p|cvs-qtypedesc-require--cmacro|cvs-qtypedesc-require|cvs-qtypedesc-str2obj--cmacro|cvs-qtypedesc-str2obj|cvs-query-directory|cvs-query-read|cvs-quickdir|cvs-reread-cvsrc|cvs-retrieve-revision|cvs-revert-if-needed|cvs-run-process|cvs-sentinel|cvs-set-branch-prefix|cvs-set-secondary-branch-prefix|cvs-status-current-file|cvs-status-current-tag|cvs-status-cvstrees|cvs-status-get-tags|cvs-status-minor-wrap|cvs-status-mode|cvs-status-next|cvs-status-prev|cvs-status-trees|cvs-status-vl-to-str|cvs-status|cvs-string-prefix-p|cvs-tag->name--cmacro|cvs-tag->name|cvs-tag->string|cvs-tag->type--cmacro|cvs-tag->type|cvs-tag->vlist--cmacro|cvs-tag->vlist|cvs-tag-compare-1|cvs-tag-compare|cvs-tag-lessp|cvs-tag-make--cmacro|cvs-tag-make-tag|cvs-tag-make|cvs-tag-merge|cvs-tag-p--cmacro|cvs-tag-p|cvs-tags->tree|cvs-tags-list|cvs-temp-buffer|cvs-tree-merge|cvs-tree-print|cvs-tree-tags-insert|cvs-union|cvs-update-filter|cvs-update-header|cvs-update|cvs-vc-command-advice|cwarn-font-lock-keywords|cwarn-font-lock-match-assignment-in-expression|cwarn-font-lock-match-dangerous-semicolon|cwarn-font-lock-match-reference|cwarn-font-lock-match|cwarn-inside-macro|cwarn-is-enabled|cwarn-mode-set-explicitly|cwarn-mode|cycle-spacing|cyrillic-encode-alternativnyj-char|cyrillic-encode-koi8-r-char|dabbrev--abbrev-at-point|dabbrev--find-all-expansions|dabbrev--find-expansion|dabbrev--goto-start-of-abbrev|dabbrev--ignore-buffer-p|dabbrev--ignore-case-p|dabbrev--make-friend-buffer-list|dabbrev--minibuffer-origin|dabbrev--reset-global-variables|dabbrev--safe-replace-match|dabbrev--same-major-mode-p|dabbrev--search|dabbrev--select-buffers|dabbrev--substitute-expansion|dabbrev--try-find|dabbrev-completion|dabbrev-expand|dabbrev-filter-elements|daemon-initialized|daemonp|data-debug-new-buffer|date-to-day|days-between|days-to-time|dbus--init-bus|dbus-byte-array-to-string|dbus-call-method-handler|dbus-check-event|dbus-escape-as-identifier|dbus-event-bus-name|dbus-event-interface-name|dbus-event-member-name|dbus-event-message-type|dbus-event-path-name|dbus-event-serial-number|dbus-event-service-name|dbus-get-all-managed-objects|dbus-get-all-properties|dbus-get-name-owner|dbus-get-property|dbus-get-unique-name|dbus-handle-bus-disconnect|dbus-handle-event|dbus-ignore-errors|dbus-init-bus|dbus-introspect-get-all-nodes|dbus-introspect-get-annotation-names|dbus-introspect-get-annotation|dbus-introspect-get-argument-names|dbus-introspect-get-argument|dbus-introspect-get-attribute|dbus-introspect-get-interface-names|dbus-introspect-get-interface|dbus-introspect-get-method-names|dbus-introspect-get-method|dbus-introspect-get-node-names|dbus-introspect-get-property-names|dbus-introspect-get-property|dbus-introspect-get-signal-names|dbus-introspect-get-signal|dbus-introspect-get-signature|dbus-introspect-xml|dbus-introspect|dbus-list-activatable-names|dbus-list-hash-table|dbus-list-known-names|dbus-list-names|dbus-list-queued-owners|dbus-managed-objects-handler|dbus-message-internal|dbus-method-error-internal|dbus-method-return-internal|dbus-notice-synchronous-call-errors|dbus-peer-handler|dbus-ping|dbus-property-handler|dbus-register-method|dbus-register-property|dbus-register-service|dbus-register-signal|dbus-set-property|dbus-setenv|dbus-string-to-byte-array|dbus-unescape-from-identifier|dbus-unregister-object|dbus-unregister-service|dbx|dcl-back-to-indentation-1|dcl-back-to-indentation|dcl-backward-command|dcl-beginning-of-command-p|dcl-beginning-of-command|dcl-beginning-of-statement|dcl-calc-command-indent-hang|dcl-calc-command-indent-multiple|dcl-calc-command-indent|dcl-calc-cont-indent-relative|dcl-calc-continuation-indent|dcl-command-p|dcl-delete-chars|dcl-delete-indentation|dcl-electric-character|dcl-end-of-command-p|dcl-end-of-command|dcl-end-of-statement|dcl-forward-command|dcl-get-line-type|dcl-guess-option-value|dcl-guess-option|dcl-imenu-create-index-function|dcl-indent-command-line|dcl-indent-command|dcl-indent-continuation-line|dcl-indent-line|dcl-indent-to|dcl-indentation-point|dcl-mode|dcl-option-value-basic|dcl-option-value-comment-line|dcl-option-value-margin-offset|dcl-option-value-offset|dcl-save-all-options|dcl-save-local-variable|dcl-save-mode|dcl-save-nondefault-options|dcl-save-option|dcl-set-option|dcl-show-line-type|dcl-split-line|dcl-tab|dcl-was-looking-at|deactivate-input-method|deactivate-mode-local-bindings|debug--function-list|debug--implement-debug-on-entry|debug-help-follow|debugger--backtrace-base|debugger--hide-locals|debugger--insert-locals|debugger--locals-visible-p|debugger--show-locals)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)d(?:ebugger-continue|ebugger-env-macro|ebugger-eval-expression|ebugger-frame-clear|ebugger-frame-number|ebugger-frame|ebugger-jump|ebugger-list-functions|ebugger-make-xrefs|ebugger-mode|ebugger-record-expression|ebugger-reenable|ebugger-return-value|ebugger-setup-buffer|ebugger-step-through|ebugger-toggle-locals|ecf|ecipher--analyze|ecipher--digram-counts|ecipher--digram-total|ecipher-add-undo|ecipher-adjacency-list|ecipher-alphabet-keypress|ecipher-analyze-buffer|ecipher-analyze|ecipher-complete-alphabet|ecipher-copy-cons|ecipher-digram-list|ecipher-display-range|ecipher-display-regexp|ecipher-display-stats-buffer|ecipher-frequency-count|ecipher-get-undo|ecipher-insert-frequency-counts|ecipher-insert|ecipher-keypress|ecipher-last-command-char|ecipher-loop-no-breaks|ecipher-loop-with-breaks|ecipher-make-checkpoint|ecipher-mode|ecipher-read-alphabet|ecipher-restore-checkpoint|ecipher-resync|ecipher-set-map|ecipher-show-alphabet|ecipher-stats-buffer|ecipher-stats-mode|ecipher-undo|ecipher|eclaim|eclare-ccl-program|eclare-equiv-charset|ecode-big5-char|ecode-composition-components|ecode-composition-rule|ecode-hex-string|ecode-hz-buffer|ecode-hz-region|ecode-sjis-char|ecompose-region|ecompose-string|ecrease-left-margin|ecrease-right-margin|ef-gdb-auto-update-handler|ef-gdb-auto-update-trigger|ef-gdb-memory-format|ef-gdb-memory-show-page|ef-gdb-memory-unit|ef-gdb-preempt-display-buffer|ef-gdb-set-positive-number|ef-gdb-thread-buffer-command|ef-gdb-thread-buffer-gud-command|ef-gdb-thread-buffer-simple-command|ef-gdb-trigger-and-handler|efault-command-history-filter|efault-font-height|efault-indent-new-line|efault-line-height|efault-toplevel-value|efcalcmodevar|efconst-mode-local|efcustom-c-stylevar|efcustom-mh|efezimage|efface-mh|efgeneric|efgroup-mh|efimage-speedbar|efine-abbrevs|efine-advice|efine-auto-insert|efine-ccl-program|efine-char-code-property|efine-charset-alias|efine-charset-internal|efine-charset|efine-child-mode|efine-coding-system-alias|efine-coding-system-internal|efine-coding-system|efine-compilation-mode|efine-compiler-macro|efine-erc-module|efine-erc-response-handler|efine-global-abbrev|efine-global-minor-mode|efine-hmac-function|efine-ibuffer-column|efine-ibuffer-filter|efine-ibuffer-op|efine-ibuffer-sorter|efine-inline|efine-lex-analyzer|efine-lex-block-analyzer|efine-lex-block-type-analyzer|efine-lex-keyword-type-analyzer|efine-lex-regex-analyzer|efine-lex-regex-type-analyzer|efine-lex-sexp-type-analyzer|efine-lex-simple-regex-analyzer|efine-lex-string-type-analyzer|efine-lex|efine-mail-abbrev|efine-mail-alias|efine-mail-user-agent|efine-mode-abbrev|efine-mode-local-override|efine-mode-overload-implementation|efine-overload|efine-overloadable-function|efine-setf-expander|efine-skeleton|efine-translation-hash-table|efine-translation-table|efine-widget-keywords|efmacro-mh|efmath|efmethod|efun-cvs-mode|efun-gmm|efun-mh|efun-rcirc-command|efvar-mode-local|egrees-to-radians|ehexlify-buffer|elay-warning|elete\\\\*|elete-active-region|elete-all-overlays|elete-completion-window|elete-completion|elete-consecutive-dups|elete-dir-local-variable|elete-directory-internal|elete-duplicate-lines|elete-duplicates|elete-extract-rectangle-line|elete-extract-rectangle|elete-file-local-variable-prop-line|elete-file-local-variable|elete-forward-char|elete-frame-enabled-p|elete-if-not|elete-if|elete-instance|elete-matching-lines|elete-non-matching-lines|elete-other-frames|elete-other-windows-internal|elete-other-windows-vertically|elete-pair|elete-rectangle-line|elete-rectangle|elete-selection-helper|elete-selection-mode|elete-selection-pre-hook|elete-selection-repeat-replace-region|elete-side-window|elete-whitespace-rectangle-line|elete-whitespace-rectangle|elete-window-internal|elimit-columns-customize|elimit-columns-format|elimit-columns-rectangle-line|elimit-columns-rectangle-max|elimit-columns-rectangle|elimit-columns-region|elimit-columns-str|elphi-mode|elsel-unload-function|enato-region|erived-mode-abbrev-table-name|erived-mode-class|erived-mode-hook-name|erived-mode-init-mode-variables|erived-mode-make-docstring|erived-mode-map-name|erived-mode-merge-abbrev-tables|erived-mode-merge-keymaps|erived-mode-merge-syntax-tables|erived-mode-run-hooks|erived-mode-set-abbrev-table|erived-mode-set-keymap|erived-mode-set-syntax-table|erived-mode-setup-function-name|erived-mode-syntax-table-name|escribe-bindings-internal|escribe-buffer-bindings|escribe-char-after|escribe-char-categories|escribe-char-display|escribe-char-padded-string|escribe-char-unicode-data|escribe-char|escribe-character-set|escribe-chinese-environment-map|escribe-coding-system|escribe-copying|escribe-current-coding-system-briefly|escribe-current-coding-system|escribe-current-input-method|escribe-cyrillic-environment-map|escribe-distribution|escribe-european-environment-map|escribe-face|escribe-font|escribe-fontset|escribe-function-1|escribe-function|escribe-gnu-project|escribe-indian-environment-map|escribe-input-method|escribe-key-briefly|escribe-key|escribe-language-environment|escribe-minor-mode-completion-table-for-indicator|escribe-minor-mode-completion-table-for-symbol|escribe-minor-mode-from-indicator|escribe-minor-mode-from-symbol|escribe-minor-mode|escribe-mode-local-bindings-in-mode|escribe-mode-local-bindings|escribe-no-warranty|escribe-package-1|escribe-package|escribe-project|escribe-property-list|escribe-register-1|escribe-specified-language-support|escribe-text-category|escribe-text-properties-1|escribe-text-properties|escribe-text-sexp|escribe-text-widget|escribe-theme|escribe-variable-custom-version-info|escribe-variable|escribe-vector|esktop--check-dont-save|esktop--v2s|esktop-append-buffer-args|esktop-auto-save-cancel-timer|esktop-auto-save-disable|esktop-auto-save-enable|esktop-auto-save-set-timer|esktop-auto-save|esktop-buffer-info|esktop-buffer|esktop-change-dir|esktop-claim-lock|esktop-clear|esktop-create-buffer|esktop-file-name|esktop-full-file-name|esktop-full-lock-name|esktop-idle-create-buffers|esktop-kill|esktop-lazy-abort|esktop-lazy-complete|esktop-lazy-create-buffer|esktop-list\\\\*|esktop-load-default|esktop-load-file|esktop-outvar|esktop-owner|esktop-read|esktop-release-lock|esktop-remove|esktop-restore-file-buffer|esktop-restore-frameset|esktop-restoring-frameset-p|esktop-revert|esktop-save-buffer-p|esktop-save-frameset|esktop-save-in-desktop-dir|esktop-save-mode-off|esktop-save-mode|esktop-save|esktop-truncate|esktop-value-to-string|estructor|estructuring-bind|etect-coding-with-language-environment|etect-coding-with-priority|frame-attached-frame|frame-click|frame-close-frame|frame-current-frame|frame-detach|frame-double-click|frame-frame-mode|frame-frame-parameter|frame-get-focus|frame-hack-buffer-menu|frame-handle-delete-frame|frame-handle-iconify-frame|frame-handle-make-frame-visible|frame-help-echo|frame-live-p|frame-maybee-jump-to-attached-frame|frame-message|frame-mouse-event-p|frame-mouse-hscroll|frame-mouse-set-point|frame-needed-height|frame-popup-kludge|frame-power-click|frame-quick-mouse|frame-reposition-frame-emacs|frame-reposition-frame-xemacs|frame-reposition-frame|frame-select-attached-frame|frame-set-timer-internal|frame-set-timer|frame-switch-buffer-attached-frame|frame-temp-buffer-show-function|frame-timer-fn|frame-track-mouse-xemacs|frame-track-mouse|frame-update-keymap|frame-with-attached-buffer|frame-y-or-n-p|iary-add-to-list|iary-anniversary|iary-astro-day-number|iary-attrtype-convert|iary-bahai-date|iary-bahai-insert-entry|iary-bahai-insert-monthly-entry|iary-bahai-insert-yearly-entry|iary-bahai-list-entries|iary-bahai-mark-entries|iary-block|iary-check-diary-file|iary-chinese-anniversary|iary-chinese-date|iary-chinese-insert-anniversary-entry|iary-chinese-insert-entry|iary-chinese-insert-monthly-entry|iary-chinese-insert-yearly-entry|iary-chinese-list-entries|iary-chinese-mark-entries|iary-coptic-date|iary-cyclic|iary-date-display-form|iary-date|iary-day-of-year|iary-display-no-entries|iary-entry-compare|iary-entry-time|iary-ethiopic-date|iary-fancy-date-matcher|iary-fancy-date-pattern|iary-fancy-display-mode|iary-fancy-display|iary-fancy-font-lock-fontify-region-function|iary-float|iary-font-lock-date-forms|iary-font-lock-keywords-1|iary-font-lock-keywords|iary-font-lock-sexps|iary-french-date|iary-from-outlook-gnus|iary-from-outlook-internal|iary-from-outlook-rmail|iary-from-outlook|iary-goto-entry|iary-hebrew-birthday|iary-hebrew-date|iary-hebrew-insert-entry|iary-hebrew-insert-monthly-entry|iary-hebrew-insert-yearly-entry|iary-hebrew-list-entries|iary-hebrew-mark-entries|iary-hebrew-omer|iary-hebrew-parasha|iary-hebrew-rosh-hodesh|iary-hebrew-sabbath-candles|iary-hebrew-yahrzeit|iary-include-files|iary-include-other-diary-files|iary-insert-anniversary-entry|iary-insert-block-entry|iary-insert-cyclic-entry|iary-insert-entry-1|iary-insert-entry|iary-insert-monthly-entry|iary-insert-weekly-entry|iary-insert-yearly-entry|iary-islamic-date|iary-islamic-insert-entry|iary-islamic-insert-monthly-entry|iary-islamic-insert-yearly-entry|iary-islamic-list-entries|iary-islamic-mark-entries|iary-iso-date|iary-julian-date|iary-list-entries-1|iary-list-entries-2|iary-list-entries|iary-list-sexp-entries|iary-live-p|iary-lunar-phases|iary-mail-entries|iary-make-date|iary-make-entry|iary-mark-entries-1|iary-mark-entries|iary-mark-included-diary-files|iary-mark-sexp-entries|iary-mayan-date|iary-mode|iary-name-pattern|iary-ordinal-suffix|iary-outlook-format-1|iary-persian-date|iary-print-entries|iary-pull-attrs|iary-redraw-calendar|iary-remind|iary-set-header|iary-set-maybe-redraw|iary-sexp-entry|iary-show-all-entries|iary-simple-display|iary-sort-entries|iary-sunrise-sunset|iary-unhide-everything|iary-view-entries|iary-view-other-diary-entries|iary|iff-add-change-log-entries-other-window|iff-after-change-function|iff-apply-hunk|iff-auto-refine-mode|iff-backup|iff-beginning-of-file-and-junk|iff-beginning-of-file|iff-beginning-of-hunk|iff-bounds-of-file|iff-bounds-of-hunk|iff-buffer-with-file|iff-context->unified|iff-count-matches|iff-current-defun|iff-delete-empty-files|iff-delete-if-empty|iff-delete-trailing-whitespace|iff-ediff-patch|iff-end-of-file|iff-end-of-hunk|iff-file-kill|iff-file-local-copy|iff-file-next|iff-file-prev|iff-filename-drop-dir|iff-find-approx-text|iff-find-file-name|iff-find-source-location|iff-find-text|iff-fixup-modifs|iff-goto-source|iff-hunk-file-names|iff-hunk-kill|iff-hunk-next|iff-hunk-prev|iff-hunk-status-msg|iff-hunk-style|iff-hunk-text|iff-ignore-whitespace-hunk|iff-kill-applied-hunks|iff-kill-junk|iff-latest-backup-file|iff-make-unified|iff-merge-strings|iff-minor-mode|iff-mode-menu|iff-mode|iff-mouse-goto-source|iff-next-complex-hunk|iff-next-error|iff-no-select|iff-post-command-hook|iff-process-filter|iff-refine-hunk|iff-refine-preproc|iff-restrict-view|iff-reverse-direction|iff-sanity-check-context-hunk-half|iff-sanity-check-hunk|iff-sentinel|iff-setup-whitespace|iff-split-hunk|iff-splittable-p|iff-switches|iff-tell-file-name|iff-test-hunk|iff-undo|iff-unified->context|iff-unified-hunk-p|iff-write-contents-hooks|iff-xor|iff-yank-function|iff|ig-exit|ig-extract-rr|ig-invoke|ig-mode|ig-rr-get-pkix-cert|ig|igest-md5-challenge|igest-md5-digest-response|igest-md5-digest-uri|igest-md5-parse-digest-challenge|ir-locals-collect-mode-variables|ir-locals-collect-variables|ir-locals-find-file|ir-locals-get-class-variables|ir-locals-read-from-file|irectory-files-recursively|irectory-name-p|ired-add-file|ired-advertise|ired-advertised-find-file|ired-align-file|ired-alist-add-1|ired-at-point-prompter|ired-at-point|ired-backup-diff|ired-between-files|ired-buffer-stale-p|ired-buffers-for-dir|ired-build-subdir-alist|ired-change-marks|ired-check-switches|ired-clean-directory|ired-clean-up-after-deletion|ired-clear-alist|ired-compare-directories|ired-compress-file|ired-copy-file|ired-copy-filename-as-kill|ired-create-directory)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:dired-current-directory|dired-delete-entry|dired-delete-file|dired-desktop-buffer-misc-data|dired-diff|dired-directory-changed-p|dired-display-file|dired-dnd-do-ask-action|dired-dnd-handle-file|dired-dnd-handle-local-file|dired-dnd-popup-notice|dired-do-async-shell-command|dired-do-byte-compile|dired-do-chgrp|dired-do-chmod|dired-do-chown|dired-do-compress|dired-do-copy-regexp|dired-do-copy|dired-do-create-files-regexp|dired-do-delete|dired-do-flagged-delete|dired-do-hardlink-regexp|dired-do-hardlink|dired-do-isearch-regexp|dired-do-isearch|dired-do-kill-lines|dired-do-load|dired-do-print|dired-do-query-replace-regexp|dired-do-redisplay|dired-do-relsymlink|dired-do-rename-regexp|dired-do-rename|dired-do-search|dired-do-shell-command|dired-do-symlink-regexp|dired-do-symlink|dired-do-touch|dired-downcase|dired-file-marker|dired-file-name-at-point|dired-find-alternate-file|dired-find-buffer-nocreate|dired-find-file-other-window|dired-find-file|dired-flag-auto-save-files|dired-flag-backup-files|dired-flag-file-deletion|dired-flag-files-regexp|dired-flag-garbage-files|dired-format-columns-of-files|dired-fun-in-all-buffers|dired-get-file-for-visit|dired-get-filename|dired-get-marked-files|dired-get-subdir-max|dired-get-subdir-min|dired-get-subdir|dired-glob-regexp|dired-goto-file-1|dired-goto-file|dired-goto-next-file|dired-goto-next-nontrivial-file|dired-goto-subdir|dired-hide-all|dired-hide-details-mode|dired-hide-details-update-invisibility-spec|dired-hide-subdir|dired-in-this-tree|dired-initial-position|dired-insert-directory|dired-insert-old-subdirs|dired-insert-set-properties|dired-insert-subdir|dired-internal-do-deletions|dired-internal-noselect|dired-isearch-filenames-regexp|dired-isearch-filenames-setup|dired-isearch-filenames|dired-jump-other-window|dired-jump|dired-kill-subdir|dired-log-summary|dired-log|dired-make-absolute|dired-make-relative|dired-map-over-marks|dired-mark-directories|dired-mark-executables|dired-mark-files-containing-regexp|dired-mark-files-in-region|dired-mark-files-regexp|dired-mark-if|dired-mark-pop-up|dired-mark-prompt|dired-mark-remembered|dired-mark-subdir-files|dired-mark-symlinks|dired-mark|dired-marker-regexp|dired-maybe-insert-subdir|dired-mode|dired-mouse-find-file-other-window|dired-move-to-end-of-filename|dired-move-to-filename|dired-next-dirline|dired-next-line|dired-next-marked-file|dired-next-subdir|dired-normalize-subdir|dired-noselect|dired-other-frame|dired-other-window|dired-plural-s|dired-pop-to-buffer|dired-prev-dirline|dired-prev-marked-file|dired-prev-subdir|dired-previous-line|dired-query|dired-read-dir-and-switches|dired-read-regexp|dired-readin-insert|dired-readin|dired-relist-file|dired-remember-hidden|dired-remember-marks|dired-remove-file|dired-rename-file|dired-repeat-over-lines|dired-replace-in-string|dired-restore-desktop-buffer|dired-restore-positions|dired-revert|dired-run-shell-command|dired-safe-switches-p|dired-save-positions|dired-show-file-type|dired-sort-R-check|dired-sort-other|dired-sort-set-mode-line|dired-sort-set-modeline|dired-sort-toggle-or-edit|dired-sort-toggle|dired-string-replace-match|dired-subdir-index|dired-subdir-max|dired-summary|dired-switches-escape-p|dired-switches-recursive-p|dired-toggle-marks|dired-toggle-read-only|dired-tree-down|dired-tree-up|dired-unadvertise|dired-uncache|dired-undo|dired-unmark-all-files|dired-unmark-all-marks|dired-unmark-backward|dired-unmark|dired-up-directory|dired-upcase|dired-view-file|dired-why|dired|dirs|dirtrack-cygwin-directory-function|dirtrack-debug-message|dirtrack-debug-mode|dirtrack-debug-toggle|dirtrack-mode|dirtrack-toggle|dirtrack-windows-directory-function|dirtrack|disable-timeout|disassemble-1|disassemble-internal|disassemble-offset|display-about-screen|display-battery-mode|display-buffer--maybe-pop-up-frame-or-window|display-buffer--maybe-same-window|display-buffer--special-action|display-buffer-assq-regexp|display-buffer-in-atom-window|display-buffer-in-major-side-window|display-buffer-in-side-window|display-buffer-other-frame|display-buffer-record-window|display-call-tree|display-local-help|display-multi-font-p|display-multi-frame-p|display-splash-screen|display-startup-echo-area-message|display-startup-screen|display-table-print-array|display-time-mode|display-time-world|display-time|displaying-byte-compile-warnings|dissociated-press|dnd-get-local-file-name|dnd-get-local-file-uri|dnd-handle-one-url|dnd-insert-text|dnd-open-file|dnd-open-local-file|dnd-open-remote-url|dnd-unescape-uri|dns-get-txt-answer|dns-get|dns-inverse-get|dns-lookup-host|dns-make-network-process|dns-mode-menu|dns-mode-soa-increment-serial|dns-mode-soa-maybe-increment-serial|dns-mode|dns-query-cached|dns-query|dns-read-bytes|dns-read-int32|dns-read-name|dns-read-string-name|dns-read-txt|dns-read-type|dns-read|dns-servers-up-to-date-p|dns-set-servers|dns-write-bytes|dns-write-name|dns-write|dnsDomainIs|dnsResolve|do\\\\*|do-after-load-evaluation|do-all-symbols|do-auto-fill|do-symbols|do|doc\\\\$|doc//|doc-file-to-info|doc-file-to-man|doc-view--current-cache-dir|doc-view-active-pages|doc-view-already-converted-p|doc-view-bookmark-jump|doc-view-bookmark-make-record|doc-view-buffer-message|doc-view-clear-cache|doc-view-clone-buffer-hook|doc-view-convert-current-doc|doc-view-current-cache-doc-pdf|doc-view-current-image|doc-view-current-info|doc-view-current-overlay|doc-view-current-page|doc-view-current-slice|doc-view-desktop-save-buffer|doc-view-dired-cache|doc-view-display|doc-view-djvu->tiff-converter-ddjvu|doc-view-doc->txt|doc-view-document->bitmap|doc-view-dvi->pdf|doc-view-enlarge|doc-view-fallback-mode|doc-view-first-page|doc-view-fit-height-to-window|doc-view-fit-page-to-window|doc-view-fit-width-to-window|doc-view-get-bounding-box|doc-view-goto-page|doc-view-guess-paper-size|doc-view-initiate-display|doc-view-insert-image|doc-view-intersection|doc-view-kill-proc-and-buffer|doc-view-kill-proc|doc-view-last-page-number|doc-view-last-page|doc-view-make-safe-dir|doc-view-menu|doc-view-minor-mode|doc-view-mode-maybe|doc-view-mode-p|doc-view-mode|doc-view-new-window-function|doc-view-next-line-or-next-page|doc-view-next-page|doc-view-odf->pdf-converter-soffice|doc-view-odf->pdf-converter-unoconv|doc-view-open-text|doc-view-pdf/ps->png|doc-view-pdf->png-converter-ghostscript|doc-view-pdf->png-converter-mupdf|doc-view-pdf->txt|doc-view-previous-line-or-previous-page|doc-view-previous-page|doc-view-ps->pdf|doc-view-ps->png-converter-ghostscript|doc-view-reconvert-doc|doc-view-reset-slice|doc-view-restore-desktop-buffer|doc-view-revert-buffer|doc-view-scale-adjust|doc-view-scale-bounding-box|doc-view-scale-reset|doc-view-scroll-down-or-previous-page|doc-view-scroll-up-or-next-page|doc-view-search-backward|doc-view-search-internal|doc-view-search-next-match|doc-view-search-no-of-matches|doc-view-search-previous-match|doc-view-search|doc-view-sentinel|doc-view-set-doc-type|doc-view-set-slice-from-bounding-box|doc-view-set-slice-using-mouse|doc-view-set-slice|doc-view-set-up-single-converter|doc-view-show-tooltip|doc-view-shrink|doc-view-sort|doc-view-start-process|doc-view-toggle-display|doctex-font-lock-\\\\^\\\\^A|doctex-font-lock-syntactic-face-function|doctex-mode|doctor-\\\\$|doctor-adjectivep|doctor-adverbp|doctor-alcohol|doctor-articlep|doctor-assm|doctor-build|doctor-chat|doctor-colorp|doctor-concat|doctor-conj|doctor-correct-spelling|doctor-death|doctor-def|doctor-define|doctor-defq|doctor-desire1??|doctor-doc|doctor-drug|doctor-eliza|doctor-family|doctor-fear|doctor-fix-2|doctor-fixup|doctor-forget|doctor-foul|doctor-getnoun|doctor-go|doctor-hates??|doctor-hates1|doctor-howdy|doctor-huh|doctor-loves??|doctor-mach|doctor-make-string|doctor-math|doctor-meaning|doctor-mode|doctor-modifierp|doctor-mood|doctor-nmbrp|doctor-nounp|doctor-othermodifierp|doctor-plural|doctor-possess|doctor-possessivepronounp|doctor-prepp|doctor-pronounp|doctor-put-meaning|doctor-qloves|doctor-query|doctor-read-print|doctor-read-token|doctor-readin|doctor-remem|doctor-remember|doctor-replace|doctor-ret-or-read|doctor-rms|doctor-rthing|doctor-school|doctor-setprep|doctor-sexnoun|doctor-sexverb|doctor-short|doctor-shorten|doctor-sizep|doctor-sports|doctor-state|doctor-subjsearch|doctor-svo|doctor-symptoms|doctor-toke|doctor-txtype|doctor-type-symbol|doctor-type|doctor-verbp|doctor-vowelp|doctor-when|doctor-wherego|doctor-zippy|doctor|dom-add-child-before|dom-append-child|dom-attr|dom-attributes|dom-by-class|dom-by-id|dom-by-style|dom-by-tag|dom-child-by-tag|dom-children|dom-elements|dom-ensure-node|dom-node|dom-non-text-children|dom-parent|dom-pp|dom-set-attributes??|dom-tag|dom-texts??|dont-compile|double-column|double-mode|double-read-event|double-translate-key|down-ifdef|dsssl-mode|dunnet|dynamic-completion-mode|dynamic-completion-table|dynamic-setting-handle-config-changed-event|easy-menu-add-item|easy-menu-add|easy-menu-always-true-p|easy-menu-binding|easy-menu-change|easy-menu-convert-item-1|easy-menu-convert-item|easy-menu-create-menu|easy-menu-define-key|easy-menu-do-define|easy-menu-filter-return|easy-menu-get-map|easy-menu-intern|easy-menu-item-present-p|easy-menu-lookup-name|easy-menu-make-symbol|easy-menu-name-match|easy-menu-remove-item|easy-menu-remove|easy-menu-return-item|easy-mmode-define-global-mode|easy-mmode-define-keymap|easy-mmode-define-navigation|easy-mmode-define-syntax|easy-mmode-defmap|easy-mmode-defsyntax|easy-mmode-pretty-mode-name|easy-mmode-set-keymap-parents|ebnf-abn-initialize|ebnf-abn-parser|ebnf-adjust-empty|ebnf-adjust-width|ebnf-alternative-dimension|ebnf-alternative-width|ebnf-apply-style1??|ebnf-begin-file|ebnf-begin-job|ebnf-begin-line|ebnf-bnf-initialize|ebnf-bnf-parser|ebnf-boolean|ebnf-buffer-substring|ebnf-check-style-values|ebnf-customize|ebnf-delete-style|ebnf-despool|ebnf-dimensions|ebnf-directory|ebnf-dtd-initialize|ebnf-dtd-parser|ebnf-dup-list|ebnf-ebx-initialize|ebnf-ebx-parser|ebnf-element-width|ebnf-eliminate-empty-rules|ebnf-empty-alternative|ebnf-end-of-string|ebnf-entry|ebnf-eop-horizontal|ebnf-eop-vertical|ebnf-eps-add-context|ebnf-eps-add-production|ebnf-eps-buffer|ebnf-eps-directory|ebnf-eps-file|ebnf-eps-filename|ebnf-eps-finish-and-write|ebnf-eps-footer-comment|ebnf-eps-footer|ebnf-eps-header-comment|ebnf-eps-header-footer-comment|ebnf-eps-header-footer-file|ebnf-eps-header-footer-p|ebnf-eps-header-footer-set|ebnf-eps-header-footer|ebnf-eps-header|ebnf-eps-output|ebnf-eps-production-list|ebnf-eps-region|ebnf-eps-remove-context|ebnf-eps-string|ebnf-eps-write-kill-temp|ebnf-except-dimension|ebnf-file|ebnf-find-style|ebnf-font-attributes|ebnf-font-background|ebnf-font-foreground|ebnf-font-height|ebnf-font-list|ebnf-font-name-select|ebnf-font-name|ebnf-font-select|ebnf-font-size|ebnf-font-width|ebnf-format-color|ebnf-format-float|ebnf-gen-terminal|ebnf-generate-alternative|ebnf-generate-empty|ebnf-generate-eps|ebnf-generate-except|ebnf-generate-non-terminal|ebnf-generate-one-or-more|ebnf-generate-optional|ebnf-generate-postscript|ebnf-generate-production|ebnf-generate-region|ebnf-generate-repeat|ebnf-generate-sequence|ebnf-generate-special|ebnf-generate-terminal|ebnf-generate-with-max-height|ebnf-generate-without-max-height|ebnf-generate-zero-or-more|ebnf-generate|ebnf-get-string|ebnf-horizontal-movement|ebnf-insert-ebnf-prologue|ebnf-insert-style|ebnf-iso-initialize|ebnf-iso-parser|ebnf-justify-list|ebnf-justify|ebnf-log-header|ebnf-log|ebnf-make-alternative|ebnf-make-dup-sequence|ebnf-make-empty|ebnf-make-except|ebnf-make-non-terminal|ebnf-make-one-or-more|ebnf-make-optional|ebnf-make-or-more1|ebnf-make-production|ebnf-make-repeat|ebnf-make-sequence|ebnf-make-special|ebnf-make-terminal1??|ebnf-make-zero-or-more|ebnf-max-width|ebnf-merge-style|ebnf-message-float|ebnf-message-info|ebnf-new-page|ebnf-newline|ebnf-node-action|ebnf-node-default|ebnf-node-dimension-func|ebnf-node-entry|ebnf-node-generation|ebnf-node-height|ebnf-node-kind|ebnf-node-list|ebnf-node-name|ebnf-node-production|ebnf-node-separator|ebnf-node-width-func|ebnf-node-width|ebnf-non-terminal-dimension|ebnf-one-or-more-dimension|ebnf-optimize|ebnf-optional-dimension|ebnf-otz-initialize|ebnf-parse-and-sort|ebnf-pop-style|ebnf-print-buffer|ebnf-print-directory|ebnf-print-file|ebnf-print-region|ebnf-production-dimension|ebnf-push-style|ebnf-range-regexp|ebnf-repeat-dimension|ebnf-reset-style|ebnf-sequence-dimension|ebnf-sequence-width)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)e(?:bnf-setup|bnf-shape-value|bnf-sorter-ascending|bnf-sorter-descending|bnf-special-dimension|bnf-spool-buffer|bnf-spool-directory|bnf-spool-file|bnf-spool-region|bnf-string|bnf-syntax-buffer|bnf-syntax-directory|bnf-syntax-file|bnf-syntax-region|bnf-terminal-dimension1??|bnf-token-alternative|bnf-token-except|bnf-token-optional|bnf-token-repeat|bnf-token-sequence|bnf-trim-right|bnf-vertical-movement|bnf-yac-initialize|bnf-yac-parser|bnf-zero-or-more-dimension|browse-back-in-position-stack|browse-base-classes|browse-browser-buffer-list|browse-bs-file--cmacro|browse-bs-file|browse-bs-flags--cmacro|browse-bs-flags|browse-bs-name--cmacro|browse-bs-name|browse-bs-p--cmacro|browse-bs-p|browse-bs-pattern--cmacro|browse-bs-pattern|browse-bs-point--cmacro|browse-bs-point|browse-bs-scope--cmacro|browse-bs-scope|browse-buffer-p|browse-build-tree-obarray|browse-choose-from-browser-buffers|browse-choose-tree|browse-class-alist-for-member|browse-class-declaration-regexp|browse-class-in-tree|browse-class-name-displayed-in-member-buffer|browse-collapse-branch|browse-collapse-fn|browse-completing-read-value|browse-const-p|browse-create-tree-buffer|browse-cs-file--cmacro|browse-cs-file|browse-cs-flags--cmacro|browse-cs-flags|browse-cs-name--cmacro|browse-cs-name|browse-cs-p--cmacro|browse-cs-p|browse-cs-pattern--cmacro|browse-cs-pattern|browse-cs-point--cmacro|browse-cs-point|browse-cs-scope--cmacro|browse-cs-scope|browse-cs-source-file--cmacro|browse-cs-source-file|browse-cyclic-display-next/previous-member-list|browse-cyclic-successor-in-string-list|browse-define-p|browse-direct-base-classes|browse-display-friends-member-list|browse-display-function-member-list|browse-display-member-buffer|browse-display-member-list-for-accessor|browse-display-next-member-list|browse-display-previous-member-list|browse-display-static-functions-member-list|browse-display-static-variables-member-list|browse-display-types-member-list|browse-display-variables-member-list|browse-displaying-friends|browse-displaying-functions|browse-displaying-static-functions|browse-displaying-static-variables|browse-displaying-types|browse-displaying-variables|browse-draw-file-member-info|browse-draw-marks-fn|browse-draw-member-attributes|browse-draw-member-buffer-class-line|browse-draw-member-long-fn|browse-draw-member-regexp|browse-draw-member-short-fn|browse-draw-position-buffer|browse-draw-tree-fn|browse-electric-buffer-list|browse-electric-choose-tree|browse-electric-find-position|browse-electric-get-buffer|browse-electric-list-looper|browse-electric-list-mode|browse-electric-list-quit|browse-electric-list-select|browse-electric-list-undefined|browse-electric-position-looper|browse-electric-position-menu|browse-electric-position-mode|browse-electric-position-quit|browse-electric-position-undefined|browse-electric-select-position|browse-electric-view-buffer|browse-electric-view-position|browse-every|browse-expand-all|browse-expand-branch|browse-explicit-p|browse-extern-c-p|browse-files-list|browse-files-table|browse-fill-member-table|browse-find-class-declaration|browse-find-member-declaration|browse-find-member-definition|browse-find-pattern|browse-find-source-file|browse-for-all-trees|browse-forward-in-position-stack|browse-freeze-member-buffer|browse-frozen-tree-buffer-name|browse-function-declaration/definition-regexp|browse-gather-statistics|browse-globals-tree-p|browse-goto-visible-member/all-member-lists|browse-goto-visible-member|browse-hack-electric-buffer-menu|browse-hide-line|browse-hs-command-line-options--cmacro|browse-hs-command-line-options|browse-hs-member-table--cmacro|browse-hs-member-table|browse-hs-p--cmacro|browse-hs-p|browse-hs-unused--cmacro|browse-hs-unused|browse-hs-version--cmacro|browse-hs-version|browse-ignoring-completion-case|browse-inline-p|browse-insert-supers|browse-install-1-to-9-keys|browse-kill-member-buffers-displaying|browse-known-class-trees-buffer-list|browse-list-of-matching-members|browse-list-tree-buffers|browse-mark-all-classes|browse-marked-classes-p|browse-member-bit-set-p|browse-member-buffer-list|browse-member-buffer-object-menu|browse-member-buffer-p|browse-member-class-name-object-menu|browse-member-display-p|browse-member-info-from-point|browse-member-list-name|browse-member-mode|browse-member-mouse-2|browse-member-mouse-3|browse-member-name-object-menu|browse-member-table|browse-mouse-1-in-tree-buffer|browse-mouse-2-in-tree-buffer|browse-mouse-3-in-tree-buffer|browse-mouse-find-member|browse-move-in-position-stack|browse-move-point-to-member|browse-ms-definition-file--cmacro|browse-ms-definition-file|browse-ms-definition-pattern--cmacro|browse-ms-definition-pattern|browse-ms-definition-point--cmacro|browse-ms-definition-point|browse-ms-file--cmacro|browse-ms-file|browse-ms-flags--cmacro|browse-ms-flags|browse-ms-name--cmacro|browse-ms-name|browse-ms-p--cmacro|browse-ms-p|browse-ms-pattern--cmacro|browse-ms-pattern|browse-ms-point--cmacro|browse-ms-point|browse-ms-scope--cmacro|browse-ms-scope|browse-ms-visibility--cmacro|browse-ms-visibility|browse-mutable-p|browse-name/accessor-alist-for-class-members|browse-name/accessor-alist-for-visible-members|browse-name/accessor-alist|browse-on-class-name|browse-on-member-name|browse-output|browse-pop/switch-to-member-buffer-for-same-tree|browse-pop-from-member-to-tree-buffer|browse-pop-to-browser-buffer|browse-popup-menu|browse-position-file-name--cmacro|browse-position-file-name|browse-position-info--cmacro|browse-position-info|browse-position-name|browse-position-p--cmacro|browse-position-p|browse-position-point--cmacro|browse-position-point|browse-position-target--cmacro|browse-position-target|browse-position|browse-pp-define-regexp|browse-print-statistics-line|browse-pure-virtual-p|browse-push-position|browse-qualified-class-name|browse-read-class-name-and-go|browse-read|browse-redisplay-member-buffer|browse-redraw-marks|browse-redraw-tree|browse-remove-all-member-filters|browse-remove-class-and-kill-member-buffers|browse-remove-class-at-point|browse-rename-buffer|browse-repeat-member-search|browse-revert-tree-buffer-from-file|browse-same-tree-member-buffer-list|browse-save-class|browse-save-selective|browse-save-tree-as|browse-save-tree|browse-select-1st-to-9nth|browse-set-face|browse-set-mark-props|browse-set-member-access-visibility|browse-set-member-buffer-column-width|browse-set-tree-indentation|browse-show-displayed-class-in-tree|browse-show-file-name-at-point|browse-show-progress|browse-some-member-table|browse-some|browse-sort-tree-list|browse-statistics|browse-switch-member-buffer-to-any-class|browse-switch-member-buffer-to-base-class|browse-switch-member-buffer-to-derived-class|browse-switch-member-buffer-to-next-sibling-class|browse-switch-member-buffer-to-other-class|browse-switch-member-buffer-to-previous-sibling-class|browse-switch-member-buffer-to-sibling-class|browse-switch-to-next-member-buffer|browse-symbol-regexp|browse-tags-apropos|browse-tags-choose-class|browse-tags-complete-symbol|browse-tags-display-member-buffer|browse-tags-find-declaration-other-frame|browse-tags-find-declaration-other-window|browse-tags-find-declaration|browse-tags-find-definition-other-frame|browse-tags-find-definition-other-window|browse-tags-find-definition|browse-tags-list-members-in-file|browse-tags-loop-continue|browse-tags-next-file|browse-tags-query-replace|browse-tags-read-member\\\\+class-name|browse-tags-read-name|browse-tags-search-member-use|browse-tags-search|browse-tags-select/create-member-buffer|browse-tags-view/find-member-decl/defn|browse-tags-view-declaration-other-frame|browse-tags-view-declaration-other-window|browse-tags-view-declaration|browse-tags-view-definition-other-frame|browse-tags-view-definition-other-window|browse-tags-view-definition|browse-template-p|browse-throw-list-p|browse-toggle-base-class-display|browse-toggle-const-member-filter|browse-toggle-file-name-display|browse-toggle-inline-member-filter|browse-toggle-long-short-display|browse-toggle-mark-at-point|browse-toggle-member-attributes-display|browse-toggle-private-member-filter|browse-toggle-protected-member-filter|browse-toggle-public-member-filter|browse-toggle-pure-member-filter|browse-toggle-regexp-display|browse-toggle-virtual-member-filter|browse-tree-at-point|browse-tree-buffer-class-object-menu|browse-tree-buffer-list|browse-tree-buffer-object-menu|browse-tree-buffer-p|browse-tree-command:show-friends|browse-tree-command:show-member-functions|browse-tree-command:show-member-variables|browse-tree-command:show-static-member-functions|browse-tree-command:show-static-member-variables|browse-tree-command:show-types|browse-tree-mode|browse-tree-obarray-as-alist|browse-trim-string|browse-ts-base-classes--cmacro|browse-ts-base-classes|browse-ts-class--cmacro|browse-ts-class|browse-ts-friends--cmacro|browse-ts-friends|browse-ts-mark--cmacro|browse-ts-mark|browse-ts-member-functions--cmacro|browse-ts-member-functions|browse-ts-member-variables--cmacro|browse-ts-member-variables|browse-ts-p--cmacro|browse-ts-p|browse-ts-static-functions--cmacro|browse-ts-static-functions|browse-ts-static-variables--cmacro|browse-ts-static-variables|browse-ts-subclasses--cmacro|browse-ts-subclasses|browse-ts-types--cmacro|browse-ts-types|browse-unhide-base-classes|browse-update-member-buffer-mode-line|browse-update-tree-buffer-mode-line|browse-variable-declaration-regexp|browse-view/find-class-declaration|browse-view/find-file-and-search-pattern|browse-view/find-member-declaration/definition|browse-view/find-position|browse-view-class-declaration|browse-view-exit-fn|browse-view-file-other-frame|browse-view-member-declaration|browse-view-member-definition|browse-virtual-p|browse-width-of-drawable-area|browse-write-file-hook-fn|buffers3??|case|complete-display-matches|complete-setup|de--detect-ldf-predicate|de--detect-ldf-root-predicate|de--detect-ldf-rootonly-predicate|de--detect-scan-directory-for-project-root|de--detect-scan-directory-for-project|de--detect-scan-directory-for-rootonly-project|de--detect-stop-scan-p|de--directory-project-add-description-to-hash|de--directory-project-from-hash|de--get-inode-dir-hash|de--inode-for-dir|de--inode-get-toplevel-open-project|de--project-inode|de--put-inode-dir-hash|de-add-file|de-add-project-autoload|de-add-project-to-global-list|de-add-subproject|de-adebug-project-parent|de-adebug-project-root|de-adebug-project|de-apply-object-keymap|de-apply-preprocessor-map|de-apply-project-local-variables|de-apply-target-options|de-auto-add-to-target|de-auto-detect-in-dir|de-auto-load-project|de-buffer-belongs-to-project-p|de-buffer-belongs-to-target-p|de-buffer-documentation-files|de-buffer-header-file|de-buffer-mine|de-buffer-object|de-buffers|de-build-forms-menu|de-check-project-directory|de-choose-object|de-commit-local-variables|de-compile-project|de-compile-selected|de-compile-target|de-configuration-forms-menu|de-convert-path|de-cpp-root-project-child-p|de-cpp-root-project-list-p|de-cpp-root-project-p|de-cpp-root-project|de-create-tag-buttons|de-current-project|de-customize-current-target|de-customize-forms-menu|de-customize-project|de-debug-target|de-delete-project-from-global-list|de-delete-target|de-description|de-detect-directory-for-project|de-detect-qtest|de-directory-get-open-project|de-directory-get-toplevel-open-project|de-directory-project-cons|de-directory-project-p|de-directory-safe-p|de-dired-minor-mode|de-dirmatch-installed|de-do-dirmatch|de-documentation-files|de-documentation|de-ecb-project-paths|de-edit-file-target|de-edit-web-page|de-enable-generic-projects|de-enable-locate-on-project|de-expand-filename-impl-via-subproj|de-expand-filename-impl|de-expand-filename-local|de-expand-filename|de-file-find|de-find-file|de-find-nearest-file-line|de-find-subproject-for-directory|de-find-target|de-flush-deleted-projects|de-flush-directory-hash|de-flush-project-hash|de-get-locator-object|de-global-list-sanity-check|de-header-file|de-html-documentation-files|de-html-documentation|de-ignore-file|de-initialize-state-current-buffer|de-invoke-method)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)ed(?:e-java-classpath|e-linux-load|e-load-cache|e-load-project-file|e-make-check-version|e-make-dist|e-make-project-local-variable|e-map-all-subprojects|e-map-any-target-p|e-map-buffers|e-map-project-buffers|e-map-subprojects|e-map-target-buffers|e-map-targets|e-menu-items-build|e-menu-obj-of-class-p|e-minor-mode|e-name|e-new-target-custom|e-new-target|e-new|e-normalize-file/directory|e-object-keybindings|e-object-menu|e-object-sourcecode|e-parent-project|e-preprocessor-map|e-project-autoload-child-p|e-project-autoload-dirmatch-child-p|e-project-autoload-dirmatch-list-p|e-project-autoload-dirmatch-p|e-project-autoload-dirmatch|e-project-autoload-list-p|e-project-autoload-p|e-project-autoload|e-project-buffers|e-project-child-p|e-project-configurations-set|e-project-directory-remove-hash|e-project-forms-menu|e-project-list-p|e-project-p|e-project-placeholder-child-p|e-project-placeholder-list-p|e-project-placeholder-p|e-project-placeholder|e-project-root-directory|e-project-root|e-project-sort-targets|e-project|e-remove-file|e-rescan-toplevel|e-reset-all-buffers|e-run-target|e-save-cache|e-set-project-local-variable|e-set-project-variables|e-set|e-singular-object|e-source-paths|e-sourcecode-child-p|e-sourcecode-list-p|e-sourcecode-p|e-sourcecode|e-speedbar-compile-file-project|e-speedbar-compile-line|e-speedbar-compile-project|e-speedbar-edit-projectfile|e-speedbar-file-setup|e-speedbar-get-top-project-for-line|e-speedbar-make-distribution|e-speedbar-make-map|e-speedbar-remove-file-from-target|e-speedbar-toplevel-buttons|e-speedbar|e-subproject-p|e-subproject-relative-path|e-system-include-path|e-tag-expand|e-tag-find|e-target-buffer-in-sourcelist|e-target-buffers|e-target-child-p|e-target-forms-menu|e-target-in-project-p|e-target-list-p|e-target-name|e-target-p|e-target-parent|e-target-sourcecode|e-target|e-toplevel-project-or-nil|e-toplevel-project|e-toplevel|e-turn-on-hook|e-up-directory|e-update-version|e-upload-distribution|e-upload-html-documentation|e-vc-project-directory|e-version|e-want-any-auxiliary-files-p|e-want-any-files-p|e-want-any-source-files-p|e-want-file-auxiliary-p|e-want-file-p|e-want-file-source-p|e-web-browse-home|e-with-projectfile|e|ebug-&optional-wrapper|ebug-&rest-wrapper|ebug--called-interactively-skip|ebug--display|ebug--enter-trace|ebug--form-data-begin--cmacro|ebug--form-data-begin|ebug--form-data-end--cmacro|ebug--form-data-end|ebug--form-data-name--cmacro|ebug--form-data-name|ebug--make-form-data-entry--cmacro|ebug--make-form-data-entry|ebug--read|ebug--recursive-edit|ebug--require-cl-read|ebug--update-coverage|ebug-Continue-fast-mode|ebug-Go-nonstop-mode|ebug-Trace-fast-mode|ebug-\`|ebug-adjust-window|ebug-after-offset|ebug-after|ebug-all-defuns|ebug-backtrace|ebug-basic-spec|ebug-before-offset|ebug-before|ebug-bounce-point|ebug-changing-windows|ebug-clear-coverage|ebug-clear-form-data-entry|ebug-clear-frequency-count|ebug-compute-previous-result|ebug-continue-mode|ebug-copy-cursor|ebug-create-eval-buffer|ebug-current-windows|ebug-cursor-expressions|ebug-cursor-offsets|ebug-debugger|ebug-defining-form|ebug-delete-eval-item|ebug-empty-cursor|ebug-enter|ebug-eval-defun|ebug-eval-display-list|ebug-eval-display|ebug-eval-expression|ebug-eval-last-sexp|ebug-eval-mode|ebug-eval-print-last-sexp|ebug-eval-redisplay|ebug-eval-result-list|ebug-eval|ebug-fast-after|ebug-fast-before|ebug-find-stop-point|ebug-form-data-symbol|ebug-form|ebug-format|ebug-forms|ebug-forward-sexp|ebug-get-displayed-buffer-points|ebug-get-form-data-entry|ebug-go-mode|ebug-goto-here|ebug-help|ebug-ignore-offset|ebug-inc-offset|ebug-initialize-offsets|ebug-install-read-eval-functions|ebug-instrument-callee|ebug-instrument-function|ebug-interactive-p-name|ebug-kill-buffer|ebug-lambda-list-keywordp|ebug-last-sexp|ebug-list-form-args|ebug-list-form|ebug-make-after-form|ebug-make-before-and-after-form|ebug-make-enter-wrapper|ebug-make-form-wrapper|ebug-make-top-form-data-entry|ebug-mark-marker|ebug-mark|ebug-match-&define|ebug-match-&key|ebug-match-\xAC|ebug-match-&optional|ebug-match-&or|ebug-match-&rest|ebug-match-arg|ebug-match-body|ebug-match-colon-name|ebug-match-def-body|ebug-match-def-form|ebug-match-form|ebug-match-function|ebug-match-gate|ebug-match-lambda-expr|ebug-match-list|ebug-match-name|ebug-match-nil|ebug-match-one-spec|ebug-match-place|ebug-match-sexp|ebug-match-specs|ebug-match-string|ebug-match-sublist|ebug-match-symbol|ebug-match|ebug-menu|ebug-message|ebug-mode|ebug-modify-breakpoint|ebug-move-cursor|ebug-new-cursor|ebug-next-breakpoint|ebug-next-mode|ebug-next-token-class|ebug-no-match|ebug-on-entry|ebug-outside-excursion|ebug-overlay-arrow|ebug-pop-to-buffer|ebug-previous-result|ebug-prin1-to-string|ebug-prin1|ebug-print|ebug-read-and-maybe-wrap-form1??|ebug-read-backquote|ebug-read-comma|ebug-read-function|ebug-read-list|ebug-read-quote|ebug-read-sexp|ebug-read-storing-offsets|ebug-read-string|ebug-read-symbol|ebug-read-top-level-form|ebug-read-vector|ebug-report-error|ebug-restore-status|ebug-run-fast|ebug-run-slow|ebug-safe-eval|ebug-safe-prin1-to-string|ebug-set-breakpoint|ebug-set-buffer-points|ebug-set-conditional-breakpoint|ebug-set-cursor|ebug-set-form-data-entry|ebug-set-mode|ebug-set-windows|ebug-sexps|ebug-signal|ebug-skip-whitespace|ebug-slow-after|ebug-slow-before|ebug-sort-alist|ebug-spec-p|ebug-step-in|ebug-step-mode|ebug-step-out|ebug-step-through-mode|ebug-stop|ebug-store-after-offset|ebug-store-before-offset|ebug-storing-offsets|ebug-syntax-error|ebug-toggle-save-all-windows|ebug-toggle-save-selected-window|ebug-toggle-save-windows|ebug-toggle|ebug-top-element-required|ebug-top-element|ebug-top-level-nonstop|ebug-top-offset|ebug-trace-display|ebug-trace-mode|ebug-uninstall-read-eval-functions|ebug-unload-function|ebug-unset-breakpoint|ebug-unwrap\\\\*?|ebug-update-eval-list|ebug-var-status|ebug-view-outside|ebug-visit-eval-list|ebug-where|ebug-window-list|ebug-window-live-p|ebug-wrap-def-body|iff-3way-comparison-job|iff-3way-job|iff-abbrev-jobname|iff-abbreviate-file-name|iff-activate-mark|iff-add-slash-if-directory|iff-add-to-history|iff-ancestor-metajob|iff-append-custom-diff|iff-arrange-autosave-in-merge-jobs|iff-background-face|iff-backup|iff-barf-if-not-control-buffer|iff-buffer-live-p|iff-buffer-type|iff-buffers-internal|iff-buffers3??|iff-bury-dir-diffs-buffer|iff-calc-command-time|iff-change-saved-variable|iff-char-to-buftype|iff-check-version|iff-choose-syntax-table|iff-choose-window-setup-function-automatically|iff-cleanup-mess|iff-cleanup-meta-buffer|iff-clear-diff-vector|iff-clear-fine-diff-vector|iff-clear-fine-differences-in-one-buffer|iff-clear-fine-differences|iff-clone-buffer-for-current-diff-comparison|iff-clone-buffer-for-region-comparison|iff-clone-buffer-for-window-comparison|iff-collect-custom-diffs|iff-collect-diffs-metajob|iff-color-display-p|iff-combine-diffs|iff-comparison-metajob3|iff-compute-custom-diffs-maybe|iff-compute-toolbar-width|iff-convert-diffs-to-overlays|iff-convert-fine-diffs-to-overlays|iff-convert-standard-filename|iff-copy-A-to-B|iff-copy-A-to-C|iff-copy-B-to-A|iff-copy-B-to-C|iff-copy-C-to-A|iff-copy-C-to-B|iff-copy-diff|iff-copy-list|iff-copy-to-buffer|iff-current-file|iff-customize|iff-deactivate-mark|iff-debug-info|iff-default-suspend-function|iff-defvar-local|iff-delete-all-matches|iff-delete-overlay|iff-delete-temp-files|iff-destroy-control-frame|iff-device-type|iff-diff-at-point|iff-diff-to-diff|iff-diff3-job|iff-dir-diff-copy-file|iff-directories-command|iff-directories-internal|iff-directories|iff-directories3-command|iff-directories3|iff-directory-revisions-internal|iff-directory-revisions|iff-display-pixel-height|iff-display-pixel-width|iff-dispose-of-meta-buffer|iff-dispose-of-variant-according-to-user|iff-do-merge|iff-documentation|iff-draw-dir-diffs|iff-empty-diff-region-p|iff-empty-overlay-p|iff-event-buffer|iff-event-key|iff-event-point|iff-exec-process|iff-extract-diffs3??|iff-file-attributes|iff-file-checked-in-p|iff-file-checked-out-p|iff-file-compressed-p|iff-file-modtime|iff-file-remote-p|iff-file-size|iff-filegroup-action|iff-filename-magic-p|iff-files-command|iff-files-internal|iff-files3??|iff-fill-leading-zero|iff-find-file|iff-focus-on-regexp-matches|iff-format-bindings-of|iff-format-date|iff-forward-word|iff-frame-char-height|iff-frame-char-width|iff-frame-has-dedicated-windows|iff-frame-iconified-p|iff-frame-unsplittable-p|iff-get-buffer|iff-get-combined-region|iff-get-default-directory-name|iff-get-default-file-name|iff-get-diff-overlay-from-diff-record|iff-get-diff-overlay|iff-get-diff-posn|iff-get-diff3-group|iff-get-difference|iff-get-directory-files-under-revision|iff-get-file-eqstatus|iff-get-fine-diff-vector-from-diff-record|iff-get-fine-diff-vector|iff-get-group-buffer|iff-get-group-comparison-func|iff-get-group-merge-autostore-dir|iff-get-group-objA|iff-get-group-objB|iff-get-group-objC|iff-get-group-regexp|iff-get-lines-to-region-end|iff-get-lines-to-region-start|iff-get-meta-info|iff-get-meta-overlay-at-pos|iff-get-next-window|iff-get-region-contents|iff-get-region-size-coefficient|iff-get-selected-buffers|iff-get-session-activity-marker|iff-get-session-buffer|iff-get-session-number-at-pos|iff-get-session-objA-name|iff-get-session-objA|iff-get-session-objB-name|iff-get-session-objB|iff-get-session-objC-name|iff-get-session-objC|iff-get-session-status|iff-get-state-of-ancestor|iff-get-state-of-diff|iff-get-state-of-merge|iff-get-symbol-from-alist|iff-get-value-according-to-buffer-type|iff-get-visible-buffer-window|iff-get-window-by-clicking|iff-good-frame-under-mouse|iff-goto-word|iff-has-face-support-p|iff-has-gutter-support-p|iff-has-toolbar-support-p|iff-help-for-quick-help|iff-help-message-line-length|iff-hide-face|iff-hide-marked-sessions|iff-hide-regexp-matches|iff-highlight-diff-in-one-buffer|iff-highlight-diff|iff-in-control-buffer-p|iff-indent-help-message|iff-inferior-compare-regions|iff-insert-dirs-in-meta-buffer|iff-insert-session-activity-marker-in-meta-buffer|iff-insert-session-info-in-meta-buffer|iff-insert-session-status-in-meta-buffer|iff-install-fine-diff-if-necessary|iff-intersect-directories|iff-intersection|iff-janitor|iff-jump-to-difference-at-point|iff-jump-to-difference|iff-keep-window-config|iff-key-press-event-p|iff-kill-bottom-toolbar|iff-kill-buffer-carefully|iff-last-command-char|iff-listable-file|iff-load-version-control|iff-looks-like-combined-merge|iff-make-base-title|iff-make-bottom-toolbar|iff-make-bullet-proof-overlay|iff-make-cloned-buffer|iff-make-current-diff-overlay|iff-make-diff2-buffer|iff-make-empty-tmp-file|iff-make-fine-diffs|iff-make-frame-position|iff-make-indirect-buffer|iff-make-narrow-control-buffer-id|iff-make-new-meta-list-element|iff-make-new-meta-list-header|iff-make-or-kill-fine-diffs|iff-make-overlay|iff-make-temp-file|iff-make-wide-control-buffer-id|iff-make-wide-display|iff-mark-diff-as-space-only|iff-mark-for-hiding-at-pos|iff-mark-for-operation-at-pos|iff-mark-if-equal|iff-mark-session-for-hiding|iff-mark-session-for-operation|iff-maybe-checkout|iff-maybe-save-and-delete-merge|iff-member|iff-merge-buffers-with-ancestor|iff-merge-buffers|iff-merge-changed-from-default-p|iff-merge-command|iff-merge-directories-command|iff-merge-directories-with-ancestor-command)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)e(?:diff-merge-directories-with-ancestor|diff-merge-directories|diff-merge-directory-revisions-with-ancestor|diff-merge-directory-revisions|diff-merge-files-with-ancestor|diff-merge-files|diff-merge-job|diff-merge-metajob|diff-merge-on-startup|diff-merge-region-is-non-clash-to-skip|diff-merge-region-is-non-clash|diff-merge-revisions-with-ancestor|diff-merge-revisions|diff-merge-with-ancestor-command|diff-merge-with-ancestor-job|diff-merge-with-ancestor|diff-merge|diff-message-if-verbose|diff-meta-insert-file-info1|diff-meta-mark-equal-files|diff-meta-mode|diff-meta-session-p|diff-meta-show-patch|diff-metajob3|diff-minibuffer-with-setup-hook|diff-mode|diff-mouse-event-p|diff-move-overlay|diff-multiframe-setup-p|diff-narrow-control-frame-p|diff-narrow-job|diff-next-difference|diff-next-meta-item1??|diff-next-meta-overlay-start|diff-no-fine-diffs-p|diff-nonempty-string-p|diff-nuke-selective-display|diff-one-filegroup-metajob|diff-operate-on-marked-sessions|diff-operate-on-windows|diff-other-buffer|diff-overlay-buffer|diff-overlay-end|diff-overlay-get|diff-overlay-put|diff-overlay-start|diff-overlayp|diff-paint-background-regions-in-one-buffer|diff-paint-background-regions|diff-patch-buffer|diff-patch-file-form-meta|diff-patch-file-internal|diff-patch-file|diff-patch-job|diff-patch-metajob|diff-place-flags-in-buffer1??|diff-pop-diff|diff-position-region|diff-prepare-error-list|diff-prepare-meta-buffer|diff-previous-difference|diff-previous-meta-item1??|diff-previous-meta-overlay-start|diff-print-diff-vector|diff-problematic-session-p|diff-process-filter|diff-process-sentinel|diff-profile|diff-quit-meta-buffer|diff-quit|diff-re-merge|diff-read-event|diff-read-file-name|diff-really-quit|diff-recenter-ancestor|diff-recenter-one-window|diff-recenter|diff-redraw-directory-group-buffer|diff-redraw-registry-buffer|diff-refresh-control-frame|diff-refresh-mode-lines|diff-region-help-echo|diff-regions-internal|diff-regions-linewise|diff-regions-wordwise|diff-registry-action|diff-reload-keymap|diff-remove-flags-from-buffer|diff-replace-session-activity-marker-in-meta-buffer|diff-replace-session-status-in-meta-buffer|diff-reset-mouse|diff-restore-diff-in-merge-buffer|diff-restore-diff|diff-restore-highlighting|diff-restore-protected-variables|diff-restore-variables|diff-revert-buffers-then-recompute-diffs|diff-revision-metajob|diff-revision|diff-safe-to-quit|diff-same-contents|diff-same-file-contents-lists|diff-same-file-contents|diff-save-buffer-in-file|diff-save-buffer|diff-save-diff-region|diff-save-protected-variables|diff-save-time|diff-save-variables|diff-scroll-horizontally|diff-scroll-vertically|diff-select-difference|diff-select-lowest-window|diff-set-actual-diff-options|diff-set-diff-options|diff-set-diff-overlays-in-one-buffer|diff-set-difference|diff-set-face-pixmap|diff-set-file-eqstatus|diff-set-fine-diff-properties-in-one-buffer|diff-set-fine-diff-properties|diff-set-fine-diff-vector|diff-set-fine-overlays-for-combined-merge|diff-set-fine-overlays-in-one-buffer|diff-set-help-message|diff-set-help-overlays|diff-set-keys|diff-set-merge-mode|diff-set-meta-overlay|diff-set-overlay-face|diff-set-read-only-in-buf-A|diff-set-session-status|diff-set-state-of-all-diffs-in-all-buffers|diff-set-state-of-diff-in-all-buffers|diff-set-state-of-diff|diff-set-state-of-merge|diff-setup-control-buffer|diff-setup-control-frame|diff-setup-diff-regions3??|diff-setup-fine-diff-regions|diff-setup-keymap|diff-setup-meta-map|diff-setup-windows-default|diff-setup-windows-multiframe-compare|diff-setup-windows-multiframe-merge|diff-setup-windows-multiframe|diff-setup-windows-plain-compare|diff-setup-windows-plain-merge|diff-setup-windows-plain|diff-setup-windows|diff-setup|diff-show-all-diffs|diff-show-ancestor|diff-show-current-session-meta-buffer|diff-show-diff-output|diff-show-dir-diffs|diff-show-meta-buff-from-registry|diff-show-meta-buffer|diff-show-registry|diff-shrink-window-C|diff-skip-merge-region-if-changed-from-default-p|diff-skip-unsuitable-frames|diff-spy-after-mouse|diff-status-info|diff-strip-last-dir|diff-strip-mode-line-format|diff-submit-report|diff-suspend|diff-swap-buffers|diff-test-save-region|diff-toggle-autorefine|diff-toggle-filename-truncation|diff-toggle-help|diff-toggle-hilit|diff-toggle-ignore-case|diff-toggle-multiframe|diff-toggle-narrow-region|diff-toggle-read-only|diff-toggle-regexp-match|diff-toggle-show-clashes-only|diff-toggle-skip-changed-regions|diff-toggle-skip-similar|diff-toggle-split|diff-toggle-use-toolbar|diff-toggle-verbose-help-meta-buffer|diff-toggle-wide-display|diff-truncate-string-left|diff-unhighlight-diff-in-one-buffer|diff-unhighlight-diff|diff-unhighlight-diffs-totally-in-one-buffer|diff-unhighlight-diffs-totally|diff-union|diff-unique-buffer-name|diff-unmark-all-for-hiding|diff-unmark-all-for-operation|diff-unselect-and-select-difference|diff-unselect-difference|diff-up-meta-hierarchy|diff-update-diffs|diff-update-markers-in-dir-meta-buffer|diff-update-meta-buffer|diff-update-registry|diff-update-session-marker-in-dir-meta-buffer|diff-use-toolbar-p|diff-user-grabbed-mouse|diff-valid-difference-p|diff-verify-file-buffer|diff-verify-file-merge-buffer|diff-version|diff-visible-region|diff-whitespace-diff-region-p|diff-window-display-p|diff-window-ok-for-display|diff-window-visible-p|diff-windows-job|diff-windows-linewise|diff-windows-wordwise|diff-windows|diff-with-current-buffer|diff-with-syntax-table|diff-word-mode-job|diff-wordify|diff-write-merge-buffer-and-maybe-kill|diff-xemacs-select-frame-hook|diff|diff3-files-command|diff3|dir-merge-revisions-with-ancestor|dir-merge-revisions|dir-revisions|dirs-merge-with-ancestor|dirs-merge|dirs3??|dit-abbrevs-mode|dit-abbrevs-redefine|dit-abbrevs|dit-bookmarks|dit-kbd-macro|dit-last-kbd-macro|dit-named-kbd-macro|dit-picture|dit-tab-stops-note-changes|dit-tab-stops|dmacro-finish-edit|dmacro-fix-menu-commands|dmacro-format-keys|dmacro-insert-key|dmacro-mode|dmacro-parse-keys|dmacro-sanitize-for-string|dt-advance|dt-append|dt-backup|dt-beginning-of-line|dt-bind-function-key-default|dt-bind-function-key|dt-bind-gold-key-default|dt-bind-gold-key|dt-bind-key-default|dt-bind-key|dt-bind-standard-key|dt-bottom-check|dt-bottom|dt-change-case|dt-change-direction|dt-character|dt-check-match|dt-check-prefix|dt-check-selection|dt-copy-rectangle|dt-copy|dt-current-line|dt-cut-or-copy|dt-cut-rectangle-insert-mode|dt-cut-rectangle-overstrike-mode|dt-cut-rectangle|dt-cut|dt-default-emulation-setup|dt-default-menu-bar-update-buffers|dt-define-key|dt-delete-character|dt-delete-entire-line|dt-delete-line|dt-delete-previous-character|dt-delete-to-beginning-of-line|dt-delete-to-beginning-of-word|dt-delete-to-end-of-line|dt-delete-word|dt-display-the-time|dt-duplicate-line|dt-duplicate-word|dt-electric-helpify|dt-electric-keypad-help|dt-electric-user-keypad-help|dt-eliminate-all-tabs|dt-emulation-off|dt-emulation-on|dt-end-of-line-backward|dt-end-of-line-forward|dt-end-of-line|dt-exit|dt-fill-region|dt-find-backward|dt-find-forward|dt-find-next-backward|dt-find-next-forward|dt-find-next|dt-find|dt-form-feed-insert|dt-goto-percentage|dt-indent-or-fill-region|dt-key-not-assigned|dt-keypad-help|dt-learn|dt-line-backward|dt-line-forward|dt-line-to-bottom-of-window|dt-line-to-middle-of-window|dt-line-to-top-of-window|dt-line|dt-load-keys|dt-lowercase|dt-mark-section-wisely|dt-match-beginning|dt-match-end|dt-next-line|dt-one-word-backward|dt-one-word-forward|dt-page-backward|dt-page-forward|dt-page|dt-paragraph-backward|dt-paragraph-forward|dt-paragraph|dt-paste-rectangle-insert-mode|dt-paste-rectangle-overstrike-mode|dt-paste-rectangle|dt-previous-line|dt-quit|dt-remember|dt-replace|dt-reset|dt-restore-key|dt-scroll-line|dt-scroll-window-backward-line|dt-scroll-window-backward|dt-scroll-window-forward-line|dt-scroll-window-forward|dt-scroll-window|dt-sect-backward|dt-sect-forward|dt-sect|dt-select-default-global-map|dt-select-mode|dt-select-user-global-map|dt-select|dt-sentence-backward|dt-sentence-forward|dt-sentence|dt-set-match|dt-set-screen-width-132|dt-set-screen-width-80|dt-set-scroll-margins|dt-setup-default-bindings|dt-show-match-markers|dt-split-window|dt-substitute|dt-switch-global-maps|dt-tab-insert|dt-toggle-capitalization-of-word|dt-toggle-select|dt-top-check|dt-top|dt-undelete-character|dt-undelete-line|dt-undelete-word|dt-unset-match|dt-uppercase|dt-user-emulation-setup|dt-user-menu-bar-update-buffers|dt-window-bottom|dt-window-top|dt-with-position|dt-word-backward|dt-word-forward|dt-word|dt-y-or-n-p|help-command|ieio--check-type|ieio--class--unused-0|ieio--class-children|ieio--class-class-allocation-a|ieio--class-class-allocation-custom-group|ieio--class-class-allocation-custom-label|ieio--class-class-allocation-custom|ieio--class-class-allocation-doc|ieio--class-class-allocation-printer|ieio--class-class-allocation-protection|ieio--class-class-allocation-type|ieio--class-class-allocation-values|ieio--class-default-object-cache|ieio--class-initarg-tuples|ieio--class-options|ieio--class-parent|ieio--class-protection|ieio--class-public-a|ieio--class-public-custom-group|ieio--class-public-custom-label|ieio--class-public-custom|ieio--class-public-d|ieio--class-public-doc|ieio--class-public-printer|ieio--class-public-type|ieio--class-symbol-obarray|ieio--class-symbol|ieio--defalias|ieio--defgeneric-init-form|ieio--define-field-accessors|ieio--defmethod|ieio--object--unused-0|ieio--object-class|ieio--object-name|ieio--scoped-class|ieio--with-scoped-class|ieio-add-new-slot|ieio-attribute-to-initarg|ieio-barf-if-slot-unbound|ieio-browse|ieio-c3-candidate|ieio-c3-merge-lists|ieio-class-children-fast|ieio-class-children|ieio-class-name|ieio-class-parent|ieio-class-parents-fast|ieio-class-parents|ieio-class-precedence-bfs|ieio-class-precedence-c3|ieio-class-precedence-dfs|ieio-class-precedence-list|ieio-class-slot-name-index|ieio-class-un-autoload|ieio-copy-parents-into-subclass|ieio-custom-mode|ieio-custom-object-apply-reset|ieio-custom-toggle-hide|ieio-custom-toggle-parent|ieio-custom-widget-insert|ieio-customize-object-group|ieio-customize-object|ieio-default-eval-maybe|ieio-default-superclass-child-p|ieio-default-superclass-list-p|ieio-default-superclass-p|ieio-default-superclass|ieio-defclass-autoload|ieio-defclass|ieio-defgeneric-form-primary-only-one|ieio-defgeneric-form-primary-only|ieio-defgeneric-form|ieio-defgeneric-reset-generic-form-primary-only-one|ieio-defgeneric-reset-generic-form-primary-only|ieio-defgeneric-reset-generic-form|ieio-defgeneric|ieio-defmethod|ieio-done-customizing|ieio-edebug-prin1-to-string|ieio-eval-default-p|ieio-filter-slot-type|ieio-generic-call-primary-only|ieio-generic-call|ieio-generic-form|ieio-help-class|ieio-help-constructor|ieio-help-generic|ieio-initarg-to-attribute|ieio-instance-inheritor-child-p|ieio-instance-inheritor-list-p|ieio-instance-inheritor-p|ieio-instance-inheritor-slot-boundp|ieio-instance-inheritor|ieio-instance-tracker-child-p|ieio-instance-tracker-find|ieio-instance-tracker-list-p|ieio-instance-tracker-p|ieio-instance-tracker|ieio-list-prin1|ieio-named-child-p|ieio-named-list-p|ieio-named-p|ieio-named|ieio-object-abstract-to-value|ieio-object-class-name|ieio-object-class|ieio-object-match|ieio-object-name-string|ieio-object-name|ieio-object-p|ieio-object-set-name-string|ieio-object-value-create|ieio-object-value-get|ieio-object-value-to-abstract|ieio-oref-default|ieio-oref|ieio-oset-default|ieio-oset|ieio-override-prin1|ieio-perform-slot-validation-for-default|ieio-perform-slot-validation|ieio-persistent-child-p|ieio-persistent-convert-list-to-object|ieio-persistent-list-p|ieio-persistent-p|ieio-persistent-path-relative)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)e(?:ieio-persistent-read|ieio-persistent-save-interactive|ieio-persistent-save|ieio-persistent-slot-type-is-class-p|ieio-persistent-validate/fix-slot-value|ieio-persistent|ieio-read-customization-group|ieio-set-defaults|ieio-singleton-child-p|ieio-singleton-list-p|ieio-singleton-p|ieio-singleton|ieio-slot-name-index|ieio-slot-originating-class-p|ieio-slot-value-create|ieio-slot-value-get|ieio-specialized-key-to-generic-key|ieio-speedbar-buttons|ieio-speedbar-child-description|ieio-speedbar-child-make-tag-lines|ieio-speedbar-child-p|ieio-speedbar-create-engine|ieio-speedbar-create|ieio-speedbar-customize-line|ieio-speedbar-derive-line-path|ieio-speedbar-description|ieio-speedbar-directory-button-child-p|ieio-speedbar-directory-button-list-p|ieio-speedbar-directory-button-p|ieio-speedbar-directory-button|ieio-speedbar-expand|ieio-speedbar-file-button-child-p|ieio-speedbar-file-button-list-p|ieio-speedbar-file-button-p|ieio-speedbar-file-button|ieio-speedbar-find-nearest-object|ieio-speedbar-handle-click|ieio-speedbar-item-info|ieio-speedbar-line-path|ieio-speedbar-list-p|ieio-speedbar-make-map|ieio-speedbar-make-tag-line|ieio-speedbar-object-buttonname|ieio-speedbar-object-children|ieio-speedbar-object-click|ieio-speedbar-object-expand|ieio-speedbar-p|ieio-speedbar|ieio-unbind-method-implementations|ieio-validate-class-slot-value|ieio-validate-slot-value|ieio-version|ieio-widget-test-class-child-p|ieio-widget-test-class-list-p|ieio-widget-test-class-p|ieio-widget-test-class|ieiomt-add|ieiomt-install|ieiomt-method-list|ieiomt-next|ieiomt-sym-optimize|ighth|ldoc--message-command-p|ldoc-add-command-completions|ldoc-add-command|ldoc-display-message-no-interference-p|ldoc-display-message-p|ldoc-edit-message-commands|ldoc-message|ldoc-minibuffer-message|ldoc-mode|ldoc-pre-command-refresh-echo-area|ldoc-print-current-symbol-info|ldoc-remove-command-completions|ldoc-remove-command|ldoc-schedule-timer|lectric--after-char-pos|lectric--sort-post-self-insertion-hook|lectric-apropos|lectric-buffer-list|lectric-buffer-menu-looper|lectric-buffer-menu-mode|lectric-buffer-update-highlight|lectric-command-apropos|lectric-describe-bindings|lectric-describe-function|lectric-describe-key|lectric-describe-mode|lectric-describe-syntax|lectric-describe-variable|lectric-help-command-loop|lectric-help-ctrl-x-prefix|lectric-help-execute-extended|lectric-help-exit|lectric-help-help|lectric-help-mode|lectric-help-retain|lectric-help-undefined|lectric-helpify|lectric-icon-brace|lectric-indent-just-newline|lectric-indent-local-mode|lectric-indent-mode|lectric-indent-post-self-insert-function|lectric-layout-mode|lectric-layout-post-self-insert-function|lectric-newline-and-maybe-indent|lectric-nroff-mode|lectric-nroff-newline|lectric-pair-mode|lectric-pascal-colon|lectric-pascal-equal|lectric-pascal-hash|lectric-pascal-semi-or-dot|lectric-pascal-tab|lectric-pascal-terminate-line|lectric-perl-terminator|lectric-verilog-backward-sexp|lectric-verilog-colon|lectric-verilog-forward-sexp|lectric-verilog-semi-with-comment|lectric-verilog-semi|lectric-verilog-tab|lectric-verilog-terminate-and-indent|lectric-verilog-terminate-line|lectric-verilog-tick|lectric-view-lossage|l-get[-\\\\w]*|lide-head-show|lide-head|lint-add-required-env|lint-check-cond-form|lint-check-condition-case-form|lint-check-conditional-form|lint-check-defalias-form|lint-check-defcustom-form|lint-check-defun-form|lint-check-defvar-form|lint-check-function-form|lint-check-let-form|lint-check-macro-form|lint-check-quote-form|lint-check-setq-form|lint-clear-log|lint-current-buffer|lint-defun|lint-directory|lint-display-log|lint-env-add-env|lint-env-add-func|lint-env-add-global-var|lint-env-add-macro|lint-env-add-var|lint-env-find-func|lint-env-find-var|lint-env-macro-env|lint-env-macrop|lint-error|lint-file|lint-find-args-in-code|lint-find-autoloaded-variables|lint-find-builtin-args|lint-find-builtins|lint-find-next-top-form|lint-forms??|lint-get-args|lint-get-log-buffer|lint-get-top-forms|lint-init-env|lint-init-form|lint-initialize|lint-log-message|lint-log|lint-make-env|lint-make-top-form|lint-match-args|lint-output|lint-put-function-args|lint-scan-doc-file|lint-set-mode-line|lint-top-form-form|lint-top-form-pos|lint-top-form|lint-unbound-variable|lint-update-env|lint-warning|lisp--beginning-of-sexp|lisp--byte-code-comment|lisp--company-doc-buffer|lisp--company-doc-string|lisp--company-location|lisp--current-symbol|lisp--docstring-first-line|lisp--docstring-format-sym-doc|lisp--eval-defun-1|lisp--eval-defun|lisp--eval-last-sexp-print-value|lisp--eval-last-sexp|lisp--expect-function-p|lisp--fnsym-in-current-sexp|lisp--form-quoted-p|lisp--function-argstring|lisp--get-fnsym-args-string|lisp--get-var-docstring|lisp--highlight-function-argument|lisp--last-data-store|lisp--local-variables-1|lisp--local-variables|lisp--preceding-sexp|lisp--xref-find-apropos|lisp--xref-find-definitions|lisp--xref-identifier-completion-table|lisp--xref-identifier-file|lisp-byte-code-mode|lisp-byte-code-syntax-propertize|lisp-completion-at-point|lisp-eldoc-documentation-function|lisp-index-search|lisp-last-sexp-toggle-display|lisp-xref-find|lp--instrumented-p|lp--make-wrapper|lp-elapsed-time|lp-instrument-function|lp-instrument-list|lp-instrument-package|lp-output-insert-symname|lp-output-result|lp-pack-number|lp-profilable-p|lp-reset-all|lp-reset-function|lp-reset-list|lp-restore-all|lp-restore-function|lp-restore-list|lp-results-jump-to-definition|lp-results|lp-set-master|lp-sort-by-average-time|lp-sort-by-call-count|lp-sort-by-total-time|lp-unload-function|lp-unset-master|macs-bzr-get-version|macs-bzr-version-bzr|macs-bzr-version-dirstate|macs-index-search|macs-lisp-byte-compile-and-load|macs-lisp-byte-compile|macs-lisp-macroexpand|macs-lisp-mode|macs-lock--can-auto-unlock|macs-lock--exit-locked-buffer|macs-lock--kill-buffer-query-functions|macs-lock--kill-emacs-hook|macs-lock--kill-emacs-query-functions|macs-lock--set-mode|macs-lock-live-process-p|macs-lock-mode|macs-lock-unload-function|macs-repository-get-version|macs-session-filename|macs-session-save|merge-abort|merge-auto-advance|merge-buffers-with-ancestor|merge-buffers|merge-combine-versions-edit|merge-combine-versions-internal|merge-combine-versions-register|merge-combine-versions|merge-command-exit|merge-compare-buffers|merge-convert-diffs-to-markers|merge-copy-as-kill-A|merge-copy-as-kill-B|merge-copy-modes|merge-count-matches-string|merge-default-A|merge-default-B|merge-define-key-if-possible|merge-defvar-local|merge-edit-mode|merge-execute-line|merge-extract-diffs3??|merge-fast-mode|merge-file-names|merge-files-command|merge-files-exit|merge-files-internal|merge-files-remote|merge-files-with-ancestor-command|merge-files-with-ancestor-internal|merge-files-with-ancestor-remote|merge-files-with-ancestor|merge-files|merge-find-difference-A|merge-find-difference-B|merge-find-difference-merge|merge-find-difference1??|merge-force-define-key|merge-get-diff3-group|merge-goto-line|merge-handle-local-variables|merge-hash-string-into-string|merge-insert-A|merge-insert-B|merge-join-differences|merge-jump-to-difference|merge-line-number-in-buf|merge-line-numbers|merge-make-auto-save-file-name|merge-make-diff-list|merge-make-diff3-list|merge-make-temp-file|merge-mark-difference|merge-merge-directories|merge-mode|merge-new-flags|merge-next-difference|merge-one-line-window|merge-operate-on-windows|merge-place-flags-in-buffer1??|merge-position-region|merge-prepare-error-list|merge-previous-difference|merge-protect-metachars|merge-query-and-call|merge-query-save-buffer|merge-query-write-file|merge-quit|merge-read-file-name|merge-really-quit|merge-recenter|merge-refresh-mode-line|merge-remember-buffer-characteristics|merge-remote-exit|merge-remove-flags-in-buffer|merge-restore-buffer-characteristics|merge-restore-variables|merge-revision-with-ancestor-internal|merge-revisions-internal|merge-revisions-with-ancestor|merge-revisions|merge-save-variables|merge-scroll-down|merge-scroll-left|merge-scroll-reset|merge-scroll-right|merge-scroll-up|merge-select-A-edit|merge-select-A|merge-select-B-edit|merge-select-B|merge-select-difference|merge-select-prefer-Bs|merge-select-version|merge-set-combine-template|merge-set-combine-versions-template|merge-set-keys|merge-set-merge-mode|merge-setup-fixed-keymaps|merge-setup-windows|merge-setup-with-ancestor|merge-setup|merge-show-file-name|merge-skip-prefers|merge-split-difference|merge-trim-difference|merge-unique-buffer-name|merge-unselect-and-select-difference|merge-unselect-difference|merge-unslashify-name|merge-validate-difference|merge-verify-file-buffer|merge-write-and-delete|n/disable-command|nable-flow-control-on|nable-flow-control|ncode-big5-char|ncode-coding-char|ncode-composition-components|ncode-composition-rule|ncode-hex-string|ncode-hz-buffer|ncode-hz-region|ncode-sjis-char|ncode-time-value|ncoded-string-description|nd-kbd-macro|nd-of-buffer-other-window|nd-of-icon-defun|nd-of-paragraph-text|nd-of-sexp|nd-of-thing|nd-of-visible-line|nd-of-visual-line|ndp|nlarge-window-horizontally|nlarge-window|nriched-after-change-major-mode|nriched-before-change-major-mode|nriched-decode-background|nriched-decode-display-prop|nriched-decode-foreground|nriched-decode|nriched-encode-other-face|nriched-encode|nriched-face-ans|nriched-get-file-width|nriched-handle-display-prop|nriched-insert-indentation|nriched-make-annotation|nriched-map-property-regions|nriched-mode-map|nriched-mode|nriched-next-annotation|nriched-remove-header|pa--decode-coding-string|pa--derived-mode-p|pa--encode-coding-string|pa--find-coding-system-for-mime-charset|pa--insert-keys|pa--key-list-revert-buffer|pa--key-widget-action|pa--key-widget-button-face-get|pa--key-widget-help-echo|pa--key-widget-value-create|pa--list-keys|pa--marked-keys|pa--read-signature-type|pa--select-keys|pa--select-safe-coding-system|pa--show-key|pa-decrypt-armor-in-region|pa-decrypt-file|pa-decrypt-region|pa-delete-keys|pa-dired-do-decrypt|pa-dired-do-encrypt|pa-dired-do-sign|pa-dired-do-verify|pa-display-error|pa-display-info|pa-display-verify-result|pa-encrypt-file|pa-encrypt-region|pa-exit-buffer|pa-export-keys|pa-file--file-name-regexp-set|pa-file-disable|pa-file-enable|pa-file-find-file-hook|pa-file-handler|pa-file-name-regexp-update|pa-global-mail-mode|pa-import-armor-in-region|pa-import-keys-region|pa-import-keys|pa-info-mode|pa-insert-keys|pa-key-list-mode|pa-key-mode|pa-list-keys|pa-list-secret-keys|pa-mail-decrypt|pa-mail-encrypt|pa-mail-import-keys|pa-mail-mode|pa-mail-sign|pa-mail-verify|pa-mark-key|pa-passphrase-callback-function|pa-progress-callback-function|pa-read-file-name|pa-select-keys|pa-sign-file|pa-sign-region|pa-unmark-key|pa-verify-cleartext-in-region|pa-verify-file|pa-verify-region|patch-buffer|patch|pg--args-from-sig-notations|pg--check-error-for-decrypt|pg--clear-string|pg--decode-coding-string|pg--decode-hexstring|pg--decode-percent-escape|pg--decode-quotedstring|pg--encode-coding-string|pg--gv-nreverse|pg--import-keys-1|pg--list-keys-1|pg--make-sub-key-1|pg--make-temp-file|pg--process-filter|pg--prompt-GET_BOOL-untrusted_key\\\\.override|pg--prompt-GET_BOOL|pg--start|pg--status-\\\\*SIG|pg--status-BADARMOR|pg--status-BADSIG|pg--status-DECRYPTION_FAILED|pg--status-DECRYPTION_OKAY|pg--status-DELETE_PROBLEM|pg--status-ENC_TO|pg--status-ERRSIG|pg--status-EXPKEYSIG|pg--status-EXPSIG|pg--status-GET_BOOL|pg--status-GET_HIDDEN|pg--status-GET_LINE|pg--status-GOODSIG|pg--status-IMPORTED|pg--status-IMPORT_OK|pg--status-IMPORT_PROBLEM|pg--status-IMPORT_RES|pg--status-INV_RECP|pg--status-INV_SGNR|pg--status-KEYEXPIRED|pg--status-KEYREVOKED|pg--status-KEY_CREATED|pg--status-KEY_NOT_CREATED|pg--status-NEED_PASSPHRASE|pg--status-NEED_PASSPHRASE_PIN|pg--status-NEED_PASSPHRASE_SYM|pg--status-NODATA)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)e(?:pg--status-NOTATION_DATA|pg--status-NOTATION_NAME|pg--status-NO_PUBKEY|pg--status-NO_RECP|pg--status-NO_SECKEY|pg--status-NO_SGNR|pg--status-POLICY_URL|pg--status-PROGRESS|pg--status-REVKEYSIG|pg--status-SIG_CREATED|pg--status-TRUST_FULLY|pg--status-TRUST_MARGINAL|pg--status-TRUST_NEVER|pg--status-TRUST_ULTIMATE|pg--status-TRUST_UNDEFINED|pg--status-UNEXPECTED|pg--status-USERID_HINT|pg--status-VALIDSIG|pg--time-from-seconds|pg-cancel|pg-check-configuration|pg-config--compare-version|pg-config--parse-version|pg-configuration|pg-context--make|pg-context-armor--cmacro|pg-context-armor|pg-context-cipher-algorithm--cmacro|pg-context-cipher-algorithm|pg-context-compress-algorithm--cmacro|pg-context-compress-algorithm|pg-context-digest-algorithm--cmacro|pg-context-digest-algorithm|pg-context-edit-callback--cmacro|pg-context-edit-callback|pg-context-error-output--cmacro|pg-context-error-output|pg-context-home-directory--cmacro|pg-context-home-directory|pg-context-include-certs--cmacro|pg-context-include-certs|pg-context-operation--cmacro|pg-context-operation|pg-context-output-file--cmacro|pg-context-output-file|pg-context-passphrase-callback--cmacro|pg-context-passphrase-callback|pg-context-pinentry-mode--cmacro|pg-context-pinentry-mode|pg-context-process--cmacro|pg-context-process|pg-context-program--cmacro|pg-context-program|pg-context-progress-callback--cmacro|pg-context-progress-callback|pg-context-protocol--cmacro|pg-context-protocol|pg-context-result--cmacro|pg-context-result-for|pg-context-result|pg-context-set-armor|pg-context-set-passphrase-callback|pg-context-set-progress-callback|pg-context-set-result-for|pg-context-set-signers|pg-context-set-textmode|pg-context-sig-notations--cmacro|pg-context-sig-notations|pg-context-signers--cmacro|pg-context-signers|pg-context-textmode--cmacro|pg-context-textmode|pg-data-file--cmacro|pg-data-file|pg-data-string--cmacro|pg-data-string|pg-decode-dn|pg-decrypt-file|pg-decrypt-string|pg-delete-keys|pg-delete-output-file|pg-dn-from-string|pg-edit-key|pg-encrypt-file|pg-encrypt-string|pg-error-to-string|pg-errors-to-string|pg-expand-group|pg-export-keys-to-file|pg-export-keys-to-string|pg-generate-key-from-file|pg-generate-key-from-string|pg-import-keys-from-file|pg-import-keys-from-server|pg-import-keys-from-string|pg-import-result-considered--cmacro|pg-import-result-considered|pg-import-result-imported--cmacro|pg-import-result-imported-rsa--cmacro|pg-import-result-imported-rsa|pg-import-result-imported|pg-import-result-imports--cmacro|pg-import-result-imports|pg-import-result-new-revocations--cmacro|pg-import-result-new-revocations|pg-import-result-new-signatures--cmacro|pg-import-result-new-signatures|pg-import-result-new-sub-keys--cmacro|pg-import-result-new-sub-keys|pg-import-result-new-user-ids--cmacro|pg-import-result-new-user-ids|pg-import-result-no-user-id--cmacro|pg-import-result-no-user-id|pg-import-result-not-imported--cmacro|pg-import-result-not-imported|pg-import-result-secret-imported--cmacro|pg-import-result-secret-imported|pg-import-result-secret-read--cmacro|pg-import-result-secret-read|pg-import-result-secret-unchanged--cmacro|pg-import-result-secret-unchanged|pg-import-result-to-string|pg-import-result-unchanged--cmacro|pg-import-result-unchanged|pg-import-status-fingerprint--cmacro|pg-import-status-fingerprint|pg-import-status-new--cmacro|pg-import-status-new|pg-import-status-reason--cmacro|pg-import-status-reason|pg-import-status-secret--cmacro|pg-import-status-secret|pg-import-status-signature--cmacro|pg-import-status-signature|pg-import-status-sub-key--cmacro|pg-import-status-sub-key|pg-import-status-user-id--cmacro|pg-import-status-user-id|pg-key-owner-trust--cmacro|pg-key-owner-trust|pg-key-signature-class--cmacro|pg-key-signature-class|pg-key-signature-creation-time--cmacro|pg-key-signature-creation-time|pg-key-signature-expiration-time--cmacro|pg-key-signature-expiration-time|pg-key-signature-exportable-p--cmacro|pg-key-signature-exportable-p|pg-key-signature-key-id--cmacro|pg-key-signature-key-id|pg-key-signature-pubkey-algorithm--cmacro|pg-key-signature-pubkey-algorithm|pg-key-signature-user-id--cmacro|pg-key-signature-user-id|pg-key-signature-validity--cmacro|pg-key-signature-validity|pg-key-sub-key-list--cmacro|pg-key-sub-key-list|pg-key-user-id-list--cmacro|pg-key-user-id-list|pg-list-keys|pg-make-context|pg-make-data-from-file--cmacro|pg-make-data-from-file|pg-make-data-from-string--cmacro|pg-make-data-from-string|pg-make-import-result--cmacro|pg-make-import-result|pg-make-import-status--cmacro|pg-make-import-status|pg-make-key--cmacro|pg-make-key-signature--cmacro|pg-make-key-signature|pg-make-key|pg-make-new-signature--cmacro|pg-make-new-signature|pg-make-sig-notation--cmacro|pg-make-sig-notation|pg-make-signature--cmacro|pg-make-signature|pg-make-sub-key--cmacro|pg-make-sub-key|pg-make-user-id--cmacro|pg-make-user-id|pg-new-signature-class--cmacro|pg-new-signature-class|pg-new-signature-creation-time--cmacro|pg-new-signature-creation-time|pg-new-signature-digest-algorithm--cmacro|pg-new-signature-digest-algorithm|pg-new-signature-fingerprint--cmacro|pg-new-signature-fingerprint|pg-new-signature-pubkey-algorithm--cmacro|pg-new-signature-pubkey-algorithm|pg-new-signature-to-string|pg-new-signature-type--cmacro|pg-new-signature-type|pg-passphrase-callback-function|pg-read-output|pg-receive-keys|pg-reset|pg-sig-notation-critical--cmacro|pg-sig-notation-critical|pg-sig-notation-human-readable--cmacro|pg-sig-notation-human-readable|pg-sig-notation-name--cmacro|pg-sig-notation-name|pg-sig-notation-value--cmacro|pg-sig-notation-value|pg-sign-file|pg-sign-keys|pg-sign-string|pg-signature-class--cmacro|pg-signature-class|pg-signature-creation-time--cmacro|pg-signature-creation-time|pg-signature-digest-algorithm--cmacro|pg-signature-digest-algorithm|pg-signature-expiration-time--cmacro|pg-signature-expiration-time|pg-signature-fingerprint--cmacro|pg-signature-fingerprint|pg-signature-key-id--cmacro|pg-signature-key-id|pg-signature-notations--cmacro|pg-signature-notations|pg-signature-pubkey-algorithm--cmacro|pg-signature-pubkey-algorithm|pg-signature-status--cmacro|pg-signature-status|pg-signature-to-string|pg-signature-validity--cmacro|pg-signature-validity|pg-signature-version--cmacro|pg-signature-version|pg-start-decrypt|pg-start-delete-keys|pg-start-edit-key|pg-start-encrypt|pg-start-export-keys|pg-start-generate-key|pg-start-import-keys|pg-start-receive-keys|pg-start-sign-keys|pg-start-sign|pg-start-verify|pg-sub-key-algorithm--cmacro|pg-sub-key-algorithm|pg-sub-key-capability--cmacro|pg-sub-key-capability|pg-sub-key-creation-time--cmacro|pg-sub-key-creation-time|pg-sub-key-expiration-time--cmacro|pg-sub-key-expiration-time|pg-sub-key-fingerprint--cmacro|pg-sub-key-fingerprint|pg-sub-key-id--cmacro|pg-sub-key-id|pg-sub-key-length--cmacro|pg-sub-key-length|pg-sub-key-secret-p--cmacro|pg-sub-key-secret-p|pg-sub-key-validity--cmacro|pg-sub-key-validity|pg-user-id-signature-list--cmacro|pg-user-id-signature-list|pg-user-id-string--cmacro|pg-user-id-string|pg-user-id-validity--cmacro|pg-user-id-validity|pg-verify-file|pg-verify-result-to-string|pg-verify-string|pg-wait-for-completion|pg-wait-for-status|qualp|rc-active-buffer|rc-add-dangerous-host|rc-add-default-channel|rc-add-entry-to-list|rc-add-fool|rc-add-keyword|rc-add-pal|rc-add-query|rc-add-scroll-to-bottom|rc-add-server-user|rc-add-timestamp|rc-add-to-input-ring|rc-all-buffer-names|rc-already-logged-in|rc-arrange-session-in-multiple-windows|rc-auto-query|rc-autoaway-mode|rc-autojoin-add|rc-autojoin-after-ident|rc-autojoin-channels-delayed|rc-autojoin-channels|rc-autojoin-disable|rc-autojoin-enable|rc-autojoin-mode|rc-autojoin-remove|rc-away-time|rc-banlist-finished|rc-banlist-store|rc-banlist-update|rc-beep-on-match|rc-beg-of-input-line|rc-bol|rc-browse-emacswiki-lisp|rc-browse-emacswiki|rc-buffer-filter|rc-buffer-list-with-nick|rc-buffer-list|rc-buffer-visible|rc-button-add-button|rc-button-add-buttons-1|rc-button-add-buttons|rc-button-add-face|rc-button-add-nickname-buttons|rc-button-beats-to-time|rc-button-click-button|rc-button-describe-symbol|rc-button-disable|rc-button-enable|rc-button-mode|rc-button-next-function|rc-button-next|rc-button-press-button|rc-button-previous|rc-button-remove-old-buttons|rc-button-setup|rc-call-hooks|rc-cancel-timer|rc-canonicalize-server-name|rc-capab-identify-mode|rc-change-user-nickname|rc-channel-begin-receiving-names|rc-channel-end-receiving-names|rc-channel-list|rc-channel-names|rc-channel-p|rc-channel-receive-names|rc-channel-user-admin--cmacro|rc-channel-user-admin-p|rc-channel-user-admin|rc-channel-user-halfop--cmacro|rc-channel-user-halfop-p|rc-channel-user-halfop|rc-channel-user-last-message-time--cmacro|rc-channel-user-last-message-time|rc-channel-user-op--cmacro|rc-channel-user-op-p|rc-channel-user-op|rc-channel-user-owner--cmacro|rc-channel-user-owner-p|rc-channel-user-owner|rc-channel-user-p--cmacro|rc-channel-user-p|rc-channel-user-voice--cmacro|rc-channel-user-voice-p|rc-channel-user-voice|rc-clear-input-ring|rc-client-info|rc-cmd-AMSG|rc-cmd-APPENDTOPIC|rc-cmd-AT|rc-cmd-AWAY|rc-cmd-BANLIST|rc-cmd-BL|rc-cmd-BYE|rc-cmd-CHANNEL|rc-cmd-CLEAR|rc-cmd-CLEARTOPIC|rc-cmd-COUNTRY|rc-cmd-CTCP|rc-cmd-DATE|rc-cmd-DCC|rc-cmd-DEOP|rc-cmd-DESCRIBE|rc-cmd-EXIT|rc-cmd-GAWAY|rc-cmd-GQ|rc-cmd-GQUIT|rc-cmd-H|rc-cmd-HELP|rc-cmd-IDLE|rc-cmd-IGNORE|rc-cmd-J|rc-cmd-JOIN|rc-cmd-KICK|rc-cmd-LASTLOG|rc-cmd-LEAVE|rc-cmd-LIST|rc-cmd-LOAD|rc-cmd-M|rc-cmd-MASSUNBAN|rc-cmd-ME'S|rc-cmd-ME|rc-cmd-MODE|rc-cmd-MSG|rc-cmd-MUB|rc-cmd-N|rc-cmd-NAMES|rc-cmd-NICK|rc-cmd-NOTICE|rc-cmd-NOTIFY|rc-cmd-OPS??|rc-cmd-PART|rc-cmd-PING|rc-cmd-Q|rc-cmd-QUERY|rc-cmd-QUIT|rc-cmd-QUOTE|rc-cmd-RECONNECT|rc-cmd-SAY|rc-cmd-SERVER|rc-cmd-SET|rc-cmd-SIGNOFF|rc-cmd-SM|rc-cmd-SQUERY|rc-cmd-SV|rc-cmd-T|rc-cmd-TIME|rc-cmd-TOPIC|rc-cmd-UNIGNORE|rc-cmd-VAR|rc-cmd-VARIABLE|rc-cmd-WHOAMI|rc-cmd-WHOIS|rc-cmd-WHOLEFT|rc-cmd-WI|rc-cmd-WL|rc-cmd-default|rc-cmd-ezb|rc-coding-system-for-target|rc-command-indicator|rc-command-name|rc-command-no-process-p|rc-command-symbol|rc-complete-word-at-point|rc-complete-word|rc-completion-mode|rc-compute-full-name|rc-compute-nick|rc-compute-port|rc-compute-server|rc-connection-established|rc-controls-highlight|rc-controls-interpret|rc-controls-propertize|rc-controls-strip|rc-create-imenu-index|rc-ctcp-query-ACTION|rc-ctcp-query-CLIENTINFO|rc-ctcp-query-DCC|rc-ctcp-query-ECHO|rc-ctcp-query-FINGER|rc-ctcp-query-PING|rc-ctcp-query-TIME|rc-ctcp-query-USERINFO|rc-ctcp-query-VERSION|rc-ctcp-reply-CLIENTINFO|rc-ctcp-reply-ECHO|rc-ctcp-reply-FINGER|rc-ctcp-reply-PING|rc-ctcp-reply-TIME|rc-ctcp-reply-VERSION|rc-current-network|rc-current-nick-p|rc-current-nick|rc-current-time|rc-dcc-mode|rc-debug-missing-hooks|rc-decode-coding-string|rc-decode-parsed-server-response|rc-decode-string-from-target|rc-default-server-handler|rc-default-target|rc-define-catalog-entry|rc-define-catalog|rc-define-minor-mode|rc-delete-dangerous-host|rc-delete-default-channel|rc-delete-dups|rc-delete-fool|rc-delete-if|rc-delete-keyword|rc-delete-pal|rc-delete-query|rc-determine-network|rc-determine-parameters|rc-directory-writable-p|rc-display-command|rc-display-error-notice|rc-display-line-1|rc-display-line|rc-display-message-highlight|rc-display-message|rc-display-msg|rc-display-prompt|rc-display-server-message|rc-downcase|rc-echo-notice-in-active-buffer|rc-echo-notice-in-active-non-server-buffer|rc-echo-notice-in-default-buffer|rc-echo-notice-in-first-user-buffer|rc-echo-notice-in-minibuffer|rc-echo-notice-in-server-buffer|rc-echo-notice-in-target-buffer|rc-echo-notice-in-user-and-target-buffers|rc-echo-notice-in-user-buffers|rc-echo-timestamp|rc-emacs-time-to-erc-time|rc-encode-coding-string|rc-end-of-input-line|rc-ensure-channel-name|rc-error|rc-extract-command-from-line|rc-extract-nick|rc-ezb-add-session|rc-ezb-end-of-session-list|rc-ezb-get-login|rc-ezb-identify)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)er(?:c-ezb-init-session-list|c-ezb-initialize|c-ezb-lookup-action|c-ezb-notice-autodetect|c-ezb-select-session|c-ezb-select|c-faces-in|c-fill-disable|c-fill-enable|c-fill-mode|c-fill-regarding-timestamp|c-fill-static|c-fill-variable|c-fill|c-find-file|c-find-parsed-property|c-find-script-file|c-format-@nick|c-format-away-status|c-format-channel-modes|c-format-lag-time|c-format-message|c-format-my-nick|c-format-network|c-format-nick|c-format-privmessage|c-format-target-and/or-network|c-format-target-and/or-server|c-format-target|c-format-timestamp|c-function-arglist|c-generate-new-buffer-name|c-get-arglist|c-get-bg-color-face|c-get-buffer-create|c-get-buffer|c-get-channel-mode-from-keypress|c-get-channel-nickname-alist|c-get-channel-nickname-list|c-get-channel-user-list|c-get-channel-user|c-get-fg-color-face|c-get-hook|c-get-parsed-vector-nick|c-get-parsed-vector-type|c-get-parsed-vector|c-get-server-nickname-alist|c-get-server-nickname-list|c-get-server-user|c-get-user-mode-prefix|c-get|c-go-to-log-matches-buffer|c-grab-region|c-group-list|c-handle-irc-url|c-handle-login|c-handle-parsed-server-response|c-handle-unknown-server-response|c-handle-user-status-change|c-hide-current-message-p|c-hide-fools|c-hide-timestamps|c-highlight-error|c-highlight-notice|c-identd-mode|c-identd-start|c-identd-stop|c-ignored-reply-p|c-ignored-user-p|c-imenu-setup|c-initialize-log-marker|c-input-action|c-input-message|c-input-ring-setup|c-insert-aligned|c-insert-mode-command|c-insert-timestamp-left-and-right|c-insert-timestamp-left|c-insert-timestamp-right|c-invite-only-mode|c-irccontrols-disable|c-irccontrols-enable|c-irccontrols-mode|c-is-message-ctcp-and-not-action-p|c-is-message-ctcp-p|c-is-valid-nick-p|c-ison-p|c-iswitchb|c-join-channel|c-keep-place-disable|c-keep-place-enable|c-keep-place-mode|c-keep-place|c-kill-buffer-function|c-kill-channel|c-kill-input|c-kill-query-buffers|c-kill-server|c-list-button|c-list-disable|c-list-enable|c-list-handle-322|c-list-insert-item|c-list-install-322-handler|c-list-join|c-list-kill|c-list-make-string|c-list-match|c-list-menu-mode|c-list-menu-sort-by-column|c-list-mode|c-list-revert|c-list|c-load-irc-script-lines|c-load-irc-script|c-load-script|c-log-aux|c-log-irc-protocol|c-log-matches-come-back|c-log-matches-make-buffer|c-log-matches|c-log-mode|c-log|c-logging-enabled|c-login|c-lurker-cleanup|c-lurker-initialize|c-lurker-maybe-trim|c-lurker-p|c-lurker-update-status|c-make-message-variable-name|c-make-mode-line-buffer-name|c-make-notice|c-make-obsolete-variable|c-make-obsolete|c-make-read-only|c-match-current-nick-p|c-match-dangerous-host-p|c-match-directed-at-fool-p|c-match-disable|c-match-enable|c-match-fool-p|c-match-keyword-p|c-match-message|c-match-mode|c-match-pal-p|c-member-if|c-member-ignore-case|c-menu-add|c-menu-disable|c-menu-enable|c-menu-mode|c-menu-remove|c-menu|c-message-english-PART|c-message-target|c-message-type-member|c-message|c-migrate-modules|c-modes??|c-modified-channels-display|c-modified-channels-object|c-modified-channels-remove-buffer|c-modified-channels-update|c-move-to-prompt-disable|c-move-to-prompt-enable|c-move-to-prompt-mode|c-move-to-prompt-setup|c-move-to-prompt|c-munge-invisibility-spec|c-netsplit-JOIN|c-netsplit-MODE|c-netsplit-QUIT|c-netsplit-disable|c-netsplit-enable|c-netsplit-install-message-catalogs|c-netsplit-mode|c-netsplit-timer|c-network-name|c-network|c-networks-disable|c-networks-enable|c-networks-mode|c-next-command|c-nick-at-point|c-nick-equal-p|c-nick-popup|c-nickname-in-use|c-nickserv-identify-mode|c-nickserv-identify|c-noncommands-disable|c-noncommands-enable|c-noncommands-mode|c-normalize-port|c-notifications-mode|c-notify-mode|c-occur|c-once-with-server-event|c-open-server-buffer-p|c-open-tls-stream|c-open|c-page-mode|c-parse-modes|c-parse-prefix|c-parse-server-response|c-parse-user|c-part-from-channel|c-part-reason-normal|c-part-reason-various|c-part-reason-zippy|c-pcomplete-disable|c-pcomplete-enable|c-pcomplete-mode|c-pcomplete|c-pcompletions-at-point|c-popup-input-buffer|c-port-equal|c-port-to-string|c-ports-list|c-previous-command|c-process-away|c-process-ctcp-query|c-process-ctcp-reply|c-process-input-line|c-process-script-line|c-process-sentinel-1|c-process-sentinel-2|c-process-sentinel|c-prompt|c-propertize|c-put-text-properties|c-put-text-property|c-query-buffer-p|c-query|c-quit/part-reason-default|c-quit-reason-normal|c-quit-reason-various|c-quit-reason-zippy|c-quit-server|c-readonly-disable|c-readonly-enable|c-readonly-mode|c-remove-channel-member|c-remove-channel-users??|c-remove-current-channel-member|c-remove-entry-from-list|c-remove-if-not|c-remove-server-user|c-remove-text-properties-region|c-remove-user|c-replace-current-command|c-replace-match-subexpression-in-string|c-replace-mode|c-replace-regexp-in-string|c-response-p--cmacro|c-response-p|c-response\\\\.command--cmacro|c-response\\\\.command-args--cmacro|c-response\\\\.command-args|c-response\\\\.command|c-response\\\\.contents--cmacro|c-response\\\\.contents|c-response\\\\.sender--cmacro|c-response\\\\.sender|c-response\\\\.unparsed--cmacro|c-response\\\\.unparsed|c-restore-text-properties|c-retrieve-catalog-entry|c-ring-disable|c-ring-enable|c-ring-mode|c-save-buffer-in-logs|c-scroll-to-bottom|c-scrolltobottom-disable|c-scrolltobottom-enable|c-scrolltobottom-mode|c-sec-to-time|c-seconds-to-string|c-select-read-args|c-select-startup-file|c-select|c-send-action|c-send-command|c-send-ctcp-message|c-send-ctcp-notice|c-send-current-line|c-send-distinguish-noncommands|c-send-input-line|c-send-input|c-send-line|c-send-message|c-server-001|c-server-002|c-server-003|c-server-004|c-server-005|c-server-221|c-server-250|c-server-251|c-server-252|c-server-253|c-server-254|c-server-255|c-server-256|c-server-257|c-server-258|c-server-259|c-server-265|c-server-266|c-server-275|c-server-290|c-server-301|c-server-303|c-server-305|c-server-306|c-server-307|c-server-311|c-server-312|c-server-313|c-server-314|c-server-315|c-server-317|c-server-318|c-server-319|c-server-320|c-server-321-message|c-server-321|c-server-322-message|c-server-322|c-server-323|c-server-324|c-server-328|c-server-329|c-server-330|c-server-331|c-server-332|c-server-333|c-server-341|c-server-352|c-server-353|c-server-366|c-server-367|c-server-368|c-server-369|c-server-371|c-server-372|c-server-374|c-server-375|c-server-376|c-server-377|c-server-378|c-server-379|c-server-391|c-server-401|c-server-403|c-server-404|c-server-405|c-server-406|c-server-412|c-server-421|c-server-422|c-server-431|c-server-432|c-server-433|c-server-437|c-server-442|c-server-445|c-server-446|c-server-451|c-server-461|c-server-462|c-server-463|c-server-464|c-server-465|c-server-474|c-server-475|c-server-477|c-server-481|c-server-482|c-server-483|c-server-484|c-server-485|c-server-491|c-server-501|c-server-502|c-server-671|c-server-ERROR|c-server-INVITE|c-server-JOIN|c-server-KICK|c-server-MODE|c-server-MOTD|c-server-NICK|c-server-NOTICE|c-server-PART|c-server-PING|c-server-PONG|c-server-PRIVMSG|c-server-QUIT|c-server-TOPIC|c-server-WALLOPS|c-server-buffer-live-p|c-server-buffer-p|c-server-buffer|c-server-connect|c-server-filter-function|c-server-join-channel|c-server-process-alive|c-server-reconnect-p|c-server-reconnect|c-server-select|c-server-send-ping|c-server-send-queue|c-server-send|c-server-setup-periodical-ping|c-server-user-buffers--cmacro|c-server-user-buffers|c-server-user-full-name--cmacro|c-server-user-full-name|c-server-user-host--cmacro|c-server-user-host|c-server-user-info--cmacro|c-server-user-info|c-server-user-login--cmacro|c-server-user-login|c-server-user-nickname--cmacro|c-server-user-nickname|c-server-user-p--cmacro|c-server-user-p|c-services-mode|c-set-active-buffer|c-set-channel-key|c-set-channel-limit|c-set-current-nick|c-set-initial-user-mode|c-set-modes|c-set-network-name|c-set-topic|c-set-write-file-functions|c-setup-buffer|c-shorten-server-name|c-show-timestamps|c-smiley-disable|c-smiley-enable|c-smiley-mode|c-smiley|c-sort-channel-users-alphabetically|c-sort-channel-users-by-activity|c-sort-strings|c-sound-mode|c-speedbar-browser|c-spelling-mode|c-split-line|c-split-multiline-safe|c-ssl|c-stamp-disable|c-stamp-enable|c-stamp-mode|c-string-invisible-p|c-string-no-properties|c-string-to-emacs-time|c-string-to-port|c-subseq|c-time-diff|c-time-gt|c-timestamp-mode|c-timestamp-offset|c-tls|c-toggle-channel-mode|c-toggle-ctcp-autoresponse|c-toggle-debug-irc-protocol|c-toggle-flood-control|c-toggle-interpret-controls|c-toggle-timestamps|c-track-add-to-mode-line|c-track-disable|c-track-enable|c-track-face-priority|c-track-find-face|c-track-get-active-buffer|c-track-get-buffer-window|c-track-minor-mode-maybe|c-track-minor-mode|c-track-mode|c-track-modified-channels|c-track-remove-from-mode-line|c-track-shorten-names|c-track-sort-by-activest|c-track-sort-by-importance|c-track-switch-buffer|c-trim-string|c-truncate-buffer-to-size|c-truncate-buffer|c-truncate-mode|c-unique-channel-names|c-unique-substring-1|c-unique-substrings|c-unmorse-disable|c-unmorse-enable|c-unmorse-mode|c-unmorse|c-unset-network-name|c-upcase-first-word|c-update-channel-key|c-update-channel-limit|c-update-channel-member|c-update-channel-topic|c-update-current-channel-member|c-update-mode-line-buffer|c-update-mode-line|c-update-modes|c-update-modules|c-update-undo-list|c-update-user-nick|c-update-user|c-user-input|c-user-is-active|c-user-spec|c-version|c-view-mode-enter|c-wash-quit-reason|c-window-configuration-change|c-with-all-buffers-of-server|c-with-buffer|c-with-selected-window|c-with-server-buffer|c-xdcc-add-file|c-xdcc-mode|c|egistry|evision|t--abbreviate-string|t--activate-font-lock-keywords|t--button-action-position|t--ewoc-entry-expanded-p--cmacro|t--ewoc-entry-expanded-p|t--ewoc-entry-extended-printer-limits-p--cmacro|t--ewoc-entry-extended-printer-limits-p|t--ewoc-entry-hidden-p--cmacro|t--ewoc-entry-hidden-p|t--ewoc-entry-p--cmacro|t--ewoc-entry-p|t--ewoc-entry-test--cmacro|t--ewoc-entry-test|t--ewoc-position|t--expand-should-1|t--expand-should|t--explain-equal-including-properties|t--explain-equal-rec|t--explain-equal|t--explain-format-atom|t--force-message-log-buffer-truncation|t--format-time-iso8601|t--insert-human-readable-selector|t--insert-infos|t--make-stats|t--make-xrefs-region|t--parse-keys-and-body|t--plist-difference-explanation|t--pp-with-indentation-and-newline|t--print-backtrace|t--print-test-for-ewoc|t--proper-list-p|t--record-backtrace|t--remove-from-list|t--results-expand-collapse-button-action|t--results-font-lock-function|t--results-format-expected-unexpected|t--results-move|t--results-progress-bar-button-action|t--results-test-at-point-allow-redefinition|t--results-test-at-point-no-redefinition|t--results-test-node-at-point|t--results-test-node-or-null-at-point|t--results-update-after-test-redefinition|t--results-update-ewoc-hf|t--results-update-stats-display-maybe|t--results-update-stats-display|t--run-test-debugger|t--run-test-internal|t--setup-results-buffer|t--should-error-handle-error|t--signal-should-execution|t--significant-plist-keys|t--skip-unless|t--special-operator-p|t--stats-aborted-p--cmacro|t--stats-aborted-p|t--stats-current-test--cmacro|t--stats-current-test|t--stats-end-time--cmacro)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)e(?:rt--stats-end-time|rt--stats-failed-expected--cmacro|rt--stats-failed-expected|rt--stats-failed-unexpected--cmacro|rt--stats-failed-unexpected|rt--stats-next-redisplay--cmacro|rt--stats-next-redisplay|rt--stats-p--cmacro|rt--stats-p|rt--stats-passed-expected--cmacro|rt--stats-passed-expected|rt--stats-passed-unexpected--cmacro|rt--stats-passed-unexpected|rt--stats-selector--cmacro|rt--stats-selector|rt--stats-set-test-and-result|rt--stats-skipped--cmacro|rt--stats-skipped|rt--stats-start-time--cmacro|rt--stats-start-time|rt--stats-test-end-times--cmacro|rt--stats-test-end-times|rt--stats-test-key|rt--stats-test-map--cmacro|rt--stats-test-map|rt--stats-test-pos|rt--stats-test-results--cmacro|rt--stats-test-results|rt--stats-test-start-times--cmacro|rt--stats-test-start-times|rt--stats-tests--cmacro|rt--stats-tests|rt--string-first-line|rt--test-execution-info-ert-debug-on-error--cmacro|rt--test-execution-info-ert-debug-on-error|rt--test-execution-info-exit-continuation--cmacro|rt--test-execution-info-exit-continuation|rt--test-execution-info-next-debugger--cmacro|rt--test-execution-info-next-debugger|rt--test-execution-info-p--cmacro|rt--test-execution-info-p|rt--test-execution-info-result--cmacro|rt--test-execution-info-result|rt--test-execution-info-test--cmacro|rt--test-execution-info-test|rt--test-name-button-action|rt--tests-running-mode-line-indicator|rt--unload-function|rt-char-for-test-result|rt-deftest|rt-delete-all-tests|rt-delete-test|rt-describe-test|rt-equal-including-properties|rt-face-for-stats|rt-face-for-test-result|rt-fail|rt-find-test-other-window|rt-get-test|rt-info|rt-insert-test-name-button|rt-kill-all-test-buffers|rt-make-test-unbound|rt-pass|rt-read-test-name-at-point|rt-read-test-name|rt-results-describe-test-at-point|rt-results-find-test-at-point-other-window|rt-results-jump-between-summary-and-result|rt-results-mode-menu|rt-results-mode|rt-results-next-test|rt-results-pop-to-backtrace-for-test-at-point|rt-results-pop-to-messages-for-test-at-point|rt-results-pop-to-should-forms-for-test-at-point|rt-results-pop-to-timings|rt-results-previous-test|rt-results-rerun-all-tests|rt-results-rerun-test-at-point-debugging-errors|rt-results-rerun-test-at-point|rt-results-toggle-printer-limits-for-test-at-point|rt-run-or-rerun-test|rt-run-test|rt-run-tests-batch-and-exit|rt-run-tests-batch|rt-run-tests-interactively|rt-run-tests|rt-running-test|rt-select-tests|rt-set-test|rt-simple-view-mode|rt-skip|rt-stats-completed-expected|rt-stats-completed-unexpected|rt-stats-completed|rt-stats-skipped|rt-stats-total|rt-string-for-test-result|rt-summarize-tests-batch-and-exit|rt-test-aborted-with-non-local-exit-messages--cmacro|rt-test-aborted-with-non-local-exit-messages|rt-test-aborted-with-non-local-exit-p--cmacro|rt-test-aborted-with-non-local-exit-p|rt-test-aborted-with-non-local-exit-should-forms--cmacro|rt-test-aborted-with-non-local-exit-should-forms|rt-test-at-point|rt-test-body--cmacro|rt-test-body|rt-test-boundp|rt-test-documentation--cmacro|rt-test-documentation|rt-test-expected-result-type--cmacro|rt-test-expected-result-type|rt-test-failed-backtrace--cmacro|rt-test-failed-backtrace|rt-test-failed-condition--cmacro|rt-test-failed-condition|rt-test-failed-infos--cmacro|rt-test-failed-infos|rt-test-failed-messages--cmacro|rt-test-failed-messages|rt-test-failed-p--cmacro|rt-test-failed-p|rt-test-failed-should-forms--cmacro|rt-test-failed-should-forms|rt-test-most-recent-result--cmacro|rt-test-most-recent-result|rt-test-name--cmacro|rt-test-name|rt-test-p--cmacro|rt-test-p|rt-test-passed-messages--cmacro|rt-test-passed-messages|rt-test-passed-p--cmacro|rt-test-passed-p|rt-test-passed-should-forms--cmacro|rt-test-passed-should-forms|rt-test-quit-backtrace--cmacro|rt-test-quit-backtrace|rt-test-quit-condition--cmacro|rt-test-quit-condition|rt-test-quit-infos--cmacro|rt-test-quit-infos|rt-test-quit-messages--cmacro|rt-test-quit-messages|rt-test-quit-p--cmacro|rt-test-quit-p|rt-test-quit-should-forms--cmacro|rt-test-quit-should-forms|rt-test-result-expected-p|rt-test-result-messages--cmacro|rt-test-result-messages|rt-test-result-p--cmacro|rt-test-result-p|rt-test-result-should-forms--cmacro|rt-test-result-should-forms|rt-test-result-type-p|rt-test-result-with-condition-backtrace--cmacro|rt-test-result-with-condition-backtrace|rt-test-result-with-condition-condition--cmacro|rt-test-result-with-condition-condition|rt-test-result-with-condition-infos--cmacro|rt-test-result-with-condition-infos|rt-test-result-with-condition-messages--cmacro|rt-test-result-with-condition-messages|rt-test-result-with-condition-p--cmacro|rt-test-result-with-condition-p|rt-test-result-with-condition-should-forms--cmacro|rt-test-result-with-condition-should-forms|rt-test-skipped-backtrace--cmacro|rt-test-skipped-backtrace|rt-test-skipped-condition--cmacro|rt-test-skipped-condition|rt-test-skipped-infos--cmacro|rt-test-skipped-infos|rt-test-skipped-messages--cmacro|rt-test-skipped-messages|rt-test-skipped-p--cmacro|rt-test-skipped-p|rt-test-skipped-should-forms--cmacro|rt-test-skipped-should-forms|rt-test-tags--cmacro|rt-test-tags|rt|shell/addpath|shell/define|shell/env|shell/eshell-debug|shell/exit|shell/export|shell/jobs|shell/kill|shell/setq|shell/unset|shell/wait|shell/which|shell--apply-redirections|shell--do-opts|shell--process-args|shell--process-option|shell--set-option|shell-add-to-window-buffer-names|shell-apply\\\\*|shell-apply-indices|shell-applyn??|shell-arg-delimiter|shell-arg-initialize|shell-as-subcommand|shell-backward-argument|shell-begin-on-new-line|shell-beginning-of-input|shell-beginning-of-output|shell-bol|shell-buffered-print|shell-clipboard-append|shell-close-handles|shell-close-target|shell-cmd-initialize|shell-command-finished|shell-command-result|shell-command-started|shell-command-to-value|shell-commands??|shell-complete-lisp-symbols|shell-complete-variable-assignment|shell-complete-variable-reference|shell-condition-case|shell-convert|shell-copy-environment|shell-copy-handles|shell-copy-old-input|shell-copy-tree|shell-create-handles|shell-current-ange-uids|shell-debug-command|shell-debug-show-parsed-args|shell-directory-files-and-attributes|shell-directory-files|shell-do-command-to-value|shell-do-eval|shell-do-pipelines-synchronously|shell-do-pipelines|shell-do-subjob|shell-end-of-output|shell-environment-variables|shell-envvar-names|shell-errorn??|shell-escape-arg|shell-eval\\\\*|shell-eval-command|shell-eval-using-options|shell-evaln??|shell-exec-lisp|shell-execute-pipeline|shell-exit-success-p|shell-explicit-command|shell-ext-initialize|shell-external-command|shell-file-attributes|shell-find-alias-function|shell-find-delimiter|shell-find-interpreter|shell-find-tag|shell-finish-arg|shell-flatten-and-stringify|shell-flatten-list|shell-flush|shell-for|shell-forward-argument|shell-funcall\\\\*?|shell-funcalln|shell-gather-process-output|shell-get-old-input|shell-get-target|shell-get-variable|shell-goto-input-start|shell-group-id|shell-group-name|shell-handle-ansi-color|shell-handle-control-codes|shell-handle-local-variables|shell-index-value|shell-init-print-buffer|shell-insert-buffer-name|shell-insert-envvar|shell-insert-process|shell-insertion-filter|shell-interactive-output-p|shell-interactive-print|shell-interactive-process|shell-intercept-commands|shell-interpolate-variable|shell-interrupt-process|shell-invoke-batch-file|shell-invoke-directly|shell-invokify-arg|shell-io-initialize|shell-kill-append|shell-kill-buffer-function|shell-kill-input|shell-kill-new|shell-kill-output|shell-kill-process-function|shell-kill-process|shell-life-is-too-much|shell-lisp-command\\\\*?|shell-looking-at-backslash-return|shell-make-private-directory|shell-manipulate|shell-mark-output|shell-mode|shell-move-argument|shell-named-command\\\\*?|shell-needs-pipe-p|shell-no-command-conversion|shell-operator|shell-output-filter|shell-output-object-to-target|shell-output-object|shell-parse-ange-ls|shell-parse-arguments??|shell-parse-backslash|shell-parse-colon-path|shell-parse-command-input|shell-parse-command|shell-parse-delimiter|shell-parse-double-quote|shell-parse-indices|shell-parse-lisp-argument|shell-parse-literal-quote|shell-parse-pipeline|shell-parse-redirection|shell-parse-special-reference|shell-parse-subcommand-argument|shell-parse-variable-ref|shell-parse-variable|shell-plain-command|shell-postoutput-scroll-to-bottom|shell-preinput-scroll-to-bottom|shell-print|shell-printable-size|shell-printn|shell-proc-initialize|shell-process-identity|shell-process-interact|shell-processp|shell-protect-handles|shell-protect|shell-push-command-mark|shell-query-kill-processes|shell-queue-input|shell-quit-process|shell-quote-argument|shell-quote-backslash|shell-read-group-names|shell-read-host-names|shell-read-hosts-file|shell-read-hosts|shell-read-passwd-file|shell-read-passwd|shell-read-process-name|shell-read-user-names|shell-record-process-object|shell-redisplay|shell-regexp-arg|shell-remote-command|shell-remove-from-window-buffer-names|shell-remove-process-entry|shell-repeat-argument|shell-report-bug|shell-reset-after-proc|shell-reset|shell-resolve-current-argument|shell-resume-command|shell-resume-eval|shell-return-exits-minibuffer|shell-rewrite-for-command|shell-rewrite-if-command|shell-rewrite-initial-subcommand|shell-rewrite-named-command|shell-rewrite-sexp-command|shell-rewrite-while-command|shell-round-robin-kill|shell-run-output-filters|shell-script-interpreter|shell-search-path|shell-self-insert-command|shell-send-eof-to-process|shell-send-input|shell-send-invisible|shell-sentinel|shell-separate-commands|shell-set-output-handle|shell-show-maximum-output|shell-show-output|shell-show-usage|shell-split-path|shell-stringify-list|shell-stringify|shell-strip-redirections|shell-structure-basic-command|shell-subcommand-arg-values|shell-subgroups|shell-sublist|shell-substring|shell-to-flat-string|shell-toggle-direct-send|shell-trap-errors|shell-truncate-buffer|shell-under-windows-p|shell-uniqify-list|shell-unload-all-modules|shell-unload-extension-modules|shell-update-markers|shell-user-id|shell-user-name|shell-using-module|shell-var-initialize|shell-variables-list|shell-wait-for-process|shell-watch-for-password-prompt|shell-winnow-list|shell-with-file-modes|shell-with-private-file-modes|shell|tags--xref-find-definitions|tags-file-of-tag|tags-goto-tag-location|tags-list-tags|tags-recognize-tags-table|tags-snarf-tag|tags-tags-apropos-additional|tags-tags-apropos|tags-tags-completion-table|tags-tags-included-tables|tags-tags-table-files|tags-verify-tags-table|tags-xref-find|thio-composition-function|thio-fidel-to-java-buffer|thio-fidel-to-sera-buffer|thio-fidel-to-sera-marker|thio-fidel-to-sera-region|thio-fidel-to-tex-buffer|thio-find-file|thio-input-special-character|thio-insert-ethio-space|thio-java-to-fidel-buffer|thio-modify-vowel|thio-replace-space|thio-sera-to-fidel-buffer|thio-sera-to-fidel-marker|thio-sera-to-fidel-region|thio-tex-to-fidel-buffer|thio-write-file|typecase|udc-add-field-to-records|udc-bookmark-current-server|udc-bookmark-server|udc-caar|udc-cadr|udc-cdaar|udc-cdar|udc-customize|udc-default-set|udc-display-generic-binary|udc-display-jpeg-as-button|udc-display-jpeg-inline|udc-display-mail|udc-display-records|udc-display-sound|udc-display-url|udc-distribute-field-on-records|udc-edit-hotlist|udc-expand-inline|udc-extract-n-word-formats|udc-filter-duplicate-attributes|udc-filter-partial-records|udc-format-attribute-name-for-display|udc-format-query|udc-get-attribute-list|udc-get-email|udc-get-phone|udc-insert-record-at-point-into-bbdb|udc-install-menu|udc-lax-plist-get|udc-load-eudc|udc-menu|udc-mode|udc-move-to-next-record|udc-move-to-previous-record|udc-plist-get|udc-plist-member)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:eudc-print-attribute-value|eudc-print-record-field|eudc-process-form|eudc-protocol-local-variable-p|eudc-protocol-set|eudc-query-form|eudc-query|eudc-register-protocol|eudc-replace-in-string|eudc-save-options|eudc-select|eudc-server-local-variable-p|eudc-server-set|eudc-set-server|eudc-set|eudc-tools-menu|eudc-translate-attribute-list|eudc-translate-query|eudc-try-bbdb-insert|eudc-update-local-variables|eudc-update-variable|eudc-variable-default-value|eudc-variable-protocol-value|eudc-variable-server-value|eval-after-load--anon-cmacro|eval-after-load|eval-defun|eval-expression-print-format|eval-expression|eval-last-sexp|eval-next-after-load|eval-print-last-sexp|eval-sexp-add-defvars|eval-when|evenp|event-apply-alt-modifier|event-apply-control-modifier|event-apply-hyper-modifier|event-apply-meta-modifier|event-apply-modifier|event-apply-shift-modifier|event-apply-super-modifier|every|ewoc--adjust|ewoc--buffer--cmacro|ewoc--buffer|ewoc--create--cmacro|ewoc--create|ewoc--dll--cmacro|ewoc--dll|ewoc--filter-hf-nodes|ewoc--footer--cmacro|ewoc--footer|ewoc--header--cmacro|ewoc--header|ewoc--hf-pp--cmacro|ewoc--hf-pp|ewoc--insert-new-node|ewoc--last-node--cmacro|ewoc--last-node|ewoc--node-create--cmacro|ewoc--node-create|ewoc--node-data--cmacro|ewoc--node-data|ewoc--node-left--cmacro|ewoc--node-left|ewoc--node-next|ewoc--node-nth|ewoc--node-prev|ewoc--node-right--cmacro|ewoc--node-right|ewoc--node-start-marker--cmacro|ewoc--node-start-marker|ewoc--pretty-printer--cmacro|ewoc--pretty-printer|ewoc--refresh-node|ewoc--set-buffer-bind-dll-let\\\\*|ewoc--set-buffer-bind-dll|ewoc--wrap|ewoc-p--cmacro|ewoc-p|eww-add-bookmark|eww-back-url|eww-beginning-of-field|eww-beginning-of-text|eww-bookmark-browse|eww-bookmark-kill|eww-bookmark-mode|eww-bookmark-prepare|eww-bookmark-yank|eww-browse-url|eww-browse-with-external-browser|eww-buffer-kill|eww-buffer-select|eww-buffer-show-next|eww-buffer-show-previous|eww-buffer-show|eww-buffers-mode|eww-change-select|eww-copy-page-url|eww-current-url|eww-desktop-data-1|eww-desktop-history-duplicate|eww-desktop-misc-data|eww-detect-charset|eww-display-html|eww-display-image|eww-display-pdf|eww-display-raw|eww-download-callback|eww-download|eww-end-of-field|eww-end-of-text|eww-follow-link|eww-form-checkbox|eww-form-file|eww-form-submit|eww-form-text|eww-forward-url|eww-handle-link|eww-highest-readability|eww-history-browse|eww-history-mode|eww-input-value|eww-inputs|eww-links-at-point|eww-list-bookmarks|eww-list-buffers|eww-list-histories|eww-make-unique-file-name|eww-mode|eww-next-bookmark|eww-next-url|eww-open-file|eww-parse-headers|eww-previous-bookmark|eww-previous-url|eww-process-text-input|eww-read-bookmarks|eww-readable|eww-reload|eww-render|eww-restore-desktop|eww-restore-history|eww-same-page-p|eww-save-history|eww-score-readability|eww-search-words|eww-select-display|eww-select-file|eww-set-character-encoding|eww-setup-buffer|eww-size-text-inputs|eww-submit|eww-suggested-uris|eww-tag-a|eww-tag-body|eww-tag-form|eww-tag-input|eww-tag-link|eww-tag-select|eww-tag-textarea|eww-tag-title|eww-toggle-checkbox|eww-top-url|eww-up-url|eww-update-field|eww-update-header-line-format|eww-view-source|eww-write-bookmarks|eww|ex-args|ex-cd|ex-cmd-accepts-multiple-files-p|ex-cmd-assoc|ex-cmd-complete|ex-cmd-execute|ex-cmd-is-mashed-with-args|ex-cmd-is-one-letter|ex-cmd-not-yet|ex-cmd-obsolete|ex-cmd-read-exit|ex-command|ex-compile|ex-copy|ex-delete|ex-edit|ex-expand-filsyms|ex-find-file|ex-fixup-history|ex-get-inline-cmd-args|ex-global|ex-goto|ex-help|ex-line-no|ex-line-subr|ex-line|ex-map-read-args|ex-map|ex-mark|ex-next-related-buffer|ex-next|ex-preserve|ex-print-display-lines|ex-print|ex-put|ex-pwd|ex-quit|ex-read|ex-recover|ex-rewind|ex-search-address|ex-set-read-variable|ex-set-visited-file-name|ex-set|ex-shell|ex-show-vars|ex-source|ex-splice-args-in-1-letr-cmd|ex-substitute|ex-tag|ex-unmap-read-args|ex-unmap|ex-write-info|ex-write|ex-yank|exchange-dot-and-mark|exchange-point-and-mark|executable-chmod|executable-command-find-posix-p|executable-interpret|executable-make-buffer-file-executable-if-script-p|executable-self-display|executable-set-magic|execute-extended-command--shorter-1|execute-extended-command--shorter|exit-scheme-interaction-mode|exit-splash-screen|expand-abbrev-from-expand|expand-abbrev-hook|expand-add-abbrevs??|expand-build-list|expand-build-marks|expand-c-for-skeleton|expand-clear-markers|expand-do-expansion|expand-in-literal|expand-jump-to-next-slot|expand-jump-to-previous-slot|expand-list-to-markers|expand-mail-aliases|expand-previous-word|expand-region-abbrevs|expand-skeleton-end-hook|external-debugging-output|extract-rectangle-line|extract-rectangle|ezimage-all-images|ezimage-image-association-dump|ezimage-image-dump|ezimage-image-over-string|ezimage-insert-image-button-maybe|ezimage-insert-over-text|f90-abbrev-help|f90-abbrev-start|f90-add-imenu-menu|f90-backslash-not-special|f90-beginning-of-block|f90-beginning-of-subprogram|f90-block-match|f90-break-line|f90-calculate-indent|f90-capitalize-keywords|f90-capitalize-region-keywords|f90-change-keywords|f90-comment-indent|f90-comment-region|f90-current-defun|f90-current-indentation|f90-do-auto-fill|f90-downcase-keywords|f90-downcase-region-keywords|f90-electric-insert|f90-end-of-block|f90-end-of-subprogram|f90-equal-symbols|f90-fill-region|f90-find-breakpoint|f90-font-lock-1|f90-font-lock-2|f90-font-lock-3|f90-font-lock-4|f90-font-lock-n|f90-get-correct-indent|f90-get-present-comment-type|f90-imenu-type-matcher|f90-in-comment|f90-in-string|f90-indent-line-no|f90-indent-line|f90-indent-new-line|f90-indent-region|f90-indent-subprogram|f90-indent-to|f90-insert-end|f90-join-lines|f90-line-continued|f90-looking-at-associate|f90-looking-at-critical|f90-looking-at-do|f90-looking-at-end-critical|f90-looking-at-if-then|f90-looking-at-program-block-end|f90-looking-at-program-block-start|f90-looking-at-select-case|f90-looking-at-type-like|f90-looking-at-where-or-forall|f90-mark-subprogram|f90-match-end|f90-menu|f90-mode|f90-next-block|f90-next-statement|f90-no-block-limit|f90-prepare-abbrev-list-buffer|f90-present-statement-cont|f90-previous-block|f90-previous-statement|f90-typedec-matcher|f90-typedef-matcher|f90-upcase-keywords|f90-upcase-region-keywords|f90-update-line|face-at-point|face-attr-construct|face-attr-match-p|face-attribute-merged-with|face-attribute-specified-or|face-attributes-as-vector|face-attrs-more-relative-p|face-background-pixmap|face-default-spec|face-descriptive-attribute-name|face-doc-string|face-name|face-nontrivial-p|face-read-integer|face-read-string|face-remap-order|face-set-after-frame-default|face-spec-choose|face-spec-match-p|face-spec-recalc|face-spec-reset-face|face-spec-set-2|face-spec-set-match-display|face-user-default-spec|face-valid-attribute-values|facemenu-active-faces|facemenu-add-face|facemenu-add-new-color|facemenu-add-new-face|facemenu-background-menu|facemenu-color-equal|facemenu-complete-face-list|facemenu-enable-faces-p|facemenu-face-menu|facemenu-foreground-menu|facemenu-indentation-menu|facemenu-iterate|facemenu-justification-menu|facemenu-menu|facemenu-post-self-insert-function|facemenu-read-color|facemenu-remove-all|facemenu-remove-face-props|facemenu-remove-special|facemenu-set-background|facemenu-set-bold-italic|facemenu-set-bold|facemenu-set-default|facemenu-set-face-from-menu|facemenu-set-face|facemenu-set-foreground|facemenu-set-intangible|facemenu-set-invisible|facemenu-set-italic|facemenu-set-read-only|facemenu-set-self-insert-face|facemenu-set-underline|facemenu-special-menu|facemenu-update|fancy-about-screen|fancy-splash-frame|fancy-splash-head|fancy-splash-image-file|fancy-splash-insert|fancy-startup-screen|fancy-startup-tail|feature-file|feature-symbols|feedmail-accume-n-nuke-header|feedmail-buffer-to-binmail|feedmail-buffer-to-sendmail|feedmail-buffer-to-smtp|feedmail-buffer-to-smtpmail|feedmail-confirm-addresses-hook-example|feedmail-create-queue-filename|feedmail-deduce-address-list|feedmail-default-date-generator|feedmail-default-message-id-generator|feedmail-default-x-mailer-generator|feedmail-dump-message-to-queue|feedmail-envelope-deducer|feedmail-fiddle-date|feedmail-fiddle-from|feedmail-fiddle-header|feedmail-fiddle-list-of-fiddle-plexes|feedmail-fiddle-list-of-spray-fiddle-plexes|feedmail-fiddle-message-id|feedmail-fiddle-sender|feedmail-fiddle-spray-address|feedmail-fiddle-x-mailer|feedmail-fill-this-one|feedmail-fill-to-cc-function|feedmail-find-eoh|feedmail-fqm-p|feedmail-give-it-to-buffer-eater|feedmail-look-at-queue-directory|feedmail-mail-send-hook-splitter|feedmail-message-action-draft-strong|feedmail-message-action-draft|feedmail-message-action-edit|feedmail-message-action-help-blat|feedmail-message-action-help|feedmail-message-action-queue-strong|feedmail-message-action-queue|feedmail-message-action-scroll-down|feedmail-message-action-scroll-up|feedmail-message-action-send-strong|feedmail-message-action-send|feedmail-message-action-toggle-spray|feedmail-one-last-look|feedmail-queue-express-to-draft|feedmail-queue-express-to-queue|feedmail-queue-reminder-brief|feedmail-queue-reminder-medium|feedmail-queue-reminder|feedmail-queue-runner-prompt|feedmail-queue-send-edit-prompt-inner|feedmail-queue-send-edit-prompt|feedmail-queue-subject-slug-maker|feedmail-rfc822-date|feedmail-rfc822-time-zone|feedmail-run-the-queue-global-prompt|feedmail-run-the-queue-no-prompts|feedmail-run-the-queue|feedmail-say-chatter|feedmail-say-debug|feedmail-scroll-buffer|feedmail-send-it-immediately-wrapper|feedmail-send-it-immediately|feedmail-send-it|feedmail-spray-via-bbdb|feedmail-tidy-up-slug|feedmail-vm-mail-mode|fetch-overload|ff-all-dirs-under|ff-basename|ff-cc-hh-converter|ff-find-file|ff-find-other-file|ff-find-related-file|ff-find-the-other-file|ff-get-file-name|ff-get-file|ff-get-other-file|ff-list-replace-env-vars|ff-mouse-find-other-file-other-window|ff-mouse-find-other-file|ff-other-file-name|ff-set-point-accordingly|ff-string-match|ff-switch-file|ff-switch-to-buffer|ff-treat-as-special|ff-upcase-p|ff-which-function-are-we-in|ffap--toggle-read-only|ffap-all-subdirs-loop|ffap-all-subdirs|ffap-alternate-file-other-window|ffap-alternate-file|ffap-at-mouse|ffap-bib|ffap-bindings|ffap-bug|ffap-c\\\\+\\\\+-mode|ffap-c-mode|ffap-completable|ffap-copy-string-as-kill|ffap-dired-other-frame|ffap-dired-other-window|ffap-dired|ffap-el-mode|ffap-el|ffap-event-buffer|ffap-file-at-point|ffap-file-exists-string|ffap-file-remote-p|ffap-file-suffix|ffap-fixup-machine|ffap-fixup-url|ffap-fortran-mode|ffap-gnus-hook|ffap-gnus-menu|ffap-gnus-next|ffap-gnus-wrapper|ffap-gopher-at-point|ffap-guess-file-name-at-point|ffap-guesser|ffap-highlight|ffap-home|ffap-host-to-filename|ffap-info-2|ffap-info-3|ffap-info|ffap-kpathsea-expand-path|ffap-latex-mode|ffap-lcd|ffap-list-directory|ffap-list-env|ffap-literally|ffap-locate-file|ffap-machine-at-point|ffap-machine-p|ffap-menu-ask|ffap-menu-cont|ffap-menu-rescan|ffap-menu|ffap-mouse-event|ffap-newsgroup-p|ffap-next-guess|ffap-next-url|ffap-next|ffap-other-frame|ffap-other-window|ffap-prompter|ffap-read-file-or-url-internal|ffap-read-file-or-url|ffap-read-only-other-frame|ffap-read-only-other-window|ffap-read-only|ffap-read-url-internal|ffap-reduce-path|ffap-replace-file-component|ffap-rfc|ffap-ro-mode-hook|ffap-string-around|ffap-string-at-point|ffap-submit-bug|ffap-symbol-value|ffap-tex-init|ffap-tex-mode|ffap-tex|ffap-url-at-point|ffap-url-p|ffap-url-unwrap-local|ffap-url-unwrap-remote|ffap-what-domain|ffap|field-at-pos|field-complete|fifth|file-attributes-lessp|file-cache--read-list|file-cache-add-directory-list|file-cache-add-directory-recursively|file-cache-add-directory-using-find|file-cache-add-directory-using-locate|file-cache-add-directory|file-cache-add-file-list|file-cache-add-file|file-cache-add-from-file-cache-buffer|file-cache-canonical-directory|file-cache-choose-completion|file-cache-clear-cache|file-cache-complete|file-cache-completion-setup-function|file-cache-debug-read-from-minibuffer|file-cache-delete-directory-list|file-cache-delete-directory|file-cache-delete-file-list|file-cache-delete-file-regexp|file-cache-delete-file|file-cache-directory-name|file-cache-display|file-cache-do-delete-directory)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)f(?:ile-cache-file-name|ile-cache-files-matching-internal|ile-cache-files-matching|ile-cache-minibuffer-complete|ile-cache-mouse-choose-completion|ile-dependents|ile-loadhist-lookup|ile-modes-char-to-right|ile-modes-char-to-who|ile-modes-rights-to-number|ile-name-non-special|ile-name-shadow-mode|ile-notify--event-cookie|ile-notify--event-file-name|ile-notify--event-file1-name|ile-notify-callback|ile-notify-handle-event|ile-of-tag|ile-provides|ile-requires|ile-set-intersect|ile-size-human-readable|ile-tree-walk|ilesets-add-buffer|ilesets-alist-get|ilesets-browse-dir|ilesets-browser-name|ilesets-build-dir-submenu-now|ilesets-build-dir-submenu|ilesets-build-ingroup-submenu|ilesets-build-menu-maybe|ilesets-build-menu-now|ilesets-build-menu|ilesets-build-submenu|ilesets-close|ilesets-cmd-get-args|ilesets-cmd-get-def|ilesets-cmd-get-fn|ilesets-cmd-isearch-getargs|ilesets-cmd-query-replace-getargs|ilesets-cmd-query-replace-regexp-getargs|ilesets-cmd-shell-command-getargs|ilesets-cmd-shell-command|ilesets-cmd-show-result|ilesets-conditional-sort|ilesets-convert-path-list|ilesets-convert-patterns|ilesets-customize|ilesets-data-get-data|ilesets-data-get-name|ilesets-data-get|ilesets-data-set-default|ilesets-data-set|ilesets-directory-files|ilesets-edit|ilesets-entry-get-dormant-flag|ilesets-entry-get-files??|ilesets-entry-get-filter-dirs-flag|ilesets-entry-get-master|ilesets-entry-get-open-fn|ilesets-entry-get-pattern--dir|ilesets-entry-get-pattern--pattern|ilesets-entry-get-pattern|ilesets-entry-get-save-fn|ilesets-entry-get-tree-max-level|ilesets-entry-get-tree|ilesets-entry-get-verbosity|ilesets-entry-mode|ilesets-entry-set-files|ilesets-error|ilesets-eviewer-constraint-p|ilesets-eviewer-get-props|ilesets-exit|ilesets-file-close|ilesets-file-open|ilesets-files-equalp|ilesets-files-in-same-directory-p|ilesets-filetype-get-prop|ilesets-filetype-property|ilesets-filter-dir-names|ilesets-filter-list|ilesets-find-file-using|ilesets-find-file|ilesets-find-or-display-file|ilesets-get-cmd-menu|ilesets-get-external-viewer-by-name|ilesets-get-external-viewer|ilesets-get-filelist|ilesets-get-fileset-from-name|ilesets-get-fileset-name|ilesets-get-menu-epilog|ilesets-get-quoted-selection|ilesets-get-selection|ilesets-get-shortcut|ilesets-goto-homepage|ilesets-info|ilesets-ingroup-cache-get|ilesets-ingroup-cache-put|ilesets-ingroup-collect-build-menu|ilesets-ingroup-collect-files|ilesets-ingroup-collect-finder|ilesets-ingroup-collect|ilesets-ingroup-get-data|ilesets-ingroup-get-pattern|ilesets-ingroup-get-remdupl-p|ilesets-init|ilesets-member|ilesets-menu-cache-file-load|ilesets-menu-cache-file-save-maybe|ilesets-menu-cache-file-save|ilesets-message|ilesets-open|ilesets-ormap|ilesets-quote|ilesets-rebuild-this-submenu|ilesets-remake-shortcut|ilesets-remove-buffer|ilesets-remove-from-ubl|ilesets-reset-filename-on-change|ilesets-reset-fileset|ilesets-run-cmd--repl-fn|ilesets-run-cmd|ilesets-save-config|ilesets-select-command|ilesets-set-config|ilesets-set-default!|ilesets-set-default\\\\+?|ilesets-some|ilesets-spawn-external-viewer|ilesets-sublist|ilesets-update-cleanup|ilesets-update-pre010505|ilesets-update|ilesets-which-command-p|ilesets-which-command|ilesets-which-file|ilesets-wrap-submenu|ill-comment-paragraph|ill-common-string-prefix|ill-delete-newlines|ill-delete-prefix|ill-find-break-point|ill-flowed-encode|ill-flowed|ill-forward-paragraph|ill-french-nobreak-p|ill-indent-to-left-margin|ill-individual-paragraphs-citation|ill-individual-paragraphs-prefix|ill-match-adaptive-prefix|ill-minibuffer-function|ill-move-to-break-point|ill-newline|ill-nobreak-p|ill-nonuniform-paragraphs|ill-single-char-nobreak-p|ill-single-word-nobreak-p|ill-text-properties-at|ill|iltered-frame-list|ind-alternate-file-other-window|ind-alternate-file|ind-change-log|ind-class|ind-cmd|ind-cmpl-prefix-entry|ind-coding-systems-region-internal|ind-composition-internal|ind-composition|ind-definition-noselect|ind-dired-filter|ind-dired-sentinel|ind-dired|ind-emacs-lisp-shadows|ind-exact-completion|ind-face-definition|ind-file--read-only|ind-file-at-point|ind-file-existing|ind-file-literally-at-point|ind-file-noselect-1|ind-file-other-frame|ind-file-read-args|ind-file-read-only-other-frame|ind-file-read-only-other-window|ind-function-C-source|ind-function-advised-original|ind-function-at-point|ind-function-do-it|ind-function-library|ind-function-noselect|ind-function-on-key|ind-function-other-frame|ind-function-other-window|ind-function-read|ind-function-search-for-symbol|ind-function-setup-keys|ind-function|ind-grep-dired|ind-grep|ind-if-not|ind-if|ind-library--load-name|ind-library-name|ind-library-suffixes|ind-library|ind-lisp-debug-message|ind-lisp-default-directory-predicate|ind-lisp-default-file-predicate|ind-lisp-file-predicate-is-directory|ind-lisp-find-dired-filter|ind-lisp-find-dired-insert-file|ind-lisp-find-dired-internal|ind-lisp-find-dired-subdirectories|ind-lisp-find-dired|ind-lisp-find-files-internal|ind-lisp-find-files|ind-lisp-format-time|ind-lisp-format|ind-lisp-insert-directory|ind-lisp-object-file-name|ind-lisp-time-index|ind-multibyte-characters|ind-name-dired|ind-new-buffer-file-coding-system|ind-tag-default-as-regexp|ind-tag-default-as-symbol-regexp|ind-tag-default-bounds|ind-tag-default|ind-tag-in-order|ind-tag-interactive|ind-tag-noselect|ind-tag-other-frame|ind-tag-other-window|ind-tag-regexp|ind-tag-tag|ind-tag|ind-variable-at-point|ind-variable-noselect|ind-variable-other-frame|ind-variable-other-window|ind-variable|ind|inder-by-keyword|inder-commentary|inder-compile-keywords-make-dist|inder-compile-keywords|inder-current-item|inder-exit|inder-goto-xref|inder-insert-at-column|inder-list-keywords|inder-list-matches|inder-mode|inder-mouse-face-on-line|inder-mouse-select|inder-select|inder-summary|inder-unknown-keywords|inder-unload-function|inger|irst-error|irst|loatp-safe|loor\\\\*|lush-lines|lymake-add-buildfile-to-cache|lymake-add-err-info|lymake-add-line-err-info|lymake-add-project-include-dirs-to-cache|lymake-after-change-function|lymake-after-save-hook|lymake-can-syntax-check-file|lymake-check-include|lymake-check-patch-master-file-buffer|lymake-clear-buildfile-cache|lymake-clear-project-include-dirs-cache|lymake-compilation-is-running|lymake-compile|lymake-copy-buffer-to-temp-buffer|lymake-create-master-file|lymake-create-temp-inplace|lymake-create-temp-with-folder-structure|lymake-delete-own-overlays|lymake-delete-temp-directory|lymake-display-err-menu-for-current-line|lymake-display-warning|lymake-er-get-line-err-info-list|lymake-er-get-line|lymake-er-make-er|lymake-find-buffer-for-file|lymake-find-buildfile|lymake-find-err-info|lymake-find-file-hook|lymake-find-make-buildfile|lymake-find-possible-master-files|lymake-fix-file-name|lymake-fix-line-numbers|lymake-get-ant-cmdline|lymake-get-buildfile-from-cache|lymake-get-cleanup-function|lymake-get-err-count|lymake-get-file-name-mode-and-masks|lymake-get-first-err-line-no|lymake-get-full-nonpatched-file-name|lymake-get-full-patched-file-name|lymake-get-include-dirs-dot|lymake-get-include-dirs|lymake-get-init-function|lymake-get-last-err-line-no|lymake-get-line-err-count|lymake-get-make-cmdline|lymake-get-next-err-line-no|lymake-get-prev-err-line-no|lymake-get-project-include-dirs-from-cache|lymake-get-project-include-dirs-imp|lymake-get-project-include-dirs|lymake-get-real-file-name-function|lymake-get-real-file-name|lymake-get-syntax-check-program-args|lymake-get-system-include-dirs|lymake-get-tex-args|lymake-goto-file-and-line|lymake-goto-line|lymake-goto-next-error|lymake-goto-prev-error|lymake-highlight-err-lines|lymake-highlight-line|lymake-init-create-temp-buffer-copy|lymake-init-create-temp-source-and-master-buffer-copy|lymake-init-find-buildfile-dir|lymake-ins-after|lymake-kill-buffer-hook|lymake-kill-process|lymake-ler-file--cmacro|lymake-ler-file|lymake-ler-full-file--cmacro|lymake-ler-full-file|lymake-ler-line--cmacro|lymake-ler-line|lymake-ler-make-ler--cmacro|lymake-ler-make-ler|lymake-ler-p--cmacro|lymake-ler-p|lymake-ler-set-file|lymake-ler-set-full-file|lymake-ler-set-line|lymake-ler-text--cmacro|lymake-ler-text|lymake-ler-type--cmacro|lymake-ler-type|lymake-line-err-info-is-less-or-equal|lymake-log|lymake-make-overlay|lymake-master-cleanup|lymake-master-file-compare|lymake-master-make-header-init|lymake-master-make-init|lymake-master-tex-init|lymake-mode-off|lymake-mode-on|lymake-mode|lymake-on-timer-event|lymake-overlay-p|lymake-parse-err-lines|lymake-parse-line|lymake-parse-output-and-residual|lymake-parse-residual|lymake-patch-err-text|lymake-perl-init|lymake-php-init|lymake-popup-current-error-menu|lymake-post-syntax-check|lymake-process-filter|lymake-process-sentinel|lymake-read-file-to-temp-buffer|lymake-reformat-err-line-patterns-from-compile-el|lymake-region-has-flymake-overlays|lymake-replace-region|lymake-report-fatal-status|lymake-report-status|lymake-safe-delete-directory|lymake-safe-delete-file|lymake-same-files|lymake-save-buffer-in-file|lymake-set-at|lymake-simple-ant-java-init|lymake-simple-cleanup|lymake-simple-java-cleanup|lymake-simple-make-init-impl|lymake-simple-make-init|lymake-simple-make-java-init|lymake-simple-tex-init|lymake-skip-whitespace|lymake-split-output|lymake-start-syntax-check-process|lymake-start-syntax-check|lymake-stop-all-syntax-checks|lymake-xml-init|lyspell-abbrev-table|lyspell-accept-buffer-local-defs|lyspell-after-change-function|lyspell-ajust-cursor-point|lyspell-already-abbrevp|lyspell-auto-correct-previous-hook|lyspell-auto-correct-previous-word|lyspell-auto-correct-word|lyspell-buffer|lyspell-change-abbrev|lyspell-check-changed-word-p|lyspell-check-pre-word-p|lyspell-check-previous-highlighted-word|lyspell-check-region-doublons|lyspell-check-word-p|lyspell-correct-word-before-point|lyspell-correct-word|lyspell-debug-signal-changed-checked|lyspell-debug-signal-no-check|lyspell-debug-signal-pre-word-checked|lyspell-debug-signal-word-checked|lyspell-define-abbrev|lyspell-delay-commands??|lyspell-delete-all-overlays|lyspell-delete-region-overlays|lyspell-deplacement-commands??|lyspell-display-next-corrections|lyspell-do-correct|lyspell-emacs-popup|lyspell-external-point-words|lyspell-generic-progmode-verify|lyspell-get-casechars|lyspell-get-not-casechars|lyspell-get-word|lyspell-goto-next-error|lyspell-hack-local-variables-hook|lyspell-highlight-duplicate-region|lyspell-highlight-incorrect-region|lyspell-kill-ispell-hook|lyspell-large-region|lyspell-math-tex-command-p|lyspell-maybe-correct-doubling|lyspell-maybe-correct-transposition|lyspell-minibuffer-p|lyspell-mode-off|lyspell-mode-on|lyspell-mode|lyspell-notify-misspell|lyspell-overlay-p|lyspell-post-command-hook|lyspell-pre-command-hook|lyspell-process-localwords|lyspell-prog-mode|lyspell-properties-at-p|lyspell-region|lyspell-small-region|lyspell-tex-command-p|lyspell-unhighlight-at|lyspell-word-search-backward|lyspell-word-search-forward|lyspell-word|lyspell-xemacs-popup|ocus-frame|oldout-exit-fold|oldout-mouse-goto-heading|oldout-mouse-hide-or-exit|oldout-mouse-show|oldout-mouse-swallow-events|oldout-mouse-zoom|oldout-update-mode-line|oldout-zoom-subtree|ollow--window-sorter|ollow-adjust-window|ollow-align-compilation-windows|ollow-all-followers|ollow-avoid-tail-recenter|ollow-cache-valid-p|ollow-calc-win-end|ollow-calc-win-start|ollow-calculate-first-window-start-from-above|ollow-calculate-first-window-start-from-below|ollow-comint-scroll-to-bottom|ollow-debug-message|ollow-delete-other-windows-and-split|ollow-end-of-buffer|ollow-estimate-first-window-start|ollow-find-file-hook|ollow-first-window|ollow-last-window|ollow-maximize-region|ollow-menu-filter|ollow-mode|ollow-mwheel-scroll|ollow-next-window|ollow-point-visible-all-windows-p|ollow-pos-visible|ollow-post-command-hook|ollow-previous-window|ollow-recenter|ollow-redisplay|ollow-redraw-after-event|ollow-redraw|ollow-scroll-bar-drag|ollow-scroll-bar-scroll-down)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:follow-scroll-bar-scroll-up|follow-scroll-bar-toolkit-scroll|follow-scroll-down|follow-scroll-up|follow-select-if-end-visible|follow-select-if-visible-from-first|follow-select-if-visible|follow-split-followers|follow-switch-to-buffer-all|follow-switch-to-buffer|follow-switch-to-current-buffer-all|follow-update-window-start|follow-window-size-change|follow-windows-aligned-p|follow-windows-start-end|font-get-glyphs|font-get-system-font|font-get-system-normal-font|font-info|font-lock-after-change-function|font-lock-after-fontify-buffer|font-lock-after-unfontify-buffer|font-lock-append-text-property|font-lock-apply-highlight|font-lock-apply-syntactic-highlight|font-lock-change-mode|font-lock-choose-keywords|font-lock-compile-keywords??|font-lock-default-fontify-buffer|font-lock-default-fontify-region|font-lock-default-function|font-lock-default-unfontify-buffer|font-lock-default-unfontify-region|font-lock-defontify|font-lock-ensure|font-lock-eval-keywords|font-lock-extend-jit-lock-region-after-change|font-lock-extend-region-multiline|font-lock-extend-region-wholelines|font-lock-fillin-text-property|font-lock-flush|font-lock-fontify-anchored-keywords|font-lock-fontify-block|font-lock-fontify-buffer|font-lock-fontify-keywords-region|font-lock-fontify-region|font-lock-fontify-syntactic-anchored-keywords|font-lock-fontify-syntactic-keywords-region|font-lock-fontify-syntactically-region|font-lock-initial-fontify|font-lock-match-c-style-declaration-item-and-skip-to-next|font-lock-match-meta-declaration-item-and-skip-to-next|font-lock-mode-internal|font-lock-mode-set-explicitly|font-lock-mode|font-lock-prepend-text-property|font-lock-refresh-defaults|font-lock-set-defaults|font-lock-specified-p|font-lock-turn-off-thing-lock|font-lock-turn-on-thing-lock|font-lock-unfontify-buffer|font-lock-unfontify-region|font-lock-update-removed-keyword-alist|font-lock-value-in-major-mode|font-match-p|font-menu-add-default|font-setting-change-default-font|font-shape-gstring|font-show-log|font-variation-glyphs|fontset-font|fontset-info|fontset-list|fontset-name-p|fontset-plain-name|footnote-mode|foreground-color-at-point|form-at-point|format-annotate-atomic-property-change|format-annotate-function|format-annotate-location|format-annotate-region|format-annotate-single-property-change|format-annotate-value|format-deannotate-region|format-decode-buffer|format-decode-region|format-decode-run-method|format-decode|format-delq-cons|format-encode-buffer|format-encode-region|format-encode-run-method|format-insert-annotations|format-kbd-macro|format-make-relatively-unique|format-proper-list-p|format-property-increment-region|format-read|format-reorder|format-replace-strings|format-spec-make|format-spec|format-subtract-regions|forms-find-file-other-window|forms-find-file|forms-mode|fortran-abbrev-help|fortran-abbrev-start|fortran-analyze-file-format|fortran-auto-fill-mode|fortran-auto-fill|fortran-beginning-do|fortran-beginning-if|fortran-beginning-of-block|fortran-beginning-of-subprogram|fortran-blink-match|fortran-blink-matching-do|fortran-blink-matching-if|fortran-break-line|fortran-calculate-indent|fortran-check-end-prog-re|fortran-check-for-matching-do|fortran-column-ruler|fortran-comment-indent|fortran-comment-region|fortran-current-defun|fortran-current-line-indentation|fortran-electric-line-number|fortran-end-do|fortran-end-if|fortran-end-of-block|fortran-end-of-subprogram|fortran-fill-paragraph|fortran-fill-statement|fortran-fill|fortran-find-comment-start-skip|fortran-gud-find-expr|fortran-hack-local-variables|fortran-indent-comment|fortran-indent-line|fortran-indent-new-line|fortran-indent-subprogram|fortran-indent-to-column|fortran-is-in-string-p|fortran-join-line|fortran-line-length|fortran-line-number-indented-correctly-p|fortran-looking-at-if-then|fortran-make-syntax-propertize-function|fortran-mark-do|fortran-mark-if|fortran-match-and-skip-declaration|fortran-menu|fortran-mode|fortran-next-statement|fortran-numerical-continuation-char|fortran-prepare-abbrev-list-buffer|fortran-previous-statement|fortran-remove-continuation|fortran-split-line|fortran-strip-sequence-nos|fortran-uncomment-region|fortran-window-create-momentarily|fortran-window-create|fortune-add-fortune|fortune-append|fortune-ask-file|fortune-compile|fortune-from-region|fortune-in-buffer|fortune-to-signature|fortune|forward-ifdef|forward-page|forward-paragraph|forward-point|forward-same-syntax|forward-sentence|forward-symbol|forward-text-line|forward-thing|forward-visible-line|forward-whitespace|fourth|frame-border-width|frame-bottom-divider-width|frame-can-run-window-configuration-change-hook|frame-char-size|frame-configuration-p|frame-configuration-to-register|frame-face-alist|frame-focus|frame-font-cache|frame-fringe-width|frame-geom-spec-cons|frame-geom-value-cons|frame-initialize|frame-notice-user-settings|frame-or-buffer-changed-p|frame-remove-geometry-params|frame-right-divider-width|frame-root-window-p|frame-scroll-bar-height|frame-scroll-bar-width|frame-set-background-mode|frame-terminal-default-bg-mode|frame-text-cols|frame-text-height|frame-text-lines|frame-text-width|frame-total-cols|frame-total-lines|frame-windows-min-size|framep-on-display|frames-on-display-list|frameset--find-frame-if|frameset--initial-params|frameset--jump-to-register|frameset--make--cmacro|frameset--make|frameset--minibufferless-last-p|frameset--print-register|frameset--prop-setter|frameset--record-minibuffer-relationships|frameset--restore-frame|frameset--reuse-frame|frameset--set-id|frameset-app--cmacro|frameset-app|frameset-cfg-id|frameset-compute-pos|frameset-copy|frameset-description--cmacro|frameset-description|frameset-filter-iconified|frameset-filter-minibuffer|frameset-filter-params|frameset-filter-sanitize-color|frameset-filter-shelve-param|frameset-filter-tty-to-GUI|frameset-filter-unshelve-param|frameset-frame-id-equal-p|frameset-frame-id|frameset-frame-with-id|frameset-keep-original-display-p|frameset-minibufferless-first-p|frameset-move-onscreen|frameset-name--cmacro|frameset-name|frameset-p--cmacro|frameset-p|frameset-prop|frameset-properties--cmacro|frameset-properties|frameset-restore|frameset-save|frameset-states--cmacro|frameset-states|frameset-switch-to-gui-p|frameset-switch-to-tty-p|frameset-timestamp--cmacro|frameset-timestamp|frameset-to-register|frameset-valid-p|frameset-version--cmacro|frameset-version|fringe--check-style|fringe-bitmap-p|fringe-columns|fringe-mode-initialize|fringe-mode|fringe-query-style|ftp-mode|ftp|full-calc-keypad|full-calc|funcall-interactively|function\\\\*|function-called-at-point|function-equal|function-overload-p|function-put|function|gamegrid-add-score-insecure|gamegrid-add-score-with-update-game-score-1|gamegrid-add-score-with-update-game-score|gamegrid-add-score|gamegrid-cell-offset|gamegrid-characterp|gamegrid-color|gamegrid-colorize-glyph|gamegrid-display-type|gamegrid-event-x|gamegrid-event-y|gamegrid-get-cell|gamegrid-init-buffer|gamegrid-init|gamegrid-initialize-display|gamegrid-kill-timer|gamegrid-make-color-tty-face|gamegrid-make-color-x-face|gamegrid-make-face|gamegrid-make-glyph|gamegrid-make-grid-x-face|gamegrid-make-image-from-vector|gamegrid-make-mono-tty-face|gamegrid-make-mono-x-face|gamegrid-match-spec-list|gamegrid-match-spec|gamegrid-set-cell|gamegrid-set-display-table|gamegrid-set-face|gamegrid-set-font|gamegrid-set-timer|gamegrid-setup-default-font|gamegrid-setup-face|gamegrid-start-timer|gametree-apply-layout|gametree-apply-register-layout|gametree-break-line-here|gametree-children-shown-p|gametree-compute-and-insert-score|gametree-compute-reduced-score|gametree-current-branch-depth|gametree-current-branch-ply|gametree-current-branch-score|gametree-current-layout|gametree-entry-shown-p|gametree-forward-line|gametree-hack-file-layout|gametree-insert-new-leaf|gametree-insert-score|gametree-layout-to-register|gametree-looking-at-ply|gametree-merge-line|gametree-mode|gametree-mouse-break-line-here|gametree-mouse-hide-subtree|gametree-mouse-show-children-and-entry|gametree-mouse-show-subtree|gametree-prettify-heading|gametree-restore-layout|gametree-save-and-hack-layout|gametree-save-layout|gametree-show-children-and-entry|gametree-transpose-following-leaves|gcd|gdb--check-interpreter|gdb--if-arrow|gdb-add-handler|gdb-add-subscriber|gdb-append-to-partial-output|gdb-bind-function-to-buffer|gdb-breakpoints-buffer-name|gdb-breakpoints-list-handler-custom|gdb-breakpoints-list-handler|gdb-breakpoints-mode|gdb-buffer-shows-main-thread-p|gdb-buffer-type|gdb-changed-registers-handler|gdb-check-target-async|gdb-clear-inferior-io|gdb-clear-partial-output|gdb-concat-output|gdb-console|gdb-continue-thread|gdb-control-all-threads|gdb-control-current-thread|gdb-create-define-alist|gdb-current-buffer-frame|gdb-current-buffer-rules|gdb-current-buffer-thread|gdb-current-context-buffer-name|gdb-current-context-command|gdb-current-context-mode-name|gdb-delchar-or-quit|gdb-delete-breakpoint|gdb-delete-frame-or-window|gdb-delete-handler|gdb-delete-subscriber|gdb-disassembly-buffer-name|gdb-disassembly-handler-custom|gdb-disassembly-handler|gdb-disassembly-mode|gdb-disassembly-place-breakpoints|gdb-display-breakpoints-buffer|gdb-display-buffer|gdb-display-disassembly-buffer|gdb-display-disassembly-for-thread|gdb-display-gdb-buffer|gdb-display-io-buffer|gdb-display-locals-buffer|gdb-display-locals-for-thread|gdb-display-memory-buffer|gdb-display-registers-buffer|gdb-display-registers-for-thread|gdb-display-source-buffer|gdb-display-stack-buffer|gdb-display-stack-for-thread|gdb-display-threads-buffer|gdb-done-or-error|gdb-done|gdb-edit-locals-value|gdb-edit-register-value|gdb-edit-value-handler|gdb-edit-value|gdb-emit-signal|gdb-enable-debug|gdb-error|gdb-find-file-hook|gdb-find-watch-expression|gdb-force-mode-line-update|gdb-frame-breakpoints-buffer|gdb-frame-disassembly-buffer|gdb-frame-disassembly-for-thread|gdb-frame-gdb-buffer|gdb-frame-handler|gdb-frame-io-buffer|gdb-frame-locals-buffer|gdb-frame-locals-for-thread|gdb-frame-location|gdb-frame-memory-buffer|gdb-frame-registers-buffer|gdb-frame-registers-for-thread|gdb-frame-stack-buffer|gdb-frame-stack-for-thread|gdb-frame-threads-buffer|gdb-frames-mode|gdb-gdb|gdb-get-buffer-create|gdb-get-buffer|gdb-get-changed-registers|gdb-get-handler-function|gdb-get-location|gdb-get-main-selected-frame|gdb-get-many-fields|gdb-get-prompt|gdb-get-source-file-list|gdb-get-source-file|gdb-get-subscribers|gdb-get-target-string|gdb-goto-breakpoint|gdb-gud-context-call|gdb-gud-context-command|gdb-handle-reply|gdb-handler-function--cmacro|gdb-handler-function|gdb-handler-p--cmacro|gdb-handler-p|gdb-handler-pending-trigger--cmacro|gdb-handler-pending-trigger|gdb-handler-token-number--cmacro|gdb-handler-token-number|gdb-ignored-notification|gdb-inferior-filter|gdb-inferior-io--init-proc|gdb-inferior-io-mode|gdb-inferior-io-name|gdb-inferior-io-sentinel|gdb-init-1|gdb-init-buffer|gdb-input|gdb-internals|gdb-interrupt-thread|gdb-invalidate-breakpoints|gdb-invalidate-disassembly|gdb-invalidate-frames|gdb-invalidate-locals|gdb-invalidate-memory|gdb-invalidate-registers|gdb-invalidate-threads|gdb-io-eof|gdb-io-interrupt|gdb-io-quit|gdb-io-stop|gdb-json-partial-output|gdb-json-read-buffer|gdb-json-string|gdb-jsonify-buffer|gdb-line-posns|gdb-locals-buffer-name|gdb-locals-handler-custom|gdb-locals-handler|gdb-locals-mode|gdb-make-header-line-mouse-map|gdb-many-windows|gdb-mark-line|gdb-memory-buffer-name|gdb-memory-column-width|gdb-memory-format-binary|gdb-memory-format-hexadecimal|gdb-memory-format-menu-1|gdb-memory-format-menu|gdb-memory-format-octal|gdb-memory-format-signed|gdb-memory-format-unsigned|gdb-memory-mode|gdb-memory-set-address-event|gdb-memory-set-address|gdb-memory-set-columns|gdb-memory-set-rows|gdb-memory-show-next-page|gdb-memory-show-previous-page|gdb-memory-unit-byte|gdb-memory-unit-giant|gdb-memory-unit-halfword|gdb-memory-unit-menu-1|gdb-memory-unit-menu|gdb-memory-unit-word|gdb-mi-quote|gdb-mouse-jump|gdb-mouse-set-clear-breakpoint|gdb-mouse-toggle-breakpoint-fringe|gdb-mouse-toggle-breakpoint-margin|gdb-mouse-until|gdb-non-stop-handler|gdb-pad-string|gdb-parent-mode|gdb-partial-output-name|gdb-pending-handler-p|gdb-place-breakpoints|gdb-preempt-existing-or-display-buffer|gdb-preemptively-display-disassembly-buffer|gdb-preemptively-display-locals-buffer|gdb-preemptively-display-registers-buffer|gdb-preemptively-display-stack-buffer|gdb-propertize-header)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)g(?:db-put-breakpoint-icon|db-put-string|db-read-memory-custom|db-read-memory-handler|db-register-names-handler|db-registers-buffer-name|db-registers-handler-custom|db-registers-handler|db-registers-mode|db-remove-all-pending-triggers|db-remove-breakpoint-icons|db-remove-strings|db-reset|db-restore-windows|db-resync|db-rules-buffer-mode|db-rules-name-maker|db-rules-update-trigger|db-running|db-script-beginning-of-defun|db-script-calculate-indentation|db-script-end-of-defun|db-script-font-lock-syntactic-face|db-script-indent-line|db-script-mode|db-script-skip-to-head|db-select-frame|db-select-thread|db-send|db-set-buffer-rules|db-set-window-buffer|db-setq-thread-number|db-setup-windows|db-shell|db-show-run-p|db-show-stop-p|db-speedbar-auto-raise|db-speedbar-expand-node|db-speedbar-timer-fn|db-speedbar-update|db-stack-buffer-name|db-stack-list-frames-custom|db-stack-list-frames-handler|db-starting|db-step-thread|db-stopped|db-strip-string-backslash|db-table-add-row|db-table-column-sizes--cmacro|db-table-column-sizes|db-table-p--cmacro|db-table-p|db-table-right-align--cmacro|db-table-right-align|db-table-row-properties--cmacro|db-table-row-properties|db-table-rows--cmacro|db-table-rows|db-table-string|db-thread-created|db-thread-exited|db-thread-list-handler-custom|db-thread-list-handler|db-thread-selected|db-threads-buffer-name|db-threads-mode|db-toggle-breakpoint|db-toggle-switch-when-another-stopped|db-tooltip-print-1|db-tooltip-print|db-update-buffer-name|db-update-gud-running|db-update|db-var-create-handler|db-var-delete-1|db-var-delete-children|db-var-delete|db-var-evaluate-expression-handler|db-var-list-children-handler|db-var-list-children|db-var-set-format|db-var-update-handler|db-var-update|db-wait-for-pending|db|dbmi-bnf-async-record|dbmi-bnf-console-stream-output|dbmi-bnf-gdb-prompt|dbmi-bnf-incomplete-record-result|dbmi-bnf-init|dbmi-bnf-log-stream-output|dbmi-bnf-out-of-band-record|dbmi-bnf-output|dbmi-bnf-result-and-async-record-impl|dbmi-bnf-result-record|dbmi-bnf-skip-unrecognized|dbmi-bnf-stream-record|dbmi-bnf-target-stream-output|dbmi-is-number|dbmi-same-start|dbmi-start-with|enerate-fontset-menu|eneric-char-p|eneric-make-keywords-list|eneric-mode-internal|eneric-mode|eneric-p|eneric-primary-only-one-p|eneric-primary-only-p|ensym|entemp|et\\\\*|et-edebug-spec|et-file-char|et-free-disk-space|et-language-info|et-mode-local-parent|et-mru-window|et-next-valid-buffer|et-other-frame|et-scroll-bar-mode|et-unicode-property-internal|et-unused-iso-final-char|et-upcase-table|etenv-internal|etf|file-add-watch|file-rm-watch|lasses-change|lasses-convert-to-unreadable|lasses-custom-set|lasses-make-overlay|lasses-make-readable|lasses-make-unreadable|lasses-mode|lasses-overlay-p|lasses-parenthesis-exception-p|lasses-set-overlay-properties|lobal-auto-composition-mode|lobal-auto-revert-mode|lobal-cwarn-mode-check-buffers|lobal-cwarn-mode-cmhh|lobal-cwarn-mode-enable-in-buffers|lobal-cwarn-mode|lobal-ede-mode|lobal-eldoc-mode|lobal-font-lock-mode-check-buffers|lobal-font-lock-mode-cmhh|lobal-font-lock-mode-enable-in-buffers|lobal-font-lock-mode|lobal-hi-lock-mode-check-buffers|lobal-hi-lock-mode-cmhh|lobal-hi-lock-mode-enable-in-buffers|lobal-hi-lock-mode|lobal-highlight-changes-mode-check-buffers|lobal-highlight-changes-mode-cmhh|lobal-highlight-changes-mode-enable-in-buffers|lobal-highlight-changes-mode|lobal-highlight-changes|lobal-hl-line-highlight|lobal-hl-line-mode|lobal-hl-line-unhighlight-all|lobal-hl-line-unhighlight|lobal-linum-mode-check-buffers|lobal-linum-mode-cmhh|lobal-linum-mode-enable-in-buffers|lobal-linum-mode|lobal-prettify-symbols-mode-check-buffers|lobal-prettify-symbols-mode-cmhh|lobal-prettify-symbols-mode-enable-in-buffers|lobal-prettify-symbols-mode|lobal-reveal-mode|lobal-semantic-decoration-mode|lobal-semantic-highlight-edits-mode|lobal-semantic-highlight-func-mode|lobal-semantic-idle-completions-mode|lobal-semantic-idle-local-symbol-highlight-mode|lobal-semantic-idle-scheduler-mode|lobal-semantic-idle-summary-mode|lobal-semantic-mru-bookmark-mode|lobal-semantic-show-parser-state-mode|lobal-semantic-show-unmatched-syntax-mode|lobal-semantic-stickyfunc-mode|lobal-semanticdb-minor-mode|lobal-set-scheme-interaction-buffer|lobal-srecode-minor-mode|lobal-subword-mode|lobal-superword-mode|lobal-visual-line-mode-check-buffers|lobal-visual-line-mode-cmhh|lobal-visual-line-mode-enable-in-buffers|lobal-visual-line-mode|lobal-whitespace-mode|lobal-whitespace-newline-mode|lobal-whitespace-toggle-options|lyphless-set-char-table-range|mm-called-interactively-p|mm-customize-mode|mm-error|mm-format-time-string|mm-image-load-path-for-library|mm-image-search-load-path|mm-labels|mm-message|mm-regexp-concat|mm-tool-bar-from-list|mm-widget-p|mm-write-region|nus--random-face-with-type|nus-1|nus-Folder-save-name|nus-active|nus-add-buffer|nus-add-configuration|nus-add-shutdown|nus-add-text-properties-when|nus-add-text-properties|nus-add-to-sorted-list|nus-agent-batch-fetch|nus-agent-batch|nus-agent-delete-group|nus-agent-fetch-session|nus-agent-find-parameter|nus-agent-get-function|nus-agent-get-undownloaded-list|nus-agent-group-covered-p|nus-agent-method-p|nus-agent-possibly-alter-active|nus-agent-possibly-save-gcc|nus-agent-regenerate|nus-agent-rename-group|nus-agent-request-article|nus-agent-retrieve-headers|nus-agent-save-active|nus-agent-save-group-info|nus-agent-store-article|nus-agentize|nus-alist-pull|nus-alive-p|nus-and|nus-annotation-in-region-p|nus-apply-kill-file-internal|nus-apply-kill-file|nus-archive-server-wanted-p|nus-article-date-lapsed|nus-article-date-local|nus-article-date-original|nus-article-de-base64-unreadable|nus-article-de-quoted-unreadable|nus-article-decode-HZ|nus-article-decode-encoded-words|nus-article-delete-invisible-text|nus-article-display-x-face|nus-article-edit-article|nus-article-edit-done|nus-article-edit-mode|nus-article-fill-cited-article|nus-article-fill-cited-long-lines|nus-article-hide-boring-headers|nus-article-hide-citation-in-followups|nus-article-hide-citation-maybe|nus-article-hide-citation|nus-article-hide-headers|nus-article-hide-pem|nus-article-hide-signature|nus-article-highlight-citation|nus-article-html|nus-article-mail|nus-article-mode|nus-article-next-page|nus-article-outlook-deuglify-article|nus-article-outlook-repair-attribution|nus-article-outlook-unwrap-lines|nus-article-prepare-display|nus-article-prepare|nus-article-prev-page|nus-article-read-summary-keys|nus-article-remove-cr|nus-article-remove-trailing-blank-lines|nus-article-save|nus-article-set-window-start|nus-article-setup-buffer|nus-article-strip-leading-blank-lines|nus-article-treat-overstrike|nus-article-unsplit-urls|nus-article-wash-html|nus-assq-delete-all|nus-async-halt-prefetch|nus-async-prefetch-article|nus-async-prefetch-next|nus-async-prefetch-remove-group|nus-async-request-fetched-article|nus-atomic-progn-assign|nus-atomic-progn|nus-atomic-setq|nus-backlog-enter-article|nus-backlog-remove-article|nus-backlog-request-article|nus-batch-kill|nus-batch-score|nus-binary-mode|nus-bind-print-variables|nus-blocked-images|nus-bookmark-bmenu-list|nus-bookmark-jump|nus-bookmark-set|nus-bound-and-true-p|nus-boundp|nus-browse-foreign-server|nus-buffer-exists-p|nus-buffer-live-p|nus-buffers|nus-bug|nus-button-mailto|nus-button-reply|nus-byte-compile|nus-cache-articles-in-group|nus-cache-close|nus-cache-delete-group|nus-cache-enter-article|nus-cache-enter-remove-article|nus-cache-file-contents|nus-cache-generate-active|nus-cache-generate-nov-databases|nus-cache-open|nus-cache-possibly-alter-active|nus-cache-possibly-enter-article|nus-cache-possibly-remove-articles|nus-cache-remove-article|nus-cache-rename-group|nus-cache-request-article|nus-cache-retrieve-headers|nus-cache-save-buffers|nus-cache-update-article|nus-cached-article-p|nus-character-to-event|nus-check-backend-function|nus-check-reasonable-setup|nus-completing-read|nus-configure-windows|nus-continuum-version|nus-convert-article-to-rmail|nus-convert-face-to-png|nus-convert-gray-x-face-to-xpm|nus-convert-image-to-gray-x-face|nus-convert-png-to-face|nus-copy-article-buffer|nus-copy-file|nus-copy-overlay|nus-copy-sequence|nus-create-hash-size|nus-create-image|nus-create-info-command|nus-current-score-file-nondirectory|nus-data-find|nus-data-header|nus-date-get-time|nus-date-iso8601|nus-dd-mmm|nus-deactivate-mark|nus-declare-backend|nus-decode-newsgroups|nus-define-group-parameter|nus-define-keymap|nus-define-keys-1|nus-define-keys-safe|nus-define-keys|nus-delay-article|nus-delay-initialize|nus-delay-send-queue|nus-delete-alist|nus-delete-directory|nus-delete-duplicates|nus-delete-file|nus-delete-first|nus-delete-gnus-frame|nus-delete-line|nus-delete-overlay|nus-demon-add-disconnection|nus-demon-add-handler|nus-demon-add-rescan|nus-demon-add-scan-timestamps|nus-demon-add-scanmail|nus-demon-cancel|nus-demon-init|nus-demon-remove-handler|nus-display-x-face-in-from|nus-draft-mode|nus-draft-reminder|nus-dribble-enter|nus-dribble-touch|nus-dup-enter-articles|nus-dup-suppress-articles|nus-dup-unsuppress-article|nus-edit-form|nus-emacs-completing-read|nus-emacs-version|nus-ems-redefine|nus-enter-server-buffer|nus-ephemeral-group-p|nus-error|nus-eval-in-buffer-window|nus-execute|nus-expand-group-parameters??|nus-expunge|nus-extended-version|nus-extent-detached-p|nus-extent-start-open|nus-extract-address-components|nus-extract-references|nus-face-from-file|nus-faces-at|nus-fetch-field|nus-fetch-group-other-frame|nus-fetch-group|nus-fetch-original-field|nus-file-newer-than|nus-final-warning|nus-find-method-for-group|nus-find-subscribed-addresses|nus-find-text-property-region|nus-float-time|nus-folder-save-name|nus-frame-or-window-display-name|nus-generate-new-group-name|nus-get-buffer-create|nus-get-buffer-window|nus-get-display-table|nus-get-info|nus-get-text-property-excluding-characters-with-faces|nus-getenv-nntpserver|nus-gethash-safe|nus-gethash|nus-globalify-regexp|nus-goto-char|nus-goto-colon|nus-graphic-display-p|nus-grep-in-list|nus-group-add-parameter|nus-group-add-score|nus-group-auto-expirable-p|nus-group-customize|nus-group-decoded-name|nus-group-entry|nus-group-fast-parameter|nus-group-find-parameter|nus-group-first-unread-group|nus-group-foreign-p|nus-group-full-name|nus-group-get-new-news|nus-group-get-parameter|nus-group-group-name|nus-group-guess-full-name-from-command-method|nus-group-insert-group-line|nus-group-iterate|nus-group-list-groups|nus-group-mail|nus-group-make-help-group|nus-group-method|nus-group-name-charset|nus-group-name-decode|nus-group-name-to-method|nus-group-native-p|nus-group-news|nus-group-parameter-value|nus-group-position-point|nus-group-post-news|nus-group-prefixed-name|nus-group-prefixed-p|nus-group-quit-config|nus-group-quit|nus-group-read-only-p|nus-group-real-name|nus-group-real-prefix|nus-group-remove-parameter|nus-group-save-newsrc|nus-group-secondary-p|nus-group-send-queue|nus-group-server|nus-group-set-info|nus-group-set-mode-line|nus-group-set-parameter|nus-group-setup-buffer|nus-group-short-name|nus-group-split-fancy|nus-group-split-setup|nus-group-split-update|nus-group-split|nus-group-startup-message|nus-group-total-expirable-p|nus-group-unread|nus-group-update-group|nus-groups-from-server|nus-header-from|nus-highlight-selected-tree|nus-horizontal-recenter|nus-html-prefetch-images|nus-ido-completing-read|nus-image-type-available-p|nus-indent-rigidly|nus-info-find-node|nus-info-group|nus-info-level|nus-info-marks|nus-info-method|nus-info-params|nus-info-rank|nus-info-read|nus-info-score|nus-info-set-entry|nus-info-set-group|nus-info-set-level|nus-info-set-marks|nus-info-set-method|nus-info-set-params|nus-info-set-rank|nus-info-set-read|nus-info-set-score|nus-insert-random-face-header|nus-insert-random-x-face-header|nus-interactive|nus-intern-safe|nus-intersection|nus-invisible-p|nus-iswitchb-completing-read|nus-jog-cache|nus-key-press-event-p|nus-kill-all-overlays)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:gnus-kill-buffer|gnus-kill-ephemeral-group|gnus-kill-file-edit-file|gnus-kill-file-raise-followups-to-author|gnus-kill-save-kill-buffer|gnus-kill|gnus-list-debbugs|gnus-list-memq-of-list|gnus-list-of-read-articles|gnus-list-of-unread-articles|gnus-local-set-keys|gnus-mail-strip-quoted-names|gnus-mailing-list-insinuate|gnus-mailing-list-mode|gnus-make-directory|gnus-make-hashtable|gnus-make-local-hook|gnus-make-overlay|gnus-make-predicate-1|gnus-make-predicate|gnus-make-sort-function-1|gnus-make-sort-function|gnus-make-thread-indent-array|gnus-map-function|gnus-mapcar|gnus-mark-active-p|gnus-match-substitute-replacement|gnus-max-width-function|gnus-member-of-valid|gnus-merge|gnus-message-with-timestamp|gnus-message|gnus-method-ephemeral-p|gnus-method-equal|gnus-method-option-p|gnus-method-simplify|gnus-method-to-full-server-name|gnus-method-to-server-name|gnus-method-to-server|gnus-methods-equal-p|gnus-methods-sloppily-equal|gnus-methods-using|gnus-mime-view-all-parts|gnus-mode-line-buffer-identification|gnus-mode-string-quote|gnus-move-overlay|gnus-msg-mail|gnus-mule-max-width-function|gnus-multiple-choice|gnus-narrow-to-body|gnus-narrow-to-page|gnus-native-method-p|gnus-news-group-p|gnus-newsgroup-directory-form|gnus-newsgroup-kill-file|gnus-newsgroup-savable-name|gnus-newsrc-parse-options|gnus-next-char-property-change|gnus-no-server-1|gnus-no-server|gnus-not-ignore|gnus-notifications|gnus-offer-save-summaries|gnus-online|gnus-open-agent|gnus-open-server|gnus-or|gnus-other-frame|gnus-outlook-deuglify-article|gnus-output-to-mail|gnus-output-to-rmail|gnus-overlay-buffer|gnus-overlay-end|gnus-overlay-get|gnus-overlay-put|gnus-overlay-start|gnus-overlays-at|gnus-overlays-in|gnus-parameter-charset|gnus-parameter-ham-marks|gnus-parameter-ham-process-destination|gnus-parameter-ham-resend-to|gnus-parameter-large-newsgroup-initial|gnus-parameter-post-method|gnus-parameter-registry-ignore|gnus-parameter-spam-autodetect-methods|gnus-parameter-spam-autodetect|gnus-parameter-spam-contents|gnus-parameter-spam-marks|gnus-parameter-spam-process-destination|gnus-parameter-spam-process|gnus-parameter-spam-resend-to|gnus-parameter-subscribed|gnus-parameter-to-address|gnus-parameter-to-list|gnus-parameters-get-parameter|gnus-parent-id|gnus-parse-without-error|gnus-pick-mode|gnus-plugged|gnus-possibly-generate-tree|gnus-possibly-score-headers|gnus-post-news|gnus-pp-to-string|gnus-pp|gnus-previous-char-property-change|gnus-prin1-to-string|gnus-prin1|gnus-process-get|gnus-process-plist|gnus-process-put|gnus-put-display-table|gnus-put-image|gnus-put-overlay-excluding-newlines|gnus-put-text-property-excluding-characters-with-faces|gnus-put-text-property-excluding-newlines|gnus-put-text-property|gnus-random-face|gnus-random-x-face|gnus-range-add|gnus-read-event-char|gnus-read-group|gnus-read-init-file|gnus-read-method|gnus-read-shell-command|gnus-recursive-directory-files|gnus-redefine-select-method-widget|gnus-region-active-p|gnus-registry-handle-action|gnus-registry-initialize|gnus-registry-install-hooks|gnus-remassoc|gnus-remove-from-range|gnus-remove-if-not|gnus-remove-if|gnus-remove-image|gnus-remove-text-properties-when|gnus-remove-text-with-property|gnus-rename-file|gnus-replace-in-string|gnus-request-article-this-buffer|gnus-request-post|gnus-request-type|gnus-rescale-image|gnus-run-hook-with-args|gnus-run-hooks|gnus-run-mode-hooks|gnus-same-method-different-name|gnus-score-adaptive|gnus-score-advanced|gnus-score-close|gnus-score-customize|gnus-score-delta-default|gnus-score-file-name|gnus-score-find-trace|gnus-score-flush-cache|gnus-score-followup-article|gnus-score-followup-thread|gnus-score-headers|gnus-score-mode|gnus-score-save|gnus-secondary-method-p|gnus-seconds-month|gnus-seconds-today|gnus-seconds-year|gnus-select-frame-set-input-focus|gnus-select-lowest-window|gnus-server-add-address|gnus-server-equal|gnus-server-extend-method|gnus-server-get-method|gnus-server-server-name|gnus-server-set-info|gnus-server-status|gnus-server-string|gnus-server-to-method|gnus-servers-using-backend|gnus-set-active|gnus-set-file-modes|gnus-set-info|gnus-set-process-plist|gnus-set-process-query-on-exit-flag|gnus-set-sorted-intersection|gnus-set-window-start|gnus-set-work-buffer|gnus-sethash|gnus-short-group-name|gnus-shutdown|gnus-sieve-article-add-rule|gnus-sieve-generate|gnus-sieve-update|gnus-similar-server-opened|gnus-simplify-mode-line|gnus-slave-no-server|gnus-slave-unplugged|gnus-slave|gnus-sloppily-equal-method-parameters|gnus-sorted-complement|gnus-sorted-difference|gnus-sorted-intersection|gnus-sorted-ndifference|gnus-sorted-nintersection|gnus-sorted-nunion|gnus-sorted-range-intersection|gnus-sorted-union|gnus-splash-svg-color-symbols|gnus-splash|gnus-split-references|gnus-start-date-timer|gnus-stop-date-timer|gnus-string-equal|gnus-string-mark-left-to-right|gnus-string-match-p|gnus-string-or-1|gnus-string-or|gnus-string-prefix-p|gnus-string-remove-all-properties|gnus-string<|gnus-string>|gnus-strip-whitespace|gnus-subscribe-topics|gnus-summary-article-number|gnus-summary-bookmark-jump|gnus-summary-buffer-name|gnus-summary-cancel-article|gnus-summary-current-score|gnus-summary-exit|gnus-summary-followup-to-mail-with-original|gnus-summary-followup-to-mail|gnus-summary-followup-with-original|gnus-summary-followup|gnus-summary-increase-score|gnus-summary-insert-cached-articles|gnus-summary-insert-line|gnus-summary-last-subject|gnus-summary-line-format-spec|gnus-summary-lower-same-subject-and-select|gnus-summary-lower-same-subject|gnus-summary-lower-score|gnus-summary-lower-thread|gnus-summary-mail-forward|gnus-summary-mail-other-window|gnus-summary-news-other-window|gnus-summary-position-point|gnus-summary-post-forward|gnus-summary-post-news|gnus-summary-raise-same-subject-and-select|gnus-summary-raise-same-subject|gnus-summary-raise-score|gnus-summary-raise-thread|gnus-summary-read-group|gnus-summary-reply-with-original|gnus-summary-reply|gnus-summary-resend-bounced-mail|gnus-summary-resend-message|gnus-summary-save-article-folder|gnus-summary-save-article-vm|gnus-summary-save-in-folder|gnus-summary-save-in-vm|gnus-summary-score-map|gnus-summary-send-map|gnus-summary-set-agent-mark|gnus-summary-set-score|gnus-summary-skip-intangible|gnus-summary-supersede-article|gnus-summary-wide-reply-with-original|gnus-summary-wide-reply|gnus-suppress-keymap|gnus-symbolic-argument|gnus-sync-initialize|gnus-sync-install-hooks|gnus-time-iso8601|gnus-timer--function|gnus-tool-bar-update|gnus-topic-mode|gnus-topic-remove-group|gnus-topic-set-parameters|gnus-treat-article|gnus-treat-from-gravatar|gnus-treat-from-picon|gnus-treat-mail-gravatar|gnus-treat-mail-picon|gnus-treat-newsgroups-picon|gnus-tree-close|gnus-tree-open|gnus-try-warping-via-registry|gnus-turn-off-edit-menu|gnus-undo-mode|gnus-undo-register|gnus-union|gnus-unplugged|gnus-update-alist-soft|gnus-update-format|gnus-update-read-articles|gnus-url-unhex-string|gnus-url-unhex|gnus-use-long-file-name|gnus-user-format-function-D|gnus-user-format-function-d|gnus-uu-decode-binhex-view|gnus-uu-decode-binhex|gnus-uu-decode-save-view|gnus-uu-decode-save|gnus-uu-decode-unshar-and-save-view|gnus-uu-decode-unshar-and-save|gnus-uu-decode-unshar-view|gnus-uu-decode-unshar|gnus-uu-decode-uu-and-save-view|gnus-uu-decode-uu-and-save|gnus-uu-decode-uu-view|gnus-uu-decode-uu|gnus-uu-delete-work-dir|gnus-uu-digest-mail-forward|gnus-uu-digest-post-forward|gnus-uu-extract-map|gnus-uu-invert-processable|gnus-uu-mark-all|gnus-uu-mark-buffer|gnus-uu-mark-by-regexp|gnus-uu-mark-map|gnus-uu-mark-over|gnus-uu-mark-region|gnus-uu-mark-series|gnus-uu-mark-sparse|gnus-uu-mark-thread|gnus-uu-post-news|gnus-uu-unmark-thread|gnus-version|gnus-virtual-group-p|gnus-visual-p|gnus-window-edges|gnus-window-inside-pixel-edges|gnus-with-output-to-file|gnus-write-active-file|gnus-write-buffer|gnus-x-face-from-file|gnus-xmas-define|gnus-xmas-redefine|gnus-xmas-splash|gnus-y-or-n-p|gnus-yes-or-no-p|gnus|gnutls-available-p|gnutls-boot|gnutls-bye|gnutls-deinit|gnutls-error-fatalp|gnutls-error-string|gnutls-errorp|gnutls-get-initstage|gnutls-message-maybe|gnutls-negotiate|gnutls-peer-status-warning-describe|gnutls-peer-status|gomoku--intangible|gomoku-beginning-of-line|gomoku-check-filled-qtuple|gomoku-click|gomoku-crash-game|gomoku-cross-qtuple|gomoku-display-statistics|gomoku-emacs-plays|gomoku-end-of-line|gomoku-find-filled-qtuple|gomoku-goto-square|gomoku-goto-xy|gomoku-human-plays|gomoku-human-resigns|gomoku-human-takes-back|gomoku-index-to-x|gomoku-index-to-y|gomoku-init-board|gomoku-init-display|gomoku-init-score-table|gomoku-init-square-score|gomoku-max-height|gomoku-max-width|gomoku-mode|gomoku-mouse-play|gomoku-move-down|gomoku-move-ne|gomoku-move-nw|gomoku-move-se|gomoku-move-sw|gomoku-move-up|gomoku-nb-qtuples|gomoku-offer-a-draw|gomoku-play-move|gomoku-plot-square|gomoku-point-square|gomoku-point-y|gomoku-prompt-for-move|gomoku-prompt-for-other-game|gomoku-start-game|gomoku-strongest-square|gomoku-switch-to-window|gomoku-take-back|gomoku-terminate-game|gomoku-update-score-in-direction|gomoku-update-score-table|gomoku-xy-to-index|gomoku|goto-address-at-mouse|goto-address-at-point|goto-address-find-address-at-point|goto-address-fontify-region|goto-address-fontify|goto-address-mode|goto-address-prog-mode|goto-address-unfontify|goto-address|goto-history-element|goto-line|goto-next-locus|gpm-mouse-disable|gpm-mouse-enable|gpm-mouse-mode|gpm-mouse-start|gpm-mouse-stop|gravatar-retrieve-synchronously|gravatar-retrieve|grep-apply-setting|grep-compute-defaults|grep-default-command|grep-expand-template|grep-filter|grep-find|grep-mode|grep-probe|grep-process-setup|grep-read-files|grep-read-regexp|grep-tag-default|grep|gs-height-in-pt|gs-load-image|gs-options|gs-set-ghostview-colors-window-prop|gs-set-ghostview-window-prop|gs-width-in-pt|gud-backward-sexp|gud-basic-call|gud-call|gud-common-init|gud-dbx-marker-filter|gud-dbx-massage-args|gud-def|gud-dguxdbx-marker-filter|gud-display-frame|gud-display-line|gud-expansion-speedbar-buttons|gud-expr-compound-sep|gud-expr-compound|gud-file-name|gud-filter|gud-find-c-expr|gud-find-class|gud-find-expr|gud-find-file|gud-format-command|gud-forward-sexp|gud-gdb-completion-at-point|gud-gdb-completions-1|gud-gdb-completions|gud-gdb-fetch-lines-filter|gud-gdb-get-stackframe|gud-gdb-goto-stackframe|gud-gdb-marker-filter|gud-gdb-run-command-fetch-lines|gud-gdb|gud-gdbmi-completions|gud-gdbmi-fetch-lines-filter|gud-gdbmi-marker-filter|gud-goto-info|gud-guiler-marker-filter|gud-innermost-expr|gud-install-speedbar-variables|gud-irixdbx-marker-filter|gud-jdb-analyze-source|gud-jdb-build-class-source-alist-for-file|gud-jdb-build-class-source-alist|gud-jdb-build-source-files-list|gud-jdb-find-source-file|gud-jdb-find-source-using-classpath|gud-jdb-find-source|gud-jdb-marker-filter|gud-jdb-massage-args|gud-jdb-parse-classpath-string|gud-jdb-skip-block|gud-jdb-skip-character-literal|gud-jdb-skip-id-ish-thing|gud-jdb-skip-single-line-comment|gud-jdb-skip-string-literal|gud-jdb-skip-traditional-or-documentation-comment|gud-jdb-skip-whitespace-and-comments|gud-jdb-skip-whitespace|gud-kill-buffer-hook|gud-marker-filter|gud-mipsdbx-marker-filter|gud-mode|gud-next-expr|gud-pdb-marker-filter|gud-perldb-marker-filter|gud-perldb-massage-args|gud-prev-expr|gud-query-cmdline|gud-read-address|gud-refresh|gud-reset|gud-sdb-find-file|gud-sdb-marker-filter|gud-sentinel|gud-set-buffer|gud-speedbar-buttons|gud-speedbar-item-info|gud-stop-subjob|gud-symbol|gud-tool-bar-item-visible-no-fringe|gud-tooltip-activate-mouse-motions-if-enabled|gud-tooltip-activate-mouse-motions|gud-tooltip-change-major-mode|gud-tooltip-dereference|gud-tooltip-mode|gud-tooltip-mouse-motion|gud-tooltip-print-command|gud-tooltip-process-output|gud-tooltip-tips|gud-val|gud-watch|gud-xdb-marker-filter|gud-xdb-massage-args|gui--selection-value-internal|gui--valid-simple-selection-p|gui-call|gui-get-primary-selection|gui-get-selection|gui-method--name|gui-method-declare|gui-method-define|gui-method|gui-select-text|gui-selection-value|gui-set-selection|guiler|gv--defsetter|gv--defun-declaration|gv-deref|gv-get|gv-ref|hack-local-variables-apply|hack-local-variables-confirm|hack-local-variables-filter|hack-local-variables-prop-line|hack-one-local-variable--obsolete|hack-one-local-variable-constantp|hack-one-local-variable-eval-safep|hack-one-local-variable-quotep|hack-one-local-variable|handle-delete-frame|handle-focus-in|handle-focus-out|handle-save-session|handle-select-window|handwrite-10pt|handwrite-11pt|handwrite-12pt|handwrite-13pt|handwrite-insert-font|handwrite-insert-header|handwrite-insert-info|handwrite-insert-preamble|handwrite-set-pagenumber-off|handwrite-set-pagenumber-on|handwrite-set-pagenumber|handwrite|hangul-input-method-activate|hanoi-0|hanoi-goto-char|hanoi-insert-ring|hanoi-internal|hanoi-move-ring|hanoi-n|hanoi-pos-on-tower-p|hanoi-put-face|hanoi-ring-to-pos|hanoi-sit-for|hanoi-unix-64|hanoi-unix|hanoi|hash-table-keys|hash-table-values|hashcash-already-paid-p|hashcash-cancel-async|hashcash-check-payment|hashcash-generate-payment-async|hashcash-generate-payment|hashcash-insert-payment-async-2|hashcash-insert-payment-async|hashcash-insert-payment|hashcash-payment-required|hashcash-payment-to|hashcash-point-at-bol|hashcash-point-at-eol|hashcash-processes-running-p|hashcash-strip-quoted-names|hashcash-token-substring|hashcash-verify-payment|hashcash-version|hashcash-wait-async|hashcash-wait-or-cancel|he--all-buffers|he-buffer-member|he-capitalize-first|he-concat-directory-file-name|he-dabbrev-beg|he-dabbrev-kill-search|he-dabbrev-search|he-file-name-beg|he-init-string|he-kill-beg|he-line-beg|he-line-search-regexp|he-line-search|he-lisp-symbol-beg)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:he-list-beg|he-list-search|he-ordinary-case-p|he-reset-string|he-string-member|he-substitute-string|he-transfer-case|he-whole-kill-search|hebrew-font-get-precomposed|hebrew-shape-gstring|help--binding-locus|help--key-binding-keymap|help-C-file-name|help-add-fundoc-usage|help-at-pt-cancel-timer|help-at-pt-kbd-string|help-at-pt-maybe-display|help-at-pt-set-timer|help-at-pt-string|help-bookmark-jump|help-bookmark-make-record|help-button-action|help-describe-category-set|help-do-arg-highlight|help-do-xref|help-fns--autoloaded-p|help-fns--compiler-macro|help-fns--interactive-only|help-fns--key-bindings|help-fns--obsolete|help-fns--parent-mode|help-fns--signature|help-follow-mouse|help-follow-symbol|help-follow|help-for-help-internal-doc|help-for-help-internal|help-for-help|help-form-show|help-function-arglist|help-go-back|help-go-forward|help-highlight-arg|help-highlight-arguments|help-insert-string|help-insert-xref-button|help-key-description|help-make-usage|help-make-xrefs|help-mode-finish|help-mode-menu|help-mode-revert-buffer|help-mode-setup|help-mode|help-print-return-message|help-quit|help-split-fundoc|help-window-display-message|help-window-setup|help-with-tutorial-spec-language|help-with-tutorial|help-xref-button|help-xref-go-back|help-xref-go-forward|help-xref-interned|help-xref-on-pp|help|hexl-C-c-prefix|hexl-C-x-prefix|hexl-ESC-prefix|hexl-activate-ruler|hexl-address-to-marker|hexl-ascii-start-column|hexl-backward-char|hexl-backward-short|hexl-backward-word|hexl-beginning-of-1k-page|hexl-beginning-of-512b-page|hexl-beginning-of-buffer|hexl-beginning-of-line|hexl-char-after-point|hexl-current-address|hexl-end-of-1k-page|hexl-end-of-512b-page|hexl-end-of-buffer|hexl-end-of-line|hexl-find-file|hexl-follow-ascii-find|hexl-follow-ascii|hexl-follow-line|hexl-forward-char|hexl-forward-short|hexl-forward-word|hexl-goto-address|hexl-goto-hex-address|hexl-hex-char-to-integer|hexl-hex-string-to-integer|hexl-highlight-line-range|hexl-htoi|hexl-insert-char|hexl-insert-decimal-char|hexl-insert-hex-char|hexl-insert-hex-string|hexl-insert-multibyte-char|hexl-insert-octal-char|hexl-isearch-search-function|hexl-line-displen|hexl-maybe-dehexlify-buffer|hexl-menu|hexl-mode--minor-mode-p|hexl-mode--setq-local|hexl-mode-exit|hexl-mode-ruler|hexl-mode|hexl-next-line|hexl-oct-char-to-integer|hexl-octal-string-to-integer|hexl-options|hexl-previous-line|hexl-print-current-point-info|hexl-printable-character|hexl-quoted-insert|hexl-revert-buffer-function|hexl-rulerize|hexl-save-buffer|hexl-scroll-down|hexl-scroll-up|hexl-self-insert-command|hexlify-buffer|hfy-begin-span|hfy-bgcol|hfy-box-to-border-assoc|hfy-box-to-style|hfy-box|hfy-buffer|hfy-colour-vals|hfy-colour|hfy-combined-face-spec|hfy-compile-face-map|hfy-compile-stylesheet|hfy-copy-and-fontify-file|hfy-css-name|hfy-decor|hfy-default-footer|hfy-default-header|hfy-dirname|hfy-end-span|hfy-face-at|hfy-face-attr-for-class|hfy-face-or-def-to-name|hfy-face-resolve-face|hfy-face-to-css-default|hfy-face-to-style-i|hfy-face-to-style|hfy-fallback-colour-values|hfy-family|hfy-find-invisible-ranges|hfy-flatten-style|hfy-fontified-p|hfy-fontify-buffer|hfy-force-fontification|hfy-href-stub|hfy-href|hfy-html-dekludge-buffer|hfy-html-enkludge-buffer|hfy-html-quote|hfy-init-progn|hfy-initfile|hfy-interq|hfy-invisible-name|hfy-invisible|hfy-kludge-cperl-mode|hfy-link-style-string|hfy-link-style|hfy-list-files|hfy-load-tags-cache|hfy-lookup|hfy-make-directory|hfy-mark-tag-hrefs|hfy-mark-tag-names|hfy-mark-trailing-whitespace|hfy-merge-adjacent-spans|hfy-opt|hfy-overlay-props-at|hfy-parse-tags-buffer|hfy-prepare-index-i|hfy-prepare-index|hfy-prepare-tag-map|hfy-prop-invisible-p|hfy-relstub|hfy-save-buffer-state|hfy-save-initvar|hfy-save-kill-buffers|hfy-shell|hfy-size-to-int|hfy-size|hfy-slant|hfy-sprintf-stylesheet|hfy-subtract-maps|hfy-tags-for-file|hfy-text-p|hfy-triplet|hfy-unmark-trailing-whitespace|hfy-weight|hfy-which-etags|hfy-width|hfy-word-regex|hi-lock--hashcons|hi-lock--regexps-at-point|hi-lock-face-buffer|hi-lock-face-phrase-buffer|hi-lock-face-symbol-at-point|hi-lock-find-patterns|hi-lock-font-lock-hook|hi-lock-keyword->face|hi-lock-line-face-buffer|hi-lock-mode-set-explicitly|hi-lock-mode|hi-lock-process-phrase|hi-lock-read-face-name|hi-lock-regexp-okay|hi-lock-set-file-patterns|hi-lock-set-pattern|hi-lock-unface-buffer|hi-lock-unload-function|hi-lock-write-interactive-patterns|hide-body|hide-entry|hide-ifdef-block|hide-ifdef-define|hide-ifdef-guts|hide-ifdef-mode-menu|hide-ifdef-mode|hide-ifdef-region-internal|hide-ifdef-region|hide-ifdef-set-define-alist|hide-ifdef-toggle-outside-read-only|hide-ifdef-toggle-read-only|hide-ifdef-toggle-shadowing|hide-ifdef-undef|hide-ifdef-use-define-alist|hide-ifdefs|hide-leaves|hide-other|hide-region-body|hide-sublevels|hide-subtree|hif-add-new-defines|hif-after-revert-function|hif-and-expr|hif-and|hif-canonicalize-tokens|hif-canonicalize|hif-clear-all-ifdef-defined|hif-comma|hif-comp-expr|hif-compress-define-list|hif-conditional|hif-define-macro|hif-define-operator|hif-defined|hif-delimit|hif-divide|hif-end-of-line|hif-endif-to-ifdef|hif-eq-expr|hif-equal|hif-evaluate-macro|hif-evaluate-region|hif-expand-token-list|hif-expr|hif-exprlist|hif-factor|hif-find-any-ifX|hif-find-define|hif-find-ifdef-block|hif-find-next-relevant|hif-find-previous-relevant|hif-find-range|hif-flatten|hif-get-argument-list|hif-greater-equal|hif-greater|hif-hide-line|hif-if-valid-identifier-p|hif-ifdef-to-endif|hif-invoke|hif-less-equal|hif-less|hif-logand-expr|hif-logand|hif-logior-expr|hif-logior|hif-lognot|hif-logshift-expr|hif-logxor-expr|hif-logxor|hif-looking-at-elif|hif-looking-at-else|hif-looking-at-endif|hif-looking-at-ifX|hif-lookup|hif-macro-supply-arguments|hif-make-range|hif-math|hif-mathify-binop|hif-mathify|hif-merge-ifdef-region|hif-minus|hif-modulo|hif-muldiv-expr|hif-multiply|hif-nexttoken|hif-not|hif-notequal|hif-or-expr|hif-or|hif-parse-exp|hif-parse-macro-arglist|hif-place-macro-invocation|hif-plus|hif-possibly-hide|hif-range-elif|hif-range-else|hif-range-end|hif-range-start|hif-recurse-on|hif-set-var|hif-shiftleft|hif-shiftright|hif-show-all|hif-show-ifdef-region|hif-string-concatenation|hif-string-to-number|hif-stringify|hif-token-concat|hif-token-concatenation|hif-token-stringification|hif-tokenize|hif-undefine-symbol|highlight-changes-mode-set-explicitly|highlight-changes-mode-turn-on|highlight-changes-mode|highlight-changes-next-change|highlight-changes-previous-change|highlight-changes-remove-highlight|highlight-changes-rotate-faces|highlight-changes-visible-mode|highlight-compare-buffers|highlight-compare-with-file|highlight-lines-matching-regexp|highlight-markup-buffers|highlight-phrase|highlight-regexp|highlight-symbol-at-point|hilit-chg-bump-change|hilit-chg-clear|hilit-chg-cust-fix-changes-face-list|hilit-chg-desktop-restore|hilit-chg-display-changes|hilit-chg-fixup|hilit-chg-get-diff-info|hilit-chg-get-diff-list-hk|hilit-chg-hide-changes|hilit-chg-make-list|hilit-chg-make-ov|hilit-chg-map-changes|hilit-chg-set-face-on-change|hilit-chg-set|hilit-chg-unload-function|hilit-chg-update|hippie-expand|hl-line-highlight|hl-line-make-overlay|hl-line-mode|hl-line-move|hl-line-unhighlight|hl-line-unload-function|hmac-md5-96|hmac-md5|holiday-list|holidays|horizontal-scroll-bar-mode|horizontal-scroll-bars-available-p|how-many|hs-already-hidden-p|hs-c-like-adjust-block-beginning|hs-discard-overlays|hs-find-block-beginning|hs-forward-sexp|hs-grok-mode-type|hs-hide-all|hs-hide-block-at-point|hs-hide-block|hs-hide-comment-region|hs-hide-initial-comment-block|hs-hide-level-recursive|hs-hide-level|hs-inside-comment-p|hs-isearch-show-temporary|hs-isearch-show|hs-life-goes-on|hs-looking-at-block-start-p|hs-make-overlay|hs-minor-mode-menu|hs-minor-mode|hs-mouse-toggle-hiding|hs-overlay-at|hs-show-all|hs-show-block|hs-toggle-hiding|html-autoview-mode|html-checkboxes|html-current-defun-name|html-headline-1|html-headline-2|html-headline-3|html-headline-4|html-headline-5|html-headline-6|html-horizontal-rule|html-href-anchor|html-image|html-imenu-index|html-line|html-list-item|html-mode|html-name-anchor|html-ordered-list|html-paragraph|html-radio-buttons|html-unordered-list|html2text|htmlfontify-buffer|htmlfontify-copy-and-link-dir|htmlfontify-load-initfile|htmlfontify-load-rgb-file|htmlfontify-run-etags|htmlfontify-save-initfile|htmlfontify-string|htmlize-attrlist-to-fstruct|htmlize-buffer-1|htmlize-buffer-substring-no-invisible|htmlize-buffer|htmlize-color-to-rgb|htmlize-copy-attr-if-set|htmlize-css-insert-head|htmlize-css-insert-text|htmlize-css-specs|htmlize-defang-local-variables|htmlize-default-body-tag|htmlize-default-doctype|htmlize-despam-address|htmlize-ensure-fontified|htmlize-face-background|htmlize-face-color-internal|htmlize-face-emacs21-attr|htmlize-face-foreground|htmlize-face-list-p|htmlize-face-size|htmlize-face-specifies-property|htmlize-face-to-fstruct|htmlize-faces-at-point|htmlize-faces-in-buffer|htmlize-file|htmlize-font-body-tag|htmlize-font-insert-text|htmlize-fstruct-background--cmacro|htmlize-fstruct-background|htmlize-fstruct-boldp--cmacro|htmlize-fstruct-boldp|htmlize-fstruct-css-name--cmacro|htmlize-fstruct-css-name|htmlize-fstruct-foreground--cmacro|htmlize-fstruct-foreground|htmlize-fstruct-italicp--cmacro|htmlize-fstruct-italicp|htmlize-fstruct-overlinep--cmacro|htmlize-fstruct-overlinep|htmlize-fstruct-p--cmacro|htmlize-fstruct-p|htmlize-fstruct-size--cmacro|htmlize-fstruct-size|htmlize-fstruct-strikep--cmacro|htmlize-fstruct-strikep|htmlize-fstruct-underlinep--cmacro|htmlize-fstruct-underlinep|htmlize-get-color-rgb-hash|htmlize-inline-css-body-tag|htmlize-inline-css-insert-text|htmlize-locate-file|htmlize-make-face-map|htmlize-make-file-name|htmlize-make-hyperlinks|htmlize-many-files-dired|htmlize-many-files|htmlize-memoize|htmlize-merge-faces|htmlize-merge-size|htmlize-merge-two-faces|htmlize-method-function|htmlize-method|htmlize-next-change|htmlize-protect-string|htmlize-region-for-paste|htmlize-region|htmlize-trim-ellipsis|htmlize-unstringify-face|htmlize-untabify|htmlize-with-fontify-message|ibuffer-active-formats-name|ibuffer-add-saved-filters|ibuffer-add-to-tmp-hide|ibuffer-add-to-tmp-show|ibuffer-assert-ibuffer-mode|ibuffer-auto-mode|ibuffer-backward-filter-group|ibuffer-backward-line|ibuffer-backwards-next-marked|ibuffer-bs-show|ibuffer-buf-matches-predicates|ibuffer-buffer-file-name|ibuffer-buffer-name-face|ibuffer-buffer-names-with-mark|ibuffer-bury-buffer|ibuffer-check-formats|ibuffer-clear-filter-groups|ibuffer-clear-summary-columns|ibuffer-columnize-and-insert-list|ibuffer-compile-format|ibuffer-compile-make-eliding-form|ibuffer-compile-make-format-form|ibuffer-compile-make-substring-form|ibuffer-confirm-operation-on|ibuffer-copy-filename-as-kill|ibuffer-count-deletion-lines|ibuffer-count-marked-lines|ibuffer-current-buffer|ibuffer-current-buffers-with-marks|ibuffer-current-formats??|ibuffer-current-mark|ibuffer-current-state-list|ibuffer-customize|ibuffer-decompose-filter-group|ibuffer-decompose-filter|ibuffer-delete-saved-filter-groups|ibuffer-delete-saved-filters|ibuffer-deletion-marked-buffer-names|ibuffer-diff-with-file|ibuffer-do-delete|ibuffer-do-eval|ibuffer-do-isearch-regexp|ibuffer-do-isearch|ibuffer-do-kill-lines|ibuffer-do-kill-on-deletion-marks|ibuffer-do-occur|ibuffer-do-print|ibuffer-do-query-replace-regexp|ibuffer-do-query-replace|ibuffer-do-rename-uniquely|ibuffer-do-replace-regexp|ibuffer-do-revert|ibuffer-do-save|ibuffer-do-shell-command-file|ibuffer-do-shell-command-pipe-replace|ibuffer-do-shell-command-pipe|ibuffer-do-sort-by-alphabetic|ibuffer-do-sort-by-filename/process|ibuffer-do-sort-by-major-mode|ibuffer-do-sort-by-mode-name|ibuffer-do-sort-by-recency|ibuffer-do-sort-by-size|ibuffer-do-toggle-modified|ibuffer-do-toggle-read-only|ibuffer-do-view-1|ibuffer-do-view-and-eval|ibuffer-do-view-horizontally|ibuffer-do-view-other-frame|ibuffer-do-view|ibuffer-exchange-filters|ibuffer-expand-format-entry|ibuffer-filter-buffers|ibuffer-filter-by-content|ibuffer-filter-by-derived-mode|ibuffer-filter-by-filename|ibuffer-filter-by-mode|ibuffer-filter-by-name|ibuffer-filter-by-predicate|ibuffer-filter-by-size-gt|ibuffer-filter-by-size-lt|ibuffer-filter-by-used-mode|ibuffer-filter-disable|ibuffer-filters-to-filter-group|ibuffer-find-file)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)i(?:buffer-format-column|buffer-forward-filter-group|buffer-forward-line|buffer-forward-next-marked|buffer-get-marked-buffers|buffer-included-in-filters-p|buffer-insert-buffer-line|buffer-insert-filter-group|buffer-interactive-filter-by-mode|buffer-invert-sorting|buffer-jump-to-buffer|buffer-jump-to-filter-group|buffer-kill-filter-group|buffer-kill-line|buffer-list-buffers|buffer-make-column-filename-and-process|buffer-make-column-filename|buffer-make-column-process|buffer-map-deletion-lines|buffer-map-lines-nomodify|buffer-map-lines|buffer-map-marked-lines|buffer-map-on-mark|buffer-mark-by-file-name-regexp|buffer-mark-by-mode-regexp|buffer-mark-by-mode|buffer-mark-by-name-regexp|buffer-mark-compressed-file-buffers|buffer-mark-dired-buffers|buffer-mark-dissociated-buffers|buffer-mark-for-delete-backwards|buffer-mark-for-delete|buffer-mark-forward|buffer-mark-help-buffers|buffer-mark-interactive|buffer-mark-modified-buffers|buffer-mark-old-buffers|buffer-mark-read-only-buffers|buffer-mark-special-buffers|buffer-mark-unsaved-buffers|buffer-marked-buffer-names|buffer-mode|buffer-mouse-filter-by-mode|buffer-mouse-popup-menu|buffer-mouse-toggle-filter-group|buffer-mouse-toggle-mark|buffer-mouse-visit-buffer|buffer-negate-filter|buffer-or-filter|buffer-other-window|buffer-pop-filter-group|buffer-pop-filter|buffer-recompile-formats|buffer-redisplay-current|buffer-redisplay-engine|buffer-redisplay|buffer-save-filter-groups|buffer-save-filters|buffer-set-filter-groups-by-mode|buffer-set-mark-1|buffer-set-mark|buffer-shrink-to-fit|buffer-skip-properties|buffer-sort-bufferlist|buffer-switch-format|buffer-switch-to-saved-filter-groups|buffer-switch-to-saved-filters|buffer-toggle-filter-group|buffer-toggle-marks|buffer-toggle-sorting-mode|buffer-unmark-all|buffer-unmark-backward|buffer-unmark-forward|buffer-update-format|buffer-update-title-and-summary|buffer-update|buffer-visible-p|buffer-visit-buffer-1-window|buffer-visit-buffer-other-frame|buffer-visit-buffer-other-window-noselect|buffer-visit-buffer-other-window|buffer-visit-buffer|buffer-visit-tags-table|buffer-yank-filter-group|buffer-yank|buffer|calendar--add-decoded-times|calendar--add-diary-entry|calendar--all-events|calendar--convert-all-timezones|calendar--convert-anniversary-to-ical|calendar--convert-block-to-ical|calendar--convert-cyclic-to-ical|calendar--convert-date-to-ical|calendar--convert-float-to-ical|calendar--convert-ical-to-diary|calendar--convert-non-recurring-all-day-to-diary|calendar--convert-non-recurring-not-all-day-to-diary|calendar--convert-ordinary-to-ical|calendar--convert-recurring-to-diary|calendar--convert-sexp-to-ical|calendar--convert-string-for-export|calendar--convert-string-for-import|calendar--convert-to-ical|calendar--convert-tz-offset|calendar--convert-weekly-to-ical|calendar--convert-yearly-to-ical|calendar--create-ical-alarm|calendar--create-uid|calendar--date-to-isodate|calendar--datestring-to-isodate|calendar--datetime-to-american-date|calendar--datetime-to-colontime|calendar--datetime-to-diary-date|calendar--datetime-to-european-date|calendar--datetime-to-iso-date|calendar--datetime-to-noneuropean-date|calendar--decode-isodatetime|calendar--decode-isoduration|calendar--diarytime-to-isotime|calendar--dmsg|calendar--do-create-ical-alarm|calendar--find-time-zone|calendar--format-ical-event|calendar--get-children|calendar--get-event-properties|calendar--get-event-property-attributes|calendar--get-event-property|calendar--get-month-number|calendar--get-unfolded-buffer|calendar--get-weekday-abbrev|calendar--get-weekday-numbers??|calendar--parse-summary-and-rest|calendar--parse-vtimezone|calendar--read-element|calendar--rris|calendar--split-value|calendar-convert-diary-to-ical|calendar-export-file|calendar-export-region|calendar-extract-ical-from-buffer|calendar-first-weekday-of-year|calendar-import-buffer|calendar-import-file|calendar-import-format-sample|complete--completion-predicate|complete--completion-table|complete--field-beg|complete--field-end|complete--field-string|complete--in-region-setup|complete-backward-completions|complete-completions|complete-exhibit|complete-forward-completions|complete-minibuffer-setup|complete-mode|complete-post-command-hook|complete-pre-command-hook|complete-simple-completing-p|complete-tidy|con-backward-to-noncomment|con-backward-to-start-of-continued-exp|con-backward-to-start-of-if|con-comment-indent|con-forward-sexp-function|con-indent-command|con-indent-line|con-is-continuation-line|con-is-continued-line|con-mode|conify-or-deiconify-frame|dl-font-lock-keywords-2|dl-font-lock-keywords-3|dl-font-lock-keywords|dl-mode|dlwave-action-and-binding|dlwave-active-rinfo-space|dlwave-add-file-link-selector|dlwave-after-successful-completion|dlwave-all-assq|dlwave-all-class-inherits|dlwave-all-class-tags|dlwave-all-method-classes|dlwave-all-method-keyword-classes|dlwave-any-syslib|dlwave-attach-class-tag-classes|dlwave-attach-classes|dlwave-attach-keyword-classes|dlwave-attach-method-classes|dlwave-auto-fill-mode|dlwave-auto-fill|dlwave-backward-block|dlwave-backward-up-block|dlwave-beginning-of-block|dlwave-beginning-of-statement|dlwave-beginning-of-subprogram|dlwave-best-rinfo-assoc|dlwave-best-rinfo-assq|dlwave-block-jump-out|dlwave-block-master|dlwave-calc-hanging-indent|dlwave-calculate-cont-indent|dlwave-calculate-indent|dlwave-calculate-paren-indent|dlwave-call-special|dlwave-case|dlwave-check-abbrev|dlwave-choose-completion|dlwave-choose|dlwave-class-alist|dlwave-class-file-or-buffer|dlwave-class-found-in|dlwave-class-info|dlwave-class-inherits|dlwave-class-or-superclass-with-tag|dlwave-class-tag-reset|dlwave-class-tags|dlwave-close-block|dlwave-code-abbrev|dlwave-command-hook|dlwave-comment-hook|dlwave-complete-class-structure-tag-help|dlwave-complete-class-structure-tag|dlwave-complete-class|dlwave-complete-filename|dlwave-complete-in-buffer|dlwave-complete-sysvar-help|dlwave-complete-sysvar-or-tag|dlwave-complete-sysvar-tag-help|dlwave-complete|dlwave-completing-read|dlwave-completion-fontify-classes|dlwave-concatenate-rinfo-lists|dlwave-context-help|dlwave-convert-xml-clean-routine-aliases|dlwave-convert-xml-clean-statement-aliases|dlwave-convert-xml-clean-sysvar-aliases|dlwave-convert-xml-system-routine-info|dlwave-count-eq|dlwave-count-memq|dlwave-count-outlawed-buffers|dlwave-create-customize-menu|dlwave-create-user-catalog-file|dlwave-current-indent|dlwave-current-routine-fullname|dlwave-current-routine|dlwave-current-statement-indent|dlwave-custom-ampersand-surround|dlwave-custom-ltgtr-surround|dlwave-customize|dlwave-debug-map|dlwave-default-choose-completion|dlwave-default-insert-timestamp|dlwave-define-abbrev|dlwave-delete-user-catalog-file|dlwave-determine-class|dlwave-display-calling-sequence|dlwave-display-completion-list-emacs|dlwave-display-completion-list-xemacs|dlwave-display-completion-list|dlwave-display-user-catalog-widget|dlwave-do-action|dlwave-do-context-help1??|dlwave-do-find-module|dlwave-do-kill-autoloaded-buffers|dlwave-do-mouse-completion-help|dlwave-doc-header|dlwave-doc-modification|dlwave-down-block|dlwave-downcase-safe|dlwave-edit-in-idlde|dlwave-elif|dlwave-end-of-block|dlwave-end-of-statement0??|dlwave-end-of-subprogram|dlwave-entry-find-keyword|dlwave-entry-has-help|dlwave-entry-keywords|dlwave-expand-equal|dlwave-expand-keyword|dlwave-expand-lib-file-name|dlwave-expand-path|dlwave-expand-region-abbrevs|dlwave-explicit-class-listed|dlwave-fill-paragraph|dlwave-find-class-definition|dlwave-find-file-noselect|dlwave-find-inherited-class|dlwave-find-key|dlwave-find-module-this-file|dlwave-find-module|dlwave-find-struct-tag|dlwave-find-structure-definition|dlwave-fix-keywords|dlwave-fix-module-if-obj_new|dlwave-font-lock-fontify-region|dlwave-for|dlwave-forward-block|dlwave-function-menu|dlwave-function|dlwave-get-buffer-routine-info|dlwave-get-buffer-visiting|dlwave-get-routine-info-from-buffers|dlwave-goto-comment|dlwave-grep|dlwave-hard-tab|dlwave-has-help|dlwave-help-assistant-available|dlwave-help-assistant-close|dlwave-help-assistant-command|dlwave-help-assistant-help-with-topic|dlwave-help-assistant-open-link|dlwave-help-assistant-raise|dlwave-help-assistant-start|dlwave-help-check-locations|dlwave-help-diagnostics|dlwave-help-display-help-window|dlwave-help-error|dlwave-help-find-first-header|dlwave-help-find-header|dlwave-help-find-in-doc-header|dlwave-help-find-routine-definition|dlwave-help-fontify|dlwave-help-get-help-buffer|dlwave-help-get-special-help|dlwave-help-html-link|dlwave-help-menu|dlwave-help-mode|dlwave-help-quit|dlwave-help-return-to-calling-frame|dlwave-help-select-help-frame|dlwave-help-show-help-frame|dlwave-help-toggle-header-match-and-def|dlwave-help-toggle-header-top-and-def|dlwave-help-with-source|dlwave-highlight-linked-completions|dlwave-html-help-location|dlwave-if|dlwave-in-comment|dlwave-in-quote|dlwave-in-structure|dlwave-indent-and-action|dlwave-indent-left-margin|dlwave-indent-line|dlwave-indent-statement|dlwave-indent-subprogram|dlwave-indent-to|dlwave-info|dlwave-insert-source-location|dlwave-is-comment-line|dlwave-is-comment-or-empty-line|dlwave-is-continuation-line|dlwave-is-pointer-dereference|dlwave-keyboard-quit|dlwave-keyword-abbrev|dlwave-kill-autoloaded-buffers|dlwave-kill-buffer-update|dlwave-last-valid-char|dlwave-launch-idlhelp|dlwave-lib-p|dlwave-list-abbrevs|dlwave-list-all-load-path-shadows|dlwave-list-buffer-load-path-shadows|dlwave-list-load-path-shadows|dlwave-list-shell-load-path-shadows|dlwave-load-all-rinfo|dlwave-load-rinfo-next-step|dlwave-load-system-routine-info|dlwave-local-value|dlwave-locate-lib-file|dlwave-look-at|dlwave-make-force-complete-where-list|dlwave-make-full-name|dlwave-make-modified-completion-map-emacs|dlwave-make-modified-completion-map-xemacs|dlwave-make-one-key-alist|dlwave-make-space|dlwave-make-tags|dlwave-mark-block|dlwave-mark-doclib|dlwave-mark-statement|dlwave-mark-subprogram|dlwave-match-class-arrows|dlwave-members-only|dlwave-min-current-statement-indent|dlwave-mode-debug-menu|dlwave-mode-menu|dlwave-mode|dlwave-mouse-active-rinfo-right|dlwave-mouse-active-rinfo-shift|dlwave-mouse-active-rinfo|dlwave-mouse-choose-completion|dlwave-mouse-completion-help|dlwave-mouse-context-help|dlwave-new-buffer-update|dlwave-new-sintern-type|dlwave-newline|dlwave-next-statement|dlwave-nonmembers-only|dlwave-one-key-select|dlwave-online-help|dlwave-parse-definition|dlwave-path-alist-add-flag|dlwave-path-alist-remove-flag|dlwave-popup-select|dlwave-prepare-class-tag-completion|dlwave-prev-index-position|dlwave-previous-statement|dlwave-print-source|dlwave-procedure|dlwave-process-sysvars|dlwave-quit-help|dlwave-quoted|dlwave-read-paths|dlwave-recursive-directory-list|dlwave-region-active-p|dlwave-repeat|dlwave-replace-buffer-routine-info|dlwave-replace-string|dlwave-rescan-asynchronously|dlwave-rescan-catalog-directories|dlwave-reset-sintern-type|dlwave-reset-sintern|dlwave-resolve|dlwave-restore-wconf-after-completion|dlwave-revoke-license-to-kill|dlwave-rinfo-assoc|dlwave-rinfo-assq-any-class|dlwave-rinfo-assq|dlwave-rinfo-group-keywords|dlwave-rinfo-insert-keyword|dlwave-routine-entry-compare-twins|dlwave-routine-entry-compare|dlwave-routine-info|dlwave-routine-source-file|dlwave-routine-twin-compare|dlwave-routine-twins|dlwave-routines|dlwave-rw-case|dlwave-save-buffer-update|dlwave-save-routine-info|dlwave-scan-class-info|dlwave-scan-library-catalogs|dlwave-scan-user-lib-files|dlwave-scroll-completions|dlwave-selector|dlwave-set-local|dlwave-setup|dlwave-shell-break-here|dlwave-shell-compile-helper-routines|dlwave-shell-filter-sysvars|dlwave-shell-recenter-shell-window|dlwave-shell-run-region|dlwave-shell-save-and-run|dlwave-shell-send-command|dlwave-shell-show-commentary|dlwave-shell-update-routine-info|dlwave-shell|dlwave-shorten-syntax|dlwave-show-begin-check|dlwave-show-begin|dlwave-show-commentary|dlwave-show-matching-quote|dlwave-sintern-class-info|dlwave-sintern-class-tag|dlwave-sintern-class)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)i(?:dlwave-sintern-dir|dlwave-sintern-keyword-list|dlwave-sintern-keyword|dlwave-sintern-libname|dlwave-sintern-method|dlwave-sintern-rinfo-list|dlwave-sintern-routine-or-method|dlwave-sintern-routine|dlwave-sintern-set|dlwave-sintern-sysvar-alist|dlwave-sintern-sysvar|dlwave-sintern-sysvartag|dlwave-sintern|dlwave-skip-label-or-case|dlwave-skip-multi-commands|dlwave-skip-object|dlwave-special-lib-test|dlwave-split-line|dlwave-split-link-target|dlwave-split-menu-emacs|dlwave-split-menu-xemacs|dlwave-split-string|dlwave-start-load-rinfo-timer|dlwave-start-of-substatement|dlwave-statement-type|dlwave-struct-borders|dlwave-struct-inherits|dlwave-struct-tags|dlwave-study-twins|dlwave-substitute-link-target|dlwave-surround|dlwave-switch|dlwave-sys-dir|dlwave-syslib-p|dlwave-syslib-scanned-p|dlwave-sysvars-reset|dlwave-template|dlwave-this-word|dlwave-toggle-comment-region|dlwave-true-path-alist|dlwave-uniquify|dlwave-unit-name|dlwave-update-buffer-routine-info|dlwave-update-current-buffer-info|dlwave-update-routine-info|dlwave-user-catalog-command-hook|dlwave-what-function|dlwave-what-module-find-class|dlwave-what-module|dlwave-what-procedure|dlwave-where|dlwave-while|dlwave-widget-scan-user-lib-files|dlwave-with-special-syntax|dlwave-write-paths|dlwave-xml-create-class-method-lists|dlwave-xml-create-rinfo-list|dlwave-xml-create-sysvar-alist|dlwave-xml-system-routine-info-up-to-date|dlwave-xor|dna-to-ascii|do-active|do-add-virtual-buffers-to-list|do-all-completions|do-buffer-internal|do-buffer-window-other-frame|do-bury-buffer-at-head|do-cache-ftp-valid|do-cache-unc-valid|do-choose-completion-string|do-chop|do-common-initialization|do-complete-space|do-complete|do-completing-read|do-completion-help|do-completions|do-copy-current-file-name|do-copy-current-word|do-delete-backward-updir|do-delete-backward-word-updir|do-delete-file-at-head|do-directory-too-big-p|do-dired|do-display-buffer|do-display-file|do-edit-input|do-enter-dired|do-enter-find-file|do-enter-insert-buffer|do-enter-insert-file|do-enter-switch-buffer|do-everywhere|do-exhibit|do-existing-item-p|do-exit-minibuffer|do-expand-directory|do-fallback-command|do-file-extension-aux|do-file-extension-lessp|do-file-extension-order|do-file-internal|do-file-lessp|do-file-name-all-completions-1|do-file-name-all-completions|do-final-slash|do-find-alternate-file|do-find-common-substring|do-find-file-in-dir|do-find-file-other-frame|do-find-file-other-window|do-find-file-read-only-other-frame|do-find-file-read-only-other-window|do-find-file-read-only|do-find-file|do-flatten-merged-list|do-forget-work-directory|do-fractionp|do-get-buffers-in-frames|do-get-bufname|do-get-work-directory|do-get-work-file|do-ignore-item-p|do-init-completion-maps|do-initiate-auto-merge|do-insert-buffer|do-insert-file|do-is-ftp-directory|do-is-root-directory|do-is-slow-ftp-host|do-is-tramp-root|do-is-unc-host|do-is-unc-root|do-kill-buffer-at-head|do-kill-buffer|do-kill-emacs-hook|do-list-directory|do-load-history|do-local-file-exists-p|do-magic-backward-char|do-magic-delete-char|do-magic-forward-char|do-make-buffer-list-1|do-make-buffer-list|do-make-choice-list|do-make-dir-list-1|do-make-dir-list|do-make-directory|do-make-file-list-1|do-make-file-list|do-make-merged-file-list-1|do-make-merged-file-list|do-make-prompt|do-makealist|do-may-cache-directory|do-merge-work-directories|do-minibuffer-setup|do-mode|do-name|do-next-match-dir|do-next-match|do-next-work-directory|do-next-work-file|do-no-final-slash|do-nonreadable-directory-p|do-pop-dir|do-pp|do-prev-match-dir|do-prev-match|do-prev-work-directory|do-prev-work-file|do-push-dir-first|do-push-dir|do-read-buffer|do-read-directory-name|do-read-file-name|do-read-internal|do-record-command|do-record-work-directory|do-record-work-file|do-remove-cached-dir|do-reread-directory|do-restrict-to-matches|do-save-history|do-select-text|do-set-common-completion|do-set-current-directory|do-set-current-home|do-set-matches-1|do-set-matches|do-setup-completion-map|do-sort-merged-list|do-summary-buffers-to-end|do-switch-buffer-other-frame|do-switch-buffer-other-window|do-switch-buffer|do-take-first-match|do-tidy|do-time-stamp|do-to-end|do-toggle-case|do-toggle-ignore|do-toggle-literal|do-toggle-prefix|do-toggle-regexp|do-toggle-trace|do-toggle-vc|do-toggle-virtual-buffers|do-trace|do-unc-hosts-net-view|do-unc-hosts|do-undo-merge-work-directory|do-unload-function|do-up-directory|do-visit-buffer|do-wash-history|do-wide-find-dir-or-delete-dir|do-wide-find-dir|do-wide-find-dirs-or-files|do-wide-find-file-or-pop-dir|do-wide-find-file|do-word-matching-substring|do-write-file|elm|etf-drums-get-comment|etf-drums-init|etf-drums-make-address|etf-drums-narrow-to-header|etf-drums-parse-address|etf-drums-parse-addresses|etf-drums-parse-date|etf-drums-quote-string|etf-drums-remove-comments|etf-drums-remove-whitespace|etf-drums-strip|etf-drums-token-to-list|etf-drums-unfold-fws|f-let|fconfig|image-mode-buffer|image-mode|image-modification-hook|image-recenter|mage--set-speed|mage-after-revert-hook|mage-animate-get-speed|mage-animate-set-speed|mage-animate-timeout|mage-animated-p|mage-backward-hscroll|mage-bob|mage-bol|mage-bookmark-jump|mage-bookmark-make-record|mage-decrease-speed|mage-dired--with-db-file|mage-dired-add-to-file-comment-list|mage-dired-add-to-tag-file-lists??|mage-dired-associated-dired-buffer-window|mage-dired-associated-dired-buffer|mage-dired-backward-image|mage-dired-comment-thumbnail|mage-dired-copy-with-exif-file-name|mage-dired-create-display-image-buffer|mage-dired-create-gallery-lists|mage-dired-create-thumb|mage-dired-create-thumbnail-buffer|mage-dired-create-thumbs|mage-dired-define-display-image-mode-keymap|mage-dired-define-thumbnail-mode-keymap|mage-dired-delete-char|mage-dired-delete-tag|mage-dired-dir|mage-dired-dired-after-readin-hook|mage-dired-dired-comment-files|mage-dired-dired-display-external|mage-dired-dired-display-image|mage-dired-dired-display-properties|mage-dired-dired-edit-comment-and-tags|mage-dired-dired-file-marked-p|mage-dired-dired-next-line|mage-dired-dired-previous-line|mage-dired-dired-toggle-marked-thumbs|mage-dired-dired-with-window-configuration|mage-dired-display-current-image-full|mage-dired-display-current-image-sized|mage-dired-display-image-mode|mage-dired-display-image|mage-dired-display-next-thumbnail-original|mage-dired-display-previous-thumbnail-original|mage-dired-display-thumb-properties|mage-dired-display-thumb|mage-dired-display-thumbnail-original-image|mage-dired-display-thumbs-append|mage-dired-display-thumbs|mage-dired-display-window-height|mage-dired-display-window-width|mage-dired-display-window|mage-dired-flag-thumb-original-file|mage-dired-format-properties-string|mage-dired-forward-image|mage-dired-gallery-generate|mage-dired-get-buffer-window|mage-dired-get-comment|mage-dired-get-exif-data|mage-dired-get-exif-file-name|mage-dired-get-thumbnail-image|mage-dired-hidden-p|mage-dired-image-at-point-p|mage-dired-insert-image|mage-dired-insert-thumbnail|mage-dired-jump-original-dired-buffer|mage-dired-jump-thumbnail-buffer|mage-dired-kill-buffer-and-window|mage-dired-line-up-dynamic|mage-dired-line-up-interactive|mage-dired-line-up|mage-dired-list-tags|mage-dired-mark-and-display-next|mage-dired-mark-tagged-files|mage-dired-mark-thumb-original-file|mage-dired-modify-mark-on-thumb-original-file|mage-dired-mouse-display-image|mage-dired-mouse-select-thumbnail|mage-dired-mouse-toggle-mark|mage-dired-next-line-and-display|mage-dired-next-line|mage-dired-original-file-name|mage-dired-previous-line-and-display|mage-dired-previous-line|mage-dired-read-comment|mage-dired-refresh-thumb|mage-dired-remove-tag|mage-dired-restore-window-configuration|mage-dired-rotate-original-left|mage-dired-rotate-original-right|mage-dired-rotate-original|mage-dired-rotate-thumbnail-left|mage-dired-rotate-thumbnail-right|mage-dired-rotate-thumbnail|mage-dired-sane-db-file|mage-dired-save-information-from-widgets|mage-dired-set-exif-data|mage-dired-setup-dired-keybindings|mage-dired-show-all-from-dir|mage-dired-slideshow-start|mage-dired-slideshow-step|mage-dired-slideshow-stop|mage-dired-tag-files|mage-dired-tag-thumbnail-remove|mage-dired-tag-thumbnail|mage-dired-thumb-name|mage-dired-thumbnail-display-external|mage-dired-thumbnail-mode|mage-dired-thumbnail-set-image-description|mage-dired-thumbnail-window|mage-dired-toggle-append-browsing|mage-dired-toggle-dired-display-properties|mage-dired-toggle-mark-thumb-original-file|mage-dired-toggle-movement-tracking|mage-dired-track-original-file|mage-dired-track-thumbnail|mage-dired-unmark-thumb-original-file|mage-dired-update-property|mage-dired-window-height-pixels|mage-dired-window-width-pixels|mage-dired-write-comments|mage-dired-write-tags|mage-dired|mage-display-size|mage-eob|mage-eol|mage-extension-data|mage-file-call-underlying|mage-file-handler|mage-file-name-regexp|mage-file-yank-handler|mage-forward-hscroll|mage-get-display-property|mage-goto-frame|mage-increase-speed|mage-jpeg-p|mage-metadata|mage-minor-mode|mage-mode--images-in-directory|mage-mode-as-text|mage-mode-fit-frame|mage-mode-maybe|mage-mode-menu|mage-mode-reapply-winprops|mage-mode-setup-winprops|mage-mode-window-get|mage-mode-window-put|mage-mode-winprops|mage-mode|mage-next-file|mage-next-frame|mage-next-line|mage-previous-file|mage-previous-frame|mage-previous-line|mage-refresh|mage-reset-speed|mage-reverse-speed|mage-scroll-down|mage-scroll-up|mage-search-load-path|mage-set-window-hscroll|mage-set-window-vscroll|mage-toggle-animation|mage-toggle-display-image|mage-toggle-display-text|mage-toggle-display|mage-transform-check-size|mage-transform-fit-to-height|mage-transform-fit-to-width|mage-transform-fit-width|mage-transform-properties|mage-transform-reset|mage-transform-set-rotation|mage-transform-set-scale|mage-transform-width|mage-type-auto-detected-p|mage-type-from-buffer|mage-type-from-data|mage-type-from-file-header|mage-type-from-file-name|mage-type|magemagick-filter-types|magemagick-register-types|map-add-callback|map-anonymous-auth|map-anonymous-p|map-arrival-filter|map-authenticate|map-body-lines|map-capability|map-close|map-cram-md5-auth|map-cram-md5-p|map-current-mailbox-p-1|map-current-mailbox-p|map-current-mailbox|map-current-message|map-digest-md5-auth|map-digest-md5-p|map-disable-multibyte|map-envelope-from|map-error-text|map-fetch-asynch|map-fetch-safe|map-fetch|map-find-next-line|map-forward|map-gssapi-auth-p|map-gssapi-auth|map-gssapi-open|map-gssapi-stream-p|map-id|map-interactive-login|map-kerberos4-auth-p|map-kerberos4-auth|map-kerberos4-open|map-kerberos4-stream-p|map-list-to-message-set|map-log|map-login-auth|map-login-p|map-logout-wait|map-logout|map-mailbox-acl-delete|map-mailbox-acl-get|map-mailbox-acl-set|map-mailbox-close|map-mailbox-create-1|map-mailbox-create|map-mailbox-delete|map-mailbox-examine-1|map-mailbox-examine|map-mailbox-expunge|map-mailbox-get-1|map-mailbox-get|map-mailbox-list|map-mailbox-lsub|map-mailbox-map-1|map-mailbox-map|map-mailbox-put|map-mailbox-rename|map-mailbox-select-1|map-mailbox-select|map-mailbox-status-asynch|map-mailbox-status|map-mailbox-subscribe|map-mailbox-unselect|map-mailbox-unsubscribe|map-message-append|map-message-appenduid-1|map-message-appenduid|map-message-body|map-message-copy|map-message-copyuid-1|map-message-copyuid|map-message-envelope-bcc|map-message-envelope-cc|map-message-envelope-date|map-message-envelope-from|map-message-envelope-in-reply-to|map-message-envelope-message-id|map-message-envelope-reply-to|map-message-envelope-sender|map-message-envelope-subject|map-message-envelope-to|map-message-flag-permanent-p|map-message-flags-add|map-message-flags-del|map-message-flags-set|map-message-get|map-message-map|map-message-put|map-namespace|map-network-open|map-network-p|map-ok-p|map-open-1|map-open|map-opened|map-parse-acl|map-parse-address-list|map-parse-address|map-parse-astring|map-parse-body-ext)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)i(?:map-parse-body-extension|map-parse-body|map-parse-data-list|map-parse-envelope|map-parse-fetch-body-section|map-parse-fetch|map-parse-flag-list|map-parse-greeting|map-parse-header-list|map-parse-literal|map-parse-mailbox|map-parse-nil|map-parse-nstring|map-parse-number|map-parse-resp-text-code|map-parse-resp-text|map-parse-response|map-parse-status|map-parse-string-list|map-parse-string|map-ping-server|map-quote-specials|map-range-to-message-set|map-remassoc|map-sasl-auth-p|map-sasl-auth|map-sasl-make-mechanisms|map-search|map-send-command-1|map-send-command-wait|map-send-command|map-sentinel|map-shell-open|map-shell-p|map-ssl-open|map-ssl-p|map-starttls-open|map-starttls-p|map-string-to-integer|map-tls-open|map-tls-p|map-utf7-decode|map-utf7-encode|map-wait-for-tag|menu--cleanup|menu--completion-buffer|menu--create-keymap|menu--generic-function|menu--in-alist|menu--make-index-alist|menu--menubar-select|menu--mouse-menu|menu--relative-position|menu--sort-by-name|menu--sort-by-position|menu--split-menu|menu--split-submenus|menu--split|menu--subalist-p|menu--truncate-items|menu-add-menubar-index|menu-choose-buffer-index|menu-default-create-index-function|menu-default-goto-function|menu-example--create-c-index|menu-example--create-lisp-index|menu-example--lisp-extract-index-name|menu-example--name-and-position|menu-find-default|menu-progress-message|menu-update-menubar|menu|n-is13194-post-read-conversion|n-is13194-pre-write-conversion|n-string-p|nactivate-input-method|ncf|ncrease-left-margin|ncrease-right-margin|ncrement-register|ndent-accumulate-tab-stops|ndent-for-comment|ndent-icon-exp|ndent-line-to|ndent-new-comment-line|ndent-next-tab-stop|ndent-perl-exp|ndent-pp-sexp|ndent-rigidly--current-indentation|ndent-rigidly--pop-undo|ndent-rigidly-left-to-tab-stop|ndent-rigidly-left|ndent-rigidly-right-to-tab-stop|ndent-rigidly-right|ndent-sexp|ndent-tcl-exp|ndent-to-column|ndented-text-mode|ndian-2-column-to-ucs-region|ndian-compose-regexp|ndian-compose-region|ndian-compose-string|ndicate-copied-region|nferior-lisp-install-letter-bindings|nferior-lisp-menu|nferior-lisp-mode|nferior-lisp-proc|nferior-lisp|nferior-octave-check-process|nferior-octave-complete|nferior-octave-completion-at-point|nferior-octave-completion-table|nferior-octave-directory-tracker|nferior-octave-dynamic-list-input-ring|nferior-octave-mode|nferior-octave-output-digest|nferior-octave-process-live-p|nferior-octave-resync-dirs|nferior-octave-send-list-and-digest|nferior-octave-startup|nferior-octave-track-window-width-change|nferior-octave|nferior-python-mode|nferior-scheme-mode|nferior-tcl-mode|nferior-tcl-proc|nferior-tcl|nfo--manual-names|nfo--prettify-description|nfo-apropos|nfo-complete-file|nfo-complete-symbol|nfo-complete|nfo-display-manual|nfo-emacs-bug|nfo-emacs-manual|nfo-file-exists-p|nfo-finder|nfo-initialize|nfo-insert-file-contents-1|nfo-insert-file-contents|nfo-lookup->all-modes|nfo-lookup->cache|nfo-lookup->completions|nfo-lookup->doc-spec|nfo-lookup->ignore-case|nfo-lookup->initialized|nfo-lookup->mode-cache|nfo-lookup->mode-value|nfo-lookup->other-modes|nfo-lookup->parse-rule|nfo-lookup->refer-modes|nfo-lookup->regexp|nfo-lookup->topic-cache|nfo-lookup->topic-value|nfo-lookup-add-help\\\\*?|nfo-lookup-change-mode|nfo-lookup-completions-at-point|nfo-lookup-file|nfo-lookup-guess-c-symbol|nfo-lookup-guess-custom-symbol|nfo-lookup-guess-default\\\\*?|nfo-lookup-interactive-arguments|nfo-lookup-make-completions|nfo-lookup-maybe-add-help|nfo-lookup-quick-all-modes|nfo-lookup-reset|nfo-lookup-select-mode|nfo-lookup-setup-mode|nfo-lookup-symbol|nfo-lookup|nfo-other-window|nfo-setup|nfo-standalone|nfo-xref-all-info-files|nfo-xref-check-all-custom|nfo-xref-check-all|nfo-xref-check-buffer|nfo-xref-check-list|nfo-xref-check-node|nfo-xref-check|nfo-xref-docstrings|nfo-xref-goto-node-p|nfo-xref-lock-file-p|nfo-xref-output-error|nfo-xref-output|nfo-xref-subfile-p|nfo-xref-with-file|nfo-xref-with-output|nfo|nhibit-local-variables-p|nit-image-library|nitialize-completions|nitialize-instance|nitialize-new-tags-table|nline|nsert-abbrevs|nsert-byte|nsert-directory-adj-pos|nsert-directory-safely|nsert-file-1|nsert-file-literally|nsert-file|nsert-for-yank-1|nsert-image-file|nsert-kbd-macro|nsert-pair|nsert-parentheses|nsert-rectangle|nsert-string|nsert-tab|nt-to-string|nteractive-completion-string-reader|nteractive-p|ntern-safe|nternal--after-save-selected-window|nternal--after-with-selected-window|nternal--before-save-selected-window|nternal--before-with-selected-window|nternal--build-binding-value-form|nternal--build-bindings??|nternal--check-binding|nternal--listify|nternal--thread-argument|nternal--track-mouse|nternal-ange-ftp-mode|nternal-char-font|nternal-complete-buffer-except|nternal-complete-buffer|nternal-copy-lisp-face|nternal-default-process-filter|nternal-default-process-sentinel|nternal-describe-syntax-value|nternal-event-symbol-parse-modifiers|nternal-face-x-get-resource|nternal-get-lisp-face-attribute|nternal-lisp-face-attribute-values|nternal-lisp-face-empty-p|nternal-lisp-face-equal-p|nternal-lisp-face-p|nternal-macroexpand-for-load|nternal-make-lisp-face|nternal-make-var-non-special|nternal-merge-in-global-face|nternal-pop-keymap|nternal-push-keymap|nternal-set-alternative-font-family-alist|nternal-set-alternative-font-registry-alist|nternal-set-font-selection-order|nternal-set-lisp-face-attribute-from-resource|nternal-set-lisp-face-attribute|nternal-show-cursor-p|nternal-show-cursor|nternal-temp-output-buffer-show|nternal-timer-start-idle|ntersection|nverse-add-abbrev|nverse-add-global-abbrev|nverse-add-mode-abbrev|nversion-<|nversion-=|nversion-add-to-load-path|nversion-check-version|nversion-decode-version|nversion-download-package-ask|nversion-find-version|nversion-locate-package-files-and-split|nversion-locate-package-files|nversion-package-incompatibility-version|nversion-package-version|nversion-recode|nversion-release-to-number|nversion-require-emacs|nversion-require|nversion-reverse-test|nversion-test|pconfig|rc|sInNet|sPlainHostName|sResolvable|search--get-state|search--set-state|search--state-barrier--cmacro|search--state-barrier|search--state-case-fold-search--cmacro|search--state-case-fold-search|search--state-error--cmacro|search--state-error|search--state-forward--cmacro|search--state-forward|search--state-message--cmacro|search--state-message|search--state-other-end--cmacro|search--state-other-end|search--state-p--cmacro|search--state-p|search--state-point--cmacro|search--state-point|search--state-pop-fun--cmacro|search--state-pop-fun|search--state-string--cmacro|search--state-string|search--state-success--cmacro|search--state-success|search--state-word--cmacro|search--state-word|search--state-wrapped--cmacro|search--state-wrapped|search-abort|search-back-into-window|search-backslash|search-backward-regexp|search-backward|search-cancel|search-char-by-name|search-clean-overlays|search-close-unnecessary-overlays|search-complete-edit|search-complete1??|search-dehighlight|search-del-char|search-delete-char|search-describe-bindings|search-describe-key|search-describe-mode|search-done|search-edit-string|search-exit|search-fail-pos|search-fallback|search-filter-visible|search-forward-exit-minibuffer|search-forward-regexp|search-forward-symbol-at-point|search-forward-symbol|search-forward-word|search-forward|search-help-for-help-internal-doc|search-help-for-help-internal|search-help-for-help|search-highlight-regexp|search-highlight|search-intersects-p|search-lazy-highlight-cleanup|search-lazy-highlight-new-loop|search-lazy-highlight-search|search-lazy-highlight-update|search-message-prefix|search-message-suffix|search-message|search-mode-help|search-mode|search-mouse-2|search-no-upper-case-p|search-nonincremental-exit-minibuffer|search-occur|search-open-necessary-overlays|search-open-overlay-temporary|search-pop-state|search-post-command-hook|search-pre-command-hook|search-printing-char|search-process-search-char|search-process-search-multibyte-characters|search-process-search-string|search-push-state|search-query-replace-regexp|search-query-replace|search-quote-char|search-range-invisible|search-repeat-backward|search-repeat-forward|search-repeat|search-resume|search-reverse-exit-minibuffer|search-ring-adjust1??|search-ring-advance|search-ring-retreat|search-search-and-update|search-search-fun-default|search-search-fun|search-search-string|search-search|search-string-out-of-window|search-symbol-regexp|search-text-char-description|search-toggle-case-fold|search-toggle-input-method|search-toggle-invisible|search-toggle-lax-whitespace|search-toggle-regexp|search-toggle-specified-input-method|search-toggle-symbol|search-toggle-word|search-unread|search-update-ring|search-update|search-yank-char-in-minibuffer|search-yank-char|search-yank-internal|search-yank-kill|search-yank-line|search-yank-pop|search-yank-string|search-yank-word-or-char|search-yank-word|search-yank-x-selection|searchb-activate|searchb-follow-char|searchb-iswitchb|searchb-set-keybindings|searchb-stop|searchb|so-charset|so-cvt-define-menu|so-cvt-read-only|so-cvt-write-only|so-german|so-gtex2iso|so-iso2duden|so-iso2gtex|so-iso2sgml|so-iso2tex|so-sgml2iso|so-spanish|so-tex2iso|so-transl-ctl-x-8-map|spell-accept-buffer-local-defs|spell-accept-output|spell-add-per-file-word-list|spell-aspell-add-aliases|spell-aspell-find-dictionary|spell-begin-skip-region-regexp|spell-begin-skip-region|spell-begin-tex-skip-regexp|spell-buffer-local-dict|spell-buffer-local-parsing|spell-buffer-local-words|spell-buffer-with-debug|spell-buffer|spell-call-process-region|spell-call-process|spell-change-dictionary|spell-check-minver|spell-check-version|spell-command-loop|spell-comments-and-strings|spell-complete-word-interior-frag|spell-complete-word|spell-continue|spell-create-debug-buffer|spell-decode-string|spell-display-buffer|spell-filter|spell-find-aspell-dictionaries|spell-find-hunspell-dictionaries|spell-get-aspell-config-value|spell-get-casechars|spell-get-coding-system|spell-get-decoded-string|spell-get-extended-character-mode|spell-get-ispell-args|spell-get-line|spell-get-many-otherchars-p|spell-get-not-casechars|spell-get-otherchars|spell-get-word|spell-help|spell-highlight-spelling-error-generic|spell-highlight-spelling-error-overlay|spell-highlight-spelling-error-xemacs|spell-highlight-spelling-error|spell-horiz-scroll|spell-hunspell-fill-dictionary-entry|spell-ignore-fcc|spell-init-process|spell-int-char|spell-internal-change-dictionary|spell-kill-ispell|spell-looking-at|spell-looking-back|spell-lookup-words|spell-menu-map|spell-message|spell-mime-multipartp|spell-mime-skip-part|spell-minor-check|spell-minor-mode|spell-non-empty-string|spell-parse-hunspell-affix-file|spell-parse-output|spell-pdict-save|spell-print-if-debug|spell-process-line|spell-process-status|spell-region|spell-send-replacement|spell-send-string|spell-set-spellchecker-params|spell-show-choices|spell-skip-region-list|spell-skip-region|spell-start-process|spell-tex-arg-end|spell-valid-dictionary-list|spell-with-no-warnings|spell-word|spell|sqrt|switchb-buffer-other-frame|switchb-buffer-other-window|switchb-buffer|switchb-case|switchb-chop|switchb-complete|switchb-completion-help|switchb-completions|switchb-display-buffer|switchb-entryfn-p|switchb-exhibit|switchb-existing-buffer-p|switchb-exit-minibuffer|switchb-find-common-substring|switchb-find-file|switchb-get-buffers-in-frames|switchb-get-bufname|switchb-get-matched-buffers|switchb-ignore-buffername-p|switchb-init-XEmacs-trick|switchb-kill-buffer|switchb-make-buflist|switchb-makealist|switchb-minibuffer-setup|switchb-mode|switchb-next-match|switchb-output-completion|switchb-possible-new-buffer)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:iswitchb-post-command|iswitchb-pre-command|iswitchb-prev-match|iswitchb-read-buffer|iswitchb-rotate-list|iswitchb-select-buffer-text|iswitchb-set-common-completion|iswitchb-set-matches|iswitchb-summaries-to-end|iswitchb-tidy|iswitchb-to-end|iswitchb-toggle-case|iswitchb-toggle-ignore|iswitchb-toggle-regexp|iswitchb-visit-buffer|iswitchb-window-buffer-p|iswitchb-word-matching-substring|iswitchb-xemacs-backspacekey|iswitchb|iwconfig|japanese-hankaku-region|japanese-hankaku|japanese-hiragana-region|japanese-hiragana|japanese-katakana-region|japanese-katakana|japanese-zenkaku-region|japanese-zenkaku|java-font-lock-keywords-2|java-font-lock-keywords-3|java-font-lock-keywords|java-mode|javascript-mode|jdb|jit-lock--debug-fontify|jit-lock-after-change|jit-lock-context-fontify|jit-lock-debug-mode|jit-lock-deferred-fontify|jit-lock-fontify-now|jit-lock-force-redisplay|jit-lock-function|jit-lock-mode|jit-lock-refontify|jit-lock-stealth-chunk-start|jit-lock-stealth-fontify|jka-compr-build-file-regexp|jka-compr-byte-compiler-base-file-name|jka-compr-call-process|jka-compr-error|jka-compr-file-local-copy|jka-compr-get-compression-info|jka-compr-handler|jka-compr-info-can-append|jka-compr-info-compress-args|jka-compr-info-compress-message|jka-compr-info-compress-program|jka-compr-info-file-magic-bytes|jka-compr-info-regexp|jka-compr-info-strip-extension|jka-compr-info-uncompress-args|jka-compr-info-uncompress-message|jka-compr-info-uncompress-program|jka-compr-insert-file-contents|jka-compr-install|jka-compr-installed-p|jka-compr-load|jka-compr-make-temp-name|jka-compr-partial-uncompress|jka-compr-run-real-handler|jka-compr-set|jka-compr-uninstall|jka-compr-update|jka-compr-write-region|join-line|js--array-comp-indentation|js--backward-pstate|js--backward-syntactic-ws|js--backward-text-property|js--beginning-of-defun-flat|js--beginning-of-defun-nested|js--beginning-of-defun-raw|js--beginning-of-macro|js--class-decl-matcher|js--clear-stale-cache|js--continued-expression-p|js--ctrl-statement-indentation|js--debug|js--end-of-defun-flat|js--end-of-defun-nested|js--end-of-do-while-loop-p|js--ensure-cache--pop-if-ended|js--ensure-cache--update-parse|js--ensure-cache|js--flatten-list|js--flush-caches|js--forward-destructuring-spec|js--forward-expression|js--forward-function-decl|js--forward-pstate|js--forward-syntactic-ws|js--forward-text-property|js--function-prologue-beginning|js--get-all-known-symbols|js--get-c-offset|js--get-js-context|js--get-tabs|js--guess-eval-defun-info|js--guess-function-name|js--guess-symbol-at-point|js--imenu-create-index|js--imenu-to-flat|js--indent-in-array-comp|js--inside-dojo-class-list-p|js--inside-param-list-p|js--inside-pitem-p|js--js-add-resource-alias|js--js-content-window|js--js-create-instance|js--js-decode-retval|js--js-encode-value|js--js-enter-repl|js--js-eval|js--js-funcall|js--js-get-service|js--js-get|js--js-handle-expired-p|js--js-handle-id--cmacro|js--js-handle-id|js--js-handle-p--cmacro|js--js-handle-p|js--js-handle-process--cmacro|js--js-handle-process|js--js-leave-repl|js--js-list|js--js-new|js--js-not|js--js-put|js--js-qi|js--js-true|js--js-wait-for-eval-prompt|js--looking-at-operator-p|js--make-framework-matcher|js--make-merged-item|js--make-nsilocalfile|js--maybe-join|js--maybe-make-marker|js--multi-line-declaration-indentation|js--optimize-arglist|js--parse-state-at-point|js--pitem-add-child|js--pitem-b-end--cmacro|js--pitem-b-end|js--pitem-children--cmacro|js--pitem-children|js--pitem-format|js--pitem-goto-h-end|js--pitem-h-begin--cmacro|js--pitem-h-begin|js--pitem-name--cmacro|js--pitem-name|js--pitem-paren-depth--cmacro|js--pitem-paren-depth|js--pitem-strname|js--pitem-type--cmacro|js--pitem-type|js--pitems-to-imenu|js--proper-indentation|js--pstate-is-toplevel-defun|js--re-search-backward-inner|js--re-search-backward|js--re-search-forward-inner|js--re-search-forward|js--read-symbol|js--read-tab|js--regexp-opt-symbol|js--same-line|js--show-cache-at-point|js--splice-into-items|js--split-name|js--syntactic-context-from-pstate|js--syntax-begin-function|js--up-nearby-list|js--update-quick-match-re|js--variable-decl-matcher|js--wait-for-matching-output|js--which-func-joiner|js-beginning-of-defun|js-c-fill-paragraph|js-end-of-defun|js-eval-defun|js-eval|js-find-symbol|js-gc|js-indent-line|js-mode|js-set-js-context|js-syntactic-context|js-syntax-propertize-regexp|js-syntax-propertize|json--with-indentation|json-add-to-object|json-advance|json-alist-p|json-decode-char0|json-encode-alist|json-encode-array|json-encode-char0??|json-encode-hash-table|json-encode-key|json-encode-keyword|json-encode-list|json-encode-number|json-encode-plist|json-encode-string|json-encode|json-join|json-new-object|json-peek|json-plist-p|json-pop|json-pretty-print-buffer|json-pretty-print|json-read-array|json-read-escaped-char|json-read-file|json-read-from-string|json-read-keyword|json-read-number|json-read-object|json-read-string|json-read|json-skip-whitespace|jump-to-register|kbd-macro-query|keep-lines-read-args|keep-lines|kermit-clean-filter|kermit-clean-off|kermit-clean-on|kermit-default-cr|kermit-default-nl|kermit-esc|kermit-send-char|kermit-send-input-cr|keyboard-escape-quit|keymap--menu-item-binding|keymap--menu-item-with-binding|keymap--merge-bindings|keymap-canonicalize|keypad-setup|kill-all-abbrevs|kill-backward-chars|kill-backward-up-list|kill-buffer-and-window|kill-buffer-ask|kill-buffer-if-not-modified|kill-comment|kill-compilation|kill-completion|kill-emacs-save-completions|kill-find|kill-forward-chars|kill-grep|kill-line|kill-matching-buffers|kill-paragraph|kill-rectangle|kill-ring-save|kill-sentence|kill-sexp|kill-some-buffers|kill-this-buffer-enabled-p|kill-this-buffer|kill-visual-line|kill-whole-line|kill-word|kinsoku-longer|kinsoku-shorter|kinsoku|kkc-region|kmacro-add-counter|kmacro-bind-to-key|kmacro-call-macro|kmacro-call-ring-2nd-repeat|kmacro-call-ring-2nd|kmacro-cycle-ring-next|kmacro-cycle-ring-previous|kmacro-delete-ring-head|kmacro-display-counter|kmacro-display|kmacro-edit-lossage|kmacro-edit-macro-repeat|kmacro-edit-macro|kmacro-end-and-call-macro|kmacro-end-call-mouse|kmacro-end-macro|kmacro-end-or-call-macro-repeat|kmacro-end-or-call-macro|kmacro-exec-ring-item|kmacro-execute-from-register|kmacro-extract-lambda|kmacro-get-repeat-prefix|kmacro-insert-counter|kmacro-keyboard-quit|kmacro-lambda-form|kmacro-loop-setup-function|kmacro-name-last-macro|kmacro-pop-ring1??|kmacro-push-ring|kmacro-repeat-on-last-key|kmacro-ring-empty-p|kmacro-ring-head|kmacro-set-counter|kmacro-set-format|kmacro-split-ring-element|kmacro-start-macro-or-insert-counter|kmacro-start-macro|kmacro-step-edit-insert|kmacro-step-edit-macro|kmacro-step-edit-minibuf-setup|kmacro-step-edit-post-command|kmacro-step-edit-pre-command|kmacro-step-edit-prompt|kmacro-step-edit-query|kmacro-swap-ring|kmacro-to-register|kmacro-view-macro-repeat|kmacro-view-macro|kmacro-view-ring-2nd|lambda|landmark--distance|landmark--intangible|landmark-amble-robot|landmark-beginning-of-line|landmark-blackbox|landmark-calc-confidences|landmark-calc-current-smells|landmark-calc-distance-of-robot-from|landmark-calc-payoff|landmark-calc-smell-internal|landmark-check-filled-qtuple|landmark-click|landmark-confidence-for|landmark-crash-game|landmark-cross-qtuple|landmark-display-statistics|landmark-emacs-plays|landmark-end-of-line|landmark-f|landmark-find-filled-qtuple|landmark-fix-weights-for|landmark-flip-a-coin|landmark-goto-square|landmark-goto-xy|landmark-human-plays|landmark-human-resigns|landmark-human-takes-back|landmark-index-to-x|landmark-index-to-y|landmark-init-board|landmark-init-display|landmark-init-score-table|landmark-init-square-score|landmark-init|landmark-max-height|landmark-max-width|landmark-mode|landmark-mouse-play|landmark-move-down|landmark-move-ne|landmark-move-nw|landmark-move-se|landmark-move-sw|landmark-move-up|landmark-move|landmark-nb-qtuples|landmark-noise|landmark-nslify-wts-int|landmark-nslify-wts|landmark-offer-a-draw|landmark-play-move|landmark-plot-internal|landmark-plot-landmarks|landmark-plot-square|landmark-point-square|landmark-point-y|landmark-print-distance-int|landmark-print-distance|landmark-print-moves|landmark-print-smell-int|landmark-print-smell|landmark-print-w0-int|landmark-print-w0|landmark-print-wts-blackbox|landmark-print-wts-int|landmark-print-wts|landmark-print-y-s-noise-int|landmark-print-y-s-noise|landmark-prompt-for-move|landmark-prompt-for-other-game|landmark-random-move|landmark-randomize-weights-for|landmark-repeat|landmark-set-landmark-signal-strengths|landmark-start-game|landmark-start-robot|landmark-store-old-y_t|landmark-strongest-square|landmark-switch-to-window|landmark-take-back|landmark-terminate-game|landmark-test-run|landmark-update-naught-weights|landmark-update-normal-weights|landmark-update-score-in-direction|landmark-update-score-table|landmark-weights-debug|landmark-xy-to-index|landmark-y|landmark|lao-compose-region|lao-compose-string|lao-composition-function|lao-transcribe-roman-to-lao-string|lao-transcribe-single-roman-syllable-to-lao|last-nonminibuffer-frame|last-sexp-setup-props|latex-backward-sexp-1|latex-close-block|latex-complete-bibtex-keys|latex-complete-data|latex-complete-envnames|latex-complete-refkeys|latex-down-list|latex-electric-env-pair-mode|latex-env-before-change|latex-fill-nobreak-predicate|latex-find-indent|latex-forward-sexp-1|latex-forward-sexp|latex-imenu-create-index|latex-indent|latex-insert-block|latex-insert-item|latex-mode|latex-outline-level|latex-skip-close-parens|latex-split-block|latex-string-prefix-p|latex-syntax-after|latexenc-coding-system-to-inputenc|latexenc-find-file-coding-system|latexenc-inputenc-to-coding-system|latin1-display|lazy-highlight-cleanup|lcm|ld-script-mode|ldap-decode-address|ldap-decode-attribute|ldap-decode-boolean|ldap-decode-string|ldap-encode-address|ldap-encode-boolean|ldap-encode-country-string|ldap-encode-string|ldap-get-host-parameter|ldap-search-internal|ldap-search|ldiff|led-flash|led-off|led-on|led-update|left-char|left-word|let-alist--access-sexp|let-alist--deep-dot-search|let-alist--list-to-sexp|let-alist--remove-dot|let-alist|letf\\\\*?|letrec|lglyph-adjustment|lglyph-ascent|lglyph-char|lglyph-code|lglyph-copy|lglyph-descent|lglyph-from|lglyph-lbearing|lglyph-rbearing|lglyph-set-adjustment|lglyph-set-char|lglyph-set-code|lglyph-set-from-to|lglyph-set-width|lglyph-to|lglyph-width|lgrep|lgstring-char-len|lgstring-char|lgstring-font|lgstring-glyph-len|lgstring-glyph|lgstring-header|lgstring-insert-glyph|lgstring-set-glyph|lgstring-set-header|lgstring-set-id|lgstring-shaped-p|life-birth-char|life-birth-string|life-compute-neighbor-deltas|life-death-char|life-death-string|life-display-generation|life-expand-plane-if-needed|life-extinct-quit|life-grim-reaper|life-increment-generation|life-increment|life-insert-random-pattern|life-life-char|life-life-string|life-mode|life-not-void-regexp|life-setup|life-void-char|life-void-string|life|limit-index|line-move-1|line-move-finish|line-move-partial|line-move-to-column|line-move-visual|line-move|line-number-mode|line-pixel-height|line-substring-with-bidi-context|linum--face-width|linum-after-change|linum-after-scroll|linum-delete-overlays|linum-mode-set-explicitly|linum-mode|linum-on|linum-schedule|linum-unload-function|linum-update-current|linum-update-window|linum-update|lisp--match-hidden-arg|lisp-comment-indent|lisp-compile-defun-and-go|lisp-compile-defun|lisp-compile-file|lisp-compile-region-and-go|lisp-compile-region|lisp-compile-string|lisp-complete-symbol|lisp-completion-at-point|lisp-current-defun-name|lisp-describe-sym|lisp-do-defun|lisp-eval-defun-and-go|lisp-eval-defun|lisp-eval-form-and-next|lisp-eval-last-sexp|lisp-eval-paragraph|lisp-eval-region-and-go|lisp-eval-region|lisp-eval-string|lisp-fill-paragraph|lisp-find-tag-default|lisp-fn-called-at-pt|lisp-font-lock-syntactic-face-function|lisp-get-old-input|lisp-indent-defform|lisp-indent-function|lisp-indent-line|lisp-indent-specform|lisp-input-filter|lisp-interaction-mode|lisp-load-file|lisp-mode-auto-fill|lisp-mode-variables|lisp-mode|lisp-outline-level|lisp-show-arglist|lisp-show-function-documentation|lisp-show-variable-documentation|lisp-string-after-doc-keyword-p|lisp-string-in-doc-position-p)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:lisp-symprompt|lisp-var-at-pt|list\\\\*|list-abbrevs|list-all-completions-1|list-all-completions-by-hash-bucket-1|list-all-completions-by-hash-bucket|list-all-completions|list-at-point|list-bookmarks|list-buffers--refresh|list-buffers-noselect|list-buffers|list-character-sets|list-coding-categories|list-coding-systems|list-colors-display|list-colors-duplicates|list-colors-print|list-colors-redisplay|list-colors-sort-key|list-command-history|list-directory|list-dynamic-libraries|list-faces-display|list-fontsets|list-holidays|list-input-methods|list-length|list-matching-lines|list-packages|list-processes--refresh|list-registers|list-tags|lm-adapted-by|lm-authors|lm-code-mark|lm-code-start|lm-commentary-end|lm-commentary-mark|lm-commentary-start|lm-commentary|lm-copyright-mark|lm-crack-address|lm-crack-copyright|lm-creation-date|lm-get-header-re|lm-get-package-name|lm-header-multiline|lm-header|lm-history-mark|lm-history-start|lm-homepage|lm-insert-at-column|lm-keywords-finder-p|lm-keywords-list|lm-keywords|lm-last-modified-date|lm-maintainer|lm-report-bug|lm-section-end|lm-section-mark|lm-section-start|lm-summary|lm-synopsis|lm-verify|lm-version|lm-with-file|load-completions-from-file|load-history-filename-element|load-history-regexp|load-path-shadows-find|load-path-shadows-mode|load-path-shadows-same-file-or-nonexistent|load-save-place-alist-from-file|load-time-value|load-with-code-conversion|local-clear-scheme-interaction-buffer|local-set-scheme-interaction-buffer|locale-charset-match-p|locale-charset-to-coding-system|locale-name-match|locale-translate|locally|locate-completion-db-error|locate-completion-entry-retry|locate-completion-entry|locate-current-line-number|locate-default-make-command-line|locate-do-redisplay|locate-do-setup|locate-dominating-file|locate-file-completion-table|locate-file-completion|locate-file-internal|locate-filter-output|locate-find-directory-other-window|locate-find-directory|locate-get-dirname|locate-get-file-positions|locate-get-filename|locate-in-alternate-database|locate-insert-header|locate-main-listing-line-p|locate-mode|locate-mouse-view-file|locate-prompt-for-search-string|locate-set-properties|locate-tags|locate-update|locate-with-filter|locate-word-at-point|locate|log-edit--match-first-line|log-edit-add-field|log-edit-add-to-changelog|log-edit-beginning-of-line|log-edit-changelog-entries|log-edit-changelog-entry|log-edit-changelog-insert-entries|log-edit-changelog-ours-p|log-edit-changelog-paragraph|log-edit-changelog-subparagraph|log-edit-comment-search-backward|log-edit-comment-search-forward|log-edit-comment-to-change-log|log-edit-done|log-edit-empty-buffer-p|log-edit-extract-headers|log-edit-files|log-edit-font-lock-keywords|log-edit-goto-eoh|log-edit-hide-buf|log-edit-insert-changelog-entries|log-edit-insert-changelog|log-edit-insert-cvs-rcstemplate|log-edit-insert-cvs-template|log-edit-insert-filenames-without-changelog|log-edit-insert-filenames|log-edit-insert-message-template|log-edit-kill-buffer|log-edit-match-to-eoh|log-edit-menu|log-edit-mode-help|log-edit-mode|log-edit-narrow-changelog|log-edit-new-comment-index|log-edit-next-comment|log-edit-previous-comment|log-edit-remember-comment|log-edit-set-common-indentation|log-edit-set-header|log-edit-show-diff|log-edit-show-files|log-edit-toggle-header|log-edit|log-view-annotate-version|log-view-beginning-of-defun|log-view-current-entry|log-view-current-file|log-view-current-tag|log-view-diff-changeset|log-view-diff-common|log-view-diff|log-view-end-of-defun-1|log-view-end-of-defun|log-view-extract-comment|log-view-file-next|log-view-file-prev|log-view-find-revision|log-view-get-marked|log-view-goto-rev|log-view-inside-comment-p|log-view-minor-wrap|log-view-mode-menu|log-view-mode|log-view-modify-change-comment|log-view-msg-next|log-view-msg-prev|log-view-toggle-entry-display|log-view-toggle-mark-entry|log10|lookfor-dired|lookup-image-map|lookup-key-ignore-too-long|lookup-minor-mode-from-indicator|lookup-nested-alist|lookup-words|loop|lpr-buffer|lpr-customize|lpr-eval-switch|lpr-flatten-list-1|lpr-flatten-list|lpr-print-region|lpr-region|lpr-setup|lunar-phases|m2-begin-comment|m2-begin|m2-case|m2-compile|m2-definition|m2-else|m2-end-comment|m2-execute-monitor-command|m2-export|m2-for|m2-header|m2-if|m2-import|m2-link|m2-loop|m2-mode|m2-module|m2-or|m2-procedure|m2-record|m2-smie-backward-token|m2-smie-forward-token|m2-smie-refine-colon|m2-smie-refine-of|m2-smie-refine-semi|m2-smie-rules|m2-stdio|m2-toggle|m2-type|m2-until|m2-var|m2-visit|m2-while|m2-with|m4--quoted-p|m4-current-defun-name|m4-m4-buffer|m4-m4-region|m4-mode|macro-declaration-function|macroexp--accumulate|macroexp--all-clauses|macroexp--all-forms|macroexp--backtrace|macroexp--compiler-macro|macroexp--compiling-p|macroexp--cons|macroexp--const-symbol-p|macroexp--expand-all|macroexp--funcall-if-compiled|macroexp--maxsize|macroexp--obsolete-warning|macroexp--trim-backtrace-frame|macroexp--warn-and-return|macroexp-const-p|macroexp-copyable-p|macroexp-if|macroexp-let\\\\*|macroexp-let2\\\\*?|macroexp-progn|macroexp-quote|macroexp-small-p|macroexp-unprogn|macroexpand-1|macrolet|mail-abbrev-complete-alias|mail-abbrev-end-of-buffer|mail-abbrev-expand-hook|mail-abbrev-expand-wrapper|mail-abbrev-in-expansion-header-p|mail-abbrev-insert-alias|mail-abbrev-make-syntax-table|mail-abbrev-next-line|mail-abbrevs-disable|mail-abbrevs-enable|mail-abbrevs-mode|mail-abbrevs-setup|mail-abbrevs-sync-aliases|mail-add-attachment|mail-add-payment-async|mail-add-payment|mail-attach-file|mail-bcc|mail-bury|mail-cc|mail-check-payment|mail-comma-list-regexp|mail-complete|mail-completion-at-point-function|mail-completion-expand|mail-content-type-get|mail-decode-encoded-address-region|mail-decode-encoded-address-string|mail-decode-encoded-word-region|mail-decode-encoded-word-string|mail-directory-process|mail-directory-stream|mail-directory|mail-do-fcc|mail-dont-reply-to|mail-dont-send|mail-encode-encoded-word-buffer|mail-encode-encoded-word-region|mail-encode-encoded-word-string|mail-encode-header|mail-envelope-from|mail-extract-address-components|mail-fcc|mail-fetch-field|mail-file-babyl-p|mail-fill-yanked-message|mail-get-names|mail-header-chars|mail-header-date|mail-header-encode-parameter|mail-header-end|mail-header-extra|mail-header-extract-no-properties|mail-header-extract|mail-header-field-value|mail-header-fold-field|mail-header-format|mail-header-from|mail-header-get-comment|mail-header-id|mail-header-lines|mail-header-make-address|mail-header-merge|mail-header-message-id|mail-header-narrow-to-field|mail-header-number|mail-header-parse-address|mail-header-parse-addresses|mail-header-parse-content-disposition|mail-header-parse-content-type|mail-header-parse-date|mail-header-parse|mail-header-references|mail-header-remove-comments|mail-header-remove-whitespace|mail-header-set-chars|mail-header-set-date|mail-header-set-extra|mail-header-set-from|mail-header-set-id|mail-header-set-lines|mail-header-set-message-id|mail-header-set-number|mail-header-set-references|mail-header-set-subject|mail-header-set-xref|mail-header-set|mail-header-strip|mail-header-subject|mail-header-unfold-field|mail-header-xref|mail-header|mail-hist-define-keys|mail-hist-enable|mail-hist-put-headers-into-history|mail-indent-citation|mail-insert-file|mail-insert-from-field|mail-mail-followup-to|mail-mail-reply-to|mail-mbox-from|mail-mode-auto-fill|mail-mode-fill-paragraph|mail-mode-flyspell-verify|mail-mode|mail-narrow-to-head|mail-other-frame|mail-other-window|mail-parse-comma-list|mail-position-on-field|mail-quote-printable-region|mail-quote-printable|mail-quote-string|mail-recover-1|mail-recover|mail-reply-to|mail-resolve-all-aliases-1|mail-resolve-all-aliases|mail-rfc822-date|mail-rfc822-time-zone|mail-send-and-exit|mail-send|mail-sendmail-delimit-header|mail-sendmail-undelimit-header|mail-sent-via|mail-sentto-newsgroups|mail-setup|mail-signature|mail-split-line|mail-string-delete|mail-strip-quoted-names|mail-subject|mail-text-start|mail-text|mail-to|mail-unquote-printable-hexdigit|mail-unquote-printable-region|mail-unquote-printable|mail-yank-clear-headers|mail-yank-original|mail-yank-region|mail|mailcap-add-mailcap-entry|mailcap-add|mailcap-command-p|mailcap-delete-duplicates|mailcap-extension-to-mime|mailcap-file-default-commands|mailcap-mailcap-entry-passes-test|mailcap-maybe-eval|mailcap-mime-info|mailcap-mime-types|mailcap-parse-mailcap-extras|mailcap-parse-mailcaps??|mailcap-parse-mimetype-file|mailcap-parse-mimetypes|mailcap-possible-viewers|mailcap-replace-in-string|mailcap-replace-regexp|mailcap-save-binary-file|mailcap-unescape-mime-test|mailcap-view-mime|mailcap-viewer-lessp|mailcap-viewer-passes-test|mailclient-encode-string-as-url|mailclient-gather-addresses|mailclient-send-it|mailclient-url-delim|mairix-build-search-list|mairix-call-mairix|mairix-edit-saved-searches-customize|mairix-edit-saved-searches|mairix-gnus-ephemeral-nndoc|mairix-gnus-fetch-field|mairix-insert-search-line|mairix-next-search|mairix-previous-search|mairix-replace-invalid-chars|mairix-rmail-display|mairix-rmail-fetch-field|mairix-save-search|mairix-search-from-this-article|mairix-search-thread-this-article|mairix-search|mairix-searches-mode|mairix-select-delete|mairix-select-edit|mairix-select-quit|mairix-select-save|mairix-select-search|mairix-sentinel-mairix-update-finished|mairix-show-folder|mairix-update-database|mairix-use-saved-search|mairix-vm-display|mairix-vm-fetch-field|mairix-widget-add|mairix-widget-build-editable-fields|mairix-widget-create-query|mairix-widget-get-values|mairix-widget-make-query-from-widgets|mairix-widget-save-search|mairix-widget-search-based-on-article|mairix-widget-search|mairix-widget-send-query|mairix-widget-toggle-activate|make-backup-file-name--default-function|make-backup-file-name-1|make-char-internal|make-char|make-cmpl-prefix-entry|make-coding-system|make-comint-in-buffer|make-comint|make-command-summary|make-completion|make-directory-internal|make-doctor-variables|make-ebrowse-bs--cmacro|make-ebrowse-bs|make-ebrowse-cs--cmacro|make-ebrowse-cs|make-ebrowse-hs--cmacro|make-ebrowse-hs|make-ebrowse-ms--cmacro|make-ebrowse-ms|make-ebrowse-position--cmacro|make-ebrowse-position|make-ebrowse-ts--cmacro|make-ebrowse-ts|make-empty-face|make-erc-channel-user--cmacro|make-erc-channel-user|make-erc-response--cmacro|make-erc-response|make-erc-server-user--cmacro|make-erc-server-user|make-ert--ewoc-entry--cmacro|make-ert--ewoc-entry|make-ert--stats--cmacro|make-ert--stats|make-ert--test-execution-info--cmacro|make-ert--test-execution-info|make-ert-test--cmacro|make-ert-test-aborted-with-non-local-exit--cmacro|make-ert-test-aborted-with-non-local-exit|make-ert-test-failed--cmacro|make-ert-test-failed|make-ert-test-passed--cmacro|make-ert-test-passed|make-ert-test-quit--cmacro|make-ert-test-quit|make-ert-test-result--cmacro|make-ert-test-result-with-condition--cmacro|make-ert-test-result-with-condition|make-ert-test-result|make-ert-test-skipped--cmacro|make-ert-test-skipped|make-ert-test|make-face-bold-italic|make-face-bold|make-face-italic|make-face-unbold|make-face-unitalic|make-face-x-resource-internal|make-face|make-flyspell-overlay|make-frame-command|make-frame-names-alist|make-full-mail-header|make-gdb-handler--cmacro|make-gdb-handler|make-gdb-table--cmacro|make-gdb-table|make-hippie-expand-function|make-htmlize-fstruct--cmacro|make-htmlize-fstruct|make-initial-minibuffer-frame|make-instance|make-js--js-handle--cmacro|make-js--js-handle|make-js--pitem--cmacro|make-js--pitem|make-mail-header|make-mode-line-mouse-map|make-obsolete-overload|make-package--ac-desc--cmacro|make-package--ac-desc|make-package--bi-desc--cmacro|make-package--bi-desc|make-random-state|make-ses--locprn--cmacro|make-ses--locprn|make-sgml-tag--cmacro|make-sgml-tag|make-soap-array-type--cmacro|make-soap-array-type|make-soap-basic-type--cmacro|make-soap-basic-type|make-soap-binding--cmacro|make-soap-binding|make-soap-bound-operation--cmacro|make-soap-bound-operation|make-soap-element--cmacro|make-soap-element|make-soap-message--cmacro|make-soap-message|make-soap-namespace--cmacro|make-soap-namespace-link--cmacro|make-soap-namespace-link|make-soap-namespace|make-soap-operation--cmacro|make-soap-operation|make-soap-port--cmacro|make-soap-port-type--cmacro|make-soap-port-type)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)m(?:ake-soap-port|ake-soap-sequence-element--cmacro|ake-soap-sequence-element|ake-soap-sequence-type--cmacro|ake-soap-sequence-type|ake-soap-simple-type--cmacro|ake-soap-simple-type|ake-soap-wsdl--cmacro|ake-soap-wsdl|ake-tar-header--cmacro|ake-tar-header|ake-term|ake-terminal-frame|ake-url-queue--cmacro|ake-url-queue|ake-variable-frame-local|akefile-add-log-defun|akefile-append-backslash|akefile-automake-mode|akefile-backslash-region|akefile-browse|akefile-browser-fill|akefile-browser-format-macro-line|akefile-browser-format-target-line|akefile-browser-get-state-for-line|akefile-browser-insert-continuation|akefile-browser-insert-selection-and-quit|akefile-browser-insert-selection|akefile-browser-next-line|akefile-browser-on-macro-line-p|akefile-browser-previous-line|akefile-browser-quit|akefile-browser-send-this-line-item|akefile-browser-set-state-for-line|akefile-browser-start-interaction|akefile-browser-this-line-macro-name|akefile-browser-this-line-target-name|akefile-browser-toggle-state-for-line|akefile-browser-toggle|akefile-bsdmake-mode|akefile-cleanup-continuations|akefile-complete|akefile-completions-at-point|akefile-create-up-to-date-overview|akefile-delete-backslash|akefile-do-macro-insertion|akefile-electric-colon|akefile-electric-dot|akefile-electric-equal|akefile-fill-paragraph|akefile-first-line-p|akefile-format-macro-ref|akefile-forward-after-target-colon|akefile-generate-temporary-filename|akefile-gmake-mode|akefile-imake-mode|akefile-insert-gmake-function|akefile-insert-macro-ref|akefile-insert-macro|akefile-insert-special-target|akefile-insert-target-ref|akefile-insert-target|akefile-last-line-p|akefile-make-font-lock-keywords|akefile-makepp-mode|akefile-match-action|akefile-match-dependency|akefile-match-function-end|akefile-mode|akefile-next-dependency|akefile-pickup-everything|akefile-pickup-filenames-as-targets|akefile-pickup-macros|akefile-pickup-targets|akefile-previous-dependency|akefile-prompt-for-gmake-funargs|akefile-query-by-make-minus-q|akefile-query-targets|akefile-remember-macro|akefile-remember-target|akefile-save-temporary|akefile-switch-to-browser|akefile-warn-continuations|akefile-warn-suspicious-lines|akeinfo-buffer|akeinfo-compilation-sentinel-buffer|akeinfo-compilation-sentinel-region|akeinfo-compile|akeinfo-current-node|akeinfo-next-error|akeinfo-recenter-compilation-buffer|akeinfo-region|an-follow|an|antemp-insert-cxx-syntax|antemp-make-mantemps-buffer|antemp-make-mantemps-region|antemp-make-mantemps|antemp-remove-comments|antemp-remove-memfuncs|antemp-sort-and-unique-lines|anual-entry|ap-keymap-internal|ap-keymap-sorted|ap-query-replace-regexp|ap|apcan|apcar\\\\*|apcon|apl|aplist|ark-bib|ark-defun|ark-end-of-sentence|ark-icon-function|ark-page|ark-paragraph|ark-perl-function|ark-sexp|ark-whole-buffer|ark-word|aster-mode|aster-says-beginning-of-buffer|aster-says-end-of-buffer|aster-says-recenter|aster-says-scroll-down|aster-says-scroll-up|aster-says|aster-set-slave|aster-show-slave|atching-paren|ath-add-bignum|ath-add-float|ath-add|ath-bignum-big|ath-bignum|ath-build-parse-table|ath-check-complete|ath-comp-concat|ath-concat|ath-constp|ath-div-bignum-big|ath-div-bignum-digit|ath-div-bignum-part|ath-div-bignum-try|ath-div-bignum|ath-div-float|ath-div|ath-div10-bignum|ath-div2-bignum|ath-div2|ath-do-working|ath-evenp|ath-expr-ops|ath-find-user-tokens|ath-fixnatnump|ath-fixnump|ath-floatp??|ath-floor|ath-format-bignum-decimal|ath-format-bignum|ath-format-flat-expr|ath-format-number|ath-format-stack-value|ath-format-value|ath-idivmod|ath-imod|ath-infinitep|ath-ipow|ath-looks-negp|ath-make-float|ath-match-substring|ath-mod|ath-mul-bignum-digit|ath-mul-bignum|ath-mul|ath-negp??|ath-normalize|ath-numdigs|ath-posp|ath-pow|ath-quotient|ath-read-bignum|ath-read-expr-list|ath-read-exprs|ath-read-if|ath-read-number-simple|ath-read-number|ath-read-preprocess-string|ath-read-radix-digit|ath-read-token|ath-reject-arg|ath-remove-dashes|ath-scale-int|ath-scale-left-bignum|ath-scale-left|ath-scale-right-bignum|ath-scale-right|ath-scale-rounding|ath-showing-full-precision|ath-stack-value-offset|ath-standard-ops-p|ath-standard-ops|ath-sub-bignum|ath-sub-float|ath-sub|ath-trunc|ath-with-extra-prec|ath-working|ath-zerop|d4-64|d4-F|d4-G|d4-H|d4-add|d4-and|d4-copy64|d4-make-step|d4-pack-int16|d4-pack-int32|d4-round1|d4-round2|d4-round3|d4-unpack-int16|d4-unpack-int32|d4|d5-binary|ember\\\\*|ember-if-not|ember-if|emory-info|enu-bar-bookmark-map|enu-bar-buffer-vector|enu-bar-ediff-menu|enu-bar-ediff-merge-menu|enu-bar-ediff-misc-menu|enu-bar-enable-clipboard|enu-bar-epatch-menu|enu-bar-frame-for-menubar|enu-bar-handwrite-map|enu-bar-horizontal-scroll-bar|enu-bar-kill-ring-save|enu-bar-left-scroll-bar|enu-bar-make-mm-toggle|enu-bar-make-toggle|enu-bar-menu-at-x-y|enu-bar-menu-frame-live-and-visible-p|enu-bar-mode|enu-bar-next-tag-other-window|enu-bar-next-tag|enu-bar-no-horizontal-scroll-bar|enu-bar-no-scroll-bar|enu-bar-non-minibuffer-window-p|enu-bar-open|enu-bar-options-save|enu-bar-positive-p|enu-bar-read-lispintro|enu-bar-read-lispref|enu-bar-read-mail|enu-bar-right-scroll-bar|enu-bar-select-buffer|enu-bar-select-frame|enu-bar-select-yank|enu-bar-set-tool-bar-position|enu-bar-showhide-fringe-ind-box|enu-bar-showhide-fringe-ind-customize|enu-bar-showhide-fringe-ind-left|enu-bar-showhide-fringe-ind-mixed|enu-bar-showhide-fringe-ind-none|enu-bar-showhide-fringe-ind-right|enu-bar-showhide-fringe-menu-customize-disable|enu-bar-showhide-fringe-menu-customize-left|enu-bar-showhide-fringe-menu-customize-reset|enu-bar-showhide-fringe-menu-customize-right|enu-bar-showhide-fringe-menu-customize|enu-bar-showhide-tool-bar-menu-customize-disable|enu-bar-showhide-tool-bar-menu-customize-enable-bottom|enu-bar-showhide-tool-bar-menu-customize-enable-left|enu-bar-showhide-tool-bar-menu-customize-enable-right|enu-bar-showhide-tool-bar-menu-customize-enable-top|enu-bar-update-buffers-1|enu-bar-update-buffers|enu-bar-update-yank-menu|enu-find-file-existing|enu-or-popup-active-p|enu-set-font|ercury-mode|erge-coding-systems|erge-mail-abbrevs|erge|essage--yank-original-internal|essage-add-action|essage-add-archive-header|essage-add-header|essage-alter-recipients-discard-bogus-full-name|essage-beginning-of-line|essage-bogus-recipient-p|essage-bold-region|essage-bounce|essage-buffer-name|essage-buffers|essage-bury|essage-caesar-buffer-body|essage-caesar-region|essage-cancel-news|essage-canlock-generate|essage-canlock-password|essage-carefully-insert-headers|essage-change-subject|essage-check-element|essage-check-news-body-syntax|essage-check-news-header-syntax|essage-check-news-syntax|essage-check-recipients|essage-check|essage-checksum|essage-cite-original-1|essage-cite-original-without-signature|essage-cite-original|essage-cleanup-headers|essage-clone-locals|essage-completion-function|essage-completion-in-region|essage-cross-post-followup-to-header|essage-cross-post-followup-to|essage-cross-post-insert-note|essage-default-send-mail-function|essage-default-send-rename-function|essage-delete-action|essage-delete-line|essage-delete-not-region|essage-delete-overlay|essage-disassociate-draft|essage-display-abbrev|essage-do-actions|essage-do-auto-fill|essage-do-fcc|essage-do-send-housekeeping|essage-dont-reply-to-names|essage-dont-send|essage-elide-region|essage-encode-message-body|essage-exchange-point-and-mark|essage-expand-group|essage-expand-name|essage-fetch-field|essage-fetch-reply-field|essage-field-name|essage-field-value|essage-fill-field-address|essage-fill-field-general|essage-fill-field|essage-fill-paragraph|essage-fill-yanked-message|essage-fix-before-sending|essage-flatten-list|essage-followup|essage-font-lock-make-header-matcher|essage-forward-make-body-digest-mime|essage-forward-make-body-digest-plain|essage-forward-make-body-digest|essage-forward-make-body-mime|essage-forward-make-body-mml|essage-forward-make-body-plain|essage-forward-make-body|essage-forward-rmail-make-body|essage-forward-subject-author-subject|essage-forward-subject-fwd|essage-forward-subject-name-subject|essage-forward|essage-generate-headers|essage-generate-new-buffer-clone-locals|essage-generate-unsubscribed-mail-followup-to|essage-get-reply-headers|essage-gnksa-enable-p|essage-goto-bcc|essage-goto-body|essage-goto-cc|essage-goto-distribution|essage-goto-eoh|essage-goto-fcc|essage-goto-followup-to|essage-goto-from|essage-goto-keywords|essage-goto-mail-followup-to|essage-goto-newsgroups|essage-goto-reply-to|essage-goto-signature|essage-goto-subject|essage-goto-summary|essage-goto-to|essage-headers-to-generate|essage-hide-header-p|essage-hide-headers|essage-idna-to-ascii-rhs-1|essage-idna-to-ascii-rhs|essage-in-body-p|essage-indent-citation|essage-info|essage-insert-canlock|essage-insert-citation-line|essage-insert-courtesy-copy|essage-insert-disposition-notification-to|essage-insert-expires|essage-insert-formatted-citation-line|essage-insert-headers??|essage-insert-importance-high|essage-insert-importance-low|essage-insert-newsgroups|essage-insert-or-toggle-importance|essage-insert-signature|essage-insert-to|essage-insert-wide-reply|essage-insinuate-rmail|essage-is-yours-p|essage-kill-address|essage-kill-all-overlays|essage-kill-buffer|essage-kill-to-signature|essage-mail-alias-type-p|essage-mail-file-mbox-p|essage-mail-other-frame|essage-mail-other-window|essage-mail-p|essage-mail-user-agent|essage-mail|essage-make-address|essage-make-caesar-translation-table|essage-make-date|essage-make-distribution|essage-make-domain|essage-make-expires-date|essage-make-expires|essage-make-forward-subject|essage-make-fqdn|essage-make-from|essage-make-html-message-with-image-files|essage-make-in-reply-to|essage-make-lines|essage-make-mail-followup-to|essage-make-message-id|essage-make-organization|essage-make-overlay|essage-make-path|essage-make-references|essage-make-sender|essage-make-tool-bar|essage-mark-active-p|essage-mark-insert-file|essage-mark-inserted-region|essage-mode-field-menu|essage-mode-menu|essage-mode|essage-multi-smtp-send-mail|essage-narrow-to-field|essage-narrow-to-head-1|essage-narrow-to-head|essage-narrow-to-headers-or-head|essage-narrow-to-headers|essage-newline-and-reformat|essage-news-other-frame|essage-news-other-window|essage-news-p|essage-news|essage-next-header|essage-number-base36|essage-options-get|essage-options-set-recipient|essage-options-set|essage-output|essage-overlay-put|essage-pipe-buffer-body|essage-point-in-header-p|essage-pop-to-buffer|essage-position-on-field|essage-position-point|essage-posting-charset|essage-prune-recipients|essage-put-addresses-in-ecomplete|essage-read-from-minibuffer|essage-recover|essage-reduce-to-to-cc|essage-remove-blank-cited-lines|essage-remove-first-header|essage-remove-header|essage-remove-ignored-headers|essage-rename-buffer|essage-replace-header|essage-reply|essage-resend|essage-send-and-exit|essage-send-form-letter|essage-send-mail-function|essage-send-mail-partially|essage-send-mail-with-mailclient|essage-send-mail-with-mh|essage-send-mail-with-qmail|essage-send-mail-with-sendmail|essage-send-mail|essage-send-news|essage-send-via-mail|essage-send-via-news|essage-send|essage-sendmail-envelope-from|essage-set-auto-save-file-name|essage-setup-1|essage-setup-fill-variables|essage-setup-toolbar|essage-setup|essage-shorten-1|essage-shorten-references|essage-signed-or-encrypted-p|essage-simplify-recipients|essage-simplify-subject|essage-skip-to-next-address|essage-smtpmail-send-it|essage-sort-headers-1|essage-sort-headers|essage-split-line|essage-strip-forbidden-properties|essage-strip-list-identifiers|essage-strip-subject-encoded-words|essage-strip-subject-re|essage-strip-subject-trailing-was|essage-subscribed-p|essage-supersede|essage-tab|essage-talkative-question|essage-tamago-not-in-use-p|essage-text-with-property|essage-to-list-only|essage-tokenize-header|essage-tool-bar-update|essage-unbold-region|essage-unique-id|essage-unquote-tokens|essage-use-alternative-email-as-from|essage-user-mail-address|essage-wash-subject|essage-wide-reply|essage-widen-reply|essage-with-reply-buffer|essage-y-or-n-p)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)m(?:essage-yank-buffer|essage-yank-original|essages-buffer-mode|eta-add-symbols|eta-beginning-of-defun|eta-car-string-lessp|eta-comment-defun|eta-comment-indent|eta-comment-region|eta-common-mode|eta-complete-symbol|eta-completions-at-point|eta-end-of-defun|eta-indent-buffer|eta-indent-calculate|eta-indent-current-indentation|eta-indent-current-nesting|eta-indent-defun|eta-indent-in-string-p|eta-indent-level-count|eta-indent-line|eta-indent-looking-at-code|eta-indent-previous-line|eta-indent-region|eta-indent-unfinished-line|eta-listify|eta-mark-active|eta-mark-defun|eta-mode-menu|eta-symbol-list|eta-uncomment-defun|eta-uncomment-region|etafont-mode|etamail-buffer|etamail-interpret-body|etamail-interpret-header|etamail-region|etapost-mode|h-adaptive-cmd-note-flag-check|h-add-missing-mime-version-header|h-add-msgs-to-seq|h-alias-address-to-alias|h-alias-expand|h-alias-for-from-p|h-alias-grab-from-field|h-alias-letter-expand-alias|h-alias-minibuffer-confirm-address|h-alias-reload-maybe|h-assoc-string|h-beginning-of-word|h-bogofilter-blacklist|h-bogofilter-whitelist|h-buffer-data|h-burst-digest|h-cancel-timer|h-catchup|h-cl-flet|h-clean-msg-header|h-clear-sub-folders-cache|h-coalesce-msg-list|h-colors-available-p|h-colors-in-use-p|h-complete-word|h-compose-forward|h-compose-insertion|h-copy-msg|h-create-sequence-map|h-customize|h-decode-message-header|h-decode-message-subject|h-define-obsolete-variable-alias|h-define-sequence|h-defstruct|h-delete-a-msg|h-delete-line|h-delete-msg-from-seq|h-delete-msg-no-motion|h-delete-msg|h-delete-seq|h-delete-subject-or-thread|h-delete-subject|h-destroy-postponed-handles|h-display-color-cells|h-display-completion-list|h-display-emphasis|h-display-msg|h-display-smileys|h-display-with-external-viewer|h-do-at-event-location|h-do-in-gnu-emacs|h-do-in-xemacs|h-edit-again|h-ephem-message|h-exchange-point-and-mark-preserving-active-mark|h-exec-cmd-daemon|h-exec-cmd-env-daemon|h-exec-cmd-error|h-exec-cmd-output|h-exec-cmd-quiet|h-exec-cmd|h-exec-lib-cmd-output|h-execute-commands|h-expand-file-name|h-extract-from-header-value|h-extract-rejected-mail|h-face-background|h-face-data|h-face-foreground|h-file-command-p|h-file-mime-type|h-find-path|h-find-seq|h-first-msg|h-folder-completion-function|h-folder-from-address|h-folder-inline-mime-part|h-folder-list|h-folder-mode|h-folder-name-p|h-folder-save-mime-part|h-folder-speedbar-buttons|h-folder-toggle-mime-part|h-font-lock-add-keywords|h-forward|h-fully-kill-draft|h-funcall-if-exists|h-get-header-field|h-get-msg-num|h-gnus-article-highlight-citation|h-goto-cur-msg|h-goto-header-end|h-goto-header-field|h-goto-msg|h-goto-next-button|h-handle-process-error|h-have-file-command|h-header-display|h-header-field-beginning|h-header-field-end|h-help|h-identity-add-menu|h-identity-handler-attribution-verb|h-identity-handler-bottom|h-identity-handler-gpg-identity|h-identity-handler-signature|h-identity-handler-top|h-identity-insert-attribution-verb|h-identity-make-menu-no-autoload|h-identity-make-menu|h-image-load-path-for-library|h-image-search-load-path|h-in-header-p|h-in-show-buffer|h-inc-folder|h-inc-spool-make-no-autoload|h-inc-spool-make|h-index-add-to-sequence|h-index-create-imenu-index|h-index-create-sequences|h-index-delete-folder-headers|h-index-delete-from-sequence|h-index-execute-commands|h-index-group-by-folder|h-index-insert-folder-headers|h-index-new-messages|h-index-next-folder|h-index-previous-folder|h-index-read-data|h-index-sequenced-messages|h-index-ticked-messages|h-index-update-maps|h-index-visit-folder|h-insert-auto-fields|h-insert-identity|h-insert-signature|h-interactive-range|h-invalidate-show-buffer|h-invisible-headers|h-iterate-on-messages-in-region|h-iterate-on-range|h-junk-blacklist-disposition|h-junk-blacklist|h-junk-choose|h-junk-process-blacklist|h-junk-process-whitelist|h-junk-whitelist|h-kill-folder|h-last-msg|h-lessp|h-letter-hide-all-skipped-fields|h-letter-mode|h-letter-next-header-field|h-letter-skip-leading-whitespace-in-header-field|h-letter-skipped-header-field-p|h-letter-speedbar-buttons|h-letter-toggle-header-field-display-button|h-letter-toggle-header-field-display|h-line-beginning-position|h-line-end-position|h-list-folders|h-list-sequences|h-list-to-string-1|h-list-to-string|h-logo-display|h-macro-expansion-time-gnus-version|h-mail-abbrev-make-syntax-table|h-mail-header-end|h-make-folder-mode-line|h-make-local-hook|h-make-local-vars|h-make-obsolete-variable|h-mapc|h-mark-active-p|h-match-string-no-properties|h-maybe-show|h-mh-compose-anon-ftp|h-mh-compose-external-compressed-tar|h-mh-compose-external-type|h-mh-directive-present-p|h-mh-to-mime-undo|h-mh-to-mime|h-mime-cleanup|h-mime-display|h-mime-save-parts|h-mml-forward-message|h-mml-secure-message-encrypt|h-mml-secure-message-sign|h-mml-secure-message-signencrypt|h-mml-tag-present-p|h-mml-to-mime|h-mml-unsecure-message|h-modify|h-msg-filename|h-msg-is-in-seq|h-msg-num-width-to-column|h-msg-num-width|h-narrow-to-cc|h-narrow-to-from|h-narrow-to-range|h-narrow-to-seq|h-narrow-to-subject|h-narrow-to-tick|h-narrow-to-to|h-new-draft-name|h-next-button|h-next-msg|h-next-undeleted-msg|h-next-unread-msg|h-nmail|h-notate-cur|h-notate-deleted-and-refiled|h-notate-user-sequences|h-notate|h-outstanding-commands-p|h-pack-folder|h-page-digest-backwards|h-page-digest|h-page-msg|h-parse-flist-output-line|h-pipe-msg|h-position-on-field|h-prefix-help|h-prev-button|h-previous-page|h-previous-undeleted-msg|h-previous-unread-msg|h-print-msg|h-process-daemon|h-process-or-undo-commands|h-profile-component-value|h-profile-component|h-prompt-for-folder|h-prompt-for-refile-folder|h-ps-print-msg-file|h-ps-print-msg|h-ps-print-toggle-color|h-ps-print-toggle-faces|h-put-msg-in-seq|h-quit|h-quote-for-shell|h-quote-pick-expr|h-range-to-msg-list|h-read-address|h-read-folder-sequences|h-read-range|h-read-seq-default|h-recenter|h-redistribute|h-refile-a-msg|h-refile-msg|h-refile-or-write-again|h-regenerate-headers|h-remove-all-notation|h-remove-cur-notation|h-remove-from-sub-folders-cache|h-replace-regexp-in-string|h-replace-string|h-reply|h-require-cl|h-require|h-rescan-folder|h-reset-threads-and-narrowing|h-rmail|h-run-time-gnus-version|h-scan-folder|h-scan-format-file-check|h-scan-format|h-scan-msg-number-regexp|h-scan-msg-search-regexp|h-search-from-end|h-search-p|h-search|h-send-letter|h-send|h-seq-msgs|h-seq-to-msgs|h-set-cmd-note|h-set-folder-modified-p|h-set-help|h-set-x-image-cache-directory|h-show-addr|h-show-buffer-message-number|h-show-font-lock-keywords-with-cite|h-show-font-lock-keywords|h-show-mode|h-show-preferred-alternative|h-show-speedbar-buttons|h-show-xface|h-show|h-showing-mode|h-signature-separator-p|h-smail-batch|h-smail-other-window|h-smail|h-sort-folder|h-spamassassin-blacklist|h-spamassassin-identify-spammers|h-spamassassin-whitelist|h-spamprobe-blacklist|h-spamprobe-whitelist|h-speed-add-folder|h-speed-flists-active-p|h-speed-flists|h-speed-invalidate-map|h-start-of-uncleaned-message|h-store-msg|h-strip-package-version|h-sub-folders|h-test-completion|h-thread-add-spaces|h-thread-ancestor|h-thread-delete|h-thread-find-msg-subject|h-thread-forget-message|h-thread-generate|h-thread-inc|h-thread-next-sibling|h-thread-parse-scan-line|h-thread-previous-sibling|h-thread-print-scan-lines|h-thread-refile|h-thread-update-scan-line-map|h-toggle-mh-decode-mime-flag|h-toggle-mime-buttons|h-toggle-showing|h-toggle-threads|h-toggle-tick|h-translate-range|h-truncate-log-buffer|h-undefine-sequence|h-undo-folder|h-undo|h-update-sequences|h-url-hexify-string|h-user-agent-compose|h-valid-seq-p|h-valid-view-change-operation-p|h-variant-gnu-mh-info|h-variant-info|h-variant-mh-info|h-variant-nmh-info|h-variant-p|h-variant-set-variant|h-variant-set|h-variants|h-version|h-view-mode-enter|h-visit-folder|h-widen|h-window-full-height-p|h-write-file-functions|h-write-msg-to-file|h-xargs|h-yank-cur-msg|idnight-buffer-display-time|idnight-delay-set|idnight-find|idnight-next|ime-to-mml|inibuf-eldef-setup-minibuffer|inibuf-eldef-update-minibuffer|inibuffer--bitset|inibuffer--double-dollars|inibuffer-avoid-prompt|inibuffer-completion-contents|inibuffer-default--in-prompt-regexps|inibuffer-default-add-completions|inibuffer-default-add-shell-commands|inibuffer-depth-indicate-mode|inibuffer-depth-setup|inibuffer-electric-default-mode|inibuffer-force-complete-and-exit|inibuffer-force-complete|inibuffer-frame-list|inibuffer-hide-completions|inibuffer-history-initialize|inibuffer-history-isearch-end|inibuffer-history-isearch-message|inibuffer-history-isearch-pop-state|inibuffer-history-isearch-push-state|inibuffer-history-isearch-search|inibuffer-history-isearch-setup|inibuffer-history-isearch-wrap|inibuffer-insert-file-name-at-point|inibuffer-keyboard-quit|inibuffer-with-setup-hook|inor-mode-menu-from-indicator|inusp|ismatch|ixal-debug|ixal-describe-operation-code|ixal-mode|ixal-run|m-add-meta-html-tag|m-alist-to-plist|m-annotationp|m-append-to-file|m-archive-decoders|m-archive-dissect-and-inline|m-assoc-string-match|m-attachment-override-p|m-auto-mode-alist|m-automatic-display-p|m-automatic-external-display-p|m-body-7-or-8|m-body-encoding|m-char-int|m-char-or-char-int-p|m-charset-after|m-charset-to-coding-system|m-codepage-setup|m-coding-system-equal|m-coding-system-list|m-coding-system-p|m-coding-system-to-mime-charset|m-complicated-handles|m-content-transfer-encoding|m-convert-shr-links|m-copy-to-buffer|m-create-image-xemacs|m-decode-body|m-decode-coding-region|m-decode-coding-string|m-decode-content-transfer-encoding|m-decode-string|m-decompress-buffer|m-default-file-encoding|m-default-multibyte-p|m-delete-duplicates|m-destroy-parts??|m-destroy-postponed-undisplay-list|m-detect-coding-region|m-detect-mime-charset-region|m-disable-multibyte|m-display-external|m-display-inline|m-display-parts??|m-dissect-archive|m-dissect-buffer|m-dissect-multipart|m-dissect-singlepart|m-enable-multibyte|m-encode-body|m-encode-buffer|m-encode-coding-region|m-encode-coding-string|m-encode-content-transfer-encoding|m-enrich-utf-8-by-mule-ucs|m-extern-cache-contents|m-file-name-collapse-whitespace|m-file-name-delete-control|m-file-name-delete-gotchas|m-file-name-delete-whitespace|m-file-name-replace-whitespace|m-file-name-trim-whitespace|m-find-buffer-file-coding-system|m-find-charset-region|m-find-mime-charset-region|m-find-part-by-type|m-find-raw-part-by-type|m-get-coding-system-list|m-get-content-id|m-get-image|m-get-part|m-guess-charset|m-handle-buffer|m-handle-cache|m-handle-description|m-handle-displayed-p|m-handle-disposition|m-handle-encoding|m-handle-filename|m-handle-id|m-handle-media-subtype|m-handle-media-supertype|m-handle-media-type|m-handle-multipart-ctl-parameter|m-handle-multipart-from|m-handle-multipart-original-buffer|m-handle-set-cache|m-handle-set-external-undisplayer|m-handle-set-undisplayer|m-handle-type|m-handle-undisplayer|m-image-fit-p|m-image-load-path|m-image-type-from-buffer|m-inlinable-p|m-inline-external-body|m-inline-override-p|m-inline-partial|m-inlined-p|m-insert-byte|m-insert-file-contents|m-insert-headers|m-insert-inline|m-insert-multipart-headers|m-insert-part|m-insert-rfc822-headers|m-interactively-view-part|m-iso-8859-x-to-15-region|m-keep-viewer-alive-p|m-line-number-at-pos|m-long-lines-p|m-mailcap-command|m-make-handle|m-make-temp-file|m-merge-handles|m-mime-charset|m-mule-charset-to-mime-charset|m-multibyte-char-to-unibyte|m-multibyte-p|m-multibyte-string-p|m-multiple-handles|m-pipe-part|m-possibly-verify-or-decrypt|m-preferred-alternative-precedence|m-preferred-alternative|m-preferred-coding-system|m-qp-or-base64|m-read-charset|m-read-coding-system|m-readable-p|m-remove-parts??|m-replace-in-string|m-safer-encoding|m-save-part-to-file|m-save-part|m-set-buffer-file-coding-system|m-set-buffer-multibyte|m-set-handle-multipart-parameter|m-setup-codepage-ibm|m-setup-codepage-iso-8859|m-shr|m-sort-coding-systems-predicate)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:mm-special-display-p|mm-string-as-multibyte|mm-string-as-unibyte|mm-string-make-unibyte|mm-string-to-multibyte|mm-subst-char-in-string|mm-substring-no-properties|mm-temp-files-delete|mm-ucs-to-char|mm-url-decode-entities-nbsp|mm-url-decode-entities-string|mm-url-decode-entities|mm-url-encode-multipart-form-data|mm-url-encode-www-form-urlencoded|mm-url-form-encode-xwfu|mm-url-insert-file-contents-external|mm-url-insert-file-contents|mm-url-insert|mm-url-load-url|mm-url-remove-markup|mm-uu-dissect-text-parts|mm-uu-dissect|mm-valid-and-fit-image-p|mm-valid-image-format-p|mm-view-pkcs7|mm-with-multibyte-buffer|mm-with-part|mm-with-unibyte-buffer|mm-with-unibyte-current-buffer|mm-write-region|mm-xemacs-find-mime-charset-1|mm-xemacs-find-mime-charset|mml-attach-buffer|mml-attach-external|mml-attach-file|mml-buffer-substring-no-properties-except-hard-newlines|mml-compute-boundary-1|mml-compute-boundary|mml-content-disposition|mml-destroy-buffers|mml-dnd-attach-file|mml-expand-html-into-multipart-related|mml-generate-mime-1|mml-generate-mime|mml-generate-new-buffer|mml-insert-buffer|mml-insert-empty-tag|mml-insert-mime-headers|mml-insert-mime|mml-insert-mml-markup|mml-insert-multipart|mml-insert-parameter-string|mml-insert-parameter|mml-insert-part|mml-insert-tag|mml-make-boundary|mml-menu|mml-minibuffer-read-description|mml-minibuffer-read-disposition|mml-minibuffer-read-file|mml-minibuffer-read-type|mml-mode|mml-parameter-string|mml-parse-1|mml-parse-file-name|mml-parse-singlepart-with-multiple-charsets|mml-parse|mml-pgp-encrypt-buffer|mml-pgp-sign-buffer|mml-pgpauto-encrypt-buffer|mml-pgpauto-sign-buffer|mml-pgpmime-encrypt-buffer|mml-pgpmime-sign-buffer|mml-preview-insert-mail-followup-to|mml-preview|mml-quote-region|mml-read-part|mml-read-tag|mml-secure-encrypt-pgp|mml-secure-encrypt-pgpmime|mml-secure-encrypt-smime|mml-secure-encrypt|mml-secure-message-encrypt-pgp|mml-secure-message-encrypt-pgpauto|mml-secure-message-encrypt-pgpmime|mml-secure-message-encrypt-smime|mml-secure-message-encrypt|mml-secure-message-sign-encrypt|mml-secure-message-sign-pgp|mml-secure-message-sign-pgpauto|mml-secure-message-sign-pgpmime|mml-secure-message-sign-smime|mml-secure-message-sign|mml-secure-message|mml-secure-part|mml-secure-sign-pgp|mml-secure-sign-pgpauto|mml-secure-sign-pgpmime|mml-secure-sign-smime|mml-secure-sign|mml-signencrypt-style|mml-smime-encrypt-buffer|mml-smime-encrypt-query|mml-smime-encrypt|mml-smime-sign-buffer|mml-smime-sign-query|mml-smime-sign|mml-smime-verify-test|mml-smime-verify|mml-to-mime|mml-tweak-externalize-attachments|mml-tweak-part|mml-unsecure-message|mml-validate|mml1991-encrypt|mml1991-sign|mml2015-decrypt-test|mml2015-decrypt|mml2015-encrypt|mml2015-self-encrypt|mml2015-sign|mml2015-verify-test|mml2015-verify|mod\\\\*|mode-line-bury-buffer|mode-line-change-eol|mode-line-eol-desc|mode-line-frame-control|mode-line-minor-mode-help|mode-line-modified-help-echo|mode-line-mule-info-help-echo|mode-line-next-buffer|mode-line-other-buffer|mode-line-previous-buffer|mode-line-read-only-help-echo|mode-line-toggle-modified|mode-line-toggle-read-only|mode-line-unbury-buffer|mode-line-widen|mode-local--expand-overrides|mode-local--overload-body|mode-local--override|mode-local-augment-function-help|mode-local-bind|mode-local-describe-bindings-1|mode-local-describe-bindings-2|mode-local-equivalent-mode-p|mode-local-initialized-p|mode-local-map-file-buffers|mode-local-map-mode-buffers|mode-local-on-major-mode-change|mode-local-post-major-mode-change|mode-local-print-bindings??|mode-local-read-function|mode-local-setup-edebug-specs|mode-local-symbol-value|mode-local-symbol|mode-local-use-bindings-p|mode-local-value|mode-specific-command-prefix|modify-coding-system-alist|modify-face|modula-2-mode|morse-region|mouse--down-1-maybe-follows-link|mouse--drag-set-mark-and-point|mouse--strip-first-event|mouse-appearance-menu|mouse-autoselect-window-cancel|mouse-autoselect-window-select|mouse-autoselect-window-start|mouse-avoidance-banish-destination|mouse-avoidance-banish-mouse|mouse-avoidance-banish|mouse-avoidance-delta|mouse-avoidance-exile|mouse-avoidance-fancy|mouse-avoidance-ignore-p|mouse-avoidance-mode|mouse-avoidance-nudge-mouse|mouse-avoidance-point-position|mouse-avoidance-random-shape|mouse-avoidance-set-mouse-position|mouse-avoidance-set-pointer-shape|mouse-avoidance-too-close-p|mouse-buffer-menu-alist|mouse-buffer-menu-keymap|mouse-buffer-menu-map|mouse-buffer-menu-split|mouse-buffer-menu|mouse-choose-completion|mouse-copy-work-around-drag-bug|mouse-delete-other-windows|mouse-delete-window|mouse-drag-drag|mouse-drag-events-are-point-events-p|mouse-drag-header-line|mouse-drag-line|mouse-drag-mode-line|mouse-drag-region|mouse-drag-repeatedly-safe-scroll|mouse-drag-safe-scroll|mouse-drag-scroll-delta|mouse-drag-secondary-moving|mouse-drag-secondary-pasting|mouse-drag-secondary|mouse-drag-should-do-col-scrolling|mouse-drag-throw|mouse-drag-track|mouse-drag-vertical-line|mouse-event-p|mouse-fixup-help-message|mouse-kill-preserving-secondary|mouse-kill-ring-save|mouse-kill-secondary|mouse-kill|mouse-major-mode-menu|mouse-menu-bar-map|mouse-menu-major-mode-map|mouse-menu-non-singleton|mouse-minibuffer-check|mouse-minor-mode-menu|mouse-popup-menubar-stuff|mouse-popup-menubar|mouse-posn-property|mouse-region-match|mouse-save-then-kill-delete-region|mouse-save-then-kill|mouse-scroll-subr|mouse-secondary-save-then-kill|mouse-select-buffer|mouse-select-font|mouse-select-window|mouse-set-font|mouse-set-mark-fast|mouse-set-mark|mouse-set-point|mouse-set-region-1|mouse-set-region|mouse-set-secondary|mouse-skip-word|mouse-split-window-horizontally|mouse-split-window-vertically|mouse-start-end|mouse-start-secondary|mouse-tear-off-window|mouse-undouble-last-event|mouse-wheel-change-button|mouse-wheel-mode|mouse-yank-at-click|mouse-yank-primary|mouse-yank-secondary|move-beginning-of-line|move-end-of-line|move-file-to-trash|move-past-close-and-reindent|move-to-column-untabify|move-to-tab-stop|move-to-window-line-top-bottom|mpc--debug|mpc--faster-stop|mpc--faster-toggle-refresh|mpc--faster-toggle|mpc--faster|mpc--proc-alist-to-alists|mpc--proc-connect|mpc--proc-filter|mpc--proc-quote-string|mpc--songduration|mpc--status-callback|mpc--status-idle-timer-run|mpc--status-idle-timer-start|mpc--status-idle-timer-stop|mpc--status-timer-run|mpc--status-timer-start|mpc--status-timer-stop|mpc--status-timers-refresh|mpc-assq-all|mpc-cmd-add|mpc-cmd-clear|mpc-cmd-delete|mpc-cmd-find|mpc-cmd-flush|mpc-cmd-list|mpc-cmd-move|mpc-cmd-pause|mpc-cmd-play|mpc-cmd-special-tag-p|mpc-cmd-status|mpc-cmd-stop|mpc-cmd-tagtypes|mpc-cmd-update|mpc-compare-strings|mpc-constraints-get-current|mpc-constraints-pop|mpc-constraints-push|mpc-constraints-restore|mpc-constraints-tag-lookup|mpc-current-refresh|mpc-data-directory|mpc-drag-n-drop|mpc-event-set-point|mpc-ffwd|mpc-file-local-copy|mpc-format|mpc-intersection|mpc-mode-menu|mpc-mode|mpc-next|mpc-pause|mpc-play-at-point|mpc-play|mpc-playlist-add|mpc-playlist-create|mpc-playlist-delete|mpc-playlist-destroy|mpc-playlist-rename|mpc-playlist|mpc-prev|mpc-proc-buf-to-alists??|mpc-proc-buffer|mpc-proc-check|mpc-proc-cmd-list-ok|mpc-proc-cmd-list|mpc-proc-cmd-to-alist|mpc-proc-cmd|mpc-proc-sync|mpc-proc-tag-string-to-sym|mpc-proc|mpc-quit|mpc-reorder|mpc-resume|mpc-rewind|mpc-ring-make|mpc-ring-pop|mpc-ring-push|mpc-secs-to-time|mpc-select-extend|mpc-select-get-selection|mpc-select-make-overlay|mpc-select-restore|mpc-select-save|mpc-select-toggle|mpc-select|mpc-selection-refresh|mpc-separator|mpc-songpointer-context|mpc-songpointer-refresh-hairy|mpc-songpointer-refresh|mpc-songpointer-score|mpc-songpointer-set|mpc-songs-buf|mpc-songs-hashcons|mpc-songs-jump-to|mpc-songs-kill-search|mpc-songs-mode|mpc-songs-refresh|mpc-songs-search|mpc-songs-selection|mpc-sort|mpc-status-buffer-refresh|mpc-status-buffer-show|mpc-status-mode|mpc-status-refresh|mpc-status-stop|mpc-stop|mpc-string-prefix-p|mpc-tagbrowser-all-p|mpc-tagbrowser-all-select|mpc-tagbrowser-buf|mpc-tagbrowser-dir-mode|mpc-tagbrowser-dir-toggle|mpc-tagbrowser-mode|mpc-tagbrowser-refresh|mpc-tagbrowser-tag-name|mpc-tagbrowser|mpc-tempfiles-add|mpc-tempfiles-clean|mpc-union|mpc-update|mpc-updated-db|mpc-volume-mouse-set|mpc-volume-refresh|mpc-volume-widget|mpc|mpuz-ask-for-try|mpuz-build-random-perm|mpuz-check-all-solved|mpuz-close-game|mpuz-create-buffer|mpuz-digit-solved-p|mpuz-ding|mpuz-get-buffer|mpuz-mode|mpuz-offer-abort|mpuz-paint-board|mpuz-paint-digit|mpuz-paint-errors|mpuz-paint-number|mpuz-paint-statistics|mpuz-put-number-on-board|mpuz-random-puzzle|mpuz-show-solution|mpuz-solve|mpuz-start-new-game|mpuz-switch-to-window|mpuz-to-digit|mpuz-to-letter|mpuz-try-letter|mpuz-try-proposal|mpuz|msb--add-separators|msb--add-to-menu|msb--aggregate-alist|msb--choose-file-menu|msb--choose-menu|msb--collect|msb--create-buffer-menu-2|msb--create-buffer-menu|msb--create-function-info|msb--create-sort-item|msb--dired-directory|msb--format-title|msb--init-file-alist|msb--make-keymap-menu|msb--mode-menu-cond|msb--most-recently-used-menu|msb--split-menus-2|msb--split-menus|msb--strip-dir|msb--toggle-menu-type|msb-alon-item-handler|msb-custom-set|msb-dired-item-handler|msb-invisible-buffer-p|msb-item-handler|msb-menu-bar-update-buffers|msb-mode|msb-sort-by-directory|msb-sort-by-name|msb-unload-function|msb|mspools-get-folder-from-spool|mspools-get-spool-files|mspools-get-spool-name|mspools-help|mspools-mode|mspools-quit|mspools-revert-buffer|mspools-set-vm-spool-files|mspools-show-again|mspools-show|mspools-size-folder|mspools-visit-spool|mule-diag|multi-isearch-buffers-regexp|multi-isearch-buffers|multi-isearch-end|multi-isearch-files-regexp|multi-isearch-files|multi-isearch-next-buffer-from-list|multi-isearch-next-file-buffer-from-list|multi-isearch-pop-state|multi-isearch-push-state|multi-isearch-read-buffers|multi-isearch-read-files|multi-isearch-read-matching-buffers|multi-isearch-read-matching-files|multi-isearch-search-fun|multi-isearch-setup|multi-isearch-wrap|multi-occur-in-matching-buffers|multi-occur|multiple-value-apply|multiple-value-bind|multiple-value-call|multiple-value-list|multiple-value-setq|mwheel-event-button|mwheel-event-window|mwheel-filter-click-events|mwheel-inhibit-click-timeout|mwheel-install|mwheel-scroll|name-last-kbd-macro|narrow-to-defun|nato-region|nested-alist-p|net-utils--revert-function|net-utils-machine-at-point|net-utils-mode|net-utils-remove-ctrl-m-filter|net-utils-run-program|net-utils-run-simple|net-utils-url-at-point|netrc-credentials|netrc-find-service-name|netrc-get|netrc-machine-user-or-password|netrc-machine|netrc-parse-services|netrc-parse|netrc-port-equal|netstat|network-connection-mode-setup|network-connection-mode|network-connection-reconnect|network-connection-to-service|network-connection|network-service-connection|network-stream-certificate|network-stream-command|network-stream-get-response|network-stream-open-plain|network-stream-open-shell|network-stream-open-starttls|network-stream-open-tls|new-fontset|new-frame|new-mode-local-bindings|newline-cache-check|newsticker--age|newsticker--buffer-beginning-of-feed|newsticker--buffer-beginning-of-item|newsticker--buffer-do-insert-text|newsticker--buffer-end-of-feed|newsticker--buffer-end-of-item|newsticker--buffer-get-feed-title-at-point|newsticker--buffer-get-item-title-at-point|newsticker--buffer-goto|newsticker--buffer-hideshow|newsticker--buffer-insert-all-items|newsticker--buffer-insert-item|newsticker--buffer-make-item-completely-visible|newsticker--buffer-redraw|newsticker--buffer-set-faces|newsticker--buffer-set-invisibility|newsticker--buffer-set-uptodate|newsticker--buffer-statistics|newsticker--cache-add|newsticker--cache-contains|newsticker--cache-dir|newsticker--cache-get-feed|newsticker--cache-item-compare-by-position|newsticker--cache-item-compare-by-time|newsticker--cache-item-compare-by-title|newsticker--cache-mark-expired|newsticker--cache-read-feed|newsticker--cache-read-version1|newsticker--cache-read|newsticker--cache-remove|newsticker--cache-replace-age|newsticker--cache-save-feed|newsticker--cache-save-version1|newsticker--cache-save|newsticker--cache-set-preformatted-contents|newsticker--cache-set-preformatted-title|newsticker--cache-sort)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)n(?:ewsticker--cache-update|ewsticker--count-grouped-feeds|ewsticker--count-groups|ewsticker--debug-msg|ewsticker--decode-iso8601-date|ewsticker--decode-rfc822-date|ewsticker--desc|ewsticker--display-jump|ewsticker--display-scroll|ewsticker--display-tick|ewsticker--do-forget-preformatted|ewsticker--do-mark-item-at-point-as-read|ewsticker--do-print-extra-element|ewsticker--do-run-auto-mark-filter|ewsticker--do-xml-workarounds|ewsticker--echo-area-clean-p|ewsticker--enclosure|ewsticker--extra|ewsticker--forget-preformatted|ewsticker--get-group-names|ewsticker--get-icon-url-atom-1\\\\.0|ewsticker--get-logo-url-atom-0\\\\.3|ewsticker--get-logo-url-atom-1\\\\.0|ewsticker--get-logo-url-rss-0\\\\.91|ewsticker--get-logo-url-rss-0\\\\.92|ewsticker--get-logo-url-rss-1\\\\.0|ewsticker--get-logo-url-rss-2\\\\.0|ewsticker--get-news-by-funcall|ewsticker--get-news-by-url-callback|ewsticker--get-news-by-url|ewsticker--get-news-by-wget|ewsticker--group-all-groups|ewsticker--group-do-find-group|ewsticker--group-do-get-group|ewsticker--group-do-rename-group|ewsticker--group-find-parent-group|ewsticker--group-get-feeds|ewsticker--group-get-group|ewsticker--group-get-subgroups|ewsticker--group-manage-orphan-feeds|ewsticker--group-names|ewsticker--group-remove-obsolete-feeds|ewsticker--group-shift|ewsticker--guid-to-string|ewsticker--guid|ewsticker--icon-read|ewsticker--icons-dir|ewsticker--image-download-by-url-callback|ewsticker--image-download-by-url|ewsticker--image-download-by-wget|ewsticker--image-get|ewsticker--image-read|ewsticker--image-remove|ewsticker--image-save|ewsticker--image-sentinel|ewsticker--images-dir|ewsticker--imenu-create-index|ewsticker--imenu-goto|ewsticker--insert-enclosure|ewsticker--insert-image|ewsticker--link|ewsticker--lists-intersect-p|ewsticker--opml-import-outlines|ewsticker--parse-atom-0\\\\.3|ewsticker--parse-atom-1\\\\.0|ewsticker--parse-generic-feed|ewsticker--parse-generic-items|ewsticker--parse-rss-0\\\\.91|ewsticker--parse-rss-0\\\\.92|ewsticker--parse-rss-1\\\\.0|ewsticker--parse-rss-2\\\\.0|ewsticker--pos|ewsticker--preformatted-contents|ewsticker--preformatted-title|ewsticker--print-extra-elements|ewsticker--process-auto-mark-filter-match|ewsticker--real-feed-name|ewsticker--remove-whitespace|ewsticker--run-auto-mark-filter|ewsticker--sentinel-work|ewsticker--sentinel|ewsticker--set-customvar-buffer|ewsticker--set-customvar-formatting|ewsticker--set-customvar-retrieval|ewsticker--set-customvar-sorting|ewsticker--set-customvar-ticker|ewsticker--set-face-properties|ewsticker--splicer|ewsticker--start-feed|ewsticker--stat-num-items-for-group|ewsticker--stat-num-items-total|ewsticker--stat-num-items|ewsticker--stop-feed|ewsticker--ticker-text-remove|ewsticker--ticker-text-setup|ewsticker--time|ewsticker--title|ewsticker--tree-widget-icon-create|ewsticker--treeview-activate-node|ewsticker--treeview-buffer-init|ewsticker--treeview-count-node-items|ewsticker--treeview-do-get-node-by-id|ewsticker--treeview-do-get-node-of-feed|ewsticker--treeview-first-feed|ewsticker--treeview-frame-init|ewsticker--treeview-get-current-node|ewsticker--treeview-get-feed-vfeed|ewsticker--treeview-get-first-child|ewsticker--treeview-get-id|ewsticker--treeview-get-last-child|ewsticker--treeview-get-next-sibling|ewsticker--treeview-get-next-uncle|ewsticker--treeview-get-node-by-id|ewsticker--treeview-get-node-of-feed|ewsticker--treeview-get-other-tree|ewsticker--treeview-get-prev-sibling|ewsticker--treeview-get-prev-uncle|ewsticker--treeview-get-second-child|ewsticker--treeview-get-selected-item|ewsticker--treeview-ids-eq|ewsticker--treeview-item-buffer|ewsticker--treeview-item-show-text|ewsticker--treeview-item-show|ewsticker--treeview-item-update|ewsticker--treeview-item-window|ewsticker--treeview-list-add-item|ewsticker--treeview-list-all-items|ewsticker--treeview-list-buffer|ewsticker--treeview-list-clear-highlight|ewsticker--treeview-list-clear|ewsticker--treeview-list-compare-item-by-age-reverse|ewsticker--treeview-list-compare-item-by-age|ewsticker--treeview-list-compare-item-by-time-reverse|ewsticker--treeview-list-compare-item-by-time|ewsticker--treeview-list-compare-item-by-title-reverse|ewsticker--treeview-list-compare-item-by-title|ewsticker--treeview-list-feed-items|ewsticker--treeview-list-highlight-start|ewsticker--treeview-list-immortal-items|ewsticker--treeview-list-items-v|ewsticker--treeview-list-items-with-age-callback|ewsticker--treeview-list-items-with-age|ewsticker--treeview-list-items|ewsticker--treeview-list-new-items|ewsticker--treeview-list-obsolete-items|ewsticker--treeview-list-select|ewsticker--treeview-list-sort-by-column|ewsticker--treeview-list-sort-items|ewsticker--treeview-list-update-faces|ewsticker--treeview-list-update-highlight|ewsticker--treeview-list-update|ewsticker--treeview-list-window|ewsticker--treeview-load|ewsticker--treeview-mark-item|ewsticker--treeview-nodes-eq|ewsticker--treeview-propertize-tag|ewsticker--treeview-render-text|ewsticker--treeview-restore-layout|ewsticker--treeview-set-current-node|ewsticker--treeview-tree-buffer|ewsticker--treeview-tree-do-update-tags|ewsticker--treeview-tree-expand-status|ewsticker--treeview-tree-expand|ewsticker--treeview-tree-get-tag|ewsticker--treeview-tree-open-menu|ewsticker--treeview-tree-update-highlight|ewsticker--treeview-tree-update-tags??|ewsticker--treeview-tree-update|ewsticker--treeview-tree-window|ewsticker--treeview-unfold-node|ewsticker--treeview-virtual-feed-p|ewsticker--treeview-window-init|ewsticker--unxml-attribute|ewsticker--unxml-node|ewsticker--unxml|ewsticker--update-process-ids|ewsticker-add-url|ewsticker-browse-url-item|ewsticker-browse-url|ewsticker-buffer-force-update|ewsticker-buffer-update|ewsticker-close-buffer|ewsticker-customize|ewsticker-download-enclosures|ewsticker-download-images|ewsticker-get-all-news|ewsticker-get-news-at-point|ewsticker-get-news|ewsticker-group-add-group|ewsticker-group-delete-group|ewsticker-group-move-feed|ewsticker-group-rename-group|ewsticker-group-shift-feed-down|ewsticker-group-shift-feed-up|ewsticker-group-shift-group-down|ewsticker-group-shift-group-up|ewsticker-handle-url|ewsticker-hide-all-desc|ewsticker-hide-entry|ewsticker-hide-extra|ewsticker-hide-feed-desc|ewsticker-hide-new-item-desc|ewsticker-hide-old-item-desc|ewsticker-hide-old-items|ewsticker-htmlr-render|ewsticker-item-not-immortal-p|ewsticker-item-not-old-p|ewsticker-mark-all-items-as-read|ewsticker-mark-all-items-at-point-as-read-and-redraw|ewsticker-mark-all-items-at-point-as-read|ewsticker-mark-all-items-of-feed-as-read|ewsticker-mark-item-at-point-as-immortal|ewsticker-mark-item-at-point-as-read|ewsticker-mode|ewsticker-mouse-browse-url|ewsticker-new-item-functions-sample|ewsticker-next-feed-available-p|ewsticker-next-feed|ewsticker-next-item-available-p|ewsticker-next-item-same-feed|ewsticker-next-item|ewsticker-next-new-item|ewsticker-opml-export|ewsticker-opml-import|ewsticker-plainview|ewsticker-previous-feed-available-p|ewsticker-previous-feed|ewsticker-previous-item-available-p|ewsticker-previous-item|ewsticker-previous-new-item|ewsticker-retrieve-random-message|ewsticker-running-p|ewsticker-save-item|ewsticker-set-auto-narrow-to-feed|ewsticker-set-auto-narrow-to-item|ewsticker-show-all-desc|ewsticker-show-entry|ewsticker-show-extra|ewsticker-show-feed-desc|ewsticker-show-new-item-desc|ewsticker-show-news|ewsticker-show-old-item-desc|ewsticker-show-old-items|ewsticker-start-ticker|ewsticker-start|ewsticker-stop-ticker|ewsticker-stop|ewsticker-ticker-running-p|ewsticker-toggle-auto-narrow-to-feed|ewsticker-toggle-auto-narrow-to-item|ewsticker-treeview-browse-url-item|ewsticker-treeview-browse-url|ewsticker-treeview-get-news|ewsticker-treeview-item-mode|ewsticker-treeview-jump|ewsticker-treeview-list-make-sort-button|ewsticker-treeview-list-mode|ewsticker-treeview-mark-item-old|ewsticker-treeview-mark-list-items-old|ewsticker-treeview-mode|ewsticker-treeview-mouse-browse-url|ewsticker-treeview-next-feed|ewsticker-treeview-next-item|ewsticker-treeview-next-new-or-immortal-item|ewsticker-treeview-next-page|ewsticker-treeview-prev-feed|ewsticker-treeview-prev-item|ewsticker-treeview-prev-new-or-immortal-item|ewsticker-treeview-quit|ewsticker-treeview-save-item|ewsticker-treeview-save|ewsticker-treeview-scroll-item|ewsticker-treeview-show-item|ewsticker-treeview-toggle-item-immortal|ewsticker-treeview-tree-click|ewsticker-treeview-tree-do-click|ewsticker-treeview-update|ewsticker-treeview|ewsticker-w3m-show-inline-images|ext-buffer|ext-cdabbrev|ext-completion|ext-error-buffer-p|ext-error-find-buffer|ext-error-follow-minor-mode|ext-error-follow-mode-post-command-hook|ext-error-internal|ext-error-no-select|ext-error|ext-file|ext-ifdef|ext-line-or-history-element|ext-line|ext-logical-line|ext-match|ext-method-p|ext-multiframe-window|ext-page|ext-read-file-uses-dialog-p|intersection|inth|ndiary-generate-nov-databases|ndoc-add-type|ndraft-request-associate-buffer|ndraft-request-expire-articles|nfolder-generate-active-file|nheader-accept-process-output|nheader-article-p|nheader-article-to-file-alist|nheader-be-verbose|nheader-cancel-function-timers|nheader-cancel-timer|nheader-concat|nheader-directory-articles|nheader-directory-files-safe|nheader-directory-files|nheader-directory-regular-files|nheader-fake-message-id-p|nheader-file-error|nheader-file-size|nheader-file-to-group|nheader-file-to-number|nheader-find-etc-directory|nheader-find-file-noselect|nheader-find-nov-line|nheader-fold-continuation-lines|nheader-generate-fake-message-id|nheader-get-lines-and-char|nheader-get-report-string|nheader-get-report|nheader-group-pathname|nheader-header-value|nheader-init-server-buffer|nheader-insert-article-line|nheader-insert-buffer-substring|nheader-insert-file-contents|nheader-insert-head|nheader-insert-header|nheader-insert-nov-file|nheader-insert-nov|nheader-insert-references|nheader-insert|nheader-message-maybe|nheader-message|nheader-ms-strip-cr|nheader-narrow-to-headers|nheader-nov-delete-outside-range|nheader-nov-field|nheader-nov-parse-extra|nheader-nov-read-integer|nheader-nov-read-message-id|nheader-nov-skip-field|nheader-parse-head|nheader-parse-naked-head|nheader-parse-nov|nheader-parse-overview-file|nheader-re-read-dir|nheader-remove-body|nheader-remove-cr-followed-by-lf|nheader-replace-chars-in-string|nheader-replace-duplicate-chars-in-string|nheader-replace-header|nheader-replace-regexp|nheader-replace-string|nheader-report|nheader-set-temp-buffer|nheader-skeleton-replace|nheader-strip-cr|nheader-translate-file-chars|nheader-update-marks-actions|nheader-write-overview-file|nmail-article-group|nmail-message-id|nmail-split-fancy|nml-generate-nov-databases|nvirtual-catchup-group|nvirtual-convert-headers|nvirtual-find-group-art|o-applicable-method|o-next-method|onincremental-re-search-backward|onincremental-re-search-forward|onincremental-repeat-search-backward|onincremental-repeat-search-forward|onincremental-search-backward|onincremental-search-forward|ormal-about-screen|ormal-erase-is-backspace-mode|ormal-erase-is-backspace-setup-frame|ormal-mouse-startup-screen|ormal-no-mouse-startup-screen|ormal-splash-screen|ormal-top-level-add-subdirs-to-load-path|ormal-top-level-add-to-load-path|ormal-top-level|otany|otevery|otifications-on-action-signal|otifications-on-closed-signal|reconc|roff-backward-text-line|roff-comment-indent|roff-count-text-lines|roff-electric-mode|roff-electric-newline|roff-forward-text-line|roff-insert-comment-function|roff-mode|roff-outline-level|roff-view|set-difference|set-exclusive-or|slookup-host|slookup-mode|slookup|sm-certificate-part|sm-check-certificate|sm-check-plain-connection|sm-check-protocol|sm-check-tls-connection|sm-fingerprint-ok-p|sm-fingerprint|sm-format-certificate|sm-host-settings|sm-id|sm-level|sm-new-fingerprint-ok-p|sm-parse-subject|sm-query-user|sm-query|sm-read-settings|sm-remove-permanent-setting|sm-remove-temporary-setting|sm-save-host|sm-verify-connection|sm-warnings-ok-p|sm-write-settings|sublis|subst-if-not|subst-if|subst|substitute-if-not)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:nsubstitute-if|nsubstitute|nth-value|ntlm-ascii2unicode|ntlm-build-auth-request|ntlm-build-auth-response|ntlm-get-password-hashes|ntlm-md4hash|ntlm-smb-des-e-p16|ntlm-smb-des-e-p24|ntlm-smb-dohash|ntlm-smb-hash|ntlm-smb-owf-encrypt|ntlm-smb-passwd-hash|ntlm-smb-str-to-key|ntlm-string-lshift|ntlm-string-permute|ntlm-string-xor|ntlm-unicode2ascii|nullify-allout-prefix-data|number-at-point|number-to-register|nunion|nxml-enable-unicode-char-name-sets|nxml-glyph-display-string|nxml-mode|obj-of-class-p|objc-font-lock-keywords-2|objc-font-lock-keywords-3|objc-font-lock-keywords|objc-mode|object-add-to-list|object-assoc-list-safe|object-assoc-list|object-assoc|object-class-fast|object-class-name|object-class|object-name-string|object-name|object-of-class-p|object-p|object-print|object-remove-from-list|object-set-name-string|object-slots|object-write|occur-1|occur-accumulate-lines|occur-after-change-function|occur-cease-edit|occur-context-lines|occur-edit-mode|occur-engine-add-prefix|occur-engine-line|occur-engine|occur-find-match|occur-mode-display-occurrence|occur-mode-find-occurrence|occur-mode-goto-occurrence-other-window|occur-mode-goto-occurrence|occur-mode-mouse-goto|occur-mode|occur-next-error|occur-next|occur-prev|occur-read-primary-args|occur-rename-buffer|occur-revert-function|occur|octave--indent-new-comment-line|octave-add-log-current-defun|octave-beginning-of-defun|octave-beginning-of-line|octave-complete-symbol|octave-completing-read|octave-completion-at-point|octave-eldoc-function-signatures|octave-eldoc-function|octave-end-of-line|octave-eval-print-last-sexp|octave-fill-paragraph|octave-find-definition-default-filename|octave-find-definition|octave-font-lock-texinfo-comment|octave-function-file-comment|octave-function-file-p|octave-goto-function-definition|octave-help-mode|octave-help|octave-hide-process-buffer|octave-in-comment-p|octave-in-string-or-comment-p|octave-in-string-p|octave-indent-comment|octave-indent-defun|octave-indent-new-comment-line|octave-insert-defun|octave-kill-process|octave-lookfor|octave-looking-at-kw|octave-mark-block|octave-maybe-insert-continuation-string|octave-mode-menu|octave-mode|octave-next-code-line|octave-previous-code-line|octave-send-block|octave-send-buffer|octave-send-defun|octave-send-line|octave-send-region|octave-show-process-buffer|octave-skip-comment-forward|octave-smie-backward-token|octave-smie-forward-token|octave-smie-rules|octave-source-directories|octave-source-file|octave-submit-bug-report|octave-sync-function-file-names|octave-syntax-propertize-function|octave-syntax-propertize-sqs|octave-update-function-file-comment|oddp|opascal-block-start|opascal-char-token-at|opascal-charset-token-at|opascal-column-of|opascal-comment-block-end|opascal-comment-block-start|opascal-comment-content-start|opascal-comment-indent-of|opascal-composite-type-start|opascal-corrected-indentation|opascal-current-token|opascal-debug-goto-next-token|opascal-debug-goto-point|opascal-debug-goto-previous-token|opascal-debug-log|opascal-debug-show-current-string|opascal-debug-show-current-token|opascal-debug-token-string|opascal-debug-tokenize-buffer|opascal-debug-tokenize-region|opascal-debug-tokenize-window|opascal-else-start|opascal-enclosing-indent-of|opascal-ensure-buffer|opascal-explicit-token-at|opascal-fill-comment|opascal-find-current-body|opascal-find-current-def|opascal-find-current-xdef|opascal-find-unit-file|opascal-find-unit-in-directory|opascal-find-unit|opascal-group-end|opascal-group-start|opascal-in-token|opascal-indent-line|opascal-indent-of|opascal-is-block-after-expr-statement|opascal-is-directory|opascal-is-file|opascal-is-literal-end|opascal-is-simple-class-type|opascal-is-use-clause-end|opascal-is|opascal-line-indent-of|opascal-literal-end-pattern|opascal-literal-kind|opascal-literal-start-pattern|opascal-literal-stop-pattern|opascal-literal-token-at|opascal-log-msg|opascal-looking-at-string|opascal-match-token|opascal-mode|opascal-new-comment-line|opascal-next-line-start|opascal-next-token|opascal-next-visible-token|opascal-on-first-comment-line|opascal-open-group-indent|opascal-point-token-at|opascal-previous-indent-of|opascal-previous-token|opascal-progress-done|opascal-progress-start|opascal-save-excursion|opascal-search-directory|opascal-section-indent-of|opascal-set-token-end|opascal-set-token-kind|opascal-set-token-start|opascal-space-token-at|opascal-step-progress|opascal-stmt-line-indent-of|opascal-string-of|opascal-tab|opascal-token-at|opascal-token-end|opascal-token-kind|opascal-token-of|opascal-token-start|opascal-token-string|opascal-word-token-at|open-font|open-gnutls-stream|open-line|open-protocol-stream|open-rectangle-line|open-rectangle|open-tls-stream|operate-on-rectangle|optimize-char-table|oref-default|oref|org-2ft|org-N-empty-lines-before-current|org-activate-angle-links|org-activate-bracket-links|org-activate-code|org-activate-dates|org-activate-footnote-links|org-activate-mark|org-activate-plain-links|org-activate-tags|org-activate-target-links|org-adaptive-fill-function|org-add-angle-brackets|org-add-archive-files|org-add-hook|org-add-link-props|org-add-link-type|org-add-log-note|org-add-log-setup|org-add-note|org-add-planning-info|org-add-prop-inherited|org-add-props|org-advertized-archive-subtree|org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item|org-agenda-columns|org-agenda-file-p|org-agenda-file-to-front|org-agenda-files|org-agenda-list-stuck-projects|org-agenda-list|org-agenda-prepare-buffers|org-agenda-set-restriction-lock|org-agenda-to-appt|org-agenda|org-align-all-tags|org-align-tags-here|org-all-targets|org-apply-on-list|org-apps-regexp-alist|org-archive-subtree-default-with-confirmation|org-archive-subtree-default|org-archive-subtree|org-archive-to-archive-sibling|org-ascii-export-as-ascii|org-ascii-export-to-ascii|org-ascii-publish-to-ascii|org-ascii-publish-to-latin1|org-ascii-publish-to-utf8|org-assign-fast-keys|org-at-TBLFM-p|org-at-block-p|org-at-clock-log-p|org-at-comment-p|org-at-date-range-p|org-at-drawer-p|org-at-heading-or-item-p|org-at-heading-p|org-at-item-bullet-p|org-at-item-checkbox-p|org-at-item-counter-p|org-at-item-description-p|org-at-item-p|org-at-item-timer-p|org-at-property-p|org-at-regexp-p|org-at-table-hline-p|org-at-table-p|org-at-table\\\\.el-p|org-at-target-p|org-at-timestamp-p|org-attach|org-auto-fill-function|org-auto-repeat-maybe|org-babel--shell-command-on-region|org-babel-active-location-p|org-babel-balanced-split|org-babel-check-confirm-evaluate|org-babel-check-evaluate|org-babel-check-src-block|org-babel-chomp|org-babel-combine-header-arg-lists|org-babel-comint-buffer-livep|org-babel-comint-eval-invisibly-and-wait-for-file|org-babel-comint-in-buffer|org-babel-comint-input-command|org-babel-comint-wait-for-output|org-babel-comint-with-output|org-babel-confirm-evaluate|org-babel-current-result-hash|org-babel-del-hlines|org-babel-demarcate-block|org-babel-describe-bindings|org-babel-detangle|org-babel-disassemble-tables|org-babel-do-in-edit-buffer|org-babel-do-key-sequence-in-edit-buffer|org-babel-do-load-languages|org-babel-edit-distance|org-babel-enter-header-arg-w-completion|org-babel-eval-error-notify|org-babel-eval-read-file|org-babel-eval-wipe-error-buffer|org-babel-eval|org-babel-examplize-region|org-babel-execute-buffer|org-babel-execute-maybe|org-babel-execute-safely-maybe|org-babel-execute-src-block-maybe|org-babel-execute-src-block|org-babel-execute-subtree|org-babel-execute:emacs-lisp|org-babel-exp-code|org-babel-exp-do-export|org-babel-exp-get-export-buffer|org-babel-exp-in-export-file|org-babel-exp-process-buffer|org-babel-exp-results|org-babel-exp-src-block|org-babel-expand-body:emacs-lisp|org-babel-expand-body:generic|org-babel-expand-noweb-references|org-babel-expand-src-block-maybe|org-babel-expand-src-block|org-babel-find-file-noselect-refresh|org-babel-find-named-block|org-babel-find-named-result|org-babel-format-result|org-babel-get-colnames|org-babel-get-header|org-babel-get-inline-src-block-matches|org-babel-get-lob-one-liner-matches|org-babel-get-rownames|org-babel-get-src-block-info|org-babel-goto-named-result|org-babel-goto-named-src-block|org-babel-goto-src-block-head|org-babel-hash-at-point|org-babel-header-arg-expand|org-babel-hide-all-hashes|org-babel-hide-hash|org-babel-hide-result-toggle-maybe|org-babel-hide-result-toggle|org-babel-import-elisp-from-file|org-babel-in-example-or-verbatim|org-babel-initiate-session|org-babel-insert-header-arg|org-babel-insert-result|org-babel-join-splits-near-ch|org-babel-load-file|org-babel-load-in-session-maybe|org-babel-load-in-session|org-babel-lob-execute-maybe|org-babel-lob-execute|org-babel-lob-get-info|org-babel-lob-ingest|org-babel-local-file-name|org-babel-map-call-lines|org-babel-map-executables|org-babel-map-inline-src-blocks|org-babel-map-src-blocks|org-babel-mark-block|org-babel-merge-params|org-babel-named-data-regexp-for-name|org-babel-named-src-block-regexp-for-name|org-babel-next-src-block|org-babel-noweb-p|org-babel-noweb-wrap|org-babel-number-p|org-babel-open-src-block-result|org-babel-params-from-properties|org-babel-parse-header-arguments|org-babel-parse-inline-src-block-match|org-babel-parse-multiple-vars|org-babel-parse-src-block-match|org-babel-pick-name|org-babel-pop-to-session-maybe|org-babel-pop-to-session|org-babel-previous-src-block|org-babel-process-file-name|org-babel-process-params|org-babel-put-colnames|org-babel-put-rownames|org-babel-read-link|org-babel-read-list|org-babel-read-result|org-babel-read-table|org-babel-read|org-babel-reassemble-table|org-babel-ref-at-ref-p|org-babel-ref-goto-headline-id|org-babel-ref-headline-body|org-babel-ref-index-list|org-babel-ref-parse|org-babel-ref-resolve|org-babel-ref-split-args|org-babel-remove-result|org-babel-remove-temporary-directory|org-babel-result-cond|org-babel-result-end|org-babel-result-hide-all|org-babel-result-hide-spec|org-babel-result-names|org-babel-result-to-file|org-babel-script-escape|org-babel-set-current-result-hash|org-babel-sha1-hash|org-babel-show-result-all|org-babel-spec-to-string|org-babel-speed-command-activate|org-babel-speed-command-hook|org-babel-src-block-names|org-babel-string-read|org-babel-switch-to-session-with-code|org-babel-switch-to-session|org-babel-table-truncate-at-newline|org-babel-tangle-clean|org-babel-tangle-collect-blocks|org-babel-tangle-comment-links|org-babel-tangle-file|org-babel-tangle-jump-to-org|org-babel-tangle-publish|org-babel-tangle-single-block|org-babel-tangle|org-babel-temp-file|org-babel-tramp-handle-call-process-region|org-babel-trim|org-babel-update-block-body|org-babel-view-src-block-info|org-babel-when-in-src-block|org-babel-where-is-src-block-head|org-babel-where-is-src-block-result|org-babel-with-temp-filebuffer|org-back-over-empty-lines|org-back-to-heading|org-backward-element|org-backward-heading-same-level|org-backward-paragraph|org-backward-sentence|org-base-buffer|org-batch-agenda-csv|org-batch-agenda|org-batch-store-agenda-views|org-bbdb-anniversaries|org-beamer-export-as-latex|org-beamer-export-to-latex|org-beamer-export-to-pdf|org-beamer-insert-options-template|org-beamer-mode|org-beamer-publish-to-latex|org-beamer-publish-to-pdf|org-beamer-select-environment|org-before-change-function|org-before-first-heading-p|org-beginning-of-dblock|org-beginning-of-item-list|org-beginning-of-item|org-beginning-of-line|org-between-regexps-p|org-block-map|org-block-todo-from-checkboxes|org-block-todo-from-children-or-siblings-or-parent|org-bookmark-jump-unhide|org-bound-and-true-p|org-buffer-list|org-buffer-narrowed-p|org-buffer-property-keys|org-cached-entry-get|org-calendar-goto-agenda|org-calendar-holiday|org-calendar-select-mouse|org-calendar-select|org-call-for-shift-select|org-call-with-arg|org-called-interactively-p|org-capture-import-remember-templates|org-capture-string|org-capture|org-cdlatex-math-modify|org-cdlatex-mode|org-cdlatex-underscore-caret|org-change-tag-in-region|org-char-to-string|org-check-after-date|org-check-agenda-file|org-check-and-save-marker|org-check-before-date|org-check-before-invisible-edit|org-check-dates-range|org-check-deadlines|org-check-external-command|org-check-for-hidden|org-check-running-clock|org-check-version|org-clean-visibility-after-subtree-move|org-clock-cancel|org-clock-display|org-clock-get-clocktable|org-clock-goto|org-clock-in-last|org-clock-in|org-clock-is-active|org-clock-out|org-clock-persistence-insinuate|org-clock-remove-overlays|org-clock-report|org-clock-sum|org-clock-update-time-maybe|org-clocktable-shift|org-clocktable-try-shift|org-clone-local-variables)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)org-(?:clone-subtree-with-time-shift|closest-date|columns-compute|columns-get-format-and-top-level|columns-number-to-string|columns-remove-overlays|columns|combine-plists|command-at-point|comment-line-break-function|comment-or-uncomment-region|compatible-face|complete-expand-structure-template|completing-read-no-i|completing-read|compute-latex-and-related-regexp|compute-property-at-point|content|context-p|context|contextualize-keys|contextualize-validate-key|convert-to-odd-levels|convert-to-oddeven-levels|copy-face|copy-special|copy-subtree|copy-visible|copy|count-lines|count|create-customize-menu|create-dblock|create-formula--latex-header|create-formula-image-with-dvipng|create-formula-image-with-imagemagick|create-formula-image|create-math-formula|create-multibrace-regexp|ctrl-c-ctrl-c|ctrl-c-minus|ctrl-c-ret|ctrl-c-star|current-effective-time|current-level|current-line-string|current-line|current-time|cursor-to-region-beginning|customize|cut-special|cut-subtree|cycle-agenda-files|cycle-hide-archived-subtrees|cycle-hide-drawers|cycle-hide-inline-tasks|cycle-internal-global|cycle-internal-local|cycle-item-indentation|cycle-level|cycle-list-bullet|cycle-show-empty-lines|cycle|date-from-calendar|date-to-gregorian|datetree-find-date-create|days-to-iso-week|days-to-time|dblock-update|dblock-write:clocktable|dblock-write:columnview|deadline-close|deadline|decompose-region|default-apps|defkey|defvaralias|delete-all|delete-backward-char|delete-char|delete-directory|delete-property-globally|delete-property|demote-subtree|demote|detach-overlay|diary-sexp-entry|diary-to-ical-string|diary|display-custom-time|display-inline-images|display-inline-modification-hook|display-inline-remove-overlay|display-outline-path|display-warning|do-demote|do-emphasis-faces|do-latex-and-related|do-occur|do-promote|do-remove-indentation|do-sort|do-wrap|down-element|drag-element-backward|drag-element-forward|drag-line-backward|drag-line-forward|duration-string-to-minutes|dvipng-color-format|dvipng-color|edit-agenda-file-list|edit-fixed-width-region|edit-special|edit-src-abort|edit-src-code|edit-src-continue|edit-src-exit|edit-src-find-buffer|edit-src-find-region-and-lang|edit-src-get-indentation|edit-src-get-label-format|edit-src-get-lang|edit-src-save|element-at-point|element-context|element-interpret-data|email-link-description|emphasize|end-of-item-list|end-of-item|end-of-line|end-of-meta-data-and-drawers|end-of-subtree|entities-create-table|entities-help|entity-get-representation|entity-get|entity-latex-math-p|entry-add-to-multivalued-property|entry-beginning-position|entry-blocked-p|entry-delete|entry-end-position|entry-get-multivalued-property|entry-get-with-inheritance|entry-get|entry-is-done-p|entry-is-todo-p|entry-member-in-multivalued-property|entry-properties|entry-protect-space|entry-put-multivalued-property|entry-put|entry-remove-from-multivalued-property|entry-restore-space|escape-code-in-region|escape-code-in-string|eval-in-calendar|eval-in-environment|eval|evaluate-time-range|every|export-as|export-dispatch|export-insert-default-template|export-replace-region-by|export-string-as|export-to-buffer|export-to-file|extract-attributes|extract-log-state-settings|face-from-face-or-color|fast-tag-insert|fast-tag-selection|fast-tag-show-exit|fast-todo-selection|feed-goto-inbox|feed-show-raw-feed|feed-update-all|feed-update|file-apps-entry-match-against-dlink-p|file-complete-link|file-contents|file-equal-p|file-image-p|file-menu-entry|file-remote-p|files-list|fill-line-break-nobreak-p|fill-paragraph-with-timestamp-nobreak-p|fill-paragraph|fill-template|find-base-buffer-visiting|find-dblock|find-entry-with-id|find-exact-heading-in-directory|find-exact-headline-in-buffer|find-file-at-mouse|find-if|find-invisible-foreground|find-invisible|find-library-dir|find-olp|find-overlays|find-text-property-in-string|find-visible|first-headline-recenter|first-sibling-p|fit-window-to-buffer|fix-decoded-time|fix-indentation|fix-position-after-promote|fix-tags-on-the-fly|fixup-indentation|fixup-message-id-for-http|flag-drawer|flag-heading|flag-subtree|float-time|floor\\\\*|follow-timestamp-link|font-lock-add-priority-faces|font-lock-add-tag-faces|font-lock-ensure|font-lock-hook|fontify-entities|fontify-like-in-org-mode|fontify-meta-lines-and-blocks-1|fontify-meta-lines-and-blocks|footnote-action|footnote-all-labels|footnote-at-definition-p|footnote-at-reference-p|footnote-auto-adjust-maybe|footnote-create-definition|footnote-delete-definitions|footnote-delete-references|footnote-delete|footnote-get-definition|footnote-get-next-reference|footnote-goto-definition|footnote-goto-local-insertion-point|footnote-goto-previous-reference|footnote-in-valid-context-p|footnote-new|footnote-next-reference-or-definition|footnote-normalize-label|footnote-normalize|footnote-renumber-fn:N|footnote-unique-label|force-cycle-archived|force-self-insert|format-latex-as-mathml|format-latex-mathml-available-p|format-latex|format-outline-path|format-seconds|forward-element|forward-heading-same-level|forward-paragraph|forward-sentence|get-agenda-file-buffer|get-alist-option|get-at-bol|get-buffer-for-internal-link|get-buffer-tags|get-category|get-checkbox-statistics-face|get-compact-tod|get-cursor-date|get-date-from-calendar|get-deadline-time|get-entry|get-export-keywords|get-heading|get-indentation|get-indirect-buffer|get-last-sibling|get-level-face|get-limited-outline-regexp|get-local-tags-at|get-local-tags|get-local-variables|get-location|get-next-sibling|get-org-file|get-outline-path|get-packages-alist|get-previous-line-level|get-priority|get-property-block|get-repeat|get-scheduled-time|get-string-indentation|get-tag-face|get-tags-at|get-tags-string|get-tags|get-todo-face|get-todo-sequence-head|get-todo-state|get-valid-level|get-wdays|get-x-clipboard-compat|get-x-clipboard|git-version|global-cycle|global-tags-completion-table|goto-calendar|goto-first-child|goto-left|goto-line|goto-local-auto-isearch|goto-local-search-headings|goto-map|goto-marker-or-bmk|goto-quit|goto-ret|goto-right|goto-sibling|goto|heading-components|hh:mm-string-to-minutes|hidden-tree-error|hide-archived-subtrees|hide-block-all|hide-block-toggle-all|hide-block-toggle-maybe|hide-block-toggle|hide-wide-columns|highlight-new-match|hours-to-clocksum-string|html-convert-region-to-html|html-export-as-html|html-export-to-html|html-htmlize-generate-css|html-publish-to-html|icalendar-combine-agenda-files|icalendar-export-agenda-files|icalendar-export-to-ics|icompleting-read|id-copy|id-find-id-file|id-find|id-get-create|id-get-with-outline-drilling|id-get-with-outline-path-completion|id-get|id-goto|id-new|id-store-link|id-update-id-locations|ido-switchb|image-file-name-regexp|imenu-get-tree|imenu-new-marker|in-block-p|in-clocktable-p|in-commented-line|in-drawer-p|in-fixed-width-region-p|in-indented-comment-line|in-invisibility-spec-p|in-item-p|in-regexp|in-src-block-p|in-subtree-not-table-p|in-verbatim-emphasis|inc-effort|indent-block|indent-drawer|indent-item-tree|indent-item|indent-line-to|indent-line|indent-mode|indent-region|indent-to-column|info|inhibit-invisibility|insert-all-links|insert-columns-dblock|insert-comment|insert-drawer|insert-heading-after-current|insert-heading-respect-content|insert-heading|insert-item|insert-link-global|insert-link|insert-property-drawer|insert-subheading|insert-time-stamp|insert-todo-heading-respect-content|insert-todo-heading|insert-todo-subheading|inside-LaTeX-fragment-p|inside-latex-macro-p|install-agenda-files-menu|invisible-p2|irc-store-link|iread-file-name|isearch-end|isearch-post-command|iswitchb-completing-read|iswitchb|item-beginning-re|item-re|key|kill-is-subtree-p|kill-line|kill-new|kill-note-or-show-branches|last|latex-color-format|latex-color|latex-convert-region-to-latex|latex-export-as-latex|latex-export-to-latex|latex-export-to-pdf|latex-packages-to-string|latex-publish-to-latex|latex-publish-to-pdf|let2??|level-increment|link-display-format|link-escape|link-expand-abbrev|link-fontify-links-to-this-file|link-prettify|link-search|link-try-special-completion|link-unescape-compound|link-unescape-single-byte-sequence|link-unescape|list-at-regexp-after-bullet-p|list-bullet-string|list-context|list-delete-item|list-get-all-items|list-get-bottom-point|list-get-bullet|list-get-checkbox|list-get-children|list-get-counter|list-get-first-item|list-get-ind|list-get-item-begin|list-get-item-end-before-blank|list-get-item-end|list-get-item-number|list-get-last-item|list-get-list-begin|list-get-list-end|list-get-list-type|list-get-next-item|list-get-nth|list-get-parent|list-get-prev-item|list-get-subtree|list-get-tag|list-get-top-point|list-has-child-p|list-in-valid-context-p|list-inc-bullet-maybe|list-indent-item-generic|list-insert-item|list-insert-radio-list|list-item-body-column|list-item-trim-br|list-make-subtree|list-parents-alist|list-prevs-alist|list-repair|list-search-backward|list-search-forward|list-search-generic|list-send-item|list-send-list|list-separating-blank-lines-number|list-set-bullet|list-set-checkbox|list-set-ind|list-set-item-visibility|list-set-nth|list-struct-apply-struct|list-struct-assoc-end|list-struct-fix-box|list-struct-fix-bul|list-struct-fix-ind|list-struct-fix-item-end|list-struct-indent|list-struct-outdent|list-swap-items|list-to-generic|list-to-html|list-to-latex|list-to-subtree|list-to-texinfo|list-use-alpha-bul-p|list-write-struct|load-modules-maybe|load-noerror-mustsuffix|local-logging|log-into-drawer|looking-at-p|looking-back|macro--collect-macros|macro-expand|macro-initialize-templates|macro-replace-all|make-link-regexps|make-link-string|make-options-regexp|make-org-heading-search-string|make-parameter-alist|make-tags-matcher|make-target-link-regexp|make-tdiff-string|map-dblocks|map-entries|map-region|map-tree|mark-element|mark-ring-goto|mark-ring-push|mark-subtree|match-any-p|match-line|match-sparse-tree|match-string-no-properties|matcher-time|maybe-intangible|md-convert-region-to-md|md-export-as-markdown|md-export-to-markdown|meta-return|metadown|metaleft|metaright|metaup|minutes-to-clocksum-string|minutes-to-hh:mm-string|mobile-pull|mobile-push|mode-flyspell-verify|mode-restart|mode|modifier-cursor-error)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:org-modify-ts-extra|org-move-item-down|org-move-item-up|org-move-subtree-down|org-move-subtree-up|org-move-to-column|org-narrow-to-block|org-narrow-to-element|org-narrow-to-subtree|org-next-block|org-next-item|org-next-link|org-no-popups|org-no-properties|org-no-read-only|org-no-warnings|org-normalize-color|org-not-nil|org-notes-order-reversed-p|org-number-sequence|org-occur-in-agenda-files|org-occur-link-in-agenda-files|org-occur-next-match|org-occur|org-odt-convert|org-odt-export-as-odf-and-open|org-odt-export-as-odf|org-odt-export-to-odt|org-offer-links-in-entry|org-olpath-completing-read|org-on-heading-p|org-on-target-p|org-op-to-function|org-open-at-mouse|org-open-at-point-global|org-open-at-point|org-open-file-with-emacs|org-open-file-with-system|org-open-file|org-open-line|org-open-link-from-string|org-optimize-window-after-visibility-change|org-order-calendar-date-args|org-org-export-as-org|org-org-export-to-org|org-org-menu|org-org-publish-to-org|org-outdent-item-tree|org-outdent-item|org-outline-level|org-outline-overlay-data|org-overlay-before-string|org-overlay-display|org-overview|org-parse-arguments|org-parse-time-string|org-paste-special|org-paste-subtree|org-pcomplete-case-double|org-pcomplete-initial|org-plist-delete|org-plot/gnuplot|org-point-at-end-of-empty-headline|org-point-in-group|org-pop-to-buffer-same-window|org-pos-in-match-range|org-prepare-dblock|org-preserve-lc|org-preview-latex-fragment|org-previous-block|org-previous-item|org-previous-line-empty-p|org-previous-link|org-print-speed-command|org-priority-down|org-priority-up|org-priority|org-promote-subtree|org-promote|org-propertize|org-property-action|org-property-get-allowed-values|org-property-inherit-p|org-property-next-allowed-value|org-property-or-variable-value|org-property-previous-allowed-value|org-property-values|org-protect-slash|org-publish-all|org-publish-current-file|org-publish-current-project|org-publish-project|org-publish|org-quote-csv-field|org-quote-vert|org-raise-scripts|org-re-property|org-re-timestamp|org-re|org-read-agenda-file-list|org-read-date-analyze|org-read-date-display|org-read-date-get-relative|org-read-date|org-read-property-name|org-read-property-value|org-rear-nonsticky-at|org-recenter-calendar|org-redisplay-inline-images|org-reduce|org-reduced-level|org-refile--get-location|org-refile-cache-check-set|org-refile-cache-clear|org-refile-cache-get|org-refile-cache-put|org-refile-check-position|org-refile-get-location|org-refile-get-targets|org-refile-goto-last-stored|org-refile-marker|org-refile-new-child|org-refile|org-refresh-category-properties|org-refresh-properties|org-reftex-citation|org-region-active-p|org-reinstall-markers-in-region|org-release-buffers|org-release|org-reload|org-remap|org-remove-angle-brackets|org-remove-double-quotes|org-remove-empty-drawer-at|org-remove-empty-overlays-at|org-remove-file|org-remove-flyspell-overlays-in|org-remove-font-lock-display-properties|org-remove-from-invisibility-spec|org-remove-if-not|org-remove-if|org-remove-indentation|org-remove-inline-images|org-remove-keyword-keys|org-remove-latex-fragment-image-overlays|org-remove-occur-highlights|org-remove-tabs|org-remove-timestamp-with-keyword|org-remove-uninherited-tags|org-replace-escapes|org-replace-match-keep-properties|org-require-autoloaded-modules|org-reset-checkbox-state-subtree|org-resolve-clocks|org-restart-font-lock|org-return-indent|org-return|org-reveal|org-reverse-string|org-revert-all-org-buffers|org-run-like-in-org-mode|org-save-all-org-buffers|org-save-markers-in-region|org-save-outline-visibility|org-sbe|org-scan-tags|org-schedule|org-search-not-self|org-search-view|org-select-frame-set-input-focus|org-self-insert-command|org-set-current-tags-overlay|org-set-effort|org-set-emph-re|org-set-font-lock-defaults|org-set-frame-title|org-set-local|org-set-modules|org-set-outline-overlay-data|org-set-packages-alist|org-set-property-and-value|org-set-property-function|org-set-property|org-set-regexps-and-options-for-tags|org-set-regexps-and-options|org-set-startup-visibility|org-set-tag-faces|org-set-tags-command|org-set-tags-to|org-set-tags|org-set-transient-map|org-set-visibility-according-to-property|org-setup-comments-handling|org-setup-filling|org-shiftcontroldown|org-shiftcontrolleft|org-shiftcontrolright|org-shiftcontrolup|org-shiftdown|org-shiftleft|org-shiftmetadown|org-shiftmetaleft|org-shiftmetaright|org-shiftmetaup|org-shiftright|org-shiftselect-error|org-shifttab|org-shiftup|org-shorten-string|org-show-block-all|org-show-context|org-show-empty-lines-in-parent|org-show-entry|org-show-hidden-entry|org-show-priority|org-show-siblings|org-show-subtree|org-show-todo-tree|org-skip-over-state-notes|org-skip-whitespace|org-small-year-to-year|org-some|org-sort-entries|org-sort-list|org-sort-remove-invisible|org-sort|org-sparse-tree|org-speed-command-activate|org-speed-command-default-hook|org-speed-command-help|org-speed-move-safe|org-speedbar-set-agenda-restriction|org-splice-latex-header|org-split-string|org-src-associate-babel-session|org-src-babel-configure-edit-buffer|org-src-construct-edit-buffer-name|org-src-do-at-code-block|org-src-do-key-sequence-at-code-block|org-src-edit-buffer-p|org-src-font-lock-fontify-block|org-src-fontify-block|org-src-fontify-buffer|org-src-get-lang-mode|org-src-in-org-buffer|org-src-mode-configure-edit-buffer|org-src-mode|org-src-native-tab-command-maybe|org-src-switch-to-buffer|org-src-tangle|org-store-agenda-views|org-store-link-props|org-store-link|org-store-log-note|org-store-new-agenda-file-list|org-string-match-p|org-string-nw-p|org-string-width|org-string<=|org-string<>|org-string>=??|org-sublist|org-submit-bug-report|org-substitute-posix-classes|org-subtree-end-visible-p|org-switch-to-buffer-other-window|org-switchb|org-table-align|org-table-begin|org-table-blank-field|org-table-convert-region|org-table-convert|org-table-copy-down|org-table-copy-region|org-table-create-or-convert-from-region|org-table-create-with-table\\\\.el|org-table-create|org-table-current-dline|org-table-cut-region|org-table-delete-column|org-table-edit-field|org-table-edit-formulas|org-table-end|org-table-eval-formula|org-table-export|org-table-field-info|org-table-get-stored-formulas|org-table-goto-column|org-table-hline-and-move|org-table-import|org-table-insert-column|org-table-insert-hline|org-table-insert-row|org-table-iterate-buffer-tables|org-table-iterate|org-table-justify-field-maybe|org-table-kill-row|org-table-map-tables|org-table-maybe-eval-formula|org-table-maybe-recalculate-line|org-table-move-column-left|org-table-move-column-right|org-table-move-column|org-table-move-row-down|org-table-move-row-up|org-table-move-row|org-table-next-field|org-table-next-row|org-table-p|org-table-paste-rectangle|org-table-previous-field|org-table-recalculate-buffer-tables|org-table-recalculate|org-table-recognize-table\\\\.el|org-table-rotate-recalc-marks|org-table-set-constants|org-table-sort-lines|org-table-sum|org-table-to-lisp|org-table-toggle-coordinate-overlays|org-table-toggle-formula-debugger|org-table-wrap-region|org-tag-inherit-p|org-tags-completion-function|org-tags-expand|org-tags-sparse-tree|org-tags-view|org-tbl-menu|org-texinfo-convert-region-to-texinfo|org-texinfo-publish-to-texinfo|org-thing-at-point|org-time-from-absolute|org-time-stamp-format|org-time-stamp-inactive|org-time-stamp-to-now|org-time-stamp|org-time-string-to-absolute|org-time-string-to-seconds|org-time-string-to-time|org-time-today|org-time<=??|org-time<>|org-time=|org-time>=??|org-timer-change-times-in-region|org-timer-item|org-timer-set-timer|org-timer-start|org-timer|org-timestamp-change|org-timestamp-down-day|org-timestamp-down|org-timestamp-format|org-timestamp-has-time-p|org-timestamp-split-range|org-timestamp-translate|org-timestamp-up-day|org-timestamp-up|org-today|org-todo-list|org-todo-trigger-tag-changes|org-todo-yesterday|org-todo|org-toggle-archive-tag|org-toggle-checkbox|org-toggle-comment|org-toggle-custom-properties-visibility|org-toggle-fixed-width-section|org-toggle-heading|org-toggle-inline-images|org-toggle-item|org-toggle-link-display|org-toggle-ordered-property|org-toggle-pretty-entities|org-toggle-sticky-agenda|org-toggle-tag|org-toggle-tags-groups|org-toggle-time-stamp-overlays|org-toggle-timestamp-type|org-tr-level|org-translate-link-from-planner|org-translate-link|org-translate-time|org-transpose-element|org-transpose-words|org-tree-to-indirect-buffer|org-trim|org-truely-invisible-p|org-try-cdlatex-tab|org-try-structure-completion|org-unescape-code-in-region|org-unescape-code-in-string|org-unfontify-region|org-unindent-buffer|org-uniquify-alist|org-uniquify|org-unlogged-message|org-unmodified|org-up-element|org-up-heading-all|org-up-heading-safe|org-update-all-dblocks|org-update-checkbox-count-maybe|org-update-checkbox-count|org-update-dblock|org-update-parent-todo-statistics|org-update-property-plist|org-update-radio-target-regexp|org-update-statistics-cookies|org-uuidgen-p|org-version-check|org-version|org-with-gensyms|org-with-limited-levels|org-with-point-at|org-with-remote-undo|org-with-silent-modifications|org-with-wide-buffer|org-without-partial-completion|org-wrap|org-xemacs-without-invisibility|org-xor|org-yank-folding-would-swallow-text|org-yank-generic|org-yank|org<>|orgstruct\\\\+\\\\+-mode|orgstruct-error|orgstruct-make-binding|orgstruct-mode|orgstruct-setup|orgtbl-mode|orgtbl-to-csv|orgtbl-to-generic|orgtbl-to-html|orgtbl-to-latex|orgtbl-to-orgtbl|orgtbl-to-texinfo|orgtbl-to-tsv|oset-default|oset|other-frame|other-window-for-scrolling|outline-back-to-heading|outline-backward-same-level|outline-demote|outline-end-of-heading|outline-end-of-subtree|outline-flag-region|outline-flag-subtree|outline-font-lock-face|outline-forward-same-level|outline-get-last-sibling|outline-get-next-sibling|outline-head-from-level|outline-headers-as-kill|outline-insert-heading|outline-invent-heading|outline-invisible-p|outline-isearch-open-invisible|outline-level|outline-map-region|outline-mark-subtree|outline-minor-mode|outline-mode|outline-move-subtree-down|outline-move-subtree-up|outline-next-heading|outline-next-preface|outline-next-visible-heading|outline-on-heading-p|outline-previous-heading|outline-previous-visible-heading|outline-promote|outline-reveal-toggle-invisible|outline-show-heading|outline-toggle-children|outline-up-heading|outlineify-sticky|outlinify-sticky|overlay-lists|overload-docstring-extension|overload-obsoleted-by|overload-that-obsolete|package--ac-desc-extras--cmacro|package--ac-desc-extras|package--ac-desc-kind--cmacro|package--ac-desc-kind|package--ac-desc-reqs--cmacro|package--ac-desc-reqs|package--ac-desc-summary--cmacro|package--ac-desc-summary|package--ac-desc-version--cmacro|package--ac-desc-version|package--add-to-archive-contents|package--alist-to-plist-args|package--archive-file-exists-p|package--bi-desc-reqs--cmacro|package--bi-desc-reqs|package--bi-desc-summary--cmacro|package--bi-desc-summary|package--bi-desc-version--cmacro|package--bi-desc-version|package--check-signature|package--compile|package--description-file|package--display-verify-error|package--download-one-archive|package--from-builtin|package--has-keyword-p|package--list-loaded-files|package--make-autoloads-and-stuff|package--mapc|package--prepare-dependencies|package--push|package--read-archive-file|package--with-work-buffer|package--write-file-no-coding|package-activate-1|package-activate|package-all-keywords|package-archive-base|package-autoload-ensure-default-file|package-buffer-info|package-built-in-p|package-compute-transaction|package-delete|package-desc--keywords|package-desc-archive--cmacro|package-desc-archive|package-desc-create--cmacro|package-desc-create|package-desc-dir--cmacro|package-desc-dir|package-desc-extras--cmacro|package-desc-extras|package-desc-from-define|package-desc-full-name|package-desc-kind--cmacro|package-desc-kind|package-desc-name--cmacro|package-desc-name|package-desc-p--cmacro|package-desc-p|package-desc-reqs--cmacro|package-desc-reqs|package-desc-signed--cmacro|package-desc-signed|package-desc-status|package-desc-suffix|package-desc-summary--cmacro|package-desc-summary|package-desc-version--cmacro|package-desc-version|package-disabled-p|package-download-transaction|package-generate-autoloads|package-generate-description-file|package-import-keyring|package-install-button-action|package-install-file|package-install-from-archive)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)p(?:ackage-install-from-buffer|ackage-install|ackage-installed-p|ackage-keyword-button-action|ackage-list-packages-no-fetch|ackage-list-packages|ackage-load-all-descriptors|ackage-load-descriptor|ackage-make-ac-desc--cmacro|ackage-make-ac-desc|ackage-make-builtin--cmacro|ackage-make-builtin|ackage-make-button|ackage-menu--archive-predicate|ackage-menu--description-predicate|ackage-menu--find-upgrades|ackage-menu--generate|ackage-menu--name-predicate|ackage-menu--print-info|ackage-menu--refresh|ackage-menu--status-predicate|ackage-menu--version-predicate|ackage-menu-backup-unmark|ackage-menu-describe-package|ackage-menu-execute|ackage-menu-filter|ackage-menu-get-status|ackage-menu-mark-delete|ackage-menu-mark-install|ackage-menu-mark-obsolete-for-deletion|ackage-menu-mark-unmark|ackage-menu-mark-upgrades|ackage-menu-mode|ackage-menu-quick-help|ackage-menu-refresh|ackage-menu-view-commentary|ackage-process-define-package|ackage-read-all-archive-contents|ackage-read-archive-contents|ackage-read-from-string|ackage-refresh-contents|ackage-show-package-list|ackage-strip-rcs-id|ackage-tar-file-info|ackage-unpack|ackage-untar-buffer|ackage-version-join|ages-copy-header-and-position|ages-directory-address-mode|ages-directory-for-addresses|ages-directory-goto-with-mouse|ages-directory-goto|ages-directory-mode|ages-directory|airlis|aragraph-indent-minor-mode|aragraph-indent-text-mode|arse-iso8601-time-string|arse-time-string-chars|arse-time-string|arse-time-tokenize|ascal-beg-of-defun|ascal-build-defun-re|ascal-calculate-indent|ascal-capitalize-keywords|ascal-change-keywords|ascal-comment-area|ascal-comp-defun|ascal-complete-word|ascal-completion|ascal-completions-at-point|ascal-declaration-beg|ascal-declaration-end|ascal-downcase-keywords|ascal-end-of-defun|ascal-end-of-statement|ascal-func-completion|ascal-get-completion-decl|ascal-get-default-symbol|ascal-get-lineup-indent|ascal-goto-defun|ascal-hide-other-defuns|ascal-indent-case|ascal-indent-command|ascal-indent-comment|ascal-indent-declaration|ascal-indent-level|ascal-indent-line|ascal-indent-paramlist|ascal-insert-block|ascal-keyword-completion|ascal-mark-defun|ascal-mode|ascal-outline-change|ascal-outline-goto-defun|ascal-outline-mode|ascal-outline-next-defun|ascal-outline-prev-defun|ascal-outline|ascal-set-auto-comments|ascal-show-all|ascal-show-completions|ascal-star-comment|ascal-string-diff|ascal-type-completion|ascal-uncomment-area|ascal-upcase-keywords|ascal-var-completion|ascal-within-string|assword-cache-add|assword-cache-remove|assword-in-cache-p|assword-read-and-add|assword-read-from-cache|assword-read|assword-reset|case--and|case--app-subst-match|case--app-subst-rest|case--eval|case--expand|case--fgrep|case--flip|case--funcall|case--if|case--let\\\\*|case--macroexpand|case--mark-used|case--match|case--mutually-exclusive-p|case--self-quoting-p|case--small-branch-p|case--split-equal|case--split-match|case--split-member|case--split-pred|case--split-rest|case--trivial-upat-p|case--u1??|case-codegen|case-defmacro|case-dolist|case-exhaustive|case-let\\\\*?|complete/ack-grep|complete/ack|complete/ag|complete/bzip2|complete/cd|complete/chgrp|complete/chown|complete/cvs|complete/erc-mode/CLEARTOPIC|complete/erc-mode/CTCP|complete/erc-mode/DCC|complete/erc-mode/DEOP|complete/erc-mode/DESCRIBE|complete/erc-mode/IDLE|complete/erc-mode/KICK|complete/erc-mode/LEAVE|complete/erc-mode/LOAD|complete/erc-mode/ME|complete/erc-mode/MODE|complete/erc-mode/MSG|complete/erc-mode/NAMES|complete/erc-mode/NOTICE|complete/erc-mode/NOTIFY|complete/erc-mode/OP|complete/erc-mode/PART|complete/erc-mode/QUERY|complete/erc-mode/SAY|complete/erc-mode/SOUND|complete/erc-mode/TOPIC|complete/erc-mode/UNIGNORE|complete/erc-mode/WHOIS|complete/erc-mode/complete-command|complete/eshell-mode/eshell-debug|complete/eshell-mode/export|complete/eshell-mode/setq|complete/eshell-mode/unset|complete/gdb|complete/gzip|complete/kill|complete/make|complete/mount|complete/org-mode/block-option/clocktable|complete/org-mode/block-option/src|complete/org-mode/drawer|complete/org-mode/file-option/author|complete/org-mode/file-option/bind|complete/org-mode/file-option/date|complete/org-mode/file-option/email|complete/org-mode/file-option/exclude_tags|complete/org-mode/file-option/filetags|complete/org-mode/file-option/infojs_opt|complete/org-mode/file-option/language|complete/org-mode/file-option/options|complete/org-mode/file-option/priorities|complete/org-mode/file-option/select_tags|complete/org-mode/file-option/startup|complete/org-mode/file-option/tags|complete/org-mode/file-option/title|complete/org-mode/file-option|complete/org-mode/link|complete/org-mode/prop|complete/org-mode/searchhead|complete/org-mode/tag|complete/org-mode/tex|complete/org-mode/todo|complete/pushd|complete/rm|complete/rmdir|complete/rpm|complete/scp|complete/ssh|complete/tar|complete/time|complete/tlmgr|complete/umount|complete/which|complete/xargs|complete--common-suffix|complete--entries|complete--help|complete--here|complete--test|complete-actual-arg|complete-all-entries|complete-arg|complete-begin|complete-comint-setup|complete-command-name|complete-completions-at-point|complete-completions|complete-continue|complete-dirs-or-entries|complete-dirs|complete-do-complete|complete-entries|complete-erc-all-nicks|complete-erc-channels|complete-erc-command-name|complete-erc-commands|complete-erc-nicks|complete-erc-not-ops|complete-erc-ops|complete-erc-parse-arguments|complete-erc-setup|complete-event-matches-key-specifier-p|complete-executables|complete-expand-and-complete|complete-expand|complete-find-completion-function|complete-help|complete-here\\\\*?|complete-insert-entry|complete-list|complete-match-beginning|complete-match-end|complete-match-string|complete-match|complete-next-arg|complete-opt|complete-parse-arguments|complete-parse-buffer-arguments|complete-parse-comint-arguments|complete-process-result|complete-quote-argument|complete-read-event|complete-restore-windows|complete-reverse|complete-shell-setup|complete-show-completions|complete-std-complete|complete-stub|complete-test|complete-uniqify-list|complete-unquote-argument|complete|db|ending-delete-mode|erl-backward-to-noncomment|erl-backward-to-start-of-continued-exp|erl-beginning-of-function|erl-calculate-indent|erl-comment-indent|erl-continuation-line-p|erl-current-defun-name|erl-electric-noindent-p|erl-electric-terminator|erl-end-of-function|erl-font-lock-syntactic-face-function|erl-hanging-paren-p|erl-indent-command|erl-indent-exp|erl-indent-line|erl-indent-new-calculate|erl-mark-function|erl-mode|erl-outline-level|erl-quote-syntax-table|erl-syntax-propertize-function|erl-syntax-propertize-special-constructs|erldb|icture-backward-clear-column|icture-backward-column|icture-beginning-of-line|icture-clear-column|icture-clear-line|icture-clear-rectangle-to-register|icture-clear-rectangle|icture-current-line|icture-delete-char|icture-draw-rectangle|icture-duplicate-line|icture-end-of-line|icture-forward-column|icture-insert-rectangle|icture-insert|icture-mode-exit|icture-mode|icture-motion-reverse|icture-motion|icture-mouse-set-point|icture-move-down|icture-move-up|icture-move|icture-movement-down|icture-movement-left|icture-movement-ne|icture-movement-nw|icture-movement-right|icture-movement-se|icture-movement-sw|icture-movement-up|icture-newline|icture-open-line|icture-replace-match|icture-self-insert|icture-set-motion|icture-set-tab-stops|icture-snarf-rectangle|icture-tab-search|icture-tab|icture-update-desired-column|icture-yank-at-click|icture-yank-rectangle-from-register|icture-yank-rectangle|ike-font-lock-keywords-2|ike-font-lock-keywords-3|ike-font-lock-keywords|ike-mode|ing|lain-TeX-mode|lain-tex-mode|lay-sound-internal|lstore-delete|lstore-find|lstore-get-file|lstore-mode|lstore-open|lstore-put|lstore-save|lusp|o-find-charset|o-find-file-coding-system-guts|o-find-file-coding-system|oint-at-bol|oint-at-eol|oint-to-register|ong-display-options|ong-init-buffer|ong-init|ong-move-down|ong-move-left|ong-move-right|ong-move-up|ong-pause|ong-quit|ong-resume|ong-update-bat|ong-update-game|ong-update-score|ong|op-global-mark|op-tag-mark|op-to-buffer-same-window|op-to-mark-command|op3-movemail|opup-menu-normalize-position|opup-menu|osition-if-not|osition-if|osition|osn-set-point|ost-read-decode-hz|p-buffer|p-display-expression|p-eval-expression|p-eval-last-sexp|p-last-sexp|p-macroexpand-expression|p-macroexpand-last-sexp|p-to-string|r-alist-custom-set|r-article-date|r-auto-mode-p|r-call-process|r-choice-alist|r-command|r-complete-alist|r-create-interface|r-customize|r-delete-file-if-exists|r-delete-file|r-despool-preview|r-despool-print|r-despool-ps-print|r-despool-using-ghostscript|r-do-update-menus|r-dosify-file-name|r-eval-alist|r-eval-local-alist|r-eval-setting-alist|r-even-or-odd-pages|r-expand-file-name|r-file-list|r-find-buffer-visiting|r-find-command|r-get-symbol|r-global-menubar|r-gnus-lpr|r-gnus-print|r-help|r-i-directory|r-i-ps-send|r-insert-button|r-insert-checkbox|r-insert-italic|r-insert-menu|r-insert-radio-button|r-insert-section-1|r-insert-section-2|r-insert-section-3|r-insert-section-4|r-insert-section-5|r-insert-section-6|r-insert-section-7|r-insert-toggle|r-interactive-dir-args|r-interactive-dir|r-interactive-n-up-file|r-interactive-n-up-inout|r-interactive-n-up|r-interactive-ps-dir-args|r-interactive-regexp|r-interface-directory|r-interface-help|r-interface-infile|r-interface-outfile|r-interface-preview|r-interface-printify|r-interface-ps-print|r-interface-ps|r-interface-quit|r-interface-save|r-interface-txt-print|r-interface|r-keep-region-active|r-kill-help|r-kill-local-variable|r-local-variable|r-lpr-message-from-summary|r-menu-alist|r-menu-bind|r-menu-char-height|r-menu-char-width|r-menu-create|r-menu-get-item|r-menu-index|r-menu-lock|r-menu-lookup|r-menu-position|r-menu-set-item-name|r-menu-set-ps-title|r-menu-set-txt-title|r-menu-set-utility-title|r-mh-current-message|r-mh-lpr-1|r-mh-lpr-2|r-mh-print-1|r-mh-print-2|r-mode-alist-p|r-mode-lpr|r-mode-print|r-path-command|r-printify-buffer|r-printify-directory|r-printify-region|r-prompt-gs|r-prompt-region|r-prompt|r-ps-buffer-preview|r-ps-buffer-print|r-ps-buffer-ps-print|r-ps-buffer-using-ghostscript|r-ps-directory-preview|r-ps-directory-print|r-ps-directory-ps-print|r-ps-directory-using-ghostscript|r-ps-fast-fire|r-ps-file-list|r-ps-file-preview|r-ps-file-print|r-ps-file-ps-print|r-ps-file-up-preview|r-ps-file-up-ps-print|r-ps-file-using-ghostscript|r-ps-file|r-ps-infile-preprint|r-ps-message-from-summary|r-ps-mode-preview|r-ps-mode-print|r-ps-mode-ps-print|r-ps-mode-using-ghostscript|r-ps-mode|r-ps-name-custom-set|r-ps-name|r-ps-outfile-preprint|r-ps-preview|r-ps-print|r-ps-region-preview|r-ps-region-print|r-ps-region-ps-print|r-ps-region-using-ghostscript|r-ps-set-printer|r-ps-set-utility|r-ps-using-ghostscript|r-ps-utility-args|r-ps-utility-custom-set|r-ps-utility-process|r-ps-utility|r-read-string|r-region-active-p|r-region-active-string|r-region-active-symbol|r-remove-nil-from-list|r-rmail-lpr|r-rmail-print|r-save-file-modes|r-set-dir-args|r-set-keymap-name|r-set-keymap-parents|r-set-n-up-and-filename|r-set-outfilename|r-set-ps-dir-args|r-setup|r-show-lpr-setup|r-show-pr-setup|r-show-ps-setup|r-show-setup|r-standard-file-name|r-switches-string|r-switches|r-text2ps|r-toggle-duplex-menu|r-toggle-duplex|r-toggle-faces-menu|r-toggle-faces|r-toggle-file-duplex-menu|r-toggle-file-duplex)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)p(?:r-toggle-file-landscape-menu|r-toggle-file-landscape|r-toggle-file-tumble-menu|r-toggle-file-tumble|r-toggle-ghostscript-menu|r-toggle-ghostscript|r-toggle-header-frame-menu|r-toggle-header-frame|r-toggle-header-menu|r-toggle-header|r-toggle-landscape-menu|r-toggle-landscape|r-toggle-line-menu|r-toggle-line|r-toggle-lock-menu|r-toggle-lock|r-toggle-mode-menu|r-toggle-mode|r-toggle-region-menu|r-toggle-region|r-toggle-spool-menu|r-toggle-spool|r-toggle-tumble-menu|r-toggle-tumble|r-toggle-upside-down-menu|r-toggle-upside-down|r-toggle-zebra-menu|r-toggle-zebra|r-toggle|r-txt-buffer|r-txt-directory|r-txt-fast-fire|r-txt-mode|r-txt-name-custom-set|r-txt-name|r-txt-print|r-txt-region|r-txt-set-printer|r-unixify-file-name|r-update-checkbox|r-update-menus|r-update-mode-line|r-update-radio-button|r-update-var|r-using-ghostscript-p|r-visible-p|r-vm-lpr|r-vm-print|r-widget-field-action|re-write-encode-hz|receding-sexp|refer-coding-system|repare-abbrev-list-buffer|repend-to-buffer|repend-to-register|rettify-symbols--compose-symbol|rettify-symbols--make-keywords|rettify-symbols-mode-set-explicitly|rettify-symbols-mode|revious-buffer|revious-completion|revious-error-no-select|revious-error|revious-ifdef|revious-line-or-history-element|revious-line|revious-logical-line|revious-multiframe-window|revious-page|rin1-char|rinc-list|rint-buffer|rint-help-return-message|rint-region-1|rint-region-new-buffer|rint-region|rintify-region|roced-<|roced-auto-update-timer|roced-children-alist|roced-children-pids|roced-do-mark-all|roced-do-mark|roced-filter-children|roced-filter-interactive|roced-filter-parents|roced-filter|roced-format-args|roced-format-interactive|roced-format-start|roced-format-time|roced-format-tree|roced-format-ttname|roced-format|roced-header-line|roced-help|roced-insert-mark|roced-log-summary|roced-log|roced-mark-all|roced-mark-children|roced-mark-parents|roced-mark-process-alist|roced-mark|roced-marked-processes|roced-marker-regexp|roced-menu|roced-mode|roced-move-to-goal-column|roced-omit-process|roced-omit-processes|roced-pid-at-point|roced-process-attributes|roced-process-tree-internal|roced-process-tree|roced-refine|roced-renice|roced-revert|roced-send-signal|roced-sort-header|roced-sort-interactive|roced-sort-p|roced-sort-pcpu|roced-sort-pid|roced-sort-pmem|roced-sort-start|roced-sort-time|roced-sort-user|roced-sort|roced-string-lessp|roced-success-message|roced-time-lessp|roced-toggle-auto-update|roced-toggle-marks|roced-toggle-tree|roced-tree-insert|roced-tree|roced-undo|roced-unmark-all|roced-unmark-backward|roced-unmark|roced-update|roced-why|roced-with-processes-buffer|roced-xor|roced|rocess-filter-multibyte-p|rocess-inherit-coding-system-flag|rocess-kill-without-query|rocess-menu-delete-process|rocess-menu-mode|rocess-menu-visit-buffer|roclaim|roduce-allout-mode-menubar-entries|rofiler-calltree-build-1|rofiler-calltree-build-unified|rofiler-calltree-build|rofiler-calltree-children--cmacro|rofiler-calltree-children|rofiler-calltree-compute-percentages|rofiler-calltree-count--cmacro|rofiler-calltree-count-percent--cmacro|rofiler-calltree-count-percent|rofiler-calltree-count|rofiler-calltree-depth|rofiler-calltree-entry--cmacro|rofiler-calltree-entry|rofiler-calltree-find|rofiler-calltree-leaf-p|rofiler-calltree-p--cmacro|rofiler-calltree-p|rofiler-calltree-parent--cmacro|rofiler-calltree-parent|rofiler-calltree-sort|rofiler-calltree-walk|rofiler-compare-logs|rofiler-compare-profiles|rofiler-cpu-log|rofiler-cpu-profile|rofiler-cpu-running-p|rofiler-cpu-start|rofiler-cpu-stop|rofiler-ensure-string|rofiler-find-profile-other-frame|rofiler-find-profile-other-window|rofiler-find-profile|rofiler-fixup-backtrace|rofiler-fixup-entry|rofiler-fixup-log|rofiler-fixup-profile|rofiler-format-entry|rofiler-format-number|rofiler-format-percent|rofiler-format|rofiler-make-calltree--cmacro|rofiler-make-calltree|rofiler-make-profile--cmacro|rofiler-make-profile|rofiler-memory-log|rofiler-memory-profile|rofiler-memory-running-p|rofiler-memory-start|rofiler-memory-stop|rofiler-profile-diff-p--cmacro|rofiler-profile-diff-p|rofiler-profile-log--cmacro|rofiler-profile-log|rofiler-profile-tag--cmacro|rofiler-profile-tag|rofiler-profile-timestamp--cmacro|rofiler-profile-timestamp|rofiler-profile-type--cmacro|rofiler-profile-type|rofiler-profile-version--cmacro|rofiler-profile-version|rofiler-read-profile|rofiler-report-ascending-sort|rofiler-report-calltree-at-point|rofiler-report-collapse-entry|rofiler-report-compare-profile|rofiler-report-cpu|rofiler-report-descending-sort|rofiler-report-describe-entry|rofiler-report-expand-entry|rofiler-report-find-entry|rofiler-report-header-line-format|rofiler-report-insert-calltree-children|rofiler-report-insert-calltree|rofiler-report-line-format|rofiler-report-make-buffer-name|rofiler-report-make-entry-part|rofiler-report-make-name-part|rofiler-report-memory|rofiler-report-menu|rofiler-report-mode|rofiler-report-move-to-entry|rofiler-report-next-entry|rofiler-report-previous-entry|rofiler-report-profile-other-frame|rofiler-report-profile-other-window|rofiler-report-profile|rofiler-report-render-calltree-1|rofiler-report-render-calltree|rofiler-report-render-reversed-calltree|rofiler-report-rerender-calltree|rofiler-report-setup-buffer-1|rofiler-report-setup-buffer|rofiler-report-toggle-entry|rofiler-report-write-profile|rofiler-report|rofiler-reset|rofiler-running-p|rofiler-start|rofiler-stop|rofiler-write-profile|rog-indent-sexp|rogress-reporter-do-update|rogv|roject-add-file|roject-compile-project|roject-compile-target|roject-debug-target|roject-delete-target|roject-dist-files|roject-edit-file-target|roject-interactive-select-target|roject-make-dist|roject-new-target-custom|roject-new-target|roject-remove-file|roject-rescan|roject-run-target|rolog-Info-follow-nearest-node|rolog-atleast-version|rolog-atom-under-point|rolog-beginning-of-clause|rolog-beginning-of-predicate|rolog-bsts|rolog-buffer-module|rolog-build-info-alist|rolog-build-prolog-command|rolog-clause-end|rolog-clause-info|rolog-clause-start|rolog-comment-limits|rolog-compile-buffer|rolog-compile-file|rolog-compile-predicate|rolog-compile-region|rolog-compile-string|rolog-consult-buffer|rolog-consult-compile-buffer|rolog-consult-compile-file|rolog-consult-compile-filter|rolog-consult-compile-predicate|rolog-consult-compile-region|rolog-consult-compile|rolog-consult-file|rolog-consult-predicate|rolog-consult-region|rolog-consult-string|rolog-debug-off|rolog-debug-on|rolog-disable-sicstus-sd|rolog-do-auto-fill|rolog-edit-menu-insert-move|rolog-edit-menu-runtime|rolog-electric--colon|rolog-electric--dash|rolog-electric--dot|rolog-electric--if-then-else|rolog-electric--underscore|rolog-enable-sicstus-sd|rolog-end-of-clause|rolog-end-of-predicate|rolog-ensure-process|rolog-face-name-p|rolog-fill-paragraph|rolog-find-documentation|rolog-find-term|rolog-find-unmatched-paren|rolog-find-value-by-system|rolog-font-lock-keywords|rolog-font-lock-object-matcher|rolog-get-predspec|rolog-goto-predicate-info|rolog-goto-prolog-process-buffer|rolog-guess-fill-prefix|rolog-help-apropos|rolog-help-info|rolog-help-on-predicate|rolog-help-online|rolog-in-object|rolog-indent-buffer|rolog-indent-predicate|rolog-inferior-buffer|rolog-inferior-guess-flavor|rolog-inferior-menu-all|rolog-inferior-menu|rolog-inferior-mode|rolog-inferior-self-insert-command|rolog-input-filter|rolog-insert-module-modeline|rolog-insert-next-clause|rolog-insert-predicate-template|rolog-insert-predspec|rolog-mark-clause|rolog-mark-predicate|rolog-menu-help|rolog-menu|rolog-mode-keybindings-common|rolog-mode-keybindings-edit|rolog-mode-keybindings-inferior|rolog-mode-variables|rolog-mode-version|rolog-mode|rolog-old-process-buffer|rolog-old-process-file|rolog-old-process-predicate|rolog-old-process-region|rolog-paren-balance|rolog-parse-sicstus-compilation-errors|rolog-post-self-insert|rolog-pred-end|rolog-pred-start|rolog-process-insert-string|rolog-program-name|rolog-program-switches|rolog-prompt-regexp|rolog-read-predicate|rolog-replace-in-string|rolog-smie-backward-token|rolog-smie-forward-token|rolog-smie-rules|rolog-temporary-file|rolog-toggle-sicstus-sd|rolog-trace-off|rolog-trace-on|rolog-uncomment-region|rolog-variables-to-anonymous|rolog-view-predspec|rolog-zip-off|rolog-zip-on|rompt-for-change-log-name|ropertized-buffer-identification|rune-directory-list|s-alist-position|s-avg-char-width|s-background-image|s-background-pages|s-background-text|s-background|s-basic-plot-str|s-basic-plot-string|s-basic-plot-whitespace|s-begin-file|s-begin-job|s-begin-page|s-boolean-capitalized|s-boolean-constant|s-build-reference-face-lists|s-color-device|s-color-scale|s-color-values|s-comment-string|s-continue-line|s-control-character|s-count-lines-preprint|s-count-lines|s-del|s-despool|s-do-despool|s-end-job|s-end-page|s-end-sheet|s-extend-face-list|s-extend-face|s-extension-bit|s-face-attribute-list|s-face-attributes|s-face-background-color-p|s-face-background-name|s-face-background|s-face-bold-p|s-face-box-p|s-face-color-p|s-face-extract-color|s-face-foreground-color-p|s-face-foreground-name|s-face-italic-p|s-face-overline-p|s-face-strikeout-p|s-face-underlined-p|s-find-wrappoint|s-float-format|s-flush-output|s-font-alist|s-font-lock-face-attributes|s-font-number|s-fonts??|s-format-color|s-frame-parameter|s-generate-header-line|s-generate-header|s-generate-postscript-with-faces1??|s-generate-postscript|s-generate|s-get-boundingbox|s-get-buffer-name|s-get-font-size|s-get-page-dimensions|s-get-size|s-get|s-header-dirpart|s-header-page|s-header-sheet|s-init-output-queue|s-insert-file|s-insert-string|s-kill-emacs-check|s-line-height|s-line-lengths-internal|s-line-lengths|s-lookup|s-map-face|s-mark-active-p|s-message-log-max|s-mode--syntax-propertize-special|s-mode-RE|s-mode-backward-delete-char|s-mode-center|s-mode-comment-out-region|s-mode-epsf-rich|s-mode-epsf-sparse|s-mode-heapsort|s-mode-latin-extended|s-mode-main|s-mode-octal-buffer|s-mode-octal-region|s-mode-other-newline|s-mode-print-buffer|s-mode-print-region|s-mode-right|s-mode-show-version|s-mode-smie-rules|s-mode-submit-bug-report|s-mode-syntax-propertize|s-mode-target-column|s-mode-uncomment-region|s-mode|s-mule-begin-job|s-mule-end-job|s-mule-initialize|s-n-up-columns|s-n-up-end|s-n-up-filling|s-n-up-landscape|s-n-up-lines|s-n-up-missing|s-n-up-printing|s-n-up-repeat|s-n-up-xcolumn|s-n-up-xline|s-n-up-xstart|s-n-up-ycolumn|s-n-up-yline|s-n-up-ystart|s-nb-pages-buffer|s-nb-pages-region|s-nb-pages|s-next-line|s-next-page|s-output-boolean|s-output-frame-properties|s-output-prologue|s-output-string-prim|s-output-string|s-output|s-page-dimensions-get-height|s-page-dimensions-get-media|s-page-dimensions-get-width|s-page-number|s-plot-region|s-plot-string|s-plot-with-face|s-plot|s-print-buffer-with-faces|s-print-buffer|s-print-customize|s-print-ensure-fontified|s-print-page-p|s-print-preprint-region|s-print-preprint|s-print-quote|s-print-region-with-faces|s-print-region|s-print-sheet-p|s-print-with-faces|s-print-without-faces|s-printing-region|s-prologue-file|s-put|s-remove-duplicates|s-restore-selected-pages|s-rgb-color|s-run-boundingbox|s-run-buffer|s-run-cleanup|s-run-clear|s-run-goto-error|s-run-kill|s-run-make-tmp-filename|s-run-mode|s-run-mouse-goto-error|s-run-quit|s-run-region|s-run-running|s-run-send-string|s-run-start|s-screen-to-bit-face|s-select-font|s-selected-pages|s-set-bg|s-set-color|s-set-face-attribute|s-set-face-bold|s-set-face-italic|s-set-face-underline|s-set-font|s-setup|s-size-scale|s-skip-newline|s-space-width|s-spool-buffer-with-faces|s-spool-buffer|s-spool-region-with-faces|s-spool-region|s-spool-with-faces|s-spool-without-faces|s-time-stamp-hh:mm:ss|s-time-stamp-iso8601)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:ps-time-stamp-locale-default|ps-time-stamp-mon-dd-yyyy|ps-time-stamp-yyyy-mm-dd|ps-title-line-height|ps-value-string|ps-value|psetf|psetq|push-mark-command|pushnew|put-unicode-property-internal|pwd|python-check|python-comint-output-filter-function|python-comint-postoutput-scroll-to-bottom|python-completion-at-point|python-completion-complete-at-point|python-define-auxiliary-skeleton|python-docstring-at-p|python-eldoc--get-doc-at-point|python-eldoc-at-point|python-eldoc-function|python-electric-pair-string-delimiter|python-ffap-module-path|python-fill-comment|python-fill-decorator|python-fill-paragraph|python-fill-paren|python-fill-string|python-font-lock-syntactic-face-function|python-imenu--build-tree|python-imenu--put-parent|python-imenu-create-flat-index|python-imenu-create-index|python-imenu-format-item-label|python-imenu-format-parent-item-jump-label|python-imenu-format-parent-item-label|python-indent-calculate-indentation|python-indent-calculate-levels|python-indent-context|python-indent-dedent-line-backspace|python-indent-dedent-line|python-indent-guess-indent-offset|python-indent-line-function|python-indent-line|python-indent-post-self-insert-function|python-indent-region|python-indent-shift-left|python-indent-shift-right|python-indent-toggle-levels|python-info-assignment-continuation-line-p|python-info-beginning-of-backslash|python-info-beginning-of-block-p|python-info-beginning-of-statement-p|python-info-block-continuation-line-p|python-info-closing-block-message|python-info-closing-block|python-info-continuation-line-p|python-info-current-defun|python-info-current-line-comment-p|python-info-current-line-empty-p|python-info-current-symbol|python-info-dedenter-opening-block-message|python-info-dedenter-opening-block-positions??|python-info-dedenter-statement-p|python-info-encoding-from-cookie|python-info-encoding|python-info-end-of-block-p|python-info-end-of-statement-p|python-info-line-ends-backslash-p|python-info-looking-at-beginning-of-defun|python-info-ppss-comment-or-string-p|python-info-ppss-context-type|python-info-ppss-context|python-info-statement-ends-block-p|python-info-statement-starts-block-p|python-menu|python-mode|python-nav--beginning-of-defun|python-nav--forward-defun|python-nav--forward-sexp|python-nav--lisp-forward-sexp-safe|python-nav--lisp-forward-sexp|python-nav--syntactically|python-nav--up-list|python-nav-backward-block|python-nav-backward-defun|python-nav-backward-sexp-safe|python-nav-backward-sexp|python-nav-backward-statement|python-nav-backward-up-list|python-nav-beginning-of-block|python-nav-beginning-of-defun|python-nav-beginning-of-statement|python-nav-end-of-block|python-nav-end-of-defun|python-nav-end-of-statement|python-nav-forward-block|python-nav-forward-defun|python-nav-forward-sexp-safe|python-nav-forward-sexp|python-nav-forward-statement|python-nav-if-name-main|python-nav-up-list|python-pdbtrack-comint-output-filter-function|python-pdbtrack-set-tracked-buffer|python-proc|python-send-receive|python-send-string|python-shell--save-temp-file|python-shell-accept-process-output|python-shell-buffer-substring|python-shell-calculate-command|python-shell-calculate-exec-path|python-shell-calculate-process-environment|python-shell-calculate-pythonpath|python-shell-comint-end-of-output-p|python-shell-completion-at-point|python-shell-completion-complete-at-point|python-shell-completion-complete-or-indent|python-shell-completion-get-completions|python-shell-font-lock-cleanup-buffer|python-shell-font-lock-comint-output-filter-function|python-shell-font-lock-get-or-create-buffer|python-shell-font-lock-kill-buffer|python-shell-font-lock-post-command-hook|python-shell-font-lock-toggle|python-shell-font-lock-turn-off|python-shell-font-lock-turn-on|python-shell-font-lock-with-font-lock-buffer|python-shell-get-buffer|python-shell-get-or-create-process|python-shell-get-process-name|python-shell-get-process|python-shell-internal-get-or-create-process|python-shell-internal-get-process-name|python-shell-internal-send-string|python-shell-make-comint|python-shell-output-filter|python-shell-package-enable|python-shell-parse-command|python-shell-prompt-detect|python-shell-prompt-set-calculated-regexps|python-shell-prompt-validate-regexps|python-shell-send-buffer|python-shell-send-defun|python-shell-send-file|python-shell-send-region|python-shell-send-setup-code|python-shell-send-string-no-output|python-shell-send-string|python-shell-switch-to-shell|python-shell-with-shell-buffer|python-skeleton--else|python-skeleton--except|python-skeleton--finally|python-skeleton-add-menu-items|python-skeleton-class|python-skeleton-def|python-skeleton-define|python-skeleton-for|python-skeleton-if|python-skeleton-import|python-skeleton-try|python-skeleton-while|python-syntax-comment-or-string-p|python-syntax-context-type|python-syntax-context|python-syntax-count-quotes|python-syntax-stringify|python-util-clone-local-variables|python-util-comint-last-prompt|python-util-forward-comment|python-util-goto-line|python-util-list-directories|python-util-list-files|python-util-list-packages|python-util-popn|python-util-strip-string|python-util-text-properties-replace-name|python-util-valid-regexp-p|quail-define-package|quail-define-rules|quail-defrule-internal|quail-defrule|quail-install-decode-map|quail-install-map|quail-set-keyboard-layout|quail-show-keyboard-layout|quail-title|quail-update-leim-list-file|quail-use-package|query-dig|query-font|query-fontset|query-replace-compile-replacement|query-replace-descr|query-replace-read-args|query-replace-read-from|query-replace-read-to|query-replace-regexp-eval|query-replace-regexp|query-replace|quick-calc|quickurl-add-url|quickurl-ask|quickurl-browse-url-ask|quickurl-browse-url|quickurl-edit-urls|quickurl-find-url|quickurl-grab-url|quickurl-insert|quickurl-list-add-url|quickurl-list-insert-lookup|quickurl-list-insert-naked-url|quickurl-list-insert-url|quickurl-list-insert-with-desc|quickurl-list-insert-with-lookup|quickurl-list-insert|quickurl-list-make-inserter|quickurl-list-mode|quickurl-list-mouse-select|quickurl-list-populate-buffer|quickurl-list-quit|quickurl-list|quickurl-load-urls|quickurl-make-url|quickurl-read|quickurl-save-urls|quickurl-url-comment|quickurl-url-commented-p|quickurl-url-description|quickurl-url-keyword|quickurl-url-url|quickurl|quit-windows-on|quoted-insert|quoted-printable-decode-region|quoted-printable-decode-string|quoted-printable-encode-region|r2b-barf-output|r2b-capitalize-title-region|r2b-capitalize-title|r2b-clear-variables|r2b-convert-buffer|r2b-convert-month|r2b-convert-record|r2b-get-field|r2b-help|r2b-isa-proceedings|r2b-isa-university|r2b-match|r2b-moveq|r2b-put-field|r2b-require|r2b-reset|r2b-set-match|r2b-snarf-input|r2b-trace|r2b-warning|radians-to-degrees|raise-sexp|random\\\\*|random-state-p|rassoc\\\\*|rassoc-if-not|rassoc-if|rcirc--connection-open-p|rcirc-abbreviate|rcirc-activity-string|rcirc-add-face|rcirc-add-or-remove|rcirc-any-buffer|rcirc-authenticate|rcirc-browse-url|rcirc-buffer-nick|rcirc-buffer-process|rcirc-change-major-mode-hook|rcirc-channel-nicks|rcirc-channel-p|rcirc-check-auth-status|rcirc-clean-up-buffer|rcirc-clear-activity|rcirc-clear-unread|rcirc-cmd-bright|rcirc-cmd-ctcp|rcirc-cmd-dim|rcirc-cmd-ignore|rcirc-cmd-invite|rcirc-cmd-join|rcirc-cmd-keyword|rcirc-cmd-kick|rcirc-cmd-list|rcirc-cmd-me|rcirc-cmd-mode|rcirc-cmd-msg|rcirc-cmd-names|rcirc-cmd-nick|rcirc-cmd-oper|rcirc-cmd-part|rcirc-cmd-query|rcirc-cmd-quit|rcirc-cmd-quote|rcirc-cmd-reconnect|rcirc-cmd-topic|rcirc-cmd-whois|rcirc-complete|rcirc-completion-at-point|rcirc-condition-filter|rcirc-connect|rcirc-ctcp-sender-PING|rcirc-debug|rcirc-delete-process|rcirc-disconnect-buffer|rcirc-edit-multiline|rcirc-elapsed-lines|rcirc-facify|rcirc-fill-paragraph|rcirc-filter|rcirc-float-time|rcirc-format-response-string|rcirc-generate-log-filename|rcirc-generate-new-buffer-name|rcirc-get-buffer-create|rcirc-get-buffer|rcirc-get-temp-buffer-create|rcirc-handler-001|rcirc-handler-301|rcirc-handler-317|rcirc-handler-332|rcirc-handler-333|rcirc-handler-353|rcirc-handler-366|rcirc-handler-433|rcirc-handler-477|rcirc-handler-CTCP-response|rcirc-handler-CTCP|rcirc-handler-ERROR|rcirc-handler-INVITE|rcirc-handler-JOIN|rcirc-handler-KICK|rcirc-handler-MODE|rcirc-handler-NICK|rcirc-handler-NOTICE|rcirc-handler-PART-or-KICK|rcirc-handler-PART|rcirc-handler-PING|rcirc-handler-PONG|rcirc-handler-PRIVMSG|rcirc-handler-QUIT|rcirc-handler-TOPIC|rcirc-handler-WALLOPS|rcirc-handler-ctcp-ACTION|rcirc-handler-ctcp-KEEPALIVE|rcirc-handler-ctcp-TIME|rcirc-handler-ctcp-VERSION|rcirc-handler-generic|rcirc-ignore-update-automatic|rcirc-insert-next-input|rcirc-insert-prev-input|rcirc-join-channels-post-auth|rcirc-join-channels|rcirc-jump-to-first-unread-line|rcirc-keepalive|rcirc-kill-buffer-hook|rcirc-last-line|rcirc-last-quit-line|rcirc-log-write|rcirc-log|rcirc-looking-at-input|rcirc-make-trees|rcirc-markup-attributes|rcirc-markup-bright-nicks|rcirc-markup-fill|rcirc-markup-keywords|rcirc-markup-my-nick|rcirc-markup-timestamp|rcirc-markup-urls|rcirc-maybe-remember-nick-quit|rcirc-mode|rcirc-multiline-minor-cancel|rcirc-multiline-minor-mode|rcirc-multiline-minor-submit|rcirc-next-active-buffer|rcirc-nick-channels|rcirc-nick-remove|rcirc-nick|rcirc-nickname<|rcirc-non-irc-buffer|rcirc-omit-mode|rcirc-prev-input-string|rcirc-print|rcirc-process-command|rcirc-process-input-line|rcirc-process-list|rcirc-process-message|rcirc-process-server-response-1|rcirc-process-server-response|rcirc-prompt-for-encryption|rcirc-put-nick-channel|rcirc-rebuild-tree|rcirc-record-activity|rcirc-remove-nick-channel|rcirc-reschedule-timeout|rcirc-send-ctcp|rcirc-send-input|rcirc-send-message|rcirc-send-privmsg|rcirc-send-string|rcirc-sentinel|rcirc-server-name|rcirc-set-changed|rcirc-short-buffer-name|rcirc-sort-nicknames-join|rcirc-split-activity|rcirc-split-message|rcirc-switch-to-server-buffer|rcirc-target-buffer|rcirc-toggle-ignore-buffer-activity|rcirc-toggle-low-priority|rcirc-track-minor-mode|rcirc-update-activity-string|rcirc-update-prompt|rcirc-update-short-buffer-names|rcirc-user-nick|rcirc-view-log-file|rcirc-visible-buffers|rcirc-window-configuration-change-1|rcirc-window-configuration-change|rcirc|re-builder-unload-function|re-search-backward-lax-whitespace|re-search-forward-lax-whitespace|read--expression|read-abbrev-file|read-all-face-attributes|read-buffer-file-coding-system|read-buffer-to-switch|read-char-by-name|read-charset|read-cookie|read-envvar-name|read-extended-command|read-face-and-attribute|read-face-attribute|read-face-font|read-face-name|read-feature|read-file-name--defaults|read-file-name-default|read-file-name-internal|read-from-whole-string|read-hiragana-string|read-input|read-language-name|read-multilingual-string|read-number|read-regexp-suggestions|reb-assert-buffer-in-window|reb-auto-update|reb-change-syntax|reb-change-target-buffer|reb-color-display-p|reb-cook-regexp|reb-copy|reb-count-subexps|reb-delete-overlays|reb-display-subexp|reb-do-update|reb-empty-regexp|reb-enter-subexp-mode|reb-force-update|reb-initialize-buffer|reb-insert-regexp|reb-kill-buffer|reb-lisp-mode|reb-lisp-syntax-p|reb-mode-buffer-p|reb-mode-common|reb-mode|reb-next-match|reb-prev-match|reb-quit-subexp-mode|reb-quit|reb-read-regexp|reb-show-subexp|reb-target-binding|reb-toggle-case|reb-update-modestring|reb-update-overlays|reb-update-regexp|rebuild-mail-abbrevs|recentf-add-file|recentf-apply-filename-handlers|recentf-apply-menu-filter|recentf-arrange-by-dir|recentf-arrange-by-mode|recentf-arrange-by-rule|recentf-auto-cleanup|recentf-build-mode-rules|recentf-cancel-dialog|recentf-cleanup|recentf-dialog-goto-first|recentf-dialog-mode|recentf-dialog|recentf-digit-shortcut-command-name|recentf-dir-rule|recentf-directory-compare|recentf-dump-variable|recentf-edit-list-select|recentf-edit-list-validate|recentf-edit-list|recentf-elements|recentf-enabled-p|recentf-expand-file-name|recentf-file-name-nondir|recentf-filter-changer-select|recentf-filter-changer|recentf-hide-menu|recentf-include-p|recentf-indirect-mode-rule|recentf-keep-default-predicate|recentf-keep-p|recentf-load-list|recentf-make-default-menu-element|recentf-make-menu-element|recentf-make-menu-items??|recentf-match-rule|recentf-menu-bar|recentf-menu-customization-changed|recentf-menu-element-item|recentf-menu-element-value|recentf-menu-elements)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:rmail-output-body-to-file|rmail-output-to-rmail-buffer|rmail-output|rmail-parse-url|rmail-perm-variables|rmail-pop-to-buffer|rmail-previous-labeled-message|rmail-previous-message|rmail-previous-same-subject|rmail-previous-undeleted-message|rmail-probe|rmail-quit|rmail-read-label|rmail-redecode-body|rmail-reply|rmail-require-mime-maybe|rmail-resend|rmail-restore-desktop-buffer|rmail-retry-failure|rmail-revert|rmail-search-backwards|rmail-search-message|rmail-search|rmail-select-summary|rmail-set-attribute-1|rmail-set-attribute|rmail-set-header-1|rmail-set-header|rmail-set-message-counters-counter|rmail-set-message-counters|rmail-set-message-deleted-p|rmail-set-remote-password|rmail-show-message-1|rmail-show-message|rmail-simplified-subject-regexp|rmail-simplified-subject|rmail-sort-by-author|rmail-sort-by-correspondent|rmail-sort-by-date|rmail-sort-by-labels|rmail-sort-by-lines|rmail-sort-by-recipient|rmail-sort-by-subject|rmail-speedbar-buttons??|rmail-speedbar-find-file|rmail-speedbar-move-message-to-folder-on-line|rmail-speedbar-move-message|rmail-start-mail|rmail-summary-by-labels|rmail-summary-by-recipients|rmail-summary-by-regexp|rmail-summary-by-senders|rmail-summary-by-topic|rmail-summary-displayed|rmail-summary-exists|rmail-summary|rmail-swap-buffers-maybe|rmail-swap-buffers|rmail-toggle-header|rmail-undelete-previous-message|rmail-unfontify-buffer-function|rmail-unknown-mail-followup-to|rmail-unrmail-new-mail-maybe|rmail-unrmail-new-mail|rmail-update-summary|rmail-variables|rmail-view-buffer-kill-buffer-hook|rmail-what-message|rmail-widen-to-current-msgbeg|rmail-widen|rmail-write-region-annotate|rmail-yank-current-message|rmail|rng-c-load-schema|rng-nxml-mode-init|rng-validate-mode|rng-xsd-compile|robin-define-package|robin-modify-package|robin-use-package|rot13-other-window|rot13-region|rot13-string|rot13|rotate-yank-pointer|rotatef|round\\\\*|route|rsh|rst-minor-mode|rst-mode|ruby--at-indentation-p|ruby--detect-encoding|ruby--electric-indent-p|ruby--encoding-comment-required-p|ruby--insert-coding-comment|ruby--inverse-string-quote|ruby--string-region|ruby-accurate-end-of-block|ruby-add-log-current-method|ruby-backward-sexp|ruby-beginning-of-block|ruby-beginning-of-defun|ruby-beginning-of-indent|ruby-block-contains-point|ruby-brace-to-do-end|ruby-calculate-indent|ruby-current-indentation|ruby-deep-indent-paren-p|ruby-do-end-to-brace|ruby-end-of-block|ruby-end-of-defun|ruby-expr-beg|ruby-forward-sexp|ruby-forward-string|ruby-here-doc-end-match|ruby-imenu-create-index-in-block|ruby-imenu-create-index|ruby-in-ppss-context-p|ruby-indent-exp|ruby-indent-line|ruby-indent-size|ruby-indent-to|ruby-match-expression-expansion|ruby-mode-menu|ruby-mode-set-encoding|ruby-mode-variables|ruby-mode|ruby-move-to-block|ruby-parse-partial|ruby-parse-region|ruby-singleton-class-p|ruby-smie--args-separator-p|ruby-smie--at-dot-call|ruby-smie--backward-token|ruby-smie--bosp|ruby-smie--closing-pipe-p|ruby-smie--forward-token|ruby-smie--implicit-semi-p|ruby-smie--indent-to-stmt-p|ruby-smie--indent-to-stmt|ruby-smie--opening-pipe-p|ruby-smie--redundant-do-p|ruby-smie-rules|ruby-special-char-p|ruby-string-at-point-p|ruby-syntax-enclosing-percent-literal|ruby-syntax-expansion-allowed-p|ruby-syntax-propertize-expansions??|ruby-syntax-propertize-function|ruby-syntax-propertize-heredoc|ruby-syntax-propertize-percent-literal|ruby-toggle-block|ruby-toggle-string-quotes|ruler--save-header-line-format|ruler-mode-character-validate|ruler-mode-full-window-width|ruler-mode-mouse-add-tab-stop|ruler-mode-mouse-del-tab-stop|ruler-mode-mouse-drag-any-column-iteration|ruler-mode-mouse-drag-any-column|ruler-mode-mouse-grab-any-column|ruler-mode-mouse-set-left-margin|ruler-mode-mouse-set-right-margin|ruler-mode-ruler|ruler-mode-space|ruler-mode-toggle-show-tab-stops|ruler-mode-window-col|ruler-mode|run-dig|run-hook-wrapped|run-lisp|run-network-program|run-octave|run-prolog|run-python-internal|run-python|run-scheme|run-tcl|run-window-configuration-change-hook|run-window-scroll-functions|run-with-timer|rx-\\\\*\\\\*|rx-=|rx->=|rx-and|rx-any-condense-range|rx-any-delete-from-range|rx-any|rx-anything|rx-atomic-p|rx-backref|rx-category|rx-check-any-string|rx-check-any|rx-check-backref|rx-check-category|rx-check-not|rx-check|rx-eval|rx-form|rx-greedy|rx-group-if|rx-info|rx-kleene|rx-not-char|rx-not-syntax|rx-not|rx-or|rx-regexp|rx-repeat|rx-submatch-n|rx-submatch|rx-syntax|rx-to-string|rx-trans-forms|rx|rzgrep|safe-date-to-time|same-class-fast-p|same-class-p|sanitize-coding-system-list|sasl-anonymous-response|sasl-client-mechanism|sasl-client-name|sasl-client-properties|sasl-client-property|sasl-client-server|sasl-client-service|sasl-client-set-properties|sasl-client-set-property|sasl-error|sasl-find-mechanism|sasl-login-response-1|sasl-login-response-2|sasl-make-client|sasl-make-mechanism|sasl-mechanism-name|sasl-mechanism-steps|sasl-next-step|sasl-plain-response|sasl-read-passphrase|sasl-step-data|sasl-step-set-data|sasl-unique-id-function|sasl-unique-id-number-base36|sasl-unique-id|save-buffers-kill-emacs|save-buffers-kill-terminal|save-completions-to-file|save-place-alist-to-file|save-place-dired-hook|save-place-find-file-hook|save-place-forget-unreadable-files|save-place-kill-emacs-hook|save-place-to-alist|save-places-to-alist|savehist-autosave|savehist-install|savehist-load|savehist-minibuffer-hook|savehist-mode|savehist-printable|savehist-save|savehist-trim-history|savehist-uninstall|sc-S-cite-region-limit|sc-S-mail-header-nuke-list|sc-S-mail-nuke-mail-headers|sc-S-preferred-attribution-list|sc-S-preferred-header-style|sc-T-auto-fill-region|sc-T-confirm-always|sc-T-describe|sc-T-downcase|sc-T-electric-circular|sc-T-electric-references|sc-T-fixup-whitespace|sc-T-mail-nuke-blank-lines|sc-T-nested-citation|sc-T-use-only-preferences|sc-add-citation-level|sc-ask|sc-attribs-!-addresses|sc-attribs-%@-addresses|sc-attribs-<>-addresses|sc-attribs-chop-address|sc-attribs-chop-namestring|sc-attribs-emailname|sc-attribs-extract-namestring|sc-attribs-filter-namelist|sc-attribs-strip-initials|sc-cite-coerce-cited-line|sc-cite-coerce-dumb-citer|sc-cite-line|sc-cite-original|sc-cite-regexp|sc-cite-region|sc-describe|sc-electric-mode|sc-eref-abort|sc-eref-exit|sc-eref-goto|sc-eref-insert-selected|sc-eref-jump|sc-eref-next|sc-eref-prev|sc-eref-setn|sc-eref-show|sc-fill-if-different|sc-get-address|sc-guess-attribution|sc-guess-nesting|sc-hdr|sc-header-attributed-writes|sc-header-author-writes|sc-header-inarticle-writes|sc-header-on-said|sc-header-regarding-adds|sc-header-verbose|sc-insert-citation|sc-insert-reference|sc-mail-append-field|sc-mail-build-nuke-frame|sc-mail-check-from|sc-mail-cleanup-blank-lines|sc-mail-error-in-mail-field|sc-mail-fetch-field|sc-mail-field-query|sc-mail-field|sc-mail-nuke-continuation-line|sc-mail-nuke-header-line|sc-mail-nuke-line|sc-mail-process-headers|sc-make-citation|sc-minor-mode|sc-name-substring|sc-no-blank-line-or-header|sc-no-header|sc-open-line|sc-raw-mode-toggle|sc-recite-line|sc-recite-region|sc-scan-info-alist|sc-select-attribution|sc-set-variable|sc-setup-filladapt|sc-setvar-symbol|sc-toggle-fn|sc-toggle-symbol|sc-toggle-var|sc-uncite-line|sc-uncite-region|sc-valid-index-p|sc-whofrom|scan-buf-move-to-region|scan-buf-next-region|scan-buf-previous-region|scheme-compile-definition-and-go|scheme-compile-definition|scheme-compile-file|scheme-compile-region-and-go|scheme-compile-region|scheme-debugger-mode-commands|scheme-debugger-mode-initialize|scheme-debugger-mode|scheme-debugger-self-insert|scheme-expand-current-form|scheme-form-at-point|scheme-get-old-input|scheme-get-process|scheme-indent-function|scheme-input-filter|scheme-interaction-mode-commands|scheme-interaction-mode-initialize|scheme-interaction-mode|scheme-interactively-start-process|scheme-let-indent|scheme-load-file|scheme-mode-commands|scheme-mode-variables|scheme-mode|scheme-proc|scheme-send-definition-and-go|scheme-send-definition|scheme-send-last-sexp|scheme-send-region-and-go|scheme-send-region|scheme-start-file|scheme-syntax-propertize-sexp-comment|scheme-syntax-propertize|scheme-trace-procedure|scroll-all-beginning-of-buffer-all|scroll-all-check-to-scroll|scroll-all-end-of-buffer-all|scroll-all-function-all|scroll-all-mode|scroll-all-page-down-all|scroll-all-page-up-all|scroll-all-scroll-down-all|scroll-all-scroll-up-all|scroll-bar-columns|scroll-bar-drag-1|scroll-bar-drag-position|scroll-bar-drag|scroll-bar-horizontal-drag-1|scroll-bar-horizontal-drag|scroll-bar-lines|scroll-bar-maybe-set-window-start|scroll-bar-scroll-down|scroll-bar-scroll-up|scroll-bar-set-window-start|scroll-bar-toolkit-horizontal-scroll|scroll-bar-toolkit-scroll|scroll-down-line|scroll-lock-mode|scroll-other-window-down|scroll-up-line|scss-mode|scss-smie--not-interpolation-p|sdb|search-backward-lax-whitespace|search-backward-regexp|search-emacs-glossary|search-forward-lax-whitespace|search-forward-regexp|search-pages|search-unencodable-char|search|second|seconds-to-string|secrets-close-session|secrets-collection-handler|secrets-collection-path|secrets-create-collection|secrets-create-item|secrets-delete-alias|secrets-delete-collection|secrets-delete-item|secrets-empty-path|secrets-expand-collection|secrets-expand-item|secrets-get-alias|secrets-get-attributes??|secrets-get-collection-properties|secrets-get-collection-property|secrets-get-collections|secrets-get-item-properties|secrets-get-item-property|secrets-get-items|secrets-get-secret|secrets-item-path|secrets-list-collections|secrets-list-items|secrets-mode|secrets-open-session|secrets-prompt-handler|secrets-prompt|secrets-search-items|secrets-set-alias|secrets-show-collections|secrets-show-secrets|secrets-tree-widget-after-toggle-function|secrets-tree-widget-show-password|secrets-unlock-collection|secure-hash|select-frame-by-name|select-frame-set-input-focus|select-frame|select-message-coding-system|select-safe-coding-system-interactively|select-safe-coding-system|select-scheme|select-tags-table-mode|select-tags-table-quit|select-tags-table-select|select-tags-table|select-window|selected-frame|selected-window|self-insert-and-exit|self-insert-command|semantic--set-buffer-cache|semantic--tag-attributes-cdr|semantic--tag-copy-properties|semantic--tag-deep-copy-attributes|semantic--tag-deep-copy-tag-list|semantic--tag-deep-copy-value|semantic--tag-expand|semantic--tag-expanded-p|semantic--tag-find-parent-by-name|semantic--tag-get-property|semantic--tag-link-cache-to-buffer|semantic--tag-link-list-to-buffer|semantic--tag-link-to-buffer|semantic--tag-overlay-cdr|semantic--tag-properties-cdr|semantic--tag-put-property-no-side-effect|semantic--tag-put-property|semantic--tag-run-hooks|semantic--tag-set-overlay|semantic--tag-unlink-cache-from-buffer|semantic--tag-unlink-from-buffer|semantic--tag-unlink-list-from-buffer|semantic--umatched-syntax-needs-refresh-p|semantic-active-p|semantic-add-label|semantic-add-minor-mode|semantic-add-system-include|semantic-alias-obsolete|semantic-analyze-completion-at-point-function|semantic-analyze-current-context|semantic-analyze-current-tag|semantic-analyze-nolongprefix-completion-at-point-function|semantic-analyze-notc-completion-at-point-function|semantic-analyze-possible-completions|semantic-analyze-proto-impl-toggle|semantic-analyze-type-constants|semantic-assert-valid-token|semantic-bovinate-from-nonterminal-full|semantic-bovinate-from-nonterminal|semantic-bovinate-region-until-error|semantic-bovinate-stream|semantic-bovinate-toplevel|semantic-buffer-local-value|semantic-c-add-preprocessor-symbol|semantic-cache-data-post-command-hook|semantic-cache-data-to-buffer|semantic-calculate-scope|semantic-change-function|semantic-clean-token-of-unmatched-syntax|semantic-clean-unmatched-syntax-in-buffer|semantic-clean-unmatched-syntax-in-region|semantic-clear-parser-warnings|semantic-clear-toplevel-cache|semantic-clear-unmatched-syntax-cache|semantic-comment-lexer|semantic-complete-analyze-and-replace|semantic-complete-analyze-inline-idle|semantic-complete-analyze-inline|semantic-complete-inline-project|semantic-complete-jump-local-members|semantic-complete-jump-local|semantic-complete-jump|semantic-complete-self-insert|semantic-complete-symbol|semantic-create-imenu-index|semantic-create-tag-proxy|semantic-ctxt-current-mode|semantic-current-tag-parent|semantic-current-tag|semantic-customize-system-include-path|semantic-debug|semantic-decoration-include-visit|semantic-decoration-unparsed-include-do-reset)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)se(?:mantic-default-c-setup|mantic-default-elisp-setup|mantic-default-html-setup|mantic-default-make-setup|mantic-default-scheme-setup|mantic-default-texi-setup|mantic-delete-overlay-maybe|mantic-dependency-tag-file|mantic-describe-buffer-var-helper|mantic-describe-buffer|mantic-describe-tag|mantic-desktop-ignore-this-minor-mode|mantic-documentation-for-tag|mantic-dump-parser-warnings|mantic-edits-incremental-parser|mantic-elapsed-time|mantic-equivalent-tag-p|mantic-error-if-unparsed|mantic-event-window|mantic-exit-on-input|mantic-fetch-available-tags|mantic-fetch-tags-fast|mantic-fetch-tags|mantic-file-tag-table|mantic-file-token-stream|mantic-find-file-noselect|mantic-find-first-tag-by-name|mantic-find-tag-by-overlay-in-region|mantic-find-tag-by-overlay-next|mantic-find-tag-by-overlay-prev|mantic-find-tag-by-overlay|mantic-find-tag-for-completion|mantic-find-tag-parent-by-overlay|mantic-find-tags-by-scope-protection|mantic-find-tags-included|mantic-flatten-tags-table|mantic-flex-buffer|mantic-flex-end|mantic-flex-keyword-get|mantic-flex-keyword-p|mantic-flex-keyword-put|mantic-flex-keywords|mantic-flex-list|mantic-flex-make-keyword-table|mantic-flex-map-keywords|mantic-flex-start|mantic-flex-text|mantic-flex|mantic-force-refresh|mantic-foreign-tag-check|mantic-foreign-tag-invalid|mantic-foreign-tag-p|mantic-foreign-tag|mantic-format-tag-concise-prototype|mantic-format-tag-name|mantic-format-tag-prototype|mantic-format-tag-summarize|mantic-fw-add-edebug-spec|mantic-gcc-setup|mantic-get-cache-data|mantic-go-to-tag|mantic-highlight-edits-mode|mantic-highlight-edits-new-change-hook-fcn|mantic-highlight-func-highlight-current-tag|mantic-highlight-func-menu|mantic-highlight-func-mode|mantic-highlight-func-popup-menu|mantic-ia-complete-symbol-menu|mantic-ia-complete-symbol|mantic-ia-complete-tip|mantic-ia-describe-class|mantic-ia-fast-jump|mantic-ia-fast-mouse-jump|mantic-ia-show-doc|mantic-ia-show-summary|mantic-ia-show-variants|mantic-idle-completions-mode|mantic-idle-scheduler-mode|mantic-idle-summary-mode|mantic-insert-foreign-tag-change-log-mode|mantic-insert-foreign-tag-default|mantic-insert-foreign-tag-log-edit-mode|mantic-insert-foreign-tag|mantic-install-function-overrides|mantic-lex-beginning-of-line|mantic-lex-buffer|mantic-lex-catch-errors|mantic-lex-charquote|mantic-lex-close-paren|mantic-lex-comments-as-whitespace|mantic-lex-comments|mantic-lex-debug-break|mantic-lex-debug|mantic-lex-default-action|mantic-lex-end-block|mantic-lex-expand-block-specs|mantic-lex-highlight-token|mantic-lex-ignore-comments|mantic-lex-ignore-newline|mantic-lex-ignore-whitespace|mantic-lex-init|mantic-lex-keyword-get|mantic-lex-keyword-invalid|mantic-lex-keyword-p|mantic-lex-keyword-put|mantic-lex-keyword-set|mantic-lex-keyword-symbol|mantic-lex-keyword-value|mantic-lex-keywords|mantic-lex-list|mantic-lex-make-keyword-table|mantic-lex-make-type-table|mantic-lex-map-keywords|mantic-lex-map-symbols|mantic-lex-map-types|mantic-lex-newline-as-whitespace|mantic-lex-newline|mantic-lex-number|mantic-lex-one-token|mantic-lex-open-paren|mantic-lex-paren-or-list|mantic-lex-preset-default-types|mantic-lex-punctuation-type|mantic-lex-punctuation|mantic-lex-push-token|mantic-lex-spp-table-write-slot-value|mantic-lex-start-block|mantic-lex-string|mantic-lex-symbol-or-keyword|mantic-lex-test|mantic-lex-token-bounds|mantic-lex-token-class|mantic-lex-token-end|mantic-lex-token-p|mantic-lex-token-start|mantic-lex-token-text|mantic-lex-token-with-text-p|mantic-lex-token-without-text-p|mantic-lex-token|mantic-lex-type-get|mantic-lex-type-invalid|mantic-lex-type-p|mantic-lex-type-put|mantic-lex-type-set|mantic-lex-type-symbol|mantic-lex-type-value|mantic-lex-types|mantic-lex-unterminated-syntax-detected|mantic-lex-unterminated-syntax-protection|mantic-lex-whitespace|mantic-lex|mantic-make-local-hook|mantic-make-overlay|mantic-map-buffers|mantic-map-mode-buffers|mantic-menu-item|mantic-mode-line-update|mantic-mode|mantic-narrow-to-tag|mantic-new-buffer-fcn|mantic-next-unmatched-syntax|mantic-obtain-foreign-tag|mantic-overlay-buffer|mantic-overlay-delete|mantic-overlay-end|mantic-overlay-get|mantic-overlay-lists|mantic-overlay-live-p|mantic-overlay-move|mantic-overlay-next-change|mantic-overlay-p|mantic-overlay-previous-change|mantic-overlay-properties|mantic-overlay-put|mantic-overlay-start|mantic-overlays-at|mantic-overlays-in|mantic-overload-symbol-from-function|mantic-parse-changes-default|mantic-parse-changes|mantic-parse-region-default|mantic-parse-region|mantic-parse-stream-default|mantic-parse-stream|mantic-parse-tree-needs-rebuild-p|mantic-parse-tree-needs-update-p|mantic-parse-tree-set-needs-rebuild|mantic-parse-tree-set-needs-update|mantic-parse-tree-set-up-to-date|mantic-parse-tree-unparseable-p|mantic-parse-tree-unparseable|mantic-parse-tree-up-to-date-p|mantic-parser-working-message|mantic-popup-menu|mantic-push-parser-warning|mantic-read-event|mantic-read-function|mantic-read-symbol|mantic-read-type|mantic-read-variable|mantic-refresh-tags-safe|mantic-remove-system-include|mantic-repeat-parse-whole-stream|mantic-require-version|mantic-reset-system-include|mantic-run-mode-hooks|mantic-safe|mantic-sanity-check|mantic-set-unmatched-syntax-cache|mantic-show-label|mantic-show-parser-state-auto-marker|mantic-show-parser-state-marker|mantic-show-parser-state-mode|mantic-show-unmatched-lex-tokens-fetch|mantic-show-unmatched-syntax-mode|mantic-show-unmatched-syntax-next|mantic-show-unmatched-syntax|mantic-showing-unmatched-syntax-p|mantic-simple-lexer|mantic-something-to-stream|mantic-something-to-tag-table|mantic-speedbar-analysis|mantic-stickyfunc-fetch-stickyline|mantic-stickyfunc-menu|mantic-stickyfunc-mode|mantic-stickyfunc-popup-menu|mantic-stickyfunc-tag-to-stick|mantic-subst-char-in-string|mantic-symref-find-file-references-by-name|mantic-symref-find-references-by-name|mantic-symref-find-tags-by-completion|mantic-symref-find-tags-by-name|mantic-symref-find-tags-by-regexp|mantic-symref-find-text|mantic-symref-regexp|mantic-symref-symbol|mantic-symref-tool-cscope-child-p|mantic-symref-tool-cscope-list-p|mantic-symref-tool-cscope-p|mantic-symref-tool-cscope|mantic-symref-tool-global-child-p|mantic-symref-tool-global-list-p|mantic-symref-tool-global-p|mantic-symref-tool-global|mantic-symref-tool-grep-child-p|mantic-symref-tool-grep-list-p|mantic-symref-tool-grep-p|mantic-symref-tool-grep|mantic-symref-tool-idutils-child-p|mantic-symref-tool-idutils-list-p|mantic-symref-tool-idutils-p|mantic-symref-tool-idutils|mantic-symref|mantic-tag-add-hook|mantic-tag-alias-class|mantic-tag-alias-definition|mantic-tag-attributes|mantic-tag-bounds|mantic-tag-buffer|mantic-tag-children-compatibility|mantic-tag-class|mantic-tag-clone|mantic-tag-code-detail|mantic-tag-components-default|mantic-tag-components-with-overlays-default|mantic-tag-components-with-overlays|mantic-tag-components|mantic-tag-copy|mantic-tag-deep-copy-one-tag|mantic-tag-docstring|mantic-tag-end|mantic-tag-external-member-parent|mantic-tag-faux-p|mantic-tag-file-name|mantic-tag-function-arguments|mantic-tag-function-constructor-p|mantic-tag-function-destructor-p|mantic-tag-function-parent|mantic-tag-function-throws|mantic-tag-get-attribute|mantic-tag-in-buffer-p|mantic-tag-include-filename-default|mantic-tag-include-filename|mantic-tag-include-system-p|mantic-tag-make-assoc-list|mantic-tag-make-plist|mantic-tag-mode|mantic-tag-modifiers|mantic-tag-name|mantic-tag-named-parent|mantic-tag-new-alias|mantic-tag-new-code|mantic-tag-new-function|mantic-tag-new-include|mantic-tag-new-package|mantic-tag-new-type|mantic-tag-new-variable|mantic-tag-of-class-p|mantic-tag-of-type-p|mantic-tag-overlay|mantic-tag-p|mantic-tag-properties|mantic-tag-prototype-p|mantic-tag-put-attribute-no-side-effect|mantic-tag-put-attribute|mantic-tag-remove-hook|mantic-tag-resolve-proxy|mantic-tag-set-bounds|mantic-tag-set-faux|mantic-tag-set-name|mantic-tag-set-proxy|mantic-tag-similar-with-subtags-p|mantic-tag-start|mantic-tag-type-compound-p|mantic-tag-type-interfaces|mantic-tag-type-members|mantic-tag-type-superclass-protection|mantic-tag-type-superclasses|mantic-tag-type|mantic-tag-variable-constant-p|mantic-tag-variable-default|mantic-tag-with-position-p|mantic-tag-write-list-slot-value|mantic-tag|mantic-test-data-cache|mantic-throw-on-input|mantic-toggle-minor-mode-globally|mantic-token-type-parent|mantic-unmatched-syntax-overlay-p|mantic-unmatched-syntax-tokens|mantic-varalias-obsolete|mantic-with-buffer-narrowed-to-current-tag|mantic-with-buffer-narrowed-to-tag|manticdb-database-typecache-child-p|manticdb-database-typecache-list-p|manticdb-database-typecache-p|manticdb-database-typecache|manticdb-enable-gnu-global-databases|manticdb-file-table-object|manticdb-find-adebug-lost-includes|manticdb-find-result-length|manticdb-find-result-nth-in-buffer|manticdb-find-result-nth|manticdb-find-table-for-include|manticdb-find-tags-by-class|manticdb-find-tags-by-name-regexp|manticdb-find-tags-by-name|manticdb-find-tags-for-completion|manticdb-find-test-translate-path|manticdb-find-translate-path|manticdb-minor-mode-p|manticdb-project-database-file-child-p|manticdb-project-database-file-list-p|manticdb-project-database-file-p|manticdb-project-database-file|manticdb-strip-find-results|manticdb-typecache-child-p|manticdb-typecache-find|manticdb-typecache-list-p|manticdb-typecache-p|manticdb-typecache|manticdb-without-unloaded-file-searches|nator-copy-tag-to-register|nator-copy-tag|nator-go-to-up-reference|nator-kill-tag|nator-next-tag|nator-previous-tag|nator-transpose-tags-down|nator-transpose-tags-up|nator-yank-tag|nd-invisible|nd-process-next-char|nd-region|nd-string|ndmail-query-once|ndmail-query-user-about-smtp|ndmail-send-it|ndmail-sync-aliases|ndmail-user-agent-compose|ntence-at-point|q--count-successive|q--drop-list|q--drop-while-list|q--take-list|q--take-while-list|q-concatenate|q-contains-p|q-copy|q-count|q-do|q-doseq|q-drop-while|q-drop|q-each|q-elt|q-empty-p|q-every-p|q-filter|q-length|q-map|q-reduce|q-remove|q-reverse|q-some-p|q-sort|q-subseq|q-take-while|q-take|q-uniq|rial-mode-line-config-menu-1|rial-mode-line-config-menu|rial-mode-line-speed-menu-1|rial-mode-line-speed-menu|rial-nice-speed-history|rial-port-is-file-p|rial-read-name|rial-read-speed|rial-speed|rial-supported-or-barf|rial-update-config-menu|rial-update-speed-menu|rver--on-display-p|rver-add-client|rver-buffer-done|rver-clients-with|rver-create-tty-frame|rver-create-window-system-frame|rver-delete-client|rver-done|rver-edit|rver-ensure-safe-dir|rver-eval-and-print|rver-eval-at|rver-execute-continuation|rver-execute|rver-force-delete|rver-force-stop|rver-generate-key|rver-get-auth-key|rver-goto-line-column|rver-goto-toplevel|rver-handle-delete-frame|rver-handle-suspend-tty|rver-kill-buffer|rver-kill-emacs-query-function|rver-log|rver-mode|rver-process-filter|rver-quote-arg|rver-reply-print|rver-return-error|rver-running-p|rver-save-buffers-kill-terminal|rver-select-display|rver-send-string|rver-sentinel|rver-start|rver-switch-buffer|rver-temp-file-p|rver-unload-function|rver-unquote-arg|rver-unselect-display|rver-visit-files|rver-with-environment|s\\\\+|s--advice-copy-region-as-kill|s--advice-yank|s--cell|s--clean-!|s--clean-_|s--letref|s--local-printer|s--locprn-compiled--cmacro|s--locprn-compiled|s--locprn-def--cmacro|s--locprn-def|s--locprn-local-printer-list--cmacro|s--locprn-local-printer-list|s--locprn-number--cmacro|s--locprn-number|s--locprn-p--cmacro|s--locprn-p|s--metaprogramming)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)s(?:es--time-check|es-adjust-print-width|es-append-row-jump-first-column|es-aset-with-undo|es-average|es-begin-change|es-calculate-cell|es-call-printer|es-cell--formula--cmacro|es-cell--formula|es-cell--printer--cmacro|es-cell--printer|es-cell--properties--cmacro|es-cell--properties|es-cell--references--cmacro|es-cell--references|es-cell--symbol--cmacro|es-cell--symbol|es-cell-formula|es-cell-p|es-cell-printer|es-cell-property-pop|es-cell-property|es-cell-references|es-cell-set-formula|es-cell-symbol|es-cell-value|es-center-span|es-center|es-check-curcell|es-cleanup|es-clear-cell-backward|es-clear-cell-forward|es-clear-cell|es-col-printer|es-col-width|es-column-letter|es-column-printers|es-column-widths|es-command-hook|es-copy-region-helper|es-copy-region|es-create-cell-symbol|es-create-cell-variable-range|es-create-cell-variable|es-create-header-string|es-dashfill-span|es-dashfill|es-decode-cell-symbol|es-default-printer|es-define-local-printer|es-delete-blanks|es-delete-column|es-delete-line|es-delete-row|es-destroy-cell-variable-range|es-dorange|es-edit-cell|es-end-of-line|es-export-keymap|es-export-tab|es-export-tsf|es-export-tsv|es-file-format-extend-parameter-list|es-formula-record|es-formula-references|es-forward-or-insert|es-get-cell|es-goto-data|es-goto-print|es-header-line-menu|es-header-row|es-in-print-area|es-initialize-Dijkstra-attempt|es-insert-column|es-insert-range-click|es-insert-range|es-insert-row|es-insert-ses-range-click|es-insert-ses-range|es-is-cell-sym-p|es-jump-safe|es-jump|es-kill-override|es-load|es-local-printer-compile|es-make-cell--cmacro|es-make-cell|es-make-local-printer-info|es-mark-column|es-mark-row|es-menu|es-mode-print-map|es-mode|es-print-cell-new-width|es-print-cell|es-printer-record|es-printer-validate|es-range|es-read-cell-printer|es-read-cell|es-read-column-printer|es-read-default-printer|es-read-printer|es-read-symbol|es-recalculate-all|es-recalculate-cell|es-reconstruct-all|es-refresh-local-printer|es-relocate-all|es-relocate-formula|es-relocate-range|es-relocate-symbol|es-rename-cell|es-renarrow-buffer|es-repair-cell-reference-all|es-replace-name-in-formula|es-reprint-all|es-reset-header-string|es-safe-formula|es-safe-printer|es-select|es-set-cell|es-set-column-width|es-set-curcell|es-set-header-row|es-set-localvars|es-set-parameter|es-set-with-undo|es-setter-with-undo|es-setup|es-sort-column-click|es-sort-column|es-sym-rowcol|es-tildefill-span|es-truncate-cell|es-unload-function|es-unsafe|es-unset-header-row|es-update-cells|es-vector-delete|es-vector-insert|es-warn-unsafe|es-widen|es-write-cells|es-yank-cells|es-yank-one|es-yank-pop|es-yank-resize|es-yank-tsf|et-allout-regexp|et-auto-mode-0|et-auto-mode-1|et-background-color|et-border-color|et-buffer-file-coding-system|et-buffer-process-coding-system|et-cdabbrev-buffer|et-charset-plist|et-clipboard-coding-system|et-cmpl-prefix-entry-head|et-cmpl-prefix-entry-tail|et-coding-priority|et-comment-column|et-completion-last-use-time|et-completion-num-uses|et-completion-string|et-cursor-color|et-default-coding-systems|et-default-font|et-default-toplevel-value|et-difference|et-display-table-and-terminal-coding-system|et-downcase-syntax|et-exclusive-or|et-face-attribute-from-resource|et-face-attributes-from-resources|et-face-background-pixmap|et-face-bold-p|et-face-doc-string|et-face-documentation|et-face-inverse-video-p|et-face-italic-p|et-face-underline-p|et-file-name-coding-system|et-fill-column|et-fill-prefix|et-font-encoding|et-foreground-color|et-frame-font|et-frame-name|et-fringe-mode-1|et-fringe-mode|et-fringe-style|et-goal-column|et-hard-newline-properties|et-input-interrupt-mode|et-input-meta-mode|et-justification-center|et-justification-full|et-justification-left|et-justification-none|et-justification-right|et-justification|et-keyboard-coding-system-internal|et-language-environment-charset|et-language-environment-coding-systems|et-language-environment-input-method|et-language-environment-nonascii-translation|et-language-environment-unibyte|et-language-environment|et-language-info-alist|et-language-info-internal|et-language-info|et-locale-environment|et-mark-command|et-mode-local-parent|et-mouse-color|et-nested-alist|et-next-selection-coding-system|et-output-flow-control|et-page-delimiter|et-process-filter-multibyte|et-process-inherit-coding-system-flag|et-process-window-size|et-quit-char|et-rcirc-decode-coding-system|et-rcirc-encode-coding-system|et-rmail-inbox-list|et-safe-terminal-coding-system-internal|et-scroll-bar-mode|et-selection-coding-system|et-selective-display|et-slot-value|et-temporary-overlay-map|et-terminal-coding-system-internal|et-time-zone-rule|et-upcase-syntax|et-variable|et-viper-state-in-major-mode|et-window-buffer-start-and-point|et-window-dot|et-window-new-normal|et-window-new-pixel|et-window-new-total|et-window-redisplay-end-trigger|et-window-text-height|et-woman-file-regexp|etenv-internal|etq-mode-local|etup-chinese-environment-map|etup-cyrillic-environment-map|etup-default-fontset|etup-ethiopic-environment-internal|etup-european-environment-map|etup-indian-environment-map|etup-japanese-environment-internal|etup-korean-environment-internal|etup-specified-language-environment|eventh|exp-at-point|gml-at-indentation-p|gml-attributes|gml-auto-attributes|gml-beginning-of-tag|gml-calculate-indent|gml-close-tag|gml-comment-indent-new-line|gml-comment-indent|gml-delete-tag|gml-electric-tag-pair-before-change-function|gml-electric-tag-pair-flush-overlays|gml-electric-tag-pair-mode|gml-empty-tag-p|gml-fill-nobreak|gml-get-context|gml-guess-indent|gml-html-meta-auto-coding-function|gml-indent-line|gml-lexical-context|gml-looking-back-at|gml-make-syntax-table|gml-make-tag--cmacro|gml-make-tag|gml-maybe-end-tag|gml-maybe-name-self|gml-mode-facemenu-add-face-function|gml-mode-flyspell-verify|gml-mode|gml-name-8bit-mode|gml-name-char|gml-name-self|gml-namify-char|gml-parse-dtd|gml-parse-tag-backward|gml-parse-tag-name|gml-point-entered|gml-pretty-print|gml-quote|gml-show-context|gml-skip-tag-backward|gml-skip-tag-forward|gml-slash-matching|gml-slash|gml-tag-end--cmacro|gml-tag-end|gml-tag-help|gml-tag-name--cmacro|gml-tag-name|gml-tag-p--cmacro|gml-tag-p|gml-tag-start--cmacro|gml-tag-start|gml-tag-text-p|gml-tag-type--cmacro|gml-tag-type|gml-tag|gml-tags-invisible|gml-unclosed-tag-p|gml-validate|gml-value|gml-xml-auto-coding-function|gml-xml-guess|h--cmd-completion-table|h--inside-noncommand-expression|h--maybe-here-document|h--vars-before-point|h-add-completer|h-add|h-after-hack-local-variables|h-append-backslash|h-append|h-assignment|h-backslash-region|h-basic-indent-line|h-beginning-of-command|h-blink|h-calculate-indent|h-canonicalize-shell|h-case|h-cd-here|h-check-rule|h-completion-at-point-function|h-current-defun-name|h-debug|h-delete-backslash|h-electric-here-document-mode|h-end-of-command|h-execute-region|h-feature|h-find-prev-matching|h-find-prev-switch|h-font-lock-backslash-quote|h-font-lock-keywords-1|h-font-lock-keywords-2|h-font-lock-keywords|h-font-lock-open-heredoc|h-font-lock-paren|h-font-lock-quoted-subshell|h-font-lock-syntactic-face-function|h-for|h-function|h-get-indent-info|h-get-indent-var-for-line|h-get-kw|h-get-word|h-goto-match-for-done|h-goto-matching-case|h-goto-matching-if|h-guess-basic-offset|h-handle-after-case-label|h-handle-prev-case-alt-end|h-handle-prev-case|h-handle-prev-do|h-handle-prev-done|h-handle-prev-else|h-handle-prev-esac|h-handle-prev-fi|h-handle-prev-if|h-handle-prev-open|h-handle-prev-rc-case|h-handle-prev-then|h-handle-this-close|h-handle-this-do|h-handle-this-done|h-handle-this-else|h-handle-this-esac|h-handle-this-fi|h-handle-this-rc-case|h-handle-this-then|h-help-string-for-variable|h-if|h-in-comment-or-string|h-indent-line|h-indexed-loop|h-is-quoted-p|h-learn-buffer-indent|h-learn-line-indent|h-load-style|h-make-vars-local|h-mark-init|h-mark-line|h-maybe-here-document|h-mkword-regexpr|h-mode-syntax-table|h-mode|h-modify|h-must-support-indent|h-name-style|h-prev-line|h-prev-stmt|h-prev-thing|h-quoted-p|h-read-variable|h-remember-variable|h-repeat|h-reset-indent-vars-to-global-values|h-safe-forward-sexp|h-save-styles-to-buffer|h-select|h-send-line-or-region-and-step|h-send-text|h-set-indent|h-set-shell|h-set-var-value|h-shell-initialize-variables|h-shell-process|h-show-indent|h-show-shell|h-smie--continuation-start-indent|h-smie--default-backward-token|h-smie--default-forward-token|h-smie--keyword-p|h-smie--looking-back-at-continuation-p|h-smie--newline-semi-p|h-smie--rc-after-special-arg-p|h-smie--rc-newline-semi-p|h-smie--sh-keyword-in-p|h-smie--sh-keyword-p|h-smie-rc-backward-token|h-smie-rc-forward-token|h-smie-rc-rules|h-smie-sh-backward-token|h-smie-sh-forward-token|h-smie-sh-rules|h-syntax-propertize-function|h-syntax-propertize-here-doc|h-this-is-a-continuation|h-tmp-file|h-until|h-var-value|h-while-getopts|h-while|ha1|hadow-add-to-todo|hadow-cancel|hadow-cluster-name|hadow-cluster-primary|hadow-cluster-regexp|hadow-contract-file-name|hadow-copy-files??|hadow-define-cluster|hadow-define-literal-group|hadow-define-regexp-group|hadow-expand-cluster-in-file-name|hadow-expand-file-name|hadow-file-match|hadow-find|hadow-get-cluster|hadow-get-user|hadow-initialize|hadow-insert-var|hadow-invalidate-hashtable|hadow-local-file|hadow-make-cluster|hadow-make-fullname|hadow-make-group|hadow-parse-fullname|hadow-parse-name|hadow-read-files|hadow-read-site|hadow-regexp-superquote|hadow-remove-from-todo|hadow-replace-name-component|hadow-same-site|hadow-save-buffers-kill-emacs|hadow-save-todo-file|hadow-set-cluster|hadow-shadows-of-1|hadow-shadows-of|hadow-shadows|hadow-site-cluster|hadow-site-match|hadow-site-primary|hadow-suffix|hadow-union|hadow-write-info-file|hadow-write-todo-file|hadowfile-unload-function|hared-initialize|hell--command-completion-data|hell--parse-pcomplete-arguments|hell--requote-argument|hell--unquote&requote-argument|hell--unquote-argument|hell-apply-ansi-color|hell-backward-command|hell-c-a-p-replace-by-expanded-directory|hell-cd|hell-command-completion-function|hell-command-completion|hell-command-on-region|hell-command-sentinel|hell-command|hell-completion-vars|hell-copy-environment-variable|hell-directory-tracker|hell-dirstack-message|hell-dirtrack-mode|hell-dirtrack-toggle|hell-dynamic-complete-command|hell-dynamic-complete-environment-variable|hell-dynamic-complete-filename|hell-environment-variable-completion|hell-extract-num|hell-filename-completion|hell-filter-ctrl-a-ctrl-b|hell-forward-command|hell-match-partial-variable|hell-mode|hell-prefixed-directory-name|hell-process-cd|hell-process-popd|hell-process-pushd|hell-quote-wildcard-pattern|hell-reapply-ansi-color|hell-replace-by-expanded-directory|hell-resync-dirs|hell-script-mode|hell-snarf-envar|hell-strip-ctrl-m|hell-unquote-argument|hell-write-history-on-exit|hell|hiftf|hould-error|hould-not|hould|how-all|how-branches|how-buffer|how-children|how-entry|how-ifdef-block|how-ifdefs|how-paren--categorize-paren|how-paren--default|how-paren--locate-near-paren|how-paren--unescaped-p|how-paren-function|how-paren-mode|how-subtree|hr--extract-best-source|hr--get-media-pref|hr-add-font|hr-browse-image|hr-browse-url|hr-buffer-width|hr-char-breakable-p--inliner|hr-char-breakable-p|hr-char-kinsoku-bol-p--inliner|hr-char-kinsoku-bol-p|hr-char-kinsoku-eol-p--inliner|hr-char-kinsoku-eol-p|hr-char-nospace-p--inliner|hr-char-nospace-p|hr-color->hexadecimal|hr-color-check|hr-color-hsl-to-rgb-fractions|hr-color-hue-to-rgb|hr-color-relative-to-absolute|hr-color-set-minimum-interval|hr-color-visible|hr-colorize-region|hr-column-specs|hr-copy-url|hr-count|hr-descend|hr-dom-print|hr-dom-to-xml|hr-encode-url|hr-ensure-newline|hr-ensure-paragraph|hr-expand-newlines|hr-expand-url|hr-find-fill-point|hr-fold-text|hr-fontize-dom|hr-generic|hr-get-image-data|hr-heading|hr-image-displayer|hr-image-fetched|hr-image-from-data|hr-indent)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)s(?:hr-insert-image|hr-insert-table-ruler|hr-insert-table|hr-insert|hr-make-table-1|hr-make-table|hr-max-columns|hr-mouse-browse-url|hr-next-link|hr-parse-base|hr-parse-image-data|hr-parse-style|hr-previous-link|hr-previous-newline-padding-width|hr-pro-rate-columns|hr-put-image|hr-remove-trailing-whitespace|hr-render-buffer|hr-render-region|hr-render-td|hr-rescale-image|hr-save-contents|hr-show-alt-text|hr-store-contents|hr-table-widths|hr-tag-a|hr-tag-audio|hr-tag-b|hr-tag-base|hr-tag-blockquote|hr-tag-body|hr-tag-br|hr-tag-comment|hr-tag-dd|hr-tag-del|hr-tag-div|hr-tag-dl|hr-tag-dt|hr-tag-em|hr-tag-font|hr-tag-h1|hr-tag-h2|hr-tag-h3|hr-tag-h4|hr-tag-h5|hr-tag-h6|hr-tag-hr|hr-tag-i|hr-tag-img|hr-tag-label|hr-tag-li|hr-tag-object|hr-tag-ol|hr-tag-p|hr-tag-pre|hr-tag-s|hr-tag-script|hr-tag-span|hr-tag-strong|hr-tag-style|hr-tag-sub|hr-tag-sup|hr-tag-svg|hr-tag-table-1|hr-tag-table|hr-tag-title|hr-tag-ul??|hr-tag-video|hr-urlify|hr-zoom-image|hrink-window-horizontally|hrink-window|huffle-vector|ieve-manage|ieve-mode|ieve-upload-and-bury|ieve-upload-and-kill|ieve-upload|ignum|imula-backward-up-level|imula-calculate-indent|imula-context|imula-electric-keyword|imula-electric-label|imula-expand-keyword|imula-expand-stdproc|imula-find-do-match|imula-find-if|imula-find-inspect|imula-forward-down-level|imula-forward-up-level|imula-goto-definition|imula-indent-command|imula-indent-exp|imula-indent-line|imula-inside-parens|imula-install-standard-abbrevs|imula-mode|imula-next-statement|imula-popup-menu|imula-previous-statement|imula-search-backward|imula-search-forward|imula-skip-comment-backward|imula-skip-comment-forward|imula-submit-bug-report|ixth|ize-indication-mode|keleton-insert|keleton-internal-1|keleton-internal-list|keleton-pair-insert-maybe|keleton-proxy-new|keleton-read|kip-line-prefix|litex-mode|lot-boundp|lot-exists-p|lot-makeunbound|lot-missing|lot-unbound|lot-value|mbclient-list-shares|mbclient-mode|mbclient|merge--get-marker|merge-apply-resolution-patch|merge-auto-combine|merge-auto-leave|merge-batch-resolve|merge-check|merge-combine-with-next|merge-conflict-overlay|merge-context-menu|merge-diff-base-mine|merge-diff-base-other|merge-diff-mine-other|merge-diff|merge-ediff|merge-ensure-match|merge-find-conflict|merge-get-current|merge-keep-all|merge-keep-base|merge-keep-current|merge-keep-mine|merge-keep-n|merge-keep-other|merge-kill-current|merge-makeup-conflict|merge-match-conflict|merge-mode-menu|merge-mode|merge-next|merge-popup-context-menu|merge-prev|merge-refine-chopup-region|merge-refine-forward|merge-refine-highlight-change|merge-refine-subst|merge-refine|merge-remove-props|merge-resolve--extract-comment|merge-resolve--normalize|merge-resolve-all|merge-resolve|merge-start-session|merge-swap|mie--associative-p|mie--matching-block-data|mie--next-indent-change|mie--opener/closer-at-point|mie-auto-fill|mie-backward-sexp-command|mie-backward-sexp|mie-blink-matching-check|mie-blink-matching-open|mie-bnf--classify|mie-bnf--closer-alist|mie-bnf--set-class|mie-config--advice|mie-config--get-trace|mie-config--guess-1|mie-config--guess-value|mie-config--guess|mie-config--mode-hook|mie-config--setter|mie-debug--describe-cycle|mie-debug--prec2-cycle|mie-default-backward-token|mie-default-forward-token|mie-edebug|mie-forward-sexp-command|mie-forward-sexp|mie-indent--bolp-1|mie-indent--bolp|mie-indent--hanging-p|mie-indent--offset|mie-indent--parent|mie-indent--rule-1|mie-indent--rule|mie-indent--separator-outdent|mie-indent-after-keyword|mie-indent-backward-token|mie-indent-bob|mie-indent-calculate|mie-indent-close|mie-indent-comment-close|mie-indent-comment-continue|mie-indent-comment-inside|mie-indent-comment|mie-indent-exps|mie-indent-fixindent|mie-indent-forward-token|mie-indent-inside-string|mie-indent-keyword|mie-indent-line|mie-indent-virtual|mie-next-sexp|mie-op-left|mie-op-right|mie-set-prec2tab|miley-buffer|miley-region|mtpmail-command-or-throw|mtpmail-cred-cert|mtpmail-cred-key|mtpmail-cred-passwd|mtpmail-cred-port|mtpmail-cred-server|mtpmail-cred-user|mtpmail-deduce-address-list|mtpmail-do-bcc|mtpmail-find-credentials|mtpmail-fqdn|mtpmail-intersection|mtpmail-maybe-append-domain|mtpmail-ok-p|mtpmail-process-filter|mtpmail-query-smtp-server|mtpmail-read-response|mtpmail-response-code|mtpmail-response-text|mtpmail-send-command|mtpmail-send-data-1|mtpmail-send-data|mtpmail-send-it|mtpmail-send-queued-mail|mtpmail-try-auth-methods??|mtpmail-user-mail-address|mtpmail-via-smtp|nake-active-p|nake-display-options|nake-end-game|nake-final-x-velocity|nake-final-y-velocity|nake-init-buffer|nake-mode|nake-move-down|nake-move-left|nake-move-right|nake-move-up|nake-pause-game|nake-reset-game|nake-start-game|nake-update-game|nake-update-score|nake-update-velocity|nake|narf-spooks|nmp-calculate-indent|nmp-common-mode|nmp-completing-read|nmp-indent-line|nmp-mode-imenu-create-index|nmp-mode|nmpv2-mode|oap-array-type-element-type--cmacro|oap-array-type-element-type|oap-array-type-name--cmacro|oap-array-type-name|oap-array-type-namespace-tag--cmacro|oap-array-type-namespace-tag|oap-array-type-p--cmacro|oap-array-type-p|oap-basic-type-kind--cmacro|oap-basic-type-kind|oap-basic-type-name--cmacro|oap-basic-type-name|oap-basic-type-namespace-tag--cmacro|oap-basic-type-namespace-tag|oap-basic-type-p--cmacro|oap-basic-type-p|oap-binding-name--cmacro|oap-binding-name|oap-binding-namespace-tag--cmacro|oap-binding-namespace-tag|oap-binding-operations--cmacro|oap-binding-operations|oap-binding-p--cmacro|oap-binding-p|oap-binding-port-type--cmacro|oap-binding-port-type|oap-bound-operation-operation--cmacro|oap-bound-operation-operation|oap-bound-operation-p--cmacro|oap-bound-operation-p|oap-bound-operation-soap-action--cmacro|oap-bound-operation-soap-action|oap-bound-operation-use--cmacro|oap-bound-operation-use|oap-create-envelope|oap-decode-any-type|oap-decode-array-type|oap-decode-array|oap-decode-basic-type|oap-decode-sequence-type|oap-decode-type|oap-default-soapenc-types|oap-default-xsd-types|oap-element-fq-name|oap-element-name--cmacro|oap-element-name|oap-element-namespace-tag--cmacro|oap-element-namespace-tag|oap-element-p--cmacro|oap-element-p|oap-encode-array-type|oap-encode-basic-type|oap-encode-body|oap-encode-sequence-type|oap-encode-simple-type|oap-encode-value|oap-extract-xmlns|oap-get-target-namespace|oap-invoke|oap-l2fq|oap-l2wk|oap-load-wsdl-from-url|oap-load-wsdl|oap-message-name--cmacro|oap-message-name|oap-message-namespace-tag--cmacro|oap-message-namespace-tag|oap-message-p--cmacro|oap-message-p|oap-message-parts--cmacro|oap-message-parts|oap-namespace-elements--cmacro|oap-namespace-elements|oap-namespace-get|oap-namespace-link-name--cmacro|oap-namespace-link-name|oap-namespace-link-namespace-tag--cmacro|oap-namespace-link-namespace-tag|oap-namespace-link-p--cmacro|oap-namespace-link-p|oap-namespace-link-target--cmacro|oap-namespace-link-target|oap-namespace-name--cmacro|oap-namespace-name|oap-namespace-p--cmacro|oap-namespace-p|oap-namespace-put-link|oap-namespace-put|oap-operation-faults--cmacro|oap-operation-faults|oap-operation-input--cmacro|oap-operation-input|oap-operation-name--cmacro|oap-operation-name|oap-operation-namespace-tag--cmacro|oap-operation-namespace-tag|oap-operation-output--cmacro|oap-operation-output|oap-operation-p--cmacro|oap-operation-p|oap-operation-parameter-order--cmacro|oap-operation-parameter-order|oap-parse-binding|oap-parse-complex-type-complex-content|oap-parse-complex-type-sequence|oap-parse-complex-type|oap-parse-envelope|oap-parse-message|oap-parse-operation|oap-parse-port-type|oap-parse-response|oap-parse-schema-element|oap-parse-schema|oap-parse-sequence|oap-parse-simple-type|oap-parse-wsdl|oap-port-binding--cmacro|oap-port-binding|oap-port-name--cmacro|oap-port-name|oap-port-namespace-tag--cmacro|oap-port-namespace-tag|oap-port-p--cmacro|oap-port-p|oap-port-service-url--cmacro|oap-port-service-url|oap-port-type-name--cmacro|oap-port-type-name|oap-port-type-namespace-tag--cmacro|oap-port-type-namespace-tag|oap-port-type-operations--cmacro|oap-port-type-operations|oap-port-type-p--cmacro|oap-port-type-p|oap-resolve-references-for-array-type|oap-resolve-references-for-binding|oap-resolve-references-for-element|oap-resolve-references-for-message|oap-resolve-references-for-operation|oap-resolve-references-for-port|oap-resolve-references-for-sequence-type|oap-resolve-references-for-simple-type|oap-sequence-element-multiple\\\\?--cmacro|oap-sequence-element-multiple\\\\?|oap-sequence-element-name--cmacro|oap-sequence-element-name|oap-sequence-element-nillable\\\\?--cmacro|oap-sequence-element-nillable\\\\?|oap-sequence-element-p--cmacro|oap-sequence-element-p|oap-sequence-element-type--cmacro|oap-sequence-element-type|oap-sequence-type-elements--cmacro|oap-sequence-type-elements|oap-sequence-type-name--cmacro|oap-sequence-type-name|oap-sequence-type-namespace-tag--cmacro|oap-sequence-type-namespace-tag|oap-sequence-type-p--cmacro|oap-sequence-type-p|oap-sequence-type-parent--cmacro|oap-sequence-type-parent|oap-simple-type-enumeration--cmacro|oap-simple-type-enumeration|oap-simple-type-kind--cmacro|oap-simple-type-kind|oap-simple-type-name--cmacro|oap-simple-type-name|oap-simple-type-namespace-tag--cmacro|oap-simple-type-namespace-tag|oap-simple-type-p--cmacro|oap-simple-type-p|oap-type-p|oap-warning|oap-with-local-xmlns|oap-wk2l|oap-wsdl-add-alias|oap-wsdl-add-namespace|oap-wsdl-alias-table--cmacro|oap-wsdl-alias-table|oap-wsdl-find-namespace|oap-wsdl-get|oap-wsdl-namespaces--cmacro|oap-wsdl-namespaces|oap-wsdl-origin--cmacro|oap-wsdl-origin|oap-wsdl-p--cmacro|oap-wsdl-p|oap-wsdl-ports--cmacro|oap-wsdl-ports|oap-wsdl-resolve-references|oap-xml-get-attribute-or-nil1|oap-xml-get-children1|ocks-build-auth-list|ocks-chap-auth|ocks-cram-auth|ocks-filter|ocks-find-route|ocks-find-services-entry|ocks-gssapi-auth|ocks-nslookup-host|ocks-open-connection|ocks-open-network-stream|ocks-original-open-network-stream|ocks-parse-services|ocks-register-authentication-method|ocks-send-command|ocks-split-string|ocks-unregister-authentication-method|ocks-username/password-auth-filter|ocks-username/password-auth|ocks-wait-for-state-change|olicit-char-in-string|olitaire-build-mode-line|olitaire-center-point|olitaire-check|olitaire-current-line|olitaire-do-check|olitaire-down|olitaire-insert-board|olitaire-left|olitaire-mode|olitaire-move-down|olitaire-move-left|olitaire-move-right|olitaire-move-up|olitaire-move|olitaire-possible-move|olitaire-right|olitaire-solve|olitaire-undo|olitaire-up|olitaire|ome-window|ome|ort\\\\*|ort-build-lists|ort-charsets|ort-coding-systems|ort-fields-1|ort-pages-buffer|ort-pages-in-region|ort-regexp-fields-next-record|ort-reorder-buffer|ort-skip-fields|oundex|paces-string|pam-initialize|pam-report-agentize|pam-report-deagentize|pam-report-process-queue|pam-report-url-ping-mm-url|pam-report-url-to-file|pecial-display-p|pecial-display-popup-frame|peedbar-add-expansion-list|peedbar-add-ignored-directory-regexp|peedbar-add-ignored-path-regexp|peedbar-add-indicator|peedbar-add-localized-speedbar-support|peedbar-add-mode-functions-list|peedbar-add-supported-extension|peedbar-backward-list|peedbar-buffer-buttons-engine|peedbar-buffer-buttons-temp|peedbar-buffer-buttons|peedbar-buffer-click|peedbar-buffer-kill-buffer|peedbar-buffer-revert-buffer|peedbar-buffers-item-info|peedbar-buffers-line-directory|peedbar-buffers-line-path|peedbar-buffers-tail-notes|peedbar-center-buffer-smartly|peedbar-change-expand-button-char|peedbar-change-initial-expansion-list|peedbar-check-obj-this-line|peedbar-check-objects|peedbar-check-read-only|peedbar-check-vc-this-line|peedbar-check-vc|peedbar-clear-current-file|peedbar-click|peedbar-contract-line-descendants|peedbar-contract-line|peedbar-create-directory)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:speedbar-create-tag-hierarchy|speedbar-current-frame|speedbar-customize|speedbar-default-directory-list|speedbar-delete-overlay|speedbar-delete-subblock|speedbar-dir-follow|speedbar-directory-buttons-follow|speedbar-directory-buttons|speedbar-directory-line|speedbar-dired|speedbar-disable-update|speedbar-do-function-pointer|speedbar-edit-line|speedbar-enable-update|speedbar-expand-line-descendants|speedbar-expand-line|speedbar-extension-list-to-regex|speedbar-extract-one-symbol|speedbar-fetch-dynamic-etags|speedbar-fetch-dynamic-imenu|speedbar-fetch-dynamic-tags|speedbar-fetch-replacement-function|speedbar-file-lists|speedbar-files-item-info|speedbar-files-line-directory|speedbar-find-file-in-frame|speedbar-find-file|speedbar-find-selected-file|speedbar-flush-expand-line|speedbar-forward-list|speedbar-frame-mode|speedbar-frame-reposition-smartly|speedbar-frame-width|speedbar-generic-item-info|speedbar-generic-list-group-p|speedbar-generic-list-positioned-group-p|speedbar-generic-list-tag-p|speedbar-get-focus|speedbar-goto-this-file|speedbar-handle-delete-frame|speedbar-highlight-one-tag-line|speedbar-image-dump|speedbar-initial-expansion-list|speedbar-initial-keymap|speedbar-initial-menu|speedbar-initial-stealthy-functions|speedbar-insert-button|speedbar-insert-etags-list|speedbar-insert-files-at-point|speedbar-insert-generic-list|speedbar-insert-image-button-maybe|speedbar-insert-imenu-list|speedbar-insert-separator|speedbar-item-byte-compile|speedbar-item-copy|speedbar-item-delete|speedbar-item-info-file-helper|speedbar-item-info-tag-helper|speedbar-item-info|speedbar-item-load|speedbar-item-object-delete|speedbar-item-rename|speedbar-line-directory|speedbar-line-file|speedbar-line-path|speedbar-line-text|speedbar-line-token|speedbar-make-button|speedbar-make-overlay|speedbar-make-specialized-keymap|speedbar-make-tag-line|speedbar-maybe-add-localized-support|speedbar-maybee-jump-to-attached-frame|speedbar-message|speedbar-mode-line-update|speedbar-mode|speedbar-mouse-item-info|speedbar-navigate-list|speedbar-next|speedbar-overlay-put|speedbar-parse-c-or-c\\\\+\\\\+tag|speedbar-parse-tex-string|speedbar-path-line|speedbar-position-cursor-on-line|speedbar-prefix-group-tag-hierarchy|speedbar-prev|speedbar-recenter-to-top|speedbar-recenter|speedbar-reconfigure-keymaps|speedbar-refresh|speedbar-remove-localized-speedbar-support|speedbar-reset-scanners|speedbar-restricted-move|speedbar-restricted-next|speedbar-restricted-prev|speedbar-scroll-down|speedbar-scroll-up|speedbar-select-attached-frame|speedbar-set-mode-line-format|speedbar-set-timer|speedbar-show-info-under-mouse|speedbar-simple-group-tag-hierarchy|speedbar-sort-tag-hierarchy|speedbar-stealthy-updates|speedbar-tag-expand|speedbar-tag-file|speedbar-tag-find|speedbar-this-file-in-vc|speedbar-timer-fn|speedbar-toggle-etags|speedbar-toggle-images|speedbar-toggle-line-expansion|speedbar-toggle-show-all-files|speedbar-toggle-sorting|speedbar-toggle-updates|speedbar-track-mouse|speedbar-trim-words-tag-hierarchy|speedbar-try-completion|speedbar-unhighlight-one-tag-line|speedbar-up-directory|speedbar-update-contents|speedbar-update-current-file|speedbar-update-directory-contents|speedbar-update-localized-contents|speedbar-update-special-contents|speedbar-vc-check-dir-p|speedbar-with-attached-buffer|speedbar-with-writable|speedbar-y-or-n-p|speedbar|split-char|split-line|split-window-horizontally|split-window-internal|split-window-vertically|spook|sql--completion-table|sql--make-help-docstring|sql--oracle-show-reserved-words|sql-accumulate-and-indent|sql-add-product-keywords|sql-add-product|sql-beginning-of-statement|sql-buffer-live-p|sql-build-completions-1|sql-build-completions|sql-comint-db2|sql-comint-informix|sql-comint-ingres|sql-comint-interbase|sql-comint-linter|sql-comint-ms|sql-comint-mysql|sql-comint-oracle|sql-comint-postgres|sql-comint-solid|sql-comint-sqlite|sql-comint-sybase|sql-comint-vertica|sql-comint|sql-connect|sql-connection-menu-filter|sql-copy-column|sql-db2|sql-default-value|sql-del-product|sql-end-of-statement|sql-ends-with-prompt-re|sql-escape-newlines-filter|sql-execute-feature|sql-execute|sql-find-sqli-buffer|sql-font-lock-keywords-builder|sql-for-each-login|sql-get-login-ext|sql-get-login|sql-get-product-feature|sql-help-list-products|sql-help|sql-highlight-ansi-keywords|sql-highlight-db2-keywords|sql-highlight-informix-keywords|sql-highlight-ingres-keywords|sql-highlight-interbase-keywords|sql-highlight-linter-keywords|sql-highlight-ms-keywords|sql-highlight-mysql-keywords|sql-highlight-oracle-keywords|sql-highlight-postgres-keywords|sql-highlight-product|sql-highlight-solid-keywords|sql-highlight-sqlite-keywords|sql-highlight-sybase-keywords|sql-highlight-vertica-keywords|sql-informix|sql-ingres|sql-input-sender|sql-interactive-mode-menu|sql-interactive-mode|sql-interactive-remove-continuation-prompt|sql-interbase|sql-linter|sql-list-all|sql-list-table|sql-magic-go|sql-magic-semicolon|sql-make-alternate-buffer-name|sql-mode-menu|sql-mode|sql-ms|sql-mysql|sql-oracle-completion-object|sql-oracle-list-all|sql-oracle-list-table|sql-oracle-restore-settings|sql-oracle-save-settings|sql-oracle|sql-placeholders-filter|sql-postgres-completion-object|sql-postgres|sql-product-font-lock-syntax-alist|sql-product-font-lock|sql-product-interactive|sql-product-syntax-table|sql-read-connection|sql-read-product|sql-read-table-name|sql-redirect-one|sql-redirect-value|sql-redirect|sql-regexp-abbrev-list|sql-regexp-abbrev|sql-remove-tabs-filter|sql-rename-buffer|sql-save-connection|sql-send-buffer|sql-send-line-and-next|sql-send-magic-terminator|sql-send-paragraph|sql-send-region|sql-send-string|sql-set-product-feature|sql-set-product|sql-set-sqli-buffer-generally|sql-set-sqli-buffer|sql-show-sqli-buffer|sql-solid|sql-sqlite-completion-object|sql-sqlite|sql-starts-with-prompt-re|sql-statement-regexp|sql-stop|sql-str-literal|sql-sybase|sql-toggle-pop-to-buffer-after-send-region|sql-vertica|squeeze-bidi-context-1|squeeze-bidi-context|srecode-compile-templates|srecode-document-insert-comment|srecode-document-insert-function-comment|srecode-document-insert-group-comments|srecode-document-insert-variable-one-line-comment|srecode-get-maps|srecode-insert-getset|srecode-insert-prototype-expansion|srecode-insert|srecode-minor-mode|srecode-semantic-handle-:c|srecode-semantic-handle-:cpp|srecode-semantic-handle-:el-custom|srecode-semantic-handle-:el|srecode-semantic-handle-:java|srecode-semantic-handle-:srt|srecode-semantic-handle-:texi|srecode-semantic-handle-:texitag|srecode-template-mode|srecode-template-setup-parser|srt-mode|stable-sort|standard-class|standard-display-8bit|standard-display-ascii|standard-display-cyrillic-translit|standard-display-default|standard-display-european-internal|standard-display-european|standard-display-g1|standard-display-graphic|standard-display-underline|start-kbd-macro|start-of-paragraph-text|start-scheme|starttls-any-program-available|starttls-available-p|starttls-negotiate-gnutls|starttls-negotiate|starttls-open-stream-gnutls|starttls-open-stream|starttls-set-process-query-on-exit-flag|startup-echo-area-message|straight-use-package|store-kbd-macro-event|string-blank-p|string-collate-equalp|string-collate-lessp|string-empty-p|string-insert-rectangle|string-join|string-make-multibyte|string-make-unibyte|string-rectangle-line|string-rectangle|string-remove-prefix|string-remove-suffix|string-reverse|string-to-list|string-to-vector|string-trim-left|string-trim-right|string-trim|strokes-alphabetic-lessp|strokes-button-press-event-p|strokes-button-release-event-p|strokes-click-p|strokes-compose-complex-stroke|strokes-decode-buffer|strokes-define-stroke|strokes-describe-stroke|strokes-distance-squared|strokes-do-complex-stroke|strokes-do-stroke|strokes-eliminate-consecutive-redundancies|strokes-encode-buffer|strokes-event-closest-point-1|strokes-event-closest-point|strokes-execute-stroke|strokes-fill-current-buffer-with-whitespace|strokes-fill-stroke|strokes-get-grid-position|strokes-get-stroke-extent|strokes-global-set-stroke-string|strokes-global-set-stroke|strokes-help|strokes-lift-p|strokes-list-strokes|strokes-load-user-strokes|strokes-match-stroke|strokes-mode|strokes-mouse-event-p|strokes-prompt-user-save-strokes|strokes-rate-stroke|strokes-read-complex-stroke|strokes-read-stroke|strokes-remassoc|strokes-renormalize-to-grid|strokes-report-bug|strokes-square|strokes-toggle-strokes-buffer|strokes-unload-function|strokes-unset-last-stroke|strokes-update-window-configuration|strokes-window-configuration-changed-p|strokes-xpm-char-bit-p|strokes-xpm-char-on-p|strokes-xpm-decode-char|strokes-xpm-encode-length-as-string|strokes-xpm-for-compressed-string|strokes-xpm-for-stroke|strokes-xpm-to-compressed-string|studlify-buffer|studlify-region|studlify-word|sublis|subr-name|subregexp-context-p|subseq|subsetp|subst-char-in-string|subst-if-not|subst-if|subst|substitute-env-in-file-name|substitute-env-vars|substitute-if-not|substitute-if|substitute-key-definition-key|substitute|subtract-time|subword-mode|sunrise-sunset|superword-mode|suspicious-object|svref|switch-to-completions|switch-to-lisp|switch-to-prolog|switch-to-scheme|switch-to-tcl|symbol-at-point|symbol-before-point-for-complete|symbol-before-point|symbol-macrolet|symbol-under-or-before-point|symbol-under-point|syntax-ppss-after-change-function|syntax-ppss-context|syntax-ppss-debug|syntax-ppss-depth|syntax-ppss-stats|syntax-propertize--shift-groups|syntax-propertize-multiline|syntax-propertize-precompile-rules|syntax-propertize-rules|syntax-propertize-via-font-lock|syntax-propertize-wholelines|syntax-propertize|t-mouse-mode|tabify|table--at-cell-p|table--buffer-substring-and-trim|table--cancel-timer|table--cell-blank-str|table--cell-can-span-p|table--cell-can-split-horizontally-p|table--cell-can-split-vertically-p|table--cell-horizontal-char-p|table--cell-insert-char|table--cell-list-to-coord-list|table--cell-to-coord|table--char-in-str-at-column|table--copy-coordinate|table--create-growing-space-below|table--current-line|table--detect-cell-alignment|table--editable-cell-p|table--fill-region-strictly|table--fill-region|table--find-row-column|table--finish-delayed-tasks|table--generate-source-cell-contents|table--generate-source-cells-in-a-row|table--generate-source-epilogue|table--generate-source-prologue|table--generate-source-scan-lines|table--generate-source-scan-rows|table--get-cell-justify-property|table--get-cell-valign-property|table--get-coordinate|table--get-last-command|table--get-property|table--goto-coordinate|table--horizontal-cell-list|table--horizontally-shift-above-and-below|table--insert-rectangle|table--justify-cell-contents|table--line-column-position|table--log|table--make-cell-map|table--measure-max-width|table--min-coord-list|table--multiply-string|table--offset-coordinate|table--point-entered-cell-function|table--point-in-cell-p|table--point-left-cell-function|table--probe-cell-left-up|table--probe-cell-right-bottom|table--probe-cell|table--put-cell-content-property|table--put-cell-face-property|table--put-cell-indicator-property|table--put-cell-justify-property|table--put-cell-keymap-property|table--put-cell-line-property|table--put-cell-point-entered/left-property|table--put-cell-property|table--put-cell-rear-nonsticky|table--put-cell-valign-property|table--put-property|table--query-justification|table--read-from-minibuffer|table--region-in-cell-p|table--remove-blank-lines|table--remove-cell-properties|table--remove-eol-spaces|table--row-column-insertion-point-p|table--set-timer|table--spacify-frame|table--str-index-at-column|table--string-to-number-list|table--test-cell-list|table--transcoord-cache-to-table|table--transcoord-table-to-cache|table--uniform-list-p|table--untabify-line|table--untabify|table--update-cell-face|table--update-cell-heightened|table--update-cell-widened|table--update-cell|table--valign|table--vertical-cell-list|table--warn-incompatibility|table-backward-cell|table-capture|table-delete-column|table-delete-row|table-fixed-width-mode|table-forward-cell|table-function|table-generate-source|table-get-source-info|table-global-menu-map|table-goto-bottom-left-corner|table-goto-bottom-right-corner|table-goto-top-left-corner|table-goto-top-right-corner|table-heighten-cell|table-insert-column|table-insert-row-column|table-insert-row|table-insert-sequence|table-insert|table-justify-cell|table-justify-column|table-justify-row|table-justify|table-narrow-cell|table-put-source-info|table-query-dimension|table-recognize-cell|table-recognize-region)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)t(?:able-recognize-table|able-recognize|able-release|able-shorten-cell|able-span-cell|able-split-cell-horizontally|able-split-cell-vertically|able-split-cell|able-unrecognize-cell|able-unrecognize-region|able-unrecognize-table|able-unrecognize|able-widen-cell|able-with-cache-buffer|abulated-list--column-number|abulated-list--sort-by-column-name|abulated-list-col-sort|abulated-list-delete-entry|abulated-list-entry-size->|abulated-list-get-entry|abulated-list-get-id|abulated-list-print-col|abulated-list-print-entry|abulated-list-print-fake-header|abulated-list-put-tag|abulated-list-revert|abulated-list-set-col|abulated-list-sort|ag-any-match-p|ag-exact-file-name-match-p|ag-exact-match-p|ag-file-name-match-p|ag-find-file-of-tag-noselect|ag-find-file-of-tag|ag-implicit-name-match-p|ag-partial-file-name-match-p|ag-re-match-p|ag-symbol-match-p|ag-word-match-p|ags-apropos|ags-complete-tags-table-file|ags-completion-at-point-function|ags-completion-table|ags-expand-table-name|ags-included-tables|ags-lazy-completion-table|ags-loop-continue|ags-loop-eval|ags-next-table|ags-query-replace|ags-recognize-empty-tags-table|ags-reset-tags-tables|ags-search|ags-table-check-computed-list|ags-table-extend-computed-list|ags-table-files|ags-table-including|ags-table-list-member|ags-table-mode|ags-verify-table|ags-with-face|ai-viet-composition-function|ailp|alk-add-display|alk-connect|alk-disconnect|alk-handle-delete-frame|alk-split-up-frame|alk-update-buffers|alk|ar--check-descriptor|ar--extract|ar-alter-one-field|ar-change-major-mode-hook|ar-chgrp-entry|ar-chmod-entry|ar-chown-entry|ar-clear-modification-flags|ar-clip-time-string|ar-copy|ar-current-descriptor|ar-data-swapped-p|ar-display-other-window|ar-expunge-internal|ar-expunge|ar-extract-other-window|ar-extract|ar-file-name-handler|ar-flag-deleted|ar-get-descriptor|ar-get-file-descriptor|ar-grind-file-mode|ar-header-block-check-checksum|ar-header-block-checksum|ar-header-block-summarize|ar-header-block-tokenize|ar-header-checksum--cmacro|ar-header-checksum|ar-header-data-end|ar-header-data-start--cmacro|ar-header-data-start|ar-header-date--cmacro|ar-header-date|ar-header-dmaj--cmacro|ar-header-dmaj|ar-header-dmin--cmacro|ar-header-dmin|ar-header-gid--cmacro|ar-header-gid|ar-header-gname--cmacro|ar-header-gname|ar-header-header-start--cmacro|ar-header-header-start|ar-header-link-name--cmacro|ar-header-link-name|ar-header-link-type--cmacro|ar-header-link-type|ar-header-magic--cmacro|ar-header-magic|ar-header-mode--cmacro|ar-header-mode|ar-header-name--cmacro|ar-header-name|ar-header-p--cmacro|ar-header-p|ar-header-size--cmacro|ar-header-size|ar-header-uid--cmacro|ar-header-uid|ar-header-uname--cmacro|ar-header-uname|ar-mode-kill-buffer-hook|ar-mode-revert|ar-mode|ar-mouse-extract|ar-next-line|ar-octal-time|ar-pad-to-blocksize|ar-parse-octal-integer-safe|ar-parse-octal-integer|ar-parse-octal-long-integer|ar-previous-line|ar-read-file-name|ar-rename-entry|ar-roundup-512|ar-subfile-mode|ar-subfile-save-buffer|ar-summarize-buffer|ar-swap-data|ar-unflag-backwards|ar-unflag|ar-untar-buffer|ar-view|ar-write-region-annotate|cl-add-log-defun|cl-auto-fill-mode|cl-beginning-of-defun|cl-calculate-indent|cl-comment-indent|cl-current-word|cl-electric-brace|cl-electric-char|cl-electric-hash|cl-end-of-defun|cl-eval-defun|cl-eval-region|cl-figure-type|cl-files-alist|cl-filter|cl-guess-application|cl-hairy-scan-for-comment|cl-hashify-buffer|cl-help-on-word|cl-help-snarf-commands|cl-in-comment|cl-indent-command|cl-indent-exp|cl-indent-for-comment|cl-indent-line|cl-load-file|cl-mark-defun|cl-mark|cl-mode-menu|cl-mode|cl-outline-level|cl-popup-menu|cl-quote|cl-real-command-p|cl-real-comment-p|cl-reread-help-files|cl-restart-with-file|cl-send-region|cl-send-string|cl-set-font-lock-keywords|cl-set-proc-regexp|cl-uncomment-region|cl-word-no-props|ear-off-window|elnet-c-z|elnet-check-software-type-initialize|elnet-filter|elnet-initial-filter|elnet-interrupt-subjob|elnet-mode|elnet-send-input|elnet-simple-send|elnet|emp-buffer-resize-mode|emp-buffer-window-setup|emp-buffer-window-show|empo-add-tag|empo-backward-mark|empo-build-collection|empo-complete-tag|empo-define-template|empo-display-completions|empo-expand-if-complete|empo-find-match-string|empo-forget-insertions|empo-forward-mark|empo-insert-mark|empo-insert-named|empo-insert-prompt-compat|empo-insert-prompt|empo-insert-template|empo-insert|empo-invalidate-collection|empo-is-user-element|empo-lookup-named|empo-process-and-insert-string|empo-save-named|empo-template-dcl-f\\\\$context|empo-template-dcl-f\\\\$csid|empo-template-dcl-f\\\\$cvsi|empo-template-dcl-f\\\\$cvtime|empo-template-dcl-f\\\\$cvui|empo-template-dcl-f\\\\$device|empo-template-dcl-f\\\\$directory|empo-template-dcl-f\\\\$edit|empo-template-dcl-f\\\\$element|empo-template-dcl-f\\\\$environment|empo-template-dcl-f\\\\$extract|empo-template-dcl-f\\\\$fao|empo-template-dcl-f\\\\$file_attributes|empo-template-dcl-f\\\\$getdvi|empo-template-dcl-f\\\\$getjpi|empo-template-dcl-f\\\\$getqui|empo-template-dcl-f\\\\$getsyi|empo-template-dcl-f\\\\$identifier|empo-template-dcl-f\\\\$integer|empo-template-dcl-f\\\\$length|empo-template-dcl-f\\\\$locate|empo-template-dcl-f\\\\$message|empo-template-dcl-f\\\\$mode|empo-template-dcl-f\\\\$parse|empo-template-dcl-f\\\\$pid|empo-template-dcl-f\\\\$privilege|empo-template-dcl-f\\\\$process|empo-template-dcl-f\\\\$search|empo-template-dcl-f\\\\$setprv|empo-template-dcl-f\\\\$string|empo-template-dcl-f\\\\$time|empo-template-dcl-f\\\\$trnlnm|empo-template-dcl-f\\\\$type|empo-template-dcl-f\\\\$user|empo-template-dcl-f\\\\$verify|empo-template-snmp-object-type|empo-template-snmp-table-type|empo-template-snmpv2-object-type|empo-template-snmpv2-table-type|empo-template-snmpv2-textual-convention|empo-use-tag-list|enth|erm-adjust-current-row-cache|erm-after-pmark-p|erm-ansi-make-term|erm-ansi-reset|erm-args|erm-arguments|erm-backward-matching-input|erm-bol|erm-buffer-vertical-motion|erm-char-mode|erm-check-kill-echo-list|erm-check-proc|erm-check-size|erm-check-source|erm-command-hook|erm-continue-subjob|erm-copy-old-input|erm-current-column|erm-current-row|erm-delchar-or-maybe-eof|erm-delete-chars|erm-delete-lines|erm-delim-arg|erm-directory|erm-display-buffer-line|erm-display-line|erm-down|erm-dynamic-complete-as-filename|erm-dynamic-complete-filename|erm-dynamic-complete|erm-dynamic-list-completions|erm-dynamic-list-filename-completions|erm-dynamic-list-input-ring|erm-dynamic-simple-complete|erm-emulate-terminal|erm-erase-in-display|erm-erase-in-line|erm-exec-1|erm-exec|erm-extract-string|erm-forward-matching-input|erm-get-old-input-default|erm-get-source|erm-goto-home|erm-goto|erm-handle-ansi-escape|erm-handle-ansi-terminal-messages|erm-handle-colors-array|erm-handle-deferred-scroll|erm-handle-exit|erm-handle-scroll|erm-handling-pager|erm-horizontal-column|erm-how-many-region|erm-in-char-mode|erm-in-line-mode|erm-insert-char|erm-insert-lines|erm-insert-spaces|erm-interrupt-subjob|erm-kill-input|erm-kill-output|erm-kill-subjob|erm-line-mode|erm-magic-space|erm-match-partial-filename|erm-mode|erm-mouse-paste|erm-move-columns|erm-next-input|erm-next-matching-input-from-input|erm-next-matching-input|erm-next-prompt|erm-pager-back-line|erm-pager-back-page|erm-pager-bob|erm-pager-continue|erm-pager-disable|erm-pager-discard|erm-pager-enabled??|erm-pager-eob|erm-pager-help|erm-pager-line|erm-pager-menu|erm-pager-page|erm-pager-toggle|erm-paste|erm-previous-input-string|erm-previous-input|erm-previous-matching-input-from-input|erm-previous-matching-input-string-position|erm-previous-matching-input-string|erm-previous-matching-input|erm-previous-prompt|erm-proc-query|erm-process-pager|erm-quit-subjob|erm-read-input-ring|erm-read-noecho|erm-regexp-arg|erm-replace-by-expanded-filename|erm-replace-by-expanded-history-before-point|erm-replace-by-expanded-history|erm-reset-size|erm-reset-terminal|erm-search-arg|erm-search-start|erm-send-backspace|erm-send-del|erm-send-down|erm-send-end|erm-send-eof|erm-send-home|erm-send-input|erm-send-insert|erm-send-invisible|erm-send-left|erm-send-next|erm-send-prior|erm-send-raw-meta|erm-send-raw-string|erm-send-raw|erm-send-region|erm-send-right|erm-send-string|erm-send-up|erm-sentinel|erm-set-escape-char|erm-set-scroll-region|erm-show-maximum-output|erm-show-output|erm-signals-menu|erm-simple-send|erm-skip-prompt|erm-source-default|erm-start-line-column|erm-start-output-log|erm-stop-output-log|erm-stop-subjob|erm-terminal-menu|erm-terminal-pos|erm-unwrap-line|erm-update-mode-line|erm-using-alternate-sub-buffer|erm-vertical-motion|erm-window-width|erm-within-quotes|erm-word|erm-write-input-ring|erm|estcover-1value|estcover-after|estcover-end|estcover-enter|estcover-mark|estcover-read|estcover-reinstrument-compose|estcover-reinstrument-list|estcover-reinstrument|estcover-this-defun|estcover-unmark-all|etris-active-p|etris-default-update-speed-function|etris-display-options|etris-draw-border-p|etris-draw-next-shape|etris-draw-score|etris-draw-shape|etris-end-game|etris-erase-shape|etris-full-row|etris-get-shape-cell|etris-get-tick-period|etris-init-buffer|etris-mode|etris-move-bottom|etris-move-left|etris-move-right|etris-new-shape|etris-pause-game|etris-reset-game|etris-rotate-next|etris-rotate-prev|etris-shape-done|etris-shape-rotations|etris-shape-width|etris-shift-down|etris-shift-row|etris-start-game|etris-test-shape|etris-update-game|etris-update-score|etris|ex-alt-print|ex-append|ex-bibtex-file|ex-buffer|ex-categorize-whitespace|ex-close-latex-block|ex-cmd-doc-view|ex-command-active-p|ex-command-executable|ex-common-initialization|ex-compile-default|ex-compile|ex-count-words|ex-current-defun-name|ex-define-common-keys|ex-delete-last-temp-files|ex-display-shell|ex-env-mark|ex-executable-exists-p|ex-expand-files|ex-facemenu-add-face-function|ex-feed-input|ex-file|ex-font-lock-append-prop|ex-font-lock-match-suscript|ex-font-lock-suscript|ex-font-lock-syntactic-face-function|ex-font-lock-unfontify-region|ex-font-lock-verb|ex-format-cmd|ex-generate-zap-file-name|ex-goto-last-unclosed-latex-block|ex-guess-main-file|ex-guess-mode|ex-insert-braces|ex-insert-quote|ex-kill-job|ex-last-unended-begin|ex-last-unended-eparen|ex-latex-block|ex-main-file|ex-mode-flyspell-verify|ex-mode-internal|ex-mode|ex-next-unmatched-end|ex-next-unmatched-eparen|ex-old-error-file-name|ex-print|ex-recenter-output-buffer|ex-region-header|ex-region|ex-search-noncomment|ex-send-command|ex-send-tex-command|ex-set-buffer-directory|ex-shell-buf-no-error|ex-shell-buf|ex-shell-proc|ex-shell-running|ex-shell-sentinel|ex-shell|ex-show-print-queue|ex-start-shell|ex-start-tex|ex-string-prefix-p|ex-summarize-command|ex-suscript-height|ex-terminate-paragraph|ex-uptodate-p|ex-validate-buffer|ex-validate-region|ex-view|exi2info|exinfmt-version|exinfo-alias|exinfo-all-menus-update|exinfo-alphaenumerate-item|exinfo-alphaenumerate|exinfo-anchor|exinfo-append-refill|exinfo-capsenumerate-item|exinfo-capsenumerate|exinfo-check-for-node-name|exinfo-clean-up-node-line|exinfo-clear|exinfo-clone-environment|exinfo-copy-menu-title|exinfo-copy-menu|exinfo-copy-next-section-title|exinfo-copy-node-name|exinfo-copy-section-title|exinfo-copying|exinfo-current-defun-name|exinfo-define-common-keys|exinfo-define-info-enclosure|exinfo-delete-existing-pointers|exinfo-delete-from-print-queue|exinfo-delete-old-menu|exinfo-description|exinfo-discard-command-and-arg|exinfo-discard-command|exinfo-discard-line-with-args|exinfo-discard-line|exinfo-do-flushright|exinfo-do-itemize|exinfo-end-alphaenumerate|exinfo-end-capsenumerate|exinfo-end-defun|exinfo-end-direntry|exinfo-end-enumerate|exinfo-end-example|exinfo-end-flushleft)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)t(?:exinfo-end-flushright|exinfo-end-ftable|exinfo-end-indextable|exinfo-end-itemize|exinfo-end-multitable|exinfo-end-table|exinfo-end-vtable|exinfo-enumerate-item|exinfo-enumerate|exinfo-every-node-update|exinfo-filter|exinfo-find-higher-level-node|exinfo-find-lower-level-node|exinfo-find-pointer|exinfo-footnotestyle|exinfo-format-\\\\.|exinfo-format-:|exinfo-format-French-OE-ligature|exinfo-format-French-oe-ligature|exinfo-format-German-sharp-S|exinfo-format-Latin-Scandinavian-AE|exinfo-format-Latin-Scandinavian-ae|exinfo-format-Polish-suppressed-L|exinfo-format-Polish-suppressed-l-lower-case|exinfo-format-Scandinavian-A-with-circle|exinfo-format-Scandinavian-O-with-slash|exinfo-format-Scandinavian-a-with-circle|exinfo-format-Scandinavian-o-with-slash-lower-case|exinfo-format-TeX|exinfo-format-begin-end|exinfo-format-begin|exinfo-format-breve-accent|exinfo-format-buffer-1|exinfo-format-buffer|exinfo-format-bullet|exinfo-format-cedilla-accent|exinfo-format-center|exinfo-format-chapter-1|exinfo-format-chapter|exinfo-format-cindex|exinfo-format-code|exinfo-format-convert|exinfo-format-copyright|exinfo-format-ctrl|exinfo-format-defcv|exinfo-format-deffn|exinfo-format-defindex|exinfo-format-defivar|exinfo-format-defmethod|exinfo-format-defn|exinfo-format-defop|exinfo-format-deftypefn|exinfo-format-deftypefun|exinfo-format-defun-1|exinfo-format-defunx??|exinfo-format-dircategory|exinfo-format-direntry|exinfo-format-documentdescription|exinfo-format-dotless|exinfo-format-dots|exinfo-format-email|exinfo-format-emph|exinfo-format-end-node|exinfo-format-end|exinfo-format-enddots|exinfo-format-equiv|exinfo-format-error|exinfo-format-example|exinfo-format-exdent|exinfo-format-expand-region|exinfo-format-expansion|exinfo-format-findex|exinfo-format-flushleft|exinfo-format-flushright|exinfo-format-footnote|exinfo-format-hacek-accent|exinfo-format-html|exinfo-format-ifeq|exinfo-format-ifhtml|exinfo-format-ifnotinfo|exinfo-format-ifplaintext|exinfo-format-iftex|exinfo-format-ifxml|exinfo-format-ignore|exinfo-format-image|exinfo-format-inforef|exinfo-format-kbd|exinfo-format-key|exinfo-format-kindex|exinfo-format-long-Hungarian-umlaut|exinfo-format-menu|exinfo-format-minus|exinfo-format-node|exinfo-format-noop|exinfo-format-option|exinfo-format-overdot-accent|exinfo-format-paragraph-break|exinfo-format-parse-args|exinfo-format-parse-defun-args|exinfo-format-parse-line-args|exinfo-format-pindex|exinfo-format-point|exinfo-format-pounds|exinfo-format-print|exinfo-format-printindex|exinfo-format-pxref|exinfo-format-refill|exinfo-format-region|exinfo-format-result|exinfo-format-ring-accent|exinfo-format-scan|exinfo-format-section|exinfo-format-sectionpad|exinfo-format-separate-node|exinfo-format-setfilename|exinfo-format-soft-hyphen|exinfo-format-sp|exinfo-format-specialized-defun|exinfo-format-subsection|exinfo-format-subsubsection|exinfo-format-synindex|exinfo-format-tex|exinfo-format-tie-after-accent|exinfo-format-timestamp|exinfo-format-tindex|exinfo-format-titlepage|exinfo-format-titlespec|exinfo-format-today|exinfo-format-underbar-accent|exinfo-format-underdot-accent|exinfo-format-upside-down-exclamation-mark|exinfo-format-upside-down-question-mark|exinfo-format-uref|exinfo-format-var|exinfo-format-verb|exinfo-format-vindex|exinfo-format-xml|exinfo-format-xref|exinfo-ftable-item|exinfo-ftable|exinfo-hierarchic-level|exinfo-if-clear|exinfo-if-set|exinfo-incorporate-descriptions|exinfo-incorporate-menu-entry-names|exinfo-indent-menu-description|exinfo-index-defcv|exinfo-index-deffn|exinfo-index-defivar|exinfo-index-defmethod|exinfo-index-defop|exinfo-index-deftypefn|exinfo-index-defun|exinfo-index|exinfo-indextable-item|exinfo-indextable|exinfo-insert-@code|exinfo-insert-@dfn|exinfo-insert-@email|exinfo-insert-@emph|exinfo-insert-@end|exinfo-insert-@example|exinfo-insert-@file|exinfo-insert-@item|exinfo-insert-@kbd|exinfo-insert-@node|exinfo-insert-@noindent|exinfo-insert-@quotation|exinfo-insert-@samp|exinfo-insert-@strong|exinfo-insert-@table|exinfo-insert-@uref|exinfo-insert-@url|exinfo-insert-@var|exinfo-insert-block|exinfo-insert-braces|exinfo-insert-master-menu-list|exinfo-insert-menu|exinfo-insert-node-lines|exinfo-insert-pointer|exinfo-insert-quote|exinfo-insertcopying|exinfo-inside-env-p|exinfo-inside-macro-p|exinfo-item|exinfo-itemize-item|exinfo-itemize|exinfo-last-unended-begin|exinfo-locate-menu-p|exinfo-make-menu-list|exinfo-make-menu|exinfo-make-one-menu|exinfo-master-menu-list|exinfo-master-menu|exinfo-menu-copy-old-description|exinfo-menu-end|exinfo-menu-first-node|exinfo-menu-indent-description|exinfo-menu-locate-entry-p|exinfo-mode-flyspell-verify|exinfo-mode-menu|exinfo-mode|exinfo-multi-file-included-list|exinfo-multi-file-master-menu-list|exinfo-multi-file-update|exinfo-multi-files-insert-main-menu|exinfo-multiple-files-update|exinfo-multitable-extract-row|exinfo-multitable-item|exinfo-multitable-widths|exinfo-multitable|exinfo-next-unmatched-end|exinfo-noindent|exinfo-old-menu-p|exinfo-optional-braces-discard|exinfo-paragraphindent|exinfo-parse-arg-discard|exinfo-parse-expanded-arg|exinfo-parse-line-arg|exinfo-pointer-name|exinfo-pop-stack|exinfo-print-index|exinfo-push-stack|exinfo-quit-job|exinfo-raise-lower-sections|exinfo-sequential-node-update|exinfo-sequentially-find-pointer|exinfo-sequentially-insert-pointer|exinfo-sequentially-update-the-node|exinfo-set|exinfo-show-structure|exinfo-sort-region|exinfo-sort-startkeyfun|exinfo-specific-section-type|exinfo-start-menu-description|exinfo-table-item|exinfo-table|exinfo-tex-buffer|exinfo-tex-print|exinfo-tex-region|exinfo-tex-view|exinfo-texindex|exinfo-top-pointer-case|exinfo-unsupported|exinfo-update-menu-region-beginning|exinfo-update-menu-region-end|exinfo-update-node|exinfo-update-the-node|exinfo-value|exinfo-vtable-item|exinfo-vtable|ext-clone--maintain|ext-clone-create|ext-mode-hook-identify|ext-scale-adjust|ext-scale-decrease|ext-scale-increase|ext-scale-mode|ext-scale-set|hai-compose-buffer|hai-compose-region|hai-compose-string|hai-composition-function|he|hing-at-point--bounds-of-markedup-url|hing-at-point--bounds-of-well-formed-url|hing-at-point-bounds-of-list-at-point|hing-at-point-bounds-of-url-at-point|hing-at-point-looking-at|hing-at-point-newsgroup-p|hing-at-point-url-at-point|hird|his-major-mode-requires-vi-state|his-single-command-keys|his-single-command-raw-keys|hread-first|hread-last|humbs-backward-char|humbs-backward-line|humbs-call-convert|humbs-call-setroot-command|humbs-cleanup-thumbsdir|humbs-current-image|humbs-delete-images|humbs-dired-setroot|humbs-dired-show-marked|humbs-dired-show|humbs-dired|humbs-display-thumbs-buffer|humbs-do-thumbs-insertion|humbs-emboss-image|humbs-enlarge-image|humbs-file-alist|humbs-file-list|humbs-file-size|humbs-find-image-at-point-other-window|humbs-find-image-at-point|humbs-find-image|humbs-find-thumb|humbs-forward-char|humbs-forward-line|humbs-image-type|humbs-insert-image|humbs-insert-thumb|humbs-kill-buffer|humbs-make-thumb|humbs-mark|humbs-mode|humbs-modify-image|humbs-monochrome-image|humbs-mouse-find-image|humbs-negate-image|humbs-new-image-size|humbs-next-image|humbs-previous-image|humbs-redraw-buffer|humbs-rename-images|humbs-resize-image-1|humbs-resize-image|humbs-rotate-left|humbs-rotate-right|humbs-save-current-image|humbs-set-image-at-point-to-root-window|humbs-set-root|humbs-show-from-dir|humbs-show-image-num|humbs-show-more-images|humbs-show-name|humbs-show-thumbs-list|humbs-shrink-image|humbs-temp-dir|humbs-temp-file|humbs-thumbname|humbs-thumbsdir|humbs-unmark|humbs-view-image-mode|humbs|ibetan-char-p|ibetan-compose-buffer|ibetan-compose-region|ibetan-compose-string|ibetan-decompose-buffer|ibetan-decompose-region|ibetan-decompose-string|ibetan-post-read-conversion|ibetan-pre-write-canonicalize-for-unicode|ibetan-pre-write-conversion|ibetan-tibetan-to-transcription|ibetan-transcription-to-tibetan|ildify--deprecated-ignore-evironments|ildify--find-env|ildify--foreach-region|ildify--pick-alist-entry|ildify-buffer|ildify-foreach-ignore-environments|ildify-region|ildify-tildify|ime-date--day-in-year|ime-since|ime-stamp-conv-warn|ime-stamp-do-number|ime-stamp-fconcat|ime-stamp-mail-host-name|ime-stamp-once|ime-stamp-string-preprocess|ime-stamp-string|ime-stamp-toggle-active|ime-stamp|ime-to-number-of-days|ime-to-seconds|imeclock-ask-for-project|imeclock-ask-for-reason|imeclock-change|imeclock-completing-read|imeclock-current-debt|imeclock-currently-in-p|imeclock-day-alist|imeclock-day-base|imeclock-day-begin|imeclock-day-break|imeclock-day-debt|imeclock-day-end|imeclock-day-length|imeclock-day-list-begin|imeclock-day-list-break|imeclock-day-list-debt|imeclock-day-list-end|imeclock-day-list-length|imeclock-day-list-projects|imeclock-day-list-required|imeclock-day-list-span|imeclock-day-list-template|imeclock-day-list|imeclock-day-projects|imeclock-day-required|imeclock-day-span|imeclock-entry-begin|imeclock-entry-comment|imeclock-entry-end|imeclock-entry-length|imeclock-entry-list-begin|imeclock-entry-list-break|imeclock-entry-list-end|imeclock-entry-list-length|imeclock-entry-list-projects|imeclock-entry-list-span|imeclock-entry-project|imeclock-find-discrep|imeclock-generate-report|imeclock-in|imeclock-last-period|imeclock-log-data|imeclock-log|imeclock-make-hours-explicit|imeclock-mean|imeclock-mode-line-display|imeclock-modeline-display|imeclock-out|imeclock-project-alist|imeclock-query-out|imeclock-read-moment|imeclock-reread-log|imeclock-seconds-to-string|imeclock-seconds-to-time|imeclock-status-string|imeclock-time-to-date|imeclock-time-to-seconds|imeclock-update-mode-line|imeclock-update-modeline|imeclock-visit-timelog|imeclock-when-to-leave-string|imeclock-when-to-leave|imeclock-workday-elapsed-string|imeclock-workday-elapsed|imeclock-workday-remaining-string|imeclock-workday-remaining|imeout-event-p|imep|imer--activate|imer--args--cmacro|imer--args|imer--check|imer--function--cmacro|imer--function|imer--high-seconds--cmacro|imer--high-seconds|imer--idle-delay--cmacro|imer--idle-delay|imer--low-seconds--cmacro|imer--low-seconds|imer--psecs--cmacro|imer--psecs|imer--repeat-delay--cmacro|imer--repeat-delay|imer--time-less-p|imer--time-setter|imer--time|imer--triggered--cmacro|imer--triggered|imer--usecs--cmacro|imer--usecs|imer-activate-when-idle|imer-activate|imer-create--cmacro|imer-create|imer-duration|imer-event-handler|imer-inc-time|imer-next-integral-multiple-of-time|imer-relative-time|imer-set-function|imer-set-idle-time|imer-set-time-with-usecs|imer-set-time|imer-until|imerp|imezone-absolute-from-gregorian|imezone-day-number|imezone-fix-time|imezone-last-day-of-month|imezone-leap-year-p|imezone-make-arpa-date|imezone-make-date-arpa-standard|imezone-make-date-sortable|imezone-make-sortable-date|imezone-make-time-string|imezone-parse-date|imezone-parse-time|imezone-time-from-absolute|imezone-time-zone-from-absolute|imezone-zone-to-minute|itdic-convert|ls-certificate-information|mm--completion-table|mm-add-one-shortcut|mm-add-prompt|mm-add-shortcuts|mm-completion-delete-prompt|mm-define-keys|mm-get-keybind|mm-get-keymap|mm-goto-completions|mm-menubar-mouse|mm-menubar|mm-prompt|mm-remove-inactive-mouse-face|mm-shortcut|odo--user-error-if-marked-done-item|odo-absolute-file-name|odo-add-category|odo-add-file|odo-adjusted-category-label-length|odo-archive-done-item|odo-archive-mode|odo-backward-category|odo-backward-item|odo-categories-mode|odo-category-completions|odo-category-number|odo-category-select|odo-category-string-matcher-1|odo-category-string-matcher-2|odo-check-file|odo-check-filtered-items-file|odo-check-format|odo-choose-archive|odo-clear-matches|odo-comment-string-matcher|odo-convert-legacy-date-time|odo-convert-legacy-files|odo-current-category|odo-date-string-matcher|odo-delete-category|odo-delete-file|odo-delete-item|odo-desktop-save-buffer)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)t(?:odo-diary-expired-matcher|odo-diary-goto-entry|odo-diary-item-p|odo-diary-nonmarking-matcher|odo-display-categories|odo-display-sorted|odo-done-item-p|odo-done-item-section-p|odo-done-separator|odo-done-string-matcher|odo-edit-category-diary-inclusion|odo-edit-category-diary-nonmarking|odo-edit-file|odo-edit-item--diary-inclusion|odo-edit-item--header|odo-edit-item--next-key|odo-edit-item--text|odo-edit-item|odo-edit-mode|odo-edit-quit|odo-files|odo-filter-diary-items-multifile|odo-filter-diary-items|odo-filter-items-1|odo-filter-items-filename|odo-filter-items|odo-filter-regexp-items-multifile|odo-filter-regexp-items|odo-filter-top-priorities-multifile|odo-filter-top-priorities|odo-filtered-items-mode|odo-find-archive|odo-find-filtered-items-file|odo-find-item|odo-forward-category|odo-forward-item|odo-get-count|odo-get-overlay|odo-go-to-source-item|odo-indent|odo-insert-category-line|odo-insert-item--apply-args|odo-insert-item--argsleft|odo-insert-item--basic|odo-insert-item--keyof|odo-insert-item--next-param|odo-insert-item--this-key|odo-insert-item-from-calendar|odo-insert-item|odo-insert-sort-button|odo-insert-with-overlays|odo-item-done|odo-item-end|odo-item-start|odo-item-string|odo-item-undone|odo-jump-to-archive-category|odo-jump-to-category|odo-label-to-key|odo-longest-category-name-length|odo-lower-category|odo-lower-item-priority|odo-make-categories-list|odo-mark-category|odo-marked-item-p|odo-menu|odo-merge-category|odo-mode-external-set|odo-mode-line-control|odo-mode|odo-modes-set-1|odo-modes-set-2|odo-modes-set-3|odo-move-category|odo-move-item|odo-multiple-filter-files|odo-next-button|odo-next-item|odo-nondiary-marker-matcher|odo-padded-string|odo-prefix-overlays|odo-previous-button|odo-previous-item|odo-print-buffer-to-file|odo-print-buffer|odo-quit|odo-raise-category|odo-raise-item-priority|odo-read-category|odo-read-date|odo-read-dayname|odo-read-file-name|odo-read-time|odo-reevaluate-category-completions-files-defcustom|odo-reevaluate-default-file-defcustom|odo-reevaluate-filelist-defcustoms|odo-reevaluate-filter-files-defcustom|odo-remove-item|odo-rename-category|odo-rename-file|odo-repair-categories-sexp|odo-reset-and-enable-done-separator|odo-reset-comment-string|odo-reset-done-separator-string|odo-reset-done-separator|odo-reset-done-string|odo-reset-global-current-todo-file|odo-reset-highlight-item|odo-reset-nondiary-marker|odo-reset-prefix|odo-restore-desktop-buffer|odo-revert-buffer|odo-save-filtered-items-buffer|odo-save|odo-search|odo-set-categories|odo-set-category-number|odo-set-date-from-calendar|odo-set-item-priority|odo-set-show-current-file|odo-set-top-priorities-in-category|odo-set-top-priorities-in-file|odo-set-top-priorities|odo-short-file-name|odo-show-categories-table|odo-show-current-file|odo-show|odo-sort-categories-alphabetically-or-numerically|odo-sort-categories-by-archived|odo-sort-categories-by-diary|odo-sort-categories-by-done|odo-sort-categories-by-todo|odo-sort|odo-time-string-matcher|odo-toggle-item-header|odo-toggle-item-highlighting|odo-toggle-mark-item|odo-toggle-prefix-numbers|odo-toggle-view-done-items|odo-toggle-view-done-only|odo-total-item-counts|odo-unarchive-items|odo-unmark-category|odo-update-buffer-list|odo-update-categories-display|odo-update-categories-sexp|odo-update-count|odo-validate-name|odo-y-or-n-p|oggle-auto-composition|oggle-case-fold-search|oggle-debug-on-error|oggle-debug-on-quit|oggle-emacs-lock|oggle-frame-fullscreen|oggle-frame-maximized|oggle-horizontal-scroll-bar|oggle-indicate-empty-lines|oggle-input-method|oggle-menu-bar-mode-from-frame|oggle-read-only|oggle-rot13-mode|oggle-save-place-globally|oggle-save-place|oggle-scroll-bar|oggle-text-mode-auto-fill|oggle-tool-bar-mode-from-frame|oggle-truncate-lines|oggle-uniquify-buffer-names|oggle-use-system-font|oggle-viper-mode|oggle-word-wrap|ool-bar--image-expression|ool-bar-get-system-style|ool-bar-height|ool-bar-lines-needed|ool-bar-local-item|ool-bar-make-keymap-1|ool-bar-make-keymap|ool-bar-mode|ool-bar-pixel-width|ool-bar-setup|ooltip-cancel-delayed-tip|ooltip-delay|ooltip-event-buffer|ooltip-expr-to-print|ooltip-gud-toggle-dereference|ooltip-help-tips|ooltip-hide|ooltip-identifier-from-point|ooltip-mode|ooltip-process-prompt-regexp|ooltip-set-param|ooltip-show-help-non-mode|ooltip-show-help|ooltip-show|ooltip-start-delayed-tip|ooltip-strip-prompt|ooltip-timeout|q-buffer|q-filter|q-process-buffer|q-process|q-queue-add|q-queue-empty|q-queue-head-closure|q-queue-head-fn|q-queue-head-question|q-queue-head-regexp|q-queue-pop|q-queue|race--display-buffer|race--read-args|race-entry-message|race-exit-message|race-function-background|race-function-foreground|race-function-internal|race-function|race-is-traced|race-make-advice|race-values|raceroute|ramp-accept-process-output|ramp-action-login|ramp-action-out-of-band|ramp-action-password|ramp-action-permission-denied|ramp-action-process-alive|ramp-action-succeed|ramp-action-terminal|ramp-action-yesno|ramp-action-yn|ramp-adb-file-name-handler|ramp-adb-file-name-p|ramp-adb-parse-device-names|ramp-autoload-file-name-handler|ramp-backtrace|ramp-buffer-name|ramp-bug|ramp-cache-print|ramp-call-process|ramp-check-cached-permissions|ramp-check-for-regexp|ramp-check-proper-method-and-host|ramp-cleanup-all-buffers|ramp-cleanup-all-connections|ramp-cleanup-connection|ramp-cleanup-this-connection|ramp-clear-passwd|ramp-compat-coding-system-change-eol-conversion|ramp-compat-condition-case-unless-debug|ramp-compat-copy-directory|ramp-compat-copy-file|ramp-compat-decimal-to-octal|ramp-compat-delete-directory|ramp-compat-delete-file|ramp-compat-file-attributes|ramp-compat-font-lock-add-keywords|ramp-compat-funcall|ramp-compat-load|ramp-compat-make-temp-file|ramp-compat-most-positive-fixnum|ramp-compat-number-sequence|ramp-compat-octal-to-decimal|ramp-compat-process-get|ramp-compat-process-put|ramp-compat-process-running-p|ramp-compat-replace-regexp-in-string|ramp-compat-set-process-query-on-exit-flag|ramp-compat-split-string|ramp-compat-temporary-file-directory|ramp-compat-with-temp-message|ramp-completion-dissect-file-name1??|ramp-completion-file-name-handler|ramp-completion-handle-file-name-all-completions|ramp-completion-handle-file-name-completion|ramp-completion-make-tramp-file-name|ramp-completion-mode-p|ramp-completion-run-real-handler|ramp-condition-case-unless-debug|ramp-connectable-p|ramp-connection-property-p|ramp-debug-buffer-name|ramp-debug-message|ramp-debug-outline-level|ramp-default-file-modes|ramp-delete-temp-file-function|ramp-dissect-file-name|ramp-drop-volume-letter|ramp-equal-remote|ramp-error-with-buffer|ramp-error|ramp-eshell-directory-change|ramp-exists-file-name-handler|ramp-file-mode-from-int|ramp-file-mode-permissions|ramp-file-name-domain|ramp-file-name-for-operation|ramp-file-name-handler|ramp-file-name-hop|ramp-file-name-host|ramp-file-name-localname|ramp-file-name-method|ramp-file-name-p|ramp-file-name-port|ramp-file-name-real-host|ramp-file-name-real-user|ramp-file-name-user|ramp-find-file-name-coding-system-alist|ramp-find-foreign-file-name-handler|ramp-find-host|ramp-find-method|ramp-find-user|ramp-flush-connection-property|ramp-flush-directory-property|ramp-flush-file-property|ramp-ftp-enable-ange-ftp|ramp-ftp-file-name-handler|ramp-ftp-file-name-p|ramp-get-buffer|ramp-get-completion-function|ramp-get-completion-methods|ramp-get-completion-user-host|ramp-get-connection-buffer|ramp-get-connection-name|ramp-get-connection-process|ramp-get-connection-property|ramp-get-debug-buffer|ramp-get-device|ramp-get-file-property|ramp-get-inode|ramp-get-local-gid|ramp-get-local-uid|ramp-get-method-parameter|ramp-get-remote-tmpdir|ramp-gvfs-file-name-handler|ramp-gvfs-file-name-p|ramp-gw-open-connection|ramp-handle-directory-file-name|ramp-handle-directory-files-and-attributes|ramp-handle-directory-files|ramp-handle-dired-uncache|ramp-handle-file-accessible-directory-p|ramp-handle-file-exists-p|ramp-handle-file-modes|ramp-handle-file-name-as-directory|ramp-handle-file-name-completion|ramp-handle-file-name-directory|ramp-handle-file-name-nondirectory|ramp-handle-file-newer-than-file-p|ramp-handle-file-notify-add-watch|ramp-handle-file-notify-rm-watch|ramp-handle-file-regular-p|ramp-handle-file-remote-p|ramp-handle-file-symlink-p|ramp-handle-find-backup-file-name|ramp-handle-insert-directory|ramp-handle-insert-file-contents|ramp-handle-load|ramp-handle-make-auto-save-file-name|ramp-handle-make-symbolic-link|ramp-handle-set-visited-file-modtime|ramp-handle-shell-command|ramp-handle-substitute-in-file-name|ramp-handle-unhandled-file-name-directory|ramp-handle-verify-visited-file-modtime|ramp-list-connections|ramp-local-host-p|ramp-make-tramp-file-name|ramp-make-tramp-temp-file|ramp-message|ramp-mode-string-to-int|ramp-parse-connection-properties|ramp-parse-file|ramp-parse-group|ramp-parse-hosts-group|ramp-parse-hosts|ramp-parse-netrc-group|ramp-parse-netrc|ramp-parse-passwd-group|ramp-parse-passwd|ramp-parse-putty-group|ramp-parse-putty|ramp-parse-rhosts-group|ramp-parse-rhosts|ramp-parse-sconfig-group|ramp-parse-sconfig|ramp-parse-shostkeys-sknownhosts|ramp-parse-shostkeys|ramp-parse-shosts-group|ramp-parse-shosts|ramp-parse-sknownhosts|ramp-process-actions|ramp-process-one-action|ramp-progress-reporter-update|ramp-read-passwd|ramp-register-autoload-file-name-handlers|ramp-register-file-name-handlers|ramp-replace-environment-variables|ramp-rfn-eshadow-setup-minibuffer|ramp-rfn-eshadow-update-overlay|ramp-run-real-handler|ramp-send-string|ramp-set-auto-save-file-modes|ramp-set-completion-function|ramp-set-connection-property|ramp-set-file-property|ramp-sh-file-name-handler|ramp-shell-quote-argument|ramp-smb-file-name-handler|ramp-smb-file-name-p|ramp-subst-strs-in-string|ramp-time-diff|ramp-tramp-file-p|ramp-unload-file-name-handlers|ramp-unload-tramp|ramp-user-error|ramp-uuencode-region|ramp-version|ramp-wait-for-regexp|ransform-make-coding-system-args|ranslate-region-internal|ranspose-chars|ranspose-lines|ranspose-paragraphs|ranspose-sentences|ranspose-sexps|ranspose-subr-1|ranspose-subr|ranspose-words|ree-equal|ree-widget--locate-sub-directory|ree-widget-action|ree-widget-button-click|ree-widget-children-value-save|ree-widget-convert-widget|ree-widget-create-image|ree-widget-expander-p|ree-widget-find-image|ree-widget-help-echo|ree-widget-icon-action|ree-widget-icon-create|ree-widget-icon-help-echo|ree-widget-image-formats|ree-widget-image-properties|ree-widget-keep|ree-widget-leaf-node-icon-p|ree-widget-lookup-image|ree-widget-node|ree-widget-p|ree-widget-set-image-properties|ree-widget-set-parent-theme|ree-widget-set-theme|ree-widget-theme-name|ree-widget-themes-path|ree-widget-use-image-p|ree-widget-value-create|runcate\\\\*|runcated-partial-width-window-p|ry-complete-file-name-partially|ry-complete-file-name|ry-complete-lisp-symbol-partially|ry-complete-lisp-symbol|ry-expand-all-abbrevs|ry-expand-dabbrev-all-buffers|ry-expand-dabbrev-from-kill|ry-expand-dabbrev-visible|ry-expand-dabbrev|ry-expand-line-all-buffers|ry-expand-line|ry-expand-list-all-buffers|ry-expand-list|ry-expand-whole-kill|ty-color-by-index|ty-color-canonicalize|ty-color-desc|ty-color-gray-shades|ty-color-off-gray-diag|ty-color-standard-values|ty-color-values|ty-create-frame-with-faces|ty-display-color-cells|ty-display-color-p|ty-find-type|ty-handle-args|ty-handle-reverse-video|ty-modify-color-alist|ty-no-underline|ty-register-default-colors|ty-run-terminal-initialization|ty-set-up-initial-frame-faces|ty-suppress-bold-inverse-default-colors|ty-type|umme|urkish-case-conversion-disable|urkish-case-conversion-enable|urn-off-auto-fill|urn-off-flyspell|urn-off-follow-mode|urn-off-hideshow|urn-off-iimage-mode|urn-off-xterm-mouse-tracking-on-terminal|urn-on-auto-fill|urn-on-auto-revert-mode|urn-on-auto-revert-tail-mode|urn-on-cwarn-mode-if-enabled|urn-on-cwarn-mode|urn-on-eldoc-mode|urn-on-flyspell|urn-on-follow-mode|urn-on-font-lock-if-desired|urn-on-font-lock|urn-on-gnus-dired-mode)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)(?:turn-on-gnus-mailing-list-mode|turn-on-hi-lock-if-enabled|turn-on-iimage-mode|turn-on-org-cdlatex|turn-on-orgstruct\\\\+\\\\+|turn-on-orgstruct|turn-on-orgtbl|turn-on-prettify-symbols-mode|turn-on-reftex|turn-on-visual-line-mode|turn-on-xterm-mouse-tracking-on-terminal|type-break-alarm|type-break-cancel-function-timers|type-break-cancel-schedule|type-break-cancel-time-warning-schedule|type-break-catch-up-event|type-break-check-keystroke-warning|type-break-check-post-command-hook|type-break-check|type-break-choose-file|type-break-demo-boring|type-break-demo-hanoi|type-break-demo-life|type-break-do-query|type-break-file-keystroke-count|type-break-file-time|type-break-force-mode-line-update|type-break-format-time|type-break-get-previous-count|type-break-get-previous-time|type-break-guesstimate-keystroke-threshold|type-break-keystroke-reset|type-break-keystroke-warning|type-break-mode-line-countdown-or-break|type-break-mode-line-message-mode|type-break-mode|type-break-noninteractive-query|type-break-query-mode|type-break-query|type-break-run-at-time|type-break-run-tb-post-command-hook|type-break-schedule|type-break-statistics|type-break-time-difference|type-break-time-stamp|type-break-time-sum|type-break-time-warning-alarm|type-break-time-warning-schedule|type-break-time-warning|type-break|typecase|typep|uce-insert-ranting|uce-reply-to-uce|ucs-input-activate|ucs-insert|ucs-names|ucs-normalize-HFS-NFC-region|ucs-normalize-HFS-NFC-string|ucs-normalize-HFS-NFD-region|ucs-normalize-HFS-NFD-string|ucs-normalize-NFC-region|ucs-normalize-NFC-string|ucs-normalize-NFD-region|ucs-normalize-NFD-string|ucs-normalize-NFKC-region|ucs-normalize-NFKC-string|ucs-normalize-NFKD-region|ucs-normalize-NFKD-string|uncomment-region-default|uncomment-region|uncompface|underline-region|undigestify-rmail-message|undo-adjust-beg-end|undo-adjust-elt|undo-adjust-pos|undo-copy-list-1|undo-copy-list|undo-delta|undo-elt-crosses-region|undo-elt-in-region|undo-make-selective-list|undo-more|undo-only|undo-outer-limit-truncate|undo-start|undo|unencodable-char-position|unexpand-abbrev|unfocus-frame|unforward-rmail-message|unhighlight-regexp|unicode-property-table-internal|unify-8859-on-decoding-mode|unify-8859-on-encoding-mode|unify-charset|union|uniquify--create-file-buffer-advice|uniquify--rename-buffer-advice|uniquify-buffer-base-name|uniquify-buffer-file-name|uniquify-get-proposed-name|uniquify-item-base--cmacro|uniquify-item-base|uniquify-item-buffer--cmacro|uniquify-item-buffer|uniquify-item-dirname--cmacro|uniquify-item-dirname|uniquify-item-greaterp|uniquify-item-p--cmacro|uniquify-item-p|uniquify-item-proposed--cmacro|uniquify-item-proposed|uniquify-kill-buffer-function|uniquify-make-item--cmacro|uniquify-make-item|uniquify-maybe-rerationalize-w/o-cb|uniquify-rationalize-a-list|uniquify-rationalize-conflicting-sublist|uniquify-rationalize-file-buffer-names|uniquify-rationalize|uniquify-rename-buffer|uniquify-rerationalize-w/o-cb|uniquify-unload-function|universal-argument--mode|universal-argument-more|universal-coding-system-argument|unix-sync|unjustify-current-line|unjustify-region|unload--set-major-mode|unmorse-region|unmsys--file-name|unread-bib|unrecord-window-buffer|unrmail|unsafep-function|unsafep-let|unsafep-progn|unsafep-variable|untabify-backward|untabify|untrace-all|untrace-function|ununderline-region|up-ifdef|upcase-initials-region|update-glyphless-char-display|update-leim-list-file|url--allowed-chars|url-attributes--cmacro|url-attributes|url-auth-registered|url-auth-user-prompt|url-basepath|url-basic-auth|url-bit-for-url|url-build-query-string|url-cache-create-filename|url-cache-extract|url-cache-prune-cache|url-cid|url-completion-function|url-cookie-clean-up|url-cookie-create--cmacro|url-cookie-create|url-cookie-delete|url-cookie-domain--cmacro|url-cookie-domain|url-cookie-expired-p|url-cookie-expires--cmacro|url-cookie-expires|url-cookie-generate-header-lines|url-cookie-handle-set-cookie|url-cookie-host-can-set-p|url-cookie-list|url-cookie-localpart--cmacro|url-cookie-localpart|url-cookie-mode|url-cookie-name--cmacro|url-cookie-name|url-cookie-p--cmacro|url-cookie-p|url-cookie-parse-file|url-cookie-quit|url-cookie-retrieve|url-cookie-secure--cmacro|url-cookie-secure|url-cookie-setup-save-timer|url-cookie-store|url-cookie-value--cmacro|url-cookie-value|url-cookie-write-file|url-copy-file|url-data|url-dav-request|url-dav-supported-p|url-dav-vc-registered|url-debug|url-default-expander|url-default-find-proxy-for-url|url-device-type|url-digest-auth-create-key|url-digest-auth|url-display-percentage|url-do-auth-source-search|url-do-setup|url-domsuf-cookie-allowed-p|url-domsuf-parse-file|url-eat-trailing-space|url-encode-url|url-expand-file-name|url-expander-remove-relative-links|url-extract-mime-headers|url-file-directory|url-file-extension|url-file-handler|url-file-local-copy|url-file-nondirectory|url-file|url-filename--cmacro|url-filename|url-find-proxy-for-url|url-fullness--cmacro|url-fullness|url-gateway-nslookup-host|url-gc-dead-buffers|url-generate-unique-filename|url-generic-emulator-loader|url-generic-parse-url|url-get-authentication|url-get-normalized-date|url-get-url-at-point|url-handle-content-transfer-encoding|url-handler-mode|url-have-visited-url|url-hexify-string|url-history-parse-history|url-history-save-history|url-history-setup-save-timer|url-history-update-url|url-host--cmacro|url-host|url-http-activate-callback|url-http-async-sentinel|url-http-chunked-encoding-after-change-function|url-http-clean-headers|url-http-content-length-after-change-function|url-http-create-request|url-http-debug|url-http-end-of-document-sentinel|url-http-expand-file-name|url-http-file-attributes|url-http-file-exists-p|url-http-file-readable-p|url-http-find-free-connection|url-http-generic-filter|url-http-handle-authentication|url-http-handle-cookies|url-http-head-file-attributes|url-http-head|url-http-idle-sentinel|url-http-mark-connection-as-busy|url-http-mark-connection-as-free|url-http-options|url-http-parse-headers|url-http-parse-response|url-http-simple-after-change-function|url-http-symbol-value-in-buffer|url-http-user-agent-string|url-http-wait-for-headers-change-function|url-http|url-https-create-secure-wrapper|url-https-expand-file-name|url-https-file-attributes|url-https-file-exists-p|url-https-file-readable-p|url-https|url-identity-expander|url-info|url-insert-entities-in-string|url-insert-file-contents|url-irc|url-is-cached|url-lazy-message|url-ldap|url-mail|url-mailto|url-make-private-file|url-man|url-mark-buffer-as-dead|url-mime-charset-string|url-mm-callback|url-mm-url|url-news|url-normalize-url|url-ns-prefs|url-ns-user-pref|url-open-rlogin|url-open-stream|url-open-telnet|url-p--cmacro|url-p|url-parse-args|url-parse-make-urlobj--cmacro|url-parse-make-urlobj|url-parse-query-string|url-password--cmacro|url-password-for-url|url-password|url-path-and-query|url-percentage|url-port-if-non-default|url-port|url-portspec--cmacro|url-portspec|url-pretty-length|url-proxy|url-queue-buffer--cmacro|url-queue-buffer|url-queue-callback--cmacro|url-queue-callback-function|url-queue-callback|url-queue-cbargs--cmacro|url-queue-cbargs|url-queue-inhibit-cookiesp--cmacro|url-queue-inhibit-cookiesp|url-queue-kill-job|url-queue-p--cmacro|url-queue-p|url-queue-pre-triggered--cmacro|url-queue-pre-triggered|url-queue-prune-old-entries|url-queue-remove-jobs-from-host|url-queue-retrieve|url-queue-run-queue|url-queue-setup-runners|url-queue-silentp--cmacro|url-queue-silentp|url-queue-start-retrieve|url-queue-start-time--cmacro|url-queue-start-time|url-queue-url--cmacro|url-queue-url|url-recreate-url-attributes|url-recreate-url|url-register-auth-scheme|url-retrieve-internal|url-retrieve-synchronously|url-retrieve|url-rlogin|url-scheme-default-loader|url-scheme-get-property|url-scheme-register-proxy|url-set-mime-charset-string|url-setup-privacy-info|url-silent--cmacro|url-silent|url-snews|url-store-in-cache|url-strip-leading-spaces|url-target--cmacro|url-target|url-telnet|url-tn3270|url-tramp-file-handler|url-truncate-url-for-viewing|url-type--cmacro|url-type|url-unhex-string|url-unhex|url-use-cookies--cmacro|url-use-cookies|url-user--cmacro|url-user-for-url|url-user|url-view-url|url-wait-for-string|url-warn|use-cjk-char-width-table|use-completion-backward-under|use-completion-backward|use-completion-before-point|use-completion-before-separator|use-completion-minibuffer-separator|use-completion-under-or-before-point|use-completion-under-point|use-default-char-width-table|use-fancy-splash-screens-p|use-package|user-original-login-name|user-variable-p|utf-7-imap-post-read-conversion|utf-7-imap-pre-write-conversion|utf-7-post-read-conversion|utf-7-pre-write-conversion|utf7-decode|utf7-encode|uudecode-char-int|uudecode-decode-region-external|uudecode-decode-region-internal|uudecode-decode-region|uudecode-string-to-multibyte|values-list|variable-at-point|variable-binding-locus|variable-pitch-mode|vc--add-line|vc--process-sentinel|vc--read-lines|vc--remove-regexp|vc-after-save|vc-annotate|vc-backend-for-registration|vc-backend-subdirectory-name|vc-backend|vc-before-save|vc-branch-p|vc-branch-part|vc-buffer-context|vc-buffer-sync|vc-bzr-registered|vc-call-backend|vc-call|vc-check-headers|vc-check-master-templates|vc-checkin|vc-checkout-model|vc-checkout|vc-clear-context|vc-coding-system-for-diff|vc-comment-search-forward|vc-comment-search-reverse|vc-comment-to-change-log|vc-compatible-state|vc-compilation-mode|vc-context-matches-p|vc-create-repo|vc-create-tag|vc-cvs-after-dir-status|vc-cvs-annotate-command|vc-cvs-annotate-current-time|vc-cvs-annotate-extract-revision-at-line|vc-cvs-annotate-process-filter|vc-cvs-annotate-time|vc-cvs-append-to-ignore|vc-cvs-check-headers|vc-cvs-checkin|vc-cvs-checkout-model|vc-cvs-checkout|vc-cvs-command|vc-cvs-comment-history|vc-cvs-could-register|vc-cvs-create-tag|vc-cvs-delete-file|vc-cvs-diff|vc-cvs-dir-extra-headers|vc-cvs-dir-status-files|vc-cvs-dir-status-heuristic|vc-cvs-file-to-string|vc-cvs-find-admin-dir|vc-cvs-find-revision|vc-cvs-get-entries|vc-cvs-ignore|vc-cvs-make-version-backups-p|vc-cvs-merge-file|vc-cvs-merge-news|vc-cvs-merge|vc-cvs-mode-line-string|vc-cvs-modify-change-comment|vc-cvs-next-revision|vc-cvs-parse-entry|vc-cvs-parse-root|vc-cvs-parse-status|vc-cvs-parse-sticky-tag|vc-cvs-parse-uhp|vc-cvs-previous-revision|vc-cvs-print-log|vc-cvs-register|vc-cvs-registered|vc-cvs-repository-hostname|vc-cvs-responsible-p|vc-cvs-retrieve-tag|vc-cvs-revert|vc-cvs-revision-completion-table|vc-cvs-revision-granularity|vc-cvs-revision-table|vc-cvs-state-heuristic|vc-cvs-state|vc-cvs-stay-local-p|vc-cvs-update-changelog|vc-cvs-valid-revision-number-p|vc-cvs-valid-symbolic-tag-name-p|vc-cvs-working-revision|vc-deduce-backend|vc-deduce-fileset|vc-default-check-headers|vc-default-comment-history|vc-default-dir-status-files|vc-default-extra-menu|vc-default-find-file-hook|vc-default-find-revision|vc-default-ignore-completion-table|vc-default-ignore|vc-default-log-edit-mode|vc-default-log-view-mode|vc-default-make-version-backups-p|vc-default-mark-resolved|vc-default-mode-line-string|vc-default-receive-file|vc-default-registered|vc-default-rename-file|vc-default-responsible-p|vc-default-retrieve-tag|vc-default-revert|vc-default-revision-completion-table|vc-default-show-log-entry|vc-default-working-revision|vc-delete-automatic-version-backups|vc-delete-file|vc-delistify|vc-diff-build-argument-list-internal|vc-diff-finish|vc-diff-internal|vc-diff-switches-list|vc-diff|vc-dir-mode|vc-dir|vc-dired-deduce-fileset|vc-dispatcher-browsing|vc-do-async-command|vc-do-command|vc-ediff|vc-editable-p|vc-ensure-vc-buffer|vc-error-occurred|vc-exec-after|vc-expand-dirs|vc-file-clearprops|vc-file-getprop|vc-file-setprop|vc-file-tree-walk-internal|vc-file-tree-walk|vc-find-backend-function|vc-find-conflicted-file|vc-find-file-hook|vc-find-position-by-context|vc-find-revision|vc-find-root|vc-finish-logentry|vc-follow-link|vc-git-registered|vc-hg-registered|vc-ignore|vc-incoming-outgoing-internal|vc-insert-file|vc-insert-headers|vc-kill-buffer-hook|vc-log-edit|vc-log-incoming|vc-log-internal-common|vc-log-outgoing|vc-make-backend-sym|vc-make-version-backup|vc-mark-resolved|vc-maybe-resolve-conflicts|vc-menu-map-filter|vc-menu-map|vc-merge|vc-mode-line|vc-modify-change-comment|vc-mtn-registered|vc-next-action|vc-next-comment|vc-parse-buffer)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)v(?:c-position-context|c-possible-master|c-previous-comment|c-print-log-internal|c-print-log-setup-buttons|c-print-log|c-print-root-log|c-process-filter|c-pull|c-rcs-registered|c-read-backend|c-read-revision|c-region-history|c-register-with|c-register|c-registered|c-rename-file|c-resolve-conflicts|c-responsible-backend|c-restore-buffer-context|c-resynch-buffer|c-resynch-buffers-in-directory|c-resynch-window|c-retrieve-tag|c-revert-buffer-internal|c-revert-buffer|c-revert-file|c-revert|c-revision-other-window|c-rollback|c-root-diff|c-root-dir|c-run-delayed|c-sccs-registered|c-sccs-search-project-dir|c-set-async-update|c-set-mode-line-busy-indicator|c-setup-buffer|c-src-registered|c-start-logentry|c-state-refresh|c-state|c-steal-lock|c-string-prefix-p|c-svn-registered|c-switch-backend|c-switches|c-tag-precondition|c-toggle-read-only|c-transfer-file|c-up-to-date-p|c-update-change-log|c-update|c-user-login-name|c-version-backup-file-name|c-version-backup-file|c-version-diff|c-version-ediff|c-workfile-version|c-working-revision|cursor-backward-char|cursor-backward-word|cursor-beginning-of-buffer|cursor-beginning-of-line|cursor-bind-keys|cursor-check|cursor-compare-windows|cursor-copy-line|cursor-copy-word|cursor-copy|cursor-cs-binding|cursor-disable|cursor-end-of-buffer|cursor-end-of-line|cursor-execute-command|cursor-execute-key|cursor-find-window|cursor-forward-char|cursor-forward-word|cursor-get-char-count|cursor-goto|cursor-insert|cursor-isearch-backward|cursor-isearch-forward|cursor-locate|cursor-map|cursor-move|cursor-next-line|cursor-other-window|cursor-post-command|cursor-previous-line|cursor-relative-move|cursor-scroll-down|cursor-scroll-up|cursor-swap-point|cursor-toggle-copy|cursor-toggle-vcursor-map|cursor-use-vcursor-map|cursor-window-funcall|ector-or-char-table-p|endor-specific-keysyms|era-add-syntax|era-backward-same-indent|era-backward-statement|era-backward-syntactic-ws|era-beginning-of-statement|era-beginning-of-substatement|era-comment-uncomment-region|era-corresponding-begin|era-corresponding-if|era-customize|era-electric-closing-brace|era-electric-opening-brace|era-electric-pound|era-electric-return|era-electric-slash|era-electric-space|era-electric-star|era-electric-tab|era-evaluate-offset|era-expand-abbrev|era-font-lock-match-item|era-fontify-buffer|era-forward-same-indent|era-forward-statement|era-forward-syntactic-ws|era-get-offset|era-guess-basic-syntax|era-in-literal|era-indent-block-closing|era-indent-buffer|era-indent-line|era-indent-region|era-langelem-col|era-lineup-C-comments|era-lineup-comment|era-mode-menu|era-mode|era-point|era-prepare-search|era-re-search-backward|era-re-search-forward|era-skip-backward-literal|era-skip-forward-literal|era-submit-bug-report|era-try-expand-abbrev|era-version|erify-xscheme-buffer|erilog-add-list-unique|erilog-alw-get-inputs|erilog-alw-get-outputs-delayed|erilog-alw-get-outputs-immediate|erilog-alw-get-temps|erilog-alw-get-uses-delayed|erilog-alw-new|erilog-at-close-constraint-p|erilog-at-close-struct-p|erilog-at-constraint-p|erilog-at-struct-mv-p|erilog-at-struct-p|erilog-auto-arg-ports|erilog-auto-arg|erilog-auto-ascii-enum|erilog-auto-assign-modport|erilog-auto-inout-comp|erilog-auto-inout-in|erilog-auto-inout-modport|erilog-auto-inout-module|erilog-auto-inout-param|erilog-auto-inout|erilog-auto-input|erilog-auto-insert-last|erilog-auto-insert-lisp|erilog-auto-inst-first|erilog-auto-inst-param|erilog-auto-inst-port-list|erilog-auto-inst-port-map|erilog-auto-inst-port|erilog-auto-inst|erilog-auto-logic-setup|erilog-auto-logic|erilog-auto-output-every|erilog-auto-output|erilog-auto-re-search-do|erilog-auto-read-locals|erilog-auto-reeval-locals|erilog-auto-reg-input|erilog-auto-reg|erilog-auto-reset|erilog-auto-save-check|erilog-auto-save-compile|erilog-auto-sense-sigs|erilog-auto-sense|erilog-auto-star-safe|erilog-auto-star|erilog-auto-template-lint|erilog-auto-templated-rel|erilog-auto-tieoff|erilog-auto-undef|erilog-auto-unused|erilog-auto-wire|erilog-auto|erilog-back-to-start-translate-off|erilog-backward-case-item|erilog-backward-open-bracket|erilog-backward-open-paren|erilog-backward-sexp|erilog-backward-syntactic-ws-quick|erilog-backward-syntactic-ws|erilog-backward-token|erilog-backward-up-list|erilog-backward-ws&directives|erilog-batch-auto|erilog-batch-delete-auto|erilog-batch-delete-trailing-whitespace|erilog-batch-diff-auto|erilog-batch-error-wrapper|erilog-batch-execute-func|erilog-batch-indent|erilog-batch-inject-auto|erilog-beg-of-defun-quick|erilog-beg-of-defun|erilog-beg-of-statement-1|erilog-beg-of-statement|erilog-booleanp|erilog-build-defun-re|erilog-calc-1|erilog-calculate-indent-directive|erilog-calculate-indent|erilog-case-indent-level|erilog-clog2|erilog-colorize-include-files-buffer|erilog-comment-depth|erilog-comment-indent|erilog-comment-region|erilog-comp-defun|erilog-complete-word|erilog-completion-response|erilog-completion|erilog-continued-line-1|erilog-continued-line|erilog-current-flags|erilog-current-indent-level|erilog-customize|erilog-declaration-beg|erilog-declaration-end|erilog-decls-append|erilog-decls-get-assigns|erilog-decls-get-consts|erilog-decls-get-gparams|erilog-decls-get-inouts|erilog-decls-get-inputs|erilog-decls-get-interfaces|erilog-decls-get-iovars|erilog-decls-get-modports|erilog-decls-get-outputs|erilog-decls-get-ports|erilog-decls-get-signals|erilog-decls-get-vars|erilog-decls-new|erilog-decls-princ|erilog-define-abbrev|erilog-delete-auto-star-all|erilog-delete-auto-star-implicit|erilog-delete-auto|erilog-delete-autos-lined|erilog-delete-empty-auto-pair|erilog-delete-to-paren|erilog-delete-trailing-whitespace|erilog-diff-auto|erilog-diff-buffers-p|erilog-diff-file-with-buffer|erilog-diff-report|erilog-dir-file-exists-p|erilog-dir-files|erilog-do-indent|erilog-easy-menu-filter|erilog-end-of-defun|erilog-end-of-statement|erilog-end-translate-off|erilog-enum-ascii|erilog-error-regexp-add-emacs|erilog-expand-command|erilog-expand-dirnames|erilog-expand-vector-internal|erilog-expand-vector|erilog-faq|erilog-font-customize|erilog-font-lock-match-item|erilog-forward-close-paren|erilog-forward-or-insert-line|erilog-forward-sexp-cmt|erilog-forward-sexp-function|erilog-forward-sexp-ign-cmt|erilog-forward-sexp|erilog-forward-syntactic-ws|erilog-forward-ws&directives|erilog-func-completion|erilog-generate-numbers|erilog-get-completion-decl|erilog-get-default-symbol|erilog-get-end-of-defun|erilog-get-expr|erilog-get-lineup-indent-2|erilog-get-lineup-indent|erilog-getopt-file|erilog-getopt-flags|erilog-getopt|erilog-goto-defun-file|erilog-goto-defun|erilog-header|erilog-highlight-buffer|erilog-highlight-region|erilog-in-attribute-p|erilog-in-case-region-p|erilog-in-comment-or-string-p|erilog-in-comment-p|erilog-in-coverage-p|erilog-in-directive-p|erilog-in-escaped-name-p|erilog-in-fork-region-p|erilog-in-generate-region-p|erilog-in-parameter-p|erilog-in-paren-count|erilog-in-paren-quick|erilog-in-paren|erilog-in-parenthesis-p|erilog-in-slash-comment-p|erilog-in-star-comment-p|erilog-in-struct-nested-p|erilog-in-struct-p|erilog-indent-buffer|erilog-indent-comment|erilog-indent-declaration|erilog-indent-line-relative|erilog-indent-line|erilog-inject-arg|erilog-inject-auto|erilog-inject-inst|erilog-inject-sense|erilog-insert-1|erilog-insert-block|erilog-insert-date|erilog-insert-definition|erilog-insert-indent|erilog-insert-indices|erilog-insert-last-command-event|erilog-insert-one-definition|erilog-insert-year|erilog-insert|erilog-inside-comment-or-string-p|erilog-is-number|erilog-just-one-space|erilog-keyword-completion|erilog-kill-existing-comment|erilog-label-be|erilog-leap-to-case-head|erilog-leap-to-head|erilog-library-filenames|erilog-lint-off|erilog-linter-name|erilog-load-file-at-mouse|erilog-load-file-at-point|erilog-make-width-expression|erilog-mark-defun|erilog-match-translate-off|erilog-menu|erilog-mode|erilog-modi-cache-add-gparams|erilog-modi-cache-add-inouts|erilog-modi-cache-add-inputs|erilog-modi-cache-add-outputs|erilog-modi-cache-add-vars|erilog-modi-cache-add|erilog-modi-cache-results|erilog-modi-current-get|erilog-modi-current|erilog-modi-file-or-buffer|erilog-modi-filename|erilog-modi-get-decls|erilog-modi-get-point|erilog-modi-get-sub-decls|erilog-modi-get-type|erilog-modi-goto|erilog-modi-lookup|erilog-modi-modport-lookup-one|erilog-modi-modport-lookup|erilog-modi-name|erilog-modi-new|erilog-modify-compile-command|erilog-modport-clockings-add|erilog-modport-clockings|erilog-modport-decls-set|erilog-modport-decls|erilog-modport-name|erilog-modport-new|erilog-modport-princ|erilog-module-filenames|erilog-module-inside-filename-p|erilog-more-comment|erilog-one-line|erilog-parenthesis-depth|erilog-point-text|erilog-preprocess|erilog-preserve-dir-cache|erilog-preserve-modi-cache|erilog-pretty-declarations-auto|erilog-pretty-declarations|erilog-pretty-expr|erilog-re-search-backward-quick|erilog-re-search-backward-substr|erilog-re-search-backward|erilog-re-search-forward-quick|erilog-re-search-forward-substr|erilog-re-search-forward|erilog-read-always-signals-recurse|erilog-read-always-signals|erilog-read-arg-pins|erilog-read-auto-constants|erilog-read-auto-lisp-present|erilog-read-auto-lisp|erilog-read-auto-params|erilog-read-auto-template-hit|erilog-read-auto-template-middle|erilog-read-auto-template|erilog-read-decls|erilog-read-defines|erilog-read-includes|erilog-read-inst-backward-name|erilog-read-inst-module-matcher|erilog-read-inst-module|erilog-read-inst-name|erilog-read-inst-param-value|erilog-read-inst-pins|erilog-read-instants|erilog-read-module-name|erilog-read-signals|erilog-read-sub-decls-expr|erilog-read-sub-decls-gate|erilog-read-sub-decls-line|erilog-read-sub-decls-sig|erilog-read-sub-decls|erilog-regexp-opt|erilog-regexp-words|erilog-repair-close-comma|erilog-repair-open-comma|erilog-run-hooks|erilog-save-buffer-state|erilog-save-font-mods|erilog-save-no-change-functions|erilog-save-scan-cache|erilog-scan-and-debug|erilog-scan-cache-flush|erilog-scan-cache-ok-p|erilog-scan-debug|erilog-scan-region|erilog-scan|erilog-set-auto-endcomments|erilog-set-compile-command|erilog-set-define|erilog-show-completions|erilog-showscopes|erilog-sig-bits|erilog-sig-comment|erilog-sig-enum|erilog-sig-memory|erilog-sig-modport|erilog-sig-multidim-string|erilog-sig-multidim|erilog-sig-name|erilog-sig-new|erilog-sig-signed|erilog-sig-tieoff|erilog-sig-type-set|erilog-sig-type|erilog-sig-width|erilog-signals-combine-bus|erilog-signals-edit-wire-reg|erilog-signals-from-signame|erilog-signals-in|erilog-signals-matching-dir-re|erilog-signals-matching-enum|erilog-signals-matching-regexp|erilog-signals-memory|erilog-signals-not-in|erilog-signals-not-matching-regexp|erilog-signals-not-params|erilog-signals-princ|erilog-signals-sort-compare|erilog-signals-with|erilog-simplify-range-expression|erilog-sk-always|erilog-sk-assign|erilog-sk-begin|erilog-sk-casex??|erilog-sk-casez|erilog-sk-comment|erilog-sk-datadef|erilog-sk-def-reg|erilog-sk-define-signal|erilog-sk-else-if|erilog-sk-fork??|erilog-sk-function|erilog-sk-generate|erilog-sk-header-tmpl|erilog-sk-header|erilog-sk-if|erilog-sk-initial|erilog-sk-inout|erilog-sk-input|erilog-sk-module|erilog-sk-output|erilog-sk-ovm-class|erilog-sk-primitive|erilog-sk-prompt-clock|erilog-sk-prompt-condition|erilog-sk-prompt-inc|erilog-sk-prompt-init|erilog-sk-prompt-lsb|erilog-sk-prompt-msb|erilog-sk-prompt-name|erilog-sk-prompt-output|erilog-sk-prompt-reset|erilog-sk-prompt-state-selector|erilog-sk-prompt-width|erilog-sk-reg|erilog-sk-repeat|erilog-sk-specify|erilog-sk-state-machine|erilog-sk-task|erilog-sk-uvm-component|erilog-sk-uvm-object|erilog-sk-while|erilog-sk-wire|erilog-skip-backward-comment-or-string|erilog-skip-backward-comments|erilog-skip-forward-comment-or-string)(?=[()\\\\s]|$)","name":"support.function.emacs.lisp"},{"match":"(?<=[()]|^)v(?:erilog-skip-forward-comment-p|erilog-star-comment|erilog-start-translate-off|erilog-stmt-menu|erilog-string-diff|erilog-string-match-fold|erilog-string-remove-spaces|erilog-string-replace-matches|erilog-strip-comments|erilog-subdecls-get-inouts|erilog-subdecls-get-inputs|erilog-subdecls-get-interfaced|erilog-subdecls-get-interfaces|erilog-subdecls-get-outputs|erilog-subdecls-new|erilog-submit-bug-report|erilog-surelint-off|erilog-symbol-detick-denumber|erilog-symbol-detick-text|erilog-symbol-detick|erilog-syntax-ppss|erilog-typedef-name-p|erilog-uncomment-region|erilog-var-completion|erilog-verilint-off|erilog-version|erilog-wai|erilog-warn-error|erilog-warn|erilog-within-string|erilog-within-translate-off|ersion-list-<=??|ersion-list-=|ersion-list-not-zero|ersion-to-list|ersion{let e=(0,N.c)(15),{title:i,description:x,icon:m,action:n}=f,t;e[0]===m?t=e[1]:(t=m&&g.cloneElement(m,{className:"text-accent-foreground flex-shrink-0"}),e[0]=m,e[1]=t);let s;e[2]===i?s=e[3]:(s=(0,c.jsx)("span",{className:"mt-1 text-accent-foreground",children:i}),e[2]=i,e[3]=s);let r;e[4]!==t||e[5]!==s?(r=(0,c.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[t,s]}),e[4]=t,e[5]=s,e[6]=r):r=e[6];let l;e[7]===x?l=e[8]:(l=(0,c.jsx)("span",{className:"text-muted-foreground text-sm",children:x}),e[7]=x,e[8]=l);let a;e[9]===n?a=e[10]:(a=n&&(0,c.jsx)("div",{className:"mt-2",children:n}),e[9]=n,e[10]=a);let o;return e[11]!==r||e[12]!==l||e[13]!==a?(o=(0,c.jsxs)("div",{className:"mx-6 my-6 flex flex-col gap-2",children:[r,l,a]}),e[11]=r,e[12]=l,e[13]=a,e[14]=o):o=e[14],o};export{j as t}; diff --git a/docs/assets/en-US-DhMN8sxe.js b/docs/assets/en-US-DhMN8sxe.js new file mode 100644 index 0000000..08b1355 --- /dev/null +++ b/docs/assets/en-US-DhMN8sxe.js @@ -0,0 +1 @@ +import{n as g,t as y}from"./toDate-5JckKRQn.js";var b={};function v(){return b}function w(t){let a=y(t),e=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return e.setUTCFullYear(a.getFullYear()),t-+e}function p(t,...a){let e=g.bind(null,t||a.find(n=>typeof n=="object"));return a.map(e)}var M={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const W=(t,a,e)=>{let n,i=M[t];return n=typeof i=="string"?i:a===1?i.one:i.other.replace("{{count}}",a.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+n:n+" ago":n};function m(t){return(a={})=>{let e=a.width?String(a.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const P={date:m({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:m({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:m({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var k={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const S=(t,a,e,n)=>k[t];function d(t){return(a,e)=>{let n=e!=null&&e.context?String(e.context):"standalone",i;if(n==="formatting"&&t.formattingValues){let r=t.defaultFormattingWidth||t.defaultWidth,o=e!=null&&e.width?String(e.width):r;i=t.formattingValues[o]||t.formattingValues[r]}else{let r=t.defaultWidth,o=e!=null&&e.width?String(e.width):t.defaultWidth;i=t.values[o]||t.values[r]}let u=t.argumentCallback?t.argumentCallback(a):a;return i[u]}}const C={ordinalNumber:(t,a)=>{let e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:d({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:d({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:d({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:d({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:d({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return(a,e={})=>{let n=e.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],u=a.match(i);if(!u)return null;let r=u[0],o=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(o)?A(o,h=>h.test(r)):j(o,h=>h.test(r)),s;s=t.valueCallback?t.valueCallback(c):c,s=e.valueCallback?e.valueCallback(s):s;let f=a.slice(r.length);return{value:s,rest:f}}}function j(t,a){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&a(t[e]))return e}function A(t,a){for(let e=0;e{let n=a.match(t.matchPattern);if(!n)return null;let i=n[0],u=a.match(t.parsePattern);if(!u)return null;let r=t.valueCallback?t.valueCallback(u[0]):u[0];r=e.valueCallback?e.valueCallback(r):r;let o=a.slice(i.length);return{value:r,rest:o}}}const x={code:"en-US",formatDistance:W,formatLong:P,formatRelative:S,localize:C,match:{ordinalNumber:T({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};export{v as i,p as n,w as r,x as t}; diff --git a/docs/assets/erDiagram-Q2GNP2WA-C5cEKchg.js b/docs/assets/erDiagram-Q2GNP2WA-C5cEKchg.js new file mode 100644 index 0000000..9ecc4a6 --- /dev/null +++ b/docs/assets/erDiagram-Q2GNP2WA-C5cEKchg.js @@ -0,0 +1,60 @@ +var $;import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import{u as vt}from"./src-Bp_72rVO.js";import{c as Dt,g as Lt}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as h,r as x,t as Mt}from"./src-faGJHwXX.js";import{$ as wt,B as Bt,C as Ft,U as Yt,_ as Pt,a as zt,b as J,v as Gt,z as Kt}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as Ut}from"./channel-BftudkVr.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import{r as Zt,t as Wt}from"./chunk-N4CR4FBY-DtYoI569.js";import{t as jt}from"./chunk-55IACEB6-DvJ_-Ku-.js";import{t as Qt}from"./chunk-QN33PNHL-C0IBWhei.js";var ut=(function(){var i=h(function(r,u,c,s){for(c||(c={}),s=r.length;s--;c[r[s]]=u);return c},"o"),n=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],o=[1,10],y=[1,11],l=[1,12],a=[1,13],_=[1,20],m=[1,21],E=[1,22],v=[1,23],D=[1,24],N=[1,19],L=[1,25],U=[1,26],M=[1,18],tt=[1,33],et=[1,34],it=[1,35],st=[1,36],nt=[1,37],yt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],S=[1,43],w=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],T=[1,58],P=[1,62],z=[1,64],Z=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],dt=[63,64,65,66,67],pt=[1,81],_t=[1,80],mt=[1,78],gt=[1,79],bt=[6,10,42,47],I=[6,10,13,41,42,47,48,49],W=[1,89],j=[1,88],Q=[1,87],G=[19,56],ft=[1,98],Et=[1,97],rt=[19,56,58,60],at={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:h(function(r,u,c,s,d,t,K){var e=t.length-1;switch(d){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:s.addEntity(t[e-4]),s.addEntity(t[e-2]),s.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:s.addEntity(t[e-8]),s.addEntity(t[e-4]),s.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),s.setClass([t[e-8]],t[e-6]),s.setClass([t[e-4]],t[e-2]);break;case 10:s.addEntity(t[e-6]),s.addEntity(t[e-2]),s.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),s.setClass([t[e-6]],t[e-4]);break;case 11:s.addEntity(t[e-6]),s.addEntity(t[e-4]),s.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),s.setClass([t[e-4]],t[e-2]);break;case 12:s.addEntity(t[e-3]),s.addAttributes(t[e-3],t[e-1]);break;case 13:s.addEntity(t[e-5]),s.addAttributes(t[e-5],t[e-1]),s.setClass([t[e-5]],t[e-3]);break;case 14:s.addEntity(t[e-2]);break;case 15:s.addEntity(t[e-4]),s.setClass([t[e-4]],t[e-2]);break;case 16:s.addEntity(t[e]);break;case 17:s.addEntity(t[e-2]),s.setClass([t[e-2]],t[e]);break;case 18:s.addEntity(t[e-6],t[e-4]),s.addAttributes(t[e-6],t[e-1]);break;case 19:s.addEntity(t[e-8],t[e-6]),s.addAttributes(t[e-8],t[e-1]),s.setClass([t[e-8]],t[e-3]);break;case 20:s.addEntity(t[e-5],t[e-3]);break;case 21:s.addEntity(t[e-7],t[e-5]),s.setClass([t[e-7]],t[e-2]);break;case 22:s.addEntity(t[e-3],t[e-1]);break;case 23:s.addEntity(t[e-5],t[e-3]),s.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 32:s.setDirection("TB");break;case 33:s.setDirection("BT");break;case 34:s.setDirection("RL");break;case 35:s.setDirection("LR");break;case 36:this.$=t[e-3],s.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],s.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],s.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=s.Cardinality.ZERO_OR_ONE;break;case 70:this.$=s.Cardinality.ZERO_OR_MORE;break;case 71:this.$=s.Cardinality.ONE_OR_MORE;break;case 72:this.$=s.Cardinality.ONLY_ONE;break;case 73:this.$=s.Cardinality.MD_PARENT;break;case 74:this.$=s.Identification.NON_IDENTIFYING;break;case 75:this.$=s.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},i(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:y,26:l,28:a,29:14,30:15,31:16,32:17,33:_,34:m,35:E,36:v,37:D,40:N,43:L,44:U,50:M},i(n,[2,7],{1:[2,1]}),i(n,[2,3]),{9:27,11:9,22:o,24:y,26:l,28:a,29:14,30:15,31:16,32:17,33:_,34:m,35:E,36:v,37:D,40:N,43:L,44:U,50:M},i(n,[2,5]),i(n,[2,6]),i(n,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:tt,64:et,65:it,66:st,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},i(n,[2,27]),i(n,[2,28]),i(n,[2,29]),i(n,[2,30]),i(n,[2,31]),i(yt,[2,54]),i(yt,[2,55]),i(n,[2,32]),i(n,[2,33]),i(n,[2,34]),i(n,[2,35]),{16:41,40:O,41:S},{16:44,40:O,41:S},{16:45,40:O,41:S},i(n,[2,4]),{11:46,40:N,50:M},{16:47,40:O,41:S},{18:48,19:[1,49],51:50,52:51,56:w},{11:53,40:N,50:M},{62:54,68:[1,55],69:[1,56]},i(B,[2,69]),i(B,[2,70]),i(B,[2,71]),i(B,[2,72]),i(B,[2,73]),i(n,[2,24]),i(n,[2,25]),i(n,[2,26]),{13:F,38:57,41:Y,42:T,45:59,46:60,48:P,49:z},i(Z,[2,37]),i(Z,[2,38]),{16:65,40:O,41:S,42:T},{13:F,38:66,41:Y,42:T,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},i(n,[2,17],{61:32,12:69,17:[1,70],42:T,63:tt,64:et,65:it,66:st,67:nt}),{19:[1,71]},i(n,[2,14]),{18:72,19:[2,56],51:50,52:51,56:w},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:tt,64:et,65:it,66:st,67:nt},i(dt,[2,74]),i(dt,[2,75]),{6:pt,10:_t,39:77,42:mt,47:gt},{40:[1,82],41:[1,83]},i(bt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),i(I,[2,45]),i(I,[2,50]),i(I,[2,51]),i(I,[2,52]),i(I,[2,53]),i(n,[2,41],{42:T}),{6:pt,10:_t,39:85,42:mt,47:gt},{14:86,40:W,50:j,70:Q},{16:90,40:O,41:S},{11:91,40:N,50:M},{18:92,19:[1,93],51:50,52:51,56:w},i(n,[2,12]),{19:[2,57]},i(G,[2,58],{54:94,55:95,57:96,59:ft,60:Et}),i([19,56,59,60],[2,63]),i(n,[2,22],{15:[1,100],17:[1,99]}),i([40,50],[2,68]),i(n,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},i(n,[2,47]),i(n,[2,48]),i(n,[2,49]),i(Z,[2,39]),i(Z,[2,40]),i(I,[2,46]),i(n,[2,42]),i(n,[2,8]),i(n,[2,76]),i(n,[2,77]),i(n,[2,78]),{13:[1,102],42:T},{13:[1,104],15:[1,103]},{19:[1,105]},i(n,[2,15]),i(G,[2,59],{55:106,58:[1,107],60:Et}),i(G,[2,60]),i(rt,[2,64]),i(G,[2,67]),i(rt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:w},{16:110,40:O,41:S},i(bt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:W,50:j,70:Q},{16:112,40:O,41:S},{14:113,40:W,50:j,70:Q},i(n,[2,13]),i(G,[2,61]),{57:114,59:ft},{19:[1,115]},i(n,[2,20]),i(n,[2,23],{17:[1,116],42:T}),i(n,[2,11]),{13:[1,117],42:T},i(n,[2,10]),i(rt,[2,65]),i(n,[2,18]),{18:118,19:[1,119],51:50,52:51,56:w},{14:120,40:W,50:j,70:Q},{19:[1,121]},i(n,[2,21]),i(n,[2,9]),i(n,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:h(function(r,u){if(u.recoverable)this.trace(r);else{var c=Error(r);throw c.hash=u,c}},"parseError"),parse:h(function(r){var u=this,c=[0],s=[],d=[null],t=[],K=this.table,e="",q=0,kt=0,Ot=0,It=2,St=1,Ct=t.slice.call(arguments,1),p=Object.create(this.lexer),A={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(A.yy[ct]=this.yy[ct]);p.setInput(r,A.yy),A.yy.lexer=p,A.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var ot=p.yylloc;t.push(ot);var xt=p.options&&p.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $t(f){c.length-=2*f,d.length-=f,t.length-=f}h($t,"popStack");function Tt(){var f=s.pop()||p.lex()||St;return typeof f!="number"&&(f instanceof Array&&(s=f,f=s.pop()),f=u.symbols_[f]||f),f}h(Tt,"lex");for(var g,lt,R,b,ht,C={},H,k,Nt,V;;){if(R=c[c.length-1],this.defaultActions[R]?b=this.defaultActions[R]:(g??(g=Tt()),b=K[R]&&K[R][g]),b===void 0||!b.length||!b[0]){var At="";for(H in V=[],K[R])this.terminals_[H]&&H>It&&V.push("'"+this.terminals_[H]+"'");At=p.showPosition?"Parse error on line "+(q+1)+`: +`+p.showPosition()+` +Expecting `+V.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(q+1)+": Unexpected "+(g==St?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(At,{text:p.match,token:this.terminals_[g]||g,line:p.yylineno,loc:ot,expected:V})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+R+", token: "+g);switch(b[0]){case 1:c.push(g),d.push(p.yytext),t.push(p.yylloc),c.push(b[1]),g=null,lt?(g=lt,lt=null):(kt=p.yyleng,e=p.yytext,q=p.yylineno,ot=p.yylloc,Ot>0&&Ot--);break;case 2:if(k=this.productions_[b[1]][1],C.$=d[d.length-k],C._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},xt&&(C._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(C,[e,kt,q,A.yy,b[1],d,t].concat(Ct)),ht!==void 0)return ht;k&&(c=c.slice(0,-1*k*2),d=d.slice(0,-1*k),t=t.slice(0,-1*k)),c.push(this.productions_[b[1]][0]),d.push(C.$),t.push(C._$),Nt=K[c[c.length-2]][c[c.length-1]],c.push(Nt);break;case 3:return!0}}return!0},"parse")};at.lexer=(function(){return{EOF:1,parseError:h(function(r,u){if(this.yy.parser)this.yy.parser.parseError(r,u);else throw Error(r)},"parseError"),setInput:h(function(r,u){return this.yy=u||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:h(function(r){var u=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===s.length?this.yylloc.first_column:0)+s[s.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(r){this.unput(this.match.slice(r))},"less"),pastInput:h(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var r=this.pastInput(),u=Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+u+"^"},"showPosition"),test_match:h(function(r,u){var c,s,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),s=r[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],c=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var t in d)this[t]=d[t];return!1}return!1},"test_match"),next:h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,u,c,s;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),t=0;tu[0].length)){if(u=c,s=t,this.options.backtrack_lexer){if(r=this.test_match(c,d[t]),r!==!1)return r;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(r=this.test_match(u,d[s]),r===!1?!1:r):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:h(function(){return this.next()||this.lex()},"lex"),begin:h(function(r){this.conditionStack.push(r)},"begin"),popState:h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:h(function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},"topState"),pushState:h(function(r){this.begin(r)},"pushState"),stateStackSize:h(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:h(function(r,u,c,s){switch(c){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:return 56;case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;case 30:return u.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;case 40:return 43;case 41:return 63;case 42:return 65;case 43:return 65;case 44:return 65;case 45:return 63;case 46:return 63;case 47:return 64;case 48:return 64;case 49:return 64;case 50:return 64;case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:return 66;case 56:return 66;case 57:return 66;case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:return 69;case 65:return 69;case 66:return 68;case 67:return 68;case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return u.yytext[0];case 74:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:!0}}}})();function X(){this.yy={}}return h(X,"Parser"),X.prototype=at,at.Parser=X,new X})();ut.parser=ut;var Xt=ut,qt=($=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Bt,this.getAccTitle=Gt,this.setAccDescription=Kt,this.getAccDescription=Pt,this.setDiagramTitle=Yt,this.getDiagramTitle=Ft,this.getConfig=h(()=>J().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(n,o=""){var y;return this.entities.has(n)?!((y=this.entities.get(n))!=null&&y.alias)&&o&&(this.entities.get(n).alias=o,x.info(`Add alias '${o}' to entity '${n}'`)):(this.entities.set(n,{id:`entity-${n}-${this.entities.size}`,label:n,attributes:[],alias:o,shape:"erBox",look:J().look??"default",cssClasses:"default",cssStyles:[]}),x.info("Added new entity :",n)),this.entities.get(n)}getEntity(n){return this.entities.get(n)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(n,o){let y=this.addEntity(n),l;for(l=o.length-1;l>=0;l--)o[l].keys||(o[l].keys=[]),o[l].comment||(o[l].comment=""),y.attributes.push(o[l]),x.debug("Added attribute ",o[l].name)}addRelationship(n,o,y,l){let a=this.entities.get(n),_=this.entities.get(y);if(!a||!_)return;let m={entityA:a.id,roleA:o,entityB:_.id,relSpec:l};this.relationships.push(m),x.debug("Added new relationship :",m)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(n){this.direction=n}getCompiledStyles(n){let o=[];for(let y of n){let l=this.classes.get(y);l!=null&&l.styles&&(o=[...o,...l.styles??[]].map(a=>a.trim())),l!=null&&l.textStyles&&(o=[...o,...l.textStyles??[]].map(a=>a.trim()))}return o}addCssStyles(n,o){for(let y of n){let l=this.entities.get(y);if(!o||!l)return;for(let a of o)l.cssStyles.push(a)}}addClass(n,o){n.forEach(y=>{let l=this.classes.get(y);l===void 0&&(l={id:y,styles:[],textStyles:[]},this.classes.set(y,l)),o&&o.forEach(function(a){if(/color/.exec(a)){let _=a.replace("fill","bgFill");l.textStyles.push(_)}l.styles.push(a)})})}setClass(n,o){for(let y of n){let l=this.entities.get(y);if(l)for(let a of o)l.cssClasses+=" "+a}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],zt()}getData(){let n=[],o=[],y=J();for(let a of this.entities.keys()){let _=this.entities.get(a);_&&(_.cssCompiledStyles=this.getCompiledStyles(_.cssClasses.split(" ")),n.push(_))}let l=0;for(let a of this.relationships){let _={id:Dt(a.entityA,a.entityB,{prefix:"id",counter:l++}),type:"normal",curve:"basis",start:a.entityA,end:a.entityB,label:a.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:a.relSpec.cardB.toLowerCase(),arrowTypeEnd:a.relSpec.cardA.toLowerCase(),pattern:a.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:y.look};o.push(_)}return{nodes:n,edges:o,other:{},config:y,direction:"TB"}}},h($,"ErDB"),$),Rt={};Mt(Rt,{draw:()=>Ht});var Ht=h(async function(i,n,o,y){x.info("REF0:"),x.info("Drawing er diagram (unified)",n);let{securityLevel:l,er:a,layout:_}=J(),m=y.db.getData(),E=jt(n,l);m.type=y.type,m.layoutAlgorithm=Wt(_),m.config.flowchart.nodeSpacing=(a==null?void 0:a.nodeSpacing)||140,m.config.flowchart.rankSpacing=(a==null?void 0:a.rankSpacing)||80,m.direction=y.db.getDirection(),m.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],m.diagramId=n,await Zt(m,E),m.layoutAlgorithm==="elk"&&E.select(".edges").lower();let v=E.selectAll('[id*="-background"]');Array.from(v).length>0&&v.each(function(){let D=vt(this),N=D.attr("id").replace("-background",""),L=E.select(`#${CSS.escape(N)}`);if(!L.empty()){let U=L.attr("transform");D.attr("transform",U)}}),Lt.insertTitle(E,"erDiagramTitleText",(a==null?void 0:a.titleTopMargin)??25,y.db.getDiagramTitle()),Qt(E,8,"erDiagram",(a==null?void 0:a.useMaxWidth)??!0)},"draw"),Vt=h((i,n)=>{let o=Ut;return wt(o(i,"r"),o(i,"g"),o(i,"b"),n)},"fade"),Jt={parser:Xt,get db(){return new qt},renderer:Rt,styles:h(i=>` + .entityBox { + fill: ${i.mainBkg}; + stroke: ${i.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${i.tertiaryColor}; + opacity: 0.7; + background-color: ${i.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .labelBkg { + background-color: ${Vt(i.tertiaryColor,.5)}; + } + + .edgeLabel .label { + fill: ${i.nodeBorder}; + font-size: 14px; + } + + .label { + font-family: ${i.fontFamily}; + color: ${i.nodeTextColor||i.textColor}; + } + + .edge-pattern-dashed { + stroke-dasharray: 8,8; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon + { + fill: ${i.mainBkg}; + stroke: ${i.nodeBorder}; + stroke-width: 1px; + } + + .relationshipLine { + stroke: ${i.lineColor}; + stroke-width: 1; + fill: none; + } + + .marker { + fill: none !important; + stroke: ${i.lineColor} !important; + stroke-width: 1; + } +`,"getStyles")};export{Jt as diagram}; diff --git a/docs/assets/erb-r3C7bA9H.js b/docs/assets/erb-r3C7bA9H.js new file mode 100644 index 0000000..c219b6c --- /dev/null +++ b/docs/assets/erb-r3C7bA9H.js @@ -0,0 +1 @@ +import{t as e}from"./html-Bz1QLM72.js";import{t as n}from"./ruby-Dh6KaFMR.js";var t=Object.freeze(JSON.parse('{"displayName":"ERB","fileTypes":["erb","rhtml","html.erb"],"injections":{"text.html.erb - (meta.embedded.block.erb | meta.embedded.line.erb | comment)":{"patterns":[{"begin":"^(\\\\s*)(?=<%+#(?![^%]*%>))","beginCaptures":{"0":{"name":"punctuation.whitespace.comment.leading.erb"}},"end":"(?!\\\\G)(\\\\s*$\\\\n)?","endCaptures":{"0":{"name":"punctuation.whitespace.comment.trailing.erb"}},"patterns":[{"include":"#comment"}]},{"begin":"^(\\\\s*)(?=<%(?![^%]*%>))","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.erb"}},"end":"(?!\\\\G)(\\\\s*$\\\\n)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.erb"}},"patterns":[{"include":"#tags"}]},{"include":"#comment"},{"include":"#tags"}]}},"name":"erb","patterns":[{"include":"text.html.basic"}],"repository":{"comment":{"patterns":[{"begin":"<%+#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.erb"}},"end":"%>","endCaptures":{"0":{"name":"punctuation.definition.comment.end.erb"}},"name":"comment.block.erb"}]},"tags":{"patterns":[{"begin":"<%+(?!>)[-=]?(?![^%]*%>)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.erb"}},"contentName":"source.ruby","end":"(-?%)>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.erb"},"1":{"name":"source.ruby"}},"name":"meta.embedded.block.erb","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.erb"}},"match":"(#).*?(?=-?%>)","name":"comment.line.number-sign.erb"},{"include":"source.ruby"}]},{"begin":"<%+(?!>)[-=]?","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.erb"}},"contentName":"source.ruby","end":"(-?%)>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.erb"},"1":{"name":"source.ruby"}},"name":"meta.embedded.line.erb","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.erb"}},"match":"(#).*?(?=-?%>)","name":"comment.line.number-sign.erb"},{"include":"source.ruby"}]}]}},"scopeName":"text.html.erb","embeddedLangs":["html","ruby"]}')),a=[...e,...n,t];export{a as default}; diff --git a/docs/assets/erlang-CEe3KwR2.js b/docs/assets/erlang-CEe3KwR2.js new file mode 100644 index 0000000..f8b1087 --- /dev/null +++ b/docs/assets/erlang-CEe3KwR2.js @@ -0,0 +1 @@ +import{t as r}from"./erlang-EMEOk6kj.js";export{r as erlang}; diff --git a/docs/assets/erlang-EMEOk6kj.js b/docs/assets/erlang-EMEOk6kj.js new file mode 100644 index 0000000..3dc48dd --- /dev/null +++ b/docs/assets/erlang-EMEOk6kj.js @@ -0,0 +1 @@ +var S=["-type","-spec","-export_type","-opaque"],z=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],W=/[\->,;]/,E=["->",";",","],U=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],A=/[\+\-\*\/<>=\|:!]/,Z=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],q=/[<\(\[\{]/,m=["<<","(","[","{"],D=/[>\)\]\}]/,k=["}","]",")",">>"],N="is_atom.is_binary.is_bitstring.is_boolean.is_float.is_function.is_integer.is_list.is_number.is_pid.is_port.is_record.is_reference.is_tuple.atom.binary.bitstring.boolean.function.integer.list.number.pid.port.record.reference.tuple".split("."),O="abs.adler32.adler32_combine.alive.apply.atom_to_binary.atom_to_list.binary_to_atom.binary_to_existing_atom.binary_to_list.binary_to_term.bit_size.bitstring_to_list.byte_size.check_process_code.contact_binary.crc32.crc32_combine.date.decode_packet.delete_module.disconnect_node.element.erase.exit.float.float_to_list.garbage_collect.get.get_keys.group_leader.halt.hd.integer_to_list.internal_bif.iolist_size.iolist_to_binary.is_alive.is_atom.is_binary.is_bitstring.is_boolean.is_float.is_function.is_integer.is_list.is_number.is_pid.is_port.is_process_alive.is_record.is_reference.is_tuple.length.link.list_to_atom.list_to_binary.list_to_bitstring.list_to_existing_atom.list_to_float.list_to_integer.list_to_pid.list_to_tuple.load_module.make_ref.module_loaded.monitor_node.node.node_link.node_unlink.nodes.notalive.now.open_port.pid_to_list.port_close.port_command.port_connect.port_control.pre_loaded.process_flag.process_info.processes.purge_module.put.register.registered.round.self.setelement.size.spawn.spawn_link.spawn_monitor.spawn_opt.split_binary.statistics.term_to_binary.time.throw.tl.trunc.tuple_size.tuple_to_list.unlink.unregister.whereis".split("."),f=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,j=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function C(t,e){if(e.in_string)return e.in_string=!v(t),i(e,t,"string");if(e.in_atom)return e.in_atom=!b(t),i(e,t,"atom");if(t.eatSpace())return i(e,t,"whitespace");if(!_(e)&&t.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return a(t.current(),S)?i(e,t,"type"):i(e,t,"attribute");var n=t.next();if(n=="%")return t.skipToEnd(),i(e,t,"comment");if(n==":")return i(e,t,"colon");if(n=="?")return t.eatSpace(),t.eatWhile(f),i(e,t,"macro");if(n=="#")return t.eatSpace(),t.eatWhile(f),i(e,t,"record");if(n=="$")return t.next()=="\\"&&!t.match(j)?i(e,t,"error"):i(e,t,"number");if(n==".")return i(e,t,"dot");if(n=="'"){if(!(e.in_atom=!b(t))){if(t.match(/\s*\/\s*[0-9]/,!1))return t.match(/\s*\/\s*[0-9]/,!0),i(e,t,"fun");if(t.match(/\s*\(/,!1)||t.match(/\s*:/,!1))return i(e,t,"function")}return i(e,t,"atom")}if(n=='"')return e.in_string=!v(t),i(e,t,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(n))return t.eatWhile(f),i(e,t,"variable");if(/[a-z_ß-öø-ÿ]/.test(n)){if(t.eatWhile(f),t.match(/\s*\/\s*[0-9]/,!1))return t.match(/\s*\/\s*[0-9]/,!0),i(e,t,"fun");var r=t.current();return a(r,z)?i(e,t,"keyword"):a(r,U)?i(e,t,"operator"):t.match(/\s*\(/,!1)?a(r,O)&&(_(e).token!=":"||_(e,2).token=="erlang")?i(e,t,"builtin"):a(r,N)?i(e,t,"guard"):i(e,t,"function"):F(t)==":"?r=="erlang"?i(e,t,"builtin"):i(e,t,"function"):a(r,["true","false"])?i(e,t,"boolean"):i(e,t,"atom")}var c=/[0-9]/;return c.test(n)?(t.eatWhile(c),t.eat("#")?t.eatWhile(/[0-9a-zA-Z]/)||t.backUp(1):t.eat(".")&&(t.eatWhile(c)?t.eat(/[eE]/)&&(t.eat(/[-+]/)?t.eatWhile(c)||t.backUp(2):t.eatWhile(c)||t.backUp(1)):t.backUp(1)),i(e,t,"number")):g(t,q,m)?i(e,t,"open_paren"):g(t,D,k)?i(e,t,"close_paren"):y(t,W,E)?i(e,t,"separator"):y(t,A,Z)?i(e,t,"operator"):i(e,t,null)}function g(t,e,n){if(t.current().length==1&&e.test(t.current())){for(t.backUp(1);e.test(t.peek());)if(t.next(),a(t.current(),n))return!0;t.backUp(t.current().length-1)}return!1}function y(t,e,n){if(t.current().length==1&&e.test(t.current())){for(;e.test(t.peek());)t.next();for(;01&&t[e].type==="fun"&&t[e-1].token==="fun")return t.slice(0,e-1);switch(t[e].token){case"}":return s(t,{g:["{"]});case"]":return s(t,{i:["["]});case")":return s(t,{i:["("]});case">>":return s(t,{i:["<<"]});case"end":return s(t,{i:["begin","case","fun","if","receive","try"]});case",":return s(t,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return s(t,{r:["when"],m:["try","if","case","receive"]});case";":return s(t,{E:["case","fun","if","receive","try","when"]});case"catch":return s(t,{e:["try"]});case"of":return s(t,{e:["case"]});case"after":return s(t,{e:["receive","try"]});default:return t}}function s(t,e){for(var n in e)for(var r=t.length-1,c=e[n],o=r-1;-1"?a(u.token,["receive","case","if","try"])?u.column+n.unit+n.unit:u.column+n.unit:a(o.token,m)?o.column+o.token.length:(r=H(t),l(r)?r.column+n.unit:0):0}function B(t){var e=t.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return l(e)&&e.index===0?e[0]:""}function G(t){var e=t.tokenStack.slice(0,-1),n=p(e,"type",["open_paren"]);return l(e[n])?e[n]:!1}function H(t){var e=t.tokenStack,n=p(e,"type",["open_paren","separator","keyword"]),r=p(e,"type",["operator"]);return l(n)&&l(r)&&n>)","endCaptures":{"1":{"name":"punctuation.definition.binary.end.erlang"}},"name":"meta.structure.binary.erlang","patterns":[{"captures":{"1":{"name":"punctuation.separator.binary.erlang"},"2":{"name":"punctuation.separator.value-size.erlang"}},"match":"(,)|(:)"},{"include":"#internal-type-specifiers"},{"include":"#everything-else"}]},"character":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.character.erlang"},"2":{"name":"constant.character.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"},"5":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\$)((\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2}))","name":"constant.character.erlang"},{"match":"\\\\$\\\\\\\\\\\\^?.?","name":"invalid.illegal.character.erlang"},{"captures":{"1":{"name":"punctuation.definition.character.erlang"}},"match":"(\\\\$)[ \\\\S]","name":"constant.character.erlang"},{"match":"\\\\$.?","name":"invalid.illegal.character.erlang"}]},"comment":{"begin":"(^[\\\\t ]+)?(?=%)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.erlang"}},"end":"(?!\\\\G)","patterns":[{"begin":"%","beginCaptures":{"0":{"name":"punctuation.definition.comment.erlang"}},"end":"\\\\n","name":"comment.line.percentage.erlang"}]},"define-directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"include":"#everything-else"}]},{"begin":"(?=^\\\\s*+-\\\\s*+define\\\\s*+\\\\(\\\\s*+[@-Z_a-z\\\\d]++\\\\s*+\\\\()","end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.define.erlang","patterns":[{"begin":"^\\\\s*+(-)\\\\s*+(define)\\\\s*+(\\\\()\\\\s*+([@-Z_a-z\\\\d]++)\\\\s*+(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.define.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.definition.erlang"},"5":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))\\\\s*(,)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.separator.parameters.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"\\\\|\\\\||[,.:;|]|->","name":"punctuation.separator.define.erlang"},{"include":"#everything-else"}]}]},"directive":{"patterns":[{"begin":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\(?)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\)?)\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.erlang","patterns":[{"include":"#everything-else"}]},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.erlang"},"3":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\.)","name":"meta.directive.erlang"}]},"doc-directive":{"begin":"^\\\\s*+(-)\\\\s*+((module)?doc)\\\\s*(\\\\(\\\\s*)?(~[BSbs]?)?((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.doc.erlang"},"4":{"name":"punctuation.definition.parameters.begin.erlang"},"5":{"name":"storage.type.string.erlang"},"6":{"name":"comment.block.documentation.erlang"},"7":{"name":"punctuation.definition.string.begin.erlang"},"8":{"name":"invalid.illegal.string.erlang"}},"contentName":"meta.embedded.block.markdown","end":"^(\\\\s*(\\\\7))\\\\s*(\\\\)\\\\s*)?(\\\\.)","endCaptures":{"1":{"name":"comment.block.documentation.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"},"3":{"name":"punctuation.section.directive.end.Erlang"}},"name":"meta.directive.doc.erlang","patterns":[{"include":"text.html.markdown"}]},"docstring":{"begin":"(?)|(;)|(,)"},"internal-function-list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.function.erlang","patterns":[{"begin":"([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(/)","beginCaptures":{"1":{"name":"entity.name.function.erlang"},"2":{"name":"punctuation.separator.function-arity.erlang"}},"end":"(,)|(?=])","endCaptures":{"1":{"name":"punctuation.separator.list.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-function-parts":{"patterns":[{"begin":"(?=\\\\()","end":"(->)","endCaptures":{"1":{"name":"punctuation.separator.clause-head-body.erlang"}},"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"}},"patterns":[{"match":",","name":"punctuation.separator.parameters.erlang"},{"include":"#everything-else"}]},{"match":"[,;]","name":"punctuation.separator.guards.erlang"},{"include":"#everything-else"}]},{"match":",","name":"punctuation.separator.expressions.erlang"},{"include":"#everything-else"}]},"internal-record-body":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.class.record.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.class.record.end.erlang"}},"name":"meta.structure.record.erlang","patterns":[{"begin":"(([a-z][@-Z_a-z\\\\d]*+|'[^']*+')|(_))","beginCaptures":{"2":{"name":"variable.other.field.erlang"},"3":{"name":"variable.language.omitted.field.erlang"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.class.record.erlang"}},"patterns":[{"include":"#everything-else"}]},{"include":"#everything-else"}]},"internal-string-body":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.escape.erlang"},"3":{"name":"punctuation.definition.escape.erlang"}},"match":"(\\\\\\\\)([\\"'\\\\\\\\bdefnrstv]|(\\\\^)[@-_a-z]|[0-7]{1,3}|x[A-Fa-f\\\\d]{2})","name":"constant.character.escape.erlang"},{"match":"\\\\\\\\\\\\^?.?","name":"invalid.illegal.string.erlang"},{"include":"#internal-string-body-verbatim"}]},"internal-string-body-verbatim":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"},"6":{"name":"punctuation.separator.placeholder-parts.erlang"},"10":{"name":"punctuation.separator.placeholder-parts.erlang"}},"match":"(~)((-)?\\\\d++|(\\\\*))?((\\\\.)(\\\\d++|(\\\\*))?((\\\\.)((\\\\*)|.))?)?[Kklt]*[#+BPWXbcefginpswx~]","name":"constant.character.format.placeholder.other.erlang"},{"captures":{"1":{"name":"punctuation.definition.placeholder.erlang"}},"match":"(~)(\\\\*)?(\\\\d++)?(t)?[-#acdflsu~]","name":"constant.character.format.placeholder.other.erlang"},{"match":"~[^\\"]?","name":"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{"begin":"(/)","beginCaptures":{"1":{"name":"punctuation.separator.value-type.erlang"}},"end":"(?=[,:]|>>)","patterns":[{"captures":{"1":{"name":"storage.type.erlang"},"2":{"name":"storage.modifier.signedness.erlang"},"3":{"name":"storage.modifier.endianness.erlang"},"4":{"name":"storage.modifier.unit.erlang"},"5":{"name":"punctuation.separator.unit-specifiers.erlang"},"6":{"name":"constant.numeric.integer.decimal.erlang"},"7":{"name":"punctuation.separator.type-specifiers.erlang"}},"match":"(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|((?:|un)signed)|(big|little|native)|(unit)(:)(\\\\d++)|(-)"}]},"keyword":{"match":"\\\\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\\\\b","name":"keyword.control.erlang"},"language-constant":{"match":"\\\\b(false|true|undefined)\\\\b","name":"constant.language"},"list":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.list.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.list.end.erlang"}},"name":"meta.structure.list.erlang","patterns":[{"match":"\\\\|\\\\|??|,","name":"punctuation.separator.list.erlang"},{"include":"#everything-else"}]},"macro-directive":{"patterns":[{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifdef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifdef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifdef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.ifndef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(ifndef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.ifndef.erlang"},{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.undef.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.function.macro.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(undef)\\\\s*+(\\\\()\\\\s*+([@-z\\\\d]++)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.undef.erlang"}]},"macro-usage":{"captures":{"1":{"name":"keyword.operator.macro.erlang"},"2":{"name":"entity.name.function.macro.erlang"}},"match":"(\\\\?\\\\??)\\\\s*+([@-Z_a-z\\\\d]++)","name":"meta.macro-usage.erlang"},"module-directive":{"captures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.module.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.module.definition.erlang"},"5":{"name":"punctuation.definition.parameters.end.erlang"},"6":{"name":"punctuation.section.directive.end.erlang"}},"match":"^\\\\s*+(-)\\\\s*+(module)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+)\\\\s*+(\\\\))\\\\s*+(\\\\.)","name":"meta.directive.module.erlang"},"number":{"begin":"(?=\\\\d)","end":"(?!\\\\d)","patterns":[{"captures":{"1":{"name":"punctuation.separator.integer-float.erlang"},"2":{"name":"punctuation.separator.float-exponent.erlang"}},"match":"\\\\d++(\\\\.)\\\\d++([Ee][-+]?\\\\d++)?","name":"constant.numeric.float.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"2(#)([01]++_)*[01]++","name":"constant.numeric.integer.binary.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"3(#)([012]++_)*[012]++","name":"constant.numeric.integer.base-3.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"4(#)([0-3]++_)*[0-3]++","name":"constant.numeric.integer.base-4.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"5(#)([0-4]++_)*[0-4]++","name":"constant.numeric.integer.base-5.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"6(#)([0-5]++_)*[0-5]++","name":"constant.numeric.integer.base-6.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"7(#)([0-6]++_)*[0-6]++","name":"constant.numeric.integer.base-7.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"8(#)([0-7]++_)*[0-7]++","name":"constant.numeric.integer.octal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"9(#)([0-8]++_)*[0-8]++","name":"constant.numeric.integer.base-9.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"10(#)(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"11(#)([Aa\\\\d]++_)*[Aa\\\\d]++","name":"constant.numeric.integer.base-11.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"12(#)([ABab\\\\d]++_)*[ABab\\\\d]++","name":"constant.numeric.integer.base-12.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"13(#)([ABCabc\\\\d]++_)*[ABCabc\\\\d]++","name":"constant.numeric.integer.base-13.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"14(#)([A-Da-d\\\\d]++_)*[A-Da-d\\\\d]++","name":"constant.numeric.integer.base-14.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"15(#)([A-Ea-e\\\\d]++_)*[A-Ea-e\\\\d]++","name":"constant.numeric.integer.base-15.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"16(#)([A-Fa-f\\\\d]++_)*[A-Fa-f\\\\d]++","name":"constant.numeric.integer.hexadecimal.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"17(#)([A-Ga-g\\\\d]++_)*[A-Ga-g\\\\d]++","name":"constant.numeric.integer.base-17.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"18(#)([A-Ha-h\\\\d]++_)*[A-Ha-h\\\\d]++","name":"constant.numeric.integer.base-18.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"19(#)([A-Ia-i\\\\d]++_)*[A-Ia-i\\\\d]++","name":"constant.numeric.integer.base-19.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"20(#)([A-Ja-j\\\\d]++_)*[A-Ja-j\\\\d]++","name":"constant.numeric.integer.base-20.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"21(#)([A-Ka-k\\\\d]++_)*[A-Ka-k\\\\d]++","name":"constant.numeric.integer.base-21.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"22(#)([A-La-l\\\\d]++_)*[A-La-l\\\\d]++","name":"constant.numeric.integer.base-22.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"23(#)([A-Ma-m\\\\d]++_)*[A-Ma-m\\\\d]++","name":"constant.numeric.integer.base-23.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"24(#)([A-Na-n\\\\d]++_)*[A-Na-n\\\\d]++","name":"constant.numeric.integer.base-24.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"25(#)([A-Oa-o\\\\d]++_)*[A-Oa-o\\\\d]++","name":"constant.numeric.integer.base-25.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"26(#)([A-Pa-p\\\\d]++_)*[A-Pa-p\\\\d]++","name":"constant.numeric.integer.base-26.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"27(#)([A-Qa-q\\\\d]++_)*[A-Qa-q\\\\d]++","name":"constant.numeric.integer.base-27.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"28(#)([A-Ra-r\\\\d]++_)*[A-Ra-r\\\\d]++","name":"constant.numeric.integer.base-28.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"29(#)([A-Sa-s\\\\d]++_)*[A-Sa-s\\\\d]++","name":"constant.numeric.integer.base-29.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"30(#)([A-Ta-t\\\\d]++_)*[A-Ta-t\\\\d]++","name":"constant.numeric.integer.base-30.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"31(#)([A-Ua-u\\\\d]++_)*[A-Ua-u\\\\d]++","name":"constant.numeric.integer.base-31.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"32(#)([A-Va-v\\\\d]++_)*[A-Va-v\\\\d]++","name":"constant.numeric.integer.base-32.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"33(#)([A-Wa-w\\\\d]++_)*[A-Wa-w\\\\d]++","name":"constant.numeric.integer.base-33.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"34(#)([A-Xa-x\\\\d]++_)*[A-Xa-x\\\\d]++","name":"constant.numeric.integer.base-34.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"35(#)([A-Ya-y\\\\d]++_)*[A-Ya-y\\\\d]++","name":"constant.numeric.integer.base-35.erlang"},{"captures":{"1":{"name":"punctuation.separator.base-integer.erlang"}},"match":"36(#)([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"constant.numeric.integer.base-36.erlang"},{"match":"\\\\d++#([A-Za-z\\\\d]++_)*[A-Za-z\\\\d]++","name":"invalid.illegal.integer.erlang"},{"match":"(\\\\d++_)*\\\\d++","name":"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.expression.end.erlang"}},"name":"meta.expression.parenthesized","patterns":[{"include":"#everything-else"}]},"record-directive":{"begin":"^\\\\s*+(-)\\\\s*+(record)\\\\s*+(\\\\()\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(,)","beginCaptures":{"1":{"name":"punctuation.section.directive.begin.erlang"},"2":{"name":"keyword.control.directive.import.erlang"},"3":{"name":"punctuation.definition.parameters.begin.erlang"},"4":{"name":"entity.name.type.class.record.definition.erlang"},"5":{"name":"punctuation.separator.parameters.erlang"}},"end":"(\\\\))\\\\s*+(\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.erlang"},"2":{"name":"punctuation.section.directive.end.erlang"}},"name":"meta.directive.record.erlang","patterns":[{"include":"#internal-record-body"},{"include":"#comment"}]},"record-usage":{"patterns":[{"captures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"},"3":{"name":"punctuation.separator.record-field.erlang"},"4":{"name":"variable.other.field.erlang"}},"match":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')\\\\s*+(\\\\.)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","name":"meta.record-usage.erlang"},{"begin":"(#)\\\\s*+([a-z][@-Z_a-z\\\\d]*+|'[^']*+')","beginCaptures":{"1":{"name":"keyword.operator.record.erlang"},"2":{"name":"entity.name.type.class.record.erlang"}},"end":"(?<=})","name":"meta.record-usage.erlang","patterns":[{"include":"#internal-record-body"}]}]},"sigil-docstring":{"begin":"(~[bs])((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-docstring-verbatim":{"begin":"(~[BS]?)((\\"{3,})\\\\s*)(\\\\S.*)?$","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"meta.string.quoted.triple.begin.erlang"},"3":{"name":"punctuation.definition.string.begin.erlang"},"4":{"name":"invalid.illegal.string.erlang"}},"end":"^(\\\\s*(\\\\3))(?!\\")","endCaptures":{"1":{"name":"meta.string.quoted.triple.end.erlang"},"2":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.tripple.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string":{"patterns":[{"include":"#sigil-string-parenthesis"},{"include":"#sigil-string-parenthesis-verbatim"},{"include":"#sigil-string-curly-brackets"},{"include":"#sigil-string-curly-brackets-verbatim"},{"include":"#sigil-string-square-brackets"},{"include":"#sigil-string-square-brackets-verbatim"},{"include":"#sigil-string-less-greater"},{"include":"#sigil-string-less-greater-verbatim"},{"include":"#sigil-string-single-character"},{"include":"#sigil-string-single-character-verbatim"},{"include":"#sigil-string-single-quote"},{"include":"#sigil-string-single-quote-verbatim"},{"include":"#sigil-string-double-quote"},{"include":"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{"begin":"(~[bs]?)(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{"begin":"(~[BS])(\\\\{)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.curly-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-double-quote":{"begin":"(~[bs]?)(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{"begin":"(~[BS])(\\")","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-less-greater":{"begin":"(~[bs]?)(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{"begin":"(~[BS])(<)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.less-greater.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-parenthesis":{"begin":"(~[bs]?)(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{"begin":"(~[BS])(\\\\()","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.parenthesis.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-character":{"begin":"(~[bs]?)([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-character-verbatim":{"begin":"(~[BS])([#/\`|])","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.other.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-single-quote":{"begin":"(~[bs]?)(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{"begin":"(~[BS])(')","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.single.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"sigil-string-square-brackets":{"begin":"(~[bs]?)(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{"begin":"(~[BS])(\\\\[)","beginCaptures":{"1":{"name":"storage.type.string.erlang"},"2":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.square-brackets.sigil.erlang","patterns":[{"include":"#internal-string-body-verbatim"}]},"string":{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.erlang"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.erlang"}},"name":"string.quoted.double.erlang","patterns":[{"include":"#internal-string-body"}]},"symbolic-operator":{"match":"\\\\+\\\\+?|--|[-*]|/=?|=/=|=:=|==|==|[!>]|::|\\\\?=","name":"keyword.operator.symbolic.erlang"},"textual-operator":{"match":"\\\\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\\\\b","name":"keyword.operator.textual.erlang"},"tuple":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.tuple.begin.erlang"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.tuple.end.erlang"}},"name":"meta.structure.tuple.erlang","patterns":[{"match":",","name":"punctuation.separator.tuple.erlang"},{"include":"#everything-else"}]},"variable":{"captures":{"1":{"name":"variable.other.erlang"},"2":{"name":"variable.language.omitted.erlang"}},"match":"(_[@-Z_a-z\\\\d]++|[A-Z][@-Z_a-z\\\\d]*+)|(_)"}},"scopeName":"source.erlang","embeddedLangs":["markdown"],"aliases":["erl"]}`)),a=[...e,n];export{a as default}; diff --git a/docs/assets/error-banner-Cq4Yn1WZ.js b/docs/assets/error-banner-Cq4Yn1WZ.js new file mode 100644 index 0000000..39af62f --- /dev/null +++ b/docs/assets/error-banner-Cq4Yn1WZ.js @@ -0,0 +1 @@ +import{s as j}from"./chunk-LvLJmgfZ.js";import{t as y}from"./react-BGmjiNul.js";import{t as N}from"./compiler-runtime-DeeZ7FnK.js";import{d as _}from"./hotkeys-uKX61F1_.js";import{t as C}from"./jsx-runtime-DN_bIXfG.js";import{n as S,t as O}from"./cn-C1rgT0yh.js";import{a as E,c as F,i as V,l as A,n as D,s as T,t as q}from"./alert-dialog-jcHA5geR.js";import{r as z}from"./errors-z7WpYca5.js";var g=N(),B=j(y(),1),r=j(C(),1);const G=b=>{let e=(0,g.c)(23),{error:l,className:t,action:a}=b,[n,c]=(0,B.useState)(!1);if(!l)return null;_.error(l);let s;e[0]===l?s=e[1]:(s=z(l),e[0]=l,e[1]=s);let o=s,f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=()=>c(!0),e[2]=f):f=e[2];let i;e[3]===o?i=e[4]:(i=(0,r.jsx)("span",{className:"line-clamp-4",children:o}),e[3]=o,e[4]=i);let d;e[5]===a?d=e[6]:(d=a&&(0,r.jsx)("div",{className:"flex justify-end",children:a}),e[5]=a,e[6]=d);let m;e[7]!==t||e[8]!==i||e[9]!==d?(m=(0,r.jsxs)(v,{kind:"danger",className:t,clickable:!0,onClick:f,children:[i,d]}),e[7]=t,e[8]=i,e[9]=d,e[10]=m):m=e[10];let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=(0,r.jsx)(F,{children:(0,r.jsx)(A,{className:"text-error",children:"Error"})}),e[11]=k):k=e[11];let h;e[12]===o?h=e[13]:(h=(0,r.jsx)(E,{asChild:!0,className:"text-error text-sm p-2 font-mono overflow-auto whitespace-pre-wrap",children:(0,r.jsx)("pre",{children:o})}),e[12]=o,e[13]=h);let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=(0,r.jsx)(T,{children:(0,r.jsx)(D,{autoFocus:!0,onClick:()=>c(!1),children:"Ok"})}),e[14]=w):w=e[14];let x;e[15]===h?x=e[16]:(x=(0,r.jsxs)(V,{className:"max-w-[80%] max-h-[80%] overflow-hidden flex flex-col",children:[k,h,w]}),e[15]=h,e[16]=x);let p;e[17]!==n||e[18]!==x?(p=(0,r.jsx)(q,{open:n,onOpenChange:c,children:x}),e[17]=n,e[18]=x,e[19]=p):p=e[19];let u;return e[20]!==p||e[21]!==m?(u=(0,r.jsxs)(r.Fragment,{children:[m,p]}),e[20]=p,e[21]=m,e[22]=u):u=e[22],u};var H=S("text-sm p-2 border whitespace-pre-wrap overflow-hidden",{variants:{kind:{danger:"text-error border-(--red-6) shadow-md-solid shadow-error bg-(--red-1)",info:"text-primary border-(--blue-6) shadow-md-solid shadow-accent bg-(--blue-1)",warn:"border-(--yellow-6) bg-(--yellow-2) dark:bg-(--yellow-4) text-(--yellow-11) dark:text-(--yellow-12)"},clickable:{true:"cursor-pointer"}},compoundVariants:[{clickable:!0,kind:"danger",className:"hover:bg-(--red-3)"},{clickable:!0,kind:"info",className:"hover:bg-(--blue-3)"},{clickable:!0,kind:"warn",className:"hover:bg-(--yellow-3)"}],defaultVariants:{kind:"info"}});const v=b=>{let e=(0,g.c)(14),l,t,a,n,c;e[0]===b?(l=e[1],t=e[2],a=e[3],n=e[4],c=e[5]):({kind:n,clickable:a,className:t,children:l,...c}=b,e[0]=b,e[1]=l,e[2]=t,e[3]=a,e[4]=n,e[5]=c);let s;e[6]!==t||e[7]!==a||e[8]!==n?(s=O(H({kind:n,clickable:a}),t),e[6]=t,e[7]=a,e[8]=n,e[9]=s):s=e[9];let o;return e[10]!==l||e[11]!==c||e[12]!==s?(o=(0,r.jsx)("div",{className:s,...c,children:l}),e[10]=l,e[11]=c,e[12]=s,e[13]=o):o=e[13],o};export{G as n,v as t}; diff --git a/docs/assets/error-panel-BCy5nltz.js b/docs/assets/error-panel-BCy5nltz.js new file mode 100644 index 0000000..37743d7 --- /dev/null +++ b/docs/assets/error-panel-BCy5nltz.js @@ -0,0 +1 @@ +import{s as i}from"./chunk-LvLJmgfZ.js";import"./useEvent-DlWF5OMa.js";import{t as l}from"./react-BGmjiNul.js";import{D as a}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as s}from"./compiler-runtime-DeeZ7FnK.js";import"./config-CENq_7Pd.js";import{t as c}from"./jsx-runtime-DN_bIXfG.js";import"./dist-CAcX026F.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{t as d}from"./createLucideIcon-CW2xpJ57.js";import{t as h}from"./MarimoErrorOutput-DAK6volb.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import"./Combination-D1TsGrBC.js";import{n as f}from"./cell-link-D7bPw7Fz.js";import{t as n}from"./empty-state-H6r25Wek.js";var x=d("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),y=s();l();var r=i(c(),1),k=()=>{let t=(0,y.c)(5),e=a();if(e.length===0){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsx)(n,{title:"No errors!",icon:(0,r.jsx)(x,{})}),t[0]=p):p=t[0],p}let o;t[1]===e?o=t[2]:(o=e.map(u),t[1]=e,t[2]=o);let m;return t[3]===o?m=t[4]:(m=(0,r.jsx)("div",{className:"flex flex-col h-full overflow-auto",children:o}),t[3]=o,t[4]=m),m};function u(t){return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs font-mono font-semibold bg-muted border-y px-2 py-1",children:(0,r.jsx)(f,{cellId:t.cellId})}),(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(h,{errors:t.output.data,cellId:t.cellId},t.cellId)},t.cellId)]},t.cellId)}export{k as default}; diff --git a/docs/assets/errors-z7WpYca5.js b/docs/assets/errors-z7WpYca5.js new file mode 100644 index 0000000..d7bf584 --- /dev/null +++ b/docs/assets/errors-z7WpYca5.js @@ -0,0 +1 @@ +import{P as n,R as c}from"./zod-Cg4WLWh2.js";var s=n({detail:c()}),o=n({error:c()});function i(r){if(!r)return"Unknown error";if(r instanceof Error){let e=s.safeParse(r.cause);return e.success?e.data.detail:u(r.message)}if(typeof r=="object"){let e=s.safeParse(r);if(e.success)return e.data.detail;let t=o.safeParse(r);if(t.success)return t.data.error}try{return JSON.stringify(r)}catch{return String(r)}}function u(r){let e=l(r);if(!e)return r;let t=s.safeParse(e);if(t.success)return t.data.detail;let a=o.safeParse(e);return a.success?a.data.error:r}function l(r){try{return JSON.parse(r)}catch{return r}}var f=class extends Error{constructor(r="The cell containing this UI element has not been run yet. Please run the cell first."){super(r),this.name="CellNotInitializedError"}},d=class extends Error{constructor(r="Not yet connected to a kernel."){super(r),this.name="NoKernelConnectedError"}};export{d as n,i as r,f as t}; diff --git a/docs/assets/es-BJsT6vfZ.js b/docs/assets/es-BJsT6vfZ.js new file mode 100644 index 0000000..36bb600 --- /dev/null +++ b/docs/assets/es-BJsT6vfZ.js @@ -0,0 +1,2 @@ +import{i as W}from"./useEvent-DlWF5OMa.js";import{bn as B,ri as $,y as G}from"./cells-CmJW_FeD.js";import{t as v}from"./requests-C0HaHO6a.js";function R({moduleName:e,variableName:t,onAddImport:r,appStore:n=W}){if(t in n.get(B))return!1;let{cellData:a,cellIds:i}=n.get(G),o=RegExp(`import[ ]+${e}[ ]+as[ ]+${t}`,"g");for(let l of i.inOrderIds)if(o.test(a[l].code))return!1;return r(`import ${e} as ${t}`),!0}function Q({autoInstantiate:e,createNewCell:t,fromCellId:r,before:n}){let a=v(),i=null;return R({moduleName:"marimo",variableName:"mo",onAddImport:o=>{i=$.create(),t({cellId:r??"__end__",before:n??!1,code:o,lastCodeRun:e?o:void 0,newCellId:i,skipIfCodeExists:!0,autoFocus:!1}),e&&a.sendRun({cellIds:[i],codes:[o]})}})?i:null}function X({autoInstantiate:e,createNewCell:t,fromCellId:r}){let n=v(),a=null;return R({moduleName:"altair",variableName:"alt",onAddImport:i=>{a=$.create(),t({cellId:r??"__end__",before:!1,code:i,lastCodeRun:e?i:void 0,newCellId:a,skipIfCodeExists:!0,autoFocus:!1}),e&&n.sendRun({cellIds:[a],codes:[i]})}})?a:null}function J(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let r=document.implementation.createHTMLDocument(),n=r.createElement("base"),a=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(a),t&&(n.href=t),a.href=e,a.href}const K=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function d(e){let t=[];for(let r=0,n=e.length;ru||e.height>u)&&(e.width>u&&e.height>u?e.width>e.height?(e.height*=u/e.width,e.width=u):(e.width*=u/e.height,e.height=u):e.width>u?(e.height*=u/e.width,e.width=u):(e.width*=u/e.height,e.height=u))}function w(e){return new Promise((t,r)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function re(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function ne(e,t,r){let n="http://www.w3.org/2000/svg",a=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return a.setAttribute("width",`${t}`),a.setAttribute("height",`${r}`),a.setAttribute("viewBox",`0 0 ${t} ${r}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),a.appendChild(i),i.appendChild(e),re(a)}const s=(e,t)=>{if(e instanceof t)return!0;let r=Object.getPrototypeOf(e);return r===null?!1:r.constructor.name===t.name||s(r,t)};function ae(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function ie(e,t){return I(t).map(r=>`${r}: ${e.getPropertyValue(r)}${e.getPropertyPriority(r)?" !important":""};`).join(" ")}function oe(e,t,r,n){let a=`.${e}:${t}`,i=r.cssText?ae(r):ie(r,n);return document.createTextNode(`${a}{${i}}`)}function N(e,t,r,n){let a=window.getComputedStyle(e,r),i=a.getPropertyValue("content");if(i===""||i==="none")return;let o=K();try{t.className=`${t.className} ${o}`}catch{return}let l=document.createElement("style");l.appendChild(oe(o,r,a,n)),t.appendChild(l)}function le(e,t,r){N(e,t,":before",r),N(e,t,":after",r)}var T="application/font-woff",A="image/jpeg",ce={woff:T,woff2:T,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:A,jpeg:A,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function se(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function E(e){return ce[se(e).toLowerCase()]||""}function ue(e){return e.split(/,/)[1]}function S(e){return e.search(/^(data:)/)!==-1}function k(e,t){return`data:${t};base64,${e}`}async function L(e,t,r){let n=await fetch(e,t);if(n.status===404)throw Error(`Resource "${n.url}" not found`);let a=await n.blob();return new Promise((i,o)=>{let l=new FileReader;l.onerror=o,l.onloadend=()=>{try{i(r({res:n,result:l.result}))}catch(c){o(c)}},l.readAsDataURL(a)})}var C={};function de(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function x(e,t,r){let n=de(e,t,r.includeQueryParams);if(C[n]!=null)return C[n];r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let a;try{a=k(await L(e,r.fetchRequestInit,({res:i,result:o})=>(t||(t=i.headers.get("Content-Type")||""),ue(o))),t)}catch(i){a=r.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;i&&(o=typeof i=="string"?i:i.message),o&&console.warn(o)}return C[n]=a,a}async function he(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):w(t)}async function fe(e,t){if(e.currentSrc){let n=document.createElement("canvas"),a=n.getContext("2d");return n.width=e.clientWidth,n.height=e.clientHeight,a==null||a.drawImage(e,0,0,n.width,n.height),w(n.toDataURL())}let r=e.poster;return w(await x(r,E(r),t))}async function me(e,t){var r;try{if((r=e==null?void 0:e.contentDocument)!=null&&r.body)return await y(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function ge(e,t){return s(e,HTMLCanvasElement)?he(e):s(e,HTMLVideoElement)?fe(e,t):s(e,HTMLIFrameElement)?me(e,t):e.cloneNode(F(e))}var pe=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",F=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function we(e,t,r){var a;if(F(t))return t;let n=[];return n=pe(e)&&e.assignedNodes?d(e.assignedNodes()):s(e,HTMLIFrameElement)&&((a=e.contentDocument)!=null&&a.body)?d(e.contentDocument.body.childNodes):d((e.shadowRoot??e).childNodes),n.length===0||s(e,HTMLVideoElement)||await n.reduce((i,o)=>i.then(()=>y(o,r)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function ye(e,t,r){let n=t.style;if(!n)return;let a=window.getComputedStyle(e);a.cssText?(n.cssText=a.cssText,n.transformOrigin=a.transformOrigin):I(r).forEach(i=>{let o=a.getPropertyValue(i);i==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),s(e,HTMLIFrameElement)&&i==="display"&&o==="inline"&&(o="block"),i==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(i,o,a.getPropertyPriority(i))})}function be(e,t){s(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),s(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ee(e,t){if(s(e,HTMLSelectElement)){let r=t,n=Array.from(r.children).find(a=>e.value===a.getAttribute("value"));n&&n.setAttribute("selected","")}}function Se(e,t,r){return s(t,Element)&&(ye(e,t,r),le(e,t,r),be(e,t),Ee(e,t)),t}async function Ce(e,t){let r=e.querySelectorAll?e.querySelectorAll("use"):[];if(r.length===0)return e;let n={};for(let i=0;ige(n,t)).then(n=>we(e,n,t)).then(n=>Se(e,n,t)).then(n=>Ce(n,t))}var H=/url\((['"]?)([^'"]+?)\1\)/g,xe=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,$e=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function ve(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Re(e){let t=[];return e.replace(H,(r,n,a)=>(t.push(a),r)),t.filter(r=>!S(r))}async function Ie(e,t,r,n,a){try{let i=r?J(t,r):t,o=E(t),l;return l=a?k(await a(i),o):await x(i,o,n),e.replace(ve(t),`$1${l}$3`)}catch{}return e}function Pe(e,{preferredFontFormat:t}){return t?e.replace($e,r=>{for(;;){let[n,,a]=xe.exec(r)||[];if(!a)return"";if(a===t)return`src: ${n};`}}):e}function M(e){return e.search(H)!==-1}async function D(e,t,r){if(!M(e))return e;let n=Pe(e,r);return Re(n).reduce((a,i)=>a.then(o=>Ie(o,i,t,r)),Promise.resolve(n))}async function f(e,t,r){var a;let n=(a=t.style)==null?void 0:a.getPropertyValue(e);if(n){let i=await D(n,null,r);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function Ne(e,t){await f("background",e,t)||await f("background-image",e,t),await f("mask",e,t)||await f("-webkit-mask",e,t)||await f("mask-image",e,t)||await f("-webkit-mask-image",e,t)}async function Te(e,t){let r=s(e,HTMLImageElement);if(!(r&&!S(e.src))&&!(s(e,SVGImageElement)&&!S(e.href.baseVal)))return;let n=r?e.src:e.href.baseVal,a=await x(n,E(n),t);await new Promise((i,o)=>{e.onload=i,e.onerror=t.onImageErrorHandler?(...c)=>{try{i(t.onImageErrorHandler(...c))}catch(h){o(h)}}:o;let l=e;l.decode&&(l.decode=i),l.loading==="lazy"&&(l.loading="eager"),r?(e.srcset="",e.src=a):e.href.baseVal=a})}async function Ae(e,t){let r=d(e.childNodes).map(n=>V(n,t));await Promise.all(r).then(()=>e)}async function V(e,t){s(e,Element)&&(await Ne(e,t),await Te(e,t),await Ae(e,t))}function ke(e,t){let{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(a=>{r[a]=n[a]}),e}var O={};async function _(e){let t=O[e];return t??(t={url:e,cssText:await(await fetch(e)).text()},O[e]=t,t)}async function j(e,t){let r=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,a=(r.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),L(o,t.fetchRequestInit,({result:l})=>(r=r.replace(i,`url(${l})`),[i,l]))});return Promise.all(a).then(()=>r)}function U(e){if(e==null)return[];let t=[],r=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),n=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let o=n.exec(r);if(o===null)break;t.push(o[0])}r=r.replace(n,"");let a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let o=a.exec(r);if(o===null){if(o=i.exec(r),o===null)break;a.lastIndex=i.lastIndex}else i.lastIndex=a.lastIndex;t.push(o[0])}return t}async function Le(e,t){let r=[],n=[];return e.forEach(a=>{if("cssRules"in a)try{d(a.cssRules||[]).forEach((i,o)=>{if(i.type===CSSRule.IMPORT_RULE){let l=o+1,c=i.href,h=_(c).then(m=>j(m,t)).then(m=>U(m).forEach(b=>{try{a.insertRule(b,b.startsWith("@import")?l+=1:a.cssRules.length)}catch(z){console.error("Error inserting rule from remote css",{rule:b,error:z})}})).catch(m=>{console.error("Error loading remote css",m.toString())});n.push(h)}})}catch(i){let o=e.find(l=>l.href==null)||document.styleSheets[0];a.href!=null&&n.push(_(a.href).then(l=>j(l,t)).then(l=>U(l).forEach(c=>{o.insertRule(c,o.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",i)}}),Promise.all(n).then(()=>(e.forEach(a=>{if("cssRules"in a)try{d(a.cssRules||[]).forEach(i=>{r.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${a.href}`,i)}}),r))}function Fe(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>M(t.style.getPropertyValue("src")))}async function He(e,t){if(e.ownerDocument==null)throw Error("Provided element is not within a Document");return Fe(await Le(d(e.ownerDocument.styleSheets),t))}function q(e){return e.trim().replace(/["']/g,"")}function Me(e){let t=new Set;function r(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(a=>{t.add(q(a))}),Array.from(n.children).forEach(a=>{a instanceof HTMLElement&&r(a)})}return r(e),t}async function De(e,t){let r=await He(e,t),n=Me(e);return(await Promise.all(r.filter(a=>n.has(q(a.style.fontFamily))).map(a=>{let i=a.parentStyleSheet?a.parentStyleSheet.href:null;return D(a.cssText,i,t)}))).join(` +`)}async function Ve(e,t){let r=t.fontEmbedCSS==null?t.skipFonts?null:await De(e,t):t.fontEmbedCSS;if(r){let n=document.createElement("style"),a=document.createTextNode(r);n.appendChild(a),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function Oe(e,t={}){let{width:r,height:n}=P(e,t),a=await y(e,t,!0);return await Ve(a,t),await V(a,t),ke(a,t),await ne(a,r,n)}async function _e(e,t={}){let{width:r,height:n}=P(e,t),a=await w(await Oe(e,t)),i=document.createElement("canvas"),o=i.getContext("2d"),l=t.pixelRatio||ee(),c=t.canvasWidth||r,h=t.canvasHeight||n;return i.width=c*l,i.height=h*l,t.skipAutoScale||te(i),i.style.width=`${c}`,i.style.height=`${h}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,i.width,i.height)),o.drawImage(a,0,0,i.width,i.height),i}async function je(e,t={}){return(await _e(e,t)).toDataURL()}export{X as n,Q as r,je as t}; diff --git a/docs/assets/es-FiXEquL2.js b/docs/assets/es-FiXEquL2.js new file mode 100644 index 0000000..7390b46 --- /dev/null +++ b/docs/assets/es-FiXEquL2.js @@ -0,0 +1,5 @@ +import{s as sa,t as ci}from"./chunk-LvLJmgfZ.js";import{t as ri}from"./react-BGmjiNul.js";import{t as si}from"./createLucideIcon-CW2xpJ57.js";import{n as O}from"./Combination-D1TsGrBC.js";import{t as di}from"./prop-types-C638SUfx.js";var mi=si("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);function vi({path:a,delimiter:i,initialPath:t,restrictNavigation:n}){let e=a.match(/^[\dA-Za-z]+:\/\//),o=/^[A-Za-z]:\\/.test(a),m=e?e[0]:o?a.slice(0,3):"/",c=(o||e?a.slice(m.length):a).split(i).filter(Boolean),d=[];if(o)for(let f=c.length;f>=0;f--){let h=m+c.slice(0,f).join(i);d.push(h)}else{let f=m;for(let h=0;h<=c.length;h++){let j=f+c.slice(0,h).join(i);d.push(j),hf.startsWith(t))),{protocol:m,parentDirectories:d}}function ui(a){let i=a.lastIndexOf(".");return[i>0?a.slice(0,i):a,i>0?a.slice(i):""]}const xi=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function S(a,i,t){let n=fi(a),{webkitRelativePath:e}=a,o=typeof i=="string"?i:typeof e=="string"&&e.length>0?e:`./${a.name}`;return typeof n.path!="string"&&Ia(n,"path",o),t!==void 0&&Object.defineProperty(n,"handle",{value:t,writable:!1,configurable:!1,enumerable:!0}),Ia(n,"relativePath",o),n}function fi(a){let{name:i}=a;if(i&&i.lastIndexOf(".")!==-1&&!a.type){let t=i.split(".").pop().toLowerCase(),n=xi.get(t);n&&Object.defineProperty(a,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return a}function Ia(a,i,t){Object.defineProperty(a,i,{value:t,writable:!1,configurable:!1,enumerable:!0})}var gi=[".DS_Store","Thumbs.db"];function bi(a){return O(this,void 0,void 0,function*(){return N(a)&&hi(a.dataTransfer)?ji(a.dataTransfer,a.type):yi(a)?wi(a):Array.isArray(a)&&a.every(i=>"getFile"in i&&typeof i.getFile=="function")?ki(a):[]})}function hi(a){return N(a)}function yi(a){return N(a)&&N(a.target)}function N(a){return typeof a=="object"&&!!a}function wi(a){return da(a.target.files).map(i=>S(i))}function ki(a){return O(this,void 0,void 0,function*(){return(yield Promise.all(a.map(i=>i.getFile()))).map(i=>S(i))})}function ji(a,i){return O(this,void 0,void 0,function*(){if(a.items){let t=da(a.items).filter(n=>n.kind==="file");return i==="drop"?Ta(Ma(yield Promise.all(t.map(zi)))):t}return Ta(da(a.files).map(t=>S(t)))})}function Ta(a){return a.filter(i=>gi.indexOf(i.name)===-1)}function da(a){if(a===null)return[];let i=[];for(let t=0;t[...i,...Array.isArray(t)?Ma(t):[t]],[])}function La(a,i){return O(this,void 0,void 0,function*(){if(globalThis.isSecureContext&&typeof a.getAsFileSystemHandle=="function"){let n=yield a.getAsFileSystemHandle();if(n===null)throw Error(`${a} is not a File`);if(n!==void 0){let e=yield n.getFile();return e.handle=n,S(e)}}let t=a.getAsFile();if(!t)throw Error(`${a} is not a File`);return S(t,(i==null?void 0:i.fullPath)??void 0)})}function Di(a){return O(this,void 0,void 0,function*(){return a.isDirectory?_a(a):Oi(a)})}function _a(a){let i=a.createReader();return new Promise((t,n)=>{let e=[];function o(){i.readEntries(m=>O(this,void 0,void 0,function*(){if(m.length){let c=Promise.all(m.map(Di));e.push(c),o()}else try{t(yield Promise.all(e))}catch(c){n(c)}}),m=>{n(m)})}o()})}function Oi(a){return O(this,void 0,void 0,function*(){return new Promise((i,t)=>{a.file(n=>{i(S(n,a.fullPath))},n=>{t(n)})})})}var ma=sa(ci((a=>{a.__esModule=!0,a.default=function(i,t){if(i&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var e=i.name||"",o=(i.type||"").toLowerCase(),m=o.replace(/\/.*$/,"");return n.some(function(c){var d=c.trim().toLowerCase();return d.charAt(0)==="."?e.toLowerCase().endsWith(d):d.endsWith("/*")?m===d.replace(/\/.*$/,""):o===d})}return!0}}))());function $a(a){return Fi(a)||Ai(a)||Wa(a)||Ei()}function Ei(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ai(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Fi(a){if(Array.isArray(a))return va(a)}function Ba(a,i){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);i&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})),t.push.apply(t,n)}return t}function Ka(a){for(var i=1;ia.length)&&(i=a.length);for(var t=0,n=Array(i);t0&&arguments[0]!==void 0?arguments[0]:"").split(",");return{code:Ri,message:`File type must be ${a.length>1?`one of ${a.join(", ")}`:a[0]}`}},Na=function(a){return{code:Ii,message:`File is larger than ${a} ${a===1?"byte":"bytes"}`}},Ua=function(a){return{code:Ti,message:`File is smaller than ${a} ${a===1?"byte":"bytes"}`}},_i={code:Mi,message:"Too many files"};function Ga(a,i){var t=a.type==="application/x-moz-file"||Ci(a,i);return[t,t?null:Li(i)]}function Za(a,i,t){if(E(a.size))if(E(i)&&E(t)){if(a.size>t)return[!1,Na(t)];if(a.sizet)return[!1,Na(t)]}return[!0,null]}function E(a){return a!=null}function $i(a){var i=a.files,t=a.accept,n=a.minSize,e=a.maxSize,o=a.multiple,m=a.maxFiles,c=a.validator;return!o&&i.length>1||o&&m>=1&&i.length>m?!1:i.every(function(d){var f=M(Ga(d,t),1)[0],h=M(Za(d,n,e),1)[0],j=c?c(d):null;return f&&h&&!j})}function U(a){return typeof a.isPropagationStopped=="function"?a.isPropagationStopped():a.cancelBubble===void 0?!1:a.cancelBubble}function G(a){return a.dataTransfer?Array.prototype.some.call(a.dataTransfer.types,function(i){return i==="Files"||i==="application/x-moz-file"}):!!a.target&&!!a.target.files}function Va(a){a.preventDefault()}function Bi(a){return a.indexOf("MSIE")!==-1||a.indexOf("Trident/")!==-1}function Ki(a){return a.indexOf("Edge/")!==-1}function Hi(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Bi(a)||Ki(a)}function k(){var a=[...arguments];return function(i){var t=[...arguments].slice(1);return a.some(function(n){return!U(i)&&n&&n.apply(void 0,[i].concat(t)),U(i)})}}function Wi(){return"showOpenFilePicker"in window}function Ni(a){return E(a)?[{description:"Files",accept:Object.entries(a).filter(function(i){var t=M(i,2),n=t[0],e=t[1],o=!0;return Ya(n)||(console.warn(`Skipped "${n}" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`),o=!1),(!Array.isArray(e)||!e.every(Ja))&&(console.warn(`Skipped "${n}" because an invalid file extension was provided.`),o=!1),o}).reduce(function(i,t){var n=M(t,2),e=n[0],o=n[1];return Ka(Ka({},i),{},Ha({},e,o))},{})}]:a}function Ui(a){if(E(a))return Object.entries(a).reduce(function(i,t){var n=M(t,2),e=n[0],o=n[1];return[].concat($a(i),[e],$a(o))},[]).filter(function(i){return Ya(i)||Ja(i)}).join(",")}function Gi(a){return a instanceof DOMException&&(a.name==="AbortError"||a.code===a.ABORT_ERR)}function Zi(a){return a instanceof DOMException&&(a.name==="SecurityError"||a.code===a.SECURITY_ERR)}function Ya(a){return a==="audio/*"||a==="video/*"||a==="image/*"||a==="text/*"||a==="application/*"||/\w+\/[-+.\w]+/g.test(a)}function Ja(a){return/^.*\.[\w]+$/.test(a)}var r=sa(ri()),s=sa(di()),Vi=["children"],Yi=["open"],Ji=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Qi=["refKey","onChange","onClick"];function Xi(a){return tt(a)||it(a)||Qa(a)||at()}function at(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function it(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function tt(a){if(Array.isArray(a))return xa(a)}function ua(a,i){return et(a)||pt(a,i)||Qa(a,i)||nt()}function nt(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qa(a,i){if(a){if(typeof a=="string")return xa(a,i);var t=Object.prototype.toString.call(a).slice(8,-1);if(t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set")return Array.from(a);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return xa(a,i)}}function xa(a,i){(i==null||i>a.length)&&(i=a.length);for(var t=0,n=Array(i);t=0)&&Object.prototype.propertyIsEnumerable.call(a,n)&&(t[n]=a[n])}return t}function ot(a,i){if(a==null)return{};var t={},n=Object.keys(a),e,o;for(o=0;o=0)&&(t[e]=a[e]);return t}var ga=(0,r.forwardRef)(function(a,i){var t=a.children,n=ii(Z(a,Vi)),e=n.open,o=Z(n,Yi);return(0,r.useImperativeHandle)(i,function(){return{open:e}},[e]),r.createElement(r.Fragment,null,t(v(v({},o),{},{open:e})))});ga.displayName="Dropzone";var ai={disabled:!1,getFilesFromEvent:bi,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ga.defaultProps=ai,ga.propTypes={children:s.default.func,accept:s.default.objectOf(s.default.arrayOf(s.default.string)),multiple:s.default.bool,preventDropOnDocument:s.default.bool,noClick:s.default.bool,noKeyboard:s.default.bool,noDrag:s.default.bool,noDragEventsBubbling:s.default.bool,minSize:s.default.number,maxSize:s.default.number,maxFiles:s.default.number,disabled:s.default.bool,getFilesFromEvent:s.default.func,onFileDialogCancel:s.default.func,onFileDialogOpen:s.default.func,useFsAccessApi:s.default.bool,autoFocus:s.default.bool,onDragEnter:s.default.func,onDragLeave:s.default.func,onDragOver:s.default.func,onDrop:s.default.func,onDropAccepted:s.default.func,onDropRejected:s.default.func,onError:s.default.func,validator:s.default.func};var ba={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ii(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=v(v({},ai),a),t=i.accept,n=i.disabled,e=i.getFilesFromEvent,o=i.maxSize,m=i.minSize,c=i.multiple,d=i.maxFiles,f=i.onDragEnter,h=i.onDragLeave,j=i.onDragOver,V=i.onDrop,Y=i.onDropAccepted,J=i.onDropRejected,Q=i.onFileDialogCancel,X=i.onFileDialogOpen,ha=i.useFsAccessApi,ya=i.autoFocus,aa=i.preventDropOnDocument,wa=i.noClick,ia=i.noKeyboard,ka=i.noDrag,z=i.noDragEventsBubbling,ta=i.onError,C=i.validator,R=(0,r.useMemo)(function(){return Ui(t)},[t]),ja=(0,r.useMemo)(function(){return Ni(t)},[t]),na=(0,r.useMemo)(function(){return typeof X=="function"?X:ti},[X]),L=(0,r.useMemo)(function(){return typeof Q=="function"?Q:ti},[Q]),g=(0,r.useRef)(null),y=(0,r.useRef)(null),za=ua((0,r.useReducer)(lt,ba),2),pa=za[0],b=za[1],ni=pa.isFocused,Da=pa.isFileDialogActive,_=(0,r.useRef)(typeof window<"u"&&window.isSecureContext&&ha&&Wi()),Oa=function(){!_.current&&Da&&setTimeout(function(){y.current&&(y.current.files.length||(b({type:"closeDialog"}),L()))},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",Oa,!1),function(){window.removeEventListener("focus",Oa,!1)}},[y,Da,L,_]);var A=(0,r.useRef)([]),Ea=function(p){g.current&&g.current.contains(p.target)||(p.preventDefault(),A.current=[])};(0,r.useEffect)(function(){return aa&&(document.addEventListener("dragover",Va,!1),document.addEventListener("drop",Ea,!1)),function(){aa&&(document.removeEventListener("dragover",Va),document.removeEventListener("drop",Ea))}},[g,aa]),(0,r.useEffect)(function(){return!n&&ya&&g.current&&g.current.focus(),function(){}},[g,ya,n]);var D=(0,r.useCallback)(function(p){ta?ta(p):console.error(p)},[ta]),Aa=(0,r.useCallback)(function(p){p.preventDefault(),p.persist(),H(p),A.current=[].concat(Xi(A.current),[p.target]),G(p)&&Promise.resolve(e(p)).then(function(l){if(!(U(p)&&!z)){var u=l.length,x=u>0&&$i({files:l,accept:R,minSize:m,maxSize:o,multiple:c,maxFiles:d,validator:C});b({isDragAccept:x,isDragReject:u>0&&!x,isDragActive:!0,type:"setDraggedFiles"}),f&&f(p)}}).catch(function(l){return D(l)})},[e,f,D,z,R,m,o,c,d,C]),Fa=(0,r.useCallback)(function(p){p.preventDefault(),p.persist(),H(p);var l=G(p);if(l&&p.dataTransfer)try{p.dataTransfer.dropEffect="copy"}catch{}return l&&j&&j(p),!1},[j,z]),qa=(0,r.useCallback)(function(p){p.preventDefault(),p.persist(),H(p);var l=A.current.filter(function(x){return g.current&&g.current.contains(x)}),u=l.indexOf(p.target);u!==-1&&l.splice(u,1),A.current=l,!(l.length>0)&&(b({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),G(p)&&h&&h(p))},[g,h,z]),$=(0,r.useCallback)(function(p,l){var u=[],x=[];p.forEach(function(w){var P=ua(Ga(w,R),2),oa=P[0],la=P[1],W=ua(Za(w,m,o),2),ca=W[0],ra=W[1],I=C?C(w):null;if(oa&&ca&&!I)u.push(w);else{var T=[la,ra];I&&(T=T.concat(I)),x.push({file:w,errors:T.filter(function(li){return li})})}}),(!c&&u.length>1||c&&d>=1&&u.length>d)&&(u.forEach(function(w){x.push({file:w,errors:[_i]})}),u.splice(0)),b({acceptedFiles:u,fileRejections:x,isDragReject:x.length>0,type:"setFiles"}),V&&V(u,x,l),x.length>0&&J&&J(x,l),u.length>0&&Y&&Y(u,l)},[b,c,R,m,o,d,V,Y,J,C]),B=(0,r.useCallback)(function(p){p.preventDefault(),p.persist(),H(p),A.current=[],G(p)&&Promise.resolve(e(p)).then(function(l){U(p)&&!z||$(l,p)}).catch(function(l){return D(l)}),b({type:"reset"})},[e,$,D,z]),F=(0,r.useCallback)(function(){if(_.current){b({type:"openDialog"}),na();var p={multiple:c,types:ja};window.showOpenFilePicker(p).then(function(l){return e(l)}).then(function(l){$(l,null),b({type:"closeDialog"})}).catch(function(l){Gi(l)?(L(l),b({type:"closeDialog"})):Zi(l)?(_.current=!1,y.current?(y.current.value=null,y.current.click()):D(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):D(l)});return}y.current&&(b({type:"openDialog"}),na(),y.current.value=null,y.current.click())},[b,na,L,ha,$,D,ja,c]),Pa=(0,r.useCallback)(function(p){!g.current||!g.current.isEqualNode(p.target)||(p.key===" "||p.key==="Enter"||p.keyCode===32||p.keyCode===13)&&(p.preventDefault(),F())},[g,F]),Sa=(0,r.useCallback)(function(){b({type:"focus"})},[]),Ca=(0,r.useCallback)(function(){b({type:"blur"})},[]),Ra=(0,r.useCallback)(function(){wa||(Hi()?setTimeout(F,0):F())},[wa,F]),q=function(p){return n?null:p},ea=function(p){return ia?null:q(p)},K=function(p){return ka?null:q(p)},H=function(p){z&&p.stopPropagation()},pi=(0,r.useMemo)(function(){return function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=p.refKey,u=l===void 0?"ref":l,x=p.role,w=p.onKeyDown,P=p.onFocus,oa=p.onBlur,la=p.onClick,W=p.onDragEnter,ca=p.onDragOver,ra=p.onDragLeave,I=p.onDrop,T=Z(p,Ji);return v(v(fa({onKeyDown:ea(k(w,Pa)),onFocus:ea(k(P,Sa)),onBlur:ea(k(oa,Ca)),onClick:q(k(la,Ra)),onDragEnter:K(k(W,Aa)),onDragOver:K(k(ca,Fa)),onDragLeave:K(k(ra,qa)),onDrop:K(k(I,B)),role:typeof x=="string"&&x!==""?x:"presentation"},u,g),!n&&!ia?{tabIndex:0}:{}),T)}},[g,Pa,Sa,Ca,Ra,Aa,Fa,qa,B,ia,ka,n]),ei=(0,r.useCallback)(function(p){p.stopPropagation()},[]),oi=(0,r.useMemo)(function(){return function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=p.refKey,u=l===void 0?"ref":l,x=p.onChange,w=p.onClick,P=Z(p,Qi);return v(v({},fa({accept:R,multiple:c,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:q(k(x,B)),onClick:q(k(w,ei)),tabIndex:-1},u,y)),P)}},[y,t,c,B,n]);return v(v({},pa),{},{isFocused:ni&&!n,getRootProps:pi,getInputProps:oi,rootRef:g,inputRef:y,open:q(F)})}function lt(a,i){switch(i.type){case"focus":return v(v({},a),{},{isFocused:!0});case"blur":return v(v({},a),{},{isFocused:!1});case"openDialog":return v(v({},ba),{},{isFileDialogActive:!0});case"closeDialog":return v(v({},a),{},{isFileDialogActive:!1});case"setDraggedFiles":return v(v({},a),{},{isDragActive:i.isDragActive,isDragAccept:i.isDragAccept,isDragReject:i.isDragReject});case"setFiles":return v(v({},a),{},{acceptedFiles:i.acceptedFiles,fileRejections:i.fileRejections,isDragReject:i.isDragReject});case"reset":return v({},ba);default:return a}}function ti(){}export{mi as i,ui as n,vi as r,ii as t}; diff --git a/docs/assets/esm-BranOiPJ.js b/docs/assets/esm-BranOiPJ.js new file mode 100644 index 0000000..d97976e --- /dev/null +++ b/docs/assets/esm-BranOiPJ.js @@ -0,0 +1 @@ +import{D as qO,G as $,H as xe,J as o,N as fO,T as cO,at as Ue,f as r,g as ve,n as S,nt as Ye,q as mO,r as SO,s as PO,t as ke,u as B,y as Z,zt as bO}from"./dist-CAcX026F.js";import{m as uO,s as We,u as _e}from"./dist-DKNOF5xd.js";import{a as Be,f as j,l as Ze,t as je}from"./dist-BuhT82Xx.js";import{a as A}from"./dist-HGZzCB0y.js";import{n as T,r as Ae}from"./dist-CVj-_Iiz.js";import{r as Re,t as wO}from"./dist-BVf1IY4_.js";import{a as Ee,d as Me,i as q,p as Ne}from"./dist-Cq_4nPfh.js";import{r as X}from"./dist-RKnr9SNh.js";import{t as R}from"./stex-0ac7Aukl.js";import{t as Q}from"./dist-cDyKKhtR.js";import{t as De}from"./dist-CsayQVA2.js";import{t as Ge}from"./dist-CebZ69Am.js";import{n as E}from"./dist-BnNY29MI.js";import{t as dO}from"./dist-gkLBSkCp.js";import{t as Ie}from"./dist-ByyW-iwc.js";import{n as Ke}from"./dist-Cp3Es6uA.js";import{t as P}from"./dist-ClsPkyB_.js";import{t as Ce}from"./dist-BZPaM2NB.js";import{t as hO}from"./dist-CAJqQUSI.js";import{t as VO}from"./dist-CQhcYtN0.js";import{r as g}from"./dist-CGGpiWda.js";import{t as TO}from"./dist-BsIAU6bk.js";import{t as XO}from"./apl-C1zdcQvI.js";import{t as gO}from"./asciiarmor-B--OGpM1.js";import{t as yO}from"./asn1-D2UnMTL5.js";import{t as xO}from"./brainfuck-DrjMyC8V.js";import{t as UO}from"./cobol-DZNhVUeB.js";import{a as Fe,c as vO,d as ze,f as Je,m as Le,o as He}from"./clike-CCdVFz-6.js";import{t as b}from"./clojure-BjmTMymc.js";import{n as Or}from"./css-CNKF6pC6.js";import{t as YO}from"./cmake-CgqRscDS.js";import{t as er}from"./coffeescript-Qp7k0WHA.js";import{t as M}from"./commonlisp-De6q7_JS.js";import{t as kO}from"./cypher-BUDAQ7Fk.js";import{t as N}from"./python-DOZzlkV_.js";import{t as rr}from"./crystal-BGXRJSF-.js";import{t as tr}from"./d-BIAtzqpc.js";import{t as WO}from"./diff-aadYO3ro.js";import{t as ar}from"./dtd-uNeIl1u0.js";import{t as D}from"./dylan-CrZBaY0F.js";import{t as nr}from"./ecl-ByTsrrt6.js";import{t as or}from"./eiffel-DRhIEZQi.js";import{t as ir}from"./elm-BBPeNBgT.js";import{t as sr}from"./erlang-EMEOk6kj.js";import{t as lr}from"./factor-D7Lm0c37.js";import{t as G}from"./forth-BdKkHzwH.js";import{t as u}from"./fortran-DxGNM9Kj.js";import{n as y,r as x,t as pr}from"./mllike-D9b50pH5.js";import{t as Qr}from"./gas-hf-H6Zc4.js";import{t as $r}from"./gherkin-D1O_VlrS.js";import{t as _O}from"./groovy-Budmgm6I.js";import{t as qr}from"./haskell-CDrggYs0.js";import{n as fr,t as cr}from"./haxe-CPnBkTzf.js";import{t as mr}from"./idl-BTZd0S94.js";import{r as Sr}from"./javascript-Czx24F5X.js";import{t as Pr}from"./julia-OeEN0FvJ.js";import{t as br}from"./livescript-DLmsZIyI.js";import{t as ur}from"./lua-BM3BXoTQ.js";import{t as wr}from"./mirc-CzS_wutP.js";import{t as I}from"./mathematica-BbPQ8-Rw.js";import{t as dr}from"./modelica-C8E83p8w.js";import{t as hr}from"./mumps-BRQASZoy.js";import{t as Vr}from"./mbox-D2_16jOO.js";import{t as BO}from"./nsis-C5Oj2cBc.js";import{t as ZO}from"./ntriples-D6VU4eew.js";import{t as Tr}from"./octave-xff1drIF.js";import{t as Xr}from"./oz-CRz8coQc.js";import{t as jO}from"./pascal-DZhgfws7.js";import{t as AO}from"./perl-BKXEkch3.js";import{t as gr}from"./pig-rvFhLOOE.js";import{t as K}from"./powershell-Db7zgjV-.js";import{t as C}from"./properties-BF6anRzc.js";import{t as yr}from"./protobuf-De4giNfG.js";import{t as RO}from"./pug-CzQlD5xP.js";import{t as xr}from"./puppet-CMgcPW4L.js";import{t as Ur}from"./q-8XMigH-s.js";import{t as EO}from"./r-BuEncdBJ.js";import{n as vr}from"./rpm-DnfrioeJ.js";import{t as Yr}from"./ruby-C9f8lbWZ.js";import{t as kr}from"./sas-TQvbwzLU.js";import{t as MO}from"./scheme-DCJ8_Fy0.js";import{t as F}from"./shell-D8pt0LM7.js";import{t as NO}from"./sieve-DGXZ82l_.js";import{t as Wr}from"./smalltalk-DyRmt5Ka.js";import{t as DO}from"./sparql-CLILkzHY.js";import{t as _r}from"./stylus-BCmjnwMM.js";import{t as Br}from"./swift-BkcVjmPv.js";import{n as z}from"./verilog-C0Wzs7-f.js";import{t as Zr}from"./tcl-B3wbfJh2.js";import{t as jr}from"./textile-D12VShq0.js";import{t as Ar}from"./toml-XXoBgyAV.js";import{t as f}from"./troff-D9lX0BP4.js";import{t as J}from"./ttcn-DQ5upjvU.js";import{t as Rr}from"./ttcn-cfg-pqnJIxH9.js";import{t as Er}from"./turtle-BUVCUZMx.js";import{t as Mr}from"./webidl-GTmlnawS.js";import{t as Nr}from"./vb-CgKmZtlp.js";import{t as Dr}from"./vbscript-mB-oVfPH.js";import{t as Gr}from"./velocity-CrvX3BFT.js";import{t as GO}from"./vhdl-s8UGv0A3.js";import{t as w}from"./xquery-Bq3_mXJv.js";import{t as Ir}from"./yacas-B1P8UzPS.js";import{n as Kr}from"./z80-C8FzIVqi.js";import{n as Cr,r as Fr,t as L}from"./mscgen-Dk-3wFOB.js";import{t as zr}from"./dist-zq3bdql0.js";var H=63,Jr=64,Lr=65,Hr=66,OO=67,Ot=68,et=69,rt=70,tt=34,IO=92,KO=123,CO=36,FO=39,at=new S(O=>{for(let e=!1,a=0;;a++){let{next:t}=O;if(t<0){a>0&&O.acceptToken(H);break}else if(t===tt){a>0?O.acceptToken(H):O.acceptToken(Lr,1);break}else if(t===KO&&e){a==1?O.acceptToken(Jr,1):O.acceptToken(H,-1);break}else t===IO&&(O.advance(),O.acceptToken(Hr,1));e=t===CO,O.advance()}}),nt=new S(O=>{for(let e=!1,a=!1,t=0;;t++){let{next:n}=O;if(n<0){t>0&&O.acceptToken(OO);break}else if(n===FO&&a){t>1?O.acceptToken(OO,-1):O.acceptToken(et,1);break}else if(n===KO&&e){t==1?O.acceptToken(Ot,1):O.acceptToken(OO,-1);break}else n===IO&&(O.advance(),O.acceptToken(rt,1));e=n===CO,a=n===FO,O.advance()}}),ot={__proto__:null,assert:22,with:26,let:30,inherit:42,in:48,if:52,then:54,else:56,builtins:70,null:214,true:216,false:216,rec:100,or:108},it=SO.deserialize({version:14,states:"7QO]QSOOO!sQWO'#DyO#XQ`O'#EjO&QQSO'#C`O&YQTO'#CnO'lQWO'#EWO(VQSO'#C|O(VQSO'#C|OOQO'#DQ'#DQOOQO'#DT'#DTO)dQUO'#DUO*yQSO'#DcOOQO'#Ej'#EjO,XQ`O'#EiOOQO'#Ei'#EiO-wQ`O'#EXOOQO'#Eh'#EhOOQO'#EX'#EXOOQO'#EW'#EWOOQO'#Dw'#DwO]QSO'#CfO]QSO'#ChO/dQSO'#D^O]QSO'#CuO]QSO'#D[O/xQSO'#D_QOQSOOO/}QSO'#CdO0`Q`O,5:eO3XQSO,5:eO3aQSO,5:eO4sQSO'#EOOOQO'#Cm'#CmOOQO'#Df'#DfO4}QSO,59wO]QSO'#CpO5`QSO'#ClO5eQSO'#EUO]QSO,58zO5sQSO,58zO5xQSO,58zOOQP'#EQ'#EQOOQP'#Dg'#DgO5}QTO,59YOOQO,59Y,59YO]QSO'#CoO6]QSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO(VQSO,59eO6|QWO,59hO8VQSO'#D]O/xQSO'#D^OOQO,59h,59hOOQQ'#En'#EnOOQQ'#Dj'#DjO8hQUO,59pOOQO,59p,59pO]QSO'#DVOOQO'#Dk'#DkO8vQSO,59}OOQO,59},59}O8}QSO'#EiO6]QSO,59jOOQO,59i,59iO9XQSO,59QO9^QSO,59SO9cQSO,59UO]QSO,59UOOQO,59x,59xO9tQSO,59aO9yQSO,59vOOQO,59y,59yO:OQSO'#DhO;hQSO,5:jO]QSO,59OO;rQWO1G0PO;zQSO1G0POOQO1G0P1G0POOQO-E7d-E7dOOQO1G/c1G/cOqAN>qO!$ZQSO<}AN>}O!$iQSO,59jO)rQSO7+$p",stateData:"!$x~O!jOSPOSQOS~OTQOUPOZdO]eO_fOfhOjgOs[Ou[Ov[Oz[O{[O|[O}[O!SiO!UZO!sSO#QVO#ZUO#_WO#`XO#aYO~OTkOVlOXnOeuO!sSO!usO~O!lvO!pwOT#^XU#^X_#^Xf#^Xn#^Xo#^Xs#^Xu#^Xv#^Xz#^X{#^X|#^X}#^X!S#^X!U#^X!`#^X!n#^X!s#^X!v#^X!|#^X!}#^X#O#^X#P#^X#Q#^X#R#^X#S#^X#T#^X#U#^X#V#^X#W#^X#X#^X#Y#^X#_#^X#`#^X#a#^X!q#^Xk#^Xg#^XV#^X!o#^Xl#^X~O!lvO!pxO~O!ayO!b}O!c|O!dyO~On!TOo!VO!n!OO!|!PO!}!PO#O!QO#P!RO#Q!SO#R!TO#S!UO#T!WO#U!XO#V!YO#W!ZO#X![O#Y!]O~O!`!zX!q!zXk!zXg!zXV!zX!o!zXl!zX~P&hOT[OU!_O_!`OfhOs[Ou[Ov[Oz[O{[O|[O}[O!SiO!UZO!sSO#QVO#ZUO#_WO#`XO#aYO~O!e!bO!f!fO!g!eO!h!bO~OT[OU!_O_!`OfhOs[Ou[Ov[Oz[O{[O|[O}[O!SiO!UZO!sSO#_WO#`XO#aYO~O!T!iO~P)rOT#]XU#]X_#]Xf#]Xs#]Xu#]Xv#]Xz#]X{#]X|#]X}#]X!S#]X!U#]X!s#]X#_#]X#`#]X#a#]X~O!v!kOn#]Xo#]X!`#]X!n#]X!|#]X!}#]X#O#]X#P#]X#Q#]X#R#]X#S#]X#T#]X#U#]X#V#]X#W#]X#X#]X#Y#]X!q#]Xk#]Xg#]XV#]X!o#]Xl#]X~P+QOn!{Xo!{X!`!{X!n!{X!|!{X!}!{X#O!{X#P!{X#Q!{X#R!{X#S!{X#T!{X#U!{X#V!{X#W!{X#X!{X#Y!{X!q!{Xk!{Xg!{XV!{X!o!{Xl!{X~P)rOToOU!_OeuOh!pO!sSO!usO~OU!_O~O!n!wO!v!uOVWX!oWX!w!rX~OT!PaU!Pa_!Paf!Pan!Pao!Pas!Pau!Pav!Paz!Pa{!Pa|!Pa}!Pa!S!Pa!U!Pa!`!Pa!l!ma!n!Pa!p!ma!s!Pa!v!Pa!|!Pa!}!Pa#O!Pa#P!Pa#Q!Pa#R!Pa#S!Pa#T!Pa#U!Pa#V!Pa#W!Pa#X!Pa#Y!Pa#_!Pa#`!Pa#a!Pa!q!Pak!Pag!PaV!Pa!o!Pal!Pa~OV!zO!o!xO~OV!zO~O!v!uOT!rXU!rX_!rXf!rXs!rXu!rXv!rXz!rX{!rX|!rX}!rX!S!rX!U!rX!W!rX!s!rX#_!rX#`!rX#a!rX~O!w!rX!T!rX~P3fOToOV!|OeuO!sSO!usO~O!w#OO~OT#POf#RO!sSO!usO~OU#TO~OT#UO~O!ayO!b}O!c#WO!dyO~OT#YO!sSO!usO~O!n!OO!|!PO!}!PO#O!QO#P!RO#Q!SO~Onpaopa!`pa#Rpa#Spa#Tpa#Upa#Vpa#Wpa#Xpa#Ypa!qpakpagpaVpa!opalpa~P6hOToOV#iOeuO!sSO!usO~O!e!bO!f!fO!g#kO!h!bO~O!T#nO~P)rO!v$mO!T#]X~P+QO!q#pO~O!q#qO~OToOeuOh#rO!sSO!usO~Ok#tO~Og#uO~OT#vO!sSO!usO~O!v!uOT!raU!ra_!raf!ras!rau!rav!raz!ra{!ra|!ra}!ra!S!ra!U!ra!W!ra!s!ra#_!ra#`!ra#a!ra~O!w!ra!T!ra~P:ZOT#yOX#{O~OV$OO!o#|O~OV$PO~OT#PO!q$SO!sSO!usO~OT#yOV$UOXnO~O!l$VO~OV$WO~On!rXo!rX!`!rX!n!rX!|!rX!}!rX#O!rX#P!rX#Q!rX#R!rX#S!rX#T!rX#U!rX#V!rX#W!rX#X!rX#Y!rX!q!rXk!rXg!rXV!rX!o!rXl!rX~P3fO!n!OO!|!POnmiomi!`mi#Omi#Pmi#Qmi#Rmi#Smi#Tmi#Umi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~O!}mi~P>iO!}!PO~P>iO!n!OO!|!PO!}!PO#O!QOnmiomi!`mi#Qmi#Rmi#Smi#Tmi#Umi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~O#Pmi~P@_O#P!RO~P@_O#R!TOnmiomi!`mi#Smi#Tmi#Umi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hOn!TO#R!TOomi!`mi#Smi#Tmi#Umi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hOn!TO#R!TO#S!UOomi!`mi#Tmi#Umi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hOn!TOo!VO#R!TO#S!UO!`mi#Tmi#Umi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hOn!TOo!VO#R!TO#S!UO#T!WO!`mi#Umi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hOn!TOo!VO#R!TO#S!UO#T!WO#U!XO!`mi#Vmi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hOn!TOo!VO#R!TO#S!UO#T!WO#U!XO#V!YO!`mi#Wmi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hOn!TOo!VO#R!TO#S!UO#T!WO#U!XO#V!YO#W!ZO!`mi#Xmi#Ymi!qmikmigmiVmi!omilmi~P6hO!`mi!qmikmigmiVmi!omilmi~P&hOV$YO~OTriUri_rifrisriurivrizri{ri|ri}ri!Sri!Uri!sri#_ri#`ri#ari~O!W$[Onriori!`ri!nri!|ri!}ri#Ori#Pri#Qri#Rri#Sri#Tri#Uri#Vri#Wri#Xri#Yri!qrikrigriVri!orilri~PL_O!n!wOVWX!oWX~OV$aO~OT#yOX$bO~O!q$dO~Og$eO~On!rao!ra!`!ra!n!ra!|!ra!}!ra#O!ra#P!ra#Q!ra#R!ra#S!ra#T!ra#U!ra#V!ra#W!ra#X!ra#Y!ra!q!rak!rag!raV!ra!o!ral!ra~P:ZO!W$nO!Tri~PL_Ol$hO~OV$iO~OT#yO~OT#PO!sSO!usO~OT#PO!q$lO!sSO!usO~OToO!sSO!usO~Oz!v!v~",goto:"2g#cPPPP#dPPP#yP#dP#dP#dP$S$Z$k%{%fPPPP&PPPP&fPP&f'[(QP({PP({({)vPPPP({)z({({PPP({P*|+S+_+e+p+z,QPPPPPPPPPPP,WP-cPPPP-{P.VPPP$S$S#d.ZPPPPPPPPPPPPPP/o0e1fPPP2cwcOdeghsv}!f!p!w#O#R#p#q#r#t$V$hSmP#TV#z!x#|$cZqPfr!_!oYtPfr!_!oQ#Z!OQ#o!kR$Z$m!p[OUVZ_deghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!h!p!w#O#R#p#q#r#t$V$[$h$n[oPfr!_!o$mW#Pu#Q$e$jS#Y!O!kR#v!uTyS{wbOdeghsv}!f!p!w#O#R#p#q#r#t$V$h!gaOUVdeghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!p!w#O#R#p#q#r#t$V$h!g`OUVdeghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!p!w#O#R#p#q#r#t$V$h!q^OUVZ_deghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!h!p!w#O#R#p#q#r#t$V$[$h$n!q[OUVZ_deghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!h!p!w#O#R#p#q#r#t$V$[$h$nT!bY!d!p[OUVZ_deghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!h!p!w#O#R#p#q#r#t$V$[$h$nS!qf!`R!tiQ!ymR#}!ySrP!_Q!ofT!{r!oQ{SR#V{S!vkoS#w!v$XR$X#YQ#QuS$R#Q$jR$j$eQ!dYR#j!dQ!hZR#m!hQjOQ!mdQ!neQ!rgQ!shQ!}sQ#SvQ#X}Q#l!fQ#s!pQ#x!wQ$Q#OQ$T#RQ$]#pQ$^#qQ$_#rQ$`#tQ$f$VR$k$hvROdeghsv}!f!p!w#O#R#p#q#r#t$V$hR#UwapPfr!O!_!k!o$mTzS{vTOdeghsv}!f!p!w#O#R#p#q#r#t$V$hQ!^UQ!aVQ#[!PQ#]!QQ#^!RQ#_!SQ#`!TQ#a!UQ#b!VQ#c!WQ#d!XQ#e!YQ#f!ZQ#g![R#h!]!g_OUVdeghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!p!w#O#R#p#q#r#t$V$h!f`OUVdeghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!p!w#O#R#p#q#r#t$V$hS!gZ!hQ!l_T$g$[$n!j]OUV_deghsv}!P!Q!R!S!T!U!V!W!X!Y!Z![!]!f!p!w#O#R#p#q#r#t$V$[$hV!jZ!h$nT!cY!d",nodeNames:"\u26A0 LineComment BlockComment Program Function Identifier { } Formal Ellipses Assert assert With with Let let Bind AttrPath String Interpolation Interpolation inherit ( ) in IfExpr if then else BinaryExpr < > UnaryExpr App Select builtins Null Integer Float Boolean IndentedString Interpolation Path HPath SPath URI Parenthesized AttrSet LetAttrSet RecAttrSet rec ] [ List or",maxTerm:110,nodeProps:[["closedBy",6,"}",22,")",52,"]"],["openedBy",7,"{",23,"(",51,"["]],skippedNodes:[0,1,2],repeatNodeCount:7,tokenData:">P~RtXY#cYZ#c]^#cpq#cqr#trs$Rst$Wtu$ovw$zwx%Vxy%byz%gz{%l{|%q|})]}!O)b!O!P*X!P!Q.r!Q!R0l!R![2e![!]3S!]!^3X!^!_3^!_!`5_!`!a5l!a!b5y!b!c6O!c!}6T!}#O;g#P#Q;l#R#S:u#T#o6T#o#p;q#p#q;v#q#rot[O]||-1}],tokenPrec:2290}),zO=PO.define({name:"Nix",parser:it.configure({props:[fO.add({Parenthesized:Z({closing:")"}),AttrSet:Z({closing:"}"}),List:Z({closing:"]"}),Let:ve({except:/^\s*in\b/})}),qO.add({AttrSet:cO,List:cO,Let(O){let e=O.getChild("let"),a=O.getChild("in");return!e||!a?null:{from:e.to,to:a.from}}}),mO({Identifier:o.propertyName,Boolean:o.bool,String:o.string,IndentedString:o.string,LineComment:o.lineComment,BlockComment:o.blockComment,Float:o.float,Integer:o.integer,Null:o.null,URI:o.url,SPath:o.literal,Path:o.literal,"( )":o.paren,"{ }":o.brace,"[ ]":o.squareBracket,"if then else":o.controlKeyword,"import with let in rec builtins inherit assert or":o.keyword})]}),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","''",'"']},indentOnInput:/^\s*(in|\}|\)|\])$/}}),st=[uO("let ${binds} in ${expression}",{label:"let",detail:"Let ... in statement",type:"keyword"}),uO("with ${expression}; ${expression}",{label:"with",detail:"With statement",type:"keyword"})];function lt(){return new B(zO,zO.data.of({autocomplete:_e(["LineComment","BlockComment","String","IndentedString"],We(st))}))}var pt=145,Qt=1,$t=146,qt=2,ft=147,ct=3,U=4,JO=5,LO=6,HO=7,Oe=8,mt=9,St=11,eO=148,Pt=12,ee=149,rO=13,v=14,bt=67,ut=110,wt=113,dt=116,ht=118,Vt={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Tt={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},re={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Xt(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}function te(O){return O==9||O==10||O==13||O==32}var ae=null,ne=null,oe=0;function tO(O,e){let a=O.pos+e;if(oe==a&&ne==O)return ae;let t=O.peek(e);for(;te(t);)t=O.peek(++e);let n="";for(;Xt(t);)n+=String.fromCharCode(t),t=O.peek(++e);return ne=O,oe=a,ae=n?n.toLowerCase():t==yt||t==xt?void 0:null}var ie=60,gt=62,se=47,yt=63,xt=33;function le(O,e){this.name=O,this.parent=e,this.hash=e?e.hash:0;for(let a=0;a-1?new le(tO(t,1)||"",O):O},reduce(O,e){return e==bt&&O?O.parent:O},reuse(O,e,a,t){let n=e.type.id;return n==U||n==ht?new le(tO(t,1)||"",O):O},hash(O){return O?O.hash:0},strict:!1}),Yt=new S((O,e)=>{if(O.next!=ie){O.next<0&&e.context&&O.acceptToken(eO);return}O.advance();let a=O.next==se;a&&O.advance();let t=tO(O,0);if(t===void 0)return;if(!t)return O.acceptToken(a?Pt:U);let n=e.context?e.context.name:null;if(a){if(t==n)return O.acceptToken(mt);if(n&&Tt[n])return O.acceptToken(eO,-2);for(let i=e.context;i;i=i.parent)if(i.name==t)return;O.acceptToken(St)}else{if(t=="script")return O.acceptToken(JO);if(t=="style")return O.acceptToken(LO);if(t=="textarea")return O.acceptToken(HO);if(Vt.hasOwnProperty(t))return O.acceptToken(Oe);n&&re[n]&&re[n][t]?O.acceptToken(eO,-1):O.acceptToken(U)}},{contextual:!0});function aO(O,e,a){let t=2+O.length;return new S(n=>{for(let i=0,s=0,l=0;;l++){if(n.next<0){l&&n.acceptToken(e);break}if(i==0&&n.next==ie||i==1&&n.next==se||i>=2&&is?n.acceptToken(e,-s):n.acceptToken(a,-(s-2));break}else if((n.next==10||n.next==13)&&l){n.acceptToken(e,1);break}else i=s=0;n.advance()}})}var kt=aO("script",pt,Qt),Wt=aO("style",$t,qt),_t=aO("textarea",ft,ct),Bt=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],pe=40,Y=41,Qe=91,k=93,$e=123,W=125,Zt=44,jt=58,At=35,Rt=64,d=47,Et=62,Mt=45,qe=34,fe=39,Nt=92,Dt=10,ce=42,me=96,Se=[jt,At,Rt,d],Gt=new S(O=>{for(let e=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(ee);break}if(O.next==Mt)e++;else if(O.next==Et&&e>=2){a>3&&O.acceptToken(ee,-2);break}else e=0;O.advance()}});function Pe(O){let e=!1,a=null,t=!1;return()=>e?t?(t=!1,!0):O.next===Nt?(t=!0,!0):((a==="double"&&O.next===qe||a==="single"&&O.next===fe||a==="template"&&O.next===me)&&(e=!1,a=null),!0):O.next===qe?(e=!0,a="double",!0):O.next===fe?(e=!0,a="single",!0):O.next===me?(e=!0,a="template",!0):!1}function be(O){let e=!1,a=!1;return()=>e?(O.next===Dt&&(e=!1),!0):a?(O.next===ce&&O.peek(1)===d&&(a=!1),!0):O.next===d&&O.peek(1)===d?(e=!0,!0):O.next===d&&O.peek(1)===ce?(a=!0,!0):!1}var It=new S(O=>{if(Se.includes(O.next))return;let e=be(O),a=Pe(O),t=[],n=i=>{let s=t.lastIndexOf(i);if(s!==-1)for(;t.length>s;)t.pop()};for(let i=0;;i++){if(O.next<0){i>0&&O.acceptToken(rO);break}if(e()||a()){O.advance();continue}if(t.length===0&&(O.next===W||O.next===Y||O.next===k)){O.acceptToken(rO);break}switch(O.next){case pe:t.push("(");break;case Y:n("(");break;case Qe:t.push("[");break;case k:n("[");break;case $e:t.push("{");break;case W:n("{");break}O.advance()}}),Kt=new S(O=>{if(Se.includes(O.peek(0)))return;let e=be(O),a=Pe(O),t=[],n=i=>{let s=t.lastIndexOf(i);if(s!==-1)for(;t.length>s;)t.pop()};for(let i=0;;i++){if(O.next<0){i>0&&O.acceptToken(v);break}if(e()||a()){O.advance();continue}if(t.length===0&&(O.next===W||O.next===Y||O.next===k||O.next===Zt)){O.acceptToken(v);break}switch(O.next){case pe:t.push("(");break;case Y:n("(");break;case Qe:t.push("[");break;case k:n("[");break;case $e:t.push("{");break;case W:n("{");break}if(i!==0&&t.length===0&&Bt.includes(O.next)){O.acceptToken(v);break}O.advance()}}),Ct=mO({"Text RawText":o.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":o.angleBracket,TagName:o.tagName,"MismatchedCloseTag/TagName":[o.tagName,o.invalid],AttributeName:o.attributeName,UnquotedAttributeValue:o.attributeValue,"DoubleQuote SingleQuote AttributeValueContent":o.attributeValue,Is:o.definitionOperator,"EntityReference CharacterReference":o.character,Comment:o.blockComment,ProcessingInst:o.processingInstruction,DoctypeDecl:o.documentMeta,"{ }":o.bracket,"[ ]":o.squareBracket,"( )":o.paren,"| , :":o.punctuation,"...":o.derefOperator,ComponentName:o.className,SvelteElementNamespace:o.namespace,SvelteElementType:o.tagName,StyleAttributeName:o.propertyName,BlockType:o.controlKeyword,BlockPrefix:o.typeOperator,"UnknownBlock/BlockType":o.invalid,UnknownBlockContent:o.invalid,"if then catch":o.controlKeyword,as:o.definitionOperator,Variable:o.variableName,Modifier:o.modifier,DirectlyInterpolatedAttributeValue:o.attributeValue,"DirectiveOn/DirectiveName":o.controlKeyword,"DirectiveOn/DirectiveTarget":o.typeName,"DirectiveUse/DirectiveName":o.controlKeyword,"DirectiveUse/DirectiveTarget":o.function(o.variableName),"DirectiveBind/DirectiveName":o.controlKeyword,"DirectiveBind/DirectiveTarget":o.variableName,"DirectiveLet/DirectiveName":o.definitionKeyword,"DirectiveLet/DirectiveTarget":o.definition(o.variableName),"DirectiveTransition/DirectiveName":o.operatorKeyword,"DirectiveTransition/DirectiveTarget":o.function(o.variableName),"DirectiveIn/DirectiveName":o.operatorKeyword,"DirectiveIn/DirectiveTarget":o.function(o.variableName),"DirectiveOut/DirectiveName":o.operatorKeyword,"DirectiveOut/DirectiveTarget":o.function(o.variableName),"DirectiveAnimate/DirectiveName":o.operatorKeyword,"DirectiveAnimate/DirectiveTarget":o.function(o.variableName),"DirectiveClass/DirectiveName":o.attributeName,"DirectiveClass/DirectiveTarget":o.variableName,"DirectiveStyle/DirectiveName":o.attributeName,"DirectiveStyle/DirectiveTarget":o.propertyName}),Ft={__proto__:null,"#":41,":":51,"/":59,"@":109},zt={__proto__:null,if:44,else:52,each:64,await:82,then:90,catch:94,key:102,html:110,debug:114,const:118},Jt={__proto__:null,if:54,as:66,then:84,catch:86},Lt={__proto__:null,on:313,bind:317,let:319,class:321,style:323,use:325,transition:327,in:329,out:331,animate:333},Ht={__proto__:null,svelte:243},Oa=SO.deserialize({version:14,states:"DxQVO#|OOO!ZO#|O'#ClO#[O#|O'#CzO$]O#|O'#DTO%^O#|O'#D_O&_Q'[O'#DjO&mQ&jO'#DrO&rQ&jO'#EpO&wQ&jO'#EsO&|Q&jO'#EvO'XQ&jO'#E|O'^OXO'#DqO'iOYO'#DqO'tO[O'#DqO)TO#|O'#DqOOOW'#Dq'#DqO)[O&zO'#FOO&|Q&jO'#FQO&|Q&jO'#FROOOW'#Fj'#FjOOOW'#FT'#FTQVO#|OOOOOW'#FU'#FUO!ZO#|O,59WOOOW,59W,59WO)uQ'[O'#DjO#[O#|O,59fOOOW,59f,59fO)|Q'[O'#DjOOOW'#FV'#FVO$]O#|O,59oOOOW,59o,59oO*fQ'[O'#DjOOOW'#FW'#FWO%^O#|O,59yOOOW,59y,59yO*mQ'[O'#DjO+OQ&jO,5:UO+TQ,UO,5:VO+YQ,UO,59XO+hQ,UO,59}O,nQ7[O,5:^O,uQ7[O,5;[O,|Q7[O,5;_O-TO,UO'#ExOOQO'#F|'#F|O-YQ7[O,5;bO-dQ7[O,5;hOOOX'#F^'#F^O-kOXO'#EnO-vOXO,5:]OOOY'#F_'#F_O.OOYO'#EqO.ZOYO,5:]OOO['#F`'#F`O.cO[O'#EtO.nO[O,5:]O.vO#|O,5:]O&|Q&jO'#E{OOOW,5:],5:]OOO`'#Fa'#FaO.}O&zO,5;jOOOW,5;j,5;jO/VQ,UO,5;lO/[Q,UO,5;mOOOW-E9R-E9ROOOW-E9S-E9SOOOW1G.r1G.rO/aQ,UO,59`O/fQ,UO,59dOOOW1G/Q1G/QO/kQ,UO,59nOOOW-E9T-E9TOOOW1G/Z1G/ZO/pQ,UO,59tO/xQ,UO,59xOOOW-E9U-E9UOOOW1G/e1G/eO/}Q,UO,59|OOOW1G/p1G/pO0SQMhO1G/qO0[Q'[O1G.sO0aQ'|O1G/RO0fQ'|O1G/[O0kQ'[O1G/fO0pQ'[O1G/iO0uQ!LQO1G/lO0zQ'[O1G/nO1PQ$ISO'#DtOOOO'#Dz'#DzO1[O,UO'#DyOOOO'#EO'#EOO1aO,UO'#D}OOOO'#EQ'#EQO1fO,UO'#EPOOOO'#ES'#ESO1kO,UO'#EROOOO'#EU'#EUO1pO,UO'#ETOOOO'#EW'#EWO1uO,UO'#EVOOOO'#EY'#EYO1zO,UO'#EXOOOO'#E['#E[O2PO,UO'#EZOOOO'#E^'#E^O2UO,UO'#E]OOOO'#E`'#E`O2ZO,UO'#E_O2`Q7[O'#DxO3gQ7[O'#EjO4kQ7[O'#ElOOQO'#Fl'#FlOOQO'#FY'#FYO5rQ7[O1G/xOOOX1G/x1G/xOOQO'#Fm'#FmO5yQ7[O1G0vOOOY1G0v1G0vO6QQ7[O1G0yOOO[1G0y1G0yO6XO(CWO,5;dO6^Q7[O1G0|OOOW1G0|1G0|OOOW1G1S1G1SO6hQ7[O1G1SOOOX-E9[-E9[O6oQ&jO'#EoOOOW1G/w1G/wOOOY-E9]-E9]O6tQ&jO'#ErOOO[-E9^-E9^O6yQ&jO'#EuO7OQ,UO,5;gOOO`-E9_-E9_OOOW1G1U1G1UOOOW1G1W1G1WOOOW1G1X1G1XP)dQ'[O'#DjO7TQ$ISO1G.zO7]Q&jO1G/OO7bQ&jO1G/YP*TQ'[O'#DjO7gQ!LQO1G/`O7oQ!LQO1G/bO7wQ&jO1G/dO7|Q&jO1G/hOOOW7+%]7+%]O8RQ&jO7+%]O8WQ&jO7+$_O8]Q$ISO7+$mO8bQ$ISO7+$vO8mQ&jO7+%QO8rQ&jO7+%TO8wQ&jO7+%WO9PQ&jO7+%YOOQO'#Du'#DuOOQO,5:`,5:`O9UQ&jO,5:`O9ZQ'[O,5:bO9`O07`O,5:eO9eO07`O,5:iO9jO07`O,5:kO9oO07`O,5:mO9tO07`O,5:oO9yO07`O,5:qO:OO07`O,5:sO:TO07`O,5:uO:YO07`O,5:wO:_O07`O,5:yO:dQ?MpO'#FZO:iQ7[O,5:dO;pQ!0LbO,5:dOSQ'[O7+$fOOOW7+$j7+$jOOOW7+$t7+$tOOOW7+$z7+$zO>XQ&jO7+$zOOOW7+$|7+$|O>^Q&jO7+$|OOOW7+%O7+%OOOOW7+%S7+%SOOOW<cQ'|O<hQ'|O<mQ!LQO'#FXO>rQ&jO<zQ&jO1G/|OOQO1G0P1G0POOQO1G0T1G0TOOQO1G0V1G0VOOQO1G0X1G0XOOQO1G0Z1G0ZOOQO1G0]1G0]OOQO1G0_1G0_OOQO1G0a1G0aOOQO1G0c1G0cOOQO1G0e1G0eOOQO,5;u,5;uOOQO-E9X-E9XO?PQ!0LbO1G0OO?_Q'[O'#DjOOQO'#Ed'#EdO?uO#@ItO'#EdO@_O&2DjO'#EdOOQO1G0O1G0OOOQO1G0p1G0pO@fQ!0LbO1G0rOOQO1G0r1G0rOOOW1G0u1G0uOOOW1G0x1G0xOOOW1G0{1G0{O@tQ&jO<^AN>^OOQO7+%h7+%hOOQO7+%j7+%jOOOO'#Fz'#FzOOOO'#F['#F[OAZO#@ItO'#EfOOQO,5;O,5;OOAbO&jO,5;OOOOO'#F]'#F]OAgO&2DjO'#EhOAnO&jO,5;OOOQO7+&^7+&^OOOWAN=lAN=lOOOWG23_G23_OAsQ'[OG23_OAxQ!LQOG23_OOOWG23hG23hOOOO-E9Y-E9YOOQO1G0j1G0jOOOO-E9Z-E9ZOBTQ&jOLD(yOOOWLD(yLD(yOBYQ'[OLD(yOB_Q&jOLD(yOBgQ&jO!$'LeOBlQ&jO!$'LeOOOW!$'Le!$'LeOBqQ'[O!$'LeOOOW!)9BP!)9BPOBvQ&jO!)9BPOB{Q&jO!)9BPOOOW!.K7k!.K7kOCQQ&jO!.K7kOOOW!4/-V!4/-V",stateData:"Cd~O$]OS~OSXOTUOUVOVWOWYOYbOZaO[cObTO!acO!bcO!ccO!dcO#scO#vdO$q`O~OSXOTUOUVOVWOWYOYbOZaO[cObiO!acO!bcO!ccO!dcO#scO$q`O~OSXOTUOUVOVWOWYOYbOZaO[cOblO!acO!bcO!ccO!dcO#scO$q`O~OSXOTUOUVOVWOWYOYbOZaO[cObpO!acO!bcO!ccO!dcO#scO$q`O~OSXOTUOUVOVWOWYOYbOZaO[cObtO!acO!bcO!ccO!dcO#scO$q`O~O]uOcvOdwO!WxO~O!gyO~O!gzO~O!g{O~O!g}O#k}O#m|O~O!g!PO~O$V!QOP#bP$Y#bP~O$W!TOQ#eP$Y#eP~O$X!WOR#hP$Y#hP~OSXOTUOUVOVWOWYOX![OYbOZaO[cObTO!acO!bcO!ccO!dcO#scO$q`O~O$Y!]O~P(PO$Z!^O$r!`O~O]uOcvOdwOi!fO!WxO~Om!gO~P)dOm!iO~P)dO]uOcvOdwOi!lO!WxO~Om!mO~P*TO]uOcvOdwOm!pO!WxO~Og!qO~Oe!rO~Of!sOp!tOy!uO!T!vO~O!X!wO!Z!xO!]!yO~Ob!zO!o#cO#_#bO$b!{O$d!}O$e#PO$f#RO$g#TO$h#VO$i#XO$j#ZO$k#]O$l#_O~O#a#gO~P+sO#a#jO~P+sO#a#lO~P+sO$c#mO~O#a#oO#q#pO~P+sO#a#pO~P+sO$V!QOP#bX$Y#bX~OP#sO$Y#tO~O$W!TOQ#eX$Y#eX~OQ#vO$Y#tO~O$X!WOR#hX$Y#hX~OR#xO$Y#tO~O$Y#tO~P(PO$Z!^O$r#{O~O#a#|O~O#a#}O~Oj$PO~Of$QO~Op$RO~O}$TO!P$UO~Oy$VO~O!T$WO~Og$XO!`$YO~O]$ZO~O^$[O~O^$]O~O]$^O~O]$_O~Ou$`O~O]$aO~Og$cO!k$eO$_$bO~O$c$fO~O$c$gO~O$c$hO~O$c$iO~O$c$jO~O$c$kO~O$c$lO~O$c$mO~O$c$nO~O$c$oO~O#T$pO#V$rOb!lX!o!lX#_!lX#a!lX$b!lX$d!lX$e!lX$f!lX$g!lX$h!lX$i!lX$j!lX$k!lX$l!lX#q!lX~O#V$sOb#^X!o#^X#_#^X#a#^X$b#^X$d#^X$e#^X$f#^X$g#^X$h#^X$i#^X$j#^X$k#^X$l#^X#q#^X~O#T$pO#V$uOb#`X!o#`X#_#`X#a#`X$b#`X$d#`X$e#`X$f#`X$g#`X$h#`X$i#`X$j#`X$k#`X$l#`X#q#`X~O#a$wO~P+sO#a$xO~P+sO#a$yO~P+sO#n$zO~O#a${O#q$|O~P+sO#a$|O~P+sO!g$}O~O!g%OO~O!g%PO~O#a%QO~Og%ROk%SO~Og%TO~Og%UO~Og%VOu%WO~Og%XOu%YO~Og%ZO~Og%[O~Og%]O~Og%^O~Oq%_O~Og%`Oz%aO{%aO~Og%bO~Og%cO~Og%fOt%dO~Og%gO~Og%hO~O]%iO~O!p%jO~O!p%kO~O!p%lO~O!p%mO~O!p%nO~O!p%oO~O!p%pO~O!p%qO~O!p%rO~O!p%sO~O#U%tO~O#T$pO#V%vOb!la!o!la#_!la#a!la$b!la$d!la$e!la$f!la$g!la$h!la$i!la$j!la$k!la$l!la#q!la~Ob%wO#X%yO#Z%zO#]%{O~Ob%wO#X%yO#Z%zO#]%|O~O#T$pO#V%}Ob#`a!o#`a#_#`a#a#`a$b#`a$d#`a$e#`a$f#`a$g#`a$h#`a$i#`a$j#`a$k#`a$l#`a#q#`a~Ob%wO#X%yO#Z%zO#]&OO~O#a&PO~O#a&QO~O#a&RO~O]&SO~Og&TO~Og&UO~O^&VO~O^&WO~Ou&XO~Og&ZOt%dO~Og&[O~Ob%wO#X%yO#Z%zO#]&]O~O]uO~Ob%wO!b&^O!c&^O!d&^O$m&_O~O#X&aO~P?dOb%wO!b&^O!c&^O!d&^O$o&cO~O#Z&aO~P?|Ob%wO#X%yO#Z%zO#]&fO~Og&gO~Og&hOr&iOt&jO~Og&kO~O#X#YX~P?dO#X&mO~O#Z#[X~P?|O#Z&mO~O]&oO~Og&pOr&qOu&rO~Os&sO~O]&tO~Og&uOr&vO~Og&wO~Os&xO~O]&yO~Og&zO~Os&{O~Og&|O~O!`$]#q$q#s#v!c!b#_!o!d#a~",goto:"1T$qPPPPPPPPPPPPPPPP$r%QPPPPPP%`PPP%fP$r%lPPPPPP%z$r&QPPP&`P&`P&d$r&jP&x$rPP$rP$rP'O$rPPPPP$r'kP'y(V'yP'y(Y(fPP(Y(r(Y)O(Y)[(Y)h(Y)t(Y*Q(Y*^(Y*j(Y*vPPP+SP+cP+fP'yP'yP+i+l+o+},Q,T,c,f,iP,wPP,}-TP$rP$r$rP-c-i-s-y.T.Z.q.{/R/X/_/e/kPPPPPPPP/qP0V0cPPPPPPPPPPPP0oP0wicOPQRS^egjnr!ZiPOPQRS^egjnr!ZXfPQgjQhPR!egiQOPQRS^egjnr!ZQkQR!hjiROPQRS^egjnr!ZTmRnQoRR!kniSOPQRS^egjnr!ZQsSR!orhcOPQRS^egjnr!ZY%x$r$s$u%v%}X&^%y%z&`&diZOPQRS^egjnr!Ze#dyz{!O!P#f#i#k#n#qR$d!ze#hyz{!O!P#f#i#k#n#qe!|yz{!O!P#f#i#k#n#qe#Oyz{!O!P#f#i#k#n#qe#Qyz{!O!P#f#i#k#n#qe#Syz{!O!P#f#i#k#n#qe#Uyz{!O!P#f#i#k#n#qe#Wyz{!O!P#f#i#k#n#qe#Yyz{!O!P#f#i#k#n#qe#[yz{!O!P#f#i#k#n#qe#^yz{!O!P#f#i#k#n#qe#`yz{!O!P#f#i#k#n#qQ%{$rQ%|$sQ&O$uQ&]%vR&f%}R&b%yR&e%zR!SZR#t!Si[OPQRS^egjnr!ZR!V[R#t!Vi]OPQRS^egjnr!ZR!Y]R#t!Yi^OPQRS^egjnr!ZX}Xab![Q!]^R#t!Zi_OPQRS^egjnr!ZQeOR!ceQgPQjQT!dgjQnRR!jnQrSQ!Z^T!nr!ZQ%e$`R&Y%eQ#fyQ#izQ#k{Q#n!OQ#q!PZ$v#f#i#k#n#qQ$q#aQ$t#cT%u$q$tQ&`%yR&l&`Q&d%zR&n&dQ!RZR#r!RQ!U[R#u!UQ!X]R#w!XQ!_`R#z!_SdOeWfPQgjSmRnXqS^r!Ze#eyz{!O!P#f#i#k#n#qe#ayz{!O!P#f#i#k#n#qS&_%y&`T&c%z&dQ!OXQ!aaQ!bbR#y![",nodeNames:"\u26A0 StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag LongExpression ShortExpression Document IfBlock IfBlockOpen { BlockPrefix BlockPrefix BlockType BlockType } ElseBlock BlockPrefix BlockType if IfBlockClose BlockPrefix EachBlock EachBlockOpen BlockType as ( ) , Variable EachBlockClose AwaitBlock AwaitBlockOpen BlockType then catch ThenBlock BlockType CatchBlock BlockType AwaitBlockClose KeyBlock KeyBlockOpen BlockType KeyBlockClose RawHTMLBlock BlockPrefix BlockType DebugBlock BlockType ConstBlock BlockType Interpolation UnknownBlock UnknownBlockContent Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName DirectlyInterpolatedAttribute DirectlyInterpolatedAttributeValue SpreadInterpolatedAttribute ... Directive DirectiveOn DirectiveName AttributeName DirectiveTarget DirectiveBind DirectiveName DirectiveLet DirectiveName DirectiveClass DirectiveName DirectiveStyle DirectiveName DirectiveUse DirectiveName DirectiveTransition DirectiveName DirectiveIn DirectiveName DirectiveOut DirectiveName DirectiveAnimate DirectiveName | Modifier Is AttributeValue DoubleQuote AttributeValueContent SingleQuote AttributeValueContent UnquotedAttributeValue StyleAttribute StyleAttributeName Attribute EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag ComponentName SvelteElementName SvelteElementNamespace SvelteElementType CloseTag SelfClosingTag SelfClosingEndTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:172,context:vt,nodeProps:[["closedBy",-10,1,2,3,5,6,7,8,9,10,11,"EndTag",4,"EndTag SelfClosingEndTag",17,"IfBlockClose",18,"}",31,"EachBlockClose",34,"(",40,"AwaitBlockClose",48,"AwaitBlockOpen",50,"KeyBlockClose",-4,68,112,115,118,"CloseTag",101,'"',103,"'"],["group",-10,12,60,64,65,66,67,126,127,128,129,"Entity",-4,16,30,39,49,"Block Entity",-4,17,31,40,50,"BlockOpen",-3,24,44,46,"BlockInline",-4,28,38,48,52,"BlockClose",-4,53,56,58,61,"BlockInline Entity",63,"Entity TextContent",-3,110,113,116,"TextContent Entity"],["openedBy",23,"{",28,"IfBlockOpen",35,")",38,"EachBlockOpen",52,"KeyBlockOpen",101,'"',103,"'",109,"StartTag StartCloseTag",-4,111,114,117,123,"OpenTag",125,"StartTag"]],propSources:[Ct],skippedNodes:[0],repeatNodeCount:13,tokenData:"&8h$IRR!dOX%aXY/TYZ/TZ[%a[]1{]^/T^p%apq/Tqr2yrsEastF_tuHxuv2yvw!)[wx#,nxy#-lyz#0Vz|2y|}#2p}!O#5Z!O!P#Kk!P!Q$%S!Q![2y![!]$'{!]!^2y!^!_$)u!_!`%'{!`!a%({!a!b2y!b!cF_!c!}%){!}#R2y#R#S%AU#S#T&%m#T#o&'m#o#p&1P#p#q&1d#q#r&3[#r#s2y#s$f%a$f$g2y$g%WHx%W%o%AU%o%pHx%p&a%AU&a&bHx&b1p%AU1p4UHx4U4d%AU4d4eHx4e$IS%AU$IS$I`Hx$I`$Ib%AU$Ib$KhHx$Kh%#t%AU%#t&/xHx&/x&Et%AU&Et&FVHx&FV;'S%AU;'S;:j&5p;:j;=`&5v<%l?&rHx?&r?Ah%AU?Ah?BY&5|?BY?Mn%AU?MnO&5|$3X%ng!aP#]7[$mMh$o!LQ!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wsv'Vvw*}wx(wx!^'V!^!_)q!_!a(w!a#S'V#S#T(w#T#o'V#o#p*}#p#q'V#q#r-b#r;'S'V;'S;=`.}<%lO'V7m'`g!aP#]7[!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wsv'Vvw*}wx(wx!^'V!^!_)q!_!a(w!a#S'V#S#T(w#T#o'V#o#p*}#p#q'V#q#r-b#r;'S'V;'S;=`.}<%lO'Va)OZ!aP!``Ov(wvw)qw!^(w!^!_)q!_#o(w#o#p)q#p#q(w#q#r*Y#r;'S(w;'S;=`*w<%lO(w`)vS!``O#q)q#r;'S)q;'S;=`*S<%lO)q`*VP;=`<%l)qP*_U!aPOv*Yw!^*Y!_#o*Y#p;'S*Y;'S;=`*q<%lO*YP*tP;=`<%l*Ya*zP;=`<%l(w7l+Uc#]7[!``OX*}XZ)qZ[*}[^)q^p*}pq)qqr*}rs)qsw*}wx)qx!^*}!^!a)q!a#S*}#S#T)q#T#q*}#q#r,a#r;'S*};'S;=`-[<%lO*}7[,fY#]7[OX,aZ[,a^p,aqr,asw,ax!^,a!a#S,a#T;'S,a;'S;=`-U<%lO,a7[-XP;=`<%l,a7l-_P;=`<%l*}7]-id!aP#]7[OX-bXZ*YZ[-b[^*Y^p-bpq*Yqr-brs*Ysv-bvw,awx*Yx!^-b!_!a*Y!a#S-b#S#T*Y#T#o-b#o#p,a#p;'S-b;'S;=`.w<%lO-b7].zP;=`<%l-b7m/QP;=`<%l'V$@q/bb!aP$mMh$o!LQ!``$]EUOX(wXY0jYZ0jZ](w]^0j^p(wpq0jqv(wvw)qw!^(w!^!_)q!_#o(w#o#p)q#p#q(w#q#r*Y#r;'S(w;'S;=`*w<%lO(wEV0sb!aP!``$]EUOX(wXY0jYZ0jZ](w]^0j^p(wpq0jqv(wvw)qw!^(w!^!_)q!_#o(w#o#p)q#p#q(w#q#r*Y#r;'S(w;'S;=`*w<%lO(w#J{2WZ!aP$mMh$o!LQ!``Ov(wvw)qw!^(w!^!_)q!_#o(w#o#p)q#p#q(w#q#r*Y#r;'S(w;'S;=`*w<%lO(w$DR3^p!p&j#U,U!aP#]7[$mMh$o!LQ!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx!P5b!P!Q'V!Q![5b![!]'V!]!^5b!^!_:Q!_!a(w!a#S5b#S#T>y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'VHg5qp!p&j#U,U!aP#]7[!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx!P5b!P!Q'V!Q![5b![!]'V!]!^5b!^!_:Q!_!a(w!a#S5b#S#T>y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'VHf8Sn!p&j#U,U#]7[!``!oWOX*}XZ)qZ[*}[^)q^p*}pq)qqr7urs)qsw7uwx)qx!P7u!P!Q*}!Q![7u![!]*}!]!^7u!^!_:Q!_!a)q!a#S7u#S#T:Q#T#o7u#o#q*}#q#rs<%l?Ah7u?Ah?BY*}?BY?Mn7u?MnO*}2Y:]f!p&j#U,U!``!oWOq)qqr:Qrs)qsw:Qwx)qx!P:Q!P!Q)q!Q![:Q![!])q!]!_:Q!_!a)q!a#o:Q#o#q)q#q#r;q#r#s:Q#s$f)q$f;'S:Q;'S;=`m<%l?AhpP;=`<%lvP;=`<%l7u2Z?Wi!p&j#U,U!aP!``!oWOq(wqr>yrs(wsv>yvw:Qwx(wx!P>y!P!Q(w!Q![>y![!](w!]!^>y!^!_:Q!_!a(w!a#o>y#o#p)q#p#q(w#q#r@u#r#s>y#s$f(w$f;'S>y;'S;=`Bo<%l?Ah>y?Ah?BY(w?BY?Mn>y?MnO(w1yAQg!p&j#U,U!aP!oWOq*Yqr@urs*Ysv@uvw;qwx*Yx!P@u!P!Q*Y!Q![@u![!]*Y!]!^@u!^!_;q!_!a*Y!a#o@u#p#q*Y#q#s@u#s$f*Y$f;'S@u;'S;=`Bi<%l?Ah@u?Ah?BY*Y?BY?Mn@u?MnO*Y1yBlP;=`<%l@u2ZBrP;=`<%l>yHVCSo!p&j#U,U!aP#]7[!oWOX-bXZ*YZ[-b[^*Y^p-bpq*YqrBurs*YsvBuvwy#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'V$FZIcweS!p&j#U,U!aP#]7[up$mMh$o!LQ$_!b!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuK|uv5bvw7uwx(wx!O5b!O!PN|!P!Q'V!Q![K|![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}K|!}#R5b#R#SK|#S#T>y#T#oK|#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g;'SK|;'S;=`!&h<%l?AhK|?Ah?BY!&n?BY?MnK|?MnO!&nJoLcweS!p&j#U,U!aP#]7[up$_!b!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuK|uv5bvw7uwx(wx!O5b!O!PN|!P!Q'V!Q![K|![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}K|!}#R5b#R#SK|#S#T>y#T#oK|#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g;'SK|;'S;=`!&h<%l?AhK|?Ah?BY!&n?BY?MnK|?MnO!&nIX! _w!p&j#U,U!aP#]7[up!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuN|uv5bvw7uwx(wx!O5b!O!PN|!P!Q'V!Q![N|![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}N|!}#R5b#R#SN|#S#T>y#T#oN|#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g;'SN|;'S;=`!#x<%l?AhN|?Ah?BY!$O?BY?MnN|?MnO!$OIX!#{P;=`<%lN|8_!$Zq!aP#]7[up!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wst'Vtu!$Ouv'Vvw*}wx(wx!O'V!O!P!$O!P!Q'V!Q![!$O![!^'V!^!_)q!_!a(w!a!c'V!c!}!$O!}#R'V#R#S!$O#S#T(w#T#o!$O#o#p*}#p#q'V#q#r-b#r$g'V$g;'S!$O;'S;=`!&b<%lO!$O8_!&eP;=`<%l!$OJo!&kP;=`<%lK|9u!&}qeS!aP#]7[up$_!b!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wst'Vtu!&nuv'Vvw*}wx(wx!O'V!O!P!$O!P!Q'V!Q![!&n![!^'V!^!_)q!_!a(w!a!c'V!c!}!&n!}#R'V#R#S!&n#S#T(w#T#o!&n#o#p*}#p#q'V#q#r-b#r$g'V$g;'S!&n;'S;=`!)U<%lO!&n9u!)XP;=`<%l!&n$DR!)ko!p&j#U,U#]7[!``!oW!d#JkOX!+lXZ!-UZ[!+l[^!-U^p!+lpq)qqr!3Qrs!-Ust!B^tw!3Qwx!-Ux!P!3Q!P!Q!+l!Q![!3Q![!]!+l!]!^7u!^!_!7m!_!a!-U!a#S!3Q#S#T!7m#T#o!3Q#o#q!+l#q#r!>U#r#s!3Q#s$f!+l$f;'S!3Q;'S;=`!BW<%l?Ah!3Q?Ah?BY!+l?BY?Mn!3Q?MnO!+l$3X!+se#]7[!``OX!+lXZ!-UZ[!+l[^!-U^p!+lpq)qqr!+lrs!-Ust*}tw!+lwx!-Ux!]!+l!]!^!/[!^!a!-U!a#S!+l#S#T!-U#T#q!+l#q#r!0p#r;'S!+l;'S;=`!2z<%lO!+l#J{!-ZZ!``Op!-Upq)qqs!-Ust)qt!]!-U!]!^!-|!^#q!-U#q#r!.a#r;'S!-U;'S;=`!/U<%lO!-U#J{!.TS!``!b#JkO#q)q#r;'S)q;'S;=`*S<%lO)q#Jk!.dVOp!.aqs!.at!]!.a!]!^!.y!^;'S!.a;'S;=`!/O<%lO!.a#Jk!/OO!b#Jk#Jk!/RP;=`<%l!.a#J{!/XP;=`<%l!-U$3X!/ec#]7[!``!b#JkOX*}XZ)qZ[*}[^)q^p*}pq)qqr*}rs)qsw*}wx)qx!^*}!^!a)q!a#S*}#S#T)q#T#q*}#q#r,a#r;'S*};'S;=`-[<%lO*}$2w!0ub#]7[OX!0pXZ!.aZ[!0p[^!.a^p!0pqr!0prs!.ast,atw!0pwx!.ax!]!0p!]!^!1}!^!a!.a!a#S!0p#S#T!.a#T;'S!0p;'S;=`!2t<%lO!0p$2w!2UY#]7[!b#JkOX,aZ[,a^p,aqr,asw,ax!^,a!a#S,a#T;'S,a;'S;=`-U<%lO,a$2w!2wP;=`<%l!0p$3X!2}P;=`<%l!+l$DR!3_o!p&j#U,U#]7[!``!oWOX!+lXZ!-UZ[!+l[^!-U^p!+lpq)qqr!3Qrs!-Ust7utw!3Qwx!-Ux!P!3Q!P!Q!+l!Q![!3Q![!]!+l!]!^!5`!^!_!7m!_!a!-U!a#S!3Q#S#T!7m#T#o!3Q#o#q!+l#q#r!>U#r#s!3Q#s$f!+l$f;'S!3Q;'S;=`!BW<%l?Ah!3Q?Ah?BY!+l?BY?Mn!3Q?MnO!+l$DR!5on!p&j#U,U#]7[!``!b#Jk!oWOX*}XZ)qZ[*}[^)q^p*}pq)qqr7urs)qsw7uwx)qx!P7u!P!Q*}!Q![7u![!]*}!]!^7u!^!_:Q!_!a)q!a#S7u#S#T:Q#T#o7u#o#q*}#q#rs<%l?Ah7u?Ah?BY*}?BY?Mn7u?MnO*}$-u!7xi!p&j#U,U!``!oWOp!-Upq)qqr!7mrs!-Ust:Qtw!7mwx!-Ux!P!7m!P!Q!-U!Q![!7m![!]!-U!]!^!9g!^!_!7m!_!a!-U!a#o!7m#o#q!-U#q#r!;Y#r#s!7m#s$f!-U$f;'S!7m;'S;=`!>O<%l?Ah!7m?Ah?BY!-U?BY?Mn!7m?MnO!-U$-u!9tf!p&j#U,U!``!b#Jk!oWOq)qqr:Qrs)qsw:Qwx)qx!P:Q!P!Q)q!Q![:Q![!])q!]!_:Q!_!a)q!a#o:Q#o#q)q#q#r;q#r#s:Q#s$f)q$f;'S:Q;'S;=`RP;=`<%l!7m$Cq!>am!p&j#U,U#]7[!oWOX!0pXZ!.aZ[!0p[^!.a^p!0pqr!>Urs!.astUwx!.ax!P!>U!P!Q!0p!Q![!>U![!]!0p!]!^!@[!^!_!;Y!_!a!.a!a#S!>U#S#T!;Y#T#o!>U#o#q!0p#q#s!>U#s$f!0p$f;'S!>U;'S;=`!BQ<%l?Ah!>U?Ah?BY!0p?BY?Mn!>U?MnO!0p$Cq!@ig!p&j#U,U#]7[!b#Jk!oWOX,aZ[,a^p,aqrm<%l?AhU$DR!BZP;=`<%l!3Q$DR!Bkn!p&j#U,U#]7[!``!oWOX!DiXZ!FOZ[!Di[^!FO^p!Dipq)qqr!Knrs!FOsw!Knwx!FOx!P!Kn!P!Q!Di!Q![!Kn![!]!Di!]!^7u!^!_#!W!_!a!FO!a#S!Kn#S#T#!W#T#o!Kn#o#q!Di#q#r#(i#r#s!Kn#s$f!Di$f;'S!Kn;'S;=`#,h<%l?Ah!Kn?Ah?BY!Di?BY?Mn!Kn?MnO!Di$3X!Dpd#]7[!``OX!DiXZ!FOZ[!Di[^!FO^p!Dipq)qqr!Dirs!FOsw!Diwx!FOx!]!Di!]!^!G{!^!a!FO!a#S!Di#S#T!FO#T#q!Di#q#r!Ia#r;'S!Di;'S;=`!Kh<%lO!Di#J{!FTX!``Op!FOpq)qq!]!FO!]!^!Fp!^#q!FO#q#r!GT#r;'S!FO;'S;=`!Gu<%lO!FO#J{!FwS!``!c#JkO#q)q#r;'S)q;'S;=`*S<%lO)q#Jk!GWUOp!GTq!]!GT!]!^!Gj!^;'S!GT;'S;=`!Go<%lO!GT#Jk!GoO!c#Jk#Jk!GrP;=`<%l!GT#J{!GxP;=`<%l!FO$3X!HUc#]7[!``!c#JkOX*}XZ)qZ[*}[^)q^p*}pq)qqr*}rs)qsw*}wx)qx!^*}!^!a)q!a#S*}#S#T)q#T#q*}#q#r,a#r;'S*};'S;=`-[<%lO*}$2w!Ifa#]7[OX!IaXZ!GTZ[!Ia[^!GT^p!Iaqr!Iars!GTsw!Iawx!GTx!]!Ia!]!^!Jk!^!a!GT!a#S!Ia#S#T!GT#T;'S!Ia;'S;=`!Kb<%lO!Ia$2w!JrY#]7[!c#JkOX,aZ[,a^p,aqr,asw,ax!^,a!a#S,a#T;'S,a;'S;=`-U<%lO,a$2w!KeP;=`<%l!Ia$3X!KkP;=`<%l!Di$DR!K{n!p&j#U,U#]7[!``!oWOX!DiXZ!FOZ[!Di[^!FO^p!Dipq)qqr!Knrs!FOsw!Knwx!FOx!P!Kn!P!Q!Di!Q![!Kn![!]!Di!]!^!My!^!_#!W!_!a!FO!a#S!Kn#S#T#!W#T#o!Kn#o#q!Di#q#r#(i#r#s!Kn#s$f!Di$f;'S!Kn;'S;=`#,h<%l?Ah!Kn?Ah?BY!Di?BY?Mn!Kn?MnO!Di$DR!NYn!p&j#U,U#]7[!``!c#Jk!oWOX*}XZ)qZ[*}[^)q^p*}pq)qqr7urs)qsw7uwx)qx!P7u!P!Q*}!Q![7u![!]*}!]!^7u!^!_:Q!_!a)q!a#S7u#S#T:Q#T#o7u#o#q*}#q#rs<%l?Ah7u?Ah?BY*}?BY?Mn7u?MnO*}$-u#!ch!p&j#U,U!``!oWOp!FOpq)qqr#!Wrs!FOsw#!Wwx!FOx!P#!W!P!Q!FO!Q![#!W![!]!FO!]!^##}!^!_#!W!_!a!FO!a#o#!W#o#q!FO#q#r#%p#r#s#!W#s$f!FO$f;'S#!W;'S;=`#(c<%l?Ah#!W?Ah?BY!FO?BY?Mn#!W?MnO!FO$-u#$[f!p&j#U,U!``!c#Jk!oWOq)qqr:Qrs)qsw:Qwx)qx!P:Q!P!Q)q!Q![:Q![!])q!]!_:Q!_!a)q!a#o:Q#o#q)q#q#r;q#r#s:Q#s$f)q$f;'S:Q;'S;=`m<%l?Ahy#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'V$DT#0lpsQ!p&j#U,U!aP#]7[$mMh$o!LQ!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx!P5b!P!Q'V!Q![5b![!]'V!]!^5b!^!_:Q!_!a(w!a#S5b#S#T>y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'V$DT#3VptQ!p&j#U,U!aP#]7[$mMh$o!LQ!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx!P5b!P!Q'V!Q![5b![!]'V!]!^5b!^!_:Q!_!a(w!a#S5b#S#T>y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'V$DT#5nr!p&j#U,U!aP#]7[$mMh$o!LQ!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx}5b}!O#7x!O!P5b!P!Q'V!Q![5b![!]'V!]!^5b!^!_:Q!_!a(w!a#S5b#S#T>y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'VHi#8Xq!p&j#U,U!aP#]7[!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr#:`rs(wsv#:`vw#y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'VIy#Nfq!p&j#U,U!aP#]7[!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx!O5b!O!P$!m!P!Q'V!Q![5b![!]'V!]!^5b!^!_:Q!_!a(w!a#S5b#S#T>y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'VIy$#Op!k!b!p&j#U,U!aP#]7[!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx!P5b!P!Q'V!Q![5b![!]'V!]!^5b!^!_:Q!_!a(w!a#S5b#S#T>y#T#o5b#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f;'S5b;'S;=`EZ<%l?Ah5b?Ah?BY'V?BY?Mn5b?MnO'V$3g$%chcQ!aP#]7[$mMh$o!LQ!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wsv'Vvw*}wx(wx!^'V!^!_)q!_!`(w!`!a$&}!a#S'V#S#T(w#T#o'V#o#p*}#p#q'V#q#r-b#r;'S'V;'S;=`.}<%lO'Vm$'YZ!aP!``#qW#a[Ov(wvw)qw!^(w!^!_)q!_#o(w#o#p)q#p#q(w#q#r*Y#r;'S(w;'S;=`*w<%lO(w$3_$(^g$cScQ!aP#]7[$mMh$o!LQ!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wsv'Vvw*}wx(wx!^'V!^!_)q!_!a(w!a#S'V#S#T(w#T#o'V#o#p*}#p#q'V#q#r-b#r;'S'V;'S;=`.}<%lO'V$-u$*Ug!p&j#U,U$mMh$o!LQ!``!oWOq)qqr$+mrs)qsw:Qwx)qx!P:Q!P!Q)q!Q![:Q![!])q!]!_:Q!_!a)q!a!b$LZ!b#o:Q#o#q)q#q#r;q#r#s:Q#s$f)q$f;'S:Q;'S;=``!a#o$`!a#q$=t#q#r$>s#r;'S$=t;'S;=`$?b<%lO$=ta$>gS!``#vPO#q)q#r;'S)q;'S;=`*S<%lO)qP$>vTO!`$>s!`!a$?V!a;'S$>s;'S;=`$?[<%lO$>sP$?[O#vPP$?_P;=`<%l$>sa$?eP;=`<%l$=t1y$?qf!p&j#U,U!oWOq$>sqr$?hrs$>ssw$?hwx$>sx!P$?h!P!Q$>s!Q![$?h![!]$>s!]!_$?h!_!`$>s!`!a$?V!a#o$?h#o#q$>s#q#s$?h#s$f$>s$f;'S$?h;'S;=`$AV<%l?Ah$?h?Ah?BY$>s?BY?Mn$?h?MnO$>s1y$AYP;=`<%l$?h2Z$A`P;=`<%l$y#T#o%y#T#o%.o#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$}5b$}%O%.o%O%W5b%W%o%.o%o%p5b%p&a%.o&a&b5b&b1p%.o1p4U%.o4U4d%.o4d4e5b4e$IS%.o$IS$I`5b$I`$Ib%.o$Ib$Je5b$Je$Jg%.o$Jg$Kh5b$Kh%#t%.o%#t&/x5b&/x&Et%.o&Et&FV5b&FV;'S%.o;'S;:j%2|;:j;=`EZ<%l?&r5b?&r?Ah%.o?Ah?BY'V?BY?Mn%.o?MnO'VHi%3PP;=`<%l%.oIZ%3g!a#kQ!p&j#U,U!aP#]7[up!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuN|uv5bvw7uwx(wx}5b}!O%.o!O!P%3S!P!Q'V!Q![%3S![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}%3S!}#R5b#R#S%3S#S#T>y#T#o%3S#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}N|$}%O%3S%O%WN|%W%o%3S%o%pN|%p&a%3S&a&bN|&b1p%3S1p4U%3S4U4d%3S4d4eN|4e$IS%3S$IS$I`N|$I`$Ib%3S$Ib$JeN|$Je$Jg%3S$Jg$KhN|$Kh%#t%3S%#t&/xN|&/x&Et%3S&Et&FVN|&FV;'S%3S;'S;:j%7l;:j;=`!#x<%l?&rN|?&r?Ah%3S?Ah?BY!$O?BY?Mn%3S?MnO!$OIZ%7oP;=`<%l%3SJq%8Z!aeS#kQ!p&j#U,U!aP#]7[up$_!b!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuK|uv5bvw7uwx(wx}5b}!O%.o!O!P%3S!P!Q'V!Q![%7r![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}%7r!}#R5b#R#S%7r#S#T>y#T#o%7r#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}K|$}%O%7r%O%WK|%W%o%7r%o%pK|%p&a%7r&a&bK|&b1p%7r1p4U%7r4U4d%7r4d4eK|4e$IS%7r$IS$I`K|$I`$Ib%7r$Ib$JeK|$Je$Jg%7r$Jg$KhK|$Kh%#t%7r%#t&/xK|&/x&Et%7r&Et&FVK|&FV;'S%7r;'S;:j%<`;:j;=`!&h<%l?&rK|?&r?Ah%7r?Ah?BY!&n?BY?Mn%7r?MnO!&nJq%y#T#o%y#T#o%Ny#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}K|$}%O%Ny%O%WK|%W%o%Ny%o%pK|%p&a%Ny&a&bK|&b1p%Ny1p4U%Ny4U4d%Ny4d4eK|4e$IS%Ny$IS$I`K|$I`$Ib%Ny$Ib$JeK|$Je$Jg%Ny$Jg$KhK|$Kh%#t%Ny%#t&/xK|&/x&Et%Ny&Et&FVK|&FV;'S%Ny;'S;:j&%g;:j;=`!&h<%l?&rK|?&r?Ah%Ny?Ah?BY!&n?BY?Mn%Ny?MnO!&nHi%FX!^!p&j#U,U!gQ!aP#]7[!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wsv5bvw7uwx(wx}5b}!O%Ev!O!P%Ev!P!Q'V!Q![%Ev![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}%Ev!}#R5b#R#S%Ev#S#T>y#T#o%Ev#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$}5b$}%O%Ev%O%W5b%W%o%Ev%o%p5b%p&a%Ev&a&b5b&b1p%Ev1p4U%Ev4U4d%Ev4d4e5b4e$IS%Ev$IS$I`5b$I`$Ib%Ev$Ib$Je5b$Je$Jg%Ev$Jg$Kh5b$Kh%#t%Ev%#t&/x5b&/x&Et%Ev&Et&FV5b&FV;'S%Ev;'S;:j%JT;:j;=`EZ<%l?&r5b?&r?Ah%Ev?Ah?BY'V?BY?Mn%Ev?MnO'VHi%JWP;=`<%l%EvIZ%Jn!a!p&j#U,U!gQ!aP#]7[up!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuN|uv5bvw7uwx(wx}5b}!O%Ev!O!P%JZ!P!Q'V!Q![%JZ![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}%JZ!}#R5b#R#S%JZ#S#T>y#T#o%JZ#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}N|$}%O%JZ%O%WN|%W%o%JZ%o%pN|%p&a%JZ&a&bN|&b1p%JZ1p4U%JZ4U4d%JZ4d4eN|4e$IS%JZ$IS$I`N|$I`$Ib%JZ$Ib$JeN|$Je$Jg%JZ$Jg$KhN|$Kh%#t%JZ%#t&/xN|&/x&Et%JZ&Et&FVN|&FV;'S%JZ;'S;:j%Ns;:j;=`!#x<%l?&rN|?&r?Ah%JZ?Ah?BY!$O?BY?Mn%JZ?MnO!$OIZ%NvP;=`<%l%JZJq& b!aeS!p&j#U,U!gQ!aP#]7[up$_!b!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuK|uv5bvw7uwx(wx}5b}!O%Ev!O!P%JZ!P!Q'V!Q![%Ny![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}%Ny!}#R5b#R#S%Ny#S#T>y#T#o%Ny#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}K|$}%O%Ny%O%WK|%W%o%Ny%o%pK|%p&a%Ny&a&bK|&b1p%Ny1p4U%Ny4U4d%Ny4d4eK|4e$IS%Ny$IS$I`K|$I`$Ib%Ny$Ib$JeK|$Je$Jg%Ny$Jg$KhK|$Kh%#t%Ny%#t&/xK|&/x&Et%Ny&Et&FVK|&FV;'S%Ny;'S;:j&%g;:j;=`!&h<%l?&rK|?&r?Ah%Ny?Ah?BY!&n?BY?Mn%Ny?MnO!&nJq&%jP;=`<%l%Ny$-u&&Oi!p&j#U,U!aP$mMh$o!LQ!``!oWOq(wqr>yrs(wsv>yvw:Qwx(wx!P>y!P!Q(w!Q![>y![!](w!]!^>y!^!_:Q!_!a(w!a#o>y#o#p)q#p#q(w#q#r@u#r#s>y#s$f(w$f;'S>y;'S;=`Bo<%l?Ah>y?Ah?BY(w?BY?Mn>y?MnO(w$IR&([!aeS!p&j#U,U#n#t!gQ!aP#]7[up$mMh$o!LQ$_!b!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuK|uv5bvw7uwx(wx}5b}!O%Ev!O!P%JZ!P!Q'V!Q![%Ny![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}&,a!}#R5b#R#S%Ny#S#T>y#T#o&,a#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}K|$}%O%Ny%O%WK|%W%o%Ny%o%pK|%p&a%Ny&a&bK|&b1p%Ny1p4U%Ny4U4d%Ny4d4eK|4e$IS%Ny$IS$I`K|$I`$Ib%Ny$Ib$JeK|$Je$Jg%Ny$Jg$KhK|$Kh%#t%Ny%#t&/xK|&/x&Et%Ny&Et&FVK|&FV;'S%Ny;'S;:j&%g;:j;=`!&h<%l?&rK|?&r?Ah%Ny?Ah?BY!&n?BY?Mn%Ny?MnO!&nMg&,z!aeS!p&j#U,U#n#t!gQ!aP#]7[up$_!b!``!oWOX'VXZ(wZ['V[^(w^p'Vpq(wqr5brs(wst5btuK|uv5bvw7uwx(wx}5b}!O%Ev!O!P%JZ!P!Q'V!Q![%Ny![!]'V!]!^5b!^!_:Q!_!a(w!a!c5b!c!}&,a!}#R5b#R#S%Ny#S#T>y#T#o&,a#o#p*}#p#q'V#q#rBu#r#s5b#s$f'V$f$g5b$g$}K|$}%O%Ny%O%WK|%W%o%Ny%o%pK|%p&a%Ny&a&bK|&b1p%Ny1p4U%Ny4U4d%Ny4d4eK|4e$IS%Ny$IS$I`K|$I`$Ib%Ny$Ib$JeK|$Je$Jg%Ny$Jg$KhK|$Kh%#t%Ny%#t&/xK|&/x&Et%Ny&Et&FVK|&FV;'S%Ny;'S;:j&%g;:j;=`!&h<%l?&rK|?&r?Ah%Ny?Ah?BY!&n?BY?Mn%Ny?MnO!&n$3a&1WSb$3P!``O#q)q#r;'S)q;'S;=`*S<%lO)q$3a&1sg#TW!aP#]7[$mMh$o!LQ!``OX'VXZ(wZ['V[^(w^p'Vpq(wqr'Vrs(wsv'Vvw*}wx(wx!^'V!^!_)q!_!a(w!a#S'V#S#T(w#T#o'V#o#p*}#p#q'V#q#r-b#r;'S'V;'S;=`.}<%lO'V$FX&3oog#f!p&j#U,U!aP#]7[$mMh$o!LQ!oWOX-bXZ*YZ[-b[^*Y^p-bpq*YqrBurs*YsvBuvwFt[O]||-1},{term:21,get:O=>zt[O]||-1},{term:153,get:O=>Jt[O]||-1},{term:77,get:O=>Lt[O]||-1},{term:69,get:O=>Ht[O]||-1}],tokenPrec:1571});function ea(O,e){let a=Object.create(null);for(let t of O.firstChild.getChildren("Attribute")){let n=t.getChild("AttributeName"),i=t.getChild("AttributeValue")||t.getChild("UnquotedAttributeValue");n&&(a[e.read(n.from,n.to)]=i?i.name=="AttributeValue"?e.read(i.from+1,i.to-1):e.read(i.from,i.to):"")}return a}function nO(O,e,a){let t;for(let n of a)if(!n.attrs||n.attrs(t||(t=ea(O.node.parent,e))))return{parser:n.parser};return null}var ra=Ne.configure({top:"SingleExpression"});function ta(O){let e=[],a=[],t=[];for(let n of O){let i=n.tag=="script"?e:n.tag=="style"?a:n.tag=="textarea"?t:null;if(!i)throw RangeError("Only script, style, and textarea tags can host nested parsers");i.push(n)}return Ye((n,i)=>{let s=n.type.id;return s===rO||s===v?{parser:ra}:s===ut?nO(n,i,e):s===wt?nO(n,i,a):s===dt?nO(n,i,t):null})}var aa=[{tag:"script",attrs:O=>O.type==="text/typescript"||O.lang==="ts",parser:Me.parser},{tag:"script",attrs(O){return!O.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(O.type)},parser:Ee.parser},{tag:"style",attrs(O){return(!O.lang||O.lang==="css"||O.lang==="scss")&&(!O.type||/^(text\/)?(x-)?(stylesheet|css|scss)$/i.test(O.type))},parser:Re.parser}],ue=PO.define({parser:Oa.configure({wrap:ta(aa),props:[fO.add({Element:O=>{let e=/^(\s*)(<\/)?/.exec(O.textAfter);return O.node.to<=O.pos+e[0].length?O.continue():O.lineIndent(O.node.from)+(e[2]?0:O.unit)},Block:O=>{let e=O.node,a=O.textAfter.trim();if(a.startsWith("{/")){let n=e.name;return n==="IfBlock"&&a.startsWith("{/if")||n==="EachBlock"&&a.startsWith("{/each")||n==="AwaitBlock"&&a.startsWith("{/await")||n==="KeyBlock"&&a.startsWith("{/key")?O.lineIndent(O.node.from):null}if(e.name==="IfBlock"||e.name==="EachBlock"){if(a.startsWith("{:else"))return O.lineIndent(e.from)}else if(e.name==="AwaitBlock"&&(a.startsWith("{:then")||a.startsWith("{:catch")))return O.lineIndent(e.from);let t=/^(\s*)(<\/)?/.exec(O.textAfter);return O.node.to<=O.pos+t[0].length?O.continue():O.lineIndent(O.node.from)+(t[2]?0:O.unit)},"BlockOpen BlockClose BlockInline":O=>O.column(O.node.from)+O.unit,"OpenTag CloseTag SelfClosingTag":O=>O.column(O.node.from)+O.unit,Document:O=>{if(O.pos+/\s*/.exec(O.textAfter)[0].length{let e=`${O.name}Open`,a=`${O.name}Close`,t=O.firstChild,n=O.lastChild;return!t||t.name!==e?null:{from:t.to,to:(n==null?void 0:n.name)===a?n.from:O.to}},Element:O=>{let e=O.firstChild,a=O.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:a.name==="CloseTag"?a.from:O.to}}})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*((<\/\w+\W)|(\{:(else|then|catch))|(\{\/(if|each|await|key)))$/,wordChars:"-._",autocomplete:Ae}});function na(){return new B(ue,[q().support,wO().support,oa])}function we(O,e,a=O.length){if(!e)return"";let t=e.firstChild,n=t&&(t.getChild("TagName")||t.getChild("ComponentName")||t.getChild("SvelteElementName"));return n?O.sliceString(n.from,Math.min(n.to,a)):""}var oa=Ue.inputHandler.of((O,e,a,t)=>{if(O.composing||O.state.readOnly||e!=a||t!=">"&&t!="/"||!ue.isActiveAt(O.state,e,-1))return!1;let{state:n}=O,i=n.changeByRange(s=>{var sO,lO,pO;let{head:l}=s,p=xe(n).resolveInner(l,-1),h;if((p.name==="TagName"||p.name==="ComponentName"||p.name==="SvelteElementName"||p.name==="StartTag")&&(p=p.parent),t===">"&&p.name==="OpenTag"){if(((lO=(sO=p.parent)==null?void 0:sO.lastChild)==null?void 0:lO.name)!="CloseTag"&&(h=we(n.doc,p.parent,l))){let m=O.state.doc.sliceString(l,l+1)===">",V=`${m?"":">"}`;return{range:bO.cursor(l+1),changes:{from:l+(m?1:0),insert:V}}}}else if(t==="/"&&p.name==="OpenTag"){let m=p.parent,V=m==null?void 0:m.parent;if(m.from==l-1&&((pO=V.lastChild)==null?void 0:pO.name)!="CloseTag"&&(h=we(n.doc,V,l))){let QO=O.state.doc.sliceString(l,l+1)===">",$O=`/${h}${QO?"":">"}`,ye=l+$O.length+(QO?1:0);return{range:bO.cursor(ye),changes:{from:l,insert:$O}}}}return{range:s}});return i.changes.empty?!1:(O.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)}),ia={pragma:!0,solidity:!0,import:!0,as:!0,from:!0,contract:!0,constructor:!0,is:!0,function:!0,modifier:!0,pure:!0,view:!0,payable:!0,constant:!0,anonymous:!0,indexed:!0,returns:!0,return:!0,event:!0,struct:!0,mapping:!0,interface:!0,using:!0,library:!0,storage:!0,memory:!0,calldata:!0,public:!0,private:!0,external:!0,internal:!0,emit:!0,assembly:!0,abstract:!0,after:!0,catch:!0,final:!0,in:!0,inline:!0,let:!0,match:!0,null:!0,of:!0,relocatable:!0,static:!0,try:!0,typeof:!0,var:!0},sa={pragma:!0,returns:!0,address:!0,contract:!0,function:!0,struct:!0},la={wei:!0,szabo:!0,finney:!0,ether:!0},pa={seconds:!0,minutes:!0,hours:!0,days:!0,weeks:!0},de={block:["coinbase","difficulty","gaslimit","number","timestamp"],msg:["data","sender","sig","value"],tx:["gasprice","origin"]},Qa={now:!0,gasleft:!0,blockhash:!0},$a={assert:!0,require:!0,revert:!0,throw:!0},qa={addmod:!0,mulmod:!0,keccak256:!0,sha256:!0,ripemd160:!0,ecrecover:!0},fa={this:!0,selfdestruct:!0,super:!0},ca={type:!0},he={},ma={if:!0,else:!0,while:!0,do:!0,for:!0,break:!0,continue:!0,switch:!0,case:!0,default:!0},Sa={bool:!0,byte:!0,string:!0,enum:!0,address:!0},Pa={alias:!0,apply:!0,auto:!0,copyof:!0,define:!0,immutable:!0,implements:!0,macro:!0,mutable:!0,override:!0,partial:!0,promise:!0,reference:!0,sealed:!0,sizeof:!0,supports:!0,typedef:!0,unchecked:!0},ba={abi:["decode","encodePacked","encodeWithSelector","encodeWithSignature","encode"]},ua=["transfer","send","balance","call","delegatecall","staticcall"],wa=["title","author","notice","dev","param","return"],da={delete:!0,new:!0,true:!0,false:!0},Ve=/[+\-*&^%:=<>!|/~]/,ha=/[-]/,c;function _(O,e){let a=O.next();if(a==='"'||a==="'"||a==="`")return e.tokenize=Va(a),e.tokenize(O,e);if(Ta(O,e))return"version";if(a==="."&&ua.some(function(n){return O.match(`${n}`)}))return"addressFunction";if(typeof a=="string"&&Xe(a,O))return"number";if(typeof a=="string"&&/[[\]{}(),;:.]/.test(a))return Ua(a,e);if(a==="/"){if(O.eat("*"))return e.tokenize=Te,Te(O,e);if(O.match(/\/{2}/)){for(a=O.next();a;){if(a==="@"){O.backUp(1),e.grammar="doc";break}a=O.next()}return"doc"}if(O.eat("/"))return O.skipToEnd(),"comment"}if(typeof a=="string"&&ha.test(a)){let n=O.peek();return typeof n=="string"&&Xe(n,O)?"number":"operator"}if(typeof a=="string"&&Ve.test(a))return O.eatWhile(Ve),"operator";O.eatWhile(/[\w$_\xa1-\uffff]/);let t=O.current();return e.grammar==="doc"?wa.some(function(n){return t===`@${n}`})?"docReserve":"doc":(t==="solidity"&&e.lastToken==="pragma"&&(e.lastToken=e.lastToken+" "+t),Object.prototype.propertyIsEnumerable.call(ia,t)?((t==="case"||t==="default")&&(c="case"),Object.prototype.propertyIsEnumerable.call(sa,t)&&(e.lastToken=t),"keyword"):Object.prototype.propertyIsEnumerable.call(la,t)?"etherUnit":Object.prototype.propertyIsEnumerable.call(fa,t)?"contractRelated":Object.prototype.propertyIsEnumerable.call(ma,t)||Object.prototype.propertyIsEnumerable.call(ca,t)||Object.prototype.propertyIsEnumerable.call(Pa,t)?"keyword":Object.prototype.propertyIsEnumerable.call(Sa,t)||Object.prototype.propertyIsEnumerable.call(pa,t)||Xa(t)||ga(t)||ya(t)?(e.lastToken+="variable","keyword"):Object.prototype.propertyIsEnumerable.call(da,t)?"atom":Object.prototype.propertyIsEnumerable.call($a,t)?"errorHandling":Object.prototype.propertyIsEnumerable.call(qa,t)?"mathematicalAndCryptographic":Object.prototype.propertyIsEnumerable.call(Qa,t)||Object.prototype.propertyIsEnumerable.call(de,t)&&de[t].some(function(n){return O.match(`.${n}`)})?"variable-2":t==="abi"&&ba[t].some(function(n){return O.match(`.${n}`)})?"abi":xa(t,O)??((e.lastToken==="functionName("||e.lastToken==="returns(")&&Object.prototype.propertyIsEnumerable.call(he,t)?(e.lastToken+="variable","variable"):e.lastToken==="function"?(e.lastToken="functionName",e.para??(e.para=(e.grammar="function","")),e.para+="functionName","functionName"):e.lastToken==="functionName(variable"?(e.lastToken="functionName(","parameterValue"):e.lastToken==="returns(variable"?(e.lastToken="returns(","parameterValue"):(e.lastToken==="address"&&t==="payable"&&(e.lastToken="address payable"),(e.lastToken==="contract"||e.lastToken==="struct")&&(he[t]=!0,e.lastToken=null),e.grammar==="function"?"parameterValue":"variable")))}function Va(O){return function(e,a){let t=!1,n,i=!1;for(n=e.next();n!=null;){if(n===O&&!t){i=!0;break}t=!t&&O!=="`"&&n==="\\",n=e.next()}return(i||!(t||O==="`"))&&(a.tokenize=_),"string"}}function Te(O,e){let a=!1,t=O.next();for(;t;){if(t==="/"&&a){e.tokenize=_;break}a=t==="*",t=O.next()}return"comment"}function Ta(O,e){if(e.lastToken==="pragma solidity")return e.lastToken=null,!e.startOfLine&&(O.match(/[\^{0}][0-9.]+/)||O.match(/[>=]+?[\s]*[0-9.]+[\s]*[<]?[\s]*[0-9.]+/))}function Xe(O,e){if(/[\d.]/.test(O))return O==="."?e.match(/^[0-9]+([eE][-+]?[0-9]+)?/):O==="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?/),!0}function Xa(O){if(O.match(/^[u]?int/)){if(O.indexOf("t")+1===O.length)return!0;let e=Number(O.substr(O.indexOf("t")+1,O.length));return e%8==0&&e<=256}}function ga(O){if(O.match(/^bytes/)){if(O.indexOf("s")+1===O.length)return!0;let e=O.substr(O.indexOf("s")+1,O.length);return Number(e)<=32}}function ya(O){if(O.match(/^[u]?fixed([0-9]+x[0-9]+)?/)){if(O.indexOf("d")+1===O.length)return!0;let e=O.substr(O.indexOf("d")+1,O.length).split("x").map(Number);return e[0]%8==0&&e[0]<=256&&e[1]<=80}}function xa(O,e){if(O.match(/^hex/)&&e.peek()==='"'){let a=!1,t,n="",i="";for(t=e.next();t;){if(i+=t,t==='"'&&a){if(n=i.substring(1,i.length-1),n.match(/^[0-9a-fA-F]+$/))return"number";e.backUp(i.length);break}a||(a=t==='"'),t=e.next()}}}function Ua(O,e){return O===","&&e.para==="functionName(variable"&&(e.para="functionName("),e.para!=null&&e.para.startsWith("functionName")&&(O===")"?e.para.endsWith("(")&&(e.para=e.para.substr(0,e.para.length-1),e.para==="functionName"&&(e.grammar="")):O==="("&&(e.para+=O)),O==="("&&e.lastToken==="functionName"?e.lastToken+=O:O===")"&&e.lastToken==="functionName("?e.lastToken=null:O==="("&&e.lastToken==="returns"?e.lastToken+=O:O===")"&&(e.lastToken==="returns("||e.lastToken==="returns(variable")&&(e.lastToken=null),O==="("&&e.lastToken==="address"&&(e.lastToken+=O),c=O,null}var ge=class{constructor(O,e,a,t,n){this.indented=O,this.column=e,this.type=a,this.align=t,this.prev=n}};function oO(O,e,a){return O.context=new ge(O.indented,e,a,null,O.context),O.context}function va(O){if(!O.context.prev)return;let e=O.context.type;return(e===")"||e==="]"||e==="}")&&(O.indented=O.context.indented),O.context=O.context.prev}var Ya={startState(O){return{tokenize:null,context:new ge(0-O,0,"top",!1,null),indented:0,startOfLine:!0,grammar:null,lastToken:null,para:null}},token(O,e){let a=e.context;if(O.sol()&&(a.align??(a.align=!1),e.indented=O.indentation(),e.startOfLine=!0,a.type==="case"&&(a.type="}"),e.grammar==="doc"&&(e.grammar=null)),O.eatSpace())return null;c=null;let t=(e.tokenize||_)(O,e);return t==="comment"||(a.align??(a.align=!0),c==="{"?oO(e,O.column(),"}"):c==="["?oO(e,O.column(),"]"):c==="("?oO(e,O.column(),")"):c==="case"?a.type="case":(c==="}"&&a.type==="}"||c===a.type)&&va(e),e.startOfLine=!1),t},indent(O,e,a){if(O.tokenize!==_&&O.tokenize!=null)return null;let t=O.context,n=e&&e.charAt(0);if(t.type==="case"&&/^(?:case|default)\b/.test(e))return O.context.type="}",t.indented;let i=n===t.type;return t.align?t.column+(i?0:1):t.indented+(i?0:a.unit)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",tokenTable:{functionName:$.define(),parameterValue:$.define(),addressFunction:$.define(),errorHandling:$.define(),contractRelated:$.define(),version:$.define(),etherUnit:$.define(),doc:$.define(),mathematicalAndCryptographic:$.define(),abi:$.define()}},ka=new B(r.define(Ya)),iO={1:()=>r.define(f),2:()=>r.define(f),3:()=>r.define(f),4:()=>r.define(f),"4th":()=>r.define(G),5:()=>r.define(f),6:()=>r.define(f),7:()=>r.define(f),8:()=>r.define(f),9:()=>r.define(f),apl:()=>r.define(XO),asc:()=>r.define(gO),asn:()=>r.define(yO({})),asn1:()=>r.define(yO({})),b:()=>r.define(xO),bash:()=>r.define(F),bf:()=>r.define(xO),BUILD:()=>X(),bzl:()=>X(),c:()=>Q(),"c++":()=>Q(),cc:()=>Q(),cfg:()=>r.define(Rr),cjs:()=>q(),cl:()=>r.define(M),clj:()=>r.define(b),cljc:()=>r.define(b),cljs:()=>r.define(b),cljx:()=>r.define(b),cmake:()=>r.define(YO),"cmake.in":()=>r.define(YO),cob:()=>r.define(UO),coffee:()=>r.define(er),cpp:()=>Q(),cpy:()=>r.define(UO),cql:()=>j({dialect:je}),cr:()=>r.define(rr),cs:()=>r.define(Fe),css:()=>wO(),cts:()=>q({typescript:!0}),cxx:()=>Q(),cyp:()=>r.define(kO),cypher:()=>r.define(kO),d:()=>r.define(tr),dart:()=>r.define(He),diff:()=>r.define(WO),dtd:()=>r.define(ar),dyalog:()=>r.define(XO),dyl:()=>r.define(D),dylan:()=>r.define(D),e:()=>r.define(or),ecl:()=>r.define(nr),edn:()=>r.define(b),el:()=>r.define(M),elm:()=>r.define(ir),erl:()=>r.define(sr),f:()=>r.define(u),f77:()=>r.define(u),f90:()=>r.define(u),f95:()=>r.define(u),factor:()=>r.define(lr),feature:()=>r.define($r),for:()=>r.define(u),forth:()=>r.define(G),fs:()=>r.define(pr),fth:()=>r.define(G),fun:()=>r.define(x),go:()=>De(),gradle:()=>r.define(_O),groovy:()=>r.define(_O),gss:()=>r.define(Or),h:()=>Q(),"h++":()=>Q(),handlebars:()=>T(),hbs:()=>T(),hh:()=>Q(),hpp:()=>Q(),hs:()=>r.define(qr),htm:()=>T(),html:()=>T(),hx:()=>r.define(cr),hxml:()=>r.define(fr),hxx:()=>Q(),in:()=>r.define(C),ini:()=>r.define(C),ino:()=>Q(),intr:()=>r.define(D),j2:()=>E(),jade:()=>r.define(RO),java:()=>Ge(),jinja:()=>E(),jinja2:()=>E(),jl:()=>r.define(Pr),js:()=>q(),json:()=>dO(),jsonld:()=>r.define(Sr),jsx:()=>q({jsx:!0}),ksh:()=>r.define(F),kt:()=>r.define(vO),kts:()=>r.define(vO),less:()=>Ie(),liquid:()=>Ke(),lisp:()=>r.define(M),ls:()=>r.define(br),ltx:()=>r.define(R),lua:()=>r.define(ur),m:()=>r.define(Tr),map:()=>dO(),markdown:()=>A(),mbox:()=>r.define(Vr),md:()=>A(),mjs:()=>q(),mkd:()=>A(),ml:()=>r.define(y),mli:()=>r.define(y),mll:()=>r.define(y),mly:()=>r.define(y),mm:()=>r.define(ze),mo:()=>r.define(dr),mps:()=>r.define(hr),mrc:()=>r.define(wr),msc:()=>r.define(L),mscgen:()=>r.define(L),mscin:()=>r.define(L),msgenny:()=>r.define(Cr),mts:()=>q({typescript:!0}),nb:()=>r.define(I),nix:()=>lt(),nq:()=>r.define(ZO),nsh:()=>r.define(BO),nsi:()=>r.define(BO),nt:()=>r.define(ZO),nut:()=>r.define(Le),oz:()=>r.define(Xr),p:()=>r.define(jO),pas:()=>r.define(jO),patch:()=>r.define(WO),pgp:()=>r.define(gO),php:()=>P(),php3:()=>P(),php4:()=>P(),php5:()=>P(),php7:()=>P(),phtml:()=>P(),pig:()=>r.define(gr),pl:()=>r.define(AO),pls:()=>j({dialect:Be}),pm:()=>r.define(AO),pp:()=>r.define(xr),pro:()=>r.define(mr),properties:()=>r.define(C),proto:()=>r.define(yr),ps1:()=>r.define(K),psd1:()=>r.define(K),psm1:()=>r.define(K),pug:()=>r.define(RO),pxd:()=>r.define(N),pxi:()=>r.define(N),py:()=>X(),pyw:()=>X(),pyx:()=>r.define(N),q:()=>r.define(Ur),r:()=>r.define(EO),R:()=>r.define(EO),rb:()=>r.define(Yr),rq:()=>r.define(DO),rs:()=>Ce(),s:()=>r.define(Qr),sas:()=>r.define(kr),sass:()=>hO({indented:!0}),scala:()=>r.define(Je),scm:()=>r.define(MO),scss:()=>hO(),sh:()=>r.define(F),sieve:()=>r.define(NO),sig:()=>r.define(x),siv:()=>r.define(NO),smackspec:()=>r.define(x),sml:()=>r.define(x),solidity:()=>ka,sparql:()=>r.define(DO),spec:()=>r.define(vr),sql:()=>j({dialect:Ze}),ss:()=>r.define(MO),st:()=>r.define(Wr),styl:()=>r.define(_r),sv:()=>r.define(z),svelte:()=>na(),svg:()=>g(),svh:()=>r.define(z),swift:()=>r.define(Br),tcl:()=>r.define(Zr),tex:()=>r.define(R),text:()=>r.define(R),textile:()=>r.define(jr),toml:()=>r.define(Ar),ts:()=>q({typescript:!0}),tsx:()=>q({jsx:!0,typescript:!0}),ttcn:()=>r.define(J),ttcn3:()=>r.define(J),ttcnpp:()=>r.define(J),ttl:()=>r.define(Er),v:()=>r.define(z),vb:()=>r.define(Nr),vbs:()=>r.define(Dr),vhd:()=>r.define(GO),vhdl:()=>r.define(GO),vtl:()=>r.define(Gr),vue:()=>zr(),wast:()=>VO(),wat:()=>VO(),webidl:()=>r.define(Mr),wl:()=>r.define(I),wls:()=>r.define(I),xml:()=>g(),xq:()=>r.define(w),xqm:()=>r.define(w),xquery:()=>r.define(w),xqy:()=>r.define(w),xsd:()=>g(),xsl:()=>g(),xu:()=>r.define(Fr),xy:()=>r.define(w),yaml:()=>TO(),yml:()=>TO(),ys:()=>r.define(Ir),z80:()=>r.define(Kr)};function Wa(O){return iO[O]?iO[O]():null}export{Wa as n,iO as t}; diff --git a/docs/assets/esm-CjxD4y0v.js b/docs/assets/esm-CjxD4y0v.js new file mode 100644 index 0000000..cd9eaff --- /dev/null +++ b/docs/assets/esm-CjxD4y0v.js @@ -0,0 +1,19 @@ +import{s as OT,t as NT}from"./chunk-LvLJmgfZ.js";const A=E=>E.flatMap(LT),LT=E=>b(CT(E)).map(_T);var _T=E=>E.replace(/ +/g," ").trim(),CT=E=>({type:"mandatory_block",items:$(E,0)[0]}),$=(E,T,R)=>{let I=[];for(;E[T];){let[_,t]=eT(E,T);if(I.push(_),T=t,E[T]==="|")T++;else if(E[T]==="}"||E[T]==="]"){if(R!==E[T])throw Error(`Unbalanced parenthesis in: ${E}`);return T++,[I,T]}else if(T===E.length){if(R)throw Error(`Unbalanced parenthesis in: ${E}`);return[I,T]}else throw Error(`Unexpected "${E[T]}"`)}return[I,T]},eT=(E,T)=>{let R=[];for(;;){let[I,_]=DT(E,T);if(I)R.push(I),T=_;else break}return R.length===1?[R[0],T]:[{type:"concatenation",items:R},T]},DT=(E,T)=>{if(E[T]==="{")return PT(E,T+1);if(E[T]==="[")return sT(E,T+1);{let R="";for(;E[T]&&/[A-Za-z0-9_ ]/.test(E[T]);)R+=E[T],T++;return[R,T]}},PT=(E,T)=>{let[R,I]=$(E,T,"}");return[{type:"mandatory_block",items:R},I]},sT=(E,T)=>{let[R,I]=$(E,T,"]");return[{type:"optional_block",items:R},I]},b=E=>{if(typeof E=="string")return[E];if(E.type==="concatenation")return E.items.map(b).reduce(MT,[""]);if(E.type==="mandatory_block")return E.items.flatMap(b);if(E.type==="optional_block")return["",...E.items.flatMap(b)];throw Error(`Unknown node type: ${E}`)},MT=(E,T)=>{let R=[];for(let I of E)for(let _ of T)R.push(I+_);return R},O;(function(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_KEYWORD_PHRASE="RESERVED_KEYWORD_PHRASE",E.RESERVED_DATA_TYPE_PHRASE="RESERVED_DATA_TYPE_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"})(O=O||(O={}));const tE=E=>({type:O.EOF,raw:"\xABEOF\xBB",text:"\xABEOF\xBB",start:E}),u=tE(1/0),c=E=>T=>T.type===E.type&&T.text===E.text,W={ARRAY:c({text:"ARRAY",type:O.RESERVED_DATA_TYPE}),BY:c({text:"BY",type:O.RESERVED_KEYWORD}),SET:c({text:"SET",type:O.RESERVED_CLAUSE}),STRUCT:c({text:"STRUCT",type:O.RESERVED_DATA_TYPE}),WINDOW:c({text:"WINDOW",type:O.RESERVED_CLAUSE}),VALUES:c({text:"VALUES",type:O.RESERVED_CLAUSE})},rE=E=>E===O.RESERVED_DATA_TYPE||E===O.RESERVED_KEYWORD||E===O.RESERVED_FUNCTION_NAME||E===O.RESERVED_KEYWORD_PHRASE||E===O.RESERVED_DATA_TYPE_PHRASE||E===O.RESERVED_CLAUSE||E===O.RESERVED_SELECT||E===O.RESERVED_SET_OPERATION||E===O.RESERVED_JOIN||E===O.ARRAY_KEYWORD||E===O.CASE||E===O.END||E===O.WHEN||E===O.ELSE||E===O.THEN||E===O.LIMIT||E===O.BETWEEN||E===O.AND||E===O.OR||E===O.XOR,UT=E=>E===O.AND||E===O.OR||E===O.XOR,tT="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".split(","),rT="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".split("."),GT=["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"];var aT=A(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),iT=A(["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"]),GE=A(["CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]"]),g=A("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".split(".")),nT=A(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),HT=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),BT=A(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),oT=A([]);const YT={name:"bigquery",tokenizerOptions:{reservedSelect:aT,reservedClauses:[...iT,...g,...GE],reservedSetOperations:nT,reservedJoins:HT,reservedKeywordPhrases:BT,reservedDataTypePhrases:oT,reservedKeywords:rT,reservedDataTypes:GT,reservedFunctionNames:tT,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:FT},formatOptions:{onelineClauses:[...GE,...g],tabularOnelineClauses:g}};function FT(E){return VT(lT(E))}function VT(E){let T=u;return E.map(R=>R.text==="OFFSET"&&T.text==="["?(T=R,Object.assign(Object.assign({},R),{type:O.RESERVED_FUNCTION_NAME})):(T=R,R))}function lT(E){var R;let T=[];for(let I=0;IT=>T.type===O.IDENTIFIER||T.type===O.COMMA?T[E]+" ":T[E];function pT(E,T){let R=0;for(let I=T;I"?R--:_.text===">>"&&(R-=2),R===0)return I}return E.length-1}const WT="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".split("."),XT="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".split("."),mT="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".split(".");var uT=A(["SELECT [ALL | DISTINCT]"]),cT=A(["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"]),iE=A(["CREATE [GLOBAL TEMPORARY | EXTERNAL] TABLE [IF NOT EXISTS]"]),Q=A("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".split(".")),KT=A(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),hT=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),dT=A(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),yT=A([]);const fT={name:"db2",tokenizerOptions:{reservedSelect:uT,reservedClauses:[...cT,...iE,...Q],reservedSetOperations:KT,reservedJoins:hT,reservedKeywordPhrases:dT,reservedDataTypePhrases:yT,reservedKeywords:XT,reservedDataTypes:mT,reservedFunctionNames:WT,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:["**","%","|","&","^","~","\xAC=","\xAC>","\xAC<","!>","!<","^=","^>","^<","||","->","=>"]},formatOptions:{onelineClauses:[...iE,...Q],tabularOnelineClauses:Q}},bT="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".split("."),JT="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".split("."),xT="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".split(".");var $T=A(["SELECT [ALL | DISTINCT]"]),gT=A(["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"]),nE=A(["CREATE [OR REPLACE] TABLE"]),v=A("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}".split(".")),QT=A(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),vT=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT | RIGHT] EXCEPTION JOIN","{INNER | CROSS} JOIN"]),wT=A(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),ZT=A([]);const qT={name:"db2i",tokenizerOptions:{reservedSelect:$T,reservedClauses:[...gT,...nE,...v],reservedSetOperations:QT,reservedJoins:vT,reservedKeywordPhrases:wT,reservedDataTypePhrases:ZT,reservedKeywords:JT,reservedDataTypes:xT,reservedFunctionNames:bT,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:["**","\xAC=","\xAC>","\xAC<","!>","!<","||","=>"]},formatOptions:{onelineClauses:[...nE,...v],tabularOnelineClauses:v}},kT="ABS.ACOS.ADD.ADD_PARQUET_KEY.AGE.AGGREGATE.ALIAS.ALL_PROFILING_OUTPUT.ANY_VALUE.APPLY.APPROX_COUNT_DISTINCT.APPROX_QUANTILE.ARBITRARY.ARGMAX.ARGMIN.ARG_MAX.ARG_MAX_NULL.ARG_MIN.ARG_MIN_NULL.ARRAY_AGG.ARRAY_AGGR.ARRAY_AGGREGATE.ARRAY_APPEND.ARRAY_APPLY.ARRAY_CAT.ARRAY_CONCAT.ARRAY_CONTAINS.ARRAY_COSINE_SIMILARITY.ARRAY_CROSS_PRODUCT.ARRAY_DISTANCE.ARRAY_DISTINCT.ARRAY_DOT_PRODUCT.ARRAY_EXTRACT.ARRAY_FILTER.ARRAY_GRADE_UP.ARRAY_HAS.ARRAY_HAS_ALL.ARRAY_HAS_ANY.ARRAY_INDEXOF.ARRAY_INNER_PRODUCT.ARRAY_INTERSECT.ARRAY_LENGTH.ARRAY_POP_BACK.ARRAY_POP_FRONT.ARRAY_POSITION.ARRAY_PREPEND.ARRAY_PUSH_BACK.ARRAY_PUSH_FRONT.ARRAY_REDUCE.ARRAY_RESIZE.ARRAY_REVERSE.ARRAY_REVERSE_SORT.ARRAY_SELECT.ARRAY_SLICE.ARRAY_SORT.ARRAY_TO_JSON.ARRAY_TO_STRING.ARRAY_TRANSFORM.ARRAY_UNIQUE.ARRAY_VALUE.ARRAY_WHERE.ARRAY_ZIP.ARROW_SCAN.ARROW_SCAN_DUMB.ASCII.ASIN.ATAN.ATAN2.AVG.BASE64.BIN.BITSTRING.BITSTRING_AGG.BIT_AND.BIT_COUNT.BIT_LENGTH.BIT_OR.BIT_POSITION.BIT_XOR.BOOL_AND.BOOL_OR.CARDINALITY.CBRT.CEIL.CEILING.CENTURY.CHECKPOINT.CHR.COLLATIONS.COL_DESCRIPTION.COMBINE.CONCAT.CONCAT_WS.CONSTANT_OR_NULL.CONTAINS.COPY_DATABASE.CORR.COS.COT.COUNT.COUNT_IF.COUNT_STAR.COVAR_POP.COVAR_SAMP.CREATE_SORT_KEY.CURRENT_CATALOG.CURRENT_DATABASE.CURRENT_DATE.CURRENT_LOCALTIME.CURRENT_LOCALTIMESTAMP.CURRENT_QUERY.CURRENT_ROLE.CURRENT_SCHEMA.CURRENT_SCHEMAS.CURRENT_SETTING.CURRENT_USER.CURRVAL.DAMERAU_LEVENSHTEIN.DATABASE_LIST.DATABASE_SIZE.DATEDIFF.DATEPART.DATESUB.DATETRUNC.DATE_ADD.DATE_DIFF.DATE_PART.DATE_SUB.DATE_TRUNC.DAY.DAYNAME.DAYOFMONTH.DAYOFWEEK.DAYOFYEAR.DECADE.DECODE.DEGREES.DISABLE_CHECKPOINT_ON_SHUTDOWN.DISABLE_OBJECT_CACHE.DISABLE_OPTIMIZER.DISABLE_PRINT_PROGRESS_BAR.DISABLE_PROFILE.DISABLE_PROFILING.DISABLE_PROGRESS_BAR.DISABLE_VERIFICATION.DISABLE_VERIFY_EXTERNAL.DISABLE_VERIFY_FETCH_ROW.DISABLE_VERIFY_PARALLELISM.DISABLE_VERIFY_SERIALIZER.DIVIDE.DUCKDB_COLUMNS.DUCKDB_CONSTRAINTS.DUCKDB_DATABASES.DUCKDB_DEPENDENCIES.DUCKDB_EXTENSIONS.DUCKDB_FUNCTIONS.DUCKDB_INDEXES.DUCKDB_KEYWORDS.DUCKDB_MEMORY.DUCKDB_OPTIMIZERS.DUCKDB_SCHEMAS.DUCKDB_SECRETS.DUCKDB_SEQUENCES.DUCKDB_SETTINGS.DUCKDB_TABLES.DUCKDB_TEMPORARY_FILES.DUCKDB_TYPES.DUCKDB_VIEWS.EDIT.EDITDIST3.ELEMENT_AT.ENABLE_CHECKPOINT_ON_SHUTDOWN.ENABLE_OBJECT_CACHE.ENABLE_OPTIMIZER.ENABLE_PRINT_PROGRESS_BAR.ENABLE_PROFILE.ENABLE_PROFILING.ENABLE_PROGRESS_BAR.ENABLE_VERIFICATION.ENCODE.ENDS_WITH.ENTROPY.ENUM_CODE.ENUM_FIRST.ENUM_LAST.ENUM_RANGE.ENUM_RANGE_BOUNDARY.EPOCH.EPOCH_MS.EPOCH_NS.EPOCH_US.ERA.ERROR.EVEN.EXP.FACTORIAL.FAVG.FDIV.FILTER.FINALIZE.FIRST.FLATTEN.FLOOR.FMOD.FORCE_CHECKPOINT.FORMAT.FORMATREADABLEDECIMALSIZE.FORMATREADABLESIZE.FORMAT_BYTES.FORMAT_PG_TYPE.FORMAT_TYPE.FROM_BASE64.FROM_BINARY.FROM_HEX.FROM_JSON.FROM_JSON_STRICT.FSUM.FUNCTIONS.GAMMA.GCD.GENERATE_SERIES.GENERATE_SUBSCRIPTS.GEN_RANDOM_UUID.GEOMEAN.GEOMETRIC_MEAN.GETENV.GET_BIT.GET_BLOCK_SIZE.GET_CURRENT_TIME.GET_CURRENT_TIMESTAMP.GLOB.GRADE_UP.GREATEST.GREATEST_COMMON_DIVISOR.GROUP_CONCAT.HAMMING.HASH.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.HEX.HISTOGRAM.HOUR.ICU_CALENDAR_NAMES.ICU_SORT_KEY.ILIKE_ESCAPE.IMPORT_DATABASE.INDEX_SCAN.INET_CLIENT_ADDR.INET_CLIENT_PORT.INET_SERVER_ADDR.INET_SERVER_PORT.INSTR.IN_SEARCH_PATH.ISFINITE.ISINF.ISNAN.ISODOW.ISOYEAR.JACCARD.JARO_SIMILARITY.JARO_WINKLER_SIMILARITY.JSON_ARRAY.JSON_ARRAY_LENGTH.JSON_CONTAINS.JSON_DESERIALIZE_SQL.JSON_EXECUTE_SERIALIZED_SQL.JSON_EXTRACT.JSON_EXTRACT_PATH.JSON_EXTRACT_PATH_TEXT.JSON_EXTRACT_STRING.JSON_GROUP_ARRAY.JSON_GROUP_OBJECT.JSON_GROUP_STRUCTURE.JSON_KEYS.JSON_MERGE_PATCH.JSON_OBJECT.JSON_QUOTE.JSON_SERIALIZE_PLAN.JSON_SERIALIZE_SQL.JSON_STRUCTURE.JSON_TRANSFORM.JSON_TRANSFORM_STRICT.JSON_TYPE.JSON_VALID.JULIAN.KAHAN_SUM.KURTOSIS.KURTOSIS_POP.LAST.LAST_DAY.LCASE.LCM.LEAST.LEAST_COMMON_MULTIPLE.LEFT.LEFT_GRAPHEME.LEN.LENGTH.LENGTH_GRAPHEME.LEVENSHTEIN.LGAMMA.LIKE_ESCAPE.LIST.LISTAGG.LIST_AGGR.LIST_AGGREGATE.LIST_ANY_VALUE.LIST_APPEND.LIST_APPLY.LIST_APPROX_COUNT_DISTINCT.LIST_AVG.LIST_BIT_AND.LIST_BIT_OR.LIST_BIT_XOR.LIST_BOOL_AND.LIST_BOOL_OR.LIST_CAT.LIST_CONCAT.LIST_CONTAINS.LIST_COSINE_SIMILARITY.LIST_COUNT.LIST_DISTANCE.LIST_DISTINCT.LIST_DOT_PRODUCT.LIST_ELEMENT.LIST_ENTROPY.LIST_EXTRACT.LIST_FILTER.LIST_FIRST.LIST_GRADE_UP.LIST_HAS.LIST_HAS_ALL.LIST_HAS_ANY.LIST_HISTOGRAM.LIST_INDEXOF.LIST_INNER_PRODUCT.LIST_INTERSECT.LIST_KURTOSIS.LIST_KURTOSIS_POP.LIST_LAST.LIST_MAD.LIST_MAX.LIST_MEDIAN.LIST_MIN.LIST_MODE.LIST_PACK.LIST_POSITION.LIST_PREPEND.LIST_PRODUCT.LIST_REDUCE.LIST_RESIZE.LIST_REVERSE.LIST_REVERSE_SORT.LIST_SELECT.LIST_SEM.LIST_SKEWNESS.LIST_SLICE.LIST_SORT.LIST_STDDEV_POP.LIST_STDDEV_SAMP.LIST_STRING_AGG.LIST_SUM.LIST_TRANSFORM.LIST_UNIQUE.LIST_VALUE.LIST_VAR_POP.LIST_VAR_SAMP.LIST_WHERE.LIST_ZIP.LN.LOG.LOG10.LOG2.LOWER.LPAD.LSMODE.LTRIM.MAD.MAKE_DATE.MAKE_TIME.MAKE_TIMESTAMP.MAKE_TIMESTAMPTZ.MAP.MAP_CONCAT.MAP_ENTRIES.MAP_EXTRACT.MAP_FROM_ENTRIES.MAP_KEYS.MAP_VALUES.MAX.MAX_BY.MD5.MD5_NUMBER.MD5_NUMBER_LOWER.MD5_NUMBER_UPPER.MEAN.MEDIAN.METADATA_INFO.MICROSECOND.MILLENNIUM.MILLISECOND.MIN.MINUTE.MIN_BY.MISMATCHES.MOD.MODE.MONTH.MONTHNAME.MULTIPLY.NEXTAFTER.NEXTVAL.NFC_NORMALIZE.NOT_ILIKE_ESCAPE.NOT_LIKE_ESCAPE.NOW.NULLIF.OBJ_DESCRIPTION.OCTET_LENGTH.ORD.PARQUET_FILE_METADATA.PARQUET_KV_METADATA.PARQUET_METADATA.PARQUET_SCAN.PARQUET_SCHEMA.PARSE_DIRNAME.PARSE_DIRPATH.PARSE_FILENAME.PARSE_PATH.PG_COLLATION_IS_VISIBLE.PG_CONF_LOAD_TIME.PG_CONVERSION_IS_VISIBLE.PG_FUNCTION_IS_VISIBLE.PG_GET_CONSTRAINTDEF.PG_GET_EXPR.PG_GET_VIEWDEF.PG_HAS_ROLE.PG_IS_OTHER_TEMP_SCHEMA.PG_MY_TEMP_SCHEMA.PG_OPCLASS_IS_VISIBLE.PG_OPERATOR_IS_VISIBLE.PG_OPFAMILY_IS_VISIBLE.PG_POSTMASTER_START_TIME.PG_SIZE_PRETTY.PG_TABLE_IS_VISIBLE.PG_TIMEZONE_NAMES.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.PI.PLATFORM.POSITION.POW.POWER.PRAGMA_COLLATIONS.PRAGMA_DATABASE_SIZE.PRAGMA_METADATA_INFO.PRAGMA_PLATFORM.PRAGMA_SHOW.PRAGMA_STORAGE_INFO.PRAGMA_TABLE_INFO.PRAGMA_USER_AGENT.PRAGMA_VERSION.PREFIX.PRINTF.PRODUCT.QUANTILE.QUANTILE_CONT.QUANTILE_DISC.QUARTER.RADIANS.RANDOM.RANGE.READFILE.READ_BLOB.READ_CSV.READ_CSV_AUTO.READ_JSON.READ_JSON_AUTO.READ_JSON_OBJECTS.READ_JSON_OBJECTS_AUTO.READ_NDJSON.READ_NDJSON_AUTO.READ_NDJSON_OBJECTS.READ_PARQUET.READ_TEXT.REDUCE.REGEXP_ESCAPE.REGEXP_EXTRACT.REGEXP_EXTRACT_ALL.REGEXP_FULL_MATCH.REGEXP_MATCHES.REGEXP_REPLACE.REGEXP_SPLIT_TO_ARRAY.REGEXP_SPLIT_TO_TABLE.REGR_AVGX.REGR_AVGY.REGR_COUNT.REGR_INTERCEPT.REGR_R2.REGR_SLOPE.REGR_SXX.REGR_SXY.REGR_SYY.REPEAT.REPEAT_ROW.REPLACE.RESERVOIR_QUANTILE.REVERSE.RIGHT.RIGHT_GRAPHEME.ROUND.ROUNDBANKERS.ROUND_EVEN.ROW.ROW_TO_JSON.RPAD.RTRIM.SECOND.SEM.SEQ_SCAN.SESSION_USER.SETSEED.SET_BIT.SHA256.SHA3.SHELL_ADD_SCHEMA.SHELL_ESCAPE_CRNL.SHELL_IDQUOTE.SHELL_MODULE_SCHEMA.SHELL_PUTSNL.SHOBJ_DESCRIPTION.SHOW.SHOW_DATABASES.SHOW_TABLES.SHOW_TABLES_EXPANDED.SIGN.SIGNBIT.SIN.SKEWNESS.SNIFF_CSV.SPLIT.SPLIT_PART.SQL_AUTO_COMPLETE.SQRT.STARTS_WITH.STATS.STDDEV.STDDEV_POP.STDDEV_SAMP.STORAGE_INFO.STRFTIME.STRING_AGG.STRING_SPLIT.STRING_SPLIT_REGEX.STRING_TO_ARRAY.STRIP_ACCENTS.STRLEN.STRPOS.STRPTIME.STRUCT_EXTRACT.STRUCT_INSERT.STRUCT_PACK.STR_SPLIT.STR_SPLIT_REGEX.SUBSTR.SUBSTRING.SUBSTRING_GRAPHEME.SUBTRACT.SUFFIX.SUM.SUMKAHAN.SUMMARY.SUM_NO_OVERFLOW.TABLE_INFO.TAN.TEST_ALL_TYPES.TEST_VECTOR_TYPES.TIMEZONE.TIMEZONE_HOUR.TIMEZONE_MINUTE.TIME_BUCKET.TODAY.TO_BASE.TO_BASE64.TO_BINARY.TO_CENTURIES.TO_DAYS.TO_DECADES.TO_HEX.TO_HOURS.TO_JSON.TO_MICROSECONDS.TO_MILLENNIA.TO_MILLISECONDS.TO_MINUTES.TO_MONTHS.TO_SECONDS.TO_TIMESTAMP.TO_WEEKS.TO_YEARS.TRANSACTION_TIMESTAMP.TRANSLATE.TRIM.TRUNC.TRY_STRPTIME.TXID_CURRENT.TYPEOF.UCASE.UNBIN.UNHEX.UNICODE.UNION_EXTRACT.UNION_TAG.UNION_VALUE.UNNEST.UNPIVOT_LIST.UPPER.USER.USER_AGENT.UUID.VARIANCE.VAR_POP.VAR_SAMP.VECTOR_TYPE.VERIFY_EXTERNAL.VERIFY_FETCH_ROW.VERIFY_PARALLELISM.VERIFY_SERIALIZER.VERSION.WEEK.WEEKDAY.WEEKOFYEAR.WHICH_SECRET.WRITEFILE.XOR.YEAR.YEARWEEK.CAST.COALESCE.RANK.ROW_NUMBER".split("."),jT="ALL.ANALYSE.ANALYZE.AND.ANY.AS.ASC.ATTACH.ASYMMETRIC.BOTH.CASE.CAST.CHECK.COLLATE.COLUMN.CONSTRAINT.CREATE.DEFAULT.DEFERRABLE.DESC.DESCRIBE.DETACH.DISTINCT.DO.ELSE.END.EXCEPT.FALSE.FETCH.FOR.FOREIGN.FROM.GRANT.GROUP.HAVING.IN.INITIALLY.INTERSECT.INTO.IS.LATERAL.LEADING.LIMIT.NOT.NULL.OFFSET.ON.ONLY.OR.ORDER.PIVOT.PIVOT_LONGER.PIVOT_WIDER.PLACING.PRIMARY.REFERENCES.RETURNING.SELECT.SHOW.SOME.SUMMARIZE.SYMMETRIC.TABLE.THEN.TO.TRAILING.TRUE.UNION.UNIQUE.UNPIVOT.USING.VARIADIC.WHEN.WHERE.WINDOW.WITH".split("."),zT="ARRAY.BIGINT.BINARY.BIT.BITSTRING.BLOB.BOOL.BOOLEAN.BPCHAR.BYTEA.CHAR.DATE.DATETIME.DEC.DECIMAL.DOUBLE.ENUM.FLOAT.FLOAT4.FLOAT8.GUID.HUGEINT.INET.INT.INT1.INT128.INT16.INT2.INT32.INT4.INT64.INT8.INTEGER.INTEGRAL.INTERVAL.JSON.LIST.LOGICAL.LONG.MAP.NUMERIC.NVARCHAR.OID.REAL.ROW.SHORT.SIGNED.SMALLINT.STRING.STRUCT.TEXT.TIME.TIMESTAMP_MS.TIMESTAMP_NS.TIMESTAMP_S.TIMESTAMP_US.TIMESTAMP.TIMESTAMPTZ.TIMETZ.TINYINT.UBIGINT.UHUGEINT.UINT128.UINT16.UINT32.UINT64.UINT8.UINTEGER.UNION.USMALLINT.UTINYINT.UUID.VARBINARY.VARCHAR".split(".");var ER=A(["SELECT [ALL | DISTINCT]"]),TR=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL]","HAVING","WINDOW","PARTITION BY","ORDER BY [ALL]","LIMIT","OFFSET","USING SAMPLE","QUALIFY","INSERT [OR REPLACE] INTO","VALUES","DEFAULT VALUES","SET","RETURNING"]),HE=A(["CREATE [OR REPLACE] [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),w=A("UPDATE.ON CONFLICT.DELETE FROM.DROP TABLE [IF EXISTS].TRUNCATE.ALTER TABLE.ADD [COLUMN] [IF NOT EXISTS].ADD PRIMARY KEY.DROP [COLUMN] [IF EXISTS].ALTER [COLUMN].RENAME [COLUMN].RENAME TO.SET [DATA] TYPE.{SET | DROP} DEFAULT.{SET | DROP} NOT NULL.CREATE [OR REPLACE] [TEMPORARY | TEMP] {MACRO | FUNCTION}.DROP MACRO [TABLE] [IF EXISTS].DROP FUNCTION [IF EXISTS].CREATE [UNIQUE] INDEX [IF NOT EXISTS].DROP INDEX [IF EXISTS].CREATE [OR REPLACE] SCHEMA [IF NOT EXISTS].DROP SCHEMA [IF EXISTS].CREATE [OR REPLACE] [PERSISTENT | TEMPORARY] SECRET [IF NOT EXISTS].DROP [PERSISTENT | TEMPORARY] SECRET [IF EXISTS].CREATE [OR REPLACE] [TEMPORARY | TEMP] SEQUENCE.DROP SEQUENCE [IF EXISTS].CREATE [OR REPLACE] [TEMPORARY | TEMP] VIEW [IF NOT EXISTS].DROP VIEW [IF EXISTS].ALTER VIEW.CREATE TYPE.DROP TYPE [IF EXISTS].ANALYZE.ATTACH [DATABASE] [IF NOT EXISTS].DETACH [DATABASE] [IF EXISTS].CALL.[FORCE] CHECKPOINT.COMMENT ON [TABLE | COLUMN | VIEW | INDEX | SEQUENCE | TYPE | MACRO | MACRO TABLE].COPY [FROM DATABASE].DESCRIBE.EXPORT DATABASE.IMPORT DATABASE.INSTALL.LOAD.PIVOT.PIVOT_WIDER.UNPIVOT.EXPLAIN [ANALYZE].SET {LOCAL | SESSION | GLOBAL}.RESET [LOCAL | SESSION | GLOBAL].{SET | RESET} VARIABLE.SUMMARIZE.BEGIN TRANSACTION.ROLLBACK.COMMIT.ABORT.USE.VACUUM [ANALYZE].PREPARE.EXECUTE.DEALLOCATE [PREPARE]".split(".")),RR=A(["UNION [ALL | BY NAME]","EXCEPT [ALL]","INTERSECT [ALL]"]),AR=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{NATURAL | ASOF} [INNER] JOIN","{NATURAL | ASOF} {LEFT | RIGHT | FULL} [OUTER] JOIN","POSITIONAL JOIN","ANTI JOIN","SEMI JOIN"]),SR=A(["{ROWS | RANGE | GROUPS} BETWEEN","SIMILAR TO","IS [NOT] DISTINCT FROM"]),IR=A(["TIMESTAMP WITH TIME ZONE"]);const NR={name:"duckdb",tokenizerOptions:{reservedSelect:ER,reservedClauses:[...TR,...HE,...w],reservedSetOperations:RR,reservedJoins:AR,reservedKeywordPhrases:SR,reservedDataTypePhrases:IR,supportsXor:!0,reservedKeywords:jT,reservedDataTypes:zT,reservedFunctionNames:kT,nestedBlockComments:!0,extraParens:["[]","{}"],underscoresInNumbers:!0,stringTypes:["$$","''-qq",{quote:"''-qq-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{rest:"$"},paramTypes:{positional:!0,numbered:["$"],quoted:["$"]},operators:"//.%.**.^.!.&.|.~.<<.>>.::.==.->.->>.:.:=.=>.~~.!~~.~~*.!~~*.~~~.~.!~.~*.!~*.^@.||.>>=.<<=".split(".")},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...HE,...w],tabularOnelineClauses:w}},LR="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".split("."),_R="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".split("."),CR=["ARRAY","BIGINT","BINARY","BOOLEAN","CHAR","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTEGER","INTERVAL","MAP","NUMERIC","PRECISION","SMALLINT","STRUCT","TIMESTAMP","VARCHAR"];var eR=A(["SELECT [ALL | DISTINCT]"]),DR=A(["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"]),BE=A(["CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),Z=A(["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"]),PR=A(["UNION [ALL | DISTINCT]"]),sR=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),MR=A(["{ROWS | RANGE} BETWEEN"]),UR=A([]);const tR={name:"hive",tokenizerOptions:{reservedSelect:eR,reservedClauses:[...DR,...BE,...Z],reservedSetOperations:PR,reservedJoins:sR,reservedKeywordPhrases:MR,reservedDataTypePhrases:UR,reservedKeywords:_R,reservedDataTypes:CR,reservedFunctionNames:LR,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:[...BE,...Z],tabularOnelineClauses:Z}};function J(E){return E.map((T,R)=>{let I=E[R+1]||u;if(W.SET(T)&&I.text==="(")return Object.assign(Object.assign({},T),{type:O.RESERVED_FUNCTION_NAME});let _=E[R-1]||u;return W.VALUES(T)&&_.text==="="?Object.assign(Object.assign({},T),{type:O.RESERVED_FUNCTION_NAME}):T})}const rR="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".split("."),GR="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".split("."),aR="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".split(".");var iR=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),nR=A(["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"]),oE=A(["CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]"]),q=A("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".split(".")),HR=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),BR=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),oR=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),YR=A([]);const FR={name:"mariadb",tokenizerOptions:{reservedSelect:iR,reservedClauses:[...nR,...oE,...q],reservedSetOperations:HR,reservedJoins:BR,reservedKeywordPhrases:oR,reservedDataTypePhrases:YR,supportsXor:!0,reservedKeywords:rR,reservedDataTypes:GR,reservedFunctionNames:aR,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:J},formatOptions:{onelineClauses:[...oE,...q],tabularOnelineClauses:q}},VR="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".split("."),lR="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".split("."),pR="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".split(".");var WR=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),XR=A(["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"]),YE=A(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),k=A("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".split(".")),mR=A(["UNION [ALL | DISTINCT]"]),uR=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),cR=A(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),KR=A([]);const hR={name:"mysql",tokenizerOptions:{reservedSelect:WR,reservedClauses:[...XR,...YE,...k],reservedSetOperations:mR,reservedJoins:uR,reservedKeywordPhrases:cR,reservedDataTypePhrases:KR,supportsXor:!0,reservedKeywords:VR,reservedDataTypes:lR,reservedFunctionNames:pR,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:J},formatOptions:{onelineClauses:[...YE,...k],tabularOnelineClauses:k}},dR="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".split("."),yR="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".split("."),fR="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".split(".");var bR=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),JR=A(["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"]),FE=A(["CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),j=A("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".split(".")),xR=A(["UNION [ALL | DISTINCT]"]),$R=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),gR=A(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),QR=A([]);const vR={name:"tidb",tokenizerOptions:{reservedSelect:bR,reservedClauses:[...JR,...FE,...j],reservedSetOperations:xR,reservedJoins:$R,reservedKeywordPhrases:gR,reservedDataTypePhrases:QR,supportsXor:!0,reservedKeywords:dR,reservedDataTypes:yR,reservedFunctionNames:fR,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:J},formatOptions:{onelineClauses:[...FE,...j],tabularOnelineClauses:j}},wR="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".split("."),ZR="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".split("."),qR=[];var kR=A(["SELECT [ALL | DISTINCT]"]),jR=A(["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"]),VE=A("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".split(".")),zR=A(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),EA=A(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),TA=A(["{ROWS | RANGE | GROUPS} BETWEEN"]),RA=A([]);const AA={name:"n1ql",tokenizerOptions:{reservedSelect:kR,reservedClauses:[...jR,...VE],reservedSetOperations:zR,reservedJoins:EA,reservedKeywordPhrases:TA,reservedDataTypePhrases:RA,supportsXor:!0,reservedKeywords:ZR,reservedDataTypes:qR,reservedFunctionNames:wR,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:VE}},SA="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".split("."),IA="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".split("."),OA="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".split(".");var NA=A(["SELECT [ALL | DISTINCT | UNIQUE]"]),LA=A(["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"]),lE=A(["CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE"]),z=A(["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"]),_A=A(["UNION [ALL]","MINUS","INTERSECT"]),CA=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),eA=A(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),DA=A([]);const PA={name:"plsql",tokenizerOptions:{reservedSelect:NA,reservedClauses:[...LA,...lE,...z],reservedSetOperations:_A,reservedJoins:CA,reservedKeywordPhrases:eA,reservedDataTypePhrases:DA,supportsXor:!0,reservedKeywords:SA,reservedDataTypes:IA,reservedFunctionNames:OA,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:[":"]},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:sA},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:[...lE,...z],tabularOnelineClauses:z}};function sA(E){let T=u;return E.map(R=>W.SET(R)&&W.BY(T)?Object.assign(Object.assign({},R),{type:O.RESERVED_KEYWORD}):(rE(R.type)&&(T=R),R))}const MA="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.GEN_RANDOM_UUID.UUIDV4.UUIDV7.UUID_EXTRACT_TIMESTAMP.UUID_EXTRACT_VERSION.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".split("."),UA="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".split("."),tA="ARRAY.BIGINT.BIT.BIT VARYING.BOOL.BOOLEAN.CHAR.CHARACTER.CHARACTER VARYING.DECIMAL.DEC.DOUBLE.ENUM.FLOAT.INT.INTEGER.INTERVAL.NCHAR.NUMERIC.JSON.JSONB.PRECISION.REAL.SMALLINT.TEXT.TIME.TIMESTAMP.TIMESTAMPTZ.UUID.VARCHAR.XML.ZONE".split(".");var rA=A(["SELECT [ALL | DISTINCT]"]),GA=A(["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"]),pE=A(["CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]"]),EE=A("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.COMMENT ON.COMMIT.COMMIT PREPARED.COPY.CREATE ACCESS METHOD.CREATE [OR REPLACE] AGGREGATE.CREATE CAST.CREATE COLLATION.CREATE [DEFAULT] CONVERSION.CREATE DATABASE.CREATE DOMAIN.CREATE EVENT TRIGGER.CREATE EXTENSION.CREATE FOREIGN DATA WRAPPER.CREATE FOREIGN TABLE.CREATE [OR REPLACE] FUNCTION.CREATE GROUP.CREATE [UNIQUE] INDEX.CREATE [OR REPLACE] [TRUSTED] [PROCEDURAL] LANGUAGE.CREATE OPERATOR.CREATE OPERATOR CLASS.CREATE OPERATOR FAMILY.CREATE POLICY.CREATE [OR REPLACE] PROCEDURE.CREATE PUBLICATION.CREATE ROLE.CREATE [OR REPLACE] RULE.CREATE SCHEMA [AUTHORIZATION].CREATE [TEMPORARY | TEMP | UNLOGGED] 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 [OR REPLACE] TRANSFORM.CREATE [OR REPLACE] [CONSTRAINT] 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".split(".")),aA=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),iA=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),nA=A(["PRIMARY KEY","GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY","ON {UPDATE | DELETE} [NO ACTION | RESTRICT | CASCADE | SET NULL | SET DEFAULT]","DO {NOTHING | UPDATE}","AS MATERIALIZED","{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM","NULLS {FIRST | LAST}","WITH ORDINALITY"]),HA=A(["[TIMESTAMP | TIME] {WITH | WITHOUT} TIME ZONE"]);const BA={name:"postgresql",tokenizerOptions:{reservedSelect:rA,reservedClauses:[...GA,...pE,...EE],reservedSetOperations:aA,reservedJoins:iA,reservedKeywordPhrases:nA,reservedDataTypePhrases:HA,reservedKeywords:UA,reservedDataTypes:tA,reservedFunctionNames:MA,nestedBlockComments:!0,extraParens:["[]"],underscoresInNumbers:!0,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:"%.^.|/.||/.@.:=.&.|.#.~.<<.>>.~>~.~<~.~>=~.~<=~.@-@.@@.##.<->.&&.&<.&>.<<|.&<|.|>>.|&>.<^.^>.?#.?-.?|.?-|.?||.@>.<@.~=.?.@?.?&.->.->>.#>.#>>.#-.=>.>>=.<<=.~~.~~*.!~~.!~~*.~.~*.!~.!~*.-|-.||.@@@.!!.^@.<%.%>.<<%.%>>.<<->.<->>.<<<->.<->>>.::.:.<#>.<=>.<+>.<~>.<%>".split("."),operatorKeyword:!0},formatOptions:{alwaysDenseOperators:["::",":"],onelineClauses:[...pE,...EE],tabularOnelineClauses:EE}},oA="ANY_VALUE.APPROXIMATE PERCENTILE_DISC.AVG.COUNT.LISTAGG.MAX.MEDIAN.MIN.PERCENTILE_CONT.STDDEV_SAMP.STDDEV_POP.SUM.VAR_SAMP.VAR_POP.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".split("."),YA="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".split("."),FA=["ARRAY","BIGINT","BPCHAR","CHAR","CHARACTER VARYING","CHARACTER","DECIMAL","INT","INT2","INT4","INT8","INTEGER","NCHAR","NUMERIC","NVARCHAR","SMALLINT","TEXT","VARBYTE","VARCHAR"];var VA=A(["SELECT [ALL | DISTINCT]"]),lA=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET"]),WE=A(["CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),TE=A("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".split(".")),pA=A(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),WA=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),XA=A(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),mA=A([]);const uA={name:"redshift",tokenizerOptions:{reservedSelect:VA,reservedClauses:[...lA,...WE,...TE],reservedSetOperations:pA,reservedJoins:WA,reservedKeywordPhrases:XA,reservedDataTypePhrases:mA,reservedKeywords:YA,reservedDataTypes:FA,reservedFunctionNames:oA,extraParens:["[]"],stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...WE,...TE],tabularOnelineClauses:TE}},cA="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".split("."),KA="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".split("."),hA="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".split(".");var dA=A(["SELECT [ALL | DISTINCT]"]),yA=A(["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"]),XE=A(["CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),RE=A("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".split(".")),fA=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),bA=A(["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"]),JA=A(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),xA=A([]);const $A={name:"spark",tokenizerOptions:{reservedSelect:dA,reservedClauses:[...yA,...XE,...RE],reservedSetOperations:fA,reservedJoins:bA,reservedKeywordPhrases:JA,reservedDataTypePhrases:xA,supportsXor:!0,reservedKeywords:cA,reservedDataTypes:KA,reservedFunctionNames:hA,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],identChars:{allowFirstCharNumber:!0},variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:gA},formatOptions:{onelineClauses:[...XE,...RE],tabularOnelineClauses:RE}};function gA(E){return E.map((T,R)=>{let I=E[R-1]||u,_=E[R+1]||u;return W.WINDOW(T)&&_.type===O.OPEN_PAREN?Object.assign(Object.assign({},T),{type:O.RESERVED_FUNCTION_NAME}):T.text==="ITEMS"&&T.type===O.RESERVED_KEYWORD&&!(I.text==="COLLECTION"&&_.text==="TERMINATED")?Object.assign(Object.assign({},T),{type:O.IDENTIFIER,text:T.raw}):T})}const QA="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".split("."),vA="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.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".split("."),wA=["ANY","ARRAY","BLOB","CHARACTER","DECIMAL","INT","INTEGER","NATIVE CHARACTER","NCHAR","NUMERIC","NVARCHAR","REAL","TEXT","VARCHAR","VARYING CHARACTER"];var ZA=A(["SELECT [ALL | DISTINCT]"]),qA=A(["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","RETURNING"]),mE=A(["CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),AE=A(["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"]),kA=A(["UNION [ALL]","EXCEPT","INTERSECT"]),jA=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),zA=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","DO UPDATE"]),ES=A([]);const TS={name:"sqlite",tokenizerOptions:{reservedSelect:ZA,reservedClauses:[...qA,...mE,...AE],reservedSetOperations:kA,reservedJoins:jA,reservedKeywordPhrases:zA,reservedDataTypePhrases:ES,reservedKeywords:vA,reservedDataTypes:wA,reservedFunctionNames:QA,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:[...mE,...AE],tabularOnelineClauses:AE}},RS="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".split("."),AS="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".split("."),SS="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".split(".");var IS=A(["SELECT [ALL | DISTINCT]"]),OS=A(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET"]),uE=A(["CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),SE=A(["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"]),NS=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),LS=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),_S=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),CS=A([]);const eS={name:"sql",tokenizerOptions:{reservedSelect:IS,reservedClauses:[...OS,...uE,...SE],reservedSetOperations:NS,reservedJoins:LS,reservedKeywordPhrases:_S,reservedDataTypePhrases:CS,reservedKeywords:AS,reservedDataTypes:SS,reservedFunctionNames:RS,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:[...uE,...SE],tabularOnelineClauses:SE}},DS="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".split("."),PS="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".split("."),sS="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".split(".");var MS=A(["SELECT [ALL | DISTINCT]"]),US=A(["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"]),cE=A(["CREATE TABLE [IF NOT EXISTS]"]),IE=A("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".split(".")),tS=A(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),rS=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),GS=A(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),aS=A([]);const iS={name:"trino",tokenizerOptions:{reservedSelect:MS,reservedClauses:[...US,...cE,...IE],reservedSetOperations:tS,reservedJoins:rS,reservedKeywordPhrases:GS,reservedDataTypePhrases:aS,reservedKeywords:PS,reservedDataTypes:sS,reservedFunctionNames:DS,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:[...cE,...IE],tabularOnelineClauses:IE}},nS="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".split("."),HS="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".split("."),BS=["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"];var oS=A(["SELECT [ALL | DISTINCT]"]),YS=A(["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"]),KE=A(["CREATE TABLE"]),OE=A("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.CREATE DATABASE.ALTER DATABASE.DROP DATABASE [IF EXISTS].CREATE [OR ALTER] [PARTITION] {FUNCTION | PROCEDURE | PROC}.ALTER [PARTITION] {FUNCTION | PROCEDURE | PROC}.DROP [PARTITION] {FUNCTION | PROCEDURE | PROC} [IF EXISTS].GO.USE.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.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.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 SCHEME.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".split(".")),FS=A(["UNION [ALL]","EXCEPT","INTERSECT"]),VS=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),lS=A(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),pS=A([]);const WS={name:"transactsql",tokenizerOptions:{reservedSelect:oS,reservedClauses:[...YS,...KE,...OE],reservedSetOperations:FS,reservedJoins:VS,reservedKeywordPhrases:lS,reservedDataTypePhrases:pS,reservedKeywords:HS,reservedDataTypes:BS,reservedFunctionNames:nS,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]},"{}"],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::",":"],propertyAccessOperators:[".."]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:[...KE,...OE],tabularOnelineClauses:OE}},XS="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".split("."),mS="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".split("."),uS="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".split(".");var cS=A(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),KS=A(["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"]),hE=A(["CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]"]),NE=A("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".split(".")),hS=A(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),dS=A(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),yS=A(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN","IDENTIFIED BY"]),fS=A([]);const bS={name:"singlestoredb",tokenizerOptions:{reservedSelect:cS,reservedClauses:[...KS,...hE,...NE],reservedSetOperations:hS,reservedJoins:dS,reservedKeywordPhrases:yS,reservedDataTypePhrases:fS,reservedKeywords:XS,reservedDataTypes:mS,reservedFunctionNames:uS,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:J},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:[...hE,...NE],tabularOnelineClauses:NE}},JS="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.IDENTIFIER.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 \u2014 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".split("."),xS="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".split("."),$S="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".split(".");var gS=A(["SELECT [ALL | DISTINCT]"]),QS=A(["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"]),dE=A(["CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]"]),LE=A("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".split(".")),vS=A(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),wS=A(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),ZS=A(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),qS=A([]);const kS={name:"snowflake",tokenizerOptions:{reservedSelect:gS,reservedClauses:[...QS,...dE,...LE],reservedSetOperations:vS,reservedJoins:wS,reservedKeywordPhrases:ZS,reservedDataTypePhrases:qS,reservedKeywords:xS,reservedDataTypes:$S,reservedFunctionNames:JS,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:[...dE,...LE],tabularOnelineClauses:LE}},f=E=>E[E.length-1],yE=E=>E.sort((T,R)=>R.length-T.length||T.localeCompare(R)),x=E=>E.replace(/\s+/gu," "),_E=E=>/\n/.test(E),Y=E=>E.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),fE=/\s+/uy,X=E=>RegExp(`(?:${E})`,"uy"),jS=E=>E.split("").map(T=>/ /gu.test(T)?"\\s+":`[${T.toUpperCase()}${T.toLowerCase()}]`).join(""),zS=E=>E+"(?:-"+E+")*",EI=({prefixes:E,requirePrefix:T})=>`(?:${E.map(jS).join("|")}${T?"":"|"})`,TI=E=>RegExp(`(?:${E.map(Y).join("|")}).*?(?=\r +|\r| +|$)`,"uy"),bE=(E,T=[])=>{let R=E==="open"?0:1;return X(["()",...T].map(I=>I[R]).map(Y).join("|"))},JE=E=>X(`${yE(E).map(Y).join("|")}`);var RI=({rest:E,dashes:T})=>E||T?`(?![${E||""}${T?"-":""}])`:"";const V=(E,T={})=>{if(E.length===0)return/^\b$/u;let R=RI(T),I=yE(E).map(Y).join("|").replace(/ /gu,"\\s+");return RegExp(`(?:${I})${R}\\b`,"iuy")},CE=(E,T)=>{if(E.length)return X(`(?:${E.map(Y).join("|")})(?:${T})`)};var AI=()=>{let E={"<":">","[":"]","(":")","{":"}"},T=Object.entries(E).map(([I,_])=>"{left}(?:(?!{right}').)*?{right}".replace(/{left}/g,Y(I)).replace(/{right}/g,Y(_))),R=Y(Object.keys(E).join(""));return`[Qq]'(?:${String.raw`(?[^\s${R}])(?:(?!\k').)*?\k`}|${T.join("|")})'`};const xE={"``":"(?:`[^`]*`)+","[]":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`(?\$\w*\$)[\s\S]*?\k`,"'''..'''":String.raw`'''[^\\]*?(?:\\.[^\\]*?)*?'''`,'""".."""':String.raw`"""[^\\]*?(?:\\.[^\\]*?)*?"""`,"{}":String.raw`(?:\{[^\}]*\})`,"q''":AI()};var $E=E=>typeof E=="string"?xE[E]:"regex"in E?E.regex:EI(E)+xE[E.quote];const SI=E=>X(E.map(T=>"regex"in T?T.regex:$E(T)).join("|")),gE=E=>E.map($E).join("|"),QE=E=>X(gE(E)),II=(E={})=>X(vE(E)),vE=({first:E,rest:T,dashes:R,allowFirstCharNumber:I}={})=>{let _="\\p{Alphabetic}\\p{Mark}_",t="\\p{Decimal_Number}",r=Y(E??""),G=Y(T??""),o=I?`[${_}${t}${r}][${_}${t}${G}]*`:`[${_}${r}][${_}${t}${G}]*`;return R?zS(o):o};function wE(E,T){let R=E.slice(0,T).split(/\n/);return{line:R.length,col:R[R.length-1].length+1}}var OI=class{constructor(E,T){this.rules=E,this.dialectName=T,this.input="",this.index=0}tokenize(E){this.input=E,this.index=0;let T=[],R;for(;this.index0;)if(R=this.matchSection(ZE,E))T+=R,I++;else if(R=this.matchSection(LI,E))T+=R,I--;else if(R=this.matchSection(NI,E))T+=R;else return null;return[T]}matchSection(E,T){E.lastIndex=this.lastIndex;let R=E.exec(T);return R&&(this.lastIndex+=R[0].length),R?R[0]:null}},CI=class{constructor(E,T){this.cfg=E,this.dialectName=T,this.rulesBeforeParams=this.buildRulesBeforeParams(E),this.rulesAfterParams=this.buildRulesAfterParams(E)}tokenize(E,T){let R=new OI([...this.rulesBeforeParams,...this.buildParamRules(this.cfg,T),...this.rulesAfterParams],this.dialectName).tokenize(E);return this.cfg.postProcess?this.cfg.postProcess(R):R}buildRulesBeforeParams(E){return this.validRules([{type:O.DISABLE_COMMENT,regex:/(\/\* *sql-formatter-disable *\*\/[\s\S]*?(?:\/\* *sql-formatter-enable *\*\/|$))/uy},{type:O.BLOCK_COMMENT,regex:E.nestedBlockComments?new _I:/(\/\*[^]*?\*\/)/uy},{type:O.LINE_COMMENT,regex:TI(E.lineCommentTypes??["--"])},{type:O.QUOTED_IDENTIFIER,regex:QE(E.identTypes)},{type:O.NUMBER,regex:E.underscoresInNumbers?/(?: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:/(?: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:O.RESERVED_KEYWORD_PHRASE,regex:V(E.reservedKeywordPhrases??[],E.identChars),text:i},{type:O.RESERVED_DATA_TYPE_PHRASE,regex:V(E.reservedDataTypePhrases??[],E.identChars),text:i},{type:O.CASE,regex:/CASE\b/iuy,text:i},{type:O.END,regex:/END\b/iuy,text:i},{type:O.BETWEEN,regex:/BETWEEN\b/iuy,text:i},{type:O.LIMIT,regex:E.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:i},{type:O.RESERVED_CLAUSE,regex:V(E.reservedClauses,E.identChars),text:i},{type:O.RESERVED_SELECT,regex:V(E.reservedSelect,E.identChars),text:i},{type:O.RESERVED_SET_OPERATION,regex:V(E.reservedSetOperations,E.identChars),text:i},{type:O.WHEN,regex:/WHEN\b/iuy,text:i},{type:O.ELSE,regex:/ELSE\b/iuy,text:i},{type:O.THEN,regex:/THEN\b/iuy,text:i},{type:O.RESERVED_JOIN,regex:V(E.reservedJoins,E.identChars),text:i},{type:O.AND,regex:/AND\b/iuy,text:i},{type:O.OR,regex:/OR\b/iuy,text:i},{type:O.XOR,regex:E.supportsXor?/XOR\b/iuy:void 0,text:i},...E.operatorKeyword?[{type:O.OPERATOR,regex:/OPERATOR *\([^)]+\)/iuy}]:[],{type:O.RESERVED_FUNCTION_NAME,regex:V(E.reservedFunctionNames,E.identChars),text:i},{type:O.RESERVED_DATA_TYPE,regex:V(E.reservedDataTypes,E.identChars),text:i},{type:O.RESERVED_KEYWORD,regex:V(E.reservedKeywords,E.identChars),text:i}])}buildRulesAfterParams(E){return this.validRules([{type:O.VARIABLE,regex:E.variableTypes?SI(E.variableTypes):void 0},{type:O.STRING,regex:QE(E.stringTypes)},{type:O.IDENTIFIER,regex:II(E.identChars)},{type:O.DELIMITER,regex:/[;]/uy},{type:O.COMMA,regex:/[,]/y},{type:O.OPEN_PAREN,regex:bE("open",E.extraParens)},{type:O.CLOSE_PAREN,regex:bE("close",E.extraParens)},{type:O.OPERATOR,regex:JE(["+","-","/",">","<","=","<>","<=",">=","!=",...E.operators??[]])},{type:O.ASTERISK,regex:/[*]/uy},{type:O.PROPERTY_ACCESS_OPERATOR,regex:JE([".",...E.propertyAccessOperators??[]])}])}buildParamRules(E,T){var I,_,t,r,G;let R={named:(T==null?void 0:T.named)||((I=E.paramTypes)==null?void 0:I.named)||[],quoted:(T==null?void 0:T.quoted)||((_=E.paramTypes)==null?void 0:_.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)||((G=E.paramTypes)==null?void 0:G.custom)||[]};return this.validRules([{type:O.NAMED_PARAMETER,regex:CE(R.named,vE(E.paramChars||E.identChars)),key:o=>o.slice(1)},{type:O.QUOTED_PARAMETER,regex:CE(R.quoted,gE(E.identTypes)),key:o=>(({tokenKey:p,quoteChar:N})=>p.replace(new RegExp(Y("\\"+N),"gu"),N))({tokenKey:o.slice(2,-1),quoteChar:o.slice(-1)})},{type:O.NUMBERED_PARAMETER,regex:CE(R.numbered,"[0-9]+"),key:o=>o.slice(1)},{type:O.POSITIONAL_PARAMETER,regex:R.positional?/[?]/y:void 0},...R.custom.map(o=>({type:O.CUSTOM_PARAMETER,regex:X(o.regex),key:o.key??(p=>p)}))])}validRules(E){return E.filter(T=>!!T.regex)}},i=E=>x(E.toUpperCase()),qE=new Map;const eI=E=>{let T=qE.get(E);return T||(T=DI(E),qE.set(E,T)),T};var DI=E=>({tokenizer:new CI(E.tokenizerOptions,E.name),formatOptions:PI(E.formatOptions)}),PI=E=>({alwaysDenseOperators:E.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(E.onelineClauses.map(T=>[T,!0])),tabularOnelineClauses:Object.fromEntries((E.tabularOnelineClauses??E.onelineClauses).map(T=>[T,!0]))});function sI(E){return E.indentStyle==="tabularLeft"||E.indentStyle==="tabularRight"?" ".repeat(10):E.useTabs?" ":" ".repeat(E.tabWidth)}function K(E){return E.indentStyle==="tabularLeft"||E.indentStyle==="tabularRight"}var MI=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}},UI=OT(NT(((E,T)=>{(function(R,I){typeof T=="object"&&T.exports?T.exports=I():R.nearley=I()})(E,function(){function R(N,L,C){return this.id=++R.highestId,this.name=N,this.symbols=L,this.postprocess=C,this}R.highestId=0,R.prototype.toString=function(N){var L=N===void 0?this.symbols.map(p).join(" "):this.symbols.slice(0,N).map(p).join(" ")+" \u25CF "+this.symbols.slice(N).map(p).join(" ");return this.name+" \u2192 "+L};function I(N,L,C,P){this.rule=N,this.dot=L,this.reference=C,this.data=[],this.wantedBy=P,this.isComplete=this.dot===N.symbols.length}I.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},I.prototype.nextState=function(N){var L=new I(this.rule,this.dot+1,this.reference,this.wantedBy);return L.left=this,L.right=N,L.isComplete&&(L.data=L.build(),L.right=void 0),L},I.prototype.build=function(){var N=[],L=this;do N.push(L.right.data),L=L.left;while(L.left);return N.reverse(),N},I.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,G.fail))};function _(N,L){this.grammar=N,this.index=L,this.states=[],this.wants={},this.scannable=[],this.completed={}}_.prototype.process=function(N){for(var L=this.states,C=this.wants,P=this.completed,M=0;M0&&L.push(" ^ "+P+" more lines identical to this"),P=0,L.push(" "+U)),C=U}},G.prototype.getSymbolDisplay=function(N){return o(N)},G.prototype.buildFirstStateStack=function(N,L){if(L.indexOf(N)!==-1)return null;if(N.wantedBy.length===0)return[N];var C=N.wantedBy[0],P=[N].concat(L),M=this.buildFirstStateStack(C,P);return M===null?null:[N].concat(M)},G.prototype.save=function(){var N=this.table[this.current];return N.lexerState=this.lexerState,N},G.prototype.restore=function(N){var L=N.index;this.current=L,this.table[L]=N,this.table.splice(L+1),this.lexerState=N.lexerState,this.results=this.finish()},G.prototype.rewind=function(N){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[N])},G.prototype.finish=function(){var N=[],L=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(C){C.rule.name===L&&C.dot===C.rule.symbols.length&&C.reference===0&&C.data!==G.fail&&N.push(C)}),N.map(function(C){return C.data})};function o(N){var L=typeof N;if(L==="string")return N;if(L==="object"){if(N.literal)return JSON.stringify(N.literal);if(N instanceof RegExp)return"character matching "+N;if(N.type)return N.type+" token";if(N.test)return"token matching "+String(N.test);throw Error("Unknown symbol type: "+N)}}function p(N){var L=typeof N;if(L==="string")return N;if(L==="object"){if(N.literal)return JSON.stringify(N.literal);if(N instanceof RegExp)return N.toString();if(N.type)return"%"+N.type;if(N.test)return"<"+String(N.test)+">";throw Error("Unknown symbol type: "+N)}}return{Parser:G,Grammar:t,Rule:R}})}))(),1);function tI(E){return E.map(rI).map(GI).map(aI).map(iI).map(nI)}var rI=(E,T,R)=>{if(rE(E.type)){let I=HI(R,T);if(I&&I.type===O.PROPERTY_ACCESS_OPERATOR)return Object.assign(Object.assign({},E),{type:O.IDENTIFIER,text:E.raw});let _=h(R,T);if(_&&_.type===O.PROPERTY_ACCESS_OPERATOR)return Object.assign(Object.assign({},E),{type:O.IDENTIFIER,text:E.raw})}return E},GI=(E,T,R)=>{if(E.type===O.RESERVED_FUNCTION_NAME){let I=h(R,T);if(!I||!kE(I))return Object.assign(Object.assign({},E),{type:O.IDENTIFIER,text:E.raw})}return E},aI=(E,T,R)=>{if(E.type===O.RESERVED_DATA_TYPE){let I=h(R,T);if(I&&kE(I))return Object.assign(Object.assign({},E),{type:O.RESERVED_PARAMETERIZED_DATA_TYPE})}return E},iI=(E,T,R)=>{if(E.type===O.IDENTIFIER){let I=h(R,T);if(I&&jE(I))return Object.assign(Object.assign({},E),{type:O.ARRAY_IDENTIFIER})}return E},nI=(E,T,R)=>{if(E.type===O.RESERVED_DATA_TYPE){let I=h(R,T);if(I&&jE(I))return Object.assign(Object.assign({},E),{type:O.ARRAY_KEYWORD})}return E},HI=(E,T)=>h(E,T,-1),h=(E,T,R=1)=>{let I=1;for(;E[T+I*R]&&BI(E[T+I*R]);)I++;return E[T+I*R]},kE=E=>E.type===O.OPEN_PAREN&&E.text==="(",jE=E=>E.type===O.OPEN_PAREN&&E.text==="[",BI=E=>E.type===O.BLOCK_COMMENT||E.type===O.LINE_COMMENT,zE=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){let{line:T,col:R}=wE(this.input,E.start);return`Parse error at token: ${E.text} at line ${T} column ${R}`}has(E){return E in O}},e;(function(E){E.statement="statement",E.clause="clause",E.set_operation="set_operation",E.function_call="function_call",E.parameterized_data_type="parameterized_data_type",E.array_subscript="array_subscript",E.property_access="property_access",E.parenthesis="parenthesis",E.between_predicate="between_predicate",E.case_expression="case_expression",E.case_when="case_when",E.case_else="case_else",E.limit_clause="limit_clause",E.all_columns_asterisk="all_columns_asterisk",E.literal="literal",E.identifier="identifier",E.keyword="keyword",E.data_type="data_type",E.parameter="parameter",E.operator="operator",E.comma="comma",E.line_comment="line_comment",E.block_comment="block_comment",E.disable_comment="disable_comment"})(e=e||(e={}));function eE(E){return E[0]}var D=new zE(E=>[]),m=([[E]])=>E,n=E=>({type:e.keyword,tokenType:E.type,text:E.text,raw:E.raw}),ET=E=>({type:e.data_type,text:E.text,raw:E.raw}),H=(E,{leading:T,trailing:R})=>(T!=null&&T.length&&(E=Object.assign(Object.assign({},E),{leadingComments:T})),R!=null&&R.length&&(E=Object.assign(Object.assign({},E),{trailingComments:R})),E),oI=(E,{leading:T,trailing:R})=>{if(T!=null&&T.length){let[I,..._]=E;E=[H(I,{leading:T}),..._]}if(R!=null&&R.length){let I=E.slice(0,-1),_=E[E.length-1];E=[...I,H(_,{trailing:R})]}return E},YI={Lexer:D,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])=>{let T=E[E.length-1];return T&&!T.hasSemicolon?T.children.length>0?E:E.slice(0,-1):E}},{name:"statement$subexpression$1",symbols:[D.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[D.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([E,[T]])=>({type:e.statement,children:E,hasSemicolon:T.type===O.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:m},{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:[D.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:eE},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[D.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([E,T,R,I])=>{if(I){let[_,t]=I;return{type:e.limit_clause,limitKw:H(n(E),{trailing:T}),offset:R,count:t}}else return{type:e.limit_clause,limitKw:H(n(E),{trailing:T}),count:R}}},{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:[D.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([E,[T,R]])=>({type:e.clause,nameKw:n(E),children:[T,...R]})},{name:"select_clause",symbols:[D.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([E])=>({type:e.clause,nameKw:n(E),children:[]})},{name:"all_columns_asterisk",symbols:[D.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:e.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:[D.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([E,T])=>({type:e.clause,nameKw:n(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:[D.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([E,T])=>({type:e.set_operation,nameKw:n(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:eE},{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])=>H(E,{trailing:T})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([E,T])=>H(T,{leading:E})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([E,T])=>H(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:m},{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:m},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:m},{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:m},{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:m},{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:m},{name:"array_subscript",symbols:[D.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([E,T,R])=>({type:e.array_subscript,array:H({type:e.identifier,quoted:!1,text:E.text},{trailing:T}),parenthesis:R})},{name:"array_subscript",symbols:[D.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([E,T,R])=>({type:e.array_subscript,array:H(n(E),{trailing:T}),parenthesis:R})},{name:"function_call",symbols:[D.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([E,T,R])=>({type:e.function_call,nameKw:H(n(E),{trailing:T}),parenthesis:R})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([E,T,R])=>({type:e.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,R])=>({type:e.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,R])=>({type:e.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","_",D.has("PROPERTY_ACCESS_OPERATOR")?{type:"PROPERTY_ACCESS_OPERATOR"}:PROPERTY_ACCESS_OPERATOR,"_","property_access$subexpression$1"],postprocess:([E,T,R,I,[_]])=>({type:e.property_access,object:H(E,{trailing:T}),operator:R.text,property:H(_,{leading:I})})},{name:"between_predicate",symbols:[D.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",D.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([E,T,R,I,_,t,r])=>({type:e.between_predicate,betweenKw:n(E),expr1:oI(R,{leading:T,trailing:I}),andKw:n(_),expr2:[H(r,{leading:t})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:eE},{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:[D.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",D.has("END")?{type:"END"}:END],postprocess:([E,T,R,I,_])=>({type:e.case_expression,caseKw:H(n(E),{trailing:T}),endKw:n(_),expr:R||[],clauses:I})},{name:"case_clause",symbols:[D.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",D.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([E,T,R,I,_,t])=>({type:e.case_when,whenKw:H(n(E),{trailing:T}),thenKw:H(n(I),{trailing:_}),condition:R,result:t})},{name:"case_clause",symbols:[D.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([E,T,R])=>({type:e.case_else,elseKw:H(n(E),{trailing:T}),result:R})},{name:"comma$subexpression$1",symbols:[D.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[E]])=>({type:e.comma})},{name:"asterisk$subexpression$1",symbols:[D.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[E]])=>({type:e.operator,text:E.text})},{name:"operator$subexpression$1",symbols:[D.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[E]])=>({type:e.operator,text:E.text})},{name:"identifier$subexpression$1",symbols:[D.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[D.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[D.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[E]])=>({type:e.identifier,quoted:E.type!=="IDENTIFIER",text:E.text})},{name:"parameter$subexpression$1",symbols:[D.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[D.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[D.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[D.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[D.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[E]])=>({type:e.parameter,key:E.key,text:E.text})},{name:"literal$subexpression$1",symbols:[D.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[D.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[E]])=>({type:e.literal,text:E.text})},{name:"keyword$subexpression$1",symbols:[D.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[D.has("RESERVED_KEYWORD_PHRASE")?{type:"RESERVED_KEYWORD_PHRASE"}:RESERVED_KEYWORD_PHRASE]},{name:"keyword$subexpression$1",symbols:[D.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[E]])=>n(E)},{name:"data_type$subexpression$1",symbols:[D.has("RESERVED_DATA_TYPE")?{type:"RESERVED_DATA_TYPE"}:RESERVED_DATA_TYPE]},{name:"data_type$subexpression$1",symbols:[D.has("RESERVED_DATA_TYPE_PHRASE")?{type:"RESERVED_DATA_TYPE_PHRASE"}:RESERVED_DATA_TYPE_PHRASE]},{name:"data_type",symbols:["data_type$subexpression$1"],postprocess:([[E]])=>ET(E)},{name:"data_type",symbols:[D.has("RESERVED_PARAMETERIZED_DATA_TYPE")?{type:"RESERVED_PARAMETERIZED_DATA_TYPE"}:RESERVED_PARAMETERIZED_DATA_TYPE,"_","parenthesis"],postprocess:([E,T,R])=>({type:e.parameterized_data_type,dataType:H(ET(E),{trailing:T}),parenthesis:R})},{name:"logic_operator$subexpression$1",symbols:[D.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[D.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[D.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[E]])=>n(E)},{name:"other_keyword$subexpression$1",symbols:[D.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[D.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[D.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[D.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[E]])=>n(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:[D.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([E])=>({type:e.line_comment,text:E.text,precedingWhitespace:E.precedingWhitespace})},{name:"comment",symbols:[D.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([E])=>({type:e.block_comment,text:E.text,precedingWhitespace:E.precedingWhitespace})},{name:"comment",symbols:[D.has("DISABLE_COMMENT")?{type:"DISABLE_COMMENT"}:DISABLE_COMMENT],postprocess:([E])=>({type:e.disable_comment,text:E.text,precedingWhitespace:E.precedingWhitespace})}],ParserStart:"main"},{Parser:FI,Grammar:VI}=UI.default;function lI(E){let T={},R=new zE(_=>[...tI(E.tokenize(_,T)),tE(_.length)]),I=new FI(VI.fromCompiled(YI),{lexer:R});return{parse:(_,t)=>{T=t;let{results:r}=I.feed(_);if(r.length===1)return r[0];throw r.length===0?Error("Parse error: Invalid SQL"):Error(`Parse error: Ambiguous grammar +${JSON.stringify(r,void 0,2)}`)}}}var S;(function(E){E[E.SPACE=0]="SPACE",E[E.NO_SPACE=1]="NO_SPACE",E[E.NO_NEWLINE=2]="NO_NEWLINE",E[E.NEWLINE=3]="NEWLINE",E[E.MANDATORY_NEWLINE=4]="MANDATORY_NEWLINE",E[E.INDENT=5]="INDENT",E[E.SINGLE_INDENT=6]="SINGLE_INDENT"})(S=S||(S={}));var TT=class{constructor(E){this.indentation=E,this.items=[]}add(...E){for(let T of E)switch(T){case S.SPACE:this.items.push(S.SPACE);break;case S.NO_SPACE:this.trimHorizontalWhitespace();break;case S.NO_NEWLINE:this.trimWhitespace();break;case S.NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(S.NEWLINE);break;case S.MANDATORY_NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(S.MANDATORY_NEWLINE);break;case S.INDENT:this.addIndentation();break;case S.SINGLE_INDENT:this.items.push(S.SINGLE_INDENT);break;default:this.items.push(T)}}trimHorizontalWhitespace(){for(;pI(f(this.items));)this.items.pop()}trimWhitespace(){for(;WI(f(this.items));)this.items.pop()}addNewline(E){if(this.items.length>0)switch(f(this.items)){case S.NEWLINE:this.items.pop(),this.items.push(E);break;case S.MANDATORY_NEWLINE:break;default:this.items.push(E);break}}addIndentation(){for(let E=0;Ethis.itemToString(E)).join("")}getLayoutItems(){return this.items}itemToString(E){switch(E){case S.SPACE:return" ";case S.NEWLINE:case S.MANDATORY_NEWLINE:return` +`;case S.SINGLE_INDENT:return this.indentation.getSingleIndent();default:return E}}},pI=E=>E===S.SPACE||E===S.SINGLE_INDENT,WI=E=>E===S.SPACE||E===S.SINGLE_INDENT||E===S.NEWLINE;function RT(E,T){if(T==="standard")return E;let R=[];return E.length>=10&&E.includes(" ")&&([E,...R]=E.split(" ")),E=T==="tabularLeft"?E.padEnd(9," "):E.padStart(9," "),E+["",...R].join(" ")}function AT(E){return UT(E)||E===O.RESERVED_CLAUSE||E===O.RESERVED_SELECT||E===O.RESERVED_SET_OPERATION||E===O.RESERVED_JOIN||E===O.LIMIT}var DE="top-level",XI="block-level",ST=class{constructor(E){this.indent=E,this.indentTypes=[]}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(DE)}increaseBlockLevel(){this.indentTypes.push(XI)}decreaseTopLevel(){this.indentTypes.length>0&&f(this.indentTypes)===DE&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===DE;);}},mI=class extends TT{constructor(E){super(new ST("")),this.expressionWidth=E,this.length=0,this.trailingSpace=!1}add(...E){if(E.forEach(T=>this.addToLength(T)),this.length>this.expressionWidth)throw new PE;super.add(...E)}addToLength(E){if(typeof E=="string")this.length+=E.length,this.trailingSpace=!1;else{if(E===S.MANDATORY_NEWLINE||E===S.NEWLINE)throw new PE;E===S.INDENT||E===S.SINGLE_INDENT||E===S.SPACE?this.trailingSpace||(this.trailingSpace=(this.length++,!0)):(E===S.NO_NEWLINE||E===S.NO_SPACE)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}},PE=class extends Error{},uI=class ME{constructor({cfg:T,dialectCfg:R,params:I,layout:_,inline:t=!1}){this.inline=!1,this.nodes=[],this.index=-1,this.cfg=T,this.dialectCfg=R,this.inline=t,this.params=I,this.layout=_}format(T){for(this.nodes=T,this.index=0;this.index{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 R;switch(T.array.type){case e.data_type:R=this.showDataType(T.array);break;case e.keyword:R=this.showKw(T.array);break;default:R=this.showIdentifier(T.array);break}this.withComments(T.array,()=>{this.layout.add(R)}),this.formatNode(T.parenthesis)}formatPropertyAccess(T){this.formatNode(T.object),this.layout.add(S.NO_SPACE,T.operator),this.formatNode(T.property)}formatParenthesis(T){let R=this.formatInlineExpression(T.children);R?(this.layout.add(T.openParen),this.layout.add(...R.getLayoutItems()),this.layout.add(S.NO_SPACE,T.closeParen,S.SPACE)):(this.layout.add(T.openParen,S.NEWLINE),K(this.cfg)?(this.layout.add(S.INDENT),this.layout=this.formatSubExpression(T.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(S.INDENT),this.layout=this.formatSubExpression(T.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(S.NEWLINE,S.INDENT,T.closeParen,S.SPACE))}formatBetweenPredicate(T){this.layout.add(this.showKw(T.betweenKw),S.SPACE),this.layout=this.formatSubExpression(T.expr1),this.layout.add(S.NO_SPACE,S.SPACE,this.showNonTabularKw(T.andKw),S.SPACE),this.layout=this.formatSubExpression(T.expr2),this.layout.add(S.SPACE)}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(S.NEWLINE,S.INDENT),this.formatNode(T.endKw)}formatCaseWhen(T){this.layout.add(S.NEWLINE,S.INDENT),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(S.NEWLINE,S.INDENT),this.formatNode(T.elseKw),this.layout=this.formatSubExpression(T.result)}formatClause(T){this.isOnelineClause(T)?this.formatClauseInOnelineStyle(T):K(this.cfg)?this.formatClauseInTabularStyle(T):this.formatClauseInIndentedStyle(T)}isOnelineClause(T){return K(this.cfg)?this.dialectCfg.tabularOnelineClauses[T.nameKw.text]:this.dialectCfg.onelineClauses[T.nameKw.text]}formatClauseInIndentedStyle(T){this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T.nameKw),S.NEWLINE),this.layout.indentation.increaseTopLevel(),this.layout.add(S.INDENT),this.layout=this.formatSubExpression(T.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(T){this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T.nameKw),S.SPACE),this.layout=this.formatSubExpression(T.children)}formatClauseInTabularStyle(T){this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T.nameKw),S.SPACE),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(T.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(T){this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T.nameKw),S.NEWLINE),this.layout.add(S.INDENT),this.layout=this.formatSubExpression(T.children)}formatLimitClause(T){this.withComments(T.limitKw,()=>{this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T.limitKw))}),this.layout.indentation.increaseTopLevel(),K(this.cfg)?this.layout.add(S.SPACE):this.layout.add(S.NEWLINE,S.INDENT),T.offset?(this.layout=this.formatSubExpression(T.offset),this.layout.add(S.NO_SPACE,",",S.SPACE),this.layout=this.formatSubExpression(T.count)):this.layout=this.formatSubExpression(T.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(T){this.layout.add("*",S.SPACE)}formatLiteral(T){this.layout.add(T.text,S.SPACE)}formatIdentifier(T){this.layout.add(this.showIdentifier(T),S.SPACE)}formatParameter(T){this.layout.add(this.params.get(T),S.SPACE)}formatOperator({text:T}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(T)?this.layout.add(S.NO_SPACE,T):T===":"?this.layout.add(S.NO_SPACE,T,S.SPACE):this.layout.add(T,S.SPACE)}formatComma(T){this.inline?this.layout.add(S.NO_SPACE,",",S.SPACE):this.layout.add(S.NO_SPACE,",",S.NEWLINE,S.INDENT)}withComments(T,R){this.formatComments(T.leadingComments),R(),this.formatComments(T.trailingComments)}formatComments(T){T&&T.forEach(R=>{R.type===e.line_comment?this.formatLineComment(R):this.formatBlockComment(R)})}formatLineComment(T){_E(T.precedingWhitespace||"")?this.layout.add(S.NEWLINE,S.INDENT,T.text,S.MANDATORY_NEWLINE,S.INDENT):this.layout.getLayoutItems().length>0?this.layout.add(S.NO_NEWLINE,S.SPACE,T.text,S.MANDATORY_NEWLINE,S.INDENT):this.layout.add(T.text,S.MANDATORY_NEWLINE,S.INDENT)}formatBlockComment(T){T.type===e.block_comment&&this.isMultilineBlockComment(T)?(this.splitBlockComment(T.text).forEach(R=>{this.layout.add(S.NEWLINE,S.INDENT,R)}),this.layout.add(S.NEWLINE,S.INDENT)):this.layout.add(T.text,S.SPACE)}isMultilineBlockComment(T){return _E(T.text)||_E(T.precedingWhitespace||"")}isDocComment(T){let R=T.split(/\n/);return/^\/\*\*?$/.test(R[0])&&R.slice(1,R.length-1).every(I=>/^\s*\*/.test(I))&&/^\s*\*\/$/.test(f(R))}splitBlockComment(T){return this.isDocComment(T)?T.split(/\n/).map(R=>/^\s*\*/.test(R)?" "+R.replace(/^\s*/,""):R):T.split(/\n/).map(R=>R.replace(/^\s*/,""))}formatSubExpression(T){return new ME({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(T)}formatInlineExpression(T){let R=this.params.getPositionalParameterIndex();try{return new ME({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new mI(this.cfg.expressionWidth),inline:!0}).format(T)}catch(I){if(I instanceof PE){this.params.setPositionalParameterIndex(R);return}else throw I}}formatKeywordNode(T){switch(T.tokenType){case O.RESERVED_JOIN:return this.formatJoin(T);case O.AND:case O.OR:case O.XOR:return this.formatLogicalOperator(T);default:return this.formatKeyword(T)}}formatJoin(T){K(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T),S.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T),S.SPACE)}formatKeyword(T){this.layout.add(this.showKw(T),S.SPACE)}formatLogicalOperator(T){this.cfg.logicalOperatorNewline==="before"?K(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T),S.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(S.NEWLINE,S.INDENT,this.showKw(T),S.SPACE):this.layout.add(this.showKw(T),S.NEWLINE,S.INDENT)}formatDataType(T){this.layout.add(this.showDataType(T),S.SPACE)}showKw(T){return AT(T.tokenType)?RT(this.showNonTabularKw(T),this.cfg.indentStyle):this.showNonTabularKw(T)}showNonTabularKw(T){switch(this.cfg.keywordCase){case"preserve":return x(T.raw);case"upper":return T.text;case"lower":return T.text.toLowerCase()}}showFunctionKw(T){return AT(T.tokenType)?RT(this.showNonTabularFunctionKw(T),this.cfg.indentStyle):this.showNonTabularFunctionKw(T)}showNonTabularFunctionKw(T){switch(this.cfg.functionCase){case"preserve":return x(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 x(T.raw);case"upper":return T.text;case"lower":return T.text.toLowerCase()}}},cI=class{constructor(E,T){this.dialect=E,this.cfg=T,this.params=new MI(this.cfg.params)}format(E){let T=this.parse(E);return this.formatAst(T).trimEnd()}parse(E){return lI(this.dialect.tokenizer).parse(E,this.cfg.paramTypes||{})}formatAst(E){return E.map(T=>this.formatStatement(T)).join(` +`.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(E){let T=new uI({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new TT(new ST(sI(this.cfg)))}).format(E.children);return E.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?T.add(S.NEWLINE,";"):T.add(S.NO_NEWLINE,";")),T.toString()}},sE=class extends Error{};function KI(E){for(let T of["multilineLists","newlineBeforeOpenParen","newlineBeforeCloseParen","aliasAs","commaPosition","tabulateAlias"])if(T in E)throw new sE(`${T} config is no more supported.`);if(E.expressionWidth<=0)throw new sE(`expressionWidth config must be positive number. Received ${E.expressionWidth} instead.`);if(E.params&&!hI(E.params)&&console.warn('WARNING: All "params" option values should be strings.'),E.paramTypes&&!dI(E.paramTypes))throw new sE("Empty regex given in custom paramTypes. That would result in matching infinite amount of parameters.");return E}function hI(E){return(E instanceof Array?E:Object.values(E)).every(T=>typeof T=="string")}function dI(E){return E.custom&&Array.isArray(E.custom)?E.custom.every(T=>T.regex!==""):!0}var yI=function(E,T){var R={};for(var I in E)Object.prototype.hasOwnProperty.call(E,I)&&T.indexOf(I)<0&&(R[I]=E[I]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,I=Object.getOwnPropertySymbols(E);_{var{dialect:R}=T,I=yI(T,["dialect"]);if(typeof E!="string")throw Error("Invalid query argument. Expected string, instead got "+typeof E);let _=KI(Object.assign(Object.assign({},fI),I));return new cI(eI(R),_).format(E)};export{YT as bigquery,fT as db2,qT as db2i,NR as duckdb,bI as formatDialect,tR as hive,FR as mariadb,hR as mysql,AA as n1ql,PA as plsql,BA as postgresql,uA as redshift,bS as singlestoredb,kS as snowflake,$A as spark,eS as sql,TS as sqlite,vR as tidb,WS as transactsql,iS as trino}; diff --git a/docs/assets/esm-D2_Kx6xF.js b/docs/assets/esm-D2_Kx6xF.js new file mode 100644 index 0000000..12f3b5c --- /dev/null +++ b/docs/assets/esm-D2_Kx6xF.js @@ -0,0 +1 @@ +import{s as J}from"./chunk-LvLJmgfZ.js";import{t as lt}from"./react-BGmjiNul.js";import{t as ht}from"./jsx-runtime-DN_bIXfG.js";import{Bt as A,Dt as ut,E as dt,Et as mt,I as ft,J as e,P as pt,Pt as gt,St as j,V as P,_ as R,a as bt,at as b,bt as V,dt as vt,ft as q,m as St,pt as kt,qt as yt,vt as Ct,w as xt,wt,yt as Et}from"./dist-CAcX026F.js";import{C as Tt,_ as Q,g as X,i as Wt,l as Mt,r as Lt,y as Y}from"./dist-CI6_zMIl.js";import{a as Bt,c as Nt,i as Ht,r as Ot}from"./dist-DKNOF5xd.js";import{t as Dt}from"./extends-B9D0JO9U.js";import{t as Kt}from"./objectWithoutPropertiesLoose-CboCOq4o.js";var Z=function(t){t===void 0&&(t={});var{crosshairCursor:i=!1}=t,a=[];t.closeBracketsKeymap!==!1&&(a=a.concat(Bt)),t.defaultKeymap!==!1&&(a=a.concat(X)),t.searchKeymap!==!1&&(a=a.concat(Wt)),t.historyKeymap!==!1&&(a=a.concat(Y)),t.foldKeymap!==!1&&(a=a.concat(dt)),t.completionKeymap!==!1&&(a=a.concat(Nt)),t.lintKeymap!==!1&&(a=a.concat(Mt));var o=[];return t.lineNumbers!==!1&&o.push(wt()),t.highlightActiveLineGutter!==!1&&o.push(Et()),t.highlightSpecialChars!==!1&&o.push(V()),t.history!==!1&&o.push(Q()),t.foldGutter!==!1&&o.push(xt()),t.drawSelection!==!1&&o.push(q()),t.dropCursor!==!1&&o.push(kt()),t.allowMultipleSelections!==!1&&o.push(A.allowMultipleSelections.of(!0)),t.indentOnInput!==!1&&o.push(pt()),t.syntaxHighlighting!==!1&&o.push(P(R,{fallback:!0})),t.bracketMatching!==!1&&o.push(St()),t.closeBrackets!==!1&&o.push(Ht()),t.autocompletion!==!1&&o.push(Ot()),t.rectangularSelection!==!1&&o.push(ut()),i!==!1&&o.push(vt()),t.highlightActiveLine!==!1&&o.push(Ct()),t.highlightSelectionMatches!==!1&&o.push(Lt()),t.tabSize&&typeof t.tabSize=="number"&&o.push(ft.of(" ".repeat(t.tabSize))),o.concat([j.of(a.flat())]).filter(Boolean)},zt=function(t){t===void 0&&(t={});var i=[];t.defaultKeymap!==!1&&(i=i.concat(X)),t.historyKeymap!==!1&&(i=i.concat(Y));var a=[];return t.highlightSpecialChars!==!1&&a.push(V()),t.history!==!1&&a.push(Q()),t.drawSelection!==!1&&a.push(q()),t.syntaxHighlighting!==!1&&a.push(P(R,{fallback:!0})),a.concat([j.of(i.flat())]).filter(Boolean)},At="#e5c07b",$="#e06c75",It="#56b6c2",Ft="#ffffff",I="#abb2bf",U="#7d8799",_t="#61afef",jt="#98c379",tt="#d19a66",Pt="#c678dd",Ut="#21252b",et="#2c313a",at="#282c34",G="#353a42",Gt="#3E4451",ot="#528bff",Jt=[b.theme({"&":{color:I,backgroundColor:at},".cm-content":{caretColor:ot},".cm-cursor, .cm-dropCursor":{borderLeftColor:ot},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Gt},".cm-panels":{backgroundColor:Ut,color:I},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:at,color:U,border:"none"},".cm-activeLineGutter":{backgroundColor:et},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:G},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:G,borderBottomColor:G},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:et,color:I}}},{dark:!0}),P(bt.define([{tag:e.keyword,color:Pt},{tag:[e.name,e.deleted,e.character,e.propertyName,e.macroName],color:$},{tag:[e.function(e.variableName),e.labelName],color:_t},{tag:[e.color,e.constant(e.name),e.standard(e.name)],color:tt},{tag:[e.definition(e.name),e.separator],color:I},{tag:[e.typeName,e.className,e.number,e.changed,e.annotation,e.modifier,e.self,e.namespace],color:At},{tag:[e.operator,e.operatorKeyword,e.url,e.escape,e.regexp,e.link,e.special(e.string)],color:It},{tag:[e.meta,e.comment],color:U},{tag:e.strong,fontWeight:"bold"},{tag:e.emphasis,fontStyle:"italic"},{tag:e.strikethrough,textDecoration:"line-through"},{tag:e.link,color:U,textDecoration:"underline"},{tag:e.heading,fontWeight:"bold",color:$},{tag:[e.atom,e.bool,e.special(e.variableName)],color:tt},{tag:[e.processingInstruction,e.string,e.inserted],color:jt},{tag:e.invalid,color:Ft}]))],Rt=b.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),it=function(t){t===void 0&&(t={});var{indentWithTab:i=!0,editable:a=!0,readOnly:o=!1,theme:f="light",placeholder:p="",basicSetup:l=!0}=t,n=[];switch(i&&n.unshift(j.of([Tt])),l&&(typeof l=="boolean"?n.unshift(Z()):n.unshift(Z(l))),p&&n.unshift(mt(p)),f){case"light":n.push(Rt);break;case"dark":n.push(Jt);break;case"none":break;default:n.push(f);break}return a===!1&&n.push(b.editable.of(!1)),o&&n.push(A.readOnly.of(!0)),[...n]},Vt=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(i=>t.state.sliceDoc(i.from,i.to)),selectedText:t.state.selection.ranges.some(i=>!i.empty)}),qt=class{constructor(t,i){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=i,this.timeoutMS=i,this.callbacks.push(t)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var t=this.callbacks.slice();this.callbacks.length=0,t.forEach(i=>{try{i()}catch(a){console.error("TimeoutLatch callback error:",a)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}},rt=class{constructor(){this.interval=null,this.latches=new Set}add(t){this.latches.add(t),this.start()}remove(t){this.latches.delete(t),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(t=>{t.tick(),t.isDone&&this.remove(t)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}},nt=null,Qt=()=>typeof window>"u"?new rt:(nt||(nt=new rt),nt),s=J(lt()),st=gt.define(),Xt=200,Yt=[];function Zt(t){var{value:i,selection:a,onChange:o,onStatistics:f,onCreateEditor:p,onUpdate:l,extensions:n=Yt,autoFocus:w,theme:E="light",height:T=null,minHeight:v=null,maxHeight:W=null,width:M=null,minWidth:L=null,maxWidth:B=null,placeholder:N="",editable:H=!0,readOnly:O=!1,indentWithTab:D=!0,basicSetup:K=!0,root:F,initialState:C}=t,[S,z]=(0,s.useState)(),[r,d]=(0,s.useState)(),[k,y]=(0,s.useState)(),c=(0,s.useState)(()=>({current:null}))[0],g=(0,s.useState)(()=>({current:null}))[0],_=b.theme({"&":{height:T,minHeight:v,maxHeight:W,width:M,minWidth:L,maxWidth:B},"& .cm-scroller":{height:"100% !important"}}),m=[b.updateListener.of(h=>{h.docChanged&&typeof o=="function"&&!h.transactions.some(u=>u.annotation(st))&&(c.current?c.current.reset():(c.current=new qt(()=>{if(g.current){var u=g.current;g.current=null,u()}c.current=null},Xt),Qt().add(c.current)),o(h.state.doc.toString(),h)),f&&f(Vt(h))}),_,...it({theme:E,editable:H,readOnly:O,placeholder:N,indentWithTab:D,basicSetup:K})];return l&&typeof l=="function"&&m.push(b.updateListener.of(l)),m=m.concat(n),(0,s.useLayoutEffect)(()=>{if(S&&!k){var h={doc:i,selection:a,extensions:m},u=C?A.fromJSON(C.json,h,C.fields):A.create(h);if(y(u),!r){var x=new b({state:u,parent:S,root:F});d(x),p&&p(x,u)}}return()=>{r&&(y(void 0),d(void 0))}},[S,k]),(0,s.useEffect)(()=>{t.container&&z(t.container)},[t.container]),(0,s.useEffect)(()=>()=>{r&&(r.destroy(),d(void 0)),c.current&&(c.current=(c.current.cancel(),null))},[r]),(0,s.useEffect)(()=>{w&&r&&r.focus()},[w,r]),(0,s.useEffect)(()=>{r&&r.dispatch({effects:yt.reconfigure.of(m)})},[E,n,T,v,W,M,L,B,N,H,O,D,K,o,l]),(0,s.useEffect)(()=>{if(i!==void 0){var h=r?r.state.doc.toString():"";if(r&&i!==h){var u=c.current&&!c.current.isDone,x=()=>{r&&i!==r.state.doc.toString()&&r.dispatch({changes:{from:0,to:r.state.doc.toString().length,insert:i||""},annotations:[st.of(!0)]})};u?g.current=x:x()}}},[i,r]),{state:k,setState:y,view:r,setView:d,container:S,setContainer:z}}var $t=J(ht()),te=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],ct=(0,s.forwardRef)((t,i)=>{var{className:a,value:o="",selection:f,extensions:p=[],onChange:l,onStatistics:n,onCreateEditor:w,onUpdate:E,autoFocus:T,theme:v="light",height:W,minHeight:M,maxHeight:L,width:B,minWidth:N,maxWidth:H,basicSetup:O,placeholder:D,indentWithTab:K,editable:F,readOnly:C,root:S,initialState:z}=t,r=Kt(t,te),d=(0,s.useRef)(null),{state:k,view:y,container:c,setContainer:g}=Zt({root:S,value:o,autoFocus:T,theme:v,height:W,minHeight:M,maxHeight:L,width:B,minWidth:N,maxWidth:H,basicSetup:O,placeholder:D,indentWithTab:K,editable:F,readOnly:C,selection:f,onChange:l,onStatistics:n,onCreateEditor:w,onUpdate:E,extensions:p,initialState:z});(0,s.useImperativeHandle)(i,()=>({editor:d.current,state:k,view:y}),[d,c,k,y]);var _=(0,s.useCallback)(m=>{d.current=m,g(m)},[g]);if(typeof o!="string")throw Error("value must be typeof string but got "+typeof o);return(0,$t.jsx)("div",Dt({ref:_,className:(typeof v=="string"?"cm-theme-"+v:"cm-theme")+(a?" "+a:"")},r))});ct.displayName="CodeMirror";var ee=ct;export{it as n,zt as r,ee as t}; diff --git a/docs/assets/everforest-dark-SDocAIJl.js b/docs/assets/everforest-dark-SDocAIJl.js new file mode 100644 index 0000000..83bb447 --- /dev/null +++ b/docs/assets/everforest-dark-SDocAIJl.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#a7c080d0","activityBar.activeFocusBorder":"#a7c080","activityBar.background":"#2d353b","activityBar.border":"#2d353b","activityBar.dropBackground":"#2d353b","activityBar.foreground":"#d3c6aa","activityBar.inactiveForeground":"#859289","activityBarBadge.background":"#a7c080","activityBarBadge.foreground":"#2d353b","badge.background":"#a7c080","badge.foreground":"#2d353b","breadcrumb.activeSelectionForeground":"#d3c6aa","breadcrumb.focusForeground":"#d3c6aa","breadcrumb.foreground":"#859289","button.background":"#a7c080","button.foreground":"#2d353b","button.hoverBackground":"#a7c080d0","button.secondaryBackground":"#3d484d","button.secondaryForeground":"#d3c6aa","button.secondaryHoverBackground":"#475258","charts.blue":"#7fbbb3","charts.foreground":"#d3c6aa","charts.green":"#a7c080","charts.orange":"#e69875","charts.purple":"#d699b6","charts.red":"#e67e80","charts.yellow":"#dbbc7f","checkbox.background":"#2d353b","checkbox.border":"#4f585e","checkbox.foreground":"#e69875","debugConsole.errorForeground":"#e67e80","debugConsole.infoForeground":"#a7c080","debugConsole.sourceForeground":"#d699b6","debugConsole.warningForeground":"#dbbc7f","debugConsoleInputIcon.foreground":"#83c092","debugIcon.breakpointCurrentStackframeForeground":"#7fbbb3","debugIcon.breakpointDisabledForeground":"#da6362","debugIcon.breakpointForeground":"#e67e80","debugIcon.breakpointStackframeForeground":"#e67e80","debugIcon.breakpointUnverifiedForeground":"#9aa79d","debugIcon.continueForeground":"#7fbbb3","debugIcon.disconnectForeground":"#d699b6","debugIcon.pauseForeground":"#dbbc7f","debugIcon.restartForeground":"#83c092","debugIcon.startForeground":"#83c092","debugIcon.stepBackForeground":"#7fbbb3","debugIcon.stepIntoForeground":"#7fbbb3","debugIcon.stepOutForeground":"#7fbbb3","debugIcon.stepOverForeground":"#7fbbb3","debugIcon.stopForeground":"#e67e80","debugTokenExpression.boolean":"#d699b6","debugTokenExpression.error":"#e67e80","debugTokenExpression.name":"#7fbbb3","debugTokenExpression.number":"#d699b6","debugTokenExpression.string":"#dbbc7f","debugTokenExpression.value":"#a7c080","debugToolBar.background":"#2d353b","descriptionForeground":"#859289","diffEditor.diagonalFill":"#4f585e","diffEditor.insertedTextBackground":"#569d7930","diffEditor.removedTextBackground":"#da636230","dropdown.background":"#2d353b","dropdown.border":"#4f585e","dropdown.foreground":"#9aa79d","editor.background":"#2d353b","editor.findMatchBackground":"#d77f4840","editor.findMatchHighlightBackground":"#899c4040","editor.findRangeHighlightBackground":"#47525860","editor.foldBackground":"#4f585e80","editor.foreground":"#d3c6aa","editor.hoverHighlightBackground":"#475258b0","editor.inactiveSelectionBackground":"#47525860","editor.lineHighlightBackground":"#3d484d90","editor.lineHighlightBorder":"#4f585e00","editor.rangeHighlightBackground":"#3d484d80","editor.selectionBackground":"#475258c0","editor.selectionHighlightBackground":"#47525860","editor.snippetFinalTabstopHighlightBackground":"#899c4040","editor.snippetFinalTabstopHighlightBorder":"#2d353b","editor.snippetTabstopHighlightBackground":"#3d484d","editor.symbolHighlightBackground":"#5a93a240","editor.wordHighlightBackground":"#47525858","editor.wordHighlightStrongBackground":"#475258b0","editorBracketHighlight.foreground1":"#e67e80","editorBracketHighlight.foreground2":"#dbbc7f","editorBracketHighlight.foreground3":"#a7c080","editorBracketHighlight.foreground4":"#7fbbb3","editorBracketHighlight.foreground5":"#e69875","editorBracketHighlight.foreground6":"#d699b6","editorBracketHighlight.unexpectedBracket.foreground":"#859289","editorBracketMatch.background":"#4f585e","editorBracketMatch.border":"#2d353b00","editorCodeLens.foreground":"#7f897da0","editorCursor.foreground":"#d3c6aa","editorError.background":"#da636200","editorError.foreground":"#da6362","editorGhostText.background":"#2d353b00","editorGhostText.foreground":"#7f897da0","editorGroup.border":"#21272b","editorGroup.dropBackground":"#4f585e60","editorGroupHeader.noTabsBackground":"#2d353b","editorGroupHeader.tabsBackground":"#2d353b","editorGutter.addedBackground":"#899c40a0","editorGutter.background":"#2d353b00","editorGutter.commentRangeForeground":"#7f897d","editorGutter.deletedBackground":"#da6362a0","editorGutter.modifiedBackground":"#5a93a2a0","editorHint.foreground":"#b87b9d","editorHoverWidget.background":"#343f44","editorHoverWidget.border":"#475258","editorIndentGuide.activeBackground":"#9aa79d50","editorIndentGuide.background":"#9aa79d20","editorInfo.background":"#5a93a200","editorInfo.foreground":"#5a93a2","editorInlayHint.background":"#2d353b00","editorInlayHint.foreground":"#7f897da0","editorInlayHint.parameterBackground":"#2d353b00","editorInlayHint.parameterForeground":"#7f897da0","editorInlayHint.typeBackground":"#2d353b00","editorInlayHint.typeForeground":"#7f897da0","editorLightBulb.foreground":"#dbbc7f","editorLightBulbAutoFix.foreground":"#83c092","editorLineNumber.activeForeground":"#9aa79de0","editorLineNumber.foreground":"#7f897da0","editorLink.activeForeground":"#a7c080","editorMarkerNavigation.background":"#343f44","editorMarkerNavigationError.background":"#da636280","editorMarkerNavigationInfo.background":"#5a93a280","editorMarkerNavigationWarning.background":"#bf983d80","editorOverviewRuler.addedForeground":"#899c40a0","editorOverviewRuler.border":"#2d353b00","editorOverviewRuler.commonContentForeground":"#859289","editorOverviewRuler.currentContentForeground":"#5a93a2","editorOverviewRuler.deletedForeground":"#da6362a0","editorOverviewRuler.errorForeground":"#e67e80","editorOverviewRuler.findMatchForeground":"#569d79","editorOverviewRuler.incomingContentForeground":"#569d79","editorOverviewRuler.infoForeground":"#d699b6","editorOverviewRuler.modifiedForeground":"#5a93a2a0","editorOverviewRuler.rangeHighlightForeground":"#569d79","editorOverviewRuler.selectionHighlightForeground":"#569d79","editorOverviewRuler.warningForeground":"#dbbc7f","editorOverviewRuler.wordHighlightForeground":"#4f585e","editorOverviewRuler.wordHighlightStrongForeground":"#4f585e","editorRuler.foreground":"#475258a0","editorSuggestWidget.background":"#3d484d","editorSuggestWidget.border":"#3d484d","editorSuggestWidget.foreground":"#d3c6aa","editorSuggestWidget.highlightForeground":"#a7c080","editorSuggestWidget.selectedBackground":"#475258","editorUnnecessaryCode.border":"#2d353b","editorUnnecessaryCode.opacity":"#00000080","editorWarning.background":"#bf983d00","editorWarning.foreground":"#bf983d","editorWhitespace.foreground":"#475258","editorWidget.background":"#2d353b","editorWidget.border":"#4f585e","editorWidget.foreground":"#d3c6aa","errorForeground":"#e67e80","extensionBadge.remoteBackground":"#a7c080","extensionBadge.remoteForeground":"#2d353b","extensionButton.prominentBackground":"#a7c080","extensionButton.prominentForeground":"#2d353b","extensionButton.prominentHoverBackground":"#a7c080d0","extensionIcon.preReleaseForeground":"#e69875","extensionIcon.starForeground":"#83c092","extensionIcon.verifiedForeground":"#a7c080","focusBorder":"#2d353b00","foreground":"#9aa79d","gitDecoration.addedResourceForeground":"#a7c080a0","gitDecoration.conflictingResourceForeground":"#d699b6a0","gitDecoration.deletedResourceForeground":"#e67e80a0","gitDecoration.ignoredResourceForeground":"#4f585e","gitDecoration.modifiedResourceForeground":"#7fbbb3a0","gitDecoration.stageDeletedResourceForeground":"#83c092a0","gitDecoration.stageModifiedResourceForeground":"#83c092a0","gitDecoration.submoduleResourceForeground":"#e69875a0","gitDecoration.untrackedResourceForeground":"#dbbc7fa0","gitlens.closedPullRequestIconColor":"#e67e80","gitlens.decorations.addedForegroundColor":"#a7c080","gitlens.decorations.branchAheadForegroundColor":"#83c092","gitlens.decorations.branchBehindForegroundColor":"#e69875","gitlens.decorations.branchDivergedForegroundColor":"#dbbc7f","gitlens.decorations.branchMissingUpstreamForegroundColor":"#e67e80","gitlens.decorations.branchUnpublishedForegroundColor":"#7fbbb3","gitlens.decorations.branchUpToDateForegroundColor":"#d3c6aa","gitlens.decorations.copiedForegroundColor":"#d699b6","gitlens.decorations.deletedForegroundColor":"#e67e80","gitlens.decorations.ignoredForegroundColor":"#9aa79d","gitlens.decorations.modifiedForegroundColor":"#7fbbb3","gitlens.decorations.renamedForegroundColor":"#d699b6","gitlens.decorations.untrackedForegroundColor":"#dbbc7f","gitlens.gutterBackgroundColor":"#2d353b","gitlens.gutterForegroundColor":"#d3c6aa","gitlens.gutterUncommittedForegroundColor":"#7fbbb3","gitlens.lineHighlightBackgroundColor":"#343f44","gitlens.lineHighlightOverviewRulerColor":"#a7c080","gitlens.mergedPullRequestIconColor":"#d699b6","gitlens.openPullRequestIconColor":"#83c092","gitlens.trailingLineForegroundColor":"#859289","gitlens.unpublishedCommitIconColor":"#dbbc7f","gitlens.unpulledChangesIconColor":"#e69875","gitlens.unpushlishedChangesIconColor":"#7fbbb3","icon.foreground":"#83c092","imagePreview.border":"#2d353b","input.background":"#2d353b00","input.border":"#4f585e","input.foreground":"#d3c6aa","input.placeholderForeground":"#7f897d","inputOption.activeBorder":"#83c092","inputValidation.errorBackground":"#da6362","inputValidation.errorBorder":"#e67e80","inputValidation.errorForeground":"#d3c6aa","inputValidation.infoBackground":"#5a93a2","inputValidation.infoBorder":"#7fbbb3","inputValidation.infoForeground":"#d3c6aa","inputValidation.warningBackground":"#bf983d","inputValidation.warningBorder":"#dbbc7f","inputValidation.warningForeground":"#d3c6aa","issues.closed":"#e67e80","issues.open":"#83c092","keybindingLabel.background":"#2d353b00","keybindingLabel.border":"#272e33","keybindingLabel.bottomBorder":"#21272b","keybindingLabel.foreground":"#d3c6aa","keybindingTable.headerBackground":"#3d484d","keybindingTable.rowsBackground":"#343f44","list.activeSelectionBackground":"#47525880","list.activeSelectionForeground":"#d3c6aa","list.dropBackground":"#343f4480","list.errorForeground":"#e67e80","list.focusBackground":"#47525880","list.focusForeground":"#d3c6aa","list.highlightForeground":"#a7c080","list.hoverBackground":"#2d353b00","list.hoverForeground":"#d3c6aa","list.inactiveFocusBackground":"#47525860","list.inactiveSelectionBackground":"#47525880","list.inactiveSelectionForeground":"#9aa79d","list.invalidItemForeground":"#da6362","list.warningForeground":"#dbbc7f","menu.background":"#2d353b","menu.foreground":"#9aa79d","menu.selectionBackground":"#343f44","menu.selectionForeground":"#d3c6aa","menubar.selectionBackground":"#2d353b","menubar.selectionBorder":"#2d353b","merge.border":"#2d353b00","merge.currentContentBackground":"#5a93a240","merge.currentHeaderBackground":"#5a93a280","merge.incomingContentBackground":"#569d7940","merge.incomingHeaderBackground":"#569d7980","minimap.errorHighlight":"#da636280","minimap.findMatchHighlight":"#569d7960","minimap.selectionHighlight":"#4f585ef0","minimap.warningHighlight":"#bf983d80","minimapGutter.addedBackground":"#899c40a0","minimapGutter.deletedBackground":"#da6362a0","minimapGutter.modifiedBackground":"#5a93a2a0","notebook.cellBorderColor":"#4f585e","notebook.cellHoverBackground":"#2d353b","notebook.cellStatusBarItemHoverBackground":"#343f44","notebook.cellToolbarSeparator":"#4f585e","notebook.focusedCellBackground":"#2d353b","notebook.focusedCellBorder":"#4f585e","notebook.focusedEditorBorder":"#4f585e","notebook.focusedRowBorder":"#4f585e","notebook.inactiveFocusedCellBorder":"#4f585e","notebook.outputContainerBackgroundColor":"#272e33","notebook.selectedCellBorder":"#4f585e","notebookStatusErrorIcon.foreground":"#e67e80","notebookStatusRunningIcon.foreground":"#7fbbb3","notebookStatusSuccessIcon.foreground":"#a7c080","notificationCenterHeader.background":"#3d484d","notificationCenterHeader.foreground":"#d3c6aa","notificationLink.foreground":"#a7c080","notifications.background":"#2d353b","notifications.foreground":"#d3c6aa","notificationsErrorIcon.foreground":"#e67e80","notificationsInfoIcon.foreground":"#7fbbb3","notificationsWarningIcon.foreground":"#dbbc7f","panel.background":"#2d353b","panel.border":"#2d353b","panelInput.border":"#4f585e","panelSection.border":"#21272b","panelSectionHeader.background":"#2d353b","panelTitle.activeBorder":"#a7c080d0","panelTitle.activeForeground":"#d3c6aa","panelTitle.inactiveForeground":"#859289","peekView.border":"#475258","peekViewEditor.background":"#343f44","peekViewEditor.matchHighlightBackground":"#bf983d50","peekViewEditorGutter.background":"#343f44","peekViewResult.background":"#343f44","peekViewResult.fileForeground":"#d3c6aa","peekViewResult.lineForeground":"#9aa79d","peekViewResult.matchHighlightBackground":"#bf983d50","peekViewResult.selectionBackground":"#569d7950","peekViewResult.selectionForeground":"#d3c6aa","peekViewTitle.background":"#475258","peekViewTitleDescription.foreground":"#d3c6aa","peekViewTitleLabel.foreground":"#a7c080","pickerGroup.border":"#a7c0801a","pickerGroup.foreground":"#d3c6aa","ports.iconRunningProcessForeground":"#e69875","problemsErrorIcon.foreground":"#e67e80","problemsInfoIcon.foreground":"#7fbbb3","problemsWarningIcon.foreground":"#dbbc7f","progressBar.background":"#a7c080","quickInputTitle.background":"#343f44","rust_analyzer.inlayHints.background":"#2d353b00","rust_analyzer.inlayHints.foreground":"#7f897da0","rust_analyzer.syntaxTreeBorder":"#e67e80","sash.hoverBorder":"#475258","scrollbar.shadow":"#00000070","scrollbarSlider.activeBackground":"#9aa79d","scrollbarSlider.background":"#4f585e80","scrollbarSlider.hoverBackground":"#4f585e","selection.background":"#475258e0","settings.checkboxBackground":"#2d353b","settings.checkboxBorder":"#4f585e","settings.checkboxForeground":"#e69875","settings.dropdownBackground":"#2d353b","settings.dropdownBorder":"#4f585e","settings.dropdownForeground":"#83c092","settings.focusedRowBackground":"#343f44","settings.headerForeground":"#9aa79d","settings.modifiedItemIndicator":"#7f897d","settings.numberInputBackground":"#2d353b","settings.numberInputBorder":"#4f585e","settings.numberInputForeground":"#d699b6","settings.rowHoverBackground":"#343f44","settings.textInputBackground":"#2d353b","settings.textInputBorder":"#4f585e","settings.textInputForeground":"#7fbbb3","sideBar.background":"#2d353b","sideBar.foreground":"#859289","sideBarSectionHeader.background":"#2d353b00","sideBarSectionHeader.foreground":"#9aa79d","sideBarTitle.foreground":"#9aa79d","statusBar.background":"#2d353b","statusBar.border":"#2d353b","statusBar.debuggingBackground":"#2d353b","statusBar.debuggingForeground":"#e69875","statusBar.foreground":"#9aa79d","statusBar.noFolderBackground":"#2d353b","statusBar.noFolderBorder":"#2d353b","statusBar.noFolderForeground":"#9aa79d","statusBarItem.activeBackground":"#47525870","statusBarItem.errorBackground":"#2d353b","statusBarItem.errorForeground":"#e67e80","statusBarItem.hoverBackground":"#475258a0","statusBarItem.prominentBackground":"#2d353b","statusBarItem.prominentForeground":"#d3c6aa","statusBarItem.prominentHoverBackground":"#475258a0","statusBarItem.remoteBackground":"#2d353b","statusBarItem.remoteForeground":"#9aa79d","statusBarItem.warningBackground":"#2d353b","statusBarItem.warningForeground":"#dbbc7f","symbolIcon.arrayForeground":"#7fbbb3","symbolIcon.booleanForeground":"#d699b6","symbolIcon.classForeground":"#dbbc7f","symbolIcon.colorForeground":"#d3c6aa","symbolIcon.constantForeground":"#83c092","symbolIcon.constructorForeground":"#d699b6","symbolIcon.enumeratorForeground":"#d699b6","symbolIcon.enumeratorMemberForeground":"#83c092","symbolIcon.eventForeground":"#dbbc7f","symbolIcon.fieldForeground":"#d3c6aa","symbolIcon.fileForeground":"#d3c6aa","symbolIcon.folderForeground":"#d3c6aa","symbolIcon.functionForeground":"#a7c080","symbolIcon.interfaceForeground":"#dbbc7f","symbolIcon.keyForeground":"#a7c080","symbolIcon.keywordForeground":"#e67e80","symbolIcon.methodForeground":"#a7c080","symbolIcon.moduleForeground":"#d699b6","symbolIcon.namespaceForeground":"#d699b6","symbolIcon.nullForeground":"#83c092","symbolIcon.numberForeground":"#d699b6","symbolIcon.objectForeground":"#d699b6","symbolIcon.operatorForeground":"#e69875","symbolIcon.packageForeground":"#d699b6","symbolIcon.propertyForeground":"#83c092","symbolIcon.referenceForeground":"#7fbbb3","symbolIcon.snippetForeground":"#d3c6aa","symbolIcon.stringForeground":"#a7c080","symbolIcon.structForeground":"#dbbc7f","symbolIcon.textForeground":"#d3c6aa","symbolIcon.typeParameterForeground":"#83c092","symbolIcon.unitForeground":"#d3c6aa","symbolIcon.variableForeground":"#7fbbb3","tab.activeBackground":"#2d353b","tab.activeBorder":"#a7c080d0","tab.activeForeground":"#d3c6aa","tab.border":"#2d353b","tab.hoverBackground":"#2d353b","tab.hoverForeground":"#d3c6aa","tab.inactiveBackground":"#2d353b","tab.inactiveForeground":"#7f897d","tab.lastPinnedBorder":"#a7c080d0","tab.unfocusedActiveBorder":"#859289","tab.unfocusedActiveForeground":"#9aa79d","tab.unfocusedHoverForeground":"#d3c6aa","tab.unfocusedInactiveForeground":"#7f897d","terminal.ansiBlack":"#343f44","terminal.ansiBlue":"#7fbbb3","terminal.ansiBrightBlack":"#859289","terminal.ansiBrightBlue":"#7fbbb3","terminal.ansiBrightCyan":"#83c092","terminal.ansiBrightGreen":"#a7c080","terminal.ansiBrightMagenta":"#d699b6","terminal.ansiBrightRed":"#e67e80","terminal.ansiBrightWhite":"#d3c6aa","terminal.ansiBrightYellow":"#dbbc7f","terminal.ansiCyan":"#83c092","terminal.ansiGreen":"#a7c080","terminal.ansiMagenta":"#d699b6","terminal.ansiRed":"#e67e80","terminal.ansiWhite":"#d3c6aa","terminal.ansiYellow":"#dbbc7f","terminal.foreground":"#d3c6aa","terminalCursor.foreground":"#d3c6aa","testing.iconErrored":"#e67e80","testing.iconFailed":"#e67e80","testing.iconPassed":"#83c092","testing.iconQueued":"#7fbbb3","testing.iconSkipped":"#d699b6","testing.iconUnset":"#dbbc7f","testing.runAction":"#83c092","textBlockQuote.background":"#272e33","textBlockQuote.border":"#475258","textCodeBlock.background":"#272e33","textLink.activeForeground":"#a7c080c0","textLink.foreground":"#a7c080","textPreformat.foreground":"#dbbc7f","titleBar.activeBackground":"#2d353b","titleBar.activeForeground":"#9aa79d","titleBar.border":"#2d353b","titleBar.inactiveBackground":"#2d353b","titleBar.inactiveForeground":"#7f897d","toolbar.hoverBackground":"#343f44","tree.indentGuidesStroke":"#7f897d","walkThrough.embeddedEditorBackground":"#272e33","welcomePage.buttonBackground":"#343f44","welcomePage.buttonHoverBackground":"#343f44a0","welcomePage.progress.foreground":"#a7c080","welcomePage.tileHoverBackground":"#343f44","widget.shadow":"#00000070"},"displayName":"Everforest Dark","name":"everforest-dark","semanticHighlighting":true,"semanticTokenColors":{"class:python":"#83c092","class:typescript":"#83c092","class:typescriptreact":"#83c092","enum:typescript":"#d699b6","enum:typescriptreact":"#d699b6","enumMember:typescript":"#7fbbb3","enumMember:typescriptreact":"#7fbbb3","interface:typescript":"#83c092","interface:typescriptreact":"#83c092","intrinsic:python":"#d699b6","macro:rust":"#83c092","memberOperatorOverload":"#e69875","module:python":"#7fbbb3","namespace:rust":"#d699b6","namespace:typescript":"#d699b6","namespace:typescriptreact":"#d699b6","operatorOverload":"#e69875","property.defaultLibrary:javascript":"#d699b6","property.defaultLibrary:javascriptreact":"#d699b6","property.defaultLibrary:typescript":"#d699b6","property.defaultLibrary:typescriptreact":"#d699b6","selfKeyword:rust":"#d699b6","variable.defaultLibrary:javascript":"#d699b6","variable.defaultLibrary:javascriptreact":"#d699b6","variable.defaultLibrary:typescript":"#d699b6","variable.defaultLibrary:typescriptreact":"#d699b6"},"tokenColors":[{"scope":"keyword, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.property, keyword.operator.new, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, storage.type.extends","settings":{"foreground":"#e67e80"}},{"scope":"keyword.other.debugger","settings":{"foreground":"#e67e80"}},{"scope":"storage, modifier, keyword.var, entity.name.tag, keyword.control.case, keyword.control.switch","settings":{"foreground":"#e69875"}},{"scope":"keyword.operator","settings":{"foreground":"#e69875"}},{"scope":"string, punctuation.definition.string.end, punctuation.definition.string.begin, punctuation.definition.string.template.begin, punctuation.definition.string.template.end","settings":{"foreground":"#dbbc7f"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#dbbc7f"}},{"scope":"constant.character.escape, punctuation.quasi.element, punctuation.definition.template-expression, punctuation.section.embedded, storage.type.format, constant.other.placeholder, constant.other.placeholder, variable.interpolation","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.function, support.function, meta.function, meta.function-call, meta.definition.method","settings":{"foreground":"#a7c080"}},{"scope":"keyword.control.at-rule, keyword.control.import, keyword.control.export, storage.type.namespace, punctuation.decorator, keyword.control.directive, keyword.preprocessor, punctuation.definition.preprocessor, punctuation.definition.directive, keyword.other.import, keyword.other.package, entity.name.type.namespace, entity.name.scope-resolution, keyword.other.using, keyword.package, keyword.import, keyword.map","settings":{"foreground":"#83c092"}},{"scope":"storage.type.annotation","settings":{"foreground":"#83c092"}},{"scope":"entity.name.label, constant.other.label","settings":{"foreground":"#83c092"}},{"scope":"support.module, support.node, support.other.module, support.type.object.module, entity.name.type.module, entity.name.type.class.module, keyword.control.module","settings":{"foreground":"#83c092"}},{"scope":"storage.type, support.type, entity.name.type, keyword.type","settings":{"foreground":"#7fbbb3"}},{"scope":"entity.name.type.class, support.class, entity.name.class, entity.other.inherited-class, storage.class","settings":{"foreground":"#7fbbb3"}},{"scope":"constant.numeric","settings":{"foreground":"#d699b6"}},{"scope":"constant.language.boolean","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.function.preprocessor","settings":{"foreground":"#d699b6"}},{"scope":"variable.language.this, variable.language.self, variable.language.super, keyword.other.this, variable.language.special, constant.language.null, constant.language.undefined, constant.language.nan","settings":{"foreground":"#d699b6"}},{"scope":"constant.language, support.constant","settings":{"foreground":"#d699b6"}},{"scope":"variable, support.variable, meta.definition.variable","settings":{"foreground":"#d3c6aa"}},{"scope":"variable.object.property, support.variable.property, variable.other.property, variable.other.object.property, variable.other.enummember, variable.other.member, meta.object-literal.key","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation, meta.brace, meta.delimiter, meta.bracket","settings":{"foreground":"#d3c6aa"}},{"scope":"heading.1.markdown, markup.heading.setext.1.markdown","settings":{"fontStyle":"bold","foreground":"#e67e80"}},{"scope":"heading.2.markdown, markup.heading.setext.2.markdown","settings":{"fontStyle":"bold","foreground":"#e69875"}},{"scope":"heading.3.markdown","settings":{"fontStyle":"bold","foreground":"#dbbc7f"}},{"scope":"heading.4.markdown","settings":{"fontStyle":"bold","foreground":"#a7c080"}},{"scope":"heading.5.markdown","settings":{"fontStyle":"bold","foreground":"#7fbbb3"}},{"scope":"heading.6.markdown","settings":{"fontStyle":"bold","foreground":"#d699b6"}},{"scope":"punctuation.definition.heading.markdown","settings":{"fontStyle":"regular","foreground":"#859289"}},{"scope":"string.other.link.title.markdown, constant.other.reference.link.markdown, string.other.link.description.markdown","settings":{"fontStyle":"regular","foreground":"#d699b6"}},{"scope":"markup.underline.link.image.markdown, markup.underline.link.markdown","settings":{"fontStyle":"underline","foreground":"#a7c080"}},{"scope":"punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.italic.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.metadata.markdown, punctuation.separator.key-value.markdown, punctuation.definition.constant.markdown","settings":{"foreground":"#859289"}},{"scope":"punctuation.definition.bold.markdown","settings":{"fontStyle":"regular","foreground":"#859289"}},{"scope":"meta.separator.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown","settings":{"fontStyle":"bold","foreground":"#859289"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.bold","settings":{"fontStyle":"bold"}},{"scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"fontStyle":"italic bold"}},{"scope":"punctuation.definition.markdown, punctuation.definition.raw.markdown","settings":{"foreground":"#dbbc7f"}},{"scope":"fenced_code.block.language","settings":{"foreground":"#dbbc7f"}},{"scope":"markup.fenced_code.block.markdown, markup.inline.raw.string.markdown","settings":{"foreground":"#a7c080"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e67e80"}},{"scope":"punctuation.definition.heading.restructuredtext","settings":{"fontStyle":"bold","foreground":"#e69875"}},{"scope":"punctuation.definition.field.restructuredtext, punctuation.separator.key-value.restructuredtext, punctuation.definition.directive.restructuredtext, punctuation.definition.constant.restructuredtext, punctuation.definition.italic.restructuredtext, punctuation.definition.table.restructuredtext","settings":{"foreground":"#859289"}},{"scope":"punctuation.definition.bold.restructuredtext","settings":{"fontStyle":"regular","foreground":"#859289"}},{"scope":"entity.name.tag.restructuredtext, punctuation.definition.link.restructuredtext, punctuation.definition.raw.restructuredtext, punctuation.section.raw.restructuredtext","settings":{"foreground":"#83c092"}},{"scope":"constant.other.footnote.link.restructuredtext","settings":{"foreground":"#d699b6"}},{"scope":"support.directive.restructuredtext","settings":{"foreground":"#e67e80"}},{"scope":"entity.name.directive.restructuredtext, markup.raw.restructuredtext, markup.raw.inner.restructuredtext, string.other.link.title.restructuredtext","settings":{"foreground":"#a7c080"}},{"scope":"punctuation.definition.function.latex, punctuation.definition.function.tex, punctuation.definition.keyword.latex, constant.character.newline.tex, punctuation.definition.keyword.tex","settings":{"foreground":"#859289"}},{"scope":"support.function.be.latex","settings":{"foreground":"#e67e80"}},{"scope":"support.function.section.latex, keyword.control.table.cell.latex, keyword.control.table.newline.latex","settings":{"foreground":"#e69875"}},{"scope":"support.class.latex, variable.parameter.latex, variable.parameter.function.latex, variable.parameter.definition.label.latex, constant.other.reference.label.latex","settings":{"foreground":"#dbbc7f"}},{"scope":"keyword.control.preamble.latex","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.separator.namespace.xml","settings":{"foreground":"#859289"}},{"scope":"entity.name.tag.html, entity.name.tag.xml, entity.name.tag.localname.xml","settings":{"foreground":"#e69875"}},{"scope":"entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.double.html, string.quoted.single.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.separator.key-value.html, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml, string.quoted.double.xml, string.quoted.single.xml, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.xml, meta.tag.xml, meta.tag.preprocessor.xml, meta.tag.other.html, meta.tag.block.any.html, meta.tag.inline.any.html","settings":{"foreground":"#a7c080"}},{"scope":"variable.language.documentroot.xml, meta.tag.sgml.doctype.xml","settings":{"foreground":"#d699b6"}},{"scope":"storage.type.proto","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.double.proto.syntax, string.quoted.single.proto.syntax, string.quoted.double.proto, string.quoted.single.proto","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.class.proto, entity.name.class.message.proto","settings":{"foreground":"#83c092"}},{"scope":"punctuation.definition.entity.css, punctuation.separator.key-value.css, punctuation.terminator.rule.css, punctuation.separator.list.comma.css","settings":{"foreground":"#859289"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#e67e80"}},{"scope":"keyword.other.unit","settings":{"foreground":"#e69875"}},{"scope":"entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.single.css, string.quoted.double.css, support.constant.property-value.css, meta.property-value.css, punctuation.definition.string.begin.css, punctuation.definition.string.end.css, constant.numeric.css, support.constant.font-name.css, variable.parameter.keyframe-list.css","settings":{"foreground":"#a7c080"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#83c092"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#7fbbb3"}},{"scope":"entity.name.tag.css, entity.other.keyframe-offset.css, punctuation.definition.keyword.css, keyword.control.at-rule.keyframes.css, meta.selector.css","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.definition.entity.scss, punctuation.separator.key-value.scss, punctuation.terminator.rule.scss, punctuation.separator.list.comma.scss","settings":{"foreground":"#859289"}},{"scope":"keyword.control.at-rule.keyframes.scss","settings":{"foreground":"#e69875"}},{"scope":"punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss","settings":{"foreground":"#dbbc7f"}},{"scope":"punctuation.definition.string.begin.scss, punctuation.definition.string.end.scss, string.quoted.double.scss, string.quoted.single.scss, constant.character.css.sass, meta.property-value.scss","settings":{"foreground":"#a7c080"}},{"scope":"keyword.control.at-rule.include.scss, keyword.control.at-rule.use.scss, keyword.control.at-rule.mixin.scss, keyword.control.at-rule.extend.scss, keyword.control.at-rule.import.scss","settings":{"foreground":"#d699b6"}},{"scope":"meta.function.stylus","settings":{"foreground":"#d3c6aa"}},{"scope":"entity.name.function.stylus","settings":{"foreground":"#dbbc7f"}},{"scope":"string.unquoted.js","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation.accessor.js, punctuation.separator.key-value.js, punctuation.separator.label.js, keyword.operator.accessor.js","settings":{"foreground":"#859289"}},{"scope":"punctuation.definition.block.tag.jsdoc","settings":{"foreground":"#e67e80"}},{"scope":"storage.type.js, storage.type.function.arrow.js","settings":{"foreground":"#e69875"}},{"scope":"JSXNested","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation.definition.tag.jsx, entity.other.attribute-name.jsx, punctuation.definition.tag.begin.js.jsx, punctuation.definition.tag.end.js.jsx, entity.other.attribute-name.js.jsx","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.type.module.ts","settings":{"foreground":"#d3c6aa"}},{"scope":"keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.separator.key-value.ts","settings":{"foreground":"#859289"}},{"scope":"punctuation.definition.tag.directive.ts, entity.other.attribute-name.directive.ts","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.type.ts, entity.name.type.interface.ts, entity.other.inherited-class.ts, entity.name.type.alias.ts, entity.name.type.class.ts, entity.name.type.enum.ts","settings":{"foreground":"#83c092"}},{"scope":"storage.type.ts, storage.type.function.arrow.ts, storage.type.type.ts","settings":{"foreground":"#e69875"}},{"scope":"entity.name.type.module.ts","settings":{"foreground":"#7fbbb3"}},{"scope":"keyword.control.import.ts, keyword.control.export.ts, storage.type.namespace.ts","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.type.module.tsx","settings":{"foreground":"#d3c6aa"}},{"scope":"keyword.operator.type.annotation.tsx, punctuation.accessor.tsx, punctuation.separator.key-value.tsx","settings":{"foreground":"#859289"}},{"scope":"punctuation.definition.tag.directive.tsx, entity.other.attribute-name.directive.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, entity.other.attribute-name.tsx","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.type.tsx, entity.name.type.interface.tsx, entity.other.inherited-class.tsx, entity.name.type.alias.tsx, entity.name.type.class.tsx, entity.name.type.enum.tsx","settings":{"foreground":"#83c092"}},{"scope":"entity.name.type.module.tsx","settings":{"foreground":"#7fbbb3"}},{"scope":"keyword.control.import.tsx, keyword.control.export.tsx, storage.type.namespace.tsx","settings":{"foreground":"#d699b6"}},{"scope":"storage.type.tsx, storage.type.function.arrow.tsx, storage.type.type.tsx, support.class.component.tsx","settings":{"foreground":"#e69875"}},{"scope":"storage.type.function.coffee","settings":{"foreground":"#e69875"}},{"scope":"meta.type-signature.purescript","settings":{"foreground":"#d3c6aa"}},{"scope":"keyword.other.double-colon.purescript, keyword.other.arrow.purescript, keyword.other.big-arrow.purescript","settings":{"foreground":"#e69875"}},{"scope":"entity.name.function.purescript","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.single.purescript, string.quoted.double.purescript, punctuation.definition.string.begin.purescript, punctuation.definition.string.end.purescript, string.quoted.triple.purescript, entity.name.type.purescript","settings":{"foreground":"#a7c080"}},{"scope":"support.other.module.purescript","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.dot.dart","settings":{"foreground":"#859289"}},{"scope":"storage.type.primitive.dart","settings":{"foreground":"#e69875"}},{"scope":"support.class.dart","settings":{"foreground":"#dbbc7f"}},{"scope":"entity.name.function.dart, string.interpolated.single.dart, string.interpolated.double.dart","settings":{"foreground":"#a7c080"}},{"scope":"variable.language.dart","settings":{"foreground":"#7fbbb3"}},{"scope":"keyword.other.import.dart, storage.type.annotation.dart","settings":{"foreground":"#d699b6"}},{"scope":"entity.other.attribute-name.class.pug","settings":{"foreground":"#e67e80"}},{"scope":"storage.type.function.pug","settings":{"foreground":"#e69875"}},{"scope":"entity.other.attribute-name.tag.pug","settings":{"foreground":"#83c092"}},{"scope":"entity.name.tag.pug, storage.type.import.include.pug","settings":{"foreground":"#d699b6"}},{"scope":"meta.function-call.c, storage.modifier.array.bracket.square.c, meta.function.definition.parameters.c","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation.separator.dot-access.c, constant.character.escape.line-continuation.c","settings":{"foreground":"#859289"}},{"scope":"keyword.control.directive.include.c, punctuation.definition.directive.c, keyword.control.directive.pragma.c, keyword.control.directive.line.c, keyword.control.directive.define.c, keyword.control.directive.conditional.c, keyword.control.directive.diagnostic.error.c, keyword.control.directive.undef.c, keyword.control.directive.conditional.ifdef.c, keyword.control.directive.endif.c, keyword.control.directive.conditional.ifndef.c, keyword.control.directive.conditional.if.c, keyword.control.directive.else.c","settings":{"foreground":"#e67e80"}},{"scope":"punctuation.separator.pointer-access.c","settings":{"foreground":"#e69875"}},{"scope":"variable.other.member.c","settings":{"foreground":"#83c092"}},{"scope":"meta.function-call.cpp, storage.modifier.array.bracket.square.cpp, meta.function.definition.parameters.cpp, meta.body.function.definition.cpp","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation.separator.dot-access.cpp, constant.character.escape.line-continuation.cpp","settings":{"foreground":"#859289"}},{"scope":"keyword.control.directive.include.cpp, punctuation.definition.directive.cpp, keyword.control.directive.pragma.cpp, keyword.control.directive.line.cpp, keyword.control.directive.define.cpp, keyword.control.directive.conditional.cpp, keyword.control.directive.diagnostic.error.cpp, keyword.control.directive.undef.cpp, keyword.control.directive.conditional.ifdef.cpp, keyword.control.directive.endif.cpp, keyword.control.directive.conditional.ifndef.cpp, keyword.control.directive.conditional.if.cpp, keyword.control.directive.else.cpp, storage.type.namespace.definition.cpp, keyword.other.using.directive.cpp, storage.type.struct.cpp","settings":{"foreground":"#e67e80"}},{"scope":"punctuation.separator.pointer-access.cpp, punctuation.section.angle-brackets.begin.template.call.cpp, punctuation.section.angle-brackets.end.template.call.cpp","settings":{"foreground":"#e69875"}},{"scope":"variable.other.member.cpp","settings":{"foreground":"#83c092"}},{"scope":"keyword.other.using.cs","settings":{"foreground":"#e67e80"}},{"scope":"keyword.type.cs, constant.character.escape.cs, punctuation.definition.interpolation.begin.cs, punctuation.definition.interpolation.end.cs","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.double.cs, string.quoted.single.cs, punctuation.definition.string.begin.cs, punctuation.definition.string.end.cs","settings":{"foreground":"#a7c080"}},{"scope":"variable.other.object.property.cs","settings":{"foreground":"#83c092"}},{"scope":"entity.name.type.namespace.cs","settings":{"foreground":"#d699b6"}},{"scope":"keyword.symbol.fsharp, constant.language.unit.fsharp","settings":{"foreground":"#d3c6aa"}},{"scope":"keyword.format.specifier.fsharp, entity.name.type.fsharp","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.double.fsharp, string.quoted.single.fsharp, punctuation.definition.string.begin.fsharp, punctuation.definition.string.end.fsharp","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.section.fsharp","settings":{"foreground":"#7fbbb3"}},{"scope":"support.function.attribute.fsharp","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.separator.java, punctuation.separator.period.java","settings":{"foreground":"#859289"}},{"scope":"keyword.other.import.java, keyword.other.package.java","settings":{"foreground":"#e67e80"}},{"scope":"storage.type.function.arrow.java, keyword.control.ternary.java","settings":{"foreground":"#e69875"}},{"scope":"variable.other.property.java","settings":{"foreground":"#83c092"}},{"scope":"variable.language.wildcard.java, storage.modifier.import.java, storage.type.annotation.java, punctuation.definition.annotation.java, storage.modifier.package.java, entity.name.type.module.java","settings":{"foreground":"#d699b6"}},{"scope":"keyword.other.import.kotlin","settings":{"foreground":"#e67e80"}},{"scope":"storage.type.kotlin","settings":{"foreground":"#e69875"}},{"scope":"constant.language.kotlin","settings":{"foreground":"#83c092"}},{"scope":"entity.name.package.kotlin, storage.type.annotation.kotlin","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.package.scala","settings":{"foreground":"#d699b6"}},{"scope":"constant.language.scala","settings":{"foreground":"#7fbbb3"}},{"scope":"entity.name.import.scala","settings":{"foreground":"#83c092"}},{"scope":"string.quoted.double.scala, string.quoted.single.scala, punctuation.definition.string.begin.scala, punctuation.definition.string.end.scala, string.quoted.double.interpolated.scala, string.quoted.single.interpolated.scala, string.quoted.triple.scala","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.class, entity.other.inherited-class.scala","settings":{"foreground":"#dbbc7f"}},{"scope":"keyword.declaration.stable.scala, keyword.other.arrow.scala","settings":{"foreground":"#e69875"}},{"scope":"keyword.other.import.scala","settings":{"foreground":"#e67e80"}},{"scope":"keyword.operator.navigation.groovy, meta.method.body.java, meta.definition.method.groovy, meta.definition.method.signature.java","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation.separator.groovy","settings":{"foreground":"#859289"}},{"scope":"keyword.other.import.groovy, keyword.other.package.groovy, keyword.other.import.static.groovy","settings":{"foreground":"#e67e80"}},{"scope":"storage.type.def.groovy","settings":{"foreground":"#e69875"}},{"scope":"variable.other.interpolated.groovy, meta.method.groovy","settings":{"foreground":"#a7c080"}},{"scope":"storage.modifier.import.groovy, storage.modifier.package.groovy","settings":{"foreground":"#83c092"}},{"scope":"storage.type.annotation.groovy","settings":{"foreground":"#d699b6"}},{"scope":"keyword.type.go","settings":{"foreground":"#e67e80"}},{"scope":"entity.name.package.go","settings":{"foreground":"#83c092"}},{"scope":"keyword.import.go, keyword.package.go","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.type.mod.rust","settings":{"foreground":"#d3c6aa"}},{"scope":"keyword.operator.path.rust, keyword.operator.member-access.rust","settings":{"foreground":"#859289"}},{"scope":"storage.type.rust","settings":{"foreground":"#e69875"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#83c092"}},{"scope":"meta.attribute.rust, variable.language.rust, storage.type.module.rust","settings":{"foreground":"#d699b6"}},{"scope":"meta.function-call.swift, support.function.any-method.swift","settings":{"foreground":"#d3c6aa"}},{"scope":"support.variable.swift","settings":{"foreground":"#83c092"}},{"scope":"keyword.operator.class.php","settings":{"foreground":"#d3c6aa"}},{"scope":"storage.type.trait.php","settings":{"foreground":"#e69875"}},{"scope":"constant.language.php, support.other.namespace.php","settings":{"foreground":"#83c092"}},{"scope":"storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp","settings":{"foreground":"#7fbbb3"}},{"scope":"keyword.control.import.include.php, storage.type.php","settings":{"foreground":"#d699b6"}},{"scope":"meta.function-call.arguments.python","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation.definition.decorator.python, punctuation.separator.period.python","settings":{"foreground":"#859289"}},{"scope":"constant.language.python","settings":{"foreground":"#83c092"}},{"scope":"keyword.control.import.python, keyword.control.import.from.python","settings":{"foreground":"#d699b6"}},{"scope":"constant.language.lua","settings":{"foreground":"#83c092"}},{"scope":"entity.name.class.lua","settings":{"foreground":"#7fbbb3"}},{"scope":"meta.function.method.with-arguments.ruby","settings":{"foreground":"#d3c6aa"}},{"scope":"punctuation.separator.method.ruby","settings":{"foreground":"#859289"}},{"scope":"keyword.control.pseudo-method.ruby, storage.type.variable.ruby","settings":{"foreground":"#e69875"}},{"scope":"keyword.other.special-method.ruby","settings":{"foreground":"#a7c080"}},{"scope":"keyword.control.module.ruby, punctuation.definition.constant.ruby","settings":{"foreground":"#d699b6"}},{"scope":"string.regexp.character-class.ruby,string.regexp.interpolated.ruby,punctuation.definition.character-class.ruby,string.regexp.group.ruby, punctuation.section.regexp.ruby, punctuation.definition.group.ruby","settings":{"foreground":"#dbbc7f"}},{"scope":"variable.other.constant.ruby","settings":{"foreground":"#7fbbb3"}},{"scope":"keyword.other.arrow.haskell, keyword.other.big-arrow.haskell, keyword.other.double-colon.haskell","settings":{"foreground":"#e69875"}},{"scope":"storage.type.haskell","settings":{"foreground":"#dbbc7f"}},{"scope":"constant.other.haskell, string.quoted.double.haskell, string.quoted.single.haskell, punctuation.definition.string.begin.haskell, punctuation.definition.string.end.haskell","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.function.haskell","settings":{"foreground":"#7fbbb3"}},{"scope":"entity.name.namespace, meta.preprocessor.haskell","settings":{"foreground":"#83c092"}},{"scope":"keyword.control.import.julia, keyword.control.export.julia","settings":{"foreground":"#e67e80"}},{"scope":"keyword.storage.modifier.julia","settings":{"foreground":"#e69875"}},{"scope":"constant.language.julia","settings":{"foreground":"#83c092"}},{"scope":"support.function.macro.julia","settings":{"foreground":"#d699b6"}},{"scope":"keyword.other.period.elm","settings":{"foreground":"#d3c6aa"}},{"scope":"storage.type.elm","settings":{"foreground":"#dbbc7f"}},{"scope":"keyword.other.r","settings":{"foreground":"#e69875"}},{"scope":"entity.name.function.r, variable.function.r","settings":{"foreground":"#a7c080"}},{"scope":"constant.language.r","settings":{"foreground":"#83c092"}},{"scope":"entity.namespace.r","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.separator.module-function.erlang, punctuation.section.directive.begin.erlang","settings":{"foreground":"#859289"}},{"scope":"keyword.control.directive.erlang, keyword.control.directive.define.erlang","settings":{"foreground":"#e67e80"}},{"scope":"entity.name.type.class.module.erlang","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.double.erlang, string.quoted.single.erlang, punctuation.definition.string.begin.erlang, punctuation.definition.string.end.erlang","settings":{"foreground":"#a7c080"}},{"scope":"keyword.control.directive.export.erlang, keyword.control.directive.module.erlang, keyword.control.directive.import.erlang, keyword.control.directive.behaviour.erlang","settings":{"foreground":"#d699b6"}},{"scope":"variable.other.readwrite.module.elixir, punctuation.definition.variable.elixir","settings":{"foreground":"#83c092"}},{"scope":"constant.language.elixir","settings":{"foreground":"#7fbbb3"}},{"scope":"keyword.control.module.elixir","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.type.value-signature.ocaml","settings":{"foreground":"#d3c6aa"}},{"scope":"keyword.other.ocaml","settings":{"foreground":"#e69875"}},{"scope":"constant.language.variant.ocaml","settings":{"foreground":"#83c092"}},{"scope":"storage.type.sub.perl, storage.type.declare.routine.perl","settings":{"foreground":"#e67e80"}},{"scope":"meta.function.lisp","settings":{"foreground":"#d3c6aa"}},{"scope":"storage.type.function-type.lisp","settings":{"foreground":"#e67e80"}},{"scope":"keyword.constant.lisp","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.function.lisp","settings":{"foreground":"#83c092"}},{"scope":"constant.keyword.clojure, support.variable.clojure, meta.definition.variable.clojure","settings":{"foreground":"#a7c080"}},{"scope":"entity.global.clojure","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.function.clojure","settings":{"foreground":"#7fbbb3"}},{"scope":"meta.scope.if-block.shell, meta.scope.group.shell","settings":{"foreground":"#d3c6aa"}},{"scope":"support.function.builtin.shell, entity.name.function.shell","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.double.shell, string.quoted.single.shell, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell, string.unquoted.heredoc.shell","settings":{"foreground":"#a7c080"}},{"scope":"keyword.control.heredoc-token.shell, variable.other.normal.shell, punctuation.definition.variable.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell","settings":{"foreground":"#d699b6"}},{"scope":"support.function.builtin.fish","settings":{"foreground":"#e67e80"}},{"scope":"support.function.unix.fish","settings":{"foreground":"#e69875"}},{"scope":"variable.other.normal.fish, punctuation.definition.variable.fish, variable.other.fixed.fish, variable.other.special.fish","settings":{"foreground":"#7fbbb3"}},{"scope":"string.quoted.double.fish, punctuation.definition.string.end.fish, punctuation.definition.string.begin.fish, string.quoted.single.fish","settings":{"foreground":"#a7c080"}},{"scope":"constant.character.escape.single.fish","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.definition.variable.powershell","settings":{"foreground":"#859289"}},{"scope":"entity.name.function.powershell, support.function.attribute.powershell, support.function.powershell","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.single.powershell, string.quoted.double.powershell, punctuation.definition.string.begin.powershell, punctuation.definition.string.end.powershell, string.quoted.double.heredoc.powershell","settings":{"foreground":"#a7c080"}},{"scope":"variable.other.member.powershell","settings":{"foreground":"#83c092"}},{"scope":"string.unquoted.alias.graphql","settings":{"foreground":"#d3c6aa"}},{"scope":"keyword.type.graphql","settings":{"foreground":"#e67e80"}},{"scope":"entity.name.fragment.graphql","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.function.target.makefile","settings":{"foreground":"#e69875"}},{"scope":"variable.other.makefile","settings":{"foreground":"#dbbc7f"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#a7c080"}},{"scope":"string.source.cmake","settings":{"foreground":"#a7c080"}},{"scope":"entity.source.cmake","settings":{"foreground":"#83c092"}},{"scope":"storage.source.cmake","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.definition.map.viml","settings":{"foreground":"#859289"}},{"scope":"storage.type.map.viml","settings":{"foreground":"#e69875"}},{"scope":"constant.character.map.viml, constant.character.map.key.viml","settings":{"foreground":"#a7c080"}},{"scope":"constant.character.map.special.viml","settings":{"foreground":"#7fbbb3"}},{"scope":"constant.language.tmux, constant.numeric.tmux","settings":{"foreground":"#a7c080"}},{"scope":"entity.name.function.package-manager.dockerfile","settings":{"foreground":"#e69875"}},{"scope":"keyword.operator.flag.dockerfile","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.double.dockerfile, string.quoted.single.dockerfile","settings":{"foreground":"#a7c080"}},{"scope":"constant.character.escape.dockerfile","settings":{"foreground":"#83c092"}},{"scope":"entity.name.type.base-image.dockerfile, entity.name.image.dockerfile","settings":{"foreground":"#d699b6"}},{"scope":"punctuation.definition.separator.diff","settings":{"foreground":"#859289"}},{"scope":"markup.deleted.diff, punctuation.definition.deleted.diff","settings":{"foreground":"#e67e80"}},{"scope":"meta.diff.range.context, punctuation.definition.range.diff","settings":{"foreground":"#e69875"}},{"scope":"meta.diff.header.from-file","settings":{"foreground":"#dbbc7f"}},{"scope":"markup.inserted.diff, punctuation.definition.inserted.diff","settings":{"foreground":"#a7c080"}},{"scope":"markup.changed.diff, punctuation.definition.changed.diff","settings":{"foreground":"#7fbbb3"}},{"scope":"punctuation.definition.from-file.diff","settings":{"foreground":"#d699b6"}},{"scope":"entity.name.section.group-title.ini, punctuation.definition.entity.ini","settings":{"foreground":"#e67e80"}},{"scope":"punctuation.separator.key-value.ini","settings":{"foreground":"#e69875"}},{"scope":"string.quoted.double.ini, string.quoted.single.ini, punctuation.definition.string.begin.ini, punctuation.definition.string.end.ini","settings":{"foreground":"#a7c080"}},{"scope":"keyword.other.definition.ini","settings":{"foreground":"#83c092"}},{"scope":"support.function.aggregate.sql","settings":{"foreground":"#dbbc7f"}},{"scope":"string.quoted.single.sql, punctuation.definition.string.end.sql, punctuation.definition.string.begin.sql, string.quoted.double.sql","settings":{"foreground":"#a7c080"}},{"scope":"support.type.graphql","settings":{"foreground":"#dbbc7f"}},{"scope":"variable.parameter.graphql","settings":{"foreground":"#7fbbb3"}},{"scope":"constant.character.enum.graphql","settings":{"foreground":"#83c092"}},{"scope":"punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json","settings":{"foreground":"#859289"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#e69875"}},{"scope":"string.quoted.double.json","settings":{"foreground":"#a7c080"}},{"scope":"punctuation.separator.key-value.mapping.yaml","settings":{"foreground":"#859289"}},{"scope":"string.unquoted.plain.out.yaml, string.quoted.single.yaml, string.quoted.double.yaml, punctuation.definition.string.begin.yaml, punctuation.definition.string.end.yaml, string.unquoted.plain.in.yaml, string.unquoted.block.yaml","settings":{"foreground":"#a7c080"}},{"scope":"punctuation.definition.anchor.yaml, punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#83c092"}},{"scope":"keyword.key.toml","settings":{"foreground":"#e69875"}},{"scope":"string.quoted.single.basic.line.toml, string.quoted.single.literal.line.toml, punctuation.definition.keyValuePair.toml","settings":{"foreground":"#a7c080"}},{"scope":"constant.other.boolean.toml","settings":{"foreground":"#7fbbb3"}},{"scope":"entity.other.attribute-name.table.toml, punctuation.definition.table.toml, entity.other.attribute-name.table.array.toml, punctuation.definition.table.array.toml","settings":{"foreground":"#d699b6"}},{"scope":"comment, string.comment, punctuation.definition.comment","settings":{"fontStyle":"italic","foreground":"#859289"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/everforest-light-J9pIFEgA.js b/docs/assets/everforest-light-J9pIFEgA.js new file mode 100644 index 0000000..961ca59 --- /dev/null +++ b/docs/assets/everforest-light-J9pIFEgA.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#93b259d0","activityBar.activeFocusBorder":"#93b259","activityBar.background":"#fdf6e3","activityBar.border":"#fdf6e3","activityBar.dropBackground":"#fdf6e3","activityBar.foreground":"#5c6a72","activityBar.inactiveForeground":"#939f91","activityBarBadge.background":"#93b259","activityBarBadge.foreground":"#fdf6e3","badge.background":"#93b259","badge.foreground":"#fdf6e3","breadcrumb.activeSelectionForeground":"#5c6a72","breadcrumb.focusForeground":"#5c6a72","breadcrumb.foreground":"#939f91","button.background":"#93b259","button.foreground":"#fdf6e3","button.hoverBackground":"#93b259d0","button.secondaryBackground":"#efebd4","button.secondaryForeground":"#5c6a72","button.secondaryHoverBackground":"#e6e2cc","charts.blue":"#3a94c5","charts.foreground":"#5c6a72","charts.green":"#8da101","charts.orange":"#f57d26","charts.purple":"#df69ba","charts.red":"#f85552","charts.yellow":"#dfa000","checkbox.background":"#fdf6e3","checkbox.border":"#e0dcc7","checkbox.foreground":"#f57d26","debugConsole.errorForeground":"#f85552","debugConsole.infoForeground":"#8da101","debugConsole.sourceForeground":"#df69ba","debugConsole.warningForeground":"#dfa000","debugConsoleInputIcon.foreground":"#35a77c","debugIcon.breakpointCurrentStackframeForeground":"#3a94c5","debugIcon.breakpointDisabledForeground":"#f1706f","debugIcon.breakpointForeground":"#f85552","debugIcon.breakpointStackframeForeground":"#f85552","debugIcon.breakpointUnverifiedForeground":"#879686","debugIcon.continueForeground":"#3a94c5","debugIcon.disconnectForeground":"#df69ba","debugIcon.pauseForeground":"#dfa000","debugIcon.restartForeground":"#35a77c","debugIcon.startForeground":"#35a77c","debugIcon.stepBackForeground":"#3a94c5","debugIcon.stepIntoForeground":"#3a94c5","debugIcon.stepOutForeground":"#3a94c5","debugIcon.stepOverForeground":"#3a94c5","debugIcon.stopForeground":"#f85552","debugTokenExpression.boolean":"#df69ba","debugTokenExpression.error":"#f85552","debugTokenExpression.name":"#3a94c5","debugTokenExpression.number":"#df69ba","debugTokenExpression.string":"#dfa000","debugTokenExpression.value":"#8da101","debugToolBar.background":"#fdf6e3","descriptionForeground":"#939f91","diffEditor.diagonalFill":"#e0dcc7","diffEditor.insertedTextBackground":"#6ec39830","diffEditor.removedTextBackground":"#f1706f30","dropdown.background":"#fdf6e3","dropdown.border":"#e0dcc7","dropdown.foreground":"#879686","editor.background":"#fdf6e3","editor.findMatchBackground":"#f3945940","editor.findMatchHighlightBackground":"#a4bb4a40","editor.findRangeHighlightBackground":"#e6e2cc50","editor.foldBackground":"#e0dcc780","editor.foreground":"#5c6a72","editor.hoverHighlightBackground":"#e6e2cc90","editor.inactiveSelectionBackground":"#e6e2cc50","editor.lineHighlightBackground":"#efebd470","editor.lineHighlightBorder":"#e0dcc700","editor.rangeHighlightBackground":"#efebd480","editor.selectionBackground":"#e6e2cca0","editor.selectionHighlightBackground":"#e6e2cc50","editor.snippetFinalTabstopHighlightBackground":"#a4bb4a40","editor.snippetFinalTabstopHighlightBorder":"#fdf6e3","editor.snippetTabstopHighlightBackground":"#efebd4","editor.symbolHighlightBackground":"#6cb3c640","editor.wordHighlightBackground":"#e6e2cc48","editor.wordHighlightStrongBackground":"#e6e2cc90","editorBracketHighlight.foreground1":"#f85552","editorBracketHighlight.foreground2":"#dfa000","editorBracketHighlight.foreground3":"#8da101","editorBracketHighlight.foreground4":"#3a94c5","editorBracketHighlight.foreground5":"#f57d26","editorBracketHighlight.foreground6":"#df69ba","editorBracketHighlight.unexpectedBracket.foreground":"#939f91","editorBracketMatch.background":"#e0dcc7","editorBracketMatch.border":"#fdf6e300","editorCodeLens.foreground":"#a4ad9ea0","editorCursor.foreground":"#5c6a72","editorError.background":"#f1706f00","editorError.foreground":"#f1706f","editorGhostText.background":"#fdf6e300","editorGhostText.foreground":"#a4ad9ea0","editorGroup.border":"#efebd4","editorGroup.dropBackground":"#e0dcc760","editorGroupHeader.noTabsBackground":"#fdf6e3","editorGroupHeader.tabsBackground":"#fdf6e3","editorGutter.addedBackground":"#a4bb4aa0","editorGutter.background":"#fdf6e300","editorGutter.commentRangeForeground":"#a4ad9e","editorGutter.deletedBackground":"#f1706fa0","editorGutter.modifiedBackground":"#6cb3c6a0","editorHint.foreground":"#e092be","editorHoverWidget.background":"#f4f0d9","editorHoverWidget.border":"#e6e2cc","editorIndentGuide.activeBackground":"#87968650","editorIndentGuide.background":"#87968620","editorInfo.background":"#6cb3c600","editorInfo.foreground":"#6cb3c6","editorInlayHint.background":"#fdf6e300","editorInlayHint.foreground":"#a4ad9ea0","editorInlayHint.parameterBackground":"#fdf6e300","editorInlayHint.parameterForeground":"#a4ad9ea0","editorInlayHint.typeBackground":"#fdf6e300","editorInlayHint.typeForeground":"#a4ad9ea0","editorLightBulb.foreground":"#dfa000","editorLightBulbAutoFix.foreground":"#35a77c","editorLineNumber.activeForeground":"#879686e0","editorLineNumber.foreground":"#a4ad9ea0","editorLink.activeForeground":"#8da101","editorMarkerNavigation.background":"#f4f0d9","editorMarkerNavigationError.background":"#f1706f80","editorMarkerNavigationInfo.background":"#6cb3c680","editorMarkerNavigationWarning.background":"#e4b64980","editorOverviewRuler.addedForeground":"#a4bb4aa0","editorOverviewRuler.border":"#fdf6e300","editorOverviewRuler.commonContentForeground":"#939f91","editorOverviewRuler.currentContentForeground":"#6cb3c6","editorOverviewRuler.deletedForeground":"#f1706fa0","editorOverviewRuler.errorForeground":"#f85552","editorOverviewRuler.findMatchForeground":"#6ec398","editorOverviewRuler.incomingContentForeground":"#6ec398","editorOverviewRuler.infoForeground":"#df69ba","editorOverviewRuler.modifiedForeground":"#6cb3c6a0","editorOverviewRuler.rangeHighlightForeground":"#6ec398","editorOverviewRuler.selectionHighlightForeground":"#6ec398","editorOverviewRuler.warningForeground":"#dfa000","editorOverviewRuler.wordHighlightForeground":"#e0dcc7","editorOverviewRuler.wordHighlightStrongForeground":"#e0dcc7","editorRuler.foreground":"#e6e2cca0","editorSuggestWidget.background":"#efebd4","editorSuggestWidget.border":"#efebd4","editorSuggestWidget.foreground":"#5c6a72","editorSuggestWidget.highlightForeground":"#8da101","editorSuggestWidget.selectedBackground":"#e6e2cc","editorUnnecessaryCode.border":"#fdf6e3","editorUnnecessaryCode.opacity":"#00000080","editorWarning.background":"#e4b64900","editorWarning.foreground":"#e4b649","editorWhitespace.foreground":"#e6e2cc","editorWidget.background":"#fdf6e3","editorWidget.border":"#e0dcc7","editorWidget.foreground":"#5c6a72","errorForeground":"#f85552","extensionBadge.remoteBackground":"#93b259","extensionBadge.remoteForeground":"#fdf6e3","extensionButton.prominentBackground":"#93b259","extensionButton.prominentForeground":"#fdf6e3","extensionButton.prominentHoverBackground":"#93b259d0","extensionIcon.preReleaseForeground":"#f57d26","extensionIcon.starForeground":"#35a77c","extensionIcon.verifiedForeground":"#8da101","focusBorder":"#fdf6e300","foreground":"#879686","gitDecoration.addedResourceForeground":"#8da101a0","gitDecoration.conflictingResourceForeground":"#df69baa0","gitDecoration.deletedResourceForeground":"#f85552a0","gitDecoration.ignoredResourceForeground":"#e0dcc7","gitDecoration.modifiedResourceForeground":"#3a94c5a0","gitDecoration.stageDeletedResourceForeground":"#35a77ca0","gitDecoration.stageModifiedResourceForeground":"#35a77ca0","gitDecoration.submoduleResourceForeground":"#f57d26a0","gitDecoration.untrackedResourceForeground":"#dfa000a0","gitlens.closedPullRequestIconColor":"#f85552","gitlens.decorations.addedForegroundColor":"#8da101","gitlens.decorations.branchAheadForegroundColor":"#35a77c","gitlens.decorations.branchBehindForegroundColor":"#f57d26","gitlens.decorations.branchDivergedForegroundColor":"#dfa000","gitlens.decorations.branchMissingUpstreamForegroundColor":"#f85552","gitlens.decorations.branchUnpublishedForegroundColor":"#3a94c5","gitlens.decorations.branchUpToDateForegroundColor":"#5c6a72","gitlens.decorations.copiedForegroundColor":"#df69ba","gitlens.decorations.deletedForegroundColor":"#f85552","gitlens.decorations.ignoredForegroundColor":"#879686","gitlens.decorations.modifiedForegroundColor":"#3a94c5","gitlens.decorations.renamedForegroundColor":"#df69ba","gitlens.decorations.untrackedForegroundColor":"#dfa000","gitlens.gutterBackgroundColor":"#fdf6e3","gitlens.gutterForegroundColor":"#5c6a72","gitlens.gutterUncommittedForegroundColor":"#3a94c5","gitlens.lineHighlightBackgroundColor":"#f4f0d9","gitlens.lineHighlightOverviewRulerColor":"#93b259","gitlens.mergedPullRequestIconColor":"#df69ba","gitlens.openPullRequestIconColor":"#35a77c","gitlens.trailingLineForegroundColor":"#939f91","gitlens.unpublishedCommitIconColor":"#dfa000","gitlens.unpulledChangesIconColor":"#f57d26","gitlens.unpushlishedChangesIconColor":"#3a94c5","icon.foreground":"#35a77c","imagePreview.border":"#fdf6e3","input.background":"#fdf6e300","input.border":"#e0dcc7","input.foreground":"#5c6a72","input.placeholderForeground":"#a4ad9e","inputOption.activeBorder":"#35a77c","inputValidation.errorBackground":"#f1706f","inputValidation.errorBorder":"#f85552","inputValidation.errorForeground":"#5c6a72","inputValidation.infoBackground":"#6cb3c6","inputValidation.infoBorder":"#3a94c5","inputValidation.infoForeground":"#5c6a72","inputValidation.warningBackground":"#e4b649","inputValidation.warningBorder":"#dfa000","inputValidation.warningForeground":"#5c6a72","issues.closed":"#f85552","issues.open":"#35a77c","keybindingLabel.background":"#fdf6e300","keybindingLabel.border":"#f4f0d9","keybindingLabel.bottomBorder":"#efebd4","keybindingLabel.foreground":"#5c6a72","keybindingTable.headerBackground":"#efebd4","keybindingTable.rowsBackground":"#f4f0d9","list.activeSelectionBackground":"#e6e2cc80","list.activeSelectionForeground":"#5c6a72","list.dropBackground":"#f4f0d980","list.errorForeground":"#f85552","list.focusBackground":"#e6e2cc80","list.focusForeground":"#5c6a72","list.highlightForeground":"#8da101","list.hoverBackground":"#fdf6e300","list.hoverForeground":"#5c6a72","list.inactiveFocusBackground":"#e6e2cc60","list.inactiveSelectionBackground":"#e6e2cc80","list.inactiveSelectionForeground":"#879686","list.invalidItemForeground":"#f1706f","list.warningForeground":"#dfa000","menu.background":"#fdf6e3","menu.foreground":"#879686","menu.selectionBackground":"#f4f0d9","menu.selectionForeground":"#5c6a72","menubar.selectionBackground":"#fdf6e3","menubar.selectionBorder":"#fdf6e3","merge.border":"#fdf6e300","merge.currentContentBackground":"#6cb3c640","merge.currentHeaderBackground":"#6cb3c680","merge.incomingContentBackground":"#6ec39840","merge.incomingHeaderBackground":"#6ec39880","minimap.errorHighlight":"#f1706f80","minimap.findMatchHighlight":"#6ec39860","minimap.selectionHighlight":"#e0dcc7f0","minimap.warningHighlight":"#e4b64980","minimapGutter.addedBackground":"#a4bb4aa0","minimapGutter.deletedBackground":"#f1706fa0","minimapGutter.modifiedBackground":"#6cb3c6a0","notebook.cellBorderColor":"#e0dcc7","notebook.cellHoverBackground":"#fdf6e3","notebook.cellStatusBarItemHoverBackground":"#f4f0d9","notebook.cellToolbarSeparator":"#e0dcc7","notebook.focusedCellBackground":"#fdf6e3","notebook.focusedCellBorder":"#e0dcc7","notebook.focusedEditorBorder":"#e0dcc7","notebook.focusedRowBorder":"#e0dcc7","notebook.inactiveFocusedCellBorder":"#e0dcc7","notebook.outputContainerBackgroundColor":"#f4f0d9","notebook.selectedCellBorder":"#e0dcc7","notebookStatusErrorIcon.foreground":"#f85552","notebookStatusRunningIcon.foreground":"#3a94c5","notebookStatusSuccessIcon.foreground":"#8da101","notificationCenterHeader.background":"#efebd4","notificationCenterHeader.foreground":"#5c6a72","notificationLink.foreground":"#8da101","notifications.background":"#fdf6e3","notifications.foreground":"#5c6a72","notificationsErrorIcon.foreground":"#f85552","notificationsInfoIcon.foreground":"#3a94c5","notificationsWarningIcon.foreground":"#dfa000","panel.background":"#fdf6e3","panel.border":"#fdf6e3","panelInput.border":"#e0dcc7","panelSection.border":"#efebd4","panelSectionHeader.background":"#fdf6e3","panelTitle.activeBorder":"#93b259d0","panelTitle.activeForeground":"#5c6a72","panelTitle.inactiveForeground":"#939f91","peekView.border":"#e6e2cc","peekViewEditor.background":"#f4f0d9","peekViewEditor.matchHighlightBackground":"#e4b64950","peekViewEditorGutter.background":"#f4f0d9","peekViewResult.background":"#f4f0d9","peekViewResult.fileForeground":"#5c6a72","peekViewResult.lineForeground":"#879686","peekViewResult.matchHighlightBackground":"#e4b64950","peekViewResult.selectionBackground":"#6ec39850","peekViewResult.selectionForeground":"#5c6a72","peekViewTitle.background":"#e6e2cc","peekViewTitleDescription.foreground":"#5c6a72","peekViewTitleLabel.foreground":"#8da101","pickerGroup.border":"#93b2591a","pickerGroup.foreground":"#5c6a72","ports.iconRunningProcessForeground":"#f57d26","problemsErrorIcon.foreground":"#f85552","problemsInfoIcon.foreground":"#3a94c5","problemsWarningIcon.foreground":"#dfa000","progressBar.background":"#93b259","quickInputTitle.background":"#f4f0d9","rust_analyzer.inlayHints.background":"#fdf6e300","rust_analyzer.inlayHints.foreground":"#a4ad9ea0","rust_analyzer.syntaxTreeBorder":"#f85552","sash.hoverBorder":"#e6e2cc","scrollbar.shadow":"#3c474d20","scrollbarSlider.activeBackground":"#879686","scrollbarSlider.background":"#e0dcc780","scrollbarSlider.hoverBackground":"#e0dcc7","selection.background":"#e6e2ccc0","settings.checkboxBackground":"#fdf6e3","settings.checkboxBorder":"#e0dcc7","settings.checkboxForeground":"#f57d26","settings.dropdownBackground":"#fdf6e3","settings.dropdownBorder":"#e0dcc7","settings.dropdownForeground":"#35a77c","settings.focusedRowBackground":"#f4f0d9","settings.headerForeground":"#879686","settings.modifiedItemIndicator":"#a4ad9e","settings.numberInputBackground":"#fdf6e3","settings.numberInputBorder":"#e0dcc7","settings.numberInputForeground":"#df69ba","settings.rowHoverBackground":"#f4f0d9","settings.textInputBackground":"#fdf6e3","settings.textInputBorder":"#e0dcc7","settings.textInputForeground":"#3a94c5","sideBar.background":"#fdf6e3","sideBar.foreground":"#939f91","sideBarSectionHeader.background":"#fdf6e300","sideBarSectionHeader.foreground":"#879686","sideBarTitle.foreground":"#879686","statusBar.background":"#fdf6e3","statusBar.border":"#fdf6e3","statusBar.debuggingBackground":"#fdf6e3","statusBar.debuggingForeground":"#f57d26","statusBar.foreground":"#879686","statusBar.noFolderBackground":"#fdf6e3","statusBar.noFolderBorder":"#fdf6e3","statusBar.noFolderForeground":"#879686","statusBarItem.activeBackground":"#e6e2cc70","statusBarItem.errorBackground":"#fdf6e3","statusBarItem.errorForeground":"#f85552","statusBarItem.hoverBackground":"#e6e2cca0","statusBarItem.prominentBackground":"#fdf6e3","statusBarItem.prominentForeground":"#5c6a72","statusBarItem.prominentHoverBackground":"#e6e2cca0","statusBarItem.remoteBackground":"#fdf6e3","statusBarItem.remoteForeground":"#879686","statusBarItem.warningBackground":"#fdf6e3","statusBarItem.warningForeground":"#dfa000","symbolIcon.arrayForeground":"#3a94c5","symbolIcon.booleanForeground":"#df69ba","symbolIcon.classForeground":"#dfa000","symbolIcon.colorForeground":"#5c6a72","symbolIcon.constantForeground":"#35a77c","symbolIcon.constructorForeground":"#df69ba","symbolIcon.enumeratorForeground":"#df69ba","symbolIcon.enumeratorMemberForeground":"#35a77c","symbolIcon.eventForeground":"#dfa000","symbolIcon.fieldForeground":"#5c6a72","symbolIcon.fileForeground":"#5c6a72","symbolIcon.folderForeground":"#5c6a72","symbolIcon.functionForeground":"#8da101","symbolIcon.interfaceForeground":"#dfa000","symbolIcon.keyForeground":"#8da101","symbolIcon.keywordForeground":"#f85552","symbolIcon.methodForeground":"#8da101","symbolIcon.moduleForeground":"#df69ba","symbolIcon.namespaceForeground":"#df69ba","symbolIcon.nullForeground":"#35a77c","symbolIcon.numberForeground":"#df69ba","symbolIcon.objectForeground":"#df69ba","symbolIcon.operatorForeground":"#f57d26","symbolIcon.packageForeground":"#df69ba","symbolIcon.propertyForeground":"#35a77c","symbolIcon.referenceForeground":"#3a94c5","symbolIcon.snippetForeground":"#5c6a72","symbolIcon.stringForeground":"#8da101","symbolIcon.structForeground":"#dfa000","symbolIcon.textForeground":"#5c6a72","symbolIcon.typeParameterForeground":"#35a77c","symbolIcon.unitForeground":"#5c6a72","symbolIcon.variableForeground":"#3a94c5","tab.activeBackground":"#fdf6e3","tab.activeBorder":"#93b259d0","tab.activeForeground":"#5c6a72","tab.border":"#fdf6e3","tab.hoverBackground":"#fdf6e3","tab.hoverForeground":"#5c6a72","tab.inactiveBackground":"#fdf6e3","tab.inactiveForeground":"#a4ad9e","tab.lastPinnedBorder":"#93b259d0","tab.unfocusedActiveBorder":"#939f91","tab.unfocusedActiveForeground":"#879686","tab.unfocusedHoverForeground":"#5c6a72","tab.unfocusedInactiveForeground":"#a4ad9e","terminal.ansiBlack":"#5c6a72","terminal.ansiBlue":"#3a94c5","terminal.ansiBrightBlack":"#5c6a72","terminal.ansiBrightBlue":"#3a94c5","terminal.ansiBrightCyan":"#35a77c","terminal.ansiBrightGreen":"#8da101","terminal.ansiBrightMagenta":"#df69ba","terminal.ansiBrightRed":"#f85552","terminal.ansiBrightWhite":"#f4f0d9","terminal.ansiBrightYellow":"#dfa000","terminal.ansiCyan":"#35a77c","terminal.ansiGreen":"#8da101","terminal.ansiMagenta":"#df69ba","terminal.ansiRed":"#f85552","terminal.ansiWhite":"#939f91","terminal.ansiYellow":"#dfa000","terminal.foreground":"#5c6a72","terminalCursor.foreground":"#5c6a72","testing.iconErrored":"#f85552","testing.iconFailed":"#f85552","testing.iconPassed":"#35a77c","testing.iconQueued":"#3a94c5","testing.iconSkipped":"#df69ba","testing.iconUnset":"#dfa000","testing.runAction":"#35a77c","textBlockQuote.background":"#f4f0d9","textBlockQuote.border":"#e6e2cc","textCodeBlock.background":"#f4f0d9","textLink.activeForeground":"#8da101c0","textLink.foreground":"#8da101","textPreformat.foreground":"#dfa000","titleBar.activeBackground":"#fdf6e3","titleBar.activeForeground":"#879686","titleBar.border":"#fdf6e3","titleBar.inactiveBackground":"#fdf6e3","titleBar.inactiveForeground":"#a4ad9e","toolbar.hoverBackground":"#f4f0d9","tree.indentGuidesStroke":"#a4ad9e","walkThrough.embeddedEditorBackground":"#f4f0d9","welcomePage.buttonBackground":"#f4f0d9","welcomePage.buttonHoverBackground":"#f4f0d9a0","welcomePage.progress.foreground":"#8da101","welcomePage.tileHoverBackground":"#f4f0d9","widget.shadow":"#3c474d20"},"displayName":"Everforest Light","name":"everforest-light","semanticHighlighting":true,"semanticTokenColors":{"class:python":"#35a77c","class:typescript":"#35a77c","class:typescriptreact":"#35a77c","enum:typescript":"#df69ba","enum:typescriptreact":"#df69ba","enumMember:typescript":"#3a94c5","enumMember:typescriptreact":"#3a94c5","interface:typescript":"#35a77c","interface:typescriptreact":"#35a77c","intrinsic:python":"#df69ba","macro:rust":"#35a77c","memberOperatorOverload":"#f57d26","module:python":"#3a94c5","namespace:rust":"#df69ba","namespace:typescript":"#df69ba","namespace:typescriptreact":"#df69ba","operatorOverload":"#f57d26","property.defaultLibrary:javascript":"#df69ba","property.defaultLibrary:javascriptreact":"#df69ba","property.defaultLibrary:typescript":"#df69ba","property.defaultLibrary:typescriptreact":"#df69ba","selfKeyword:rust":"#df69ba","variable.defaultLibrary:javascript":"#df69ba","variable.defaultLibrary:javascriptreact":"#df69ba","variable.defaultLibrary:typescript":"#df69ba","variable.defaultLibrary:typescriptreact":"#df69ba"},"tokenColors":[{"scope":"keyword, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.property, keyword.operator.new, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, storage.type.extends","settings":{"foreground":"#f85552"}},{"scope":"keyword.other.debugger","settings":{"foreground":"#f85552"}},{"scope":"storage, modifier, keyword.var, entity.name.tag, keyword.control.case, keyword.control.switch","settings":{"foreground":"#f57d26"}},{"scope":"keyword.operator","settings":{"foreground":"#f57d26"}},{"scope":"string, punctuation.definition.string.end, punctuation.definition.string.begin, punctuation.definition.string.template.begin, punctuation.definition.string.template.end","settings":{"foreground":"#dfa000"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#dfa000"}},{"scope":"constant.character.escape, punctuation.quasi.element, punctuation.definition.template-expression, punctuation.section.embedded, storage.type.format, constant.other.placeholder, constant.other.placeholder, variable.interpolation","settings":{"foreground":"#8da101"}},{"scope":"entity.name.function, support.function, meta.function, meta.function-call, meta.definition.method","settings":{"foreground":"#8da101"}},{"scope":"keyword.control.at-rule, keyword.control.import, keyword.control.export, storage.type.namespace, punctuation.decorator, keyword.control.directive, keyword.preprocessor, punctuation.definition.preprocessor, punctuation.definition.directive, keyword.other.import, keyword.other.package, entity.name.type.namespace, entity.name.scope-resolution, keyword.other.using, keyword.package, keyword.import, keyword.map","settings":{"foreground":"#35a77c"}},{"scope":"storage.type.annotation","settings":{"foreground":"#35a77c"}},{"scope":"entity.name.label, constant.other.label","settings":{"foreground":"#35a77c"}},{"scope":"support.module, support.node, support.other.module, support.type.object.module, entity.name.type.module, entity.name.type.class.module, keyword.control.module","settings":{"foreground":"#35a77c"}},{"scope":"storage.type, support.type, entity.name.type, keyword.type","settings":{"foreground":"#3a94c5"}},{"scope":"entity.name.type.class, support.class, entity.name.class, entity.other.inherited-class, storage.class","settings":{"foreground":"#3a94c5"}},{"scope":"constant.numeric","settings":{"foreground":"#df69ba"}},{"scope":"constant.language.boolean","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.function.preprocessor","settings":{"foreground":"#df69ba"}},{"scope":"variable.language.this, variable.language.self, variable.language.super, keyword.other.this, variable.language.special, constant.language.null, constant.language.undefined, constant.language.nan","settings":{"foreground":"#df69ba"}},{"scope":"constant.language, support.constant","settings":{"foreground":"#df69ba"}},{"scope":"variable, support.variable, meta.definition.variable","settings":{"foreground":"#5c6a72"}},{"scope":"variable.object.property, support.variable.property, variable.other.property, variable.other.object.property, variable.other.enummember, variable.other.member, meta.object-literal.key","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation, meta.brace, meta.delimiter, meta.bracket","settings":{"foreground":"#5c6a72"}},{"scope":"heading.1.markdown, markup.heading.setext.1.markdown","settings":{"fontStyle":"bold","foreground":"#f85552"}},{"scope":"heading.2.markdown, markup.heading.setext.2.markdown","settings":{"fontStyle":"bold","foreground":"#f57d26"}},{"scope":"heading.3.markdown","settings":{"fontStyle":"bold","foreground":"#dfa000"}},{"scope":"heading.4.markdown","settings":{"fontStyle":"bold","foreground":"#8da101"}},{"scope":"heading.5.markdown","settings":{"fontStyle":"bold","foreground":"#3a94c5"}},{"scope":"heading.6.markdown","settings":{"fontStyle":"bold","foreground":"#df69ba"}},{"scope":"punctuation.definition.heading.markdown","settings":{"fontStyle":"regular","foreground":"#939f91"}},{"scope":"string.other.link.title.markdown, constant.other.reference.link.markdown, string.other.link.description.markdown","settings":{"fontStyle":"regular","foreground":"#df69ba"}},{"scope":"markup.underline.link.image.markdown, markup.underline.link.markdown","settings":{"fontStyle":"underline","foreground":"#8da101"}},{"scope":"punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.italic.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.metadata.markdown, punctuation.separator.key-value.markdown, punctuation.definition.constant.markdown","settings":{"foreground":"#939f91"}},{"scope":"punctuation.definition.bold.markdown","settings":{"fontStyle":"regular","foreground":"#939f91"}},{"scope":"meta.separator.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown","settings":{"fontStyle":"bold","foreground":"#939f91"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.bold","settings":{"fontStyle":"bold"}},{"scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"fontStyle":"italic bold"}},{"scope":"punctuation.definition.markdown, punctuation.definition.raw.markdown","settings":{"foreground":"#dfa000"}},{"scope":"fenced_code.block.language","settings":{"foreground":"#dfa000"}},{"scope":"markup.fenced_code.block.markdown, markup.inline.raw.string.markdown","settings":{"foreground":"#8da101"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#f85552"}},{"scope":"punctuation.definition.heading.restructuredtext","settings":{"fontStyle":"bold","foreground":"#f57d26"}},{"scope":"punctuation.definition.field.restructuredtext, punctuation.separator.key-value.restructuredtext, punctuation.definition.directive.restructuredtext, punctuation.definition.constant.restructuredtext, punctuation.definition.italic.restructuredtext, punctuation.definition.table.restructuredtext","settings":{"foreground":"#939f91"}},{"scope":"punctuation.definition.bold.restructuredtext","settings":{"fontStyle":"regular","foreground":"#939f91"}},{"scope":"entity.name.tag.restructuredtext, punctuation.definition.link.restructuredtext, punctuation.definition.raw.restructuredtext, punctuation.section.raw.restructuredtext","settings":{"foreground":"#35a77c"}},{"scope":"constant.other.footnote.link.restructuredtext","settings":{"foreground":"#df69ba"}},{"scope":"support.directive.restructuredtext","settings":{"foreground":"#f85552"}},{"scope":"entity.name.directive.restructuredtext, markup.raw.restructuredtext, markup.raw.inner.restructuredtext, string.other.link.title.restructuredtext","settings":{"foreground":"#8da101"}},{"scope":"punctuation.definition.function.latex, punctuation.definition.function.tex, punctuation.definition.keyword.latex, constant.character.newline.tex, punctuation.definition.keyword.tex","settings":{"foreground":"#939f91"}},{"scope":"support.function.be.latex","settings":{"foreground":"#f85552"}},{"scope":"support.function.section.latex, keyword.control.table.cell.latex, keyword.control.table.newline.latex","settings":{"foreground":"#f57d26"}},{"scope":"support.class.latex, variable.parameter.latex, variable.parameter.function.latex, variable.parameter.definition.label.latex, constant.other.reference.label.latex","settings":{"foreground":"#dfa000"}},{"scope":"keyword.control.preamble.latex","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.separator.namespace.xml","settings":{"foreground":"#939f91"}},{"scope":"entity.name.tag.html, entity.name.tag.xml, entity.name.tag.localname.xml","settings":{"foreground":"#f57d26"}},{"scope":"entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.double.html, string.quoted.single.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.separator.key-value.html, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml, string.quoted.double.xml, string.quoted.single.xml, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.xml, meta.tag.xml, meta.tag.preprocessor.xml, meta.tag.other.html, meta.tag.block.any.html, meta.tag.inline.any.html","settings":{"foreground":"#8da101"}},{"scope":"variable.language.documentroot.xml, meta.tag.sgml.doctype.xml","settings":{"foreground":"#df69ba"}},{"scope":"storage.type.proto","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.double.proto.syntax, string.quoted.single.proto.syntax, string.quoted.double.proto, string.quoted.single.proto","settings":{"foreground":"#8da101"}},{"scope":"entity.name.class.proto, entity.name.class.message.proto","settings":{"foreground":"#35a77c"}},{"scope":"punctuation.definition.entity.css, punctuation.separator.key-value.css, punctuation.terminator.rule.css, punctuation.separator.list.comma.css","settings":{"foreground":"#939f91"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#f85552"}},{"scope":"keyword.other.unit","settings":{"foreground":"#f57d26"}},{"scope":"entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.single.css, string.quoted.double.css, support.constant.property-value.css, meta.property-value.css, punctuation.definition.string.begin.css, punctuation.definition.string.end.css, constant.numeric.css, support.constant.font-name.css, variable.parameter.keyframe-list.css","settings":{"foreground":"#8da101"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#35a77c"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#3a94c5"}},{"scope":"entity.name.tag.css, entity.other.keyframe-offset.css, punctuation.definition.keyword.css, keyword.control.at-rule.keyframes.css, meta.selector.css","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.definition.entity.scss, punctuation.separator.key-value.scss, punctuation.terminator.rule.scss, punctuation.separator.list.comma.scss","settings":{"foreground":"#939f91"}},{"scope":"keyword.control.at-rule.keyframes.scss","settings":{"foreground":"#f57d26"}},{"scope":"punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss","settings":{"foreground":"#dfa000"}},{"scope":"punctuation.definition.string.begin.scss, punctuation.definition.string.end.scss, string.quoted.double.scss, string.quoted.single.scss, constant.character.css.sass, meta.property-value.scss","settings":{"foreground":"#8da101"}},{"scope":"keyword.control.at-rule.include.scss, keyword.control.at-rule.use.scss, keyword.control.at-rule.mixin.scss, keyword.control.at-rule.extend.scss, keyword.control.at-rule.import.scss","settings":{"foreground":"#df69ba"}},{"scope":"meta.function.stylus","settings":{"foreground":"#5c6a72"}},{"scope":"entity.name.function.stylus","settings":{"foreground":"#dfa000"}},{"scope":"string.unquoted.js","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation.accessor.js, punctuation.separator.key-value.js, punctuation.separator.label.js, keyword.operator.accessor.js","settings":{"foreground":"#939f91"}},{"scope":"punctuation.definition.block.tag.jsdoc","settings":{"foreground":"#f85552"}},{"scope":"storage.type.js, storage.type.function.arrow.js","settings":{"foreground":"#f57d26"}},{"scope":"JSXNested","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation.definition.tag.jsx, entity.other.attribute-name.jsx, punctuation.definition.tag.begin.js.jsx, punctuation.definition.tag.end.js.jsx, entity.other.attribute-name.js.jsx","settings":{"foreground":"#8da101"}},{"scope":"entity.name.type.module.ts","settings":{"foreground":"#5c6a72"}},{"scope":"keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.separator.key-value.ts","settings":{"foreground":"#939f91"}},{"scope":"punctuation.definition.tag.directive.ts, entity.other.attribute-name.directive.ts","settings":{"foreground":"#8da101"}},{"scope":"entity.name.type.ts, entity.name.type.interface.ts, entity.other.inherited-class.ts, entity.name.type.alias.ts, entity.name.type.class.ts, entity.name.type.enum.ts","settings":{"foreground":"#35a77c"}},{"scope":"storage.type.ts, storage.type.function.arrow.ts, storage.type.type.ts","settings":{"foreground":"#f57d26"}},{"scope":"entity.name.type.module.ts","settings":{"foreground":"#3a94c5"}},{"scope":"keyword.control.import.ts, keyword.control.export.ts, storage.type.namespace.ts","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.type.module.tsx","settings":{"foreground":"#5c6a72"}},{"scope":"keyword.operator.type.annotation.tsx, punctuation.accessor.tsx, punctuation.separator.key-value.tsx","settings":{"foreground":"#939f91"}},{"scope":"punctuation.definition.tag.directive.tsx, entity.other.attribute-name.directive.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, entity.other.attribute-name.tsx","settings":{"foreground":"#8da101"}},{"scope":"entity.name.type.tsx, entity.name.type.interface.tsx, entity.other.inherited-class.tsx, entity.name.type.alias.tsx, entity.name.type.class.tsx, entity.name.type.enum.tsx","settings":{"foreground":"#35a77c"}},{"scope":"entity.name.type.module.tsx","settings":{"foreground":"#3a94c5"}},{"scope":"keyword.control.import.tsx, keyword.control.export.tsx, storage.type.namespace.tsx","settings":{"foreground":"#df69ba"}},{"scope":"storage.type.tsx, storage.type.function.arrow.tsx, storage.type.type.tsx, support.class.component.tsx","settings":{"foreground":"#f57d26"}},{"scope":"storage.type.function.coffee","settings":{"foreground":"#f57d26"}},{"scope":"meta.type-signature.purescript","settings":{"foreground":"#5c6a72"}},{"scope":"keyword.other.double-colon.purescript, keyword.other.arrow.purescript, keyword.other.big-arrow.purescript","settings":{"foreground":"#f57d26"}},{"scope":"entity.name.function.purescript","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.single.purescript, string.quoted.double.purescript, punctuation.definition.string.begin.purescript, punctuation.definition.string.end.purescript, string.quoted.triple.purescript, entity.name.type.purescript","settings":{"foreground":"#8da101"}},{"scope":"support.other.module.purescript","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.dot.dart","settings":{"foreground":"#939f91"}},{"scope":"storage.type.primitive.dart","settings":{"foreground":"#f57d26"}},{"scope":"support.class.dart","settings":{"foreground":"#dfa000"}},{"scope":"entity.name.function.dart, string.interpolated.single.dart, string.interpolated.double.dart","settings":{"foreground":"#8da101"}},{"scope":"variable.language.dart","settings":{"foreground":"#3a94c5"}},{"scope":"keyword.other.import.dart, storage.type.annotation.dart","settings":{"foreground":"#df69ba"}},{"scope":"entity.other.attribute-name.class.pug","settings":{"foreground":"#f85552"}},{"scope":"storage.type.function.pug","settings":{"foreground":"#f57d26"}},{"scope":"entity.other.attribute-name.tag.pug","settings":{"foreground":"#35a77c"}},{"scope":"entity.name.tag.pug, storage.type.import.include.pug","settings":{"foreground":"#df69ba"}},{"scope":"meta.function-call.c, storage.modifier.array.bracket.square.c, meta.function.definition.parameters.c","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation.separator.dot-access.c, constant.character.escape.line-continuation.c","settings":{"foreground":"#939f91"}},{"scope":"keyword.control.directive.include.c, punctuation.definition.directive.c, keyword.control.directive.pragma.c, keyword.control.directive.line.c, keyword.control.directive.define.c, keyword.control.directive.conditional.c, keyword.control.directive.diagnostic.error.c, keyword.control.directive.undef.c, keyword.control.directive.conditional.ifdef.c, keyword.control.directive.endif.c, keyword.control.directive.conditional.ifndef.c, keyword.control.directive.conditional.if.c, keyword.control.directive.else.c","settings":{"foreground":"#f85552"}},{"scope":"punctuation.separator.pointer-access.c","settings":{"foreground":"#f57d26"}},{"scope":"variable.other.member.c","settings":{"foreground":"#35a77c"}},{"scope":"meta.function-call.cpp, storage.modifier.array.bracket.square.cpp, meta.function.definition.parameters.cpp, meta.body.function.definition.cpp","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation.separator.dot-access.cpp, constant.character.escape.line-continuation.cpp","settings":{"foreground":"#939f91"}},{"scope":"keyword.control.directive.include.cpp, punctuation.definition.directive.cpp, keyword.control.directive.pragma.cpp, keyword.control.directive.line.cpp, keyword.control.directive.define.cpp, keyword.control.directive.conditional.cpp, keyword.control.directive.diagnostic.error.cpp, keyword.control.directive.undef.cpp, keyword.control.directive.conditional.ifdef.cpp, keyword.control.directive.endif.cpp, keyword.control.directive.conditional.ifndef.cpp, keyword.control.directive.conditional.if.cpp, keyword.control.directive.else.cpp, storage.type.namespace.definition.cpp, keyword.other.using.directive.cpp, storage.type.struct.cpp","settings":{"foreground":"#f85552"}},{"scope":"punctuation.separator.pointer-access.cpp, punctuation.section.angle-brackets.begin.template.call.cpp, punctuation.section.angle-brackets.end.template.call.cpp","settings":{"foreground":"#f57d26"}},{"scope":"variable.other.member.cpp","settings":{"foreground":"#35a77c"}},{"scope":"keyword.other.using.cs","settings":{"foreground":"#f85552"}},{"scope":"keyword.type.cs, constant.character.escape.cs, punctuation.definition.interpolation.begin.cs, punctuation.definition.interpolation.end.cs","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.double.cs, string.quoted.single.cs, punctuation.definition.string.begin.cs, punctuation.definition.string.end.cs","settings":{"foreground":"#8da101"}},{"scope":"variable.other.object.property.cs","settings":{"foreground":"#35a77c"}},{"scope":"entity.name.type.namespace.cs","settings":{"foreground":"#df69ba"}},{"scope":"keyword.symbol.fsharp, constant.language.unit.fsharp","settings":{"foreground":"#5c6a72"}},{"scope":"keyword.format.specifier.fsharp, entity.name.type.fsharp","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.double.fsharp, string.quoted.single.fsharp, punctuation.definition.string.begin.fsharp, punctuation.definition.string.end.fsharp","settings":{"foreground":"#8da101"}},{"scope":"entity.name.section.fsharp","settings":{"foreground":"#3a94c5"}},{"scope":"support.function.attribute.fsharp","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.separator.java, punctuation.separator.period.java","settings":{"foreground":"#939f91"}},{"scope":"keyword.other.import.java, keyword.other.package.java","settings":{"foreground":"#f85552"}},{"scope":"storage.type.function.arrow.java, keyword.control.ternary.java","settings":{"foreground":"#f57d26"}},{"scope":"variable.other.property.java","settings":{"foreground":"#35a77c"}},{"scope":"variable.language.wildcard.java, storage.modifier.import.java, storage.type.annotation.java, punctuation.definition.annotation.java, storage.modifier.package.java, entity.name.type.module.java","settings":{"foreground":"#df69ba"}},{"scope":"keyword.other.import.kotlin","settings":{"foreground":"#f85552"}},{"scope":"storage.type.kotlin","settings":{"foreground":"#f57d26"}},{"scope":"constant.language.kotlin","settings":{"foreground":"#35a77c"}},{"scope":"entity.name.package.kotlin, storage.type.annotation.kotlin","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.package.scala","settings":{"foreground":"#df69ba"}},{"scope":"constant.language.scala","settings":{"foreground":"#3a94c5"}},{"scope":"entity.name.import.scala","settings":{"foreground":"#35a77c"}},{"scope":"string.quoted.double.scala, string.quoted.single.scala, punctuation.definition.string.begin.scala, punctuation.definition.string.end.scala, string.quoted.double.interpolated.scala, string.quoted.single.interpolated.scala, string.quoted.triple.scala","settings":{"foreground":"#8da101"}},{"scope":"entity.name.class, entity.other.inherited-class.scala","settings":{"foreground":"#dfa000"}},{"scope":"keyword.declaration.stable.scala, keyword.other.arrow.scala","settings":{"foreground":"#f57d26"}},{"scope":"keyword.other.import.scala","settings":{"foreground":"#f85552"}},{"scope":"keyword.operator.navigation.groovy, meta.method.body.java, meta.definition.method.groovy, meta.definition.method.signature.java","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation.separator.groovy","settings":{"foreground":"#939f91"}},{"scope":"keyword.other.import.groovy, keyword.other.package.groovy, keyword.other.import.static.groovy","settings":{"foreground":"#f85552"}},{"scope":"storage.type.def.groovy","settings":{"foreground":"#f57d26"}},{"scope":"variable.other.interpolated.groovy, meta.method.groovy","settings":{"foreground":"#8da101"}},{"scope":"storage.modifier.import.groovy, storage.modifier.package.groovy","settings":{"foreground":"#35a77c"}},{"scope":"storage.type.annotation.groovy","settings":{"foreground":"#df69ba"}},{"scope":"keyword.type.go","settings":{"foreground":"#f85552"}},{"scope":"entity.name.package.go","settings":{"foreground":"#35a77c"}},{"scope":"keyword.import.go, keyword.package.go","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.type.mod.rust","settings":{"foreground":"#5c6a72"}},{"scope":"keyword.operator.path.rust, keyword.operator.member-access.rust","settings":{"foreground":"#939f91"}},{"scope":"storage.type.rust","settings":{"foreground":"#f57d26"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#35a77c"}},{"scope":"meta.attribute.rust, variable.language.rust, storage.type.module.rust","settings":{"foreground":"#df69ba"}},{"scope":"meta.function-call.swift, support.function.any-method.swift","settings":{"foreground":"#5c6a72"}},{"scope":"support.variable.swift","settings":{"foreground":"#35a77c"}},{"scope":"keyword.operator.class.php","settings":{"foreground":"#5c6a72"}},{"scope":"storage.type.trait.php","settings":{"foreground":"#f57d26"}},{"scope":"constant.language.php, support.other.namespace.php","settings":{"foreground":"#35a77c"}},{"scope":"storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp","settings":{"foreground":"#3a94c5"}},{"scope":"keyword.control.import.include.php, storage.type.php","settings":{"foreground":"#df69ba"}},{"scope":"meta.function-call.arguments.python","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation.definition.decorator.python, punctuation.separator.period.python","settings":{"foreground":"#939f91"}},{"scope":"constant.language.python","settings":{"foreground":"#35a77c"}},{"scope":"keyword.control.import.python, keyword.control.import.from.python","settings":{"foreground":"#df69ba"}},{"scope":"constant.language.lua","settings":{"foreground":"#35a77c"}},{"scope":"entity.name.class.lua","settings":{"foreground":"#3a94c5"}},{"scope":"meta.function.method.with-arguments.ruby","settings":{"foreground":"#5c6a72"}},{"scope":"punctuation.separator.method.ruby","settings":{"foreground":"#939f91"}},{"scope":"keyword.control.pseudo-method.ruby, storage.type.variable.ruby","settings":{"foreground":"#f57d26"}},{"scope":"keyword.other.special-method.ruby","settings":{"foreground":"#8da101"}},{"scope":"keyword.control.module.ruby, punctuation.definition.constant.ruby","settings":{"foreground":"#df69ba"}},{"scope":"string.regexp.character-class.ruby,string.regexp.interpolated.ruby,punctuation.definition.character-class.ruby,string.regexp.group.ruby, punctuation.section.regexp.ruby, punctuation.definition.group.ruby","settings":{"foreground":"#dfa000"}},{"scope":"variable.other.constant.ruby","settings":{"foreground":"#3a94c5"}},{"scope":"keyword.other.arrow.haskell, keyword.other.big-arrow.haskell, keyword.other.double-colon.haskell","settings":{"foreground":"#f57d26"}},{"scope":"storage.type.haskell","settings":{"foreground":"#dfa000"}},{"scope":"constant.other.haskell, string.quoted.double.haskell, string.quoted.single.haskell, punctuation.definition.string.begin.haskell, punctuation.definition.string.end.haskell","settings":{"foreground":"#8da101"}},{"scope":"entity.name.function.haskell","settings":{"foreground":"#3a94c5"}},{"scope":"entity.name.namespace, meta.preprocessor.haskell","settings":{"foreground":"#35a77c"}},{"scope":"keyword.control.import.julia, keyword.control.export.julia","settings":{"foreground":"#f85552"}},{"scope":"keyword.storage.modifier.julia","settings":{"foreground":"#f57d26"}},{"scope":"constant.language.julia","settings":{"foreground":"#35a77c"}},{"scope":"support.function.macro.julia","settings":{"foreground":"#df69ba"}},{"scope":"keyword.other.period.elm","settings":{"foreground":"#5c6a72"}},{"scope":"storage.type.elm","settings":{"foreground":"#dfa000"}},{"scope":"keyword.other.r","settings":{"foreground":"#f57d26"}},{"scope":"entity.name.function.r, variable.function.r","settings":{"foreground":"#8da101"}},{"scope":"constant.language.r","settings":{"foreground":"#35a77c"}},{"scope":"entity.namespace.r","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.separator.module-function.erlang, punctuation.section.directive.begin.erlang","settings":{"foreground":"#939f91"}},{"scope":"keyword.control.directive.erlang, keyword.control.directive.define.erlang","settings":{"foreground":"#f85552"}},{"scope":"entity.name.type.class.module.erlang","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.double.erlang, string.quoted.single.erlang, punctuation.definition.string.begin.erlang, punctuation.definition.string.end.erlang","settings":{"foreground":"#8da101"}},{"scope":"keyword.control.directive.export.erlang, keyword.control.directive.module.erlang, keyword.control.directive.import.erlang, keyword.control.directive.behaviour.erlang","settings":{"foreground":"#df69ba"}},{"scope":"variable.other.readwrite.module.elixir, punctuation.definition.variable.elixir","settings":{"foreground":"#35a77c"}},{"scope":"constant.language.elixir","settings":{"foreground":"#3a94c5"}},{"scope":"keyword.control.module.elixir","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.type.value-signature.ocaml","settings":{"foreground":"#5c6a72"}},{"scope":"keyword.other.ocaml","settings":{"foreground":"#f57d26"}},{"scope":"constant.language.variant.ocaml","settings":{"foreground":"#35a77c"}},{"scope":"storage.type.sub.perl, storage.type.declare.routine.perl","settings":{"foreground":"#f85552"}},{"scope":"meta.function.lisp","settings":{"foreground":"#5c6a72"}},{"scope":"storage.type.function-type.lisp","settings":{"foreground":"#f85552"}},{"scope":"keyword.constant.lisp","settings":{"foreground":"#8da101"}},{"scope":"entity.name.function.lisp","settings":{"foreground":"#35a77c"}},{"scope":"constant.keyword.clojure, support.variable.clojure, meta.definition.variable.clojure","settings":{"foreground":"#8da101"}},{"scope":"entity.global.clojure","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.function.clojure","settings":{"foreground":"#3a94c5"}},{"scope":"meta.scope.if-block.shell, meta.scope.group.shell","settings":{"foreground":"#5c6a72"}},{"scope":"support.function.builtin.shell, entity.name.function.shell","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.double.shell, string.quoted.single.shell, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell, string.unquoted.heredoc.shell","settings":{"foreground":"#8da101"}},{"scope":"keyword.control.heredoc-token.shell, variable.other.normal.shell, punctuation.definition.variable.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell","settings":{"foreground":"#df69ba"}},{"scope":"support.function.builtin.fish","settings":{"foreground":"#f85552"}},{"scope":"support.function.unix.fish","settings":{"foreground":"#f57d26"}},{"scope":"variable.other.normal.fish, punctuation.definition.variable.fish, variable.other.fixed.fish, variable.other.special.fish","settings":{"foreground":"#3a94c5"}},{"scope":"string.quoted.double.fish, punctuation.definition.string.end.fish, punctuation.definition.string.begin.fish, string.quoted.single.fish","settings":{"foreground":"#8da101"}},{"scope":"constant.character.escape.single.fish","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.definition.variable.powershell","settings":{"foreground":"#939f91"}},{"scope":"entity.name.function.powershell, support.function.attribute.powershell, support.function.powershell","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.single.powershell, string.quoted.double.powershell, punctuation.definition.string.begin.powershell, punctuation.definition.string.end.powershell, string.quoted.double.heredoc.powershell","settings":{"foreground":"#8da101"}},{"scope":"variable.other.member.powershell","settings":{"foreground":"#35a77c"}},{"scope":"string.unquoted.alias.graphql","settings":{"foreground":"#5c6a72"}},{"scope":"keyword.type.graphql","settings":{"foreground":"#f85552"}},{"scope":"entity.name.fragment.graphql","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.function.target.makefile","settings":{"foreground":"#f57d26"}},{"scope":"variable.other.makefile","settings":{"foreground":"#dfa000"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#8da101"}},{"scope":"string.source.cmake","settings":{"foreground":"#8da101"}},{"scope":"entity.source.cmake","settings":{"foreground":"#35a77c"}},{"scope":"storage.source.cmake","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.definition.map.viml","settings":{"foreground":"#939f91"}},{"scope":"storage.type.map.viml","settings":{"foreground":"#f57d26"}},{"scope":"constant.character.map.viml, constant.character.map.key.viml","settings":{"foreground":"#8da101"}},{"scope":"constant.character.map.special.viml","settings":{"foreground":"#3a94c5"}},{"scope":"constant.language.tmux, constant.numeric.tmux","settings":{"foreground":"#8da101"}},{"scope":"entity.name.function.package-manager.dockerfile","settings":{"foreground":"#f57d26"}},{"scope":"keyword.operator.flag.dockerfile","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.double.dockerfile, string.quoted.single.dockerfile","settings":{"foreground":"#8da101"}},{"scope":"constant.character.escape.dockerfile","settings":{"foreground":"#35a77c"}},{"scope":"entity.name.type.base-image.dockerfile, entity.name.image.dockerfile","settings":{"foreground":"#df69ba"}},{"scope":"punctuation.definition.separator.diff","settings":{"foreground":"#939f91"}},{"scope":"markup.deleted.diff, punctuation.definition.deleted.diff","settings":{"foreground":"#f85552"}},{"scope":"meta.diff.range.context, punctuation.definition.range.diff","settings":{"foreground":"#f57d26"}},{"scope":"meta.diff.header.from-file","settings":{"foreground":"#dfa000"}},{"scope":"markup.inserted.diff, punctuation.definition.inserted.diff","settings":{"foreground":"#8da101"}},{"scope":"markup.changed.diff, punctuation.definition.changed.diff","settings":{"foreground":"#3a94c5"}},{"scope":"punctuation.definition.from-file.diff","settings":{"foreground":"#df69ba"}},{"scope":"entity.name.section.group-title.ini, punctuation.definition.entity.ini","settings":{"foreground":"#f85552"}},{"scope":"punctuation.separator.key-value.ini","settings":{"foreground":"#f57d26"}},{"scope":"string.quoted.double.ini, string.quoted.single.ini, punctuation.definition.string.begin.ini, punctuation.definition.string.end.ini","settings":{"foreground":"#8da101"}},{"scope":"keyword.other.definition.ini","settings":{"foreground":"#35a77c"}},{"scope":"support.function.aggregate.sql","settings":{"foreground":"#dfa000"}},{"scope":"string.quoted.single.sql, punctuation.definition.string.end.sql, punctuation.definition.string.begin.sql, string.quoted.double.sql","settings":{"foreground":"#8da101"}},{"scope":"support.type.graphql","settings":{"foreground":"#dfa000"}},{"scope":"variable.parameter.graphql","settings":{"foreground":"#3a94c5"}},{"scope":"constant.character.enum.graphql","settings":{"foreground":"#35a77c"}},{"scope":"punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json","settings":{"foreground":"#939f91"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#f57d26"}},{"scope":"string.quoted.double.json","settings":{"foreground":"#8da101"}},{"scope":"punctuation.separator.key-value.mapping.yaml","settings":{"foreground":"#939f91"}},{"scope":"string.unquoted.plain.out.yaml, string.quoted.single.yaml, string.quoted.double.yaml, punctuation.definition.string.begin.yaml, punctuation.definition.string.end.yaml, string.unquoted.plain.in.yaml, string.unquoted.block.yaml","settings":{"foreground":"#8da101"}},{"scope":"punctuation.definition.anchor.yaml, punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#35a77c"}},{"scope":"keyword.key.toml","settings":{"foreground":"#f57d26"}},{"scope":"string.quoted.single.basic.line.toml, string.quoted.single.literal.line.toml, punctuation.definition.keyValuePair.toml","settings":{"foreground":"#8da101"}},{"scope":"constant.other.boolean.toml","settings":{"foreground":"#3a94c5"}},{"scope":"entity.other.attribute-name.table.toml, punctuation.definition.table.toml, entity.other.attribute-name.table.array.toml, punctuation.definition.table.array.toml","settings":{"foreground":"#df69ba"}},{"scope":"comment, string.comment, punctuation.definition.comment","settings":{"fontStyle":"italic","foreground":"#939f91"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/extends-B9D0JO9U.js b/docs/assets/extends-B9D0JO9U.js new file mode 100644 index 0000000..7819627 --- /dev/null +++ b/docs/assets/extends-B9D0JO9U.js @@ -0,0 +1 @@ +function t(){return t=Object.assign?Object.assign.bind():function(e){for(var n=1;n|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}});export{t}; diff --git a/docs/assets/fcl-DyFJAgkq.js b/docs/assets/fcl-DyFJAgkq.js new file mode 100644 index 0000000..c4d02de --- /dev/null +++ b/docs/assets/fcl-DyFJAgkq.js @@ -0,0 +1 @@ +var d={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},c={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},i={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},s={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},a=/[+\-*&^%:=<>!|\/]/;function u(e,n){var t=e.next();if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(t=="/"||t=="("){if(e.eat("*"))return n.tokenize=l,l(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(t))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return d.propertyIsEnumerable(r)||c.propertyIsEnumerable(r)||i.propertyIsEnumerable(r)?"keyword":s.propertyIsEnumerable(r)?"atom":"variable"}function l(e,n){for(var t=!1,r;r=e.next();){if((r=="/"||r==")")&&t){n.tokenize=u;break}t=r=="*"}return"comment"}function f(e,n,t,r,o){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=o}function m(e,n,t){return e.context=new f(e.indented,n,t,null,e.context)}function p(e){if(e.context.prev)return e.context.type=="end_block"&&(e.indented=e.context.indented),e.context=e.context.prev}const k={name:"fcl",startState:function(e){return{tokenize:null,context:new f(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align??(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;var r=(n.tokenize||u)(e,n);if(r=="comment")return r;t.align??(t.align=!0);var o=e.current().toLowerCase();return c.propertyIsEnumerable(o)?m(n,e.column(),"end_block"):i.propertyIsEnumerable(o)&&p(n),n.startOfLine=!1,r},indent:function(e,n,t){if(e.tokenize!=u&&e.tokenize!=null)return 0;var r=e.context,o=i.propertyIsEnumerable(n);return r.align?r.column+(o?0:1):r.indented+(o?0:t.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}};export{k as fcl}; diff --git a/docs/assets/fennel-BV_sl-8E.js b/docs/assets/fennel-BV_sl-8E.js new file mode 100644 index 0000000..d26d9f5 --- /dev/null +++ b/docs/assets/fennel-BV_sl-8E.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Fennel","name":"fennel","patterns":[{"include":"#expression"}],"repository":{"comment":{"patterns":[{"begin":";","end":"$","name":"comment.line.semicolon.fennel"}]},"constants":{"patterns":[{"match":"nil","name":"constant.language.nil.fennel"},{"match":"false|true","name":"constant.language.boolean.fennel"},{"match":"(-?\\\\d+\\\\.\\\\d+([Ee][-+]?\\\\d+)?)","name":"constant.numeric.double.fennel"},{"match":"(-?\\\\d+)","name":"constant.numeric.integer.fennel"}]},"expression":{"patterns":[{"include":"#comment"},{"include":"#constants"},{"include":"#sexp"},{"include":"#table"},{"include":"#vector"},{"include":"#keywords"},{"include":"#special"},{"include":"#lua"},{"include":"#strings"},{"include":"#methods"},{"include":"#symbols"}]},"keywords":{"match":":[^ ]+","name":"constant.keyword.fennel"},"lua":{"patterns":[{"match":"\\\\b(assert|collectgarbage|dofile|error|getmetatable|ipairs|load|loadfile|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setmetatable|tonumber|tostring|type|xpcall)\\\\b","name":"support.function.fennel"},{"match":"\\\\b(coroutine|coroutine.create|coroutine.isyieldable|coroutine.resume|coroutine.running|coroutine.status|coroutine.wrap|coroutine.yield|debug|debug.debug|debug.gethook|debug.getinfo|debug.getlocal|debug.getmetatable|debug.getregistry|debug.getupvalue|debug.getuservalue|debug.sethook|debug.setlocal|debug.setmetatable|debug.setupvalue|debug.setuservalue|debug.traceback|debug.upvalueid|debug.upvaluejoin|io|io.close|io.flush|io.input|io.lines|io.open|io.output|io.popen|io.read|io.stderr|io.stdin|io.stdout|io.tmpfile|io.type|io.write|math|math.abs|math.acos|math.asin|math.atan|math.ceil|math.cos|math.deg|math.exp|math.floor|math.fmod|math.huge|math.log|math.max|math.maxinteger|math.min|math.mininteger|math.modf|math.pi|math.rad|math.random|math.randomseed|math.sin|math.sqrt|math.tan|math.tointeger|math.type|math.ult|os|os.clock|os.date|os.difftime|os.execute|os.exit|os.getenv|os.remove|os.rename|os.setlocale|os.time|os.tmpname|package|package.config|package.cpath|package.loaded|package.loadlib|package.path|package.preload|package.searchers|package.searchpath|string|string.byte|string.char|string.dump|string.find|string.format|string.gmatch|string.gsub|string.len|string.lower|string.match|string.pack|string.packsize|string.rep|string.reverse|string.sub|string.unpack|string.upper|table|table.concat|table.insert|table.move|table.pack|table.remove|table.sort|table.unpack|utf8|utf8.char|utf8.charpattern|utf8.codepoint|utf8.codes|utf8.len|utf8.offset)\\\\b","name":"support.function.library.fennel"},{"match":"\\\\b(_(?:G|VERSION))\\\\b","name":"constant.language.fennel"}]},"methods":{"patterns":[{"match":"\\\\w+:\\\\w+","name":"entity.name.function.method.fennel"}]},"sexp":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.paren.open.fennel"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.paren.close.fennel"}},"name":"sexp.fennel","patterns":[{"include":"#expression"}]},"special":{"patterns":[{"match":"[#%*+]|\\\\?\\\\.|(\\\\.)?\\\\.|(/)?/|:|<=?|=|>=?|\\\\^","name":"keyword.special.fennel"},{"match":"(->(>)?)","name":"keyword.special.fennel"},{"match":"-\\\\?>(>)?","name":"keyword.special.fennel"},{"match":"-","name":"keyword.special.fennel"},{"match":"not=","name":"keyword.special.fennel"},{"match":"set-forcibly!","name":"keyword.special.fennel"},{"match":"\\\\b(and|band|bnot|bor|bxor|collect|comment|doc??|doto|each|eval-compiler|for|global|hashfn|icollect|if|import-macros|include|lambda|length|let|local|lshift|lua|macro|macrodebug|macros|match|not=?|or|partial|pick-args|pick-values|quote|require-macros|rshift|set|tset|values|var|when|while|with-open)\\\\b","name":"keyword.special.fennel"},{"match":"\\\\b(fn)\\\\b","name":"keyword.control.fennel"},{"match":"~=","name":"keyword.special.fennel"},{"match":"\u03BB","name":"keyword.special.fennel"}]},"strings":{"begin":"\\"","end":"\\"","name":"string.quoted.double.fennel","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.fennel"}]},"symbols":{"patterns":[{"match":"\\\\w+(?:\\\\.\\\\w+)+","name":"entity.name.function.symbol.fennel"},{"match":"\\\\w+","name":"variable.other.fennel"}]},"table":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.table.bracket.open.fennel"}},"end":"}","endCaptures":{"0":{"name":"punctuation.table.bracket.close.fennel"}},"name":"table.fennel","patterns":[{"include":"#expression"}]},"vector":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.vector.bracket.open.fennel"}},"end":"]","endCaptures":{"0":{"name":"punctuation.vector.bracket.close.fennel"}},"name":"meta.vector.fennel","patterns":[{"include":"#expression"}]}},"scopeName":"source.fnl"}'))];export{e as default}; diff --git a/docs/assets/field-86WoveRM.js b/docs/assets/field-86WoveRM.js new file mode 100644 index 0000000..a398991 --- /dev/null +++ b/docs/assets/field-86WoveRM.js @@ -0,0 +1 @@ +import{s as p}from"./chunk-LvLJmgfZ.js";import{t as x}from"./compiler-runtime-DeeZ7FnK.js";import{t as g}from"./jsx-runtime-DN_bIXfG.js";import{n as u,t as l}from"./cn-C1rgT0yh.js";import{u as v}from"./select-D9lTzMzP.js";import{Q as b,f as h,l as N,m as w,y as j}from"./input-Bkl2Yfmh.js";var d=x(),m=p(g(),1),y=u(["text-sm font-medium leading-none","data-disabled:cursor-not-allowed data-disabled:opacity-70","group-data-invalid:text-destructive"]),k=i=>{let t=(0,d.c)(8),a,s;t[0]===i?(a=t[1],s=t[2]):({className:a,...s}=i,t[0]=i,t[1]=a,t[2]=s);let e;t[3]===a?e=t[4]:(e=l(y(),a),t[3]=a,t[4]=e);let r;return t[5]!==s||t[6]!==e?(r=(0,m.jsx)(j,{className:e,...s}),t[5]=s,t[6]=e,t[7]=r):r=t[7],r},Q=i=>{let t=(0,d.c)(8),a,s;t[0]===i?(a=t[1],s=t[2]):({className:a,...s}=i,t[0]=i,t[1]=a,t[2]=s);let e;t[3]===a?e=t[4]:(e=l("text-sm text-muted-foreground",a),t[3]=a,t[4]=e);let r;return t[5]!==s||t[6]!==e?(r=(0,m.jsx)(w,{className:e,...s,slot:"description"}),t[5]=s,t[6]=e,t[7]=r):r=t[7],r},V=i=>{let t=(0,d.c)(8),a,s;t[0]===i?(a=t[1],s=t[2]):({className:a,...s}=i,t[0]=i,t[1]=a,t[2]=s);let e;t[3]===a?e=t[4]:(e=l("text-sm font-medium text-destructive",a),t[3]=a,t[4]=e);let r;return t[5]!==s||t[6]!==e?(r=(0,m.jsx)(h,{className:e,...s}),t[5]=s,t[6]=e,t[7]=r):r=t[7],r},c=u("",{variants:{variant:{default:["relative flex w-full items-center overflow-hidden rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background",v(),"data-focus-within:outline-hidden data-focus-within:ring-2 data-focus-within:ring-ring data-focus-within:ring-offset-2","data-disabled:opacity-50"],ghost:""}},defaultVariants:{variant:"default"}}),_=i=>{let t=(0,d.c)(12),a,s,e;t[0]===i?(a=t[1],s=t[2],e=t[3]):({className:a,variant:e,...s}=i,t[0]=i,t[1]=a,t[2]=s,t[3]=e);let r;t[4]===e?r=t[5]:(r=f=>l(c({variant:e}),f),t[4]=e,t[5]=r);let o;t[6]!==a||t[7]!==r?(o=b(a,r),t[6]=a,t[7]=r,t[8]=o):o=t[8];let n;return t[9]!==s||t[10]!==o?(n=(0,m.jsx)(N,{className:o,...s}),t[9]=s,t[10]=o,t[11]=n):n=t[11],n};export{c as a,k as i,_ as n,Q as r,V as t}; diff --git a/docs/assets/file-BnFXtaZZ.js b/docs/assets/file-BnFXtaZZ.js new file mode 100644 index 0000000..1b80472 --- /dev/null +++ b/docs/assets/file-BnFXtaZZ.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var e=a("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);export{e as t}; diff --git a/docs/assets/file-explorer-panel-riLtoV84.js b/docs/assets/file-explorer-panel-riLtoV84.js new file mode 100644 index 0000000..e6c5b93 --- /dev/null +++ b/docs/assets/file-explorer-panel-riLtoV84.js @@ -0,0 +1 @@ +var Te=Object.defineProperty;var Be=(t,e,i)=>e in t?Te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var R=(t,e,i)=>Be(t,typeof e!="symbol"?e+"":e,i);import{s as ge}from"./chunk-LvLJmgfZ.js";import{i as $e,l as ce,n as A,p as ye,u as ae}from"./useEvent-DlWF5OMa.js";import{t as qe}from"./react-BGmjiNul.js";import{Jr as Ve,Rt as he,Xn as Le,Zr as Ue,_n as Ke,w as Ze}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as ie}from"./compiler-runtime-DeeZ7FnK.js";import"./tooltip-CrRUCOBw.js";import{d as Je,f as Xe}from"./hotkeys-uKX61F1_.js";import{t as Ye}from"./invariant-C6yE60hi.js";import{p as Ge,u as ve}from"./utils-Czt8B2GX.js";import{j as re}from"./config-CENq_7Pd.js";import{t as Qe}from"./jsx-runtime-DN_bIXfG.js";import{n as et,t as I}from"./button-B8cGZzP5.js";import{t as me}from"./cn-C1rgT0yh.js";import{St as tt,at}from"./dist-CAcX026F.js";import{a as it,c as rt,i as nt,o as st,s as lt}from"./JsonOutput-DlwRx3jE.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{n as ot,r as pe}from"./requests-C0HaHO6a.js";import{t as K}from"./createLucideIcon-CW2xpJ57.js";import{t as dt}from"./arrow-left-DdsrQ78n.js";import{n as ct,t as ht}from"./LazyAnyLanguageCodeMirror-Dr2G5gxJ.js";import{_ as mt}from"./select-D9lTzMzP.js";import{n as be,r as pt}from"./download-C_slsU-7.js";import{t as ft}from"./chevron-right-CqEd11Di.js";import{f as fe}from"./maps-s2pQkyf5.js";import{n as xt}from"./markdown-renderer-DjqhqmES.js";import{a as D,c as Z,p as ut,r as jt,t as gt}from"./dropdown-menu-BP4_BZLr.js";import{t as we}from"./copy-gBVL4NN-.js";import{t as ke}from"./download-DobaYJPt.js";import{t as yt}from"./ellipsis-vertical-CasjS3M6.js";import{t as vt}from"./eye-off-D9zAYqG9.js";import{n as Fe,r as bt,t as wt}from"./types-D5CL190S.js";import{t as Ce}from"./file-plus-corner-BO_uS88s.js";import{t as kt}from"./spinner-C1czjtp7.js";import{t as Ft}from"./refresh-ccw-DbW1_PHb.js";import{t as Ct}from"./refresh-cw-Din9uFKE.js";import{t as Nt}from"./save-BOTLFf-P.js";import{t as Dt}from"./trash-2-C-lF7BNB.js";import{t as St}from"./triangle-alert-CbD0f2J6.js";import{i as _t,n as Pt,t as Ot}from"./es-FiXEquL2.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{t as W}from"./use-toast-Bzf3rpev.js";import{r as zt}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{t as M}from"./tooltip-CvjcEpZC.js";import"./dates-CdsE1R40.js";import{o as Mt}from"./alert-dialog-jcHA5geR.js";import"./popover-DtnzNVk-.js";import{n as Ne}from"./ImperativeModal-BZvZlZQZ.js";import{r as Rt}from"./errors-z7WpYca5.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as ne}from"./copy-DRhpWiOq.js";import"./purify.es-N-2faAGj.js";import{a as At,i as Wt,n as xe,r as It,t as Et}from"./tree-CeX0mTvA.js";import{n as Ht,t as Tt}from"./alert-BEdExd6A.js";import{n as De}from"./error-banner-Cq4Yn1WZ.js";import{n as Se}from"./useAsyncData-Dj1oqsrZ.js";import"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import"./es-BJsT6vfZ.js";import{o as Bt}from"./focus-KGgBDCvb.js";import{a as $t}from"./renderShortcut-BzTDKVab.js";import{n as qt}from"./blob-DtJQFQyD.js";import{t as Vt}from"./bundle.esm-dxSncdJD.js";import{t as Lt}from"./links-Dh2BjF0A.js";import{t as Ut}from"./icon-32x32-BLg_IoeR.js";import{t as J}from"./Inputs-BLUpxKII.js";var Kt=K("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),_e=K("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),Pe=K("list-tree",[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]),Zt=K("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),Jt=K("square-play",[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}]]),Xt=K("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),Oe=ie(),F=ge(qe(),1),a=ge(Qe(),1),ze=(0,F.createContext)(null);function Yt(){return(0,F.useContext)(ze)??void 0}var Gt=t=>{let e=(0,Oe.c)(3),{children:i}=t,n=Wt(),s;return e[0]!==i||e[1]!==n?(s=(0,a.jsx)(ze.Provider,{value:n,children:i}),e[0]=i,e[1]=n,e[2]=s):s=e[2],s};const Qt=t=>{let e=(0,Oe.c)(5),{children:i}=t,[n,s]=(0,F.useState)(null),r;e[0]!==i||e[1]!==n?(r=n&&(0,a.jsx)(At,{backend:It,options:{rootElement:n},children:(0,a.jsx)(Gt,{children:i})}),e[0]=i,e[1]=n,e[2]=r):r=e[2];let d;return e[3]===r?d=e[4]:(d=(0,a.jsx)("div",{ref:s,className:"contents",children:r}),e[3]=r,e[4]=d),d};var ue=new Map;const ea=({file:t,onOpenNotebook:e})=>{let{theme:i}=zt(),{sendFileDetails:n,sendUpdateFile:s}=pe(),r=ae(Ge),d=ae(ve),f=ae(Ve),[h,m]=(0,F.useState)(""),{data:l,isPending:u,error:v,setData:g,refetch:c}=Se(async()=>{let o=await n({path:t.path}),j=o.contents||"";return m(ue.get(t.path)||j),o},[t.path]),y=async()=>{h!==(l==null?void 0:l.contents)&&await s({path:t.path,contents:h}).then(o=>{o.success&&(g(j=>({...j,contents:h})),m(h))})},C=(0,F.useRef)(h);if(C.current=h,(0,F.useEffect)(()=>()=>{if(!(l!=null&&l.contents))return;let o=C.current;o===l.contents?ue.delete(t.path):ue.set(t.path,o)},[t.path,l==null?void 0:l.contents]),v)return(0,a.jsx)(De,{error:v});if(u||!l)return null;let x=l.mimeType||"text/plain",S=x in je,k=f&&l.file.isMarimoFile&&(t.path===f||t.path.endsWith(`/${f}`));if(!l.contents&&!S)return(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2 p-6",children:[(0,a.jsx)("div",{className:"font-bold text-muted-foreground",children:"Name"}),(0,a.jsx)("div",{children:l.file.name}),(0,a.jsx)("div",{className:"font-bold text-muted-foreground",children:"Type"}),(0,a.jsx)("div",{children:x})]});let b=(0,a.jsxs)("div",{className:"text-xs text-muted-foreground p-1 flex justify-end gap-2 border-b",children:[(0,a.jsx)(M,{content:"Refresh",children:(0,a.jsx)(J,{size:"small",onClick:c,children:(0,a.jsx)(Ct,{})})}),t.isMarimoFile&&!re()&&(0,a.jsx)(M,{content:"Open notebook",children:(0,a.jsx)(J,{size:"small",onClick:o=>e(o),children:(0,a.jsx)(fe,{})})}),!d&&(0,a.jsx)(M,{content:"Download",children:(0,a.jsx)(J,{size:"small",onClick:()=>{if(Me(x)){pt(xt(l.contents,x),l.file.name);return}be(new Blob([l.contents||h],{type:x}),l.file.name)},children:(0,a.jsx)(ke,{})})}),!Me(x)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M,{content:"Copy contents to clipboard",children:(0,a.jsx)(J,{size:"small",onClick:async()=>{await ne(h)},children:(0,a.jsx)(we,{})})}),(0,a.jsx)(M,{content:$t("global.save"),children:(0,a.jsx)(J,{size:"small",color:h===l.contents?void 0:"green",onClick:y,disabled:h===l.contents,children:(0,a.jsx)(Nt,{})})})]})]});return x.startsWith("image/")?(0,a.jsxs)(a.Fragment,{children:[b,(0,a.jsx)("div",{className:"flex-1 overflow-hidden flex flex-col",children:(0,a.jsx)(st,{base64:l.contents,mime:x})})]}):x==="text/csv"&&l.contents?(0,a.jsxs)(a.Fragment,{children:[b,(0,a.jsx)("div",{className:"flex-1 overflow-hidden flex flex-col",children:(0,a.jsx)(it,{contents:l.contents})})]}):x.startsWith("audio/")?(0,a.jsxs)(a.Fragment,{children:[b,(0,a.jsx)("div",{className:"flex-1 overflow-hidden flex flex-col",children:(0,a.jsx)(nt,{base64:l.contents,mime:x})})]}):x.startsWith("video/")?(0,a.jsxs)(a.Fragment,{children:[b,(0,a.jsx)("div",{className:"flex-1 overflow-hidden flex flex-col",children:(0,a.jsx)(rt,{base64:l.contents,mime:x})})]}):x.startsWith("application/pdf")?(0,a.jsxs)(a.Fragment,{children:[b,(0,a.jsx)("div",{className:"flex-1 overflow-hidden flex flex-col",children:(0,a.jsx)(lt,{base64:l.contents,mime:x})})]}):(0,a.jsxs)(a.Fragment,{children:[b,k&&(0,a.jsxs)(Tt,{variant:"warning",className:"rounded-none",children:[(0,a.jsx)(St,{className:"h-4 w-4"}),(0,a.jsx)(Ht,{children:"Editing the notebook file directly while running in marimo's editor may cause unintended changes. Please use with caution."})]}),(0,a.jsx)("div",{className:"flex-1 overflow-auto",children:(0,a.jsx)(F.Suspense,{children:(0,a.jsx)(ht,{theme:i==="dark"?"dark":"light",language:je[x]||je.default,className:"border-b",extensions:[at.lineWrapping,tt.of([{key:r.getHotkey("global.save").key,stopPropagation:!0,run:()=>h===l.contents?!1:(y(),!0)}])],value:h,onChange:m})})})]})};var Me=t=>t?t.startsWith("image/")||t.startsWith("audio/")||t.startsWith("video/")||t.startsWith("application/pdf"):!1,je={"application/javascript":"javascript","text/markdown":"markdown","text/html":"html","text/css":"css","text/x-python":"python","application/json":"json","application/xml":"xml","text/x-yaml":"yaml","text/csv":"markdown","text/plain":"markdown",default:"markdown"},ta=class{constructor(t){R(this,"delegate",new xe([]));R(this,"rootPath","");R(this,"onChange",Xe.NOOP);R(this,"path",new he("/"));R(this,"initialize",async t=>{if(this.onChange=t,this.delegate.data.length===0)try{let e=await this.callbacks.listFiles({path:this.rootPath});this.delegate=new xe(e.files),this.rootPath=e.root,this.path=he.guessDeliminator(e.root)}catch(e){W({title:"Failed",description:Rt(e)})}this.onChange(this.delegate.data)});R(this,"refreshAll",async t=>{let e=[this.rootPath,...t.map(n=>{var s;return(s=this.delegate.find(n))==null?void 0:s.data.path})].filter(Boolean),i=await Promise.all(e.map(n=>this.callbacks.listFiles({path:n}).catch(()=>({files:[]}))));for(let[n,s]of e.entries()){let r=i[n];s===this.rootPath?this.delegate=new xe(r.files):this.delegate.update({id:s,changes:{children:r.files}})}this.onChange(this.delegate.data)});R(this,"relativeFromRoot",t=>{let e=this.rootPath.endsWith(this.path.deliminator)?this.rootPath:`${this.rootPath}${this.path.deliminator}`;return t.startsWith(e)?t.slice(e.length):t});R(this,"handleResponse",t=>t.success?t:(W({title:"Failed",description:t.message}),null));this.callbacks=t}async expand(t){let e=this.delegate.find(t);if(!e||!e.data.isDirectory)return!1;if(e.children&&e.children.length>0)return!0;let i=await this.callbacks.listFiles({path:e.data.path});return this.delegate.update({id:t,changes:{children:i.files}}),this.onChange(this.delegate.data),!0}async rename(t,e){let i=this.delegate.find(t);if(!i)return;let n=i.data.path,s=this.path.join(this.path.dirname(n),e);await this.callbacks.renameFileOrFolder({path:n,newPath:s}).then(this.handleResponse),this.delegate.update({id:t,changes:{name:e,path:s}}),this.onChange(this.delegate.data),await this.refreshAll([s])}async move(t,e){var n;let i=e?((n=this.delegate.find(e))==null?void 0:n.data.path)??e:this.rootPath;await Promise.all(t.map(s=>{this.delegate.move({id:s,parentId:e,index:0});let r=this.delegate.find(s);if(!r)return Promise.resolve();let d=this.path.join(i,this.path.basename(r.data.path));return this.delegate.update({id:s,changes:{path:d}}),this.callbacks.renameFileOrFolder({path:r.data.path,newPath:d}).then(this.handleResponse)})),this.onChange(this.delegate.data),await this.refreshAll([i])}async createFile(t,e){var s;let i=e?((s=this.delegate.find(e))==null?void 0:s.data.path)??e:this.rootPath,n=await this.callbacks.createFileOrFolder({path:i,type:"file",name:t}).then(this.handleResponse);n!=null&&n.info&&(this.delegate.create({parentId:e,index:0,data:n.info}),this.onChange(this.delegate.data),await this.refreshAll([i]))}async createFolder(t,e){var s;let i=e?((s=this.delegate.find(e))==null?void 0:s.data.path)??e:this.rootPath,n=await this.callbacks.createFileOrFolder({path:i,type:"directory",name:t}).then(this.handleResponse);n!=null&&n.info&&(this.delegate.create({parentId:e,index:0,data:n.info}),this.onChange(this.delegate.data),await this.refreshAll([i]))}async delete(t){let e=this.delegate.find(t);e&&(await this.callbacks.deleteFileOrFolder({path:e.data.path}).then(this.handleResponse),this.delegate.drop({id:t}),this.onChange(this.delegate.data))}};const Re=ye(t=>{let e=t(ot);return Ye(e,"no requestClientAtom set"),new ta({listFiles:e.sendListFiles,createFileOrFolder:e.sendCreateFileOrFolder,deleteFileOrFolder:e.sendDeleteFileOrFolder,renameFileOrFolder:e.sendRenameFileOrFolder})}),aa=ye({});async function ia(){await $e.get(Re).refreshAll([])}var ra=ie(),na=1024*1024*100;function Ae(t){let e=(0,ra.c)(7),i;e[0]===t?i=e[1]:(i=t===void 0?{}:t,e[0]=t,e[1]=i);let n=i,{sendCreateFileOrFolder:s}=pe(),r;e[2]===s?r=e[3]:(r=async f=>{for(let h of f){let m=ha(ca(h)),l="";m&&(l=he.guessDeliminator(m).dirname(m));let u=(await qt(h)).split(",")[1];await s({path:l,type:"file",name:h.name,contents:u})}await ia()},e[2]=s,e[3]=r);let d;return e[4]!==n||e[5]!==r?(d={multiple:!0,maxSize:na,onError:da,onDropRejected:sa,onDrop:r,...n},e[4]=n,e[5]=r,e[6]=d):d=e[6],Ot(d)}function sa(t){W({title:"File upload failed",description:(0,a.jsx)("div",{className:"flex flex-col gap-1",children:t.map(la)}),variant:"danger"})}function la(t){return(0,a.jsxs)("div",{children:[t.file.name," (",t.errors.map(oa).join(", "),")"]},t.file.name)}function oa(t){return t.message}function da(t){Je.error(t),W({title:"File upload failed",description:t.message,variant:"danger"})}function ca(t){if(t.webkitRelativePath)return t.webkitRelativePath;if("path"in t&&typeof t.path=="string")return t.path;if("relativePath"in t&&typeof t.relativePath=="string")return t.relativePath}function ha(t){if(t)return t.replace(/^\/+/,"")}var X=ie(),ma=Ue("marimo:showHiddenFiles",!0,Ke,{getOnInit:!0}),We=F.createContext(null);const pa=t=>{let e=(0,X.c)(68),{height:i}=t,n=(0,F.useRef)(null),s=Yt(),[r]=ce(Re),d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[0]=d):d=e[0];let[f,h]=(0,F.useState)(d),[m,l]=(0,F.useState)(null),[u,v]=ce(ma),{openPrompt:g}=Ne(),[c,y]=ce(aa),C;e[1]===r?C=e[2]:(C=()=>r.initialize(h),e[1]=r,e[2]=C);let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=[],e[3]=x):x=e[3];let{isPending:S,error:k}=Se(C,x),b;e[4]!==c||e[5]!==r?(b=()=>{r.refreshAll(Object.keys(c).filter(p=>c[p]))},e[4]=c,e[5]=r,e[6]=b):b=e[6];let o=A(b),j;e[7]!==v||e[8]!==u?(j=()=>{v(!u)},e[7]=v,e[8]=u,e[9]=j):j=e[9];let _=A(j),P;e[10]!==g||e[11]!==r?(P=async()=>{g({title:"Folder name",onConfirm:async p=>{r.createFolder(p,null)}})},e[10]=g,e[11]=r,e[12]=P):P=e[12];let N=A(P),O;e[13]!==g||e[14]!==r?(O=async()=>{g({title:"File name",onConfirm:async p=>{r.createFile(p,null)}})},e[13]=g,e[14]=r,e[15]=O):O=e[15];let se=A(O),Y;e[16]===y?Y=e[17]:(Y=()=>{var p;(p=n.current)==null||p.closeAll(),y({})},e[16]=y,e[17]=Y);let le=A(Y),G;e[18]!==f||e[19]!==u?(G=Ee(f,u),e[18]=f,e[19]=u,e[20]=G):G=e[20];let oe=G;if(S){let p;return e[21]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(kt,{size:"medium",centered:!0}),e[21]=p):p=e[21],p}if(k){let p;return e[22]===k?p=e[23]:(p=(0,a.jsx)(De,{error:k}),e[22]=k,e[23]=p),p}if(m){let p;e[24]===Symbol.for("react.memo_cache_sentinel")?(p=()=>l(null),e[24]=p):p=e[24];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=(0,a.jsx)(I,{onClick:p,"data-testid":"file-explorer-back-button",variant:"text",size:"xs",className:"mb-0",children:(0,a.jsx)(dt,{size:16})}),e[25]=w):w=e[25];let z;e[26]===m.name?z=e[27]:(z=(0,a.jsxs)("div",{className:"flex items-center pl-1 pr-3 shrink-0 border-b justify-between",children:[w,(0,a.jsx)("span",{className:"font-bold",children:m.name})]}),e[26]=m.name,e[27]=z);let L;e[28]!==m.path||e[29]!==r?(L=He=>Ie(He,r.relativeFromRoot(m.path)),e[28]=m.path,e[29]=r,e[30]=L):L=e[30];let U;e[31]!==m||e[32]!==L?(U=(0,a.jsx)(F.Suspense,{children:(0,a.jsx)(ea,{onOpenNotebook:L,file:m})}),e[31]=m,e[32]=L,e[33]=U):U=e[33];let te;return e[34]!==z||e[35]!==U?(te=(0,a.jsxs)(a.Fragment,{children:[z,U]}),e[34]=z,e[35]=U,e[36]=te):te=e[36],te}let E;e[37]!==le||e[38]!==se||e[39]!==N||e[40]!==_||e[41]!==o||e[42]!==r?(E=(0,a.jsx)(xa,{onRefresh:o,onHidden:_,onCreateFile:se,onCreateFolder:N,onCollapseAll:le,tree:r}),e[37]=le,e[38]=se,e[39]=N,e[40]=_,e[41]=o,e[42]=r,e[43]=E):E=e[43];let de=i-33,H,T,B;e[44]===r?(H=e[45],T=e[46],B=e[47]):(H=async p=>{let{ids:w}=p;for(let z of w)await r.delete(z)},T=async p=>{let{id:w,name:z}=p;await r.rename(w,z)},B=async p=>{let{dragIds:w,parentId:z}=p;await r.move(w,z)},e[44]=r,e[45]=H,e[46]=T,e[47]=B);let Q;e[48]===Symbol.for("react.memo_cache_sentinel")?(Q=p=>{let w=p[0];w&&(w.data.isDirectory||l(w.data))},e[48]=Q):Q=e[48];let $;e[49]!==c||e[50]!==y||e[51]!==r?($=async p=>{if(await r.expand(p)){let w=c[p]??!1;y({...c,[p]:!w})}},e[49]=c,e[50]=y,e[51]=r,e[52]=$):$=e[52];let q;e[53]!==s||e[54]!==c||e[55]!==de||e[56]!==H||e[57]!==T||e[58]!==B||e[59]!==$||e[60]!==oe?(q=(0,a.jsx)(Et,{width:"100%",ref:n,height:de,className:"h-full",data:oe,initialOpenState:c,openByDefault:!1,dndManager:s,renderCursor:ba,disableDrop:wa,onDelete:H,onRename:T,onMove:B,onSelect:Q,onToggle:$,padding:15,rowHeight:30,indent:fa,overscanCount:1e3,disableMultiSelection:!0,children:ga}),e[53]=s,e[54]=c,e[55]=de,e[56]=H,e[57]=T,e[58]=B,e[59]=$,e[60]=oe,e[61]=q):q=e[61];let V;e[62]!==q||e[63]!==r?(V=(0,a.jsx)(We,{value:r,children:q}),e[62]=q,e[63]=r,e[64]=V):V=e[64];let ee;return e[65]!==E||e[66]!==V?(ee=(0,a.jsxs)(a.Fragment,{children:[E,V]}),e[65]=E,e[66]=V,e[67]=ee):ee=e[67],ee};var fa=15,xa=t=>{let e=(0,X.c)(34),{onRefresh:i,onHidden:n,onCreateFile:s,onCreateFolder:r,onCollapseAll:d}=t,f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={noDrag:!0,noDragEventsBubbling:!0},e[0]=f):f=e[0];let{getRootProps:h,getInputProps:m}=Ae(f),l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(Ce,{size:16}),e[1]=l):l=e[1];let u;e[2]===s?u=e[3]:(u=(0,a.jsx)(M,{content:"Add file",children:(0,a.jsx)(I,{"data-testid":"file-explorer-add-file-button",onClick:s,variant:"text",size:"xs",children:l})}),e[2]=s,e[3]=u);let v;e[4]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(_e,{size:16}),e[4]=v):v=e[4];let g;e[5]===r?g=e[6]:(g=(0,a.jsx)(M,{content:"Add folder",children:(0,a.jsx)(I,{"data-testid":"file-explorer-add-folder-button",onClick:r,variant:"text",size:"xs",children:v})}),e[5]=r,e[6]=g);let c;e[7]===h?c=e[8]:(c=h({}),e[7]=h,e[8]=c);let y,C;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=et({variant:"text",size:"xs"}),C=(0,a.jsx)(_t,{size:16}),e[9]=y,e[10]=C):(y=e[9],C=e[10]);let x;e[11]===c?x=e[12]:(x=(0,a.jsx)(M,{content:"Upload file",children:(0,a.jsx)("button",{"data-testid":"file-explorer-upload-button",...c,className:y,children:C})}),e[11]=c,e[12]=x);let S;e[13]===m?S=e[14]:(S=m({}),e[13]=m,e[14]=S);let k;e[15]===S?k=e[16]:(k=(0,a.jsx)("input",{...S,type:"file"}),e[15]=S,e[16]=k);let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)(Ft,{size:16}),e[17]=b):b=e[17];let o;e[18]===i?o=e[19]:(o=(0,a.jsx)(M,{content:"Refresh",children:(0,a.jsx)(I,{"data-testid":"file-explorer-refresh-button",onClick:i,variant:"text",size:"xs",children:b})}),e[18]=i,e[19]=o);let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j=(0,a.jsx)(vt,{size:16}),e[20]=j):j=e[20];let _;e[21]===n?_=e[22]:(_=(0,a.jsx)(M,{content:"Toggle hidden files",children:(0,a.jsx)(I,{"data-testid":"file-explorer-hidden-files-button",onClick:n,variant:"text",size:"xs",children:j})}),e[21]=n,e[22]=_);let P;e[23]===Symbol.for("react.memo_cache_sentinel")?(P=(0,a.jsx)(Kt,{size:16}),e[23]=P):P=e[23];let N;e[24]===d?N=e[25]:(N=(0,a.jsx)(M,{content:"Collapse all folders",children:(0,a.jsx)(I,{"data-testid":"file-explorer-collapse-button",onClick:d,variant:"text",size:"xs",children:P})}),e[24]=d,e[25]=N);let O;return e[26]!==k||e[27]!==o||e[28]!==_||e[29]!==N||e[30]!==u||e[31]!==g||e[32]!==x?(O=(0,a.jsxs)("div",{className:"flex items-center justify-end px-2 shrink-0 border-b",children:[u,g,x,k,o,_,N]}),e[26]=k,e[27]=o,e[28]=_,e[29]=N,e[30]=u,e[31]=g,e[32]=x,e[33]=O):O=e[33],O},ua=t=>{let e=(0,X.c)(9),{node:i,onOpenMarimoFile:n}=t,s;e[0]===i?s=e[1]:(s=f=>{i.data.isDirectory||(f.stopPropagation(),i.select())},e[0]=i,e[1]=s);let r;e[2]!==i.data.isMarimoFile||e[3]!==n?(r=i.data.isMarimoFile&&!re()&&(0,a.jsxs)("span",{className:"shrink-0 ml-2 text-sm hidden group-hover:inline hover:underline",onClick:n,children:["open ",(0,a.jsx)(fe,{className:"inline ml-1",size:12})]}),e[2]=i.data.isMarimoFile,e[3]=n,e[4]=r):r=e[4];let d;return e[5]!==i.data.name||e[6]!==s||e[7]!==r?(d=(0,a.jsxs)("span",{className:"flex-1 overflow-hidden text-ellipsis",onClick:s,children:[i.data.name,r]}),e[5]=i.data.name,e[6]=s,e[7]=r,e[8]=d):d=e[8],d},ja=t=>{let e=(0,X.c)(10),{node:i}=t,n=(0,F.useRef)(null),s,r;e[0]===i.data.name?(s=e[1],r=e[2]):(s=()=>{var m,l;(m=n.current)==null||m.focus(),(l=n.current)==null||l.setSelectionRange(0,i.data.name.lastIndexOf("."))},r=[i.data.name],e[0]=i.data.name,e[1]=s,e[2]=r),(0,F.useEffect)(s,r);let d,f;e[3]===i?(d=e[4],f=e[5]):(d=()=>i.reset(),f=m=>{m.key==="Escape"&&i.reset(),m.key==="Enter"&&i.submit(m.currentTarget.value)},e[3]=i,e[4]=d,e[5]=f);let h;return e[6]!==i.data.name||e[7]!==d||e[8]!==f?(h=(0,a.jsx)("input",{ref:n,className:"flex-1 bg-transparent border border-border text-muted-foreground",defaultValue:i.data.name,onClick:ka,onBlur:d,onKeyDown:f}),e[6]=i.data.name,e[7]=d,e[8]=f,e[9]=h):h=e[9],h},ga=({node:t,style:e,dragHandle:i})=>{let{openFile:n,sendCreateFileOrFolder:s,sendFileDetails:r}=pe(),d=ae(ve),f=t.data.isDirectory?"directory":bt(t.data.name),h=wt[f],{openConfirm:m,openPrompt:l}=Ne(),{createNewCell:u}=Ze(),v=Bt(),g=o=>{u({code:o,before:!1,cellId:v??"__end__"})},c=(0,F.use)(We),y=async o=>{Ie(o,c?c.relativeFromRoot(t.data.path):t.data.path)},C=async o=>{o.stopPropagation(),o.preventDefault(),m({title:"Delete file",description:`Are you sure you want to delete ${t.data.name}?`,confirmAction:(0,a.jsx)(Mt,{onClick:async()=>{await t.tree.delete(t.id)},"aria-label":"Confirm",children:"Delete"})})},x=A(async()=>{t.open(),l({title:"Folder name",onConfirm:async o=>{c==null||c.createFolder(o,t.id)}})}),S=A(async()=>{t.open(),l({title:"File name",onConfirm:async o=>{c==null||c.createFile(o,t.id)}})}),k=A(async()=>{var P;if(!c||t.data.isDirectory)return;let[o,j]=Pt(t.data.name),_=`${o}_copy${j}`;try{let N=await r({path:t.data.path}),O=((P=t.parent)==null?void 0:P.data.path)||"";await s({path:O,type:"file",name:_,contents:N.contents?btoa(N.contents):void 0}),await c.refreshAll([O])}catch{W({title:"Failed to duplicate file",description:"Unable to create a duplicate of the file",variant:"danger"})}}),b=()=>{let o={size:14,strokeWidth:1.5,className:"mr-2"};return(0,a.jsxs)(jt,{align:"end",className:"no-print w-[220px]",onClick:j=>j.stopPropagation(),onCloseAutoFocus:j=>j.preventDefault(),children:[!t.data.isDirectory&&(0,a.jsxs)(D,{onSelect:()=>t.select(),children:[(0,a.jsx)(Xt,{...o}),"Open file"]}),!t.data.isDirectory&&!re()&&(0,a.jsxs)(D,{onSelect:()=>{n({path:t.data.path})},children:[(0,a.jsx)(fe,{...o}),"Open file in external editor"]}),t.data.isDirectory&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(D,{onSelect:()=>S(),children:[(0,a.jsx)(Ce,{...o}),"Create file"]}),(0,a.jsxs)(D,{onSelect:()=>x(),children:[(0,a.jsx)(_e,{...o}),"Create folder"]}),(0,a.jsx)(Z,{})]}),(0,a.jsxs)(D,{onSelect:()=>t.edit(),children:[(0,a.jsx)(Zt,{...o}),"Rename"]}),!t.data.isDirectory&&(0,a.jsxs)(D,{onSelect:k,children:[(0,a.jsx)(we,{...o}),"Duplicate"]}),(0,a.jsxs)(D,{onSelect:async()=>{await ne(t.data.path),W({title:"Copied to clipboard"})},children:[(0,a.jsx)(Pe,{...o}),"Copy path"]}),c&&(0,a.jsxs)(D,{onSelect:async()=>{await ne(c.relativeFromRoot(t.data.path)),W({title:"Copied to clipboard"})},children:[(0,a.jsx)(Pe,{...o}),"Copy relative path"]}),(0,a.jsx)(Z,{}),(0,a.jsxs)(D,{onSelect:()=>{let{path:j}=t.data;g(Fe[f](j))},children:[(0,a.jsx)(ct,{...o}),"Insert snippet for reading file"]}),(0,a.jsxs)(D,{onSelect:async()=>{W({title:"Copied to clipboard",description:"Code to open the file has been copied to your clipboard. You can also drag and drop this file into the editor"});let{path:j}=t.data;await ne(Fe[f](j))},children:[(0,a.jsx)(Le,{...o}),"Copy snippet for reading file"]}),t.data.isMarimoFile&&!re()&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Z,{}),(0,a.jsxs)(D,{onSelect:y,children:[(0,a.jsx)(Jt,{...o}),"Open notebook"]})]}),(0,a.jsx)(Z,{}),!t.data.isDirectory&&!d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(D,{onSelect:async()=>{let j=(await r({path:t.data.path})).contents||"";be(new Blob([j]),t.data.name)},children:[(0,a.jsx)(ke,{...o}),"Download"]}),(0,a.jsx)(Z,{})]}),(0,a.jsxs)(D,{onSelect:C,variant:"danger",children:[(0,a.jsx)(Dt,{...o}),"Delete"]})]})};return(0,a.jsxs)("div",{style:e,ref:i,className:me("flex items-center cursor-pointer ml-1 text-muted-foreground whitespace-nowrap group"),draggable:!0,onClick:o=>{o.stopPropagation(),t.data.isDirectory&&t.toggle()},children:[(0,a.jsx)(ya,{node:t}),(0,a.jsxs)("span",{className:me("flex items-center pl-1 py-1 cursor-pointer hover:bg-accent/50 hover:text-accent-foreground rounded-l flex-1 overflow-hidden group",t.willReceiveDrop&&t.data.isDirectory&&"bg-accent/80 hover:bg-accent/80 text-accent-foreground"),children:[t.data.isMarimoFile?(0,a.jsx)("img",{src:Ut,className:"w-5 h-5 shrink-0 mr-2 filter grayscale",alt:"Marimo"}):(0,a.jsx)(h,{className:"w-5 h-5 shrink-0 mr-2",strokeWidth:1.5}),t.isEditing?(0,a.jsx)(ja,{node:t}):(0,a.jsx)(ua,{node:t,onOpenMarimoFile:y}),(0,a.jsxs)(gt,{modal:!1,children:[(0,a.jsx)(ut,{asChild:!0,tabIndex:-1,onClick:o=>o.stopPropagation(),children:(0,a.jsx)(I,{"data-testid":"file-explorer-more-button",variant:"text",tabIndex:-1,size:"xs",className:"mb-0","aria-label":"More options",children:(0,a.jsx)(yt,{strokeWidth:2,className:"w-5 h-5 hidden group-hover:block"})})}),b()]})]})]})},ya=t=>{let e=(0,X.c)(3),{node:i}=t;if(!i.data.isDirectory){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)("span",{className:"w-5 h-5 shrink-0"}),e[0]=s):s=e[0],s}let n;return e[1]===i.isOpen?n=e[2]:(n=i.isOpen?(0,a.jsx)(mt,{className:"w-5 h-5 shrink-0"}):(0,a.jsx)(ft,{className:"w-5 h-5 shrink-0"}),e[1]=i.isOpen,e[2]=n),n};function Ie(t,e){t.stopPropagation(),t.preventDefault(),Lt(e)}function Ee(t,e){if(e)return t;let i=[];for(let n of t){if(va(n.name))continue;let s=n;if(n.children){let r=Ee(n.children,e);r!==n.children&&(s={...n,children:r})}i.push(s)}return i}function va(t){return!!t.startsWith(".")}function ba(){return null}function wa(t){let{parentNode:e}=t;return!e.data.isDirectory}function ka(t){return t.stopPropagation()}var Fa=ie(),Ca=()=>{let t=(0,Fa.c)(20),{ref:e,height:i}=Vt(),n=i===void 0?1:i,s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={noClick:!0,noKeyboard:!0},t[0]=s):s=t[0];let{getRootProps:r,getInputProps:d,isDragActive:f}=Ae(s),h;t[1]===r?h=t[2]:(h=r(),t[1]=r,t[2]=h);let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=me("flex flex-col flex-1 overflow-hidden relative"),t[3]=m):m=t[3];let l;t[4]===d?l=t[5]:(l=d(),t[4]=d,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,a.jsx)("input",{...l}),t[6]=l,t[7]=u);let v;t[8]===f?v=t[9]:(v=f&&(0,a.jsx)("div",{className:"absolute inset-0 flex items-center uppercase justify-center text-xl font-bold text-primary/90 bg-accent/85 z-10 border-2 border-dashed border-primary/90 rounded-lg pointer-events-none",children:"Drop files here"}),t[8]=f,t[9]=v);let g;t[10]===n?g=t[11]:(g=(0,a.jsx)(pa,{height:n}),t[10]=n,t[11]=g);let c;t[12]!==e||t[13]!==g?(c=(0,a.jsx)("div",{ref:e,className:"flex flex-col flex-1 overflow-hidden",children:g}),t[12]=e,t[13]=g,t[14]=c):c=t[14];let y;return t[15]!==h||t[16]!==u||t[17]!==v||t[18]!==c?(y=(0,a.jsx)(Qt,{children:(0,a.jsxs)("div",{...h,className:m,children:[u,v,c]})}),t[15]=h,t[16]=u,t[17]=v,t[18]=c,t[19]=y):y=t[19],y};export{Ca as default}; diff --git a/docs/assets/file-plus-corner-BO_uS88s.js b/docs/assets/file-plus-corner-BO_uS88s.js new file mode 100644 index 0000000..897ffa7 --- /dev/null +++ b/docs/assets/file-plus-corner-BO_uS88s.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]]);export{t}; diff --git a/docs/assets/file-video-camera-CZUg-nFA.js b/docs/assets/file-video-camera-CZUg-nFA.js new file mode 100644 index 0000000..eb9095d --- /dev/null +++ b/docs/assets/file-video-camera-CZUg-nFA.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var e=a("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),h=a("file-headphone",[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]]),t=a("file-image",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]),v=a("file-video-camera",[["path",{d:"M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2",key:"jrl274"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157",key:"17aeo9"}],["rect",{width:"7",height:"6",x:"3",y:"16",rx:"1",key:"s27ndx"}]]);export{e as i,t as n,h as r,v as t}; diff --git a/docs/assets/fish-D9dGscZt.js b/docs/assets/fish-D9dGscZt.js new file mode 100644 index 0000000..ed8205d --- /dev/null +++ b/docs/assets/fish-D9dGscZt.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Fish","fileTypes":["fish"],"firstLineMatch":"^#!.*\\\\bfish\\\\b","foldingStartMarker":"^\\\\s*(function|while|if|switch|for|begin)\\\\s.*$","foldingStopMarker":"^\\\\s*end\\\\s*$","name":"fish","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.fish"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.fish"}},"name":"string.quoted.double.fish","patterns":[{"include":"#variable"},{"match":"\\\\\\\\([\\"$]|$|\\\\\\\\)","name":"constant.character.escape.fish"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.fish"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.fish"}},"name":"string.quoted.single.fish","patterns":[{"match":"\\\\\\\\(['\\\\\\\\\`])","name":"constant.character.escape.fish"}]},{"captures":{"1":{"name":"punctuation.definition.comment.fish"}},"match":"(?^]|>>|\\\\^\\\\^)(&[-012])?|[012]([<>]|>>)(&[-012])?","name":"keyword.operator.redirect.fish"},{"match":"&","name":"keyword.operator.background.fish"},{"match":"\\\\*\\\\*|[*?]","name":"keyword.operator.glob.fish"},{"captures":{"1":{"name":"source.option.fish"}},"match":"\\\\s(-{1,2}[-0-9A-Z_a-z]+|-\\\\w)\\\\b"},{"include":"#variable"},{"include":"#escape"}],"repository":{"escape":{"patterns":[{"match":"\\\\\\\\[] \\"#$\\\\&-*;<>?\\\\[^abefnrtv{-~]","name":"constant.character.escape.single.fish"},{"match":"\\\\\\\\x\\\\h{1,2}","name":"constant.character.escape.hex-ascii.fish"},{"match":"\\\\\\\\X\\\\h{1,2}","name":"constant.character.escape.hex-byte.fish"},{"match":"\\\\\\\\[0-7]{1,3}","name":"constant.character.escape.octal.fish"},{"match":"\\\\\\\\u\\\\h{1,4}","name":"constant.character.escape.unicode-16-bit.fish"},{"match":"\\\\\\\\U\\\\h{1,8}","name":"constant.character.escape.unicode-32-bit.fish"},{"match":"\\\\\\\\c[A-Za-z]","name":"constant.character.escape.control.fish"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.fish"}},"match":"(\\\\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\\\\b","name":"variable.language.fish"},{"captures":{"1":{"name":"punctuation.definition.variable.fish"}},"match":"(\\\\$)[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.other.normal.fish"}]}},"scopeName":"source.fish"}`))];export{e as default}; diff --git a/docs/assets/flatten-Buk63LQO.js b/docs/assets/flatten-Buk63LQO.js new file mode 100644 index 0000000..c656778 --- /dev/null +++ b/docs/assets/flatten-Buk63LQO.js @@ -0,0 +1 @@ +import{t as r}from"./_baseFlatten-CLPh0yMf.js";function t(n){return n!=null&&n.length?r(n,1):[]}var e=t;export{e as t}; diff --git a/docs/assets/floating-outline-DqdzWKrn.js b/docs/assets/floating-outline-DqdzWKrn.js new file mode 100644 index 0000000..aa38151 --- /dev/null +++ b/docs/assets/floating-outline-DqdzWKrn.js @@ -0,0 +1 @@ +import{s as I}from"./chunk-LvLJmgfZ.js";import{u as j}from"./useEvent-DlWF5OMa.js";import{t as M}from"./react-BGmjiNul.js";import{nt as O,x as H}from"./cells-CmJW_FeD.js";import{t as S}from"./compiler-runtime-DeeZ7FnK.js";import{d as k}from"./hotkeys-uKX61F1_.js";import{t as $}from"./jsx-runtime-DN_bIXfG.js";import{t as x}from"./cn-C1rgT0yh.js";import{t as B}from"./mode-CXc0VeQq.js";var D=S(),h=I(M(),1);function L(){return B()==="edit"?document.getElementById("App"):void 0}function _(t){let e=(0,D.c)(7),[r,o]=(0,h.useState)(void 0),[i,s]=(0,h.useState)(void 0),l=(0,h.useRef)(null),n=(0,h.useRef)(null),f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=new Map,e[0]=f):f=e[0];let u=(0,h.useRef)(f),a,m;e[1]===t?(a=e[2],m=e[3]):(a=()=>t.length===0?void 0:(l.current=new IntersectionObserver(d=>{let v=!1;if(d.forEach(p=>{let b=p.target;p.isIntersecting?(!n.current||b.getBoundingClientRect().top{var v;if(d){let p=O(d[0]),b=t.map(T).filter(w=>"id"in p?w.id===p.id:w.textContent===d[0].textContent).indexOf(d[0]);u.current.set(d[0],b),(v=l.current)==null||v.observe(d[0])}}),()=>{l.current&&l.current.disconnect(),n.current=null}),m=[t],e[1]=t,e[2]=a,e[3]=m),(0,h.useEffect)(a,m);let c;return e[4]!==r||e[5]!==i?(c={activeHeaderId:r,activeOccurrences:i},e[4]=r,e[5]=i,e[6]=c):c=e[6],c}function T(t){let[e]=t;return e}function C(t){if(t.length===0)return[];let e=new Map;return t.map(r=>{let o="id"in r.by?r.by.id:r.by.path,i=e.get(o)??0;e.set(o,i+1);let s=N(r,i);return s?[s,o]:null}).filter(Boolean)}function E(t,e){let r=N(t,e);if(!r){k.warn("Could not find element for outline item",t);return}r.scrollIntoView({behavior:"smooth",block:"start"}),r.classList.add("outline-item-highlight"),setTimeout(()=>{r.classList.remove("outline-item-highlight")},3e3)}function N(t,e){return"id"in t.by?document.querySelectorAll(`[id="${CSS.escape(t.by.id)}"]`)[e]:document.evaluate(t.by.path,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}var y=S(),g=I($(),1);const A=()=>{let t=(0,y.c)(19),{items:e}=j(H),r;t[0]===e?r=t[1]:(r=C(e),t[0]=e,t[1]=r);let{activeHeaderId:o,activeOccurrences:i}=_(r),[s,l]=h.useState(!1);if(e.length<2)return null;let n,f,u;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>l(!0),f=()=>l(!1),u=x("fixed top-[25vh] right-8 z-10000","hidden md:block"),t[2]=n,t[3]=f,t[4]=u):(n=t[2],f=t[3],u=t[4]);let a=s?"-left-[280px] opacity-100":"left-[300px] opacity-0",m;t[5]===a?m=t[6]:(m=x("-top-4 max-h-[70vh] bg-background rounded-lg shadow-lg absolute overflow-auto transition-all duration-300 w-[300px] border",a),t[5]=a,t[6]=m);let c;t[7]!==o||t[8]!==i||t[9]!==e||t[10]!==m?(c=(0,g.jsx)(R,{className:m,items:e,activeHeaderId:o,activeOccurrences:i}),t[7]=o,t[8]=i,t[9]=e,t[10]=m,t[11]=c):c=t[11];let d;t[12]!==o||t[13]!==i||t[14]!==e?(d=(0,g.jsx)(P,{items:e,activeHeaderId:o,activeOccurrences:i}),t[12]=o,t[13]=i,t[14]=e,t[15]=d):d=t[15];let v;return t[16]!==c||t[17]!==d?(v=(0,g.jsxs)("div",{onMouseEnter:n,onMouseLeave:f,className:u,children:[c,d]}),t[16]=c,t[17]=d,t[18]=v):v=t[18],v},P=t=>{let e=(0,y.c)(8),{items:r,activeHeaderId:o,activeOccurrences:i}=t,s,l;if(e[0]!==o||e[1]!==i||e[2]!==r){let f=new Map;s="flex flex-col gap-4 items-end max-h-[70vh] overflow-hidden",l=r.map((u,a)=>{let m="id"in u.by?u.by.id:u.by.path,c=f.get(m)??0;return f.set(m,c+1),(0,g.jsx)("div",{className:x("h-[2px] bg-muted-foreground/60",u.level===1&&"w-5",u.level===2&&"w-4",u.level===3&&"w-3",u.level===4&&"w-2",c===i&&o===m&&"bg-foreground"),onClick:()=>E(u,c)},`${m}-${a}`)}),e[0]=o,e[1]=i,e[2]=r,e[3]=s,e[4]=l}else s=e[3],l=e[4];let n;return e[5]!==s||e[6]!==l?(n=(0,g.jsx)("div",{className:s,children:l}),e[5]=s,e[6]=l,e[7]=n):n=e[7],n},R=t=>{let e=(0,y.c)(11),{items:r,activeHeaderId:o,activeOccurrences:i,className:s}=t,l,n;if(e[0]!==o||e[1]!==i||e[2]!==s||e[3]!==r){let u=new Map;e[6]===s?l=e[7]:(l=x("flex flex-col overflow-auto py-4 pl-2",s),e[6]=s,e[7]=l),n=r.map((a,m)=>{let c="id"in a.by?a.by.id:a.by.path,d=u.get(c)??0;return u.set(c,d+1),(0,g.jsx)("div",{className:x("px-2 py-1 cursor-pointer hover:bg-accent/50 hover:text-accent-foreground rounded-l",a.level===1&&"font-semibold",a.level===2&&"ml-3",a.level===3&&"ml-6",a.level===4&&"ml-9",d===i&&o===c&&"text-accent-foreground"),onClick:()=>E(a,d),children:a.name},`${c}-${m}`)}),e[0]=o,e[1]=i,e[2]=s,e[3]=r,e[4]=l,e[5]=n}else l=e[4],n=e[5];let f;return e[8]!==l||e[9]!==n?(f=(0,g.jsx)("div",{className:l,children:n}),e[8]=l,e[9]=n,e[10]=f):f=e[10],f};export{_ as i,R as n,C as r,A as t}; diff --git a/docs/assets/flowDiagram-NV44I4VS-CkUxkQez.js b/docs/assets/flowDiagram-NV44I4VS-CkUxkQez.js new file mode 100644 index 0000000..933eebe --- /dev/null +++ b/docs/assets/flowDiagram-NV44I4VS-CkUxkQez.js @@ -0,0 +1,162 @@ +var P1;import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import{u as m1}from"./src-Bp_72rVO.js";import{c as et,g as st}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as k,r as Z}from"./src-faGJHwXX.js";import{$ as Yt,B as Ht,C as Xt,H as Mt,U as qt,_ as Qt,a as Zt,b as p1,s as Jt,u as te,v as ee,z as se}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as ie}from"./channel-BftudkVr.js";import{n as re,t as ue}from"./chunk-MI3HLSF2-CXMqGP2w.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import{o as ne}from"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import{r as oe,t as ae}from"./chunk-N4CR4FBY-DtYoI569.js";import{t as le}from"./chunk-FMBD7UC4-DYXO3edG.js";import{t as ce}from"./chunk-55IACEB6-DvJ_-Ku-.js";import{t as he}from"./chunk-QN33PNHL-C0IBWhei.js";var de="flowchart-",pe=(P1=class{constructor(){this.vertexCounter=0,this.config=p1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Ht,this.setAccDescription=se,this.setDiagramTitle=qt,this.getAccTitle=ee,this.getAccDescription=Qt,this.getDiagramTitle=Xt,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return Jt.sanitizeText(i,this.config)}lookUpDomId(i){for(let r of this.vertices.values())if(r.id===i)return r.domId;return i}addVertex(i,r,u,o,n,g,p={},c){var z,f;if(!i||i.trim().length===0)return;let a;if(c!==void 0){let d;d=c.includes(` +`)?c+` +`:`{ +`+c+` +}`,a=re(d,{schema:ue})}let y=this.edges.find(d=>d.id===i);if(y){let d=a;(d==null?void 0:d.animate)!==void 0&&(y.animate=d.animate),(d==null?void 0:d.animation)!==void 0&&(y.animation=d.animation),(d==null?void 0:d.curve)!==void 0&&(y.interpolate=d.curve);return}let T,A=this.vertices.get(i);if(A===void 0&&(A={id:i,labelType:"text",domId:de+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,A)),this.vertexCounter++,r===void 0?A.text===void 0&&(A.text=i):(this.config=p1(),T=this.sanitizeText(r.text.trim()),A.labelType=r.type,T.startsWith('"')&&T.endsWith('"')&&(T=T.substring(1,T.length-1)),A.text=T),u!==void 0&&(A.type=u),o==null||o.forEach(d=>{A.styles.push(d)}),n==null||n.forEach(d=>{A.classes.push(d)}),g!==void 0&&(A.dir=g),A.props===void 0?A.props=p:p!==void 0&&Object.assign(A.props,p),a!==void 0){if(a.shape){if(a.shape!==a.shape.toLowerCase()||a.shape.includes("_"))throw Error(`No such shape: ${a.shape}. Shape names should be lowercase.`);if(!ne(a.shape))throw Error(`No such shape: ${a.shape}.`);A.type=a==null?void 0:a.shape}a!=null&&a.label&&(A.text=a==null?void 0:a.label),a!=null&&a.icon&&(A.icon=a==null?void 0:a.icon,!((z=a.label)!=null&&z.trim())&&A.text===i&&(A.text="")),a!=null&&a.form&&(A.form=a==null?void 0:a.form),a!=null&&a.pos&&(A.pos=a==null?void 0:a.pos),a!=null&&a.img&&(A.img=a==null?void 0:a.img,!((f=a.label)!=null&&f.trim())&&A.text===i&&(A.text="")),a!=null&&a.constraint&&(A.constraint=a.constraint),a.w&&(A.assetWidth=Number(a.w)),a.h&&(A.assetHeight=Number(a.h))}}addSingleLink(i,r,u,o){let n={start:i,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Z.info("abc78 Got edge...",n);let g=u.text;if(g!==void 0&&(n.text=this.sanitizeText(g.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=g.type),u!==void 0&&(n.type=u.type,n.stroke=u.stroke,n.length=u.length>10?10:u.length),o&&!this.edges.some(p=>p.id===o))n.id=o,n.isUserDefinedId=!0;else{let p=this.edges.filter(c=>c.start===n.start&&c.end===n.end);p.length===0?n.id=et(n.start,n.end,{counter:0,prefix:"L"}):n.id=et(n.start,n.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Z.info("Pushing edge..."),this.edges.push(n);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)}isLinkData(i){return typeof i=="object"&&!!i&&"id"in i&&typeof i.id=="string"}addLink(i,r,u){let o=this.isLinkData(u)?u.id.replace("@",""):void 0;Z.info("addLink",i,r,o);for(let n of i)for(let g of r){let p=n===i[i.length-1],c=g===r[0];p&&c?this.addSingleLink(n,g,u,o):this.addSingleLink(n,g,u,void 0)}}updateLinkInterpolate(i,r){i.forEach(u=>{u==="default"?this.edges.defaultInterpolate=r:this.edges[u].interpolate=r})}updateLink(i,r){i.forEach(u=>{var o,n,g,p,c,a;if(typeof u=="number"&&u>=this.edges.length)throw Error(`The index ${u} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);u==="default"?this.edges.defaultStyle=r:(this.edges[u].style=r,(((n=(o=this.edges[u])==null?void 0:o.style)==null?void 0:n.length)??0)>0&&!((p=(g=this.edges[u])==null?void 0:g.style)!=null&&p.some(y=>y==null?void 0:y.startsWith("fill")))&&((a=(c=this.edges[u])==null?void 0:c.style)==null||a.push("fill:none")))})}addClass(i,r){let u=r.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(o=>{let n=this.classes.get(o);n===void 0&&(n={id:o,styles:[],textStyles:[]},this.classes.set(o,n)),u==null||u.forEach(g=>{if(/color/.exec(g)){let p=g.replace("fill","bgFill");n.textStyles.push(p)}n.styles.push(g)})})}setDirection(i){this.direction=i.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,r){for(let u of i.split(",")){let o=this.vertices.get(u);o&&o.classes.push(r);let n=this.edges.find(p=>p.id===u);n&&n.classes.push(r);let g=this.subGraphLookup.get(u);g&&g.classes.push(r)}}setTooltip(i,r){if(r!==void 0){r=this.sanitizeText(r);for(let u of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(u):u,r)}}setClickFun(i,r,u){let o=this.lookUpDomId(i);if(p1().securityLevel!=="loose"||r===void 0)return;let n=[];if(typeof u=="string"){n=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p{let p=document.querySelector(`[id="${o}"]`);p!==null&&p.addEventListener("click",()=>{st.runFunc(r,...n)},!1)}))}setLink(i,r,u){i.split(",").forEach(o=>{let n=this.vertices.get(o);n!==void 0&&(n.link=st.formatUrl(r,this.config),n.linkTarget=u)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,r,u){i.split(",").forEach(o=>{this.setClickFun(o,r,u)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(r=>{r(i)})}getDirection(){var i;return(i=this.direction)==null?void 0:i.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){let r=m1(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=m1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),m1(i).select("svg").selectAll("g.node").on("mouseover",u=>{var g;let o=m1(u.currentTarget);if(o.attr("title")===null)return;let n=(g=u.currentTarget)==null?void 0:g.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(o.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.bottom+"px"),r.html(r.html().replace(/<br\/>/g,"
")),o.classed("hover",!0)}).on("mouseout",u=>{r.transition().duration(500).style("opacity",0),m1(u.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=p1(),Zt()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,r,u){let o=i.text.trim(),n=u.text;i===u&&/\s/.exec(u.text)&&(o=void 0);let g=k(T=>{let A={boolean:{},number:{},string:{}},z=[],f;return{nodeList:T.filter(function(d){let K=typeof d;return d.stmt&&d.stmt==="dir"?(f=d.value,!1):d.trim()===""?!1:K in A?A[K].hasOwnProperty(d)?!1:A[K][d]=!0:z.includes(d)?!1:z.push(d)}),dir:f}},"uniq")(r.flat()),p=g.nodeList,c=g.dir,a=p1().flowchart??{};if(c??(c=a.inheritDir?this.getDirection()??p1().direction??void 0:void 0),this.version==="gen-1")for(let T=0;T2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===i)return{result:!0,count:0};let o=0,n=1;for(;o=0){let p=this.indexNodes2(i,g);if(p.result)return{result:!0,count:n+p.count};n+=p.count}o+=1}return{result:!1,count:n}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let r=i.trim(),u="arrow_open";switch(r[0]){case"<":u="arrow_point",r=r.slice(1);break;case"x":u="arrow_cross",r=r.slice(1);break;case"o":u="arrow_circle",r=r.slice(1);break}let o="normal";return r.includes("=")&&(o="thick"),r.includes(".")&&(o="dotted"),{type:u,stroke:o}}countChar(i,r){let u=r.length,o=0;for(let n=0;n":o="arrow_point",r.startsWith("<")&&(o="double_"+o,u=u.slice(1));break;case"o":o="arrow_circle",r.startsWith("o")&&(o="double_"+o,u=u.slice(1));break}let n="normal",g=u.length-1;u.startsWith("=")&&(n="thick"),u.startsWith("~")&&(n="invisible");let p=this.countChar(".",u);return p&&(n="dotted",g=p),{type:o,stroke:n,length:g}}destructLink(i,r){let u=this.destructEndLink(i),o;if(r){if(o=this.destructStartLink(r),o.stroke!==u.stroke)return{type:"INVALID",stroke:"INVALID"};if(o.type==="arrow_open")o.type=u.type;else{if(o.type!==u.type)return{type:"INVALID",stroke:"INVALID"};o.type="double_"+o.type}return o.type==="double_arrow"&&(o.type="double_arrow_point"),o.length=u.length,o}return u}exists(i,r){for(let u of i)if(u.nodes.includes(r))return!0;return!1}makeUniq(i,r){let u=[];return i.nodes.forEach((o,n)=>{this.exists(r,o)||u.push(i.nodes[n])}),{nodes:u}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,r){return i.find(u=>u.id===r)}destructEdgeType(i){let r="none",u="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":u=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=i.replace("double_",""),u=r;break}return{arrowTypeStart:r,arrowTypeEnd:u}}addNodeFromVertex(i,r,u,o,n,g){var y;let p=u.get(i.id),c=o.get(i.id)??!1,a=this.findNode(r,i.id);if(a)a.cssStyles=i.styles,a.cssCompiledStyles=this.getCompiledStyles(i.classes),a.cssClasses=i.classes.join(" ");else{let T={id:i.id,label:i.text,labelStyle:"",parentId:p,padding:((y=n.flowchart)==null?void 0:y.padding)||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:g,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};c?r.push({...T,isGroup:!0,shape:"rect"}):r.push({...T,isGroup:!1,shape:this.getTypeFromVertex(i)})}}getCompiledStyles(i){let r=[];for(let u of i){let o=this.classes.get(u);o!=null&&o.styles&&(r=[...r,...o.styles??[]].map(n=>n.trim())),o!=null&&o.textStyles&&(r=[...r,...o.textStyles??[]].map(n=>n.trim()))}return r}getData(){let i=p1(),r=[],u=[],o=this.getSubGraphs(),n=new Map,g=new Map;for(let c=o.length-1;c>=0;c--){let a=o[c];a.nodes.length>0&&g.set(a.id,!0);for(let y of a.nodes)n.set(y,a.id)}for(let c=o.length-1;c>=0;c--){let a=o[c];r.push({id:a.id,label:a.title,labelStyle:"",parentId:n.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:"rect",dir:a.dir,isGroup:!0,look:i.look})}this.getVertices().forEach(c=>{this.addNodeFromVertex(c,r,n,g,i,i.look||"classic")});let p=this.getEdges();return p.forEach((c,a)=>{var f;let{arrowTypeStart:y,arrowTypeEnd:T}=this.destructEdgeType(c.type),A=[...p.defaultStyle??[]];c.style&&A.push(...c.style);let z={id:et(c.start,c.end,{counter:a,prefix:"L"},c.id),isUserDefinedId:c.isUserDefinedId,start:c.start,end:c.end,type:c.type??"normal",label:c.text,labelpos:"c",thickness:c.stroke,minlen:c.length,classes:(c==null?void 0:c.stroke)==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:(c==null?void 0:c.stroke)==="invisible"||(c==null?void 0:c.type)==="arrow_open"?"none":y,arrowTypeEnd:(c==null?void 0:c.stroke)==="invisible"||(c==null?void 0:c.type)==="arrow_open"?"none":T,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(c.classes),labelStyle:A,style:A,pattern:c.stroke,look:i.look,animate:c.animate,animation:c.animation,curve:c.interpolate||this.edges.defaultInterpolate||((f=i.flowchart)==null?void 0:f.curve)};u.push(z)}),{nodes:r,edges:u,other:{},config:i}}defaultConfig(){return te.flowchart}},k(P1,"FlowDB"),P1),ge={getClasses:k(function(s,i){return i.db.getClasses()},"getClasses"),draw:k(async function(s,i,r,u){var z;Z.info("REF0:"),Z.info("Drawing state diagram (v2)",i);let{securityLevel:o,flowchart:n,layout:g}=p1(),p;o==="sandbox"&&(p=m1("#i"+i));let c=o==="sandbox"?p.nodes()[0].contentDocument:document;Z.debug("Before getData: ");let a=u.db.getData();Z.debug("Data: ",a);let y=ce(i,o),T=u.db.getDirection();a.type=u.type,a.layoutAlgorithm=ae(g),a.layoutAlgorithm==="dagre"&&g==="elk"&&Z.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),a.direction=T,a.nodeSpacing=(n==null?void 0:n.nodeSpacing)||50,a.rankSpacing=(n==null?void 0:n.rankSpacing)||50,a.markers=["point","circle","cross"],a.diagramId=i,Z.debug("REF1:",a),await oe(a,y);let A=((z=a.config.flowchart)==null?void 0:z.diagramPadding)??8;st.insertTitle(y,"flowchartTitleText",(n==null?void 0:n.titleTopMargin)||0,u.db.getDiagramTitle()),he(y,A,"flowchart",(n==null?void 0:n.useMaxWidth)||!1);for(let f of a.nodes){let d=m1(`#${i} [id="${f.id}"]`);if(!d||!f.link)continue;let K=c.createElementNS("http://www.w3.org/2000/svg","a");K.setAttributeNS("http://www.w3.org/2000/svg","class",f.cssClasses),K.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),o==="sandbox"?K.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):f.linkTarget&&K.setAttributeNS("http://www.w3.org/2000/svg","target",f.linkTarget);let g1=d.insert(function(){return K},":first-child"),A1=d.select(".label-container");A1&&g1.append(function(){return A1.node()});let b1=d.select(".label");b1&&g1.append(function(){return b1.node()})}},"draw")},it=(function(){var s=k(function(h,D,b,l){for(b||(b={}),l=h.length;l--;b[h[l]]=D);return b},"o"),i=[1,4],r=[1,3],u=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],n=[2,2],g=[1,13],p=[1,14],c=[1,15],a=[1,16],y=[1,23],T=[1,25],A=[1,26],z=[1,27],f=[1,49],d=[1,48],K=[1,29],g1=[1,30],A1=[1,31],b1=[1,32],O1=[1,33],$=[1,44],L=[1,46],w=[1,42],I=[1,47],N=[1,43],R=[1,50],P=[1,45],G=[1,51],O=[1,52],M1=[1,34],U1=[1,35],V1=[1,36],W1=[1,37],h1=[1,57],S=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],J=[1,61],t1=[1,60],e1=[1,62],E1=[8,9,11,75,77,78],rt=[1,78],C1=[1,91],x1=[1,96],D1=[1,95],T1=[1,92],S1=[1,88],F1=[1,94],_1=[1,90],B1=[1,97],v1=[1,93],$1=[1,98],L1=[1,89],k1=[8,9,10,11,40,75,77,78],U=[8,9,10,11,40,46,75,77,78],j=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ut=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],w1=[44,60,89,102,105,106,109,111,114,115,116],nt=[1,121],ot=[1,122],z1=[1,124],K1=[1,123],at=[44,60,62,74,89,102,105,106,109,111,114,115,116],lt=[1,133],ct=[1,147],ht=[1,148],dt=[1,149],pt=[1,150],gt=[1,135],At=[1,137],bt=[1,141],kt=[1,142],ft=[1,143],yt=[1,144],mt=[1,145],Et=[1,146],Ct=[1,151],xt=[1,152],Dt=[1,131],Tt=[1,132],St=[1,139],Ft=[1,134],_t=[1,138],Bt=[1,136],X1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],vt=[1,154],$t=[1,156],_=[8,9,11],Y=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],m=[1,176],V=[1,172],W=[1,173],E=[1,177],C=[1,174],x=[1,175],I1=[77,116,119],F=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Lt=[10,106],d1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,247],i1=[1,245],r1=[1,249],u1=[1,243],n1=[1,244],o1=[1,246],a1=[1,248],l1=[1,250],N1=[1,268],wt=[8,9,11,106],Q=[8,9,10,11,60,84,105,106,109,110,111,112],q1={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:k(function(h,D,b,l,B,t,G1){var e=t.length-1;switch(B){case 2:this.$=[];break;case 3:(!Array.isArray(t[e])||t[e].length>0)&&t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 183:this.$=t[e];break;case 11:l.setDirection("TB"),this.$="TB";break;case 12:l.setDirection(t[e-1]),this.$=t[e-1];break;case 27:this.$=t[e-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=l.addSubGraph(t[e-6],t[e-1],t[e-4]);break;case 34:this.$=l.addSubGraph(t[e-3],t[e-1],t[e-3]);break;case 35:this.$=l.addSubGraph(void 0,t[e-1],void 0);break;case 37:this.$=t[e].trim(),l.setAccTitle(this.$);break;case 38:case 39:this.$=t[e].trim(),l.setAccDescription(this.$);break;case 43:this.$=t[e-1]+t[e];break;case 44:this.$=t[e];break;case 45:l.addVertex(t[e-1][t[e-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e]),l.addLink(t[e-3].stmt,t[e-1],t[e-2]),this.$={stmt:t[e-1],nodes:t[e-1].concat(t[e-3].nodes)};break;case 46:l.addLink(t[e-2].stmt,t[e],t[e-1]),this.$={stmt:t[e],nodes:t[e].concat(t[e-2].nodes)};break;case 47:l.addLink(t[e-3].stmt,t[e-1],t[e-2]),this.$={stmt:t[e-1],nodes:t[e-1].concat(t[e-3].nodes)};break;case 48:this.$={stmt:t[e-1],nodes:t[e-1]};break;case 49:l.addVertex(t[e-1][t[e-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e]),this.$={stmt:t[e-1],nodes:t[e-1],shapeData:t[e]};break;case 50:this.$={stmt:t[e],nodes:t[e]};break;case 51:this.$=[t[e]];break;case 52:l.addVertex(t[e-5][t[e-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[e-4]),this.$=t[e-5].concat(t[e]);break;case 53:this.$=t[e-4].concat(t[e]);break;case 54:this.$=t[e];break;case 55:this.$=t[e-2],l.setClass(t[e-2],t[e]);break;case 56:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"square");break;case 57:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"doublecircle");break;case 58:this.$=t[e-5],l.addVertex(t[e-5],t[e-2],"circle");break;case 59:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"ellipse");break;case 60:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"stadium");break;case 61:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"subroutine");break;case 62:this.$=t[e-7],l.addVertex(t[e-7],t[e-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[e-5],t[e-3]]]));break;case 63:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"cylinder");break;case 64:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"round");break;case 65:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"diamond");break;case 66:this.$=t[e-5],l.addVertex(t[e-5],t[e-2],"hexagon");break;case 67:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"odd");break;case 68:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"trapezoid");break;case 69:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"inv_trapezoid");break;case 70:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"lean_right");break;case 71:this.$=t[e-3],l.addVertex(t[e-3],t[e-1],"lean_left");break;case 72:this.$=t[e],l.addVertex(t[e]);break;case 73:t[e-1].text=t[e],this.$=t[e-1];break;case 74:case 75:t[e-2].text=t[e-1],this.$=t[e-2];break;case 76:this.$=t[e];break;case 77:var v=l.destructLink(t[e],t[e-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[e-1]};break;case 78:var v=l.destructLink(t[e],t[e-2]);this.$={type:v.type,stroke:v.stroke,length:v.length,text:t[e-1],id:t[e-3]};break;case 79:this.$={text:t[e],type:"text"};break;case 80:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 81:this.$={text:t[e],type:"string"};break;case 82:this.$={text:t[e],type:"markdown"};break;case 83:var v=l.destructLink(t[e]);this.$={type:v.type,stroke:v.stroke,length:v.length};break;case 84:var v=l.destructLink(t[e]);this.$={type:v.type,stroke:v.stroke,length:v.length,id:t[e-1]};break;case 85:this.$=t[e-1];break;case 86:this.$={text:t[e],type:"text"};break;case 87:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 88:this.$={text:t[e],type:"string"};break;case 89:case 104:this.$={text:t[e],type:"markdown"};break;case 101:this.$={text:t[e],type:"text"};break;case 102:this.$={text:t[e-1].text+""+t[e],type:t[e-1].type};break;case 103:this.$={text:t[e],type:"text"};break;case 105:this.$=t[e-4],l.addClass(t[e-2],t[e]);break;case 106:this.$=t[e-4],l.setClass(t[e-2],t[e]);break;case 107:case 115:this.$=t[e-1],l.setClickEvent(t[e-1],t[e]);break;case 108:case 116:this.$=t[e-3],l.setClickEvent(t[e-3],t[e-2]),l.setTooltip(t[e-3],t[e]);break;case 109:this.$=t[e-2],l.setClickEvent(t[e-2],t[e-1],t[e]);break;case 110:this.$=t[e-4],l.setClickEvent(t[e-4],t[e-3],t[e-2]),l.setTooltip(t[e-4],t[e]);break;case 111:this.$=t[e-2],l.setLink(t[e-2],t[e]);break;case 112:this.$=t[e-4],l.setLink(t[e-4],t[e-2]),l.setTooltip(t[e-4],t[e]);break;case 113:this.$=t[e-4],l.setLink(t[e-4],t[e-2],t[e]);break;case 114:this.$=t[e-6],l.setLink(t[e-6],t[e-4],t[e]),l.setTooltip(t[e-6],t[e-2]);break;case 117:this.$=t[e-1],l.setLink(t[e-1],t[e]);break;case 118:this.$=t[e-3],l.setLink(t[e-3],t[e-2]),l.setTooltip(t[e-3],t[e]);break;case 119:this.$=t[e-3],l.setLink(t[e-3],t[e-2],t[e]);break;case 120:this.$=t[e-5],l.setLink(t[e-5],t[e-4],t[e]),l.setTooltip(t[e-5],t[e-2]);break;case 121:this.$=t[e-4],l.addVertex(t[e-2],void 0,void 0,t[e]);break;case 122:this.$=t[e-4],l.updateLink([t[e-2]],t[e]);break;case 123:this.$=t[e-4],l.updateLink(t[e-2],t[e]);break;case 124:this.$=t[e-8],l.updateLinkInterpolate([t[e-6]],t[e-2]),l.updateLink([t[e-6]],t[e]);break;case 125:this.$=t[e-8],l.updateLinkInterpolate(t[e-6],t[e-2]),l.updateLink(t[e-6],t[e]);break;case 126:this.$=t[e-6],l.updateLinkInterpolate([t[e-4]],t[e]);break;case 127:this.$=t[e-6],l.updateLinkInterpolate(t[e-4],t[e]);break;case 128:case 130:this.$=[t[e]];break;case 129:case 131:t[e-2].push(t[e]),this.$=t[e-2];break;case 133:this.$=t[e-1]+t[e];break;case 181:this.$=t[e];break;case 182:this.$=t[e-1]+""+t[e];break;case 184:this.$=t[e-1]+""+t[e];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:u},{1:[3]},s(o,n,{5:6}),{4:7,9:i,10:r,12:u},{4:8,9:i,10:r,12:u},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:g,9:p,10:c,11:a,20:17,22:18,23:19,24:20,25:21,26:22,27:y,33:24,34:T,36:A,38:z,42:28,43:38,44:f,45:39,47:40,60:d,84:K,85:g1,86:A1,87:b1,88:O1,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},s(o,[2,9]),s(o,[2,10]),s(o,[2,11]),{8:[1,54],9:[1,55],10:h1,15:53,18:56},s(S,[2,3]),s(S,[2,4]),s(S,[2,5]),s(S,[2,6]),s(S,[2,7]),s(S,[2,8]),{8:J,9:t1,11:e1,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:J,9:t1,11:e1,21:67},{8:J,9:t1,11:e1,21:68},{8:J,9:t1,11:e1,21:69},{8:J,9:t1,11:e1,21:70},{8:J,9:t1,11:e1,21:71},{8:J,9:t1,10:[1,72],11:e1,21:73},s(S,[2,36]),{35:[1,74]},{37:[1,75]},s(S,[2,39]),s(E1,[2,50],{18:76,39:77,10:h1,40:rt}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:C1,44:x1,60:D1,80:[1,86],89:T1,95:[1,83],97:[1,84],101:85,105:S1,106:F1,109:_1,111:B1,114:v1,115:$1,116:L1,120:87},s(S,[2,185]),s(S,[2,186]),s(S,[2,187]),s(S,[2,188]),s(k1,[2,51]),s(k1,[2,54],{46:[1,99]}),s(U,[2,72],{113:112,29:[1,100],44:f,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:d,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:$,102:L,105:w,106:I,109:N,111:R,114:P,115:G,116:O}),s(j,[2,181]),s(j,[2,142]),s(j,[2,143]),s(j,[2,144]),s(j,[2,145]),s(j,[2,146]),s(j,[2,147]),s(j,[2,148]),s(j,[2,149]),s(j,[2,150]),s(j,[2,151]),s(j,[2,152]),s(o,[2,12]),s(o,[2,18]),s(o,[2,19]),{9:[1,113]},s(ut,[2,26],{18:114,10:h1}),s(S,[2,27]),{42:115,43:38,44:f,45:39,47:40,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},s(S,[2,40]),s(S,[2,41]),s(S,[2,42]),s(w1,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:nt,81:ot,116:z1,119:K1},{75:[1,125],77:[1,126]},s(at,[2,83]),s(S,[2,28]),s(S,[2,29]),s(S,[2,30]),s(S,[2,31]),s(S,[2,32]),{10:lt,12:ct,14:ht,27:dt,28:127,32:pt,44:gt,60:At,75:bt,80:[1,129],81:[1,130],83:140,84:kt,85:ft,86:yt,87:mt,88:Et,89:Ct,90:xt,91:128,105:Dt,109:Tt,111:St,114:Ft,115:_t,116:Bt},s(X1,n,{5:153}),s(S,[2,37]),s(S,[2,38]),s(E1,[2,48],{44:vt}),s(E1,[2,49],{18:155,10:h1,40:$t}),s(k1,[2,44]),{44:f,47:157,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{102:[1,158],103:159,105:[1,160]},{44:f,47:161,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{44:f,47:162,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},s(_,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},s(_,[2,115],{120:167,10:[1,166],14:C1,44:x1,60:D1,89:T1,105:S1,106:F1,109:_1,111:B1,114:v1,115:$1,116:L1}),s(_,[2,117],{10:[1,168]}),s(Y,[2,183]),s(Y,[2,170]),s(Y,[2,171]),s(Y,[2,172]),s(Y,[2,173]),s(Y,[2,174]),s(Y,[2,175]),s(Y,[2,176]),s(Y,[2,177]),s(Y,[2,178]),s(Y,[2,179]),s(Y,[2,180]),{44:f,47:169,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{30:170,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:178,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:180,50:[1,179],67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:181,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:182,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:183,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{109:[1,184]},{30:185,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:186,65:[1,187],67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:188,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:189,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{30:190,67:m,80:V,81:W,82:171,116:E,117:C,118:x},s(j,[2,182]),s(o,[2,20]),s(ut,[2,25]),s(E1,[2,46],{39:191,18:192,10:h1,40:rt}),s(w1,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{77:[1,196],79:197,116:z1,119:K1},s(I1,[2,79]),s(I1,[2,81]),s(I1,[2,82]),s(I1,[2,168]),s(I1,[2,169]),{76:198,79:120,80:nt,81:ot,116:z1,119:K1},s(at,[2,84]),{8:J,9:t1,10:lt,11:e1,12:ct,14:ht,21:200,27:dt,29:[1,199],32:pt,44:gt,60:At,75:bt,83:140,84:kt,85:ft,86:yt,87:mt,88:Et,89:Ct,90:xt,91:201,105:Dt,109:Tt,111:St,114:Ft,115:_t,116:Bt},s(F,[2,101]),s(F,[2,103]),s(F,[2,104]),s(F,[2,157]),s(F,[2,158]),s(F,[2,159]),s(F,[2,160]),s(F,[2,161]),s(F,[2,162]),s(F,[2,163]),s(F,[2,164]),s(F,[2,165]),s(F,[2,166]),s(F,[2,167]),s(F,[2,90]),s(F,[2,91]),s(F,[2,92]),s(F,[2,93]),s(F,[2,94]),s(F,[2,95]),s(F,[2,96]),s(F,[2,97]),s(F,[2,98]),s(F,[2,99]),s(F,[2,100]),{6:11,7:12,8:g,9:p,10:c,11:a,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,202],33:24,34:T,36:A,38:z,42:28,43:38,44:f,45:39,47:40,60:d,84:K,85:g1,86:A1,87:b1,88:O1,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},{10:h1,18:203},{44:[1,204]},s(k1,[2,43]),{10:[1,205],44:f,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:112,114:P,115:G,116:O},{10:[1,206]},{10:[1,207],106:[1,208]},s(Lt,[2,128]),{10:[1,209],44:f,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:112,114:P,115:G,116:O},{10:[1,210],44:f,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:112,114:P,115:G,116:O},{80:[1,211]},s(_,[2,109],{10:[1,212]}),s(_,[2,111],{10:[1,213]}),{80:[1,214]},s(Y,[2,184]),{80:[1,215],98:[1,216]},s(k1,[2,55],{113:112,44:f,60:d,89:$,102:L,105:w,106:I,109:N,111:R,114:P,115:G,116:O}),{31:[1,217],67:m,82:218,116:E,117:C,118:x},s(d1,[2,86]),s(d1,[2,88]),s(d1,[2,89]),s(d1,[2,153]),s(d1,[2,154]),s(d1,[2,155]),s(d1,[2,156]),{49:[1,219],67:m,82:218,116:E,117:C,118:x},{30:220,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{51:[1,221],67:m,82:218,116:E,117:C,118:x},{53:[1,222],67:m,82:218,116:E,117:C,118:x},{55:[1,223],67:m,82:218,116:E,117:C,118:x},{57:[1,224],67:m,82:218,116:E,117:C,118:x},{60:[1,225]},{64:[1,226],67:m,82:218,116:E,117:C,118:x},{66:[1,227],67:m,82:218,116:E,117:C,118:x},{30:228,67:m,80:V,81:W,82:171,116:E,117:C,118:x},{31:[1,229],67:m,82:218,116:E,117:C,118:x},{67:m,69:[1,230],71:[1,231],82:218,116:E,117:C,118:x},{67:m,69:[1,233],71:[1,232],82:218,116:E,117:C,118:x},s(E1,[2,45],{18:155,10:h1,40:$t}),s(E1,[2,47],{44:vt}),s(w1,[2,75]),s(w1,[2,74]),{62:[1,234],67:m,82:218,116:E,117:C,118:x},s(w1,[2,77]),s(I1,[2,80]),{77:[1,235],79:197,116:z1,119:K1},{30:236,67:m,80:V,81:W,82:171,116:E,117:C,118:x},s(X1,n,{5:237}),s(F,[2,102]),s(S,[2,35]),{43:238,44:f,45:39,47:40,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},{10:h1,18:239},{10:s1,60:i1,84:r1,92:240,105:u1,107:241,108:242,109:n1,110:o1,111:a1,112:l1},{10:s1,60:i1,84:r1,92:251,104:[1,252],105:u1,107:241,108:242,109:n1,110:o1,111:a1,112:l1},{10:s1,60:i1,84:r1,92:253,104:[1,254],105:u1,107:241,108:242,109:n1,110:o1,111:a1,112:l1},{105:[1,255]},{10:s1,60:i1,84:r1,92:256,105:u1,107:241,108:242,109:n1,110:o1,111:a1,112:l1},{44:f,47:257,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},s(_,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},s(_,[2,116]),s(_,[2,118],{10:[1,261]}),s(_,[2,119]),s(U,[2,56]),s(d1,[2,87]),s(U,[2,57]),{51:[1,262],67:m,82:218,116:E,117:C,118:x},s(U,[2,64]),s(U,[2,59]),s(U,[2,60]),s(U,[2,61]),{109:[1,263]},s(U,[2,63]),s(U,[2,65]),{66:[1,264],67:m,82:218,116:E,117:C,118:x},s(U,[2,67]),s(U,[2,68]),s(U,[2,70]),s(U,[2,69]),s(U,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(w1,[2,78]),{31:[1,265],67:m,82:218,116:E,117:C,118:x},{6:11,7:12,8:g,9:p,10:c,11:a,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,266],33:24,34:T,36:A,38:z,42:28,43:38,44:f,45:39,47:40,60:d,84:K,85:g1,86:A1,87:b1,88:O1,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},s(k1,[2,53]),{43:267,44:f,45:39,47:40,60:d,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O},s(_,[2,121],{106:N1}),s(wt,[2,130],{108:269,10:s1,60:i1,84:r1,105:u1,109:n1,110:o1,111:a1,112:l1}),s(Q,[2,132]),s(Q,[2,134]),s(Q,[2,135]),s(Q,[2,136]),s(Q,[2,137]),s(Q,[2,138]),s(Q,[2,139]),s(Q,[2,140]),s(Q,[2,141]),s(_,[2,122],{106:N1}),{10:[1,270]},s(_,[2,123],{106:N1}),{10:[1,271]},s(Lt,[2,129]),s(_,[2,105],{106:N1}),s(_,[2,106],{113:112,44:f,60:d,89:$,102:L,105:w,106:I,109:N,111:R,114:P,115:G,116:O}),s(_,[2,110]),s(_,[2,112],{10:[1,272]}),s(_,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:J,9:t1,11:e1,21:277},s(S,[2,34]),s(k1,[2,52]),{10:s1,60:i1,84:r1,105:u1,107:278,108:242,109:n1,110:o1,111:a1,112:l1},s(Q,[2,133]),{14:C1,44:x1,60:D1,89:T1,101:279,105:S1,106:F1,109:_1,111:B1,114:v1,115:$1,116:L1,120:87},{14:C1,44:x1,60:D1,89:T1,101:280,105:S1,106:F1,109:_1,111:B1,114:v1,115:$1,116:L1,120:87},{98:[1,281]},s(_,[2,120]),s(U,[2,58]),{30:282,67:m,80:V,81:W,82:171,116:E,117:C,118:x},s(U,[2,66]),s(X1,n,{5:283}),s(wt,[2,131],{108:269,10:s1,60:i1,84:r1,105:u1,109:n1,110:o1,111:a1,112:l1}),s(_,[2,126],{120:167,10:[1,284],14:C1,44:x1,60:D1,89:T1,105:S1,106:F1,109:_1,111:B1,114:v1,115:$1,116:L1}),s(_,[2,127],{120:167,10:[1,285],14:C1,44:x1,60:D1,89:T1,105:S1,106:F1,109:_1,111:B1,114:v1,115:$1,116:L1}),s(_,[2,114]),{31:[1,286],67:m,82:218,116:E,117:C,118:x},{6:11,7:12,8:g,9:p,10:c,11:a,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,287],33:24,34:T,36:A,38:z,42:28,43:38,44:f,45:39,47:40,60:d,84:K,85:g1,86:A1,87:b1,88:O1,89:$,102:L,105:w,106:I,109:N,111:R,113:41,114:P,115:G,116:O,121:M1,122:U1,123:V1,124:W1},{10:s1,60:i1,84:r1,92:288,105:u1,107:241,108:242,109:n1,110:o1,111:a1,112:l1},{10:s1,60:i1,84:r1,92:289,105:u1,107:241,108:242,109:n1,110:o1,111:a1,112:l1},s(U,[2,62]),s(S,[2,33]),s(_,[2,124],{106:N1}),s(_,[2,125],{106:N1})],defaultActions:{},parseError:k(function(h,D){if(D.recoverable)this.trace(h);else{var b=Error(h);throw b.hash=D,b}},"parseError"),parse:k(function(h){var D=this,b=[0],l=[],B=[null],t=[],G1=this.table,e="",v=0,It=0,Nt=0,Wt=2,Rt=1,zt=t.slice.call(arguments,1),M=Object.create(this.lexer),f1={yy:{}};for(var Q1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q1)&&(f1.yy[Q1]=this.yy[Q1]);M.setInput(h,f1.yy),f1.yy.lexer=M,f1.yy.parser=this,M.yylloc===void 0&&(M.yylloc={});var Z1=M.yylloc;t.push(Z1);var Kt=M.options&&M.options.ranges;typeof f1.yy.parseError=="function"?this.parseError=f1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(q){b.length-=2*q,B.length-=q,t.length-=q}k(jt,"popStack");function Pt(){var q=l.pop()||M.lex()||Rt;return typeof q!="number"&&(q instanceof Array&&(l=q,q=l.pop()),q=D.symbols_[q]||q),q}k(Pt,"lex");for(var H,J1,y1,X,tt,R1={},Y1,c1,Gt,H1;;){if(y1=b[b.length-1],this.defaultActions[y1]?X=this.defaultActions[y1]:(H??(H=Pt()),X=G1[y1]&&G1[y1][H]),X===void 0||!X.length||!X[0]){var Ot="";for(Y1 in H1=[],G1[y1])this.terminals_[Y1]&&Y1>Wt&&H1.push("'"+this.terminals_[Y1]+"'");Ot=M.showPosition?"Parse error on line "+(v+1)+`: +`+M.showPosition()+` +Expecting `+H1.join(", ")+", got '"+(this.terminals_[H]||H)+"'":"Parse error on line "+(v+1)+": Unexpected "+(H==Rt?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(Ot,{text:M.match,token:this.terminals_[H]||H,line:M.yylineno,loc:Z1,expected:H1})}if(X[0]instanceof Array&&X.length>1)throw Error("Parse Error: multiple actions possible at state: "+y1+", token: "+H);switch(X[0]){case 1:b.push(H),B.push(M.yytext),t.push(M.yylloc),b.push(X[1]),H=null,J1?(H=J1,J1=null):(It=M.yyleng,e=M.yytext,v=M.yylineno,Z1=M.yylloc,Nt>0&&Nt--);break;case 2:if(c1=this.productions_[X[1]][1],R1.$=B[B.length-c1],R1._$={first_line:t[t.length-(c1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(c1||1)].first_column,last_column:t[t.length-1].last_column},Kt&&(R1._$.range=[t[t.length-(c1||1)].range[0],t[t.length-1].range[1]]),tt=this.performAction.apply(R1,[e,It,v,f1.yy,X[1],B,t].concat(zt)),tt!==void 0)return tt;c1&&(b=b.slice(0,-1*c1*2),B=B.slice(0,-1*c1),t=t.slice(0,-1*c1)),b.push(this.productions_[X[1]][0]),B.push(R1.$),t.push(R1._$),Gt=G1[b[b.length-2]][b[b.length-1]],b.push(Gt);break;case 3:return!0}}return!0},"parse")};q1.lexer=(function(){return{EOF:1,parseError:k(function(h,D){if(this.yy.parser)this.yy.parser.parseError(h,D);else throw Error(h)},"parseError"),setInput:k(function(h,D){return this.yy=D||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var h=this._input[0];return this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h,h.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:k(function(h){var D=h.length,b=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var B=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===l.length?this.yylloc.first_column:0)+l[l.length-b.length].length-b[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[B[0],B[0]+this.yyleng-D]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(h){this.unput(this.match.slice(h))},"less"),pastInput:k(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var h=this.pastInput(),D=Array(h.length+1).join("-");return h+this.upcomingInput()+` +`+D+"^"},"showPosition"),test_match:k(function(h,D){var b,l,B;if(this.options.backtrack_lexer&&(B={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(B.yylloc.range=this.yylloc.range.slice(0))),l=h[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],b=this.performAction.call(this,this.yy,this,D,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var t in B)this[t]=B[t];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,D,b,l;this._more||(this.yytext="",this.match="");for(var B=this._currentRules(),t=0;tD[0].length)){if(D=b,l=t,this.options.backtrack_lexer){if(h=this.test_match(b,B[t]),h!==!1)return h;if(this._backtrack){D=!1;continue}else return!1}else if(!this.options.flex)break}return D?(h=this.test_match(D,B[l]),h===!1?!1:h):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){return this.next()||this.lex()},"lex"),begin:k(function(h){this.conditionStack.push(h)},"begin"),popState:k(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:k(function(h){this.begin(h)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(h,D,b,l){switch(b){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),D.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return D.yytext=D.yytext.replace(/\n\s*/g,"
"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return h.lex.firstGraph()&&this.begin("dir"),12;case 36:return h.lex.firstGraph()&&this.begin("dir"),12;case 37:return h.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;case 69:return this.pushState("edgeText"),75;case 70:return 119;case 71:return this.popState(),77;case 72:return this.pushState("thickEdgeText"),75;case 73:return 119;case 74:return this.popState(),77;case 75:return this.pushState("dottedEdgeText"),75;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;case 81:return this.popState(),55;case 82:return this.pushState("text"),54;case 83:return this.popState(),57;case 84:return this.pushState("text"),56;case 85:return 58;case 86:return this.pushState("text"),67;case 87:return this.popState(),64;case 88:return this.pushState("text"),63;case 89:return this.popState(),49;case 90:return this.pushState("text"),48;case 91:return this.popState(),69;case 92:return this.popState(),71;case 93:return 117;case 94:return this.pushState("trapText"),68;case 95:return this.pushState("trapText"),70;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;case 108:return this.pushState("text"),62;case 109:return this.popState(),51;case 110:return this.pushState("text"),50;case 111:return this.popState(),31;case 112:return this.pushState("text"),29;case 113:return this.popState(),66;case 114:return this.pushState("text"),65;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}}})();function j1(){this.yy={}}return k(j1,"Parser"),j1.prototype=q1,q1.Parser=j1,new j1})();it.parser=it;var Ut=it,Vt=Object.assign({},Ut);Vt.parse=s=>{let i=s.replace(/}\s*\n/g,`} +`);return Ut.parse(i)};var Ae=Vt,be=k((s,i)=>{let r=ie;return Yt(r(s,"r"),r(s,"g"),r(s,"b"),i)},"fade"),ke={parser:Ae,get db(){return new pe},renderer:ge,styles:k(s=>`.label { + font-family: ${s.fontFamily}; + color: ${s.nodeTextColor||s.textColor}; + } + .cluster-label text { + fill: ${s.titleColor}; + } + .cluster-label span { + color: ${s.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .label text,span { + fill: ${s.nodeTextColor||s.textColor}; + color: ${s.nodeTextColor||s.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${s.mainBkg}; + stroke: ${s.nodeBorder}; + stroke-width: 1px; + } + .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } + + .node .katex path { + fill: #000; + stroke: #000; + stroke-width: 1px; + } + + .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + + .root .anchor path { + fill: ${s.lineColor} !important; + stroke-width: 0; + stroke: ${s.lineColor}; + } + + .arrowheadPath { + fill: ${s.arrowheadColor}; + } + + .edgePath .path { + stroke: ${s.lineColor}; + stroke-width: 2.0px; + } + + .flowchart-link { + stroke: ${s.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${s.edgeLabelBackground}; + p { + background-color: ${s.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${s.edgeLabelBackground}; + fill: ${s.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${be(s.edgeLabelBackground,.5)}; + // background-color: + } + + .cluster rect { + fill: ${s.clusterBkg}; + stroke: ${s.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${s.titleColor}; + } + + .cluster span { + color: ${s.titleColor}; + } + /* .cluster div { + color: ${s.titleColor}; + } */ + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${s.fontFamily}; + font-size: 12px; + background: ${s.tertiaryColor}; + border: 1px solid ${s.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${s.textColor}; + } + + rect.text { + fill: none; + stroke-width: 0; + } + + .icon-shape, .image-shape { + background-color: ${s.edgeLabelBackground}; + p { + background-color: ${s.edgeLabelBackground}; + padding: 2px; + } + rect { + opacity: 0.5; + background-color: ${s.edgeLabelBackground}; + fill: ${s.edgeLabelBackground}; + } + text-align: center; + } + ${le()} +`,"getStyles"),init:k(s=>{s.flowchart||(s.flowchart={}),s.layout&&Mt({layout:s.layout}),s.flowchart.arrowMarkerAbsolute=s.arrowMarkerAbsolute,Mt({flowchart:{arrowMarkerAbsolute:s.arrowMarkerAbsolute}})},"init")};export{ke as diagram}; diff --git a/docs/assets/fluent-Ci_dCj5a.js b/docs/assets/fluent-Ci_dCj5a.js new file mode 100644 index 0000000..c043bd0 --- /dev/null +++ b/docs/assets/fluent-Ci_dCj5a.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Fluent","name":"fluent","patterns":[{"include":"#comment"},{"include":"#message"},{"include":"#wrong-line"}],"repository":{"attributes":{"begin":"\\\\s*(\\\\.[A-Za-z][-0-9A-Z_a-z]*\\\\s*=\\\\s*)","beginCaptures":{"1":{"name":"support.class.attribute-begin.fluent"}},"end":"^(?=\\\\s*[^.])","patterns":[{"include":"#placeable"}]},"comment":{"match":"^##?#?\\\\s.*$","name":"comment.fluent"},"function-comma":{"match":",","name":"support.function.function-comma.fluent"},"function-named-argument":{"begin":"([0-9A-Za-z]+:)\\\\s*([\\"0-9A-Za-z]+)","beginCaptures":{"1":{"name":"support.function.named-argument.name.fluent"},"2":{"name":"variable.other.named-argument.value.fluent"}},"end":"(?=[),\\\\s])","name":"variable.other.named-argument.fluent"},"function-positional-argument":{"match":"\\\\$[-0-9A-Z_a-z]+","name":"variable.other.function.positional-argument.fluent"},"invalid-placeable-string-missing-end-quote":{"match":"\\"[^\\"]+$","name":"invalid.illegal.wrong-placeable-missing-end-quote.fluent"},"invalid-placeable-wrong-placeable-missing-end":{"match":"([^A-Z}]*|[^-][^>])$\\\\b","name":"invalid.illegal.wrong-placeable-missing-end.fluent"},"message":{"begin":"^(-?[A-Za-z][-0-9A-Z_a-z]*\\\\s*=\\\\s*)","beginCaptures":{"1":{"name":"support.class.message-identifier.fluent"}},"contentName":"string.fluent","end":"^(?=\\\\S)","patterns":[{"include":"#attributes"},{"include":"#placeable"}]},"placeable":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"keyword.placeable.begin.fluent"}},"contentName":"variable.other.placeable.content.fluent","end":"(})","endCaptures":{"1":{"name":"keyword.placeable.end.fluent"}},"patterns":[{"include":"#placeable-string"},{"include":"#placeable-function"},{"include":"#placeable-reference-or-number"},{"include":"#selector"},{"include":"#invalid-placeable-wrong-placeable-missing-end"},{"include":"#invalid-placeable-string-missing-end-quote"},{"include":"#invalid-placeable-wrong-function-name"}]},"placeable-function":{"begin":"([A-Z][-0-9A-Z_]*\\\\()","beginCaptures":{"1":{"name":"support.function.placeable-function.call.begin.fluent"}},"contentName":"string.placeable-function.fluent","end":"(\\\\))","endCaptures":{"1":{"name":"support.function.placeable-function.call.end.fluent"}},"patterns":[{"include":"#function-comma"},{"include":"#function-positional-argument"},{"include":"#function-named-argument"}]},"placeable-reference-or-number":{"match":"(([-$])[-0-9A-Z_a-z]+|[A-Za-z][-0-9A-Z_a-z]*|[0-9]+)","name":"variable.other.placeable.reference-or-number.fluent"},"placeable-string":{"begin":"(\\")(?=[^\\\\n]*\\")","beginCaptures":{"1":{"name":"variable.other.placeable-string-begin.fluent"}},"contentName":"string.placeable-string-content.fluent","end":"(\\")","endCaptures":{"1":{"name":"variable.other.placeable-string-end.fluent"}}},"selector":{"begin":"(->)","beginCaptures":{"1":{"name":"support.function.selector.begin.fluent"}},"contentName":"string.selector.content.fluent","end":"^(?=\\\\s*})","patterns":[{"include":"#selector-item"}]},"selector-item":{"begin":"(\\\\s*\\\\*?\\\\[)([-0-9A-Z_a-z]+)(]\\\\s*)","beginCaptures":{"1":{"name":"support.function.selector-item.begin.fluent"},"2":{"name":"variable.other.selector-item.begin.fluent"},"3":{"name":"support.function.selector-item.begin.fluent"}},"contentName":"string.selector-item.content.fluent","end":"^(?=(\\\\s*})|(\\\\s*\\\\[)|(\\\\s*\\\\*))","patterns":[{"include":"#placeable"}]},"wrong-line":{"match":".*","name":"invalid.illegal.wrong-line.fluent"}},"scopeName":"source.ftl","aliases":["ftl"]}'))];export{e as default}; diff --git a/docs/assets/focus-KGgBDCvb.js b/docs/assets/focus-KGgBDCvb.js new file mode 100644 index 0000000..d03ea87 --- /dev/null +++ b/docs/assets/focus-KGgBDCvb.js @@ -0,0 +1 @@ +import{p as s,u as C}from"./useEvent-DlWF5OMa.js";import{y as d}from"./cells-CmJW_FeD.js";import{t as m}from"./createReducer-DDa-hVe3.js";function p(){return{focusedCellId:null,lastFocusedCellId:null}}var{reducer:V,createActions:b,valueAtom:a,useActions:g}=m(p,{focusCell:(l,e)=>({...l,focusedCellId:e.cellId,lastFocusedCellId:e.cellId}),toggleCell:(l,e)=>l.focusedCellId===e.cellId?{...l,focusedCellId:null}:{...l,focusedCellId:e.cellId,lastFocusedCellId:e.cellId},blurCell:l=>({...l,focusedCellId:null})});const c=s(l=>l(a).lastFocusedCellId);function F(){return C(c)}const _=s(l=>{let e=l(c);return!e||e==="__scratch__"?null:r(e,l(d))});function h(l){return s(e=>r(l,e(d)))}function r(l,e){var o;let{cellData:i,cellHandles:f,cellRuntime:I}=e,u=i[l],t=I[l],n=(o=f[l])==null?void 0:o.current;return!u||!n?null:{cellId:l,name:u.name,config:u.config,status:t?t.status:"idle",getEditorView:()=>n.editorView,hasOutput:(t==null?void 0:t.output)!=null,hasConsoleOutput:(t==null?void 0:t.consoleOutputs)!=null}}export{g as a,c as i,h as n,F as o,_ as r,a as t}; diff --git a/docs/assets/form-DyJ8-Zz6.js b/docs/assets/form-DyJ8-Zz6.js new file mode 100644 index 0000000..e456f0a --- /dev/null +++ b/docs/assets/form-DyJ8-Zz6.js @@ -0,0 +1,2 @@ +import{s as Me}from"./chunk-LvLJmgfZ.js";import{t as yr}from"./react-BGmjiNul.js";import{G as ze,Jn as wr,St as Nr}from"./cells-CmJW_FeD.js";import{_ as Te,c as Cr,d as ke,f as Se,g as kr,h as _e,l as Sr,m as _r,o as Rr,p as le,s as Or,t as Re,u as Je,y as Oe}from"./zod-Cg4WLWh2.js";import{t as fe}from"./compiler-runtime-DeeZ7FnK.js";import{a as Ar,d as Vr,f as Er}from"./hotkeys-uKX61F1_.js";import{r as Ae}from"./useEventListener-COkmyg1v.js";import{t as Pr}from"./jsx-runtime-DN_bIXfG.js";import{r as Lr,t as Be}from"./button-B8cGZzP5.js";import{t as I}from"./cn-C1rgT0yh.js";import{t as $r}from"./check-CrAQug3q.js";import{_ as Ir,c as qr,i as Ke,l as Fr,m as Dr,n as Gr,r as Mr,s as zr,t as Tr}from"./select-D9lTzMzP.js";import{M as Jr,N as Ue,P as Br,j as Kr}from"./dropdown-menu-BP4_BZLr.js";import{t as Ur}from"./plus-CHesBJpY.js";import{t as Zr}from"./refresh-ccw-DbW1_PHb.js";import{n as Hr,t as Ve}from"./input-Bkl2Yfmh.js";import{a as V,c as R,d as E,h as Wr,l as P,m as Xr,o as A,r as Ze,u as S,y as Qr}from"./textarea-DzIuH-E_.js";import{t as Yr}from"./trash-2-C-lF7BNB.js";import{t as ea}from"./badge-DAnNhy3O.js";import{E as He,S as Ee,_ as xe,w as Pe,x as ra}from"./Combination-D1TsGrBC.js";import{l as aa}from"./dist-CBrDuocE.js";import{t as ta}from"./tooltip-CvjcEpZC.js";import{u as sa}from"./menu-items-9PZrU2e0.js";import{i as na,r as la,t as oa}from"./popover-DtnzNVk-.js";import{a as ia,o as ca,r as da,s as ua,t as ma}from"./command-B1zRJT1a.js";import{t as pa}from"./label-CqyOmxjL.js";import{t as ha}from"./toggle-D-5M3JI_.js";var We=fe(),w=Me(yr(),1),a=Me(Pr(),1);const Xe=(0,w.createContext)({isSelected:()=>!1,onSelect:Er.NOOP}),Le=t=>{let e=(0,We.c)(94),r,n,l,o,i,d,p,s,c,u,h,f,m,j,x,g,v,y,N,C,O;e[0]===t?(r=e[1],n=e[2],l=e[3],o=e[4],i=e[5],d=e[6],p=e[7],s=e[8],c=e[9],u=e[10],h=e[11],f=e[12],m=e[13],j=e[14],x=e[15],g=e[16],v=e[17],y=e[18],N=e[19],C=e[20],O=e[21]):({children:r,displayValue:d,className:l,placeholder:m,value:O,defaultValue:i,onValueChange:h,multiple:g,shouldFilter:v,filterFn:p,open:f,defaultOpen:o,onOpenChange:c,inputPlaceholder:y,search:x,onSearchChange:u,emptyState:N,chips:C,chipsClassName:n,keepPopoverOpenOnSelect:s,...j}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=l,e[4]=o,e[5]=i,e[6]=d,e[7]=p,e[8]=s,e[9]=c,e[10]=u,e[11]=h,e[12]=f,e[13]=m,e[14]=j,e[15]=x,e[16]=g,e[17]=v,e[18]=y,e[19]=N,e[20]=C,e[21]=O);let k=g===void 0?!1:g,q=v===void 0?!0:v,F=y===void 0?"Search...":y,ne=N===void 0?"Nothing found.":N,$=C===void 0?!1:C,ye=o??!1,oe;e[22]!==c||e[23]!==f||e[24]!==ye?(oe={prop:f,defaultProp:ye,onChange:c},e[22]=c,e[23]=f,e[24]=ye,e[25]=oe):oe=e[25];let[De,M]=Ee(oe),z=De===void 0?!1:De,T;e[26]===h?T=e[27]:(T=_=>{h==null||h(_)},e[26]=h,e[27]=T);let ie;e[28]!==i||e[29]!==T||e[30]!==O?(ie={prop:O,defaultProp:i,onChange:T},e[28]=i,e[29]=T,e[30]=O,e[31]=ie):ie=e[31];let[b,we]=Ee(ie),ce;e[32]===b?ce=e[33]:(ce=_=>Array.isArray(b)?b.includes(_):b===_,e[32]=b,e[33]=ce);let Ne=ce,de;e[34]!==s||e[35]!==k||e[36]!==M||e[37]!==we||e[38]!==b?(de=_=>{let D=_;if(k)if(Array.isArray(b))if(b.includes(D)){let Ge=b.filter(br=>br!==_);D=Ge.length>0?Ge:[]}else D=[...b,D];else D=[D];else b===_&&(D=null);we(D),(s??k)||M(!1)},e[34]=s,e[35]=k,e[36]=M,e[37]=we,e[38]=b,e[39]=de):de=e[39];let J=de,ue;e[40]!==$||e[41]!==d||e[42]!==k||e[43]!==m||e[44]!==b?(ue=()=>k&&$&&m?m:b==null?m??"--":Array.isArray(b)?b.length===0?m??"--":b.length===1&&d!==void 0?d(b[0]):`${b.length} selected`:d===void 0?m??"--":d(b),e[40]=$,e[41]=d,e[42]=k,e[43]=m,e[44]=b,e[45]=ue):ue=e[45];let Ce=ue,me;e[46]===Symbol.for("react.memo_cache_sentinel")?(me=I("relative"),e[46]=me):me=e[46];let B;e[47]===l?B=e[48]:(B=I("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50",l),e[47]=l,e[48]=B);let K;e[49]===Ce?K=e[50]:(K=Ce(),e[49]=Ce,e[50]=K);let U;e[51]===K?U=e[52]:(U=(0,a.jsx)("span",{className:"truncate flex-1 min-w-0",children:K}),e[51]=K,e[52]=U);let pe;e[53]===Symbol.for("react.memo_cache_sentinel")?(pe=(0,a.jsx)(Ir,{className:"ml-3 w-4 h-4 opacity-50 shrink-0"}),e[53]=pe):pe=e[53];let Z;e[54]!==z||e[55]!==B||e[56]!==U?(Z=(0,a.jsx)(na,{asChild:!0,children:(0,a.jsxs)("div",{className:B,"aria-expanded":z,children:[U,pe]})}),e[54]=z,e[55]=B,e[56]=U,e[57]=Z):Z=e[57];let H;e[58]!==F||e[59]!==u||e[60]!==x?(H=(0,a.jsx)(ia,{placeholder:F,rootClassName:"px-1 h-8",autoFocus:!0,value:x,onValueChange:u}),e[58]=F,e[59]=u,e[60]=x,e[61]=H):H=e[61];let W;e[62]===ne?W=e[63]:(W=(0,a.jsx)(da,{children:ne}),e[62]=ne,e[63]=W);let X;e[64]!==J||e[65]!==Ne?(X={isSelected:Ne,onSelect:J},e[64]=J,e[65]=Ne,e[66]=X):X=e[66];let Q;e[67]!==r||e[68]!==X?(Q=(0,a.jsx)(Xe,{value:X,children:r}),e[67]=r,e[68]=X,e[69]=Q):Q=e[69];let Y;e[70]!==W||e[71]!==Q?(Y=(0,a.jsxs)(ua,{className:"max-h-60 py-.5",children:[W,Q]}),e[70]=W,e[71]=Q,e[72]=Y):Y=e[72];let ee;e[73]!==p||e[74]!==q||e[75]!==H||e[76]!==Y?(ee=(0,a.jsx)(la,{className:"w-full min-w-(--radix-popover-trigger-width) p-0",align:"start",children:(0,a.jsxs)(ma,{filter:p,shouldFilter:q,children:[H,Y]})}),e[73]=p,e[74]=q,e[75]=H,e[76]=Y,e[77]=ee):ee=e[77];let re;e[78]!==z||e[79]!==M||e[80]!==Z||e[81]!==ee?(re=(0,a.jsxs)(oa,{open:z,onOpenChange:M,children:[Z,ee]}),e[78]=z,e[79]=M,e[80]=Z,e[81]=ee,e[82]=re):re=e[82];let ae;e[83]!==$||e[84]!==n||e[85]!==d||e[86]!==J||e[87]!==k||e[88]!==b?(ae=k&&$&&(0,a.jsx)("div",{className:I("flex flex-col gap-1 items-start",n),children:Array.isArray(b)&&b.map(_=>_==null?null:(0,a.jsxs)(ea,{variant:"secondary",children:[(d==null?void 0:d(_))??String(_),(0,a.jsx)(wr,{onClick:()=>{J(_)},className:"w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"})]},String(_)))}),e[83]=$,e[84]=n,e[85]=d,e[86]=J,e[87]=k,e[88]=b,e[89]=ae):ae=e[89];let he;return e[90]!==j||e[91]!==re||e[92]!==ae?(he=(0,a.jsxs)("div",{className:me,...j,children:[re,ae]}),e[90]=j,e[91]=re,e[92]=ae,e[93]=he):he=e[93],he},je=w.forwardRef((t,e)=>{let r=(0,We.c)(17),{children:n,className:l,value:o,onSelect:i,disabled:d}=t,p=typeof o=="object"&&"value"in o?o.value:String(o),s=w.use(Xe),c;r[0]===l?c=r[1]:(c=I("pl-6 m-1 py-1",l),r[0]=l,r[1]=c);let u;r[2]!==s||r[3]!==i||r[4]!==o?(u=()=>{s.onSelect(o),i==null||i(o)},r[2]=s,r[3]=i,r[4]=o,r[5]=u):u=r[5];let h;r[6]!==s||r[7]!==o?(h=s.isSelected(o)&&(0,a.jsx)($r,{className:"absolute left-1 h-4 w-4"}),r[6]=s,r[7]=o,r[8]=h):h=r[8];let f;return r[9]!==n||r[10]!==d||r[11]!==e||r[12]!==c||r[13]!==u||r[14]!==h||r[15]!==p?(f=(0,a.jsxs)(ca,{ref:e,className:c,role:"option",value:p,disabled:d,onSelect:u,children:[h,n]}),r[9]=n,r[10]=d,r[11]=e,r[12]=c,r[13]=u,r[14]=h,r[15]=p,r[16]=f):f=r[16],f});je.displayName="ComboboxItem";const G={of(t){return JSON.stringify(t)},parse(t){if(!t)return{};try{return JSON.parse(t)}catch{return{label:t}}}};function Qe(){return Math.floor(Math.random()*1e5)}var $e="Radio",[fa,Ye]=He($e),[xa,ja]=fa($e),er=w.forwardRef((t,e)=>{let{__scopeRadio:r,name:n,checked:l=!1,required:o,disabled:i,value:d="on",onCheck:p,form:s,...c}=t,[u,h]=w.useState(null),f=Ae(e,x=>h(x)),m=w.useRef(!1),j=u?s||!!u.closest("form"):!0;return(0,a.jsxs)(xa,{scope:r,checked:l,disabled:i,children:[(0,a.jsx)(xe.button,{type:"button",role:"radio","aria-checked":l,"data-state":sr(l),"data-disabled":i?"":void 0,disabled:i,value:d,...c,ref:f,onClick:Pe(t.onClick,x=>{l||(p==null||p()),j&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),j&&(0,a.jsx)(tr,{control:u,bubbles:!m.current,name:n,value:d,checked:l,required:o,disabled:i,form:s,style:{transform:"translateX(-100%)"}})]})});er.displayName=$e;var rr="RadioIndicator",ar=w.forwardRef((t,e)=>{let{__scopeRadio:r,forceMount:n,...l}=t,o=ja(rr,r);return(0,a.jsx)(ra,{present:n||o.checked,children:(0,a.jsx)(xe.span,{"data-state":sr(o.checked),"data-disabled":o.disabled?"":void 0,...l,ref:e})})});ar.displayName=rr;var va="RadioBubbleInput",tr=w.forwardRef(({__scopeRadio:t,control:e,checked:r,bubbles:n=!0,...l},o)=>{let i=w.useRef(null),d=Ae(i,o),p=Dr(r),s=aa(e);return w.useEffect(()=>{let c=i.current;if(!c)return;let u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==r&&h){let f=new Event("click",{bubbles:n});h.call(c,r),c.dispatchEvent(f)}},[p,r,n]),(0,a.jsx)(xe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});tr.displayName=va;function sr(t){return t?"checked":"unchecked"}var ga=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ve="RadioGroup",[ba,mt]=He(ve,[Ue,Ye]),nr=Ue(),lr=Ye(),[ya,wa]=ba(ve),or=w.forwardRef((t,e)=>{let{__scopeRadioGroup:r,name:n,defaultValue:l,value:o,required:i=!1,disabled:d=!1,orientation:p,dir:s,loop:c=!0,onValueChange:u,...h}=t,f=nr(r),m=sa(s),[j,x]=Ee({prop:o,defaultProp:l??null,onChange:u,caller:ve});return(0,a.jsx)(ya,{scope:r,name:n,required:i,disabled:d,value:j,onValueChange:x,children:(0,a.jsx)(Jr,{asChild:!0,...f,orientation:p,dir:m,loop:c,children:(0,a.jsx)(xe.div,{role:"radiogroup","aria-required":i,"aria-orientation":p,"data-disabled":d?"":void 0,dir:m,...h,ref:e})})})});or.displayName=ve;var ir="RadioGroupItem",cr=w.forwardRef((t,e)=>{let{__scopeRadioGroup:r,disabled:n,...l}=t,o=wa(ir,r),i=o.disabled||n,d=nr(r),p=lr(r),s=w.useRef(null),c=Ae(e,s),u=o.value===l.value,h=w.useRef(!1);return w.useEffect(()=>{let f=j=>{ga.includes(j.key)&&(h.current=!0)},m=()=>h.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",m)}},[]),(0,a.jsx)(Kr,{asChild:!0,...d,focusable:!i,active:u,children:(0,a.jsx)(er,{disabled:i,required:o.required,checked:u,...p,...l,name:o.name,ref:c,onCheck:()=>o.onValueChange(l.value),onKeyDown:Pe(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:Pe(l.onFocus,()=>{var f;h.current&&((f=s.current)==null||f.click())})})})});cr.displayName=ir;var Na="RadioGroupIndicator",dr=w.forwardRef((t,e)=>{let{__scopeRadioGroup:r,...n}=t;return(0,a.jsx)(ar,{...lr(r),...n,ref:e})});dr.displayName=Na;var ur=or,mr=cr,Ca=dr,pr=fe(),Ie=w.forwardRef((t,e)=>{let r=(0,pr.c)(9),n,l;r[0]===t?(n=r[1],l=r[2]):({className:n,...l}=t,r[0]=t,r[1]=n,r[2]=l);let o;r[3]===n?o=r[4]:(o=I("grid gap-2",n),r[3]=n,r[4]=o);let i;return r[5]!==l||r[6]!==e||r[7]!==o?(i=(0,a.jsx)(ur,{className:o,...l,ref:e}),r[5]=l,r[6]=e,r[7]=o,r[8]=i):i=r[8],i});Ie.displayName=ur.displayName;var qe=w.forwardRef((t,e)=>{let r=(0,pr.c)(10),n,l;if(r[0]!==t){let{className:p,children:s,...c}=t;n=p,l=c,r[0]=t,r[1]=n,r[2]=l}else n=r[1],l=r[2];let o;r[3]===n?o=r[4]:(o=I("h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none",n),r[3]=n,r[4]=o);let i;r[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(Ca,{className:"flex items-center justify-center",children:(0,a.jsx)(Br,{className:"h-[10px] w-[10px] fill-primary text-current"})}),r[5]=i):i=r[5];let d;return r[6]!==l||r[7]!==e||r[8]!==o?(d=(0,a.jsx)(mr,{ref:e,className:o,...l,children:i}),r[6]=l,r[7]=e,r[8]=o,r[9]=d):d=r[9],d});qe.displayName=mr.displayName;function ka(t){return t instanceof Re.ZodArray}function hr(t){return t instanceof Re.ZodPipe}function Sa(t){return t instanceof Re.ZodTuple}function fr(t){return"unwrap"in t?t.unwrap():t}function ge(t){let e=r=>{if(r instanceof le){let n=[...r.values];return r.values.size===1?n[0]:n}if(r instanceof Je){let n=r.def.defaultValue;return typeof n=="function"?n():n}if(hr(r))return e(r.in);if(Sa(r))return r.def.items.map(n=>e(n));if("unwrap"in r)return e(fr(r))};return t instanceof Oe||t instanceof ke?e(t.options[0]):ka(t)?_a(t)?[ge(t.element)]:[]:t instanceof Te?"":t instanceof Se?t.options[0]:t instanceof _e?Object.fromEntries(Object.entries(t.shape).map(([r,n])=>[r,e(n)])):e(t)}function te(t){if(t instanceof le)return t;if(t instanceof _e){let e=t.shape.type;if(e instanceof le)return e;throw Error("Invalid schema")}if(t instanceof Oe||t instanceof ke)return te(t.options[0]);throw Vr.warn(t),Error("Invalid schema")}function _a(t){return!t.safeParse([]).success}var xr=fe(),jr=` +`;const vr=t=>{let e=(0,xr.c)(24),{value:r,options:n,onChange:l,className:o,placeholder:i,textAreaClassName:d,comboBoxClassName:p}=t,[s,c]=(0,w.useState)(!1),u;e[0]===r?u=e[1]:(u=be(r),e[0]=r,e[1]=u);let h=u,f;e[2]!==p||e[3]!==l||e[4]!==n||e[5]!==i||e[6]!==s||e[7]!==d||e[8]!==h?(f=()=>s?(0,a.jsx)(Fe,{value:h,className:d,onChange:l,placeholder:i?`${i}: one per line`:"One value per line"}):(0,a.jsx)(Le,{placeholder:i,displayValue:Ra,className:I("w-full max-w-[400px]",p),multiple:!0,value:h,onValueChange:l,keepPopoverOpenOnSelect:!0,chips:!0,chipsClassName:"flex-row flex-wrap min-w-[210px]",children:n.map(Oa)}),e[2]=p,e[3]=l,e[4]=n,e[5]=i,e[6]=s,e[7]=d,e[8]=h,e[9]=f):f=e[9];let m=f,j;e[10]===o?j=e[11]:(j=I("flex gap-1",o),e[10]=o,e[11]=j);let x;e[12]===m?x=e[13]:(x=m(),e[12]=m,e[13]=x);let g=s?"Switch to multi-select":"Switch to textarea",v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(Qr,{className:"w-3 h-3"}),e[14]=v):v=e[14];let y;e[15]===s?y=e[16]:(y=(0,a.jsx)(ha,{size:"xs",onPressedChange:c,pressed:s,children:v}),e[15]=s,e[16]=y);let N;e[17]!==g||e[18]!==y?(N=(0,a.jsx)(ta,{content:g,children:y}),e[17]=g,e[18]=y,e[19]=N):N=e[19];let C;return e[20]!==j||e[21]!==x||e[22]!==N?(C=(0,a.jsxs)("div",{className:j,children:[x,N]}),e[20]=j,e[21]=x,e[22]=N,e[23]=C):C=e[23],C},Fe=t=>{let e=(0,xr.c)(11),{className:r,value:n,onChange:l,placeholder:o}=t,i,d;if(e[0]!==n){let u=be(n);i=Ze,d=u.join(jr),e[0]=n,e[1]=i,e[2]=d}else i=e[1],d=e[2];let p;e[3]===l?p=e[4]:(p=u=>{if(u.target.value===""){l([]);return}l(u.target.value.split(jr))},e[3]=l,e[4]=p);let s=o?`${o}: one per line`:"One value per line",c;return e[5]!==i||e[6]!==r||e[7]!==d||e[8]!==p||e[9]!==s?(c=(0,a.jsx)(i,{value:d,className:r,rows:4,onChange:p,placeholder:s}),e[5]=i,e[6]=r,e[7]=d,e[8]=p,e[9]=s,e[10]=c):c=e[10],c};function be(t){return t==null?[]:Array.isArray(t)?t:[t].filter(e=>e!=null||e!=="")}function Ra(t){return t}function Oa(t){return(0,a.jsx)(je,{value:t,children:t},t)}var se=fe();const Aa=t=>{let e=(0,se.c)(11),{schema:r,form:n,path:l,renderers:o,children:i}=t,d=l===void 0?"":l,p;e[0]===o?p=e[1]:(p=o===void 0?[]:o,e[0]=o,e[1]=p);let s=p,c;e[2]!==n||e[3]!==d||e[4]!==s||e[5]!==r?(c=L(r,n,d,s),e[2]=n,e[3]=d,e[4]=s,e[5]=r,e[6]=c):c=e[6];let u;return e[7]!==i||e[8]!==n||e[9]!==c?(u=(0,a.jsxs)(Xr,{...n,children:[i,c]}),e[7]=i,e[8]=n,e[9]=c,e[10]=u):u=e[10],u};function L(t,e,r,n){for(let s of n){let{isMatch:c,Component:u}=s;if(c(t))return(0,a.jsx)(u,{schema:t,form:e,path:r})}let{label:l,description:o,special:i,direction:d="column",minLength:p}=G.parse(t.description||"");if(t instanceof Je){let s=t.unwrap();return s=!s.description&&t.description?s.describe(t.description):s,L(s,e,r,n)}if(t instanceof kr){let s=t.unwrap();return s=!s.description&&t.description?s.describe(t.description):s,L(s,e,r,n)}if(t instanceof _e)return(0,a.jsxs)("div",{className:I("flex",d==="row"?"flex-row gap-6 items-start":d==="two-columns"?"grid grid-cols-2 gap-y-6":"flex-col gap-6"),children:[(0,a.jsx)(S,{children:l}),Ar.entries(t.shape).map(([s,c])=>{let u=c instanceof le,h=L(c,e,$a(r,s),n);return u?(0,a.jsx)(w.Fragment,{children:h},s):(0,a.jsx)("div",{className:"flex flex-row align-start",children:h},s)})]});if(t instanceof Te)return i==="time"?(0,a.jsx)(R,{control:e.control,name:r,render:({field:s})=>(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{children:l}),(0,a.jsx)(A,{children:o}),(0,a.jsx)(V,{children:(0,a.jsx)(Ve,{...s,onValueChange:s.onChange,type:"time",className:"my-0"})}),(0,a.jsx)(E,{})]})}):(0,a.jsx)(gr,{schema:t,form:e,path:r});if(t instanceof Cr)return(0,a.jsx)(R,{control:e.control,name:r,render:({field:s})=>(0,a.jsxs)(P,{children:[(0,a.jsxs)("div",{className:"flex flex-row items-start space-x-2",children:[(0,a.jsx)(S,{children:l}),(0,a.jsx)(A,{children:o}),(0,a.jsx)(V,{children:(0,a.jsx)(Nr,{"data-testid":"marimo-plugin-data-frames-boolean-checkbox",checked:s.value,onCheckedChange:s.onChange})})]}),(0,a.jsx)(E,{})]})});if(t instanceof _r)return i==="random_number_button"?(0,a.jsx)(R,{control:e.control,name:r,render:({field:s})=>(0,a.jsxs)(Be,{size:"xs","data-testid":"marimo-plugin-data-frames-random-number-button",variant:"secondary",onClick:()=>{s.onChange(Qe())},children:[(0,a.jsx)(Zr,{className:"w-3.5 h-3.5 mr-1"}),l]})}):(0,a.jsx)(R,{control:e.control,name:r,render:({field:s})=>(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{children:l}),(0,a.jsx)(A,{children:o}),(0,a.jsx)(V,{children:(0,a.jsx)(Hr,{...s,className:"my-0",onValueChange:s.onChange})}),(0,a.jsx)(E,{})]})});if(t instanceof Sr){let s=i==="datetime"?"datetime-local":i==="time"?"time":"date";return(0,a.jsx)(R,{control:e.control,name:r,render:({field:c})=>(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{children:l}),(0,a.jsx)(A,{children:o}),(0,a.jsx)(V,{children:(0,a.jsx)(Ve,{...c,onValueChange:c.onChange,type:s,className:"my-0"})}),(0,a.jsx)(E,{})]})})}if(t instanceof Rr)return(0,a.jsx)(gr,{schema:t,form:e,path:r});if(t instanceof Se)return(0,a.jsx)(Pa,{schema:t,form:e,path:r,options:t.options.map(s=>s.toString())});if(t instanceof Or){if(i==="text_area_multiline")return(0,a.jsx)(Ea,{schema:t,form:e,path:r});let s=t.element;return s instanceof Se?(0,a.jsx)(La,{schema:t,form:e,path:r,itemLabel:l,options:s.options.map(c=>c.toString())}):(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(pa,{children:l}),(0,a.jsx)(Va,{schema:t.element,form:e,path:r,minLength:p,renderers:n},r)]})}if(t instanceof ke){let s=t.def,c=s.options,u=s.discriminator,h=f=>c.find(m=>te(m).value===f);return(0,a.jsx)(R,{control:e.control,name:r,render:({field:f})=>{let m=f.value,j=c.map(v=>te(v).value),x=m&&typeof m=="object"&&u in m?m[u]:j[0],g=h(x);return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(S,{children:l}),(0,a.jsx)("div",{className:"flex border-b mb-4 -mt-2",children:j.map(v=>(0,a.jsx)("button",{type:"button",className:`px-4 py-2 ${x===v?"border-b-2 border-primary font-medium":"text-muted-foreground"}`,onClick:()=>{let y=h(v);y?f.onChange(ge(y)):f.onChange({[u]:v})},children:v},v))}),(0,a.jsx)("div",{className:"flex flex-col",children:g&&L(g,e,r,n)},x)]})}})}return t instanceof Oe?(0,a.jsx)(R,{control:e.control,name:r,render:({field:s})=>{let c=t.options,u=s.value,h=c.map(m=>te(m).value);u||(u=h[0]);let f=c.find(m=>te(m).value===u);return(0,a.jsxs)("div",{className:"flex flex-col mb-4 gap-1",children:[(0,a.jsx)(S,{children:l}),(0,a.jsx)(Fr,{"data-testid":"marimo-plugin-data-frames-union-select",...s,children:h.map(m=>(0,a.jsx)("option",{value:m,children:m},m))}),f&&L(f,e,r,n)]})}}):t instanceof le?(0,a.jsx)(R,{control:e.control,name:r,render:({field:s})=>(0,a.jsx)("input",{...s,type:"hidden",value:String([...t.values][0]??"")})}):"unwrap"in t?L(fr(t),e,r,n):hr(t)?L(t.in,e,r,n):(0,a.jsxs)("div",{children:["Unknown schema type"," ",t==null?r:JSON.stringify(t.type??t)]})}var Va=t=>{let e=(0,se.c)(39),{schema:r,form:n,path:l,minLength:o,renderers:i}=t,d;e[0]===r.description?d=e[1]:(d=G.parse(r.description||""),e[0]=r.description,e[1]=d);let{label:p,description:s}=d,c=n.control,u;e[2]!==c||e[3]!==l?(u={control:c,name:l},e[2]=c,e[3]=l,e[4]=u):u=e[4];let{fields:h,append:f,remove:m}=Wr(u),j=o!=null&&h.lengtho,g;e[5]===p?g=e[6]:(g=(0,a.jsx)(S,{children:p}),e[5]=p,e[6]=g);let v;e[7]===s?v=e[8]:(v=(0,a.jsx)(A,{children:s}),e[7]=s,e[8]=v);let y;if(e[9]!==x||e[10]!==h||e[11]!==n||e[12]!==l||e[13]!==m||e[14]!==i||e[15]!==r){let F;e[17]!==x||e[18]!==n||e[19]!==l||e[20]!==m||e[21]!==i||e[22]!==r?(F=(ne,$)=>(0,a.jsxs)("div",{className:"flex flex-row pl-2 ml-2 border-l-2 border-disabled hover-actions-parent relative pr-5 pt-1 items-center w-fit",onKeyDown:Lr.onEnter(Ia),children:[L(r,n,`${l}[${$}]`,i),x&&(0,a.jsx)(Yr,{className:"w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5",onClick:()=>{m($)}})]},ne.id),e[17]=x,e[18]=n,e[19]=l,e[20]=m,e[21]=i,e[22]=r,e[23]=F):F=e[23],y=h.map(F),e[9]=x,e[10]=h,e[11]=n,e[12]=l,e[13]=m,e[14]=i,e[15]=r,e[16]=y}else y=e[16];let N;e[24]!==j||e[25]!==o?(N=j&&(0,a.jsx)("div",{className:"text-destructive text-xs font-semibold",children:(0,a.jsxs)("div",{children:["At least ",o," required."]})}),e[24]=j,e[25]=o,e[26]=N):N=e[26];let C;e[27]!==f||e[28]!==r?(C=()=>{f(ge(r))},e[27]=f,e[28]=r,e[29]=C):C=e[29];let O;e[30]===Symbol.for("react.memo_cache_sentinel")?(O=(0,a.jsx)(Ur,{className:"w-3.5 h-3.5 mr-1"}),e[30]=O):O=e[30];let k;e[31]===C?k=e[32]:(k=(0,a.jsx)("div",{children:(0,a.jsxs)(Be,{size:"xs","data-testid":"marimo-plugin-data-frames-add-array-item",variant:"text",className:"hover:text-accent-foreground",onClick:C,children:[O,"Add"]})}),e[31]=C,e[32]=k);let q;return e[33]!==g||e[34]!==v||e[35]!==y||e[36]!==N||e[37]!==k?(q=(0,a.jsxs)("div",{className:"flex flex-col gap-2 min-w-[220px]",children:[g,v,y,N,k]}),e[33]=g,e[34]=v,e[35]=y,e[36]=N,e[37]=k,e[38]=q):q=e[38],q},gr=t=>{let e=(0,se.c)(21),{schema:r,form:n,path:l}=t,o;e[0]===r.description?o=e[1]:(o=G.parse(r.description),e[0]=r.description,e[1]=o);let{label:i,description:d,placeholder:p,disabled:s,inputType:c}=o;if(c==="textarea"){let f;e[2]!==d||e[3]!==s||e[4]!==i||e[5]!==p?(f=j=>{let{field:x}=j;return(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{children:i}),(0,a.jsx)(A,{children:d}),(0,a.jsx)(V,{children:(0,a.jsx)(Ze,{...x,value:x.value,onChange:x.onChange,className:"my-0",placeholder:p,disabled:s})}),(0,a.jsx)(E,{})]})},e[2]=d,e[3]=s,e[4]=i,e[5]=p,e[6]=f):f=e[6];let m;return e[7]!==n.control||e[8]!==l||e[9]!==f?(m=(0,a.jsx)(R,{control:n.control,name:l,render:f}),e[7]=n.control,e[8]=l,e[9]=f,e[10]=m):m=e[10],m}let u;e[11]!==d||e[12]!==s||e[13]!==c||e[14]!==i||e[15]!==p?(u=f=>{let{field:m}=f;return(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{children:i}),(0,a.jsx)(A,{children:d}),(0,a.jsx)(V,{children:(0,a.jsx)(Ve,{...m,type:c,value:m.value,onValueChange:m.onChange,className:"my-0",placeholder:p,disabled:s})}),(0,a.jsx)(E,{})]})},e[11]=d,e[12]=s,e[13]=c,e[14]=i,e[15]=p,e[16]=u):u=e[16];let h;return e[17]!==n.control||e[18]!==l||e[19]!==u?(h=(0,a.jsx)(R,{control:n.control,name:l,render:u}),e[17]=n.control,e[18]=l,e[19]=u,e[20]=h):h=e[20],h},Ea=t=>{let e=(0,se.c)(10),{schema:r,form:n,path:l}=t,o;e[0]===r.description?o=e[1]:(o=G.parse(r.description),e[0]=r.description,e[1]=o);let{label:i,description:d,placeholder:p}=o,s;e[2]!==d||e[3]!==i||e[4]!==p?(s=u=>{let{field:h}=u;return(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{children:i}),(0,a.jsx)(A,{children:d}),(0,a.jsx)(V,{children:(0,a.jsx)(Fe,{...h,placeholder:p})}),(0,a.jsx)(E,{})]})},e[2]=d,e[3]=i,e[4]=p,e[5]=s):s=e[5];let c;return e[6]!==n.control||e[7]!==l||e[8]!==s?(c=(0,a.jsx)(R,{control:n.control,name:l,render:s}),e[6]=n.control,e[7]=l,e[8]=s,e[9]=c):c=e[9],c},Pa=t=>{let e=(0,se.c)(22),{schema:r,form:n,path:l,options:o,textTransform:i}=t,d;e[0]===r.description?d=e[1]:(d=G.parse(r.description),e[0]=r.description,e[1]=d);let{label:p,description:s,disabled:c,special:u}=d;if(u==="radio_group"){let m;e[2]!==s||e[3]!==p||e[4]!==o||e[5]!==l?(m=x=>{let{field:g}=x;return(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{children:p}),(0,a.jsx)(A,{children:s}),(0,a.jsx)(V,{children:(0,a.jsx)(Ie,{className:"flex flex-row gap-2 pt-1 items-center",value:g.value,onValueChange:g.onChange,children:o.map(v=>(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(qe,{value:v,id:`${l}-${v}`},v),(0,a.jsx)(S,{className:"whitespace-pre",htmlFor:`${l}-${v}`,children:ze.startCase(v)})]},v))})}),(0,a.jsx)(E,{})]})},e[2]=s,e[3]=p,e[4]=o,e[5]=l,e[6]=m):m=e[6];let j;return e[7]!==c||e[8]!==n.control||e[9]!==l||e[10]!==m?(j=(0,a.jsx)(R,{control:n.control,name:l,disabled:c,render:m}),e[7]=c,e[8]=n.control,e[9]=l,e[10]=m,e[11]=j):j=e[11],j}let h;e[12]!==s||e[13]!==p||e[14]!==o||e[15]!==i?(h=m=>{let{field:j}=m;return(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{className:"whitespace-pre",children:p}),(0,a.jsx)(A,{children:s}),(0,a.jsx)(V,{children:(0,a.jsxs)(Tr,{"data-testid":"marimo-plugin-data-frames-select",value:j.value,onValueChange:j.onChange,children:[(0,a.jsx)(zr,{className:"min-w-[180px]",children:(0,a.jsx)(qr,{placeholder:"--"})}),(0,a.jsx)(Gr,{children:(0,a.jsxs)(Mr,{children:[o.map(x=>(0,a.jsx)(Ke,{value:x,children:(i==null?void 0:i(x))??x},x)),o.length===0&&(0,a.jsx)(Ke,{disabled:!0,value:"--",children:"No options"})]})})]})}),(0,a.jsx)(E,{})]})},e[12]=s,e[13]=p,e[14]=o,e[15]=i,e[16]=h):h=e[16];let f;return e[17]!==c||e[18]!==n.control||e[19]!==l||e[20]!==h?(f=(0,a.jsx)(R,{control:n.control,name:l,disabled:c,render:h}),e[17]=c,e[18]=n.control,e[19]=l,e[20]=h,e[21]=f):f=e[21],f},La=t=>{let e=(0,se.c)(15),{schema:r,form:n,path:l,options:o,itemLabel:i,showSwitchable:d}=t,p;e[0]===r.description?p=e[1]:(p=G.parse(r.description),e[0]=r.description,e[1]=p);let{label:s,description:c,placeholder:u}=p,h;e[2]!==i||e[3]!==u?(h=u??(i?`Select ${i==null?void 0:i.toLowerCase()}`:void 0),e[2]=i,e[3]=u,e[4]=h):h=e[4];let f=h,m;e[5]!==c||e[6]!==s||e[7]!==o||e[8]!==f||e[9]!==d?(m=x=>{let{field:g}=x,v=be(g.value);return(0,a.jsxs)(P,{children:[(0,a.jsx)(S,{className:"whitespace-pre",children:s}),(0,a.jsx)(A,{children:c}),(0,a.jsx)(V,{children:d?(0,a.jsx)(vr,{...g,value:v,options:o,placeholder:f}):(0,a.jsx)(Le,{className:"min-w-[180px]",placeholder:f,displayValue:qa,multiple:!0,chips:!0,keepPopoverOpenOnSelect:!0,value:v,onValueChange:g.onChange,children:o.map(Fa)})}),(0,a.jsx)(E,{})]})},e[5]=c,e[6]=s,e[7]=o,e[8]=f,e[9]=d,e[10]=m):m=e[10];let j;return e[11]!==n.control||e[12]!==l||e[13]!==m?(j=(0,a.jsx)(R,{control:n.control,name:l,render:m}),e[11]=n.control,e[12]=l,e[13]=m,e[14]=j):j=e[14],j};function $a(...t){return t.filter(e=>e!=="").join(".")}function Ia(t){return t.preventDefault()}function qa(t){return ze.startCase(t)}function Fa(t){return(0,a.jsx)(je,{value:t,children:t},t)}export{be as a,Ie as c,Qe as d,Le as f,Fe as i,qe as l,L as n,ge as o,je as p,vr as r,te as s,Aa as t,G as u}; diff --git a/docs/assets/formats-DtJ_484s.js b/docs/assets/formats-DtJ_484s.js new file mode 100644 index 0000000..6d86b95 --- /dev/null +++ b/docs/assets/formats-DtJ_484s.js @@ -0,0 +1 @@ +import{o as a}from"./tooltip-CrRUCOBw.js";function o(r){function n(t){return!!(t!=null&&t.schema)&&Array.isArray(t.schema.fields)&&typeof t.toArray=="function"}return(n(r)?r:f(r)).toArray()}o.responseType="arrayBuffer";function f(r,n){return a(r,n??{useProxy:!0})}export{o as t}; diff --git a/docs/assets/forth-BdKkHzwH.js b/docs/assets/forth-BdKkHzwH.js new file mode 100644 index 0000000..8ecf673 --- /dev/null +++ b/docs/assets/forth-BdKkHzwH.js @@ -0,0 +1 @@ +function r(t){var R=[];return t.split(" ").forEach(function(E){R.push({name:E})}),R}var T=r("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),n=r("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function O(t,R){var E;for(E=t.length-1;E>=0;E--)if(t[E].name===R.toUpperCase())return t[E]}const S={name:"forth",startState:function(){return{state:"",base:10,coreWordList:T,immediateWordList:n,wordList:[]}},token:function(t,R){var E;if(t.eatSpace())return null;if(R.state===""){if(t.match(/^(\]|:NONAME)(\s|$)/i))return R.state=" compilation","builtin";if(E=t.match(/^(\:)\s+(\S+)(\s|$)+/),E)return R.wordList.push({name:E[2].toUpperCase()}),R.state=" compilation","def";if(E=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i),E)return R.wordList.push({name:E[2].toUpperCase()}),"def";if(E=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/),E)return"builtin"}else{if(t.match(/^(\;|\[)(\s)/))return R.state="",t.backUp(1),"builtin";if(t.match(/^(\;|\[)($)/))return R.state="","builtin";if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}if(E=t.match(/^(\S+)(\s+|$)/),E)return O(R.wordList,E[1])===void 0?E[1]==="\\"?(t.skipToEnd(),"comment"):O(R.coreWordList,E[1])===void 0?O(R.immediateWordList,E[1])===void 0?E[1]==="("?(t.eatWhile(function(i){return i!==")"}),t.eat(")"),"comment"):E[1]===".("?(t.eatWhile(function(i){return i!==")"}),t.eat(")"),"string"):E[1]==='S"'||E[1]==='."'||E[1]==='C"'?(t.eatWhile(function(i){return i!=='"'}),t.eat('"'),"string"):E[1]-68719476735?"number":"atom":"keyword":"builtin":"variable"}};export{S as t}; diff --git a/docs/assets/forth-cDDgSP9p.js b/docs/assets/forth-cDDgSP9p.js new file mode 100644 index 0000000..266ee5a --- /dev/null +++ b/docs/assets/forth-cDDgSP9p.js @@ -0,0 +1 @@ +import{t as o}from"./forth-BdKkHzwH.js";export{o as forth}; diff --git a/docs/assets/fortran-C8vMa5zJ.js b/docs/assets/fortran-C8vMa5zJ.js new file mode 100644 index 0000000..b30716b --- /dev/null +++ b/docs/assets/fortran-C8vMa5zJ.js @@ -0,0 +1 @@ +import{t as r}from"./fortran-DxGNM9Kj.js";export{r as fortran}; diff --git a/docs/assets/fortran-DxGNM9Kj.js b/docs/assets/fortran-DxGNM9Kj.js new file mode 100644 index 0000000..d947727 --- /dev/null +++ b/docs/assets/fortran-DxGNM9Kj.js @@ -0,0 +1 @@ +function r(e){for(var n={},t=0;t\/\:]/,d=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function m(e,n){if(e.match(d))return"operator";var t=e.next();if(t=="!")return e.skipToEnd(),"comment";if(t=='"'||t=="'")return n.tokenize=u(t),n.tokenize(e,n);if(/[\[\]\(\),]/.test(t))return null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(o.test(t))return e.eatWhile(o),"operator";e.eatWhile(/[\w\$_]/);var i=e.current().toLowerCase();return s.hasOwnProperty(i)?"keyword":l.hasOwnProperty(i)||_.hasOwnProperty(i)?"builtin":"variable"}function u(e){return function(n,t){for(var i=!1,a,c=!1;(a=n.next())!=null;){if(a==e&&!i){c=!0;break}i=!i&&a=="\\"}return(c||!i)&&(t.tokenize=null),"string"}}const p={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,n){return e.eatSpace()?null:(n.tokenize||m)(e,n)}};export{p as t}; diff --git a/docs/assets/fortran-fixed-form-OBD5ulQv.js b/docs/assets/fortran-fixed-form-OBD5ulQv.js new file mode 100644 index 0000000..46284db --- /dev/null +++ b/docs/assets/fortran-fixed-form-OBD5ulQv.js @@ -0,0 +1 @@ +import{t as e}from"./fortran-free-form-BDe2V9k1.js";var n=Object.freeze(JSON.parse('{"displayName":"Fortran (Fixed Form)","fileTypes":["f","F","f77","F77","for","FOR"],"injections":{"source.fortran.fixed - ( string | comment )":{"patterns":[{"include":"#line-header"},{"include":"#line-end-comment"}]}},"name":"fortran-fixed-form","patterns":[{"include":"#comments"},{"include":"#line-header"},{"include":"source.fortran.free"}],"repository":{"comments":{"patterns":[{"begin":"^[*Cc]","end":"\\\\n","name":"comment.line.fortran"},{"begin":"^ *!","end":"\\\\n","name":"comment.line.fortran"}]},"line-end-comment":{"begin":"(?<=^.{72})(?!\\\\n)","end":"(?=\\\\n)","name":"comment.line-end.fortran"},"line-header":{"captures":{"1":{"name":"constant.numeric.fortran"},"2":{"name":"keyword.line-continuation-operator.fortran"},"3":{"name":"source.fortran.free"},"4":{"name":"invalid.error.fortran"}},"match":"^(?!\\\\s*[!#])(?:([ \\\\d]{5} )|( {5}.)|(\\\\t)|(.{1,5}))"}},"scopeName":"source.fortran.fixed","embeddedLangs":["fortran-free-form"],"aliases":["f","for","f77"]}')),r=[...e,n];export{r as default}; diff --git a/docs/assets/fortran-free-form-BDe2V9k1.js b/docs/assets/fortran-free-form-BDe2V9k1.js new file mode 100644 index 0000000..6645d53 --- /dev/null +++ b/docs/assets/fortran-free-form-BDe2V9k1.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Fortran (Free Form)","fileTypes":["f90","F90","f95","F95","f03","F03","f08","F08","f18","F18","fpp","FPP",".pf",".PF"],"firstLineMatch":"(?i)-\\\\*- mode: fortran free -\\\\*-","injections":{"source.fortran.free - ( string | comment | meta.preprocessor )":{"patterns":[{"include":"#line-continuation-operator"},{"include":"#preprocessor"}]},"string.quoted.double.fortran":{"patterns":[{"include":"#string-line-continuation-operator"}]},"string.quoted.single.fortran":{"patterns":[{"include":"#string-line-continuation-operator"}]}},"name":"fortran-free-form","patterns":[{"include":"#preprocessor"},{"include":"#comments"},{"include":"#constants"},{"include":"#operators"},{"include":"#array-constructor"},{"include":"#parentheses"},{"include":"#include-statement"},{"include":"#import-statement"},{"include":"#block-data-definition"},{"include":"#function-definition"},{"include":"#module-definition"},{"include":"#program-definition"},{"include":"#submodule-definition"},{"include":"#subroutine-definition"},{"include":"#procedure-definition"},{"include":"#derived-type-definition"},{"include":"#enum-block-construct"},{"include":"#interface-block-constructs"},{"include":"#procedure-specification-statement"},{"include":"#type-specification-statements"},{"include":"#specification-statements"},{"include":"#control-constructs"},{"include":"#control-statements"},{"include":"#execution-statements"},{"include":"#intrinsic-functions"},{"include":"#variable"}],"repository":{"IO-item-list":{"begin":"(?i)(?=\\\\s*[\\"'0-9a-z])","contentName":"meta.name-list.fortran","end":"(?=[\\\\n!);])","patterns":[{"include":"#constants"},{"include":"#operators"},{"include":"#intrinsic-functions"},{"include":"#array-constructor"},{"include":"#parentheses"},{"include":"#brackets"},{"include":"#assignment-keyword"},{"include":"#operator-keyword"},{"include":"#variable"}]},"IO-keywords":{"begin":"(?i)\\\\G\\\\s*\\\\b(?:(read)|(write))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.generic-spec.read.fortran"},"2":{"name":"keyword.control.generic-spec.write.fortran"},"3":{"name":"punctuation.parentheses.left.fortran"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parentheses.right.fortran"}},"patterns":[{"captures":{"1":{"name":"keyword.control.generic-spec.formatted.fortran"},"2":{"name":"keyword.control.generic-spec.unformatted.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(?:(formatted)|(unformatted))\\\\b"},{"include":"#invalid-word"}]},"IO-statements":{"patterns":[{"begin":"(?i)\\\\b(?:(backspace)|(close)|(endfile)|(format)|(inquire)|(open)|(read)|(rewind)|(write))\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.backspace.fortran"},"2":{"name":"keyword.control.close.fortran"},"3":{"name":"keyword.control.endfile.fortran"},"4":{"name":"keyword.control.format.fortran"},"5":{"name":"keyword.control.inquire.fortran"},"6":{"name":"keyword.control.open.fortran"},"7":{"name":"keyword.control.read.fortran"},"8":{"name":"keyword.control.rewind.fortran"},"9":{"name":"keyword.control.write.fortran"},"10":{"name":"punctuation.parentheses.left.fortran"}},"end":"(?=[\\\\n!;])","endCaptures":{"1":{"name":"punctuation.parentheses.right.fortran"}},"name":"meta.statement.IO.fortran","patterns":[{"include":"#parentheses-dummy-variables"},{"include":"#IO-item-list"}]},{"captures":{"1":{"name":"keyword.control.backspace.fortran"},"2":{"name":"keyword.control.endfile.fortran"},"3":{"name":"keyword.control.format.fortran"},"4":{"name":"keyword.control.print.fortran"},"5":{"name":"keyword.control.read.fortran"},"6":{"name":"keyword.control.rewind.fortran"}},"match":"(?i)\\\\b(?:(backspace)|(endfile)|(format)|(print)|(read)|(rewind))\\\\b"},{"begin":"(?i)\\\\b(?:(flush)|(wait))\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.flush.fortran"},"2":{"name":"keyword.control.wait.fortran"},"3":{"name":"punctuation.parentheses.left.fortran"}},"end":"(?])(=)(?![=>])","name":"keyword.operator.assignment.fortran"},"associate-construct":{"begin":"(?i)\\\\b(associate)\\\\b(?=\\\\s*\\\\()","beginCaptures":{"1":{"name":"keyword.control.associate.fortran"}},"contentName":"meta.block.associate.fortran","end":"(?i)\\\\b(end\\\\s*associate)\\\\b","endCaptures":{"1":{"name":"keyword.control.endassociate.fortran"}},"patterns":[{"include":"$base"}]},"asynchronous-attribute":{"captures":{"1":{"name":"storage.modifier.asynchronous.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(asynchronous)\\\\b"},"attribute-specification-statement":{"begin":"(?i)(?=\\\\b(?:allocatable|asynchronous|contiguous|external|intrinsic|optional|parameter|pointer|private|protected|public|save|target|value|volatile)\\\\b|(bind|dimension|intent)\\\\s*\\\\(|(codimension)\\\\s*\\\\[)","end":"(?=[\\\\n!;])","name":"meta.statement.attribute-specification.fortran","patterns":[{"include":"#access-attribute"},{"include":"#allocatable-attribute"},{"include":"#asynchronous-attribute"},{"include":"#codimension-attribute"},{"include":"#contiguous-attribute"},{"include":"#dimension-attribute"},{"include":"#external-attribute"},{"include":"#intent-attribute"},{"include":"#intrinsic-attribute"},{"include":"#language-binding-attribute"},{"include":"#optional-attribute"},{"include":"#parameter-attribute"},{"include":"#pointer-attribute"},{"include":"#protected-attribute"},{"include":"#save-attribute"},{"include":"#target-attribute"},{"include":"#value-attribute"},{"include":"#volatile-attribute"},{"begin":"(?=\\\\s*::)","contentName":"meta.attribute-list.normal.fortran","end":"(::)|(?=[\\\\n!;])","endCaptures":{"1":{"name":"keyword.operator.double-colon.fortran"}},"patterns":[{"include":"#invalid-word"}]},{"include":"#name-list"}]},"block-construct":{"begin":"(?i)\\\\b(block)\\\\b(?!\\\\s*\\\\bdata\\\\b)","beginCaptures":{"1":{"name":"keyword.control.associate.fortran"}},"contentName":"meta.block.block.fortran","end":"(?i)\\\\b(end\\\\s*block)\\\\b","endCaptures":{"1":{"name":"keyword.control.endassociate.fortran"}},"patterns":[{"include":"$base"}]},"block-data-definition":{"begin":"(?i)\\\\b(block\\\\s*data)\\\\b(?:\\\\s+([a-z]\\\\w*)\\\\b)?","beginCaptures":{"1":{"name":"keyword.control.block-data.fortran"},"2":{"name":"entity.name.block-data.fortran"}},"end":"(?i)\\\\b(?:(end\\\\s*block\\\\s*data)(?:\\\\s+(\\\\2))?|(end))\\\\b(?:\\\\s*(\\\\S((?!\\\\n).)*))?","endCaptures":{"1":{"name":"keyword.control.end-block-data.fortran"},"2":{"name":"entity.name.block-data.fortran"},"3":{"name":"keyword.control.end-block-data.fortran"},"4":{"name":"invalid.error.block-data-definition.fortran"}},"name":"meta.block-data.fortran","patterns":[{"include":"$base"}]},"brackets":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"punctuation.bracket.left.fortran"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.bracket.left.fortran"}},"patterns":[{"include":"#comments"},{"include":"#constants"},{"include":"#operators"},{"include":"#array-constructor"},{"include":"#parentheses"},{"include":"#intrinsic-functions"},{"include":"#variable"}]},"call-statement":{"patterns":[{"begin":"(?i)\\\\s*\\\\b(call)\\\\b","beginCaptures":{"1":{"name":"keyword.control.call.fortran"}},"end":"(?=[\\\\n!;])","name":"meta.statement.control.call.fortran","patterns":[{"begin":"(?i)\\\\G\\\\s*([a-z]\\\\w*)(%)([a-z]\\\\w*)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"variable.other.fortran"},"2":{"name":"keyword.accessor.fortran"},"3":{"name":"entity.name.function.subroutine.fortran"}},"end":"(?=|[<>]|<=|[-+/]|//|\\\\*\\\\*?)|(\\\\S.*))\\\\s*(\\\\))","beginCaptures":{"1":{"name":"keyword.other.operator.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"},"3":{"name":"keyword.operator.fortran"},"4":{"name":"invalid.error.generic-interface-block-op.fortran"},"5":{"name":"punctuation.parentheses.right.fortran"}},"end":"(?i)\\\\b(end\\\\s*interface)\\\\b(?:\\\\s*\\\\b(\\\\1)\\\\b\\\\s*(\\\\()\\\\s*(?:(\\\\3)|(\\\\S.*))\\\\s*(\\\\)))?","endCaptures":{"1":{"name":"keyword.control.endinterface.fortran"},"2":{"name":"keyword.other.operator.fortran"},"3":{"name":"punctuation.parentheses.left.fortran"},"4":{"name":"keyword.operator.fortran"},"5":{"name":"invalid.error.generic-interface-block-op-end.fortran"},"6":{"name":"punctuation.parentheses.right.fortran"}},"patterns":[{"include":"#interface-procedure-statement"},{"include":"$base"}]},{"begin":"(?i)\\\\G\\\\s*\\\\b(?:(read)|(write))\\\\s*(\\\\()\\\\s*(?:(formatted)|(unformatted)|(\\\\S.*))\\\\s*(\\\\))","beginCaptures":{"1":{"name":"keyword.other.read.fortran"},"2":{"name":"keyword.other.write.fortran"},"3":{"name":"punctuation.parentheses.left.fortran"},"4":{"name":"keyword.other.formatted.fortran"},"5":{"name":"keyword.other.unformatted.fortran"},"6":{"name":"invalid.error.generic-interface-block.fortran"},"7":{"name":"punctuation.parentheses.right.fortran"}},"end":"(?i)\\\\b(end\\\\s*interface)\\\\b(?:\\\\s*\\\\b(?:(\\\\2)|(\\\\3))\\\\b\\\\s*(\\\\()\\\\s*(?:(\\\\4)|(\\\\5)|(\\\\S.*))\\\\s*(\\\\)))?","endCaptures":{"1":{"name":"keyword.control.endinterface.fortran"},"2":{"name":"keyword.other.read.fortran"},"3":{"name":"keyword.other.write.fortran"},"4":{"name":"punctuation.parentheses.left.fortran"},"5":{"name":"keyword.other.formatted.fortran"},"6":{"name":"keyword.other.unformatted.fortran"},"7":{"name":"invalid.error.generic-interface-block-end.fortran"},"8":{"name":"punctuation.parentheses.right.fortran"}},"patterns":[{"include":"#interface-procedure-statement"},{"include":"$base"}]},{"begin":"(?i)\\\\G\\\\s*\\\\b([a-z]\\\\w*)\\\\b","beginCaptures":{"1":{"name":"entity.name.function.fortran"}},"end":"(?i)\\\\b(end\\\\s*interface)\\\\b(?:\\\\s*\\\\b(\\\\1)\\\\b)?","endCaptures":{"1":{"name":"keyword.control.endinterface.fortran"},"2":{"name":"entity.name.function.fortran"}},"patterns":[{"include":"#interface-procedure-statement"},{"include":"$base"}]}]},"goto-statement":{"begin":"(?i)\\\\s*\\\\b(go\\\\s*to)\\\\b","beginCaptures":{"1":{"name":"keyword.control.goto.fortran"}},"end":"(?=[\\\\n!;])","name":"meta.statement.control.goto.fortran","patterns":[{"include":"$base"}]},"if-construct":{"patterns":[{"begin":"(?i)\\\\b(if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.if.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"include":"#logical-control-expression"},{"begin":"(?i)\\\\s*\\\\b(then)\\\\b","beginCaptures":{"1":{"name":"keyword.control.then.fortran"}},"contentName":"meta.block.if.fortran","end":"(?i)\\\\b(end\\\\s*if)\\\\b","endCaptures":{"1":{"name":"keyword.control.endif.fortran"}},"patterns":[{"begin":"(?i)\\\\b(else\\\\s*if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.elseif.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"include":"#parentheses"},{"captures":{"1":{"name":"keyword.control.then.fortran"},"2":{"name":"meta.label.elseif.fortran"}},"match":"(?i)\\\\b(then)\\\\b(\\\\s*[a-z]\\\\w*)?"},{"include":"#invalid-word"}]},{"begin":"(?i)\\\\b(else)\\\\b","beginCaptures":{"1":{"name":"keyword.control.else.fortran"}},"end":"(?i)(?=\\\\b(end\\\\s*if)\\\\b)","patterns":[{"begin":"(?!(\\\\s*([\\\\n!;])))","end":"(?=[\\\\n!;])","patterns":[{"captures":{"1":{"name":"meta.label.else.fortran"},"2":{"name":"invalid.error.label.else.fortran"}},"match":"\\\\s*([a-z]\\\\w*)?\\\\s*\\\\b(\\\\w*)\\\\b"},{"include":"#invalid-word"}]},{"begin":"(?i)(?!\\\\b(end\\\\s*if)\\\\b)","end":"(?i)(?=\\\\b(end\\\\s*if)\\\\b)","patterns":[{"include":"$base"}]}]},{"include":"$base"}]},{"begin":"(?i)(?=\\\\s*[a-z])","end":"(?=[\\\\n!;])","name":"meta.statement.control.if.fortran","patterns":[{"include":"$base"}]}]}]},"image-control-statement":{"patterns":[{"include":"#sync-all-statement"},{"include":"#sync-statement"},{"include":"#event-statement"},{"include":"#form-team-statement"},{"include":"#fail-image-statement"}]},"implicit-statement":{"begin":"(?i)\\\\b(implicit)\\\\b","beginCaptures":{"1":{"name":"keyword.other.implicit.fortran"}},"end":"(?=[\\\\n!;])","name":"meta.statement.implicit.fortran","patterns":[{"captures":{"1":{"name":"keyword.other.none.fortran"}},"match":"(?i)\\\\s*\\\\b(none)\\\\b"},{"include":"$base"}]},"import-statement":{"begin":"(?i)\\\\b(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.include.fortran"}},"end":"(?=[\\\\n!;])","name":"meta.statement.include.fortran","patterns":[{"begin":"(?i)\\\\G\\\\s*(?:(::)|(?=[a-z]))","beginCaptures":{"1":{"name":"keyword.operator.double-colon.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"include":"#name-list"}]},{"begin":"\\\\G\\\\s*(,)","beginCaptures":{"1":{"name":"punctuation.comma.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"captures":{"1":{"name":"keyword.other.all.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(all)\\\\b"},{"captures":{"1":{"name":"keyword.other.none.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(none)\\\\b"},{"begin":"(?i)\\\\G\\\\s*\\\\b(only)\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.other.only.fortran"},"2":{"name":"keyword.other.colon.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"include":"#name-list"}]},{"include":"#invalid-word"}]}]},"include-statement":{"begin":"(?i)\\\\b(include)\\\\b","beginCaptures":{"1":{"name":"keyword.control.include.fortran"}},"end":"(?=[\\\\n!;])","name":"meta.statement.include.fortran","patterns":[{"include":"#string-constant"},{"include":"#invalid-character"}]},"intent-attribute":{"begin":"(?i)\\\\s*\\\\b(intent)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.intent.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"}},"end":"(\\\\))|(?=[\\\\n!;])","endCaptures":{"1":{"name":"punctuation.parentheses.left.fortran"}},"patterns":[{"captures":{"1":{"name":"storage.modifier.intent.in-out.fortran"},"2":{"name":"storage.modifier.intent.in.fortran"},"3":{"name":"storage.modifier.intent.out.fortran"}},"match":"(?i)\\\\b(?:(in\\\\s*out)|(in)|(out))\\\\b"},{"include":"#invalid-word"}]},"interface-block-constructs":{"patterns":[{"include":"#abstract-interface-block-construct"},{"include":"#explicit-interface-block-construct"},{"include":"#generic-interface-block-construct"}]},"interface-procedure-statement":{"begin":"(?i)(?=[^\\\\n!\\"';]*\\\\bprocedure\\\\b)","end":"(?=[\\\\n!;])","name":"meta.statement.procedure.fortran","patterns":[{"begin":"(?i)(?=\\\\G\\\\s*(?!\\\\bprocedure\\\\b))","end":"(?i)(?=\\\\bprocedure\\\\b)","name":"meta.attribute-list.interface.fortran","patterns":[{"include":"#module-attribute"},{"include":"#invalid-word"}]},{"begin":"(?i)\\\\s*\\\\b(procedure)\\\\b","beginCaptures":{"1":{"name":"keyword.other.procedure.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"captures":{"1":{"name":"keyword.operator.double-colon.fortran"}},"match":"\\\\G\\\\s*(::)"},{"include":"#procedure-name-list"}]}]},"intrinsic-attribute":{"captures":{"1":{"name":"storage.modifier.intrinsic.fortran"}},"match":"(?i)\\\\s*\\\\b(intrinsic)\\\\b"},"intrinsic-functions":{"patterns":[{"begin":"(?i)\\\\b(acosh|asinh|atanh|bge|bgt|ble|blt|dshiftl|dshiftr|findloc|hypot|iall|iany|image_index|iparity|is_contiguous|lcobound|leadz|mask[lr]|merge_bits|norm2|num_images|parity|popcnt|poppar|shift[alr]|storage_size|this_image|trailz|ucobound)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"support.function.intrinsic.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"}},"end":"(?=|(?|<=?)","name":"keyword.logical.fortran.modern"}]},"logical-type":{"patterns":[{"begin":"(?i)\\\\b(logical)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.type.logical.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"}},"contentName":"meta.type-spec.fortran","end":"(?)","name":"keyword.other.point.fortran"},"preprocessor":{"begin":"^\\\\s*(#:?)","beginCaptures":{"1":{"name":"keyword.control.preprocessor.indicator.fortran"}},"end":"\\\\n","name":"meta.preprocessor","patterns":[{"include":"#preprocessor-if-construct"},{"include":"#preprocessor-statements"}]},"preprocessor-arithmetic-operators":{"captures":{"1":{"name":"keyword.operator.subtraction.fortran"},"2":{"name":"keyword.operator.addition.fortran"},"3":{"name":"keyword.operator.division.fortran"},"4":{"name":"keyword.operator.multiplication.fortran"}},"match":"(-)|(\\\\+)|(/)|(\\\\*)"},"preprocessor-assignment-operator":{"match":"(?","endCaptures":{"0":{"name":"punctuation.definition.string.end.preprocessor.fortran"}},"name":"string.quoted.other.lt-gt.include.preprocessor.fortran"},{"include":"#line-continuation-operator"}]},"preprocessor-line-continuation-operator":{"begin":"\\\\s*(\\\\\\\\)","beginCaptures":{"1":{"name":"constant.character.escape.line-continuation.preprocessor.fortran"}},"end":"(?i)^"},"preprocessor-logical-operators":{"captures":{"1":{"name":"keyword.operator.logical.preprocessor.and.fortran"},"2":{"name":"keyword.operator.logical.preprocessor.equals.fortran"},"3":{"name":"keyword.operator.logical.preprocessor.not_equals.fortran"},"4":{"name":"keyword.operator.logical.preprocessor.or.fortran"},"5":{"name":"keyword.operator.logical.preprocessor.less_eq.fortran"},"6":{"name":"keyword.operator.logical.preprocessor.more_eq.fortran"},"7":{"name":"keyword.operator.logical.preprocessor.less.fortran"},"8":{"name":"keyword.operator.logical.preprocessor.more.fortran"},"9":{"name":"keyword.operator.logical.preprocessor.complementary.fortran"},"10":{"name":"keyword.operator.logical.preprocessor.xor.fortran"},"11":{"name":"keyword.operator.logical.preprocessor.bitand.fortran"},"12":{"name":"keyword.operator.logical.preprocessor.not.fortran"},"13":{"name":"keyword.operator.logical.preprocessor.bitor.fortran"}},"match":"(&&)|(==)|(!=)|(\\\\|\\\\|)|(<=)|(>=)|(<)|(>)|(~)|(\\\\^)|(&)|(!)|(\\\\|)","name":"keyword.operator.logical.preprocessor.fortran"},"preprocessor-operators":{"patterns":[{"include":"#preprocessor-line-continuation-operator"},{"include":"#preprocessor-logical-operators"},{"include":"#preprocessor-arithmetic-operators"}]},"preprocessor-pragma-statement":{"begin":"(?i)\\\\G\\\\s*\\\\b(pragma)\\\\b","beginCaptures":{"1":{"name":"keyword.control.preprocessor.pragma.fortran"}},"end":"(?=\\\\n)","name":"meta.preprocessor.pragma.fortran","patterns":[{"include":"#preprocessor-comments"},{"include":"#preprocessor-string-constant"}]},"preprocessor-statements":{"patterns":[{"include":"#preprocessor-define-statement"},{"include":"#preprocessor-error-statement"},{"include":"#preprocessor-include-statement"},{"include":"#preprocessor-preprocessor-pragma-statement"},{"include":"#preprocessor-undefine-statement"}]},"preprocessor-string-constant":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.preprocessor.fortran"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.preprocessor.fortran"}},"name":"string.quoted.double.include.preprocessor.fortran"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.preprocessor.fortran"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.preprocessor.fortran"}},"name":"string.quoted.single.include.preprocessor.fortran"}]},"preprocessor-undefine-statement":{"begin":"(?i)\\\\G\\\\s*\\\\b(undef)\\\\b","beginCaptures":{"1":{"name":"keyword.control.preprocessor.undef.fortran"}},"end":"(?=\\\\n)","name":"meta.preprocessor.undef.fortran","patterns":[{"include":"#preprocessor-comments"},{"include":"#preprocessor-line-continuation-operator"}]},"private-attribute":{"captures":{"1":{"name":"storage.modifier.private.fortran"}},"match":"(?i)\\\\s*\\\\b(private)\\\\b"},"procedure-call-dummy-variable":{"match":"(?i)\\\\s*([a-z]\\\\w*)(?=\\\\s*=)(?!\\\\s*==)","name":"variable.parameter.dummy-variable.fortran.modern"},"procedure-definition":{"begin":"(?i)(?=[^\\\\n!\\"';]*\\\\bmodule\\\\s+procedure\\\\b)","end":"(?=[\\\\n!;])","name":"meta.procedure.fortran","patterns":[{"begin":"(?i)\\\\s*\\\\b(module\\\\s+procedure)\\\\b","beginCaptures":{"1":{"name":"keyword.other.procedure.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"begin":"(?i)\\\\G\\\\s*\\\\b([a-z]\\\\w*)\\\\b","beginCaptures":{"1":{"name":"entity.name.function.procedure.fortran"}},"end":"(?i)\\\\s*\\\\b(?:(end\\\\s*procedure)(?:\\\\s+([_a-z]\\\\w*))?|(end))\\\\b\\\\s*([^\\\\n!;]+)?(?=[\\\\n!;])","endCaptures":{"1":{"name":"keyword.other.endprocedure.fortran"},"2":{"name":"entity.name.function.procedure.fortran"},"3":{"name":"keyword.other.endprocedure.fortran"},"4":{"name":"invalid.error.procedure-definition.fortran"}},"patterns":[{"begin":"\\\\G(?!\\\\s*[\\\\n!;])","end":"(?=[\\\\n!;])","name":"meta.first-line.fortran","patterns":[{"include":"#invalid-character"}]},{"begin":"(?i)(?!\\\\s*(?:contains\\\\b|end\\\\s*[\\\\n!;]|end\\\\s*procedure\\\\b))","end":"(?i)(?=\\\\s*(?:contains\\\\b|end\\\\s*[\\\\n!;]|end\\\\s*procedure\\\\b))","name":"meta.block.specification.procedure.fortran","patterns":[{"include":"$self"}]},{"begin":"(?i)\\\\s*(contains)\\\\b","beginCaptures":{"1":{"name":"keyword.control.contains.fortran"}},"end":"(?i)(?=\\\\s*end(?:\\\\s*[\\\\n!;]|\\\\s*procedure\\\\b))","name":"meta.block.contains.fortran","patterns":[{"include":"$self"}]}]}]}]},"procedure-name":{"captures":{"1":{"name":"entity.name.function.procedure.fortran"}},"match":"(?i)\\\\s*\\\\b([a-z]\\\\w*)\\\\b"},"procedure-name-list":{"begin":"(?i)(?=\\\\s*[a-z])","contentName":"meta.name-list.fortran","end":"(?=[\\\\n!;])","patterns":[{"begin":"(?!\\\\s*\\\\n)","end":"(,)|(?=[\\\\n!;])","endCaptures":{"1":{"name":"punctuation.comma.fortran"}},"patterns":[{"include":"#procedure-name"},{"include":"#pointer-operators"}]}]},"procedure-specification-statement":{"begin":"(?i)(?=\\\\bprocedure\\\\b)","end":"(?=[\\\\n!;])","name":"meta.specification.procedure.fortran","patterns":[{"include":"#procedure-type"},{"begin":"(?=\\\\s*(,|::|\\\\())","contentName":"meta.attribute-list.procedure.fortran","end":"(::)|(?=[\\\\n!;])","endCaptures":{"1":{"name":"keyword.operator.double-colon.fortran"}},"patterns":[{"begin":"(,)|^|(?<=&)","beginCaptures":{"1":{"name":"punctuation.comma.fortran"}},"end":"(?=::|[\\\\n!\\\\&,;])","patterns":[{"include":"#access-attribute"},{"include":"#intent-attribute"},{"include":"#optional-attribute"},{"include":"#pointer-attribute"},{"include":"#protected-attribute"},{"include":"#save-attribute"},{"include":"#invalid-word"}]}]},{"include":"#procedure-name-list"}]},"procedure-type":{"patterns":[{"begin":"(?i)\\\\b(procedure)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.procedure.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"}},"contentName":"meta.type-spec.fortran","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parentheses.right.fortran"}},"patterns":[{"include":"#types"},{"include":"#procedure-name"}]},{"captures":{"1":{"name":"storage.type.procedure.fortran"}},"match":"(?i)\\\\b(procedure)\\\\b"}]},"program-definition":{"begin":"(?i)(?=\\\\b(program)\\\\b)","end":"(?=[\\\\n!;])","name":"meta.program.fortran","patterns":[{"captures":{"1":{"name":"keyword.control.program.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(program)\\\\b"},{"applyEndPatternLast":1,"begin":"(?i)\\\\s*\\\\b([a-z]\\\\w*)\\\\b","beginCaptures":{"1":{"name":"entity.name.program.fortran"}},"end":"(?i)\\\\b(?:(end\\\\s*program)(?:\\\\s+([_a-z]\\\\w*))?|(end))\\\\b\\\\s*([^\\\\n!;]+)?(?=[\\\\n!;])","endCaptures":{"1":{"name":"keyword.control.endprogram.fortran"},"2":{"name":"entity.name.program.fortran"},"3":{"name":"keyword.control.endprogram.fortran"},"4":{"name":"invalid.error.program-definition.fortran"}},"patterns":[{"begin":"\\\\G","end":"(?i)(?=\\\\bend(?:\\\\s*[\\\\n!;]|\\\\s*program\\\\b))","name":"meta.block.specification.program.fortran","patterns":[{"begin":"(?i)\\\\b(contains)\\\\b","beginCaptures":{"1":{"name":"keyword.control.contains.fortran"}},"end":"(?i)(?=end(?:\\\\s*[\\\\n!;]|\\\\s*program\\\\b))","name":"meta.block.contains.fortran","patterns":[{"include":"$base"}]},{"include":"$base"}]}]}]},"protected-attribute":{"captures":{"1":{"name":"storage.modifier.protected.fortran"}},"match":"(?i)\\\\s*\\\\b(protected)\\\\b"},"public-attribute":{"captures":{"1":{"name":"storage.modifier.public.fortran"}},"match":"(?i)\\\\s*\\\\b(public)\\\\b"},"pure-attribute":{"captures":{"1":{"name":"storage.modifier.impure.fortran"},"2":{"name":"storage.modifier.pure.fortran"}},"match":"(?i)\\\\s*\\\\b(?:(impure)|(pure))\\\\b"},"recursive-attribute":{"captures":{"1":{"name":"storage.modifier.non_recursive.fortran"},"2":{"name":"storage.modifier.recursive.fortran"}},"match":"(?i)\\\\s*\\\\b(?:(non_recursive)|(recursive))\\\\b"},"result-statement":{"begin":"(?i)\\\\s*\\\\b(result)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.result.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parentheses.right.fortran"}},"patterns":[{"include":"#dummy-variable"}]},"return-statement":{"begin":"(?i)\\\\s*\\\\b(return)\\\\b","beginCaptures":{"1":{"name":"keyword.control.return.fortran"}},"end":"(?=[\\\\n!;])","name":"meta.statement.control.return.fortran","patterns":[{"include":"#invalid-character"}]},"save-attribute":{"captures":{"1":{"name":"storage.modifier.save.fortran"}},"match":"(?i)\\\\s*\\\\b(save)\\\\b"},"select-case-construct":{"begin":"(?i)\\\\b(select\\\\s*case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.selectcase.fortran"}},"end":"(?i)\\\\b(end\\\\s*select)\\\\b","endCaptures":{"1":{"name":"keyword.control.endselect.fortran"}},"name":"meta.block.select.case.fortran","patterns":[{"include":"#parentheses"},{"begin":"(?i)\\\\b(case)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.fortran"}},"end":"(?i)(?=[\\\\n!;])","patterns":[{"captures":{"1":{"name":"keyword.control.default.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(default)\\\\b"},{"include":"#parentheses"},{"include":"#invalid-word"}]},{"include":"$base"}]},"select-rank-construct":{"begin":"(?i)\\\\b(select\\\\s*rank)\\\\b","beginCaptures":{"1":{"name":"keyword.control.selectrank.fortran"}},"end":"(?i)\\\\b(end\\\\s*select)\\\\b","endCaptures":{"1":{"name":"keyword.control.endselect.fortran"}},"name":"meta.block.select.rank.fortran","patterns":[{"include":"#parentheses"},{"begin":"(?i)\\\\b(rank)\\\\b","beginCaptures":{"1":{"name":"keyword.control.rank.fortran"}},"end":"(?i)(?=[\\\\n!;])","patterns":[{"captures":{"1":{"name":"keyword.control.default.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(default)\\\\b"},{"include":"#parentheses"},{"include":"#invalid-word"}]},{"include":"$base"}]},"select-type-construct":{"begin":"(?i)\\\\b(select\\\\s*type)\\\\b","beginCaptures":{"1":{"name":"keyword.control.selecttype.fortran"}},"end":"(?i)\\\\b(end\\\\s*select)\\\\b","endCaptures":{"1":{"name":"keyword.control.endselect.fortran"}},"name":"meta.block.select.type.fortran","patterns":[{"include":"#parentheses"},{"begin":"(?i)\\\\b(?:(class)|(type))\\\\b","beginCaptures":{"1":{"name":"keyword.control.class.fortran"},"2":{"name":"keyword.control.type.fortran"}},"end":"(?i)(?=[\\\\n!;])","patterns":[{"captures":{"1":{"name":"keyword.control.default.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(default)\\\\b"},{"captures":{"1":{"name":"keyword.control.is.fortran"}},"match":"(?i)\\\\G\\\\s*\\\\b(is)\\\\b"},{"include":"#parentheses"},{"include":"#invalid-word"}]},{"include":"$base"}]},"sequence-attribute":{"captures":{"1":{"name":"storage.modifier.sequence.fortran"}},"match":"(?i)\\\\s*\\\\b(sequence)\\\\b"},"specification-statements":{"patterns":[{"include":"#attribute-specification-statement"},{"include":"#common-statement"},{"include":"#data-statement"},{"include":"#equivalence-statement"},{"include":"#implicit-statement"},{"include":"#namelist-statement"},{"include":"#use-statement"}]},"stop-statement":{"begin":"(?i)\\\\s*\\\\b(stop)\\\\b(?:\\\\s*\\\\b([a-z]\\\\w*)\\\\b)?","beginCaptures":{"1":{"name":"keyword.control.stop.fortran"},"2":{"name":"meta.label.stop.stop"}},"end":"(?=[\\\\n!;])","name":"meta.statement.control.stop.fortran","patterns":[{"include":"#constants"},{"include":"#string-operators"},{"include":"#invalid-character"}]},"string-constant":{"patterns":[{"applyEndPatternLast":1,"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.fortran"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.fortran"}},"name":"string.quoted.single.fortran","patterns":[{"match":"''","name":"constant.character.escape.apostrophe.fortran"}]},{"applyEndPatternLast":1,"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.fortran"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.fortran"}},"name":"string.quoted.double.fortran","patterns":[{"match":"\\"\\"","name":"constant.character.escape.quote.fortran"}]}]},"string-line-continuation-operator":{"begin":"(&)(?=\\\\s*\\\\n)","beginCaptures":{"1":{"name":"keyword.operator.line-continuation.fortran"}},"end":"(?i)^(?:(?=\\\\s*[^!\\\\&\\\\s])|\\\\s*(&))","endCaptures":{"1":{"name":"keyword.operator.line-continuation.fortran"}},"patterns":[{"include":"#comments"},{"match":"\\\\S.*","name":"invalid.error.string-line-cont.fortran"}]},"string-operators":{"match":"(//)","name":"keyword.other.concatination.fortran"},"submodule-definition":{"begin":"(?i)(?=\\\\b(submodule)\\\\s*\\\\()","end":"(?=[\\\\n!;])","name":"meta.submodule.fortran","patterns":[{"begin":"(?i)\\\\G\\\\s*\\\\b(submodule)\\\\s*(\\\\()\\\\s*(\\\\w+)","beginCaptures":{"1":{"name":"keyword.other.submodule.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"},"3":{"name":"entity.name.class.submodule.fortran"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parentheses.left.fortran"}},"patterns":[]},{"applyEndPatternLast":1,"begin":"(?i)\\\\s*\\\\b([a-z]\\\\w*)\\\\b","beginCaptures":{"1":{"name":"entity.name.module.submodule.fortran"}},"end":"(?i)\\\\s*\\\\b(?:(end\\\\s*submodule)(?:\\\\s+([_a-z]\\\\w*))?|(end))\\\\b\\\\s*([^\\\\n!;]+)?(?=[\\\\n!;])","endCaptures":{"1":{"name":"keyword.other.endsubmodule.fortran"},"2":{"name":"entity.name.module.submodule.fortran"},"3":{"name":"keyword.other.endsubmodule.fortran"},"4":{"name":"invalid.error.submodule.fortran"}},"patterns":[{"begin":"\\\\G","end":"(?i)(?=\\\\bend(?:\\\\s*[\\\\n!;]|\\\\s*submodule\\\\b))","name":"meta.block.specification.submodule.fortran","patterns":[{"begin":"(?i)\\\\b(contains)\\\\b","beginCaptures":{"1":{"name":"keyword.control.contains.fortran"}},"end":"(?i)(?=\\\\s*end(?:\\\\s*[\\\\n!;]|\\\\s*submodule\\\\b))","name":"meta.block.contains.fortran","patterns":[{"include":"$base"}]},{"include":"$base"}]}]}]},"subroutine-definition":{"begin":"(?i)(?=([^\\\\n!\\"':;](?!\\\\bend))*\\\\bsubroutine\\\\b)","end":"(?=[\\\\n!;])","name":"meta.subroutine.fortran","patterns":[{"begin":"(?i)(?=\\\\G\\\\s*(?!\\\\bsubroutine\\\\b))","end":"(?i)(?=\\\\bsubroutine\\\\b)","name":"meta.attribute-list.subroutine.fortran","patterns":[{"include":"#elemental-attribute"},{"include":"#module-attribute"},{"include":"#pure-attribute"},{"include":"#recursive-attribute"},{"include":"#invalid-word"}]},{"begin":"(?i)\\\\s*\\\\b(subroutine)\\\\b","beginCaptures":{"1":{"name":"keyword.other.subroutine.fortran"}},"end":"(?=[\\\\n!;])","patterns":[{"begin":"(?i)\\\\G\\\\s*\\\\b([a-z]\\\\w*)\\\\b","beginCaptures":{"1":{"name":"entity.name.function.subroutine.fortran"}},"end":"(?i)\\\\b(?:(end\\\\s*subroutine)(?:\\\\s+([_a-z]\\\\w*))?|(end))\\\\b\\\\s*([^\\\\n!;]+)?(?=[\\\\n!;])","endCaptures":{"1":{"name":"keyword.other.endsubroutine.fortran"},"2":{"name":"entity.name.function.subroutine.fortran"},"3":{"name":"keyword.other.endsubroutine.fortran"},"4":{"name":"invalid.error.subroutine.fortran"}},"patterns":[{"begin":"\\\\G(?!\\\\s*[\\\\n!;])","end":"(?=[\\\\n!;])","name":"meta.first-line.fortran","patterns":[{"include":"#dummy-variable-list"},{"include":"#language-binding-attribute"}]},{"begin":"(?i)(?!\\\\bend(?:\\\\s*[\\\\n!;]|\\\\s*subroutine\\\\b))","end":"(?i)(?=\\\\bend(?:\\\\s*[\\\\n!;]|\\\\s*subroutine\\\\b))","name":"meta.block.specification.subroutine.fortran","patterns":[{"begin":"(?i)\\\\b(contains)\\\\b","beginCaptures":{"1":{"name":"keyword.control.contains.fortran"}},"end":"(?i)(?=end(?:\\\\s*[\\\\n!;]|\\\\s*subroutine\\\\b))","name":"meta.block.contains.fortran","patterns":[{"include":"$base"}]},{"include":"$base"}]}]}]}]},"sync-all-statement":{"begin":"(?i)\\\\b(sync (?:all|memory))(\\\\s*(?=\\\\())?","beginCaptures":{"1":{"name":"keyword.control.sync-all-memory.fortran"},"2":{"name":"punctuation.parentheses.left.fortran"}},"end":"(?])?\\\\s*([,.0-9_`[:alpha:]\\\\s]+)(<)?","beginCaptures":{"1":{"name":"keyword.fsharp"},"2":{"name":"keyword.fsharp"},"3":{"name":"keyword.fsharp"},"4":{"name":"support.function.attribute.fsharp"},"5":{"name":"keyword.symbol.fsharp"}},"end":"\\\\s*(with)\\\\b|=|$","endCaptures":{"1":{"name":"keyword.fsharp"}},"name":"abstract.definition.fsharp","patterns":[{"include":"#comments"},{"include":"#common_declaration"},{"captures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"variable.parameter.fsharp"},"3":{"name":"keyword.symbol.fsharp"},"4":{"name":"entity.name.type.fsharp"}},"match":"(\\\\??)([ \'.0-9^_`[:alpha:]]+)\\\\s*(:)((?!with\\\\b)\\\\b([ \'.0-9^_`\\\\w]+))?"},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"comments":"Here we need the \\\\w modifier in order to check that the words isn\'t blacklisted","match":"(?!with|get|set\\\\b)\\\\s*([\'.0-9^_`\\\\w]+)"},{"include":"#keywords"}]},"anonymous_functions":{"patterns":[{"begin":"\\\\b(fun)\\\\b","beginCaptures":{"1":{"name":"keyword.fsharp"}},"end":"(->)","endCaptures":{"1":{"name":"keyword.symbol.arrow.fsharp"}},"name":"function.anonymous","patterns":[{"include":"#comments"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"\\\\s*(?=(->))","endCaptures":{"1":{"name":"keyword.symbol.arrow.fsharp"}},"patterns":[{"include":"#member_declaration"}]},{"include":"#variables"}]}]},"anonymous_record_declaration":{"begin":"(\\\\{\\\\|)","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\|})","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"keyword.symbol.fsharp"}},"match":"[ \'0-9^_`[:alpha:]]+(:)"},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"([ \'0-9^_`[:alpha:]]+)"},{"include":"#anonymous_record_declaration"},{"include":"#keywords"}]},"attributes":{"patterns":[{"begin":"\\\\[<","end":">?]","name":"support.function.attribute.fsharp","patterns":[{"include":"$self"}]}]},"cexprs":{"patterns":[{"captures":{"0":{"name":"keyword.fsharp"}},"match":"\\\\b(async|seq|promise|task|maybe|asyncMaybe|controller|scope|application|pipeline)(?=\\\\s*\\\\{)","name":"cexpr.fsharp"}]},"chars":{"patterns":[{"captures":{"1":{"name":"string.quoted.single.fsharp"}},"match":"(\'\\\\\\\\?.\')","name":"char.fsharp"}]},"comments":{"patterns":[{"begin":"^\\\\s*(\\\\(\\\\*\\\\*(?!\\\\)))((?!\\\\*\\\\)).)*$","beginCaptures":{"1":{"name":"comment.block.fsharp"}},"name":"comment.block.markdown.fsharp","patterns":[{"include":"text.html.markdown"}],"while":"^(?!\\\\s*(\\\\*)+\\\\)\\\\s*$)","whileCaptures":{"1":{"name":"comment.block.fsharp"}}},{"begin":"(\\\\(\\\\*(?!\\\\)))","beginCaptures":{"1":{"name":"comment.block.fsharp"}},"end":"(\\\\*+\\\\))","endCaptures":{"1":{"name":"comment.block.fsharp"}},"name":"comment.block.fsharp","patterns":[{"comments":"Capture // when inside of (* *) like that the rule which capture comments starting by // is not trigger. See https://github.com/ionide/ionide-fsgrammar/issues/155","match":"//","name":"fast-capture.comment.line.double-slash.fsharp"},{"comments":"Capture (*) when inside of (* *) so that it doesn\'t prematurely end the comment block.","match":"\\\\(\\\\*\\\\)","name":"fast-capture.comment.line.mul-operator.fsharp"},{"include":"#comments"}]},{"captures":{"1":{"name":"comment.block.fsharp"}},"match":"((?)\\\\s*(\\\\()?\\\\s*([ \'.0-9?^_`[:alpha:]]+)*"},{"begin":"(\\\\*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\)\\\\s*(([ \'.0-9?^_`[:alpha:]]+))*)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"entity.name.type.fsharp"}},"patterns":[{"include":"#tuple_signature"}]},{"begin":"(\\\\*)(\\\\s*([ \'.0-9?^_`[:alpha:]]+))*","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"entity.name.type.fsharp"}},"end":"(?==)|(?=\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"include":"#tuple_signature"}]},{"begin":"(<+(?!\\\\s*\\\\)))","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"beginComment":"The group (?![[:space:]]*\\\\) is for protection against overload operator. static member (<)","end":"((?|\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"endComment":"The group (? when using SRTP synthax","patterns":[{"include":"#generic_declaration"}]},{"include":"#anonymous_record_declaration"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(})","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"include":"#record_signature"}]},{"include":"#definition"},{"include":"#variables"},{"include":"#keywords"}]},"common_declaration":{"patterns":[{"begin":"\\\\s*(->)\\\\s*([ \'.0-9^_`[:alpha:]]+)(<)","beginCaptures":{"1":{"name":"keyword.symbol.arrow.fsharp"},"2":{"name":"entity.name.type.fsharp"},"3":{"name":"keyword.symbol.fsharp"}},"end":"(>)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"([ \'.0-9^_`[:alpha:]]+)"},{"include":"#keywords"}]},{"captures":{"1":{"name":"keyword.symbol.arrow.fsharp"},"2":{"name":"entity.name.type.fsharp"}},"match":"\\\\s*(->)\\\\s*(?!with|get|set\\\\b)\\\\b([\'.0-9^_`\\\\w]+)"},{"include":"#anonymous_record_declaration"},{"begin":"(\\\\??)([ \'.0-9^_`[:alpha:]]+)\\\\s*(:)(\\\\s*([ \'.0-9?^_`[:alpha:]]+)(<))","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"variable.parameter.fsharp"},"3":{"name":"keyword.symbol.fsharp"},"4":{"name":"keyword.symbol.fsharp"},"5":{"name":"entity.name.type.fsharp"}},"end":"(>)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"([ \'.0-9^_`[:alpha:]]+)"},{"include":"#keywords"}]}]},"compiler_directives":{"patterns":[{"captures":{},"match":"\\\\s?(#(?:if|elif|elseif|else|endif|light|nowarn))","name":"keyword.control.directive.fsharp"}]},"constants":{"patterns":[{"match":"\\\\(\\\\)","name":"keyword.symbol.fsharp"},{"match":"\\\\b-?[0-9][0-9_]*((\\\\.(?!\\\\.)([0-9][0-9_]*([Ee][-+]??[0-9][0-9_]*)?)?)|([Ee][-+]??[0-9][0-9_]*))","name":"constant.numeric.float.fsharp"},{"match":"\\\\b(-?((0([Xx])\\\\h[_\\\\h]*)|(0([Oo])[0-7][0-7_]*)|(0([Bb])[01][01_]*)|([0-9][0-9_]*)))","name":"constant.numeric.integer.nativeint.fsharp"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.fsharp"},{"match":"\\\\b(null|void)\\\\b","name":"constant.other.fsharp"}]},"definition":{"patterns":[{"begin":"\\\\b(let mutable|static let mutable|static let|let inline|let|and inline|and|member val|member inline|static member inline|static member val|static member|default|member|override|let!)(\\\\s+rec|mutable)?(\\\\s+\\\\[<.*>])?\\\\s*(private|internal|public)?\\\\s+(\\\\[[^-=]*]|[_[:alpha:]]([.0-9_[:alpha:]]+)*|``[_[:alpha:]]([.0-9_`[:alpha:]\\\\s]+|(?<=,)\\\\s)*)?","beginCaptures":{"1":{"name":"keyword.fsharp"},"2":{"name":"keyword.fsharp"},"3":{"name":"support.function.attribute.fsharp"},"4":{"name":"storage.modifier.fsharp"},"5":{"name":"variable.fsharp"}},"end":"\\\\s*((with(?: inline|))\\\\b|(=|\\\\n+=|(?<==)))","endCaptures":{"2":{"name":"keyword.fsharp"},"3":{"name":"keyword.symbol.fsharp"}},"name":"binding.fsharp","patterns":[{"include":"#common_binding_definition"}]},{"begin":"\\\\b(use!??|and!??)\\\\s+(\\\\[[^-=]*]|[_[:alpha:]]([.0-9_[:alpha:]]+)*|``[_[:alpha:]]([.0-9_`[:alpha:]\\\\s]+|(?<=,)\\\\s)*)?","beginCaptures":{"1":{"name":"keyword.fsharp"}},"end":"\\\\s*(=)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"name":"binding.fsharp","patterns":[{"include":"#common_binding_definition"}]},{"begin":"(?<=with|and)\\\\s*\\\\b(([gs]et)\\\\s*(?=\\\\())(\\\\[[^-=]*]|[_[:alpha:]]([.0-9_[:alpha:]]+)*|``[_[:alpha:]]([.0-9_`[:alpha:]\\\\s]+|(?<=,)\\\\s)*)?","beginCaptures":{"4":{"name":"variable.fsharp"}},"end":"\\\\s*(=|\\\\n+=|(?<==))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"name":"binding.fsharp","patterns":[{"include":"#common_binding_definition"}]},{"begin":"\\\\b(static val mutable|val mutable|val inline|val)(\\\\s+rec|mutable)?(\\\\s+\\\\[<.*>])?\\\\s*(private|internal|public)?\\\\s+(\\\\[[^-=]*]|[_[:alpha:]]([,.0-9_[:alpha:]]+)*|``[_[:alpha:]]([,.0-9_`[:alpha:]\\\\s]+|(?<=,)\\\\s)*)?","beginCaptures":{"1":{"name":"keyword.fsharp"},"2":{"name":"keyword.fsharp"},"3":{"name":"support.function.attribute.fsharp"},"4":{"name":"storage.modifier.fsharp"},"5":{"name":"variable.fsharp"}},"end":"\\\\n$","name":"binding.fsharp","patterns":[{"include":"#common_binding_definition"}]},{"begin":"\\\\b(new)\\\\b\\\\s+(\\\\()","beginCaptures":{"1":{"name":"keyword.fsharp"},"2":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"name":"binding.fsharp","patterns":[{"include":"#common_binding_definition"}]}]},"double_tick":{"patterns":[{"captures":{"1":{"name":"string.quoted.single.fsharp"},"2":{"name":"variable.other.binding.fsharp"},"3":{"name":"string.quoted.single.fsharp"}},"match":"(``)([^`]*)(``)","name":"variable.other.binding.fsharp"}]},"du_declaration":{"patterns":[{"begin":"\\\\b(of)\\\\b","beginCaptures":{"1":{"name":"keyword.fsharp"}},"end":"$|(\\\\|)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"name":"du_declaration.fsharp","patterns":[{"include":"#comments"},{"captures":{"1":{"name":"variable.parameter.fsharp"},"2":{"name":"keyword.symbol.fsharp"},"3":{"name":"entity.name.type.fsharp"}},"match":"([\'.0-9<>^_`[:alpha:]]+|``[ \'.0-9<>^_[:alpha:]]+``)\\\\s*(:)\\\\s*([\'.0-9<>^_`[:alpha:]]+|``[ \'.0-9<>^_[:alpha:]]+``)"},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(``([ \'.0-9^_[:alpha:]]+)``|[\'.0-9^_`[:alpha:]]+)"},{"include":"#anonymous_record_declaration"},{"include":"#keywords"}]}]},"generic_declaration":{"patterns":[{"begin":"(:)\\\\s*(\\\\()\\\\s*((?:static |)member)","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"keyword.symbol.fsharp"},"3":{"name":"keyword.fsharp"}},"comments":"SRTP syntax support","end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"include":"#member_declaration"}]},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(([\'^])[\'.0-9_[:alpha:]]+)"},{"include":"#variables"},{"include":"#keywords"}]},{"match":"\\\\b(private|to|public|internal|function|yield!?|class|exception|match|delegate|of|new|in|as|if|then|else|elif|for|begin|end|inherit|do|let!|return!?|interface|with|abstract|enum|member|try|finally|and|when|or|use!??|struct|while|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!\')\\\\b","name":"keyword.fsharp"},{"match":":","name":"keyword.symbol.fsharp"},{"include":"#constants"},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(([\'^])[\'.0-9_[:alpha:]]+)"},{"begin":"(<)","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(>)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(([\'^])[\'.0-9_[:alpha:]]+)"},{"include":"#tuple_signature"},{"include":"#generic_declaration"}]},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(([ \'.0-9?^_`[:alpha:]]+))+"},{"include":"#tuple_signature"}]},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"comments":"Here we need the \\\\w modifier in order to check that the words are allowed","match":"(?!when|and|or\\\\b)\\\\b([\'.0-9^_`\\\\w]+)"},{"captures":{"1":{"name":"keyword.symbol.fsharp"}},"comments":"Prevent captures of `|>` as a keyword when defining custom operator like `<|>`","match":"(\\\\|)"},{"include":"#keywords"}]},"keywords":{"patterns":[{"match":"\\\\b(private|public|internal)\\\\b","name":"storage.modifier"},{"match":"\\\\b(private|to|public|internal|function|class|exception|delegate|of|new|as|begin|end|inherit|let!|interface|abstract|enum|member|and|when|or|use!??|struct|mutable|assert|base|done|downcast|downto|extern|fixed|global|lazy|upcast|not)(?!\')\\\\b","name":"keyword.fsharp"},{"match":"\\\\b(match|yield!??|with|if|then|else|elif|for|in|return!?|try|finally|while|do)(?!\')\\\\b","name":"keyword.control"},{"match":"(->|<-)","name":"keyword.symbol.arrow.fsharp"},{"match":"[.?]*(&&&|\\\\|\\\\|\\\\||\\\\^\\\\^\\\\^|~~~|~\\\\+|~-|<<<|>>>|\\\\|>|:>|:\\\\?>|[]:;\\\\[]|<>|[=@]|\\\\|\\\\||&&|[%\\\\&_{|}]|\\\\.\\\\.|[!*-\\\\-/>^]|>=|>>|<=??|[()]|<<)[.?]*","name":"keyword.symbol.fsharp"}]},"member_declaration":{"patterns":[{"include":"#comments"},{"include":"#common_declaration"},{"begin":"(:)\\\\s*(\\\\()\\\\s*((?:static |)member)","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"keyword.symbol.fsharp"},"3":{"name":"keyword.fsharp"}},"comments":"SRTP syntax support","end":"(\\\\))\\\\s*((?=,)|(?==))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"include":"#member_declaration"}]},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(\\\\^[\'.0-9_[:alpha:]]+)"},{"include":"#variables"},{"include":"#keywords"}]},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(\\\\^[\'.0-9_[:alpha:]]+)"},{"match":"\\\\b(and|when|or)\\\\b","name":"keyword.fsharp"},{"match":"([()])","name":"keyword.symbol.fsharp"},{"captures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"variable.parameter.fsharp"},"3":{"name":"keyword.symbol.fsharp"},"4":{"name":"entity.name.type.fsharp"},"7":{"name":"entity.name.type.fsharp"}},"match":"(\\\\??)([\'.0-9^_`[:alpha:]]+|``[ \',.0-:^_`[:alpha:]]+``)\\\\s*(:?)(\\\\s*([ \'.0-9<>?_`[:alpha:]]+))?(\\\\|\\\\s*(null))?"},{"include":"#keywords"}]},"modules":{"patterns":[{"begin":"\\\\b(?:(namespace global)|(namespace|module)\\\\s*(public|internal|private|rec)?\\\\s+([`|[:alpha:]][ \'.0-9_[:alpha:]]*))","beginCaptures":{"1":{"name":"keyword.fsharp"},"2":{"name":"keyword.fsharp"},"3":{"name":"storage.modifier.fsharp"},"4":{"name":"entity.name.section.fsharp"}},"end":"(\\\\s?=|\\\\s|$)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"name":"entity.name.section.fsharp","patterns":[{"captures":{"1":{"name":"punctuation.separator.namespace-reference.fsharp"},"2":{"name":"entity.name.section.fsharp"}},"match":"(\\\\.)([A-Z][\'0-9_[:alpha:]]*)","name":"entity.name.section.fsharp"}]},{"begin":"\\\\b(open(?: type|))\\\\s+([`|[:alpha:]][\'0-9_[:alpha:]]*)(?=(\\\\.[A-Z][0-9_[:alpha:]]*)*)","beginCaptures":{"1":{"name":"keyword.fsharp"},"2":{"name":"entity.name.section.fsharp"}},"end":"(\\\\s|$)","name":"namespace.open.fsharp","patterns":[{"captures":{"1":{"name":"punctuation.separator.namespace-reference.fsharp"},"2":{"name":"entity.name.section.fsharp"}},"match":"(\\\\.)(\\\\p{alpha}[\'0-9_[:alpha:]]*)","name":"entity.name.section.fsharp"},{"include":"#comments"}]},{"begin":"^\\\\s*(module)\\\\s+([A-Z][\'0-9_[:alpha:]]*)\\\\s*(=)\\\\s*([A-Z][\'0-9_[:alpha:]]*)","beginCaptures":{"1":{"name":"keyword.fsharp"},"2":{"name":"entity.name.type.namespace.fsharp"},"3":{"name":"keyword.symbol.fsharp"},"4":{"name":"entity.name.section.fsharp"}},"end":"(\\\\s|$)","name":"namespace.alias.fsharp","patterns":[{"captures":{"1":{"name":"punctuation.separator.namespace-reference.fsharp"},"2":{"name":"entity.name.section.fsharp"}},"match":"(\\\\.)([A-Z][\'0-9_[:alpha:]]*)","name":"entity.name.section.fsharp"}]}]},"record_declaration":{"patterns":[{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(?<=})","patterns":[{"include":"#comments"},{"begin":"(((mutable)\\\\s\\\\p{alpha}+)|[\'.0-9<>^_`[:alpha:]]*)\\\\s*((?)","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(([\'^])``[ ,.0-:^_`[:alpha:]]+``|([\'^])[.0-:^_`[:alpha:]]+)"},{"match":"\\\\b(interface|with|abstract|and|when|or|not|struct|equality|comparison|unmanaged|delegate|enum)\\\\b","name":"keyword.fsharp"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"keyword.fsharp"}},"match":"(static member|member|new)"},{"include":"#common_binding_definition"}]},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"comments":"Here we need the \\\\w modifier in order to check that the words isn\'t blacklisted","match":"([\'.0-9^_`\\\\w]+)"},{"include":"#keywords"}]},{"captures":{"1":{"name":"storage.modifier.fsharp"}},"match":"\\\\s*(private|internal|public)"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"\\\\s*(?=(=)|[\\\\n=]|(\\\\(\\\\))|(as))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"include":"#member_declaration"}]},{"include":"#keywords"}]}]},"string_formatter":{"patterns":[{"captures":{"1":{"name":"keyword.format.specifier.fsharp"}},"match":"(%0?-?(\\\\d+)?(([at])|(\\\\.\\\\d+)?([EFGMefg])|([Xbcdiosux])|([Obs])|(\\\\+?A)))","name":"entity.name.type.format.specifier.fsharp"}]},"strings":{"patterns":[{"begin":"(?=[^\\\\\\\\])(@\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.fsharp"}},"end":"(\\")(?!\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.fsharp"}},"name":"string.quoted.literal.fsharp","patterns":[{"match":"\\"(\\")","name":"constant.character.string.escape.fsharp"}]},{"begin":"(?=[^\\\\\\\\])(\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.fsharp"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.fsharp"}},"name":"string.quoted.triple.fsharp","patterns":[{"include":"#string_formatter"}]},{"begin":"(?=[^\\\\\\\\])(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.fsharp"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.fsharp"}},"name":"string.quoted.double.fsharp","patterns":[{"match":"\\\\\\\\$[\\\\t ]*","name":"punctuation.separator.string.ignore-eol.fsharp"},{"match":"\\\\\\\\([\\"\'\\\\\\\\abfnrtv]|([01][0-9][0-9]|2[0-4][0-9]|25[0-5])|(x\\\\h{2})|(u\\\\h{4})|(U00(0\\\\h|10)\\\\h{4}))","name":"constant.character.string.escape.fsharp"},{"match":"\\\\\\\\(([0-9]{1,3})|(x\\\\S{0,2})|(u\\\\S{0,4})|(U\\\\S{0,8})|\\\\S)","name":"invalid.illegal.character.string.fsharp"},{"include":"#string_formatter"}]}]},"strp_inlined":{"patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"include":"#strp_inlined_body"}]}]},"strp_inlined_body":{"patterns":[{"include":"#comments"},{"include":"#anonymous_functions"},{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(\\\\^[\'.0-9_[:alpha:]]+)"},{"match":"\\\\b(and|when|or)\\\\b","name":"keyword.fsharp"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"include":"#strp_inlined_body"}]},{"captures":{"1":{"name":"keyword.fsharp"},"2":{"name":"variable.fsharp"},"3":{"name":"keyword.symbol.fsharp"}},"match":"((?:static |)member)\\\\s*([\'.0-9<>^_`[:alpha:]]+|``[ \'.0-9<>^_[:alpha:]]+``)\\\\s*(:)"},{"include":"#compiler_directives"},{"include":"#constants"},{"include":"#strings"},{"include":"#chars"},{"include":"#double_tick"},{"include":"#keywords"},{"include":"#text"},{"include":"#definition"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#cexprs"},{"include":"#text"}]},"text":{"patterns":[{"match":"\\\\\\\\","name":"text.fsharp"}]},"tuple_signature":{"patterns":[{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(([ \'.0-9?^_`[:alpha:]]+))+"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.symbol.fsharp"}},"patterns":[{"captures":{"1":{"name":"entity.name.type.fsharp"}},"match":"(([ \'.0-9?^_`[:alpha:]]+))+"},{"include":"#tuple_signature"}]},{"include":"#keywords"}]},"variables":{"patterns":[{"match":"\\\\(\\\\)","name":"keyword.symbol.fsharp"},{"captures":{"1":{"name":"keyword.symbol.fsharp"},"2":{"name":"variable.parameter.fsharp"}},"match":"(\\\\??)(``[ \',.0-:^_`[:alpha:]]+``|(?!private|struct\\\\b)\\\\b[ \'.0-9<>^_`\\\\w[:alpha:]]+)"}]}},"scopeName":"source.fsharp","embeddedLangs":["markdown"],"aliases":["f#","fs"]}')),n=[...e,a];export{n as default}; diff --git a/docs/assets/ganttDiagram-JELNMOA3-BH4xsWll.js b/docs/assets/ganttDiagram-JELNMOA3-BH4xsWll.js new file mode 100644 index 0000000..b70570c --- /dev/null +++ b/docs/assets/ganttDiagram-JELNMOA3-BH4xsWll.js @@ -0,0 +1,267 @@ +import{s as ct,t as vt}from"./chunk-LvLJmgfZ.js";import{t as me}from"./linear-AjjmB_kQ.js";import{n as ye,o as ke,s as pe}from"./time-DIXLO3Ax.js";import"./defaultLocale-BLUna9fQ.js";import{C as Zt,N as Ut,T as qt,c as Xt,d as ge,f as be,g as ve,h as Te,m as xe,p as we,t as Qt,u as $e,v as Jt,x as Kt}from"./defaultLocale-DzliDDTm.js";import"./purify.es-N-2faAGj.js";import{o as _e}from"./timer-CPT_vXom.js";import{u as Dt}from"./src-Bp_72rVO.js";import{g as De}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{a as te,n as u,r as st}from"./src-faGJHwXX.js";import{B as Se,C as Me,U as Ce,_ as Ee,a as Ye,b as lt,c as Ae,s as Ie,v as Le,z as Fe}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as Oe}from"./dist-BA8xhrl2.js";function We(t){return t}var Tt=1,St=2,Mt=3,xt=4,ee=1e-6;function Pe(t){return"translate("+t+",0)"}function ze(t){return"translate(0,"+t+")"}function He(t){return i=>+t(i)}function Ne(t,i){return i=Math.max(0,t.bandwidth()-i*2)/2,t.round()&&(i=Math.round(i)),r=>+t(r)+i}function Be(){return!this.__axis}function ie(t,i){var r=[],n=null,o=null,d=6,k=6,M=3,I=typeof window<"u"&&window.devicePixelRatio>1?0:.5,D=t===Tt||t===xt?-1:1,x=t===xt||t===St?"x":"y",F=t===Tt||t===Mt?Pe:ze;function w($){var z=n??(i.ticks?i.ticks.apply(i,r):i.domain()),Y=o??(i.tickFormat?i.tickFormat.apply(i,r):We),v=Math.max(d,0)+M,C=i.range(),L=+C[0]+I,O=+C[C.length-1]+I,H=(i.bandwidth?Ne:He)(i.copy(),I),N=$.selection?$.selection():$,A=N.selectAll(".domain").data([null]),p=N.selectAll(".tick").data(z,i).order(),m=p.exit(),h=p.enter().append("g").attr("class","tick"),g=p.select("line"),y=p.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(h),g=g.merge(h.append("line").attr("stroke","currentColor").attr(x+"2",D*d)),y=y.merge(h.append("text").attr("fill","currentColor").attr(x,D*v).attr("dy",t===Tt?"0em":t===Mt?"0.71em":"0.32em")),$!==N&&(A=A.transition($),p=p.transition($),g=g.transition($),y=y.transition($),m=m.transition($).attr("opacity",ee).attr("transform",function(s){return isFinite(s=H(s))?F(s+I):this.getAttribute("transform")}),h.attr("opacity",ee).attr("transform",function(s){var c=this.parentNode.__axis;return F((c&&isFinite(c=c(s))?c:H(s))+I)})),m.remove(),A.attr("d",t===xt||t===St?k?"M"+D*k+","+L+"H"+I+"V"+O+"H"+D*k:"M"+I+","+L+"V"+O:k?"M"+L+","+D*k+"V"+I+"H"+O+"V"+D*k:"M"+L+","+I+"H"+O),p.attr("opacity",1).attr("transform",function(s){return F(H(s)+I)}),g.attr(x+"2",D*d),y.attr(x,D*v).text(Y),N.filter(Be).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===St?"start":t===xt?"end":"middle"),N.each(function(){this.__axis=H})}return w.scale=function($){return arguments.length?(i=$,w):i},w.ticks=function(){return r=Array.from(arguments),w},w.tickArguments=function($){return arguments.length?(r=$==null?[]:Array.from($),w):r.slice()},w.tickValues=function($){return arguments.length?(n=$==null?null:Array.from($),w):n&&n.slice()},w.tickFormat=function($){return arguments.length?(o=$,w):o},w.tickSize=function($){return arguments.length?(d=k=+$,w):d},w.tickSizeInner=function($){return arguments.length?(d=+$,w):d},w.tickSizeOuter=function($){return arguments.length?(k=+$,w):k},w.tickPadding=function($){return arguments.length?(M=+$,w):M},w.offset=function($){return arguments.length?(I=+$,w):I},w}function je(t){return ie(Tt,t)}function Ge(t){return ie(Mt,t)}var Ve=vt(((t,i)=>{(function(r,n){typeof t=="object"&&i!==void 0?i.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=n()})(t,(function(){var r="day";return function(n,o,d){var k=function(D){return D.add(4-D.isoWeekday(),r)},M=o.prototype;M.isoWeekYear=function(){return k(this).year()},M.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),r);var x,F,w,$,z=k(this),Y=(x=this.isoWeekYear(),F=this.$u,w=(F?d.utc:d)().year(x).startOf("year"),$=4-w.isoWeekday(),w.isoWeekday()>4&&($+=7),w.add($,r));return z.diff(Y,"week")+1},M.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var I=M.startOf;M.startOf=function(D,x){var F=this.$utils(),w=!!F.u(x)||x;return F.p(D)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):I.bind(this)(D,x)}}}))})),Re=vt(((t,i)=>{(function(r,n){typeof t=="object"&&i!==void 0?i.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=n()})(t,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,d=/\d\d/,k=/\d\d?/,M=/\d*[^-_:/,()\s\d]+/,I={},D=function(v){return(v=+v)+(v>68?1900:2e3)},x=function(v){return function(C){this[v]=+C}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var L=C.match(/([+-]|\d\d)/g),O=60*L[1]+(+L[2]||0);return O===0?0:L[0]==="+"?-O:O})(v)}],w=function(v){var C=I[v];return C&&(C.indexOf?C:C.s.concat(C.f))},$=function(v,C){var L,O=I.meridiem;if(O){for(var H=1;H<=24;H+=1)if(v.indexOf(O(H,0,C))>-1){L=H>12;break}}else L=v===(C?"pm":"PM");return L},z={A:[M,function(v){this.afternoon=$(v,!1)}],a:[M,function(v){this.afternoon=$(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*v}],SS:[d,function(v){this.milliseconds=10*v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[k,x("seconds")],ss:[k,x("seconds")],m:[k,x("minutes")],mm:[k,x("minutes")],H:[k,x("hours")],h:[k,x("hours")],HH:[k,x("hours")],hh:[k,x("hours")],D:[k,x("day")],DD:[d,x("day")],Do:[M,function(v){var C=I.ordinal;if(this.day=v.match(/\d+/)[0],C)for(var L=1;L<=31;L+=1)C(L).replace(/\[|\]/g,"")===v&&(this.day=L)}],w:[k,x("week")],ww:[d,x("week")],M:[k,x("month")],MM:[d,x("month")],MMM:[M,function(v){var C=w("months"),L=(w("monthsShort")||C.map((function(O){return O.slice(0,3)}))).indexOf(v)+1;if(L<1)throw Error();this.month=L%12||L}],MMMM:[M,function(v){var C=w("months").indexOf(v)+1;if(C<1)throw Error();this.month=C%12||C}],Y:[/[+-]?\d+/,x("year")],YY:[d,function(v){this.year=D(v)}],YYYY:[/\d{4}/,x("year")],Z:F,ZZ:F};function Y(v){for(var C=v,L=I&&I.formats,O=(v=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(g,y,s){var c=s&&s.toUpperCase();return y||L[s]||r[s]||L[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(f,l,b){return l||b.slice(1)}))}))).match(n),H=O.length,N=0;N-1)return new Date((_==="X"?1e3:1)*a);var S=Y(_)(a),E=S.year,W=S.month,P=S.day,j=S.hours,B=S.minutes,X=S.seconds,ht=S.milliseconds,at=S.zone,gt=S.week,ft=new Date,ot=P||(E||W?1:ft.getDate()),V=E||ft.getFullYear(),et=0;E&&!W||(et=W>0?W-1:ft.getMonth());var Z,R=j||0,nt=B||0,Q=X||0,it=ht||0;return at?new Date(Date.UTC(V,et,ot,R,nt,Q,it+60*at.offset*1e3)):e?new Date(Date.UTC(V,et,ot,R,nt,Q,it)):(Z=new Date(V,et,ot,R,nt,Q,it),gt&&(Z=T(Z).week(gt).toDate()),Z)}catch{return new Date("")}})(A,h,p,L),this.init(),c&&c!==!0&&(this.$L=this.locale(c).$L),s&&A!=this.format(h)&&(this.$d=new Date("")),I={}}else if(h instanceof Array)for(var f=h.length,l=1;l<=f;l+=1){m[1]=h[l-1];var b=L.apply(this,m);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}l===f&&(this.$d=new Date(""))}else H.call(this,N)}}}))})),Ze=vt(((t,i)=>{(function(r,n){typeof t=="object"&&i!==void 0?i.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=n()})(t,(function(){return function(r,n){var o=n.prototype,d=o.format;o.format=function(k){var M=this,I=this.$locale();if(!this.isValid())return d.bind(this)(k);var D=this.$utils(),x=(k||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(F){switch(F){case"Q":return Math.ceil((M.$M+1)/3);case"Do":return I.ordinal(M.$D);case"gggg":return M.weekYear();case"GGGG":return M.isoWeekYear();case"wo":return I.ordinal(M.week(),"W");case"w":case"ww":return D.s(M.week(),F==="w"?1:2,"0");case"W":case"WW":return D.s(M.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return D.s(String(M.$H===0?24:M.$H),F==="k"?1:2,"0");case"X":return Math.floor(M.$d.getTime()/1e3);case"x":return M.$d.getTime();case"z":return"["+M.offsetName()+"]";case"zzz":return"["+M.offsetName("long")+"]";default:return F}}));return d.bind(this)(x)}}}))})),Ue=vt(((t,i)=>{(function(r,n){typeof t=="object"&&i!==void 0?i.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_duration=n()})(t,(function(){var r,n,o=1e3,d=6e4,k=36e5,M=864e5,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D=31536e6,x=2628e6,F=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,w={years:D,months:x,days:M,hours:k,minutes:d,seconds:o,milliseconds:1,weeks:6048e5},$=function(A){return A instanceof H},z=function(A,p,m){return new H(A,m,p.$l)},Y=function(A){return n.p(A)+"s"},v=function(A){return A<0},C=function(A){return v(A)?Math.ceil(A):Math.floor(A)},L=function(A){return Math.abs(A)},O=function(A,p){return A?v(A)?{negative:!0,format:""+L(A)+p}:{negative:!1,format:""+A+p}:{negative:!1,format:""}},H=(function(){function A(m,h,g){var y=this;if(this.$d={},this.$l=g,m===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return z(m*w[Y(h)],this);if(typeof m=="number")return this.$ms=m,this.parseFromMilliseconds(),this;if(typeof m=="object")return Object.keys(m).forEach((function(f){y.$d[Y(f)]=m[f]})),this.calMilliseconds(),this;if(typeof m=="string"){var s=m.match(F);if(s){var c=s.slice(2).map((function(f){return f==null?0:Number(f)}));return this.$d.years=c[0],this.$d.months=c[1],this.$d.weeks=c[2],this.$d.days=c[3],this.$d.hours=c[4],this.$d.minutes=c[5],this.$d.seconds=c[6],this.calMilliseconds(),this}}return this}var p=A.prototype;return p.calMilliseconds=function(){var m=this;this.$ms=Object.keys(this.$d).reduce((function(h,g){return h+(m.$d[g]||0)*w[g]}),0)},p.parseFromMilliseconds=function(){var m=this.$ms;this.$d.years=C(m/D),m%=D,this.$d.months=C(m/x),m%=x,this.$d.days=C(m/M),m%=M,this.$d.hours=C(m/k),m%=k,this.$d.minutes=C(m/d),m%=d,this.$d.seconds=C(m/o),m%=o,this.$d.milliseconds=m},p.toISOString=function(){var m=O(this.$d.years,"Y"),h=O(this.$d.months,"M"),g=+this.$d.days||0;this.$d.weeks&&(g+=7*this.$d.weeks);var y=O(g,"D"),s=O(this.$d.hours,"H"),c=O(this.$d.minutes,"M"),f=this.$d.seconds||0;this.$d.milliseconds&&(f+=this.$d.milliseconds/1e3,f=Math.round(1e3*f)/1e3);var l=O(f,"S"),b=m.negative||h.negative||y.negative||s.negative||c.negative||l.negative,a=s.format||c.format||l.format?"T":"",_=(b?"-":"")+"P"+m.format+h.format+y.format+a+s.format+c.format+l.format;return _==="P"||_==="-P"?"P0D":_},p.toJSON=function(){return this.toISOString()},p.format=function(m){var h=m||"YYYY-MM-DDTHH:mm:ss",g={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return h.replace(I,(function(y,s){return s||String(g[y])}))},p.as=function(m){return this.$ms/w[Y(m)]},p.get=function(m){var h=this.$ms,g=Y(m);return g==="milliseconds"?h%=1e3:h=g==="weeks"?C(h/w[g]):this.$d[g],h||0},p.add=function(m,h,g){var y;return y=h?m*w[Y(h)]:$(m)?m.$ms:z(m,this).$ms,z(this.$ms+y*(g?-1:1),this)},p.subtract=function(m,h){return this.add(m,h,!0)},p.locale=function(m){var h=this.clone();return h.$l=m,h},p.clone=function(){return z(this.$ms,this)},p.humanize=function(m){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!m)},p.valueOf=function(){return this.asMilliseconds()},p.milliseconds=function(){return this.get("milliseconds")},p.asMilliseconds=function(){return this.as("milliseconds")},p.seconds=function(){return this.get("seconds")},p.asSeconds=function(){return this.as("seconds")},p.minutes=function(){return this.get("minutes")},p.asMinutes=function(){return this.as("minutes")},p.hours=function(){return this.get("hours")},p.asHours=function(){return this.as("hours")},p.days=function(){return this.get("days")},p.asDays=function(){return this.as("days")},p.weeks=function(){return this.get("weeks")},p.asWeeks=function(){return this.as("weeks")},p.months=function(){return this.get("months")},p.asMonths=function(){return this.as("months")},p.years=function(){return this.get("years")},p.asYears=function(){return this.as("years")},A})(),N=function(A,p,m){return A.add(p.years()*m,"y").add(p.months()*m,"M").add(p.days()*m,"d").add(p.hours()*m,"h").add(p.minutes()*m,"m").add(p.seconds()*m,"s").add(p.milliseconds()*m,"ms")};return function(A,p,m){r=m,n=m().$utils(),m.duration=function(y,s){return z(y,{$l:m.locale()},s)},m.isDuration=$;var h=p.prototype.add,g=p.prototype.subtract;p.prototype.add=function(y,s){return $(y)?N(this,y,1):h.bind(this)(y,s)},p.prototype.subtract=function(y,s){return $(y)?N(this,y,-1):g.bind(this)(y,s)}}}))})),qe=Oe(),q=ct(te(),1),Xe=ct(Ve(),1),Qe=ct(Re(),1),Je=ct(Ze(),1),mt=ct(te(),1),Ke=ct(Ue(),1),Ct=(function(){var t=u(function(s,c,f,l){for(f||(f={}),l=s.length;l--;f[s[l]]=c);return f},"o"),i=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],n=[1,27],o=[1,28],d=[1,29],k=[1,30],M=[1,31],I=[1,32],D=[1,33],x=[1,34],F=[1,9],w=[1,10],$=[1,11],z=[1,12],Y=[1,13],v=[1,14],C=[1,15],L=[1,16],O=[1,19],H=[1,20],N=[1,21],A=[1,22],p=[1,23],m=[1,25],h=[1,35],g={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:u(function(s,c,f,l,b,a,_){var e=a.length-1;switch(b){case 1:return a[e-1];case 2:this.$=[];break;case 3:a[e-1].push(a[e]),this.$=a[e-1];break;case 4:case 5:this.$=a[e];break;case 6:case 7:this.$=[];break;case 8:l.setWeekday("monday");break;case 9:l.setWeekday("tuesday");break;case 10:l.setWeekday("wednesday");break;case 11:l.setWeekday("thursday");break;case 12:l.setWeekday("friday");break;case 13:l.setWeekday("saturday");break;case 14:l.setWeekday("sunday");break;case 15:l.setWeekend("friday");break;case 16:l.setWeekend("saturday");break;case 17:l.setDateFormat(a[e].substr(11)),this.$=a[e].substr(11);break;case 18:l.enableInclusiveEndDates(),this.$=a[e].substr(18);break;case 19:l.TopAxis(),this.$=a[e].substr(8);break;case 20:l.setAxisFormat(a[e].substr(11)),this.$=a[e].substr(11);break;case 21:l.setTickInterval(a[e].substr(13)),this.$=a[e].substr(13);break;case 22:l.setExcludes(a[e].substr(9)),this.$=a[e].substr(9);break;case 23:l.setIncludes(a[e].substr(9)),this.$=a[e].substr(9);break;case 24:l.setTodayMarker(a[e].substr(12)),this.$=a[e].substr(12);break;case 27:l.setDiagramTitle(a[e].substr(6)),this.$=a[e].substr(6);break;case 28:this.$=a[e].trim(),l.setAccTitle(this.$);break;case 29:case 30:this.$=a[e].trim(),l.setAccDescription(this.$);break;case 31:l.addSection(a[e].substr(8)),this.$=a[e].substr(8);break;case 33:l.addTask(a[e-1],a[e]),this.$="task";break;case 34:this.$=a[e-1],l.setClickEvent(a[e-1],a[e],null);break;case 35:this.$=a[e-2],l.setClickEvent(a[e-2],a[e-1],a[e]);break;case 36:this.$=a[e-2],l.setClickEvent(a[e-2],a[e-1],null),l.setLink(a[e-2],a[e]);break;case 37:this.$=a[e-3],l.setClickEvent(a[e-3],a[e-2],a[e-1]),l.setLink(a[e-3],a[e]);break;case 38:this.$=a[e-2],l.setClickEvent(a[e-2],a[e],null),l.setLink(a[e-2],a[e-1]);break;case 39:this.$=a[e-3],l.setClickEvent(a[e-3],a[e-1],a[e]),l.setLink(a[e-3],a[e-2]);break;case 40:this.$=a[e-1],l.setLink(a[e-1],a[e]);break;case 41:case 47:this.$=a[e-1]+" "+a[e];break;case 42:case 43:case 45:this.$=a[e-2]+" "+a[e-1]+" "+a[e];break;case 44:case 46:this.$=a[e-3]+" "+a[e-2]+" "+a[e-1]+" "+a[e];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:n,14:o,15:d,16:k,17:M,18:I,19:18,20:D,21:x,22:F,23:w,24:$,25:z,26:Y,27:v,28:C,29:L,30:O,31:H,33:N,35:A,36:p,37:24,38:m,40:h},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:36,11:17,12:r,13:n,14:o,15:d,16:k,17:M,18:I,19:18,20:D,21:x,22:F,23:w,24:$,25:z,26:Y,27:v,28:C,29:L,30:O,31:H,33:N,35:A,36:p,37:24,38:m,40:h},t(i,[2,5]),t(i,[2,6]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),t(i,[2,27]),{32:[1,37]},{34:[1,38]},t(i,[2,30]),t(i,[2,31]),t(i,[2,32]),{39:[1,39]},t(i,[2,8]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),{41:[1,40],43:[1,41]},t(i,[2,4]),t(i,[2,28]),t(i,[2,29]),t(i,[2,33]),t(i,[2,34],{42:[1,42],43:[1,43]}),t(i,[2,40],{41:[1,44]}),t(i,[2,35],{43:[1,45]}),t(i,[2,36]),t(i,[2,38],{42:[1,46]}),t(i,[2,37]),t(i,[2,39])],defaultActions:{},parseError:u(function(s,c){if(c.recoverable)this.trace(s);else{var f=Error(s);throw f.hash=c,f}},"parseError"),parse:u(function(s){var c=this,f=[0],l=[],b=[null],a=[],_=this.table,e="",T=0,S=0,E=0,W=2,P=1,j=a.slice.call(arguments,1),B=Object.create(this.lexer),X={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(X.yy[ht]=this.yy[ht]);B.setInput(s,X.yy),X.yy.lexer=B,X.yy.parser=this,B.yylloc===void 0&&(B.yylloc={});var at=B.yylloc;a.push(at);var gt=B.options&&B.options.ranges;typeof X.yy.parseError=="function"?this.parseError=X.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(U){f.length-=2*U,b.length-=U,a.length-=U}u(ft,"popStack");function ot(){var U=l.pop()||B.lex()||P;return typeof U!="number"&&(U instanceof Array&&(l=U,U=l.pop()),U=c.symbols_[U]||U),U}u(ot,"lex");for(var V,et,Z,R,nt,Q={},it,K,Vt,bt;;){if(Z=f[f.length-1],this.defaultActions[Z]?R=this.defaultActions[Z]:(V??(V=ot()),R=_[Z]&&_[Z][V]),R===void 0||!R.length||!R[0]){var Rt="";for(it in bt=[],_[Z])this.terminals_[it]&&it>W&&bt.push("'"+this.terminals_[it]+"'");Rt=B.showPosition?"Parse error on line "+(T+1)+`: +`+B.showPosition()+` +Expecting `+bt.join(", ")+", got '"+(this.terminals_[V]||V)+"'":"Parse error on line "+(T+1)+": Unexpected "+(V==P?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(Rt,{text:B.match,token:this.terminals_[V]||V,line:B.yylineno,loc:at,expected:bt})}if(R[0]instanceof Array&&R.length>1)throw Error("Parse Error: multiple actions possible at state: "+Z+", token: "+V);switch(R[0]){case 1:f.push(V),b.push(B.yytext),a.push(B.yylloc),f.push(R[1]),V=null,et?(V=et,et=null):(S=B.yyleng,e=B.yytext,T=B.yylineno,at=B.yylloc,E>0&&E--);break;case 2:if(K=this.productions_[R[1]][1],Q.$=b[b.length-K],Q._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},gt&&(Q._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),nt=this.performAction.apply(Q,[e,S,T,X.yy,R[1],b,a].concat(j)),nt!==void 0)return nt;K&&(f=f.slice(0,-1*K*2),b=b.slice(0,-1*K),a=a.slice(0,-1*K)),f.push(this.productions_[R[1]][0]),b.push(Q.$),a.push(Q._$),Vt=_[f[f.length-2]][f[f.length-1]],f.push(Vt);break;case 3:return!0}}return!0},"parse")};g.lexer=(function(){return{EOF:1,parseError:u(function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw Error(s)},"parseError"),setInput:u(function(s,c){return this.yy=c||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:u(function(s){var c=s.length,f=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===l.length?this.yylloc.first_column:0)+l[l.length-f.length].length-f[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(s){this.unput(this.match.slice(s))},"less"),pastInput:u(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var s=this.pastInput(),c=Array(s.length+1).join("-");return s+this.upcomingInput()+` +`+c+"^"},"showPosition"),test_match:u(function(s,c){var f,l,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),l=s[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],f=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,f,l;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;ac[0].length)){if(c=f,l=a,this.options.backtrack_lexer){if(s=this.test_match(f,b[a]),s!==!1)return s;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(s=this.test_match(c,b[l]),s===!1?!1:s):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){return this.next()||this.lex()},"lex"),begin:u(function(s){this.conditionStack.push(s)},"begin"),popState:u(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:u(function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},"topState"),pushState:u(function(s){this.begin(s)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(s,c,f,l){switch(f){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function y(){this.yy={}}return u(y,"Parser"),y.prototype=g,g.Parser=y,new y})();Ct.parser=Ct;var ti=Ct;q.default.extend(Xe.default),q.default.extend(Qe.default),q.default.extend(Je.default);var ne={friday:5,saturday:6},J="",Et="",Yt=void 0,At="",yt=[],kt=[],It=new Map,Lt=[],wt=[],ut="",Ft="",se=["active","done","crit","milestone","vert"],Ot=[],pt=!1,Wt=!1,Pt="sunday",$t="saturday",zt=0,ei=u(function(){Lt=[],wt=[],ut="",Ot=[],Nt=0,Bt=void 0,_t=void 0,G=[],J="",Et="",Ft="",Yt=void 0,At="",yt=[],kt=[],pt=!1,Wt=!1,zt=0,It=new Map,Ye(),Pt="sunday",$t="saturday"},"clear"),ii=u(function(t){Et=t},"setAxisFormat"),ni=u(function(){return Et},"getAxisFormat"),si=u(function(t){Yt=t},"setTickInterval"),ri=u(function(){return Yt},"getTickInterval"),ai=u(function(t){At=t},"setTodayMarker"),oi=u(function(){return At},"getTodayMarker"),ci=u(function(t){J=t},"setDateFormat"),li=u(function(){pt=!0},"enableInclusiveEndDates"),ui=u(function(){return pt},"endDatesAreInclusive"),di=u(function(){Wt=!0},"enableTopAxis"),hi=u(function(){return Wt},"topAxisEnabled"),fi=u(function(t){Ft=t},"setDisplayMode"),mi=u(function(){return Ft},"getDisplayMode"),yi=u(function(){return J},"getDateFormat"),ki=u(function(t){yt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),pi=u(function(){return yt},"getIncludes"),gi=u(function(t){kt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),bi=u(function(){return kt},"getExcludes"),vi=u(function(){return It},"getLinks"),Ti=u(function(t){ut=t,Lt.push(t)},"addSection"),xi=u(function(){return Lt},"getSections"),wi=u(function(){let t=ue(),i=0;for(;!t&&i<10;)t=ue(),i++;return wt=G,wt},"getTasks"),re=u(function(t,i,r,n){let o=t.format(i.trim()),d=t.format("YYYY-MM-DD");return n.includes(o)||n.includes(d)?!1:r.includes("weekends")&&(t.isoWeekday()===ne[$t]||t.isoWeekday()===ne[$t]+1)||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(o)||r.includes(d)},"isInvalidDate"),$i=u(function(t){Pt=t},"setWeekday"),_i=u(function(){return Pt},"getWeekday"),Di=u(function(t){$t=t},"setWeekend"),ae=u(function(t,i,r,n){if(!r.length||t.manualEndTime)return;let o;o=t.startTime instanceof Date?(0,q.default)(t.startTime):(0,q.default)(t.startTime,i,!0),o=o.add(1,"d");let d;d=t.endTime instanceof Date?(0,q.default)(t.endTime):(0,q.default)(t.endTime,i,!0);let[k,M]=Si(o,d,i,r,n);t.endTime=k.toDate(),t.renderEndTime=M},"checkTaskDates"),Si=u(function(t,i,r,n,o){let d=!1,k=null;for(;t<=i;)d||(k=i.toDate()),d=re(t,r,n,o),d&&(i=i.add(1,"d")),t=t.add(1,"d");return[i,k]},"fixTaskDates"),Ht=u(function(t,i,r){if(r=r.trim(),u(d=>{let k=d.trim();return k==="x"||k==="X"},"isTimestampFormat")(i)&&/^\d+$/.test(r))return new Date(Number(r));let n=/^after\s+(?[\d\w- ]+)/.exec(r);if(n!==null){let d=null;for(let M of n.groups.ids.split(" ")){let I=rt(M);I!==void 0&&(!d||I.endTime>d.endTime)&&(d=I)}if(d)return d.endTime;let k=new Date;return k.setHours(0,0,0,0),k}let o=(0,q.default)(r,i.trim(),!0);if(o.isValid())return o.toDate();{st.debug("Invalid date:"+r),st.debug("With date format:"+i.trim());let d=new Date(r);if(d===void 0||isNaN(d.getTime())||d.getFullYear()<-1e4||d.getFullYear()>1e4)throw Error("Invalid date:"+r);return d}},"getStartDate"),oe=u(function(t){let i=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return i===null?[NaN,"ms"]:[Number.parseFloat(i[1]),i[2]]},"parseDuration"),ce=u(function(t,i,r,n=!1){r=r.trim();let o=/^until\s+(?[\d\w- ]+)/.exec(r);if(o!==null){let D=null;for(let F of o.groups.ids.split(" ")){let w=rt(F);w!==void 0&&(!D||w.startTime{window.open(r,"_self")}),It.set(n,r))}),de(t,"clickable")},"setLink"),de=u(function(t,i){t.split(",").forEach(function(r){let n=rt(r);n!==void 0&&n.classes.push(i)})},"setClass"),Ii=u(function(t,i,r){if(lt().securityLevel!=="loose"||i===void 0)return;let n=[];if(typeof r=="string"){n=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o{De.runFunc(i,...n)})},"setClickFun"),he=u(function(t,i){Ot.push(function(){let r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){i()})},function(){let r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){i()})})},"pushFun"),Li={getConfig:u(()=>lt().gantt,"getConfig"),clear:ei,setDateFormat:ci,getDateFormat:yi,enableInclusiveEndDates:li,endDatesAreInclusive:ui,enableTopAxis:di,topAxisEnabled:hi,setAxisFormat:ii,getAxisFormat:ni,setTickInterval:si,getTickInterval:ri,setTodayMarker:ai,getTodayMarker:oi,setAccTitle:Se,getAccTitle:Le,setDiagramTitle:Ce,getDiagramTitle:Me,setDisplayMode:fi,getDisplayMode:mi,setAccDescription:Fe,getAccDescription:Ee,addSection:Ti,getSections:xi,getTasks:wi,addTask:Ei,findTaskById:rt,addTaskOrg:Yi,setIncludes:ki,getIncludes:pi,setExcludes:gi,getExcludes:bi,setClickEvent:u(function(t,i,r){t.split(",").forEach(function(n){Ii(n,i,r)}),de(t,"clickable")},"setClickEvent"),setLink:Ai,getLinks:vi,bindFunctions:u(function(t){Ot.forEach(function(i){i(t)})},"bindFunctions"),parseDuration:oe,isInvalidDate:re,setWeekday:$i,getWeekday:_i,setWeekend:Di};function jt(t,i,r){let n=!0;for(;n;)n=!1,r.forEach(function(o){let d="^\\s*"+o+"\\s*$",k=new RegExp(d);t[0].match(k)&&(i[o]=!0,t.shift(1),n=!0)})}u(jt,"getTaskTags"),mt.default.extend(Ke.default);var Fi=u(function(){st.debug("Something is calling, setConf, remove the call")},"setConf"),fe={monday:ge,tuesday:Te,wednesday:ve,thursday:xe,friday:$e,saturday:be,sunday:we},Oi=u((t,i)=>{let r=[...t].map(()=>-1/0),n=[...t].sort((d,k)=>d.startTime-k.startTime||d.order-k.order),o=0;for(let d of n)for(let k=0;k=r[k]){r[k]=d.endTime,d.order=k+i,k>o&&(o=k);break}return o},"getMaxIntersections"),tt,Gt=1e4,Wi={parser:ti,db:Li,renderer:{setConf:Fi,draw:u(function(t,i,r,n){let o=lt().gantt,d=lt().securityLevel,k;d==="sandbox"&&(k=Dt("#i"+i));let M=Dt(d==="sandbox"?k.nodes()[0].contentDocument.body:"body"),I=d==="sandbox"?k.nodes()[0].contentDocument:document,D=I.getElementById(i);tt=D.parentElement.offsetWidth,tt===void 0&&(tt=1200),o.useWidth!==void 0&&(tt=o.useWidth);let x=n.db.getTasks(),F=[];for(let h of x)F.push(h.type);F=m(F);let w={},$=2*o.topPadding;if(n.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let h={};for(let y of x)h[y.section]===void 0?h[y.section]=[y]:h[y.section].push(y);let g=0;for(let y of Object.keys(h)){let s=Oi(h[y],g)+1;g+=s,$+=s*(o.barHeight+o.barGap),w[y]=s}}else{$+=x.length*(o.barHeight+o.barGap);for(let h of F)w[h]=x.filter(g=>g.type===h).length}D.setAttribute("viewBox","0 0 "+tt+" "+$);let z=M.select(`[id="${i}"]`),Y=ye().domain([ke(x,function(h){return h.startTime}),pe(x,function(h){return h.endTime})]).rangeRound([0,tt-o.leftPadding-o.rightPadding]);function v(h,g){let y=h.startTime,s=g.startTime,c=0;return y>s?c=1:ye.vert===T.vert?0:e.vert?1:-1);let b=[...new Set(h.map(e=>e.order))].map(e=>h.find(T=>T.order===e));z.append("g").selectAll("rect").data(b).enter().append("rect").attr("x",0).attr("y",function(e,T){return T=e.order,T*g+y-2}).attr("width",function(){return l-o.rightPadding/2}).attr("height",g).attr("class",function(e){for(let[T,S]of F.entries())if(e.type===S)return"section section"+T%o.numberSectionStyles;return"section section0"}).enter();let a=z.append("g").selectAll("rect").data(h).enter(),_=n.db.getLinks();if(a.append("rect").attr("id",function(e){return e.id}).attr("rx",3).attr("ry",3).attr("x",function(e){return e.milestone?Y(e.startTime)+s+.5*(Y(e.endTime)-Y(e.startTime))-.5*c:Y(e.startTime)+s}).attr("y",function(e,T){return T=e.order,e.vert?o.gridLineStartPadding:T*g+y}).attr("width",function(e){return e.milestone?c:e.vert?.08*c:Y(e.renderEndTime||e.endTime)-Y(e.startTime)}).attr("height",function(e){return e.vert?x.length*(o.barHeight+o.barGap)+o.barHeight*2:c}).attr("transform-origin",function(e,T){return T=e.order,(Y(e.startTime)+s+.5*(Y(e.endTime)-Y(e.startTime))).toString()+"px "+(T*g+y+.5*c).toString()+"px"}).attr("class",function(e){let T="";e.classes.length>0&&(T=e.classes.join(" "));let S=0;for(let[W,P]of F.entries())e.type===P&&(S=W%o.numberSectionStyles);let E="";return e.active?e.crit?E+=" activeCrit":E=" active":e.done?E=e.crit?" doneCrit":" done":e.crit&&(E+=" crit"),E.length===0&&(E=" task"),e.milestone&&(E=" milestone "+E),e.vert&&(E=" vert "+E),E+=S,E+=" "+T,"task"+E}),a.append("text").attr("id",function(e){return e.id+"-text"}).text(function(e){return e.task}).attr("font-size",o.fontSize).attr("x",function(e){let T=Y(e.startTime),S=Y(e.renderEndTime||e.endTime);if(e.milestone&&(T+=.5*(Y(e.endTime)-Y(e.startTime))-.5*c,S=T+c),e.vert)return Y(e.startTime)+s;let E=this.getBBox().width;return E>S-T?S+E+1.5*o.leftPadding>l?T+s-5:S+s+5:(S-T)/2+T+s}).attr("y",function(e,T){return e.vert?o.gridLineStartPadding+x.length*(o.barHeight+o.barGap)+60:(T=e.order,T*g+o.barHeight/2+(o.fontSize/2-2)+y)}).attr("text-height",c).attr("class",function(e){let T=Y(e.startTime),S=Y(e.endTime);e.milestone&&(S=T+c);let E=this.getBBox().width,W="";e.classes.length>0&&(W=e.classes.join(" "));let P=0;for(let[B,X]of F.entries())e.type===X&&(P=B%o.numberSectionStyles);let j="";return e.active&&(j=e.crit?"activeCritText"+P:"activeText"+P),e.done?j=e.crit?j+" doneCritText"+P:j+" doneText"+P:e.crit&&(j=j+" critText"+P),e.milestone&&(j+=" milestoneText"),e.vert&&(j+=" vertText"),E>S-T?S+E+1.5*o.leftPadding>l?W+" taskTextOutsideLeft taskTextOutside"+P+" "+j:W+" taskTextOutsideRight taskTextOutside"+P+" "+j+" width-"+E:W+" taskText taskText"+P+" "+j+" width-"+E}),lt().securityLevel==="sandbox"){let e;e=Dt("#i"+i);let T=e.nodes()[0].contentDocument;a.filter(function(S){return _.has(S.id)}).each(function(S){var E=T.querySelector("#"+S.id),W=T.querySelector("#"+S.id+"-text");let P=E.parentNode;var j=T.createElement("a");j.setAttribute("xlink:href",_.get(S.id)),j.setAttribute("target","_top"),P.appendChild(j),j.appendChild(E),j.appendChild(W)})}}u(L,"drawRects");function O(h,g,y,s,c,f,l,b){if(l.length===0&&b.length===0)return;let a,_;for(let{startTime:W,endTime:P}of f)(a===void 0||W_)&&(_=P);if(!a||!_)return;if((0,mt.default)(_).diff((0,mt.default)(a),"year")>5){st.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let e=n.db.getDateFormat(),T=[],S=null,E=(0,mt.default)(a);for(;E.valueOf()<=_;)n.db.isInvalidDate(E,e,l,b)?S?S.end=E:S={start:E,end:E}:S&&(S=(T.push(S),null)),E=E.add(1,"d");z.append("g").selectAll("rect").data(T).enter().append("rect").attr("id",W=>"exclude-"+W.start.format("YYYY-MM-DD")).attr("x",W=>Y(W.start.startOf("day"))+y).attr("y",o.gridLineStartPadding).attr("width",W=>Y(W.end.endOf("day"))-Y(W.start.startOf("day"))).attr("height",c-g-o.gridLineStartPadding).attr("transform-origin",function(W,P){return(Y(W.start)+y+.5*(Y(W.end)-Y(W.start))).toString()+"px "+(P*h+.5*c).toString()+"px"}).attr("class","exclude-range")}u(O,"drawExcludeDays");function H(h,g,y,s){if(y<=0||h>g)return 1/0;let c=g-h,f=mt.default.duration({[s??"day"]:y}).asMilliseconds();return f<=0?1/0:Math.ceil(c/f)}u(H,"getEstimatedTickCount");function N(h,g,y,s){let c=n.db.getDateFormat(),f=n.db.getAxisFormat(),l;l=f||(c==="D"?"%d":o.axisFormat??"%Y-%m-%d");let b=Ge(Y).tickSize(-s+g+o.gridLineStartPadding).tickFormat(Qt(l)),a=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(n.db.getTickInterval()||o.tickInterval);if(a!==null){let _=parseInt(a[1],10);if(isNaN(_)||_<=0)st.warn(`Invalid tick interval value: "${a[1]}". Skipping custom tick interval.`);else{let e=a[2],T=n.db.getWeekday()||o.weekday,S=Y.domain(),E=S[0],W=S[1],P=H(E,W,_,e);if(P>Gt)st.warn(`The tick interval "${_}${e}" would generate ${P} ticks, which exceeds the maximum allowed (${Gt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":b.ticks(Ut.every(_));break;case"second":b.ticks(qt.every(_));break;case"minute":b.ticks(Zt.every(_));break;case"hour":b.ticks(Kt.every(_));break;case"day":b.ticks(Jt.every(_));break;case"week":b.ticks(fe[T].every(_));break;case"month":b.ticks(Xt.every(_));break}}}if(z.append("g").attr("class","grid").attr("transform","translate("+h+", "+(s-50)+")").call(b).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),n.db.topAxisEnabled()||o.topAxis){let _=je(Y).tickSize(-s+g+o.gridLineStartPadding).tickFormat(Qt(l));if(a!==null){let e=parseInt(a[1],10);if(isNaN(e)||e<=0)st.warn(`Invalid tick interval value: "${a[1]}". Skipping custom tick interval.`);else{let T=a[2],S=n.db.getWeekday()||o.weekday,E=Y.domain(),W=E[0],P=E[1];if(H(W,P,e,T)<=Gt)switch(T){case"millisecond":_.ticks(Ut.every(e));break;case"second":_.ticks(qt.every(e));break;case"minute":_.ticks(Zt.every(e));break;case"hour":_.ticks(Kt.every(e));break;case"day":_.ticks(Jt.every(e));break;case"week":_.ticks(fe[S].every(e));break;case"month":_.ticks(Xt.every(e));break}}}z.append("g").attr("class","grid").attr("transform","translate("+h+", "+g+")").call(_).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}u(N,"makeGrid");function A(h,g){let y=0,s=Object.keys(w).map(c=>[c,w[c]]);z.append("g").selectAll("text").data(s).enter().append(function(c){let f=c[0].split(Ie.lineBreakRegex),l=-(f.length-1)/2,b=I.createElementNS("http://www.w3.org/2000/svg","text");b.setAttribute("dy",l+"em");for(let[a,_]of f.entries()){let e=I.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),a>0&&e.setAttribute("dy","1em"),e.textContent=_,b.appendChild(e)}return b}).attr("x",10).attr("y",function(c,f){if(f>0)for(let l=0;l` + .mermaid-main-font { + font-family: ${t.fontFamily}; + } + + .exclude-range { + fill: ${t.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${t.sectionBkgColor}; + } + + .section2 { + fill: ${t.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${t.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${t.titleColor}; + } + + .sectionTitle1 { + fill: ${t.titleColor}; + } + + .sectionTitle2 { + fill: ${t.titleColor}; + } + + .sectionTitle3 { + fill: ${t.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: ${t.fontFamily}; + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${t.fontFamily}; + fill: ${t.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${t.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: ${t.fontFamily}; + } + + .taskTextOutsideRight { + fill: ${t.taskTextDarkColor}; + text-anchor: start; + font-family: ${t.fontFamily}; + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${t.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${t.taskBkgColor}; + stroke: ${t.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${t.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${t.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${t.activeTaskBkgColor}; + stroke: ${t.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${t.doneTaskBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${t.critBorderColor}; + fill: ${t.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .vert { + stroke: ${t.vertLineColor}; + } + + .vertText { + font-size: 15px; + text-anchor: middle; + fill: ${t.vertLineColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.titleColor||t.textColor}; + font-family: ${t.fontFamily}; + } +`,"getStyles")};export{Wi as diagram}; diff --git a/docs/assets/gas-Df167mJ4.js b/docs/assets/gas-Df167mJ4.js new file mode 100644 index 0000000..ca387e4 --- /dev/null +++ b/docs/assets/gas-Df167mJ4.js @@ -0,0 +1 @@ +import{n as a,t as s}from"./gas-hf-H6Zc4.js";export{s as gas,a as gasArm}; diff --git a/docs/assets/gas-hf-H6Zc4.js b/docs/assets/gas-hf-H6Zc4.js new file mode 100644 index 0000000..014ede8 --- /dev/null +++ b/docs/assets/gas-hf-H6Zc4.js @@ -0,0 +1 @@ +function v(r){var u=[],b="",c={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function p(){b="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variableName.special",i.rax="variableName.special",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variableName.special",i.rbx="variableName.special",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variableName.special",i.rcx="variableName.special",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variableName.special",i.rdx="variableName.special",i.si="variable",i.esi="variableName.special",i.rsi="variableName.special",i.di="variable",i.edi="variableName.special",i.rdi="variableName.special",i.sp="variable",i.esp="variableName.special",i.rsp="variableName.special",i.bp="variable",i.ebp="variableName.special",i.rbp="variableName.special",i.ip="variable",i.eip="variableName.special",i.rip="variableName.special",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"}function m(){b="@",c.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variableName.special",i.lr="variableName.special",i.pc="variableName.special",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,u.push(function(l,t){if(l==="#")return t.eatWhile(/\w/),"number"})}r==="x86"?p():(r==="arm"||r==="armv6")&&m();function f(l,t){for(var e=!1,a;(a=l.next())!=null;){if(a===t&&!e)return!1;e=!e&&a==="\\"}return e}function o(l,t){for(var e=!1,a;(a=l.next())!=null;){if(a==="/"&&e){t.tokenize=null;break}e=a==="*"}return"comment"}return{name:"gas",startState:function(){return{tokenize:null}},token:function(l,t){if(t.tokenize)return t.tokenize(l,t);if(l.eatSpace())return null;var e,a,n=l.next();if(n==="/"&&l.eat("*"))return t.tokenize=o,o(l,t);if(n===b)return l.skipToEnd(),"comment";if(n==='"')return f(l,'"'),"string";if(n===".")return l.eatWhile(/\w/),a=l.current().toLowerCase(),e=c[a],e||null;if(n==="=")return l.eatWhile(/\w/),"tag";if(n==="{"||n==="}")return"bracket";if(/\d/.test(n))return n==="0"&&l.eat("x")?(l.eatWhile(/[0-9a-fA-F]/),"number"):(l.eatWhile(/\d/),"number");if(/\w/.test(n))return l.eatWhile(/\w/),l.eat(":")?"tag":(a=l.current().toLowerCase(),e=i[a],e||null);for(var s=0;s|\\\\+=|-=|\\\\*\\\\*=|\\\\*=|\\\\^=|/=|%=|&=|~=|\\\\|=|\\\\*\\\\*|[-%*+/]","name":"keyword.operator.arithmetic.gdscript"},"assignment_operator":{"match":"=","name":"keyword.operator.assignment.gdscript"},"base_expression":{"patterns":[{"include":"#builtin_get_node_shorthand"},{"include":"#nodepath_object"},{"include":"#nodepath_function"},{"include":"#strings"},{"include":"#builtin_classes"},{"include":"#const_vars"},{"include":"#keywords"},{"include":"#operators"},{"include":"#lambda_declaration"},{"include":"#class_declaration"},{"include":"#variable_declaration"},{"include":"#signal_declaration_bare"},{"include":"#signal_declaration"},{"include":"#function_declaration"},{"include":"#statement_keyword"},{"include":"#assignment_operator"},{"include":"#in_keyword"},{"include":"#control_flow"},{"include":"#match_keyword"},{"include":"#curly_braces"},{"include":"#square_braces"},{"include":"#round_braces"},{"include":"#function_call"},{"include":"#region"},{"include":"#comment"},{"include":"#func"},{"include":"#letter"},{"include":"#numbers"},{"include":"#pascal_case_class"},{"include":"#line_continuation"}]},"bitwise_operator":{"match":"[\\\\&|]|<<=|>>=|<<|>>|[\\\\^~]","name":"keyword.operator.bitwise.gdscript"},"boolean_operator":{"match":"(&&|\\\\|\\\\|)","name":"keyword.operator.boolean.gdscript"},"builtin_classes":{"match":"(?=|==|[<>]|!=?","name":"keyword.operator.comparison.gdscript"},"const_vars":{"match":"\\\\b([A-Z_][0-9A-Z_]*)\\\\b","name":"variable.other.constant.gdscript"},"control_flow":{"match":"\\\\b(?:if|elif|else|while|break|continue|pass|return|when|yield|await)\\\\b","name":"keyword.control.gdscript"},"curly_braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.gdscript"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.gdscript"}},"patterns":[{"include":"#base_expression"},{"include":"#any_variable"}]},"expression":{"patterns":[{"include":"#getter_setter_godot4"},{"include":"#base_expression"},{"include":"#assignment_operator"},{"include":"#annotations"},{"include":"#class_name"},{"include":"#builtin_classes"},{"include":"#class_new"},{"include":"#class_is"},{"include":"#class_enum"},{"include":"#any_method"},{"include":"#any_variable"},{"include":"#any_property"}]},"extends_statement":{"captures":{"1":{"name":"keyword.language.gdscript"},"2":{"name":"entity.other.inherited-class.gdscript"}},"match":"(extends)\\\\s+([A-Z_a-z]\\\\w*\\\\.[A-Z_a-z]\\\\w*)?"},"func":{"match":"\\\\bfunc\\\\b","name":"keyword.language.gdscript storage.type.function.gdscript"},"function_arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.gdscript"}},"contentName":"meta.function.parameters.gdscript","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.gdscript"},{"captures":{"1":{"name":"variable.parameter.function-call.gdscript"},"2":{"name":"keyword.operator.assignment.gdscript"}},"match":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.gdscript"},{"include":"#base_expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.gdscript"},"2":{"name":"punctuation.definition.arguments.begin.gdscript"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"},{"include":"#letter"},{"include":"#any_variable"},{"include":"#any_property"},{"include":"#keywords"}]},"function_call":{"begin":"(?=\\\\b[A-Z_a-z]\\\\w*\\\\b\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.gdscript"}},"name":"meta.function-call.gdscript","patterns":[{"include":"#function_name"},{"include":"#function_arguments"}]},"function_declaration":{"begin":"\\\\s*(func)\\\\s+([A-Z_a-z]\\\\w*)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.section.function.begin.gdscript"}},"name":"meta.function.gdscript","patterns":[{"include":"#parameters"},{"include":"#line_continuation"},{"include":"#base_expression"}]},"function_name":{"patterns":[{"include":"#builtin_classes"},{"match":"\\\\b(preload)\\\\b","name":"keyword.language.gdscript"},{"match":"\\\\b([A-Z_a-z]\\\\w*)\\\\b","name":"entity.name.function.gdscript"}]},"getter_setter_godot4":{"patterns":[{"captures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.separator.annotation.gdscript"}},"match":"(get)\\\\s*(:)","name":"meta.variable.declaration.getter.gdscript"},{"captures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.definition.arguments.begin.gdscript"},"3":{"name":"variable.other.gdscript"},"4":{"name":"punctuation.definition.arguments.end.gdscript"},"5":{"name":"punctuation.separator.annotation.gdscript"}},"match":"(set)\\\\s*(\\\\()\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(\\\\))\\\\s*(:)","name":"meta.variable.declaration.setter.gdscript"}]},"in_keyword":{"patterns":[{"begin":"\\\\b(for)\\\\b","captures":{"1":{"name":"keyword.control.gdscript"}},"end":":","patterns":[{"match":"\\\\bin\\\\b","name":"keyword.control.gdscript"},{"include":"#base_expression"},{"include":"#any_variable"},{"include":"#any_property"}]},{"match":"\\\\bin\\\\b","name":"keyword.operator.wordlike.gdscript"}]},"keywords":{"match":"\\\\b(?:class|class_name|is|onready|tool|static|export|as|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace|super|self)\\\\b","name":"keyword.language.gdscript"},"lambda_declaration":{"begin":"(func)\\\\s?(?=\\\\()","beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}},"end":"(:|(?=[\\\\n\\"#']))","end2":"(\\\\s*(\\\\-\\\\>)\\\\s*(void\\\\w*)|([a-zA-Z_]\\\\w*)\\\\s*\\\\:)","endCaptures2":{"1":{"name":"punctuation.separator.annotation.result.gdscript"},"2":{"name":"entity.name.type.class.builtin.gdscript"},"3":{"name":"entity.name.type.class.gdscript markup.italic"}},"name":"meta.function.gdscript","patterns":[{"include":"#parameters"},{"include":"#line_continuation"},{"include":"#base_expression"},{"include":"#any_variable"},{"include":"#any_property"}]},"letter":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.gdscript"},"line_continuation":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.continuation.line.gdscript"},"2":{"name":"invalid.illegal.line.continuation.gdscript"}},"match":"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)"},{"begin":"(\\\\\\\\)\\\\s*$\\\\n?","beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.gdscript"}},"end":"(?=^\\\\s*$)|(?!(\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))|\\\\G()$)","patterns":[{"include":"#base_expression"}]}]},"loose_default":{"begin":"(=)","beginCaptures":{"1":{"name":"keyword.operator.gdscript"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.gdscript"}},"patterns":[{"include":"#expression"}]},"match_keyword":{"captures":{"1":{"name":"keyword.control.gdscript"}},"match":"^\\\\n\\\\s*(match)"},"nodepath_function":{"begin":"(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.definition.parameters.begin.gdscript"}},"contentName":"meta.function.parameters.gdscript","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.gdscript"}},"name":"meta.function.gdscript","patterns":[{"begin":"([\\"'])","end":"\\\\1","name":"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript","patterns":[{"match":"%","name":"keyword.control.flow.gdscript"}]},{"include":"#expression"}]},"nodepath_object":{"begin":"(NodePath)\\\\s*\\\\(","beginCaptures":{"1":{"name":"support.class.library.gdscript"}},"end":"\\\\)","name":"meta.literal.nodepath.gdscript","patterns":[{"begin":"([\\"'])","end":"\\\\1","name":"string.quoted.gdscript constant.character.escape.gdscript","patterns":[{"match":"%","name":"keyword.control.flow.gdscript"}]}]},"numbers":{"patterns":[{"match":"0b[01_]+","name":"constant.numeric.integer.binary.gdscript"},{"match":"0x[_\\\\h]+","name":"constant.numeric.integer.hexadecimal.gdscript"},{"match":"\\\\.[0-9][0-9_]*([Ee][-+]?[0-9_]+)?","name":"constant.numeric.float.gdscript"},{"match":"([0-9][0-9_]*)\\\\.[0-9_]*([Ee][-+]?[0-9_]+)?","name":"constant.numeric.float.gdscript"},{"match":"([0-9][0-9_]*)?\\\\.[0-9_]*([Ee][-+]?[0-9_]+)","name":"constant.numeric.float.gdscript"},{"match":"[0-9][0-9_]*[Ee][-+]?[0-9_]+","name":"constant.numeric.float.gdscript"},{"match":"-?[0-9][0-9_]*","name":"constant.numeric.integer.gdscript"}]},"operators":{"patterns":[{"include":"#wordlike_operator"},{"include":"#boolean_operator"},{"include":"#arithmetic_operator"},{"include":"#bitwise_operator"},{"include":"#compare_operator"}]},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.gdscript"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.gdscript"}},"name":"meta.function.parameters.gdscript","patterns":[{"include":"#annotated_parameter"},{"captures":{"1":{"name":"variable.parameter.function.language.gdscript"},"2":{"name":"punctuation.separator.parameters.gdscript"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comment"},{"include":"#loose_default"}]},"pascal_case_class":{"match":"\\\\b[A-Z]+(?:[a-z]+[0-9A-Z_a-z]*)+\\\\b","name":"entity.name.type.class.gdscript"},"region":{"match":"#(end)?region.*$\\\\n?","name":"keyword.language.region.gdscript"},"round_braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.gdscript"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.gdscript"}},"patterns":[{"include":"#base_expression"},{"include":"#any_variable"}]},"signal_declaration":{"begin":"\\\\s*(signal)\\\\s+([A-Z_a-z]\\\\w*)\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}},"end":"((?=[\\\\n\\"#']))","name":"meta.signal.gdscript","patterns":[{"include":"#parameters"},{"include":"#line_continuation"}]},"signal_declaration_bare":{"captures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}},"match":"\\\\s*(signal)\\\\s+([A-Z_a-z]\\\\w*)(?=[\\\\n\\\\s])","name":"meta.signal.gdscript"},"square_braces":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.begin.gdscript"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.end.gdscript"}},"patterns":[{"include":"#base_expression"},{"include":"#any_variable"}]},"statement":{"patterns":[{"include":"#extends_statement"}]},"statement_keyword":{"patterns":[{"match":"\\\\b(?^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.gdscript"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"},"3":{"name":"storage.type.format.gdscript"},"4":{"name":"storage.type.format.gdscript"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:)[^\\\\n\\"'{}]*(?:\\\\{[^\\\\n\\"'}]*?}[^\\\\n\\"'{}]*)*})","name":"meta.format.brace.gdscript"}]},"string_percent_placeholders":{"captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.gdscript"},"strings":{"begin":"(r)?(\\"\\"\\"|'''|[\\"'])","beginCaptures":{"1":{"name":"constant.character.escape.gdscript"}},"end":"\\\\2","name":"string.quoted.gdscript","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.gdscript"},{"include":"#string_percent_placeholders"},{"include":"#string_bracket_placeholders"}]},"variable_declaration":{"begin":"\\\\b(?:(var)|(const))\\\\b","beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.var.gdscript"},"2":{"name":"keyword.language.gdscript storage.type.const.gdscript"}},"end":"$|;","name":"meta.variable.declaration.gdscript","patterns":[{"captures":{"1":{"name":"punctuation.separator.annotation.gdscript"},"2":{"name":"entity.name.function.gdscript"},"3":{"name":"entity.name.function.gdscript"}},"match":"(:)?\\\\s*([gs]et)\\\\s+=\\\\s+([A-Z_a-z]\\\\w*)"},{"match":":=|=(?!=)","name":"keyword.operator.assignment.gdscript"},{"captures":{"1":{"name":"punctuation.separator.annotation.gdscript"},"2":{"name":"entity.name.type.class.gdscript"}},"match":"(:)\\\\s*([A-Z_a-z]\\\\w*)?"},{"captures":{"1":{"name":"keyword.language.gdscript"},"2":{"name":"entity.name.function.gdscript"},"3":{"name":"entity.name.function.gdscript"}},"match":"(setget)\\\\s+([A-Z_a-z]\\\\w*)(?:,\\\\s*([A-Z_a-z]\\\\w*))?"},{"include":"#expression"},{"include":"#letter"},{"include":"#any_variable"},{"include":"#any_property"},{"include":"#keywords"}]},"wordlike_operator":{"match":"\\\\b(and|or|not)\\\\b","name":"keyword.operator.wordlike.gdscript"}},"scopeName":"source.gdscript"}`))];export{e as t}; diff --git a/docs/assets/gdscript-CPqD-zPC.js b/docs/assets/gdscript-CPqD-zPC.js new file mode 100644 index 0000000..293c65a --- /dev/null +++ b/docs/assets/gdscript-CPqD-zPC.js @@ -0,0 +1 @@ +import{t}from"./gdscript-BU0D7NXT.js";export{t as default}; diff --git a/docs/assets/gdshader-Bm2eQm_D.js b/docs/assets/gdshader-Bm2eQm_D.js new file mode 100644 index 0000000..be80c13 --- /dev/null +++ b/docs/assets/gdshader-Bm2eQm_D.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"GDShader","fileTypes":["gdshader"],"name":"gdshader","patterns":[{"include":"#any"}],"repository":{"any":{"patterns":[{"include":"#comment"},{"include":"#enclosed"},{"include":"#classifier"},{"include":"#definition"},{"include":"#keyword"},{"include":"#element"},{"include":"#separator"},{"include":"#operator"}]},"arraySize":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.bracket.gdshader"}},"end":"]","name":"meta.array-size.gdshader","patterns":[{"include":"#comment"},{"include":"#keyword"},{"include":"#element"},{"include":"#separator"}]},"classifier":{"begin":"(?=\\\\b(?:shader_type|render_mode)\\\\b)","end":"(?<=;)","name":"meta.classifier.gdshader","patterns":[{"include":"#comment"},{"include":"#keyword"},{"include":"#identifierClassification"},{"include":"#separator"}]},"classifierKeyword":{"match":"\\\\b(?:shader_type|render_mode)\\\\b","name":"keyword.language.classifier.gdshader"},"comment":{"patterns":[{"include":"#commentLine"},{"include":"#commentBlock"}]},"commentBlock":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.gdshader"},"commentLine":{"begin":"//","end":"$","name":"comment.line.double-slash.gdshader"},"constantFloat":{"match":"\\\\b(?:E|PI|TAU)\\\\b","name":"constant.language.float.gdshader"},"constructor":{"match":"\\\\b(?:[A-Z_a-z]\\\\w*(?=\\\\s*\\\\[\\\\s*\\\\w*\\\\s*]\\\\s*\\\\()|[A-Z]\\\\w*(?=\\\\s*\\\\())","name":"entity.name.type.constructor.gdshader"},"controlKeyword":{"match":"\\\\b(?:if|else|do|while|for|continue|break|switch|case|default|return|discard)\\\\b","name":"keyword.control.gdshader"},"definition":{"patterns":[{"include":"#structDefinition"}]},"element":{"patterns":[{"include":"#literalFloat"},{"include":"#literalInt"},{"include":"#literalBool"},{"include":"#identifierType"},{"include":"#constructor"},{"include":"#processorFunction"},{"include":"#identifierFunction"},{"include":"#swizzling"},{"include":"#identifierField"},{"include":"#constantFloat"},{"include":"#languageVariable"},{"include":"#identifierVariable"}]},"enclosed":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.parenthesis.gdshader"}},"end":"\\\\)","name":"meta.parenthesis.gdshader","patterns":[{"include":"#any"}]},"fieldDefinition":{"begin":"\\\\b[A-Z_a-z]\\\\w*\\\\b","beginCaptures":{"0":{"patterns":[{"include":"#typeKeyword"},{"match":".+","name":"entity.name.type.gdshader"}]}},"end":"(?<=;)","name":"meta.definition.field.gdshader","patterns":[{"include":"#comment"},{"include":"#keyword"},{"include":"#arraySize"},{"include":"#fieldName"},{"include":"#any"}]},"fieldName":{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"entity.name.variable.field.gdshader"},"hintKeyword":{"match":"\\\\b(?:source_color|hint_(?:color|range|(?:black_)?albedo|normal|(?:default_)?(?:white|black)|aniso|anisotropy|roughness_(?:[abgr]|normal|gray))|filter_(?:nearest|linear)(?:_mipmap(?:_anisotropic)?)?|repeat_(?:en|dis)able)\\\\b","name":"support.type.annotation.gdshader"},"identifierClassification":{"match":"\\\\b[_a-z]+\\\\b","name":"entity.other.inherited-class.gdshader"},"identifierField":{"captures":{"1":{"name":"punctuation.accessor.gdshader"},"2":{"name":"entity.name.variable.field.gdshader"}},"match":"(\\\\.)\\\\s*([A-Z_a-z]\\\\w*)\\\\b(?!\\\\s*\\\\()"},"identifierFunction":{"match":"\\\\b[A-Z_a-z]\\\\w*(?=(?:\\\\s|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\()","name":"entity.name.function.gdshader"},"identifierType":{"match":"\\\\b[A-Z_a-z]\\\\w*(?=(?:\\\\s*\\\\[\\\\s*\\\\w*\\\\s*])?\\\\s+[A-Z_a-z]\\\\w*\\\\b)","name":"entity.name.type.gdshader"},"identifierVariable":{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"variable.name.gdshader"},"keyword":{"patterns":[{"include":"#classifierKeyword"},{"include":"#structKeyword"},{"include":"#controlKeyword"},{"include":"#modifierKeyword"},{"include":"#precisionKeyword"},{"include":"#typeKeyword"},{"include":"#hintKeyword"}]},"languageVariable":{"match":"\\\\b[A-Z][0-9A-Z_]*\\\\b","name":"variable.language.gdshader"},"literalBool":{"match":"\\\\b(?:false|true)\\\\b","name":"constant.language.boolean.gdshader"},"literalFloat":{"match":"\\\\b(?:\\\\d+[Ee][-+]?\\\\d+|(?:\\\\d*\\\\.\\\\d+|\\\\d+\\\\.)(?:[Ee][-+]?\\\\d+)?)[Ff]?","name":"constant.numeric.float.gdshader"},"literalInt":{"match":"\\\\b(?:0[Xx]\\\\h+|\\\\d+[Uu]?)\\\\b","name":"constant.numeric.integer.gdshader"},"modifierKeyword":{"match":"\\\\b(?:const|global|instance|uniform|varying|in|out|inout|flat|smooth)\\\\b","name":"storage.modifier.gdshader"},"operator":{"match":"<<=?|>>=?|[-!\\\\&*+/<=>|]=|&&|\\\\|\\\\||[-!%\\\\&*+/<=>^|~]","name":"keyword.operator.gdshader"},"precisionKeyword":{"match":"\\\\b(?:low|medium|high)p\\\\b","name":"storage.type.built-in.primitive.precision.gdshader"},"processorFunction":{"match":"\\\\b(?:vertex|fragment|light|start|process|sky|fog)(?=(?:\\\\s|/\\\\*(?:\\\\*(?!/)|[^*])*\\\\*/)*\\\\()","name":"support.function.gdshader"},"separator":{"patterns":[{"match":"\\\\.","name":"punctuation.accessor.gdshader"},{"include":"#separatorComma"},{"match":";","name":"punctuation.terminator.statement.gdshader"},{"match":":","name":"keyword.operator.type.annotation.gdshader"}]},"separatorComma":{"match":",","name":"punctuation.separator.comma.gdshader"},"structDefinition":{"begin":"(?=\\\\bstruct\\\\b)","end":"(?<=;)","patterns":[{"include":"#comment"},{"include":"#keyword"},{"include":"#structName"},{"include":"#structDefinitionBlock"},{"include":"#separator"}]},"structDefinitionBlock":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.definition.block.struct.gdshader"}},"end":"}","name":"meta.definition.block.struct.gdshader","patterns":[{"include":"#comment"},{"include":"#precisionKeyword"},{"include":"#fieldDefinition"},{"include":"#keyword"},{"include":"#any"}]},"structKeyword":{"match":"\\\\bstruct\\\\b","name":"keyword.other.struct.gdshader"},"structName":{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"entity.name.type.struct.gdshader"},"swizzling":{"captures":{"1":{"name":"punctuation.accessor.gdshader"},"2":{"name":"variable.other.property.gdshader"}},"match":"(\\\\.)\\\\s*([w-z]{2,4}|[abgr]{2,4}|[pqst]{2,4})\\\\b"},"typeKeyword":{"match":"\\\\b(?:void|bool|[biu]?vec[234]|u?int|float|mat[234]|[iu]?sampler(?:3D|2D(?:Array)?)|samplerCube)\\\\b","name":"support.type.gdshader"}},"scopeName":"source.gdshader"}'))];export{e as t}; diff --git a/docs/assets/gdshader-DO5IkfXs.js b/docs/assets/gdshader-DO5IkfXs.js new file mode 100644 index 0000000..0039631 --- /dev/null +++ b/docs/assets/gdshader-DO5IkfXs.js @@ -0,0 +1 @@ +import{t}from"./gdshader-Bm2eQm_D.js";export{t as default}; diff --git a/docs/assets/genie-gEhniB2y.js b/docs/assets/genie-gEhniB2y.js new file mode 100644 index 0000000..703ddb8 --- /dev/null +++ b/docs/assets/genie-gEhniB2y.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Genie","fileTypes":["gs"],"name":"genie","patterns":[{"include":"#code"}],"repository":{"code":{"patterns":[{"include":"#comments"},{"include":"#constants"},{"include":"#strings"},{"include":"#keywords"},{"include":"#types"},{"include":"#functions"},{"include":"#variables"}]},"comments":{"patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.vala"}},"match":"/\\\\*\\\\*/","name":"comment.block.empty.vala"},{"include":"text.html.javadoc"},{"include":"#comments-inline"}]},"comments-inline":{"patterns":[{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.vala"}},"end":"\\\\*/","name":"comment.block.vala"},{"captures":{"1":{"name":"comment.line.double-slash.vala"},"2":{"name":"punctuation.definition.comment.vala"}},"match":"\\\\s*((//).*$\\\\n?)"}]},"constants":{"patterns":[{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([DFLUdflu]|UL|ul)?\\\\b","name":"constant.numeric.vala"},{"match":"\\\\b([A-Z][0-9A-Z_]+)\\\\b","name":"variable.other.constant.vala"}]},"functions":{"patterns":[{"match":"(\\\\w+)(?=\\\\s*(<[.\\\\s\\\\w]+>\\\\s*)?\\\\()","name":"entity.name.function.vala"}]},"keywords":{"patterns":[{"match":"(?<=^|[^.@\\\\w])(as|do|if|in|is|of|or|to|and|def|for|get|isa|new|not|out|ref|set|try|var|case|dict|else|enum|init|list|lock|null|pass|prop|self|true|uses|void|weak|when|array|async|break|class|const|event|false|final|owned|print|super|raise|while|yield|assert|delete|downto|except|extern|inline|params|public|raises|return|sealed|sizeof|static|struct|typeof|default|dynamic|ensures|finally|private|unowned|virtual|abstract|continue|delegate|internal|override|readonly|requires|volatile|construct|errordomain|interface|namespace|protected|implements)\\\\b","name":"keyword.vala"},{"match":"(?<=^|[^.@\\\\w])(bool|double|float|unichar|char|uchar|int|uint|long|ulong|short|ushort|size_t|ssize_t|string|void|signal|int8|int16|int32|int64|uint8|uint16|uint32|uint64)\\\\b","name":"keyword.vala"},{"match":"(#(?:if|elif|else|endif))","name":"keyword.vala"}]},"strings":{"patterns":[{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.triple.vala"},{"begin":"@\\"","end":"\\"","name":"string.quoted.interpolated.vala","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.vala"},{"match":"\\\\$\\\\w+","name":"constant.character.escape.vala"},{"match":"\\\\$\\\\(([^()]|\\\\(([^()]|\\\\([^)]*\\\\))*\\\\))*\\\\)","name":"constant.character.escape.vala"}]},{"begin":"\\"","end":"\\"","name":"string.quoted.double.vala","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.vala"}]},{"begin":"'","end":"'","name":"string.quoted.single.vala","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.vala"}]},{"match":"/((\\\\\\\\/)|([^/]))*/(?=\\\\s*[\\\\n),.;])","name":"string.regexp.vala"}]},"types":{"patterns":[{"match":"(?<=^|[^.@\\\\w])(bool|double|float|unichar|char|uchar|int|uint|long|ulong|short|ushort|size_t|ssize_t|string|void|signal|int8|int16|int32|int64|uint8|uint16|uint32|uint64)\\\\b","name":"storage.type.primitive.vala"},{"match":"\\\\b([A-Z]+\\\\w*)\\\\b","name":"entity.name.type.vala"}]},"variables":{"patterns":[{"match":"\\\\b([_a-z]+\\\\w*)\\\\b","name":"variable.other.vala"}]}},"scopeName":"source.genie"}`))];export{e as default}; diff --git a/docs/assets/get-CyLJYAfP.js b/docs/assets/get-CyLJYAfP.js new file mode 100644 index 0000000..b423752 --- /dev/null +++ b/docs/assets/get-CyLJYAfP.js @@ -0,0 +1 @@ +import{S as a}from"./_Uint8Array-BGESiCQL.js";import{t as u}from"./isSymbol-BGkTcW3U.js";import{t as l}from"./toString-DlRqgfqz.js";import{t as p}from"./memoize-DN0TMY36.js";var m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function h(r,t){if(a(r))return!1;var n=typeof r;return n=="number"||n=="symbol"||n=="boolean"||r==null||u(r)?!0:d.test(r)||!m.test(r)||t!=null&&r in Object(t)}var i=h,b=500;function g(r){var t=p(r,function(o){return n.size===b&&n.clear(),o}),n=t.cache;return t}var y=g,$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,S=y(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace($,function(n,o,v,s){t.push(v?s.replace(x,"$1"):o||n)}),t});function j(r,t){return a(r)?r:i(r,t)?[r]:S(l(r))}var f=j,w=1/0;function z(r){if(typeof r=="string"||u(r))return r;var t=r+"";return t=="0"&&1/r==-w?"-0":t}var e=z;function A(r,t){t=f(t,r);for(var n=0,o=t.length;r!=null&&n","name":"variable.other"},"step_keyword":{"captures":{"1":{"name":"keyword.language.gherkin.feature.step"}},"match":"^\\\\s*((?:En|[EY\u0648]|\u0535\u057E|Ya|Too right|V\u0259|H\u0259m|[A\u0418]|\u800C\u4E14|\u5E76\u4E14|\u540C\u65F6|\u4E26\u4E14|\u540C\u6642|Ak|Epi|A tak\xE9|Og|\u{1F602}|And|Kaj|Ja|Et que|Et qu'|Et|\u10D3\u10D0|Und|\u039A\u03B1\u03B9|\u0A85\u0AA8\u0AC7|\u05D5\u05D2\u05DD|\u0914\u0930|\u0924\u0925\u093E|\xC9s|Dan|Agus|\u304B\u3064|Lan|\u0CAE\u0CA4\u0CCD\u0CA4\u0CC1|'ej|latlh|\uADF8\uB9AC\uACE0|AN|Un|Ir|an?|\u041C\u04E9\u043D|\u0422\u044D\u0433\u044D\u044D\u0434|Ond|7|\u0A05\u0A24\u0A47|Aye|Oraz|Si|\u0218i|\u015Ei|\u041A \u0442\u043E\u043C\u0443 \u0436\u0435|\u0422\u0430\u043A\u0436\u0435|An|A tie\u017E|A taktie\u017E|A z\xE1rove\u0148|In|Ter|Och|\u0BAE\u0BC7\u0BB2\u0BC1\u0BAE\u0BCD|\u0BAE\u0BB1\u0BCD\u0BB1\u0BC1\u0BAE\u0BCD|\u04BA\u04D9\u043C|\u0412\u04D9|\u0C2E\u0C30\u0C3F\u0C2F\u0C41|\u0E41\u0E25\u0E30|Ve|\u0406|\u0410 \u0442\u0430\u043A\u043E\u0436|\u0422\u0430|\u0627\u0648\u0631|\u0412\u0430|V\xE0|Maar|\u0644\u0643\u0646|Pero|\u0532\u0561\u0575\u0581|Peru|Yeah nah|Amma|Ancaq|Ali|\u041D\u043E|Per\xF2|\u4F46\u662F|Men|Ale|\u{1F614}|But|Sed|Kuid|Mutta|Mais que|Mais qu'|Mais|\u10DB\u10D0\u10D2\xAD\u10E0\u10D0\u10DB|Aber|\u0391\u03BB\u03BB\u03AC|\u0AAA\u0AA3|\u05D0\u05D1\u05DC|\u092A\u0930|\u092A\u0930\u0928\u094D\u0924\u0941|\u0915\u093F\u0928\u094D\u0924\u0941|De|En|Tapi|Ach|Ma|\u3057\u304B\u3057|\u4F46\u3057|\u305F\u3060\u3057|Nanging|Ananging|\u0C86\u0CA6\u0CB0\u0CC6|'ach|'a|\uD558\uC9C0\uB9CC|\uB2E8|BUT|Bet|awer|m\xE4|No|Tetapi|\u0413\u044D\u0445\u0434\u044D\u044D|\u0425\u0430\u0440\u0438\u043D|Ac|\u0A2A\u0A30|\u0627\u0645\u0627|Avast!|Mas|Dar|\u0410|\u0418\u043D\u0430\u0447\u0435|Buh|\u0410\u043B\u0438|Toda|Ampak|Vendar|\u0B86\u0BA9\u0BBE\u0BB2\u0BCD|\u041B\u04D9\u043A\u0438\u043D|\u04D8\u043C\u043C\u0430|\u0C15\u0C3E\u0C28\u0C3F|\u0E41\u0E15\u0E48|Fakat|Ama|\u0410\u043B\u0435|\u0644\u06CC\u06A9\u0646|\u041B\u0435\u043A\u0438\u043D|\u0411\u0438\u0440\u043E\u043A|\u0410\u043C\u043C\u043E|Nh\u01B0ng|Ond|Dan|\u0627\u0630\u0627\u064B|\u062B\u0645|Alavez|Allora|Antonces|\u0531\u057A\u0561|Ent\xF3s|But at the end of the day I reckon|O halda|Zatim|\u0422\u043E|Aleshores|Cal|\u90A3\u4E48|\u90A3\u9EBC|L\xE8 sa a|Le sa a|Onda|Pak|S\xE5|\u{1F64F}|Then|Do|Siis|Niin|Alors|Ent\xF3n|Logo|\u10DB\u10D0\u10E8\u10D8\u10DC|Dann|\u03A4\u03CC\u03C4\u03B5|\u0AAA\u0A9B\u0AC0|\u05D0\u05D6\u05D9??|\u0924\u092C|\u0924\u0926\u093E|Akkor|\xDE\xE1|Maka|Ansin|\u306A\u3089\u3070|Njuk|Banjur|\u0CA8\u0C82\u0CA4\u0CB0|vaj|\uADF8\uB7EC\uBA74|DEN|Tada??|dann|\u0422\u043E\u0433\u0430\u0448|Togash|Kemudian|\u0422\u044D\u0433\u044D\u0445\u044D\u0434|\u04AE\u04AF\u043D\u0438\u0439 \u0434\u0430\u0440\u0430\u0430|Tha|\xDEa|\xD0a|Tha the|\xDEa \xFEe|\xD0a \xF0e|\u0A24\u0A26|\u0622\u0646\u06AF\u0627\u0647|Let go and haul|Wtedy|Ent\xE3o|Entao|Atunci|\u0417\u0430\u0442\u0435\u043C|\u0422\u043E\u0433\u0434\u0430|Dun|Den youse gotta|\u041E\u043D\u0434\u0430|Tak|Potom|Nato|Potem|Takrat|Entonces|\u0B85\u0BAA\u0BCD\u0BAA\u0BC6\u0BBE\u0BB4\u0BC1\u0BA4\u0BC1|\u041D\u04D9\u0442\u0438\u0497\u04D9\u0434\u04D9|\u0C05\u0C2A\u0C4D\u0C2A\u0C41\u0C21\u0C41|\u0E14\u0E31\u0E07\u0E19\u0E31\u0E49\u0E19|O zaman|\u0422\u043E\u0434\u0456|\u067E\u06BE\u0631|\u062A\u0628|\u0423\u043D\u0434\u0430|Th\xEC|Yna|Wanneer|\u0645\u062A\u0649|\u0639\u0646\u062F\u0645\u0627|Cuan|\u0535\u0569\u0565|\u0535\u0580\u0562|Cuando|It's just unbelievable|\u018Fg\u0259r|N\u0259 vaxt ki|Kada|\u041A\u043E\u0433\u0430\u0442\u043E|Quan|[\u5F53\u7576]|L\xE8|Le|Kad|Kdy\u017E|N\xE5r|Als|\u{1F3AC}|When|Se|Kui|Kun|Quand|Lorsque|Lorsqu'|Cando|\u10E0\u10DD\u10D3\u10D4\u10E1\u10D0\u10EA|Wenn|\u038C\u03C4\u03B1\u03BD|\u0A95\u0ACD\u0AAF\u0ABE\u0AB0\u0AC7|\u05DB\u05D0\u05E9\u05E8|\u091C\u092C|\u0915\u0926\u093E|Majd|Ha|Amikor|\xDEegar|Ketika|Nuair a|Nuair nach|Nuair ba|Nuair n\xE1r|Quando|\u3082\u3057|Manawa|Menawa|\u0CB8\u0CCD\u0CA5\u0CBF\u0CA4\u0CBF\u0CAF\u0CA8\u0CCD\u0CA8\u0CC1|qaSDI'|\uB9CC\uC77C|\uB9CC\uC57D|WEN|Ja|Kai|wann|\u041A\u043E\u0433\u0430|Koga|Apabila|\u0425\u044D\u0440\u044D\u0432|Tha|\xDEa|\xD0a|\u0A1C\u0A26\u0A4B\u0A02|\u0647\u0646\u06AF\u0627\u0645\u06CC|Blimey!|Je\u017Celi|Je\u015Bli|Gdy|Kiedy|Cand|C\xE2nd|\u041A\u043E\u0433\u0434\u0430|\u0415\u0441\u043B\u0438|Wun|Youse know like when|\u041A\u0430\u0434\u0430?|Ke\u010F|Ak|Ko|Ce|\u010Ce|Kadar|N\xE4r|\u0B8E\u0BAA\u0BCD\u0BAA\u0BC7\u0BBE\u0BA4\u0BC1|\u04D8\u0433\u04D9\u0440|\u0C08 \u0C2A\u0C30\u0C3F\u0C38\u0C4D\u0C25\u0C3F\u0C24\u0C3F\u0C32\u0C4B|\u0E40\u0E21\u0E37\u0E48\u0E2D|E\u011Fer ki|\u042F\u043A\u0449\u043E|\u041A\u043E\u043B\u0438|\u062C\u0628|\u0410\u0433\u0430\u0440|Khi|Pryd|Gegewe|\u0628\u0641\u0631\u0636|Dau|Dada|Daus|Dadas|\u0534\u056B\u0581\u0578\u0582\u0584|D\xE1u|Daos|Daes|Y'know|Tutaq ki|Verilir|Dato|\u0414\u0430\u0434\u0435\u043D\u043E|Donat|Donada|At\xE8s|Atesa|\u5047\u5982|\u5047\u8BBE|\u5047\u5B9A|\u5047\u8A2D|Sipoze|Sipoze ke|Sipoze Ke|Zadani??|Zadano|Pokud|Za p\u0159edpokladu|Givet|Gegeven|Stel|\u{1F610}|Given|Donita\u0135o|Komence|Eeldades|Oletetaan|Soit|Etant donn\xE9 que|Etant donn\xE9 qu'|Etant donn\xE9e??|Etant donn\xE9s|Etant donn\xE9es|\xC9tant donn\xE9 que|\xC9tant donn\xE9 qu'|\xC9tant donn\xE9e??|\xC9tant donn\xE9s|\xC9tant donn\xE9es|Dados??|\u10DB\u10DD\u10EA\u10D4\u10DB\u10E3\u10DA\u10D8|Angenommen|Gegeben sei|Gegeben seien|\u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5|\u0A86\u0AAA\u0AC7\u0AB2 \u0A9B\u0AC7|\u05D1\u05D4\u05D9\u05E0\u05EA\u05DF|\u0905\u0917\u0930|\u092F\u0926\u093F|\u091A\u0942\u0902\u0915\u093F|Amennyiben|Adott|Ef|Dengan|Cuir i gc\xE1s go|Cuir i gc\xE1s nach|Cuir i gc\xE1s gur|Cuir i gc\xE1s n\xE1r|Data|Dati|Date|\u524D\u63D0|Nalika|Nalikaning|\u0CA8\u0CBF\u0CD5\u0CA1\u0CBF\u0CA6|ghu' noblu'|DaH ghu' bejlu'|\uC870\uAC74|\uBA3C\uC800|I CAN HAZ|Kad|Duota|ugeholl|\u0414\u0430\u0434\u0435\u043D\u0430|Dadeno|Dadena|Diberi|Bagi|\u04E8\u0433\u04E9\u0433\u0434\u0441\u04E9\u043D \u043D\u044C|\u0410\u043D\u0445|Gitt|Thurh|\xDEurh|\xD0urh|\u0A1C\u0A47\u0A15\u0A30|\u0A1C\u0A3F\u0A35\u0A47\u0A02 \u0A15\u0A3F|\u0628\u0627 \u0641\u0631\u0636|Gangway!|Zak\u0142adaj\u0105c|Maj\u0105c|Zak\u0142adaj\u0105c, \u017Ce|Date fiind|Dat fiind|Dat\u0103 fiind|Dati fiind|Da\u021Bi fiind|Da\u0163i fiind|\u0414\u043E\u043F\u0443\u0441\u0442\u0438\u043C|\u0414\u0430\u043D\u043E|\u041F\u0443\u0441\u0442\u044C|Givun|Youse know when youse got|\u0417\u0430 \u0434\u0430\u0442\u043E|\u0417\u0430 \u0434\u0430\u0442\u0435|\u0417\u0430 \u0434\u0430\u0442\u0438|Za dato|Za date|Za dati|Pokia\u013E|Za predpokladu|Dano|Podano|Zaradi|Privzeto|\u0B95\u0BC6\u0BBE\u0B9F\u0BC1\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F|\u04D8\u0439\u0442\u0438\u043A|\u0C1A\u0C46\u0C2A\u0C4D\u0C2A\u0C2C\u0C21\u0C3F\u0C28\u0C26\u0C3F|\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E43\u0E2B\u0E49|Diyelim ki|\u041F\u0440\u0438\u043F\u0443\u0441\u0442\u0438\u043C\u043E|\u041F\u0440\u0438\u043F\u0443\u0441\u0442\u0438\u043C\u043E, \u0449\u043E|\u041D\u0435\u0445\u0430\u0439|\u0627\u06AF\u0631|\u0628\u0627\u0644\u0641\u0631\u0636|\u0641\u0631\u0636 \u06A9\u06CC\u0627|\u0410\u0433\u0430\u0440|Bi\u1EBFt|Cho|Anrhegedig a|\\\\*) )"},"strings_double_quote":{"begin":"(?]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}};export{n as t}; diff --git a/docs/assets/git-commit-ClJTi5G-.js b/docs/assets/git-commit-ClJTi5G-.js new file mode 100644 index 0000000..0b377ef --- /dev/null +++ b/docs/assets/git-commit-ClJTi5G-.js @@ -0,0 +1 @@ +import{t as e}from"./diff-DPcVaaVw.js";var t=Object.freeze(JSON.parse('{"displayName":"Git Commit Message","name":"git-commit","patterns":[{"begin":"(?=^diff --git)","contentName":"source.diff","end":"\\\\z","name":"meta.embedded.diff.git-commit","patterns":[{"include":"source.diff"}]},{"begin":"^(?!#)","end":"^(?=#)","name":"meta.scope.message.git-commit","patterns":[{"captures":{"1":{"name":"invalid.deprecated.line-too-long.git-commit"},"2":{"name":"invalid.illegal.line-too-long.git-commit"}},"match":"\\\\G.{0,50}(.{0,22}(.*))$","name":"meta.scope.subject.git-commit"}]},{"begin":"^(?=#)","contentName":"comment.line.number-sign.git-commit","end":"^(?!#)","name":"meta.scope.metadata.git-commit","patterns":[{"captures":{"1":{"name":"markup.changed.git-commit"}},"match":"^#\\\\t((modified|renamed):.*)$"},{"captures":{"1":{"name":"markup.inserted.git-commit"}},"match":"^#\\\\t(new file:.*)$"},{"captures":{"1":{"name":"markup.deleted.git-commit"}},"match":"^#\\\\t(deleted.*)$"},{"captures":{"1":{"name":"keyword.other.file-type.git-commit"},"2":{"name":"string.unquoted.filename.git-commit"}},"match":"^#\\\\t([^:]+): *(.*)$"}]}],"scopeName":"text.git-commit","embeddedLangs":["diff"]}')),m=[...e,t];export{m as default}; diff --git a/docs/assets/git-rebase-DwdtIL6I.js b/docs/assets/git-rebase-DwdtIL6I.js new file mode 100644 index 0000000..1e7250d --- /dev/null +++ b/docs/assets/git-rebase-DwdtIL6I.js @@ -0,0 +1 @@ +import{t as e}from"./shellscript-CkXVEK14.js";var a=Object.freeze(JSON.parse('{"displayName":"Git Rebase Message","name":"git-rebase","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.git-rebase"}},"match":"^\\\\s*(#).*$\\\\n?","name":"comment.line.number-sign.git-rebase"},{"captures":{"1":{"name":"support.function.git-rebase"},"2":{"name":"constant.sha.git-rebase"},"3":{"name":"meta.commit-message.git-rebase"}},"match":"^\\\\s*(pick|p|reword|r|edit|e|squash|s|fixup|f|drop|d)\\\\s+([0-9a-f]+)\\\\s+(.*)$","name":"meta.commit-command.git-rebase"},{"captures":{"1":{"name":"support.function.git-rebase"},"2":{"patterns":[{"include":"source.shell"}]}},"match":"^\\\\s*(exec|x)\\\\s+(.*)$","name":"meta.commit-command.git-rebase"},{"captures":{"1":{"name":"support.function.git-rebase"}},"match":"^\\\\s*(b(?:reak|))\\\\s*$","name":"meta.commit-command.git-rebase"}],"scopeName":"text.git-rebase","embeddedLangs":["shellscript"]}')),t=[...e,a];export{t as default}; diff --git a/docs/assets/gitGraph-F6HP7TQM-fggVUX9Y.js b/docs/assets/gitGraph-F6HP7TQM-fggVUX9Y.js new file mode 100644 index 0000000..756d6f5 --- /dev/null +++ b/docs/assets/gitGraph-F6HP7TQM-fggVUX9Y.js @@ -0,0 +1 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import{n as r}from"./chunk-S6J4BHB3-D3MBXPxT.js";export{r as createGitGraphServices}; diff --git a/docs/assets/gitGraphDiagram-NY62KEGX-I86uT3FX.js b/docs/assets/gitGraphDiagram-NY62KEGX-I86uT3FX.js new file mode 100644 index 0000000..50b50d8 --- /dev/null +++ b/docs/assets/gitGraphDiagram-NY62KEGX-I86uT3FX.js @@ -0,0 +1,65 @@ +var J;import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import"./purify.es-N-2faAGj.js";import{u as Q}from"./src-Bp_72rVO.js";import{g as X,i as Z,m as tt}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as h,r as u}from"./src-faGJHwXX.js";import{B as rt,C as et,K as at,U as ot,_ as it,a as st,b as ct,d as nt,s as k,v as dt,y as ht,z as mt}from"./chunk-ABZYJK2D-DAD3GlgM.js";import"./dist-BA8xhrl2.js";import"./chunk-O7ZBX7Z2-CYcfcXcp.js";import"./chunk-S6J4BHB3-D3MBXPxT.js";import"./chunk-LBM3YZW2-CQVIMcAR.js";import"./chunk-76Q3JFCE-COngPFoW.js";import"./chunk-T53DSG4Q-B6Z3zF7Z.js";import"./chunk-LHMN2FUI-DW2iokr2.js";import"./chunk-FWNWRKHM-XgKeqUvn.js";import{t as lt}from"./chunk-4BX2VUAB-B5-8Pez8.js";import{t as $t}from"./mermaid-parser.core-wRO0EX_C.js";import{t as yt}from"./chunk-QZHKN3VN-uHzoVf3q.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gt=nt.gitGraph,A=h(()=>Z({...gt,...ht().gitGraph}),"getConfig"),n=new yt(()=>{let r=A(),t=r.mainBranchName,a=r.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:a}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function z(){return tt({length:7})}h(z,"getID");function j(r,t){let a=Object.create(null);return r.reduce((i,e)=>{let o=t(e);return a[o]||(a[o]=!0,i.push(e)),i},[])}h(j,"uniqBy");var pt=h(function(r){n.records.direction=r},"setDirection"),xt=h(function(r){u.debug("options str",r),r=r==null?void 0:r.trim(),r||(r="{}");try{n.records.options=JSON.parse(r)}catch(t){u.error("error while parsing gitGraph options",t.message)}},"setOptions"),ft=h(function(){return n.records.options},"getOptions"),ut=h(function(r){let t=r.msg,a=r.id,i=r.type,e=r.tags;u.info("commit",t,a,i,e),u.debug("Entering commit:",t,a,i,e);let o=A();a=k.sanitizeText(a,o),t=k.sanitizeText(t,o),e=e==null?void 0:e.map(s=>k.sanitizeText(s,o));let c={id:a||n.records.seq+"-"+z(),message:t,seq:n.records.seq++,type:i??p.NORMAL,tags:e??[],parents:n.records.head==null?[]:[n.records.head.id],branch:n.records.currBranch};n.records.head=c,u.info("main branch",o.mainBranchName),n.records.commits.has(c.id)&&u.warn(`Commit ID ${c.id} already exists`),n.records.commits.set(c.id,c),n.records.branches.set(n.records.currBranch,c.id),u.debug("in pushCommit "+c.id)},"commit"),bt=h(function(r){let t=r.name,a=r.order;if(t=k.sanitizeText(t,A()),n.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);n.records.branches.set(t,n.records.head==null?null:n.records.head.id),n.records.branchConfig.set(t,{name:t,order:a}),_(t),u.debug("in createBranch")},"branch"),wt=h(r=>{let t=r.branch,a=r.id,i=r.type,e=r.tags,o=A();t=k.sanitizeText(t,o),a&&(a=k.sanitizeText(a,o));let c=n.records.branches.get(n.records.currBranch),s=n.records.branches.get(t),m=c?n.records.commits.get(c):void 0,$=s?n.records.commits.get(s):void 0;if(m&&$&&m.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(n.records.currBranch===t){let d=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},d}if(m===void 0||!m){let d=Error(`Incorrect usage of "merge". Current branch (${n.records.currBranch})has no commits`);throw d.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["commit"]},d}if(!n.records.branches.has(t)){let d=Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw d.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},d}if($===void 0||!$){let d=Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw d.hash={text:`merge ${t}`,token:`merge ${t}`,expected:['"commit"']},d}if(m===$){let d=Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${t}`,token:`merge ${t}`,expected:["branch abc"]},d}if(a&&n.records.commits.has(a)){let d=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw d.hash={text:`merge ${t} ${a} ${i} ${e==null?void 0:e.join(" ")}`,token:`merge ${t} ${a} ${i} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${t} ${a}_UNIQUE ${i} ${e==null?void 0:e.join(" ")}`]},d}let l=s||"",y={id:a||`${n.records.seq}-${z()}`,message:`merged branch ${t} into ${n.records.currBranch}`,seq:n.records.seq++,parents:n.records.head==null?[]:[n.records.head.id,l],branch:n.records.currBranch,type:p.MERGE,customType:i,customId:!!a,tags:e??[]};n.records.head=y,n.records.commits.set(y.id,y),n.records.branches.set(n.records.currBranch,y.id),u.debug(n.records.branches),u.debug("in mergeBranch")},"merge"),Bt=h(function(r){let t=r.id,a=r.targetId,i=r.tags,e=r.parent;u.debug("Entering cherryPick:",t,a,i);let o=A();if(t=k.sanitizeText(t,o),a=k.sanitizeText(a,o),i=i==null?void 0:i.map(m=>k.sanitizeText(m,o)),e=k.sanitizeText(e,o),!t||!n.records.commits.has(t)){let m=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},m}let c=n.records.commits.get(t);if(c===void 0||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=c.branch;if(c.type===p.MERGE&&!e)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!n.records.commits.has(a)){if(s===n.records.currBranch){let y=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},y}let m=n.records.branches.get(n.records.currBranch);if(m===void 0||!m){let y=Error(`Incorrect usage of "cherry-pick". Current branch (${n.records.currBranch})has no commits`);throw y.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},y}let $=n.records.commits.get(m);if($===void 0||!$){let y=Error(`Incorrect usage of "cherry-pick". Current branch (${n.records.currBranch})has no commits`);throw y.hash={text:`cherryPick ${t} ${a}`,token:`cherryPick ${t} ${a}`,expected:["cherry-pick abc"]},y}let l={id:n.records.seq+"-"+z(),message:`cherry-picked ${c==null?void 0:c.message} into ${n.records.currBranch}`,seq:n.records.seq++,parents:n.records.head==null?[]:[n.records.head.id,c.id],branch:n.records.currBranch,type:p.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${c.id}${c.type===p.MERGE?`|parent:${e}`:""}`]};n.records.head=l,n.records.commits.set(l.id,l),n.records.branches.set(n.records.currBranch,l.id),u.debug(n.records.branches),u.debug("in cherryPick")}},"cherryPick"),_=h(function(r){if(r=k.sanitizeText(r,A()),n.records.branches.has(r)){n.records.currBranch=r;let t=n.records.branches.get(n.records.currBranch);t===void 0||!t?n.records.head=null:n.records.head=n.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw t.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},t}},"checkout");function D(r,t,a){let i=r.indexOf(t);i===-1?r.push(a):r.splice(i,1,a)}h(D,"upsert");function N(r){let t=r.reduce((e,o)=>e.seq>o.seq?e:o,r[0]),a="";r.forEach(function(e){e===t?a+=" *":a+=" |"});let i=[a,t.id,t.seq];for(let e in n.records.branches)n.records.branches.get(e)===t.id&&i.push(e);if(u.debug(i.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let e=n.records.commits.get(t.parents[0]);D(r,t,e),t.parents[1]&&r.push(n.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let e=n.records.commits.get(t.parents[0]);D(r,t,e)}}r=j(r,e=>e.id),N(r)}h(N,"prettyPrintCommitHistory");var Et=h(function(){u.debug(n.records.commits);let r=K()[0];N([r])},"prettyPrint"),Ct=h(function(){n.reset(),st()},"clear"),kt=h(function(){return[...n.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Lt=h(function(){return n.records.branches},"getBranches"),Tt=h(function(){return n.records.commits},"getCommits"),K=h(function(){let r=[...n.records.commits.values()];return r.forEach(function(t){u.debug(t.id)}),r.sort((t,a)=>t.seq-a.seq),r},"getCommitsArray"),F={commitType:p,getConfig:A,setDirection:pt,setOptions:xt,getOptions:ft,commit:ut,branch:bt,merge:wt,cherryPick:Bt,checkout:_,prettyPrint:Et,clear:Ct,getBranchesAsObjArray:kt,getBranches:Lt,getCommits:Tt,getCommitsArray:K,getCurrentBranch:h(function(){return n.records.currBranch},"getCurrentBranch"),getDirection:h(function(){return n.records.direction},"getDirection"),getHead:h(function(){return n.records.head},"getHead"),setAccTitle:rt,getAccTitle:dt,getAccDescription:it,setAccDescription:mt,setDiagramTitle:ot,getDiagramTitle:et},Mt=h((r,t)=>{lt(r,t),r.dir&&t.setDirection(r.dir);for(let a of r.statements)vt(a,t)},"populate"),vt=h((r,t)=>{let a={Commit:h(i=>t.commit(Pt(i)),"Commit"),Branch:h(i=>t.branch(Rt(i)),"Branch"),Merge:h(i=>t.merge(At(i)),"Merge"),Checkout:h(i=>t.checkout(Gt(i)),"Checkout"),CherryPicking:h(i=>t.cherryPick(Ot(i)),"CherryPicking")}[r.$type];a?a(r):u.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),Pt=h(r=>({id:r.id,msg:r.message??"",type:r.type===void 0?p.NORMAL:p[r.type],tags:r.tags??void 0}),"parseCommit"),Rt=h(r=>({name:r.name,order:r.order??0}),"parseBranch"),At=h(r=>({branch:r.branch,id:r.id??"",type:r.type===void 0?void 0:p[r.type],tags:r.tags??void 0}),"parseMerge"),Gt=h(r=>r.branch,"parseCheckout"),Ot=h(r=>{var t;return{id:r.id,targetId:"",tags:((t=r.tags)==null?void 0:t.length)===0?void 0:r.tags,parent:r.parent}},"parseCherryPicking"),It={parse:h(async r=>{let t=await $t("gitGraph",r);u.debug(t),Mt(t,F)},"parse")},f=(J=ct())==null?void 0:J.gitGraph,v=10,P=40,L=4,T=2,G=8,E=new Map,C=new Map,H=30,I=new Map,S=[],R=0,g="LR",qt=h(()=>{E.clear(),C.clear(),I.clear(),R=0,S=[],g="LR"},"clear"),Y=h(r=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|/gi):r).forEach(a=>{let i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=a.trim(),t.appendChild(i)}),t},"drawText"),U=h(r=>{let t,a,i;return g==="BT"?(a=h((e,o)=>e<=o,"comparisonFunc"),i=1/0):(a=h((e,o)=>e>=o,"comparisonFunc"),i=0),r.forEach(e=>{var c,s;let o=g==="TB"||g=="BT"?(c=C.get(e))==null?void 0:c.y:(s=C.get(e))==null?void 0:s.x;o!==void 0&&a(o,i)&&(t=e,i=o)}),t},"findClosestParent"),zt=h(r=>{let t="",a=1/0;return r.forEach(i=>{let e=C.get(i).y;e<=a&&(t=i,a=e)}),t||void 0},"findClosestParentBT"),Ht=h((r,t,a)=>{let i=a,e=a,o=[];r.forEach(c=>{let s=t.get(c);if(!s)throw Error(`Commit not found for key ${c}`);s.parents.length?(i=Dt(s),e=Math.max(i,e)):o.push(s),Nt(s,i)}),i=e,o.forEach(c=>{Wt(c,i,a)}),r.forEach(c=>{let s=t.get(c);if(s!=null&&s.parents.length){let m=zt(s.parents);i=C.get(m).y-P,i<=e&&(e=i);let $=E.get(s.branch).pos,l=i-v;C.set(s.id,{x:$,y:l})}})},"setParallelBTPos"),St=h(r=>{var i;let t=U(r.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${r.id}`);let a=(i=C.get(t))==null?void 0:i.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${r.id}`);return a},"findClosestParentPos"),Dt=h(r=>St(r)+P,"calculateCommitPosition"),Nt=h((r,t)=>{let a=E.get(r.branch);if(!a)throw Error(`Branch not found for commit ${r.id}`);let i=a.pos,e=t+v;return C.set(r.id,{x:i,y:e}),{x:i,y:e}},"setCommitPosition"),Wt=h((r,t,a)=>{let i=E.get(r.branch);if(!i)throw Error(`Branch not found for commit ${r.id}`);let e=t+a,o=i.pos;C.set(r.id,{x:o,y:e})},"setRootPosition"),jt=h((r,t,a,i,e,o)=>{if(o===p.HIGHLIGHT)r.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${t.id} commit-highlight${e%G} ${i}-outer`),r.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${t.id} commit${e%G} ${i}-inner`);else if(o===p.CHERRY_PICK)r.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${t.id} ${i}`),r.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${i}`),r.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${t.id} ${i}`),r.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${i}`),r.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${t.id} ${i}`);else{let c=r.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",t.type===p.MERGE?9:10),c.attr("class",`commit ${t.id} commit${e%G}`),o===p.MERGE){let s=r.append("circle");s.attr("cx",a.x),s.attr("cy",a.y),s.attr("r",6),s.attr("class",`commit ${i} ${t.id} commit${e%G}`)}o===p.REVERSE&&r.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${i} ${t.id} commit${e%G}`)}},"drawCommitBullet"),_t=h((r,t,a,i)=>{var e;if(t.type!==p.CHERRY_PICK&&(t.customId&&t.type===p.MERGE||t.type!==p.MERGE)&&(f!=null&&f.showCommitLabel)){let o=r.append("g"),c=o.insert("rect").attr("class","commit-label-bkg"),s=o.append("text").attr("x",i).attr("y",a.y+25).attr("class","commit-label").text(t.id),m=(e=s.node())==null?void 0:e.getBBox();if(m&&(c.attr("x",a.posWithOffset-m.width/2-T).attr("y",a.y+13.5).attr("width",m.width+2*T).attr("height",m.height+2*T),g==="TB"||g==="BT"?(c.attr("x",a.x-(m.width+4*L+5)).attr("y",a.y-12),s.attr("x",a.x-(m.width+4*L)).attr("y",a.y+m.height-12)):s.attr("x",a.posWithOffset-m.width/2),f.rotateCommitLabel))if(g==="TB"||g==="BT")s.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let $=-7.5-(m.width+10)/25*9.5,l=10+m.width/25*8.5;o.attr("transform","translate("+$+", "+l+") rotate(-45, "+i+", "+a.y+")")}}},"drawCommitLabel"),Kt=h((r,t,a,i)=>{var e;if(t.tags.length>0){let o=0,c=0,s=0,m=[];for(let $ of t.tags.reverse()){let l=r.insert("polygon"),y=r.append("circle"),d=r.append("text").attr("y",a.y-16-o).attr("class","tag-label").text($),x=(e=d.node())==null?void 0:e.getBBox();if(!x)throw Error("Tag bbox not found");c=Math.max(c,x.width),s=Math.max(s,x.height),d.attr("x",a.posWithOffset-x.width/2),m.push({tag:d,hole:y,rect:l,yOffset:o}),o+=20}for(let{tag:$,hole:l,rect:y,yOffset:d}of m){let x=s/2,b=a.y-19.2-d;if(y.attr("class","tag-label-bkg").attr("points",` + ${i-c/2-L/2},${b+T} + ${i-c/2-L/2},${b-T} + ${a.posWithOffset-c/2-L},${b-x-T} + ${a.posWithOffset+c/2+L},${b-x-T} + ${a.posWithOffset+c/2+L},${b+x+T} + ${a.posWithOffset-c/2-L},${b+x+T}`),l.attr("cy",b).attr("cx",i-c/2+L/2).attr("r",1.5).attr("class","tag-hole"),g==="TB"||g==="BT"){let w=i+d;y.attr("class","tag-label-bkg").attr("points",` + ${a.x},${w+2} + ${a.x},${w-2} + ${a.x+v},${w-x-2} + ${a.x+v+c+4},${w-x-2} + ${a.x+v+c+4},${w+x+2} + ${a.x+v},${w+x+2}`).attr("transform","translate(12,12) rotate(45, "+a.x+","+i+")"),l.attr("cx",a.x+L/2).attr("cy",w).attr("transform","translate(12,12) rotate(45, "+a.x+","+i+")"),$.attr("x",a.x+5).attr("y",w+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+i+")")}}}},"drawCommitTags"),Ft=h(r=>{switch(r.customType??r.type){case p.NORMAL:return"commit-normal";case p.REVERSE:return"commit-reverse";case p.HIGHLIGHT:return"commit-highlight";case p.MERGE:return"commit-merge";case p.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Yt=h((r,t,a,i)=>{let e={x:0,y:0};if(r.parents.length>0){let o=U(r.parents);if(o){let c=i.get(o)??e;return t==="TB"?c.y+P:t==="BT"?(i.get(r.id)??e).y-P:c.x+P}}else return t==="TB"?H:t==="BT"?(i.get(r.id)??e).y-P:0;return 0},"calculatePosition"),Ut=h((r,t,a)=>{var c,s;let i=g==="BT"&&a?t:t+v,e=g==="TB"||g==="BT"?i:(c=E.get(r.branch))==null?void 0:c.pos,o=g==="TB"||g==="BT"?(s=E.get(r.branch))==null?void 0:s.pos:i;if(o===void 0||e===void 0)throw Error(`Position were undefined for commit ${r.id}`);return{x:o,y:e,posWithOffset:i}},"getCommitPosition"),V=h((r,t,a)=>{if(!f)throw Error("GitGraph config not found");let i=r.append("g").attr("class","commit-bullets"),e=r.append("g").attr("class","commit-labels"),o=g==="TB"||g==="BT"?H:0,c=[...t.keys()],s=(f==null?void 0:f.parallelCommits)??!1,m=h((l,y)=>{var b,w;let d=(b=t.get(l))==null?void 0:b.seq,x=(w=t.get(y))==null?void 0:w.seq;return d!==void 0&&x!==void 0?d-x:0},"sortKeys"),$=c.sort(m);g==="BT"&&(s&&Ht($,t,o),$=$.reverse()),$.forEach(l=>{var x;let y=t.get(l);if(!y)throw Error(`Commit not found for key ${l}`);s&&(o=Yt(y,g,o,C));let d=Ut(y,o,s);if(a){let b=Ft(y),w=y.customType??y.type;jt(i,y,d,b,((x=E.get(y.branch))==null?void 0:x.index)??0,w),_t(e,y,d,o),Kt(e,y,d,o)}g==="TB"||g==="BT"?C.set(y.id,{x:d.x,y:d.posWithOffset}):C.set(y.id,{x:d.posWithOffset,y:d.y}),o=g==="BT"&&s?o+P:o+P+v,o>R&&(R=o)})},"drawCommits"),Vt=h((r,t,a,i,e)=>{let o=(g==="TB"||g==="BT"?a.xm.branch===o,"isOnBranchToGetCurve"),s=h(m=>m.seq>r.seq&&m.seqs(m)&&c(m))},"shouldRerouteArrow"),q=h((r,t,a=0)=>{let i=r+Math.abs(r-t)/2;return a>5?i:S.every(e=>Math.abs(e-i)>=10)?(S.push(i),i):q(r,t-Math.abs(r-t)/5,a+1)},"findLane"),Jt=h((r,t,a,i)=>{var x,b,w,O,W;let e=C.get(t.id),o=C.get(a.id);if(e===void 0||o===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${a.id}`);let c=Vt(t,a,e,o,i),s="",m="",$=0,l=0,y=(x=E.get(a.branch))==null?void 0:x.index;a.type===p.MERGE&&t.id!==a.parents[0]&&(y=(b=E.get(t.branch))==null?void 0:b.index);let d;if(c){s="A 10 10, 0, 0, 0,",m="A 10 10, 0, 0, 1,",$=10,l=10;let M=e.yo.x&&(s="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",$=20,l=20,d=a.type===p.MERGE&&t.id!==a.parents[0]?`M ${e.x} ${e.y} L ${e.x} ${o.y-$} ${m} ${e.x-l} ${o.y} L ${o.x} ${o.y}`:`M ${e.x} ${e.y} L ${o.x+$} ${e.y} ${s} ${o.x} ${e.y+l} L ${o.x} ${o.y}`),e.x===o.x&&(d=`M ${e.x} ${e.y} L ${o.x} ${o.y}`)):g==="BT"?(e.xo.x&&(s="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",$=20,l=20,d=a.type===p.MERGE&&t.id!==a.parents[0]?`M ${e.x} ${e.y} L ${e.x} ${o.y+$} ${s} ${e.x-l} ${o.y} L ${o.x} ${o.y}`:`M ${e.x} ${e.y} L ${o.x-$} ${e.y} ${s} ${o.x} ${e.y-l} L ${o.x} ${o.y}`),e.x===o.x&&(d=`M ${e.x} ${e.y} L ${o.x} ${o.y}`)):(e.yo.y&&(d=a.type===p.MERGE&&t.id!==a.parents[0]?`M ${e.x} ${e.y} L ${o.x-$} ${e.y} ${s} ${o.x} ${e.y-l} L ${o.x} ${o.y}`:`M ${e.x} ${e.y} L ${e.x} ${o.y+$} ${m} ${e.x+l} ${o.y} L ${o.x} ${o.y}`),e.y===o.y&&(d=`M ${e.x} ${e.y} L ${o.x} ${o.y}`));if(d===void 0)throw Error("Line definition not found");r.append("path").attr("d",d).attr("class","arrow arrow"+y%G)},"drawArrow"),Qt=h((r,t)=>{let a=r.append("g").attr("class","commit-arrows");[...t.keys()].forEach(i=>{let e=t.get(i);e.parents&&e.parents.length>0&&e.parents.forEach(o=>{Jt(a,t.get(o),e,t)})})},"drawArrows"),Xt=h((r,t)=>{let a=r.append("g");t.forEach((i,e)=>{var x;let o=e%G,c=(x=E.get(i.name))==null?void 0:x.pos;if(c===void 0)throw Error(`Position not found for branch ${i.name}`);let s=a.append("line");s.attr("x1",0),s.attr("y1",c),s.attr("x2",R),s.attr("y2",c),s.attr("class","branch branch"+o),g==="TB"?(s.attr("y1",H),s.attr("x1",c),s.attr("y2",R),s.attr("x2",c)):g==="BT"&&(s.attr("y1",R),s.attr("x1",c),s.attr("y2",H),s.attr("x2",c)),S.push(c);let m=i.name,$=Y(m),l=a.insert("rect"),y=a.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+o);y.node().appendChild($);let d=$.getBBox();l.attr("class","branchLabelBkg label"+o).attr("rx",4).attr("ry",4).attr("x",-d.width-4-((f==null?void 0:f.rotateCommitLabel)===!0?30:0)).attr("y",-d.height/2+8).attr("width",d.width+18).attr("height",d.height+4),y.attr("transform","translate("+(-d.width-14-((f==null?void 0:f.rotateCommitLabel)===!0?30:0))+", "+(c-d.height/2-1)+")"),g==="TB"?(l.attr("x",c-d.width/2-10).attr("y",0),y.attr("transform","translate("+(c-d.width/2-5)+", 0)")):g==="BT"?(l.attr("x",c-d.width/2-10).attr("y",R),y.attr("transform","translate("+(c-d.width/2-5)+", "+R+")")):l.attr("transform","translate(-19, "+(c-d.height/2)+")")})},"drawBranches"),Zt=h(function(r,t,a,i,e){return E.set(r,{pos:t,index:a}),t+=50+(e?40:0)+(g==="TB"||g==="BT"?i.width/2:0),t},"setBranchPosition"),tr={parser:It,db:F,renderer:{draw:h(function(r,t,a,i){if(qt(),u.debug("in gitgraph renderer",r+` +`,"id:",t,a),!f)throw Error("GitGraph config not found");let e=f.rotateCommitLabel??!1,o=i.db;I=o.getCommits();let c=o.getBranchesAsObjArray();g=o.getDirection();let s=Q(`[id="${t}"]`),m=0;c.forEach(($,l)=>{var O;let y=Y($.name),d=s.append("g"),x=d.insert("g").attr("class","branchLabel"),b=x.insert("g").attr("class","label branch-label");(O=b.node())==null||O.appendChild(y);let w=y.getBBox();m=Zt($.name,m,l,w,e),b.remove(),x.remove(),d.remove()}),V(s,I,!1),f.showBranches&&Xt(s,c),Qt(s,I),V(s,I,!0),X.insertTitle(s,"gitTitleText",f.titleTopMargin??0,o.getDiagramTitle()),at(void 0,s,f.diagramPadding,f.useMaxWidth)},"draw")},styles:h(r=>` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + ${[0,1,2,3,4,5,6,7].map(t=>` + .branch-label${t} { fill: ${r["gitBranchLabel"+t]}; } + .commit${t} { stroke: ${r["git"+t]}; fill: ${r["git"+t]}; } + .commit-highlight${t} { stroke: ${r["gitInv"+t]}; fill: ${r["gitInv"+t]}; } + .label${t} { fill: ${r["git"+t]}; } + .arrow${t} { stroke: ${r["git"+t]}; } + `).join(` +`)} + + .branch { + stroke-width: 1; + stroke: ${r.lineColor}; + stroke-dasharray: 2; + } + .commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};} + .commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; } + .tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};} + .tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; } + .tag-hole { fill: ${r.textColor}; } + + .commit-merge { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + } + .commit-reverse { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + stroke-width: 3; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${r.primaryColor}; + fill: ${r.primaryColor}; + } + + .arrow { stroke-width: 8; stroke-linecap: round; fill: none} + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${r.textColor}; + } +`,"getStyles")};export{tr as diagram}; diff --git a/docs/assets/github-dark-COEptyVj.js b/docs/assets/github-dark-COEptyVj.js new file mode 100644 index 0000000..d9bee00 --- /dev/null +++ b/docs/assets/github-dark-COEptyVj.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#24292e","activityBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBarBadge.background":"#0366d6","activityBarBadge.foreground":"#fff","badge.background":"#044289","badge.foreground":"#c8e1ff","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#2b3036","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","debugToolBar.background":"#2b3036","descriptionForeground":"#959da5","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","editor.background":"#24292e","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.focusedStackFrameHighlightBackground":"#2b6a3033","editor.foldBackground":"#58606915","editor.foreground":"#e1e4e8","editor.inactiveSelectionBackground":"#3392FF22","editor.lineHighlightBackground":"#2b3036","editor.linkedEditingBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.stackFrameHighlightBackground":"#C6902625","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorGroup.border":"#1b1f23","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#444d56","editorIndentGuide.background":"#2f363d","editorLineNumber.activeForeground":"#e1e4e8","editorLineNumber.foreground":"#444d56","editorOverviewRuler.border":"#1b1f23","editorWarning.foreground":"#ffea7f","editorWhitespace.foreground":"#444d56","editorWidget.background":"#1f2428","errorForeground":"#f97583","focusBorder":"#005cc5","foreground":"#d1d5da","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.submoduleResourceForeground":"#6a737d","gitDecoration.untrackedResourceForeground":"#34d058","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#39414a","list.activeSelectionForeground":"#e1e4e8","list.focusBackground":"#044289","list.hoverBackground":"#282e34","list.hoverForeground":"#e1e4e8","list.inactiveFocusBackground":"#1d2d3e","list.inactiveSelectionBackground":"#282e34","list.inactiveSelectionForeground":"#e1e4e8","notificationCenterHeader.background":"#24292e","notificationCenterHeader.foreground":"#959da5","notifications.background":"#2f363d","notifications.border":"#1b1f23","notifications.foreground":"#e1e4e8","notificationsErrorIcon.foreground":"#ea4a5a","notificationsInfoIcon.foreground":"#79b8ff","notificationsWarningIcon.foreground":"#ffab70","panel.background":"#1f2428","panel.border":"#1b1f23","panelInput.border":"#2f363d","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#1f242888","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#1f2428","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","progressBar.background":"#0366d6","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","scrollbar.shadow":"#0008","scrollbarSlider.activeBackground":"#6a737d88","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","sideBarSectionHeader.foreground":"#e1e4e8","sideBarTitle.foreground":"#e1e4e8","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#d1d5da","statusBar.noFolderBackground":"#24292e","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteBackground":"#24292e","statusBarItem.remoteForeground":"#d1d5da","tab.activeBackground":"#24292e","tab.activeBorder":"#24292e","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#e1e4e8","tab.border":"#1b1f23","tab.hoverBackground":"#24292e","tab.inactiveBackground":"#1f2428","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#24292e","tab.unfocusedActiveBorderTop":"#1b1f23","tab.unfocusedHoverBackground":"#24292e","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#85e89d","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiBrightRed":"#f97583","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiBrightYellow":"#ffea7f","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#34d058","terminal.ansiMagenta":"#b392f0","terminal.ansiRed":"#ea4a5a","terminal.ansiWhite":"#d1d5da","terminal.ansiYellow":"#ffea7f","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textLink.activeForeground":"#c8e1ff","textLink.foreground":"#79b8ff","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#24292e","titleBar.activeForeground":"#e1e4e8","titleBar.border":"#1b1f23","titleBar.inactiveBackground":"#1f2428","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"GitHub Dark","name":"github-dark","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#dbedff"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/github-dark-default-Lu9yb3Ll.js b/docs/assets/github-dark-default-Lu9yb3Ll.js new file mode 100644 index 0000000..de5e457 --- /dev/null +++ b/docs/assets/github-dark-default-Lu9yb3Ll.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f78166","activityBar.background":"#0d1117","activityBar.border":"#30363d","activityBar.foreground":"#e6edf3","activityBar.inactiveForeground":"#7d8590","activityBarBadge.background":"#1f6feb","activityBarBadge.foreground":"#ffffff","badge.background":"#1f6feb","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#7d8590","breadcrumb.focusForeground":"#e6edf3","breadcrumb.foreground":"#7d8590","breadcrumbPicker.background":"#161b22","button.background":"#238636","button.foreground":"#ffffff","button.hoverBackground":"#2ea043","button.secondaryBackground":"#282e33","button.secondaryForeground":"#c9d1d9","button.secondaryHoverBackground":"#30363d","checkbox.background":"#161b22","checkbox.border":"#30363d","debugConsole.errorForeground":"#ffa198","debugConsole.infoForeground":"#8b949e","debugConsole.sourceForeground":"#e3b341","debugConsole.warningForeground":"#d29922","debugConsoleInputIcon.foreground":"#bc8cff","debugIcon.breakpointForeground":"#f85149","debugTokenExpression.boolean":"#56d364","debugTokenExpression.error":"#ffa198","debugTokenExpression.name":"#79c0ff","debugTokenExpression.number":"#56d364","debugTokenExpression.string":"#a5d6ff","debugTokenExpression.value":"#a5d6ff","debugToolBar.background":"#161b22","descriptionForeground":"#7d8590","diffEditor.insertedLineBackground":"#23863626","diffEditor.insertedTextBackground":"#3fb9504d","diffEditor.removedLineBackground":"#da363326","diffEditor.removedTextBackground":"#ff7b724d","dropdown.background":"#161b22","dropdown.border":"#30363d","dropdown.foreground":"#e6edf3","dropdown.listBackground":"#161b22","editor.background":"#0d1117","editor.findMatchBackground":"#9e6a03","editor.findMatchHighlightBackground":"#f2cc6080","editor.focusedStackFrameHighlightBackground":"#2ea04366","editor.foldBackground":"#6e76811a","editor.foreground":"#e6edf3","editor.lineHighlightBackground":"#6e76811a","editor.linkedEditingBackground":"#2f81f712","editor.selectionHighlightBackground":"#3fb95040","editor.stackFrameHighlightBackground":"#bb800966","editor.wordHighlightBackground":"#6e768180","editor.wordHighlightBorder":"#6e768199","editor.wordHighlightStrongBackground":"#6e76814d","editor.wordHighlightStrongBorder":"#6e768199","editorBracketHighlight.foreground1":"#79c0ff","editorBracketHighlight.foreground2":"#56d364","editorBracketHighlight.foreground3":"#e3b341","editorBracketHighlight.foreground4":"#ffa198","editorBracketHighlight.foreground5":"#ff9bce","editorBracketHighlight.foreground6":"#d2a8ff","editorBracketHighlight.unexpectedBracket.foreground":"#7d8590","editorBracketMatch.background":"#3fb95040","editorBracketMatch.border":"#3fb95099","editorCursor.foreground":"#2f81f7","editorGroup.border":"#30363d","editorGroupHeader.tabsBackground":"#010409","editorGroupHeader.tabsBorder":"#30363d","editorGutter.addedBackground":"#2ea04366","editorGutter.deletedBackground":"#f8514966","editorGutter.modifiedBackground":"#bb800966","editorIndentGuide.activeBackground":"#e6edf33d","editorIndentGuide.background":"#e6edf31f","editorInlayHint.background":"#8b949e33","editorInlayHint.foreground":"#7d8590","editorInlayHint.paramBackground":"#8b949e33","editorInlayHint.paramForeground":"#7d8590","editorInlayHint.typeBackground":"#8b949e33","editorInlayHint.typeForeground":"#7d8590","editorLineNumber.activeForeground":"#e6edf3","editorLineNumber.foreground":"#6e7681","editorOverviewRuler.border":"#010409","editorWhitespace.foreground":"#484f58","editorWidget.background":"#161b22","errorForeground":"#f85149","focusBorder":"#1f6feb","foreground":"#e6edf3","gitDecoration.addedResourceForeground":"#3fb950","gitDecoration.conflictingResourceForeground":"#db6d28","gitDecoration.deletedResourceForeground":"#f85149","gitDecoration.ignoredResourceForeground":"#6e7681","gitDecoration.modifiedResourceForeground":"#d29922","gitDecoration.submoduleResourceForeground":"#7d8590","gitDecoration.untrackedResourceForeground":"#3fb950","icon.foreground":"#7d8590","input.background":"#0d1117","input.border":"#30363d","input.foreground":"#e6edf3","input.placeholderForeground":"#6e7681","keybindingLabel.foreground":"#e6edf3","list.activeSelectionBackground":"#6e768166","list.activeSelectionForeground":"#e6edf3","list.focusBackground":"#388bfd26","list.focusForeground":"#e6edf3","list.highlightForeground":"#2f81f7","list.hoverBackground":"#6e76811a","list.hoverForeground":"#e6edf3","list.inactiveFocusBackground":"#388bfd26","list.inactiveSelectionBackground":"#6e768166","list.inactiveSelectionForeground":"#e6edf3","minimapSlider.activeBackground":"#8b949e47","minimapSlider.background":"#8b949e33","minimapSlider.hoverBackground":"#8b949e3d","notificationCenterHeader.background":"#161b22","notificationCenterHeader.foreground":"#7d8590","notifications.background":"#161b22","notifications.border":"#30363d","notifications.foreground":"#e6edf3","notificationsErrorIcon.foreground":"#f85149","notificationsInfoIcon.foreground":"#2f81f7","notificationsWarningIcon.foreground":"#d29922","panel.background":"#010409","panel.border":"#30363d","panelInput.border":"#30363d","panelTitle.activeBorder":"#f78166","panelTitle.activeForeground":"#e6edf3","panelTitle.inactiveForeground":"#7d8590","peekViewEditor.background":"#6e76811a","peekViewEditor.matchHighlightBackground":"#bb800966","peekViewResult.background":"#0d1117","peekViewResult.matchHighlightBackground":"#bb800966","pickerGroup.border":"#30363d","pickerGroup.foreground":"#7d8590","progressBar.background":"#1f6feb","quickInput.background":"#161b22","quickInput.foreground":"#e6edf3","scrollbar.shadow":"#484f5833","scrollbarSlider.activeBackground":"#8b949e47","scrollbarSlider.background":"#8b949e33","scrollbarSlider.hoverBackground":"#8b949e3d","settings.headerForeground":"#e6edf3","settings.modifiedItemIndicator":"#bb800966","sideBar.background":"#010409","sideBar.border":"#30363d","sideBar.foreground":"#e6edf3","sideBarSectionHeader.background":"#010409","sideBarSectionHeader.border":"#30363d","sideBarSectionHeader.foreground":"#e6edf3","sideBarTitle.foreground":"#e6edf3","statusBar.background":"#0d1117","statusBar.border":"#30363d","statusBar.debuggingBackground":"#da3633","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#1f6feb80","statusBar.foreground":"#7d8590","statusBar.noFolderBackground":"#0d1117","statusBarItem.activeBackground":"#e6edf31f","statusBarItem.focusBorder":"#1f6feb","statusBarItem.hoverBackground":"#e6edf314","statusBarItem.prominentBackground":"#6e768166","statusBarItem.remoteBackground":"#30363d","statusBarItem.remoteForeground":"#e6edf3","symbolIcon.arrayForeground":"#f0883e","symbolIcon.booleanForeground":"#58a6ff","symbolIcon.classForeground":"#f0883e","symbolIcon.colorForeground":"#79c0ff","symbolIcon.constantForeground":["#aff5b4","#7ee787","#56d364","#3fb950","#2ea043","#238636","#196c2e","#0f5323","#033a16","#04260f"],"symbolIcon.constructorForeground":"#d2a8ff","symbolIcon.enumeratorForeground":"#f0883e","symbolIcon.enumeratorMemberForeground":"#58a6ff","symbolIcon.eventForeground":"#6e7681","symbolIcon.fieldForeground":"#f0883e","symbolIcon.fileForeground":"#d29922","symbolIcon.folderForeground":"#d29922","symbolIcon.functionForeground":"#bc8cff","symbolIcon.interfaceForeground":"#f0883e","symbolIcon.keyForeground":"#58a6ff","symbolIcon.keywordForeground":"#ff7b72","symbolIcon.methodForeground":"#bc8cff","symbolIcon.moduleForeground":"#ff7b72","symbolIcon.namespaceForeground":"#ff7b72","symbolIcon.nullForeground":"#58a6ff","symbolIcon.numberForeground":"#3fb950","symbolIcon.objectForeground":"#f0883e","symbolIcon.operatorForeground":"#79c0ff","symbolIcon.packageForeground":"#f0883e","symbolIcon.propertyForeground":"#f0883e","symbolIcon.referenceForeground":"#58a6ff","symbolIcon.snippetForeground":"#58a6ff","symbolIcon.stringForeground":"#79c0ff","symbolIcon.structForeground":"#f0883e","symbolIcon.textForeground":"#79c0ff","symbolIcon.typeParameterForeground":"#79c0ff","symbolIcon.unitForeground":"#58a6ff","symbolIcon.variableForeground":"#f0883e","tab.activeBackground":"#0d1117","tab.activeBorder":"#0d1117","tab.activeBorderTop":"#f78166","tab.activeForeground":"#e6edf3","tab.border":"#30363d","tab.hoverBackground":"#0d1117","tab.inactiveBackground":"#010409","tab.inactiveForeground":"#7d8590","tab.unfocusedActiveBorder":"#0d1117","tab.unfocusedActiveBorderTop":"#30363d","tab.unfocusedHoverBackground":"#6e76811a","terminal.ansiBlack":"#484f58","terminal.ansiBlue":"#58a6ff","terminal.ansiBrightBlack":"#6e7681","terminal.ansiBrightBlue":"#79c0ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#56d364","terminal.ansiBrightMagenta":"#d2a8ff","terminal.ansiBrightRed":"#ffa198","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e3b341","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#3fb950","terminal.ansiMagenta":"#bc8cff","terminal.ansiRed":"#ff7b72","terminal.ansiWhite":"#b1bac4","terminal.ansiYellow":"#d29922","terminal.foreground":"#e6edf3","textBlockQuote.background":"#010409","textBlockQuote.border":"#30363d","textCodeBlock.background":"#6e768166","textLink.activeForeground":"#2f81f7","textLink.foreground":"#2f81f7","textPreformat.background":"#6e768166","textPreformat.foreground":"#7d8590","textSeparator.foreground":"#21262d","titleBar.activeBackground":"#0d1117","titleBar.activeForeground":"#7d8590","titleBar.border":"#30363d","titleBar.inactiveBackground":"#010409","titleBar.inactiveForeground":"#7d8590","tree.indentGuidesStroke":"#21262d","welcomePage.buttonBackground":"#21262d","welcomePage.buttonHoverBackground":"#30363d"},"displayName":"GitHub Dark Default","name":"github-dark-default","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#8b949e"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#ff7b72"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#79c0ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#ffa657"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#e6edf3"}},{"scope":"entity.name.function","settings":{"foreground":"#d2a8ff"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#7ee787"}},{"scope":"keyword","settings":{"foreground":"#ff7b72"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#ff7b72"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e6edf3"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#a5d6ff"}},{"scope":"support","settings":{"foreground":"#79c0ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79c0ff"}},{"scope":"variable","settings":{"foreground":"#ffa657"}},{"scope":"variable.other","settings":{"foreground":"#e6edf3"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"carriage-return","settings":{"background":"#ff7b72","content":"^M","fontStyle":"italic underline","foreground":"#f0f6fc"}},{"scope":"message.error","settings":{"foreground":"#ffa198"}},{"scope":"string variable","settings":{"foreground":"#79c0ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#a5d6ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#a5d6ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#7ee787"}},{"scope":"support.constant","settings":{"foreground":"#79c0ff"}},{"scope":"support.variable","settings":{"foreground":"#79c0ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#7ee787"}},{"scope":"meta.module-reference","settings":{"foreground":"#79c0ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffa657"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"markup.quote","settings":{"foreground":"#7ee787"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e6edf3"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e6edf3"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79c0ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#490202","foreground":"#ffa198"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#ff7b72"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#04260f","foreground":"#7ee787"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#5a1e02","foreground":"#ffa657"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79c0ff","foreground":"#161b22"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#d2a8ff"}},{"scope":"meta.diff.header","settings":{"foreground":"#79c0ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"meta.output","settings":{"foreground":"#79c0ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#8b949e"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ffa198"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#a5d6ff"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/github-dark-dimmed-DLr10ZfD.js b/docs/assets/github-dark-dimmed-DLr10ZfD.js new file mode 100644 index 0000000..9daf852 --- /dev/null +++ b/docs/assets/github-dark-dimmed-DLr10ZfD.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#ec775c","activityBar.background":"#22272e","activityBar.border":"#444c56","activityBar.foreground":"#adbac7","activityBar.inactiveForeground":"#768390","activityBarBadge.background":"#316dca","activityBarBadge.foreground":"#cdd9e5","badge.background":"#316dca","badge.foreground":"#cdd9e5","breadcrumb.activeSelectionForeground":"#768390","breadcrumb.focusForeground":"#adbac7","breadcrumb.foreground":"#768390","breadcrumbPicker.background":"#2d333b","button.background":"#347d39","button.foreground":"#ffffff","button.hoverBackground":"#46954a","button.secondaryBackground":"#3d444d","button.secondaryForeground":"#adbac7","button.secondaryHoverBackground":"#444c56","checkbox.background":"#2d333b","checkbox.border":"#444c56","debugConsole.errorForeground":"#ff938a","debugConsole.infoForeground":"#768390","debugConsole.sourceForeground":"#daaa3f","debugConsole.warningForeground":"#c69026","debugConsoleInputIcon.foreground":"#b083f0","debugIcon.breakpointForeground":"#e5534b","debugTokenExpression.boolean":"#6bc46d","debugTokenExpression.error":"#ff938a","debugTokenExpression.name":"#6cb6ff","debugTokenExpression.number":"#6bc46d","debugTokenExpression.string":"#96d0ff","debugTokenExpression.value":"#96d0ff","debugToolBar.background":"#2d333b","descriptionForeground":"#768390","diffEditor.insertedLineBackground":"#347d3926","diffEditor.insertedTextBackground":"#57ab5a4d","diffEditor.removedLineBackground":"#c93c3726","diffEditor.removedTextBackground":"#f470674d","dropdown.background":"#2d333b","dropdown.border":"#444c56","dropdown.foreground":"#adbac7","dropdown.listBackground":"#2d333b","editor.background":"#22272e","editor.findMatchBackground":"#966600","editor.findMatchHighlightBackground":"#eac55f80","editor.focusedStackFrameHighlightBackground":"#46954a66","editor.foldBackground":"#636e7b1a","editor.foreground":"#adbac7","editor.lineHighlightBackground":"#636e7b1a","editor.linkedEditingBackground":"#539bf512","editor.selectionHighlightBackground":"#57ab5a40","editor.stackFrameHighlightBackground":"#ae7c1466","editor.wordHighlightBackground":"#636e7b80","editor.wordHighlightBorder":"#636e7b99","editor.wordHighlightStrongBackground":"#636e7b4d","editor.wordHighlightStrongBorder":"#636e7b99","editorBracketHighlight.foreground1":"#6cb6ff","editorBracketHighlight.foreground2":"#6bc46d","editorBracketHighlight.foreground3":"#daaa3f","editorBracketHighlight.foreground4":"#ff938a","editorBracketHighlight.foreground5":"#fc8dc7","editorBracketHighlight.foreground6":"#dcbdfb","editorBracketHighlight.unexpectedBracket.foreground":"#768390","editorBracketMatch.background":"#57ab5a40","editorBracketMatch.border":"#57ab5a99","editorCursor.foreground":"#539bf5","editorGroup.border":"#444c56","editorGroupHeader.tabsBackground":"#1c2128","editorGroupHeader.tabsBorder":"#444c56","editorGutter.addedBackground":"#46954a66","editorGutter.deletedBackground":"#e5534b66","editorGutter.modifiedBackground":"#ae7c1466","editorIndentGuide.activeBackground":"#adbac73d","editorIndentGuide.background":"#adbac71f","editorInlayHint.background":"#76839033","editorInlayHint.foreground":"#768390","editorInlayHint.paramBackground":"#76839033","editorInlayHint.paramForeground":"#768390","editorInlayHint.typeBackground":"#76839033","editorInlayHint.typeForeground":"#768390","editorLineNumber.activeForeground":"#adbac7","editorLineNumber.foreground":"#636e7b","editorOverviewRuler.border":"#1c2128","editorWhitespace.foreground":"#545d68","editorWidget.background":"#2d333b","errorForeground":"#e5534b","focusBorder":"#316dca","foreground":"#adbac7","gitDecoration.addedResourceForeground":"#57ab5a","gitDecoration.conflictingResourceForeground":"#cc6b2c","gitDecoration.deletedResourceForeground":"#e5534b","gitDecoration.ignoredResourceForeground":"#636e7b","gitDecoration.modifiedResourceForeground":"#c69026","gitDecoration.submoduleResourceForeground":"#768390","gitDecoration.untrackedResourceForeground":"#57ab5a","icon.foreground":"#768390","input.background":"#22272e","input.border":"#444c56","input.foreground":"#adbac7","input.placeholderForeground":"#636e7b","keybindingLabel.foreground":"#adbac7","list.activeSelectionBackground":"#636e7b66","list.activeSelectionForeground":"#adbac7","list.focusBackground":"#4184e426","list.focusForeground":"#adbac7","list.highlightForeground":"#539bf5","list.hoverBackground":"#636e7b1a","list.hoverForeground":"#adbac7","list.inactiveFocusBackground":"#4184e426","list.inactiveSelectionBackground":"#636e7b66","list.inactiveSelectionForeground":"#adbac7","minimapSlider.activeBackground":"#76839047","minimapSlider.background":"#76839033","minimapSlider.hoverBackground":"#7683903d","notificationCenterHeader.background":"#2d333b","notificationCenterHeader.foreground":"#768390","notifications.background":"#2d333b","notifications.border":"#444c56","notifications.foreground":"#adbac7","notificationsErrorIcon.foreground":"#e5534b","notificationsInfoIcon.foreground":"#539bf5","notificationsWarningIcon.foreground":"#c69026","panel.background":"#1c2128","panel.border":"#444c56","panelInput.border":"#444c56","panelTitle.activeBorder":"#ec775c","panelTitle.activeForeground":"#adbac7","panelTitle.inactiveForeground":"#768390","peekViewEditor.background":"#636e7b1a","peekViewEditor.matchHighlightBackground":"#ae7c1466","peekViewResult.background":"#22272e","peekViewResult.matchHighlightBackground":"#ae7c1466","pickerGroup.border":"#444c56","pickerGroup.foreground":"#768390","progressBar.background":"#316dca","quickInput.background":"#2d333b","quickInput.foreground":"#adbac7","scrollbar.shadow":"#545d6833","scrollbarSlider.activeBackground":"#76839047","scrollbarSlider.background":"#76839033","scrollbarSlider.hoverBackground":"#7683903d","settings.headerForeground":"#adbac7","settings.modifiedItemIndicator":"#ae7c1466","sideBar.background":"#1c2128","sideBar.border":"#444c56","sideBar.foreground":"#adbac7","sideBarSectionHeader.background":"#1c2128","sideBarSectionHeader.border":"#444c56","sideBarSectionHeader.foreground":"#adbac7","sideBarTitle.foreground":"#adbac7","statusBar.background":"#22272e","statusBar.border":"#444c56","statusBar.debuggingBackground":"#c93c37","statusBar.debuggingForeground":"#cdd9e5","statusBar.focusBorder":"#316dca80","statusBar.foreground":"#768390","statusBar.noFolderBackground":"#22272e","statusBarItem.activeBackground":"#adbac71f","statusBarItem.focusBorder":"#316dca","statusBarItem.hoverBackground":"#adbac714","statusBarItem.prominentBackground":"#636e7b66","statusBarItem.remoteBackground":"#444c56","statusBarItem.remoteForeground":"#adbac7","symbolIcon.arrayForeground":"#e0823d","symbolIcon.booleanForeground":"#539bf5","symbolIcon.classForeground":"#e0823d","symbolIcon.colorForeground":"#6cb6ff","symbolIcon.constantForeground":["#b4f1b4","#8ddb8c","#6bc46d","#57ab5a","#46954a","#347d39","#2b6a30","#245829","#1b4721","#113417"],"symbolIcon.constructorForeground":"#dcbdfb","symbolIcon.enumeratorForeground":"#e0823d","symbolIcon.enumeratorMemberForeground":"#539bf5","symbolIcon.eventForeground":"#636e7b","symbolIcon.fieldForeground":"#e0823d","symbolIcon.fileForeground":"#c69026","symbolIcon.folderForeground":"#c69026","symbolIcon.functionForeground":"#b083f0","symbolIcon.interfaceForeground":"#e0823d","symbolIcon.keyForeground":"#539bf5","symbolIcon.keywordForeground":"#f47067","symbolIcon.methodForeground":"#b083f0","symbolIcon.moduleForeground":"#f47067","symbolIcon.namespaceForeground":"#f47067","symbolIcon.nullForeground":"#539bf5","symbolIcon.numberForeground":"#57ab5a","symbolIcon.objectForeground":"#e0823d","symbolIcon.operatorForeground":"#6cb6ff","symbolIcon.packageForeground":"#e0823d","symbolIcon.propertyForeground":"#e0823d","symbolIcon.referenceForeground":"#539bf5","symbolIcon.snippetForeground":"#539bf5","symbolIcon.stringForeground":"#6cb6ff","symbolIcon.structForeground":"#e0823d","symbolIcon.textForeground":"#6cb6ff","symbolIcon.typeParameterForeground":"#6cb6ff","symbolIcon.unitForeground":"#539bf5","symbolIcon.variableForeground":"#e0823d","tab.activeBackground":"#22272e","tab.activeBorder":"#22272e","tab.activeBorderTop":"#ec775c","tab.activeForeground":"#adbac7","tab.border":"#444c56","tab.hoverBackground":"#22272e","tab.inactiveBackground":"#1c2128","tab.inactiveForeground":"#768390","tab.unfocusedActiveBorder":"#22272e","tab.unfocusedActiveBorderTop":"#444c56","tab.unfocusedHoverBackground":"#636e7b1a","terminal.ansiBlack":"#545d68","terminal.ansiBlue":"#539bf5","terminal.ansiBrightBlack":"#636e7b","terminal.ansiBrightBlue":"#6cb6ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#6bc46d","terminal.ansiBrightMagenta":"#dcbdfb","terminal.ansiBrightRed":"#ff938a","terminal.ansiBrightWhite":"#cdd9e5","terminal.ansiBrightYellow":"#daaa3f","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#57ab5a","terminal.ansiMagenta":"#b083f0","terminal.ansiRed":"#f47067","terminal.ansiWhite":"#909dab","terminal.ansiYellow":"#c69026","terminal.foreground":"#adbac7","textBlockQuote.background":"#1c2128","textBlockQuote.border":"#444c56","textCodeBlock.background":"#636e7b66","textLink.activeForeground":"#539bf5","textLink.foreground":"#539bf5","textPreformat.background":"#636e7b66","textPreformat.foreground":"#768390","textSeparator.foreground":"#373e47","titleBar.activeBackground":"#22272e","titleBar.activeForeground":"#768390","titleBar.border":"#444c56","titleBar.inactiveBackground":"#1c2128","titleBar.inactiveForeground":"#768390","tree.indentGuidesStroke":"#373e47","welcomePage.buttonBackground":"#373e47","welcomePage.buttonHoverBackground":"#444c56"},"displayName":"GitHub Dark Dimmed","name":"github-dark-dimmed","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#768390"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#f47067"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#6cb6ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#f69d50"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#adbac7"}},{"scope":"entity.name.function","settings":{"foreground":"#dcbdfb"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#8ddb8c"}},{"scope":"keyword","settings":{"foreground":"#f47067"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f47067"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#adbac7"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#96d0ff"}},{"scope":"support","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.property-name","settings":{"foreground":"#6cb6ff"}},{"scope":"variable","settings":{"foreground":"#f69d50"}},{"scope":"variable.other","settings":{"foreground":"#adbac7"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"carriage-return","settings":{"background":"#f47067","content":"^M","fontStyle":"italic underline","foreground":"#cdd9e5"}},{"scope":"message.error","settings":{"foreground":"#ff938a"}},{"scope":"string variable","settings":{"foreground":"#6cb6ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#96d0ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#96d0ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#8ddb8c"}},{"scope":"support.constant","settings":{"foreground":"#6cb6ff"}},{"scope":"support.variable","settings":{"foreground":"#6cb6ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#8ddb8c"}},{"scope":"meta.module-reference","settings":{"foreground":"#6cb6ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#f69d50"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"markup.quote","settings":{"foreground":"#8ddb8c"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#adbac7"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#adbac7"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#6cb6ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#5d0f12","foreground":"#ff938a"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#f47067"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#113417","foreground":"#8ddb8c"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#682d0f","foreground":"#f69d50"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#6cb6ff","foreground":"#2d333b"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#dcbdfb"}},{"scope":"meta.diff.header","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"meta.output","settings":{"foreground":"#6cb6ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#768390"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ff938a"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#96d0ff"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/github-dark-high-contrast-BAD179q5.js b/docs/assets/github-dark-high-contrast-BAD179q5.js new file mode 100644 index 0000000..ff08e1f --- /dev/null +++ b/docs/assets/github-dark-high-contrast-BAD179q5.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#ff967d","activityBar.background":"#0a0c10","activityBar.border":"#7a828e","activityBar.foreground":"#f0f3f6","activityBar.inactiveForeground":"#f0f3f6","activityBarBadge.background":"#409eff","activityBarBadge.foreground":"#0a0c10","badge.background":"#409eff","badge.foreground":"#0a0c10","breadcrumb.activeSelectionForeground":"#f0f3f6","breadcrumb.focusForeground":"#f0f3f6","breadcrumb.foreground":"#f0f3f6","breadcrumbPicker.background":"#272b33","button.background":"#09b43a","button.foreground":"#0a0c10","button.hoverBackground":"#26cd4d","button.secondaryBackground":"#4c525d","button.secondaryForeground":"#f0f3f6","button.secondaryHoverBackground":"#525964","checkbox.background":"#272b33","checkbox.border":"#7a828e","debugConsole.errorForeground":"#ffb1af","debugConsole.infoForeground":"#bdc4cc","debugConsole.sourceForeground":"#f7c843","debugConsole.warningForeground":"#f0b72f","debugConsoleInputIcon.foreground":"#cb9eff","debugIcon.breakpointForeground":"#ff6a69","debugTokenExpression.boolean":"#4ae168","debugTokenExpression.error":"#ffb1af","debugTokenExpression.name":"#91cbff","debugTokenExpression.number":"#4ae168","debugTokenExpression.string":"#addcff","debugTokenExpression.value":"#addcff","debugToolBar.background":"#272b33","descriptionForeground":"#f0f3f6","diffEditor.insertedLineBackground":"#09b43a26","diffEditor.insertedTextBackground":"#26cd4d4d","diffEditor.removedLineBackground":"#ff6a6926","diffEditor.removedTextBackground":"#ff94924d","dropdown.background":"#272b33","dropdown.border":"#7a828e","dropdown.foreground":"#f0f3f6","dropdown.listBackground":"#272b33","editor.background":"#0a0c10","editor.findMatchBackground":"#e09b13","editor.findMatchHighlightBackground":"#fbd66980","editor.focusedStackFrameHighlightBackground":"#09b43a","editor.foldBackground":"#9ea7b31a","editor.foreground":"#f0f3f6","editor.inactiveSelectionBackground":"#9ea7b3","editor.lineHighlightBackground":"#9ea7b31a","editor.lineHighlightBorder":"#71b7ff","editor.linkedEditingBackground":"#71b7ff12","editor.selectionBackground":"#ffffff","editor.selectionForeground":"#0a0c10","editor.selectionHighlightBackground":"#26cd4d40","editor.stackFrameHighlightBackground":"#e09b13","editor.wordHighlightBackground":"#9ea7b380","editor.wordHighlightBorder":"#9ea7b399","editor.wordHighlightStrongBackground":"#9ea7b34d","editor.wordHighlightStrongBorder":"#9ea7b399","editorBracketHighlight.foreground1":"#91cbff","editorBracketHighlight.foreground2":"#4ae168","editorBracketHighlight.foreground3":"#f7c843","editorBracketHighlight.foreground4":"#ffb1af","editorBracketHighlight.foreground5":"#ffadd4","editorBracketHighlight.foreground6":"#dbb7ff","editorBracketHighlight.unexpectedBracket.foreground":"#f0f3f6","editorBracketMatch.background":"#26cd4d40","editorBracketMatch.border":"#26cd4d99","editorCursor.foreground":"#71b7ff","editorGroup.border":"#7a828e","editorGroupHeader.tabsBackground":"#010409","editorGroupHeader.tabsBorder":"#7a828e","editorGutter.addedBackground":"#09b43a","editorGutter.deletedBackground":"#ff6a69","editorGutter.modifiedBackground":"#e09b13","editorIndentGuide.activeBackground":"#f0f3f63d","editorIndentGuide.background":"#f0f3f61f","editorInlayHint.background":"#bdc4cc33","editorInlayHint.foreground":"#f0f3f6","editorInlayHint.paramBackground":"#bdc4cc33","editorInlayHint.paramForeground":"#f0f3f6","editorInlayHint.typeBackground":"#bdc4cc33","editorInlayHint.typeForeground":"#f0f3f6","editorLineNumber.activeForeground":"#f0f3f6","editorLineNumber.foreground":"#9ea7b3","editorOverviewRuler.border":"#010409","editorWhitespace.foreground":"#7a828e","editorWidget.background":"#272b33","errorForeground":"#ff6a69","focusBorder":"#409eff","foreground":"#f0f3f6","gitDecoration.addedResourceForeground":"#26cd4d","gitDecoration.conflictingResourceForeground":"#e7811d","gitDecoration.deletedResourceForeground":"#ff6a69","gitDecoration.ignoredResourceForeground":"#9ea7b3","gitDecoration.modifiedResourceForeground":"#f0b72f","gitDecoration.submoduleResourceForeground":"#f0f3f6","gitDecoration.untrackedResourceForeground":"#26cd4d","icon.foreground":"#f0f3f6","input.background":"#0a0c10","input.border":"#7a828e","input.foreground":"#f0f3f6","input.placeholderForeground":"#9ea7b3","keybindingLabel.foreground":"#f0f3f6","list.activeSelectionBackground":"#9ea7b366","list.activeSelectionForeground":"#f0f3f6","list.focusBackground":"#409eff26","list.focusForeground":"#f0f3f6","list.highlightForeground":"#71b7ff","list.hoverBackground":"#9ea7b31a","list.hoverForeground":"#f0f3f6","list.inactiveFocusBackground":"#409eff26","list.inactiveSelectionBackground":"#9ea7b366","list.inactiveSelectionForeground":"#f0f3f6","minimapSlider.activeBackground":"#bdc4cc47","minimapSlider.background":"#bdc4cc33","minimapSlider.hoverBackground":"#bdc4cc3d","notificationCenterHeader.background":"#272b33","notificationCenterHeader.foreground":"#f0f3f6","notifications.background":"#272b33","notifications.border":"#7a828e","notifications.foreground":"#f0f3f6","notificationsErrorIcon.foreground":"#ff6a69","notificationsInfoIcon.foreground":"#71b7ff","notificationsWarningIcon.foreground":"#f0b72f","panel.background":"#010409","panel.border":"#7a828e","panelInput.border":"#7a828e","panelTitle.activeBorder":"#ff967d","panelTitle.activeForeground":"#f0f3f6","panelTitle.inactiveForeground":"#f0f3f6","peekViewEditor.background":"#9ea7b31a","peekViewEditor.matchHighlightBackground":"#e09b13","peekViewResult.background":"#0a0c10","peekViewResult.matchHighlightBackground":"#e09b13","pickerGroup.border":"#7a828e","pickerGroup.foreground":"#f0f3f6","progressBar.background":"#409eff","quickInput.background":"#272b33","quickInput.foreground":"#f0f3f6","scrollbar.shadow":"#7a828e33","scrollbarSlider.activeBackground":"#bdc4cc47","scrollbarSlider.background":"#bdc4cc33","scrollbarSlider.hoverBackground":"#bdc4cc3d","settings.headerForeground":"#f0f3f6","settings.modifiedItemIndicator":"#e09b13","sideBar.background":"#010409","sideBar.border":"#7a828e","sideBar.foreground":"#f0f3f6","sideBarSectionHeader.background":"#010409","sideBarSectionHeader.border":"#7a828e","sideBarSectionHeader.foreground":"#f0f3f6","sideBarTitle.foreground":"#f0f3f6","statusBar.background":"#0a0c10","statusBar.border":"#7a828e","statusBar.debuggingBackground":"#ff6a69","statusBar.debuggingForeground":"#0a0c10","statusBar.focusBorder":"#409eff80","statusBar.foreground":"#f0f3f6","statusBar.noFolderBackground":"#0a0c10","statusBarItem.activeBackground":"#f0f3f61f","statusBarItem.focusBorder":"#409eff","statusBarItem.hoverBackground":"#f0f3f614","statusBarItem.prominentBackground":"#9ea7b366","statusBarItem.remoteBackground":"#525964","statusBarItem.remoteForeground":"#f0f3f6","symbolIcon.arrayForeground":"#fe9a2d","symbolIcon.booleanForeground":"#71b7ff","symbolIcon.classForeground":"#fe9a2d","symbolIcon.colorForeground":"#91cbff","symbolIcon.constantForeground":["#acf7b6","#72f088","#4ae168","#26cd4d","#09b43a","#09b43a","#02a232","#008c2c","#007728","#006222"],"symbolIcon.constructorForeground":"#dbb7ff","symbolIcon.enumeratorForeground":"#fe9a2d","symbolIcon.enumeratorMemberForeground":"#71b7ff","symbolIcon.eventForeground":"#9ea7b3","symbolIcon.fieldForeground":"#fe9a2d","symbolIcon.fileForeground":"#f0b72f","symbolIcon.folderForeground":"#f0b72f","symbolIcon.functionForeground":"#cb9eff","symbolIcon.interfaceForeground":"#fe9a2d","symbolIcon.keyForeground":"#71b7ff","symbolIcon.keywordForeground":"#ff9492","symbolIcon.methodForeground":"#cb9eff","symbolIcon.moduleForeground":"#ff9492","symbolIcon.namespaceForeground":"#ff9492","symbolIcon.nullForeground":"#71b7ff","symbolIcon.numberForeground":"#26cd4d","symbolIcon.objectForeground":"#fe9a2d","symbolIcon.operatorForeground":"#91cbff","symbolIcon.packageForeground":"#fe9a2d","symbolIcon.propertyForeground":"#fe9a2d","symbolIcon.referenceForeground":"#71b7ff","symbolIcon.snippetForeground":"#71b7ff","symbolIcon.stringForeground":"#91cbff","symbolIcon.structForeground":"#fe9a2d","symbolIcon.textForeground":"#91cbff","symbolIcon.typeParameterForeground":"#91cbff","symbolIcon.unitForeground":"#71b7ff","symbolIcon.variableForeground":"#fe9a2d","tab.activeBackground":"#0a0c10","tab.activeBorder":"#0a0c10","tab.activeBorderTop":"#ff967d","tab.activeForeground":"#f0f3f6","tab.border":"#7a828e","tab.hoverBackground":"#0a0c10","tab.inactiveBackground":"#010409","tab.inactiveForeground":"#f0f3f6","tab.unfocusedActiveBorder":"#0a0c10","tab.unfocusedActiveBorderTop":"#7a828e","tab.unfocusedHoverBackground":"#9ea7b31a","terminal.ansiBlack":"#7a828e","terminal.ansiBlue":"#71b7ff","terminal.ansiBrightBlack":"#9ea7b3","terminal.ansiBrightBlue":"#91cbff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#4ae168","terminal.ansiBrightMagenta":"#dbb7ff","terminal.ansiBrightRed":"#ffb1af","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#f7c843","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#26cd4d","terminal.ansiMagenta":"#cb9eff","terminal.ansiRed":"#ff9492","terminal.ansiWhite":"#d9dee3","terminal.ansiYellow":"#f0b72f","terminal.foreground":"#f0f3f6","textBlockQuote.background":"#010409","textBlockQuote.border":"#7a828e","textCodeBlock.background":"#9ea7b366","textLink.activeForeground":"#71b7ff","textLink.foreground":"#71b7ff","textPreformat.background":"#9ea7b366","textPreformat.foreground":"#f0f3f6","textSeparator.foreground":"#7a828e","titleBar.activeBackground":"#0a0c10","titleBar.activeForeground":"#f0f3f6","titleBar.border":"#7a828e","titleBar.inactiveBackground":"#010409","titleBar.inactiveForeground":"#f0f3f6","tree.indentGuidesStroke":"#7a828e","welcomePage.buttonBackground":"#272b33","welcomePage.buttonHoverBackground":"#525964"},"displayName":"GitHub Dark High Contrast","name":"github-dark-high-contrast","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#bdc4cc"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#ff9492"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#91cbff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#ffb757"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#f0f3f6"}},{"scope":"entity.name.function","settings":{"foreground":"#dbb7ff"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#72f088"}},{"scope":"keyword","settings":{"foreground":"#ff9492"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#ff9492"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#f0f3f6"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#addcff"}},{"scope":"support","settings":{"foreground":"#91cbff"}},{"scope":"meta.property-name","settings":{"foreground":"#91cbff"}},{"scope":"variable","settings":{"foreground":"#ffb757"}},{"scope":"variable.other","settings":{"foreground":"#f0f3f6"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ffb1af"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ffb1af"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ffb1af"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ffb1af"}},{"scope":"carriage-return","settings":{"background":"#ff9492","content":"^M","fontStyle":"italic underline","foreground":"#ffffff"}},{"scope":"message.error","settings":{"foreground":"#ffb1af"}},{"scope":"string variable","settings":{"foreground":"#91cbff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#addcff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#addcff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#72f088"}},{"scope":"support.constant","settings":{"foreground":"#91cbff"}},{"scope":"support.variable","settings":{"foreground":"#91cbff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#72f088"}},{"scope":"meta.module-reference","settings":{"foreground":"#91cbff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffb757"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#91cbff"}},{"scope":"markup.quote","settings":{"foreground":"#72f088"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#f0f3f6"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#f0f3f6"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#91cbff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ad0116","foreground":"#ffb1af"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#ff9492"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#006222","foreground":"#72f088"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#a74c00","foreground":"#ffb757"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#91cbff","foreground":"#272b33"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#dbb7ff"}},{"scope":"meta.diff.header","settings":{"foreground":"#91cbff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#91cbff"}},{"scope":"meta.output","settings":{"foreground":"#91cbff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#bdc4cc"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ffb1af"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#addcff"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/github-light-D5YDCk-k.js b/docs/assets/github-light-D5YDCk-k.js new file mode 100644 index 0000000..9cac0bc --- /dev/null +++ b/docs/assets/github-light-D5YDCk-k.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackground":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/github-light-default-DXVqiSkL.js b/docs/assets/github-light-default-DXVqiSkL.js new file mode 100644 index 0000000..e01d1fd --- /dev/null +++ b/docs/assets/github-light-default-DXVqiSkL.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#fd8c73","activityBar.background":"#ffffff","activityBar.border":"#d0d7de","activityBar.foreground":"#1f2328","activityBar.inactiveForeground":"#656d76","activityBarBadge.background":"#0969da","activityBarBadge.foreground":"#ffffff","badge.background":"#0969da","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#656d76","breadcrumb.focusForeground":"#1f2328","breadcrumb.foreground":"#656d76","breadcrumbPicker.background":"#ffffff","button.background":"#1f883d","button.foreground":"#ffffff","button.hoverBackground":"#1a7f37","button.secondaryBackground":"#ebecf0","button.secondaryForeground":"#24292f","button.secondaryHoverBackground":"#f3f4f6","checkbox.background":"#f6f8fa","checkbox.border":"#d0d7de","debugConsole.errorForeground":"#cf222e","debugConsole.infoForeground":"#57606a","debugConsole.sourceForeground":"#9a6700","debugConsole.warningForeground":"#7d4e00","debugConsoleInputIcon.foreground":"#6639ba","debugIcon.breakpointForeground":"#cf222e","debugTokenExpression.boolean":"#116329","debugTokenExpression.error":"#a40e26","debugTokenExpression.name":"#0550ae","debugTokenExpression.number":"#116329","debugTokenExpression.string":"#0a3069","debugTokenExpression.value":"#0a3069","debugToolBar.background":"#ffffff","descriptionForeground":"#656d76","diffEditor.insertedLineBackground":"#aceebb4d","diffEditor.insertedTextBackground":"#6fdd8b80","diffEditor.removedLineBackground":"#ffcecb4d","diffEditor.removedTextBackground":"#ff818266","dropdown.background":"#ffffff","dropdown.border":"#d0d7de","dropdown.foreground":"#1f2328","dropdown.listBackground":"#ffffff","editor.background":"#ffffff","editor.findMatchBackground":"#bf8700","editor.findMatchHighlightBackground":"#fae17d80","editor.focusedStackFrameHighlightBackground":"#4ac26b66","editor.foldBackground":"#6e77811a","editor.foreground":"#1f2328","editor.lineHighlightBackground":"#eaeef280","editor.linkedEditingBackground":"#0969da12","editor.selectionHighlightBackground":"#4ac26b40","editor.stackFrameHighlightBackground":"#d4a72c66","editor.wordHighlightBackground":"#eaeef280","editor.wordHighlightBorder":"#afb8c199","editor.wordHighlightStrongBackground":"#afb8c14d","editor.wordHighlightStrongBorder":"#afb8c199","editorBracketHighlight.foreground1":"#0969da","editorBracketHighlight.foreground2":"#1a7f37","editorBracketHighlight.foreground3":"#9a6700","editorBracketHighlight.foreground4":"#cf222e","editorBracketHighlight.foreground5":"#bf3989","editorBracketHighlight.foreground6":"#8250df","editorBracketHighlight.unexpectedBracket.foreground":"#656d76","editorBracketMatch.background":"#4ac26b40","editorBracketMatch.border":"#4ac26b99","editorCursor.foreground":"#0969da","editorGroup.border":"#d0d7de","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#d0d7de","editorGutter.addedBackground":"#4ac26b66","editorGutter.deletedBackground":"#ff818266","editorGutter.modifiedBackground":"#d4a72c66","editorIndentGuide.activeBackground":"#1f23283d","editorIndentGuide.background":"#1f23281f","editorInlayHint.background":"#afb8c133","editorInlayHint.foreground":"#656d76","editorInlayHint.paramBackground":"#afb8c133","editorInlayHint.paramForeground":"#656d76","editorInlayHint.typeBackground":"#afb8c133","editorInlayHint.typeForeground":"#656d76","editorLineNumber.activeForeground":"#1f2328","editorLineNumber.foreground":"#8c959f","editorOverviewRuler.border":"#ffffff","editorWhitespace.foreground":"#afb8c1","editorWidget.background":"#ffffff","errorForeground":"#cf222e","focusBorder":"#0969da","foreground":"#1f2328","gitDecoration.addedResourceForeground":"#1a7f37","gitDecoration.conflictingResourceForeground":"#bc4c00","gitDecoration.deletedResourceForeground":"#cf222e","gitDecoration.ignoredResourceForeground":"#6e7781","gitDecoration.modifiedResourceForeground":"#9a6700","gitDecoration.submoduleResourceForeground":"#656d76","gitDecoration.untrackedResourceForeground":"#1a7f37","icon.foreground":"#656d76","input.background":"#ffffff","input.border":"#d0d7de","input.foreground":"#1f2328","input.placeholderForeground":"#6e7781","keybindingLabel.foreground":"#1f2328","list.activeSelectionBackground":"#afb8c133","list.activeSelectionForeground":"#1f2328","list.focusBackground":"#ddf4ff","list.focusForeground":"#1f2328","list.highlightForeground":"#0969da","list.hoverBackground":"#eaeef280","list.hoverForeground":"#1f2328","list.inactiveFocusBackground":"#ddf4ff","list.inactiveSelectionBackground":"#afb8c133","list.inactiveSelectionForeground":"#1f2328","minimapSlider.activeBackground":"#8c959f47","minimapSlider.background":"#8c959f33","minimapSlider.hoverBackground":"#8c959f3d","notificationCenterHeader.background":"#f6f8fa","notificationCenterHeader.foreground":"#656d76","notifications.background":"#ffffff","notifications.border":"#d0d7de","notifications.foreground":"#1f2328","notificationsErrorIcon.foreground":"#cf222e","notificationsInfoIcon.foreground":"#0969da","notificationsWarningIcon.foreground":"#9a6700","panel.background":"#f6f8fa","panel.border":"#d0d7de","panelInput.border":"#d0d7de","panelTitle.activeBorder":"#fd8c73","panelTitle.activeForeground":"#1f2328","panelTitle.inactiveForeground":"#656d76","pickerGroup.border":"#d0d7de","pickerGroup.foreground":"#656d76","progressBar.background":"#0969da","quickInput.background":"#ffffff","quickInput.foreground":"#1f2328","scrollbar.shadow":"#6e778133","scrollbarSlider.activeBackground":"#8c959f47","scrollbarSlider.background":"#8c959f33","scrollbarSlider.hoverBackground":"#8c959f3d","settings.headerForeground":"#1f2328","settings.modifiedItemIndicator":"#d4a72c66","sideBar.background":"#f6f8fa","sideBar.border":"#d0d7de","sideBar.foreground":"#1f2328","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#d0d7de","sideBarSectionHeader.foreground":"#1f2328","sideBarTitle.foreground":"#1f2328","statusBar.background":"#ffffff","statusBar.border":"#d0d7de","statusBar.debuggingBackground":"#cf222e","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#0969da80","statusBar.foreground":"#656d76","statusBar.noFolderBackground":"#ffffff","statusBarItem.activeBackground":"#1f23281f","statusBarItem.focusBorder":"#0969da","statusBarItem.hoverBackground":"#1f232814","statusBarItem.prominentBackground":"#afb8c133","statusBarItem.remoteBackground":"#eaeef2","statusBarItem.remoteForeground":"#1f2328","symbolIcon.arrayForeground":"#953800","symbolIcon.booleanForeground":"#0550ae","symbolIcon.classForeground":"#953800","symbolIcon.colorForeground":"#0a3069","symbolIcon.constantForeground":"#116329","symbolIcon.constructorForeground":"#3e1f79","symbolIcon.enumeratorForeground":"#953800","symbolIcon.enumeratorMemberForeground":"#0550ae","symbolIcon.eventForeground":"#57606a","symbolIcon.fieldForeground":"#953800","symbolIcon.fileForeground":"#7d4e00","symbolIcon.folderForeground":"#7d4e00","symbolIcon.functionForeground":"#6639ba","symbolIcon.interfaceForeground":"#953800","symbolIcon.keyForeground":"#0550ae","symbolIcon.keywordForeground":"#a40e26","symbolIcon.methodForeground":"#6639ba","symbolIcon.moduleForeground":"#a40e26","symbolIcon.namespaceForeground":"#a40e26","symbolIcon.nullForeground":"#0550ae","symbolIcon.numberForeground":"#116329","symbolIcon.objectForeground":"#953800","symbolIcon.operatorForeground":"#0a3069","symbolIcon.packageForeground":"#953800","symbolIcon.propertyForeground":"#953800","symbolIcon.referenceForeground":"#0550ae","symbolIcon.snippetForeground":"#0550ae","symbolIcon.stringForeground":"#0a3069","symbolIcon.structForeground":"#953800","symbolIcon.textForeground":"#0a3069","symbolIcon.typeParameterForeground":"#0a3069","symbolIcon.unitForeground":"#0550ae","symbolIcon.variableForeground":"#953800","tab.activeBackground":"#ffffff","tab.activeBorder":"#ffffff","tab.activeBorderTop":"#fd8c73","tab.activeForeground":"#1f2328","tab.border":"#d0d7de","tab.hoverBackground":"#ffffff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#656d76","tab.unfocusedActiveBorder":"#ffffff","tab.unfocusedActiveBorderTop":"#d0d7de","tab.unfocusedHoverBackground":"#eaeef280","terminal.ansiBlack":"#24292f","terminal.ansiBlue":"#0969da","terminal.ansiBrightBlack":"#57606a","terminal.ansiBrightBlue":"#218bff","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#1a7f37","terminal.ansiBrightMagenta":"#a475f9","terminal.ansiBrightRed":"#a40e26","terminal.ansiBrightWhite":"#8c959f","terminal.ansiBrightYellow":"#633c01","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#116329","terminal.ansiMagenta":"#8250df","terminal.ansiRed":"#cf222e","terminal.ansiWhite":"#6e7781","terminal.ansiYellow":"#4d2d00","terminal.foreground":"#1f2328","textBlockQuote.background":"#f6f8fa","textBlockQuote.border":"#d0d7de","textCodeBlock.background":"#afb8c133","textLink.activeForeground":"#0969da","textLink.foreground":"#0969da","textPreformat.background":"#afb8c133","textPreformat.foreground":"#656d76","textSeparator.foreground":"#d8dee4","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#656d76","titleBar.border":"#d0d7de","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#656d76","tree.indentGuidesStroke":"#d8dee4","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#f3f4f6"},"displayName":"GitHub Light Default","name":"github-light-default","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6e7781"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#cf222e"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#0550ae"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#953800"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#1f2328"}},{"scope":"entity.name.function","settings":{"foreground":"#8250df"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#116329"}},{"scope":"keyword","settings":{"foreground":"#cf222e"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#cf222e"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#1f2328"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#0a3069"}},{"scope":"support","settings":{"foreground":"#0550ae"}},{"scope":"meta.property-name","settings":{"foreground":"#0550ae"}},{"scope":"variable","settings":{"foreground":"#953800"}},{"scope":"variable.other","settings":{"foreground":"#1f2328"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"carriage-return","settings":{"background":"#cf222e","content":"^M","fontStyle":"italic underline","foreground":"#f6f8fa"}},{"scope":"message.error","settings":{"foreground":"#82071e"}},{"scope":"string variable","settings":{"foreground":"#0550ae"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#0a3069"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#0a3069"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#116329"}},{"scope":"support.constant","settings":{"foreground":"#0550ae"}},{"scope":"support.variable","settings":{"foreground":"#0550ae"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#116329"}},{"scope":"meta.module-reference","settings":{"foreground":"#0550ae"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#953800"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"markup.quote","settings":{"foreground":"#116329"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#1f2328"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#1f2328"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#0550ae"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffebe9","foreground":"#82071e"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#cf222e"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#dafbe1","foreground":"#116329"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffd8b5","foreground":"#953800"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#0550ae","foreground":"#eaeef2"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#8250df"}},{"scope":"meta.diff.header","settings":{"foreground":"#0550ae"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"meta.output","settings":{"foreground":"#0550ae"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#57606a"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#82071e"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#0a3069"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/github-light-high-contrast-BOva7Avv.js b/docs/assets/github-light-high-contrast-BOva7Avv.js new file mode 100644 index 0000000..b172862 --- /dev/null +++ b/docs/assets/github-light-high-contrast-BOva7Avv.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#ef5b48","activityBar.background":"#ffffff","activityBar.border":"#20252c","activityBar.foreground":"#0e1116","activityBar.inactiveForeground":"#0e1116","activityBarBadge.background":"#0349b4","activityBarBadge.foreground":"#ffffff","badge.background":"#0349b4","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#0e1116","breadcrumb.focusForeground":"#0e1116","breadcrumb.foreground":"#0e1116","breadcrumbPicker.background":"#ffffff","button.background":"#055d20","button.foreground":"#ffffff","button.hoverBackground":"#024c1a","button.secondaryBackground":"#acb6c0","button.secondaryForeground":"#0e1116","button.secondaryHoverBackground":"#ced5dc","checkbox.background":"#e7ecf0","checkbox.border":"#20252c","debugConsole.errorForeground":"#a0111f","debugConsole.infoForeground":"#4b535d","debugConsole.sourceForeground":"#744500","debugConsole.warningForeground":"#603700","debugConsoleInputIcon.foreground":"#512598","debugIcon.breakpointForeground":"#a0111f","debugTokenExpression.boolean":"#024c1a","debugTokenExpression.error":"#86061d","debugTokenExpression.name":"#023b95","debugTokenExpression.number":"#024c1a","debugTokenExpression.string":"#032563","debugTokenExpression.value":"#032563","debugToolBar.background":"#ffffff","descriptionForeground":"#0e1116","diffEditor.insertedLineBackground":"#82e5964d","diffEditor.insertedTextBackground":"#43c66380","diffEditor.removedLineBackground":"#ffc1bc4d","diffEditor.removedTextBackground":"#ee5a5d66","dropdown.background":"#ffffff","dropdown.border":"#20252c","dropdown.foreground":"#0e1116","dropdown.listBackground":"#ffffff","editor.background":"#ffffff","editor.findMatchBackground":"#744500","editor.findMatchHighlightBackground":"#f0ce5380","editor.focusedStackFrameHighlightBackground":"#26a148","editor.foldBackground":"#66707b1a","editor.foreground":"#0e1116","editor.inactiveSelectionBackground":"#66707b","editor.lineHighlightBackground":"#e7ecf0","editor.linkedEditingBackground":"#0349b412","editor.selectionBackground":"#0e1116","editor.selectionForeground":"#ffffff","editor.selectionHighlightBackground":"#26a14840","editor.stackFrameHighlightBackground":"#b58407","editor.wordHighlightBackground":"#e7ecf080","editor.wordHighlightBorder":"#acb6c099","editor.wordHighlightStrongBackground":"#acb6c04d","editor.wordHighlightStrongBorder":"#acb6c099","editorBracketHighlight.foreground1":"#0349b4","editorBracketHighlight.foreground2":"#055d20","editorBracketHighlight.foreground3":"#744500","editorBracketHighlight.foreground4":"#a0111f","editorBracketHighlight.foreground5":"#971368","editorBracketHighlight.foreground6":"#622cbc","editorBracketHighlight.unexpectedBracket.foreground":"#0e1116","editorBracketMatch.background":"#26a14840","editorBracketMatch.border":"#26a14899","editorCursor.foreground":"#0349b4","editorGroup.border":"#20252c","editorGroupHeader.tabsBackground":"#ffffff","editorGroupHeader.tabsBorder":"#20252c","editorGutter.addedBackground":"#26a148","editorGutter.deletedBackground":"#ee5a5d","editorGutter.modifiedBackground":"#b58407","editorIndentGuide.activeBackground":"#0e11163d","editorIndentGuide.background":"#0e11161f","editorInlayHint.background":"#acb6c033","editorInlayHint.foreground":"#0e1116","editorInlayHint.paramBackground":"#acb6c033","editorInlayHint.paramForeground":"#0e1116","editorInlayHint.typeBackground":"#acb6c033","editorInlayHint.typeForeground":"#0e1116","editorLineNumber.activeForeground":"#0e1116","editorLineNumber.foreground":"#88929d","editorOverviewRuler.border":"#ffffff","editorWhitespace.foreground":"#acb6c0","editorWidget.background":"#ffffff","errorForeground":"#a0111f","focusBorder":"#0349b4","foreground":"#0e1116","gitDecoration.addedResourceForeground":"#055d20","gitDecoration.conflictingResourceForeground":"#873800","gitDecoration.deletedResourceForeground":"#a0111f","gitDecoration.ignoredResourceForeground":"#66707b","gitDecoration.modifiedResourceForeground":"#744500","gitDecoration.submoduleResourceForeground":"#0e1116","gitDecoration.untrackedResourceForeground":"#055d20","icon.foreground":"#0e1116","input.background":"#ffffff","input.border":"#20252c","input.foreground":"#0e1116","input.placeholderForeground":"#66707b","keybindingLabel.foreground":"#0e1116","list.activeSelectionBackground":"#acb6c033","list.activeSelectionForeground":"#0e1116","list.focusBackground":"#dff7ff","list.focusForeground":"#0e1116","list.highlightForeground":"#0349b4","list.hoverBackground":"#e7ecf0","list.hoverForeground":"#0e1116","list.inactiveFocusBackground":"#dff7ff","list.inactiveSelectionBackground":"#acb6c033","list.inactiveSelectionForeground":"#0e1116","minimapSlider.activeBackground":"#88929d47","minimapSlider.background":"#88929d33","minimapSlider.hoverBackground":"#88929d3d","notificationCenterHeader.background":"#e7ecf0","notificationCenterHeader.foreground":"#0e1116","notifications.background":"#ffffff","notifications.border":"#20252c","notifications.foreground":"#0e1116","notificationsErrorIcon.foreground":"#a0111f","notificationsInfoIcon.foreground":"#0349b4","notificationsWarningIcon.foreground":"#744500","panel.background":"#ffffff","panel.border":"#20252c","panelInput.border":"#20252c","panelTitle.activeBorder":"#ef5b48","panelTitle.activeForeground":"#0e1116","panelTitle.inactiveForeground":"#0e1116","pickerGroup.border":"#20252c","pickerGroup.foreground":"#0e1116","progressBar.background":"#0349b4","quickInput.background":"#ffffff","quickInput.foreground":"#0e1116","scrollbar.shadow":"#66707b33","scrollbarSlider.activeBackground":"#88929d47","scrollbarSlider.background":"#88929d33","scrollbarSlider.hoverBackground":"#88929d3d","settings.headerForeground":"#0e1116","settings.modifiedItemIndicator":"#b58407","sideBar.background":"#ffffff","sideBar.border":"#20252c","sideBar.foreground":"#0e1116","sideBarSectionHeader.background":"#ffffff","sideBarSectionHeader.border":"#20252c","sideBarSectionHeader.foreground":"#0e1116","sideBarTitle.foreground":"#0e1116","statusBar.background":"#ffffff","statusBar.border":"#20252c","statusBar.debuggingBackground":"#a0111f","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#0349b480","statusBar.foreground":"#0e1116","statusBar.noFolderBackground":"#ffffff","statusBarItem.activeBackground":"#0e11161f","statusBarItem.focusBorder":"#0349b4","statusBarItem.hoverBackground":"#0e111614","statusBarItem.prominentBackground":"#acb6c033","statusBarItem.remoteBackground":"#e7ecf0","statusBarItem.remoteForeground":"#0e1116","symbolIcon.arrayForeground":"#702c00","symbolIcon.booleanForeground":"#023b95","symbolIcon.classForeground":"#702c00","symbolIcon.colorForeground":"#032563","symbolIcon.constantForeground":"#024c1a","symbolIcon.constructorForeground":"#341763","symbolIcon.enumeratorForeground":"#702c00","symbolIcon.enumeratorMemberForeground":"#023b95","symbolIcon.eventForeground":"#4b535d","symbolIcon.fieldForeground":"#702c00","symbolIcon.fileForeground":"#603700","symbolIcon.folderForeground":"#603700","symbolIcon.functionForeground":"#512598","symbolIcon.interfaceForeground":"#702c00","symbolIcon.keyForeground":"#023b95","symbolIcon.keywordForeground":"#86061d","symbolIcon.methodForeground":"#512598","symbolIcon.moduleForeground":"#86061d","symbolIcon.namespaceForeground":"#86061d","symbolIcon.nullForeground":"#023b95","symbolIcon.numberForeground":"#024c1a","symbolIcon.objectForeground":"#702c00","symbolIcon.operatorForeground":"#032563","symbolIcon.packageForeground":"#702c00","symbolIcon.propertyForeground":"#702c00","symbolIcon.referenceForeground":"#023b95","symbolIcon.snippetForeground":"#023b95","symbolIcon.stringForeground":"#032563","symbolIcon.structForeground":"#702c00","symbolIcon.textForeground":"#032563","symbolIcon.typeParameterForeground":"#032563","symbolIcon.unitForeground":"#023b95","symbolIcon.variableForeground":"#702c00","tab.activeBackground":"#ffffff","tab.activeBorder":"#ffffff","tab.activeBorderTop":"#ef5b48","tab.activeForeground":"#0e1116","tab.border":"#20252c","tab.hoverBackground":"#ffffff","tab.inactiveBackground":"#ffffff","tab.inactiveForeground":"#0e1116","tab.unfocusedActiveBorder":"#ffffff","tab.unfocusedActiveBorderTop":"#20252c","tab.unfocusedHoverBackground":"#e7ecf0","terminal.ansiBlack":"#0e1116","terminal.ansiBlue":"#0349b4","terminal.ansiBrightBlack":"#4b535d","terminal.ansiBrightBlue":"#1168e3","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#055d20","terminal.ansiBrightMagenta":"#844ae7","terminal.ansiBrightRed":"#86061d","terminal.ansiBrightWhite":"#88929d","terminal.ansiBrightYellow":"#4e2c00","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#024c1a","terminal.ansiMagenta":"#622cbc","terminal.ansiRed":"#a0111f","terminal.ansiWhite":"#66707b","terminal.ansiYellow":"#3f2200","terminal.foreground":"#0e1116","textBlockQuote.background":"#ffffff","textBlockQuote.border":"#20252c","textCodeBlock.background":"#acb6c033","textLink.activeForeground":"#0349b4","textLink.foreground":"#0349b4","textPreformat.background":"#acb6c033","textPreformat.foreground":"#0e1116","textSeparator.foreground":"#88929d","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#0e1116","titleBar.border":"#20252c","titleBar.inactiveBackground":"#ffffff","titleBar.inactiveForeground":"#0e1116","tree.indentGuidesStroke":"#88929d","welcomePage.buttonBackground":"#e7ecf0","welcomePage.buttonHoverBackground":"#ced5dc"},"displayName":"GitHub Light High Contrast","name":"github-light-high-contrast","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#66707b"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#a0111f"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#023b95"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#702c00"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#0e1116"}},{"scope":"entity.name.function","settings":{"foreground":"#622cbc"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#024c1a"}},{"scope":"keyword","settings":{"foreground":"#a0111f"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#a0111f"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#0e1116"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#032563"}},{"scope":"support","settings":{"foreground":"#023b95"}},{"scope":"meta.property-name","settings":{"foreground":"#023b95"}},{"scope":"variable","settings":{"foreground":"#702c00"}},{"scope":"variable.other","settings":{"foreground":"#0e1116"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#6e011a"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#6e011a"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#6e011a"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#6e011a"}},{"scope":"carriage-return","settings":{"background":"#a0111f","content":"^M","fontStyle":"italic underline","foreground":"#ffffff"}},{"scope":"message.error","settings":{"foreground":"#6e011a"}},{"scope":"string variable","settings":{"foreground":"#023b95"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032563"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032563"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#024c1a"}},{"scope":"support.constant","settings":{"foreground":"#023b95"}},{"scope":"support.variable","settings":{"foreground":"#023b95"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#024c1a"}},{"scope":"meta.module-reference","settings":{"foreground":"#023b95"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#702c00"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#023b95"}},{"scope":"markup.quote","settings":{"foreground":"#024c1a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#0e1116"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#0e1116"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#023b95"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#fff0ee","foreground":"#6e011a"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#a0111f"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#d2fedb","foreground":"#024c1a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffc67b","foreground":"#702c00"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#023b95","foreground":"#e7ecf0"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#622cbc"}},{"scope":"meta.diff.header","settings":{"foreground":"#023b95"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#023b95"}},{"scope":"meta.output","settings":{"foreground":"#023b95"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#4b535d"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#6e011a"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#032563"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/gleam-DbedYGMt.js b/docs/assets/gleam-DbedYGMt.js new file mode 100644 index 0000000..01e68a3 --- /dev/null +++ b/docs/assets/gleam-DbedYGMt.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Gleam","fileTypes":["gleam"],"name":"gleam","patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#strings"},{"include":"#constant"},{"include":"#entity"},{"include":"#discards"}],"repository":{"binary_number":{"match":"\\\\b0[Bb][01_]*\\\\b","name":"constant.numeric.binary.gleam","patterns":[]},"comments":{"patterns":[{"match":"//.*","name":"comment.line.gleam"}]},"constant":{"patterns":[{"include":"#binary_number"},{"include":"#octal_number"},{"include":"#hexadecimal_number"},{"include":"#decimal_number"},{"match":"\\\\p{upper}\\\\p{alnum}*","name":"entity.name.type.gleam"}]},"decimal_number":{"match":"\\\\b([0-9][0-9_]*)(\\\\.([0-9_]*)?(e-?[0-9]+)?)?\\\\b","name":"constant.numeric.decimal.gleam","patterns":[]},"discards":{"match":"\\\\b_\\\\p{word}+{0,1}\\\\b","name":"comment.unused.gleam"},"entity":{"patterns":[{"begin":"\\\\b(\\\\p{lower}\\\\p{word}*)\\\\b\\\\s*\\\\(","captures":{"1":{"name":"entity.name.function.gleam"}},"end":"\\\\)","patterns":[{"include":"$self"}]},{"match":"\\\\b(\\\\p{lower}\\\\p{word}*):\\\\s","name":"variable.parameter.gleam"},{"match":"\\\\b(\\\\p{lower}\\\\p{word}*):","name":"entity.name.namespace.gleam"}]},"hexadecimal_number":{"match":"\\\\b0[Xx][_\\\\h]+\\\\b","name":"constant.numeric.hexadecimal.gleam","patterns":[]},"keywords":{"patterns":[{"match":"\\\\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic|else|echo)\\\\b","name":"keyword.control.gleam"},{"match":"(<-|->)","name":"keyword.operator.arrow.gleam"},{"match":"\\\\|>","name":"keyword.operator.pipe.gleam"},{"match":"\\\\.\\\\.","name":"keyword.operator.splat.gleam"},{"match":"([!=]=)","name":"keyword.operator.comparison.gleam"},{"match":"([<>]=?\\\\.)","name":"keyword.operator.comparison.float.gleam"},{"match":"(<=|>=|[<>])","name":"keyword.operator.comparison.int.gleam"},{"match":"(&&|\\\\|\\\\|)","name":"keyword.operator.logical.gleam"},{"match":"<>","name":"keyword.operator.string.gleam"},{"match":"\\\\|","name":"keyword.operator.other.gleam"},{"match":"([-*+/]\\\\.)","name":"keyword.operator.arithmetic.float.gleam"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.int.gleam"},{"match":"=","name":"keyword.operator.assignment.gleam"}]},"octal_number":{"match":"\\\\b0[Oo][0-7_]*\\\\b","name":"constant.numeric.octal.gleam","patterns":[]},"strings":{"begin":"\\"","end":"\\"","name":"string.quoted.double.gleam","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.gleam"}]}},"scopeName":"source.gleam"}'))];export{e as default}; diff --git a/docs/assets/glide-data-editor-BrZJn3-g.css b/docs/assets/glide-data-editor-BrZJn3-g.css new file mode 100644 index 0000000..363be35 --- /dev/null +++ b/docs/assets/glide-data-editor-BrZJn3-g.css @@ -0,0 +1 @@ +.gdg-r17m35ur{background-color:var(--gdg-bg-header-has-focus);box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);font:var(--gdg-header-font-style)var(--gdg-font-family);min-height:var(--r17m35ur-0);border:none;border-radius:9px;outline:none;flex-grow:1;padding:0 8px}.gdg-c1tqibwd{background-color:var(--gdg-bg-header);align-items:center;padding:0 8px}.gdg-c1tqibwd,.gdg-d19meir1{display:flex}.gdg-d19meir1{box-sizing:border-box;--overlay-top:var(--d19meir1-0);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);left:var(--d19meir1-1);max-height:calc(100vh - var(--d19meir1-4));max-width:400px;min-height:var(--d19meir1-3);min-width:var(--d19meir1-2);text-align:start;top:var(--d19meir1-0);flex-direction:column;width:max-content;position:absolute;overflow:hidden}@keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0}to{opacity:1}}.gdg-d19meir1.gdg-style{background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;border-radius:2px;animation:60ms glide_fade_in-gdg-d19meir1}.gdg-d19meir1.gdg-pad{padding:var(--d19meir1-5)8.5px 3px}.gdg-d19meir1 .gdg-clip-region{border-radius:2px;flex-direction:column;flex-grow:1;display:flex;overflow:hidden auto}.gdg-d19meir1 .gdg-clip-region .gdg-growing-entry{height:100%}.gdg-d19meir1 .gdg-clip-region input.gdg-input{border:0;outline:none;width:100%}.gdg-d19meir1 .gdg-clip-region textarea.gdg-input{border:0;outline:none}.gdg-b1ygi5by{flex-wrap:wrap;margin-top:auto;margin-bottom:auto}.gdg-b1ygi5by,.gdg-b1ygi5by .boe-bubble{display:flex}.gdg-b1ygi5by .boe-bubble{background-color:var(--gdg-bg-bubble);border-radius:var(--gdg-rounding-radius,10px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:20px;margin:2px;padding:0 8px}.gdg-b1ygi5by textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-u1rrojo{align-items:center;min-height:21px;display:flex}.gdg-u1rrojo,.gdg-u1rrojo .gdg-link-area{flex-grow:1}.gdg-u1rrojo .gdg-link-area{color:var(--gdg-link-color);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;margin-right:8px;overflow:hidden;-webkit-text-decoration:underline!important;text-decoration:underline!important}.gdg-u1rrojo .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;width:32px;display:flex}.gdg-u1rrojo .gdg-edit-icon>*{width:24px;height:24px}.gdg-u1rrojo textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-n15fjm3e{color:var(--gdg-text-dark);margin:6px 0 3px;display:flex}.gdg-n15fjm3e>input{background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);padding:0}.gdg-i2iowwq,.gdg-i2iowwq .gdg-centering-container{height:100%;display:flex}.gdg-i2iowwq .gdg-centering-container{justify-content:center;align-items:center}.gdg-i2iowwq .gdg-centering-container canvas,.gdg-i2iowwq .gdg-centering-container img{max-height:calc(100vh - var(--overlay-top) - 20px);object-fit:contain;user-select:none}.gdg-i2iowwq .gdg-centering-container canvas{max-width:380px}.gdg-i2iowwq .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;justify-content:center;align-items:center;width:48px;height:48px;display:flex;position:absolute;top:12px;right:0}.gdg-i2iowwq .gdg-edit-icon>*{width:24px;height:24px}.gdg-i2iowwq textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-m1pnx84e{min-width:var(--m1pnx84e-0);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;width:100%;color:var(--gdg-text-dark);justify-content:space-between;align-items:flex-start;display:flex;position:relative}.gdg-m1pnx84e .gdg-g1y0xocz{flex-shrink:1;min-width:0}.gdg-m1pnx84e .gdg-spacer{flex:1}.gdg-m1pnx84e .gdg-edit-icon{cursor:pointer;color:var(--gdg-accent-color);width:24px;height:24px;-webkit-transition:all "0.125s ease";transition:all "0.125s ease";border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex;position:relative}.gdg-m1pnx84e .gdg-edit-icon>*{width:16px;height:16px}.gdg-m1pnx84e .gdg-edit-hover:hover{background-color:var(--gdg-accent-light);transition:background-color .15s}.gdg-m1pnx84e .gdg-checkmark-hover:hover{background-color:var(--gdg-accent-color);color:#fff}.gdg-m1pnx84e .gdg-md-edit-textarea{opacity:0;width:0;height:0;margin-top:25px;padding:0;position:relative;top:0;left:0}.gdg-m1pnx84e .gdg-ml-6{margin-left:6px}.gdg-d4zsq0x{flex-wrap:wrap}.gdg-d4zsq0x,.gdg-d4zsq0x .doe-bubble{display:flex}.gdg-d4zsq0x .doe-bubble{background-color:var(--gdg-bg-cell);border-radius:var(--gdg-rounding-radius,6px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:24px;margin:2px;padding:0 8px;box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.gdg-d4zsq0x .doe-bubble img{object-fit:contain;height:16px;margin-right:4px}.gdg-d4zsq0x textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-s1dgczr6 .dvn-scroller{overflow:var(--s1dgczr6-0);transform:translateZ(0)}.gdg-s1dgczr6 .dvn-hidden{visibility:hidden}.gdg-s1dgczr6 .dvn-scroll-inner{pointer-events:none;display:flex}.gdg-s1dgczr6 .dvn-scroll-inner>*{flex-shrink:0}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-spacer{flex-grow:1}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-stack{flex-direction:column;display:flex}.gdg-s1dgczr6 .dvn-underlay>*{position:absolute;top:0;left:0}.gdg-s1dgczr6 canvas{outline:none}.gdg-s1dgczr6 canvas *{height:0}.gdg-izpuzkl{font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);resize:none;white-space:pre-wrap;-webkit-text-fill-color:var(--gdg-text-dark);width:100%;min-width:100%;height:100%;color:var(--gdg-text-dark);background-color:#0000;border:0;border-radius:0;margin:0;padding:0;line-height:16px;position:absolute;inset:0;overflow:hidden}.gdg-izpuzkl::-webkit-input-placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl:-ms-placeholder-shown{color:var(--gdg-text-light)}.gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.gdg-invalid .gdg-izpuzkl{text-decoration:underline #d60606}.gdg-s69h75o{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);width:max-content;min-width:100%;max-width:100%;margin:0;padding:0 0 2px;line-height:16px}.gdg-g1y0xocz{margin-top:6px;position:relative}.gdg-wmyidgi{height:var(--wmyidgi-1);min-width:10px;max-width:100%;min-height:10px;max-height:100%;width:var(--wmyidgi-0);direction:ltr;position:relative;overflow:clip}.gdg-wmyidgi>:first-child{width:100%;height:100%;position:absolute;top:0;left:0}.gdg-seveqep{background-color:var(--gdg-bg-cell);border:1px solid var(--gdg-border-color);color:var(--gdg-text-dark);font-size:var(--gdg-editor-font-size);border-radius:6px;padding:8px;animation:.15s forwards gdg-search-fadein-gdg-seveqep;position:absolute;top:4px;right:20px}.gdg-seveqep.out{animation:.15s forwards gdg-search-fadeout-gdg-seveqep}.gdg-seveqep .gdg-search-bar-inner{display:flex}.gdg-seveqep .gdg-search-status{padding-top:4px;font-size:11px}.gdg-seveqep .gdg-search-progress{background-color:var(--gdg-text-light);height:4px;position:absolute;bottom:0;left:0}.gdg-seveqep input{background-color:var(--gdg-bg-cell);color:var(--gdg-textDark);border:0;outline:none;width:220px}.gdg-seveqep button{width:24px;height:24px;color:var(--gdg-text-medium);cursor:pointer;background:0 0;border:none;outline:none;justify-content:center;align-items:center;padding:0;display:flex}.gdg-seveqep button:hover{color:var(--gdg-text-dark)}.gdg-seveqep button .button-icon{width:16px;height:16px}.gdg-seveqep button:disabled{opacity:.4;pointer-events:none}@keyframes gdg-search-fadeout-gdg-seveqep{0%{transform:translate(0)}to{transform:translate(400px)}}@keyframes gdg-search-fadein-gdg-seveqep{0%{transform:translate(400px)}to{transform:translate(0)}}.gdg-mnuv029{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.gdg-mnuv029>*{margin:0}.gdg-mnuv029 :last-child{margin-bottom:0}.gdg-mnuv029 p img{width:100%} diff --git a/docs/assets/glide-data-editor-CFXeoAXC.js b/docs/assets/glide-data-editor-CFXeoAXC.js new file mode 100644 index 0000000..9b2fcec --- /dev/null +++ b/docs/assets/glide-data-editor-CFXeoAXC.js @@ -0,0 +1,132 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./data-grid-overlay-editor-Cm2nyRoH.js","./click-outside-container-D4TDQXpY.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./dist-B-NVryHt.js","./emotion-is-prop-valid.esm-lG8j6oqk.js","./react-dom-C9fstfnp.js","./number-overlay-editor-CKxhKINF.js"])))=>i.map(i=>d[i]); +var C0=Object.defineProperty;var S0=(Kr,Cr,Yr)=>Cr in Kr?C0(Kr,Cr,{enumerable:!0,configurable:!0,writable:!0,value:Yr}):Kr[Cr]=Yr;var tt=(Kr,Cr,Yr)=>S0(Kr,typeof Cr!="symbol"?Cr+"":Cr,Yr);import{s as Gt,t as U}from"./chunk-LvLJmgfZ.js";import{n as k0}from"./useEvent-DlWF5OMa.js";import{t as An}from"./react-BGmjiNul.js";import"./react-dom-C9fstfnp.js";import{t as M0}from"./compiler-runtime-DeeZ7FnK.js";import{i as Va,t as R0}from"./useLifecycle-CmDXEyIC.js";import{t as E0}from"./capitalize-DQeWKRGx.js";import{d as Wi}from"./hotkeys-uKX61F1_.js";import{t as I0}from"./ErrorBoundary-C7JBxSzd.js";import{t as T0}from"./jsx-runtime-DN_bIXfG.js";import{r as Bi,t as $i}from"./button-B8cGZzP5.js";import{n as O0,t as P0}from"./useNonce-EAuSVK-5.js";import{c as H0,i as D0,n as z0,s as A0,t as L0}from"./select-D9lTzMzP.js";import{a as Ka,c as Ya,d as Ga,f as Ua,r as j0,s as Xa,t as F0,u as qa}from"./dropdown-menu-BP4_BZLr.js";import{t as _0}from"./copy-gBVL4NN-.js";import{n as N0,t as Xo}from"./types-B42u_5hF.js";import{t as W0}from"./plus-CHesBJpY.js";import{r as Za}from"./input-Bkl2Yfmh.js";import{t as B0}from"./trash-BUTJdkWl.js";import{t as Ja}from"./preload-helper-BW0IMuFq.js";import{t as $0}from"./use-toast-Bzf3rpev.js";import{r as V0}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{t as K0}from"./copy-DRhpWiOq.js";import{t as Y0}from"./prop-types-C638SUfx.js";import{t as Vi}from"./label-CqyOmxjL.js";import{A as Qa,B as es,C as G0,D as ts,E as rs,F as U0,G as Zt,H as fn,I as ho,J as X0,K as qo,L as ns,M as os,N as fo,O as q0,P as Z0,R as J0,S as is,T as ls,U as Q0,V as as,W as Ln,_ as go,a as Pr,b as po,c as gn,d as nt,f as pe,g as Ki,h as $r,i as ef,j as Yi,k as ss,m as cs,n as tf,o as fr,p as Vr,q as Zo,r as us,s as ds,t as rf,v as jn,w as Gi,x as Jo,y as nf,z as hs}from"./click-outside-container-D4TDQXpY.js";import{t as Jt}from"./dist-B-NVryHt.js";let Ui,fs,of=(async()=>{const Kr=Jt("div")({name:"ImageOverlayEditorStyle",class:"gdg-i2iowwq",propsAsIs:!1});var Cr=U((e=>{(function(t,r){if(typeof define=="function"&&define.amd)define(["exports","react","prop-types"],r);else if(e!==void 0)r(e,An(),Y0());else{var n={exports:{}};r(n.exports,t.react,t.propTypes),t.reactSwipe=n.exports}})(e,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=h;var o=l(r),i=l(n);function l(y){return y&&y.__esModule?y:{default:y}}var a=Object.assign||function(y){for(var k=1;k=0||Object.prototype.hasOwnProperty.call(y,P)&&(I[P]=y[P]);return I}function c(y,k){if(!(y instanceof k))throw TypeError("Cannot call a class as a function")}var u=(function(){function y(k,I){for(var P=0;P0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return m?y:y.capture}function S(y){if("touches"in y){var k=y.touches[0];return{x:k.pageX,y:k.pageY}}return{x:y.screenX,y:y.screenY}}var M=(function(y){p(k,y);function k(){var I;c(this,k);var P=[...arguments],E=f(this,(I=k.__proto__||Object.getPrototypeOf(k)).call.apply(I,[this].concat(P)));return E._handleSwipeStart=E._handleSwipeStart.bind(E),E._handleSwipeMove=E._handleSwipeMove.bind(E),E._handleSwipeEnd=E._handleSwipeEnd.bind(E),E._onMouseDown=E._onMouseDown.bind(E),E._onMouseMove=E._onMouseMove.bind(E),E._onMouseUp=E._onMouseUp.bind(E),E._setSwiperRef=E._setSwiperRef.bind(E),E}return u(k,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(I){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(I))}},{key:"_onMouseMove",value:function(I){this.mouseDown&&this._handleSwipeMove(I)}},{key:"_onMouseUp",value:function(I){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(I)}},{key:"_handleSwipeStart",value:function(I){var P=S(I);this.moveStart={x:P.x,y:P.y},this.props.onSwipeStart(I)}},{key:"_handleSwipeMove",value:function(I){if(this.moveStart){var P=S(I),E=P.x,O=P.y,F=E-this.moveStart.x,C=O-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:F,y:C},I)&&I.cancelable&&I.preventDefault(),this.movePosition={deltaX:F,deltaY:C}}}},{key:"_handleSwipeEnd",value:function(I){this.props.onSwipeEnd(I);var P=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-P?this.props.onSwipeLeft(1,I):this.movePosition.deltaX>P&&this.props.onSwipeRight(1,I),this.movePosition.deltaY<-P?this.props.onSwipeUp(1,I):this.movePosition.deltaY>P&&this.props.onSwipeDown(1,I)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(I){this.swiper=I,this.props.innerRef(I)}},{key:"render",value:function(){var I=this.props;I.tagName;var P=I.className,E=I.style,O=I.children;I.allowMouseEvents,I.onSwipeUp,I.onSwipeDown,I.onSwipeLeft,I.onSwipeRight,I.onSwipeStart,I.onSwipeMove,I.onSwipeEnd,I.innerRef,I.tolerance;var F=s(I,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return o.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:P,style:E},F),O)}}]),k})(r.Component);M.displayName="ReactSwipe",M.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},M.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=M})})),Yr=U((e=>{(function(t,r){if(typeof define=="function"&&define.amd)define(["exports","./react-swipe"],r);else if(e!==void 0)r(e,Cr());else{var n={exports:{}};r(n.exports,t.reactSwipe),t.index=n.exports}})(e,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r);function o(i){return i&&i.__esModule?i:{default:i}}t.default=n.default})})),gs=U(((e,t)=>{(function(){var r={}.hasOwnProperty;function n(){for(var l="",a=0;a{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(gs());function r(o){return o&&o.__esModule?o:{default:o}}function n(o,i,l){return i in o?Object.defineProperty(o,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[i]=l,o}e.default={ROOT:function(o){return(0,t.default)(n({"carousel-root":!0},o||"",!!o))},CAROUSEL:function(o){return(0,t.default)({carousel:!0,"carousel-slider":o})},WRAPPER:function(o,i){return(0,t.default)({"thumbs-wrapper":!o,"slider-wrapper":o,"axis-horizontal":i==="horizontal","axis-vertical":i!=="horizontal"})},SLIDER:function(o,i){return(0,t.default)({thumbs:!o,slider:o,animated:!i})},ITEM:function(o,i,l){return(0,t.default)({thumb:!o,slide:o,selected:i,previous:l})},ARROW_PREV:function(o){return(0,t.default)({"control-arrow control-prev":!0,"control-disabled":o})},ARROW_NEXT:function(o){return(0,t.default)({"control-arrow control-next":!0,"control-disabled":o})},DOT:function(o){return(0,t.default)({dot:!0,selected:o})}}})),ps=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.outerWidth=void 0,e.outerWidth=function(t){var r=t.offsetWidth,n=getComputedStyle(t);return r+=parseInt(n.marginLeft)+parseInt(n.marginRight),r}})),Qo=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,r,n){var o=t===0?t:t+r;return"translate3d"+("("+(n==="horizontal"?[o,0,0]:[0,o,0]).join(",")+")")}})),qi=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){return window}})),Zi=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=c(An()),r=a(Xi()),n=ps(),o=a(Qo()),i=a(Yr()),l=a(qi());function a(C){return C&&C.__esModule?C:{default:C}}function s(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return s=function(){return C},C}function c(C){if(C&&C.__esModule)return C;if(C===null||u(C)!=="object"&&typeof C!="function")return{default:C};var R=s();if(R&&R.has(C))return R.get(C);var L={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in C)if(Object.prototype.hasOwnProperty.call(C,w)){var T=x?Object.getOwnPropertyDescriptor(C,w):null;T&&(T.get||T.set)?Object.defineProperty(L,w,T):L[w]=C[w]}return L.default=C,R&&R.set(C,L),L}function u(C){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},u(C)}function f(){return f=Object.assign||function(C){for(var R=1;R"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function P(C){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},P(C)}function E(C,R,L){return R in C?Object.defineProperty(C,R,{value:L,enumerable:!0,configurable:!0,writable:!0}):C[R]=L,C}var O=function(C){return C.hasOwnProperty("key")},F=(function(C){v(L,C);var R=M(L);function L(x){var w;return p(this,L),w=R.call(this,x),E(k(w),"itemsWrapperRef",void 0),E(k(w),"itemsListRef",void 0),E(k(w),"thumbsRef",void 0),E(k(w),"setItemsWrapperRef",function(T){w.itemsWrapperRef=T}),E(k(w),"setItemsListRef",function(T){w.itemsListRef=T}),E(k(w),"setThumbsRef",function(T,H){w.thumbsRef||(w.thumbsRef=[]),w.thumbsRef[H]=T}),E(k(w),"updateSizes",function(){if(!(!w.props.children||!w.itemsWrapperRef||!w.thumbsRef)){var T=t.Children.count(w.props.children),H=w.itemsWrapperRef.clientWidth,b=w.props.thumbWidth?w.props.thumbWidth:(0,n.outerWidth)(w.thumbsRef[0]),J=Math.floor(H/b),_=J0&&(H=0),_===Q&&H<0&&(H=0);var ee=_+100/(w.itemsWrapperRef.clientWidth/H);return w.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(K){w.itemsListRef.style[K]=(0,o.default)(ee,"%",w.props.axis)}),!0}),E(k(w),"slideRight",function(T){w.moveTo(w.state.firstItem-(typeof T=="number"?T:1))}),E(k(w),"slideLeft",function(T){w.moveTo(w.state.firstItem+(typeof T=="number"?T:1))}),E(k(w),"moveTo",function(T){T=T<0?0:T,T=T>=w.state.lastPosition?w.state.lastPosition:T,w.setState({firstItem:T})}),w.state={selectedItem:x.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},w}return h(L,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(x){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==x.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,l.default)().addEventListener("resize",this.updateSizes),(0,l.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,l.default)().removeEventListener("resize",this.updateSizes),(0,l.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(x){var w=x;return x>=this.state.lastPosition&&(w=this.state.lastPosition),x1,T=this.state.showArrows&&this.state.firstItem>0,H=this.state.showArrows&&this.state.firstItem{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){return document}})),Ji=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.setPosition=e.getPosition=e.isKeyboardEvent=e.defaultStatusFormatter=e.noop=void 0;var t=An(),r=n(Qo());function n(o){return o&&o.__esModule?o:{default:o}}e.noop=function(){},e.defaultStatusFormatter=function(o,i){return`${o} of ${i}`},e.isKeyboardEvent=function(o){return o?o.hasOwnProperty("key"):!1},e.getPosition=function(o,i){if(i.infiniteLoop&&++o,o===0)return 0;var l=t.Children.count(i.children);if(i.centerMode&&i.axis==="horizontal"){var a=-o*i.centerSlidePercentage,s=l-1;return o&&(o!==s||i.infiniteLoop)?a+=(100-i.centerSlidePercentage)/2:o===s&&(a+=100-i.centerSlidePercentage),a}return-o*100},e.setPosition=function(o,i){var l={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){l[a]=(0,r.default)(o,"%",i)}),l}})),vs=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fadeAnimationHandler=e.slideStopSwipingHandler=e.slideSwipeAnimationHandler=e.slideAnimationHandler=void 0;var t=An(),r=o(Qo()),n=Ji();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,c){var u=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);c&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(s,p).enumerable})),u.push.apply(u,f)}return u}function l(s){for(var c=1;cm))return p<0?s.centerMode&&s.centerSlidePercentage&&s.axis==="horizontal"?u.itemListStyle=(0,n.setPosition)(-(m+2)*s.centerSlidePercentage-(100-s.centerSlidePercentage)/2,s.axis):u.itemListStyle=(0,n.setPosition)(-(m+2)*100,s.axis):p>m&&(u.itemListStyle=(0,n.setPosition)(0,s.axis)),u;var h=(0,n.getPosition)(f,s),v=(0,r.default)(h,"%",s.axis),S=s.transitionTime+"ms";return u.itemListStyle={WebkitTransform:v,msTransform:v,OTransform:v,transform:v},c.swiping||(u.itemListStyle=l(l({},u.itemListStyle),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),u},e.slideSwipeAnimationHandler=function(s,c,u,f){var p={},m=c.axis==="horizontal",h=t.Children.count(c.children),v=0,S=(0,n.getPosition)(u.selectedItem,c),M=c.infiniteLoop?(0,n.getPosition)(h-1,c)-100:(0,n.getPosition)(h-1,c),y=m?s.x:s.y,k=y;S===v&&y>0&&(k=0),S===M&&y<0&&(k=0);var I=S+100/(u.itemSize/k),P=Math.abs(y)>c.swipeScrollTolerance;return c.infiniteLoop&&P&&(u.selectedItem===0&&I>-100?I-=h*100:u.selectedItem===h-1&&I<-h*100&&(I+=h*100)),(!c.preventMovementUntilSwipeScrollTolerance||P||u.swipeMovementStarted)&&(u.swipeMovementStarted||f({swipeMovementStarted:!0}),p.itemListStyle=(0,n.setPosition)(I,c.axis)),P&&!u.cancelClick&&f({cancelClick:!0}),p},e.slideStopSwipingHandler=function(s,c){var u=(0,n.getPosition)(c.selectedItem,s);return{itemListStyle:(0,n.setPosition)(u,s.axis)}},e.fadeAnimationHandler=function(s,c){var u=s.transitionTime+"ms",f="ease-in-out",p={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:f,msTransitionTimingFunction:f,MozTransitionTimingFunction:f,WebkitTransitionTimingFunction:f,OTransitionTimingFunction:f};return c.swiping||(p=l(l({},p),{},{WebkitTransitionDuration:u,MozTransitionDuration:u,OTransitionDuration:u,transitionDuration:u,msTransitionDuration:u})),{slideStyle:p,selectedStyle:l(l({},p),{},{opacity:1,position:"relative"}),prevStyle:l({},p)}}})),ws=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(An()),r=c(Yr()),n=c(Xi()),o=c(Zi()),i=c(ms()),l=c(qi()),a=Ji(),s=vs();function c(x){return x&&x.__esModule?x:{default:x}}function u(){if(typeof WeakMap!="function")return null;var x=new WeakMap;return u=function(){return x},x}function f(x){if(x&&x.__esModule)return x;if(x===null||p(x)!=="object"&&typeof x!="function")return{default:x};var w=u();if(w&&w.has(x))return w.get(x);var T={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in x)if(Object.prototype.hasOwnProperty.call(x,b)){var J=H?Object.getOwnPropertyDescriptor(x,b):null;J&&(J.get||J.set)?Object.defineProperty(T,b,J):T[b]=x[b]}return T.default=x,w&&w.set(x,T),T}function p(x){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},p(x)}function m(){return m=Object.assign||function(x){for(var w=1;w"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function C(x){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},C(x)}function R(x,w,T){return w in x?Object.defineProperty(x,w,{value:T,enumerable:!0,configurable:!0,writable:!0}):x[w]=T,x}var L=(function(x){k(T,x);var w=P(T);function T(H){var b;S(this,T),b=w.call(this,H),R(O(b),"thumbsRef",void 0),R(O(b),"carouselWrapperRef",void 0),R(O(b),"listRef",void 0),R(O(b),"itemsRef",void 0),R(O(b),"timer",void 0),R(O(b),"animationHandler",void 0),R(O(b),"setThumbsRef",function(_){b.thumbsRef=_}),R(O(b),"setCarouselWrapperRef",function(_){b.carouselWrapperRef=_}),R(O(b),"setListRef",function(_){b.listRef=_}),R(O(b),"setItemsRef",function(_,Q){b.itemsRef||(b.itemsRef=[]),b.itemsRef[Q]=_}),R(O(b),"autoPlay",function(){t.Children.count(b.props.children)<=1||(b.clearAutoPlay(),b.props.autoPlay&&(b.timer=setTimeout(function(){b.increment()},b.props.interval)))}),R(O(b),"clearAutoPlay",function(){b.timer&&clearTimeout(b.timer)}),R(O(b),"resetAutoPlay",function(){b.clearAutoPlay(),b.autoPlay()}),R(O(b),"stopOnHover",function(){b.setState({isMouseEntered:!0},b.clearAutoPlay)}),R(O(b),"startOnLeave",function(){b.setState({isMouseEntered:!1},b.autoPlay)}),R(O(b),"isFocusWithinTheCarousel",function(){return b.carouselWrapperRef?!!((0,i.default)().activeElement===b.carouselWrapperRef||b.carouselWrapperRef.contains((0,i.default)().activeElement)):!1}),R(O(b),"navigateWithKeyboard",function(_){if(b.isFocusWithinTheCarousel()){var Q=b.props.axis==="horizontal",ee={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},K=Q?ee.ArrowRight:ee.ArrowDown,se=Q?ee.ArrowLeft:ee.ArrowUp;K===_.keyCode?b.increment():se===_.keyCode&&b.decrement()}}),R(O(b),"updateSizes",function(){if(!(!b.state.initialized||!b.itemsRef||b.itemsRef.length===0)){var _=b.props.axis==="horizontal",Q=b.itemsRef[0];if(Q){var ee=_?Q.clientWidth:Q.clientHeight;b.setState({itemSize:ee}),b.thumbsRef&&b.thumbsRef.updateSizes()}}}),R(O(b),"setMountState",function(){b.setState({hasMount:!0}),b.updateSizes()}),R(O(b),"handleClickItem",function(_,Q){if(t.Children.count(b.props.children)!==0){if(b.state.cancelClick){b.setState({cancelClick:!1});return}b.props.onClickItem(_,Q),_!==b.state.selectedItem&&b.setState({selectedItem:_})}}),R(O(b),"handleOnChange",function(_,Q){t.Children.count(b.props.children)<=1||b.props.onChange(_,Q)}),R(O(b),"handleClickThumb",function(_,Q){b.props.onClickThumb(_,Q),b.moveTo(_)}),R(O(b),"onSwipeStart",function(_){b.setState({swiping:!0}),b.props.onSwipeStart(_)}),R(O(b),"onSwipeEnd",function(_){b.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),b.props.onSwipeEnd(_),b.clearAutoPlay(),b.state.autoPlay&&b.autoPlay()}),R(O(b),"onSwipeMove",function(_,Q){b.props.onSwipeMove(Q);var ee=b.props.swipeAnimationHandler(_,b.props,b.state,b.setState.bind(O(b)));return b.setState(v({},ee)),!!Object.keys(ee).length}),R(O(b),"decrement",function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;b.moveTo(b.state.selectedItem-(typeof _=="number"?_:1))}),R(O(b),"increment",function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;b.moveTo(b.state.selectedItem+(typeof _=="number"?_:1))}),R(O(b),"moveTo",function(_){if(typeof _=="number"){var Q=t.Children.count(b.props.children)-1;_<0&&(_=b.props.infiniteLoop?Q:0),_>Q&&(_=b.props.infiniteLoop?0:Q),b.selectItem({selectedItem:_}),b.state.autoPlay&&b.state.isMouseEntered===!1&&b.resetAutoPlay()}}),R(O(b),"onClickNext",function(){b.increment(1)}),R(O(b),"onClickPrev",function(){b.decrement(1)}),R(O(b),"onSwipeForward",function(){b.increment(1),b.props.emulateTouch&&b.setState({cancelClick:!0})}),R(O(b),"onSwipeBackwards",function(){b.decrement(1),b.props.emulateTouch&&b.setState({cancelClick:!0})}),R(O(b),"changeItem",function(_){return function(Q){(!(0,a.isKeyboardEvent)(Q)||Q.key==="Enter")&&b.moveTo(_)}}),R(O(b),"selectItem",function(_){b.setState(v({previousItem:b.state.selectedItem},_),function(){b.setState(b.animationHandler(b.props,b.state))}),b.handleOnChange(_.selectedItem,t.Children.toArray(b.props.children)[_.selectedItem])}),R(O(b),"getInitialImage",function(){var _=b.props.selectedItem,Q=b.itemsRef&&b.itemsRef[_];return(Q&&Q.getElementsByTagName("img")||[])[0]}),R(O(b),"getVariableItemHeight",function(_){var Q=b.itemsRef&&b.itemsRef[_];if(b.state.hasMount&&Q&&Q.children.length){var ee=Q.children[0].getElementsByTagName("img")||[];if(ee.length>0){var K=ee[0];K.complete||K.addEventListener("load",function oe(){b.forceUpdate(),K.removeEventListener("load",oe)})}var se=(ee[0]||Q.children[0]).clientHeight;return se>0?se:null}return null});var J={initialized:!1,previousItem:H.selectedItem,selectedItem:H.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:H.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return b.animationHandler=typeof H.animationHandler=="function"&&H.animationHandler||H.animationHandler==="fade"&&s.fadeAnimationHandler||s.slideAnimationHandler,b.state=v(v({},J),b.animationHandler(H,J)),b}return y(T,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(H,b){!H.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!H.autoFocus&&this.props.autoFocus&&this.forceFocus(),b.swiping&&!this.state.swiping&&this.setState(v({},this.props.stopSwipingHandler(this.props,this.state))),(H.selectedItem!==this.props.selectedItem||H.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),H.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var H=this;this.bindEvents(),this.state.autoPlay&&t.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var b=H.getInitialImage();b&&!b.complete?b.addEventListener("load",H.setMountState):H.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var H=this.carouselWrapperRef;this.props.stopOnHover&&H&&(H.addEventListener("mouseenter",this.stopOnHover),H.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var H=this.carouselWrapperRef;this.props.stopOnHover&&H&&(H.removeEventListener("mouseenter",this.stopOnHover),H.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,l.default)().addEventListener("resize",this.updateSizes),(0,l.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,i.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,l.default)().removeEventListener("resize",this.updateSizes),(0,l.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var H=this.getInitialImage();H&&H.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,i.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var H;(H=this.carouselWrapperRef)==null||H.focus()}},{key:"renderItems",value:function(H){var b=this;return this.props.children?t.Children.map(this.props.children,function(J,_){var Q=_===b.state.selectedItem,ee=_===b.state.previousItem,K=Q&&b.state.selectedStyle||ee&&b.state.prevStyle||b.state.slideStyle||{};b.props.centerMode&&b.props.axis==="horizontal"&&(K=v(v({},K),{},{minWidth:b.props.centerSlidePercentage+"%"})),b.state.swiping&&b.state.swipeMovementStarted&&(K=v(v({},K),{},{pointerEvents:"none"}));var se={ref:function(oe){return b.setItemsRef(oe,_)},key:"itemKey"+_+(H?"clone":""),className:n.default.ITEM(!0,_===b.state.selectedItem,_===b.state.previousItem),onClick:b.handleClickItem.bind(b,_,J),style:K};return t.default.createElement("li",se,b.props.renderItem(J,{isSelected:_===b.state.selectedItem,isPrevious:_===b.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var H=this,b=this.props,J=b.showIndicators,_=b.labels,Q=b.renderIndicator,ee=b.children;return J?t.default.createElement("ul",{className:"control-dots"},t.Children.map(ee,function(K,se){return Q&&Q(H.changeItem(se),se===H.state.selectedItem,se,_.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?t.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,t.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||t.Children.count(this.props.children)===0?null:t.default.createElement(o.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var H=this;if(!this.props.children||t.Children.count(this.props.children)===0)return null;var b=this.props.swipeable&&t.Children.count(this.props.children)>1,J=this.props.axis==="horizontal",_=this.props.showArrows&&t.Children.count(this.props.children)>1,Q=_&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,ee=_&&(this.state.selectedItem{})),bs=U((e=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return n.default}});var t=o(ws()),r=ys(),n=o(Zi());function o(i){return i&&i.__esModule?i:{default:i}}})),xs=U(((e,t)=>{var r=fn();t.exports=function(){return r.Date.now()}})),Cs=U(((e,t)=>{var r=/\s/;function n(o){for(var i=o.length;i--&&r.test(o.charAt(i)););return i}t.exports=n})),Ss=U(((e,t)=>{var r=Cs(),n=/^\s+/;function o(i){return i&&i.slice(0,r(i)+1).replace(n,"")}t.exports=o})),ei=U(((e,t)=>{var r=Ss(),n=ho(),o=J0(),i=NaN,l=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;function u(f){if(typeof f=="number")return f;if(o(f))return i;if(n(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=n(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=r(f);var m=a.test(f);return m||s.test(f)?c(f.slice(2),m?2:8):l.test(f)?i:+f}t.exports=u})),ti=U(((e,t)=>{var r=ho(),n=xs(),o=ei(),i="Expected a function",l=Math.max,a=Math.min;function s(c,u,f){var p,m,h,v,S,M,y=0,k=!1,I=!1,P=!0;if(typeof c!="function")throw TypeError(i);u=o(u)||0,r(f)&&(k=!!f.leading,I="maxWait"in f,h=I?l(o(f.maxWait)||0,u):h,P="trailing"in f?!!f.trailing:P);function E(H){var b=p,J=m;return p=m=void 0,y=H,v=c.apply(J,b),v}function O(H){return y=H,S=setTimeout(R,u),k?E(H):v}function F(H){var b=H-M,J=H-y,_=u-b;return I?a(_,h-J):_}function C(H){var b=H-M,J=H-y;return M===void 0||b>=u||b<0||I&&J>=h}function R(){var H=n();if(C(H))return L(H);S=setTimeout(R,F(H))}function L(H){return S=void 0,P&&p?E(H):(p=m=void 0,v)}function x(){S!==void 0&&clearTimeout(S),y=0,p=M=m=S=void 0}function w(){return S===void 0?v:L(n())}function T(){var H=n(),b=C(H);if(p=arguments,m=this,M=H,b){if(S===void 0)return O(M);if(I)return clearTimeout(S),S=setTimeout(R,u),E(M)}return S===void 0&&(S=setTimeout(R,u)),v}return T.cancel=x,T.flush=w,T}t.exports=s})),d=Gt(An(),1),ks=Gt(ti(),1);function jt(e,t,r,n,o=!1){let i=d.useRef();i.current=t,d.useEffect(()=>{if(r===null||r.addEventListener===void 0)return;let l=r,a=s=>{var c;(c=i.current)==null||c.call(l,s)};return l.addEventListener(e,a,{passive:n,capture:o}),()=>{l.removeEventListener(e,a,{capture:o})}},[e,r,n,o])}function Gr(e,t){return e===void 0?void 0:t}var Ms=Math.PI;function Qi(e){return e*Ms/180}const el=(e,t,r)=>({x1:e-r/2,y1:t-r/2,x2:e+r/2,y2:t+r/2}),tl=(e,t,r,n,o)=>{switch(e){case"left":return Math.floor(t)+n+o/2;case"center":return Math.floor(t+r/2);case"right":return Math.floor(t+r)-n-o/2}},rl=(e,t,r)=>Math.min(e,t-r*2),nl=(e,t,r)=>r.x1<=e&&e<=r.x2&&r.y1<=t&&t<=r.y2,ri=e=>{let t=e.fgColor??"currentColor";return d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),d.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},Rs=e=>{let t=e.fgColor??"currentColor";return d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};function Es(e,t,r){let[n,o]=d.useState(e),i=d.useRef(!0);d.useEffect(()=>()=>{i.current=!1},[]);let l=d.useRef((0,ks.default)(a=>{i.current&&o(a)},r));return d.useLayoutEffect(()=>{i.current&&l.current(()=>e())},t),n}var Is=RegExp("^[^A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF]*[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]");function ni(e){return Is.test(e)?"rtl":"not-rtl"}var mo=void 0;function oi(){if(typeof document>"u")return 0;if(mo!==void 0)return mo;let e=document.createElement("p");e.style.width="100%",e.style.height="200px";let t=document.createElement("div");t.id="testScrollbar",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.append(e),document.body.append(t);let r=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return r===n&&(n=t.clientWidth),t.remove(),mo=r-n,mo}var Ur=Symbol();function Ts(e){let t=d.useRef([Ur,e]);t.current[1]!==e&&(t.current[0]=e),t.current[1]=e;let[r,n]=d.useState(e),[,o]=d.useState(),i=d.useCallback(a=>{let s=t.current[0];s!==Ur&&(a=typeof a=="function"?a(s):a,a===s)||(s!==Ur&&o({}),n(c=>typeof a=="function"?a(s===Ur?c:s):a),t.current[0]=Ur)},[]),l=d.useCallback(()=>{t.current[0]=Ur,o({})},[]);return[t.current[0]===Ur?r:t.current[0],i,l]}function ol(e){if(e.length===0)return"";let t=0,r=0;for(let n of e){if(r+=n.length,r>1e4)break;t++}return e.slice(0,t).join(", ")}function Os(e){let t=d.useRef(e);return Zo(e,t.current)||(t.current=e),t.current}var Ps=bs();const Hs=e=>{let{urls:t,canWrite:r,onEditClick:n,renderImage:o}=e,i=t.filter(a=>a!=="");if(i.length===0)return null;let l=i.length>1;return d.createElement(Kr,{"data-testid":"GDG-default-image-overlay-editor"},d.createElement(Ps.Carousel,{showArrows:l,showThumbs:!1,swipeable:l,emulateTouch:l,infiniteLoop:l},i.map(a=>{let s=(o==null?void 0:o(a))??d.createElement("img",{draggable:!1,src:a});return d.createElement("div",{className:"gdg-centering-container",key:a},s)})),r&&n&&d.createElement("button",{className:"gdg-edit-icon",onClick:n},d.createElement(ri,null)))},Ds=Jt("div")({name:"MarkdownContainer",class:"gdg-mnuv029",propsAsIs:!1});var zs=class extends d.PureComponent{constructor(){super(...arguments);tt(this,"targetElement",null);tt(this,"containerRefHook",t=>{this.targetElement=t,this.renderMarkdownIntoDiv()})}renderMarkdownIntoDiv(){let{targetElement:t,props:r}=this;if(t===null)return;let{contents:n,createNode:o}=r,i=O0(n),l=document.createRange();l.selectNodeContents(t),l.deleteContents();let a=o==null?void 0:o(i);if(a===void 0){let c=document.createElement("template");c.innerHTML=i,a=c.content}t.append(a);let s=t.getElementsByTagName("a");for(let c of s)c.target="_blank",c.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),d.createElement(Ds,{ref:this.containerRefHook})}};const As=Jt("textarea")({name:"InputBox",class:"gdg-izpuzkl",propsAsIs:!1}),Ls=Jt("div")({name:"ShadowBox",class:"gdg-s69h75o",propsAsIs:!1}),js=Jt("div")({name:"GrowingEntryStyle",class:"gdg-g1y0xocz",propsAsIs:!1});var il=0;const vo=e=>{let{placeholder:t,value:r,onKeyDown:n,highlight:o,altNewline:i,validatedSelection:l,...a}=e,{onChange:s,className:c}=a,u=d.useRef(null),f=r??"";Zt(s!==void 0,"GrowingEntry must be a controlled input area");let[p]=d.useState(()=>"input-box-"+(il=(il+1)%1e7));d.useEffect(()=>{let h=u.current;if(h===null||h.disabled)return;let v=f.toString().length;h.focus(),h.setSelectionRange(o?0:v,v)},[]),d.useLayoutEffect(()=>{var h;if(l!==void 0){let v=typeof l=="number"?[l,null]:l;(h=u.current)==null||h.setSelectionRange(v[0],v[1])}},[l]);let m=d.useCallback(h=>{h.key==="Enter"&&h.shiftKey&&i===!0||(n==null||n(h))},[i,n]);return d.createElement(js,{className:"gdg-growing-entry"},d.createElement(Ls,{className:c},f+` +`),d.createElement(As,{...a,className:(c??"")+" gdg-input",id:p,ref:u,onKeyDown:m,value:f,placeholder:t,dir:"auto"}))};var pn=new Map,mn=new Map,ii=new Map;function Fs(){pn.clear(),ii.clear(),mn.clear()}function _s(e,t,r,n,o){let i=0,l={};for(let s of e)i+=r.get(s)??o,l[s]=(l[s]??0)+1;let a=t-i;for(let s of Object.keys(l)){let c=l[s],u=r.get(s)??o,f=u+a*(u*c/i)*n/c;r.set(s,f)}}function Ns(e,t){let r=new Map,n=0;for(let a of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let s=e.measureText(a).width;r.set(a,s),n+=s}let o=n/r.size,i=(t/o+3)/4,l=r.keys();for(let a of l)r.set(a,(r.get(a)??o)*i);return r}function Fn(e,t,r,n){let o=mn.get(r);if(n&&o!==void 0&&o.count>2e4){let a=ii.get(r);if(a===void 0&&(a=Ns(e,o.size),ii.set(r,a)),o.count>5e5){let c=0;for(let u of t)c+=a.get(u)??o.size;return c*1.01}let s=e.measureText(t);return _s(t,s.width,a,Math.max(.05,1-o.count/2e5),o.size),mn.set(r,{count:o.count+t.length,size:o.size}),s.width}let i=e.measureText(t),l=i.width/t.length;if(((o==null?void 0:o.count)??0)>2e4)return i.width;if(o===void 0)mn.set(r,{count:t.length,size:l});else{let a=l-o.size,s=t.length/(o.count+t.length),c=o.size+a*s;mn.set(r,{count:o.count+t.length,size:c})}return i.width}function Ws(e,t,r,n,o,i,l,a){if(t.length<=1)return t.length;if(or;){let f=u===void 0?t.lastIndexOf(" ",s-1):0;f>0?s=f:s--,c=Fn(e,t.slice(0,Math.max(0,s)),n,l)}if(t[s]!==" "){let f=0;if(u===void 0)f=t.lastIndexOf(" ",s);else for(let p of u){if(p>s)break;f=p}f>0&&(s=f)}return s}function Bs(e,t,r,n,o,i){let l=`${t}_${r}_${n}px`,a=pn.get(l);if(a!==void 0)return a;if(n<=0)return[];let s=[],c=t.split(` +`),u=mn.get(r),f=u===void 0?t.length:n/u.size*1.5,p=o&&u!==void 0&&u.count>2e4;for(let m of c){let h=Fn(e,m.slice(0,Math.max(0,f)),r,p),v=Math.min(m.length,f);if(h<=n)s.push(m);else{for(;h>n;){let S=Ws(e,m,n,r,h,v,p,i),M=m.slice(0,Math.max(0,S));m=m.slice(M.length),s.push(M),h=Fn(e,m.slice(0,Math.max(0,f)),r,p),v=Math.min(m.length,f)}h>0&&s.push(m)}}return s=s.map((m,h)=>h===0?m.trimEnd():m.trim()),pn.set(l,s),pn.size>500&&pn.delete(pn.keys().next().value),s}function $s(e,t){return d.useMemo(()=>e.map((r,n)=>({group:r.group,grow:r.grow,hasMenu:r.hasMenu,icon:r.icon,id:r.id,menuIcon:r.menuIcon,overlayIcon:r.overlayIcon,sourceIndex:n,sticky:n=i.x&&r=i.y&&n=t.span[0]&&r.current.cell[0]<=t.span[1]}function ll(e,t){let[r,n]=e;return r>=t.x&&r=t.y&&nl)return!1;if(t.span===void 0)return a>=n&&a<=o;let[c,u]=t.span;return c>=n&&c<=o||u>=n&&c<=o||co}function Ys(e,t,r,n){let o=0;if(r.current===void 0)return o;let i=r.current.range;(n||i.height*i.width>1)&&sl(e,t,i)&&o++;for(let l of r.current.rangeStack)sl(e,t,l)&&o++;return o}function cl(e,t){let r=e;if(t!==void 0){let n=[...e],o=r[t.src];t.src>t.dest?(n.splice(t.src,1),n.splice(t.dest,0,o)):(n.splice(t.dest+1,0,o),n.splice(t.src,1)),n=n.map((i,l)=>({...i,sticky:e[l].sticky})),r=n}return r}function vn(e,t){let r=0,n=cl(e,t);for(let o=0;o0)for(let c of l)r-=c.width;let a=t,s=o??0;for(;s<=r&&a=f)return v}let p=i-c,m=e-(s??0);if(typeof l=="number"){let h=Math.floor((m-u)/l)+a;return h>=p?void 0:h}else{let h=u;for(let v=a;v"u";async function qs(){var e;Xs||((e=document==null?void 0:document.fonts)==null?void 0:e.ready)===void 0||(await document.fonts.ready,wo=0,Wn={},Fs())}qs();function ul(e,t,r,n){return`${e}_${n??(t==null?void 0:t.font)}_${r}`}function wn(e,t,r,n="middle"){let o=ul(e,t,n,r),i=Wn[o];return i===void 0&&(i=t.measureText(e),Wn[o]=i,wo++),wo>1e4&&(Wn={},wo=0),i}function dl(e,t){let r=ul(e,void 0,"middle",t);return Wn[r]}function Hr(e,t){return typeof t!="string"&&(t=t.baseFontFull),Zs(e,t)}function hl(e,t){e.save(),e.textBaseline=t;let r=e.measureText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");return e.restore(),r}var fl=[];function Zs(e,t){for(let o of fl)if(o.key===t)return o.val;let r=hl(e,"alphabetic"),n=-(hl(e,"middle").actualBoundingBoxDescent-r.actualBoundingBoxDescent)+r.actualBoundingBoxAscent/2;return fl.push({key:t,val:n}),n}function Js(e,t,r,n,o,i){let{ctx:l,rect:a,theme:s}=e,c=2**53-1;return t!==void 0&&(c=r-t,c<500&&(l.globalAlpha=1-c/500,l.fillStyle=s.bgSearchResult,l.fillRect(a.x+1,a.y+1,a.width-(o?2:1),a.height-(i?2:1)),l.globalAlpha=1,n!==void 0&&(n.fillStyle=s.bgSearchResult))),c<500}function Bn(e,t,r){let{ctx:n,theme:o}=e,i=t??{},l=r??o.textDark;return l!==i.fillStyle&&(n.fillStyle=l,i.fillStyle=l),i}function gl(e,t,r,n,o,i,l,a,s){s==="right"?e.fillText(t,r+o-(a.cellHorizontalPadding+.5),n+i/2+l):s==="center"?e.fillText(t,r+o/2,n+i/2+l):e.fillText(t,r+a.cellHorizontalPadding+.5,n+i/2+l)}function pl(e,t){let r=wn("ABCi09jgqpy",e,t);return r.actualBoundingBoxAscent+r.actualBoundingBoxDescent}function Qs(e,t){e.includes(` +`)&&(e=e.split(/\r?\n/,1)[0]);let r=t/4;return e.length>r&&(e=e.slice(0,r)),e}function ec(e,t,r,n,o,i,l,a,s,c){let u=a.baseFontFull,f=Bs(e,t,u,o-a.cellHorizontalPadding*2,c??!1),p=pl(e,u),m=a.lineHeight*p,h=p+m*(f.length-1),v=h+a.cellVerticalPadding>i;v&&(e.save(),e.rect(r,n,o,i),e.clip());let S=n+i/2-h/2,M=Math.max(n+a.cellVerticalPadding,S);for(let y of f)if(gl(e,y,r,M,o,p,l,a,s),M+=m,M>n+i)break;v&&e.restore()}function Sr(e,t,r,n,o){let{ctx:i,rect:l,theme:a}=e,{x:s,y:c,width:u,height:f}=l;n??(n=!1),n||(t=Qs(t,u));let p=Hr(i,a),m=ni(t)==="rtl";if(r===void 0&&m&&(r="right"),m&&(i.direction="rtl"),t.length>0){let h=!1;r==="right"?(i.textAlign="right",h=!0):r!==void 0&&r!=="left"&&(i.textAlign=r,h=!0),n?ec(i,t,s,c,u,f,p,a,r,o):gl(i,t,s,c,u,f,p,a,r),h&&(i.textAlign="start"),m&&(i.direction="inherit")}}function gr(e,t,r,n,o,i){typeof i=="number"&&(i={tl:i,tr:i,br:i,bl:i}),i={tl:Math.max(0,Math.min(i.tl,o/2,n/2)),tr:Math.max(0,Math.min(i.tr,o/2,n/2)),bl:Math.max(0,Math.min(i.bl,o/2,n/2)),br:Math.max(0,Math.min(i.br,o/2,n/2))},e.moveTo(t+i.tl,r),e.arcTo(t+n,r,t+n,r+i.tr,i.tr),e.arcTo(t+n,r+o,t+n-i.br,r+o,i.br),e.arcTo(t,r+o,t,r+o-i.bl,i.bl),e.arcTo(t,r,t+i.tl,r,i.tl)}function tc(e,t,r){let n=1.25;e.arc(t,r-n*3.5,n,0,2*Math.PI,!1),e.arc(t,r,n,0,2*Math.PI,!1),e.arc(t,r+n*3.5,n,0,2*Math.PI,!1)}function rc(e,t,r){let n=function(a,s){let c=s.x-a.x,u=s.y-a.y,f=Math.sqrt(c*c+u*u),p=c/f,m=u/f;return{x:c,y:s.y-a.y,len:f,nx:p,ny:m,ang:Math.atan2(m,p)}},o,i=t.length,l=t[i-1];for(let a=0;a1?1:p),v=1,S=!1;m<0?h<0?h=Math.PI+h:(h=Math.PI-h,v=-1,S=!0):h>0&&(v=-1,S=!0),o=s.radius===void 0?r:s.radius;let M=h/2,y=Math.abs(Math.cos(M)*o/Math.sin(M)),k;y>Math.min(u.len/2,f.len/2)?(y=Math.min(u.len/2,f.len/2),k=Math.abs(y*Math.sin(M)/Math.cos(M))):k=o;let I=s.x+f.nx*y,P=s.y+f.ny*y;I+=-f.ny*k*v,P+=f.nx*k*v,e.arc(I,P,k,u.ang+Math.PI/2*v,f.ang-Math.PI/2*v,S),l=s,s=c}e.closePath()}function ai(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h){let v={x:0,y:i+c,width:0,height:0};if(e>=m.length||t>=u||t<-2||e<0)return v;let S=i-o;if(e>=f){let M=l>e?-1:1,y=vn(m);v.x+=y+s;for(let k=l;k!==e;k+=M)v.x+=m[M===1?k:k-1].width*M}else for(let M=0;M0&&_n(m[M-1].group,y)&&m[M-1].sticky===k;){let P=m[M-1];v.x-=P.width,v.width+=P.width,M--}let I=e;for(;I+1r&&(v.width=r-v.x)}}else if(t>=u-p){let M=u-t;for(v.y=n;M>0;){let y=t+M-1;v.height=typeof h=="number"?h:h(y),v.y-=v.height,M--}v.height+=1}else{let M=a>t?-1:1;if(typeof h=="number"){let y=t-a;v.y+=y*h}else for(let y=a;y!==t;y+=M)v.y+=h(y)*M;v.height=(typeof h=="number"?h:h(t))+1}return v}var si=1<<21;function or(e,t){return(t+2)*si+e}function ml(e){return e%si}function ci(e){return Math.floor(e/si)-2}function ui(e){return[ml(e),ci(e)]}var vl=class{constructor(){tt(this,"visibleWindow",{x:0,y:0,width:0,height:0});tt(this,"freezeCols",0);tt(this,"freezeRows",[]);tt(this,"isInWindow",e=>{let t=ml(e),r=ci(e),n=this.visibleWindow,o=t>=n.x&&t<=n.x+n.width||t=n.y&&r<=n.y+n.height||this.freezeRows.includes(r);return o&&i})}setWindow(e,t,r){this.visibleWindow.x===e.x&&this.visibleWindow.y===e.y&&this.visibleWindow.width===e.width&&this.visibleWindow.height===e.height&&this.freezeCols===t&&Zo(this.freezeRows,r)||(this.visibleWindow=e,this.freezeCols=t,this.freezeRows=r,this.clearOutOfWindow())}},nc=class extends vl{constructor(){super(...arguments);tt(this,"cache",new Map);tt(this,"setValue",(t,r)=>{this.cache.set(or(t[0],t[1]),r)});tt(this,"getValue",t=>this.cache.get(or(t[0],t[1])));tt(this,"clearOutOfWindow",()=>{for(let[t]of this.cache.entries())this.isInWindow(t)||this.cache.delete(t)})}},$n=class{constructor(e=[]){tt(this,"cells");this.cells=new Set(e.map(t=>or(t[0],t[1])))}add(e){this.cells.add(or(e[0],e[1]))}has(e){return e===void 0?!1:this.cells.has(or(e[0],e[1]))}remove(e){this.cells.delete(or(e[0],e[1]))}clear(){this.cells.clear()}get size(){return this.cells.size}hasHeader(){for(let e of this.cells)if(ci(e)<0)return!0;return!1}hasItemInRectangle(e){for(let t=e.y;t{let m=oc(e,p[n],t,s);return c=Math.max(c,m),m});if(u.length>5&&a){c=0;let p=0;for(let h of u)p+=h;let m=p/u.length;for(let h=0;h=m*2?u[h]=0:c=Math.max(c,u[h])}c=Math.max(c,e.measureText(r.title).width+t.cellHorizontalPadding*2+(r.icon===void 0?0:28));let f=Math.max(Math.ceil(i),Math.min(Math.floor(l),Math.ceil(c)));return{...r,width:f}}function ic(e,t,r,n,o,i,l,a,s){let c=d.useRef(t),u=d.useRef(r),f=d.useRef(l);c.current=t,u.current=r,f.current=l;let[p,m]=d.useMemo(()=>{if(typeof window>"u")return[null,null];let y=document.createElement("canvas");return y.style.display="none",y.style.opacity="0",y.style.position="fixed",[y,y.getContext("2d",{alpha:!1})]},[]);d.useLayoutEffect(()=>(p&&document.documentElement.append(p),()=>{p==null||p.remove()}),[p]);let h=d.useRef({}),v=d.useRef(),[S,M]=d.useState();return d.useLayoutEffect(()=>{let y=u.current;if(y===void 0||e.every(Jo))return;let k=Math.max(1,10-Math.floor(e.length/1e4)),I=0;k1&&(k--,I=1);let P={x:0,y:0,width:e.length,height:Math.min(c.current,k)},E={x:0,y:c.current-1,width:e.length,height:1};(async()=>{let O=y(P,s.signal),F=I>0?y(E,s.signal):void 0,C;C=typeof O=="object"?O:await is(O),F!==void 0&&(C=typeof F=="object"?[...C,...F]:[...C,...await is(F)]),v.current=e,M(C)})()},[s.signal,e]),d.useMemo(()=>{let y=e.every(Jo)?e:m===null?e.map(E=>Jo(E)?E:{...E,width:di}):(m.font=f.current.baseFontFull,e.map((E,O)=>{if(Jo(E))return E;if(h.current[E.id]!==void 0)return{...E,width:h.current[E.id]};if(S===void 0||v.current!==e||E.id===void 0)return{...E,width:di};let F=wl(m,l,E,O,S,o,i,!0,a);return h.current[E.id]=F.width,F})),k=0,I=0,P=[];for(let[E,O]of y.entries())k+=O.width,O.grow!==void 0&&O.grow>0&&(I+=O.grow,P.push(E));if(k0){let E=[...y],O=n-k,F=O;for(let C=0;C{function r(n,o,i){return n===n&&(i!==void 0&&(n=n<=i?n:i),o!==void 0&&(n=n>=o?n:o)),n}t.exports=r})),yo=U(((e,t)=>{var r=lc(),n=ei();function o(i,l,a){return a===void 0&&(a=l,l=void 0),a!==void 0&&(a=n(a),a=a===a?a:0),l!==void 0&&(l=n(l),l=l===l?l:0),r(n(i),l,a)}t.exports=o})),ac=U(((e,t)=>{var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}t.exports=n})),sc=U(((e,t)=>{function r(n){return this.__data__.has(n)}t.exports=r})),yl=U(((e,t)=>{var r=ss(),n=ac(),o=sc();function i(l){var a=-1,s=l==null?0:l.length;for(this.__data__=new r;++a{function r(n,o,i,l){for(var a=n.length,s=i+(l?1:-1);l?s--:++s{function r(n){return n!==n}t.exports=r})),dc=U(((e,t)=>{function r(n,o,i){for(var l=i-1,a=n.length;++l{var r=cc(),n=uc(),o=dc();function i(l,a,s){return a===a?o(l,a,s):r(l,n,s)}t.exports=i})),fc=U(((e,t)=>{var r=hc();function n(o,i){return!!(o!=null&&o.length)&&r(o,i,0)>-1}t.exports=n})),gc=U(((e,t)=>{function r(n,o,i){for(var l=-1,a=n==null?0:n.length;++l{function r(n,o){return n.has(o)}t.exports=r})),xl=U(((e,t)=>{t.exports=fo()(fn(),"Set")})),pc=U(((e,t)=>{function r(){}t.exports=r})),hi=U(((e,t)=>{function r(n){var o=-1,i=Array(n.size);return n.forEach(function(l){i[++o]=l}),i}t.exports=r})),mc=U(((e,t)=>{var r=xl(),n=pc(),o=hi();t.exports=r&&1/o(new r([,-0]))[1]==1/0?function(i){return new r(i)}:n})),vc=U(((e,t)=>{var r=yl(),n=fc(),o=gc(),i=bl(),l=mc(),a=hi(),s=200;function c(u,f,p){var m=-1,h=n,v=u.length,S=!0,M=[],y=M;if(p)S=!1,h=o;else if(v>=s){var k=f?null:l(u);if(k)return a(k);S=!1,h=i,y=new r}else y=f?[]:M;e:for(;++m{var r=vc();function n(o){return o&&o.length?r(o):[]}t.exports=n})),Cl=U(((e,t)=>{function r(n,o){for(var i=-1,l=o.length,a=n.length;++i{var r=as(),n=ts(),o=Ln(),i=r?r.isConcatSpreadable:void 0;function l(a){return o(a)||n(a)||!!(i&&a&&a[i])}t.exports=l})),bc=U(((e,t)=>{var r=Cl(),n=yc();function o(i,l,a,s,c){var u=-1,f=i.length;for(a||(a=n),c||(c=[]);++u0&&a(p)?l>1?o(p,l-1,a,s,c):r(c,p):s||(c[c.length]=p)}return c}t.exports=o})),xc=U(((e,t)=>{var r=bc();function n(o){return o!=null&&o.length?r(o,1):[]}t.exports=n})),Cc=U(((e,t)=>{var r=Math.ceil,n=Math.max;function o(i,l,a,s){for(var c=-1,u=n(r((l-i)/(a||1)),0),f=Array(u);u--;)f[s?u:++c]=i,i+=a;return f}t.exports=o})),fi=U(((e,t)=>{var r=U0(),n=ls();function o(i){return i!=null&&n(i.length)&&!r(i)}t.exports=o})),Sc=U(((e,t)=>{var r=os(),n=fi(),o=rs(),i=ho();function l(a,s,c){if(!i(c))return!1;var u=typeof s;return(u=="number"?n(c)&&o(s,c.length):u=="string"&&s in c)?r(c[s],a):!1}t.exports=l})),kc=U(((e,t)=>{var r=ei(),n=1/0,o=17976931348623157e292;function i(l){return l?(l=r(l),l===n||l===-n?(l<0?-1:1)*o:l===l?l:0):l===0?l:0}t.exports=i})),Mc=U(((e,t)=>{var r=Cc(),n=Sc(),o=kc();function i(l){return function(a,s,c){return c&&typeof c!="number"&&n(a,s,c)&&(s=c=void 0),a=o(a),s===void 0?(s=a,a=0):s=o(s),c=c===void 0?a{t.exports=Mc()()})),ct='',Rc=e=>{let t=e.fgColor;return` + ${ct}`},Ec=e=>{let t=e.fgColor;return` + ${ct}`},Ic=e=>{let t=e.fgColor;return`${ct} + + + `},Tc=e=>{let t=e.fgColor;return`${ct} + + +`},Oc=e=>{let t=e.fgColor;return`${ct} + + +`},kl=e=>{let t=e.fgColor;return`${ct} + + + + + `};const Pc={headerRowID:Rc,headerNumber:Ic,headerCode:Ec,headerString:Tc,headerBoolean:Oc,headerAudioUri:kl,headerVideoUri:e=>{let t=e.fgColor;return`${ct} + + +`},headerEmoji:e=>{let t=e.fgColor;return` + ${ct} + + + + + + + + `},headerImage:e=>{let t=e.fgColor;return`${ct} + + + +`},headerUri:kl,headerPhone:e=>` + ${ct} + + + `,headerMarkdown:e=>{let t=e.fgColor;return` + ${ct} + + + `},headerDate:e=>{let t=e.fgColor;return`${ct} + + +`},headerTime:e=>{let t=e.fgColor;return` + ${ct} + + + + `},headerEmail:e=>{let t=e.fgColor;return`${ct} + + + +`},headerReference:e=>{let t=e.fgColor,r=e.bgColor;return` + ${ct} + + + + `},headerIfThenElse:e=>`${ct} + + +`,headerSingleValue:e=>{let t=e.fgColor;return` + ${ct} + + + `},headerLookup:e=>{let t=e.fgColor;return` + ${ct} + + + `},headerTextTemplate:e=>{let t=e.fgColor;return`${ct} + + +`},headerMath:e=>{let t=e.fgColor;return`${ct} + + + + + +`},headerRollup:e=>{let t=e.fgColor;return` + ${ct} + + + `},headerJoinStrings:e=>{let t=e.fgColor;return`${ct} + + +`},headerSplitString:e=>{let t=e.fgColor;return` + ${ct} + + + `},headerGeoDistance:e=>{let t=e.fgColor;return`${ct} + + + +`},headerArray:e=>{let t=e.fgColor;return`${ct} + + +`},rowOwnerOverlay:e=>{let t=e.fgColor;return` + + + `},protectedColumnOverlay:e=>{let t=e.fgColor;return` + + + +`},renameIcon:e=>{let t=e.bgColor;return`${ct} + + + + +`}};function Hc(e,t){return e==="normal"?[t.bgIconHeader,t.fgIconHeader]:e==="selected"?["white",t.accentColor]:[t.accentColor,t.bgHeader]}var Dc=class{constructor(e,t){tt(this,"onSettled");tt(this,"spriteMap",new Map);tt(this,"headerIcons");tt(this,"inFlight",0);this.onSettled=t,this.headerIcons=e??{}}drawSprite(e,t,r,n,o,i,l,a=1){let[s,c]=Hc(t,l),u=i*Math.ceil(window.devicePixelRatio),f=`${s}_${c}_${u}_${e}`,p=this.spriteMap.get(f);if(p===void 0){let m=this.headerIcons[e];if(m===void 0)return;p=document.createElement("canvas");let h=p.getContext("2d");if(h===null)return;let v=new Image;v.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(m({fgColor:c,bgColor:s}))}`,this.spriteMap.set(f,p);let S=v.decode();if(S===void 0)return;this.inFlight++,S.then(()=>{h.drawImage(v,0,0,u,u)}).finally(()=>{this.inFlight--,this.inFlight===0&&this.onSettled()})}else a<1&&(r.globalAlpha=a),r.drawImage(p,0,0,u,u,n,o,i,i),a<1&&(r.globalAlpha=1)}};function Ml(e){if(e.length===0)return;let t;for(let r of e)t=Math.min(t??r.y,r.y)}function bo(e,t,r,n,o,i,l,a,s){a??(a=t);let c=t,u=e,f=n-i,p=!1;for(;ca&&s(c,u,m,!1,l&&u===n-1)===!0){p=!0;break}c+=m,u++}if(!p){c=r;for(let m=0;m!m.sticky))==null?void 0:p.sourceIndex)??0;if(s>f){let m=Math.max(a,f),h=t,v=n;for(let S=i.sourceIndex-1;S>=m;S--)h-=l[S].width,v+=l[S].width;for(let S=i.sourceIndex+1;S<=s;S++)v+=l[S].width;u={x:h,y:r,width:v,height:o}}if(f>a){let m=Math.min(s,f-1),h=t,v=n;for(let S=i.sourceIndex-1;S>=a;S--)h-=l[S].width,v+=l[S].width;for(let S=i.sourceIndex+1;S<=m;S++)v+=l[S].width;c={x:h,y:r,width:v,height:o}}return[c,u]}function zc(e,t,r,n){if(n==="any")return Il(e,{x:t,y:r,width:1,height:1});if(n==="vertical"&&(t=e.x),n==="horizontal"&&(r=e.y),ll([t,r],e))return;let o=t-e.x,i=e.x+e.width-t,l=r-e.y+1,a=e.y+e.height-r,s=Math.min(n==="vertical"?2**53-1:o,n==="vertical"?2**53-1:i,n==="horizontal"?2**53-1:l,n==="horizontal"?2**53-1:a);return s===a?{x:e.x,y:e.y+e.height,width:e.width,height:r-e.y-e.height+1}:s===l?{x:e.x,y:r,width:e.width,height:e.y-r}:s===i?{x:e.x+e.width,y:e.y,width:t-e.x-e.width+1,height:e.height}:{x:t,y:e.y,width:e.x-t,height:e.height}}function Vn(e,t,r,n,o,i,l,a){return e<=o+l&&o<=e+r&&t<=i+a&&i<=t+n}function qr(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function Il(e,t){let r=Math.min(e.x,t.x),n=Math.min(e.y,t.y);return{x:r,y:n,width:Math.max(e.x+e.width,t.x+t.width)-r,height:Math.max(e.y+e.height,t.y+t.height)-n}}function Ac(e,t){return e.x<=t.x&&e.y<=t.y&&e.x+e.width>=t.x+t.width&&e.y+e.height>=t.y+t.height}function Lc(e,t,r,n){if(e.x>t||e.y>r||e.x<0&&e.y<0&&e.x+e.width>t&&e.y+e.height>r)return;if(e.x>=0&&e.y>=0&&e.x+e.width<=t&&e.y+e.height<=r)return e;let o=t+4,i=r+4,l=-4-e.x,a=e.x+e.width-o,s=-4-e.y,c=e.y+e.height-i,u=l>0?e.x+Math.floor(l/n)*n:e.x,f=a>0?e.x+e.width-Math.floor(a/n)*n:e.x+e.width,p=s>0?e.y+Math.floor(s/n)*n:e.y,m=c>0?e.y+e.height-Math.floor(c/n)*n:e.y+e.height;return{x:u,y:p,width:f-u,height:m-p}}function jc(e,t,r,n,o){let[i,l,a,s]=t,[c,u,f,p]=o,{x:m,y:h,width:v,height:S}=e,M=[];if(v<=0||S<=0)return M;let y=m+v,k=h+S,I=ma,O=h+S>s,F=m>=i&&mi&&y<=a||ma,C=h>=l&&hl&&k<=s||hs;if(F&&C){let R=Math.max(m,i),L=Math.max(h,l),x=Math.min(y,a),w=Math.min(k,s);M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:c,y:u,width:f-c+1,height:p-u+1}})}if(I&&P){let R=m,L=h,x=Math.min(y,i),w=Math.min(k,l);M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:0,y:0,width:c+1,height:u+1}})}if(P&&F){let R=Math.max(m,i),L=h,x=Math.min(y,a),w=Math.min(k,l);M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:c,y:0,width:f-c+1,height:u+1}})}if(P&&E){let R=Math.max(m,a),L=h,x=y,w=Math.min(k,l);M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:f,y:0,width:r-f+1,height:u+1}})}if(I&&C){let R=m,L=Math.max(h,l),x=Math.min(y,i),w=Math.min(k,s);M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:0,y:u,width:c+1,height:p-u+1}})}if(E&&C){let R=Math.max(m,a),L=Math.max(h,l),x=y,w=Math.min(k,s);M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:f,y:u,width:r-f+1,height:p-u+1}})}if(I&&O){let R=m,L=Math.max(h,s),x=Math.min(y,i),w=k;M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:0,y:p,width:c+1,height:n-p+1}})}if(O&&F){let R=Math.max(m,i),L=Math.max(h,s),x=Math.min(y,a),w=k;M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:c,y:p,width:f-c+1,height:n-p+1}})}if(E&&O){let R=Math.max(m,a),L=Math.max(h,s),x=y,w=k;M.push({rect:{x:R,y:L,width:x-R,height:w-L},clip:{x:f,y:p,width:r-f+1,height:n-p+1}})}return M}var Fc={kind:pe.Loading,allowOverlay:!1};function Tl(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v,S,M,y,k,I,P,E,O,F,C,R,L,x,w,T,H,b,J,_){let Q=(k==null?void 0:k.size)??9007199254740991,ee=performance.now(),K=w.baseFontFull;e.font=K;let se={ctx:e},oe=[0,0],ue=S>0?Xr(s,S,c):0,de,X,q=Ml(y);return Dr(t,a,i,l,o,(te,ne,le,Fe,Oe)=>{let Ee=Math.max(0,Fe-ne),Ge=ne+Ee,Me=o+1,mt=te.width-Ee,vt=n-o-1;if(y.length>0){let Ke=!1;for(let Ne=0;Ne{e.save(),e.beginPath(),e.rect(Ge,Me,mt,vt),e.clip()},ae=I.columns.hasIndex(te.sourceIndex),_e=f(te.group??"").overrideTheme,He=te.themeOverride===void 0&&_e===void 0?w:Pr(w,_e,te.themeOverride),Ve=He.baseFontFull;Ve!==K&&(K=Ve,e.font=Ve),Qe();let xe;return bo(Oe,le,n,s,c,S,M,q,(Ke,Ne,Ue,me,be)=>{var mr,lr,Qt;if(Ne<0||(oe[0]=te.sourceIndex,oe[1]=Ne,k!==void 0&&!k.has(oe)))return;if(y.length>0){let $e=!1;for(let xt=0;xtXe.span!==void 0&&$e>=Xe.span[0]&&$e<=Xe.span[1]);Ft&&!h&&v?wt=0:Ft&&v&&(wt=Math.max(wt,1)),pr&&wt++,Ft||(rt&&wt++,ae&&!be&&wt++);let Ar=Xe.kind===pe.Protected?Rt.bgCellMedium:Rt.bgCell,ut;if((me||Ar!==w.bgCell)&&(ut=fr(Ar,ut)),wt>0||qe){qe&&(ut=fr(Rt.bgHeader,ut));for(let $e=0;$e_&&!St){let $e=Rt.baseFontFull;$e!==K&&(e.font=$e,K=$e),xe=Ol(e,Xe,te.sourceIndex,Ne,ir,Re,ht,Ke,et,Ue,wt>0,Rt,ut??Rt.bgCell,O,F,(yt==null?void 0:yt.hoverAmount)??0,R,x,ee,L,xe,T,H,b,J)}return kr&&e.restore(),Xe.style==="faded"&&(e.globalAlpha=1),Q--,De&&(e.restore(),(Qt=xe==null?void 0:xe.deprep)==null||Qt.call(xe,se),xe=void 0,Qe(),K=Ve,e.font=Ve),Q<=0}),e.restore(),Q<=0}),de}var Kn=[0,0],Yn={x:0,y:0,width:0,height:0},gi=[void 0,()=>{}],pi=!1;function _c(){pi=!0}function Ol(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v,S,M,y,k,I,P,E,O,F){var H,b;let C,R;S!==void 0&&S[0][0]===r&&S[0][1]===n&&(C=S[1][0],R=S[1][1]);let L;Kn[0]=r,Kn[1]=n,Yn.x=l,Yn.y=a,Yn.width=s,Yn.height=c,gi[0]=E.getValue(Kn),gi[1]=J=>E.setValue(Kn,J),pi=!1;let x={ctx:e,theme:f,col:r,row:n,cell:t,rect:Yn,highlighted:u,cellFillColor:p,hoverAmount:v,frameTime:y,hoverX:C,drawState:gi,hoverY:R,imageLoader:m,spriteManager:h,hyperWrapping:M,overrideCursor:C===void 0?void 0:F,requestAnimationFrame:_c},w=Js(x,t.lastUpdated,y,I,o,i),T=O(t);if(T!==void 0){(I==null?void 0:I.renderer)!==T&&((H=I==null?void 0:I.deprep)==null||H.call(I,x),I=void 0);let J=(b=T.drawPrep)==null?void 0:b.call(T,x,I);k!==void 0&&!jn(x.cell)?k(x,()=>T.draw(x,t)):T.draw(x,t),L=J===void 0?void 0:{deprep:J==null?void 0:J.deprep,fillStyle:J==null?void 0:J.fillStyle,font:J==null?void 0:J.font,renderer:T}}return(w||pi)&&(P==null||P(Kn)),L}function mi(e,t,r,n,o,i,l,a,s=-20,c=-20,u=32,f="center",p="square"){let m=Math.floor(o+l/2),h=p==="circle"?1e4:t.roundingRadius??4,v=rl(u,l,t.cellVerticalPadding),S=v/2,M=tl(f,n,i,t.cellHorizontalPadding,v),y=el(M,m,v),k=nl(n+s,o+c,y);switch(r){case!0:e.beginPath(),gr(e,M-v/2,m-v/2,v,v,h),p==="circle"&&(S*=.8,v*=.8),e.fillStyle=a?t.accentColor:t.textMedium,e.fill(),e.beginPath(),e.moveTo(M-S+v/4.23,m-S+v/1.97),e.lineTo(M-S+v/2.42,m-S+v/1.44),e.lineTo(M-S+v/1.29,m-S+v/3.25),e.strokeStyle=t.bgCell,e.lineJoin="round",e.lineCap="round",e.lineWidth=1.9,e.stroke();break;case null:case!1:e.beginPath(),gr(e,M-v/2+.5,m-v/2+.5,v-1,v-1,h),e.lineWidth=1,e.strokeStyle=k?t.textDark:t.textMedium,e.stroke();break;case void 0:e.beginPath(),gr(e,M-v/2,m-v/2,v,v,h),e.fillStyle=k?t.textMedium:t.textLight,e.fill(),p==="circle"&&(S*=.8,v*=.8),e.beginPath(),e.moveTo(M-v/3,m),e.lineTo(M+v/3,m),e.strokeStyle=t.bgCell,e.lineCap="round",e.lineWidth=1.9,e.stroke();break;default:qo(r)}}function Nc(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v,S,M,y){var F,C,R,L;let k=l+a;if(k<=0)return;e.fillStyle=f.bgHeader,e.fillRect(0,0,o,k);let I=(F=n==null?void 0:n[0])==null?void 0:F[0],P=(C=n==null?void 0:n[0])==null?void 0:C[1],E=(R=n==null?void 0:n[1])==null?void 0:R[0],O=(L=n==null?void 0:n[1])==null?void 0:L[1];e.font=f.headerFontFull,Dr(t,0,i,0,k,(x,w,T,H)=>{var q;if(S!==void 0&&!S.has([x.sourceIndex,-1]))return;let b=Math.max(0,H-w);e.save(),e.beginPath(),e.rect(w+b,a,x.width-b,l),e.clip();let J=v(x.group??"").overrideTheme,_=x.themeOverride===void 0&&J===void 0?f:Pr(f,J,x.themeOverride);_.bgHeader!==f.bgHeader&&(e.fillStyle=_.bgHeader,e.fill()),_!==f&&(e.font=_.baseFontFull);let Q=u.columns.hasIndex(x.sourceIndex),ee=s!==void 0||c,K=!ee&&P===-1&&I===x.sourceIndex,se=ee?0:((q=m.find(te=>te.item[0]===x.sourceIndex&&te.item[1]===-1))==null?void 0:q.hoverAmount)??0,oe=(u==null?void 0:u.current)!==void 0&&u.current.cell[0]===x.sourceIndex,ue=Q?_.accentColor:oe?_.bgHeaderHasFocus:_.bgHeader,de=r?a:0,X=x.sourceIndex===0?0:1;Q?(e.fillStyle=ue,e.fillRect(w+X,de,x.width-X,l)):(oe||se>0)&&(e.beginPath(),e.rect(w+X,de,x.width-X,l),oe&&(e.fillStyle=_.bgHeaderHasFocus,e.fill()),se>0&&(e.globalAlpha=se,e.fillStyle=_.bgHeaderHovered,e.fill(),e.globalAlpha=1)),zl(e,w,de,x.width,l,x,Q,_,K,K?E:void 0,K?O:void 0,oe,se,p,M,y),e.restore()}),r&&Wc(e,t,o,i,a,n,f,p,m,h,v,S)}function Wc(e,t,r,n,o,i,l,a,s,c,u,f){let[p,m]=(i==null?void 0:i[0])??[],h=0;Rl(t,r,n,o,(v,S,M,y,k,I)=>{if(f!==void 0&&!f.hasItemInRectangle({x:v[0],y:-2,width:v[1]-v[0]+1,height:1}))return;e.save(),e.beginPath(),e.rect(M,y,k,I),e.clip();let P=u(S),E=(P==null?void 0:P.overrideTheme)===void 0?l:Pr(l,P.overrideTheme),O=m===-2&&p!==void 0&&p>=v[0]&&p<=v[1],F=O?E.bgHeaderHovered:E.bgHeader;if(F!==l.bgHeader&&(e.fillStyle=F,e.fill()),e.fillStyle=E.textGroupHeader??E.textHeader,P!==void 0){let C=M;if(P.icon!==void 0&&(a.drawSprite(P.icon,"normal",e,C+8,(o-20)/2,20,E),C+=26),e.fillText(P.name,C+8,o/2+Hr(e,l.headerFontFull)),P.actions!==void 0&&O){let R=Pl({x:M,y,width:k,height:I},P.actions);e.beginPath();let L=R[0].x-10,x=M+k-L;e.rect(L,0,x,o);let w=e.createLinearGradient(L,0,L+x,0),T=gn(F,0);w.addColorStop(0,T),w.addColorStop(10/x,F),w.addColorStop(1,F),e.fillStyle=w,e.fill(),e.globalAlpha=.6;let[H,b]=(i==null?void 0:i[1])??[-1,-1];for(let J=0;J35){let y=h?35:n-35,k=h?35*.7:n-35*.7,I=y/n,P=k/n,E=e.createLinearGradient(t,0,t+n,0),O=gn(S,0);E.addColorStop(h?1:0,S),E.addColorStop(I,S),E.addColorStop(P,O),E.addColorStop(h?0:1,O),e.fillStyle=E}else e.fillStyle=S;if(h&&(e.textAlign="right"),v.textBounds!==void 0&&e.fillText(i.title,h?v.textBounds.x+v.textBounds.width:v.textBounds.x,r+o/2+Hr(e,a.headerFontFull)),h&&(e.textAlign="left"),i.indicatorIcon!==void 0&&v.indicatorIconBounds!==void 0&&(!M||!Vn(v.menuBounds.x,v.menuBounds.y,v.menuBounds.width,v.menuBounds.height,v.indicatorIconBounds.x,v.indicatorIconBounds.y,v.indicatorIconBounds.width,v.indicatorIconBounds.height))){let y=l?"selected":"normal";i.style==="highlight"&&(y=l?"selected":"special"),p.drawSprite(i.indicatorIcon,y,e,v.indicatorIconBounds.x,v.indicatorIconBounds.y,v.indicatorIconBounds.width,a)}if(M&&v.menuBounds!==void 0){let y=v.menuBounds,k=c!==void 0&&u!==void 0&&qr(y,c+t,u+r);if(k||(e.globalAlpha=.7),i.menuIcon===void 0||i.menuIcon===cs.Triangle){e.beginPath();let I=y.x+y.width/2-5.5,P=y.y+y.height/2-3;rc(e,[{x:I,y:P},{x:I+11,y:P},{x:I+5.5,y:P+6}],1),e.fillStyle=S,e.fill()}else if(i.menuIcon===cs.Dots)e.beginPath(),tc(e,y.x+y.width/2,y.y+y.height/2),e.fillStyle=S,e.fill();else{let I=y.x+(y.width-a.headerIconSize)/2,P=y.y+(y.height-a.headerIconSize)/2;p.drawSprite(i.menuIcon,"normal",e,I,P,a.headerIconSize,a)}k||(e.globalAlpha=1)}}function zl(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v){let S=ni(i.title)==="rtl",M=Hl(e,i,t,r,n,o,a,S);h===void 0?Dl(e,t,r,n,o,i,l,a,s,c,u,p,m,v,S,M):h({ctx:e,theme:a,rect:{x:t,y:r,width:n,height:o},column:i,columnIndex:i.sourceIndex,isSelected:l,hoverAmount:p,isHovered:s,hasSelectedCell:f,spriteManager:m,menuBounds:(M==null?void 0:M.menuBounds)??{x:0,y:0,height:0,width:0}},()=>Dl(e,t,r,n,o,i,l,a,s,c,u,p,m,v,S,M))}var $c=U(((e,t)=>{var r=fo();t.exports=(function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}})()})),Vc=U(((e,t)=>{var r=$c();function n(o,i,l){i=="__proto__"&&r?r(o,i,{configurable:!0,enumerable:!0,value:l,writable:!0}):o[i]=l}t.exports=n})),Kc=U(((e,t)=>{function r(n,o,i,l){for(var a=-1,s=n==null?0:n.length;++a{function r(n){return function(o,i,l){for(var a=-1,s=Object(o),c=l(o),u=c.length;u--;){var f=c[n?u:++a];if(i(s[f],f,s)===!1)break}return o}}t.exports=r})),Gc=U(((e,t)=>{t.exports=Yc()()})),Uc=U(((e,t)=>{function r(n,o){for(var i=-1,l=Array(n);++i{function r(){return!1}t.exports=r})),Al=U(((e,t)=>{var r=fn(),n=Xc(),o=typeof e=="object"&&e&&!e.nodeType&&e,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,l=i&&i.exports===o?r.Buffer:void 0;t.exports=(l?l.isBuffer:void 0)||n})),qc=U(((e,t)=>{var r=es(),n=ls(),o=hs(),i="[object Arguments]",l="[object Array]",a="[object Boolean]",s="[object Date]",c="[object Error]",u="[object Function]",f="[object Map]",p="[object Number]",m="[object Object]",h="[object RegExp]",v="[object Set]",S="[object String]",M="[object WeakMap]",y="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",P="[object Float64Array]",E="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",C="[object Uint8Array]",R="[object Uint8ClampedArray]",L="[object Uint16Array]",x="[object Uint32Array]",w={};w[I]=w[P]=w[E]=w[O]=w[F]=w[C]=w[R]=w[L]=w[x]=!0,w[i]=w[l]=w[y]=w[a]=w[k]=w[s]=w[c]=w[u]=w[f]=w[p]=w[m]=w[h]=w[v]=w[S]=w[M]=!1;function T(H){return o(H)&&n(H.length)&&!!w[r(H)]}t.exports=T})),Zc=U(((e,t)=>{function r(n){return function(o){return n(o)}}t.exports=r})),Jc=U(((e,t)=>{var r=Q0(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process;t.exports=(function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch{}})()})),Ll=U(((e,t)=>{var r=qc(),n=Zc(),o=Jc(),i=o&&o.isTypedArray;t.exports=i?n(i):r})),Qc=U(((e,t)=>{var r=Uc(),n=ts(),o=Ln(),i=Al(),l=rs(),a=Ll(),s=Object.prototype.hasOwnProperty;function c(u,f){var p=o(u),m=!p&&n(u),h=!p&&!m&&i(u),v=!p&&!m&&!h&&a(u),S=p||m||h||v,M=S?r(u.length,String):[],y=M.length;for(var k in u)(f||s.call(u,k))&&!(S&&(k=="length"||h&&(k=="offset"||k=="parent")||v&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||l(k,y)))&&M.push(k);return M}t.exports=c})),eu=U(((e,t)=>{var r=Object.prototype;function n(o){var i=o&&o.constructor;return o===(typeof i=="function"&&i.prototype||r)}t.exports=n})),tu=U(((e,t)=>{function r(n,o){return function(i){return n(o(i))}}t.exports=r})),ru=U(((e,t)=>{t.exports=tu()(Object.keys,Object)})),nu=U(((e,t)=>{var r=eu(),n=ru(),o=Object.prototype.hasOwnProperty;function i(l){if(!r(l))return n(l);var a=[];for(var s in Object(l))o.call(l,s)&&s!="constructor"&&a.push(s);return a}t.exports=i})),vi=U(((e,t)=>{var r=Qc(),n=nu(),o=fi();function i(l){return o(l)?r(l):n(l)}t.exports=i})),ou=U(((e,t)=>{var r=Gc(),n=vi();function o(i,l){return i&&r(i,l,n)}t.exports=o})),iu=U(((e,t)=>{var r=fi();function n(o,i){return function(l,a){if(l==null)return l;if(!r(l))return o(l,a);for(var s=l.length,c=i?s:-1,u=Object(l);(i?c--:++c{var r=ou();t.exports=iu()(r)})),au=U(((e,t)=>{var r=lu();function n(o,i,l,a){return r(o,function(s,c,u){i(a,s,l(s),u)}),a}t.exports=n})),su=U(((e,t)=>{var r=Yi();function n(){this.__data__=new r,this.size=0}t.exports=n})),cu=U(((e,t)=>{function r(n){var o=this.__data__,i=o.delete(n);return this.size=o.size,i}t.exports=r})),uu=U(((e,t)=>{function r(n){return this.__data__.get(n)}t.exports=r})),du=U(((e,t)=>{function r(n){return this.__data__.has(n)}t.exports=r})),hu=U(((e,t)=>{var r=Yi(),n=Qa(),o=ss(),i=200;function l(a,s){var c=this.__data__;if(c instanceof r){var u=c.__data__;if(!n||u.length{var r=Yi(),n=su(),o=cu(),i=uu(),l=du(),a=hu();function s(c){this.size=(this.__data__=new r(c)).size}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=l,s.prototype.set=a,t.exports=s})),fu=U(((e,t)=>{function r(n,o){for(var i=-1,l=n==null?0:n.length;++i{var r=yl(),n=fu(),o=bl(),i=1,l=2;function a(s,c,u,f,p,m){var h=u&i,v=s.length,S=c.length;if(v!=S&&!(h&&S>v))return!1;var M=m.get(s),y=m.get(c);if(M&&y)return M==c&&y==s;var k=-1,I=!0,P=u&l?new r:void 0;for(m.set(s,c),m.set(c,s);++k{t.exports=fn().Uint8Array})),pu=U(((e,t)=>{function r(n){var o=-1,i=Array(n.size);return n.forEach(function(l,a){i[++o]=[a,l]}),i}t.exports=r})),mu=U(((e,t)=>{var r=as(),n=gu(),o=os(),i=Fl(),l=pu(),a=hi(),s=1,c=2,u="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Map]",h="[object Number]",v="[object RegExp]",S="[object Set]",M="[object String]",y="[object Symbol]",k="[object ArrayBuffer]",I="[object DataView]",P=r?r.prototype:void 0,E=P?P.valueOf:void 0;function O(F,C,R,L,x,w,T){switch(R){case I:if(F.byteLength!=C.byteLength||F.byteOffset!=C.byteOffset)return!1;F=F.buffer,C=C.buffer;case k:return!(F.byteLength!=C.byteLength||!w(new n(F),new n(C)));case u:case f:case h:return o(+F,+C);case p:return F.name==C.name&&F.message==C.message;case v:case M:return F==C+"";case m:var H=l;case S:var b=L&s;if(H||(H=a),F.size!=C.size&&!b)return!1;var J=T.get(F);if(J)return J==C;L|=c,T.set(F,C);var _=i(H(F),H(C),L,x,w,T);return T.delete(F),_;case y:if(E)return E.call(F)==E.call(C)}return!1}t.exports=O})),vu=U(((e,t)=>{var r=Cl(),n=Ln();function o(i,l,a){var s=l(i);return n(i)?s:r(s,a(i))}t.exports=o})),wu=U(((e,t)=>{function r(n,o){for(var i=-1,l=n==null?0:n.length,a=0,s=[];++i{function r(){return[]}t.exports=r})),bu=U(((e,t)=>{var r=wu(),n=yu(),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;t.exports=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(a){return o.call(l,a)}))}:n})),xu=U(((e,t)=>{var r=vu(),n=bu(),o=vi();function i(l){return r(l,o,n)}t.exports=i})),Cu=U(((e,t)=>{var r=xu(),n=1,o=Object.prototype.hasOwnProperty;function i(l,a,s,c,u,f){var p=s&n,m=r(l),h=m.length;if(h!=r(a).length&&!p)return!1;for(var v=h;v--;){var S=m[v];if(!(p?S in a:o.call(a,S)))return!1}var M=f.get(l),y=f.get(a);if(M&&y)return M==a&&y==l;var k=!0;f.set(l,a),f.set(a,l);for(var I=p;++v{t.exports=fo()(fn(),"DataView")})),ku=U(((e,t)=>{t.exports=fo()(fn(),"Promise")})),Mu=U(((e,t)=>{t.exports=fo()(fn(),"WeakMap")})),Ru=U(((e,t)=>{var r=Su(),n=Qa(),o=ku(),i=xl(),l=Mu(),a=es(),s=Z0(),c="[object Map]",u="[object Object]",f="[object Promise]",p="[object Set]",m="[object WeakMap]",h="[object DataView]",v=s(r),S=s(n),M=s(o),y=s(i),k=s(l),I=a;(r&&I(new r(new ArrayBuffer(1)))!=h||n&&I(new n)!=c||o&&I(o.resolve())!=f||i&&I(new i)!=p||l&&I(new l)!=m)&&(I=function(P){var E=a(P),O=E==u?P.constructor:void 0,F=O?s(O):"";if(F)switch(F){case v:return h;case S:return c;case M:return f;case y:return p;case k:return m}return E}),t.exports=I})),Eu=U(((e,t)=>{var r=jl(),n=Fl(),o=mu(),i=Cu(),l=Ru(),a=Ln(),s=Al(),c=Ll(),u=1,f="[object Arguments]",p="[object Array]",m="[object Object]",h=Object.prototype.hasOwnProperty;function v(S,M,y,k,I,P){var E=a(S),O=a(M),F=E?p:l(S),C=O?p:l(M);F=F==f?m:F,C=C==f?m:C;var R=F==m,L=C==m,x=F==C;if(x&&s(S)){if(!s(M))return!1;E=!0,R=!1}if(x&&!R)return P||(P=new r),E||c(S)?n(S,M,y,k,I,P):o(S,M,F,y,k,I,P);if(!(y&u)){var w=R&&h.call(S,"__wrapped__"),T=L&&h.call(M,"__wrapped__");if(w||T){var H=w?S.value():S,b=T?M.value():M;return P||(P=new r),I(H,b,y,k,P)}}return x?(P||(P=new r),i(S,M,y,k,I,P)):!1}t.exports=v})),_l=U(((e,t)=>{var r=Eu(),n=hs();function o(i,l,a,s,c){return i===l?!0:i==null||l==null||!n(i)&&!n(l)?i!==i&&l!==l:r(i,l,a,s,o,c)}t.exports=o})),Iu=U(((e,t)=>{var r=jl(),n=_l(),o=1,i=2;function l(a,s,c,u){var f=c.length,p=f,m=!u;if(a==null)return!p;for(a=Object(a);f--;){var h=c[f];if(m&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++f{var r=ho();function n(o){return o===o&&!r(o)}t.exports=n})),Tu=U(((e,t)=>{var r=Nl(),n=vi();function o(i){for(var l=n(i),a=l.length;a--;){var s=l[a],c=i[s];l[a]=[s,c,r(c)]}return l}t.exports=o})),Wl=U(((e,t)=>{function r(n,o){return function(i){return i==null?!1:i[n]===o&&(o!==void 0||n in Object(i))}}t.exports=r})),Ou=U(((e,t)=>{var r=Iu(),n=Tu(),o=Wl();function i(l){var a=n(l);return a.length==1&&a[0][2]?o(a[0][0],a[0][1]):function(s){return s===l||r(s,l,a)}}t.exports=i})),Bl=U(((e,t)=>{var r=q0(),n=Gi();function o(i,l){l=r(l,i);for(var a=0,s=l.length;i!=null&&a{var r=Bl();function n(o,i,l){var a=o==null?void 0:r(o,i);return a===void 0?l:a}t.exports=n})),Hu=U(((e,t)=>{function r(n,o){return n!=null&&o in Object(n)}t.exports=r})),Du=U(((e,t)=>{var r=Hu(),n=G0();function o(i,l){return i!=null&&n(i,l,r)}t.exports=o})),zu=U(((e,t)=>{var r=_l(),n=Pu(),o=Du(),i=ns(),l=Nl(),a=Wl(),s=Gi(),c=1,u=2;function f(p,m){return i(p)&&l(m)?a(s(p),m):function(h){var v=n(h,p);return v===void 0&&v===m?o(h,p):r(m,v,c|u)}}t.exports=f})),Au=U(((e,t)=>{function r(n){return n}t.exports=r})),Lu=U(((e,t)=>{function r(n){return function(o){return o==null?void 0:o[n]}}t.exports=r})),ju=U(((e,t)=>{var r=Bl();function n(o){return function(i){return r(i,o)}}t.exports=n})),Fu=U(((e,t)=>{var r=Lu(),n=ju(),o=ns(),i=Gi();function l(a){return o(a)?r(i(a)):n(a)}t.exports=l})),_u=U(((e,t)=>{var r=Ou(),n=zu(),o=Au(),i=Ln(),l=Fu();function a(s){return typeof s=="function"?s:s==null?o:typeof s=="object"?i(s)?n(s[0],s[1]):r(s):l(s)}t.exports=a})),Nu=U(((e,t)=>{var r=Kc(),n=au(),o=_u(),i=Ln();function l(a,s){return function(c,u){var f=i(c)?r:n,p=s?s():{};return f(c,a,o(u,2),p)}}t.exports=l})),Wu=Gt(U(((e,t)=>{var r=Vc(),n=Nu(),o=Object.prototype.hasOwnProperty;t.exports=n(function(i,l,a){o.call(i,a)?i[a].push(l):r(i,a,[l])})}))(),1);function Bu(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v,S,M,y){if(M!==void 0||t[t.length-1]!==r[t.length-1])return;let k=Ml(S);Dr(t,s,l,a,i,(I,P,E,O,F)=>{if(I!==t[t.length-1])return;P+=I.width;let C=Math.max(P,O);C>n||(e.save(),e.beginPath(),e.rect(C,i+1,1e4,o-i-1),e.clip(),bo(F,E,o,c,u,h,v,k,(R,L,x,w)=>{if(!w&&S.length>0&&!S.some(_=>Vn(P,R,1e4,x,_.x,_.y,_.width,_.height)))return;let T=p.hasIndex(L),H=m.hasIndex(L);e.beginPath();let b=f==null?void 0:f(L),J=b===void 0?y:Pr(y,b);J.bgCell!==y.bgCell&&(e.fillStyle=J.bgCell,e.fillRect(P,R,1e4,x)),H&&(e.fillStyle=J.bgHeader,e.fillRect(P,R,1e4,x)),T&&(e.fillStyle=J.accentLight,e.fillRect(P,R,1e4,x))}),e.restore())})}function $u(e,t,r,n,o,i,l,a,s){let c=!1;for(let h of t)if(!h.sticky){c=l(h.sourceIndex);break}let u=s.horizontalBorderColor??s.borderColor,f=s.borderColor,p=c?vn(t):0,m;if(p!==0&&(m=ds(f,s.bgCell),e.beginPath(),e.moveTo(p+.5,0),e.lineTo(p+.5,n),e.strokeStyle=m,e.stroke()),o>0){let h=f===u&&m!==void 0?m:ds(u,s.bgCell),v=Xr(i,o,a);e.beginPath(),e.moveTo(0,n-v+.5),e.lineTo(r,n-v+.5),e.strokeStyle=h,e.stroke()}}var $l=(e,t,r)=>{let n=0,o=t,i=0,l=r;if(e!==void 0&&e.length>0){n=2**53-1,i=2**53-1,o=-(2**53-1),l=-(2**53-1);for(let a of e)n=Math.min(n,a.x-1),o=Math.max(o,a.x+a.width+1),i=Math.min(i,a.y-1),l=Math.max(l,a.y+a.height+1)}return{minX:n,maxX:o,minY:i,maxY:l}};function Vu(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h){var x,w;let v=h.bgCell,{minX:S,maxX:M,minY:y,maxY:k}=$l(a,i,l),I=[],P=l-Xr(m,p,c),E=s,O=r,F=0;for(;E+o=y&&T<=k-1){let b=(x=u==null?void 0:u(O))==null?void 0:x.bgCell;b!==void 0&&b!==v&&O>=m-p&&I.push({x:S,y:T,w:M-S,h:H,color:b})}E+=H,O0)for(let T=0;T=S&&b<=M&&f(T+1)&&I.push({x:b,y:F,w:H.width,h:R,color:J}),C+=H.width}if(I.length===0)return;let L;e.beginPath();for(let T=I.length-1;T>=0;T--){let H=I[T];L===void 0?L=H.color:H.color!==L&&(e.fillStyle=L,e.fill(),e.beginPath(),L=H.color),e.rect(H.x,H.y,H.w,H.h)}L!==void 0&&(e.fillStyle=L,e.fill()),e.beginPath()}function Vl(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v,S,M=!1){if(s!==void 0){e.beginPath(),e.save(),e.rect(0,0,i,l);for(let x of s)e.rect(x.x+1,x.y+1,x.width-1,x.height-1);e.clip("evenodd")}let y=S.horizontalBorderColor??S.borderColor,k=S.borderColor,{minX:I,maxX:P,minY:E,maxY:O}=$l(a,i,l),F=[];e.beginPath();let C=.5;for(let x=0;x=I&&T<=P&&m(x+1)&&F.push({x1:T,y1:Math.max(c,E),x2:T,y2:Math.min(l,O),color:k})}let R=l+.5;for(let x=v-h;x=E&&H<=O-1){let b=p==null?void 0:p(w);F.push({x1:I,y1:H,x2:P,y2:H,color:(b==null?void 0:b.horizontalBorderColor)??(b==null?void 0:b.borderColor)??y})}x+=f(w),w++}}let L=(0,Wu.default)(F,x=>x.color);for(let x of Object.keys(L)){e.strokeStyle=x;for(let w of L[x])e.moveTo(w.x1,w.y1),e.lineTo(w.x2,w.y2);e.stroke(),e.beginPath()}s!==void 0&&e.restore()}function Ku(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v,S,M,y){let k=[];e.imageSmoothingEnabled=!1;let I=Math.min(o.cellYOffset,l),P=Math.max(o.cellYOffset,l),E=0;if(typeof M=="number")E+=(P-I)*M;else for(let T=I;To.cellYOffset&&(E=-E),E+=s-o.translateY;let O=Math.min(o.cellXOffset,i),F=Math.max(o.cellXOffset,i),C=0;for(let T=O;To.cellXOffset&&(C=-C),C+=a-o.translateX;let R=vn(S);if(C!==0&&E!==0)return{regions:[]};let L=c>0?Xr(p,c,M):0,x=u-R-Math.abs(C),w=f-m-L-Math.abs(E)-1;if(x>150&&w>150){let T={sx:0,sy:0,sw:u*h,sh:f*h,dx:0,dy:0,dw:u*h,dh:f*h};if(E>0?(T.sy=(m+1)*h,T.sh=w*h,T.dy=(E+m+1)*h,T.dh=w*h,k.push({x:0,y:m,width:u,height:E+1})):E<0&&(T.sy=(-E+m+1)*h,T.sh=w*h,T.dy=(m+1)*h,T.dh=w*h,k.push({x:0,y:f+E-L,width:u,height:-E+L})),C>0?(T.sx=R*h,T.sw=x*h,T.dx=(C+R)*h,T.dw=x*h,k.push({x:R-1,y:0,width:C+2,height:f})):C<0&&(T.sx=(R-C)*h,T.sw=x*h,T.dx=R*h,T.dw=x*h,k.push({x:u+C,y:0,width:-C,height:f})),e.setTransform(1,0,0,1,0,0),y){if(R>0&&C!==0&&E===0&&(n===void 0||(r==null?void 0:r[1])!==!1)){let H=R*h,b=f*h;e.drawImage(t,0,0,H,b,0,0,H,b)}if(L>0&&C===0&&E!==0&&(n===void 0||(r==null?void 0:r[0])!==!1)){let H=(f-L)*h,b=u*h,J=L*h;e.drawImage(t,0,H,b,J,0,H,b,J)}}e.drawImage(t,T.sx,T.sy,T.sw,T.sh,T.dx,T.dy,T.dw,T.dh),e.scale(h,h)}return e.imageSmoothingEnabled=!0,{regions:k}}function Yu(e,t,r,n,o,i,l,a,s,c){let u=[];return t!==e.cellXOffset||r!==e.cellYOffset||n!==e.translateX||o!==e.translateY||Dr(s,r,n,o,a,(f,p,m,h)=>{if(f.sourceIndex===c){let v=Math.max(p,h)+1;return u.push({x:v,y:0,width:i-v,height:l}),!0}}),u}function Gu(e,t){if(t===void 0||e.width!==t.width||e.height!==t.height||e.theme!==t.theme||e.headerHeight!==t.headerHeight||e.rowHeight!==t.rowHeight||e.rows!==t.rows||e.freezeColumns!==t.freezeColumns||e.getRowThemeOverride!==t.getRowThemeOverride||e.isFocused!==t.isFocused||e.isResizing!==t.isResizing||e.verticalBorder!==t.verticalBorder||e.getCellContent!==t.getCellContent||e.highlightRegions!==t.highlightRegions||e.selection!==t.selection||e.dragAndDropState!==t.dragAndDropState||e.prelightCells!==t.prelightCells||e.touchMode!==t.touchMode||e.maxScaleFactor!==t.maxScaleFactor)return!1;if(e.mappedColumns!==t.mappedColumns){if(e.mappedColumns.length>100||e.mappedColumns.length!==t.mappedColumns.length)return!1;let r;for(let n=0;nO.style!=="no-outline");if(S===void 0||S.length===0)return;let M=vn(a),y=Xr(m,p,f),k=[s,0,a.length,m-p],I=[M,0,t,r-y],P=S.map(O=>{let F=O.range,C=O.style??"dashed";return jc(F,k,t,r,I).map(R=>{let L=R.rect,x=ai(L.x,L.y,t,r,u,c+u,n,o,i,l,m,s,p,a,f),w=L.width===1&&L.height===1?x:ai(L.x+L.width-1,L.y+L.height-1,t,r,u,c+u,n,o,i,l,m,s,p,a,f);return L.x+L.width>=a.length&&--w.width,L.y+L.height>=m&&--w.height,{color:O.color,style:C,clip:R.clip,rect:Lc({x:x.x,y:x.y,width:w.x+w.width-x.x,height:w.y+w.height-x.y},t,r,8)}})}),E=()=>{e.lineWidth=1;let O=!1;for(let F of P)for(let C of F)if((C==null?void 0:C.rect)!==void 0&&Vn(0,0,t,r,C.rect.x,C.rect.y,C.rect.width,C.rect.height)){let R=O,L=!Ac(C.clip,C.rect);L&&(e.save(),e.rect(C.clip.x,C.clip.y,C.clip.width,C.clip.height),e.clip()),C.style==="dashed"&&!O?(e.setLineDash([5,3]),O=!0):(C.style==="solid"||C.style==="solid-outline")&&O&&(e.setLineDash([]),O=!1),e.strokeStyle=C.style==="solid-outline"?fr(fr(C.color,v.borderColor),v.bgCell):gn(C.color,1),e.strokeRect(C.rect.x+.5,C.rect.y+.5,C.rect.width-1,C.rect.height-1),L&&(e.restore(),O=R)}O&&e.setLineDash([])};return E(),E}function Yl(e,t,r,n,o){e.beginPath(),e.moveTo(t,r),e.lineTo(t,n),e.lineWidth=2,e.strokeStyle=o,e.stroke(),e.globalAlpha=1}function wi(e,t,r,n,o,i,l,a,s,c,u,f,p,m,h,v,S){if(u.current===void 0)return;let M=u.current.range,y=u.current.cell,k=[M.x+M.width-1,M.y+M.height-1];if(y[1]>=S&&k[1]>=S||!l.some(w=>w.sourceIndex===y[0]||w.sourceIndex===k[0]))return;let[I,P]=u.current.cell,E=p(u.current.cell),O=E.span??[I,I],F=P>=S-m,C=m>0&&!F?Xr(S,m,f)-1:0,R=k[1],L;if(Dr(l,n,o,i,c,(w,T,H,b,J)=>{if(w.sticky&&I>w.sourceIndex)return;let _=w.sourceIndexO[1],ee=w.sourceIndex===k[0];if(!(!ee&&(_||Q)))return bo(J,H,r,S,f,m,h,void 0,(K,se,oe)=>{if(se!==P&&se!==R)return;let ue=T,de=w.width;if(E.span!==void 0){let X=El(E.span,T,K,w.width,oe,w,a),q=w.sticky?X[0]:X[1];q!==void 0&&(ue=q.x,de=q.width)}return se===R&&ee&&v&&(L=()=>{var X;b>ue&&!w.sticky&&(e.beginPath(),e.rect(b,0,t-b,r),e.clip()),e.beginPath(),e.rect(ue+de-4,K+oe-4,4,4),e.fillStyle=((X=w.themeOverride)==null?void 0:X.accentColor)??s.accentColor,e.fill()}),L!==void 0}),L!==void 0}),L===void 0)return;let x=()=>{e.save(),e.beginPath(),e.rect(0,c,t,r-c-C),e.clip(),L==null||L(),e.restore()};return x(),x}function Uu(e,t,r,n,o,i,l,a,s){s===void 0||s.size===0||(e.beginPath(),Rl(t,r,i,n,(c,u,f,p,m,h)=>{s.hasItemInRectangle({x:c[0],y:-2,width:c[1]-c[0]+1,height:1})&&e.rect(f,p,m,h)}),Dr(t,a,i,l,o,(c,u,f,p)=>{let m=Math.max(0,p-u),h=u+m+1,v=c.width-m-1;s.has([c.sourceIndex,-1])&&e.rect(h,n,v,o-n)}),e.clip())}function Xu(e,t,r,n,o,i,l,a,s,c){let u=0;return Dr(e,i,n,o,r,(f,p,m,h,v)=>(bo(v,m,t,l,a,s,c,void 0,(S,M,y,k)=>{k||(u=Math.max(M,u))}),!0)),u}function Gl(e,t){var ir;let{canvasCtx:r,headerCanvasCtx:n,width:o,height:i,cellXOffset:l,cellYOffset:a,translateX:s,translateY:c,mappedColumns:u,enableGroups:f,freezeColumns:p,dragAndDropState:m,theme:h,drawFocus:v,headerHeight:S,groupHeaderHeight:M,disabledRows:y,rowHeight:k,verticalBorder:I,overrideCursor:P,isResizing:E,selection:O,fillHandle:F,freezeTrailingRows:C,rows:R,getCellContent:L,getGroupDetails:x,getRowThemeOverride:w,isFocused:T,drawHeaderCallback:H,prelightCells:b,drawCellCallback:J,highlightRegions:_,resizeCol:Q,imageLoader:ee,lastBlitData:K,hoverValues:se,hyperWrapping:oe,hoverInfo:ue,spriteManager:de,maxScaleFactor:X,hasAppendRow:q,touchMode:te,enqueue:ne,renderStateProvider:le,getCellRenderer:Fe,renderStrategy:Oe,bufferACtx:Ee,bufferBCtx:Ge,damage:Me,minimumCellWidth:mt,resizeIndicator:vt}=e;if(o===0||i===0)return;let Qe=Oe==="double-buffer",ae=Math.min(X,Math.ceil(window.devicePixelRatio??1)),_e=Oe!=="direct"&&Gu(e,t),He=r.canvas;(He.width!==o*ae||He.height!==i*ae)&&(He.width=o*ae,He.height=i*ae,He.style.width=o+"px",He.style.height=i+"px");let Ve=n.canvas,xe=f?M+S:S,Ke=xe+1;(Ve.width!==o*ae||Ve.height!==Ke*ae)&&(Ve.width=o*ae,Ve.height=Ke*ae,Ve.style.width=o+"px",Ve.style.height=Ke+"px");let Ne=Ee.canvas,Ue=Ge.canvas;Qe&&(Ne.width!==o*ae||Ne.height!==i*ae)&&(Ne.width=o*ae,Ne.height=i*ae,K.current!==void 0&&(K.current.aBufferScroll=void 0)),Qe&&(Ue.width!==o*ae||Ue.height!==i*ae)&&(Ue.width=o*ae,Ue.height=i*ae,K.current!==void 0&&(K.current.bBufferScroll=void 0));let me=K.current;if(_e===!0&&l===(me==null?void 0:me.cellXOffset)&&a===(me==null?void 0:me.cellYOffset)&&s===(me==null?void 0:me.translateX)&&c===(me==null?void 0:me.translateY))return;let be=null;Qe&&(be=r);let rt=n,qe;qe=Qe?Me===void 0?(me==null?void 0:me.lastBuffer)==="b"?Ee:Ge:(me==null?void 0:me.lastBuffer)==="b"?Ge:Ee:r;let Xe=qe.canvas,ht=Qe?Xe===Ne?Ue:Ne:He,et=typeof k=="number"?()=>k:k;rt.save(),qe.save(),rt.beginPath(),qe.beginPath(),rt.textBaseline="middle",qe.textBaseline="middle",ae!==1&&(rt.scale(ae,ae),qe.scale(ae,ae));let De=li(u,l,o,m,s),St=[],zt=v&&((ir=O.current)==null?void 0:ir.cell[1])===a&&c===0,kt=!1;if(_!==void 0){for(let Re of _)if(Re.style!=="no-outline"&&Re.range.y===a&&c===0){kt=!0;break}}let Rt=()=>{Nc(rt,De,f,ue,o,s,S,M,m,E,O,h,de,se,I,x,Me,H,te),Vl(rt,De,a,s,c,o,i,void 0,void 0,M,xe,et,w,I,C,R,h,!0),rt.beginPath(),rt.moveTo(0,Ke-.5),rt.lineTo(o,Ke-.5),rt.strokeStyle=fr(h.headerBottomBorderColor??h.horizontalBorderColor??h.borderColor,h.bgHeader),rt.stroke(),kt&&Kl(rt,o,i,l,a,s,c,u,p,S,M,k,C,R,_,h),zt&&wi(rt,o,i,a,s,c,De,u,h,xe,O,et,L,C,q,F,R)};if(Me!==void 0){let Re=De[De.length-1].sourceIndex+1,yt=Me.hasItemInRegion([{x:l,y:-2,width:Re,height:2},{x:l,y:a,width:Re,height:300},{x:0,y:a,width:p,height:300},{x:0,y:-2,width:p,height:2},{x:l,y:R-C,width:Re,height:C,when:C>0}]),mr=lr=>{Tl(lr,De,u,i,xe,s,c,a,R,et,L,x,w,y,T,v,C,q,St,Me,O,b,_,ee,de,se,ue,J,oe,h,ne,le,Fe,P,mt);let Qt=O.current;F&&v&&Qt!==void 0&&Me.has(al(Qt.range))&&wi(lr,o,i,a,s,c,De,u,h,xe,O,et,L,C,q,F,R)};yt&&(mr(qe),be!==null&&(be.save(),be.scale(ae,ae),be.textBaseline="middle",mr(be),be.restore()),Me.hasHeader()&&(Uu(rt,De,o,M,xe,s,c,a,Me),Rt())),qe.restore(),rt.restore();return}if((_e!==!0||l!==(me==null?void 0:me.cellXOffset)||s!==(me==null?void 0:me.translateX)||zt!==(me==null?void 0:me.mustDrawFocusOnHeader)||kt!==(me==null?void 0:me.mustDrawHighlightRingsOnHeader))&&Rt(),_e===!0){Zt(ht!==void 0&&me!==void 0);let{regions:Re}=Ku(qe,ht,ht===Ne?me.aBufferScroll:me.bBufferScroll,ht===Ne?me.bBufferScroll:me.aBufferScroll,me,l,a,s,c,C,o,i,R,xe,ae,u,De,k,Qe);St=Re}else _e!==!1&&(Zt(me!==void 0),St=Yu(me,l,a,s,c,o,i,xe,De,_e));$u(qe,De,o,i,C,R,I,et,h);let Ft=Kl(qe,o,i,l,a,s,c,u,p,S,M,k,C,R,_,h),wt=v?wi(qe,o,i,a,s,c,De,u,h,xe,O,et,L,C,q,F,R):void 0;if(qe.fillStyle=h.bgCell,St.length>0){qe.beginPath();for(let Re of St)qe.rect(Re.x,Re.y,Re.width,Re.height);qe.clip(),qe.fill(),qe.beginPath()}else qe.fillRect(0,0,o,i);let pr=Tl(qe,De,u,i,xe,s,c,a,R,et,L,x,w,y,T,v,C,q,St,Me,O,b,_,ee,de,se,ue,J,oe,h,ne,le,Fe,P,mt);Bu(qe,De,u,o,i,xe,s,c,a,R,et,w,O.rows,y,C,q,St,Me,h),Vu(qe,De,a,s,c,o,i,St,xe,et,w,I,C,R,h),Vl(qe,De,a,s,c,o,i,St,pr,M,xe,et,w,I,C,R,h),Ft==null||Ft(),wt==null||wt(),E&&vt!=="none"&&Dr(De,0,s,0,xe,(Re,yt)=>Re.sourceIndex===Q?(Yl(rt,yt+Re.width,0,xe+1,fr(h.resizeIndicatorColor??h.accentLight,h.bgHeader)),vt==="full"&&Yl(qe,yt+Re.width,xe,i,fr(h.resizeIndicatorColor??h.accentLight,h.bgCell)),!0):!1),be!==null&&(be.fillStyle=h.bgCell,be.fillRect(0,0,o,i),be.drawImage(qe.canvas,0,0));let Ar=Xu(De,i,xe,s,c,a,R,et,C,q);ee==null||ee.setWindow({x:l,y:a,width:De.length,height:Ar-a},p,Array.from({length:C},(Re,yt)=>R-1-yt));let ut=me!==void 0&&(l!==me.cellXOffset||s!==me.translateX),kr=me!==void 0&&(a!==me.cellYOffset||c!==me.translateY);K.current={cellXOffset:l,cellYOffset:a,translateX:s,translateY:c,mustDrawFocusOnHeader:zt,mustDrawHighlightRingsOnHeader:kt,lastBuffer:Qe?Xe===Ne?"a":"b":void 0,aBufferScroll:Xe===Ne?[ut,kr]:me==null?void 0:me.aBufferScroll,bBufferScroll:Xe===Ue?[ut,kr]:me==null?void 0:me.bBufferScroll},qe.restore(),rt.restore()}var Ul=Gt(yo(),1),qu=80;function Zu(e){let t=e-1;return t*t*t+1}var Ju=class{constructor(e){tt(this,"callback");tt(this,"currentHoveredItem");tt(this,"leavingItems",[]);tt(this,"lastAnimationTime");tt(this,"addToLeavingItems",e=>{this.leavingItems.some(t=>Nn(t.item,e.item))||this.leavingItems.push(e)});tt(this,"removeFromLeavingItems",e=>{let t=this.leavingItems.find(r=>Nn(r.item,e));return this.leavingItems=this.leavingItems.filter(r=>r!==t),(t==null?void 0:t.hoverAmount)??0});tt(this,"cleanUpLeavingElements",()=>{this.leavingItems=this.leavingItems.filter(e=>e.hoverAmount>0)});tt(this,"shouldStep",()=>{let e=this.leavingItems.length>0,t=this.currentHoveredItem!==void 0&&this.currentHoveredItem.hoverAmount<1;return e||t});tt(this,"getAnimatingItems",()=>this.currentHoveredItem===void 0?this.leavingItems.map(e=>({...e,hoverAmount:Zu(e.hoverAmount)})):[...this.leavingItems,this.currentHoveredItem]);tt(this,"step",e=>{if(this.lastAnimationTime===void 0)this.lastAnimationTime=e;else{let t=(e-this.lastAnimationTime)/qu;for(let n of this.leavingItems)n.hoverAmount=(0,Ul.default)(n.hoverAmount-t,0,1);this.currentHoveredItem!==void 0&&(this.currentHoveredItem.hoverAmount=(0,Ul.default)(this.currentHoveredItem.hoverAmount+t,0,1));let r=this.getAnimatingItems();this.callback(r),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=e,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0});tt(this,"setHovered",e=>{var t;Nn((t=this.currentHoveredItem)==null?void 0:t.item,e)||(this.currentHoveredItem!==void 0&&this.addToLeavingItems(this.currentHoveredItem),e===void 0?this.currentHoveredItem=void 0:this.currentHoveredItem={item:e,hoverAmount:this.removeFromLeavingItems(e)},this.lastAnimationTime===void 0&&window.requestAnimationFrame(this.step))});this.callback=e}},Qu=class{constructor(e){tt(this,"fn");tt(this,"val");this.fn=e}get value(){return this.val??(this.val=this.fn())}};function yi(e){return new Qu(e)}const ed=yi(()=>window.navigator.userAgent.includes("Firefox")),xo=yi(()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")),Co=yi(()=>window.navigator.platform.toLowerCase().startsWith("mac"));function td(e){let t=d.useRef([]),r=d.useRef(0),n=d.useRef(e);n.current=e;let o=d.useCallback(()=>{let i=()=>window.requestAnimationFrame(l),l=()=>{let a=t.current.map(ui);t.current=[],n.current(new $n(a)),t.current.length>0?r.current++:r.current=0};window.requestAnimationFrame(r.current>600?i:l)},[]);return d.useCallback(i=>{t.current.length===0&&o();let l=or(i[0],i[1]);t.current.includes(l)||t.current.push(l)},[o])}const Xl="header",ql="group-header";var Un;(function(e){e[e.Start=-2]="Start",e[e.StartPadding=-1]="StartPadding",e[e.Center=0]="Center",e[e.EndPadding=1]="EndPadding",e[e.End=2]="End"})(Un||(Un={}));function Zl(e,t){return e===t?!0:(e==null?void 0:e.kind)==="out-of-bounds"?(e==null?void 0:e.kind)===(t==null?void 0:t.kind)&&(e==null?void 0:e.location[0])===(t==null?void 0:t.location[0])&&(e==null?void 0:e.location[1])===(t==null?void 0:t.location[1])&&(e==null?void 0:e.region[0])===(t==null?void 0:t.region[0])&&(e==null?void 0:e.region[1])===(t==null?void 0:t.region[1]):(e==null?void 0:e.kind)===(t==null?void 0:t.kind)&&(e==null?void 0:e.location[0])===(t==null?void 0:t.location[0])&&(e==null?void 0:e.location[1])===(t==null?void 0:t.location[1])}var Jl=Gt(yo(),1),rd=Gt(Sl(),1),Ql=6,nd=(e,t)=>{var r;return e.kind===pe.Custom?e.copyData:((r=t==null?void 0:t(e))==null?void 0:r.getAccessibilityString(e))??""},od=d.memo(d.forwardRef((e,t)=>{let{width:r,height:n,accessibilityHeight:o,columns:i,cellXOffset:l,cellYOffset:a,headerHeight:s,fillHandle:c=!1,groupHeaderHeight:u,rowHeight:f,rows:p,getCellContent:m,getRowThemeOverride:h,onHeaderMenuClick:v,onHeaderIndicatorClick:S,enableGroups:M,isFilling:y,onCanvasFocused:k,onCanvasBlur:I,isFocused:P,selection:E,freezeColumns:O,onContextMenu:F,freezeTrailingRows:C,fixedShadowX:R=!0,fixedShadowY:L=!0,drawFocusRing:x,onMouseDown:w,onMouseUp:T,onMouseMoveRaw:H,onMouseMove:b,onItemHovered:J,dragAndDropState:_,firstColAccessible:Q,onKeyDown:ee,onKeyUp:K,highlightRegions:se,canvasRef:oe,onDragStart:ue,onDragEnd:de,eventTargetRef:X,isResizing:q,resizeColumn:te,isDragging:ne,isDraggable:le=!1,allowResize:Fe,disabledRows:Oe,hasAppendRow:Ee,getGroupDetails:Ge,theme:Me,prelightCells:mt,headerIcons:vt,verticalBorder:Qe,drawCell:ae,drawHeader:_e,onCellFocused:He,onDragOverCell:Ve,onDrop:xe,onDragLeave:Ke,imageWindowLoader:Ne,smoothScrollX:Ue=!1,smoothScrollY:me=!1,experimental:be,getCellRenderer:rt,resizeIndicator:qe="full"}=e,Xe=e.translateX??0,ht=e.translateY??0,et=Math.max(O,Math.min(i.length-1,l)),De=d.useRef(null),St=d.useRef((be==null?void 0:be.eventTarget)??window),zt=St.current,kt=Ne,Rt=d.useRef(),[Ft,wt]=d.useState(!1),pr=d.useRef([]),Ar=d.useRef(),[ut,kr]=d.useState(),[ir,Re]=d.useState(),yt=d.useRef(null),[mr,lr]=d.useState(),[Qt,$e]=d.useState(!1),xt=d.useRef(Qt);xt.current=Qt;let Mt=d.useMemo(()=>new Dc(vt,()=>{Cn.current=void 0,Qr.current()}),[vt]),Nt=M?u+s:s,Pt=d.useRef(-1),$t=((be==null?void 0:be.enableFirefoxRescaling)??!1)&&ed.value,Lr=((be==null?void 0:be.enableSafariRescaling)??!1)&&xo.value;d.useLayoutEffect(()=>{window.devicePixelRatio===1||!$t&&!Lr||(Pt.current!==-1&&wt(!0),window.clearTimeout(Pt.current),Pt.current=window.setTimeout(()=>{wt(!1),Pt.current=-1},200))},[a,et,Xe,ht,$t,Lr]);let Et=$s(i,O),Ct=R?vn(Et,_):0,Tt=d.useCallback((j,re,ye)=>{let fe=j.getBoundingClientRect();if(re>=Et.length||ye>=p)return;let A=fe.width/r,ce=ai(re,ye,r,n,u,Nt,et,a,Xe,ht,p,O,C,Et,f);return A!==1&&(ce.x*=A,ce.y*=A,ce.width*=A,ce.height*=A),ce.x+=fe.x,ce.y+=fe.y,ce},[r,n,u,Nt,et,a,Xe,ht,p,O,C,Et,f]),At=d.useCallback((j,re,ye,fe)=>{let A=j.getBoundingClientRect(),ce=A.width/r,ve=(re-A.left)/ce,je=(ye-A.top)/ce,ke=li(Et,et,r,void 0,Xe),st=0,he=0;fe instanceof MouseEvent&&(st=fe.button,he=fe.buttons);let Le=Gs(ve,ke,Xe),Ye=Us(je,n,M,s,u,p,f,a,ht,C),it=(fe==null?void 0:fe.shiftKey)===!0,Ot=(fe==null?void 0:fe.ctrlKey)===!0,Ut=(fe==null?void 0:fe.metaKey)===!0,lt=fe!==void 0&&!(fe instanceof MouseEvent)||(fe==null?void 0:fe.pointerType)==="touch",gt=[ve<0?-1:rr||je>n){let Pe=ve>r?1:ve<0?-1:0,at=je>n?1:je<0?-1:0,_t=Pe*2,an=at*2;Pe===0&&(_t=Le===-1?Un.EndPadding:Un.Center),at===0&&(an=Ye===void 0?Un.EndPadding:Un.Center);let cr=!1;if(Le===-1&&Ye===-1){let Dt=Tt(j,Et.length-1,-1);Zt(Dt!==void 0),cr=rer&&ven&&je=0?(at=!0,Pe=Tt(j,_t,Ye),Zt(Pe!==void 0),pt={kind:M&&Ye===-2?ql:Xl,location:[_t,Ye],bounds:Pe,group:Et[_t].group??"",isEdge:at,shiftKey:it,ctrlKey:Ot,metaKey:Ut,isTouch:lt,localEventX:re-Pe.x,localEventY:ye-Pe.y,button:st,buttons:he,scrollEdge:gt}):pt={kind:M&&Ye===-2?ql:Xl,group:Et[Le].group??"",location:[Le,Ye],bounds:Pe,isEdge:at,shiftKey:it,ctrlKey:Ot,metaKey:Ut,isTouch:lt,localEventX:re-Pe.x,localEventY:ye-Pe.y,button:st,buttons:he,scrollEdge:gt}}else{let Pe=Tt(j,Le,Ye);Zt(Pe!==void 0);let at=Pe!==void 0&&Pe.x+Pe.width-re<5,_t=!1;if(c&&E.current!==void 0){let an=al(E.current.range),cr=Tt(j,an[0],an[1]);if(cr!==void 0){let Ht=cr.x+cr.width-2,Dt=cr.y+cr.height-2;_t=Math.abs(Ht-re){}),jr=d.useRef(ut);jr.current=ut;let[Rr,Er]=d.useMemo(()=>{let j=document.createElement("canvas"),re=document.createElement("canvas");return j.style.display="none",j.style.opacity="0",j.style.position="fixed",re.style.display="none",re.style.opacity="0",re.style.position="fixed",[j.getContext("2d",{alpha:!1}),re.getContext("2d",{alpha:!1})]},[]);d.useLayoutEffect(()=>{if(!(Rr===null||Er===null))return document.documentElement.append(Rr.canvas),document.documentElement.append(Er.canvas),()=>{Rr.canvas.remove(),Er.canvas.remove()}},[Rr,Er]);let vr=d.useMemo(()=>new nc,[]),Io=$t&&Ft?1:Lr&&Ft?2:5,To=(be==null?void 0:be.disableMinimumCellWidth)===!0?1:10,Cn=d.useRef(),Sn=d.useRef(null),kn=d.useRef(null),Jr=d.useCallback(()=>{var ve;let j=De.current,re=yt.current;if(j===null||re===null||(Sn.current===null&&(Sn.current=j.getContext("2d",{alpha:!1}),j.width=0,j.height=0),kn.current===null&&(kn.current=re.getContext("2d",{alpha:!1}),re.width=0,re.height=0),Sn.current===null||kn.current===null||Rr===null||Er===null))return;let ye=!1,fe=je=>{ye=!0,lr(je)},A=Cn.current,ce={headerCanvasCtx:kn.current,canvasCtx:Sn.current,bufferACtx:Rr,bufferBCtx:Er,width:r,height:n,cellXOffset:et,cellYOffset:a,translateX:Math.round(Xe),translateY:Math.round(ht),mappedColumns:Et,enableGroups:M,freezeColumns:O,dragAndDropState:_,theme:Me,headerHeight:s,groupHeaderHeight:u,disabledRows:Oe??nt.empty(),rowHeight:f,verticalBorder:Qe,isResizing:q,resizeCol:te,isFocused:P,selection:E,fillHandle:c,drawCellCallback:ae,hasAppendRow:Ee,overrideCursor:fe,maxScaleFactor:Io,freezeTrailingRows:C,rows:p,drawFocus:x,getCellContent:m,getGroupDetails:Ge??(je=>({name:je})),getRowThemeOverride:h,drawHeaderCallback:_e,prelightCells:mt,highlightRegions:se,imageLoader:kt,lastBlitData:Ar,damage:Rt.current,hoverValues:pr.current,hoverInfo:jr.current,spriteManager:Mt,scrolling:Ft,hyperWrapping:(be==null?void 0:be.hyperWrapping)??!1,touchMode:Qt,enqueue:Eo.current,renderStateProvider:vr,renderStrategy:(be==null?void 0:be.renderStrategy)??(xo.value?"double-buffer":"single-buffer"),getCellRenderer:rt,minimumCellWidth:To,resizeIndicator:qe};ce.damage===void 0?(Cn.current=ce,Gl(ce,A)):Gl(ce,void 0),!ye&&(ce.damage===void 0||ce.damage.has((ve=jr==null?void 0:jr.current)==null?void 0:ve[0]))&&lr(void 0)},[Rr,Er,r,n,et,a,Xe,ht,Et,M,O,_,Me,s,u,Oe,f,Qe,q,Ee,te,P,E,c,C,p,x,Io,m,Ge,h,ae,_e,mt,se,kt,Mt,Ft,be==null?void 0:be.hyperWrapping,be==null?void 0:be.renderStrategy,Qt,vr,rt,To,qe]),Qr=d.useRef(Jr);d.useLayoutEffect(()=>{Jr(),Qr.current=Jr},[Jr]),d.useLayoutEffect(()=>{(async()=>{var j;((j=document==null?void 0:document.fonts)==null?void 0:j.ready)!==void 0&&(await document.fonts.ready,Cn.current=void 0,Qr.current())})()},[]);let Fr=d.useCallback(j=>{Rt.current=j,Qr.current(),Rt.current=void 0},[]);Eo.current=td(Fr);let Oo=d.useCallback(j=>{Fr(new $n(j.map(re=>re.cell)))},[Fr]);kt.setCallback(Fr);let[Mi,Po]=d.useState(!1),[Mn,_r]=Mr??[],Ri=Mn!==void 0&&_r===-1,qn=Mn!==void 0&&_r===-2,Ho=!1,Zn=!1,en=mr;if(en===void 0&&Mn!==void 0&&_r!==void 0&&_r>-1&&_r({contain:"strict",display:"block",cursor:Jn}),[Jn]),Vt=d.useRef("default"),Do=X==null?void 0:X.current;Do!=null&&Vt.current!==ft.cursor&&(Do.style.cursor=Vt.current=ft.cursor);let Ir=d.useCallback((j,re,ye,fe)=>{if(Ge===void 0)return;let A=Ge(j);if(A.actions!==void 0){let ce=Pl(re,A.actions);for(let[ve,je]of ce.entries())if(qr(je,ye+re.x,fe+je.y))return A.actions[ve]}},[Ge]),Tr=d.useCallback((j,re,ye,fe)=>{let A=Et[re];if(!ne&&!q&&!(ir??!1)){let ce=Tt(j,re,-1);Zt(ce!==void 0);let ve=Hl(void 0,A,ce.x,ce.y,ce.width,ce.height,Me,ni(A.title)==="rtl");if(A.hasMenu===!0&&ve.menuBounds!==void 0&&qr(ve.menuBounds,ye,fe))return{area:"menu",bounds:ve.menuBounds};if(A.indicatorIcon!==void 0&&ve.indicatorIconBounds!==void 0&&qr(ve.indicatorIconBounds,ye,fe))return{area:"indicator",bounds:ve.indicatorIconBounds}}},[Et,Tt,ir,ne,q,Me]),Rn=d.useRef(0),Nr=d.useRef(),En=d.useRef(!1),tn=d.useCallback(j=>{let re=De.current,ye=X==null?void 0:X.current;if(re===null||j.target!==re&&j.target!==ye)return;En.current=!0;let fe,A;if(j instanceof MouseEvent?(fe=j.clientX,A=j.clientY):(fe=j.touches[0].clientX,A=j.touches[0].clientY),j.target===ye&&ye!==null){let ve=ye.getBoundingClientRect();if(fe>ve.right||A>ve.bottom)return}let ce=At(re,fe,A,j);Nr.current=ce.location,ce.isTouch&&(Rn.current=Date.now()),xt.current!==ce.isTouch&&$e(ce.isTouch),!(ce.kind==="header"&&Tr(re,ce.location[0],fe,A)!==void 0)&&(ce.kind==="group-header"&&Ir(ce.group,ce.bounds,ce.localEventX,ce.localEventY)!==void 0||(w==null||w(ce),!ce.isTouch&&le!==!0&&le!==ce.kind&&ce.button<3&&ce.button!==1&&j.preventDefault()))},[X,le,At,Ir,Tr,w]);jt("touchstart",tn,zt,!1),jt("mousedown",tn,zt,!1);let Or=d.useRef(0),rn=d.useCallback(j=>{var Le,Ye;let re=Or.current;Or.current=Date.now();let ye=De.current;if(En.current=!1,T===void 0||ye===null)return;let fe=X==null?void 0:X.current,A=j.target!==ye&&j.target!==fe,ce,ve,je=!0;if(j instanceof MouseEvent){if(ce=j.clientX,ve=j.clientY,je=j.button<3,j.pointerType==="touch")return}else ce=j.changedTouches[0].clientX,ve=j.changedTouches[0].clientY;let ke=At(ye,ce,ve,j);ke.isTouch&&Rn.current!==0&&Date.now()-Rn.current>500&&(ke={...ke,isLongTouch:!0}),re!==0&&Date.now()-re<(ke.isTouch?1e3:500)&&(ke={...ke,isDoubleClick:!0}),xt.current!==ke.isTouch&&$e(ke.isTouch),!A&&j.cancelable&&je&&j.preventDefault();let[st]=ke.location,he=Tr(ye,st,ce,ve);if(ke.kind==="header"&&he!==void 0){(ke.button!==0||((Le=Nr.current)==null?void 0:Le[0])!==st||((Ye=Nr.current)==null?void 0:Ye[1])!==-1)&&T(ke,!0);return}else if(ke.kind==="group-header"){let it=Ir(ke.group,ke.bounds,ke.localEventX,ke.localEventY);if(it!==void 0){ke.button===0&&it.onClick(ke);return}}T(ke,A)},[T,X,At,Tr,Ir]);jt("mouseup",rn,zt,!1),jt("touchend",rn,zt,!1),jt("click",d.useCallback(j=>{var st,he;let re=De.current;if(re===null)return;let ye=X==null?void 0:X.current,fe=j.target!==re&&j.target!==ye,A,ce,ve=!0;j instanceof MouseEvent?(A=j.clientX,ce=j.clientY,ve=j.button<3):(A=j.changedTouches[0].clientX,ce=j.changedTouches[0].clientY);let je=At(re,A,ce,j);xt.current!==je.isTouch&&$e(je.isTouch),!fe&&j.cancelable&&ve&&j.preventDefault();let[ke]=je.location;if(je.kind==="header"){let Le=Tr(re,ke,A,ce);Le!==void 0&&je.button===0&&((st=Nr.current)==null?void 0:st[0])===ke&&((he=Nr.current)==null?void 0:he[1])===-1&&(Le.area==="menu"?v==null||v(ke,Le.bounds):Le.area==="indicator"&&(S==null||S(ke,Le.bounds)))}else if(je.kind==="group-header"){let Le=Ir(je.group,je.bounds,je.localEventX,je.localEventY);Le!==void 0&&je.button===0&&Le.onClick(je)}},[X,At,Tr,v,S,Ir]),zt,!1),jt("contextmenu",d.useCallback(j=>{let re=De.current,ye=X==null?void 0:X.current;re===null||j.target!==re&&j.target!==ye||F===void 0||F(At(re,j.clientX,j.clientY,j),()=>{j.cancelable&&j.preventDefault()})},[X,At,F]),(X==null?void 0:X.current)??null,!1);let zo=d.useCallback(j=>{Rt.current=new $n(j.map(re=>re.item)),pr.current=j,Qr.current(),Rt.current=void 0},[]),Qn=d.useMemo(()=>new Ju(zo),[zo]),Ie=d.useRef(Qn);Ie.current=Qn,d.useLayoutEffect(()=>{let j=Ie.current;if(Mr===void 0||Mr[1]<0){j.setHovered(Mr);return}let re=m(Mr,!0),ye=rt(re),fe=ye===void 0&&re.kind===pe.Custom||(ye==null?void 0:ye.needsHover)!==void 0&&(typeof ye.needsHover=="boolean"?ye.needsHover:ye.needsHover(re));j.setHovered(fe?Mr:void 0)},[m,rt,Mr]);let eo=d.useRef();jt("mousemove",d.useCallback(j=>{var je;let re=De.current;if(re===null)return;let ye=X==null?void 0:X.current,fe=j.target!==re&&j.target!==ye,A=At(re,j.clientX,j.clientY,j);if(A.kind!=="out-of-bounds"&&fe&&!En.current&&!A.isTouch)return;let ce=(ke,st)=>{kr(he=>he===ke||(he==null?void 0:he[0][0])===(ke==null?void 0:ke[0][0])&&(he==null?void 0:he[0][1])===(ke==null?void 0:ke[0][1])&&((he==null?void 0:he[1][0])===(ke==null?void 0:ke[1][0])&&(he==null?void 0:he[1][1])===(ke==null?void 0:ke[1][1])||!st)?he:ke)};if(!Zl(A,eo.current))lr(void 0),J==null||J(A),ce(A.kind==="out-of-bounds"?void 0:[A.location,[A.localEventX,A.localEventY]],!0),eo.current=A;else if(A.kind==="cell"||A.kind==="header"||A.kind==="group-header"){let ke=!1,st=!0;if(A.kind==="cell"){let Le=m(A.location);st=((je=rt(Le))==null?void 0:je.needsHoverPosition)??Le.kind===pe.Custom,ke=st}else ke=!0;let he=[A.location,[A.localEventX,A.localEventY]];ce(he,st),jr.current=he,ke&&Fr(new $n([A.location]))}let ve=A.location[0]>=(Q?0:1);Re(A.kind==="header"&&A.isEdge&&ve&&Fe===!0),Po(A.kind==="cell"&&A.isFillHandle),H==null||H(j),b(A)},[X,At,Q,Fe,H,b,J,m,rt,Fr]),zt,!0);let Ei=d.useCallback(j=>{let re=De.current;if(re===null)return;let ye,fe;E.current!==void 0&&(ye=Tt(re,E.current.cell[0],E.current.cell[1]),fe=E.current.cell),ee==null||ee({bounds:ye,stopPropagation:()=>j.stopPropagation(),preventDefault:()=>j.preventDefault(),cancel:()=>{},ctrlKey:j.ctrlKey,metaKey:j.metaKey,shiftKey:j.shiftKey,altKey:j.altKey,key:j.key,keyCode:j.keyCode,rawEvent:j,location:fe})},[ee,E,Tt]),ar=d.useCallback(j=>{let re=De.current;if(re===null)return;let ye,fe;E.current!==void 0&&(ye=Tt(re,E.current.cell[0],E.current.cell[1]),fe=E.current.cell),K==null||K({bounds:ye,stopPropagation:()=>j.stopPropagation(),preventDefault:()=>j.preventDefault(),cancel:()=>{},ctrlKey:j.ctrlKey,metaKey:j.metaKey,shiftKey:j.shiftKey,altKey:j.altKey,key:j.key,keyCode:j.keyCode,rawEvent:j,location:fe})},[K,E,Tt]),wr=d.useCallback(j=>{if(De.current=j,oe!==void 0&&(oe.current=j),be==null?void 0:be.eventTarget)St.current=be.eventTarget;else if(j===null)St.current=window;else{let re=j.getRootNode();re===document&&(St.current=window),St.current=re}},[oe,be==null?void 0:be.eventTarget]);jt("dragstart",d.useCallback(j=>{let re=De.current;if(re===null||le===!1||q){j.preventDefault();return}let ye,fe,A=At(re,j.clientX,j.clientY);if(le!==!0&&A.kind!==le){j.preventDefault();return}let ce=(Le,Ye)=>{ye=Le,fe=Ye},ve,je,ke,st=(Le,Ye,it)=>{ve=Le,je=Ye,ke=it},he=!1;if(ue==null||ue({...A,setData:ce,setDragImage:st,preventDefault:()=>he=!0,defaultPrevented:()=>he}),!he&&ye!==void 0&&fe!==void 0&&j.dataTransfer!==null)if(j.dataTransfer.setData(ye,fe),j.dataTransfer.effectAllowed="copyLink",ve!==void 0&&je!==void 0&&ke!==void 0)j.dataTransfer.setDragImage(ve,je,ke);else{let[Le,Ye]=A.location;if(Ye!==void 0){let it=document.createElement("canvas"),Ot=Tt(re,Le,Ye);Zt(Ot!==void 0);let Ut=Math.ceil(window.devicePixelRatio??1);it.width=Ot.width*Ut,it.height=Ot.height*Ut;let lt=it.getContext("2d");lt!==null&&(lt.scale(Ut,Ut),lt.textBaseline="middle",Ye===-1?(lt.font=Me.headerFontFull,lt.fillStyle=Me.bgHeader,lt.fillRect(0,0,it.width,it.height),zl(lt,0,0,Ot.width,Ot.height,Et[Le],!1,Me,!1,void 0,void 0,!1,0,Mt,_e,!1)):(lt.font=Me.baseFontFull,lt.fillStyle=Me.bgCell,lt.fillRect(0,0,it.width,it.height),Ol(lt,m([Le,Ye]),0,Ye,!1,!1,0,0,Ot.width,Ot.height,!1,Me,Me.bgCell,kt,Mt,1,void 0,!1,0,void 0,void 0,void 0,vr,rt,()=>{}))),it.style.left="-100%",it.style.position="absolute",it.style.width=`${Ot.width}px`,it.style.height=`${Ot.height}px`,document.body.append(it),j.dataTransfer.setDragImage(it,Ot.width/2,Ot.height/2),window.setTimeout(()=>{it.remove()},0)}}else j.preventDefault()},[le,q,At,ue,Tt,Me,Et,Mt,_e,m,kt,vr,rt]),(X==null?void 0:X.current)??null,!1,!1);let nn=d.useRef();jt("dragover",d.useCallback(j=>{let re=De.current;if(xe!==void 0&&j.preventDefault(),re===null||Ve===void 0)return;let[ye,fe]=At(re,j.clientX,j.clientY).location,A=ye-(Q?0:1),[ce,ve]=nn.current??[];(ce!==A||ve!==fe)&&(nn.current=[A,fe],Ve([A,fe],j.dataTransfer))},[Q,At,Ve,xe]),(X==null?void 0:X.current)??null,!1,!1),jt("dragend",d.useCallback(()=>{nn.current=void 0,de==null||de()},[de]),(X==null?void 0:X.current)??null,!1,!1),jt("drop",d.useCallback(j=>{let re=De.current;if(re===null||xe===void 0)return;j.preventDefault();let[ye,fe]=At(re,j.clientX,j.clientY).location;xe([ye-(Q?0:1),fe],j.dataTransfer)},[Q,At,xe]),(X==null?void 0:X.current)??null,!1,!1),jt("dragleave",d.useCallback(()=>{Ke==null||Ke()},[Ke]),(X==null?void 0:X.current)??null,!1,!1);let to=d.useRef(E);to.current=E;let on=d.useRef(null),ro=d.useCallback(j=>{var re;De.current===null||!De.current.contains(document.activeElement)||(j===null&&to.current.current!==void 0?(re=oe==null?void 0:oe.current)==null||re.focus({preventScroll:!0}):j!==null&&j.focus({preventScroll:!0}),on.current=j)},[oe]);d.useImperativeHandle(t,()=>({focus:()=>{var re;let j=on.current;j===null||!document.contains(j)?(re=oe==null?void 0:oe.current)==null||re.focus({preventScroll:!0}):j.focus({preventScroll:!0})},getBounds:(j,re)=>{if(!(oe===void 0||oe.current===null))return Tt(oe.current,j??0,re??-1)},damage:Oo}),[oe,Oo,Tt]);let no=d.useRef(),yr=Es(()=>{var je,ke,st;if(r<50||(be==null?void 0:be.disableAccessibilityTree)===!0)return null;let j=li(Et,et,r,_,Xe),re=Q?0:-1;!Q&&((je=j[0])==null?void 0:je.sourceIndex)===0&&(j=j.slice(1));let[ye,fe]=((ke=E.current)==null?void 0:ke.cell)??[],A=(st=E.current)==null?void 0:st.range,ce=j.map(he=>he.sourceIndex),ve=(0,rd.default)(a,Math.min(p,a+o));return ye!==void 0&&fe!==void 0&&!(ce.includes(ye)&&ve.includes(fe))&&ro(null),d.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":p+1,"aria-multiselectable":"true","aria-colcount":Et.length+re},d.createElement("thead",{role:"rowgroup"},d.createElement("tr",{role:"row","aria-rowindex":1},j.map(he=>d.createElement("th",{role:"columnheader","aria-selected":E.columns.hasIndex(he.sourceIndex),"aria-colindex":he.sourceIndex+1+re,tabIndex:-1,onFocus:Le=>{if(Le.target!==on.current)return He==null?void 0:He([he.sourceIndex,-1])},key:he.sourceIndex},he.title)))),d.createElement("tbody",{role:"rowgroup"},ve.map(he=>d.createElement("tr",{role:"row","aria-selected":E.rows.hasIndex(he),key:he,"aria-rowindex":he+2},j.map(Le=>{let Ye=Le.sourceIndex,it=or(Ye,he),Ot=ye===Ye&&fe===he,Ut=A!==void 0&&Ye>=A.x&&Ye=A.y&&he{let Pe=oe==null?void 0:oe.current;if(Pe!=null)return ee==null?void 0:ee({bounds:Tt(Pe,Ye,he),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:gt})},onFocusCapture:Pe=>{var at,_t;if(!(Pe.target===on.current||((at=no.current)==null?void 0:at[0])===Ye&&((_t=no.current)==null?void 0:_t[1])===he))return no.current=gt,He==null?void 0:He(gt)},ref:Ot?ro:void 0,tabIndex:-1},nd(pt,rt))})))))},[r,Et,et,_,Xe,p,a,o,E,ro,m,oe,ee,Tt,He],200),sr=O===0||!R?0:et>O?1:(0,Jl.default)(-Xe/100,0,1),er=-a*32+ht,B=L?(0,Jl.default)(-er/100,0,1):0,bt=d.useMemo(()=>{if(!sr&&!B)return null;let j={position:"absolute",top:0,left:Ct,width:r-Ct,height:n,opacity:sr,pointerEvents:"none",transition:Ue?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},re={position:"absolute",top:Nt,left:0,width:r,height:n,opacity:B,pointerEvents:"none",transition:me?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return d.createElement(d.Fragment,null,sr>0&&d.createElement("div",{id:"shadow-x",style:j}),B>0&&d.createElement("div",{id:"shadow-y",style:re}))},[sr,B,Ct,r,Ue,Nt,n,me]),ln=d.useMemo(()=>({position:"absolute",top:0,left:0}),[]);return d.createElement(d.Fragment,null,d.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:Ei,onKeyUp:ar,onFocus:k,onBlur:I,ref:wr,style:ft},yr),d.createElement("canvas",{ref:yt,style:ln}),bt)})),id=Gt(yo(),1);function Xn(e,t,r,n){return(0,id.default)(Math.round(t-(e.growOffset??0)),Math.ceil(r),Math.floor(n))}var ld=e=>{let[t,r]=d.useState(),[n,o]=d.useState(),[i,l]=d.useState(),[a,s]=d.useState(),[c,u]=d.useState(!1),[f,p]=d.useState(),[m,h]=d.useState(),[v,S]=d.useState(),[M,y]=d.useState(!1),[k,I]=d.useState(),{onHeaderMenuClick:P,onHeaderIndicatorClick:E,getCellContent:O,onColumnMoved:F,onColumnResize:C,onColumnResizeStart:R,onColumnResizeEnd:L,gridRef:x,maxColumnWidth:w,minColumnWidth:T,onRowMoved:H,lockColumns:b,onColumnProposeMove:J,onMouseDown:_,onMouseUp:Q,onItemHovered:ee,onDragStart:K,canvasRef:se}=e,oe=(C??L??R)!==void 0,{columns:ue,selection:de}=e,X=de.columns,q=d.useCallback(ae=>{let[_e,He]=ae.location;i!==void 0&&a!==_e&&_e>=b?(u(!0),s(_e)):m!==void 0&&He!==void 0?(y(!0),S(Math.max(0,He))):n===void 0&&!c&&!M&&(ee==null||ee(ae))},[i,m,a,ee,b,n,c,M]),te=F!==void 0,ne=d.useCallback(ae=>{var _e;if(ae.button===0){let[He,Ve]=ae.location;if(ae.kind==="out-of-bounds"&&ae.isEdge&&oe){let xe=(_e=x==null?void 0:x.current)==null?void 0:_e.getBounds(ue.length-1,-1);xe!==void 0&&(r(xe.x),o(ue.length-1))}else if(ae.kind==="header"&&He>=b){let xe=se==null?void 0:se.current;if(ae.isEdge&&oe&&xe){r(ae.bounds.x),o(He);let Ke=xe.getBoundingClientRect().width/xe.offsetWidth,Ne=ae.bounds.width/Ke;R==null||R(ue[He],Ne,He,Ne+(ue[He].growOffset??0))}else ae.kind==="header"&&te&&(p(ae.bounds.x),l(He))}else ae.kind==="cell"&&b>0&&He===0&&Ve!==void 0&&H!==void 0&&(I(ae.bounds.y),h(Ve))}_==null||_(ae)},[_,oe,b,H,x,ue,te,R,se]),le=d.useCallback((ae,_e)=>{c||M||(P==null||P(ae,_e))},[c,M,P]),Fe=d.useCallback((ae,_e)=>{c||M||(E==null||E(ae,_e))},[c,M,E]),Oe=d.useRef(-1),Ee=d.useCallback(()=>{Oe.current=-1,h(void 0),S(void 0),I(void 0),y(!1),l(void 0),s(void 0),p(void 0),u(!1),o(void 0),r(void 0)},[]),Ge=d.useCallback((ae,_e)=>{if(ae.button===0){if(n!==void 0){if((X==null?void 0:X.hasIndex(n))===!0)for(let Ve of X){if(Ve===n)continue;let xe=ue[Ve],Ke=Xn(xe,Oe.current,T,w);C==null||C(xe,Ke,Ve,Ke+(xe.growOffset??0))}let He=Xn(ue[n],Oe.current,T,w);if(L==null||L(ue[n],He,n,He+(ue[n].growOffset??0)),X.hasIndex(n))for(let Ve of X){if(Ve===n)continue;let xe=ue[Ve],Ke=Xn(xe,Oe.current,T,w);L==null||L(xe,Ke,Ve,Ke+(xe.growOffset??0))}}Ee(),i!==void 0&&a!==void 0&&(F==null||F(i,a)),m!==void 0&&v!==void 0&&(H==null||H(m,v))}Q==null||Q(ae,_e)},[Q,n,i,a,m,v,X,L,ue,T,w,C,F,H,Ee]),Me=d.useMemo(()=>{if(!(i===void 0||a===void 0)&&i!==a&&(J==null?void 0:J(i,a))!==!1)return{src:i,dest:a}},[i,a,J]),mt=d.useCallback(ae=>{let _e=se==null?void 0:se.current;if(i!==void 0&&f!==void 0)Math.abs(ae.clientX-f)>20&&u(!0);else if(m!==void 0&&k!==void 0)Math.abs(ae.clientY-k)>20&&y(!0);else if(n!==void 0&&t!==void 0&&_e){let He=_e.getBoundingClientRect().width/_e.offsetWidth,Ve=(ae.clientX-t)/He,xe=ue[n],Ke=Xn(xe,Ve,T,w);if(C==null||C(xe,Ke,n,Ke+(xe.growOffset??0)),Oe.current=Ve,(X==null?void 0:X.first())===n)for(let Ne of X){if(Ne===n)continue;let Ue=ue[Ne],me=Xn(Ue,Oe.current,T,w);C==null||C(Ue,me,Ne,me+(Ue.growOffset??0))}}},[i,f,m,k,n,t,ue,T,w,C,X,se]),vt=d.useCallback((ae,_e)=>{if(m===void 0||v===void 0)return O(ae,_e);let[He,Ve]=ae;return Ve===v?Ve=m:(Ve>v&&--Ve,Ve>=m&&(Ve+=1)),O([He,Ve],_e)},[m,v,O]),Qe=d.useCallback(ae=>{K==null||K(ae),ae.defaultPrevented()||Ee()},[Ee,K]);return d.createElement(od,{accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,drawCell:e.drawCell,enableGroups:e.enableGroups,eventTargetRef:e.eventTargetRef,experimental:e.experimental,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,headerIcons:e.headerIcons,height:e.height,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,resizeColumn:n,isDraggable:e.isDraggable,isFilling:e.isFilling,isFocused:e.isFocused,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDrop:e.onDrop,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,resizeIndicator:e.resizeIndicator,verticalBorder:e.verticalBorder,width:e.width,getCellContent:vt,isResizing:n!==void 0,onHeaderMenuClick:le,onHeaderIndicatorClick:Fe,isDragging:c,onItemHovered:q,onDragStart:Qe,onMouseDown:ne,allowResize:oe,onMouseUp:Ge,dragAndDropState:Me,onMouseMoveRaw:mt,ref:x})};function ad(e){let t=(0,d.useRef)(null),[r,n]=(0,d.useState)({width:e==null?void 0:e[0],height:e==null?void 0:e[1]});return(0,d.useLayoutEffect)(()=>{let o=new window.ResizeObserver(i=>{for(let l of i){let{width:a,height:s}=l&&l.contentRect||{};n(c=>c.width===a&&c.height===s?c:{width:a,height:s})}});return t.current&&o.observe(t.current,void 0),()=>{o.disconnect()}},[t.current]),{ref:t,...r}}var sd=(e,t,r)=>{let n=(0,d.useRef)(null),o=(0,d.useRef)(null),i=(0,d.useRef)(null),l=(0,d.useRef)(0),a=(0,d.useRef)(t);a.current=t;let s=r.current;(0,d.useEffect)(()=>{let c=()=>{var p,m;if(o.current===!1&&s!==null){let h=[s.scrollLeft,s.scrollTop];if(((p=i.current)==null?void 0:p[0])===h[0]&&((m=i.current)==null?void 0:m[1])===h[1])if(l.current>10){i.current=null,o.current=null;return}else l.current++;else l.current=0,a.current(h[0],h[1]),i.current=h;n.current=window.setTimeout(c,8.333333333333334)}},u=()=>{o.current=!0,i.current=null,n.current!==null&&(window.clearTimeout(n.current),n.current=null)},f=p=>{p.touches.length===0&&(o.current=!1,l.current=0,n.current=window.setTimeout(c,8.333333333333334))};if(e&&s!==null){let p=s;return p.addEventListener("touchstart",u),p.addEventListener("touchend",f),()=>{p.removeEventListener("touchstart",u),p.removeEventListener("touchend",f),n.current!==null&&window.clearTimeout(n.current)}}},[e,s])},cd=()=>e=>e.isSafari?"scroll":"auto",ud=Jt("div")({name:"ScrollRegionStyle",class:"gdg-s1dgczr6",propsAsIs:!1,vars:{"s1dgczr6-0":[cd()]}});function dd(e){let[t,r]=d.useState(!1),n=typeof window>"u"?null:window,o=d.useRef(0);return jt("touchstart",d.useCallback(()=>{window.clearTimeout(o.current),r(!0)},[]),n,!0,!1),jt("touchend",d.useCallback(i=>{i.touches.length===0&&(o.current=window.setTimeout(()=>r(!1),e))},[e]),n,!0,!1),t}const hd=e=>{var oe,ue;let{children:t,clientHeight:r,scrollHeight:n,scrollWidth:o,update:i,draggable:l,className:a,preventDiagonalScrolling:s=!1,paddingBottom:c=0,paddingRight:u=0,rightElement:f,rightElementProps:p,kineticScrollPerfHack:m=!1,scrollRef:h,initialSize:v}=e,S=[],M=(p==null?void 0:p.sticky)??!1,y=(p==null?void 0:p.fill)??!1,k=d.useRef(0),I=d.useRef(0),P=d.useRef(null),E=typeof window>"u"?1:window.devicePixelRatio,O=d.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),F=d.useRef(null),C=dd(200),[R,L]=d.useState(!0),x=d.useRef(0);d.useLayoutEffect(()=>{if(!R||C||O.current.lockDirection===void 0)return;let de=P.current;if(de===null)return;let[X,q]=O.current.lockDirection;X===void 0?q!==void 0&&(de.scrollTop=q):de.scrollLeft=X,O.current.lockDirection=void 0},[C,R]);let w=d.useCallback((de,X)=>{var Qe;let q=P.current;if(q===null)return;X??(X=q.scrollTop),de??(de=q.scrollLeft);let te=O.current.scrollTop,ne=O.current.scrollLeft,le=de-ne,Fe=X-te;C&&le!==0&&Fe!==0&&(Math.abs(le)>3||Math.abs(Fe)>3)&&s&&O.current.lockDirection===void 0&&(O.current.lockDirection=Math.abs(le)0&&(Math.abs(mt)>2e3||Me===0||Me===vt)&&n>q.scrollHeight+5){let ae=Me/vt;k.current=(n-Ge)*ae-Me}Oe!==void 0&&(window.clearTimeout(x.current),L(!1),x.current=window.setTimeout(()=>L(!0),200)),i({x:de,y:Me+k.current,width:Ee-u,height:Ge-c,paddingRight:((Qe=F.current)==null?void 0:Qe.clientWidth)??0})},[c,u,n,i,s,C]);sd(m&&xo.value,w,P);let T=d.useRef(w);T.current=w;let H=d.useRef(),b=d.useRef(!1);d.useLayoutEffect(()=>{b.current?w():b.current=!0},[w,c,u]);let J=d.useCallback(de=>{P.current=de,h!==void 0&&(h.current=de)},[h]),_=0,Q=0;for(S.push(d.createElement("div",{key:_++,style:{width:o,height:0}}));QT.current(),0),H.current={width:K,height:se}),(K??0)===0||(se??0)===0?d.createElement("div",{ref:ee}):d.createElement("div",{ref:ee},d.createElement(ud,{isSafari:xo.value},d.createElement("div",{className:"dvn-underlay"},t),d.createElement("div",{ref:J,style:H.current,draggable:l,onDragStart:de=>{l||(de.stopPropagation(),de.preventDefault())},className:"dvn-scroller "+(a??""),onScroll:()=>w()},d.createElement("div",{className:"dvn-scroll-inner"+(f===void 0?" dvn-hidden":"")},d.createElement("div",{className:"dvn-stack"},S),f!==void 0&&d.createElement(d.Fragment,null,!y&&d.createElement("div",{className:"dvn-spacer"}),d.createElement("div",{ref:F,style:{height:se,maxHeight:r-Math.ceil(E%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:u,flexGrow:y?1:void 0,right:M?u??0:void 0,pointerEvents:"auto"}},f))))))};var fd=e=>{let{columns:t,rows:r,rowHeight:n,headerHeight:o,groupHeaderHeight:i,enableGroups:l,freezeColumns:a,experimental:s,nonGrowWidth:c,clientSize:u,className:f,onVisibleRegionChanged:p,scrollRef:m,preventDiagonalScrolling:h,rightElement:v,rightElementProps:S,overscrollX:M,overscrollY:y,initialSize:k,smoothScrollX:I=!1,smoothScrollY:P=!1,isDraggable:E}=e,{paddingRight:O,paddingBottom:F}=s??{},[C,R]=u,L=d.useRef(),x=d.useRef(),w=d.useRef(),T=d.useRef(),H=c+Math.max(0,M??0),b=l?o+i:o;if(typeof n=="number")b+=r*n;else for(let ee=0;ee{var Fe,Oe;if(J.current===void 0)return;let ee={...J.current},K=0,se=ee.x<0?-ee.x:0,oe=0,ue=0;ee.x=ee.x<0?0:ee.x;let de=0;for(let Ee=0;Ee=Ge+Ee.width)K+=Ee.width,ue++,oe++;else if(ee.x>Ge)K+=Ee.width,I?se+=Ge-ee.x:ue++,oe++;else if(ee.x+ee.width>Ge)K+=Ee.width,oe++;else break}let X=0,q=0,te=0;if(typeof n=="number")P?(q=Math.floor(ee.y/n),X=q*n-ee.y):q=Math.ceil(ee.y/n),te=Math.ceil(ee.height/n)+q,X<0&&te++;else{let Ee=0;for(let Ge=0;Ge=Ee+Me)Ee+=Me,q++,te++;else if(ee.y>mt)Ee+=Me,P?X+=mt-ee.y:q++,te++;else if(ee.y+ee.height>Me/2+Ee)Ee+=Me,te++;else break}}let ne={x:ue,y:q,width:oe-ue,height:te-q},le=L.current;(le===void 0||le.y!==ne.y||le.x!==ne.x||le.height!==ne.height||le.width!==ne.width||x.current!==se||w.current!==X||ee.width!==((Fe=T.current)==null?void 0:Fe[0])||ee.height!==((Oe=T.current)==null?void 0:Oe[1]))&&(p==null||p({x:ue,y:q,width:oe-ue,height:te-q},ee.width,ee.height,ee.paddingRight??0,se,X),L.current=ne,x.current=se,w.current=X,T.current=[ee.width,ee.height])},[t,n,r,p,a,I,P]),Q=d.useCallback(ee=>{J.current=ee,_()},[_]);return d.useEffect(()=>{_()},[_]),d.createElement(hd,{scrollRef:m,className:f,kineticScrollPerfHack:s==null?void 0:s.kineticScrollPerfHack,preventDiagonalScrolling:h,draggable:E===!0||typeof E=="string",scrollWidth:H+(O??0),scrollHeight:b+(F??0),clientHeight:R,rightElement:v,paddingBottom:F,paddingRight:O,rightElementProps:S,update:Q,initialSize:k},d.createElement(ld,{eventTargetRef:m,width:C,height:R,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onHeaderIndicatorClick:e.onHeaderIndicatorClick,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,onColumnProposeMove:e.onColumnProposeMove,verticalBorder:e.verticalBorder,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,drawCell:e.drawCell,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,resizeIndicator:e.resizeIndicator}))};const gd=Jt("div")({name:"SearchWrapper",class:"gdg-seveqep",propsAsIs:!1});var pd=d.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},d.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),md=d.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},d.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),vd=d.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},d.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),wd=10,yd=e=>{let{canvasRef:t,cellYOffset:r,rows:n,columns:o,searchInputRef:i,searchValue:l,searchResults:a,onSearchValueChange:s,getCellsForSelection:c,onSearchResultsChanged:u,showSearch:f=!1,onSearchClose:p}=e,[m]=d.useState(()=>"search-box-"+Math.round(Math.random()*1e3)),[h,v]=d.useState(""),S=l??h,M=d.useCallback(K=>{v(K),s==null||s(K)},[s]),[y,k]=d.useState(),I=d.useRef(y);I.current=y,d.useEffect(()=>{a!==void 0&&(a.length>0?k(K=>({rowsSearched:n,results:a.length,selectedIndex:(K==null?void 0:K.selectedIndex)??-1})):k(void 0))},[n,a]);let P=d.useRef();P.current===void 0&&(P.current=new AbortController);let E=d.useRef(),[O,F]=d.useState([]),C=a??O,R=d.useCallback(()=>{E.current!==void 0&&(window.cancelAnimationFrame(E.current),E.current=void 0,P.current.abort())},[]),L=d.useRef(r);L.current=r;let x=d.useCallback(K=>{let se=new RegExp(K.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i"),oe=L.current,ue=Math.min(10,n),de=0;k(void 0),F([]);let X=[],q=async()=>{var mt;if(c===void 0)return;let te=performance.now(),ne=n-de,le=c({x:0,y:oe,width:o.length,height:Math.min(ue,ne,n-oe)},P.current.signal);typeof le=="function"&&(le=await le());let Fe=!1;for(let[vt,Qe]of le.entries())for(let[ae,_e]of Qe.entries()){let He;switch(_e.kind){case pe.Text:case pe.Number:He=_e.displayData;break;case pe.Uri:case pe.Markdown:He=_e.data;break;case pe.Boolean:He=typeof _e.data=="boolean"?_e.data.toString():void 0;break;case pe.Image:case pe.Bubble:He=_e.data.join("\u{1F433}");break;case pe.Custom:He=_e.copyData;break}He!==void 0&&se.test(He)&&(X.push([ae,vt+oe]),Fe=!0)}let Oe=performance.now();Fe&&F([...X]),de+=le.length,Zt(de<=n);let Ee=((mt=I.current)==null?void 0:mt.selectedIndex)??-1;k({results:X.length,rowsSearched:de,selectedIndex:Ee}),u==null||u(X,Ee),oe+ue>=n?oe=0:oe+=ue;let Ge=Oe-te,Me=wd/Math.max(Ge,1);ue=Math.ceil(ue*Me),de{var K;p==null||p(),k(void 0),F([]),u==null||u([],-1),R(),(K=t==null?void 0:t.current)==null||K.focus()},[R,t,p,u]),T=d.useCallback(K=>{M(K.target.value),a===void 0&&(K.target.value===""?(k(void 0),F([]),R()):x(K.target.value))},[x,R,M,a]);d.useEffect(()=>{f&&i.current!==null&&(M(""),i.current.focus({preventScroll:!0}))},[f,i,M]);let H=d.useCallback(K=>{var oe;if((oe=K==null?void 0:K.stopPropagation)==null||oe.call(K),y===void 0)return;let se=(y.selectedIndex+1)%y.results;k({...y,selectedIndex:se}),u==null||u(C,se)},[y,u,C]),b=d.useCallback(K=>{var oe;if((oe=K==null?void 0:K.stopPropagation)==null||oe.call(K),y===void 0)return;let se=(y.selectedIndex-1)%y.results;se<0&&(se+=y.results),k({...y,selectedIndex:se}),u==null||u(C,se)},[u,C,y]),J=d.useCallback(K=>{(K.ctrlKey||K.metaKey)&&K.nativeEvent.code==="KeyF"||K.key==="Escape"?(w(),K.stopPropagation(),K.preventDefault()):K.key==="Enter"&&(K.shiftKey?b():H())},[w,H,b]);d.useEffect(()=>()=>{R()},[R]);let[_,Q]=d.useState(!1);d.useEffect(()=>{if(f)Q(!0);else{let K=setTimeout(()=>Q(!1),150);return()=>clearTimeout(K)}},[f]);let ee=d.useMemo(()=>{if(!f&&!_)return null;let K;y!==void 0&&(K=y.results>=1e3?"over 1000":`${y.results} result${y.results===1?"":"s"}`,y.selectedIndex>=0&&(K=`${y.selectedIndex+1} of ${K}`));let se=ue=>{ue.stopPropagation()},oe={width:`${Math.floor(((y==null?void 0:y.rowsSearched)??0)/n*100)}%`};return d.createElement(gd,{className:f?"":"out",onMouseDown:se,onMouseMove:se,onMouseUp:se,onClick:se},d.createElement("div",{className:"gdg-search-bar-inner"},d.createElement("input",{id:m,"aria-hidden":!f,"data-testid":"search-input",ref:i,onChange:T,value:S,tabIndex:f?void 0:-1,onKeyDownCapture:J}),d.createElement("button",{"aria-label":"Previous Result","aria-hidden":!f,tabIndex:f?void 0:-1,onClick:b,disabled:((y==null?void 0:y.results)??0)===0},pd),d.createElement("button",{"aria-label":"Next Result","aria-hidden":!f,tabIndex:f?void 0:-1,onClick:H,disabled:((y==null?void 0:y.results)??0)===0},md),p!==void 0&&d.createElement("button",{"aria-label":"Close Search","aria-hidden":!f,"data-testid":"search-close-button",tabIndex:f?void 0:-1,onClick:w},vd)),y===void 0?d.createElement("div",{className:"gdg-search-status"},d.createElement("label",{htmlFor:m},"Type to search")):d.createElement(d.Fragment,null,d.createElement("div",{className:"gdg-search-status"},d.createElement("div",{"data-testid":"search-result-area"},K)),d.createElement("div",{className:"gdg-search-progress",style:oe})))},[f,_,y,n,m,i,T,S,J,b,H,p,w]);return d.createElement(d.Fragment,null,d.createElement(fd,{prelightCells:C,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,className:e.className,clientSize:e.clientSize,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,nonGrowWidth:e.nonGrowWidth,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,initialSize:e.initialSize,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onHeaderIndicatorClick:e.onHeaderIndicatorClick,onMouseMove:e.onMouseMove,onVisibleRegionChanged:e.onVisibleRegionChanged,overscrollX:e.overscrollX,overscrollY:e.overscrollY,preventDiagonalScrolling:e.preventDiagonalScrolling,rightElement:e.rightElement,rightElementProps:e.rightElementProps,rowHeight:e.rowHeight,rows:e.rows,scrollRef:e.scrollRef,selection:e.selection,theme:e.theme,freezeTrailingRows:e.freezeTrailingRows,hasAppendRow:e.hasAppendRow,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,onColumnProposeMove:e.onColumnProposeMove,drawFocusRing:e.drawFocusRing,drawCell:e.drawCell,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,resizeIndicator:e.resizeIndicator}),ee)},bd=()=>e=>Math.max(16,e.targetHeight-10),xd=Jt("input")({name:"RenameInput",class:"gdg-r17m35ur",propsAsIs:!1,vars:{"r17m35ur-0":[bd(),"px"]}});const Cd=e=>{let{bounds:t,group:r,onClose:n,canvasBounds:o,onFinish:i}=e,[l,a]=d.useState(r);return d.createElement(rf,{style:{position:"absolute",left:t.x-o.left+1,top:t.y-o.top,width:t.width-2,height:t.height},className:"gdg-c1tqibwd",onClickOutside:n},d.createElement(xd,{targetHeight:t.height,"data-testid":"group-rename-input",value:l,onBlur:n,onFocus:s=>s.target.setSelectionRange(0,l.length),onChange:s=>a(s.target.value),onKeyDown:s=>{s.key==="Enter"?i(l):s.key==="Escape"&&n()},autoFocus:!0}))};function Sd(e,t){return e===void 0?!1:e.length>1&&e.startsWith("_")?Number.parseInt(e.slice(1))===t.keyCode:e.length===1&&e>="a"&&e<="z"?e.toUpperCase().codePointAt(0)===t.keyCode:e===t.key}function We(e,t,r){let n=ea(e,t);return n&&(r.didMatch=!0),n}function ea(e,t){if(e.length===0)return!1;if(e.includes("|")){let a=e.split("|");for(let s of a)if(ea(s,t))return!0;return!1}let r=!1,n=!1,o=!1,i=!1,l=e.split("+");if(!Sd(l.pop(),t))return!1;if(l[0]==="any")return!0;for(let a of l)switch(a){case"ctrl":r=!0;break;case"shift":n=!0;break;case"alt":o=!0;break;case"meta":i=!0;break;case"primary":Co.value?i=!0:r=!0;break}return t.altKey===o&&t.ctrlKey===r&&t.shiftKey===n&&t.metaKey===i}function kd(e,t,r,n,o,i,l){return[d.useCallback((a,s,c,u)=>{var v;(i==="cell"||i==="multi-cell")&&a!==void 0&&(a={...a,range:{x:a.cell[0],y:a.cell[1],width:1,height:1}}),!l&&a!==void 0&&a.range.width>1&&(a={...a,range:{...a.range,width:1,x:a.cell[0]}});let f=r==="mixed"&&(c||u==="drag"),p=n==="mixed"&&f,m=o==="mixed"&&f,h={current:a===void 0?void 0:{...a,rangeStack:u==="drag"?((v=e.current)==null?void 0:v.rangeStack)??[]:[]},columns:p?e.columns:nt.empty(),rows:m?e.rows:nt.empty()};c&&(i==="multi-rect"||i==="multi-cell")&&h.current!==void 0&&e.current!==void 0&&(h={...h,current:{...h.current,rangeStack:[...e.current.rangeStack,e.current.range]}}),t(h,s)},[n,e,r,i,l,o,t]),d.useCallback((a,s,c)=>{a??(a=e.rows),s!==void 0&&(a=a.add(s));let u;if(o==="exclusive"&&a.length>0)u={current:void 0,columns:nt.empty(),rows:a};else{let f=c&&r==="mixed",p=c&&n==="mixed";u={current:f?e.current:void 0,columns:p?e.columns:nt.empty(),rows:a}}t(u,!1)},[n,e,r,o,t]),d.useCallback((a,s,c)=>{a??(a=e.columns),s!==void 0&&(a=a.add(s));let u;if(n==="exclusive"&&a.length>0)u={current:void 0,rows:nt.empty(),columns:a};else{let f=c&&r==="mixed",p=c&&o==="mixed";u={current:f?e.current:void 0,rows:p?e.rows:nt.empty(),columns:a}}t(u,!1)},[n,e,r,o,t])]}function Md(e,t,r,n,o){let i=d.useCallback(s=>{if(e===!0){let c=[];for(let u=s.y;u=o?f.push({kind:pe.Loading,allowOverlay:!1}):f.push(t([p,u]));c.push(f)}return c}return(e==null?void 0:e(s,n.signal))??[]},[n.signal,t,e,o]),l=e===void 0?void 0:i,a=d.useCallback(s=>{if(l===void 0)return[];let c={...s,x:s.x-r};if(c.x<0){c.x=0,c.width--;let u=l(c,n.signal);return typeof u=="function"?async()=>(await u()).map(f=>[{kind:pe.Loading,allowOverlay:!1},...f]):u.map(f=>[{kind:pe.Loading,allowOverlay:!1},...f])}return l(c,n.signal)},[n.signal,l,r]);return[e===void 0?void 0:a,l]}function Rd(e){if(e.copyData!==void 0)return{formatted:e.copyData,rawValue:e.copyData,format:"string"};switch(e.kind){case pe.Boolean:return{formatted:e.data===!0?"TRUE":e.data===!1?"FALSE":e.data===void 0?"INDETERMINATE":"",rawValue:e.data,format:"boolean"};case pe.Custom:return{formatted:e.copyData,rawValue:e.copyData,format:"string"};case pe.Image:case pe.Bubble:return{formatted:e.data,rawValue:e.data,format:"string-array"};case pe.Drilldown:return{formatted:e.data.map(t=>t.text),rawValue:e.data.map(t=>t.text),format:"string-array"};case pe.Text:return{formatted:e.displayData??e.data,rawValue:e.data,format:"string"};case pe.Uri:return{formatted:e.displayData??e.data,rawValue:e.data,format:"url"};case pe.Markdown:case pe.RowID:return{formatted:e.data,rawValue:e.data,format:"string"};case pe.Number:return{formatted:e.displayData,rawValue:e.data,format:"number"};case pe.Loading:return{formatted:"#LOADING",rawValue:"",format:"string"};case pe.Protected:return{formatted:"************",rawValue:"",format:"string"};default:qo(e)}}function Ed(e,t){return e.map((r,n)=>{let o=t[n];return r.map(i=>i.span!==void 0&&i.span[0]!==o?{formatted:"",rawValue:"",format:"string"}:Rd(i))})}function ta(e,t){return(t?/[\t\n",]/:/[\t\n"]/).test(e)&&(e=`"${e.replace(/"/g,'""')}"`),e}function Id(e){var r;let t=[];for(let n of e){let o=[];for(let i of n)i.format==="url"?o.push(((r=i.rawValue)==null?void 0:r.toString())??""):i.format==="string-array"?o.push(i.formatted.map(l=>ta(l,!0)).join(",")):o.push(ta(i.formatted,!1));t.push(o.join(" "))}return t.join(` +`)}function bi(e){return e.replace(/\t/g," ").replace(/ {2,}/g,t=>" ".repeat(t.length))}function ra(e){return'"'+e.replace(/&/g,"&").replace(/"/g,""").replace(//g,">")+'"'}function Td(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function Od(e){var r;let t=[];t.push('',"");for(let n of e){t.push("");for(let o of n){let i=`gdg-format="${o.format}"`;o.format==="url"?t.push(``):o.format==="string-array"?t.push(``):t.push(``)}t.push("")}return t.push("
${bi(o.formatted)}
    ${o.formatted.map((l,a)=>`
  1. `+bi(l)+"
  2. ").join("")}
${bi(o.formatted)}
"),t.join("")}function Pd(e,t){let r=Ed(e,t);return{textPlain:Id(r),textHtml:Od(r)}}function na(e){var l;let t=document.createElement("html");t.innerHTML=e.replace(/ /g," ");let r=t.querySelector("table");if(r===null)return;let n=[r],o=[],i;for(;n.length>0;){let a=n.pop();if(a===void 0)break;if(a instanceof HTMLTableElement||a.nodeName==="TBODY")n.push(...[...a.children].reverse());else if(a instanceof HTMLTableRowElement)i!==void 0&&o.push(i),i=[],n.push(...[...a.children].reverse());else if(a instanceof HTMLTableCellElement){let s=a.cloneNode(!0),c=s.children.length===1&&s.children[0].nodeName==="P"?s.children[0]:null,u=(c==null?void 0:c.children.length)===1&&c.children[0].nodeName==="FONT",f=s.querySelectorAll("br");for(let h of f)h.replaceWith(` +`);let p=s.getAttribute("gdg-raw-value"),m=s.getAttribute("gdg-format")??"string";if(s.querySelector("a")!==null)i==null||i.push({rawValue:((l=s.querySelector("a"))==null?void 0:l.getAttribute("href"))??"",formatted:s.textContent??"",format:m});else if(s.querySelector("ol")!==null){let h=s.querySelectorAll("li");i==null||i.push({rawValue:[...h].map(v=>v.getAttribute("gdg-raw-value")??""),formatted:[...h].map(v=>v.textContent??""),format:"string-array"})}else if(p!==null)i==null||i.push({rawValue:Td(p),formatted:s.textContent??"",format:m});else{let h=s.textContent??"";u&&(h=h.replace(/\n(?!\n)/g,"")),i==null||i.push({rawValue:h??"",formatted:h??"",format:m})}}}return i!==void 0&&o.push(i),o}function Hd(e,t,r,n,o){var a;let i=e;if(n==="allowPartial"||e.current===void 0||t===void 0)return e;let l=!1;do{if((e==null?void 0:e.current)===void 0)break;let s=(a=e.current)==null?void 0:a.range,c=[];if(s.width>2){let p=t({x:s.x,y:s.y,width:1,height:s.height},o.signal);if(typeof p=="function")return i;c.push(...p);let m=t({x:s.x+s.width-1,y:s.y,width:1,height:s.height},o.signal);if(typeof m=="function")return i;c.push(...m)}else{let p=t({x:s.x,y:s.y,width:s.width,height:s.height},o.signal);if(typeof p=="function")return i;c.push(...p)}let u=s.x-r,f=s.x+s.width-1-r;for(let p of c)for(let m of p)m.span!==void 0&&(u=Math.min(m.span[0],u),f=Math.max(m.span[1],f));u===s.x-r&&f===s.x+s.width-1-r?l=!0:e={current:{cell:e.current.cell??[0,0],range:{x:u+r,y:s.y,width:f-u+1,height:s.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!l);return e}function oa(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function Dd(e){let t;(function(a){a[a.None=0]="None",a[a.inString=1]="inString",a[a.inStringPostQuote=2]="inStringPostQuote"})(t||(t={}));let r=[],n=[],o=0,i=t.None;e=e.replace(/\r\n/g,` +`);let l=0;for(let a of e){switch(i){case t.None:a===" "||a===` +`?(n.push(e.slice(o,l)),o=l+1,a===` +`&&(r.push(n),n=[])):a==='"'&&(i=t.inString);break;case t.inString:a==='"'&&(i=t.inStringPostQuote);break;case t.inStringPostQuote:a==='"'?i=t.inString:((a===" "||a===` +`)&&(n.push(oa(e.slice(o,l))),o=l+1,a===` +`&&(r.push(n),n=[])),i=t.None);break}l++}return oa.map(s=>({rawValue:s,formatted:s,format:"string"})))}function zd(e,t,r){var l;let n=Pd(e,t),o=a=>{var s;(s=window.navigator.clipboard)==null||s.writeText(a)},i=(a,s)=>{var c;return((c=window.navigator.clipboard)==null?void 0:c.write)===void 0?!1:(window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([a],{type:"text/plain"}),"text/html":new Blob([s],{type:"text/html"})})]),!0)};((l=window.navigator.clipboard)==null?void 0:l.write)!==void 0||(r==null?void 0:r.clipboardData)!==void 0?((a,s)=>{var c,u;try{if(r===void 0||r.clipboardData===null)throw Error("No clipboard data");(c=r==null?void 0:r.clipboardData)==null||c.setData("text/plain",a),(u=r==null?void 0:r.clipboardData)==null||u.setData("text/html",s)}catch{i(a,s)||o(a)}})(n.textPlain,n.textHtml):o(n.textPlain),r==null||r.preventDefault()}function ia(e){return e!==!0}function la(e){return typeof e=="string"?e:`${e}px`}var Ad=()=>e=>e.innerWidth,Ld=()=>e=>e.innerHeight,jd=Jt("div")({name:"Wrapper",class:"gdg-wmyidgi",propsAsIs:!1,vars:{"wmyidgi-0":[Ad()],"wmyidgi-1":[Ld()]}});const Fd=e=>{let{inWidth:t,inHeight:r,children:n,...o}=e;return d.createElement(jd,{innerHeight:la(r),innerWidth:la(t),...o},n)};var _d=2,Nd=1300;function Wd(e,t,r){let n=d.useRef(0),[o,i]=e??[0,0];d.useEffect(()=>{if(o===0&&i===0){n.current=0;return}let l=!1,a=0,s=c=>{var u;if(!l){if(a===0)a=c;else{let f=c-a;n.current=Math.min(1,n.current+f/Nd);let p=n.current**1.618*f*_d;(u=t.current)==null||u.scrollBy(o*p,i*p),a=c,r==null||r()}window.requestAnimationFrame(s)}};return window.requestAnimationFrame(s),()=>{l=!0}},[t,o,i,r])}function Bd({rowHeight:e,headerHeight:t,groupHeaderHeight:r,theme:n,overscrollX:o,overscrollY:i,scaleToRem:l,remSize:a}){let[s,c,u,f,p,m]=d.useMemo(()=>{if(!l||a===16)return[e,t,r,n,o,i];let h=a/16,v=e,S=us();return[typeof v=="number"?v*h:M=>Math.ceil(v(M)*h),Math.ceil(t*h),Math.ceil(r*h),{...n,headerIconSize:((n==null?void 0:n.headerIconSize)??S.headerIconSize)*h,cellHorizontalPadding:((n==null?void 0:n.cellHorizontalPadding)??S.cellHorizontalPadding)*h,cellVerticalPadding:((n==null?void 0:n.cellVerticalPadding)??S.cellVerticalPadding)*h},Math.ceil((o??0)*h),Math.ceil((i??0)*h)]},[r,t,o,i,a,e,l,n]);return{rowHeight:s,headerHeight:c,groupHeaderHeight:u,theme:f,overscrollX:p,overscrollY:m}}const zr={downFill:!1,rightFill:!1,clear:!0,closeOverlay:!0,acceptOverlayDown:!0,acceptOverlayUp:!0,acceptOverlayLeft:!0,acceptOverlayRight:!0,copy:!0,paste:!0,cut:!0,search:!1,delete:!0,activateCell:!0,scrollToSelectedCell:!0,goToFirstCell:!0,goToFirstColumn:!0,goToFirstRow:!0,goToLastCell:!0,goToLastColumn:!0,goToLastRow:!0,goToNextPage:!0,goToPreviousPage:!0,selectToFirstCell:!0,selectToFirstColumn:!0,selectToFirstRow:!0,selectToLastCell:!0,selectToLastColumn:!0,selectToLastRow:!0,selectAll:!0,selectRow:!0,selectColumn:!0,goUpCell:!0,goRightCell:!0,goDownCell:!0,goLeftCell:!0,goUpCellRetainSelection:!0,goRightCellRetainSelection:!0,goDownCellRetainSelection:!0,goLeftCellRetainSelection:!0,selectGrowUp:!0,selectGrowRight:!0,selectGrowDown:!0,selectGrowLeft:!0};function Be(e,t){return e===!0?t:e===!1?"":e}function aa(e){let t=Co.value;return{activateCell:Be(e.activateCell," |Enter|shift+Enter"),clear:Be(e.clear,"any+Escape"),closeOverlay:Be(e.closeOverlay,"any+Escape"),acceptOverlayDown:Be(e.acceptOverlayDown,"Enter"),acceptOverlayUp:Be(e.acceptOverlayUp,"shift+Enter"),acceptOverlayLeft:Be(e.acceptOverlayLeft,"shift+Tab"),acceptOverlayRight:Be(e.acceptOverlayRight,"Tab"),copy:e.copy,cut:e.cut,delete:Be(e.delete,t?"Backspace|Delete":"Delete"),downFill:Be(e.downFill,"primary+_68"),scrollToSelectedCell:Be(e.scrollToSelectedCell,"primary+Enter"),goDownCell:Be(e.goDownCell,"ArrowDown"),goDownCellRetainSelection:Be(e.goDownCellRetainSelection,"alt+ArrowDown"),goLeftCell:Be(e.goLeftCell,"ArrowLeft|shift+Tab"),goLeftCellRetainSelection:Be(e.goLeftCellRetainSelection,"alt+ArrowLeft"),goRightCell:Be(e.goRightCell,"ArrowRight|Tab"),goRightCellRetainSelection:Be(e.goRightCellRetainSelection,"alt+ArrowRight"),goUpCell:Be(e.goUpCell,"ArrowUp"),goUpCellRetainSelection:Be(e.goUpCellRetainSelection,"alt+ArrowUp"),goToFirstCell:Be(e.goToFirstCell,"primary+Home"),goToFirstColumn:Be(e.goToFirstColumn,"Home|primary+ArrowLeft"),goToFirstRow:Be(e.goToFirstRow,"primary+ArrowUp"),goToLastCell:Be(e.goToLastCell,"primary+End"),goToLastColumn:Be(e.goToLastColumn,"End|primary+ArrowRight"),goToLastRow:Be(e.goToLastRow,"primary+ArrowDown"),goToNextPage:Be(e.goToNextPage,"PageDown"),goToPreviousPage:Be(e.goToPreviousPage,"PageUp"),paste:e.paste,rightFill:Be(e.rightFill,"primary+_82"),search:Be(e.search,"primary+f"),selectAll:Be(e.selectAll,"primary+a"),selectColumn:Be(e.selectColumn,"ctrl+ "),selectGrowDown:Be(e.selectGrowDown,"shift+ArrowDown"),selectGrowLeft:Be(e.selectGrowLeft,"shift+ArrowLeft"),selectGrowRight:Be(e.selectGrowRight,"shift+ArrowRight"),selectGrowUp:Be(e.selectGrowUp,"shift+ArrowUp"),selectRow:Be(e.selectRow,"shift+ "),selectToFirstCell:Be(e.selectToFirstCell,"primary+shift+Home"),selectToFirstColumn:Be(e.selectToFirstColumn,"primary+shift+ArrowLeft"),selectToFirstRow:Be(e.selectToFirstRow,"primary+shift+ArrowUp"),selectToLastCell:Be(e.selectToLastCell,"primary+shift+End"),selectToLastColumn:Be(e.selectToLastColumn,"primary+shift+ArrowRight"),selectToLastRow:Be(e.selectToLastRow,"primary+shift+ArrowDown")}}function $d(e){let t=Os(e);return d.useMemo(()=>{if(t===void 0)return aa(zr);let r={...t,goToNextPage:(t==null?void 0:t.goToNextPage)??(t==null?void 0:t.pageDown)??zr.goToNextPage,goToPreviousPage:(t==null?void 0:t.goToPreviousPage)??(t==null?void 0:t.pageUp)??zr.goToPreviousPage,goToFirstCell:(t==null?void 0:t.goToFirstCell)??(t==null?void 0:t.first)??zr.goToFirstCell,goToLastCell:(t==null?void 0:t.goToLastCell)??(t==null?void 0:t.last)??zr.goToLastCell,selectToFirstCell:(t==null?void 0:t.selectToFirstCell)??(t==null?void 0:t.first)??zr.selectToFirstCell,selectToLastCell:(t==null?void 0:t.selectToLastCell)??(t==null?void 0:t.last)??zr.selectToLastCell};return aa({...zr,...r})},[t])}function Vd(e){function t(r,n,o){if(typeof r=="number")return{headerIndex:r,isCollapsed:!1,depth:n,path:o};let i={headerIndex:r.headerIndex,isCollapsed:r.isCollapsed,depth:n,path:o};return r.subGroups!==void 0&&(i.subGroups=r.subGroups.map((l,a)=>t(l,n+1,[...o,a])).sort((l,a)=>l.headerIndex-a.headerIndex)),i}return e.map((r,n)=>t(r,0,[n])).sort((r,n)=>r.headerIndex-n.headerIndex)}function xi(e,t){let r=[];function n(l,a,s=!1){let c=a===null?t-l.headerIndex:a-l.headerIndex;if(l.subGroups!==void 0&&(c=l.subGroups[0].headerIndex-l.headerIndex),c--,r.push({headerIndex:l.headerIndex,contentIndex:-1,skip:s,isCollapsed:l.isCollapsed,depth:l.depth,path:l.path,rows:c}),l.subGroups)for(let u=0;ul.skip===!1).map(l=>{let{skip:a,...s}=l;return s})}function So(e,t){if(t===void 0||xi.length===0)return{path:[e],originalIndex:e,isGroupHeader:!1,groupIndex:e,contentIndex:e,groupRows:-1};let r=e;for(let n of t){if(r===0)return{path:[...n.path,-1],originalIndex:n.headerIndex,isGroupHeader:!0,groupIndex:-1,contentIndex:-1,groupRows:n.rows};if(r--,!n.isCollapsed){if(re===void 0?void 0:xi(e,t),[e,t]),i=d.useMemo(()=>o===void 0?t:o.reduce((c,u)=>c+(u.isCollapsed?1:u.rows+1),0),[o,t]),l=d.useMemo(()=>e===void 0||typeof r=="number"&&e.height===r?r:c=>{let{isGroupHeader:u}=So(c,o);return u?e.height:typeof r=="number"?r:r(c)},[o,e,r]),a=d.useCallback(c=>{if(o===void 0)return c;let u=c;for(let f of o){if(u===0)return;if(u--,!f.isCollapsed){if(u{if(e===void 0)return n==null?void 0:n(c,c,c);if(n===void 0&&(e==null?void 0:e.themeOverride)===void 0)return;let{isGroupHeader:u,contentIndex:f,groupIndex:p}=So(c,o);return u?e.themeOverride:n==null?void 0:n(c,p,f)},[o,n,e]));return e===void 0?{rowHeight:l,rows:t,rowNumberMapper:a,getRowThemeOverride:s}:{rowHeight:l,rows:i,rowNumberMapper:a,getRowThemeOverride:s}}function Yd(e,t){let r=d.useMemo(()=>e===void 0?void 0:xi(e,t),[e,t]);return{getRowGroupingForPath:ca,updateRowGroupingByPath:sa,mapper:d.useCallback(n=>{if(typeof n=="number")return So(n,r);let o=So(n[1],r);return{...o,originalIndex:[n[0],o.originalIndex]}},[r])}}function sa(e,t,r){let[n,...o]=t;return o[0]===-1?e.map((i,l)=>l===n?{...i,...r}:i):e.map((i,l)=>l===n?{...i,subGroups:sa(i.subGroups??[],o,r)}:i)}function ca(e,t){let[r,...n]=t;return n[0]===-1?e[r]:ca(e[r].subGroups??[],n)}function Gd(e,t){let[r]=d.useState(()=>({value:e,callback:t,facade:{get current(){return r.value},set current(n){let o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}));return r.callback=t,r.facade}function Ud(e,t,r,n,o){let[i,l]=d.useMemo(()=>[t!==void 0&&typeof r=="number"?Math.floor(t/r):0,t!==void 0&&typeof r=="number"?-(t%r):0],[t,r]),[a,s,c]=Ts(d.useMemo(()=>({x:n.current.x,y:i,width:n.current.width??1,height:n.current.height??1,ty:l}),[n,l,i])),u=d.useRef(o);u.current=o;let f=Gd(null,h=>{h!==null&&t!==void 0?h.scrollTop=t:h!==null&&e!==void 0&&(h.scrollLeft=e)}),p=(a.height??1)>1;d.useLayoutEffect(()=>{if(t!==void 0&&f.current!==null&&p){if(f.current.scrollTop===t)return;f.current.scrollTop=t,f.current.scrollTop!==t&&c(),u.current()}},[t,p,c,f]);let m=(a.width??1)>1;return d.useLayoutEffect(()=>{if(e!==void 0&&f.current!==null&&m){if(f.current.scrollLeft===e)return;f.current.scrollLeft=e,f.current.scrollLeft!==e&&c(),u.current()}},[e,m,c,f]),{visibleRegion:a,setVisibleRegion:s,scrollRef:f}}var Zr=Gt(yo(),1),Xd=Gt(wc(),1),ua=Gt(xc(),1),bn=Gt(Sl(),1),qd=Gt(ti(),1),Zd=d.lazy(async()=>await Ja(()=>import("./data-grid-overlay-editor-Cm2nyRoH.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)),Jd=0;function Qd(e){return(0,Xd.default)((0,ua.default)((0,ua.default)(e).filter(t=>t.span!==void 0).map(t=>{var r,n;return(0,bn.default)((((r=t.span)==null?void 0:r[0])??0)+1,(((n=t.span)==null?void 0:n[1])??0)+1)})))}function ko(e,t){return e===void 0||t===0||e.columns.length===0&&e.current===void 0?e:{current:e.current===void 0?void 0:{cell:[e.current.cell[0]+t,e.current.cell[1]],range:{...e.current.range,x:e.current.range.x+t},rangeStack:e.current.rangeStack.map(r=>({...r,x:r.x+t}))},rows:e.rows,columns:e.columns.offset(t)}}var Mo={kind:pe.Loading,allowOverlay:!1},Ro={columns:nt.empty(),rows:nt.empty(),current:void 0};const eh=d.forwardRef((e,t)=>{var Wa,Ba,$a;let[r,n]=d.useState(Ro),[o,i]=d.useState(),l=d.useRef(null),a=d.useRef(null),[s,c]=d.useState(),u=d.useRef(),f=typeof window>"u"?null:window,{imageEditorOverride:p,getRowThemeOverride:m,markdownDivCreateNode:h,width:v,height:S,columns:M,rows:y,getCellContent:k,onCellClicked:I,onCellActivated:P,onFillPattern:E,onFinishedEditing:O,coercePasteValue:F,drawHeader:C,drawCell:R,editorBloom:L,onHeaderClicked:x,onColumnProposeMove:w,rangeSelectionColumnSpanning:T=!0,spanRangeBehavior:H="default",onGroupHeaderClicked:b,onCellContextMenu:J,className:_,onHeaderContextMenu:Q,getCellsForSelection:ee,onGroupHeaderContextMenu:K,onGroupHeaderRenamed:se,onCellEdited:oe,onCellsEdited:ue,onSearchResultsChanged:de,searchResults:X,onSearchValueChange:q,searchValue:te,onKeyDown:ne,onKeyUp:le,keybindings:Fe,editOnType:Oe=!0,onRowAppended:Ee,onColumnMoved:Ge,validateCell:Me,highlightRegions:mt,rangeSelect:vt="rect",columnSelect:Qe="multi",rowSelect:ae="multi",rangeSelectionBlending:_e="exclusive",columnSelectionBlending:He="exclusive",rowSelectionBlending:Ve="exclusive",onDelete:xe,onDragStart:Ke,onMouseMove:Ne,onPaste:Ue,copyHeaders:me=!1,freezeColumns:be=0,cellActivationBehavior:rt="second-click",rowSelectionMode:qe="auto",onHeaderMenuClick:Xe,onHeaderIndicatorClick:ht,getGroupDetails:et,rowGrouping:De,onSearchClose:St,onItemHovered:zt,onSelectionCleared:kt,showSearch:Rt,onVisibleRegionChanged:Ft,gridSelection:wt,onGridSelectionChange:pr,minColumnWidth:Ar=50,maxColumnWidth:ut=500,maxColumnAutoWidth:kr,provideEditor:ir,trailingRowOptions:Re,freezeTrailingRows:yt=0,allowedFillDirections:mr="orthogonal",scrollOffsetX:lr,scrollOffsetY:Qt,verticalBorder:$e,onDragOverCell:xt,onDrop:Mt,onColumnResize:Nt,onColumnResizeEnd:Pt,onColumnResizeStart:$t,customRenderers:Lr,fillHandle:Et,experimental:Ct,fixedShadowX:Tt,fixedShadowY:At,headerIcons:Mr,imageWindowLoader:Eo,initialSize:jr,isDraggable:Rr,onDragLeave:Er,onRowMoved:vr,overscrollX:Io,overscrollY:To,preventDiagonalScrolling:Cn,rightElement:Sn,rightElementProps:kn,trapFocus:Jr=!1,smoothScrollX:Qr,smoothScrollY:Fr,scaleToRem:Oo=!1,rowHeight:Mi=34,headerHeight:Po=36,groupHeaderHeight:Mn=Po,theme:_r,isOutsideClick:Ri,renderers:qn,resizeIndicator:Ho,scrollToActiveCell:Zn=!0,drawFocusRing:en=!0}=e,Jn=en==="no-editor"?o===void 0:en,ft=typeof e.rowMarkers=="string"?void 0:e.rowMarkers,Vt=(ft==null?void 0:ft.kind)??e.rowMarkers??"none",Do=(ft==null?void 0:ft.width)??e.rowMarkerWidth,Ir=(ft==null?void 0:ft.startIndex)??e.rowMarkerStartIndex??1,Tr=(ft==null?void 0:ft.theme)??e.rowMarkerTheme,Rn=ft==null?void 0:ft.headerTheme,Nr=ft==null?void 0:ft.headerAlwaysVisible,En=ae!=="multi",tn=(ft==null?void 0:ft.checkboxStyle)??"square",Or=Math.max(Ar,20),rn=Math.max(ut,Or),zo=Math.max(kr??rn,Or),Qn=d.useMemo(()=>typeof window>"u"?{fontSize:"16px"}:window.getComputedStyle(document.documentElement),[]),{rows:Ie,rowNumberMapper:eo,rowHeight:Ei,getRowThemeOverride:ar}=Kd(De,y,Mi,m),{rowHeight:wr,headerHeight:nn,groupHeaderHeight:to,theme:on,overscrollX:ro,overscrollY:no}=Bd({groupHeaderHeight:Mn,headerHeight:Po,overscrollX:Io,overscrollY:To,remSize:d.useMemo(()=>Number.parseFloat(Qn.fontSize),[Qn]),rowHeight:Ei,scaleToRem:Oo,theme:_r}),yr=$d(Fe),sr=Do??(y>1e4?48:y>1e3?44:y>100?36:32),er=Vt!=="none",B=er?1:0,bt=Ee!==void 0,ln=(Re==null?void 0:Re.sticky)===!0,[j,re]=d.useState(!1),ye=Rt??j,fe=d.useCallback(()=>{St===void 0?re(!1):St()},[St]),A=d.useMemo(()=>wt===void 0?void 0:ko(wt,B),[wt,B])??r,ce=d.useRef();ce.current===void 0&&(ce.current=new AbortController),d.useEffect(()=>()=>ce==null?void 0:ce.current.abort(),[]);let[ve,je]=Md(ee,k,B,ce.current,Ie),ke=d.useCallback((g,D,z)=>{if(Me===void 0)return!0;let N=[g[0]-B,g[1]];return Me==null?void 0:Me(N,D,z)},[B,Me]),st=d.useRef(wt),he=d.useCallback((g,D)=>{D&&(g=Hd(g,ve,B,H,ce.current)),pr===void 0?n(g):(st.current=ko(g,-B),pr(st.current))},[pr,ve,B,H]),Le=Gr(Nt,d.useCallback((g,D,z,N)=>{Nt==null||Nt(M[z-B],D,z-B,N)},[Nt,B,M])),Ye=Gr(Pt,d.useCallback((g,D,z,N)=>{Pt==null||Pt(M[z-B],D,z-B,N)},[Pt,B,M])),it=Gr($t,d.useCallback((g,D,z,N)=>{$t==null||$t(M[z-B],D,z-B,N)},[$t,B,M])),Ot=Gr(C,d.useCallback((g,D)=>(C==null?void 0:C({...g,columnIndex:g.columnIndex-B},D))??!1,[C,B])),Ut=Gr(R,d.useCallback((g,D)=>(R==null?void 0:R({...g,col:g.col-B},D))??!1,[R,B])),lt=d.useCallback(g=>{if(xe!==void 0){let D=xe(ko(g,-B));return typeof D=="boolean"?D:ko(D,B)}return!0},[xe,B]),[gt,pt,Pe]=kd(A,he,_e,He,Ve,vt,T),at=d.useMemo(()=>Pr(us(),on),[on]),[_t,an]=d.useState([0,0,0]),cr=d.useMemo(()=>{if(qn===void 0)return{};let g={};for(let D of qn)g[D.kind]=D;return g},[qn]),Ht=d.useCallback(g=>g.kind===pe.Custom?Lr==null?void 0:Lr.find(D=>D.isMatch(g)):cr[g.kind],[Lr,cr]),{sizedColumns:Dt,nonGrowWidth:Sa}=ic(M,Ie,je,_t[0]-(B===0?0:sr)-_t[2],Or,zo,at,Ht,ce.current);Vt!=="none"&&(Sa+=sr);let Ii=d.useMemo(()=>Dt.some(g=>g.group!==void 0),[Dt]),oo=Ii?nn+to:nn,ka=A.rows.length,Ma=Vt==="none"?void 0:ka===0?!1:ka===Ie?!0:void 0,ot=d.useMemo(()=>Vt==="none"?Dt:[{title:"",width:sr,icon:void 0,hasMenu:!1,style:"normal",themeOverride:Tr,rowMarker:tn,rowMarkerChecked:Ma,headerRowMarkerTheme:Rn,headerRowMarkerAlwaysVisible:Nr,headerRowMarkerDisabled:En},...Dt],[Vt,Dt,sr,Tr,tn,Ma,Rn,Nr,En]),Xt=d.useRef({height:1,width:1,x:0,y:0}),Ao=d.useRef(!1),{setVisibleRegion:Ra,visibleRegion:sn,scrollRef:dt}=Ud(lr,Qt,wr,Xt,()=>Ao.current=!0);Xt.current=sn;let Uh=sn.x+B,Lo=sn.y,Kt=d.useRef(null),Bt=d.useCallback(g=>{var D;g===!0?(D=Kt.current)==null||D.focus():window.requestAnimationFrame(()=>{var z;(z=Kt.current)==null||z.focus()})},[]),Wt=bt?Ie+1:Ie,tr=d.useCallback(g=>{let D=B===0?g:g.map(N=>({...N,location:[N.location[0]-B,N.location[1]]})),z=ue==null?void 0:ue(D);if(z!==!0)for(let N of D)oe==null||oe(N.location,N.value);return z},[oe,ue,B]),[cn,Ti]=d.useState(),jo=A.current!==void 0&&A.current.range.width*A.current.range.height>1?A.current.range:void 0,In=Jn?(Wa=A.current)==null?void 0:Wa.cell:void 0,Fo=In==null?void 0:In[0],_o=In==null?void 0:In[1],Xh=d.useMemo(()=>{if((mt===void 0||mt.length===0)&&(jo??Fo??_o??cn)===void 0)return;let g=[];if(mt!==void 0)for(let D of mt){let z=ot.length-D.range.x-B;z>0&&g.push({color:D.color,range:{...D.range,x:D.range.x+B,width:Math.min(z,D.range.width)},style:D.style})}return cn!==void 0&&g.push({color:gn(at.accentColor,0),range:cn,style:"dashed"}),jo!==void 0&&g.push({color:gn(at.accentColor,.5),range:jo,style:"solid-outline"}),Fo!==void 0&&_o!==void 0&&g.push({color:at.accentColor,range:{x:Fo,y:_o,width:1,height:1},style:"solid-outline"}),g.length>0?g:void 0},[cn,jo,Fo,_o,mt,ot.length,at.accentColor,B]),Ea=d.useRef(ot);Ea.current=ot;let qt=d.useCallback(([g,D],z=!1)=>{var W,Y,$,V,Z,G,ge;let N=bt&&D===Wt-1;if(g===0&&er){if(N)return Mo;let we=eo(D);return we===void 0?Mo:{kind:$r.Marker,allowOverlay:!1,checkboxStyle:tn,checked:(A==null?void 0:A.rows.hasIndex(D))===!0,markerKind:Vt==="clickable-number"?"number":Vt,row:Ir+we,drawHandle:vr!==void 0,cursor:Vt==="clickable-number"?"pointer":void 0}}else if(N){let we=g===B?(Re==null?void 0:Re.hint)??"":"",ie=Ea.current[g];if(((W=ie==null?void 0:ie.trailingRowOptions)==null?void 0:W.disabled)===!0)return Mo;{let Ce=((Y=ie==null?void 0:ie.trailingRowOptions)==null?void 0:Y.hint)??we,ze=(($=ie==null?void 0:ie.trailingRowOptions)==null?void 0:$.addIcon)??(Re==null?void 0:Re.addIcon);return{kind:$r.NewRow,hint:Ce,allowOverlay:!1,icon:ze}}}else{let we=g-B;if(z||(Ct==null?void 0:Ct.strict)===!0){let Ce=Xt.current,ze=Ce.x>we||we>Ce.x+Ce.width||Ce.y>D||D>Ce.y+Ce.height||D>=Pi.current,Ze=we===((Z=(V=Ce.extras)==null?void 0:V.selected)==null?void 0:Z[0])&&D===((G=Ce.extras)==null?void 0:G.selected[1]),Te=!1;if(((ge=Ce.extras)==null?void 0:ge.freezeRegions)!==void 0){for(let Se of Ce.extras.freezeRegions)if(qr(Se,we,D)){Te=!0;break}}if(ze&&!Ze&&!Te)return Mo}let ie=k([we,D]);return B!==0&&ie.span!==void 0&&(ie={...ie,span:[ie.span[0]+B,ie.span[1]+B]}),ie}},[bt,Wt,er,eo,tn,A==null?void 0:A.rows,Vt,Ir,vr,B,Re==null?void 0:Re.hint,Re==null?void 0:Re.addIcon,Ct==null?void 0:Ct.strict,k]),Oi=d.useCallback(g=>{let D=(et==null?void 0:et(g))??{name:g};return se!==void 0&&g!==""&&(D={icon:D.icon,name:D.name,overrideTheme:D.overrideTheme,actions:[...D.actions??[],{title:"Rename",icon:"renameIcon",onClick:z=>Di({group:D.name,bounds:z.bounds})}]}),D},[et,se]),No=d.useCallback(g=>{var V;let[D,z]=g.cell,N=ot[D],W=(N==null?void 0:N.group)===void 0||(V=Oi(N.group))==null?void 0:V.overrideTheme,Y=N==null?void 0:N.themeOverride,$=ar==null?void 0:ar(z);i({...g,theme:Pr(at,W,Y,$,g.content.themeOverride)})},[ar,ot,Oi,at]),Tn=d.useCallback((g,D,z)=>{var $;if(A.current===void 0)return;let[N,W]=A.current.cell,Y=qt([N,W]);if(Y.kind!==pe.Boolean&&Y.allowOverlay){let V=Y;if(z!==void 0)switch(V.kind){case pe.Number:{let Z=X0(()=>z==="-"?-0:Number.parseFloat(z),0);V={...V,data:Number.isNaN(Z)?0:Z};break}case pe.Text:case pe.Markdown:case pe.Uri:V={...V,data:z};break}No({target:g,content:V,initialValue:z,cell:[N,W],highlight:z===void 0,forceEditMode:z!==void 0})}else Y.kind===pe.Boolean&&D&&Y.readonly!==!0&&(tr([{location:A.current.cell,value:{...Y,data:ia(Y.data)}}]),($=Kt.current)==null||$.damage([{cell:A.current.cell}]))},[qt,A,tr,No]),Ia=d.useCallback((g,D)=>{var W;let z=(W=Kt.current)==null?void 0:W.getBounds(g,D);if(z===void 0||dt.current===null)return;let N=qt([g,D]);N.allowOverlay&&No({target:z,content:N,initialValue:void 0,highlight:!0,cell:[g,D],forceEditMode:!0})},[qt,dt,No]),It=d.useCallback((g,D,z="both",N=0,W=0,Y=void 0)=>{if(dt.current!==null){let $=Kt.current,V=a.current,Z=typeof g=="number"?g:g.unit==="cell"?g.amount:void 0,G=typeof D=="number"?D:D.unit==="cell"?D.amount:void 0,ge=typeof g!="number"&&g.unit==="px"?g.amount:void 0,we=typeof D!="number"&&D.unit==="px"?D.amount:void 0;if($!==null&&V!==null){let ie={x:0,y:0,width:0,height:0},Ce=0,ze=0;if((Z!==void 0||G!==void 0)&&(ie=$.getBounds((Z??0)+B,G??0)??ie,ie.width===0||ie.height===0))return;let Ze=V.getBoundingClientRect(),Te=Ze.width/V.offsetWidth;if(ge!==void 0&&(ie={...ie,x:ge-Ze.left-dt.current.scrollLeft,width:1}),we!==void 0&&(ie={...ie,y:we+Ze.top-dt.current.scrollTop,height:1}),ie!==void 0){let Se={x:ie.x-N,y:ie.y-W,width:ie.width+2*N,height:ie.height+2*W},Je=0;for(let Ni=0;Ni0&&(Yt=Xr(Wt,Lt,wr));let hr=Je*Te+Ze.left+B*sr*Te,xr=Ze.right,nr=Ze.top+oo*Te,zn=Ze.bottom-Yt*Te,Go=ie.width+N*2;switch(Y==null?void 0:Y.hAlign){case"start":xr=hr+Go;break;case"end":hr=xr-Go;break;case"center":hr=Math.floor((hr+xr)/2)-Go/2,xr=hr+Go;break}let Uo=ie.height+W*2;switch(Y==null?void 0:Y.vAlign){case"start":zn=nr+Uo;break;case"end":nr=zn-Uo;break;case"center":nr=Math.floor((nr+zn)/2)-Uo/2,zn=nr+Uo;break}hr>Se.x?Ce=Se.x-hr:xrSe.y?ze=Se.y-nr:zn=Wt-Lt)&&(ze=0),(Ce!==0||ze!==0)&&(Te!==1&&(Ce/=Te,ze/=Te),dt.current.scrollTo(Ce+dt.current.scrollLeft,ze+dt.current.scrollTop))}}}},[B,yt,sr,dt,oo,be,Dt,Wt,ln,wr]),Ta=d.useRef(Ia),Oa=d.useRef(k),Pi=d.useRef(Ie);Ta.current=Ia,Oa.current=k,Pi.current=Ie;let On=d.useCallback(async(g,D=!0)=>{var V,Z;if(((Z=(V=ot[g])==null?void 0:V.trailingRowOptions)==null?void 0:Z.disabled)===!0)return;let z=Ee==null?void 0:Ee(),N,W=!0;z!==void 0&&(N=await z,N==="top"&&(W=!1),typeof N=="number"&&(W=!1));let Y=0,$=()=>{if(Pi.current<=Ie){Y<500&&window.setTimeout($,Y),Y=50+Y*2;return}let G=typeof N=="number"?N:W?Ie:0;Yo.current(g-B,G),gt({cell:[g,G],range:{x:g,y:G,width:1,height:1}},!1,!1,"edit");let ge=Oa.current([g-B,G]);ge.allowOverlay&&po(ge)&&ge.readonly!==!0&&D&&window.setTimeout(()=>{Ta.current(g,G)},0)};$()},[ot,Ee,B,Ie,gt]),Wo=d.useCallback(g=>{var z,N;let D=((N=(z=Dt[g])==null?void 0:z.trailingRowOptions)==null?void 0:N.targetColumn)??(Re==null?void 0:Re.targetColumn);if(typeof D=="number")return D+(er?1:0);if(typeof D=="object"){let W=M.indexOf(D);if(W>=0)return W+(er?1:0)}},[Dt,M,er,Re==null?void 0:Re.targetColumn]),Wr=d.useRef(),Pn=d.useRef(),io=d.useCallback((g,D)=>{var W;let[z,N]=D;return Pr(at,(W=ot[z])==null?void 0:W.themeOverride,ar==null?void 0:ar(N),g.themeOverride)},[ar,ot,at]),{mapper:un}=Yd(De,y),ur=De==null?void 0:De.navigationBehavior,lo=d.useCallback(g=>{var ge,we,ie;let D=Co.value?g.metaKey:g.ctrlKey,z=D&&ae==="multi",N=D&&Qe==="multi",[W,Y]=g.location,$=A.columns,V=A.rows,[Z,G]=((ge=A.current)==null?void 0:ge.cell)??[];if(g.kind==="cell"){if(Pn.current=void 0,dn.current=[W,Y],W===0&&er){if(bt===!0&&Y===Ie||Vt==="number"||ae==="none")return;let Ce=qt(g.location);if(Ce.kind!==$r.Marker)return;if(vr!==void 0){let Te=Ht(Ce);Zt((Te==null?void 0:Te.kind)===$r.Marker);let Se=(we=Te==null?void 0:Te.onClick)==null?void 0:we.call(Te,{...g,cell:Ce,posX:g.localEventX,posY:g.localEventY,bounds:g.bounds,theme:io(Ce,g.location),preventDefault:()=>{}});if(Se===void 0||Se.checked===Ce.checked)return}i(void 0),Bt();let ze=V.hasIndex(Y),Ze=Wr.current;if(ae==="multi"&&(g.shiftKey||g.isLongTouch===!0)&&Ze!==void 0&&V.hasIndex(Ze)){let Te=[Math.min(Ze,Y),Math.max(Ze,Y)+1];z||qe==="multi"?pt(void 0,Te,!0):pt(nt.fromSingleSelection(Te),void 0,z)}else ae==="multi"&&(z||g.isTouch||qe==="multi")?ze?pt(V.remove(Y),void 0,!0):(pt(void 0,Y,!0),Wr.current=Y):ze&&V.length===1?pt(nt.empty(),void 0,D):(pt(nt.fromSingleSelection(Y),void 0,D),Wr.current=Y)}else if(W>=B&&bt&&Y===Ie)On(Wo(W)??W);else if(Z!==W||G!==Y){let Ce=qt(g.location),ze=Ht(Ce);if((ze==null?void 0:ze.onSelect)!==void 0){let Se=!1;if(ze.onSelect({...g,cell:Ce,posX:g.localEventX,posY:g.localEventY,bounds:g.bounds,preventDefault:()=>Se=!0,theme:io(Ce,g.location)}),Se)return}if(ur==="block"&&un(Y).isGroupHeader)return;let Ze=ln&&Y===Ie,Te=ln&&A!==void 0&&((ie=A.current)==null?void 0:ie.cell[1])===Ie;if((g.shiftKey||g.isLongTouch===!0)&&Z!==void 0&&G!==void 0&&A.current!==void 0&&!Te){if(Ze)return;let Se=Math.min(W,Z),Je=Math.max(W,Z),Yt=Math.min(Y,G),Lt=Math.max(Y,G);gt({...A.current,range:{x:Se,y:Yt,width:Je-Se+1,height:Lt-Yt+1}},!0,D,"click"),Wr.current=void 0,Bt()}else gt({cell:[W,Y],range:{x:W,y:Y,width:1,height:1}},!0,D,"click"),Wr.current=void 0,i(void 0),Bt()}}else if(g.kind==="header")if(dn.current=[W,Y],i(void 0),er&&W===0)Wr.current=void 0,Pn.current=void 0,ae==="multi"&&(V.length===Ie?pt(nt.empty(),void 0,D):pt(nt.fromSingleSelection([0,Ie]),void 0,D),Bt());else{let Ce=Pn.current;if(Qe==="multi"&&(g.shiftKey||g.isLongTouch===!0)&&Ce!==void 0&&$.hasIndex(Ce)){let ze=[Math.min(Ce,W),Math.max(Ce,W)+1];N?Pe(void 0,ze,D):Pe(nt.fromSingleSelection(ze),void 0,D)}else N?($.hasIndex(W)?Pe($.remove(W),void 0,D):Pe(void 0,W,D),Pn.current=W):Qe!=="none"&&(Pe(nt.fromSingleSelection(W),void 0,D),Pn.current=W);Wr.current=void 0,Bt()}else g.kind==="group-header"?dn.current=[W,Y]:g.kind==="out-of-bounds"&&!g.isMaybeScrollbar&&(he(Ro,!1),i(void 0),Bt(),kt==null||kt(),Wr.current=void 0,Pn.current=void 0)},[ae,Qe,A,er,B,bt,Ie,Vt,qt,vr,Bt,qe,Ht,io,pt,Wo,On,ur,un,ln,gt,Pe,he,kt]),ao=d.useRef(!1),dn=d.useRef(),Pa=d.useRef(sn),rr=d.useRef(),qh=d.useCallback(g=>{if(Hn.current=!1,Pa.current=Xt.current,g.button!==0&&g.button!==1){rr.current=void 0;return}let D=performance.now();rr.current={button:g.button,time:D,location:g.location},(g==null?void 0:g.kind)==="header"&&(ao.current=!0);let z=g.kind==="cell"&&g.isFillHandle;!z&&g.kind!=="cell"&&g.isEdge||(c({previousSelection:A,fillHandle:z}),dn.current=void 0,!g.isTouch&&g.button===0&&!z?lo(g):!g.isTouch&&g.button===1&&(dn.current=g.location))},[A,lo]),[Hi,Di]=d.useState(),Ha=d.useCallback(g=>{if(g.kind!=="group-header"||Qe!=="multi")return;let D=Co.value?g.metaKey:g.ctrlKey,[z]=g.location,N=A.columns;if(z=B&&_n(W.group,ot[V].group);V--)Y--;for(let V=z+1;V{if(ve!==void 0&&Le!==void 0){let D=Xt.current.y,z=Xt.current.height,N=ve({x:g,y:D,width:1,height:Math.min(z,Ie-D)},ce.current.signal);typeof N!="object"&&(N=await N());let W=Dt[g-B],Y=document.createElement("canvas").getContext("2d",{alpha:!1});if(Y!==null){Y.font=at.baseFontFull;let $=wl(Y,at,W,0,N,Or,rn,!1,Ht);Le==null||Le(W,$.width,g,$.width)}}},[Dt,ve,rn,at,Or,Le,B,Ie,Ht]),[Zh,zi]=d.useState(),Dn=d.useCallback(async(g,D)=>{var V,Z;let z=(V=g.current)==null?void 0:V.range;if(z===void 0||ve===void 0||D.current===void 0)return;let N=D.current.range;if(E!==void 0){let G=!1;if(E({fillDestination:{...N,x:N.x-B},patternSource:{...z,x:z.x-B},preventDefault:()=>G=!0}),G)return}let W=ve(z,ce.current.signal);typeof W!="object"&&(W=await W());let Y=W,$=[];for(let G=0;G({cell:G.location})))},[ve,tr,E,B]),Da=d.useCallback(()=>{A.current===void 0||A.current.range.width<=1||Dn({...A,current:{...A.current,range:{...A.current.range,width:1}}},A)},[Dn,A]),za=d.useCallback(()=>{A.current===void 0||A.current.range.height<=1||Dn({...A,current:{...A.current,range:{...A.current.range,height:1}}},A)},[Dn,A]),Jh=d.useCallback((g,D)=>{var ge,we;let z=s;if(c(void 0),Ti(void 0),zi(void 0),ao.current=!1,D)return;if((z==null?void 0:z.fillHandle)===!0&&A.current!==void 0&&((ge=z.previousSelection)==null?void 0:ge.current)!==void 0){if(cn===void 0)return;let ie={...A,current:{...A.current,range:Il(z.previousSelection.current.range,cn)}};Dn(z.previousSelection,ie),he(ie,!0);return}let[N,W]=g.location,[Y,$]=dn.current??[],V=()=>{Hn.current=!0},Z=ie=>{var ze,Ze,Te;let Ce=ie.isTouch||Y===N&&$===W;if(Ce&&(I==null||I([N-B,W],{...ie,preventDefault:V})),ie.button===1)return!Hn.current;if(!Hn.current){let Se=qt(g.location),Je=Ht(Se);if(Je!==void 0&&Je.onClick!==void 0&&Ce){let Lt=Je.onClick({...ie,cell:Se,posX:ie.localEventX,posY:ie.localEventY,bounds:ie.bounds,theme:io(Se,g.location),preventDefault:V});Lt!==void 0&&!jn(Lt)&&go(Lt)&&(tr([{location:ie.location,value:Lt}]),(ze=Kt.current)==null||ze.damage([{cell:ie.location}]))}if(Hn.current||A.current===void 0)return!1;let Yt=!1;switch(Se.activationBehaviorOverride??rt){case"double-click":case"second-click":{if(((Te=(Ze=z==null?void 0:z.previousSelection)==null?void 0:Ze.current)==null?void 0:Te.cell)===void 0)break;let[Lt,hr]=A.current.cell,[xr,nr]=z.previousSelection.current.cell;Yt=N===Lt&&N===xr&&W===hr&&W===nr&&(ie.isDoubleClick===!0||rt==="second-click");break}case"single-click":Yt=!0;break}if(Yt)return P==null||P([N-B,W]),Tn(ie.bounds,!1),!0}return!1},G=g.location[0]-B;if(g.isTouch){let ie=Xt.current,Ce=Pa.current;if(ie.x!==Ce.x||ie.y!==Ce.y)return;if(g.isLongTouch===!0){if(g.kind==="cell"&&Nn((we=A.current)==null?void 0:we.cell,g.location)){J==null||J([G,g.location[1]],{...g,preventDefault:V});return}else if(g.kind==="header"&&A.columns.hasIndex(N)){Q==null||Q(G,{...g,preventDefault:V});return}else if(g.kind==="group-header"){if(G<0)return;K==null||K(G,{...g,preventDefault:V});return}}g.kind==="cell"?Z(g)||lo(g):g.kind==="group-header"?b==null||b(G,{...g,preventDefault:V}):(g.kind==="header"&&(x==null||x(G,{...g,preventDefault:V})),lo(g));return}if(g.kind==="header"){if(G<0)return;g.isEdge?g.isDoubleClick===!0&&Bo(N):g.button===0&&N===Y&&W===$&&(x==null||x(G,{...g,preventDefault:V}))}if(g.kind==="group-header"){if(G<0)return;g.button===0&&N===Y&&W===$&&(b==null||b(G,{...g,preventDefault:V}),Hn.current||Ha(g))}g.kind==="cell"&&(g.button===0||g.button===1)&&Z(g),dn.current=void 0},[s,A,B,cn,Dn,he,I,qt,Ht,rt,io,tr,P,Tn,J,Q,K,lo,b,x,Bo,Ha]),Qh=d.useCallback(g=>{let D={...g,location:[g.location[0]-B,g.location[1]]};Ne==null||Ne(D),s!==void 0&&g.buttons===0&&(c(void 0),Ti(void 0),zi(void 0),ao.current=!1),zi(z=>{var N;return ao.current?[g.scrollEdge[0],0]:g.scrollEdge[0]===(z==null?void 0:z[0])&&g.scrollEdge[1]===z[1]?z:s===void 0||(((N=rr.current)==null?void 0:N.location[0])??0){Xe==null||Xe(g-B,D)},[Xe,B]),t0=d.useCallback((g,D)=>{ht==null||ht(g-B,D)},[ht,B]),br=(Ba=A==null?void 0:A.current)==null?void 0:Ba.cell,r0=d.useCallback((g,D,z,N,W,Y)=>{Ao.current=!1;let $=br;$!==void 0&&($=[$[0]-B,$[1]]);let V=be===0?void 0:{x:0,y:g.y,width:be,height:g.height},Z=[];V!==void 0&&Z.push(V),yt>0&&(Z.push({x:g.x-B,y:Ie-yt,width:g.width,height:yt}),be>0&&Z.push({x:0,y:Ie-yt,width:be,height:yt}));let G={x:g.x-B,y:g.y,width:g.width,height:bt&&g.y+g.height>=Ie?g.height-1:g.height,tx:W,ty:Y,extras:{selected:$,freezeRegion:V,freezeRegions:Z}};Xt.current=G,Ra(G),an([D,z,N]),Ft==null||Ft(G,G.tx,G.ty,G.extras)},[br,B,bt,Ie,be,yt,Ra,Ft]),n0=Gr(Ge,d.useCallback((g,D)=>{Ge==null||Ge(g-B,D-B),Qe!=="none"&&Pe(nt.fromSingleSelection(D),void 0,!0)},[Qe,Ge,B,Pe])),Ai=d.useRef(!1),o0=d.useCallback(g=>{if(g.location[0]===0&&B>0){g.preventDefault();return}Ke==null||Ke({...g,location:[g.location[0]-B,g.location[1]]}),g.defaultPrevented()||(Ai.current=!0),c(void 0)},[Ke,B]),i0=d.useCallback(()=>{Ai.current=!1},[]),Aa=De==null?void 0:De.selectionBehavior,$o=d.useCallback(g=>{if(Aa!=="block-spanning")return;let{isGroupHeader:D,path:z,groupRows:N}=un(g);if(D)return[g,g];let W=z[z.length-1];return[g-W,g+N-W-1]},[un,Aa]),Li=d.useRef(),ji=d.useCallback(g=>{var D,z,N;if(!Zl(g,Li.current)&&(Li.current=g,!(((D=rr==null?void 0:rr.current)==null?void 0:D.button)!==void 0&&rr.current.button>=1))){if(g.buttons!==0&&s!==void 0&&((z=rr.current)==null?void 0:z.location[0])===0&&g.location[0]===0&&B===1&&ae==="multi"&&s.previousSelection&&!s.previousSelection.rows.hasIndex(rr.current.location[1])&&A.rows.hasIndex(rr.current.location[1])){let W=Math.min(rr.current.location[1],g.location[1]),Y=Math.max(rr.current.location[1],g.location[1])+1;pt(nt.fromSingleSelection([W,Y]),void 0,!1)}if(g.buttons!==0&&s!==void 0&&A.current!==void 0&&!Ai.current&&!ao.current&&(vt==="rect"||vt==="multi-rect")){let[W,Y]=A.current.cell,[$,V]=g.location;if(V<0&&(V=Xt.current.y),s.fillHandle===!0&&((N=s.previousSelection)==null?void 0:N.current)!==void 0){let Z=s.previousSelection.current.range;V=Math.min(V,bt?Ie-1:Ie),Ti(zc(Z,$,V,mr))}else{if(bt&&Y===Ie)return;if(bt&&V===Ie)if(g.kind==="out-of-bounds")V--;else return;$=Math.max($,B);let Z=$o(Y);V=Z===void 0?V:(0,Zr.default)(V,Z[0],Z[1]);let G=$-W,ge=V-Y,we={x:G>=0?W:$,y:ge>=0?Y:V,width:Math.abs(G)+1,height:Math.abs(ge)+1};gt({...A.current,range:we},!0,!1,"drag")}}zt==null||zt({...g,location:[g.location[0]-B,g.location[1]]})}},[s,B,ae,A,vt,zt,pt,bt,Ie,mr,$o,gt]);Wd(Zh,dt,d.useCallback(()=>{var $,V;let g=Li.current;if(g===void 0)return;let[D,z]=g.scrollEdge,[N,W]=g.location,Y=Xt.current;D===-1?N=((V=($=Y.extras)==null?void 0:$.freezeRegion)==null?void 0:V.x)??Y.x:D===1&&(N=Y.x+Y.width),z===-1?W=Math.max(0,Y.y):z===1&&(W=Math.min(Ie-1,Y.y+Y.height)),N=(0,Zr.default)(N,0,ot.length-1),W=(0,Zr.default)(W,0,Ie-1),ji({...g,location:[N,W]})},[ot.length,ji,Ie]));let dr=d.useCallback(g=>{if(A.current===void 0)return;let[D,z]=g,[N,W]=A.current.cell,Y=A.current.range,$=Y.x,V=Y.x+Y.width,Z=Y.y,G=Y.y+Y.height,[ge,we]=$o(W)??[0,Ie-1],ie=we+1;if(z!==0)switch(z){case 2:G=ie,Z=W,It(0,G,"vertical");break;case-2:Z=ge,G=W+1,It(0,Z,"vertical");break;case 1:ZW+1?(G--,It(0,G,"vertical")):(Z=Math.max(ge,Z-1),It(0,Z,"vertical"));break;default:qo(z)}if(D!==0)if(D===2)V=ot.length,$=N,It(V-1-B,0,"horizontal");else if(D===-2)$=B,V=N+1,It($-B,0,"horizontal");else{let Ce=[];if(ve!==void 0){let ze=ve({x:$,y:Z,width:V-$-B,height:G-Z},ce.current.signal);typeof ze=="object"&&(Ce=Qd(ze))}if(D===1){let ze=!1;if($0){let Ze=(0,bn.default)($+1,N+1).find(Te=>!Ce.includes(Te-B));Ze!==void 0&&($=Ze,ze=!0)}else $++,ze=!0;ze&&It($,0,"horizontal")}ze||(V=Math.min(ot.length,V+1),It(V-1-B,0,"horizontal"))}else if(D===-1){let ze=!1;if(V>N+1){if(Ce.length>0){let Ze=(0,bn.default)(V-1,N,-1).find(Te=>!Ce.includes(Te-B));Ze!==void 0&&(V=Ze,ze=!0)}else V--,ze=!0;ze&&It(V-B,0,"horizontal")}ze||($=Math.max(B,$-1),It($-B,0,"horizontal"))}else qo(D)}gt({cell:A.current.cell,range:{x:$,y:Z,width:V-$,height:G-Z}},!0,!1,"keyboard-select")},[ve,$o,A,ot.length,B,Ie,It,gt]),Fi=d.useRef(Zn);Fi.current=Zn;let Br=d.useCallback((g,D,z,N)=>{let W=Wt-(z?0:1);g=(0,Zr.default)(g,B,Dt.length-1+B),D=(0,Zr.default)(D,0,W);let Y=br==null?void 0:br[0],$=br==null?void 0:br[1];if(g===Y&&D===$)return!1;if(N&&A.current!==void 0){let V=[...A.current.rangeStack];(A.current.range.width>1||A.current.range.height>1)&&V.push(A.current.range),he({...A,current:{cell:[g,D],range:{x:g,y:D,width:1,height:1},rangeStack:V}},!0)}else gt({cell:[g,D],range:{x:g,y:D,width:1,height:1}},!0,!1,"keyboard-nav");return u.current!==void 0&&u.current[0]===g&&u.current[1]===D&&(u.current=void 0),Fi.current&&It(g-B,D),!0},[Wt,B,Dt.length,br,A,It,he,gt]),l0=d.useCallback((g,D)=>{(o==null?void 0:o.cell)!==void 0&&g!==void 0&&go(g)&&(tr([{location:o.cell,value:g}]),window.requestAnimationFrame(()=>{var W;(W=Kt.current)==null||W.damage([{cell:o.cell}])})),Bt(!0),i(void 0);let[z,N]=D;if(A.current!==void 0&&(z!==0||N!==0)){let W=A.current.cell[1]===Wt-1&&g!==void 0;Br((0,Zr.default)(A.current.cell[0]+z,0,ot.length-1),(0,Zr.default)(A.current.cell[1]+N,0,Wt-1),W,!1)}O==null||O(g,D)},[o==null?void 0:o.cell,Bt,A,O,tr,Wt,Br,ot.length]),a0=d.useMemo(()=>`gdg-overlay-${Jd++}`,[]),hn=d.useCallback(g=>{var z,N,W,Y,$;Bt();let D=[];for(let V=g.x;V({cell:V.location})))},[Bt,k,Ht,tr,B]),so=o!==void 0,La=d.useCallback(g=>{var ze,Ze;let D=()=>{g.stopPropagation(),g.preventDefault()},z={didMatch:!1},{bounds:N}=g,W=A.columns,Y=A.rows,$=yr;if(!so&&We($.clear,g,z))he(Ro,!1),kt==null||kt();else if(!so&&We($.selectAll,g,z))he({columns:nt.empty(),rows:nt.empty(),current:{cell:((ze=A.current)==null?void 0:ze.cell)??[B,0],range:{x:B,y:0,width:M.length,height:Ie},rangeStack:[]}},!1);else if(We($.search,g,z))(Ze=l==null?void 0:l.current)==null||Ze.focus({preventScroll:!0}),re(!0);else if(We($.delete,g,z)){let Te=(lt==null?void 0:lt(A))??!0;if(Te!==!1){let Se=Te===!0?A:Te;if(Se.current!==void 0){hn(Se.current.range);for(let Je of Se.current.rangeStack)hn(Je)}for(let Je of Se.rows)hn({x:B,y:Je,width:M.length,height:1});for(let Je of Se.columns)hn({x:Je,y:0,width:1,height:Ie})}}if(z.didMatch)return D(),!0;if(A.current===void 0)return!1;let[V,Z]=A.current.cell,[,G]=A.current.cell,ge=!1,we=!1;if(We($.scrollToSelectedCell,g,z)?Yo.current(V-B,Z):Qe!=="none"&&We($.selectColumn,g,z)?W.hasIndex(V)?Pe(W.remove(V),void 0,!0):Qe==="single"?Pe(nt.fromSingleSelection(V),void 0,!0):Pe(void 0,V,!0):ae!=="none"&&We($.selectRow,g,z)?Y.hasIndex(Z)?pt(Y.remove(Z),void 0,!0):ae==="single"?pt(nt.fromSingleSelection(Z),void 0,!0):pt(void 0,Z,!0):!so&&N!==void 0&&We($.activateCell,g,z)?Z===Ie&&bt?window.setTimeout(()=>{On(Wo(V)??V)},0):(P==null||P([V-B,Z]),Tn(N,!0)):A.current.range.height>1&&We($.downFill,g,z)?za():A.current.range.width>1&&We($.rightFill,g,z)?Da():We($.goToNextPage,g,z)?Z+=Math.max(1,Xt.current.height-4):We($.goToPreviousPage,g,z)?Z-=Math.max(1,Xt.current.height-4):We($.goToFirstCell,g,z)?(i(void 0),Z=0,V=0):We($.goToLastCell,g,z)?(i(void 0),Z=2**53-1,V=2**53-1):We($.selectToFirstCell,g,z)?(i(void 0),dr([-2,-2])):We($.selectToLastCell,g,z)?(i(void 0),dr([2,2])):so?(We($.closeOverlay,g,z)&&i(void 0),We($.acceptOverlayDown,g,z)&&(i(void 0),Z++),We($.acceptOverlayUp,g,z)&&(i(void 0),Z--),We($.acceptOverlayLeft,g,z)&&(i(void 0),V--),We($.acceptOverlayRight,g,z)&&(i(void 0),V++)):(We($.goDownCell,g,z)?Z+=1:We($.goUpCell,g,z)?--Z:We($.goRightCell,g,z)?V+=1:We($.goLeftCell,g,z)?--V:We($.goDownCellRetainSelection,g,z)?(Z+=1,ge=!0):We($.goUpCellRetainSelection,g,z)?(--Z,ge=!0):We($.goRightCellRetainSelection,g,z)?(V+=1,ge=!0):We($.goLeftCellRetainSelection,g,z)?(--V,ge=!0):We($.goToLastRow,g,z)?Z=Ie-1:We($.goToFirstRow,g,z)?Z=-(2**53-1):We($.goToLastColumn,g,z)?V=2**53-1:We($.goToFirstColumn,g,z)?V=-(2**53-1):(vt==="rect"||vt==="multi-rect")&&(We($.selectGrowDown,g,z)?dr([0,1]):We($.selectGrowUp,g,z)?dr([0,-1]):We($.selectGrowRight,g,z)?dr([1,0]):We($.selectGrowLeft,g,z)?dr([-1,0]):We($.selectToLastRow,g,z)?dr([0,2]):We($.selectToFirstRow,g,z)?dr([0,-2]):We($.selectToLastColumn,g,z)?dr([2,0]):We($.selectToFirstColumn,g,z)&&dr([-2,0])),we=z.didMatch),ur!==void 0&&ur!=="normal"&&Z!==G){let Te=ur==="skip-up"||ur==="skip"||ur==="block",Se=ur==="skip-down"||ur==="skip"||ur==="block",Je=Z=0&&un(Z).isGroupHeader;)Z--;Z<0&&(Z=G)}else if(!Je&&Se){for(;Z=Ie&&(Z=G)}}let ie=Br(V,Z,!1,ge),Ce=z.didMatch;return Ce&&(ie||!we||Jr)&&D(),Ce},[ur,so,A,yr,Qe,ae,vt,B,un,Ie,Br,he,kt,M.length,lt,Jr,hn,Pe,pt,bt,Wo,On,P,Tn,za,Da,dr]),co=d.useCallback(g=>{let D=!1;if(ne!==void 0&&ne({...g,cancel:()=>{D=!0}}),D||La(g)||A.current===void 0)return;let[z,N]=A.current.cell,W=Xt.current;if(Oe&&!g.metaKey&&!g.ctrlKey&&A.current!==void 0&&g.key.length===1&&/[ -~]/g.test(g.key)&&g.bounds!==void 0&&po(k([z-B,Math.max(0,Math.min(N,Ie-1))]))){if((!bt||N!==Ie)&&(W.y>N||N>W.y+W.height||W.x>z||z>W.x+W.width))return;Tn(g.bounds,!0,g.key),g.stopPropagation(),g.preventDefault()}},[Oe,ne,La,A,k,B,Ie,bt,Tn]),s0=d.useCallback((g,D)=>{let z=g.location[0]-B;if(g.kind==="header"&&(Q==null||Q(z,{...g,preventDefault:D})),g.kind==="group-header"){if(z<0)return;K==null||K(z,{...g,preventDefault:D})}if(g.kind==="cell"){let[N,W]=g.location;J==null||J([z,W],{...g,preventDefault:D}),Vs(A,g.location)||Br(N,W,!1,!1)}},[A,J,K,Q,B,Br]),_i=d.useCallback(async g=>{var $,V,Z;if(!yr.paste)return;function D(G,ge,we,ie){var ze,Ze;let Ce=typeof we=="object"?(we==null?void 0:we.join(` +`))??"":(we==null?void 0:we.toString())??"";if(!jn(G)&&po(G)&&G.readonly!==!0){let Te=F==null?void 0:F(Ce,G);if(Te!==void 0&&go(Te))return{location:ge,value:Te};let Se=Ht(G);if(Se===void 0)return;if(Se.kind===pe.Custom){Zt(G.kind===pe.Custom);let Je=(ze=Se.onPaste)==null?void 0:ze.call(Se,Ce,G.data);return Je===void 0?void 0:{location:ge,value:{...G,data:Je}}}else{let Je=(Ze=Se.onPaste)==null?void 0:Ze.call(Se,Ce,G,{formatted:ie,formattedString:typeof ie=="string"?ie:ie==null?void 0:ie.join(` +`),rawValue:we});return Je===void 0?void 0:(Zt(Je.kind===G.kind),{location:ge,value:Je})}}}let z=A.columns,N=A.rows,W=(($=dt.current)==null?void 0:$.contains(document.activeElement))===!0||((V=a.current)==null?void 0:V.contains(document.activeElement))===!0,Y;if(A.current===void 0?z.length===1?Y=[z.first()??0,0]:N.length===1&&(Y=[B,N.first()??0]):Y=[A.current.range.x,A.current.range.y],W&&Y!==void 0){let G,ge,we="text/plain",ie="text/html";if(navigator.clipboard.read!==void 0){let Te=await navigator.clipboard.read();for(let Se of Te){if(Se.types.includes(ie)){let Je=na(await(await Se.getType(ie)).text());if(Je!==void 0){G=Je;break}}Se.types.includes(we)&&(ge=await(await Se.getType(we)).text())}}else if(navigator.clipboard.readText!==void 0)ge=await navigator.clipboard.readText();else if(g!==void 0&&(g==null?void 0:g.clipboardData)!==null)g.clipboardData.types.includes(ie)&&(G=na(g.clipboardData.getData(ie))),G===void 0&&g.clipboardData.types.includes(we)&&(ge=g.clipboardData.getData(we));else return;let[Ce,ze]=Y,Ze=[];do{if(Ue===void 0){let Te=qt(Y),Se=ge??(G==null?void 0:G.map(Yt=>Yt.map(Lt=>Lt.rawValue).join(" ")).join(" "))??"",Je=D(Te,Y,Se,void 0);Je!==void 0&&Ze.push(Je);break}if(G===void 0){if(ge===void 0)return;G=Dd(ge)}if(Ue===!1||typeof Ue=="function"&&(Ue==null?void 0:Ue([Y[0]-B,Y[1]],G.map(Te=>Te.map(Se=>{var Je;return((Je=Se.rawValue)==null?void 0:Je.toString())??""}))))!==!0)return;for(let[Te,Se]of G.entries()){if(Te+ze>=Ie)break;for(let[Je,Yt]of Se.entries()){let Lt=[Je+Ce,Te+ze],[hr,xr]=Lt;if(hr>=ot.length||xr>=Wt)continue;let nr=D(qt(Lt),Lt,Yt.rawValue,Yt.formatted);nr!==void 0&&Ze.push(nr)}}}while(!1);tr(Ze),(Z=Kt.current)==null||Z.damage(Ze.map(Te=>({cell:Te.location})))}},[F,Ht,qt,A,yr.paste,dt,ot.length,tr,Wt,Ue,B,Ie]);jt("paste",_i,f,!1,!0);let uo=d.useCallback(async(g,D)=>{var $,V;if(!yr.copy)return;let z=D===!0||(($=dt.current)==null?void 0:$.contains(document.activeElement))===!0||((V=a.current)==null?void 0:V.contains(document.activeElement))===!0,N=A.columns,W=A.rows,Y=(Z,G)=>{zd(me?[G.map(ge=>({kind:pe.Text,data:M[ge].title,displayData:M[ge].title,allowOverlay:!1})),...Z]:Z,G,g)};if(z&&ve!==void 0){if(A.current!==void 0){let Z=ve(A.current.range,ce.current.signal);typeof Z!="object"&&(Z=await Z()),Y(Z,(0,bn.default)(A.current.range.x-B,A.current.range.x+A.current.range.width-B))}else if(W!==void 0&&W.length>0){let Z=[...W].map(G=>{let ge=ve({x:B,y:G,width:M.length,height:1},ce.current.signal);return typeof ge=="object"?ge[0]:ge().then(we=>we[0])});Z.some(G=>G instanceof Promise)?Y(await Promise.all(Z),(0,bn.default)(M.length)):Y(Z,(0,bn.default)(M.length))}else if(N.length>0){let Z=[],G=[];for(let ge of N){let we=ve({x:ge,y:0,width:1,height:Ie},ce.current.signal);typeof we!="object"&&(we=await we()),Z.push(we),G.push(ge-B)}Z.length===1?Y(Z[0],G):Y(Z.reduce((ge,we)=>ge.map((ie,Ce)=>[...ie,...we[Ce]])),G)}}},[M,ve,A,yr.copy,B,dt,Ie,me]);jt("copy",uo,f,!1,!1),jt("cut",d.useCallback(async g=>{var D,z;if(yr.cut&&(((D=dt.current)==null?void 0:D.contains(document.activeElement))===!0||((z=a.current)==null?void 0:z.contains(document.activeElement))===!0)&&(await uo(g),A.current!==void 0)){let N={current:{cell:A.current.cell,range:A.current.range,rangeStack:[]},rows:nt.empty(),columns:nt.empty()},W=lt==null?void 0:lt(N);if(W===!1||(N=W===!0?N:W,N.current===void 0))return;hn(N.current.range)}},[hn,A,yr.cut,uo,dt,lt]),f,!1,!1);let c0=d.useCallback((g,D)=>{if(de!==void 0){B!==0&&(g=g.map(W=>[W[0]-B,W[1]])),de(g,D);return}if(g.length===0||D===-1)return;let[z,N]=g[D];u.current!==void 0&&u.current[0]===z&&u.current[1]===N||(u.current=[z,N],Br(z,N,!1,!1))},[de,B,Br]),[Vo,Ko]=(($a=wt==null?void 0:wt.current)==null?void 0:$a.cell)??[],Yo=d.useRef(It);Yo.current=It,d.useLayoutEffect(()=>{var g,D,z,N;Fi.current&&!Ao.current&&Vo!==void 0&&Ko!==void 0&&(Vo!==((D=(g=st.current)==null?void 0:g.current)==null?void 0:D.cell[0])||Ko!==((N=(z=st.current)==null?void 0:z.current)==null?void 0:N.cell[1]))&&Yo.current(Vo,Ko),Ao.current=!1},[Vo,Ko]);let ja=A.current!==void 0&&(A.current.cell[0]>=ot.length||A.current.cell[1]>=Wt);d.useLayoutEffect(()=>{ja&&he(Ro,!1)},[ja,he]);let u0=d.useMemo(()=>bt===!0&&(Re==null?void 0:Re.tint)===!0?nt.fromSingleSelection(Wt-1):nt.empty(),[Wt,bt,Re==null?void 0:Re.tint]),d0=d.useCallback(g=>typeof $e=="boolean"?$e:($e==null?void 0:$e(g-B))??!0,[B,$e]),h0=d.useMemo(()=>{if(Hi===void 0||a.current===null)return null;let{bounds:g,group:D}=Hi,z=a.current.getBoundingClientRect();return d.createElement(Cd,{bounds:g,group:D,canvasBounds:z,onClose:()=>Di(void 0),onFinish:N=>{Di(void 0),se==null||se(D,N)}})},[se,Hi]),f0=Math.min(ot.length,be+(er?1:0));d.useImperativeHandle(t,()=>({appendRow:(g,D)=>On(g+B,D),updateCells:g=>{var D;return B!==0&&(g=g.map(z=>({cell:[z.cell[0]+B,z.cell[1]]}))),(D=Kt.current)==null?void 0:D.damage(g)},getBounds:(g,D)=>{var z;if(!((a==null?void 0:a.current)===null||(dt==null?void 0:dt.current)===null)){if(g===void 0&&D===void 0){let N=a.current.getBoundingClientRect(),W=N.width/dt.current.clientWidth;return{x:N.x-dt.current.scrollLeft*W,y:N.y-dt.current.scrollTop*W,width:dt.current.scrollWidth*W,height:dt.current.scrollHeight*W}}return(z=Kt.current)==null?void 0:z.getBounds((g??0)+B,D)}},focus:()=>{var g;return(g=Kt.current)==null?void 0:g.focus()},emit:async g=>{switch(g){case"delete":co({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-right":co({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"fill-down":co({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0,location:void 0});break;case"copy":await uo(void 0,!0);break;case"paste":await _i();break}},scrollTo:It,remeasureColumns:g=>{for(let D of g)Bo(D+B)}}),[On,Bo,dt,uo,co,_i,B,It]);let[Fa,_a]=br??[],g0=d.useCallback(g=>{let[D,z]=g;if(z===-1){Qe!=="none"&&(Pe(nt.fromSingleSelection(D),void 0,!1),Bt());return}Fa===D&&_a===z||(gt({cell:g,range:{x:D,y:z,width:1,height:1}},!0,!1,"keyboard-nav"),It(D,z))},[Qe,Bt,It,Fa,_a,gt,Pe]),[p0,m0]=d.useState(!1),Na=d.useRef((0,qd.default)(g=>{m0(g)},5)),v0=d.useCallback(()=>{Na.current(!0),A.current===void 0&&A.columns.length===0&&A.rows.length===0&&s===void 0&>({cell:[B,Lo],range:{x:B,y:Lo,width:1,height:1}},!0,!1,"keyboard-select")},[Lo,A,s,B,gt]),w0=d.useCallback(()=>{Na.current(!1)},[]),[y0,b0]=d.useMemo(()=>{let g,D=(Ct==null?void 0:Ct.scrollbarWidthOverride)??oi(),z=Ie+(bt?1:0);if(typeof wr=="number")g=oo+z*wr;else{let W=0,Y=Math.min(z,10);for(let $=0;$Y.width+W,0)+D;return[`${Math.min(1e5,N)}px`,`${Math.min(1e5,g)}px`]},[ot,Ct==null?void 0:Ct.scrollbarWidthOverride,wr,Ie,bt,oo]),x0=d.useMemo(()=>ef(at),[at]);return d.createElement(tf.Provider,{value:at},d.createElement(Fd,{style:x0,className:_,inWidth:v??y0,inHeight:S??b0},d.createElement(yd,{fillHandle:Et,drawFocusRing:Jn,experimental:Ct,fixedShadowX:Tt,fixedShadowY:At,getRowThemeOverride:ar,headerIcons:Mr,imageWindowLoader:Eo,initialSize:jr,isDraggable:Rr,onDragLeave:Er,onRowMoved:vr,overscrollX:ro,overscrollY:no,preventDiagonalScrolling:Cn,rightElement:Sn,rightElementProps:kn,smoothScrollX:Qr,smoothScrollY:Fr,className:_,enableGroups:Ii,onCanvasFocused:v0,onCanvasBlur:w0,canvasRef:a,onContextMenu:s0,theme:at,cellXOffset:Uh,cellYOffset:Lo,accessibilityHeight:sn.height,onDragEnd:i0,columns:ot,nonGrowWidth:Sa,drawHeader:Ot,onColumnProposeMove:w,drawCell:Ut,disabledRows:u0,freezeColumns:f0,lockColumns:B,firstColAccessible:B===0,getCellContent:qt,minColumnWidth:Or,maxColumnWidth:rn,searchInputRef:l,showSearch:ye,onSearchClose:fe,highlightRegions:Xh,getCellsForSelection:ve,getGroupDetails:Oi,headerHeight:nn,isFocused:p0,groupHeaderHeight:Ii?to:0,freezeTrailingRows:yt+(bt&&(Re==null?void 0:Re.sticky)===!0?1:0),hasAppendRow:bt,onColumnResize:Le,onColumnResizeEnd:Ye,onColumnResizeStart:it,onCellFocused:g0,onColumnMoved:n0,onDragStart:o0,onHeaderMenuClick:e0,onHeaderIndicatorClick:t0,onItemHovered:ji,isFilling:(s==null?void 0:s.fillHandle)===!0,onMouseMove:Qh,onKeyDown:co,onKeyUp:le,onMouseDown:qh,onMouseUp:Jh,onDragOverCell:xt,onDrop:Mt,onSearchResultsChanged:c0,onVisibleRegionChanged:r0,clientSize:_t,rowHeight:wr,searchResults:X,searchValue:te,onSearchValueChange:q,rows:Wt,scrollRef:dt,selection:A,translateX:sn.tx,translateY:sn.ty,verticalBorder:d0,gridRef:Kt,getCellRenderer:Ht,resizeIndicator:Ho}),h0,o!==void 0&&d.createElement(d.Suspense,{fallback:null},d.createElement(Zd,{...o,validateCell:ke,bloom:L,id:a0,getCellRenderer:Ht,className:(Ct==null?void 0:Ct.isSubGrid)===!0?"click-outside-ignore":void 0,provideEditor:ir,imageEditorOverride:p,onFinishEditing:l0,markdownDivCreateNode:h,isOutsideClick:Ri,customEventTarget:Ct==null?void 0:Ct.eventTarget}))))});var da=20;function ha(e){let{cell:t,posX:r,posY:n,bounds:o,theme:i}=e,{width:l,height:a,x:s,y:c}=o,u=t.maxSize??da,f=Math.floor(o.y+a/2),p=rl(u,a,i.cellVerticalPadding),m=el(tl(t.contentAlign??"center",s,l,i.cellHorizontalPadding,p),f,p),h=nl(s+r,c+n,m);return Ki(t)&&h}const th={getAccessibilityString:e=>{var t;return((t=e.data)==null?void 0:t.toString())??"false"},kind:pe.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:e=>rh(e,e.cell.data,Ki(e.cell),e.cell.maxSize??da,e.cell.hoverEffectIntensity??.35),onDelete:e=>({...e,data:!1}),onSelect:e=>{ha(e)&&e.preventDefault()},onClick:e=>{if(ha(e))return{...e.cell,data:ia(e.cell.data)}},onPaste:(e,t)=>{let r=null;return e.toLowerCase()==="true"?r=!0:e.toLowerCase()==="false"?r=!1:e.toLowerCase()==="indeterminate"&&(r=void 0),r===t.data?void 0:{...t,data:r}}};function rh(e,t,r,n,o){if(!r&&t===null)return;let{ctx:i,hoverAmount:l,theme:a,rect:s,highlighted:c,hoverX:u,hoverY:f,cell:{contentAlign:p}}=e,{x:m,y:h,width:v,height:S}=s,M=!1;if(o>0){let y=r?1-o+o*l:.4;if(t===null&&(y*=l),y===0)return;y<1&&(M=!0,i.globalAlpha=y)}mi(i,a,t,m,h,v,S,c,u,f,n,p),M&&(i.globalAlpha=1)}const nh=Jt("div")({name:"BubblesOverlayEditorStyle",class:"gdg-b1ygi5by",propsAsIs:!1});var oh=e=>{let{bubbles:t}=e;return d.createElement(nh,null,t.map((r,n)=>d.createElement("div",{key:n,className:"boe-bubble"},r)),d.createElement("textarea",{className:"gdg-input",autoFocus:!0}))};const ih={getAccessibilityString:e=>ol(e.data),kind:pe.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,r)=>t.data.reduce((n,o)=>e.measureText(o).width+n+20,0)+2*r.cellHorizontalPadding-4,draw:e=>ah(e,e.cell.data),provideEditor:()=>e=>{let{value:t}=e;return d.createElement(oh,{bubbles:t.data})},onPaste:()=>{}};var lh=4;function ah(e,t){let{rect:r,theme:n,ctx:o,highlighted:i}=e,{x:l,y:a,width:s,height:c}=r,u=lh,f=l+n.cellHorizontalPadding,p=[];for(let m of t){if(f>l+s)break;let h=wn(m,o,n.baseFontFull).width;p.push({x:f,width:h}),f+=h+16+u}o.beginPath();for(let m of p)gr(o,m.x,a+(c-20)/2,m.width+16,20,n.roundingRadius??20/2);o.fillStyle=i?n.bgBubbleSelected:n.bgBubble,o.fill();for(let[m,h]of p.entries())o.beginPath(),o.fillStyle=n.textBubble,o.fillText(t[m],h.x+8,a+c/2+Hr(o,n))}var sh=Jt("div")({name:"DrilldownOverlayEditorStyle",class:"gdg-d4zsq0x",propsAsIs:!1}),ch=e=>{let{drilldowns:t}=e;return d.createElement(sh,null,t.map((r,n)=>d.createElement("div",{key:n,className:"doe-bubble"},r.img!==void 0&&d.createElement("img",{src:r.img}),d.createElement("div",null,r.text))))};const uh={getAccessibilityString:e=>ol(e.data.map(t=>t.text)),kind:pe.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,r)=>t.data.reduce((n,o)=>e.measureText(o.text).width+n+20+(o.img===void 0?0:18),0)+2*r.cellHorizontalPadding-4,draw:e=>fh(e,e.cell.data),provideEditor:()=>e=>{let{value:t}=e;return d.createElement(ch,{drilldowns:t.data})},onPaste:()=>{}};var dh=4,Ci={};function hh(e,t,r,n){let o=Math.ceil(window.devicePixelRatio),i=r-10,l=r*o,a=n+5,s=n*3,c=(s+10)*o,u=`${e},${t},${o},${r}`;if(Ci[u]!==void 0)return{el:Ci[u],height:l,width:c,middleWidth:4*o,sideWidth:a*o,padding:5*o,dpr:o};let f=document.createElement("canvas"),p=f.getContext("2d");return p===null?null:(f.width=c,f.height=l,p.scale(o,o),Ci[u]=f,p.beginPath(),gr(p,5,5,s,i,n),p.shadowColor="rgba(24, 25, 34, 0.4)",p.shadowBlur=1,p.fillStyle=e,p.fill(),p.shadowColor="rgba(24, 25, 34, 0.3)",p.shadowOffsetY=1,p.shadowBlur=5,p.fillStyle=e,p.fill(),p.shadowOffsetY=0,p.shadowBlur=0,p.shadowBlur=0,p.beginPath(),gr(p,5.5,5.5,s,i,n),p.strokeStyle=t,p.lineWidth=1,p.stroke(),{el:f,height:l,width:c,sideWidth:a*o,middleWidth:n*o,padding:5*o,dpr:o})}function fh(e,t){let{rect:r,theme:n,ctx:o,imageLoader:i,col:l,row:a}=e,{x:s,width:c}=r,u=n.baseFontFull,f=pl(o,u),p=Math.min(r.height,Math.max(16,Math.ceil(f*n.lineHeight)*2)),m=Math.floor(r.y+(r.height-p)/2),h=p-10,v=dh,S=s+n.cellHorizontalPadding,M=n.roundingRadius??6,y=hh(n.bgCell,n.drilldownBorder,p,M),k=[];for(let I of t){if(S>s+c)break;let P=wn(I.text,o,u).width,E=0;I.img!==void 0&&i.loadOrGetImage(I.img,l,a)!==void 0&&(E=h-8+4);let O=P+E+16;k.push({x:S,width:O}),S+=O+v}if(y!==null){let{el:I,height:P,middleWidth:E,sideWidth:O,width:F,dpr:C,padding:R}=y,L=O/C,x=R/C;for(let w of k){let T=Math.floor(w.x),H=Math.floor(w.width),b=H-(L-x)*2;o.imageSmoothingEnabled=!1,o.drawImage(I,0,0,O,P,T-x,m,L,p),b>0&&o.drawImage(I,O,0,E,P,T+(L-x),m,b,p),o.drawImage(I,F-O,0,O,P,T+H-(L-x),m,L,p),o.imageSmoothingEnabled=!0}}o.beginPath();for(let[I,P]of k.entries()){let E=t[I],O=P.x+8;if(E.img!==void 0){let F=i.loadOrGetImage(E.img,l,a);if(F!==void 0){let C=h-8,R=0,L=0,x=F.width,w=F.height;x>w?(R+=(x-w)/2,x=w):w>x&&(L+=(w-x)/2,w=x),o.beginPath(),gr(o,O,m+p/2-C/2,C,C,n.roundingRadius??3),o.save(),o.clip(),o.drawImage(F,R,L,x,w,O,m+p/2-C/2,C,C),o.restore(),O+=C+4}}o.beginPath(),o.fillStyle=n.textBubble,o.fillText(E.text,O,m+p/2+Hr(o,n))}}const gh={getAccessibilityString:e=>e.data.join(", "),kind:pe.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:e=>ph(e,e.cell.displayData??e.cell.data,e.cell.rounding??e.theme.roundingRadius??4,e.cell.contentAlign),measure:(e,t)=>t.data.length*50,onDelete:e=>({...e,data:[]}),provideEditor:()=>e=>{let{value:t,onFinishedEditing:r,imageEditorOverride:n}=e,o=n??Hs;return d.createElement(o,{urls:t.data,canWrite:t.readonly!==!0,onCancel:r,onChange:i=>{r({...t,data:[i]})}})},onPaste:(e,t)=>{e=e.trim();let r=e.split(",").map(n=>{try{return new URL(n),n}catch{return}}).filter(n=>n!==void 0);if(!(r.length===t.data.length&&r.every((n,o)=>n===t.data[o])))return{...t,data:r}}};var Si=4;function ph(e,t,r,n){let{rect:o,col:i,row:l,theme:a,ctx:s,imageLoader:c}=e,{x:u,y:f,height:p,width:m}=o,h=p-a.cellVerticalPadding*2,v=[],S=0;for(let y=0;y0&&(s.beginPath(),gr(s,M,f+a.cellVerticalPadding,k,h,r),s.save(),s.clip()),s.drawImage(y,M,f+a.cellVerticalPadding,k,h),r>0&&s.restore(),M+=k+Si}}function mh(e,t){let r=e*49632+t*325176;return r^=r<<13,r^=r>>17,r^=r<<5,r/4294967295*2}const vh={getAccessibilityString:()=>"",kind:pe.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:e=>{let{cell:t,col:r,row:n,ctx:o,rect:i,theme:l}=e;if(t.skeletonWidth===void 0||t.skeletonWidth===0)return;let a=t.skeletonWidth;t.skeletonWidthVariability!==void 0&&t.skeletonWidthVariability>0&&(a+=Math.round(mh(r,n)*t.skeletonWidthVariability));let s=l.cellHorizontalPadding;a+s*2>=i.width&&(a=i.width-s*2-1);let c=t.skeletonHeight??Math.min(18,i.height-2*l.cellVerticalPadding);gr(o,i.x+s,i.y+(i.height-c)/2,a,c,l.roundingRadius??3),o.fillStyle=gn(l.textDark,.1),o.fill()},onPaste:()=>{}};var wh=()=>e=>e.targetWidth;const fa=Jt("div")({name:"MarkdownOverlayEditorStyle",class:"gdg-m1pnx84e",propsAsIs:!1,vars:{"m1pnx84e-0":[wh(),"px"]}}),yh=e=>{let{value:t,onChange:r,forceEditMode:n,createNode:o,targetRect:i,onFinish:l,validatedSelection:a}=e,s=t.data,c=t.readonly===!0,[u,f]=d.useState(s===""||n),p=d.useCallback(()=>{f(h=>!h)},[]),m=s?"gdg-ml-6":"";return u?d.createElement(fa,{targetWidth:i.width-20},d.createElement(vo,{autoFocus:!0,highlight:!1,validatedSelection:a,value:s,onKeyDown:h=>{h.key==="Enter"&&h.stopPropagation()},onChange:r}),d.createElement("div",{className:`gdg-edit-icon gdg-checkmark-hover ${m}`,onClick:()=>l(t)},d.createElement(Rs,null))):d.createElement(fa,{targetWidth:i.width},d.createElement(zs,{contents:s,createNode:o}),!c&&d.createElement(d.Fragment,null,d.createElement("div",{className:"spacer"}),d.createElement("div",{className:`gdg-edit-icon gdg-edit-hover ${m}`,onClick:p},d.createElement(ri,null))),d.createElement("textarea",{className:"gdg-md-edit-textarea gdg-input",autoFocus:!0}))},bh={getAccessibilityString:e=>{var t;return((t=e.data)==null?void 0:t.toString())??""},kind:pe.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:Bn,measure:(e,t,r)=>{let n=t.data.split(` +`)[0];return e.measureText(n).width+2*r.cellHorizontalPadding},draw:e=>Sr(e,e.cell.data,e.cell.contentAlign),onDelete:e=>({...e,data:""}),provideEditor:()=>e=>{let{onChange:t,value:r,target:n,onFinishedEditing:o,markdownDivCreateNode:i,forceEditMode:l,validatedSelection:a}=e;return d.createElement(yh,{onFinish:o,targetRect:n,value:r,validatedSelection:a,onChange:s=>t({...r,data:s.target.value}),forceEditMode:l,createNode:i})},onPaste:(e,t)=>e===t.data?void 0:{...t,data:e}},xh={getAccessibilityString:e=>e.row.toString(),kind:$r.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:Ch,measure:()=>44,draw:e=>kh(e,e.cell.row,e.cell.checked,e.cell.markerKind,e.cell.drawHandle,e.cell.checkboxStyle),onClick:e=>{let{bounds:t,cell:r,posX:n,posY:o}=e,{width:i,height:l}=t,a=r.drawHandle?7+(i-7)/2:i/2,s=l/2;if(Math.abs(n-a)<=10&&Math.abs(o-s)<=10)return{...r,checked:!r.checked}},onPaste:()=>{}};function Ch(e,t){let{ctx:r,theme:n}=e,o=n.markerFontFull,i=t??{};return(i==null?void 0:i.font)!==o&&(r.font=o,i.font=o),i.deprep=Sh,r.textAlign="center",i}function Sh(e){let{ctx:t}=e;t.textAlign="start"}function kh(e,t,r,n,o,i){let{ctx:l,rect:a,hoverAmount:s,theme:c}=e,{x:u,y:f,width:p,height:m}=a,h=r?1:n==="checkbox-visible"?.6+.4*s:s;if(n!=="number"&&h>0){l.globalAlpha=h;let v=7*(r?s:1);if(mi(l,c,r,o?u+v:u,f,o?p-v:p,m,!0,void 0,void 0,18,"center",i),o){l.globalAlpha=s,l.beginPath();for(let S of[3,6])for(let M of[-5,-1,3])l.rect(u+S,f+m/2+M,2,2);l.fillStyle=c.textLight,l.fill(),l.beginPath()}l.globalAlpha=1}if(n==="number"||n==="both"&&!r){let v=t.toString(),S=c.markerFontFull,M=u+p/2;n==="both"&&s!==0&&(l.globalAlpha=1-s),l.fillStyle=c.textLight,l.font=S,l.fillText(v,M,f+m/2+Hr(l,S)),s!==0&&(l.globalAlpha=1)}}const Mh={getAccessibilityString:()=>"",kind:$r.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:e=>Rh(e,e.cell.hint,e.cell.icon),onPaste:()=>{}};function Rh(e,t,r){let{ctx:n,rect:o,hoverAmount:i,theme:l,spriteManager:a}=e,{x:s,y:c,width:u,height:f}=o;n.beginPath(),n.globalAlpha=i,n.rect(s+1,c+1,u,f-2),n.fillStyle=l.bgHeaderHovered,n.fill(),n.globalAlpha=1,n.beginPath();let p=t!=="",m=0;if(r!==void 0){let h=f-8,v=s+8/2,S=c+8/2;a.drawSprite(r,"normal",n,v,S,h,l,p?1:i),m=h}else{m=24;let h=p?12:i*12,v=p?0:(1-i)*12*.5,S=l.cellHorizontalPadding+4;h>0&&(n.moveTo(s+S+v,c+f/2),n.lineTo(s+S+v+h,c+f/2),n.moveTo(s+S+v+h*.5,c+f/2-h*.5),n.lineTo(s+S+v+h*.5,c+f/2+h*.5),n.lineWidth=2,n.strokeStyle=l.bgIconHeader,n.lineCap="round",n.stroke())}n.fillStyle=l.textMedium,n.fillText(t,m+s+l.cellHorizontalPadding+.5,c+f/2+Hr(n,l)),n.beginPath()}function ga(e,t,r,n,o,i,l){e.textBaseline="alphabetic";let a=Eh(e,o,n,t,(r==null?void 0:r.fullSize)??!1);e.beginPath(),gr(e,a.x,a.y,a.width,a.height,t.roundingRadius??4),e.globalAlpha=i,e.fillStyle=(r==null?void 0:r.bgColor)??gn(t.textDark,.1),e.fill(),e.globalAlpha=1,e.fillStyle=t.textDark,e.textBaseline="middle",l==null||l("text")}function Eh(e,t,r,n,o){let i=n.cellHorizontalPadding,l=n.cellVerticalPadding;if(o)return{x:t.x+i/2,y:t.y+l/2+1,width:t.width-i,height:t.height-l-1};let a=wn(r,e,n.baseFontFull,"alphabetic"),s=t.height-l,c=Math.min(s,a.actualBoundingBoxAscent*2.5);return{x:t.x+i/2,y:t.y+(t.height-c)/2+1,width:a.width+i*3,height:c-1}}var Ih=d.lazy(async()=>await Ja(()=>import("./number-overlay-editor-CKxhKINF.js").then(async e=>(await e.__tla,e)),__vite__mapDeps([7,4,5,2,3]),import.meta.url));const Th={getAccessibilityString:e=>{var t;return((t=e.data)==null?void 0:t.toString())??""},kind:pe.Number,needsHover:e=>e.hoverEffect===!0,needsHoverPosition:!1,useLabel:!0,drawPrep:Bn,draw:e=>{let{hoverAmount:t,cell:r,ctx:n,theme:o,rect:i,overrideCursor:l}=e,{hoverEffect:a,displayData:s,hoverEffectTheme:c}=r;a===!0&&t>0&&ga(n,o,c,s,i,t,l),Sr(e,e.cell.displayData,e.cell.contentAlign)},measure:(e,t,r)=>e.measureText(t.displayData).width+r.cellHorizontalPadding*2,onDelete:e=>({...e,data:void 0}),provideEditor:()=>e=>{let{isHighlighted:t,onChange:r,value:n,validatedSelection:o}=e;return d.createElement(d.Suspense,{fallback:null},d.createElement(Ih,{highlight:t,disabled:n.readonly===!0,value:n.data,fixedDecimals:n.fixedDecimals,allowNegative:n.allowNegative,thousandSeparator:n.thousandSeparator,decimalSeparator:n.decimalSeparator,validatedSelection:o,onChange:i=>r({...n,data:Number.isNaN(i.floatValue??0)?0:i.floatValue})}))},onPaste:(e,t,r)=>{let n=typeof r.rawValue=="number"?r.rawValue:Number.parseFloat(typeof r.rawValue=="string"?r.rawValue:e);if(!(Number.isNaN(n)||t.data===n))return{...t,data:n,displayData:r.formattedString??t.displayData}}},Oh={getAccessibilityString:()=>"",measure:()=>108,kind:pe.Protected,needsHover:!1,needsHoverPosition:!1,draw:Ph,onPaste:()=>{}};function Ph(e){let{ctx:t,theme:r,rect:n}=e,{x:o,y:i,height:l}=n;t.beginPath();let a=2.5,s=o+r.cellHorizontalPadding+a,c=i+l/2,u=Math.cos(Qi(30))*a,f=Math.sin(Qi(30))*a;for(let p=0;p<12;p++)t.moveTo(s,c-a),t.lineTo(s,c+a),t.moveTo(s+u,c-f),t.lineTo(s-u,c+f),t.moveTo(s-u,c-f),t.lineTo(s+u,c+f),s+=8;t.lineWidth=1.1,t.lineCap="square",t.strokeStyle=r.textLight,t.stroke()}const Hh={getAccessibilityString:e=>{var t;return((t=e.data)==null?void 0:t.toString())??""},kind:pe.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(e,t)=>Bn(e,t,e.theme.textLight),draw:e=>Sr(e,e.cell.data,e.cell.contentAlign),measure:(e,t,r)=>e.measureText(t.data).width+r.cellHorizontalPadding*2,provideEditor:()=>e=>{let{isHighlighted:t,onChange:r,value:n,validatedSelection:o}=e;return d.createElement(vo,{highlight:t,autoFocus:n.readonly!==!0,disabled:n.readonly!==!1,value:n.data,validatedSelection:o,onChange:i=>r({...n,data:i.target.value})})},onPaste:()=>{}},Dh={getAccessibilityString:e=>{var t;return((t=e.data)==null?void 0:t.toString())??""},kind:pe.Text,needsHover:e=>e.hoverEffect===!0,needsHoverPosition:!1,drawPrep:Bn,useLabel:!0,draw:e=>{let{cell:t,hoverAmount:r,hyperWrapping:n,ctx:o,rect:i,theme:l,overrideCursor:a}=e,{displayData:s,contentAlign:c,hoverEffect:u,allowWrapping:f,hoverEffectTheme:p}=t;u===!0&&r>0&&ga(o,l,p,s,i,r,a),Sr(e,s,c,f,n)},measure:(e,t,r)=>{let n=t.displayData.split(` +`,t.allowWrapping===!0?void 0:1),o=0;for(let i of n)o=Math.max(o,e.measureText(i).width);return o+2*r.cellHorizontalPadding},onDelete:e=>({...e,data:""}),provideEditor:e=>({disablePadding:e.allowWrapping===!0,editor:t=>{let{isHighlighted:r,onChange:n,value:o,validatedSelection:i}=t;return d.createElement(vo,{style:e.allowWrapping===!0?{padding:"3px 8.5px"}:void 0,highlight:r,autoFocus:o.readonly!==!0,disabled:o.readonly===!0,altNewline:!0,value:o.data,validatedSelection:i,onChange:l=>n({...o,data:l.target.value})})}}),onPaste:(e,t,r)=>e===t.data?void 0:{...t,data:e,displayData:r.formattedString??t.displayData}},zh=Jt("div")({name:"UriOverlayEditorStyle",class:"gdg-u1rrojo",propsAsIs:!1});var Ah=e=>{let{uri:t,onChange:r,forceEditMode:n,readonly:o,validatedSelection:i,preview:l}=e,[a,s]=d.useState(!o&&(t===""||n)),c=d.useCallback(()=>{s(!0)},[]);return a?d.createElement(vo,{validatedSelection:i,highlight:!0,autoFocus:!0,value:t,onChange:r}):d.createElement(zh,null,d.createElement("a",{className:"gdg-link-area",href:t,target:"_blank",rel:"noopener noreferrer"},l),!o&&d.createElement("div",{className:"gdg-edit-icon",onClick:c},d.createElement(ri,null)),d.createElement("textarea",{className:"gdg-input",autoFocus:!0}))};function pa(e,t,r,n){let o=r.cellHorizontalPadding,i=t.height/2-e.actualBoundingBoxAscent/2,l=e.width,a=e.actualBoundingBoxAscent;return n==="right"?o=t.width-l-r.cellHorizontalPadding:n==="center"&&(o=t.width/2-l/2),{x:o,y:i,width:l,height:a}}function ma(e){let{cell:t,bounds:r,posX:n,posY:o,theme:i}=e,l=t.displayData??t.data;if(t.hoverEffect!==!0||t.onClickUri===void 0)return!1;let a=dl(l,i.baseFontFull);if(a===void 0)return!1;let s=pa(a,r,i,t.contentAlign);return qr({x:s.x-4,y:s.y-4,width:s.width+8,height:s.height+8},n,o)}const Lh=[xh,Mh,th,ih,uh,gh,vh,bh,Th,Oh,Hh,Dh,{getAccessibilityString:e=>{var t;return((t=e.data)==null?void 0:t.toString())??""},kind:pe.Uri,needsHover:e=>e.hoverEffect===!0,needsHoverPosition:!0,useLabel:!0,drawPrep:Bn,draw:e=>{let{cell:t,theme:r,overrideCursor:n,hoverX:o,hoverY:i,rect:l,ctx:a}=e,s=t.displayData??t.data,c=t.hoverEffect===!0;if(n!==void 0&&c&&o!==void 0&&i!==void 0){let{x:u,y:f,width:p,height:m}=pa(wn(s,a,r.baseFontFull),l,r,t.contentAlign);if(o>=u-4&&o<=u-4+p+8&&i>=f-4&&i<=f-4+m+8){let h=Hr(a,r.baseFontFull);n("pointer");let v=f-h;a.beginPath(),a.moveTo(l.x+u,Math.floor(l.y+v+m+5)+.5),a.lineTo(l.x+u+p,Math.floor(l.y+v+m+5)+.5),a.strokeStyle=r.linkColor,a.stroke(),a.save(),a.fillStyle=e.cellFillColor,Sr({...e,rect:{...l,x:l.x-1}},s,t.contentAlign),Sr({...e,rect:{...l,x:l.x-2}},s,t.contentAlign),Sr({...e,rect:{...l,x:l.x+1}},s,t.contentAlign),Sr({...e,rect:{...l,x:l.x+2}},s,t.contentAlign),a.restore()}}a.fillStyle=c?r.linkColor:r.textDark,Sr(e,s,t.contentAlign)},onSelect:e=>{ma(e)&&e.preventDefault()},onClick:e=>{var r;let{cell:t}=e;ma(e)&&((r=t.onClickUri)==null||r.call(t,e))},measure:(e,t,r)=>e.measureText(t.displayData??t.data).width+r.cellHorizontalPadding*2,onDelete:e=>({...e,data:""}),provideEditor:e=>t=>{let{onChange:r,value:n,forceEditMode:o,validatedSelection:i}=t;return d.createElement(Ah,{forceEditMode:n.readonly!==!0&&(o||e.hoverEffect===!0&&e.onClickUri!==void 0),uri:n.data,preview:n.displayData??n.data,validatedSelection:i,readonly:n.readonly===!0,onChange:l=>r({...n,data:l.target.value})})},onPaste:(e,t,r)=>e===t.data?void 0:{...t,data:e,displayData:r.formattedString??t.displayData}}];var jh=Gt(U(((e,t)=>{var r=ti(),n=ho(),o="Expected a function";function i(l,a,s){var c=!0,u=!0;if(typeof l!="function")throw TypeError(o);return n(s)&&(c="leading"in s?!!s.leading:c,u="trailing"in s?!!s.trailing:u),r(l,a,{leading:c,maxWait:a,trailing:u})}t.exports=i}))(),1),ki=[],Fh=class extends vl{constructor(){super(...arguments);tt(this,"imageLoaded",()=>{});tt(this,"loadedLocations",[]);tt(this,"cache",{});tt(this,"sendLoaded",(0,jh.default)(()=>{this.imageLoaded(new $n(this.loadedLocations)),this.loadedLocations=[]},20));tt(this,"clearOutOfWindow",()=>{let t=Object.keys(this.cache);for(let r of t){let n=this.cache[r],o=!1;for(let i=0;i{a||(a=!0,ki.length<12?ki.unshift(l):i||(l.src=""))}},c=new Promise(u=>l.addEventListener("load",()=>u(null)));requestAnimationFrame(async()=>{try{l.src=t,await c,await l.decode();let u=this.cache[o];if(u!==void 0&&!a){u.img=l;for(let f of u.cells)this.loadedLocations.push(ui(f));i=!0,this.sendLoaded()}}catch{s.cancel()}}),this.cache[o]=s}loadOrGetImage(t,r,n){let o=t,i=this.cache[o];if(i!==void 0){let l=or(r,n);return i.cells.includes(l)||i.cells.push(l),i.img}else this.loadImage(t,r,n,o)}};const _h=d.forwardRef((e,t)=>{let r=d.useMemo(()=>({...Pc,...e.headerIcons}),[e.headerIcons]),n=d.useMemo(()=>e.imageWindowLoader??new Fh,[e.imageWindowLoader]);return d.createElement(eh,{...e,renderers:Lh,headerIcons:r,ref:t,imageWindowLoader:n})});function Nh(e){switch(e){case"string":return pe.Text;case"number":return pe.Number;case"boolean":return pe.Boolean;default:return pe.Text}}function Wh(e){switch(e){case"string":return Vr.HeaderString;case"number":case"integer":return Vr.HeaderNumber;case"boolean":return Vr.HeaderBoolean;case"date":case"datetime":return Vr.HeaderDate;case"time":return Vr.HeaderTime;case"unknown":return Vr.HeaderString;default:return Va(e),Vr.HeaderString}}function va(e){return"rowIdx"in e&&"columnId"in e&&"value"in e}function Bh(e){return"rowIdx"in e&&"type"in e}function $h(e){return"columnIdx"in e&&"type"in e}function Vh(e){let{selection:t,data:r,setData:n,onAddEdits:o,columns:i,editableColumns:l}=e;if(!t.current)return;let{range:a}=t.current,{x:s,y:c}=a;navigator.clipboard.readText().then(u=>{if(!u.trim())return;let f=u.split(` +`).filter(h=>h.trim()),p=[];for(let h of f){let v=h.split(" ");p.push(v)}if(p.length===0)return;let m=[];for(let[h,v]of p.entries()){if(!v)continue;let S=c+h;if(S>=r.length)break;for(let[M,y]of v.entries()){if(y===void 0)continue;let k=s+M;if(!i||k>=i.length)break;let I=i[k],P=I.dataType;if(!(l==="all"||l.includes(I.title)))continue;let E=y;switch(P){case"integer":case"number":{let F=Number(y);if(Number.isNaN(F))continue;E=F;break}case"boolean":{let F=y.toLowerCase();E=F==="true"||F==="1";break}}let O=i[k].title;m.push({rowIdx:S,columnId:O,value:E})}}m.length>0&&(o(m),n(h=>{let v=[...h];for(let S of m)if(va(S)){let M=S.rowIdx,y=S.columnId;if(M{Wi.error("Failed to read clipboard data",u)})}function Kh(e){return e==="light"?{lineHeight:1.25}:{lineHeight:1.25,accentColor:"#7c3aed",accentLight:"rgba(124, 58, 237, 0.15)",textDark:"#f4f4f5",textMedium:"#a1a1aa",textLight:"#71717a",textBubble:"#f4f4f5",bgIconHeader:"#a1a1aa",fgIconHeader:"#18181b",textHeader:"#d4d4d8",textHeaderSelected:"#18181b",bgCell:"#18181b",bgCellMedium:"#27272a",bgHeader:"#27272a",bgHeaderHasFocus:"#3f3f46",bgHeaderHovered:"#3f3f46",bgBubble:"#27272a",bgBubbleSelected:"#7c3aed",bgSearchResult:"#312e81",borderColor:"#27272a",drilldownBorder:"#7c3aed",linkColor:"#818cf8",headerFontStyle:"bold 14px",baseFontStyle:"13px"}}var wa=M0(),Ae=Gt(T0(),1);const Yh=e=>{let t=(0,wa.c)(19),{currentColumnName:r,onRename:n,onCancel:o}=e,[i,l]=(0,d.useState)(""),a;t[0]!==r||t[1]!==i||t[2]!==n?(a=()=>{i.trim()&&(n(i.trim()),l(r))},t[0]=r,t[1]=i,t[2]=n,t[3]=a):a=t[3];let s=a,c;t[4]!==s||t[5]!==o?(c=y=>{y.key==="Enter"?s():y.key==="Escape"&&o()},t[4]=s,t[5]=o,t[6]=c):c=t[6];let u=c,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,Ae.jsxs)(Ua,{children:[(0,Ae.jsx)(N0,{className:"mr-2 h-3.5 w-3.5"}),"Rename column"]}),t[7]=f):f=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,Ae.jsx)(Vi,{htmlFor:"rename-input",children:"Column name"}),t[8]=p):p=t[8];let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=y=>l(y.target.value),t[9]=m):m=t[9];let h;t[10]!==u||t[11]!==i?(h=(0,Ae.jsxs)("div",{children:[p,(0,Ae.jsx)(Za,{value:i,onChange:m,placeholder:"Enter new column name",className:"mt-1",onKeyDown:u})]}),t[10]=u,t[11]=i,t[12]=h):h=t[12];let v=!i.trim(),S;t[13]!==s||t[14]!==v?(S=(0,Ae.jsx)($i,{onClick:s,disabled:v,size:"sm",className:"w-full",children:"Rename"}),t[13]=s,t[14]=v,t[15]=S):S=t[15];let M;return t[16]!==h||t[17]!==S?(M=(0,Ae.jsxs)(qa,{children:[f,(0,Ae.jsx)(Xa,{children:(0,Ae.jsx)(Ga,{className:"w-64 p-4",children:(0,Ae.jsxs)("div",{className:"space-y-3",children:[h,S]})})})]}),t[16]=h,t[17]=S,t[18]=M):M=t[18],M},ya=e=>{let t=(0,wa.c)(77),{direction:r,onAdd:n,onCancel:o}=e,[i,l]=(0,d.useState)(""),[a,s]=(0,d.useState)("string"),c,u,f,p,m,h,v,S,M,y,k,I,P,E,O;if(t[0]!==i||t[1]!==a||t[2]!==r||t[3]!==n||t[4]!==o){let J=["string","number","boolean","datetime"],_;t[20]!==i||t[21]!==a||t[22]!==n?(_=()=>{i.trim()&&(n(i.trim(),a),l(""),s("string"))},t[20]=i,t[21]=a,t[22]=n,t[23]=_):_=t[23],h=_;let Q;t[24]!==h||t[25]!==o?(Q=le=>{le.key==="Enter"?h():le.key==="Escape"&&o()},t[24]=h,t[25]=o,t[26]=Q):Q=t[26];let ee=Q;m=qa;let K;t[27]===Symbol.for("react.memo_cache_sentinel")?(K=(0,Ae.jsx)(W0,{className:"mr-2 h-3.5 w-3.5"}),t[27]=K):K=t[27],t[28]===r?O=t[29]:(O=(0,Ae.jsxs)(Ua,{children:[K,"Add column to the ",r]}),t[28]=r,t[29]=O),p=Xa,f=Ga,E="w-64 p-4",I="space-y-3";let se=`add-column-input-${r}`,oe;t[30]===se?oe=t[31]:(oe=(0,Ae.jsx)(Vi,{htmlFor:se,children:"Column name"}),t[30]=se,t[31]=oe);let ue=`add-column-input-${r}`,de;t[32]===Symbol.for("react.memo_cache_sentinel")?(de=le=>l(le.target.value),t[32]=de):de=t[32];let X;t[33]!==i||t[34]!==ee||t[35]!==ue?(X=(0,Ae.jsx)(Za,{id:ue,value:i,onChange:de,placeholder:"Enter column name",className:"mt-1",onKeyDown:ee}),t[33]=i,t[34]=ee,t[35]=ue,t[36]=X):X=t[36],t[37]!==oe||t[38]!==X?(P=(0,Ae.jsxs)("div",{children:[oe,X]}),t[37]=oe,t[38]=X,t[39]=P):P=t[39];let q=`add-column-type-${r}`;t[40]===q?k=t[41]:(k=(0,Ae.jsx)(Vi,{htmlFor:q,children:"Data type"}),t[40]=q,t[41]=k),u=L0,S=a,t[42]===Symbol.for("react.memo_cache_sentinel")?(M=le=>s(le),t[42]=M):M=t[42];let te=`add-column-type-${r}`,ne;t[43]===Symbol.for("react.memo_cache_sentinel")?(ne=(0,Ae.jsx)(H0,{}),t[43]=ne):ne=t[43],t[44]===te?y=t[45]:(y=(0,Ae.jsx)(A0,{id:te,className:"mt-1",children:ne}),t[44]=te,t[45]=y),c=z0,v=J.map(Gh),t[0]=i,t[1]=a,t[2]=r,t[3]=n,t[4]=o,t[5]=c,t[6]=u,t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=v,t[12]=S,t[13]=M,t[14]=y,t[15]=k,t[16]=I,t[17]=P,t[18]=E,t[19]=O}else c=t[5],u=t[6],f=t[7],p=t[8],m=t[9],h=t[10],v=t[11],S=t[12],M=t[13],y=t[14],k=t[15],I=t[16],P=t[17],E=t[18],O=t[19];let F;t[46]!==c||t[47]!==v?(F=(0,Ae.jsx)(c,{children:v}),t[46]=c,t[47]=v,t[48]=F):F=t[48];let C;t[49]!==u||t[50]!==F||t[51]!==S||t[52]!==M||t[53]!==y?(C=(0,Ae.jsxs)(u,{value:S,onValueChange:M,children:[y,F]}),t[49]=u,t[50]=F,t[51]=S,t[52]=M,t[53]=y,t[54]=C):C=t[54];let R;t[55]!==C||t[56]!==k?(R=(0,Ae.jsxs)("div",{children:[k,C]}),t[55]=C,t[56]=k,t[57]=R):R=t[57];let L=!i.trim(),x;t[58]!==h||t[59]!==L?(x=(0,Ae.jsx)($i,{onClick:h,disabled:L,size:"sm",className:"w-full",children:"Add"}),t[58]=h,t[59]=L,t[60]=x):x=t[60];let w;t[61]!==R||t[62]!==x||t[63]!==I||t[64]!==P?(w=(0,Ae.jsxs)("div",{className:I,children:[P,R,x]}),t[61]=R,t[62]=x,t[63]=I,t[64]=P,t[65]=w):w=t[65];let T;t[66]!==f||t[67]!==w||t[68]!==E?(T=(0,Ae.jsx)(f,{className:E,children:w}),t[66]=f,t[67]=w,t[68]=E,t[69]=T):T=t[69];let H;t[70]!==p||t[71]!==T?(H=(0,Ae.jsx)(p,{children:T}),t[70]=p,t[71]=T,t[72]=H):H=t[72];let b;return t[73]!==m||t[74]!==H||t[75]!==O?(b=(0,Ae.jsxs)(m,{children:[O,H]}),t[73]=m,t[74]=H,t[75]=O,t[76]=b):b=t[76],b};function Gh(e){return(0,Ae.jsx)(D0,{value:e,children:E0(e)},e)}function ba(e,t){return e.map(r=>{let n=r,o=Object.keys(n);if(t<0||t>=o.length)return n;let i=o[t],{[i]:l,...a}=n;return a})}function xa(e,t){return t?e.map(r=>({...r,[t]:""})):e}function Ca(e,t,r){return!t||!r||t===r?e:e.map(n=>{let o=n,{[t]:i,...l}=o;return{...l,[r]:o[t]}})}function xn(e){var l;let{columnFields:t,columnIdx:r,type:n,dataType:o,newColumnName:i}=e;switch(n){case"insert":{if(!i)return Wi.error("newName is required for insert"),t;let a=Object.entries(t),s=[...a.slice(0,r),[i,o||"string"],...a.slice(r)];return Object.fromEntries(s)}case"remove":{if(r<0||r>=Object.keys(t).length)return t;let a=(l=Object.entries(t)[r])==null?void 0:l[0];if(a){let{[a]:s,...c}=t;return c}return t}case"rename":{if(!i)return Wi.error("newName is required for rename"),t;if(r<0||r>=Object.keys(t).length)return t;let a=Object.entries(t),s=[...a.slice(0,r),[i,o||"string"],...a.slice(r+1)];return Object.fromEntries(s)}}}Ui=({data:e,setData:t,columnFields:r,setColumnFields:n,editableColumns:o,edits:i,onAddEdits:l,onAddRows:a,onDeleteRows:s,onRenameColumn:c,onDeleteColumn:u,onAddColumn:f})=>{let{theme:p}=V0(),m=(0,d.useRef)(null),[h,v]=(0,d.useState)(),[S,M]=(0,d.useState)(!1),[y,k]=d.useState({columns:nt.empty(),rows:nt.empty()}),[I,P]=(0,d.useState)({}),E=P0();R0(()=>{if(i.length===0)return;let q=new Map;for(let ne of i)if(va(ne))if(ne.rowIdx>=e.length){q.has(ne.rowIdx)||q.set(ne.rowIdx,{});let le=q.get(ne.rowIdx);le&&(le[ne.columnId]=ne.value)}else t(le=>{let Fe=[...le];return Fe[ne.rowIdx][ne.columnId]=ne.value,Fe});else if(Bh(ne)&&ne.type===Xo.Remove)t(le=>le.filter((Fe,Oe)=>Oe!==ne.rowIdx));else if($h(ne))switch(ne.type){case Xo.Remove:t(le=>ba(le,ne.columnIdx)),n(le=>xn({columnFields:le,columnIdx:ne.columnIdx,type:"remove"}));break;case Xo.Insert:n(le=>xn({columnFields:le,columnIdx:ne.columnIdx,type:"insert",newColumnName:ne.newName})),t(le=>xa(le,ne.newName));break;case Xo.Rename:{let le=O[ne.columnIdx].title,Fe=ne.newName;if(!le||!Fe)return;n(Oe=>xn({columnFields:Oe,columnIdx:ne.columnIdx,type:"rename",newColumnName:Fe})),t(Oe=>Ca(Oe,le,Fe));break}}let te=[...q.entries()].sort(([ne],[le])=>ne-le).map(([,ne])=>ne);te.length>0&&t(ne=>[...ne,...te]),E()});let O=(0,d.useMemo)(()=>{let q=[];for(let[te,ne]of Object.entries(r)){let le=o==="all"||o.includes(te);q.push({id:te,title:te,width:I[te],icon:le?Wh(ne):Vr.ProtectedColumnOverlay,style:"normal",kind:Nh(ne),dataType:ne,hasMenu:!0,themeOverride:le?void 0:{bgCell:p==="light"?"#F9F9FA":"#1e1e21"}})}return q},[r,I,o,p]),F=(0,d.useCallback)(q=>{let[te,ne]=q,le=e[ne][O[te].title],Fe=O[te].kind,Oe=o==="all"||o.includes(O[te].title);if(Fe===pe.Boolean){let Ee=!!le;return{kind:pe.Boolean,allowOverlay:!1,readonly:!Oe,data:Ee}}return Fe===pe.Number&&typeof le=="number"?{kind:pe.Number,allowOverlay:Oe,readonly:!Oe,displayData:String(le),data:le}:{kind:pe.Text,allowOverlay:Oe,readonly:!Oe,displayData:String(le),data:String(le)}},[O,e,o]),C=(0,d.useCallback)((q,te)=>{let[ne,le]=q,Fe=O[ne],Oe=Fe.title,Ee=te.data;(Fe.dataType==="number"||Fe.dataType==="integer")&&(te.data===void 0||te.data==="")&&(Ee=null),t(Ge=>{let Me=[...Ge];return Me[le][Oe]=Ee,Me}),l([{rowIdx:le,columnId:Oe,value:Ee}])},[O,l,t]),R=(0,d.useCallback)((q,te)=>{P(ne=>({...ne,[q.title]:te}))},[]),L=(0,d.useCallback)((q,te,ne)=>{let[le,Fe]=q;switch(r[O[le].title]){case"number":case"integer":if(Number.isNaN(Number(te.data)))return!1;break;case"boolean":if(typeof te.data!="boolean")return!1;break}return!0},[r,O]),x=(0,d.useCallback)(q=>{if(m.current){if(Bi.isMetaOrCtrl(q)&&q.key==="c"){m.current.emit("copy");return}if(Bi.isMetaOrCtrl(q)&&q.key==="v"){Vh({selection:y,data:e,setData:t,columns:O,editableColumns:o,onAddEdits:l});return}if(Bi.isMetaOrCtrl(q)&&q.key==="f"){M(te=>!te),q.stopPropagation(),q.preventDefault();return}if(q.key==="Escape"){M(!1);return}}},[O,e,o,l,y,t]),w=(0,d.useCallback)(()=>{let q=Object.fromEntries(O.map(te=>{let ne=te.dataType;switch(ne){case"boolean":return[te.title,!1];case"number":case"integer":return[te.title,null];case"date":case"datetime":case"time":return[te.title,new Date];case"string":case"unknown":return[te.title,""];default:return Va(ne),[te.title,""]}}));a([q]),t(te=>[...te,q])},[O,a,t]),T=()=>{let q=y.rows.toArray();s(q);let te=0;for(let ne of q){let le=ne-te;t(Fe=>Fe.filter((Oe,Ee)=>Ee!==le)),te++}k({columns:nt.empty(),rows:nt.empty()})},H=k0((q,te)=>{v({col:q,bounds:te})}),b=async()=>{if(h){let q=O[h.col].title;await K0(q),v(void 0)}};function J(q){$0({title:`Column '${q}' already exists`,description:"Please enter a different column name",variant:"danger"})}let _=q=>{if(h){let te=O[h.col].title;if(r[q]){J(q);return}let ne=O[h.col].dataType;c(h.col,q),n(le=>xn({columnFields:le,columnIdx:h.col,type:"rename",dataType:ne,newColumnName:q})),t(le=>Ca(le,te,q)),v(void 0)}},Q=()=>{h&&(u(h.col),n(q=>xn({columnFields:q,columnIdx:h.col,type:"remove"})),t(q=>ba(q,h.col)),v(void 0))},ee=q=>{let{direction:te,columnName:ne,dataType:le}=q;if(h){let Fe=h.col+(te==="left"?0:1),Oe=Math.max(0,Math.min(Fe,O.length));if(r[ne]){J(ne);return}f(Oe,ne),n(Ee=>xn({columnFields:Ee,columnIdx:Oe,type:"insert",dataType:le,newColumnName:ne})),t(Ee=>xa(Ee,ne)),v(void 0)}},K=(h==null?void 0:h.col)===O.length-1,se=h!==void 0,oe="mr-2 h-3.5 w-3.5",ue={hint:"New row",sticky:!0,tint:!0},de=e.length>1e5,X=o==="all";return(0,Ae.jsxs)("div",{className:"relative w-full min-w-0",children:[(0,Ae.jsx)(I0,{children:(0,Ae.jsx)(_h,{ref:m,getCellContent:F,columns:O,gridSelection:y,onGridSelectionChange:k,rows:e.length,overscrollX:50,smoothScrollX:!de,smoothScrollY:!de,validateCell:L,getCellsForSelection:!0,onPaste:!0,showSearch:S,fillHandle:!0,allowedFillDirections:"vertical",onKeyDown:x,height:e.length>10?450:void 0,width:"100%",rowMarkers:{kind:"both"},rowSelectionMode:"multi",onCellEdited:C,onColumnResize:R,onHeaderMenuClick:H,theme:Kh(p),trailingRowOptions:ue,onRowAppended:w,maxColumnAutoWidth:600,maxColumnWidth:600})}),(()=>{if(!se)return;let q=(0,Ae.jsxs)(Ae.Fragment,{children:[X&&(0,Ae.jsx)(Yh,{currentColumnName:O[h.col].title,onRename:_,onCancel:()=>v(void 0)}),(0,Ae.jsx)(Ya,{}),(0,Ae.jsx)(ya,{direction:"left",onAdd:(te,ne)=>ee({direction:"left",columnName:te,dataType:ne}),onCancel:()=>v(void 0)}),(0,Ae.jsx)(ya,{direction:"right",onAdd:(te,ne)=>ee({direction:"right",columnName:te,dataType:ne}),onCancel:()=>v(void 0)}),(0,Ae.jsx)(Ya,{}),!K&&X&&(0,Ae.jsxs)(Ka,{onClick:Q,className:"text-destructive focus:text-destructive",children:[(0,Ae.jsx)(B0,{className:oe}),"Delete column"]})]});return(0,Ae.jsx)(F0,{open:se,onOpenChange:te=>!te&&v(void 0),children:(0,Ae.jsxs)(j0,{style:{left:(h==null?void 0:h.bounds.x)??0,top:((h==null?void 0:h.bounds.y)??0)+((h==null?void 0:h.bounds.height)??0)},className:"fixed w-52",children:[(0,Ae.jsxs)(Ka,{onClick:b,children:[(0,Ae.jsx)(_0,{className:oe}),"Copy column name"]}),!de&&q]})})})(),(0,Ae.jsx)("div",{className:"absolute bottom-1 right-2 w-26",children:(0,Ae.jsx)($i,{variant:"destructive",size:"sm",disabled:y.rows.length===0,className:"right-2 h-7",onClick:T,children:y.rows.length<=1?"Delete row":"Delete rows"})})]})},fs=Ui})();export{Ui as GlideDataEditor,of as __tla,fs as default}; diff --git a/docs/assets/glimmer-js-B9ocDpQc.js b/docs/assets/glimmer-js-B9ocDpQc.js new file mode 100644 index 0000000..88d47f4 --- /dev/null +++ b/docs/assets/glimmer-js-B9ocDpQc.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./css-xi2XX7Oh.js";import{t}from"./html-Bz1QLM72.js";import{t as a}from"./typescript-DAlbup0L.js";var i=Object.freeze(JSON.parse(`{"displayName":"Glimmer JS","injections":{"L:source.gjs -comment -(string -meta.embedded)":{"patterns":[{"include":"#main"}]}},"name":"glimmer-js","patterns":[{"include":"#main"},{"include":"source.js"}],"repository":{"as-keyword":{"match":"\\\\s\\\\b(as)\\\\b(?=\\\\s\\\\|)","name":"keyword.control","patterns":[]},"as-params":{"begin":"(?)","endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"}},"name":"meta.tag.any.ember-handlebars","patterns":[{"include":"#tag-like-content"}]},"digit":{"captures":{"0":{"name":"constant.numeric"},"1":{"name":"constant.numeric"},"2":{"name":"constant.numeric"}},"match":"\\\\d*(\\\\.)?\\\\d+","patterns":[]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html.ember-handlebars"},"3":{"name":"punctuation.definition.entity.html.ember-handlebars"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.html.ember-handlebars"},{"match":"&","name":"invalid.illegal.bad-ampersand.html.ember-handlebars"}]},"glimmer-argument":{"captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars.argument","patterns":[{"match":"(@)","name":"markup.italic"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}},"match":"\\\\s(@[-.0-:A-Z_a-z]+)(=)?"},"glimmer-as-stuff":{"patterns":[{"include":"#as-keyword"},{"include":"#as-params"}]},"glimmer-block":{"begin":"(\\\\{\\\\{~?)([#/])(([$\\\\--9@-Z_a-z]+))","captures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-component-path"},{"match":"(/)+","name":"punctuation.definition.tag"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-as-stuff"},{"include":"#glimmer-supexp-content"}]},"glimmer-bools":{"captures":{"0":{"name":"keyword.operator"},"1":{"name":"keyword.operator"},"2":{"name":"string.regexp"},"3":{"name":"string.regexp"},"4":{"name":"keyword.operator"}},"match":"(\\\\{\\\\{~?)(true|false|null|undefined|\\\\d*(\\\\.)?\\\\d+)(~?}})","name":"entity.expression.ember-handlebars"},"glimmer-comment-block":{"begin":"\\\\{\\\\{!--","captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}},"end":"--}}","name":"comment.block.glimmer","patterns":[{"include":"#script"},{"include":"#attention"}]},"glimmer-comment-inline":{"begin":"\\\\{\\\\{!","captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}},"end":"}}","name":"comment.inline.glimmer","patterns":[{"include":"#script"},{"include":"#attention"}]},"glimmer-component-path":{"captures":{"1":{"name":"punctuation.definition.tag"}},"match":"(::|[$._])"},"glimmer-control-expression":{"begin":"(\\\\{\\\\{~?)(([-/-9A-Z_a-z]+)\\\\s)","captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"keyword.control"}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-else-block":{"captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"punctuation.definition.tag"},"2":{"name":"keyword.control"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"4":{"name":"punctuation.definition.tag"}},"match":"(\\\\{\\\\{~?)(else(?:\\\\s[a-z]+\\\\s|))([\\\\x08().0-9@-Za-z\\\\s]+)?(~?}})","name":"entity.expression.ember-handlebars"},"glimmer-expression":{"begin":"(\\\\{\\\\{~?)(([-().0-9@-Z_a-z\\\\s]+))","captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"match":"\\\\(+","name":"string.regexp"},{"match":"\\\\)+","name":"string.regexp"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"},{"include":"#glimmer-supexp-content"}]}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-expression-property":{"begin":"(\\\\{\\\\{~?)((@|this.)([-.0-9A-Z_a-z]+))","captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"match":"(@|this)","name":"variable.language"},{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]},"4":{"name":"support.function","patterns":[{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]}},"end":"(~?}})","name":"entity.expression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-parameter-name":{"captures":{"1":{"name":"variable.parameter.name.ember-handlebars"},"2":{"name":"punctuation.definition.expression.ember-handlebars"}},"match":"\\\\b([-0-9A-Z_a-z]+)(\\\\s?=)","patterns":[]},"glimmer-parameter-value":{"captures":{"1":{"name":"support.function","patterns":[{"match":"(\\\\.)+","name":"punctuation.definition.tag"}]}},"match":"\\\\b([-.0-:A-Z_a-z]+)\\\\b(?!=)","patterns":[]},"glimmer-special-block":{"captures":{"0":{"name":"keyword.operator"},"1":{"name":"keyword.operator"},"2":{"name":"keyword.control"},"3":{"name":"keyword.operator"}},"match":"(\\\\{\\\\{~?)(yield|outlet)(~?}})","name":"entity.expression.ember-handlebars"},"glimmer-subexp":{"begin":"(\\\\()([-.0-9@-Za-z]+)","captures":{"1":{"name":"keyword.other"},"2":{"name":"keyword.control"}},"end":"(\\\\))","name":"entity.subexpression.ember-handlebars","patterns":[{"include":"#glimmer-supexp-content"}]},"glimmer-supexp-content":{"patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"glimmer-unescaped-expression":{"begin":"\\\\{\\\\{\\\\{","captures":{"0":{"name":"keyword.operator"}},"end":"}}}","name":"entity.unescaped.expression.ember-handlebars","patterns":[{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#glimmer-subexp"},{"include":"#param"}]},"html-attribute":{"captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars","patterns":[{"match":"(\\\\.\\\\.\\\\.attributes)","name":"markup.bold"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}},"match":"\\\\s([-.0-:A-Z_a-z]+)(=)?"},"html-comment":{"begin":"","name":"comment.block.html","patterns":[{"match":"\\\\G-?>","name":"invalid.illegal.characters-not-allowed-here.html"},{"match":")|(?=-->))","name":"invalid.illegal.characters-not-allowed-here.html"},{"match":"--!>","name":"invalid.illegal.characters-not-allowed-here.html"}]},"core-minus-invalid":{"patterns":[{"include":"#xml-processing"},{"include":"#comment"},{"include":"#doctype"},{"include":"#cdata"},{"include":"#tags-valid"},{"include":"#entities"}]},"doctype":{"begin":"","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.doctype.html","patterns":[{"match":"\\\\G(?i:DOCTYPE)","name":"entity.name.tag.html"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.html"},{"match":"[^>\\\\s]+","name":"entity.other.attribute-name.html"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"912":{"name":"punctuation.definition.entity.html"}},"match":"(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","name":"constant.character.entity.named.$2.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[0-9]+(;)","name":"constant.character.entity.numeric.decimal.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[Xx]\\\\h+(;)","name":"constant.character.entity.numeric.hexadecimal.html"},{"match":"&(?=[0-9A-Za-z]+;)","name":"invalid.illegal.ambiguous-ampersand.html"}]},"math":{"patterns":[{"begin":"(?i)(<)(math)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.structure.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.$2.html","patterns":[{"begin":"(?)\\\\G","end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]}],"repository":{"attribute":{"patterns":[{"begin":"(s(hift|ymmetric|cript(sizemultiplier|level|minsize)|t(ackalign|retchy)|ide|u([bp]scriptshift)|e(parator(s)?|lection)|rc)|h(eight|ref)|n(otation|umalign)|c(haralign|olumn(spa(n|cing)|width|lines|align)|lose|rossout)|i(n(dent(shift(first|last)?|target|align(first|last)?)|fixlinebreakstyle)|d)|o(pen|verflow)|d(i(splay(style)?|r)|e(nomalign|cimalpoint|pth))|position|e(dge|qual(columns|rows))|voffset|f(orm|ence|rame(spacing)?)|width|l(space|ine(thickness|leading|break(style|multchar)?)|o(ngdivstyle|cation)|ength|quote|argeop)|a(c(cent(under)?|tiontype)|l(t(text|img(-(height|valign|width))?)|ign(mentscope)?))|r(space|ow(spa(n|cing)|lines|align)|quote)|groupalign|x(link:href|mlns)|m(in(size|labelspacing)|ovablelimits|a(th(size|color|variant|background)|xsize))|bevelled)(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"tags":{"patterns":[{"include":"#comment"},{"include":"#cdata"},{"captures":{"0":{"name":"meta.tag.structure.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(annotation|annotation-xml|semantics|menclose|merror|mfenced|mfrac|mpadded|mphantom|mroot|mrow|msqrt|mstyle|mmultiscripts|mover|mprescripts|msub|msubsup|msup|munder|munderover|none|mlabeledtr|mtable|mtd|mtr|mlongdiv|mscarries|mscarry|msgroup|msline|msrow|mstack|maction)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.structure.math.$2.html"},{"begin":"(?i)(<)(annotation|annotation-xml|semantics|menclose|merror|mfenced|mfrac|mpadded|mphantom|mroot|mrow|msqrt|mstyle|mmultiscripts|mover|mprescripts|msub|msubsup|msup|munder|munderover|none|mlabeledtr|mtable|mtd|mtr|mlongdiv|mscarries|mscarry|msgroup|msline|msrow|mstack|maction)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.inline.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(m(?:[inos]|space|text|aligngroup|alignmark))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.inline.math.$2.html"},{"begin":"(?i)(<)(m(?:[inos]|space|text|aligngroup|alignmark))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.inline.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.object.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(mglyph)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.object.math.$2.html"},{"begin":"(?i)(<)(mglyph)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.object.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.invalid.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(([:\\\\w]+))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.invalid.html"},{"begin":"(?i)(<)((\\\\w[^>\\\\s]*))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.invalid.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.invalid.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"include":"#tags-invalid"}]}}},"svg":{"patterns":[{"begin":"(?i)(<)(svg)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.structure.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.$2.html","patterns":[{"begin":"(?)\\\\G","end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]}],"repository":{"attribute":{"patterns":[{"begin":"(s(hape-rendering|ystemLanguage|cale|t(yle|itchTiles|op-(color|opacity)|dDeviation|em([hv])|artOffset|r(i(ng|kethrough-(thickness|position))|oke(-(opacity|dash(offset|array)|width|line(cap|join)|miterlimit))?))|urfaceScale|p(e(cular(Constant|Exponent)|ed)|acing|readMethod)|eed|lope)|h(oriz-(origin-x|adv-x)|eight|anging|ref(lang)?)|y([12]|ChannelSelector)?|n(umOctaves|ame)|c(y|o(ntentS((?:cript|tyle)Type)|lor(-(interpolation(-filters)?|profile|rendering))?)|ursor|l(ip(-(path|rule)|PathUnits)?|ass)|a(p-height|lcMode)|x)|t(ype|o|ext(-(decoration|anchor|rendering)|Length)|a(rget([XY])?|b(index|leValues))|ransform)|i(n(tercept|2)?|d(eographic)?|mage-rendering)|z(oomAndPan)?|o(p(erator|acity)|ver(flow|line-(thickness|position))|ffset|r(i(ent(ation)?|gin)|der))|d(y|i(splay|visor|ffuseConstant|rection)|ominant-baseline|ur|e(scent|celerate)|x)?|u(1|n(i(code(-(range|bidi))?|ts-per-em)|derline-(thickness|position))|2)|p(ing|oint(s(At([XYZ]))?|er-events)|a(nose-1|t(h(Length)?|tern(ContentUnits|Transform|Units))|int-order)|r(imitiveUnits|eserveA(spectRatio|lpha)))|e(n(d|able-background)|dgeMode|levation|x(ternalResourcesRequired|ponent))|v(i(sibility|ew(Box|Target))|-(hanging|ideographic|alphabetic|mathematical)|e(ctor-effect|r(sion|t-(origin-([xy])|adv-y)))|alues)|k([123]|e(y(Splines|Times|Points)|rn(ing|el(Matrix|UnitLength)))|4)?|f(y|il(ter(Res|Units)?|l(-(opacity|rule))?)|o(nt-(s(t(yle|retch)|ize(-adjust)?)|variant|family|weight)|rmat)|lood-(color|opacity)|r(om)?|x)|w(idth(s)?|ord-spacing|riting-mode)|l(i(ghting-color|mitingConeAngle)|ocal|e(ngthAdjust|tter-spacing)|ang)|a(scent|cc(umulate|ent-height)|ttribute(Name|Type)|zimuth|dditive|utoReverse|l(ignment-baseline|phabetic|lowReorder)|rabic-form|mplitude)|r(y|otate|e(s(tart|ult)|ndering-intent|peat(Count|Dur)|quired(Extensions|Features)|f([XY]|errerPolicy)|l)|adius|x)?|g([12]|lyph(Ref|-(name|orientation-(horizontal|vertical)))|radient(Transform|Units))|x([12]|ChannelSelector|-height|link:(show|href|t(ype|itle)|a(ctuate|rcrole)|role)|ml:(space|lang|base))?|m(in|ode|e(thod|dia)|a(sk((?:Content|)Units)?|thematical|rker(Height|-(start|end|mid)|Units|Width)|x))|b(y|ias|egin|ase(Profile|line-shift|Frequency)|box))(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"tags":{"patterns":[{"include":"#comment"},{"include":"#cdata"},{"captures":{"0":{"name":"meta.tag.metadata.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(color-profile|desc|metadata|script|style|title)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.metadata.svg.$2.html"},{"begin":"(?i)(<)(color-profile|desc|metadata|script|style|title)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.metadata.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.structure.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(animateMotion|clipPath|defs|feComponentTransfer|feDiffuseLighting|feMerge|feSpecularLighting|filter|g|hatch|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|pattern|radialGradient|switch|text|textPath)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.structure.svg.$2.html"},{"begin":"(?i)(<)(animateMotion|clipPath|defs|feComponentTransfer|feDiffuseLighting|feMerge|feSpecularLighting|filter|g|hatch|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|pattern|radialGradient|switch|text|textPath)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.inline.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(a|animate|discard|feBlend|feColorMatrix|feComposite|feConvolveMatrix|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feMergeNode|feMorphology|feOffset|fePointLight|feSpotLight|feTile|feTurbulence|hatchPath|mpath|set|solidcolor|stop|tspan)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.inline.svg.$2.html"},{"begin":"(?i)(<)(a|animate|discard|feBlend|feColorMatrix|feComposite|feConvolveMatrix|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feMergeNode|feMorphology|feOffset|fePointLight|feSpotLight|feTile|feTurbulence|hatchPath|mpath|set|solidcolor|stop|tspan)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.inline.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.object.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(circle|ellipse|feImage|foreignObject|image|line|path|polygon|polyline|rect|symbol|use|view)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.object.svg.$2.html"},{"begin":"(?i)(<)(a|circle|ellipse|feImage|foreignObject|image|line|path|polygon|polyline|rect|symbol|use|view)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.object.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)((altGlyph|altGlyphDef|altGlyphItem|animateColor|animateTransform|cursor|font|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|glyph|glyphRef|hkern|missing-glyph|tref|vkern))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.svg.$2.html"},{"begin":"(?i)(<)((altGlyph|altGlyphDef|altGlyphItem|animateColor|animateTransform|cursor|font|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|glyph|glyphRef|hkern|missing-glyph|tref|vkern))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.invalid.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(([:\\\\w]+))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.invalid.html"},{"begin":"(?i)(<)((\\\\w[^>\\\\s]*))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.invalid.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)()|(/>)|(?=)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.invalid.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"include":"#tags-invalid"}]}}},"tags-invalid":{"patterns":[{"begin":"(\\\\s]*))(?)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.html","patterns":[{"include":"#attribute"}]}]},"tags-valid":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))","beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"end":"(?!\\\\G)([\\\\t ]*$\\\\n?)?","endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}},"patterns":[{"begin":"(?i)(<)(style)(?=\\\\s|/?>)","beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(?i)((<)/)(style)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.metadata.style.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.css-ignored-vscode"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","captures":{"1":{"name":"punctuation.definition.tag.end.html"}},"end":"(>)","name":"meta.tag.metadata.style.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=)","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","end":"(?=/)","patterns":[{"begin":"(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.end.html"}},"end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.js-ignored-vscode"}},"patterns":[{"begin":"\\\\G","end":"(?=|type(?=[=\\\\s])(?!\\\\s*=\\\\s*(''|\\"\\"|([\\"']?)(text/(javascript(1\\\\.[0-5])?|x-javascript|jscript|livescript|(x-)?ecmascript|babel)|application/((?:(x-)?jav|(x-)?ecm)ascript)|module)[\\"'>\\\\s]))))","name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i:(?=type\\\\s*=\\\\s*([\\"']?)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\"'>\\\\s]))","end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"text.html.basic"}},"patterns":[{"begin":"\\\\G","end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(noscript|title)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(col|hr|input)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(address|article|aside|blockquote|body|button|caption|colgroup|datalist|dd|details|dialog|div|dl|dt|fieldset|figcaption|figure|footer|form|head|header|hgroup|html|h[1-6]|label|legend|li|main|map|menu|meter|nav|ol|optgroup|option|output|p|pre|progress|section|select|slot|summary|table|tbody|td|template|textarea|tfoot|th|thead|tr|ul)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(area|br|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(a|abbr|b|bdi|bdo|cite|code|data|del|dfn|em|i|ins|kbd|mark|q|rp|rt|ruby|s|samp|small|span|strong|sub|sup|time|u|var)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(embed|img|param|source|track)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(audio|canvas|iframe|object|picture|video)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((basefont|isindex))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((center|frameset|noembed|noframes))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((acronym|big|blink|font|strike|tt|xmp))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((frame))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((applet))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((dir|keygen|listing|menuitem|plaintext|spacer))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.no-longer-supported.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.no-longer-supported.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.end.html","patterns":[{"include":"#attribute"}]},{"include":"#math"},{"include":"#svg"},{"begin":"(<)([A-Za-z][.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*-[-.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.custom.start.html","patterns":[{"include":"#attribute"}]},{"begin":"()","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.custom.end.html","patterns":[{"include":"#attribute"}]}]},"xml-processing":{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(\\\\?>)","name":"meta.tag.metadata.processing.xml.html","patterns":[{"include":"#attribute"}]}},"scopeName":"text.html.basic","embeddedLangs":["javascript","css"]}`)),a=[...t,...e,n];export{a as t}; diff --git a/docs/assets/html-derivative-CWtHbpe8.js b/docs/assets/html-derivative-CWtHbpe8.js new file mode 100644 index 0000000..e951920 --- /dev/null +++ b/docs/assets/html-derivative-CWtHbpe8.js @@ -0,0 +1 @@ +import{t}from"./html-Bz1QLM72.js";var e=Object.freeze(JSON.parse('{"displayName":"HTML (Derivative)","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html-derivative","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(\\\\s]*)(?)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative","embeddedLangs":["html"]}')),a=[...t,e];export{a as t}; diff --git a/docs/assets/html-derivative-Dl8qqS-O.js b/docs/assets/html-derivative-Dl8qqS-O.js new file mode 100644 index 0000000..41e876a --- /dev/null +++ b/docs/assets/html-derivative-Dl8qqS-O.js @@ -0,0 +1 @@ +import{t}from"./html-derivative-CWtHbpe8.js";export{t as default}; diff --git a/docs/assets/http-SM9PQ4p3.js b/docs/assets/http-SM9PQ4p3.js new file mode 100644 index 0000000..970d685 --- /dev/null +++ b/docs/assets/http-SM9PQ4p3.js @@ -0,0 +1 @@ +import{t}from"./xml-CmKMNcqy.js";import{t as e}from"./json-CdDqxu0N.js";import{t as a}from"./shellscript-CkXVEK14.js";import{t as n}from"./graphql-CfOz-fSn.js";var s=Object.freeze(JSON.parse('{"displayName":"HTTP","fileTypes":["http","rest"],"name":"http","patterns":[{"begin":"^\\\\s*(?=curl)","end":"^\\\\s*(#{3,}.*?)?\\\\s*$","endCaptures":{"0":{"name":"comment.line.sharp.http"}},"name":"http.request.curl","patterns":[{"include":"source.shell"}]},{"begin":"\\\\s*(?=(\\\\[|\\\\{[^{]))","end":"^\\\\s*(#{3,}.*?)?\\\\s*$","endCaptures":{"0":{"name":"comment.line.sharp.http"}},"name":"http.request.body.json","patterns":[{"include":"source.json"}]},{"begin":"^\\\\s*(?=<\\\\S)","end":"^\\\\s*(#{3,}.*?)?\\\\s*$","endCaptures":{"0":{"name":"comment.line.sharp.http"}},"name":"http.request.body.xml","patterns":[{"include":"text.xml"}]},{"begin":"\\\\s*(?=(query|mutation))","end":"^\\\\s*(#{3,}.*?)?\\\\s*$","endCaptures":{"0":{"name":"comment.line.sharp.http"}},"name":"http.request.body.graphql","patterns":[{"include":"source.graphql"}]},{"begin":"\\\\s*(?=(query|mutation))","end":"^\\\\{\\\\s*$","name":"http.request.body.graphql","patterns":[{"include":"source.graphql"}]},{"include":"#metadata"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.http"},"2":{"name":"variable.other.http"},"3":{"name":"string.other.http"}},"match":"^\\\\s*(@)([^=\\\\s]+)\\\\s*=\\\\s*(.*?)\\\\s*$","name":"http.filevariable"},{"captures":{"1":{"name":"keyword.operator.http"},"2":{"name":"variable.other.http"},"3":{"name":"string.other.http"}},"match":"^\\\\s*([\\\\&?])([^=\\\\s]+)=(.*)$","name":"http.query"},{"captures":{"1":{"name":"entity.name.tag.http"},"2":{"name":"keyword.other.http"},"3":{"name":"string.other.http"}},"match":"^([-\\\\w]+)\\\\s*(:)\\\\s*([^/].*?)\\\\s*$","name":"http.headers"},{"include":"#request-line"},{"include":"#response-line"}],"repository":{"comments":{"patterns":[{"match":"^\\\\s*#+.*$","name":"comment.line.sharp.http"},{"match":"^\\\\s*/{2,}.*$","name":"comment.line.double-slash.http"}]},"metadata":{"patterns":[{"captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"punctuation.definition.block.tag.metadata"},"3":{"name":"entity.name.type.http"}},"match":"^\\\\s*#+\\\\s+((@)name)\\\\s+([^.\\\\s]+)$","name":"comment.line.sharp.http"},{"captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"punctuation.definition.block.tag.metadata"},"3":{"name":"entity.name.type.http"}},"match":"^\\\\s*/{2,}\\\\s+((@)name)\\\\s+([^.\\\\s]+)$","name":"comment.line.double-slash.http"},{"captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"punctuation.definition.block.tag.metadata"}},"match":"^\\\\s*#+\\\\s+((@)note)\\\\s*$","name":"comment.line.sharp.http"},{"captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"punctuation.definition.block.tag.metadata"}},"match":"^\\\\s*/{2,}\\\\s+((@)note)\\\\s*$","name":"comment.line.double-slash.http"},{"captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"punctuation.definition.block.tag.metadata"},"3":{"name":"variable.other.http"},"4":{"name":"string.other.http"}},"match":"^\\\\s*#+\\\\s+((@)prompt)\\\\s+(\\\\S+)(?:\\\\s+(.*))?\\\\s*$","name":"comment.line.sharp.http"},{"captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"punctuation.definition.block.tag.metadata"},"3":{"name":"variable.other.http"},"4":{"name":"string.other.http"}},"match":"^\\\\s*/{2,}\\\\s+((@)prompt)\\\\s+(\\\\S+)(?:\\\\s+(.*))?\\\\s*$","name":"comment.line.double-slash.http"}]},"protocol":{"patterns":[{"captures":{"1":{"name":"keyword.other.http"},"2":{"name":"constant.numeric.http"}},"match":"(HTTP)/(\\\\d+.\\\\d+)","name":"http.version"}]},"request-line":{"captures":{"1":{"name":"keyword.control.http"},"2":{"name":"const.language.http"},"3":{"patterns":[{"include":"#protocol"}]}},"match":"(?i)^(get|post|put|delete|patch|head|options|connect|trace|lock|unlock|propfind|proppatch|copy|move|mkcol|mkcalendar|acl|search)\\\\s+\\\\s*(.+?)(?:\\\\s+(HTTP/\\\\S+))?$","name":"http.requestline"},"response-line":{"captures":{"1":{"patterns":[{"include":"#protocol"}]},"2":{"name":"constant.numeric.http"},"3":{"name":"string.other.http"}},"match":"(?i)^\\\\s*(HTTP/\\\\S+)\\\\s([1-5][0-9][0-9])\\\\s(.*)$","name":"http.responseLine"}},"scopeName":"source.http","embeddedLangs":["shellscript","json","xml","graphql"]}')),m=[...a,...e,...t,...n,s];export{m as default}; diff --git a/docs/assets/http-ySzAzH5W.js b/docs/assets/http-ySzAzH5W.js new file mode 100644 index 0000000..e33d7b7 --- /dev/null +++ b/docs/assets/http-ySzAzH5W.js @@ -0,0 +1 @@ +function c(r,n){return r.skipToEnd(),n.cur=u,"error"}function i(r,n){return r.match(/^HTTP\/\d\.\d/)?(n.cur=a,"keyword"):r.match(/^[A-Z]+/)&&/[ \t]/.test(r.peek())?(n.cur=d,"keyword"):c(r,n)}function a(r,n){var t=r.match(/^\d+/);if(!t)return c(r,n);n.cur=s;var o=Number(t[0]);return o>=100&&o<400?"atom":"error"}function s(r,n){return r.skipToEnd(),n.cur=u,null}function d(r,n){return r.eatWhile(/\S/),n.cur=f,"string.special"}function f(r,n){return r.match(/^HTTP\/\d\.\d$/)?(n.cur=u,"keyword"):c(r,n)}function u(r){return r.sol()&&!r.eat(/[ \t]/)?r.match(/^.*?:/)?"atom":(r.skipToEnd(),"error"):(r.skipToEnd(),"string")}function e(r){return r.skipToEnd(),null}const k={name:"http",token:function(r,n){var t=n.cur;return t!=u&&t!=e&&r.eatSpace()?null:t(r,n)},blankLine:function(r){r.cur=e},startState:function(){return{cur:i}}};export{k as http}; diff --git a/docs/assets/hxml-BewqP3XB.js b/docs/assets/hxml-BewqP3XB.js new file mode 100644 index 0000000..fc020db --- /dev/null +++ b/docs/assets/hxml-BewqP3XB.js @@ -0,0 +1 @@ +import{t as e}from"./haxe-CiC_VUE1.js";var a=Object.freeze(JSON.parse('{"displayName":"HXML","fileTypes":["hxml"],"foldingStartMarker":"--next","foldingStopMarker":"\\\\n\\\\n","name":"hxml","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.hxml"}},"match":"(#).*$\\\\n?","name":"comment.line.number-sign.hxml"},{"begin":"(?]?=|@=?|%=?|<>?=?|&=?|\\\\|=?|\\\\^|~@|~=?|#\\\\*\\\\*?)(?![-!$%\\\\&*./:<-@^_\\\\w])","name":"keyword.control.hy"}]},"strings":{"begin":"(f?\\"|}(?=\\\\N*?[\\"{]))","end":"(\\"|(?<=[\\"}]\\\\N*?)\\\\{)","name":"string.quoted.double.hy","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.hy"}]},"symbol":{"match":"(?{let t=(0,l.c)(4),c,e;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)("title",{children:"Python Logo"}),e=(0,h.jsx)("path",{d:"M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z"}),t[0]=c,t[1]=e):(c=t[0],e=t[1]);let o;return t[2]===r?o=t[3]:(o=(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 448 512",...r,children:[c,e]}),t[2]=r,t[3]=o),o},v=r=>{let t=(0,l.c)(4),c,e;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,h.jsx)("title",{children:"Markdown Icon"}),e=(0,h.jsx)("path",{d:"M593.8 59.1H46.2C20.7 59.1 0 79.8 0 105.2v301.5c0 25.5 20.7 46.2 46.2 46.2h547.7c25.5 0 46.2-20.7 46.1-46.1V105.2c0-25.4-20.7-46.1-46.2-46.1zM338.5 360.6H277v-120l-61.5 76.9-61.5-76.9v120H92.3V151.4h61.5l61.5 76.9 61.5-76.9h61.5v209.2zm135.3 3.1L381.5 256H443V151.4h61.5V256H566z"}),t[0]=c,t[1]=e):(c=t[0],e=t[1]);let o;return t[2]===r?o=t[3]:(o=(0,h.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 640 512",fill:"currentColor",...r,children:[c,e]}),t[2]=r,t[3]=o),o};export{m as n,v as t}; diff --git a/docs/assets/idl-BTZd0S94.js b/docs/assets/idl-BTZd0S94.js new file mode 100644 index 0000000..b85fa39 --- /dev/null +++ b/docs/assets/idl-BTZd0S94.js @@ -0,0 +1 @@ +function t(e){return RegExp("^(("+e.join(")|(")+"))\\b","i")}var r="a_correlate.abs.acos.adapt_hist_equal.alog.alog2.alog10.amoeba.annotate.app_user_dir.app_user_dir_query.arg_present.array_equal.array_indices.arrow.ascii_template.asin.assoc.atan.axis.axis.bandpass_filter.bandreject_filter.barplot.bar_plot.beseli.beselj.beselk.besely.beta.biginteger.bilinear.bin_date.binary_template.bindgen.binomial.bit_ffs.bit_population.blas_axpy.blk_con.boolarr.boolean.boxplot.box_cursor.breakpoint.broyden.bubbleplot.butterworth.bytarr.byte.byteorder.bytscl.c_correlate.calendar.caldat.call_external.call_function.call_method.call_procedure.canny.catch.cd.cdf.ceil.chebyshev.check_math.chisqr_cvf.chisqr_pdf.choldc.cholsol.cindgen.cir_3pnt.clipboard.close.clust_wts.cluster.cluster_tree.cmyk_convert.code_coverage.color_convert.color_exchange.color_quan.color_range_map.colorbar.colorize_sample.colormap_applicable.colormap_gradient.colormap_rotation.colortable.comfit.command_line_args.common.compile_opt.complex.complexarr.complexround.compute_mesh_normals.cond.congrid.conj.constrained_min.contour.contour.convert_coord.convol.convol_fft.coord2to3.copy_lun.correlate.cos.cosh.cpu.cramer.createboxplotdata.create_cursor.create_struct.create_view.crossp.crvlength.ct_luminance.cti_test.cursor.curvefit.cv_coord.cvttobm.cw_animate.cw_animate_getp.cw_animate_load.cw_animate_run.cw_arcball.cw_bgroup.cw_clr_index.cw_colorsel.cw_defroi.cw_field.cw_filesel.cw_form.cw_fslider.cw_light_editor.cw_light_editor_get.cw_light_editor_set.cw_orient.cw_palette_editor.cw_palette_editor_get.cw_palette_editor_set.cw_pdmenu.cw_rgbslider.cw_tmpl.cw_zoom.db_exists.dblarr.dcindgen.dcomplex.dcomplexarr.define_key.define_msgblk.define_msgblk_from_file.defroi.defsysv.delvar.dendro_plot.dendrogram.deriv.derivsig.determ.device.dfpmin.diag_matrix.dialog_dbconnect.dialog_message.dialog_pickfile.dialog_printersetup.dialog_printjob.dialog_read_image.dialog_write_image.dictionary.digital_filter.dilate.dindgen.dissolve.dist.distance_measure.dlm_load.dlm_register.doc_library.double.draw_roi.edge_dog.efont.eigenql.eigenvec.ellipse.elmhes.emboss.empty.enable_sysrtn.eof.eos.erase.erf.erfc.erfcx.erode.errorplot.errplot.estimator_filter.execute.exit.exp.expand.expand_path.expint.extract.extract_slice.f_cvf.f_pdf.factorial.fft.file_basename.file_chmod.file_copy.file_delete.file_dirname.file_expand_path.file_gunzip.file_gzip.file_info.file_lines.file_link.file_mkdir.file_move.file_poll_input.file_readlink.file_same.file_search.file_tar.file_test.file_untar.file_unzip.file_which.file_zip.filepath.findgen.finite.fix.flick.float.floor.flow3.fltarr.flush.format_axis_values.forward_function.free_lun.fstat.fulstr.funct.function.fv_test.fx_root.fz_roots.gamma.gamma_ct.gauss_cvf.gauss_pdf.gauss_smooth.gauss2dfit.gaussfit.gaussian_function.gaussint.get_drive_list.get_dxf_objects.get_kbrd.get_login_info.get_lun.get_screen_size.getenv.getwindows.greg2jul.grib.grid_input.grid_tps.grid3.griddata.gs_iter.h_eq_ct.h_eq_int.hanning.hash.hdf.hdf5.heap_free.heap_gc.heap_nosave.heap_refcount.heap_save.help.hilbert.hist_2d.hist_equal.histogram.hls.hough.hqr.hsv.i18n_multibytetoutf8.i18n_multibytetowidechar.i18n_utf8tomultibyte.i18n_widechartomultibyte.ibeta.icontour.iconvertcoord.idelete.identity.idl_base64.idl_container.idl_validname.idlexbr_assistant.idlitsys_createtool.idlunit.iellipse.igamma.igetcurrent.igetdata.igetid.igetproperty.iimage.image.image_cont.image_statistics.image_threshold.imaginary.imap.indgen.int_2d.int_3d.int_tabulated.intarr.interpol.interpolate.interval_volume.invert.ioctl.iopen.ir_filter.iplot.ipolygon.ipolyline.iputdata.iregister.ireset.iresolve.irotate.isa.isave.iscale.isetcurrent.isetproperty.ishft.isocontour.isosurface.isurface.itext.itranslate.ivector.ivolume.izoom.journal.json_parse.json_serialize.jul2greg.julday.keyword_set.krig2d.kurtosis.kw_test.l64indgen.la_choldc.la_cholmprove.la_cholsol.la_determ.la_eigenproblem.la_eigenql.la_eigenvec.la_elmhes.la_gm_linear_model.la_hqr.la_invert.la_least_square_equality.la_least_squares.la_linear_equation.la_ludc.la_lumprove.la_lusol.la_svd.la_tridc.la_trimprove.la_triql.la_trired.la_trisol.label_date.label_region.ladfit.laguerre.lambda.lambdap.lambertw.laplacian.least_squares_filter.leefilt.legend.legendre.linbcg.lindgen.linfit.linkimage.list.ll_arc_distance.lmfit.lmgr.lngamma.lnp_test.loadct.locale_get.logical_and.logical_or.logical_true.lon64arr.lonarr.long.long64.lsode.lu_complex.ludc.lumprove.lusol.m_correlate.machar.make_array.make_dll.make_rt.map.mapcontinents.mapgrid.map_2points.map_continents.map_grid.map_image.map_patch.map_proj_forward.map_proj_image.map_proj_info.map_proj_init.map_proj_inverse.map_set.matrix_multiply.matrix_power.max.md_test.mean.meanabsdev.mean_filter.median.memory.mesh_clip.mesh_decimate.mesh_issolid.mesh_merge.mesh_numtriangles.mesh_obj.mesh_smooth.mesh_surfacearea.mesh_validate.mesh_volume.message.min.min_curve_surf.mk_html_help.modifyct.moment.morph_close.morph_distance.morph_gradient.morph_hitormiss.morph_open.morph_thin.morph_tophat.multi.n_elements.n_params.n_tags.ncdf.newton.noise_hurl.noise_pick.noise_scatter.noise_slur.norm.obj_class.obj_destroy.obj_hasmethod.obj_isa.obj_new.obj_valid.objarr.on_error.on_ioerror.online_help.openr.openu.openw.oplot.oploterr.orderedhash.p_correlate.parse_url.particle_trace.path_cache.path_sep.pcomp.plot.plot3d.plot.plot_3dbox.plot_field.ploterr.plots.polar_contour.polar_surface.polyfill.polyshade.pnt_line.point_lun.polarplot.poly.poly_2d.poly_area.poly_fit.polyfillv.polygon.polyline.polywarp.popd.powell.pref_commit.pref_get.pref_set.prewitt.primes.print.printf.printd.pro.product.profile.profiler.profiles.project_vol.ps_show_fonts.psafm.pseudo.ptr_free.ptr_new.ptr_valid.ptrarr.pushd.qgrid3.qhull.qromb.qromo.qsimp.query_*.query_ascii.query_bmp.query_csv.query_dicom.query_gif.query_image.query_jpeg.query_jpeg2000.query_mrsid.query_pict.query_png.query_ppm.query_srf.query_tiff.query_video.query_wav.r_correlate.r_test.radon.randomn.randomu.ranks.rdpix.read.readf.read_ascii.read_binary.read_bmp.read_csv.read_dicom.read_gif.read_image.read_interfile.read_jpeg.read_jpeg2000.read_mrsid.read_pict.read_png.read_ppm.read_spr.read_srf.read_sylk.read_tiff.read_video.read_wav.read_wave.read_x11_bitmap.read_xwd.reads.readu.real_part.rebin.recall_commands.recon3.reduce_colors.reform.region_grow.register_cursor.regress.replicate.replicate_inplace.resolve_all.resolve_routine.restore.retall.return.reverse.rk4.roberts.rot.rotate.round.routine_filepath.routine_info.rs_test.s_test.save.savgol.scale3.scale3d.scatterplot.scatterplot3d.scope_level.scope_traceback.scope_varfetch.scope_varname.search2d.search3d.sem_create.sem_delete.sem_lock.sem_release.set_plot.set_shading.setenv.sfit.shade_surf.shade_surf_irr.shade_volume.shift.shift_diff.shmdebug.shmmap.shmunmap.shmvar.show3.showfont.signum.simplex.sin.sindgen.sinh.size.skewness.skip_lun.slicer3.slide_image.smooth.sobel.socket.sort.spawn.sph_4pnt.sph_scat.spher_harm.spl_init.spl_interp.spline.spline_p.sprsab.sprsax.sprsin.sprstp.sqrt.standardize.stddev.stop.strarr.strcmp.strcompress.streamline.streamline.stregex.stretch.string.strjoin.strlen.strlowcase.strmatch.strmessage.strmid.strpos.strput.strsplit.strtrim.struct_assign.struct_hide.strupcase.surface.surface.surfr.svdc.svdfit.svsol.swap_endian.swap_endian_inplace.symbol.systime.t_cvf.t_pdf.t3d.tag_names.tan.tanh.tek_color.temporary.terminal_size.tetra_clip.tetra_surface.tetra_volume.text.thin.thread.threed.tic.time_test2.timegen.timer.timestamp.timestamptovalues.tm_test.toc.total.trace.transpose.tri_surf.triangulate.trigrid.triql.trired.trisol.truncate_lun.ts_coef.ts_diff.ts_fcast.ts_smooth.tv.tvcrs.tvlct.tvrd.tvscl.typename.uindgen.uint.uintarr.ul64indgen.ulindgen.ulon64arr.ulonarr.ulong.ulong64.uniq.unsharp_mask.usersym.value_locate.variance.vector.vector_field.vel.velovect.vert_t3d.voigt.volume.voronoi.voxel_proj.wait.warp_tri.watershed.wdelete.wf_draw.where.widget_base.widget_button.widget_combobox.widget_control.widget_displaycontextmenu.widget_draw.widget_droplist.widget_event.widget_info.widget_label.widget_list.widget_propertysheet.widget_slider.widget_tab.widget_table.widget_text.widget_tree.widget_tree_move.widget_window.wiener_filter.window.window.write_bmp.write_csv.write_gif.write_image.write_jpeg.write_jpeg2000.write_nrif.write_pict.write_png.write_ppm.write_spr.write_srf.write_sylk.write_tiff.write_video.write_wav.write_wave.writeu.wset.wshow.wtn.wv_applet.wv_cwt.wv_cw_wavelet.wv_denoise.wv_dwt.wv_fn_coiflet.wv_fn_daubechies.wv_fn_gaussian.wv_fn_haar.wv_fn_morlet.wv_fn_paul.wv_fn_symlet.wv_import_data.wv_import_wavelet.wv_plot3d_wps.wv_plot_multires.wv_pwt.wv_tool_denoise.xbm_edit.xdisplayfile.xdxf.xfont.xinteranimate.xloadct.xmanager.xmng_tmpl.xmtool.xobjview.xobjview_rotate.xobjview_write_image.xpalette.xpcolor.xplot3d.xregistered.xroi.xsq_test.xsurface.xvaredit.xvolume.xvolume_rotate.xvolume_write_image.xyouts.zlib_compress.zlib_uncompress.zoom.zoom_24".split("."),a=t(r),i=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],_=t(i),o=RegExp("^[_a-z\xA1-\uFFFF][_a-z0-9\xA1-\uFFFF]*","i"),l=/[+\-*&=<>\/@#~$]/,s=RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");function n(e){return e.eatSpace()?null:e.match(";")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(_)?"keyword":e.match(a)?"builtin":e.match(o)?"variable":e.match(l)||e.match(s)?"operator":(e.next(),null)}const c={name:"idl",token:function(e){return n(e)},languageData:{autocomplete:r.concat(i)}};export{c as t}; diff --git a/docs/assets/idl-feOWH07C.js b/docs/assets/idl-feOWH07C.js new file mode 100644 index 0000000..fb2a350 --- /dev/null +++ b/docs/assets/idl-feOWH07C.js @@ -0,0 +1 @@ +import{t as o}from"./idl-BTZd0S94.js";export{o as idl}; diff --git a/docs/assets/imba-CAlGHwGH.js b/docs/assets/imba-CAlGHwGH.js new file mode 100644 index 0000000..fad62f3 --- /dev/null +++ b/docs/assets/imba-CAlGHwGH.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Imba","fileTypes":["imba","imba2"],"name":"imba","patterns":[{"include":"#root"},{"captures":{"1":{"name":"punctuation.definition.comment.imba"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.imba"}],"repository":{"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.imba"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.imba"}},"name":"meta.array.literal.imba","patterns":[{"include":"#expr"},{"include":"#punctuation-comma"}]},"block":{"patterns":[{"include":"#style-declaration"},{"include":"#mixin-declaration"},{"include":"#object-keys"},{"include":"#generics-literal"},{"include":"#tag-literal"},{"include":"#regex"},{"include":"#keywords"},{"include":"#comment"},{"include":"#literal"},{"include":"#plain-identifiers"},{"include":"#plain-accessors"},{"include":"#pairs"},{"include":"#invalid-indentation"}]},"boolean-literal":{"patterns":[{"match":"(?>>?|[+>~]","name":"punctuation.separator.combinator.css"},{"match":"&","name":"keyword.other.parent-selector.css"}]},"css-commas":{"match":",","name":"punctuation.separator.list.comma.css"},"css-comment":{"patterns":[{"match":"#(\\\\s.+)?(\\\\n|$)","name":"comment.line.imba"},{"match":"^(\\\\t+)(#(\\\\s.+)?(\\\\n|$))","name":"comment.line.imba"}]},"css-escapes":{"patterns":[{"match":"\\\\\\\\\\\\h{1,6}","name":"constant.character.escape.codepoint.css"},{"begin":"\\\\\\\\$\\\\s*","end":"^(?[-\\\\w[^0-\\\\\\\\x]]|\\\\\\\\(?:\\\\h{1,6}|.))+)\\\\s*(?=[]$*=^|~]|/\\\\*)"}]},{"include":"#css-pseudo-classes"},{"include":"#css-pseudo-elements"},{"include":"#css-mixin"}]},"css-size-keywords":{"patterns":[{"match":"(x+s|sm-|md-|lg-|sm|md|lg|x+l|hg|x+h)(?![-\\\\w])","name":"support.constant.size.property-value.css"}]},"curly-braces":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"meta.brace.curly.imba"}},"end":"}","endCaptures":{"0":{"name":"meta.brace.curly.imba"}},"patterns":[{"include":"#expr"},{"include":"#punctuation-comma"}]},"decorator":{"begin":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.imba"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.imba","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.imba"},"2":{"name":"entity.name.tag.directive.imba"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.imba"}},"name":"meta.tag.imba","patterns":[{"match":"path|types|no-default-lib|lib|name","name":"entity.other.attribute-name.directive.imba"},{"match":"=","name":"keyword.operator.assignment.imba"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"()|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.imba"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.imba"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|'(?:\\\\*(?!/)|\\\\\\\\(?!')|[^*\\\\\\\\])*?'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?)(?=\\\\s+)"}]},"expr":{"patterns":[{"include":"#style-declaration"},{"include":"#object-keys"},{"include":"#generics-literal"},{"include":"#tag-literal"},{"include":"#regex"},{"include":"#keywords"},{"include":"#comment"},{"include":"#literal"},{"include":"#plain-identifiers"},{"include":"#plain-accessors"},{"include":"#pairs"}]},"expression":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.imba"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.imba"}},"patterns":[{"include":"#expr"}]},{"include":"#tag-literal"},{"include":"#expressionWithoutIdentifiers"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#literal"},{"include":"#support-objects"}]},"generics-literal":{"begin":"(?<=[])\\\\w])<","beginCaptures":{"1":{"name":"meta.generics.annotation.open.imba"}},"end":">","endCaptures":{"0":{"name":"meta.generics.annotation.close.imba"}},"name":"meta.generics.annotation.imba","patterns":[{"include":"#type-brackets"}]},"global-literal":{"match":"(?=?|<=?)","name":"keyword.operator.imba"},{"match":"(of|delete|!?isa|typeof|!?in|new|!?is|isnt)(?![-$?_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.imba"}]},"literal":{"patterns":[{"include":"#number-with-unit-literal"},{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#this-literal"},{"include":"#global-literal"},{"include":"#super-literal"},{"include":"#type-literal"},{"include":"#generics-literal"},{"include":"#string"}]},"mixin-css-selector":{"begin":"(%[-\\\\w]+)","beginCaptures":{"1":{"name":"entity.other.attribute-name.mixin.css"}},"end":"(\\\\s*(?=[-!$%.@^\\\\w]+\\\\s*[:=][^:])|\\\\s*$|(?=\\\\s+#\\\\s))","endCaptures":{"0":{"name":"punctuation.separator.sel-properties.css"}},"name":"meta.selector.css","patterns":[{"include":"#css-selector-innards"}]},"mixin-css-selector-after":{"begin":"(?<=%[-\\\\w]+)(?![-!$%.@^\\\\w]+\\\\s*[:=][^:])","end":"(\\\\s*(?=[-!$%.@^\\\\w]+\\\\s*[:=][^:])|\\\\s*$|(?=\\\\s+#\\\\s))","endCaptures":{"0":{"name":"punctuation.separator.sel-properties.css"}},"name":"meta.selector.css","patterns":[{"include":"#css-selector-innards"}]},"mixin-declaration":{"begin":"^(\\\\t*)(%[-\\\\w]+)","beginCaptures":{"2":{"name":"entity.other.attribute-name.mixin.css"}},"end":"^(?!(\\\\1\\\\t|\\\\s*$))","name":"meta.style.imba","patterns":[{"include":"#mixin-css-selector-after"},{"include":"#css-comment"},{"include":"#nested-css-selector"},{"include":"#inline-styles"}]},"nested-css-selector":{"begin":"^(\\\\t+)(?![-!$%.@^\\\\w]+\\\\s*[:=][^:])","end":"(\\\\s*(?=[-!$%.@^\\\\w]+\\\\s*[:=][^:])|\\\\s*$|(?=\\\\s+#\\\\s))","endCaptures":{"0":{"name":"punctuation.separator.sel-properties.css"}},"name":"meta.selector.css","patterns":[{"include":"#css-selector-innards"}]},"nested-style-declaration":{"begin":"^(\\\\t+)(?=[\\\\n^]*&)","end":"^(?!(\\\\1\\\\t|\\\\s*$))","name":"meta.style.imba","patterns":[{"include":"#nested-css-selector"},{"include":"#inline-styles"}]},"null-literal":{"match":"(?>=|>>>=|\\\\|=","name":"keyword.operator.assignment.compound.bitwise.imba"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.imba"},{"match":"(?:==|!=|[!=~])=","name":"keyword.operator.comparison.imba"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.imba"},{"captures":{"1":{"name":"keyword.operator.logical.imba"},"2":{"name":"keyword.operator.arithmetic.imba"}},"match":"(!)\\\\s*(/)(?![*/])"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?|or\\\\b(?=\\\\s|$)|and\\\\b(?=\\\\s|$)|@\\\\b(?=\\\\s|$)","name":"keyword.operator.logical.imba"},{"match":"\\\\?(?=\\\\s|$)","name":"keyword.operator.bitwise.imba"},{"match":"[\\\\&^|~]","name":"keyword.operator.ternary.imba"},{"match":"=","name":"keyword.operator.assignment.imba"},{"match":"--","name":"keyword.operator.decrement.imba"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.imba"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.imba"}]},"pairs":{"patterns":[{"include":"#curly-braces"},{"include":"#square-braces"},{"include":"#round-braces"}]},"plain-accessors":{"patterns":[{"captures":{"1":{"name":"punctuation.accessor.imba"},"2":{"name":"variable.other.property.imba"}},"match":"(\\\\.\\\\.?)([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?)"}]},"plain-identifiers":{"patterns":[{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.imba"},{"match":"\\\\p{upper}[$_[:alnum:]]*(?:-[$_[:alnum:]]+)*!?","name":"variable.other.class.imba"},{"match":"\\\\$\\\\d+","name":"variable.special.imba"},{"match":"\\\\$[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"variable.other.internal.imba"},{"match":"@@+[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"variable.other.symbol.imba"},{"match":"[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"variable.other.readwrite.imba"},{"match":"@[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"variable.other.instance.imba"},{"match":"#+[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"variable.other.private.imba"},{"match":":[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"string.symbol.imba"}]},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.imba"},"2":{"name":"punctuation.accessor.optional.imba"}},"match":"(\\\\.)|(\\\\.\\\\.(?!\\\\s*\\\\d|\\\\s+))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.imba"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.imba"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.imba"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.imba"}},"name":"string.quoted.double.imba","patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"}]},"qstring-single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.imba"}},"end":"(')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.imba"},"2":{"name":"invalid.illegal.newline.imba"}},"name":"string.quoted.single.imba","patterns":[{"include":"#string-character-escape"}]},"qstring-single-multi":{"begin":"'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.imba"}},"end":"'''","endCaptures":{"0":{"name":"punctuation.definition.string.end.imba"}},"name":"string.quoted.single.imba","patterns":[{"include":"#string-character-escape"}]},"regex":{"patterns":[{"begin":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([gimsuy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.imba"}},"end":"(/)([gimsuy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.imba"},"2":{"name":"keyword.other.imba"}},"name":"string.regexp.imba","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"root":{"patterns":[{"include":"#block"}]},"round-braces":{"begin":"\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.imba"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.imba"}},"patterns":[{"include":"#expr"},{"include":"#punctuation-comma"}]},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//|#\\\\s)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.imba"},"2":{"name":"comment.line.double-slash.imba"},"3":{"name":"punctuation.definition.comment.imba"},"4":{"name":"storage.type.internaldeclaration.imba"},"5":{"name":"punctuation.decorator.internaldeclaration.imba"}},"contentName":"comment.line.double-slash.imba","end":"(?=^)"},"square-braces":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.imba"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.imba"}},"patterns":[{"include":"#expr"},{"include":"#punctuation-comma"}]},"string":{"patterns":[{"include":"#qstring-single-multi"},{"include":"#qstring-double-multi"},{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template"}]},"string-character-escape":{"match":"\\\\\\\\(x\\\\h{2}|u\\\\h{4}|u\\\\{\\\\h+}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.imba"},"style-declaration":{"begin":"^(\\\\t*)(?:(global|local|export)\\\\s+)?(?:(scoped)\\\\s+)?(css)\\\\s","beginCaptures":{"2":{"name":"keyword.control.export.imba"},"3":{"name":"storage.modifier.imba"},"4":{"name":"storage.type.style.imba"}},"end":"^(?!(\\\\1\\\\t|\\\\s*$))","name":"meta.style.imba","patterns":[{"include":"#css-selector"},{"include":"#css-comment"},{"include":"#nested-css-selector"},{"include":"#inline-styles"}]},"style-expr":{"patterns":[{"captures":{"1":{"name":"constant.numeric.integer.decimal.css"},"2":{"name":"keyword.other.unit.css"}},"match":"\\\\b([0-9][0-9_]*)(\\\\w+|%)?"},{"match":"--[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"support.constant.property-value.var.css"},{"match":"(x+s|sm-|md-|lg-|sm|md|lg|x+l|hg|x+h)(?![-\\\\w])","name":"support.constant.property-value.size.css"},{"match":"[$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?","name":"support.constant.property-value.css"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","name":"meta.function.css","patterns":[{"include":"#style-expr"}]}]},"style-property":{"patterns":[{"begin":"(?=[-!$%.@^\\\\w]+\\\\s*[:=])","beginCaptures":{"1":{"name":"support.function.calc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\s*[:=]","endCaptures":{"0":{"name":"punctuation.separator.key-value.css"}},"name":"meta.property-name.css","patterns":[{"match":"(?:--|\\\\$)[-$\\\\w]+","name":"support.type.property-name.variable.css"},{"match":"@[!<>]?[0-9]+","name":"support.type.property-name.modifier.breakpoint.css"},{"match":"\\\\^?@+[-$\\\\w]+","name":"support.type.property-name.modifier.css"},{"match":"\\\\^?\\\\.+[-$\\\\w]+","name":"support.type.property-name.modifier.flag.css"},{"match":"\\\\^?%+[-$\\\\w]+","name":"support.type.property-name.modifier.state.css"},{"match":"\\\\.\\\\.[-$\\\\w]+|\\\\^+[%.@][-$\\\\w]+","name":"support.type.property-name.modifier.up.css"},{"match":"\\\\.[-$\\\\w]+","name":"support.type.property-name.modifier.is.css"},{"match":"[-$\\\\w]+","name":"support.type.property-name.css"}]}]},"super-literal":{"match":"(?\\\\[\\\\s])"},"tag-attr-value":{"begin":"(=)","beginCaptures":{"0":{"name":"keyword.operator.tag.assignment"}},"contentName":"meta.tag.attribute-value.imba","end":"(?=[>\\\\s])","patterns":[{"include":"#expr"}]},"tag-classname":{"begin":"\\\\.","contentName":"entity.other.attribute-name.class.css","end":"(?=[(.=>\\\\[\\\\s])","patterns":[{"include":"#tag-interpolated-content"}]},"tag-content":{"patterns":[{"include":"#tag-name"},{"include":"#tag-expr-name"},{"include":"#tag-interpolated-content"},{"include":"#tag-interpolated-parens"},{"include":"#tag-interpolated-brackets"},{"include":"#tag-event-handler"},{"include":"#tag-mixin-name"},{"include":"#tag-classname"},{"include":"#tag-ref"},{"include":"#tag-attr-value"},{"include":"#tag-attr-name"},{"include":"#comment"}]},"tag-event-handler":{"begin":"(@[$_\\\\w]+(?:-[$_\\\\w]+)*)","beginCaptures":{"0":{"name":"entity.other.event-name.imba"}},"contentName":"entity.other.tag.event","end":"(?=[=>\\\\[\\\\s])","patterns":[{"include":"#tag-interpolated-content"},{"include":"#tag-interpolated-parens"},{"begin":"\\\\.","beginCaptures":{"0":{"name":"punctuation.section.tag"}},"end":"(?=[.=>\\\\[\\\\s]|$)","name":"entity.other.event-modifier.imba","patterns":[{"include":"#tag-interpolated-parens"},{"include":"#tag-interpolated-content"}]}]},"tag-expr-name":{"begin":"(?<=<)(?=[{\\\\w])","contentName":"entity.name.tag.imba","end":"(?=[#$%(.>\\\\[\\\\s])","patterns":[{"include":"#tag-interpolated-content"}]},"tag-interpolated-brackets":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.tag.imba"}},"contentName":"meta.embedded.line.imba","end":"]","endCaptures":{"0":{"name":"punctuation.section.tag.imba"}},"name":"meta.tag.expression.imba","patterns":[{"include":"#inline-css-selector"},{"include":"#inline-styles"}]},"tag-interpolated-content":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.tag.imba"}},"contentName":"meta.embedded.line.imba","end":"}","endCaptures":{"0":{"name":"punctuation.section.tag.imba"}},"name":"meta.tag.expression.imba","patterns":[{"include":"#expression"}]},"tag-interpolated-parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.tag.imba"}},"contentName":"meta.embedded.line.imba","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.tag.imba"}},"name":"meta.tag.expression.imba","patterns":[{"include":"#expression"}]},"tag-literal":{"patterns":[{"begin":"(<)(?=[#$%(.@\\\\[{~\\\\w])","beginCaptures":{"1":{"name":"punctuation.section.tag.open.imba"}},"contentName":"meta.tag.attributes.imba","end":"(>)","endCaptures":{"1":{"name":"punctuation.section.tag.close.imba"}},"name":"meta.tag.imba","patterns":[{"include":"#tag-content"}]}]},"tag-mixin-name":{"match":"(%[-\\\\w]+)","name":"entity.other.tag-mixin.imba"},"tag-name":{"patterns":[{"match":"(?<=<)(self|global|slot)(?=[(.>\\\\[\\\\s])","name":"entity.name.tag.special.imba"}]},"tag-ref":{"match":"(\\\\$[-\\\\w]+)","name":"entity.other.tag-ref.imba"},"template":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?)(\\\\{\\\\{typeArguments}}\\\\s*)?\`)","end":"(?=\`)","name":"string.template.imba","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?))","end":"(?=(\\\\{\\\\{typeArguments}}\\\\s*)?\`)","patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?)","name":"entity.name.function.tagged-template.imba"}]}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?)\\\\s*(?=(\\\\{\\\\{typeArguments}}\\\\s*)\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.imba"}},"end":"(?=\`)","name":"string.template.imba","patterns":[{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*(?:-[$_[:alnum:]]+)*[!?]?)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.imba"},"2":{"name":"punctuation.definition.string.template.begin.imba"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.template.end.imba"}},"name":"string.template.imba","patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"}]}]},"template-substitution-element":{"begin":"(?","patterns":[{"include":"#type-brackets"}]},{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#type-brackets"}]}]},"type-literal":{"begin":"(\\\\\\\\)","beginCaptures":{"1":{"name":"meta.type.annotation.open.imba"}},"end":"(?=[]),.=}\\\\s]|$)","name":"meta.type.annotation.imba","patterns":[{"include":"#type-brackets"}]},"undefined-literal":{"match":"(?i.map(i=>d[i]); +var hE=Object.defineProperty;var fE=(Za,sa,hr)=>sa in Za?hE(Za,sa,{enumerable:!0,configurable:!0,writable:!0,value:hr}):Za[sa]=hr;var q=(Za,sa,hr)=>fE(Za,typeof sa!="symbol"?sa+"":sa,hr);import{o as gE,r as xE,s as xa,t as cu}from"./chunk-LvLJmgfZ.js";import{c as Rl,i as Oe,l as Ln,n as $e,s as Al,u as Il}from"./useEvent-DlWF5OMa.js";import{t as vE}from"./react-BGmjiNul.js";import{$r as C1,An as k1,Fn as S1,G as mu,Gn as N1,Gt as yE,Hn as Pl,I as bE,Jn as wE,Jr as DE,Kn as jE,Qr as CE,Rn as kE,Rt as SE,Sr as NE,St as pu,Ur as EE,Vr as _E,Xn as TE,Zr as RE,ai as E1,ci as Bn,ei as hu,hi as _1,kn as fu,li as AE,mi as IE,qr as PE,ri as Hn,rt as ME,ti as FE,x as VE,y as T1,zt as R1,__tla as zE}from"./cells-CmJW_FeD.js";import{t as Wn}from"./react-dom-C9fstfnp.js";import{A as $r,B as Se,C as Ht,E as OE,F as A1,I as ft,J as $E,N as Y,P as $,R as M,S as sr,T as W,U as LE,V as va,a as I1,b as ye,h as BE,i as P1,j as HE,k as He,n as M1,r as WE,s as gu,t as xu,v as UE,w as ee,x as F1,z as Pa}from"./zod-Cg4WLWh2.js";import{t as J}from"./compiler-runtime-DeeZ7FnK.js";import{t as KE}from"./get-CyLJYAfP.js";import{t as V1}from"./pick-DeQioq0G.js";import{n as ZE}from"./useLifecycle-CmDXEyIC.js";import{t as Ma}from"./capitalize-DQeWKRGx.js";import{a as qE,i as vu,n as YE}from"./type-BdyvjzTI.js";import{i as GE,r as z1,t as QE}from"./tooltip-CrRUCOBw.js";import{A as JE,G as yu,H as XE,I as e_,J as t_,K as Lr,L as a_,M as r_,N as n_,O as i_,Q as l_,R as o_,T as O1,U as s_,V as $1,W as Fa,Y as L1,Z as B1,at as Un,et as d_,ft as u_,g as c_,it as bu,j as m_,k as p_,lt as H1,ot as h_}from"./utilities.esm-CqQATX3k.js";import{a as Va,d as se,f as za}from"./hotkeys-uKX61F1_.js";import{t as Br}from"./invariant-C6yE60hi.js";import{A as f_,O as g_,S as x_,g as v_,i as y_,k as b_,l as w_,v as D_,y as j_}from"./utils-Czt8B2GX.js";import{r as wu}from"./constants-Bkp4R3bQ.js";import{A as W1,E as U1,O as Ze,a as C_,h as k_,i as K1,j as S_,l as N_,n as E_,p as __,r as Du,t as T_,w as Z1}from"./config-CENq_7Pd.js";import{a as R_,c as A_,l as I_,o as P_,r as M_,s as F_,t as V_}from"./switch-C5jvDmuG.js";import{t as z_}from"./globals-DPW2B3A9.js";import{t as Ml}from"./ErrorBoundary-C7JBxSzd.js";import{n as O_,r as kt,t as Fl}from"./useEventListener-COkmyg1v.js";import{t as $_}from"./jsx-runtime-DN_bIXfG.js";import{n as Oa,t as Ce}from"./button-B8cGZzP5.js";import{n as Vl,t as U}from"./cn-C1rgT0yh.js";import{at as L_}from"./dist-CAcX026F.js";import{$ as B_,A as H_,C as W_,D as U_,E as ju,F as Cu,G as K_,H as Z_,J as q1,K as q_,O as Y_,P as ku,S as G_,T as Y1,U as G1,V as Q1,W as Q_,Y as Kn,b as J_,d as X_,et as eT,j as J1,l as tT,nt as aT,q as X1,r as rT,t as ev,tt as nT,u as iT,v as lT,w as oT,x as Su,y as sT,__tla as dT}from"./JsonOutput-DlwRx3jE.js";import{c as uT,n as tv,p as cT,r as ya,t as mT}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{n as pT}from"./requests-C0HaHO6a.js";import{t as St}from"./createLucideIcon-CW2xpJ57.js";import{A as hT,C as av,D as fT,O as gT,S as xT,_ as vT,a as rv,b as yT,c as nv,d as Zn,f as iv,g as bT,h as wT,i as Nu,k as DT,l as jT,m as lv,n as CT,p as kT,r as ba,s as ST,t as NT,u as ra,v as ET,y as _T}from"./spec-qp_XZeSS.js";import{D as TT,E as RT,O as AT,h as IT,k as PT,l as MT,m as FT,n as VT,w as zT}from"./add-cell-with-ai-DEdol3w0.js";import{t as OT,__tla as $T}from"./LazyAnyLanguageCodeMirror-Dr2G5gxJ.js";import{i as LT,r as BT}from"./chat-components-BQ_d4LQG.js";import{a as HT,i as WT,n as UT,o as KT,t as ov}from"./useBoolean-GvygmcM1.js";import{_ as ZT,a as qT,c as $a,d as YT,f as GT,h as Hr,i as Pt,l as Eu,m as sv,n as La,o as zl,p as dv,r as Wr,s as dr,t as Ba}from"./select-D9lTzMzP.js";import{d as Ol,r as QT}from"./download-C_slsU-7.js";import{t as $l}from"./chevron-right-CqEd11Di.js";import{i as JT,o as XT}from"./maps-s2pQkyf5.js";import"./markdown-renderer-DjqhqmES.js";import{u as eR}from"./toDate-5JckKRQn.js";import{P as uv,a as _u,c as tR,i as aR,o as rR,p as cv,r as mv,t as pv}from"./dropdown-menu-BP4_BZLr.js";import{t as nR}from"./code-xml-MBUyxNtK.js";import{t as iR}from"./copy-gBVL4NN-.js";import{t as lR}from"./download-DobaYJPt.js";import{i as oR}from"./file-video-camera-CZUg-nFA.js";import{r as sR,t as dR}from"./types-D5CL190S.js";import{n as uR,t as cR}from"./house-CncUa_LL.js";import{n as Ll,t as qn}from"./spinner-C1czjtp7.js";import{n as mR,t as Tu}from"./readonly-python-code-Dr5fAkba.js";import{n as pR,t as Bl}from"./types-B42u_5hF.js";import{t as hv}from"./plus-CHesBJpY.js";import{t as hR}from"./refresh-cw-Din9uFKE.js";import{$ as fv,A as Ru,C as fR,D as gR,E as Au,G as xR,H as vR,J as Ur,K as Hl,L as Iu,M as Wl,N as gv,O as xv,P as Ul,Q as wa,R as yR,T as Kl,U as bR,W as Ha,X as Wa,Y as Ua,Z as vv,_ as Zl,at as Kr,b as wR,c as DR,ct as st,d as yv,et as bv,g as Zr,h as Yn,i as jR,it as CR,k as Pu,l as kR,lt as SR,m as ql,n as NR,nt as Mu,o as Fu,ot as ER,p as wv,q as Dv,r as Vu,rt as ur,s as _R,st as Yl,t as zu,tt as Gl,u as Ql,v as Ou,w as TR}from"./input-Bkl2Yfmh.js";import{t as RR}from"./settings-MTlHVxz3.js";import{t as Jl}from"./square-function-DxXFdbn8.js";import{_ as Je,a as dt,c as at,d as cr,f as AR,g as jv,h as IR,i as PR,l as it,n as MR,o as Gn,p as Cv,r as FR,t as VR,u as ct,v as na}from"./textarea-DzIuH-E_.js";import{a as zR,d as OR,i as $R,l as LR,o as kv,r as BR,s as HR,t as WR,u as UR}from"./column-preview-DZ--KOk1.js";import{t as KR}from"./square-leQTJTJJ.js";import{t as Sv}from"./trash-2-C-lF7BNB.js";import{t as Xl}from"./triangle-alert-CbD0f2J6.js";import{i as Nv,r as ZR,t as qR}from"./es-FiXEquL2.js";import{t as yt}from"./preload-helper-BW0IMuFq.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{n as YR,t as Wt}from"./use-toast-Bzf3rpev.js";import{r as qr}from"./useTheme-BSVRc0kJ.js";import{C as eo,E as $u,S as to,_ as We,d as GR,f as Ev,g as Ut,h as QR,l as JR,m as XR,p as eA,u as tA,v as Lu,w as Ee,x as Qn}from"./Combination-D1TsGrBC.js";import{l as aA,r as _v,t as rA}from"./dist-CBrDuocE.js";import{a as Bu,i as Nt,n as Hu,o as Wu,r as Uu,s as Tv,t as Mt}from"./tooltip-CvjcEpZC.js";import{d as ao,u as Rv}from"./menu-items-9PZrU2e0.js";import"./dates-CdsE1R40.js";import{a as nA,n as iA,t as lA}from"./mode-CXc0VeQq.js";import{a as oA,c as sA,i as dA,l as uA,n as cA,s as mA,t as pA}from"./alert-dialog-jcHA5geR.js";import{a as Av,f as Ku,h as Iv,i as hA,l as Pv,m as fA,n as gA,o as ro,p as no,r as xA,s as vA,t as Jn,u as io,v as lo}from"./VisuallyHidden-B0mBEsSm.js";import{C as yA,D as bA,E as Mv,F as Fv,I as Vv,L as Yr,N as wA,O as Xe,R as zv,n as DA,s as oo,t as Ov,x as jA,z as Da}from"./usePress-C2LPFxyv.js";import{t as CA}from"./SSRProvider-DD7JA3RM.js";import{n as Kt,r as kA,t as ia}from"./useDateFormatter-CV0QXb5P.js";import{n as SA,t as qe}from"./context-BAYdLMF_.js";import{t as NA}from"./useNumberFormatter-D8ks3oPN.js";import{a as EA,i as _A,r as $v,t as Lv}from"./popover-DtnzNVk-.js";import{i as Gr,r as TA}from"./numbers-C9_R_vlY.js";import{n as RA,t as Bv}from"./useDebounce-em3gna-v.js";import{t as AA}from"./ImperativeModal-BZvZlZQZ.js";import"./share-CXQVxivL.js";import{n as Hv,r as Wv,t as IA}from"./errors-z7WpYca5.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as so}from"./copy-icon-jWsqdLn1.js";import{t as Me}from"./RenderHTML-B4Nb8r0D.js";import"./purify.es-N-2faAGj.js";import{a as Uv,c as PA,i as Kv,l as MA,n as Zu,o as FA,r as Zv,s as VA}from"./multi-map-CQd4MZr5.js";import{n as zA,r as qu,t as uo}from"./alert-BEdExd6A.js";import{n as Qr,t as mr}from"./error-banner-Cq4Yn1WZ.js";import{i as la,n as oa,r as Xn,t as ei}from"./tabs-CHiEPtZV.js";import{n as Et}from"./useAsyncData-Dj1oqsrZ.js";import{a as OA,c as $A,o as LA,r as BA,s as HA,t as WA}from"./command-B1zRJT1a.js";import{t as qv}from"./dist-D0NgYwYf.js";import{__tla as UA}from"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import"./es-BJsT6vfZ.js";import{a as KA,o as ZA}from"./focus-KGgBDCvb.js";import{a as Yv,i as Yu,n as Gu,o as Jr,r as pr,t as Qu}from"./table-BatLo2vd.js";import{t as Ka}from"./useDeepCompareMemoize-81gQouTn.js";import{t as Gv}from"./renderShortcut-BzTDKVab.js";import{t as ti}from"./label-CqyOmxjL.js";import{t as qA}from"./chat-display-ZS_L6G-P.js";import"./esm-D2_Kx6xF.js";import{n as YA}from"./icons-9QU2Dup7.js";import{t as GA}from"./bundle.esm-dxSncdJD.js";import{a as Qv,c as QA,d as Jv,f as co,i as JA,l as XA,n as Xv,o as e6,p as ja,r as t6,s as ey,t as a6,u as oe}from"./form-DyJ8-Zz6.js";import"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import{a as r6,i as ty,n as ay,t as ry}from"./field-86WoveRM.js";import{i as n6,n as i6,r as l6}from"./floating-outline-DqdzWKrn.js";Promise.all([(()=>{try{return zE}catch{}})(),(()=>{try{return dT}catch{}})(),(()=>{try{return $T}catch{}})(),(()=>{try{return UA}catch{}})()]).then(async()=>{(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(let n of r)if(n.type==="childList")for(let i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function e(r){let n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(r){if(r.ep)return;r.ep=!0;let n=e(r);fetch(r.href,n)}})();var Za=St("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),sa=St("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]),hr=St("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),iy=St("brackets",[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]]),ly=St("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]),oy=St("copy-slash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),sy=St("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]),dy=St("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]),uy=St("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),cy=St("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]),ac=St("square-dashed-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),my=St("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]),rc=St("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),py=xa(_1(),1);const Ca={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function hy(t,e,a){let r=t.length,n=e.length,i=Array.from({length:r+1},()=>Array.from({length:n+1}).fill(0));for(let u=0;u<=r;u++)i[u][0]=u;for(let u=0;u<=n;u++)i[0][u]=u;for(let u=1;u<=r;u++)for(let c=1;c<=n;c++)i[u][c]=a(t[u-1],e[c-1])?i[u-1][c-1]:1+Math.min(i[u-1][c],i[u][c-1],i[u-1][c-1]);let l=[],o=r,d=n;for(;o>0||d>0;)o>0&&d>0&&a(t[o-1],e[d-1])?(l.unshift({type:Ca.MATCH,position:o-1}),o--,d--):o>0&&d>0&&i[o][d]===i[o-1][d-1]+1?(l.unshift({type:Ca.SUBSTITUTE,position:o-1}),o--,d--):o>0&&i[o][d]===i[o-1][d]+1?(l.unshift({type:Ca.DELETE,position:o-1}),o--):d>0&&i[o][d]===i[o][d-1]+1&&(l.unshift({type:Ca.INSERT,position:o}),d--);return{distance:i[r][n],operations:l}}function fy(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case Ca.MATCH:r.push(t[n]),n++;break;case Ca.DELETE:n++;break;case Ca.INSERT:r.push(a);break;case Ca.SUBSTITUTE:r.push(a),n++;break}return r}function gy(t,e,a,r){let n=hy(t,e,a);return{merged:fy(t,n.operations,r),edits:n}}var ai=0,ri="";function xy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let o=(e==null?void 0:e.cells.map(d=>d.id??Hn.create()))||[];return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,null])),notebookCellData:new Map(o.map((d,u)=>[d,(e==null?void 0:e.cells[u])||nc()]))}}if(!e){let o=t.cells.map(d=>d.id??Hn.create());return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(o.map(d=>[d,nc()]))}}let{merged:n,edits:i}=gy(t.cells,e.cells,(o,d)=>{let u=o.code_hash;return u?d.code_hash===u:!1},ic());i.distance>0&&se.warn("Session and notebook have different cells, attempted merge.");let l=[];for(let o=0;oi.type==="data")||a.find(i=>i.type==="error")||a[0];if(r){if(r.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:r.evalue}],mimetype:"application/vnd.marimo+error",timestamp:ai};else if(r.type==="data"){let i=Object.keys(r.data)[0];e.output={channel:"output",data:Object.values(r.data)[0],mimetype:i,timestamp:ai}}}let n=t.console||[];return{...e,outline:e.output?ME(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ai}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ai})}}function by(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=xy(t,e);if(a.length===0)return null;let i={},l={};for(let o of a){let d=r.get(o),u=n.get(o);u&&(i[o]=vy(o,u)),l[o]=yy(d)}return{cellIds:_E.from([a]),cellData:i,cellRuntime:l,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var wy=J(),lc=Object.freeze({left:0,top:0,width:16,height:16}),ni=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xr=Object.freeze({...lc,...ni}),po=Object.freeze({...Xr,body:"",hidden:!1}),Dy=Object.freeze({width:null,height:null}),oc=Object.freeze({...Dy,...ni});function jy(t,e=0){let a=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(a===""){let n=parseInt(t);return isNaN(n)?0:r(n)}else if(a!==t){let n=0;switch(a){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-a.length));return isNaN(i)?0:(i/=n,i%1==0?r(i):0)}}return e}var Cy=/[\s,]+/;function ky(t,e){e.split(Cy).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var sc={...oc,preserveAspectRatio:""};function dc(t){let e={...sc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=jy(a("rotate","")),ky(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function Sy(t,e){for(let a in sc)if(t[a]!==e[a])return!0;return!1}var uc=/^[a-z0-9]+(-[a-z0-9]+)*$/,en=(t,e,a,r="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:o};return e&&!ii(u)?null:u}let i=n[0],l=i.split("-");if(l.length>1){let o={provider:r,prefix:l.shift(),name:l.join("-")};return e&&!ii(o)?null:o}if(a&&r===""){let o={provider:r,prefix:"",name:i};return e&&!ii(o,a)?null:o}return null},ii=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Ny(t,e){let a={};!t.hFlip!=!e.hFlip&&(a.hFlip=!0),!t.vFlip!=!e.vFlip&&(a.vFlip=!0);let r=((t.rotate||0)+(e.rotate||0))%4;return r&&(a.rotate=r),a}function cc(t,e){let a=Ny(t,e);for(let r in po)r in ni?r in t&&!(r in a)&&(a[r]=ni[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function Ey(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(l){if(a[l])return n[l]=[];if(!(l in n)){n[l]=null;let o=r[l]&&r[l].parent,d=o&&i(o);d&&(n[l]=[o].concat(d))}return n[l]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function _y(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function l(o){i=cc(r[o]||n[o],i)}return l(e),a.forEach(l),cc(t,i)}function mc(t,e){let a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(n=>{e(n,null),a.push(n)});let r=Ey(t);for(let n in r){let i=r[n];i&&(e(n,_y(t,n,i)),a.push(n))}return a}var Ty={provider:"",aliases:{},not_found:{},...lc};function ho(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function pc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ho(t,Ty))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!ho(i,po))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],l=i.parent;if(!n||typeof l!="string"||!a[l]&&!r[l]||!ho(i,po))return null}return e}var li=Object.create(null);function Ry(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function da(t,e){let a=li[t]||(li[t]=Object.create(null));return a[e]||(a[e]=Ry(t,e))}function hc(t,e){return pc(e)?mc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function Ay(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Iy(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(li)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(li[r]||{})).forEach(n=>{let i=da(r,n);a=a.concat(Object.keys(i.icons).map(l=>(r===""?"":"@"+r+":")+n+":"+l))})}),a}var tn=!1;function fc(t){return typeof t=="boolean"&&(tn=t),tn}function an(t){let e=typeof t=="string"?en(t,!0,tn):t;if(e){let a=da(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function gc(t,e){let a=en(t,!0,tn);if(!a)return!1;let r=da(a.provider,a.prefix);return e?Ay(r,a.name,e):(r.missing.add(a.name),!0)}function xc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),tn&&!e&&!t.prefix){let r=!1;return pc(t)&&(t.prefix="",mc(t,(n,i)=>{gc(n,i)&&(r=!0)})),r}let a=t.prefix;return ii({provider:e,prefix:a,name:"a"})?!!hc(da(e,a),t):!1}function vc(t){return!!an(t)}function Py(t){let e=an(t);return e&&{...Xr,...e}}function My(t){let e={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((n,i)=>n.provider===i.provider?n.prefix===i.prefix?n.name.localeCompare(i.name):n.prefix.localeCompare(i.prefix):n.provider.localeCompare(i.provider));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;let i=n.provider,l=n.prefix,o=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[l]||(d[l]=da(i,l)),c;c=o in u.icons?e.loaded:l===""||u.missing.has(o)?e.missing:e.pending;let p={provider:i,prefix:l,name:o};c.push(p)}),e}function yc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function Fy(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let a=!1,r=t.provider,n=t.prefix;e.forEach(i=>{let l=i.icons,o=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])l.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))l.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),l.pending.length!==o&&(a||yc([t],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}var Vy=0;function zy(t,e,a){let r=Vy++,n=yc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),n}var fo=Object.create(null);function bc(t,e){fo[t]=e}function go(t){return fo[t]||fo[""]}function Oy(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?en(n,e,a):n;i&&r.push(i)}),r}var $y={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ly(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,l;if(t.random){let N=t.resources.slice(0);for(l=[];N.length>1;){let S=Math.floor(Math.random()*N.length);l.push(N[S]),N=N.slice(0,S).concat(N.slice(S+1))}l=l.concat(N)}else l=t.resources.slice(i).concat(t.resources.slice(0,i));let o=Date.now(),d="pending",u=0,c,p=null,m=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(p=(clearTimeout(p),null))}function f(){d==="pending"&&(d="aborted"),g(),m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function v(N,S){S&&(h=[]),typeof N=="function"&&h.push(N)}function b(){return{startTime:o,payload:e,status:d,queriesSent:u,queriesPending:m.length,subscribe:v,abort:f}}function w(){d="failed",h.forEach(N=>{N(void 0,c)})}function D(){m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function j(N,S,y){let C=S!=="success";switch(m=m.filter(_=>_!==N),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){c=y,w();return}if(C){c=y,m.length||(l.length?k():w());return}if(g(),D(),!t.random){let _=t.resources.indexOf(N.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function k(){if(d!=="pending")return;g();let N=l.shift();if(N===void 0){if(m.length){p=setTimeout(()=>{g(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let S={status:"pending",resource:N,callback:(y,C)=>{j(S,y,C)}};m.push(S),u++,p=setTimeout(k,t.rotate),a(N,e,S.callback)}return setTimeout(k),b}function wc(t){let e={...$y,...t},a=[];function r(){a=a.filter(l=>l().status==="pending")}function n(l,o,d){let u=Ly(e,l,o,(c,p)=>{r(),d&&d(c,p)});return a.push(u),u}function i(l){return a.find(o=>l(o))||null}return{query:n,find:i,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:r}}function xo(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}for(var oi=Object.create(null),si=["https://api.simplesvg.com","https://api.unisvg.com"],vo=[];si.length>0;)si.length===1||Math.random()>.5?vo.push(si.shift()):vo.push(si.pop());oi[""]=xo({resources:["https://api.iconify.design"].concat(vo)});function Dc(t,e){let a=xo(e);return a===null?!1:(oi[t]=a,!0)}function di(t){return oi[t]}function By(){return Object.keys(oi)}function jc(){}var yo=Object.create(null);function Hy(t){if(!yo[t]){let e=di(t);if(!e)return;yo[t]={config:e,redundancy:wc(e)}}return yo[t]}function Cc(t,e,a){let r,n;if(typeof t=="string"){let i=go(t);if(!i)return a(void 0,424),jc;n=i.send;let l=Hy(t);l&&(r=l.redundancy)}else{let i=xo(t);if(i){r=wc(i);let l=go(t.resources?t.resources[0]:"");l&&(n=l.send)}}return!r||!n?(a(void 0,424),jc):r.query(e,n,a)().abort}function kc(){}function Wy(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Fy(t)}))}function Uy(t){let e=[],a=[];return t.forEach(r=>{(r.match(uc)?e:a).push(r)}),{valid:e,invalid:a}}function rn(t,e,a){function r(){let n=t.pendingIcons;e.forEach(i=>{n&&n.delete(i),t.icons[i]||t.missing.add(i)})}if(a&&typeof a=="object")try{if(!hc(t,a).length){r();return}}catch(n){console.error(n)}r(),Wy(t)}function Sc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Ky(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:a,prefix:r}=t,n=t.iconsToLoad;if(delete t.iconsToLoad,!n||!n.length)return;let i=t.loadIcon;if(t.loadIcons&&(n.length>1||!i)){Sc(t.loadIcons(n,r,a),u=>{rn(t,n,u)});return}if(i){n.forEach(u=>{Sc(i(u,r,a),c=>{rn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:l,invalid:o}=Uy(n);if(o.length&&rn(t,o,null),!l.length)return;let d=r.match(uc)?go(a):null;if(!d){rn(t,l,null);return}d.prepare(a,r,l).forEach(u=>{Cc(a,u,c=>{rn(t,u.icons,c)})})}))}var bo=(t,e)=>{let a=My(Oy(t,!0,fc()));if(!a.pending.length){let o=!0;return e&&setTimeout(()=>{o&&e(a.loaded,a.missing,a.pending,kc)}),()=>{o=!1}}let r=Object.create(null),n=[],i,l;return a.pending.forEach(o=>{let{provider:d,prefix:u}=o;if(u===l&&d===i)return;i=d,l=u,n.push(da(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(o=>{let{provider:d,prefix:u,name:c}=o,p=da(d,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(c)||(m.add(c),r[d][u].push(c))}),n.forEach(o=>{let d=r[o.provider][o.prefix];d.length&&Ky(o,d)}),e?zy(e,a,n):kc},Zy=t=>new Promise((e,a)=>{let r=typeof t=="string"?en(t,!0):t;if(!r){a(t);return}bo([r||t],n=>{if(n.length&&r){let i=an(r);if(i){e({...Xr,...i});return}}a(t)})});function Nc(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function qy(t,e){if(typeof t=="object")return{data:Nc(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=Nc(t);if(n)return{data:n,value:t}}let a=en(t,!0,!0);if(!a)return{value:t};let r=an(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:bo([a],()=>e(t,a,an(a)))}}var Ec=!1;try{Ec=navigator.vendor.indexOf("Apple")===0}catch{}function Yy(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Ec||t.indexOf("=0;){let n=t.indexOf(">",r),i=t.indexOf("",i);if(l===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(l+1)}return{defs:a,content:t}}function Xy(t,e){return t?""+t+""+e:e}function eb(t,e,a){let r=Jy(t);return Xy(r.defs,e+r.content+a)}var tb=t=>t==="unset"||t==="undefined"||t==="none";function _c(t,e){let a={...Xr,...t},r={...oc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let v=[],b=f.hFlip,w=f.vFlip,D=f.rotate;b?w?D+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):w&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.push("scale(1 -1)"),n.top=n.left=0);let j;switch(D<0&&(D-=Math.floor(D/4)*4),D%=4,D){case 1:j=n.height/2+n.top,v.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,v.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}D%2==1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),v.length&&(i=eb(i,'',""))});let l=r.width,o=r.height,d=n.width,u=n.height,c,p;l===null?(p=o===null?"1em":o==="auto"?u:o,c=wo(p,d/u)):(c=l==="auto"?d:l,p=o===null?wo(c,u/d):o==="auto"?u:o);let m={},h=(f,v)=>{tb(v)||(m[f]=v.toString())};h("width",c),h("height",p);let g=[n.left,n.top,d,u];return m.viewBox=g.join(" "),{attributes:m,viewBox:g,body:i}}function Do(t,e){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in e)a+=" "+r+'="'+e[r]+'"';return'"+t+""}function ab(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function rb(t){return"data:image/svg+xml,"+ab(t)}function Tc(t){return'url("'+rb(t)+'")'}var ui=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function nb(t){ui=t}function ib(){return ui}function lb(t,e){let a=di(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(l=>{n=Math.max(n,l.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function ob(t){return t===404}var sb=(t,e,a)=>{let r=[],n=lb(t,e),i="icons",l={type:i,provider:t,prefix:e,icons:[]},o=0;return a.forEach((d,u)=>{o+=d.length+1,o>=n&&u>0&&(r.push(l),l={type:i,provider:t,prefix:e,icons:[]},o=d.length),l.icons.push(d)}),r.push(l),r};function db(t){if(typeof t=="string"){let e=di(t);if(e)return e.path}return"/"}var ub={prepare:sb,send:(t,e,a)=>{if(!ui){a("abort",424);return}let r=db(e.provider);switch(e.type){case"icons":{let i=e.prefix,l=e.icons.join(","),o=new URLSearchParams({icons:l});r+=i+".json?"+o.toString();break}case"custom":{let i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:a("abort",400);return}let n=503;ui(t+r).then(i=>{let l=i.status;if(l!==200){setTimeout(()=>{a(ob(l)?"abort":"next",l)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?a("abort",i):a("next",n)});return}setTimeout(()=>{a("success",i)})}).catch(()=>{a("next",n)})}};function cb(t,e,a){da(a||"",e).loadIcons=t}function mb(t,e,a){da(a||"",e).loadIcon=t}var jo="data-style",Rc="";function pb(t){Rc=t}function Ac(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(jo));a||(a=document.createElement("style"),a.setAttribute(jo,jo),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Rc}function Ic(){bc("",ub),fc(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||!r||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!xc(r))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let a in e){let r="IconifyProviders["+a+"] is invalid.";try{let n=e[a];if(typeof n!="object"||!n||n.resources===void 0)continue;Dc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:vc,iconExists:vc,getIcon:Py,listIcons:Iy,addIcon:gc,addCollection:xc,calculateSize:wo,buildIcon:_c,iconToHTML:Do,svgToURL:Tc,loadIcons:bo,loadIcon:Zy,addAPIProvider:Dc,setCustomIconLoader:mb,setCustomIconsLoader:cb,appendCustomStyle:pb,_api:{getAPIConfig:di,setAPIModule:bc,sendAPIQuery:Cc,setFetch:nb,getFetch:ib,listAPIProviders:By}}}var Co={"background-color":"currentColor"},Pc={"background-color":"transparent"},Mc={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Fc={"-webkit-mask":Co,mask:Co,background:Pc};for(let t in Fc){let e=Fc[t];for(let a in Mc)e[t+"-"+a]=Mc[a]}function Vc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function hb(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("");let i=t.attributes,l=Tc(Do(n,{...i,width:e.width+"",height:e.height+""})),o=r.style,d={"--svg":l,width:Vc(i.width),height:Vc(i.height),...a?Co:Pc};for(let u in d)o.setProperty(u,d[u]);return r}var nn;function fb(){try{nn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{nn=null}}function gb(t){return nn===void 0&&fb(),nn?nn.createHTML(t):t}function xb(t){let e=document.createElement("span"),a=t.attributes,r="";return a.width||(r="width: inherit;"),a.height||(r+="height: inherit;"),r&&(a.style=r),e.innerHTML=gb(Do(t.body,a)),e.firstChild}function ko(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function zc(t,e){let a=e.icon.data,r=e.customisations,n=_c(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,l;i==="svg"?l=xb(n):l=hb(n,{...Xr,...a},i==="mask");let o=ko(t);o?l.tagName==="SPAN"&&o.tagName===l.tagName?o.setAttribute("style",l.getAttribute("style")):t.replaceChild(l,o):t.appendChild(l)}function Oc(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function vb(t="iconify-icon"){let e,a;try{e=window.customElements,a=window.HTMLElement}catch{return}if(!e||!a)return;let r=e.get(t);if(r)return r;let n=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends a{constructor(){super();q(this,"_shadowRoot");q(this,"_initialised",!1);q(this,"_state");q(this,"_checkQueued",!1);q(this,"_connected",!1);q(this,"_observer",null);q(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ac(d,u),this._state=Oc({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return n.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ac(this._shadowRoot,u));break}case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let d=this.getAttribute("icon");if(d&&d.slice(0,1)==="{")try{return JSON.parse(d)}catch{}return d}set icon(d){typeof d=="object"&&(d=JSON.stringify(d)),this.setAttribute("icon",d)}get inline(){return this.hasAttribute("inline")}set inline(d){d?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(d){d?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let d=this._state;if(d.rendered){let u=this._shadowRoot;if(d.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}zc(u,d)}}get status(){let d=this._state;return d.rendered?"rendered":d.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let d=this._state,u=this.getAttribute("icon");if(u!==d.icon.value){this._iconChanged(u);return}if(!d.rendered||!this._visible)return;let c=this.getAttribute("mode"),p=dc(this);(d.attrMode!==c||Sy(d.customisations,p)||!ko(this._shadowRoot))&&this._renderIcon(d.icon,p,c)}_iconChanged(d){let u=qy(d,(c,p,m)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let g={value:c,name:p,data:m};g.data?this._gotIconData(g):h.icon=g});u.data?this._gotIconData(u):this._state=Oc(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=ko(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,dc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let p=Yy(d.data.body,c),m=this._state.inline;zc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:m,customisations:u,attrMode:c,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let u=d.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};n.forEach(o=>{o in i.prototype||Object.defineProperty(i.prototype,o,{get:function(){return this.getAttribute(o)},set:function(d){d===null?this.removeAttribute(o):this.setAttribute(o,d)}})});let l=Ic();for(let o in l)i[o]=i.prototype[o]=l[o];return e.define(t,i),i}var{enableCache:o6,disableCache:s6,iconLoaded:d6,iconExists:u6,getIcon:c6,listIcons:m6,addIcon:p6,addCollection:h6,calculateSize:f6,buildIcon:g6,iconToHTML:x6,svgToURL:v6,loadIcons:y6,loadIcon:b6,setCustomIconLoader:w6,setCustomIconsLoader:D6,addAPIProvider:j6,_api:C6}=vb()||Ic(),x=xa(vE(),1),s=xa($_(),1);const yb=()=>((0,wy.c)(1),null);var $c=J();const Lc=(0,x.memo)(t=>{let e=(0,$c.c)(3),{children:a}=t,{theme:r}=qr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),()=>{document.body.classList.remove(r,`${r}-theme`)}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,x.useLayoutEffect)(n,i),a});Lc.displayName="ThemeProvider";const bb=t=>{let e=(0,$c.c)(3),{variables:a,children:r}=t,n;return e[0]!==r||e[1]!==a?(n=(0,s.jsx)("div",{className:"contents",style:a,children:r}),e[0]=r,e[1]=a,e[2]=n):n=e[2],n},So=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:x.lazy(()=>a())}};var wb=J();const Db=()=>{let t=(0,wb.c)(25),[e,a]=Ln(h_);if(e===null)return null;let r;t[0]===e?r=t[1]:(r=async()=>{try{await navigator.clipboard.writeText(e),Wt({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{Wt({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},t[0]=e,t[1]=r);let n=r,i;t[2]===a?i=t[3]:(i=()=>{a(null)},t[2]=a,t[3]=i);let l=i,o=jb,d;t[4]===l?d=t[5]:(d=D=>!D&&l(),t[4]=l,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(sA,{children:[(0,s.jsxs)(uA,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(wE,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(oA,{children:"The kernel failed to start. This usually happens when the package manager can't install your notebook's dependencies."})]}),t[6]=u):u=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Error Details"}),t[7]=c):c=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(iR,{className:"h-3 w-3"}),t[8]=p):p=t[8];let m;t[9]===n?m=t[10]:(m=(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[c,(0,s.jsxs)(Ce,{variant:"outline",size:"xs",onClick:n,className:"flex items-center gap-1",children:[p,"Copy"]})]}),t[9]=n,t[10]=m);let h;t[11]===e?h=t[12]:(h=(0,s.jsx)("pre",{className:"bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80",children:e}),t[11]=e,t[12]=h);let g;t[13]!==m||t[14]!==h?(g=(0,s.jsxs)("div",{className:"my-4 overflow-hidden",children:[m,h]}),t[13]=m,t[14]=h,t[15]=g):g=t[15];let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)(Ce,{variant:"outline",onClick:o,className:"flex items-center gap-2",children:[(0,s.jsx)(cR,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=f):f=t[16];let v;t[17]===l?v=t[18]:(v=(0,s.jsxs)(mA,{children:[f,(0,s.jsx)(cA,{onClick:l,children:"Dismiss"})]}),t[17]=l,t[18]=v);let b;t[19]!==v||t[20]!==g?(b=(0,s.jsxs)(dA,{className:"max-w-2xl",children:[u,g,v]}),t[19]=v,t[20]=g,t[21]=b):b=t[21];let w;return t[22]!==b||t[23]!==d?(w=(0,s.jsx)(pA,{open:!0,onOpenChange:d,children:b}),t[22]=b,t[23]=d,t[24]=w):w=t[24],w};function jb(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function Cb(){return window.ResizeObserver!==void 0}function ci(t){let{ref:e,box:a,onResize:r}=t;(0,x.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(Cb()){let i=new window.ResizeObserver(l=>{l.length&&r()});return i.observe(n,{box:a}),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,a])}var kb=Wn();function Sb(t,e=!0){let[a,r]=(0,x.useState)(!0),n=a&&e;return Da(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),Bc(t,n,(0,x.useCallback)(()=>r(!1),[])),n}function Nb(t,e){let[a,r]=(0,x.useState)(e?"open":"closed");switch(a){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let n=a==="exiting";return Bc(t,n,(0,x.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function Bc(t,e,a){Da(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){a();return}let r=t.current.getAnimations();if(r.length===0){a();return}let n=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{n||(0,kb.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Zt={top:"top",bottom:"top",left:"left",right:"left"},mi={top:"bottom",bottom:"top",left:"right",right:"left"},Eb={top:"left",left:"top"},No={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},pi={},rt=typeof document<"u"?window.visualViewport:null;function Wc(t){let e=0,a=0,r=0,n=0,i=0,l=0,o={},d=((rt==null?void 0:rt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(rt==null?void 0:rt.width)??r,a=(rt==null?void 0:rt.height)??n,o.top=u.scrollTop||t.scrollTop,o.left=u.scrollLeft||t.scrollLeft,rt&&(i=rt.offsetTop,l=rt.offsetLeft)}else({width:e,height:a,top:i,left:l}=fr(t,!1)),o.top=t.scrollTop,o.left=t.scrollLeft,r=e,n=a;return jA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(o.top=0,o.left=0,i=(rt==null?void 0:rt.pageTop)??0,l=(rt==null?void 0:rt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:o,top:i,left:l}}function _b(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Uc(t,e,a,r,n,i,l){let o=n.scroll[t]??0,d=r[No[t]],u=r.scroll[Zt[t]]+i,c=d+r.scroll[Zt[t]]-i,p=e-o+l[t]-r[Zt[t]],m=e-o+a+l[t]-r[Zt[t]];return pc?Math.max(c-m,u-p):0}function Tb(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Kc(t){if(pi[t])return pi[t];let[e,a]=t.split(" "),r=Zt[e]||"right",n=Eb[r];Zt[a]||(a="center");let i=No[r],l=No[n];return pi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:l},pi[t]}function Eo(t,e,a,r,n,i,l,o,d,u){let{placement:c,crossPlacement:p,axis:m,crossAxis:h,size:g,crossSize:f}=r,v={};v[h]=t[h]??0,p==="center"?v[h]+=((t[f]??0)-(a[f]??0))/2:p!==h&&(v[h]+=(t[f]??0)-(a[f]??0)),v[h]+=i;let b=t[h]-a[f]+d+u,w=t[h]+t[f]-d-u;if(v[h]=Mu(v[h],b,w),c===m){let D=o?l[g]:e[Hc[g]];v[mi[m]]=Math.floor(D-t[m]+n)}else v[m]=Math.floor(t[m]+t[g]+n);return v}function Rb(t,e,a,r,n,i,l,o){let d=r?a.height:e[Hc.height],u=t.top==null?a.top+(d-(t.bottom??0)-l):a.top+t.top,c=o==="top"?Math.max(0,u+l-(e.top+(e.scroll.top??0))-((n.top??0)+(n.bottom??0)+i)):Math.max(0,e.height+e.top+(e.scroll.top??0)-u-((n.top??0)+(n.bottom??0)+i));return Math.min(e.height-i*2,c)}function Zc(t,e,a,r,n,i){let{placement:l,axis:o,size:d}=i;return l===o?Math.max(0,a[o]-t[o]-(t.scroll[o]??0)+e[o]-(r[o]??0)-r[mi[o]]-n):Math.max(0,t[d]+t[o]+t.scroll[o]-e[o]-a[o]-a[d]-(r[o]??0)-r[mi[o]]-n)}function Ab(t,e,a,r,n,i,l,o,d,u,c,p,m,h,g,f){let v=Kc(t),{size:b,crossAxis:w,crossSize:D,placement:j,crossPlacement:k}=v,N=Eo(e,o,a,v,c,p,u,m,g,f),S=c,y=Zc(o,u,e,n,i+c,v);if(l&&r[b]>y){let z=Kc(`${mi[j]} ${k}`),L=Eo(e,o,a,z,c,p,u,m,g,f);Zc(o,u,e,n,i+c,z)>y&&(v=z,N=L,S=c)}let C="bottom";v.axis==="top"?v.placement==="top"?C="top":v.placement==="bottom"&&(C="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?C="bottom":v.crossPlacement==="bottom"&&(C="top"));let _=Uc(w,N[w],a[D],o,d,i,u);N[w]+=_;let E=Rb(N,o,u,m,n,i,a.height,C);h&&h{if(!a||r===null)return;let n=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let o=r||Mb.get(e.current);o&&o()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function gr(t,e){return t-e*Math.floor(t/e)}var Gc=1721426;function qa(t,e,a,r){e=ln(t,e);let n=e-1,i=-2;return a<=2?i=0:ka(e)&&(i=-1),Gc-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function ka(t){return t%4==0&&(t%100!=0||t%400==0)}function ln(t,e){return t==="BC"?1-e:e}function hi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Vb={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},gt=class{fromJulianDay(t){let e=t,a=e-Gc,r=Math.floor(a/146097),n=gr(a,146097),i=Math.floor(n/36524),l=gr(n,36524),o=Math.floor(l/1461),d=gr(l,1461),u=Math.floor(d/365),[c,p]=hi(r*400+i*100+o*4+u+(i!==4&&u!==4?1:0)),m=e-qa(c,p,1,1),h=2;e=0?t:e:t||e}function xr(t){return t=Fe(t,new gt),nm(ln(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function nm(t,e,a,r,n,i,l){let o=new Date;return o.setUTCHours(r,n,i,l),o.setUTCFullYear(t,e-1,a),o.getTime()}function Mo(t,e){if(e==="UTC")return 0;if(t>0&&e===xi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:l,second:o}=lm(t,e);return nm(a,r,n,i,l,o,0)-Math.floor(t/1e3)*1e3}var im=new Map;function lm(t,e){let a=im.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),im.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let i of r)i.type!=="literal"&&(n[i.type]=i.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var om=864e5;function qb(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Yb(t,e,n))}function Yb(t,e,a){let r=lm(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function ua(t,e,a="compatible"){let r=qt(t);if(e==="UTC")return xr(r);if(e===xi()&&a==="compatible"){r=Fe(r,new gt);let d=new Date,u=ln(r.era,r.year);return d.setFullYear(u,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let n=xr(r),i=Mo(n-om,e),l=Mo(n+om,e),o=qb(r,e,n-i,n-l);if(o.length===1)return o[0];if(o.length>1)switch(a){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-l);case"compatible":case"later":return Math.max(n-i,n-l);case"reject":throw RangeError("No such absolute time found")}}function sm(t,e,a="compatible"){return new Date(ua(t,e,a))}function ca(t,e){let a=Mo(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new bm(n<1?"BC":"AD",n<1?-n+1:n,i,l,e,a,o,d,u,c)}function mt(t){return new nt(t.calendar,t.era,t.year,t.month,t.day)}function qt(t,e){let a=0,r=0,n=0,i=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:i}=e),new ym(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(fi(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,Ga(r),r}function Gb(t,e,a){return t instanceof bm?t.timeZone===e?t:Jb(t,e):ca(ua(t,e,a),e)}function Qb(t){let e=xr(t)-t.offset;return new Date(e)}function Jb(t,e){return Fe(ca(xr(t)-t.offset,e),t.calendar)}var sn=36e5;function yi(t,e){var o;let a=t.copy(),r="hour"in a?mm(a,e):0;Fo(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Vo(a),dm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,Xb(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var i;let d=(o=(i=a.calendar).isInverseEra)==null?void 0:o.call(i,a);a.year=n,a.month=d?1:a.calendar.getMonthsInYear(a),a.day=d?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Fo(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Vo(t){for(;t.month<1;)Fo(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Fo(t,1)}function Xb(t){for(;t.day<1;)t.month--,Vo(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Vo(t)}function dm(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Ga(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),dm(t)}function zo(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function um(t,e){return yi(t,zo(e))}function Oo(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),Ga(a),a}function dn(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),cm(a),a}function ew(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=bi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=bi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=bi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=bi(t.hour,24),e}function cm(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function bi(t,e){let a=t%e;return a<0&&(a+=e),a}function mm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ew(t)}function pm(t,e){let a=t.copy();return mm(a,e),a}function tw(t,e){return pm(t,zo(e))}function $o(t,e,a,r){var l;let n=t.copy();switch(e){case"era":{let o=t.calendar.getEras(),d=o.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ma(d,a,0,o.length-1,r==null?void 0:r.round),n.era=o[d],Ga(n);break}case"year":var i;(l=(i=n.calendar).isInverseEra)!=null&&l.call(i,n)&&(a=-a),n.year=ma(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=ma(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ma(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),Ga(n),n}function Lo(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,l=0,o=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;l=d?12:0,o=d?23:11}n.hour=ma(i,a,l,o,r==null?void 0:r.round);break}case"minute":n.minute=ma(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ma(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ma(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ma(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t0?Math.ceil(t/i)*i:Math.floor(t/i)*i,t>r&&(t=a)}else t+=e,tr&&(t=a+(t-r-1));return t}function hm(t,e){let a;return a=e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0?ua(yi(qt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):xr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(ca(a,t.timeZone),t.calendar)}function aw(t,e){return hm(t,zo(e))}function rw(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let g=t.hour>=12;n=g?12:0,i=g?23:11}let l=qt(t),o=Fe(dn(l,{hour:n}),new gt),d=[ua(o,t.timeZone,"earlier"),ua(o,t.timeZone,"later")].filter(g=>ca(g,t.timeZone).day===o.day)[0],u=Fe(dn(l,{hour:i}),new gt),c=[ua(u,t.timeZone,"earlier"),ua(u,t.timeZone,"later")].filter(g=>ca(g,t.timeZone).day===u.day).pop(),p=xr(t)-t.offset,m=Math.floor(p/sn),h=p%sn;return p=ma(m,a,Math.floor(d/sn),Math.floor(c/sn),r==null?void 0:r.round)*sn+h,Fe(ca(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Lo(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(ca(ua($o(qt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function nw(t,e,a){let r=qt(t),n=dn(Oo(r,e),e);return n.compare(r)===0?t:Fe(ca(ua(n,t.timeZone,a),t.timeZone),t.calendar)}var iw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,lw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,fm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function Sa(t){let e=t.match(iw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new nt(Yt(e[1],0,9999),Yt(e[2],1,12),1);return a.day=Yt(e[3],1,a.calendar.getDaysInMonth(a)),a}function wi(t){let e=t.match(lw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date time string: "+t);let a=Yt(e[1],-9999,9999),r=new ym(a<1?"BC":"AD",a<1?-a+1:a,Yt(e[2],1,12),1,e[4]?Yt(e[4],0,23):0,e[5]?Yt(e[5],0,59):0,e[6]?Yt(e[6],0,59):0,e[7]?Yt(e[7],0,1/0)*1e3:0);return r.day=Yt(e[3],0,r.calendar.getDaysInMonth(r)),r}function Yt(t,e,a){let r=Number(t);if(ra)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function gm(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function xm(t){let e=Fe(t,new gt),a;return a=e.era==="BC"?e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function vm(t){return`${xm(t)}T${gm(t)}`}function ow(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),i=`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return n!==0&&(i+=`:${String(n).padStart(2,"0")}`),i}function sw(t){return`${vm(t)}${ow(t.offset)}[${t.timeZone}]`}function Bo(t){let e=typeof t[0]=="object"?t.shift():new gt,a;if(typeof t[0]=="string")a=t.shift();else{let l=e.getEras();a=l[l.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var dw=new WeakMap,nt=class Ju{copy(){return this.era?new Ju(this.calendar,this.era,this.year,this.month,this.day):new Ju(this.calendar,this.year,this.month,this.day)}add(e){return yi(this,e)}subtract(e){return um(this,e)}set(e){return Oo(this,e)}cycle(e,a,r){return $o(this,e,a,r)}toDate(e){return sm(this,e)}toString(){return xm(this)}compare(e){return Xc(this,e)}constructor(...e){oo(this,dw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,Ga(this)}},uw=new WeakMap,cw=class ny{copy(){return new ny(this.hour,this.minute,this.second,this.millisecond)}add(e){return pm(this,e)}subtract(e){return tw(this,e)}set(e){return dn(this,e)}cycle(e,a,r){return Lo(this,e,a,r)}toString(){return gm(this)}compare(e){return em(this,e)}constructor(e=0,a=0,r=0,n=0){oo(this,uw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,cm(this)}},mw=new WeakMap,ym=class Xu{copy(){return this.era?new Xu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return yi(this,e)}subtract(e){return um(this,e)}set(e){return Oo(dn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return $o(this,e,a,r);default:return Lo(this,e,a,r)}}toDate(e,a){return sm(this,e,a)}toString(){return vm(this)}compare(e){let a=Xc(this,e);return a===0?em(this,qt(e)):a}constructor(...e){oo(this,mw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ga(this)}},pw=new WeakMap,bm=class ec{copy(){return this.era?new ec(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ec(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return hm(this,e)}subtract(e){return aw(this,e)}set(e,a){return nw(this,e,a)}cycle(e,a,r){return rw(this,e,a,r)}toDate(){return Qb(this)}toString(){return sw(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Gb(e,this.timeZone).toDate().getTime()}constructor(...e){oo(this,pw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e),o=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.timeZone=o,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ga(this)}},vr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],hw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Di=[1867,1911,1925,1988,2018],Na=["meiji","taisho","showa","heisei","reiwa"];function wm(t){let e=vr.findIndex(([a,r,n])=>t.year=0){let[,r,n]=vr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return Na}getYearsInEra(t){let e=Na.indexOf(t.era),a=vr[e],r=vr[e+1];if(r==null)return 9999-a[0]+1;let n=r[0]-a[0];return(t.month0?["minguo",e]:["before_minguo",1-e]}var xw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Sm(ln(e.era,e.year));return new nt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Nm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Sm(km(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Nm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ji}constructor(...t){super(...t),this.identifier="roc"}};function Nm(t){let[e,a]=hi(km(t));return new nt(e,a,t.month,t.day)}var Em=1948320,_m=[0,31,62,93,124,155,186,216,246,276,306,336],vw=class{fromJulianDay(t){let e=t-Em,a=1+Math.floor((33*e+3)/12053),r=e-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-_m[n]+1;return new nt(this,a,n+1,i)}toJulianDay(t){let e=Em-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=_m[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||gr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},Wo=78,Tm=80,yw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-Wo,r=t-qa(e.era,e.year,1,1),n;r=8&&(n+=(t.month-7)*30),n+=t.day-1,n)}getDaysInMonth(t){return t.month===1&&ka(t.year+Wo)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},Ci=1948440,Rm=1948439,_t=1300,yr=1600,bw=460322;function ki(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Am(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+ki(e,r,1,1)))/29.5)+1);return new nt(t,r,n,a-ki(e,r,n,1)+1)}function Im(t){return(14+11*t)%30<11}var Uo=class{fromJulianDay(t){return Am(this,Ci,t)}toJulianDay(t){return ki(Ci,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&Im(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return Im(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},ww=class extends Uo{fromJulianDay(t){return Am(this,Rm,t)}toJulianDay(t){return ki(Rm,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},Dw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Pm,br;function Si(t){return bw+br[t-_t]}function un(t,e){let a=t-_t,r=1<<11-(e-1);return(Pm[a]&r)===0?29:30}function Mm(t,e){let a=Si(t);for(let r=1;rr)return super.fromJulianDay(t);{let n=_t-1,i=1,l=1;for(;l>0;){n++,l=e-Si(n)+1;let o=Fm(n);if(l===o){i=12;break}else if(ld;)l-=d,i++,d=un(n,i);break}}return new nt(this,n,i,e-Mm(n,i)+1)}}toJulianDay(t){return t.year<_t||t.year>yr?super.toJulianDay(t):Ci+Mm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<_t||t.year>yr?super.getDaysInMonth(t):un(t.year,t.month)}getDaysInYear(t){return t.year<_t||t.year>yr?super.getDaysInYear(t):Fm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Pm||(Pm=new Uint16Array(Uint8Array.from(atob(Dw),t=>t.charCodeAt(0)).buffer)),!br){br=new Uint32Array(yr-_t+1);let t=0;for(let e=_t;e<=yr;e++){br[e-_t]=t;for(let a=1;a<=12;a++)t+=un(e,a)}}}},Vm=347997,zm=1080,Om=24*zm,Cw=29,kw=12*zm+793,Sw=Cw*Om+kw;function Qa(t){return gr(t*7+1,19)<7}function Ni(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return gr(3*(r+1),7)<3&&(r+=1),r}function Nw(t){let e=Ni(t-1),a=Ni(t);return Ni(t+1)-a===356?2:a-e===382?1:0}function cn(t){return Ni(t)+Nw(t)}function $m(t){return cn(t+1)-cn(t)}function Ew(t){let e=$m(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ei(t,e){if(e>=6&&!Qa(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=Ew(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Qa(t)?30:0:30}var _w=class{fromJulianDay(t){let e=t-Vm,a=e*Om/Sw,r=Math.floor((19*a+234)/235)+1,n=cn(r),i=Math.floor(e-n);for(;i<1;)r--,n=cn(r),i=Math.floor(e-n);let l=1,o=0;for(;o6?t.month--:!Qa(e.year)&&Qa(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Ko=1723856,Lm=1824665,Zo=5500;function _i(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function qo(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-_i(t,a,1,1))/30);return[a,r,e+1-_i(t,a,r,1)]}function Bm(t){return Math.floor(t%4/3)}function Hm(t,e){return e%13==0?Bm(t)+5:30}var Yo=class{fromJulianDay(t){let[e,a,r]=qo(Ko,t),n="AM";return e<=0&&(n="AA",e+=Zo),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Zo),_i(Ko,e,t.month,t.day)}getDaysInMonth(t){return Hm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Bm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},Tw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Ko,t);return e+=Zo,new nt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},Rw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Lm,t),n="CE";return e<=0&&(n="BCE",e=1-e),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),_i(Lm,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Hm(e,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}};function Go(t){switch(t){case"buddhist":return new gw;case"ethiopic":return new Yo;case"ethioaa":return new Tw;case"coptic":return new Rw;case"hebrew":return new _w;case"indian":return new yw;case"islamic-civil":return new Uo;case"islamic-tbla":return new ww;case"islamic-umalqura":return new jw;case"japanese":return new fw;case"persian":return new vw;case"roc":return new xw;default:return new gt}}function Aw(t){let e=vA({usage:"search",...t}),a=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(0,l.length),l)===0),[e]),r=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(-l.length),l)===0),[e]),n=(0,x.useCallback)((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let o=0,d=l.length;for(;o+d<=i.length;o++){let u=i.slice(o,o+d);if(e.compare(l,u)===0)return!0}return!1},[e]);return(0,x.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ke=typeof document<"u"?window.visualViewport:null;function Iw(t){let{direction:e}=qe(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:o="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:p=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:f,maxHeight:v,arrowBoundaryOffset:b=0}=t,[w,D]=(0,x.useState)(null),j=[h,o,n.current,r.current,i==null?void 0:i.current,l.current,d,u,c,p,m,g,e,v,b,a],k=(0,x.useRef)(Ke==null?void 0:Ke.scale);(0,x.useEffect)(()=>{g&&(k.current=Ke==null?void 0:Ke.scale)},[g]);let N=(0,x.useCallback)(()=>{var T,P;if(h===!1||!g||!n.current||!r.current||!c||(Ke==null?void 0:Ke.scale)!==k.current)return;let C=null;if(l.current&&l.current.contains(document.activeElement)){let R=(T=document.activeElement)==null?void 0:T.getBoundingClientRect(),F=l.current.getBoundingClientRect();C={type:"top",offset:((R==null?void 0:R.top)??0)-F.top},C.offset>F.height/2&&(C.type="bottom",C.offset=((R==null?void 0:R.bottom)??0)-F.bottom)}let _=n.current;!v&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Ib({placement:Mw(o,e),overlayNode:n.current,targetNode:r.current,scrollNode:l.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:p,crossOffset:m,maxHeight:v,arrowSize:a??(i!=null&&i.current?_o(i.current,!0).width:0),arrowBoundaryOffset:b});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(R=>_.style[R]=E.position[R]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&l.current){let R=document.activeElement.getBoundingClientRect(),F=l.current.getBoundingClientRect(),I=R[C.type]-F[C.type];l.current.scrollTop+=I-C.offset}D(E)}},j);Da(N,j),Pw(N),ci({ref:n,onResize:N}),ci({ref:r,onResize:N});let S=(0,x.useRef)(!1);Da(()=>{let C,_=()=>{S.current=!0,clearTimeout(C),C=setTimeout(()=>{S.current=!1},500),N()},E=()=>{S.current&&_()};return Ke==null||Ke.addEventListener("resize",_),Ke==null||Ke.addEventListener("scroll",E),()=>{Ke==null||Ke.removeEventListener("resize",_),Ke==null||Ke.removeEventListener("scroll",E)}},[N]);let y=(0,x.useCallback)(()=>{S.current||(f==null||f())},[f,S]);return Fb({triggerRef:r,isOpen:g,onClose:f&&y}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(w==null?void 0:w.maxHeight)??"100vh"}},placement:(w==null?void 0:w.placement)??null,triggerAnchorPoint:(w==null?void 0:w.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:N}}function Pw(t){Da(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Fw({children:t}){let e=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(DA.Provider,{value:e},t)}function Vw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=zv(d=>{a&&Wm(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),o=zv(d=>{a&&a(d)});(0,x.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=wA(u);if(typeof PointerEvent<"u"){let p=m=>{d.isPointerDown&&Wm(m,e)&&o(m),d.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",p,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",p,!0)}}},[e,r,l,o])}function Wm(t,e){if(t.button>0)return!1;if(t.target){let a=t.target.ownerDocument;if(!a||!a.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}var Gt=[];function zw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=t;(0,x.useEffect)(()=>{if(n&&!Gt.includes(e))return Gt.push(e),()=>{let g=Gt.indexOf(e);g>=0&&Gt.splice(g,1)}},[n,e]);let d=()=>{Gt[Gt.length-1]===e&&a&&a()},u=g=>{(!o||o(g.target))&&Gt[Gt.length-1]===e&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!o||o(g.target))&&(Gt[Gt.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d())},p=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),d())};Vw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=Ul({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||xA(g.relatedTarget)||(!o||o(g.relatedTarget))&&(a==null||a())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:p,...m},underlayProps:{onPointerDown:h}}}var mn=typeof document<"u"&&window.visualViewport,Ti=0,Um;function Ow(t={}){let{isDisabled:e}=t;Da(()=>{if(!e)return Ti++,Ti===1&&(Um=Mv()?Lw():$w()),()=>{Ti--,Ti===0&&Um()}},[e])}function $w(){let t=window.innerWidth-document.documentElement.clientWidth;return Fv(t>0&&("scrollbarGutter"in document.documentElement.style?Qo(document.documentElement,"scrollbarGutter","stable"):Qo(document.documentElement,"paddingRight",`${t}px`)),Qo(document.documentElement,"overflow","hidden"))}function Lw(){let t,e=!1,a=d=>{let u=d.target;t=fA(u)?u:no(u,!0),e=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(e=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart{if(!(d.touches.length===2||e)){if(!t||t===document.documentElement||t===document.body){d.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&d.preventDefault()}},i=d=>{var p,m;let u=d.target,c=d.relatedTarget;c&&Ku(c)?(c.focus({preventScroll:!0}),Km(c,Ku(u))):c||((m=(p=u.parentElement)==null?void 0:p.closest("[tabindex]"))==null||m.focus({preventScroll:!0}))},l=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=document.activeElement!=null&&Ku(document.activeElement);l.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Km(this,u)};let o=Fv(Jo(document,"touchstart",a,{passive:!1,capture:!0}),Jo(document,"touchmove",n,{passive:!1,capture:!0}),Jo(document,"blur",i,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=l}}function Qo(t,e,a){let r=t.style[e];return t.style[e]=a,()=>{t.style[e]=r}}function Jo(t,e,a,r){return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}}function Km(t,e){e||!mn?Zm(t):mn.addEventListener("resize",()=>Zm(t),{once:!0})}function Zm(t){let e=document.scrollingElement||document.documentElement,a=t;for(;a&&a!==e;){let r=no(a);if(r!==document.documentElement&&r!==document.body&&r!==a){let n=r.getBoundingClientRect(),i=a.getBoundingClientRect();if(i.topn.top+a.clientHeight){let l=n.bottom;mn&&(l=Math.min(l,mn.offsetTop+mn.height));let o=i.top-n.top-((l-n.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}a=r.parentElement}}var Bw=(0,x.createContext)({});function Hw(){return(0,x.useContext)(Bw)??{}}var qm={};qm={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Ym={};Ym={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Gm={};Gm={dismiss:"Odstranit"};var Qm={};Qm={dismiss:"Luk"};var Jm={};Jm={dismiss:"Schlie\xDFen"};var Xm={};Xm={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var ep={};ep={dismiss:"Dismiss"};var tp={};tp={dismiss:"Descartar"};var ap={};ap={dismiss:"L\xF5peta"};var rp={};rp={dismiss:"Hylk\xE4\xE4"};var np={};np={dismiss:"Rejeter"};var ip={};ip={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var lp={};lp={dismiss:"Odbaci"};var op={};op={dismiss:"Elutas\xEDt\xE1s"};var sp={};sp={dismiss:"Ignora"};var dp={};dp={dismiss:"\u9589\u3058\u308B"};var up={};up={dismiss:"\uBB34\uC2DC"};var cp={};cp={dismiss:"Atmesti"};var mp={};mp={dismiss:"Ner\u0101d\u012Bt"};var pp={};pp={dismiss:"Lukk"};var hp={};hp={dismiss:"Negeren"};var fp={};fp={dismiss:"Zignoruj"};var gp={};gp={dismiss:"Descartar"};var xp={};xp={dismiss:"Dispensar"};var vp={};vp={dismiss:"Revocare"};var yp={};yp={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var bp={};bp={dismiss:"Zru\u0161i\u0165"};var wp={};wp={dismiss:"Opusti"};var Dp={};Dp={dismiss:"Odbaci"};var jp={};jp={dismiss:"Avvisa"};var Cp={};Cp={dismiss:"Kapat"};var kp={};kp={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var Sp={};Sp={dismiss:"\u53D6\u6D88"};var Np={};Np={dismiss:"\u95DC\u9589"};var Ep={};Ep={"ar-AE":qm,"bg-BG":Ym,"cs-CZ":Gm,"da-DK":Qm,"de-DE":Jm,"el-GR":Xm,"en-US":ep,"es-ES":tp,"et-EE":ap,"fi-FI":rp,"fr-FR":np,"he-IL":ip,"hr-HR":lp,"hu-HU":op,"it-IT":sp,"ja-JP":dp,"ko-KR":up,"lt-LT":cp,"lv-LV":mp,"nb-NO":pp,"nl-NL":hp,"pl-PL":fp,"pt-BR":gp,"pt-PT":xp,"ro-RO":vp,"ru-RU":yp,"sk-SK":bp,"sl-SI":wp,"sr-SP":Dp,"sv-SE":jp,"tr-TR":Cp,"uk-UA":kp,"zh-CN":Sp,"zh-TW":Np};function Ww(t){return t&&t.__esModule?t.default:t}function _p(t){let{onDismiss:e,...a}=t,r=Yl(a,Ha(Ww(Ep),"@react-aria/overlays").format("dismiss")),n=()=>{e&&e()};return x.createElement(Jn,null,x.createElement("button",{...r,tabIndex:-1,onClick:n,style:{width:1,height:1}}))}function Uw(t,e){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...d}=t,u=d.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:p}=zw({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},n??r),{overlayProps:m,arrowProps:h,placement:g,triggerAnchorPoint:f}=Iw({...d,targetRef:a,overlayRef:r,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Ow({isDisabled:i||!e.isOpen}),(0,x.useEffect)(()=>{if(e.isOpen&&r.current)return i?WT((n==null?void 0:n.current)??r.current):HT([(n==null?void 0:n.current)??r.current],{shouldUseInert:!0})},[i,e.isOpen,r,n]),{popoverProps:Xe(c,m),arrowProps:h,underlayProps:p,placement:g,triggerAnchorPoint:f}}var Kw=xa(Wn(),1),Tp=x.createContext(null);function Rp(t){let e=CA(),{portalContainer:a=e?null:document.body,isExiting:r}=t,[n,i]=(0,x.useState)(!1),l=(0,x.useMemo)(()=>({contain:n,setContain:i}),[n,i]),{getContainer:o}=Hw();if(!t.portalContainer&&o&&(a=o()),!a)return null;let d=t.children;return t.disableFocusManagement||(d=x.createElement(hA,{restoreFocus:!0,contain:(t.shouldContainFocus||n)&&!r},d)),d=x.createElement(Tp.Provider,{value:l},x.createElement(Fw,null,d)),Kw.createPortal(d,a)}function Zw(){var e;let t=(e=(0,x.useContext)(Tp))==null?void 0:e.setContain;Da(()=>{t==null||t(!0)},[t])}var Ap={};Ap={dateRange:t=>`${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,dateSelected:t=>`${t.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date}`,todayDateSelected:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date} \u0645\u062D\u062F\u062F`};var Ip={};Ip={dateRange:t=>`${t.startDate} \u0434\u043E ${t.endDate}`,dateSelected:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:t=>`\u0414\u043D\u0435\u0441, ${t.date}`,todayDateSelected:t=>`\u0414\u043D\u0435\u0441, ${t.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`};var Pp={};Pp={dateRange:t=>`${t.startDate} a\u017E ${t.endDate}`,dateSelected:t=>`Vybr\xE1no ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:t=>`Dnes, ${t.date}`,todayDateSelected:t=>`Dnes, vybr\xE1no ${t.date}`};var Mp={};Mp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Fp={};Fp={dateRange:t=>`${t.startDate} bis ${t.endDate}`,dateSelected:t=>`${t.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:t=>`Heute, ${t.date}`,todayDateSelected:t=>`Heute, ${t.date} ausgew\xE4hlt`};var Vp={};Vp={dateRange:t=>`${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,dateSelected:t=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${t.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${t.date}`,todayDateSelected:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${t.date}`};var zp={};zp={previous:"Previous",next:"Next",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.dateRange}`,todayDate:t=>`Today, ${t.date}`,todayDateSelected:t=>`Today, ${t.date} selected`,dateSelected:t=>`${t.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:t=>`${t.startDate} to ${t.endDate}`};var Op={};Op={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo seleccionado: ${t.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:t=>`Hoy, ${t.date}`,todayDateSelected:t=>`Hoy, ${t.date} seleccionado`};var $p={};$p={dateRange:t=>`${t.startDate} kuni ${t.endDate}`,dateSelected:t=>`${t.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:t=>`T\xE4na, ${t.date}`,todayDateSelected:t=>`T\xE4na, ${t.date} valitud`};var Lp={};Lp={dateRange:t=>`${t.startDate} \u2013 ${t.endDate}`,dateSelected:t=>`${t.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:t=>`T\xE4n\xE4\xE4n, ${t.date}`,todayDateSelected:t=>`T\xE4n\xE4\xE4n, ${t.date} valittu`};var Bp={};Bp={dateRange:t=>`${t.startDate} \xE0 ${t.endDate}`,dateSelected:t=>`${t.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:t=>`Aujourd'hui, ${t.date}`,todayDateSelected:t=>`Aujourd\u2019hui, ${t.date} s\xE9lectionn\xE9`};var Hp={};Hp={dateRange:t=>`${t.startDate} \u05E2\u05D3 ${t.endDate}`,dateSelected:t=>`${t.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date}`,todayDateSelected:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date} \u05E0\u05D1\u05D7\u05E8`};var Wp={};Wp={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, odabran ${t.date}`};var Up={};Up={dateRange:t=>`${t.startDate}\u2013${t.endDate}`,dateSelected:t=>`${t.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:t=>`Ma, ${t.date}`,todayDateSelected:t=>`Ma, ${t.date} kijel\xF6lve`};var Kp={};Kp={dateRange:t=>`Da ${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: ${t.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:t=>`Oggi, ${t.date}`,todayDateSelected:t=>`Oggi, ${t.date} selezionata`};var Zp={};Zp={dateRange:t=>`${t.startDate} \u304B\u3089 ${t.endDate}`,dateSelected:t=>`${t.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:t=>`\u672C\u65E5\u3001${t.date}`,todayDateSelected:t=>`\u672C\u65E5\u3001${t.date} \u3092\u9078\u629E`};var qp={};qp={dateRange:t=>`${t.startDate} ~ ${t.endDate}`,dateSelected:t=>`${t.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:t=>`\uC624\uB298, ${t.date}`,todayDateSelected:t=>`\uC624\uB298, ${t.date} \uC120\uD0DD\uB428`};var Yp={};Yp={dateRange:t=>`Nuo ${t.startDate} iki ${t.endDate}`,dateSelected:t=>`Pasirinkta ${t.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: ${t.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:t=>`\u0160iandien, ${t.date}`,todayDateSelected:t=>`\u0160iandien, pasirinkta ${t.date}`};var Gp={};Gp={dateRange:t=>`No ${t.startDate} l\u012Bdz ${t.endDate}`,dateSelected:t=>`Atlas\u012Bts: ${t.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: ${t.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:t=>`\u0160odien, ${t.date}`,todayDateSelected:t=>`Atlas\u012Bta \u0161odiena, ${t.date}`};var Qp={};Qp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Jp={};Jp={dateRange:t=>`${t.startDate} tot ${t.endDate}`,dateSelected:t=>`${t.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:t=>`Vandaag, ${t.date}`,todayDateSelected:t=>`Vandaag, ${t.date} geselecteerd`};var Xp={};Xp={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`Wybrano ${t.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:t=>`Dzisiaj, ${t.date}`,todayDateSelected:t=>`Dzisiaj wybrano ${t.date}`};var eh={};eh={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var th={};th={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var ah={};ah={dateRange:t=>`De la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,dateSelected:t=>`${t.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: ${t.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:t=>`Ast\u0103zi, ${t.date}`,todayDateSelected:t=>`Azi, ${t.date} selectat\u0103`};var rh={};rh={dateRange:t=>`\u0421 ${t.startDate} \u043F\u043E ${t.endDate}`,dateSelected:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${t.date}`,todayDateSelected:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`};var nh={};nh={dateRange:t=>`Od ${t.startDate} do ${t.endDate}`,dateSelected:t=>`Vybrat\xFD d\xE1tum ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:t=>`Dnes ${t.date}`,todayDateSelected:t=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${t.date}`};var ih={};ih={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:t=>`Danes, ${t.date}`,todayDateSelected:t=>`Danes, ${t.date} izbrano`};var lh={};lh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani period: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, izabran ${t.date}`};var oh={};oh={dateRange:t=>`${t.startDate} till ${t.endDate}`,dateSelected:t=>`${t.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:t=>`Idag, ${t.date}`,todayDateSelected:t=>`Idag, ${t.date} har valts`};var sh={};sh={dateRange:t=>`${t.startDate} - ${t.endDate}`,dateSelected:t=>`${t.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:t=>`Bug\xFCn, ${t.date}`,todayDateSelected:t=>`Bug\xFCn, ${t.date} se\xE7ildi`};var dh={};dh={dateRange:t=>`${t.startDate} \u2014 ${t.endDate}`,dateSelected:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${t.date}`,todayDateSelected:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`};var uh={};uh={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9009\u62E9 ${t.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:t=>`\u4ECA\u5929\uFF0C\u5373 ${t.date}`,todayDateSelected:t=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${t.date}`};var ch={};ch={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9078\u53D6 ${t.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:t=>`\u4ECA\u5929\uFF0C${t.date}`,todayDateSelected:t=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${t.date}`};var pn={};pn={"ar-AE":Ap,"bg-BG":Ip,"cs-CZ":Pp,"da-DK":Mp,"de-DE":Fp,"el-GR":Vp,"en-US":zp,"es-ES":Op,"et-EE":$p,"fi-FI":Lp,"fr-FR":Bp,"he-IL":Hp,"hr-HR":Wp,"hu-HU":Up,"it-IT":Kp,"ja-JP":Zp,"ko-KR":qp,"lt-LT":Yp,"lv-LV":Gp,"nb-NO":Qp,"nl-NL":Jp,"pl-PL":Xp,"pt-BR":eh,"pt-PT":th,"ro-RO":ah,"ru-RU":rh,"sk-SK":nh,"sl-SI":ih,"sr-SP":lh,"sv-SE":oh,"tr-TR":sh,"uk-UA":dh,"zh-CN":uh,"zh-TW":ch};function mh(t){return t&&t.__esModule?t.default:t}var Xo=new WeakMap;function hn(t){return(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC"?"short":void 0}function qw(t){let e=Ha(mh(pn),"@react-aria/calendar"),a,r;"highlightedRange"in t?{start:a,end:r}=t.highlightedRange||{}:a=r=t.value??void 0;let n=ia({weekday:"long",month:"long",year:"numeric",day:"numeric",era:hn(a)||hn(r),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return(0,x.useMemo)(()=>{if(!i&&a&&r)if(Ue(a,r)){let l=n.format(a.toDate(t.timeZone));return e.format("selectedDateDescription",{date:l})}else{let l=ts(n,e,a,r,t.timeZone);return e.format("selectedRangeDescription",{dateRange:l})}return""},[a,r,i,t.timeZone,e,n])}function es(t,e,a,r){let n=Ha(mh(pn),"@react-aria/calendar"),i=hn(t)||hn(e),l=ia({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),o=ia({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return(0,x.useMemo)(()=>{if(Ue(t,Ya(t))){let d=t,u=e;if(t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),Ue(e,vi(t)))return l.format(d.toDate(a));if(Ue(e,vi(e)))return r?ts(l,n,d,u,a):l.formatRange(d.toDate(a),u.toDate(a))}return r?ts(o,n,t,e,a):o.formatRange(t.toDate(a),e.toDate(a))},[t,e,l,o,n,a,r])}function ts(t,e,a,r,n){let i=t.formatRangeToParts(a.toDate(n),r.toDate(n)),l=-1;for(let u=0;ul&&(d+=i[u].value);return e.format("dateRange",{startDate:o,endDate:d})}function Yw(t){return t&&t.__esModule?t.default:t}function ph(t,e){let a=Ha(Yw(pn),"@react-aria/calendar"),r=st(t),n=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!1),i=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!0);Iv(()=>{e.isFocused||Dv(i)},[i]);let l=qw(e);Iv(()=>{l&&Dv(l,"polite",4e3)},[l]);let o=Vv([!!t.errorMessage,t.isInvalid,t.validationState]);Xo.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[d,u]=(0,x.useState)(!1),c=t.isDisabled||e.isNextVisibleRangeInvalid();c&&d&&(u(!1),e.setFocused(!0));let[p,m]=(0,x.useState)(!1),h=t.isDisabled||e.isPreviousVisibleRangeInvalid();return h&&p&&(m(!1),e.setFocused(!0)),{calendarProps:Xe(r,Yl({id:t.id,"aria-label":[t["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":t["aria-labelledby"]}),{role:"application","aria-details":t["aria-details"]||void 0,"aria-describedby":t["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>e.focusNextPage(),"aria-label":a.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>e.focusPreviousPage(),"aria-label":a.format("previous"),isDisabled:h,onFocusChange:m},errorMessageProps:{id:o},title:n}}function Gw(t,e){return ph(t,e)}function Qw(t,e,a){let r=ph(t,e),n=(0,x.useRef)(!1),i=(0,x.useRef)(typeof window<"u"?window:null);return Kr(i,"pointerdown",l=>{n.current=l.width===0&&l.height===0}),Kr(i,"pointerup",l=>{if(n.current){n.current=!1;return}if(e.setDragging(!1),!e.anchorDate)return;let o=l.target;a.current&&a.current.contains(document.activeElement)&&(!a.current.contains(o)||!o.closest('button, [role="button"]'))&&e.selectFocusedDate()}),r.calendarProps.onBlur=l=>{a.current&&(!l.relatedTarget||!a.current.contains(l.relatedTarget))&&e.anchorDate&&e.selectFocusedDate()},Kr(a,"touchmove",l=>{e.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function Jw(t,e){let{startDate:a=e.visibleRange.start,endDate:r=e.visibleRange.end,firstDayOfWeek:n}=t,{direction:i}=qe(),l=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),e.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),e.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),e.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),e.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusNextDay():e.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusPreviousDay():e.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),e.focusNextRow();break;case"Escape":"setAnchorDate"in e&&(f.preventDefault(),e.setAnchorDate(null));break}},o=es(a,r,e.timeZone,!0),{ariaLabel:d,ariaLabelledBy:u}=Xo.get(e),c=Yl({"aria-label":[d,o].filter(Boolean).join(", "),"aria-labelledby":u}),p=ia({weekday:t.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:m}=qe(),h=(0,x.useMemo)(()=>{let f=on(gi(e.timeZone),m,n);return[...Array(7).keys()].map(v=>{let b=f.add({days:v}).toDate(e.timeZone);return p.format(b)})},[m,e.timeZone,p,n]),g=Zb(a,m,n);return{gridProps:Xe(c,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:l,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:g}}function Xw(t){return t&&t.__esModule?t.default:t}function e2(t,e,a){let{date:r,isDisabled:n}=t,{errorMessageId:i,selectedDateDescription:l}=Xo.get(e),o=Ha(Xw(pn),"@react-aria/calendar"),d=ia({weekday:"long",day:"numeric",month:"long",year:"numeric",era:hn(r),timeZone:e.timeZone}),u=e.isSelected(r),c=e.isCellFocused(r)&&!t.isOutsideMonth;n||(n=e.isCellDisabled(r));let p=e.isCellUnavailable(r),m=!n&&!p,h=e.isValueInvalid&&!!("highlightedRange"in e?!e.anchorDate&&e.highlightedRange&&r.compare(e.highlightedRange.start)>=0&&r.compare(e.highlightedRange.end)<=0:e.value&&Ue(e.value,r));h&&(u=!0),r=kA(r,To);let g=(0,x.useMemo)(()=>r.toDate(e.timeZone),[r,e.timeZone]),f=Qc(r,e.timeZone),v=(0,x.useMemo)(()=>{let E="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(Ue(r,e.value.start)||Ue(r,e.value.end))&&(E=l+", "),E+=d.format(g),f?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),e.minValue&&Ue(r,e.minValue)?E+=", "+o.format("minimumDate"):e.maxValue&&Ue(r,e.maxValue)&&(E+=", "+o.format("maximumDate")),E},[d,g,o,u,f,r,e,l]),b="";"anchorDate"in e&&c&&!e.isReadOnly&&m&&(b=e.anchorDate?o.format("finishRangeSelectionPrompt"):o.format("startRangeSelectionPrompt"));let w=io(b),D=(0,x.useRef)(!1),j=(0,x.useRef)(!1),k=(0,x.useRef)(void 0),{pressProps:N,isPressed:S}=Ov({shouldCancelOnPointerExit:"anchorDate"in e&&!!e.anchorDate,preventFocusOnPress:!0,isDisabled:!m||e.isReadOnly,onPressStart(E){if(e.isReadOnly){e.setFocusedDate(r);return}if("highlightedRange"in e&&!e.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(e.highlightedRange&&!h){if(Ue(r,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}else if(Ue(r,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}}let T=()=>{e.setDragging(!0),k.current=void 0,e.selectDate(r),e.setFocusedDate(r),D.current=!0};E.pointerType==="touch"?k.current=setTimeout(T,200):T()}},onPressEnd(){j.current=!1,D.current=!1,clearTimeout(k.current),k.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(r),e.setFocusedDate(r))},onPressUp(E){if(!e.isReadOnly&&("anchorDate"in e&&k.current&&(e.selectDate(r),e.setFocusedDate(r)),"anchorDate"in e))if(j.current)e.setAnchorDate(r);else if(e.anchorDate&&!D.current)e.selectDate(r),e.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!e.anchorDate){e.selectDate(r);let T=r.add({days:1});e.isInvalid(T)&&(T=r.subtract({days:1})),e.isInvalid(T)||e.setFocusedDate(T)}else E.pointerType==="virtual"&&(e.selectDate(r),e.setFocusedDate(r))}}),y;n||(y=Ue(r,e.focusedDate)?0:-1),(0,x.useEffect)(()=>{c&&a.current&&(bA(a.current),yR()!=="pointer"&&document.activeElement===a.current&&Pv(a.current,{containingElement:no(a.current)}))},[c,a]);let C=ia({day:"numeric",timeZone:e.timeZone,calendar:r.calendar.identifier}),_=(0,x.useMemo)(()=>C.formatToParts(g).find(E=>E.type==="day").value,[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":u||void 0,"aria-invalid":h||void 0},buttonProps:Xe(N,{onFocus(){n||e.setFocusedDate(r)},tabIndex:y,role:"button","aria-disabled":!m||void 0,"aria-label":v,"aria-invalid":h||void 0,"aria-describedby":[h?i:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in e&&(E.pointerType!=="touch"||e.isDragging)&&m&&e.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:S,isFocused:c,isSelected:u,isDisabled:n,isUnavailable:p,isOutsideVisibleRange:r.compare(e.visibleRange.start)<0||r.compare(e.visibleRange.end)>0,isInvalid:h,formattedDate:_}}var hh={};hh={calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,selectedTimeDescription:t=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"};var fh={};fh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u0434\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${t.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var gh={};gh={calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.startDate} a\u017E ${t.endDate}`,selectedTimeDescription:t=>`Vybran\xFD \u010Das: ${t.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"};var xh={};xh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tidspunkt: ${t.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"};var vh={};vh={calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.startDate} bis ${t.endDate}`,selectedTimeDescription:t=>`Ausgew\xE4hlte Zeit: ${t.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yh={};yh={calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,selectedTimeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${t.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"};var bh={};bh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.startDate} to ${t.endDate}`,selectedTimeDescription:t=>`Selected Time: ${t.time}`};var wh={};wh={calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Rango seleccionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora seleccionada: ${t.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"};var Dh={};Dh={calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.startDate} kuni ${t.endDate}`,selectedTimeDescription:t=>`Valitud aeg: ${t.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"};var jh={};jh={calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.startDate} \u2013 ${t.endDate}`,selectedTimeDescription:t=>`Valittu aika: ${t.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"};var Ch={};Ch={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.startDate} au ${t.endDate}`,selectedTimeDescription:t=>`Heure choisie\xA0: ${t.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"};var kh={};kh={calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.startDate} \u05E2\u05D3 ${t.endDate}`,selectedTimeDescription:t=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${t.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"};var Sh={};Sh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Odabrano vrijeme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Nh={};Nh={calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.startDate}\u2013${t.endDate}`,selectedTimeDescription:t=>`Kijel\xF6lt id\u0151: ${t.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"};var Eh={};Eh={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: da ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Ora selezionata: ${t.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var _h={};_h={calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.startDate} \u304B\u3089 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${t.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"};var Th={};Th={calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.startDate} ~ ${t.endDate}`,selectedTimeDescription:t=>`\uC120\uD0DD \uC2DC\uAC04: ${t.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"};var Rh={};Rh={calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: nuo ${t.startDate} iki ${t.endDate}`,selectedTimeDescription:t=>`Pasirinktas laikas: ${t.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"};var Ah={};Ah={calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: no ${t.startDate} l\u012Bdz ${t.endDate}`,selectedTimeDescription:t=>`Atlas\u012Btais laiks: ${t.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"};var Ih={};Ih={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tid: ${t.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"};var Ph={};Ph={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.startDate} tot ${t.endDate}`,selectedTimeDescription:t=>`Geselecteerde tijd: ${t.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Mh={};Mh={calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Wybrany czas: ${t.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"};var Fh={};Fh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var Vh={};Vh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var zh={};zh={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: de la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,selectedTimeDescription:t=>`Ora selectat\u0103: ${t.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"};var Oh={};Oh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${t.startDate} \u043F\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"};var $h={};$h={calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Vybrat\xFD \u010Das: ${t.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"};var Lh={};Lh={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izbrani \u010Das: ${t.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"};var Bh={};Bh={calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani opseg: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izabrano vreme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var Hh={};Hh={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.startDate} till ${t.endDate}`,selectedTimeDescription:t=>`Vald tid: ${t.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"};var Wh={};Wh={calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.startDate} - ${t.endDate}`,selectedTimeDescription:t=>`Se\xE7ilen Zaman: ${t.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"};var Uh={};Uh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u2014 ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"};var Kh={};Kh={calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${t.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var Zh={};Zh={calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${t.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var fn={};fn={"ar-AE":hh,"bg-BG":fh,"cs-CZ":gh,"da-DK":xh,"de-DE":vh,"el-GR":yh,"en-US":bh,"es-ES":wh,"et-EE":Dh,"fi-FI":jh,"fr-FR":Ch,"he-IL":kh,"hr-HR":Sh,"hu-HU":Nh,"it-IT":Eh,"ja-JP":_h,"ko-KR":Th,"lt-LT":Rh,"lv-LV":Ah,"nb-NO":Ih,"nl-NL":Ph,"pl-PL":Mh,"pt-BR":Fh,"pt-PT":Vh,"ro-RO":zh,"ru-RU":Oh,"sk-SK":$h,"sl-SI":Lh,"sr-SP":Bh,"sv-SE":Hh,"tr-TR":Wh,"uk-UA":Uh,"zh-CN":Kh,"zh-TW":Zh};function as(t,e,a){let{direction:r}=qe(),n=(0,x.useMemo)(()=>ro(e),[e]),i=d=>{if(d.currentTarget.contains(d.target)&&(d.altKey&&(d.key==="ArrowDown"||d.key==="ArrowUp")&&"setOpen"in t&&(d.preventDefault(),d.stopPropagation(),t.setOpen(!0)),!a))switch(d.key){case"ArrowLeft":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=qh(e.current,u.getBoundingClientRect().left,-1);c&&c.focus()}}else n.focusPrevious();break;case"ArrowRight":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=qh(e.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else n.focusNext();break}},l=()=>{var c;if(!e.current)return;let d=(c=window.event)==null?void 0:c.target,u=Av(e.current,{tabbable:!0});if(d&&(d=(u.currentNode=d,u.previousNode())),!d){let p;do p=u.lastChild(),p&&(d=p);while(p)}for(;d!=null&&d.hasAttribute("data-placeholder");){let p=u.previousNode();if(p&&p.hasAttribute("data-placeholder"))d=p;else break}d&&d.focus()},{pressProps:o}=Ov({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&l()},onPress(d){(d.pointerType==="touch"||d.pointerType==="pen")&&l()}});return Xe(o,{onKeyDown:i})}function qh(t,e,a){let r=Av(t,{tabbable:!0}),n=r.nextNode(),i=null,l=1/0;for(;n;){let o=n.getBoundingClientRect().left-e,d=Math.abs(o);Math.sign(o)===a&&d{var _;e.confirmPlaceholder(),e.value!==c.current&&e.commitValidation(),(_=t.onBlur)==null||_.call(t,C)},onFocusWithinChange:t.onFocusChange}),m=Ha(t2(fn),"@react-aria/datepicker"),h=e.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=e.maxGranularity==="hour"?"time":"date",f=io(e.value?m.format(h,{[g]:e.formatValue({month:"long"})}):""),v=t[gn]==="presentation"?o["aria-describedby"]:[f["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=t[Gh],w=(0,x.useMemo)(()=>b||ro(a),[b,a]),D=as(e,a,t[gn]==="presentation");Yh.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:[l.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:w});let j=(0,x.useRef)(t.autoFocus),k;k=t[gn]==="presentation"?{role:"presentation"}:Xe(o,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":v}),(0,x.useEffect)(()=>{j.current&&w.focusFirst(),j.current=!1},[w]),CR(t.inputRef,e.defaultValue,e.setValue),TR({...t,focus(){w.focusFirst()}},e,t.inputRef);let N={type:"hidden",name:t.name,form:t.form,value:((y=e.value)==null?void 0:y.toString())||"",disabled:t.isDisabled};t.validationBehavior==="native"&&(N.type="text",N.hidden=!0,N.required=t.isRequired,N.onChange=()=>{});let S=st(t);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:Xe(S,k,D,p,{onKeyDown(C){t.onKeyDown&&t.onKeyDown(C)},onKeyUp(C){t.onKeyUp&&t.onKeyUp(C)},style:{unicodeBidi:"isolate"}}),inputProps:N,descriptionProps:d,errorMessageProps:u,isInvalid:r,validationErrors:n,validationDetails:i}}function r2(t){return t&&t.__esModule?t.default:t}function n2(t,e,a){let r=Yr(),n=Yr(),i=Yr(),l=Ha(r2(fn),"@react-aria/datepicker"),{isInvalid:o,validationErrors:d,validationDetails:u}=e.displayValidation,{labelProps:c,fieldProps:p,descriptionProps:m,errorMessageProps:h}=Ru({...t,labelElementType:"span",isInvalid:o,errorMessage:t.errorMessage||d}),g=as(e,a),f=p["aria-labelledby"]||p.id,{locale:v}=qe(),b=e.formatValue(v,{month:"long"}),w=io(b?l.format("selectedDateDescription",{date:b}):""),D=[w["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=st(t),k=(0,x.useMemo)(()=>ro(a),[a]),N=(0,x.useRef)(!1),{focusWithinProps:S}=Ul({...t,isDisabled:e.isOpen,onBlurWithin:y=>{var E;if(!((E=document.getElementById(n))!=null&&E.contains(y.relatedTarget))){var C,_;N.current=!1,(C=t.onBlur)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!1)}},onFocusWithin:y=>{if(!N.current){var C,_;N.current=!0,(C=t.onFocus)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!0)}}});return{groupProps:Xe(j,g,p,w,S,{role:"group","aria-disabled":t.isDisabled||null,"aria-labelledby":f,"aria-describedby":D,onKeyDown(y){e.isOpen||t.onKeyDown&&t.onKeyDown(y)},onKeyUp(y){e.isOpen||t.onKeyUp&&t.onKeyUp(y)}}),labelProps:{...c,onClick:()=>{k.focusFirst()}},fieldProps:{...p,id:i,[gn]:"presentation","aria-describedby":D,value:e.value,defaultValue:e.defaultValue,onChange:e.setValue,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,granularity:t.granularity,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior,[Au]:e,autoFocus:t.autoFocus,name:t.name,form:t.form},descriptionProps:m,errorMessageProps:h,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${r} ${f}`,"aria-describedby":D,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:n,"aria-labelledby":`${r} ${f}`},calendarProps:{autoFocus:!0,value:e.dateValue,onChange:e.setDateValue,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,defaultFocusedValue:e.dateValue?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:o,validationErrors:d,validationDetails:u}}function i2(t){return t&&t.__esModule?t.default:t}function l2(){let{locale:t}=qe(),e=bR(i2(fn),"@react-aria/datepicker");return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new o2(t,e)}},[t,e])}var o2=class{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,e){this.locale=t,this.dictionary=e}};function s2(t,e,a){let r=(0,x.useRef)(""),{locale:n,direction:i}=qe(),l=l2(),{ariaLabel:o,ariaLabelledBy:d,ariaDescribedBy:u,focusManager:c}=Yh.get(e),p=t.isPlaceholder?"":t.text,m=(0,x.useMemo)(()=>e.dateFormatter.resolvedOptions(),[e.dateFormatter]),h=ia({month:"long",timeZone:m.timeZone}),g=ia({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(t.type==="month"&&!t.isPlaceholder){let A=h.format(e.dateValue);p=A===p?A:`${p} \u2013 ${A}`}else t.type==="hour"&&!t.isPlaceholder&&(p=g.format(e.dateValue));let{spinButtonProps:f}=wR({value:t.value,textValue:p,minValue:t.minValue,maxValue:t.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly||!t.isEditable,isRequired:e.isRequired,onIncrement:()=>{r.current="",e.increment(t.type)},onDecrement:()=>{r.current="",e.decrement(t.type)},onIncrementPage:()=>{r.current="",e.incrementPage(t.type)},onDecrementPage:()=>{r.current="",e.decrementPage(t.type)},onIncrementToMax:()=>{r.current="",t.maxValue!==void 0&&e.setSegment(t.type,t.maxValue)},onDecrementToMin:()=>{r.current="",t.minValue!==void 0&&e.setSegment(t.type,t.minValue)}}),v=(0,x.useMemo)(()=>new vR(n,{maximumFractionDigits:0}),[n]),b=()=>{if(t.text===t.placeholder&&c.focusPrevious(),v.isValidPartialNumber(t.text)&&!e.isReadOnly&&!t.isPlaceholder){let A=t.text.slice(0,-1),O=v.parse(A);A=O===0?"":A,A.length===0||O===0?e.clearSegment(t.type):e.setSegment(t.type,O),r.current=A}else t.type==="dayPeriod"&&e.clearSegment(t.type)},w=A=>{if(A.key==="a"&&(yA()?A.metaKey:A.ctrlKey)&&A.preventDefault(),!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey))switch(A.key){case"Backspace":case"Delete":A.preventDefault(),A.stopPropagation(),b();break}},{startsWith:D}=Aw({sensitivity:"base"}),j=ia({hour:"numeric",hour12:!0}),k=(0,x.useMemo)(()=>{let A=new Date;return A.setHours(0),j.formatToParts(A).find(O=>O.type==="dayPeriod").value},[j]),N=(0,x.useMemo)(()=>{let A=new Date;return A.setHours(12),j.formatToParts(A).find(O=>O.type==="dayPeriod").value},[j]),S=ia({year:"numeric",era:"narrow",timeZone:"UTC"}),y=(0,x.useMemo)(()=>{if(t.type!=="era")return[];let A=Fe(new nt(1,1,1),e.calendar),O=e.calendar.getEras().map(L=>{let G=A.set({year:1,month:1,day:1,era:L}).toDate("UTC");return{era:L,formatted:S.formatToParts(G).find(Q=>Q.type==="era").value}}),z=d2(O.map(L=>L.formatted));if(z)for(let L of O)L.formatted=L.formatted.slice(z);return O},[S,e.calendar,t.type]),C=A=>{if(e.isDisabled||e.isReadOnly)return;let O=r.current+A;switch(t.type){case"dayPeriod":if(D(k,A))e.setSegment("dayPeriod",0);else if(D(N,A))e.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let z=y.find(L=>D(L.formatted,A));z&&(e.setSegment("era",z.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(O))return;let z=v.parse(O),L=z,G=t.minValue===0;if(t.type==="hour"&&e.dateFormatter.resolvedOptions().hour12){switch(e.dateFormatter.resolvedOptions().hourCycle){case"h11":z>11&&(L=v.parse(A));break;case"h12":G=!1,z>12&&(L=v.parse(A));break}t.value!==void 0&&t.value>=12&&z>1&&(z+=12)}else t.maxValue!==void 0&&z>t.maxValue&&(L=v.parse(A));if(isNaN(z))return;let Q=L!==0||G;Q&&e.setSegment(t.type,L),t.maxValue!==void 0&&(+(z+"0")>t.maxValue||O.length>=String(t.maxValue).length)?(r.current="",Q&&c.focusNext()):r.current=O;break}}},_=()=>{var A;r.current="",a.current&&Pv(a.current,{containingElement:no(a.current)}),(A=window.getSelection())==null||A.collapse(a.current)};Kr((0,x.useRef)(typeof document<"u"?document:null),"selectionchange",()=>{var O;let A=window.getSelection();A!=null&&A.anchorNode&&((O=a.current)!=null&&O.contains(A==null?void 0:A.anchorNode))&&A.collapse(a.current)});let E=(0,x.useRef)("");Kr(a,"beforeinput",A=>{if(a.current)switch(A.preventDefault(),A.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(t.text)&&!e.isReadOnly&&b();break;case"insertCompositionText":E.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:A.data!=null&&C(A.data);break}}),Kr(a,"input",A=>{let{inputType:O,data:z}=A;O==="insertCompositionText"&&(a.current&&(a.current.textContent=E.current),z!=null&&(D(k,z)||D(N,z))&&C(z))}),Da(()=>{let A=a.current;return()=>{document.activeElement===A&&(c.focusPrevious()||c.focusNext())}},[a,c]);let T=Mv()||t.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};t!==(0,x.useMemo)(()=>e.segments.find(A=>A.isEditable),[e.segments])&&!e.isInvalid&&(u=void 0);let P=Yr(),R=!e.isDisabled&&!e.isReadOnly&&t.isEditable,F=t.type==="literal"?"":l.of(t.type),I=Yl({"aria-label":`${F}${o?`, ${o}`:""}${d?", ":""}`,"aria-labelledby":d});if(t.type==="literal")return{segmentProps:{"aria-hidden":!0}};let V={caretColor:"transparent"};if(i==="rtl"){V.unicodeBidi="embed";let A=m[t.type];(A==="numeric"||A==="2-digit")&&(V.direction="ltr")}return{segmentProps:Xe(f,I,{id:P,...T,"aria-invalid":e.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":e.isReadOnly||!t.isEditable?"true":void 0,"data-placeholder":t.isPlaceholder||void 0,contentEditable:R,suppressContentEditableWarning:R,spellCheck:R?"false":void 0,autoCorrect:R?"off":void 0,enterKeyHint:R?"next":void 0,inputMode:e.isDisabled||t.type==="dayPeriod"||t.type==="era"||!R?void 0:"numeric",tabIndex:e.isDisabled?void 0:0,onKeyDown:w,onFocus:_,style:V,onPointerDown(A){A.stopPropagation()},onMouseDown(A){A.stopPropagation()}})}}function d2(t){t.sort();let e=t[0],a=t[t.length-1];for(let r=0;rro(a,{accept:V=>V.id!==b}),[a,b]),N={[Gh]:k,[gn]:"presentation","aria-describedby":j,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,granularity:t.granularity,shouldForceLeadingZeros:t.shouldForceLeadingZeros,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior},S=st(t),y=(0,x.useRef)(!1),{focusWithinProps:C}=Ul({...t,isDisabled:e.isOpen,onBlurWithin:V=>{var z;if(!((z=document.getElementById(w))!=null&&z.contains(V.relatedTarget))){var A,O;y.current=!1,(A=t.onBlur)==null||A.call(t,V),(O=t.onFocusChange)==null||O.call(t,!1)}},onFocusWithin:V=>{if(!y.current){var A,O;y.current=!0,(A=t.onFocus)==null||A.call(t,V),(O=t.onFocusChange)==null||O.call(t,!0)}}}),_=(0,x.useRef)(xv),E=(0,x.useRef)(xv);return{groupProps:Xe(S,D,d,g,C,{role:"group","aria-disabled":t.isDisabled||null,"aria-describedby":j,onKeyDown(V){e.isOpen||t.onKeyDown&&t.onKeyDown(V)},onKeyUp(V){e.isOpen||t.onKeyUp&&t.onKeyUp(V)}}),labelProps:{...o,onClick:()=>{k.focusFirst()}},buttonProps:{...g,id:b,"aria-haspopup":"dialog","aria-label":r.format("calendar"),"aria-labelledby":`${b} ${p}`,"aria-describedby":j,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${p}`},startFieldProps:{...f,...N,value:((T=e.value)==null?void 0:T.start)??null,defaultValue:(P=e.defaultValue)==null?void 0:P.start,onChange:V=>e.setDateTime("start",V),autoFocus:t.autoFocus,name:t.startName,form:t.form,[Au]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(V){_.current=V,e.updateValidation(Kl(V,E.current))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},endFieldProps:{...v,...N,value:((R=e.value)==null?void 0:R.end)??null,defaultValue:(F=e.defaultValue)==null?void 0:F.end,onChange:V=>e.setDateTime("end",V),name:t.endName,form:t.form,[Au]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(V){E.current=V,e.updateValidation(Kl(_.current,V))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},descriptionProps:u,errorMessageProps:c,calendarProps:{autoFocus:!0,value:(I=e.dateRange)!=null&&I.start&&e.dateRange.end?e.dateRange:null,onChange:e.setDateRange,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,allowsNonContiguousRanges:t.allowsNonContiguousRanges,defaultFocusedValue:e.dateRange?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:n,validationErrors:i,validationDetails:l}}function m2(t,e){let{role:a="dialog"}=t,r=Vv();r=t["aria-label"]?void 0:r;let n=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{if(e.current&&!e.current.contains(document.activeElement)){Iu(e.current);let i=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(n.current=!0,e.current&&(e.current.blur(),Iu(e.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),Zw(),{dialogProps:{...st(t,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:r}}}function wr(t,e,a){return e!=null&&t.compare(e)<0||a!=null&&t.compare(a)>0}function rs(t,e,a,r,n){let i={};for(let l in e)i[l]=Math.floor(e[l]/2),i[l]>0&&e[l]%2==0&&i[l]--;return xn(t,Ja(t,e,a).subtract(i),e,a,r,n)}function Ja(t,e,a,r,n){let i=t;return e.years?i=Lb(t):e.months?i=Ya(t):e.weeks&&(i=on(t,a)),xn(t,i,e,a,r,n)}function ns(t,e,a,r,n){let i={...e};return i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--,xn(t,Ja(t,e,a).subtract(i),e,a,r,n)}function xn(t,e,a,r,n,i){if(n&&t.compare(n)>=0){let l=Po(e,Ja(mt(n),a,r));l&&(e=l)}if(i&&t.compare(i)<=0){let l=Io(e,ns(mt(i),a,r));l&&(e=l)}return e}function Ea(t,e,a){if(e){let r=Po(t,mt(e));r&&(t=r)}if(a){let r=Io(t,mt(a));r&&(t=r)}return t}function Qh(t,e,a){if(!a)return t;for(;t.compare(e)>=0&&a(t);)t=t.subtract({days:1});return t.compare(e)>=0?t:null}function Jh(t){let e=(0,x.useMemo)(()=>new Kt(t.locale),[t.locale]),a=(0,x.useMemo)(()=>e.resolvedOptions(),[e]),{locale:r,createCalendar:n,visibleDuration:i={months:1},minValue:l,maxValue:o,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:p}=t,m=(0,x.useMemo)(()=>n(a.calendar),[n,a.calendar]),[h,g]=ur(t.value,t.defaultValue??null,t.onChange),f=(0,x.useMemo)(()=>h?Fe(mt(h),m):null,[h,m]),v=(0,x.useMemo)(()=>h&&"timeZone"in h?h.timeZone:a.timeZone,[h,a.timeZone]),[b,w]=ur((0,x.useMemo)(()=>t.focusedValue?Ea(Fe(mt(t.focusedValue),m),l,o):void 0,[t.focusedValue,m,l,o]),(0,x.useMemo)(()=>Ea(t.defaultFocusedValue?Fe(mt(t.defaultFocusedValue),m):f||Fe(gi(v),m),l,o),[t.defaultFocusedValue,f,v,m,l,o]),t.onFocusChange),[D,j]=(0,x.useState)(()=>{switch(d){case"start":return Ja(b,i,r,l,o);case"end":return ns(b,i,r,l,o);default:return rs(b,i,r,l,o)}}),[k,N]=(0,x.useState)(t.autoFocus||!1),S=(0,x.useMemo)(()=>{let I={...i};return I.days?I.days--:I.days=-1,D.add(I)},[D,i]),[y,C]=(0,x.useState)(m);if(!fi(m,y)){let I=Fe(b,m);j(rs(I,i,r,l,o)),w(I),C(m)}wr(b,l,o)?w(Ea(b,l,o)):b.compare(D)<0?j(ns(b,i,r,l,o)):b.compare(S)>0&&j(Ja(b,i,r,l,o));function _(I){I=Ea(I,l,o),w(I)}function E(I){if(!t.isDisabled&&!t.isReadOnly){let V=I;if(V===null){g(null);return}if(V=Ea(V,l,o),V=Qh(V,D,u),!V)return;V=Fe(V,(h==null?void 0:h.calendar)||new gt),h&&"hour"in h?g(h.set(V)):g(V)}}let T=(0,x.useMemo)(()=>f?u&&u(f)?!0:wr(f,l,o):!1,[f,u,l,o]),P=t.isInvalid||t.validationState==="invalid"||T,R=P?"invalid":null,F=(0,x.useMemo)(()=>c==="visible"?i:is(i),[c,i]);return{isDisabled:t.isDisabled??!1,isReadOnly:t.isReadOnly??!1,value:f,setValue:E,visibleRange:{start:D,end:S},minValue:l,maxValue:o,focusedDate:b,timeZone:v,validationState:R,isValueInvalid:P,setFocusedDate(I){_(I),N(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&_(b.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let I=D.add(F);w(Ea(b.add(F),l,o)),j(Ja(xn(b,I,F,r,l,o),F,r))},focusPreviousPage(){let I=D.subtract(F);w(Ea(b.subtract(F),l,o)),j(Ja(xn(b,I,F,r,l,o),F,r))},focusSectionStart(){i.days?_(D):i.weeks?_(on(b,r)):(i.months||i.years)&&_(Ya(b))},focusSectionEnd(){i.days?_(S):i.weeks?_(Wb(b,r)):(i.months||i.years)&&_(vi(b))},focusNextSection(I){if(!I&&!i.days){_(b.add(is(i)));return}i.days?this.focusNextPage():i.weeks?_(b.add({months:1})):(i.months||i.years)&&_(b.add({years:1}))},focusPreviousSection(I){if(!I&&!i.days){_(b.subtract(is(i)));return}i.days?this.focusPreviousPage():i.weeks?_(b.subtract({months:1})):(i.months||i.years)&&_(b.subtract({years:1}))},selectFocusedDate(){u&&u(b)||E(b)},selectDate(I){E(I)},isFocused:k,setFocused:N,isInvalid(I){return wr(I,l,o)},isSelected(I){return f!=null&&Ue(I,f)&&!this.isCellDisabled(I)&&!this.isCellUnavailable(I)},isCellFocused(I){return k&&b&&Ue(I,b)},isCellDisabled(I){return t.isDisabled||I.compare(D)<0||I.compare(S)>0||this.isInvalid(I)},isCellUnavailable(I){return t.isDateUnavailable?t.isDateUnavailable(I):!1},isPreviousVisibleRangeInvalid(){let I=D.subtract({days:1});return Ue(I,D)||this.isInvalid(I)},isNextVisibleRangeInvalid(){let I=S.add({days:1});return Ue(I,S)||this.isInvalid(I)},getDatesInWeek(I,V=D){let A=V.add({weeks:I}),O=[];A=on(A,r,p);let z=Ro(A,r,p);for(let L=0;L0&&(g="start")}let f=(0,x.useRef)(null),[v,b]=(0,x.useState)(null),w=(0,x.useMemo)(()=>Po(o,v==null?void 0:v.start),[o,v]),D=(0,x.useMemo)(()=>Io(d,v==null?void 0:v.end),[d,v]),j=Jh({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:l,minValue:w,maxValue:D,selectionAlignment:t.selectionAlignment||g}),k=V=>{V&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(f.current={start:ef(V,j,-1),end:ef(V,j,1)},b(f.current)):(f.current=null,b(null))},[N,S]=(0,x.useState)(j.visibleRange);(!To(j.visibleRange.start,N.start)||!To(j.visibleRange.end,N.end))&&(k(m),S(j.visibleRange));let y=V=>{V?(h(V),k(V)):(h(null),k(null))},C=m?ls(m,j.focusedDate):c&&ls(c.start,c.end),_=V=>{if(t.isReadOnly)return;let A=Qh(Ea(V,w,D),j.visibleRange.start,t.isDateUnavailable);if(A)if(!m)y(A);else{let O=ls(m,A);O&&p({start:Xh(O.start,c==null?void 0:c.start),end:Xh(O.end,c==null?void 0:c.end)}),y(null)}},[E,T]=(0,x.useState)(!1),{isDateUnavailable:P}=t,R=(0,x.useMemo)(()=>!c||m?!1:P&&(P(c.start)||P(c.end))?!0:wr(c.start,o,d)||wr(c.end,o,d),[P,c,m,o,d]),F=t.isInvalid||t.validationState==="invalid"||R;return{...j,value:c,setValue:p,anchorDate:m,setAnchorDate:y,highlightedRange:C,validationState:F?"invalid":null,isValueInvalid:F,selectFocusedDate(){_(j.focusedDate)},selectDate:_,highlightDate(V){m&&j.setFocusedDate(V)},isSelected(V){return!!(C&&V.compare(C.start)>=0&&V.compare(C.end)<=0&&!j.isCellDisabled(V)&&!j.isCellUnavailable(V))},isInvalid(V){var A,O;return j.isInvalid(V)||wr(V,(A=f.current)==null?void 0:A.start,(O=f.current)==null?void 0:O.end)},isDragging:E,setDragging:T}}function ls(t,e){return!t||!e?null:(e.compare(t)<0&&([t,e]=[e,t]),{start:mt(t),end:mt(e)})}function Xh(t,e){return t=Fe(t,(e==null?void 0:e.calendar)||new gt),e&&"hour"in e?e.set(t):t}function ef(t,e,a){let r=t.add({days:a});for(;(a<0?r.compare(e.visibleRange.start)>=0:r.compare(e.visibleRange.end)<=0)&&!e.isCellUnavailable(r);)r=r.add({days:a});if(e.isCellUnavailable(r))return r.add({days:-a})}function os(t){let[e,a]=ur(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:e,setOpen:a,open:(0,x.useCallback)(()=>{a(!0)},[a]),close:(0,x.useCallback)(()=>{a(!1)},[a]),toggle:(0,x.useCallback)(()=>{a(!e)},[a,e])}}var tf={};tf={rangeOverflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."};var af={};af={rangeOverflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."};var rf={};rf={rangeOverflow:t=>`Hodnota mus\xED b\xFDt ${t.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:t=>`Hodnota mus\xED b\xFDt ${t.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."};var nf={};nf={rangeOverflow:t=>`V\xE6rdien skal v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:t=>`V\xE6rdien skal v\xE6re ${t.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."};var lf={};lf={rangeOverflow:t=>`Der Wert muss ${t.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:t=>`Der Wert muss ${t.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."};var of={};of={rangeOverflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."};var sf={};sf={rangeUnderflow:t=>`Value must be ${t.minValue} or later.`,rangeOverflow:t=>`Value must be ${t.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var df={};df={rangeOverflow:t=>`El valor debe ser ${t.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:t=>`El valor debe ser ${t.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var uf={};uf={rangeOverflow:t=>`V\xE4\xE4rtus peab olema ${t.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:t=>`V\xE4\xE4rtus peab olema ${t.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."};var cf={};cf={rangeOverflow:t=>`Arvon on oltava ${t.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:t=>`Arvon on oltava ${t.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."};var mf={};mf={rangeOverflow:t=>`La valeur doit \xEAtre ${t.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:t=>`La valeur doit \xEAtre ${t.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."};var pf={};pf={rangeOverflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."};var hf={};hf={rangeOverflow:t=>`Vrijednost mora biti ${t.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrijednost mora biti ${t.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var ff={};ff={rangeOverflow:t=>`Az \xE9rt\xE9knek ${t.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:t=>`Az \xE9rt\xE9knek ${t.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."};var gf={};gf={rangeOverflow:t=>`Il valore deve essere ${t.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:t=>`Il valore deve essere ${t.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var xf={};xf={rangeOverflow:t=>`\u5024\u306F ${t.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:t=>`\u5024\u306F ${t.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"};var vf={};vf={rangeOverflow:t=>`\uAC12\uC740 ${t.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:t=>`\uAC12\uC740 ${t.minValue} \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."};var yf={};yf={rangeOverflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."};var bf={};bf={rangeOverflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."};var wf={};wf={rangeOverflow:t=>`Verdien m\xE5 v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:t=>`Verdien m\xE5 v\xE6re ${t.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Df={};Df={rangeOverflow:t=>`Waarde moet ${t.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:t=>`Waarde moet ${t.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var jf={};jf={rangeOverflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."};var Cf={};Cf={rangeOverflow:t=>`O valor deve ser ${t.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:t=>`O valor deve ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var kf={};kf={rangeOverflow:t=>`O valor tem de ser ${t.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:t=>`O valor tem de ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var Sf={};Sf={rangeOverflow:t=>`Valoarea trebuie s\u0103 fie ${t.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:t=>`Valoarea trebuie s\u0103 fie ${t.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."};var Nf={};Nf={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Ef={};Ef={rangeOverflow:t=>`Hodnota mus\xED by\u0165 ${t.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:t=>`Hodnota mus\xED by\u0165 ${t.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."};var _f={};_f={rangeOverflow:t=>`Vrednost mora biti ${t.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:t=>`Vrednost mora biti ${t.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."};var Tf={};Tf={rangeOverflow:t=>`Vrednost mora da bude ${t.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrednost mora da bude ${t.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Rf={};Rf={rangeOverflow:t=>`V\xE4rdet m\xE5ste vara ${t.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:t=>`V\xE4rdet m\xE5ste vara ${t.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."};var Af={};Af={rangeOverflow:t=>`De\u011Fer, ${t.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:t=>`De\u011Fer, ${t.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."};var If={};If={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Pf={};Pf={rangeOverflow:t=>`\u503C\u5FC5\u987B\u662F ${t.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u987B\u662F ${t.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"};var Mf={};Mf={rangeOverflow:t=>`\u503C\u5FC5\u9808\u662F ${t.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u9808\u662F ${t.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"};var Ff={};Ff={"ar-AE":tf,"bg-BG":af,"cs-CZ":rf,"da-DK":nf,"de-DE":lf,"el-GR":of,"en-US":sf,"es-ES":df,"et-EE":uf,"fi-FI":cf,"fr-FR":mf,"he-IL":pf,"hr-HR":hf,"hu-HU":ff,"it-IT":gf,"ja-JP":xf,"ko-KR":vf,"lt-LT":yf,"lv-LV":bf,"nb-NO":wf,"nl-NL":Df,"pl-PL":jf,"pt-BR":Cf,"pt-PT":kf,"ro-RO":Sf,"ru-RU":Nf,"sk-SK":Ef,"sl-SI":_f,"sr-SP":Tf,"sv-SE":Rf,"tr-TR":Af,"uk-UA":If,"zh-CN":Pf,"zh-TW":Mf};function h2(t){return t&&t.__esModule?t.default:t}var Vf=new Hl(h2(Ff));function zf(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return t}function Ri(t,e,a,r,n){let i=t!=null&&a!=null&&t.compare(a)>0,l=t!=null&&e!=null&&t.compare(e)<0,o=t!=null&&(r==null?void 0:r(t))||!1,d=i||l||o,u=[];if(d){let c=zf(),p=new xR(c,Hl.getGlobalDictionaryForPackage("@react-stately/datepicker")||Vf),m=new Kt(c,pa({},n)),h=m.resolvedOptions().timeZone;l&&e!=null&&u.push(p.format("rangeUnderflow",{minValue:m.format(e.toDate(h))})),i&&a!=null&&u.push(p.format("rangeOverflow",{maxValue:m.format(a.toDate(h))})),o&&u.push(p.format("unavailableDate"))}return{isInvalid:d,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function f2(t,e,a,r,n){let i=Kl(Ri((t==null?void 0:t.start)??null,e,a,r,n),Ri((t==null?void 0:t.end)??null,e,a,r,n));if((t==null?void 0:t.end)!=null&&t.start!=null&&t.end.compare(t.start)<0){let l=Hl.getGlobalDictionaryForPackage("@react-stately/datepicker")||Vf;i=Kl(i,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",zf())],validationDetails:{...gR,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return i}var g2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},x2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function pa(t,e){t={...e.shouldForceLeadingZeros?x2:g2,...t};let a=e.granularity||"minute",r=Object.keys(t),n=r.indexOf(e.maxGranularity??"year");n<0&&(n=0);let i=r.indexOf(a);if(i<0&&(i=2),n>i)throw Error("maxGranularity must be greater than granularity");let l=r.slice(n,i+1).reduce((o,d)=>(o[d]=t[d],o),{});return e.hourCycle!=null&&(l.hour12=e.hourCycle===12),l.timeZone=e.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&e.timeZone&&!e.hideTimeZone&&(l.timeZoneName="short"),e.showEra&&n===0&&(l.era="short"),l}function Dr(t){return t&&"hour"in t?t:new cw}function Of(t,e){if(t===null)return null;if(t)return Fe(t,e)}function vn(t,e,a,r){if(t)return Of(t,a);let n=Fe(Jc(r??xi()).set({hour:0,minute:0,second:0,millisecond:0}),a);return e==="year"||e==="month"||e==="day"?mt(n):r?n:qt(n)}function ss(t,e){let a=t&&"timeZone"in t?t.timeZone:void 0,r=t&&"minute"in t?"minute":"day";if(t&&e&&!(e in t))throw Error("Invalid granularity "+e+" for value "+t.toString());let[n,i]=(0,x.useState)([r,a]);t&&(n[0]!==r||n[1]!==a)&&i([r,a]),e||(e=t?r:n[0]);let l=t?a:n[1];return[e,l]}function v2(t){let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),i=a||t.placeholderValue||null,[l,o]=ss(i,t.granularity),d=a==null?null:a.toDate(o??"UTC"),u=l==="hour"||l==="minute"||l==="second",c=t.shouldCloseOnSelect??!0,[p,m]=(0,x.useState)(null),[h,g]=(0,x.useState)(null);if(a&&(p=a,"hour"in a&&(h=a)),i&&!(l in i))throw Error("Invalid granularity "+l+" for value "+i.toString());let f=(a==null?void 0:a.calendar.identifier)==="gregory"&&a.era==="BC",v=(0,x.useMemo)(()=>({granularity:l,timeZone:o,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:f}),[l,t.hourCycle,t.shouldForceLeadingZeros,o,t.hideTimeZone,f]),{minValue:b,maxValue:w,isDateUnavailable:D}=t,j=(0,x.useMemo)(()=>Ri(a,b,w,D,v),[a,b,w,D,v]),k=Pu({...t,value:a,builtinValidation:j}),N=k.displayValidation.isInvalid,S=t.validationState||(N?"invalid":null),y=(E,T)=>{r("timeZone"in T?T.set(mt(E)):qt(E,T)),m(null),g(null),k.commitValidation()},C=E=>{let T=typeof c=="function"?c():c;u?h||T?y(E,h||Dr(t.defaultValue||t.placeholderValue)):m(E):(r(E),k.commitValidation()),T&&e.setOpen(!1)},_=E=>{p&&E?y(p,E):g(E)};return{...k,value:a,defaultValue:t.defaultValue??n,setValue:r,dateValue:p,timeValue:h,setDateValue:C,setTimeValue:_,granularity:l,hasTime:u,...e,setOpen(E){!E&&!a&&p&&u&&y(p,h||Dr(t.defaultValue||t.placeholderValue)),e.setOpen(E)},validationState:S,isInvalid:N,formatValue(E,T){return d?new Kt(E,pa(T,v)).format(d):""},getDateFormatter(E,T){return new Kt(E,pa({},{...v,...T}))}}}var y2=new Hl({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function b2(t,e,a){return t==="era"||t==="dayPeriod"?e:t==="year"||t==="month"||t==="day"?y2.getStringForLocale(t,a):"\u2013\u2013"}var Ai={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},$f={year:5,month:2,day:7,hour:2,minute:15,second:15},Lf={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function w2(t){let{locale:e,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:i=!1,isRequired:l=!1,minValue:o,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue||null,[p,m]=ss(c,t.granularity),h=m||"UTC";if(c&&!(p in c))throw Error("Invalid granularity "+p+" for value "+c.toString());let g=(0,x.useMemo)(()=>new Kt(e),[e]),f=(0,x.useMemo)(()=>a(g.resolvedOptions().calendar),[a,g]),[v,b]=ur(t.value,t.defaultValue??null,t.onChange),[w]=(0,x.useState)(v),D=(0,x.useMemo)(()=>Of(v,f)??null,[v,f]),[j,k]=(0,x.useState)(()=>vn(t.placeholderValue,p,f,m)),N=D||j,S=f.identifier==="gregory"&&N.era==="BC",y=(0,x.useMemo)(()=>({granularity:p,maxGranularity:t.maxGranularity??"year",timeZone:m,hideTimeZone:r,hourCycle:t.hourCycle,showEra:S,shouldForceLeadingZeros:t.shouldForceLeadingZeros}),[t.maxGranularity,p,t.hourCycle,t.shouldForceLeadingZeros,m,r,S]),C=(0,x.useMemo)(()=>pa({},y),[y]),_=(0,x.useMemo)(()=>new Kt(e,C),[e,C]),E=(0,x.useMemo)(()=>_.resolvedOptions(),[_]),T=(0,x.useMemo)(()=>_.formatToParts(new Date).filter(Z=>Ai[Z.type]).reduce((Z,B)=>(Z[Lf[B.type]||B.type]=!0,Z),{}),[_]),[P,R]=(0,x.useState)(()=>t.value||t.defaultValue?{...T}:{}),F=(0,x.useRef)(null),I=(0,x.useRef)(f);(0,x.useEffect)(()=>{fi(f,I.current)||(I.current=f,k(Z=>Object.keys(P).length>0?Fe(Z,f):vn(t.placeholderValue,p,f,m)))},[f,p,P,m,t.placeholderValue]),v&&Object.keys(P).length=Object.keys(T).length?D:j,A=Z=>{if(t.isDisabled||t.isReadOnly)return;let B=Object.keys(P),re=Object.keys(T);Z==null?(b(null),k(vn(t.placeholderValue,p,f,m)),R({})):B.length===0&&F.current==null||B.length>=re.length||B.length===re.length-1&&T.dayPeriod&&!P.dayPeriod&&F.current!=="dayPeriod"?(B.length===0&&(P={...T},R(P)),Z=Fe(Z,(c==null?void 0:c.calendar)||new gt),b(Z)):k(Z),F.current=null},O=(0,x.useMemo)(()=>V.toDate(h),[V,h]),z=(0,x.useMemo)(()=>D2(O,P,_,E,V,f,e,p),[O,P,_,E,V,f,e,p]);T.era&&P.year&&!P.era?(P.era=!0,R({...P})):!T.era&&P.era&&(delete P.era,R({...P}));let L=Z=>{P[Z]=!0,Z==="year"&&T.era&&(P.era=!0),R({...P})},G=(Z,B)=>{if(P[Z])A(j2(V,Z,B,E));else{L(Z);let re=Object.keys(P),te=Object.keys(T);(re.length>=te.length||re.length===te.length-1&&T.dayPeriod&&!P.dayPeriod)&&A(V)}},Q=(0,x.useMemo)(()=>Ri(v,o,d,u,y),[v,o,d,u,y]),ae=Pu({...t,value:v,builtinValidation:Q}),ce=ae.displayValidation.isInvalid,le=t.validationState||(ce?"invalid":null);return{...ae,value:D,defaultValue:t.defaultValue??w,dateValue:O,calendar:f,setValue:A,segments:z,dateFormatter:_,validationState:le,isInvalid:ce,granularity:p,maxGranularity:t.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:l,increment(Z){G(Z,1)},decrement(Z){G(Z,-1)},incrementPage(Z){G(Z,$f[Z]||1)},decrementPage(Z){G(Z,-($f[Z]||1))},setSegment(Z,B){L(Z),A(C2(V,Z,B,E))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let Z=Object.keys(P),B=Object.keys(T);Z.length===B.length-1&&T.dayPeriod&&!P.dayPeriod&&(P={...T},R(P),A(V.copy()))},clearSegment(Z){delete P[Z],F.current=Z,R({...P});let B=vn(t.placeholderValue,p,f,m),re=V;if(Z==="dayPeriod"&&"hour"in V&&"hour"in B){let te=V.hour>=12,ie=B.hour>=12;te&&!ie?re=V.set({hour:V.hour-12}):!te&&ie&&(re=V.set({hour:V.hour+12}))}else Z==="hour"&&"hour"in V&&V.hour>=12&&P.dayPeriod?re=V.set({hour:B.hour+12}):Z in V&&(re=V.set({[Z]:B[Z]}));b(null),A(re)},formatValue(Z){return D?new Kt(e,pa(Z,y)).format(O):""},getDateFormatter(Z,B){return new Kt(Z,pa({},{...y,...B}))}}}function D2(t,e,a,r,n,i,l,o){let d=["hour","minute","second"],u=a.formatToParts(t),c=[];for(let p of u){let m=Lf[p.type]||p.type,h=Ai[m];m==="era"&&i.getEras().length===1&&(h=!1);let g=Ai[m]&&!e[m],f=Ai[m]?b2(m,p.value,l):null,v={type:m,text:g?f:p.value,...Ii(n,m,r),isPlaceholder:g,placeholder:f,isEditable:h};m==="hour"?(c.push({type:"literal",text:"\u2066",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(v),m===o&&c.push({type:"literal",text:"\u2069",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(m)&&m===o?(c.push(v),c.push({type:"literal",text:"\u2069",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(v)}return c}function Ii(t,e,a){switch(e){case"era":{let r=t.calendar.getEras();return{value:r.indexOf(t.era),minValue:0,maxValue:r.length-1}}case"year":return{value:t.year,minValue:1,maxValue:t.calendar.getYearsInEra(t)};case"month":return{value:t.month,minValue:Bb(t),maxValue:t.calendar.getMonthsInYear(t)};case"day":return{value:t.day,minValue:Hb(t),maxValue:t.calendar.getDaysInMonth(t)}}if("hour"in t)switch(e){case"dayPeriod":return{value:t.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(a.hour12){let r=t.hour>=12;return{value:t.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:t.hour,minValue:0,maxValue:23};case"minute":return{value:t.minute,minValue:0,maxValue:59};case"second":return{value:t.second,minValue:0,maxValue:59}}return{}}function j2(t,e,a,r){switch(e){case"era":case"year":case"month":case"day":return t.cycle(e,a,{round:e==="year"})}if("hour"in t)switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return t.set({hour:i?n-12:n+12})}case"hour":case"minute":case"second":return t.cycle(e,a,{round:e!=="hour",hourCycle:r.hour12?12:24})}throw Error("Unknown segment: "+e)}function C2(t,e,a,r){switch(e){case"day":case"month":case"year":case"era":return t.set({[e]:a})}if("hour"in t&&typeof a=="number")switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return a>=12===i?t:t.set({hour:i?n-12:n+12})}case"hour":if(r.hour12){let n=t.hour>=12;!n&&a===12&&(a=0),n&&a<12&&(a+=12)}case"minute":case"second":return t.set({[e]:a})}throw Error("Unknown segment: "+e)}function k2(t){var P,R;let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),[i,l]=(0,x.useState)(()=>a||{start:null,end:null});a==null&&i.start&&i.end&&(i={start:null,end:null},l(i));let o=a||i,d=F=>{o=F||{start:null,end:null},l(o),Xa(o)?r(o):r(null)},[u,c]=ss((o==null?void 0:o.start)||(o==null?void 0:o.end)||t.placeholderValue||null,t.granularity),p=u==="hour"||u==="minute"||u==="second",m=t.shouldCloseOnSelect??!0,[h,g]=(0,x.useState)(null),[f,v]=(0,x.useState)(null);o&&Xa(o)&&(h=o,"hour"in o.start&&(f=o));let b=(F,I)=>{d({start:"timeZone"in I.start?I.start.set(mt(F.start)):qt(F.start,I.start),end:"timeZone"in I.end?I.end.set(mt(F.end)):qt(F.end,I.end)}),g(null),v(null),_.commitValidation()},w=F=>{let I=typeof m=="function"?m():m;p?Xa(F)&&(I||f!=null&&f.start&&(f!=null&&f.end))?b(F,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}):g(F):Xa(F)?(d(F),_.commitValidation()):g(F),I&&e.setOpen(!1)},D=F=>{Xa(h)&&Xa(F)?b(h,F):v(F)},j=((P=o==null?void 0:o.start)==null?void 0:P.calendar.identifier)==="gregory"&&o.start.era==="BC"||((R=o==null?void 0:o.end)==null?void 0:R.calendar.identifier)==="gregory"&&o.end.era==="BC",k=(0,x.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:j}),[u,t.hourCycle,t.shouldForceLeadingZeros,c,t.hideTimeZone,j]),{minValue:N,maxValue:S,isDateUnavailable:y}=t,C=(0,x.useMemo)(()=>f2(o,N,S,y,k),[o,N,S,y,k]),_=Pu({...t,value:a,name:(0,x.useMemo)(()=>[t.startName,t.endName].filter(F=>F!=null),[t.startName,t.endName]),builtinValidation:C}),E=_.displayValidation.isInvalid,T=t.validationState||(E?"invalid":null);return{..._,value:o,defaultValue:t.defaultValue??n,setValue:d,dateRange:h,timeRange:f,granularity:u,hasTime:p,setDate(F,I){w(F==="start"?{start:I,end:(h==null?void 0:h.end)??null}:{start:(h==null?void 0:h.start)??null,end:I})},setTime(F,I){D(F==="start"?{start:I,end:(f==null?void 0:f.end)??null}:{start:(f==null?void 0:f.start)??null,end:I})},setDateTime(F,I){d(F==="start"?{start:I,end:(o==null?void 0:o.end)??null}:{start:(o==null?void 0:o.start)??null,end:I})},setDateRange:w,setTimeRange:D,...e,setOpen(F){!F&&!(o!=null&&o.start&&(o!=null&&o.end))&&Xa(h)&&p&&b(h,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}),e.setOpen(F)},validationState:T,isInvalid:E,formatValue(F,I){if(!o||!o.start||!o.end)return null;let V="timeZone"in o.start?o.start.timeZone:void 0,A=t.granularity||(o.start&&"minute"in o.start?"minute":"day"),O="timeZone"in o.end?o.end.timeZone:void 0,z=t.granularity||(o.end&&"minute"in o.end?"minute":"day"),L=pa(I,{granularity:A,timeZone:V,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,showEra:o.start.calendar.identifier==="gregory"&&o.start.era==="BC"||o.end.calendar.identifier==="gregory"&&o.end.era==="BC"}),G=o.start.toDate(V||"UTC"),Q=o.end.toDate(O||"UTC"),ae=new Kt(F,L),ce;if(V===O&&A===z&&o.start.compare(o.end)!==0){try{let le=ae.formatRangeToParts(G,Q),Z=-1;for(let te=0;teZ&&(re+=le[te].value);return{start:B,end:re}}catch{}ce=ae}else ce=new Kt(F,pa(I,{granularity:z,timeZone:O,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle}));return{start:ae.format(G),end:ce.format(Q)}},getDateFormatter(F,I){return new Kt(F,pa({},{...k,...I}))}}}function Xa(t){return(t==null?void 0:t.start)!=null&&t.end!=null}var Pi=(0,x.createContext)(null),Mi=(0,x.createContext)(null),Fi=(0,x.createContext)(null),yn=(0,x.createContext)(null),S2=(0,x.forwardRef)(function(t,e){[t,e]=Ua(t,e,Pi);let{locale:a}=qe(),r=Jh({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Gw(t,r),u=Wa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=st(t,{global:!0});return x.createElement("div",{...Xe(c,u,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[lo,{"aria-hidden":!0,level:2,children:d}],[Fi,r],[Pi,t],[Yn,{slots:{errorMessage:o}}]]},x.createElement(Jn,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(Jn,null,x.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),N2=(0,x.forwardRef)(function(t,e){[t,e]=Ua(t,e,Mi);let{locale:a}=qe(),r=p2({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Qw(t,r,e),u=Wa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=st(t,{global:!0});return x.createElement("div",{...Xe(u,c,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[lo,{"aria-hidden":!0,level:2,children:d}],[yn,r],[Mi,t],[Yn,{slots:{errorMessage:o}}]]},x.createElement(Jn,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(Jn,null,x.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),Vi=(0,x.createContext)(null),E2=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(Fi),r=(0,x.useContext)(yn),n=Gl(Pi),i=Gl(Mi),l=a??r,o=l.visibleRange.start;t.offset&&(o=o.add(t.offset));let d=(n==null?void 0:n.firstDayOfWeek)??(i==null?void 0:i.firstDayOfWeek),{gridProps:u,headerProps:c,weekDays:p,weeksInMonth:m}=Jw({startDate:o,endDate:vi(o),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},l),h=st(t,{global:!0});return x.createElement(Vi.Provider,{value:{headerProps:c,weekDays:p,startDate:o,weeksInMonth:m}},x.createElement("table",{...Xe(h,u),ref:e,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children=="function"?x.createElement(x.Fragment,null,x.createElement(Bf,null,g=>x.createElement(Hf,null,g)),x.createElement(Wf,null,t.children)):t.children))});function _2(t,e){let{children:a,style:r,className:n}=t,{headerProps:i,weekDays:l}=(0,x.useContext)(Vi),o=st(t,{global:!0});return x.createElement("thead",{...Xe(o,i),ref:e,style:r,className:n||"react-aria-CalendarGridHeader"},x.createElement("tr",null,l.map((d,u)=>x.cloneElement(a(d),{key:u}))))}var Bf=(0,x.forwardRef)(_2);function T2(t,e){let{children:a,style:r,className:n}=t,i=st(t,{global:!0});return x.createElement("th",{...i,ref:e,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}var Hf=(0,x.forwardRef)(T2);function R2(t,e){let{children:a,style:r,className:n}=t,i=(0,x.useContext)(Fi),l=(0,x.useContext)(yn),o=i??l,{startDate:d,weeksInMonth:u}=(0,x.useContext)(Vi),c=st(t,{global:!0});return x.createElement("tbody",{...c,ref:e,style:r,className:n||"react-aria-CalendarGridBody"},[...Array(u).keys()].map(p=>x.createElement("tr",{key:p},o.getDatesInWeek(p,d).map((m,h)=>m?x.cloneElement(a(m),{key:h}):x.createElement("td",{key:h})))))}var Wf=(0,x.forwardRef)(R2),A2=(0,x.forwardRef)(function({date:t,...e},a){let r=(0,x.useContext)(Fi),n=(0,x.useContext)(yn),i=r??n,{startDate:l}=(0,x.useContext)(Vi)??{startDate:i.visibleRange.start},o=!Ob(l,t),d=Qc(t,i.timeZone),u=(0,x.useRef)(null),{cellProps:c,buttonProps:p,...m}=e2({date:t,isOutsideMonth:o},i,u),{hoverProps:h,isHovered:g}=gv({...e,isDisabled:m.isDisabled}),{focusProps:f,isFocusVisible:v}=Wl();v&&(v=m.isFocused);let b=!1,w=!1;"highlightedRange"in i&&i.highlightedRange&&(b=Ue(t,i.highlightedRange.start),w=Ue(t,i.highlightedRange.end));let D=Wa({...e,defaultChildren:m.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:o,isFocusVisible:v,isSelectionStart:b,isSelectionEnd:w,isToday:d,...m}}),j={"data-focused":m.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":m.isPressed||void 0,"data-unavailable":m.isUnavailable||void 0,"data-disabled":m.isDisabled||void 0,"data-focus-visible":v||void 0,"data-outside-visible-range":m.isOutsideVisibleRange||void 0,"data-outside-month":o||void 0,"data-selected":m.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":m.isInvalid||void 0,"data-today":d||void 0},k=st(e,{global:!0});return x.createElement("td",{...c,ref:a},x.createElement("div",{...Xe(k,p,f,h,j,D),ref:u}))}),I2=(0,x.createContext)({placement:"bottom"}),ds=(0,x.createContext)(null),Uf=(0,x.createContext)(null),P2=(0,x.forwardRef)(function(t,e){[t,e]=Ua(t,e,ds);let a=(0,x.useContext)(zi),r=os(t),n=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=Nb(e,n.isOpen)||t.isExiting||!1,l=fR(),{direction:o}=qe();if(l){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,d)}return n&&!n.isOpen&&!i?null:x.createElement(M2,{...t,triggerRef:t.triggerRef,state:n,popoverRef:e,isExiting:i,dir:o})});function M2({state:t,isExiting:e,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let i=(0,x.useRef)(null),l=(0,x.useRef)(null),o=(0,x.useContext)(Uf),d=o&&n.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:c,arrowProps:p,placement:m,triggerAnchorPoint:h}=Uw({...n,offset:n.offset??8,arrowRef:i,groupRef:d?o:l},t),g=n.popoverRef,f=Sb(g,!!m)||n.isEntering||!1,v=Wa({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:m,isEntering:f,isExiting:e}}),b=!n.isNonModal||n.trigger==="SubmenuTrigger",[w,D]=(0,x.useState)(!1);Da(()=>{g.current&&D(b&&!g.current.querySelector("[role=dialog]"))},[g,b]),(0,x.useEffect)(()=>{w&&n.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&Iu(g.current)},[w,g,n.trigger]);let j=(0,x.useMemo)(()=>{let S=v.children;if(r)for(let y of r)S=x.createElement(y.Provider,{value:null},S);return S},[v.children,r]),k={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...v.style},N=x.createElement("div",{...Xe(st(n,{global:!0}),u),...v,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:k,dir:n.dir,"data-trigger":n.trigger,"data-placement":m,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&x.createElement(_p,{onDismiss:t.close}),x.createElement(I2.Provider,{value:{...p,placement:m,ref:i}},j),x.createElement(_p,{onDismiss:t.close}));return d?x.createElement(Rp,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a??(o==null?void 0:o.current)??void 0},N):x.createElement(Rp,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a},!n.isNonModal&&t.isOpen&&x.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),x.createElement("div",{ref:l,style:{display:"contents"}},x.createElement(Uf.Provider,{value:l},N)))}var us=(0,x.createContext)(null),zi=(0,x.createContext)(null),F2=(0,x.forwardRef)(function(t,e){let a=t["aria-labelledby"];[t,e]=Ua(t,e,us);let{dialogProps:r,titleProps:n}=m2({...t,"aria-labelledby":a},e),i=(0,x.useContext)(zi);!r["aria-label"]&&!r["aria-labelledby"]&&t["aria-labelledby"]&&(r["aria-labelledby"]=t["aria-labelledby"]);let l=Wa({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),o=st(t,{global:!0});return x.createElement("section",{...Xe(o,l,r),ref:e,slot:t.slot||void 0},x.createElement(Ur,{values:[[lo,{slots:{[fv]:{},title:{...n,level:2}}}],[Zr,{slots:{[fv]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},l.children))}),V2=["day","month","year"],z2={hour:1,minute:2,second:3};function O2(t,e){let{autoComplete:a,isDisabled:r,name:n}=t,{visuallyHiddenProps:i}=gA({style:{position:"fixed",top:0,left:0}}),l=60;e.granularity==="second"?l=1:e.granularity==="hour"&&(l=3600);let o=e.value==null?"":e.value.toString(),d=e.granularity==="day"?"date":"datetime-local",u=["hour","minute","second"],c=0;return u.includes(e.granularity)&&(c=z2[e.granularity],u=u.slice(0,c)),{containerProps:{...i,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:a,disabled:r,type:d,form:"",name:n,step:l,value:o,onChange:p=>{let m=p.target.value.toString();if(m)try{let h=wi(m);if(e.granularity==="day"&&(h=Sa(m)),"setSegment"in e)for(let g in h)V2.includes(g)&&e.setSegment(g,h[g]),u.includes(g)&&e.setSegment(g,h[g]);e.setValue(h)}catch{}}}}}function $2(t){let{state:e}=t,{containerProps:a,inputProps:r}=O2({...t},e);return x.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},x.createElement("input",r))}var cs=(0,x.createContext)(null),Oi=(0,x.createContext)(null),ms=(0,x.createContext)(null),L2=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(Oi),r=(0,x.useContext)(ms);return a||r?x.createElement(Kf,{...t,ref:e}):x.createElement(B2,{...t,ref:e})}),B2=(0,x.forwardRef)((t,e)=>{let[a,r]=Ua({slot:t.slot},e,cs),{locale:n}=qe(),i=w2({...a,locale:n,createCalendar:Go}),l=(0,x.useRef)(null),{fieldProps:o,inputProps:d}=a2({...a,inputRef:l},i,r);return x.createElement(Ur,{values:[[Oi,i],[_R,{...d,ref:l}],[Ql,{...o,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},x.createElement(Kf,t))}),Kf=(0,x.forwardRef)((t,e)=>{let{className:a,children:r}=t,n=(0,x.useContext)(Oi),i=(0,x.useContext)(ms),l=n??i;return x.createElement(x.Fragment,null,x.createElement(kR,{...t,ref:e,slot:t.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,d)=>(0,x.cloneElement)(r(o),{key:d}))),x.createElement(DR,null))}),H2=(0,x.forwardRef)(function({segment:t,...e},a){let r=(0,x.useContext)(Oi),n=(0,x.useContext)(ms),i=r??n,l=ER(a),{segmentProps:o}=s2(t,i,l),{focusProps:d,isFocused:u,isFocusVisible:c}=Wl(),{hoverProps:p,isHovered:m}=gv({...e,isDisabled:i.isDisabled||t.type==="literal"}),h=Wa({...e,values:{...t,isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:m,isFocused:u,isFocusVisible:c},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return x.createElement("span",{...Xe(st(e,{global:!0}),o,d,p),...h,style:o.style,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":i.isReadOnly||void 0,"data-disabled":i.isDisabled||void 0,"data-type":t.type,"data-hovered":m||void 0,"data-focused":u||void 0,"data-focus-visible":c||void 0})}),W2=(0,x.createContext)(null),U2=(0,x.createContext)(null),K2=(0,x.createContext)(null),Z2=(0,x.createContext)(null),Zf=[Ql,Zr,Ou,Yn],q2=(0,x.forwardRef)(function(t,e){[t,e]=Ua(t,e,W2);let{validationBehavior:a}=Gl(yv)||{},r=t.validationBehavior??a??"native",n=v2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[l,o]=vv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,fieldProps:c,buttonProps:p,dialogProps:m,calendarProps:h,descriptionProps:g,errorMessageProps:f,...v}=n2({...bv(t),label:o,validationBehavior:r},n,i),[b,w]=(0,x.useState)(null);ci({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&w(i.current.offsetWidth+"px")},[])});let{focusProps:D,isFocused:j,isFocusVisible:k}=Wl({within:!0}),N=Wa({...t,values:{state:n,isFocusWithin:j,isFocusVisible:k,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),S=st(t,{global:!0});return delete S.id,x.createElement(Ur,{values:[[K2,n],[Ql,{...d,ref:i,isInvalid:n.isInvalid}],[cs,c],[Zr,{...p,isPressed:n.isOpen}],[Ou,{...u,ref:l,elementType:"span"}],[Pi,h],[zi,n],[ds,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":b},clearContexts:Zf}],[us,m],[Yn,{slots:{description:g,errorMessage:f}}],[wv,v]]},x.createElement("div",{...Xe(S,N,D),ref:e,slot:t.slot||void 0,"data-focus-within":j||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":k||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}),x.createElement($2,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:n}))}),Y2=(0,x.forwardRef)(function(t,e){[t,e]=Ua(t,e,U2);let{validationBehavior:a}=Gl(yv)||{},r=t.validationBehavior??a??"native",n=k2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[l,o]=vv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,startFieldProps:c,endFieldProps:p,buttonProps:m,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:v,...b}=c2({...bv(t),label:o,validationBehavior:r},n,i),[w,D]=(0,x.useState)(null);ci({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&D(i.current.offsetWidth+"px")},[])});let{focusProps:j,isFocused:k,isFocusVisible:N}=Wl({within:!0}),S=Wa({...t,values:{state:n,isFocusWithin:k,isFocusVisible:N,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),y=st(t,{global:!0});return delete y.id,x.createElement(Ur,{values:[[Z2,n],[Ql,{...d,ref:i,isInvalid:n.isInvalid}],[Zr,{...m,isPressed:n.isOpen}],[Ou,{...u,ref:l,elementType:"span"}],[Mi,g],[zi,n],[ds,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":w},clearContexts:Zf}],[us,h],[cs,{slots:{start:c,end:p}}],[Yn,{slots:{description:f,errorMessage:v}}],[wv,b]]},x.createElement("div",{...Xe(y,S,j),ref:e,slot:t.slot||void 0,"data-focus-within":k||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":N||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}))}),G2=(0,x.forwardRef)(function(t,e){[t,e]=Ua(t,e,lo);let{children:a,level:r=3,className:n,...i}=t,l=`h${r}`;return x.createElement(l,{...i,ref:e,className:n??"react-aria-Heading"},a)}),Q2=xa(Wn(),1),ps="ToastProvider",[hs,J2,X2]=ao("Toast"),[qf,k6]=$u("Toast",[X2]),[e4,$i]=qf(ps),Yf=t=>{let{__scopeToast:e,label:a="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:l}=t,[o,d]=x.useState(null),[u,c]=x.useState(0),p=x.useRef(!1),m=x.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${ps}\`. Expected non-empty \`string\`.`),(0,s.jsx)(hs.Provider,{scope:e,children:(0,s.jsx)(e4,{scope:e,label:a,duration:r,swipeDirection:n,swipeThreshold:i,toastCount:u,viewport:o,onViewportChange:d,onToastAdd:x.useCallback(()=>c(h=>h+1),[]),onToastRemove:x.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m,children:l})})};Yf.displayName=ps;var Gf="ToastViewport",t4=["F8"],fs="toast.viewportPause",gs="toast.viewportResume",Qf=x.forwardRef((t,e)=>{let{__scopeToast:a,hotkey:r=t4,label:n="Notifications ({hotkey})",...i}=t,l=$i(Gf,a),o=J2(a),d=x.useRef(null),u=x.useRef(null),c=x.useRef(null),p=x.useRef(null),m=kt(e,p,l.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=l.toastCount>0;x.useEffect(()=>{let v=b=>{var w;r.length!==0&&r.every(D=>b[D]||b.code===D)&&((w=p.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),x.useEffect(()=>{let v=d.current,b=p.current;if(g&&v&&b){let w=()=>{if(!l.isClosePausedRef.current){let N=new CustomEvent(fs);b.dispatchEvent(N),l.isClosePausedRef.current=!0}},D=()=>{if(l.isClosePausedRef.current){let N=new CustomEvent(gs);b.dispatchEvent(N),l.isClosePausedRef.current=!1}},j=N=>{v.contains(N.relatedTarget)||D()},k=()=>{v.contains(document.activeElement)||D()};return v.addEventListener("focusin",w),v.addEventListener("focusout",j),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",k),window.addEventListener("blur",w),window.addEventListener("focus",D),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",j),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",w),window.removeEventListener("focus",D)}}},[g,l.isClosePausedRef]);let f=x.useCallback(({tabbingDirection:v})=>{let b=o().map(w=>{let D=w.ref.current,j=[D,...h4(D)];return v==="forwards"?j:j.reverse()});return(v==="forwards"?b.reverse():b).flat()},[o]);return x.useEffect(()=>{let v=p.current;if(v){let b=w=>{var j,k,N;let D=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!D){let S=document.activeElement,y=w.shiftKey;if(w.target===v&&y){(j=u.current)==null||j.focus();return}let C=f({tabbingDirection:y?"backwards":"forwards"}),_=C.findIndex(E=>E===S);ys(C.slice(_+1))?w.preventDefault():y?(k=u.current)==null||k.focus():(N=c.current)==null||N.focus()}};return v.addEventListener("keydown",b),()=>v.removeEventListener("keydown",b)}},[o,f]),(0,s.jsxs)(eA,{ref:d,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,s.jsx)(xs,{ref:u,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"forwards"}))}}),(0,s.jsx)(hs.Slot,{scope:a,children:(0,s.jsx)(We.ol,{tabIndex:-1,...i,ref:m})}),g&&(0,s.jsx)(xs,{ref:c,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"backwards"}))}})]})});Qf.displayName=Gf;var Jf="ToastFocusProxy",xs=x.forwardRef((t,e)=>{let{__scopeToast:a,onFocusFromOutsideViewport:r,...n}=t,i=$i(Jf,a);return(0,s.jsx)(_v,{tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:l=>{var d;let o=l.relatedTarget;(d=i.viewport)!=null&&d.contains(o)||r()}})});xs.displayName=Jf;var bn="Toast",a4="toast.swipeStart",r4="toast.swipeMove",n4="toast.swipeCancel",i4="toast.swipeEnd",Xf=x.forwardRef((t,e)=>{let{forceMount:a,open:r,defaultOpen:n,onOpenChange:i,...l}=t,[o,d]=to({prop:r,defaultProp:n??!0,onChange:i,caller:bn});return(0,s.jsx)(Qn,{present:a||o,children:(0,s.jsx)(s4,{open:o,...l,ref:e,onClose:()=>d(!1),onPause:Ut(t.onPause),onResume:Ut(t.onResume),onSwipeStart:Ee(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(t.onSwipeMove,u=>{let{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:Ee(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(t.onSwipeEnd,u=>{let{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),d(!1)})})})});Xf.displayName=bn;var[l4,o4]=qf(bn,{onClose(){}}),s4=x.forwardRef((t,e)=>{let{__scopeToast:a,type:r="foreground",duration:n,open:i,onClose:l,onEscapeKeyDown:o,onPause:d,onResume:u,onSwipeStart:c,onSwipeMove:p,onSwipeCancel:m,onSwipeEnd:h,...g}=t,f=$i(bn,a),[v,b]=x.useState(null),w=kt(e,R=>b(R)),D=x.useRef(null),j=x.useRef(null),k=n||f.duration,N=x.useRef(0),S=x.useRef(k),y=x.useRef(0),{onToastAdd:C,onToastRemove:_}=f,E=Ut(()=>{var R;v!=null&&v.contains(document.activeElement)&&((R=f.viewport)==null||R.focus()),l()}),T=x.useCallback(R=>{!R||R===1/0||(window.clearTimeout(y.current),N.current=new Date().getTime(),y.current=window.setTimeout(E,R))},[E]);x.useEffect(()=>{let R=f.viewport;if(R){let F=()=>{T(S.current),u==null||u()},I=()=>{let V=new Date().getTime()-N.current;S.current-=V,window.clearTimeout(y.current),d==null||d()};return R.addEventListener(fs,I),R.addEventListener(gs,F),()=>{R.removeEventListener(fs,I),R.removeEventListener(gs,F)}}},[f.viewport,k,d,u,T]),x.useEffect(()=>{i&&!f.isClosePausedRef.current&&T(k)},[i,k,f.isClosePausedRef,T]),x.useEffect(()=>(C(),()=>_()),[C,_]);let P=x.useMemo(()=>v?lg(v):null,[v]);return f.viewport?(0,s.jsxs)(s.Fragment,{children:[P&&(0,s.jsx)(d4,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:P}),(0,s.jsx)(l4,{scope:a,onClose:E,children:Q2.createPortal((0,s.jsx)(hs.ItemSlot,{scope:a,children:(0,s.jsx)(QR,{asChild:!0,onEscapeKeyDown:Ee(o,()=>{f.isFocusedToastEscapeKeyDownRef.current||E(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,s.jsx)(We.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":f.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ee(t.onKeyDown,R=>{R.key==="Escape"&&(o==null||o(R.nativeEvent),R.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:Ee(t.onPointerDown,R=>{R.button===0&&(D.current={x:R.clientX,y:R.clientY})}),onPointerMove:Ee(t.onPointerMove,R=>{if(!D.current)return;let F=R.clientX-D.current.x,I=R.clientY-D.current.y,V=!!j.current,A=["left","right"].includes(f.swipeDirection),O=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,z=A?O(0,F):0,L=A?0:O(0,I),G=R.pointerType==="touch"?10:2,Q={x:z,y:L},ae={originalEvent:R,delta:Q};V?(j.current=Q,Li(r4,p,ae,{discrete:!1})):og(Q,f.swipeDirection,G)?(j.current=Q,Li(a4,c,ae,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(F)>G||Math.abs(I)>G)&&(D.current=null)}),onPointerUp:Ee(t.onPointerUp,R=>{let F=j.current,I=R.target;if(I.hasPointerCapture(R.pointerId)&&I.releasePointerCapture(R.pointerId),j.current=null,D.current=null,F){let V=R.currentTarget,A={originalEvent:R,delta:F};og(F,f.swipeDirection,f.swipeThreshold)?Li(i4,h,A,{discrete:!0}):Li(n4,m,A,{discrete:!0}),V.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),d4=t=>{let{__scopeToast:e,children:a,...r}=t,n=$i(bn,e),[i,l]=x.useState(!1),[o,d]=x.useState(!1);return m4(()=>l(!0)),x.useEffect(()=>{let u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:(0,s.jsx)(GR,{asChild:!0,children:(0,s.jsx)(_v,{...r,children:i&&(0,s.jsxs)(s.Fragment,{children:[n.label," ",a]})})})},u4="ToastTitle",eg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(We.div,{...r,ref:e})});eg.displayName=u4;var c4="ToastDescription",tg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(We.div,{...r,ref:e})});tg.displayName=c4;var ag="ToastAction",rg=x.forwardRef((t,e)=>{let{altText:a,...r}=t;return a.trim()?(0,s.jsx)(ig,{altText:a,asChild:!0,children:(0,s.jsx)(vs,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${ag}\`. Expected non-empty \`string\`.`),null)});rg.displayName=ag;var ng="ToastClose",vs=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t,n=o4(ng,a);return(0,s.jsx)(ig,{asChild:!0,children:(0,s.jsx)(We.button,{type:"button",...r,ref:e,onClick:Ee(t.onClick,n.onClose)})})});vs.displayName=ng;var ig=x.forwardRef((t,e)=>{let{__scopeToast:a,altText:r,...n}=t;return(0,s.jsx)(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...n,ref:e})});function lg(t){let e=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),p4(a)){let r=a.ariaHidden||a.hidden||a.style.display==="none",n=a.dataset.radixToastAnnounceExclude==="";if(!r)if(n){let i=a.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...lg(a))}}),e}function Li(t,e,a,{discrete:r}){let n=a.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:a});e&&n.addEventListener(t,e,{once:!0}),r?Lu(n,i):n.dispatchEvent(i)}var og=(t,e,a=0)=>{let r=Math.abs(t.x),n=Math.abs(t.y),i=r>n;return e==="left"||e==="right"?i&&r>a:!i&&n>a};function m4(t=()=>{}){let e=Ut(t);eo(()=>{let a=0,r=0;return a=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(r)}},[e])}function p4(t){return t.nodeType===t.ELEMENT_NODE}function h4(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function ys(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}var f4=Yf,sg=Qf,dg=Xf,ug=eg,cg=tg,mg=rg,pg=vs,jr=J(),g4=f4,hg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(sg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});hg.displayName=sg.displayName;var x4=Vl("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",danger:"group destructive text-error border-destructive bg-(--red-1) shadow-md-solid shadow-error"}},defaultVariants:{variant:"default"}}),fg=x.forwardRef((t,e)=>{let a=(0,jr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,variant:i,...n}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l=i||"default",o;a[4]!==r||a[5]!==l?(o=U(x4({variant:l}),"print:hidden",r),a[4]=r,a[5]=l,a[6]=o):o=a[6];let d;return a[7]!==n||a[8]!==e||a[9]!==o?(d=(0,s.jsx)(dg,{ref:e,className:o,...n}),a[7]=n,a[8]=e,a[9]=o,a[10]=d):d=a[10],d});fg.displayName=dg.displayName;var v4=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(mg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});v4.displayName=mg.displayName;var gg=x.forwardRef((t,e)=>{let a=(0,jr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-500 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Hr,{className:"h-4 w-4"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(pg,{ref:e,className:i,"toast-close":"",...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});gg.displayName=pg.displayName;var xg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("text-sm font-semibold",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(ug,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});xg.displayName=ug.displayName;var vg=x.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("text-sm opacity-90",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(cg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});vg.displayName=cg.displayName;var y4=J();const b4=()=>{let t=(0,y4.c)(5),{toasts:e}=YR(),a;t[0]===e?a=t[1]:(a=e.map(w4),t[0]=e,t[1]=a);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(hg,{}),t[2]=r):r=t[2];let n;return t[3]===a?n=t[4]:(n=(0,s.jsxs)(g4,{children:[a,r]}),t[3]=a,t[4]=n),n};function w4(t){let{id:e,title:a,description:r,action:n,...i}=t;return(0,s.jsxs)(fg,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[a&&(0,s.jsx)(xg,{children:a}),r&&(0,s.jsx)(vg,{children:r})]}),n,(0,s.jsx)(gg,{})]},e)}var D4=J();const bs=t=>{let e=(0,D4.c)(5),{children:a}=t,r=Il(v_),n;e[0]===r?n=e[1]:(n=j4(r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)(SA,{locale:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i};function j4(t){return t&&C4(t)?t:navigator.language}function C4(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var yg=J(),bg=So(()=>yt(()=>import("./home-page-CZKnE2XJ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133]),import.meta.url)),wg=So(()=>yt(()=>import("./run-page-DiloPKVJ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([134,135,136,5,137,14,138,139,140,141,29,4,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,116,142,143,76,144,114,79,78,84,83,85,86,87,88,89,70,77,71,72,90,145,146,147,100,105,74,148,149,150,151,152,153,154,155,156,82,91,157,158,97,159,93,94,98,160,99,96,161,122,123,124,162,126,128,163,164,165,73,166,167,168,169,170,171,172,173,174,175,176,107,177,81,92,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,111,281,282,283,284,285,102,103,286,287,288,289,290,291,292,293,294,295]),import.meta.url)),Dg=So(()=>yt(()=>import("./edit-page-CHi5vFR5.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([296,5,297,11,135,136,137,14,138,139,140,141,29,4,6,7,8,9,10,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,116,142,143,76,144,114,79,78,84,83,85,86,87,88,89,70,77,71,72,90,145,146,147,100,105,74,148,149,150,151,152,153,154,155,156,82,91,157,158,97,159,93,94,98,160,99,96,161,122,123,124,162,126,128,163,164,165,73,166,167,168,169,170,171,172,173,174,175,176,107,177,81,92,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,111,281,282,283,284,285,102,103,286,287,288,289,290,291,292,293,2,3,75,80,95,101,104,106,108,109,110,1,112,113,115,298,299,117,300,301,302,118,119,120,303,121,304,305,306,307,308,309,310,311,132,312,313,314,315,316,133,317,318,125,295,319,131,320,321,322,323,324,325,326,327,328,329,330,331,332]),import.meta.url));function k4(t){t==="home"?bg.preload():t==="read"?wg.preload():Dg.preload()}const jg=(0,x.memo)(()=>{let t=(0,yg.c)(12),[e]=j_(),[a]=D_(),r;t[0]===e.display.code_editor_font_size?r=t[1]:(r=S4(e.display.code_editor_font_size),t[0]=e.display.code_editor_font_size,t[1]=r);let n=r,i;t[2]!==a||t[3]!==e?(i=()=>{let c=lA();return c==="home"?(0,s.jsx)(bg.Component,{}):c==="read"?(0,s.jsx)(wg.Component,{appConfig:a}):(0,s.jsx)(Dg.Component,{userConfig:e,appConfig:a})},t[2]=a,t[3]=e,t[4]=i):i=t[4];let l=i,o;t[5]===n?o=t[6]:(o={"--marimo-code-editor-font-size":n},t[5]=n,t[6]=o);let d;t[7]===l?d=t[8]:(d=(0,s.jsx)(bs,{children:l()}),t[7]=l,t[8]=d);let u;return t[9]!==o||t[10]!==d?(u=(0,s.jsx)(Cg,{children:(0,s.jsx)(bb,{variables:o,children:d})}),t[9]=o,t[10]=d,t[11]=u):u=t[11],u});jg.displayName="MarimoApp";var Cg=(0,x.memo)(t=>{let e=(0,yg.c)(5),{children:a}=t,r,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(b4,{}),n=(0,s.jsx)(yb,{}),i=(0,s.jsx)(Db,{}),e[0]=r,e[1]=n,e[2]=i):(r=e[0],n=e[1],i=e[2]);let l;return e[3]===a?l=e[4]:(l=(0,s.jsx)(Ml,{children:(0,s.jsx)(x.Suspense,{children:(0,s.jsx)(Nt,{children:(0,s.jsx)(H1,{controller:Un,children:(0,s.jsx)(bs,{children:(0,s.jsxs)(AA,{children:[a,r,n,i]})})})})})}),e[3]=a,e[4]=l),l});Cg.displayName="Providers";function S4(t){return`${t/16}rem`}function N4(){__(t=>{t.delete(wu.accessToken)})}var E4={sendComponentValues:"startConnection",sendModelValue:"startConnection",sendInstantiate:"startConnection",sendRun:"startConnection",sendDeleteCell:"startConnection",sendRunScratchpad:"startConnection",saveAppConfig:"startConnection",saveCellConfig:"startConnection",exportAsHTML:"startConnection",exportAsMarkdown:"startConnection",exportAsPDF:"startConnection",readCode:"startConnection",sendCopy:"throwError",sendFormat:"throwError",sendRestart:"throwError",sendSave:"waitForConnectionOpen",invokeAiTool:"waitForConnectionOpen",sendFunctionRequest:"waitForConnectionOpen",sendRename:"waitForConnectionOpen",autoExportAsHTML:"waitForConnectionOpen",autoExportAsMarkdown:"waitForConnectionOpen",autoExportAsIPYNB:"waitForConnectionOpen",updateCellOutputs:"waitForConnectionOpen",listSecretKeys:"throwError",writeSecret:"throwError",clearCache:"throwError",getCacheInfo:"throwError",saveUserConfig:"throwError",sendShutdown:"throwError",getPackageList:"throwError",getDependencyTree:"throwError",addPackage:"throwError",removePackage:"throwError",sendListFiles:"startConnection",sendSearchFiles:"startConnection",sendCreateFileOrFolder:"throwError",sendDeleteFileOrFolder:"throwError",sendRenameFileOrFolder:"throwError",sendUpdateFile:"throwError",sendFileDetails:"throwError",openFile:"throwError",getRecentFiles:"startConnection",getWorkspaceFiles:"startConnection",getRunningNotebooks:"startConnection",shutdownSession:"startConnection",openTutorial:"startConnection",getUsageStats:"waitForConnectionOpen",sendStdin:"waitForConnectionOpen",sendInterrupt:"waitForConnectionOpen",sendPdb:"waitForConnectionOpen",sendInstallMissingPackages:"waitForConnectionOpen",readSnippets:"waitForConnectionOpen",previewDatasetColumn:"waitForConnectionOpen",previewSQLTable:"waitForConnectionOpen",previewSQLTableList:"waitForConnectionOpen",previewDataSourceConnection:"waitForConnectionOpen",validateSQL:"waitForConnectionOpen",syncCellIds:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function _4(t,e){let a=mT(async n=>{Oe.set(Z1,{state:W1.CONNECTING}),await n.init()});function r(n,i){let l=E4[i];return async(...o)=>{let d=e();if(!d.isLazy)return n(...o);switch(l){case"dropRequest":se.debug(`Dropping request: ${i}, since not connected to a kernel.`);return;case"throwError":throw new Hv;case"waitForConnectionOpen":return await Ze(),await B1(),n(...o);case"startConnection":return await a(d),await Ze(),i!=="sendInstantiate"&&await B1(),n(...o);default:throw Error(`Unknown action for "${i}"`)}}}return Va.mapValues(t,(n,i)=>r(n,i))}var{handleResponse:Ve,handleResponseReturnNull:we}=R_;function T4(){let t=IE(()=>P_(Du())),e=()=>Du().sessionHeaders(),a=()=>({header:e()});return{sendComponentValues:r=>t().POST("/api/kernel/set_ui_element_value",{body:r,params:a()}).then(we),sendModelValue:r=>t().POST("/api/kernel/set_model_value",{body:r,params:a()}).then(we),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:a()}).then(we),syncCellIds:async r=>(await Ze(),t().POST("/api/kernel/sync/cell_ids",{body:r,params:a()}).then(we)),sendRename:r=>t().POST("/api/kernel/rename",{body:r,params:a()}).then(we),sendSave:r=>t().POST("/api/kernel/save",{body:r,parseAs:"text",params:a()}).then(we),sendCopy:r=>t().POST("/api/kernel/copy",{body:r,parseAs:"text",params:a()}).then(we),sendFormat:r=>t().POST("/api/kernel/format",{body:r}).then(Ve),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:a()}).then(we),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(we),sendRun:async r=>(await Ze(),t().POST("/api/kernel/run",{body:r,params:a()}).then(we)),sendRunScratchpad:async r=>(await Ze(),t().POST("/api/kernel/scratchpad/run",{body:r,params:a()}).then(we)),sendInstantiate:async r=>(await Ze(),t().POST("/api/kernel/instantiate",{body:r,params:a()}).then(we)),sendDeleteCell:r=>t().POST("/api/kernel/delete",{body:r,params:a()}).then(we),sendCodeCompletionRequest:async r=>(await Ze(),t().POST("/api/kernel/code_autocomplete",{body:r,params:a()}).then(we)),saveUserConfig:r=>t().POST("/api/kernel/save_user_config",{body:r}).then(we),saveAppConfig:r=>t().POST("/api/kernel/save_app_config",{body:r,parseAs:"text",params:a()}).then(we),saveCellConfig:r=>t().POST("/api/kernel/set_cell_config",{body:r,params:a()}).then(we),sendFunctionRequest:r=>t().POST("/api/kernel/function_call",{body:r,params:a()}).then(we),sendStdin:r=>t().POST("/api/kernel/stdin",{body:r,params:a()}).then(we),sendInstallMissingPackages:r=>t().POST("/api/kernel/install_missing_packages",{body:r,params:a()}).then(we),readCode:async()=>(await Ze(),t().POST("/api/kernel/read_code",{params:a()}).then(Ve)),readSnippets:async()=>(await Ze(),t().GET("/api/documentation/snippets",{params:a()}).then(Ve)),previewDatasetColumn:r=>t().POST("/api/datasources/preview_column",{body:r,params:a()}).then(we),previewSQLTable:r=>t().POST("/api/datasources/preview_sql_table",{body:r,params:a()}).then(we),previewSQLTableList:r=>t().POST("/api/datasources/preview_sql_table_list",{body:r,params:a()}).then(we),previewDataSourceConnection:r=>t().POST("/api/datasources/preview_datasource_connection",{body:r,params:a()}).then(we),validateSQL:r=>t().POST("/api/sql/validate",{body:r,params:a()}).then(we),openFile:async r=>(await Ze(),await t().POST("/api/files/open",{body:r}).then(we),null),getUsageStats:async()=>(await Ze(),t().GET("/api/usage").then(Ve)),sendPdb:r=>t().POST("/api/kernel/pdb/pm",{body:r,params:a()}).then(we),sendListFiles:async r=>(await Ze(),t().POST("/api/files/list_files",{body:r}).then(Ve)),sendSearchFiles:async r=>(await Ze(),t().POST("/api/files/search",{body:r}).then(Ve)),sendCreateFileOrFolder:async r=>(await Ze(),t().POST("/api/files/create",{body:r}).then(Ve)),sendDeleteFileOrFolder:async r=>(await Ze(),t().POST("/api/files/delete",{body:r}).then(Ve)),sendRenameFileOrFolder:async r=>(await Ze(),t().POST("/api/files/move",{body:r}).then(Ve)),sendUpdateFile:async r=>(await Ze(),t().POST("/api/files/update",{body:r}).then(Ve)),sendFileDetails:async r=>(await Ze(),t().POST("/api/files/file_details",{body:r}).then(Ve)),openTutorial:r=>t().POST("/api/home/tutorial/open",{body:r}).then(Ve),getRecentFiles:()=>t().POST("/api/home/recent_files").then(Ve),getWorkspaceFiles:r=>t().POST("/api/home/workspace_files",{body:r}).then(Ve),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then(Ve),shutdownSession:r=>t().POST("/api/home/shutdown_session",{body:r}).then(Ve),exportAsHTML:async r=>t().POST("/api/export/html",{body:r,parseAs:"text",params:a()}).then(Ve),exportAsMarkdown:async r=>t().POST("/api/export/markdown",{body:r,parseAs:"text",params:a()}).then(Ve),exportAsPDF:async r=>t().POST("/api/export/pdf",{body:r,parseAs:"blob",params:a()}).then(Ve),autoExportAsHTML:async r=>t().POST("/api/export/auto_export/html",{body:r,params:a()}).then(we),autoExportAsMarkdown:async r=>t().POST("/api/export/auto_export/markdown",{body:r,params:a()}).then(we),autoExportAsIPYNB:async r=>t().POST("/api/export/auto_export/ipynb",{body:r,params:a()}).then(we),updateCellOutputs:async r=>t().POST("/api/export/update_cell_outputs",{body:r,params:a()}).then(we),addPackage:r=>t().POST("/api/packages/add",{body:r}).then(Ve),removePackage:r=>t().POST("/api/packages/remove",{body:r}).then(Ve),getPackageList:async()=>(await Ze(),t().GET("/api/packages/list").then(Ve)),getDependencyTree:async()=>(await Ze(),t().GET("/api/packages/tree").then(Ve)),listSecretKeys:async r=>(await Ze(),t().POST("/api/secrets/keys",{body:r,params:a()}).then(we)),writeSecret:async r=>t().POST("/api/secrets/create",{body:r,params:a()}).then(we),invokeAiTool:async r=>t().POST("/api/ai/invoke_tool",{body:r,params:a()}).then(Ve),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:a()}).then(we),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:a()}).then(we)}}function R4(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(Wt({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(se.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(se.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(Wt({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Function requests are not supported in static mode"),null),sendRestart:t,syncCellIds:t,sendRun:t,sendRunScratchpad:t,sendRename:t,sendSave:t,sendCopy:t,sendInterrupt:t,sendShutdown:t,sendFormat:t,sendDeleteCell:t,sendCodeCompletionRequest:t,saveUserConfig:t,saveAppConfig:t,saveCellConfig:t,sendStdin:t,readCode:t,readSnippets:t,previewDatasetColumn:t,previewSQLTable:t,previewSQLTableList:t,previewDataSourceConnection:t,validateSQL:t,openFile:t,getUsageStats:t,sendListFiles:t,sendSearchFiles:t,sendPdb:t,sendCreateFileOrFolder:t,sendDeleteFileOrFolder:t,sendRenameFileOrFolder:t,sendUpdateFile:t,sendFileDetails:t,openTutorial:t,sendInstallMissingPackages:t,getRecentFiles:t,getWorkspaceFiles:t,getRunningNotebooks:t,shutdownSession:t,exportAsHTML:t,exportAsMarkdown:t,exportAsPDF:t,autoExportAsHTML:t,autoExportAsMarkdown:t,autoExportAsIPYNB:t,updateCellOutputs:t,addPackage:t,removePackage:t,getPackageList:t,getDependencyTree:t,listSecretKeys:t,writeSecret:t,invokeAiTool:t,clearCache:t,getCacheInfo:t}}var A4=J();function I4(t){let e={sendComponentValues:"Failed update value",sendModelValue:"Failed to update model value",sendInstantiate:"Failed to instantiate",sendFunctionRequest:"Failed to send function request",sendRestart:"Failed to restart",syncCellIds:"Failed to sync cell IDs",sendRun:"Failed to run",sendRunScratchpad:"Failed to run scratchpad",sendRename:"Failed to rename",sendSave:"Failed to save",sendCopy:"Failed to copy",sendInterrupt:"Failed to interrupt",sendShutdown:"Failed to shutdown",sendFormat:"Failed to format",sendDeleteCell:"Failed to delete cell",sendCodeCompletionRequest:"Failed to complete code",saveUserConfig:"Failed to save user config",saveAppConfig:"Failed to save app config",saveCellConfig:"Failed to save cell config",sendStdin:"Failed to send stdin",readCode:"Failed to read code",readSnippets:"Failed to fetch snippets",previewDatasetColumn:"Failed to fetch data sources",previewSQLTable:"Failed to fetch SQL table",previewSQLTableList:"Failed to fetch SQL table list",previewDataSourceConnection:"Failed to preview data source connection",validateSQL:"Failed to validate SQL",openFile:"Failed to open file",getUsageStats:"",sendListFiles:"Failed to list files",sendSearchFiles:"Failed to search files",sendPdb:"Failed to start debug session",sendCreateFileOrFolder:"Failed to create file or folder",sendDeleteFileOrFolder:"Failed to delete file or folder",sendRenameFileOrFolder:"Failed to rename file or folder",sendUpdateFile:"Failed to update file",sendFileDetails:"Failed to get file details",openTutorial:"Failed to open tutorial",sendInstallMissingPackages:"Failed to install missing packages",getRecentFiles:"Failed to get recent files",getWorkspaceFiles:"Failed to get workspace files",getRunningNotebooks:"Failed to get running notebooks",shutdownSession:"Failed to shutdown session",exportAsHTML:"Failed to export HTML",exportAsMarkdown:"Failed to export Markdown",exportAsPDF:"Failed to export PDF",autoExportAsHTML:"",autoExportAsMarkdown:"",autoExportAsIPYNB:"",updateCellOutputs:"",addPackage:"Failed to add package",removePackage:"Failed to remove package",getPackageList:"Failed to get package list",getDependencyTree:"Failed to get dependency tree",listSecretKeys:"Failed to fetch secrets",writeSecret:"Failed to write secret",invokeAiTool:"Failed to invoke AI tool",clearCache:"Failed to clear cache",getCacheInfo:""},a={};for(let[r,n]of Object.entries(t)){let i=r;a[i]=async(...l)=>{try{return await n(...l)}catch(o){if(o instanceof Hv){if(Oe.get(U1))return;let c=Wt({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,s.jsx)(P4,{onConnect:()=>c.dismiss()})});throw se.error(`Failed to handle request: ${r}`,o),o}let d=e[i],u=Wv(o);throw d&&Wt({title:d,description:u,variant:"danger"}),se.error(`Failed to handle request: ${r}`,o),o}}}return a}const P4=t=>{let e=(0,A4.c)(9),{onConnect:a}=t,r=C_(),n=Il(U1),i;e[0]!==r||e[1]!==a?(i=()=>{r(),setTimeout(()=>{a()},800)},e[0]=r,e[1]=a,e[2]=i):i=e[2];let l;e[3]===n?l=e[4]:(l=n&&(0,s.jsx)(qn,{size:"small",className:"mr-1"}),e[3]=n,e[4]=l);let o;return e[5]!==n||e[6]!==i||e[7]!==l?(o=(0,s.jsxs)(Ce,{size:"xs",onClick:i,disabled:n,children:[l,"Connect"]}),e[5]=n,e[6]=i,e[7]=l,e[8]=o):o=e[8],o};function M4(){let t;return t=S_()?l_.INSTANCE:Kn()?R4():_4(T4(),()=>Du()),I4(t)}function F4(t=q1()){let e=window.fetch;return window.fetch=async(a,r)=>{let n=a instanceof Request?a.url:a.toString();if(n.startsWith("data:"))return e(a,r);try{let i=ws(n,t);if(i){let l=await(await e(i)).arrayBuffer();return new Response(l,{headers:{"Content-Type":V4(n)}})}return e(a,r)}catch(i){return se.error("Error parsing URL",i),e(a,r)}},()=>{window.fetch=e}}function V4(t){return t.endsWith(".csv")?"text/csv":t.endsWith(".json")?"application/json":t.endsWith(".txt")?"text/plain":"application/octet-stream"}function z4(t,e=q1()){let a=t.http.bind(t),r=t.load.bind(t);return t.http=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await a(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},t.load=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await r(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},()=>{t.http=a,t.load=r}}function kg(t){return t.startsWith(".")?t.slice(1):t}function ws(t,e){let a=document.baseURI;a.startsWith("blob:")&&(a=a.replace("blob:",""));let r=new URL(t,a).pathname;if(t.startsWith("file://")){let n=t.indexOf("/@file/");n!==-1&&(t=t.slice(n))}return e[t]||e[kg(t)]||e[r]||e[kg(r)]}var O4=xa(Wn(),1),er="NavigationMenu",[Ds,Sg,$4]=ao(er),[js,L4,B4]=ao(er),[Cs,S6]=$u(er,[$4,B4]),[H4,Tt]=Cs(er),[W4,U4]=Cs(er),Ng=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,delayDuration:l=200,skipDelayDuration:o=300,orientation:d="horizontal",dir:u,...c}=t,[p,m]=x.useState(null),h=kt(e,C=>m(C)),g=Rv(u),f=x.useRef(0),v=x.useRef(0),b=x.useRef(0),[w,D]=x.useState(!0),[j,k]=to({prop:r,onChange:C=>{let _=C!=="",E=o>0;_?(window.clearTimeout(b.current),E&&D(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>D(!0),o)),n==null||n(C)},defaultProp:i??"",caller:er}),N=x.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>k(""),150)},[k]),S=x.useCallback(C=>{window.clearTimeout(v.current),k(C)},[k]),y=x.useCallback(C=>{j===C?window.clearTimeout(v.current):f.current=window.setTimeout(()=>{window.clearTimeout(v.current),k(C)},l)},[j,k,l]);return x.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(v.current),window.clearTimeout(b.current)},[]),(0,s.jsx)(Eg,{scope:a,isRootMenu:!0,value:j,dir:g,orientation:d,rootNavigationMenu:p,onTriggerEnter:C=>{window.clearTimeout(f.current),w?y(C):S(C)},onTriggerLeave:()=>{window.clearTimeout(f.current),N()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:N,onItemSelect:C=>{k(_=>_===C?"":C)},onItemDismiss:()=>k(""),children:(0,s.jsx)(We.nav,{"aria-label":"Main","data-orientation":d,dir:g,...c,ref:h})})});Ng.displayName=er;var ks="NavigationMenuSub",K4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,orientation:l="horizontal",...o}=t,d=Tt(ks,a),[u,c]=to({prop:r,onChange:n,defaultProp:i??"",caller:ks});return(0,s.jsx)(Eg,{scope:a,isRootMenu:!1,value:u,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:p=>c(p),onItemSelect:p=>c(p),onItemDismiss:()=>c(""),children:(0,s.jsx)(We.div,{"data-orientation":l,...o,ref:e})})});K4.displayName=ks;var Eg=t=>{let{scope:e,isRootMenu:a,rootNavigationMenu:r,dir:n,orientation:i,children:l,value:o,onItemSelect:d,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:p,onContentEnter:m,onContentLeave:h}=t,[g,f]=x.useState(null),[v,b]=x.useState(new Map),[w,D]=x.useState(null);return(0,s.jsx)(H4,{scope:e,isRootMenu:a,rootNavigationMenu:r,value:o,previousValue:sv(o),baseId:Ev(),dir:n,orientation:i,viewport:g,onViewportChange:f,indicatorTrack:w,onIndicatorTrackChange:D,onTriggerEnter:Ut(c),onTriggerLeave:Ut(p),onContentEnter:Ut(m),onContentLeave:Ut(h),onItemSelect:Ut(d),onItemDismiss:Ut(u),onViewportContentChange:x.useCallback((j,k)=>{b(N=>(N.set(j,k),new Map(N)))},[]),onViewportContentRemove:x.useCallback(j=>{b(k=>k.has(j)?(k.delete(j),new Map(k)):k)},[]),children:(0,s.jsx)(Ds.Provider,{scope:e,children:(0,s.jsx)(W4,{scope:e,items:v,children:l})})})},_g="NavigationMenuList",Tg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Tt(_g,a),i=(0,s.jsx)(We.ul,{"data-orientation":n.orientation,...r,ref:e});return(0,s.jsx)(We.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange,children:(0,s.jsx)(Ds.Slot,{scope:a,children:n.isRootMenu?(0,s.jsx)(Lg,{asChild:!0,children:i}):i})})});Tg.displayName=_g;var Rg="NavigationMenuItem",[Z4,Ag]=Cs(Rg),Ig=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,...n}=t,i=Ev(),l=r||i||"LEGACY_REACT_AUTO_VALUE",o=x.useRef(null),d=x.useRef(null),u=x.useRef(null),c=x.useRef(()=>{}),p=x.useRef(!1),m=x.useCallback((g="start")=>{if(o.current){c.current();let f=_s(o.current);f.length&&Ts(g==="start"?f:f.reverse())}},[]),h=x.useCallback(()=>{if(o.current){let g=_s(o.current);g.length&&(c.current=eD(g))}},[]);return(0,s.jsx)(Z4,{scope:a,value:l,triggerRef:d,contentRef:o,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:(0,s.jsx)(We.li,{...n,ref:e})})});Ig.displayName=Rg;var Ss="NavigationMenuTrigger",Pg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,disabled:r,...n}=t,i=Tt(Ss,t.__scopeNavigationMenu),l=Ag(Ss,t.__scopeNavigationMenu),o=x.useRef(null),d=kt(o,l.triggerRef,e),u=Wg(i.baseId,l.value),c=Ug(i.baseId,l.value),p=x.useRef(!1),m=x.useRef(!1),h=l.value===i.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ds.ItemSlot,{scope:a,value:l.value,children:(0,s.jsx)(Hg,{asChild:!0,children:(0,s.jsx)(We.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":As(h),"aria-expanded":h,"aria-controls":c,...n,ref:d,onPointerEnter:Ee(t.onPointerEnter,()=>{m.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:Ee(t.onPointerMove,Hi(()=>{r||m.current||l.wasEscapeCloseRef.current||p.current||(i.onTriggerEnter(l.value),p.current=!0)})),onPointerLeave:Ee(t.onPointerLeave,Hi(()=>{r||(i.onTriggerLeave(),p.current=!1)})),onClick:Ee(t.onClick,()=>{i.onItemSelect(l.value),m.current=h}),onKeyDown:Ee(t.onKeyDown,g=>{let f={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&g.key===f&&(l.onEntryKeyDown(),g.preventDefault())})})})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rA,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:g=>{let f=l.contentRef.current,v=g.relatedTarget,b=v===o.current,w=f==null?void 0:f.contains(v);(b||!w)&&l.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&(0,s.jsx)("span",{"aria-owns":c})]})]})});Pg.displayName=Ss;var q4="NavigationMenuLink",Mg="navigationMenu.linkSelect",Fg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,active:r,onSelect:n,...i}=t;return(0,s.jsx)(Hg,{asChild:!0,children:(0,s.jsx)(We.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:Ee(t.onClick,l=>{let o=l.target,d=new CustomEvent(Mg,{bubbles:!0,cancelable:!0});o.addEventListener(Mg,u=>n==null?void 0:n(u),{once:!0}),Lu(o,d),!d.defaultPrevented&&!l.metaKey&&Lu(o,new CustomEvent(Bi,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Fg.displayName=q4;var Ns="NavigationMenuIndicator",Vg=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=Tt(Ns,t.__scopeNavigationMenu),i=!!n.value;return n.indicatorTrack?O4.createPortal((0,s.jsx)(Qn,{present:a||i,children:(0,s.jsx)(Y4,{...r,ref:e})}),n.indicatorTrack):null});Vg.displayName=Ns;var Y4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Tt(Ns,a),i=Sg(a),[l,o]=x.useState(null),[d,u]=x.useState(null),c=n.orientation==="horizontal",p=!!n.value;x.useEffect(()=>{var g;let h=(g=i().find(f=>f.value===n.value))==null?void 0:g.ref.current;h&&o(h)},[i,n.value]);let m=()=>{l&&u({size:c?l.offsetWidth:l.offsetHeight,offset:c?l.offsetLeft:l.offsetTop})};return Rs(l,m),Rs(n.indicatorTrack,m),d?(0,s.jsx)(We.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":n.orientation,...r,ref:e,style:{position:"absolute",...c?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...r.style}}):null}),Cr="NavigationMenuContent",zg=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=Tt(Cr,t.__scopeNavigationMenu),i=Ag(Cr,t.__scopeNavigationMenu),l=kt(i.contentRef,e),o=i.value===n.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return n.viewport?(0,s.jsx)(G4,{forceMount:a,...d,ref:l}):(0,s.jsx)(Qn,{present:a||o,children:(0,s.jsx)(Og,{"data-state":As(o),...d,ref:l,onPointerEnter:Ee(t.onPointerEnter,n.onContentEnter),onPointerLeave:Ee(t.onPointerLeave,Hi(n.onContentLeave)),style:{pointerEvents:!o&&n.isRootMenu?"none":void 0,...d.style}})})});zg.displayName=Cr;var G4=x.forwardRef((t,e)=>{let{onViewportContentChange:a,onViewportContentRemove:r}=Tt(Cr,t.__scopeNavigationMenu);return eo(()=>{a(t.value,{ref:e,...t})},[t,e,a]),eo(()=>()=>r(t.value),[t.value,r]),null}),Bi="navigationMenu.rootContentDismiss",Og=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:n,focusProxyRef:i,wasEscapeCloseRef:l,onRootContentClose:o,onContentFocusOutside:d,...u}=t,c=Tt(Cr,a),p=x.useRef(null),m=kt(p,e),h=Wg(c.baseId,r),g=Ug(c.baseId,r),f=Sg(a),v=x.useRef(null),{onItemDismiss:b}=c;x.useEffect(()=>{let D=p.current;if(c.isRootMenu&&D){let j=()=>{var k;b(),o(),D.contains(document.activeElement)&&((k=n.current)==null||k.focus())};return D.addEventListener(Bi,j),()=>D.removeEventListener(Bi,j)}},[c.isRootMenu,t.value,n,b,o]);let w=x.useMemo(()=>{let D=f().map(C=>C.value);c.dir==="rtl"&&D.reverse();let j=D.indexOf(c.value),k=D.indexOf(c.previousValue),N=r===c.value,S=k===D.indexOf(r);if(!N&&!S)return v.current;let y=(()=>{if(j!==k){if(N&&k!==-1)return j>k?"from-end":"from-start";if(S&&j!==-1)return j>k?"to-start":"to-end"}return null})();return v.current=y,y},[c.previousValue,c.value,c.dir,f,r]);return(0,s.jsx)(Lg,{asChild:!0,children:(0,s.jsx)(XR,{id:g,"aria-labelledby":h,"data-motion":w,"data-orientation":c.orientation,...u,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;let D=new Event(Bi,{bubbles:!0,cancelable:!0});(j=p.current)==null||j.dispatchEvent(D)},onFocusOutside:Ee(t.onFocusOutside,D=>{var k;d();let j=D.target;(k=c.rootNavigationMenu)!=null&&k.contains(j)&&D.preventDefault()}),onPointerDownOutside:Ee(t.onPointerDownOutside,D=>{var S;let j=D.target,k=f().some(y=>{var C;return(C=y.ref.current)==null?void 0:C.contains(j)}),N=c.isRootMenu&&((S=c.viewport)==null?void 0:S.contains(j));(k||N||!c.isRootMenu)&&D.preventDefault()}),onKeyDown:Ee(t.onKeyDown,D=>{var k;let j=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!j){let N=_s(D.currentTarget),S=document.activeElement,y=N.findIndex(C=>C===S);Ts(D.shiftKey?N.slice(0,y).reverse():N.slice(y+1,N.length))?D.preventDefault():(k=i.current)==null||k.focus()}}),onEscapeKeyDown:Ee(t.onEscapeKeyDown,D=>{l.current=!0})})})}),Es="NavigationMenuViewport",$g=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=!!Tt(Es,t.__scopeNavigationMenu).value;return(0,s.jsx)(Qn,{present:a||n,children:(0,s.jsx)(Q4,{...r,ref:e})})});$g.displayName=Es;var Q4=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,children:r,...n}=t,i=Tt(Es,a),l=kt(e,i.onViewportChange),o=U4(Cr,t.__scopeNavigationMenu),[d,u]=x.useState(null),[c,p]=x.useState(null),m=d?(d==null?void 0:d.width)+"px":void 0,h=d?(d==null?void 0:d.height)+"px":void 0,g=!!i.value,f=g?i.value:i.previousValue;return Rs(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,s.jsx)(We.div,{"data-state":As(g),"data-orientation":i.orientation,...n,ref:l,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...n.style},onPointerEnter:Ee(t.onPointerEnter,i.onContentEnter),onPointerLeave:Ee(t.onPointerLeave,Hi(i.onContentLeave)),children:Array.from(o.items).map(([v,{ref:b,forceMount:w,...D}])=>{let j=f===v;return(0,s.jsx)(Qn,{present:w||j,children:(0,s.jsx)(Og,{...D,ref:O_(b,k=>{j&&k&&p(k)})})},v)})})}),J4="FocusGroup",Lg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Tt(J4,a);return(0,s.jsx)(js.Provider,{scope:a,children:(0,s.jsx)(js.Slot,{scope:a,children:(0,s.jsx)(We.div,{dir:n.dir,...r,ref:e})})})}),Bg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],X4="FocusGroupItem",Hg=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=L4(a),i=Tt(X4,a);return(0,s.jsx)(js.ItemSlot,{scope:a,children:(0,s.jsx)(We.button,{...r,ref:e,onKeyDown:Ee(t.onKeyDown,l=>{if(["Home","End",...Bg].includes(l.key)){let o=n().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(l.key)&&o.reverse(),Bg.includes(l.key)){let d=o.indexOf(l.currentTarget);o=o.slice(d+1)}setTimeout(()=>Ts(o)),l.preventDefault()}})})})});function _s(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function Ts(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}function eD(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{let a=e.dataset.tabindex;e.setAttribute("tabindex",a)})}}function Rs(t,e){let a=Ut(e);eo(()=>{let r=0;if(t){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return n.observe(t),()=>{window.cancelAnimationFrame(r),n.unobserve(t)}}},[t,a])}function As(t){return t?"open":"closed"}function Wg(t,e){return`${t}-trigger-${e}`}function Ug(t,e){return`${t}-content-${e}`}function Hi(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Kg=Ng,Zg=Tg,tD=Ig,qg=Pg,aD=Fg,Yg=Vg,Gg=zg,Qg=$g,kr=J(),Is=x.forwardRef((t,e)=>{let a=(0,kr.c)(16),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,children:r,orientation:i,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",u;a[5]!==n||a[6]!==o||a[7]!==d?(u=U(o,d,"relative z-10",n),a[5]=n,a[6]=o,a[7]=d,a[8]=u):u=a[8];let c;a[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(e0,{}),a[9]=c):c=a[9];let p;return a[10]!==r||a[11]!==i||a[12]!==l||a[13]!==e||a[14]!==u?(p=(0,s.jsxs)(Kg,{ref:e,className:u,orientation:i,...l,children:[r,c]}),a[10]=r,a[11]=i,a[12]=l,a[13]=e,a[14]=u,a[15]=p):p=a[15],p});Is.displayName=Kg.displayName;var rD=Vl("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),Wi=x.forwardRef((t,e)=>{let a=(0,kr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,orientation:n,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]!==r||a[5]!==n?(l=U(rD({orientation:n}),r),a[4]=r,a[5]=n,a[6]=l):l=a[6];let o;return a[7]!==i||a[8]!==e||a[9]!==l?(o=(0,s.jsx)(Zg,{ref:e,className:l,...i}),a[7]=i,a[8]=e,a[9]=l,a[10]=o):o=a[10],o});Wi.displayName=Zg.displayName;var Ps=tD,Ms=Vl("group inline-flex rounded-md bg-background px-4 py-2 text-lg font-medium text-(--slate-12) transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{orientation:{horizontal:"w-max items-center justify-center",vertical:"w-full"}},defaultVariants:{orientation:"horizontal"}}),Jg=x.forwardRef((t,e)=>{let a=(0,kr.c)(12),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:n,children:r,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]===n?l=a[5]:(l=U(Ms(),"group",n),a[4]=n,a[5]=l);let o;a[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(XT,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),a[6]=o):o=a[6];let d;return a[7]!==r||a[8]!==i||a[9]!==e||a[10]!==l?(d=(0,s.jsxs)(qg,{ref:e,className:l,...i,children:[r," ",o]}),a[7]=r,a[8]=i,a[9]=e,a[10]=l,a[11]=d):d=a[11],d});Jg.displayName=qg.displayName;var Xg=x.forwardRef((t,e)=>{let a=(0,kr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(Gg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});Xg.displayName=Gg.displayName;var Fs=aD,e0=x.forwardRef((t,e)=>{let a=(0,kr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===Symbol.for("react.memo_cache_sentinel")?(i=U("absolute left-0 top-full flex justify-center"),a[3]=i):i=a[3];let l;a[4]===r?l=a[5]:(l=U("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",r),a[4]=r,a[5]=l);let o;return a[6]!==n||a[7]!==e||a[8]!==l?(o=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(Qg,{className:l,ref:e,...n})}),a[6]=n,a[7]=e,a[8]=l,a[9]=o):o=a[9],o});e0.displayName=Qg.displayName;var nD=x.forwardRef((t,e)=>{let a=(0,kr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(Yg,{ref:e,className:i,...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});nD.displayName=Yg.displayName;var t0=J(),iD=class{constructor(){q(this,"tagName","marimo-nav-menu");q(this,"menuItemValidator",$({label:M(),href:M(),description:M().nullish()}));q(this,"menuItemGroupValidator",$({label:M(),items:ee(this.menuItemValidator)}));q(this,"validator",$({items:ee(Se([this.menuItemValidator,this.menuItemGroupValidator])),orientation:ye(["horizontal","vertical"])}))}render(t){return(0,s.jsx)(Nt,{children:(0,s.jsx)(lD,{...t.data})})}},lD=t=>{let e=(0,t0.c)(13),{items:a,orientation:r}=t,n=oD,i=sD,l=dD,o;e[0]===r?o=e[1]:(o=m=>"items"in m?r==="horizontal"?(0,s.jsx)(Is,{orientation:"horizontal",children:(0,s.jsx)(Wi,{children:(0,s.jsxs)(Ps,{children:[(0,s.jsx)(Jg,{children:Me({html:m.label})}),(0,s.jsx)(Xg,{children:(0,s.jsx)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",children:m.items.map(h=>(0,s.jsx)(a0,{label:h.label,href:l(h.href),target:i(h.href),children:h.description&&Me({html:h.description})},h.label))})})]})})},m.label):(0,s.jsxs)(Ps,{children:[(0,s.jsx)("div",{className:"inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",children:Me({html:m.label})}),(0,s.jsx)(Wi,{className:"ml-4 auto-collapse-nav",orientation:r,children:m.items.map(h=>(0,s.jsx)(x.Fragment,{children:n((0,s.jsx)(Fs,{href:l(h.href),target:i(h.href),className:Ms({orientation:r}),children:Me({html:h.label})},h.label),h.description)},h.label))})]},m.label):(0,s.jsx)(Ps,{children:(0,s.jsx)(Fs,{href:l(m.href),target:i(m.href),className:Ms({orientation:r}),children:Me({html:m.label})})},m.label),e[0]=r,e[1]=o);let d=o,u;if(e[2]!==a||e[3]!==d){let m;e[5]===d?m=e[6]:(m=h=>d(h),e[5]=d,e[6]=m),u=a.map(m),e[2]=a,e[3]=d,e[4]=u}else u=e[4];let c;e[7]!==r||e[8]!==u?(c=(0,s.jsx)(Wi,{className:"auto-collapse-nav",orientation:r,children:u}),e[7]=r,e[8]=u,e[9]=c):c=e[9];let p;return e[10]!==r||e[11]!==c?(p=(0,s.jsx)(Is,{orientation:r,children:c}),e[10]=r,e[11]=c,e[12]=p):p=e[12],p},a0=x.forwardRef((t,e)=>{let a=(0,t0.c)(19),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,label:i,children:r,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o;a[5]===n?o=a[6]:(o=U("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",n),a[5]=n,a[6]=o);let d;a[7]===i?d=a[8]:(d=Me({html:i}),a[7]=i,a[8]=d);let u;a[9]===d?u=a[10]:(u=(0,s.jsx)("div",{className:"text-base font-medium leading-none",children:d}),a[9]=d,a[10]=u);let c;a[11]===r?c=a[12]:(c=r&&(0,s.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:r}),a[11]=r,a[12]=c);let p;return a[13]!==l||a[14]!==e||a[15]!==o||a[16]!==u||a[17]!==c?(p=(0,s.jsx)("li",{children:(0,s.jsx)(Fs,{asChild:!0,children:(0,s.jsxs)("a",{ref:e,className:o,...l,children:[u,c]})})}),a[13]=l,a[14]=e,a[15]=o,a[16]=u,a[17]=c,a[18]=p):p=a[18],p});a0.displayName="ListItem";function oD(t,e){return e?(0,s.jsx)(Mt,{delayDuration:200,content:Me({html:e}),children:t}):t}function sD(t){return t.startsWith("http")?"_blank":"_self"}function dD(t){return N_({href:t,queryParams:new URL(globalThis.location.href).search,keys:[wu.filePath]})}function uD(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?uT(t,e):typeof t=="object"&&typeof e=="object"?cD(t,e):!1}function cD(t,e){return Object.keys(t).length===Object.keys(e).length&&Va.keys(t).every(a=>t[a]===e[a])}function Vs(t,e){if(!(window!=null&&window.customElements)){se.warn("Custom elements not supported");return}if(window.customElements.get(t)){se.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var mD=J();const pD=t=>{let e=(0,mD.c)(16),{error:a,badData:r,shadowRoot:n}=t;if(a instanceof LE){let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(qu,{children:"Bad Data"}),e[0]=l):l=e[0];let o;e[1]===a.issues?o=e[2]:(o=a.issues.map(fD),e[1]=a.issues,e[2]=o);let d;e[3]===o?d=e[4]:(d=(0,s.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,s.jsx)("ul",{children:o})}),e[3]=o,e[4]=d);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(MA,{className:"py-2 text-[0.84375rem]",children:"View Data:"}),e[5]=u):u=e[5];let c;e[6]===r?c=e[7]:(c=(0,s.jsx)(ev,{data:r}),e[6]=r,e[7]=c);let p;e[8]!==n||e[9]!==c?(p=(0,s.jsx)(FA,{type:"single",collapsible:!0,children:(0,s.jsxs)(PA,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[u,(0,s.jsx)(VA,{className:"text-[0.84375rem]",children:(0,s.jsx)(X1,{container:n,children:c})})]})}),e[8]=n,e[9]=c,e[10]=p):p=e[10];let m;return e[11]!==d||e[12]!==p?(m=(0,s.jsxs)(uo,{variant:"destructive",children:[l,d,p]}),e[11]=d,e[12]=p,e[13]=m):m=e[13],m}let i;return e[14]===a.message?i=e[15]:(i=(0,s.jsx)("div",{children:a.message}),e[14]=a.message,e[15]=i),i};function hD(t,e,a){return(0,s.jsx)(pD,{error:t,badData:e,shadowRoot:a})}function fD(t){let e=t.path.join(".");return(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"font-bold",children:e}),": ",t.message]},e)}function gD({hostElement:t,plugin:e,children:a,getInitialValue:r},n){let[i,l]=(0,x.useState)(a),[o,d]=(0,x.useState)(r()),{theme:u}=qr(),[c,p]=(0,x.useState)(()=>e.validator.safeParse(hu(t)));(0,x.useImperativeHandle)(n,()=>({reset:()=>{d(r()),p(e.validator.safeParse(hu(t)))},setChildren:g=>{l(g)}})),Fl(t,t_.TYPE,g=>{g.detail.element===t&&d(g.detail.value)}),(0,x.useEffect)(()=>{let g=new MutationObserver(f=>{f.some(v=>{var b;return v.type==="attributes"&&((b=v.attributeName)==null?void 0:b.startsWith("data-"))})&&p(e.validator.safeParse(hu(t)))});return g.observe(t,{attributes:!0}),()=>{g.disconnect()}},[t,e.validator]);let m=$e(g=>{d(f=>{let v=za.asUpdater(g)(f);return uD(v,f)||t.dispatchEvent(L1(v,t)),v})}),h=(0,x.useMemo)(()=>{if(!e.functions)return{};let g={};for(let[f,v]of Va.entries(e.functions)){let{input:b,output:w}=v;g[f]=async(...D)=>{var C;Br(D.length<=1,`Plugin functions only supports a single argument. Called ${f}`);let j=Os(t);Br(j,"Object ID should exist");let k=Kn(),N=(C=E1.findElementThroughShadowDOMs(t))==null?void 0:C.id,S=N?E1.parse(N):null;if(S&&!k){let _=Oe.get(T1),E=_.cellRuntime[S],T=_.cellData[S];if(NE({executionTime:E.runElapsedTimeMs??T.lastExecutionTime,status:E.status,errored:E.errored,interrupted:E.interrupted,stopped:E.stopped}))throw new IA}else se.warn(`Cell ID ${S} cannot be found`);let y=await XE.request({args:o0(b,D[0]),functionName:f,namespace:j});if(y.status.code!=="ok")throw se.error(y.status),Error(y.status.message||"Unknown error");return o0(w,y.return_value)}}return g},[e.functions,t]);return c.success?(0,s.jsx)(tA,{children:(0,s.jsx)("div",{className:`contents ${u}`,children:(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{}),children:e.render({setValue:m,value:o,data:c.data,children:i,host:t,functions:h})})})}):hD(c.error,Va.mapValues(t.dataset,g=>typeof g=="string"?C1(g):g),t.shadowRoot)}var xD=x.forwardRef(gD),zs=new Map,r0="__custom_marimo_element__";function n0(t){let e=class extends HTMLElement{constructor(){super();q(this,"mounted",!1);q(this,"pluginRef",(0,x.createRef)());q(this,"__type__",r0);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var r;(r=this.pluginRef.current)==null||r.setChildren(this.getChildren())})}connectedCallback(){this.mounted||(Br(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=py.createRoot(this.shadowRoot),this.mountReactComponent()),this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){var r;this.observer.disconnect(),(r=this.root)==null||r.unmount(),this.mounted&&(this.mounted=!1)}reset(){this.dispatchEvent(L1(C1(this.dataset.initialValue),this)),this.rerender()}rerender(){var r;(r=this.pluginRef.current)==null||r.reset()}getChildren(){return this.children.length===0?null:this.children.length===1?Me({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((r,n)=>(0,s.jsx)(x.Fragment,{children:Me({html:r.outerHTML,alwaysSanitizeHtml:!1})},n))}async mountReactComponent(){this.mounted=!0,Br(this.root,"Root must be defined"),this.root.render((0,s.jsx)(Rl,{store:Oe,children:(0,s.jsx)(bs,{children:(0,s.jsx)(xD,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>FE(this,s_.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let r=this.shadowRoot;if(Br(r,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser."),this.copyStylesFallback();return}let n=Array.from(document.styleSheets).filter(i=>i.ownerNode instanceof HTMLElement&&i.ownerNode.dataset.viteDevId?!0:i0(i));for(let i of n){let l=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(l&&!zs.has(l)){let o=new CSSStyleSheet;try{o.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(` +`))}catch{}zs.set(l,o)}}if(r.adoptedStyleSheets=[...zs.values()],t.cssStyles){let i=new CSSStyleSheet;i.replaceSync(t.cssStyles.join(` +`)),r.adoptedStyleSheets=[...r.adoptedStyleSheets,i]}}copyStylesFallback(){let r=this.shadowRoot;Br(r,"Shadow root should exist"),se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser.");let n=Array.from(document.styleSheets).flatMap(i=>{if(!i0(i))return[];let l=document.createElement("style");try{l.textContent=Array.from(i.cssRules).map(o=>o.cssText).join(` +`)}catch{return[]}return[l]});if(r.append(...n),t.cssStyles){let i=document.createElement("style");i.textContent=t.cssStyles.join(` +`),r.append(i)}}isAdoptedStyleSheetsSupported(){return"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype}};Vs(t.tagName,e)}function i0(t){var e;return(e=t.title)!=null&&e.startsWith("marimo")?!0:!t.href||!t.href.endsWith(".css")?!1:(t.href.includes("127.0.0.1"),t.href.includes("/@marimo-team/")?!0:t.href.startsWith(window.location.origin))}function l0(t){return!t||!(t instanceof HTMLElement)?!1:"__type__"in t&&t.__type__===r0}function o0(t,e){let a=t.safeParse(e);if(!a.success)throw se.log("Failed to parse data",e,a.error),Error($E(a.error));return a.data}var Ui="MARIMO-UI-ELEMENT";function vD(){class t extends HTMLElement{constructor(){super(...arguments);q(this,"initialized",!1);q(this,"inputListener",za.NOOP)}init(){if(this.initialized)return;let r=Bn.parseOrThrow(this);this.inputListener=i=>{r!==null&&i.detail.element===this.firstElementChild&&(Fa.has(r)||Fa.registerInstance(r,n),Fa.broadcastValueUpdate(n,r,i.detail.value))};let n=this.firstElementChild;if(r===null){se.error("[marimo-ui-element] missing object-id attribute");return}if(n===null){se.error("[marimo-ui-element] has no child");return}if(!(n instanceof HTMLElement)){se.error("[marimo-ui-element] first child must be instance of HTMLElement");return}this.initialized=!0}connectedCallback(){if(this.init(),this.initialized){let r=Bn.parseOrThrow(this),n=this.firstElementChild;Fa.registerInstance(r,n),document.addEventListener(Lr.TYPE,this.inputListener)}}disconnectedCallback(){if(this.initialized){document.removeEventListener(Lr.TYPE,this.inputListener);let r=Bn.parseOrThrow(this);Fa.removeInstance(r,this.firstElementChild)}}reset(){let r=this.firstElementChild;l0(r)?r.reset():se.error("[marimo-ui-element] first child must have a reset method")}static get observedAttributes(){return["random-id"]}attributeChangedCallback(r,n,i){if(this.initialized&&r==="random-id"&&n!==i){this.disconnectedCallback();let l=this.firstElementChild;l0(l)?l.rerender():se.error("[marimo-ui-element] first child must have a rerender method"),this.initialized=!1,this.connectedCallback()}}}Vs(Ui.toLowerCase(),t)}function Os(t){if(!t)return null;if(t.nodeName===Ui)return Bn.parseOrThrow(t);let e=t.parentElement;return(e==null?void 0:e.nodeName)===Ui?Bn.parseOrThrow(e):null}function yD(t){return t.tagName===Ui}var bD=(0,k_().init)({length:6});function wD(){Vs("marimo-sidebar",class extends HTMLElement{constructor(){super(...arguments);q(this,"uniqueId",Symbol(bD()))}connectedCallback(){this.mountReactComponent(),this.observer=new MutationObserver(()=>{this.updateReactComponent()}),this.style.display="none",this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){this.observer&&(this.observer.disconnect(),this.unmountReactComponent())}mountReactComponent(){this.syncWidth(),Un.mount({name:bu.SIDEBAR,ref:this.uniqueId,children:this.getContents()})}unmountReactComponent(){Un.unmount({name:bu.SIDEBAR,ref:this.uniqueId})}updateReactComponent(){this.syncWidth(),Un.update({name:bu.SIDEBAR,ref:this.uniqueId,children:this.getContents()})}syncWidth(){try{let e=this.dataset.width;e?Oe.set($1,{type:"setWidth",width:JSON.parse(e)}):Oe.set($1,{type:"setWidth",width:void 0})}catch(e){se.error(e)}}getContents(){return Me({html:this.innerHTML})}})}function Ft(t,e={}){return{withData(a){return{withFunctions(r){return{renderer(n){return{...e,tagName:t,validator:a,functions:r,render:n}}}},renderer(r){return{...e,tagName:t,validator:a,render:r}}}}}}const Ye={input(t){return{output(e){return{input:t,output:e}}}}};var DD=J();const jD=Ft("marimo-anywidget").withData($({jsUrl:M(),jsHash:M(),css:M().nullish()})).withFunctions({send_to_widget:Ye.input($({content:va(),buffers:ee(M().transform(t=>t))})).output(sr().optional())}).renderer(t=>(0,s.jsx)(CD,{...t}));var CD=t=>{var p;let{css:e,jsUrl:a,jsHash:r}=t.data,n=(0,x.useMemo)(()=>{var m;if(a_(t.value)){let h=e_(t.value);return se.debug("AnyWidget decoded wire format:",{bufferPaths:t.value.bufferPaths,buffersCount:(m=t.value.buffers)==null?void 0:m.length,decodedKeys:Object.keys(h)}),h}return se.warn("AnyWidget value is not wire format:",t.value),t.value},[t.value]),{data:i,error:l,refetch:o}=Et(async()=>{let m=E_(a).toString();return await yt(()=>import(m).then(async h=>(await h.__tla,h)),[],import.meta.url)},[r]),d=!!l;(0,x.useEffect)(()=>{d&&a&&o()},[d,a]),(0,x.useEffect)(()=>{let m=t.host.shadowRoot;if(!e||!m)return;if("adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype){let g=new CSSStyleSheet;try{return g.replaceSync(e),m&&(m.adoptedStyleSheets=[...m.adoptedStyleSheets,g]),()=>{m&&(m.adoptedStyleSheets=m.adoptedStyleSheets.filter(f=>f!==g))}}catch{}}let h=document.createElement("style");return h.innerHTML=e,m.append(h),()=>{h.remove()}},[e,t.host]);let u=$e(m=>t.setValue(o_(m)));if(l)return(0,s.jsx)(Qr,{error:l});if(!i)return null;if(!SD(i))return(0,s.jsx)(Qr,{error:Error(`Module at ${a} does not appear to be a valid anywidget`)});let c=((p=t.host.closest("[random-id]"))==null?void 0:p.getAttribute("random-id"))??a;return(0,s.jsx)(ED,{...t,widget:i.default,setValue:u,value:n},c)};async function kD(t,e,a){var i,l;let r={invoke:async(o,d,u)=>{let c="anywidget.invoke not supported in marimo. Please file an issue at https://github.com/marimo-team/marimo/issues";throw se.warn(c),Error(c)}};a.innerHTML="";let n=typeof t=="function"?await t():t;await((i=n.initialize)==null?void 0:i.call(n,{model:e,experimental:r}));try{let o=await((l=n.render)==null?void 0:l.call(n,{model:e,el:a,experimental:r}));return()=>{o==null||o()}}catch(o){return se.error("Error rendering anywidget",o),a.classList.add("text-error"),a.innerHTML=`Error rendering anywidget: ${Wv(o)}`,()=>{}}}function SD(t){var e,a;return t.default&&(typeof t.default=="function"||((e=t.default)==null?void 0:e.render)||((a=t.default)==null?void 0:a.initialize))}function ND(t){return typeof t=="object"&&!!t&&"model_id"in t}var ED=t=>{let e=(0,DD.c)(14),{value:a,setValue:r,widget:n,functions:i,data:l,host:o}=t,d=(0,x.useRef)(null),u;e[0]!==i.send_to_widget||e[1]!==r||e[2]!==a?(u=new n_(a,r,i.send_to_widget,new Set),e[0]=i.send_to_widget,e[1]=r,e[2]=a,e[3]=u):u=e[3];let c=(0,x.useRef)(u),p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=w=>{let D=w.detail.message;ND(D)?r_.get(D.model_id).then(j=>{j.receiveCustomMessage(D,w.detail.buffers)}):c.current.receiveCustomMessage(D,w.detail.buffers)},e[4]=p):p=e[4],Fl(o,yu.TYPE,p);let m;e[5]===n?m=e[6]:(m=()=>{if(!d.current)return;let w=kD(n,c.current,d.current);return()=>{w.then(_D)}},e[5]=n,e[6]=m);let h;e[7]!==l.jsUrl||e[8]!==n?(h=[n,l.jsUrl],e[7]=l.jsUrl,e[8]=n,e[9]=h):h=e[9],(0,x.useEffect)(m,h);let g=Ka(a),f,v;e[10]===g?(f=e[11],v=e[12]):(f=()=>{c.current.updateAndEmitDiffs(g)},v=[g],e[10]=g,e[11]=f,e[12]=v),(0,x.useEffect)(f,v);let b;return e[13]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)("div",{ref:d}),e[13]=b):b=e[13],b};function _D(t){return t()}const s0=ye(["neutral","success","warn","danger","info","alert"]).default("neutral");var TD=class{constructor(){q(this,"tagName","marimo-button");q(this,"validator",$({label:M(),kind:s0,disabled:W().default(!1),fullWidth:W().default(!1),tooltip:M().optional(),keyboardShortcut:M().optional()}))}render(t){let{data:{disabled:e,kind:a,label:r,fullWidth:n,tooltip:i,keyboardShortcut:l}}=t,o=(0,s.jsx)(Ce,{"data-testid":"marimo-plugin-button",variant:RD(a),disabled:e,size:"xs",keyboardShortcut:l,className:U({"w-full":n,"w-fit":!n}),onClick:u=>{e||(u.stopPropagation(),t.setValue(c=>c+1))},type:"submit",children:Me({html:r})}),d=l&&!i?(0,s.jsx)(Gv,{shortcut:l}):i;return d?(0,s.jsx)(Nt,{children:(0,s.jsx)(Mt,{content:d,delayDuration:200,children:o})}):o}};function RD(t){switch(t){case"neutral":return"secondary";case"danger":return"destructive";case"warn":return"warn";case"success":return"success"}}var AD=J();const Le=t=>{let e=(0,AD.c)(27),{label:a,children:r,align:n,className:i,labelClassName:l,fullWidth:o,id:d}=t,u=n===void 0?"left":n;if(o&&(u="top"),!a){if(u==="top"){let S;return e[0]!==r||e[1]!==i?(S=(0,s.jsx)("div",{className:i,children:r}),e[0]=r,e[1]=i,e[2]=S):S=e[2],S}let k;e[3]===i?k=e[4]:(k=U("inline-flex",i),e[3]=i,e[4]=k);let N;return e[5]!==r||e[6]!==k?(N=(0,s.jsx)("div",{className:k,children:r}),e[5]=r,e[6]=k,e[7]=N):N=e[7],N}let c;e[8]===l?c=e[9]:(c=U("font-prose",l),e[8]=l,e[9]=c);let p;e[10]===a?p=e[11]:(p=Me({html:a}),e[10]=a,e[11]=p);let m;e[12]!==d||e[13]!==c||e[14]!==p?(m=(0,s.jsx)(ti,{htmlFor:d,className:c,children:p}),e[12]=d,e[13]=c,e[14]=p,e[15]=m):m=e[15];let h=m,g=u==="top"&&"flex-col items-start gap-y-2",f=u==="left"&&"flex-row items-center gap-x-1.5 pr-2",v=u==="right"&&"flex-row-reverse items-center gap-x-1.5 pr-2",b=o&&"block space-y-2",w=!o&&"w-fit",D;e[16]!==i||e[17]!==g||e[18]!==f||e[19]!==v||e[20]!==b||e[21]!==w?(D=U("mo-label inline-flex","pt-0 pb-0 pl-0",g,f,v,b,w,i),e[16]=i,e[17]=g,e[18]=f,e[19]=v,e[20]=b,e[21]=w,e[22]=D):D=e[22];let j;return e[23]!==r||e[24]!==h||e[25]!==D?(j=(0,s.jsxs)("div",{className:D,children:[h,r]}),e[23]=r,e[24]=h,e[25]=D,e[26]=j):j=e[26],j};var ID=J(),PD=class{constructor(){q(this,"tagName","marimo-checkbox");q(this,"validator",$({initialValue:W(),label:M().nullable(),disabled:W().optional()}))}render(t){return(0,s.jsx)(MD,{...t})}},MD=t=>{let e=(0,ID.c)(11),{value:a,setValue:r,data:n}=t,i;e[0]===r?i=e[1]:(i=c=>{c!=="indeterminate"&&r(c)},e[0]=r,e[1]=i);let l=i,o=(0,x.useId)(),d;e[2]!==n.disabled||e[3]!==o||e[4]!==l||e[5]!==a?(d=(0,s.jsx)(pu,{"data-testid":"marimo-plugin-checkbox",checked:a,onCheckedChange:l,id:o,disabled:n.disabled}),e[2]=n.disabled,e[3]=o,e[4]=l,e[5]=a,e[6]=d):d=e[6];let u;return e[7]!==n.label||e[8]!==o||e[9]!==d?(u=(0,s.jsx)(Le,{label:n.label,align:"right",id:o,children:d}),e[7]=n.label,e[8]=o,e[9]=d,e[10]=u):u=e[10],u},FD=J(),VD=class{constructor(){q(this,"tagName","marimo-code-editor");q(this,"validator",$({initialValue:M(),language:M().default("python"),placeholder:M(),theme:ye(["light","dark"]).optional(),label:M().nullable(),disabled:W().optional(),minHeight:Y().optional(),maxHeight:Y().optional(),showCopyButton:W().optional(),debounce:Se([W(),Y()]).default(!1)}))}render(t){return(0,s.jsx)(zD,{...t.data,value:t.value,setValue:t.setValue})}},zD=t=>{let e=(0,FD.c)(34),{theme:a}=qr(),r=t.theme||a,n=t.minHeight?`${t.minHeight}px`:"70px",i=t.maxHeight?`${t.maxHeight}px`:void 0,[l,o]=(0,x.useState)(t.value),d=Number.isFinite(t.debounce)?t.debounce:0,u=!Number.isFinite(t.debounce),c;e[0]!==t.setValue||e[1]!==t.value||e[2]!==d||e[3]!==u?(c={initialValue:t.value,delay:d,onChange:t.setValue,disabled:u},e[0]=t.setValue,e[1]=t.value,e[2]=d,e[3]=u,e[4]=c):c=e[4];let{onChange:p}=Bv(c),m;e[5]!==t||e[6]!==p?(m=C=>{o(_=>C),typeof t.debounce=="number"?p(C):t.debounce||t.setValue(C)},e[5]=t,e[6]=p,e[7]=m):m=e[7];let h=$e(m),g,f;e[8]===t.value?(g=e[9],f=e[10]):(g=()=>{o(t.value)},f=[t.value],e[8]=t.value,e[9]=g,e[10]=f),(0,x.useEffect)(g,f);let v;e[11]!==l||e[12]!==t?(v=()=>{t.setValue(l)},e[11]=l,e[12]=t,e[13]=v):v=e[13];let b=$e(v),w;e:{if(t.debounce===!0){let _;e[14]===b?_=e[15]:(_=L_.domEventHandlers({blur:b}),e[14]=b,e[15]=_);let E;e[16]===_?E=e[17]:(E=[_],e[16]=_,e[17]=E),w=E;break e}let C;e[18]===Symbol.for("react.memo_cache_sentinel")?(C=[],e[18]=C):C=e[18],w=C}let D=w,j=`cm *:outline-hidden border rounded overflow-hidden ${r}`,k=r==="dark"?"dark":"light",N=!t.disabled,S;e[19]!==D||e[20]!==h||e[21]!==l||e[22]!==i||e[23]!==n||e[24]!==t.language||e[25]!==t.placeholder||e[26]!==t.showCopyButton||e[27]!==N||e[28]!==j||e[29]!==k?(S=(0,s.jsx)(OT,{className:j,theme:k,minHeight:n,maxHeight:i,placeholder:t.placeholder,editable:N,value:l,language:t.language,onChange:h,showCopyButton:t.showCopyButton,extensions:D}),e[19]=D,e[20]=h,e[21]=l,e[22]=i,e[23]=n,e[24]=t.language,e[25]=t.placeholder,e[26]=t.showCopyButton,e[27]=N,e[28]=j,e[29]=k,e[30]=S):S=e[30];let y;return e[31]!==t.label||e[32]!==S?(y=(0,s.jsx)(Nt,{children:(0,s.jsx)(Le,{label:t.label,align:"top",fullWidth:!0,children:S})}),e[31]=t.label,e[32]=S,e[33]=y):y=e[33],y},$s=J();const OD=t=>{var V;let[e,a]=(0,x.useState)(""),[r,n]=(0,x.useState)(t.config),[i,l]=(0,x.useState)(t.config),[o,d]=(0,x.useState)(void 0),u=(0,x.useRef)(null),c=(0,x.useRef)(null),p=(0,x.useRef)(null),m=(0,x.useRef)(null);Object.keys(t.config).some(A=>t.config[A]!==i[A])&&(n(t.config),l(t.config));let h=(0,x.useRef)(r);h.current=r;let g=(0,x.useRef)({backendMessageId:null,frontendMessageIndex:null}),f=(0,x.useRef)(null),{data:v}=Et(async()=>(await t.get_chat_history({})).messages,[]),b=t.value.length>0?t.value:v,{messages:w,sendMessage:D,setMessages:j,status:k,stop:N,error:S,regenerate:y,clearError:C}=zT({transport:new RT({fetch:async(A,O)=>{var Q;if(O===void 0)return fetch(A);let z=JSON.parse(O.body),L=O.signal,G={max_tokens:h.current.max_tokens,temperature:h.current.temperature,top_p:h.current.top_p,top_k:h.current.top_k,frequency_penalty:h.current.frequency_penalty,presence_penalty:h.current.presence_penalty};try{let ae=z.messages.map(le=>{var Z;return{...le,content:(Z=le.parts)==null?void 0:Z.map(B=>"text"in B?B.text:"").join(` +`)}}),ce=new ReadableStream({start(le){f.current=le;let Z=()=>{try{le.close()}catch(B){se.debug("Controller may already be closed",{error:B})}f.current=null};return L==null||L.addEventListener("abort",Z),()=>{L==null||L.removeEventListener("abort",Z)}},cancel(){f.current=null}});return t.send_prompt({messages:ae,config:G}).catch(le=>{var Z;(Z=f.current)==null||Z.error(le),f.current=null}),TT({stream:ce})}catch(ae){if(g.current={backendMessageId:null,frontendMessageIndex:null},ae instanceof Error&&ae.name==="AbortError")return new Response("Aborted",{status:499});let ce=(Q=ae.message)==null?void 0:Q.split("failed with exception ").pop();return new Response(ce,{status:400})}}}),messages:b,onFinish:A=>{d(void 0),u.current&&(u.current.value=""),se.debug("Finished streaming message:",A),g.current={backendMessageId:null,frontendMessageIndex:null},t.setValue(A.messages)},onError:A=>{se.error("An error occurred:",A),g.current={backendMessageId:null,frontendMessageIndex:null}}});Fl(t.host,yu.TYPE,A=>{let O=A.detail.message;if(typeof O!="object"||!O||!("type"in O)||O.type!=="stream_chunk")return;let z=f.current;if(!z)return;let L=O;L.content&&z.enqueue(L.content),L.is_final&&(z.close(),f.current=null)});let _=k==="submitted"||k==="streaming",E=A=>{let O=w.findIndex(z=>z.id===A);if(O!==-1){let z=w.filter(L=>L.id!==A);t.delete_chat_message({index:O}),j(z),t.setValue(z)}},T=Array.isArray(t.allowAttachments)&&t.allowAttachments.length>0||t.allowAttachments===!0,P={triggerCompletionRegex:/^\/(\w+)?/,completions:t.prompts.map(A=>({label:`/${A}`,displayLabel:A,apply:A}))},R=t.prompts.length>0?"Type your message here, / for prompts":"Type your message here...";(0,x.useEffect)(()=>{var A;(A=m.current)==null||A.scrollTo({top:m.current.scrollHeight,behavior:"smooth"})},[w.length,m]);let F=(V=p.current)==null?void 0:V.view,I=()=>{if(F){let A=F.state.doc.length;F.dispatch({changes:{from:0,to:A,insert:""}})}a("")};return(0,s.jsxs)("div",{className:"flex flex-col h-full bg-(--slate-1) rounded-lg shadow border border-(--slate-6) overflow-hidden relative",style:{maxHeight:t.maxHeight},children:[(0,s.jsx)("div",{className:"absolute top-0 right-0 flex justify-end z-10 border border-(--slate-6) bg-inherit rounded-bl-lg",children:(0,s.jsx)(Ce,{variant:"text",size:"icon",disabled:w.length===0,onClick:()=>{j([]),t.setValue([]),t.delete_chat_history({}),C()},children:(0,s.jsx)(uy,{className:"h-3 w-3"})})}),(0,s.jsxs)("div",{className:"grow overflow-y-auto gap-4 pt-8 pb-4 px-2 flex flex-col",ref:m,children:[w.length===0&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground text-center p-4",children:[(0,s.jsx)(LT,{className:"h-12 w-12 mb-4"}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No messages yet"}),(0,s.jsx)("p",{className:"text-sm",children:"Start a conversation by typing a message below."})]}),w.map((A,O)=>{var G;let z=(G=A.parts)==null?void 0:G.filter(Q=>Q.type==="text").map(Q=>Q.text).join(` +`),L=O===w.length-1;return(0,s.jsxs)("div",{className:U("flex flex-col group gap-2",A.role==="user"?"items-end":"items-start"),children:[(0,s.jsx)("div",{className:`max-w-[80%] p-3 rounded-lg ${A.role==="user"?"bg-(--sky-11) text-(--slate-1) whitespace-pre-wrap":"bg-(--slate-4) text-(--slate-12)"}`,children:qA({message:A,isStreamingReasoning:k==="streaming",isLast:L})}),(0,s.jsxs)("div",{className:"flex justify-end text-xs gap-2 invisible group-hover:visible",children:[(0,s.jsx)(so,{value:z,className:"h-3 w-3",buttonClassName:"text-xs text-(--slate-9) hover:text-(--slate-11)"}),(0,s.jsx)("button",{type:"button",onClick:()=>E(A.id),className:"text-xs text-(--slate-9) hover:text-(--slate-11)",children:(0,s.jsx)(Sv,{className:"h-3 w-3 text-(--red-9)"})})]})]},`${A.id}-${O}`)}),_&&(0,s.jsxs)("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[(0,s.jsx)(qn,{size:"small"}),(0,s.jsx)(Ce,{variant:"link",size:"sm",onClick:()=>N(),className:"text-(--red-9) hover:text-(--red-11)",children:"Stop"})]}),S&&(0,s.jsxs)("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[(0,s.jsx)(Qr,{error:S}),(0,s.jsx)(Ce,{variant:"outline",size:"sm",onClick:()=>y(),children:"Retry"})]})]}),(0,s.jsxs)("form",{onSubmit:async A=>{A.preventDefault();let O=o?await MT(o):void 0;D({role:"user",parts:[{type:"text",text:e},...O??[]]}),I()},ref:c,className:"flex w-full border-t border-(--slate-6) px-2 py-1 items-center",children:[t.showConfigurationControls&&(0,s.jsx)($D,{config:r,onChange:n}),t.prompts.length>0&&(0,s.jsx)(LD,{prompts:t.prompts,onSelect:A=>{a(A),requestAnimationFrame(()=>{F==null||F.focus(),yE(F)})}}),(0,s.jsx)(VT,{className:"rounded-sm mr-2",placeholder:R,value:e,inputRef:p,maxHeight:t.maxHeight?`${t.maxHeight/2}px`:void 0,onChange:a,onSubmit:(A,O)=>{var z;O.trim()&&((z=c.current)==null||z.requestSubmit())},onClose:()=>{},additionalCompletions:P}),o&&o.length===1&&(0,s.jsx)("span",{title:o[0].name,className:"text-sm text-(--slate-11) truncate shrink-0 w-fit max-w-24",children:o[0].name}),o&&o.length>1&&(0,s.jsxs)("span",{title:[...o].map(A=>A.name).join(` +`),className:"text-sm text-(--slate-11) truncate shrink-0",children:[o.length," files"]}),o&&o.length>0&&(0,s.jsx)(Ce,{type:"button",variant:"text",size:"sm",onClick:()=>{d(void 0),u.current&&(u.current.value="")},children:(0,s.jsx)(Hr,{className:"size-3"})}),T&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ce,{type:"button",variant:"text",size:"sm",onClick:()=>{var A;return(A=u.current)==null?void 0:A.click()},children:(0,s.jsx)(BT,{className:"h-4"})}),(0,s.jsx)("input",{type:"file",ref:u,className:"hidden",multiple:!0,accept:Array.isArray(t.allowAttachments)?t.allowAttachments.join(","):void 0,onChange:A=>{A.target.files&&d([...A.target.files])}})]}),(0,s.jsx)(Ce,{type:"submit",disabled:_||!e,variant:"outline",size:"sm",className:"text-(--slate-11)",children:(0,s.jsx)(AT,{className:"h-5 w-5"})})]})]})};var wn={max_tokens:{min:1,max:4096,description:"Maximum number of tokens to generate"},temperature:{min:0,max:2,step:.1,description:"Controls randomness (0: deterministic, 2: very random)"},top_p:{min:0,max:1,step:.1,description:"Nucleus sampling: probability mass to consider"},top_k:{min:1,max:100,description:"Top-k sampling: number of highest probability tokens to consider"},frequency_penalty:{min:-2,max:2,description:"Penalizes frequent tokens (-2: favor, 2: avoid)"},presence_penalty:{min:-2,max:2,description:"Penalizes new tokens (-2: favor, 2: avoid)"}},$D=t=>{let e=(0,$s.c)(16),{config:a,onChange:r}=t,[n,i]=(0,x.useState)(!1),l;e[0]!==a||e[1]!==r?(l=(f,v)=>{let b=v===null||Number.isNaN(v)?null:v;if(b!==null){let{min:w,max:D}=wn[f];b=Math.max(w,Math.min(D,b))}r({...a,[f]:b})},e[0]=a,e[1]=r,e[2]=l):l=e[2];let o=l,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=f=>{f.key==="Enter"&&(f.preventDefault(),i(!1))},e[3]=d):d=e[3];let u=d,c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(Mt,{content:"Configuration",children:(0,s.jsx)(_A,{asChild:!0,children:(0,s.jsx)(Ce,{variant:"outline",size:"sm",className:"border-none shadow-none hover:bg-transparent",children:(0,s.jsx)(RR,{className:"h-3 w-3"})})})}),e[4]=c):c=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)("h4",{className:"font-bold leading-none",children:"Configuration"}),e[5]=p):p=e[5];let m;if(e[6]!==a||e[7]!==o){let f;e[9]===o?f=e[10]:(f=v=>{let[b,w]=v;return(0,s.jsxs)("div",{className:"grid grid-cols-3 items-center gap-1",children:[(0,s.jsxs)(ti,{htmlFor:b,className:"flex w-full justify-between col-span-3 align-end",children:[qE(b),(0,s.jsx)(Mt,{delayDuration:200,side:"top",content:(0,s.jsx)("div",{className:"text-xs flex flex-col",children:wn[b].description}),children:(0,s.jsx)(eR,{className:"h-3 w-3 cursor-help text-muted-foreground hover:text-foreground"})})]}),(0,s.jsx)(Fu,{id:b,"aria-label":b,value:w??NaN,placeholder:"null",minValue:wn[b].min,maxValue:wn[b].max,step:wn[b].step??1,onChange:D=>o(b,D),onKeyDown:u,className:"col-span-3"})]},b)},e[9]=o,e[10]=f),m=Va.entries(a).map(f),e[6]=a,e[7]=o,e[8]=m}else m=e[8];let h;e[11]===m?h=e[12]:(h=(0,s.jsx)($v,{className:"w-70 border",children:(0,s.jsxs)("div",{className:"grid gap-3",children:[p,m]})}),e[11]=m,e[12]=h);let g;return e[13]!==n||e[14]!==h?(g=(0,s.jsxs)(Lv,{open:n,onOpenChange:i,children:[c,h]}),e[13]=n,e[14]=h,e[15]=g):g=e[15],g},LD=t=>{let e=(0,$s.c)(18),{prompts:a,onSelect:r}=t,[n,i]=(0,x.useState)(!1),[l,o]=(0,x.useState)(""),d;e[0]===r?d=e[1]:(d=v=>{[...v.matchAll(/{{(\w+)}}/g)].length>0?(o(v),i(!0)):r(v)},e[0]=r,e[1]=d);let u=d,c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(Mt,{content:"Select a prompt",children:(0,s.jsx)(cv,{asChild:!0,children:(0,s.jsx)(Ce,{variant:"outline",size:"sm",className:"border-none shadow-none hover:bg-transparent",children:(0,s.jsx)(JT,{className:"h-3 w-3"})})})}),e[2]=c):c=e[2];let p;if(e[3]!==u||e[4]!==a){let v;e[6]===u?v=e[7]:(v=(b,w)=>(0,s.jsx)(_u,{onSelect:()=>u(b),className:"whitespace-normal text-left",children:b},w),e[6]=u,e[7]=v),p=a.map(v),e[3]=u,e[4]=a,e[5]=p}else p=e[5];let m;e[8]===p?m=e[9]:(m=(0,s.jsx)(EA,{children:(0,s.jsxs)(pv,{children:[c,(0,s.jsx)(mv,{side:"right",align:"end",onCloseAutoFocus:HD,className:"w-64 max-h-96 overflow-y-auto",children:p})]})}),e[8]=p,e[9]=m);let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>i(!1),e[10]=h):h=e[10];let g;e[11]!==r||e[12]!==l?(g=(0,s.jsx)($v,{side:"right",align:"end",className:"min-w-80 px-2",children:(0,s.jsx)(BD,{prompt:l,onClose:h,onSelect:r})}),e[11]=r,e[12]=l,e[13]=g):g=e[13];let f;return e[14]!==n||e[15]!==m||e[16]!==g?(f=(0,s.jsxs)(Lv,{open:n,onOpenChange:i,children:[m,g]}),e[14]=n,e[15]=m,e[16]=g,e[17]=f):f=e[17],f},BD=t=>{let e=(0,$s.c)(32),{prompt:a,onClose:r,onSelect:n}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={},e[0]=i):i=e[0];let[l,o]=(0,x.useState)(i),d,u;e[1]===a?(d=e[2],u=e[3]):(d=()=>{o([...a.matchAll(/{{(\w+)}}/g)].reduce(WD,{}))},u=[a],e[1]=a,e[2]=d,e[3]=u),(0,x.useEffect)(d,u);let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=(S,y)=>{o(C=>({...C,[S]:y}))},e[4]=c):c=e[4];let p=c,m;if(e[5]!==a||e[6]!==l){let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=/{{(\w+)}}/g,e[8]=S):S=e[8];let y;e[9]===l?y=e[10]:(y=(C,_)=>l[_]||`{{${_}}}`,e[9]=l,e[10]=y),m=a.replaceAll(S,y),e[5]=a,e[6]=l,e[7]=m}else m=e[7];let h=m,g;e[11]===l?g=e[12]:(g=Object.values(l).some(UD),e[11]=l,e[12]=g);let f=g,v;e[13]!==r||e[14]!==n||e[15]!==h?(v=()=>{n(h),r()},e[13]=r,e[14]=n,e[15]=h,e[16]=v):v=e[16];let b=v,w;e[17]===l?w=e[18]:(w=Object.entries(l),e[17]=l,e[18]=w);let D;e[19]!==b||e[20]!==f||e[21]!==w?(D=w.map((S,y)=>{let[C,_]=S;return(0,s.jsxs)("div",{className:"grid grid-cols-4 items-center gap-2",children:[(0,s.jsx)(ti,{htmlFor:C,className:"font-semibold text-base",children:C}),(0,s.jsx)(Vu,{id:C,value:_,onChange:E=>p(C,E.target.value),rootClassName:"col-span-3 w-full",className:"m-0",placeholder:`Enter value for ${C}`,autoFocus:y===0,onKeyDown:E=>{E.key==="Enter"&&!f&&b()}})]},C)}),e[19]=b,e[20]=f,e[21]=w,e[22]=D):D=e[22];let j;e[23]===h?j=e[24]:(j=(0,s.jsx)("div",{className:"grid gap-2 prose dark:prose-invert",children:(0,s.jsx)("blockquote",{className:"text-sm",children:h})}),e[23]=h,e[24]=j);let k;e[25]!==b||e[26]!==f?(k=(0,s.jsx)(Ce,{onClick:b,size:"xs",disabled:f,children:"Submit"}),e[25]=b,e[26]=f,e[27]=k):k=e[27];let N;return e[28]!==j||e[29]!==k||e[30]!==D?(N=(0,s.jsxs)("div",{className:"grid gap-4",children:[D,j,k]}),e[28]=j,e[29]=k,e[30]=D,e[31]=N):N=e[31],N};function HD(t){return t.preventDefault()}function WD(t,e){return t[e[1]]="",t}function UD(t){return t==null||t.trim()===""}var d0=ee($({id:M(),role:ye(["system","user","assistant"]),content:M().nullable(),parts:ee(Ht()),metadata:Ht().nullable()})),u0=$({max_tokens:Y().nullable(),temperature:Y().nullable(),top_p:Y().nullable(),top_k:Y().nullable(),frequency_penalty:Y().nullable(),presence_penalty:Y().nullable()});const KD=Ft("marimo-chatbot").withData($({prompts:ee(M()).default(ya.EMPTY),showConfigurationControls:W(),maxHeight:Y().optional(),config:u0,allowAttachments:Se([W(),M().array()])})).withFunctions({get_chat_history:Ye.input($({})).output($({messages:d0})),delete_chat_history:Ye.input($({})).output(sr()),delete_chat_message:Ye.input($({index:Y()})).output(sr()),send_prompt:Ye.input($({messages:d0,config:u0})).output(va())}).renderer(t=>{var e;return(0,s.jsx)(Nt,{children:(0,s.jsx)(x.Suspense,{children:(0,s.jsx)(OD,{prompts:t.data.prompts,showConfigurationControls:t.data.showConfigurationControls,maxHeight:t.data.maxHeight,allowAttachments:t.data.allowAttachments,config:t.data.config,get_chat_history:t.functions.get_chat_history,delete_chat_history:t.functions.delete_chat_history,delete_chat_message:t.functions.delete_chat_message,send_prompt:t.functions.send_prompt,value:((e=t.value)==null?void 0:e.messages)||ya.EMPTY,setValue:a=>t.setValue({messages:a}),host:t.host})})})});var ZD='.gdg-r17m35ur{background-color:var(--gdg-bg-header-has-focus);box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);font:var(--gdg-header-font-style)var(--gdg-font-family);min-height:var(--r17m35ur-0);border:none;border-radius:9px;outline:none;flex-grow:1;padding:0 8px}.gdg-c1tqibwd{background-color:var(--gdg-bg-header);align-items:center;padding:0 8px}.gdg-c1tqibwd,.gdg-d19meir1{display:flex}.gdg-d19meir1{box-sizing:border-box;--overlay-top:var(--d19meir1-0);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);left:var(--d19meir1-1);max-height:calc(100vh - var(--d19meir1-4));max-width:400px;min-height:var(--d19meir1-3);min-width:var(--d19meir1-2);text-align:start;top:var(--d19meir1-0);flex-direction:column;width:max-content;position:absolute;overflow:hidden}@keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0}to{opacity:1}}.gdg-d19meir1.gdg-style{background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;border-radius:2px;animation:60ms glide_fade_in-gdg-d19meir1}.gdg-d19meir1.gdg-pad{padding:var(--d19meir1-5)8.5px 3px}.gdg-d19meir1 .gdg-clip-region{border-radius:2px;flex-direction:column;flex-grow:1;display:flex;overflow:hidden auto}.gdg-d19meir1 .gdg-clip-region .gdg-growing-entry{height:100%}.gdg-d19meir1 .gdg-clip-region input.gdg-input{border:0;outline:none;width:100%}.gdg-d19meir1 .gdg-clip-region textarea.gdg-input{border:0;outline:none}.gdg-b1ygi5by{flex-wrap:wrap;margin-top:auto;margin-bottom:auto}.gdg-b1ygi5by,.gdg-b1ygi5by .boe-bubble{display:flex}.gdg-b1ygi5by .boe-bubble{background-color:var(--gdg-bg-bubble);border-radius:var(--gdg-rounding-radius,10px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:20px;margin:2px;padding:0 8px}.gdg-b1ygi5by textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-u1rrojo{align-items:center;min-height:21px;display:flex}.gdg-u1rrojo,.gdg-u1rrojo .gdg-link-area{flex-grow:1}.gdg-u1rrojo .gdg-link-area{color:var(--gdg-link-color);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;margin-right:8px;overflow:hidden;-webkit-text-decoration:underline!important;text-decoration:underline!important}.gdg-u1rrojo .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;width:32px;display:flex}.gdg-u1rrojo .gdg-edit-icon>*{width:24px;height:24px}.gdg-u1rrojo textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-n15fjm3e{color:var(--gdg-text-dark);margin:6px 0 3px;display:flex}.gdg-n15fjm3e>input{background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);padding:0}.gdg-i2iowwq,.gdg-i2iowwq .gdg-centering-container{height:100%;display:flex}.gdg-i2iowwq .gdg-centering-container{justify-content:center;align-items:center}.gdg-i2iowwq .gdg-centering-container canvas,.gdg-i2iowwq .gdg-centering-container img{max-height:calc(100vh - var(--overlay-top) - 20px);object-fit:contain;user-select:none}.gdg-i2iowwq .gdg-centering-container canvas{max-width:380px}.gdg-i2iowwq .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;justify-content:center;align-items:center;width:48px;height:48px;display:flex;position:absolute;top:12px;right:0}.gdg-i2iowwq .gdg-edit-icon>*{width:24px;height:24px}.gdg-i2iowwq textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-m1pnx84e{min-width:var(--m1pnx84e-0);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;width:100%;color:var(--gdg-text-dark);justify-content:space-between;align-items:flex-start;display:flex;position:relative}.gdg-m1pnx84e .gdg-g1y0xocz{flex-shrink:1;min-width:0}.gdg-m1pnx84e .gdg-spacer{flex:1}.gdg-m1pnx84e .gdg-edit-icon{cursor:pointer;color:var(--gdg-accent-color);width:24px;height:24px;-webkit-transition:all "0.125s ease";transition:all "0.125s ease";border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex;position:relative}.gdg-m1pnx84e .gdg-edit-icon>*{width:16px;height:16px}.gdg-m1pnx84e .gdg-edit-hover:hover{background-color:var(--gdg-accent-light);transition:background-color .15s}.gdg-m1pnx84e .gdg-checkmark-hover:hover{background-color:var(--gdg-accent-color);color:#fff}.gdg-m1pnx84e .gdg-md-edit-textarea{opacity:0;width:0;height:0;margin-top:25px;padding:0;position:relative;top:0;left:0}.gdg-m1pnx84e .gdg-ml-6{margin-left:6px}.gdg-d4zsq0x{flex-wrap:wrap}.gdg-d4zsq0x,.gdg-d4zsq0x .doe-bubble{display:flex}.gdg-d4zsq0x .doe-bubble{background-color:var(--gdg-bg-cell);border-radius:var(--gdg-rounding-radius,6px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:24px;margin:2px;padding:0 8px;box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.gdg-d4zsq0x .doe-bubble img{object-fit:contain;height:16px;margin-right:4px}.gdg-d4zsq0x textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.gdg-s1dgczr6 .dvn-scroller{overflow:var(--s1dgczr6-0);transform:translateZ(0)}.gdg-s1dgczr6 .dvn-hidden{visibility:hidden}.gdg-s1dgczr6 .dvn-scroll-inner{pointer-events:none;display:flex}.gdg-s1dgczr6 .dvn-scroll-inner>*{flex-shrink:0}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-spacer{flex-grow:1}.gdg-s1dgczr6 .dvn-scroll-inner .dvn-stack{flex-direction:column;display:flex}.gdg-s1dgczr6 .dvn-underlay>*{position:absolute;top:0;left:0}.gdg-s1dgczr6 canvas{outline:none}.gdg-s1dgczr6 canvas *{height:0}.gdg-izpuzkl{font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);resize:none;white-space:pre-wrap;-webkit-text-fill-color:var(--gdg-text-dark);width:100%;min-width:100%;height:100%;color:var(--gdg-text-dark);background-color:#0000;border:0;border-radius:0;margin:0;padding:0;line-height:16px;position:absolute;inset:0;overflow:hidden}.gdg-izpuzkl::-webkit-input-placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.gdg-izpuzkl:-ms-placeholder-shown{color:var(--gdg-text-light)}.gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.gdg-invalid .gdg-izpuzkl{text-decoration:underline #d60606}.gdg-s69h75o{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);width:max-content;min-width:100%;max-width:100%;margin:0;padding:0 0 2px;line-height:16px}.gdg-g1y0xocz{margin-top:6px;position:relative}.gdg-wmyidgi{height:var(--wmyidgi-1);min-width:10px;max-width:100%;min-height:10px;max-height:100%;width:var(--wmyidgi-0);direction:ltr;position:relative;overflow:clip}.gdg-wmyidgi>:first-child{width:100%;height:100%;position:absolute;top:0;left:0}.gdg-seveqep{background-color:var(--gdg-bg-cell);border:1px solid var(--gdg-border-color);color:var(--gdg-text-dark);font-size:var(--gdg-editor-font-size);border-radius:6px;padding:8px;animation:.15s forwards gdg-search-fadein-gdg-seveqep;position:absolute;top:4px;right:20px}.gdg-seveqep.out{animation:.15s forwards gdg-search-fadeout-gdg-seveqep}.gdg-seveqep .gdg-search-bar-inner{display:flex}.gdg-seveqep .gdg-search-status{padding-top:4px;font-size:11px}.gdg-seveqep .gdg-search-progress{background-color:var(--gdg-text-light);height:4px;position:absolute;bottom:0;left:0}.gdg-seveqep input{background-color:var(--gdg-bg-cell);color:var(--gdg-textDark);border:0;outline:none;width:220px}.gdg-seveqep button{width:24px;height:24px;color:var(--gdg-text-medium);cursor:pointer;background:0 0;border:none;outline:none;justify-content:center;align-items:center;padding:0;display:flex}.gdg-seveqep button:hover{color:var(--gdg-text-dark)}.gdg-seveqep button .button-icon{width:16px;height:16px}.gdg-seveqep button:disabled{opacity:.4;pointer-events:none}@keyframes gdg-search-fadeout-gdg-seveqep{0%{transform:translate(0)}to{transform:translate(400px)}}@keyframes gdg-search-fadein-gdg-seveqep{0%{transform:translate(400px)}to{transform:translate(0)}}.gdg-mnuv029{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.gdg-mnuv029>*{margin:0}.gdg-mnuv029 :last-child{margin-bottom:0}.gdg-mnuv029 p img{width:100%}',qD=J();const c0=t=>{let e=(0,qD.c)(14),{wrapperClassName:a,className:r,pageSize:n}=t,i=n===void 0?10:n,l;e[0]===a?l=e[1]:(l=U(a,"flex flex-col space-y-2"),e[0]=a,e[1]=l);let o=r||"rounded-md border",d;e[2]===o?d=e[3]:(d=U(o),e[2]=o,e[3]=d);let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(Yv,{children:Array.from({length:1}).map(GD)}),e[4]=u):u=e[4];let c;e[5]===i?c=e[6]:(c=(0,s.jsxs)(Qu,{children:[u,(0,s.jsx)(Gu,{children:Array.from({length:i}).map(JD)})]}),e[5]=i,e[6]=c);let p;e[7]!==d||e[8]!==c?(p=(0,s.jsx)("div",{className:d,children:c}),e[7]=d,e[8]=c,e[9]=p):p=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)("div",{className:"flex align-items justify-between shrink-0 h-8"}),e[10]=m):m=e[10];let h;return e[11]!==l||e[12]!==p?(h=(0,s.jsxs)("div",{className:l,children:[p,m]}),e[11]=l,e[12]=p,e[13]=h):h=e[13],h};function YD(t,e){return(0,s.jsx)(Yu,{children:(0,s.jsx)("div",{className:"h-4 bg-(--slate-5) animate-pulse rounded-md w-[70%]"})},e)}function GD(t,e){return(0,s.jsx)(Jr,{children:Array.from({length:8}).map(YD)},e)}function QD(t,e){return(0,s.jsx)(pr,{children:(0,s.jsx)("div",{className:"h-4 bg-(--slate-5) animate-pulse rounded-md w-[90%]"})},e)}function JD(t,e){return(0,s.jsx)(Jr,{children:Array.from({length:8}).map(QD)},e)}const Ki=["string","boolean","integer","number","date","datetime","time","unknown"];function XD(t){return!t||Object.keys(t).length===0?"auto":Va.mapValues(t,e=>e==="date"||e==="time"?"string":e==="datetime"?"date":e)}var ej=J(),tj=x.lazy(()=>yt(()=>import("./glide-data-editor-CFXeoAXC.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([333,5,116,13,14,15,9,10,11,7,8,12,35,71,16,17,19,20,21,22,72,84,18,83,26,27,28,29,64,65,42,85,46,30,86,87,88,89,81,82,24,40,41,43,44,334,45,25,31,32,33,100,335,336,163,73,105,107,279,280,337]),import.meta.url));const aj=Ft("marimo-data-editor",{cssStyles:[ZD]}).withData($({initialValue:$({edits:ee($({rowIdx:Y(),columnId:M(),value:va()}))}),label:M().nullable(),data:Se([M(),ee($({}).passthrough())]),fieldTypes:ee(Pa([P1(),Pa([ye(Ki),M()])])).nullish(),editableColumns:Se([ee(M()),He("all")]),columnSizingMode:ye(["auto","fit"]).default("auto")})).withFunctions({}).renderer(t=>(0,s.jsx)(Tv,{children:(0,s.jsx)(rj,{data:t.data.data,fieldTypes:t.data.fieldTypes,edits:t.value,onEdits:t.setValue,host:t.host,editableColumns:t.data.editableColumns})}));var rj=t=>{let e=(0,ej.c)(31),a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],e[0]=a):a=e[0];let[r,n]=(0,x.useState)(a),i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={},e[1]=i):i=e[1];let[l,o]=(0,x.useState)(i),d,u;e[2]!==t.data||e[3]!==t.fieldTypes?(d=async()=>{let w=Cu(t.fieldTypes??[]),D=Array.isArray(t.data)?t.data:await z1(t.data,{type:"csv",parse:XD(w)},{handleBigIntAndNumberLike:!0});n(D),o(Cu(t.fieldTypes??Su(D)))},u=[t.fieldTypes,t.data],e[2]=t.data,e[3]=t.fieldTypes,e[4]=d,e[5]=u):(d=e[4],u=e[5]);let{error:c}=Et(d,u);if(c){let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(qu,{children:"Error"}),e[6]=w):w=e[6];let D=c.message||"An unknown error occurred",j;return e[7]===D?j=e[8]:(j=(0,s.jsxs)(uo,{variant:"destructive",className:"mb-2",children:[w,(0,s.jsx)("div",{className:"text-md",children:D})]}),e[7]=D,e[8]=j),j}if(!r){let w;return e[9]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(ju,{milliseconds:200,children:(0,s.jsx)(c0,{pageSize:10})}),e[9]=w):w=e[9],w}let p;e[10]===t?p=e[11]:(p=w=>{t.onEdits(D=>({...D,edits:[...D.edits,...w]}))},e[10]=t,e[11]=p);let m;e[12]!==r||e[13]!==t?(m=w=>{let D=w.flatMap((j,k)=>Object.entries(j).map(N=>{let[S,y]=N;return{rowIdx:r.length+k,columnId:S,value:y}}));t.onEdits(j=>({...j,edits:[...j.edits,...D]}))},e[12]=r,e[13]=t,e[14]=m):m=e[14];let h,g,f,v;e[15]===t?(h=e[16],g=e[17],f=e[18],v=e[19]):(h=w=>{t.onEdits(D=>{let j=w.map(nj);return{...D,edits:[...D.edits,...j]}})},g=(w,D)=>{t.onEdits(j=>({...j,edits:[...j.edits,{columnIdx:w,newName:D,type:Bl.Rename}]}))},f=w=>{t.onEdits(D=>({...D,edits:[...D.edits,{columnIdx:w,type:Bl.Remove}]}))},v=(w,D)=>{t.onEdits(j=>({...j,edits:[...j.edits,{columnIdx:w,newName:D,type:Bl.Insert}]}))},e[15]=t,e[16]=h,e[17]=g,e[18]=f,e[19]=v);let b;return e[20]!==l||e[21]!==r||e[22]!==t.editableColumns||e[23]!==t.edits.edits||e[24]!==p||e[25]!==m||e[26]!==h||e[27]!==g||e[28]!==f||e[29]!==v?(b=(0,s.jsx)(tj,{data:r,setData:n,columnFields:l,setColumnFields:o,editableColumns:t.editableColumns,edits:t.edits.edits,onAddEdits:p,onAddRows:m,onDeleteRows:h,onRenameColumn:g,onDeleteColumn:f,onAddColumn:v}),e[20]=l,e[21]=r,e[22]=t.editableColumns,e[23]=t.edits.edits,e[24]=p,e[25]=m,e[26]=h,e[27]=g,e[28]=f,e[29]=v,e[30]=b):b=e[30],b};function nj(t,e){return{rowIdx:t-e,type:Bl.Remove}}var ij=" ";function Zi(t){return t.split(` +`).map(e=>ij+e).join(` +`)}function lj(t){return` +${Zi(t.map(qi).join(`, +`))} +`}function qi(t){return typeof t=="string"?t:t.toCode()}var oj=class{constructor(t){this.name=t}toCode(){return this.name}},tr=class mo{constructor(e,a={}){this.value=e,this.opts=a}static from(e,a={}){return new mo(e,a)}toCode(){let{removeNull:e=!1,removeUndefined:a=!0}=this.opts;if(this.value===void 0)return a?"":"None";if(this.value===null)return e?"":"None";if(typeof this.value=="string")return`'${this.value}'`;if(typeof this.value=="boolean")return this.value?"True":"False";if(typeof this.value=="object"&&"toCode"in this.value)return this.value.toCode();if(Array.isArray(this.value))return this.value.length===0?"[]":`[ +${Zi(this.value.map(r=>new mo(r,this.opts).toCode()).filter(r=>r!=="").join(`, +`))} +]`;if(typeof this.value=="object"){let r=Object.entries(this.value);return r.length===0?"{}":`{ +${Zi(r.map(n=>{let[i,l]=n,o=new mo(l,this.opts).toCode();return o===""?"":`'${i}': ${o}`}).filter(Boolean).join(`, +`))} +}`}return String(this.value)}},sj=class{constructor(t,e){this.name=t,this.value=e}toCode(){let t=qi(this.value);return t.includes(` +`)?`${this.name} = ( +${Zi(t)} +)`:`${this.name} = ${t}`}},dj=class{constructor(t,e){this.name=t,this.value=e}toCode(){return`${this.name}=${qi(this.value)}`}},_a=class tc{constructor(e,a,r=!1){this.name=e,this.multiLine=r,this.args=m0(a)}toCode(){return this.multiLine?this.args.length===0?`${this.name}()`:this.args.length===1?`${this.name}(${this.args[0].toCode()})`:`${this.name}(${lj(this.args)})`:`${this.name}(${this.args.map(qi).join(", ")})`}addArg(...e){return new tc(this.name,[...this.args,...e],this.multiLine)}chain(e,a){return a=m0(a),new tc(this.multiLine?`${this.toCode()} +.${e}`:`${this.toCode()}.${e}`,a,this.multiLine)}};function m0(t){if(Array.isArray(t))return t;let e=Object.entries(t);return e.length===0?[]:e.map(([a,r])=>new dj(a,r))}function uj(t,e){var n,i,l;let a=new _a("alt.Chart",[new oj(e)],!0);if("mark"in t){let o=typeof t.mark=="string"?t.mark:(n=t.mark)==null?void 0:n.type;if(o){let d={};typeof t.mark=="object"&&"type"in t.mark&&(d=Object.fromEntries(Object.entries(t.mark).filter(([u])=>u!=="type").map(([u,c])=>[u,new tr(c)]))),a=a.chain(`mark_${o}`,d)}}if("encoding"in t){let o={},d=t.encoding;if(d!=null&&d.x&&(o.x=new _a("alt.X",ar(d.x))),d!=null&&d.y&&(o.y=new _a("alt.Y",ar(d.y))),d!=null&&d.color&&(o.color=new _a("alt.Color",ar(d.color))),d!=null&&d.theta&&(o.theta=new _a("alt.Theta",ar(d.theta))),d&&"row"in d&&d.row&&(o.row=new _a("alt.Row",ar(d.row))),d&&"column"in d&&d.column&&(o.column=new _a("alt.Column",ar(d.column))),d==null?void 0:d.tooltip){let u=d.tooltip,c=p=>new _a("alt.Tooltip",ar(p));o.tooltip=Array.isArray(u)?new tr(u.map(c)):c(u)}a=a.chain("encode",o)}if(t.resolve){let o=t.resolve,d={};(i=o.axis)!=null&&i.x&&(d.x=new tr(o.axis.x)),(l=o.axis)!=null&&l.y&&(d.y=new tr(o.axis.y)),a=a.chain("resolve_scale",d)}let r={};for(let o of["title","height","width","config"])if(o in t){let d=t[o];d!==void 0&&(r[o]=new tr(d))}return Object.keys(r).length>0&&(a=a.chain("properties",r)),a}function cj(t,e,a){return` +# replace ${e} with your data source +${new sj(a,uj(t,e).toCode()).toCode()} +${a} + `.trim()}function ar(t){let e={};for(let[a,r]of Object.entries(t))r!==void 0&&(e[a]=a==="field"&&typeof r=="string"?new tr(DT(r)):new tr(r));return e}const p0=(0,x.createContext)({fields:[],saveForm:za.NOOP,chartType:ra.LINE}),Qt=()=>(0,x.use)(p0);var h0=xE({Range:()=>Qs,Root:()=>Ys,Slider:()=>Bs,SliderRange:()=>Us,SliderThumb:()=>Zs,SliderTrack:()=>Hs,Thumb:()=>Gi,Track:()=>Gs,createSliderScope:()=>hj},1),f0=["PageUp","PageDown"],g0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],x0={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Sr="Slider",[Ls,mj,pj]=ao(Sr),[v0,hj]=$u(Sr,[pj]),[fj,Yi]=v0(Sr),Bs=x.forwardRef((t,e)=>{let{name:a,min:r=0,max:n=100,step:i=1,orientation:l="horizontal",disabled:o=!1,minStepsBetweenThumbs:d=0,defaultValue:u=[r],value:c,onValueChange:p=()=>{},onValueCommit:m=()=>{},inverted:h=!1,form:g,...f}=t,v=x.useRef(new Set),b=x.useRef(0),w=l==="horizontal"?gj:xj,[D=[],j]=to({prop:c,defaultProp:u,onChange:_=>{var E;(E=[...v.current][b.current])==null||E.focus(),p(_)}}),k=x.useRef(D);function N(_){C(_,Dj(D,_))}function S(_){C(_,b.current)}function y(){let _=k.current[b.current];D[b.current]!==_&&m(D)}function C(_,E,{commit:T}={commit:!1}){let P=Sj(i),R=dv(Nj(Math.round((_-r)/i)*i+r,P),[r,n]);j((F=[])=>{let I=bj(F,R,E);if(kj(I,d*i)){b.current=I.indexOf(R);let V=String(I)!==String(F);return V&&T&&m(I),V?I:F}else return F})}return(0,s.jsx)(fj,{scope:t.__scopeSlider,name:a,disabled:o,min:r,max:n,valueIndexToChangeRef:b,thumbs:v.current,values:D,orientation:l,form:g,children:(0,s.jsx)(Ls.Provider,{scope:t.__scopeSlider,children:(0,s.jsx)(Ls.Slot,{scope:t.__scopeSlider,children:(0,s.jsx)(w,{"aria-disabled":o,"data-disabled":o?"":void 0,...f,ref:e,onPointerDown:Ee(f.onPointerDown,()=>{o||(k.current=D)}),min:r,max:n,inverted:h,onSlideStart:o?void 0:N,onSlideMove:o?void 0:S,onSlideEnd:o?void 0:y,onHomeKeyDown:()=>!o&&C(r,0,{commit:!0}),onEndKeyDown:()=>!o&&C(n,D.length-1,{commit:!0}),onStepKeyDown:({event:_,direction:E})=>{if(!o){let T=f0.includes(_.key)||_.shiftKey&&g0.includes(_.key)?10:1,P=b.current,R=D[P];C(R+i*T*E,P,{commit:!0})}}})})})})});Bs.displayName=Sr;var[y0,b0]=v0(Sr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),gj=x.forwardRef((t,e)=>{let{min:a,max:r,dir:n,inverted:i,onSlideStart:l,onSlideMove:o,onSlideEnd:d,onStepKeyDown:u,...c}=t,[p,m]=x.useState(null),h=kt(e,D=>m(D)),g=x.useRef(void 0),f=Rv(n),v=f==="ltr",b=v&&!i||!v&&i;function w(D){let j=g.current||p.getBoundingClientRect(),k=qs([0,j.width],b?[a,r]:[r,a]);return g.current=j,k(D-j.left)}return(0,s.jsx)(y0,{scope:t.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,s.jsx)(w0,{dir:f,"data-orientation":"horizontal",...c,ref:h,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:D=>{let j=w(D.clientX);l==null||l(j)},onSlideMove:D=>{let j=w(D.clientX);o==null||o(j)},onSlideEnd:()=>{g.current=void 0,d==null||d()},onStepKeyDown:D=>{let j=x0[b?"from-left":"from-right"].includes(D.key);u==null||u({event:D,direction:j?-1:1})}})})}),xj=x.forwardRef((t,e)=>{let{min:a,max:r,inverted:n,onSlideStart:i,onSlideMove:l,onSlideEnd:o,onStepKeyDown:d,...u}=t,c=x.useRef(null),p=kt(e,c),m=x.useRef(void 0),h=!n;function g(f){let v=m.current||c.current.getBoundingClientRect(),b=qs([0,v.height],h?[r,a]:[a,r]);return m.current=v,b(f-v.top)}return(0,s.jsx)(y0,{scope:t.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:(0,s.jsx)(w0,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:f=>{let v=g(f.clientY);i==null||i(v)},onSlideMove:f=>{let v=g(f.clientY);l==null||l(v)},onSlideEnd:()=>{m.current=void 0,o==null||o()},onStepKeyDown:f=>{let v=x0[h?"from-bottom":"from-top"].includes(f.key);d==null||d({event:f,direction:v?-1:1})}})})}),w0=x.forwardRef((t,e)=>{let{__scopeSlider:a,onSlideStart:r,onSlideMove:n,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:o,onStepKeyDown:d,...u}=t,c=Yi(Sr,a);return(0,s.jsx)(We.span,{...u,ref:e,onKeyDown:Ee(t.onKeyDown,p=>{p.key==="Home"?(l(p),p.preventDefault()):p.key==="End"?(o(p),p.preventDefault()):f0.concat(g0).includes(p.key)&&(d(p),p.preventDefault())}),onPointerDown:Ee(t.onPointerDown,p=>{let m=p.target;m.setPointerCapture(p.pointerId),p.preventDefault(),c.thumbs.has(m)?m.focus():r(p)}),onPointerMove:Ee(t.onPointerMove,p=>{p.target.hasPointerCapture(p.pointerId)&&n(p)}),onPointerUp:Ee(t.onPointerUp,p=>{let m=p.target;m.hasPointerCapture(p.pointerId)&&(m.releasePointerCapture(p.pointerId),i(p))})})}),D0="SliderTrack",Hs=x.forwardRef((t,e)=>{let{__scopeSlider:a,...r}=t,n=Yi(D0,a);return(0,s.jsx)(We.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...r,ref:e})});Hs.displayName=D0;var Ws="SliderRange",Us=x.forwardRef((t,e)=>{let{__scopeSlider:a,...r}=t,n=Yi(Ws,a),i=b0(Ws,a),l=kt(e,x.useRef(null)),o=n.values.length,d=n.values.map(p=>C0(p,n.min,n.max)),u=o>1?Math.min(...d):0,c=100-Math.max(...d);return(0,s.jsx)(We.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...r,ref:l,style:{...t.style,[i.startEdge]:u+"%",[i.endEdge]:c+"%"}})});Us.displayName=Ws;var Ks="SliderThumb",Zs=x.forwardRef((t,e)=>{let a=mj(t.__scopeSlider),[r,n]=x.useState(null),i=kt(e,o=>n(o)),l=x.useMemo(()=>r?a().findIndex(o=>o.ref.current===r):-1,[a,r]);return(0,s.jsx)(vj,{...t,ref:i,index:l})}),vj=x.forwardRef((t,e)=>{let{__scopeSlider:a,index:r,name:n,...i}=t,l=Yi(Ks,a),o=b0(Ks,a),[d,u]=x.useState(null),c=kt(e,w=>u(w)),p=d?l.form||!!d.closest("form"):!0,m=aA(d),h=l.values[r],g=h===void 0?0:C0(h,l.min,l.max),f=wj(r,l.values.length),v=m==null?void 0:m[o.size],b=v?jj(v,g,o.direction):0;return x.useEffect(()=>{if(d)return l.thumbs.add(d),()=>{l.thumbs.delete(d)}},[d,l.thumbs]),(0,s.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[o.startEdge]:`calc(${g}% + ${b}px)`},children:[(0,s.jsx)(Ls.ItemSlot,{scope:t.__scopeSlider,children:(0,s.jsx)(We.span,{role:"slider","aria-label":t["aria-label"]||f,"aria-valuemin":l.min,"aria-valuenow":h,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:c,style:h===void 0?{display:"none"}:t.style,onFocus:Ee(t.onFocus,()=>{l.valueIndexToChangeRef.current=r})})}),p&&(0,s.jsx)(j0,{name:n??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:h},r)]})});Zs.displayName=Ks;var yj="RadioBubbleInput",j0=x.forwardRef(({__scopeSlider:t,value:e,...a},r)=>{let n=x.useRef(null),i=kt(n,r),l=sv(e);return x.useEffect(()=>{let o=n.current;if(!o)return;let d=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==e&&u){let c=new Event("input",{bubbles:!0});u.call(o,e),o.dispatchEvent(c)}},[l,e]),(0,s.jsx)(We.input,{style:{display:"none"},...a,ref:i,defaultValue:e})});j0.displayName=yj;function bj(t=[],e,a){let r=[...t];return r[a]=e,r.sort((n,i)=>n-i)}function C0(t,e,a){return dv(100/(a-e)*(t-e),[0,100])}function wj(t,e){if(e>2)return`Value ${t+1} of ${e}`;if(e===2)return["Minimum","Maximum"][t]}function Dj(t,e){if(t.length===1)return 0;let a=t.map(n=>Math.abs(n-e)),r=Math.min(...a);return a.indexOf(r)}function jj(t,e,a){let r=t/2;return(r-qs([0,50],[0,r])(e)*a)*a}function Cj(t){return t.slice(0,-1).map((e,a)=>t[a+1]-e)}function kj(t,e){if(e>0){let a=Cj(t);return Math.min(...a)>=e}return!0}function qs(t,e){return a=>{if(t[0]===t[1]||e[0]===e[1])return e[0];let r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(a-t[0])}}function Sj(t){return(String(t).split(".")[1]||"").length}function Nj(t,e){let a=10**e;return Math.round(t*a)/a}var Ys=Bs,Gs=Hs,Qs=Us,Gi=Zs,Ej=J(),Js=x.forwardRef((t,e)=>{let a=(0,Ej.c)(25),{className:r,valueMap:n,...i}=t,[l,o]=ov(!1),{locale:d}=qe(),u=h0,c;a[0]===r?c=a[1]:(c=U("relative flex touch-none select-none hover:cursor-pointer","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center","data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center","data-disabled:cursor-not-allowed",r),a[0]=r,a[1]=c);let p;a[2]===Symbol.for("react.memo_cache_sentinel")?(p=U("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"),a[2]=p):p=a[2];let m;a[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Gs,{"data-testid":"track",className:p,children:(0,s.jsx)(Qs,{"data-testid":"range",className:U("absolute bg-blue-500 dark:bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full","data-disabled:opacity-50")})}),a[3]=m):m=a[3];let h=Nt,g=Bu,f;a[4]!==o.setFalse||a[5]!==o.setTrue?(f=(0,s.jsx)(Wu,{asChild:!0,children:(0,s.jsx)(Gi,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:o.setTrue,onBlur:o.setFalse,onMouseEnter:o.setTrue,onMouseLeave:o.setFalse})}),a[4]=o.setFalse,a[5]=o.setTrue,a[6]=f):f=a[6];let v=Uu,b=i.value!=null&&i.value.length===1&&(0,s.jsx)(Hu,{children:Gr(n(i.value[0]),{locale:d})},i.value[0]),w;a[7]!==v||a[8]!==b?(w=(0,s.jsx)(v,{children:b}),a[7]=v,a[8]=b,a[9]=w):w=a[9];let D;a[10]!==g||a[11]!==l||a[12]!==f||a[13]!==w?(D=(0,s.jsxs)(g,{delayDuration:0,open:l,children:[f,w]}),a[10]=g,a[11]=l,a[12]=f,a[13]=w,a[14]=D):D=a[14];let j;a[15]!==h||a[16]!==D?(j=(0,s.jsx)(h,{children:D}),a[15]=h,a[16]=D,a[17]=j):j=a[17];let k;return a[18]!==i||a[19]!==e||a[20]!==u.Root||a[21]!==j||a[22]!==c||a[23]!==m?(k=(0,s.jsxs)(u.Root,{ref:e,className:c,...i,children:[m,j]}),a[18]=i,a[19]=e,a[20]=u.Root,a[21]=j,a[22]=c,a[23]=m,a[24]=k):k=a[24],k});Js.displayName=Ys.displayName;var _j=xa(Wn(),1),Qi=0,Ta=1,Nr=2,k0=4;function S0(t){return()=>t}function Tj(t){t()}function Dn(t,e){return a=>t(e(a))}function N0(t,e){return()=>t(e)}function Rj(t,e){return a=>t(e,a)}function Xs(t){return t!==void 0}function Aj(...t){return()=>{t.map(Tj)}}function Er(){}function Ji(t,e){return e(t),t}function Ij(t,e){return e(t)}function Ae(...t){return t}function _e(t,e){return t(Ta,e)}function fe(t,e){t(Qi,e)}function ed(t){t(Nr)}function Be(t){return t(k0)}function ne(t,e){return _e(t,Rj(e,Qi))}function Vt(t,e){let a=t(Ta,r=>{a(),e(r)});return a}function E0(t){let e,a;return r=>n=>{e=n,a&&clearTimeout(a),a=setTimeout(()=>{r(e)},t)}}function _0(t,e){return t===e}function Ie(t=_0){let e;return a=>r=>{t(e,r)||(e=r,a(r))}}function de(t){return e=>a=>{t(a)&&e(a)}}function X(t){return e=>Dn(e,t)}function Jt(t){return e=>()=>{e(t)}}function H(t,...e){let a=Pj(...e);return((r,n)=>{switch(r){case Nr:ed(t);return;case Ta:return _e(t,a(n))}})}function Xt(t,e){return a=>r=>{a(e=t(e,r))}}function rr(t){return e=>a=>{t>0?t--:e(a)}}function ha(t){let e=null,a;return r=>n=>{e=n,!a&&(a=setTimeout(()=>{a=void 0,r(e)},t))}}function ve(...t){let e=Array(t.length),a=0,r=null,n=2**t.length-1;return t.forEach((i,l)=>{let o=2**l;_e(i,d=>{let u=a;a|=o,e[l]=d,u!==n&&a===n&&r&&(r(),r=null)})}),i=>l=>{let o=()=>{i([l].concat(e))};a===n?o():r=o}}function Pj(...t){return e=>t.reduceRight(Ij,e)}function Mj(t){let e,a,r=()=>e==null?void 0:e();return function(n,i){switch(n){case Ta:return i?a===i?void 0:(r(),a=i,e=_e(t,i),e):(r(),Er);case Nr:r(),a=null;return}}}function K(t){let e=t,a=De();return((r,n)=>{switch(r){case Qi:e=n;break;case Ta:n(e);break;case k0:return e}return a(r,n)})}function ut(t,e){return Ji(K(e),a=>ne(t,a))}function De(){let t=[];return((e,a)=>{switch(e){case Qi:t.slice().forEach(r=>{r(a)});return;case Nr:t.splice(0,t.length);return;case Ta:return t.push(a),()=>{let r=t.indexOf(a);r>-1&&t.splice(r,1)}}})}function bt(t){return Ji(De(),e=>ne(t,e))}function ke(t,e=[],{singleton:a}={singleton:!0}){return{constructor:t,dependencies:e,id:Fj(),singleton:a}}var Fj=()=>Symbol();function Vj(t){let e=new Map,a=({constructor:r,dependencies:n,id:i,singleton:l})=>{if(l&&e.has(i))return e.get(i);let o=r(n.map(d=>a(d)));return l&&e.set(i,o),o};return a(t)}function Ge(...t){let e=De(),a=Array(t.length),r=0,n=2**t.length-1;return t.forEach((i,l)=>{let o=2**l;_e(i,d=>{a[l]=d,r|=o,r===n&&fe(e,a)})}),function(i,l){switch(i){case Nr:ed(e);return;case Ta:return r===n&&l(a),_e(e,l)}}}function ue(t,e=_0){return H(t,Ie(e))}function td(...t){return function(e,a){switch(e){case Nr:return;case Ta:return Aj(...t.map(r=>_e(r,a)))}}}var xt=(t=>(t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t))(xt||{}),zj={0:"debug",3:"error",1:"log",2:"warn"},Oj=()=>typeof globalThis>"u"?window:globalThis,Ra=ke(()=>{let t=K(3);return{log:K((e,a,r=1)=>{r>=(Oj().VIRTUOSO_LOG_LEVEL??Be(t))&&console[zj[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",e,a)}),logLevel:t}},[],{singleton:!0});function ea(t,e,a){return ad(t,e,a).callbackRef}function ad(t,e,a){let r=x.useRef(null),n=l=>{},i=x.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(l=>{let o=()=>{let d=l[0].target;d.offsetParent!==null&&t(d)};a?o():requestAnimationFrame(o)}):null,[t,a]);return n=l=>{l&&e?(i==null||i.observe(l),r.current=l):(r.current&&(i==null||i.unobserve(r.current)),r.current=null)},{callbackRef:n,ref:r}}function T0(t,e,a,r,n,i,l,o,d){return ad(x.useCallback(u=>{let c=$j(u.children,e,o?"offsetWidth":"offsetHeight",n),p=u.parentElement;for(;!p.dataset.virtuosoScroller;)p=p.parentElement;let m=p.lastElementChild.dataset.viewportType==="window",h;m&&(h=p.ownerDocument.defaultView);let g=l?o?l.scrollLeft:l.scrollTop:m?o?h.scrollX||h.document.documentElement.scrollLeft:h.scrollY||h.document.documentElement.scrollTop:o?p.scrollLeft:p.scrollTop,f=l?o?l.scrollWidth:l.scrollHeight:m?o?h.document.documentElement.scrollWidth:h.document.documentElement.scrollHeight:o?p.scrollWidth:p.scrollHeight,v=l?o?l.offsetWidth:l.offsetHeight:m?o?h.innerWidth:h.innerHeight:o?p.offsetWidth:p.offsetHeight;r({scrollHeight:f,scrollTop:Math.max(g,0),viewportHeight:v}),i==null||i(o?R0("column-gap",getComputedStyle(u).columnGap,n):R0("row-gap",getComputedStyle(u).rowGap,n)),c!==null&&t(c)},[t,e,n,i,l,r,o]),a,d)}function $j(t,e,a,r){let n=t.length;if(n===0)return null;let i=[];for(let l=0;l{if(!(d!=null&&d.offsetParent))return;let u=d.getBoundingClientRect(),c=u.width,p,m;if(e){let h=e.getBoundingClientRect(),g=u.top-h.top;m=h.height-Math.max(0,g),p=g+e.scrollTop}else{let h=l.current.ownerDocument.defaultView;m=h.innerHeight-Math.max(0,u.top),p=u.top+h.scrollY}r.current={offsetTop:p,visibleHeight:m,visibleWidth:c},t(r.current)},[t,e]),{callbackRef:i,ref:l}=ad(n,!0,a),o=x.useCallback(()=>{n(l.current)},[n,l]);return x.useEffect(()=>{var d;if(e){e.addEventListener("scroll",o);let u=new ResizeObserver(()=>{requestAnimationFrame(o)});return u.observe(e),()=>{e.removeEventListener("scroll",o),u.unobserve(e)}}else{let u=(d=l.current)==null?void 0:d.ownerDocument.defaultView;return u==null||u.addEventListener("scroll",o),u==null||u.addEventListener("resize",o),()=>{u==null||u.removeEventListener("scroll",o),u==null||u.removeEventListener("resize",o)}}},[o,e,l]),i}var pt=ke(()=>{let t=De(),e=De(),a=K(0),r=De(),n=K(0),i=De(),l=De(),o=K(0),d=K(0),u=K(0),c=K(0),p=De(),m=De(),h=K(!1),g=K(!1),f=K(!1);return ne(H(t,X(({scrollTop:v})=>v)),e),ne(H(t,X(({scrollHeight:v})=>v)),l),ne(e,n),{deviation:a,fixedFooterHeight:u,fixedHeaderHeight:d,footerHeight:c,headerHeight:o,horizontalDirection:g,scrollBy:m,scrollContainerState:t,scrollHeight:l,scrollingInProgress:h,scrollTo:p,scrollTop:e,skipAnimationFrameInResizeObserver:f,smoothScrollTargetReached:r,statefulScrollTop:n,viewportHeight:i}},[],{singleton:!0}),jn={lvl:0};function A0(t,e){let a=t.length;if(a===0)return[];let{index:r,value:n}=e(t[0]),i=[];for(let l=1;le&&(o=o.concat(id(n,e,a))),r>=e&&r<=a&&o.push({k:r,v:l}),r<=a&&(o=o.concat(id(i,e,a))),o}function ld(t){let{l:e,lvl:a,r}=t;if(r.lvl>=a-1&&e.lvl>=a-1)return t;if(a>r.lvl+1){if(od(e))return V0(et(t,{lvl:a-1}));if(!Te(e)&&!Te(e.r))return et(e.r,{l:et(e,{r:e.r.l}),lvl:a,r:et(t,{l:e.r.r,lvl:a-1})});throw Error("Unexpected empty nodes")}else{if(od(t))return sd(et(t,{lvl:a-1}));if(!Te(r)&&!Te(r.l)){let n=r.l,i=od(n)?r.lvl-1:r.lvl;return et(n,{l:et(t,{lvl:a-1,r:n.l}),lvl:n.lvl+1,r:sd(et(r,{l:n.r,lvl:i}))})}else throw Error("Unexpected empty nodes")}}function et(t,e){return M0(e.k===void 0?t.k:e.k,e.v===void 0?t.v:e.v,e.lvl===void 0?t.lvl:e.lvl,e.l===void 0?t.l:e.l,e.r===void 0?t.r:e.r)}function I0(t){return Te(t.r)?t.l:ld(et(t,{r:I0(t.r)}))}function od(t){return Te(t)||t.lvl>t.r.lvl}function P0(t){return Te(t.r)?[t.k,t.v]:P0(t.r)}function M0(t,e,a,r=jn,n=jn){return{k:t,l:r,lvl:a,r:n,v:e}}function F0(t){return sd(V0(t))}function V0(t){let{l:e}=t;return!Te(e)&&e.lvl===t.lvl?et(e,{r:et(t,{l:e.r})}):t}function sd(t){let{lvl:e,r:a}=t;return!Te(a)&&!Te(a.r)&&a.lvl===e&&a.r.lvl===e?et(a,{l:et(t,{r:a.l}),lvl:e+1}):t}function Lj(t){return A0(t,({k:e,v:a})=>({index:e,value:a}))}function z0(t,e){return!!(t&&t.startIndex===e.startIndex&&t.endIndex===e.endIndex)}function kn(t,e){return!!(t&&t[0]===e[0]&&t[1]===e[1])}var dd=ke(()=>({recalcInProgress:K(!1)}),[],{singleton:!0});function O0(t,e,a){return t[Xi(t,e,a)]}function Xi(t,e,a,r=0){let n=t.length-1;for(;r<=n;){let i=Math.floor((r+n)/2),l=t[i],o=a(l,e);if(o===0)return i;if(o===-1){if(n-r<2)return i-1;n=i-1}else{if(n===r)return i;r=i+1}}throw Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`)}function Bj(t,e,a,r){let n=Xi(t,e,r),i=Xi(t,a,r,n);return t.slice(n,i+1)}function Ot(t,e){return Math.round(t.getBoundingClientRect()[e])}function el(t){return!Te(t.groupOffsetTree)}function ud({index:t},e){return e===t?0:e=p||i===m)&&(t=nd(t,p)):(u=m!==i,d=!0),c>n&&n>=p&&m!==i&&(t=wt(t,n+1,m));u&&(t=wt(t,l,i))}return[t,a]}function Uj(t){return typeof t.groupIndex<"u"}function Kj({offset:t},e){return e===t?0:e0?o+a:o}function $0(t,e){if(!el(e))return t;let a=0;for(;e.groupIndices[a]<=t+a;)a++;return t+a}function L0(t,e,a){if(Uj(t))return e.groupIndices[t.groupIndex]+1;{let r=$0(t.index==="LAST"?a:t.index,e);return r=Math.max(0,r,Math.min(a,r)),r}}function Zj(t,e,a,r=0){return r>0&&(e=Math.max(e,O0(t,r,ud).offset)),A0(Bj(t,e,a,Kj),Gj)}function qj(t,[e,a,r,n]){e.length>0&&r("received item sizes",e,xt.DEBUG);let i=t.sizeTree,l=i,o=0;if(a.length>0&&Te(i)&&e.length===2){let m=e[0].size,h=e[1].size;l=a.reduce((g,f)=>wt(wt(g,f,m),f+1,h),l)}else[l,o]=Wj(l,e);if(l===i)return t;let{lastIndex:d,lastOffset:u,lastSize:c,offsetTree:p}=cd(t.offsetTree,o,l,n);return{groupIndices:a,groupOffsetTree:a.reduce((m,h)=>wt(m,h,Sn(h,p,n)),_r()),lastIndex:d,lastOffset:u,lastSize:c,offsetTree:p,sizeTree:l}}function Yj(t){return nr(t).map(({k:e,v:a},r,n)=>{let i=n[r+1];return{endIndex:i?i.k-1:1/0,size:a,startIndex:e}})}function B0(t,e){let a=0,r=0;for(;an.start===r&&(n.end===e||n.end===1/0)&&n.value===a}var Jj={offsetHeight:"height",offsetWidth:"width"},ta=ke(([{log:t},{recalcInProgress:e}])=>{let a=De(),r=De(),n=ut(r,0),i=De(),l=De(),o=K(0),d=K([]),u=K(void 0),c=K(void 0),p=K(void 0),m=K(void 0),h=K((S,y)=>Ot(S,Jj[y])),g=K(void 0),f=K(0),v=Hj(),b=ut(H(a,ve(d,t,f),Xt(qj,v),Ie()),v),w=ut(H(d,Ie(),Xt((S,y)=>({current:y,prev:S.current}),{current:[],prev:[]}),X(({prev:S})=>S)),[]);ne(H(d,de(S=>S.length>0),ve(b,f),X(([S,y,C])=>{let _=S.reduce((E,T,P)=>wt(E,T,Sn(T,y.offsetTree,C)||P),_r());return{...y,groupIndices:S,groupOffsetTree:_}})),b),ne(H(r,ve(b),de(([S,{lastIndex:y}])=>S[{endIndex:y,size:C,startIndex:S}])),a),ne(u,c);let D=ut(H(u,X(S=>S===void 0)),!0);ne(H(c,de(S=>S!==void 0&&Te(Be(b).sizeTree)),X(S=>{let y=Be(p),C=Be(d).length>0;return y?C?[{endIndex:0,size:y,startIndex:0},{endIndex:1,size:S,startIndex:1}]:[]:[{endIndex:0,size:S,startIndex:0}]})),a),ne(H(m,de(S=>S!==void 0&&S.length>0&&Te(Be(b).sizeTree)),X(S=>{let y=[],C=S[0],_=0;for(let E=1;ES!==void 0&&y!==void 0),X(([S,y,C])=>{let _=[];for(let E=0;E({changed:C!==S,sizes:C}),{changed:!1,sizes:v}),X(S=>S.changed)));_e(H(o,Xt((S,y)=>({diff:S.prev-y,prev:y}),{diff:0,prev:0}),X(S=>S.diff)),S=>{let{groupIndices:y}=Be(b);if(S>0)fe(e,!0),fe(i,S+B0(S,y));else if(S<0){let C=Be(w);C.length>0&&(S-=B0(-S,C)),fe(l,S)}}),_e(H(o,ve(t)),([S,y])=>{S<0&&y("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:o},xt.ERROR)});let k=bt(i);ne(H(i,ve(b),X(([S,y])=>{let C=y.groupIndices.length>0,_=[],E=y.lastSize;if(C){let T=Cn(y.sizeTree,0),P=0,R=0;for(;P{let O=I.ranges;return I.prevSize!==0&&(O=[...I.ranges,{endIndex:V+S-1,size:I.prevSize,startIndex:I.prevIndex}]),{prevIndex:V+S,prevSize:A,ranges:O}},{prevIndex:S,prevSize:0,ranges:_}).ranges}return nr(y.sizeTree).reduce((T,{k:P,v:R})=>({prevIndex:P+S,prevSize:R,ranges:[...T.ranges,{endIndex:P+S-1,size:T.prevSize,startIndex:T.prevIndex}]}),{prevIndex:0,prevSize:E,ranges:[]}).ranges})),a);let N=bt(H(l,ve(b,f),X(([S,{offsetTree:y},C])=>Sn(-S,y,C))));return ne(H(l,ve(b,f),X(([S,y,C])=>{if(y.groupIndices.length>0){if(Te(y.sizeTree))return y;let _=_r(),E=Be(w),T=0,P=0,R=0;for(;T<-S;){R=E[P];let F=E[P+1]-R-1;P++,T+=F+1}if(_=nr(y.sizeTree).reduce((F,{k:I,v:V})=>wt(F,Math.max(0,I+S),V),_),T!==-S){let F=Cn(y.sizeTree,R);_=wt(_,0,F);let I=zt(y.sizeTree,-S+1)[1];_=wt(_,1,I)}return{...y,sizeTree:_,...cd(y.offsetTree,0,_,C)}}else{let _=nr(y.sizeTree).reduce((E,{k:T,v:P})=>wt(E,Math.max(0,T+S),P),_r());return{...y,sizeTree:_,...cd(y.offsetTree,0,_,C)}}})),b),{beforeUnshiftWith:k,data:g,defaultItemSize:c,firstItemIndex:o,fixedItemSize:u,fixedGroupSize:p,gap:f,groupIndices:d,heightEstimates:m,itemSize:h,listRefresh:j,shiftWith:l,shiftWithOffset:N,sizeRanges:a,sizes:b,statefulTotalCount:n,totalCount:r,trackItemSizes:D,unshiftWith:i}},Ae(Ra,dd),{singleton:!0});function Xj(t){return t.reduce((e,a)=>(e.groupIndices.push(e.totalCount),e.totalCount+=a+1,e),{groupIndices:[],totalCount:0})}var H0=ke(([{groupIndices:t,sizes:e,totalCount:a},{headerHeight:r,scrollTop:n}])=>{let i=De(),l=De(),o=bt(H(i,X(Xj)));return ne(H(o,X(d=>d.totalCount)),a),ne(H(o,X(d=>d.groupIndices)),t),ne(H(Ge(n,e,r),de(([d,u])=>el(u)),X(([d,u,c])=>zt(u.groupOffsetTree,Math.max(d-c,0),"v")[0]),Ie(),X(d=>[d])),l),{groupCounts:i,topItemsIndexes:l}},Ae(ta,pt)),Aa=ke(([{log:t}])=>{let e=K(!1),a=bt(H(e,de(r=>r),Ie()));return _e(e,r=>{r&&Be(t)("props updated",{},xt.DEBUG)}),{didMount:a,propsReady:e}},Ae(Ra),{singleton:!0}),e3=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function W0(t){let e=typeof t=="number"?{index:t}:t;return e.align||(e.align="start"),(!e.behavior||!e3)&&(e.behavior="auto"),e.offset||(e.offset=0),e}var Nn=ke(([{gap:t,listRefresh:e,sizes:a,totalCount:r},{fixedFooterHeight:n,fixedHeaderHeight:i,footerHeight:l,headerHeight:o,scrollingInProgress:d,scrollTo:u,smoothScrollTargetReached:c,viewportHeight:p},{log:m}])=>{let h=De(),g=De(),f=K(0),v=null,b=null,w=null;function D(){v&&(v=(v(),null)),w&&(w=(w(),null)),b&&(b=(clearTimeout(b),null)),fe(d,!1)}return ne(H(h,ve(a,p,r,f,o,l,m),ve(t,i,n),X(([[j,k,N,S,y,C,_,E],T,P,R])=>{let F=W0(j),{align:I,behavior:V,offset:A}=F,O=S-1,z=L0(F,k,O),L=Sn(z,k.offsetTree,T)+C;I==="end"?(L+=P+zt(k.sizeTree,z)[1]-N+R,z===O&&(L+=_)):I==="center"?L+=(P+zt(k.sizeTree,z)[1]-N+R)/2:L-=y,A&&(L+=A);let G=Q=>{D(),Q?(E("retrying to scroll to",{location:j},xt.DEBUG),fe(h,j)):(fe(g,!0),E("list did not change, scroll successful",{},xt.DEBUG))};if(D(),V==="smooth"){let Q=!1;w=_e(e,ae=>{Q||(Q=ae)}),v=Vt(c,()=>{G(Q)})}else v=Vt(H(e,t3(150)),G);return b=setTimeout(()=>{D()},1200),fe(d,!0),E("scrolling from index to",{behavior:V,index:z,top:L},xt.DEBUG),{behavior:V,top:L}})),u),{scrollTargetReached:g,scrollToIndex:h,topListHeight:f}},Ae(ta,pt,Ra),{singleton:!0});function t3(t){return e=>{let a=setTimeout(()=>{e(!1)},t);return r=>{r&&(e(!0),clearTimeout(a))}}}function md(t,e){t==0?e():requestAnimationFrame(()=>{md(t-1,e)})}function pd(t,e){let a=e-1;return typeof t=="number"?t:t.index==="LAST"?a:t.index}var En=ke(([{defaultItemSize:t,listRefresh:e,sizes:a},{scrollTop:r},{scrollTargetReached:n,scrollToIndex:i},{didMount:l}])=>{let o=K(!0),d=K(0),u=K(!0);return ne(H(l,ve(d),de(([c,p])=>!!p),Jt(!1)),o),ne(H(l,ve(d),de(([c,p])=>!!p),Jt(!1)),u),_e(H(Ge(e,l),ve(o,a,t,u),de(([[,c],p,{sizeTree:m},h,g])=>c&&(!Te(m)||Xs(h))&&!p&&!g),ve(d)),([,c])=>{Vt(n,()=>{fe(u,!0)}),md(4,()=>{Vt(r,()=>{fe(o,!0)}),fe(i,c)})}),{initialItemFinalLocationReached:u,initialTopMostItemIndex:d,scrolledToInitialItem:o}},Ae(ta,pt,Nn,Aa),{singleton:!0});function U0(t,e){return Math.abs(t-e)<1.01}var _n="up",Tn="down",a3="none",r3={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},n3=0,Rn=ke(([{footerHeight:t,headerHeight:e,scrollBy:a,scrollContainerState:r,scrollTop:n,viewportHeight:i}])=>{let l=K(!1),o=K(!0),d=De(),u=De(),c=K(4),p=K(n3),m=ut(H(td(H(ue(n),rr(1),Jt(!0)),H(ue(n),rr(1),Jt(!1),E0(100))),Ie()),!1),h=ut(H(td(H(a,Jt(!0)),H(a,Jt(!1),E0(200))),Ie()),!1);ne(H(Ge(ue(n),ue(p)),X(([w,D])=>w<=D),Ie()),o),ne(H(o,ha(50)),u);let g=bt(H(Ge(r,ue(i),ue(e),ue(t),ue(c)),Xt((w,[{scrollHeight:D,scrollTop:j},k,N,S,y])=>{let C=j+k-D>-y,_={scrollHeight:D,scrollTop:j,viewportHeight:k};if(C){let T,P;return j>w.state.scrollTop?(T="SCROLLED_DOWN",P=w.state.scrollTop-j):(T="SIZE_DECREASED",P=w.state.scrollTop-j||w.scrollTopDelta),{atBottom:!0,atBottomBecause:T,scrollTopDelta:P,state:_}}let E;return E=_.scrollHeight>w.state.scrollHeight?"SIZE_INCREASED":kw&&w.atBottom===D.atBottom))),f=ut(H(r,Xt((w,{scrollHeight:D,scrollTop:j,viewportHeight:k})=>{if(U0(w.scrollHeight,D))return{changed:!1,jump:0,scrollHeight:D,scrollTop:j};{let N=D-(j+k)<1;return w.scrollTop!==j&&N?{changed:!0,jump:w.scrollTop-j,scrollHeight:D,scrollTop:j}:{changed:!0,jump:0,scrollHeight:D,scrollTop:j}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),de(w=>w.changed),X(w=>w.jump)),0);ne(H(g,X(w=>w.atBottom)),l),ne(H(l,ha(50)),d);let v=K(Tn);ne(H(r,X(({scrollTop:w})=>w),Ie(),Xt((w,D)=>Be(h)?{direction:w.direction,prevScrollTop:D}:{direction:Dw.direction)),v),ne(H(r,ha(50),Jt(a3)),v);let b=K(0);return ne(H(m,de(w=>!w),Jt(0)),b),ne(H(n,ha(100),ve(m),de(([w,D])=>D),Xt(([w,D],[j])=>[D,j],[0,0]),X(([w,D])=>D-w)),b),{atBottomState:g,atBottomStateChange:d,atBottomThreshold:c,atTopStateChange:u,atTopThreshold:p,isAtBottom:l,isAtTop:o,isScrolling:m,lastJumpDueToItemResize:f,scrollDirection:v,scrollVelocity:b}},Ae(pt)),An="top",In="bottom",K0="none";function Z0(t,e,a){return typeof t=="number"?a===_n&&e===An||a===Tn&&e===In?t:0:a===_n?e===An?t.main:t.reverse:e===In?t.main:t.reverse}function q0(t,e){return typeof t=="number"?t:t[e]??0}var hd=ke(([{deviation:t,fixedHeaderHeight:e,headerHeight:a,scrollTop:r,viewportHeight:n}])=>{let i=De(),l=K(0),o=K(0),d=K(0);return{increaseViewportBy:o,listBoundary:i,overscan:d,topListHeight:l,visibleRange:ut(H(Ge(ue(r),ue(n),ue(a),ue(i,kn),ue(d),ue(l),ue(e),ue(t),ue(o)),X(([u,c,p,[m,h],g,f,v,b,w])=>{let D=u-b,j=f+v,k=Math.max(p-D,0),N=K0,S=q0(w,An),y=q0(w,In);return m-=b,m+=p+v,h+=p+v,h-=b,m>u+j-S&&(N=_n),hu!=null),Ie(kn)),[0,0])}},Ae(pt),{singleton:!0});function i3(t,e,a){if(el(e)){let r=$0(t,e);return[{index:zt(e.groupOffsetTree,r)[0],offset:0,size:0},{data:a==null?void 0:a[0],index:r,offset:0,size:0}]}return[{data:a==null?void 0:a[0],index:t,offset:0,size:0}]}var fd={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function tl(t,e,a,r,n,i){let{lastIndex:l,lastOffset:o,lastSize:d}=n,u=0,c=0;if(t.length>0){u=t[0].offset;let f=t[t.length-1];c=f.offset+f.size}let p=a-l,m=o+p*d+(p-1)*r,h=u,g=m-c;return{bottom:c,firstItemIndex:i,items:G0(t,n,i),offsetBottom:g,offsetTop:u,top:h,topItems:G0(e,n,i),topListHeight:e.reduce((f,v)=>v.size+f,0),totalCount:a}}function Y0(t,e,a,r,n,i){let l=0;if(a.groupIndices.length>0)for(let u of a.groupIndices){if(u-l>=t)break;l++}let o=t+l,d=pd(e,o);return tl(Array.from({length:o}).map((u,c)=>({data:i[c+d],index:c+d,offset:0,size:0})),[],o,n,a,r)}function G0(t,e,a){if(t.length===0)return[];if(!el(e))return t.map(u=>({...u,index:u.index+a,originalIndex:u.index}));let r=t[0].index,n=t[t.length-1].index,i=[],l=Tr(e.groupOffsetTree,r,n),o,d=0;for(let u of t){(!o||o.end{let f=K([]),v=K(0),b=De(),w=K(0);ne(i.topItemsIndexes,f);let D=ut(H(Ge(h,g,ue(d,kn),ue(n),ue(r),ue(u),c,ue(f),ue(e),ue(a),ue(w),t),de(([N,S,,y,,,,,,,,C])=>{let _=C&&C.length!==y;return N&&!S&&!_}),X(([,,[N,S],y,C,_,E,T,P,R,F,I])=>{var B,re;let V=C,{offsetTree:A,sizeTree:O}=V,z=Be(v);if(y===0)return{...fd,totalCount:y};if(N===0&&S===0)return z===0?{...fd,totalCount:y}:Y0(z,_,C,P,R,I||[]);if(Te(O))return z>0?null:tl(i3(pd(_,y),V,I),[],y,R,V,P);let L=[];if(T.length>0){let te=T[0],ie=T[T.length-1],xe=0;for(let me of Tr(O,te,ie)){let he=me.value,be=Math.max(me.start,te),Re=Math.min(me.end,ie);for(let je=be;je<=Re;je++)L.push({data:I==null?void 0:I[je],index:je,offset:xe,size:he}),xe+=he}}if(!E)return tl([],L,y,R,V,P);let G=T.length>0?T[T.length-1]+1:0,Q=Zj(A,N,S,G);if(Q.length===0)return null;let ae=y-1,ce=Ji([],te=>{for(let ie of Q){let xe=ie.value,me=xe.offset,he=ie.start,be=xe.size;if(xe.offset=S);je++)te.push({data:I==null?void 0:I[je],index:je,offset:me,size:be}),me+=be+R}}),le=Q0(F,An),Z=Q0(F,In);if(ce.length>0&&(le>0||Z>0)){let te=ce[0],ie=ce[ce.length-1];if(le>0&&te.index>G){let xe=Math.min(le,te.index-G),me=[],he=te.offset;for(let be=te.index-1;be>=te.index-xe;be--){let Re=((B=Tr(O,be,be)[0])==null?void 0:B.value)??te.size;he-=Re+R,me.unshift({data:I==null?void 0:I[be],index:be,offset:he,size:Re})}ce.unshift(...me)}if(Z>0&&ie.indexN!==null),Ie()),fd);ne(H(t,de(Xs),X(N=>N==null?void 0:N.length)),n),ne(H(D,X(N=>N.topListHeight)),p),ne(p,o),ne(H(D,X(N=>[N.top,N.bottom])),l),ne(H(D,X(N=>N.items)),b);let j=bt(H(D,de(({items:N})=>N.length>0),ve(n,t),de(([{items:N},S])=>N[N.length-1].originalIndex===S-1),X(([,N,S])=>[N-1,S]),Ie(kn),X(([N])=>N))),k=bt(H(D,ha(200),de(({items:N,topItems:S})=>N.length>0&&N[0].originalIndex===S.length),X(({items:N})=>N[0].index),Ie()));return{endReached:j,initialItemCount:v,itemsRendered:b,listState:D,minOverscanItemCount:w,rangeChanged:bt(H(D,de(({items:N})=>N.length>0),X(({items:N})=>{let S=0,y=N.length-1;for(;N[S].type==="group"&&SS;)y--;return{endIndex:N[y].index,startIndex:N[S].index}}),Ie(z0))),startReached:k,topItemsIndexes:f,...m}},Ae(ta,H0,hd,En,Nn,Rn,Aa,dd),{singleton:!0}),J0=ke(([{fixedFooterHeight:t,fixedHeaderHeight:e,footerHeight:a,headerHeight:r},{listState:n}])=>{let i=De(),l=ut(H(Ge(a,t,r,e,n),X(([o,d,u,c,p])=>o+d+u+c+p.offsetBottom+p.bottom)),0);return ne(ue(l),i),{totalListHeight:l,totalListHeightChanged:i}},Ae(pt,ir),{singleton:!0}),l3=ke(([{viewportHeight:t},{totalListHeight:e}])=>{let a=K(!1);return{alignToBottom:a,paddingTopAddition:ut(H(Ge(a,t,e),de(([r])=>r),X(([,r,n])=>Math.max(0,r-n)),ha(0),Ie()),0)}},Ae(pt,J0),{singleton:!0}),X0=ke(()=>({context:K(null)})),o3=({itemBottom:t,itemTop:e,locationParams:{align:a,behavior:r,...n},viewportBottom:i,viewportTop:l})=>ei?{...n,align:a??"end",behavior:r}:null,ex=ke(([{gap:t,sizes:e,totalCount:a},{fixedFooterHeight:r,fixedHeaderHeight:n,headerHeight:i,scrollingInProgress:l,scrollTop:o,viewportHeight:d},{scrollToIndex:u}])=>{let c=De();return ne(H(c,ve(e,d,a,i,n,r,o),ve(t),X(([[p,m,h,g,f,v,b,w],D])=>{let{align:j,behavior:k,calculateViewLocation:N=o3,done:S,...y}=p,C=L0(p,m,g-1),_=Sn(C,m.offsetTree,D)+f+v,E=_+zt(m.sizeTree,C)[1],T=w+v,P=w+h-b,R=N({itemBottom:E,itemTop:_,locationParams:{align:j,behavior:k,...y},viewportBottom:P,viewportTop:T});return R?S&&Vt(H(l,de(F=>!F),rr(Be(l)?1:2)),S):S==null||S(),R}),de(p=>p!==null)),u),{scrollIntoView:c}},Ae(ta,pt,Nn,ir,Ra),{singleton:!0});function tx(t){return t?t==="smooth"?"smooth":"auto":!1}var s3=(t,e)=>typeof t=="function"?tx(t(e)):e&&tx(t),d3=ke(([{listRefresh:t,totalCount:e,fixedItemSize:a,data:r},{atBottomState:n,isAtBottom:i},{scrollToIndex:l},{scrolledToInitialItem:o},{didMount:d,propsReady:u},{log:c},{scrollingInProgress:p},{context:m},{scrollIntoView:h}])=>{let g=K(!1),f=De(),v=null;function b(k){fe(l,{align:"end",behavior:k,index:"LAST"})}_e(H(Ge(H(ue(e),rr(1)),d),ve(ue(g),i,o,p),X(([[k,N],S,y,C,_])=>{let E=N&&C,T="auto";return E&&(T=s3(S,y||_),E&&(E=!!T)),{followOutputBehavior:T,shouldFollow:E,totalCount:k}}),de(({shouldFollow:k})=>k)),({followOutputBehavior:k,totalCount:N})=>{v&&(v=(v(),null)),Be(a)?requestAnimationFrame(()=>{Be(c)("following output to ",{totalCount:N},xt.DEBUG),b(k)}):v=Vt(t,()=>{Be(c)("following output to ",{totalCount:N},xt.DEBUG),b(k),v=null})});function w(k){let N=Vt(n,S=>{k&&!S.atBottom&&S.notAtBottomBecause==="SIZE_INCREASED"&&!v&&(Be(c)("scrolling to bottom due to increased size",{},xt.DEBUG),b("auto"))});setTimeout(N,100)}_e(H(Ge(ue(g),e,u),de(([k,,N])=>k&&N),Xt(({value:k},[,N])=>({refreshed:k===N,value:N}),{refreshed:!1,value:0}),de(({refreshed:k})=>k),ve(g,e)),([,k])=>{Be(o)&&w(k!==!1)}),_e(f,()=>{w(Be(g)!==!1)}),_e(Ge(ue(g),n),([k,N])=>{k&&!N.atBottom&&N.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&b("auto")});let D=K(null),j=De();return ne(td(H(ue(r),X(k=>(k==null?void 0:k.length)??0)),H(ue(e))),j),_e(H(Ge(H(j,rr(1)),d),ve(ue(D),o,p,m),X(([[k,N],S,y,C,_])=>N&&y&&(S==null?void 0:S({context:_,totalCount:k,scrollingInProgress:C}))),de(k=>!!k),ha(0)),k=>{v&&(v=(v(),null)),Be(a)?requestAnimationFrame(()=>{Be(c)("scrolling into view",{}),fe(h,k)}):v=Vt(t,()=>{Be(c)("scrolling into view",{}),fe(h,k),v=null})}),{autoscrollToBottom:f,followOutput:g,scrollIntoViewOnChange:D}},Ae(ta,Rn,Nn,En,Aa,Ra,pt,X0,ex)),u3=ke(([{data:t,firstItemIndex:e,gap:a,sizes:r},{initialTopMostItemIndex:n},{initialItemCount:i,listState:l},{didMount:o}])=>(ne(H(o,ve(i),de(([,d])=>d!==0),ve(n,r,e,a,t),X(([[,d],u,c,p,m,h=[]])=>Y0(d,u,c,p,m,h))),l),{}),Ae(ta,En,ir,Aa),{singleton:!0}),c3=ke(([{didMount:t},{scrollTo:e},{listState:a}])=>{let r=K(0);return _e(H(t,ve(r),de(([,n])=>n!==0),X(([,n])=>({top:n}))),n=>{Vt(H(a,rr(1),de(i=>i.items.length>1)),()=>{requestAnimationFrame(()=>{fe(e,n)})})}),{initialScrollTop:r}},Ae(Aa,pt,ir),{singleton:!0}),ax=ke(([{scrollVelocity:t}])=>{let e=K(!1),a=De(),r=K(!1);return ne(H(t,ve(r,e,a),de(([n,i])=>!!i),X(([n,i,l,o])=>{let{enter:d,exit:u}=i;if(l){if(u(n,o))return!1}else if(d(n,o))return!0;return l}),Ie()),e),_e(H(Ge(e,t,a),ve(r)),([[n,i,l],o])=>{n&&o&&o.change&&o.change(i,l)}),{isSeeking:e,scrollSeekConfiguration:r,scrollSeekRangeChanged:a,scrollVelocity:t}},Ae(Rn),{singleton:!0}),gd=ke(([{scrollContainerState:t,scrollTo:e}])=>{let a=De(),r=De(),n=De(),i=K(!1),l=K(void 0);return ne(H(Ge(a,r),X(([{scrollHeight:o,scrollTop:d,viewportHeight:u},{offsetTop:c}])=>({scrollHeight:o,scrollTop:Math.max(0,d-c),viewportHeight:u}))),t),ne(H(e,ve(r),X(([o,{offsetTop:d}])=>({...o,top:o.top+d}))),n),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:a,windowScrollTo:n,windowViewportRect:r}},Ae(pt)),m3=ke(([{sizeRanges:t,sizes:e},{headerHeight:a,scrollTop:r},{initialTopMostItemIndex:n},{didMount:i},{useWindowScroll:l,windowScrollContainerState:o,windowViewportRect:d}])=>{let u=De(),c=K(void 0),p=K(null),m=K(null);return ne(o,p),ne(d,m),_e(H(u,ve(e,r,l,p,m,a)),([h,g,f,v,b,w,D])=>{let j=Yj(g.sizeTree);v&&b!==null&&w!==null&&(f=b.scrollTop-w.offsetTop),f-=D,h({ranges:j,scrollTop:f})}),ne(H(c,de(Xs),X(p3)),n),ne(H(i,ve(c),de(([,h])=>h!==void 0),Ie(),X(([,h])=>h.ranges)),t),{getState:u,restoreStateFrom:c}},Ae(ta,pt,En,Aa,gd));function p3(t){return{align:"start",index:0,offset:t.scrollTop}}var h3=ke(([{topItemsIndexes:t}])=>{let e=K(0);return ne(H(e,de(a=>a>=0),X(a=>Array.from({length:a}).map((r,n)=>n))),t),{topItemCount:e}},Ae(ir));function rx(t){let e=!1,a;return(()=>(e||(e=!0,a=t()),a))}var f3=rx(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),nx=ke(([{data:t,defaultItemSize:e,firstItemIndex:a,fixedItemSize:r,fixedGroupSize:n,gap:i,groupIndices:l,heightEstimates:o,itemSize:d,sizeRanges:u,sizes:c,statefulTotalCount:p,totalCount:m,trackItemSizes:h},{initialItemFinalLocationReached:g,initialTopMostItemIndex:f,scrolledToInitialItem:v},b,w,D,j,{scrollToIndex:k},N,{topItemCount:S},{groupCounts:y},C])=>{let{listState:_,minOverscanItemCount:E,topItemsIndexes:T,rangeChanged:P,...R}=j;return ne(P,C.scrollSeekRangeChanged),ne(H(C.windowViewportRect,X(F=>F.visibleHeight)),b.viewportHeight),{data:t,defaultItemHeight:e,firstItemIndex:a,fixedItemHeight:r,fixedGroupHeight:n,gap:i,groupCounts:y,heightEstimates:o,initialItemFinalLocationReached:g,initialTopMostItemIndex:f,scrolledToInitialItem:v,sizeRanges:u,topItemCount:S,topItemsIndexes:T,totalCount:m,...D,groupIndices:l,itemSize:d,listState:_,minOverscanItemCount:E,scrollToIndex:k,statefulTotalCount:p,trackItemSizes:h,rangeChanged:P,...R,...C,...b,sizes:c,...w}},Ae(ta,En,pt,m3,d3,ir,Nn,ke(([{deviation:t,scrollBy:e,scrollingInProgress:a,scrollTop:r},{isAtBottom:n,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:o},{listState:d},{beforeUnshiftWith:u,gap:c,shiftWithOffset:p,sizes:m},{log:h},{recalcInProgress:g}])=>{let f=bt(H(d,ve(l),Xt(([,b,w,D],[{bottom:j,items:k,offsetBottom:N,totalCount:S},y])=>{let C=j+N,_=0;return w===S&&b.length>0&&k.length>0&&(k[0].originalIndex===0&&b[0].originalIndex===0||(_=C-D,_!==0&&(_+=y))),[_,k,S,C]},[0,[],0,0]),de(([b])=>b!==0),ve(r,o,a,n,h,g),de(([,b,w,D,,,j])=>!j&&!D&&b!==0&&w===_n),X(([[b],,,,,w])=>(w("Upward scrolling compensation",{amount:b},xt.DEBUG),b))));function v(b){b>0?(fe(e,{behavior:"auto",top:-b}),fe(t,0)):(fe(t,0),fe(e,{behavior:"auto",top:-b}))}return _e(H(f,ve(t,i)),([b,w,D])=>{D&&f3()?fe(t,w-b):v(-b)}),_e(H(Ge(ut(i,!1),t,g),de(([b,w,D])=>!b&&!D&&w!==0),X(([b,w])=>w),ha(1)),v),ne(H(p,X(b=>({top:-b}))),e),_e(H(u,ve(m,c),X(([b,{groupIndices:w,lastSize:D,sizeTree:j},k])=>{function N(S){return S*(D+k)}if(w.length===0)return N(b);{let S=0,y=Cn(j,0),C=0,_=0;for(;Cb&&(S-=y,E=b-C+1),C+=E,S+=N(E),_++}return S}})),b=>{fe(t,b),requestAnimationFrame(()=>{fe(e,{top:b}),requestAnimationFrame(()=>{fe(t,0),fe(g,!1)})})}),{deviation:t}},Ae(pt,Rn,ir,ta,Ra,dd)),h3,H0,ke(([t,e,a,r,n,i,l,o,d,u,c])=>({...t,...e,...a,...r,...n,...i,...l,...o,...d,...u,...c}),Ae(hd,u3,Aa,ax,J0,c3,l3,gd,ex,Ra,X0))));function g3(t,e){let a={},r={},n=0,i=t.length;for(;n(m[h]=g=>{let f=p[e.methods[h]];fe(f,g)},m),{})}function c(p){return l.reduce((m,h)=>(m[h]=Mj(p[e.events[h]]),m),{})}return{Component:x.forwardRef((p,m)=>{let{children:h,...g}=p,[f]=x.useState(()=>Ji(Vj(t),w=>{d(w,g)})),[v]=x.useState(N0(c,f));al(()=>{for(let w of l)w in g&&_e(v[w],g[w]);return()=>{Object.values(v).map(ed)}},[g,v,f]),al(()=>{d(f,g)}),x.useImperativeHandle(m,S0(u(f)));let b=a;return(0,s.jsx)(o.Provider,{value:f,children:a?(0,s.jsx)(b,{...g3([...r,...n,...l],g),children:h}):h})}),useEmitter:(p,m)=>{let h=x.useContext(o)[p];al(()=>_e(h,m),[m,h])},useEmitterValue:p=>{let m=x.useContext(o)[p],[h,g]=x.useState(N0(Be,m));return al(()=>_e(m,f=>{f!==h&&g(S0(f))}),[m,h]),h},usePublisher:p=>{let m=x.useContext(o);return x.useCallback(h=>{fe(m[p],h)},[m,p])}}}var rl=x.createContext(void 0),ix=x.createContext(void 0),lx=typeof document<"u"?x.useLayoutEffect:x.useEffect;function vd(t){return"self"in t}function x3(t){return"body"in t}function ox(t,e,a,r=Er,n,i){let l=x.useRef(null),o=x.useRef(null),d=x.useRef(null),u=x.useCallback(m=>{let h,g,f,v=m.target;if(x3(v)||vd(v)){let w=vd(v)?v:v.defaultView;f=i?w.scrollX:w.scrollY,h=i?w.document.documentElement.scrollWidth:w.document.documentElement.scrollHeight,g=i?w.innerWidth:w.innerHeight}else f=i?v.scrollLeft:v.scrollTop,h=i?v.scrollWidth:v.scrollHeight,g=i?v.offsetWidth:v.offsetHeight;let b=()=>{t({scrollHeight:h,scrollTop:Math.max(f,0),viewportHeight:g})};m.suppressFlushSync?b():_j.flushSync(b),o.current!==null&&(f===o.current||f<=0||f===h-g)&&(o.current=null,e(!0),d.current&&(d.current=(clearTimeout(d.current),null)))},[t,e,i]);x.useEffect(()=>{let m=n||l.current;return r(n||l.current),u({suppressFlushSync:!0,target:m}),m.addEventListener("scroll",u,{passive:!0}),()=>{r(null),m.removeEventListener("scroll",u)}},[l,u,a,r,n]);function c(m){let h=l.current;if(!h||(i?"offsetWidth"in h&&h.offsetWidth===0:"offsetHeight"in h&&h.offsetHeight===0))return;let g=m.behavior==="smooth",f,v,b;vd(h)?(v=Math.max(Ot(h.document.documentElement,i?"width":"height"),i?h.document.documentElement.scrollWidth:h.document.documentElement.scrollHeight),f=i?h.innerWidth:h.innerHeight,b=i?window.scrollX:window.scrollY):(v=h[i?"scrollWidth":"scrollHeight"],f=Ot(h,i?"width":"height"),b=h[i?"scrollLeft":"scrollTop"]);let w=v-f;if(m.top=Math.ceil(Math.max(Math.min(w,m.top),0)),U0(f,v)||m.top===b){t({scrollHeight:v,scrollTop:b,viewportHeight:f}),g&&e(!0);return}g?(o.current=m.top,d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{d.current=null,o.current=null,e(!0)},1e3)):o.current=null,i&&(m={behavior:m.behavior,left:m.top}),h.scrollTo(m)}function p(m){i&&(m={behavior:m.behavior,left:m.top}),l.current.scrollBy(m)}return{scrollByCallback:p,scrollerRef:l,scrollToCallback:c}}var yd="-webkit-sticky",sx="sticky",bd=rx(()=>{if(typeof document>"u")return sx;let t=document.createElement("div");return t.style.position=yd,t.style.position===yd?yd:sx});function wd(t){return t}var v3=ke(([t,e])=>({...t,...e}),Ae(nx,ke(()=>{let t=K(o=>`Item ${o}`),e=K(o=>`Group ${o}`),a=K({}),r=K(wd),n=K("div"),i=K(Er),l=(o,d=null)=>ut(H(a,X(u=>u[o]),Ie()),d);return{components:a,computeItemKey:r,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:e,HeaderComponent:l("Header"),HeaderFooterTag:n,ItemComponent:l("Item","div"),itemContent:t,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}}))),y3=({height:t})=>(0,s.jsx)("div",{style:{height:t}}),b3={overflowAnchor:"none",position:bd(),zIndex:1},dx={overflowAnchor:"none"},w3={...dx,display:"inline-block",height:"100%"},ux=x.memo(function({showTopList:t=!1}){let e=pe("listState"),a=Rt("sizeRanges"),r=pe("useWindowScroll"),n=pe("customScrollParent"),i=Rt("windowScrollContainerState"),l=Rt("scrollContainerState"),o=n||r?i:l,d=pe("itemContent"),u=pe("context"),c=pe("groupContent"),p=pe("trackItemSizes"),m=pe("itemSize"),h=pe("log"),g=Rt("gap"),f=pe("horizontalDirection"),{callbackRef:v}=T0(a,m,p,t?Er:o,h,g,n,f,pe("skipAnimationFrameInResizeObserver")),[b,w]=x.useState(0);Cd("deviation",R=>{b!==R&&w(R)});let D=pe("EmptyPlaceholder"),j=pe("ScrollSeekPlaceholder")||y3,k=pe("ListComponent"),N=pe("ItemComponent"),S=pe("GroupComponent"),y=pe("computeItemKey"),C=pe("isSeeking"),_=pe("groupIndices").length>0,E=pe("alignToBottom"),T=pe("initialItemFinalLocationReached"),P=t?{}:{boxSizing:"border-box",...f?{display:"inline-block",height:"100%",marginLeft:b===0?E?"auto":0:b,paddingLeft:e.offsetTop,paddingRight:e.offsetBottom,whiteSpace:"nowrap"}:{marginTop:b===0?E?"auto":0:b,paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},...T?{}:{visibility:"hidden"}};return!t&&e.totalCount===0&&D?(0,s.jsx)(D,{...Pe(D,u)}):(0,s.jsx)(k,{...Pe(k,u),"data-testid":t?"virtuoso-top-item-list":"virtuoso-item-list",ref:v,style:P,children:(t?e.topItems:e.items).map(R=>{let F=R.originalIndex,I=y(F+e.firstItemIndex,R.data,u);return C?(0,x.createElement)(j,{...Pe(j,u),height:R.size,index:R.index,key:I,type:R.type||"item",...R.type==="group"?{}:{groupIndex:R.groupIndex}}):R.type==="group"?(0,x.createElement)(S,{...Pe(S,u),"data-index":F,"data-item-index":R.index,"data-known-size":R.size,key:I,style:b3},c(R.index,u)):(0,x.createElement)(N,{...Pe(N,u),...cx(N,R.data),"data-index":F,"data-item-group-index":R.groupIndex,"data-item-index":R.index,"data-known-size":R.size,key:I,style:f?w3:dx},_?d(R.index,R.groupIndex,R.data,u):d(R.index,R.data,u))})})}),D3={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},j3={outline:"none",overflowX:"auto",position:"relative"},Rr=t=>({height:"100%",position:"absolute",top:0,width:"100%",...t?{display:"flex",flexDirection:"column"}:{}}),C3={position:bd(),top:0,width:"100%",zIndex:1};function Pe(t,e){if(typeof t!="string")return{context:e}}function cx(t,e){return{item:typeof t=="string"?void 0:e}}var k3=x.memo(function(){let t=pe("HeaderComponent"),e=Rt("headerHeight"),a=pe("HeaderFooterTag"),r=ea(x.useMemo(()=>i=>{e(Ot(i,"height"))},[e]),!0,pe("skipAnimationFrameInResizeObserver")),n=pe("context");return t?(0,s.jsx)(a,{ref:r,children:(0,s.jsx)(t,{...Pe(t,n)})}):null}),S3=x.memo(function(){let t=pe("FooterComponent"),e=Rt("footerHeight"),a=pe("HeaderFooterTag"),r=ea(x.useMemo(()=>i=>{e(Ot(i,"height"))},[e]),!0,pe("skipAnimationFrameInResizeObserver")),n=pe("context");return t?(0,s.jsx)(a,{ref:r,children:(0,s.jsx)(t,{...Pe(t,n)})}):null});function Dd({useEmitter:t,useEmitterValue:e,usePublisher:a}){return x.memo(function({children:r,style:n,context:i,...l}){let o=a("scrollContainerState"),d=e("ScrollerComponent"),u=a("smoothScrollTargetReached"),c=e("scrollerRef"),p=e("horizontalDirection")||!1,{scrollByCallback:m,scrollerRef:h,scrollToCallback:g}=ox(o,u,d,c,void 0,p);return t("scrollTo",g),t("scrollBy",m),(0,s.jsx)(d,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:h,style:{...p?j3:D3,...n},tabIndex:0,...l,...Pe(d,i),children:r})})}function jd({useEmitter:t,useEmitterValue:e,usePublisher:a}){return x.memo(function({children:r,style:n,context:i,...l}){let o=a("windowScrollContainerState"),d=e("ScrollerComponent"),u=a("smoothScrollTargetReached"),c=e("totalListHeight"),p=e("deviation"),m=e("customScrollParent"),h=x.useRef(null),{scrollByCallback:g,scrollerRef:f,scrollToCallback:v}=ox(o,u,d,e("scrollerRef"),m);return lx(()=>{var b;return f.current=m||((b=h.current)==null?void 0:b.ownerDocument.defaultView),()=>{f.current=null}},[f,m]),t("windowScrollTo",v),t("scrollBy",g),(0,s.jsx)(d,{ref:h,"data-virtuoso-scroller":!0,style:{position:"relative",...n,...c===0?{}:{height:c+p}},...l,...Pe(d,i),children:r})})}var N3=({children:t})=>{let e=x.useContext(rl),a=Rt("viewportHeight"),r=Rt("fixedItemHeight"),n=pe("alignToBottom"),i=pe("horizontalDirection"),l=ea(x.useMemo(()=>Dn(a,o=>Ot(o,i?"width":"height")),[a,i]),!0,pe("skipAnimationFrameInResizeObserver"));return x.useEffect(()=>{e&&(a(e.viewportHeight),r(e.itemHeight))},[e,a,r]),(0,s.jsx)("div",{"data-viewport-type":"element",ref:l,style:Rr(n),children:t})},E3=({children:t})=>{let e=x.useContext(rl),a=Rt("windowViewportRect"),r=Rt("fixedItemHeight"),n=rd(a,pe("customScrollParent"),pe("skipAnimationFrameInResizeObserver")),i=pe("alignToBottom");return x.useEffect(()=>{e&&(r(e.itemHeight),a({offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:100}))},[e,a,r]),(0,s.jsx)("div",{"data-viewport-type":"window",ref:n,style:Rr(i),children:t})},_3=({children:t})=>{let e=pe("TopItemListComponent")||"div",a=pe("headerHeight");return(0,s.jsx)(e,{style:{...C3,marginTop:`${a}px`},...Pe(e,pe("context")),children:t})},{Component:T3,useEmitter:Cd,useEmitterValue:pe,usePublisher:Rt}=xd(v3,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},x.memo(function(t){let e=pe("useWindowScroll"),a=pe("topItemsIndexes").length>0,r=pe("customScrollParent"),n=pe("context");return(0,s.jsxs)(r||e?A3:R3,{...t,context:n,children:[a&&(0,s.jsx)(_3,{children:(0,s.jsx)(ux,{showTopList:!0})}),(0,s.jsxs)(r||e?E3:N3,{children:[(0,s.jsx)(k3,{}),(0,s.jsx)(ux,{}),(0,s.jsx)(S3,{})]})]})})),R3=Dd({useEmitter:Cd,useEmitterValue:pe,usePublisher:Rt}),A3=jd({useEmitter:Cd,useEmitterValue:pe,usePublisher:Rt}),mx=T3,I3=ke(([t,e])=>({...t,...e}),Ae(nx,ke(()=>{let t=K(u=>(0,s.jsxs)("td",{children:["Item $",u]})),e=K(null),a=K(u=>(0,s.jsxs)("td",{colSpan:1e3,children:["Group ",u]})),r=K(null),n=K(null),i=K({}),l=K(wd),o=K(Er),d=(u,c=null)=>ut(H(i,X(p=>p[u]),Ie()),c);return{components:i,computeItemKey:l,context:e,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:n,fixedHeaderContent:r,itemContent:t,groupContent:a,ScrollerComponent:d("Scroller","div"),scrollerRef:o,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}}))),P3=({height:t})=>(0,s.jsx)("tr",{children:(0,s.jsx)("td",{style:{height:t}})}),M3=({height:t})=>(0,s.jsx)("tr",{children:(0,s.jsx)("td",{style:{border:0,height:t,padding:0}})}),F3={overflowAnchor:"none"},px={position:bd(),zIndex:2,overflowAnchor:"none"},hx=x.memo(function({showTopList:t=!1}){let e=ge("listState"),a=ge("computeItemKey"),r=ge("firstItemIndex"),n=ge("context"),i=ge("isSeeking"),l=ge("fixedHeaderHeight"),o=ge("groupIndices").length>0,d=ge("itemContent"),u=ge("groupContent"),c=ge("ScrollSeekPlaceholder")||P3,p=ge("GroupComponent"),m=ge("TableRowComponent"),h=(t?e.topItems:[]).reduce((g,f,v)=>(v===0?g.push(f.size):g.push(g[v-1]+f.size),g),[]);return(0,s.jsx)(s.Fragment,{children:(t?e.topItems:e.items).map(g=>{let f=g.originalIndex,v=a(f+r,g.data,n),b=t?f===0?0:h[f-1]:0;return i?(0,x.createElement)(c,{...Pe(c,n),height:g.size,index:g.index,key:v,type:g.type||"item"}):g.type==="group"?(0,x.createElement)(p,{...Pe(p,n),"data-index":f,"data-item-index":g.index,"data-known-size":g.size,key:v,style:{...px,top:l}},u(g.index,n)):(0,x.createElement)(m,{...Pe(m,n),...cx(m,g.data),"data-index":f,"data-item-index":g.index,"data-known-size":g.size,"data-item-group-index":g.groupIndex,key:v,style:t?{...px,top:l+b}:F3},o?d(g.index,g.groupIndex,g.data,n):d(g.index,g.data,n))})})}),V3=x.memo(function(){let t=ge("listState"),e=ge("topItemsIndexes").length>0,a=$t("sizeRanges"),r=ge("useWindowScroll"),n=ge("customScrollParent"),i=$t("windowScrollContainerState"),l=$t("scrollContainerState"),o=n||r?i:l,d=ge("trackItemSizes"),{callbackRef:u,ref:c}=T0(a,ge("itemSize"),d,o,ge("log"),void 0,n,!1,ge("skipAnimationFrameInResizeObserver")),[p,m]=x.useState(0);kd("deviation",y=>{p!==y&&(c.current.style.marginTop=`${y}px`,m(y))});let h=ge("EmptyPlaceholder"),g=ge("FillerRow")||M3,f=ge("TableBodyComponent"),v=ge("paddingTopAddition"),b=ge("statefulTotalCount"),w=ge("context");if(b===0&&h)return(0,s.jsx)(h,{...Pe(h,w)});let D=(e?t.topItems:[]).reduce((y,C)=>y+C.size,0),j=t.offsetTop+v+p-D,k=t.offsetBottom,N=j>0?(0,s.jsx)(g,{context:w,height:j},"padding-top"):null,S=k>0?(0,s.jsx)(g,{context:w,height:k},"padding-bottom"):null;return(0,s.jsxs)(f,{"data-testid":"virtuoso-item-list",ref:u,...Pe(f,w),children:[N,e&&(0,s.jsx)(hx,{showTopList:!0}),(0,s.jsx)(hx,{}),S]})}),z3=({children:t})=>{let e=x.useContext(rl),a=$t("viewportHeight"),r=$t("fixedItemHeight"),n=ea(x.useMemo(()=>Dn(a,i=>Ot(i,"height")),[a]),!0,ge("skipAnimationFrameInResizeObserver"));return x.useEffect(()=>{e&&(a(e.viewportHeight),r(e.itemHeight))},[e,a,r]),(0,s.jsx)("div",{"data-viewport-type":"element",ref:n,style:Rr(!1),children:t})},O3=({children:t})=>{let e=x.useContext(rl),a=$t("windowViewportRect"),r=$t("fixedItemHeight"),n=rd(a,ge("customScrollParent"),ge("skipAnimationFrameInResizeObserver"));return x.useEffect(()=>{e&&(r(e.itemHeight),a({offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:100}))},[e,a,r]),(0,s.jsx)("div",{"data-viewport-type":"window",ref:n,style:Rr(!1),children:t})},{Component:N6,useEmitter:kd,useEmitterValue:ge,usePublisher:$t}=xd(I3,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},x.memo(function(t){let e=ge("useWindowScroll"),a=ge("customScrollParent"),r=$t("fixedHeaderHeight"),n=$t("fixedFooterHeight"),i=ge("fixedHeaderContent"),l=ge("fixedFooterContent"),o=ge("context"),d=ea(x.useMemo(()=>Dn(r,b=>Ot(b,"height")),[r]),!0,ge("skipAnimationFrameInResizeObserver")),u=ea(x.useMemo(()=>Dn(n,b=>Ot(b,"height")),[n]),!0,ge("skipAnimationFrameInResizeObserver")),c=a||e?L3:$3,p=a||e?O3:z3,m=ge("TableComponent"),h=ge("TableHeadComponent"),g=ge("TableFooterComponent"),f=i?(0,s.jsx)(h,{ref:d,style:{position:"sticky",top:0,zIndex:2},...Pe(h,o),children:i()},"TableHead"):null,v=l?(0,s.jsx)(g,{ref:u,style:{bottom:0,position:"sticky",zIndex:1},...Pe(g,o),children:l()},"TableFoot"):null;return(0,s.jsx)(c,{...t,...Pe(c,o),children:(0,s.jsx)(p,{children:(0,s.jsxs)(m,{style:{borderSpacing:0,overflowAnchor:"none"},...Pe(m,o),children:[f,(0,s.jsx)(V3,{},"TableBody"),v]})})})})),$3=Dd({useEmitter:kd,useEmitterValue:ge,usePublisher:$t}),L3=jd({useEmitter:kd,useEmitterValue:ge,usePublisher:$t}),fx={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},B3={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:gx,floor:nl,max:Pn,min:Sd,round:xx}=Math;function vx(t,e,a){return Array.from({length:e-t+1}).map((r,n)=>({data:a===null?null:a[n+t],index:n+t}))}function H3(t){return{...B3,items:t}}function il(t,e){return t&&t.width===e.width&&t.height===e.height}function W3(t,e){return t&&t.column===e.column&&t.row===e.row}var U3=ke(([{increaseViewportBy:t,listBoundary:e,overscan:a,visibleRange:r},{footerHeight:n,headerHeight:i,scrollBy:l,scrollContainerState:o,scrollTo:d,scrollTop:u,smoothScrollTargetReached:c,viewportHeight:p},m,h,{didMount:g,propsReady:f},{customScrollParent:v,useWindowScroll:b,windowScrollContainerState:w,windowScrollTo:D,windowViewportRect:j},k])=>{let N=K(0),S=K(0),y=K(fx),C=K({height:0,width:0}),_=K({height:0,width:0}),E=De(),T=De(),P=K(0),R=K(null),F=K({column:0,row:0}),I=De(),V=De(),A=K(!1),O=K(0),z=K(!0),L=K(!1),G=K(!1);_e(H(g,ve(O),de(([B,re])=>!!re)),()=>{fe(z,!1)}),_e(H(Ge(g,z,_,C,O,L),de(([B,re,te,ie,,xe])=>B&&!re&&te.height!==0&&ie.height!==0&&!xe)),([,,,,B])=>{fe(L,!0),md(1,()=>{fe(E,B)}),Vt(H(u),()=>{fe(e,[0,0]),fe(z,!0)})}),ne(H(V,de(B=>B!=null&&B.scrollTop>0),Jt(0)),S),_e(H(g,ve(V),de(([,B])=>B!=null)),([,B])=>{B&&(fe(C,B.viewport),fe(_,B.item),fe(F,B.gap),B.scrollTop>0&&(fe(A,!0),Vt(H(u,rr(1)),re=>{fe(A,!1)}),fe(d,{top:B.scrollTop})))}),ne(H(C,X(({height:B})=>B)),p),ne(H(Ge(ue(C,il),ue(_,il),ue(F,(B,re)=>B&&B.column===re.column&&B.row===re.row),ue(u)),X(([B,re,te,ie])=>({gap:te,item:re,scrollTop:ie,viewport:B}))),I),ne(H(Ge(ue(N),r,ue(F,W3),ue(_,il),ue(C,il),ue(R),ue(S),ue(A),ue(z),ue(O)),de(([,,,,,,,B])=>!B),X(([B,[re,te],ie,xe,me,he,be,,Re,je])=>{let{column:Ne,row:Qe}=ie,{height:lt,width:vt}=xe,{width:ot}=me;if(be===0&&(B===0||ot===0))return fx;if(vt===0){let Tl=pd(je,B);return H3(vx(Tl,Tl+Math.max(be-1,0),he))}let Bt=yx(ot,vt,Ne),Ct,ht;Re?re===0&&te===0&&be>0?(Ct=0,ht=be-1):(Ct=Bt*nl((re+Qe)/(lt+Qe)),ht=Bt*gx((te+Qe)/(lt+Qe))-1,ht=Sd(B-1,Pn(ht,Bt-1)),Ct=Sd(ht,Pn(0,Ct))):(Ct=0,ht=-1);let Nl=vx(Ct,ht,he),{bottom:zr,top:El}=bx(me,ie,xe,Nl),_l=gx(B/Bt);return{bottom:zr,itemHeight:lt,items:Nl,itemWidth:vt,offsetBottom:_l*lt+(_l-1)*Qe-zr,offsetTop:El,top:El}})),y),ne(H(R,de(B=>B!==null),X(B=>B.length)),N),ne(H(Ge(C,_,y,F),de(([B,re,{items:te}])=>te.length>0&&re.height!==0&&B.height!==0),X(([B,re,{items:te},ie])=>{let{bottom:xe,top:me}=bx(B,ie,re,te);return[me,xe]}),Ie(kn)),e);let Q=K(!1);ne(H(u,ve(Q),X(([B,re])=>re||B!==0)),Q);let ae=bt(H(Ge(y,N),de(([{items:B}])=>B.length>0),ve(Q),de(([[B,re],te])=>{let ie=B.items[B.items.length-1].index===re-1;return(te||B.bottom>0&&B.itemHeight>0&&B.offsetBottom===0&&B.items.length===re)&&ie}),X(([[,B]])=>B-1),Ie())),ce=bt(H(ue(y),de(({items:B})=>B.length>0&&B[0].index===0),Jt(0),Ie())),le=bt(H(ue(y),ve(A),de(([{items:B},re])=>B.length>0&&!re),X(([{items:B}])=>({endIndex:B[B.length-1].index,startIndex:B[0].index})),Ie(z0),ha(0)));ne(le,h.scrollSeekRangeChanged),ne(H(E,ve(C,_,N,F),X(([B,re,te,ie,xe])=>{let me=W0(B),{align:he,behavior:be,offset:Re}=me,je=me.index;je==="LAST"&&(je=ie-1),je=Pn(0,je,Sd(ie-1,je));let Ne=Nd(re,xe,te,je);return he==="end"?Ne=xx(Ne-re.height+te.height):he==="center"&&(Ne=xx(Ne-re.height/2+te.height/2)),Re&&(Ne+=Re),{behavior:be,top:Ne}})),d);let Z=ut(H(y,X(B=>B.offsetBottom+B.bottom)),0);return ne(H(j,X(B=>({height:B.visibleHeight,width:B.visibleWidth}))),C),{customScrollParent:v,data:R,deviation:P,footerHeight:n,gap:F,headerHeight:i,increaseViewportBy:t,initialItemCount:S,itemDimensions:_,overscan:a,restoreStateFrom:V,scrollBy:l,scrollContainerState:o,scrollHeight:T,scrollTo:d,scrollToIndex:E,scrollTop:u,smoothScrollTargetReached:c,totalCount:N,useWindowScroll:b,viewportDimensions:C,windowScrollContainerState:w,windowScrollTo:D,windowViewportRect:j,...h,gridState:y,horizontalDirection:G,initialTopMostItemIndex:O,totalListHeight:Z,...m,endReached:ae,propsReady:f,rangeChanged:le,startReached:ce,stateChanged:I,stateRestoreInProgress:A,...k}},Ae(hd,pt,Rn,ax,Aa,gd,Ra));function yx(t,e,a){return Pn(1,nl((t+a)/(nl(e)+a)))}function bx(t,e,a,r){let{height:n}=a;if(n===void 0||r.length===0)return{bottom:0,top:0};let i=Nd(t,e,a,r[0].index);return{bottom:Nd(t,e,a,r[r.length-1].index)+n,top:i}}function Nd(t,e,a,r){let n=nl(r/yx(t.width,a.width,e.column)),i=n*a.height+Pn(0,n-1)*e.row;return i>0?i+e.row:i}var K3=ke(([t,e])=>({...t,...e}),Ae(U3,ke(()=>{let t=K(p=>`Item ${p}`),e=K({}),a=K(null),r=K("virtuoso-grid-item"),n=K("virtuoso-grid-list"),i=K(wd),l=K("div"),o=K(Er),d=(p,m=null)=>ut(H(e,X(h=>h[p]),Ie()),m),u=K(!1),c=K(!1);return ne(ue(c),u),{components:e,computeItemKey:i,context:a,FooterComponent:d("Footer"),HeaderComponent:d("Header"),headerFooterTag:l,itemClassName:r,ItemComponent:d("Item","div"),itemContent:t,listClassName:n,ListComponent:d("List","div"),readyStateChanged:u,reportReadyState:c,ScrollerComponent:d("Scroller","div"),scrollerRef:o,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder","div")}}))),Z3=x.memo(function(){let t=ze("gridState"),e=ze("listClassName"),a=ze("itemClassName"),r=ze("itemContent"),n=ze("computeItemKey"),i=ze("isSeeking"),l=At("scrollHeight"),o=ze("ItemComponent"),d=ze("ListComponent"),u=ze("ScrollSeekPlaceholder"),c=ze("context"),p=At("itemDimensions"),m=At("gap"),h=ze("log"),g=ze("stateRestoreInProgress"),f=At("reportReadyState"),v=ea(x.useMemo(()=>b=>{let w=b.parentElement.parentElement.scrollHeight;l(w);let D=b.firstChild;if(D){let{height:j,width:k}=D.getBoundingClientRect();p({height:j,width:k})}m({column:Dx("column-gap",getComputedStyle(b).columnGap,h),row:Dx("row-gap",getComputedStyle(b).rowGap,h)})},[l,p,m,h]),!0,!1);return lx(()=>{t.itemHeight>0&&t.itemWidth>0&&f(!0)},[t]),g?null:(0,s.jsx)(d,{className:e,ref:v,...Pe(d,c),"data-testid":"virtuoso-item-list",style:{paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},children:t.items.map(b=>{let w=n(b.index,b.data,c);return i?(0,s.jsx)(u,{...Pe(u,c),height:t.itemHeight,index:b.index,width:t.itemWidth},w):(0,x.createElement)(o,{...Pe(o,c),className:a,"data-index":b.index,key:w},r(b.index,b.data,c))})})}),q3=x.memo(function(){let t=ze("HeaderComponent"),e=At("headerHeight"),a=ze("headerFooterTag"),r=ea(x.useMemo(()=>i=>{e(Ot(i,"height"))},[e]),!0,!1),n=ze("context");return t?(0,s.jsx)(a,{ref:r,children:(0,s.jsx)(t,{...Pe(t,n)})}):null}),Y3=x.memo(function(){let t=ze("FooterComponent"),e=At("footerHeight"),a=ze("headerFooterTag"),r=ea(x.useMemo(()=>i=>{e(Ot(i,"height"))},[e]),!0,!1),n=ze("context");return t?(0,s.jsx)(a,{ref:r,children:(0,s.jsx)(t,{...Pe(t,n)})}):null}),G3=({children:t})=>{let e=x.useContext(ix),a=At("itemDimensions"),r=At("viewportDimensions"),n=ea(x.useMemo(()=>i=>{r(i.getBoundingClientRect())},[r]),!0,!1);return x.useEffect(()=>{e&&(r({height:e.viewportHeight,width:e.viewportWidth}),a({height:e.itemHeight,width:e.itemWidth}))},[e,r,a]),(0,s.jsx)("div",{ref:n,style:Rr(!1),children:t})},Q3=({children:t})=>{let e=x.useContext(ix),a=At("windowViewportRect"),r=At("itemDimensions"),n=rd(a,ze("customScrollParent"),!1);return x.useEffect(()=>{e&&(r({height:e.itemHeight,width:e.itemWidth}),a({offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:e.viewportWidth}))},[e,a,r]),(0,s.jsx)("div",{ref:n,style:Rr(!1),children:t})},{Component:E6,useEmitter:wx,useEmitterValue:ze,usePublisher:At}=xd(K3,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},x.memo(function({...t}){let e=ze("useWindowScroll"),a=ze("customScrollParent"),r=a||e?X3:J3,n=a||e?Q3:G3,i=ze("context");return(0,s.jsx)(r,{...t,...Pe(r,i),children:(0,s.jsxs)(n,{children:[(0,s.jsx)(q3,{}),(0,s.jsx)(Z3,{}),(0,s.jsx)(Y3,{})]})})})),J3=Dd({useEmitter:wx,useEmitterValue:ze,usePublisher:At}),X3=jd({useEmitter:wx,useEmitterValue:ze,usePublisher:At});function Dx(t,e,a){return e!=="normal"&&!(e!=null&&e.endsWith("px"))&&a(`${t} was not resolved to pixel value correctly`,e,xt.WARN),e==="normal"?0:parseInt(e??"0",10)}function jx(t,e){return e.split(/\s+/).every(a=>t.toLowerCase().includes(a.toLowerCase()))?1:0}var eC=J(),tC=class{constructor(){q(this,"tagName","marimo-multiselect");q(this,"validator",$({initialValue:ee(M()),label:M().nullable(),options:ee(M()),fullWidth:W().default(!1),maxSelections:Y().optional()}))}render(t){return(0,s.jsx)(Cx,{...t.data,value:t.value,setValue:t.setValue})}},Ed="__select_all__",_d="__deselect_all__";const Cx=t=>{let e=(0,eC.c)(45),{options:a,label:r,value:n,setValue:i,fullWidth:l,maxSelections:o}=t,d=(0,x.useId)(),[u,c]=(0,x.useState)(""),p;e:{if(!u){p=a;break e}let _;if(e[0]!==a||e[1]!==u){let E;e[3]===u?E=e[4]:(E=T=>jx(T,u)===1,e[3]=u,e[4]=E),_=a.filter(E),e[0]=a,e[1]=u,e[2]=_}else _=e[2];p=_}let m=p,h;e[5]!==o||e[6]!==i?(h=_=>{if(!_||_.length===0){i([]);return}if(_=_.filter(aC),o===1){i([_[_.length-1]]);return}o!=null&&_.length>o&&(_=_.slice(-o)),i(_)},e[5]=o,e[6]=i,e[7]=h):h=e[7];let g=h,f;e[8]!==a||e[9]!==i?(f=()=>{i(a)},e[8]=a,e[9]=i,e[10]=f):f=e[10];let v=f,b;e[11]===i?b=e[12]:(b=()=>{i([])},e[11]=i,e[12]=b);let w=b,D;if(e[13]!==w||e[14]!==v||e[15]!==o||e[16]!==a.length||e[17]!==n){D=[];let _=a.length>0&&n.length0&&n.length>0;if(a.length>2&&o==null){let T=!_,P;e[19]!==v||e[20]!==T?(P=(0,s.jsx)(ja,{value:Ed,onSelect:v,disabled:T,children:"Select all"},Ed),e[19]=v,e[20]=T,e[21]=P):P=e[21],D.push(P)}if(a.length>2){let T=!E,P=o===1?"Deselect":"Deselect all",R;e[22]!==w||e[23]!==T||e[24]!==P?(R=(0,s.jsx)(ja,{value:_d,onSelect:w,disabled:T,children:P},_d),e[22]=w,e[23]=T,e[24]=P,e[25]=R):R=e[25];let F;e[26]===Symbol.for("react.memo_cache_sentinel")?(F=(0,s.jsx)($A,{},"_separator"),e[26]=F):F=e[26],D.push(R,F)}e[13]=w,e[14]=v,e[15]=o,e[16]=a.length,e[17]=n,e[18]=D}else D=e[18];let j;e[27]!==D||e[28]!==m?(j=()=>{if(m.length>200)return(0,s.jsx)(mx,{style:{height:"200px"},totalCount:m.length,overscan:50,itemContent:E=>{let T=(0,s.jsx)(ja,{value:m[E],children:m[E]},m[E]);return E===0?(0,s.jsxs)(s.Fragment,{children:[D,T]}):T}});let _=m.map(rC);return(0,s.jsxs)(s.Fragment,{children:[D,_]})},e[27]=D,e[28]=m,e[29]=j):j=e[29];let k=j,N;e[30]===l?N=e[31]:(N=U({"w-full":l}),e[30]=l,e[31]=N);let S;e[32]===k?S=e[33]:(S=k(),e[32]=k,e[33]=S);let y;e[34]!==g||e[35]!==u||e[36]!==N||e[37]!==S||e[38]!==n?(y=(0,s.jsx)(co,{displayValue:nC,placeholder:"Select...",multiple:!0,className:N,value:n,onValueChange:g,shouldFilter:!1,search:u,onSearchChange:c,children:S}),e[34]=g,e[35]=u,e[36]=N,e[37]=S,e[38]=n,e[39]=y):y=e[39];let C;return e[40]!==l||e[41]!==d||e[42]!==r||e[43]!==y?(C=(0,s.jsx)(Le,{label:r,id:d,fullWidth:l,children:y}),e[40]=l,e[41]=d,e[42]=r,e[43]=y,e[44]=C):C=e[44],C};function aC(t){return t!==Ed&&t!==_d}function rC(t){return(0,s.jsx)(ja,{value:t,children:t},t)}function nC(t){return t}var fa=J();const Lt=t=>{let e=(0,fa.c)(5),{text:a,tooltip:r}=t,n;e[0]===r?n=e[1]:(n=r&&(0,s.jsx)(Mt,{content:r,children:(0,s.jsx)(Pl,{className:"w-3 h-3 mt-0.5"})}),e[0]=r,e[1]=n);let i;return e[2]!==n||e[3]!==a?(i=(0,s.jsxs)("h2",{className:"font-semibold my-0 flex items-center gap-1",children:[a,n]}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i},kx=t=>{let e=(0,fa.c)(5),{children:a,className:r}=t,n;e[0]===r?n=e[1]:(n=U("flex flex-col gap-2",r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i},Td=t=>{let e=(0,fa.c)(4),{className:a}=t,r;e[0]===a?r=e[1]:(r=U("my-1",a),e[0]=a,e[1]=r);let n;return e[2]===r?n=e[3]:(n=(0,s.jsx)("hr",{className:r}),e[2]=r,e[3]=n),n},ll=t=>{let e=(0,fa.c)(5),{children:a,className:r}=t,n;e[0]===r?n=e[1]:(n=U("flex flex-col gap-1.5",r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)("section",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i},Sx=t=>{let e=(0,fa.c)(7),{Icon:a,text:r}=t,n;e[0]===a?n=e[1]:(n=(0,s.jsx)(a,{className:"w-3 h-3 mr-2"}),e[0]=a,e[1]=n);let i;e[2]===r?i=e[3]:(i=(0,s.jsx)("span",{children:r}),e[2]=r,e[3]=i);let l;return e[4]!==n||e[5]!==i?(l=(0,s.jsxs)("div",{className:"flex items-center",children:[n,i]}),e[4]=n,e[5]=i,e[6]=l):l=e[6],l},Ar=t=>{let e=(0,fa.c)(5),{children:a,className:r}=t,n;e[0]===r?n=e[1]:(n=U("py-1",r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)(Uv,{className:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i},Ir=t=>{let e=(0,fa.c)(3),{children:a,value:r}=t,n;return e[0]!==a||e[1]!==r?(n=(0,s.jsx)(Kv,{value:r,className:"border-none",children:a}),e[0]=a,e[1]=r,e[2]=n):n=e[2],n},Pr=t=>{let e=(0,fa.c)(5),{children:a,wrapperClassName:r}=t,n;e[0]===r?n=e[1]:(n=U("pb-2 flex flex-col gap-2",r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)(Zv,{wrapperClassName:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i},iC=t=>{let e=(0,fa.c)(4),{code:a,insertNewCell:r,language:n}=t,i;return e[0]!==a||e[1]!==r||e[2]!==n?(i=(0,s.jsx)(Tu,{minHeight:"330px",maxHeight:"330px",code:a,language:n,showHideCode:!1,showCopyCode:!1,insertNewCell:r}),e[0]=a,e[1]=r,e[2]=n,e[3]=i):i=e[3],i};var Dt=J(),ol="__clear__";const sl=t=>{let e=(0,Dt.c)(23),{fieldName:a,columns:r,onValueChange:n,includeCountField:i}=t,l=i===void 0?!0:i,o=Je(),d;e[0]===a?d=e[1]:(d=a.replace(".field",".type"),e[0]=a,e[1]=d);let u=d,c;e[2]===a?c=e[3]:(c=a.replace(".field",".selectedDataType"),e[2]=a,e[3]=c);let p=c,m;e[4]!==a||e[5]!==o||e[6]!==n||e[7]!==p||e[8]!==u?(m=()=>{o.setValue(a,""),o.setValue(u,""),o.setValue(p,""),n==null||n("",void 0)},e[4]=a,e[5]=o,e[6]=n,e[7]=p,e[8]=u,e[9]=m):m=e[9];let h=m,g;e[10]!==h||e[11]!==r||e[12]!==a||e[13]!==o||e[14]!==l||e[15]!==n||e[16]!==p||e[17]!==u?(g=v=>{let{field:b}=v;return(0,s.jsx)(it,{children:(0,s.jsx)(dt,{children:(0,s.jsxs)(Ba,{...b,onValueChange:w=>{if(w===ol){h();return}if(w==="__count__"){o.setValue(a,w),o.setValue(u,""),o.setValue(p,""),n==null||n(a,"number");return}let D=r.find(j=>j.name===w);D&&(o.setValue(a,w),o.setValue(u,D.type),o.setValue(p,Nu(D.type)),n==null||n(a,D.type))},value:b.value??"",children:[(0,s.jsx)(dr,{className:"w-40 truncate",onClear:b.value?h:void 0,children:(0,s.jsx)($a,{placeholder:"Select column"})}),(0,s.jsxs)(La,{children:[b.value&&(0,s.jsx)(Pt,{value:ol,children:(0,s.jsxs)("div",{className:"flex items-center truncate",children:[(0,s.jsx)(Hr,{className:"w-3 h-3 mr-2"}),"Clear"]})}),l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Pt,{value:"__count__",children:(0,s.jsxs)("div",{className:"flex items-center truncate",children:[(0,s.jsx)(Jl,{className:"w-3 h-3 mr-2"}),"Count of records"]})},"__count__"),(0,s.jsx)(zl,{})]}),r.map(sC)]})]})})})},e[10]=h,e[11]=r,e[12]=a,e[13]=o,e[14]=l,e[15]=n,e[16]=p,e[17]=u,e[18]=g):g=e[18];let f;return e[19]!==a||e[20]!==o.control||e[21]!==g?(f=(0,s.jsx)(at,{control:o.control,name:a,render:g}),e[19]=a,e[20]=o.control,e[21]=g,e[22]=f):f=e[22],f},Rd=t=>{let e=(0,Dt.c)(8),{fieldName:a,label:r,options:n,defaultValue:i}=t,l=Je(),o;e[0]!==i||e[1]!==r||e[2]!==n?(o=u=>{let{field:c}=u;return(0,s.jsxs)(it,{className:"flex flex-row items-center justify-between",children:[(0,s.jsx)(ct,{children:r}),(0,s.jsx)(dt,{children:(0,s.jsxs)(Ba,{...c,onValueChange:c.onChange,value:c.value??i,children:[(0,s.jsx)(dr,{className:"truncate",children:(0,s.jsx)($a,{placeholder:"Select an option"})}),(0,s.jsx)(La,{children:(0,s.jsx)(Wr,{children:n.filter(dC).map(uC)})})]})})]})},e[0]=i,e[1]=r,e[2]=n,e[3]=o):o=e[3];let d;return e[4]!==a||e[5]!==l.control||e[6]!==o?(d=(0,s.jsx)(at,{control:l.control,name:a,render:o}),e[4]=a,e[5]=l.control,e[6]=o,e[7]=d):d=e[7],d},Ad=t=>{let e=(0,Dt.c)(6),{fieldName:a,label:r}=t,n=Je(),i;e[0]===r?i=e[1]:(i=o=>{let{field:d}=o;return(0,s.jsxs)(it,{className:"flex flex-row gap-2 items-center",children:[(0,s.jsx)(ct,{children:r}),(0,s.jsx)(dt,{children:(0,s.jsx)(zu,{...d,value:d.value??"",onValueChange:d.onChange,className:"text-xs h-5"})})]})},e[0]=r,e[1]=i);let l;return e[2]!==a||e[3]!==n.control||e[4]!==i?(l=(0,s.jsx)(at,{control:n.control,name:a,render:i}),e[2]=a,e[3]=n.control,e[4]=i,e[5]=l):l=e[5],l},Mr=t=>{let e=(0,Dt.c)(17),a,r,n,i,l,o;e[0]===t?(a=e[1],r=e[2],n=e[3],i=e[4],l=e[5],o=e[6]):({fieldName:r,label:l,className:a,inputClassName:n,isDisabled:i,...o}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n,e[4]=i,e[5]=l,e[6]=o);let d=Je(),u;e[7]!==a||e[8]!==n||e[9]!==i||e[10]!==l||e[11]!==o?(u=p=>{let{field:m}=p;return(0,s.jsxs)(it,{className:U("flex flex-row items-center gap-2",a),children:[(0,s.jsx)(ct,{className:"whitespace-nowrap",children:l}),(0,s.jsx)(dt,{children:(0,s.jsx)(NR,{...m,value:m.value,onValueChange:m.onChange,"aria-label":l,className:U("w-16",n),isDisabled:i,minValue:0,...o})})]})},e[7]=a,e[8]=n,e[9]=i,e[10]=l,e[11]=o,e[12]=u):u=e[12];let c;return e[13]!==r||e[14]!==d.control||e[15]!==u?(c=(0,s.jsx)(at,{control:d.control,name:r,render:u}),e[13]=r,e[14]=d.control,e[15]=u,e[16]=c):c=e[16],c},Fr=t=>{let e=(0,Dt.c)(8),{fieldName:a,label:r,className:n,defaultValue:i}=t,l=Je(),o;e[0]!==n||e[1]!==i||e[2]!==r?(o=u=>{let{field:c}=u;return(0,s.jsxs)(it,{className:U("flex flex-row items-center gap-2",n),children:[(0,s.jsx)(ct,{children:r}),(0,s.jsx)(dt,{children:(0,s.jsx)(pu,{checked:c.value??i??!1,onCheckedChange:c.onChange,className:"w-4 h-4"})})]})},e[0]=n,e[1]=i,e[2]=r,e[3]=o):o=e[3];let d;return e[4]!==a||e[5]!==l.control||e[6]!==o?(d=(0,s.jsx)(at,{control:l.control,name:a,render:o}),e[4]=a,e[5]=l.control,e[6]=o,e[7]=d):d=e[7],d},Nx=t=>{let e=(0,Dt.c)(12),{fieldName:a,label:r,defaultValue:n,start:i,stop:l,step:o,className:d}=t,u=Je(),c;e[0]!==d||e[1]!==n||e[2]!==a||e[3]!==r||e[4]!==i||e[5]!==o||e[6]!==l?(c=m=>{let{field:h}=m,g=h.value??n,f=Number(g),v=b=>{typeof b=="string"&&(b=Number(b)),h.onChange(b)};return(0,s.jsxs)(it,{className:U("flex flex-row items-center gap-2 w-1/2",d),children:[(0,s.jsx)(ct,{children:r}),(0,s.jsx)(dt,{children:(0,s.jsx)(Js,{...h,id:a,className:"relative flex items-center select-none",value:[f],min:i,max:l,step:o,onValueChange:b=>{let[w]=b;v(w)},onValueCommit:b=>{let[w]=b;v(w)},valueMap:cC})})]})},e[0]=d,e[1]=n,e[2]=a,e[3]=r,e[4]=i,e[5]=o,e[6]=l,e[7]=c):c=e[7];let p;return e[8]!==a||e[9]!==u.control||e[10]!==c?(p=(0,s.jsx)(at,{control:u.control,name:a,render:c}),e[8]=a,e[9]=u.control,e[10]=c,e[11]=p):p=e[11],p},lC=t=>{let e=(0,Dt.c)(28),{fieldName:a,label:r,className:n}=t,i=Je(),l;e[0]!==a||e[1]!==i?(l=i.watch(a),e[0]=a,e[1]=i,e[2]=l):l=e[2];let o=l,d;e[3]===o?d=e[4]:(d=o??[],e[3]=o,e[4]=d);let[u,c]=x.useState(d),p;e[5]!==u||e[6]!==a||e[7]!==i?(p=()=>{let D=[...u,"#000000"];c(D),i.setValue(a,D)},e[5]=u,e[6]=a,e[7]=i,e[8]=p):p=e[8];let m=p,h;e[9]!==u||e[10]!==a||e[11]!==i?(h=D=>{let j=u.filter((k,N)=>N!==D);c(j),i.setValue(a,j)},e[9]=u,e[10]=a,e[11]=i,e[12]=h):h=e[12];let g=h,f;e[13]!==u||e[14]!==a||e[15]!==i?(f=(D,j)=>{let k=[...u];k[D]=j,c(k),i.setValue(a,k)},e[13]=u,e[14]=a,e[15]=i,e[16]=f):f=e[16];let v=f,b;e[17]!==m||e[18]!==n||e[19]!==u||e[20]!==r||e[21]!==g||e[22]!==v?(b=()=>(0,s.jsxs)(it,{className:U("flex flex-col gap-2",n),children:[(0,s.jsx)(ct,{children:r}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[u.map((D,j)=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"color",value:D,onChange:k=>v(j,k.target.value),className:"w-4 h-4 rounded cursor-pointer"}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground font-mono",children:D}),(0,s.jsx)(Ce,{variant:"ghost",size:"sm",onClick:()=>g(j),className:"h-4 w-4 p-0",children:(0,s.jsx)(Hr,{className:"h-2 w-2"})})]},j)),(0,s.jsxs)(Ce,{variant:"outline",size:"sm",onClick:m,className:"w-fit h-6 text-xs",children:[(0,s.jsx)(hv,{className:"h-3 w-3 mr-1"}),"Add Color"]})]})]}),e[17]=m,e[18]=n,e[19]=u,e[20]=r,e[21]=g,e[22]=v,e[23]=b):b=e[23];let w;return e[24]!==a||e[25]!==i.control||e[26]!==b?(w=(0,s.jsx)(at,{control:i.control,name:a,render:b}),e[24]=a,e[25]=i.control,e[26]=b,e[27]=w):w=e[27],w},Id=t=>{let e=(0,Dt.c)(10),{fieldName:a,label:r}=t,n=Je(),i;e[0]!==a||e[1]!==n?(i=()=>{n.setValue(a,"")},e[0]=a,e[1]=n,e[2]=i):i=e[2];let l=i,o=mC,d;e[3]!==l||e[4]!==r?(d=c=>{let{field:p}=c;return(0,s.jsxs)(it,{className:"flex flex-row items-center justify-between w-full",children:[(0,s.jsx)(ct,{children:r}),(0,s.jsx)(dt,{children:(0,s.jsxs)(Ba,{...p,onValueChange:m=>{m===ol?l():p.onChange(m)},value:p.value??"yearmonthdate",children:[(0,s.jsx)(dr,{onClear:p.value?l:void 0,children:(0,s.jsx)($a,{placeholder:"Select unit"})}),(0,s.jsxs)(La,{className:"w-72",children:[p.value&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Pt,{value:ol,children:(0,s.jsxs)("div",{className:"flex items-center truncate",children:[(0,s.jsx)(Hr,{className:"w-3 h-3 mr-2"}),"Clear"]})}),(0,s.jsx)(zl,{})]}),(0,s.jsxs)(Wr,{children:[jT.map(o),(0,s.jsx)(zl,{}),kT.map(o)]})]})]})})]})},e[3]=l,e[4]=r,e[5]=d):d=e[5];let u;return e[6]!==a||e[7]!==n.control||e[8]!==d?(u=(0,s.jsx)(at,{control:n.control,name:a,render:d}),e[6]=a,e[7]=n.control,e[8]=d,e[9]=u):u=e[9],u},dl=t=>{let e=(0,Dt.c)(9),{fieldName:a,label:r,defaultValue:n,onValueChange:i}=t,[l,o]=x.useState(!1),d=Je(),u;e[0]!==n||e[1]!==l||e[2]!==r||e[3]!==i?(u=p=>{let{field:m}=p;return(0,s.jsxs)(it,{className:"flex flex-row items-center justify-between w-full",children:[(0,s.jsx)(ct,{children:r}),(0,s.jsx)(dt,{children:(0,s.jsxs)(Ba,{...m,onValueChange:h=>{m.onChange(h),i==null||i(h)},value:m.value??n,open:l,onOpenChange:o,children:[(0,s.jsx)(dr,{children:(0,s.jsx)($a,{placeholder:"Select an option"})}),(0,s.jsx)(La,{children:(0,s.jsx)(Wr,{children:iv.map(h=>{let g=k1[h],f=h==="string"?"categorical":h;return(0,s.jsx)(Pt,{value:h,className:"flex flex-col items-start justify-center",subtitle:l&&(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:fT[h]}),children:(0,s.jsx)(Sx,{Icon:g,text:Ma(f)})},h)})})})]})})]})},e[0]=n,e[1]=l,e[2]=r,e[3]=i,e[4]=u):u=e[4];let c;return e[5]!==a||e[6]!==d.control||e[7]!==u?(c=(0,s.jsx)(at,{control:d.control,name:a,render:u}),e[5]=a,e[6]=d.control,e[7]=u,e[8]=c):c=e[8],c},Ex=t=>{let e=(0,Dt.c)(12),{fieldName:a,selectedDataType:r,binFieldName:n,defaultAggregation:i}=t,l=Je(),o=r==="string"?wT:rv,{chartType:d}=Qt(),u=d!==ra.HEATMAP,c=pC,p=hC,m;e[0]!==n||e[1]!==l?(m=v=>{let{value:b,previousValue:w,onChange:D}=v;b==="bin"?l.setValue(n,!0):w==="bin"&&l.setValue(n,!1),D(b)},e[0]=n,e[1]=l,e[2]=m):m=e[2];let h=m,g;e[3]!==o||e[4]!==i||e[5]!==h||e[6]!==u?(g=v=>{let{field:b}=v;return(0,s.jsx)(it,{children:(0,s.jsx)(dt,{children:(0,s.jsxs)(Ba,{...b,value:(b.value??i??"none").toString(),onValueChange:w=>{h({value:w,previousValue:b.value,onChange:b.onChange})},children:[(0,s.jsx)(dr,{variant:"ghost",children:(0,s.jsx)($a,{})}),(0,s.jsx)(La,{children:(0,s.jsxs)(Wr,{children:[(0,s.jsx)(qT,{children:"Aggregation"}),o.map(w=>{let D=ET[w],j=c(vT[w]??"Other"),k=p({value:w,Icon:D??Jl,subtitle:j});return w==="bin"?u?(0,s.jsxs)("div",{children:[(0,s.jsx)(zl,{}),k]},w):null:k})]})})]})})})},e[3]=o,e[4]=i,e[5]=h,e[6]=u,e[7]=g):g=e[7];let f;return e[8]!==a||e[9]!==l.control||e[10]!==g?(f=(0,s.jsx)(at,{control:l.control,name:a,render:g}),e[8]=a,e[9]=l.control,e[10]=g,e[11]=f):f=e[11],f},oC=t=>{let e=(0,Dt.c)(7),{fieldName:a,saveFunction:r}=t,n=Je(),{fields:i}=Qt(),l=fC,o;e[0]!==i||e[1]!==r?(o=u=>{var m;let{field:c}=u,p=((m=c.value)==null?void 0:m.map(gC))??[];return(0,s.jsx)(it,{children:(0,s.jsx)(dt,{children:(0,s.jsx)(Cx,{options:(i==null?void 0:i.map(xC))??[],value:p,setValue:h=>{let g=(typeof h=="function"?h([]):h).map(f=>l(f,i));c.onChange(g),r()},label:null,fullWidth:!1})})})},e[0]=i,e[1]=r,e[2]=o):o=e[2];let d;return e[3]!==a||e[4]!==n.control||e[5]!==o?(d=(0,s.jsx)(at,{control:n.control,name:a,render:o}),e[3]=a,e[4]=n.control,e[5]=o,e[6]=d):d=e[6],d},_x=t=>{let e=(0,Dt.c)(5),{fieldName:a,label:r,defaultValue:n}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=lv.map(vC),e[0]=i):i=e[0];let l=n??"ascending",o;return e[1]!==a||e[2]!==r||e[3]!==l?(o=(0,s.jsx)(Rd,{fieldName:a,label:r,options:i,defaultValue:l}),e[1]=a,e[2]=r,e[3]=l,e[4]=o):o=e[4],o},Pd=t=>{var m,h,g,f;let e=(0,Dt.c)(10),{fieldName:a}=t,r=Je(),n;e[0]===r.control?n=e[1]:(n={control:r.control},e[0]=r.control,e[1]=n);let i=na(n);if(!((h=(m=i[a])==null?void 0:m.bin)!=null&&h.binned))return null;let l=!Number.isNaN((f=(g=i[a])==null?void 0:g.bin)==null?void 0:f.step),o=`${a}.bin.step`,d;e[2]===o?d=e[3]:(d=(0,s.jsx)(Mr,{fieldName:o,label:"Bin step",inputClassName:"w-14",placeholder:"0.5"}),e[2]=o,e[3]=d);let u=`${a}.bin.maxbins`,c;e[4]!==l||e[5]!==u?(c=(0,s.jsx)(Mr,{fieldName:u,label:"Max bins",inputClassName:"w-14",isDisabled:l,placeholder:"10"}),e[4]=l,e[5]=u,e[6]=c):c=e[6];let p;return e[7]!==d||e[8]!==c?(p=(0,s.jsxs)("div",{className:"flex flex-row justify-between",children:[d,c]}),e[7]=d,e[8]=c,e[9]=p):p=e[9],p};function sC(t){if(t.name.trim()==="")return null;let e=k1[t.type];return(0,s.jsx)(Pt,{value:t.name,children:(0,s.jsxs)("div",{className:"flex items-center truncate",children:[(0,s.jsx)(e,{className:"w-3 h-3 mr-2"}),t.name]})},t.name)}function dC(t){return t.value!==""}function uC(t){return(0,s.jsx)(Pt,{value:t.value,children:t.display},t.value)}function cC(t){return t}function mC(t){let[e,a]=gT[t];return(0,s.jsx)(Pt,{value:t,className:"flex flex-row",subtitle:(0,s.jsx)("span",{className:"text-xs text-muted-foreground ml-auto",children:a}),children:e},t)}function pC(t){return(0,s.jsx)("span",{className:"text-xs text-muted-foreground pr-10",children:t})}function hC(t){let{value:e,Icon:a,subtitle:r}=t;return(0,s.jsx)(Pt,{value:e,className:"flex flex-col items-start justify-center",subtitle:r,children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(a,{className:"w-3 h-3 mr-2"}),Ma(e)]})},e)}function fC(t,e){var a;return{field:t,type:((a=e.find(r=>r.name===t))==null?void 0:a.type)??"string"}}function gC(t){return t.field}function xC(t){return t.name}function vC(t){return{display:(0,s.jsx)(Sx,{Icon:t==="ascending"?sa:aT,text:Ma(t)}),value:t}}var lr=J();function or(t){return ba(t==null?void 0:t.field)&&(t==null?void 0:t.field)!=="__count__"}function yC(t){return(t==null?void 0:t.selectedDataType)==="string"&&or(t)}function Mn(t){return(t==null?void 0:t.selectedDataType)==="number"&&or(t)}function Md(t){return(t==null?void 0:t.selectedDataType)==="temporal"&&or(t)}function bC(t){return(t==null?void 0:t.selectedDataType)!=="temporal"&&or(t)}function ul(t){let e=t!=null&&t.type?Nu(t.type):"string";return{inferredDataType:e,selectedDataType:(t==null?void 0:t.selectedDataType)||e}}var Fd=t=>{let e=(0,lr.c)(14),{columnFieldName:a,column:r,columns:n,binFieldName:i,defaultAggregation:l}=t,o;e[0]===r?o=e[1]:(o=ul(r),e[0]=r,e[1]=o);let{selectedDataType:d}=o,u;e[2]!==a||e[3]!==n?(u=(0,s.jsx)(sl,{fieldName:a,columns:n}),e[2]=a,e[3]=n,e[4]=u):u=e[4];let c;e[5]!==i||e[6]!==r||e[7]!==a||e[8]!==l||e[9]!==d?(c=bC(r)&&(0,s.jsx)(Ex,{fieldName:a.replace(".field",".aggregate"),selectedDataType:d,binFieldName:i,defaultAggregation:l}),e[5]=i,e[6]=r,e[7]=a,e[8]=l,e[9]=d,e[10]=c):c=e[10];let p;return e[11]!==u||e[12]!==c?(p=(0,s.jsxs)("div",{className:"flex flex-row justify-between",children:[u,c]}),e[11]=u,e[12]=c,e[13]=p):p=e[13],p};const wC=t=>{let e=(0,lr.c)(7),{value:a,onValueChange:r}=t,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Oa({variant:"outline",className:"user-select-none w-full justify-between px-3"}),i=(0,s.jsx)($a,{}),e[0]=n,e[1]=i):(n=e[0],i=e[1]);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsxs)(GT,{className:n,children:[i,(0,s.jsx)(YT,{asChild:!0,children:(0,s.jsx)(ZT,{className:"h-4 w-4 opacity-50"})})]}),e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[l,(0,s.jsx)(La,{children:ST.map(CC)})]}),e[3]=o):o=e[3];let d;return e[4]!==r||e[5]!==a?(d=(0,s.jsx)(Ba,{value:a,onValueChange:r,children:o}),e[4]=r,e[5]=a,e[6]=d):d=e[6],d};var DC=t=>{let e=(0,lr.c)(10),{chartType:a}=t,r=_T[a],n;e[0]===r?n=e[1]:(n=(0,s.jsx)(r,{className:"w-4 h-4 mr-2"}),e[0]=r,e[1]=n);let i;e[2]===a?i=e[3]:(i=Ma(a),e[2]=a,e[3]=i);let l;e[4]!==n||e[5]!==i?(l=(0,s.jsxs)("div",{className:"flex items-center",children:[n,i]}),e[4]=n,e[5]=i,e[6]=l):l=e[6];let o;return e[7]!==a||e[8]!==l?(o=(0,s.jsx)(Pt,{value:a,className:"gap-2",children:l}),e[7]=a,e[8]=l,e[9]=o):o=e[9],o};const Tx=()=>{var f,v,b,w,D,j,k;let t=(0,lr.c)(22),e=Je(),a;t[0]===e.control?a=t[1]:(a={control:e.control},t[0]=e.control,t[1]=a);let r=na(a),n=Qt(),i=(f=r.general)==null?void 0:f.xColumn,l;t[2]===i?l=t[3]:(l=ul(i),t[2]=i,t[3]=l);let{inferredDataType:o}=l,d=n.chartType===ra.LINE||n.chartType===ra.BAR||n.chartType===ra.AREA,u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(Lt,{text:"X-Axis"}),t[4]=u):u=t[4];let c;t[5]!==n.fields||t[6]!==i?(c=(0,s.jsx)(Fd,{columnFieldName:"general.xColumn.field",column:i,columns:n.fields,binFieldName:"xAxis.bin.binned"}),t[5]=n.fields,t[6]=i,t[7]=c):c=t[7];let p;t[8]!==o||t[9]!==i?(p=or(i)&&(0,s.jsx)(dl,{label:"Data Type",fieldName:"general.xColumn.selectedDataType",defaultValue:o}),t[8]=o,t[9]=i,t[10]=p):p=t[10];let m;t[11]===i?m=t[12]:(m=Md(i)&&(0,s.jsx)(Id,{fieldName:"general.xColumn.timeUnit",label:"Time Resolution"}),t[11]=i,t[12]=m);let h;t[13]!==d||t[14]!==((b=(v=r.general)==null?void 0:v.xColumn)==null?void 0:b.sort)||t[15]!==i?(h=or(i)&&d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_x,{fieldName:"general.xColumn.sort",label:"Sort",defaultValue:(D=(w=r.general)==null?void 0:w.xColumn)==null?void 0:D.sort}),Mn(i)&&(0,s.jsx)(Pd,{fieldName:"xAxis"})]}),t[13]=d,t[14]=(k=(j=r.general)==null?void 0:j.xColumn)==null?void 0:k.sort,t[15]=i,t[16]=h):h=t[16];let g;return t[17]!==c||t[18]!==p||t[19]!==m||t[20]!==h?(g=(0,s.jsxs)(ll,{children:[u,c,p,m,h]}),t[17]=c,t[18]=p,t[19]=m,t[20]=h,t[21]=g):g=t[21],g},Rx=()=>{var N,S,y;let t=(0,lr.c)(29),e=Je(),a;t[0]===e.control?a=t[1]:(a={control:e.control},t[0]=e.control,t[1]=a);let r=na(a),n=Qt(),i=(N=r.general)==null?void 0:N.yColumn,l=i==null?void 0:i.field,o;t[2]===l?o=t[3]:(o=ba(l),t[2]=l,t[3]=o);let d=o,u=(y=(S=r.general)==null?void 0:S.xColumn)==null?void 0:y.field,c;t[4]===u?c=t[5]:(c=ba(u),t[4]=u,t[5]=c);let p=c,m;t[6]===i?m=t[7]:(m=ul(i),t[6]=i,t[7]=m);let{inferredDataType:h}=m,g;Mn(i)?g=xT:yC(i)&&(g="count");let f;t[8]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(Lt,{text:"Y-Axis"}),t[8]=f):f=t[8];let v;t[9]!==n.fields||t[10]!==g||t[11]!==i?(v=(0,s.jsx)(Fd,{columnFieldName:"general.yColumn.field",column:i,columns:n.fields,binFieldName:"yAxis.bin.binned",defaultAggregation:g}),t[9]=n.fields,t[10]=g,t[11]=i,t[12]=v):v=t[12];let b;t[13]!==h||t[14]!==i?(b=or(i)&&(0,s.jsx)(dl,{label:"Data Type",fieldName:"general.yColumn.selectedDataType",defaultValue:h}),t[13]=h,t[14]=i,t[15]=b):b=t[15];let w;t[16]===i?w=t[17]:(w=Md(i)&&(0,s.jsx)(Id,{fieldName:"general.yColumn.timeUnit",label:"Time Resolution"}),t[16]=i,t[17]=w);let D;t[18]!==p||t[19]!==d?(D=d&&p&&(0,s.jsx)(Fr,{fieldName:"general.horizontal",label:"Invert axis"}),t[18]=p,t[19]=d,t[20]=D):D=t[20];let j;t[21]===i?j=t[22]:(j=Mn(i)&&(0,s.jsx)(Pd,{fieldName:"yAxis"}),t[21]=i,t[22]=j);let k;return t[23]!==D||t[24]!==j||t[25]!==v||t[26]!==b||t[27]!==w?(k=(0,s.jsxs)(ll,{children:[f,v,b,w,D,j]}),t[23]=D,t[24]=j,t[25]=v,t[26]=b,t[27]=w,t[28]=k):k=t[28],k},Ax=()=>{var p;let t=(0,lr.c)(13),{fields:e}=Qt(),a=Je(),r;t[0]===a.control?r=t[1]:(r={control:a.control},t[0]=a.control,t[1]=r);let n=(p=na(r).general)==null?void 0:p.colorByColumn,i;t[2]===n?i=t[3]:(i=Mn(n),t[2]=n,t[3]=i);let l=i,o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(Lt,{text:"Color by"}),t[4]=o):o=t[4];let d;t[5]!==n||t[6]!==e?(d=(0,s.jsx)(Fd,{columnFieldName:"general.colorByColumn.field",column:n,columns:e,binFieldName:"color.bin.binned"}),t[5]=n,t[6]=e,t[7]=d):d=t[7];let u;t[8]===l?u=t[9]:(u=l&&(0,s.jsx)(Pd,{fieldName:"color"}),t[8]=l,t[9]=u);let c;return t[10]!==d||t[11]!==u?(c=(0,s.jsxs)(ll,{children:[o,d,u]}),t[10]=d,t[11]=u,t[12]=c):c=t[12],c},jC=()=>{var d,u;let t=(0,lr.c)(7),e=Qt().fields,a=Je(),r;t[0]===a.control?r=t[1]:(r={control:a.control},t[0]=a.control,t[1]=r);let n=na(r),i;t[2]!==e||t[3]!==((d=n.general)==null?void 0:d.facet)?(i=c=>{var f,v;let p=(v=(f=n.general)==null?void 0:f.facet)==null?void 0:v[c],m=ba(p==null?void 0:p.field),{inferredDataType:h}=ul(p),g=c==="row"?"general.facet.row.linkYAxis":"general.facet.column.linkXAxis";return(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,s.jsx)("p",{className:"font-semibold",children:Ma(c)}),(0,s.jsx)(sl,{fieldName:`general.facet.${c}.field`,columns:e})]}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(dl,{label:"Data Type",fieldName:`general.facet.${c}.selectedDataType`,defaultValue:h}),Md(p)&&(0,s.jsx)(Id,{fieldName:`general.facet.${c}.timeUnit`,label:"Time Resolution"}),Mn(p)&&(0,s.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,s.jsx)(Fr,{fieldName:`general.facet.${c}.binned`,label:"Binned",defaultValue:!0}),(0,s.jsx)(Mr,{fieldName:`general.facet.${c}.maxbins`,label:"Max Bins",placeholder:"6",defaultValue:6})]}),(0,s.jsx)(_x,{fieldName:`general.facet.${c}.sort`,label:"Sort"}),(0,s.jsx)(Fr,{fieldName:g,label:`Link ${c==="row"?"Y":"X"} Axes`,defaultValue:!0})]})]})},t[2]=e,t[3]=(u=n.general)==null?void 0:u.facet,t[4]=i):i=t[4];let l=i,o;return t[5]===l?o=t[6]:(o=(0,s.jsxs)(ll,{className:"gap-3",children:[l("row"),l("column")]}),t[5]=l,t[6]=o),o};function CC(t){return(0,s.jsx)(DC,{chartType:t},t)}var Vd=J();const kC=()=>{var D,j;let t=(0,Vd.c)(17),e=Je(),a;t[0]===e.control?a=t[1]:(a={control:e.control},t[0]=e.control,t[1]=a);let r=na(a),n=(D=r.general)==null?void 0:D.yColumn,i=(j=r.general)==null?void 0:j.colorByColumn,l=n==null?void 0:n.field,o;t[2]===l?o=t[3]:(o=ba(l),t[2]=l,t[3]=o);let d=o,{chartType:u}=Qt(),c;t[4]!==u||t[5]!==(i==null?void 0:i.field)?(c=ba(i==null?void 0:i.field)&&(u===ra.BAR||u===ra.LINE),t[4]=u,t[5]=i==null?void 0:i.field,t[6]=c):c=t[6];let p=c,m,h,g;t[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Mt,{delayDuration:100,content:"To persist a chart, add the generated Python code to a new cell.",children:(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(Xl,{className:"h-3.5 w-3.5 mb-0.5 text-muted-foreground"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Charts are not saved."})]})}),h=(0,s.jsx)(Tx,{}),g=(0,s.jsx)(Rx,{}),t[7]=m,t[8]=h,t[9]=g):(m=t[7],h=t[8],g=t[9]);let f;t[10]!==p||t[11]!==d?(f=d&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ax,{}),p&&(0,s.jsx)("div",{className:"flex flex-row gap-2",children:(0,s.jsx)(Fr,{fieldName:"general.stacking",label:"Stacked"})})]}),t[10]=p,t[11]=d,t[12]=f):f=t[12];let v,b;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(Td,{}),b=(0,s.jsx)(zd,{}),t[13]=v,t[14]=b):(v=t[13],b=t[14]);let w;return t[15]===f?w=t[16]:(w=(0,s.jsxs)(s.Fragment,{children:[m,h,g,f,v,b]}),t[15]=f,t[16]=w),w},SC=()=>{let t=(0,Vd.c)(15),{chartType:e}=Qt(),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(Ar,{className:"pt-0",children:(0,s.jsx)(Lt,{text:"General"})}),t[0]=a):a=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(Ad,{label:"Plot title",fieldName:"general.title"}),t[1]=r):r=t[1];let n=e===ra.SCATTER,i;t[2]===n?i=t[3]:(i=(0,s.jsxs)(Ir,{value:"general",children:[a,(0,s.jsxs)(Pr,{children:[r,(0,s.jsx)(Fr,{fieldName:"style.gridLines",label:"Show grid lines",defaultValue:n})]})]}),t[2]=n,t[3]=i);let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Ar,{children:(0,s.jsx)(Lt,{text:"X-Axis"})}),t[4]=l):l=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(Ir,{value:"xAxis",children:[l,(0,s.jsxs)(Pr,{children:[(0,s.jsx)(Ad,{label:"Label",fieldName:"xAxis.label"}),(0,s.jsx)(Nx,{fieldName:"xAxis.width",label:"Width",defaultValue:400,start:200,stop:800})]})]}),t[5]=o):o=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsx)(Ar,{children:(0,s.jsx)(Lt,{text:"Y-Axis"})}),t[6]=d):d=t[6];let u;t[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(Ir,{value:"yAxis",children:[d,(0,s.jsxs)(Pr,{children:[(0,s.jsx)(Ad,{label:"Label",fieldName:"yAxis.label"}),(0,s.jsx)(Nx,{fieldName:"yAxis.height",label:"Height",defaultValue:300,start:150,stop:600})]})]}),t[7]=u):u=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(Ar,{children:(0,s.jsx)(Lt,{text:"Color"})}),t[8]=c):c=t[8];let p;t[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(Rd,{fieldName:"color.field",label:"Field",options:nv.map(NC),defaultValue:Zn}),t[9]=p):p=t[9];let m,h;t[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Rd,{fieldName:"color.scheme",label:"Color scheme",defaultValue:av,options:yT.map(EC)}),h=(0,s.jsx)(lC,{fieldName:"color.range",label:"Color range"}),t[10]=m,t[11]=h):(m=t[10],h=t[11]);let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsxs)(Ir,{value:"color",children:[c,(0,s.jsxs)(Pr,{children:[p,m,h,(0,s.jsxs)("p",{className:"text-xs",children:[(0,s.jsx)(Pl,{className:"w-2.5 h-2.5 inline mb-1 mr-1"}),"If you are using color range, color scheme will be ignored."]})]})]}),t[12]=g):g=t[12];let f;return t[13]===i?f=t[14]:(f=(0,s.jsxs)(Zu,{type:"multiple",children:[i,o,u,g]}),t[13]=i,t[14]=f),f},zd=()=>{var p;let t=(0,Vd.c)(11),{saveForm:e}=Qt(),a=Je(),r;t[0]===a.control?r=t[1]:(r={control:a.control},t[0]=a.control,t[1]=r);let n=(p=na(r).tooltips)==null?void 0:p.auto,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Ar,{className:"pt-0",children:(0,s.jsx)(Lt,{text:"Faceting",tooltip:"Repeat the chart for each unique field value"})}),t[2]=i):i=t[2];let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsxs)(Ir,{value:"facet",children:[i,(0,s.jsx)(Pr,{children:(0,s.jsx)(jC,{})})]}),t[3]=l):l=t[3];let o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(Ar,{children:(0,s.jsx)(Lt,{text:"Tooltips"})}),t[4]=o):o=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsx)(Fr,{fieldName:"tooltips.auto",label:"Include X, Y and Color"}),t[5]=d):d=t[5];let u;t[6]!==n||t[7]!==e?(u=!n&&(0,s.jsx)(oC,{fieldName:"tooltips.fields",saveFunction:e}),t[6]=n,t[7]=e,t[8]=u):u=t[8];let c;return t[9]===u?c=t[10]:(c=(0,s.jsxs)(Zu,{type:"multiple",children:[l,(0,s.jsxs)(Ir,{value:"tooltips",children:[o,(0,s.jsxs)(Pr,{wrapperClassName:"flex-row justify-between",children:[d,u]})]})]}),t[9]=u,t[10]=c),c};function NC(t){return{display:Ma(t),value:t}}function EC(t){return{display:Ma(t),value:t}}var _C=J();const TC=()=>{var b,w,D,j;let t=(0,_C.c)(17),e=Je(),a;t[0]===e.control?a=t[1]:(a={control:e.control},t[0]=e.control,t[1]=a);let r=na(a),n=(w=(b=r.general)==null?void 0:b.xColumn)==null?void 0:w.field,i;t[2]===n?i=t[3]:(i=ba(n),t[2]=n,t[3]=i);let l=i,o=(j=(D=r.general)==null?void 0:D.yColumn)==null?void 0:j.field,d;t[4]===o?d=t[5]:(d=ba(o),t[4]=o,t[5]=d);let u=d,c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(Tx,{}),t[6]=c):c=t[6];let p;t[7]===l?p=t[8]:(p=l&&(0,s.jsx)(Mr,{fieldName:"xAxis.bin.maxbins",label:"Number of boxes (max)",className:"justify-between"}),t[7]=l,t[8]=p);let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Rx,{}),t[9]=m):m=t[9];let h;t[10]===u?h=t[11]:(h=u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Mr,{fieldName:"yAxis.bin.maxbins",label:"Number of boxes (max)",className:"justify-between"}),(0,s.jsx)(Ax,{})]}),t[10]=u,t[11]=h);let g,f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(Td,{}),g=(0,s.jsx)(zd,{}),t[12]=g,t[13]=f):(g=t[12],f=t[13]);let v;return t[14]!==p||t[15]!==h?(v=(0,s.jsxs)(s.Fragment,{children:[c,p,m,h,f,g]}),t[14]=p,t[15]=h,t[16]=v):v=t[16],v};var RC=J();const AC=()=>{var j,k,N;let t=(0,RC.c)(25),e=Je(),{fields:a}=Qt(),r;t[0]===e.control?r=t[1]:(r={control:e.control},t[0]=e.control,t[1]=r);let n=na(r),i=(j=n.general)==null?void 0:j.colorByColumn,l=(N=(k=n.general)==null?void 0:k.yColumn)==null?void 0:N.selectedDataType;(l===""||!l)&&(l="string");let o;t[2]===i?o=t[3]:(o=i!=null&&i.type?Nu(i.type):"string",t[2]=i,t[3]=o);let d=o,u;t[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(Lt,{text:"Color by"}),t[4]=u):u=t[4];let c;t[5]===a?c=t[6]:(c=(0,s.jsx)(sl,{fieldName:"general.colorByColumn.field",columns:a,includeCountField:!1}),t[5]=a,t[6]=c);let p;t[7]!==(i==null?void 0:i.field)||t[8]!==d?(p=ba(i==null?void 0:i.field)&&(0,s.jsx)(dl,{fieldName:"general.colorByColumn.selectedDataType",label:"Data Type",defaultValue:d}),t[7]=i==null?void 0:i.field,t[8]=d,t[9]=p):p=t[9];let m;t[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Lt,{text:"Size by"}),t[10]=m):m=t[10];let h;t[11]===a?h=t[12]:(h=(0,s.jsx)(sl,{fieldName:"general.yColumn.field",columns:a}),t[11]=a,t[12]=h);let g;t[13]===l?g=t[14]:(g=(0,s.jsx)(Ex,{fieldName:"general.yColumn.aggregate",selectedDataType:l,binFieldName:"yAxis.bin.binned"}),t[13]=l,t[14]=g);let f;t[15]!==h||t[16]!==g?(f=(0,s.jsxs)("div",{className:"flex flex-row justify-between",children:[h,g]}),t[15]=h,t[16]=g,t[17]=f):f=t[17];let v,b,w;t[18]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(Mr,{fieldName:"style.innerRadius",label:"Donut size",className:"w-32"}),v=(0,s.jsx)(Td,{}),b=(0,s.jsx)(zd,{}),t[18]=v,t[19]=b,t[20]=w):(v=t[18],b=t[19],w=t[20]);let D;return t[21]!==c||t[22]!==p||t[23]!==f?(D=(0,s.jsxs)(s.Fragment,{children:[u,c,p,m,f,w,v,b]}),t[21]=c,t[22]=p,t[23]=f,t[24]=D):D=t[24],D};var Ix=J();const IC=t=>{let e=(0,Ix.c)(8),{baseSpec:a,data:r,height:n}=t,{theme:i}=qr();if(!r){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)("div",{children:"No data"}),e[0]=u):u=e[0],u}let l;e[1]!==r||e[2]!==n||e[3]!==i?(l=u=>{if(typeof u=="string")return(0,s.jsx)(G1,{children:u});let c=NT(u,r);return(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)(PC,{}),children:(0,s.jsx)(K_,{spec:c,options:{theme:i==="dark"?"dark":void 0,height:n,actions:{export:!0,source:!1,compiled:!1,editor:!0},mode:"vega",renderer:"canvas",tooltip:QE.call}})})},e[1]=r,e[2]=n,e[3]=i,e[4]=l):l=e[4];let o=l,d;return e[5]!==a||e[6]!==o?(d=(0,s.jsx)("div",{className:"h-full m-auto rounded-md w-full",children:o(a)}),e[5]=a,e[6]=o,e[7]=d):d=e[7],d};var PC=()=>{let t=(0,Ix.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(G1,{className:"mt-14",children:"Loading chart..."}),t[0]=e):e=t[0],e};const Od=$({binned:W().optional(),step:Y().optional(),maxbins:Y().optional()});var $d=$({field:M().optional(),type:ye([...Ki,""]).optional(),selectedDataType:ye([...iv,""]).optional(),sort:ye(lv).default("ascending").optional(),timeUnit:ye(bT).optional()});const Ld=$d.extend({aggregate:ye(rv).default(Zn).optional()}),MC=$d.extend({linkYAxis:W().default(!0),binned:W().default(!0),maxbins:Y().default(6)}),FC=$d.extend({linkXAxis:W().default(!0),binned:W().default(!0),maxbins:Y().default(6)}),Px=$({general:$({title:M().optional(),xColumn:Ld.optional(),yColumn:Ld.optional(),colorByColumn:Ld.optional(),facet:$({row:MC,column:FC}).optional(),horizontal:W().optional(),stacking:W().optional()}).optional(),xAxis:$({label:M().optional(),width:Y().optional(),bin:Od.optional()}).optional(),yAxis:$({label:M().optional(),height:Y().optional(),bin:Od.optional()}).optional(),color:$({field:ye([...nv,Zn]).default(Zn),scheme:M().default(av).optional(),range:ee(M()).optional(),domain:ee(M()).optional(),bin:Od.optional()}).optional(),style:$({innerRadius:Y().optional(),gridLines:W().optional()}).optional(),tooltips:$({auto:W(),fields:ee($({field:M(),type:ye(Ki)}))}).default({auto:!0,fields:[]}).optional()});function Mx(){return{general:{facet:{row:{linkYAxis:!0,binned:!0,maxbins:6},column:{linkXAxis:!0,binned:!0,maxbins:6}}},color:{field:Zn,scheme:"default"},tooltips:{auto:!0,fields:[]}}}const Bd="marimo:charts:v2";var VC=$({tabName:M().transform(t=>t),chartType:M().transform(t=>t),config:Px}),Hd=new EE(Bd,ee(Pa([M().transform(t=>t),ee(VC)])),()=>[]),Fx={getItem:t=>{try{let e=Hd.get(t);return new Map(e)}catch(e){return se.warn("Error getting chart storage",e),new Map}},setItem:(t,e)=>{Hd.set(t,[...e.entries()])},removeItem:t=>{Hd.remove(t)}};const zC=RE(Bd,new Map,Fx);function Vx(t,e){let a=Ma(e);return t===0?`${a} Chart`:`${a} Chart ${t+1}`}var OC=Fx.getItem(Bd);function $C(t){let e=OC.get(t);return e?e.length>0:!1}var zx=J(),Ox="bar",Fn="table",$x=290,LC=5e4,BC=50;const HC=t=>{let e=(0,zx.c)(7),{cellId:a,data:r,dataTable:n,totalRows:i,columns:l,getDataUrl:o,fieldTypes:d,displayHeader:u}=t,[c,p]=Ln(zC),m=a?c.get(a)??[]:[],[h,g]=(0,x.useState)(0),[f,v]=(0,x.useState)(Fn);if(!u||m.length===0&&!u)return n;let b=()=>{if(!a)return;let C=Vx(h,Ox),_=new Map(c);_.set(a,[...m,{tabName:C,chartType:Ox,config:Mx()}]),p(_),g(h+1),v(C)},w=C=>{if(!a)return;let _=new Map(c);_.set(a,m.filter(E=>E.tabName!==C)),p(_),v(Fn),g(h-1)},D=C=>{let{tabName:_,chartType:E,chartConfig:T}=C;if(!a)return;let P=new Map(c);P.set(a,m.map(R=>R.tabName===_?{...R,chartType:E,config:T}:R)),p(P)},j;e[0]!==a||e[1]!==p||e[2]!==c?(j=(C,_)=>{if(!a)return;let E=c.get(a)??[],T=E.findIndex(R=>R.tabName===C);if(T===-1)return;let P=E.map(R=>R.tabName===C?{...R,chartType:_,tabName:Vx(T,_)}:R);p(new Map(c).set(a,P)),v(P[T].tabName)},e[0]=a,e[1]=p,e[2]=c,e[3]=j):j=e[3];let k=j,N=i==="too_many"||i>LC||l>BC,S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)(la,{className:"text-xs",value:Fn,onClick:()=>v(Fn),children:"Table"}),e[4]=S):S=e[4];let y;return e[5]===n?y=e[6]:(y=(0,s.jsx)(oa,{className:"mt-1 overflow-hidden",value:Fn,children:n}),e[5]=n,e[6]=y),(0,s.jsxs)(ei,{value:f,className:"-mt-1",children:[(0,s.jsxs)(Xn,{children:[S,m.map((C,_)=>(0,s.jsxs)(la,{className:"text-xs",value:C.tabName,onClick:()=>v(C.tabName),children:[C.tabName,(0,s.jsx)(Hr,{className:"w-3 h-3 ml-1 mt-[0.5px] hover:text-red-500 hover:font-semibold",onClick:E=>{E.stopPropagation(),w(C.tabName)}})]},_)),(0,s.jsx)(Ce,{variant:"text",size:"icon",onClick:b,title:"Add chart",children:"+"})]}),y,m.map((C,_)=>(0,s.jsx)(oa,{value:C.tabName,className:"h-[400px] mt-1",children:(0,s.jsx)(WC,{tableData:r,chartConfig:C.config,chartType:C.chartType,saveChart:E=>{D({tabName:C.tabName,chartType:C.chartType,chartConfig:E})},saveChartType:E=>{k(C.tabName,E)},getDataUrl:o,fieldTypes:d??Su(n.props.data),isLargeDataset:N})},_))]})};var Lx="X and Y columns are not set";const WC=({tableData:t,chartConfig:e,chartType:a,saveChart:r,saveChartType:n,getDataUrl:i,fieldTypes:l,isLargeDataset:o})=>{let{theme:d}=qr(),u=jv({defaultValues:e??Mx(),resolver:Cv(Px)}),[c,p]=(0,x.useState)(a),[m,h]=(0,x.useState)(!1),[g,f]=(0,x.useState)(!o),{ref:v}=GA(),{data:b,isPending:w,error:D}=Et(async()=>{if(!i||t.length===0||!g)return[];let S=await i({});return Array.isArray(S.data_url)?S.data_url:await z1(S.data_url,S.format==="arrow"?{type:"arrow"}:S.format==="json"?{type:"json"}:{type:"csv",parse:"auto"},{replacePeriod:!0})},[t,g]),j=u.watch(),k=CT(c,(0,x.useMemo)(()=>structuredClone(j),[j]),d,"container",$x),N=(0,x.useMemo)(()=>w?(0,s.jsx)(Q_,{}):D?(0,s.jsx)(Z_,{error:D}):g?(0,s.jsx)(IC,{baseSpec:k,data:b,height:$x}):(0,s.jsxs)(uo,{variant:"warning",className:"flex flex-row gap-2 items-center w-2/3 mx-auto",children:[(0,s.jsx)(Xl,{className:"h-4 w-4 mt-1"}),(0,s.jsxs)(zA,{className:"flex flex-row justify-between items-center w-full",children:[(0,s.jsx)("span",{children:"Rendering large datasets is not well supported and may crash the browser"}),(0,s.jsx)(Ce,{variant:"warn",onClick:()=>f(!0),className:"h-8",children:"Proceed"})]})]}),[w,D,g,k,b]);return(0,s.jsxs)("div",{className:"flex flex-row gap-2 h-full rounded-md border pr-2",children:[(0,s.jsxs)("div",{className:`relative flex flex-col gap-2 overflow-auto px-2 py-3 scrollbar-thin transition-width duration-200 ${m?"w-8":"w-[300px]"}`,children:[!m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wC,{value:c,onValueChange:S=>{p(S),n(S)}}),(0,s.jsx)(UC,{form:u,saveChart:r,fieldTypes:l,chartType:c})]}),(0,s.jsx)(Ce,{variant:"outline",size:"icon",className:"border-border ml-auto",onClick:()=>h(S=>!S),title:m?"Expand sidebar":"Collapse sidebar",children:m?(0,s.jsx)($l,{className:"w-4 h-5"}):(0,s.jsx)(Ol,{className:"w-4 h-5"})})]}),(0,s.jsx)("div",{className:"flex-1 overflow-auto h-full w-full mt-3",children:(()=>{let S=Lx;return typeof k!="string"&&(S=cj(k,"_df","_chart")),(0,s.jsxs)(ei,{defaultValue:"chart",children:[(0,s.jsx)("div",{className:"flex flex-row gap-1.5 items-center",children:(0,s.jsxs)(Xn,{children:[(0,s.jsxs)(la,{value:"chart",className:"h-6",children:[(0,s.jsx)(hT,{className:"text-muted-foreground mr-2 w-4 h-4"}),"Chart"]}),(0,s.jsxs)(la,{value:"code",className:"h-6",children:[(0,s.jsx)(YA,{className:"text-muted-foreground mr-2"}),"Python code"]}),!1]})}),(0,s.jsx)(oa,{value:"chart",ref:v,children:N}),(0,s.jsx)(oa,{value:"code",children:(0,s.jsx)(iC,{code:S,insertNewCell:S!==Lx,language:"python"})}),!1]})})()})]})};var UC=t=>{let e=(0,zx.c)(28),{form:a,saveChart:r,fieldTypes:n,chartType:i}=t,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0];let o=l;if(n){let N;e[1]===n?N=e[2]:(N=n.map(KC),e[1]=n,e[2]=N),o=N}let d;e[3]!==a||e[4]!==r?(d=()=>{r(a.getValues())},e[3]=a,e[4]=r,e[5]=d):d=e[5];let u=RA(d,300),c=kC;i===ra.PIE?c=AC:i===ra.HEATMAP&&(c=TC);let p;e[6]!==i||e[7]!==u||e[8]!==o?(p={fields:o,saveForm:u,chartType:i},e[6]=i,e[7]=u,e[8]=o,e[9]=p):p=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsxs)(la,{value:"data",className:"w-1/2 h-6",children:[(0,s.jsx)(N1,{className:"w-4 h-4 mr-2"}),"Data"]}),e[10]=m):m=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsxs)(Xn,{className:"w-full",children:[m,(0,s.jsxs)(la,{value:"style",className:"w-1/2 h-6",children:[(0,s.jsx)(kE,{className:"w-4 h-4 mr-2"}),"Style"]})]}),e[11]=h):h=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)("hr",{className:"my-2"}),e[12]=g):g=e[12];let f;e[13]===c?f=e[14]:(f=(0,s.jsxs)(oa,{value:"data",children:[g,(0,s.jsx)(kx,{children:(0,s.jsx)(c,{})})]}),e[13]=c,e[14]=f);let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)("hr",{className:"my-2"}),e[15]=v):v=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsxs)(oa,{value:"style",children:[v,(0,s.jsx)(kx,{children:(0,s.jsx)(SC,{})})]}),e[16]=b):b=e[16];let w;e[17]===f?w=e[18]:(w=(0,s.jsxs)(ei,{defaultValue:"data",children:[h,f,b]}),e[17]=f,e[18]=w);let D;e[19]!==u||e[20]!==w?(D=(0,s.jsx)("form",{onSubmit:ZC,onChange:u,children:w}),e[19]=u,e[20]=w,e[21]=D):D=e[21];let j;e[22]!==a||e[23]!==D?(j=(0,s.jsx)(PR,{...a,children:D}),e[22]=a,e[23]=D,e[24]=j):j=e[24];let k;return e[25]!==j||e[26]!==p?(k=(0,s.jsx)(p0,{value:p,children:j}),e[25]=j,e[26]=p,e[27]=k):k=e[27],k};function KC(t){return{name:t[0],type:t[1][0]}}function ZC(t){return t.preventDefault()}var Wd=J();const qC=t=>{let e=(0,Wd.c)(40),{previewColumn:a,fieldTypes:r,totalRows:n,totalColumns:i,tableId:l}=t,[o,d]=(0,x.useState)(""),{locale:u}=qe(),c,p,m,h,g,f,v,b,w,D;if(e[0]!==r||e[1]!==u||e[2]!==a||e[3]!==o||e[4]!==l||e[5]!==i||e[6]!==n){let S=r==null?void 0:r.filter(QC),y=S==null?void 0:S.filter(E=>{let[T]=E;return T.toLowerCase().includes(o.toLowerCase())});w="mt-5 mb-3";let C;e[17]!==u||e[18]!==i||e[19]!==n?(C=iT(n,i,u),e[17]=u,e[18]=i,e[19]=n,e[20]=C):C=e[20],D=(0,s.jsxs)("span",{className:"text-xs font-semibold ml-2 flex",children:[C,(0,s.jsx)(so,{tooltip:"Copy column names",value:(S==null?void 0:S.map(JC).join(`, +`))||"",className:"h-3 w-3 ml-1 mt-0.5"})]}),p=WA,f="h-5/6 bg-background",v=!1;let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=E=>d(E),e[21]=_):_=e[21],e[22]===o?b=e[23]:(b=(0,s.jsx)(OA,{placeholder:"Search columns...",value:o,onValueChange:_}),e[22]=o,e[23]=b),c=HA,m="max-h-full",e[24]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsx)(BA,{children:"No results."}),e[24]=h):h=e[24],g=y==null?void 0:y.map(E=>{let[T,P]=E,[R,F]=P;return(0,s.jsx)(YC,{columnName:T,dataType:R,externalType:F,previewColumn:a},`${l}-${T}`)}),e[0]=r,e[1]=u,e[2]=a,e[3]=o,e[4]=l,e[5]=i,e[6]=n,e[7]=c,e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=f,e[13]=v,e[14]=b,e[15]=w,e[16]=D}else c=e[7],p=e[8],m=e[9],h=e[10],g=e[11],f=e[12],v=e[13],b=e[14],w=e[15],D=e[16];let j;e[25]!==c||e[26]!==m||e[27]!==h||e[28]!==g?(j=(0,s.jsxs)(c,{className:m,children:[h,g]}),e[25]=c,e[26]=m,e[27]=h,e[28]=g,e[29]=j):j=e[29];let k;e[30]!==p||e[31]!==f||e[32]!==v||e[33]!==b||e[34]!==j?(k=(0,s.jsxs)(p,{className:f,shouldFilter:v,children:[b,j]}),e[30]=p,e[31]=f,e[32]=v,e[33]=b,e[34]=j,e[35]=k):k=e[35];let N;return e[36]!==k||e[37]!==w||e[38]!==D?(N=(0,s.jsxs)("div",{className:w,children:[D,k]}),e[36]=k,e[37]=w,e[38]=D,e[39]=N):N=e[39],N};var YC=t=>{let e=(0,Wd.c)(28),{columnName:a,dataType:r,externalType:n,previewColumn:i}=t,[l,o]=(0,x.useState)(!1),d=l?"font-semibold":"",u;e[0]!==a||e[1]!==d?(u=(0,s.jsx)("span",{className:d,children:a}),e[0]=a,e[1]=d,e[2]=u):u=e[2];let c=u,p;e[3]===l?p=e[4]:(p=()=>o(!l),e[3]=l,e[4]=p);let m;e[5]!==c||e[6]!==r?(m=(0,s.jsx)(kv,{columnName:c,dataType:r}),e[5]=c,e[6]=r,e[7]=m):m=e[7];let h;e[8]===a?h=e[9]:(h=(0,s.jsx)(Mt,{content:"Copy column name",delayDuration:400,children:(0,s.jsx)(Ce,{variant:"text",size:"icon",className:"group-hover:opacity-100 opacity-0 hover:bg-muted text-muted-foreground hover:text-foreground",children:(0,s.jsx)(so,{tooltip:!1,value:a,className:"h-3 w-3"})})}),e[8]=a,e[9]=h);let g;e[10]===n?g=e[11]:(g=(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:n}),e[10]=n,e[11]=g);let f;e[12]!==h||e[13]!==g?(f=(0,s.jsxs)("div",{className:"ml-auto",children:[h,g]}),e[12]=h,e[13]=g,e[14]=f):f=e[14];let v;e[15]!==a||e[16]!==p||e[17]!==m||e[18]!==f?(v=(0,s.jsxs)(LA,{onSelect:p,className:"flex flex-row items-center gap-1.5 group w-full cursor-pointer",children:[m,f]},a),e[15]=a,e[16]=p,e[17]=m,e[18]=f,e[19]=v):v=e[19];let b;e[20]!==a||e[21]!==r||e[22]!==l||e[23]!==i?(b=l&&(0,s.jsx)(Ml,{children:(0,s.jsx)(GC,{previewColumn:i,columnName:a,dataType:r})}),e[20]=a,e[21]=r,e[22]=l,e[23]=i,e[24]=b):b=e[24];let w;return e[25]!==v||e[26]!==b?(w=(0,s.jsxs)(s.Fragment,{children:[v,b]}),e[25]=v,e[26]=b,e[27]=w):w=e[27],w},GC=t=>{let e=(0,Wd.c)(26),{previewColumn:a,columnName:r,dataType:n}=t,{theme:i}=qr(),{locale:l}=qe(),o;e[0]!==r||e[1]!==a?(o=async()=>await a({column:r}),e[0]=r,e[1]=a,e[2]=o):o=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[3]=d):d=e[3];let{data:u,error:c,isPending:p,refetch:m}=Et(o,d);if(c){let E;return e[4]===c?E=e[5]:(E=(0,s.jsx)(UR,{error:c}),e[4]=c,e[5]=E),E}if(p){let E;return e[6]===Symbol.for("react.memo_cache_sentinel")?(E=(0,s.jsx)(OR,{message:"Loading..."}),e[6]=E):E=e[6],E}if(!u){let E;return e[7]===Symbol.for("react.memo_cache_sentinel")?(E=(0,s.jsx)(LR,{content:"No data",className:"pl-4"}),e[7]=E):E=e[7],E}let{chart_spec:h,chart_code:g,error:f,missing_packages:v,stats:b}=u,w;e[8]!==v||e[9]!==f||e[10]!==m?(w=f&&$R({error:f,missingPackages:v,refetchPreview:m}),e[8]=v,e[9]=f,e[10]=m,e[11]=w):w=e[11];let D=w,j;e[12]!==n||e[13]!==l||e[14]!==b?(j=b&&zR({stats:b,dataType:n,locale:l}),e[12]=n,e[13]=l,e[14]=b,e[15]=j):j=e[15];let k=j,N;e[16]!==h||e[17]!==i?(N=h&&BR(h,i),e[16]=h,e[17]=i,e[18]=N):N=e[18];let S=N,y;e[19]===g?y=e[20]:(y=g&&(0,s.jsx)(WR,{chartCode:g}),e[19]=g,e[20]=y);let C=y,_;return e[21]!==C||e[22]!==S||e[23]!==D||e[24]!==k?(_=(0,s.jsxs)(HR,{className:"px-2 py-1",children:[D,C,S,k]}),e[21]=C,e[22]=S,e[23]=D,e[24]=k,e[25]=_):_=e[25],_};function QC(t){let[e]=t;return!(e==="__select__"||e==="_marimo_row_id"||e.startsWith("__m_column__"))}function JC(t){let[e]=t;return e}var XC=J();function ek(t,e){let a=(0,XC.c)(12),r=Il(m_),{focusCell:n}=KA(),i=ZA(),[l,o]=Ln(JE),[d,u]=Ln(p_),[c,p]=Ln(i_),m=tk(t,e);!e&&r&&(se.error("CellId is not found, defaulting to fixed mode"),r=!1);let h=D=>d===m&&c&&D===l,g=i===e,f=d&&ak(d,e);r&&g&&d!==m&&!f&&u(m);let v;a[0]!==e||a[1]!==n||a[2]!==r||a[3]!==h||a[4]!==m||a[5]!==p||a[6]!==u||a[7]!==o?(v=function(D){h(D)?(u(null),p(!1)):(u(m),r&&e&&n({cellId:e}),p(!0),o(D))},a[0]=e,a[1]=n,a[2]=r,a[3]=h,a[4]=m,a[5]=p,a[6]=u,a[7]=o,a[8]=v):v=a[8];let b=v,w;return a[9]!==h||a[10]!==b?(w={isPanelOpen:h,togglePanel:b},a[9]=h,a[10]=b,a[11]=w):w=a[11],w}function tk(t,e){return e?`${e}-${t}`:t}function ak(t,e){return e?t.startsWith(e):!1}var rk=J();const nk=({rowIdx:t,setRowIdx:e,totalRows:a,fieldTypes:r,getRow:n,isSelectable:i,isRowSelected:l,handleRowSelectionChange:o})=>{let[d,u]=(0,x.useState)(""),c=(0,x.useRef)(null),p=(0,x.useRef)(null),{locale:m}=qe(),h=a===ku,{data:g,error:f}=Et(async()=>(await n(t)).rows,[n,t,a]),v=j=>{j<0||typeof a=="number"&&j>=a||e(j)},b=()=>{o==null||o(j=>{if(l){let{[t]:k,...N}=j;return N}return{...j,[t]:!0}})};!h&&t>a&&v(a-1),M_(c,{ArrowLeft:j=>{if((j==null?void 0:j.target)===p.current)return!1;v(t-1)},ArrowRight:j=>{if((j==null?void 0:j.target)===p.current)return!1;v(t+1)},Space:j=>{if((j==null?void 0:j.target)===p.current)return!1;b()}});let w="h-6 w-6 p-0.5",D=()=>{if(f)return(0,s.jsx)(Qr,{error:f,className:"p-4 mx-3 mt-5"});if(a===0)return(0,s.jsx)(Ud,{kind:"info",Icon:Pl,message:"No rows selected"});if(!g)return(0,s.jsx)(ju,{milliseconds:200,children:(0,s.jsx)(qn,{size:"medium",centered:!0})});if(g.length!==1)return(0,s.jsx)(Ud,{kind:"warn",Icon:Xl,message:h?"LazyFrame, no data available.":`Expected 1 row, got ${g.length} rows. Please report the issue.`});let j=g[0];if(typeof j!="object"||!j)return(0,s.jsx)(Ud,{kind:"warn",Icon:Xl,message:"Row is not an object. Please report the issue."});let k={};for(let[N,S]of Object.entries(j))N==="__select__"||N==="_marimo_row_id"||(N.startsWith("__m_column__")?k[N.slice(sT.length)]=S:k[N]=S);return(0,s.jsxs)(Qu,{className:"mb-4",children:[(0,s.jsx)(Yv,{children:(0,s.jsxs)(Jr,{children:[(0,s.jsx)(Yu,{className:"w-1/4",children:"Column"}),(0,s.jsx)(Yu,{className:"w-3/4",children:"Value"})]})}),(0,s.jsx)(Gu,{children:r==null?void 0:r.map(([N,[S,y]])=>{let C=k[N];if(!ik({columnName:N,columnValue:C,searchQuery:d}))return null;let _=G_({column:{id:N,columnDef:{meta:{dataType:S}},getColumnFormatting:()=>{},applyColumnFormatting:T=>T},renderValue:()=>C,getValue:()=>C,selectCell:void 0,cellStyles:"text-left break-word"}),E=typeof C=="object"?JSON.stringify(C):String(C);return(0,s.jsxs)(Jr,{className:"group",children:[(0,s.jsx)(pr,{children:(0,s.jsx)(kv,{columnName:(0,s.jsx)("span",{children:N}),dataType:S})}),(0,s.jsx)(pr,{children:(0,s.jsxs)("div",{className:"flex flex-row items-center justify-between gap-1",children:[_,(0,s.jsx)(so,{value:E,className:"w-3 h-3 mr-1 text-muted-foreground cursor-pointer opacity-0 group-hover:opacity-100"})]})})]},N)})})]})};return(0,s.jsxs)("div",{className:"flex flex-col gap-3 mt-4 focus:outline-hidden",ref:c,tabIndex:-1,children:[(0,s.jsxs)("div",{className:"flex flex-row gap-2 items-center mr-2",children:[i&&(0,s.jsxs)("div",{className:"flex flex-row gap-1 items-center",children:[(0,s.jsx)(Ce,{variant:"link",size:"xs",className:"pr-0",onClick:b,children:l?"Deselect row":"Select row"}),(0,s.jsx)(Gv,{shortcut:"Space"})]}),(0,s.jsx)(Ce,{variant:"outline",size:"xs",className:`${w} ml-auto`,onClick:()=>v(0),disabled:t===0,"aria-label":"Go to first row",children:(0,s.jsx)(nT,{})}),(0,s.jsx)(Ce,{variant:"outline",size:"xs",className:w,onClick:()=>v(t-1),disabled:t===0,"aria-label":"Previous row",children:(0,s.jsx)(Ol,{})}),(0,s.jsx)("span",{className:"text-xs",children:h?`Row ${t+1}`:`Row ${t+1} of ${X_(a,m)}`}),(0,s.jsx)(Ce,{variant:"outline",size:"xs",className:w,onClick:()=>v(t+1),disabled:!h&&t===a-1,"aria-label":"Next row",children:(0,s.jsx)($l,{})}),(0,s.jsx)(Ce,{variant:"outline",size:"xs",className:w,onClick:()=>{h||v(a-1)},disabled:h||t===a-1,"aria-label":"Go to last row",children:(0,s.jsx)(eT,{})})]}),(0,s.jsx)("div",{className:"mx-2 -mb-1",children:(0,s.jsx)(Vu,{ref:p,type:"text",placeholder:"Search",onChange:j=>u(j.target.value),icon:(0,s.jsx)(SR,{className:"w-4 h-4"}),className:"mb-0 border-border","data-testid":"selection-panel-search-input"})}),D()]})};function ik({columnName:t,columnValue:e,searchQuery:a}){let r=t.toLowerCase(),n=a.toLowerCase(),i=typeof e=="object"?JSON.stringify(e):String(e);return i=i.toLowerCase(),r.includes(n)||i.includes(n)}var Ud=t=>{let e=(0,rk.c)(8),{kind:a,Icon:r,message:n}=t,i;e[0]===r?i=e[1]:(i=(0,s.jsx)(r,{className:"w-5 h-5"}),e[0]=r,e[1]=i);let l;e[2]===n?l=e[3]:(l=(0,s.jsx)("span",{children:n}),e[2]=n,e[3]=l);let o;return e[4]!==a||e[5]!==i||e[6]!==l?(o=(0,s.jsxs)(mr,{kind:a,className:"p-4 mx-3 mt-3 flex flex-row items-center gap-2",children:[i,l]}),e[4]=a,e[5]=i,e[6]=l,e[7]=o):o=e[7],o};const Bx=Ye.input(xu.object({format:xu.enum(["csv","json","parquet"])})).output(xu.string());var lk=J();function ok(t,e){let a=(0,lk.c)(2),r=(0,x.useRef)(!1),n;a[0]===t?n=a[1]:(n=()=>{if(!r.current){r.current=!0;return}t()},a[0]=t,a[1]=n),(0,x.useEffect)(n,e)}const sk=["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","complex64","complex128","bool","object","str","unicode","datetime64","timedelta64"],Kd=["count","sum","mean","median","min","max"];var It={number:WE().describe(oe.of({label:"Value"})),string:M().min(1).describe(oe.of({label:"Value"})),stringColumnValues:M().min(1).describe(oe.of({label:"Value",special:"column_values"})),stringMultiColumnValues:ee(M()).min(1).describe(oe.of({label:"Value",special:"column_values"})),date:M1().describe(oe.of({label:"Value",special:"date"})),datetime:M1().describe(oe.of({label:"Value",special:"datetime"})),time:M().regex(/^\d{2}:\d{2}(:\d{2})?$/).describe(oe.of({label:"Value",special:"time"}))};const cl={is_true:[],is_false:[]};var ml=t=>({"==":[t],"!=":[t],">":[t],">=":[t],"<":[t],"<=":[t],is_null:[],is_not_null:[]});const Vr=ml(It.number),pl=ml(It.date),hl=ml(It.time),fl=ml(It.datetime),gl={equals:[It.stringColumnValues],does_not_equal:[It.stringColumnValues],contains:[It.string],regex:[It.string],starts_with:[It.string],ends_with:[It.string],in:[It.stringMultiColumnValues],not_in:[It.stringMultiColumnValues],is_null:[],is_not_null:[]},dk={...cl,...Vr,...pl,...hl,...fl,...gl};function Hx(t){return t?t.startsWith("int")?"integer":t.startsWith("float")||t.startsWith("uint")||t.startsWith("number")||t.startsWith("complex")?"number":t.startsWith("string")||t.startsWith("object")||t.startsWith("utf8")?"string":t.startsWith("datetime")?"datetime":t.startsWith("time")?"time":t.startsWith("date")?"date":t.startsWith("bool")?"boolean":"unknown":"unknown"}function Wx(t){if(!t)return[];switch(Hx(t)){case"integer":return Object.keys(Vr);case"number":return Object.keys(Vr);case"string":return Object.keys(gl);case"date":return Object.keys(pl);case"datetime":return Object.keys(fl);case"time":return Object.keys(hl);case"boolean":return Object.keys(cl);case"unknown":return[]}}function uk(t,e){if(!t||!e)return[];switch(Hx(t)){case"integer":return jt(Vr,e);case"number":return jt(Vr,e);case"string":return jt(gl,e);case"date":return jt(pl,e);case"datetime":return jt(fl,e);case"time":return jt(hl,e);case"boolean":return jt(cl,e);case"unknown":return[]}}function ck(t,e){let a=[jt(cl,t),jt(pl,t),jt(hl,t),jt(fl,t),jt(Vr,t),jt(gl,t)].flat();return a.length===0?!0:a.some(r=>r.safeParse(e).success)}var jt=(t,e)=>t[e]?t[e]:[];const Vn=ee(Pa([P1(),Pa([ye(Ki),M()])])),aa=M().min(1,"Required").or(Y()).transform(t=>t).describe(oe.of({label:"Column",special:"column_id"})),zn=ee(aa.describe(oe.of({special:"column_id"}))).min(1,"At least one column is required").default([]).describe(oe.of({label:"Columns",minLength:1}));var mk=$({type:He("column_conversion"),column_id:aa,data_type:ye(sk).describe(oe.of({label:"Data type (numpy)"})).default("bool"),errors:ye(["ignore","raise"]).default("ignore").describe(oe.of({label:"Handle errors",special:"radio_group"}))}).describe(oe.of({})),pk=$({type:He("rename_column"),column_id:aa,new_column_id:M().min(1,"Required").transform(t=>t).describe(oe.of({label:"New column name",minLength:1}))}),hk=$({type:He("sort_column"),column_id:aa,ascending:W().describe(oe.of({label:"Ascending"})).default(!0),na_position:ye(["first","last"]).describe(oe.of({label:"N/A position",special:"radio_group"})).default("last")});const Zd=$({column_id:aa,operator:ye(Object.keys(dk)).describe(oe.of({label:" "})),value:Ht().describe(oe.of({label:"Value"}))}).describe(oe.of({direction:"row",special:"column_filter"}));var fk=$({type:He("filter_rows"),operation:ye(["keep_rows","remove_rows"]).default("keep_rows").describe(oe.of({special:"radio_group"})),where:ee(Zd).min(1).describe(oe.of({label:"Value",minLength:1})).transform(t=>t.filter(e=>ck(e.operator,e.value))).default(()=>[{column_id:"",operator:"==",value:""}])}),gk=$({type:He("group_by"),column_ids:ee(aa.describe(oe.of({special:"column_id"}))).default([]).describe(oe.of({label:"Group by columns",minLength:1})),aggregation_column_ids:ee(aa.describe(oe.of({special:"column_id"}))).default([]).describe(oe.of({label:"Aggregate on columns"})),aggregation:ye(Kd).default("count").describe(oe.of({label:"Aggregation"})),drop_na:W().default(!1).describe(oe.of({label:"Drop N/A"}))}).describe(oe.of({})),xk=$({type:He("aggregate"),column_ids:zn,aggregations:ee(ye(Kd)).min(1,"At least one aggregation is required").default(["count"]).describe(oe.of({label:"Aggregations",minLength:1}))}).describe(oe.of({direction:"row"}));const qd=Se([fk,$({type:He("select_columns"),column_ids:zn}),pk,mk,hk,gk,xk,$({type:He("sample_rows"),n:Y().positive().describe(oe.of({label:"Number of rows"})),seed:Y().default(()=>Jv()).describe(oe.of({label:"Re-sample",special:"random_number_button"})),replace:W().default(!1).describe(oe.of({label:"Sample with replacement"}))}),$({type:He("shuffle_rows"),seed:Y().default(()=>Jv()).describe(oe.of({label:"Re-shuffle",special:"random_number_button"}))}),$({type:He("explode_columns"),column_ids:zn}),$({type:He("expand_dict"),column_id:aa}),$({type:He("unique"),column_ids:zn,keep:ye(["first","last","none","any"]).default("first").describe(oe.of({label:"Keep"}))}).describe(oe.of({direction:"row"})),$({type:He("pivot"),column_ids:zn,index_column_ids:ee(aa.describe(oe.of({special:"column_id"}))).default([]).describe(oe.of({label:"Rows"})),value_column_ids:ee(aa.describe(oe.of({special:"column_id"}))).default([]).describe(oe.of({label:"Values",minLength:1})),aggregation:ye(Kd).default("sum").describe(oe.of({label:"Aggregation"}))}).describe(oe.of({}))]),vk=$({transforms:ee(qd)});var Yd=J(),ga=Se([Y(),HE(),M()]).nullable(),Ux=$({total:Y().nullable(),nulls:Y().nullable(),unique:Y().nullable(),true:Y().nullable(),false:Y().nullable(),min:ga,max:ga,std:ga,mean:ga,median:ga,p5:ga,p25:ga,p75:ga,p95:ga}),yk=ee($({bin_start:Se([Y(),M(),F1(Date)]),bin_end:Se([Y(),M(),F1(Date)]),count:Y()})),bk=ee($({value:M(),count:Y()})),Kx=ft(M(),ft(M(),M().nullable())).optional();const wk=Ft("marimo-table").withData($({initialValue:Se([ee(Y()),ee($({rowId:M(),columnName:M()}))]),label:M().nullable(),data:Se([M(),ee($({}).passthrough())]),totalRows:Se([Y(),He(ku)]),pagination:W().default(!1),pageSize:Y().default(10),selection:ye(["single","multi","single-cell","multi-cell"]).nullable().default(null),showDownload:W().default(!1),showFilters:W().default(!1),showColumnSummaries:Se([W(),ye(["stats","chart"])]).default(!0),showDataTypes:W().default(!0),showPageSizeSelector:W().default(!0),showColumnExplorer:W().default(!0),showRowExplorer:W().default(!0),showChartBuilder:W().default(!0),rowHeaders:Vn,freezeColumnsLeft:ee(M()).optional(),freezeColumnsRight:ee(M()).optional(),textJustifyColumns:ft(M(),ye(["left","center","right"])).optional(),wrappedColumns:ee(M()).optional(),headerTooltip:ft(M(),M()).optional(),fieldTypes:Vn.nullish(),totalColumns:Y(),maxColumns:Se([Y(),He("all")]).default("all"),hasStableRowId:W().default(!1),maxHeight:Y().optional(),cellStyles:ft(M(),ft(M(),$({}).passthrough())).optional(),hoverTemplate:M().optional(),cellHoverTexts:Kx,lazy:W().default(!1),preload:W().default(!1)})).withFunctions({download_as:Bx,get_column_summaries:Ye.input($r({})).output($({data:Se([M(),ee($r({}))]).nullable(),stats:ft(M(),Ux),bin_values:ft(M(),yk),value_counts:ft(M(),bk),show_charts:W(),is_disabled:W().optional()})),search:Ye.input($({sort:ee($({by:M(),descending:W()})).optional(),query:M().optional(),filters:ee(Zd).optional(),page_number:Y(),page_size:Y(),max_columns:Y().nullable().optional()})).output($({data:Se([M(),ee($({}).passthrough())]),total_rows:Se([Y(),He(ku)]),cell_styles:ft(M(),ft(M(),$({}).passthrough())).nullable(),cell_hover_texts:Kx.nullable()})),get_row_ids:Ye.input($({}).passthrough()).output($({row_ids:ee(Y()),all_rows:W(),error:M().nullable()})),get_data_url:Ye.input($({}).passthrough()).output($({data_url:Se([M(),ee($({}).passthrough())]),format:ye(["csv","json","arrow"])})),calculate_top_k_rows:Ye.input($({column:M(),k:Y()})).output($({data:ee(Pa([Ht(),Y()]))})),preview_column:Ye.input($({column:M()})).output($({chart_spec:M().nullable(),chart_code:M().nullable(),error:M().nullable(),missing_packages:ee(M()).nullable(),stats:Ux.nullable()}))}).renderer(t=>(0,s.jsx)(Zx,{children:(0,s.jsx)(Dk,{isLazy:t.data.lazy,preload:t.data.preload,children:(0,s.jsx)(Gd,{...t.data,...t.functions,host:t.host,enableSearch:!0,data:t.data.data,value:t.value,setValue:t.setValue,cellHoverTexts:t.data.cellHoverTexts})})}));var Dk=t=>{let e=(0,Yd.c)(1),{isLazy:a,children:r,preload:n}=t,[i,l]=(0,x.useState)(a&&!n);if(i){let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)("div",{className:"flex h-20 items-center justify-center",children:(0,s.jsxs)(Ce,{variant:"outline",size:"xs",onClick:()=>l(!1),children:[(0,s.jsx)(S1,{className:"mr-2 h-4 w-4"}),"Preview data"]})}),e[0]=o):o=e[0],o}return r};const Gd=(0,x.memo)(t=>{let e=(0,Yd.c)(101),a;e[0]===t.host?a=e[1]:(a=AE(t.host),e[0]=t.host,e[1]=a);let r=a,n=t.search,i=t.setValue,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[2]=l):l=e[2];let[o,d]=(0,x.useState)(l),u;e[3]===t.pageSize?u=e[4]:(u={pageSize:t.pageSize,pageIndex:0},e[3]=t.pageSize,e[4]=u);let[c,p]=x.useState(u),[m,h]=(0,x.useState)(""),g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[5]=g):g=e[5];let[f,v]=(0,x.useState)(g),b;e[6]!==r||e[7]!==t.showChartBuilder?(b=()=>!t.showChartBuilder||!r?!1:$C(r),e[6]=r,e[7]=t.showChartBuilder,e[8]=b):b=e[8];let[w,D]=(0,x.useState)(b),j;e[9]!==t.hasStableRowId||e[10]!==i?(j=()=>{t.hasStableRowId||i([])},e[9]=t.hasStableRowId,e[10]=i,e[11]=j):j=e[11];let k;e[12]!==f||e[13]!==t.hasStableRowId||e[14]!==m||e[15]!==i||e[16]!==o?(k=[i,f,m,o,t.hasStableRowId],e[12]=f,e[13]=t.hasStableRowId,e[14]=m,e[15]=i,e[16]=o,e[17]=k):k=e[17],ok(j,k);let N,S;e[18]===t.pageSize?(N=e[19],S=e[20]):(N=()=>{p({pageIndex:0,pageSize:t.pageSize})},S=[t.pageSize],e[18]=t.pageSize,e[19]=N,e[20]=S),(0,x.useEffect)(N,S);let y;e[21]!==f||e[22]!==c.pageIndex||e[23]!==c.pageSize||e[24]!==t.cellHoverTexts||e[25]!==t.cellStyles||e[26]!==t.data||e[27]!==t.lazy||e[28]!==t.pageSize||e[29]!==t.totalRows||e[30]!==n||e[31]!==m||e[32]!==o?(y=async()=>{if(t.totalRows===0)return{rows:ya.EMPTY,totalRows:0,cellStyles:{}};let Ne=t.data,Qe=t.totalRows,lt=t.cellStyles,vt=t.cellHoverTexts,ot=c.pageSize!==t.pageSize,Bt=m===""&&c.pageIndex===0&&f.length===0&&o.length===0&&!t.lazy&&!ot,Ct=n({sort:o.length>0?o.map(Ck):void 0,query:m,page_number:c.pageIndex,page_size:c.pageSize,filters:f.flatMap(kk)});if(Bt)Ct.catch(Sk);else{let ht=await Ct;Ne=ht.data,Qe=ht.total_rows,lt=ht.cell_styles||{},vt=ht.cell_hover_texts||{}}return Ne=await J1(Ne),{rows:Ne,totalRows:Qe,cellStyles:lt,cellHoverTexts:vt}},e[21]=f,e[22]=c.pageIndex,e[23]=c.pageSize,e[24]=t.cellHoverTexts,e[25]=t.cellStyles,e[26]=t.data,e[27]=t.lazy,e[28]=t.pageSize,e[29]=t.totalRows,e[30]=n,e[31]=m,e[32]=o,e[33]=y):y=e[33];let C=Ka(t.fieldTypes),_;e[34]!==f||e[35]!==c.pageIndex||e[36]!==c.pageSize||e[37]!==t.cellHoverTexts||e[38]!==t.cellStyles||e[39]!==t.data||e[40]!==t.lazy||e[41]!==t.totalRows||e[42]!==n||e[43]!==m||e[44]!==o||e[45]!==C?(_=[o,n,f,m,C,t.data,t.totalRows,t.lazy,t.cellHoverTexts,t.cellStyles,c.pageSize,c.pageIndex],e[34]=f,e[35]=c.pageIndex,e[36]=c.pageSize,e[37]=t.cellHoverTexts,e[38]=t.cellStyles,e[39]=t.data,e[40]=t.lazy,e[41]=t.totalRows,e[42]=n,e[43]=m,e[44]=o,e[45]=C,e[46]=_):_=e[46];let{data:E,error:T,isPending:P,isFetching:R}=Et(y,_),F;e[47]!==f||e[48]!==n||e[49]!==m||e[50]!==o?(F=async Ne=>({rows:await J1((await n({page_number:Ne,page_size:1,sort:o.length>0?o.map(Nk):void 0,query:m,filters:f.flatMap(Ek),max_columns:null})).data)}),e[47]=f,e[48]=n,e[49]=m,e[50]=o,e[51]=F):F=e[51];let I=F,V;e[52]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{p(_k)},e[52]=V):V=e[52];let A=E==null?void 0:E.totalRows,O;e[53]===A?O=e[54]:(O=[A],e[53]=A,e[54]=O),(0,x.useEffect)(V,O);let z;e[55]===t?z=e[56]:(z=async()=>t.totalRows===0||!t.showColumnSummaries?{data:null,stats:{},bin_values:{},value_counts:{},show_charts:!1}:t.get_column_summaries({}),e[55]=t,e[56]=z);let L;e[57]!==f||e[58]!==t.data||e[59]!==t.get_column_summaries||e[60]!==t.showColumnSummaries||e[61]!==t.totalRows||e[62]!==m?(L=[t.get_column_summaries,t.showColumnSummaries,f,m,t.totalRows,t.data],e[57]=f,e[58]=t.data,e[59]=t.get_column_summaries,e[60]=t.showColumnSummaries,e[61]=t.totalRows,e[62]=m,e[63]=L):L=e[63];let{data:G,error:Q}=Et(z,L),ae,ce;if(e[64]===Q?(ae=e[65],ce=e[66]):(ae=()=>{Q&&se.error(Q)},ce=[Q],e[64]=Q,e[65]=ae,e[66]=ce),(0,x.useEffect)(ae,ce),P){let Ne=t.totalRows!=="too_many"&&t.totalRows>0?t.totalRows:t.pageSize,Qe;return e[67]===Ne?Qe=e[68]:(Qe=(0,s.jsx)(ju,{milliseconds:200,children:(0,s.jsx)(c0,{pageSize:Ne})}),e[67]=Ne,e[68]=Qe),Qe}let le=null;if(T){se.error(T);let Ne;e[69]===T?Ne=e[70]:(Ne=!Kn()&&(0,s.jsxs)(uo,{variant:"destructive",className:"mb-2",children:[(0,s.jsx)(qu,{children:"Error"}),(0,s.jsx)("div",{className:"text-md",children:T.message||"An unknown error occurred"})]}),e[69]=T,e[70]=Ne),le=Ne}let Z;e[71]===w?Z=e[72]:(Z=()=>{D(!w)},e[71]=w,e[72]=Z);let B=Z,re=(E==null?void 0:E.rows)??ya.EMPTY,te=R&&!P,ie=(E==null?void 0:E.totalRows)??t.totalRows,xe=(E==null?void 0:E.cellStyles)??t.cellStyles,me=(E==null?void 0:E.cellHoverTexts)??t.cellHoverTexts,he;e[73]!==r||e[74]!==G||e[75]!==f||e[76]!==I||e[77]!==c||e[78]!==t||e[79]!==m||e[80]!==o||e[81]!==re||e[82]!==te||e[83]!==ie||e[84]!==xe||e[85]!==me||e[86]!==B?(he=(0,s.jsx)(jk,{...t,data:re,columnSummaries:G,sorting:o,setSorting:d,searchQuery:m,setSearchQuery:h,filters:f,setFilters:v,reloading:te,totalRows:ie,paginationState:c,setPaginationState:p,cellStyles:xe,cellHoverTexts:me,toggleDisplayHeader:B,getRow:I,cellId:r,maxHeight:t.maxHeight}),e[73]=r,e[74]=G,e[75]=f,e[76]=I,e[77]=c,e[78]=t,e[79]=m,e[80]=o,e[81]=re,e[82]=te,e[83]=ie,e[84]=xe,e[85]=me,e[86]=B,e[87]=he):he=e[87];let be=he,Re;e[88]!==r||e[89]!==(E==null?void 0:E.rows)||e[90]!==be||e[91]!==w||e[92]!==t.fieldTypes||e[93]!==t.get_data_url||e[94]!==t.showChartBuilder||e[95]!==t.totalColumns||e[96]!==t.totalRows?(Re=t.showChartBuilder?(0,s.jsx)(HC,{displayHeader:w,data:(E==null?void 0:E.rows)||[],columns:t.totalColumns,totalRows:t.totalRows,dataTable:be,getDataUrl:t.get_data_url,fieldTypes:t.fieldTypes,cellId:r}):be,e[88]=r,e[89]=E==null?void 0:E.rows,e[90]=be,e[91]=w,e[92]=t.fieldTypes,e[93]=t.get_data_url,e[94]=t.showChartBuilder,e[95]=t.totalColumns,e[96]=t.totalRows,e[97]=Re):Re=e[97];let je;return e[98]!==le||e[99]!==Re?(je=(0,s.jsxs)(s.Fragment,{children:[le,Re]}),e[98]=le,e[99]=Re,e[100]=je):je=e[100],je});Gd.displayName="LoadingDataTableComponent";var jk=({label:t,data:e,totalRows:a,maxColumns:r,pagination:n,selection:i,value:l,showFilters:o,showDownload:d,showPageSizeSelector:u,showColumnExplorer:c,showRowExplorer:p,showChartBuilder:m,showDataTypes:h,rowHeaders:g,fieldTypes:f,paginationState:v,setPaginationState:b,download_as:w,columnSummaries:D,className:j,setValue:k,sorting:N,setSorting:S,enableSearch:y,searchQuery:C,setSearchQuery:_,filters:E,setFilters:T,reloading:P,freezeColumnsLeft:R,freezeColumnsRight:F,textJustifyColumns:I,wrappedColumns:V,headerTooltip:A,totalColumns:O,get_row_ids:z,cellStyles:L,hoverTemplate:G,cellHoverTexts:Q,toggleDisplayHeader:ae,calculate_top_k_rows:ce,preview_column:le,getRow:Z,cellId:B,maxHeight:re})=>{let te=(0,x.useId)(),[ie,xe]=(0,x.useState)(0),{isPanelOpen:me,togglePanel:he}=ek(te,B),be=(0,x.useMemo)(()=>{if(!D||!f||!D.stats)return Y1.EMPTY;let tt=Cu(f);return new Y1(D.data||[],tt,D.stats,D.bin_values,D.value_counts,{includeCharts:D.show_charts})},[f,D]),Re=Ka(f??Su(e)),je=(0,x.useMemo)(()=>r==="all"?Re:Re.slice(0,r),[r,Re]),Ne=Ka(g),Qe=Ka(I),lt=Ka(V),vt=Ka(be),ot=je.length;f||(h=!1);let Bt=(0,x.useMemo)(()=>J_({rowHeaders:Ne,selection:i,chartSpecModel:vt,fieldTypes:je,textJustifyColumns:Qe,wrappedColumns:lt,headerTooltip:A,showDataTypes:h,calculateTopKRows:ce}),[i,h,vt,Ne,je,Qe,lt,A,ce]),Ct=(0,x.useMemo)(()=>Object.fromEntries((l||[]).map(tt=>[tt,!0])),[l]),ht=$e(tt=>{if(i==="single"){let Or=za.asUpdater(tt)({});k(Object.keys(Or).slice(0,1))}if(i==="multi"){let Or=za.asUpdater(tt)(Ct);k(Object.keys(Or))}}),Nl=$e(tt=>{if(xe(tt),tt<0||typeof a=="number"&&tt>=a||a==="too_many")return;let Or=H_(tt,v.pageIndex,v.pageSize);Or!==null&&b(pE=>({...pE,pageIndex:Or}))}),zr=l.filter(tt=>tt instanceof Object&&tt.columnName!==void 0),El=$e(tt=>{i==="single-cell"&&k(za.asUpdater(tt)(zr).slice(0,1)),i==="multi-cell"&&k(za.asUpdater(tt)(zr))}),_l=i==="multi"||i==="single",Tl=c&&le&&me("column-explorer"),j1=JR();return(0,s.jsxs)(s.Fragment,{children:[a==="too_many"&&v.pageSize===e.length&&(0,s.jsxs)(mr,{className:"mb-1 rounded",children:["Previewing the first ",v.pageSize," rows."]}),ot0&&(0,s.jsxs)(mr,{className:"mb-1 rounded",children:["Result clipped. Showing ",ot," of ",O," columns."]}),(D==null?void 0:D.is_disabled)&&(0,s.jsx)(mr,{className:"mb-1 rounded",children:"Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."}),me("row-viewer")&&(0,s.jsx)(O1,{children:(0,s.jsx)(nk,{getRow:Z,fieldTypes:Re,totalRows:a,rowIdx:ie,setRowIdx:Nl,isSelectable:_l,isRowSelected:Ct[ie],handleRowSelectionChange:ht})}),Tl&&(0,s.jsx)(O1,{children:(0,s.jsx)(qC,{previewColumn:le,fieldTypes:Re,totalRows:a,totalColumns:O,tableId:te})}),(0,s.jsx)(oT,{value:be,children:(0,s.jsx)(Le,{label:t,align:"top",fullWidth:!0,children:(0,s.jsx)(tT,{data:e,columns:Bt,className:j,maxHeight:re,sorting:N,totalRows:a,totalColumns:O,manualSorting:!0,setSorting:S,pagination:n,manualPagination:!0,selection:i,paginationState:v,setPaginationState:b,rowSelection:Ct,cellSelection:zr,cellStyling:L,hoverTemplate:G,cellHoverTexts:Q,downloadAs:d?w:void 0,enableSearch:y,searchQuery:C,onSearchQueryChange:_,showFilters:o,filters:E,onFiltersChange:T,reloading:P,onRowSelectionChange:ht,freezeColumnsLeft:R,freezeColumnsRight:F,onCellSelectionChange:El,getRowIds:z,toggleDisplayHeader:ae,showChartBuilder:m,showPageSizeSelector:u,showColumnExplorer:c&&!j1,showRowExplorer:p&&!j1,togglePanel:he,isPanelOpen:me,viewedRowIdx:ie,onViewedRowChange:tt=>xe(tt)})})})]})};const Zx=t=>{let e=(0,Yd.c)(2),{children:a}=t,r;return e[0]===a?r=e[1]:(r=(0,s.jsx)(Ml,{children:(0,s.jsx)(Rl,{store:Oe,children:(0,s.jsx)(H1,{controller:Un,children:(0,s.jsx)(Tv,{children:a})})})}),e[0]=a,e[1]=r),r};function Ck(t){return{by:t.id,descending:t.desc}}function kk(t){return Q1(t.id,t.value)}function Sk(t){se.error(t)}function Nk(t){return{by:t.id,descending:t.desc}}function Ek(t){return Q1(t.id,t.value)}function _k(t){return t.pageIndex===0?t:{...t,pageIndex:0}}var Tk=J(),Rk=t=>{let e=(0,Tk.c)(10),a,r,n;e[0]===t?(a=e[1],r=e[2],n=e[3]):({className:a,offset:n,...r}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n);let i=n===void 0?4:n,l;e[4]===a?l=e[5]:(l=wa(a,Ak),e[4]=a,e[5]=l);let o;return e[6]!==i||e[7]!==r||e[8]!==l?(o=(0,s.jsx)(P2,{offset:i,className:l,...r}),e[6]=i,e[7]=r,e[8]=l,e[9]=o):o=e[9],o};function Ak(t){return U("z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-hidden","data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95","data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95","data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2",t)}var Ia=J(),xl=t=>{let e=(0,Ia.c)(11),{direction:a}=qe(),r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=U(Oa({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50","data-hovered:opacity-100"),e[0]=r):r=e[0];let n;e[1]===a?n=e[2]:(n=(0,s.jsx)(Zl,{slot:"previous",className:r,children:a==="rtl"?(0,s.jsx)($l,{"aria-hidden":!0,className:"size-4"}):(0,s.jsx)(Ol,{"aria-hidden":!0,className:"size-4"})}),e[1]=a,e[2]=n);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(G2,{className:"grow text-center text-sm font-medium"}),e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=U(Oa({variant:"outline"}),"size-7 bg-transparent p-0 opacity-50","data-hovered:opacity-100"),e[4]=l):l=e[4];let o;e[5]===a?o=e[6]:(o=(0,s.jsx)(Zl,{slot:"next",className:l,children:a==="rtl"?(0,s.jsx)(Ol,{"aria-hidden":!0,className:"size-4"}):(0,s.jsx)($l,{"aria-hidden":!0,className:"size-4"})}),e[5]=a,e[6]=o);let d;return e[7]!==t||e[8]!==n||e[9]!==o?(d=(0,s.jsxs)("header",{className:"flex w-full items-center gap-1 px-1 pb-4",...t,children:[n,i,o]}),e[7]=t,e[8]=n,e[9]=o,e[10]=d):d=e[10],d},vl=t=>{let e=(0,Ia.c)(8),a,r;e[0]===t?(a=e[1],r=e[2]):({className:a,...r}=t,e[0]=t,e[1]=a,e[2]=r);let n;e[3]===a?n=e[4]:(n=U(" border-separate border-spacing-x-0 border-spacing-y-1 ",a),e[3]=a,e[4]=n);let i;return e[5]!==r||e[6]!==n?(i=(0,s.jsx)(E2,{className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i},yl=t=>{let e=(0,Ia.c)(4),a;e[0]===t?a=e[1]:({...a}=t,e[0]=t,e[1]=a);let r;return e[2]===a?r=e[3]:(r=(0,s.jsx)(Bf,{...a}),e[2]=a,e[3]=r),r},bl=t=>{let e=(0,Ia.c)(8),a,r;e[0]===t?(a=e[1],r=e[2]):({className:a,...r}=t,e[0]=t,e[1]=a,e[2]=r);let n;e[3]===a?n=e[4]:(n=U("w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground",a),e[3]=a,e[4]=n);let i;return e[5]!==r||e[6]!==n?(i=(0,s.jsx)(Hf,{className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i},wl=t=>{let e=(0,Ia.c)(8),a,r;e[0]===t?(a=e[1],r=e[2]):({className:a,...r}=t,e[0]=t,e[1]=a,e[2]=r);let n;e[3]===a?n=e[4]:(n=U("[&>tr>td]:p-0",a),e[3]=a,e[4]=n);let i;return e[5]!==r||e[6]!==n?(i=(0,s.jsx)(Wf,{className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i},Dl=t=>{let e=(0,Ia.c)(11),a,r;e[0]===t?(a=e[1],r=e[2]):({className:a,...r}=t,e[0]=t,e[1]=a,e[2]=r);let n=!!x.use(yn),i;e[3]===n?i=e[4]:(i=(d,u)=>U(Oa({variant:"ghost"}),"relative flex size-9 items-center justify-center p-0 text-sm font-normal",u.isDisabled&&"text-muted-foreground opacity-50",u.isSelected&&"bg-primary text-primary-foreground data-focused:bg-primary data-focused:text-primary-foreground",u.isHovered&&u.isSelected&&(u.isSelectionStart||u.isSelectionEnd||!n)&&"data-hovered:bg-primary data-hovered:text-primary-foreground",u.isSelected&&n&&!u.isSelectionStart&&!u.isSelectionEnd&&"rounded-none bg-accent text-accent-foreground",u.isOutsideMonth&&"text-muted-foreground opacity-50 data-selected:bg-accent/50 data-selected:text-muted-foreground data-selected:opacity-30",u.date.compare(gi(xi()))===0&&!u.isSelected&&"bg-accent text-accent-foreground",u.isUnavailable&&"cursor-default text-destructive ",u.isInvalid&&"bg-destructive text-destructive-foreground data-focused:bg-destructive data-hovered:bg-destructive data-focused:text-destructive-foreground data-hovered:text-destructive-foreground",d),e[3]=n,e[4]=i);let l;e[5]!==a||e[6]!==i?(l=wa(a,i),e[5]=a,e[6]=i,e[7]=l):l=e[7];let o;return e[8]!==r||e[9]!==l?(o=(0,s.jsx)(A2,{className:l,...r}),e[8]=r,e[9]=l,e[10]=o):o=e[10],o},Ik=t=>{let e=(0,Ia.c)(14),a,r,n;e[0]===t?(a=e[1],r=e[2],n=e[3]):({errorMessage:r,className:a,...n}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n);let i;e[4]===a?i=e[5]:(i=wa(a,Mk),e[4]=a,e[5]=i);let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(xl,{}),e[6]=l):l=e[6];let o;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(vl,{children:[(0,s.jsx)(yl,{children:Fk}),(0,s.jsx)(wl,{children:Vk})]}),e[7]=o):o=e[7];let d;e[8]===r?d=e[9]:(d=r&&(0,s.jsx)(ql,{className:"text-sm text-destructive",slot:"errorMessage",children:r}),e[8]=r,e[9]=d);let u;return e[10]!==n||e[11]!==i||e[12]!==d?(u=(0,s.jsxs)(S2,{className:i,...n,children:[l,o,d]}),e[10]=n,e[11]=i,e[12]=d,e[13]=u):u=e[13],u},Pk=t=>{let e=(0,Ia.c)(14),a,r,n;e[0]===t?(a=e[1],r=e[2],n=e[3]):({errorMessage:r,className:a,...n}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n);let i;e[4]===a?i=e[5]:(i=wa(a,zk),e[4]=a,e[5]=i);let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(xl,{}),e[6]=l):l=e[6];let o;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(vl,{children:[(0,s.jsx)(yl,{children:Ok}),(0,s.jsx)(wl,{children:$k})]}),e[7]=o):o=e[7];let d;e[8]===r?d=e[9]:(d=r&&(0,s.jsx)(ql,{slot:"errorMessage",className:"text-sm text-destructive",children:r}),e[8]=r,e[9]=d);let u;return e[10]!==n||e[11]!==i||e[12]!==d?(u=(0,s.jsxs)(N2,{className:i,...n,children:[l,o,d]}),e[10]=n,e[11]=i,e[12]=d,e[13]=u):u=e[13],u};function Mk(t){return U("w-fit",t)}function Fk(t){return(0,s.jsx)(bl,{children:t})}function Vk(t){return(0,s.jsx)(Dl,{date:t})}function zk(t){return U("w-fit",t)}function Ok(t){return(0,s.jsx)(bl,{children:t})}function $k(t){return(0,s.jsx)(Dl,{date:t})}var qx=J(),Lk=t=>{let e=(0,qx.c)(8),a,r;e[0]===t?(a=e[1],r=e[2]):({className:a,...r}=t,e[0]=t,e[1]=a,e[2]=r);let n;e[3]===a?n=e[4]:(n=wa(a,Bk),e[3]=a,e[4]=n);let i;return e[5]!==r||e[6]!==n?(i=(0,s.jsx)(H2,{className:n,...r}),e[5]=r,e[6]=n,e[7]=i):i=e[7],i},Qd=t=>{let e=(0,qx.c)(12),a,r,n;e[0]===t?(a=e[1],r=e[2],n=e[3]):({className:a,variant:n,...r}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n);let i;e[4]===n?i=e[5]:(i=d=>U(r6({variant:n}),"text-sm",d),e[4]=n,e[5]=i);let l;e[6]!==a||e[7]!==i?(l=wa(a,i),e[6]=a,e[7]=i,e[8]=l):l=e[8];let o;return e[9]!==r||e[10]!==l?(o=(0,s.jsx)(L2,{className:l,...r,children:Hk}),e[9]=r,e[10]=l,e[11]=o):o=e[11],o};function Bk(t){return U("type-literal:px-0 inline rounded p-0.5 caret-transparent outline-solid outline-0","data-placeholder:text-muted-foreground","data-disabled:cursor-not-allowed data-disabled:opacity-50","data-focused:bg-accent data-focused:text-accent-foreground focus:bg-accent focus:text-accent-foreground","data-invalid:data-focused:bg-destructive data-invalid:data-focused:data-placeholder:text-destructive-foreground data-invalid:data-focused:text-destructive-foreground data-invalid:data-placeholder:text-destructive data-invalid:text-destructive",t)}function Hk(t){return(0,s.jsx)(Lk,{segment:t})}var Jd=J(),Yx=t=>{let e=(0,Jd.c)(14),a,r,n;e[0]===t?(a=e[1],r=e[2],n=e[3]):({className:a,popoverClassName:r,...n}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n);let i;e[4]===r?i=e[5]:(i=wa(r,Uk),e[4]=r,e[5]=i);let l;e[6]===a?l=e[7]:(l=U("flex w-full flex-col space-y-4 outline-hidden sm:flex-row sm:space-x-4 sm:space-y-0",a),e[6]=a,e[7]=l);let o;e[8]!==n||e[9]!==l?(o=(0,s.jsx)(F2,{className:l,...n}),e[8]=n,e[9]=l,e[10]=o):o=e[10];let d;return e[11]!==i||e[12]!==o?(d=(0,s.jsx)(Rk,{className:i,children:o}),e[11]=i,e[12]=o,e[13]=d):d=e[13],d},Gx=t=>{let e=(0,Jd.c)(26),a,r,n,i,l;e[0]===t?(a=e[1],r=e[2],n=e[3],i=e[4],l=e[5]):({label:i,description:r,errorMessage:n,className:a,...l}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n,e[4]=i,e[5]=l);let[o,d]=(0,x.useState)(!1),u;e[6]===a?u=e[7]:(u=wa(a,Kk),e[6]=a,e[7]=u);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=D=>{d(D)},e[8]=c):c=e[8];let p;e[9]===i?p=e[10]:(p=i&&(0,s.jsx)(ty,{children:i}),e[9]=i,e[10]=p);let m;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Qd,{"aria-label":"date input",className:"flex-1",variant:"ghost"}),e[11]=m):m=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsxs)(ay,{children:[m,(0,s.jsx)(Zl,{onPressChange:()=>{d(!0)},className:U(Oa({variant:"text",size:"icon"}),"ml-1 size-6 data-focus-visible:ring-offset-0"),children:(0,s.jsx)(vu,{"aria-hidden":!0,className:"size-4"})})]}),e[12]=h):h=e[12];let g;e[13]===r?g=e[14]:(g=r&&(0,s.jsx)(ql,{className:"text-sm text-muted-foreground",slot:"description",children:r}),e[13]=r,e[14]=g);let f;e[15]===n?f=e[16]:(f=(0,s.jsx)(ry,{children:n}),e[15]=n,e[16]=f);let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(xl,{}),e[17]=v):v=e[17];let b;e[18]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(Yx,{children:(0,s.jsxs)(Ik,{children:[v,(0,s.jsxs)(vl,{children:[(0,s.jsx)(yl,{children:Zk}),(0,s.jsx)(wl,{children:qk})]})]})}),e[18]=b):b=e[18];let w;return e[19]!==o||e[20]!==l||e[21]!==u||e[22]!==p||e[23]!==g||e[24]!==f?(w=(0,s.jsxs)(q2,{isOpen:o,className:u,onOpenChange:c,...l,children:[p,h,g,f,b]}),e[19]=o,e[20]=l,e[21]=u,e[22]=p,e[23]=g,e[24]=f,e[25]=w):w=e[25],w},Wk=t=>{let e=(0,Jd.c)(28),a,r,n,i,l;e[0]===t?(a=e[1],r=e[2],n=e[3],i=e[4],l=e[5]):({label:i,description:r,errorMessage:n,className:a,...l}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n,e[4]=i,e[5]=l);let[o,d]=(0,x.useState)(!1),u;e[6]===a?u=e[7]:(u=wa(a,Yk),e[6]=a,e[7]=u);let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=k=>{d(k)},e[8]=c):c=e[8];let p;e[9]===i?p=e[10]:(p=i&&(0,s.jsx)(ty,{children:i}),e[9]=i,e[10]=p);let m,h,g;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Qd,{variant:"ghost",slot:"start"}),h=(0,s.jsx)("span",{"aria-hidden":!0,className:"px-2 text-sm text-muted-foreground",children:"-"}),g=(0,s.jsx)(Qd,{className:"flex-1",variant:"ghost",slot:"end"}),e[11]=m,e[12]=h,e[13]=g):(m=e[11],h=e[12],g=e[13]);let f;e[14]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)(ay,{children:[m,h,g,(0,s.jsx)(Zl,{onPressChange:()=>{d(!0)},className:U(Oa({variant:"text",size:"icon"}),"ml-1 size-6 data-focus-visible:ring-offset-0"),children:(0,s.jsx)(vu,{"aria-hidden":!0,className:"size-4"})})]}),e[14]=f):f=e[14];let v;e[15]===r?v=e[16]:(v=r&&(0,s.jsx)(ql,{className:"text-sm text-muted-foreground",slot:"description",children:r}),e[15]=r,e[16]=v);let b;e[17]===n?b=e[18]:(b=(0,s.jsx)(ry,{children:n}),e[17]=n,e[18]=b);let w;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(xl,{}),e[19]=w):w=e[19];let D;e[20]===Symbol.for("react.memo_cache_sentinel")?(D=(0,s.jsx)(Yx,{children:(0,s.jsxs)(Pk,{children:[w,(0,s.jsxs)(vl,{children:[(0,s.jsx)(yl,{children:Gk}),(0,s.jsx)(wl,{children:Qk})]})]})}),e[20]=D):D=e[20];let j;return e[21]!==o||e[22]!==l||e[23]!==u||e[24]!==p||e[25]!==v||e[26]!==b?(j=(0,s.jsxs)(Y2,{isOpen:o,className:u,onOpenChange:c,...l,children:[p,f,v,b,D]}),e[21]=o,e[22]=l,e[23]=u,e[24]=p,e[25]=v,e[26]=b,e[27]=j):j=e[27],j};function Uk(t){return U("w-auto p-3",t)}function Kk(t){return U("group flex flex-col gap-2",t)}function Zk(t){return(0,s.jsx)(bl,{children:t})}function qk(t){return(0,s.jsx)(Dl,{date:t})}function Yk(t){return U("group flex flex-col gap-2",t)}function Gk(t){return(0,s.jsx)(bl,{children:t})}function Qk(t){return(0,s.jsx)(Dl,{date:t})}var Jk=J(),Xk=class{constructor(){q(this,"tagName","marimo-date");q(this,"validator",$({initialValue:M(),label:M().nullable(),start:M(),stop:M(),step:M().optional(),fullWidth:W().default(!1),disabled:W().optional()}))}render(t){return(0,s.jsx)(eS,{...t.data,value:t.value,setValue:t.setValue,disabled:t.data.disabled})}},eS=t=>{let e=(0,Jk.c)(19),a;e[0]===t?a=e[1]:(a=m=>{if(!m)return;let h=m.toString();t.setValue(h)},e[0]=t,e[1]=a);let r=a,n=t.label,i=t.fullWidth,l;e[2]===t.value?l=e[3]:(l=Sa(t.value),e[2]=t.value,e[3]=l);let o=t.label??"date picker",d;e[4]===t.start?d=e[5]:(d=Sa(t.start),e[4]=t.start,e[5]=d);let u;e[6]===t.stop?u=e[7]:(u=Sa(t.stop),e[6]=t.stop,e[7]=u);let c;e[8]!==r||e[9]!==t.disabled||e[10]!==l||e[11]!==o||e[12]!==d||e[13]!==u?(c=(0,s.jsx)(Gx,{granularity:"day",value:l,onChange:r,"aria-label":o,minValue:d,maxValue:u,isDisabled:t.disabled}),e[8]=r,e[9]=t.disabled,e[10]=l,e[11]=o,e[12]=d,e[13]=u,e[14]=c):c=e[14];let p;return e[15]!==t.fullWidth||e[16]!==t.label||e[17]!==c?(p=(0,s.jsx)(Le,{label:n,fullWidth:i,children:c}),e[15]=t.fullWidth,e[16]=t.label,e[17]=c,e[18]=p):p=e[18],p},tS=J(),aS=class{constructor(){q(this,"tagName","marimo-date-range");q(this,"validator",$({initialValue:Pa([M(),M()]),label:M().nullable(),start:M(),stop:M(),step:M().optional(),fullWidth:W().default(!1),disabled:W().optional()}))}render(t){return(0,s.jsx)(rS,{...t.data,value:t.value,setValue:t.setValue})}},rS=t=>{let e=(0,tS.c)(24),a;e[0]===t?a=e[1]:(a=g=>{if(!g)return;let{start:f,end:v}=g,b=[f.toString(),v.toString()];t.setValue(b)},e[0]=t,e[1]=a);let r=a,n=t.label,i=t.fullWidth,l;e[2]===t.value[0]?l=e[3]:(l=Sa(t.value[0]),e[2]=t.value[0],e[3]=l);let o;e[4]===t.value[1]?o=e[5]:(o=Sa(t.value[1]),e[4]=t.value[1],e[5]=o);let d;e[6]!==l||e[7]!==o?(d={start:l,end:o},e[6]=l,e[7]=o,e[8]=d):d=e[8];let u=t.label??"date range picker",c;e[9]===t.start?c=e[10]:(c=Sa(t.start),e[9]=t.start,e[10]=c);let p;e[11]===t.stop?p=e[12]:(p=Sa(t.stop),e[11]=t.stop,e[12]=p);let m;e[13]!==r||e[14]!==t.disabled||e[15]!==d||e[16]!==u||e[17]!==c||e[18]!==p?(m=(0,s.jsx)(Wk,{granularity:"day",value:d,onChange:r,"aria-label":u,minValue:c,maxValue:p,isDisabled:t.disabled}),e[13]=r,e[14]=t.disabled,e[15]=d,e[16]=u,e[17]=c,e[18]=p,e[19]=m):m=e[19];let h;return e[20]!==t.fullWidth||e[21]!==t.label||e[22]!==m?(h=(0,s.jsx)(Le,{label:n,fullWidth:i,children:m}),e[20]=t.fullWidth,e[21]=t.label,e[22]=m,e[23]=h):h=e[23],h},nS=J(),iS=class{constructor(){q(this,"tagName","marimo-datetime");q(this,"validator",$({initialValue:M(),label:M().nullable(),start:M(),stop:M(),step:M().optional(),precision:ye(["hour","minute","second"]).default("minute"),fullWidth:W().default(!1),disabled:W().optional()}))}render(t){return(0,s.jsx)(lS,{...t.data,value:t.value,setValue:t.setValue})}},lS=t=>{let e=(0,nS.c)(20),a;e[0]===t?a=e[1]:(a=g=>{if(!g)return;let f=g.toString();t.setValue(f)},e[0]=t,e[1]=a);let r=a,n;e[2]===t.value?n=e[3]:(n=t.value?wi(t.value):void 0,e[2]=t.value,e[3]=n);let i=n,l=t.label,o=t.fullWidth,d=t.precision,u=t.label??"date time picker",c;e[4]===t.start?c=e[5]:(c=wi(t.start),e[4]=t.start,e[5]=c);let p;e[6]===t.stop?p=e[7]:(p=wi(t.stop),e[6]=t.stop,e[7]=p);let m;e[8]!==r||e[9]!==i||e[10]!==t.disabled||e[11]!==t.precision||e[12]!==u||e[13]!==c||e[14]!==p?(m=(0,s.jsx)(Gx,{granularity:d,value:i,onChange:r,"aria-label":u,minValue:c,maxValue:p,isDisabled:t.disabled}),e[8]=r,e[9]=i,e[10]=t.disabled,e[11]=t.precision,e[12]=u,e[13]=c,e[14]=p,e[15]=m):m=e[15];let h;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==m?(h=(0,s.jsx)(Le,{label:l,fullWidth:o,children:m}),e[16]=t.fullWidth,e[17]=t.label,e[18]=m,e[19]=h):h=e[19],h},oS=J(),sS=class{constructor(){q(this,"tagName","marimo-dict");q(this,"validator",$({label:M().nullable(),elementIds:ft(M(),M())}))}render(t){return(0,s.jsx)(dS,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},dS=t=>{let e=(0,oS.c)(4),{elementIds:a,setValue:r,children:n}=t,i,l;return e[0]!==a||e[1]!==r?(i=()=>{let o=d=>{let u=d.detail.element;if(u===null||!(u instanceof Node))return;let c=Os(u);if(c===null)return;let p=a[c];p!==void 0&&r(m=>{let h=m?{...m}:{};return h[p]=d.detail.value,h})};return document.addEventListener(Lr.TYPE,o),()=>{document.removeEventListener(Lr.TYPE,o)}},l=[a,r],e[0]=a,e[1]=r,e[2]=i,e[3]=l):(i=e[2],l=e[3]),(0,x.useEffect)(i,l),n},uS=J(),On="__none__";const cS=t=>{let e=(0,uS.c)(25),{options:a,value:r,setValue:n,label:i,allowSelectNone:l,fullWidth:o}=t,d=(0,x.useId)(),[u,c]=(0,x.useState)(""),p;e:{if(!u){p=a;break e}let N;if(e[0]!==a||e[1]!==u){let S;e[3]===u?S=e[4]:(S=y=>jx(y,u)===1,e[3]=u,e[4]=S),N=a.filter(S),e[0]=a,e[1]=u,e[2]=N}else N=e[2];p=N}let m=p,h;e[5]===n?h=e[6]:(h=N=>{N!=null&&n(N===On?null:N)},e[5]=n,e[6]=h);let g=h,f;e[7]!==l||e[8]!==m?(f=()=>{let N=l?(0,s.jsx)(ja,{value:On,children:"--"},On):null;return m.length>200?(0,s.jsx)(mx,{style:{height:"200px"},totalCount:m.length,overscan:50,itemContent:S=>{let y=m[S],C=(0,s.jsx)(ja,{value:y,children:y},y);return S===0?(0,s.jsxs)(s.Fragment,{children:[N,C]}):C}}):(0,s.jsxs)(s.Fragment,{children:[N,m.map(mS)]})},e[7]=l,e[8]=m,e[9]=f):f=e[9];let v=f,b;e[10]===o?b=e[11]:(b=U({"w-full":o}),e[10]=o,e[11]=b);let w=r??On,D;e[12]===v?D=e[13]:(D=v(),e[12]=v,e[13]=D);let j;e[14]!==g||e[15]!==u||e[16]!==b||e[17]!==w||e[18]!==D?(j=(0,s.jsx)(co,{displayValue:pS,placeholder:"Select...",multiple:!1,className:b,value:w,onValueChange:g,shouldFilter:!1,search:u,onSearchChange:c,"data-testid":"marimo-plugin-searchable-dropdown",children:D}),e[14]=g,e[15]=u,e[16]=b,e[17]=w,e[18]=D,e[19]=j):j=e[19];let k;return e[20]!==o||e[21]!==d||e[22]!==i||e[23]!==j?(k=(0,s.jsx)(Le,{label:i,id:d,fullWidth:o,children:j}),e[20]=o,e[21]=d,e[22]=i,e[23]=j,e[24]=k):k=e[24],k};function mS(t){return(0,s.jsx)(ja,{value:t,children:t},t)}function pS(t){return t===On?"--":t}var hS=J(),fS=class{constructor(){q(this,"tagName","marimo-dropdown");q(this,"validator",$({initialValue:ee(M()),label:M().nullable(),options:ee(M()),allowSelectNone:W(),fullWidth:W().default(!1),searchable:W().default(!1)}))}render(t){if(t.data.searchable){let e=t.value.length>0?t.value[0]:null,a=r=>t.setValue(r?[r]:[]);return(0,s.jsx)(cS,{...t.data,value:e,setValue:a})}return(0,s.jsx)(gS,{...t.data,value:t.value,setValue:t.setValue})}},Xd="--",gS=t=>{let e=(0,hS.c)(24),{label:a,options:r,value:n,setValue:i,allowSelectNone:l,fullWidth:o}=t,d=(0,x.useId)(),u=l?Xd:r[0],c=n.length===0?u:n[0],p;e[0]===i?p=e[1]:(p=b=>{let w=b.target.value;i(w===Xd?[]:[w])},e[0]=i,e[1]=p);let m;e[2]===o?m=e[3]:(m=U({"w-full":o}),e[2]=o,e[3]=m);let h;e[4]!==l||e[5]!==n.length?(h=l?(0,s.jsx)("option",{value:Xd,selected:n.length===0,children:"--"}):null,e[4]=l,e[5]=n.length,e[6]=h):h=e[6];let g;if(e[7]!==r||e[8]!==n){let b;e[10]===n?b=e[11]:(b=w=>(0,s.jsx)("option",{value:w,selected:n.includes(w),children:w},w),e[10]=n,e[11]=b),g=r.map(b),e[7]=r,e[8]=n,e[9]=g}else g=e[9];let f;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==m||e[16]!==h||e[17]!==g?(f=(0,s.jsxs)(Eu,{"data-testid":"marimo-plugin-dropdown",onChange:p,className:m,value:c,id:d,children:[h,g]}),e[12]=d,e[13]=c,e[14]=p,e[15]=m,e[16]=h,e[17]=g,e[18]=f):f=e[18];let v;return e[19]!==o||e[20]!==d||e[21]!==a||e[22]!==f?(v=(0,s.jsx)(Le,{label:a,id:d,fullWidth:o,children:f}),e[19]=o,e[20]=d,e[21]=a,e[22]=f,e[23]=v):v=e[23],v},xS=x.lazy(()=>yt(()=>import("./ConnectedDataExplorerComponent-KZlvSITY.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([338,137,14,138,139,140,141,29,339,40,30,41,42,43,10,11,61,62,21,129,166,331,6,7,8,9,12,13,15,16,17,81,82,18,19,20,22,23,26,27,28,98,99,79,96,33,45,25,31,32,48,164,87,88,86,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355]),import.meta.url));const vS=Ft("marimo-data-explorer").withData($({label:M().nullish(),data:M()})).renderer(t=>(0,s.jsx)(Nt,{children:(0,s.jsx)(xS,{...t.data,value:t.value,setValue:t.setValue})})),jl=(0,x.createContext)(new Map),Qx=(0,x.createContext)(""),eu=(0,x.createContext)(()=>Promise.resolve({values:[],too_many_values:!1}));var yS=J();const Jx=t=>{let e=(0,yS.c)(4),{type:a}=t,r;e[0]===a?r=e[1]:(r=()=>a.startsWith("int")||a.startsWith("float")||a.startsWith("uint")||a.startsWith("number")||a.startsWith("complex")?(0,s.jsx)(hr,{size:14}):a.startsWith("object")||a.startsWith("string")?(0,s.jsx)(KT,{size:14}):a.startsWith("date")||a.startsWith("time")?(0,s.jsx)(vu,{size:14}):a.startsWith("bool")?(0,s.jsx)(YE,{size:14}):(0,s.jsx)(TE,{size:14}),e[0]=a,e[1]=r);let n=r,i;return e[2]===n?i=e[3]:(i=(0,s.jsx)("div",{className:"border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",children:n()}),e[2]=n,e[3]=i),i};var tu=J();const Xx=()=>({isMatch:t=>{let{special:e}=oe.parse(t.description||"");return e==="column_id"},Component:({schema:t,form:e,path:a})=>{let r=x.use(jl),{label:n,description:i}=oe.parse(t.description);return(0,s.jsx)(at,{control:e.control,name:a,render:({field:l})=>(0,s.jsxs)(it,{children:[(0,s.jsx)(ct,{children:n}),(0,s.jsx)(Gn,{children:i}),(0,s.jsx)(dt,{children:(0,s.jsxs)(Ba,{"data-testid":"marimo-plugin-data-frames-column-select",value:l.value==null?l.value:JSON.stringify(l.value),onValueChange:o=>{let d=JSON.parse(o);l.onChange(d)},children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(dr,{className:"min-w-[180px]",children:(0,s.jsx)($a,{placeholder:"--"})}),(0,s.jsx)(CS,{})]}),(0,s.jsx)(La,{children:(0,s.jsxs)(Wr,{children:[[...r.entries()].map(([o,d])=>(0,s.jsx)(Pt,{value:JSON.stringify(o),children:(0,s.jsxs)("span",{className:"flex items-center gap-2 flex-1",children:[(0,s.jsx)(Jx,{type:d}),(0,s.jsx)("span",{className:"flex-1",children:o}),(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-semibold",children:["(",d,")"]})]})},o)),r.size===0&&(0,s.jsx)(Pt,{disabled:!0,value:"--",children:"No columns"})]})})]})})]})})}}),bS=()=>({isMatch:t=>{if(t instanceof gu){let e=t.element,a=e instanceof UE?e.description:"",{special:r}=oe.parse(a||"");return r==="column_id"}return!1},Component:({schema:t,form:e,path:a})=>{let{label:r}=oe.parse(t.description);return(0,s.jsx)(wS,{schema:t,form:e,path:a,itemLabel:r})}});var wS=t=>{let e=(0,tu.c)(11),{schema:a,form:r,path:n,itemLabel:i}=t,l=x.use(jl),o;e[0]===a.description?o=e[1]:(o=oe.parse(a.description),e[0]=a.description,e[1]=o);let{description:d}=o,u=i?`Select ${i.toLowerCase()}`:void 0,c;e[2]!==l||e[3]!==d||e[4]!==i||e[5]!==u?(c=m=>{let{field:h}=m,g=Qv(h.value);return(0,s.jsxs)(it,{children:[(0,s.jsx)(ct,{children:i}),(0,s.jsx)(Gn,{children:d}),(0,s.jsx)(dt,{children:(0,s.jsx)(co,{className:"min-w-[180px]",placeholder:u,displayValue:String,multiple:!0,chips:!0,keepPopoverOpenOnSelect:!0,value:g,onValueChange:f=>{h.onChange(f)},children:[...l.entries()].map(ES)})}),(0,s.jsx)(cr,{})]})},e[2]=l,e[3]=d,e[4]=i,e[5]=u,e[6]=c):c=e[6];let p;return e[7]!==r.control||e[8]!==n||e[9]!==c?(p=(0,s.jsx)(at,{control:r.control,name:n,render:c}),e[7]=r.control,e[8]=n,e[9]=c,e[10]=p):p=e[10],p};const DS=()=>({isMatch:t=>{if(t instanceof gu){let{special:e}=oe.parse(t.description||"");return e==="column_values"}return!1},Component:({schema:t,form:e,path:a})=>{let{label:r,description:n,placeholder:i}=oe.parse(t.description),l=x.use(Qx),o=x.use(eu),{data:d,isPending:u}=Et(()=>o({column:l}),[l]),c=(d==null?void 0:d.values)||[];if(c.length===0&&!u)return(0,s.jsx)(at,{control:e.control,name:a,render:({field:m})=>(0,s.jsxs)(it,{children:[(0,s.jsx)(ct,{children:r}),(0,s.jsx)(Gn,{children:n}),(0,s.jsx)(dt,{children:(0,s.jsx)(zu,{...m,value:m.value,onValueChange:m.onChange,className:"my-0",placeholder:i})}),(0,s.jsx)(cr,{})]})});let p=c.map(String);return(0,s.jsx)(at,{control:e.control,name:a,render:({field:m})=>(0,s.jsxs)(it,{children:[(0,s.jsx)(ct,{className:"whitespace-pre",children:r}),(0,s.jsx)(Gn,{children:n}),(0,s.jsx)(dt,{children:(0,s.jsx)(co,{className:"min-w-[180px]",placeholder:i,multiple:!1,displayValue:h=>h,value:Array.isArray(m.value)?m.value[0]:m.value,onValueChange:m.onChange,children:p.map(h=>(0,s.jsx)(ja,{value:h,children:h},h))})}),(0,s.jsx)(cr,{})]})})}}),jS=()=>({isMatch:t=>{let{special:e}=oe.parse(t.description||"");return e==="column_values"&&t instanceof gu},Component:({schema:t,form:e,path:a})=>{let r=x.use(Qx),n=x.use(eu),{data:i,isPending:l}=Et(()=>n({column:r}),[r]),o=(i==null?void 0:i.values)||[];if(o.length===0&&!l)return(0,s.jsx)(at,{control:e.control,name:a,render:({field:u})=>(0,s.jsxs)(it,{children:[(0,s.jsx)(ct,{children:t.description}),(0,s.jsx)(dt,{children:(0,s.jsx)(JA,{...u})}),(0,s.jsx)(cr,{})]})});let d=o.map(String);return(0,s.jsx)(at,{control:e.control,name:a,render:({field:u})=>{let c=Qv(u.value);return(0,s.jsxs)(it,{children:[(0,s.jsx)(ct,{children:t.description}),(0,s.jsx)(dt,{children:(0,s.jsx)(t6,{...u,value:c,options:d})}),(0,s.jsx)(cr,{})]})}})}});var CS=t=>{let e=(0,tu.c)(4),{className:a}=t,r;e[0]===a?r=e[1]:(r=U("text-destructive text-xs w-[16px]",a),e[0]=a,e[1]=r);let n;return e[2]===r?n=e[3]:(n=(0,s.jsx)(AR,{className:r}),e[2]=r,e[3]=n),n};const kS=()=>({isMatch:t=>{if(t instanceof BE){let{special:e}=oe.parse(t.description||"");return e==="column_filter"}return!1},Component:({schema:t,form:e,path:a})=>(0,s.jsx)(SS,{schema:t,form:e,path:a})});var SS=t=>{var w;let e=(0,tu.c)(25),{path:a,form:r,schema:n}=t,i;e[0]===n.description?i=e[1]:(i=oe.parse(n.description),e[0]=n.description,e[1]=i);let{description:l}=i,o=x.use(jl),d=(w=Va.entries(n.shape).find(_S))==null?void 0:w[1],u;e[2]===a?u=e[3]:(u={name:a},e[2]=a,e[3]=u);let{column_id:c,operator:p}=na(u),m=Xx(),h=[Xv(d,r,`${a}.column_id`,[m])],g,f;if(e[4]!==c||e[5]!==o||e[6]!==r||e[7]!==a?(g=()=>{let D=Wx(o.get(c)),j=r.getValues(`${a}.operator`);D.includes(j)||(r.setValue(`${a}.operator`,D[0]),r.setValue(`${a}.value`,void 0))},f=[c,o,r,a],e[4]=c,e[5]=o,e[6]=r,e[7]=a,e[8]=g,e[9]=f):(g=e[8],f=e[9]),(0,x.useEffect)(g,f),c!=null){let D;e[10]!==c||e[11]!==o?(D=Wx(o.get(c)),e[10]=c,e[11]=o,e[12]=D):D=e[12];let j=D;if(j.length===0){let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k=(0,s.jsxs)("div",{className:"text-muted-foreground text-xs font-semibold",children:[(0,s.jsx)(ct,{className:"whitespace-pre",children:" "}),(0,s.jsx)("p",{children:"This column type does not support filtering."})]},"no_operator"),e[13]=k):k=e[13],h.push(k)}else{let k=`${a}.operator`,N;e[14]!==l||e[15]!==j?(N=y=>{let{field:C}=y;return(0,s.jsxs)(it,{children:[(0,s.jsx)(ct,{className:"whitespace-pre",children:" "}),(0,s.jsx)(Gn,{children:l}),(0,s.jsx)(dt,{children:(0,s.jsxs)(Ba,{"data-testid":"marimo-plugin-data-frames-filter-operator-select",value:C.value,onValueChange:C.onChange,children:[(0,s.jsx)(dr,{className:"min-w-[140px]",children:(0,s.jsx)($a,{placeholder:"--"})}),(0,s.jsx)(La,{children:(0,s.jsx)(Wr,{children:j.map(TS)})})]})}),(0,s.jsx)(cr,{})]})},e[14]=l,e[15]=j,e[16]=N):N=e[16];let S;e[17]!==r.control||e[18]!==k||e[19]!==N?(S=(0,s.jsx)(at,{control:r.control,name:k,render:N},"operator"),e[17]=r.control,e[18]=k,e[19]=N,e[20]=S):S=e[20],h.push(S)}}if(p!=null){let D=uk(o.get(c),p);D.length===1&&h.push((0,s.jsx)(x.Fragment,{children:Xv(D[0],r,`${a}.value`,[])},"value"))}let v=()=>(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("div",{className:U("flex flex-row gap-2"),children:h}),(0,s.jsx)(cr,{})]}),b;return e[21]!==r.control||e[22]!==a||e[23]!==v?(b=(0,s.jsx)(at,{control:r.control,name:a,render:v}),e[21]=r.control,e[22]=a,e[23]=v,e[24]=b):b=e[24],b};const NS=[Xx(),bS(),DS(),jS(),kS()];function ES(t){let[e,a]=t;return(0,s.jsx)(ja,{value:e,children:(0,s.jsxs)("span",{className:"flex items-center gap-2 flex-1",children:[(0,s.jsx)(Jx,{type:a}),(0,s.jsx)("span",{className:"flex-1",children:e}),(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-semibold",children:["(",a,")"]})]})},e)}function _S(t){let[e]=t;return e==="column_id"}function TS(t){return(0,s.jsx)(Pt,{value:t,children:mu.startCase(t)},t)}function RS(t,e,a=0){if(!e||e.length===0)return t;let r=e[Math.min(a,e.length-1)];if(!r)return t;let n=new Map;for(let[i,[l]]of r)n.set(i,l);return n}var e1=J();const AS=({initialValue:t,columns:e,onChange:a,onInvalidChange:r,getColumnValues:n,columnTypesPerStep:i,lazy:l,ref:o})=>{var y;let d=jv({resolver:Cv(vk),defaultValues:t,mode:"onChange",reValidateMode:"onChange"}),{handleSubmit:u,watch:c,control:p,formState:m}=d,h=$e(C=>{a(C)}),g=$e(C=>{r(C)}),f=$e(()=>{u(C=>{h(C),l&&d.reset(C,{keepValues:!0})},()=>{g(d.getValues())})()});(0,x.useImperativeHandle)(o,()=>({submit:f}),[]),(0,x.useEffect)(()=>{if(l)return;let C=c(()=>{f()});return()=>C.unsubscribe()},[c,f,l]);let[v,b]=x.useState(t.transforms.length>0?0:void 0),w=IR({control:p,name:"transforms"}),D=d.watch("transforms"),j=v===void 0||(y=D[v])==null?void 0:y.type,k=qd.options.find(C=>ey(C).value===j),N=(0,x.useMemo)(()=>RS(e,i,v),[e,D,v]),S=C=>{let _=e6(C),E=w.fields.length;w.append(_),b(E)};return(0,s.jsx)(jl,{value:N,children:(0,s.jsx)(eu,{value:n,children:(0,s.jsxs)("form",{onSubmit:C=>C.preventDefault(),onKeyDown:l?C=>C.key==="Enter"&&C.preventDefault():void 0,className:"relative flex flex-row max-h-[400px] overflow-hidden bg-background",children:[(0,s.jsx)(IS,{items:d.watch("transforms"),selected:v,onSelect:C=>{b(C)},onDelete:C=>{w.remove(C);let _=C-1;b(Math.max(_,0))},onAdd:S}),(0,s.jsxs)("div",{className:"flex flex-col flex-1 p-4 overflow-auto min-h-[200px] border-l",children:[v!==void 0&&k&&(0,s.jsx)(a6,{form:d,schema:k,path:`transforms.${v}`,renderers:NS},`transforms.${v}`),(v===void 0||!k)&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center grow gap-3",children:[(0,s.jsx)(ac,{className:"w-8 h-8 text-muted-foreground"}),(0,s.jsx)(t1,{onAdd:S,children:(0,s.jsx)(Ce,{"data-testid":"marimo-plugin-data-frames-add-transform",variant:"text",size:"xs",children:(0,s.jsx)("div",{className:"text-sm",children:"Select a transform to begin"})})})]})]}),l&&(0,s.jsxs)("div",{className:"absolute bottom-0 right-0 border-l border-t rounded-tl-sm flex flex-row items-center gap-1 p-1.5 pr-1",children:[(0,s.jsx)(Ce,{"data-testid":"marimo-plugin-data-frames-apply",variant:m.isDirty?"warn":"outline",size:"xs",onClick:f,className:"h-6",children:"Apply"}),(0,s.jsx)(Mt,{delayDuration:100,content:(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 text-xs text-muted-foreground max-w-96 text-pretty",children:[(0,s.jsxs)("p",{children:["This dataframe is marked lazy to improve performance."," ",(0,s.jsxs)("span",{children:["Click"," ",(0,s.jsx)("span",{className:"px-1 mr-1 rounded border border-border",children:"Apply"}),"to apply the transforms."]})]}),(0,s.jsxs)("p",{children:["Pass"," ",(0,s.jsx)("code",{className:"bg-muted px-1 py-0.5 rounded-sm",children:"lazy=False"})," ","to"," ",(0,s.jsx)("code",{className:"bg-muted px-1 py-0.5 rounded-sm",children:"mo.ui.dataframe"})," ","to automatically apply transformations."]})]}),children:(0,s.jsx)(Pl,{className:"w-3 h-3 text-muted-foreground hover:text-foreground cursor-help"})})]})]})})})},IS=t=>{let e=(0,e1.c)(17),{items:a,selected:r,onAdd:n,onSelect:i,onDelete:l}=t,o;if(e[0]!==a||e[1]!==l||e[2]!==i||e[3]!==r){let m;e[5]!==l||e[6]!==i||e[7]!==r?(m=(h,g)=>(0,s.jsxs)("div",{onClick:()=>{i(g)},className:U("flex flex-row min-h-[40px] items-center px-2 cursor-pointer hover:bg-accent/50 text-sm overflow-hidden hover-actions-parent border border-muted border-l-2 border-l-transparent",{"border-l-primary bg-accent text-accent-foreground":r===g}),children:[(0,s.jsx)("div",{className:"grow text-ellipsis",children:mu.startCase(h.type)}),(0,s.jsx)(Sv,{className:"w-3 h-3 hover-action text-muted-foreground hover:text-destructive",onClick:f=>{l(g),f.stopPropagation()}})]},`${JSON.stringify(h)}-${g}`),e[5]=l,e[6]=i,e[7]=r,e[8]=m):m=e[8],o=a.map(m),e[0]=a,e[1]=l,e[2]=i,e[3]=r,e[4]=o}else o=e[4];let d;e[9]===o?d=e[10]:(d=(0,s.jsx)("div",{className:"flex flex-col overflow-y-auto grow",children:o}),e[9]=o,e[10]=d);let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(Ce,{"data-testid":"marimo-plugin-data-frames-add-transform",variant:"text",className:"w-full rounded-none m-0 hover:text-accent-foreground",size:"xs",children:[(0,s.jsx)(hv,{className:"w-3 h-3 mr-1"}),"Add"]}),e[11]=u):u=e[11];let c;e[12]===n?c=e[13]:(c=(0,s.jsx)("div",{className:"flex flex-row shrink-0",children:(0,s.jsx)(t1,{onAdd:n,children:u})}),e[12]=n,e[13]=c);let p;return e[14]!==d||e[15]!==c?(p=(0,s.jsxs)("div",{className:"flex flex-col overflow-y-hidden w-[180px] shadow-xs h-full",children:[d,c]}),e[14]=d,e[15]=c,e[16]=p):p=e[16],p};var t1=t=>{let e=(0,e1.c)(12),{onAdd:a,children:r}=t,n;e[0]===r?n=e[1]:(n=(0,s.jsx)(cv,{asChild:!0,children:r}),e[0]=r,e[1]=n);let i,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(rR,{children:"Add Transform"}),l=(0,s.jsx)(tR,{}),e[2]=i,e[3]=l):(i=e[2],l=e[3]);let o;e[4]===a?o=e[5]:(o=Object.values(qd.options).map(p=>{let m=ey(p),h=PS[m.value];return(0,s.jsxs)(_u,{onSelect:g=>{g.stopPropagation(),a(p)},children:[(0,s.jsx)(h,{className:"w-3.5 h-3.5 mr-2"}),(0,s.jsx)("span",{children:mu.startCase(m.value)})]},m.value)}),e[4]=a,e[5]=o);let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsx)(_u,{onSelect:MS,children:(0,s.jsx)("span",{className:"underline text-primary text-xs cursor-pointer",children:"Request a transform"})},"_request_"),e[6]=d):d=e[6];let u;e[7]===o?u=e[8]:(u=(0,s.jsxs)(mv,{className:"w-56",children:[i,l,(0,s.jsxs)(aR,{children:[o,d]})]}),e[7]=o,e[8]=u);let c;return e[9]!==n||e[10]!==u?(c=(0,s.jsxs)(pv,{modal:!1,children:[n,u]}),e[9]=n,e[10]=u,e[11]=c):c=e[11],c},PS={aggregate:Jl,column_conversion:jE,filter_rows:B_,group_by:dy,rename_column:pR,select_columns:my,sort_column:Za,shuffle_rows:cy,sample_rows:ly,explode_columns:iy,expand_dict:oR,unique:oy,pivot:S1};function MS(t){t.stopPropagation(),window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml","_blank")}var FS=J();const VS=Ft("marimo-dataframe").withData($({label:M().nullish(),pageSize:Y().default(5),showDownload:W().default(!0),columns:ee(Pa([M().or(Y()),M(),M()])).transform(t=>{let e=new Map;return t.forEach(([a,r])=>{e.set(a,r)}),e}),lazy:W().default(!1)})).withFunctions({get_dataframe:Ye.input($({})).output($({url:M(),total_rows:Y(),row_headers:Vn,field_types:Vn,column_types_per_step:ee(Vn),python_code:M().nullish(),sql_code:M().nullish()})),get_column_values:Ye.input($({column:M()})).output($({values:ee(Ht()),too_many_values:W()})),search:Ye.input($({sort:ee($({by:M(),descending:W()})).optional(),query:M().optional(),filters:ee(Zd).optional(),page_number:Y(),page_size:Y()})).output($({data:Se([M(),ee($({}).passthrough())]),total_rows:Y()})),download_as:Bx}).renderer(t=>(0,s.jsx)(Zx,{children:(0,s.jsx)(a1,{...t.data,...t.functions,value:t.value,setValue:t.setValue,host:t.host})}));var zS={transforms:[]};const a1=(0,x.memo)(t=>{let e=(0,FS.c)(69),{columns:a,pageSize:r,showDownload:n,lazy:i,value:l,setValue:o,get_dataframe:d,get_column_values:u,search:c,download_as:p,host:m}=t,h;e[0]===d?h=e[1]:(h=()=>d({}),e[0]=d,e[1]=h);let g=l==null?void 0:l.transforms,f;e[2]===g?f=e[3]:(f=[g],e[2]=g,e[3]=f);let{data:v,error:b,isPending:w}=Et(h,f),D;e[4]===v?D=e[5]:(D=v||{},e[4]=v,e[5]=D);let{url:j,total_rows:k,row_headers:N,field_types:S,column_types_per_step:y,python_code:C,sql_code:_}=D,E=S==null?void 0:S.length,[T,P]=(0,x.useState)(l||zS),R=(0,x.useRef)(null),F;e[6]===i?F=e[7]:(F=ot=>{var Bt;i&&ot!=="transform"&&((Bt=R.current)==null||Bt.submit())},e[6]=i,e[7]=F);let I=F,V=(0,x.useRef)(T),A;e[8]===T?A=e[9]:(A=()=>{V.current=T},e[8]=T,e[9]=A),(0,x.useEffect)(A);let O;e[10]!==o||e[11]!==(l==null?void 0:l.transforms.length)?(O=()=>{let ot=V.current;(l==null?void 0:l.transforms.length)!==ot.transforms.length&&o(ot)},e[10]=o,e[11]=l==null?void 0:l.transforms.length,e[12]=O):O=e[12];let z=l==null?void 0:l.transforms.length,L;e[13]!==v||e[14]!==o||e[15]!==z?(L=[v,z,V,o],e[13]=v,e[14]=o,e[15]=z,e[16]=L):L=e[16],(0,x.useEffect)(O,L);let G;e[17]===Symbol.for("react.memo_cache_sentinel")?(G=(0,s.jsxs)(la,{value:"transform",className:"text-xs py-1",children:[(0,s.jsx)(Jl,{className:"w-3 h-3 mr-2"}),"Transform"]}),e[17]=G):G=e[17];let Q;e[18]===C?Q=e[19]:(Q=C&&(0,s.jsxs)(la,{value:"python-code",className:"text-xs py-1",children:[(0,s.jsx)(nR,{className:"w-3 h-3 mr-2"}),"Python Code"]}),e[18]=C,e[19]=Q);let ae;e[20]===_?ae=e[21]:(ae=_&&(0,s.jsxs)(la,{value:"sql-code",className:"text-xs py-1",children:[(0,s.jsx)(N1,{className:"w-3 h-3 mr-2"}),"SQL Code"]}),e[20]=_,e[21]=ae);let ce;e[22]===Symbol.for("react.memo_cache_sentinel")?(ce=(0,s.jsx)("div",{className:"grow"}),e[22]=ce):ce=e[22];let le;e[23]!==Q||e[24]!==ae?(le=(0,s.jsxs)(Xn,{className:"h-8",children:[G,Q,ae,ce]}),e[23]=Q,e[24]=ae,e[25]=le):le=e[25];let Z;e[26]===w?Z=e[27]:(Z=w&&(0,s.jsx)(qn,{size:"small"}),e[26]=w,e[27]=Z);let B;e[28]!==le||e[29]!==Z?(B=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[le,Z]}),e[28]=le,e[29]=Z,e[30]=B):B=e[30];let re;e[31]!==o||e[32]!==l?(re=ot=>{Al(ot,l)||(o(ot),P(ot))},e[31]=o,e[32]=l,e[33]=re):re=e[33];let te;e[34]!==y||e[35]!==a||e[36]!==u||e[37]!==T||e[38]!==i||e[39]!==re?(te=(0,s.jsx)(oa,{value:"transform",className:"mt-1 border rounded-t overflow-hidden",children:(0,s.jsx)(AS,{ref:R,initialValue:T,columns:a,onChange:re,onInvalidChange:P,getColumnValues:u,columnTypesPerStep:y,lazy:i})}),e[34]=y,e[35]=a,e[36]=u,e[37]=T,e[38]=i,e[39]=re,e[40]=te):te=e[40];let ie;e[41]===C?ie=e[42]:(ie=C&&(0,s.jsx)(oa,{value:"python-code",className:"mt-1 border rounded-t overflow-hidden",children:(0,s.jsx)(Tu,{minHeight:"215px",maxHeight:"215px",code:C,language:"python"})}),e[41]=C,e[42]=ie);let xe;e[43]===_?xe=e[44]:(xe=_&&(0,s.jsx)(oa,{value:"sql-code",className:"mt-1 border rounded-t overflow-hidden",children:(0,s.jsx)(Tu,{minHeight:"215px",maxHeight:"215px",code:_,language:"sql"})}),e[43]=_,e[44]=xe);let me;e[45]!==I||e[46]!==B||e[47]!==te||e[48]!==ie||e[49]!==xe?(me=(0,s.jsxs)(ei,{defaultValue:"transform",onValueChange:I,children:[B,te,ie,xe]}),e[45]=I,e[46]=B,e[47]=te,e[48]=ie,e[49]=xe,e[50]=me):me=e[50];let he;e[51]===b?he=e[52]:(he=b&&(0,s.jsx)(Qr,{error:b}),e[51]=b,e[52]=he);let be=j||"",Re=k??0,je=E??0,Ne=N||ya.EMPTY,Qe=k&&k>5||!1,lt;e[53]!==p||e[54]!==S||e[55]!==m||e[56]!==r||e[57]!==c||e[58]!==n||e[59]!==be||e[60]!==Re||e[61]!==je||e[62]!==Ne||e[63]!==Qe?(lt=(0,s.jsx)(Gd,{label:null,className:"rounded-b border-x border-b",data:be,hasStableRowId:!1,totalRows:Re,totalColumns:je,maxColumns:"all",pageSize:r,pagination:!0,fieldTypes:S,rowHeaders:Ne,showDownload:n,download_as:p,enableSearch:!1,showFilters:!1,search:c,showColumnSummaries:!1,showDataTypes:!0,get_column_summaries:OS,showPageSizeSelector:Qe,showColumnExplorer:!1,showRowExplorer:!0,showChartBuilder:!1,value:ya.EMPTY,setValue:za.NOOP,selection:null,lazy:!1,host:m}),e[53]=p,e[54]=S,e[55]=m,e[56]=r,e[57]=c,e[58]=n,e[59]=be,e[60]=Re,e[61]=je,e[62]=Ne,e[63]=Qe,e[64]=lt):lt=e[64];let vt;return e[65]!==me||e[66]!==he||e[67]!==lt?(vt=(0,s.jsxs)("div",{children:[me,he,lt]}),e[65]=me,e[66]=he,e[67]=lt,e[68]=vt):vt=e[68],vt});a1.displayName="DataFrameComponent";function OS(){return Promise.resolve({data:null,stats:{},bin_values:{},value_counts:{},show_charts:!1})}const $S=Ft("marimo-file-browser").withData($({initialPath:M(),filetypes:ee(M()),selectionMode:M(),multiple:W(),label:M().nullable(),restrictNavigation:W()})).withFunctions({list_directory:Ye.input($({path:M()})).output($({files:ee($({id:M(),path:M(),name:M(),is_directory:W()})),total_count:Y(),is_truncated:W()}))}).renderer(t=>(0,s.jsx)(LS,{...t.data,...t.functions,host:t.host,value:t.value,setValue:t.setValue}));var au="..";const LS=({value:t,setValue:e,initialPath:a,selectionMode:r,multiple:n,label:i,restrictNavigation:l,list_directory:o,host:d})=>{var O;let[u,c]=lT(a),[p,m]=(0,x.useState)("Select all"),[h,g]=(0,x.useState)(!1),[f,v]=(0,x.useState)(!1),b=(O=d.closest("[random-id]"))==null?void 0:O.getAttribute("random-id"),{data:w,error:D,isPending:j}=Et(()=>o({path:u}),[u,b]);if((0,x.useEffect)(()=>{if(!j){v(!1);return}let z=window.setTimeout(()=>{v(!0)},200);return()=>{window.clearTimeout(z)}},[j]),!w&&D)return(0,s.jsx)(mr,{kind:"danger",children:D.message});let{files:k}=w||{};k===void 0&&(k=[]);let N=SE.guessDeliminator(a).deliminator,S=new Set(t.map(z=>z.path)),y=t.map(z=>(0,s.jsx)("li",{children:z.path},z.id)),C=r==="directory"||r==="all",_=r==="file"||r==="all";function E(z){if(h)return;if(g(!0),z===au){if(u===N){g(!1);return}z=R1.dirname(u),z===""&&(z=N)}let L=z.lengthae.path!==z)),m("Select all")):e([...t,Q]):e([Q])}function R(){e(t.filter(z=>R1.dirname(z.path)!==u)),m("Select all")}function F(){if(!k)return;let z=[];for(let L of k){if(!C&&L.is_directory||S.has(L.path))continue;let G=T({path:L.path,name:L.name,isDirectory:L.is_directory});z.push(G)}e([...t,...z]),m("Deselect all")}let I=[];I.push((0,s.jsxs)(Jr,{className:"hover:bg-primary hover:bg-opacity-25 select-none",onClick:()=>E(au),children:[(0,s.jsx)(pr,{className:"w-[50px] pl-4",children:(0,s.jsx)(sy,{size:16})}),(0,s.jsx)(pr,{children:au})]},"Parent directory"));for(let z of k){let L=z.path;L.startsWith("//")&&(L=L.slice(1));let G=z.is_directory?({path:le})=>E(le):P,Q=dR[z.is_directory?"directory":sR(z.name)],ae=S.has(L),ce=()=>C&&z.is_directory||_&&!z.is_directory?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(pu,{checked:ae,onClick:le=>{P({path:L,name:z.name,isDirectory:z.is_directory}),le.stopPropagation()},className:U("",{"hidden group-hover:flex":!ae})}),(0,s.jsx)(Q,{size:16,className:U("mr-2",{hidden:ae,"group-hover:hidden":!ae})})]}):(0,s.jsx)(Q,{size:16,className:"mr-2"});I.push((0,s.jsxs)(Jr,{className:U("hover:bg-primary hover:bg-opacity-25 group select-none",{"bg-primary bg-opacity-25":ae}),onClick:()=>G({path:L,name:z.name,isDirectory:z.is_directory}),children:[(0,s.jsx)(pr,{className:"w-[50px] pl-4",children:ce()}),(0,s.jsx)(pr,{children:z.name})]},z.id))}let{parentDirectories:V}=ZR({path:u,delimiter:N,initialPath:a,restrictNavigation:l}),A=r==="all"?fu.of("file","folder"):r==="directory"?fu.of("folder"):fu.of("file");return(0,s.jsxs)("div",{children:[D&&(0,s.jsx)(mr,{kind:"danger",children:D.message}),(()=>{i??(i=`Select ${A.join(" and ",2)}...`);let z=(0,s.jsx)(ti,{children:Me({html:i})});return n?(0,s.jsxs)("div",{className:"flex items-center justify-between border px-2",children:[(0,s.jsx)("div",{className:"mb-1",children:z}),(0,s.jsx)("div",{children:(0,s.jsx)(Ce,{size:"xs",variant:"link",onClick:p==="Select all"?()=>F():()=>R(),children:Me({html:p})})})]}):z})(),(0,s.jsx)(Eu,{className:"mt-2 w-full",placeholder:u,value:u,onChange:z=>E(z.target.value),children:V.map(z=>(0,s.jsx)("option",{value:z,selected:z===u,children:z},z))}),w&&typeof w.total_count=="number"&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground mt-1 px-1",children:w.is_truncated?`Showing ${k.length} of ${w.total_count} items`:`${w.total_count} ${w.total_count===1?"item":"items"}`}),(0,s.jsxs)("div",{className:"mt-3 overflow-y-auto w-full border relative",style:{height:"14rem"},"aria-busy":j,"aria-live":"polite",children:[f&&(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80 text-xs text-muted-foreground pointer-events-none z-10",role:"status",children:[(0,s.jsx)(qn,{size:"small"}),(0,s.jsx)("span",{children:"Listing files..."})]}),(0,s.jsx)(Qu,{className:"cursor-pointer table-fixed",children:(0,s.jsx)(Gu,{children:I})})]}),(0,s.jsx)("div",{className:"mt-4",children:t.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"font-bold text-xs",children:[t.length," ",A.join(" or ",t.length)," ","selected"]}),(0,s.jsx)("button",{className:U("text-xs text-destructive hover:underline"),onClick:()=>e([]),type:"button",children:"clear all"})]}),(0,s.jsx)("div",{className:"markdown",children:(0,s.jsx)("ul",{style:{marginBlock:0},className:"m-0 text-xs text-muted-foreground",children:y})})]})})]})};var BS=J(),HS=class{constructor(){q(this,"tagName","marimo-file");q(this,"validator",$({filetypes:ee(M()),multiple:W(),kind:ye(["button","area"]),label:M().nullable(),max_size:Y()}))}render(t){return(0,s.jsx)(US,{label:t.data.label,filetypes:t.data.filetypes,multiple:t.data.multiple,kind:t.data.kind,value:t.value,setValue:t.setValue,max_size:t.data.max_size})}};function WS(t){let e={},a=(r,n)=>{Object.hasOwn(e,r)?e[r].push(n):e[r]=[n]};return t.forEach(r=>{switch(r){case".png":case".jpg":case".jpeg":case".gif":case".avif":case".bmp":case".ico":case".svg":case".tiff":case".webp":a("image/*",r);break;case".avi":case".mp4":case".mpeg":case".ogg":case".webm":a("video/*",r);break;case".pdf":a("application/pdf",r);break;case".csv":a("text/csv",r);break;default:a("text/plain",r)}}),e}const US=t=>{let e=(0,BS.c)(78),a;e[0]===t.filetypes?a=e[1]:(a=WS(t.filetypes),e[0]=t.filetypes,e[1]=a);let r=a,{setValue:n,kind:i,multiple:l,value:o,max_size:d}=t,u;e[2]===n?u=e[3]:(u=ce=>{IT(ce).then(le=>{n(le)}).catch(GS)},e[2]=n,e[3]=u);let c;e[4]!==r||e[5]!==d||e[6]!==l||e[7]!==u?(c={accept:r,multiple:l,maxSize:d,onError:KS,onDropRejected:YS,onDrop:u},e[4]=r,e[5]=d,e[6]=l,e[7]=u,e[8]=c):c=e[8];let{getRootProps:p,getInputProps:m,isFocused:h,isDragAccept:g,isDragReject:f}=qR(c),v;e[9]===o?v=e[10]:(v=o.map(QS),e[9]=o,e[10]=v);let b;e[11]===v?b=e[12]:(b=(0,s.jsx)("ul",{children:v}),e[11]=v,e[12]=b);let w=b,D=o.length>0;if(i==="button"){let ce=t.label??"Upload",le;e[13]===p?le=e[14]:(le=p({}),e[13]=p,e[14]=le);let Z;e[15]===Symbol.for("react.memo_cache_sentinel")?(Z=Oa({variant:"secondary",size:"xs"}),e[15]=Z):Z=e[15];let B;e[16]===ce?B=e[17]:(B=Me({html:ce}),e[16]=ce,e[17]=B);let re;e[18]===Symbol.for("react.memo_cache_sentinel")?(re=(0,s.jsx)(Nv,{size:14,className:"ml-2"}),e[18]=re):re=e[18];let te;e[19]!==le||e[20]!==Z||e[21]!==B?(te=(0,s.jsxs)("button",{"data-testid":"marimo-plugin-file-upload-button",...le,className:Z,children:[B,re]}),e[19]=le,e[20]=Z,e[21]=B,e[22]=te):te=e[22];let ie;e[23]===m?ie=e[24]:(ie=m({}),e[23]=m,e[24]=ie);let xe;e[25]===ie?xe=e[26]:(xe=(0,s.jsx)("input",{...ie,type:"file"}),e[25]=ie,e[26]=xe);let me;e[27]!==n||e[28]!==D||e[29]!==w||e[30]!==o.length?(me=D?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Mt,{content:w,children:(0,s.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Uploaded"," ",(0,s.jsxs)("span",{className:"underline cursor-pointer",children:[o.length," ",o.length===1?"file":"files","."]})]})}),(0,s.jsx)("button",{className:U("text-xs text-destructive hover:underline"),onClick:()=>n([]),type:"button",children:"Click to clear files."})]}):null,e[27]=n,e[28]=D,e[29]=w,e[30]=o.length,e[31]=me):me=e[31];let he;return e[32]!==xe||e[33]!==me||e[34]!==te?(he=(0,s.jsx)(Nt,{children:(0,s.jsxs)("div",{className:"flex flex-row items-center justify-start gap-2",children:[te,xe,me]})}),e[32]=xe,e[33]=me,e[34]=te,e[35]=he):he=e[35],he}let j=t.label??`Drag and drop ${l?"files":"a file"} here, or click to open file browser`,k=!h&&"border-input/60 border-dashed",N=h&&"border-solid",S;e[36]!==k||e[37]!==N?(S=U("hover:text-primary","mt-3 mb-2 w-full flex flex-col items-center justify-center ","px-6 py-6 sm:px-8 sm:py-8 md:py-10 md:px-16","border rounded-sm","text-sm text-muted-foreground","hover:cursor-pointer","active:shadow-xs-solid","focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent",k,N),e[36]=k,e[37]=N,e[38]=S):S=e[38];let y;e[39]===p?y=e[40]:(y=p(),e[39]=p,e[40]=y);let C;e[41]===m?C=e[42]:(C=m(),e[41]=m,e[42]=C);let _;e[43]===C?_=e[44]:(_=(0,s.jsx)("input",{...C}),e[43]=C,e[44]=_);let E;e[45]!==j||e[46]!==D?(E=D?(0,s.jsxs)("span",{children:["To re-upload: ",Me({html:j})]}):(0,s.jsx)("span",{className:"mt-0",children:Me({html:j})}),e[45]=j,e[46]=D,e[47]=E):E=e[47];let T=g&&"text-primary",P=f&&"text-destructive",R;e[48]!==T||e[49]!==P?(R=U(T,P),e[48]=T,e[49]=P,e[50]=R):R=e[50];let F;e[51]===R?F=e[52]:(F=(0,s.jsx)(Nv,{strokeWidth:1.4,className:R}),e[51]=R,e[52]=F);let I=g&&"text-primary",V=f&&"text-destructive",A;e[53]!==I||e[54]!==V?(A=U(I,V),e[53]=I,e[54]=V,e[55]=A):A=e[55];let O;e[56]===A?O=e[57]:(O=(0,s.jsx)(ac,{strokeWidth:1.4,className:A}),e[56]=A,e[57]=O);let z;e[58]!==F||e[59]!==O?(z=(0,s.jsxs)("div",{className:"flex flex-row items-center justify-center grow gap-3",children:[F,O]}),e[58]=F,e[59]=O,e[60]=z):z=e[60];let L;e[61]!==E||e[62]!==z?(L=(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center grow gap-3",children:[E,z]}),e[61]=E,e[62]=z,e[63]=L):L=e[63];let G;e[64]!==_||e[65]!==L||e[66]!==S||e[67]!==y?(G=(0,s.jsxs)("div",{className:S,...y,children:[_,L]}),e[64]=_,e[65]=L,e[66]=S,e[67]=y,e[68]=G):G=e[68];let Q;e[69]!==l||e[70]!==n||e[71]!==D||e[72]!==w||e[73]!==o.length?(Q=D?(0,s.jsxs)("div",{className:"flex flex-row gap-1",children:[(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:(0,s.jsxs)(Nt,{children:["Uploaded"," ",(0,s.jsx)(Mt,{content:w,children:(0,s.jsxs)("span",{className:"underline cursor-pointer",children:[o.length," ",o.length===1?"file":"files","."]})})]})}),(0,s.jsx)("span",{className:"text-xs text-destructive hover:underline hover:cursor-pointer",children:(0,s.jsxs)("button",{className:U("text-destructive","hover:underline"),onClick:()=>n([]),type:"button",children:["Click to clear ",l?"files":"file","."]})})]}):null,e[69]=l,e[70]=n,e[71]=D,e[72]=w,e[73]=o.length,e[74]=Q):Q=e[74];let ae;return e[75]!==G||e[76]!==Q?(ae=(0,s.jsx)("section",{children:(0,s.jsxs)("div",{className:"flex flex-col items-start justify-start grow gap-3",children:[G,Q]})}),e[75]=G,e[76]=Q,e[77]=ae):ae=e[77],ae};function KS(t){se.error(t),Wt({title:"File upload failed",description:t.message,variant:"danger"})}function ZS(t){return t.message}function qS(t){return(0,s.jsxs)("div",{children:[t.file.name," (",t.errors.map(ZS).join(", "),")"]},t.file.name)}function YS(t){Wt({title:"File upload failed",description:(0,s.jsx)("div",{className:"flex flex-col gap-1",children:t.map(qS)}),variant:"danger"})}function GS(t){se.error(t),Wt({title:"File upload failed",description:"Failed to convert file to base64.",variant:"danger"})}function QS(t){let[e]=t;return(0,s.jsx)("li",{children:e},e)}var r1=J();const JS=Ft("marimo-form").withData($({label:M().nullable(),elementId:M().transform(t=>t),bordered:W().default(!0),loading:W().default(!1),submitButtonLabel:M().default("Submit"),submitButtonTooltip:M().optional(),submitButtonDisabled:W().default(!1),clearOnSubmit:W().default(!1),showClearButton:W().default(!1),clearButtonLabel:M().default("Clear"),clearButtonTooltip:M().optional(),shouldValidate:W().optional()})).withFunctions({validate:Ye.input($({value:va()})).output(M().nullish())}).renderer(({data:t,functions:e,...a})=>(0,s.jsx)(Nt,{children:(0,s.jsx)(eN,{...t,...a,...e})})),XS=t=>{let e=(0,r1.c)(46),{children:a,currentValue:r,newValue:n,setValue:i,label:l,bordered:o,loading:d,submitButtonLabel:u,submitButtonTooltip:c,submitButtonDisabled:p,clearOnSubmit:m,showClearButton:h,clearButtonLabel:g,clearButtonTooltip:f,validate:v,shouldValidate:b}=t,w=(0,x.useRef)(null),D=n===r,j=D?"secondary":"action",[k,N]=(0,x.useState)(null),S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{w.current&&ru(w.current)},e[0]=S):S=e[0];let y=S,C;e[1]!==m||e[2]!==n||e[3]!==i||e[4]!==b||e[5]!==v?(C=async ae=>{if(ae.preventDefault(),b){let ce=await v({value:n}).catch(le=>{N(le.message??"Error validating")});if(ce!=null){N(ce);return}}N(null),i(n),m&&y()},e[1]=m,e[2]=n,e[3]=i,e[4]=b,e[5]=v,e[6]=C):C=e[6];let _=!D&&o,E;e[7]!==o||e[8]!==_?(E=U("flex flex-col gap-4 rounded-lg py-4 px-8",{"bg-(--gray-1) shadow-md border border-input":o,"bg-(--amber-1) border-(--amber-7)":_}),e[7]=o,e[8]=_,e[9]=E):E=e[9];let T;e[10]!==n||e[11]!==i?(T=ae=>{ae.key==="Enter"&&(ae.ctrlKey||ae.metaKey)&&(ae.preventDefault(),ae.stopPropagation(),i(n))},e[10]=n,e[11]=i,e[12]=T):T=e[12];let P;e[13]===l?P=e[14]:(P=l===null?null:(0,s.jsx)("div",{className:"text-center",children:Me({html:l})}),e[13]=l,e[14]=P);let R;e[15]===k?R=e[16]:(R=k!=null&&(0,s.jsx)(mr,{kind:"danger",className:"rounded",children:k??"Invalid input"}),e[15]=k,e[16]=R);let F;e[17]===a?F=e[18]:(F=(0,s.jsx)("div",{children:a}),e[17]=a,e[18]=F);let I;e[19]!==g||e[20]!==f||e[21]!==h?(I=h&&n1((0,s.jsx)(Ce,{"data-testid":"marimo-plugin-form-clear-button",variant:"text",onClick:ae=>{ae.preventDefault(),y()},children:g}),f),e[19]=g,e[20]=f,e[21]=h,e[22]=I):I=e[22];let V=p||d,A;e[23]===d?A=e[24]:(A=d&&(0,s.jsx)(Ll,{className:"h-4 w-4 mr-2 animate-spin"}),e[23]=d,e[24]=A);let O;e[25]!==u||e[26]!==V||e[27]!==A||e[28]!==j?(O=(0,s.jsxs)(Ce,{"data-testid":"marimo-plugin-form-submit-button",variant:j,disabled:V,type:"submit",children:[A,u]}),e[25]=u,e[26]=V,e[27]=A,e[28]=j,e[29]=O):O=e[29];let z;e[30]!==c||e[31]!==O?(z=n1(O,c),e[30]=c,e[31]=O,e[32]=z):z=e[32];let L;e[33]!==z||e[34]!==I?(L=(0,s.jsxs)("div",{className:"flex justify-end gap-2 font-code",children:[I,z]}),e[33]=z,e[34]=I,e[35]=L):L=e[35];let G;e[36]!==L||e[37]!==E||e[38]!==T||e[39]!==P||e[40]!==R||e[41]!==F?(G=(0,s.jsxs)("div",{className:E,onKeyDown:T,children:[P,R,F,L]}),e[36]=L,e[37]=E,e[38]=T,e[39]=P,e[40]=R,e[41]=F,e[42]=G):G=e[42];let Q;return e[43]!==G||e[44]!==C?(Q=(0,s.jsx)("form",{className:"contents",ref:w,onSubmit:C,children:G}),e[43]=G,e[44]=C,e[45]=Q):Q=e[45],Q};var eN=t=>{let e=(0,r1.c)(24),a,r,n,i,l,o;e[0]===t?(a=e[1],r=e[2],n=e[3],i=e[4],l=e[5],o=e[6]):({elementId:n,value:o,setValue:i,children:a,validate:l,...r}=t,e[0]=t,e[1]=a,e[2]=r,e[3]=n,e[4]=i,e[5]=l,e[6]=o);let d;e[7]===n?d=e[8]:(d=Fa.lookupValue(n),e[7]=n,e[8]=d);let[u,c]=(0,x.useState)(d),p,m;e[9]===n?(p=e[10],m=e[11]):(p=()=>{c(Fa.lookupValue(n))},m=[n],e[9]=n,e[10]=p,e[11]=m),(0,x.useEffect)(p,m);let h=Fa.lookupValue(n);Object.is(h,u)||c(h);let g;e[12]===n?g=e[13]:(g=()=>{let b=w=>{let D=w.detail.element;D===null||!(D instanceof Node)||Os(D)===n&&c(w.detail.value)};return document.addEventListener(Lr.TYPE,b),()=>{document.removeEventListener(Lr.TYPE,b)}},e[12]=n,e[13]=g);let f;e[14]!==n||e[15]!==i?(f=[n,i],e[14]=n,e[15]=i,e[16]=f):f=e[16],(0,x.useEffect)(g,f);let v;return e[17]!==a||e[18]!==r||e[19]!==u||e[20]!==i||e[21]!==l||e[22]!==o?(v=(0,s.jsx)(XS,{currentValue:o,newValue:u,setValue:i,validate:l,...r,children:a}),e[17]=a,e[18]=r,e[19]=u,e[20]=i,e[21]=l,e[22]=o,e[23]=v):v=e[23],v};function n1(t,e){return e?(0,s.jsx)(Mt,{content:e,children:t}):t}function ru(t){t instanceof HTMLElement&&(t.shadowRoot&&[...t.shadowRoot.children].forEach(ru),[...t.children].forEach(ru),yD(t)&&t.reset())}var tN=J();const aN=t=>{let e=(0,tN.c)(12),{onStart:a,onStop:r,status:n,time:i}=t,l;e[0]!==a||e[1]!==n?(l=n==="stopped"&&(0,s.jsx)(Ce,{"data-testid":"audio-recorder-start",variant:"secondary",onClick:a,className:"w-[50px]",children:(0,s.jsx)(uv,{className:U("w-6 h-6 border border-input rounded-full"),strokeWidth:1.5,fill:"var(--red-9)"})}),e[0]=a,e[1]=n,e[2]=l):l=e[2];let o;e[3]!==r||e[4]!==n?(o=n==="recording"&&(0,s.jsxs)(Ce,{"data-testid":"audio-recorder-pause",variant:"secondary",onClick:r,className:"w-[50px]",children:[(0,s.jsx)(KR,{className:"w-5 h-5 rounded-sm",fill:"var(--red-9)",strokeWidth:1.5}),(0,s.jsx)(uv,{className:U("w-6 h-6 absolute opacity-20 animate-ping"),fill:"var(--red-9)",style:{animationDuration:"1.5s"},strokeWidth:0})]}),e[3]=r,e[4]=n,e[5]=o):o=e[5];let d;e[6]===i?d=e[7]:(d=i&&(0,s.jsxs)("span",{className:"text-sm font-bold",children:[i,"s"]}),e[6]=i,e[7]=d);let u;return e[8]!==l||e[9]!==o||e[10]!==d?(u=(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[l,o,d]}),e[8]=l,e[9]=o,e[10]=d,e[11]=u):u=e[11],u};var rN=J();function nN(){let t=(0,rN.c)(14),[e,a]=(0,x.useState)(0),r=(0,x.useRef)(void 0),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={minimumFractionDigits:1,maximumFractionDigits:1},t[0]=n):n=t[0];let i=NA(n),l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{r.current=window.setInterval(()=>{a(iN)},100)},t[1]=l):l=t[1];let o=$e(l),d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{r.current!=null&&(window.clearInterval(r.current),r.current=void 0)},t[2]=d):d=t[2];let u=$e(d),c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{a(0)},t[3]=c):c=t[3];let p=$e(c),m,h;t[4]===Symbol.for("react.memo_cache_sentinel")?(m=()=>()=>{window.clearInterval(r.current)},h=[],t[4]=m,t[5]=h):(m=t[4],h=t[5]),(0,x.useEffect)(m,h);let g;t[6]!==i||t[7]!==e?(g=i.format(e),t[6]=i,t[7]=e,t[8]=g):g=t[8];let f;return t[9]!==p||t[10]!==o||t[11]!==u||t[12]!==g?(f={time:g,start:o,stop:u,clear:p},t[9]=p,t[10]=o,t[11]=u,t[12]=g,t[13]=f):f=t[13],f}function iN(t){return t+.1}var lN=J();function oN(t){let e=(0,lN.c)(18),{onDone:a,options:r}=t,[n,i]=(0,x.useState)("stopped"),l=(0,x.useRef)(void 0),[o,d]=(0,x.useState)(!0),[u,c]=(0,x.useState)(),p=nN(),m;e[0]!==a||e[1]!==r||e[2]!==p?(m=()=>{p.clear(),navigator.mediaDevices.getUserMedia({audio:!0}).then(j=>{let k=new MediaRecorder(j,r);i("recording"),l.current=k,k.start(),p.start(),k.addEventListener("dataavailable",N=>{c(N.data),a==null||a(N.data),k.stream.getTracks().forEach(dN),l.current=void 0})}).catch(j=>{se.log(j),d(!1)})},e[0]=a,e[1]=r,e[2]=p,e[3]=m):m=e[3];let h=$e(m),g;e[4]===p?g=e[5]:(g=()=>{var j;(j=l.current)==null||j.stop(),p.stop(),i("stopped")},e[4]=p,e[5]=g);let f=$e(g),v;e[6]===p?v=e[7]:(v=()=>{i(j=>{var k,N;return j==="recording"?((k=l.current)==null||k.pause(),p.stop(),"paused"):j==="paused"?((N=l.current)==null||N.resume(),p.start(),"recording"):j})},e[6]=p,e[7]=v);let b=$e(v),w;e[8]===p?w=e[9]:(w=()=>{var j,k;(j=l.current)==null||j.stream.getTracks().forEach(sN),(k=l.current)==null||k.stop(),p.stop()},e[8]=p,e[9]=w),ZE(w);let D;return e[10]!==o||e[11]!==b||e[12]!==u||e[13]!==n||e[14]!==h||e[15]!==f||e[16]!==p.time?(D={start:h,stop:f,pauseResume:b,allowed:o,recordingBlob:u,recordingStatus:n,recordingTime:p.time,mediaRecorder:l},e[10]=o,e[11]=b,e[12]=u,e[13]=n,e[14]=h,e[15]=f,e[16]=p.time,e[17]=D):D=e[17],D}function sN(t){return t.stop()}function dN(t){return t.stop()}var uN=J(),cN=class{constructor(){q(this,"tagName","marimo-microphone");q(this,"validator",$({label:M().nullish()}))}render(t){return(0,s.jsx)(mN,{...t})}},mN=t=>{let e=(0,uN.c)(14),{setValue:a,data:r}=t,n;e[0]===a?n=e[1]:(n={onDone:async g=>{a(await FT(g,"base64"))}},e[0]=a,e[1]=n);let{start:i,stop:l,pauseResume:o,recordingStatus:d,recordingTime:u,allowed:c}=oN(n),p;e[2]===c?p=e[3]:(p=!c&&(0,s.jsx)("div",{className:"text-destructive text-sm",children:"Microphone access is disabled. Please allow microphone access in your browser."}),e[2]=c,e[3]=p);let m;e[4]!==o||e[5]!==d||e[6]!==u||e[7]!==i||e[8]!==l?(m=(0,s.jsx)(aN,{onStart:i,onStop:l,onPause:o,status:d,time:u}),e[4]=o,e[5]=d,e[6]=u,e[7]=i,e[8]=l,e[9]=m):m=e[9];let h;return e[10]!==r.label||e[11]!==p||e[12]!==m?(h=(0,s.jsxs)(Le,{label:r.label,align:"top",children:[p,m]}),e[10]=r.label,e[11]=p,e[12]=m,e[13]=h):h=e[13],h},pN=J(),hN=class{constructor(){q(this,"tagName","marimo-number");q(this,"validator",$({initialValue:Y().nullish(),label:M().nullable(),start:Y().nullish(),stop:Y().nullish(),step:Y().optional(),debounce:W().default(!1),fullWidth:W().default(!1),disabled:W().optional()}))}render(t){return(0,s.jsx)(fN,{...t.data,value:t.value,setValue:t.setValue})}},fN=t=>{let e=(0,pN.c)(25),a=(0,x.useId)(),r;e[0]===t.value?r=e[1]:(r=i1(t.value),e[0]=t.value,e[1]=r);let n=r,i=!t.debounce,l;e[2]!==n||e[3]!==t.setValue||e[4]!==i?(l={initialValue:n,delay:200,disabled:i,onChange:t.setValue},e[2]=n,e[3]=t.setValue,e[4]=i,e[5]=l):l=e[5];let{value:o,onChange:d}=Bv(l),u;e[6]===d?u=e[7]:(u=N=>{d(i1(N))},e[6]=d,e[7]=u);let c=u,p=t.label,m=a,h=t.fullWidth,g=t.fullWidth&&"w-full",f;e[8]===g?f=e[9]:(f=U("min-w-[3em]",g),e[8]=g,e[9]=f);let v=t.start??void 0,b=t.stop??void 0,w=o??NaN,D=t.label||"Number input",j;e[10]!==c||e[11]!==a||e[12]!==t.disabled||e[13]!==t.step||e[14]!==b||e[15]!==w||e[16]!==D||e[17]!==f||e[18]!==v?(j=(0,s.jsx)(Fu,{"data-testid":"marimo-plugin-number-input",className:f,minValue:v,maxValue:b,value:w,step:t.step,onChange:c,id:a,"aria-label":D,isDisabled:t.disabled}),e[10]=c,e[11]=a,e[12]=t.disabled,e[13]=t.step,e[14]=b,e[15]=w,e[16]=D,e[17]=f,e[18]=v,e[19]=j):j=e[19];let k;return e[20]!==a||e[21]!==t.fullWidth||e[22]!==t.label||e[23]!==j?(k=(0,s.jsx)(Le,{label:p,id:m,fullWidth:h,children:j}),e[20]=a,e[21]=t.fullWidth,e[22]=t.label,e[23]=j,e[24]=k):k=e[24],k};function i1(t){return t==null||Number.isNaN(t)?null:t}const gN=$({content:Se([$({type:He("ACK")}),M()]).nullable()});function Cl(t,e){if(Array.isArray(t))return t.map(a=>Cl(a,e));if(t instanceof Map){let a={};for(let[r,n]of t.entries())a[String(r)]=Cl(n,e);return a}if(typeof t=="object"&&t&&"to_base64"in t&&typeof t.to_base64=="function"){let a=e.length;return e.push(t.to_base64()),{id:a}}if(typeof t=="object"&&t){let a={};for(let r of Object.keys(t))a[r]=Cl(t[r],e);return a}return t}var xN=class{constructor(t,e=200){q(this,"buffer",[]);q(this,"isBlocked",!1);q(this,"timeout",null);this.processEvents=t,this.blockDuration=e}add(t){this.buffer.push(t),this.flush()}flush(){this.isBlocked||(this.processEvents(),this.block())}block(){this.isBlocked=!0,this.timeout!==null&&clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{this.isBlocked=!1,this.buffer.length>0&&this.flush()},this.blockDuration)}size(){return this.buffer.length}clear(){this.buffer=[]}getAndClear(){let t=[...this.buffer];return this.clear(),t}};const vN=Ft("marimo-panel").withData($({extension:M().nullable(),docs_json:ft(M(),va()),render_json:$({roots:ft(M(),M())}).catchall(va())})).withFunctions({send_to_widget:Ye.input($({message:va(),buffers:ee(M())})).output(sr().optional())}).renderer(t=>(0,s.jsx)(yN,{...t}));function l1(){return window.Bokeh!=null}var yN=t=>{let{data:e,functions:a,host:r}=t,{extension:n,docs_json:i,render_json:l}=e,o=(0,x.useRef)(null),d=(0,x.useRef)(null),u=(0,x.useRef)(null),[c,p]=(0,x.useState)(!1),[m,h]=(0,x.useState)(null),g=c_(()=>{if(!f.current||!d.current)return;let v=f.current.getAndClear(),b=d.current.create_json_patch(v),w={...window.Bokeh.protocol.Message.create("PATCH-DOC",{},b)},D=[];w.content=Cl(w.content,D),a.send_to_widget({message:w,buffers:D})}),f=(0,x.useRef)(new xN(g));return(0,x.useEffect)(()=>{if(l1()){p(!0);return}if(n){let b=document.createElement("script");b.innerHTML=n,document.head.append(b)}let v=setInterval(()=>{l1()&&(p(!0),clearInterval(v))},10);return()=>clearInterval(v)},[n,p]),Fl(r,yu.TYPE,v=>{if(v.detail.message==null)return;let b=gN.parse(v.detail.message),w=v.detail.buffers,D=u.current,j=d.current;if(!D||!j)return;let k=b.content;if(k!==null&&typeof b.content!="string"){f.current&&f.current.size()>0&&g();return}if(w&&w.length>0){let S=w[0];S instanceof ArrayBuffer?D.consume(S):S.buffer instanceof ArrayBuffer&&D.consume(S.buffer)}else if(k&&typeof k=="string")D.consume(k);else return;let N=D.message;N!=null&&Object.keys(N.content).length>0&&(N.content.events!==void 0&&(N.content.events=N.content.events.filter(S=>j._all_models.has(S.model.id))),j.apply_json_patch(N.content,N.buffers))}),(0,x.useEffect)(()=>{let v=Object.keys(i)[0];!c||m===v||(async()=>{let b={...l,roots:{}};for(let D of Object.keys(l.roots)){let j=l.roots[D];if(o.current){let k=o.current.querySelector(`#${j}`);b.roots[D]=k}}let w=Object.keys(b.roots)[0];await window.Bokeh.embed.embed_items_notebook(i,[b]),d.current=window.Bokeh.index.get_by_id(w).model.document,u.current=new window.Bokeh.protocol.Receiver,d.current.on_change(D=>{var j;return(j=f.current)==null?void 0:j.add(D)}),h(v)})()},[i,c,l,m]),(0,s.jsx)("div",{ref:o,children:Object.values(l.roots).map(v=>(0,s.jsx)("div",{id:v,children:(0,s.jsx)("div",{"data-root-id":v,style:{display:"contents"}})},v))})},bN={removeOnUnmount:!1};function wN(t,e=bN){let[a,r]=x.useState(()=>{var n;return((n=document.querySelector(`script[src="${t}"]`))==null?void 0:n.dataset.status)||"unknown"});return x.useEffect(()=>{let n=document.querySelector(`script[src="${t}"]`),i=c=>{n&&(n.dataset.status=c,r(c))},l=()=>i("ready"),o=()=>i("error"),d=c=>{let p=new MutationObserver(()=>{let m=c.dataset.status;m&&r(m)});return p.observe(c,{attributes:!0,attributeFilter:["data-status"]}),p};if(!n){n=document.createElement("script"),n.src=t,n.async=!0,i("loading"),document.body.append(n),n.addEventListener("load",l),n.addEventListener("error",o);let c=d(n);return()=>{c.disconnect(),n&&(n.removeEventListener("load",l),n.removeEventListener("error",o),e.removeOnUnmount&&n.remove())}}let u=n.dataset.status;if(u){if(u==="ready"||u==="error")return;let c=d(n);return()=>c.disconnect()}r("unknown")},[t,e.removeOnUnmount]),a}function o1(t){let e=/([^<=>]+)=%{([^}]+)}/g,a={},r;for(;(r=e.exec(t))!==null;)a[r[1]]=r[2];return{update(n){return n===t?this:o1(n)},parse(n){return Object.entries(a).reduce((i,[l,o])=>(i[l]=KE(n,o),i),{})}}}var DN=class{constructor(){q(this,"tagName","marimo-plotly");q(this,"validator",$({figure:$({}).passthrough().transform(t=>t),config:$({}).passthrough()}))}render(t){return(0,s.jsx)(d1,{...t.data,host:t.host,value:t.value,setValue:t.setValue})}};const jN=(0,x.lazy)(()=>yt(()=>import("./react-plotly-DErqWDjh.js").then(async t=>(await t.__tla,t)).then(gE(1)),__vite__mapDeps([356,280,11,10]),import.meta.url).then(t=>t.default));function nu(t){return{autosize:t.layout.width===void 0,dragmode:"select",height:540,...t.layout}}var s1=["color","curveNumber","entry","hovertext","id","label","parent","percentEntry","percentParent","percentRoot","pointNumber","root","value"],CN=s1;const d1=(0,x.memo)(({figure:t,value:e,setValue:a,config:r})=>{let[n,i]=(0,x.useState)(()=>structuredClone(t));(0,x.useEffect)(()=>{let m=structuredClone(t);i(m),o(h=>({...nu(m),...h}))},[t,wN("https://cdn.jsdelivr.net/npm/mathjax-full@3.2.2/es5/tex-mml-svg.min.js")==="ready"]);let[l,o]=(0,x.useState)(()=>({...nu(n),...e})),d=$e(()=>{let m=structuredClone(t);i(m),o(nu(m)),a({})}),u=Ka(r),c=(0,x.useMemo)(()=>({displaylogo:!1,modeBarButtonsToAdd:[{name:"reset",title:"Reset state",icon:{svg:` + + + + `},click:d}],...u}),[d,u]),p=Y_(n)??n;return(0,x.useEffect)(()=>{let m=new Set(["autosize","dragmode","xaxis","yaxis"]);for(let g of m)Al(n.layout[g],p.layout[g])||m.delete(g);let h=Va.omit(n.layout,m);o(g=>({...g,...h}))},[n.layout,p.layout]),(0,s.jsx)(jN,{...n,layout:l,onRelayout:m=>{if("dragmode"in m&&a(h=>({...h,dragmode:m.dragmode})),Object.keys(m).some(h=>h.includes("xaxis")||h.includes("yaxis"))){let h={};Object.entries(m).forEach(([g,f])=>{u_(h,g,f)}),a(g=>({...g,...h}))}},onDeselect:$e(()=>{a(m=>({...m,selections:ya.EMPTY,points:ya.EMPTY,indices:ya.EMPTY,range:void 0}))}),onTreemapClick:$e(m=>{m&&a(h=>({...h,points:m.points.map(g=>V1(g,CN))}))}),onSunburstClick:$e(m=>{m&&a(h=>({...h,points:m.points.map(g=>V1(g,s1))}))}),config:c,onSelected:$e(m=>{m&&a(h=>({...h,selections:"selections"in m?m.selections:[],points:kN(m.points),indices:m.points.map(g=>g.pointIndex),range:m.range}))}),className:"w-full",useResizeHandler:!0,frames:n.frames??void 0,onError:$e(m=>{se.error("PlotlyPlugin: ",m)})})});d1.displayName="PlotlyComponent";function kN(t){if(!t)return[];let e;return t.map(a=>{let r=Array.isArray(a.data.hovertemplate)?a.data.hovertemplate[0]:a.data.hovertemplate;return e=e?e.update(r):o1(r),e.parse(a)})}var SN=J(),NN=class{constructor(){q(this,"tagName","marimo-radio");q(this,"validator",$({initialValue:M().nullable(),inline:W().default(!1),label:M().nullable(),options:ee(M()),disabled:W().optional()}))}render(t){return(0,s.jsx)(EN,{...t.data,value:t.value,setValue:t.setValue})}};const EN=t=>{let e=(0,SN.c)(18),a=(0,x.useId)(),r=t.label,n=t.inline?"left":"top",i=t.value??"",l=t.setValue,o=t.inline&&"grid-flow-col gap-4",d;e[0]===o?d=e[1]:(d=U(o),e[0]=o,e[1]=d);let u=t.disabled,c;if(e[2]!==a||e[3]!==t.options){let h;e[5]===a?h=e[6]:(h=(g,f)=>(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(XA,{value:g,id:`${a}-${f.toString()}`}),(0,s.jsx)(ti,{htmlFor:`${a}-${f.toString()}`,className:"text-sm font-normal",children:g})]},f),e[5]=a,e[6]=h),c=t.options.map(h),e[2]=a,e[3]=t.options,e[4]=c}else c=e[4];let p;e[7]!==t.disabled||e[8]!==t.setValue||e[9]!==i||e[10]!==d||e[11]!==c?(p=(0,s.jsx)(QA,{"data-testid":"marimo-plugin-radio",value:i,onValueChange:l,className:d,"aria-label":"Radio Group",disabled:u,children:c}),e[7]=t.disabled,e[8]=t.setValue,e[9]=i,e[10]=d,e[11]=c,e[12]=p):p=e[12];let m;return e[13]!==a||e[14]!==t.label||e[15]!==n||e[16]!==p?(m=(0,s.jsx)(Le,{label:r,id:a,align:n,children:p}),e[13]=a,e[14]=t.label,e[15]=n,e[16]=p,e[17]=m):m=e[17],m};var _N=J(),u1=x.forwardRef((t,e)=>{let a=(0,_N.c)(35),{className:r,valueMap:n,...i}=t,[l,o]=ov(!1),{locale:d}=qe(),u=h0,c;a[0]===r?c=a[1]:(c=U("relative flex touch-none select-none hover:cursor-pointer","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center","data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center","data-disabled:cursor-not-allowed",r),a[0]=r,a[1]=c);let p;a[2]===Symbol.for("react.memo_cache_sentinel")?(p=U("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"),a[2]=p):p=a[2];let m;a[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(Gs,{"data-testid":"track",className:p,children:(0,s.jsx)(Qs,{"data-testid":"range",className:U("absolute bg-blue-500 dark:bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full","data-disabled:opacity-50")})}),a[3]=m):m=a[3];let h;a[4]!==o.setFalse||a[5]!==o.setTrue?(h=(0,s.jsx)(Wu,{asChild:!0,children:(0,s.jsx)(Gi,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:o.setTrue,onBlur:o.setFalse,onMouseEnter:o.setTrue,onMouseLeave:o.setFalse})}),a[4]=o.setFalse,a[5]=o.setTrue,a[6]=h):h=a[6];let g=i.value!=null&&i.value.length===2&&(0,s.jsx)(Hu,{children:Gr(n(i.value[0]),{locale:d})},i.value[0]),f;a[7]===g?f=a[8]:(f=(0,s.jsx)(Uu,{children:g}),a[7]=g,a[8]=f);let v;a[9]!==l||a[10]!==h||a[11]!==f?(v=(0,s.jsx)(Nt,{children:(0,s.jsxs)(Bu,{delayDuration:0,open:l,children:[h,f]})}),a[9]=l,a[10]=h,a[11]=f,a[12]=v):v=a[12];let b=Nt,w=Bu,D;a[13]!==o.setFalse||a[14]!==o.setTrue?(D=(0,s.jsx)(Wu,{asChild:!0,children:(0,s.jsx)(Gi,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:o.setTrue,onBlur:o.setFalse,onMouseEnter:o.setTrue,onMouseLeave:o.setFalse})}),a[13]=o.setFalse,a[14]=o.setTrue,a[15]=D):D=a[15];let j=Uu,k=i.value!=null&&i.value.length===2&&(0,s.jsx)(Hu,{children:Gr(n(i.value[1]),{locale:d})},i.value[1]),N;a[16]!==j||a[17]!==k?(N=(0,s.jsx)(j,{children:k}),a[16]=j,a[17]=k,a[18]=N):N=a[18];let S;a[19]!==w||a[20]!==l||a[21]!==D||a[22]!==N?(S=(0,s.jsxs)(w,{delayDuration:0,open:l,children:[D,N]}),a[19]=w,a[20]=l,a[21]=D,a[22]=N,a[23]=S):S=a[23];let y;a[24]!==b||a[25]!==S?(y=(0,s.jsx)(b,{children:S}),a[24]=b,a[25]=S,a[26]=y):y=a[26];let C;return a[27]!==i||a[28]!==e||a[29]!==u.Root||a[30]!==y||a[31]!==c||a[32]!==m||a[33]!==v?(C=(0,s.jsxs)(u.Root,{ref:e,className:c,...i,children:[m,v,y]}),a[27]=i,a[28]=e,a[29]=u.Root,a[30]=y,a[31]=c,a[32]=m,a[33]=v,a[34]=C):C=a[34],C});u1.displayName=Ys.displayName;var TN=J(),RN=class{constructor(){q(this,"tagName","marimo-range-slider");q(this,"validator",$({initialValue:ee(Y()),label:M().nullable(),start:Y(),stop:Y(),step:Y().optional(),steps:ee(Y()).nullable(),debounce:W().default(!1),orientation:ye(["horizontal","vertical"]).default("horizontal"),showValue:W().default(!1),fullWidth:W().default(!1),disabled:W().optional()}))}render(t){let e=a=>t.data.steps&&t.data.steps.length>0?t.data.steps[a]:a;return(0,s.jsx)(AN,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},AN=t=>{let e=(0,TN.c)(50),{label:a,setValue:r,value:n,start:i,stop:l,step:o,debounce:d,orientation:u,showValue:c,fullWidth:p,disabled:m,valueMap:h}=t,g=(0,x.useId)(),{locale:f}=qe(),[v,b]=(0,x.useState)(n),w,D;e[0]===n?(w=e[1],D=e[2]):(w=()=>{b(n)},D=[n],e[0]=n,e[1]=w,e[2]=D),(0,x.useEffect)(w,D);let j=u==="horizontal"?"left":"top",k=p&&"my-1 w-full",N;e[3]===k?N=e[4]:(N=U(k),e[3]=k,e[4]=N);let S=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",y=p&&"w-full",C;e[5]!==S||e[6]!==y?(C=U("flex items-center gap-2",S,y),e[5]=S,e[6]=y,e[7]=C):C=e[7];let _=!p&&"data-[orientation=horizontal]:w-36 ",E;e[8]===_?E=e[9]:(E=U("relative flex items-center select-none",_,"data-[orientation=vertical]:h-36"),e[8]=_,e[9]=E);let T,P;e[10]!==d||e[11]!==r?(T=z=>{b(z),d||r(z)},P=z=>{d&&r(z)},e[10]=d,e[11]=r,e[12]=T,e[13]=P):(T=e[12],P=e[13]);let R,F;e[14]!==d||e[15]!==v||e[16]!==r||e[17]!==n?(R=()=>{d&&!Al(v,n)&&r(v)},F=()=>{d&&!Al(v,n)&&r(v)},e[14]=d,e[15]=v,e[16]=r,e[17]=n,e[18]=R,e[19]=F):(R=e[18],F=e[19]);let I;e[20]!==m||e[21]!==g||e[22]!==v||e[23]!==u||e[24]!==i||e[25]!==o||e[26]!==l||e[27]!==E||e[28]!==T||e[29]!==P||e[30]!==R||e[31]!==F||e[32]!==h?(I=(0,s.jsx)(u1,{id:g,className:E,value:v,min:i,max:l,step:o,orientation:u,disabled:m,onValueChange:T,onValueCommit:P,onPointerUp:R,onMouseUp:F,valueMap:h}),e[20]=m,e[21]=g,e[22]=v,e[23]=u,e[24]=i,e[25]=o,e[26]=l,e[27]=E,e[28]=T,e[29]=P,e[30]=R,e[31]=F,e[32]=h,e[33]=I):I=e[33];let V;e[34]!==v||e[35]!==f||e[36]!==c||e[37]!==h?(V=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:`${Gr(h(v[0]),{locale:f})}, ${Gr(h(v[1]),{locale:f})}`}),e[34]=v,e[35]=f,e[36]=c,e[37]=h,e[38]=V):V=e[38];let A;e[39]!==I||e[40]!==V||e[41]!==C?(A=(0,s.jsxs)("div",{className:C,children:[I,V]}),e[39]=I,e[40]=V,e[41]=C,e[42]=A):A=e[42];let O;return e[43]!==p||e[44]!==g||e[45]!==a||e[46]!==A||e[47]!==j||e[48]!==N?(O=(0,s.jsx)(Le,{label:a,id:g,align:j,className:N,fullWidth:p,children:A}),e[43]=p,e[44]=g,e[45]=a,e[46]=A,e[47]=j,e[48]=N,e[49]=O):O=e[49],O},iu=xa(cu(((t,e)=>{e.exports=n;var a={hoursPerDay:24,daysPerWeek:7,weeksPerMonth:4,monthsPerYear:12,daysPerYear:365.25},r={ms:["ms","milli","millisecond","milliseconds"],s:["s","sec","secs","second","seconds"],m:["m","min","mins","minute","minutes"],h:["h","hr","hrs","hour","hours"],d:["d","day","days"],w:["w","week","weeks"],mth:["mon","mth","mths","month","months"],y:["y","yr","yrs","year","years"]};function n(u,c,p){p=Object.assign({},a,p||{}),(typeof u=="number"||u.match(/^[-+]?[0-9.]+$/g))&&(u=parseInt(u)+"ms");let m=0,h=i(p),g=u.toLowerCase().replace(/[^.\w+-]+/g,"").match(/[-+]?[0-9.]+[a-z]+/g);if(g===null)throw Error(`The value [${u}] could not be parsed by timestring`);return g.forEach(f=>{let v=f.match(/[0-9.]+/g)[0],b=f.match(/[a-z]+/g)[0];m+=o(v,b,h)}),c?d(m,c,h):m}function i(u){let c={ms:.001,s:1,m:60,h:3600};return c.d=u.hoursPerDay*c.h,c.w=u.daysPerWeek*c.d,c.mth=u.daysPerYear/u.monthsPerYear*c.d,c.y=u.daysPerYear*c.d,c}function l(u){for(let c of Object.keys(r))if(r[c].indexOf(u)>-1)return c;throw Error(`The unit [${u}] is not supported by timestring`)}function o(u,c,p){return u*p[l(c)]}function d(u,c,p){return u/p[l(c)]}}))(),1),$n=.1,c1=M().superRefine((t,e)=>{try{(0,iu.default)(t)<$n&&e.addIssue({code:I1.custom,message:`Must be greater than ${$n} seconds.`});return}catch{e.addIssue({code:I1.custom,message:"Must be a valid timestring. e.g. 1m, 30m, 1h."});return}}),IN=class{constructor(){q(this,"tagName","marimo-refresh");q(this,"validator",$({options:ee(Se([c1,Y().min($n)])).default([]),defaultInterval:Se([c1,Y().min($n)]).optional(),label:M().nullable()}))}render(t){return(0,s.jsx)(MN,{...t})}},kl="off",PN=0,MN=({setValue:t,data:e})=>{let[a,r]=(0,x.useState)(e.defaultInterval??kl);(0,x.useEffect)(()=>{r(e.defaultInterval??kl)},[e.defaultInterval]);let[n,i]=(0,x.useState)(!1),l=$e(()=>{i(!0),t(()=>`${a} (${PN++})`),setTimeout(()=>i(!1),500)});(0,x.useEffect)(()=>{if(a===kl)return;let u=typeof a=="number"?a:/[a-z]/.test(a)?(0,iu.default)(a):(0,iu.default)(`${a}s`);u=Math.max(u,$n);let c=setInterval(l,u*1e3);return()=>clearInterval(c)},[a,l]);let o="shadow-none! hover:shadow-none! focus:shadow-none! active:shadow-none!",d=e.options.length>0;return(0,s.jsx)(Le,{label:e.label,children:(0,s.jsxs)("span",{className:"inline-flex items-center text-secondary-foreground rounded shadow-sm-solid",children:[(0,s.jsx)(Ce,{"data-testid":"marimo-plugin-refresh-button",variant:"secondary",size:"icon",className:U(o,"border mb-0 rounded",d&&"border-r-0 rounded-tr-none rounded-br-none"),onClick:l,children:(0,s.jsx)(hR,{className:U("w-3.5 h-3.5",n&&"animate-spin")})}),(0,s.jsxs)(Eu,{"data-testid":"marimo-plugin-refresh-select",onChange:u=>{r(u.target.value)},value:a,className:U(o,"border mb-0 bg-secondary rounded rounded-tl-none rounded-bl-none hover:bg-secondary/60",!d&&"hidden"),children:[(0,s.jsx)("option",{value:kl,children:"off"}),e.options.map(u=>(0,s.jsx)("option",{value:u,children:typeof u=="number"?`${u}s`:u},u))]})]})})},FN=J(),VN=class{constructor(){q(this,"tagName","marimo-slider");q(this,"validator",$({initialValue:Y(),label:M().nullable(),start:Y(),stop:Y(),step:Y().optional(),steps:ee(Y()).nullable(),debounce:W().default(!1),orientation:ye(["horizontal","vertical"]).default("horizontal"),showValue:W().default(!1),fullWidth:W().default(!1),includeInput:W().default(!1),disabled:W().optional()}))}render(t){let e=a=>t.data.steps&&t.data.steps.length>0?t.data.steps[a]:a;return(0,s.jsx)(zN,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},zN=t=>{let e=(0,FN.c)(55),{label:a,setValue:r,value:n,start:i,stop:l,step:o,debounce:d,orientation:u,showValue:c,fullWidth:p,valueMap:m,includeInput:h,disabled:g}=t,f=(0,x.useId)(),{locale:v}=qe(),[b,w]=(0,x.useState)(n),D,j;e[0]===n?(D=e[1],j=e[2]):(D=()=>{w(n)},j=[n],e[0]=n,e[1]=D,e[2]=j),(0,x.useEffect)(D,j);let k=u==="horizontal"?"left":"top",N=p&&"my-1 w-full",S;e[3]===N?S=e[4]:(S=U(N),e[3]=N,e[4]=S);let y=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",C;e[5]===y?C=e[6]:(C=U("flex items-center gap-2",y),e[5]=y,e[6]=C);let _=!p&&"data-[orientation=horizontal]:w-36 ",E;e[7]===_?E=e[8]:(E=U("relative flex items-center select-none",_,"data-[orientation=vertical]:h-36"),e[7]=_,e[8]=E);let T;e[9]===b?T=e[10]:(T=[b],e[9]=b,e[10]=T);let P,R;e[11]!==d||e[12]!==r?(P=z=>{let[L]=z;w(L),d||r(L)},R=z=>{let[L]=z;d&&r(L)},e[11]=d,e[12]=r,e[13]=P,e[14]=R):(P=e[13],R=e[14]);let F;e[15]!==g||e[16]!==f||e[17]!==u||e[18]!==i||e[19]!==o||e[20]!==l||e[21]!==T||e[22]!==P||e[23]!==R||e[24]!==E||e[25]!==m?(F=(0,s.jsx)(Js,{id:f,className:E,value:T,min:i,max:l,step:o,orientation:u,onValueChange:P,onValueCommit:R,valueMap:m,disabled:g}),e[15]=g,e[16]=f,e[17]=u,e[18]=i,e[19]=o,e[20]=l,e[21]=T,e[22]=P,e[23]=R,e[24]=E,e[25]=m,e[26]=F):F=e[26];let I;e[27]!==b||e[28]!==v||e[29]!==c||e[30]!==m?(I=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:Gr(m(b),{locale:v})}),e[27]=b,e[28]=v,e[29]=c,e[30]=m,e[31]=I):I=e[31];let V;e[32]!==d||e[33]!==g||e[34]!==h||e[35]!==b||e[36]!==a||e[37]!==r||e[38]!==i||e[39]!==o||e[40]!==l||e[41]!==m?(V=h&&(0,s.jsx)(Fu,{value:m(b),onChange:z=>{(z==null||Number.isNaN(z))&&(z=Number(i)),w(z),d||r(z)},minValue:i,maxValue:l,step:o,className:"w-24","aria-label":`${a||"Slider"} value input`,isDisabled:g}),e[32]=d,e[33]=g,e[34]=h,e[35]=b,e[36]=a,e[37]=r,e[38]=i,e[39]=o,e[40]=l,e[41]=m,e[42]=V):V=e[42];let A;e[43]!==F||e[44]!==I||e[45]!==V||e[46]!==C?(A=(0,s.jsxs)("div",{className:C,children:[F,I,V]}),e[43]=F,e[44]=I,e[45]=V,e[46]=C,e[47]=A):A=e[47];let O;return e[48]!==p||e[49]!==f||e[50]!==a||e[51]!==A||e[52]!==k||e[53]!==S?(O=(0,s.jsx)(Le,{label:a,id:f,align:k,fullWidth:p,className:S,children:A}),e[48]=p,e[49]=f,e[50]=a,e[51]=A,e[52]=k,e[53]=S,e[54]=O):O=e[54],O},ON=J(),$N=class{constructor(){q(this,"tagName","marimo-switch");q(this,"validator",$({initialValue:W(),label:M().nullable(),disabled:W().optional()}))}render(t){return(0,s.jsx)(LN,{...t})}},LN=t=>{let e=(0,ON.c)(9),{value:a,setValue:r,data:n}=t,i=(0,x.useId)(),l;e[0]!==n.disabled||e[1]!==i||e[2]!==r||e[3]!==a?(l=(0,s.jsx)(V_,{"data-testid":"marimo-plugin-switch",checked:a,onCheckedChange:r,id:i,className:"data-[state=unchecked]:hover:bg-input/80 mb-0",disabled:n.disabled}),e[0]=n.disabled,e[1]=i,e[2]=r,e[3]=a,e[4]=l):l=e[4];let o;return e[5]!==n.label||e[6]!==i||e[7]!==l?(o=(0,s.jsx)(Le,{label:n.label,align:"right",id:i,labelClassName:"ml-1",children:l}),e[5]=n.label,e[6]=i,e[7]=l,e[8]=o):o=e[8],o},BN=J(),HN=class{constructor(){q(this,"tagName","marimo-tabs");q(this,"validator",$({tabs:ee(M())}))}render(t){return(0,s.jsx)(WN,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},WN=t=>{let e=(0,BN.c)(13),{tabs:a,value:r,setValue:n,children:i}=t,[l,o]=x.useState(r||"0"),d;e[0]===n?d=e[1]:(d=g=>{o(g),n(g)},e[0]=n,e[1]=d);let u=d;r!==l&&r&&o(r);let c;e[2]===a?c=e[3]:(c=a.map(UN),e[2]=a,e[3]=c);let p;e[4]===c?p=e[5]:(p=(0,s.jsx)(Xn,{children:c}),e[4]=c,e[5]=p);let m;e[6]===i?m=e[7]:(m=x.Children.map(i,KN),e[6]=i,e[7]=m);let h;return e[8]!==u||e[9]!==l||e[10]!==p||e[11]!==m?(h=(0,s.jsxs)(ei,{value:l,onValueChange:u,children:[p,m]}),e[8]=u,e[9]=l,e[10]=p,e[11]=m,e[12]=h):h=e[12],h};function UN(t,e){return(0,s.jsx)(la,{value:e.toString(),children:Me({html:t})},e)}function KN(t,e){return(0,s.jsx)(oa,{value:e.toString(),children:t})}var ZN=J(),qN=class{constructor(){q(this,"tagName","marimo-text-area");q(this,"validator",$({initialValue:M(),placeholder:M(),label:M().nullable(),maxLength:Y().optional(),minLength:Y().optional(),disabled:W().optional(),debounce:A1(Se([W(),Y()])),rows:Y().default(4),fullWidth:W().default(!1)}))}render(t){return(0,s.jsx)(YN,{...t.data,value:t.value,setValue:t.setValue})}},YN=t=>{let e=(0,ZN.c)(57),a;e[0]!==t.maxLength||e[1]!==t.value?(a=t.maxLength?(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[0]=t.maxLength,e[1]=t.value,e[2]=a):a=e[2];let r=a;if(t.debounce===!0){let p=t.label,m=t.fullWidth,h;e[3]===t.fullWidth?h=e[4]:(h=U("font-code",{"w-full":t.fullWidth}),e[3]=t.fullWidth,e[4]=h);let g=t.minLength!=null&&t.minLength>0,f;e[5]!==r||e[6]!==t.disabled||e[7]!==t.maxLength||e[8]!==t.minLength||e[9]!==t.placeholder||e[10]!==t.rows||e[11]!==t.setValue||e[12]!==t.value||e[13]!==h||e[14]!==g?(f=(0,s.jsx)(MR,{className:h,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:r,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder}),e[5]=r,e[6]=t.disabled,e[7]=t.maxLength,e[8]=t.minLength,e[9]=t.placeholder,e[10]=t.rows,e[11]=t.setValue,e[12]=t.value,e[13]=h,e[14]=g,e[15]=f):f=e[15];let v;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==f?(v=(0,s.jsx)(Le,{label:p,align:"top",fullWidth:m,children:f}),e[16]=t.fullWidth,e[17]=t.label,e[18]=f,e[19]=v):v=e[19],v}if(typeof t.debounce=="number"){let p=t.label,m=t.fullWidth,h;e[20]===t.fullWidth?h=e[21]:(h=U("font-code",{"w-full":t.fullWidth}),e[20]=t.fullWidth,e[21]=h);let g=t.minLength!=null&&t.minLength>0,f;e[22]!==r||e[23]!==t.debounce||e[24]!==t.disabled||e[25]!==t.maxLength||e[26]!==t.minLength||e[27]!==t.placeholder||e[28]!==t.rows||e[29]!==t.setValue||e[30]!==t.value||e[31]!==h||e[32]!==g?(f=(0,s.jsx)(VR,{className:h,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:r,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder,delay:t.debounce}),e[22]=r,e[23]=t.debounce,e[24]=t.disabled,e[25]=t.maxLength,e[26]=t.minLength,e[27]=t.placeholder,e[28]=t.rows,e[29]=t.setValue,e[30]=t.value,e[31]=h,e[32]=g,e[33]=f):f=e[33];let v;return e[34]!==t.fullWidth||e[35]!==t.label||e[36]!==f?(v=(0,s.jsx)(Le,{label:p,align:"top",fullWidth:m,children:f}),e[34]=t.fullWidth,e[35]=t.label,e[36]=f,e[37]=v):v=e[37],v}let n=t.label,i=t.fullWidth,l;e[38]===t.fullWidth?l=e[39]:(l=U("font-code",{"w-full":t.fullWidth}),e[38]=t.fullWidth,e[39]=l);let o=t.minLength!=null&&t.minLength>0,d;e[40]===t?d=e[41]:(d=p=>t.setValue(p.target.value),e[40]=t,e[41]=d);let u;e[42]!==r||e[43]!==t.disabled||e[44]!==t.maxLength||e[45]!==t.minLength||e[46]!==t.placeholder||e[47]!==t.rows||e[48]!==t.value||e[49]!==l||e[50]!==o||e[51]!==d?(u=(0,s.jsx)(FR,{className:l,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:o,disabled:t.disabled,bottomAdornment:r,value:t.value,onInput:d,placeholder:t.placeholder}),e[42]=r,e[43]=t.disabled,e[44]=t.maxLength,e[45]=t.minLength,e[46]=t.placeholder,e[47]=t.rows,e[48]=t.value,e[49]=l,e[50]=o,e[51]=d,e[52]=u):u=e[52];let c;return e[53]!==t.fullWidth||e[54]!==t.label||e[55]!==u?(c=(0,s.jsx)(Le,{label:n,align:"top",fullWidth:i,children:u}),e[53]=t.fullWidth,e[54]=t.label,e[55]=u,e[56]=c):c=e[56],c},GN=J(),QN=class{constructor(){q(this,"tagName","marimo-text");q(this,"validator",$({initialValue:M(),placeholder:M(),label:M().nullable(),kind:ye(["text","password","email","url"]).default("text"),maxLength:Y().optional(),minLength:Y().optional(),fullWidth:W().default(!1),disabled:W().optional(),debounce:A1(Se([W(),Y()]))}))}render(t){return(0,s.jsx)(JN,{...t.data,value:t.value,setValue:t.setValue})}},JN=t=>{let e=(0,GN.c)(66),[a,r]=(0,x.useState)(t.value),n=a??t.value,i=XN(t.kind,n),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={text:null,password:(0,s.jsx)(mR,{size:16}),email:(0,s.jsx)(PT,{size:16}),url:(0,s.jsx)(uR,{size:16})},e[0]=l):l=e[0];let o=l,d;e[1]!==t.maxLength||e[2]!==t.value?(d=t.maxLength?(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[1]=t.maxLength,e[2]=t.value,e[3]=d):d=e[3];let u=d;if(t.debounce===!0){let C=t.label,_=t.fullWidth,E=t.kind,T=o[t.kind],P=t.placeholder,R=t.maxLength,F=t.minLength,I=t.minLength!=null&&t.minLength>0,V=t.disabled,A=!i,O;e[4]!==t.fullWidth||e[5]!==A?(O=U({"border-destructive":A,"w-full":t.fullWidth}),e[4]=t.fullWidth,e[5]=A,e[6]=O):O=e[6];let z;e[7]!==u||e[8]!==t.disabled||e[9]!==t.kind||e[10]!==t.maxLength||e[11]!==t.minLength||e[12]!==t.placeholder||e[13]!==t.setValue||e[14]!==t.value||e[15]!==O||e[16]!==T||e[17]!==I?(z=(0,s.jsx)(jR,{"data-testid":"marimo-plugin-text-input",type:E,icon:T,placeholder:P,maxLength:R,minLength:F,required:I,disabled:V,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue}),e[7]=u,e[8]=t.disabled,e[9]=t.kind,e[10]=t.maxLength,e[11]=t.minLength,e[12]=t.placeholder,e[13]=t.setValue,e[14]=t.value,e[15]=O,e[16]=T,e[17]=I,e[18]=z):z=e[18];let L;return e[19]!==t.fullWidth||e[20]!==t.label||e[21]!==z?(L=(0,s.jsx)(Le,{label:C,fullWidth:_,children:z}),e[19]=t.fullWidth,e[20]=t.label,e[21]=z,e[22]=L):L=e[22],L}if(typeof t.debounce=="number"){let C=t.label,_=t.fullWidth,E=t.kind,T=o[t.kind],P=t.placeholder,R=t.maxLength,F=t.minLength,I=t.minLength!=null&&t.minLength>0,V=t.disabled,A=!i,O;e[23]!==t.fullWidth||e[24]!==A?(O=U({"border-destructive":A,"w-full":t.fullWidth}),e[23]=t.fullWidth,e[24]=A,e[25]=O):O=e[25];let z;e[26]===Symbol.for("react.memo_cache_sentinel")?(z=Q=>r(Q.currentTarget.value),e[26]=z):z=e[26];let L;e[27]!==u||e[28]!==t.debounce||e[29]!==t.disabled||e[30]!==t.kind||e[31]!==t.maxLength||e[32]!==t.minLength||e[33]!==t.placeholder||e[34]!==t.setValue||e[35]!==t.value||e[36]!==O||e[37]!==T||e[38]!==I?(L=(0,s.jsx)(zu,{"data-testid":"marimo-plugin-text-input",type:E,icon:T,placeholder:P,maxLength:R,minLength:F,required:I,disabled:V,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue,onBlur:z,delay:t.debounce}),e[27]=u,e[28]=t.debounce,e[29]=t.disabled,e[30]=t.kind,e[31]=t.maxLength,e[32]=t.minLength,e[33]=t.placeholder,e[34]=t.setValue,e[35]=t.value,e[36]=O,e[37]=T,e[38]=I,e[39]=L):L=e[39];let G;return e[40]!==t.fullWidth||e[41]!==t.label||e[42]!==L?(G=(0,s.jsx)(Le,{label:C,fullWidth:_,children:L}),e[40]=t.fullWidth,e[41]=t.label,e[42]=L,e[43]=G):G=e[43],G}let c=t.label,p=t.fullWidth,m=t.kind,h=o[t.kind],g=t.placeholder,f=t.maxLength,v=t.minLength,b=t.minLength!=null&&t.minLength>0,w=t.disabled,D=!i,j;e[44]!==t.fullWidth||e[45]!==D?(j=U({"border-destructive":D,"w-full":t.fullWidth}),e[44]=t.fullWidth,e[45]=D,e[46]=j):j=e[46];let k;e[47]===t?k=e[48]:(k=C=>t.setValue(C.currentTarget.value),e[47]=t,e[48]=k);let N;e[49]===Symbol.for("react.memo_cache_sentinel")?(N=C=>r(C.currentTarget.value),e[49]=N):N=e[49];let S;e[50]!==u||e[51]!==t.disabled||e[52]!==t.kind||e[53]!==t.maxLength||e[54]!==t.minLength||e[55]!==t.placeholder||e[56]!==t.value||e[57]!==j||e[58]!==k||e[59]!==h||e[60]!==b?(S=(0,s.jsx)(Vu,{"data-testid":"marimo-plugin-text-input",type:m,icon:h,placeholder:g,maxLength:f,minLength:v,required:b,disabled:w,className:j,endAdornment:u,value:t.value,onInput:k,onBlur:N}),e[50]=u,e[51]=t.disabled,e[52]=t.kind,e[53]=t.maxLength,e[54]=t.minLength,e[55]=t.placeholder,e[56]=t.value,e[57]=j,e[58]=k,e[59]=h,e[60]=b,e[61]=S):S=e[61];let y;return e[62]!==t.fullWidth||e[63]!==t.label||e[64]!==S?(y=(0,s.jsx)(Le,{label:c,fullWidth:p,children:S}),e[62]=t.fullWidth,e[63]=t.label,e[64]=S,e[65]=y):y=e[65],y};function XN(t,e){if(!e)return!0;switch(t){case"email":return M().email().safeParse(e).success;case"url":return M().url().safeParse(e).success;default:return!0}}var e5=x.lazy(()=>yt(()=>import("./vega-component-D3ylM3tt.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([357,137,14,138,139,140,141,29,77,7,8,9,10,11,12,13,15,16,17,23,20,34,25,26,27,28,30,31,32,33,35,36,98,358,99,79,96,161,45,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,59,21,124,359,64,65,42]),import.meta.url)),t5=class{constructor(){q(this,"tagName","marimo-vega");q(this,"validator",$({spec:$({}).passthrough().transform(t=>t),chartSelection:Se([W(),He("point"),He("interval")]).default(!0),fieldSelection:Se([W(),ee(M())]).default(!0),embedOptions:$({}).passthrough().default({})}))}render(t){return(0,s.jsx)(Nt,{children:(0,s.jsx)(e5,{value:t.value,setValue:t.setValue,...t.data})})}},a5=J(),r5=class{constructor(){q(this,"tagName","marimo-accordion");q(this,"validator",$({labels:ee(M()),multiple:W()}))}render(t){return(0,s.jsx)(n5,{...t.data,children:t.children})}},n5=t=>{let e=(0,a5.c)(8),{labels:a,multiple:r,children:n}=t,i=r?"multiple":"single",l;if(e[0]!==n||e[1]!==a){let d;e[3]===a?d=e[4]:(d=(u,c)=>(0,s.jsxs)(Kv,{value:c.toString(),children:[(0,s.jsx)(Uv,{className:"py-2 text-md",children:Me({html:a[c]})}),(0,s.jsx)(Zv,{className:"text-md",children:u})]},c),e[3]=a,e[4]=d),l=x.Children.map(n,d),e[0]=n,e[1]=a,e[2]=l}else l=e[2];let o;return e[5]!==l||e[6]!==i?(o=(0,s.jsx)(Zu,{type:i,className:"text-muted-foreground",collapsible:!0,children:l}),e[5]=l,e[6]=i,e[7]=o):o=e[7],o};const i5=Vl("border rounded-lg p-12 mt-12 mb-12 text-foreground shadow-[4px_4px_0px_0px]",{variants:{kind:{neutral:"border-(--slate-9) shadow-(color:--slate-8)",alert:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",info:"bg-(--sky-1) border-(--sky-8) shadow-(color:--sky-7)",danger:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",warn:"bg-(--amber-2) border-(--amber-9) shadow-(color:--amber-8)",success:"bg-(--grass-2) border-(--grass-9) shadow-(color:--grass-8)"}},defaultVariants:{kind:"neutral"}});var l5=J();const m1=(0,x.memo)(t=>{let e=(0,l5.c)(7),{html:a,kind:r}=t,n;e[0]===r?n=e[1]:(n=i5({kind:r}),e[0]=r,e[1]=n);let i;e[2]===a?i=e[3]:(i=(0,s.jsx)(q_,{html:a,alwaysSanitizeHtml:!0}),e[2]=a,e[3]=i);let l;return e[4]!==n||e[5]!==i?(l=(0,s.jsx)("div",{className:n,children:i}),e[4]=n,e[5]=i,e[6]=l):l=e[6],l});m1.displayName="CalloutOutput";var o5=class{constructor(){q(this,"tagName","marimo-callout-output");q(this,"validator",$({html:M(),kind:s0}))}render({data:t}){return(0,s.jsx)(m1,{html:t.html,kind:t.kind})}},s5=':root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/44*27);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{object-fit:contain;transform-origin:50%;width:100%;height:100%}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);font-variant:normal;letter-spacing:0;line-height:1;text-transform:none!important}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{left:auto;right:var(--swiper-navigation-sides-offset,10px)}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}',d5=".swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block}button.swiper-pagination-bullet{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-pagination-lock{display:none}",u5=".swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}",c5='.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}',m5='@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',p5=class{constructor(){q(this,"tagName","marimo-carousel");q(this,"validator",$({index:M().nullish(),height:Se([M(),Y()]).nullish()}));q(this,"cssStyles",[m5,c5,s5,d5,u5])}render(t){return(0,s.jsx)(h5,{...t.data,wrapAround:!0,children:t.children})}},h5=x.lazy(()=>yt(()=>import("./slides-component-HNyCCgoE.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([360,13,14,15,9,10,11,7,8,12,160,47,46,30,361]),import.meta.url));const f5=Ft("marimo-download").withData($({data:M(),disabled:W().default(!1),filename:M().nullish(),label:M().nullish(),lazy:W().default(!1)})).withFunctions({load:Ye.input($({})).output($({data:M(),filename:M().nullish()}))}).renderer(t=>(0,s.jsx)(g5,{data:t.data,...t.functions}));var g5=({data:t,load:e})=>{let[a,r]=(0,x.useState)(!1),n=async o=>{if(t.lazy&&!t.disabled){o.preventDefault(),r(!0);try{let d=await e({});QT(d.data,d.filename||t.filename||"download")}catch(d){Wt({title:"Failed to download",description:"Please try again."}),se.error("Failed to download:",d)}finally{r(!1)}}},i=a?Ll:lR,l=t.label?Me({html:t.label}):"Download";return(0,s.jsxs)("a",{href:t.data,download:t.filename||!0,target:"_blank",rel:"noopener noreferrer",onClick:n,className:Oa({variant:"secondary",disabled:t.disabled||a}),children:[(0,s.jsx)(i,{className:U("w-3 h-3",t.label&&"mr-2",a&&"animate-spin")}),l]})},x5=x.lazy(()=>yt(()=>import("./ImageComparisonComponent-DiKQQS5x.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([362,9,10,11,12]),import.meta.url)),v5=class{constructor(){q(this,"tagName","marimo-image-comparison");q(this,"validator",$({beforeSrc:M(),afterSrc:M(),value:Y().min(0).max(100).default(50),direction:ye(["horizontal","vertical"]).default("horizontal"),width:M().optional(),height:M().optional()}))}render(t){return(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading image comparison..."}),children:(0,s.jsx)(x5,{...t.data})})}},y5=class{constructor(){q(this,"tagName","marimo-json-output");q(this,"validator",$({name:M().nullish(),jsonData:va(),valueTypes:ye(["json","python"]).default("python")}))}render({data:t,host:e}){let a=t.name===void 0?!1:t.name||"";return(0,s.jsx)(X1,{container:e.shadowRoot,children:(0,s.jsx)(ev,{data:t.jsonData,format:"auto",valueTypes:t.valueTypes,name:a})})}},b5=J();const w5=Ft("marimo-lazy").withData($({showLoadingIndicator:W().default(!1)})).withFunctions({load:Ye.input($({})).output($({html:M()}))}).renderer(t=>(0,s.jsx)(D5,{value:t.value,setValue:t.setValue,...t.data,...t.functions}));var D5=t=>{let e=(0,b5.c)(15),{load:a,showLoadingIndicator:r,value:n,setValue:i}=t,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={threshold:0,root:null,rootMargin:"0px"},e[0]=l):l=e[0];let[o,d]=U_(l);d!=null&&d.isIntersecting&&!n&&i(!0);let u;e[1]!==a||e[2]!==n?(u=v=>n?a({}):(v.previous(),Promise.resolve(void 0)),e[1]=a,e[2]=n,e[3]=u):u=e[3];let c;e[4]===n?c=e[5]:(c=[n],e[4]=n,e[5]=c);let{data:p,error:m,isPending:h}=Et(u,c);if(m){let v;return e[6]===m?v=e[7]:(v=(0,s.jsx)(Qr,{error:m}),e[6]=m,e[7]=v),v}let g;e[8]!==p||e[9]!==h||e[10]!==r?(g=h&&r?(0,s.jsx)(Ll,{className:"w-12 h-12 animate-spin text-primary my-4 mx-4"}):p&&Me({html:p.html}),e[8]=p,e[9]=h,e[10]=r,e[11]=g):g=e[11];let f;return e[12]!==o||e[13]!==g?(f=(0,s.jsx)("div",{ref:o,className:"min-h-4",children:g}),e[12]=o,e[13]=g,e[14]=f):f=e[14],f},j5=class{constructor(){q(this,"tagName","marimo-mime-renderer");q(this,"validator",$({mime:M().transform(t=>t),data:Se([M(),sr(),ft(M(),va()),ee(Ht())]).transform(t=>t)}))}render({data:t}){return t.data?(0,s.jsx)(rT,{message:{data:t.data,channel:"output",mimetype:t.mime}}):(0,s.jsx)("div",{})}},C5=class{constructor(){q(this,"tagName","marimo-mermaid");q(this,"validator",$({diagram:M()}))}render(t){return(0,s.jsx)(k5,{diagram:t.data.diagram})}},k5=(0,x.lazy)(()=>yt(()=>import("./mermaid-D5KHoN__.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([363,14,26,27,28,29,9,10,11,98,30,45,25,31,32,33,364,365,366,367,342,368,353,351,369,5,159,103,154,370,371,372,373,374,375,376,377,354,347,352,378,379,380,12]),import.meta.url)),S5=J(),N5=t=>{let e=(0,S5.c)(12),{label:a}=t,{items:r}=Il(VE),n;e[0]===r?n=e[1]:(n=l6(r),e[0]=r,e[1]=n);let{activeHeaderId:i,activeOccurrences:l}=n6(n);if(r.length===0){let c;return e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("div",{className:"text-muted-foreground text-sm p-4 border border-dashed border-border rounded-lg",children:"No outline found. Add markdown headings to your notebook to create an outline."}),e[2]=c):c=e[2],c}let o;e[3]===a?o=e[4]:(o=a&&(0,s.jsx)("div",{className:"px-4 py-2 border-b border-border font-medium text-sm",children:a}),e[3]=a,e[4]=o);let d;e[5]!==i||e[6]!==l||e[7]!==r?(d=(0,s.jsx)(i6,{className:"max-h-[400px]",items:r,activeHeaderId:i,activeOccurrences:l}),e[5]=i,e[6]=l,e[7]=r,e[8]=d):d=e[8];let u;return e[9]!==o||e[10]!==d?(u=(0,s.jsxs)("div",{className:"border border-border rounded-lg",children:[o,d]}),e[9]=o,e[10]=d,e[11]=u):u=e[11],u},E5=class{constructor(){q(this,"tagName","marimo-outline");q(this,"validator",$({label:M().optional()}))}render(t){let{label:e}=t.data;return(0,s.jsx)(Rl,{store:Oe,children:(0,s.jsx)(N5,{label:e})})}},_5=xa(cu(((t,e)=>{(function(){var a=Object.assign||function(y){for(var C,_=1;_=2?"s":"")},"mois",function(y){return"semaine"+(y>=2?"s":"")},function(y){return"jour"+(y>=2?"s":"")},function(y){return"heure"+(y>=2?"s":"")},function(y){return"minute"+(y>=2?"s":"")},function(y){return"seconde"+(y>=2?"s":"")},function(y){return"milliseconde"+(y>=2?"s":"")},","),gr:n,he:d(["\u05E9\u05E0\u05D4","\u05E9\u05E0\u05D9\u05DD"],["\u05D7\u05D5\u05D3\u05E9","\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD"],["\u05E9\u05D1\u05D5\u05E2","\u05E9\u05D1\u05D5\u05E2\u05D5\u05EA"],["\u05D9\u05D5\u05DD","\u05D9\u05DE\u05D9\u05DD"],["\u05E9\u05E2\u05D4","\u05E9\u05E2\u05D5\u05EA"],["\u05D3\u05E7\u05D4","\u05D3\u05E7\u05D5\u05EA"],["\u05E9\u05E0\u05D9\u05D4","\u05E9\u05E0\u05D9\u05D5\u05EA"],["\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4","\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D5\u05EA"]),hr:l(function(y){return y%10==2||y%10==3||y%10==4?"godine":"godina"},function(y){return y===1?"mjesec":y===2||y===3||y===4?"mjeseca":"mjeseci"},function(y){return y%10==1&&y!==11?"tjedan":"tjedna"},o(["dan","dana"]),function(y){return y===1?"sat":y===2||y===3||y===4?"sata":"sati"},function(y){var C=y%10;return(C===2||C===3||C===4)&&(y<10||y>14)?"minute":"minuta"},function(y){var C=y%10;return C===5||Math.floor(y)===y&&y>=10&&y<=19?"sekundi":C===1?"sekunda":C===2||C===3||C===4?"sekunde":"sekundi"},function(y){return y===1?"milisekunda":y%10==2||y%10==3||y%10==4?"milisekunde":"milisekundi"},","),hi:l("\u0938\u093E\u0932",o(["\u092E\u0939\u0940\u0928\u093E","\u092E\u0939\u0940\u0928\u0947"]),o(["\u0939\u095E\u094D\u0924\u093E","\u0939\u092B\u094D\u0924\u0947"]),"\u0926\u093F\u0928",o(["\u0918\u0902\u091F\u093E","\u0918\u0902\u091F\u0947"]),"\u092E\u093F\u0928\u091F","\u0938\u0947\u0915\u0902\u0921","\u092E\u093F\u0932\u0940\u0938\u0947\u0915\u0902\u0921"),hu:l("\xE9v","h\xF3nap","h\xE9t","nap","\xF3ra","perc","m\xE1sodperc","ezredm\xE1sodperc",","),id:l("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:d(["\xE1r","\xE1r"],["m\xE1nu\xF0ur","m\xE1nu\xF0ir"],["vika","vikur"],["dagur","dagar"],["klukkut\xEDmi","klukkut\xEDmar"],["m\xEDn\xFAta","m\xEDn\xFAtur"],["sek\xFAnda","sek\xFAndur"],["millisek\xFAnda","millisek\xFAndur"]),it:d(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:l("\u5E74","\u30F6\u6708","\u9031\u9593","\u65E5","\u6642\u9593","\u5206","\u79D2","\u30DF\u30EA\u79D2"),km:l("\u1786\u17D2\u1793\u17B6\u17C6","\u1781\u17C2","\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD","\u1790\u17D2\u1784\u17C3","\u1798\u17C9\u17C4\u1784","\u1793\u17B6\u1791\u17B8","\u179C\u17B7\u1793\u17B6\u1791\u17B8","\u1798\u17B7\u179B\u17D2\u179B\u17B8\u179C\u17B7\u1793\u17B6\u1791\u17B8"),kn:d(["\u0CB5\u0CB0\u0CCD\u0CB7","\u0CB5\u0CB0\u0CCD\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1","\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CB5\u0CBE\u0CB0","\u0CB5\u0CBE\u0CB0\u0C97\u0CB3\u0CC1"],["\u0CA6\u0CBF\u0CA8","\u0CA6\u0CBF\u0CA8\u0C97\u0CB3\u0CC1"],["\u0C97\u0C82\u0C9F\u0CC6","\u0C97\u0C82\u0C9F\u0CC6\u0C97\u0CB3\u0CC1"],["\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7","\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"]),ko:l("\uB144","\uAC1C\uC6D4","\uC8FC\uC77C","\uC77C","\uC2DC\uAC04","\uBD84","\uCD08","\uBC00\uB9AC \uCD08"),ku:l("sal","meh","hefte","roj","seet","deqe","saniye","m\xEEl\xEE\xE7irk",","),lo:l("\u0E9B\u0EB5","\u0EC0\u0E94\u0EB7\u0EAD\u0E99","\u0EAD\u0EB2\u0E97\u0EB4\u0E94","\u0EA1\u0EB7\u0EC9","\u0E8A\u0EBB\u0EC8\u0EA7\u0EC2\u0EA1\u0E87","\u0E99\u0EB2\u0E97\u0EB5","\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5","\u0EA1\u0EB4\u0E99\u0EA5\u0EB4\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5",","),lt:l(function(y){return y%10==0||y%100>=10&&y%100<=20?"met\u0173":"metai"},function(y){return["m\u0117nuo","m\u0117nesiai","m\u0117nesi\u0173"][f(y)]},function(y){return["savait\u0117","savait\u0117s","savai\u010Di\u0173"][f(y)]},function(y){return["diena","dienos","dien\u0173"][f(y)]},function(y){return["valanda","valandos","valand\u0173"][f(y)]},function(y){return["minut\u0117","minut\u0117s","minu\u010Di\u0173"][f(y)]},function(y){return["sekund\u0117","sekund\u0117s","sekund\u017Ei\u0173"][f(y)]},function(y){return["milisekund\u0117","milisekund\u0117s","milisekund\u017Ei\u0173"][f(y)]},","),lv:l(function(y){return v(y)?"gads":"gadi"},function(y){return v(y)?"m\u0113nesis":"m\u0113ne\u0161i"},function(y){return v(y)?"ned\u0113\u013Ca":"ned\u0113\u013Cas"},function(y){return v(y)?"diena":"dienas"},function(y){return v(y)?"stunda":"stundas"},function(y){return v(y)?"min\u016Bte":"min\u016Btes"},function(y){return v(y)?"sekunde":"sekundes"},function(y){return v(y)?"milisekunde":"milisekundes"},","),mk:d(["\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0438"],["\u043D\u0435\u0434\u0435\u043B\u0430","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u0435\u043D","\u0434\u0435\u043D\u0430"],["\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],","),mn:l("\u0436\u0438\u043B","\u0441\u0430\u0440","\u0434\u043E\u043B\u043E\u043E \u0445\u043E\u043D\u043E\u0433","\u04E9\u0434\u04E9\u0440","\u0446\u0430\u0433","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),mr:l(o(["\u0935\u0930\u094D\u0937","\u0935\u0930\u094D\u0937\u0947"]),o(["\u092E\u0939\u093F\u0928\u093E","\u092E\u0939\u093F\u0928\u0947"]),o(["\u0906\u0920\u0935\u0921\u093E","\u0906\u0920\u0935\u0921\u0947"]),"\u0926\u093F\u0935\u0938","\u0924\u093E\u0938",o(["\u092E\u093F\u0928\u093F\u091F","\u092E\u093F\u0928\u093F\u091F\u0947"]),"\u0938\u0947\u0915\u0902\u0926","\u092E\u093F\u0932\u093F\u0938\u0947\u0915\u0902\u0926"),ms:l("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:d(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:l(function(y){return["rok","roku","lata","lat"][h(y)]},function(y){return["miesi\u0105c","miesi\u0105ca","miesi\u0105ce","miesi\u0119cy"][h(y)]},function(y){return["tydzie\u0144","tygodnia","tygodnie","tygodni"][h(y)]},function(y){return["dzie\u0144","dnia","dni","dni"][h(y)]},function(y){return["godzina","godziny","godziny","godzin"][h(y)]},function(y){return["minuta","minuty","minuty","minut"][h(y)]},function(y){return["sekunda","sekundy","sekundy","sekund"][h(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisekund"][h(y)]},","),pt:d(["ano","anos"],["m\xEAs","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:l(u("an","ani","de ani"),u("lun\u0103","luni","de luni"),u("s\u0103pt\u0103m\xE2n\u0103","s\u0103pt\u0103m\xE2ni","de s\u0103pt\u0103m\xE2ni"),u("zi","zile","de zile"),u("or\u0103","ore","de ore"),u("minut","minute","de minute"),u("secund\u0103","secunde","de secunde"),u("milisecund\u0103","milisecunde","de milisecunde"),","),ru:p(["\u043B\u0435\u0442","\u0433\u043E\u0434","\u0433\u043E\u0434\u0430"],["\u043C\u0435\u0441\u044F\u0446\u0435\u0432","\u043C\u0435\u0441\u044F\u0446","\u043C\u0435\u0441\u044F\u0446\u0430"],["\u043D\u0435\u0434\u0435\u043B\u044C","\u043D\u0435\u0434\u0435\u043B\u044F","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u043D\u0435\u0439","\u0434\u0435\u043D\u044C","\u0434\u043D\u044F"],["\u0447\u0430\u0441\u043E\u0432","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u044B"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u044B"],["\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B"]),sq:l(o(["vit","vjet"]),"muaj","jav\xEB","dit\xEB","or\xEB",function(y){return"minut"+(y===1?"\xEB":"a")},function(y){return"sekond"+(y===1?"\xEB":"a")},function(y){return"milisekond"+(y===1?"\xEB":"a")},","),sr:p(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0435"],["\u043C\u0435\u0441\u0435\u0446\u0438","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u043D\u0435\u0434\u0435\u0459\u0438","\u043D\u0435\u0434\u0435\u0459\u0430","\u043D\u0435\u0434\u0435\u0459\u0435"],["\u0434\u0430\u043D\u0438","\u0434\u0430\u043D","\u0434\u0430\u043D\u0430"],["\u0441\u0430\u0442\u0438","\u0441\u0430\u0442","\u0441\u0430\u0442\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0435"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0435"]),sr_Latn:p(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:d(["\u0BB5\u0BB0\u0BC1\u0B9F\u0BAE\u0BCD","\u0B86\u0BA3\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBE\u0BA4\u0BAE\u0BCD","\u0BAE\u0BBE\u0BA4\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBE\u0BB0\u0BAE\u0BCD","\u0BB5\u0BBE\u0BB0\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BA8\u0BBE\u0BB3\u0BCD","\u0BA8\u0BBE\u0B9F\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BA3\u0BBF","\u0BAE\u0BA3\u0BBF\u0BA8\u0BC7\u0BB0\u0BAE\u0BCD"],["\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0BAE\u0BCD","\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF","\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF","\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"]),te:d(["\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02","\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"],["\u0C28\u0C46\u0C32","\u0C28\u0C46\u0C32\u0C32"],["\u0C35\u0C3E\u0C30\u0C02","\u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C41"],["\u0C30\u0C4B\u0C1C\u0C41","\u0C30\u0C4B\u0C1C\u0C41\u0C32\u0C41"],["\u0C17\u0C02\u0C1F","\u0C17\u0C02\u0C1F\u0C32\u0C41"],["\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02","\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32\u0C41"],["\u0C38\u0C46\u0C15\u0C28\u0C41","\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"],["\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D","\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"]),uk:p(["\u0440\u043E\u043A\u0456\u0432","\u0440\u0456\u043A","\u0440\u043E\u043A\u0438"],["\u043C\u0456\u0441\u044F\u0446\u0456\u0432","\u043C\u0456\u0441\u044F\u0446\u044C","\u043C\u0456\u0441\u044F\u0446\u0456"],["\u0442\u0438\u0436\u043D\u0456\u0432","\u0442\u0438\u0436\u0434\u0435\u043D\u044C","\u0442\u0438\u0436\u043D\u0456"],["\u0434\u043D\u0456\u0432","\u0434\u0435\u043D\u044C","\u0434\u043D\u0456"],["\u0433\u043E\u0434\u0438\u043D","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u0445\u0432\u0438\u043B\u0438\u043D","\u0445\u0432\u0438\u043B\u0438\u043D\u0430","\u0445\u0432\u0438\u043B\u0438\u043D\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),ur:l("\u0633\u0627\u0644",o(["\u0645\u06C1\u06CC\u0646\u06C1","\u0645\u06C1\u06CC\u0646\u06D2"]),o(["\u06C1\u0641\u062A\u06C1","\u06C1\u0641\u062A\u06D2"]),"\u062F\u0646",o(["\u06AF\u06BE\u0646\u0679\u06C1","\u06AF\u06BE\u0646\u0679\u06D2"]),"\u0645\u0646\u0679","\u0633\u06CC\u06A9\u0646\u0688","\u0645\u0644\u06CC \u0633\u06CC\u06A9\u0646\u0688"),sk:l(function(y){return["rok","roky","roky","rokov"][g(y)]},function(y){return["mesiac","mesiace","mesiace","mesiacov"][g(y)]},function(y){return["t\xFD\u017Ede\u0148","t\xFD\u017Edne","t\xFD\u017Edne","t\xFD\u017Ed\u0148ov"][g(y)]},function(y){return["de\u0148","dni","dni","dn\xED"][g(y)]},function(y){return["hodina","hodiny","hodiny","hod\xEDn"][g(y)]},function(y){return["min\xFAta","min\xFAty","min\xFAty","min\xFAt"][g(y)]},function(y){return["sekunda","sekundy","sekundy","sek\xFAnd"][g(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisek\xFAnd"][g(y)]},","),sl:l(function(y){return y%10==1?"leto":y%100==2?"leti":y%100==3||y%100==4||Math.floor(y)!==y&&y%100<=5?"leta":"let"},function(y){return y%10==1?"mesec":y%100==2||Math.floor(y)!==y&&y%100<=5?"meseca":y%10==3||y%10==4?"mesece":"mesecev"},function(y){return y%10==1?"teden":y%10==2||Math.floor(y)!==y&&y%100<=4?"tedna":y%10==3||y%10==4?"tedne":"tednov"},function(y){return y%100==1?"dan":"dni"},function(y){return y%10==1?"ura":y%100==2?"uri":y%10==3||y%10==4||Math.floor(y)!==y?"ure":"ur"},function(y){return y%10==1?"minuta":y%10==2?"minuti":y%10==3||y%10==4||Math.floor(y)!==y&&y%100<=4?"minute":"minut"},function(y){return y%10==1?"sekunda":y%100==2?"sekundi":y%100==3||y%100==4||Math.floor(y)!==y?"sekunde":"sekund"},function(y){return y%10==1?"milisekunda":y%100==2?"milisekundi":y%100==3||y%100==4||Math.floor(y)!==y?"milisekunde":"milisekund"},","),sv:d(["\xE5r","\xE5r"],["m\xE5nad","m\xE5nader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:a(d(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:l("y\u0131l","ay","hafta","g\xFCn","saat","dakika","saniye","milisaniye",","),th:l("\u0E1B\u0E35","\u0E40\u0E14\u0E37\u0E2D\u0E19","\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C","\u0E27\u0E31\u0E19","\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07","\u0E19\u0E32\u0E17\u0E35","\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E21\u0E34\u0E25\u0E25\u0E34\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"),uz:l("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:l("\u0439\u0438\u043B","\u043E\u0439","\u04B3\u0430\u0444\u0442\u0430","\u043A\u0443\u043D","\u0441\u043E\u0430\u0442","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),vi:l("n\u0103m","th\xE1ng","tu\u1EA7n","ng\xE0y","gi\u1EDD","ph\xFAt","gi\xE2y","mili gi\xE2y",","),zh_CN:l("\u5E74","\u4E2A\u6708","\u5468","\u5929","\u5C0F\u65F6","\u5206\u949F","\u79D2","\u6BEB\u79D2"),zh_TW:l("\u5E74","\u500B\u6708","\u5468","\u5929","\u5C0F\u6642","\u5206\u9418","\u79D2","\u6BEB\u79D2")};function l(y,C,_,E,T,P,R,F,I){var V={y,mo:C,w:_,d:E,h:T,m:P,s:R,ms:F};return I&&(V.decimal=I),V}function o(y){return function(C){return C===1?y[0]:y[1]}}function d(y,C,_,E,T,P,R,F,I){return l(o(y),o(C),o(_),o(E),o(T),o(P),o(R),o(F),I)}function u(y,C,_){return function(E){if(E===1)return y;if(Math.floor(E)!==E||E===0)return C;var T=E%100;return T>=1&&T<=19?C:_}}function c(y){return function(C){return Math.floor(C)===C?C%100>=5&&C%100<=20||C%10>=5&&C%10<=9||C%10==0?y[0]:C%10==1?y[1]:C>1?y[2]:y[1]:y[2]}}function p(y,C,_,E,T,P,R,F){return l(c(y),c(C),c(_),c(E),c(T),c(P),c(R),c(F),",")}function m(y){return y===2?1:y>2&&y<11?2:0}function h(y){return y===1?0:Math.floor(y)===y?y%10>=2&&y%10<=4&&!(y%100>10&&y%100<20)?2:3:1}function g(y){return y===1?0:Math.floor(y)===y?y%10>=2&&y%10<=4&&y%100<10?2:3:1}function f(y){return y===1||y%10==1&&y%100>20?0:Math.floor(y)!==y||y%10>=2&&y%100>20||y%10>=2&&y%100<10?1:2}function v(y){return y%10==1&&y%100!=11}function b(y,C){return Object.prototype.hasOwnProperty.call(y,C)}function w(y){var C=[y.language];if(b(y,"fallbacks"))if(r(y.fallbacks)&&y.fallbacks.length)C=C.concat(y.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var _=0;_=0;E--)if(_=R[E],T=V[_],T!==0){var Q=Math.round(T);if(V[_]=Q,E===0)break;var ae=R[E-1],ce=F[ae],le=Math.floor(Q*F[_]/ce);if(le)V[ae]+=le,V[_]=0;else break}}var Z=[];for(E=0;E{var b;let{scope:m,children:h,...g}=p,f=((b=m==null?void 0:m[t])==null?void 0:b[d])||o,v=x.useMemo(()=>g,Object.values(g));return(0,s.jsx)(f.Provider,{value:v,children:h})};u.displayName=i+"Provider";function c(p,m){var f;let h=((f=m==null?void 0:m[t])==null?void 0:f[d])||o,g=x.useContext(h);if(g)return g;if(l!==void 0)return l;throw Error(`\`${p}\` must be used within \`${i}\``)}return[u,c]}let n=()=>{let i=a.map(l=>x.createContext(l));return function(l){let o=(l==null?void 0:l[t])||i;return x.useMemo(()=>({[`__scope${t}`]:{...l,[t]:o}}),[l,o])}};return n.scopeName=t,[r,R5(n,...e)]}function R5(...t){let e=t[0];if(t.length===1)return e;let a=()=>{let r=t.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(n){let i=r.reduce((l,{useScope:o,scopeName:d})=>{let u=o(n)[`__scope${d}`];return{...l,...u}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return a.scopeName=e.scopeName,a}var lu="Progress",ou=100,[A5,_6]=T5(lu),[I5,P5]=A5(lu),p1=x.forwardRef((t,e)=>{let{__scopeProgress:a,value:r=null,max:n,getValueLabel:i=M5,...l}=t;(n||n===0)&&!x1(n)&&console.error(F5(`${n}`,"Progress"));let o=x1(n)?n:ou;r!==null&&!v1(r,o)&&console.error(V5(`${r}`,"Progress"));let d=v1(r,o)?r:null,u=Sl(d)?i(d,o):void 0;return(0,s.jsx)(I5,{scope:a,value:d,max:o,children:(0,s.jsx)(qv.div,{"aria-valuemax":o,"aria-valuemin":0,"aria-valuenow":Sl(d)?d:void 0,"aria-valuetext":u,role:"progressbar","data-state":g1(d,o),"data-value":d??void 0,"data-max":o,...l,ref:e})})});p1.displayName=lu;var h1="ProgressIndicator",f1=x.forwardRef((t,e)=>{let{__scopeProgress:a,...r}=t,n=P5(h1,a);return(0,s.jsx)(qv.div,{"data-state":g1(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...r,ref:e})});f1.displayName=h1;function M5(t,e){return`${Math.round(t/e*100)}%`}function g1(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function Sl(t){return typeof t=="number"}function x1(t){return Sl(t)&&!isNaN(t)&&t>0}function v1(t,e){return Sl(t)&&!isNaN(t)&&t<=e&&t>=0}function F5(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ou}\`.`}function V5(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${ou} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`}var y1=p1,z5=f1,O5=J(),b1=x.forwardRef((t,e)=>{let a=(0,O5.c)(13),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,value:i,...n}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]===r?l=a[5]:(l=U("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",r),a[4]=r,a[5]=l);let o=`translateX(-${100-(i||0)}%)`,d;a[6]===o?d=a[7]:(d=(0,s.jsx)(z5,{className:"h-full w-full flex-1 bg-primary transition-all pulse",style:{transform:o}}),a[6]=o,a[7]=d);let u;return a[8]!==n||a[9]!==e||a[10]!==l||a[11]!==d?(u=(0,s.jsx)(y1,{ref:e,className:l,...n,children:d}),a[8]=n,a[9]=e,a[10]=l,a[11]=d,a[12]=u):u=a[12],u});b1.displayName=y1.displayName;var $5=J(),L5=class{constructor(){q(this,"tagName","marimo-progress");q(this,"validator",$({title:M().optional(),subtitle:M().optional(),progress:Se([Y(),W()]),total:Y().optional(),eta:Y().optional(),rate:Y().optional()}))}render(t){return(0,s.jsx)(B5,{...t.data})}};const B5=t=>{let e=(0,$5.c)(24),{title:a,subtitle:r,progress:n,total:i,eta:l,rate:o}=t,d=typeof n=="number"?"items-start":"items-center",u;e[0]!==n||e[1]!==i?(u=()=>typeof n=="number"&&i!=null&&i>0?(0,s.jsxs)("div",{className:"flex gap-3 text-sm text-muted-foreground items-baseline",children:[(0,s.jsx)(b1,{value:H5(n/i*100)}),(0,s.jsxs)("span",{className:"shrink-0",children:[n," / ",i]})]}):(0,s.jsx)(Ll,{className:"w-12 h-12 animate-spin text-primary mx-auto"}),e[0]=n,e[1]=i,e[2]=u):u=e[2];let c=u,p;e[3]!==l||e[4]!==n||e[5]!==o||e[6]!==i?(p=()=>{let j=typeof n=="number"&&i!=null&&n>=i,k=[];if(o&&(o<1?k.push((0,s.jsxs)("span",{children:[su(1/o)," per iter"]},"rate")):k.push((0,s.jsxs)("span",{children:[o," iter/s"]},"rate")),k.push((0,s.jsx)("span",{children:"\xB7"},"spacer-rate"))),!j&&l&&k.push((0,s.jsxs)("span",{children:["ETA ",su(l)]},"eta"),(0,s.jsx)("span",{children:"\xB7"},"spacer-eta")),j&&o){let N=n/o;k.push((0,s.jsxs)("span",{children:["Total time ",su(N)]},"completed"),(0,s.jsx)("span",{children:"\xB7"},"spacer-completed"))}if(k.pop(),k.length>0)return(0,s.jsx)("div",{className:"flex gap-2 text-muted-foreground text-sm",children:k})},e[3]=l,e[4]=n,e[5]=o,e[6]=i,e[7]=p):p=e[7];let m=p,h=`flex flex-col ${d} max-w-sm p-6 mx-auto`,g;e[8]===a?g=e[9]:(g=a&&(0,s.jsx)("div",{className:"text-lg font-bold text-foreground/60",children:Me({html:a})}),e[8]=a,e[9]=g);let f;e[10]===r?f=e[11]:(f=r&&(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:Me({html:r})}),e[10]=r,e[11]=f);let v;e[12]===c?v=e[13]:(v=c(),e[12]=c,e[13]=v);let b;e[14]===m?b=e[15]:(b=m(),e[14]=m,e[15]=b);let w;e[16]!==v||e[17]!==b?(w=(0,s.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-1",children:[v,b]}),e[16]=v,e[17]=b,e[18]=w):w=e[18];let D;return e[19]!==h||e[20]!==g||e[21]!==f||e[22]!==w?(D=(0,s.jsxs)("div",{className:h,children:[g,f,w]}),e[19]=h,e[20]=g,e[21]=f,e[22]=w,e[23]=D):D=e[23],D};function H5(t){return cT(t,0,100)}var W5=_5.default.humanizer({language:"shortEn",languages:{shortEn:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}});function su(t){return W5(t*1e3,{language:"shortEn",largest:2,spacer:"",maxDecimalPoints:t<10?2:0})}var U5=cu((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PathError=t.TokenData=void 0,t.match=c;var e="/",a=v=>v,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function l(v){return v.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var o=class{constructor(v,b){this.tokens=v,this.originalPath=b}};t.TokenData=o;var d=class extends TypeError{constructor(v,b){let w=v;b&&(w+=`: ${b}`),w+="; visit https://git.new/pathToRegexpError for info",super(w),this.originalPath=b}};t.PathError=d;function u(v,b={}){let{encodePath:w=a}=b,D=[...v],j=[],k=0,N=0;function S(){let C="";if(r.test(D[k]))do C+=D[k++];while(n.test(D[k]));else if(D[k]==='"'){let _=k;for(;k++w===!1?a:S.type==="param"?w:y=>y.split(D).map(w));return function(S){let y=j.exec(S);if(!y)return!1;let C=y[0],_=Object.create(null);for(let E=1;E({template:e,pathFunction:(0,U5.match)(e)}))}match(t){for(let{pathFunction:e,template:a}of this.routes){let r=e(t.hash)||e(t.pathname);if(r)return[r,a]}return!1}},Z5=J(),q5=class{constructor(){q(this,"tagName","marimo-routes");q(this,"validator",$({routes:ee(M())}))}render(t){return(0,s.jsx)(Y5,{...t.data,children:t.children})}},Y5=t=>{let e=(0,Z5.c)(14),{routes:a,children:r}=t,n=x.Children.count(r);if(n!==a.length)throw Error(`Expected ${a.length} children, but got ${n}`);let i;e[0]===a?i=e[1]:(i=new K5(a),e[0]=a,e[1]=i);let l=i,o;e[2]===l?o=e[3]:(o=()=>{let w=l.match(window.location);return w?w[1]:null},e[2]=l,e[3]=o);let[d,u]=(0,x.useState)(o),c;e[4]===l?c=e[5]:(c=w=>{let D=l.match(w);u(D?D[1]:null)},e[4]=l,e[5]=c);let p=$e(c),m,h;if(e[6]===p?(m=e[7],h=e[8]):(m=()=>{let w=D=>{p(window.location)};return window.addEventListener("hashchange",w),window.addEventListener("popstate",w),()=>{window.removeEventListener("hashchange",w),window.removeEventListener("popstate",w)}},h=[p],e[6]=p,e[7]=m,e[8]=h),(0,x.useEffect)(m,h),!d){let w;return e[9]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(s.Fragment,{}),e[9]=w):w=e[9],w}let g=a.indexOf(d),f;e[10]===r?f=e[11]:(f=x.Children.toArray(r),e[10]=r,e[11]=f);let v=f[g],b;return e[12]===v?b=e[13]:(b=(0,s.jsx)(s.Fragment,{children:v}),e[12]=v,e[13]=b),b},G5=J(),Q5=class{constructor(){q(this,"tagName","marimo-stat");q(this,"validator",$({value:Se([M(),Y(),W()]).optional(),label:M().optional(),caption:M().optional(),bordered:W().default(!1),direction:ye(["increase","decrease"]).optional(),target_direction:ye(["increase","decrease"]).default("increase"),slot:Ht().optional()}))}render({data:t}){return(0,s.jsx)(J5,{...t})}};const J5=t=>{let e=(0,G5.c)(31),{value:a,label:r,caption:n,bordered:i,direction:l,target_direction:o,slot:d}=t,{locale:u}=qe(),c;e[0]!==u||e[1]!==a?(c=()=>a==null?(0,s.jsx)("i",{children:"No value"}):typeof a=="string"?a:typeof a=="number"?TA(a,u):typeof a=="boolean"?a?"True":"False":String(a),e[0]=u,e[1]=a,e[2]=c):c=e[2];let p=c,m=l===o,h=m?"var(--grass-8)":"var(--red-8)",g=m?"var(--grass-9)":"var(--red-9)",f;e[3]===d?f=e[4]:(f=()=>{let E=W_(d);if(E!=null&&E[0]){let{mimetype:T,data:P}=E[0];return T!=="text/html"&&se.warn(`Expected text/html, got ${T}`),Me({html:P,alwaysSanitizeHtml:!0})}},e[3]=d,e[4]=f);let v=f,b=i&&"rounded-xl border shadow bg-card",w;e[5]===b?w=e[6]:(w=U("text-card-foreground p-6",b),e[5]=b,e[6]=w);let D;e[7]===r?D=e[8]:(D=r&&(0,s.jsx)("div",{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:(0,s.jsx)("h3",{className:"tracking-tight text-sm font-medium",children:r})}),e[7]=r,e[8]=D);let j;e[9]===p?j=e[10]:(j=p(),e[9]=p,e[10]=j);let k;e[11]===j?k=e[12]:(k=(0,s.jsx)("div",{className:"text-2xl font-bold",children:j}),e[11]=j,e[12]=k);let N;e[13]!==n||e[14]!==l||e[15]!==h||e[16]!==g?(N=n&&(0,s.jsxs)("p",{className:"pt-1 text-xs text-muted-foreground flex align-center whitespace-nowrap",children:[l==="increase"&&(0,s.jsx)(rc,{className:"w-4 h-4 mr-1 p-0.5",fill:h,stroke:g}),l==="decrease"&&(0,s.jsx)(rc,{className:"w-4 h-4 mr-1 p-0.5 transform rotate-180",fill:h,stroke:g}),n]}),e[13]=n,e[14]=l,e[15]=h,e[16]=g,e[17]=N):N=e[17];let S;e[18]!==k||e[19]!==N?(S=(0,s.jsxs)("div",{children:[k,N]}),e[18]=k,e[19]=N,e[20]=S):S=e[20];let y;e[21]!==v||e[22]!==d?(y=d&&(0,s.jsx)("div",{className:"[--slot:true]",children:v()}),e[21]=v,e[22]=d,e[23]=y):y=e[23];let C;e[24]!==y||e[25]!==S?(C=(0,s.jsxs)("div",{className:"pt-0 flex flex-row gap-3.5",children:[S,y]}),e[24]=y,e[25]=S,e[26]=C):C=e[26];let _;return e[27]!==C||e[28]!==w||e[29]!==D?(_=(0,s.jsxs)("div",{className:w,children:[D,C]}),e[27]=C,e[28]=w,e[29]=D,e[30]=_):_=e[30],_};var X5=J(),eE=class{constructor(){q(this,"tagName","marimo-tex");q(this,"validator",$({}))}render(t){return(0,s.jsx)(nE,{host:t.host,tex:t.host.textContent||t.host.innerHTML})}},tE=tv(async()=>(await yt(async()=>{let{default:t}=await import("./katex-BmeEOSF2.js").then(async e=>(await e.__tla,e));return{default:t}},__vite__mapDeps([381,153]),import.meta.url)).default),aE=tv(async()=>{await yt(()=>import("./mhchem-CDMfjrnn.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([382,153]),import.meta.url)}),du={};async function rE(t,e){let[a]=await Promise.all([tE(),aE()]);e.startsWith("||(||(")&&e.endsWith("||)||)")?a.render(e.slice(6,-6),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:du}):e.startsWith("||(")&&e.endsWith("||)")?a.render(e.slice(3,-3),t,{displayMode:!1,globalGroup:!0,throwOnError:!1,macros:du}):e.startsWith("||[")&&e.endsWith("||]")&&a.render(e.slice(3,-3),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:du})}var nE=t=>{var h;let e=(0,X5.c)(8),{host:a,tex:r}=t,n=(0,x.useRef)(null),[i,l]=(0,x.useState)(r),o,d;e[0]===a?(o=e[1],d=e[2]):(o=()=>{let g=new MutationObserver(()=>{l(a.textContent||a.innerHTML)});return g.observe(a,{childList:!0,characterData:!0,subtree:!0}),()=>{g.disconnect()}},d=[a],e[0]=a,e[1]=o,e[2]=d),(0,x.useLayoutEffect)(o,d);let u=((h=a.parentElement)==null?void 0:h.tagName.toLowerCase())==="marimo-tex",c,p;e[3]!==i||e[4]!==u?(c=()=>{n.current&&!u&&rE(n.current,i)},p=[i,u],e[3]=i,e[4]=u,e[5]=c,e[6]=p):(c=e[5],p=e[6]),(0,x.useLayoutEffect)(c,p);let m;return e[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)("span",{ref:n}),e[7]=m):m=e[7],m};const iE=[new TD,new PD,wk,new Xk,new iS,new aS,new sS,new VD,new fS,new HS,$S,JS,new cN,new tC,new hN,new NN,new IN,new RN,new VN,new $N,new HN,new qN,new QN,new t5,new DN,KD,vS,VS,w5,f5,jD,aj,vN];var lE=[new r5,new o5,new p5,new v5,new y5,new j5,new C5,new iD,new E5,new L5,new q5,new Q5,new eE];function oE(){vD(),wD(),iE.forEach(n0),lE.forEach(n0)}async function sE(){if(typeof document>"u")return;let{onLCP:t,onINP:e,onCLS:a}=await yt(async()=>{let{onLCP:n,onINP:i,onCLS:l}=await import("./web-vitals-Bb_Ct5Ft.js").then(async o=>(await o.__tla,o));return{onLCP:n,onINP:i,onCLS:l}},[],import.meta.url);se.debug("Reporting vitals");let r=n=>{let i=n.rating==="good"?"green":n.rating==="needs-improvement"?"orange":"red";se.log(`%c [Metric ${n.name}] ${n.value}`,`background:${i}; color:white; padding:2px 0; border-radius:2px`)};a(r),e(r),t(r)}var dE=_1(),w1=!1;function uE(t,e){if(w1)return se.warn("marimo app has already been mounted."),Error("marimo app has already been mounted.");w1=!0;let a=(0,dE.createRoot)(e);try{UT(),oE(),N4(),Kn()&&(F4(),z4(GE)),mE(t),a.render((0,s.jsx)(Rl,{store:Oe,children:(0,s.jsx)(Lc,{children:(0,s.jsx)(jg,{})})}))}catch(r){return a.render((0,s.jsx)(Ml,{children:(0,s.jsx)(()=>{throw r},{})})),r}finally{sE()}}var uu=$r({}).nullish().default({}).transform(t=>t||(typeof t=="string"?(se.warn("[marimo] received JSON string instead of object. Parsing..."),JSON.parse(t)):(se.warn("[marimo] missing config data"),{}))),cE=$({filename:M().nullish().transform(t=>t||(se.warn("No filename provided, using fallback"),CE())),code:M().nullish().transform(t=>t??z_()??""),version:M().nullish().transform(t=>t??"unknown"),mode:ye(["edit","read","home","run"]).transform(t=>t==="run"?"read":t),config:uu,configOverrides:uu,appConfig:uu,view:$({showAppCode:W().default(!0)}).nullish().transform(t=>t??{showAppCode:!0}),serverToken:M().nullish().transform(t=>t??""),fileStores:ee(OE()).optional(),session:Se([sr().optional(),$r({version:He("1"),metadata:Ht(),cells:ee(Ht())}).transform(t=>t)]),notebook:Se([sr().optional(),$r({version:He("1"),metadata:Ht(),cells:ee(Ht())}).transform(t=>t)]),runtimeConfig:ee($r({url:M(),lazy:W().default(!0),authToken:M().nullish()})).nullish().transform(t=>t??[])});function mE(t){let e=cE.safeParse(t);if(!e.success)throw se.error("Invalid marimo mount options",e.error),Error("Invalid marimo mount options");let a=e.data.mode;if(k4(a),e.data.fileStores&&e.data.fileStores.length>0){se.log("\u{1F5C4}\uFE0F Initializing file stores via mount...");for(let l=e.data.fileStores.length-1;l>=0;l--)d_.insert(0,e.data.fileStores[l]);se.log(`\u{1F5C4}\uFE0F Injected ${e.data.fileStores.length} file store(s) into notebookFileStore`)}Oe.set(pT,M4()),Oe.set(DE,e.data.filename),Oe.set(PE,e.data.code),Oe.set(iA,a),Oe.set(F_,e.data.version),Oe.set(I_,e.data.view.showAppCode);let r=new URL(window.location.href).searchParams.get(wu.viewAs)==="present",n=a==="edit"&&r?"present":a;if(Oe.set(nA,{mode:n,cellAnchor:null}),Oe.set(A_,e.data.serverToken),Oe.set(w_,b_(e.data.configOverrides)),Oe.set(x_,f_(e.data.config)),Oe.set(y_,g_(e.data.appConfig)),e.data.runtimeConfig.length>0){let l=e.data.runtimeConfig[0];se.debug("\u26A1 Runtime URL",l.url),Oe.set(K1,{...l,serverToken:e.data.serverToken}),!l.lazy&&!Kn()&&Oe.set(Z1,{state:W1.CONNECTING})}else Oe.set(K1,{...T_,lazy:!1,serverToken:e.data.serverToken});let i=by(e.data.session,e.data.notebook);i&&Oe.set(T1,i)}var D1=document.getElementById("root");if(D1){if(!window.__MARIMO_MOUNT_CONFIG__)throw Error("[marimo] mount config not found");uE(window.__MARIMO_MOUNT_CONFIG__,D1)}else throw Error("[marimo] root element not found")}); diff --git a/docs/assets/index-BI9O54ok.css b/docs/assets/index-BI9O54ok.css new file mode 100644 index 0000000..1e412d0 --- /dev/null +++ b/docs/assets/index-BI9O54ok.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme;@layer base{.dark,.dark-theme{--amber-1:#16120c;--amber-2:#1d180f;--amber-3:#302008;--amber-4:#3f2700;--amber-5:#4d3000;--amber-6:#5c3d05;--amber-7:#714f19;--amber-8:#8f6424;--amber-9:#ffc53d;--amber-10:#ffd60a;--amber-11:#ffca16;--amber-12:#ffe7b3}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--amber-1:color(display-p3 .082 .07 .05);--amber-2:color(display-p3 .111 .094 .064);--amber-3:color(display-p3 .178 .128 .049);--amber-4:color(display-p3 .239 .156 0);--amber-5:color(display-p3 .29 .193 0);--amber-6:color(display-p3 .344 .245 .076);--amber-7:color(display-p3 .422 .314 .141);--amber-8:color(display-p3 .535 .399 .189);--amber-9:color(display-p3 1 .77 .26);--amber-10:color(display-p3 1 .87 .15);--amber-11:color(display-p3 1 .8 .29);--amber-12:color(display-p3 .984 .909 .726)}}}.light,.light-theme,:root{--amber-1:#fefdfb;--amber-2:#fefbe9;--amber-3:#fff7c2;--amber-4:#ffee9c;--amber-5:#fbe577;--amber-6:#f3d673;--amber-7:#e9c162;--amber-8:#e2a336;--amber-9:#ffc53d;--amber-10:#ffba18;--amber-11:#ab6400;--amber-12:#4f3422}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--amber-1:color(display-p3 .995 .992 .985);--amber-2:color(display-p3 .994 .986 .921);--amber-3:color(display-p3 .994 .969 .782);--amber-4:color(display-p3 .989 .937 .65);--amber-5:color(display-p3 .97 .902 .527);--amber-6:color(display-p3 .936 .844 .506);--amber-7:color(display-p3 .89 .762 .443);--amber-8:color(display-p3 .85 .65 .3);--amber-9:color(display-p3 1 .77 .26);--amber-10:color(display-p3 .959 .741 .274);--amber-11:color(display-p3 .64 .4 0);--amber-12:color(display-p3 .294 .208 .145)}}}.dark,.dark-theme{--blue-1:#0d1520;--blue-2:#111927;--blue-3:#0d2847;--blue-4:#003362;--blue-5:#004074;--blue-6:#104d87;--blue-7:#205d9e;--blue-8:#2870bd;--blue-9:#0090ff;--blue-10:#3b9eff;--blue-11:#70b8ff;--blue-12:#c2e6ff}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--blue-1:color(display-p3 .057 .081 .122);--blue-2:color(display-p3 .072 .098 .147);--blue-3:color(display-p3 .078 .154 .27);--blue-4:color(display-p3 .033 .197 .37);--blue-5:color(display-p3 .08 .245 .441);--blue-6:color(display-p3 .14 .298 .511);--blue-7:color(display-p3 .195 .361 .6);--blue-8:color(display-p3 .239 .434 .72);--blue-9:color(display-p3 .247 .556 .969);--blue-10:color(display-p3 .344 .612 .973);--blue-11:color(display-p3 .49 .72 1);--blue-12:color(display-p3 .788 .898 .99)}}}.light,.light-theme,:root{--blue-1:#fbfdff;--blue-2:#f4faff;--blue-3:#e6f4fe;--blue-4:#d5efff;--blue-5:#c2e5ff;--blue-6:#acd8fc;--blue-7:#8ec8f6;--blue-8:#5eb1ef;--blue-9:#0090ff;--blue-10:#0588f0;--blue-11:#0d74ce;--blue-12:#113264}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--blue-1:color(display-p3 .986 .992 .999);--blue-2:color(display-p3 .96 .979 .998);--blue-3:color(display-p3 .912 .956 .991);--blue-4:color(display-p3 .853 .932 1);--blue-5:color(display-p3 .788 .894 .998);--blue-6:color(display-p3 .709 .843 .976);--blue-7:color(display-p3 .606 .777 .947);--blue-8:color(display-p3 .451 .688 .917);--blue-9:color(display-p3 .247 .556 .969);--blue-10:color(display-p3 .234 .523 .912);--blue-11:color(display-p3 .15 .44 .84);--blue-12:color(display-p3 .102 .193 .379)}}}.dark,.dark-theme{--crimson-1:#191114;--crimson-2:#201318;--crimson-3:#381525;--crimson-4:#4d122f;--crimson-5:#5c1839;--crimson-6:#6d2545;--crimson-7:#873356;--crimson-8:#b0436e;--crimson-9:#e93d82;--crimson-10:#ee518a;--crimson-11:#ff92ad;--crimson-12:#fdd3e8}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--crimson-1:color(display-p3 .093 .068 .078);--crimson-2:color(display-p3 .117 .078 .095);--crimson-3:color(display-p3 .203 .091 .143);--crimson-4:color(display-p3 .277 .087 .182);--crimson-5:color(display-p3 .332 .115 .22);--crimson-6:color(display-p3 .394 .162 .268);--crimson-7:color(display-p3 .489 .222 .336);--crimson-8:color(display-p3 .638 .289 .429);--crimson-9:color(display-p3 .843 .298 .507);--crimson-10:color(display-p3 .864 .364 .539);--crimson-11:color(display-p3 1 .56 .66);--crimson-12:color(display-p3 .966 .834 .906)}}}.light,.light-theme,:root{--crimson-1:#fffcfd;--crimson-2:#fef7f9;--crimson-3:#ffe9f0;--crimson-4:#fedce7;--crimson-5:#facedd;--crimson-6:#f3bed1;--crimson-7:#eaacc3;--crimson-8:#e093b2;--crimson-9:#e93d82;--crimson-10:#df3478;--crimson-11:#cb1d63;--crimson-12:#621639}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--crimson-1:color(display-p3 .998 .989 .992);--crimson-2:color(display-p3 .991 .969 .976);--crimson-3:color(display-p3 .987 .917 .941);--crimson-4:color(display-p3 .975 .866 .904);--crimson-5:color(display-p3 .953 .813 .864);--crimson-6:color(display-p3 .921 .755 .817);--crimson-7:color(display-p3 .88 .683 .761);--crimson-8:color(display-p3 .834 .592 .694);--crimson-9:color(display-p3 .843 .298 .507);--crimson-10:color(display-p3 .807 .266 .468);--crimson-11:color(display-p3 .731 .195 .388);--crimson-12:color(display-p3 .352 .111 .221)}}}.dark,.dark-theme{--cyan-1:#0b161a;--cyan-2:#101b20;--cyan-3:#082c36;--cyan-4:#003848;--cyan-5:#004558;--cyan-6:#045468;--cyan-7:#12677e;--cyan-8:#11809c;--cyan-9:#00a2c7;--cyan-10:#23afd0;--cyan-11:#4ccce6;--cyan-12:#b6ecf7}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--cyan-1:color(display-p3 .053 .085 .098);--cyan-2:color(display-p3 .072 .105 .122);--cyan-3:color(display-p3 .073 .168 .209);--cyan-4:color(display-p3 .063 .216 .277);--cyan-5:color(display-p3 .091 .267 .336);--cyan-6:color(display-p3 .137 .324 .4);--cyan-7:color(display-p3 .186 .398 .484);--cyan-8:color(display-p3 .23 .496 .6);--cyan-9:color(display-p3 .282 .627 .765);--cyan-10:color(display-p3 .331 .675 .801);--cyan-11:color(display-p3 .446 .79 .887);--cyan-12:color(display-p3 .757 .919 .962)}}}.light,.light-theme,:root{--cyan-1:#fafdfe;--cyan-2:#f2fafb;--cyan-3:#def7f9;--cyan-4:#caf1f6;--cyan-5:#b5e9f0;--cyan-6:#9ddde7;--cyan-7:#7dcedc;--cyan-8:#3db9cf;--cyan-9:#00a2c7;--cyan-10:#0797b9;--cyan-11:#107d98;--cyan-12:#0d3c48}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--cyan-1:color(display-p3 .982 .992 .996);--cyan-2:color(display-p3 .955 .981 .984);--cyan-3:color(display-p3 .888 .965 .975);--cyan-4:color(display-p3 .821 .941 .959);--cyan-5:color(display-p3 .751 .907 .935);--cyan-6:color(display-p3 .671 .862 .9);--cyan-7:color(display-p3 .564 .8 .854);--cyan-8:color(display-p3 .388 .715 .798);--cyan-9:color(display-p3 .282 .627 .765);--cyan-10:color(display-p3 .264 .583 .71);--cyan-11:color(display-p3 .08 .48 .63);--cyan-12:color(display-p3 .108 .232 .277)}}}.dark,.dark-theme{--grass-1:#0e1511;--grass-2:#141a15;--grass-3:#1b2a1e;--grass-4:#1d3a24;--grass-5:#25482d;--grass-6:#2d5736;--grass-7:#366740;--grass-8:#3e7949;--grass-9:#46a758;--grass-10:#53b365;--grass-11:#71d083;--grass-12:#c2f0c2}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--grass-1:color(display-p3 .062 .083 .067);--grass-2:color(display-p3 .083 .103 .085);--grass-3:color(display-p3 .118 .163 .122);--grass-4:color(display-p3 .142 .225 .15);--grass-5:color(display-p3 .178 .279 .186);--grass-6:color(display-p3 .217 .337 .224);--grass-7:color(display-p3 .258 .4 .264);--grass-8:color(display-p3 .302 .47 .305);--grass-9:color(display-p3 .38 .647 .378);--grass-10:color(display-p3 .426 .694 .426);--grass-11:color(display-p3 .535 .807 .542);--grass-12:color(display-p3 .797 .936 .776)}}}.light,.light-theme,:root{--grass-1:#fbfefb;--grass-2:#f5fbf5;--grass-3:#e9f6e9;--grass-4:#daf1db;--grass-5:#c9e8ca;--grass-6:#b2ddb5;--grass-7:#94ce9a;--grass-8:#65ba74;--grass-9:#46a758;--grass-10:#3e9b4f;--grass-11:#2a7e3b;--grass-12:#203c25}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--grass-1:color(display-p3 .986 .996 .985);--grass-2:color(display-p3 .966 .983 .964);--grass-3:color(display-p3 .923 .965 .917);--grass-4:color(display-p3 .872 .94 .865);--grass-5:color(display-p3 .811 .908 .802);--grass-6:color(display-p3 .733 .864 .724);--grass-7:color(display-p3 .628 .803 .622);--grass-8:color(display-p3 .477 .72 .482);--grass-9:color(display-p3 .38 .647 .378);--grass-10:color(display-p3 .344 .598 .342);--grass-11:color(display-p3 .263 .488 .261);--grass-12:color(display-p3 .151 .233 .153)}}}.dark,.dark-theme{--gray-1:#111;--gray-2:#191919;--gray-3:#222;--gray-4:#2a2a2a;--gray-5:#313131;--gray-6:#3a3a3a;--gray-7:#484848;--gray-8:#606060;--gray-9:#6e6e6e;--gray-10:#7b7b7b;--gray-11:#b4b4b4;--gray-12:#eee}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--gray-1:color(display-p3 .067 .067 .067);--gray-2:color(display-p3 .098 .098 .098);--gray-3:color(display-p3 .135 .135 .135);--gray-4:color(display-p3 .163 .163 .163);--gray-5:color(display-p3 .192 .192 .192);--gray-6:color(display-p3 .228 .228 .228);--gray-7:color(display-p3 .283 .283 .283);--gray-8:color(display-p3 .375 .375 .375);--gray-9:color(display-p3 .431 .431 .431);--gray-10:color(display-p3 .484 .484 .484);--gray-11:color(display-p3 .706 .706 .706);--gray-12:color(display-p3 .933 .933 .933)}}}.light,.light-theme,:root{--gray-1:#fcfcfc;--gray-2:#f9f9f9;--gray-3:#f0f0f0;--gray-4:#e8e8e8;--gray-5:#e0e0e0;--gray-6:#d9d9d9;--gray-7:#cecece;--gray-8:#bbb;--gray-9:#8d8d8d;--gray-10:#838383;--gray-11:#646464;--gray-12:#202020}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--gray-1:color(display-p3 .988 .988 .988);--gray-2:color(display-p3 .975 .975 .975);--gray-3:color(display-p3 .939 .939 .939);--gray-4:color(display-p3 .908 .908 .908);--gray-5:color(display-p3 .88 .88 .88);--gray-6:color(display-p3 .849 .849 .849);--gray-7:color(display-p3 .807 .807 .807);--gray-8:color(display-p3 .732 .732 .732);--gray-9:color(display-p3 .553 .553 .553);--gray-10:color(display-p3 .512 .512 .512);--gray-11:color(display-p3 .392 .392 .392);--gray-12:color(display-p3 .125 .125 .125)}}}.dark,.dark-theme{--green-1:#0e1512;--green-2:#121b17;--green-3:#132d21;--green-4:#113b29;--green-5:#174933;--green-6:#20573e;--green-7:#28684a;--green-8:#2f7c57;--green-9:#30a46c;--green-10:#33b074;--green-11:#3dd68c;--green-12:#b1f1cb}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--green-1:color(display-p3 .062 .083 .071);--green-2:color(display-p3 .079 .106 .09);--green-3:color(display-p3 .1 .173 .133);--green-4:color(display-p3 .115 .229 .166);--green-5:color(display-p3 .147 .282 .206);--green-6:color(display-p3 .185 .338 .25);--green-7:color(display-p3 .227 .403 .298);--green-8:color(display-p3 .27 .479 .351);--green-9:color(display-p3 .332 .634 .442);--green-10:color(display-p3 .357 .682 .474);--green-11:color(display-p3 .434 .828 .573);--green-12:color(display-p3 .747 .938 .807)}}}.light,.light-theme,:root{--green-1:#fbfefc;--green-2:#f4fbf6;--green-3:#e6f6eb;--green-4:#d6f1df;--green-5:#c4e8d1;--green-6:#adddc0;--green-7:#8eceaa;--green-8:#5bb98b;--green-9:#30a46c;--green-10:#2b9a66;--green-11:#218358;--green-12:#193b2d}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--green-1:color(display-p3 .986 .996 .989);--green-2:color(display-p3 .963 .983 .967);--green-3:color(display-p3 .913 .964 .925);--green-4:color(display-p3 .859 .94 .879);--green-5:color(display-p3 .796 .907 .826);--green-6:color(display-p3 .718 .863 .761);--green-7:color(display-p3 .61 .801 .675);--green-8:color(display-p3 .451 .715 .559);--green-9:color(display-p3 .332 .634 .442);--green-10:color(display-p3 .308 .595 .417);--green-11:color(display-p3 .19 .5 .32);--green-12:color(display-p3 .132 .228 .18)}}}.dark,.dark-theme{--lime-1:#11130c;--lime-2:#151a10;--lime-3:#1f2917;--lime-4:#29371d;--lime-5:#334423;--lime-6:#3d522a;--lime-7:#496231;--lime-8:#577538;--lime-9:#bdee63;--lime-10:#d4ff70;--lime-11:#bde56c;--lime-12:#e3f7ba}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--lime-1:color(display-p3 .067 .073 .048);--lime-2:color(display-p3 .086 .1 .067);--lime-3:color(display-p3 .13 .16 .099);--lime-4:color(display-p3 .172 .214 .126);--lime-5:color(display-p3 .213 .266 .153);--lime-6:color(display-p3 .257 .321 .182);--lime-7:color(display-p3 .307 .383 .215);--lime-8:color(display-p3 .365 .456 .25);--lime-9:color(display-p3 .78 .928 .466);--lime-10:color(display-p3 .865 .995 .519);--lime-11:color(display-p3 .771 .893 .485);--lime-12:color(display-p3 .905 .966 .753)}}}.light,.light-theme,:root{--lime-1:#fcfdfa;--lime-2:#f8faf3;--lime-3:#eef6d6;--lime-4:#e2f0bd;--lime-5:#d3e7a6;--lime-6:#c2da91;--lime-7:#abc978;--lime-8:#8db654;--lime-9:#bdee63;--lime-10:#b0e64c;--lime-11:#5c7c2f;--lime-12:#37401c}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--lime-1:color(display-p3 .989 .992 .981);--lime-2:color(display-p3 .975 .98 .954);--lime-3:color(display-p3 .939 .965 .851);--lime-4:color(display-p3 .896 .94 .76);--lime-5:color(display-p3 .843 .903 .678);--lime-6:color(display-p3 .778 .852 .599);--lime-7:color(display-p3 .694 .784 .508);--lime-8:color(display-p3 .585 .707 .378);--lime-9:color(display-p3 .78 .928 .466);--lime-10:color(display-p3 .734 .896 .397);--lime-11:color(display-p3 .386 .482 .227);--lime-12:color(display-p3 .222 .25 .128)}}}.dark,.dark-theme{--orange-1:#17120e;--orange-2:#1e160f;--orange-3:#331e0b;--orange-4:#462100;--orange-5:#562800;--orange-6:#66350c;--orange-7:#7e451d;--orange-8:#a35829;--orange-9:#f76b15;--orange-10:#ff801f;--orange-11:#ffa057;--orange-12:#ffe0c2}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--orange-1:color(display-p3 .088 .07 .057);--orange-2:color(display-p3 .113 .089 .061);--orange-3:color(display-p3 .189 .12 .056);--orange-4:color(display-p3 .262 .132 0);--orange-5:color(display-p3 .315 .168 .016);--orange-6:color(display-p3 .376 .219 .088);--orange-7:color(display-p3 .465 .283 .147);--orange-8:color(display-p3 .601 .359 .201);--orange-9:color(display-p3 .9 .45 .2);--orange-10:color(display-p3 .98 .51 .23);--orange-11:color(display-p3 1 .63 .38);--orange-12:color(display-p3 .98 .883 .775)}}}.light,.light-theme,:root{--orange-1:#fefcfb;--orange-2:#fff7ed;--orange-3:#ffefd6;--orange-4:#ffdfb5;--orange-5:#ffd19a;--orange-6:#ffc182;--orange-7:#f5ae73;--orange-8:#ec9455;--orange-9:#f76b15;--orange-10:#ef5f00;--orange-11:#cc4e00;--orange-12:#582d1d}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--orange-1:color(display-p3 .995 .988 .985);--orange-2:color(display-p3 .994 .968 .934);--orange-3:color(display-p3 .989 .938 .85);--orange-4:color(display-p3 1 .874 .687);--orange-5:color(display-p3 1 .821 .583);--orange-6:color(display-p3 .975 .767 .545);--orange-7:color(display-p3 .919 .693 .486);--orange-8:color(display-p3 .877 .597 .379);--orange-9:color(display-p3 .9 .45 .2);--orange-10:color(display-p3 .87 .409 .164);--orange-11:color(display-p3 .76 .34 0);--orange-12:color(display-p3 .323 .185 .127)}}}.dark,.dark-theme{--purple-1:#18111b;--purple-2:#1e1523;--purple-3:#301c3b;--purple-4:#3d224e;--purple-5:#48295c;--purple-6:#54346b;--purple-7:#664282;--purple-8:#8457aa;--purple-9:#8e4ec6;--purple-10:#9a5cd0;--purple-11:#d19dff;--purple-12:#ecd9fa}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--purple-1:color(display-p3 .09 .068 .103);--purple-2:color(display-p3 .113 .082 .134);--purple-3:color(display-p3 .175 .112 .224);--purple-4:color(display-p3 .224 .137 .297);--purple-5:color(display-p3 .264 .167 .349);--purple-6:color(display-p3 .311 .208 .406);--purple-7:color(display-p3 .381 .266 .496);--purple-8:color(display-p3 .49 .349 .649);--purple-9:color(display-p3 .523 .318 .751);--purple-10:color(display-p3 .57 .373 .791);--purple-11:color(display-p3 .8 .62 1);--purple-12:color(display-p3 .913 .854 .971)}}}.light,.light-theme,:root{--purple-1:#fefcfe;--purple-2:#fbf7fe;--purple-3:#f7edfe;--purple-4:#f2e2fc;--purple-5:#ead5f9;--purple-6:#e0c4f4;--purple-7:#d1afec;--purple-8:#be93e4;--purple-9:#8e4ec6;--purple-10:#8347b9;--purple-11:#8145b5;--purple-12:#402060}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--purple-1:color(display-p3 .995 .988 .996);--purple-2:color(display-p3 .983 .971 .993);--purple-3:color(display-p3 .963 .931 .989);--purple-4:color(display-p3 .937 .888 .981);--purple-5:color(display-p3 .904 .837 .966);--purple-6:color(display-p3 .86 .774 .942);--purple-7:color(display-p3 .799 .69 .91);--purple-8:color(display-p3 .719 .583 .874);--purple-9:color(display-p3 .523 .318 .751);--purple-10:color(display-p3 .483 .289 .7);--purple-11:color(display-p3 .473 .281 .687);--purple-12:color(display-p3 .234 .132 .363)}}}.dark,.dark-theme{--red-1:#191111;--red-2:#201314;--red-3:#3b1219;--red-4:#500f1c;--red-5:#611623;--red-6:#72232d;--red-7:#8c333a;--red-8:#b54548;--red-9:#e5484d;--red-10:#ec5d5e;--red-11:#ff9592;--red-12:#ffd1d9}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--red-1:color(display-p3 .093 .068 .067);--red-2:color(display-p3 .118 .077 .079);--red-3:color(display-p3 .211 .081 .099);--red-4:color(display-p3 .287 .079 .113);--red-5:color(display-p3 .348 .11 .142);--red-6:color(display-p3 .414 .16 .183);--red-7:color(display-p3 .508 .224 .236);--red-8:color(display-p3 .659 .298 .297);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .861 .403 .387);--red-11:color(display-p3 1 .57 .55);--red-12:color(display-p3 .971 .826 .852)}}}.light,.light-theme,:root{--red-1:#fffcfc;--red-2:#fff7f7;--red-3:#feebec;--red-4:#ffdbdc;--red-5:#ffcdce;--red-6:#fdbdbe;--red-7:#f4a9aa;--red-8:#eb8e90;--red-9:#e5484d;--red-10:#dc3e42;--red-11:#ce2c31;--red-12:#641723}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--red-1:color(display-p3 .998 .989 .988);--red-2:color(display-p3 .995 .971 .971);--red-3:color(display-p3 .985 .925 .925);--red-4:color(display-p3 .999 .866 .866);--red-5:color(display-p3 .984 .812 .811);--red-6:color(display-p3 .955 .751 .749);--red-7:color(display-p3 .915 .675 .672);--red-8:color(display-p3 .872 .575 .572);--red-9:color(display-p3 .83 .329 .324);--red-10:color(display-p3 .798 .294 .285);--red-11:color(display-p3 .744 .234 .222);--red-12:color(display-p3 .36 .115 .143)}}}.dark,.dark-theme{--sage-1:#101211;--sage-2:#171918;--sage-3:#202221;--sage-4:#272a29;--sage-5:#2e3130;--sage-6:#373b39;--sage-7:#444947;--sage-8:#5b625f;--sage-9:#63706b;--sage-10:#717d79;--sage-11:#adb5b2;--sage-12:#eceeed}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--sage-1:color(display-p3 .064 .07 .067);--sage-2:color(display-p3 .092 .098 .094);--sage-3:color(display-p3 .128 .135 .131);--sage-4:color(display-p3 .155 .164 .159);--sage-5:color(display-p3 .183 .193 .188);--sage-6:color(display-p3 .218 .23 .224);--sage-7:color(display-p3 .269 .285 .277);--sage-8:color(display-p3 .362 .382 .373);--sage-9:color(display-p3 .398 .438 .421);--sage-10:color(display-p3 .453 .49 .474);--sage-11:color(display-p3 .685 .709 .697);--sage-12:color(display-p3 .927 .933 .93)}}}.light,.light-theme,:root{--sage-1:#fbfdfc;--sage-2:#f7f9f8;--sage-3:#eef1f0;--sage-4:#e6e9e8;--sage-5:#dfe2e0;--sage-6:#d7dad9;--sage-7:#cbcfcd;--sage-8:#b8bcba;--sage-9:#868e8b;--sage-10:#7c8481;--sage-11:#5f6563;--sage-12:#1a211e}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--sage-1:color(display-p3 .986 .992 .988);--sage-2:color(display-p3 .97 .977 .974);--sage-3:color(display-p3 .935 .944 .94);--sage-4:color(display-p3 .904 .913 .909);--sage-5:color(display-p3 .875 .885 .88);--sage-6:color(display-p3 .844 .854 .849);--sage-7:color(display-p3 .8 .811 .806);--sage-8:color(display-p3 .725 .738 .732);--sage-9:color(display-p3 .531 .556 .546);--sage-10:color(display-p3 .492 .515 .506);--sage-11:color(display-p3 .377 .395 .389);--sage-12:color(display-p3 .107 .129 .118)}}}.dark,.dark-theme{--sky-1:#0d141f;--sky-2:#111a27;--sky-3:#112840;--sky-4:#113555;--sky-5:#154467;--sky-6:#1b537b;--sky-7:#1f6692;--sky-8:#197cae;--sky-9:#7ce2fe;--sky-10:#a8eeff;--sky-11:#75c7f0;--sky-12:#c2f3ff}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--sky-1:color(display-p3 .056 .078 .116);--sky-2:color(display-p3 .075 .101 .149);--sky-3:color(display-p3 .089 .154 .244);--sky-4:color(display-p3 .106 .207 .323);--sky-5:color(display-p3 .135 .261 .394);--sky-6:color(display-p3 .17 .322 .469);--sky-7:color(display-p3 .205 .394 .557);--sky-8:color(display-p3 .232 .48 .665);--sky-9:color(display-p3 .585 .877 .983);--sky-10:color(display-p3 .718 .925 .991);--sky-11:color(display-p3 .536 .772 .924);--sky-12:color(display-p3 .799 .947 .993)}}}.light,.light-theme,:root{--sky-1:#f9feff;--sky-2:#f1fafd;--sky-3:#e1f6fd;--sky-4:#d1f0fa;--sky-5:#bee7f5;--sky-6:#a9daed;--sky-7:#8dcae3;--sky-8:#60b3d7;--sky-9:#7ce2fe;--sky-10:#74daf8;--sky-11:#00749e;--sky-12:#1d3e56}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--sky-1:color(display-p3 .98 .995 .999);--sky-2:color(display-p3 .953 .98 .99);--sky-3:color(display-p3 .899 .963 .989);--sky-4:color(display-p3 .842 .937 .977);--sky-5:color(display-p3 .777 .9 .954);--sky-6:color(display-p3 .701 .851 .921);--sky-7:color(display-p3 .604 .785 .879);--sky-8:color(display-p3 .457 .696 .829);--sky-9:color(display-p3 .585 .877 .983);--sky-10:color(display-p3 .555 .845 .959);--sky-11:color(display-p3 .193 .448 .605);--sky-12:color(display-p3 .145 .241 .329)}}}.dark,.dark-theme{--slate-1:#111113;--slate-2:#18191b;--slate-3:#212225;--slate-4:#272a2d;--slate-5:#2e3135;--slate-6:#363a3f;--slate-7:#43484e;--slate-8:#5a6169;--slate-9:#696e77;--slate-10:#777b84;--slate-11:#b0b4ba;--slate-12:#edeef0}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--slate-1:color(display-p3 .067 .067 .074);--slate-2:color(display-p3 .095 .098 .105);--slate-3:color(display-p3 .13 .135 .145);--slate-4:color(display-p3 .156 .163 .176);--slate-5:color(display-p3 .183 .191 .206);--slate-6:color(display-p3 .215 .226 .244);--slate-7:color(display-p3 .265 .28 .302);--slate-8:color(display-p3 .357 .381 .409);--slate-9:color(display-p3 .415 .431 .463);--slate-10:color(display-p3 .469 .483 .514);--slate-11:color(display-p3 .692 .704 .728);--slate-12:color(display-p3 .93 .933 .94)}}}.light,.light-theme,:root{--slate-1:#fcfcfd;--slate-2:#f9f9fb;--slate-3:#f0f0f3;--slate-4:#e8e8ec;--slate-5:#e0e1e6;--slate-6:#d9d9e0;--slate-7:#cdced6;--slate-8:#b9bbc6;--slate-9:#8b8d98;--slate-10:#80838d;--slate-11:#60646c;--slate-12:#1c2024}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--slate-1:color(display-p3 .988 .988 .992);--slate-2:color(display-p3 .976 .976 .984);--slate-3:color(display-p3 .94 .941 .953);--slate-4:color(display-p3 .908 .909 .925);--slate-5:color(display-p3 .88 .881 .901);--slate-6:color(display-p3 .85 .852 .876);--slate-7:color(display-p3 .805 .808 .838);--slate-8:color(display-p3 .727 .733 .773);--slate-9:color(display-p3 .547 .553 .592);--slate-10:color(display-p3 .503 .512 .549);--slate-11:color(display-p3 .379 .392 .421);--slate-12:color(display-p3 .113 .125 .14)}}}.dark,.dark-theme{--yellow-1:#14120b;--yellow-2:#1b180f;--yellow-3:#2d2305;--yellow-4:#362b00;--yellow-5:#433500;--yellow-6:#524202;--yellow-7:#665417;--yellow-8:#836a21;--yellow-9:#ffe629;--yellow-10:#ffff57;--yellow-11:#f5e147;--yellow-12:#f6eeb4}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.dark,.dark-theme{--yellow-1:color(display-p3 .078 .069 .047);--yellow-2:color(display-p3 .103 .094 .063);--yellow-3:color(display-p3 .168 .137 .039);--yellow-4:color(display-p3 .209 .169 0);--yellow-5:color(display-p3 .255 .209 0);--yellow-6:color(display-p3 .31 .261 .07);--yellow-7:color(display-p3 .389 .331 .135);--yellow-8:color(display-p3 .497 .42 .182);--yellow-9:color(display-p3 1 .92 .22);--yellow-10:color(display-p3 1 1 .456);--yellow-11:color(display-p3 .948 .885 .392);--yellow-12:color(display-p3 .959 .934 .731)}}}.light,.light-theme,:root{--yellow-1:#fdfdf9;--yellow-2:#fefce9;--yellow-3:#fffab8;--yellow-4:#fff394;--yellow-5:#ffe770;--yellow-6:#f3d768;--yellow-7:#e4c767;--yellow-8:#d5ae39;--yellow-9:#ffe629;--yellow-10:#ffdc00;--yellow-11:#9e6c00;--yellow-12:#473b1f}@supports (color:color(display-p3 1 1 1)){@media (color-gamut:p3){.light,.light-theme,:root{--yellow-1:color(display-p3 .992 .992 .978);--yellow-2:color(display-p3 .995 .99 .922);--yellow-3:color(display-p3 .997 .982 .749);--yellow-4:color(display-p3 .992 .953 .627);--yellow-5:color(display-p3 .984 .91 .51);--yellow-6:color(display-p3 .934 .847 .474);--yellow-7:color(display-p3 .876 .785 .46);--yellow-8:color(display-p3 .811 .689 .313);--yellow-9:color(display-p3 1 .92 .22);--yellow-10:color(display-p3 .977 .868 .291);--yellow-11:color(display-p3 .6 .44 0);--yellow-12:color(display-p3 .271 .233 .137)}}}*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,var(--font-sans,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"));font-feature-settings:var(--default-font-feature-settings,initial);font-variation-settings:var(--default-font-variation-settings,initial);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--monospace-font,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace),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{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--csstools-color-scheme--light:initial;color-scheme:light}.marimo,:root{--monospace-font:var(--marimo-monospace-font,"Fira Mono",monospace);--text-font:var(--marimo-text-font,"PT Sans",sans-serif);--heading-font:var(--marimo-heading-font,"Lora",serif);--radius:8px;--markdown-max-width:80ch;--csstools-light-dark-toggle--0:var(--csstools-color-scheme--light)#181c1a;--background:var(--csstools-light-dark-toggle--0,#fff);--csstools-light-dark-toggle--1:var(--csstools-color-scheme--light)#eceeed;--foreground:var(--csstools-light-dark-toggle--1,#0f172a);--csstools-light-dark-toggle--2:var(--csstools-color-scheme--light)#020303;--muted:var(--csstools-light-dark-toggle--2,#f1f5f9);--csstools-light-dark-toggle--3:var(--csstools-color-scheme--light)#aab2af;--muted-foreground:var(--csstools-light-dark-toggle--3,#64748b);--csstools-light-dark-toggle--4:var(--csstools-color-scheme--light)#252927;--popover:var(--csstools-light-dark-toggle--4,#fff);--csstools-light-dark-toggle--5:var(--csstools-color-scheme--light)#aab2af;--popover-foreground:var(--csstools-light-dark-toggle--5,#0f172a);--csstools-light-dark-toggle--6:var(--csstools-color-scheme--light)#252927;--card:var(--csstools-light-dark-toggle--6,#fff);--csstools-light-dark-toggle--7:var(--csstools-color-scheme--light)#c0c6c3;--card-foreground:var(--csstools-light-dark-toggle--7,#0f172a);--csstools-light-dark-toggle--8:var(--csstools-color-scheme--light)#3b403e;--border:var(--csstools-light-dark-toggle--8,#e2e8f0);--csstools-light-dark-toggle--9:var(--csstools-color-scheme--light)#474c4a;--input:var(--csstools-light-dark-toggle--9,#a3a3a3);--csstools-light-dark-toggle--10:var(--csstools-color-scheme--light)#28879f;--primary:var(--csstools-light-dark-toggle--10,#0880ea);--csstools-light-dark-toggle--11:var(--csstools-color-scheme--light)#b6ecf7;--primary-foreground:var(--csstools-light-dark-toggle--11,#f8fafc);--csstools-light-dark-toggle--12:var(--csstools-color-scheme--light)#eceeed;--secondary:var(--csstools-light-dark-toggle--12,#f1f5f9);--csstools-light-dark-toggle--13:var(--csstools-color-scheme--light)#252927;--secondary-foreground:var(--csstools-light-dark-toggle--13,#0f172a);--csstools-light-dark-toggle--14:var(--csstools-color-scheme--light)#1d5b6a;--accent:var(--csstools-light-dark-toggle--14,#edf6ff);--csstools-light-dark-toggle--15:var(--csstools-color-scheme--light)#b6ecf7;--accent-foreground:var(--csstools-light-dark-toggle--15,#0b68cb);--ring:#94a3b8;--destructive:#f66;--destructive-foreground:#f8fafc;--error:#ea5d5d;--error-foreground:#f8fafc;--success:#66ff7f;--success-foreground:#f8fafc;--action:#fef2a5;--action-hover:#fff8bb;--action-foreground:#946800;--csstools-light-dark-toggle--16:var(--csstools-color-scheme--light)#479bf5;--link:var(--csstools-light-dark-toggle--16,#0b68cb);--csstools-light-dark-toggle--17:var(--csstools-color-scheme--light)#bf9bdf;--link-visited:var(--csstools-light-dark-toggle--17,#8e4ec6);--stale:#af893140;--csstools-light-dark-toggle--18:var(--csstools-color-scheme--light)#5c5c5c99;--base-shadow:var(--csstools-light-dark-toggle--18,#d9d9d966);--csstools-light-dark-toggle--19:var(--csstools-color-scheme--light)#80808099;--base-shadow-darker:var(--csstools-light-dark-toggle--19,#80808066);--base-shadow-opacity:5%;--csstools-light-dark-toggle--20:var(--csstools-color-scheme--light)#282c34;--cm-background:var(--csstools-light-dark-toggle--20,var(--background));--csstools-light-dark-toggle--21:var(--csstools-color-scheme--light)#6b7280;--cm-comment:var(--csstools-light-dark-toggle--21,#708090);@supports not (color:light-dark(tan,tan)){& *{--csstools-light-dark-toggle--0:var(--csstools-color-scheme--light)#181c1a;--background:var(--csstools-light-dark-toggle--0,#fff);--csstools-light-dark-toggle--1:var(--csstools-color-scheme--light)#eceeed;--foreground:var(--csstools-light-dark-toggle--1,#0f172a);--csstools-light-dark-toggle--2:var(--csstools-color-scheme--light)#020303;--muted:var(--csstools-light-dark-toggle--2,#f1f5f9);--csstools-light-dark-toggle--3:var(--csstools-color-scheme--light)#aab2af;--muted-foreground:var(--csstools-light-dark-toggle--3,#64748b);--csstools-light-dark-toggle--4:var(--csstools-color-scheme--light)#252927;--popover:var(--csstools-light-dark-toggle--4,#fff);--csstools-light-dark-toggle--5:var(--csstools-color-scheme--light)#aab2af;--popover-foreground:var(--csstools-light-dark-toggle--5,#0f172a);--csstools-light-dark-toggle--6:var(--csstools-color-scheme--light)#252927;--card:var(--csstools-light-dark-toggle--6,#fff);--csstools-light-dark-toggle--7:var(--csstools-color-scheme--light)#c0c6c3;--card-foreground:var(--csstools-light-dark-toggle--7,#0f172a);--csstools-light-dark-toggle--8:var(--csstools-color-scheme--light)#3b403e;--border:var(--csstools-light-dark-toggle--8,#e2e8f0);--csstools-light-dark-toggle--9:var(--csstools-color-scheme--light)#474c4a;--input:var(--csstools-light-dark-toggle--9,#a3a3a3);--csstools-light-dark-toggle--10:var(--csstools-color-scheme--light)#28879f;--primary:var(--csstools-light-dark-toggle--10,#0880ea);--csstools-light-dark-toggle--11:var(--csstools-color-scheme--light)#b6ecf7;--primary-foreground:var(--csstools-light-dark-toggle--11,#f8fafc);--csstools-light-dark-toggle--12:var(--csstools-color-scheme--light)#eceeed;--secondary:var(--csstools-light-dark-toggle--12,#f1f5f9);--csstools-light-dark-toggle--13:var(--csstools-color-scheme--light)#252927;--secondary-foreground:var(--csstools-light-dark-toggle--13,#0f172a);--csstools-light-dark-toggle--14:var(--csstools-color-scheme--light)#1d5b6a;--accent:var(--csstools-light-dark-toggle--14,#edf6ff);--csstools-light-dark-toggle--15:var(--csstools-color-scheme--light)#b6ecf7;--accent-foreground:var(--csstools-light-dark-toggle--15,#0b68cb);--csstools-light-dark-toggle--16:var(--csstools-color-scheme--light)#479bf5;--link:var(--csstools-light-dark-toggle--16,#0b68cb);--csstools-light-dark-toggle--17:var(--csstools-color-scheme--light)#bf9bdf;--link-visited:var(--csstools-light-dark-toggle--17,#8e4ec6);--csstools-light-dark-toggle--18:var(--csstools-color-scheme--light)#5c5c5c99;--base-shadow:var(--csstools-light-dark-toggle--18,#d9d9d966);--csstools-light-dark-toggle--19:var(--csstools-color-scheme--light)#80808099;--base-shadow-darker:var(--csstools-light-dark-toggle--19,#80808066);--csstools-light-dark-toggle--20:var(--csstools-color-scheme--light)#282c34;--cm-background:var(--csstools-light-dark-toggle--20,var(--background));--csstools-light-dark-toggle--21:var(--csstools-color-scheme--light)#6b7280;--cm-comment:var(--csstools-light-dark-toggle--21,#708090)}}}@supports (color:light-dark(red, red)){.marimo,:root{--background:light-dark(#fff,#181c1a);--foreground:light-dark(#0f172a,#eceeed);--muted:light-dark(#f1f5f9,#020303);--muted-foreground:light-dark(#64748b,#aab2af);--popover:light-dark(#fff,#252927);--popover-foreground:light-dark(#0f172a,#aab2af);--card:light-dark(#fff,#252927);--card-foreground:light-dark(#0f172a,#c0c6c3);--border:light-dark(#e2e8f0,#3b403e);--input:light-dark(#a3a3a3,#474c4a);--primary:light-dark(#0880ea,#28879f);--primary-foreground:light-dark(#f8fafc,#b6ecf7);--secondary:light-dark(#f1f5f9,#eceeed);--secondary-foreground:light-dark(#0f172a,#252927);--accent:light-dark(#edf6ff,#1d5b6a);--accent-foreground:light-dark(#0b68cb,#b6ecf7);--link:light-dark(#0b68cb,#479bf5);--link-visited:light-dark(#8e4ec6,#bf9bdf);--base-shadow:light-dark(#d9d9d966,#5c5c5c99);--base-shadow-darker:light-dark(#80808066,#80808099);--cm-background:light-dark(var(--background),#282c34);--cm-comment:light-dark(#708090,#6b7280)}}.dark,.marimo:is(.dark *){--csstools-color-scheme--light: ;color-scheme:dark}*{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){*{border-color:color-mix(in srgb,var(--border),transparent 0%)}}body{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){body{background-color:color-mix(in srgb,var(--background),transparent 0%)}}body{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){body{color:color-mix(in srgb,var(--foreground),transparent 0%)}}body{font-feature-settings:"rlig" 1,"calt" 1}a.hyperlink{color:var(--link)}a.hyperlink:hover{text-decoration:underline}[role=button]:not(:disabled),button:not(:disabled){cursor:pointer}:root{--csstools-light-dark-toggle--22:var(--csstools-color-scheme--light)#fff;--linenos-special:var(--csstools-light-dark-toggle--22,#000);--csstools-light-dark-toggle--23:var(--csstools-color-scheme--light)#303030;--linenos-special-bg:var(--csstools-light-dark-toggle--23,#ffffc0);--csstools-light-dark-toggle--24:var(--csstools-color-scheme--light)#303030;--codehilite-hll:var(--csstools-light-dark-toggle--24,#ffc);--csstools-light-dark-toggle--25:var(--csstools-color-scheme--light)#88ff70;--codehilite-c:var(--csstools-light-dark-toggle--25,#177500);--csstools-light-dark-toggle--26:var(--csstools-color-scheme--light)red;--codehilite-err:var(--csstools-light-dark-toggle--26,#000);--csstools-light-dark-toggle--27:var(--csstools-color-scheme--light)#ff5572;--codehilite-k:var(--csstools-light-dark-toggle--27,#cf222e);--csstools-light-dark-toggle--28:var(--csstools-color-scheme--light)#7289da;--codehilite-l:var(--csstools-light-dark-toggle--28,#1c01ce);--csstools-light-dark-toggle--29:var(--csstools-color-scheme--light)#fff;--codehilite-n:var(--csstools-light-dark-toggle--29,#000);--csstools-light-dark-toggle--30:var(--csstools-color-scheme--light)#fff;--codehilite-o:var(--csstools-light-dark-toggle--30,#000);--csstools-light-dark-toggle--31:var(--csstools-color-scheme--light)#88ff70;--codehilite-ch:var(--csstools-light-dark-toggle--31,#177500);--csstools-light-dark-toggle--32:var(--csstools-color-scheme--light)#88ff70;--codehilite-cm:var(--csstools-light-dark-toggle--32,#177500);--csstools-light-dark-toggle--33:var(--csstools-color-scheme--light)#ffcc80;--codehilite-cp:var(--csstools-light-dark-toggle--33,#633820);--csstools-light-dark-toggle--34:var(--csstools-color-scheme--light)#88ff70;--codehilite-cpf:var(--csstools-light-dark-toggle--34,#177500);--csstools-light-dark-toggle--35:var(--csstools-color-scheme--light)#88ff70;--codehilite-c1:var(--csstools-light-dark-toggle--35,#177500);--csstools-light-dark-toggle--36:var(--csstools-color-scheme--light)#88ff70;--codehilite-cs:var(--csstools-light-dark-toggle--36,#177500);--csstools-light-dark-toggle--37:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kc:var(--csstools-light-dark-toggle--37,#a90d91);--csstools-light-dark-toggle--38:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kd:var(--csstools-light-dark-toggle--38,#a90d91);--csstools-light-dark-toggle--39:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kn:var(--csstools-light-dark-toggle--39,#a90d91);--csstools-light-dark-toggle--40:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kp:var(--csstools-light-dark-toggle--40,#a90d91);--csstools-light-dark-toggle--41:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kr:var(--csstools-light-dark-toggle--41,#a90d91);--csstools-light-dark-toggle--42:var(--csstools-color-scheme--light)#ff5572;--codehilite-kt:var(--csstools-light-dark-toggle--42,#cf222e);--csstools-light-dark-toggle--43:var(--csstools-color-scheme--light)#7289da;--codehilite-ld:var(--csstools-light-dark-toggle--43,#1c01ce);--csstools-light-dark-toggle--44:var(--csstools-color-scheme--light)#55a8ff;--codehilite-m:var(--csstools-light-dark-toggle--44,#0550ae);--csstools-light-dark-toggle--45:var(--csstools-color-scheme--light)#5af;--codehilite-s:var(--csstools-light-dark-toggle--45,#0a3069);--csstools-light-dark-toggle--46:var(--csstools-color-scheme--light)#ffcc80;--codehilite-na:var(--csstools-light-dark-toggle--46,#836c28);--csstools-light-dark-toggle--47:var(--csstools-color-scheme--light)#ff5572;--codehilite-nb:var(--csstools-light-dark-toggle--47,#cf222e);--csstools-light-dark-toggle--48:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nc:var(--csstools-light-dark-toggle--48,#8250df);--csstools-light-dark-toggle--49:var(--csstools-color-scheme--light)#fff;--codehilite-no:var(--csstools-light-dark-toggle--49,#000);--csstools-light-dark-toggle--50:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nd:var(--csstools-light-dark-toggle--50,#8250df);--csstools-light-dark-toggle--51:var(--csstools-color-scheme--light)#fff;--codehilite-ni:var(--csstools-light-dark-toggle--51,#000);--csstools-light-dark-toggle--52:var(--csstools-color-scheme--light)#fff;--codehilite-ne:var(--csstools-light-dark-toggle--52,#000);--csstools-light-dark-toggle--53:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nf:var(--csstools-light-dark-toggle--53,#8250df);--csstools-light-dark-toggle--54:var(--csstools-color-scheme--light)#fff;--codehilite-nl:var(--csstools-light-dark-toggle--54,#000);--csstools-light-dark-toggle--55:var(--csstools-color-scheme--light)#fff;--codehilite-nn:var(--csstools-light-dark-toggle--55,#000);--csstools-light-dark-toggle--56:var(--csstools-color-scheme--light)#fff;--codehilite-nx:var(--csstools-light-dark-toggle--56,#000);--csstools-light-dark-toggle--57:var(--csstools-color-scheme--light)#fff;--codehilite-py:var(--csstools-light-dark-toggle--57,#000);--csstools-light-dark-toggle--58:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nt:var(--csstools-light-dark-toggle--58,#8250df);--csstools-light-dark-toggle--59:var(--csstools-color-scheme--light)#fff;--codehilite-nv:var(--csstools-light-dark-toggle--59,#000);--csstools-light-dark-toggle--60:var(--csstools-color-scheme--light)#fff;--codehilite-ow:var(--csstools-light-dark-toggle--60,#000);--csstools-light-dark-toggle--61:var(--csstools-color-scheme--light)#7289da;--codehilite-mb:var(--csstools-light-dark-toggle--61,#1c01ce);--csstools-light-dark-toggle--62:var(--csstools-color-scheme--light)#7289da;--codehilite-mf:var(--csstools-light-dark-toggle--62,#1c01ce);--csstools-light-dark-toggle--63:var(--csstools-color-scheme--light)#7289da;--codehilite-mh:var(--csstools-light-dark-toggle--63,#1c01ce);--csstools-light-dark-toggle--64:var(--csstools-color-scheme--light)#7289da;--codehilite-mi:var(--csstools-light-dark-toggle--64,#1c01ce);--csstools-light-dark-toggle--65:var(--csstools-color-scheme--light)#7289da;--codehilite-mo:var(--csstools-light-dark-toggle--65,#1c01ce);--csstools-light-dark-toggle--66:var(--csstools-color-scheme--light)#5af;--codehilite-sa:var(--csstools-light-dark-toggle--66,#0a3069);--csstools-light-dark-toggle--67:var(--csstools-color-scheme--light)#5af;--codehilite-sb:var(--csstools-light-dark-toggle--67,#0a3069);--csstools-light-dark-toggle--68:var(--csstools-color-scheme--light)#5af;--codehilite-sc:var(--csstools-light-dark-toggle--68,#0a3069);--csstools-light-dark-toggle--69:var(--csstools-color-scheme--light)#5af;--codehilite-dl:var(--csstools-light-dark-toggle--69,#0a3069);--csstools-light-dark-toggle--70:var(--csstools-color-scheme--light)#5af;--codehilite-sd:var(--csstools-light-dark-toggle--70,#0a3069);--csstools-light-dark-toggle--71:var(--csstools-color-scheme--light)#5af;--codehilite-s2:var(--csstools-light-dark-toggle--71,#0a3069);--csstools-light-dark-toggle--72:var(--csstools-color-scheme--light)#5af;--codehilite-se:var(--csstools-light-dark-toggle--72,#0a3069);--csstools-light-dark-toggle--73:var(--csstools-color-scheme--light)#5af;--codehilite-sh:var(--csstools-light-dark-toggle--73,#0a3069);--csstools-light-dark-toggle--74:var(--csstools-color-scheme--light)#5af;--codehilite-si:var(--csstools-light-dark-toggle--74,#0a3069);--csstools-light-dark-toggle--75:var(--csstools-color-scheme--light)#5af;--codehilite-sx:var(--csstools-light-dark-toggle--75,#0a3069);--csstools-light-dark-toggle--76:var(--csstools-color-scheme--light)#5af;--codehilite-sr:var(--csstools-light-dark-toggle--76,#0a3069);--csstools-light-dark-toggle--77:var(--csstools-color-scheme--light)#5af;--codehilite-s1:var(--csstools-light-dark-toggle--77,#0a3069);--csstools-light-dark-toggle--78:var(--csstools-color-scheme--light)#5af;--codehilite-ss:var(--csstools-light-dark-toggle--78,#0a3069);--csstools-light-dark-toggle--79:var(--csstools-color-scheme--light)#9c4dcc;--codehilite-bp:var(--csstools-light-dark-toggle--79,#5b269a);--csstools-light-dark-toggle--80:var(--csstools-color-scheme--light)#fff;--codehilite-fm:var(--csstools-light-dark-toggle--80,#000);--csstools-light-dark-toggle--81:var(--csstools-color-scheme--light)#fff;--codehilite-vc:var(--csstools-light-dark-toggle--81,#000);--csstools-light-dark-toggle--82:var(--csstools-color-scheme--light)#fff;--codehilite-vg:var(--csstools-light-dark-toggle--82,#000);--csstools-light-dark-toggle--83:var(--csstools-color-scheme--light)#fff;--codehilite-vi:var(--csstools-light-dark-toggle--83,#000);--csstools-light-dark-toggle--84:var(--csstools-color-scheme--light)#fff;--codehilite-vm:var(--csstools-light-dark-toggle--84,#000);--csstools-light-dark-toggle--85:var(--csstools-color-scheme--light)#7289da;--codehilite-il:var(--csstools-light-dark-toggle--85,#1c01ce);@supports not (color:light-dark(tan,tan)){& *{--csstools-light-dark-toggle--22:var(--csstools-color-scheme--light)#fff;--linenos-special:var(--csstools-light-dark-toggle--22,#000);--csstools-light-dark-toggle--23:var(--csstools-color-scheme--light)#303030;--linenos-special-bg:var(--csstools-light-dark-toggle--23,#ffffc0);--csstools-light-dark-toggle--24:var(--csstools-color-scheme--light)#303030;--codehilite-hll:var(--csstools-light-dark-toggle--24,#ffc);--csstools-light-dark-toggle--25:var(--csstools-color-scheme--light)#88ff70;--codehilite-c:var(--csstools-light-dark-toggle--25,#177500);--csstools-light-dark-toggle--26:var(--csstools-color-scheme--light)red;--codehilite-err:var(--csstools-light-dark-toggle--26,#000);--csstools-light-dark-toggle--27:var(--csstools-color-scheme--light)#ff5572;--codehilite-k:var(--csstools-light-dark-toggle--27,#cf222e);--csstools-light-dark-toggle--28:var(--csstools-color-scheme--light)#7289da;--codehilite-l:var(--csstools-light-dark-toggle--28,#1c01ce);--csstools-light-dark-toggle--29:var(--csstools-color-scheme--light)#fff;--codehilite-n:var(--csstools-light-dark-toggle--29,#000);--csstools-light-dark-toggle--30:var(--csstools-color-scheme--light)#fff;--codehilite-o:var(--csstools-light-dark-toggle--30,#000);--csstools-light-dark-toggle--31:var(--csstools-color-scheme--light)#88ff70;--codehilite-ch:var(--csstools-light-dark-toggle--31,#177500);--csstools-light-dark-toggle--32:var(--csstools-color-scheme--light)#88ff70;--codehilite-cm:var(--csstools-light-dark-toggle--32,#177500);--csstools-light-dark-toggle--33:var(--csstools-color-scheme--light)#ffcc80;--codehilite-cp:var(--csstools-light-dark-toggle--33,#633820);--csstools-light-dark-toggle--34:var(--csstools-color-scheme--light)#88ff70;--codehilite-cpf:var(--csstools-light-dark-toggle--34,#177500);--csstools-light-dark-toggle--35:var(--csstools-color-scheme--light)#88ff70;--codehilite-c1:var(--csstools-light-dark-toggle--35,#177500);--csstools-light-dark-toggle--36:var(--csstools-color-scheme--light)#88ff70;--codehilite-cs:var(--csstools-light-dark-toggle--36,#177500);--csstools-light-dark-toggle--37:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kc:var(--csstools-light-dark-toggle--37,#a90d91);--csstools-light-dark-toggle--38:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kd:var(--csstools-light-dark-toggle--38,#a90d91);--csstools-light-dark-toggle--39:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kn:var(--csstools-light-dark-toggle--39,#a90d91);--csstools-light-dark-toggle--40:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kp:var(--csstools-light-dark-toggle--40,#a90d91);--csstools-light-dark-toggle--41:var(--csstools-color-scheme--light)#ff80bf;--codehilite-kr:var(--csstools-light-dark-toggle--41,#a90d91);--csstools-light-dark-toggle--42:var(--csstools-color-scheme--light)#ff5572;--codehilite-kt:var(--csstools-light-dark-toggle--42,#cf222e);--csstools-light-dark-toggle--43:var(--csstools-color-scheme--light)#7289da;--codehilite-ld:var(--csstools-light-dark-toggle--43,#1c01ce);--csstools-light-dark-toggle--44:var(--csstools-color-scheme--light)#55a8ff;--codehilite-m:var(--csstools-light-dark-toggle--44,#0550ae);--csstools-light-dark-toggle--45:var(--csstools-color-scheme--light)#5af;--codehilite-s:var(--csstools-light-dark-toggle--45,#0a3069);--csstools-light-dark-toggle--46:var(--csstools-color-scheme--light)#ffcc80;--codehilite-na:var(--csstools-light-dark-toggle--46,#836c28);--csstools-light-dark-toggle--47:var(--csstools-color-scheme--light)#ff5572;--codehilite-nb:var(--csstools-light-dark-toggle--47,#cf222e);--csstools-light-dark-toggle--48:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nc:var(--csstools-light-dark-toggle--48,#8250df);--csstools-light-dark-toggle--49:var(--csstools-color-scheme--light)#fff;--codehilite-no:var(--csstools-light-dark-toggle--49,#000);--csstools-light-dark-toggle--50:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nd:var(--csstools-light-dark-toggle--50,#8250df);--csstools-light-dark-toggle--51:var(--csstools-color-scheme--light)#fff;--codehilite-ni:var(--csstools-light-dark-toggle--51,#000);--csstools-light-dark-toggle--52:var(--csstools-color-scheme--light)#fff;--codehilite-ne:var(--csstools-light-dark-toggle--52,#000);--csstools-light-dark-toggle--53:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nf:var(--csstools-light-dark-toggle--53,#8250df);--csstools-light-dark-toggle--54:var(--csstools-color-scheme--light)#fff;--codehilite-nl:var(--csstools-light-dark-toggle--54,#000);--csstools-light-dark-toggle--55:var(--csstools-color-scheme--light)#fff;--codehilite-nn:var(--csstools-light-dark-toggle--55,#000);--csstools-light-dark-toggle--56:var(--csstools-color-scheme--light)#fff;--codehilite-nx:var(--csstools-light-dark-toggle--56,#000);--csstools-light-dark-toggle--57:var(--csstools-color-scheme--light)#fff;--codehilite-py:var(--csstools-light-dark-toggle--57,#000);--csstools-light-dark-toggle--58:var(--csstools-color-scheme--light)#b39ddb;--codehilite-nt:var(--csstools-light-dark-toggle--58,#8250df);--csstools-light-dark-toggle--59:var(--csstools-color-scheme--light)#fff;--codehilite-nv:var(--csstools-light-dark-toggle--59,#000);--csstools-light-dark-toggle--60:var(--csstools-color-scheme--light)#fff;--codehilite-ow:var(--csstools-light-dark-toggle--60,#000);--csstools-light-dark-toggle--61:var(--csstools-color-scheme--light)#7289da;--codehilite-mb:var(--csstools-light-dark-toggle--61,#1c01ce);--csstools-light-dark-toggle--62:var(--csstools-color-scheme--light)#7289da;--codehilite-mf:var(--csstools-light-dark-toggle--62,#1c01ce);--csstools-light-dark-toggle--63:var(--csstools-color-scheme--light)#7289da;--codehilite-mh:var(--csstools-light-dark-toggle--63,#1c01ce);--csstools-light-dark-toggle--64:var(--csstools-color-scheme--light)#7289da;--codehilite-mi:var(--csstools-light-dark-toggle--64,#1c01ce);--csstools-light-dark-toggle--65:var(--csstools-color-scheme--light)#7289da;--codehilite-mo:var(--csstools-light-dark-toggle--65,#1c01ce);--csstools-light-dark-toggle--66:var(--csstools-color-scheme--light)#5af;--codehilite-sa:var(--csstools-light-dark-toggle--66,#0a3069);--csstools-light-dark-toggle--67:var(--csstools-color-scheme--light)#5af;--codehilite-sb:var(--csstools-light-dark-toggle--67,#0a3069);--csstools-light-dark-toggle--68:var(--csstools-color-scheme--light)#5af;--codehilite-sc:var(--csstools-light-dark-toggle--68,#0a3069);--csstools-light-dark-toggle--69:var(--csstools-color-scheme--light)#5af;--codehilite-dl:var(--csstools-light-dark-toggle--69,#0a3069);--csstools-light-dark-toggle--70:var(--csstools-color-scheme--light)#5af;--codehilite-sd:var(--csstools-light-dark-toggle--70,#0a3069);--csstools-light-dark-toggle--71:var(--csstools-color-scheme--light)#5af;--codehilite-s2:var(--csstools-light-dark-toggle--71,#0a3069);--csstools-light-dark-toggle--72:var(--csstools-color-scheme--light)#5af;--codehilite-se:var(--csstools-light-dark-toggle--72,#0a3069);--csstools-light-dark-toggle--73:var(--csstools-color-scheme--light)#5af;--codehilite-sh:var(--csstools-light-dark-toggle--73,#0a3069);--csstools-light-dark-toggle--74:var(--csstools-color-scheme--light)#5af;--codehilite-si:var(--csstools-light-dark-toggle--74,#0a3069);--csstools-light-dark-toggle--75:var(--csstools-color-scheme--light)#5af;--codehilite-sx:var(--csstools-light-dark-toggle--75,#0a3069);--csstools-light-dark-toggle--76:var(--csstools-color-scheme--light)#5af;--codehilite-sr:var(--csstools-light-dark-toggle--76,#0a3069);--csstools-light-dark-toggle--77:var(--csstools-color-scheme--light)#5af;--codehilite-s1:var(--csstools-light-dark-toggle--77,#0a3069);--csstools-light-dark-toggle--78:var(--csstools-color-scheme--light)#5af;--codehilite-ss:var(--csstools-light-dark-toggle--78,#0a3069);--csstools-light-dark-toggle--79:var(--csstools-color-scheme--light)#9c4dcc;--codehilite-bp:var(--csstools-light-dark-toggle--79,#5b269a);--csstools-light-dark-toggle--80:var(--csstools-color-scheme--light)#fff;--codehilite-fm:var(--csstools-light-dark-toggle--80,#000);--csstools-light-dark-toggle--81:var(--csstools-color-scheme--light)#fff;--codehilite-vc:var(--csstools-light-dark-toggle--81,#000);--csstools-light-dark-toggle--82:var(--csstools-color-scheme--light)#fff;--codehilite-vg:var(--csstools-light-dark-toggle--82,#000);--csstools-light-dark-toggle--83:var(--csstools-color-scheme--light)#fff;--codehilite-vi:var(--csstools-light-dark-toggle--83,#000);--csstools-light-dark-toggle--84:var(--csstools-color-scheme--light)#fff;--codehilite-vm:var(--csstools-light-dark-toggle--84,#000);--csstools-light-dark-toggle--85:var(--csstools-color-scheme--light)#7289da;--codehilite-il:var(--csstools-light-dark-toggle--85,#1c01ce)}}}@supports (color:light-dark(red, red)){:root{--linenos-special:light-dark(#000,#fff);--linenos-special-bg:light-dark(#ffffc0,#303030);--codehilite-hll:light-dark(#ffc,#303030);--codehilite-c:light-dark(#177500,#88ff70);--codehilite-err:light-dark(#000,red);--codehilite-k:light-dark(#cf222e,#ff5572);--codehilite-l:light-dark(#1c01ce,#7289da);--codehilite-n:light-dark(#000,#fff);--codehilite-o:light-dark(#000,#fff);--codehilite-ch:light-dark(#177500,#88ff70);--codehilite-cm:light-dark(#177500,#88ff70);--codehilite-cp:light-dark(#633820,#ffcc80);--codehilite-cpf:light-dark(#177500,#88ff70);--codehilite-c1:light-dark(#177500,#88ff70);--codehilite-cs:light-dark(#177500,#88ff70);--codehilite-kc:light-dark(#a90d91,#ff80bf);--codehilite-kd:light-dark(#a90d91,#ff80bf);--codehilite-kn:light-dark(#a90d91,#ff80bf);--codehilite-kp:light-dark(#a90d91,#ff80bf);--codehilite-kr:light-dark(#a90d91,#ff80bf);--codehilite-kt:light-dark(#cf222e,#ff5572);--codehilite-ld:light-dark(#1c01ce,#7289da);--codehilite-m:light-dark(#0550ae,#55a8ff);--codehilite-s:light-dark(#0a3069,#5af);--codehilite-na:light-dark(#836c28,#ffcc80);--codehilite-nb:light-dark(#cf222e,#ff5572);--codehilite-nc:light-dark(#8250df,#b39ddb);--codehilite-no:light-dark(#000,#fff);--codehilite-nd:light-dark(#8250df,#b39ddb);--codehilite-ni:light-dark(#000,#fff);--codehilite-ne:light-dark(#000,#fff);--codehilite-nf:light-dark(#8250df,#b39ddb);--codehilite-nl:light-dark(#000,#fff);--codehilite-nn:light-dark(#000,#fff);--codehilite-nx:light-dark(#000,#fff);--codehilite-py:light-dark(#000,#fff);--codehilite-nt:light-dark(#8250df,#b39ddb);--codehilite-nv:light-dark(#000,#fff);--codehilite-ow:light-dark(#000,#fff);--codehilite-mb:light-dark(#1c01ce,#7289da);--codehilite-mf:light-dark(#1c01ce,#7289da);--codehilite-mh:light-dark(#1c01ce,#7289da);--codehilite-mi:light-dark(#1c01ce,#7289da);--codehilite-mo:light-dark(#1c01ce,#7289da);--codehilite-sa:light-dark(#0a3069,#5af);--codehilite-sb:light-dark(#0a3069,#5af);--codehilite-sc:light-dark(#0a3069,#5af);--codehilite-dl:light-dark(#0a3069,#5af);--codehilite-sd:light-dark(#0a3069,#5af);--codehilite-s2:light-dark(#0a3069,#5af);--codehilite-se:light-dark(#0a3069,#5af);--codehilite-sh:light-dark(#0a3069,#5af);--codehilite-si:light-dark(#0a3069,#5af);--codehilite-sx:light-dark(#0a3069,#5af);--codehilite-sr:light-dark(#0a3069,#5af);--codehilite-s1:light-dark(#0a3069,#5af);--codehilite-ss:light-dark(#0a3069,#5af);--codehilite-bp:light-dark(#5b269a,#9c4dcc);--codehilite-fm:light-dark(#000,#fff);--codehilite-vc:light-dark(#000,#fff);--codehilite-vg:light-dark(#000,#fff);--codehilite-vi:light-dark(#000,#fff);--codehilite-vm:light-dark(#000,#fff);--codehilite-il:light-dark(#1c01ce,#7289da)}}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.increase-pointer-area-x{border:none}.increase-pointer-area-x:before{content:"";width:50px;position:absolute;top:0;bottom:0;left:-50px}.increase-pointer-area-x:after{content:"";width:50px;position:absolute;top:0;bottom:0;right:-50px}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden}.absolute,.sr-only{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing,.25rem)*0)}.inset-x-0{inset-inline:calc(var(--spacing,.25rem)*0)}.inset-y-0{inset-block:calc(var(--spacing,.25rem)*0)}.-top-0\.5{top:calc(var(--spacing,.25rem)*-.5)}.-top-1{top:calc(var(--spacing,.25rem)*-1)}.-top-2{top:calc(var(--spacing,.25rem)*-2)}.-top-4{top:calc(var(--spacing,.25rem)*-4)}.-top-6{top:calc(var(--spacing,.25rem)*-6)}.top-0{top:calc(var(--spacing,.25rem)*0)}.top-1{top:calc(var(--spacing,.25rem)*1)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing,.25rem)*2)}.top-3{top:calc(var(--spacing,.25rem)*3)}.top-4{top:calc(var(--spacing,.25rem)*4)}.top-5{top:calc(var(--spacing,.25rem)*5)}.top-8{top:calc(var(--spacing,.25rem)*8)}.top-12{top:calc(var(--spacing,.25rem)*12)}.top-14{top:calc(var(--spacing,.25rem)*14)}.top-\[-2px\]{top:-2px}.top-\[5vh\]{top:5vh}.top-\[10\.5px\]{top:10.5px}.top-\[12px\]{top:12px}.top-\[25vh\]{top:25vh}.top-\[60\%\]{top:60%}.top-full{top:100%}.top-px{top:1px}.-right-1{right:calc(var(--spacing,.25rem)*-1)}.-right-9{right:calc(var(--spacing,.25rem)*-9)}.right-0{right:calc(var(--spacing,.25rem)*0)}.right-1{right:calc(var(--spacing,.25rem)*1)}.right-2{right:calc(var(--spacing,.25rem)*2)}.right-3{right:calc(var(--spacing,.25rem)*3)}.right-4{right:calc(var(--spacing,.25rem)*4)}.right-5{right:calc(var(--spacing,.25rem)*5)}.right-6{right:calc(var(--spacing,.25rem)*6)}.right-8{right:calc(var(--spacing,.25rem)*8)}.right-\[-2px\]{right:-2px}.right-\[16px\]{right:16px}.-bottom-6{bottom:calc(var(--spacing,.25rem)*-6)}.bottom-0{bottom:calc(var(--spacing,.25rem)*0)}.bottom-1{bottom:calc(var(--spacing,.25rem)*1)}.bottom-2{bottom:calc(var(--spacing,.25rem)*2)}.bottom-5{bottom:calc(var(--spacing,.25rem)*5)}.bottom-10{bottom:calc(var(--spacing,.25rem)*10)}.bottom-16{bottom:calc(var(--spacing,.25rem)*16)}.bottom-\[-2px\]{bottom:-2px}.-left-7{left:calc(var(--spacing,.25rem)*-7)}.-left-\[280px\]{left:-280px}.left-0{left:calc(var(--spacing,.25rem)*0)}.left-1{left:calc(var(--spacing,.25rem)*1)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing,.25rem)*2)}.left-4{left:calc(var(--spacing,.25rem)*4)}.left-5{left:calc(var(--spacing,.25rem)*5)}.left-12{left:calc(var(--spacing,.25rem)*12)}.left-\[-2px\]{left:-2px}.left-\[-26px\]{left:-26px}.left-\[300px\]{left:300px}.left-\[calc\(var\(--spacing-extra-small\,8px\)\+17px\)\]{left:calc(var(--spacing-extra-small,8px) + 17px)}.z-0{z-index:0}.z-1{z-index:1}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-100{z-index:100}.z-200{z-index:200}.z-10000{z-index:10000}.z-\[1\]{z-index:1}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.float-right{float:right}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing,.25rem)*0)}.m-1{margin:calc(var(--spacing,.25rem)*1)}.m-2{margin:calc(var(--spacing,.25rem)*2)}.m-4{margin:calc(var(--spacing,.25rem)*4)}.m-10{margin:calc(var(--spacing,.25rem)*10)}.m-20{margin:calc(var(--spacing,.25rem)*20)}.m-\[2px\]{margin:2px}.m-auto{margin:auto}.container{margin-inline:auto;padding-inline:2rem}@media (width>=40rem){.container{max-width:none}}@media (width>=1400px){.container{max-width:1400px}}.-mx-1{margin-inline:calc(var(--spacing,.25rem)*-1)}.mx-0{margin-inline:calc(var(--spacing,.25rem)*0)}.mx-1{margin-inline:calc(var(--spacing,.25rem)*1)}.mx-1\.5{margin-inline:calc(var(--spacing,.25rem)*1.5)}.mx-2{margin-inline:calc(var(--spacing,.25rem)*2)}.mx-3{margin-inline:calc(var(--spacing,.25rem)*3)}.mx-4{margin-inline:calc(var(--spacing,.25rem)*4)}.mx-6{margin-inline:calc(var(--spacing,.25rem)*6)}.mx-20{margin-inline:calc(var(--spacing,.25rem)*20)}.mx-\[2px\]{margin-inline:2px}.mx-auto{margin-inline:auto}.mx-px{margin-inline:1px}.my-0{margin-block:calc(var(--spacing,.25rem)*0)}.my-0\.5{margin-block:calc(var(--spacing,.25rem)*.5)}.my-1{margin-block:calc(var(--spacing,.25rem)*1)}.my-2{margin-block:calc(var(--spacing,.25rem)*2)}.my-3{margin-block:calc(var(--spacing,.25rem)*3)}.my-4{margin-block:calc(var(--spacing,.25rem)*4)}.my-6{margin-block:calc(var(--spacing,.25rem)*6)}.my-10{margin-block:calc(var(--spacing,.25rem)*10)}.my-auto{margin-block:auto}.prose{color:inherit;max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--muted-foreground);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--muted-foreground)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-inline-start-color:var(--tw-prose-quote-borders);color:var(--tw-prose-quotes);quotes:"“""”""‘""’";border-inline-start-width:.25rem;margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);color:var(--tw-prose-kbd);padding-inline-end:.375em;padding-top:.1875em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:500}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);background:inherit;color:inherit;padding-inline-end:1.14286em;padding-top:.857143em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);padding-inline-end:.571429em;padding-bottom:.571429em;vertical-align:bottom;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.571429em;padding-top:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose{font-family:var(--text-font)}.prose-2xl{font-size:1.5rem;line-height:1.66667}.prose-2xl :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em}.prose-2xl :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.06667em;margin-bottom:1.06667em;font-size:1.25em;line-height:1.46667}.prose-2xl :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.77778em;margin-bottom:1.77778em;padding-inline-start:1.11111em}.prose-2xl :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.875em;font-size:2.66667em;line-height:1}.prose-2xl :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.5em;margin-bottom:.833333em;font-size:2em;line-height:1.08333}.prose-2xl :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.666667em;font-size:1.5em;line-height:1.22222}.prose-2xl :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.66667em;margin-bottom:.666667em;line-height:1.5}.prose-2xl :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-2xl :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-2xl :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-2xl :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-2xl :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.333333em;padding-top:.25em;padding-bottom:.25em;border-radius:.375rem;padding-inline-start:.333333em;font-size:.833333em}.prose-2xl :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.833333em}.prose-2xl :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.prose-2xl :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-2xl :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1.6em;padding-top:1.2em;padding-bottom:1.2em;border-radius:.5rem;margin-top:2em;margin-bottom:2em;padding-inline-start:1.6em;font-size:.833333em;line-height:1.8}.prose-2xl :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-2xl :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.58333em}.prose-2xl :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose-2xl :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-2xl :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.416667em}.prose-2xl :where(.prose-2xl>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.833333em;margin-bottom:.833333em}.prose-2xl :where(.prose-2xl>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em}.prose-2xl :where(.prose-2xl>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.33333em}.prose-2xl :where(.prose-2xl>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em}.prose-2xl :where(.prose-2xl>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.33333em}.prose-2xl :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;margin-bottom:.666667em}.prose-2xl :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em}.prose-2xl :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em}.prose-2xl :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.58333em}.prose-2xl :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3em;margin-bottom:3em}.prose-2xl :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-2xl :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-2xl :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-2xl :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-2xl :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.833333em;line-height:1.4}.prose-2xl :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.6em;padding-bottom:.8em;padding-inline-start:.6em}.prose-2xl :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-2xl :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-2xl :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.6em;padding-top:.8em;padding-bottom:.8em;padding-inline-start:.6em}.prose-2xl :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-2xl :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-2xl :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-2xl :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-2xl :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;font-size:.833333em;line-height:1.6}.prose-2xl :where(.prose-2xl>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-2xl :where(.prose-2xl>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-base{font-size:1rem;line-height:1.75}.prose-base :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-base :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose-base :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose-base :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.888889em;font-size:2.25em;line-height:1.11111}.prose-base :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:1em;font-size:1.5em;line-height:1.33333}.prose-base :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;line-height:1.6}.prose-base :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose-base :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-base :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-base :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-base :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-base :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.375em;padding-top:.1875em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-size:.875em}.prose-base :where(code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-base :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.prose-base :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-base :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1.14286em;padding-top:.857143em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;line-height:1.71429}.prose-base :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-base :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose-base :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose-base :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-base :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose-base :where(.prose-base>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose-base>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose-base>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(.prose-base>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose-base>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-base :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose-base :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose-base :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3em;margin-bottom:3em}.prose-base :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-base :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-base :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-base :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-base :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.71429}.prose-base :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose-base :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-base :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-base :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.571429em;padding-top:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose-base :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-base :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-base :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-base :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-base :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose-base :where(.prose-base>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-base :where(.prose-base>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-lg{font-size:1.125rem;line-height:1.77778}.prose-lg :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em}.prose-lg :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.09091em;margin-bottom:1.09091em;font-size:1.22222em;line-height:1.45455}.prose-lg :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em}.prose-lg :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.833333em;font-size:2.66667em;line-height:1}.prose-lg :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.86667em;margin-bottom:1.06667em;font-size:1.66667em;line-height:1.33333}.prose-lg :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.66667em;margin-bottom:.666667em;font-size:1.33333em;line-height:1.5}.prose-lg :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.77778em;margin-bottom:.444444em;line-height:1.55556}.prose-lg :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-lg :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.77778em;margin-bottom:1.77778em}.prose-lg :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-lg :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.77778em;margin-bottom:1.77778em}.prose-lg :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.444444em;padding-top:.222222em;padding-bottom:.222222em;border-radius:.3125rem;padding-inline-start:.444444em;font-size:.888889em}.prose-lg :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-lg :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.866667em}.prose-lg :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.prose-lg :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1.5em;padding-top:1em;padding-bottom:1em;border-radius:.375rem;margin-top:2em;margin-bottom:2em;padding-inline-start:1.5em;font-size:.888889em;line-height:1.75}.prose-lg :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-lg :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.55556em}.prose-lg :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;margin-bottom:.666667em}.prose-lg :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-lg :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.444444em}.prose-lg :where(.prose-lg>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em}.prose-lg :where(.prose-lg>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em}.prose-lg :where(.prose-lg>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.33333em}.prose-lg :where(.prose-lg>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em}.prose-lg :where(.prose-lg>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.33333em}.prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em}.prose-lg :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em}.prose-lg :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em}.prose-lg :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;padding-inline-start:1.55556em}.prose-lg :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3.11111em;margin-bottom:3.11111em}.prose-lg :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-lg :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-lg :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-lg :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em;line-height:1.5}.prose-lg :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.75em;padding-bottom:.75em;padding-inline-start:.75em}.prose-lg :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-lg :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-lg :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.75em;padding-top:.75em;padding-bottom:.75em;padding-inline-start:.75em}.prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-lg :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.77778em;margin-bottom:1.77778em}.prose-lg :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-lg :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;font-size:.888889em;line-height:1.5}.prose-lg :where(.prose-lg>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-lg :where(.prose-lg>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.357143em;padding-top:.142857em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-top:.666667em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-top:.666667em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-xl{font-size:1.25rem;line-height:1.8}.prose-xl :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.prose-xl :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;margin-bottom:1em;font-size:1.2em;line-height:1.5}.prose-xl :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1.06667em}.prose-xl :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.857143em;font-size:2.8em;line-height:1}.prose-xl :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.888889em;font-size:1.8em;line-height:1.11111}.prose-xl :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.666667em;font-size:1.5em;line-height:1.33333}.prose-xl :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.8em;margin-bottom:.6em;line-height:1.6}.prose-xl :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-xl :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-xl :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-xl :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-xl :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.4em;padding-top:.25em;padding-bottom:.25em;border-radius:.3125rem;padding-inline-start:.4em;font-size:.9em}.prose-xl :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-xl :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.861111em}.prose-xl :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-xl :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1.33333em;padding-top:1.11111em;padding-bottom:1.11111em;border-radius:.5rem;margin-top:2em;margin-bottom:2em;padding-inline-start:1.33333em;font-size:.9em;line-height:1.77778}.prose-xl :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-xl :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;padding-inline-start:1.6em}.prose-xl :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6em;margin-bottom:.6em}.prose-xl :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-xl :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4em}.prose-xl :where(.prose-xl>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose-xl>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.prose-xl :where(.prose-xl>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.2em}.prose-xl :where(.prose-xl>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.prose-xl :where(.prose-xl>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.2em}.prose-xl :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.prose-xl :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.prose-xl :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6em;padding-inline-start:1.6em}.prose-xl :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8em;margin-bottom:2.8em}.prose-xl :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-xl :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-xl :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-xl :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-xl :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em;line-height:1.55556}.prose-xl :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.666667em;padding-bottom:.888889em;padding-inline-start:.666667em}.prose-xl :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-xl :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-xl :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.666667em;padding-top:.888889em;padding-bottom:.888889em;padding-inline-start:.666667em}.prose-xl :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-xl :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-xl :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-xl :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-xl :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;font-size:.9em;line-height:1.55556}.prose-xl :where(.prose-xl>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-xl :where(.prose-xl>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-0\.5{margin-top:calc(var(--spacing,.25rem)*-.5)}.-mt-1{margin-top:calc(var(--spacing,.25rem)*-1)}.-mt-2{margin-top:calc(var(--spacing,.25rem)*-2)}.-mt-4{margin-top:calc(var(--spacing,.25rem)*-4)}.-mt-px{margin-top:-1px}.mt-0{margin-top:calc(var(--spacing,.25rem)*0)}.mt-0\.5{margin-top:calc(var(--spacing,.25rem)*.5)}.mt-1{margin-top:calc(var(--spacing,.25rem)*1)}.mt-1\.5{margin-top:calc(var(--spacing,.25rem)*1.5)}.mt-2{margin-top:calc(var(--spacing,.25rem)*2)}.mt-2\.5{margin-top:calc(var(--spacing,.25rem)*2.5)}.mt-3{margin-top:calc(var(--spacing,.25rem)*3)}.mt-4{margin-top:calc(var(--spacing,.25rem)*4)}.mt-5{margin-top:calc(var(--spacing,.25rem)*5)}.mt-6{margin-top:calc(var(--spacing,.25rem)*6)}.mt-10{margin-top:calc(var(--spacing,.25rem)*10)}.mt-12{margin-top:calc(var(--spacing,.25rem)*12)}.mt-14{margin-top:calc(var(--spacing,.25rem)*14)}.mt-\[0\.5px\]{margin-top:.5px}.mt-\[3px\]{margin-top:3px}.-mr-1\.5{margin-right:calc(var(--spacing,.25rem)*-1.5)}.mr-1{margin-right:calc(var(--spacing,.25rem)*1)}.mr-1\.5{margin-right:calc(var(--spacing,.25rem)*1.5)}.mr-2{margin-right:calc(var(--spacing,.25rem)*2)}.mr-3{margin-right:calc(var(--spacing,.25rem)*3)}.mr-4{margin-right:calc(var(--spacing,.25rem)*4)}.mr-24{margin-right:calc(var(--spacing,.25rem)*24)}.mr-\[-4px\]{margin-right:-4px}.-mb-1{margin-bottom:calc(var(--spacing,.25rem)*-1)}.-mb-2{margin-bottom:calc(var(--spacing,.25rem)*-2)}.-mb-4{margin-bottom:calc(var(--spacing,.25rem)*-4)}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:calc(var(--spacing,.25rem)*0)}.mb-0\.5{margin-bottom:calc(var(--spacing,.25rem)*.5)}.mb-1{margin-bottom:calc(var(--spacing,.25rem)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing,.25rem)*1.5)}.mb-2{margin-bottom:calc(var(--spacing,.25rem)*2)}.mb-3{margin-bottom:calc(var(--spacing,.25rem)*3)}.mb-4{margin-bottom:calc(var(--spacing,.25rem)*4)}.mb-5{margin-bottom:calc(var(--spacing,.25rem)*5)}.mb-6{margin-bottom:calc(var(--spacing,.25rem)*6)}.mb-10{margin-bottom:calc(var(--spacing,.25rem)*10)}.mb-12{margin-bottom:calc(var(--spacing,.25rem)*12)}.mb-16{margin-bottom:calc(var(--spacing,.25rem)*16)}.mb-\[40px\]{margin-bottom:40px}.mb-px{margin-bottom:1px}.-ml-1{margin-left:calc(var(--spacing,.25rem)*-1)}.-ml-2{margin-left:calc(var(--spacing,.25rem)*-2)}.ml-0\.5{margin-left:calc(var(--spacing,.25rem)*.5)}.ml-1{margin-left:calc(var(--spacing,.25rem)*1)}.ml-2{margin-left:calc(var(--spacing,.25rem)*2)}.ml-3{margin-left:calc(var(--spacing,.25rem)*3)}.ml-4{margin-left:calc(var(--spacing,.25rem)*4)}.ml-6{margin-left:calc(var(--spacing,.25rem)*6)}.ml-8{margin-left:calc(var(--spacing,.25rem)*8)}.ml-9{margin-left:calc(var(--spacing,.25rem)*9)}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.line-clamp-2{-webkit-line-clamp:2}.line-clamp-2,.line-clamp-3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\!inline{display:inline!important}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.size-3{height:calc(var(--spacing,.25rem)*3);width:calc(var(--spacing,.25rem)*3)}.size-4{height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*4)}.size-6{height:calc(var(--spacing,.25rem)*6);width:calc(var(--spacing,.25rem)*6)}.size-7{height:calc(var(--spacing,.25rem)*7);width:calc(var(--spacing,.25rem)*7)}.size-9{height:calc(var(--spacing,.25rem)*9);width:calc(var(--spacing,.25rem)*9)}.size-12{height:calc(var(--spacing,.25rem)*12);width:calc(var(--spacing,.25rem)*12)}.size-20{height:calc(var(--spacing,.25rem)*20);width:calc(var(--spacing,.25rem)*20)}.h-\(--radix-navigation-menu-viewport-height\){height:var(--radix-navigation-menu-viewport-height)}.h-\(--radix-select-trigger-height\){height:var(--radix-select-trigger-height)}.h-0{height:calc(var(--spacing,.25rem)*0)}.h-1{height:calc(var(--spacing,.25rem)*1)}.h-1\.5{height:calc(var(--spacing,.25rem)*1.5)}.h-2{height:calc(var(--spacing,.25rem)*2)}.h-2\.5{height:calc(var(--spacing,.25rem)*2.5)}.h-3{height:calc(var(--spacing,.25rem)*3)}.h-3\.5{height:calc(var(--spacing,.25rem)*3.5)}.h-4{height:calc(var(--spacing,.25rem)*4)}.h-4\.5{height:calc(var(--spacing,.25rem)*4.5)}.h-5{height:calc(var(--spacing,.25rem)*5)}.h-5\/6{height:83.3333%}.h-6{height:calc(var(--spacing,.25rem)*6)}.h-6\.5{height:calc(var(--spacing,.25rem)*6.5)}.h-7{height:calc(var(--spacing,.25rem)*7)}.h-8{height:calc(var(--spacing,.25rem)*8)}.h-9{height:calc(var(--spacing,.25rem)*9)}.h-10{height:calc(var(--spacing,.25rem)*10)}.h-11{height:calc(var(--spacing,.25rem)*11)}.h-12{height:calc(var(--spacing,.25rem)*12)}.h-20{height:calc(var(--spacing,.25rem)*20)}.h-24{height:calc(var(--spacing,.25rem)*24)}.h-32{height:calc(var(--spacing,.25rem)*32)}.h-\[2px\]{height:2px}.h-\[3px\]{height:3px}.h-\[10px\]{height:10px}.h-\[16px\]{height:16px}.h-\[18px\]{height:18px}.h-\[20px\]{height:20px}.h-\[21px\]{height:21px}.h-\[24px\]{height:24px}.h-\[25px\]{height:25px}.h-\[26px\]{height:26px}.h-\[27px\]{height:27px}.h-\[36px\]{height:36px}.h-\[90vh\]{height:90vh}.h-\[400px\]{height:400px}.h-\[450px\]{height:450px}.h-\[calc\(100\%-1rem\)\]{height:calc(100% - 1rem)}.h-\[calc\(100\%-4px\)\]{height:calc(100% - 4px)}.h-\[calc\(100\%-53px\)\]{height:calc(100% - 53px)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-0{max-height:calc(var(--spacing,.25rem)*0)}.max-h-14{max-height:calc(var(--spacing,.25rem)*14)}.max-h-20{max-height:calc(var(--spacing,.25rem)*20)}.max-h-24{max-height:calc(var(--spacing,.25rem)*24)}.max-h-40{max-height:calc(var(--spacing,.25rem)*40)}.max-h-60{max-height:calc(var(--spacing,.25rem)*60)}.max-h-64{max-height:calc(var(--spacing,.25rem)*64)}.max-h-80{max-height:calc(var(--spacing,.25rem)*80)}.max-h-96{max-height:calc(var(--spacing,.25rem)*96)}.max-h-192{max-height:calc(var(--spacing,.25rem)*192)}.max-h-\[14px\]{max-height:14px}.max-h-\[40vh\]{max-height:40vh}.max-h-\[50\%\]{max-height:50%}.max-h-\[70vh\]{max-height:70vh}.max-h-\[75vh\]{max-height:75vh}.max-h-\[80\%\]{max-height:80%}.max-h-\[80px\]{max-height:80px}.max-h-\[80vh\]{max-height:80vh}.max-h-\[90\%\]{max-height:90%}.max-h-\[95\%\]{max-height:95%}.max-h-\[100px\]{max-height:100px}.max-h-\[280px\]{max-height:280px}.max-h-\[300px\]{max-height:300px}.max-h-\[400px\]{max-height:400px}.max-h-\[500px\]{max-height:500px}.max-h-full{max-height:100%}.max-h-none{max-height:none}.max-h-screen{max-height:100vh}.min-h-0{min-height:calc(var(--spacing,.25rem)*0)}.min-h-4{min-height:calc(var(--spacing,.25rem)*4)}.min-h-6{min-height:calc(var(--spacing,.25rem)*6)}.min-h-7{min-height:calc(var(--spacing,.25rem)*7)}.min-h-10{min-height:calc(var(--spacing,.25rem)*10)}.min-h-11{min-height:calc(var(--spacing,.25rem)*11)}.min-h-\[24px\]{min-height:24px}.min-h-\[28px\]{min-height:28px}.min-h-\[40px\]{min-height:40px}.min-h-\[80px\]{min-height:80px}.min-h-\[100px\]{min-height:100px}.min-h-\[200px\]{min-height:200px}.min-h-full{min-height:100%}.w-\(--content-width\){width:var(--content-width)}.w-1{width:calc(var(--spacing,.25rem)*1)}.w-1\.5{width:calc(var(--spacing,.25rem)*1.5)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-1\/4{width:25%}.w-2{width:calc(var(--spacing,.25rem)*2)}.w-2\.5{width:calc(var(--spacing,.25rem)*2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing,.25rem)*3)}.w-3\.5{width:calc(var(--spacing,.25rem)*3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing,.25rem)*4)}.w-5{width:calc(var(--spacing,.25rem)*5)}.w-6{width:calc(var(--spacing,.25rem)*6)}.w-7{width:calc(var(--spacing,.25rem)*7)}.w-8{width:calc(var(--spacing,.25rem)*8)}.w-8\.5{width:calc(var(--spacing,.25rem)*8.5)}.w-9{width:calc(var(--spacing,.25rem)*9)}.w-10{width:calc(var(--spacing,.25rem)*10)}.w-11{width:calc(var(--spacing,.25rem)*11)}.w-12{width:calc(var(--spacing,.25rem)*12)}.w-14{width:calc(var(--spacing,.25rem)*14)}.w-16{width:calc(var(--spacing,.25rem)*16)}.w-20{width:calc(var(--spacing,.25rem)*20)}.w-24{width:calc(var(--spacing,.25rem)*24)}.w-26{width:calc(var(--spacing,.25rem)*26)}.w-32{width:calc(var(--spacing,.25rem)*32)}.w-40{width:calc(var(--spacing,.25rem)*40)}.w-48{width:calc(var(--spacing,.25rem)*48)}.w-52{width:calc(var(--spacing,.25rem)*52)}.w-56{width:calc(var(--spacing,.25rem)*56)}.w-64{width:calc(var(--spacing,.25rem)*64)}.w-70{width:calc(var(--spacing,.25rem)*70)}.w-72{width:calc(var(--spacing,.25rem)*72)}.w-80{width:calc(var(--spacing,.25rem)*80)}.w-96{width:calc(var(--spacing,.25rem)*96)}.w-100{width:calc(var(--spacing,.25rem)*100)}.w-120{width:calc(var(--spacing,.25rem)*120)}.w-128{width:calc(var(--spacing,.25rem)*128)}.w-\[3px\]{width:3px}.w-\[10px\]{width:10px}.w-\[16px\]{width:16px}.w-\[24px\]{width:24px}.w-\[25px\]{width:25px}.w-\[26px\]{width:26px}.w-\[27px\]{width:27px}.w-\[36px\]{width:36px}.w-\[50px\]{width:50px}.w-\[55\%\]{width:55%}.w-\[60\%\]{width:60%}.w-\[60px\]{width:60px}.w-\[70\%\]{width:70%}.w-\[90\%\]{width:90%}.w-\[90px\]{width:90px}.w-\[90vw\]{width:90vw}.w-\[95\%\]{width:95%}.w-\[100px\]{width:100px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[240px\]{width:240px}.w-\[300px\]{width:300px}.w-\[320px\]{width:320px}.w-\[400px\]{width:400px}.w-\[480px\]{width:480px}.w-\[500px\]{width:500px}.w-\[620px\]{width:620px}.w-\[650px\]{width:650px}.w-\[calc\(100\%-2rem\)\]{width:calc(100% - 2rem)}.w-\[calc\(100\%-5rem\)\]{width:calc(100% - 5rem)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--content-width\){max-width:var(--content-width)}.max-w-\(--content-width-medium\){max-width:var(--content-width-medium)}.max-w-2xl{max-width:var(--container-2xl,42rem)}.max-w-4xl{max-width:var(--container-4xl,56rem)}.max-w-6xl{max-width:var(--container-6xl,72rem)}.max-w-16{max-width:calc(var(--spacing,.25rem)*16)}.max-w-24{max-width:calc(var(--spacing,.25rem)*24)}.max-w-64{max-width:calc(var(--spacing,.25rem)*64)}.max-w-72{max-width:calc(var(--spacing,.25rem)*72)}.max-w-80{max-width:calc(var(--spacing,.25rem)*80)}.max-w-96{max-width:calc(var(--spacing,.25rem)*96)}.max-w-\[75\%\]{max-width:75%}.max-w-\[80\%\]{max-width:80%}.max-w-\[80vw\]{max-width:80vw}.max-w-\[100px\]{max-width:100px}.max-w-\[130px\]{max-width:130px}.max-w-\[150px\]{max-width:150px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[300px\]{max-width:300px}.max-w-\[350px\]{max-width:350px}.max-w-\[360px\]{max-width:360px}.max-w-\[400px\]{max-width:400px}.max-w-\[500px\]{max-width:500px}.max-w-\[550px\]{max-width:550px}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-fit{max-width:fit-content}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.max-w-md{max-width:var(--container-md,28rem)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm,24rem)}.max-w-xs{max-width:var(--container-xs,20rem)}.min-w-\(--radix-popover-trigger-width\){min-width:var(--radix-popover-trigger-width)}.min-w-\(--radix-select-trigger-width\){min-width:var(--radix-select-trigger-width)}.min-w-0{min-width:calc(var(--spacing,.25rem)*0)}.min-w-12{min-width:calc(var(--spacing,.25rem)*12)}.min-w-14{min-width:calc(var(--spacing,.25rem)*14)}.min-w-32{min-width:calc(var(--spacing,.25rem)*32)}.min-w-80{min-width:calc(var(--spacing,.25rem)*80)}.min-w-\[3\.5rem\]{min-width:3.5rem}.min-w-\[3em\]{min-width:3em}.min-w-\[16px\]{min-width:16px}.min-w-\[40px\]{min-width:40px}.min-w-\[60px\]{min-width:60px}.min-w-\[100px\]{min-width:100px}.min-w-\[110px\]{min-width:110px}.min-w-\[140px\]{min-width:140px}.min-w-\[160px\]{min-width:160px}.min-w-\[180px\]{min-width:180px}.min-w-\[200px\]{min-width:200px}.min-w-\[210px\]{min-width:210px}.min-w-\[220px\]{min-width:220px}.min-w-\[240px\]{min-width:240px}.min-w-\[250px\]{min-width:250px}.min-w-\[300px\]{min-width:300px}.min-w-\[400px\]{min-width:400px}.min-w-\[500px\]{min-width:500px}.min-w-\[800px\]{min-width:800px}.min-w-full{min-width:100%}.flex-0{flex:0}.flex-1{flex:1}.flex-2{flex:2}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-fixed{table-layout:fixed}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:calc(var(--spacing,.25rem)*0);--tw-border-spacing-y:calc(var(--spacing,.25rem)*0)}.border-spacing-0,.border-spacing-x-0{border-spacing:var(--tw-border-spacing-x)var(--tw-border-spacing-y)}.border-spacing-x-0{--tw-border-spacing-x:calc(var(--spacing,.25rem)*0)}.border-spacing-y-1{--tw-border-spacing-y:calc(var(--spacing,.25rem)*1);border-spacing:var(--tw-border-spacing-x)var(--tw-border-spacing-y)}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-2{--tw-translate-y:calc(var(--spacing,.25rem)*-2)}.-translate-y-2,.translate-y-0{translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing,.25rem)*0)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\[spin_0\.5s\]{animation:.5s spin}.animate-delayed-show-200{animation:.2s ease-out delayed-show}.animate-ellipsis-dot{animation:.4s ease-in-out infinite ellipsis-dot}.animate-ping{animation:var(--animate-ping,ping 1s cubic-bezier(0,0,.2,1)infinite)}.animate-pulse{animation:var(--animate-pulse,pulse 2s cubic-bezier(.4,0,.6,1)infinite)}.animate-slide{animation:1.5s ease-in-out infinite slide}.animate-spin{animation:var(--animate-spin,spin 1s linear infinite)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-start{scroll-snap-align:start}.scroll-m-20{scroll-margin:calc(var(--spacing,.25rem)*20)}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-cols-min{grid-auto-columns:min-content}.grid-flow-col{grid-auto-flow:column}.grid-flow-dense{grid-auto-flow:dense}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-2-fit{grid-template-columns:repeat(2,minmax(0,max-content))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[30px_1fr\]{grid-template-columns:30px 1fr}.grid-cols-\[auto_2fr_3fr\]{grid-template-columns:auto 2fr 3fr}.grid-cols-\[fit-content\(40px\)_1fr\]{grid-template-columns:fit-content(40px) 1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-end{justify-items:end}.justify-items-start{justify-items:start}.gap-0{gap:calc(var(--spacing,.25rem)*0)}.gap-0\.5{gap:calc(var(--spacing,.25rem)*.5)}.gap-1{gap:calc(var(--spacing,.25rem)*1)}.gap-1\.5{gap:calc(var(--spacing,.25rem)*1.5)}.gap-2{gap:calc(var(--spacing,.25rem)*2)}.gap-2\.5{gap:calc(var(--spacing,.25rem)*2.5)}.gap-3{gap:calc(var(--spacing,.25rem)*3)}.gap-3\.5{gap:calc(var(--spacing,.25rem)*3.5)}.gap-4{gap:calc(var(--spacing,.25rem)*4)}.gap-5{gap:calc(var(--spacing,.25rem)*5)}.gap-6{gap:calc(var(--spacing,.25rem)*6)}.gap-8{gap:calc(var(--spacing,.25rem)*8)}.gap-20{gap:calc(var(--spacing,.25rem)*20)}.gap-\[2px\]{gap:2px}.gap-px{gap:1px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*0*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*0*(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*1*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*1*(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*1.5*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*1.5*(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*2*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*2*(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*3*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*3*(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*4*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*4*(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*6*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*6*(1 - var(--tw-space-y-reverse)))}.gap-x-1\.5{column-gap:calc(var(--spacing,.25rem)*1.5)}.gap-x-2{column-gap:calc(var(--spacing,.25rem)*2)}.gap-x-8{column-gap:calc(var(--spacing,.25rem)*8)}.gap-x-16{column-gap:calc(var(--spacing,.25rem)*16)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--spacing,.25rem)*1*var(--tw-space-x-reverse));margin-inline-end:calc(var(--spacing,.25rem)*1*(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--spacing,.25rem)*2*var(--tw-space-x-reverse));margin-inline-end:calc(var(--spacing,.25rem)*2*(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--spacing,.25rem)*3*var(--tw-space-x-reverse));margin-inline-end:calc(var(--spacing,.25rem)*3*(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--spacing,.25rem)*4*var(--tw-space-x-reverse));margin-inline-end:calc(var(--spacing,.25rem)*4*(1 - var(--tw-space-x-reverse)))}.gap-y-1{row-gap:calc(var(--spacing,.25rem)*1)}.gap-y-2{row-gap:calc(var(--spacing,.25rem)*2)}.gap-y-4{row-gap:calc(var(--spacing,.25rem)*4)}.gap-y-6{row-gap:calc(var(--spacing,.25rem)*6)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-end-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-style:var(--tw-border-style)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-bottom-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse))}:where(.divide-\(--slate-3\)>:not(:last-child)){border-color:var(--slate-3)}:where(.divide-border>:not(:last-child)){border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){:where(.divide-border>:not(:last-child)){border-color:color-mix(in srgb,var(--border),transparent 0%)}}.self-center{align-self:center}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl,1rem)}.rounded-3xl{border-radius:var(--radius-3xl,1.5rem)}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:var(--radius-xl,.75rem)}.rounded-t{border-top-right-radius:.25rem}.rounded-l,.rounded-t{border-top-left-radius:.25rem}.rounded-l{border-bottom-left-radius:.25rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl-md{border-top-left-radius:calc(var(--radius) - 2px)}.rounded-tl-none{border-top-left-radius:0}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.rounded-r-none{border-bottom-right-radius:0}.rounded-r-none,.rounded-tr-none{border-top-right-radius:0}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-br-lg{border-bottom-right-radius:var(--radius)}.rounded-br-none{border-bottom-right-radius:0}.rounded-bl-lg{border-bottom-left-radius:var(--radius)}.rounded-bl-none{border-bottom-left-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-y-0{border-block-style:var(--tw-border-style);border-block-width:0}.border-y-1{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s-2{border-inline-start-style:var(--tw-border-style);border-inline-start-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-b-0\!{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:0!important}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\(--amber-6\){border-color:var(--amber-6)}.border-\(--amber-7\){border-color:var(--amber-7)}.border-\(--amber-9\){border-color:var(--amber-9)}.border-\(--amber-11\){border-color:var(--amber-11)}.border-\(--blue-6\){border-color:var(--blue-6)}.border-\(--blue-8\){border-color:var(--blue-8)}.border-\(--grass-5\){border-color:var(--grass-5)}.border-\(--grass-7\){border-color:var(--grass-7)}.border-\(--grass-8\){border-color:var(--grass-8)}.border-\(--grass-9\){border-color:var(--grass-9)}.border-\(--grass-11\){border-color:var(--grass-11)}.border-\(--green-6\){border-color:var(--green-6)}.border-\(--red-6\){border-color:var(--red-6)}.border-\(--red-9\){border-color:var(--red-9)}.border-\(--red-11\){border-color:var(--red-11)}.border-\(--sky-7\){border-color:var(--sky-7)}.border-\(--sky-8\){border-color:var(--sky-8)}.border-\(--slate-4\){border-color:var(--slate-4)}.border-\(--slate-6\){border-color:var(--slate-6)}.border-\(--slate-7\){border-color:var(--slate-7)}.border-\(--slate-9\){border-color:var(--slate-9)}.border-\(--yellow-6\){border-color:var(--yellow-6)}.border-\(--yellow-7\){border-color:var(--yellow-7)}.border-\(--yellow-11\){border-color:var(--yellow-11)}.border-\[var\(--amber-6\)\]{border-color:var(--amber-6)}.border-\[var\(--amber-8\)\]{border-color:var(--amber-8)}.border-\[var\(--blue-5\)\]{border-color:var(--blue-5)}.border-\[var\(--blue-6\)\]{border-color:var(--blue-6)}.border-\[var\(--blue-7\)\]{border-color:var(--blue-7)}.border-\[var\(--blue-9\)\]{border-color:var(--blue-9)}.border-\[var\(--gray-5\)\]{border-color:var(--gray-5)}.border-\[var\(--gray-6\)\]{border-color:var(--gray-6)}.border-\[var\(--red-5\)\]{border-color:var(--red-5)}.border-\[var\(--red-6\)\]{border-color:var(--red-6)}.border-\[var\(--slate-4\)\]{border-color:var(--slate-4)}.border-\[var\(--slate-7\)\]{border-color:var(--slate-7)}.border-\[var\(--yellow-5\)\]{border-color:var(--yellow-5)}.border-action{border-color:var(--action)}@supports (color:color-mix(in lab,red,red)){.border-action{border-color:color-mix(in srgb,var(--action),transparent 0%)}}.border-blue-300{border-color:var(--color-blue-300,oklch(80.9% .105 251.813))}.border-blue-500{border-color:var(--color-blue-500,oklch(62.3% .214 259.815))}.border-border{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border{border-color:color-mix(in srgb,var(--border),transparent 0%)}}.border-border\/20{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/20{border-color:color-mix(in oklab,color-mix(in srgb,var(--border),transparent 0%)20%,transparent)}}.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,color-mix(in srgb,var(--border),transparent 0%)50%,transparent)}}.border-destructive{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive{border-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.border-destructive\/20{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/20{border-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)20%,transparent)}}.border-destructive\/50{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/50{border-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)50%,transparent)}}.border-foreground\/10{border-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.border-foreground\/10{border-color:color-mix(in oklab,color-mix(in srgb,var(--foreground),transparent 0%)10%,transparent)}}.border-foreground\/20{border-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.border-foreground\/20{border-color:color-mix(in oklab,color-mix(in srgb,var(--foreground),transparent 0%)20%,transparent)}}.border-green-300{border-color:var(--color-green-300,oklch(87.1% .15 154.449))}.border-input{border-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.border-input{border-color:color-mix(in srgb,var(--input),transparent 0%)}}.border-input\/50{border-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.border-input\/50{border-color:color-mix(in oklab,color-mix(in srgb,var(--input),transparent 0%)50%,transparent)}}.border-input\/60{border-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.border-input\/60{border-color:color-mix(in oklab,color-mix(in srgb,var(--input),transparent 0%)60%,transparent)}}.border-muted{border-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.border-muted{border-color:color-mix(in srgb,var(--muted),transparent 0%)}}.border-muted-foreground\/30{border-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/30{border-color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)30%,transparent)}}.border-muted\/50{border-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.border-muted\/50{border-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)50%,transparent)}}.border-orange-300{border-color:var(--color-orange-300,oklch(83.7% .128 66.29))}.border-primary{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary{border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.border-primary\/40{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\/40{border-color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)40%,transparent)}}.border-primary\/90{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\/90{border-color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)90%,transparent)}}.border-red-500{border-color:var(--color-red-500,oklch(63.7% .237 25.331))}.border-slate-300{border-color:var(--color-slate-300,oklch(86.9% .022 252.894))}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-primary{border-left-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-l-primary{border-left-color:color-mix(in srgb,var(--primary),transparent 0%)}}.border-l-transparent{border-left-color:#0000}.bg-\(--amber-1\){background-color:var(--amber-1)}.bg-\(--amber-2\){background-color:var(--amber-2)}.bg-\(--amber-4\){background-color:var(--amber-4)}.bg-\(--amber-6\){background-color:var(--amber-6)}.bg-\(--amber-11\){background-color:var(--amber-11)}.bg-\(--blue-1\){background-color:var(--blue-1)}.bg-\(--blue-2\){background-color:var(--blue-2)}.bg-\(--blue-3\){background-color:var(--blue-3)}.bg-\(--blue-4\){background-color:var(--blue-4)}.bg-\(--blue-6\){background-color:var(--blue-6)}.bg-\(--cm-background\){background-color:var(--cm-background)}.bg-\(--crimson-6\){background-color:var(--crimson-6)}.bg-\(--cyan-6\){background-color:var(--cyan-6)}.bg-\(--grass-2\){background-color:var(--grass-2)}.bg-\(--grass-3\)\/60{background-color:var(--grass-3)}@supports (color:color-mix(in lab,red,red)){.bg-\(--grass-3\)\/60{background-color:color-mix(in oklab,var(--grass-3)60%,transparent)}}.bg-\(--grass-4\){background-color:var(--grass-4)}.bg-\(--grass-6\){background-color:var(--grass-6)}.bg-\(--grass-7\){background-color:var(--grass-7)}.bg-\(--grass-9\){background-color:var(--grass-9)}.bg-\(--gray-1\){background-color:var(--gray-1)}.bg-\(--gray-3\){background-color:var(--gray-3)}.bg-\(--gray-4\){background-color:var(--gray-4)}.bg-\(--gray-6\){background-color:var(--gray-6)}.bg-\(--green-3\){background-color:var(--green-3)}.bg-\(--green-4\){background-color:var(--green-4)}.bg-\(--green-6\){background-color:var(--green-6)}.bg-\(--lime-6\){background-color:var(--lime-6)}.bg-\(--orange-4\){background-color:var(--orange-4)}.bg-\(--orange-6\){background-color:var(--orange-6)}.bg-\(--purple-4\){background-color:var(--purple-4)}.bg-\(--purple-6\){background-color:var(--purple-6)}.bg-\(--red-1\){background-color:var(--red-1)}.bg-\(--red-2\){background-color:var(--red-2)}.bg-\(--red-3\)\/60{background-color:var(--red-3)}@supports (color:color-mix(in lab,red,red)){.bg-\(--red-3\)\/60{background-color:color-mix(in oklab,var(--red-3)60%,transparent)}}.bg-\(--red-4\){background-color:var(--red-4)}.bg-\(--red-6\){background-color:var(--red-6)}.bg-\(--red-9\){background-color:var(--red-9)}.bg-\(--red-10\){background-color:var(--red-10)}.bg-\(--sage-1\){background-color:var(--sage-1)}.bg-\(--sage-4\){background-color:var(--sage-4)}.bg-\(--sage-6\){background-color:var(--sage-6)}.bg-\(--sky-1\){background-color:var(--sky-1)}.bg-\(--sky-2\){background-color:var(--sky-2)}.bg-\(--sky-3\){background-color:var(--sky-3)}.bg-\(--sky-6\){background-color:var(--sky-6)}.bg-\(--sky-8\){background-color:var(--sky-8)}.bg-\(--sky-11\){background-color:var(--sky-11)}.bg-\(--slate-1\){background-color:var(--slate-1)}.bg-\(--slate-2\){background-color:var(--slate-2)}.bg-\(--slate-3\){background-color:var(--slate-3)}.bg-\(--slate-4\){background-color:var(--slate-4)}.bg-\(--slate-5\){background-color:var(--slate-5)}.bg-\(--slate-6\){background-color:var(--slate-6)}.bg-\(--yellow-2\){background-color:var(--yellow-2)}.bg-\(--yellow-3\){background-color:var(--yellow-3)}.bg-\(--yellow-9\){background-color:var(--yellow-9)}.bg-\[var\(--amber-2\)\]{background-color:var(--amber-2)}.bg-\[var\(--amber-4\)\]{background-color:var(--amber-4)}.bg-\[var\(--blue-2\)\]{background-color:var(--blue-2)}.bg-\[var\(--blue-3\)\]{background-color:var(--blue-3)}.bg-\[var\(--blue-4\)\]{background-color:var(--blue-4)}.bg-\[var\(--blue-7\)\]{background-color:var(--blue-7)}.bg-\[var\(--blue-9\)\]{background-color:var(--blue-9)}.bg-\[var\(--grass-2\)\]{background-color:var(--grass-2)}.bg-\[var\(--grass-4\)\]{background-color:var(--grass-4)}.bg-\[var\(--gray-2\)\]{background-color:var(--gray-2)}.bg-\[var\(--gray-3\)\]{background-color:var(--gray-3)}.bg-\[var\(--green-3\)\]{background-color:var(--green-3)}.bg-\[var\(--green-4\)\]{background-color:var(--green-4)}.bg-\[var\(--mauve-3\)\]{background-color:var(--mauve-3)}.bg-\[var\(--orange-4\)\]{background-color:var(--orange-4)}.bg-\[var\(--purple-3\)\]{background-color:var(--purple-3)}.bg-\[var\(--purple-4\)\]{background-color:var(--purple-4)}.bg-\[var\(--red-2\)\]{background-color:var(--red-2)}.bg-\[var\(--red-3\)\]{background-color:var(--red-3)}.bg-\[var\(--red-9\)\]{background-color:var(--red-9)}.bg-\[var\(--slate-2\)\]{background-color:var(--slate-2)}.bg-\[var\(--slate-3\)\]{background-color:var(--slate-3)}.bg-\[var\(--slate-4\)\]{background-color:var(--slate-4)}.bg-\[var\(--yellow-3\)\]{background-color:var(--yellow-3)}.bg-accent{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.bg-accent{background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.bg-accent-foreground{background-color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-accent-foreground{background-color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.bg-accent\/20{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/20{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)20%,transparent)}}.bg-accent\/80{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/80{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)80%,transparent)}}.bg-accent\/85{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.bg-accent\/85{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)85%,transparent)}}.bg-action{background-color:var(--action)}@supports (color:color-mix(in lab,red,red)){.bg-action{background-color:color-mix(in srgb,var(--action),transparent 0%)}}.bg-action-foreground{background-color:var(--action-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-action-foreground{background-color:color-mix(in srgb,var(--action-foreground),transparent 0%)}}.bg-action-hover{background-color:var(--action-hover)}@supports (color:color-mix(in lab,red,red)){.bg-action-hover{background-color:color-mix(in srgb,var(--action-hover),transparent 0%)}}.bg-amber-100{background-color:var(--color-amber-100,oklch(96.2% .059 95.617))}.bg-background{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.bg-background\/80{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/80{background-color:color-mix(in oklab,color-mix(in srgb,var(--background),transparent 0%)80%,transparent)}}.bg-background\/90{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/90{background-color:color-mix(in oklab,color-mix(in srgb,var(--background),transparent 0%)90%,transparent)}}.bg-background\/95{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.bg-background\/95{background-color:color-mix(in oklab,color-mix(in srgb,var(--background),transparent 0%)95%,transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black,#000)80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50,oklch(97% .014 254.604))}.bg-blue-100{background-color:var(--color-blue-100,oklch(93.2% .032 255.585))}.bg-blue-500{background-color:var(--color-blue-500,oklch(62.3% .214 259.815))}.bg-border{background-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.bg-border{background-color:color-mix(in srgb,var(--border),transparent 0%)}}.bg-card{background-color:var(--card)}@supports (color:color-mix(in lab,red,red)){.bg-card{background-color:color-mix(in srgb,var(--card),transparent 0%)}}.bg-card-foreground{background-color:var(--card-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-card-foreground{background-color:color-mix(in srgb,var(--card-foreground),transparent 0%)}}.bg-destructive{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive{background-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.bg-destructive-foreground{background-color:var(--destructive-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-destructive-foreground{background-color:color-mix(in srgb,var(--destructive-foreground),transparent 0%)}}.bg-destructive\/4{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/4{background-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)4%,transparent)}}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)10%,transparent)}}.bg-error{background-color:var(--error)}@supports (color:color-mix(in lab,red,red)){.bg-error{background-color:color-mix(in srgb,var(--error),transparent 0%)}}.bg-error-foreground{background-color:var(--error-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-error-foreground{background-color:color-mix(in srgb,var(--error-foreground),transparent 0%)}}.bg-foreground{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.bg-foreground{background-color:color-mix(in srgb,var(--foreground),transparent 0%)}}.bg-gray-100{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}.bg-gray-800{background-color:var(--color-gray-800,oklch(27.8% .033 256.848))}.bg-green-500\/10{background-color:#00c7581a}@supports (color:color-mix(in lab,red,red)){.bg-green-500\/10{background-color:color-mix(in oklab,var(--color-green-500,oklch(72.3% .219 149.579))10%,transparent)}}.bg-inherit{background-color:inherit}.bg-input{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.bg-input{background-color:color-mix(in srgb,var(--input),transparent 0%)}}.bg-link{background-color:var(--link)}.bg-link-visited{background-color:var(--link-visited)}.bg-muted{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted{background-color:color-mix(in srgb,var(--muted),transparent 0%)}}.bg-muted-foreground{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground{background-color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.bg-muted-foreground\/60{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/60{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)60%,transparent)}}.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)20%,transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/30{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)30%,transparent)}}.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/40{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)40%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)50%,transparent)}}.bg-muted\/60{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/60{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)60%,transparent)}}.bg-muted\/80{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/80{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)80%,transparent)}}.bg-popover{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){.bg-popover{background-color:color-mix(in srgb,var(--popover),transparent 0%)}}.bg-popover-foreground{background-color:var(--popover-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-popover-foreground{background-color:color-mix(in srgb,var(--popover-foreground),transparent 0%)}}.bg-primary{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary{background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.bg-primary-foreground{background-color:var(--primary-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-primary-foreground{background-color:color-mix(in srgb,var(--primary-foreground),transparent 0%)}}.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)20%,transparent)}}.bg-purple-100{background-color:var(--color-purple-100,oklch(94.6% .033 307.174))}.bg-purple-500{background-color:var(--color-purple-500,oklch(62.7% .265 303.9))}.bg-red-50{background-color:var(--color-red-50,oklch(97.1% .013 17.38))}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500,oklch(63.7% .237 25.331))10%,transparent)}}.bg-ring{background-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.bg-ring{background-color:color-mix(in srgb,var(--ring),transparent 0%)}}.bg-secondary{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.bg-secondary{background-color:color-mix(in srgb,var(--secondary),transparent 0%)}}.bg-secondary-foreground{background-color:var(--secondary-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-secondary-foreground{background-color:color-mix(in srgb,var(--secondary-foreground),transparent 0%)}}.bg-slate-200{background-color:var(--color-slate-200,oklch(92.9% .013 255.508))}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-white{background-color:var(--color-white,#fff)}.bg-\[linear-gradient\(45deg\,var\(--purple-5\)\,var\(--cyan-5\)\)\]{background-image:linear-gradient(45deg,var(--purple-5),var(--cyan-5))}.fill-current{fill:currentColor}.fill-primary{fill:var(--primary)}@supports (color:color-mix(in lab,red,red)){.fill-primary{fill:color-mix(in srgb,var(--primary),transparent 0%)}}.stroke-card-foreground{stroke:var(--card-foreground)}@supports (color:color-mix(in lab,red,red)){.stroke-card-foreground{stroke:color-mix(in srgb,var(--card-foreground),transparent 0%)}}.stroke-\[1\.8px\]{stroke-width:1.8px}.object-contain{object-fit:contain}.p-0{padding:calc(var(--spacing,.25rem)*0)}.p-0\.5{padding:calc(var(--spacing,.25rem)*.5)}.p-1{padding:calc(var(--spacing,.25rem)*1)}.p-1\.5{padding:calc(var(--spacing,.25rem)*1.5)}.p-2{padding:calc(var(--spacing,.25rem)*2)}.p-3{padding:calc(var(--spacing,.25rem)*3)}.p-4{padding:calc(var(--spacing,.25rem)*4)}.p-5{padding:calc(var(--spacing,.25rem)*5)}.p-6{padding:calc(var(--spacing,.25rem)*6)}.p-12{padding:calc(var(--spacing,.25rem)*12)}.p-20{padding:calc(var(--spacing,.25rem)*20)}.p-\[5px\]{padding:5px}.p-px{padding:1px}.px-0{padding-inline:calc(var(--spacing,.25rem)*0)}.px-0\.5{padding-inline:calc(var(--spacing,.25rem)*.5)}.px-0\.25{padding-inline:calc(var(--spacing,.25rem)*.25)}.px-1{padding-inline:calc(var(--spacing,.25rem)*1)}.px-1\.5{padding-inline:calc(var(--spacing,.25rem)*1.5)}.px-2{padding-inline:calc(var(--spacing,.25rem)*2)}.px-2\.5{padding-inline:calc(var(--spacing,.25rem)*2.5)}.px-3{padding-inline:calc(var(--spacing,.25rem)*3)}.px-4{padding-inline:calc(var(--spacing,.25rem)*4)}.px-5{padding-inline:calc(var(--spacing,.25rem)*5)}.px-6{padding-inline:calc(var(--spacing,.25rem)*6)}.px-8{padding-inline:calc(var(--spacing,.25rem)*8)}.px-11{padding-inline:calc(var(--spacing,.25rem)*11)}.px-\[0\.3rem\]{padding-inline:.3rem}.px-\[5\.5px\]{padding-inline:5.5px}.py-0{padding-block:calc(var(--spacing,.25rem)*0)}.py-0\.5{padding-block:calc(var(--spacing,.25rem)*.5)}.py-1{padding-block:calc(var(--spacing,.25rem)*1)}.py-1\.5{padding-block:calc(var(--spacing,.25rem)*1.5)}.py-2{padding-block:calc(var(--spacing,.25rem)*2)}.py-2\.5{padding-block:calc(var(--spacing,.25rem)*2.5)}.py-3{padding-block:calc(var(--spacing,.25rem)*3)}.py-4{padding-block:calc(var(--spacing,.25rem)*4)}.py-6{padding-block:calc(var(--spacing,.25rem)*6)}.py-8{padding-block:calc(var(--spacing,.25rem)*8)}.py-10{padding-block:calc(var(--spacing,.25rem)*10)}.py-\[0\.2rem\]{padding-block:.2rem}.py-\[0\.18rem\]{padding-block:.18rem}.py-\[2px\]{padding-block:2px}.py-\[5\.5px\]{padding-block:5.5px}.py-px{padding-block:1px}.pt-0{padding-top:calc(var(--spacing,.25rem)*0)}.pt-0\.5{padding-top:calc(var(--spacing,.25rem)*.5)}.pt-1{padding-top:calc(var(--spacing,.25rem)*1)}.pt-2{padding-top:calc(var(--spacing,.25rem)*2)}.pt-3{padding-top:calc(var(--spacing,.25rem)*3)}.pt-4{padding-top:calc(var(--spacing,.25rem)*4)}.pt-5{padding-top:calc(var(--spacing,.25rem)*5)}.pt-6{padding-top:calc(var(--spacing,.25rem)*6)}.pt-8{padding-top:calc(var(--spacing,.25rem)*8)}.pt-14{padding-top:calc(var(--spacing,.25rem)*14)}.pr-0{padding-right:calc(var(--spacing,.25rem)*0)}.pr-1{padding-right:calc(var(--spacing,.25rem)*1)}.pr-2{padding-right:calc(var(--spacing,.25rem)*2)}.pr-3{padding-right:calc(var(--spacing,.25rem)*3)}.pr-4{padding-right:calc(var(--spacing,.25rem)*4)}.pr-5{padding-right:calc(var(--spacing,.25rem)*5)}.pr-6{padding-right:calc(var(--spacing,.25rem)*6)}.pr-8{padding-right:calc(var(--spacing,.25rem)*8)}.pr-10{padding-right:calc(var(--spacing,.25rem)*10)}.pr-18{padding-right:calc(var(--spacing,.25rem)*18)}.pr-\[6px\]{padding-right:6px}.pr-\[30px\]{padding-right:30px}.pr-\[350px\]{padding-right:350px}.pb-0{padding-bottom:calc(var(--spacing,.25rem)*0)}.pb-0\.5{padding-bottom:calc(var(--spacing,.25rem)*.5)}.pb-1{padding-bottom:calc(var(--spacing,.25rem)*1)}.pb-2{padding-bottom:calc(var(--spacing,.25rem)*2)}.pb-3{padding-bottom:calc(var(--spacing,.25rem)*3)}.pb-4{padding-bottom:calc(var(--spacing,.25rem)*4)}.pb-5{padding-bottom:calc(var(--spacing,.25rem)*5)}.pb-6{padding-bottom:calc(var(--spacing,.25rem)*6)}.pb-7{padding-bottom:calc(var(--spacing,.25rem)*7)}.pb-10{padding-bottom:calc(var(--spacing,.25rem)*10)}.pb-12{padding-bottom:calc(var(--spacing,.25rem)*12)}.pb-16{padding-bottom:calc(var(--spacing,.25rem)*16)}.pb-20{padding-bottom:calc(var(--spacing,.25rem)*20)}.pb-24{padding-bottom:calc(var(--spacing,.25rem)*24)}.pb-32{padding-bottom:calc(var(--spacing,.25rem)*32)}.pb-\[40vh\]{padding-bottom:40vh}.pl-0{padding-left:calc(var(--spacing,.25rem)*0)}.pl-1{padding-left:calc(var(--spacing,.25rem)*1)}.pl-2{padding-left:calc(var(--spacing,.25rem)*2)}.pl-3{padding-left:calc(var(--spacing,.25rem)*3)}.pl-4{padding-left:calc(var(--spacing,.25rem)*4)}.pl-5{padding-left:calc(var(--spacing,.25rem)*5)}.pl-6{padding-left:calc(var(--spacing,.25rem)*6)}.pl-7{padding-left:calc(var(--spacing,.25rem)*7)}.pl-8{padding-left:calc(var(--spacing,.25rem)*8)}.pl-10{padding-left:calc(var(--spacing,.25rem)*10)}.pl-11{padding-left:calc(var(--spacing,.25rem)*11)}.pl-12{padding-left:calc(var(--spacing,.25rem)*12)}.pl-13{padding-left:calc(var(--spacing,.25rem)*13)}.pl-\[6px\]{padding-left:6px}.pl-\[51px\]{padding-left:51px}.text-center{text-align:center}.text-end{text-align:end}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.align-top{vertical-align:top}.font-code,.font-mono{font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-prose{font-family:var(--text-font),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.font-sans{font-family:var(--font-sans,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji")}.prose-slides :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:4.375rem;line-height:1.2}.prose-slides :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:4.375rem}.prose-slides :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:3rem;line-height:1.3}.prose-slides :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:3rem}.prose-slides :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.3125rem;line-height:1.4}.prose-slides :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.3125rem}.prose-slides :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.0625rem;line-height:1.5}.prose-slides :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.0625rem}.prose-slides :where(h5):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.5rem;line-height:1.5}.prose-slides :where(h5 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.5rem}.prose-slides :where(h6):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.25rem;line-height:1.5}.prose-slides :where(h6 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.25rem}.prose-slides :where(.markdown>span.paragraph):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-slides :where(.paragraph):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-slides :where(.prose):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-slides :where(li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-slides :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.5rem;line-height:1.5}.text-2xl{font-size:var(--text-2xl,1.5rem);line-height:var(--tw-leading,var(--text-2xl--line-height,1.33333))}.text-3xl{font-size:var(--text-3xl,1.875rem);line-height:var(--tw-leading,var(--text-3xl--line-height,1.2))}.text-4xl{font-size:var(--text-4xl,2.25rem);line-height:var(--tw-leading,var(--text-4xl--line-height,1.11111))}.text-base{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,1.5))}.text-lg{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,1.55556))}.text-sm{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857))}.text-xl{font-size:var(--text-xl,1.25rem);line-height:var(--tw-leading,var(--text-xl--line-height,1.4))}.text-xs{font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[0\.75rem\]{font-size:.75rem}.text-\[0\.84375rem\]{font-size:.84375rem}.text-\[10px\]{font-size:10px}.leading-5{--tw-leading:calc(var(--spacing,.25rem)*5);line-height:calc(var(--spacing,.25rem)*5)}.leading-7{--tw-leading:calc(var(--spacing,.25rem)*7);line-height:calc(var(--spacing,.25rem)*7)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed,1.625);line-height:var(--leading-relaxed,1.625)}.leading-snug{--tw-leading:var(--leading-snug,1.375);line-height:var(--leading-snug,1.375)}.font-bold{--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold,800);font-weight:var(--font-weight-extrabold,800)}.font-medium{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.font-normal{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400)}.font-semibold{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.tracking-tight{--tw-tracking:var(--tracking-tight,-.025em);letter-spacing:var(--tracking-tight,-.025em)}.tracking-wide{--tw-tracking:var(--tracking-wide,.025em);letter-spacing:var(--tracking-wide,.025em)}.tracking-widest{--tw-tracking:var(--tracking-widest,.1em);letter-spacing:var(--tracking-widest,.1em)}.text-pretty{text-wrap:pretty}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-break-spaces{white-space:break-spaces}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\(--amber-11\),.text-\(--amber-11\)\/60{color:var(--amber-11)}@supports (color:color-mix(in lab,red,red)){.text-\(--amber-11\)\/60{color:color-mix(in oklab,var(--amber-11)60%,transparent)}}.text-\(--amber-12\){color:var(--amber-12)}.text-\(--blue-10\){color:var(--blue-10)}.text-\(--blue-11\){color:var(--blue-11)}.text-\(--cyan-11\){color:var(--cyan-11)}.text-\(--grass-1\){color:var(--grass-1)}.text-\(--grass-9\){color:var(--grass-9)}.text-\(--grass-10\){color:var(--grass-10)}.text-\(--grass-11\){color:var(--grass-11)}.text-\(--gray-8\){color:var(--gray-8)}.text-\(--gray-10\){color:var(--gray-10)}.text-\(--green-9\){color:var(--green-9)}.text-\(--red-1\){color:var(--red-1)}.text-\(--red-9\){color:var(--red-9)}.text-\(--red-10\){color:var(--red-10)}.text-\(--red-11\){color:var(--red-11)}.text-\(--sky-11\){color:var(--sky-11)}.text-\(--sky-12\){color:var(--sky-12)}.text-\(--slate-1\){color:var(--slate-1)}.text-\(--slate-8\){color:var(--slate-8)}.text-\(--slate-9\){color:var(--slate-9)}.text-\(--slate-11\){color:var(--slate-11)}.text-\(--slate-12\){color:var(--slate-12)}.text-\(--slate-20\){color:var(--slate-20)}.text-\(--yellow-9\){color:var(--yellow-9)}.text-\(--yellow-11\){color:var(--yellow-11)}.text-\(--yellow-12\){color:var(--yellow-12)}.text-\[var\(--amber-9\)\]{color:var(--amber-9)}.text-\[var\(--amber-10\)\]{color:var(--amber-10)}.text-\[var\(--amber-11\)\]{color:var(--amber-11)}.text-\[var\(--blue-8\)\]{color:var(--blue-8)}.text-\[var\(--blue-9\)\]{color:var(--blue-9)}.text-\[var\(--blue-10\)\]{color:var(--blue-10)}.text-\[var\(--blue-11\)\]{color:var(--blue-11)}.text-\[var\(--grass-11\)\],.text-\[var\(--grass-11\)\]\/80{color:var(--grass-11)}@supports (color:color-mix(in lab,red,red)){.text-\[var\(--grass-11\)\]\/80{color:color-mix(in oklab,var(--grass-11)80%,transparent)}}.text-\[var\(--gray-10\)\]{color:var(--gray-10)}.text-\[var\(--gray-11\)\]{color:var(--gray-11)}.text-\[var\(--green-9\)\]{color:var(--green-9)}.text-\[var\(--green-11\)\]{color:var(--green-11)}.text-\[var\(--mauve-11\)\]{color:var(--mauve-11)}.text-\[var\(--orange-11\)\]{color:var(--orange-11)}.text-\[var\(--purple-9\)\]{color:var(--purple-9)}.text-\[var\(--purple-11\)\]{color:var(--purple-11)}.text-\[var\(--purple-12\)\]{color:var(--purple-12)}.text-\[var\(--red-10\)\]{color:var(--red-10)}.text-\[var\(--red-11\)\],.text-\[var\(--red-11\)\]\/80{color:var(--red-11)}@supports (color:color-mix(in lab,red,red)){.text-\[var\(--red-11\)\]\/80{color:color-mix(in oklab,var(--red-11)80%,transparent)}}.text-\[var\(--slate-9\)\]{color:var(--slate-9)}.text-\[var\(--slate-10\)\]{color:var(--slate-10)}.text-\[var\(--slate-11\)\]{color:var(--slate-11)}.text-\[var\(--yellow-11\)\]{color:var(--yellow-11)}.text-accent-foreground{color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.text-accent-foreground{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.text-action-foreground{color:var(--action-foreground)}@supports (color:color-mix(in lab,red,red)){.text-action-foreground{color:color-mix(in srgb,var(--action-foreground),transparent 0%)}}.text-amber-500{color:var(--color-amber-500,oklch(76.9% .188 70.08))}.text-amber-600{color:var(--color-amber-600,oklch(66.6% .179 58.318))}.text-amber-800{color:var(--color-amber-800,oklch(47.3% .137 46.201))}.text-background{color:var(--background)}@supports (color:color-mix(in lab,red,red)){.text-background{color:color-mix(in srgb,var(--background),transparent 0%)}}.text-black{color:var(--color-black,#000)}.text-blue-500{color:var(--color-blue-500,oklch(62.3% .214 259.815))}.text-blue-600{color:var(--color-blue-600,oklch(54.6% .245 262.881))}.text-blue-700{color:var(--color-blue-700,oklch(48.8% .243 264.376))}.text-blue-800{color:var(--color-blue-800,oklch(42.4% .199 265.638))}.text-card-foreground{color:var(--card-foreground)}@supports (color:color-mix(in lab,red,red)){.text-card-foreground{color:color-mix(in srgb,var(--card-foreground),transparent 0%)}}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.text-destructive{color:color-mix(in srgb,var(--destructive),transparent 0%)}}.text-destructive-foreground{color:var(--destructive-foreground)}@supports (color:color-mix(in lab,red,red)){.text-destructive-foreground{color:color-mix(in srgb,var(--destructive-foreground),transparent 0%)}}.text-destructive\/60{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.text-destructive\/60{color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)60%,transparent)}}.text-destructive\/80{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.text-destructive\/80{color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)80%,transparent)}}.text-error{color:var(--error)}@supports (color:color-mix(in lab,red,red)){.text-error{color:color-mix(in srgb,var(--error),transparent 0%)}}.text-foreground{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.text-foreground\/50{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\/50{color:color-mix(in oklab,color-mix(in srgb,var(--foreground),transparent 0%)50%,transparent)}}.text-foreground\/60{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.text-foreground\/60{color:color-mix(in oklab,color-mix(in srgb,var(--foreground),transparent 0%)60%,transparent)}}.text-gray-500{color:var(--color-gray-500,oklch(55.1% .027 264.364))}.text-green-500{color:var(--color-green-500,oklch(72.3% .219 149.579))}.text-green-600{color:var(--color-green-600,oklch(62.7% .194 149.214))}.text-green-700{color:var(--color-green-700,oklch(52.7% .154 150.069))}.text-link{color:var(--link)}.text-muted-foreground{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.text-muted-foreground\/40{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/40{color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)40%,transparent)}}.text-muted-foreground\/60{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/60{color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)60%,transparent)}}.text-muted-foreground\/70{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/70{color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)70%,transparent)}}.text-muted-foreground\/80{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/80{color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)80%,transparent)}}.text-muted-foreground\/90{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/90{color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)90%,transparent)}}.text-orange-700{color:var(--color-orange-700,oklch(55.3% .195 38.402))}.text-popover-foreground{color:var(--popover-foreground)}@supports (color:color-mix(in lab,red,red)){.text-popover-foreground{color:color-mix(in srgb,var(--popover-foreground),transparent 0%)}}.text-primary{color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.text-primary{color:color-mix(in srgb,var(--primary),transparent 0%)}}.text-primary-foreground{color:var(--primary-foreground)}@supports (color:color-mix(in lab,red,red)){.text-primary-foreground{color:color-mix(in srgb,var(--primary-foreground),transparent 0%)}}.text-primary\/90{color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.text-primary\/90{color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)90%,transparent)}}.text-purple-800{color:var(--color-purple-800,oklch(43.8% .218 303.724))}.text-red-500{color:var(--color-red-500,oklch(63.7% .237 25.331))}.text-red-600{color:var(--color-red-600,oklch(57.7% .245 27.325))}.text-secondary-foreground{color:var(--secondary-foreground)}@supports (color:color-mix(in lab,red,red)){.text-secondary-foreground{color:color-mix(in srgb,var(--secondary-foreground),transparent 0%)}}.text-white{color:var(--color-white,#fff)}.text-yellow-500{color:var(--color-yellow-500,oklch(79.5% .184 86.047))}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.decoration-dotted{text-decoration-style:dotted}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.caret-transparent{caret-color:#0000}.accent-primary{accent-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.accent-primary{accent-color:color-mix(in srgb,var(--primary),transparent 0%)}}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.opacity-50\!{opacity:.5!important}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-95{opacity:.95}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow,.shadow-2xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:10px 12px 10px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 8px 0px var(--tw-shadow-color,hsl(0 0% 90%/var(--base-shadow-opacity)))}.shadow-2xl-solid{--tw-shadow:10px 12px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 8px 0px var(--tw-shadow-color,#e6e6e680)}.shadow-2xl-solid,.shadow-\[0_0_6px_0_\#00A2C733\]{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_6px_0_\#00A2C733\]{--tw-shadow:0 0 6px 0 var(--tw-shadow-color,#00a2c733)}.shadow-\[0_0_6px_1px_rgba\(34\,197\,94\,0\.15\)\]{--tw-shadow:0 0 6px 1px var(--tw-shadow-color,#22c55e26)}.shadow-\[0_0_6px_1px_rgba\(34\,197\,94\,0\.15\)\],.shadow-\[4px_4px_0px_0px\]{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[4px_4px_0px_0px\]{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,currentcolor)}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d)}.shadow-inner,.shadow-lg{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:5px 6px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 75%/var(--base-shadow-opacity)))}.shadow-lg-solid{--tw-shadow:5px 6px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 4px 0px var(--tw-shadow-color,#bfbfbf80)}.shadow-lg-solid,.shadow-md{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:4px 4px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 60%/var(--base-shadow-opacity)))}.shadow-md-solid{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980)}.shadow-md-solid,.shadow-md-solid-shade{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md-solid-shade{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 2px 0px var(--tw-shadow-color,#99999980)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none\!{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:2px 2px 2px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,hsl(0 0% 25%/var(--base-shadow-opacity)))}.shadow-sm,.shadow-sm-solid{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm-solid{--tw-shadow:2px 2px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033)}.shadow-sm-solid-shade{--tw-shadow:2px 2px 0px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,#80808033)}.shadow-sm-solid-shade,.shadow-xl{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:8px 9px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 6px 0px var(--tw-shadow-color,hsl(0 0% 85%/var(--base-shadow-opacity)))}.shadow-xl-solid{--tw-shadow:7px 8px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 4px 0px var(--tw-shadow-color,#d9d9d980)}.shadow-xl-solid,.shadow-xs{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:1px 1px 2px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,hsl(0 0% 25%/var(--base-shadow-opacity)))}.shadow-xs-solid{--tw-shadow:1px 1px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033)}.ring,.shadow-xs-solid{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0\!{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-\(color\:--amber-8\){--tw-shadow-color:var(--amber-8)}@supports (color:color-mix(in lab,red,red)){.shadow-\(color\:--amber-8\){--tw-shadow-color:color-mix(in oklab,var(--amber-8)var(--tw-shadow-alpha),transparent)}}.shadow-\(color\:--blue-3\){--tw-shadow-color:var(--blue-3)}@supports (color:color-mix(in lab,red,red)){.shadow-\(color\:--blue-3\){--tw-shadow-color:color-mix(in oklab,var(--blue-3)var(--tw-shadow-alpha),transparent)}}.shadow-\(color\:--grass-8\){--tw-shadow-color:var(--grass-8)}@supports (color:color-mix(in lab,red,red)){.shadow-\(color\:--grass-8\){--tw-shadow-color:color-mix(in oklab,var(--grass-8)var(--tw-shadow-alpha),transparent)}}.shadow-\(color\:--red-8\){--tw-shadow-color:var(--red-8)}@supports (color:color-mix(in lab,red,red)){.shadow-\(color\:--red-8\){--tw-shadow-color:color-mix(in oklab,var(--red-8)var(--tw-shadow-alpha),transparent)}}.shadow-\(color\:--sky-7\){--tw-shadow-color:var(--sky-7)}@supports (color:color-mix(in lab,red,red)){.shadow-\(color\:--sky-7\){--tw-shadow-color:color-mix(in oklab,var(--sky-7)var(--tw-shadow-alpha),transparent)}}.shadow-\(color\:--slate-8\){--tw-shadow-color:var(--slate-8)}@supports (color:color-mix(in lab,red,red)){.shadow-\(color\:--slate-8\){--tw-shadow-color:color-mix(in oklab,var(--slate-8)var(--tw-shadow-alpha),transparent)}}.shadow-accent{--tw-shadow-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.shadow-accent{--tw-shadow-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)var(--tw-shadow-alpha),transparent)}}.shadow-black\/10{--tw-shadow-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.shadow-black\/10{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-black,#000)10%,transparent)var(--tw-shadow-alpha),transparent)}}.shadow-blue-500{--tw-shadow-color:oklch(62.3% .214 259.815)}@supports (color:color-mix(in lab,red,red)){.shadow-blue-500{--tw-shadow-color:color-mix(in oklab,var(--color-blue-500,oklch(62.3% .214 259.815))var(--tw-shadow-alpha),transparent)}}.shadow-error{--tw-shadow-color:var(--error)}@supports (color:color-mix(in lab,red,red)){.shadow-error{--tw-shadow-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)var(--tw-shadow-alpha),transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.ring-offset-background{--tw-ring-offset-color:color-mix(in srgb,var(--background),transparent 0%)}}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-width:1px}.outline,.outline-0{outline-style:var(--tw-outline-style)}.outline-0{outline-width:0}.blur{--tw-blur:blur(8px)}.blur,.brightness-0{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.brightness-0{--tw-brightness:brightness(0%)}.brightness-100{--tw-brightness:brightness(100%)}.brightness-100,.grayscale{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%)}.invert,.invert-0{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert-0{--tw-invert:invert(0%)}.invert-\[\.5\]{--tw-invert:invert(.5)}.filter,.invert-\[\.5\]{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm,8px))}.backdrop-blur-sm,.backdrop-blur-xs{backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs,4px))}.transition{transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}.transition-\[width\]{transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}.transition-all{transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}.transition-opacity{transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}.transition-shadow{transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.ease-in-out{--tw-ease:var(--ease-in-out,cubic-bezier(.4,0,.2,1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}.ease-out{--tw-ease:var(--ease-out,cubic-bezier(0,0,.2,1));transition-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1))}.animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.outline-solid{--tw-outline-style:solid;outline-style:solid}.select-all{user-select:all}.select-none{user-select:none}.\[--slot\:true\]{--slot:true}.duration-100{animation-duration:.1s}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-700{animation-duration:.7s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.fade-in,.fade-in-0{--tw-enter-opacity:0}.fade-in-90{--tw-enter-opacity:.9}.paused{animation-play-state:paused}.running{animation-play-state:running}.slide-in-from-bottom-10{--tw-enter-translate-y:2.5rem}.slide-in-from-left{--tw-enter-translate-x:-100%}.slide-in-from-top{--tw-enter-translate-y:-100%}.slide-in-from-top-2{--tw-enter-translate-y:-.5rem}.zoom-in-95{--tw-enter-scale:.95}:is(.\*\:pointer-events-none>*){pointer-events:none}:is(.\*\:flex>*){display:flex}:is(.\*\:gap-3>*){gap:calc(var(--spacing,.25rem)*3)}:is(.\*\:outline-hidden>*){--tw-outline-style:none;outline-style:none}@media (forced-colors:active){:is(.\*\:outline-hidden>*){outline-offset:2px;outline:2px solid #0000}}.not-first\:mt-6:not(:first-child){margin-top:calc(var(--spacing,.25rem)*6)}.not-last\:border-b:not(:last-child){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.group-focus-within\:block:is(:where(.group):focus-within *){display:block}@media (hover:hover){.group-hover\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\:block:is(:where(.group):hover *){display:block}.group-hover\:flex:is(:where(.group):hover *){display:flex}.group-hover\:hidden:is(:where(.group):hover *){display:none}.group-hover\:inline:is(:where(.group):hover *){display:inline}.group-hover\:inline-flex:is(:where(.group):hover *){display:inline-flex}.group-hover\:bg-\(--gray-2\):is(:where(.group):hover *){background-color:var(--gray-2)}.group-hover\:bg-\(--gray-3\):is(:where(.group):hover *){background-color:var(--gray-3)}.group-hover\:bg-primary:is(:where(.group):hover *){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.group-hover\:bg-primary:is(:where(.group):hover *){background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.group-hover\:opacity-50:is(:where(.group):hover *){opacity:.5}.group-hover\/column\:opacity-100:is(:where(.group\/column):hover *),.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-expanded\:rotate-90:is(:where(.group)[data-expanded] *){rotate:90deg}.group-data-expanded\:border-b-0:is(:where(.group)[data-expanded] *){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.group-data-invalid\:text-destructive:is(:where(.group)[data-invalid] *){color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.group-data-invalid\:text-destructive:is(:where(.group)[data-invalid] *){color:color-mix(in srgb,var(--destructive),transparent 0%)}}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-\[\.destructive\]\:border-destructive\/30:is(:where(.group).destructive *){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.group-\[\.destructive\]\:border-destructive\/30:is(:where(.group).destructive *){border-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)30%,transparent)}}.group-\[\.destructive\]\:text-red-300:is(:where(.group).destructive *){color:var(--color-red-300,oklch(80.8% .114 19.571))}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.placeholder\:text-muted-foreground::placeholder{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:inset-0:before{content:var(--tw-content);inset:calc(var(--spacing,.25rem)*0)}.before\:inset-y-0:before{content:var(--tw-content);inset-block:calc(var(--spacing,.25rem)*0)}.before\:right-\[-3px\]:before{content:var(--tw-content);right:-3px}.before\:-left-\[3px\]:before{content:var(--tw-content);left:-3px}.before\:-z-10:before{content:var(--tw-content);z-index:-10}.before\:z-\[-1\]:before{content:var(--tw-content);z-index:-1}.before\:mx-\[-4px\]:before{content:var(--tw-content);margin-inline:-4px}.before\:my-\[-2px\]:before{content:var(--tw-content);margin-block:-2px}.before\:w-\[9px\]:before{content:var(--tw-content);width:9px}.before\:rounded:before{content:var(--tw-content);border-radius:.25rem}.before\:bg-\(--blue-3\):before{background-color:var(--blue-3);content:var(--tw-content)}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.first\:mt-0:first-child{margin-top:calc(var(--spacing,.25rem)*0)}.first\:rounded-l-lg:first-child{border-bottom-left-radius:var(--radius);border-top-left-radius:var(--radius)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:hidden:last-child{display:none}.last\:rounded-r-lg:last-child{border-bottom-right-radius:var(--radius);border-top-right-radius:var(--radius)}.last\:rounded-b:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.last\:border-r:last-child{border-right-style:var(--tw-border-style);border-right-width:1px}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.empty\:invisible:empty{visibility:hidden}.empty\:hidden:empty{display:none}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:border-primary:focus-within{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.focus-within\:border-primary:focus-within{border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.focus-within\:shadow-md-solid:focus-within{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-1:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-ring:focus-within{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-within\:ring-ring:focus-within{--tw-ring-color:color-mix(in srgb,var(--ring),transparent 0%)}}.focus-within\:outline-hidden:focus-within{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-within\:outline-hidden:focus-within{outline-offset:2px;outline:2px solid #0000}}@media (hover:hover){.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border:hover{border-style:var(--tw-border-style);border-width:1px}.hover\:border-\(--blue-8\):hover{border-color:var(--blue-8)}.hover\:border-\(--grass-8\):hover{border-color:var(--grass-8)}.hover\:border-\(--red-8\):hover{border-color:var(--red-8)}.hover\:border-\(--sky-8\):hover{border-color:var(--sky-8)}.hover\:border-\[var\(--blue-7\)\]:hover{border-color:var(--blue-7)}.hover\:border-border:hover{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.hover\:border-border:hover{border-color:color-mix(in srgb,var(--border),transparent 0%)}}.hover\:border-cyan-500\/40:hover{border-color:#00b7d766}@supports (color:color-mix(in lab,red,red)){.hover\:border-cyan-500\/40:hover{border-color:color-mix(in oklab,var(--color-cyan-500,oklch(71.5% .143 215.221))40%,transparent)}}.hover\:border-destructive:hover{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:border-destructive:hover{border-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.hover\:border-input:hover{border-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.hover\:border-input:hover{border-color:color-mix(in srgb,var(--input),transparent 0%)}}.hover\:border-muted-foreground\/60:hover{border-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:border-muted-foreground\/60:hover{border-color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)60%,transparent)}}.hover\:border-primary:hover{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:border-primary:hover{border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.hover\:bg-\(--amber-4\):hover{background-color:var(--amber-4)}.hover\:bg-\(--amber-12\):hover{background-color:var(--amber-12)}.hover\:bg-\(--blue-2\):hover{background-color:var(--blue-2)}.hover\:bg-\(--blue-3\):hover{background-color:var(--blue-3)}.hover\:bg-\(--grass-2\):hover{background-color:var(--grass-2)}.hover\:bg-\(--grass-3\):hover{background-color:var(--grass-3)}.hover\:bg-\(--grass-5\):hover{background-color:var(--grass-5)}.hover\:bg-\(--grass-10\):hover{background-color:var(--grass-10)}.hover\:bg-\(--gray-3\):hover{background-color:var(--gray-3)}.hover\:bg-\(--red-1\):hover{background-color:var(--red-1)}.hover\:bg-\(--red-2\):hover{background-color:var(--red-2)}.hover\:bg-\(--red-3\):hover{background-color:var(--red-3)}.hover\:bg-\(--red-10\):hover{background-color:var(--red-10)}.hover\:bg-\(--sage-3\):hover{background-color:var(--sage-3)}.hover\:bg-\(--sky-3\):hover{background-color:var(--sky-3)}.hover\:bg-\(--slate-2\):hover{background-color:var(--slate-2)}.hover\:bg-\(--slate-3\):hover{background-color:var(--slate-3)}.hover\:bg-\(--slate-5\):hover{background-color:var(--slate-5)}.hover\:bg-\(--yellow-3\):hover{background-color:var(--yellow-3)}.hover\:bg-\(--yellow-4\):hover{background-color:var(--yellow-4)}.hover\:bg-\(--yellow-10\):hover{background-color:var(--yellow-10)}.hover\:bg-\[var\(--red-3\)\]:hover{background-color:var(--red-3)}.hover\:bg-\[var\(--slate-3\)\]:hover{background-color:var(--slate-3)}.hover\:bg-accent:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent:hover{background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.hover\:bg-accent\/20:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/20:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)20%,transparent)}}.hover\:bg-accent\/50:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/50:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)50%,transparent)}}.hover\:bg-accent\/80:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/80:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)80%,transparent)}}.hover\:bg-action-hover:hover{background-color:var(--action-hover)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-action-hover:hover{background-color:color-mix(in srgb,var(--action-hover),transparent 0%)}}.hover\:bg-background:hover{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-background:hover{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.hover\:bg-blue-300:hover{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)10%,transparent)}}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)20%,transparent)}}.hover\:bg-foreground\/10:hover{background-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-foreground\/10:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--foreground),transparent 0%)10%,transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted:hover{background-color:color-mix(in srgb,var(--muted),transparent 0%)}}.hover\:bg-muted-foreground\/10:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted-foreground\/10:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)10%,transparent)}}.hover\:bg-muted\/20:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/20:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)20%,transparent)}}.hover\:bg-muted\/30:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/30:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)30%,transparent)}}.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)50%,transparent)}}.hover\:bg-primary:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary:hover{background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.hover\:bg-primary\/50:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/50:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)50%,transparent)}}.hover\:bg-primary\/60:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/60:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)60%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)90%,transparent)}}.hover\:bg-secondary:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary:hover{background-color:color-mix(in srgb,var(--secondary),transparent 0%)}}.hover\:bg-secondary\/60:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/60:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--secondary),transparent 0%)60%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--secondary),transparent 0%)80%,transparent)}}.hover\:bg-transparent:hover{background-color:#0000}.hover\:font-semibold:hover{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.hover\:text-\(--amber-11\):hover{color:var(--amber-11)}.hover\:text-\(--amber-12\):hover{color:var(--amber-12)}.hover\:text-\(--blue-11\):hover{color:var(--blue-11)}.hover\:text-\(--grass-11\):hover{color:var(--grass-11)}.hover\:text-\(--gray-9\):hover{color:var(--gray-9)}.hover\:text-\(--red-11\):hover{color:var(--red-11)}.hover\:text-\(--slate-11\):hover{color:var(--slate-11)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:text-accent-foreground:hover{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.hover\:text-destructive:hover{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:text-destructive:hover{color:color-mix(in srgb,var(--destructive),transparent 0%)}}.hover\:text-foreground:hover{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:text-foreground:hover{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.hover\:text-link:hover{color:var(--link)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:text-muted-foreground:hover{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.hover\:text-primary:hover{color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:text-primary:hover{color:color-mix(in srgb,var(--primary),transparent 0%)}}.hover\:text-red-500:hover{color:var(--color-red-500,oklch(63.7% .237 25.331))}.hover\:no-underline:hover{text-decoration-line:none}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow:4px 4px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 60%/var(--base-shadow-opacity)))}.hover\:shadow-md-solid:hover,.hover\:shadow-md:hover{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md-solid:hover{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980)}.hover\:shadow-none:hover{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-none\!:hover{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.hover\:shadow-sm:hover{--tw-shadow:2px 2px 2px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,hsl(0 0% 25%/var(--base-shadow-opacity)))}.hover\:shadow-sm-solid:hover,.hover\:shadow-sm:hover{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-sm-solid:hover{--tw-shadow:2px 2px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033)}.hover\:shadow-xs:hover{--tw-shadow:1px 1px 2px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,hsl(0 0% 25%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-black\/15:hover{--tw-shadow-color:#00000026}@supports (color:color-mix(in lab,red,red)){.hover\:shadow-black\/15:hover{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-black,#000)15%,transparent)var(--tw-shadow-alpha),transparent)}}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.hover\:group-\[\.destructive\]\:border-destructive\/30:hover:is(:where(.group).destructive *){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:group-\[\.destructive\]\:border-destructive\/30:hover:is(:where(.group).destructive *){border-color:color-mix(in oklab,color-mix(in srgb,var(--destructive),transparent 0%)30%,transparent)}}.hover\:group-\[\.destructive\]\:bg-destructive:hover:is(:where(.group).destructive *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:group-\[\.destructive\]\:bg-destructive:hover:is(:where(.group).destructive *){background-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.hover\:group-\[\.destructive\]\:text-destructive-foreground:hover:is(:where(.group).destructive *){color:var(--destructive-foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:group-\[\.destructive\]\:text-destructive-foreground:hover:is(:where(.group).destructive *){color:color-mix(in srgb,var(--destructive-foreground),transparent 0%)}}.hover\:group-\[\.destructive\]\:text-red-500:hover:is(:where(.group).destructive *){color:var(--color-red-500,oklch(63.7% .237 25.331))}.hover\:focus-within\:shadow-md-solid:hover:focus-within{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-cyan-500\/40:focus{border-color:#00b7d766}@supports (color:color-mix(in lab,red,red)){.focus\:border-cyan-500\/40:focus{border-color:color-mix(in oklab,var(--color-cyan-500,oklch(71.5% .143 215.221))40%,transparent)}}.focus\:border-primary:focus{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.focus\:border-primary:focus{border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.focus\:bg-\(--grass-3\):focus{background-color:var(--grass-3)}.focus\:bg-\(--red-5\):focus{background-color:var(--red-5)}.focus\:bg-\(--slate-2\):focus{background-color:var(--slate-2)}.focus\:bg-accent:focus{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.focus\:bg-accent:focus{background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.focus\:bg-background:focus{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.focus\:bg-background:focus{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.focus\:bg-blue-300:focus{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}.focus\:bg-muted\/70:focus{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.focus\:bg-muted\/70:focus{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)70%,transparent)}}.focus\:text-\(--grass-11\):focus{color:var(--grass-11)}.focus\:text-\(--red-12\):focus{color:var(--red-12)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.focus\:text-accent-foreground:focus{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.focus\:text-destructive:focus{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus\:text-destructive:focus{color:color-mix(in srgb,var(--destructive),transparent 0%)}}.focus\:text-muted-foreground:focus{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.focus\:text-muted-foreground:focus{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.focus\:opacity-100:focus{opacity:1}.focus\:shadow-md:focus{--tw-shadow:4px 4px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 60%/var(--base-shadow-opacity)))}.focus\:shadow-md-solid:focus,.focus\:shadow-md:focus{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:shadow-md-solid:focus{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980)}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:shadow-none\!:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.focus\:ring-1:focus,.focus\:ring-2:focus{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)}.focus\:ring-\(--slate-8\):focus{--tw-ring-color:var(--slate-8)}.focus\:ring-primary\/50:focus{--tw-ring-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.focus\:ring-primary\/50:focus{--tw-ring-color:color-mix(in oklab,color-mix(in srgb,var(--primary),transparent 0%)50%,transparent)}}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus\:ring-ring:focus{--tw-ring-color:color-mix(in srgb,var(--ring),transparent 0%)}}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus\:group-\[\.destructive\]\:ring-destructive:focus:is(:where(.group).destructive *){--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus\:group-\[\.destructive\]\:ring-destructive:focus:is(:where(.group).destructive *){--tw-ring-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.focus\:group-\[\.destructive\]\:ring-red-400:focus:is(:where(.group).destructive *){--tw-ring-color:var(--color-red-400,oklch(70.4% .191 22.216))}.focus\:group-\[\.destructive\]\:ring-offset-red-600:focus:is(:where(.group).destructive *){--tw-ring-offset-color:var(--color-red-600,oklch(57.7% .245 27.325))}.focus-visible\:border-accent:focus-visible{border-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-accent:focus-visible{border-color:color-mix(in srgb,var(--accent),transparent 0%)}}.focus-visible\:border-primary:focus-visible{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:border-primary:focus-visible{border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.focus-visible\:text-primary:focus-visible{color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:text-primary:focus-visible{color:color-mix(in srgb,var(--primary),transparent 0%)}}.focus-visible\:shadow-md-solid:focus-visible{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:shadow-none:focus-visible{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:shadow-xs:focus-visible{--tw-shadow:1px 1px 2px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,hsl(0 0% 25%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:shadow-xs-solid:focus-visible{--tw-shadow:1px 1px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring:focus-visible{--tw-ring-color:color-mix(in srgb,var(--ring),transparent 0%)}}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:cursor-grabbing:active{cursor:grabbing}.active\:bg-\(--grass-5\):active{background-color:var(--grass-5)}.active\:bg-\(--red-5\):active{background-color:var(--red-5)}.active\:bg-accent:active{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.active\:bg-accent:active{background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.active\:text-accent-foreground:active{color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.active\:text-accent-foreground:active{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.active\:opacity-100:active{opacity:1}.active\:shadow-none:active{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.active\:shadow-none\!:active{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.active\:shadow-xs-solid:active{--tw-shadow:1px 1px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:shadow-xs-solid:disabled{--tw-shadow:1px 1px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media (hover:hover){.disabled\:hover\:shadow-xs-solid:disabled:hover{--tw-shadow:1px 1px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.aria-selected\:border-primary[aria-selected=true]{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.aria-selected\:border-primary[aria-selected=true]{border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.aria-selected\:bg-\(--grass-3\)[aria-selected=true]{background-color:var(--grass-3)}.aria-selected\:bg-\(--red-5\)[aria-selected=true]{background-color:var(--red-5)}.aria-selected\:bg-accent[aria-selected=true]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.aria-selected\:bg-accent[aria-selected=true]{background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.aria-selected\:bg-muted\/70[aria-selected=true]{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.aria-selected\:bg-muted\/70[aria-selected=true]{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)70%,transparent)}}.aria-selected\:text-\(--grass-11\)[aria-selected=true]{color:var(--grass-11)}.aria-selected\:text-\(--red-12\)[aria-selected=true]{color:var(--red-12)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.aria-selected\:text-accent-foreground[aria-selected=true]{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.aria-selected\:text-muted-foreground[aria-selected=true]{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.data-active\:bg-accent\/50[data-active]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-active\:bg-accent\/50[data-active]{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)50%,transparent)}}.data-disabled\:pointer-events-none[data-disabled]{pointer-events:none}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-disabled\:opacity-50[data-disabled]{opacity:.5}.data-disabled\:opacity-70[data-disabled]{opacity:.7}.data-entering\:animate-in[data-entering]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-entering\:fade-in-0[data-entering]{--tw-enter-opacity:0}.data-entering\:zoom-in-95[data-entering]{--tw-enter-scale:.95}.data-exiting\:animate-out[data-exiting]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-exiting\:fade-out-0[data-exiting]{--tw-exit-opacity:0}.data-exiting\:zoom-out-95[data-exiting]{--tw-exit-scale:.95}.data-focus-visible\:ring-offset-0[data-focus-visible]{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.data-focus-within\:ring-2[data-focus-within]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-focus-within\:ring-ring[data-focus-within]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.data-focus-within\:ring-ring[data-focus-within]{--tw-ring-color:color-mix(in srgb,var(--ring),transparent 0%)}}.data-focus-within\:ring-offset-2[data-focus-within]{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.data-focus-within\:outline-hidden[data-focus-within]{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.data-focus-within\:outline-hidden[data-focus-within]{outline-offset:2px;outline:2px solid #0000}}.data-focused\:bg-accent[data-focused]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-focused\:bg-accent[data-focused]{background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.data-focused\:bg-destructive[data-focused]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-focused\:bg-destructive[data-focused]{background-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.data-focused\:bg-muted\/50[data-focused]{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.data-focused\:bg-muted\/50[data-focused]{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted),transparent 0%)50%,transparent)}}.data-focused\:bg-primary[data-focused]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-focused\:bg-primary[data-focused]{background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.data-focused\:text-accent-foreground[data-focused]{color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.data-focused\:text-accent-foreground[data-focused]{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.data-focused\:text-destructive-foreground[data-focused]{color:var(--destructive-foreground)}@supports (color:color-mix(in lab,red,red)){.data-focused\:text-destructive-foreground[data-focused]{color:color-mix(in srgb,var(--destructive-foreground),transparent 0%)}}.data-focused\:text-primary-foreground[data-focused]{color:var(--primary-foreground)}@supports (color:color-mix(in lab,red,red)){.data-focused\:text-primary-foreground[data-focused]{color:color-mix(in srgb,var(--primary-foreground),transparent 0%)}}.data-hovered\:bg-destructive[data-hovered]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-hovered\:bg-destructive[data-hovered]{background-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.data-hovered\:bg-primary[data-hovered]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-hovered\:bg-primary[data-hovered]{background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.data-hovered\:text-destructive-foreground[data-hovered]{color:var(--destructive-foreground)}@supports (color:color-mix(in lab,red,red)){.data-hovered\:text-destructive-foreground[data-hovered]{color:color-mix(in srgb,var(--destructive-foreground),transparent 0%)}}.data-hovered\:text-foreground[data-hovered]{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.data-hovered\:text-foreground[data-hovered]{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.data-hovered\:text-primary-foreground[data-hovered]{color:var(--primary-foreground)}@supports (color:color-mix(in lab,red,red)){.data-hovered\:text-primary-foreground[data-hovered]{color:color-mix(in srgb,var(--primary-foreground),transparent 0%)}}.data-hovered\:opacity-100[data-hovered]{opacity:1}.data-invalid\:text-destructive[data-invalid]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-invalid\:text-destructive[data-invalid]{color:color-mix(in srgb,var(--destructive),transparent 0%)}}.data-invalid\:data-focused\:bg-destructive[data-invalid][data-focused]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-invalid\:data-focused\:bg-destructive[data-invalid][data-focused]{background-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.data-invalid\:data-focused\:text-destructive-foreground[data-invalid][data-focused]{color:var(--destructive-foreground)}@supports (color:color-mix(in lab,red,red)){.data-invalid\:data-focused\:text-destructive-foreground[data-invalid][data-focused]{color:color-mix(in srgb,var(--destructive-foreground),transparent 0%)}}.data-placeholder\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.data-placeholder\:text-muted-foreground[data-placeholder]{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.data-invalid\:data-placeholder\:text-destructive[data-invalid][data-placeholder]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-invalid\:data-placeholder\:text-destructive[data-invalid][data-placeholder]{color:color-mix(in srgb,var(--destructive),transparent 0%)}}.data-invalid\:data-focused\:data-placeholder\:text-destructive-foreground[data-invalid][data-focused][data-placeholder]{color:var(--destructive-foreground)}@supports (color:color-mix(in lab,red,red)){.data-invalid\:data-focused\:data-placeholder\:text-destructive-foreground[data-invalid][data-focused][data-placeholder]{color:color-mix(in srgb,var(--destructive-foreground),transparent 0%)}}.data-selected\:bg-accent\/50[data-selected]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-selected\:bg-accent\/50[data-selected]{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)50%,transparent)}}.data-selected\:text-foreground[data-selected]{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.data-selected\:text-foreground[data-selected]{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.data-selected\:text-muted-foreground[data-selected]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.data-selected\:text-muted-foreground[data-selected]{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.data-selected\:opacity-30[data-selected]{opacity:.3}.data-\[disabled\=false\]\:opacity-100[data-disabled=false]{opacity:1}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[dragging\]\:opacity-60[data-dragging]{opacity:.6}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:-13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:-13rem}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-2[data-orientation=horizontal]{height:calc(var(--spacing,.25rem)*2)}.data-\[orientation\=horizontal\]\:h-full[data-orientation=horizontal]{height:100%}.data-\[orientation\=horizontal\]\:w-36[data-orientation=horizontal]{width:calc(var(--spacing,.25rem)*36)}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=horizontal\]\:items-center[data-orientation=horizontal]{align-items:center}.data-\[orientation\=vertical\]\:h-36[data-orientation=vertical]{height:calc(var(--spacing,.25rem)*36)}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-2[data-orientation=vertical]{width:calc(var(--spacing,.25rem)*2)}.data-\[orientation\=vertical\]\:w-full[data-orientation=vertical]{width:100%}.data-\[orientation\=vertical\]\:justify-center[data-orientation=vertical]{justify-content:center}.data-\[placement\=bottom\]\:slide-in-from-top-2[data-placement=bottom]{--tw-enter-translate-y:-.5rem}.data-\[placement\=left\]\:slide-in-from-right-2[data-placement=left]{--tw-enter-translate-x:.5rem}.data-\[placement\=right\]\:slide-in-from-left-2[data-placement=right]{--tw-enter-translate-x:-.5rem}.data-\[placement\=top\]\:slide-in-from-bottom-2[data-placement=top]{--tw-enter-translate-y:.5rem}.data-\[selected\=true\]\:ring-1[data-selected=true]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[selected\=true\]\:ring-\(--blue-8\)[data-selected=true]{--tw-ring-color:var(--blue-8)}.data-\[selected\=true\]\:ring-offset-1[data-selected=true]{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing,.25rem)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y:-.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-.5rem}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing,.25rem)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x:.25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:.5rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing,.25rem)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x:-.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-.5rem}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing,.25rem)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y:.25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:.5rem}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=active\]\:bg-background[data-state=active]{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.data-\[state\=active\]\:bg-primary[data-state=active]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=active\]\:bg-primary[data-state=active]{background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=active\]\:text-foreground[data-state=active]{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.data-\[state\=active\]\:text-primary-foreground[data-state=active]{color:var(--primary-foreground)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=active\]\:text-primary-foreground[data-state=active]{color:color-mix(in srgb,var(--primary-foreground),transparent 0%)}}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:2px 2px 2px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,hsl(0 0% 25%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:translate-x-3[data-state=checked]{--tw-translate-x:calc(var(--spacing,.25rem)*3);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:calc(var(--spacing,.25rem)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x:calc(var(--spacing,.25rem)*5);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:color-mix(in srgb,var(--primary-foreground),transparent 0%)}}.data-\[state\=checked\]\:shadow-none[data-state=checked]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:.2s ease-out accordion-up}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:animate-out[data-state=closed]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed],.data-\[state\=closed\]\:fade-out[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:.8}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-muted[data-state=on]{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=on\]\:bg-muted[data-state=on]{background-color:color-mix(in srgb,var(--muted),transparent 0%)}}.data-\[state\=on\]\:text-muted-foreground[data-state=on]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=on\]\:text-muted-foreground[data-state=on]{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.data-\[state\=open\]\:visible[data-state=open]{visibility:visible}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:.2s ease-out accordion-down}.data-\[state\=open\]\:border-border[data-state=open]{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:border-border[data-state=open]{border-color:color-mix(in srgb,var(--border),transparent 0%)}}.data-\[state\=open\]\:bg-\(--slate-3\)[data-state=open]{background-color:var(--slate-3)}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)50%,transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:color-mix(in srgb,var(--secondary),transparent 0%)}}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.data-\[state\=open\]\:underline[data-state=open]{text-decoration-line:underline}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=open\]\:fade-in[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:fade-in-90[data-state=open]{--tw-enter-opacity:.9}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-bottom-10[data-state=open]{--tw-enter-translate-y:2.5rem}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open],.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=selected\]\:bg-\(--blue-4\)[data-state=selected]{background-color:var(--blue-4)}.data-\[state\=selected\]\:bg-\(--slate-3\)[data-state=selected]{background-color:var(--slate-3)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing,.25rem)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:color-mix(in srgb,var(--input),transparent 0%)}}.data-\[state\=unchecked\]\:shadow-xs-solid[data-state=unchecked]{--tw-shadow:1px 1px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0px 0px 2px 0px var(--tw-shadow-color,#80808033);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media (hover:hover){.data-\[state\=unchecked\]\:hover\:bg-input\/80[data-state=unchecked]:hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=unchecked\]\:hover\:bg-input\/80[data-state=unchecked]:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--input),transparent 0%)80%,transparent)}}}.data-\[state\=visible\]\:animate-in[data-state=visible]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:calc(var(--spacing,.25rem)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[swipe\=end\]\:translate-x-\(--radix-toast-swipe-end-x\)[data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[swipe\=end\]\:animate-out[data-swipe=end]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\[swipe\=move\]\:translate-x-\(--radix-toast-swipe-move-x\)[data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}@supports (backdrop-filter:var(--tw )){.supports-backdrop-filter\:bg-background\/60{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-filter\:bg-background\/60{background-color:color-mix(in oklab,color-mix(in srgb,var(--background),transparent 0%)60%,transparent)}}.supports-backdrop-filter\:bg-background\/80{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.supports-backdrop-filter\:bg-background\/80{background-color:color-mix(in oklab,color-mix(in srgb,var(--background),transparent 0%)80%,transparent)}}}@media (width>=40rem){.sm\:top-0{top:calc(var(--spacing,.25rem)*0)}.sm\:top-\[15\%\]{top:15%}.sm\:top-auto{top:auto}.sm\:right-0{right:calc(var(--spacing,.25rem)*0)}.sm\:bottom-0{bottom:calc(var(--spacing,.25rem)*0)}.sm\:mx-4{margin-inline:calc(var(--spacing,.25rem)*4)}.sm\:mt-0{margin-top:calc(var(--spacing,.25rem)*0)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:max-h-\[90vh\]{max-height:90vh}.sm\:max-w-2xl{max-width:var(--container-2xl,42rem)}.sm\:max-w-5xl{max-width:var(--container-5xl,64rem)}.sm\:max-w-\[850px\]{max-width:850px}.sm\:max-w-sm{max-width:var(--container-sm,24rem)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-start{align-items:flex-start}.sm\:justify-end{justify-content:flex-end}:where(.sm\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*0*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*0*(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--spacing,.25rem)*2*var(--tw-space-x-reverse));margin-inline-end:calc(var(--spacing,.25rem)*2*(1 - var(--tw-space-x-reverse)))}:where(.sm\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--spacing,.25rem)*4*var(--tw-space-x-reverse));margin-inline-end:calc(var(--spacing,.25rem)*4*(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:px-4{padding-inline:calc(var(--spacing,.25rem)*4)}.sm\:px-8{padding-inline:calc(var(--spacing,.25rem)*8)}.sm\:px-16{padding-inline:calc(var(--spacing,.25rem)*16)}.sm\:py-8{padding-block:calc(var(--spacing,.25rem)*8)}.sm\:pt-8{padding-top:calc(var(--spacing,.25rem)*8)}.sm\:pt-12{padding-top:calc(var(--spacing,.25rem)*12)}.sm\:pb-12{padding-bottom:calc(var(--spacing,.25rem)*12)}.sm\:text-left{text-align:left}.sm\:slide-in-from-bottom-0{--tw-enter-translate-y:0px}.sm\:zoom-in-90{--tw-enter-scale:.9}.sm\:data-\[state\=open\]\:slide-in-from-bottom-0[data-state=open]{--tw-enter-translate-y:0px}.sm\:data-\[state\=open\]\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (width>=48rem){.md\:absolute{position:absolute}.md\:block{display:block}.md\:hidden{display:none}.md\:w-\(--radix-navigation-menu-viewport-width\){width:var(--radix-navigation-menu-viewport-width)}.md\:w-\[500px\]{width:500px}.md\:w-auto{width:auto}.md\:w-fit{width:fit-content}.md\:w-full{width:100%}.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:px-5{padding-inline:calc(var(--spacing,.25rem)*5)}.md\:px-16{padding-inline:calc(var(--spacing,.25rem)*16)}.md\:px-20{padding-inline:calc(var(--spacing,.25rem)*20)}.md\:py-10{padding-block:calc(var(--spacing,.25rem)*10)}}@media (width>=64rem){.lg\:visible{visibility:visible}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:w-\[600px\]{width:600px}.lg\:min-w-\[210px\]{min-width:210px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:items-center{align-items:center}.lg\:justify-center{justify-content:center}.lg\:px-8{padding-inline:calc(var(--spacing,.25rem)*8)}.lg\:text-5xl{font-size:var(--text-5xl,3rem);line-height:var(--tw-leading,var(--text-5xl--line-height,1))}}@media (width>=80rem){.xl\:block{display:block}.xl\:hidden{display:none}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:px-24{padding-inline:calc(var(--spacing,.25rem)*24)}}@media (width>=96rem){.\32 xl\:block{display:block}.\32 xl\:hidden{display:none}}.dark\:border-\(--sky-5\):is(.dark *){border-color:var(--sky-5)}.dark\:border-blue-700:is(.dark *){border-color:var(--color-blue-700,oklch(48.8% .243 264.376))}.dark\:border-border:is(.dark *){border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.dark\:border-border:is(.dark *){border-color:color-mix(in srgb,var(--border),transparent 0%)}}.dark\:border-destructive:is(.dark *){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:border-destructive:is(.dark *){border-color:color-mix(in srgb,var(--destructive),transparent 0%)}}.dark\:border-green-700:is(.dark *){border-color:var(--color-green-700,oklch(52.7% .154 150.069))}.dark\:border-orange-700:is(.dark *){border-color:var(--color-orange-700,oklch(55.3% .195 38.402))}.dark\:border-primary:is(.dark *){border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:border-primary:is(.dark *){border-color:color-mix(in srgb,var(--primary),transparent 0%)}}.dark\:bg-\(--accent\):is(.dark *){background-color:var(--accent)}.dark\:bg-\(--grass-4\)\/80:is(.dark *){background-color:var(--grass-4)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-\(--grass-4\)\/80:is(.dark *){background-color:color-mix(in oklab,var(--grass-4)80%,transparent)}}.dark\:bg-\(--grass-5\):is(.dark *){background-color:var(--grass-5)}.dark\:bg-\(--grass-6\):is(.dark *){background-color:var(--grass-6)}.dark\:bg-\(--red-4\)\/80:is(.dark *){background-color:var(--red-4)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-\(--red-4\)\/80:is(.dark *){background-color:color-mix(in oklab,var(--red-4)80%,transparent)}}.dark\:bg-\(--red-6\):is(.dark *){background-color:var(--red-6)}.dark\:bg-\(--sky-6\):is(.dark *){background-color:var(--sky-6)}.dark\:bg-\(--slate-1\):is(.dark *){background-color:var(--slate-1)}.dark\:bg-\(--slate-6\):is(.dark *){background-color:var(--slate-6)}.dark\:bg-\(--yellow-4\):is(.dark *){background-color:var(--yellow-4)}.dark\:bg-\(--yellow-6\):is(.dark *){background-color:var(--yellow-6)}.dark\:bg-accent:is(.dark *){background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-accent:is(.dark *){background-color:color-mix(in srgb,var(--accent),transparent 0%)}}.dark\:bg-accent\/60:is(.dark *){background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-accent\/60:is(.dark *){background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)60%,transparent)}}.dark\:bg-amber-900:is(.dark *){background-color:var(--color-amber-900,oklch(41.4% .112 45.904))}.dark\:bg-background:is(.dark *){background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-background:is(.dark *){background-color:color-mix(in srgb,var(--background),transparent 0%)}}.dark\:bg-blue-900:is(.dark *){background-color:var(--color-blue-900,oklch(37.9% .146 265.522))}.dark\:bg-primary:is(.dark *){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-primary:is(.dark *){background-color:color-mix(in srgb,var(--primary),transparent 0%)}}.dark\:bg-purple-900:is(.dark *){background-color:var(--color-purple-900,oklch(38.1% .176 304.987))}.dark\:bg-red-900:is(.dark *){background-color:var(--color-red-900,oklch(39.6% .141 25.723))}.dark\:bg-red-950\/20:is(.dark *){background-color:#46080933}@supports (color:color-mix(in lab,red,red)){.dark\:bg-red-950\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-red-950,oklch(25.8% .092 26.042))20%,transparent)}}.dark\:text-\(--grass-12\):is(.dark *){color:var(--grass-12)}.dark\:text-\(--gray-11\):is(.dark *){color:var(--gray-11)}.dark\:text-\(--red-12\):is(.dark *){color:var(--red-12)}.dark\:text-\(--sky-12\):is(.dark *){color:var(--sky-12)}.dark\:text-\(--yellow-12\):is(.dark *){color:var(--yellow-12)}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200,oklch(92.4% .12 95.746))}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400,oklch(82.8% .189 84.429))}.dark\:text-blue-50:is(.dark *){color:var(--color-blue-50,oklch(97% .014 254.604))}.dark\:text-blue-200:is(.dark *){color:var(--color-blue-200,oklch(88.2% .059 254.128))}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300,oklch(80.9% .105 251.813))}.dark\:text-green-300:is(.dark *){color:var(--color-green-300,oklch(87.1% .15 154.449))}.dark\:text-orange-300:is(.dark *){color:var(--color-orange-300,oklch(83.7% .128 66.29))}.dark\:text-purple-200:is(.dark *){color:var(--color-purple-200,oklch(90.2% .063 306.703))}.dark\:text-red-50:is(.dark *){color:var(--color-red-50,oklch(97.1% .013 17.38))}.dark\:text-red-400:is(.dark *){color:var(--color-red-400,oklch(70.4% .191 22.216))}.dark\:brightness-100:is(.dark *){--tw-brightness:brightness(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.dark\:invert:is(.dark *){--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.dark\:invert-0:is(.dark *){--tw-invert:invert(0%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.dark\:invert-\[\.7\]:is(.dark *){--tw-invert:invert(.7);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.dark\:prose-invert:is(.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}@media (hover:hover){.dark\:hover\:bg-\(--grass-3\):is(.dark *):hover{background-color:var(--grass-3)}.dark\:hover\:bg-\(--grass-7\):is(.dark *):hover{background-color:var(--grass-7)}.dark\:hover\:bg-\(--red-3\):is(.dark *):hover{background-color:var(--red-3)}.dark\:hover\:bg-\(--red-7\):is(.dark *):hover{background-color:var(--red-7)}.dark\:hover\:bg-\(--yellow-7\):is(.dark *):hover{background-color:var(--yellow-7)}}.dark\:active\:bg-\(--grass-4\):is(.dark *):active{background-color:var(--grass-4)}.dark\:active\:bg-\(--red-4\):is(.dark *):active{background-color:var(--red-4)}@media print{.print\:relative{position:relative}.print\:hidden{display:none}.print\:px-0{padding-inline:calc(var(--spacing,.25rem)*0)}.print\:pb-0{padding-bottom:calc(var(--spacing,.25rem)*0)}}.fullscreen\:flex:fullscreen{display:flex}.fullscreen\:items-center:fullscreen{align-items:center}.fullscreen\:items-center-safe:fullscreen{align-items:safe center}.fullscreen\:justify-center:fullscreen{justify-content:center}.fullscreen\:bg-background:fullscreen{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.fullscreen\:bg-background:fullscreen{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.\[\&_\.cm-panels\]\:hidden .cm-panels{display:none}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing,.25rem)*2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing,.25rem)*1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing,.25rem)*2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing,.25rem)*0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing,.25rem)*5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing,.25rem)*5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing,.25rem)*12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing,.25rem)*2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing,.25rem)*3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing,.25rem)*5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing,.25rem)*5)}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed,1.625);line-height:var(--leading-relaxed,1.625)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing,.25rem)*0)}.\[\&\:has\(svg\)\]\:pl-0:has(svg){padding-left:calc(var(--spacing,.25rem)*0)}.\[\&\:has\(svg\)\]\:pl-11:has(svg){padding-left:calc(var(--spacing,.25rem)*11)}.\[\&\>\.cm-editor\]\:pr-0>.cm-editor{padding-right:calc(var(--spacing,.25rem)*0)}.\[\&\>div\.cm-editor\]\:h-full>div.cm-editor{height:100%}.\[\&\>div\.cm-editor\]\:overflow-hidden>div.cm-editor{overflow:hidden}.\[\&\>li\]\:mt-2>li{margin-top:calc(var(--spacing,.25rem)*2)}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:top-4>svg{top:calc(var(--spacing,.25rem)*4)}.\[\&\>svg\]\:left-4>svg{left:calc(var(--spacing,.25rem)*4)}.\[\&\>svg\]\:size-3>svg{height:calc(var(--spacing,.25rem)*3);width:calc(var(--spacing,.25rem)*3)}.\[\&\>svg\]\:text-\(--yellow-11\)>svg{color:var(--yellow-11)}.\[\&\>svg\]\:text-destructive>svg{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.\[\&\>svg\]\:text-destructive>svg{color:color-mix(in srgb,var(--destructive),transparent 0%)}}.\[\&\>svg\]\:text-foreground>svg{color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.\[\&\>svg\]\:text-foreground>svg{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y:-3px;translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>tr\>td\]\:p-0>tr>td{padding:calc(var(--spacing,.25rem)*0)}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}}pre{line-height:125%}span.linenos,td.linenos .normal{color:inherit;background-color:#0000;padding-left:5px;padding-right:5px}span.linenos.special,td.linenos .special{background-color:var(--linenos-special-bg);color:var(--linenos-special);padding-left:5px;padding-right:5px}.codehilite .hll{color:var(--codehilite-hll)}.codehilite .c{color:var(--codehilite-c)}.codehilite .err{color:var(--codehilite-err)}.codehilite .k{color:var(--codehilite-k)}.codehilite .l{color:var(--codehilite-l)}.codehilite .n{color:var(--codehilite-n)}.codehilite .o{color:var(--codehilite-o)}.codehilite .ch{color:var(--codehilite-ch)}.codehilite .cm{color:var(--codehilite-cm)}.codehilite .cp{color:var(--codehilite-cp)}.codehilite .cpf{color:var(--codehilite-cpf)}.codehilite .c1{color:var(--codehilite-c1)}.codehilite .cs{color:var(--codehilite-cs)}.codehilite .kc{color:var(--codehilite-kc)}.codehilite .kd{color:var(--codehilite-kd)}.codehilite .kn{color:var(--codehilite-kn)}.codehilite .kp{color:var(--codehilite-kp)}.codehilite .kr{color:var(--codehilite-kr)}.codehilite .kt{color:var(--codehilite-kt)}.codehilite .ld{color:var(--codehilite-ld)}.codehilite .m{color:var(--codehilite-m)}.codehilite .s{color:var(--codehilite-s)}.codehilite .na{color:var(--codehilite-na)}.codehilite .nb{color:var(--codehilite-nb)}.codehilite .nc{color:var(--codehilite-nc)}.codehilite .no{color:var(--codehilite-no)}.codehilite .nd{color:var(--codehilite-nd)}.codehilite .ni{color:var(--codehilite-ni)}.codehilite .ne{color:var(--codehilite-ne)}.codehilite .nf{color:var(--codehilite-nf)}.codehilite .nl{color:var(--codehilite-nl)}.codehilite .nn{color:var(--codehilite-nn)}.codehilite .nx{color:var(--codehilite-nx)}.codehilite .py{color:var(--codehilite-py)}.codehilite .nt{color:var(--codehilite-nt)}.codehilite .nv{color:var(--codehilite-nv)}.codehilite .ow{color:var(--codehilite-ow)}.codehilite .mb{color:var(--codehilite-mb)}.codehilite .mf{color:var(--codehilite-mf)}.codehilite .mh{color:var(--codehilite-mh)}.codehilite .mi{color:var(--codehilite-mi)}.codehilite .mo{color:var(--codehilite-mo)}.codehilite .sa{color:var(--codehilite-sa)}.codehilite .sb{color:var(--codehilite-sb)}.codehilite .sc{color:var(--codehilite-sc)}.codehilite .dl{color:var(--codehilite-dl)}.codehilite .sd{color:var(--codehilite-sd)}.codehilite .s2{color:var(--codehilite-s2)}.codehilite .se{color:var(--codehilite-se)}.codehilite .sh{color:var(--codehilite-sh)}.codehilite .si{color:var(--codehilite-si)}.codehilite .sx{color:var(--codehilite-sx)}.codehilite .sr{color:var(--codehilite-sr)}.codehilite .s1{color:var(--codehilite-s1)}.codehilite .ss{color:var(--codehilite-ss)}.codehilite .bp{color:var(--codehilite-bp)}.codehilite .fm{color:var(--codehilite-fm)}.codehilite .vc{color:var(--codehilite-vc)}.codehilite .vg{color:var(--codehilite-vg)}.codehilite .vi{color:var(--codehilite-vi)}.codehilite .vm{color:var(--codehilite-vm)}.codehilite .il{color:var(--codehilite-il)}.stderr .codehilite .highlight{color:var(--error)}@supports (color:color-mix(in lab,red,red)){.stderr .codehilite .highlight{color:color-mix(in srgb,var(--error),transparent calc((1 - var(--tw-text-opacity))*100%))}}.stderr .codehilite .gt{color:var(--error)}@supports (color:color-mix(in lab,red,red)){.stderr .codehilite .gt{color:color-mix(in srgb,var(--error),transparent calc((1 - var(--tw-text-opacity))*100%))}}.stderr .codehilite .nb{color:var(--sky-8)}.stderr .codehilite .m{color:var(--sky-11)}.stderr .codehilite .bp,.stderr .codehilite .k,.stderr .codehilite .n,.stderr .codehilite .o,.stderr .codehilite .p,.stderr .codehilite .pm,.stderr .codehilite .w{color:var(--slate-10)}.stderr .codehilite .x{color:var(--red-9)}@media (hover:hover) and (pointer:fine){.hover-action,[data-is-dragging=true] .hover-actions-parent.hover-actions-parent .hover-action:not(:hover){display:none!important}}.hover-action:focus,.hover-action:hover,.hover-actions-parent:focus .hover-action,.hover-actions-parent:has([data-state=open]) .hover-action,.hover-actions-parent:hover .hover-action{display:inline-flex!important}:root:has(:fullscreen) .hide-on-fullscreen{display:none!important}.mo-dropdown-icon{color:var(--muted-foreground);height:calc(var(--spacing,.25rem)*3.5);margin-right:calc(var(--spacing,.25rem)*2);width:calc(var(--spacing,.25rem)*3.5)}@supports (color:color-mix(in lab,red,red)){.mo-dropdown-icon{color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)70%,transparent)}}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb)var(--scrollbar-track);scrollbar-width:thin}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2)format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff)format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2)format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff)format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2)format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff)format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2)format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff)format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2)format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff)format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2)format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff)format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf)format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2)format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff)format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf)format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2)format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff)format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-B22Nviop.woff2)format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff)format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf)format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2)format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff)format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf)format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-t53AETM-.woff2)format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff)format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2)format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff)format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf)format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2)format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff)format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2)format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff)format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2)format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff)format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2)format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff)format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2)format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff)format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC)format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff)format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2)format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff)format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2)format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff)format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf)format("truetype")}.katex{font-family:KaTeX_Main,Times New Roman,serif;font-size:110%;font-style:normal;line-height:inherit;text-indent:0;text-rendering:auto}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.16.9"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{white-space:nowrap;width:min-content;position:relative}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{flex-direction:row;display:inline-flex}.katex .thinbox{width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.root{margin-left:.277778rem;margin-right:-.555556rem}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1rem}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2rem}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4rem}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6rem}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8rem}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2rem}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4rem}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88rem}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456rem}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148rem}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976rem}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.833333rem}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1rem}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16667rem}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333rem}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5rem}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66667rem}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2rem}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4rem}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88rem}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45667rem}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14667rem}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.714286rem}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.857143rem}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1rem}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14286rem}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571rem}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857rem}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71429rem}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714rem}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857rem}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96286rem}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55429rem}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625rem}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75rem}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875rem}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1rem}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125rem}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25rem}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5rem}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8rem}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16rem}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925rem}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11rem}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.555556rem}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.666667rem}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.777778rem}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.888889rem}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1rem}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111rem}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333rem}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6rem}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92rem}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444rem}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444rem}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5rem}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6rem}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7rem}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8rem}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9rem}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1rem}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2rem}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44rem}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728rem}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074rem}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488rem}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.416667rem}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5rem}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.583333rem}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.666667rem}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75rem}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.833333rem}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1rem}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2rem}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44rem}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833rem}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333rem}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.347222rem}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.416667rem}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.486111rem}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.555556rem}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625rem}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.694444rem}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.833333rem}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1rem}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2rem}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44028rem}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72778rem}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.289352rem}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.347222rem}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.405093rem}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462963rem}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.520833rem}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.578704rem}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.694444rem}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.833333rem}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1rem}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023rem}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981rem}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108rem}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.289296rem}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512rem}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.385728rem}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.433944rem}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216rem}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.578592rem}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.694311rem}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.833173rem}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1rem}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961rem}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.200965rem}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.241158rem}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.281351rem}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.321543rem}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.361736rem}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.401929rem}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.482315rem}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778rem}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.694534rem}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.833601rem}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1rem}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{width:.12rem;display:inline-block}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.katex .x-arrow-pad{padding:0 .5rem}.katex .cd-arrow-pad{padding:0 .55556rem 0 .27778rem}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3rem}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04rem solid}.katex .cancel-pad{padding:0 .2rem}.katex .cancel-lap{margin-left:-.2rem;margin-right:-.2rem}.katex .sout{border-bottom-style:solid;border-bottom-width:.08rem}.katex .angl{box-sizing:border-box;border-top:.049rem solid;border-right:.049rem solid;margin-right:.03889rem}.katex .anglpad{padding:0 .03889rem}.katex .eqn-num:before{content:"(" counter(katexEqnNo)")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo)")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3rem)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3rem)}.katex-display{text-align:center;margin:1rem 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{text-align:right;position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2rem}.katex-display,body{counter-reset:katexEqnNo mmlEqnNo}.markdown .paragraph:first-child,.markdown p:first-child{margin-block-start:0}.markdown .paragraph:last-child,.markdown p:last-child{margin-block-end:0}.config-width-full .markdown h1,.markdown h1{text-align:start}.markdown .paragraph{margin-block:1rem;margin-inline:0;display:block}.markdown h1,.markdown h2,.markdown h3,.markdown h4,.markdown h5,.markdown h6{font-family:var(--heading-font);font-weight:inherit}.markdown a{color:var(--link);cursor:pointer;-webkit-text-decoration:inherit;text-decoration:inherit}.markdown a:active,.markdown a:hover{text-decoration:underline}.markdown a:visited{color:var(--link-visited)}.mo-label .markdown .paragraph,.mo-label .markdown p,.mo-label-block .markdown .paragraph,.mo-label-block .markdown p{margin:0;padding:0}a .markdown .paragraph:has(iconify-icon){gap:.4em}a .markdown iconify-icon:first-child{margin-inline-end:.4em}a>.markdown>.paragraph,iconify-icon{display:inline-flex}iconify-icon{align-items:center}button .markdown .paragraph{align-items:baseline;gap:.4em;display:inline-flex}button .markdown .paragraph iconify-icon{align-self:center}button .prose.prose{max-width:none}.prose .task-list-item{margin-top:.25rem;margin-bottom:.25rem;list-style-type:none!important}.prose .task-list-item input[type=checkbox]{vertical-align:middle;margin:0 .5rem .25rem -1.6rem}.tabbed-set{border-radius:var(--radius);flex-wrap:wrap;display:flex;position:relative}.tabbed-set>input{display:none}.tabbed-set label{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius);color:var(--muted-foreground);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:background-color var(--transition),color var(--transition);white-space:nowrap;border-bottom:2px solid #0000;width:auto;padding:.2rem 1rem}.tabbed-set .tabbed-content{background-color:var(--background);box-shadow:0 -1px var(--border);width:100%;padding:.5rem 1rem;display:none}.tabbed-set input{opacity:0;position:absolute}.tabbed-set input:checked:nth-child(n+1)+label{background-color:var(--background);border-color:var(--primary);color:var(--foreground)}.tabbed-set label:hover{background-color:var(--accent);color:var(--foreground)}@media screen{.tabbed-set input:nth-child(n+1):checked+label+.tabbed-content{order:99;display:block}}@media print{.tabbed-content{display:contents}}.prose .critic{border-style:solid;border-width:1px;border-radius:3px;padding-top:.1rem;padding-bottom:.1rem;font-family:inherit;text-decoration:none}.prose .critic:after,.prose .critic:before{content:" ";padding-top:.1rem;padding-bottom:.1rem;font-size:medium}.prose .block:after,.prose .block:before{content:""}.prose mark.critic{background:var(--orange-3);border-color:var(--orange-9)}.prose ins.critic{background:var(--grass-3);border-color:var(--grass-9)}.prose del.critic{background:var(--red-3);border-color:var(--red-9)}.prose del.break,.prose ins.break{border:none;font-size:0}.prose del.break:before,.prose ins.break:before{content:" ¶ ";border-radius:3px}.prose del.after,.prose ins.after{content:""}.prose ins.break:before{background:var(--green-3);border:1px solid var(--green-9);color:var(--green-9)}.prose del.break:before{background:var(--red-3);border:1px solid var(--red-9);color:var(--red-9)}.prose span.critic{background:var(--blue-3);border:0;border-bottom:1px solid var(--blue-9);border-top:1px solid var(--blue-9)}.prose span.critic:after,.prose span.critic:before{background:var(--blue-3);border:1px solid var(--blue-9);font-size:inherit}.prose span.critic:before{content:" »";border-right:none;border-top-left-radius:3px;border-bottom-left-radius:3px}.prose span.critic:after{content:"ab ";border-left:none;border-top-right-radius:3px;border-bottom-right-radius:3px}.prose .block{padding:.02rem;display:block}:where(.prose .keys>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(var(--spacing,.25rem)*1*var(--tw-space-x-reverse));margin-inline-end:calc(var(--spacing,.25rem)*1*(1 - var(--tw-space-x-reverse)))}:where(.prose .details>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing,.25rem)*1*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing,.25rem)*1*(1 - var(--tw-space-y-reverse)))}.markdown details{background-color:var(--card);border-radius:var(--radius);border-style:var(--tw-border-style);border-width:1px}@supports (color:color-mix(in lab,red,red)){.markdown details{background-color:color-mix(in srgb,var(--card),transparent 0%)}}.markdown details{border-left-width:6px;margin:1rem 0}.markdown details.warn,.markdown details.warning{border-left-color:var(--yellow-8)}.markdown details.info,.markdown details.note{border-left-color:var(--blue-8)}.markdown details.caution,.markdown details.danger,.markdown details.error{border-left-color:var(--red-8)}.markdown details.success,.markdown details.tip{border-left-color:var(--grass-8)}.markdown details.important{border-left-color:var(--cyan-8)}.markdown details.hint{border-left-color:var(--gray-8)}.markdown details summary{cursor:pointer;padding:calc(var(--spacing,.25rem)*4);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);user-select:none;list-style:none}.markdown details summary::-webkit-details-marker{display:none}.markdown details summary:before{border-color:var(--slate-8);content:"";vertical-align:middle;border-style:solid;border-width:.15rem .15rem 0 0;margin-right:1rem;padding:.2rem;transition:transform .2s;display:inline-block;transform:rotate(45deg)}.markdown details[open] summary:before{transform:rotate(135deg)}.markdown details>:not(summary){padding:calc(var(--spacing,.25rem)*4);padding-top:calc(var(--spacing,.25rem)*0)}.markdown .codehilite{background-color:var(--slate-2);border-radius:4px}.markdown [data-tooltip]{cursor:pointer;text-decoration:underline dotted;position:relative}.markdown [data-tooltip]:after,.markdown [data-tooltip]:before{opacity:0;pointer-events:none;visibility:hidden;z-index:1000;transition:all .2s;position:absolute;left:50%;transform:translate(-50%)}.markdown [data-tooltip]:before{background-color:var(--background);border-style:var(--tw-border-style);content:attr(data-tooltip);text-align:center;white-space:pre-wrap;border-width:1px;border-radius:6px;width:max-content;max-width:300px;padding:5px 10px;line-height:1.4;bottom:calc(100% + 10px)}@supports (color:color-mix(in lab,red,red)){.markdown [data-tooltip]:before{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.markdown [data-tooltip]:before{color:var(--foreground);font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,1.5))}@supports (color:color-mix(in lab,red,red)){.markdown [data-tooltip]:before{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.markdown [data-tooltip]:before{--tw-shadow:4px 4px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 60%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.markdown [data-tooltip]:hover:after,.markdown [data-tooltip]:hover:before{opacity:1;visibility:visible}.markdown [data-tooltip]:hover:before{transform:translate(-50%)translateY(10px)}.admonition{--admonition-bg:var(--blue-2);--admonition-border:var(--blue-8);--admonition-heading-color:var(--blue-11);background-color:var(--admonition-bg);border-left:4px solid;border-color:var(--admonition-border);flex-direction:column;margin-bottom:1rem;padding:1rem 1rem 1rem 3rem;display:flex;position:relative}.admonition:before{margin-top:.35rem;margin-left:-2rem;position:absolute}.admonition-title{color:var(--admonition-heading-color);--tw-tracking:var(--tracking-wide,.025em);letter-spacing:var(--tracking-wide,.025em);font-weight:700}.admonition-title>.paragraph{text-transform:none;--tw-tracking:var(--tracking-normal,0em);color:var(--foreground);letter-spacing:var(--tracking-normal,0);margin:0;padding-top:.5rem;font-weight:400}@supports (color:color-mix(in lab,red,red)){.admonition-title>.paragraph{color:color-mix(in srgb,var(--foreground),transparent 0%)}}.admonition.info,.admonition.note{--admonition-bg:var(--blue-2);--admonition-border:var(--blue-8);--admonition-heading-color:var(--blue-11)}:is(.admonition.info,.admonition.note):before{--csstools-light-dark-toggle--86:var(--csstools-color-scheme--light)url("data:image/svg+xml;utf8,");content:var(--csstools-light-dark-toggle--86,url("data:image/svg+xml;utf8,"));content:light-dark(url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,"))}.admonition.caution,.admonition.danger,.admonition.error{--admonition-bg:var(--red-2);--admonition-border:var(--red-8);--admonition-heading-color:var(--red-11)}:is(.admonition.danger,.admonition.caution,.admonition.error):before{--csstools-light-dark-toggle--87:var(--csstools-color-scheme--light)url("data:image/svg+xml;utf8,");content:var(--csstools-light-dark-toggle--87,url("data:image/svg+xml;utf8,"));content:light-dark(url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,"))}.admonition.attention,.admonition.warning{--admonition-bg:var(--yellow-2);--admonition-border:var(--yellow-8);--admonition-heading-color:var(--yellow-11)}:is(.admonition.attention,.admonition.warning):before{--csstools-light-dark-toggle--88:var(--csstools-color-scheme--light)url("data:image/svg+xml;utf8,");content:var(--csstools-light-dark-toggle--88,url("data:image/svg+xml;utf8,"));content:light-dark(url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,"))}.admonition.hint{--admonition-bg:var(--gray-2);--admonition-border:var(--gray-8);--admonition-heading-color:var(--gray-11)}.dark .admonition.hint{--admonition-bg:var(--gray-3)}.admonition.hint:before{--csstools-light-dark-toggle--89:var(--csstools-color-scheme--light)url("data:image/svg+xml;utf8,");content:var(--csstools-light-dark-toggle--89,url("data:image/svg+xml;utf8,"));content:light-dark(url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,"))}.admonition.important{--admonition-bg:var(--cyan-2);--admonition-border:var(--cyan-8);--admonition-heading-color:var(--cyan-11)}.admonition.important:before{--csstools-light-dark-toggle--90:var(--csstools-color-scheme--light)url("data:image/svg+xml;utf8,");content:var(--csstools-light-dark-toggle--90,url("data:image/svg+xml;utf8,"));content:light-dark(url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,"))}.admonition.tip{--admonition-bg:var(--grass-2);--admonition-border:var(--grass-8);--admonition-heading-color:var(--grass-11)}.admonition.tip:before{--csstools-light-dark-toggle--91:var(--csstools-color-scheme--light)url("data:image/svg+xml;utf8,");content:var(--csstools-light-dark-toggle--91,url("data:image/svg+xml;utf8,"));content:light-dark(url("data:image/svg+xml;utf8,"),url("data:image/svg+xml;utf8,"))}.markdown table,table.dataframe{scrollbar-width:thin;max-width:100%;display:block;overflow:auto}.markdown table thead,table.dataframe thead{border-color:var(--input);vertical-align:bottom}@supports (color:color-mix(in lab,red,red)){.markdown table thead,table.dataframe thead{border-color:color-mix(in srgb,var(--input),transparent 0%)}}.markdown table tbody tr:nth-child(odd),table.dataframe tbody tr:nth-child(odd){background:var(--lime-2)}.markdown table tbody tr:nth-child(2n),table.dataframe tbody tr:nth-child(2n){background-color:var(--card)}@supports (color:color-mix(in lab,red,red)){.markdown table tbody tr:nth-child(2n),table.dataframe tbody tr:nth-child(2n){background-color:color-mix(in srgb,var(--card),transparent 0%)}}.markdown table tbody tr:hover,table.dataframe tbody tr:hover{background:var(--yellow-4)}.markdown table td,.markdown table th,.markdown table tr,table.dataframe td,table.dataframe th,table.dataframe tr{text-align:right;vertical-align:middle;border:none;padding-left:.5rem;padding-right:.5rem;line-height:normal}.progress-container{max-width:var(--container-sm,24rem);padding:calc(var(--spacing,.25rem)*6);flex-direction:column;margin-left:auto;margin-right:auto;display:flex}.progress-title{font-family:var(--heading-font,"Lora",serif);font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,1.55556));--tw-font-weight:var(--font-weight-bold,700);color:var(--foreground);font-weight:var(--font-weight-bold,700)}@supports (color:color-mix(in lab,red,red)){.progress-title{color:color-mix(in oklab,color-mix(in srgb,var(--foreground),transparent 0%)60%,transparent)}}.progress-subtitle{font-family:var(--text-font,"PT Sans",sans-serif);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));--tw-font-weight:var(--font-weight-normal,400);color:var(--muted-foreground);font-weight:var(--font-weight-normal,400)}@supports (color:color-mix(in lab,red,red)){.progress-subtitle{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.progress-wrapper{gap:calc(var(--spacing,.25rem)*1);margin-top:calc(var(--spacing,.25rem)*2);flex-direction:column;width:100%;display:flex}.progress-row{color:var(--muted-foreground);font-family:var(--text-font,"PT Sans",sans-serif);font-size:var(--text-sm,.875rem);align-items:baseline;gap:calc(var(--spacing,.25rem)*3);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));display:flex}@supports (color:color-mix(in lab,red,red)){.progress-row{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}.progress-meta{color:var(--muted-foreground);font-family:var(--text-font,"PT Sans",sans-serif);font-size:var(--text-sm,.875rem);gap:calc(var(--spacing,.25rem)*2);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));display:flex}@supports (color:color-mix(in lab,red,red)){.progress-meta{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}progress{appearance:none;background-color:var(--color-slate-200,oklch(92.9% .013 255.508));height:calc(var(--spacing,.25rem)*2);margin-right:calc(var(--spacing,.25rem)*1);max-height:calc(var(--spacing,.25rem)*2);border:none;border-radius:9999px;flex:1;position:relative;overflow:hidden}progress:is(.dark *){background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){progress:is(.dark *){background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)60%,transparent)}}progress::-webkit-progress-bar{background-color:var(--color-slate-200,oklch(92.9% .013 255.508));border-radius:9999px}progress::-webkit-progress-bar:is(.dark *){background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){progress::-webkit-progress-bar:is(.dark *){background-color:color-mix(in oklab,color-mix(in srgb,var(--accent),transparent 0%)60%,transparent)}}progress::-webkit-progress-value{background-color:var(--color-blue-500,oklch(62.3% .214 259.815));transition:width .2s}progress::-webkit-progress-value:is(.dark *){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){progress::-webkit-progress-value:is(.dark *){background-color:color-mix(in srgb,var(--primary),transparent 0%)}}progress::-moz-progress-bar{background-color:var(--color-blue-500,oklch(62.3% .214 259.815));transition:width .2s}progress::-moz-progress-bar:is(.dark *){background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){progress::-moz-progress-bar:is(.dark *){background-color:color-mix(in srgb,var(--primary),transparent 0%)}}progress:not(.wrapped){display:inline-block}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@property --tw-border-spacing-x{syntax:"";inherits:false;initial-value:0}@property --tw-border-spacing-y{syntax:"";inherits:false;initial-value:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(1turn)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}@keyframes delayed-show{0%{opacity:0}99%{opacity:0}to{opacity:1}}@keyframes ellipsis-dot{0%,to{opacity:.3}50%{opacity:1}}@keyframes slide{0%{transform:translate(-100%)}to{transform:translate(400%)}}:host,body{font-family:var(--text-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{isolation:isolate;flex-direction:column;width:100%;min-height:100vh;display:flex}code{font-family:var(--monospace-font)}.marimo-cell{border:1px solid var(--gray-4);max-width:inherit;border-radius:10px;width:100%;position:relative}:where(.marimo-cell>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-bottom-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-color:var(--gray-5);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse))}.marimo-cell:hover{border-color:var(--gray-6)}.marimo-cell:focus-visible{outline:none}.marimo-cell:has(.mo-ai-generated-cell):before{box-shadow:0 0 10px 0 var(--cyan-9);content:"";opacity:.5;pointer-events:none;z-index:1;border-radius:10px;position:absolute;inset:0}.marimo-cell:has(.mo-ai-generated-cell.mo-ai-setup-cell):before{border-radius:2px}.marimo-cell:has(.mo-ai-deleted-cell){opacity:.7;position:relative}.marimo-cell:has(.mo-ai-deleted-cell) .cm,.marimo-cell:has(.mo-ai-deleted-cell) .cm-gutters,.marimo-cell:has(.mo-ai-deleted-cell) .output-area{background-color:var(--red-2)}.marimo-cell:has(.mo-ai-deleted-cell):before{box-shadow:0 0 10px 0 var(--red-9);content:"";opacity:.6;pointer-events:none;z-index:1;border-radius:10px;position:absolute;inset:0}.marimo-cell:has(.mo-ai-deleted-cell) .cm-content{text-decoration:line-through;-webkit-text-decoration-color:var(--red-9);text-decoration-color:var(--red-9);text-decoration-thickness:1px}.marimo-cell:focus-within{z-index:20}.marimo-cell:hover{z-index:30}.marimo-cell.interactive .console-output-area,.marimo-cell.interactive .output-area{max-height:610px;overflow:auto}.marimo-cell.interactive .output-area:has(>.output>marimo-ui-element>marimo-table){max-height:none;overflow:hidden}.marimo-cell.interactive>:first-child{border-top-left-radius:9px;border-top-right-radius:9px}.marimo-cell.interactive>:last-child{border-bottom-right-radius:9px;border-bottom-left-radius:9px}.marimo-cell.interactive:focus-within{--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-shadow-color:var(--base-shadow)}@supports (color:color-mix(in lab,red,red)){.marimo-cell.interactive:focus-within{--tw-shadow-color:color-mix(in oklab,var(--base-shadow)var(--tw-shadow-alpha),transparent)}}.marimo-cell.interactive .cm{border-radius:8px}.marimo-cell>*~[data-hidden=true],.marimo-cell>[data-hidden=true]~*{border-top:none}:is(.marimo-cell.stale,.marimo-cell.disabled.stale) .cm,:is(.marimo-cell.stale,.marimo-cell.disabled.stale) .cm-gutters,:is(.marimo-cell.stale,.marimo-cell.disabled.stale) .output-area{background-color:var(--gray-2);opacity:.5}:is(.marimo-cell.disabled,.marimo-cell.disabled.has-error,.marimo-cell.disabled:hover,.marimo-cell.disabled.has-error:hover) .cm,:is(.marimo-cell.disabled,.marimo-cell.disabled.has-error,.marimo-cell.disabled:hover,.marimo-cell.disabled.has-error:hover) .cm-gutters,:is(.marimo-cell.disabled,.marimo-cell.disabled.has-error,.marimo-cell.disabled:hover,.marimo-cell.disabled.has-error:hover) .output-area{background-color:var(--gray-1);opacity:.5}.marimo-cell.disabled:hover{border-color:var(--gray-6)}:where(:is(.marimo-cell.has-error:not(.needs-run),.marimo-cell.error-outline)>:not(:last-child)){border-color:var(--error)}@supports (color:color-mix(in lab,red,red)){:where(:is(.marimo-cell.has-error:not(.needs-run),.marimo-cell.error-outline)>:not(:last-child)){border-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)20%,transparent)}}.marimo-cell.error-outline,.marimo-cell.has-error:not(.needs-run){border-color:var(--error);border-style:var(--tw-border-style);border-width:1px}@supports (color:color-mix(in lab,red,red)){.marimo-cell.error-outline,.marimo-cell.has-error:not(.needs-run){border-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)20%,transparent)}}.marimo-cell.error-outline,.marimo-cell.has-error:not(.needs-run){outline-color:var(--error);outline-style:var(--tw-outline-style);outline-width:1px}@supports (color:color-mix(in lab,red,red)){.marimo-cell.error-outline,.marimo-cell.has-error:not(.needs-run){outline-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)20%,transparent)}}.marimo-cell.has-error:not(.needs-run):hover{border-color:var(--error)}@supports (color:color-mix(in lab,red,red)){.marimo-cell.has-error:not(.needs-run):hover{border-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)30%,transparent)}}.marimo-cell.has-error:not(.needs-run):hover{outline-color:var(--error)}@supports (color:color-mix(in lab,red,red)){.marimo-cell.has-error:not(.needs-run):hover{outline-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)30%,transparent)}}:where(.marimo-cell.has-error:not(.needs-run):focus-within>:not(:last-child)){border-color:var(--error)}@supports (color:color-mix(in lab,red,red)){:where(.marimo-cell.has-error:not(.needs-run):focus-within>:not(:last-child)){border-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)20%,transparent)}}.marimo-cell.has-error:not(.needs-run):focus-within{border-style:var(--tw-border-style);--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-shadow-color:var(--error);border-width:1px}@supports (color:color-mix(in lab,red,red)){.marimo-cell.has-error:not(.needs-run):focus-within{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)20%,transparent)var(--tw-shadow-alpha),transparent)}}.marimo-cell.has-error:not(.needs-run):focus-within{outline-style:var(--tw-outline-style);outline-width:0}.marimo-cell.error-outline,.marimo-cell.error-outline:focus-within{box-shadow:8px 8px 0 0 var(--error)}@supports (color:color-mix(in lab,red,red)){.marimo-cell.error-outline,.marimo-cell.error-outline:focus-within{box-shadow:8px 8px 0 0 color-mix(in srgb,var(--error),transparent 80%)}}.marimo-cell.error-outline,.marimo-cell.error-outline:focus-within{background-color:var(--red-2)}:where(.marimo-cell.needs-run>:not(:last-child)){border-color:var(--stale)}.marimo-cell.needs-run{border-color:var(--stale);border-style:var(--tw-border-style);outline-color:var(--stale);outline-style:var(--tw-outline-style);border-width:1px;outline-width:1px}.marimo-cell.needs-run:hover{border-color:var(--action-foreground)}@supports (color:color-mix(in lab,red,red)){.marimo-cell.needs-run:hover{border-color:color-mix(in oklab,color-mix(in srgb,var(--action-foreground),transparent 0%)30%,transparent)}}.marimo-cell.needs-run:hover{outline-color:var(--action-foreground)}@supports (color:color-mix(in lab,red,red)){.marimo-cell.needs-run:hover{outline-color:color-mix(in oklab,color-mix(in srgb,var(--action-foreground),transparent 0%)30%,transparent)}}:where(.marimo-cell.needs-run:focus-within>:not(:last-child)){border-color:var(--stale)}.marimo-cell.needs-run:focus-within{border-style:var(--tw-border-style);--tw-shadow:4px 4px 0px 0px var(--tw-shadow-color,var(--base-shadow-darker)),0 0px 2px 0px var(--tw-shadow-color,#99999980);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-shadow-color:var(--stale);border-width:1px}@supports (color:color-mix(in lab,red,red)){.marimo-cell.needs-run:focus-within{--tw-shadow-color:color-mix(in oklab,var(--stale)var(--tw-shadow-alpha),transparent)}}.marimo-cell.needs-run:focus-within{outline-style:var(--tw-outline-style);outline-width:0}.marimo-cell.needs-run:focus-within .cm-editor{border:1px solid #0000}.marimo-cell.needs-run .RunButton{visibility:visible}.marimo-cell.focus-outline{--tw-shadow:5px 6px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 75%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition:all .6s;border-color:var(--blue-8)!important}.marimo-cell.published{box-shadow:none;border:none}.marimo-cell.published .output-area{box-shadow:none;border:none;padding-top:0;padding-bottom:0;display:block;overflow:visible}.marimo-cell.published:hover{box-shadow:none;border:none}.marimo-cell.published:focus-within{transform:none}.marimo-cell.borderless{border-color:#0000}.marimo-cell.borderless>*{border-bottom:none}.marimo-cell.borderless:focus{border:1px solid var(--gray-4)}.marimo-cell .shoulder-right{flex-direction:column;justify-content:flex-end;gap:4px;width:fit-content;height:100%;display:inline-flex;position:absolute;left:calc(100% + 12px)}.marimo-cell .shoulder-bottom{position:absolute;bottom:-2px;right:2px}.marimo-cell{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.marimo-cell{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.dark .marimo-cell{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.dark .marimo-cell{border-color:color-mix(in srgb,var(--border),transparent 0%)}}.dark .marimo-cell:hover{border:1px solid var(--gray-9)}.dark .marimo-cell.needs-run:hover{border-color:var(--action-foreground)}@supports (color:color-mix(in lab,red,red)){.dark .marimo-cell.needs-run:hover{border-color:color-mix(in oklab,color-mix(in srgb,var(--action-foreground),transparent 0%)30%,transparent)}}.dark .marimo-cell.needs-run:hover{outline-color:var(--action-foreground)}@supports (color:color-mix(in lab,red,red)){.dark .marimo-cell.needs-run:hover{outline-color:color-mix(in oklab,color-mix(in srgb,var(--action-foreground),transparent 0%)30%,transparent)}}.dark .marimo-cell.has-error:hover{border-color:var(--error)}@supports (color:color-mix(in lab,red,red)){.dark .marimo-cell.has-error:hover{border-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)30%,transparent)}}.dark .marimo-cell.has-error:hover{outline-color:var(--error)}@supports (color:color-mix(in lab,red,red)){.dark .marimo-cell.has-error:hover{outline-color:color-mix(in oklab,color-mix(in srgb,var(--error),transparent 0%)30%,transparent)}}.dark .marimo-cell.borderless{border-color:#0000}.dark .marimo-cell.borderless>*{border-bottom:none}.dark .marimo-cell.borderless:hover{border:1px solid var(--gray-4)}.dark .marimo-cell.published{border:none}#cell-setup,#cell-setup .cm-editor,#cell-setup .cm-gutter{background-color:var(--gray-2)}#App.disconnected .cm .cm-gutters,#App.disconnected .console-output-area,#App.disconnected .marimo-cell,#App.disconnected .marimo-cell .cm-editor.cm-focused .cm-activeLine,#App.disconnected .marimo-cell .cm-editor.cm-focused .cm-activeLineGutter,#App.disconnected .marimo-cell .shoulder-button{background-color:#0000}#App.disconnected .cell-queued-icon,#App.disconnected .cell-running-icon,#App.disconnected .elapsed-time{visibility:hidden;animation:none}#App.disconnected .console-output-area{border-color:#0000}.tray{z-index:1;display:flex;position:relative}.tray[data-has-output-above=false] .cm-editor{border-top-left-radius:9px;border-top-right-radius:9px}.tray div[data-ai-input-open=true] .cm-editor{border-top-left-radius:0;border-top-right-radius:0}.tray:last-child .cm-editor{border-bottom-right-radius:9px;border-bottom-left-radius:9px}.tray:after,.tray:before{content:"";height:100%;max-width:var(--gutter-width);width:var(--gutter-width);position:absolute}.tray:before{left:calc(var(--gutter-width)*-1)}.tray:after{right:calc(var(--gutter-width)*-1)}.marimo-cell.is-moving .tray:after,.marimo-cell.is-moving .tray:before{display:none}:root{--gutter-width:100px}.cm{width:100%}.cm-editor,.cm-lineNumbers{font-size:var(--marimo-code-editor-font-size,.9rem)}.marimo-cell .cm-editor{border:1px solid #0000;padding:3px 24px 3px 3px}.marimo-cell .cm-editor.cm-focused .cm-activeLineGutter{background:#e2f2ff}.marimo-cell .cm-editor.cm-focused .cm-activeLine:not(.cm-error-line){background:#0080ff08}.marimo-cell .cm-editor .cm-activeLine:not(.cm-error-line){background:0 0;border-radius:2px}.marimo-cell .cm-editor .cm-activeLineGutter{background:0 0}.marimo-cell .cm-editor .cm-content{font-family:var(--monospace-font);font-size:var(--marimo-code-editor-font-size,.9rem)}.dark .marimo-cell .cm-editor.cm-focused .cm-activeLineGutter{background:#0e1e25}.dark .marimo-cell .cm-editor.cm-focused .cm-activeLine{background:#00050a33}.output-area{clear:both;max-width:inherit;width:100%;padding:1rem;display:flow-root;overflow:auto}.marimo-cell.stale .console-output-area.marimo-output-stale,.marimo-cell.stale .output-area.marimo-output-stale,.marimo-output-stale{filter:grayscale(50%);opacity:.8;transition:all .3s .2s}.marimo-cell.stale .console-output-area.marimo-output-stale.marimo-output-loading,.marimo-cell.stale .output-area.marimo-output-stale.marimo-output-loading,.marimo-output-stale.marimo-output-loading{filter:grayscale(50%);opacity:.4;transition:all .3s .2s}.console-output-area{background-color:var(--gray-1)}.light .cm-selectionBackground{background-color:#d7d4f0!important}.dark .cm-selectionBackground{background-color:#1177cc80!important}.cm-focused.cm-focused{outline:none}.cm .cm-gutters{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.cm .cm-gutters{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.cm .cm-gutters{color:var(--gray-10);font-size:.75rem}.dark .cm .cm-gutters{background-color:#0000}.marimo-cell .cm-scroller{overflow:visible}#root .cm-tooltip{border-color:var(--border);z-index:1000;border-radius:4px}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip{border-color:color-mix(in srgb,var(--border),transparent 0%)}}#root .cm-tooltip{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip{background-color:color-mix(in srgb,var(--popover),transparent 0%)}}#root .cm-tooltip{--tw-shadow:2px 2px 2px 0px var(--tw-shadow-color,var(--base-shadow)),0px 0px 2px 0px var(--tw-shadow-color,hsl(0 0% 25%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-shadow-color:var(--base-shadow)}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip{--tw-shadow-color:color-mix(in oklab,var(--base-shadow)var(--tw-shadow-alpha),transparent)}}#root .cm-tooltip.cm-completionInfo,#root .cm-tooltip.cm-tooltip-hover,#root .cm-tooltip.mo-cm-tooltip{scrollbar-width:thin;border-radius:4px;max-width:40vw;max-height:45vh;overflow:auto}#root .cm-tooltip.cm-tooltip-hover{z-index:1000}.cm .cm-panels{background-color:var(--cm-background);color:var(--sky-11);font-size:var(--text-xs,.75rem);font-weight:700;line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));margin-right:30px}.cm .cm-panels.cm-panels-bottom{border-top:1px solid var(--border)}.cm-tooltip-lint{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857))}.cm-tooltip-lint code{border-color:var(--border);border-radius:calc(var(--radius) - 2px);border-style:var(--tw-border-style);border-width:1px}@supports (color:color-mix(in lab,red,red)){.cm-tooltip-lint code{border-color:color-mix(in srgb,var(--border),transparent 0%)}}.cm-tooltip-lint code{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.cm-tooltip-lint code{background-color:color-mix(in srgb,var(--muted),transparent 0%)}}.cm-tooltip-lint code{padding-inline:calc(var(--spacing,.25rem)*1)}.cm-tooltip-lint .cm-diagnosticText>div{display:inline-flex}.cm-ghostText,.cm-ghostText *{cursor:pointer;filter:grayscale(20%);opacity:.6}.cm-ghostText:hover{background:var(--gray-3)}.cm-codeium-cycle{background-color:var(--sky-3);border-radius:2px}.cm-codeium-cycle,.cm-codeium-cycle-key{padding:2px;font-size:9px;display:inline-block}.cm-codeium-cycle-key{background-color:var(--sky-7);border:none;border-radius:2px;margin-left:5px;font-family:monospace}.cm-codeium-cycle-key:hover{background-color:var(--sky-9)}.cm-codeium-cycle-explanation{padding:2px;font-family:monospace;display:inline-block}@font-face{font-display:block;font-family:Lora;font-style:normal;font-weight:400;src:url(./Lora-VariableFont_wght-B2ootaw-.ttf)format("truetype")}@font-face{font-display:block;font-family:PT Sans;font-style:normal;font-weight:400;src:url(./PTSans-Regular-CxL0S8W7.ttf)format("truetype")}@font-face{font-display:block;font-family:PT Sans;font-style:normal;font-weight:700;src:url(./PTSans-Bold-D9fedIX3.ttf)format("truetype")}@font-face{font-display:block;font-family:Fira Mono;font-style:normal;font-weight:400;src:url(./FiraMono-Regular-BTCkDNvf.ttf)format("truetype")}@font-face{font-display:block;font-family:Fira Mono;font-style:normal;font-weight:500;src:url(./FiraMono-Medium-DU3aDxX5.ttf)format("truetype")}@font-face{font-display:block;font-family:Fira Mono;font-style:normal;font-weight:700;src:url(./FiraMono-Bold-CLVRCuM9.ttf)format("truetype")}@keyframes running-app-animation{0%{visibility:visible;transform:rotate(0)}50%{visibility:visible;transform:rotate(.5turn)}to{visibility:visible;transform:rotate(1turn)}}.running-app-icon{visibility:hidden;width:45px;animation:2s cubic-bezier(.61,-.01,.47,.99) 1s infinite running-app-animation}body.printing .no-print{display:none!important}body.printing #App{height:fit-content!important}.printing-output{background-color:var(--background);max-height:none!important}@supports (color:color-mix(in lab,red,red)){.printing-output{background-color:color-mix(in srgb,var(--background),transparent 0%)}}@media print{*{-webkit-print-color-adjust:exact;print-color-adjust:exact}#App{height:fit-content!important;overflow:hidden visible!important}h1,h2,h3,h4{break-after:avoid-page}article{orphans:2;widows:2}.container{width:100%;max-width:none}*{box-shadow:none!important;text-shadow:none!important}div:has(>marimo-ui-element){page-break-inside:avoid}body{color:#000;background-color:#fff}[data-panel-group],[data-panel]{height:fit-content!important;overflow:visible!important}.tray,.tray:after,.tray:before{display:none!important}.console-output-area,.output-area{width:100%!important;max-height:none!important;padding-left:0!important;padding-right:0!important}}#root .cm-tooltip-autocomplete{border-color:var(--border);border-style:var(--tw-border-style);border-width:1px;max-width:250px}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip-autocomplete{border-color:color-mix(in srgb,var(--border),transparent 0%)}}#root .cm-tooltip-autocomplete{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip-autocomplete{background-color:color-mix(in srgb,var(--popover),transparent 0%)}}#root .cm-tooltip-autocomplete{--tw-shadow:4px 4px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 60%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#root .cm-tooltip-autocomplete>ul{max-height:300px;min-width:unset;scrollbar-width:thin;overflow-y:auto}#root .cm-tooltip-autocomplete>ul>li{cursor:pointer;align-items:center;gap:calc(var(--spacing,.25rem)*2);min-width:60px;height:18px;padding:0 6px 0 0;display:flex}#root .cm-completionLabel{font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));padding-top:1px;padding-bottom:1px;padding-right:12px}#root .cm-completionDetail{text-align:right;flex-grow:1}#root .cm-tooltip-autocomplete>ul>completion-section{border-block-style:var(--tw-border-style);border-block-width:1px;border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip-autocomplete>ul>completion-section{border-color:color-mix(in srgb,var(--border),transparent 0%)}}#root .cm-tooltip-autocomplete>ul>completion-section{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip-autocomplete>ul>completion-section{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)10%,transparent)}}#root .cm-tooltip-autocomplete>ul>completion-section{font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333))}#root .cm-tooltip-autocomplete>ul>li:hover{background-color:var(--blue-3)}#root .cm-tooltip-autocomplete>ul>li[aria-selected]{background-color:var(--blue-4);color:var(--blue-12)}#root .cm-completionIcon{background-color:var(--gray-3);color:var(--gray-11);opacity:.9;--tw-font-weight:var(--font-weight-medium,500);width:1rem;height:100%;font-weight:700;font-weight:var(--font-weight-medium,500);flex-shrink:0;justify-content:center;align-items:center;padding:0 1px;line-height:18px;display:flex}#root .cm-completionIcon:after{content:"•"}#root .cm-completionIcon-variable{background-color:var(--blue-3);color:var(--blue-11)}#root .cm-completionIcon-variable:after{content:"𝑣"}#root .cm-completionIcon-property{background-color:var(--lime-3);color:var(--lime-11)}#root .cm-completionIcon-property:after{content:"≡"}#root .cm-completionIcon-method{background-color:var(--amber-3);color:var(--amber-11)}#root .cm-completionIcon-method:after{content:"⚙"}#root .cm-completionIcon-function{background-color:var(--purple-3);color:var(--purple-11)}#root .cm-completionIcon-function:after{content:"ƒ"}#root .cm-completionIcon-class{background-color:var(--orange-3);color:var(--orange-11)}#root .cm-completionIcon-class:after{content:"C"}#root .cm-completionIcon-module{background-color:var(--grass-3);color:var(--grass-11)}#root .cm-completionIcon-module:after{content:"⧉"}#root .cm-completionIcon-statement{background-color:var(--red-3);color:var(--red-11)}#root .cm-completionIcon-statement:after{content:"§"}#root .cm-completionIcon-keyword{background-color:var(--cyan-3);color:var(--cyan-11)}#root .cm-completionIcon-keyword:after{content:"⌘"}#root .cm-completionIcon-reference{background-color:var(--gray-3);color:var(--gray-11)}#root .cm-completionIcon-reference:after{content:"→"}#root .cm-completionIcon-file{background-color:var(--crimson-3);color:var(--crimson-11)}#root .cm-completionIcon-file:after{content:"𝌆"}#root .cm-completionIcon-table{background-color:var(--gray-3);color:var(--gray-11)}#root .cm-completionIcon-table:after{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNjY2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgY2xhc3M9Imx1Y2lkZSBsdWNpZGUtZGF0YWJhc2UtaWNvbiBsdWNpZGUtZGF0YWJhc2UiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGVsbGlwc2UgY3g9IjEyIiBjeT0iNSIgcng9IjkiIHJ5PSIzIi8+PHBhdGggZD0iTTMgNXYxNGE5IDMgMCAwIDAgMTggMFY1Ii8+PHBhdGggZD0iTTMgMTJhOSAzIDAgMCAwIDE4IDAiLz48L3N2Zz4=)}#root .cm-completionIcon-dataframe{background-color:var(--gray-3);color:var(--gray-11)}#root .cm-completionIcon-dataframe:after{content:"𝌆"}#root .cm-completionIcon-error{background-color:var(--red-3);color:var(--red-11)}#root .cm-completionIcon-error:after{content:"𝑒"}#root .cm-completionIcon-datasource{background-color:var(--purple-3);color:var(--purple-11)}#root .cm-completionIcon-datasource:after{content:"⚙"}#root .cm-completionInfo{border-color:var(--border);border-left-style:var(--tw-border-style);max-width:var(--container-md,28rem);border-left-width:1px}@supports (color:color-mix(in lab,red,red)){#root .cm-completionInfo{border-color:color-mix(in srgb,var(--border),transparent 0%)}}#root .cm-completionDetail{color:var(--muted-foreground);font-size:var(--text-xs,.75rem);font-style:normal;line-height:var(--tw-leading,var(--text-xs--line-height,1.33333))}@supports (color:color-mix(in lab,red,red)){#root .cm-completionDetail{color:color-mix(in srgb,var(--muted-foreground),transparent 0%)}}#root .cm-completionMatchedText{--tw-font-weight:var(--font-weight-medium,500);color:var(--accent-foreground);font-weight:var(--font-weight-medium,500)}@supports (color:color-mix(in lab,red,red)){#root .cm-completionMatchedText{color:color-mix(in srgb,var(--accent-foreground),transparent 0%)}}#root .cm-completionMatchedText{text-underline-offset:2px;text-decoration-line:underline}#root .cm-tooltip-autocomplete>ul::-webkit-scrollbar{width:6px}#root .cm-tooltip-autocomplete>ul::-webkit-scrollbar-track{background-color:#0000}#root .cm-tooltip-autocomplete>ul::-webkit-scrollbar-thumb{background-color:var(--muted-foreground);border-radius:3.40282e38px}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip-autocomplete>ul::-webkit-scrollbar-thumb{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)30%,transparent)}}#root .cm-tooltip-autocomplete>ul::-webkit-scrollbar-thumb:hover{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){#root .cm-tooltip-autocomplete>ul::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,color-mix(in srgb,var(--muted-foreground),transparent 0%)50%,transparent)}}#root .cm-tooltip-autocomplete>ul>li.cm-ai-completion{border-color:var(--color-green-500,oklch(72.3% .219 149.579));border-left-style:var(--tw-border-style);border-left-width:2px}#root .cm-tooltip.cm-completionInfo{max-width:36rem!important;top:-1px!important}#root .cm-completionInfo.cm-completionInfo-right-narrow{left:100%}#root .cm-tooltip.cm-completionInfo-right,#root .cm-tooltip:has(.cm-completionInfo-left){border-top-left-radius:0}#root .cm-tooltip.cm-completionInfo-left,#root .cm-tooltip:has(.cm-completionInfo-right){border-top-right-radius:0}.cm-signature-help{border-color:var(--border);border-radius:calc(var(--radius) - 2px);border-style:var(--tw-border-style);scrollbar-width:thin;border-width:1px;max-height:330px;line-height:normal;overflow-y:auto;max-width:550px!important;margin-right:16px!important;padding:.5rem!important}@supports (color:color-mix(in lab,red,red)){.cm-signature-help{border-color:color-mix(in srgb,var(--border),transparent 0%)}}.cm-signature-help{background-color:var(--popover)}@supports (color:color-mix(in lab,red,red)){.cm-signature-help{background-color:color-mix(in srgb,var(--popover),transparent 0%)}}.cm-signature-help{font-family:var(--text-font),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));padding-block:calc(var(--spacing,.25rem)*1);padding-inline:calc(var(--spacing,.25rem)*2);--tw-shadow:4px 4px 4px 0px var(--tw-shadow-color,var(--base-shadow)),0 0px 4px 0px var(--tw-shadow-color,hsl(0 0% 60%/var(--base-shadow-opacity)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.cm-signature-help p{white-space:pre-wrap;padding:.4rem 0}.cm-signature-help li,.cm-signature-help ol,.cm-signature-help ul{white-space:normal}.cm-signature-help ol{padding-left:1.5rem;list-style-type:decimal}.cm-signature-help ul{padding-left:1.5rem;list-style-type:disc}.cm-signature-help h1,.cm-signature-help h2{border-bottom-style:var(--tw-border-style);color:var(--primary);font-size:var(--text-base,1rem);font-weight:600;line-height:var(--tw-leading,var(--text-base--line-height,1.5));margin-bottom:calc(var(--spacing,.25rem)*1);padding-bottom:calc(var(--spacing,.25rem)*1);border-bottom-width:1px}@supports (color:color-mix(in lab,red,red)){.cm-signature-help h1,.cm-signature-help h2{color:color-mix(in srgb,var(--primary),transparent 0%)}}.cm-signature-help h3,.cm-signature-help h4{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));margin-bottom:calc(var(--spacing,.25rem)*1);margin-top:calc(var(--spacing,.25rem)*2);--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.cm-signature-help dt{--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}.cm-signature-help dt span{--tw-font-weight:var(--font-weight-normal,400);font-weight:var(--font-weight-normal,400)}.cm-signature-help code{background-color:var(--slate-2);border-style:var(--tw-border-style);font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));padding-inline:calc(var(--spacing,.25rem)*1);border-width:1px;border-radius:.25rem}.cm-signature-help code:empty{display:none}.cm-signature-help pre>code{margin-bottom:calc(var(--spacing,.25rem)*1);padding:calc(var(--spacing,.25rem)*2);width:100%;display:inline-block}.cm-signature-help table{border-style:var(--tw-border-style);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857));margin-block:calc(var(--spacing,.25rem)*2);border-width:1px;border-radius:.25rem}.cm-signature-help table td,.cm-signature-help table th{border-style:var(--tw-border-style);padding:calc(var(--spacing,.25rem)*2);border-width:1px}.cm-signature-help table th{background-color:var(--slate-2)}.cm-signature-help table tr:nth-child(2n){background-color:var(--slate-1)}.cm-signature-help blockquote{margin-left:calc(var(--spacing,.25rem)*2);padding-left:calc(var(--spacing,.25rem)*2);white-space:pre-wrap}.cm-signature-help blockquote p{font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-xs,.75rem);font-weight:400;line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));white-space:normal;padding:0}.cm-signature-help .cm-signature{background-color:var(--muted);border-radius:calc(var(--radius) - 4px)}@supports (color:color-mix(in lab,red,red)){.cm-signature-help .cm-signature{background-color:color-mix(in srgb,var(--muted),transparent 0%)}}.cm-signature-help .cm-signature{font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));padding:calc(var(--spacing,.25rem)*2)}.cm-signature-help .cm-signature-active-param{--tw-font-weight:var(--font-weight-bold,700);color:var(--primary);font-weight:var(--font-weight-bold,700)}@supports (color:color-mix(in lab,red,red)){.cm-signature-help .cm-signature-active-param{color:color-mix(in srgb,var(--primary),transparent 0%)}}.cm-signature-help .section{line-height:normal}.cm-signature-help .docutils dd,.cm-signature-help .docutils p,.cm-signature-help .paragraph{white-space:normal}.cm-signature-help .docutils dd{white-space:pre-wrap;padding-left:1rem}.cm-signature-help .docutils.literal{background-color:var(--slate-2);border-radius:calc(var(--radius) - 2px);border-style:var(--tw-border-style);font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));padding-inline:calc(var(--spacing,.25rem)*1);border-width:1px}.cm-signature-help .doctest-block,.cm-signature-help .literal-block{border-radius:.25rem}.cm-signature-help .codehilite code,.cm-signature-help .doctest-block,.cm-signature-help .literal-block{background-color:var(--slate-2);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));padding:calc(var(--spacing,.25rem)*2);white-space:pre-wrap}.cm-signature-help .codehilite code{border-radius:calc(var(--radius) - 2px);border-style:var(--tw-border-style);border-width:1px;width:100%;display:inline-block}.cm-signature-help .codehilite code,.cm-signature-help blockquote .docutils dt,.cm-signature-help blockquote dl.docutils{font-family:var(--monospace-font),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.cm-signature-help blockquote .docutils dt,.cm-signature-help blockquote dl.docutils{font-size:var(--text-xs,.75rem);font-weight:400;line-height:var(--tw-leading,var(--text-xs--line-height,1.33333));white-space:normal;padding:0}.cm-signature-docs{color:#000!important}.dark .cm-signature-docs{color:#fff!important}html{font-size:90%}@media screen and (height>=1000px){html{font-size:100%}}:root{--content-width:740px;--content-width-medium:1110px}#App{z-index:1;flex:1;margin:auto;position:relative}.disconnected-gradient{z-index:-2;background-image:url(./gradient-yHQUC_QB.png);background-repeat:no-repeat;background-size:cover}.disconnected-gradient,.noise{width:100vw;height:100vh;position:fixed;top:0;left:0}.noise{opacity:.5;z-index:-1;background-image:url(./noise-60BoTA8O.png);background-repeat:repeat}.light #App.disconnected,.light #App.disconnected .transparent-when-disconnected{background:0 0}.inactive-button,.inactive-button svg,.inactive-button:hover{color:var(--gray-7);cursor:default}.auto-collapse-nav[data-orientation=vertical]{container-type:inline-size}@container (width<=200px){.auto-collapse-nav .paragraph{visibility:hidden;font-size:0;line-height:0!important}.auto-collapse-nav .paragraph iconify-icon{font-size:var(--text-xl,1.25rem);line-height:var(--tw-leading,var(--text-xl--line-height,1.4));visibility:visible;margin:0;line-height:1;margin-inline:0!important}.auto-collapse-nav li>*{justify-content:center;align-items:center;width:100%}.auto-collapse-nav :is(h1,h2,h3,h4,h5,h6),.auto-collapse-nav li:not(:has(iconify-icon)){display:none}}marimo-ui-element{display:contents;&>*{display:contents}}.vega-embed{flex:1;width:100%;display:inline-block}@media (width>=500px){.vega-embed{min-width:300px}}@container style(--slot:true){.vega-embed{min-width:unset}}.vega-embed>.chart-wrapper{overflow-x:auto}.vega-embed canvas{border-radius:calc(var(--radius) - 2px)}.vega-embed .vega-actions.vega-actions,.vega-embed .vega-actions.vega-actions:after{right:3px}.vega-embed .vega-actions.vega-actions:before{right:2px}.vega-embed.has-actions{padding-right:38px}.vega-embed details:not([open])>:not(summary){display:none!important}.vega-embed summary{color:#1b1e23;cursor:pointer;opacity:.2;z-index:1000;background:#fff;border:1px solid #aaa;border-radius:999px;padding:6px;line-height:0;list-style:none;transition:opacity .4s ease-in;position:absolute;top:0;right:0;box-shadow:1px 1px 3px #0000001a}.vega-embed summary::-webkit-details-marker{display:none}.vega-embed summary:active{box-shadow:inset 0 0 0 1px #aaa}.vega-embed summary svg{width:14px;height:14px}.vega-embed details[open] summary{opacity:.7}.vega-embed:focus-within summary,.vega-embed:hover summary{transition:opacity .2s;opacity:1!important}.vega-embed .vega-actions{text-align:left;z-index:1001;background:#fff;border:1px solid #d9d9d9;border-radius:4px;flex-direction:column;padding-top:8px;padding-bottom:8px;animation-name:scale-in;animation-duration:.15s;animation-timing-function:cubic-bezier(.2,0,.13,1.5);display:flex;position:absolute;top:35px;box-shadow:0 2px 8px #0003}.vega-embed .vega-actions a{color:#434a56;white-space:nowrap;padding:8px 16px;font-family:sans-serif;font-size:14px;font-weight:600;text-decoration:none}.vega-embed .vega-actions a:focus,.vega-embed .vega-actions a:hover{color:#000;background-color:#f7f7f9}.vega-embed .vega-actions:after,.vega-embed .vega-actions:before{content:"";display:inline-block;position:absolute}.vega-embed .vega-actions:before{border:0 solid #000;border-bottom-color:#d9d9d9;top:-16px;left:auto}.vega-embed .vega-actions:after{border:0 solid #000;border-bottom-color:#fff;top:-14px;left:auto}.vega-embed .chart-wrapper.fit-x{width:100%}.vega-embed .chart-wrapper.fit-y{height:100%}.vega-embed-wrapper{max-width:100%;padding-right:14px;overflow:auto}@keyframes scale-in{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}.js-plotly-plot .plotly,.js-plotly-plot .plotly div{font-family:var(--text-font);direction:ltr;margin:0;padding:0}.js-plotly-plot .plotly button,.js-plotly-plot .plotly input{font-family:var(--text-font)}.js-plotly-plot .plotly button:focus,.js-plotly-plot .plotly input:focus{outline:none}.js-plotly-plot .plotly a,.js-plotly-plot .plotly a:hover{text-decoration:none}.js-plotly-plot .plotly .crisp{shape-rendering:crispEdges}.js-plotly-plot .plotly .user-select-none{user-select:none;-o-user-select:none}.js-plotly-plot .plotly svg{overflow:hidden}.js-plotly-plot .plotly svg a{fill:#447adb}.js-plotly-plot .plotly svg a:hover{fill:#3c6dc5}.js-plotly-plot .plotly .main-svg{pointer-events:none;position:absolute;top:0;left:0}.js-plotly-plot .plotly .main-svg .draglayer{pointer-events:all}.js-plotly-plot .plotly .cursor-default{cursor:default}.js-plotly-plot .plotly .cursor-pointer{cursor:pointer}.js-plotly-plot .plotly .cursor-crosshair{cursor:crosshair}.js-plotly-plot .plotly .cursor-move{cursor:move}.js-plotly-plot .plotly .cursor-col-resize{cursor:col-resize}.js-plotly-plot .plotly .cursor-row-resize{cursor:row-resize}.js-plotly-plot .plotly .cursor-ns-resize{cursor:ns-resize}.js-plotly-plot .plotly .cursor-ew-resize{cursor:ew-resize}.js-plotly-plot .plotly .cursor-sw-resize{cursor:sw-resize}.js-plotly-plot .plotly .cursor-s-resize{cursor:s-resize}.js-plotly-plot .plotly .cursor-se-resize{cursor:se-resize}.js-plotly-plot .plotly .cursor-w-resize{cursor:w-resize}.js-plotly-plot .plotly .cursor-e-resize{cursor:e-resize}.js-plotly-plot .plotly .cursor-nw-resize{cursor:nw-resize}.js-plotly-plot .plotly .cursor-n-resize{cursor:n-resize}.js-plotly-plot .plotly .cursor-ne-resize{cursor:ne-resize}.js-plotly-plot .plotly .cursor-grab{cursor:grab}.js-plotly-plot .plotly .modebar{position:absolute;top:2px;right:2px}.js-plotly-plot .plotly .ease-bg{-o-transition:background-color .3s ease 0s;transition:background-color .3s}.js-plotly-plot .plotly .modebar--hover>:not(.watermark){opacity:0;-o-transition:opacity .3s ease 0s;transition:opacity .3s}.js-plotly-plot .plotly:hover .modebar--hover .modebar-group{opacity:1}.js-plotly-plot .plotly .modebar-group{box-sizing:border-box;float:left;vertical-align:middle;white-space:nowrap;padding-left:8px;display:inline-block;position:relative}.js-plotly-plot .plotly .modebar-btn{box-sizing:border-box;cursor:pointer;height:22px;padding:3px 4px;font-size:16px;line-height:normal;display:inline-block;position:relative}.js-plotly-plot .plotly .modebar-btn svg{position:relative;top:2px}.js-plotly-plot .plotly .modebar-btn .icon path{fill:#4444444d}.js-plotly-plot .plotly .modebar-btn.active .icon path,.js-plotly-plot .plotly .modebar-btn:hover .icon path{fill:#444444b3}.js-plotly-plot .plotly .modebar.vertical{flex-flow:column wrap;align-content:flex-end;max-height:100%;display:flex}.js-plotly-plot .plotly .modebar.vertical svg{top:-1px}.js-plotly-plot .plotly .modebar.vertical .modebar-group{float:none;padding-bottom:8px;padding-left:0;display:block}.js-plotly-plot .plotly .modebar.vertical .modebar-group .modebar-btn{text-align:center;display:block}.js-plotly-plot .plotly [data-title]:after,.js-plotly-plot .plotly [data-title]:before{opacity:0;pointer-events:none;z-index:1001;display:none;position:absolute;top:110%;right:50%;transform:translateZ(0)}.js-plotly-plot .plotly [data-title]:hover:after,.js-plotly-plot .plotly [data-title]:hover:before{opacity:1;display:block}.js-plotly-plot .plotly [data-title]:before{content:"";z-index:1002;background:0 0;border:6px solid #0000;border-bottom-color:#69738a;margin-top:-12px;margin-right:-6px;position:absolute}.js-plotly-plot .plotly [data-title]:after{color:#fff;content:attr(data-title);white-space:nowrap;background:#69738a;border-radius:2px;margin-right:-18px;padding:8px 10px;font-size:12px;line-height:12px}.js-plotly-plot .plotly .vertical [data-title]:after,.js-plotly-plot .plotly .vertical [data-title]:before{top:0;right:200%}.js-plotly-plot .plotly .vertical [data-title]:before{border:6px solid #0000;border-left-color:#69738a;margin-top:8px;margin-right:-30px}.plotly-notifier{font-family:var(--text-font);z-index:10000;max-width:180px;font-size:10pt;position:fixed;top:50px;right:20px}.plotly-notifier p{margin:0}.plotly-notifier .notifier-note{color:#fff;overflow-wrap:break-word;z-index:3000;word-wrap:break-word;hyphens:auto;background-color:#8c97afe6;border:1px solid #fff;min-width:180px;max-width:250px;margin:0;padding:10px}.plotly-notifier .notifier-close{color:#fff;float:right;opacity:.8;background:0 0;border:none;padding:0 5px;font-size:20px;font-weight:700;line-height:20px}.plotly-notifier .notifier-close:hover{color:#444;cursor:pointer;text-decoration:none}.js-plotly-plot .plotly .mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' viewBox='0 0 21 21'%3E%3Cpath d='M10.5 1.24c-5.11 0-9.25 4.15-9.25 9.25s4.15 9.25 9.25 9.25 9.25-4.15 9.25-9.25c0-5.11-4.14-9.25-9.25-9.25m4.39 11.53c-1.93 1.93-4.78 2.31-6.7 2.31-.7 0-1.41-.05-2.1-.16 0 0-1.02-5.64 2.14-8.81a4.4 4.4 0 0 1 3.13-1.28c1.27 0 2.49.51 3.39 1.42 1.84 1.84 1.89 4.75.14 6.52' class='st0' style='opacity:.9;fill:%23fff' transform='translate(0 .01)'/%3E%3Cpath d='M10.5-.01C4.7-.01 0 4.7 0 10.49s4.7 10.5 10.5 10.5S21 16.29 21 10.49C20.99 4.7 16.3-.01 10.5-.01m0 19.75c-5.11 0-9.25-4.15-9.25-9.25s4.14-9.26 9.25-9.26 9.25 4.15 9.25 9.25c0 5.13-4.14 9.26-9.25 9.26' class='st1' style='opacity:.35' transform='translate(0 .01)'/%3E%3Cpath d='M14.74 6.25c-1.84-1.84-4.76-1.9-6.51-.15-3.16 3.17-2.14 8.81-2.14 8.81s5.64 1.02 8.81-2.14c1.74-1.77 1.69-4.68-.16-6.52m-2.27 4.09-.91 1.87-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87 1.86.9z' class='st1' style='opacity:.35' transform='translate(0 .01)'/%3E%3Cpath d='m11.56 12.21-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87 1.86.9-1.86.91z' class='st0' style='opacity:.9;fill:%23fff' transform='translate(0 .01)'/%3E%3C/svg%3E");width:21px;height:21px;display:block}.js-plotly-plot .plotly .mapboxgl-attrib-empty{display:none}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib .mapbox-improve-map{margin-left:2px;font-weight:700}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib,.js-plotly-plot .plotly .mapboxgl-ctrl-attrib a{color:#000000bf;font-size:12px;text-decoration:none}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:3px 12px 12px 3px;min-height:20px;margin:10px;padding:0;position:relative}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact:after{box-sizing:border-box;content:"";cursor:pointer;background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23333' fill-rule='evenodd' d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border-radius:12px;width:24px;height:24px;position:absolute}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact:hover{visibility:visible;margin-top:6px;padding:2px 24px 2px 4px}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner{margin-top:2px;display:block}.js-plotly-plot .plotly .mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.js-plotly-plot .plotly .mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-right{pointer-events:none;z-index:2;position:absolute;bottom:0;right:0}.js-plotly-plot .plotly .mapboxgl-ctrl-bottom-left{pointer-events:none;z-index:2;position:absolute;bottom:0;left:0}.js-plotly-plot .plotly .mapboxgl-canary{background-color:salmon}.js-plotly-plot .plotly .mapboxgl-missing-css{display:none}.js-plotly-plot .plotly .mapboxgl-map{position:relative;overflow:hidden} diff --git a/docs/assets/info-NVLQJR56-WB4oufpk.js b/docs/assets/info-NVLQJR56-WB4oufpk.js new file mode 100644 index 0000000..b3500ac --- /dev/null +++ b/docs/assets/info-NVLQJR56-WB4oufpk.js @@ -0,0 +1 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import{n as r}from"./chunk-LBM3YZW2-CQVIMcAR.js";export{r as createInfoServices}; diff --git a/docs/assets/infoDiagram-WHAUD3N6-cXMgF6PV.js b/docs/assets/infoDiagram-WHAUD3N6-cXMgF6PV.js new file mode 100644 index 0000000..00fb9cd --- /dev/null +++ b/docs/assets/infoDiagram-WHAUD3N6-cXMgF6PV.js @@ -0,0 +1,2 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import"./purify.es-N-2faAGj.js";import"./src-Bp_72rVO.js";import{t as m}from"./chunk-XAJISQIX-DnhQWiv2.js";import{n as o,r as e}from"./src-faGJHwXX.js";import{c as p}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as s}from"./chunk-EXTU4WIE-GbJyzeBy.js";import"./chunk-O7ZBX7Z2-CYcfcXcp.js";import"./chunk-S6J4BHB3-D3MBXPxT.js";import"./chunk-LBM3YZW2-CQVIMcAR.js";import"./chunk-76Q3JFCE-COngPFoW.js";import"./chunk-T53DSG4Q-B6Z3zF7Z.js";import"./chunk-LHMN2FUI-DW2iokr2.js";import"./chunk-FWNWRKHM-XgKeqUvn.js";import{t as n}from"./mermaid-parser.core-wRO0EX_C.js";var d={parse:o(async r=>{let t=await n("info",r);e.debug(t)},"parse")},f={version:m.version+""},g={parser:d,db:{getVersion:o(()=>f.version,"getVersion")},renderer:{draw:o((r,t,a)=>{e.debug(`rendering info diagram +`+r);let i=s(t);p(i,100,400,!0),i.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${a}`)},"draw")}};export{g as diagram}; diff --git a/docs/assets/ini-BoLUGVlu.js b/docs/assets/ini-BoLUGVlu.js new file mode 100644 index 0000000..c837cda --- /dev/null +++ b/docs/assets/ini-BoLUGVlu.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse(`{"displayName":"INI","name":"ini","patterns":[{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ini"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.ini"}},"end":"\\\\n","name":"comment.line.number-sign.ini"}]},{"begin":"(^[\\\\t ]+)?(?=;)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ini"}},"end":"(?!\\\\G)","patterns":[{"begin":";","beginCaptures":{"0":{"name":"punctuation.definition.comment.ini"}},"end":"\\\\n","name":"comment.line.semicolon.ini"}]},{"captures":{"1":{"name":"keyword.other.definition.ini"},"2":{"name":"punctuation.separator.key-value.ini"}},"match":"\\\\b([-.0-9A-Z_a-z]+)\\\\b\\\\s*(=)"},{"captures":{"1":{"name":"punctuation.definition.entity.ini"},"3":{"name":"punctuation.definition.entity.ini"}},"match":"^(\\\\[)(.*?)(])","name":"entity.name.section.group-title.ini"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ini"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.ini"}},"name":"string.quoted.single.ini","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.ini"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ini"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.ini"}},"name":"string.quoted.double.ini"}],"scopeName":"source.ini","aliases":["properties"]}`))];export{n as default}; diff --git a/docs/assets/init-DsZRk2YA.js b/docs/assets/init-DsZRk2YA.js new file mode 100644 index 0000000..d0eed33 --- /dev/null +++ b/docs/assets/init-DsZRk2YA.js @@ -0,0 +1 @@ +function a(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function n(t,e){switch(arguments.length){case 0:break;case 1:typeof t=="function"?this.interpolator(t):this.range(t);break;default:this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}return this}export{a as n,n as t}; diff --git a/docs/assets/input-Bkl2Yfmh.js b/docs/assets/input-Bkl2Yfmh.js new file mode 100644 index 0000000..ec61edc --- /dev/null +++ b/docs/assets/input-Bkl2Yfmh.js @@ -0,0 +1 @@ +import{s as mt}from"./chunk-LvLJmgfZ.js";import{t as zr}from"./react-BGmjiNul.js";import{t as ft}from"./compiler-runtime-DeeZ7FnK.js";import{t as Kr}from"./jsx-runtime-DN_bIXfG.js";import{r as Gr}from"./button-B8cGZzP5.js";import{t as R}from"./cn-C1rgT0yh.js";import{t as qr}from"./createLucideIcon-CW2xpJ57.js";import{_ as Zr,g as Yr,h as Xr}from"./select-D9lTzMzP.js";import{S as Jr}from"./Combination-D1TsGrBC.js";import{A as re,C as Qr,D as pt,E as ei,F as ti,I as vt,L as B,N as O,O as V,P as H,R as _,a as ai,d as ri,f as ii,i as bt,j as ht,k as gt,m as ni,o as yt,p as Se,r as oi,t as li,w as si,y as ui,z as Et}from"./usePress-C2LPFxyv.js";import{t as di}from"./SSRProvider-DD7JA3RM.js";import{t as Fe}from"./context-BAYdLMF_.js";import{n as Me,t as Pt}from"./useNumberFormatter-D8ks3oPN.js";import{t as ci}from"./numbers-C9_R_vlY.js";import{t as wt}from"./useDebounce-em3gna-v.js";var Lt=qr("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);function mi(...e){return e.length===1&&e[0]?e[0]:a=>{let t=!1,r=e.map(i=>{let n=xt(i,a);return t||(t=typeof n=="function"),n});if(t)return()=>{r.forEach((i,n)=>{typeof i=="function"?i():xt(e[n],null)})}}}function xt(e,a){if(typeof e=="function")return e(a);e!=null&&(e.current=a)}var fi=new Set(["id"]),pi=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vi=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),bi=new Set(["dir","lang","hidden","inert","translate"]),Ct=new Set("onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")),hi=/^(data-.*)$/;function z(e,a={}){let{labelable:t,isLink:r,global:i,events:n=i,propNames:o}=a,s={};for(let u in e)Object.prototype.hasOwnProperty.call(e,u)&&(fi.has(u)||t&&pi.has(u)||r&&vi.has(u)||i&&bi.has(u)||n&&Ct.has(u)||u.endsWith("Capture")&&Ct.has(u.slice(0,-7))||o!=null&&o.has(u)||hi.test(u))&&(s[u]=e[u]);return s}function Dt(e,a){let{id:t,"aria-label":r,"aria-labelledby":i}=e;return t=B(t),i&&r?i=[...new Set([t,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&a&&(r=a),{id:t,"aria-label":r,"aria-labelledby":i}}var l=mt(zr(),1);function Nt(e){let a=(0,l.useRef)(null),t=(0,l.useRef)(void 0),r=(0,l.useCallback)(i=>{if(typeof e=="function"){let n=e,o=n(i);return()=>{typeof o=="function"?o():n(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return(0,l.useMemo)(()=>({get current(){return a.current},set current(i){a.current=i,t.current&&(t.current=(t.current(),void 0)),i!=null&&(t.current=r(i))}}),[r])}function St(e,a,t,r){let i=_(t),n=t==null;(0,l.useEffect)(()=>{if(n||!e.current)return;let o=e.current;return o.addEventListener(a,i,r),()=>{o.removeEventListener(a,i,r)}},[e,a,r,n,i])}function Te(e,a,t){let r=_(()=>{t&&t(a)});(0,l.useEffect)(()=>{var n;let i=(n=e==null?void 0:e.current)==null?void 0:n.form;return i==null||i.addEventListener("reset",r),()=>{i==null||i.removeEventListener("reset",r)}},[e,r])}function Ve(e,a,t){let[r,i]=(0,l.useState)(e||a),n=(0,l.useRef)(e!==void 0),o=e!==void 0;(0,l.useEffect)(()=>{n.current,n.current=o},[o]);let s=o?e:r,u=(0,l.useCallback)((d,...f)=>{let c=(m,...v)=>{t&&(Object.is(s,m)||t(m,...v)),o||(s=m)};typeof d=="function"?i((m,...v)=>{let b=d(o?s:m,...v);return c(b,...f),o?m:b}):(o||i(d),c(d,...f))},[o,s,t]);return[s,u]}function de(e,a=-1/0,t=1/0){return Math.min(Math.max(e,a),t)}function ce(e,a){let t=e,r=0,i=a.toString(),n=i.toLowerCase().indexOf("e-");if(n>0)r=Math.abs(Math.floor(Math.log10(Math.abs(a))))+n;else{let o=i.indexOf(".");o>=0&&(r=i.length-o)}if(r>0){let o=10**r;t=Math.round(t*o)/o}return t}function j(e,a,t,r){a=Number(a),t=Number(t);let i=(e-(isNaN(a)?0:a))%r,n=ce(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(a)?!isNaN(t)&&n>t&&(n=Math.floor(ce(t/r,r))*r):nt&&(n=a+Math.floor(ce((t-a)/r,r))*r),n=ce(n,r),n}var Ft=Symbol("default");function Mt({values:e,children:a}){for(let[t,r]of e)a=l.createElement(t.Provider,{value:r},a);return a}function Z(e){let{className:a,style:t,children:r,defaultClassName:i,defaultChildren:n,defaultStyle:o,values:s}=e;return(0,l.useMemo)(()=>{let u,d,f;return u=typeof a=="function"?a({...s,defaultClassName:i}):a,d=typeof t=="function"?t({...s,defaultStyle:o||{}}):t,f=typeof r=="function"?r({...s,defaultChildren:n}):r??n,{className:u??i,style:d||o?{...o,...d}:void 0,children:f??n,"data-rac":""}},[a,t,r,i,n,o,s])}function gi(e,a){return t=>a(typeof e=="function"?e(t):e,t)}function $e(e,a){let t=(0,l.useContext)(e);if(a===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let r=a||Ft;if(!t.slots[r]){let i=new Intl.ListFormat().format(Object.keys(t.slots).map(o=>`"${o}"`)),n=a?`Invalid slot "${a}".`:"A slot prop is required.";throw Error(`${n} Valid slot names are ${i}.`)}return t.slots[r]}return t}function K(e,a,t){let{ref:r,...i}=$e(t,e.slot)||{},n=Nt((0,l.useMemo)(()=>mi(a,r),[a,r])),o=V(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?o.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,d={...s.defaultStyle,...u},f=typeof e.style=="function"?e.style({...s,defaultStyle:d}):e.style;return{...d,...f}}:o.style={...i.style,...e.style}),[o,n]}function Tt(e=!0){let[a,t]=(0,l.useState)(e),r=(0,l.useRef)(!1),i=(0,l.useCallback)(n=>{r.current=!0,t(!!n)},[]);return Et(()=>{r.current||t(!1)},[]),[i,a]}function Vt(e){let a=/^(data-.*)$/,t={};for(let r in e)a.test(r)||(t[r]=e[r]);return t}var $t=7e3,k=null;function ke(e,a="assertive",t=$t){k?k.announce(e,a,t):(k=new Ei,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?k.announce(e,a,t):setTimeout(()=>{k!=null&&k.isAttached()&&(k==null||k.announce(e,a,t))},100))}function yi(e){k&&k.clear(e)}var Ei=class{isAttached(){var e;return(e=this.node)==null?void 0:e.isConnected}createLog(e){let a=document.createElement("div");return a.setAttribute("role","log"),a.setAttribute("aria-live",e),a.setAttribute("aria-relevant","additions"),a}destroy(){this.node&&(this.node=(document.body.removeChild(this.node),null))}announce(e,a="assertive",t=$t){var r,i;if(!this.node)return;let n=document.createElement("div");typeof e=="object"?(n.setAttribute("role","img"),n.setAttribute("aria-labelledby",e["aria-labelledby"])):n.textContent=e,a==="assertive"?(r=this.assertiveLog)==null||r.appendChild(n):(i=this.politeLog)==null||i.appendChild(n),e!==""&&setTimeout(()=>{n.remove()},t)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}},Pi=Symbol.for("react-aria.i18n.locale"),wi=Symbol.for("react-aria.i18n.strings"),Y=void 0,Ie=class Ir{getStringForLocale(a,t){let r=this.getStringsForLocale(t)[a];if(!r)throw Error(`Could not find intl message ${a} in ${t} locale`);return r}getStringsForLocale(a){let t=this.strings[a];return t||(t=Li(a,this.strings,this.defaultLocale),this.strings[a]=t),t}static getGlobalDictionaryForPackage(a){if(typeof window>"u")return null;let t=window[Pi];if(Y===void 0){let i=window[wi];if(!i)return null;for(let n in Y={},i)Y[n]=new Ir({[t]:i[n]},t)}let r=Y==null?void 0:Y[a];if(!r)throw Error(`Strings for package "${a}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(a,t="en-US"){this.strings=Object.fromEntries(Object.entries(a).filter(([,r])=>r)),this.defaultLocale=t}};function Li(e,a,t="en-US"){if(a[e])return a[e];let r=xi(e);if(a[r])return a[r];for(let i in a)if(i.startsWith(r+"-"))return a[i];return a[t]}function xi(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var kt=new Map,It=new Map,Rt=class{format(e,a){let t=this.strings.getStringForLocale(e,this.locale);return typeof t=="function"?t(a,this):t}plural(e,a,t="cardinal"){let r=a["="+e];if(r)return typeof r=="function"?r():r;let i=this.locale+":"+t,n=kt.get(i);return n||(n=new Intl.PluralRules(this.locale,{type:t}),kt.set(i,n)),r=a[n.select(e)]||a.other,typeof r=="function"?r():r}number(e){let a=It.get(this.locale);return a||(a=new Intl.NumberFormat(this.locale),It.set(this.locale,a)),a.format(e)}select(e,a){let t=e[a]||e.other;return typeof t=="function"?t():t}constructor(e,a){this.locale=e,this.strings=a}},jt=new WeakMap;function Ci(e){let a=jt.get(e);return a||(a=new Ie(e),jt.set(e,a)),a}function At(e,a){return a&&Ie.getGlobalDictionaryForPackage(a)||Ci(e)}function Re(e,a){let{locale:t}=Fe(),r=At(e,a);return(0,l.useMemo)(()=>new Rt(t,r),[t,r])}var Di=RegExp("^.*\\(.*\\).*$"),Ni=["latn","arab","hanidec","deva","beng","fullwide"],je=class{parse(e){return Ae(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,a,t){return Ae(this.locale,this.options,e).isValidPartialNumber(e,a,t)}getNumberingSystem(e){return Ae(this.locale,this.options,e).options.numberingSystem}constructor(e,a={}){this.locale=e,this.options=a}},Bt=new Map;function Ae(e,a,t){let r=Ot(e,a);if(!e.includes("-nu-")&&!r.isValidPartialNumber(t)){for(let i of Ni)if(i!==r.options.numberingSystem){let n=Ot(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,a);if(n.isValidPartialNumber(t))return n}}return r}function Ot(e,a){let t=e+(a?Object.entries(a).sort((i,n)=>i[0]-1&&(a=`-${a}`)}let t=a?+a:NaN;if(isNaN(t))return NaN;if(this.options.style==="percent"){let r={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new je(this.locale,r).parse(new Me(this.locale,r).format(t))}return this.options.currencySign==="accounting"&&Di.test(e)&&(t=-1*t),t}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(e=e.replace(",",this.symbols.decimal),e=e.replace("\u060C",this.symbols.decimal)),this.symbols.group&&(e=X(e,".",this.symbols.group))),this.symbols.group==="\u2019"&&e.includes("'")&&(e=X(e,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(e=X(e," ",this.symbols.group),e=X(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,a=-1/0,t=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&a<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&t>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(e=X(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),e.length===0)}constructor(e,a={}){this.locale=e,a.roundingIncrement!==1&&a.roundingIncrement!=null&&(a.maximumFractionDigits==null&&a.minimumFractionDigits==null?(a.maximumFractionDigits=0,a.minimumFractionDigits=0):a.maximumFractionDigits==null?a.maximumFractionDigits=a.minimumFractionDigits:a.minimumFractionDigits??(a.minimumFractionDigits=a.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,a),this.options=this.formatter.resolvedOptions(),this.symbols=Mi(e,this.formatter,this.options,a),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}},Ht=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Fi=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Mi(e,a,t,r){var C,w,N,x;let i=new Intl.NumberFormat(e,{...t,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),n=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=Fi.map(y=>i.formatToParts(y)),u=((C=n.find(y=>y.type==="minusSign"))==null?void 0:C.value)??"-",d=(w=o.find(y=>y.type==="plusSign"))==null?void 0:w.value;!d&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(d="+");let f=(N=new Intl.NumberFormat(e,{...t,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(y=>y.type==="decimal"))==null?void 0:N.value,c=(x=n.find(y=>y.type==="group"))==null?void 0:x.value,m=n.filter(y=>!Ht.has(y.type)).map(y=>_t(y.value)),v=s.flatMap(y=>y.filter(P=>!Ht.has(P.type)).map(P=>_t(P.value))),b=[...new Set([...m,...v])].sort((y,P)=>P.length-y.length),p=b.length===0?RegExp("[\\p{White_Space}]","gu"):RegExp(`${b.join("|")}|[\\p{White_Space}]`,"gu"),h=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),g=new Map(h.map((y,P)=>[y,P])),E=RegExp(`[${h.join("")}]`,"g");return{minusSign:u,plusSign:d,decimal:f,group:c,literals:p,numeral:E,index:y=>String(g.get(y))}}function X(e,a,t){return e.replaceAll?e.replaceAll(a,t):e.split(a).join(t)}function _t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var A=null,ie=new Set,ne=new Map,G=!1,Be=!1,Ti={Tab:!0,Escape:!0};function me(e,a){for(let t of ie)t(e,a)}function Vi(e){return!(e.metaKey||!Qr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fe(e){G=!0,Vi(e)&&(A="keyboard",me("keyboard",e))}function J(e){A="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(G=!0,me("pointer",e))}function Wt(e){ri(e)&&(G=!0,A="virtual")}function Ut(e){e.target===window||e.target===document||yt||!e.isTrusted||(!G&&!Be&&(A="virtual",me("virtual",e)),G=!1,Be=!1)}function zt(){yt||(G=!1,Be=!0)}function pe(e){if(typeof window>"u"||typeof document>"u"||ne.get(H(e)))return;let a=H(e),t=O(e),r=a.HTMLElement.prototype.focus;a.HTMLElement.prototype.focus=function(){G=!0,r.apply(this,arguments)},t.addEventListener("keydown",fe,!0),t.addEventListener("keyup",fe,!0),t.addEventListener("click",Wt,!0),a.addEventListener("focus",Ut,!0),a.addEventListener("blur",zt,!1),typeof PointerEvent<"u"&&(t.addEventListener("pointerdown",J,!0),t.addEventListener("pointermove",J,!0),t.addEventListener("pointerup",J,!0)),a.addEventListener("beforeunload",()=>{Kt(e)},{once:!0}),ne.set(a,{focus:r})}var Kt=(e,a)=>{let t=H(e),r=O(e);a&&r.removeEventListener("DOMContentLoaded",a),ne.has(t)&&(t.HTMLElement.prototype.focus=ne.get(t).focus,r.removeEventListener("keydown",fe,!0),r.removeEventListener("keyup",fe,!0),r.removeEventListener("click",Wt,!0),t.removeEventListener("focus",Ut,!0),t.removeEventListener("blur",zt,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",J,!0),r.removeEventListener("pointermove",J,!0),r.removeEventListener("pointerup",J,!0)),ne.delete(t))};function $i(e){let a=O(e),t;return a.readyState==="loading"?(t=()=>{pe(e)},a.addEventListener("DOMContentLoaded",t)):pe(e),()=>Kt(e,t)}typeof document<"u"&&$i();function Oe(){return A!=="pointer"}function Gt(){return A}function qt(e){A=e,me(e,null)}function ki(){pe();let[e,a]=(0,l.useState)(A);return(0,l.useEffect)(()=>{let t=()=>{a(A)};return ie.add(t),()=>{ie.delete(t)}},[]),di()?null:e}var Ii=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ri(e,a,t){let r=O(t==null?void 0:t.target),i=typeof window<"u"?H(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,n=typeof window<"u"?H(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?H(t==null?void 0:t.target).HTMLElement:HTMLElement,s=typeof window<"u"?H(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!Ii.has(r.activeElement.type)||r.activeElement instanceof n||r.activeElement instanceof o&&r.activeElement.isContentEditable,!(e&&a==="keyboard"&&t instanceof s&&!Ti[t.key])}function ji(e,a,t){pe(),(0,l.useEffect)(()=>{let r=(i,n)=>{Ri(!!(t!=null&&t.isTextInput),i,n)&&e(Oe())};return ie.add(r),()=>{ie.delete(r)}},a)}function Zt(e){let a=O(e),t=re(a);if(Gt()==="virtual"){let r=t;ni(()=>{re(a)===r&&e.isConnected&&pt(e)})}else pt(e)}function He(e){let{isDisabled:a,onFocus:t,onBlur:r,onFocusChange:i}=e,n=(0,l.useCallback)(u=>{if(u.target===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),o=bt(n),s=(0,l.useCallback)(u=>{let d=O(u.target),f=d?re(d):re();u.target===u.currentTarget&&f===ht(u.nativeEvent)&&(t&&t(u),i&&i(!0),o(u))},[i,t,o]);return{focusProps:{onFocus:!a&&(t||i||r)?s:void 0,onBlur:!a&&(r||i)?n:void 0}}}function Yt(e){if(!e)return;let a=!0;return t=>{e({...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){a=!0},continuePropagation(){a=!1},isPropagationStopped(){return a}}),a&&t.stopPropagation()}}function Xt(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Yt(e.onKeyDown),onKeyUp:Yt(e.onKeyUp)}}}var Jt=l.createContext(null);function Ai(e){let a=(0,l.useContext)(Jt)||{};ii(a,e);let{ref:t,...r}=a;return r}function Qt(e,a){let{focusProps:t}=He(e),{keyboardProps:r}=Xt(e),i=V(t,r),n=Ai(a),o=e.isDisabled?{}:n,s=(0,l.useRef)(e.autoFocus);(0,l.useEffect)(()=>{s.current&&a.current&&Zt(a.current),s.current=!1},[a]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:V({...i,tabIndex:u},o)}}function _e(e){let{isDisabled:a,onBlurWithin:t,onFocusWithin:r,onFocusWithinChange:i}=e,n=(0,l.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Se(),u=(0,l.useCallback)(c=>{c.currentTarget.contains(c.target)&&n.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(n.current.isFocusWithin=!1,s(),t&&t(c),i&&i(!1))},[t,i,n,s]),d=bt(u),f=(0,l.useCallback)(c=>{if(!c.currentTarget.contains(c.target))return;let m=O(c.target),v=re(m);if(!n.current.isFocusWithin&&v===ht(c.nativeEvent)){r&&r(c),i&&i(!0),n.current.isFocusWithin=!0,d(c);let b=c.currentTarget;o(m,"focus",p=>{if(n.current.isFocusWithin&&!gt(b,p.target)){let h=new m.defaultView.FocusEvent("blur",{relatedTarget:p.target});ai(h,b),u(oi(h))}},{capture:!0})}},[r,i,d,o,u]);return a?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}var We=!1,ve=0;function Bi(){We=!0,setTimeout(()=>{We=!1},50)}function ea(e){e.pointerType==="touch"&&Bi()}function Oi(){if(!(typeof document>"u"))return ve===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",ea),ve++,()=>{ve--,!(ve>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",ea)}}function be(e){let{onHoverStart:a,onHoverChange:t,onHoverEnd:r,isDisabled:i}=e,[n,o]=(0,l.useState)(!1),s=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(Oi,[]);let{addGlobalListener:u,removeAllGlobalListeners:d}=Se(),{hoverProps:f,triggerHoverEnd:c}=(0,l.useMemo)(()=>{let m=(p,h)=>{if(s.pointerType=h,i||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let g=p.currentTarget;s.target=g,u(O(p.target),"pointerover",E=>{s.isHovered&&s.target&&!gt(s.target,E.target)&&v(E,E.pointerType)},{capture:!0}),a&&a({type:"hoverstart",target:g,pointerType:h}),t&&t(!0),o(!0)},v=(p,h)=>{let g=s.target;s.pointerType="",s.target=null,!(h==="touch"||!s.isHovered||!g)&&(s.isHovered=!1,d(),r&&r({type:"hoverend",target:g,pointerType:h}),t&&t(!1),o(!1))},b={};return typeof PointerEvent<"u"&&(b.onPointerEnter=p=>{We&&p.pointerType==="mouse"||m(p,p.pointerType)},b.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&v(p,p.pointerType)}),{hoverProps:b,triggerHoverEnd:v}},[a,t,r,i,s,u,d]);return(0,l.useEffect)(()=>{i&&c({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:f,isHovered:n}}function Hi(e,a){let{onScroll:t,isDisabled:r}=e,i=(0,l.useCallback)(n=>{n.ctrlKey||(n.preventDefault(),n.stopPropagation(),t&&t({deltaX:n.deltaX,deltaY:n.deltaY}))},[t]);St(a,"wheel",r?void 0:i)}function he(e={}){let{autoFocus:a=!1,isTextInput:t,within:r}=e,i=(0,l.useRef)({isFocused:!1,isFocusVisible:a||Oe()}),[n,o]=(0,l.useState)(!1),[s,u]=(0,l.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),d=(0,l.useCallback)(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),f=(0,l.useCallback)(v=>{i.current.isFocused=v,o(v),d()},[d]);ji(v=>{i.current.isFocusVisible=v,d()},[],{isTextInput:t});let{focusProps:c}=He({isDisabled:r,onFocusChange:f}),{focusWithinProps:m}=_e({isDisabled:!r,onFocusWithinChange:f});return{isFocused:n,isFocusVisible:s,focusProps:r?m:c}}function ta(e){let{id:a,label:t,"aria-labelledby":r,"aria-label":i,labelElementType:n="label"}=e;a=B(a);let o=B(),s={};t&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:n==="label"?a:void 0});let u=Dt({id:a,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:u}}function aa(e){let{description:a,errorMessage:t,isInvalid:r,validationState:i}=e,{labelProps:n,fieldProps:o}=ta(e),s=vt([!!a,!!t,r,i]),u=vt([!!a,!!t,r,i]);return o=V(o,{"aria-describedby":[s,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:n,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:u}}}var ge={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ra={...ge,customError:!0,valid:!1},Q={isInvalid:!1,validationDetails:ge,validationErrors:[]},_i=(0,l.createContext)({}),ye="__formValidationState"+Date.now();function Ue(e){if(e[ye]){let{realtimeValidation:a,displayValidation:t,updateValidation:r,resetValidation:i,commitValidation:n}=e[ye];return{realtimeValidation:a,displayValidation:t,updateValidation:r,resetValidation:i,commitValidation:n}}return Wi(e)}function Wi(e){let{isInvalid:a,validationState:t,name:r,value:i,builtinValidation:n,validate:o,validationBehavior:s="aria"}=e;t&&(a||(a=t==="invalid"));let u=a===void 0?null:{isInvalid:a,validationErrors:[],validationDetails:ra},d=(0,l.useMemo)(()=>!o||i==null?null:ia(Ui(o,i)),[o,i]);n!=null&&n.validationDetails.valid&&(n=void 0);let f=(0,l.useContext)(_i),c=(0,l.useMemo)(()=>r?Array.isArray(r)?r.flatMap(P=>ze(f[P])):ze(f[r]):[],[f,r]),[m,v]=(0,l.useState)(f),[b,p]=(0,l.useState)(!1);f!==m&&(v(f),p(!1));let h=(0,l.useMemo)(()=>ia(b?[]:c),[b,c]),g=(0,l.useRef)(Q),[E,C]=(0,l.useState)(Q),w=(0,l.useRef)(Q),N=()=>{if(!x)return;y(!1);let P=d||n||g.current;Ke(P,w.current)||(w.current=P,C(P))},[x,y]=(0,l.useState)(!1);return(0,l.useEffect)(N),{realtimeValidation:u||h||d||n||Q,displayValidation:s==="native"?u||h||E:u||h||d||n||E,updateValidation(P){s==="aria"&&!Ke(E,P)?C(P):g.current=P},resetValidation(){let P=Q;Ke(P,w.current)||(w.current=P,C(P)),s==="native"&&y(!1),p(!0)},commitValidation(){s==="native"&&y(!0),p(!0)}}}function ze(e){return e?Array.isArray(e)?e:[e]:[]}function Ui(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return ze(t)}return[]}function ia(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ra}:null}function Ke(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,r)=>t===a.validationErrors[r])&&Object.entries(e.validationDetails).every(([t,r])=>a.validationDetails[t]===r)}function zi(...e){let a=new Set,t=!1,r={...ge};for(let o of e){var i,n;for(let s of o.validationErrors)a.add(s);for(let s in t||(t=o.isInvalid),r)(i=r)[n=s]||(i[n]=o.validationDetails[s])}return r.valid=!t,{isInvalid:t,validationErrors:[...a],validationDetails:r}}function na(e,a,t){let{validationBehavior:r,focus:i}=e;Et(()=>{if(r==="native"&&(t!=null&&t.current)&&!t.current.disabled){let d=a.realtimeValidation.isInvalid?a.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(d),t.current.hasAttribute("title")||(t.current.title=""),a.realtimeValidation.isInvalid||a.updateValidation(Gi(t.current))}});let n=(0,l.useRef)(!1),o=_(()=>{n.current||a.resetValidation()}),s=_(d=>{var m;a.displayValidation.isInvalid||a.commitValidation();let f=(m=t==null?void 0:t.current)==null?void 0:m.form;if(!d.defaultPrevented&&t&&f&&qi(f)===t.current){var c;i?i():(c=t.current)==null||c.focus(),qt("keyboard")}d.preventDefault()}),u=_(()=>{a.commitValidation()});(0,l.useEffect)(()=>{let d=t==null?void 0:t.current;if(!d)return;let f=d.form,c=f==null?void 0:f.reset;return f&&(f.reset=()=>{n.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,c==null||c.call(f),n.current=!1}),d.addEventListener("invalid",s),d.addEventListener("change",u),f==null||f.addEventListener("reset",o),()=>{d.removeEventListener("invalid",s),d.removeEventListener("change",u),f==null||f.removeEventListener("reset",o),f&&(f.reset=c)}},[t,s,u,o,r])}function Ki(e){let a=e.validity;return{badInput:a.badInput,customError:a.customError,patternMismatch:a.patternMismatch,rangeOverflow:a.rangeOverflow,rangeUnderflow:a.rangeUnderflow,stepMismatch:a.stepMismatch,tooLong:a.tooLong,tooShort:a.tooShort,typeMismatch:a.typeMismatch,valueMissing:a.valueMissing,valid:a.valid}}function Gi(e){return{isInvalid:!e.validity.valid,validationDetails:Ki(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function qi(e){for(let a=0;a{if(a.current instanceof H(a.current).HTMLTextAreaElement){let x=a.current;Object.defineProperty(x,"defaultValue",{get:()=>x.value,set:()=>{},configurable:!0})}},[a]),{labelProps:p,inputProps:V(C,t==="input"?w:void 0,{disabled:r,readOnly:n,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:u,onChange:x=>d(x.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,enterKeyHint:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...h}),descriptionProps:g,errorMessageProps:E,isInvalid:m,validationErrors:v,validationDetails:b}}function oa(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Yi(e,a,t){let r=_(c=>{let m=t.current;if(!m)return;let v=null;switch(c.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":v=m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentForward":v=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd+1):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteContentBackward":v=m.selectionEnd===m.selectionStart?m.value.slice(0,m.selectionStart-1)+m.value.slice(m.selectionStart):m.value.slice(0,m.selectionStart)+m.value.slice(m.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":v=m.value.slice(m.selectionStart);break;default:c.data!=null&&(v=m.value.slice(0,m.selectionStart)+c.data+m.value.slice(m.selectionEnd));break}(v==null||!a.validate(v))&&c.preventDefault()});(0,l.useEffect)(()=>{if(!oa()||!t.current)return;let c=t.current;return c.addEventListener("beforeinput",r,!1),()=>{c.removeEventListener("beforeinput",r,!1)}},[t,r]);let i=oa()?null:c=>{let m=c.target.value.slice(0,c.target.selectionStart)+c.data+c.target.value.slice(c.target.selectionEnd);a.validate(m)||c.preventDefault()},{labelProps:n,inputProps:o,descriptionProps:s,errorMessageProps:u,...d}=Zi(e,t),f=(0,l.useRef)(null);return{inputProps:V(o,{onBeforeInput:i,onCompositionStart(){let{value:c,selectionStart:m,selectionEnd:v}=t.current;f.current={value:c,selectionStart:m,selectionEnd:v}},onCompositionEnd(){if(t.current&&!a.validate(t.current.value)){let{value:c,selectionStart:m,selectionEnd:v}=f.current;t.current.value=c,t.current.setSelectionRange(m,v),a.setInputValue(c)}}}),labelProps:n,descriptionProps:s,errorMessageProps:u,...d}}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Ee=(0,l.createContext)(!1);function Xi(e){if((0,l.useContext)(Ee))return l.createElement(l.Fragment,null,e.children);let a=l.createElement(Ee.Provider,{value:!0},e.children);return l.createElement("template",{"data-react-aria-hidden":!0},a)}function Ge(e){let a=(t,r)=>(0,l.useContext)(Ee)?null:e(t,r);return a.displayName=e.displayName||e.name,(0,l.forwardRef)(a)}function Ji(){return(0,l.useContext)(Ee)}function la(e,a){let{elementType:t="button",isDisabled:r,onPress:i,onPressStart:n,onPressEnd:o,onPressUp:s,onPressChange:u,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:c,href:m,target:v,rel:b,type:p="button"}=e,h;h=t==="button"?{type:p,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:"button",href:t==="a"&&!r?m:void 0,target:t==="a"?v:void 0,type:t==="input"?p:void 0,disabled:t==="input"?r:void 0,"aria-disabled":!r||t==="input"?void 0:r,rel:t==="a"?b:void 0};let{pressProps:g,isPressed:E}=li({onPressStart:n,onPressEnd:o,onPressChange:u,onPress:i,onPressUp:s,onClick:c,isDisabled:r,preventFocusOnPress:d,ref:a}),{focusableProps:C}=Qt(e,a);f&&(C.tabIndex=r?-1:C.tabIndex);let w=V(C,g,z(e,{labelable:!0}));return{isPressed:E,buttonProps:V(h,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Qi(e){let{minValue:a,maxValue:t,step:r,formatOptions:i,value:n,defaultValue:o=NaN,onChange:s,locale:u,isDisabled:d,isReadOnly:f}=e;n===null&&(n=NaN),n!==void 0&&!isNaN(n)&&(n=r!==void 0&&!isNaN(r)?j(n,a,t,r):de(n,a,t)),isNaN(o)||(o=r!==void 0&&!isNaN(r)?j(o,a,t,r):de(o,a,t));let[c,m]=Ve(n,isNaN(o)?NaN:o,s),[v]=(0,l.useState)(c),[b,p]=(0,l.useState)(()=>isNaN(c)?"":new Me(u,i).format(c)),h=(0,l.useMemo)(()=>new je(u,i),[u,i]),g=(0,l.useMemo)(()=>h.getNumberingSystem(b),[h,b]),E=(0,l.useMemo)(()=>new Me(u,{...i,numberingSystem:g}),[u,i,g]),C=(0,l.useMemo)(()=>E.resolvedOptions(),[E]),w=(0,l.useCallback)(D=>isNaN(D)||D===null?"":E.format(D),[E]),N=Ue({...e,value:c}),x=r!==void 0&&!isNaN(r)?r:1;C.style==="percent"&&(r===void 0||isNaN(r))&&(x=.01);let[y,P]=(0,l.useState)(c),[M,$]=(0,l.useState)(u),[L,I]=(0,l.useState)(i);(!Object.is(c,y)||u!==M||i!==L)&&(p(w(c)),P(c),$(u),I(i));let S=(0,l.useMemo)(()=>h.parse(b),[h,b]),oe=()=>{if(!b.length){m(NaN),p(n===void 0?"":w(c));return}if(isNaN(S)){p(w(c));return}let D;D=r===void 0||isNaN(r)?de(S,a,t):j(S,a,t,r),D=h.parse(w(D)),m(D),p(w(n===void 0?D:c)),N.commitValidation()},q=(D,ue=0)=>{let W=S;if(isNaN(W))return j(isNaN(ue)?0:ue,a,t,x);{let te=j(W,a,t,x);return D==="+"&&te>W||D==="-"&&te{let D=q("+",a);D===c&&p(w(D)),m(D),N.commitValidation()},xe=()=>{let D=q("-",t);D===c&&p(w(D)),m(D),N.commitValidation()},le=()=>{t!=null&&(m(j(t,a,t,x)),N.commitValidation())},Ce=()=>{a!=null&&(m(a),N.commitValidation())},se=(0,l.useMemo)(()=>!d&&!f&&(isNaN(S)||t===void 0||isNaN(t)||j(S,a,t,x)>S||qe("+",S,x)<=t),[d,f,a,t,x,S]),De=(0,l.useMemo)(()=>!d&&!f&&(isNaN(S)||a===void 0||isNaN(a)||j(S,a,t,x)=a),[d,f,a,t,x,S]);return{...N,validate:D=>h.isValidPartialNumber(D,a,t),increment:ee,incrementToMax:le,decrement:xe,decrementToMin:Ce,canIncrement:se,canDecrement:De,minValue:a,maxValue:t,numberValue:S,defaultNumberValue:isNaN(o)?v:o,setNumberValue:m,setInputValue:p,inputValue:b,commit:oe}}function qe(e,a,t){let r=e==="+"?a+t:a-t;if(a%1!=0||t%1!=0){let i=a.toString().split("."),n=t.toString().split("."),o=i[1]&&i[1].length||0,s=n[1]&&n[1].length||0,u=10**Math.max(o,s);a=Math.round(a*u),t=Math.round(t*u),r=e==="+"?a+t:a-t,r/=u}return r}var sa={};sa={Empty:"\u0641\u0627\u0631\u063A"};var ua={};ua={Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"};var da={};da={Empty:"Pr\xE1zdn\xE9"};var ca={};ca={Empty:"Tom"};var ma={};ma={Empty:"Leer"};var fa={};fa={Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"};var pa={};pa={Empty:"Empty"};var va={};va={Empty:"Vac\xEDo"};var ba={};ba={Empty:"T\xFChjenda"};var ha={};ha={Empty:"Tyhj\xE4"};var ga={};ga={Empty:"Vide"};var ya={};ya={Empty:"\u05E8\u05D9\u05E7"};var Ea={};Ea={Empty:"Prazno"};var Pa={};Pa={Empty:"\xDCres"};var wa={};wa={Empty:"Vuoto"};var La={};La={Empty:"\u7A7A"};var xa={};xa={Empty:"\uBE44\uC5B4 \uC788\uC74C"};var Ca={};Ca={Empty:"Tu\u0161\u010Dias"};var Da={};Da={Empty:"Tuk\u0161s"};var Na={};Na={Empty:"Tom"};var Sa={};Sa={Empty:"Leeg"};var Fa={};Fa={Empty:"Pusty"};var Ma={};Ma={Empty:"Vazio"};var Ta={};Ta={Empty:"Vazio"};var Va={};Va={Empty:"Gol"};var $a={};$a={Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"};var ka={};ka={Empty:"Pr\xE1zdne"};var Ia={};Ia={Empty:"Prazen"};var Ra={};Ra={Empty:"Prazno"};var ja={};ja={Empty:"Tomt"};var Aa={};Aa={Empty:"Bo\u015F"};var Ba={};Ba={Empty:"\u041F\u0443\u0441\u0442\u043E"};var Oa={};Oa={Empty:"\u7A7A"};var Ha={};Ha={Empty:"\u7A7A\u767D"};var _a={};_a={"ar-AE":sa,"bg-BG":ua,"cs-CZ":da,"da-DK":ca,"de-DE":ma,"el-GR":fa,"en-US":pa,"es-ES":va,"et-EE":ba,"fi-FI":ha,"fr-FR":ga,"he-IL":ya,"hr-HR":Ea,"hu-HU":Pa,"it-IT":wa,"ja-JP":La,"ko-KR":xa,"lt-LT":Ca,"lv-LV":Da,"nb-NO":Na,"nl-NL":Sa,"pl-PL":Fa,"pt-BR":Ma,"pt-PT":Ta,"ro-RO":Va,"ru-RU":$a,"sk-SK":ka,"sl-SI":Ia,"sr-SP":Ra,"sv-SE":ja,"tr-TR":Aa,"uk-UA":Ba,"zh-CN":Oa,"zh-TW":Ha};function en(e){return e&&e.__esModule?e.default:e}function Wa(e){let a=(0,l.useRef)(void 0),{value:t,textValue:r,minValue:i,maxValue:n,isDisabled:o,isReadOnly:s,isRequired:u,onIncrement:d,onIncrementPage:f,onDecrement:c,onDecrementPage:m,onDecrementToMin:v,onIncrementToMax:b}=e,p=Re(en(_a),"@react-aria/spinbutton"),h=()=>clearTimeout(a.current);(0,l.useEffect)(()=>()=>h(),[]);let g=L=>{if(!(L.ctrlKey||L.metaKey||L.shiftKey||L.altKey||s||L.nativeEvent.isComposing))switch(L.key){case"PageUp":if(f){L.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(L.preventDefault(),d==null||d());break;case"PageDown":if(m){L.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":c&&(L.preventDefault(),c==null||c());break;case"Home":v&&(L.preventDefault(),v==null||v());break;case"End":b&&(L.preventDefault(),b==null||b());break}},E=(0,l.useRef)(!1),C=()=>{E.current=!0},w=()=>{E.current=!1},N=r===""?p.format("Empty"):(r||`${t}`).replace("-","\u2212");(0,l.useEffect)(()=>{E.current&&(yi("assertive"),ke(N,"assertive"))},[N]);let x=_(L=>{h(),d==null||d(),a.current=window.setTimeout(()=>{(n===void 0||isNaN(n)||t===void 0||isNaN(t)||t{h(),c==null||c(),a.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||t===void 0||isNaN(t)||t>i)&&y(60)},L)}),P=L=>{L.preventDefault()},{addGlobalListener:M,removeAllGlobalListeners:$}=Se();return{spinButtonProps:{role:"spinbutton","aria-valuenow":t!==void 0&&!isNaN(t)?t:void 0,"aria-valuetext":N,"aria-valuemin":i,"aria-valuemax":n,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":u||void 0,onKeyDown:g,onFocus:C,onBlur:w},incrementButtonProps:{onPressStart:()=>{x(400),M(window,"contextmenu",P)},onPressEnd:()=>{h(),$()},onFocus:C,onBlur:w},decrementButtonProps:{onPressStart:()=>{y(400),M(window,"contextmenu",P)},onPressEnd:()=>{h(),$()},onFocus:C,onBlur:w}}}var Ua={};Ua={decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"};var za={};za={decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"};var Ka={};Ka={decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var Ga={};Ga={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"};var qa={};qa={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"};var Za={};Za={decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"};var Ya={};Ya={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Xa={};Xa={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var Ja={};Ja={decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"};var Qa={};Qa={decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"};var er={};er={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var tr={};tr={decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"};var ar={};ar={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var rr={};rr={decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"};var ir={};ir={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var nr={};nr={decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"};var or={};or={decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"};var lr={};lr={decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var sr={};sr={decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"};var ur={};ur={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"};var dr={};dr={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var cr={};cr={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"};var mr={};mr={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var fr={};fr={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"};var pr={};pr={decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"};var vr={};vr={decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"};var br={};br={decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var hr={};hr={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"};var gr={};gr={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var yr={};yr={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"};var Er={};Er={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"};var Pr={};Pr={decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"};var wr={};wr={decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"};var Lr={};Lr={decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"};var xr={};xr={"ar-AE":Ua,"bg-BG":za,"cs-CZ":Ka,"da-DK":Ga,"de-DE":qa,"el-GR":Za,"en-US":Ya,"es-ES":Xa,"et-EE":Ja,"fi-FI":Qa,"fr-FR":er,"he-IL":tr,"hr-HR":ar,"hu-HU":rr,"it-IT":ir,"ja-JP":nr,"ko-KR":or,"lt-LT":lr,"lv-LV":sr,"nb-NO":ur,"nl-NL":dr,"pl-PL":cr,"pt-BR":mr,"pt-PT":fr,"ro-RO":pr,"ru-RU":vr,"sk-SK":br,"sl-SI":hr,"sr-SP":gr,"sv-SE":yr,"tr-TR":Er,"uk-UA":Pr,"zh-CN":wr,"zh-TW":Lr};function tn(e){return e&&e.__esModule?e.default:e}function an(e,a,t){let{id:r,decrementAriaLabel:i,incrementAriaLabel:n,isDisabled:o,isReadOnly:s,isRequired:u,minValue:d,maxValue:f,autoFocus:c,label:m,formatOptions:v,onBlur:b=()=>{},onFocus:p,onFocusChange:h,onKeyDown:g,onKeyUp:E,description:C,errorMessage:w,isWheelDisabled:N,...x}=e,{increment:y,incrementToMax:P,decrement:M,decrementToMin:$,numberValue:L,inputValue:I,commit:S,commitValidation:oe}=a,q=Re(tn(xr),"@react-aria/numberfield"),ee=B(r),{focusProps:xe}=He({onBlur(){S()}}),le=Pt(v),Ce=(0,l.useMemo)(()=>le.resolvedOptions(),[le]),se=Pt({...v,currencySign:void 0}),{spinButtonProps:De,incrementButtonProps:tt,decrementButtonProps:D}=Wa({isDisabled:o,isReadOnly:s,isRequired:u,maxValue:f,minValue:d,onIncrement:y,onIncrementToMax:P,onDecrement:M,onDecrementToMin:$,value:L,textValue:(0,l.useMemo)(()=>isNaN(L)?"":se.format(L),[se,L])}),[ue,W]=(0,l.useState)(!1),{focusWithinProps:te}=_e({isDisabled:o,onFocusWithinChange:W});Hi({onScroll:(0,l.useCallback)(T=>{Math.abs(T.deltaY)<=Math.abs(T.deltaX)||(T.deltaY>0?y():T.deltaY<0&&M())},[M,y]),isDisabled:N||o||s||!ue},t);let at=(Ce.maximumFractionDigits??0)>0,rt=a.minValue===void 0||isNaN(a.minValue)||a.minValue<0,ae="numeric";ui()?rt?ae="text":at&&(ae="decimal"):si()&&(rt?ae="numeric":at&&(ae="decimal"));let Rr=T=>{a.validate(T)&&a.setInputValue(T)},jr=z(e),it=(0,l.useCallback)(T=>{T.nativeEvent.isComposing||(T.key==="Enter"?(S(),oe()):T.continuePropagation())},[S,oe]),{isInvalid:nt,validationErrors:Ar,validationDetails:Br}=a.displayValidation,{labelProps:ot,inputProps:Or,descriptionProps:Hr,errorMessageProps:_r}=Yi({...x,...jr,name:void 0,form:void 0,label:m,autoFocus:c,isDisabled:o,isReadOnly:s,isRequired:u,validate:void 0,[ye]:a,value:I,defaultValue:"!",autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:ee,type:"text",inputMode:ae,onChange:Rr,onBlur:b,onFocus:p,onFocusChange:h,onKeyDown:(0,l.useMemo)(()=>ti(it,g),[it,g]),onKeyUp:E,description:C,errorMessage:w},a,t);Te(t,a.defaultNumberValue,a.setNumberValue);let lt=V(De,xe,Or,{role:null,"aria-roledescription":ei()?null:q.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(lt["aria-required"]=void 0);let st=T=>{var ct;document.activeElement!==t.current&&(T.pointerType==="mouse"?(ct=t.current)==null||ct.focus():T.target.focus())},Ne=e["aria-label"]||(typeof e.label=="string"?e.label:""),U;Ne||(U=e.label==null?e["aria-labelledby"]:ot.id);let ut=B(),dt=B(),Wr=V(tt,{"aria-label":n||q.format("increase",{fieldLabel:Ne}).trim(),id:U&&!n?ut:null,"aria-labelledby":U&&!n?`${ut} ${U}`:null,"aria-controls":ee,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!a.canIncrement,onPressStart:st}),Ur=V(D,{"aria-label":i||q.format("decrease",{fieldLabel:Ne}).trim(),id:U&&!i?dt:null,"aria-labelledby":U&&!i?`${dt} ${U}`:null,"aria-controls":ee,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!a.canDecrement,onPressStart:st});return{groupProps:{...te,role:"group","aria-disabled":o,"aria-invalid":nt?"true":void 0},labelProps:ot,inputProps:lt,incrementButtonProps:Wr,decrementButtonProps:Ur,errorMessageProps:_r,descriptionProps:Hr,isInvalid:nt,validationErrors:Ar,validationDetails:Br}}var Ze=(0,l.createContext)({}),rn=Ge(function(e,a){[e,a]=K(e,a,Ze);let{elementType:t="label",...r}=e;return l.createElement(t,{className:"react-aria-Label",...r,ref:a})}),nn=(0,l.createContext)(null),Ye=(0,l.createContext)({}),Cr=Ge(function(e,a){[e,a]=K(e,a,Ye);let t=e,{isPending:r}=t,{buttonProps:i,isPressed:n}=la(e,a);i=on(i,r);let{focusProps:o,isFocused:s,isFocusVisible:u}=he(e),{hoverProps:d,isHovered:f}=be({...e,isDisabled:e.isDisabled||r}),c={isHovered:f,isPressed:(t.isPressed||n)&&!r,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:r??!1},m=Z({...e,values:c,defaultClassName:"react-aria-Button"}),v=B(i.id),b=B(),p=i["aria-labelledby"];r&&(p?p=`${p} ${b}`:i["aria-label"]&&(p=`${v} ${b}`));let h=(0,l.useRef)(r);(0,l.useEffect)(()=>{let E={"aria-labelledby":p||v};(!h.current&&s&&r||h.current&&s&&!r)&&ke(E,"assertive"),h.current=r},[r,s,p,v]);let g=z(e,{global:!0});return delete g.onClick,l.createElement("button",{...V(g,m,i,o,d),type:i.type==="submit"&&r?"button":i.type,id:v,ref:a,"aria-labelledby":p,slot:e.slot||void 0,"aria-disabled":r?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":c.isPressed||void 0,"data-hovered":f||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":u||void 0},l.createElement(nn.Provider,{value:{id:b}},m.children))});function on(e,a){if(a){for(let t in e)t.startsWith("on")&&!(t.includes("Focus")||t.includes("Blur"))&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var Xe=(0,l.createContext)({}),Dr=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,Xe);let{elementType:t="span",...r}=e;return l.createElement(t,{className:"react-aria-Text",...r,ref:a})}),Pe=(0,l.createContext)(null),ln=(0,l.forwardRef)(function(e,a){var t;return(t=(0,l.useContext)(Pe))!=null&&t.isInvalid?l.createElement(sn,{...e,ref:a}):null}),sn=(0,l.forwardRef)((e,a)=>{let t=(0,l.useContext)(Pe),r=z(e,{global:!0}),i=Z({...e,defaultClassName:"react-aria-FieldError",defaultChildren:t.validationErrors.length===0?void 0:t.validationErrors.join(" "),values:t});return i.children==null?null:l.createElement(Dr,{slot:"errorMessage",...r,...i,ref:a})}),Nr=(0,l.createContext)(null),Je=(0,l.createContext)({}),un=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,Je);let{isDisabled:t,isInvalid:r,isReadOnly:i,onHoverStart:n,onHoverChange:o,onHoverEnd:s,...u}=e,{hoverProps:d,isHovered:f}=be({onHoverStart:n,onHoverChange:o,onHoverEnd:s,isDisabled:t}),{isFocused:c,isFocusVisible:m,focusProps:v}=he({within:!0});t??(t=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r??(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let b=Z({...e,values:{isHovered:f,isFocusWithin:c,isFocusVisible:m,isDisabled:t,isInvalid:r},defaultClassName:"react-aria-Group"});return l.createElement("div",{...V(u,v,d),...b,ref:a,role:e.role??"group",slot:e.slot??void 0,"data-focus-within":c||void 0,"data-hovered":f||void 0,"data-focus-visible":m||void 0,"data-disabled":t||void 0,"data-invalid":r||void 0,"data-readonly":i||void 0},b.children)}),Qe=(0,l.createContext)({}),dn=e=>{let{onHoverStart:a,onHoverChange:t,onHoverEnd:r,...i}=e;return i},Sr=Ge(function(e,a){[e,a]=K(e,a,Qe);let{hoverProps:t,isHovered:r}=be(e),{isFocused:i,isFocusVisible:n,focusProps:o}=he({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",u=Z({...e,values:{isHovered:r,isFocused:i,isFocusVisible:n,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return l.createElement("input",{...V(dn(e),o,t),...u,ref:a,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":n||void 0,"data-invalid":s||void 0})}),cn=(0,l.createContext)(null),mn=(0,l.createContext)(null),fn=(0,l.forwardRef)(function(e,a){[e,a]=K(e,a,cn);let{validationBehavior:t}=$e(Nr)||{},r=e.validationBehavior??t??"native",{locale:i}=Fe(),n=Qi({...e,locale:i,validationBehavior:r}),o=(0,l.useRef)(null),[s,u]=Tt(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:d,groupProps:f,inputProps:c,incrementButtonProps:m,decrementButtonProps:v,descriptionProps:b,errorMessageProps:p,...h}=an({...Vt(e),label:u,validationBehavior:r},n,o),g=Z({...e,values:{state:n,isDisabled:e.isDisabled||!1,isInvalid:h.isInvalid||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-NumberField"}),E=z(e,{global:!0});return delete E.id,l.createElement(Mt,{values:[[mn,n],[Je,f],[Qe,{...c,ref:o}],[Ze,{...d,ref:s}],[Ye,{slots:{increment:m,decrement:v}}],[Xe,{slots:{description:b,errorMessage:p}}],[Pe,h]]},l.createElement("div",{...E,...g,ref:a,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-required":e.isRequired||void 0,"data-invalid":h.isInvalid||void 0}),e.name&&l.createElement("input",{type:"hidden",name:e.name,form:e.form,value:isNaN(n.numberValue)?"":n.numberValue,disabled:e.isDisabled||void 0}))}),Fr=ft(),F=mt(Kr(),1);const et=l.forwardRef((e,a)=>{let t=(0,Fr.c)(40),{placeholder:r,variant:i,...n}=e,o=i===void 0?"default":i,{locale:s}=Fe(),u=fn,d;t[0]===s?d=t[1]:(d=ci(s),t[0]=s,t[1]=d);let f;t[2]===d?f=t[3]:(f={minimumFractionDigits:0,maximumFractionDigits:d},t[2]=d,t[3]=f);let c=R("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid","flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid","focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary",o==="default"?"h-6 w-full mb-1":"h-4 w-full mb-0.5",o==="xs"&&"text-xs",n.className),m=n.isDisabled,v=o==="default"?"px-1.5":"px-1",b;t[4]===v?b=t[5]:(b=R("flex-1","w-full","placeholder:text-muted-foreground","outline-hidden","disabled:cursor-not-allowed disabled:opacity-50",v),t[4]=v,t[5]=b);let p;t[6]!==r||t[7]!==n.isDisabled||t[8]!==a||t[9]!==b?(p=(0,F.jsx)(Sr,{ref:a,disabled:m,placeholder:r,onKeyDown:pn,className:b}),t[6]=r,t[7]=n.isDisabled,t[8]=a,t[9]=b,t[10]=p):p=t[10];let h=n.isDisabled,g=o==="xs"&&"w-2 h-2",E;t[11]===g?E=t[12]:(E=R("w-3 h-3 -mb-px",g),t[11]=g,t[12]=E);let C;t[13]===E?C=t[14]:(C=(0,F.jsx)(Yr,{"aria-hidden":!0,className:E}),t[13]=E,t[14]=C);let w;t[15]!==n.isDisabled||t[16]!==C||t[17]!==o?(w=(0,F.jsx)(Mr,{slot:"increment",isDisabled:h,variant:o,children:C}),t[15]=n.isDisabled,t[16]=C,t[17]=o,t[18]=w):w=t[18];let N;t[19]===Symbol.for("react.memo_cache_sentinel")?(N=(0,F.jsx)("div",{className:"h-px shrink-0 divider bg-border z-10"}),t[19]=N):N=t[19];let x=n.isDisabled,y=o==="xs"&&"w-2 h-2",P;t[20]===y?P=t[21]:(P=R("w-3 h-3 -mt-px",y),t[20]=y,t[21]=P);let M;t[22]===P?M=t[23]:(M=(0,F.jsx)(Zr,{"aria-hidden":!0,className:P}),t[22]=P,t[23]=M);let $;t[24]!==n.isDisabled||t[25]!==M||t[26]!==o?($=(0,F.jsx)(Mr,{slot:"decrement",isDisabled:x,variant:o,children:M}),t[24]=n.isDisabled,t[25]=M,t[26]=o,t[27]=$):$=t[27];let L;t[28]!==w||t[29]!==$?(L=(0,F.jsxs)("div",{className:"flex flex-col border-s-2",children:[w,N,$]}),t[28]=w,t[29]=$,t[30]=L):L=t[30];let I;t[31]!==L||t[32]!==c||t[33]!==p?(I=(0,F.jsxs)("div",{className:c,children:[p,L]}),t[31]=L,t[32]=c,t[33]=p,t[34]=I):I=t[34];let S;return t[35]!==u||t[36]!==n||t[37]!==I||t[38]!==f?(S=(0,F.jsx)(u,{...n,formatOptions:f,children:I}),t[35]=u,t[36]=n,t[37]=I,t[38]=f,t[39]=S):S=t[39],S});et.displayName="NumberField";var Mr=e=>{let a=(0,Fr.c)(6),t=!e.isDisabled&&"hover:text-primary hover:bg-muted",r=e.variant==="default"?"px-0.5":"px-0.25",i;a[0]!==t||a[1]!==r?(i=R("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary","disabled:cursor-not-allowed disabled:opacity-50",t,r),a[0]=t,a[1]=r,a[2]=i):i=a[2];let n;return a[3]!==e||a[4]!==i?(n=(0,F.jsx)(Cr,{...e,className:i}),a[3]=e,a[4]=i,a[5]=n):n=a[5],n};function pn(e){(e.key==="ArrowUp"||e.key==="ArrowDown")&&e.stopPropagation()}var we=ft(),Le=l.forwardRef((e,a)=>{let t=(0,we.c)(28),r,i,n,o,s,u,d;if(t[0]!==a||t[1]!==e){u=Symbol.for("react.early_return_sentinel");e:{if({className:r,type:d,endAdornment:i,...o}=e,n=o.icon,d==="hidden"){u=(0,F.jsx)("input",{type:"hidden",ref:a,...o});break e}s=R("relative",o.rootClassName)}t[0]=a,t[1]=e,t[2]=r,t[3]=i,t[4]=n,t[5]=o,t[6]=s,t[7]=u,t[8]=d}else r=t[2],i=t[3],n=t[4],o=t[5],s=t[6],u=t[7],d=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let f;t[9]===n?f=t[10]:(f=n&&(0,F.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",children:n}),t[9]=n,t[10]=f);let c=n&&"pl-7",m=i&&"pr-10",v;t[11]!==r||t[12]!==c||t[13]!==m?(v=R("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid","flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",c,m,r),t[11]=r,t[12]=c,t[13]=m,t[14]=v):v=t[14];let b;t[15]===Symbol.for("react.memo_cache_sentinel")?(b=Gr.stopPropagation(),t[15]=b):b=t[15];let p;t[16]!==o||t[17]!==a||t[18]!==v||t[19]!==d?(p=(0,F.jsx)("input",{type:d,className:v,ref:a,onClick:b,...o}),t[16]=o,t[17]=a,t[18]=v,t[19]=d,t[20]=p):p=t[20];let h;t[21]===i?h=t[22]:(h=i&&(0,F.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",children:i}),t[21]=i,t[22]=h);let g;return t[23]!==s||t[24]!==f||t[25]!==p||t[26]!==h?(g=(0,F.jsxs)("div",{className:s,children:[f,p,h]}),t[23]=s,t[24]=f,t[25]=p,t[26]=h,t[27]=g):g=t[27],g});Le.displayName="Input";const Tr=l.forwardRef((e,a)=>{let t=(0,we.c)(16),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let o;t[4]!==i||t[5]!==n.delay||t[6]!==n.value?(o={initialValue:n.value,delay:n.delay,onChange:i},t[4]=i,t[5]=n.delay,t[6]=n.value,t[7]=o):o=t[7];let{value:s,onChange:u}=wt(o),d;t[8]===u?d=t[9]:(d=c=>u(c.target.value),t[8]=u,t[9]=d);let f;return t[10]!==r||t[11]!==n||t[12]!==a||t[13]!==d||t[14]!==s?(f=(0,F.jsx)(Le,{ref:a,className:r,...n,onChange:d,value:s}),t[10]=r,t[11]=n,t[12]=a,t[13]=d,t[14]=s,t[15]=f):f=t[15],f});Tr.displayName="DebouncedInput";const Vr=l.forwardRef((e,a)=>{let t=(0,we.c)(13),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let o;t[4]!==i||t[5]!==n.value?(o={initialValue:n.value,delay:200,onChange:i},t[4]=i,t[5]=n.value,t[6]=o):o=t[6];let{value:s,onChange:u}=wt(o),d;return t[7]!==r||t[8]!==u||t[9]!==n||t[10]!==a||t[11]!==s?(d=(0,F.jsx)(et,{ref:a,className:r,...n,onChange:u,value:s}),t[7]=r,t[8]=u,t[9]=n,t[10]=a,t[11]=s,t[12]=d):d=t[12],d});Vr.displayName="DebouncedNumberInput";const $r=l.forwardRef(({className:e,rootClassName:a,icon:t=(0,F.jsx)(Lt,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),clearable:r=!0,...i},n)=>{let o=l.useId(),s=i.id||o;return(0,F.jsxs)("div",{className:R("flex items-center border-b px-3",a),children:[t,(0,F.jsx)("input",{id:s,ref:n,className:R("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...i}),r&&i.value&&(0,F.jsx)("span",{onPointerDown:u=>{var f;u.preventDefault(),u.stopPropagation();let d=document.getElementById(s);d&&d instanceof HTMLInputElement&&(d.focus(),d.value="",(f=i.onChange)==null||f.call(i,{...u,target:d,currentTarget:d,type:"change"}))},children:(0,F.jsx)(Xr,{className:"h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer"})})]})});$r.displayName="SearchInput";const kr=l.forwardRef((e,a)=>{let t=(0,we.c)(23),r,i,n;t[0]===e?(r=t[1],i=t[2],n=t[3]):({className:r,onValueChange:i,...n}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=n);let[o,s]=l.useState(n.value),u;t[4]!==o||t[5]!==i||t[6]!==n.value?(u={prop:n.value,defaultProp:o,onChange:i},t[4]=o,t[5]=i,t[6]=n.value,t[7]=u):u=t[7];let[d,f]=Jr(u),c,m;t[8]===d?(c=t[9],m=t[10]):(c=()=>{s(d||"")},m=[d],t[8]=d,t[9]=c,t[10]=m),l.useEffect(c,m);let v;t[11]===Symbol.for("react.memo_cache_sentinel")?(v=g=>s(g.target.value),t[11]=v):v=t[11];let b,p;t[12]!==o||t[13]!==f?(b=()=>f(o||""),p=g=>{g.key==="Enter"&&f(o||"")},t[12]=o,t[13]=f,t[14]=b,t[15]=p):(b=t[14],p=t[15]);let h;return t[16]!==r||t[17]!==o||t[18]!==n||t[19]!==a||t[20]!==b||t[21]!==p?(h=(0,F.jsx)(Le,{ref:a,className:r,...n,value:o,onChange:v,onBlur:b,onKeyDown:p}),t[16]=r,t[17]=o,t[18]=n,t[19]=a,t[20]=b,t[21]=p,t[22]=h):h=t[22],h});kr.displayName="OnBlurredInput";export{Ft as $,aa as A,ki as B,Ji as C,ge as D,ye as E,Jt as F,Rt as G,je as H,Xt as I,Mt as J,Ie as K,Zt as L,he as M,be as N,Q as O,_e as P,gi as Q,Gt as R,Xi as S,zi as T,At as U,Oe as V,Re as W,Z as X,K as Y,Tt as Z,Cr as _,$r as a,St as at,Wa as b,Sr as c,z as ct,Nr as d,Vt as et,ln as f,Ye as g,Xe as h,kr as i,Te as it,ta as j,Ue as k,un as l,Lt as lt,Dr as m,Vr as n,de as nt,et as o,Nt as ot,Pe as p,ke as q,Le as r,Ve as rt,Qe as s,Dt as st,Tr as t,$e as tt,Je as u,Ze as v,na as w,la as x,rn as y,qt as z}; diff --git a/docs/assets/invariant-C6yE60hi.js b/docs/assets/invariant-C6yE60hi.js new file mode 100644 index 0000000..d1c3315 --- /dev/null +++ b/docs/assets/invariant-C6yE60hi.js @@ -0,0 +1 @@ +function t(r,o){if(!r)throw Error(o)}export{t}; diff --git a/docs/assets/isEmpty-DIxUV1UR.js b/docs/assets/isEmpty-DIxUV1UR.js new file mode 100644 index 0000000..f6be956 --- /dev/null +++ b/docs/assets/isEmpty-DIxUV1UR.js @@ -0,0 +1 @@ +import{S as a,d as n,m as o,p as s,s as f,u as i}from"./_Uint8Array-BGESiCQL.js";import{r as p,t as u}from"./_getTag-BWqNuuwU.js";var c="[object Map]",l="[object Set]",m=Object.prototype.hasOwnProperty;function v(r){if(r==null)return!0;if(o(r)&&(a(r)||typeof r=="string"||typeof r.splice=="function"||i(r)||f(r)||n(r)))return!r.length;var t=u(r);if(t==c||t==l)return!r.size;if(s(r))return!p(r).length;for(var e in r)if(m.call(r,e))return!1;return!0}var y=v;export{y as t}; diff --git a/docs/assets/isString-CqoLqJdS.js b/docs/assets/isString-CqoLqJdS.js new file mode 100644 index 0000000..957103f --- /dev/null +++ b/docs/assets/isString-CqoLqJdS.js @@ -0,0 +1 @@ +import{C as t,S as a,w as n}from"./_Uint8Array-BGESiCQL.js";var o="[object String]";function e(r){return typeof r=="string"||!a(r)&&t(r)&&n(r)==o}var s=e;export{s as t}; diff --git a/docs/assets/isSymbol-BGkTcW3U.js b/docs/assets/isSymbol-BGkTcW3U.js new file mode 100644 index 0000000..59f10eb --- /dev/null +++ b/docs/assets/isSymbol-BGkTcW3U.js @@ -0,0 +1 @@ +import{C as t,w as r}from"./_Uint8Array-BGESiCQL.js";var a="[object Symbol]";function e(o){return typeof o=="symbol"||t(o)&&r(o)==a}var m=e;export{m as t}; diff --git a/docs/assets/isValid-DhzaK-Y1.js b/docs/assets/isValid-DhzaK-Y1.js new file mode 100644 index 0000000..546df8b --- /dev/null +++ b/docs/assets/isValid-DhzaK-Y1.js @@ -0,0 +1 @@ +import{t as o}from"./toDate-5JckKRQn.js";function e(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function r(t){return!(!e(t)&&typeof t!="number"||isNaN(+o(t)))}export{r as t}; diff --git a/docs/assets/java-B5fxTROr.js b/docs/assets/java-B5fxTROr.js new file mode 100644 index 0000000..b7c9131 --- /dev/null +++ b/docs/assets/java-B5fxTROr.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Java","name":"java","patterns":[{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.package.java"}},"contentName":"storage.modifier.package.java","end":"\\\\s*(;)","endCaptures":{"1":{"name":"punctuation.terminator.java"}},"name":"meta.package.java","patterns":[{"include":"#comments"},{"match":"(?<=\\\\.)\\\\s*\\\\.|\\\\.(?=\\\\s*;)","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"(?","endCaptures":{"0":{"name":"punctuation.bracket.angle.java"}},"patterns":[{"match":"\\\\b(extends|super)\\\\b","name":"storage.modifier.$1.java"},{"captures":{"1":{"name":"storage.type.java"}},"match":"(?>>?|[\\\\^~])","name":"keyword.operator.bitwise.java"},{"match":"(([\\\\&^|]|<<|>>>?)=)","name":"keyword.operator.assignment.bitwise.java"},{"match":"(===?|!=|<=|>=|<>|[<>])","name":"keyword.operator.comparison.java"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.java"},{"match":"(=)","name":"keyword.operator.assignment.java"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.java"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.java"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.java"},{"match":"([\\\\&|])","name":"keyword.operator.bitwise.java"},{"match":"\\\\b(const|goto)\\\\b","name":"keyword.reserved.java"}]},"lambda-expression":{"patterns":[{"match":"->","name":"storage.type.function.arrow.java"}]},"member-variables":{"begin":"(?=private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)","end":"(?=[;=])","patterns":[{"include":"#storage-modifiers"},{"include":"#variables"},{"include":"#primitive-arrays"},{"include":"#object-types"}]},"method-call":{"begin":"(\\\\.)\\\\s*([$A-Z_a-z][$\\\\w]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"entity.name.function.java"},"3":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.method-call.java","patterns":[{"include":"#code"}]},"methods":{"begin":"(?!new)(?=[<\\\\w].*\\\\s+)(?=([^/=]|/(?!/))+\\\\()","end":"(})|(?=;)","endCaptures":{"1":{"name":"punctuation.section.method.end.bracket.curly.java"}},"name":"meta.method.java","patterns":[{"include":"#storage-modifiers"},{"begin":"(\\\\w+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.java"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.method.identifier.java","patterns":[{"include":"#parameters"},{"include":"#parens"},{"include":"#comments"}]},{"include":"#generics"},{"begin":"(?=\\\\w.*\\\\s+\\\\w+\\\\s*\\\\()","end":"(?=\\\\s+\\\\w+\\\\s*\\\\()","name":"meta.method.return-type.java","patterns":[{"include":"#all-types"},{"include":"#parens"},{"include":"#comments"}]},{"include":"#throws"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.method.begin.bracket.curly.java"}},"contentName":"meta.method.body.java","end":"(?=})","patterns":[{"include":"#code"}]},{"include":"#comments"}]},"module":{"begin":"((open)\\\\s)?(module)\\\\s+(\\\\w+)","beginCaptures":{"1":{"name":"storage.modifier.java"},"3":{"name":"storage.modifier.java"},"4":{"name":"entity.name.type.module.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.module.end.bracket.curly.java"}},"name":"meta.module.java","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.module.begin.bracket.curly.java"}},"contentName":"meta.module.body.java","end":"(?=})","patterns":[{"include":"#comments"},{"include":"#comments-javadoc"},{"match":"\\\\b(requires|transitive|exports|opens|to|uses|provides|with)\\\\b","name":"keyword.module.java"}]}]},"numbers":{"patterns":[{"match":"\\\\b(?)?(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.java"},"2":{"name":"entity.name.type.record.java"},"3":{"patterns":[{"include":"#generics"}]},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.record.identifier.java","patterns":[{"include":"#code"}]},{"begin":"(implements)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.implements.java"}},"end":"(?=\\\\s*\\\\{)","name":"meta.definition.class.implemented.interfaces.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"include":"#record-body"}]},"record-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.class.begin.bracket.curly.java"}},"end":"(?=})","name":"meta.record.body.java","patterns":[{"include":"#record-constructor"},{"include":"#class-body"}]},"record-constructor":{"begin":"(?!new)(?=[<\\\\w].*\\\\s+)(?=([^(/=]|/(?!/))+(?=\\\\{))","end":"(})|(?=;)","endCaptures":{"1":{"name":"punctuation.section.method.end.bracket.curly.java"}},"name":"meta.method.java","patterns":[{"include":"#storage-modifiers"},{"begin":"(\\\\w+)","beginCaptures":{"1":{"name":"entity.name.function.java"}},"end":"(?=\\\\s*\\\\{)","name":"meta.method.identifier.java","patterns":[{"include":"#comments"}]},{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.method.begin.bracket.curly.java"}},"contentName":"meta.method.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},"static-initializer":{"patterns":[{"include":"#anonymous-block-and-instance-initializer"},{"match":"static","name":"storage.modifier.java"}]},"storage-modifiers":{"match":"\\\\b(public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient|volatile|default|strictfp|sealed|non-sealed)\\\\b","name":"storage.modifier.java"},"strings":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.triple.java","patterns":[{"match":"(\\\\\\\\\\"\\"\\")(?!\\")|(\\\\\\\\.)","name":"constant.character.escape.java"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.double.java","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.java"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.single.java","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.java"}]}]},"throws":{"begin":"throws","beginCaptures":{"0":{"name":"storage.modifier.java"}},"end":"(?=[;{])","name":"meta.throwables.java","patterns":[{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"[$A-Z_a-z][$.0-9A-Z_a-z]*","name":"storage.type.java"},{"include":"#comments"}]},"try-catch-finally":{"patterns":[{"begin":"\\\\btry\\\\b","beginCaptures":{"0":{"name":"keyword.control.try.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.try.end.bracket.curly.java"}},"name":"meta.try.java","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.try.resources.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.try.resources.end.bracket.round.java"}},"name":"meta.try.resources.java","patterns":[{"include":"#code"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.try.begin.bracket.curly.java"}},"contentName":"meta.try.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},{"begin":"\\\\b(catch)\\\\b","beginCaptures":{"1":{"name":"keyword.control.catch.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.catch.end.bracket.curly.java"}},"name":"meta.catch.java","patterns":[{"include":"#comments"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"contentName":"meta.catch.parameters.java","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"patterns":[{"include":"#comments"},{"include":"#storage-modifiers"},{"begin":"[$A-Z_a-z][$.0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"storage.type.java"}},"end":"(\\\\|)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.catch.separator.java"}},"patterns":[{"include":"#comments"},{"captures":{"0":{"name":"variable.parameter.java"}},"match":"\\\\w+"}]}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.catch.begin.bracket.curly.java"}},"contentName":"meta.catch.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},{"begin":"\\\\bfinally\\\\b","beginCaptures":{"0":{"name":"keyword.control.finally.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.finally.end.bracket.curly.java"}},"name":"meta.finally.java","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.finally.begin.bracket.curly.java"}},"contentName":"meta.finally.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]}]},"variables":{"begin":"(?=\\\\b((void|boolean|byte|char|short|int|float|long|double)|(?>(\\\\w+\\\\.)*[A-Z_]+\\\\w*))\\\\b\\\\s*(<[],.<>?\\\\[\\\\w\\\\s]*>)?\\\\s*((\\\\[])*)?\\\\s+[$A-Z_a-z][$\\\\w]*([]$,\\\\[\\\\w][],\\\\[\\\\w\\\\s]*)?\\\\s*([:;=]))","end":"(?=[:;=])","name":"meta.definition.variable.java","patterns":[{"captures":{"1":{"name":"variable.other.definition.java"}},"match":"([$A-Z_a-z][$\\\\w]*)(?=\\\\s*(\\\\[])*\\\\s*([,:;=]))"},{"include":"#all-types"},{"include":"#code"}]},"variables-local":{"begin":"(?=\\\\b(var)\\\\b\\\\s+[$A-Z_a-z][$\\\\w]*\\\\s*([:;=]))","end":"(?=[:;=])","name":"meta.definition.variable.local.java","patterns":[{"match":"\\\\bvar\\\\b","name":"storage.type.local.java"},{"captures":{"1":{"name":"variable.other.definition.java"}},"match":"([$A-Z_a-z][$\\\\w]*)(?=\\\\s*(\\\\[])*\\\\s*([:;=]))"},{"include":"#code"}]}},"scopeName":"source.java"}`))];export{e as t}; diff --git a/docs/assets/java-BvFubqPm.js b/docs/assets/java-BvFubqPm.js new file mode 100644 index 0000000..b02a0fe --- /dev/null +++ b/docs/assets/java-BvFubqPm.js @@ -0,0 +1 @@ +import{t}from"./java-B5fxTROr.js";export{t as default}; diff --git a/docs/assets/javascript-Bai85G8g.js b/docs/assets/javascript-Bai85G8g.js new file mode 100644 index 0000000..bb2a509 --- /dev/null +++ b/docs/assets/javascript-Bai85G8g.js @@ -0,0 +1 @@ +import{t}from"./javascript-DgAW-dkP.js";export{t as default}; diff --git a/docs/assets/javascript-BekfVgKQ.js b/docs/assets/javascript-BekfVgKQ.js new file mode 100644 index 0000000..26c0109 --- /dev/null +++ b/docs/assets/javascript-BekfVgKQ.js @@ -0,0 +1 @@ +import{i as s,n as a,r,t}from"./javascript-Czx24F5X.js";export{t as javascript,a as json,r as jsonld,s as typescript}; diff --git a/docs/assets/javascript-Czx24F5X.js b/docs/assets/javascript-Czx24F5X.js new file mode 100644 index 0000000..b469ff0 --- /dev/null +++ b/docs/assets/javascript-Czx24F5X.js @@ -0,0 +1 @@ +function ar(b){var kr=b.statementIndent,ir=b.jsonld,yr=b.json||ir,p=b.typescript,K=b.wordCharacters||/[\w$\xa1-\uffff]/,vr=(function(){function r(x){return{type:x,style:"keyword"}}var e=r("keyword a"),n=r("keyword b"),i=r("keyword c"),u=r("keyword d"),l=r("operator"),m={type:"atom",style:"atom"};return{if:r("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:u,break:u,continue:u,new:r("new"),delete:i,void:i,throw:i,debugger:r("debugger"),var:r("var"),const:r("var"),let:r("var"),function:r("function"),catch:r("catch"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,typeof:l,instanceof:l,true:m,false:m,null:m,undefined:m,NaN:m,Infinity:m,this:r("this"),class:r("class"),super:r("atom"),yield:i,export:r("export"),import:r("import"),extends:i,await:i}})(),wr=/[+\-*&%=<>!?|~^@]/,Ir=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Sr(r){for(var e=!1,n,i=!1;(n=r.next())!=null;){if(!e){if(n=="/"&&!i)return;n=="["?i=!0:i&&n=="]"&&(i=!1)}e=!e&&n=="\\"}}var D,L;function y(r,e,n){return D=r,L=n,e}function O(r,e){var n=r.next();if(n=='"'||n=="'")return e.tokenize=Nr(n),e.tokenize(r,e);if(n=="."&&r.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(n=="."&&r.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return y(n);if(n=="="&&r.eat(">"))return y("=>","operator");if(n=="0"&&r.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(n))return r.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(n=="/")return r.eat("*")?(e.tokenize=M,M(r,e)):r.eat("/")?(r.skipToEnd(),y("comment","comment")):le(r,e,1)?(Sr(r),r.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string.special")):(r.eat("="),y("operator","operator",r.current()));if(n=="`")return e.tokenize=F,F(r,e);if(n=="#"&&r.peek()=="!")return r.skipToEnd(),y("meta","meta");if(n=="#"&&r.eatWhile(K))return y("variable","property");if(n=="<"&&r.match("!--")||n=="-"&&r.match("->")&&!/\S/.test(r.string.slice(0,r.start)))return r.skipToEnd(),y("comment","comment");if(wr.test(n))return(n!=">"||!e.lexical||e.lexical.type!=">")&&(r.eat("=")?(n=="!"||n=="=")&&r.eat("="):/[<>*+\-|&?]/.test(n)&&(r.eat(n),n==">"&&r.eat(n))),n=="?"&&r.eat(".")?y("."):y("operator","operator",r.current());if(K.test(n)){r.eatWhile(K);var i=r.current();if(e.lastType!="."){if(vr.propertyIsEnumerable(i)){var u=vr[i];return y(u.type,u.style,i)}if(i=="async"&&r.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",i)}return y("variable","variable",i)}}function Nr(r){return function(e,n){var i=!1,u;if(ir&&e.peek()=="@"&&e.match(Ir))return n.tokenize=O,y("jsonld-keyword","meta");for(;(u=e.next())!=null&&!(u==r&&!i);)i=!i&&u=="\\";return i||(n.tokenize=O),y("string","string")}}function M(r,e){for(var n=!1,i;i=r.next();){if(i=="/"&&n){e.tokenize=O;break}n=i=="*"}return y("comment","comment")}function F(r,e){for(var n=!1,i;(i=r.next())!=null;){if(!n&&(i=="`"||i=="$"&&r.eat("{"))){e.tokenize=O;break}n=!n&&i=="\\"}return y("quasi","string.special",r.current())}var Pr="([{}])";function ur(r,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=r.string.indexOf("=>",r.start);if(!(n<0)){if(p){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(r.string.slice(r.start,n));i&&(n=i.index)}for(var u=0,l=!1,m=n-1;m>=0;--m){var x=r.string.charAt(m),g=Pr.indexOf(x);if(g>=0&&g<3){if(!u){++m;break}if(--u==0){x=="("&&(l=!0);break}}else if(g>=3&&g<6)++u;else if(K.test(x))l=!0;else if(/["'\/`]/.test(x))for(;;--m){if(m==0)return;if(r.string.charAt(m-1)==x&&r.string.charAt(m-2)!="\\"){m--;break}}else if(l&&!u){++m;break}}l&&!u&&(e.fatArrowAt=m)}}var Cr={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function br(r,e,n,i,u,l){this.indented=r,this.column=e,this.type=n,this.prev=u,this.info=l,i!=null&&(this.align=i)}function Wr(r,e){for(var n=r.localVars;n;n=n.next)if(n.name==e)return!0;for(var i=r.context;i;i=i.prev)for(var n=i.vars;n;n=n.next)if(n.name==e)return!0}function Br(r,e,n,i,u){var l=r.cc;for(a.state=r,a.stream=u,a.marked=null,a.cc=l,a.style=e,r.lexical.hasOwnProperty("align")||(r.lexical.align=!0);;)if((l.length?l.pop():yr?k:v)(n,i)){for(;l.length&&l[l.length-1].lex;)l.pop()();return a.marked?a.marked:n=="variable"&&Wr(r,i)?"variableName.local":e}}var a={state:null,column:null,marked:null,cc:null};function f(){for(var r=arguments.length-1;r>=0;r--)a.cc.push(arguments[r])}function t(){return f.apply(null,arguments),!0}function or(r,e){for(var n=e;n;n=n.next)if(n.name==r)return!0;return!1}function S(r){var e=a.state;if(a.marked="def",e.context){if(e.lexical.info=="var"&&e.context&&e.context.block){var n=hr(r,e.context);if(n!=null){e.context=n;return}}else if(!or(r,e.localVars)){e.localVars=new G(r,e.localVars);return}}b.globalVars&&!or(r,e.globalVars)&&(e.globalVars=new G(r,e.globalVars))}function hr(r,e){if(e)if(e.block){var n=hr(r,e.prev);return n?n==e.prev?e:new U(n,e.vars,!0):null}else return or(r,e.vars)?e:new U(e.prev,new G(r,e.vars),!1);else return null}function Q(r){return r=="public"||r=="private"||r=="protected"||r=="abstract"||r=="readonly"}function U(r,e,n){this.prev=r,this.vars=e,this.block=n}function G(r,e){this.name=r,this.next=e}var Dr=new G("this",new G("arguments",null));function _(){a.state.context=new U(a.state.context,a.state.localVars,!1),a.state.localVars=Dr}function R(){a.state.context=new U(a.state.context,a.state.localVars,!0),a.state.localVars=null}_.lex=R.lex=!0;function V(){a.state.localVars=a.state.context.vars,a.state.context=a.state.context.prev}V.lex=!0;function s(r,e){var n=function(){var i=a.state,u=i.indented;if(i.lexical.type=="stat")u=i.lexical.indented;else for(var l=i.lexical;l&&l.type==")"&&l.align;l=l.prev)u=l.indented;i.lexical=new br(u,a.stream.column(),r,null,i.lexical,e)};return n.lex=!0,n}function o(){var r=a.state;r.lexical.prev&&(r.lexical.type==")"&&(r.indented=r.lexical.indented),r.lexical=r.lexical.prev)}o.lex=!0;function c(r){function e(n){return n==r?t():r==";"||n=="}"||n==")"||n=="]"?f():t(e)}return e}function v(r,e){return r=="var"?t(s("vardef",e),dr,c(";"),o):r=="keyword a"?t(s("form"),fr,v,o):r=="keyword b"?t(s("form"),v,o):r=="keyword d"?a.stream.match(/^\s*$/,!1)?t():t(s("stat"),N,c(";"),o):r=="debugger"?t(c(";")):r=="{"?t(s("}"),R,Z,o,V):r==";"?t():r=="if"?(a.state.lexical.info=="else"&&a.state.cc[a.state.cc.length-1]==o&&a.state.cc.pop()(),t(s("form"),fr,v,o,Tr)):r=="function"?t($):r=="for"?t(s("form"),R,jr,v,V,o):r=="class"||p&&e=="interface"?(a.marked="keyword",t(s("form",r=="class"?r:e),Or,o)):r=="variable"?p&&e=="declare"?(a.marked="keyword",t(v)):p&&(e=="module"||e=="enum"||e=="type")&&a.stream.match(/^\s*\w/,!1)?(a.marked="keyword",e=="enum"?t(Er):e=="type"?t($r,c("operator"),d,c(";")):t(s("form"),z,c("{"),s("}"),Z,o,o)):p&&e=="namespace"?(a.marked="keyword",t(s("form"),k,v,o)):p&&e=="abstract"?(a.marked="keyword",t(v)):t(s("stat"),Kr):r=="switch"?t(s("form"),fr,c("{"),s("}","switch"),R,Z,o,o,V):r=="case"?t(k,c(":")):r=="default"?t(c(":")):r=="catch"?t(s("form"),_,Fr,v,o,V):r=="export"?t(s("stat"),ie,o):r=="import"?t(s("stat"),ue,o):r=="async"?t(v):e=="@"?t(k,v):f(s("stat"),k,c(";"),o)}function Fr(r){if(r=="(")return t(I,c(")"))}function k(r,e){return xr(r,e,!1)}function h(r,e){return xr(r,e,!0)}function fr(r){return r=="("?t(s(")"),N,c(")"),o):f()}function xr(r,e,n){if(a.state.fatArrowAt==a.stream.start){var i=n?Vr:gr;if(r=="(")return t(_,s(")"),w(I,")"),o,c("=>"),i,V);if(r=="variable")return f(_,z,c("=>"),i,V)}var u=n?P:q;return Cr.hasOwnProperty(r)?t(u):r=="function"?t($,u):r=="class"||p&&e=="interface"?(a.marked="keyword",t(s("form"),ae,o)):r=="keyword c"||r=="async"?t(n?h:k):r=="("?t(s(")"),N,c(")"),o,u):r=="operator"||r=="spread"?t(n?h:k):r=="["?t(s("]"),fe,o,u):r=="{"?H(Y,"}",null,u):r=="quasi"?f(X,u):r=="new"?t(Gr(n)):t()}function N(r){return r.match(/[;\}\)\],]/)?f():f(k)}function q(r,e){return r==","?t(N):P(r,e,!1)}function P(r,e,n){var i=n==0?q:P,u=n==0?k:h;if(r=="=>")return t(_,n?Vr:gr,V);if(r=="operator")return/\+\+|--/.test(e)||p&&e=="!"?t(i):p&&e=="<"&&a.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?t(s(">"),w(d,">"),o,i):e=="?"?t(k,c(":"),u):t(u);if(r=="quasi")return f(X,i);if(r!=";"){if(r=="(")return H(h,")","call",i);if(r==".")return t(Lr,i);if(r=="[")return t(s("]"),N,c("]"),o,i);if(p&&e=="as")return a.marked="keyword",t(d,i);if(r=="regexp")return a.state.lastType=a.marked="operator",a.stream.backUp(a.stream.pos-a.stream.start-1),t(u)}}function X(r,e){return r=="quasi"?e.slice(e.length-2)=="${"?t(N,Ur):t(X):f()}function Ur(r){if(r=="}")return a.marked="string.special",a.state.tokenize=F,t(X)}function gr(r){return ur(a.stream,a.state),f(r=="{"?v:k)}function Vr(r){return ur(a.stream,a.state),f(r=="{"?v:h)}function Gr(r){return function(e){return e=="."?t(r?Jr:Hr):e=="variable"&&p?t(Zr,r?P:q):f(r?h:k)}}function Hr(r,e){if(e=="target")return a.marked="keyword",t(q)}function Jr(r,e){if(e=="target")return a.marked="keyword",t(P)}function Kr(r){return r==":"?t(o,v):f(q,c(";"),o)}function Lr(r){if(r=="variable")return a.marked="property",t()}function Y(r,e){if(r=="async")return a.marked="property",t(Y);if(r=="variable"||a.style=="keyword"){if(a.marked="property",e=="get"||e=="set")return t(Mr);var n;return p&&a.state.fatArrowAt==a.stream.start&&(n=a.stream.match(/^\s*:\s*/,!1))&&(a.state.fatArrowAt=a.stream.pos+n[0].length),t(E)}else{if(r=="number"||r=="string")return a.marked=ir?"property":a.style+" property",t(E);if(r=="jsonld-keyword")return t(E);if(p&&Q(e))return a.marked="keyword",t(Y);if(r=="[")return t(k,C,c("]"),E);if(r=="spread")return t(h,E);if(e=="*")return a.marked="keyword",t(Y);if(r==":")return f(E)}}function Mr(r){return r=="variable"?(a.marked="property",t($)):f(E)}function E(r){if(r==":")return t(h);if(r=="(")return f($)}function w(r,e,n){function i(u,l){if(n?n.indexOf(u)>-1:u==","){var m=a.state.lexical;return m.info=="call"&&(m.pos=(m.pos||0)+1),t(function(x,g){return x==e||g==e?f():f(r)},i)}return u==e||l==e?t():n&&n.indexOf(";")>-1?f(r):t(c(e))}return function(u,l){return u==e||l==e?t():f(r,i)}}function H(r,e,n){for(var i=3;i"),d);if(r=="quasi")return f(cr,A)}function Xr(r){if(r=="=>")return t(d)}function sr(r){return r.match(/[\}\)\]]/)?t():r==","||r==";"?t(sr):f(J,sr)}function J(r,e){if(r=="variable"||a.style=="keyword")return a.marked="property",t(J);if(e=="?"||r=="number"||r=="string")return t(J);if(r==":")return t(d);if(r=="[")return t(c("variable"),Qr,c("]"),J);if(r=="(")return f(B,J);if(!r.match(/[;\}\)\],]/))return t()}function cr(r,e){return r=="quasi"?e.slice(e.length-2)=="${"?t(d,Yr):t(cr):f()}function Yr(r){if(r=="}")return a.marked="string.special",a.state.tokenize=F,t(cr)}function lr(r,e){return r=="variable"&&a.stream.match(/^\s*[?:]/,!1)||e=="?"?t(lr):r==":"?t(d):r=="spread"?t(lr):f(d)}function A(r,e){if(e=="<")return t(s(">"),w(d,">"),o,A);if(e=="|"||r=="."||e=="&")return t(d);if(r=="[")return t(d,c("]"),A);if(e=="extends"||e=="implements")return a.marked="keyword",t(d);if(e=="?")return t(d,c(":"),d)}function Zr(r,e){if(e=="<")return t(s(">"),w(d,">"),o,A)}function rr(){return f(d,re)}function re(r,e){if(e=="=")return t(d)}function dr(r,e){return e=="enum"?(a.marked="keyword",t(Er)):f(z,C,j,te)}function z(r,e){if(p&&Q(e))return a.marked="keyword",t(z);if(r=="variable")return S(e),t();if(r=="spread")return t(z);if(r=="[")return H(ee,"]");if(r=="{")return H(Ar,"}")}function Ar(r,e){return r=="variable"&&!a.stream.match(/^\s*:/,!1)?(S(e),t(j)):(r=="variable"&&(a.marked="property"),r=="spread"?t(z):r=="}"?f():r=="["?t(k,c("]"),c(":"),Ar):t(c(":"),z,j))}function ee(){return f(z,j)}function j(r,e){if(e=="=")return t(h)}function te(r){if(r==",")return t(dr)}function Tr(r,e){if(r=="keyword b"&&e=="else")return t(s("form","else"),v,o)}function jr(r,e){if(e=="await")return t(jr);if(r=="(")return t(s(")"),ne,o)}function ne(r){return r=="var"?t(dr,W):r=="variable"?t(W):f(W)}function W(r,e){return r==")"?t():r==";"?t(W):e=="in"||e=="of"?(a.marked="keyword",t(k,W)):f(k,W)}function $(r,e){if(e=="*")return a.marked="keyword",t($);if(r=="variable")return S(e),t($);if(r=="(")return t(_,s(")"),w(I,")"),o,zr,v,V);if(p&&e=="<")return t(s(">"),w(rr,">"),o,$)}function B(r,e){if(e=="*")return a.marked="keyword",t(B);if(r=="variable")return S(e),t(B);if(r=="(")return t(_,s(")"),w(I,")"),o,zr,V);if(p&&e=="<")return t(s(">"),w(rr,">"),o,B)}function $r(r,e){if(r=="keyword"||r=="variable")return a.marked="type",t($r);if(e=="<")return t(s(">"),w(rr,">"),o)}function I(r,e){return e=="@"&&t(k,I),r=="spread"?t(I):p&&Q(e)?(a.marked="keyword",t(I)):p&&r=="this"?t(C,j):f(z,C,j)}function ae(r,e){return r=="variable"?Or(r,e):er(r,e)}function Or(r,e){if(r=="variable")return S(e),t(er)}function er(r,e){if(e=="<")return t(s(">"),w(rr,">"),o,er);if(e=="extends"||e=="implements"||p&&r==",")return e=="implements"&&(a.marked="keyword"),t(p?d:k,er);if(r=="{")return t(s("}"),T,o)}function T(r,e){if(r=="async"||r=="variable"&&(e=="static"||e=="get"||e=="set"||p&&Q(e))&&a.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return a.marked="keyword",t(T);if(r=="variable"||a.style=="keyword")return a.marked="property",t(tr,T);if(r=="number"||r=="string")return t(tr,T);if(r=="[")return t(k,C,c("]"),tr,T);if(e=="*")return a.marked="keyword",t(T);if(p&&r=="(")return f(B,T);if(r==";"||r==",")return t(T);if(r=="}")return t();if(e=="@")return t(k,T)}function tr(r,e){if(e=="!"||e=="?")return t(tr);if(r==":")return t(d,j);if(e=="=")return t(h);var n=a.state.lexical.prev;return f(n&&n.info=="interface"?B:$)}function ie(r,e){return e=="*"?(a.marked="keyword",t(mr,c(";"))):e=="default"?(a.marked="keyword",t(k,c(";"))):r=="{"?t(w(_r,"}"),mr,c(";")):f(v)}function _r(r,e){if(e=="as")return a.marked="keyword",t(c("variable"));if(r=="variable")return f(h,_r)}function ue(r){return r=="string"?t():r=="("?f(k):r=="."?f(q):f(nr,qr,mr)}function nr(r,e){return r=="{"?H(nr,"}"):(r=="variable"&&S(e),e=="*"&&(a.marked="keyword"),t(oe))}function qr(r){if(r==",")return t(nr,qr)}function oe(r,e){if(e=="as")return a.marked="keyword",t(nr)}function mr(r,e){if(e=="from")return a.marked="keyword",t(k)}function fe(r){return r=="]"?t():f(w(h,"]"))}function Er(){return f(s("form"),z,c("{"),s("}"),w(se,"}"),o,o)}function se(){return f(z,j)}function ce(r,e){return r.lastType=="operator"||r.lastType==","||wr.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}function le(r,e,n){return e.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||e.lastType=="quasi"&&/\{\s*$/.test(r.string.slice(0,r.pos-(n||0)))}return{name:b.name,startState:function(r){var e={tokenize:O,lastType:"sof",cc:[],lexical:new br(-r,0,"block",!1),localVars:b.localVars,context:b.localVars&&new U(null,null,!1),indented:0};return b.globalVars&&typeof b.globalVars=="object"&&(e.globalVars=b.globalVars),e},token:function(r,e){if(r.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=r.indentation(),ur(r,e)),e.tokenize!=M&&r.eatSpace())return null;var n=e.tokenize(r,e);return D=="comment"?n:(e.lastType=D=="operator"&&(L=="++"||L=="--")?"incdec":D,Br(e,n,D,L,r))},indent:function(r,e,n){if(r.tokenize==M||r.tokenize==F)return null;if(r.tokenize!=O)return 0;var i=e&&e.charAt(0),u=r.lexical,l;if(!/^\s*else\b/.test(e))for(var m=r.cc.length-1;m>=0;--m){var x=r.cc[m];if(x==o)u=u.prev;else if(x!=Tr&&x!=V)break}for(;(u.type=="stat"||u.type=="form")&&(i=="}"||(l=r.cc[r.cc.length-1])&&(l==q||l==P)&&!/^[,\.=+\-*:?[\(]/.test(e));)u=u.prev;kr&&u.type==")"&&u.prev.type=="stat"&&(u=u.prev);var g=u.type,pr=i==g;return g=="vardef"?u.indented+(r.lastType=="operator"||r.lastType==","?u.info.length+1:0):g=="form"&&i=="{"?u.indented:g=="form"?u.indented+n.unit:g=="stat"?u.indented+(ce(r,e)?kr||n.unit:0):u.info=="switch"&&!pr&&b.doubleIndentSwitch!=0?u.indented+(/^(?:case|default)\b/.test(e)?n.unit:2*n.unit):u.align?u.column+(pr?0:1):u.indented+(pr?0:n.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:yr?void 0:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}const de=ar({name:"javascript"}),me=ar({name:"json",json:!0}),pe=ar({name:"json",jsonld:!0}),ke=ar({name:"typescript",typescript:!0});export{ke as i,me as n,pe as r,de as t}; diff --git a/docs/assets/javascript-DgAW-dkP.js b/docs/assets/javascript-DgAW-dkP.js new file mode 100644 index 0000000..92c6545 --- /dev/null +++ b/docs/assets/javascript-DgAW-dkP.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"JavaScript","name":"javascript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.objectliteral.js","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.js"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js"}},"name":"meta.array.literal.js","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"variable.parameter.js"}},"match":"(?:(?)","name":"meta.arrow.js"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.js","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.js","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.js","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.js"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.js","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.js"},"2":{"name":"entity.name.tag.directive.js"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.js"}},"name":"meta.tag.js","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"()|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.js"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.js"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|'(?:\\\\*(?!/)|\\\\\\\\(?!')|[^*\\\\\\\\])*?'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.js"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.js"},{"match":"[!=]==?","name":"keyword.operator.comparison.js"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.js"},{"captures":{"1":{"name":"keyword.operator.logical.js"},"2":{"name":"keyword.operator.assignment.compound.js"},"3":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.js"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"match":"--","name":"keyword.operator.decrement.js"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.js"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.js"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.js variable.object.property.js"},{"match":"\\\\?","name":"keyword.operator.optional.js"},{"match":"!","name":"keyword.operator.definiteassignment.js"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","name":"meta.function-call.js","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.js","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.js punctuation.accessor.optional.js"},{"match":"!","name":"meta.function-call.js keyword.operator.definiteassignment.js"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.js"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.constant.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.js"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.js"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?))","end":"(/>)|()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.js"},"2":{"name":"punctuation.definition.tag.begin.js"},"3":{"name":"entity.name.tag.namespace.js"},"4":{"name":"punctuation.separator.namespace.js"},"5":{"name":"entity.name.tag.js"},"6":{"name":"support.class.component.js"},"7":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.js","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"(?=|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.js","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.js"},"jsx-tag-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.without-attributes.js","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)"}]},"literal":{"patterns":[{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#array-literal"},{"include":"#this-literal"},{"include":"#super-literal"}]},"method-declaration":{"patterns":[{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"keyword.operator.new.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"storage.type.property.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.js"},{"captures":{"0":{"name":"meta.object-literal.key.js"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js"}},"end":"(?=[,}])","name":"meta.object.member.js","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js"},{"captures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"storage.modifier.js"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.js"}},"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?])","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.js meta.return.type.arrow.js keyword.operator.type.annotation.js"}},"contentName":"meta.arrow.js meta.return.type.arrow.js","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.js"},"2":{"name":"support.type.object.module.js"},"3":{"name":"punctuation.accessor.js"},"4":{"name":"punctuation.accessor.optional.js"},"5":{"name":"support.type.object.module.js"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\`)","end":"(?=\`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.js"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"},"2":{"name":"string.template.js punctuation.definition.string.template.begin.js"}},"contentName":"string.template.js","end":"\`","endCaptures":{"0":{"name":"string.template.js punctuation.definition.string.template.end.js"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.js"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.js"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.js","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.js"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.js","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.js","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.js"},"2":{"name":"entity.name.type.js"},"3":{"name":"keyword.operator.expression.extends.js"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.js"},"2":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.begin.js"}},"contentName":"meta.type.parameters.js","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.js"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.object.type.js","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.js"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.js"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.js"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"meta.type.paren.cover.js","patterns":[{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(??{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.constant.js entity.name.function.js"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.js entity.name.function.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"}},"end":"(?=$|^|[]),;}]|((?|\\\\{%\\\\s*(block|filter|for|if|macro|raw))","foldingStopMarker":"(|\\\\{%\\\\s*(end(?:block|filter|for|if|macro|raw))\\\\s*%})","name":"jinja-html","patterns":[{"include":"source.jinja"},{"include":"text.html.basic"}],"scopeName":"text.html.jinja","embeddedLangs":["html"]}`)),n=[...e,a],t=Object.freeze(JSON.parse(`{"displayName":"Jinja","foldingStartMarker":"(\\\\{%\\\\s*(block|filter|for|if|macro|raw))","foldingStopMarker":"(\\\\{%\\\\s*(end(?:block|filter|for|if|macro|raw))\\\\s*%})","name":"jinja","patterns":[{"begin":"(\\\\{%)\\\\s*(raw)\\\\s*(%})","captures":{"1":{"name":"entity.other.jinja.delimiter.tag"},"2":{"name":"keyword.control.jinja"},"3":{"name":"entity.other.jinja.delimiter.tag"}},"end":"(\\\\{%)\\\\s*(endraw)\\\\s*(%})","name":"comment.block.jinja.raw"},{"include":"#comments"},{"begin":"\\\\{\\\\{-?","captures":[{"name":"variable.entity.other.jinja.delimiter"}],"end":"-?}}","name":"variable.meta.scope.jinja","patterns":[{"include":"#expression"}]},{"begin":"\\\\{%-?","captures":[{"name":"entity.other.jinja.delimiter.tag"}],"end":"-?%}","name":"meta.scope.jinja.tag","patterns":[{"include":"#expression"}]}],"repository":{"comments":{"begin":"\\\\{#-?","captures":[{"name":"entity.other.jinja.delimiter.comment"}],"end":"-?#}","name":"comment.block.jinja","patterns":[{"include":"#comments"}]},"escaped_char":{"match":"\\\\\\\\x[0-9A-F]{2}","name":"constant.character.escape.hex.jinja"},"escaped_unicode_char":{"captures":{"1":{"name":"constant.character.escape.unicode.16-bit-hex.jinja"},"2":{"name":"constant.character.escape.unicode.32-bit-hex.jinja"},"3":{"name":"constant.character.escape.unicode.name.jinja"}},"match":"(\\\\\\\\U\\\\h{8})|(\\\\\\\\u\\\\h{4})|(\\\\\\\\N\\\\{[ A-Za-z]+})"},"expression":{"patterns":[{"captures":{"1":{"name":"keyword.control.jinja"},"2":{"name":"variable.other.jinja.block"}},"match":"\\\\s*\\\\b(block)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.control.jinja"},"2":{"name":"variable.other.jinja.filter"}},"match":"\\\\s*\\\\b(filter)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.control.jinja"},"2":{"name":"variable.other.jinja.test"}},"match":"\\\\s*\\\\b(is)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.control.jinja"}},"match":"(?<=\\\\{%-?)\\\\s*\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*[,=])"},{"match":"\\\\b(and|else|if|in|import|not|or|recursive|with(out)?\\\\s+context)\\\\b","name":"keyword.control.jinja"},{"match":"\\\\b(true|false|none)\\\\b","name":"constant.language.jinja"},{"match":"\\\\b(loop|super|self|varargs|kwargs)\\\\b","name":"variable.language.jinja"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.other.jinja"},{"match":"([-+]|\\\\*\\\\*?|//|[%/])","name":"keyword.operator.arithmetic.jinja"},{"captures":{"1":{"name":"punctuation.other.jinja"},"2":{"name":"variable.other.jinja.filter"}},"match":"(\\\\|)([A-Z_a-z][0-9A-Z_a-z]*)"},{"captures":{"1":{"name":"punctuation.other.jinja"},"2":{"name":"variable.other.jinja.attribute"}},"match":"(\\\\.)([A-Z_a-z][0-9A-Z_a-z]*)"},{"begin":"\\\\[","captures":[{"name":"punctuation.other.jinja"}],"end":"]","patterns":[{"include":"#expression"}]},{"begin":"\\\\(","captures":[{"name":"punctuation.other.jinja"}],"end":"\\\\)","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","captures":[{"name":"punctuation.other.jinja"}],"end":"}","patterns":[{"include":"#expression"}]},{"match":"([,.:|])","name":"punctuation.other.jinja"},{"match":"(==|<=|=>|[<>]|!=)","name":"keyword.operator.comparison.jinja"},{"match":"=","name":"keyword.operator.assignment.jinja"},{"begin":"\\"","beginCaptures":[{"name":"punctuation.definition.string.begin.jinja"}],"end":"\\"","endCaptures":[{"name":"punctuation.definition.string.end.jinja"}],"name":"string.quoted.double.jinja","patterns":[{"include":"#string"}]},{"begin":"'","beginCaptures":[{"name":"punctuation.definition.string.begin.jinja"}],"end":"'","endCaptures":[{"name":"punctuation.definition.string.end.jinja"}],"name":"string.quoted.single.jinja","patterns":[{"include":"#string"}]},{"begin":"@/","beginCaptures":[{"name":"punctuation.definition.regexp.begin.jinja"}],"end":"/","endCaptures":[{"name":"punctuation.definition.regexp.end.jinja"}],"name":"string.regexp.jinja","patterns":[{"include":"#simple_escapes"}]}]},"simple_escapes":{"captures":{"1":{"name":"constant.character.escape.newline.jinja"},"2":{"name":"constant.character.escape.backlash.jinja"},"3":{"name":"constant.character.escape.double-quote.jinja"},"4":{"name":"constant.character.escape.single-quote.jinja"},"5":{"name":"constant.character.escape.bell.jinja"},"6":{"name":"constant.character.escape.backspace.jinja"},"7":{"name":"constant.character.escape.formfeed.jinja"},"8":{"name":"constant.character.escape.linefeed.jinja"},"9":{"name":"constant.character.escape.return.jinja"},"10":{"name":"constant.character.escape.tab.jinja"},"11":{"name":"constant.character.escape.vertical-tab.jinja"}},"match":"(\\\\\\\\\\\\n)|(\\\\\\\\\\\\\\\\)|(\\\\\\\\\\")|(\\\\\\\\')|(\\\\\\\\a)|(\\\\\\\\b)|(\\\\\\\\f)|(\\\\\\\\n)|(\\\\\\\\r)|(\\\\\\\\t)|(\\\\\\\\v)"},"string":{"patterns":[{"include":"#simple_escapes"},{"include":"#escaped_char"},{"include":"#escaped_unicode_char"}]}},"scopeName":"source.jinja","embeddedLangs":["jinja-html"]}`)),i=[...n,t];export{i as default}; diff --git a/docs/assets/jison-DJ5B-y0A.js b/docs/assets/jison-DJ5B-y0A.js new file mode 100644 index 0000000..835879c --- /dev/null +++ b/docs/assets/jison-DJ5B-y0A.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";var n=Object.freeze(JSON.parse(`{"displayName":"Jison","fileTypes":["jison"],"injections":{"L:(meta.action.jison - (comment | string)), source.js.embedded.jison - (comment | string), source.js.embedded.source - (comment | string.quoted.double | string.quoted.single)":{"patterns":[{"match":"\\\\\${2}","name":"variable.language.semantic-value.jison"},{"match":"@\\\\$","name":"variable.language.result-location.jison"},{"match":"##\\\\$|\\\\byysp\\\\b","name":"variable.language.stack-index-0.jison"},{"match":"#\\\\S+#","name":"support.variable.token-reference.jison"},{"match":"#\\\\$","name":"variable.language.result-id.jison"},{"match":"\\\\$(?:-?\\\\d+|[_[:alpha:]](?:[-\\\\w]*\\\\w)?)","name":"support.variable.token-value.jison"},{"match":"@(?:-?\\\\d+|[_[:alpha:]](?:[-\\\\w]*\\\\w)?)","name":"support.variable.token-location.jison"},{"match":"##(?:-?\\\\d+|[_[:alpha:]](?:[-\\\\w]*\\\\w)?)","name":"support.variable.stack-index.jison"},{"match":"#(?:-?\\\\d+|[_[:alpha:]](?:[-\\\\w]*\\\\w)?)","name":"support.variable.token-id.jison"},{"match":"\\\\byy(?:l(?:eng|ineno|oc|stack)|rulelength|s(?:tate|s?tack)|text|vstack)\\\\b","name":"variable.language.jison"},{"match":"\\\\byy(?:clearin|erro[kr])\\\\b","name":"keyword.other.jison"}]}},"name":"jison","patterns":[{"begin":"%%","beginCaptures":{"0":{"name":"meta.separator.section.jison"}},"end":"\\\\z","patterns":[{"begin":"%%","beginCaptures":{"0":{"name":"meta.separator.section.jison"}},"end":"\\\\z","patterns":[{"begin":"\\\\G","contentName":"source.js.embedded.jison","end":"\\\\z","name":"meta.section.epilogue.jison","patterns":[{"include":"#epilogue_section"}]}]},{"begin":"\\\\G","end":"(?=%%)","name":"meta.section.rules.jison","patterns":[{"include":"#rules_section"}]}]},{"begin":"^","end":"(?=%%)","name":"meta.section.declarations.jison","patterns":[{"include":"#declarations_section"}]}],"repository":{"actions":{"patterns":[{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.action.begin.jison"}},"contentName":"source.js.embedded.jison","end":"}}","endCaptures":{"0":{"name":"punctuation.definition.action.end.jison"}},"name":"meta.action.jison","patterns":[{"include":"source.js"}]},{"begin":"(?=%\\\\{)","end":"(?<=%})","name":"meta.action.jison","patterns":[{"include":"#user_code_blocks"}]}]},"comments":{"patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.jison"}},"end":"$","name":"comment.line.double-slash.jison"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.jison"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.jison"}},"name":"comment.block.jison"}]},"declarations_section":{"patterns":[{"include":"#comments"},{"begin":"^\\\\s*(%lex)\\\\s*$","beginCaptures":{"1":{"name":"entity.name.tag.lexer.begin.jison"}},"end":"^\\\\s*(/lex)\\\\b","endCaptures":{"1":{"name":"entity.name.tag.lexer.end.jison"}},"patterns":[{"begin":"%%","beginCaptures":{"0":{"name":"meta.separator.section.jisonlex"}},"end":"(?=/lex)","patterns":[{"begin":"^%%","beginCaptures":{"0":{"name":"meta.separator.section.jisonlex"}},"end":"(?=/lex)","patterns":[{"begin":"\\\\G","contentName":"source.js.embedded.jisonlex","end":"(?=/lex)","name":"meta.section.user-code.jisonlex","patterns":[{"include":"source.jisonlex#user_code_section"}]}]},{"begin":"\\\\G","end":"^(?=%%|/lex)","name":"meta.section.rules.jisonlex","patterns":[{"include":"source.jisonlex#rules_section"}]}]},{"begin":"^","end":"(?=%%|/lex)","name":"meta.section.definitions.jisonlex","patterns":[{"include":"source.jisonlex#definitions_section"}]}]},{"begin":"(?=%\\\\{)","end":"(?<=%})","name":"meta.section.prologue.jison","patterns":[{"include":"#user_code_blocks"}]},{"include":"#options_declarations"},{"match":"%(ebnf|left|nonassoc|parse-param|right|start)\\\\b","name":"keyword.other.declaration.$1.jison"},{"include":"#include_declarations"},{"begin":"%(code)\\\\b","beginCaptures":{"0":{"name":"keyword.other.declaration.$1.jison"}},"end":"$","name":"meta.code.jison","patterns":[{"include":"#comments"},{"include":"#rule_actions"},{"match":"(init|required)","name":"keyword.other.code-qualifier.$1.jison"},{"include":"#quoted_strings"},{"match":"\\\\b[_[:alpha:]](?:[-\\\\w]*\\\\w)?\\\\b","name":"string.unquoted.jison"}]},{"begin":"%(parser-type)\\\\b","beginCaptures":{"0":{"name":"keyword.other.declaration.$1.jison"}},"end":"$","name":"meta.parser-type.jison","patterns":[{"include":"#comments"},{"include":"#quoted_strings"},{"match":"\\\\b[_[:alpha:]](?:[-\\\\w]*\\\\w)?\\\\b","name":"string.unquoted.jison"}]},{"begin":"%(token)\\\\b","beginCaptures":{"0":{"name":"keyword.other.declaration.$1.jison"}},"end":"$|(%%|;)","endCaptures":{"1":{"name":"punctuation.terminator.declaration.token.jison"}},"name":"meta.token.jison","patterns":[{"include":"#comments"},{"include":"#numbers"},{"include":"#quoted_strings"},{"match":"<[_[:alpha:]](?:[-\\\\w]*\\\\w)?>","name":"invalid.unimplemented.jison"},{"match":"\\\\S+","name":"entity.other.token.jison"}]},{"match":"%(debug|import)\\\\b","name":"keyword.other.declaration.$1.jison"},{"match":"%prec\\\\b","name":"invalid.illegal.jison"},{"match":"%[_[:alpha:]](?:[-\\\\w]*\\\\w)?\\\\b","name":"invalid.unimplemented.jison"},{"include":"#numbers"},{"include":"#quoted_strings"}]},"epilogue_section":{"patterns":[{"include":"#user_code_include_declarations"},{"include":"source.js"}]},"include_declarations":{"patterns":[{"begin":"(%(include))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration.$2.jison"}},"end":"(?<=[\\"'])|(?=\\\\s)","name":"meta.include.jison","patterns":[{"include":"#include_paths"}]}]},"include_paths":{"patterns":[{"include":"#quoted_strings"},{"begin":"(?=\\\\S)","end":"(?=\\\\s)","name":"string.unquoted.jison","patterns":[{"include":"source.js#string_escapes"}]}]},"numbers":{"patterns":[{"captures":{"1":{"name":"storage.type.number.jison"},"2":{"name":"constant.numeric.integer.hexadecimal.jison"}},"match":"(0[Xx])(\\\\h+)"},{"match":"\\\\d+","name":"constant.numeric.integer.decimal.jison"}]},"options_declarations":{"patterns":[{"begin":"%options\\\\b","beginCaptures":{"0":{"name":"keyword.other.options.jison"}},"end":"^(?=\\\\S|\\\\s*$)","name":"meta.options.jison","patterns":[{"include":"#comments"},{"match":"\\\\b[_[:alpha:]](?:[-\\\\w]*\\\\w)?\\\\b","name":"entity.name.constant.jison"},{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.option.assignment.jison"}},"end":"(?<=[\\"'])|(?=\\\\s)","patterns":[{"include":"#comments"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.$1.jison"},{"include":"#numbers"},{"include":"#quoted_strings"},{"match":"\\\\S+","name":"string.unquoted.jison"}]},{"include":"#quoted_strings"}]}]},"quoted_strings":{"patterns":[{"begin":"\\"","end":"\\"","name":"string.quoted.double.jison","patterns":[{"include":"source.js#string_escapes"}]},{"begin":"'","end":"'","name":"string.quoted.single.jison","patterns":[{"include":"source.js#string_escapes"}]}]},"rule_actions":{"patterns":[{"include":"#actions"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.action.begin.jison"}},"contentName":"source.js.embedded.jison","end":"}","endCaptures":{"0":{"name":"punctuation.definition.action.end.jison"}},"name":"meta.action.jison","patterns":[{"include":"source.js"}]},{"include":"#include_declarations"},{"begin":"->|\u2192","beginCaptures":{"0":{"name":"punctuation.definition.action.arrow.jison"}},"contentName":"source.js.embedded.jison","end":"$","name":"meta.action.jison","patterns":[{"include":"source.js"}]}]},"rules_section":{"patterns":[{"include":"#comments"},{"include":"#actions"},{"include":"#include_declarations"},{"begin":"\\\\b[_[:alpha:]](?:[-\\\\w]*\\\\w)?\\\\b","beginCaptures":{"0":{"name":"entity.name.constant.rule-result.jison"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.jison"}},"name":"meta.rule.jison","patterns":[{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"keyword.operator.rule-components.assignment.jison"}},"end":"(?=;)","name":"meta.rule-components.jison","patterns":[{"include":"#comments"},{"include":"#quoted_strings"},{"captures":{"1":{"name":"punctuation.definition.named-reference.begin.jison"},"2":{"name":"entity.name.other.reference.jison"},"3":{"name":"punctuation.definition.named-reference.end.jison"}},"match":"(\\\\[)([_[:alpha:]](?:[-\\\\w]*\\\\w)?)(])"},{"begin":"(%(prec))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.$2.jison"}},"end":"(?<=[\\"'])|(?=\\\\s)","name":"meta.prec.jison","patterns":[{"include":"#comments"},{"include":"#quoted_strings"},{"begin":"(?=\\\\S)","end":"(?=\\\\s)","name":"constant.other.token.jison"}]},{"match":"\\\\|","name":"keyword.operator.rule-components.separator.jison"},{"match":"\\\\b(?:EOF|error)\\\\b","name":"keyword.other.$0.jison"},{"match":"(?:%e(?:mpty|psilon)|\\\\b[\u0190\u025B\u03B5\u03F5])\\\\b","name":"keyword.other.empty.jison"},{"include":"#rule_actions"}]}]}]},"user_code_blocks":{"patterns":[{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.user-code-block.begin.jison"}},"contentName":"source.js.embedded.jison","end":"%}","endCaptures":{"0":{"name":"punctuation.definition.user-code-block.end.jison"}},"name":"meta.user-code-block.jison","patterns":[{"include":"source.js"}]}]},"user_code_include_declarations":{"patterns":[{"begin":"^(%(include))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration.$2.jison"}},"end":"(?<=[\\"'])|(?=\\\\s)","name":"meta.include.jison","patterns":[{"include":"#include_paths"}]}]}},"scopeName":"source.jison","embeddedLangs":["javascript"]}`)),t=[...e,n];export{t as default}; diff --git a/docs/assets/journeyDiagram-XKPGCS4Q-vqg3DbEv.js b/docs/assets/journeyDiagram-XKPGCS4Q-vqg3DbEv.js new file mode 100644 index 0000000..6c8dad0 --- /dev/null +++ b/docs/assets/journeyDiagram-XKPGCS4Q-vqg3DbEv.js @@ -0,0 +1,139 @@ +import"./purify.es-N-2faAGj.js";import{u as tt}from"./src-Bp_72rVO.js";import{t as et}from"./arc-CWuN1tfc.js";import{n as r}from"./src-faGJHwXX.js";import{B as gt,C as mt,U as xt,_ as kt,a as _t,b as j,c as bt,v as vt,z as $t}from"./chunk-ABZYJK2D-DAD3GlgM.js";import"./dist-BA8xhrl2.js";import{t as wt}from"./chunk-FMBD7UC4-DYXO3edG.js";import{a as Mt,i as Tt,o as it,t as Ct}from"./chunk-TZMSLE5B-BiNEgT46.js";var X=(function(){var t=r(function(i,n,l,u){for(l||(l={}),u=i.length;u--;l[i[u]]=n);return l},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],o=[1,10],s=[1,11],h=[1,12],y=[1,13],p=[1,14],f={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:r(function(i,n,l,u,d,c,x){var m=c.length-1;switch(d){case 1:return c[m-1];case 2:this.$=[];break;case 3:c[m-1].push(c[m]),this.$=c[m-1];break;case 4:case 5:this.$=c[m];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(c[m].substr(6)),this.$=c[m].substr(6);break;case 9:this.$=c[m].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=c[m].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(c[m].substr(8)),this.$=c[m].substr(8);break;case 13:u.addTask(c[m-1],c[m]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:o,14:s,16:h,17:y,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:o,14:s,16:h,17:y,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:r(function(i,n){if(n.recoverable)this.trace(i);else{var l=Error(i);throw l.hash=n,l}},"parseError"),parse:r(function(i){var n=this,l=[0],u=[],d=[null],c=[],x=this.table,m="",b=0,B=0,A=0,pt=2,Z=1,yt=c.slice.call(arguments,1),k=Object.create(this.lexer),I={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(I.yy[D]=this.yy[D]);k.setInput(i,I.yy),I.yy.lexer=k,I.yy.parser=this,k.yylloc===void 0&&(k.yylloc={});var Y=k.yylloc;c.push(Y);var dt=k.options&&k.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft($){l.length-=2*$,d.length-=$,c.length-=$}r(ft,"popStack");function J(){var $=u.pop()||k.lex()||Z;return typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=n.symbols_[$]||$),$}r(J,"lex");for(var _,W,S,v,q,P={},N,T,K,O;;){if(S=l[l.length-1],this.defaultActions[S]?v=this.defaultActions[S]:(_??(_=J()),v=x[S]&&x[S][_]),v===void 0||!v.length||!v[0]){var Q="";for(N in O=[],x[S])this.terminals_[N]&&N>pt&&O.push("'"+this.terminals_[N]+"'");Q=k.showPosition?"Parse error on line "+(b+1)+`: +`+k.showPosition()+` +Expecting `+O.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(b+1)+": Unexpected "+(_==Z?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Q,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:Y,expected:O})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+S+", token: "+_);switch(v[0]){case 1:l.push(_),d.push(k.yytext),c.push(k.yylloc),l.push(v[1]),_=null,W?(_=W,W=null):(B=k.yyleng,m=k.yytext,b=k.yylineno,Y=k.yylloc,A>0&&A--);break;case 2:if(T=this.productions_[v[1]][1],P.$=d[d.length-T],P._$={first_line:c[c.length-(T||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(T||1)].first_column,last_column:c[c.length-1].last_column},dt&&(P._$.range=[c[c.length-(T||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(P,[m,B,b,I.yy,v[1],d,c].concat(yt)),q!==void 0)return q;T&&(l=l.slice(0,-1*T*2),d=d.slice(0,-1*T),c=c.slice(0,-1*T)),l.push(this.productions_[v[1]][0]),d.push(P.$),c.push(P._$),K=x[l[l.length-2]][l[l.length-1]],l.push(K);break;case 3:return!0}}return!0},"parse")};f.lexer=(function(){return{EOF:1,parseError:r(function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw Error(i)},"parseError"),setInput:r(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:r(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===u.length?this.yylloc.first_column:0)+u[u.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(i){this.unput(this.match.slice(i))},"less"),pastInput:r(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var i=this.pastInput(),n=Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+n+"^"},"showPosition"),test_match:r(function(i,n){var l,u,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),u=i[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var c in d)this[c]=d[c];return!1}return!1},"test_match"),next:r(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,l,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),c=0;cn[0].length)){if(n=l,u=c,this.options.backtrack_lexer){if(i=this.test_match(l,d[c]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,d[u]),i===!1?!1:i):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r(function(){return this.next()||this.lex()},"lex"),begin:r(function(i){this.conditionStack.push(i)},"begin"),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:r(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:r(function(i){this.begin(i)},"pushState"),stateStackSize:r(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r(function(i,n,l,u){switch(l){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}})();function g(){this.yy={}}return r(g,"Parser"),g.prototype=f,f.Parser=g,new g})();X.parser=X;var Et=X,F="",G=[],V=[],L=[],It=r(function(){G.length=0,V.length=0,F="",L.length=0,_t()},"clear"),St=r(function(t){F=t,G.push(t)},"addSection"),At=r(function(){return G},"getSections"),Pt=r(function(){let t=nt(),e=0;for(;!t&&e<100;)t=nt(),e++;return V.push(...L),V},"getTasks"),jt=r(function(){let t=[];return V.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),Ft=r(function(t,e){let a=e.substr(1).split(":"),o=0,s=[];a.length===1?(o=Number(a[0]),s=[]):(o=Number(a[0]),s=a[1].split(","));let h=s.map(p=>p.trim()),y={section:F,type:F,people:h,task:t,score:o};L.push(y)},"addTask"),Bt=r(function(t){let e={section:F,type:F,description:t,task:t,classes:[]};V.push(e)},"addTaskOrg"),nt=r(function(){let t=r(function(a){return L[a].processed},"compileTask"),e=!0;for(let[a,o]of L.entries())t(a),e&&(e=o.processed);return e},"compileTasks"),st={getConfig:r(()=>j().journey,"getConfig"),clear:It,setDiagramTitle:xt,getDiagramTitle:mt,setAccTitle:gt,getAccTitle:vt,setAccDescription:$t,getAccDescription:kt,addSection:St,getSections:At,getTasks:Pt,addTask:Ft,addTaskOrg:Bt,getActors:r(function(){return jt()},"getActors")},Vt=r(t=>`.label { + font-family: ${t.fontFamily}; + color: ${t.textColor}; + } + .mouth { + stroke: #666; + } + + line { + stroke: ${t.textColor} + } + + .legend { + fill: ${t.textColor}; + font-family: ${t.fontFamily}; + } + + .label text { + fill: #333; + } + .label { + color: ${t.textColor} + } + + .face { + ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"}; + stroke: #999; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; + } + + .cluster rect { + } + + .cluster text { + fill: ${t.titleColor}; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${t.fontFamily}; + font-size: 12px; + background: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${t.fillType0?`fill: ${t.fillType0}`:""}; + } + .task-type-1, .section-type-1 { + ${t.fillType0?`fill: ${t.fillType1}`:""}; + } + .task-type-2, .section-type-2 { + ${t.fillType0?`fill: ${t.fillType2}`:""}; + } + .task-type-3, .section-type-3 { + ${t.fillType0?`fill: ${t.fillType3}`:""}; + } + .task-type-4, .section-type-4 { + ${t.fillType0?`fill: ${t.fillType4}`:""}; + } + .task-type-5, .section-type-5 { + ${t.fillType0?`fill: ${t.fillType5}`:""}; + } + .task-type-6, .section-type-6 { + ${t.fillType0?`fill: ${t.fillType6}`:""}; + } + .task-type-7, .section-type-7 { + ${t.fillType0?`fill: ${t.fillType7}`:""}; + } + + .actor-0 { + ${t.actor0?`fill: ${t.actor0}`:""}; + } + .actor-1 { + ${t.actor1?`fill: ${t.actor1}`:""}; + } + .actor-2 { + ${t.actor2?`fill: ${t.actor2}`:""}; + } + .actor-3 { + ${t.actor3?`fill: ${t.actor3}`:""}; + } + .actor-4 { + ${t.actor4?`fill: ${t.actor4}`:""}; + } + .actor-5 { + ${t.actor5?`fill: ${t.actor5}`:""}; + } + ${wt()} +`,"getStyles"),U=r(function(t,e){return Tt(t,e)},"drawRect"),Lt=r(function(t,e){let a=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),o=t.append("g");o.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function s(p){let f=et().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}r(s,"smile");function h(p){let f=et().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}r(h,"sad");function y(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r(y,"ambivalent"),e.score>3?s(o):e.score<3?h(o):y(o),a},"drawFace"),rt=r(function(t,e){let a=t.append("circle");return a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0&&a.attr("class",a.class),e.title!==void 0&&a.append("title").text(e.title),a},"drawCircle"),at=r(function(t,e){return Mt(t,e)},"drawText"),Rt=r(function(t,e){function a(s,h,y,p,f){return s+","+h+" "+(s+y)+","+h+" "+(s+y)+","+(h+p-f)+" "+(s+y-f*1.2)+","+(h+p)+" "+s+","+(h+p)}r(a,"genPoints");let o=t.append("polygon");o.attr("points",a(e.x,e.y,50,20,7)),o.attr("class","labelBox"),e.y+=e.labelMargin,e.x+=.5*e.labelMargin,at(t,e)},"drawLabel"),Nt=r(function(t,e,a){let o=t.append("g"),s=it();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=a.width*e.taskCount+a.diagramMarginX*(e.taskCount-1),s.height=a.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,U(o,s),lt(a)(e.text,o,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),ot=-1,Ot=r(function(t,e,a){let o=e.x+a.width/2,s=t.append("g");ot++,s.append("line").attr("id","task"+ot).attr("x1",o).attr("y1",e.y).attr("x2",o).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Lt(s,{cx:o,cy:300+(5-e.score)*30,score:e.score});let h=it();h.x=e.x,h.y=e.y,h.fill=e.fill,h.width=a.width,h.height=a.height,h.class="task task-type-"+e.num,h.rx=3,h.ry=3,U(s,h);let y=e.x+14;e.people.forEach(p=>{let f=e.actors[p].color;rt(s,{cx:y,cy:e.y,r:7,fill:f,stroke:"#000",title:p,pos:e.actors[p].position}),y+=10}),lt(a)(e.task,s,h.x,h.y,h.width,h.height,{class:"task"},a,e.colour)},"drawTask"),zt=r(function(t,e){Ct(t,e)},"drawBackgroundRect"),lt=(function(){function t(s,h,y,p,f,g,i,n){o(h.append("text").attr("x",y+f/2).attr("y",p+g/2+5).style("font-color",n).style("text-anchor","middle").text(s),i)}r(t,"byText");function e(s,h,y,p,f,g,i,n,l){let{taskFontSize:u,taskFontFamily:d}=n,c=s.split(//gi);for(let x=0;x{let h=C[s].color,y={cx:20,cy:o,r:7,fill:h,stroke:"#000",pos:C[s].position};R.drawCircle(t,y);let p=t.append("text").attr("visibility","hidden").text(s),f=p.node().getBoundingClientRect().width;p.remove();let g=[];if(f<=a)g=[s];else{let i=s.split(" "),n="";p=t.append("text").attr("visibility","hidden"),i.forEach(l=>{let u=n?`${n} ${l}`:l;if(p.text(u),p.node().getBoundingClientRect().width>a){if(n&&g.push(n),n=l,p.text(l),p.node().getBoundingClientRect().width>a){let d="";for(let c of l)d+=c,p.text(d+"-"),p.node().getBoundingClientRect().width>a&&(g.push(d.slice(0,-1)+"-"),d=c);n=d}}else n=u}),n&&g.push(n),p.remove()}g.forEach((i,n)=>{let l={x:40,y:o+7+n*20,fill:"#666",text:i,textMargin:e.boxTextMargin??5},u=R.drawText(t,l).node().getBoundingClientRect().width;u>z&&u>e.leftMargin-u&&(z=u)}),o+=Math.max(20,g.length*20)})}r(ct,"drawActorLegend");var M=j().journey,E=0,Yt=r(function(t,e,a,o){let s=j(),h=s.journey.titleColor,y=s.journey.titleFontSize,p=s.journey.titleFontFamily,f=s.securityLevel,g;f==="sandbox"&&(g=tt("#i"+e));let i=tt(f==="sandbox"?g.nodes()[0].contentDocument.body:"body");w.init();let n=i.select("#"+e);R.initGraphics(n);let l=o.db.getTasks(),u=o.db.getDiagramTitle(),d=o.db.getActors();for(let A in C)delete C[A];let c=0;d.forEach(A=>{C[A]={color:M.actorColours[c%M.actorColours.length],position:c},c++}),ct(n),E=M.leftMargin+z,w.insert(0,0,E,Object.keys(C).length*50),Wt(n,l,0);let x=w.getBounds();u&&n.append("text").text(u).attr("x",E).attr("font-size",y).attr("font-weight","bold").attr("y",25).attr("fill",h).attr("font-family",p);let m=x.stopy-x.starty+2*M.diagramMarginY,b=E+x.stopx+2*M.diagramMarginX;bt(n,m,b,M.useMaxWidth),n.append("line").attr("x1",E).attr("y1",M.height*4).attr("x2",b-E-4).attr("y2",M.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");let B=u?70:0;n.attr("viewBox",`${x.startx} -25 ${b} ${m+B}`),n.attr("preserveAspectRatio","xMinYMin meet"),n.attr("height",m+B+25)},"draw"),w={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:r(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:r(function(t,e,a,o){t[e]===void 0?t[e]=a:t[e]=o(a,t[e])},"updateVal"),updateBounds:r(function(t,e,a,o){let s=j().journey,h=this,y=0;function p(f){return r(function(g){y++;let i=h.sequenceItems.length-y+1;h.updateVal(g,"starty",e-i*s.boxMargin,Math.min),h.updateVal(g,"stopy",o+i*s.boxMargin,Math.max),h.updateVal(w.data,"startx",t-i*s.boxMargin,Math.min),h.updateVal(w.data,"stopx",a+i*s.boxMargin,Math.max),f!=="activation"&&(h.updateVal(g,"startx",t-i*s.boxMargin,Math.min),h.updateVal(g,"stopx",a+i*s.boxMargin,Math.max),h.updateVal(w.data,"starty",e-i*s.boxMargin,Math.min),h.updateVal(w.data,"stopy",o+i*s.boxMargin,Math.max))},"updateItemBounds")}r(p,"updateFn"),this.sequenceItems.forEach(p())},"updateBounds"),insert:r(function(t,e,a,o){let s=Math.min(t,a),h=Math.max(t,a),y=Math.min(e,o),p=Math.max(e,o);this.updateVal(w.data,"startx",s,Math.min),this.updateVal(w.data,"starty",y,Math.min),this.updateVal(w.data,"stopx",h,Math.max),this.updateVal(w.data,"stopy",p,Math.max),this.updateBounds(s,y,h,p)},"insert"),bumpVerticalPos:r(function(t){this.verticalPos+=t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:r(function(){return this.verticalPos},"getVerticalPos"),getBounds:r(function(){return this.data},"getBounds")},H=M.sectionFills,ht=M.sectionColours,Wt=r(function(t,e,a){let o=j().journey,s="",h=a+(o.height*2+o.diagramMarginY),y=0,p="#CCC",f="black",g=0;for(let[i,n]of e.entries()){if(s!==n.section){p=H[y%H.length],g=y%H.length,f=ht[y%ht.length];let u=0,d=n.section;for(let x=i;x(C[d]&&(u[d]=C[d]),u),{});n.x=i*o.taskMargin+i*o.width+E,n.y=h,n.width=o.diagramMarginX,n.height=o.diagramMarginY,n.colour=f,n.fill=p,n.num=g,n.actors=l,R.drawTask(t,n,o),w.insert(n.x,n.y,n.x+n.width+o.taskMargin,450)}},"drawTasks"),ut={setConf:Dt,draw:Yt},qt={parser:Et,db:st,renderer:ut,styles:Vt,init:r(t=>{ut.setConf(t.journey),st.clear()},"init")};export{qt as diagram}; diff --git a/docs/assets/json-Bk31jFSV.js b/docs/assets/json-Bk31jFSV.js new file mode 100644 index 0000000..42aa491 --- /dev/null +++ b/docs/assets/json-Bk31jFSV.js @@ -0,0 +1 @@ +import{t}from"./json-CdDqxu0N.js";export{t as default}; diff --git a/docs/assets/json-CdDqxu0N.js b/docs/assets/json-CdDqxu0N.js new file mode 100644 index 0000000..86bc4c8 --- /dev/null +++ b/docs/assets/json-CdDqxu0N.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}'))];export{n as t}; diff --git a/docs/assets/json5-CjWkyEJI.js b/docs/assets/json5-CjWkyEJI.js new file mode 100644 index 0000000..d73bb34 --- /dev/null +++ b/docs/assets/json5-CjWkyEJI.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse(`{"displayName":"JSON5","fileTypes":["json5"],"name":"json5","patterns":[{"include":"#comments"},{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json5"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json5"}},"name":"meta.structure.array.json5","patterns":[{"include":"#comments"},{"include":"#value"},{"match":",","name":"punctuation.separator.array.json5"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json5"}]},"comments":{"patterns":[{"match":"/{2}.*","name":"comment.single.json5"},{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json5"}},"end":"\\\\*/","name":"comment.block.documentation.json5"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json5"}},"end":"\\\\*/","name":"comment.block.json5"}]},"constant":{"match":"\\\\b(?:true|false|null|Infinity|NaN)\\\\b","name":"constant.language.json5"},"infinity":{"match":"(-)*\\\\b(?:Infinity|NaN)\\\\b","name":"constant.language.json5"},"key":{"name":"string.key.json5","patterns":[{"include":"#stringSingle"},{"include":"#stringDouble"},{"match":"[-0-9A-Z_a-z]","name":"string.key.json5"}]},"number":{"patterns":[{"match":"(0x)[0-9A-f]*","name":"constant.hex.numeric.json5"},{"match":"[+-.]?(?=[1-9]|0(?!\\\\d))\\\\d+(\\\\.\\\\d+)?([Ee][-+]?\\\\d+)?","name":"constant.dec.numeric.json5"}]},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json5"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json5"}},"name":"meta.structure.dictionary.json5","patterns":[{"include":"#comments"},{"include":"#key"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json5"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json5"}},"name":"meta.structure.dictionary.value.json5","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json5"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json5"}]},"stringDouble":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json5"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json5"}},"name":"string.quoted.json5","patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json5"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json5"}]},"stringSingle":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json5"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.json5"}},"name":"string.quoted.json5","patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json5"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json5"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#infinity"},{"include":"#number"},{"include":"#stringSingle"},{"include":"#stringDouble"},{"include":"#array"},{"include":"#object"}]}},"scopeName":"source.json5"}`))];export{n as default}; diff --git a/docs/assets/jsonc-CZHgddHr.js b/docs/assets/jsonc-CZHgddHr.js new file mode 100644 index 0000000..f2c9b2d --- /dev/null +++ b/docs/assets/jsonc-CZHgddHr.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse('{"displayName":"JSON with Comments","name":"jsonc","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json.comments"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json.comments"}},"name":"meta.structure.array.json.comments","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json.comments"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json.comments"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json.comments"}},"end":"\\\\*/","name":"comment.block.documentation.json.comments"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json.comments"}},"end":"\\\\*/","name":"comment.block.json.comments"},{"captures":{"1":{"name":"punctuation.definition.comment.json.comments"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json.comments"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json.comments"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json.comments"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json.comments"}},"name":"meta.structure.dictionary.json.comments","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json.comments"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json.comments"}},"name":"meta.structure.dictionary.value.json.comments","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.comments"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.comments"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json.comments"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json.comments"}},"name":"string.json.comments support.type.property-name.json.comments","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json.comments"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json.comments"}},"name":"string.quoted.double.json.comments","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json.comments"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json.comments"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json.comments"}'))];export{n as default}; diff --git a/docs/assets/jsonl-B6btUDNl.js b/docs/assets/jsonl-B6btUDNl.js new file mode 100644 index 0000000..91d33bc --- /dev/null +++ b/docs/assets/jsonl-B6btUDNl.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse('{"displayName":"JSON Lines","name":"jsonl","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json.lines"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json.lines"}},"name":"meta.structure.array.json.lines","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json.lines"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json.lines"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json.lines"}},"end":"\\\\*/","name":"comment.block.documentation.json.lines"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json.lines"}},"end":"\\\\*/","name":"comment.block.json.lines"},{"captures":{"1":{"name":"punctuation.definition.comment.json.lines"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json.lines"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json.lines"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json.lines"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json.lines"}},"name":"meta.structure.dictionary.json.lines","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json.lines"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json.lines"}},"name":"meta.structure.dictionary.value.json.lines","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.lines"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.lines"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json.lines"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json.lines"}},"name":"string.json.lines support.type.property-name.json.lines","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json.lines"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json.lines"}},"name":"string.quoted.double.json.lines","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json.lines"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json.lines"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json.lines"}'))];export{n as default}; diff --git a/docs/assets/jsonnet-DBu0H5Kn.js b/docs/assets/jsonnet-DBu0H5Kn.js new file mode 100644 index 0000000..36ac4d7 --- /dev/null +++ b/docs/assets/jsonnet-DBu0H5Kn.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse(`{"displayName":"Jsonnet","name":"jsonnet","patterns":[{"include":"#expression"},{"include":"#keywords"}],"repository":{"builtin-functions":{"patterns":[{"match":"\\\\bstd\\\\.(acos|asin|atan|ceil|char|codepoint|cos|exp|exponent)\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(filter|floor|force|length|log|makeArray|mantissa)\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(objectFields|objectHas|pow|sin|sqrt|tan|type|thisFile)\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(acos|asin|atan|ceil|char|codepoint|cos|exp|exponent)\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(abs|assertEqual|escapeString(Bash|Dollars|Json|Python))\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(filterMap|flattenArrays|foldl|foldr|format|join)\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(lines|manifest(Ini|Python(Vars)?)|map|max|min|mod)\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(s(?:et(Diff|Inter|Member|Union)??|ort))\\\\b","name":"support.function.jsonnet"},{"match":"\\\\bstd\\\\.(range|split|stringChars|substr|toString|uniq)\\\\b","name":"support.function.jsonnet"}]},"comment":{"patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.jsonnet"},{"match":"//.*$","name":"comment.line.jsonnet"},{"match":"#.*$","name":"comment.block.jsonnet"}]},"double-quoted-strings":{"begin":"\\"","end":"\\"","name":"string.quoted.double.jsonnet","patterns":[{"match":"\\\\\\\\([\\"/\\\\\\\\bfnrt]|(u\\\\h{4}))","name":"constant.character.escape.jsonnet"},{"match":"\\\\\\\\[^\\"/\\\\\\\\bfnrtu]","name":"invalid.illegal.jsonnet"}]},"expression":{"patterns":[{"include":"#literals"},{"include":"#comment"},{"include":"#single-quoted-strings"},{"include":"#double-quoted-strings"},{"include":"#triple-quoted-strings"},{"include":"#builtin-functions"},{"include":"#functions"}]},"functions":{"patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.jsonnet"}},"end":"\\\\)","name":"meta.function","patterns":[{"include":"#expression"}]}]},"keywords":{"patterns":[{"match":"[-!%\\\\&*+/:<=>^|~]","name":"keyword.operator.jsonnet"},{"match":"\\\\$","name":"keyword.other.jsonnet"},{"match":"\\\\b(self|super|import|importstr|local|tailstrict)\\\\b","name":"keyword.other.jsonnet"},{"match":"\\\\b(if|then|else|for|in|error|assert)\\\\b","name":"keyword.control.jsonnet"},{"match":"\\\\b(function)\\\\b","name":"storage.type.jsonnet"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(\\\\+??:::)","name":"variable.parameter.jsonnet"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(\\\\+??::)","name":"entity.name.type"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(\\\\+??:)","name":"variable.parameter.jsonnet"}]},"literals":{"patterns":[{"match":"\\\\b(true|false|null)\\\\b","name":"constant.language.jsonnet"},{"match":"\\\\b(\\\\d+([Ee][-+]?\\\\d+)?)\\\\b","name":"constant.numeric.jsonnet"},{"match":"\\\\b\\\\d+\\\\.\\\\d*([Ee][-+]?\\\\d+)?\\\\b","name":"constant.numeric.jsonnet"},{"match":"\\\\b\\\\.\\\\d+([Ee][-+]?\\\\d+)?\\\\b","name":"constant.numeric.jsonnet"}]},"single-quoted-strings":{"begin":"'","end":"'","name":"string.quoted.double.jsonnet","patterns":[{"match":"\\\\\\\\(['/\\\\\\\\bfnrt]|(u\\\\h{4}))","name":"constant.character.escape.jsonnet"},{"match":"\\\\\\\\[^'/\\\\\\\\bfnrtu]","name":"invalid.illegal.jsonnet"}]},"triple-quoted-strings":{"patterns":[{"begin":"\\\\|\\\\|\\\\|","end":"\\\\|\\\\|\\\\|","name":"string.quoted.triple.jsonnet"}]}},"scopeName":"source.jsonnet"}`))];export{n as default}; diff --git a/docs/assets/jssm-DoyK9Alq.js b/docs/assets/jssm-DoyK9Alq.js new file mode 100644 index 0000000..17022d9 --- /dev/null +++ b/docs/assets/jssm-DoyK9Alq.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse(`{"displayName":"JSSM","fileTypes":["jssm","jssm_state"],"name":"jssm","patterns":[{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.mn"}},"end":"\\\\*/","name":"comment.block.jssm"},{"begin":"//","end":"$","name":"comment.line.jssm"},{"begin":"\\\\$\\\\{","captures":{"0":{"name":"entity.name.function"}},"end":"}","name":"keyword.other"},{"match":"([0-9]*)(\\\\.)([0-9]*)(\\\\.)([0-9]*)","name":"constant.numeric"},{"match":"graph_layout(\\\\s*)(:)","name":"constant.language.jssmLanguage"},{"match":"machine_name(\\\\s*)(:)","name":"constant.language.jssmLanguage"},{"match":"machine_version(\\\\s*)(:)","name":"constant.language.jssmLanguage"},{"match":"jssm_version(\\\\s*)(:)","name":"constant.language.jssmLanguage"},{"match":"<->","name":"keyword.control.transition.jssmArrow.legal_legal"},{"match":"<-","name":"keyword.control.transition.jssmArrow.legal_none"},{"match":"->","name":"keyword.control.transition.jssmArrow.none_legal"},{"match":"<=>","name":"keyword.control.transition.jssmArrow.main_main"},{"match":"=>","name":"keyword.control.transition.jssmArrow.none_main"},{"match":"<=","name":"keyword.control.transition.jssmArrow.main_none"},{"match":"<~>","name":"keyword.control.transition.jssmArrow.forced_forced"},{"match":"~>","name":"keyword.control.transition.jssmArrow.none_forced"},{"match":"<~","name":"keyword.control.transition.jssmArrow.forced_none"},{"match":"<-=>","name":"keyword.control.transition.jssmArrow.legal_main"},{"match":"<=->","name":"keyword.control.transition.jssmArrow.main_legal"},{"match":"<-~>","name":"keyword.control.transition.jssmArrow.legal_forced"},{"match":"<~->","name":"keyword.control.transition.jssmArrow.forced_legal"},{"match":"<=~>","name":"keyword.control.transition.jssmArrow.main_forced"},{"match":"<~=>","name":"keyword.control.transition.jssmArrow.forced_main"},{"match":"([0-9]+)%","name":"constant.numeric.jssmProbability"},{"match":"'[^']*'","name":"constant.character.jssmAction"},{"match":"\\"[^\\"]*\\"","name":"entity.name.tag.jssmLabel.doublequoted"},{"match":"([!#\\\\&()+,.0-9?-Z_a-z])","name":"entity.name.tag.jssmLabel.atom"}],"scopeName":"source.jssm","aliases":["fsl"]}`))];export{n as default}; diff --git a/docs/assets/jsx-DARzpZIA.js b/docs/assets/jsx-DARzpZIA.js new file mode 100644 index 0000000..a8af3d0 --- /dev/null +++ b/docs/assets/jsx-DARzpZIA.js @@ -0,0 +1 @@ +import{t}from"./jsx-Ds6NZiun.js";export{t as default}; diff --git a/docs/assets/jsx-Ds6NZiun.js b/docs/assets/jsx-Ds6NZiun.js new file mode 100644 index 0000000..59dc4b7 --- /dev/null +++ b/docs/assets/jsx-Ds6NZiun.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"JSX","name":"jsx","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.objectliteral.js.jsx","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js.jsx"}},"name":"meta.array.literal.js.jsx","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"variable.parameter.js.jsx"}},"match":"(?:(?)","name":"meta.arrow.js.jsx"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.js.jsx","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js.jsx"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.js.jsx","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js.jsx"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.js.jsx","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.js.jsx"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.js.jsx","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.js.jsx"},"2":{"name":"entity.name.tag.directive.js.jsx"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.js.jsx"}},"name":"meta.tag.js.jsx","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.js.jsx"},{"match":"=","name":"keyword.operator.assignment.js.jsx"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"()|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.js.jsx"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.js.jsx"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|'(?:\\\\*(?!/)|\\\\\\\\(?!')|[^*\\\\\\\\])*?'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.js.jsx"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.js.jsx"},{"match":"[!=]==?","name":"keyword.operator.comparison.js.jsx"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.js.jsx"},{"captures":{"1":{"name":"keyword.operator.logical.js.jsx"},"2":{"name":"keyword.operator.assignment.compound.js.jsx"},"3":{"name":"keyword.operator.arithmetic.js.jsx"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.js.jsx"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.js.jsx"},{"match":"=","name":"keyword.operator.assignment.js.jsx"},{"match":"--","name":"keyword.operator.decrement.js.jsx"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.js.jsx"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.js.jsx"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.js.jsx"},"2":{"name":"keyword.operator.arithmetic.js.jsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.js.jsx"},"2":{"name":"keyword.operator.arithmetic.js.jsx"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.js.jsx variable.object.property.js.jsx"},{"match":"\\\\?","name":"keyword.operator.optional.js.jsx"},{"match":"!","name":"keyword.operator.definiteassignment.js.jsx"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","name":"meta.function-call.js.jsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.js.jsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.js.jsx punctuation.accessor.optional.js.jsx"},{"match":"!","name":"meta.function-call.js.jsx keyword.operator.definiteassignment.js.jsx"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.js.jsx"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"variable.other.constant.property.js.jsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"variable.other.property.js.jsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.js.jsx"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.js.jsx"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?))","end":"(/>)|()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.js.jsx"},"2":{"name":"punctuation.definition.tag.begin.js.jsx"},"3":{"name":"entity.name.tag.namespace.js.jsx"},"4":{"name":"punctuation.separator.namespace.js.jsx"},"5":{"name":"entity.name.tag.js.jsx"},"6":{"name":"support.class.component.js.jsx"},"7":{"name":"punctuation.definition.tag.end.js.jsx"}},"name":"meta.tag.js.jsx","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js.jsx"}},"contentName":"meta.jsx.children.js.jsx","end":"(?=|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.js.jsx","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.js.jsx"},"jsx-tag-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"},"6":{"name":"punctuation.definition.tag.end.js.jsx"}},"contentName":"meta.jsx.children.js.jsx","end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"},"6":{"name":"punctuation.definition.tag.end.js.jsx"}},"name":"meta.tag.without-attributes.js.jsx","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.js.jsx"},"2":{"name":"punctuation.separator.label.js.jsx"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.js.jsx"},"2":{"name":"punctuation.separator.label.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)"}]},"literal":{"patterns":[{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#array-literal"},{"include":"#this-literal"},{"include":"#super-literal"}]},"method-declaration":{"patterns":[{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.modifier.async.js.jsx"},"5":{"name":"keyword.operator.new.js.jsx"},"6":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js.jsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.modifier.async.js.jsx"},"5":{"name":"storage.type.property.js.jsx"},"6":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js.jsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"storage.type.property.js.jsx"},"3":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js.jsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"storage.type.property.js.jsx"},"3":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.js.jsx meta.object-literal.key.js.jsx","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.js.jsx meta.object-literal.key.js.jsx","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.js.jsx"},{"captures":{"0":{"name":"meta.object-literal.key.js.jsx"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js.jsx"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js.jsx"}},"end":"(?=[,}])","name":"meta.object.member.js.jsx","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js.jsx"},{"captures":{"1":{"name":"keyword.control.as.js.jsx"},"2":{"name":"storage.modifier.js.jsx"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.js.jsx"}},"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(?])","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.js.jsx meta.return.type.arrow.js.jsx keyword.operator.type.annotation.js.jsx"}},"contentName":"meta.arrow.js.jsx meta.return.type.arrow.js.jsx","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.js.jsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js.jsx"},"2":{"name":"keyword.other.js.jsx"}},"name":"string.regexp.js.jsx","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js.jsx"}},"end":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.js.jsx"},"2":{"name":"support.type.object.module.js.jsx"},"3":{"name":"punctuation.accessor.js.jsx"},"4":{"name":"punctuation.accessor.optional.js.jsx"},"5":{"name":"support.type.object.module.js.jsx"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\`)","end":"(?=\`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.js.jsx"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js.jsx"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js.jsx"}},"contentName":"meta.embedded.line.js.jsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js.jsx"}},"name":"meta.template.expression.js.jsx","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js.jsx"},"2":{"name":"string.template.js.jsx punctuation.definition.string.template.begin.js.jsx"}},"contentName":"string.template.js.jsx","end":"\`","endCaptures":{"0":{"name":"string.template.js.jsx punctuation.definition.string.template.end.js.jsx"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js.jsx"}},"contentName":"meta.embedded.line.js.jsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js.jsx"}},"name":"meta.template.expression.js.jsx","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.js.jsx"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.js.jsx"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js.jsx"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.js.jsx"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.js.jsx"}},"name":"meta.type.parameters.js.jsx","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.js.jsx"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.js.jsx","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.js.jsx"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.js.jsx","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js.jsx"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.js.jsx","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.js.jsx"},"2":{"name":"entity.name.type.js.jsx"},"3":{"name":"keyword.operator.expression.extends.js.jsx"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.end.js.jsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.js.jsx"},"2":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.begin.js.jsx"}},"contentName":"meta.type.parameters.js.jsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.end.js.jsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.js.jsx"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.object.type.js.jsx","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.js.jsx"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.js.jsx"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.js.jsx"}},"name":"meta.type.parameters.js.jsx","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.js.jsx"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"name":"meta.type.paren.cover.js.jsx","patterns":[{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"entity.name.function.js.jsx variable.language.this.js.jsx"},"4":{"name":"entity.name.function.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(?)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(??{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.js.jsx variable.other.constant.js.jsx entity.name.function.js.jsx"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.js.jsx entity.name.function.js.jsx"},"2":{"name":"keyword.operator.definiteassignment.js.jsx"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js.jsx"}},"end":"(?=$|^|[]),;}]|((?{var r=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(y,e,t){var i=null;if(t!==void 0&&(i=""+t),e.key!==void 0&&(i=""+e.key),"key"in e)for(var a in t={},e)a!=="key"&&(t[a]=e[a]);else t=e;return e=t.ref,{$$typeof:r,type:y,key:i,ref:e===void 0?null:e,props:t}}o.Fragment=s,o.jsx=f,o.jsxs=f})),p=l(((o,r)=>{r.exports=m()}));export{p as t}; diff --git a/docs/assets/julia-CTbxlJE3.js b/docs/assets/julia-CTbxlJE3.js new file mode 100644 index 0000000..992b180 --- /dev/null +++ b/docs/assets/julia-CTbxlJE3.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./sql-HYiT1H9d.js";import{t as a}from"./python-GH_mL2fV.js";import{t}from"./cpp-ButBmjz6.js";import{t as i}from"./r-CpeNqXZC.js";var p=Object.freeze(JSON.parse(`{"displayName":"Julia","name":"julia","patterns":[{"include":"#operator"},{"include":"#array"},{"include":"#string"},{"include":"#parentheses"},{"include":"#bracket"},{"include":"#function_decl"},{"include":"#function_call"},{"include":"#for_block"},{"include":"#keyword"},{"include":"#number"},{"include":"#comment"},{"include":"#type_decl"},{"include":"#symbol"},{"include":"#punctuation"}],"repository":{"array":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.bracket.julia"}},"end":"(])(\\\\.?'*)","endCaptures":{"1":{"name":"meta.bracket.julia"},"2":{"name":"keyword.operator.transpose.julia"}},"name":"meta.array.julia","patterns":[{"match":"\\\\bbegin\\\\b","name":"constant.numeric.julia"},{"match":"\\\\bend\\\\b","name":"constant.numeric.julia"},{"include":"#self_no_for_block"}]}]},"bracket":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"meta.bracket.julia"}},"end":"(})(\\\\.?'*)","endCaptures":{"1":{"name":"meta.bracket.julia"},"2":{"name":"keyword.operator.transpose.julia"}},"patterns":[{"include":"#self_no_for_block"}]}]},"comment":{"patterns":[{"include":"#comment_block"},{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.julia"}},"end":"\\\\n","name":"comment.line.number-sign.julia","patterns":[{"include":"#comment_tags"}]}]},"comment_block":{"patterns":[{"begin":"#=","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.julia"}},"end":"=#","endCaptures":{"0":{"name":"punctuation.definition.comment.end.julia"}},"name":"comment.block.number-sign-equals.julia","patterns":[{"include":"#comment_tags"},{"include":"#comment_block"}]}]},"comment_tags":{"patterns":[{"match":"\\\\bTODO\\\\b","name":"keyword.other.comment-annotation.julia"},{"match":"\\\\bFIXME\\\\b","name":"keyword.other.comment-annotation.julia"},{"match":"\\\\bCHANGED\\\\b","name":"keyword.other.comment-annotation.julia"},{"match":"\\\\bXXX\\\\b","name":"keyword.other.comment-annotation.julia"}]},"for_block":{"patterns":[{"begin":"\\\\b(for)\\\\b","beginCaptures":{"0":{"name":"keyword.control.julia"}},"end":"(?]))"},{"captures":{"1":{"name":"keyword.other.julia"},"2":{"name":"keyword.operator.dots.julia"},"3":{"name":"entity.name.function.julia"},"4":{"name":"support.type.julia"}},"match":"\\\\b(function|macro)(?:\\\\s+(?:[_\u2071-\u207E\u2081-\u208E\u2118\u212E\u2140-\u2144\u2202\u2205\u2206\u2207\u220E-\u2211\u221E-\u2222\u222B-\u2233\u223F\u22A4\u22A5\u22BE-\u22C3\u25F8-\u25FF\u266F\u27C0\u27C1\u27D8\u27D9\u299B-\u29B4\u2A00-\u2A06\u2A09-\u2A16\u2A1B\u2A1C\u309B\u309C\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7E1}[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\u2190-\u21FF\\\\P{So}]][!_\u2032-\u2037\u2057\u2071-\u207E\u2081-\u208E\u2118\u212E\u2140-\u2144\u2202\u2205\u2206\u2207\u220E-\u2211\u221E-\u2222\u222B-\u2233\u223F\u22A4\u22A5\u22BE-\u22C3\u25F8-\u25FF\u266F\u27C0\u27C1\u27D8\u27D9\u299B-\u29B4\u2A00-\u2A06\u2A09-\u2A16\u2A1B\u2A1C\u309B\u309C\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7E1}[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-\xA1\\\\P{Mn}][^\\\\x01-\xA1\\\\P{Mc}][^\\\\x01-\xA1\\\\D][^\\\\x01-\xA1\\\\P{Pc}][^\\\\x01-\xA1\\\\P{Sk}][^\\\\x01-\xA1\\\\P{Me}][^\\\\x01-\xA1\\\\P{No}][^\u2190-\u21FF\\\\P{So}]]*(\\\\.))?([_\u2071-\u207E\u2081-\u208E\u2118\u212E\u2140-\u2144\u2202\u2205\u2206\u2207\u220E-\u2211\u221E-\u2222\u222B-\u2233\u223F\u22A4\u22A5\u22BE-\u22C3\u25F8-\u25FF\u266F\u27C0\u27C1\u27D8\u27D9\u299B-\u29B4\u2A00-\u2A06\u2A09-\u2A16\u2A1B\u2A1C\u309B\u309C\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7E1}[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\u2190-\u21FF\\\\P{So}]][!_\u2032-\u2037\u2057\u2071-\u207E\u2081-\u208E\u2118\u212E\u2140-\u2144\u2202\u2205\u2206\u2207\u220E-\u2211\u221E-\u2222\u222B-\u2233\u223F\u22A4\u22A5\u22BE-\u22C3\u25F8-\u25FF\u266F\u27C0\u27C1\u27D8\u27D9\u299B-\u29B4\u2A00-\u2A06\u2A09-\u2A16\u2A1B\u2A1C\u309B\u309C\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7E1}[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-\xA1\\\\P{Mn}][^\\\\x01-\xA1\\\\P{Mc}][^\\\\x01-\xA1\\\\D][^\\\\x01-\xA1\\\\P{Pc}][^\\\\x01-\xA1\\\\P{Sk}][^\\\\x01-\xA1\\\\P{Me}][^\\\\x01-\xA1\\\\P{No}][^\u2190-\u21FF\\\\P{So}]]*)(\\\\{(?:[^{}]|\\\\{(?:[^{}]|\\\\{[^{}]*})*})*})?|\\\\s*)(?=\\\\()"}]},"keyword":{"patterns":[{"match":"\\\\b(?|->|-->|<--|[\u2190\u2192\u2194\u219A-\u219E\u21A0\u21A2\u21A3\u21A4\u21A6\u21A9-\u21AC\u21AE\u21B6\u21B7\u21BA-\u21BD\u21C0\u21C1\u21C4\u21C6\u21C7\u21C9\u21CB-\u21D0\u21D2\u21D4\u21DA-\u21DD\u21E0\u21E2\u21F4\u21F6-\u21FF\u27F5\u27F6\u27F7\u27F9-\u27FF\u2900-\u2907\u290C-\u2911\u2914-\u2918\u291D-\u2920\u2944-\u2948\u294A\u294B\u294E\u2950\u2952\u2953\u2956\u2957\u295A\u295B\u295E\u295F\u2962\u2964\u2966-\u296D\u2970\u2977\u297A\u29F4\u2B30-\u2B44\u2B47-\u2B4C\uFFE9\uFFEB]|=>)","name":"keyword.operator.arrow.julia"},{"match":":=|\\\\+=|-=|\\\\*=|//=|/=|\\\\.//=|\\\\./=|\\\\.\\\\*=|\\\\\\\\=|\\\\.\\\\\\\\=|\\\\^=|\\\\.\\\\^=|%=|\\\\.%=|\xF7=|\\\\.\xF7=|\\\\|=|&=|\\\\.&=|\u22BB=|\\\\.\u22BB=|\\\\$=|<<=|>>=|>>>=|=(?!=)","name":"keyword.operator.update.julia"},{"match":"<<|>>>?|\\\\.>>>?|\\\\.<<","name":"keyword.operator.shift.julia"},{"captures":{"1":{"name":"keyword.operator.relation.types.julia"},"2":{"name":"support.type.julia"},"3":{"name":"keyword.operator.transpose.julia"}},"match":"\\\\s*([:<>]:)\\\\s*((?:Union)?\\\\([^)]*\\\\)|[$_\u2207[:alpha:]][!.\u2032\u207A-\u209C[:word:]]*(?:\\\\{(?:[^{}]|\\\\{(?:[^{}]|\\\\{[^{}]*})*})*}|\\".+?(?)>=|[<>\u2264\u2265]|===?|\u2261|!=|\u2260|!==|[\u2208-\u220D\u221D\u2225\u2226\u2237\u223A\u223B\u223D\u223E\u2241-\u224E\u2250-\u2253\u2256-\u225F\u2262\u2263\u2266-\u228B\u228F-\u2292\u229C\u22A2\u22A3\u22A9\u22AC\u22AE\u22B0-\u22B7\u22CD\u22D0\u22D1\u22D5-\u22ED\u22F2-\u22FF\u27C2\u27C8\u27C9\u27D2\u29B7\u29C0\u29C1\u29E1\u29E3\u29E4\u29E5\u2A66\u2A67\u2A6A-\u2A73\u2A75-\u2AD9\u2AEA\u2AEB\u2AF7-\u2AFA]|<:|>:))","name":"keyword.operator.relation.julia"},{"match":"(?<=\\\\s)\\\\?(?=\\\\s)","name":"keyword.operator.ternary.julia"},{"match":"(?<=\\\\s):(?=\\\\s)","name":"keyword.operator.ternary.julia"},{"match":"\\\\|\\\\||&&|(?","name":"keyword.operator.applies.julia"},{"match":"\\\\||\\\\.\\\\||&|\\\\.&|[~\xAC]|\\\\.~|\u22BB|\\\\.\u22BB","name":"keyword.operator.bitwise.julia"},{"match":"\\\\.?(?:\\\\+\\\\+|--|[-*+|\xA6\xB1\u2212\u2213\u2214\u2228\u222A\u2238\u224F\u228E\u2294\u2295\u2296\u229E\u229F\u22BB\u22BD\u22CE\u22D3\u27C7\u29FA\u29FB\u2A08\u2A22-\u2A2E\u2A39\u2A3A\u2A41\u2A42\u2A45\u2A4A\u2A4C\u2A4F\u2A50\u2A52\u2A54\u2A56\u2A57\u2A5B\u2A5D\u2A61\u2A62\u2A63]|//?|[%\\\\&\\\\\\\\^\xB1\xB7\xD7\xF7\u0387\u214B\u2191\u2193\u21F5\u2213\u2217-\u221C\u2224\u2227\u2229\u2240\u228D\u2293\u2297-\u229B\u22A0\u22A1\u22BC\u22C4-\u22C7\u22C9-\u22CC\u22CF\u22D2\u233F\u25B7\u27D1\u27D5\u27D6\u27D7\u27F0\u27F1\u2908-\u290B\u2912\u2913\u2949\u294C\u294D\u294F\u2951\u2954\u2955\u2958\u2959\u295C\u295D\u2960\u2961\u2963\u2965\u296E\u296F\u29B8\u29BC\u29BE\u29BF\u29F6\u29F7\u2A07\u2A1D\u2A1F\u2A30-\u2A38\u2A3B\u2A3C\u2A3D\u2A40\u2A43\u2A44\u2A4B\u2A4D\u2A4E\u2A51\u2A53\u2A55\u2A58\u2A5A\u2A5C\u2A5E\u2A5F\u2A60\u2ADB\uFFEA\uFFEC])","name":"keyword.operator.arithmetic.julia"},{"match":"\u2218","name":"keyword.operator.compose.julia"},{"match":"::|(?<=\\\\s)isa(?=\\\\s)","name":"keyword.operator.isa.julia"},{"match":"(?<=\\\\s)in(?=\\\\s)","name":"keyword.operator.relation.in.julia"},{"match":"\\\\.(?=[@_\\\\p{L}])|\\\\.\\\\.+|[\u2026\u205D\u22EE-\u22F1]","name":"keyword.operator.dots.julia"},{"match":"\\\\$(?=.+)","name":"keyword.operator.interpolation.julia"},{"captures":{"2":{"name":"keyword.operator.transposed-variable.julia"}},"match":"([_\u2071-\u207E\u2081-\u208E\u2118\u212E\u2140-\u2144\u2202\u2205\u2206\u2207\u220E-\u2211\u221E-\u2222\u222B-\u2233\u223F\u22A4\u22A5\u22BE-\u22C3\u25F8-\u25FF\u266F\u27C0\u27C1\u27D8\u27D9\u299B-\u29B4\u2A00-\u2A06\u2A09-\u2A16\u2A1B\u2A1C\u309B\u309C\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7E1}[:alpha:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\u2190-\u21FF\\\\P{So}]][!_\u2032-\u2037\u2057\u2071-\u207E\u2081-\u208E\u2118\u212E\u2140-\u2144\u2202\u2205\u2206\u2207\u220E-\u2211\u221E-\u2222\u222B-\u2233\u223F\u22A4\u22A5\u22BE-\u22C3\u25F8-\u25FF\u266F\u27C0\u27C1\u27D8\u27D9\u299B-\u29B4\u2A00-\u2A06\u2A09-\u2A16\u2A1B\u2A1C\u309B\u309C\u{1D6C1}\u{1D6DB}\u{1D6FB}\u{1D715}\u{1D735}\u{1D74F}\u{1D76F}\u{1D789}\u{1D7A9}\u{1D7C3}\u{1D7CE}-\u{1D7E1}[:word:]\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}[^\\\\x01-\xA1\\\\P{Mn}][^\\\\x01-\xA1\\\\P{Mc}][^\\\\x01-\xA1\\\\D][^\\\\x01-\xA1\\\\P{Pc}][^\\\\x01-\xA1\\\\P{Sk}][^\\\\x01-\xA1\\\\P{Me}][^\\\\x01-\xA1\\\\P{No}][^\u2190-\u21FF\\\\P{So}]]*)(('|(\\\\.'))*\\\\.?')"},{"captures":{"1":{"name":"bracket.end.julia"},"2":{"name":"keyword.operator.transposed-matrix.julia"}},"match":"(])((?:\\\\.??')*\\\\.?')"},{"captures":{"1":{"name":"bracket.end.julia"},"2":{"name":"keyword.operator.transposed-parens.julia"}},"match":"(\\\\))((?:\\\\.??')*\\\\.?')"}]},"parentheses":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.bracket.julia"}},"end":"(\\\\))(\\\\.?'*)","endCaptures":{"1":{"name":"meta.bracket.julia"},"2":{"name":"keyword.operator.transpose.julia"}},"patterns":[{"include":"#self_no_for_block"}]}]},"punctuation":{"patterns":[{"match":",","name":"punctuation.separator.comma.julia"},{"match":";","name":"punctuation.separator.semicolon.julia"}]},"self_no_for_block":{"patterns":[{"include":"#operator"},{"include":"#array"},{"include":"#string"},{"include":"#parentheses"},{"include":"#bracket"},{"include":"#function_decl"},{"include":"#function_call"},{"include":"#keyword"},{"include":"#number"},{"include":"#comment"},{"include":"#type_decl"},{"include":"#symbol"},{"include":"#punctuation"}]},"string":{"patterns":[{"begin":"(@doc)\\\\s((?:doc)?\\"\\"\\")|(doc\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"(\\"\\"\\") ?(->)?","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"},"2":{"name":"keyword.operator.arrow.julia"}},"name":"string.docstring.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(i?cxx)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.cpp","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.cxx.julia","patterns":[{"include":"source.cpp#root_context"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(py)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.python","end":"([\\\\s\\\\w]*)(\\"\\"\\")","endCaptures":{"2":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.python.julia","patterns":[{"include":"source.python"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(js)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.javascript","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.js.julia","patterns":[{"include":"source.js"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(R)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.r","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.R.julia","patterns":[{"include":"source.r"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"(raw)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.other.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(raw)(\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.other.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(sql)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"contentName":"meta.embedded.inline.sql","end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"embed.sql.julia","patterns":[{"include":"source.sql"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"var\\"\\"\\"","end":"\\"\\"\\"","name":"constant.other.symbol.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"var\\"","end":"\\"","name":"constant.other.symbol.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"^\\\\s?(doc)?(\\"\\"\\")\\\\s?$","beginCaptures":{"1":{"name":"support.function.macro.julia"},"2":{"name":"punctuation.definition.string.begin.julia"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.julia"}},"name":"string.docstring.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.single.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.multiline.begin.julia"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.multiline.end.julia"}},"name":"string.quoted.triple.double.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"\\"(?!\\"\\")","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.julia"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.julia"}},"name":"string.quoted.double.julia","patterns":[{"include":"#string_escaped_char"},{"include":"#string_dollar_sign_interpolate"}]},{"begin":"r\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.julia"}},"end":"(\\"\\"\\")([imsx]{0,4})?","endCaptures":{"1":{"name":"punctuation.definition.string.regexp.end.julia"},"2":{"name":"keyword.other.option-toggle.regexp.julia"}},"name":"string.regexp.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"r\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.regexp.begin.julia"}},"end":"(\\")([imsx]{0,4})?","endCaptures":{"1":{"name":"punctuation.definition.string.regexp.end.julia"},"2":{"name":"keyword.other.option-toggle.regexp.julia"}},"name":"string.regexp.julia","patterns":[{"include":"#string_escaped_char"}]},{"begin":"(?]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],v=a("[<>]:,[<>=]=,[!=]==,<<=?,>>>?=?,=>?,--?>,<--[->]?,\\/\\/,[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?,\\?,\\$,~,:,\\u00D7,\\u2208,\\u2209,\\u220B,\\u220C,\\u2218,\\u221A,\\u221B,\\u2229,\\u222A,\\u2260,\\u2264,\\u2265,\\u2286,\\u2288,\\u228A,\\u22C5,\\b(in|isa)\\b(?!.?\\()".split(","),""),g=/^[;,()[\]{}]/,x=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,A=a([d,F,k,b],"'"),z=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],y=["end","else","elseif","catch","finally"],c="if.else.elseif.while.for.begin.let.end.do.try.catch.finally.return.break.continue.global.local.const.export.import.importall.using.function.where.macro.module.baremodule.struct.type.mutable.immutable.quote.typealias.abstract.primitive.bitstype".split("."),m=["true","false","nothing","NaN","Inf"],E=a(z),_=a(y),D=a(c),T=a(m),C=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,w=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,P=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,B=a(o,"","@"),$=a(o,"",":");function l(n){return n.nestedArrays>0}function G(n){return n.nestedGenerators>0}function f(n,e){return e===void 0&&(e=0),n.scopes.length<=e?null:n.scopes[n.scopes.length-(e+1)]}function u(n,e){if(n.match("#=",!1))return e.tokenize=Z,e.tokenize(n,e);var t=e.leavingExpr;if(n.sol()&&(t=!1),e.leavingExpr=!1,t&&n.match(/^'+/))return"operator";if(n.match(/\.{4,}/))return"error";if(n.match(/\.{1,3}/))return"operator";if(n.eatSpace())return null;var r=n.peek();if(r==="#")return n.skipToEnd(),"comment";if(r==="["&&(e.scopes.push("["),e.nestedArrays++),r==="("&&(e.scopes.push("("),e.nestedGenerators++),l(e)&&r==="]"){for(;e.scopes.length&&f(e)!=="[";)e.scopes.pop();e.scopes.pop(),e.nestedArrays--,e.leavingExpr=!0}if(G(e)&&r===")"){for(;e.scopes.length&&f(e)!=="(";)e.scopes.pop();e.scopes.pop(),e.nestedGenerators--,e.leavingExpr=!0}if(l(e)){if(e.lastToken=="end"&&n.match(":"))return"operator";if(n.match("end"))return"number"}var i;if((i=n.match(E,!1))&&e.scopes.push(i[0]),n.match(_,!1)&&e.scopes.pop(),n.match(/^::(?![:\$])/))return e.tokenize=I,e.tokenize(n,e);if(!t&&(n.match(w)||n.match($)))return"builtin";if(n.match(v))return"operator";if(n.match(/^\.?\d/,!1)){var p=RegExp(/^im\b/),s=!1;if(n.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(s=!0),n.match(/^0x[0-9a-f_]+/i)&&(s=!0),n.match(/^0b[01_]+/i)&&(s=!0),n.match(/^0o[0-7_]+/i)&&(s=!0),n.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(s=!0),n.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(s=!0),s)return n.match(p),e.leavingExpr=!0,"number"}if(n.match("'"))return e.tokenize=j,e.tokenize(n,e);if(n.match(P))return e.tokenize=S(n.current()),e.tokenize(n,e);if(n.match(C)||n.match(B))return"meta";if(n.match(g))return null;if(n.match(D))return"keyword";if(n.match(T))return"builtin";var h=e.isDefinition||e.lastToken=="function"||e.lastToken=="macro"||e.lastToken=="type"||e.lastToken=="struct"||e.lastToken=="immutable";return n.match(x)?h?n.peek()==="."?(e.isDefinition=!0,"variable"):(e.isDefinition=!1,"def"):(e.leavingExpr=!0,"variable"):(n.next(),"error")}function I(n,e){return n.match(/.*?(?=[,;{}()=\s]|$)/),n.match("{")?e.nestedParameters++:n.match("}")&&e.nestedParameters>0&&e.nestedParameters--,e.nestedParameters>0?n.match(/.*?(?={|})/)||n.next():e.nestedParameters==0&&(e.tokenize=u),"builtin"}function Z(n,e){return n.match("#=")&&e.nestedComments++,n.match(/.*?(?=(#=|=#))/)||n.skipToEnd(),n.match("=#")&&(e.nestedComments--,e.nestedComments==0&&(e.tokenize=u)),"comment"}function j(n,e){var t=!1,r;if(n.match(A))t=!0;else if(r=n.match(/\\u([a-f0-9]{1,4})(?=')/i)){var i=parseInt(r[1],16);(i<=55295||i>=57344)&&(t=!0,n.next())}else if(r=n.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i=parseInt(r[1],16);i<=1114111&&(t=!0,n.next())}return t?(e.leavingExpr=!0,e.tokenize=u,"string"):(n.match(/^[^']+(?=')/)||n.skipToEnd(),n.match("'")&&(e.tokenize=u),"error")}function S(n){n.substr(-3)==='"""'?n='"""':n.substr(-1)==='"'&&(n='"');function e(t,r){if(t.eat("\\"))t.next();else{if(t.match(n))return r.tokenize=u,r.leavingExpr=!0,"string";t.eat(/[`"]/)}return t.eatWhile(/[^\\`"]/),"string"}return e}const q={name:"julia",startState:function(){return{tokenize:u,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(n,e){var t=e.tokenize(n,e),r=n.current();return r&&t&&(e.lastToken=r),t},indent:function(n,e,t){var r=0;return(e==="]"||e===")"||/^end\b/.test(e)||/^else/.test(e)||/^catch\b/.test(e)||/^elseif\b/.test(e)||/^finally/.test(e))&&(r=-1),(n.scopes.length+r)*t.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:c.concat(m)}};export{q as t}; diff --git a/docs/assets/kanagawa-dragon-D3Om-oa0.js b/docs/assets/kanagawa-dragon-D3Om-oa0.js new file mode 100644 index 0000000..8b6b3d5 --- /dev/null +++ b/docs/assets/kanagawa-dragon-D3Om-oa0.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#282727","activityBar.foreground":"#C5C9C5","activityBarBadge.background":"#658594","activityBarBadge.foreground":"#C5C9C5","badge.background":"#282727","button.background":"#282727","button.foreground":"#C8C093","button.secondaryBackground":"#223249","button.secondaryForeground":"#C5C9C5","checkbox.border":"#223249","debugToolBar.background":"#0D0C0C","descriptionForeground":"#C5C9C5","diffEditor.insertedTextBackground":"#2B332880","dropdown.background":"#0D0C0C","dropdown.border":"#0D0C0C","editor.background":"#181616","editor.findMatchBackground":"#2D4F67","editor.findMatchBorder":"#FF9E3B","editor.findMatchHighlightBackground":"#2D4F6780","editor.foreground":"#C5C9C5","editor.lineHighlightBackground":"#393836","editor.selectionBackground":"#223249","editor.selectionHighlightBackground":"#39383680","editor.selectionHighlightBorder":"#625E5A","editor.wordHighlightBackground":"#3938364D","editor.wordHighlightBorder":"#625E5A","editor.wordHighlightStrongBackground":"#3938364D","editor.wordHighlightStrongBorder":"#625E5A","editorBracketHighlight.foreground1":"#8992A7","editorBracketHighlight.foreground2":"#B6927B","editorBracketHighlight.foreground3":"#8BA4B0","editorBracketHighlight.foreground4":"#A292A3","editorBracketHighlight.foreground5":"#C4B28A","editorBracketHighlight.foreground6":"#8EA4A2","editorBracketHighlight.unexpectedBracket.foreground":"#C4746E","editorBracketMatch.background":"#0D0C0C","editorBracketMatch.border":"#625E5A","editorBracketPairGuide.activeBackground1":"#8992A7","editorBracketPairGuide.activeBackground2":"#B6927B","editorBracketPairGuide.activeBackground3":"#8BA4B0","editorBracketPairGuide.activeBackground4":"#A292A3","editorBracketPairGuide.activeBackground5":"#C4B28A","editorBracketPairGuide.activeBackground6":"#8EA4A2","editorCursor.background":"#181616","editorCursor.foreground":"#C5C9C5","editorError.foreground":"#E82424","editorGroup.border":"#0D0C0C","editorGroupHeader.tabsBackground":"#0D0C0C","editorGutter.addedBackground":"#76946A","editorGutter.deletedBackground":"#C34043","editorGutter.modifiedBackground":"#DCA561","editorHoverWidget.background":"#181616","editorHoverWidget.border":"#282727","editorHoverWidget.highlightForeground":"#658594","editorIndentGuide.activeBackground1":"#393836","editorIndentGuide.background1":"#282727","editorInlayHint.background":"#181616","editorInlayHint.foreground":"#737C73","editorLineNumber.activeForeground":"#FFA066","editorLineNumber.foreground":"#625E5A","editorMarkerNavigation.background":"#393836","editorRuler.foreground":"#393836","editorSuggestWidget.background":"#223249","editorSuggestWidget.border":"#223249","editorSuggestWidget.selectedBackground":"#2D4F67","editorWarning.foreground":"#FF9E3B","editorWhitespace.foreground":"#181616","editorWidget.background":"#181616","focusBorder":"#223249","foreground":"#C5C9C5","gitDecoration.ignoredResourceForeground":"#737C73","input.background":"#0D0C0C","list.activeSelectionBackground":"#393836","list.activeSelectionForeground":"#C5C9C5","list.focusBackground":"#282727","list.focusForeground":"#C5C9C5","list.highlightForeground":"#8BA4B0","list.hoverBackground":"#393836","list.hoverForeground":"#C5C9C5","list.inactiveSelectionBackground":"#282727","list.inactiveSelectionForeground":"#C5C9C5","list.warningForeground":"#FF9E3B","menu.background":"#393836","menu.border":"#0D0C0C","menu.foreground":"#C5C9C5","menu.selectionBackground":"#0D0C0C","menu.selectionForeground":"#C5C9C5","menu.separatorBackground":"#625E5A","menubar.selectionBackground":"#0D0C0C","menubar.selectionForeground":"#C5C9C5","minimapGutter.addedBackground":"#76946A","minimapGutter.deletedBackground":"#C34043","minimapGutter.modifiedBackground":"#DCA561","panel.border":"#0D0C0C","panelSectionHeader.background":"#181616","peekView.border":"#625E5A","peekViewEditor.background":"#282727","peekViewEditor.matchHighlightBackground":"#2D4F67","peekViewResult.background":"#393836","scrollbar.shadow":"#393836","scrollbarSlider.activeBackground":"#28272780","scrollbarSlider.background":"#625E5A66","scrollbarSlider.hoverBackground":"#625E5A80","settings.focusedRowBackground":"#393836","settings.headerForeground":"#C5C9C5","sideBar.background":"#181616","sideBar.border":"#0D0C0C","sideBar.foreground":"#C5C9C5","sideBarSectionHeader.background":"#393836","sideBarSectionHeader.foreground":"#C5C9C5","statusBar.background":"#0D0C0C","statusBar.debuggingBackground":"#E82424","statusBar.debuggingBorder":"#8992A7","statusBar.debuggingForeground":"#C5C9C5","statusBar.foreground":"#C8C093","statusBar.noFolderBackground":"#181616","statusBarItem.hoverBackground":"#393836","statusBarItem.remoteBackground":"#2D4F67","statusBarItem.remoteForeground":"#C5C9C5","tab.activeBackground":"#282727","tab.activeForeground":"#8BA4B0","tab.border":"#282727","tab.hoverBackground":"#393836","tab.inactiveBackground":"#1D1C19","tab.unfocusedHoverBackground":"#181616","terminal.ansiBlack":"#0D0C0C","terminal.ansiBlue":"#8BA4B0","terminal.ansiBrightBlack":"#A6A69C","terminal.ansiBrightBlue":"#7FB4CA","terminal.ansiBrightCyan":"#7AA89F","terminal.ansiBrightGreen":"#87A987","terminal.ansiBrightMagenta":"#938AA9","terminal.ansiBrightRed":"#E46876","terminal.ansiBrightWhite":"#C5C9C5","terminal.ansiBrightYellow":"#E6C384","terminal.ansiCyan":"#8EA4A2","terminal.ansiGreen":"#8A9A7B","terminal.ansiMagenta":"#A292A3","terminal.ansiRed":"#C4746E","terminal.ansiWhite":"#C8C093","terminal.ansiYellow":"#C4B28A","terminal.background":"#181616","terminal.border":"#0D0C0C","terminal.foreground":"#C5C9C5","terminal.selectionBackground":"#223249","textBlockQuote.background":"#181616","textBlockQuote.border":"#0D0C0C","textLink.foreground":"#6A9589","textPreformat.foreground":"#FF9E3B","titleBar.activeBackground":"#393836","titleBar.activeForeground":"#C5C9C5","titleBar.inactiveBackground":"#181616","titleBar.inactiveForeground":"#C5C9C5","walkThrough.embeddedEditorBackground":"#181616"},"displayName":"Kanagawa Dragon","name":"kanagawa-dragon","semanticHighlighting":true,"semanticTokenColors":{"arithmetic":"#B98D7B","function":"#8BA4B0","keyword.controlFlow":{"fontStyle":"bold","foreground":"#8992A7"},"macro":"#C4746E","method":"#949FB5","operator":"#B98D7B","parameter":"#A6A69C","parameter.declaration":"#A6A69C","parameter.definition":"#A6A69C","variable":"#C5C9C5","variable.readonly":"#C5C9C5","variable.readonly.defaultLibrary":"#C5C9C5","variable.readonly.local":"#C5C9C5"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#737C73"}},{"scope":["variable","string constant.other.placeholder"],"settings":{"foreground":"#C5C9C5"}},{"scope":["constant.other.color"],"settings":{"foreground":"#B6927B"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#E82424"}},{"scope":["storage.type"],"settings":{"foreground":"#8992A7"}},{"scope":["storage.modifier"],"settings":{"foreground":"#8992A7"}},{"scope":["keyword.control.flow","keyword.control.conditional","keyword.control.loop"],"settings":{"fontStyle":"bold","foreground":"#8992A7"}},{"scope":["keyword.control","constant.other.color","meta.tag","keyword.other.template","keyword.other.substitution","keyword.other"],"settings":{"foreground":"#8992A7"}},{"scope":["keyword.other.definition.ini"],"settings":{"foreground":"#B6927B"}},{"scope":["keyword.control.trycatch"],"settings":{"fontStyle":"bold","foreground":"#C4746E"}},{"scope":["keyword.other.unit","keyword.operator"],"settings":{"foreground":"#C4B28A"}},{"scope":["punctuation","punctuation.definition.tag","punctuation.separator.inheritance.php","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html","punctuation.section.embedded","meta.brace","keyword.operator.type.annotation","keyword.operator.namespace"],"settings":{"foreground":"#9E9B93"}},{"scope":["entity.name.tag","meta.tag.sgml"],"settings":{"foreground":"#C4B28A"}},{"scope":["entity.name.function","meta.function-call","variable.function","support.function"],"settings":{"foreground":"#8BA4B0"}},{"scope":["keyword.other.special-method"],"settings":{"foreground":"#949FB5"}},{"scope":["entity.name.function.macro"],"settings":{"foreground":"#C4746E"}},{"scope":["meta.block variable.other"],"settings":{"foreground":"#C5C9C5"}},{"scope":["variable.other.enummember"],"settings":{"foreground":"#B6927B"}},{"scope":["support.other.variable"],"settings":{"foreground":"#C5C9C5"}},{"scope":["string.other.link"],"settings":{"foreground":"#949FB5"}},{"scope":["constant.numeric","constant.language","support.constant","constant.character","constant.escape"],"settings":{"foreground":"#B6927B"}},{"scope":["constant.language.boolean"],"settings":{"foreground":"#B6927B"}},{"scope":["constant.numeric"],"settings":{"foreground":"#A292A3"}},{"scope":["string","punctuation.definition.string","constant.other.symbol","constant.other.key","entity.other.inherited-class","markup.heading","markup.inserted.git_gutter","meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js","markup.inline.raw.string"],"settings":{"foreground":"#8A9A7B"}},{"scope":["entity.name","support.type","support.class","support.other.namespace.use.php","meta.use.php","support.other.namespace.php","support.type.sys-types"],"settings":{"foreground":"#8EA4A2"}},{"scope":["entity.name.type.module","entity.name.namespace"],"settings":{"foreground":"#C4B28A"}},{"scope":["entity.name.import.go"],"settings":{"foreground":"#8A9A7B"}},{"scope":["keyword.blade"],"settings":{"foreground":"#8992A7"}},{"scope":["variable.other.property"],"settings":{"foreground":"#C4B28A"}},{"scope":["keyword.control.import","keyword.import","meta.import"],"settings":{"foreground":"#B6927B"}},{"scope":["source.css support.type.property-name","source.sass support.type.property-name","source.scss support.type.property-name","source.less support.type.property-name","source.stylus support.type.property-name","source.postcss support.type.property-name"],"settings":{"foreground":"#8EA4A2"}},{"scope":["entity.name.module.js","variable.import.parameter.js","variable.other.class.js"],"settings":{"foreground":"#C4746E"}},{"scope":["variable.language"],"settings":{"foreground":"#C4746E"}},{"scope":["entity.name.method.js"],"settings":{"foreground":"#949FB5"}},{"scope":["meta.class-method.js entity.name.function.js","variable.function.constructor"],"settings":{"foreground":"#949FB5"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#8992A7"}},{"scope":["entity.other.attribute-name.class"],"settings":{"foreground":"#C4B28A"}},{"scope":["source.sass keyword.control"],"settings":{"foreground":"#949FB5"}},{"scope":["markup.inserted"],"settings":{"foreground":"#76946A"}},{"scope":["markup.deleted"],"settings":{"foreground":"#C34043"}},{"scope":["markup.changed"],"settings":{"foreground":"#DCA561"}},{"scope":["string.regexp"],"settings":{"foreground":"#B98D7B"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#949FB5"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline"}},{"scope":["tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js"],"settings":{"foreground":"#8992A7"}},{"scope":["source.js constant.other.object.key.js string.unquoted.label.js"],"settings":{"foreground":"#C4746E"}},{"scope":["source.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#A292A3"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C4B28A"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#B6927B"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C4746E"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#B6927B"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#8BA4B0"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#A292A3"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#8992A7"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#8A9A7B"}},{"scope":["meta.tag JSXNested","meta.jsx.children","text.html","text.log"],"settings":{"foreground":"#C5C9C5"}},{"scope":["text.html.markdown","punctuation.definition.list_item.markdown"],"settings":{"foreground":"#C5C9C5"}},{"scope":["text.html.markdown markup.inline.raw.markdown"],"settings":{"foreground":"#8992A7"}},{"scope":["text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown"],"settings":{"foreground":"#8992A7"}},{"scope":["markdown.heading","entity.name.section.markdown","markup.heading.markdown"],"settings":{"foreground":"#8BA4B0"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#C4746E"}},{"scope":["markup.bold","markup.bold string"],"settings":{"fontStyle":"bold"}},{"scope":["markup.bold markup.italic","markup.italic markup.bold","markup.quote markup.bold","markup.bold markup.italic string","markup.italic markup.bold string","markup.quote markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#C4746E"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline","foreground":"#949FB5"}},{"scope":["markup.quote punctuation.definition.blockquote.markdown"],"settings":{"foreground":"#737C73"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic"}},{"scope":["string.other.link.title.markdown"],"settings":{"foreground":"#B6927B"}},{"scope":["string.other.link.description.title.markdown"],"settings":{"foreground":"#8992A7"}},{"scope":["constant.other.reference.link.markdown"],"settings":{"foreground":"#C4B28A"}},{"scope":["markup.raw.block"],"settings":{"foreground":"#8992A7"}},{"scope":["markup.raw.block.fenced.markdown"],"settings":{"foreground":"#737C73"}},{"scope":["punctuation.definition.fenced.markdown"],"settings":{"foreground":"#737C73"}},{"scope":["markup.raw.block.fenced.markdown","variable.language.fenced.markdown","punctuation.section.class.end"],"settings":{"foreground":"#C5C9C5"}},{"scope":["variable.language.fenced.markdown"],"settings":{"foreground":"#737C73"}},{"scope":["meta.separator"],"settings":{"fontStyle":"bold","foreground":"#9E9B93"}},{"scope":["markup.table"],"settings":{"foreground":"#C5C9C5"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/kanagawa-lotus-CNOs1zgt.js b/docs/assets/kanagawa-lotus-CNOs1zgt.js new file mode 100644 index 0000000..15efd56 --- /dev/null +++ b/docs/assets/kanagawa-lotus-CNOs1zgt.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#E7DBA0","activityBar.foreground":"#545464","activityBarBadge.background":"#5A7785","activityBarBadge.foreground":"#545464","badge.background":"#E7DBA0","button.background":"#E7DBA0","button.foreground":"#43436C","button.secondaryBackground":"#C7D7E0","button.secondaryForeground":"#545464","checkbox.border":"#C7D7E0","debugToolBar.background":"#D5CEA3","descriptionForeground":"#545464","diffEditor.insertedTextBackground":"#B7D0AE80","dropdown.background":"#D5CEA3","dropdown.border":"#D5CEA3","editor.background":"#F2ECBC","editor.findMatchBackground":"#B5CBD2","editor.findMatchBorder":"#E98A00","editor.findMatchHighlightBackground":"#B5CBD280","editor.foreground":"#545464","editor.lineHighlightBackground":"#E4D794","editor.selectionBackground":"#C7D7E0","editor.selectionHighlightBackground":"#E4D79480","editor.selectionHighlightBorder":"#766B90","editor.wordHighlightBackground":"#E4D7944D","editor.wordHighlightBorder":"#766B90","editor.wordHighlightStrongBackground":"#E4D7944D","editor.wordHighlightStrongBorder":"#766B90","editorBracketHighlight.foreground1":"#624C83","editorBracketHighlight.foreground2":"#CC6D00","editorBracketHighlight.foreground3":"#4D699B","editorBracketHighlight.foreground4":"#B35B79","editorBracketHighlight.foreground5":"#77713F","editorBracketHighlight.foreground6":"#597B75","editorBracketHighlight.unexpectedBracket.foreground":"#D9A594","editorBracketMatch.background":"#D5CEA3","editorBracketMatch.border":"#766B90","editorBracketPairGuide.activeBackground1":"#624C83","editorBracketPairGuide.activeBackground2":"#CC6D00","editorBracketPairGuide.activeBackground3":"#4D699B","editorBracketPairGuide.activeBackground4":"#B35B79","editorBracketPairGuide.activeBackground5":"#77713F","editorBracketPairGuide.activeBackground6":"#597B75","editorCursor.background":"#F2ECBC","editorCursor.foreground":"#545464","editorError.foreground":"#E82424","editorGroup.border":"#D5CEA3","editorGroupHeader.tabsBackground":"#D5CEA3","editorGutter.addedBackground":"#6E915F","editorGutter.deletedBackground":"#D7474B","editorGutter.modifiedBackground":"#DE9800","editorHoverWidget.background":"#F2ECBC","editorHoverWidget.border":"#E7DBA0","editorHoverWidget.highlightForeground":"#5A7785","editorIndentGuide.activeBackground1":"#E4D794","editorIndentGuide.background1":"#E7DBA0","editorInlayHint.background":"#F2ECBC","editorInlayHint.foreground":"#716E61","editorLineNumber.activeForeground":"#CC6D00","editorLineNumber.foreground":"#766B90","editorMarkerNavigation.background":"#E4D794","editorRuler.foreground":"#ff0000","editorSuggestWidget.background":"#C7D7E0","editorSuggestWidget.border":"#C7D7E0","editorSuggestWidget.selectedBackground":"#B5CBD2","editorWarning.foreground":"#E98A00","editorWhitespace.foreground":"#F2ECBC","editorWidget.background":"#F2ECBC","focusBorder":"#C7D7E0","foreground":"#545464","gitDecoration.ignoredResourceForeground":"#716E61","input.background":"#D5CEA3","list.activeSelectionBackground":"#E4D794","list.activeSelectionForeground":"#545464","list.focusBackground":"#E7DBA0","list.focusForeground":"#545464","list.highlightForeground":"#4D699B","list.hoverBackground":"#E4D794","list.hoverForeground":"#545464","list.inactiveSelectionBackground":"#E7DBA0","list.inactiveSelectionForeground":"#545464","list.warningForeground":"#E98A00","menu.background":"#E4D794","menu.border":"#D5CEA3","menu.foreground":"#545464","menu.selectionBackground":"#D5CEA3","menu.selectionForeground":"#545464","menu.separatorBackground":"#766B90","menubar.selectionBackground":"#D5CEA3","menubar.selectionForeground":"#545464","minimapGutter.addedBackground":"#6E915F","minimapGutter.deletedBackground":"#D7474B","minimapGutter.modifiedBackground":"#DE9800","panel.border":"#D5CEA3","panelSectionHeader.background":"#F2ECBC","peekView.border":"#766B90","peekViewEditor.background":"#E7DBA0","peekViewEditor.matchHighlightBackground":"#B5CBD2","peekViewResult.background":"#E4D794","scrollbar.shadow":"#E4D794","scrollbarSlider.activeBackground":"#E7DBA080","scrollbarSlider.background":"#766B9066","scrollbarSlider.hoverBackground":"#766B9080","settings.focusedRowBackground":"#E4D794","settings.headerForeground":"#545464","sideBar.background":"#F2ECBC","sideBar.border":"#D5CEA3","sideBar.foreground":"#545464","sideBarSectionHeader.background":"#E4D794","sideBarSectionHeader.foreground":"#545464","statusBar.background":"#D5CEA3","statusBar.debuggingBackground":"#E82424","statusBar.debuggingBorder":"#624C83","statusBar.debuggingForeground":"#545464","statusBar.foreground":"#43436C","statusBar.noFolderBackground":"#F2ECBC","statusBarItem.hoverBackground":"#E4D794","statusBarItem.remoteBackground":"#B5CBD2","statusBarItem.remoteForeground":"#545464","tab.activeBackground":"#E7DBA0","tab.activeForeground":"#4D699B","tab.border":"#E7DBA0","tab.hoverBackground":"#E4D794","tab.inactiveBackground":"#E5DDB0","tab.unfocusedHoverBackground":"#F2ECBC","terminal.ansiBlack":"#1F1F28","terminal.ansiBlue":"#4D699B","terminal.ansiBrightBlack":"#8A8980","terminal.ansiBrightBlue":"#6693BF","terminal.ansiBrightCyan":"#5E857A","terminal.ansiBrightGreen":"#6E915F","terminal.ansiBrightMagenta":"#624C83","terminal.ansiBrightRed":"#D7474B","terminal.ansiBrightWhite":"#43436C","terminal.ansiBrightYellow":"#836F4A","terminal.ansiCyan":"#597B75","terminal.ansiGreen":"#6F894E","terminal.ansiMagenta":"#B35B79","terminal.ansiRed":"#C84053","terminal.ansiWhite":"#545464","terminal.ansiYellow":"#77713F","terminal.background":"#F2ECBC","terminal.border":"#D5CEA3","terminal.foreground":"#545464","terminal.selectionBackground":"#C7D7E0","textBlockQuote.background":"#F2ECBC","textBlockQuote.border":"#D5CEA3","textLink.foreground":"#5E857A","textPreformat.foreground":"#E98A00","titleBar.activeBackground":"#E4D794","titleBar.activeForeground":"#545464","titleBar.inactiveBackground":"#F2ECBC","titleBar.inactiveForeground":"#545464","walkThrough.embeddedEditorBackground":"#F2ECBC"},"displayName":"Kanagawa Lotus","name":"kanagawa-lotus","semanticHighlighting":true,"semanticTokenColors":{"arithmetic":"#836F4A","function":"#4D699B","keyword.controlFlow":{"fontStyle":"bold","foreground":"#624C83"},"macro":"#C84053","method":"#6693BF","operator":"#836F4A","parameter":"#5D57A3","parameter.declaration":"#5D57A3","parameter.definition":"#5D57A3","variable":"#545464","variable.readonly":"#545464","variable.readonly.defaultLibrary":"#545464","variable.readonly.local":"#545464"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#716E61"}},{"scope":["variable","string constant.other.placeholder"],"settings":{"foreground":"#545464"}},{"scope":["constant.other.color"],"settings":{"foreground":"#CC6D00"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#E82424"}},{"scope":["storage.type"],"settings":{"foreground":"#624C83"}},{"scope":["storage.modifier"],"settings":{"foreground":"#624C83"}},{"scope":["keyword.control.flow","keyword.control.conditional","keyword.control.loop"],"settings":{"fontStyle":"bold","foreground":"#624C83"}},{"scope":["keyword.control","constant.other.color","meta.tag","keyword.other.template","keyword.other.substitution","keyword.other"],"settings":{"foreground":"#624C83"}},{"scope":["keyword.other.definition.ini"],"settings":{"foreground":"#CC6D00"}},{"scope":["keyword.control.trycatch"],"settings":{"fontStyle":"bold","foreground":"#D9A594"}},{"scope":["keyword.other.unit","keyword.operator"],"settings":{"foreground":"#77713F"}},{"scope":["punctuation","punctuation.definition.tag","punctuation.separator.inheritance.php","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html","punctuation.section.embedded","meta.brace","keyword.operator.type.annotation","keyword.operator.namespace"],"settings":{"foreground":"#4E8CA2"}},{"scope":["entity.name.tag","meta.tag.sgml"],"settings":{"foreground":"#77713F"}},{"scope":["entity.name.function","meta.function-call","variable.function","support.function"],"settings":{"foreground":"#4D699B"}},{"scope":["keyword.other.special-method"],"settings":{"foreground":"#6693BF"}},{"scope":["entity.name.function.macro"],"settings":{"foreground":"#C84053"}},{"scope":["meta.block variable.other"],"settings":{"foreground":"#545464"}},{"scope":["variable.other.enummember"],"settings":{"foreground":"#CC6D00"}},{"scope":["support.other.variable"],"settings":{"foreground":"#545464"}},{"scope":["string.other.link"],"settings":{"foreground":"#6693BF"}},{"scope":["constant.numeric","constant.language","support.constant","constant.character","constant.escape"],"settings":{"foreground":"#CC6D00"}},{"scope":["constant.language.boolean"],"settings":{"foreground":"#CC6D00"}},{"scope":["constant.numeric"],"settings":{"foreground":"#B35B79"}},{"scope":["string","punctuation.definition.string","constant.other.symbol","constant.other.key","entity.other.inherited-class","markup.heading","markup.inserted.git_gutter","meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js","markup.inline.raw.string"],"settings":{"foreground":"#6F894E"}},{"scope":["entity.name","support.type","support.class","support.other.namespace.use.php","meta.use.php","support.other.namespace.php","support.type.sys-types"],"settings":{"foreground":"#597B75"}},{"scope":["entity.name.type.module","entity.name.namespace"],"settings":{"foreground":"#77713F"}},{"scope":["entity.name.import.go"],"settings":{"foreground":"#6F894E"}},{"scope":["keyword.blade"],"settings":{"foreground":"#624C83"}},{"scope":["variable.other.property"],"settings":{"foreground":"#77713F"}},{"scope":["keyword.control.import","keyword.import","meta.import"],"settings":{"foreground":"#CC6D00"}},{"scope":["source.css support.type.property-name","source.sass support.type.property-name","source.scss support.type.property-name","source.less support.type.property-name","source.stylus support.type.property-name","source.postcss support.type.property-name"],"settings":{"foreground":"#597B75"}},{"scope":["entity.name.module.js","variable.import.parameter.js","variable.other.class.js"],"settings":{"foreground":"#D9A594"}},{"scope":["variable.language"],"settings":{"foreground":"#D9A594"}},{"scope":["entity.name.method.js"],"settings":{"foreground":"#6693BF"}},{"scope":["meta.class-method.js entity.name.function.js","variable.function.constructor"],"settings":{"foreground":"#6693BF"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#624C83"}},{"scope":["entity.other.attribute-name.class"],"settings":{"foreground":"#77713F"}},{"scope":["source.sass keyword.control"],"settings":{"foreground":"#6693BF"}},{"scope":["markup.inserted"],"settings":{"foreground":"#6E915F"}},{"scope":["markup.deleted"],"settings":{"foreground":"#D7474B"}},{"scope":["markup.changed"],"settings":{"foreground":"#DE9800"}},{"scope":["string.regexp"],"settings":{"foreground":"#836F4A"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#6693BF"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline"}},{"scope":["tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js"],"settings":{"foreground":"#624C83"}},{"scope":["source.js constant.other.object.key.js string.unquoted.label.js"],"settings":{"foreground":"#D9A594"}},{"scope":["source.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#B35B79"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#77713F"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#CC6D00"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#D9A594"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#CC6D00"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#4D699B"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#B35B79"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#624C83"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#6F894E"}},{"scope":["meta.tag JSXNested","meta.jsx.children","text.html","text.log"],"settings":{"foreground":"#545464"}},{"scope":["text.html.markdown","punctuation.definition.list_item.markdown"],"settings":{"foreground":"#545464"}},{"scope":["text.html.markdown markup.inline.raw.markdown"],"settings":{"foreground":"#624C83"}},{"scope":["text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown"],"settings":{"foreground":"#624C83"}},{"scope":["markdown.heading","entity.name.section.markdown","markup.heading.markdown"],"settings":{"foreground":"#4D699B"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#C84053"}},{"scope":["markup.bold","markup.bold string"],"settings":{"fontStyle":"bold"}},{"scope":["markup.bold markup.italic","markup.italic markup.bold","markup.quote markup.bold","markup.bold markup.italic string","markup.italic markup.bold string","markup.quote markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#C84053"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline","foreground":"#6693BF"}},{"scope":["markup.quote punctuation.definition.blockquote.markdown"],"settings":{"foreground":"#716E61"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic"}},{"scope":["string.other.link.title.markdown"],"settings":{"foreground":"#CC6D00"}},{"scope":["string.other.link.description.title.markdown"],"settings":{"foreground":"#624C83"}},{"scope":["constant.other.reference.link.markdown"],"settings":{"foreground":"#77713F"}},{"scope":["markup.raw.block"],"settings":{"foreground":"#624C83"}},{"scope":["markup.raw.block.fenced.markdown"],"settings":{"foreground":"#716E61"}},{"scope":["punctuation.definition.fenced.markdown"],"settings":{"foreground":"#716E61"}},{"scope":["markup.raw.block.fenced.markdown","variable.language.fenced.markdown","punctuation.section.class.end"],"settings":{"foreground":"#545464"}},{"scope":["variable.language.fenced.markdown"],"settings":{"foreground":"#716E61"}},{"scope":["meta.separator"],"settings":{"fontStyle":"bold","foreground":"#4E8CA2"}},{"scope":["markup.table"],"settings":{"foreground":"#545464"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/kanagawa-wave-DEfHZ9uR.js b/docs/assets/kanagawa-wave-DEfHZ9uR.js new file mode 100644 index 0000000..97d51c4 --- /dev/null +++ b/docs/assets/kanagawa-wave-DEfHZ9uR.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#2A2A37","activityBar.foreground":"#DCD7BA","activityBarBadge.background":"#658594","activityBarBadge.foreground":"#DCD7BA","badge.background":"#2A2A37","button.background":"#2A2A37","button.foreground":"#C8C093","button.secondaryBackground":"#223249","button.secondaryForeground":"#DCD7BA","checkbox.border":"#223249","debugToolBar.background":"#16161D","descriptionForeground":"#DCD7BA","diffEditor.insertedTextBackground":"#2B332880","dropdown.background":"#16161D","dropdown.border":"#16161D","editor.background":"#1F1F28","editor.findMatchBackground":"#2D4F67","editor.findMatchBorder":"#FF9E3B","editor.findMatchHighlightBackground":"#2D4F6780","editor.foreground":"#DCD7BA","editor.lineHighlightBackground":"#363646","editor.selectionBackground":"#223249","editor.selectionHighlightBackground":"#36364680","editor.selectionHighlightBorder":"#54546D","editor.wordHighlightBackground":"#3636464D","editor.wordHighlightBorder":"#54546D","editor.wordHighlightStrongBackground":"#3636464D","editor.wordHighlightStrongBorder":"#54546D","editorBracketHighlight.foreground1":"#957FB8","editorBracketHighlight.foreground2":"#FFA066","editorBracketHighlight.foreground3":"#7E9CD8","editorBracketHighlight.foreground4":"#D27E99","editorBracketHighlight.foreground5":"#E6C384","editorBracketHighlight.foreground6":"#7AA89F","editorBracketHighlight.unexpectedBracket.foreground":"#FF5D62","editorBracketMatch.background":"#16161D","editorBracketMatch.border":"#54546D","editorBracketPairGuide.activeBackground1":"#957FB8","editorBracketPairGuide.activeBackground2":"#FFA066","editorBracketPairGuide.activeBackground3":"#7E9CD8","editorBracketPairGuide.activeBackground4":"#D27E99","editorBracketPairGuide.activeBackground5":"#E6C384","editorBracketPairGuide.activeBackground6":"#7AA89F","editorCursor.background":"#1F1F28","editorCursor.foreground":"#DCD7BA","editorError.foreground":"#E82424","editorGroup.border":"#16161D","editorGroupHeader.tabsBackground":"#16161D","editorGutter.addedBackground":"#76946A","editorGutter.deletedBackground":"#C34043","editorGutter.modifiedBackground":"#DCA561","editorHoverWidget.background":"#1F1F28","editorHoverWidget.border":"#2A2A37","editorHoverWidget.highlightForeground":"#658594","editorIndentGuide.activeBackground1":"#363646","editorIndentGuide.background1":"#2A2A37","editorInlayHint.background":"#1F1F28","editorInlayHint.foreground":"#727169","editorLineNumber.activeForeground":"#FFA066","editorLineNumber.foreground":"#54546D","editorMarkerNavigation.background":"#363646","editorRuler.foreground":"#363646","editorSuggestWidget.background":"#223249","editorSuggestWidget.border":"#223249","editorSuggestWidget.selectedBackground":"#2D4F67","editorWarning.foreground":"#FF9E3B","editorWhitespace.foreground":"#1F1F28","editorWidget.background":"#1F1F28","focusBorder":"#223249","foreground":"#DCD7BA","gitDecoration.ignoredResourceForeground":"#727169","input.background":"#16161D","list.activeSelectionBackground":"#363646","list.activeSelectionForeground":"#DCD7BA","list.focusBackground":"#2A2A37","list.focusForeground":"#DCD7BA","list.highlightForeground":"#7E9CD8","list.hoverBackground":"#363646","list.hoverForeground":"#DCD7BA","list.inactiveSelectionBackground":"#2A2A37","list.inactiveSelectionForeground":"#DCD7BA","list.warningForeground":"#FF9E3B","menu.background":"#363646","menu.border":"#16161D","menu.foreground":"#DCD7BA","menu.selectionBackground":"#16161D","menu.selectionForeground":"#DCD7BA","menu.separatorBackground":"#54546D","menubar.selectionBackground":"#16161D","menubar.selectionForeground":"#DCD7BA","minimapGutter.addedBackground":"#76946A","minimapGutter.deletedBackground":"#C34043","minimapGutter.modifiedBackground":"#DCA561","panel.border":"#16161D","panelSectionHeader.background":"#1F1F28","peekView.border":"#54546D","peekViewEditor.background":"#2A2A37","peekViewEditor.matchHighlightBackground":"#2D4F67","peekViewResult.background":"#363646","scrollbar.shadow":"#363646","scrollbarSlider.activeBackground":"#2A2A3780","scrollbarSlider.background":"#54546D66","scrollbarSlider.hoverBackground":"#54546D80","settings.focusedRowBackground":"#363646","settings.headerForeground":"#DCD7BA","sideBar.background":"#1F1F28","sideBar.border":"#16161D","sideBar.foreground":"#DCD7BA","sideBarSectionHeader.background":"#363646","sideBarSectionHeader.foreground":"#DCD7BA","statusBar.background":"#16161D","statusBar.debuggingBackground":"#E82424","statusBar.debuggingBorder":"#957FB8","statusBar.debuggingForeground":"#DCD7BA","statusBar.foreground":"#C8C093","statusBar.noFolderBackground":"#1F1F28","statusBarItem.hoverBackground":"#363646","statusBarItem.remoteBackground":"#2D4F67","statusBarItem.remoteForeground":"#DCD7BA","tab.activeBackground":"#2A2A37","tab.activeForeground":"#7E9CD8","tab.border":"#2A2A37","tab.hoverBackground":"#363646","tab.inactiveBackground":"#1A1A22","tab.unfocusedHoverBackground":"#1F1F28","terminal.ansiBlack":"#16161D","terminal.ansiBlue":"#7E9CD8","terminal.ansiBrightBlack":"#727169","terminal.ansiBrightBlue":"#7FB4CA","terminal.ansiBrightCyan":"#7AA89F","terminal.ansiBrightGreen":"#98BB6C","terminal.ansiBrightMagenta":"#938AA9","terminal.ansiBrightRed":"#E82424","terminal.ansiBrightWhite":"#DCD7BA","terminal.ansiBrightYellow":"#E6C384","terminal.ansiCyan":"#6A9589","terminal.ansiGreen":"#76946A","terminal.ansiMagenta":"#957FB8","terminal.ansiRed":"#C34043","terminal.ansiWhite":"#C8C093","terminal.ansiYellow":"#C0A36E","terminal.background":"#1F1F28","terminal.border":"#16161D","terminal.foreground":"#DCD7BA","terminal.selectionBackground":"#223249","textBlockQuote.background":"#1F1F28","textBlockQuote.border":"#16161D","textLink.foreground":"#6A9589","textPreformat.foreground":"#FF9E3B","titleBar.activeBackground":"#363646","titleBar.activeForeground":"#DCD7BA","titleBar.inactiveBackground":"#1F1F28","titleBar.inactiveForeground":"#DCD7BA","walkThrough.embeddedEditorBackground":"#1F1F28"},"displayName":"Kanagawa Wave","name":"kanagawa-wave","semanticHighlighting":true,"semanticTokenColors":{"arithmetic":"#C0A36E","function":"#7E9CD8","keyword.controlFlow":{"fontStyle":"bold","foreground":"#957FB8"},"macro":"#E46876","method":"#7FB4CA","operator":"#C0A36E","parameter":"#B8B4D0","parameter.declaration":"#B8B4D0","parameter.definition":"#B8B4D0","variable":"#DCD7BA","variable.readonly":"#DCD7BA","variable.readonly.defaultLibrary":"#DCD7BA","variable.readonly.local":"#DCD7BA"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#727169"}},{"scope":["variable","string constant.other.placeholder"],"settings":{"foreground":"#DCD7BA"}},{"scope":["constant.other.color"],"settings":{"foreground":"#FFA066"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#E82424"}},{"scope":["storage.type"],"settings":{"foreground":"#957FB8"}},{"scope":["storage.modifier"],"settings":{"foreground":"#957FB8"}},{"scope":["keyword.control.flow","keyword.control.conditional","keyword.control.loop"],"settings":{"fontStyle":"bold","foreground":"#957FB8"}},{"scope":["keyword.control","constant.other.color","meta.tag","keyword.other.template","keyword.other.substitution","keyword.other"],"settings":{"foreground":"#957FB8"}},{"scope":["keyword.other.definition.ini"],"settings":{"foreground":"#FFA066"}},{"scope":["keyword.control.trycatch"],"settings":{"fontStyle":"bold","foreground":"#FF5D62"}},{"scope":["keyword.other.unit","keyword.operator"],"settings":{"foreground":"#E6C384"}},{"scope":["punctuation","punctuation.definition.tag","punctuation.separator.inheritance.php","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html","punctuation.section.embedded","meta.brace","keyword.operator.type.annotation","keyword.operator.namespace"],"settings":{"foreground":"#9CABCA"}},{"scope":["entity.name.tag","meta.tag.sgml"],"settings":{"foreground":"#E6C384"}},{"scope":["entity.name.function","meta.function-call","variable.function","support.function"],"settings":{"foreground":"#7E9CD8"}},{"scope":["keyword.other.special-method"],"settings":{"foreground":"#7FB4CA"}},{"scope":["entity.name.function.macro"],"settings":{"foreground":"#E46876"}},{"scope":["meta.block variable.other"],"settings":{"foreground":"#DCD7BA"}},{"scope":["variable.other.enummember"],"settings":{"foreground":"#FFA066"}},{"scope":["support.other.variable"],"settings":{"foreground":"#DCD7BA"}},{"scope":["string.other.link"],"settings":{"foreground":"#7FB4CA"}},{"scope":["constant.numeric","constant.language","support.constant","constant.character","constant.escape"],"settings":{"foreground":"#FFA066"}},{"scope":["constant.language.boolean"],"settings":{"foreground":"#FFA066"}},{"scope":["constant.numeric"],"settings":{"foreground":"#D27E99"}},{"scope":["string","punctuation.definition.string","constant.other.symbol","constant.other.key","entity.other.inherited-class","markup.heading","markup.inserted.git_gutter","meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js","markup.inline.raw.string"],"settings":{"foreground":"#98BB6C"}},{"scope":["entity.name","support.type","support.class","support.other.namespace.use.php","meta.use.php","support.other.namespace.php","support.type.sys-types"],"settings":{"foreground":"#7AA89F"}},{"scope":["entity.name.type.module","entity.name.namespace"],"settings":{"foreground":"#E6C384"}},{"scope":["entity.name.import.go"],"settings":{"foreground":"#98BB6C"}},{"scope":["keyword.blade"],"settings":{"foreground":"#957FB8"}},{"scope":["variable.other.property"],"settings":{"foreground":"#E6C384"}},{"scope":["keyword.control.import","keyword.import","meta.import"],"settings":{"foreground":"#FFA066"}},{"scope":["source.css support.type.property-name","source.sass support.type.property-name","source.scss support.type.property-name","source.less support.type.property-name","source.stylus support.type.property-name","source.postcss support.type.property-name"],"settings":{"foreground":"#7AA89F"}},{"scope":["entity.name.module.js","variable.import.parameter.js","variable.other.class.js"],"settings":{"foreground":"#FF5D62"}},{"scope":["variable.language"],"settings":{"foreground":"#FF5D62"}},{"scope":["entity.name.method.js"],"settings":{"foreground":"#7FB4CA"}},{"scope":["meta.class-method.js entity.name.function.js","variable.function.constructor"],"settings":{"foreground":"#7FB4CA"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#957FB8"}},{"scope":["entity.other.attribute-name.class"],"settings":{"foreground":"#E6C384"}},{"scope":["source.sass keyword.control"],"settings":{"foreground":"#7FB4CA"}},{"scope":["markup.inserted"],"settings":{"foreground":"#76946A"}},{"scope":["markup.deleted"],"settings":{"foreground":"#C34043"}},{"scope":["markup.changed"],"settings":{"foreground":"#DCA561"}},{"scope":["string.regexp"],"settings":{"foreground":"#C0A36E"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#7FB4CA"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline"}},{"scope":["tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js"],"settings":{"foreground":"#957FB8"}},{"scope":["source.js constant.other.object.key.js string.unquoted.label.js"],"settings":{"foreground":"#FF5D62"}},{"scope":["source.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#D27E99"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#E6C384"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFA066"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FF5D62"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFA066"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#7E9CD8"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#D27E99"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#957FB8"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#98BB6C"}},{"scope":["meta.tag JSXNested","meta.jsx.children","text.html","text.log"],"settings":{"foreground":"#DCD7BA"}},{"scope":["text.html.markdown","punctuation.definition.list_item.markdown"],"settings":{"foreground":"#DCD7BA"}},{"scope":["text.html.markdown markup.inline.raw.markdown"],"settings":{"foreground":"#957FB8"}},{"scope":["text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown"],"settings":{"foreground":"#957FB8"}},{"scope":["markdown.heading","entity.name.section.markdown","markup.heading.markdown"],"settings":{"foreground":"#7E9CD8"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#E46876"}},{"scope":["markup.bold","markup.bold string"],"settings":{"fontStyle":"bold"}},{"scope":["markup.bold markup.italic","markup.italic markup.bold","markup.quote markup.bold","markup.bold markup.italic string","markup.italic markup.bold string","markup.quote markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#E46876"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline","foreground":"#7FB4CA"}},{"scope":["markup.quote punctuation.definition.blockquote.markdown"],"settings":{"foreground":"#727169"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic"}},{"scope":["string.other.link.title.markdown"],"settings":{"foreground":"#FFA066"}},{"scope":["string.other.link.description.title.markdown"],"settings":{"foreground":"#957FB8"}},{"scope":["constant.other.reference.link.markdown"],"settings":{"foreground":"#E6C384"}},{"scope":["markup.raw.block"],"settings":{"foreground":"#957FB8"}},{"scope":["markup.raw.block.fenced.markdown"],"settings":{"foreground":"#727169"}},{"scope":["punctuation.definition.fenced.markdown"],"settings":{"foreground":"#727169"}},{"scope":["markup.raw.block.fenced.markdown","variable.language.fenced.markdown","punctuation.section.class.end"],"settings":{"foreground":"#DCD7BA"}},{"scope":["variable.language.fenced.markdown"],"settings":{"foreground":"#727169"}},{"scope":["meta.separator"],"settings":{"fontStyle":"bold","foreground":"#9CABCA"}},{"scope":["markup.table"],"settings":{"foreground":"#DCD7BA"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/kanban-definition-3W4ZIXB7-BtwSVIt8.js b/docs/assets/kanban-definition-3W4ZIXB7-BtwSVIt8.js new file mode 100644 index 0000000..f175999 --- /dev/null +++ b/docs/assets/kanban-definition-3W4ZIXB7-BtwSVIt8.js @@ -0,0 +1,89 @@ +import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as o,r as q}from"./src-faGJHwXX.js";import{G as yt,I as B,Q as ft,X as lt,Z as ct,b as j,d as z}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as mt}from"./chunk-EXTU4WIE-GbJyzeBy.js";import{n as bt,t as _t}from"./chunk-MI3HLSF2-CXMqGP2w.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import{a as Et,c as kt,i as St}from"./chunk-JZLCHNYA-DBaJpCky.js";import{t as Nt}from"./chunk-FMBD7UC4-DYXO3edG.js";var J=(function(){var i=o(function(t,c,a,r){for(a||(a={}),r=t.length;r--;a[t[r]]=c);return a},"o"),u=[1,4],p=[1,13],s=[1,12],d=[1,15],y=[1,16],_=[1,20],h=[1,19],D=[6,7,8],C=[1,26],L=[1,24],A=[1,25],n=[6,7,11],G=[1,31],O=[6,7,11,24],F=[1,6,13,16,17,20,23],U=[1,35],M=[1,36],$=[1,6,7,11,13,16,17,20,23],b=[1,38],I={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(t,c,a,r,g,e,R){var l=e.length-1;switch(g){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",e[l-1].id),r.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:r.getLogger().info("Node: ",e[l].id),r.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:r.getLogger().trace("Icon: ",e[l]),r.decorateNode({icon:e[l]});break;case 18:case 23:r.decorateNode({class:e[l]});break;case 19:r.getLogger().trace("SPACELIST");break;case 20:r.getLogger().trace("Node: ",e[l-1].id),r.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:r.getLogger().trace("Node: ",e[l].id),r.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:r.decorateNode({icon:e[l]});break;case 27:r.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:r.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:r.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:r.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:s,14:14,16:d,17:y,18:17,19:18,20:_,23:h},i(D,[2,3]),{1:[2,2]},i(D,[2,4]),i(D,[2,5]),{1:[2,6],6:p,12:21,13:s,14:14,16:d,17:y,18:17,19:18,20:_,23:h},{6:p,9:22,12:11,13:s,14:14,16:d,17:y,18:17,19:18,20:_,23:h},{6:C,7:L,10:23,11:A},i(n,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:_,23:h}),i(n,[2,19]),i(n,[2,21],{15:30,24:G}),i(n,[2,22]),i(n,[2,23]),i(O,[2,25]),i(O,[2,26]),i(O,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:L,10:34,11:A},{1:[2,7],6:p,12:21,13:s,14:14,16:d,17:y,18:17,19:18,20:_,23:h},i(F,[2,14],{7:U,11:M}),i($,[2,8]),i($,[2,9]),i($,[2,10]),i(n,[2,16],{15:37,24:G}),i(n,[2,17]),i(n,[2,18]),i(n,[2,20],{24:b}),i(O,[2,31]),{21:[1,39]},{22:[1,40]},i(F,[2,13],{7:U,11:M}),i($,[2,11]),i($,[2,12]),i(n,[2,15],{24:b}),i(O,[2,30]),{22:[1,41]},i(O,[2,27]),i(O,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,c){if(c.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=c,a}},"parseError"),parse:o(function(t){var c=this,a=[0],r=[],g=[null],e=[],R=this.table,l="",H=0,it=0,nt=0,gt=2,st=1,ut=e.slice.call(arguments,1),m=Object.create(this.lexer),w={yy:{}};for(var K in this.yy)Object.prototype.hasOwnProperty.call(this.yy,K)&&(w.yy[K]=this.yy[K]);m.setInput(t,w.yy),w.yy.lexer=m,w.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var Q=m.yylloc;e.push(Q);var dt=m.options&&m.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(N){a.length-=2*N,g.length-=N,e.length-=N}o(pt,"popStack");function rt(){var N=r.pop()||m.lex()||st;return typeof N!="number"&&(N instanceof Array&&(r=N,N=r.pop()),N=c.symbols_[N]||N),N}o(rt,"lex");for(var E,Y,T,S,Z,P={},W,v,ot,X;;){if(T=a[a.length-1],this.defaultActions[T]?S=this.defaultActions[T]:(E??(E=rt()),S=R[T]&&R[T][E]),S===void 0||!S.length||!S[0]){var at="";for(W in X=[],R[T])this.terminals_[W]&&W>gt&&X.push("'"+this.terminals_[W]+"'");at=m.showPosition?"Parse error on line "+(H+1)+`: +`+m.showPosition()+` +Expecting `+X.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(H+1)+": Unexpected "+(E==st?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(at,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Q,expected:X})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+T+", token: "+E);switch(S[0]){case 1:a.push(E),g.push(m.yytext),e.push(m.yylloc),a.push(S[1]),E=null,Y?(E=Y,Y=null):(it=m.yyleng,l=m.yytext,H=m.yylineno,Q=m.yylloc,nt>0&&nt--);break;case 2:if(v=this.productions_[S[1]][1],P.$=g[g.length-v],P._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},dt&&(P._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Z=this.performAction.apply(P,[l,it,H,w.yy,S[1],g,e].concat(ut)),Z!==void 0)return Z;v&&(a=a.slice(0,-1*v*2),g=g.slice(0,-1*v),e=e.slice(0,-1*v)),a.push(this.productions_[S[1]][0]),g.push(P.$),e.push(P._$),ot=R[a[a.length-2]][a[a.length-1]],a.push(ot);break;case 3:return!0}}return!0},"parse")};I.lexer=(function(){return{EOF:1,parseError:o(function(t,c){if(this.yy.parser)this.yy.parser.parseError(t,c);else throw Error(t)},"parseError"),setInput:o(function(t,c){return this.yy=c||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var c=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),c=Array(t.length+1).join("-");return t+this.upcomingInput()+` +`+c+"^"},"showPosition"),test_match:o(function(t,c){var a,r,g;if(this.options.backtrack_lexer&&(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(g.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var e in g)this[e]=g[e];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,c,a,r;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),e=0;ec[0].length)){if(c=a,r=e,this.options.backtrack_lexer){if(t=this.test_match(a,g[e]),t!==!1)return t;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(t=this.test_match(c,g[r]),t===!1?!1:t):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){return this.next()||this.lex()},"lex"),begin:o(function(t){this.conditionStack.push(t)},"begin"),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:o(function(t){this.begin(t)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(t,c,a,r){switch(a){case 0:return this.pushState("shapeData"),c.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return c.yytext=c.yytext.replace(/\n\s*/g,"
"),24;case 4:return 24;case 5:this.popState();break;case 6:return t.getLogger().trace("Found comment",c.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",c.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",c.yytext),"NODE_DEND";case 36:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 41:return t.getLogger().trace("Long description:",c.yytext),21;case 42:return t.getLogger().trace("Long description:",c.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function k(){this.yy={}}return o(k,"Parser"),k.prototype=I,I.Parser=k,new k})();J.parser=J;var xt=J,x=[],V=[],tt=0,et={},Dt=o(()=>{x=[],V=[],tt=0,et={}},"clear"),Lt=o(i=>{if(x.length===0)return null;let u=x[0].level,p=null;for(let s=x.length-1;s>=0;s--)if(x[s].level===u&&!p&&(p=x[s]),x[s].levelh.parentId===d.id);for(let h of _){let D={id:h.id,parentId:d.id,label:B(h.label??"",s),isGroup:!1,ticket:h==null?void 0:h.ticket,priority:h==null?void 0:h.priority,assigned:h==null?void 0:h.assigned,icon:h==null?void 0:h.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};u.push(D)}}return{nodes:u,edges:i,other:{},config:j()}},"getData"),It=o((i,u,p,s,d)=>{var C,L;let y=j(),_=((C=y.mindmap)==null?void 0:C.padding)??z.mindmap.padding;switch(s){case f.ROUNDED_RECT:case f.RECT:case f.HEXAGON:_*=2}let h={id:B(u,y)||"kbn"+tt++,level:i,label:B(p,y),width:((L=y.mindmap)==null?void 0:L.maxNodeWidth)??z.mindmap.maxNodeWidth,padding:_,isGroup:!1};if(d!==void 0){let A;A=d.includes(` +`)?d+` +`:`{ +`+d+` +}`;let n=bt(A,{schema:_t});if(n.shape&&(n.shape!==n.shape.toLowerCase()||n.shape.includes("_")))throw Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);n!=null&&n.shape&&n.shape==="kanbanItem"&&(h.shape=n==null?void 0:n.shape),n!=null&&n.label&&(h.label=n==null?void 0:n.label),n!=null&&n.icon&&(h.icon=n==null?void 0:n.icon.toString()),n!=null&&n.assigned&&(h.assigned=n==null?void 0:n.assigned.toString()),n!=null&&n.ticket&&(h.ticket=n==null?void 0:n.ticket.toString()),n!=null&&n.priority&&(h.priority=n==null?void 0:n.priority)}let D=Lt(i);D?h.parentId=D.id||"kbn"+tt++:V.push(h),x.push(h)},"addNode"),f={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},vt={clear:Dt,addNode:It,getSections:ht,getData:Ot,nodeType:f,getType:o((i,u)=>{switch(q.debug("In get type",i,u),i){case"[":return f.RECT;case"(":return u===")"?f.ROUNDED_RECT:f.CLOUD;case"((":return f.CIRCLE;case")":return f.CLOUD;case"))":return f.BANG;case"{{":return f.HEXAGON;default:return f.DEFAULT}},"getType"),setElementForId:o((i,u)=>{et[i]=u},"setElementForId"),decorateNode:o(i=>{if(!i)return;let u=j(),p=x[x.length-1];i.icon&&(p.icon=B(i.icon,u)),i.class&&(p.cssClasses=B(i.class,u))},"decorateNode"),type2Str:o(i=>{switch(i){case f.DEFAULT:return"no-border";case f.RECT:return"rect";case f.ROUNDED_RECT:return"rounded-rect";case f.CIRCLE:return"circle";case f.CLOUD:return"cloud";case f.BANG:return"bang";case f.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:o(()=>q,"getLogger"),getElementById:o(i=>et[i],"getElementById")},Ct={draw:o(async(i,u,p,s)=>{var O,F,U,M,$;q.debug(`Rendering kanban diagram +`+i);let d=s.db.getData(),y=j();y.htmlLabels=!1;let _=mt(u),h=_.append("g");h.attr("class","sections");let D=_.append("g");D.attr("class","items");let C=d.nodes.filter(b=>b.isGroup),L=0,A=[],n=25;for(let b of C){let I=((O=y==null?void 0:y.kanban)==null?void 0:O.sectionWidth)||200;L+=1,b.x=I*L+(L-1)*10/2,b.width=I,b.y=0,b.height=I*3,b.rx=5,b.ry=5,b.cssClasses=b.cssClasses+" section-"+L;let k=await St(h,b);n=Math.max(n,(F=k==null?void 0:k.labelBBox)==null?void 0:F.height),A.push(k)}let G=0;for(let b of C){let I=A[G];G+=1;let k=((U=y==null?void 0:y.kanban)==null?void 0:U.sectionWidth)||200,t=-k*3/2+n,c=t,a=d.nodes.filter(e=>e.parentId===b.id);for(let e of a){if(e.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");e.x=b.x,e.width=k-1.5*10;let R=(await Et(D,e,{config:y})).node().getBBox();e.y=c+R.height/2,await kt(e),c=e.y+R.height/2+10/2}let r=I.cluster.select("rect"),g=Math.max(c-t+30,50)+(n-25);r.attr("height",g)}yt(void 0,_,((M=y.mindmap)==null?void 0:M.padding)??z.kanban.padding,(($=y.mindmap)==null?void 0:$.useMaxWidth)??z.kanban.useMaxWidth)},"draw")},At=o(i=>{let u="";for(let s=0;si.darkMode?lt(s,d):ct(s,d),"adjuster");for(let s=0;s` + .edge { + stroke-width: 3; + } + ${At(i)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${i.git0}; + } + .section-root text { + fill: ${i.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .cluster-label, .label { + color: ${i.textColor}; + fill: ${i.textColor}; + } + .kanban-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } + ${Nt()} +`,"getStyles")};export{$t as diagram}; diff --git a/docs/assets/katex-BE1_QWuC.css b/docs/assets/katex-BE1_QWuC.css new file mode 100644 index 0000000..581f3c5 --- /dev/null +++ b/docs/assets/katex-BE1_QWuC.css @@ -0,0 +1 @@ +@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2)format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff)format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2)format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff)format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2)format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff)format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2)format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff)format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2)format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff)format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2)format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff)format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2)format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff)format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2)format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff)format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-B22Nviop.woff2)format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff)format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2)format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff)format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-t53AETM-.woff2)format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff)format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2)format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff)format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2)format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff)format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2)format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff)format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2)format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff)format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2)format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff)format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2)format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff)format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC)format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff)format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2)format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff)format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2)format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff)format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf)format("truetype")}.katex{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.16.27"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{white-space:nowrap;width:min-content;position:relative}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{flex-direction:row;display:inline-flex}.katex .thinbox{width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.root{margin-left:.277778em;margin-right:-.555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.833333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.857143em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55429em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.416667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.833333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.833333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.833333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.833173em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.833601em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{width:.12em;display:inline-block}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo)")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo)")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/docs/assets/katex-BmeEOSF2.js b/docs/assets/katex-BmeEOSF2.js new file mode 100644 index 0000000..1d1a881 --- /dev/null +++ b/docs/assets/katex-BmeEOSF2.js @@ -0,0 +1 @@ +import{c as a}from"./katex-dFZM4X_7.js";export{a as default}; diff --git a/docs/assets/katex-dFZM4X_7.js b/docs/assets/katex-dFZM4X_7.js new file mode 100644 index 0000000..20ce101 --- /dev/null +++ b/docs/assets/katex-dFZM4X_7.js @@ -0,0 +1,261 @@ +var me=class f1{constructor(t,r,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=a}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new f1(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}},ge=class v1{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new v1(r,me.range(this,t))}},M=class b1{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+t,n,s,h=r&&r.loc;if(h&&h.start<=h.end){var c=h.lexer.input;n=h.start,s=h.end,n===c.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var p=c.slice(n,s).replace(/[^]/g,"$&\u0332"),g=n>15?"\u2026"+c.slice(n-15,n):c.slice(0,n),v=s+15":">","<":"<",'"':""","'":"'"},T1=/[&><"']/g;function B1(e){return String(e).replace(T1,t=>A1[t])}var Ot=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},N1=function(e){var t=Ot(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},q1=function(e){if(!e)throw Error("Expected non-null, but got "+String(e));return e},F={deflt:S1,escape:B1,hyphenate:z1,getBaseElem:Ot,isCharacterBox:N1,protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"}},a0={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function C1(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var F0=class{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||(e={}),a0)if(a0.hasOwnProperty(t)){var r=a0[t];this[t]=e[t]===void 0?C1(r):r.processor?r.processor(e[t]):e[t]}}reportNonstrict(e,t,r){var a=this.strict;if(typeof a=="function"&&(a=a(e,t,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),r);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,r){var a=this.strict;if(typeof a=="function")try{a=a(e,t,r)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=F.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust=="function"?this.trust(e):this.trust)}},Re=class{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return be[I1[this.id]]}sub(){return be[R1[this.id]]}fracNum(){return be[O1[this.id]]}fracDen(){return be[E1[this.id]]}cramp(){return be[L1[this.id]]}text(){return be[D1[this.id]]}isTight(){return this.size>=2}},G0=0,g0=1,Ke=2,Me=3,i0=4,ce=5,_e=6,te=7,be=[new Re(G0,0,!1),new Re(g0,0,!0),new Re(Ke,1,!1),new Re(Me,1,!0),new Re(i0,2,!1),new Re(ce,2,!0),new Re(_e,3,!1),new Re(te,3,!0)],I1=[i0,ce,i0,ce,_e,te,_e,te],R1=[ce,ce,ce,ce,te,te,te,te],O1=[Ke,Me,i0,ce,_e,te,_e,te],E1=[Me,Me,ce,ce,te,te,te,te],L1=[g0,g0,Me,Me,ce,ce,te,te],D1=[G0,g0,Ke,Me,Ke,Me,Ke,Me],I={DISPLAY:be[G0],TEXT:be[Ke],SCRIPT:be[i0],SCRIPTSCRIPT:be[_e]},Y0=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function H1(e){for(var t=0;t=n[0]&&e<=n[1])return r.name}return null}var f0=[];Y0.forEach(e=>e.blocks.forEach(t=>f0.push(...t)));function Et(e){for(var t=0;t=f0[t]&&e<=f0[t+1])return!0;return!1}var Je=80,V1=function(e,t){return"M95,"+(622+e+t)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+" -"+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},P1=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+" -"+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},F1=function(e,t){return"M983 "+(10+e+t)+` +l`+e/3.13+" -"+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},G1=function(e,t){return"M424,"+(2398+e+t)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+` +h400000v`+(40+e)+"h-400000z"},Y1=function(e,t){return"M473,"+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},X1=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},W1=function(e,t,r){var a=r-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` +H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},U1=function(e,t,r){t=1e3*t;var a="";switch(e){case"sqrtMain":a=V1(t,Je);break;case"sqrtSize1":a=P1(t,Je);break;case"sqrtSize2":a=F1(t,Je);break;case"sqrtSize3":a=G1(t,Je);break;case"sqrtSize4":a=Y1(t,Je);break;case"sqrtTall":a=W1(t,Je,r)}return a},j1=function(e,t){switch(e){case"\u239C":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"\u239F":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23A2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23A5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23AA":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23D0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Lt={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},$1=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error("Unknown stretchy delimiter.")}},n0=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText()).join("")}},ye={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},v0={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Dt={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Ht(e,t){ye[e]=t}function X0(e,t,r){if(!ye[t])throw Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=ye[t][a];if(!n&&e[0]in Dt&&(a=Dt[e[0]].charCodeAt(0),n=ye[t][a]),!n&&r==="text"&&Et(a)&&(n=ye[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var W0={};function Z1(e){var t=e>=5?0:e>=3?1:2;if(!W0[t]){var r=W0[t]={cssEmPerMu:v0.quad[t]/18};for(var a in v0)v0.hasOwnProperty(a)&&(r[a]=v0[a][t])}return W0[t]}var K1=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Vt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Pt=function(e,t){return t.size<2?e:K1[e-1][t.size-1]},Ft=class Ye{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ye.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Vt[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);return new Ye(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Pt(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Vt[t-1]})}havingBaseStyle(t){t||(t=this.style.text());var r=Pt(Ye.BASESIZE,t);return this.size===r&&this.textSize===Ye.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size===this.size?[]:["sizing","reset-size"+t.size,"size"+this.size]}baseSizingClasses(){return this.size===Ye.BASESIZE?[]:["sizing","reset-size"+this.size,"size"+Ye.BASESIZE]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Z1(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Ft.BASESIZE=6;var U0={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},_1={ex:!0,em:!0,mu:!0},Gt=function(e){return typeof e!="string"&&(e=e.unit),e in U0||e in _1||e==="ex"},j=function(e,t){var r;if(e.unit in U0)r=U0[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")r=t.fontMetrics().cssEmPerMu;else{var a=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit==="ex")r=a.fontMetrics().xHeight;else if(e.unit==="em")r=a.fontMetrics().quad;else throw new M("Invalid unit: '"+e.unit+"'");a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},z=function(e){return+e.toFixed(4)+"em"},Oe=function(e){return e.filter(t=>t).join(" ")},Yt=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},Xt=function(e){var t=document.createElement(e);for(var r in t.className=Oe(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n/=\x00-\x1f]/,Wt=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+F.escape(Oe(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=F.hyphenate(a)+":"+this.style[a]+";");for(var n in r&&(t+=' style="'+F.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(n)){if(J1.test(n))throw new M("Invalid attribute name '"+n+"'");t+=" "+n+'="'+F.escape(this.attributes[n])+'"'}t+=">";for(var s=0;s",t},o0=class{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Yt.call(this,e,r,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Xt.call(this,"span")}toMarkup(){return Wt.call(this,"span")}},j0=class{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Yt.call(this,t,a),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Xt.call(this,"a")}toMarkup(){return Wt.call(this,"a")}},Q1=class{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+F.escape(this.alt)+'0&&(t=document.createElement("span"),t.style.marginRight=z(this.italic)),this.classes.length>0&&(t||(t=document.createElement("span")),t.className=Oe(this.classes)),this.style)this.style.hasOwnProperty(r)&&(t||(t=document.createElement("span")),t.style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(a)&&(r+=F.hyphenate(a)+":"+this.style[a]+";");r&&(e=!0,t+=' style="'+F.escape(r)+'"');var n=F.escape(this.text);return e?(t+=">",t+=n,t+="",t):n}},ze=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r':''}},$0=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=" but got "+String(e)+".")}var ra={bin:1,close:1,inner:1,open:1,punct:1,rel:1},aa={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},W={math:{},text:{}};function i(e,t,r,a,n,s){W[e][n]={font:t,group:r,replace:a},s&&a&&(W[e][a]=W[e][n])}var o="math",w="text",l="main",u="ams",U="accent-token",B="bin",re="close",Qe="inner",R="mathord",J="op-token",se="open",b0="punct",d="rel",Ae="spacing",f="textord";i(o,l,d,"\u2261","\\equiv",!0),i(o,l,d,"\u227A","\\prec",!0),i(o,l,d,"\u227B","\\succ",!0),i(o,l,d,"\u223C","\\sim",!0),i(o,l,d,"\u22A5","\\perp"),i(o,l,d,"\u2AAF","\\preceq",!0),i(o,l,d,"\u2AB0","\\succeq",!0),i(o,l,d,"\u2243","\\simeq",!0),i(o,l,d,"\u2223","\\mid",!0),i(o,l,d,"\u226A","\\ll",!0),i(o,l,d,"\u226B","\\gg",!0),i(o,l,d,"\u224D","\\asymp",!0),i(o,l,d,"\u2225","\\parallel"),i(o,l,d,"\u22C8","\\bowtie",!0),i(o,l,d,"\u2323","\\smile",!0),i(o,l,d,"\u2291","\\sqsubseteq",!0),i(o,l,d,"\u2292","\\sqsupseteq",!0),i(o,l,d,"\u2250","\\doteq",!0),i(o,l,d,"\u2322","\\frown",!0),i(o,l,d,"\u220B","\\ni",!0),i(o,l,d,"\u221D","\\propto",!0),i(o,l,d,"\u22A2","\\vdash",!0),i(o,l,d,"\u22A3","\\dashv",!0),i(o,l,d,"\u220B","\\owns"),i(o,l,b0,".","\\ldotp"),i(o,l,b0,"\u22C5","\\cdotp"),i(o,l,f,"#","\\#"),i(w,l,f,"#","\\#"),i(o,l,f,"&","\\&"),i(w,l,f,"&","\\&"),i(o,l,f,"\u2135","\\aleph",!0),i(o,l,f,"\u2200","\\forall",!0),i(o,l,f,"\u210F","\\hbar",!0),i(o,l,f,"\u2203","\\exists",!0),i(o,l,f,"\u2207","\\nabla",!0),i(o,l,f,"\u266D","\\flat",!0),i(o,l,f,"\u2113","\\ell",!0),i(o,l,f,"\u266E","\\natural",!0),i(o,l,f,"\u2663","\\clubsuit",!0),i(o,l,f,"\u2118","\\wp",!0),i(o,l,f,"\u266F","\\sharp",!0),i(o,l,f,"\u2662","\\diamondsuit",!0),i(o,l,f,"\u211C","\\Re",!0),i(o,l,f,"\u2661","\\heartsuit",!0),i(o,l,f,"\u2111","\\Im",!0),i(o,l,f,"\u2660","\\spadesuit",!0),i(o,l,f,"\xA7","\\S",!0),i(w,l,f,"\xA7","\\S"),i(o,l,f,"\xB6","\\P",!0),i(w,l,f,"\xB6","\\P"),i(o,l,f,"\u2020","\\dag"),i(w,l,f,"\u2020","\\dag"),i(w,l,f,"\u2020","\\textdagger"),i(o,l,f,"\u2021","\\ddag"),i(w,l,f,"\u2021","\\ddag"),i(w,l,f,"\u2021","\\textdaggerdbl"),i(o,l,re,"\u23B1","\\rmoustache",!0),i(o,l,se,"\u23B0","\\lmoustache",!0),i(o,l,re,"\u27EF","\\rgroup",!0),i(o,l,se,"\u27EE","\\lgroup",!0),i(o,l,B,"\u2213","\\mp",!0),i(o,l,B,"\u2296","\\ominus",!0),i(o,l,B,"\u228E","\\uplus",!0),i(o,l,B,"\u2293","\\sqcap",!0),i(o,l,B,"\u2217","\\ast"),i(o,l,B,"\u2294","\\sqcup",!0),i(o,l,B,"\u25EF","\\bigcirc",!0),i(o,l,B,"\u2219","\\bullet",!0),i(o,l,B,"\u2021","\\ddagger"),i(o,l,B,"\u2240","\\wr",!0),i(o,l,B,"\u2A3F","\\amalg"),i(o,l,B,"&","\\And"),i(o,l,d,"\u27F5","\\longleftarrow",!0),i(o,l,d,"\u21D0","\\Leftarrow",!0),i(o,l,d,"\u27F8","\\Longleftarrow",!0),i(o,l,d,"\u27F6","\\longrightarrow",!0),i(o,l,d,"\u21D2","\\Rightarrow",!0),i(o,l,d,"\u27F9","\\Longrightarrow",!0),i(o,l,d,"\u2194","\\leftrightarrow",!0),i(o,l,d,"\u27F7","\\longleftrightarrow",!0),i(o,l,d,"\u21D4","\\Leftrightarrow",!0),i(o,l,d,"\u27FA","\\Longleftrightarrow",!0),i(o,l,d,"\u21A6","\\mapsto",!0),i(o,l,d,"\u27FC","\\longmapsto",!0),i(o,l,d,"\u2197","\\nearrow",!0),i(o,l,d,"\u21A9","\\hookleftarrow",!0),i(o,l,d,"\u21AA","\\hookrightarrow",!0),i(o,l,d,"\u2198","\\searrow",!0),i(o,l,d,"\u21BC","\\leftharpoonup",!0),i(o,l,d,"\u21C0","\\rightharpoonup",!0),i(o,l,d,"\u2199","\\swarrow",!0),i(o,l,d,"\u21BD","\\leftharpoondown",!0),i(o,l,d,"\u21C1","\\rightharpoondown",!0),i(o,l,d,"\u2196","\\nwarrow",!0),i(o,l,d,"\u21CC","\\rightleftharpoons",!0),i(o,u,d,"\u226E","\\nless",!0),i(o,u,d,"\uE010","\\@nleqslant"),i(o,u,d,"\uE011","\\@nleqq"),i(o,u,d,"\u2A87","\\lneq",!0),i(o,u,d,"\u2268","\\lneqq",!0),i(o,u,d,"\uE00C","\\@lvertneqq"),i(o,u,d,"\u22E6","\\lnsim",!0),i(o,u,d,"\u2A89","\\lnapprox",!0),i(o,u,d,"\u2280","\\nprec",!0),i(o,u,d,"\u22E0","\\npreceq",!0),i(o,u,d,"\u22E8","\\precnsim",!0),i(o,u,d,"\u2AB9","\\precnapprox",!0),i(o,u,d,"\u2241","\\nsim",!0),i(o,u,d,"\uE006","\\@nshortmid"),i(o,u,d,"\u2224","\\nmid",!0),i(o,u,d,"\u22AC","\\nvdash",!0),i(o,u,d,"\u22AD","\\nvDash",!0),i(o,u,d,"\u22EA","\\ntriangleleft"),i(o,u,d,"\u22EC","\\ntrianglelefteq",!0),i(o,u,d,"\u228A","\\subsetneq",!0),i(o,u,d,"\uE01A","\\@varsubsetneq"),i(o,u,d,"\u2ACB","\\subsetneqq",!0),i(o,u,d,"\uE017","\\@varsubsetneqq"),i(o,u,d,"\u226F","\\ngtr",!0),i(o,u,d,"\uE00F","\\@ngeqslant"),i(o,u,d,"\uE00E","\\@ngeqq"),i(o,u,d,"\u2A88","\\gneq",!0),i(o,u,d,"\u2269","\\gneqq",!0),i(o,u,d,"\uE00D","\\@gvertneqq"),i(o,u,d,"\u22E7","\\gnsim",!0),i(o,u,d,"\u2A8A","\\gnapprox",!0),i(o,u,d,"\u2281","\\nsucc",!0),i(o,u,d,"\u22E1","\\nsucceq",!0),i(o,u,d,"\u22E9","\\succnsim",!0),i(o,u,d,"\u2ABA","\\succnapprox",!0),i(o,u,d,"\u2246","\\ncong",!0),i(o,u,d,"\uE007","\\@nshortparallel"),i(o,u,d,"\u2226","\\nparallel",!0),i(o,u,d,"\u22AF","\\nVDash",!0),i(o,u,d,"\u22EB","\\ntriangleright"),i(o,u,d,"\u22ED","\\ntrianglerighteq",!0),i(o,u,d,"\uE018","\\@nsupseteqq"),i(o,u,d,"\u228B","\\supsetneq",!0),i(o,u,d,"\uE01B","\\@varsupsetneq"),i(o,u,d,"\u2ACC","\\supsetneqq",!0),i(o,u,d,"\uE019","\\@varsupsetneqq"),i(o,u,d,"\u22AE","\\nVdash",!0),i(o,u,d,"\u2AB5","\\precneqq",!0),i(o,u,d,"\u2AB6","\\succneqq",!0),i(o,u,d,"\uE016","\\@nsubseteqq"),i(o,u,B,"\u22B4","\\unlhd"),i(o,u,B,"\u22B5","\\unrhd"),i(o,u,d,"\u219A","\\nleftarrow",!0),i(o,u,d,"\u219B","\\nrightarrow",!0),i(o,u,d,"\u21CD","\\nLeftarrow",!0),i(o,u,d,"\u21CF","\\nRightarrow",!0),i(o,u,d,"\u21AE","\\nleftrightarrow",!0),i(o,u,d,"\u21CE","\\nLeftrightarrow",!0),i(o,u,d,"\u25B3","\\vartriangle"),i(o,u,f,"\u210F","\\hslash"),i(o,u,f,"\u25BD","\\triangledown"),i(o,u,f,"\u25CA","\\lozenge"),i(o,u,f,"\u24C8","\\circledS"),i(o,u,f,"\xAE","\\circledR"),i(w,u,f,"\xAE","\\circledR"),i(o,u,f,"\u2221","\\measuredangle",!0),i(o,u,f,"\u2204","\\nexists"),i(o,u,f,"\u2127","\\mho"),i(o,u,f,"\u2132","\\Finv",!0),i(o,u,f,"\u2141","\\Game",!0),i(o,u,f,"\u2035","\\backprime"),i(o,u,f,"\u25B2","\\blacktriangle"),i(o,u,f,"\u25BC","\\blacktriangledown"),i(o,u,f,"\u25A0","\\blacksquare"),i(o,u,f,"\u29EB","\\blacklozenge"),i(o,u,f,"\u2605","\\bigstar"),i(o,u,f,"\u2222","\\sphericalangle",!0),i(o,u,f,"\u2201","\\complement",!0),i(o,u,f,"\xF0","\\eth",!0),i(w,l,f,"\xF0","\xF0"),i(o,u,f,"\u2571","\\diagup"),i(o,u,f,"\u2572","\\diagdown"),i(o,u,f,"\u25A1","\\square"),i(o,u,f,"\u25A1","\\Box"),i(o,u,f,"\u25CA","\\Diamond"),i(o,u,f,"\xA5","\\yen",!0),i(w,u,f,"\xA5","\\yen",!0),i(o,u,f,"\u2713","\\checkmark",!0),i(w,u,f,"\u2713","\\checkmark"),i(o,u,f,"\u2136","\\beth",!0),i(o,u,f,"\u2138","\\daleth",!0),i(o,u,f,"\u2137","\\gimel",!0),i(o,u,f,"\u03DD","\\digamma",!0),i(o,u,f,"\u03F0","\\varkappa"),i(o,u,se,"\u250C","\\@ulcorner",!0),i(o,u,re,"\u2510","\\@urcorner",!0),i(o,u,se,"\u2514","\\@llcorner",!0),i(o,u,re,"\u2518","\\@lrcorner",!0),i(o,u,d,"\u2266","\\leqq",!0),i(o,u,d,"\u2A7D","\\leqslant",!0),i(o,u,d,"\u2A95","\\eqslantless",!0),i(o,u,d,"\u2272","\\lesssim",!0),i(o,u,d,"\u2A85","\\lessapprox",!0),i(o,u,d,"\u224A","\\approxeq",!0),i(o,u,B,"\u22D6","\\lessdot"),i(o,u,d,"\u22D8","\\lll",!0),i(o,u,d,"\u2276","\\lessgtr",!0),i(o,u,d,"\u22DA","\\lesseqgtr",!0),i(o,u,d,"\u2A8B","\\lesseqqgtr",!0),i(o,u,d,"\u2251","\\doteqdot"),i(o,u,d,"\u2253","\\risingdotseq",!0),i(o,u,d,"\u2252","\\fallingdotseq",!0),i(o,u,d,"\u223D","\\backsim",!0),i(o,u,d,"\u22CD","\\backsimeq",!0),i(o,u,d,"\u2AC5","\\subseteqq",!0),i(o,u,d,"\u22D0","\\Subset",!0),i(o,u,d,"\u228F","\\sqsubset",!0),i(o,u,d,"\u227C","\\preccurlyeq",!0),i(o,u,d,"\u22DE","\\curlyeqprec",!0),i(o,u,d,"\u227E","\\precsim",!0),i(o,u,d,"\u2AB7","\\precapprox",!0),i(o,u,d,"\u22B2","\\vartriangleleft"),i(o,u,d,"\u22B4","\\trianglelefteq"),i(o,u,d,"\u22A8","\\vDash",!0),i(o,u,d,"\u22AA","\\Vvdash",!0),i(o,u,d,"\u2323","\\smallsmile"),i(o,u,d,"\u2322","\\smallfrown"),i(o,u,d,"\u224F","\\bumpeq",!0),i(o,u,d,"\u224E","\\Bumpeq",!0),i(o,u,d,"\u2267","\\geqq",!0),i(o,u,d,"\u2A7E","\\geqslant",!0),i(o,u,d,"\u2A96","\\eqslantgtr",!0),i(o,u,d,"\u2273","\\gtrsim",!0),i(o,u,d,"\u2A86","\\gtrapprox",!0),i(o,u,B,"\u22D7","\\gtrdot"),i(o,u,d,"\u22D9","\\ggg",!0),i(o,u,d,"\u2277","\\gtrless",!0),i(o,u,d,"\u22DB","\\gtreqless",!0),i(o,u,d,"\u2A8C","\\gtreqqless",!0),i(o,u,d,"\u2256","\\eqcirc",!0),i(o,u,d,"\u2257","\\circeq",!0),i(o,u,d,"\u225C","\\triangleq",!0),i(o,u,d,"\u223C","\\thicksim"),i(o,u,d,"\u2248","\\thickapprox"),i(o,u,d,"\u2AC6","\\supseteqq",!0),i(o,u,d,"\u22D1","\\Supset",!0),i(o,u,d,"\u2290","\\sqsupset",!0),i(o,u,d,"\u227D","\\succcurlyeq",!0),i(o,u,d,"\u22DF","\\curlyeqsucc",!0),i(o,u,d,"\u227F","\\succsim",!0),i(o,u,d,"\u2AB8","\\succapprox",!0),i(o,u,d,"\u22B3","\\vartriangleright"),i(o,u,d,"\u22B5","\\trianglerighteq"),i(o,u,d,"\u22A9","\\Vdash",!0),i(o,u,d,"\u2223","\\shortmid"),i(o,u,d,"\u2225","\\shortparallel"),i(o,u,d,"\u226C","\\between",!0),i(o,u,d,"\u22D4","\\pitchfork",!0),i(o,u,d,"\u221D","\\varpropto"),i(o,u,d,"\u25C0","\\blacktriangleleft"),i(o,u,d,"\u2234","\\therefore",!0),i(o,u,d,"\u220D","\\backepsilon"),i(o,u,d,"\u25B6","\\blacktriangleright"),i(o,u,d,"\u2235","\\because",!0),i(o,u,d,"\u22D8","\\llless"),i(o,u,d,"\u22D9","\\gggtr"),i(o,u,B,"\u22B2","\\lhd"),i(o,u,B,"\u22B3","\\rhd"),i(o,u,d,"\u2242","\\eqsim",!0),i(o,l,d,"\u22C8","\\Join"),i(o,u,d,"\u2251","\\Doteq",!0),i(o,u,B,"\u2214","\\dotplus",!0),i(o,u,B,"\u2216","\\smallsetminus"),i(o,u,B,"\u22D2","\\Cap",!0),i(o,u,B,"\u22D3","\\Cup",!0),i(o,u,B,"\u2A5E","\\doublebarwedge",!0),i(o,u,B,"\u229F","\\boxminus",!0),i(o,u,B,"\u229E","\\boxplus",!0),i(o,u,B,"\u22C7","\\divideontimes",!0),i(o,u,B,"\u22C9","\\ltimes",!0),i(o,u,B,"\u22CA","\\rtimes",!0),i(o,u,B,"\u22CB","\\leftthreetimes",!0),i(o,u,B,"\u22CC","\\rightthreetimes",!0),i(o,u,B,"\u22CF","\\curlywedge",!0),i(o,u,B,"\u22CE","\\curlyvee",!0),i(o,u,B,"\u229D","\\circleddash",!0),i(o,u,B,"\u229B","\\circledast",!0),i(o,u,B,"\u22C5","\\centerdot"),i(o,u,B,"\u22BA","\\intercal",!0),i(o,u,B,"\u22D2","\\doublecap"),i(o,u,B,"\u22D3","\\doublecup"),i(o,u,B,"\u22A0","\\boxtimes",!0),i(o,u,d,"\u21E2","\\dashrightarrow",!0),i(o,u,d,"\u21E0","\\dashleftarrow",!0),i(o,u,d,"\u21C7","\\leftleftarrows",!0),i(o,u,d,"\u21C6","\\leftrightarrows",!0),i(o,u,d,"\u21DA","\\Lleftarrow",!0),i(o,u,d,"\u219E","\\twoheadleftarrow",!0),i(o,u,d,"\u21A2","\\leftarrowtail",!0),i(o,u,d,"\u21AB","\\looparrowleft",!0),i(o,u,d,"\u21CB","\\leftrightharpoons",!0),i(o,u,d,"\u21B6","\\curvearrowleft",!0),i(o,u,d,"\u21BA","\\circlearrowleft",!0),i(o,u,d,"\u21B0","\\Lsh",!0),i(o,u,d,"\u21C8","\\upuparrows",!0),i(o,u,d,"\u21BF","\\upharpoonleft",!0),i(o,u,d,"\u21C3","\\downharpoonleft",!0),i(o,l,d,"\u22B6","\\origof",!0),i(o,l,d,"\u22B7","\\imageof",!0),i(o,u,d,"\u22B8","\\multimap",!0),i(o,u,d,"\u21AD","\\leftrightsquigarrow",!0),i(o,u,d,"\u21C9","\\rightrightarrows",!0),i(o,u,d,"\u21C4","\\rightleftarrows",!0),i(o,u,d,"\u21A0","\\twoheadrightarrow",!0),i(o,u,d,"\u21A3","\\rightarrowtail",!0),i(o,u,d,"\u21AC","\\looparrowright",!0),i(o,u,d,"\u21B7","\\curvearrowright",!0),i(o,u,d,"\u21BB","\\circlearrowright",!0),i(o,u,d,"\u21B1","\\Rsh",!0),i(o,u,d,"\u21CA","\\downdownarrows",!0),i(o,u,d,"\u21BE","\\upharpoonright",!0),i(o,u,d,"\u21C2","\\downharpoonright",!0),i(o,u,d,"\u21DD","\\rightsquigarrow",!0),i(o,u,d,"\u21DD","\\leadsto"),i(o,u,d,"\u21DB","\\Rrightarrow",!0),i(o,u,d,"\u21BE","\\restriction"),i(o,l,f,"\u2018","`"),i(o,l,f,"$","\\$"),i(w,l,f,"$","\\$"),i(w,l,f,"$","\\textdollar"),i(o,l,f,"%","\\%"),i(w,l,f,"%","\\%"),i(o,l,f,"_","\\_"),i(w,l,f,"_","\\_"),i(w,l,f,"_","\\textunderscore"),i(o,l,f,"\u2220","\\angle",!0),i(o,l,f,"\u221E","\\infty",!0),i(o,l,f,"\u2032","\\prime"),i(o,l,f,"\u25B3","\\triangle"),i(o,l,f,"\u0393","\\Gamma",!0),i(o,l,f,"\u0394","\\Delta",!0),i(o,l,f,"\u0398","\\Theta",!0),i(o,l,f,"\u039B","\\Lambda",!0),i(o,l,f,"\u039E","\\Xi",!0),i(o,l,f,"\u03A0","\\Pi",!0),i(o,l,f,"\u03A3","\\Sigma",!0),i(o,l,f,"\u03A5","\\Upsilon",!0),i(o,l,f,"\u03A6","\\Phi",!0),i(o,l,f,"\u03A8","\\Psi",!0),i(o,l,f,"\u03A9","\\Omega",!0),i(o,l,f,"A","\u0391"),i(o,l,f,"B","\u0392"),i(o,l,f,"E","\u0395"),i(o,l,f,"Z","\u0396"),i(o,l,f,"H","\u0397"),i(o,l,f,"I","\u0399"),i(o,l,f,"K","\u039A"),i(o,l,f,"M","\u039C"),i(o,l,f,"N","\u039D"),i(o,l,f,"O","\u039F"),i(o,l,f,"P","\u03A1"),i(o,l,f,"T","\u03A4"),i(o,l,f,"X","\u03A7"),i(o,l,f,"\xAC","\\neg",!0),i(o,l,f,"\xAC","\\lnot"),i(o,l,f,"\u22A4","\\top"),i(o,l,f,"\u22A5","\\bot"),i(o,l,f,"\u2205","\\emptyset"),i(o,u,f,"\u2205","\\varnothing"),i(o,l,R,"\u03B1","\\alpha",!0),i(o,l,R,"\u03B2","\\beta",!0),i(o,l,R,"\u03B3","\\gamma",!0),i(o,l,R,"\u03B4","\\delta",!0),i(o,l,R,"\u03F5","\\epsilon",!0),i(o,l,R,"\u03B6","\\zeta",!0),i(o,l,R,"\u03B7","\\eta",!0),i(o,l,R,"\u03B8","\\theta",!0),i(o,l,R,"\u03B9","\\iota",!0),i(o,l,R,"\u03BA","\\kappa",!0),i(o,l,R,"\u03BB","\\lambda",!0),i(o,l,R,"\u03BC","\\mu",!0),i(o,l,R,"\u03BD","\\nu",!0),i(o,l,R,"\u03BE","\\xi",!0),i(o,l,R,"\u03BF","\\omicron",!0),i(o,l,R,"\u03C0","\\pi",!0),i(o,l,R,"\u03C1","\\rho",!0),i(o,l,R,"\u03C3","\\sigma",!0),i(o,l,R,"\u03C4","\\tau",!0),i(o,l,R,"\u03C5","\\upsilon",!0),i(o,l,R,"\u03D5","\\phi",!0),i(o,l,R,"\u03C7","\\chi",!0),i(o,l,R,"\u03C8","\\psi",!0),i(o,l,R,"\u03C9","\\omega",!0),i(o,l,R,"\u03B5","\\varepsilon",!0),i(o,l,R,"\u03D1","\\vartheta",!0),i(o,l,R,"\u03D6","\\varpi",!0),i(o,l,R,"\u03F1","\\varrho",!0),i(o,l,R,"\u03C2","\\varsigma",!0),i(o,l,R,"\u03C6","\\varphi",!0),i(o,l,B,"\u2217","*",!0),i(o,l,B,"+","+"),i(o,l,B,"\u2212","-",!0),i(o,l,B,"\u22C5","\\cdot",!0),i(o,l,B,"\u2218","\\circ",!0),i(o,l,B,"\xF7","\\div",!0),i(o,l,B,"\xB1","\\pm",!0),i(o,l,B,"\xD7","\\times",!0),i(o,l,B,"\u2229","\\cap",!0),i(o,l,B,"\u222A","\\cup",!0),i(o,l,B,"\u2216","\\setminus",!0),i(o,l,B,"\u2227","\\land"),i(o,l,B,"\u2228","\\lor"),i(o,l,B,"\u2227","\\wedge",!0),i(o,l,B,"\u2228","\\vee",!0),i(o,l,f,"\u221A","\\surd"),i(o,l,se,"\u27E8","\\langle",!0),i(o,l,se,"\u2223","\\lvert"),i(o,l,se,"\u2225","\\lVert"),i(o,l,re,"?","?"),i(o,l,re,"!","!"),i(o,l,re,"\u27E9","\\rangle",!0),i(o,l,re,"\u2223","\\rvert"),i(o,l,re,"\u2225","\\rVert"),i(o,l,d,"=","="),i(o,l,d,":",":"),i(o,l,d,"\u2248","\\approx",!0),i(o,l,d,"\u2245","\\cong",!0),i(o,l,d,"\u2265","\\ge"),i(o,l,d,"\u2265","\\geq",!0),i(o,l,d,"\u2190","\\gets"),i(o,l,d,">","\\gt",!0),i(o,l,d,"\u2208","\\in",!0),i(o,l,d,"\uE020","\\@not"),i(o,l,d,"\u2282","\\subset",!0),i(o,l,d,"\u2283","\\supset",!0),i(o,l,d,"\u2286","\\subseteq",!0),i(o,l,d,"\u2287","\\supseteq",!0),i(o,u,d,"\u2288","\\nsubseteq",!0),i(o,u,d,"\u2289","\\nsupseteq",!0),i(o,l,d,"\u22A8","\\models"),i(o,l,d,"\u2190","\\leftarrow",!0),i(o,l,d,"\u2264","\\le"),i(o,l,d,"\u2264","\\leq",!0),i(o,l,d,"<","\\lt",!0),i(o,l,d,"\u2192","\\rightarrow",!0),i(o,l,d,"\u2192","\\to"),i(o,u,d,"\u2271","\\ngeq",!0),i(o,u,d,"\u2270","\\nleq",!0),i(o,l,Ae,"\xA0","\\ "),i(o,l,Ae,"\xA0","\\space"),i(o,l,Ae,"\xA0","\\nobreakspace"),i(w,l,Ae,"\xA0","\\ "),i(w,l,Ae,"\xA0"," "),i(w,l,Ae,"\xA0","\\space"),i(w,l,Ae,"\xA0","\\nobreakspace"),i(o,l,Ae,null,"\\nobreak"),i(o,l,Ae,null,"\\allowbreak"),i(o,l,b0,",",","),i(o,l,b0,";",";"),i(o,u,B,"\u22BC","\\barwedge",!0),i(o,u,B,"\u22BB","\\veebar",!0),i(o,l,B,"\u2299","\\odot",!0),i(o,l,B,"\u2295","\\oplus",!0),i(o,l,B,"\u2297","\\otimes",!0),i(o,l,f,"\u2202","\\partial",!0),i(o,l,B,"\u2298","\\oslash",!0),i(o,u,B,"\u229A","\\circledcirc",!0),i(o,u,B,"\u22A1","\\boxdot",!0),i(o,l,B,"\u25B3","\\bigtriangleup"),i(o,l,B,"\u25BD","\\bigtriangledown"),i(o,l,B,"\u2020","\\dagger"),i(o,l,B,"\u22C4","\\diamond"),i(o,l,B,"\u22C6","\\star"),i(o,l,B,"\u25C3","\\triangleleft"),i(o,l,B,"\u25B9","\\triangleright"),i(o,l,se,"{","\\{"),i(w,l,f,"{","\\{"),i(w,l,f,"{","\\textbraceleft"),i(o,l,re,"}","\\}"),i(w,l,f,"}","\\}"),i(w,l,f,"}","\\textbraceright"),i(o,l,se,"{","\\lbrace"),i(o,l,re,"}","\\rbrace"),i(o,l,se,"[","\\lbrack",!0),i(w,l,f,"[","\\lbrack",!0),i(o,l,re,"]","\\rbrack",!0),i(w,l,f,"]","\\rbrack",!0),i(o,l,se,"(","\\lparen",!0),i(o,l,re,")","\\rparen",!0),i(w,l,f,"<","\\textless",!0),i(w,l,f,">","\\textgreater",!0),i(o,l,se,"\u230A","\\lfloor",!0),i(o,l,re,"\u230B","\\rfloor",!0),i(o,l,se,"\u2308","\\lceil",!0),i(o,l,re,"\u2309","\\rceil",!0),i(o,l,f,"\\","\\backslash"),i(o,l,f,"\u2223","|"),i(o,l,f,"\u2223","\\vert"),i(w,l,f,"|","\\textbar",!0),i(o,l,f,"\u2225","\\|"),i(o,l,f,"\u2225","\\Vert"),i(w,l,f,"\u2225","\\textbardbl"),i(w,l,f,"~","\\textasciitilde"),i(w,l,f,"\\","\\textbackslash"),i(w,l,f,"^","\\textasciicircum"),i(o,l,d,"\u2191","\\uparrow",!0),i(o,l,d,"\u21D1","\\Uparrow",!0),i(o,l,d,"\u2193","\\downarrow",!0),i(o,l,d,"\u21D3","\\Downarrow",!0),i(o,l,d,"\u2195","\\updownarrow",!0),i(o,l,d,"\u21D5","\\Updownarrow",!0),i(o,l,J,"\u2210","\\coprod"),i(o,l,J,"\u22C1","\\bigvee"),i(o,l,J,"\u22C0","\\bigwedge"),i(o,l,J,"\u2A04","\\biguplus"),i(o,l,J,"\u22C2","\\bigcap"),i(o,l,J,"\u22C3","\\bigcup"),i(o,l,J,"\u222B","\\int"),i(o,l,J,"\u222B","\\intop"),i(o,l,J,"\u222C","\\iint"),i(o,l,J,"\u222D","\\iiint"),i(o,l,J,"\u220F","\\prod"),i(o,l,J,"\u2211","\\sum"),i(o,l,J,"\u2A02","\\bigotimes"),i(o,l,J,"\u2A01","\\bigoplus"),i(o,l,J,"\u2A00","\\bigodot"),i(o,l,J,"\u222E","\\oint"),i(o,l,J,"\u222F","\\oiint"),i(o,l,J,"\u2230","\\oiiint"),i(o,l,J,"\u2A06","\\bigsqcup"),i(o,l,J,"\u222B","\\smallint"),i(w,l,Qe,"\u2026","\\textellipsis"),i(o,l,Qe,"\u2026","\\mathellipsis"),i(w,l,Qe,"\u2026","\\ldots",!0),i(o,l,Qe,"\u2026","\\ldots",!0),i(o,l,Qe,"\u22EF","\\@cdots",!0),i(o,l,Qe,"\u22F1","\\ddots",!0),i(o,l,f,"\u22EE","\\varvdots"),i(w,l,f,"\u22EE","\\varvdots"),i(o,l,U,"\u02CA","\\acute"),i(o,l,U,"\u02CB","\\grave"),i(o,l,U,"\xA8","\\ddot"),i(o,l,U,"~","\\tilde"),i(o,l,U,"\u02C9","\\bar"),i(o,l,U,"\u02D8","\\breve"),i(o,l,U,"\u02C7","\\check"),i(o,l,U,"^","\\hat"),i(o,l,U,"\u20D7","\\vec"),i(o,l,U,"\u02D9","\\dot"),i(o,l,U,"\u02DA","\\mathring"),i(o,l,R,"\uE131","\\@imath"),i(o,l,R,"\uE237","\\@jmath"),i(o,l,f,"\u0131","\u0131"),i(o,l,f,"\u0237","\u0237"),i(w,l,f,"\u0131","\\i",!0),i(w,l,f,"\u0237","\\j",!0),i(w,l,f,"\xDF","\\ss",!0),i(w,l,f,"\xE6","\\ae",!0),i(w,l,f,"\u0153","\\oe",!0),i(w,l,f,"\xF8","\\o",!0),i(w,l,f,"\xC6","\\AE",!0),i(w,l,f,"\u0152","\\OE",!0),i(w,l,f,"\xD8","\\O",!0),i(w,l,U,"\u02CA","\\'"),i(w,l,U,"\u02CB","\\`"),i(w,l,U,"\u02C6","\\^"),i(w,l,U,"\u02DC","\\~"),i(w,l,U,"\u02C9","\\="),i(w,l,U,"\u02D8","\\u"),i(w,l,U,"\u02D9","\\."),i(w,l,U,"\xB8","\\c"),i(w,l,U,"\u02DA","\\r"),i(w,l,U,"\u02C7","\\v"),i(w,l,U,"\xA8",'\\"'),i(w,l,U,"\u02DD","\\H"),i(w,l,U,"\u25EF","\\textcircled");var jt={"--":!0,"---":!0,"``":!0,"''":!0};i(w,l,f,"\u2013","--",!0),i(w,l,f,"\u2013","\\textendash"),i(w,l,f,"\u2014","---",!0),i(w,l,f,"\u2014","\\textemdash"),i(w,l,f,"\u2018","`",!0),i(w,l,f,"\u2018","\\textquoteleft"),i(w,l,f,"\u2019","'",!0),i(w,l,f,"\u2019","\\textquoteright"),i(w,l,f,"\u201C","``",!0),i(w,l,f,"\u201C","\\textquotedblleft"),i(w,l,f,"\u201D","''",!0),i(w,l,f,"\u201D","\\textquotedblright"),i(o,l,f,"\xB0","\\degree",!0),i(w,l,f,"\xB0","\\degree"),i(w,l,f,"\xB0","\\textdegree",!0),i(o,l,f,"\xA3","\\pounds"),i(o,l,f,"\xA3","\\mathsterling",!0),i(w,l,f,"\xA3","\\pounds"),i(w,l,f,"\xA3","\\textsterling",!0),i(o,u,f,"\u2720","\\maltese"),i(w,u,f,"\u2720","\\maltese");for(var $t='0123456789/@."',Z0=0;Z0<$t.length;Z0++){var Zt=$t.charAt(Z0);i(o,l,f,Zt,Zt)}for(var Kt='0123456789!@*()-=+";:?/.,',K0=0;K00)return fe(n,p,a,t,s.concat(g));if(c){var v,y;if(c==="boldsymbol"){var x=oa(n,a,t,s,r);v=x.fontName,y=[x.fontClass]}else h?(v=tr[c].fontName,y=[c]):(v=M0(c,t.fontWeight,t.fontShape),y=[c,t.fontWeight,t.fontShape]);if(S0(n,v,a).metrics)return fe(n,v,a,t,s.concat(y));if(jt.hasOwnProperty(n)&&v.slice(0,10)==="Typewriter"){for(var S=[],A=0;A{if(Oe(e.classes)!==Oe(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},ha=e=>{for(var t=0;tt&&(t=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},ie=function(e,t,r,a){var n=new o0(e,t,r,a);return et(n),n},Qt=(e,t,r,a)=>new o0(e,t,r,a),ma=function(e,t,r){var a=ie([e],[],t);return a.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=z(a.height),a.maxFontSize=1,a},ca=function(e,t,r,a){var n=new j0(e,t,r,a);return et(n),n},er=function(e){var t=new n0(e);return et(t),t},pa=function(e,t){return e instanceof n0?ie([],[e],t):e},ua=function(e){if(e.positionType==="individualShift"){for(var t=e.children,r=[t[0]],a=-t[0].shift-t[0].elem.depth,n=a,s=1;s{var r=ie(["mspace"],[],t),a=j(e,t);return r.style.marginRight=z(a),r},M0=function(e,t,r){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}var n=t==="textbf"&&r==="textit"?"BoldItalic":t==="textbf"?"Bold":t==="textit"?"Italic":"Regular";return a+"-"+n},tr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},rr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},b={fontMap:tr,makeSymbol:fe,mathsym:na,makeSpan:ie,makeSvgSpan:Qt,makeLineSpan:ma,makeAnchor:ca,makeFragment:er,wrapFragment:pa,makeVList:da,makeOrd:sa,makeGlue:ga,staticSvg:function(e,t){var[r,a,n]=rr[e],s=Qt(["overlay"],[new ze([new Ee(r)],{width:z(a),height:z(n),style:"width:"+z(a),viewBox:"0 0 "+1e3*a+" "+1e3*n,preserveAspectRatio:"xMinYMin"})],t);return s.height=n,s.style.height=z(n),s.style.width=z(a),s},svgData:rr,tryCombineChars:ha},$={number:3,unit:"mu"},Fe={number:4,unit:"mu"},Te={number:5,unit:"mu"},fa={mord:{mop:$,mbin:Fe,mrel:Te,minner:$},mop:{mord:$,mop:$,mrel:Te,minner:$},mbin:{mord:Fe,mop:Fe,mopen:Fe,minner:Fe},mrel:{mord:Te,mop:Te,mopen:Te,minner:Te},mopen:{},mclose:{mop:$,mbin:Fe,mrel:Te,minner:$},mpunct:{mord:$,mop:$,mrel:Te,mopen:$,mclose:$,mpunct:$,minner:$},minner:{mord:$,mop:$,mbin:Fe,mrel:Te,mopen:$,mpunct:$,minner:$}},va={mord:{mop:$},mop:{mord:$,mop:$},mbin:{},mrel:{},mopen:{},mclose:{mop:$},mpunct:{},minner:{mop:$}},ar={},z0={},A0={};function T(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:s,mathmlBuilder:h}=e,c={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},p=0;p{var N=A.classes[0],q=S.classes[0];N==="mbin"&&ya.includes(q)?A.classes[0]="mord":q==="mbin"&&ba.includes(N)&&(S.classes[0]="mord")},{node:v},y,x),ir(n,(S,A)=>{var N=tt(A),q=tt(S),C=N&&q?S.hasClass("mtight")?va[N][q]:fa[N][q]:null;if(C)return b.makeGlue(C,p)},{node:v},y,x),n},ir=function e(t,r,a,n,s){n&&t.push(n);for(var h=0;hx=>{t.splice(y+1,0,x),h++})(h)}n&&t.pop()},nr=function(e){return e instanceof n0||e instanceof j0||e instanceof o0&&e.hasClass("enclosing")?e:null},ka=function e(t,r){var a=nr(t);if(a){var n=a.children;if(n.length){if(r==="right")return e(n[n.length-1],"right");if(r==="left")return e(n[0],"left")}}return t},tt=function(e,t){return e?(t&&(e=ka(e,t)),wa[e.classes[0]]||null):null},s0=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Be(t.concat(r))},V=function(e,t,r){if(!e)return Be();if(z0[e.type]){var a=z0[e.type](e,t);if(r&&t.size!==r.size){a=Be(t.sizingClasses(r),[a],t);var n=t.sizeMultiplier/r.sizeMultiplier;a.height*=n,a.depth*=n}return a}else throw new M("Got group of unknown type: '"+e.type+"'")};function B0(e,t){var r=Be(["base"],e,t),a=Be(["strut"]);return a.style.height=z(r.height+r.depth),r.depth&&(a.style.verticalAlign=z(-r.depth)),r.children.unshift(a),r}function rt(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var a=Q(e,t,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],h=[],c=0;c0&&(s.push(B0(h,t)),h=[]),s.push(a[c]));h.length>0&&s.push(B0(h,t));var g;r?(g=B0(Q(r,t,!0)),g.classes=["tag"],s.push(g)):n&&s.push(n);var v=Be(["katex-html"],s);if(v.setAttribute("aria-hidden","true"),g){var y=g.children[0];y.style.height=z(v.height+v.depth),v.depth&&(y.style.verticalAlign=z(-v.depth))}return v}function or(e){return new n0(e)}var le=class{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Oe(this.classes));for(var r=0;r0&&(e+=' class ="'+F.escape(Oe(this.classes))+'"'),e+=">";for(var r=0;r",e}toText(){return this.children.map(e=>e.toText()).join("")}},xe=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return F.escape(this.toText())}toText(){return this.text}},k={MathNode:le,TextNode:xe,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",z(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:or},ue=function(e,t,r){return W[t][e]&&W[t][e].replace&&e.charCodeAt(0)!==55349&&!(jt.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=W[t][e].replace),new k.TextNode(e)},at=function(e){return e.length===1?e[0]:new k.MathNode("mrow",e)},it=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var r=t.font;if(!r||r==="mathnormal")return null;var a=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var n=e.text;if(["\\imath","\\jmath"].includes(n))return null;W[a][n]&&W[a][n].replace&&(n=W[a][n].replace);var s=b.fontMap[r].fontName;return X0(n,s,a)?b.fontMap[r].variant:null};function nt(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof xe&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof xe&&r.text===","}else return!1}var ne=function(e,t,r){if(e.length===1){var a=Y(e[0],t);return r&&a instanceof le&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var n=[],s,h=0;h=1&&(s.type==="mn"||nt(s))){var p=c.children[0];p instanceof le&&p.type==="mn"&&(p.children=[...s.children,...p.children],n.pop())}else if(s.type==="mi"&&s.children.length===1){var g=s.children[0];if(g instanceof xe&&g.text==="\u0338"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var v=c.children[0];v instanceof xe&&v.text.length>0&&(v.text=v.text.slice(0,1)+"\u0338"+v.text.slice(1),n.pop())}}}n.push(c),s=c}return n},De=function(e,t,r){return at(ne(e,t,r))},Y=function(e,t){if(!e)return new k.MathNode("mrow");if(A0[e.type])return A0[e.type](e,t);throw new M("Got group of unknown type: '"+e.type+"'")};function sr(e,t,r,a,n){var s=ne(e,r),h=s.length===1&&s[0]instanceof le&&["mrow","mtable"].includes(s[0].type)?s[0]:new k.MathNode("mrow",s),c=new k.MathNode("annotation",[new k.TextNode(t)]);c.setAttribute("encoding","application/x-tex");var p=new k.MathNode("semantics",[h,c]),g=new k.MathNode("math",[p]);g.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&g.setAttribute("display","block");var v=n?"katex":"katex-mathml";return b.makeSpan([v],[g])}var lr=function(e){return new Ft({style:e.displayMode?I.DISPLAY:I.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},hr=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=b.makeSpan(r,[e])}return e},Sa=function(e,t,r){var a=lr(r),n;if(r.output==="mathml")return sr(e,t,a,r.displayMode,!0);if(r.output==="html"){var s=rt(e,a);n=b.makeSpan(["katex"],[s])}else{var h=sr(e,t,a,r.displayMode,!1),c=rt(e,a);n=b.makeSpan(["katex"],[h,c])}return hr(n,r)},Ma=function(e,t,r){var a=rt(e,lr(r));return hr(b.makeSpan(["katex"],[a]),r)},za={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Aa=function(e){var t=new k.MathNode("mo",[new k.TextNode(za[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Ta={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ba=function(e){return e.type==="ordgroup"?e.body.length:1},Ne={encloseSpan:function(e,t,r,a,n){var s,h=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(s=b.makeSpan(["stretchy",t],[],n),t==="fbox"){var c=n.color&&n.getColor();c&&(s.style.borderColor=c)}}else{var p=[];/^[bx]cancel$/.test(t)&&p.push(new $0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&p.push(new $0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new ze(p,{width:"100%",height:z(h)});s=b.makeSvgSpan([],[g],n)}return s.height=h,s.style.height=z(h),s},mathMLnode:Aa,svgSpan:function(e,t){function r(){var h=4e5,c=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(c)){var p=Ba(e.base),g,v,y;if(p>5)c==="widehat"||c==="widecheck"?(g=420,h=2364,y=.42,v=c+"4"):(g=312,h=2340,y=.34,v="tilde4");else{var x=[1,1,2,2,3,3][p];c==="widehat"||c==="widecheck"?(h=[0,1062,2364,2364,2364][x],g=[0,239,300,360,420][x],y=[0,.24,.3,.3,.36,.42][x],v=c+x):(h=[0,600,1033,2339,2340][x],g=[0,260,286,306,312][x],y=[0,.26,.286,.3,.306,.34][x],v="tilde"+x)}var S=new ze([new Ee(v)],{width:"100%",height:z(y),viewBox:"0 0 "+h+" "+g,preserveAspectRatio:"none"});return{span:b.makeSvgSpan([],[S],t),minWidth:0,height:y}}else{var A=[],N=Ta[c],[q,C,L]=N,G=L/1e3,H=q.length,D,P;if(H===1){var X=N[3];D=["hide-tail"],P=[X]}else if(H===2)D=["halfarrow-left","halfarrow-right"],P=["xMinYMin","xMaxYMin"];else if(H===3)D=["brace-left","brace-center","brace-right"],P=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error(`Correct katexImagesData or update code here to support + `+H+" children.");for(var ee=0;ee0&&(a.style.minWidth=z(n)),a}};function E(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ot(e){var t=N0(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function N0(e){return e&&(e.type==="atom"||aa.hasOwnProperty(e.type))?e:null}var st=(e,t)=>{var r,a,n;e&&e.type==="supsub"?(a=E(e.base,"accent"),r=a.base,e.base=r,n=ta(V(e,t)),e.base=a):(a=E(e,"accent"),r=a.base);var s=V(r,t.havingCrampedStyle()),h=a.isShifty&&F.isCharacterBox(r),c=0;h&&(c=Ut(V(F.getBaseElem(r),t.havingCrampedStyle())).skew);var p=a.label==="\\c",g=p?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),v;if(a.isStretchy)v=Ne.svgSpan(a,t),v=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:v,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+z(2*c)+")",marginLeft:z(2*c)}:void 0}]},t);else{var y,x;a.label==="\\vec"?(y=b.staticSvg("vec",t),x=b.svgData.vec[1]):(y=b.makeOrd({mode:a.mode,text:a.label},t,"textord"),y=Ut(y),y.italic=0,x=y.width,p&&(g+=y.depth)),v=b.makeSpan(["accent-body"],[y]);var S=a.label==="\\textcircled";S&&(v.classes.push("accent-full"),g=s.height);var A=c;S||(A-=x/2),v.style.left=z(A),a.label==="\\textcircled"&&(v.style.top=".2em"),v=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:v}]},t)}var N=b.makeSpan(["mord","accent"],[v],t);return n?(n.children[0]=N,n.height=Math.max(N.height,n.height),n.classes[0]="mord",n):N},mr=(e,t)=>{var r=e.isStretchy?Ne.mathMLnode(e.label):new k.MathNode("mo",[ue(e.label,e.mode)]),a=new k.MathNode("mover",[Y(e.base,t),r]);return a.setAttribute("accent","true"),a},Na=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));T({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=T0(t[0]),a=!Na.test(e.funcName),n=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:st,mathmlBuilder:mr}),T({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:st,mathmlBuilder:mr}),T({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=V(e.base,t),a=Ne.svgSpan(e,t),n=e.label==="\\utilde"?.12:0,s=b.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return b.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=Ne.mathMLnode(e.label),a=new k.MathNode("munder",[Y(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var q0=e=>{var t=new k.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};T({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,a=t.havingStyle(r.sup()),n=b.wrapFragment(V(e.body,a,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var h;e.below&&(a=t.havingStyle(r.sub()),h=b.wrapFragment(V(e.below,a,t),t),h.classes.push(s+"-arrow-pad"));var c=Ne.svgSpan(e,t),p=-t.fontMetrics().axisHeight+.5*c.height,g=-t.fontMetrics().axisHeight-.5*c.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(g-=n.depth);var v;if(h){var y=-t.fontMetrics().axisHeight+h.height+.5*c.height+.111;v=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:g},{type:"elem",elem:c,shift:p},{type:"elem",elem:h,shift:y}]},t)}else v=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:g},{type:"elem",elem:c,shift:p}]},t);return v.children[0].children[0].children[1].classes.push("svg-align"),b.makeSpan(["mrel","x-arrow"],[v],t)},mathmlBuilder(e,t){var r=Ne.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var n=q0(Y(e.body,t));if(e.below){var s=q0(Y(e.below,t));a=new k.MathNode("munderover",[r,s,n])}else a=new k.MathNode("mover",[r,n])}else if(e.below){var h=q0(Y(e.below,t));a=new k.MathNode("munder",[r,h])}else a=q0(),a=new k.MathNode("mover",[r,a]);return a}});var qa=b.makeSpan;function cr(e,t){var r=Q(e.body,t,!0);return qa([e.mclass],r,t)}function pr(e,t){var r,a=ne(e.body,t);return e.mclass==="minner"?r=new k.MathNode("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(r=a[0],r.type="mi"):r=new k.MathNode("mi",a):(e.isCharacterBox?(r=a[0],r.type="mo"):r=new k.MathNode("mo",a),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}T({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:_(n),isCharacterBox:F.isCharacterBox(n)}},htmlBuilder:cr,mathmlBuilder:pr});var C0=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};T({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:C0(t[0]),body:_(t[1]),isCharacterBox:F.isCharacterBox(t[1])}}}),T({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e,n=t[1],s=t[0],h=a==="\\stackrel"?"mrel":C0(n),c={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:_(n)},p={type:"supsub",mode:s.mode,base:c,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:h,body:[p],isCharacterBox:F.isCharacterBox(p)}},htmlBuilder:cr,mathmlBuilder:pr}),T({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:C0(t[0]),body:_(t[0])}},htmlBuilder(e,t){var r=Q(e.body,t,!0),a=b.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=ne(e.body,t),a=new k.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var Ca={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ur=()=>({type:"styling",body:[],mode:"math",style:"display"}),dr=e=>e.type==="textord"&&e.text==="@",Ia=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Ra(e,t,r){var a=Ca[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n=r.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},h={type:"ordgroup",mode:"math",body:[n,r.callFunction("\\Big",[s],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[h],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}function Oa(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],n=[a],s=0;s-1))if("<>AV".indexOf(g)>-1)for(var y=0;y<2;y++){for(var x=!0,S=p+1;SAV=|." after @',h[p]);var A={type:"styling",body:[Ra(g,v,e)],mode:"math",style:"display"};a.push(A),c=ur()}s%2==0?a.push(c):a.shift(),a=[],n.push(a)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:Array(n.length+1).fill([])}}T({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=b.wrapFragment(V(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=z(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new k.MathNode("mrow",[Y(e.label,t)]);return r=new k.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new k.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),T({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=b.wrapFragment(V(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new k.MathNode("mrow",[Y(e.fragment,t)])}}),T({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=E(t[0],"ordgroup").body,n="",s=0;s=1114111)throw new M("\\@char with invalid code point "+n);return c<=65535?p=String.fromCharCode(c):(c-=65536,p=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:r.mode,text:p}}});var gr=(e,t)=>{var r=Q(e.body,t.withColor(e.color),!1);return b.makeFragment(r)},fr=(e,t)=>{var r=ne(e.body,t.withColor(e.color)),a=new k.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};T({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=E(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:_(n)}},htmlBuilder:gr,mathmlBuilder:fr}),T({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=E(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var s=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:s}},htmlBuilder:gr,mathmlBuilder:fr}),T({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&E(n,"size").value}},htmlBuilder(e,t){var r=b.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=z(j(e.size,t)))),r},mathmlBuilder(e,t){var r=new k.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",z(j(e.size,t)))),r}});var lt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},vr=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new M("Expected a control sequence",e);return t},Ea=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},br=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);n??(n=(r.noexpand=!0,{tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)})),e.gullet.macros.set(t,n,a)};T({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(lt[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=lt[a.text]),E(t.parseFunction(),"internal");throw new M("Invalid token after macro prefix",a)}}),T({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new M("Expected a control sequence",a);for(var s=0,h,c=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){h=t.gullet.future(),c[s].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new M('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new M('Argument number "'+a.text+'" out of order');s++,c.push([])}else{if(a.text==="EOF")throw new M("Expected a macro definition");c[s].push(a.text)}var{tokens:p}=t.gullet.consumeArg();return h&&p.unshift(h),(r==="\\edef"||r==="\\xdef")&&(p=t.gullet.expandTokens(p),p.reverse()),t.gullet.macros.set(n,{tokens:p,numArgs:s,delimiters:c},r===lt[r]),{type:"internal",mode:t.mode}}}),T({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=vr(t.gullet.popToken());return t.gullet.consumeSpaces(),br(t,a,Ea(t),r==="\\\\globallet"),{type:"internal",mode:t.mode}}}),T({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=vr(t.gullet.popToken()),n=t.gullet.popToken(),s=t.gullet.popToken();return br(t,a,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var l0=function(e,t,r){var a=X0(W.math[e]&&W.math[e].replace||e,t,r);if(!a)throw Error("Unsupported symbol "+e+" and font size "+t+".");return a},ht=function(e,t,r,a){var n=r.havingBaseStyle(t),s=b.makeSpan(a.concat(n.sizingClasses(r)),[e],r),h=n.sizeMultiplier/r.sizeMultiplier;return s.height*=h,s.depth*=h,s.maxFontSize=n.sizeMultiplier,s},yr=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=z(n),e.height-=n,e.depth+=n},La=function(e,t,r,a,n,s){var h=ht(b.makeSymbol(e,"Main-Regular",n,a),t,a,s);return r&&yr(h,a,t),h},Da=function(e,t,r,a){return b.makeSymbol(e,"Size"+t+"-Regular",r,a)},xr=function(e,t,r,a,n,s){var h=Da(e,t,n,a),c=ht(b.makeSpan(["delimsizing","size"+t],[h],a),I.TEXT,a,s);return r&&yr(c,a,I.TEXT),c},mt=function(e,t,r){var a=t==="Size1-Regular"?"delim-size1":"delim-size4";return{type:"elem",elem:b.makeSpan(["delimsizinginner",a],[b.makeSpan([],[b.makeSymbol(e,t,r)])])}},ct=function(e,t,r){var a=ye["Size4-Regular"][e.charCodeAt(0)]?ye["Size4-Regular"][e.charCodeAt(0)][4]:ye["Size1-Regular"][e.charCodeAt(0)][4],n=new ze([new Ee("inner",j1(e,Math.round(1e3*t)))],{width:z(a),height:z(t),style:"width:"+z(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),s=b.makeSvgSpan([],[n],r);return s.height=t,s.style.height=z(t),s.style.width=z(a),{type:"elem",elem:s}},pt=.008,I0={type:"kern",size:-1*pt},Ha=["|","\\lvert","\\rvert","\\vert"],Va=["\\|","\\lVert","\\rVert","\\Vert"],wr=function(e,t,r,a,n,s){var h,c,p,g,v="",y=0;h=p=g=e,c=null;var x="Size1-Regular";e==="\\uparrow"?p=g="\u23D0":e==="\\Uparrow"?p=g="\u2016":e==="\\downarrow"?h=p="\u23D0":e==="\\Downarrow"?h=p="\u2016":e==="\\updownarrow"?(h="\\uparrow",p="\u23D0",g="\\downarrow"):e==="\\Updownarrow"?(h="\\Uparrow",p="\u2016",g="\\Downarrow"):Ha.includes(e)?(p="\u2223",v="vert",y=333):Va.includes(e)?(p="\u2225",v="doublevert",y=556):e==="["||e==="\\lbrack"?(h="\u23A1",p="\u23A2",g="\u23A3",x="Size4-Regular",v="lbrack",y=667):e==="]"||e==="\\rbrack"?(h="\u23A4",p="\u23A5",g="\u23A6",x="Size4-Regular",v="rbrack",y=667):e==="\\lfloor"||e==="\u230A"?(p=h="\u23A2",g="\u23A3",x="Size4-Regular",v="lfloor",y=667):e==="\\lceil"||e==="\u2308"?(h="\u23A1",p=g="\u23A2",x="Size4-Regular",v="lceil",y=667):e==="\\rfloor"||e==="\u230B"?(p=h="\u23A5",g="\u23A6",x="Size4-Regular",v="rfloor",y=667):e==="\\rceil"||e==="\u2309"?(h="\u23A4",p=g="\u23A5",x="Size4-Regular",v="rceil",y=667):e==="("||e==="\\lparen"?(h="\u239B",p="\u239C",g="\u239D",x="Size4-Regular",v="lparen",y=875):e===")"||e==="\\rparen"?(h="\u239E",p="\u239F",g="\u23A0",x="Size4-Regular",v="rparen",y=875):e==="\\{"||e==="\\lbrace"?(h="\u23A7",c="\u23A8",g="\u23A9",p="\u23AA",x="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(h="\u23AB",c="\u23AC",g="\u23AD",p="\u23AA",x="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(h="\u23A7",g="\u23A9",p="\u23AA",x="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(h="\u23AB",g="\u23AD",p="\u23AA",x="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(h="\u23A7",g="\u23AD",p="\u23AA",x="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(h="\u23AB",g="\u23A9",p="\u23AA",x="Size4-Regular");var S=l0(h,x,n),A=S.height+S.depth,N=l0(p,x,n),q=N.height+N.depth,C=l0(g,x,n),L=C.height+C.depth,G=0,H=1;if(c!==null){var D=l0(c,x,n);G=D.height+D.depth,H=2}var P=A+L+G,X=P+Math.max(0,Math.ceil((t-P)/(H*q)))*H*q,ee=a.fontMetrics().axisHeight;r&&(ee*=a.sizeMultiplier);var oe=X/2-ee,K=[];if(v.length>0){var t0=X-A-L,ve=Math.round(X*1e3),de=$1(v,Math.round(t0*1e3)),Ce=new Ee(v,de),Xe=(y/1e3).toFixed(3)+"em",We=(ve/1e3).toFixed(3)+"em",D0=new ze([Ce],{width:Xe,height:We,viewBox:"0 0 "+y+" "+ve}),Ie=b.makeSvgSpan([],[D0],a);Ie.height=ve/1e3,Ie.style.width=Xe,Ie.style.height=We,K.push({type:"elem",elem:Ie})}else{if(K.push(mt(g,x,n)),K.push(I0),c===null){var Ue=X-A-L+2*pt;K.push(ct(p,Ue,a))}else{var he=(X-A-L-G)/2+2*pt;K.push(ct(p,he,a)),K.push(I0),K.push(mt(c,x,n)),K.push(I0),K.push(ct(p,he,a))}K.push(I0),K.push(mt(h,x,n))}var r0=a.havingBaseStyle(I.TEXT),H0=b.makeVList({positionType:"bottom",positionData:oe,children:K},r0);return ht(b.makeSpan(["delimsizing","mult"],[H0],r0),I.TEXT,a,s)},ut=80,dt=.08,gt=function(e,t,r,a,n){var s=new ze([new Ee(e,U1(e,a,r))],{width:"400em",height:z(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return b.makeSvgSpan(["hide-tail"],[s],n)},Pa=function(e,t){var r=t.havingBaseSizing(),a=zr("\\surd",e*r.sizeMultiplier,Mr,r),n=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),h,c=0,p=0,g=0,v;return a.type==="small"?(g=1e3+1e3*s+ut,e<1?n=1:e<1.4&&(n=.7),c=(1+s+dt)/n,p=(1+s)/n,h=gt("sqrtMain",c,g,s,t),h.style.minWidth="0.853em",v=.833/n):a.type==="large"?(g=(1e3+ut)*h0[a.size],p=(h0[a.size]+s)/n,c=(h0[a.size]+s+dt)/n,h=gt("sqrtSize"+a.size,c,g,s,t),h.style.minWidth="1.02em",v=1/n):(c=e+s+dt,p=e+s,g=Math.floor(1e3*e+s)+ut,h=gt("sqrtTall",c,g,s,t),h.style.minWidth="0.742em",v=1.056),h.height=p,h.style.height=z(c),{span:h,advanceWidth:v,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*n}},kr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Fa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Sr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],h0=[0,1.2,1.8,2.4,3],Ga=function(e,t,r,a,n){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),kr.includes(e)||Sr.includes(e))return xr(e,t,!1,r,a,n);if(Fa.includes(e))return wr(e,h0[t],!1,r,a,n);throw new M("Illegal delimiter: '"+e+"'")},Ya=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Xa=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"stack"}],Mr=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Wa=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},zr=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size);nt)return r[n]}return r[r.length-1]},Ar=function(e,t,r,a,n,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var h=Sr.includes(e)?Ya:kr.includes(e)?Mr:Xa,c=zr(e,t,h,a);return c.type==="small"?La(e,c.style,r,a,n,s):c.type==="large"?xr(e,c.size,r,a,n,s):wr(e,t,r,a,n,s)},qe={sqrtImage:Pa,sizedDelim:Ga,sizeToMaxHeight:h0,customSizedDelim:Ar,leftRightDelim:function(e,t,r,a,n,s){var h=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,p=5/a.fontMetrics().ptPerEm,g=Math.max(t-h,r+h);return Ar(e,Math.max(g/500*c,2*g-p),!0,a,n,s)}},Tr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Ua="(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,\u230A,\u230B,\\lceil,\\rceil,\u2308,\u2309,<,>,\\langle,\u27E8,\\rangle,\u27E9,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,\u27EE,\u27EF,\\lmoustache,\\rmoustache,\u23B0,\u23B1,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.".split(",");function R0(e,t){var r=N0(e);if(r&&Ua.includes(r.text))return r;throw r?new M("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new M("Invalid delimiter type '"+e.type+"'",e)}T({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=R0(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Tr[e.funcName].size,mclass:Tr[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?b.makeSpan([e.mclass]):qe.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ue(e.delim,e.mode));var r=new k.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=z(qe.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function Br(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}T({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:R0(t[0],e).text,color:r}}}),T({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=R0(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=E(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Br(e);for(var r=Q(e.body,t,!0,["mopen","mclose"]),a=0,n=0,s=!1,h=0;h{Br(e);var r=ne(e.body,t);if(e.left!=="."){var a=new k.MathNode("mo",[ue(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(e.right!=="."){var n=new k.MathNode("mo",[ue(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return at(r)}}),T({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=R0(t[0],e);if(!e.parser.leftrightDepth)throw new M("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=s0(t,[]);else{r=qe.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?ue("|","text"):ue(e.delim,e.mode),a=new k.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var ft=(e,t)=>{var r=b.wrapFragment(V(e.body,t),t),a=e.label.slice(1),n=t.sizeMultiplier,s,h=0,c=F.isCharacterBox(e.body);if(a==="sout")s=b.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/n,h=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var p=j({number:.6,unit:"pt"},t),g=j({number:.35,unit:"ex"},t),v=t.havingBaseSizing();n/=v.sizeMultiplier;var y=r.height+r.depth+p+g;r.style.paddingLeft=z(y/2+p);var x=Math.floor(1e3*y*n),S=new ze([new Ee("phase",X1(x))],{width:"400em",height:z(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=b.makeSvgSpan(["hide-tail"],[S],t),s.style.height=z(y),h=r.depth+p+g}else{/cancel/.test(a)?c||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var A=0,N=0,q=0;/box/.test(a)?(q=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),A=t.fontMetrics().fboxsep+(a==="colorbox"?0:q),N=A):a==="angl"?(q=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),A=4*q,N=Math.max(0,.25-r.depth)):(A=c?.2:0,N=A),s=Ne.encloseSpan(r,a,A,N,t),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=z(q)):a==="angl"&&q!==.049&&(s.style.borderTopWidth=z(q),s.style.borderRightWidth=z(q)),h=r.depth+N,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var C;if(e.backgroundColor)C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:h},{type:"elem",elem:r,shift:0}]},t);else{var L=/cancel|phase/.test(a)?["svg-align"]:[];C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:h,wrapperClasses:L}]},t)}return/cancel/.test(a)&&(C.height=r.height,C.depth=r.depth),/cancel/.test(a)&&!c?b.makeSpan(["mord","cancel-lap"],[C],t):b.makeSpan(["mord"],[C],t)},vt=(e,t)=>{var r=0,a=new k.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Y(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};T({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,s=E(t[0],"color-token").color,h=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:h}},htmlBuilder:ft,mathmlBuilder:vt}),T({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,s=E(t[0],"color-token").color,h=E(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:h,borderColor:s,body:c}},htmlBuilder:ft,mathmlBuilder:vt}),T({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),T({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:ft,mathmlBuilder:vt}),T({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Nr={};function we(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:s,mathmlBuilder:h}=e,c={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},p=0;p{if(!e.parser.settings.displayMode)throw new M("{"+e.envName+"} can be used only in display mode.")};function bt(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function He(e,t,r){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:h,colSeparationType:c,autoTag:p,singleRow:g,emptySingleRow:v,maxNumCols:y,leqno:x}=t;if(e.gullet.beginGroup(),g||e.gullet.macros.set("\\cr","\\\\\\relax"),!h){var S=e.gullet.expandMacroAsText("\\arraystretch");if(S==null)h=1;else if(h=parseFloat(S),!h||h<0)throw new M("Invalid \\arraystretch: "+S)}e.gullet.beginGroup();var A=[],N=[A],q=[],C=[],L=p==null?void 0:[];function G(){p&&e.gullet.macros.set("\\@eqnsw","1",!0)}function H(){L&&(e.gullet.macros.get("\\df@tag")?(L.push(e.subparse([new ge("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):L.push(!!p&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(G(),C.push(Cr(e));;){var D=e.parseExpression(!1,g?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),D={type:"ordgroup",mode:e.mode,body:D},r&&(D={type:"styling",mode:e.mode,style:r,body:[D]}),A.push(D);var P=e.fetch().text;if(P==="&"){if(y&&A.length===y){if(g||c)throw new M("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(P==="\\end"){H(),A.length===1&&D.type==="styling"&&D.body[0].body.length===0&&(N.length>1||!v)&&N.pop(),C.length0&&(C+=.25),p.push({pos:C,isDashed:u0[d0]})}for(L(s[0]),r=0;r0&&(oe+=q,Du0))for(r=0;r=h)){var $e=void 0;(a>0||e.hskipBeforeAndAfter)&&($e=F.deflt(he.pregap,y),$e!==0&&(de=b.makeSpan(["arraycolsep"],[]),de.style.width=z($e),ve.push(de)));var Ze=[];for(r=0;r0){for(var w1=b.makeLineSpan("hline",t,g),k1=b.makeLineSpan("hdashline",t,g),V0=[{type:"elem",elem:c,shift:0}];p.length>0;){var It=p.pop(),Rt=It.pos-K;It.isDashed?V0.push({type:"elem",elem:k1,shift:Rt}):V0.push({type:"elem",elem:w1,shift:Rt})}c=b.makeVList({positionType:"individualShift",children:V0},t)}if(Xe.length===0)return b.makeSpan(["mord"],[c],t);var P0=b.makeVList({positionType:"individualShift",children:Xe},t);return P0=b.makeSpan(["tag"],[P0],t),b.makeFragment([c,P0])},ja={c:"center ",l:"left ",r:"right "},Se=function(e,t){for(var r=[],a=new k.MathNode("mtd",[],["mtr-glue"]),n=new k.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var S=e.cols,A="",N=!1,q=0,C=S.length;S[0].type==="separator"&&(y+="top ",q=1),S[S.length-1].type==="separator"&&(y+="bottom ",--C);for(var L=q;L0?"left ":"",y+=X[X.length-1].length>0?"right ":"";for(var ee=1;ee-1?"alignat":"align",n=e.envName==="split",s=He(e.parser,{cols:r,addJot:!0,autoTag:n?void 0:bt(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:n?2:void 0,leqno:e.parser.settings.leqno},"display"),h,c=0,p={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var g="",v=0;v0&&x&&(N=1),r[S]={type:"align",align:A,pregap:N,postgap:0}}return s.colSeparationType=x?"align":"alignat",s};we({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(N0(t[0])?[t[0]]:E(t[0],"ordgroup").body).map(function(n){var s=ot(n).text;if("lcr".indexOf(s)!==-1)return{type:"align",align:s};if(s==="|")return{type:"separator",separator:"|"};if(s===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+s,n)}),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return He(e.parser,a,yt(e.envName))},htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,"lcr".indexOf(r)===-1)throw new M("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var s=He(e.parser,a,yt(e.envName)),h=Math.max(0,...s.body.map(c=>c.length));return s.cols=Array(h).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=He(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(N0(t[0])?[t[0]]:E(t[0],"ordgroup").body).map(function(n){var s=ot(n).text;if("lc".indexOf(s)!==-1)return{type:"align",align:s};throw new M("Unknown column alignment: "+s,n)});if(r.length>1)throw new M("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=He(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new M("{subarray} can contain only one column");return a},htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=He(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},yt(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ir,htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&O0(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:bt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return He(e.parser,t,"display")},htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ir,htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){O0(e);var t={autoTag:bt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return He(e.parser,t,"display")},htmlBuilder:ke,mathmlBuilder:Se}),we({type:"array",names:["CD"],props:{numArgs:0},handler(e){return O0(e),Oa(e.parser)},htmlBuilder:ke,mathmlBuilder:Se}),m("\\nonumber","\\gdef\\@eqnsw{0}"),m("\\notag","\\nonumber"),T({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new M(e.funcName+" valid only within array environment")}});var Rr=Nr;T({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];if(n.type!=="ordgroup")throw new M("Invalid environment name",n);for(var s="",h=0;h{var r=e.font,a=t.withFont(r);return V(e.body,a)},Er=(e,t)=>{var r=e.font,a=t.withFont(r);return Y(e.body,a)},Lr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};T({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=T0(t[0]),s=a;return s in Lr&&(s=Lr[s]),{type:"font",mode:r.mode,font:s.slice(1),body:n}},htmlBuilder:Or,mathmlBuilder:Er}),T({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],n=F.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:C0(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}}),T({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:s}=r,h=r.parseExpression(!0,n);return{type:"font",mode:s,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:h}}},htmlBuilder:Or,mathmlBuilder:Er});var Dr=(e,t)=>{var r=t;return e==="display"?r=r.id>=I.SCRIPT.id?r.text():I.DISPLAY:e==="text"&&r.size===I.DISPLAY.size?r=I.TEXT:e==="script"?r=I.SCRIPT:e==="scriptscript"&&(r=I.SCRIPTSCRIPT),r},xt=(e,t)=>{var r=Dr(e.size,t.style),a=r.fracNum(),n=r.fracDen(),s=t.havingStyle(a),h=V(e.numer,s,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,p=3.5/t.fontMetrics().ptPerEm;h.height=h.height0?3*x:7*x,N=t.fontMetrics().denom1):(y>0?(S=t.fontMetrics().num2,A=x):(S=t.fontMetrics().num3,A=3*x),N=t.fontMetrics().denom2);var q;if(v){var C=t.fontMetrics().axisHeight;S-h.depth-(C+.5*y){var r=new k.MathNode("mfrac",[Y(e.numer,t),Y(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var a=j(e.barSize,t);r.setAttribute("linethickness",z(a))}var n=Dr(e.size,t.style);if(n.size!==t.style.size){r=new k.MathNode("mstyle",[r]);var s=n.size===I.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",s),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var h=[];if(e.leftDelim!=null){var c=new k.MathNode("mo",[new k.TextNode(e.leftDelim.replace("\\",""))]);c.setAttribute("fence","true"),h.push(c)}if(h.push(r),e.rightDelim!=null){var p=new k.MathNode("mo",[new k.TextNode(e.rightDelim.replace("\\",""))]);p.setAttribute("fence","true"),h.push(p)}return at(h)}return r};T({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],s=t[1],h,c=null,p=null,g="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":h=!0;break;case"\\\\atopfrac":h=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":h=!1,c="(",p=")";break;case"\\\\bracefrac":h=!1,c="\\{",p="\\}";break;case"\\\\brackfrac":h=!1,c="[",p="]";break;default:throw Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":g="display";break;case"\\tfrac":case"\\tbinom":g="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:n,denom:s,hasBarLine:h,leftDelim:c,rightDelim:p,size:g,barSize:null}},htmlBuilder:xt,mathmlBuilder:wt}),T({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],s=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),T({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:a}=e,n;switch(r){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:n,token:a}}});var Hr=["display","text","script","scriptscript"],Vr=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};T({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,a=t[4],n=t[5],s=T0(t[0]),h=s.type==="atom"&&s.family==="open"?Vr(s.text):null,c=T0(t[1]),p=c.type==="atom"&&c.family==="close"?Vr(c.text):null,g=E(t[2],"size"),v,y=null;g.isBlank?v=!0:(y=g.value,v=y.number>0);var x="auto",S=t[3];if(S.type==="ordgroup"){if(S.body.length>0){var A=E(S.body[0],"textord");x=Hr[Number(A.text)]}}else S=E(S,"textord"),x=Hr[Number(S.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:n,continued:!1,hasBarLine:v,barSize:y,leftDelim:h,rightDelim:p,size:x}},htmlBuilder:xt,mathmlBuilder:wt}),T({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:E(t[0],"size").value,token:n}}}),T({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],s=q1(E(t[1],"infix").size),h=t[2],c=s.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:h,continued:!1,hasBarLine:c,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:xt,mathmlBuilder:wt});var Pr=(e,t)=>{var r=t.style,a,n;e.type==="supsub"?(a=e.sup?V(e.sup,t.havingStyle(r.sup()),t):V(e.sub,t.havingStyle(r.sub()),t),n=E(e.base,"horizBrace")):n=E(e,"horizBrace");var s=V(n.base,t.havingBaseStyle(I.DISPLAY)),h=Ne.svgSpan(n,t),c;if(n.isOver?(c=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:h}]},t),c.children[0].children[0].children[1].classes.push("svg-align")):(c=b.makeVList({positionType:"bottom",positionData:s.depth+.1+h.height,children:[{type:"elem",elem:h},{type:"kern",size:.1},{type:"elem",elem:s}]},t),c.children[0].children[0].children[0].classes.push("svg-align")),a){var p=b.makeSpan(["mord",n.isOver?"mover":"munder"],[c],t);c=n.isOver?b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:a}]},t):b.makeVList({positionType:"bottom",positionData:p.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:p}]},t)}return b.makeSpan(["mord",n.isOver?"mover":"munder"],[c],t)};T({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:Pr,mathmlBuilder:(e,t)=>{var r=Ne.mathMLnode(e.label);return new k.MathNode(e.isOver?"mover":"munder",[Y(e.base,t),r])}}),T({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=E(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:_(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Q(e.body,t,!1);return b.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=De(e.body,t);return r instanceof le||(r=new le("mrow",[r])),r.setAttribute("href",e.href),r}}),T({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=E(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],s=0;s{var{parser:r,funcName:a,token:n}=e,s=E(t[0],"raw").string,h=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,p={};switch(a){case"\\htmlClass":p.class=s,c={command:"\\htmlClass",class:s};break;case"\\htmlId":p.id=s,c={command:"\\htmlId",id:s};break;case"\\htmlStyle":p.style=s,c={command:"\\htmlStyle",style:s};break;case"\\htmlData":for(var g=s.split(","),v=0;v{var r=Q(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=b.makeSpan(a,r,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&n.setAttribute(s,e.attributes[s]);return n},mathmlBuilder:(e,t)=>De(e.body,t)}),T({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:_(t[0]),mathml:_(t[1])}},htmlBuilder:(e,t)=>{var r=Q(e.html,t,!1);return b.makeFragment(r)},mathmlBuilder:(e,t)=>De(e.mathml,t)});var kt=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new M("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!Gt(r))throw new M("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};T({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},s={number:.9,unit:"em"},h={number:0,unit:"em"},c="";if(r[0])for(var p=E(r[0],"raw").string.split(","),g=0;g{var r=j(e.height,t),a=0;e.totalheight.number>0&&(a=j(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=j(e.width,t));var s={height:z(r+a)};n>0&&(s.width=z(n)),a>0&&(s.verticalAlign=z(-a));var h=new Q1(e.src,e.alt,s);return h.height=r,h.depth=a,h},mathmlBuilder:(e,t)=>{var r=new k.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=j(e.height,t),n=0;if(e.totalheight.number>0&&(n=j(e.totalheight,t)-a,r.setAttribute("valign",z(-n))),r.setAttribute("height",z(a+n)),e.width.number>0){var s=j(e.width,t);r.setAttribute("width",z(s))}return r.setAttribute("src",e.src),r}}),T({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=E(t[0],"size");if(r.settings.strict){var s=a[1]==="m",h=n.value.unit==="mu";s?(h||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):h&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return b.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=j(e.dimension,t);return new k.SpaceNode(r)}}),T({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=b.makeSpan([],[V(e.body,t)]),r=b.makeSpan(["inner"],[r],t)):r=b.makeSpan(["inner"],[V(e.body,t)]);var a=b.makeSpan(["fix"],[]),n=b.makeSpan([e.alignment],[r,a],t),s=b.makeSpan(["strut"]);return s.style.height=z(n.height+n.depth),n.depth&&(s.style.verticalAlign=z(-n.depth)),n.children.unshift(s),n=b.makeSpan(["thinbox"],[n],t),b.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new k.MathNode("mpadded",[Y(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),T({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var s=r==="\\("?"\\)":"$",h=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:h}}}),T({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new M("Mismatched "+e.funcName)}});var Fr=(e,t)=>{switch(t.style.size){case I.DISPLAY.size:return e.display;case I.TEXT.size:return e.text;case I.SCRIPT.size:return e.script;case I.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};T({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:_(t[0]),text:_(t[1]),script:_(t[2]),scriptscript:_(t[3])}},htmlBuilder:(e,t)=>{var r=Q(Fr(e,t),t,!1);return b.makeFragment(r)},mathmlBuilder:(e,t)=>De(Fr(e,t),t)});var Gr=(e,t,r,a,n,s,h)=>{e=b.makeSpan([],[e]);var c=r&&F.isCharacterBox(r),p,g;if(t){var v=V(t,a.havingStyle(n.sup()),a);g={elem:v,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-v.depth)}}if(r){var y=V(r,a.havingStyle(n.sub()),a);p={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-y.height)}}var x;if(g&&p){var S=a.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+e.depth+h;x=b.makeVList({positionType:"bottom",positionData:S,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:z(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e},{type:"kern",size:g.kern},{type:"elem",elem:g.elem,marginLeft:z(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(p){var A=e.height-h;x=b.makeVList({positionType:"top",positionData:A,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:z(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e}]},a)}else if(g){var N=e.depth+h;x=b.makeVList({positionType:"bottom",positionData:N,children:[{type:"elem",elem:e},{type:"kern",size:g.kern},{type:"elem",elem:g.elem,marginLeft:z(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return e;var q=[x];if(p&&s!==0&&!c){var C=b.makeSpan(["mspace"],[],a);C.style.marginRight=z(s),q.unshift(C)}return b.makeSpan(["mop","op-limits"],q,a)},Yr=["\\smallint"],e0=(e,t)=>{var r,a,n=!1,s;e.type==="supsub"?(r=e.sup,a=e.sub,s=E(e.base,"op"),n=!0):s=E(e,"op");var h=t.style,c=!1;h.size===I.DISPLAY.size&&s.symbol&&!Yr.includes(s.name)&&(c=!0);var p;if(s.symbol){var g=c?"Size2-Regular":"Size1-Regular",v="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(v=s.name.slice(1),s.name=v==="oiint"?"\\iint":"\\iiint"),p=b.makeSymbol(s.name,g,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),v.length>0){var y=p.italic,x=b.staticSvg(v+"Size"+(c?"2":"1"),t);p=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:x,shift:c?.08:0}]},t),s.name="\\"+v,p.classes.unshift("mop"),p.italic=y}}else if(s.body){var S=Q(s.body,t,!0);S.length===1&&S[0]instanceof pe?(p=S[0],p.classes[0]="mop"):p=b.makeSpan(["mop"],S,t)}else{for(var A=[],N=1;N{var r;if(e.symbol)r=new le("mo",[ue(e.name,e.mode)]),Yr.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new le("mo",ne(e.body,t));else{r=new le("mi",[new xe(e.name.slice(1))]);var a=new le("mo",[ue("\u2061","text")]);r=e.parentIsSupSub?new le("mrow",[r,a]):or([r,a])}return r},$a={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};T({type:"op",names:"\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.\u220F.\u2210.\u2211.\u22C0.\u22C1.\u22C2.\u22C3.\u2A00.\u2A01.\u2A02.\u2A04.\u2A06".split("."),props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=a;return n.length===1&&(n=$a[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:e0,mathmlBuilder:m0}),T({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:_(a)}},htmlBuilder:e0,mathmlBuilder:m0});var Za={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};T({type:"op",names:"\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th".split("."),props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:e0,mathmlBuilder:m0}),T({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:e0,mathmlBuilder:m0}),T({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,a=r;return a.length===1&&(a=Za[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:e0,mathmlBuilder:m0});var Xr=(e,t)=>{var r,a,n=!1,s;e.type==="supsub"?(r=e.sup,a=e.sub,s=E(e.base,"operatorname"),n=!0):s=E(e,"operatorname");var h;if(s.body.length>0){for(var c=Q(s.body.map(v=>{var y=v.text;return typeof y=="string"?{type:"textord",mode:v.mode,text:y}:v}),t.withFont("mathrm"),!0),p=0;p{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:_(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Xr,mathmlBuilder:(e,t)=>{for(var r=ne(e.body,t.withFont("mathrm")),a=!0,n=0;nv.toText()).join("");r=[new k.TextNode(c)]}var p=new k.MathNode("mi",r);p.setAttribute("mathvariant","normal");var g=new k.MathNode("mo",[ue("\u2061","text")]);return e.parentIsSupSub?new k.MathNode("mrow",[p,g]):k.newDocumentFragment([p,g])}}),m("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Ge({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?b.makeFragment(Q(e.body,t,!1)):b.makeSpan(["mord"],Q(e.body,t,!0),t)},mathmlBuilder(e,t){return De(e.body,t,!0)}}),T({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=V(e.body,t.havingCrampedStyle()),a=b.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},t);return b.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new k.MathNode("mo",[new k.TextNode("\u203E")]);r.setAttribute("stretchy","true");var a=new k.MathNode("mover",[Y(e.body,t),r]);return a.setAttribute("accent","true"),a}}),T({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:_(a)}},htmlBuilder:(e,t)=>{var r=Q(e.body,t.withPhantom(),!1);return b.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=ne(e.body,t);return new k.MathNode("mphantom",r)}}),T({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=b.makeSpan([],[V(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a{var r=ne(_(e.body),t),a=new k.MathNode("mphantom",r),n=new k.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}}),T({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=b.makeSpan(["inner"],[V(e.body,t.withPhantom())]),a=b.makeSpan(["fix"],[]);return b.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=ne(_(e.body),t),a=new k.MathNode("mphantom",r),n=new k.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}}),T({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=E(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=V(e.body,t),a=j(e.dy,t);return b.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new k.MathNode("mpadded",[Y(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}}),T({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),T({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],s=E(t[0],"size"),h=E(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&E(n,"size").value,width:s.value,height:h.value}},htmlBuilder(e,t){var r=b.makeSpan(["mord","rule"],[],t),a=j(e.width,t),n=j(e.height,t),s=e.shift?j(e.shift,t):0;return r.style.borderRightWidth=z(a),r.style.borderTopWidth=z(n),r.style.bottom=z(s),r.width=a,r.height=n+s,r.depth=-s,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=j(e.width,t),a=j(e.height,t),n=e.shift?j(e.shift,t):0,s=t.color&&t.getColor()||"black",h=new k.MathNode("mspace");h.setAttribute("mathbackground",s),h.setAttribute("width",z(r)),h.setAttribute("height",z(a));var c=new k.MathNode("mpadded",[h]);return n>=0?c.setAttribute("height",z(n)):(c.setAttribute("height",z(n)),c.setAttribute("depth",z(-n))),c.setAttribute("voffset",z(n)),c}});function Wr(e,t,r){for(var a=Q(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,s=0;s{var{breakOnTokenText:r,funcName:a,parser:n}=e,s=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:Ur.indexOf(a)+1,body:s}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return Wr(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=ne(e.body,r),n=new k.MathNode("mstyle",a);return n.setAttribute("mathsize",z(r.sizeMultiplier)),n}}),T({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,s=!1,h=r[0]&&E(r[0],"ordgroup");if(h)for(var c="",p=0;p{var r=b.makeSpan([],[V(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a{var r=new k.MathNode("mpadded",[Y(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),T({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],s=t[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(e,t){var r=V(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=b.wrapFragment(r,t);var a=t.fontMetrics().defaultRuleThickness,n=a;t.style.idr.height+r.depth+s&&(s=(s+v-r.height-r.depth)/2);var y=c.height-r.height-s-p;r.style.paddingLeft=z(g);var x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+y)},{type:"elem",elem:c},{type:"kern",size:p}]},t);if(e.index){var S=t.havingStyle(I.SCRIPTSCRIPT),A=V(e.index,S,t),N=.6*(x.height-x.depth),q=b.makeVList({positionType:"shift",positionData:-N,children:[{type:"elem",elem:A}]},t),C=b.makeSpan(["root"],[q]);return b.makeSpan(["mord","sqrt"],[C,x],t)}else return b.makeSpan(["mord","sqrt"],[x],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new k.MathNode("mroot",[Y(r,t),Y(a,t)]):new k.MathNode("msqrt",[Y(r,t)])}});var jr={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT};T({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,s=n.parseExpression(!0,r),h=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:h,body:s}},htmlBuilder(e,t){var r=jr[e.style],a=t.havingStyle(r).withFont("");return Wr(e.body,a,t)},mathmlBuilder(e,t){var r=jr[e.style],a=t.havingStyle(r),n=ne(e.body,a),s=new k.MathNode("mstyle",n),h={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return s.setAttribute("scriptlevel",h[0]),s.setAttribute("displaystyle",h[1]),s}});var Ka=function(e,t){var r=e.base;return r?r.type==="op"?r.limits&&(t.style.size===I.DISPLAY.size||r.alwaysHandleSupSub)?e0:null:r.type==="operatorname"?r.alwaysHandleSupSub&&(t.style.size===I.DISPLAY.size||r.limits)?Xr:null:r.type==="accent"?F.isCharacterBox(r.base)?st:null:r.type==="horizBrace"&&!e.sub===r.isOver?Pr:null:null};Ge({type:"supsub",htmlBuilder(e,t){var r=Ka(e,t);if(r)return r(e,t);var{base:a,sup:n,sub:s}=e,h=V(a,t),c,p,g=t.fontMetrics(),v=0,y=0,x=a&&F.isCharacterBox(a);if(n){var S=t.havingStyle(t.style.sup());c=V(n,S,t),x||(v=h.height-S.fontMetrics().supDrop*S.sizeMultiplier/t.sizeMultiplier)}if(s){var A=t.havingStyle(t.style.sub());p=V(s,A,t),x||(y=h.depth+A.fontMetrics().subDrop*A.sizeMultiplier/t.sizeMultiplier)}var N=t.style===I.DISPLAY?g.sup1:t.style.cramped?g.sup3:g.sup2,q=t.sizeMultiplier,C=z(.5/g.ptPerEm/q),L=null;if(p){var G=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(h instanceof pe||G)&&(L=z(-h.italic))}var H;if(c&&p){v=Math.max(v,N,c.depth+.25*g.xHeight),y=Math.max(y,g.sub2);var D=4*g.defaultRuleThickness;if(v-c.depth-(p.height-y)0&&(v+=P,y-=P)}var X=[{type:"elem",elem:p,shift:y,marginRight:C,marginLeft:L},{type:"elem",elem:c,shift:-v,marginRight:C}];H=b.makeVList({positionType:"individualShift",children:X},t)}else if(p){y=Math.max(y,g.sub1,p.height-.8*g.xHeight);var ee=[{type:"elem",elem:p,marginLeft:L,marginRight:C}];H=b.makeVList({positionType:"shift",positionData:y,children:ee},t)}else if(c)v=Math.max(v,N,c.depth+.25*g.xHeight),H=b.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:c,marginRight:C}]},t);else throw Error("supsub must have either sup or sub.");var oe=tt(h,"right")||"mord";return b.makeSpan([oe],[h,b.makeSpan(["msupsub"],[H])],t)},mathmlBuilder(e,t){var r=!1,a,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Y(e.base,t)];e.sub&&s.push(Y(e.sub,t)),e.sup&&s.push(Y(e.sup,t));var h;if(r)h=a?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;h=c&&c.type==="op"&&c.limits&&t.style===I.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===I.DISPLAY||c.limits)?"munderover":"msubsup"}else{var p=e.base;h=p&&p.type==="op"&&p.limits&&(t.style===I.DISPLAY||p.alwaysHandleSupSub)||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||t.style===I.DISPLAY)?"munder":"msub"}else{var g=e.base;h=g&&g.type==="op"&&g.limits&&(t.style===I.DISPLAY||g.alwaysHandleSupSub)||g&&g.type==="operatorname"&&g.alwaysHandleSupSub&&(g.limits||t.style===I.DISPLAY)?"mover":"msup"}return new k.MathNode(h,s)}}),Ge({type:"atom",htmlBuilder(e,t){return b.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new k.MathNode("mo",[ue(e.text,e.mode)]);if(e.family==="bin"){var a=it(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var $r={mi:"italic",mn:"normal",mtext:"normal"};Ge({type:"mathord",htmlBuilder(e,t){return b.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new k.MathNode("mi",[ue(e.text,e.mode,t)]),a=it(e,t)||"italic";return a!==$r[r.type]&&r.setAttribute("mathvariant",a),r}}),Ge({type:"textord",htmlBuilder(e,t){return b.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=ue(e.text,e.mode,t),a=it(e,t)||"normal",n=e.mode==="text"?new k.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new k.MathNode("mn",[r]):e.text==="\\prime"?new k.MathNode("mo",[r]):new k.MathNode("mi",[r]);return a!==$r[n.type]&&n.setAttribute("mathvariant",a),n}});var St={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Mt={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ge({type:"spacing",htmlBuilder(e,t){if(Mt.hasOwnProperty(e.text)){var r=Mt[e.text].className||"";if(e.mode==="text"){var a=b.makeOrd(e,t,"textord");return a.classes.push(r),a}else return b.makeSpan(["mspace",r],[b.mathsym(e.text,e.mode,t)],t)}else{if(St.hasOwnProperty(e.text))return b.makeSpan(["mspace",St[e.text]],[],t);throw new M('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Mt.hasOwnProperty(e.text))r=new k.MathNode("mtext",[new k.TextNode("\xA0")]);else{if(St.hasOwnProperty(e.text))return new k.MathNode("mspace");throw new M('Unknown type of space "'+e.text+'"')}return r}});var Zr=()=>{var e=new k.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Ge({type:"tag",mathmlBuilder(e,t){var r=new k.MathNode("mtable",[new k.MathNode("mtr",[Zr(),new k.MathNode("mtd",[De(e.body,t)]),Zr(),new k.MathNode("mtd",[De(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Kr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},_r={"\\textbf":"textbf","\\textmd":"textmd"},_a={"\\textit":"textit","\\textup":"textup"},Jr=(e,t)=>{var r=e.font;if(r){if(Kr[r])return t.withTextFontFamily(Kr[r]);if(_r[r])return t.withTextFontWeight(_r[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(_a[r])};T({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"text",mode:r.mode,body:_(n),font:a}},htmlBuilder(e,t){var r=Jr(e,t),a=Q(e.body,r,!0);return b.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=Jr(e,t);return De(e.body,r)}}),T({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=V(e.body,t),a=b.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return b.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new k.MathNode("mo",[new k.TextNode("\u203E")]);r.setAttribute("stretchy","true");var a=new k.MathNode("munder",[Y(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),T({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=V(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return b.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new k.MathNode("mpadded",[Y(e.body,t)],["vcenter"])}}),T({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Qr(e),a=[],n=t.havingStyle(t.style.text()),s=0;se.body.replace(/ /g,e.star?"\u2423":"\xA0"),Ve=ar,e1=`[ \r + ]`,Ja="\\\\[a-zA-Z@]+",Qa="\\\\[^\uD800-\uDFFF]",e4="("+Ja+")"+e1+"*",t4=`\\\\( +|[ \r ]+ +?)[ \r ]*`,zt="[\u0300-\u036F]",r4=RegExp(zt+"+$"),a4="("+e1+"+)|"+(t4+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(zt+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(zt+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+e4)+("|"+Qa+")"),t1=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(a4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new ge("EOF",new me(this,t,t));var r=this.tokenRegex.exec(e);if(r===null||r.index!==t)throw new M("Unexpected character: '"+e[t]+"'",new ge(e[t],new me(this,t,t+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var n=e.indexOf(` +`,this.tokenRegex.lastIndex);return n===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=n+1,this.lex()}return new ge(a,new me(this,t,this.tokenRegex.lastIndex))}},i4=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new M("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(r===void 0&&(r=!1),r){for(var a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},n4=qr;m("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),m("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),m("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),m("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),m("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),m("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),m("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var r1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};m("\\char",function(e){var t=e.popToken(),r,a="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new M("\\char` missing argument");a=t.text.charCodeAt(0)}else r=10;if(r){if(a=r1[t.text],a==null||a>=r)throw new M("Invalid base-"+r+" digit "+t.text);for(var n;(n=r1[e.future().text])!=null&&n{var n=e.consumeArg().tokens;if(n.length!==1)throw new M("\\newcommand's first argument must be a macro name");var s=n[0].text,h=e.isDefined(s);if(h&&!t)throw new M("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!h&&!r)throw new M("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var c=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var p="",g=e.expandNextToken();g.text!=="]"&&g.text!=="EOF";)p+=g.text,g=e.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new M("Invalid number of arguments: "+p);c=parseInt(p),n=e.consumeArg().tokens}return h&&a||e.macros.set(s,{tokens:n,numArgs:c}),""};m("\\newcommand",e=>At(e,!1,!0,!1)),m("\\renewcommand",e=>At(e,!0,!1,!1)),m("\\providecommand",e=>At(e,!0,!0,!0)),m("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""}),m("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""}),m("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Ve[r],W.math[r],W.text[r]),""}),m("\\bgroup","{"),m("\\egroup","}"),m("~","\\nobreakspace"),m("\\lq","`"),m("\\rq","'"),m("\\aa","\\r a"),m("\\AA","\\r A"),m("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),m("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),m("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),m("\u212C","\\mathscr{B}"),m("\u2130","\\mathscr{E}"),m("\u2131","\\mathscr{F}"),m("\u210B","\\mathscr{H}"),m("\u2110","\\mathscr{I}"),m("\u2112","\\mathscr{L}"),m("\u2133","\\mathscr{M}"),m("\u211B","\\mathscr{R}"),m("\u212D","\\mathfrak{C}"),m("\u210C","\\mathfrak{H}"),m("\u2128","\\mathfrak{Z}"),m("\\Bbbk","\\Bbb{k}"),m("\xB7","\\cdotp"),m("\\llap","\\mathllap{\\textrm{#1}}"),m("\\rlap","\\mathrlap{\\textrm{#1}}"),m("\\clap","\\mathclap{\\textrm{#1}}"),m("\\mathstrut","\\vphantom{(}"),m("\\underbar","\\underline{\\text{#1}}"),m("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),m("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),m("\\ne","\\neq"),m("\u2260","\\neq"),m("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),m("\u2209","\\notin"),m("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),m("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),m("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),m("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),m("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),m("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),m("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),m("\u27C2","\\perp"),m("\u203C","\\mathclose{!\\mkern-0.8mu!}"),m("\u220C","\\notni"),m("\u231C","\\ulcorner"),m("\u231D","\\urcorner"),m("\u231E","\\llcorner"),m("\u231F","\\lrcorner"),m("\xA9","\\copyright"),m("\xAE","\\textregistered"),m("\uFE0F","\\textregistered"),m("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),m("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),m("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),m("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),m("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),m("\u22EE","\\vdots"),m("\\varGamma","\\mathit{\\Gamma}"),m("\\varDelta","\\mathit{\\Delta}"),m("\\varTheta","\\mathit{\\Theta}"),m("\\varLambda","\\mathit{\\Lambda}"),m("\\varXi","\\mathit{\\Xi}"),m("\\varPi","\\mathit{\\Pi}"),m("\\varSigma","\\mathit{\\Sigma}"),m("\\varUpsilon","\\mathit{\\Upsilon}"),m("\\varPhi","\\mathit{\\Phi}"),m("\\varPsi","\\mathit{\\Psi}"),m("\\varOmega","\\mathit{\\Omega}"),m("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),m("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),m("\\boxed","\\fbox{$\\displaystyle{#1}$}"),m("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),m("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),m("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),m("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),m("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var a1={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};m("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in a1?t=a1[r]:(r.slice(0,4)==="\\not"||r in W.math&&["bin","rel"].includes(W.math[r].group))&&(t="\\dotsb"),t});var Tt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};m("\\dotso",function(e){return e.future().text in Tt?"\\ldots\\,":"\\ldots"}),m("\\dotsc",function(e){var t=e.future().text;return t in Tt&&t!==","?"\\ldots\\,":"\\ldots"}),m("\\cdots",function(e){return e.future().text in Tt?"\\@cdots\\,":"\\@cdots"}),m("\\dotsb","\\cdots"),m("\\dotsm","\\cdots"),m("\\dotsi","\\!\\cdots"),m("\\dotsx","\\ldots\\,"),m("\\DOTSI","\\relax"),m("\\DOTSB","\\relax"),m("\\DOTSX","\\relax"),m("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),m("\\,","\\tmspace+{3mu}{.1667em}"),m("\\thinspace","\\,"),m("\\>","\\mskip{4mu}"),m("\\:","\\tmspace+{4mu}{.2222em}"),m("\\medspace","\\:"),m("\\;","\\tmspace+{5mu}{.2777em}"),m("\\thickspace","\\;"),m("\\!","\\tmspace-{3mu}{.1667em}"),m("\\negthinspace","\\!"),m("\\negmedspace","\\tmspace-{4mu}{.2222em}"),m("\\negthickspace","\\tmspace-{5mu}{.277em}"),m("\\enspace","\\kern.5em "),m("\\enskip","\\hskip.5em\\relax"),m("\\quad","\\hskip1em\\relax"),m("\\qquad","\\hskip2em\\relax"),m("\\tag","\\@ifstar\\tag@literal\\tag@paren"),m("\\tag@paren","\\tag@literal{({#1})}"),m("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new M("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),m("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),m("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),m("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),m("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),m("\\newline","\\\\\\relax"),m("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var i1=z(ye["Main-Regular"][84][1]-.7*ye["Main-Regular"][65][1]);m("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+i1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),m("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+i1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),m("\\hspace","\\@ifstar\\@hspacer\\@hspace"),m("\\@hspace","\\hskip #1\\relax"),m("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),m("\\ordinarycolon",":"),m("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),m("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),m("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),m("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),m("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),m("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),m("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),m("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),m("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),m("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),m("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),m("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),m("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),m("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),m("\u2237","\\dblcolon"),m("\u2239","\\eqcolon"),m("\u2254","\\coloneqq"),m("\u2255","\\eqqcolon"),m("\u2A74","\\Coloneqq"),m("\\ratio","\\vcentcolon"),m("\\coloncolon","\\dblcolon"),m("\\colonequals","\\coloneqq"),m("\\coloncolonequals","\\Coloneqq"),m("\\equalscolon","\\eqqcolon"),m("\\equalscoloncolon","\\Eqqcolon"),m("\\colonminus","\\coloneq"),m("\\coloncolonminus","\\Coloneq"),m("\\minuscolon","\\eqcolon"),m("\\minuscoloncolon","\\Eqcolon"),m("\\coloncolonapprox","\\Colonapprox"),m("\\coloncolonsim","\\Colonsim"),m("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),m("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),m("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),m("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),m("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),m("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),m("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),m("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),m("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),m("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),m("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),m("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),m("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),m("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),m("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),m("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),m("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),m("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),m("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),m("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),m("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),m("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),m("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),m("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),m("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),m("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),m("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),m("\\imath","\\html@mathml{\\@imath}{\u0131}"),m("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),m("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),m("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),m("\u27E6","\\llbracket"),m("\u27E7","\\rrbracket"),m("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),m("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),m("\u2983","\\lBrace"),m("\u2984","\\rBrace"),m("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),m("\u29B5","\\minuso"),m("\\darr","\\downarrow"),m("\\dArr","\\Downarrow"),m("\\Darr","\\Downarrow"),m("\\lang","\\langle"),m("\\rang","\\rangle"),m("\\uarr","\\uparrow"),m("\\uArr","\\Uparrow"),m("\\Uarr","\\Uparrow"),m("\\N","\\mathbb{N}"),m("\\R","\\mathbb{R}"),m("\\Z","\\mathbb{Z}"),m("\\alef","\\aleph"),m("\\alefsym","\\aleph"),m("\\Alpha","\\mathrm{A}"),m("\\Beta","\\mathrm{B}"),m("\\bull","\\bullet"),m("\\Chi","\\mathrm{X}"),m("\\clubs","\\clubsuit"),m("\\cnums","\\mathbb{C}"),m("\\Complex","\\mathbb{C}"),m("\\Dagger","\\ddagger"),m("\\diamonds","\\diamondsuit"),m("\\empty","\\emptyset"),m("\\Epsilon","\\mathrm{E}"),m("\\Eta","\\mathrm{H}"),m("\\exist","\\exists"),m("\\harr","\\leftrightarrow"),m("\\hArr","\\Leftrightarrow"),m("\\Harr","\\Leftrightarrow"),m("\\hearts","\\heartsuit"),m("\\image","\\Im"),m("\\infin","\\infty"),m("\\Iota","\\mathrm{I}"),m("\\isin","\\in"),m("\\Kappa","\\mathrm{K}"),m("\\larr","\\leftarrow"),m("\\lArr","\\Leftarrow"),m("\\Larr","\\Leftarrow"),m("\\lrarr","\\leftrightarrow"),m("\\lrArr","\\Leftrightarrow"),m("\\Lrarr","\\Leftrightarrow"),m("\\Mu","\\mathrm{M}"),m("\\natnums","\\mathbb{N}"),m("\\Nu","\\mathrm{N}"),m("\\Omicron","\\mathrm{O}"),m("\\plusmn","\\pm"),m("\\rarr","\\rightarrow"),m("\\rArr","\\Rightarrow"),m("\\Rarr","\\Rightarrow"),m("\\real","\\Re"),m("\\reals","\\mathbb{R}"),m("\\Reals","\\mathbb{R}"),m("\\Rho","\\mathrm{P}"),m("\\sdot","\\cdot"),m("\\sect","\\S"),m("\\spades","\\spadesuit"),m("\\sub","\\subset"),m("\\sube","\\subseteq"),m("\\supe","\\supseteq"),m("\\Tau","\\mathrm{T}"),m("\\thetasym","\\vartheta"),m("\\weierp","\\wp"),m("\\Zeta","\\mathrm{Z}"),m("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),m("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),m("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),m("\\bra","\\mathinner{\\langle{#1}|}"),m("\\ket","\\mathinner{|{#1}\\rangle}"),m("\\braket","\\mathinner{\\langle{#1}\\rangle}"),m("\\Bra","\\left\\langle#1\\right|"),m("\\Ket","\\left|#1\\right\\rangle");var n1=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,s=t.consumeArg().tokens,h=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var p=y=>x=>{e&&(x.macros.set("|",h),n.length&&x.macros.set("\\|",c));var S=y;return!y&&n.length&&x.future().text==="|"&&(x.popToken(),S=!0),{tokens:S?n:a,numArgs:0}};t.macros.set("|",p(!1)),n.length&&t.macros.set("\\|",p(!0));var g=t.consumeArg().tokens,v=t.expandTokens([...s,...g,...r]);return t.macros.endGroup(),{tokens:v.reverse(),numArgs:0}};m("\\bra@ket",n1(!1)),m("\\bra@set",n1(!0)),m("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),m("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),m("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),m("\\angln","{\\angl n}"),m("\\blue","\\textcolor{##6495ed}{#1}"),m("\\orange","\\textcolor{##ffa500}{#1}"),m("\\pink","\\textcolor{##ff00af}{#1}"),m("\\red","\\textcolor{##df0030}{#1}"),m("\\green","\\textcolor{##28ae7b}{#1}"),m("\\gray","\\textcolor{gray}{#1}"),m("\\purple","\\textcolor{##9d38bd}{#1}"),m("\\blueA","\\textcolor{##ccfaff}{#1}"),m("\\blueB","\\textcolor{##80f6ff}{#1}"),m("\\blueC","\\textcolor{##63d9ea}{#1}"),m("\\blueD","\\textcolor{##11accd}{#1}"),m("\\blueE","\\textcolor{##0c7f99}{#1}"),m("\\tealA","\\textcolor{##94fff5}{#1}"),m("\\tealB","\\textcolor{##26edd5}{#1}"),m("\\tealC","\\textcolor{##01d1c1}{#1}"),m("\\tealD","\\textcolor{##01a995}{#1}"),m("\\tealE","\\textcolor{##208170}{#1}"),m("\\greenA","\\textcolor{##b6ffb0}{#1}"),m("\\greenB","\\textcolor{##8af281}{#1}"),m("\\greenC","\\textcolor{##74cf70}{#1}"),m("\\greenD","\\textcolor{##1fab54}{#1}"),m("\\greenE","\\textcolor{##0d923f}{#1}"),m("\\goldA","\\textcolor{##ffd0a9}{#1}"),m("\\goldB","\\textcolor{##ffbb71}{#1}"),m("\\goldC","\\textcolor{##ff9c39}{#1}"),m("\\goldD","\\textcolor{##e07d10}{#1}"),m("\\goldE","\\textcolor{##a75a05}{#1}"),m("\\redA","\\textcolor{##fca9a9}{#1}"),m("\\redB","\\textcolor{##ff8482}{#1}"),m("\\redC","\\textcolor{##f9685d}{#1}"),m("\\redD","\\textcolor{##e84d39}{#1}"),m("\\redE","\\textcolor{##bc2612}{#1}"),m("\\maroonA","\\textcolor{##ffbde0}{#1}"),m("\\maroonB","\\textcolor{##ff92c6}{#1}"),m("\\maroonC","\\textcolor{##ed5fa6}{#1}"),m("\\maroonD","\\textcolor{##ca337c}{#1}"),m("\\maroonE","\\textcolor{##9e034e}{#1}"),m("\\purpleA","\\textcolor{##ddd7ff}{#1}"),m("\\purpleB","\\textcolor{##c6b9fc}{#1}"),m("\\purpleC","\\textcolor{##aa87ff}{#1}"),m("\\purpleD","\\textcolor{##7854ab}{#1}"),m("\\purpleE","\\textcolor{##543b78}{#1}"),m("\\mintA","\\textcolor{##f5f9e8}{#1}"),m("\\mintB","\\textcolor{##edf2df}{#1}"),m("\\mintC","\\textcolor{##e0e5cc}{#1}"),m("\\grayA","\\textcolor{##f6f7f7}{#1}"),m("\\grayB","\\textcolor{##f0f1f2}{#1}"),m("\\grayC","\\textcolor{##e3e5e6}{#1}"),m("\\grayD","\\textcolor{##d6d8da}{#1}"),m("\\grayE","\\textcolor{##babec2}{#1}"),m("\\grayF","\\textcolor{##888d93}{#1}"),m("\\grayG","\\textcolor{##626569}{#1}"),m("\\grayH","\\textcolor{##3b3e40}{#1}"),m("\\grayI","\\textcolor{##21242c}{#1}"),m("\\kaBlue","\\textcolor{##314453}{#1}"),m("\\kaGreen","\\textcolor{##71B307}{#1}");var o1={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},o4=class{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new i4(n4,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new t1(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:t,end:r}=this.consumeArg());return this.pushToken(new ge("EOF",r.loc)),this.pushTokens(a),new ge("",me.range(t,r))}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var a=this.future(),n,s=0,h=0;do{if(n=this.popToken(),t.push(n),n.text==="{")++s;else if(n.text==="}"){if(--s,s===-1)throw new M("Extra }",n)}else if(n.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(e&&r?e[h]:"}")+"'",n);if(e&&r)if((s===0||s===1&&e[h]==="{")&&n.text===e[h]){if(++h,h===e.length){t.splice(-h,h);break}}else h=0}while(s!==0||r);return a.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new M("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;athis.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(a==null||e&&a.unexpandable){if(e&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new M("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var n=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){n=n.slice();for(var h=n.length-1;h>=0;--h){var c=n[h];if(c.text==="#"){if(h===0)throw new M("Incomplete placeholder at end of macro body",c);if(c=n[--h],c.text==="#")n.splice(h+1,1);else if(/^[1-9]$/.test(c.text))n.splice(h,2,...s[c.text-1]);else throw new M("Not a valid argument number",c)}}}return this.pushTokens(n),n.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new ge(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.treatAsRelax=(a.noexpand=!1,!1)),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(r=>r.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var a=typeof t=="function"?t(this):t;if(typeof a=="string"){var n=0;if(a.indexOf("#")!==-1)for(var s=a.replace(/##/g,"");s.indexOf("#"+(n+1))!==-1;)++n;for(var h=new t1(a,this.settings),c=[],p=h.lex();p.text!=="EOF";)c.push(p),p=h.lex();return c.reverse(),{tokens:c,numArgs:n}}return a}isDefined(e){return this.macros.has(e)||Ve.hasOwnProperty(e)||W.math.hasOwnProperty(e)||W.text.hasOwnProperty(e)||o1.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Ve.hasOwnProperty(e)&&!Ve[e].primitive:typeof t=="string"||typeof t=="function"||!t.unexpandable}},s1=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,E0=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),Bt={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},l1={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},h1=class y1{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new o4(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new M("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new ge("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(t,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(y1.endOfExpression.indexOf(n.text)!==-1||r&&n.text===r||t&&Ve[n.text]&&Ve[n.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var r=-1,a,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var c=W[this.mode][r].group,p=me.range(t),g;if(ra.hasOwnProperty(c)){var v=c;g={type:"atom",mode:this.mode,family:v,loc:p,text:r}}else g={type:c,mode:this.mode,loc:p,text:r};h=g}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Et(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),h={type:"textord",mode:"text",loc:me.range(t),text:r};else return null;if(this.consume(),s)for(var y=0;y{let r=(0,d.c)(5),o;r[0]===e.className?o=r[1]:(o=n(e.className,"rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"),r[0]=e.className,r[1]=o);let t;return r[2]!==e.children||r[3]!==o?(t=(0,c.jsx)("kbd",{className:o,children:e.children}),r[2]=e.children,r[3]=o,r[4]=t):t=r[4],t};export{l as t}; diff --git a/docs/assets/kiosk-mode-CQH06LFg.js b/docs/assets/kiosk-mode-CQH06LFg.js new file mode 100644 index 0000000..830f775 --- /dev/null +++ b/docs/assets/kiosk-mode-CQH06LFg.js @@ -0,0 +1 @@ +import{s}from"./chunk-LvLJmgfZ.js";import{u as e}from"./useEvent-DlWF5OMa.js";import{t as l}from"./react-BGmjiNul.js";import{t as u}from"./invariant-C6yE60hi.js";import{r as n}from"./mode-CXc0VeQq.js";var o=s(l(),1),a=(0,o.createContext)(null);const c=a.Provider;function i(){let r=(0,o.useContext)(a);return u(r!==null,"usePanelSection must be used within a PanelSectionProvider"),r}function m(){return i()==="sidebar"?"vertical":"horizontal"}const d=r=>{let{children:t}=r;return e(n)?null:t},f=r=>{let{children:t}=r;return e(n)?t:null};export{i as a,m as i,f as n,c as r,d as t}; diff --git a/docs/assets/kotlin-BGd_lSNb.js b/docs/assets/kotlin-BGd_lSNb.js new file mode 100644 index 0000000..f3d83a4 --- /dev/null +++ b/docs/assets/kotlin-BGd_lSNb.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Kotlin","fileTypes":["kt","kts"],"name":"kotlin","patterns":[{"include":"#import"},{"include":"#package"},{"include":"#code"}],"repository":{"annotation-simple":{"match":"(?<([^<>]|\\\\g)+>)?"},"code":{"patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#annotation-simple"},{"include":"#annotation-site-list"},{"include":"#annotation-site"},{"include":"#class-declaration"},{"include":"#object"},{"include":"#type-alias"},{"include":"#function"},{"include":"#variable-declaration"},{"include":"#type-constraint"},{"include":"#type-annotation"},{"include":"#function-call"},{"include":"#method-reference"},{"include":"#key"},{"include":"#string"},{"include":"#string-empty"},{"include":"#string-multiline"},{"include":"#character"},{"include":"#lambda-arrow"},{"include":"#operators"},{"include":"#self-reference"},{"include":"#decimal-literal"},{"include":"#hex-literal"},{"include":"#binary-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"}]},"comment-block":{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.kotlin"},"comment-javadoc":{"patterns":[{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.javadoc.kotlin","patterns":[{"match":"@(return|constructor|receiver|sample|see|author|since|suppress)\\\\b","name":"keyword.other.documentation.javadoc.kotlin"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@p(?:aram|roperty))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@param)\\\\[(\\\\S+)]"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"name":"variable.parameter.kotlin"}},"match":"\\\\{(@link)\\\\s+(\\\\S+)?#([$\\\\w]+\\\\s*\\\\([^()]*\\\\)).*}"}]}]},"comment-line":{"begin":"//","end":"$","name":"comment.line.double-slash.kotlin"},"comments":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#comment-javadoc"}]},"control-keywords":{"match":"\\\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\\\b","name":"keyword.control.kotlin"},"decimal-literal":{"match":"\\\\b\\\\d[_\\\\d]*(\\\\.[_\\\\d]+)?(([Ee])\\\\d+)?([Uu])?([FLf])?\\\\b","name":"constant.numeric.decimal.kotlin"},"function":{"captures":{"1":{"name":"keyword.hard.fun.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]},"4":{"name":"entity.name.type.class.extension.kotlin"},"5":{"name":"entity.name.function.declaration.kotlin"}},"match":"\\\\b(fun)\\\\b\\\\s*(?<([^<>]|\\\\g)+>)?\\\\s*(?:(?:(\\\\w+)\\\\.)?(\\\\b\\\\w+\\\\b|`[^`]+`))?"},"function-call":{"captures":{"1":{"name":"entity.name.function.call.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\??\\\\.?(\\\\b\\\\w+\\\\b|`[^`]+`)\\\\s*(?<([^<>]|\\\\g)+>)?\\\\s*(?=[({])"},"hard-keywords":{"match":"\\\\b(as|typeof|is|in)\\\\b","name":"keyword.hard.kotlin"},"hex-literal":{"match":"0([Xx])\\\\h[_\\\\h]*([Uu])?","name":"constant.numeric.hex.kotlin"},"import":{"begin":"\\\\b(import)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.soft.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.import.kotlin","patterns":[{"include":"#comments"},{"include":"#hard-keywords"},{"match":"\\\\*","name":"variable.language.wildcard.kotlin"}]},"key":{"captures":{"1":{"name":"variable.parameter.kotlin"},"2":{"name":"keyword.operator.assignment.kotlin"}},"match":"\\\\b(\\\\w=)\\\\s*(=)"},"keywords":{"patterns":[{"include":"#prefix-modifiers"},{"include":"#postfix-modifiers"},{"include":"#soft-keywords"},{"include":"#hard-keywords"},{"include":"#control-keywords"}]},"lambda-arrow":{"match":"->","name":"storage.type.function.arrow.kotlin"},"method-reference":{"captures":{"1":{"name":"entity.name.function.reference.kotlin"}},"match":"\\\\??::(\\\\b\\\\w+\\\\b|`[^`]+`)"},"null-literal":{"match":"\\\\bnull\\\\b","name":"constant.language.null.kotlin"},"object":{"captures":{"1":{"name":"keyword.hard.object.kotlin"},"2":{"name":"entity.name.type.object.kotlin"}},"match":"\\\\b(object)(?:\\\\s+(\\\\b\\\\w+\\\\b|`[^`]+`))?"},"operators":{"patterns":[{"match":"(===?|!==?|<=|>=|[<>])","name":"keyword.operator.comparison.kotlin"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.kotlin"},{"match":"(=)","name":"keyword.operator.assignment.kotlin"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.kotlin"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.kotlin"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.kotlin"},{"match":"(\\\\.\\\\.)","name":"keyword.operator.range.kotlin"}]},"package":{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.hard.package.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.package.kotlin","patterns":[{"include":"#comments"}]},"postfix-modifiers":{"match":"\\\\b(where|by|get|set)\\\\b","name":"storage.modifier.other.kotlin"},"prefix-modifiers":{"match":"\\\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\\\b","name":"storage.modifier.other.kotlin"},"self-reference":{"match":"\\\\b(this|super)(@\\\\w+)?\\\\b","name":"variable.language.this.kotlin"},"soft-keywords":{"match":"\\\\b(init|catch|finally|field)\\\\b","name":"keyword.soft.kotlin"},"string":{"begin":"(?<([^<>]|\\\\g)+>)?"},"type-annotation":{"captures":{"0":{"patterns":[{"include":"#type-parameter"}]}},"match":"(?|(?[(<]([^\\"\'()<>]|\\\\g)+[)>]))+"},"type-parameter":{"patterns":[{"match":"\\\\b\\\\w+\\\\b","name":"entity.name.type.kotlin"},{"match":"\\\\b(in|out)\\\\b","name":"storage.modifier.kotlin"}]},"unescaped-annotation":{"match":"\\\\b[.\\\\w]+\\\\b","name":"entity.name.type.annotation.kotlin"},"variable-declaration":{"captures":{"1":{"name":"keyword.hard.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(va[lr])\\\\b\\\\s*(?<([^<>]|\\\\g)+>)?"}},"scopeName":"source.kotlin","aliases":["kt","kts"]}'))];export{e as default}; diff --git a/docs/assets/kusto-BrShWROQ.js b/docs/assets/kusto-BrShWROQ.js new file mode 100644 index 0000000..c56704d --- /dev/null +++ b/docs/assets/kusto-BrShWROQ.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Kusto","fileTypes":["csl","kusto","kql"],"name":"kusto","patterns":[{"match":"\\\\b(by|from|of|to|step|with)\\\\b","name":"keyword.other.operator.kusto"},{"match":"\\\\b(let|set|alias|declare|pattern|query_parameters|restrict|access|set)\\\\b","name":"keyword.control.kusto"},{"match":"\\\\b(and|or|has_all|has_any|matches|regex)\\\\b","name":"keyword.other.operator.kusto"},{"captures":{"1":{"name":"support.function.kusto"},"2":{"patterns":[{"include":"#Strings"}]}},"match":"\\\\b(cluster|database)(?:\\\\s*\\\\(\\\\s*(.+?)\\\\s*\\\\))?(?!\\\\w)","name":"meta.special.database.kusto"},{"match":"\\\\b(external_table|materialized_view|materialize|table|toscalar)\\\\b","name":"support.function.kusto"},{"match":"(?(0,n.jsx)(N.label,{...r,ref:s,onMouseDown:e=>{var a;e.target.closest("button, input, select, textarea")||((a=r.onMouseDown)==null||a.call(r,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));d.displayName=v;var f=d,y=c(),D=w("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=i.forwardRef((r,s)=>{let e=(0,y.c)(9),a,o;e[0]===r?(a=e[1],o=e[2]):({className:a,...o}=r,e[0]=r,e[1]=a,e[2]=o);let t;e[3]===a?t=e[4]:(t=x(D(),a),e[3]=a,e[4]=t);let l;return e[5]!==o||e[6]!==s||e[7]!==t?(l=(0,n.jsx)(f,{ref:s,className:t,...o}),e[5]=o,e[6]=s,e[7]=t,e[8]=l):l=e[8],l});p.displayName=f.displayName;export{p as t}; diff --git a/docs/assets/laserwave-BSELFgc5.js b/docs/assets/laserwave-BSELFgc5.js new file mode 100644 index 0000000..af925e1 --- /dev/null +++ b/docs/assets/laserwave-BSELFgc5.js @@ -0,0 +1 @@ +var t=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#EB64B9","activityBar.background":"#27212e","activityBar.foreground":"#ddd","activityBarBadge.background":"#EB64B9","button.background":"#EB64B9","diffEditor.border":"#b4dce7","diffEditor.insertedTextBackground":"#74dfc423","diffEditor.removedTextBackground":"#eb64b940","editor.background":"#27212e","editor.findMatchBackground":"#40b4c48c","editor.findMatchHighlightBackground":"#40b4c460","editor.foreground":"#ffffff","editor.selectionBackground":"#eb64b927","editor.selectionHighlightBackground":"#eb64b927","editor.wordHighlightBackground":"#eb64b927","editorError.foreground":"#ff3e7b","editorGroupHeader.tabsBackground":"#242029","editorGutter.addedBackground":"#74dfc4","editorGutter.deletedBackground":"#eb64B9","editorGutter.modifiedBackground":"#40b4c4","editorSuggestWidget.border":"#b4dce7","focusBorder":"#EB64B9","gitDecoration.conflictingResourceForeground":"#EB64B9","gitDecoration.deletedResourceForeground":"#b381c5","gitDecoration.ignoredResourceForeground":"#92889d","gitDecoration.modifiedResourceForeground":"#74dfc4","gitDecoration.untrackedResourceForeground":"#40b4c4","input.background":"#3a3242","input.border":"#964c7b","inputOption.activeBorder":"#EB64B9","list.activeSelectionBackground":"#eb64b98f","list.activeSelectionForeground":"#eee","list.dropBackground":"#74dfc466","list.errorForeground":"#ff3e7b","list.focusBackground":"#eb64ba60","list.highlightForeground":"#eb64b9","list.hoverBackground":"#91889b80","list.hoverForeground":"#eee","list.inactiveSelectionBackground":"#eb64b98f","list.inactiveSelectionForeground":"#ddd","list.invalidItemForeground":"#fff","menu.background":"#27212e","merge.currentContentBackground":"#74dfc433","merge.currentHeaderBackground":"#74dfc4cc","merge.incomingContentBackground":"#40b4c433","merge.incomingHeaderBackground":"#40b4c4cc","notifications.background":"#3e3549","peekView.border":"#40b4c4","peekViewEditor.background":"#40b5c449","peekViewEditor.matchHighlightBackground":"#40b5c460","peekViewResult.matchHighlightBackground":"#27212e","peekViewResult.selectionBackground":"#40b4c43f","progressBar.background":"#40b4c4","sideBar.background":"#27212e","sideBar.foreground":"#ddd","sideBarSectionHeader.background":"#27212e","sideBarTitle.foreground":"#EB64B9","statusBar.background":"#EB64B9","statusBar.debuggingBackground":"#74dfc4","statusBar.foreground":"#27212e","statusBar.noFolderBackground":"#EB64B9","tab.activeBorder":"#EB64B9","tab.inactiveBackground":"#242029","terminal.ansiBlue":"#40b4c4","terminal.ansiCyan":"#b4dce7","terminal.ansiGreen":"#74dfc4","terminal.ansiMagenta":"#b381c5","terminal.ansiRed":"#EB64B9","terminal.ansiYellow":"#ffe261","titleBar.activeBackground":"#27212e","titleBar.inactiveBackground":"#27212e","tree.indentGuidesStroke":"#ffffff33"},"displayName":"LaserWave","name":"laserwave","tokenColors":[{"scope":["keyword.other","keyword.control","storage.type.class.js","keyword.control.module.js","storage.type.extends.js","variable.language.this.js","keyword.control.switch.js","keyword.control.loop.js","keyword.control.conditional.js","keyword.control.flow.js","keyword.operator.accessor.js","keyword.other.important.css","keyword.control.at-rule.media.scss","entity.name.tag.reference.scss","meta.class.python","storage.type.function.python","keyword.control.flow.python","storage.type.function.js","keyword.control.export.ts","keyword.control.flow.ts","keyword.control.from.ts","keyword.control.import.ts","storage.type.class.ts","keyword.control.loop.ts","keyword.control.ruby","keyword.control.module.ruby","keyword.control.class.ruby","keyword.other.special-method.ruby","keyword.control.def.ruby","markup.heading","keyword.other.import.java","keyword.other.package.java","storage.modifier.java","storage.modifier.extends.java","storage.modifier.implements.java","storage.modifier.cs","storage.modifier.js","storage.modifier.dart","keyword.declaration.dart","keyword.package.go","keyword.import.go","keyword.fsharp","variable.parameter.function-call.python"],"settings":{"foreground":"#40b4c4"}},{"scope":["binding.fsharp","support.function","meta.function-call","entity.name.function","support.function.misc.scss","meta.method.declaration.ts","entity.name.function.method.js"],"settings":{"foreground":"#EB64B9"}},{"scope":["string","string.quoted","string.unquoted","string.other.link.title.markdown"],"settings":{"foreground":"#b4dce7"}},{"scope":["constant.numeric"],"settings":{"foreground":"#b381c5"}},{"scope":["meta.brace","punctuation","punctuation.bracket","punctuation.section","punctuation.separator","punctuation.comma.dart","punctuation.terminator","punctuation.definition","punctuation.parenthesis","meta.delimiter.comma.js","meta.brace.curly.litobj.js","punctuation.definition.tag","puncatuation.other.comma.go","punctuation.section.embedded","punctuation.definition.string","punctuation.definition.tag.jsx","punctuation.definition.tag.end","punctuation.definition.markdown","punctuation.terminator.rule.css","punctuation.definition.block.ts","punctuation.definition.tag.html","punctuation.section.class.end.js","punctuation.definition.tag.begin","punctuation.squarebracket.open.cs","punctuation.separator.dict.python","punctuation.section.function.scss","punctuation.section.class.begin.js","punctuation.section.array.end.ruby","punctuation.separator.key-value.js","meta.method-call.with-arguments.js","punctuation.section.scope.end.ruby","punctuation.squarebracket.close.cs","punctuation.separator.key-value.css","punctuation.definition.constant.css","punctuation.section.array.begin.ruby","punctuation.section.scope.begin.ruby","punctuation.definition.string.end.js","punctuation.definition.parameters.ruby","punctuation.definition.string.begin.js","punctuation.section.class.begin.python","storage.modifier.array.bracket.square.c","punctuation.separator.parameters.python","punctuation.section.group.end.powershell","punctuation.definition.parameters.end.ts","punctuation.section.braces.end.powershell","punctuation.section.function.begin.python","punctuation.definition.parameters.begin.ts","punctuation.section.bracket.end.powershell","punctuation.section.group.begin.powershell","punctuation.section.braces.begin.powershell","punctuation.definition.parameters.end.python","punctuation.definition.typeparameters.end.cs","punctuation.section.bracket.begin.powershell","punctuation.definition.arguments.begin.python","punctuation.definition.parameters.begin.python","punctuation.definition.typeparameters.begin.cs","punctuation.section.block.begin.bracket.curly.c","punctuation.definition.map.begin.bracket.round.scss","punctuation.section.property-list.end.bracket.curly.css","punctuation.definition.parameters.end.bracket.round.java","punctuation.section.property-list.begin.bracket.curly.css","punctuation.definition.parameters.begin.bracket.round.java"],"settings":{"foreground":"#7b6995"}},{"scope":["keyword.operator","meta.decorator.ts","entity.name.type.ts","punctuation.dot.dart","keyword.symbol.fsharp","punctuation.accessor.ts","punctuation.accessor.cs","keyword.operator.logical","meta.tag.inline.any.html","punctuation.separator.java","keyword.operator.comparison","keyword.operator.arithmetic","keyword.operator.assignment","keyword.operator.ternary.js","keyword.operator.other.ruby","keyword.operator.logical.js","punctuation.other.period.go","keyword.operator.increment.ts","keyword.operator.increment.js","storage.type.function.arrow.js","storage.type.function.arrow.ts","keyword.operator.relational.js","keyword.operator.relational.ts","keyword.operator.arithmetic.js","keyword.operator.assignment.js","storage.type.function.arrow.tsx","keyword.operator.logical.python","punctuation.separator.period.java","punctuation.separator.method.ruby","keyword.operator.assignment.python","keyword.operator.arithmetic.python","keyword.operator.increment-decrement.java"],"settings":{"foreground":"#74dfc4"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#91889b"}},{"scope":["meta.tag.sgml","entity.name.tag","entity.name.tag.open.jsx","entity.name.tag.close.jsx","entity.name.tag.inline.any.html","entity.name.tag.structure.any.html"],"settings":{"foreground":"#74dfc4"}},{"scope":["variable.other.enummember","entity.other.attribute-name","entity.other.attribute-name.jsx","entity.other.attribute-name.html","entity.other.attribute-name.id.css","entity.other.attribute-name.id.html","entity.other.attribute-name.class.css"],"settings":{"foreground":"#EB64B9"}},{"scope":["variable.other.property","variable.parameter.fsharp","support.variable.property.js","support.type.property-name.css","support.type.property-name.json","support.variable.property.dom.js"],"settings":{"foreground":"#40b4c4"}},{"scope":["constant.language","constant.other.elm","constant.language.c","variable.language.dart","variable.language.this","support.class.builtin.js","support.constant.json.ts","support.class.console.ts","support.class.console.js","variable.language.this.js","variable.language.this.ts","entity.name.section.fsharp","support.type.object.dom.js","variable.other.constant.js","variable.language.self.ruby","variable.other.constant.ruby","support.type.object.console.js","constant.language.undefined.js","support.function.builtin.python","constant.language.boolean.true.js","constant.language.boolean.false.js","variable.language.special.self.python","support.constant.automatic.powershell"],"settings":{"foreground":"#ffe261"}},{"scope":["variable.other","variable.scss","meta.function-call.c","variable.parameter.ts","variable.parameter.dart","variable.other.class.js","variable.other.object.js","variable.other.object.ts","support.function.json.ts","variable.name.source.dart","variable.other.source.dart","variable.other.readwrite.js","variable.other.readwrite.ts","support.function.console.ts","entity.name.type.instance.js","meta.function-call.arguments","variable.other.property.dom.ts","support.variable.property.dom.ts","variable.other.readwrite.powershell"],"settings":{"foreground":"#fff"}},{"scope":["storage.type.annotation","punctuation.definition.annotation","support.function.attribute.fsharp"],"settings":{"foreground":"#74dfc4"}},{"scope":["entity.name.type","storage.type","keyword.var.go","keyword.type.go","keyword.type.js","storage.type.js","storage.type.ts","keyword.type.cs","keyword.const.go","keyword.struct.go","support.class.dart","storage.modifier.c","storage.modifier.ts","keyword.function.go","keyword.operator.new.ts","meta.type.annotation.ts","entity.name.type.fsharp","meta.type.annotation.tsx","storage.modifier.async.js","punctuation.definition.variable.ruby","punctuation.definition.constant.ruby"],"settings":{"foreground":"#a96bc0"}},{"scope":["markup.bold","markup.italic"],"settings":{"foreground":"#EB64B9"}},{"scope":["meta.object-literal.key.js","constant.other.object.key.js"],"settings":{"foreground":"#40b4c4"}},{"scope":[],"settings":{"foreground":"#ffb85b"}},{"scope":["meta.diff","meta.diff.header"],"settings":{"foreground":"#40b4c4"}},{"scope":["meta.diff.range.unified"],"settings":{"foreground":"#b381c5"}},{"scope":["markup.deleted","punctuation.definition.deleted.diff","punctuation.definition.from-file.diff","meta.diff.header.from-file"],"settings":{"foreground":"#eb64b9"}},{"scope":["markup.inserted","punctuation.definition.inserted.diff","punctuation.definition.to-file.diff","meta.diff.header.to-file"],"settings":{"foreground":"#74dfc4"}}],"type":"dark"}'));export{t as default}; diff --git a/docs/assets/latex-4Accjnw5.js b/docs/assets/latex-4Accjnw5.js new file mode 100644 index 0000000..09900c8 --- /dev/null +++ b/docs/assets/latex-4Accjnw5.js @@ -0,0 +1 @@ +import{t as e}from"./tex-_irDT5ET.js";var n=Object.freeze(JSON.parse('{"displayName":"LaTeX","name":"latex","patterns":[{"match":"(?<=\\\\\\\\(?:[@\\\\w]|[@\\\\w]{2}|[@\\\\w]{3}|[@\\\\w]{4}|[@\\\\w]{5}|[@\\\\w]{6}))\\\\s","name":"meta.space-after-command.latex"},{"begin":"((\\\\\\\\)(?:usepackage|documentclass))\\\\b(?=[\\\\[{])","beginCaptures":{"1":{"name":"keyword.control.preamble.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.preamble.latex","patterns":[{"include":"#multiline-optional-arg"},{"begin":"((?:\\\\G|(?<=]))\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"support.class.latex","end":"(})","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"$self"}]}]},{"begin":"((\\\\\\\\)in(?:clude|put))(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.include.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.include.latex","patterns":[{"include":"$self"}]},{"begin":"((\\\\\\\\)((?:sub){0,2}section|(?:sub)?paragraph|chapter|part|addpart|addchap|addsec|minisec|frametitle)\\\\*?)((?:\\\\[[^\\\\[]*?]){0,2})(\\\\{)","beginCaptures":{"1":{"name":"support.function.section.latex"},"2":{"name":"punctuation.definition.function.latex"},"4":{"patterns":[{"include":"#optional-arg-bracket"}]},"5":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"entity.name.section.latex","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.function.section.$3.latex","patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"(\\\\s*\\\\\\\\begin\\\\{songs}\\\\{.*})","captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"contentName":"meta.data.environment.songs.latex","end":"(\\\\\\\\end\\\\{songs}(?:\\\\s*\\\\n)?)","name":"meta.function.environment.songs.latex","patterns":[{"include":"text.tex.latex#songs-chords"}]},{"begin":"\\\\s*((\\\\\\\\)beginsong)(?=\\\\{)","captures":{"1":{"name":"support.function.be.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"},"4":{"name":"punctuation.definition.arguments.end.latex"}},"end":"((\\\\\\\\)endsong)(?:\\\\s*\\\\n)?","name":"meta.function.environment.song.latex","patterns":[{"include":"#multiline-arg-no-highlight"},{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=[]}]))\\\\s*","contentName":"meta.data.environment.song.latex","end":"\\\\s*(?=\\\\\\\\endsong)","patterns":[{"include":"text.tex.latex#songs-chords"}]}]},{"begin":"(?:^\\\\s*)?\\\\\\\\begin\\\\{(lstlisting|minted|pyglist)}(?=[\\\\[{])","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\\\\\end\\\\{\\\\1}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(asy(?:|mptote))(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.asy","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.asy"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(bash)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.shell","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.shell"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(c(?:|pp))(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.cpp.embedded.latex","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.cpp.embedded.latex"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(css)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.css","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.css"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(gnuplot)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.gnuplot","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.gnuplot"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(h(?:s|askell))(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.haskell","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.haskell"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(html)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"text.html","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"text.html.basic"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(java)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.java","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.java"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(j(?:l|ulia))(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.julia","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.julia"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(j(?:s|avascript))(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.js","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.js"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(lua)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.lua","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.lua"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(py|python|sage)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.python","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.python"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(r(?:b|uby))(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.ruby","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.ruby"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(rust)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.rust","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.rust"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(t(?:s|ypescript))(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.ts","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.ts"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(xml)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"text.xml","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"text.xml"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)(yaml)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"source.yaml","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:minted|lstlisting|pyglist)})","patterns":[{"include":"source.yaml"}]},{"begin":"(?:\\\\G|(?<=]))(\\\\{)([A-Za-z]*)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"meta.function.embedded.latex","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:lstlisting|minted|pyglist)})","name":"meta.embedded.block.generic.latex"}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{asy(?:|code)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{asy(?:|code)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.asymptote","end":"^\\\\s*(?=\\\\\\\\end\\\\{asy(?:|code)\\\\*?})","patterns":[{"include":"source.asymptote"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{cppcode\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{cppcode\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.cpp.embedded.latex","end":"^\\\\s*(?=\\\\\\\\end\\\\{cppcode\\\\*?})","patterns":[{"include":"source.cpp.embedded.latex"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{dot(?:2tex|code)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{dot(?:2tex|code)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.dot","end":"^\\\\s*(?=\\\\\\\\end\\\\{dot(?:2tex|code)\\\\*?})","patterns":[{"include":"source.dot"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{gnuplot\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{gnuplot\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.gnuplot","end":"^\\\\s*(?=\\\\\\\\end\\\\{gnuplot\\\\*?})","patterns":[{"include":"source.gnuplot"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{hscode\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{hscode\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.haskell","end":"^\\\\s*(?=\\\\\\\\end\\\\{hscode\\\\*?})","patterns":[{"include":"source.haskell"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{java(?:code|verbatim|block|concode|console|converbatim)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{java(?:code|verbatim|block|concode|console|converbatim)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.java","end":"^\\\\s*(?=\\\\\\\\end\\\\{java(?:code|verbatim|block|concode|console|converbatim)\\\\*?})","patterns":[{"include":"source.java"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{jl(?:code|verbatim|block|concode|console|converbatim)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{jl(?:code|verbatim|block|concode|console|converbatim)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.julia","end":"^\\\\s*(?=\\\\\\\\end\\\\{jl(?:code|verbatim|block|concode|console|converbatim)\\\\*?})","patterns":[{"include":"source.julia"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{julia(?:code|verbatim|block|concode|console|converbatim)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{julia(?:code|verbatim|block|concode|console|converbatim)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.julia","end":"^\\\\s*(?=\\\\\\\\end\\\\{julia(?:code|verbatim|block|concode|console|converbatim)\\\\*?})","patterns":[{"include":"source.julia"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{luacode\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{luacode\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.lua","end":"^\\\\s*(?=\\\\\\\\end\\\\{luacode\\\\*?})","patterns":[{"include":"source.lua"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{py(?:code|verbatim|block|concode|console|converbatim)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{py(?:code|verbatim|block|concode|console|converbatim)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.python","end":"^\\\\s*(?=\\\\\\\\end\\\\{py(?:code|verbatim|block|concode|console|converbatim)\\\\*?})","patterns":[{"include":"source.python"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{pylab(?:code|verbatim|block|concode|console|converbatim)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{pylab(?:code|verbatim|block|concode|console|converbatim)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.python","end":"^\\\\s*(?=\\\\\\\\end\\\\{pylab(?:code|verbatim|block|concode|console|converbatim)\\\\*?})","patterns":[{"include":"source.python"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|pythonq??|pythonrepl)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|pythonq??|pythonrepl)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.python","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:sageblock|sagesilent|sageverbatim|sageexample|sagecommandline|pythonq??|pythonrepl)\\\\*?})","patterns":[{"include":"source.python"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{scalacode\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{scalacode\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.scala","end":"^\\\\s*(?=\\\\\\\\end\\\\{scalacode\\\\*?})","patterns":[{"include":"source.scala"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{sympy(?:code|verbatim|block|concode|console|converbatim)\\\\*?}(?:\\\\[[-0-9A-Z_a-z]*])?(?=[\\\\[{]|\\\\s*$)","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\s*\\\\\\\\end\\\\{sympy(?:code|verbatim|block|concode|console|converbatim)\\\\*?}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}}},{"begin":"^(?=\\\\s*)","contentName":"source.python","end":"^\\\\s*(?=\\\\\\\\end\\\\{sympy(?:code|verbatim|block|concode|console|converbatim)\\\\*?})","patterns":[{"include":"source.python"}]}]},{"begin":"\\\\s*\\\\\\\\begin\\\\{((?:[A-Za-z]*code|lstlisting|minted|pyglist)\\\\*?)}(?:\\\\[.*])?(?:\\\\{.*})?","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"contentName":"meta.function.embedded.latex","end":"\\\\\\\\end\\\\{\\\\1}(?:\\\\s*\\\\n)?","name":"meta.embedded.block.generic.latex"},{"begin":"((?:^\\\\s*)?\\\\\\\\begin\\\\{((?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?))})(?:\\\\[[^]]*]){0,2}(?=\\\\{)","captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"(\\\\\\\\end\\\\{\\\\2})","patterns":[{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:asy(?:|mptote))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.asy","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.asy"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:bash)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.shell","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.shell"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:c(?:|pp))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.cpp.embedded.latex","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.cpp.embedded.latex"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:css)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.css","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.css"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:gnuplot)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.gnuplot","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.gnuplot"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:h(?:s|askell))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.haskell","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.haskell"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:html)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"text.html","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"text.html.basic"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:java)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.java","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.java"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:j(?:l|ulia))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.julia","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.julia"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:j(?:s|avascript))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.js","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.js"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:lua)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.lua","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.lua"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:py|python|sage)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.python","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.python"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:r(?:b|uby))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.ruby","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.ruby"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:rust)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.rust","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.rust"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:t(?:s|ypescript))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.ts","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.ts"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:xml)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"text.xml","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"text.xml"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:yaml)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"source.yaml","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"source.yaml"}]}]},{"begin":"\\\\G(\\\\{)(?:__|[a-z\\\\s]*)(?i:tikz(?:|picture))","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"text.tex.latex","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"include":"text.tex.latex"}]}]},{"begin":"\\\\G(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","patterns":[{"begin":"\\\\G","end":"(})\\\\s*$","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"},{"include":"$self"}]},{"begin":"^(\\\\s*)","contentName":"meta.function.embedded.latex","end":"^\\\\s*(?=\\\\\\\\end\\\\{(?:RobExt)?(?:CacheMeCode|PlaceholderPathFromCode\\\\*?|PlaceholderFromCode\\\\*?|SetPlaceholderCode\\\\*?)})","name":"meta.embedded.block.generic.latex"}]}]},{"begin":"(?:^\\\\s*)?\\\\\\\\begin\\\\{(terminal\\\\*?)}(?=[\\\\[{])","captures":{"0":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"end":"\\\\\\\\end\\\\{\\\\1}","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)([A-Za-z]*)(})","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"meta.function.embedded.latex","end":"^\\\\s*(?=\\\\\\\\end\\\\{terminal\\\\*?})","name":"meta.embedded.block.generic.latex"}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:asy(?:|mptote))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.asy","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.asy"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:bash)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.shell","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.shell"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:c(?:|pp))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.cpp.embedded.latex","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.cpp.embedded.latex"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:css)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.css","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.css"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:gnuplot)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.gnuplot","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.gnuplot"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:h(?:s|askell))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.haskell","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.haskell"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:html)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"text.html","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.html.basic"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:java)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.java","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.java"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:j(?:l|ulia))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.julia","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.julia"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:j(?:s|avascript))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.js"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:lua)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.lua","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.lua"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:py|python|sage)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.python","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.python"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:r(?:b|uby))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.ruby","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.ruby"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:rust)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.rust","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.rust"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:t(?:s|ypescript))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.ts"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:xml)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"text.xml","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.xml"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:yaml)\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.yaml","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.yaml"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=\\\\[(?i:tikz(?:|picture))\\\\b|\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"text.tex.latex","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex.latex"}]}]},{"begin":"((\\\\\\\\)cacheMeCode)(?=[\\\\[{])","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"}},"end":"(?<=})","patterns":[{"include":"text.tex.latex#multiline-optional-arg-no-highlight"},{"begin":"(?<=])(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"meta.embedded.block.generic.latex","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"text.tex#braces"}]}]},{"begin":"((\\\\\\\\)addplot)\\\\+?(\\\\[[^\\\\[]*])*\\\\s*(gnuplot)\\\\s*(\\\\[[^\\\\[]*])*\\\\s*(\\\\{)","captures":{"1":{"name":"support.function.be.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"patterns":[{"include":"#optional-arg-bracket"}]},"4":{"name":"variable.parameter.function.latex"},"5":{"patterns":[{"include":"#optional-arg-bracket"}]},"6":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"\\\\s*(};)","patterns":[{"begin":"%","beginCaptures":{"0":{"name":"punctuation.definition.comment.latex"}},"end":"$\\\\n?","name":"comment.line.percentage.latex"},{"include":"source.gnuplot"}]},{"begin":"(\\\\s*\\\\\\\\begin\\\\{((?:fboxv|boxedv|[Vv]|spv)erbatim\\\\*?)})","captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"contentName":"markup.raw.verbatim.latex","end":"(\\\\\\\\end\\\\{\\\\2})","name":"meta.function.verbatim.latex"},{"begin":"(\\\\s*\\\\\\\\begin\\\\{VerbatimOut}\\\\{[^}]*})","captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"contentName":"markup.raw.verbatim.latex","end":"(\\\\\\\\end\\\\{VerbatimOut})","name":"meta.function.verbatim.latex"},{"begin":"(\\\\s*\\\\\\\\begin\\\\{alltt})","captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"contentName":"markup.raw.verbatim.latex","end":"(\\\\\\\\end\\\\{alltt})","name":"meta.function.alltt.latex","patterns":[{"captures":{"1":{"name":"punctuation.definition.function.latex"}},"match":"(\\\\\\\\)[A-Za-z]+","name":"support.function.general.latex"}]},{"begin":"(\\\\s*\\\\\\\\begin\\\\{([Cc]omment)})","captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"contentName":"comment.line.percentage.latex","end":"(\\\\\\\\end\\\\{\\\\2})","name":"meta.function.verbatim.latex"},{"begin":"\\\\s*((\\\\\\\\)h(?:ref|yperref|yperimage))(?=[\\\\[{])","beginCaptures":{"1":{"name":"support.function.url.latex"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.function.hyperlink.latex","patterns":[{"include":"#multiline-optional-arg-no-highlight"},{"begin":"(?:\\\\G|(?<=]))(\\\\{)([^}]*)(})(?:\\\\{[^}]*}){2}?(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"markup.underline.link.latex"},"3":{"name":"punctuation.definition.arguments.end.latex"},"4":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"meta.variable.parameter.function.latex","end":"(?=})","patterns":[{"include":"$self"}]},{"begin":"(?:\\\\G|(?<=]))(?:(\\\\{)[^}]*(}))?(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.latex"},"2":{"name":"punctuation.definition.arguments.end.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"meta.variable.parameter.function.latex","end":"(?=})","patterns":[{"include":"$self"}]}]},{"captures":{"1":{"name":"support.function.url.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"},"4":{"name":"markup.underline.link.latex"},"5":{"name":"punctuation.definition.arguments.end.latex"}},"match":"\\\\s*((\\\\\\\\)(?:url|path))(\\\\{)([^}]*)(})","name":"meta.function.link.url.latex"},{"captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"match":"(\\\\s*\\\\\\\\begin\\\\{document})","name":"meta.function.begin-document.latex"},{"captures":{"1":{"patterns":[{"include":"#begin-env-tokenizer"}]}},"match":"(\\\\s*\\\\\\\\end\\\\{document})","name":"meta.function.end-document.latex"},{"begin":"\\\\s*((\\\\\\\\)begin)(\\\\{)((?:\\\\+?array|equation|(?:IEEE|sub)?eqnarray|multline|align|aligned|alignat|alignedat|flalign|flaligned|flalignat|split|gather|gathered|\\\\+?cases|(?:display)?math|\\\\+?[A-Za-z]*matrix|[BVbpv]?NiceMatrix|[BVbpv]?NiceArray|(?:arg)?m(?:ini|axi))[!*]?)(})(\\\\s*\\\\n)?","captures":{"1":{"name":"support.function.be.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"},"4":{"name":"variable.parameter.function.latex"},"5":{"name":"punctuation.definition.arguments.end.latex"}},"contentName":"meta.math.block.latex support.class.math.block.environment.latex","end":"\\\\s*((\\\\\\\\)end)(\\\\{)(\\\\4)(})(?:\\\\s*\\\\n)?","name":"meta.function.environment.math.latex","patterns":[{"match":"(?]*>)?((?:\\\\[[^]]*])*)(\\\\{)","captures":{"1":{"name":"keyword.control.cite.latex"},"2":{"name":"punctuation.definition.keyword.latex"},"3":{"patterns":[{"include":"#autocites-arg"}]},"4":{"patterns":[{"include":"#optional-arg-angle-no-highlight"}]},"5":{"patterns":[{"include":"#optional-arg-bracket-no-highlight"}]},"6":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.citation.latex","patterns":[{"captures":{"1":{"name":"comment.line.percentage.tex"},"2":{"name":"punctuation.definition.comment.tex"}},"match":"((%).*)$"},{"match":"[-.:\\\\p{Alphabetic}\\\\p{N}]+","name":"constant.other.reference.citation.latex"}]},{"begin":"((\\\\\\\\)bibentry)(\\\\{)","captures":{"1":{"name":"keyword.control.cite.latex"},"2":{"name":"punctuation.definition.keyword.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.citation.latex","patterns":[{"match":"[.:\\\\p{Alphabetic}\\\\p{N}]+","name":"constant.other.reference.citation.latex"}]},{"begin":"((\\\\\\\\)\\\\w*[Rr]ef\\\\*?)(?:\\\\[[^]]*])?(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.ref.latex"},"2":{"name":"punctuation.definition.keyword.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.reference.label.latex","patterns":[{"match":"[!*,-/:^_\\\\p{Alphabetic}\\\\p{N}]+","name":"constant.other.reference.label.latex"}]},{"captures":{"1":{"name":"keyword.control.ref.latex"},"2":{"name":"punctuation.definition.keyword.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"},"4":{"name":"constant.other.reference.label.latex"},"5":{"name":"punctuation.definition.arguments.end.latex"},"6":{"name":"punctuation.definition.arguments.begin.latex"},"7":{"name":"constant.other.reference.label.latex"},"8":{"name":"punctuation.definition.arguments.end.latex"}},"match":"((\\\\\\\\)\\\\w*[Rr]efrange\\\\*?)(?:\\\\[[^]]*])?(\\\\{)([!*,-/:^_\\\\p{Alphabetic}\\\\p{N}]+)(})(\\\\{)([!*,-/:^_\\\\p{Alphabetic}\\\\p{N}]+)(})"},{"include":"#definition-label"},{"begin":"((\\\\\\\\)(?:[Vv]|spv)erb\\\\*?)\\\\s*((\\\\\\\\)scantokens)(\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"support.function.verb.latex"},"4":{"name":"punctuation.definition.verb.latex"},"5":{"name":"punctuation.definition.begin.latex"}},"contentName":"markup.raw.verb.latex","end":"(})","endCaptures":{"1":{"name":"punctuation.definition.end.latex"}},"name":"meta.function.verb.latex","patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"punctuation.definition.verb.latex"},"4":{"name":"markup.raw.verb.latex"},"5":{"name":"punctuation.definition.verb.latex"}},"match":"((\\\\\\\\)(?:[Vv]|spv)erb\\\\*?)\\\\s*((?<=\\\\s)\\\\S|[^A-Za-z])(.*?)(\\\\3|$)","name":"meta.function.verb.latex"},{"captures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"patterns":[{"include":"#optional-arg-bracket"}]},"4":{"name":"punctuation.definition.arguments.begin.latex"},"5":{"name":"punctuation.definition.arguments.end.latex"},"6":{"name":"punctuation.definition.verb.latex"},"7":{"name":"markup.raw.verb.latex"},"8":{"name":"punctuation.definition.verb.latex"},"9":{"name":"punctuation.definition.verb.latex"},"10":{"name":"markup.raw.verb.latex"},"11":{"name":"punctuation.definition.verb.latex"}},"match":"((\\\\\\\\)mint(?:|inline))((?:\\\\[[^\\\\[]*?])?)(\\\\{)[A-Za-z]*(})(?:([^A-Za-{])(.*?)(\\\\6)|(\\\\{)(.*?)(}))","name":"meta.function.verb.latex"},{"captures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"patterns":[{"include":"#optional-arg-bracket"}]},"4":{"name":"punctuation.definition.verb.latex"},"5":{"name":"markup.raw.verb.latex"},"6":{"name":"punctuation.definition.verb.latex"},"7":{"name":"punctuation.definition.verb.latex"},"8":{"name":"markup.raw.verb.latex"},"9":{"name":"punctuation.definition.verb.latex"}},"match":"((\\\\\\\\)[a-z]+inline)((?:\\\\[[^\\\\[]*?])?)(?:([^A-Za-{])(.*?)(\\\\4)|(\\\\{)(.*?)(}))","name":"meta.function.verb.latex"},{"captures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"patterns":[{"include":"#optional-arg-bracket"}]},"4":{"name":"punctuation.definition.verb.latex"},"5":{"name":"source.python","patterns":[{"include":"source.python"}]},"6":{"name":"punctuation.definition.verb.latex"},"7":{"name":"punctuation.definition.verb.latex"},"8":{"name":"source.python","patterns":[{"include":"source.python"}]},"9":{"name":"punctuation.definition.verb.latex"}},"match":"((\\\\\\\\)(?:(?:py|pycon|pylab|pylabcon|sympy|sympycon)[cv]?|pyq|pycq|pyif))((?:\\\\[[^\\\\[]*?])?)(?:([^A-Za-{])(.*?)(\\\\4)|(\\\\{)(.*?)(}))","name":"meta.function.verb.latex"},{"captures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"patterns":[{"include":"#optional-arg-bracket"}]},"4":{"name":"punctuation.definition.verb.latex"},"5":{"name":"source.julia","patterns":[{"include":"source.julia"}]},"6":{"name":"punctuation.definition.verb.latex"},"7":{"name":"punctuation.definition.verb.latex"},"8":{"name":"source.julia","patterns":[{"include":"source.julia"}]},"9":{"name":"punctuation.definition.verb.latex"}},"match":"((\\\\\\\\)j(?:l|ulia)[cv]?)((?:\\\\[[^\\\\[]*?])?)(?:([^A-Za-{])(.*?)(\\\\4)|(\\\\{)(.*?)(}))","name":"meta.function.verb.latex"},{"begin":"((\\\\\\\\)(?:directlua|luadirect|luaexec))(\\\\{)","beginCaptures":{"1":{"name":"support.function.verb.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"}},"contentName":"source.lua","end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"patterns":[{"include":"source.lua"}]},{"match":"\\\\\\\\(?:newline|pagebreak|clearpage|linebreak|pause)\\\\b","name":"keyword.control.layout.latex"},{"begin":"\\\\\\\\\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.latex"}},"end":"\\\\\\\\\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.latex"}},"name":"meta.math.block.latex support.class.math.block.environment.latex","patterns":[{"include":"text.tex#math-content"},{"include":"$self"}]},{"begin":"\\\\$\\\\$","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.latex"}},"end":"\\\\$\\\\$","endCaptures":{"0":{"name":"punctuation.definition.string.end.latex"}},"name":"meta.math.block.latex support.class.math.block.environment.latex","patterns":[{"match":"\\\\\\\\\\\\$","name":"constant.character.escape.latex"},{"include":"text.tex#math-content"},{"include":"$self"}]},{"begin":"\\\\$","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tex"}},"end":"\\\\$","endCaptures":{"0":{"name":"punctuation.definition.string.end.tex"}},"name":"meta.math.block.tex support.class.math.block.tex","patterns":[{"match":"\\\\\\\\\\\\$","name":"constant.character.escape.latex"},{"include":"text.tex#math-content"},{"include":"$self"}]},{"begin":"\\\\\\\\\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.latex"}},"end":"\\\\\\\\]","endCaptures":{"0":{"name":"punctuation.definition.string.end.latex"}},"name":"meta.math.block.latex support.class.math.block.environment.latex","patterns":[{"include":"text.tex#math-content"},{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.constant.latex"}},"match":"(\\\\\\\\)(text(s(terling|ixoldstyle|urd|e(ction|venoldstyle|rvicemark))|yen|n(ineoldstyle|umero|aira)|c(ircledP|o(py(left|right)|lonmonetary)|urrency|e(nt(oldstyle)?|lsius))|t(hree(superior|oldstyle|quarters(emdash)?)|i(ldelow|mes)|w(o(superior|oldstyle)|elveudash)|rademark)|interrobang(down)?|zerooldstyle|o(hm|ne(superior|half|oldstyle|quarter)|penbullet|rd((?:femin|mascul)ine))|d(i(scount|ed|v(orced)?)|o(ng|wnarrow|llar(oldstyle)?)|egree|agger(dbl)?|blhyphen(char)?)|uparrow|p(ilcrow|e(so|r(t((?:|ent)housand)|iodcentered))|aragraph|m)|e(stimated|ightoldstyle|uro)|quotes(traight((?:dbl|)base)|ingle)|f(iveoldstyle|ouroldstyle|lorin|ractionsolidus)|won|l(not|ira|e(ftarrow|af)|quill|angle|brackdbl)|a(s(cii(caron|dieresis|acute|grave|macron|breve)|teriskcentered)|cutedbl)|r(ightarrow|e(cipe|ferencemark|gistered)|quill|angle|brackdbl)|g(uarani|ravedbl)|m(ho|inus|u(sicalnote)?|arried)|b(igcircle|orn|ullet|lank|a(ht|rdbl)|rokenbar)))\\\\b","name":"constant.character.latex"},{"captures":{"1":{"name":"punctuation.definition.variable.latex"}},"match":"(\\\\\\\\)(?:[cgl]_+[@_\\\\p{Alphabetic}]+_[a-z]+|[qs]_[@_\\\\p{Alphabetic}]+[@\\\\p{Alphabetic}])","name":"variable.other.latex3.latex"},{"captures":{"1":{"name":"punctuation.definition.column-specials.begin.latex"},"2":{"name":"punctuation.definition.column-specials.end.latex"}},"match":"[<>](\\\\{)\\\\$(})","name":"meta.column-specials.latex"},{"include":"text.tex"}],"repository":{"autocites-arg":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#optional-arg-parenthesis-no-highlight"}]},"2":{"patterns":[{"include":"#optional-arg-bracket-no-highlight"}]},"3":{"name":"punctuation.definition.arguments.begin.latex"},"4":{"name":"constant.other.reference.citation.latex"},"5":{"name":"punctuation.definition.arguments.end.latex"},"6":{"patterns":[{"include":"#autocites-arg"}]}},"match":"((?:\\\\([^)]*\\\\)){0,2})((?:\\\\[[^]]*]){0,2})(\\\\{)([-.:_\\\\p{Alphabetic}\\\\p{N}]+)(})(.*)"}]},"begin-env-tokenizer":{"captures":{"1":{"name":"support.function.be.latex"},"2":{"name":"punctuation.definition.function.latex"},"3":{"name":"punctuation.definition.arguments.begin.latex"},"4":{"name":"variable.parameter.function.latex"},"5":{"name":"punctuation.definition.arguments.end.latex"},"6":{"name":"punctuation.definition.arguments.optional.begin.latex"},"7":{"patterns":[{"include":"$self"}]},"8":{"name":"punctuation.definition.arguments.optional.end.latex"},"9":{"name":"punctuation.definition.arguments.begin.latex"},"10":{"name":"variable.parameter.function.latex"},"11":{"name":"punctuation.definition.arguments.end.latex"}},"match":"\\\\s*((\\\\\\\\)(?:begin|end))(\\\\{)(\\\\p{Alphabetic}+\\\\*?)(})(?:(\\\\[)([^]]*)(])){0,2}(?:(\\\\{)([^{}]*)(}))?"},"definition-label":{"begin":"((\\\\\\\\)z?label)((?:\\\\[[^\\\\[]*?])*)(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.label.latex"},"2":{"name":"punctuation.definition.keyword.latex"},"3":{"patterns":[{"include":"#optional-arg-bracket"}]},"4":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.definition.label.latex","patterns":[{"match":"[!*,-/:^_\\\\p{Alphabetic}\\\\p{N}]+","name":"variable.parameter.definition.label.latex"}]},"multiline-arg-no-highlight":{"begin":"\\\\G\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.latex"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.latex"}},"name":"meta.parameter.latex","patterns":[{"include":"$self"}]},"multiline-optional-arg":{"begin":"\\\\G\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.arguments.optional.begin.latex"}},"contentName":"variable.parameter.function.latex","end":"]","endCaptures":{"0":{"name":"punctuation.definition.arguments.optional.end.latex"}},"name":"meta.parameter.optional.latex","patterns":[{"include":"$self"}]},"multiline-optional-arg-no-highlight":{"begin":"(?:\\\\G|(?<=}))\\\\s*\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.arguments.optional.begin.latex"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.arguments.optional.end.latex"}},"name":"meta.parameter.optional.latex","patterns":[{"include":"$self"}]},"optional-arg-angle-no-highlight":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.arguments.optional.begin.latex"},"2":{"name":"punctuation.definition.arguments.optional.end.latex"}},"match":"(<)[^<]*?(>)","name":"meta.parameter.optional.latex"}]},"optional-arg-bracket":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.arguments.optional.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.optional.end.latex"}},"match":"(\\\\[)([^\\\\[]*?)(])","name":"meta.parameter.optional.latex"}]},"optional-arg-bracket-no-highlight":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.arguments.optional.begin.latex"},"2":{"name":"punctuation.definition.arguments.optional.end.latex"}},"match":"(\\\\[)[^\\\\[]*?(])","name":"meta.parameter.optional.latex"}]},"optional-arg-parenthesis":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.arguments.optional.begin.latex"},"2":{"name":"variable.parameter.function.latex"},"3":{"name":"punctuation.definition.arguments.optional.end.latex"}},"match":"(\\\\()([^(]*?)(\\\\))","name":"meta.parameter.optional.latex"}]},"optional-arg-parenthesis-no-highlight":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.arguments.optional.begin.latex"},"2":{"name":"punctuation.definition.arguments.optional.end.latex"}},"match":"(\\\\()[^(]*?(\\\\))","name":"meta.parameter.optional.latex"}]},"songs-chords":{"patterns":[{"begin":"\\\\\\\\\\\\[","end":"]","name":"meta.chord.block.latex support.class.chord.block.environment.latex","patterns":[{"include":"$self"}]},{"match":"\\\\^","name":"meta.chord.block.latex support.class.chord.block.environment.latex"},{"include":"$self"}]}},"scopeName":"text.tex.latex","embeddedLangs":["tex"],"embeddedLangsLazy":["shellscript","css","gnuplot","haskell","html","java","julia","javascript","lua","python","ruby","rust","typescript","xml","yaml","scala"]}')),t=[...e,n];export{t as default}; diff --git a/docs/assets/layout-BjXzDXoG.css b/docs/assets/layout-BjXzDXoG.css new file mode 100644 index 0000000..a09867e --- /dev/null +++ b/docs/assets/layout-BjXzDXoG.css @@ -0,0 +1 @@ +.react-grid-layout{transition:height .2s;position:relative}.react-grid-item{transition:left .2s,top .2s,width .2s,height .2s}.react-grid-item img{pointer-events:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{will-change:width,height;z-index:1;transition:none}.react-grid-item.react-draggable-dragging{will-change:transform;z-index:3;transition:none}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{opacity:.2;user-select:none;-o-user-select:none;z-index:2;background:red;transition-duration:.1s}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{width:20px;height:20px;position:absolute}.react-grid-item>.react-resizable-handle:after{content:"";border-bottom:2px solid #0006;border-right:2px solid #0006;width:5px;height:5px;position:absolute;bottom:3px;right:3px}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{cursor:sw-resize;bottom:0;left:0;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{cursor:se-resize;bottom:0;right:0}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{cursor:nw-resize;top:0;left:0;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{cursor:ne-resize;top:0;right:0;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e,.react-grid-item>.react-resizable-handle.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{cursor:ns-resize;margin-left:-10px;left:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-grid-item.react-grid-placeholder{background-color:var(--grass-9)}.react-resizable-handle{visibility:hidden}.react-grid-item:hover .react-resizable-handle{visibility:visible}.dark .react-grid-item>.react-resizable-handle:after{border-bottom:2px solid #ffffff80;border-right:2px solid #ffffff80}.disable-animation .react-grid-item{transition:none!important}.react-grid-item .output img{object-fit:contain;height:100%}#App.grid-bordered{background-color:var(--slate-1)}.debugger-input .cm-gutterElement.cm-activeLineGutter{background-color:#bdc8d2} diff --git a/docs/assets/layout-CBI2c778.js b/docs/assets/layout-CBI2c778.js new file mode 100644 index 0000000..8bd41c6 --- /dev/null +++ b/docs/assets/layout-CBI2c778.js @@ -0,0 +1,5 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./slides-component-HNyCCgoE.js","./button-B8cGZzP5.js","./hotkeys-uKX61F1_.js","./useEventListener-COkmyg1v.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./cn-C1rgT0yh.js","./clsx-D0MtrJOx.js","./jsx-runtime-DN_bIXfG.js","./useIframeCapabilities-CU-WWxnz.js","./capabilities-BmAOeMOK.js","./once-CTiSlR1m.js","./invariant-C6yE60hi.js","./slides-component-vtdQFHpk.css"])))=>i.map(i=>d[i]); +var An=Object.defineProperty;var qn=(xt,wt,Ot)=>wt in xt?An(xt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):xt[wt]=Ot;var or=(xt,wt,Ot)=>qn(xt,typeof wt!="symbol"?wt+"":wt,Ot);import{a as Bn,n as $n,r as Fn,s as ar,t as ot}from"./chunk-LvLJmgfZ.js";import{i as Gn,l as Xn,u as se}from"./useEvent-DlWF5OMa.js";import{t as gt}from"./react-BGmjiNul.js";import{Cr as Yn,Vn,X as Un,Y as le,Zr as Kn,_n as Zn,ai as Jn,bt as Qn,et as to,jt as ir,m as eo,zt as ro,__tla as no}from"./cells-CmJW_FeD.js";import{t as ue}from"./react-dom-C9fstfnp.js";import{C as oo,N as _t,P as ce,T as sr,b as ao,w as io,z as so}from"./zod-Cg4WLWh2.js";import{t as St}from"./compiler-runtime-DeeZ7FnK.js";import{t as lo}from"./useLifecycle-CmDXEyIC.js";import{a as uo}from"./type-BdyvjzTI.js";import{a as co,d as lr}from"./hotkeys-uKX61F1_.js";import{t as po}from"./invariant-C6yE60hi.js";import{y as fo}from"./utils-Czt8B2GX.js";import{r as ur,t as cr}from"./constants-Bkp4R3bQ.js";import{j as ho}from"./config-CENq_7Pd.js";import{l as mo,t as de}from"./switch-C5jvDmuG.js";import{t as go}from"./ErrorBoundary-C7JBxSzd.js";import{t as yo}from"./jsx-runtime-DN_bIXfG.js";import{t as Rt}from"./button-B8cGZzP5.js";import{t as ct}from"./cn-C1rgT0yh.js";import{at as bo}from"./dist-CAcX026F.js";import{Q as vo,X as wo,Y as pe,n as Gt,r as xo,__tla as So}from"./JsonOutput-DlwRx3jE.js";import{p as Oo}from"./once-CTiSlR1m.js";import{t as jo}from"./createReducer-DDa-hVe3.js";import{r as Do,t as _o}from"./requests-C0HaHO6a.js";import{t as Pt}from"./createLucideIcon-CW2xpJ57.js";import{t as dr}from"./check-CrAQug3q.js";import{h as Po}from"./select-D9lTzMzP.js";import{a as Co,c as pr,n as fr}from"./download-C_slsU-7.js";import{t as zo}from"./chevron-right-CqEd11Di.js";import{n as Ro,t as hr}from"./maps-s2pQkyf5.js";import{l as Eo}from"./markdown-renderer-DjqhqmES.js";import{u as ko}from"./toDate-5JckKRQn.js";import{a as Et,c as mr,p as fe,r as he,t as me}from"./dropdown-menu-BP4_BZLr.js";import{t as Mo}from"./code-xml-MBUyxNtK.js";import{t as No}from"./ellipsis-DwHM80y-.js";import{n as To,t as Ho}from"./play-BJDBXApx.js";import{n as Lo,t as Wo}from"./readonly-python-code-Dr5fAkba.js";import{n as Io}from"./MarimoErrorOutput-DAK6volb.js";import{M as Ao,N as qo,X as Bo,Y as $o,ct as Fo,o as ge,r as Go,rt as Xo,x as Yo}from"./input-Bkl2Yfmh.js";import{t as Vo}from"./trash-BUTJdkWl.js";import{t as Uo}from"./preload-helper-BW0IMuFq.js";import{t as kt}from"./tooltip-CvjcEpZC.js";import{r as Ko}from"./mode-CXc0VeQq.js";import{F as Zo,O as gr}from"./usePress-C2LPFxyv.js";import{t as Jo}from"./SelectionIndicator-BtLUNjRz.js";import{t as Qo}from"./copy-icon-jWsqdLn1.js";import{t as jt}from"./prop-types-C638SUfx.js";import{n as ta,r as ea,t as ra}from"./alert-BEdExd6A.js";import{t as Tt}from"./label-CqyOmxjL.js";import{t as na}from"./process-output-DN66BQYe.js";import{t as oa}from"./esm-D2_Kx6xF.js";import{t as aa}from"./floating-outline-DqdzWKrn.js";import{r as ia,t as sa}from"./name-cell-input-Dc5Oz84d.js";import{t as la}from"./esm-BranOiPJ.js";let yr,ye,be,ve,br,Xt,we,xe,Yt,Se,Vt,vr,wr,Oe,ua=Promise.all([(()=>{try{return no}catch{}})(),(()=>{try{return So}catch{}})()]).then(async()=>{let xt,wt,Ot,je,De;xt=Pt("align-end-vertical",[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]]),wt=Pt("align-horizontal-space-around",[["rect",{width:"6",height:"10",x:"9",y:"7",rx:"2",key:"yn7j0q"}],["path",{d:"M4 22V2",key:"tsjzd3"}],["path",{d:"M20 22V2",key:"1bnhr8"}]]),Ot=Pt("align-start-vertical",[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]]),we=Pt("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]),Se=Pt("folder-down",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m15 13-3 3-3-3",key:"6j2sf0"}]]),je=Pt("scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),De=Pt("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]]);function _e(r,t,e){let{isSelected:s}=t,{isPressed:u,buttonProps:y}=Yo({...r,onPress:Zo(t.toggle,r.onPress)},e);return{isPressed:u,isSelected:s,isDisabled:r.isDisabled||!1,buttonProps:gr(y,{"aria-pressed":s})}}function Sr(r,t,e){let s={isSelected:t.selectedKeys.has(r.id),defaultSelected:!1,setSelected(x){t.setSelected(r.id,x)},toggle(){t.toggleKey(r.id)}},{isPressed:u,isSelected:y,isDisabled:f,buttonProps:h}=_e({...r,id:void 0,isDisabled:r.isDisabled||t.isDisabled},s,e);return t.selectionMode==="single"&&(h.role="radio",h["aria-checked"]=s.isSelected,delete h["aria-pressed"]),{isPressed:u,isSelected:y,isDisabled:f,buttonProps:h}}var Q=ar(gt(),1);function Or(r={}){let{isReadOnly:t}=r,[e,s]=Xo(r.isSelected,r.defaultSelected||!1,r.onChange),[u]=(0,Q.useState)(e);function y(h){t||s(h)}function f(){t||s(!e)}return{isSelected:e,defaultSelected:r.defaultSelected??u,setSelected:y,toggle:f}}let Pe,Ce,ze,Re;Pe=(0,Q.createContext)(null),Ce=(0,Q.createContext)({}),ze=(0,Q.forwardRef)(function(r,t){[r,t]=$o(r,t,Ce);let e=(0,Q.useContext)(Pe),s=Or(e&&r.id!=null?{isSelected:e.selectedKeys.has(r.id),onChange(C){e.setSelected(r.id,C)}}:r),{buttonProps:u,isPressed:y,isSelected:f,isDisabled:h}=e&&r.id!=null?Sr({...r,id:r.id},e,t):_e({...r,id:r.id==null?void 0:String(r.id)},s,t),{focusProps:x,isFocused:S,isFocusVisible:O}=Ao(r),{hoverProps:z,isHovered:w}=qo(r),j=Bo({...r,id:void 0,values:{isHovered:w,isPressed:y,isFocused:S,isSelected:s.isSelected,isFocusVisible:O,isDisabled:h,state:s},defaultClassName:"react-aria-ToggleButton"}),R=Fo(r,{global:!0});return delete R.id,delete R.onClick,Q.createElement("button",{...gr(R,j,u,x,z),ref:t,slot:r.slot||void 0,"data-focused":S||void 0,"data-disabled":h||void 0,"data-pressed":y||void 0,"data-selected":f||void 0,"data-hovered":w||void 0,"data-focus-visible":O||void 0},Q.createElement(Jo.Provider,{value:{isSelected:f}},j.children))}),Re=/\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g,ve=class xr{constructor(){or(this,"virtualFiles",new Map)}static get INSTANCE(){let t="_marimo_private_VirtualFileTracker";return window[t]||(window[t]=new xr),window[t]}track(t){let e=t.output,s=t.cell_id;if(e)switch(e.mimetype){case"application/json":case"text/html":{let u=this.virtualFiles.get(s),y=jr(e.data);u==null||u.forEach(f=>y.add(f)),this.virtualFiles.set(s,y);return}default:return}}filenames(){let t=new Set;for(let e of this.virtualFiles.values())e.forEach(s=>t.add(s));return[...t]}removeForCellId(t){this.virtualFiles.delete(t)}};function jr(r){if(!r)return new Set;let t=new Set,e=(typeof r=="string"?r:JSON.stringify(r)).match(Re);if(e)for(let s of e)t.add(s);return t}var Ut=ot(((r,t)=>{(function(e,s){typeof r=="object"&&t!==void 0?s(r):typeof define=="function"&&define.amd?define(["exports"],s):(e=typeof globalThis<"u"?globalThis:e||self,s(e["fast-equals"]={}))})(r,(function(e){function s(I){return function(B,Z,v,g,D,k,q){return I(B,Z,q)}}function u(I){return function(B,Z,v,g){if(!B||!Z||typeof B!="object"||typeof Z!="object")return I(B,Z,v,g);var D=g.get(B),k=g.get(Z);if(D&&k)return D===Z&&k===B;g.set(B,Z),g.set(Z,B);var q=I(B,Z,v,g);return g.delete(B),g.delete(Z),q}}function y(I,B){var Z={};for(var v in I)Z[v]=I[v];for(var v in B)Z[v]=B[v];return Z}function f(I){return I.constructor===Object||I.constructor==null}function h(I){return typeof I.then=="function"}function x(I,B){return I===B||I!==I&&B!==B}var S="[object Arguments]",O="[object Boolean]",z="[object Date]",w="[object RegExp]",j="[object Map]",R="[object Number]",C="[object Object]",m="[object Set]",c="[object String]",n=Object.prototype.toString;function o(I){var B=I.areArraysEqual,Z=I.areDatesEqual,v=I.areMapsEqual,g=I.areObjectsEqual,D=I.areRegExpsEqual,k=I.areSetsEqual,q=I.createIsNestedEqual,H=q(F);function F($,X,tt){if($===X)return!0;if(!$||!X||typeof $!="object"||typeof X!="object")return $!==$&&X!==X;if(f($)&&f(X))return g($,X,H,tt);var it=Array.isArray($),st=Array.isArray(X);if(it||st)return it===st&&B($,X,H,tt);var K=n.call($);return K===n.call(X)?K===z?Z($,X,H,tt):K===w?D($,X,H,tt):K===j?v($,X,H,tt):K===m?k($,X,H,tt):K===C||K===S?h($)||h(X)?!1:g($,X,H,tt):K===O||K===R||K===c?x($.valueOf(),X.valueOf()):!1:!1}return F}function i(I,B,Z,v){var g=I.length;if(B.length!==g)return!1;for(;g-- >0;)if(!Z(I[g],B[g],g,g,I,B,v))return!1;return!0}var a=u(i);function l(I,B){return x(I.valueOf(),B.valueOf())}function b(I,B,Z,v){var g=I.size===B.size;if(!g)return!1;if(!I.size)return!0;var D={},k=0;return I.forEach(function(q,H){if(g){var F=!1,$=0;B.forEach(function(X,tt){!F&&!D[$]&&(F=Z(H,tt,k,$,I,B,v)&&Z(q,X,H,tt,I,B,v))&&(D[$]=!0),$++}),k++,g=F}}),g}var d=u(b),p="_owner",_=Object.prototype.hasOwnProperty;function E(I,B,Z,v){var g=Object.keys(I),D=g.length;if(Object.keys(B).length!==D)return!1;for(var k;D-- >0;){if(k=g[D],k===p){var q=!!I.$$typeof,H=!!B.$$typeof;if((q||H)&&q!==H)return!1}if(!_.call(B,k)||!Z(I[k],B[k],k,k,I,B,v))return!1}return!0}var M=u(E);function N(I,B){return I.source===B.source&&I.flags===B.flags}function T(I,B,Z,v){var g=I.size===B.size;if(!g)return!1;if(!I.size)return!0;var D={};return I.forEach(function(k,q){if(g){var H=!1,F=0;B.forEach(function($,X){!H&&!D[F]&&(H=Z(k,$,q,X,I,B,v))&&(D[F]=!0),F++}),g=H}}),g}var A=u(T),W=Object.freeze({areArraysEqual:i,areDatesEqual:l,areMapsEqual:b,areObjectsEqual:E,areRegExpsEqual:N,areSetsEqual:T,createIsNestedEqual:s}),L=Object.freeze({areArraysEqual:a,areDatesEqual:l,areMapsEqual:d,areObjectsEqual:M,areRegExpsEqual:N,areSetsEqual:A,createIsNestedEqual:s}),G=o(W);function Y(I,B){return G(I,B,void 0)}var V=o(y(W,{createIsNestedEqual:function(){return x}}));function J(I,B){return V(I,B,void 0)}var U=o(L);function nt(I,B){return U(I,B,new WeakMap)}var at=o(y(L,{createIsNestedEqual:function(){return x}}));function dt(I,B){return at(I,B,new WeakMap)}function yt(I){return o(y(W,I(W)))}function bt(I){var B=o(y(L,I(L)));return(function(Z,v,g){return g===void 0&&(g=new WeakMap),B(Z,v,g)})}e.circularDeepEqual=nt,e.circularShallowEqual=dt,e.createCustomCircularEqual=bt,e.createCustomEqual=yt,e.deepEqual=Y,e.sameValueZeroEqual=x,e.shallowEqual=J,Object.defineProperty(e,"__esModule",{value:!0})}))})),Ht=ot(((r,t)=>{function e(u){var y,f,h="";if(typeof u=="string"||typeof u=="number")h+=u;else if(typeof u=="object")if(Array.isArray(u)){var x=u.length;for(y=0;y{t.exports=function(e,s,u){return e===s?!0:e.className===s.className&&u(e.style,s.style)&&e.width===s.width&&e.autoSize===s.autoSize&&e.cols===s.cols&&e.draggableCancel===s.draggableCancel&&e.draggableHandle===s.draggableHandle&&u(e.verticalCompact,s.verticalCompact)&&u(e.compactType,s.compactType)&&u(e.layout,s.layout)&&u(e.margin,s.margin)&&u(e.containerPadding,s.containerPadding)&&e.rowHeight===s.rowHeight&&e.maxRows===s.maxRows&&e.isBounded===s.isBounded&&e.isDraggable===s.isDraggable&&e.isResizable===s.isResizable&&e.allowOverlap===s.allowOverlap&&e.preventCollision===s.preventCollision&&e.useCSSTransforms===s.useCSSTransforms&&e.transformScale===s.transformScale&&e.isDroppable===s.isDroppable&&u(e.resizeHandles,s.resizeHandles)&&u(e.resizeHandle,s.resizeHandle)&&e.onLayoutChange===s.onLayoutChange&&e.onDragStart===s.onDragStart&&e.onDrag===s.onDrag&&e.onDragStop===s.onDragStop&&e.onResizeStart===s.onResizeStart&&e.onResize===s.onResize&&e.onResizeStop===s.onResizeStop&&e.onDrop===s.onDrop&&u(e.droppingItem,s.droppingItem)&&u(e.innerRef,s.innerRef)}})),Ct=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.bottom=S,r.childrenEqual=R,r.cloneLayout=O,r.cloneLayoutItem=j,r.collides=m,r.compact=c,r.compactItem=i,r.compactType=Z,r.correctBounds=a,r.fastPositionEqual=C,r.fastRGLPropsEqual=void 0,r.getAllCollisions=d,r.getFirstCollision=b,r.getLayoutItem=l,r.getStatics=p,r.modifyLayout=z,r.moveElement=_,r.moveElementAwayFromCollision=E,r.noop=void 0,r.perc=M,r.resizeItemInDirection=U,r.setTopLeft=at,r.setTransform=nt,r.sortLayoutItems=dt,r.sortLayoutItemsByColRow=bt,r.sortLayoutItemsByRowCol=yt,r.synchronizeLayoutWithChildren=I,r.validateLayout=B,r.withLayoutItem=w;var t=Ut(),e=s(gt());function s(v){return v&&v.__esModule?v:{default:v}}function u(v,g){var D=Object.keys(v);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(v);g&&(k=k.filter(function(q){return Object.getOwnPropertyDescriptor(v,q).enumerable})),D.push.apply(D,k)}return D}function y(v){for(var g=1;gg&&(g=D);return g}function O(v){let g=Array(v.length);for(let D=0,k=v.length;DD==null?void 0:D.key),e.default.Children.map(g,D=>D==null?void 0:D.key))&&(0,t.deepEqual)(e.default.Children.map(v,D=>D==null?void 0:D.props["data-grid"]),e.default.Children.map(g,D=>D==null?void 0:D.props["data-grid"]))}r.fastRGLPropsEqual=Dr();function C(v,g){return v.left===g.left&&v.top===g.top&&v.width===g.width&&v.height===g.height}function m(v,g){return!(v.i===g.i||v.x+v.w<=g.x||v.x>=g.x+g.w||v.y+v.h<=g.y||v.y>=g.y+g.h)}function c(v,g,D,k){let q=p(v),H=S(q),F=dt(v,g),$=Array(v.length);for(let X=0,tt=F.length;XF.i).indexOf(g.i);for(let F=H+1;Fg.y+g.h)break;m(g,$)&&o(v,$,D+g[q],k)}}g[k]=D}function i(v,g,D,k,q,H,F){let $=D==="vertical",X=D==="horizontal";if($)for(typeof F=="number"?g.y=Math.min(F,g.y):g.y=Math.min(S(v),g.y);g.y>0&&!b(v,g);)g.y--;else if(X)for(;g.x>0&&!b(v,g);)g.x--;let tt;for(;(tt=b(v,g))&&!(D===null&&H);)if(X?o(q,g,tt.x+tt.w,"x"):o(q,g,tt.y+tt.h,"y"),X&&g.x+g.w>k)for(g.x=k-g.w,g.y++;g.x>0&&!b(v,g);)g.x--;return g.y=Math.max(g.y,0),g.x=Math.max(g.x,0),g}function a(v,g){let D=p(v);for(let k=0,q=v.length;kg.cols&&(H.x=g.cols-H.w),H.x<0&&(H.x=0,H.w=g.cols),!H.static)D.push(H);else for(;b(D,H);)H.y++}return v}function l(v,g){for(let D=0,k=v.length;Dm(D,g))}function p(v){return v.filter(g=>g.static)}function _(v,g,D,k,q,H,F,$,X){if(g.static&&g.isDraggable!==!0||g.y===k&&g.x===D)return v;`${g.i}${String(D)}${String(k)}${g.x}${g.y}`;let tt=g.x,it=g.y;typeof D=="number"&&(g.x=D),typeof k=="number"&&(g.y=k),g.moved=!0;let st=dt(v,F);(F==="vertical"&&typeof k=="number"?it>=k:F==="horizontal"&&typeof D=="number"&&tt>=D)&&(st=st.reverse());let K=d(st,g),ft=K.length>0;if(ft&&X)return O(v);if(ft&&H)return`${g.i}`,g.x=tt,g.y=it,g.moved=!1,v;for(let mt=0,vt=K.length;mtg.y,mt=K&&g.x+g.w>K.x;if(K){if(ft&&$)return _(v,D,void 0,D.y+1,k,X,q,H);if(ft&&q==null)return g.y=D.y,D.y+=D.h,v;if(mt&&F)return _(v,g,D.x,void 0,k,X,q,H)}else return`${D.i}${st.x}${st.y}`,_(v,D,F?st.x:void 0,$?st.y:void 0,k,X,q,H)}let tt=F?D.x+1:void 0,it=$?D.y+1:void 0;return tt==null&&it==null?v:_(v,D,F?D.x+1:void 0,$?D.y+1:void 0,k,X,q,H)}function M(v){return v*100+"%"}var N=(v,g,D,k)=>v+D>k?g:D,T=(v,g,D)=>v<0?g:D,A=v=>Math.max(0,v),W=v=>Math.max(0,v),L=(v,g,D)=>{let{left:k,height:q,width:H}=g,F=v.top-(q-v.height);return{left:k,width:H,height:T(F,v.height,q),top:W(F)}},G=(v,g,D)=>{let{top:k,left:q,height:H,width:F}=g;return{top:k,height:H,width:N(v.left,v.width,F,D),left:A(q)}},Y=(v,g,D)=>{let{top:k,height:q,width:H}=g,F=v.left-(H-v.width);return{height:q,width:F<0?v.width:N(v.left,v.width,H,D),top:W(k),left:A(F)}},V=(v,g,D)=>{let{top:k,left:q,height:H,width:F}=g;return{width:F,left:q,height:T(k,v.height,H),top:W(k)}},J={n:L,ne:function(){return L(arguments.length<=0?void 0:arguments[0],G(...arguments),arguments.length<=2?void 0:arguments[2])},e:G,se:function(){return V(arguments.length<=0?void 0:arguments[0],G(...arguments),arguments.length<=2?void 0:arguments[2])},s:V,sw:function(){return V(arguments.length<=0?void 0:arguments[0],Y(...arguments),arguments.length<=2?void 0:arguments[2])},w:Y,nw:function(){return L(arguments.length<=0?void 0:arguments[0],Y(...arguments),arguments.length<=2?void 0:arguments[2])}};function U(v,g,D,k){let q=J[v];return q?q(g,y(y({},g),D),k):D}function nt(v){let{top:g,left:D,width:k,height:q}=v,H=`translate(${D}px,${g}px)`;return{transform:H,WebkitTransform:H,MozTransform:H,msTransform:H,OTransform:H,width:`${k}px`,height:`${q}px`,position:"absolute"}}function at(v){let{top:g,left:D,width:k,height:q}=v;return{top:`${g}px`,left:`${D}px`,width:`${k}px`,height:`${q}px`,position:"absolute"}}function dt(v,g){return g==="horizontal"?bt(v):g==="vertical"?yt(v):v}function yt(v){return v.slice(0).sort(function(g,D){return g.y>D.y||g.y===D.y&&g.x>D.x?1:g.y===D.y&&g.x===D.x?0:-1})}function bt(v){return v.slice(0).sort(function(g,D){return g.x>D.x||g.x===D.x&&g.y>D.y?1:-1})}function I(v,g,D,k,q){v||(v=[]);let H=[];e.default.Children.forEach(g,$=>{if(($==null?void 0:$.key)==null)return;let X=l(v,String($.key)),tt=$.props["data-grid"];X&&tt==null?H.push(j(X)):tt?H.push(j(y(y({},tt),{},{i:$.key}))):H.push(j({w:1,h:1,x:0,y:S(H),i:String($.key)}))});let F=a(H,{cols:D});return q?F:c(F,k,D)}function B(v){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout",D=["x","y","w","h"];if(!Array.isArray(v))throw Error(g+" must be an array!");for(let k=0,q=v.length;k{}})),Kt=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.calcGridColWidth=t,r.calcGridItemPosition=s,r.calcGridItemWHPx=e,r.calcWH=y,r.calcXY=u,r.clamp=f;function t(h){let{margin:x,containerPadding:S,containerWidth:O,cols:z}=h;return(O-x[0]*(z-1)-S[0]*2)/z}function e(h,x,S){return Number.isFinite(h)?Math.round(x*h+Math.max(0,h-1)*S):h}function s(h,x,S,O,z,w){let{margin:j,containerPadding:R,rowHeight:C}=h,m=t(h),c={};return w&&w.resizing?(c.width=Math.round(w.resizing.width),c.height=Math.round(w.resizing.height)):(c.width=e(O,m,j[0]),c.height=e(z,C,j[1])),w&&w.dragging?(c.top=Math.round(w.dragging.top),c.left=Math.round(w.dragging.left)):w&&w.resizing&&typeof w.resizing.top=="number"&&typeof w.resizing.left=="number"?(c.top=Math.round(w.resizing.top),c.left=Math.round(w.resizing.left)):(c.top=Math.round((C+j[1])*S+R[1]),c.left=Math.round((m+j[0])*x+R[0])),c}function u(h,x,S,O,z){let{margin:w,containerPadding:j,cols:R,rowHeight:C,maxRows:m}=h,c=t(h),n=Math.round((S-j[0])/(c+w[0])),o=Math.round((x-j[1])/(C+w[1]));return n=f(n,0,R-O),o=f(o,0,m-z),{x:n,y:o}}function y(h,x,S,O,z,w){let{margin:j,maxRows:R,cols:C,rowHeight:m}=h,c=t(h),n=Math.round((x+j[0])/(c+j[0])),o=Math.round((S+j[1])/(m+j[1])),i=f(n,0,C-O),a=f(o,0,R-z);return["sw","w","nw"].indexOf(w)!==-1&&(i=f(n,0,C)),["nw","n","ne"].indexOf(w)!==-1&&(a=f(o,0,R)),{w:i,h:a}}function f(h,x,S){return Math.max(Math.min(h,S),x)}})),Lt=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.dontSetMe=y,r.findInArray=t,r.int=u,r.isFunction=e,r.isNum=s;function t(f,h){for(let x=0,S=f.length;x{Object.defineProperty(r,"__esModule",{value:!0}),r.browserPrefixToKey=s,r.browserPrefixToStyle=u,r.default=void 0,r.getPrefix=e;var t=["Moz","Webkit","O","ms"];function e(){var x,S;let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";let h=(S=(x=window.document)==null?void 0:x.documentElement)==null?void 0:S.style;if(!h||f in h)return"";for(let O=0;O{Object.defineProperty(r,"__esModule",{value:!0}),r.addClassName=l,r.addEvent=h,r.addUserSelectStyles=o,r.createCSSTransform=R,r.createSVGTransform=C,r.getTouch=c,r.getTouchIdentifier=n,r.getTranslation=m,r.innerHeight=z,r.innerWidth=w,r.matchesSelector=y,r.matchesSelectorAndParentsTo=f,r.offsetXYFromParent=j,r.outerHeight=S,r.outerWidth=O,r.removeClassName=b,r.removeEvent=x,r.scheduleRemoveUserSelectStyles=i;var t=Lt(),e=s(_r());function s(d,p){if(typeof WeakMap=="function")var _=new WeakMap,E=new WeakMap;return(s=function(M,N){if(!N&&M&&M.__esModule)return M;var T,A,W={__proto__:null,default:M};if(M===null||typeof M!="object"&&typeof M!="function")return W;if(T=N?E:_){if(T.has(M))return T.get(M);T.set(M,W)}for(let L in M)L!=="default"&&{}.hasOwnProperty.call(M,L)&&((A=(T=Object.defineProperty)&&Object.getOwnPropertyDescriptor(M,L))&&(A.get||A.set)?T(W,L,A):W[L]=M[L]);return W})(d,p)}var u="";function y(d,p){return u||(u=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(_){return(0,t.isFunction)(d[_])})),(0,t.isFunction)(d[u])?d[u](p):!1}function f(d,p,_){let E=d;do{if(y(E,p))return!0;if(E===_)return!1;E=E.parentNode}while(E);return!1}function h(d,p,_,E){if(!d)return;let M={capture:!0,...E};d.addEventListener?d.addEventListener(p,_,M):d.attachEvent?d.attachEvent("on"+p,_):d["on"+p]=_}function x(d,p,_,E){if(!d)return;let M={capture:!0,...E};d.removeEventListener?d.removeEventListener(p,_,M):d.detachEvent?d.detachEvent("on"+p,_):d["on"+p]=null}function S(d){let p=d.clientHeight,_=d.ownerDocument.defaultView.getComputedStyle(d);return p+=(0,t.int)(_.borderTopWidth),p+=(0,t.int)(_.borderBottomWidth),p}function O(d){let p=d.clientWidth,_=d.ownerDocument.defaultView.getComputedStyle(d);return p+=(0,t.int)(_.borderLeftWidth),p+=(0,t.int)(_.borderRightWidth),p}function z(d){let p=d.clientHeight,_=d.ownerDocument.defaultView.getComputedStyle(d);return p-=(0,t.int)(_.paddingTop),p-=(0,t.int)(_.paddingBottom),p}function w(d){let p=d.clientWidth,_=d.ownerDocument.defaultView.getComputedStyle(d);return p-=(0,t.int)(_.paddingLeft),p-=(0,t.int)(_.paddingRight),p}function j(d,p,_){let E=p===p.ownerDocument.body?{left:0,top:0}:p.getBoundingClientRect();return{x:(d.clientX+p.scrollLeft-E.left)/_,y:(d.clientY+p.scrollTop-E.top)/_}}function R(d,p){let _=m(d,p,"px");return{[(0,e.browserPrefixToKey)("transform",e.default)]:_}}function C(d,p){return m(d,p,"")}function m(d,p,_){let{x:E,y:M}=d,N=`translate(${E}${_},${M}${_})`;return p&&(N=`translate(${`${typeof p.x=="string"?p.x:p.x+_}`}, ${`${typeof p.y=="string"?p.y:p.y+_}`})`+N),N}function c(d,p){return d.targetTouches&&(0,t.findInArray)(d.targetTouches,_=>p===_.identifier)||d.changedTouches&&(0,t.findInArray)(d.changedTouches,_=>p===_.identifier)}function n(d){if(d.targetTouches&&d.targetTouches[0])return d.targetTouches[0].identifier;if(d.changedTouches&&d.changedTouches[0])return d.changedTouches[0].identifier}function o(d){if(!d)return;let p=d.getElementById("react-draggable-style-el");p||(p=d.createElement("style"),p.type="text/css",p.id="react-draggable-style-el",p.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,p.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,d.getElementsByTagName("head")[0].appendChild(p)),d.body&&l(d.body,"react-draggable-transparent-selection")}function i(d){window.requestAnimationFrame?window.requestAnimationFrame(()=>{a(d)}):a(d)}function a(d){if(d)try{if(d.body&&b(d.body,"react-draggable-transparent-selection"),d.selection)d.selection.empty();else{let p=(d.defaultView||window).getSelection();p&&p.type!=="Caret"&&p.removeAllRanges()}}catch{}}function l(d,p){d.classList?d.classList.add(p):d.className.match(RegExp(`(?:^|\\s)${p}(?!\\S)`))||(d.className+=` ${p}`)}function b(d,p){d.classList?d.classList.remove(p):d.className=d.className.replace(RegExp(`(?:^|\\s)${p}(?!\\S)`,"g"),"")}})),Ee=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.canDragX=y,r.canDragY=f,r.createCoreData=x,r.createDraggableData=S,r.getBoundPosition=s,r.getControlPosition=h,r.snapToGrid=u;var t=Lt(),e=Zt();function s(w,j,R){if(!w.props.bounds)return[j,R];let{bounds:C}=w.props;C=typeof C=="string"?C:O(C);let m=z(w);if(typeof C=="string"){let{ownerDocument:c}=m,n=c.defaultView,o;if(o=C==="parent"?m.parentNode:m.getRootNode().querySelector(C),!(o instanceof n.HTMLElement))throw Error('Bounds selector "'+C+'" could not find an element.');let i=o,a=n.getComputedStyle(m),l=n.getComputedStyle(i);C={left:-m.offsetLeft+(0,t.int)(l.paddingLeft)+(0,t.int)(a.marginLeft),top:-m.offsetTop+(0,t.int)(l.paddingTop)+(0,t.int)(a.marginTop),right:(0,e.innerWidth)(i)-(0,e.outerWidth)(m)-m.offsetLeft+(0,t.int)(l.paddingRight)-(0,t.int)(a.marginRight),bottom:(0,e.innerHeight)(i)-(0,e.outerHeight)(m)-m.offsetTop+(0,t.int)(l.paddingBottom)-(0,t.int)(a.marginBottom)}}return(0,t.isNum)(C.right)&&(j=Math.min(j,C.right)),(0,t.isNum)(C.bottom)&&(R=Math.min(R,C.bottom)),(0,t.isNum)(C.left)&&(j=Math.max(j,C.left)),(0,t.isNum)(C.top)&&(R=Math.max(R,C.top)),[j,R]}function u(w,j,R){return[Math.round(j/w[0])*w[0],Math.round(R/w[1])*w[1]]}function y(w){return w.props.axis==="both"||w.props.axis==="x"}function f(w){return w.props.axis==="both"||w.props.axis==="y"}function h(w,j,R){let C=typeof j=="number"?(0,e.getTouch)(w,j):null;if(typeof j=="number"&&!C)return null;let m=z(R),c=R.props.offsetParent||m.offsetParent||m.ownerDocument.body;return(0,e.offsetXYFromParent)(C||w,c,R.props.scale)}function x(w,j,R){let C=!(0,t.isNum)(w.lastX),m=z(w);return C?{node:m,deltaX:0,deltaY:0,lastX:j,lastY:R,x:j,y:R}:{node:m,deltaX:j-w.lastX,deltaY:R-w.lastY,lastX:w.lastX,lastY:w.lastY,x:j,y:R}}function S(w,j){let R=w.props.scale;return{node:j.node,x:w.state.x+j.deltaX/R,y:w.state.y+j.deltaY/R,deltaX:j.deltaX/R,deltaY:j.deltaY/R,lastX:w.state.x,lastY:w.state.y}}function O(w){return{left:w.left,top:w.top,right:w.right,bottom:w.bottom}}function z(w){let j=w.findDOMNode();if(!j)throw Error(": Unmounted during event!");return j}})),ke=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(){}})),Pr=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=S(gt()),e=x(jt()),s=x(ue()),u=Zt(),y=Ee(),f=Lt(),h=x(ke());function x(m){return m&&m.__esModule?m:{default:m}}function S(m,c){if(typeof WeakMap=="function")var n=new WeakMap,o=new WeakMap;return(S=function(i,a){if(!a&&i&&i.__esModule)return i;var l,b,d={__proto__:null,default:i};if(i===null||typeof i!="object"&&typeof i!="function")return d;if(l=a?o:n){if(l.has(i))return l.get(i);l.set(i,d)}for(let p in i)p!=="default"&&{}.hasOwnProperty.call(i,p)&&((b=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(i,p))&&(b.get||b.set)?l(d,p,b):d[p]=i[p]);return d})(m,c)}function O(m,c,n){return(c=z(c))in m?Object.defineProperty(m,c,{value:n,enumerable:!0,configurable:!0,writable:!0}):m[c]=n,m}function z(m){var c=w(m,"string");return typeof c=="symbol"?c:c+""}function w(m,c){if(typeof m!="object"||!m)return m;var n=m[Symbol.toPrimitive];if(n!==void 0){var o=n.call(m,c||"default");if(typeof o!="object")return o;throw TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(m)}var j={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},R=j.mouse,C=class extends t.Component{constructor(){super(...arguments),O(this,"dragging",!1),O(this,"lastX",NaN),O(this,"lastY",NaN),O(this,"touchIdentifier",null),O(this,"mounted",!1),O(this,"handleDragStart",m=>{if(this.props.onMouseDown(m),!this.props.allowAnyClick&&typeof m.button=="number"&&m.button!==0)return!1;let c=this.findDOMNode();if(!c||!c.ownerDocument||!c.ownerDocument.body)throw Error(" not mounted on DragStart!");let{ownerDocument:n}=c;if(this.props.disabled||!(m.target instanceof n.defaultView.Node)||this.props.handle&&!(0,u.matchesSelectorAndParentsTo)(m.target,this.props.handle,c)||this.props.cancel&&(0,u.matchesSelectorAndParentsTo)(m.target,this.props.cancel,c))return;m.type==="touchstart"&&!this.props.allowMobileScroll&&m.preventDefault();let o=(0,u.getTouchIdentifier)(m);this.touchIdentifier=o;let i=(0,y.getControlPosition)(m,o,this);if(i==null)return;let{x:a,y:l}=i,b=(0,y.createCoreData)(this,a,l);(0,h.default)("DraggableCore: handleDragStart: %j",b),(0,h.default)("calling",this.props.onStart),!(this.props.onStart(m,b)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,u.addUserSelectStyles)(n),this.dragging=!0,this.lastX=a,this.lastY=l,(0,u.addEvent)(n,R.move,this.handleDrag),(0,u.addEvent)(n,R.stop,this.handleDragStop))}),O(this,"handleDrag",m=>{let c=(0,y.getControlPosition)(m,this.touchIdentifier,this);if(c==null)return;let{x:n,y:o}=c;if(Array.isArray(this.props.grid)){let a=n-this.lastX,l=o-this.lastY;if([a,l]=(0,y.snapToGrid)(this.props.grid,a,l),!a&&!l)return;n=this.lastX+a,o=this.lastY+l}let i=(0,y.createCoreData)(this,n,o);if((0,h.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(m,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{let a=document.createEvent("MouseEvents");a.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(a)}return}this.lastX=n,this.lastY=o}),O(this,"handleDragStop",m=>{if(!this.dragging)return;let c=(0,y.getControlPosition)(m,this.touchIdentifier,this);if(c==null)return;let{x:n,y:o}=c;if(Array.isArray(this.props.grid)){let l=n-this.lastX||0,b=o-this.lastY||0;[l,b]=(0,y.snapToGrid)(this.props.grid,l,b),n=this.lastX+l,o=this.lastY+b}let i=(0,y.createCoreData)(this,n,o);if(this.props.onStop(m,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,u.scheduleRemoveUserSelectStyles)(a.ownerDocument),(0,h.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,h.default)("DraggableCore: Removing handlers"),(0,u.removeEvent)(a.ownerDocument,R.move,this.handleDrag),(0,u.removeEvent)(a.ownerDocument,R.stop,this.handleDragStop))}),O(this,"onMouseDown",m=>(R=j.mouse,this.handleDragStart(m))),O(this,"onMouseUp",m=>(R=j.mouse,this.handleDragStop(m))),O(this,"onTouchStart",m=>(R=j.touch,this.handleDragStart(m))),O(this,"onTouchEnd",m=>(R=j.touch,this.handleDragStop(m)))}componentDidMount(){this.mounted=!0;let m=this.findDOMNode();m&&(0,u.addEvent)(m,j.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let m=this.findDOMNode();if(m){let{ownerDocument:c}=m;(0,u.removeEvent)(c,j.mouse.move,this.handleDrag),(0,u.removeEvent)(c,j.touch.move,this.handleDrag),(0,u.removeEvent)(c,j.mouse.stop,this.handleDragStop),(0,u.removeEvent)(c,j.touch.stop,this.handleDragStop),(0,u.removeEvent)(m,j.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,u.scheduleRemoveUserSelectStyles)(c)}}findDOMNode(){var m,c,n;return(m=this.props)!=null&&m.nodeRef?(n=(c=this.props)==null?void 0:c.nodeRef)==null?void 0:n.current:s.default.findDOMNode(this)}render(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};r.default=C,O(C,"displayName","DraggableCore"),O(C,"propTypes",{allowAnyClick:e.default.bool,allowMobileScroll:e.default.bool,children:e.default.node.isRequired,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:function(m,c){if(m[c]&&m[c].nodeType!==1)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:e.default.arrayOf(e.default.number),handle:e.default.string,cancel:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number,className:f.dontSetMe,style:f.dontSetMe,transform:f.dontSetMe}),O(C,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})})),Cr=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"DraggableCore",{enumerable:!0,get:function(){return x.default}}),r.default=void 0;var t=z(gt()),e=O(jt()),s=O(ue()),u=Ht(),y=Zt(),f=Ee(),h=Lt(),x=O(Pr()),S=O(ke());function O(c){return c&&c.__esModule?c:{default:c}}function z(c,n){if(typeof WeakMap=="function")var o=new WeakMap,i=new WeakMap;return(z=function(a,l){if(!l&&a&&a.__esModule)return a;var b,d,p={__proto__:null,default:a};if(a===null||typeof a!="object"&&typeof a!="function")return p;if(b=l?i:o){if(b.has(a))return b.get(a);b.set(a,p)}for(let _ in a)_!=="default"&&{}.hasOwnProperty.call(a,_)&&((d=(b=Object.defineProperty)&&Object.getOwnPropertyDescriptor(a,_))&&(d.get||d.set)?b(p,_,d):p[_]=a[_]);return p})(c,n)}function w(){return w=Object.assign?Object.assign.bind():function(c){for(var n=1;n{if((0,S.default)("Draggable: onDragStart: %j",o),this.props.onStart(n,(0,f.createDraggableData)(this,o))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),j(this,"onDrag",(n,o)=>{if(!this.state.dragging)return!1;(0,S.default)("Draggable: onDrag: %j",o);let i=(0,f.createDraggableData)(this,o),a={x:i.x,y:i.y,slackX:0,slackY:0};if(this.props.bounds){let{x:l,y:b}=a;a.x+=this.state.slackX,a.y+=this.state.slackY;let[d,p]=(0,f.getBoundPosition)(this,a.x,a.y);a.x=d,a.y=p,a.slackX=this.state.slackX+(l-a.x),a.slackY=this.state.slackY+(b-a.y),i.x=a.x,i.y=a.y,i.deltaX=a.x-this.state.x,i.deltaY=a.y-this.state.y}if(this.props.onDrag(n,i)===!1)return!1;this.setState(a)}),j(this,"onDragStop",(n,o)=>{if(!this.state.dragging||this.props.onStop(n,(0,f.createDraggableData)(this,o))===!1)return!1;(0,S.default)("Draggable: onDragStop: %j",o);let i={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:a,y:l}=this.props.position;i.x=a,i.y=l}this.setState(i)}),this.state={dragging:!1,dragged:!1,x:c.position?c.position.x:c.defaultPosition.x,y:c.position?c.position.y:c.defaultPosition.y,prevPropsPosition:{...c.position},slackX:0,slackY:0,isElementSVG:!1},c.position&&!(c.onDrag||c.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var c,n;return((n=(c=this.props)==null?void 0:c.nodeRef)==null?void 0:n.current)??s.default.findDOMNode(this)}render(){let{axis:c,bounds:n,children:o,defaultPosition:i,defaultClassName:a,defaultClassNameDragging:l,defaultClassNameDragged:b,position:d,positionOffset:p,scale:_,...E}=this.props,M={},N=null,T=!d||this.state.dragging,A=d||i,W={x:(0,f.canDragX)(this)&&T?this.state.x:A.x,y:(0,f.canDragY)(this)&&T?this.state.y:A.y};this.state.isElementSVG?N=(0,y.createSVGTransform)(W,p):M=(0,y.createCSSTransform)(W,p);let L=(0,u.clsx)(o.props.className||"",a,{[l]:this.state.dragging,[b]:this.state.dragged});return t.createElement(x.default,w({},E,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(o),{className:L,style:{...o.props.style,...M},transform:N}))}};r.default=m,j(m,"displayName","Draggable"),j(m,"propTypes",{...x.default.propTypes,axis:e.default.oneOf(["both","x","y","none"]),bounds:e.default.oneOfType([e.default.shape({left:e.default.number,right:e.default.number,top:e.default.number,bottom:e.default.number}),e.default.string,e.default.oneOf([!1])]),defaultClassName:e.default.string,defaultClassNameDragging:e.default.string,defaultClassNameDragged:e.default.string,defaultPosition:e.default.shape({x:e.default.number,y:e.default.number}),positionOffset:e.default.shape({x:e.default.oneOfType([e.default.number,e.default.string]),y:e.default.oneOfType([e.default.number,e.default.string])}),position:e.default.shape({x:e.default.number,y:e.default.number}),className:h.dontSetMe,style:h.dontSetMe,transform:h.dontSetMe}),j(m,"defaultProps",{...x.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})),Jt=ot(((r,t)=>{var{default:e,DraggableCore:s}=Cr();t.exports=e,t.exports.default=e,t.exports.DraggableCore=s})),zr=ot((r=>{r.__esModule=!0,r.cloneElement=x;var t=e(gt());function e(S){return S&&S.__esModule?S:{default:S}}function s(S,O){var z=Object.keys(S);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(S);O&&(w=w.filter(function(j){return Object.getOwnPropertyDescriptor(S,j).enumerable})),z.push.apply(z,w)}return z}function u(S){for(var O=1;O{r.__esModule=!0,r.resizableProps=void 0;var t=e(jt());Jt();function e(s){return s&&s.__esModule?s:{default:s}}r.resizableProps={axis:t.default.oneOf(["both","x","y","none"]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:t.default.node,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){var s=[...arguments],u=s[0];if(u.axis==="both"||u.axis==="y"){var y;return(y=t.default.number).isRequired.apply(y,s)}return t.default.number.apply(t.default,s)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:t.default.number,width:function(){var s=[...arguments],u=s[0];if(u.axis==="both"||u.axis==="x"){var y;return(y=t.default.number).isRequired.apply(y,s)}return t.default.number.apply(t.default,s)}}})),Ne=ot((r=>{r.__esModule=!0,r.default=void 0;var t=h(gt()),e=Jt(),s=zr(),u=Me(),y=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function f(n){if(typeof WeakMap!="function")return null;var o=new WeakMap,i=new WeakMap;return(f=function(a){return a?i:o})(n)}function h(n,o){if(!o&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=f(o);if(i&&i.has(n))return i.get(n);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in n)if(b!=="default"&&Object.prototype.hasOwnProperty.call(n,b)){var d=l?Object.getOwnPropertyDescriptor(n,b):null;d&&(d.get||d.set)?Object.defineProperty(a,b,d):a[b]=n[b]}return a.default=n,i&&i.set(n,a),a}function x(){return x=Object.assign?Object.assign.bind():function(n){for(var o=1;o=0)&&(i[l]=n[l]);return i}function O(n,o){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,a)}return i}function z(n){for(var o=1;oMath.abs(N*E)?l=a/E:a=l*E}var T=a,A=l,W=this.slack||[0,0],L=W[0],G=W[1];return a+=L,l+=G,d&&(a=Math.max(d[0],a),l=Math.max(d[1],l)),p&&(a=Math.min(p[0],a),l=Math.min(p[1],l)),this.slack=[L+(T-a),G+(A-l)],[a,l]},i.resizeHandler=function(a,l){var b=this;return function(d,p){var _=p.node,E=p.deltaX,M=p.deltaY;a==="onResizeStart"&&b.resetData();var N=(b.props.axis==="both"||b.props.axis==="x")&&l!=="n"&&l!=="s",T=(b.props.axis==="both"||b.props.axis==="y")&&l!=="e"&&l!=="w";if(!(!N&&!T)){var A=l[0],W=l[l.length-1],L=_.getBoundingClientRect();if(b.lastHandleRect!=null){if(W==="w"){var G=L.left-b.lastHandleRect.left;E+=G}if(A==="n"){var Y=L.top-b.lastHandleRect.top;M+=Y}}b.lastHandleRect=L,W==="w"&&(E=-E),A==="n"&&(M=-M);var V=b.props.width+(N?E/b.props.transformScale:0),J=b.props.height+(T?M/b.props.transformScale:0),U=b.runConstraints(V,J);V=U[0],J=U[1];var nt=V!==b.props.width||J!==b.props.height,at=typeof b.props[a]=="function"?b.props[a]:null;at&&!(a==="onResize"&&!nt)&&(d.persist==null||d.persist(),at(d,{node:_,size:{width:V,height:J},handle:l})),a==="onResizeStop"&&b.resetData()}}},i.renderResizeHandle=function(a,l){var b=this.props.handle;if(!b)return t.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:l});if(typeof b=="function")return b(a,l);var d=typeof b.type=="string",p=z({ref:l},d?{}:{handleAxis:a});return t.cloneElement(b,p)},i.render=function(){var a=this,l=this.props,b=l.children,d=l.className,p=l.draggableOpts;l.width,l.height,l.handle,l.handleSize,l.lockAspectRatio,l.axis,l.minConstraints,l.maxConstraints,l.onResize,l.onResizeStop,l.onResizeStart;var _=l.resizeHandles;l.transformScale;var E=S(l,y);return(0,s.cloneElement)(b,z(z({},E),{},{className:(d?d+" ":"")+"react-resizable",children:[].concat(b.props.children,_.map(function(M){var N=a.handleRefs[M]??(a.handleRefs[M]=t.createRef());return t.createElement(e.DraggableCore,x({},p,{nodeRef:N,key:"resizableHandle-"+M,onStop:a.resizeHandler("onResizeStop",M),onStart:a.resizeHandler("onResizeStart",M),onDrag:a.resizeHandler("onResize",M)}),a.renderResizeHandle(M,N))}))}))},o})(t.Component);r.default=c,c.propTypes=u.resizableProps,c.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),Rr=ot((r=>{r.__esModule=!0,r.default=void 0;var t=x(gt()),e=f(jt()),s=f(Ne()),u=Me(),y=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function f(o){return o&&o.__esModule?o:{default:o}}function h(o){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(h=function(l){return l?a:i})(o)}function x(o,i){if(!i&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var a=h(i);if(a&&a.has(o))return a.get(o);var l={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var p=b?Object.getOwnPropertyDescriptor(o,d):null;p&&(p.get||p.set)?Object.defineProperty(l,d,p):l[d]=o[d]}return l.default=o,a&&a.set(o,l),l}function S(){return S=Object.assign?Object.assign.bind():function(o){for(var i=1;i=0)&&(a[b]=o[b]);return a}function m(o,i){o.prototype=Object.create(i.prototype),o.prototype.constructor=o,c(o,i)}function c(o,i){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,l){return a.__proto__=l,a},c(o,i)}var n=(function(o){m(i,o);function i(){var l,b=[...arguments];return l=o.call.apply(o,[this].concat(b))||this,l.state={width:l.props.width,height:l.props.height,propsWidth:l.props.width,propsHeight:l.props.height},l.onResize=function(d,p){var _=p.size;l.props.onResize?(d.persist==null||d.persist(),l.setState(_,function(){return l.props.onResize&&l.props.onResize(d,p)})):l.setState(_)},l}i.getDerivedStateFromProps=function(l,b){return b.propsWidth!==l.width||b.propsHeight!==l.height?{width:l.width,height:l.height,propsWidth:l.width,propsHeight:l.height}:null};var a=i.prototype;return a.render=function(){var l=this.props,b=l.handle,d=l.handleSize;l.onResize;var p=l.onResizeStart,_=l.onResizeStop,E=l.draggableOpts,M=l.minConstraints,N=l.maxConstraints,T=l.lockAspectRatio,A=l.axis;l.width,l.height;var W=l.resizeHandles,L=l.style,G=l.transformScale,Y=C(l,y);return t.createElement(s.default,{axis:A,draggableOpts:E,handle:b,handleSize:d,height:this.state.height,lockAspectRatio:T,maxConstraints:N,minConstraints:M,onResizeStart:p,onResize:this.onResize,onResizeStop:_,resizeHandles:W,transformScale:G,width:this.state.width},t.createElement("div",S({},Y,{style:z(z({},L),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i})(t.Component);r.default=n,n.propTypes=z(z({},u.resizableProps),{},{children:e.default.element})})),Er=ot(((r,t)=>{t.exports=function(){throw Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},t.exports.Resizable=Ne().default,t.exports.ResizableBox=Rr().default})),Te=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.resizeHandleType=r.resizeHandleAxesType=r.default=void 0;var t=s(jt()),e=s(gt());function s(f){return f&&f.__esModule?f:{default:f}}var u=r.resizeHandleAxesType=t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),y=r.resizeHandleType=t.default.oneOfType([t.default.node,t.default.func]);r.default={className:t.default.string,style:t.default.object,width:t.default.number,autoSize:t.default.bool,cols:t.default.number,draggableCancel:t.default.string,draggableHandle:t.default.string,verticalCompact:function(f){f.verticalCompact},compactType:t.default.oneOf(["vertical","horizontal"]),layout:function(f){var h=f.layout;h!==void 0&&Ct().validateLayout(h,"layout")},margin:t.default.arrayOf(t.default.number),containerPadding:t.default.arrayOf(t.default.number),rowHeight:t.default.number,maxRows:t.default.number,isBounded:t.default.bool,isDraggable:t.default.bool,isResizable:t.default.bool,allowOverlap:t.default.bool,preventCollision:t.default.bool,useCSSTransforms:t.default.bool,transformScale:t.default.number,isDroppable:t.default.bool,resizeHandles:u,resizeHandle:y,onLayoutChange:t.default.func,onDragStart:t.default.func,onDrag:t.default.func,onDragStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,onResizeStop:t.default.func,onDrop:t.default.func,droppingItem:t.default.shape({i:t.default.string.isRequired,w:t.default.number.isRequired,h:t.default.number.isRequired}),children:function(f,h){let x=f[h],S={};e.default.Children.forEach(x,function(O){if((O==null?void 0:O.key)!=null){if(S[O.key])throw Error('Duplicate child key "'+O.key+'" found! This will cause problems in ReactGridLayout.');S[O.key]=!0}})},innerRef:t.default.any}})),kr=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=O(gt()),e=ue(),s=O(jt()),u=Jt(),y=Er(),f=Ct(),h=Kt(),x=Te(),S=O(Ht());function O(c){return c&&c.__esModule?c:{default:c}}function z(c,n){var o=Object.keys(c);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(c);n&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable})),o.push.apply(o,i)}return o}function w(c){for(var n=1;n{let{node:o}=n,{onDragStart:i,transformScale:a}=this.props;if(!i)return;let l={top:0,left:0},{offsetParent:b}=o;if(!b)return;let d=b.getBoundingClientRect(),p=o.getBoundingClientRect(),_=p.left/a,E=d.left/a,M=p.top/a,N=d.top/a;l.left=_-E+b.scrollLeft,l.top=M-N+b.scrollTop,this.setState({dragging:l});let{x:T,y:A}=(0,h.calcXY)(this.getPositionParams(),l.top,l.left,this.props.w,this.props.h);return i.call(this,this.props.i,T,A,{e:c,node:o,newPosition:l})}),j(this,"onDrag",(c,n,o)=>{let{node:i,deltaX:a,deltaY:l}=n,{onDrag:b}=this.props;if(!b)return;if(!this.state.dragging)throw Error("onDrag called before onDragStart.");let d=this.state.dragging.top+l,p=this.state.dragging.left+a,{isBounded:_,i:E,w:M,h:N,containerWidth:T}=this.props,A=this.getPositionParams();if(_){let{offsetParent:Y}=i;if(Y){let{margin:V,rowHeight:J}=this.props,U=Y.clientHeight-(0,h.calcGridItemWHPx)(N,J,V[1]);d=(0,h.clamp)(d,0,U);let nt=(0,h.calcGridColWidth)(A),at=T-(0,h.calcGridItemWHPx)(M,nt,V[0]);p=(0,h.clamp)(p,0,at)}}let W={top:d,left:p};o?this.setState({dragging:W}):(0,e.flushSync)(()=>{this.setState({dragging:W})});let{x:L,y:G}=(0,h.calcXY)(A,d,p,M,N);return b.call(this,E,L,G,{e:c,node:i,newPosition:W})}),j(this,"onDragStop",(c,n)=>{let{node:o}=n,{onDragStop:i}=this.props;if(!i)return;if(!this.state.dragging)throw Error("onDragEnd called before onDragStart.");let{w:a,h:l,i:b}=this.props,{left:d,top:p}=this.state.dragging,_={top:p,left:d};this.setState({dragging:null});let{x:E,y:M}=(0,h.calcXY)(this.getPositionParams(),p,d,a,l);return i.call(this,b,E,M,{e:c,node:o,newPosition:_})}),j(this,"onResizeStop",(c,n,o)=>this.onResizeHandler(c,n,o,"onResizeStop")),j(this,"onResizeStart",(c,n,o)=>this.onResizeHandler(c,n,o,"onResizeStart")),j(this,"onResize",(c,n,o)=>this.onResizeHandler(c,n,o,"onResize"))}shouldComponentUpdate(c,n){if(this.props.children!==c.children||this.props.droppingPosition!==c.droppingPosition)return!0;let o=(0,h.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),i=(0,h.calcGridItemPosition)(this.getPositionParams(c),c.x,c.y,c.w,c.h,n);return!(0,f.fastPositionEqual)(o,i)||this.props.useCSSTransforms!==c.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(c){this.moveDroppingItem(c)}moveDroppingItem(c){let{droppingPosition:n}=this.props;if(!n)return;let o=this.elementRef.current;if(!o)return;let i=c.droppingPosition||{left:0,top:0},{dragging:a}=this.state,l=a&&n.left!==i.left||n.top!==i.top;if(!a)this.onDragStart(n.e,{node:o,deltaX:n.left,deltaY:n.top});else if(l){let b=n.left-a.left,d=n.top-a.top;this.onDrag(n.e,{node:o,deltaX:b,deltaY:d},!0)}}getPositionParams(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:c.cols,containerPadding:c.containerPadding,containerWidth:c.containerWidth,margin:c.margin,maxRows:c.maxRows,rowHeight:c.rowHeight}}createStyle(c){let{usePercentages:n,containerWidth:o,useCSSTransforms:i}=this.props,a;return i?a=(0,f.setTransform)(c):(a=(0,f.setTopLeft)(c),n&&(a.left=(0,f.perc)(c.left/o),a.width=(0,f.perc)(c.width/o))),a}mixinDraggable(c,n){return t.default.createElement(u.DraggableCore,{disabled:!n,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},c)}curryResizeHandler(c,n){return(o,i)=>n(o,i,c)}mixinResizable(c,n,o){let{cols:i,minW:a,minH:l,maxW:b,maxH:d,transformScale:p,resizeHandles:_,resizeHandle:E}=this.props,M=this.getPositionParams(),N=(0,h.calcGridItemPosition)(M,0,0,i,0).width,T=(0,h.calcGridItemPosition)(M,0,0,a,l),A=(0,h.calcGridItemPosition)(M,0,0,b,d),W=[T.width,T.height],L=[Math.min(A.width,N),Math.min(A.height,1/0)];return t.default.createElement(y.Resizable,{draggableOpts:{disabled:!o},className:o?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:W,maxConstraints:L,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:p,resizeHandles:_,handle:E},c)}onResizeHandler(c,n,o,i){let{node:a,size:l,handle:b}=n,d=this.props[i];if(!d)return;let{x:p,y:_,i:E,maxH:M,minH:N,containerWidth:T}=this.props,{minW:A,maxW:W}=this.props,L=l;a&&(L=(0,f.resizeItemInDirection)(b,o,l,T),(0,e.flushSync)(()=>{this.setState({resizing:i==="onResizeStop"?null:L})}));let{w:G,h:Y}=(0,h.calcWH)(this.getPositionParams(),L.width,L.height,p,_,b);G=(0,h.clamp)(G,Math.max(A,1),W),Y=(0,h.clamp)(Y,N,M),d.call(this,E,G,Y,{e:c,node:a,size:L,handle:b})}render(){let{x:c,y:n,w:o,h:i,isDraggable:a,isResizable:l,droppingPosition:b,useCSSTransforms:d}=this.props,p=(0,h.calcGridItemPosition)(this.getPositionParams(),c,n,o,i,this.state),_=t.default.Children.only(this.props.children),E=t.default.cloneElement(_,{ref:this.elementRef,className:(0,S.default)("react-grid-item",_.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":a,"react-draggable-dragging":!!this.state.dragging,dropping:!!b,cssTransforms:d}),style:w(w(w({},this.props.style),_.props.style),this.createStyle(p))});return E=this.mixinResizable(E,p,l),E=this.mixinDraggable(E,a),E}};r.default=m,j(m,"propTypes",{children:s.default.element,cols:s.default.number.isRequired,containerWidth:s.default.number.isRequired,rowHeight:s.default.number.isRequired,margin:s.default.array.isRequired,maxRows:s.default.number.isRequired,containerPadding:s.default.array.isRequired,x:s.default.number.isRequired,y:s.default.number.isRequired,w:s.default.number.isRequired,h:s.default.number.isRequired,minW:function(c,n){let o=c[n];if(typeof o!="number")return Error("minWidth not Number");if(o>c.w||o>c.maxW)return Error("minWidth larger than item width/maxWidth")},maxW:function(c,n){let o=c[n];if(typeof o!="number")return Error("maxWidth not Number");if(oc.h||o>c.maxH)return Error("minHeight larger than item height/maxHeight")},maxH:function(c,n){let o=c[n];if(typeof o!="number")return Error("maxHeight not Number");if(o{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=S(gt()),e=Ut(),s=x(Ht()),u=Ct(),y=Kt(),f=x(kr()),h=x(Te());function x(n){return n&&n.__esModule?n:{default:n}}function S(n,o){if(typeof WeakMap=="function")var i=new WeakMap,a=new WeakMap;return(S=function(l,b){if(!b&&l&&l.__esModule)return l;var d,p,_={__proto__:null,default:l};if(l===null||typeof l!="object"&&typeof l!="function")return _;if(d=b?a:i){if(d.has(l))return d.get(l);d.set(l,_)}for(let E in l)E!=="default"&&{}.hasOwnProperty.call(l,E)&&((p=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,E))&&(p.get||p.set)?d(_,E,p):_[E]=l[E]);return _})(n,o)}function O(n,o){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,a)}return i}function z(n){for(var o=1;o{let{e:l,node:b}=a,{layout:d}=this.state,p=(0,u.getLayoutItem)(d,n);if(!p)return;let _={w:p.w,h:p.h,x:p.x,y:p.y,placeholder:!0,i:n};return this.setState({oldDragItem:(0,u.cloneLayoutItem)(p),oldLayout:d,activeDrag:_}),this.props.onDragStart(d,p,p,null,l,b)}),w(this,"onDrag",(n,o,i,a)=>{let{e:l,node:b}=a,{oldDragItem:d}=this.state,{layout:p}=this.state,{cols:_,allowOverlap:E,preventCollision:M}=this.props,N=(0,u.getLayoutItem)(p,n);if(!N)return;let T={w:N.w,h:N.h,x:N.x,y:N.y,placeholder:!0,i:n};p=(0,u.moveElement)(p,N,o,i,!0,M,(0,u.compactType)(this.props),_,E),this.props.onDrag(p,d,N,T,l,b),this.setState({layout:E?p:(0,u.compact)(p,(0,u.compactType)(this.props),_),activeDrag:T})}),w(this,"onDragStop",(n,o,i,a)=>{let{e:l,node:b}=a;if(!this.state.activeDrag)return;let{oldDragItem:d}=this.state,{layout:p}=this.state,{cols:_,preventCollision:E,allowOverlap:M}=this.props,N=(0,u.getLayoutItem)(p,n);if(!N)return;p=(0,u.moveElement)(p,N,o,i,!0,E,(0,u.compactType)(this.props),_,M);let T=M?p:(0,u.compact)(p,(0,u.compactType)(this.props),_);this.props.onDragStop(T,d,N,null,l,b);let{oldLayout:A}=this.state;this.setState({activeDrag:null,layout:T,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(T,A)}),w(this,"onResizeStart",(n,o,i,a)=>{let{e:l,node:b}=a,{layout:d}=this.state,p=(0,u.getLayoutItem)(d,n);p&&(this.setState({oldResizeItem:(0,u.cloneLayoutItem)(p),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(d,p,p,null,l,b))}),w(this,"onResize",(n,o,i,a)=>{let{e:l,node:b,size:d,handle:p}=a,{oldResizeItem:_}=this.state,{layout:E}=this.state,{cols:M,preventCollision:N,allowOverlap:T}=this.props,A=!1,W,L,G,[Y,V]=(0,u.withLayoutItem)(E,n,U=>{let nt;return L=U.x,G=U.y,["sw","w","nw","n","ne"].indexOf(p)!==-1&&(["sw","nw","w"].indexOf(p)!==-1&&(L=U.x+(U.w-o),o=U.x!==L&&L<0?U.w:o,L=L<0?0:L),["ne","n","nw"].indexOf(p)!==-1&&(G=U.y+(U.h-i),i=U.y!==G&&G<0?U.h:i,G=G<0?0:G),A=!0),N&&!T&&(nt=(0,u.getAllCollisions)(E,z(z({},U),{},{w:o,h:i,x:L,y:G})).filter(at=>at.i!==U.i).length>0,nt&&(G=U.y,i=U.h,L=U.x,o=U.w,A=!1)),U.w=o,U.h=i,U});if(!V)return;W=Y,A&&(W=(0,u.moveElement)(Y,V,L,G,!0,this.props.preventCollision,(0,u.compactType)(this.props),M,T));let J={w:V.w,h:V.h,x:V.x,y:V.y,static:!0,i:n};this.props.onResize(W,_,V,J,l,b),this.setState({layout:T?W:(0,u.compact)(W,(0,u.compactType)(this.props),M),activeDrag:J})}),w(this,"onResizeStop",(n,o,i,a)=>{let{e:l,node:b}=a,{layout:d,oldResizeItem:p}=this.state,{cols:_,allowOverlap:E}=this.props,M=(0,u.getLayoutItem)(d,n),N=E?d:(0,u.compact)(d,(0,u.compactType)(this.props),_);this.props.onResizeStop(N,p,M,null,l,b);let{oldLayout:T}=this.state;this.setState({activeDrag:null,layout:N,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(N,T)}),w(this,"onDragOver",n=>{var o;if(n.preventDefault(),n.stopPropagation(),m&&!((o=n.nativeEvent.target)!=null&&o.classList.contains(C)))return!1;let{droppingItem:i,onDropDragOver:a,margin:l,cols:b,rowHeight:d,maxRows:p,width:_,containerPadding:E,transformScale:M}=this.props,N=a==null?void 0:a(n);if(N===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;let T=z(z({},i),N),{layout:A}=this.state,W=n.currentTarget.getBoundingClientRect(),L=n.clientX-W.left,G=n.clientY-W.top,Y={left:L/M,top:G/M,e:n};if(this.state.droppingDOMNode){if(this.state.droppingPosition){let{left:V,top:J}=this.state.droppingPosition;(V!=L||J!=G)&&this.setState({droppingPosition:Y})}}else{let V={cols:b,margin:l,maxRows:p,rowHeight:d,containerWidth:_,containerPadding:E||l},J=(0,y.calcXY)(V,G,L,T.w,T.h);this.setState({droppingDOMNode:t.createElement("div",{key:T.i}),droppingPosition:Y,layout:[...A,z(z({},T),{},{x:J.x,y:J.y,static:!1,isDraggable:!0})]})}}),w(this,"removeDroppingPlaceholder",()=>{let{droppingItem:n,cols:o}=this.props,{layout:i}=this.state,a=(0,u.compact)(i.filter(l=>l.i!==n.i),(0,u.compactType)(this.props),o,this.props.allowOverlap);this.setState({layout:a,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),w(this,"onDragLeave",n=>{n.preventDefault(),n.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),w(this,"onDragEnter",n=>{n.preventDefault(),n.stopPropagation(),this.dragEnterCounter++}),w(this,"onDrop",n=>{n.preventDefault(),n.stopPropagation();let{droppingItem:o}=this.props,{layout:i}=this.state,a=i.find(l=>l.i===o.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(i,a,n)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(n,o){let i;return o.activeDrag?null:(!(0,e.deepEqual)(n.layout,o.propsLayout)||n.compactType!==o.compactType?i=n.layout:(0,u.childrenEqual)(n.children,o.children)||(i=o.layout),i?{layout:(0,u.synchronizeLayoutWithChildren)(i,n.children,n.cols,(0,u.compactType)(n),n.allowOverlap),compactType:n.compactType,children:n.children,propsLayout:n.layout}:null)}shouldComponentUpdate(n,o){return this.props.children!==n.children||!(0,u.fastRGLPropsEqual)(this.props,n,e.deepEqual)||this.state.activeDrag!==o.activeDrag||this.state.mounted!==o.mounted||this.state.droppingPosition!==o.droppingPosition}componentDidUpdate(n,o){if(!this.state.activeDrag){let i=this.state.layout,a=o.layout;this.onLayoutMaybeChanged(i,a)}}containerHeight(){if(!this.props.autoSize)return;let n=(0,u.bottom)(this.state.layout),o=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return n*this.props.rowHeight+(n-1)*this.props.margin[1]+o*2+"px"}onLayoutMaybeChanged(n,o){o||(o=this.state.layout),(0,e.deepEqual)(o,n)||this.props.onLayoutChange(n)}placeholder(){let{activeDrag:n}=this.state;if(!n)return null;let{width:o,cols:i,margin:a,containerPadding:l,rowHeight:b,maxRows:d,useCSSTransforms:p,transformScale:_}=this.props;return t.createElement(f.default,{w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:o,cols:i,margin:a,containerPadding:l||a,maxRows:d,rowHeight:b,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:p,transformScale:_},t.createElement("div",null))}processGridItem(n,o){if(!n||!n.key)return;let i=(0,u.getLayoutItem)(this.state.layout,String(n.key));if(!i)return null;let{width:a,cols:l,margin:b,containerPadding:d,rowHeight:p,maxRows:_,isDraggable:E,isResizable:M,isBounded:N,useCSSTransforms:T,transformScale:A,draggableCancel:W,draggableHandle:L,resizeHandles:G,resizeHandle:Y}=this.props,{mounted:V,droppingPosition:J}=this.state,U=typeof i.isDraggable=="boolean"?i.isDraggable:!i.static&&E,nt=typeof i.isResizable=="boolean"?i.isResizable:!i.static&&M,at=i.resizeHandles||G,dt=U&&N&&i.isBounded!==!1;return t.createElement(f.default,{containerWidth:a,cols:l,margin:b,containerPadding:d||b,maxRows:_,rowHeight:p,cancel:W,handle:L,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:U,isResizable:nt,isBounded:dt,useCSSTransforms:T&&V,usePercentages:!V,transformScale:A,w:i.w,h:i.h,x:i.x,y:i.y,i:i.i,minH:i.minH,minW:i.minW,maxH:i.maxH,maxW:i.maxW,static:i.static,droppingPosition:o?J:void 0,resizeHandles:at,resizeHandle:Y},n)}render(){let{className:n,style:o,isDroppable:i,innerRef:a}=this.props,l=(0,s.default)(C,n),b=z({height:this.containerHeight()},o);return t.createElement("div",{ref:a,className:l,style:b,onDrop:i?this.onDrop:u.noop,onDragLeave:i?this.onDragLeave:u.noop,onDragEnter:i?this.onDragEnter:u.noop,onDragOver:i?this.onDragOver:u.noop},t.Children.map(this.props.children,d=>this.processGridItem(d)),i&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}};r.default=c,w(c,"displayName","ReactGridLayout"),w(c,"propTypes",h.default),w(c,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:u.noop,onDragStart:u.noop,onDrag:u.noop,onDragStop:u.noop,onResizeStart:u.noop,onResize:u.noop,onResizeStop:u.noop,onDrop:u.noop,onDropDragOver:u.noop})})),Le=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.findOrGenerateResponsiveLayout=u,r.getBreakpointFromWidth=e,r.getColsFromBreakpoint=s,r.sortBreakpoints=y;var t=Ct();function e(f,h){let x=y(f),S=x[0];for(let O=1,z=x.length;Of[w]&&(S=w)}return S}function s(f,h){if(!h[f])throw Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+f+" is missing!");return h[f]}function u(f,h,x,S,O,z){if(f[x])return(0,t.cloneLayout)(f[x]);let w=f[S],j=y(h),R=j.slice(j.indexOf(x));for(let C=0,m=R.length;C{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=S(gt()),e=x(jt()),s=Ut(),u=Ct(),y=Le(),f=x(He()),h=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function x(a){return a&&a.__esModule?a:{default:a}}function S(a,l){if(typeof WeakMap=="function")var b=new WeakMap,d=new WeakMap;return(S=function(p,_){if(!_&&p&&p.__esModule)return p;var E,M,N={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return N;if(E=_?d:b){if(E.has(p))return E.get(p);E.set(p,N)}for(let T in p)T!=="default"&&{}.hasOwnProperty.call(p,T)&&((M=(E=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,T))&&(M.get||M.set)?E(N,T,M):N[T]=p[T]);return N})(a,l)}function O(){return O=Object.assign?Object.assign.bind():function(a){for(var l=1;lObject.prototype.toString.call(a);function o(a,l){return a==null?null:Array.isArray(a)?a:a[l]}var i=class extends t.Component{constructor(){super(...arguments),C(this,"state",this.generateInitialState()),C(this,"onLayoutChange",a=>{this.props.onLayoutChange(a,R(R({},this.props.layouts),{},{[this.state.breakpoint]:a}))})}generateInitialState(){let{width:a,breakpoints:l,layouts:b,cols:d}=this.props,p=(0,y.getBreakpointFromWidth)(l,a),_=(0,y.getColsFromBreakpoint)(p,d),E=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,y.findOrGenerateResponsiveLayout)(b,l,p,p,_,E),breakpoint:p,cols:_}}static getDerivedStateFromProps(a,l){if(!(0,s.deepEqual)(a.layouts,l.layouts)){let{breakpoint:b,cols:d}=l;return{layout:(0,y.findOrGenerateResponsiveLayout)(a.layouts,a.breakpoints,b,b,d,a.compactType),layouts:a.layouts}}return null}componentDidUpdate(a){(this.props.width!=a.width||this.props.breakpoint!==a.breakpoint||!(0,s.deepEqual)(this.props.breakpoints,a.breakpoints)||!(0,s.deepEqual)(this.props.cols,a.cols))&&this.onWidthChange(a)}onWidthChange(a){let{breakpoints:l,cols:b,layouts:d,compactType:p}=this.props,_=this.props.breakpoint||(0,y.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),E=this.state.breakpoint,M=(0,y.getColsFromBreakpoint)(_,b),N=R({},d);if(E!==_||a.breakpoints!==l||a.cols!==b){E in N||(N[E]=(0,u.cloneLayout)(this.state.layout));let W=(0,y.findOrGenerateResponsiveLayout)(N,l,_,E,M,p);W=(0,u.synchronizeLayoutWithChildren)(W,this.props.children,M,p,this.props.allowOverlap),N[_]=W,this.props.onBreakpointChange(_,M),this.props.onLayoutChange(W,N),this.setState({breakpoint:_,layout:W,cols:M})}let T=o(this.props.margin,_),A=o(this.props.containerPadding,_);this.props.onWidthChange(this.props.width,T,M,A)}render(){let a=this.props,{breakpoint:l,breakpoints:b,cols:d,layouts:p,margin:_,containerPadding:E,onBreakpointChange:M,onLayoutChange:N,onWidthChange:T}=a,A=z(a,h);return t.createElement(f.default,O({},A,{margin:o(_,this.state.breakpoint),containerPadding:o(E,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};r.default=i,C(i,"propTypes",{breakpoint:e.default.string,breakpoints:e.default.object,allowOverlap:e.default.bool,cols:e.default.object,margin:e.default.oneOfType([e.default.array,e.default.object]),containerPadding:e.default.oneOfType([e.default.array,e.default.object]),layouts(a,l){if(n(a[l])!=="[object Object]")throw Error("Layout property must be an object. Received: "+n(a[l]));Object.keys(a[l]).forEach(b=>{if(!(b in a.breakpoints))throw Error("Each key in layouts must align with a key in breakpoints.");(0,u.validateLayout)(a.layouts[b],"layouts."+b)})},width:e.default.number.isRequired,onBreakpointChange:e.default.func,onLayoutChange:e.default.func,onWidthChange:e.default.func}),C(i,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:u.noop,onLayoutChange:u.noop,onWidthChange:u.noop})})),Nr=Fn({default:()=>Ke},1);function Tr(r,t){var e=!1,s=!1,u=0;function y(){e&&(e=!1,r()),s&&h()}function f(){Ie(y)}function h(){var x=Date.now();if(e){if(x-u{Qt=(function(){if(typeof Map<"u")return Map;function r(t,e){var s=-1;return t.some(function(u,y){return u[0]===e?(s=y,!0):!1}),s}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var s=r(this.__entries__,e),u=this.__entries__[s];return u&&u[1]},t.prototype.set=function(e,s){var u=r(this.__entries__,e);~u?this.__entries__[u][1]=s:this.__entries__.push([e,s])},t.prototype.delete=function(e){var s=this.__entries__,u=r(s,e);~u&&s.splice(u,1)},t.prototype.has=function(e){return!!~r(this.__entries__,e)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,s){s===void 0&&(s=null);for(var u=0,y=this.__entries__;u0},r.prototype.connect_=function(){!At||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},r.prototype.disconnect_=function(){!At||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},r.prototype.onTransitionEnd_=function(t){var e=t.propertyName,s=e===void 0?"":e;Be.some(function(u){return!!~s.indexOf(u)})&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r})(),te=(function(r,t){for(var e=0,s=Object.keys(t);e"u"||!(Element instanceof Object))){if(!(t instanceof Dt(t).Element))throw TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Xe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(t){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Dt(t).Element))throw TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(s){return new Ye(s.target,s.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r})(),re=typeof WeakMap<"u"?new WeakMap:new Qt,ne=(function(){function r(t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var e=new Ve(t,Fe.getInstance(),this);re.set(this,e)}return r})(),["observe","unobserve","disconnect"].forEach(function(r){ne.prototype[r]=function(){var t;return(t=re.get(this))[r].apply(t,arguments)}}),Ue=(function(){return Mt.ResizeObserver===void 0?ne:Mt.ResizeObserver})(),Ke=Ue})),$r=ot((r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=C;var t=h(gt()),e=f(jt()),s=f((Br(),Bn(Nr))),u=f(Ht()),y=["measureBeforeMount"];function f(m){return m&&m.__esModule?m:{default:m}}function h(m,c){if(typeof WeakMap=="function")var n=new WeakMap,o=new WeakMap;return(h=function(i,a){if(!a&&i&&i.__esModule)return i;var l,b,d={__proto__:null,default:i};if(i===null||typeof i!="object"&&typeof i!="function")return d;if(l=a?o:n){if(l.has(i))return l.get(i);l.set(i,d)}for(let p in i)p!=="default"&&{}.hasOwnProperty.call(i,p)&&((b=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(i,p))&&(b.get||b.set)?l(d,p,b):d[p]=i[p]);return d})(m,c)}function x(){return x=Object.assign?Object.assign.bind():function(m){for(var c=1;c{if(this.elementRef.current instanceof HTMLElement){let i=o[0].contentRect.width;this.setState({width:i})}});let n=this.elementRef.current;n instanceof HTMLElement&&this.resizeObserver.observe(n)}componentWillUnmount(){this.mounted=!1;let n=this.elementRef.current;n instanceof HTMLElement&&this.resizeObserver.unobserve(n),this.resizeObserver.disconnect()}render(){let n=this.props,{measureBeforeMount:o}=n,i=S(n,y);return o&&!this.mounted?t.createElement("div",{className:(0,u.default)(this.props.className,R),style:this.props.style,ref:this.elementRef}):t.createElement(m,x({innerRef:this.elementRef},i,this.state))}},z(c,"defaultProps",{measureBeforeMount:!1}),z(c,"propTypes",{measureBeforeMount:e.default.bool}),c}})),Fr=ot(((r,t)=>{t.exports=He().default,t.exports.utils=Ct(),t.exports.calculateUtils=Kt(),t.exports.Responsive=Mr().default,t.exports.Responsive.utils=Le(),t.exports.WidthProvider=$r().default})),Gr=St(),Xr=10;function Yr(){let r=(0,Gr.c)(9),[t,e]=(0,Q.useState)(!1),s;r[0]===Symbol.for("react.memo_cache_sentinel")?(s={x:0,y:0},r[0]=s):s=r[0];let[u,y]=Q.useState(s),[f,h]=Q.useState(!1),x;r[1]===Symbol.for("react.memo_cache_sentinel")?(x=m=>{e(!0),y({x:m.clientX,y:m.clientY})},r[1]=x):x=r[1];let S=x,O;r[2]!==u||r[3]!==t?(O=m=>{if(t){let c=m.clientX-u.x,n=m.clientY-u.y;h(Math.hypot(c,n)>Xr)}},r[2]=u,r[3]=t,r[4]=O):O=r[4];let z=O,w;r[5]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{e(!1),h(!1)},r[5]=w):w=r[5];let j=w,R=t&&f,C;return r[6]!==z||r[7]!==R?(C={isDragging:R,onDragStart:S,onDragMove:z,onDragStop:j},r[6]=z,r[7]=R,r[8]=C):C=r[8],C}var Nt=St(),Ze=Fr(),P=ar(yo(),1),Vr=(0,Ze.WidthProvider)(Ze.Responsive),Ur=[0,0],oe="grid-drag-handle";const Kr=r=>{let t=(0,Nt.c)(160),{layout:e,setLayout:s,cells:u,mode:y}=r,f=y==="read",h;t[0]===e.cells?h=t[1]:(h=new Set(e.cells.map(en)),t[0]=e.cells,t[1]=h);let x=h,[S,O]=(0,Q.useState)(null),[z,w]=(0,Q.useState)(!1),j;t[2]===e.columns?j=t[3]:(j={lg:e.columns},t[2]=e.columns,t[3]=j);let R=j,C,m;t[4]===e.bordered?(C=t[5],m=t[6]):(C=()=>{let K=document.getElementById("App");return e.bordered?K==null||K.classList.add("grid-bordered"):K==null||K.classList.remove("grid-bordered"),()=>{K==null||K.classList.remove("grid-bordered")}},m=[e.bordered],t[4]=e.bordered,t[5]=C,t[6]=m),(0,Q.useEffect)(C,m);let c=Yr(),n,o;t[7]===c?(n=t[8],o=t[9]):({isDragging:o,...n}=c,t[7]=c,t[8]=n,t[9]=o);let i=!f&&!z,a,l,b,d,p,_,E,M,N,T,A,W,L,G,Y,V,J,U,nt,at,dt,yt,bt,I,B,Z;if(t[10]!==u||t[11]!==R||t[12]!==n||t[13]!==S||t[14]!==i||t[15]!==x||t[16]!==o||t[17]!==f||t[18]!==e||t[19]!==y||t[20]!==s){let K=hr.keyBy(e.cells,rn),ft;t[47]!==e||t[48]!==s?(ft=et=>ht=>{let pt=new Set(e.scrollableCells);ht?pt.add(et):pt.delete(et),s({...e,scrollableCells:pt})},t[47]=e,t[48]=s,t[49]=ft):ft=t[49];let mt=ft,vt;t[50]!==e||t[51]!==s?(vt=et=>ht=>{let pt=new Map(e.cellSide);ht===pt.get(et)?pt.delete(et):pt.set(et,ht),s({...e,cellSide:pt})},t[50]=e,t[51]=s,t[52]=vt):vt=t[52];let rt=vt;t[53]!==i||t[54]!==e.columns||t[55]!==e.maxWidth||t[56]!==e.rowHeight?(l={},e.maxWidth&&(l.maxWidth=`${e.maxWidth}px`),i&&(l.backgroundImage="repeating-linear-gradient(var(--gray-4) 0 1px, transparent 1px 100%), repeating-linear-gradient(90deg, var(--gray-4) 0 1px, transparent 1px 100%)",l.backgroundSize=`calc((100% / ${e.columns})) ${e.rowHeight}px`),t[53]=i,t[54]=e.columns,t[55]=e.maxWidth,t[56]=e.rowHeight,t[57]=l):l=t[57],a=Vr,bt="lg",t[58]===e.cells?I=t[59]:(I={lg:e.cells},t[58]=e.cells,t[59]=I),B=l,Z=R,b=!1;let lt=i&&"bg-(--slate-2) border-r",ut=f&&"disable-animation",ie=!e.maxWidth&&"min-w-[800px]";t[60]!==lt||t[61]!==ut||t[62]!==ie?(d=ct("w-full mx-auto bg-background flex-1 min-h-full",lt,ut,ie),t[60]=lt,t[61]=ut,t[62]=ie,t[63]=d):d=t[63],t[64]===f?p=t[65]:(p=f?[20,20]:void 0,t[64]=f,t[65]=p),_=Ur,E=!1,M=null,N=!0,T=e.rowHeight,t[66]!==e||t[67]!==s?(A=et=>s({...e,cells:et}),t[66]=e,t[67]=s,t[68]=A):A=t[68],t[69]===S?W=t[70]:(W=S?{i:S.i,w:S.w||2,h:S.h||2}:void 0,t[69]=S,t[70]=W),t[71]!==n||t[72]!==e||t[73]!==s?(L=(et,ht,pt)=>{n.onDragStop(),ht&&s({...e,cells:[...et,ht]})},t[71]=n,t[72]=e,t[73]=s,t[74]=L):L=t[74],t[75]===n?(G=t[76],Y=t[77],V=t[78]):(G=(et,ht,pt,Ft,zt)=>{n.onDragStart(zt)},Y=(et,ht,pt,Ft,zt)=>{n.onDragMove(zt)},V=()=>{n.onDragStop()},t[75]=n,t[76]=G,t[77]=Y,t[78]=V),J=nn,U=i,nt=i,at=i,dt=i?`.${oe}`:"noop";let $t;t[79]===x?$t=t[80]:($t=et=>x.has(et.id),t[79]=x,t[80]=$t),yt=u.filter($t).map(et=>{let ht=K.get(et.id),pt=e.scrollableCells.has(et.id)??!1,Ft=e.cellSide.get(et.id),zt=(0,P.jsx)(qt,{code:et.code,mode:y,cellId:et.id,output:et.output,status:et.status,isScrollable:pt,side:Ft,hidden:et.errored||et.interrupted||et.stopped});return i?(0,P.jsx)(Je,{id:et.id,isDragging:o,side:Ft,setSide:rt(et.id),isScrollable:pt,setIsScrollable:mt(et.id),display:(ht==null?void 0:ht.y)===0?"bottom":"top",onDelete:()=>{s({...e,cells:e.cells.filter(In=>In.i!==et.id)})},children:zt},et.id):(0,P.jsx)("div",{children:zt},et.id)}),t[10]=u,t[11]=R,t[12]=n,t[13]=S,t[14]=i,t[15]=x,t[16]=o,t[17]=f,t[18]=e,t[19]=y,t[20]=s,t[21]=a,t[22]=l,t[23]=b,t[24]=d,t[25]=p,t[26]=_,t[27]=E,t[28]=M,t[29]=N,t[30]=T,t[31]=A,t[32]=W,t[33]=L,t[34]=G,t[35]=Y,t[36]=V,t[37]=J,t[38]=U,t[39]=nt,t[40]=at,t[41]=dt,t[42]=yt,t[43]=bt,t[44]=I,t[45]=B,t[46]=Z}else a=t[21],l=t[22],b=t[23],d=t[24],p=t[25],_=t[26],E=t[27],M=t[28],N=t[29],T=t[30],A=t[31],W=t[32],L=t[33],G=t[34],Y=t[35],V=t[36],J=t[37],U=t[38],nt=t[39],at=t[40],dt=t[41],yt=t[42],bt=t[43],I=t[44],B=t[45],Z=t[46];let v;t[81]!==a||t[82]!==b||t[83]!==d||t[84]!==p||t[85]!==_||t[86]!==E||t[87]!==M||t[88]!==N||t[89]!==T||t[90]!==A||t[91]!==W||t[92]!==L||t[93]!==G||t[94]!==Y||t[95]!==V||t[96]!==J||t[97]!==U||t[98]!==nt||t[99]!==at||t[100]!==dt||t[101]!==yt||t[102]!==bt||t[103]!==I||t[104]!==B||t[105]!==Z?(v=(0,P.jsx)(a,{breakpoint:bt,layouts:I,style:B,cols:Z,allowOverlap:b,className:d,containerPadding:p,margin:_,isBounded:E,compactType:M,preventCollision:N,rowHeight:T,onLayoutChange:A,droppingItem:W,onDrop:L,onDragStart:G,onDrag:Y,onDragStop:V,onResizeStop:J,isDraggable:U,isDroppable:nt,isResizable:at,draggableHandle:dt,children:yt}),t[81]=a,t[82]=b,t[83]=d,t[84]=p,t[85]=_,t[86]=E,t[87]=M,t[88]=N,t[89]=T,t[90]=A,t[91]=W,t[92]=L,t[93]=G,t[94]=Y,t[95]=V,t[96]=J,t[97]=U,t[98]=nt,t[99]=at,t[100]=dt,t[101]=yt,t[102]=bt,t[103]=I,t[104]=B,t[105]=Z,t[106]=v):v=t[106];let g=v,D,k,q,H,F,$,X;if(t[107]!==u||t[108]!==g||t[109]!==x||t[110]!==z||t[111]!==f||t[112]!==e||t[113]!==y||t[114]!==s||t[115]!==l){X=Symbol.for("react.early_return_sentinel");t:{let K;t[124]===x?K=t[125]:(K=rt=>!x.has(rt.id),t[124]=x,t[125]=K);let ft=u.filter(K);if(f){if(e.bordered){let ut;t[126]!==g||t[127]!==l?(ut=(0,P.jsx)("div",{className:"flex flex-1 flex-col items-center",children:(0,P.jsx)("div",{style:l,className:"bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",children:g})}),t[126]=g,t[127]=l,t[128]=ut):ut=t[128],g=ut}let rt=ft.filter(on),lt;t[129]===y?lt=t[130]:(lt=ut=>(0,P.jsx)(qt,{code:ut.code,mode:y,cellId:ut.id,output:ut.output,status:ut.status,isScrollable:!1,hidden:!1},ut.id),t[129]=y,t[130]=lt),X=(0,P.jsxs)(P.Fragment,{children:[g,(0,P.jsx)("div",{className:"hidden",children:rt.map(lt)})]});break t}if(e.bordered){let rt;t[131]===g?rt=t[132]:(rt=(0,P.jsx)("div",{className:"h-full overflow-auto",children:g}),t[131]=g,t[132]=rt);let lt;t[133]!==l||t[134]!==rt?(lt=(0,P.jsx)("div",{style:l,className:"bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",children:rt}),t[133]=l,t[134]=rt,t[135]=lt):lt=t[135],g=lt}t[136]!==z||t[137]!==e||t[138]!==s?($=(0,P.jsx)(Zr,{layout:e,setLayout:s,isLocked:z,setIsLocked:w}),t[136]=z,t[137]=e,t[138]=s,t[139]=$):$=t[139];let mt;t[140]===Symbol.for("react.memo_cache_sentinel")?(H=ct("relative flex z-10 flex-1 overflow-hidden"),mt=ct("grow overflow-auto transparent-when-disconnected"),t[140]=H,t[141]=mt):(H=t[140],mt=t[141]),t[142]===g?F=t[143]:(F=(0,P.jsx)("div",{className:mt,children:g}),t[142]=g,t[143]=F),D="flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4",t[144]===Symbol.for("react.memo_cache_sentinel")?(k=(0,P.jsx)("div",{className:"text font-bold text-(--slate-20) shrink-0",children:"Outputs"}),t[144]=k):k=t[144];let vt;t[145]!==e.columns||t[146]!==e.rowHeight||t[147]!==y?(vt=rt=>(0,P.jsx)("div",{draggable:!0,unselectable:"on","data-cell-id":rt.id,onDragStart:lt=>{let ut=lt.currentTarget.offsetHeight;O({i:rt.id,w:e.columns/4,h:Math.ceil(ut/e.rowHeight)||1}),lt.dataTransfer.setData("text/plain","")},className:ct(oe,"droppable-element bg-background border-border border overflow-hidden p-2 rounded shrink-0"),children:(0,P.jsx)(qt,{code:rt.code,className:"select-none pointer-events-none",mode:y,cellId:rt.id,output:rt.output,isScrollable:!1,status:rt.status,hidden:!1})},rt.id),t[145]=e.columns,t[146]=e.rowHeight,t[147]=y,t[148]=vt):vt=t[148],q=ft.map(vt)}t[107]=u,t[108]=g,t[109]=x,t[110]=z,t[111]=f,t[112]=e,t[113]=y,t[114]=s,t[115]=l,t[116]=D,t[117]=k,t[118]=q,t[119]=H,t[120]=F,t[121]=$,t[122]=X,t[123]=g}else D=t[116],k=t[117],q=t[118],H=t[119],F=t[120],$=t[121],X=t[122],g=t[123];if(X!==Symbol.for("react.early_return_sentinel"))return X;let tt;t[149]!==D||t[150]!==k||t[151]!==q?(tt=(0,P.jsxs)("div",{className:D,children:[k,q]}),t[149]=D,t[150]=k,t[151]=q,t[152]=tt):tt=t[152];let it;t[153]!==H||t[154]!==F||t[155]!==tt?(it=(0,P.jsxs)("div",{className:H,children:[F,tt]}),t[153]=H,t[154]=F,t[155]=tt,t[156]=it):it=t[156];let st;return t[157]!==$||t[158]!==it?(st=(0,P.jsxs)(P.Fragment,{children:[$,it]}),t[157]=$,t[158]=it,t[159]=st):st=t[159],st};var qt=(0,Q.memo)(r=>{let t=(0,Nt.c)(20),{output:e,cellId:s,status:u,mode:y,code:f,hidden:h,isScrollable:x,side:S,className:O}=r,z;t[0]===u?z=t[1]:(z=le(u),t[0]=u,t[1]=z);let w=z;if((e==null||e.data==="")&&y!=="read"){let l;return t[2]!==O||t[3]!==f?(l=(0,P.jsx)(ia,{className:O,code:f}),t[2]=O,t[3]=f,t[4]=l):l=t[4],l}let j=h&&"invisible",R=x?"overflow-y-auto":"overflow-y-hidden",C=S==="top"&&"flex items-start",m=S==="bottom"&&"flex items-end",c=S==="left"&&"flex justify-start",n=S==="right"&&"flex justify-end",o;t[5]!==O||t[6]!==j||t[7]!==R||t[8]!==C||t[9]!==m||t[10]!==c||t[11]!==n?(o=ct(O,"h-full w-full p-2 overflow-x-auto",j,R,C,m,c,n),t[5]=O,t[6]=j,t[7]=R,t[8]=C,t[9]=m,t[10]=c,t[11]=n,t[12]=o):o=t[12];let i;t[13]!==s||t[14]!==w||t[15]!==e?(i=(0,P.jsx)(Gt,{allowExpand:!1,output:e,cellId:s,stale:w,loading:w}),t[13]=s,t[14]=w,t[15]=e,t[16]=i):i=t[16];let a;return t[17]!==o||t[18]!==i?(a=(0,P.jsx)("div",{className:o,children:i}),t[17]=o,t[18]=i,t[19]=a):a=t[19],a});qt.displayName="GridCell";var Zr=r=>{let t=(0,Nt.c)(38),{layout:e,setLayout:s,isLocked:u,setIsLocked:y}=r,f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=(0,P.jsx)(Tt,{htmlFor:"columns",children:"Columns"}),t[0]=f):f=t[0];let h;t[1]!==e||t[2]!==s?(h=a=>{s({...e,columns:a})},t[1]=e,t[2]=s,t[3]=h):h=t[3];let x;t[4]!==e.columns||t[5]!==h?(x=(0,P.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[f,(0,P.jsx)(ge,{"data-testid":"grid-columns-input",id:"columns",value:e.columns,className:"w-[60px]",placeholder:"# of Columns",minValue:1,onChange:h})]}),t[4]=e.columns,t[5]=h,t[6]=x):x=t[6];let S;t[7]===Symbol.for("react.memo_cache_sentinel")?(S=(0,P.jsx)(Tt,{htmlFor:"rowHeight",children:"Row Height (px)"}),t[7]=S):S=t[7];let O;t[8]!==e||t[9]!==s?(O=a=>{s({...e,rowHeight:a})},t[8]=e,t[9]=s,t[10]=O):O=t[10];let z;t[11]!==e.rowHeight||t[12]!==O?(z=(0,P.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[S,(0,P.jsx)(ge,{"data-testid":"grid-row-height-input",id:"rowHeight",value:e.rowHeight,className:"w-[60px]",placeholder:"Row Height (px)",minValue:1,onChange:O})]}),t[11]=e.rowHeight,t[12]=O,t[13]=z):z=t[13];let w;t[14]===Symbol.for("react.memo_cache_sentinel")?(w=(0,P.jsx)(Tt,{htmlFor:"maxWidth",children:"Max Width (px)"}),t[14]=w):w=t[14];let j;t[15]!==e||t[16]!==s?(j=a=>{s({...e,maxWidth:Number.isNaN(a)?void 0:a})},t[15]=e,t[16]=s,t[17]=j):j=t[17];let R;t[18]!==e.maxWidth||t[19]!==j?(R=(0,P.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[w,(0,P.jsx)(ge,{"data-testid":"grid-max-width-input",id:"maxWidth",value:e.maxWidth,className:"w-[90px]",step:100,placeholder:"Full",onChange:j})]}),t[18]=e.maxWidth,t[19]=j,t[20]=R):R=t[20];let C;t[21]===Symbol.for("react.memo_cache_sentinel")?(C=(0,P.jsxs)(Tt,{className:"flex flex-row items-center gap-1",htmlFor:"lock",children:[(0,P.jsx)(Ro,{className:"h-3 w-3"}),"Bordered"]}),t[21]=C):C=t[21];let m;t[22]!==e||t[23]!==s?(m=a=>{s({...e,bordered:a})},t[22]=e,t[23]=s,t[24]=m):m=t[24];let c;t[25]!==e.bordered||t[26]!==m?(c=(0,P.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[C,(0,P.jsx)(de,{"data-testid":"grid-bordered-switch",id:"lock",checked:e.bordered,size:"sm",onCheckedChange:m})]}),t[25]=e.bordered,t[26]=m,t[27]=c):c=t[27];let n;t[28]===Symbol.for("react.memo_cache_sentinel")?(n=(0,P.jsxs)(Tt,{className:"flex flex-row items-center gap-1",htmlFor:"lock",children:[(0,P.jsx)(Lo,{className:"h-3 w-3"}),"Lock Grid"]}),t[28]=n):n=t[28];let o;t[29]!==u||t[30]!==y?(o=(0,P.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[n,(0,P.jsx)(de,{"data-testid":"grid-lock-switch",id:"lock",checked:u,size:"sm",onCheckedChange:y})]}),t[29]=u,t[30]=y,t[31]=o):o=t[31];let i;return t[32]!==c||t[33]!==o||t[34]!==x||t[35]!==z||t[36]!==R?(i=(0,P.jsxs)("div",{className:"flex flex-row absolute pl-5 top-8 gap-4 w-full justify-end pr-[350px] pb-3 border-b z-50",children:[x,z,R,c,o]}),t[32]=c,t[33]=o,t[34]=x,t[35]=z,t[36]=R,t[37]=i):i=t[37],i},Je=Q.forwardRef((r,t)=>{let e=(0,Nt.c)(30),s,u,y,f,h,x,S,O,z,w;e[0]===r?(s=e[1],u=e[2],y=e[3],f=e[4],h=e[5],x=e[6],S=e[7],O=e[8],z=e[9],w=e[10]):({children:s,isDragging:f,className:u,onDelete:x,isScrollable:h,setIsScrollable:O,side:w,setSide:z,display:y,...S}=r,e[0]=r,e[1]=s,e[2]=u,e[3]=y,e[4]=f,e[5]=h,e[6]=x,e[7]=S,e[8]=O,e[9]=z,e[10]=w);let[j,R]=(0,Q.useState)(),C=j&&"border-(--sky-8) z-20",m=!j&&"hover-actions-parent",c=f&&"bg-(--slate-2) border-border z-20",n;e[11]!==u||e[12]!==C||e[13]!==m||e[14]!==c?(n=ct(u,"relative z-10 hover:z-20","bg-background border-transparent hover:border-(--sky-8) border",C,m,c),e[11]=u,e[12]=C,e[13]=m,e[14]=c,e[15]=n):n=e[15];let o;e[16]!==y||e[17]!==h||e[18]!==x||e[19]!==j||e[20]!==O||e[21]!==z||e[22]!==w?(o=(0,P.jsx)(Jr,{onDelete:x,isScrollable:h,setIsScrollable:O,side:w,setSide:z,display:y,setPopoverOpened:R,popoverOpened:j}),e[16]=y,e[17]=h,e[18]=x,e[19]=j,e[20]=O,e[21]=z,e[22]=w,e[23]=o):o=e[23];let i;return e[24]!==s||e[25]!==t||e[26]!==S||e[27]!==n||e[28]!==o?(i=(0,P.jsxs)("div",{ref:t,...S,className:n,children:[s,o]}),e[24]=s,e[25]=t,e[26]=S,e[27]=n,e[28]=o,e[29]=i):i=e[29],i});Je.displayName="EditableGridCell";var Jr=r=>{let t=(0,Nt.c)(43),{display:e,onDelete:s,side:u,setSide:y,isScrollable:f,setIsScrollable:h,popoverOpened:x,setPopoverOpened:S}=r,O=u==="left"?Ot:u==="right"?xt:void 0,z=!x&&"hover-action",w=e==="top"&&"-top-6 rounded-t",j=e==="bottom"&&"-bottom-6 rounded-b",R;t[0]!==z||t[1]!==w||t[2]!==j?(R=ct("absolute right-0 p-1 bg-(--sky-8) text-white h-6 z-10 flex gap-2",z,w,j),t[0]=z,t[1]=w,t[2]=j,t[3]=R):R=t[3];let C=x==="side",m;t[4]===S?m=t[5]:(m=W=>S(W?"side":void 0),t[4]=S,t[5]=m);let c;t[6]===O?c=t[7]:(c=(0,P.jsx)(fe,{asChild:!0,children:O?(0,P.jsx)(O,{className:"h-4 w-4 opacity-60 hover:opacity-100"}):(0,P.jsx)(wt,{className:"h-4 w-4 opacity-60 hover:opacity-100"})}),t[6]=O,t[7]=c);let n;t[8]!==y||t[9]!==u?(n=co.entries(tn).map(W=>{let[L,G]=W;return(0,P.jsxs)(Et,{onSelect:()=>y(L),children:[(0,P.jsx)(G,{className:"h-4 w-3 mr-2"}),(0,P.jsx)("span",{className:"flex-1",children:uo(L)}),L===u&&(0,P.jsx)(dr,{className:"h-4 w-4"})]},L)}),t[8]=y,t[9]=u,t[10]=n):n=t[10];let o;t[11]===n?o=t[12]:(o=(0,P.jsx)(he,{side:"bottom",children:n}),t[11]=n,t[12]=o);let i;t[13]!==C||t[14]!==m||t[15]!==c||t[16]!==o?(i=(0,P.jsxs)(me,{open:C,onOpenChange:m,children:[c,o]}),t[13]=C,t[14]=m,t[15]=c,t[16]=o,t[17]=i):i=t[17];let a=x==="scroll",l;t[18]===S?l=t[19]:(l=W=>S(W?"scroll":void 0),t[18]=S,t[19]=l);let b;t[20]===Symbol.for("react.memo_cache_sentinel")?(b=(0,P.jsx)(fe,{asChild:!0,children:(0,P.jsx)(je,{className:"h-4 w-4 opacity-60 hover:opacity-100"})}),t[20]=b):b=t[20];let d;t[21]!==f||t[22]!==h?(d=()=>h(!f),t[21]=f,t[22]=h,t[23]=d):d=t[23];let p;t[24]===Symbol.for("react.memo_cache_sentinel")?(p=(0,P.jsx)("span",{className:"flex-1",children:"Scrollable"}),t[24]=p):p=t[24];let _;t[25]!==f||t[26]!==h?(_=(0,P.jsx)(de,{"data-testid":"grid-scrollable-switch",checked:f,size:"sm",onCheckedChange:h}),t[25]=f,t[26]=h,t[27]=_):_=t[27];let E;t[28]!==d||t[29]!==_?(E=(0,P.jsx)(he,{side:"bottom",children:(0,P.jsxs)(Et,{onSelect:d,children:[p,_]})}),t[28]=d,t[29]=_,t[30]=E):E=t[30];let M;t[31]!==a||t[32]!==l||t[33]!==E?(M=(0,P.jsxs)(me,{open:a,onOpenChange:l,children:[b,E]}),t[31]=a,t[32]=l,t[33]=E,t[34]=M):M=t[34];let N;t[35]===Symbol.for("react.memo_cache_sentinel")?(N=(0,P.jsx)(vo,{className:ct(oe,"cursor-move","h-4 w-4 opacity-60 hover:opacity-100")}),t[35]=N):N=t[35];let T;t[36]===s?T=t[37]:(T=(0,P.jsx)(Po,{className:"h-4 w-4 opacity-60 hover:opacity-100",onClick:()=>s()}),t[36]=s,t[37]=T);let A;return t[38]!==i||t[39]!==M||t[40]!==T||t[41]!==R?(A=(0,P.jsxs)("div",{className:R,children:[i,M,N,T]}),t[38]=i,t[39]=M,t[40]=T,t[41]=R,t[42]=A):A=t[42],A};function Qr(r){var t;return typeof((t=r.output)==null?void 0:t.data)=="string"&&r.output.data.includes("marimo-sidebar")}var tn={left:Ot,right:xt};function en(r){return r.i}function rn(r){return r.i}function nn(){window.dispatchEvent(new Event("resize"))}function on(r){return Qr(r)}const an={type:"grid",name:"Grid",validator:ce({columns:_t().min(1),rowHeight:_t().min(1),maxWidth:_t().optional(),bordered:sr().optional(),cells:io(ce({position:so([_t(),_t(),_t(),_t()]).nullable(),scrollable:sr().optional(),alignment:ao(["top","bottom","left","right"]).optional()}))}),deserializeLayout:(r,t)=>{if(r.cells.length===0)return{columns:r.columns,rowHeight:r.rowHeight,scrollableCells:new Set,cellSide:new Map,cells:[]};r.cells.length!==t.length&&lr.warn("Number of cells in layout does not match number of cells in notebook");let e=new Set,s=new Map,u=r.cells.flatMap((y,f)=>{let h=y.position;if(!h)return[];let x=t[f];return x?(y.scrollable&&e.add(x.id),y.side&&s.set(x.id,y.side),{i:x.id,x:h[0],y:h[1],w:h[2],h:h[3]}):[]});return{columns:r.columns,rowHeight:r.rowHeight,maxWidth:r.maxWidth,bordered:r.bordered,cells:u,cellSide:s,scrollableCells:e}},serializeLayout:(r,t)=>{let e=hr.keyBy(r.cells,u=>u.i),s=t.map(u=>{let y=e.get(u.id);if(!y)return{position:null};let f={position:[y.x,y.y,y.w,y.h]};return r.scrollableCells.has(u.id)&&(f.scrollable=!0),r.cellSide.has(u.id)&&(f.side=r.cellSide.get(u.id)),f});return{columns:r.columns,rowHeight:r.rowHeight,maxWidth:r.maxWidth,bordered:r.bordered,cells:s}},Component:Kr,getInitialLayout:()=>({columns:24,rowHeight:20,maxWidth:1400,bordered:!0,scrollableCells:new Set,cellSide:new Map,cells:[]})};var Qe=St(),sn=Q.lazy(()=>Uo(()=>import("./slides-component-HNyCCgoE.js").then(async r=>(await r.__tla,r)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url));const ln=r=>{let t=(0,Qe.c)(11),{cells:e,mode:s}=r,u=s==="read",y;if(t[0]!==e||t[1]!==s){let S;t[3]===s?S=t[4]:(S=O=>O.output==null||O.output.data===""?null:(0,P.jsx)(tr,{cellId:O.id,code:O.code,status:O.status,output:O.output,mode:s},O.id),t[3]=s,t[4]=S),y=e.map(S),t[0]=e,t[1]=s,t[2]=y}else y=t[2];let f;t[5]===y?f=t[6]:(f=(0,P.jsx)(sn,{forceKeyboardNavigation:!0,className:"flex-1",children:y}),t[5]=y,t[6]=f);let h=f;if(u){let S;return t[7]===h?S=t[8]:(S=(0,P.jsx)("div",{className:"p-4 flex flex-col flex-1 max-h-[95%]",children:h}),t[7]=h,t[8]=S),S}let x;return t[9]===h?x=t[10]:(x=(0,P.jsx)("div",{className:"pr-18 pb-5 flex-1 flex flex-col",children:h}),t[9]=h,t[10]=x),x};var tr=(0,Q.memo)(r=>{let t=(0,Qe.c)(6),{output:e,cellId:s,status:u}=r,y;t[0]===u?y=t[1]:(y=le(u),t[0]=u,t[1]=y);let f=y,h;return t[2]!==s||t[3]!==f||t[4]!==e?(h=(0,P.jsx)(Gt,{className:"contents",allowExpand:!1,output:e,cellId:s,stale:f,loading:f}),t[2]=s,t[3]=f,t[4]=e,t[5]=h):h=t[5],h});tr.displayName="Slide";const un={type:"slides",name:"Slides",validator:ce({}),deserializeLayout:(r,t)=>({}),serializeLayout:(r,t)=>({}),Component:ln,getInitialLayout:()=>({})};function cn({value:r,setValue:t}){let[e,s]=Q.useState([]),u=Q.useRef(-1),y=Q.useRef(""),f=Q.useRef(e);return f.current=e,{history:e,navigateUp:Q.useCallback(()=>{let h=f.current;if(h.length===0)return;let x=u.current;x===-1&&(y.current=r);let S=Math.min(x+1,h.length-1);S!==x&&(u.current=S,t(h[h.length-1-S]))},[r,t]),navigateDown:Q.useCallback(()=>{let h=f.current;if(h.length===0)return;let x=u.current;if(x>0){let S=x-1;u.current=S,t(h[h.length-1-S])}else x===0&&(u.current=-1,t(y.current))},[t]),addToHistory:Q.useCallback(h=>{s(x=>x.length===0||x[x.length-1]!==h?[...x,h]:x),u.current=-1,y.current=""},[])}}var dn=St(),pn=(0,Q.memo)(r=>{let t=Q.useRef({});return(0,P.jsx)(oa,{minHeight:"200px",maxHeight:"200px",ref:t,theme:"dark",value:r.code,className:"*:outline-hidden [&>.cm-editor]:pr-0 overflow-hidden dark",readOnly:!0,editable:!1,basicSetup:{lineNumbers:!1},extensions:[la.sh(),bo.updateListener.of(e=>{var s;e.docChanged&&((s=t.current.view)==null||s.dispatch({selection:{anchor:e.state.doc.length,head:e.state.doc.length},scrollIntoView:!0}))})]})});pn.displayName="DebuggerOutput";const fn=r=>{let t=(0,dn.c)(30),{onSubmit:e,onClear:s}=r,u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=ct("m-0 w-9 h-8 bg-(--slate-2) text-(--slate-11) hover:text-(--blue-11) rounded-none hover:bg-(--sky-3) hover:border-(--blue-8)","first:rounded-l-lg first:border-l border-t border-b hover:border","last:rounded-r-lg last:border-r"),t[0]=u):u=t[0];let y=u,f;t[1]===e?f=t[2]:(f=()=>e("n"),t[1]=e,t[2]=f);let h;t[3]===Symbol.for("react.memo_cache_sentinel")?(h=(0,P.jsx)(De,{fontSize:36,className:"w-5 h-5"}),t[3]=h):h=t[3];let x;t[4]===f?x=t[5]:(x=(0,P.jsx)(kt,{content:"Next line",children:(0,P.jsx)(Rt,{variant:"text",size:"icon","data-testid":"debugger-next-button",className:y,onClick:f,children:h})}),t[4]=f,t[5]=x);let S;t[6]===e?S=t[7]:(S=()=>e("c"),t[6]=e,t[7]=S);let O,z;t[8]===Symbol.for("react.memo_cache_sentinel")?(O=ct(y,"text-(--grass-11) hover:text-(--grass-11) hover:bg-(--grass-3) hover:border-(--grass-8)"),z=(0,P.jsx)(Ho,{fontSize:36,className:"w-5 h-5"}),t[8]=O,t[9]=z):(O=t[8],z=t[9]);let w;t[10]===S?w=t[11]:(w=(0,P.jsx)(kt,{content:"Continue execution",children:(0,P.jsx)(Rt,{variant:"text",size:"icon","data-testid":"debugger-continue-button",onClick:S,className:O,children:z})}),t[10]=S,t[11]=w);let j;t[12]===e?j=t[13]:(j=()=>e("bt"),t[12]=e,t[13]=j);let R;t[14]===Symbol.for("react.memo_cache_sentinel")?(R=(0,P.jsx)(Vn,{fontSize:36,className:"w-5 h-5"}),t[14]=R):R=t[14];let C;t[15]===j?C=t[16]:(C=(0,P.jsx)(kt,{content:"Print stack trace",children:(0,P.jsx)(Rt,{variant:"text",size:"icon","data-testid":"debugger-stack-button",className:y,onClick:j,children:R})}),t[15]=j,t[16]=C);let m;t[17]===e?m=t[18]:(m=()=>e("help"),t[17]=e,t[18]=m);let c;t[19]===Symbol.for("react.memo_cache_sentinel")?(c=(0,P.jsx)(ko,{fontSize:36,className:"w-5 h-5"}),t[19]=c):c=t[19];let n;t[20]===m?n=t[21]:(n=(0,P.jsx)(kt,{content:"Help",children:(0,P.jsx)(Rt,{variant:"text",size:"icon","data-testid":"debugger-help-button",className:y,onClick:m,children:c})}),t[20]=m,t[21]=n);let o;t[22]===s?o=t[23]:(o=s&&(0,P.jsx)(kt,{content:"Clear",children:(0,P.jsx)(Rt,{variant:"text",size:"icon","data-testid":"debugger-clear-button",className:ct(y,"text-(--red-11) hover:text-(--red-11) hover:bg-(--red-2) hover:border-(--red-8)"),onClick:s,children:(0,P.jsx)(Vo,{fontSize:36,className:"w-5 h-5"})})}),t[22]=s,t[23]=o);let i;return t[24]!==C||t[25]!==n||t[26]!==o||t[27]!==x||t[28]!==w?(i=(0,P.jsxs)("div",{className:"flex",children:[x,w,C,n,o]}),t[24]=C,t[25]=n,t[26]=o,t[27]=x,t[28]=w,t[29]=i):i=t[29],i};function hn(r=!0){return{onKeyDown:t=>{if(!r)return;let e=t.currentTarget;if(!(t.key.toLowerCase()==="a"&&(t.ctrlKey||t.metaKey)))return;t.preventDefault(),t.stopPropagation();let s=window.getSelection();if(!s)return;let u=document.createRange();u.selectNodeContents(e),s.removeAllRanges(),s.addRange(u)}}}var mn=St(),gn=Kn("marimo:console:wrapText",!1,Zn);function yn(){let r=(0,mn.c)(3),[t,e]=Xn(gn),s;return r[0]!==e||r[1]!==t?(s={wrapText:t,setWrapText:e},r[0]=e,r[1]=t,r[2]=s):s=r[2],s}var Bt=St();be=r=>{let t=(0,Bt.c)(2),e;return t[0]===r?e=t[1]:(e=(0,P.jsx)(go,{children:(0,P.jsx)(bn,{...r})}),t[0]=r,t[1]=e),e};var bn=r=>{let t=(0,Bt.c)(48),e=Q.useRef(null),{wrapText:s,setWrapText:u}=yn(),{consoleOutputs:y,stale:f,cellName:h,cellId:x,onSubmitDebugger:S,onClear:O,onRefactorWithAI:z,className:w}=r,j=y.length>0,R=hn(j),C;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{let M=e.current;if(!M)return;let N=M.scrollHeight-M.clientHeight;N-M.scrollTop<120&&(M.scrollTop=N)},t[0]=C):C=t[0],(0,Q.useLayoutEffect)(C),!j&&Qn(h))return null;let m,c,n,o,i,a,l,b,d;if(t[1]!==x||t[2]!==w||t[3]!==y||t[4]!==j||t[5]!==O||t[6]!==z||t[7]!==S||t[8]!==R||t[9]!==u||t[10]!==f||t[11]!==s){let M=[...y].reverse(),N=M.some(xn),T=M.findIndex(Sn),A;t[21]===y?A=t[22]:(A=()=>y.filter(On).map(jn).join(` +`),t[21]=y,t[22]=A);let W=A;b="relative group",t[23]!==W||t[24]!==j||t[25]!==u||t[26]!==s?(d=j&&(0,P.jsxs)("div",{className:"absolute top-1 right-5 z-10 opacity-0 group-hover:opacity-100 flex gap-1",children:[(0,P.jsx)(Qo,{tooltip:"Copy console output",value:W,className:"h-4 w-4"}),(0,P.jsx)(kt,{content:s?"Disable wrap text":"Wrap text",children:(0,P.jsx)("span",{children:(0,P.jsx)(ze,{"aria-label":"Toggle text wrapping",className:"p-1 rounded bg-transparent text-muted-foreground data-hovered:text-foreground data-selected:text-foreground",isSelected:s,onChange:u,children:(0,P.jsx)(wo,{className:"h-4 w-4"})})})})]}),t[23]=W,t[24]=j,t[25]=u,t[26]=s,t[27]=d):d=t[27],m=f?"This console output is stale":void 0,c="console-output-area",n=e,o=R,i=0;let L=f&&"marimo-output-stale",G=j?"p-5":"p-3";t[28]!==w||t[29]!==L||t[30]!==G?(a=ct("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden",L,G,w),t[28]=w,t[29]=L,t[30]=G,t[31]=a):a=t[31],l=M.map((Y,V)=>{if(Y.channel==="pdb")return null;if(Y.channel==="stdin"){po(typeof Y.data=="string","Expected data to be a string");let J=y.length-V-1;return Y.response==null&&T===V?(0,P.jsx)(vn,{output:Y.data,isPdb:N,onSubmit:U=>S(U,J),onClear:O},V):(0,P.jsx)(wn,{output:Y.data,response:Y.response},V)}return(0,P.jsx)(Q.Fragment,{children:(0,P.jsx)(xo,{cellId:x,onRefactorWithAI:z,message:Y,wrapText:s})},V)}),t[1]=x,t[2]=w,t[3]=y,t[4]=j,t[5]=O,t[6]=z,t[7]=S,t[8]=R,t[9]=u,t[10]=f,t[11]=s,t[12]=m,t[13]=c,t[14]=n,t[15]=o,t[16]=i,t[17]=a,t[18]=l,t[19]=b,t[20]=d}else m=t[12],c=t[13],n=t[14],o=t[15],i=t[16],a=t[17],l=t[18],b=t[19],d=t[20];let p;t[32]!==x||t[33]!==h?(p=(0,P.jsx)(sa,{value:h,cellId:x,className:"bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"}),t[32]=x,t[33]=h,t[34]=p):p=t[34];let _;t[35]!==m||t[36]!==p||t[37]!==c||t[38]!==n||t[39]!==o||t[40]!==i||t[41]!==a||t[42]!==l?(_=(0,P.jsxs)("div",{title:m,"data-testid":c,ref:n,...o,tabIndex:i,className:a,children:[l,p]}),t[35]=m,t[36]=p,t[37]=c,t[38]=n,t[39]=o,t[40]=i,t[41]=a,t[42]=l,t[43]=_):_=t[43];let E;return t[44]!==_||t[45]!==b||t[46]!==d?(E=(0,P.jsxs)("div",{className:b,children:[d,_]}),t[44]=_,t[45]=b,t[46]=d,t[47]=E):E=t[47],E},vn=r=>{let t=(0,Bt.c)(23),[e,s]=Q.useState(""),u;t[0]===e?u=t[1]:(u={value:e,setValue:s},t[0]=e,t[1]=u);let{navigateUp:y,navigateDown:f,addToHistory:h}=cn(u),x;t[2]===r.output?x=t[3]:(x=er(r.output),t[2]=r.output,t[3]=x);let S,O;t[4]===Symbol.for("react.memo_cache_sentinel")?(S=C=>s(C.target.value),O=(0,P.jsx)(zo,{className:"w-5 h-5"}),t[4]=S,t[5]=O):(S=t[4],O=t[5]);let z;t[6]!==h||t[7]!==f||t[8]!==y||t[9]!==r||t[10]!==e?(z=C=>{if(C.key==="ArrowUp"){y(),C.preventDefault();return}if(C.key==="ArrowDown"){f(),C.preventDefault();return}C.key==="Enter"&&!C.shiftKey&&(e&&(h(e),r.onSubmit(e),s("")),C.preventDefault(),C.stopPropagation()),C.key==="Enter"&&C.metaKey&&(C.preventDefault(),C.stopPropagation())},t[6]=h,t[7]=f,t[8]=y,t[9]=r,t[10]=e,t[11]=z):z=t[11];let w;t[12]!==z||t[13]!==e?(w=(0,P.jsx)(Go,{"data-testid":"console-input","data-stdin-blocking":!0,type:"text",autoComplete:"off",autoFocus:!0,value:e,onChange:S,icon:O,className:"m-0 h-8 focus-visible:shadow-xs-solid",placeholder:"stdin",onKeyDownCapture:z}),t[12]=z,t[13]=e,t[14]=w):w=t[14];let j;t[15]!==r.isPdb||t[16]!==r.onClear||t[17]!==r.onSubmit?(j=r.isPdb&&(0,P.jsx)(fn,{onSubmit:r.onSubmit,onClear:r.onClear}),t[15]=r.isPdb,t[16]=r.onClear,t[17]=r.onSubmit,t[18]=j):j=t[18];let R;return t[19]!==x||t[20]!==w||t[21]!==j?(R=(0,P.jsxs)("div",{className:"flex gap-2 items-center pt-2",children:[x,w,j]}),t[19]=x,t[20]=w,t[21]=j,t[22]=R):R=t[22],R},wn=r=>{let t=(0,Bt.c)(7),e;t[0]===r.output?e=t[1]:(e=er(r.output),t[0]=r.output,t[1]=e);let s;t[2]===r.response?s=t[3]:(s=(0,P.jsx)("span",{className:"text-(--sky-11)",children:r.response}),t[2]=r.response,t[3]=s);let u;return t[4]!==e||t[5]!==s?(u=(0,P.jsxs)("div",{className:"flex gap-2 items-center",children:[e,s]}),t[4]=e,t[5]=s,t[6]=u):u=t[6],u},er=r=>r?(0,P.jsx)(Io,{text:r}):null;function xn(r){return typeof r.data=="string"&&r.data.includes("(Pdb)")}function Sn(r){return r.channel==="stdin"}function On(r){return r.channel!=="pdb"}function jn(r){return na(r)}Oe=async function(r){let t=_o(),{filename:e,includeCode:s}=r,u=await t.exportAsHTML({download:!0,includeCode:s,files:ve.INSTANCE.filenames()}),y=ro.basename(e)??"notebook.py";fr(new Blob([u],{type:"text/html"}),pr.toHTML(y))},Xt=function(r,t){return{"data-cell-id":r,"data-cell-name":t,id:Jn.create(r)}};var Dn=St(),_n=30;function Pn(r,t){let e=(0,Dn.c)(5),[s,u]=(0,Q.useState)(!0),y;e[0]!==t||e[1]!==r?(y=()=>{if(t!=="read"){u(!1);return}let h=Oo((r-1)*_n,100,2e3),x=setTimeout(()=>{u(!1)},h);return()=>clearTimeout(x)},e[0]=t,e[1]=r,e[2]=y):y=e[2],lo(y);let f;return e[3]===s?f=e[4]:(f={invisible:s},e[3]=s,e[4]=f),f}var Cn=St();ye=r=>{let t=(0,Cn.c)(15),{invisible:e,appConfig:s,className:u,children:y,innerClassName:f}=r,h;t[0]===u?h=t[1]:(h=ct("px-1 sm:px-16 md:px-20 xl:px-24 print:px-0 print:pb-0","pb-24 sm:pb-12",u),t[0]=u,t[1]=h);let x=s.width==="compact"&&"max-w-(--content-width) min-w-[400px]",S=s.width==="medium"&&"max-w-(--content-width-medium) min-w-[400px]",O=s.width==="columns"&&"w-fit",z=s.width==="full"&&"max-w-full",w=e&&"invisible",j;t[2]!==f||t[3]!==x||t[4]!==S||t[5]!==O||t[6]!==z||t[7]!==w?(j=ct("m-auto","pb-24 sm:pb-12",x,S,O,z,w,f),t[2]=f,t[3]=x,t[4]=S,t[5]=O,t[6]=z,t[7]=w,t[8]=j):j=t[8];let R;t[9]!==y||t[10]!==j?(R=(0,P.jsx)("div",{className:j,children:y}),t[9]=y,t[10]=j,t[11]=R):R=t[11];let C;return t[12]!==h||t[13]!==R?(C=(0,P.jsx)("div",{className:h,children:R}),t[12]=h,t[13]=R,t[14]=C):C=t[14],C};var ae=St(),zn=r=>{let t=(0,ae.c)(33),{cells:e,appConfig:s,mode:u}=r,{invisible:y}=Pn(e.length,u),f=se(Ko),[h]=fo(),x=se(mo),S;t[0]===Symbol.for("react.memo_cache_sentinel")?(S=new URLSearchParams(window.location.search),t[0]=S):S=t[0];let O=S,z;t[1]!==f||t[2]!==x?(z=()=>{if(!x)return!1;let d=O.get(ur.showCode);return d===null?pe()||ho()||f:d==="true"},t[1]=f,t[2]=x,t[3]=z):z=t[3];let[w,j]=(0,Q.useState)(z),R;t[4]!==e||t[5]!==f||t[6]!==u?(R=(()=>{let d=e.some(Nn);if(f)return!0;let p=O.get(ur.includeCode);return u==="read"&&p!=="false"&&d})(),t[4]=e,t[5]=f,t[6]=u,t[7]=R):R=t[7];let C=R,m;t[8]!==C||t[9]!==f||t[10]!==u||t[11]!==w||t[12]!==h?(m=d=>(0,P.jsx)(rr,{cellId:d.id,output:d.output,consoleOutputs:d.consoleOutputs,status:d.status,code:d.code,config:d.config,cellOutputArea:h.display.cell_output,stopped:d.stopped,showCode:w&&C,errored:d.errored,mode:u,runStartTimestamp:d.runStartTimestamp,interrupted:d.interrupted,staleInputs:d.staleInputs,name:d.name,kiosk:f},d.id),t[8]=C,t[9]=f,t[10]=u,t[11]=w,t[12]=h,t[13]=m):m=t[13];let c=m,n;t[14]!==s.width||t[15]!==e||t[16]!==y||t[17]!==c?(n=()=>s.width==="columns"?(0,P.jsx)("div",{className:"flex flex-row gap-8 w-full",children:kn(e).map(d=>{let[p,_]=d;return(0,P.jsx)("div",{className:"flex-1 flex flex-col gap-2 w-(--content-width)",children:_.map(c)},p)})}):e.length===0&&!y?(0,P.jsx)("div",{className:"flex-1 flex flex-col items-center justify-center py-8",children:(0,P.jsxs)(ra,{variant:"info",children:[(0,P.jsx)(ea,{children:"Empty Notebook"}),(0,P.jsx)(ta,{children:"This notebook has no code or outputs."})]})}):(0,P.jsx)(P.Fragment,{children:e.map(c)}),t[14]=s.width,t[15]=e,t[16]=y,t[17]=c,t[18]=n):n=t[18];let o=n,i;t[19]!==C||t[20]!==o||t[21]!==w?(i=w&&C?(0,P.jsxs)("div",{className:"flex flex-col gap-5",children:[" ",o()]}):o(),t[19]=C,t[20]=o,t[21]=w,t[22]=i):i=t[22];let a;t[23]!==C||t[24]!==u||t[25]!==w?(a=u==="read"&&(0,P.jsx)(Rn,{canShowCode:C,showCode:w,onToggleShowCode:()=>j(Tn)}),t[23]=C,t[24]=u,t[25]=w,t[26]=a):a=t[26];let l;t[27]===Symbol.for("react.memo_cache_sentinel")?(l=(0,P.jsx)(aa,{}),t[27]=l):l=t[27];let b;return t[28]!==s||t[29]!==y||t[30]!==i||t[31]!==a?(b=(0,P.jsxs)(ye,{invisible:y,appConfig:s,children:[i,a,l]}),t[28]=s,t[29]=y,t[30]=i,t[31]=a,t[32]=b):b=t[32],b},Rn=r=>{let t=(0,ae.c)(26),{canShowCode:e,showCode:s,onToggleShowCode:u}=r,{readCode:y}=Do(),f=Hn,h=Ln,x;t[0]===y?x=t[1]:(x=async()=>{let m=await y();fr(new Blob([m.contents],{type:"text/plain"}),pr.toPY(document.title))},t[0]=y,t[1]=x);let S=x,O;t[2]===Symbol.for("react.memo_cache_sentinel")?(O=pe(),t[2]=O):O=t[2];let z=O,w;if(t[3]!==e||t[4]!==S||t[5]!==u||t[6]!==s){if(w=[],e){let m,c;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,P.jsx)(Mo,{className:"mr-2",size:14,strokeWidth:1.5}),c=(0,P.jsx)("span",{className:"flex-1",children:"Show code"}),t[8]=m,t[9]=c):(m=t[8],c=t[9]);let n;t[10]===s?n=t[11]:(n=s&&(0,P.jsx)(dr,{className:"h-4 w-4"}),t[10]=s,t[11]=n);let o;t[12]!==u||t[13]!==n?(o=(0,P.jsxs)(Et,{onSelect:u,"data-testid":"notebook-action-show-code",children:[m,c,n]},"show-code"),t[12]=u,t[13]=n,t[14]=o):o=t[14];let i;t[15]===Symbol.for("react.memo_cache_sentinel")?(i=(0,P.jsx)(mr,{},"show-code-separator"),t[15]=i):i=t[15],w.push(o,i)}if(!z){let m;if(t[16]===Symbol.for("react.memo_cache_sentinel")?(m=(0,P.jsxs)(Et,{onSelect:h,"data-testid":"notebook-action-download-html",children:[(0,P.jsx)(Se,{className:"mr-2",size:14,strokeWidth:1.5}),"Download as HTML"]},"download-html"),t[16]=m):m=t[16],w.push(m),e){let o;t[17]===Symbol.for("react.memo_cache_sentinel")?(o=(0,P.jsx)(we,{className:"mr-2",size:14,strokeWidth:1.5}),t[17]=o):o=t[17];let i;t[18]===S?i=t[19]:(i=(0,P.jsxs)(Et,{onSelect:S,"data-testid":"notebook-action-download-python",children:[o,"Download as .py"]},"download-python"),t[18]=S,t[19]=i),w.push(i)}let c;t[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,P.jsx)(mr,{},"download-separator"),t[20]=c):c=t[20];let n;t[21]===Symbol.for("react.memo_cache_sentinel")?(n=(0,P.jsxs)(Et,{onSelect:f,"data-testid":"notebook-action-download-png",children:[(0,P.jsx)(To,{className:"mr-2",size:14,strokeWidth:1.5}),"Download as PNG"]},"download-png"),t[21]=n):n=t[21],w.push(c,n)}t[3]=e,t[4]=S,t[5]=u,t[6]=s,t[7]=w}else w=t[7];if(w.length===0)return null;let j;t[22]===Symbol.for("react.memo_cache_sentinel")?(j=ct("right-0 top-0 z-50 m-4 no-print flex gap-2 print:hidden",pe()?"absolute":"fixed"),t[22]=j):j=t[22];let R;t[23]===Symbol.for("react.memo_cache_sentinel")?(R=(0,P.jsx)(fe,{asChild:!0,children:(0,P.jsx)(Rt,{variant:"secondary",size:"xs",children:(0,P.jsx)(No,{className:"w-4 h-4"})})}),t[23]=R):R=t[23];let C;return t[24]===w?C=t[25]:(C=(0,P.jsx)("div",{"data-testid":"notebook-actions-dropdown",className:j,children:(0,P.jsxs)(me,{modal:!1,children:[R,(0,P.jsx)(he,{align:"end",className:"no-print w-[220px]",children:w})]})}),t[24]=w,t[25]=C),C},rr=(0,Q.memo)(r=>{let t=(0,ae.c)(55),{output:e,consoleOutputs:s,cellOutputArea:u,cellId:y,status:f,stopped:h,errored:x,config:S,interrupted:O,staleInputs:z,runStartTimestamp:w,code:j,showCode:R,mode:C,name:m,kiosk:c}=r,n=(0,Q.useRef)(null),o;t[0]!==O||t[1]!==e||t[2]!==w||t[3]!==z||t[4]!==f?(o=Un({status:f,output:e,interrupted:O,runStartTimestamp:w,staleInputs:z},!1),t[0]=O,t[1]=e,t[2]=w,t[3]=z,t[4]=f,t[5]=o):o=t[5];let i=o,a;t[6]===f?a=t[7]:(a=le(f),t[6]=f,t[7]=a);let l=a,b=c&&C!=="present",d;if(t[8]!==j||t[9]!==x||t[10]!==b||t[11]!==R||t[12]!==h){let A=new ir().isSupported(j),W=!R&&!b;d=ct("marimo-cell","hover-actions-parent empty:invisible",{published:W,"has-error":x,stopped:h,borderless:A&&!W}),t[8]=j,t[9]=x,t[10]=b,t[11]=R,t[12]=h,t[13]=d}else d=t[13];let p=d;if(C==="read"&&R||b){let A;t[14]!==y||t[15]!==l||t[16]!==e||t[17]!==i?(A=(0,P.jsx)(Gt,{allowExpand:!0,output:e,className:cr.outputArea,cellId:y,stale:i,loading:l}),t[14]=y,t[15]=l,t[16]=e,t[17]=i,t[18]=A):A=t[18];let W=A,L;t[19]!==j||t[20]!==e?(L=Mn(j,e),t[19]=j,t[20]=e,t[21]=L):L=t[21];let G=L,Y;t[22]!==y||t[23]!==m?(Y=Xt(y,m),t[22]=y,t[23]=m,t[24]=Y):Y=t[24];let V=u==="above"&&W,J;t[25]!==j||t[26]!==S||t[27]!==G||t[28]!==c?(J=!G&&(0,P.jsx)("div",{className:"tray",children:(0,P.jsx)(Wo,{initiallyHideCode:S.hide_code||c,code:j})}),t[25]=j,t[26]=S,t[27]=G,t[28]=c,t[29]=J):J=t[29];let U=u==="below"&&W,nt;t[30]!==y||t[31]!==s||t[32]!==m||t[33]!==i?(nt=(0,P.jsx)(be,{consoleOutputs:s,stale:i,cellName:m,onSubmitDebugger:Wn,cellId:y,debuggerActive:!1}),t[30]=y,t[31]=s,t[32]=m,t[33]=i,t[34]=nt):nt=t[34];let at;return t[35]!==p||t[36]!==nt||t[37]!==Y||t[38]!==V||t[39]!==J||t[40]!==U?(at=(0,P.jsxs)("div",{tabIndex:-1,ref:n,className:p,...Y,children:[V,J,U,nt]}),t[35]=p,t[36]=nt,t[37]=Y,t[38]=V,t[39]=J,t[40]=U,t[41]=at):at=t[41],at}let _=to(e==null?void 0:e.mimetype);if(x||O||h||_)return null;let E;t[42]!==y||t[43]!==m?(E=Xt(y,m),t[42]=y,t[43]=m,t[44]=E):E=t[44];let M=C==="edit",N;t[45]!==y||t[46]!==l||t[47]!==e||t[48]!==i||t[49]!==M?(N=(0,P.jsx)(Gt,{allowExpand:M,output:e,className:cr.outputArea,cellId:y,stale:i,loading:l}),t[45]=y,t[46]=l,t[47]=e,t[48]=i,t[49]=M,t[50]=N):N=t[50];let T;return t[51]!==p||t[52]!==E||t[53]!==N?(T=(0,P.jsx)("div",{tabIndex:-1,ref:n,className:p,...E,children:N}),t[51]=p,t[52]=E,t[53]=N,t[54]=T):T=t[54],T});rr.displayName="VerticalCell";const En={type:"vertical",name:"Vertical",validator:oo(),Component:zn,deserializeLayout:r=>r,serializeLayout:r=>r,getInitialLayout:()=>null};function kn(r){let t=new Map,e=0;return r.forEach(s=>{var y;let u=s.config.column??e;e=u,t.has(u)||t.set(u,[]),(y=t.get(u))==null||y.push(s)}),[...t.entries()].sort(([s],[u])=>s-u)}function Mn(r,t){let e=new ir().isSupported(r),s=t!==null&&!Eo(t);return e&&s||r.trim()===""}function Nn(r){return!!r.code}function Tn(r){return!r}async function Hn(){let r=document.getElementById("App");r&&await Co({element:r,filename:document.title})}async function Ln(){document.getElementById("App")&&await Oe({filename:document.title,includeCode:!0})}function Wn(){return null}Yt=[an,un,En],vr=function({type:r,data:t,cells:e}){let s=Yt.find(u=>u.type===r);if(s===void 0)throw Error(`Unknown layout type: ${r}`);return s.deserializeLayout(t,e)},xe=function(){return{selectedLayout:"vertical",layoutData:{}}};let nr;({valueAtom:Vt,useActions:nr}=jo(xe,{setLayoutView:(r,t)=>({...r,selectedLayout:t}),setLayoutData:(r,t)=>({...r,selectedLayout:t.layoutView,layoutData:{...r.layoutData,[t.layoutView]:t.data}}),setCurrentLayoutData:(r,t)=>({...r,layoutData:{...r.layoutData,[r.selectedLayout]:t}})})),yr=()=>se(Vt),br=()=>nr(),wr=function(){let r=eo(),{layoutData:t,selectedLayout:e}=Gn.get(Vt);if(e==="vertical"||t===void 0)return null;let s=t[e],u=Yt.find(y=>y.type===e);return u===void 0?(lr.error(`Unknown layout type: ${e}`),null):{type:e,data:u.serializeLayout(s,Yn(r))}}});export{ua as __tla,yr as a,ye as c,be as d,ve as f,br as i,Xt as l,we as m,xe as n,Yt as o,Se as p,Vt as r,vr as s,wr as t,Oe as u}; diff --git a/docs/assets/lean-DKBtmdIN.js b/docs/assets/lean-DKBtmdIN.js new file mode 100644 index 0000000..dd4953e --- /dev/null +++ b/docs/assets/lean-DKBtmdIN.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Lean 4","fileTypes":[],"name":"lean","patterns":[{"include":"#comments"},{"match":"\\\\b(Prop|Type|Sort)\\\\b","name":"storage.type.lean4"},{"match":"\\\\battribute\\\\b\\\\s*\\\\[[^]]*]","name":"storage.modifier.lean4"},{"match":"@\\\\[[^]]*]","name":"storage.modifier.lean4"},{"match":"\\\\b(?\\\\[{|\u2983])","name":"meta.definitioncommand.lean4","patterns":[{"include":"#comments"},{"include":"#definitionName"},{"match":","}]},{"match":"\\\\b(?])=?)|[/=]","name":"keyword.operator.comparison.less"},{"match":":","name":"punctuation.separator.key-value.less"},{"match":"portrait|landscape","name":"support.constant.property-value.less"},{"include":"#numeric-values"},{"match":"/","name":"keyword.operator.arithmetic.less"},{"include":"#var-function"},{"include":"#less-variables"},{"include":"#less-variable-interpolation"}]},{"include":"#style-function"},{"match":"--|-?(?:[A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))(?:[-A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}\\\\d]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))*","name":"variable.parameter.container-name.css"},{"include":"#arbitrary-repetition"},{"include":"#less-variables"}]}]},{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.less"}},"end":"(?=})","patterns":[{"include":"#rule-list-body"},{"include":"$self"}]}]},"at-counter-style":{"begin":"\\\\s*((@)counter-style)\\\\b\\\\s+(?:(?i:\\\\b(decimal|none)\\\\b)|(-?(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*))\\\\s*(?=\\\\{|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.counter-style.less"},"2":{"name":"punctuation.definition.keyword.less"},"3":{"name":"invalid.illegal.counter-style-name.less"},"4":{"name":"entity.other.counter-style-name.css"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.block.begin.less"}},"name":"meta.at-rule.counter-style.less","patterns":[{"include":"#comment-block"},{"include":"#rule-list"}]},"at-custom-media":{"begin":"(?=\\\\s*@custom-media\\\\b)","end":"\\\\s*(?=;)","name":"meta.at-rule.custom-media.less","patterns":[{"captures":{"0":{"name":"punctuation.section.property-list.less"}},"match":"\\\\s*;"},{"captures":{"1":{"name":"keyword.control.at-rule.custom-media.less"},"2":{"name":"punctuation.definition.keyword.less"},"3":{"name":"support.constant.custom-media.less"}},"match":"\\\\s*((@)custom-media)(?=.*?)"},{"include":"#media-query-list"}]},"at-font-face":{"begin":"\\\\s*((@)font-face)\\\\s*(?=\\\\{|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.font-face.less"},"2":{"name":"punctuation.definition.keyword.less"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.less"}},"name":"meta.at-rule.font-face.less","patterns":[{"include":"#comment-block"},{"include":"#rule-list"}]},"at-import":{"begin":"\\\\s*((@)import)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.at-rule.import.less"},"2":{"name":"punctuation.definition.keyword.less"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.less"}},"name":"meta.at-rule.import.less","patterns":[{"include":"#url-function"},{"include":"#less-variables"},{"begin":"(?<=([\\"'])|([\\"']\\\\)))\\\\s*","end":"\\\\s*(?=;)","patterns":[{"include":"#media-query"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.group.less","patterns":[{"match":"reference|inline|less|css|once|multiple|optional","name":"constant.language.import-directive.less"},{"include":"#comma-delimiter"}]},{"include":"#literal-string"}]},"at-keyframes":{"begin":"\\\\s*((@)keyframes)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"keyword.control.at-rule.keyframe.less"},"2":{"name":"punctuation.definition.keyword.less"},"4":{"name":"support.constant.keyframe.less"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.less"}},"patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.less"}},"end":"(?=})","patterns":[{"captures":{"1":{"name":"keyword.other.keyframe-selector.less"},"2":{"name":"constant.numeric.less"},"3":{"name":"keyword.other.unit.less"}},"match":"\\\\s*(?:(from|to)|((?:\\\\.[0-9]+|[0-9]+(?:\\\\.[0-9]*)?)(%)))\\\\s*,?\\\\s*"},{"include":"$self"}]},{"begin":"\\\\s*(?=[^;{])","end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.keyframe.less","patterns":[{"include":"#keyframe-name"},{"include":"#arbitrary-repetition"}]}]},"at-media":{"begin":"(?=\\\\s*@media\\\\b)","end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.less"}},"patterns":[{"begin":"\\\\s*((@)media)","beginCaptures":{"1":{"name":"keyword.control.at-rule.media.less"},"2":{"name":"punctuation.definition.keyword.less"},"3":{"name":"support.constant.media.less"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.media.less","patterns":[{"include":"#media-query-list"}]},{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.less"}},"end":"(?=})","patterns":[{"include":"#rule-list-body"},{"include":"$self"}]}]},"at-namespace":{"begin":"\\\\s*((@)namespace)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.at-rule.namespace.less"},"2":{"name":"punctuation.definition.keyword.less"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.less"}},"name":"meta.at-rule.namespace.less","patterns":[{"include":"#url-function"},{"include":"#literal-string"},{"match":"(-?(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)","name":"entity.name.constant.namespace-prefix.less"}]},"at-page":{"captures":{"1":{"name":"keyword.control.at-rule.page.less"},"2":{"name":"punctuation.definition.keyword.less"},"3":{"name":"punctuation.definition.entity.less"},"4":{"name":"entity.other.attribute-name.pseudo-class.less"}},"match":"\\\\s*((@)page)\\\\s*(?:(:)(first|left|right))?\\\\s*(?=\\\\{|$)","name":"meta.at-rule.page.less","patterns":[{"include":"#comment-block"},{"include":"#rule-list"}]},"at-rules":{"patterns":[{"include":"#at-charset"},{"include":"#at-container"},{"include":"#at-counter-style"},{"include":"#at-custom-media"},{"include":"#at-font-face"},{"include":"#at-media"},{"include":"#at-import"},{"include":"#at-keyframes"},{"include":"#at-namespace"},{"include":"#at-page"},{"include":"#at-supports"},{"include":"#at-viewport"}]},"at-supports":{"begin":"(?=\\\\s*@supports\\\\b)","end":"(?=\\\\s*)(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.less"}},"patterns":[{"begin":"\\\\s*((@)supports)","beginCaptures":{"1":{"name":"keyword.control.at-rule.supports.less"},"2":{"name":"punctuation.definition.keyword.less"},"3":{"name":"support.constant.supports.less"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.supports.less","patterns":[{"include":"#at-supports-operators"},{"include":"#at-supports-parens"}]},{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.property-list.begin.less"}},"end":"(?=})","patterns":[{"include":"#rule-list-body"},{"include":"$self"}]}]},"at-supports-operators":{"match":"\\\\b(?:and|or|not)\\\\b","name":"keyword.operator.logic.less"},"at-supports-parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.group.less","patterns":[{"include":"#at-supports-operators"},{"include":"#at-supports-parens"},{"include":"#rule-list-body"}]},"attr-function":{"begin":"\\\\b(attr)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#qualified-name"},{"include":"#literal-string"},{"begin":"(-?(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)","end":"(?=\\\\))","name":"entity.other.attribute-name.less","patterns":[{"match":"\\\\b((?i:em|ex|ch|rem)|(?i:v(?:[hw]|min|max))|(?i:cm|mm|q|in|pt|pc|px|fr)|(?i:deg|grad|rad|turn)|(?i:m??s)|(?i:k??Hz)|(?i:dp(?:i|cm|px)))\\\\b","name":"keyword.other.unit.less"},{"include":"#comma-delimiter"},{"include":"#property-value-constants"},{"include":"#numeric-values"}]},{"include":"#color-values"}]}]},"builtin-functions":{"patterns":[{"include":"#attr-function"},{"include":"#calc-function"},{"include":"#color-functions"},{"include":"#counter-functions"},{"include":"#cross-fade-function"},{"include":"#cubic-bezier-function"},{"include":"#filter-function"},{"include":"#fit-content-function"},{"include":"#format-function"},{"include":"#gradient-functions"},{"include":"#grid-repeat-function"},{"include":"#image-function"},{"include":"#less-functions"},{"include":"#local-function"},{"include":"#minmax-function"},{"include":"#regexp-function"},{"include":"#shape-functions"},{"include":"#steps-function"},{"include":"#symbols-function"},{"include":"#transform-functions"},{"include":"#url-function"},{"include":"#var-function"}]},"calc-function":{"begin":"\\\\b(calc)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.calc.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-strings"},{"include":"#var-function"},{"include":"#calc-function"},{"include":"#attr-function"},{"include":"#less-math"},{"include":"#relative-color"}]}]},"color-adjuster-operators":{"match":"[-*+](?=\\\\s+)","name":"keyword.operator.less"},"color-functions":{"patterns":[{"begin":"\\\\b(rgba?)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-strings"},{"include":"#less-variables"},{"include":"#var-function"},{"include":"#comma-delimiter"},{"include":"#value-separator"},{"include":"#percentage-type"},{"include":"#number-type"}]}]},{"begin":"\\\\b(hsla?|hwb|oklab|oklch|lab|lch)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"},{"include":"#less-strings"},{"include":"#less-variables"},{"include":"#var-function"},{"include":"#comma-delimiter"},{"include":"#angle-type"},{"include":"#percentage-type"},{"include":"#number-type"},{"include":"#calc-function"},{"include":"#value-separator"}]}]},{"begin":"\\\\b(light-dark)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"},{"include":"#comma-delimiter"}]}]},{"include":"#less-color-functions"}]},"color-values":{"patterns":[{"include":"#color-functions"},{"include":"#less-functions"},{"include":"#less-variables"},{"include":"#var-function"},{"match":"\\\\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\\\\b","name":"support.constant.color.w3c-standard-color-name.less"},{"match":"\\\\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\\\\b","name":"support.constant.color.w3c-extended-color-keywords.less"},{"match":"\\\\b((?i)currentColor|transparent)\\\\b","name":"support.constant.color.w3c-special-color-keyword.less"},{"captures":{"1":{"name":"punctuation.definition.constant.less"}},"match":"(#)(\\\\h{3}|\\\\h{4}|\\\\h{6}|\\\\h{8})\\\\b","name":"constant.other.color.rgb-value.less"},{"include":"#relative-color"}]},"comma-delimiter":{"captures":{"1":{"name":"punctuation.separator.less"}},"match":"\\\\s*(,)\\\\s*"},"comment-block":{"patterns":[{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.less"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.less"}},"name":"comment.block.less"},{"include":"#comment-line"}]},"comment-line":{"captures":{"1":{"name":"punctuation.definition.comment.less"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.less"},"counter-functions":{"patterns":[{"begin":"\\\\b(counter)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-strings"},{"include":"#less-variables"},{"include":"#var-function"},{"match":"--(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))+|-?(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*","name":"entity.other.counter-name.less"},{"begin":"(?=,)","end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"match":"\\\\b((?i:arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)|none)\\\\b","name":"support.constant.property-value.counter-style.less"}]}]}]},{"begin":"\\\\b(counters)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"(-?(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)","name":"entity.other.counter-name.less string.unquoted.less"},{"begin":"(?=,)","end":"(?=\\\\))","patterns":[{"include":"#less-strings"},{"include":"#less-variables"},{"include":"#var-function"},{"include":"#literal-string"},{"include":"#comma-delimiter"},{"match":"\\\\b((?i:arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)|none)\\\\b","name":"support.constant.property-value.counter-style.less"}]}]}]}]},"cross-fade-function":{"patterns":[{"begin":"\\\\b(cross-fade)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.image.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#percentage-type"},{"include":"#color-values"},{"include":"#image-type"},{"include":"#literal-string"},{"include":"#unquoted-string"}]}]}]},"cubic-bezier-function":{"begin":"\\\\b(cubic-bezier)(\\\\()","beginCaptures":{"1":{"name":"support.function.timing.less"},"2":{"name":"punctuation.definition.group.begin.less"}},"contentName":"meta.group.less","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"include":"#less-functions"},{"include":"#calc-function"},{"include":"#less-variables"},{"include":"#var-function"},{"include":"#comma-delimiter"},{"include":"#number-type"}]},"custom-property-name":{"captures":{"1":{"name":"punctuation.definition.custom-property.less"},"2":{"name":"support.type.custom-property.name.less"}},"match":"\\\\s*(--)((?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))+)","name":"support.type.custom-property.less"},"dimensions":{"patterns":[{"include":"#angle-type"},{"include":"#frequency-type"},{"include":"#time-type"},{"include":"#percentage-type"},{"include":"#length-type"}]},"filter-function":{"begin":"\\\\b(filter)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","name":"meta.group.less","patterns":[{"include":"#comma-delimiter"},{"include":"#image-type"},{"include":"#literal-string"},{"include":"#filter-functions"}]}]},"filter-functions":{"patterns":[{"include":"#less-functions"},{"begin":"\\\\b(blur)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#length-type"}]}]},{"begin":"\\\\b(brightness|contrast|grayscale|invert|opacity|saturate|sepia)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#percentage-type"},{"include":"#number-type"},{"include":"#less-functions"}]}]},{"begin":"\\\\b(drop-shadow)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#length-type"},{"include":"#color-values"}]}]},{"begin":"\\\\b(hue-rotate)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.filter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#angle-type"}]}]}]},"fit-content-function":{"begin":"\\\\b(fit-content)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.grid.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#var-function"},{"include":"#calc-function"},{"include":"#percentage-type"},{"include":"#length-type"}]}]},"format-function":{"patterns":[{"begin":"\\\\b(format)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.format.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#literal-string"}]}]}]},"frequency-type":{"captures":{"1":{"name":"keyword.other.unit.less"}},"match":"(?i:[-+]?(?:\\\\d*\\\\.\\\\d+(?:[Ee][-+]?\\\\d+)*|[-+]?\\\\d+)(k??Hz))\\\\b","name":"constant.numeric.less"},"global-property-values":{"match":"\\\\b(?:initial|inherit|unset|revert-layer|revert)\\\\b","name":"support.constant.property-value.less"},"gradient-functions":{"patterns":[{"begin":"\\\\b((?:repeating-)?linear-gradient)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.gradient.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#var-function"},{"include":"#angle-type"},{"include":"#color-values"},{"include":"#percentage-type"},{"include":"#length-type"},{"include":"#comma-delimiter"},{"match":"\\\\bto\\\\b","name":"keyword.other.less"},{"match":"\\\\b(top|right|bottom|left)\\\\b","name":"support.constant.property-value.less"}]}]},{"begin":"\\\\b((?:repeating-)?radial-gradient)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.gradient.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#var-function"},{"include":"#color-values"},{"include":"#percentage-type"},{"include":"#length-type"},{"include":"#comma-delimiter"},{"match":"\\\\b(at|circle|ellipse)\\\\b","name":"keyword.other.less"},{"match":"\\\\b(top|right|bottom|left|center|((?:farth|clos)est)-(corner|side))\\\\b","name":"support.constant.property-value.less"}]}]}]},"grid-repeat-function":{"begin":"\\\\b(repeat)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.grid.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#var-function"},{"include":"#length-type"},{"include":"#percentage-type"},{"include":"#minmax-function"},{"include":"#integer-type"},{"match":"\\\\b(auto-(fi(?:ll|t)))\\\\b","name":"support.keyword.repetitions.less"},{"match":"\\\\b(((m(?:ax|in))-content)|auto)\\\\b","name":"support.constant.property-value.less"}]}]},"image-function":{"begin":"\\\\b(image)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.image.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#image-type"},{"include":"#literal-string"},{"include":"#color-values"},{"include":"#comma-delimiter"},{"include":"#unquoted-string"}]}]},"image-type":{"patterns":[{"include":"#cross-fade-function"},{"include":"#gradient-functions"},{"include":"#image-function"},{"include":"#url-function"}]},"important":{"captures":{"1":{"name":"punctuation.separator.less"}},"match":"(!)\\\\s*important","name":"keyword.other.important.less"},"integer-type":{"match":"[-+]?\\\\d+","name":"constant.numeric.less"},"keyframe-name":{"begin":"\\\\s*(-?(?:[_a-z[^\\\\x00-\\\\x7F]]|(?:(:?\\\\\\\\[0-9a-f]{1,6}(\\\\r\\\\n|[\\\\t\\\\n\\\\f\\\\r\\\\s])?)|\\\\\\\\[^\\\\n\\\\f\\\\r0-9a-f]))(?:[-0-9_a-z[^\\\\x00-\\\\x7F]]|(?:(:?\\\\\\\\[0-9a-f]{1,6}(\\\\r\\\\n|[\\\\t\\\\n\\\\f\\\\r])?)|\\\\\\\\[^\\\\n\\\\f\\\\r0-9a-f]))*)?","beginCaptures":{"1":{"name":"variable.other.constant.animation-name.less"}},"end":"\\\\s*(?:(,)|(?=[;{]))","endCaptures":{"1":{"name":"punctuation.definition.arbitrary-repetition.less"}}},"length-type":{"patterns":[{"captures":{"1":{"name":"keyword.other.unit.less"}},"match":"[-+]?(?:\\\\d+\\\\.\\\\d+|\\\\.?\\\\d+)(?:[Ee][-+]?\\\\d+)?(em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|[mq]|in|pt|pc|px|fr|dpi|dpcm|dppx|x)","name":"constant.numeric.less"},{"match":"\\\\b[-+]?0\\\\b","name":"constant.numeric.less"}]},"less-boolean-function":{"begin":"\\\\b(boolean)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.boolean.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-logical-comparisons"}]}]},"less-color-blend-functions":{"patterns":[{"begin":"\\\\b(multiply|screen|overlay|(soft|hard)light|difference|exclusion|negation|average)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-blend.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#var-function"},{"include":"#comma-delimiter"},{"include":"#color-values"}]}]}]},"less-color-channel-functions":{"patterns":[{"begin":"\\\\b(hue|saturation|lightness|hsv(hue|saturation|value)|red|green|blue|alpha|luma|luminance)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-definition.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"}]}]}]},"less-color-definition-functions":{"patterns":[{"begin":"\\\\b(argb)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-definition.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#var-function"},{"include":"#color-values"}]}]},{"begin":"\\\\b(hsva?)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#integer-type"},{"include":"#percentage-type"},{"include":"#number-type"},{"include":"#less-strings"},{"include":"#less-variables"},{"include":"#var-function"},{"include":"#calc-function"},{"include":"#comma-delimiter"}]}]}]},"less-color-functions":{"patterns":[{"include":"#less-color-blend-functions"},{"include":"#less-color-channel-functions"},{"include":"#less-color-definition-functions"},{"include":"#less-color-operation-functions"}]},"less-color-operation-functions":{"patterns":[{"begin":"\\\\b(fade|shade|tint)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-operation.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"},{"include":"#comma-delimiter"},{"include":"#percentage-type"}]}]},{"begin":"\\\\b(spin)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-operation.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"},{"include":"#comma-delimiter"},{"include":"#number-type"}]}]},{"begin":"\\\\b(((de)?saturate)|((light|dark)en)|(fade(in|out)))(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-operation.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"},{"include":"#comma-delimiter"},{"include":"#percentage-type"},{"match":"\\\\brelative\\\\b","name":"constant.language.relative.less"}]}]},{"begin":"\\\\b(contrast)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-operation.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"},{"include":"#comma-delimiter"},{"include":"#percentage-type"}]}]},{"begin":"\\\\b(greyscale)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-operation.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"}]}]},{"begin":"\\\\b(mix)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color-operation.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#color-values"},{"include":"#comma-delimiter"},{"include":"#less-math"},{"include":"#percentage-type"}]}]}]},"less-extend":{"begin":"(:)(extend)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"},"2":{"name":"entity.other.attribute-name.pseudo-class.extend.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"\\\\ball\\\\b","name":"constant.language.all.less"},{"include":"#selectors"}]}]},"less-functions":{"patterns":[{"include":"#less-boolean-function"},{"include":"#less-color-functions"},{"include":"#less-if-function"},{"include":"#less-list-functions"},{"include":"#less-math-functions"},{"include":"#less-misc-functions"},{"include":"#less-string-functions"},{"include":"#less-type-functions"}]},"less-if-function":{"begin":"\\\\b(if)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.if.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-mixin-guards"},{"include":"#comma-delimiter"},{"include":"#property-values"}]}]},"less-list-functions":{"patterns":[{"begin":"\\\\b(length)(?=\\\\()\\\\b","beginCaptures":{"1":{"name":"support.function.length.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#property-values"},{"include":"#comma-delimiter"}]}]},{"begin":"\\\\b(extract)(?=\\\\()\\\\b","beginCaptures":{"1":{"name":"support.function.extract.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#property-values"},{"include":"#comma-delimiter"},{"include":"#integer-type"}]}]},{"begin":"\\\\b(range)(?=\\\\()\\\\b","beginCaptures":{"1":{"name":"support.function.range.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#property-values"},{"include":"#comma-delimiter"},{"include":"#integer-type"}]}]}]},"less-logical-comparisons":{"patterns":[{"captures":{"1":{"name":"keyword.operator.logical.less"}},"match":"\\\\s*(=|(([<>])=?))\\\\s*"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.group.less","patterns":[{"include":"#less-logical-comparisons"}]},{"match":"\\\\btrue|false\\\\b","name":"constant.language.less"},{"match":",","name":"punctuation.separator.less"},{"include":"#property-values"},{"include":"#selectors"},{"include":"#unquoted-string"}]},"less-math":{"patterns":[{"match":"[-*+/]","name":"keyword.operator.arithmetic.less"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.group.less","patterns":[{"include":"#less-math"}]},{"include":"#numeric-values"},{"include":"#less-variables"}]},"less-math-functions":{"patterns":[{"begin":"\\\\b(ceil|floor|percentage|round|sqrt|abs|a?(sin|cos|tan))(?=\\\\()","beginCaptures":{"1":{"name":"support.function.math.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#numeric-values"}]}]},{"captures":{"2":{"name":"support.function.math.less"},"3":{"name":"punctuation.definition.group.begin.less"},"4":{"name":"punctuation.definition.group.end.less"}},"match":"((pi)(\\\\()(\\\\)))","name":"meta.function-call.less"},{"begin":"\\\\b(pow|m(od|in|ax))(?=\\\\()","beginCaptures":{"1":{"name":"support.function.math.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#numeric-values"},{"include":"#comma-delimiter"}]}]}]},"less-misc-functions":{"patterns":[{"begin":"\\\\b(color)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.color.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#literal-string"}]}]},{"begin":"\\\\b(image-(size|width|height))(?=\\\\()","beginCaptures":{"1":{"name":"support.function.image.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#literal-string"},{"include":"#unquoted-string"}]}]},{"begin":"\\\\b(convert|unit)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.convert.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#numeric-values"},{"include":"#literal-string"},{"include":"#comma-delimiter"},{"match":"(([cm])?m|in|p([ctx])|m?s|g?rad|deg|turn|%|r?em|ex|ch)","name":"keyword.other.unit.less"}]}]},{"begin":"\\\\b(data-uri)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.data-uri.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#literal-string"},{"captures":{"1":{"name":"punctuation.separator.less"}},"match":"\\\\s*(,)"}]}]},{"captures":{"2":{"name":"punctuation.definition.group.begin.less"},"3":{"name":"punctuation.definition.group.end.less"}},"match":"\\\\b(default(\\\\()(\\\\)))\\\\b","name":"support.function.default.less"},{"begin":"\\\\b(get-unit)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.get-unit.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#dimensions"}]}]},{"begin":"\\\\b(svg-gradient)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.svg-gradient.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#angle-type"},{"include":"#comma-delimiter"},{"include":"#color-values"},{"include":"#percentage-type"},{"include":"#length-type"},{"match":"\\\\bto\\\\b","name":"keyword.other.less"},{"match":"\\\\b(top|right|bottom|left|center)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(at|circle|ellipse)\\\\b","name":"keyword.other.less"}]}]}]},"less-mixin-guards":{"patterns":[{"begin":"\\\\s*(and|not|or)?\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.operator.logical.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","name":"meta.group.less","patterns":[{"include":"#less-variable-comparison"},{"captures":{"1":{"name":"meta.group.less"},"2":{"name":"punctuation.definition.group.begin.less"},"3":{"name":"punctuation.definition.group.end.less"}},"match":"default((\\\\()(\\\\)))","name":"support.function.default.less"},{"include":"#property-values"},{"include":"#less-logical-comparisons"},{"include":"$self"}]}]}]},"less-namespace-accessors":{"patterns":[{"begin":"(?=\\\\s*when\\\\b)","end":"\\\\s*(?:(,)|(?=[;{]))","endCaptures":{"1":{"name":"punctuation.definition.block.end.less"}},"name":"meta.conditional.guarded-namespace.less","patterns":[{"captures":{"1":{"name":"keyword.control.conditional.less"},"2":{"name":"punctuation.definition.keyword.less"}},"match":"\\\\s*(when)(?=.*?)"},{"include":"#less-mixin-guards"},{"include":"#comma-delimiter"},{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.property-list.begin.less"}},"end":"(?=})","name":"meta.block.less","patterns":[{"include":"#rule-list-body"}]},{"include":"#selectors"}]},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.begin.less"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.group.end.less"},"2":{"name":"punctuation.terminator.rule.less"}},"name":"meta.group.less","patterns":[{"include":"#less-variable-assignment"},{"include":"#comma-delimiter"},{"include":"#property-values"},{"include":"#rule-list-body"}]},{"captures":{"1":{"name":"punctuation.terminator.rule.less"}},"match":"(;)|(?=[)}])"}]},"less-string-functions":{"patterns":[{"begin":"\\\\b(e(scape)?)(?=\\\\()\\\\b","beginCaptures":{"1":{"name":"support.function.escape.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#comma-delimiter"},{"include":"#literal-string"},{"include":"#unquoted-string"}]}]},{"begin":"\\\\s*(%)(?=\\\\()\\\\s*","beginCaptures":{"1":{"name":"support.function.format.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#comma-delimiter"},{"include":"#literal-string"},{"include":"#property-values"}]}]},{"begin":"\\\\b(replace)(?=\\\\()\\\\b","beginCaptures":{"1":{"name":"support.function.replace.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#comma-delimiter"},{"include":"#literal-string"},{"include":"#property-values"}]}]}]},"less-strings":{"patterns":[{"begin":"(~)([\\"'])","beginCaptures":{"1":{"name":"constant.character.escape.less"},"2":{"name":"punctuation.definition.string.begin.less"}},"contentName":"markup.raw.inline.less","end":"([\\"'])|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.less"},"2":{"name":"invalid.illegal.newline.less"}},"name":"string.quoted.other.less","patterns":[{"include":"#string-content"}]}]},"less-type-functions":{"patterns":[{"begin":"\\\\b(is(number|string|color|keyword|url|pixel|em|percentage|ruleset))(?=\\\\()","beginCaptures":{"1":{"name":"support.function.type.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#property-values"}]}]},{"begin":"\\\\b(isunit)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.type.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#property-values"},{"include":"#comma-delimiter"},{"match":"\\\\b((?i:em|ex|ch|rem)|(?i:v(?:[hw]|min|max))|(?i:cm|mm|q|in|pt|pc|px|fr)|(?i:deg|grad|rad|turn)|(?i:m??s)|(?i:k??Hz)|(?i:dp(?:i|cm|px)))\\\\b","name":"keyword.other.unit.less"}]}]},{"begin":"\\\\b(isdefined)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.type.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"}]}]}]},"less-variable-assignment":{"patterns":[{"begin":"(@)(-?(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)","beginCaptures":{"0":{"name":"variable.other.readwrite.less"},"1":{"name":"punctuation.definition.variable.less"},"2":{"name":"support.other.variable.less"}},"end":"\\\\s*(;|(\\\\.{3})|(?=\\\\)))","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"},"2":{"name":"keyword.operator.spread.less"}},"name":"meta.property-value.less","patterns":[{"captures":{"1":{"name":"punctuation.separator.key-value.less"},"4":{"name":"meta.property-value.less"}},"match":"(((\\\\+_?)?):)([\\\\t\\\\s]*)"},{"include":"#property-values"},{"include":"#comma-delimiter"},{"include":"#property-list"},{"include":"#unquoted-string"}]}]},"less-variable-comparison":{"patterns":[{"begin":"(@{1,2})(-?([_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)","beginCaptures":{"0":{"name":"variable.other.readwrite.less"},"1":{"name":"punctuation.definition.variable.less"},"2":{"name":"support.other.variable.less"}},"end":"\\\\s*(?=\\\\))","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"patterns":[{"captures":{"1":{"name":"keyword.operator.logical.less"}},"match":"\\\\s*(=|(([<>])=?))\\\\s*"},{"match":"\\\\btrue\\\\b","name":"constant.language.less"},{"include":"#property-values"},{"include":"#selectors"},{"include":"#unquoted-string"},{"match":",","name":"punctuation.separator.less"}]}]},"less-variable-interpolation":{"captures":{"1":{"name":"punctuation.definition.variable.less"},"2":{"name":"punctuation.definition.expression.less"},"3":{"name":"support.other.variable.less"},"4":{"name":"punctuation.definition.expression.less"}},"match":"(@)(\\\\{)([-\\\\w]+)(})","name":"variable.other.readwrite.less"},"less-variables":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.less"},"2":{"name":"support.other.variable.less"}},"match":"\\\\s*(@@?)([-\\\\w]+)","name":"variable.other.readwrite.less"},{"include":"#less-variable-interpolation"}]},"literal-string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.less"}},"end":"(')|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.less"},"2":{"name":"invalid.illegal.newline.less"}},"name":"string.quoted.single.less","patterns":[{"include":"#string-content"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.less"}},"end":"(\\")|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.less"},"2":{"name":"invalid.illegal.newline.less"}},"name":"string.quoted.double.less","patterns":[{"include":"#string-content"}]},{"include":"#less-strings"}]},"local-function":{"begin":"\\\\b(local)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.font-face.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#unquoted-string"}]}]},"media-query":{"begin":"\\\\s*(only|not)?\\\\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?","beginCaptures":{"1":{"name":"keyword.operator.logic.media.less"},"2":{"name":"support.constant.media.less"}},"end":"\\\\s*(?:(,)|(?=[;{]))","endCaptures":{"1":{"name":"punctuation.definition.arbitrary-repetition.less"}},"patterns":[{"include":"#less-variables"},{"include":"#custom-property-name"},{"begin":"\\\\s*(and)?\\\\s*(\\\\()\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.logic.media.less"},"2":{"name":"punctuation.definition.group.begin.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.group.less","patterns":[{"begin":"(--|-?(?:[A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))(?:[-A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}\\\\d]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))*)\\\\s*(?=[):])","beginCaptures":{"0":{"name":"support.type.property-name.media.less"}},"end":"(((\\\\+_?)?):)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.key-value.less"}}},{"match":"\\\\b(portrait|landscape|progressive|interlace)","name":"support.constant.property-value.less"},{"captures":{"1":{"name":"constant.numeric.less"},"2":{"name":"keyword.operator.arithmetic.less"},"3":{"name":"constant.numeric.less"}},"match":"\\\\s*(\\\\d+)(/)(\\\\d+)"},{"include":"#less-math"}]}]},"media-query-list":{"begin":"\\\\s*(?=[^;{])","end":"\\\\s*(?=[;{])","patterns":[{"include":"#media-query"}]},"minmax-function":{"begin":"\\\\b(minmax)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.grid.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#var-function"},{"include":"#length-type"},{"include":"#comma-delimiter"},{"match":"\\\\b(m(?:ax|in)-content)\\\\b","name":"support.constant.property-value.less"}]}]},"number-type":{"match":"[-+]?(?:\\\\d+\\\\.\\\\d+|\\\\.?\\\\d+)(?:[Ee][-+]?\\\\d+)?","name":"constant.numeric.less"},"numeric-values":{"patterns":[{"include":"#dimensions"},{"include":"#percentage-type"},{"include":"#number-type"}]},"percentage-type":{"captures":{"1":{"name":"keyword.other.unit.less"}},"match":"[-+]?(?:\\\\d+\\\\.\\\\d+|\\\\.?\\\\d+)(?:[Ee][-+]?\\\\d+)?(%)","name":"constant.numeric.less"},"property-list":{"patterns":[{"begin":"(?=(?=[^;]*)\\\\{)","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.less"}},"patterns":[{"include":"#rule-list"}]}]},"property-value-constants":{"patterns":[{"match":"\\\\b(flex-start|flex-end|start|end|space-between|space-around|space-evenly|stretch|baseline|safe|unsafe|legacy|anchor-center|first|last|self-start|self-end)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(text-before-edge|before-edge|middle|central|text-after-edge|after-edge|ideographic|alphabetic|hanging|mathematical|top|center|bottom)\\\\b","name":"support.constant.property-value.less"},{"include":"#global-property-values"},{"include":"#cubic-bezier-function"},{"include":"#steps-function"},{"match":"\\\\b(?:replace|add|accumulate)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(?:normal|alternate-reverse|alternate|reverse)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(?:forwards|backwards|both)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\binfinite\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(?:running|paused)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\be(?:ntry|xit)(?:-crossing|)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(linear|ease-in-out|ease-in|ease-out|ease|step-start|step-end)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(absolute|active|add|all-petite-caps|all-small-caps|all-scroll|all|alphabetic|alpha|alternate-reverse|alternate|always|annotation|antialiased|at|autohiding-scrollbar|auto|avoid-column|avoid-page|avoid-region|avoid|background-color|background-image|background-position|background-size|background-repeat|background|backwards|balance|baseline|below|bevel|bicubic|bidi-override|blink|block-line-height|block-start|block-end|block|blur|bolder|bold|border-top-left-radius|border-top-right-radius|border-bottom-left-radius|border-bottom-right-radius|border-end-end-radius|border-end-start-radius|border-start-end-radius|border-start-start-radius|border-block-start-color|border-block-start-style|border-block-start-width|border-block-start|border-block-end-color|border-block-end-style|border-block-end-width|border-block-end|border-block-color|border-block-style|border-block-width|border-block|border-inline-start-color|border-inline-start-style|border-inline-start-width|border-inline-start|border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-end|border-inline-color|border-inline-style|border-inline-width|border-inline|border-top-color|border-top-style|border-top-width|border-top|border-right-color|border-right-style|border-right-width|border-right|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-left-color|border-left-style|border-left-width|border-left|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-image|border-color|border-style|border-width|border-radius|border-collapse|border-spacing|border|both|bottom|box-shadow|box|break-all|break-word|break-spaces|brightness|butt(on)?|capitalize|central|center|char(acter-variant)?|cjk-ideographic|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color-stop|color-burn|color-dodge|color|column-count|column-gap|column-reverse|column-rule-color|column-rule-width|column-rule|column-width|columns?|common-ligatures|condensed|consider-shifts|contain|content-box|contents?|contextual|contrast|cover|crisp-edges|crispEdges|crop|crosshair|cross|darken|dashed|default|dense|device-width|diagonal-fractions|difference|disabled|discard|discretionary-ligatures|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|drop-shadow|[ensw]{1,4}-resize|ease-in-out|ease-in|ease-out|ease|element|ellipsis|embed|end|EndColorStr|evenodd|exclude-ruby|exclusion|expanded|extra-condensed|extra-expanded|farthest-corner|farthest-side|farthest|fill-box|fill-opacity|fill|filter|fit-content|fixed|flat|flex-basis|flex-end|flex-grow|flex-shrink|flex-start|flexbox|flex|flip|flood-color|font-size-adjust|font-size|font-stretch|font-weight|font|forwards|from-image|from|full-width|gap|geometricPrecision|glyphs|gradient|grayscale|grid-column-gap|grid-column|grid-row-gap|grid-row|grid-gap|grid-height|grid|groove|hand|hanging|hard-light|height|help|hidden|hide|historical-forms|historical-ligatures|horizontal-tb|horizontal|hue|ideographic|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|include-ruby|infinite|inherit|initial|inline-end|inline-size|inline-start|inline-table|inline-line-height|inline-flexbox|inline-flex|inline-box|inline-block|inline|inset|inside|inter-ideograph|inter-word|intersect|invert|isolate|isolation|italic|jis(04|78|83|90)|justify-all|justify|keep-all|larger?|last|layout|left|letter-spacing|lighten|lighter|lighting-color|linear-gradient|linearRGB|linear|line-edge|line-height|line-through|line|lining-nums|list-item|local|loose|lowercase|lr-tb|ltr|luminosity|luminance|manual|manipulation|margin-bottom|margin-box|margin-left|margin-right|margin-top|margin|marker(-offset|s)?|match-parent|mathematical|max-(content|height|lines|size|width)|medium|middle|min-(content|height|width)|miter|mixed|move|multiply|newspaper|no-change|no-clip|no-close-quote|no-open-quote|no-common-ligatures|no-discretionary-ligatures|no-historical-ligatures|no-contextual|no-drop|no-repeat|none|nonzero|normal|not-allowed|nowrap|oblique|offset-after|offset-before|offset-end|offset-start|offset|oldstyle-nums|opacity|open-quote|optimize(Legibility|Precision|Quality|Speed)|order|ordinal|ornaments|outline-color|outline-offset|outline-width|outline|outset|outside|overline|over-edge|overlay|padding(-(?:bottom|box|left|right|top|box))?|page|paint(ed)?|paused|pan-(x|left|right|y|up|down)|perspective-origin|petite-caps|pixelated|pointer|pinch-zoom|pretty|pre(-(?:line|wrap))?|preserve-3d|preserve-breaks|preserve-spaces|preserve|progid:DXImageTransform\\\\.Microsoft\\\\.(Alpha|Blur|dropshadow|gradient|Shadow)|progress|proportional-nums|proportional-width|radial-gradient|recto|region|relative|repeating-linear-gradient|repeating-radial-gradient|repeat-x|repeat-y|repeat|replaced|reset-size|reverse|revert-layer|revert|ridge|right|round|row-gap|row-resize|row-reverse|row|rtl|ruby|running|saturate|saturation|screen|scrollbar|scroll-position|scroll|separate|sepia|scale-down|semi-condensed|semi-expanded|shape-image-threshold|shape-margin|shape-outside|show|sideways-lr|sideways-rl|sideways|simplified|size|slashed-zero|slice|small-caps|smaller|small|smooth|snap|solid|soft-light|space-around|space-between|space|span|sRGB|stable|stacked-fractions|stack|startColorStr|start|static|step-end|step-start|sticky|stop-color|stop-opacity|stretch|strict|stroke-box|stroke-dasharray|stroke-dashoffset|stroke-miterlimit|stroke-opacity|stroke-width|stroke|styleset|style|stylistic|subgrid|subpixel-antialiased|subtract|super|swash|table-caption|table-cell|table-column-group|table-footer-group|table-header-group|table-row-group|table-column|table-row|table|tabular-nums|tb-rl|text((-(?:bottom|(decoration|emphasis)-color|indent|(over|under)-edge|shadow|size(-adjust)?|top))|field)?|thick|thin|titling-caps|titling-case|top|touch|to|traditional|transform-origin|transform-style|transform|ultra-condensed|ultra-expanded|under-edge|underline|unicase|unset|uppercase|upright|use-glyph-orientation|use-script|verso|vertical(-(?:align|ideographic|lr|rl|text))?|view-box|viewport-fill-opacity|viewport-fill|visibility|visibleFill|visiblePainted|visibleStroke|visible|wait|wavy|weight|whitespace|width|word-spacing|wrap-reverse|wrap|xx?-(large|small)|z-index|zero|zoom-in|zoom-out|zoom|arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)\\\\b","name":"support.constant.property-value.less"},{"match":"\\\\b(sans-serif|serif|monospace|fantasy|cursive)\\\\b(?=\\\\s*[\\\\n,;}])","name":"support.constant.font-name.less"}]},"property-values":{"patterns":[{"include":"#comment-block"},{"include":"#builtin-functions"},{"include":"#color-functions"},{"include":"#less-functions"},{"include":"#less-variables"},{"include":"#unicode-range"},{"include":"#numeric-values"},{"include":"#color-values"},{"include":"#property-value-constants"},{"include":"#less-math"},{"include":"#literal-string"},{"include":"#comma-delimiter"},{"include":"#important"}]},"pseudo-selectors":{"patterns":[{"begin":"(:)(dir)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"entity.other.attribute-name.pseudo-class.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"ltr|rtl","name":"variable.parameter.dir.less"},{"include":"#less-variables"}]}]},{"begin":"(:)(lang)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"entity.other.attribute-name.pseudo-class.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#literal-string"},{"include":"#unquoted-string"}]}]},{"begin":"(:)(not)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"entity.other.attribute-name.pseudo-class.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#selectors"}]}]},{"begin":"(:)(nth(-last)?-(child|of-type))(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"},"2":{"name":"entity.other.attribute-name.pseudo-class.less"}},"contentName":"meta.function-call.less","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"entity.other.attribute-name.pseudo-class.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","name":"meta.group.less","patterns":[{"match":"\\\\b(even|odd)\\\\b","name":"keyword.other.pseudo-class.less"},{"captures":{"1":{"name":"keyword.operator.arithmetic.less"},"2":{"name":"keyword.other.unit.less"},"4":{"name":"keyword.operator.arithmetic.less"}},"match":"([-+])?\\\\d+{0,1}(n)(\\\\s*([-+])\\\\s*\\\\d+)?|[-+]?\\\\s*\\\\d+","name":"constant.numeric.less"},{"include":"#less-math"},{"include":"#less-strings"},{"include":"#less-variable-interpolation"}]}]},{"begin":"(:)(host-context|host|has|is|not|where)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"entity.other.attribute-name.pseudo-class.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#selectors"}]}]},{"captures":{"1":{"name":"punctuation.definition.entity.less"},"2":{"name":"entity.other.attribute-name.pseudo-class.less"}},"match":"(:)(active|any-link|autofill|blank|buffering|checked|current|default|defined|disabled|empty|enabled|first-child|first-of-type|first|focus-visible|focus-within|focus|fullscreen|future|host|hover|in-range|indeterminate|invalid|last-child|last-of-type|left|local-link|link|modal|muted|only-child|only-of-type|optional|out-of-range|past|paused|picture-in-picture|placeholder-shown|playing|popover-open|read-only|read-write|required|right|root|scope|seeking|stalled|target-within|target|user-invalid|user-valid|valid|visited|volume-locked)\\\\b","name":"meta.function-call.less"},{"begin":"(::?)(highlight|part|state)(?=\\\\s*(\\\\())","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"entity.other.attribute-name.pseudo-element.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"--|-?(?:[A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))(?:[-A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}\\\\d]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))*","name":"variable.parameter.less"},{"include":"#less-variables"}]}]},{"begin":"(::?)slotted(?=\\\\s*(\\\\())","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"contentName":"meta.function-call.less","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"entity.other.attribute-name.pseudo-element.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","name":"meta.group.less","patterns":[{"include":"#selectors"}]}]},{"captures":{"1":{"name":"punctuation.definition.entity.less"}},"match":"(::?)(after|backdrop|before|cue|file-selector-button|first-letter|first-line|grammar-error|marker|placeholder|selection|spelling-error|target-text|view-transition-group|view-transition-image-pair|view-transition-new|view-transition-old|view-transition)\\\\b","name":"entity.other.attribute-name.pseudo-element.less"},{"captures":{"1":{"name":"punctuation.definition.entity.less"},"2":{"name":"meta.namespace.vendor-prefix.less"}},"match":"(::?)(-\\\\w+-)(--|-?(?:[A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))(?:[-A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}\\\\d]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))*)\\\\b","name":"entity.other.attribute-name.pseudo-element.less"}]},"qualified-name":{"captures":{"1":{"name":"entity.name.constant.less"},"2":{"name":"entity.name.namespace.wildcard.less"},"3":{"name":"punctuation.separator.namespace.less"}},"match":"(?:(-?(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)|(\\\\*))?(\\\\|)(?!=)"},"regexp-function":{"begin":"\\\\b(regexp)(?=\\\\()","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"support.function.regexp.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","name":"meta.function-call.less","patterns":[{"include":"#literal-string"}]}]},"relative-color":{"patterns":[{"match":"from","name":"keyword.other.less"},{"match":"\\\\b[abchlsw]\\\\b","name":"keyword.other.less"}]},"rule-list":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.begin.less"}},"end":"(?=\\\\s*})","name":"meta.property-list.less","patterns":[{"captures":{"1":{"name":"punctuation.terminator.rule.less"}},"match":"\\\\s*(;)|(?=[)}])"},{"include":"#rule-list-body"},{"include":"#less-extend"}]}]},"rule-list-body":{"patterns":[{"include":"#comment-block"},{"include":"#comment-line"},{"include":"#at-rules"},{"include":"#less-variable-assignment"},{"begin":"(?=[-\\\\w]*?@\\\\{.*}[-\\\\w]*?\\\\s*:[^(;{]*(?=[);}]))","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"begin":"(?=[^:\\\\s])","end":"(?=(((\\\\+_?)?):)[\\\\t\\\\s]*)","name":"support.type.property-name.less","patterns":[{"include":"#less-variable-interpolation"}]},{"begin":"(((\\\\+_?)?):)(?=[\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"}},"contentName":"support.type.property-name.less","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"include":"#property-values"}]}]},{"begin":"(?=[-a-z])","end":"$|(?![-a-z])","patterns":[{"include":"#custom-property-name"},{"begin":"(-[-\\\\w]+?-)((?:[A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))(?:[-A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}\\\\d]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))*)\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"},"1":{"name":"meta.namespace.vendor-prefix.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"patterns":[{"begin":"(((\\\\+_?)?):)(?=[\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"}},"contentName":"meta.property-value.less","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"include":"#property-values"},{"match":"[-\\\\w]+","name":"support.constant.property-value.less"}]}]},{"include":"#filter-function"},{"begin":"\\\\b(border((-(bottom|top)-(left|right))|((-(start|end)){2}))?-radius|(border-image(?!-)))\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"patterns":[{"begin":"(((\\\\+_?)?):)(?=[\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"}},"contentName":"meta.property-value.less","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"include":"#value-separator"},{"include":"#property-values"}]}]},{"captures":{"1":{"name":"keyword.other.custom-property.prefix.less"},"2":{"name":"support.type.custom-property.name.less"}},"match":"\\\\b(var-)(-?(?:[-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[A-Z_a-z[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)(?=\\\\s)","name":"invalid.deprecated.custom-property.less"},{"begin":"\\\\bfont(-family)?(?!-)\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"name":"meta.property-name.less","patterns":[{"captures":{"1":{"name":"punctuation.separator.key-value.less"},"4":{"name":"meta.property-value.less"}},"match":"(((\\\\+_?)?):)([\\\\t\\\\s]*)"},{"include":"#property-values"},{"match":"-?(?:[A-Z_a-z[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*(\\\\s+-?(?:[A-Z_a-z[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)*","name":"string.unquoted.less"},{"match":",","name":"punctuation.separator.less"}]},{"begin":"\\\\banimation-timeline\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"patterns":[{"begin":"(((\\\\+_?)?):)(?=[\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"}},"contentName":"meta.property-value.less","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"include":"#comment-block"},{"include":"#custom-property-name"},{"include":"#scroll-function"},{"include":"#view-function"},{"include":"#property-values"},{"include":"#less-variables"},{"include":"#arbitrary-repetition"},{"include":"#important"}]}]},{"begin":"\\\\banimation(?:-name)?(?=(?:\\\\+_?)?:)\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"patterns":[{"begin":"(((\\\\+_?)?):)(?=[\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"}},"contentName":"meta.property-value.less","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"include":"#comment-block"},{"include":"#builtin-functions"},{"include":"#less-functions"},{"include":"#less-variables"},{"include":"#numeric-values"},{"include":"#property-value-constants"},{"match":"-?(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|(?:(:?\\\\\\\\[0-9a-f]{1,6}(\\\\r\\\\n|[\\\\t\\\\n\\\\f\\\\r\\\\s])?)|\\\\\\\\[^\\\\n\\\\f\\\\r0-9a-f]))(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|(?:(:?\\\\\\\\[0-9a-f]{1,6}(\\\\r\\\\n|[\\\\t\\\\n\\\\f\\\\r])?)|\\\\\\\\[^\\\\n\\\\f\\\\r0-9a-f]))*","name":"variable.other.constant.animation-name.less string.unquoted.less"},{"include":"#less-math"},{"include":"#arbitrary-repetition"},{"include":"#important"}]}]},{"begin":"\\\\b(transition(-(property|duration|delay|timing-function))?)\\\\b","beginCaptures":{"1":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"patterns":[{"begin":"(((\\\\+_?)?):)(?=[\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"}},"contentName":"meta.property-value.less","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"include":"#time-type"},{"include":"#property-values"},{"include":"#cubic-bezier-function"},{"include":"#steps-function"},{"include":"#arbitrary-repetition"}]}]},{"begin":"\\\\b(?:backdrop-)?filter\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"name":"meta.property-name.less","patterns":[{"captures":{"1":{"name":"punctuation.separator.key-value.less"},"4":{"name":"meta.property-value.less"}},"match":"(((\\\\+_?)?):)([\\\\t\\\\s]*)"},{"match":"\\\\b(inherit|initial|unset|none)\\\\b","name":"meta.property-value.less"},{"include":"#filter-functions"}]},{"begin":"\\\\bwill-change\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"name":"meta.property-name.less","patterns":[{"captures":{"1":{"name":"punctuation.separator.key-value.less"},"4":{"name":"meta.property-value.less"}},"match":"(((\\\\+_?)?):)([\\\\t\\\\s]*)"},{"match":"unset|initial|inherit|will-change|auto|scroll-position|contents","name":"invalid.illegal.property-value.less"},{"match":"-?(?:[-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[A-Z_a-z[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*","name":"support.constant.property-value.less"},{"include":"#arbitrary-repetition"}]},{"begin":"\\\\bcounter-(increment|(re)?set)\\\\b","beginCaptures":{"0":{"name":"support.type.property-name.less"}},"end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"name":"meta.property-name.less","patterns":[{"captures":{"1":{"name":"punctuation.separator.key-value.less"},"4":{"name":"meta.property-value.less"}},"match":"(((\\\\+_?)?):)([\\\\t\\\\s]*)"},{"match":"-?(?:[-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[A-Z_a-z[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*","name":"entity.name.constant.counter-name.less"},{"include":"#integer-type"},{"match":"unset|initial|inherit|auto","name":"invalid.illegal.property-value.less"}]},{"begin":"\\\\bcontainer(?:-name)?(?=\\\\s*?:)","end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"name":"support.type.property-name.less","patterns":[{"begin":"(((\\\\+_?)?):)(?=[\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"}},"contentName":"meta.property-value.less","end":"(?=\\\\s*(;)|(?=[)}]))","patterns":[{"match":"\\\\bdefault\\\\b","name":"invalid.illegal.property-value.less"},{"include":"#global-property-values"},{"include":"#custom-property-name"},{"contentName":"variable.other.constant.container-name.less","match":"--|-?(?:[A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))(?:[-A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}\\\\d]|\\\\\\\\(?:\\\\N|\\\\H|\\\\h{1,6}[R\\\\s]))*","name":"support.constant.property-value.less"},{"include":"#property-values"}]}]},{"match":"\\\\b(accent-height|align-content|align-items|align-self|alignment-baseline|all|animation-timing-function|animation-range-start|animation-range-end|animation-range|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation-composition|animation|appearance|ascent|aspect-ratio|azimuth|backface-visibility|background-size|background-repeat-y|background-repeat-x|background-repeat|background-position-y|background-position-x|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|baseline-shift|begin|bias|blend-mode|border-top-left-radius|border-top-right-radius|border-bottom-left-radius|border-bottom-right-radius|border-end-end-radius|border-end-start-radius|border-start-end-radius|border-start-start-radius|border-block-start-color|border-block-start-style|border-block-start-width|border-block-start|border-block-end-color|border-block-end-style|border-block-end-width|border-block-end|border-block-color|border-block-style|border-block-width|border-block|border-inline-start-color|border-inline-start-style|border-inline-start-width|border-inline-start|border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-end|border-inline-color|border-inline-style|border-inline-width|border-inline|border-top-color|border-top-style|border-top-width|border-top|border-right-color|border-right-style|border-right-width|border-right|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-left-color|border-left-style|border-left-width|border-left|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-image|border-color|border-style|border-width|border-radius|border-collapse|border-spacing|border|bottom|box-(align|decoration-break|direction|flex|ordinal-group|orient|pack|shadow|sizing)|break-(after|before|inside)|caption-side|clear|clip-path|clip-rule|clip|color(-(interpolation(-filters)?|profile|rendering))?|columns|column-(break-before|count|fill|gap|(rule(-(color|style|width))?)|span|width)|container-name|container-type|container|contain-intrinsic-block-size|contain-intrinsic-inline-size|contain-intrinsic-height|contain-intrinsic-size|contain-intrinsic-width|contain|content|counter-(increment|reset)|cursor|[cdf][xy]|direction|display|divisor|dominant-baseline|dur|elevation|empty-cells|enable-background|end|fallback|fill(-(opacity|rule))?|filter|flex(-(align|basis|direction|flow|grow|item-align|line-pack|negative|order|pack|positive|preferred-size|shrink|wrap))?|float|flood-(color|opacity)|font-display|font-family|font-feature-settings|font-kerning|font-language-override|font-size(-adjust)?|font-smoothing|font-stretch|font-style|font-synthesis|font-variant(-(alternates|caps|east-asian|ligatures|numeric|position))?|font-weight|font|fr|((column|row)-)?gap|glyph-orientation-(horizontal|vertical)|grid-(area|gap)|grid-auto-(columns|flow|rows)|grid-(column|row)(-(end|gap|start))?|grid-template(-(areas|columns|rows))?|grid|height|hyphens|image-(orientation|rendering|resolution)|inset(-(block|inline))?(-(start|end))?|isolation|justify-content|justify-items|justify-self|kerning|left|letter-spacing|lighting-color|line-(box-contain|break|clamp|height)|list-style(-(image|position|type))?|(margin|padding)(-(bottom|left|right|top)|(-(block|inline)?(-(end|start))?))?|marker(-(end|mid|start))?|mask(-(clip||composite|image|origin|position|repeat|size|type))?|(m(?:ax|in))-(height|width)|mix-blend-mode|nbsp-mode|negative|object-(fit|position)|opacity|operator|order|orphans|outline(-(color|offset|style|width))?|overflow(-((inline|block)|scrolling|wrap|[xy]))?|overscroll-behavior(-(?:block|(inline|[xy])))?|pad(ding(-(bottom|left|right|top))?)?|page(-break-(after|before|inside))?|paint-order|pause(-(after|before))?|perspective(-origin(-([xy]))?)?|pitch(-range)?|place-content|place-self|pointer-events|position|prefix|quotes|range|resize|right|rotate|scale|scroll-behavior|shape-(image-threshold|margin|outside|rendering)|size|speak(-as)?|src|stop-(color|opacity)|stroke(-(dash(array|offset)|line(cap|join)|miterlimit|opacity|width))?|suffix|symbols|system|tab-size|table-layout|tap-highlight-color|text-align(-last)?|text-decoration(-(color|line|style))?|text-emphasis(-(color|position|style))?|text-(anchor|fill-color|height|indent|justify|orientation|overflow|rendering|size-adjust|shadow|transform|underline-position|wrap)|top|touch-action|transform(-origin(-([xy]))?)|transform(-style)?|transition(-(delay|duration|property|timing-function))?|translate|unicode-(bidi|range)|user-(drag|select)|vertical-align|visibility|white-space(-collapse)?|widows|width|will-change|word-(break|spacing|wrap)|writing-mode|z-index|zoom)\\\\b","name":"support.type.property-name.less"},{"match":"\\\\b(((contain-intrinsic|max|min)-)?(block|inline)?-size)\\\\b","name":"support.type.property-name.less"},{"include":"$self"}]},{"begin":"\\\\b((?:\\\\+_?)?:)([\\\\t\\\\s]*)","beginCaptures":{"1":{"name":"punctuation.separator.key-value.less"},"2":{"name":"meta.property-value.less"}},"captures":{"1":{"name":"punctuation.separator.key-value.less"},"4":{"name":"meta.property-value.less"}},"contentName":"meta.property-value.less","end":"\\\\s*(;)|(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.less"}},"patterns":[{"include":"#property-values"}]},{"include":"$self"}]},"scroll-function":{"begin":"\\\\b(scroll)(\\\\()","beginCaptures":{"1":{"name":"support.function.scroll.less"},"2":{"name":"punctuation.definition.group.begin.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"match":"root|nearest|self","name":"support.constant.scroller.less"},{"match":"block|inline|[xy]","name":"support.constant.axis.less"},{"include":"#less-variables"},{"include":"#var-function"}]},"selector":{"patterns":[{"begin":"(?=[#\\\\&*+./>A-\\\\[a-z~]|(:{1,2}\\\\S)|@\\\\{)","contentName":"meta.selector.less","end":"(?=@(?!\\\\{)|[;{])","patterns":[{"include":"#comment-line"},{"include":"#selectors"},{"include":"#less-namespace-accessors"},{"include":"#less-variable-interpolation"},{"include":"#important"}]}]},"selectors":{"patterns":[{"match":"\\\\b([a-z](?:[-0-9_a-z\xB7]|\\\\\\\\\\\\.|[\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}])*-(?:[-0-9_a-z\xB7]|\\\\\\\\\\\\.|[\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}])*)\\\\b","name":"entity.name.tag.custom.less"},{"match":"\\\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|big|blockquote|body|br|button|canvas|caption|circle|cite|clipPath|code|col|colgroup|content|data|dataList|dd|defs|del|details|dfn|dialog|dir|div|dl|dt|element|ellipse|em|embed|eventsource|fieldset|figcaption|figure|filter|footer|foreignObject|form|frame|frameset|g|glyph|glyphRef|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|line|linearGradient|link|main|map|mark|marker|mask|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|path|pattern|picture|polygon|polyline|pre|progress|q|radialGradient|rect|rp|ruby|rtc??|s|samp|script|section|select|shadow|small|source|span|stop|strike|strong|style|sub|summary|sup|svg|switch|symbol|table|tbody|td|template|textarea|textPath|tfoot|th|thead|time|title|tr|track|tref|tspan|tt|ul??|use|var|video|wbr|xmp)\\\\b","name":"entity.name.tag.less"},{"begin":"(\\\\.)","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"end":"(?![-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(\\\\h{1,6} ?|\\\\H)|(@(?=\\\\{)))","name":"entity.other.attribute-name.class.less","patterns":[{"include":"#less-variable-interpolation"}]},{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"end":"(?![-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(\\\\h{1,6} ?|\\\\H)|(@(?=\\\\{)))","name":"entity.other.attribute-name.id.less","patterns":[{"include":"#less-variable-interpolation"}]},{"begin":"(&)","beginCaptures":{"1":{"name":"punctuation.definition.entity.less"}},"contentName":"entity.other.attribute-name.parent.less","end":"(?![-\\\\w[^\\\\x00-\\\\x{9F}]]|\\\\\\\\(\\\\h{1,6} ?|\\\\H)|(@(?=\\\\{)))","name":"entity.other.attribute-name.parent.less","patterns":[{"include":"#less-variable-interpolation"},{"include":"#selectors"}]},{"include":"#pseudo-selectors"},{"include":"#less-extend"},{"match":"(?!\\\\+_?:)(?:>{1,3}|[+~])(?![+;>}~])","name":"punctuation.separator.combinator.less"},{"match":"(>{1,3}|[+~]){2,}","name":"invalid.illegal.combinator.less"},{"match":"/deep/","name":"invalid.illegal.combinator.less"},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.braces.begin.less"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.braces.end.less"}},"name":"meta.attribute-selector.less","patterns":[{"include":"#less-variable-interpolation"},{"include":"#qualified-name"},{"match":"(-?(?:[A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}[\\\\t\\\\n\\\\f\\\\s]?|[^\\\\n\\\\f\\\\h]))*)","name":"entity.other.attribute-name.less"},{"begin":"\\\\s*([$*^|~]?=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.attribute-selector.less"}},"end":"(?=([]\\\\s]))","patterns":[{"include":"#less-variable-interpolation"},{"match":"[^]\\"'\\\\[\\\\s]","name":"string.unquoted.less"},{"include":"#literal-string"},{"captures":{"1":{"name":"keyword.other.less"}},"match":"(?:\\\\s+([Ii]))?"},{"match":"]","name":"punctuation.definition.entity.less"}]}]},{"include":"#arbitrary-repetition"},{"match":"\\\\*","name":"entity.name.tag.wildcard.less"}]},"shape-functions":{"patterns":[{"begin":"\\\\b(rect)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.shape.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"\\\\bauto\\\\b","name":"support.constant.property-value.less"},{"include":"#length-type"},{"include":"#comma-delimiter"}]}]},{"begin":"\\\\b(inset)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.shape.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"\\\\bround\\\\b","name":"keyword.other.less"},{"include":"#length-type"},{"include":"#percentage-type"}]}]},{"begin":"\\\\b(circle|ellipse)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.shape.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"\\\\bat\\\\b","name":"keyword.other.less"},{"match":"\\\\b(top|right|bottom|left|center|closest-side|farthest-side)\\\\b","name":"support.constant.property-value.less"},{"include":"#length-type"},{"include":"#percentage-type"}]}]},{"begin":"\\\\b(polygon)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.shape.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"\\\\b(nonzero|evenodd)\\\\b","name":"support.constant.property-value.less"},{"include":"#length-type"},{"include":"#percentage-type"}]}]}]},"steps-function":{"begin":"\\\\b(steps)(\\\\()","beginCaptures":{"1":{"name":"support.function.timing.less"},"2":{"name":"punctuation.definition.group.begin.less"}},"contentName":"meta.group.less","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"match":"jump-start|jump-end|jump-none|jump-both|start|end","name":"support.constant.step-position.less"},{"include":"#comma-delimiter"},{"include":"#integer-type"},{"include":"#less-variables"},{"include":"#var-function"},{"include":"#calc-function"}]},"string-content":{"patterns":[{"include":"#less-variable-interpolation"},{"match":"\\\\\\\\\\\\s*\\\\n","name":"constant.character.escape.newline.less"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.less"}]},"style-function":{"begin":"\\\\b(style)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.style.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#rule-list-body"}]}]},"symbols-function":{"begin":"\\\\b(symbols)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.counter.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"\\\\b(cyclic|numeric|alphabetic|symbolic|fixed)\\\\b","name":"support.constant.symbol-type.less"},{"include":"#comma-delimiter"},{"include":"#literal-string"},{"include":"#image-type"}]}]},"time-type":{"captures":{"1":{"name":"keyword.other.unit.less"}},"match":"(?i:[-+]?(?:\\\\d*\\\\.\\\\d+(?:[Ee][-+]?\\\\d+)*|[-+]?\\\\d+)(m??s))\\\\b","name":"constant.numeric.less"},"transform-functions":{"patterns":[{"begin":"\\\\b((?:matrix|scale)(?:3d|))(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#number-type"},{"include":"#less-variables"},{"include":"#var-function"}]}]},{"begin":"\\\\b(translate(3d)?)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#percentage-type"},{"include":"#length-type"},{"include":"#number-type"},{"include":"#less-variables"},{"include":"#var-function"}]}]},{"begin":"\\\\b(translate[XY])(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#percentage-type"},{"include":"#length-type"},{"include":"#number-type"},{"include":"#less-variables"},{"include":"#var-function"}]}]},{"begin":"\\\\b(rotate[XYZ]?|skew[XY])(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#angle-type"},{"include":"#less-variables"},{"include":"#calc-function"},{"include":"#var-function"}]}]},{"begin":"\\\\b(skew)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#angle-type"},{"include":"#less-variables"},{"include":"#calc-function"},{"include":"#var-function"}]}]},{"begin":"\\\\b(translateZ|perspective)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#length-type"},{"include":"#less-variables"},{"include":"#calc-function"},{"include":"#var-function"}]}]},{"begin":"\\\\b(rotate3d)(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#angle-type"},{"include":"#number-type"},{"include":"#less-variables"},{"include":"#calc-function"},{"include":"#var-function"}]}]},{"begin":"\\\\b(scale[XYZ])(?=\\\\()","beginCaptures":{"0":{"name":"support.function.transform.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#number-type"},{"include":"#less-variables"},{"include":"#calc-function"},{"include":"#var-function"}]}]}]},"unicode-range":{"captures":{"1":{"name":"support.constant.unicode-range.prefix.less"},"2":{"name":"constant.codepoint-range.less"},"3":{"name":"punctuation.section.range.less"}},"match":"(?i)(u\\\\+)([0-9?a-f]{1,6}(?:(-)[0-9a-f]{1,6})?)","name":"support.unicode-range.less"},"unquoted-string":{"match":"[^\\"'\\\\s]","name":"string.unquoted.less"},"url-function":{"begin":"\\\\b(url)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.url.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#less-variables"},{"include":"#literal-string"},{"include":"#unquoted-string"},{"include":"#var-function"}]}]},"value-separator":{"captures":{"1":{"name":"punctuation.separator.less"}},"match":"\\\\s*(/)\\\\s*"},"var-function":{"begin":"\\\\b(var)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.var.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"include":"#comma-delimiter"},{"include":"#custom-property-name"},{"include":"#less-variables"},{"include":"#property-values"}]}]},"view-function":{"begin":"\\\\b(view)(?=\\\\()","beginCaptures":{"1":{"name":"support.function.view.less"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.end.less"}},"name":"meta.function-call.less","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.begin.less"}},"end":"(?=\\\\))","patterns":[{"match":"block|inline|[xy]|auto","name":"support.constant.property-value.less"},{"include":"#percentage-type"},{"include":"#length-type"},{"include":"#less-variables"},{"include":"#var-function"},{"include":"#calc-function"},{"include":"#arbitrary-repetition"}]}]}},"scopeName":"source.css.less"}`))];export{e as t}; diff --git a/docs/assets/light-plus-CEhmeeBE.js b/docs/assets/light-plus-CEhmeeBE.js new file mode 100644 index 0000000..e0a76c4 --- /dev/null +++ b/docs/assets/light-plus-CEhmeeBE.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#dddddd","activityBarBadge.background":"#007ACC","checkbox.border":"#919191","diffEditor.unchangedRegionBackground":"#f8f8f8","editor.background":"#FFFFFF","editor.foreground":"#000000","editor.inactiveSelectionBackground":"#E5EBF1","editor.selectionHighlightBackground":"#ADD6FF80","editorIndentGuide.activeBackground1":"#939393","editorIndentGuide.background1":"#D3D3D3","editorSuggestWidget.background":"#F3F3F3","input.placeholderForeground":"#767676","list.activeSelectionIconForeground":"#FFF","list.focusAndSelectionOutline":"#90C2F9","list.hoverBackground":"#E8E8E8","menu.border":"#D4D4D4","notebook.cellBorderColor":"#E8E8E8","notebook.selectedCellBackground":"#c8ddf150","ports.iconRunningProcessForeground":"#369432","searchEditor.textInputBorder":"#CECECE","settings.numberInputBorder":"#CECECE","settings.textInputBorder":"#CECECE","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#61616130","sideBarTitle.foreground":"#6F6F6F","statusBarItem.errorBackground":"#c72e0f","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#61616130","tab.selectedBackground":"#ffffffa5","tab.selectedForeground":"#333333b3","terminal.inactiveSelectionBackground":"#E5EBF1","widget.border":"#d4d4d4"},"displayName":"Light Plus","name":"light-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#795E26","newOperator":"#AF00DB","numberLiteral":"#098658","stringLiteral":"#a31515"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#000000ff"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#008000"}},{"scope":"constant.language","settings":{"foreground":"#0000ff"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#098658"}},{"scope":"constant.regexp","settings":{"foreground":"#811f3f"}},{"scope":"entity.name.tag","settings":{"foreground":"#800000"}},{"scope":"entity.name.selector","settings":{"foreground":"#800000"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#e50000"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#800000"}},{"scope":"invalid","settings":{"foreground":"#cd3131"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#000080"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#800000"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#098658"}},{"scope":"markup.deleted","settings":{"foreground":"#a31515"}},{"scope":"markup.changed","settings":{"foreground":"#0451a5"}},{"scope":["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],"settings":{"foreground":"#0451a5"}},{"scope":"markup.inline.raw","settings":{"foreground":"#800000"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#800000"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#0000ff"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#a31515"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#098658"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#0451a5"}},{"scope":"storage","settings":{"foreground":"#0000ff"}},{"scope":"storage.type","settings":{"foreground":"#0000ff"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#0000ff"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#a31515"}},{"scope":["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],"settings":{"foreground":"#0000ff"}},{"scope":"string.regexp","settings":{"foreground":"#811f3f"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#0000ff"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#000000"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#0451a5"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#e50000"}},{"scope":["support.type.property-name.json"],"settings":{"foreground":"#0451a5"}},{"scope":"keyword","settings":{"foreground":"#0000ff"}},{"scope":"keyword.control","settings":{"foreground":"#0000ff"}},{"scope":"keyword.operator","settings":{"foreground":"#000000"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#0000ff"}},{"scope":"keyword.other.unit","settings":{"foreground":"#098658"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#800000"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#0451a5"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#098658"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#000000"}},{"scope":"variable.language","settings":{"foreground":"#0000ff"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#795E26"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#267f99"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#267f99"}},{"scope":["keyword.control","source.cpp keyword.operator.new","source.cpp keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#AF00DB"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#001080"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#0070C1"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#001080"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#0451a5"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#811f3f"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#000000"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#EE0000"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#0000ff"}},{"scope":"constant.character.escape","settings":{"foreground":"#EE0000"}},{"scope":"entity.name.label","settings":{"foreground":"#000000"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/line-x4bpd_8D.js b/docs/assets/line-x4bpd_8D.js new file mode 100644 index 0000000..a092948 --- /dev/null +++ b/docs/assets/line-x4bpd_8D.js @@ -0,0 +1 @@ +import{r as o,t as y}from"./path-DvTahePH.js";import{t as s}from"./array-CC7vZNGO.js";import{v as x}from"./step-D7xg1Moj.js";function d(t){return t[0]}function h(t){return t[1]}function E(t,u){var a=o(!0),i=null,l=x,e=null,v=y(r);t=typeof t=="function"?t:t===void 0?d:o(t),u=typeof u=="function"?u:u===void 0?h:o(u);function r(n){var f,m=(n=s(n)).length,p,c=!1,g;for(i??(e=l(g=v())),f=0;f<=m;++f)!(f=a&&(yield a);else{let a=-1;for(let r of n)(r=t(r,++a,n))!=null&&(r=+r)>=r&&(yield r)}}var M=g(F);const N=M.right,K=M.left;g(v).center;var y=N;function L(n){return function(){return n}}function d(n){return+n}var k=[0,1];function h(n){return n}function p(n,t){return(t-=n=+n)?function(a){return(a-n)/t}:L(isNaN(t)?NaN:.5)}function Q(n,t){var a;return n>t&&(a=n,n=t,t=a),function(r){return Math.max(n,Math.min(t,r))}}function U(n,t,a){var r=n[0],s=n[1],u=t[0],e=t[1];return s2?V:U,l=o=null,f}function f(i){return i==null||isNaN(i=+i)?u:(l||(l=c(n.map(r),t,a)))(r(e(i)))}return f.invert=function(i){return e(s((o||(o=c(t,n.map(r),G)))(i)))},f.domain=function(i){return arguments.length?(n=Array.from(i,d),m()):n.slice()},f.range=function(i){return arguments.length?(t=Array.from(i),m()):t.slice()},f.rangeRound=function(i){return t=Array.from(i),a=H,m()},f.clamp=function(i){return arguments.length?(e=i?!0:h,m()):e!==h},f.interpolate=function(i){return arguments.length?(a=i,m()):a},f.unknown=function(i){return arguments.length?(u=i,f):u},function(i,D){return r=i,s=D,m()}}function w(){return A()(h,h)}function x(n,t,a,r){var s=E(n,t,a),u;switch(r=_(r??",f"),r.type){case"s":var e=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(u=P(s,e))&&(r.precision=u),q(r,e);case"":case"e":case"g":case"p":case"r":r.precision==null&&!isNaN(u=T(s,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=u-(r.type==="e"));break;case"f":case"%":r.precision==null&&!isNaN(u=S(s))&&(r.precision=u-(r.type==="%")*2);break}return z(r)}function j(n){var t=n.domain;return n.ticks=function(a){var r=t();return R(r[0],r[r.length-1],a??10)},n.tickFormat=function(a,r){var s=t();return x(s[0],s[s.length-1],a??10,r)},n.nice=function(a){a??(a=10);var r=t(),s=0,u=r.length-1,e=r[s],c=r[u],l,o,m=10;for(c0;){if(o=O(e,c,a),o===l)return r[s]=e,r[u]=c,t(r);if(o>0)e=Math.floor(e/o)*o,c=Math.ceil(c/o)*o;else if(o<0)e=Math.ceil(e*o)/o,c=Math.floor(c*o)/o;else break;l=o}return n},n}function C(){var n=w();return n.copy=function(){return b(n,C())},I.apply(n,arguments),j(n)}export{b as a,d as c,y as d,v as f,w as i,K as l,j as n,h as o,J as p,x as r,A as s,C as t,N as u}; diff --git a/docs/assets/link-54sBkoQp.js b/docs/assets/link-54sBkoQp.js new file mode 100644 index 0000000..2679895 --- /dev/null +++ b/docs/assets/link-54sBkoQp.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);export{t}; diff --git a/docs/assets/links-DNmjkr65.js b/docs/assets/links-DNmjkr65.js new file mode 100644 index 0000000..c8b577d --- /dev/null +++ b/docs/assets/links-DNmjkr65.js @@ -0,0 +1 @@ +import{s as o}from"./chunk-LvLJmgfZ.js";import{t as i}from"./compiler-runtime-DeeZ7FnK.js";import{t as s}from"./jsx-runtime-DN_bIXfG.js";var l=i(),m=o(s(),1);const c=n=>{let r=(0,l.c)(3),{href:e,children:a}=n,t;return r[0]!==a||r[1]!==e?(t=(0,m.jsx)("a",{href:e,target:"_blank",className:"text-link hover:underline",children:a}),r[0]=a,r[1]=e,r[2]=t):t=r[2],t};export{c as t}; diff --git a/docs/assets/links-Dh2BjF0A.js b/docs/assets/links-Dh2BjF0A.js new file mode 100644 index 0000000..aef69a9 --- /dev/null +++ b/docs/assets/links-Dh2BjF0A.js @@ -0,0 +1 @@ +import{m as n}from"./config-CENq_7Pd.js";function t(o){window.open(n(`?file=${o}`).toString(),"_blank")}export{t}; diff --git a/docs/assets/liquid-CCS7f-BT.js b/docs/assets/liquid-CCS7f-BT.js new file mode 100644 index 0000000..2006999 --- /dev/null +++ b/docs/assets/liquid-CCS7f-BT.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./css-xi2XX7Oh.js";import{t as i}from"./html-Bz1QLM72.js";import{t}from"./json-CdDqxu0N.js";var a=Object.freeze(JSON.parse(`{"displayName":"Liquid","fileTypes":["liquid"],"foldingStartMarker":"\\\\{%-?\\\\s*(capture|case|comment|form??|if|javascript|paginate|schema|style)[^%()}]+%}","foldingStopMarker":"\\\\{%\\\\s*(end(?:capture|case|comment|form??|if|javascript|paginate|schema|style))[^%()}]+%}","injections":{"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted":{"patterns":[{"include":"#injection"}]}},"name":"liquid","patterns":[{"include":"#core"}],"repository":{"attribute":{"begin":"\\\\w+:","beginCaptures":{"0":{"name":"entity.other.attribute-name.liquid"}},"end":"(?=,|%}|}}|\\\\|)","patterns":[{"include":"#value_expression"}]},"attribute_liquid":{"begin":"\\\\w+:","beginCaptures":{"0":{"name":"entity.other.attribute-name.liquid"}},"end":"(?=[,|])|$","patterns":[{"include":"#value_expression"}]},"comment_block":{"begin":"\\\\{%-?\\\\s*comment\\\\s*-?%}","end":"\\\\{%-?\\\\s*endcomment\\\\s*-?%}","name":"comment.block.liquid","patterns":[{"include":"#comment_block"},{"match":"(.(?!\\\\{%-?\\\\s*((?:|end)comment)\\\\s*-?%}))*."}]},"core":{"patterns":[{"include":"#raw_tag"},{"include":"#doc_tag"},{"include":"#comment_block"},{"include":"#style_codefence"},{"include":"#stylesheet_codefence"},{"include":"#json_codefence"},{"include":"#javascript_codefence"},{"include":"#object"},{"include":"#tag"},{"include":"text.html.basic"}]},"doc_tag":{"begin":"\\\\{%-?\\\\s*(doc)\\\\s*-?%}","beginCaptures":{"0":{"name":"meta.tag.liquid"},"1":{"name":"entity.name.tag.doc.liquid"}},"contentName":"comment.block.documentation.liquid","end":"\\\\{%-?\\\\s*(enddoc)\\\\s*-?%}","endCaptures":{"0":{"name":"meta.tag.liquid"},"1":{"name":"entity.name.tag.doc.liquid"}},"name":"meta.block.doc.liquid","patterns":[{"include":"#liquid_doc_description_tag"},{"include":"#liquid_doc_param_tag"},{"include":"#liquid_doc_example_tag"},{"include":"#liquid_doc_prompt_tag"},{"include":"#liquid_doc_fallback_tag"}]},"filter":{"captures":{"1":{"name":"support.function.liquid"}},"match":"\\\\|\\\\s*((?![.0-9])[-0-9A-Z_a-z]+:?)\\\\s*"},"injection":{"patterns":[{"include":"#raw_tag"},{"include":"#comment_block"},{"include":"#object"},{"include":"#tag_injection"}]},"invalid_range":{"match":"\\\\((.(?!\\\\.\\\\.))+\\\\)","name":"invalid.illegal.range.liquid"},"javascript_codefence":{"begin":"(\\\\{%-?)\\\\s*(javascript)\\\\s*(-?%})","beginCaptures":{"0":{"name":"meta.tag.metadata.javascript.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.javascript.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"contentName":"meta.embedded.block.js","end":"(\\\\{%-?)\\\\s*(endjavascript)\\\\s*(-?%})","endCaptures":{"0":{"name":"meta.tag.metadata.javascript.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.javascript.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}},"name":"meta.block.javascript.liquid","patterns":[{"include":"source.js"}]},"json_codefence":{"begin":"(\\\\{%-?)\\\\s*(schema)\\\\s*(-?%})","beginCaptures":{"0":{"name":"meta.tag.metadata.schema.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.schema.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"contentName":"meta.embedded.block.json","end":"(\\\\{%-?)\\\\s*(endschema)\\\\s*(-?%})","endCaptures":{"0":{"name":"meta.tag.metadata.schema.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.schema.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}},"name":"meta.block.schema.liquid","patterns":[{"include":"source.json"}]},"language_constant":{"match":"\\\\b(false|true|nil|blank)\\\\b|empty(?!\\\\?)","name":"constant.language.liquid"},"liquid_doc_description_tag":{"begin":"(@description)\\\\b\\\\s*","beginCaptures":{"0":{"name":"comment.block.documentation.liquid"},"1":{"name":"storage.type.class.liquid"}},"contentName":"string.quoted.single.liquid","end":"(?=@prompt|@example|@param|@description|\\\\{%-?\\\\s*enddoc\\\\s*-?%})"},"liquid_doc_example_tag":{"begin":"(@example)\\\\b\\\\s*","beginCaptures":{"0":{"name":"comment.block.documentation.liquid"},"1":{"name":"storage.type.class.liquid"}},"contentName":"meta.embedded.block.liquid","end":"(?=@prompt|@example|@param|@description|\\\\{%-?\\\\s*enddoc\\\\s*-?%})","patterns":[{"include":"#core"}]},"liquid_doc_fallback_tag":{"captures":{"1":{"name":"comment.block.liquid"}},"match":"(@\\\\w+)\\\\b"},"liquid_doc_param_tag":{"captures":{"1":{"name":"storage.type.class.liquid"},"2":{"name":"entity.name.type.instance.liquid"},"3":{"name":"variable.other.liquid"},"4":{"name":"string.quoted.single.liquid"}},"match":"(@param)\\\\s+(?:(\\\\{[^}]*}?)\\\\s+)?(\\\\[?[A-Z_a-z][-\\\\w]*]?)?(?:\\\\s+(.*))?"},"liquid_doc_prompt_tag":{"begin":"(@prompt)\\\\b\\\\s*","beginCaptures":{"0":{"name":"comment.block.documentation.liquid"},"1":{"name":"storage.type.class.liquid"}},"contentName":"string.quoted.single.liquid","end":"(?=@prompt|@example|@param|@description|\\\\{%-?\\\\s*enddoc\\\\s*-?%})"},"number":{"match":"(([-+])\\\\s*)?[0-9]+(\\\\.[0-9]+)?","name":"constant.numeric.liquid"},"object":{"begin":"(?]|>=|<=|or|and|contains)(?:(?=\\\\s)|\\\\b)"},"range":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.liquid"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.liquid"}},"name":"meta.range.liquid","patterns":[{"match":"\\\\.\\\\.","name":"punctuation.range.liquid"},{"include":"#variable_lookup"},{"include":"#number"}]},"raw_tag":{"begin":"\\\\{%-?\\\\s*(raw)\\\\s*-?%}","beginCaptures":{"1":{"name":"entity.name.tag.liquid"}},"contentName":"string.unquoted.liquid","end":"\\\\{%-?\\\\s*(endraw)\\\\s*-?%}","endCaptures":{"1":{"name":"entity.name.tag.liquid"}},"name":"meta.entity.tag.raw.liquid","patterns":[{"match":"(.(?!\\\\{%-?\\\\s*endraw\\\\s*-?%}))*."}]},"string":{"patterns":[{"include":"#string_single"},{"include":"#string_double"}]},"string_double":{"begin":"\\"","end":"\\"","name":"string.quoted.double.liquid"},"string_single":{"begin":"'","end":"'","name":"string.quoted.single.liquid"},"style_codefence":{"begin":"(\\\\{%-?)\\\\s*(style)\\\\s*(-?%})","beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"contentName":"meta.embedded.block.css","end":"(\\\\{%-?)\\\\s*(endstyle)\\\\s*(-?%})","endCaptures":{"0":{"name":"meta.tag.metadata.style.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}},"name":"meta.block.style.liquid","patterns":[{"include":"source.css"}]},"stylesheet_codefence":{"begin":"(\\\\{%-?)\\\\s*(stylesheet)\\\\s*(-?%})","beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"contentName":"meta.embedded.block.css","end":"(\\\\{%-?)\\\\s*(endstylesheet)\\\\s*(-?%})","endCaptures":{"0":{"name":"meta.tag.metadata.style.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}},"name":"meta.block.style.liquid","patterns":[{"include":"source.css"}]},"tag":{"begin":"(?|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+g+")?))\\s*$"),o="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",x={token:"string",regex:".+"},a={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+o},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+o},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+o},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+o},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+o},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+o},{token:"variableName",regex:g+"\\s*:(?![:=])"},{token:"variableName",regex:g},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:g,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},x],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},x],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},x],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},x],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},x],words:[{token:"string",regex:".*?\\]>",next:"key"},x]};for(var d in a){var s=a[d];if(s.splice)for(var i=0,y=s.length;i{let r=(0,n.c)(9),e=h(),{clearLogs:i}=u();if(e.length===0){let o;r[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)("code",{className:"border rounded px-1",children:"stdout"}),r[0]=o):o=r[0];let l;return r[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(b,{title:"No logs",description:(0,s.jsxs)("span",{children:[o," and"," ",(0,s.jsx)("code",{className:"border rounded px-1",children:"stderr"})," logs will appear here."]}),icon:(0,s.jsx)(f,{})}),r[1]=l):l=r[1],l}let a;r[2]===i?a=r[3]:(a=(0,s.jsx)("div",{className:"flex flex-row justify-start px-2 py-1",children:(0,s.jsx)(w,{dataTestId:"clear-logs-button",onClick:i})}),r[2]=i,r[3]=a);let t;r[4]===e?t=r[5]:(t=(0,s.jsx)("div",{className:"overflow-auto flex-1",children:(0,s.jsx)(d,{logs:e,className:"min-w-[300px]"})}),r[4]=e,r[5]=t);let c;return r[6]!==a||r[7]!==t?(c=(0,s.jsxs)(s.Fragment,{children:[a,t]}),r[6]=a,r[7]=t,r[8]=c):c=r[8],c};const d=r=>{let e=(0,n.c)(10),{logs:i,className:a}=r,t;e[0]===a?t=e[1]:(t=m("flex flex-col",a),e[0]=a,e[1]=t);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c={whiteSpace:"pre-wrap"},e[2]=c):c=e[2];let o;e[3]===i?o=e[4]:(o=i.map(I),e[3]=i,e[4]=o);let l;e[5]===o?l=e[6]:(l=(0,s.jsx)("pre",{className:"grid text-xs font-mono gap-1 whitespace-break-spaces font-semibold align-left",children:(0,s.jsx)("div",{className:"grid grid-cols-[30px_1fr]",style:c,children:o})}),e[5]=o,e[6]=l);let p;return e[7]!==t||e[8]!==l?(p=(0,s.jsx)("div",{className:t,children:l}),e[7]=t,e[8]=l,e[9]=p):p=e[9],p};function k(r){let e=j(r.timestamp),i=S[r.level],a=r.level.toUpperCase();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("span",{className:"shrink-0 text-(--gray-10) dark:text-(--gray-11)",children:["[",e,"]"]}),(0,s.jsx)("span",{className:m("shrink-0",i),children:a}),(0,s.jsxs)("span",{className:"shrink-0 text-(--gray-10)",children:["(",(0,s.jsx)(N,{cellId:r.cellId}),")"]}),r.message]})}var S={stdout:"text-(--grass-9)",stderr:"text-(--red-9)"};function I(r,e){return(0,s.jsxs)("div",{className:"contents group",children:[(0,s.jsx)("span",{className:m("opacity-70 group-hover:bg-(--gray-3) group-hover:opacity-100","text-right col-span-1 py-1 pr-1"),children:e+1}),(0,s.jsx)("span",{className:m("opacity-70 group-hover:bg-(--gray-3) group-hover:opacity-100","px-2 flex gap-x-1.5 py-1 flex-wrap"),children:k(r)})]},e)}export{d as LogViewer,_ as default}; diff --git a/docs/assets/loro_wasm_bg-BCxPjJ2X.js b/docs/assets/loro_wasm_bg-BCxPjJ2X.js new file mode 100644 index 0000000..c9ad43a --- /dev/null +++ b/docs/assets/loro_wasm_bg-BCxPjJ2X.js @@ -0,0 +1,2 @@ +import{r as Oi}from"./chunk-LvLJmgfZ.js";let ae,ie,le,ge,ce,de,we,be,ue,pe,he,fe,me,ve,ye,xe,Se,Ce,Ae,Oe,Ie,Ne,Fe,De,Le,ke,Ee,Re,Te,Ve,Je,Ue,Pe,Me,Be,ze,je,We,He,qe,$e,Ge,Ke,Qe,Xe,Ye,Ze,et,tt,rt,_t,ot,nt,st,at,it,lt,gt,ct,dt,wt,bt,ut,pt,ht,ft,mt,vt,yt,xt,St,Ct,At,Ot,It,Nt,Ft,Dt,Lt,kt,Et,Rt,Tt,Vt,Jt,Ut,Pt,Mt,Bt,zt,jt,Wt,Ht,qt,$t,Gt,Kt,Qt,Xt,Yt,Zt,er,tr,rr,_r,or,nr,sr,ar,ir,lr,gr,cr,dr,wr,br,ur,pr,hr,fr,mr,vr,yr,xr,Sr,Cr,Ar,Or,Ir,Nr,Fr,Dr,Lr,kr,Er,Rr,Tr,Vr,Jr,Ur,Pr,Mr,Br,zr,jr,Wr,Hr,qr,$r,Gr,Kr,Qr,Xr,Yr,Zr,e_,t_,r_,__,o_,n_,s_,a_,i_,l_,g_,c_,d_,w_,b_,u_,p_,h_,f_,m_,v_,y_,x_,S_,C_,A_,O_,I_,N_,F_,D_,L_,k_,E_,R_,T_,V_,L,J_,U_,P_,M_,B_,z_,j_,W_,H_,q_,$_,G_,K_,Q_,Ii,X_,Y_,Z_,eo,Ni,to,ro,_o,oo,no,so,ao,io,lo,go,co,wo,bo,uo,po,ho,fo,mo,vo,yo,xo,So,Co,Ao,Oo,Io,No,Fo,Do,Lo,ko,Eo,Q,Ro,To,Vo,Jo,Uo,Po,X,Mo,Bo,zo,jo,Wo,Ho,qo,$o,Go,Ko,Qo,Xo,Yo,Zo,en,tn,rn,_n,on,nn,sn,an,ln,gn,cn,dn,wn,bn,un,pn,hn,fn,mn,vn,yn,xn,Sn,Cn,An,On,S,In,Nn,Fn,Dn,Ln,kn,En,Rn,Tn,Vn,Jn,Un,Pn,N,Mn,Bn,zn,jn,Wn,Hn,qn,$n,Gn,Kn,Qn,Xn,Yn,Zn,es,ts,rs,_s,os,ns,ss,as,is,ls,gs,cs,ds,ws,bs,us,ps,hs,Hi=(async()=>{let ms,vs,r;ms=""+new URL("loro_wasm_bg-DV7Kb4_M.wasm",import.meta.url).href,vs=async(_={},e)=>{let t;if(e.startsWith("data:")){let n=e.replace(/^data:.*?base64,/,""),a;if(typeof Buffer=="function"&&typeof Buffer.from=="function")a=Buffer.from(n,"base64");else if(typeof atob=="function"){let i=atob(n);a=new Uint8Array(i.length);for(let g=0;gZo,ChangeModifier:()=>re,Cursor:()=>S,EphemeralStoreWasm:()=>D_,LORO_VERSION:()=>Vi,LoroCounter:()=>J,LoroDoc:()=>Q,LoroList:()=>M,LoroMap:()=>N,LoroMovableList:()=>j,LoroText:()=>L,LoroTree:()=>q,LoroTreeNode:()=>D,UndoManager:()=>K_,VersionVector:()=>x,__wbg_String_8f0eb39a4a4c2f66:()=>Cs,__wbg_apply_36be6a55257c99bf:()=>As,__wbg_apply_eb9e9b97497f91e4:()=>Os,__wbg_buffer_609cc3eee51ed158:()=>Is,__wbg_call_672a4d21634d4a24:()=>Ns,__wbg_call_7cccdd69e0791ae2:()=>Fs,__wbg_call_833bed5770ea2041:()=>Ds,__wbg_call_b8adc8b1d0a0d8eb:()=>Ls,__wbg_changemodifier_new:()=>ks,__wbg_crypto_574e78ad8b13b65f:()=>Es,__wbg_cursor_new:()=>Rs,__wbg_done_769e5ede4b31c67b:()=>Ts,__wbg_entries_3265d4158b33e5dc:()=>Vs,__wbg_entries_c8a90a7ed73e84ce:()=>Js,__wbg_error_7534b8e9a36f1ab4:()=>Us,__wbg_error_ec1c81ec21690870:()=>Ps,__wbg_from_2a5d3e218e67aa85:()=>Ms,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:()=>Bs,__wbg_getRandomValues_b8f5dbd5f3995a9e:()=>zs,__wbg_get_67b2ba62fc30de12:()=>js,__wbg_get_b9b93047fe3cf45b:()=>Ws,__wbg_getindex_5b00c274b05714aa:()=>Hs,__wbg_getwithrefkey_1dc361bd10053bfe:()=>qs,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:()=>$s,__wbg_instanceof_Map_f3469ce2244d2430:()=>Gs,__wbg_instanceof_Object_7f2dcef8f78644a4:()=>Ks,__wbg_instanceof_Uint8Array_17156bcf118086a9:()=>Qs,__wbg_isArray_a1eab7e0d067391b:()=>Xs,__wbg_isSafeInteger_343e2beeeece1bb0:()=>Ys,__wbg_iterator_9a24c88df860dc65:()=>Zs,__wbg_length_a446193dc22c12f8:()=>ea,__wbg_length_e2d2a49132c1b256:()=>ta,__wbg_log_0cc1b7768397bcfe:()=>ra,__wbg_log_8c0006defd0ef388:()=>_a,__wbg_log_cb9e190acc5753fb:()=>oa,__wbg_lorocounter_new:()=>na,__wbg_lorolist_new:()=>sa,__wbg_loromap_new:()=>aa,__wbg_loromovablelist_new:()=>ia,__wbg_lorotext_new:()=>la,__wbg_lorotree_new:()=>ga,__wbg_lorotreenode_new:()=>ca,__wbg_mark_7438147ce31e9d4b:()=>da,__wbg_measure_fb7825c11612c823:()=>wa,__wbg_msCrypto_a61aeb35a24c1329:()=>ba,__wbg_new_405e22f390576ce2:()=>ua,__wbg_new_5e0be73521bc8c17:()=>pa,__wbg_new_78feb108b6472713:()=>ha,__wbg_new_8a6f238a6ece86ea:()=>fa,__wbg_new_a12002a7f91c75be:()=>ma,__wbg_newnoargs_105ed471475aaf50:()=>va,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:()=>ya,__wbg_newwithlength_a381634e90c276d4:()=>xa,__wbg_newwithlength_c4c419ef0bc8a1f8:()=>Sa,__wbg_next_25feadfc0913fea9:()=>Ca,__wbg_next_6574e1a8a62d1055:()=>Aa,__wbg_node_905d3e251edff8a2:()=>Oa,__wbg_now_8a87c5466cc7d560:()=>Ia,__wbg_ownKeys_3930041068756f1f:()=>Na,__wbg_process_dc0fbacc7c1c06f7:()=>Fa,__wbg_push_737cfc8c1432c2c6:()=>Da,__wbg_randomFillSync_ac0988aba3254290:()=>La,__wbg_require_60cc747a6bc5215a:()=>ka,__wbg_resolve_4851785c9c5f573d:()=>Ea,__wbg_set_37837023f3d740e8:()=>Ra,__wbg_set_3f1d0b984ed272ed:()=>Ta,__wbg_set_65595bdd868b3009:()=>Va,__wbg_set_8fc6bf8a5b1071d1:()=>Ja,__wbg_set_bb8cecf6a62b9f46:()=>Ua,__wbg_set_wasm:()=>sn,__wbg_setindex_dcd71eabf405bde1:()=>Pa,__wbg_stack_0ed75d68575b0f3c:()=>Ma,__wbg_static_accessor_GLOBAL_88a902d13a557d07:()=>Ba,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:()=>za,__wbg_static_accessor_SELF_37c5d418e4bf5819:()=>ja,__wbg_static_accessor_WINDOW_5de37043a91a9c40:()=>Wa,__wbg_subarray_aa9065fa9dc5df96:()=>Ha,__wbg_then_44b73946d2fb3e7d:()=>qa,__wbg_value_cd1ffa7b1ab794f1:()=>$a,__wbg_versions_c01dfd4722a88165:()=>Ga,__wbg_versionvector_new:()=>Ka,__wbg_warn_6a7b1c2df711ad0a:()=>Qa,__wbindgen_as_number:()=>Xa,__wbindgen_bigint_from_i64:()=>Ya,__wbindgen_bigint_from_u64:()=>Za,__wbindgen_bigint_get_as_i64:()=>ei,__wbindgen_boolean_get:()=>ti,__wbindgen_cb_drop:()=>ri,__wbindgen_closure_wrapper718:()=>_i,__wbindgen_closure_wrapper720:()=>oi,__wbindgen_debug_string:()=>ni,__wbindgen_error_new:()=>si,__wbindgen_in:()=>ai,__wbindgen_init_externref_table:()=>X,__wbindgen_is_array:()=>ii,__wbindgen_is_bigint:()=>li,__wbindgen_is_falsy:()=>gi,__wbindgen_is_function:()=>ci,__wbindgen_is_null:()=>di,__wbindgen_is_object:()=>wi,__wbindgen_is_string:()=>bi,__wbindgen_is_undefined:()=>ui,__wbindgen_jsval_eq:()=>pi,__wbindgen_jsval_loose_eq:()=>hi,__wbindgen_memory:()=>fi,__wbindgen_number_get:()=>mi,__wbindgen_number_new:()=>vi,__wbindgen_rethrow:()=>yi,__wbindgen_string_get:()=>xi,__wbindgen_string_new:()=>Si,__wbindgen_throw:()=>Ci,__wbindgen_typeof:()=>Ai,callPendingEvents:()=>ao,decodeFrontiers:()=>Bi,decodeImportBlobMeta:()=>zi,encodeFrontiers:()=>Ui,redactJsonUpdates:()=>Pi,run:()=>Mi,setDebug:()=>Ji},1),sn=function(_){r=_};var l=0,R=null;function A(){return(R===null||R.byteLength===0)&&(R=new Uint8Array(r.memory.buffer)),R}var T=new(typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder)("utf-8"),Ti=typeof T.encodeInto=="function"?function(_,e){return T.encodeInto(_,e)}:function(_,e){let t=T.encode(_);return e.set(t),{read:_.length,written:t.length}};function d(_,e,t){if(t===void 0){let c=T.encode(_),h=e(c.length,1)>>>0;return A().subarray(h,h+c.length).set(c),l=c.length,h}let n=_.length,a=e(n,1)>>>0,i=A(),g=0;for(;g127)break;i[a+g]=c}if(g!==n){g!==0&&(_=_.slice(g)),a=t(a,n,n=g+_.length*3,1)>>>0;let c=A().subarray(a+g,a+n),h=Ti(_,c);g+=h.written,a=t(a,n,g,1)>>>0}return l=g,a}var O=null;function u(){return(O===null||O.buffer.detached===!0||O.buffer.detached===void 0&&O.buffer!==r.memory.buffer)&&(O=new DataView(r.memory.buffer)),O}function C(_){let e=r.__externref_table_alloc();return r.__wbindgen_export_4.set(e,_),e}function p(_,e){try{return _.apply(this,e)}catch(t){let n=C(t);r.__wbindgen_exn_store(n)}}var ys=new(typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});ys.decode();function w(_,e){return _>>>=0,ys.decode(A().subarray(_,_+e))}function b(_){return _==null}var xs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>{r.__wbindgen_export_6.get(_.dtor)(_.a,_.b)});function Ss(_,e,t,n){let a={a:_,b:e,cnt:1,dtor:t},i=(...g)=>{a.cnt++;let c=a.a;a.a=0;try{return n(c,a.b,...g)}finally{--a.cnt===0?(r.__wbindgen_export_6.get(a.dtor)(c,a.b),xs.unregister(a)):a.a=c}};return i.original=a,xs.register(i,a,a),i}function Z(_){let e=typeof _;if(e=="number"||e=="boolean"||_==null)return`${_}`;if(e=="string")return`"${_}"`;if(e=="symbol"){let a=_.description;return a==null?"Symbol":`Symbol(${a})`}if(e=="function"){let a=_.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(_)){let a=_.length,i="[";a>0&&(i+=Z(_[0]));for(let g=1;g1)n=t[1];else return toString.call(_);if(n=="Object")try{return"Object("+JSON.stringify(_)+")"}catch{return"Object"}return _ instanceof Error?`${_.name}: ${_.message} +${_.stack}`:n}function s(_){let e=r.__wbindgen_export_4.get(_);return r.__externref_table_dealloc(_),e}function I(_,e){if(!(_ instanceof e))throw Error(`expected instance of ${e.name}`)}function v(_,e){let t=e(_.length*1,1)>>>0;return A().set(_,t/1),l=_.length,t}function y(_,e){return _>>>=0,A().subarray(_/1,_/1+e)}function m(_,e){_>>>=0;let t=u(),n=[];for(let a=_;a<_+4*e;a+=4)n.push(r.__wbindgen_export_4.get(t.getUint32(a,!0)));return r.__externref_drop_slice(_,e),n}function Vi(){let _,e;try{let t=r.LORO_VERSION();return _=t[0],e=t[1],w(t[0],t[1])}finally{r.__wbindgen_free(_,e,1)}}function Ji(){r.setDebug()}function f(_,e){let t=e(_.length*4,4)>>>0;for(let n=0;n<_.length;n++){let a=C(_[n]);u().setUint32(t+4*n,a,!0)}return l=_.length,t}function Ui(_){let e=f(_,r.__wbindgen_malloc),t=l,n=r.encodeFrontiers(e,t);if(n[3])throw s(n[2]);var a=y(n[0],n[1]).slice();return r.__wbindgen_free(n[0],n[1]*1,1),a}function Pi(_,e){let t=r.redactJsonUpdates(_,e);if(t[2])throw s(t[1]);return s(t[0])}ao=function(){r.callPendingEvents()};function Mi(){r.run()}function Bi(_){let e=v(_,r.__wbindgen_malloc),t=l,n=r.decodeFrontiers(e,t);if(n[2])throw s(n[1]);return s(n[0])}function zi(_,e){let t=v(_,r.__wbindgen_malloc),n=l,a=r.decodeImportBlobMeta(t,n,e);if(a[2])throw s(a[1]);return s(a[0])}function ji(_,e,t){r.closure9_externref_shim(_,e,t)}function Wi(_,e){r._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2222385ed10d04df(_,e)}let ee,te,re,_e,oe,V,J,U,P,M,B,z,j,W,H,q,ne,D,se,$,x;ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_awarenesswasm_free(_>>>0,1)),Zo=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_awarenesswasm_free(_,0)}getAllStates(){let _=r.awarenesswasm_getAllStates(this.__wbg_ptr);if(_[2])throw s(_[1]);return s(_[0])}getTimestamp(_){let e=r.awarenesswasm_getTimestamp(this.__wbg_ptr,_);if(e[3])throw s(e[2]);return e[0]===0?void 0:e[1]}setLocalState(_){r.awarenesswasm_setLocalState(this.__wbg_ptr,_)}removeOutdated(){let _=r.awarenesswasm_removeOutdated(this.__wbg_ptr);var e=m(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}constructor(_,e){let t=r.awarenesswasm_new(_,e);if(t[2])throw s(t[1]);return this.__wbg_ptr=t[0]>>>0,ee.register(this,this.__wbg_ptr,this),this}peer(){return r.awarenesswasm_peer(this.__wbg_ptr)}apply(_){let e=v(_,r.__wbindgen_malloc),t=l,n=r.awarenesswasm_apply(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}peers(){let _=r.awarenesswasm_peers(this.__wbg_ptr);var e=m(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}encode(_){let e=r.awarenesswasm_encode(this.__wbg_ptr,_);if(e[3])throw s(e[2]);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}length(){return r.awarenesswasm_length(this.__wbg_ptr)}isEmpty(){return r.awarenesswasm_isEmpty(this.__wbg_ptr)!==0}getState(_){let e=r.awarenesswasm_getState(this.__wbg_ptr,_);if(e[2])throw s(e[1]);return s(e[0])}encodeAll(){let _=r.awarenesswasm_encodeAll(this.__wbg_ptr);var e=y(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*1,1),e}},te=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_changemodifier_free(_>>>0,1)),re=class Y{static __wrap(e){e>>>=0;let t=Object.create(Y.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_changemodifier_free(e,0)}setMessage(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.changemodifier_setMessage(this.__wbg_ptr,t,n);return Y.__wrap(a)}setTimestamp(e){let t=r.changemodifier_setTimestamp(this.__wbg_ptr,e);return Y.__wrap(t)}},_e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_cursor_free(_>>>0,1)),S=class fs{static __wrap(e){e>>>=0;let t=Object.create(fs.prototype);return t.__wbg_ptr=e,_e.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_e.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_cursor_free(e,0)}containerId(){return r.cursor_containerId(this.__wbg_ptr)}pos(){let e=r.cursor_pos(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}kind(){return r.cursor_kind(this.__wbg_ptr)}side(){return r.cursor_side(this.__wbg_ptr)}static decode(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.cursor_decode(t,n);if(a[2])throw s(a[1]);return fs.__wrap(a[0])}encode(){let e=r.cursor_encode(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}},oe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ephemeralstorewasm_free(_>>>0,1)),D_=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_ephemeralstorewasm_free(_,0)}getAllStates(){let _=r.ephemeralstorewasm_getAllStates(this.__wbg_ptr);if(_[2])throw s(_[1]);return s(_[0])}removeOutdated(){r.ephemeralstorewasm_removeOutdated(this.__wbg_ptr)}subscribeLocalUpdates(_){return r.ephemeralstorewasm_subscribeLocalUpdates(this.__wbg_ptr,_)}get(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l;return r.ephemeralstorewasm_get(this.__wbg_ptr,e,t)}constructor(_){return this.__wbg_ptr=r.ephemeralstorewasm_new(_)>>>0,oe.register(this,this.__wbg_ptr,this),this}set(_,e){let t=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.ephemeralstorewasm_set(this.__wbg_ptr,t,n,e)}keys(){let _=r.ephemeralstorewasm_keys(this.__wbg_ptr);var e=m(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}apply(_){let e=v(_,r.__wbindgen_malloc),t=l,n=r.ephemeralstorewasm_apply(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}delete(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l;r.ephemeralstorewasm_delete(this.__wbg_ptr,e,t)}encode(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l,n=r.ephemeralstorewasm_encode(this.__wbg_ptr,e,t);var a=y(n[0],n[1]).slice();return r.__wbindgen_free(n[0],n[1]*1,1),a}isEmpty(){return r.ephemeralstorewasm_isEmpty(this.__wbg_ptr)!==0}encodeAll(){let _=r.ephemeralstorewasm_encodeAll(this.__wbg_ptr);var e=y(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*1,1),e}subscribe(_){return r.ephemeralstorewasm_subscribe(this.__wbg_ptr,_)}},V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorocounter_free(_>>>0,1)),J=class Fi{static __wrap(e){e>>>=0;let t=Object.create(Fi.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorocounter_free(e,0)}isAttached(){return r.lorocounter_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorocounter_getAttached(this.__wbg_ptr)}getShallowValue(){let e=r.lorocounter_getShallowValue(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]}get id(){return r.lorocounter_id(this.__wbg_ptr)}constructor(){return this.__wbg_ptr=r.lorocounter_new()>>>0,V.register(this,this.__wbg_ptr,this),this}kind(){return r.lorocounter_kind(this.__wbg_ptr)}parent(){return r.lorocounter_parent(this.__wbg_ptr)}toJSON(){let e=r.lorocounter_toJSON(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]}decrement(e){let t=r.lorocounter_decrement(this.__wbg_ptr,e);if(t[1])throw s(t[0])}get value(){let e=r.lorocounter_value(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]}increment(e){let t=r.lorocounter_increment(this.__wbg_ptr,e);if(t[1])throw s(t[0])}subscribe(e){let t=r.lorocounter_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},U=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorodoc_free(_>>>0,1)),Q=class k{static __wrap(e){e>>>=0;let t=Object.create(k.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorodoc_free(e,0)}applyDiff(e){let t=r.lorodoc_applyDiff(this.__wbg_ptr,e);if(t[1])throw s(t[0])}isShallow(){return r.lorodoc_isShallow(this.__wbg_ptr)!==0}changeCount(){return r.lorodoc_changeCount(this.__wbg_ptr)>>>0}getByPath(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;return r.lorodoc_getByPath(this.__wbg_ptr,t,n)}getCounter(e){let t=r.lorodoc_getCounter(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return J.__wrap(t[0])}isDetached(){return r.lorodoc_isDetached(this.__wbg_ptr)!==0}get peerIdStr(){return r.lorodoc_peerIdStr(this.__wbg_ptr)}setPeerId(e){let t=r.lorodoc_setPeerId(this.__wbg_ptr,e);if(t[1])throw s(t[0])}getCursorPos(e){I(e,S);let t=r.lorodoc_getCursorPos(this.__wbg_ptr,e.__wbg_ptr);if(t[2])throw s(t[1]);return s(t[0])}hasContainer(e){return r.lorodoc_hasContainer(this.__wbg_ptr,e)!==0}importBatch(e){let t=r.lorodoc_importBatch(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}cmpFrontiers(e,t){let n=f(e,r.__wbindgen_malloc),a=l,i=f(t,r.__wbindgen_malloc),g=l,c=r.lorodoc_cmpFrontiers(this.__wbg_ptr,n,a,i,g);if(c[2])throw s(c[1]);return s(c[0])}debugHistory(){r.lorodoc_debugHistory(this.__wbg_ptr)}static fromSnapshot(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_fromSnapshot(t,n);if(a[2])throw s(a[1]);return k.__wrap(a[0])}getChangeAt(e){let t=r.lorodoc_getChangeAt(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}oplogVersion(){let e=r.lorodoc_oplogVersion(this.__wbg_ptr);return x.__wrap(e)}getMovableList(e){let t=r.lorodoc_getMovableList(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return j.__wrap(t[0])}frontiersToVV(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_frontiersToVV(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return x.__wrap(a[0])}getAllChanges(){return r.lorodoc_getAllChanges(this.__wbg_ptr)}oplogFrontiers(){let e=r.lorodoc_oplogFrontiers(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}vvToFrontiers(e){I(e,x);let t=r.lorodoc_vvToFrontiers(this.__wbg_ptr,e.__wbg_ptr);if(t[2])throw s(t[1]);return s(t[0])}shallowSinceVV(){let e=r.lorodoc_shallowSinceVV(this.__wbg_ptr);return x.__wrap(e)}configTextStyle(e){let t=r.lorodoc_configTextStyle(this.__wbg_ptr,e);if(t[1])throw s(t[0])}getOpsInChange(e){let t=r.lorodoc_getOpsInChange(this.__wbg_ptr,e);if(t[3])throw s(t[2]);var n=m(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*4,4),n}getShallowValue(){let e=r.lorodoc_getShallowValue(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}checkoutToLatest(){let e=r.lorodoc_checkoutToLatest(this.__wbg_ptr);if(e[1])throw s(e[0])}cmpWithFrontiers(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_cmpWithFrontiers(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return a[0]}exportJsonInIdSpan(e){let t=r.lorodoc_exportJsonInIdSpan(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}subscribeJsonpath(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorodoc_subscribeJsonpath(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}deleteRootContainer(e){let t=r.lorodoc_deleteRootContainer(this.__wbg_ptr,e);if(t[1])throw s(t[0])}exportJsonUpdates(e,t,n){let a=r.lorodoc_exportJsonUpdates(this.__wbg_ptr,e,t,b(n)?16777215:n?1:0);if(a[2])throw s(a[1]);return s(a[0])}getContainerById(e){let t=r.lorodoc_getContainerById(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}getPendingTxnLength(){return r.lorodoc_getPendingTxnLength(this.__wbg_ptr)>>>0}importJsonUpdates(e){let t=r.lorodoc_importJsonUpdates(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}importUpdateBatch(e){let t=r.lorodoc_importUpdateBatch(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}setDetachedEditing(e){r.lorodoc_setDetachedEditing(this.__wbg_ptr,e)}setRecordTimestamp(e){r.lorodoc_setRecordTimestamp(this.__wbg_ptr,e)}subscribePreCommit(e){return r.lorodoc_subscribePreCommit(this.__wbg_ptr,e)}findIdSpansBetween(e,t){let n=f(e,r.__wbindgen_malloc),a=l,i=f(t,r.__wbindgen_malloc),g=l,c=r.lorodoc_findIdSpansBetween(this.__wbg_ptr,n,a,i,g);if(c[2])throw s(c[1]);return s(c[0])}getChangeAtLamport(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorodoc_getChangeAtLamport(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}getPathToContainer(e){let t=r.lorodoc_getPathToContainer(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}getChangedContainersIn(e,t){let n=r.lorodoc_getChangedContainersIn(this.__wbg_ptr,e,t);if(n[3])throw s(n[2]);var a=m(n[0],n[1]).slice();return r.__wbindgen_free(n[0],n[1]*4,4),a}getDeepValueWithID(){return r.lorodoc_getDeepValueWithID(this.__wbg_ptr)}setNextCommitOrigin(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.lorodoc_setNextCommitOrigin(this.__wbg_ptr,t,n)}getUncommittedOpsAsJson(){let e=r.lorodoc_getUncommittedOpsAsJson(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}setNextCommitMessage(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.lorodoc_setNextCommitMessage(this.__wbg_ptr,t,n)}setNextCommitOptions(e){let t=r.lorodoc_setNextCommitOptions(this.__wbg_ptr,e);if(t[1])throw s(t[0])}shallowSinceFrontiers(){let e=r.lorodoc_shallowSinceFrontiers(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}subscribeLocalUpdates(e){return r.lorodoc_subscribeLocalUpdates(this.__wbg_ptr,e)}travelChangeAncestors(e,t){let n=f(e,r.__wbindgen_malloc),a=l,i=r.lorodoc_travelChangeAncestors(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}clearNextCommitOptions(){r.lorodoc_clearNextCommitOptions(this.__wbg_ptr)}configDefaultTextStyle(e){let t=r.lorodoc_configDefaultTextStyle(this.__wbg_ptr,e);if(t[1])throw s(t[0])}setChangeMergeInterval(e){r.lorodoc_setChangeMergeInterval(this.__wbg_ptr,e)}setNextCommitTimestamp(e){r.lorodoc_setNextCommitTimestamp(this.__wbg_ptr,e)}setHideEmptyRootContainers(e){let t=r.lorodoc_setHideEmptyRootContainers(this.__wbg_ptr,e);if(t[1])throw s(t[0])}isDetachedEditingEnabled(){return r.lorodoc_isDetachedEditingEnabled(this.__wbg_ptr)!==0}subscribeFirstCommitFromPeer(e){return r.lorodoc_subscribeFirstCommitFromPeer(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=r.lorodoc_new()>>>0,U.register(this,this.__wbg_ptr,this),this}diff(e,t,n){let a=f(e,r.__wbindgen_malloc),i=l,g=f(t,r.__wbindgen_malloc),c=l,h=r.lorodoc_diff(this.__wbg_ptr,a,i,g,c,b(n)?16777215:n?1:0);if(h[2])throw s(h[1]);return s(h[0])}fork(){let e=r.lorodoc_fork(this.__wbg_ptr);return k.__wrap(e)}attach(){r.lorodoc_attach(this.__wbg_ptr)}commit(e){let t=r.lorodoc_commit(this.__wbg_ptr,b(e)?0:C(e));if(t[1])throw s(t[0])}detach(){r.lorodoc_detach(this.__wbg_ptr)}export(e){let t=r.lorodoc_export(this.__wbg_ptr,e);if(t[3])throw s(t[2]);var n=y(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),n}import(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_import(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return s(a[0])}forkAt(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_forkAt(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return k.__wrap(a[0])}getMap(e){let t=r.lorodoc_getMap(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return N.__wrap(t[0])}opCount(){return r.lorodoc_opCount(this.__wbg_ptr)>>>0}get peerId(){let e=r.lorodoc_peerId(this.__wbg_ptr);return BigInt.asUintN(64,e)}toJSON(){let e=r.lorodoc_toJSON(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}version(){let e=r.lorodoc_version(this.__wbg_ptr);return x.__wrap(e)}checkout(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_checkout(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}getList(e){let t=r.lorodoc_getList(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return M.__wrap(t[0])}getText(e){let t=r.lorodoc_getText(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return L.__wrap(t[0])}getTree(e){let t=r.lorodoc_getTree(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return q.__wrap(t[0])}frontiers(){let e=r.lorodoc_frontiers(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}JSONPath(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.lorodoc_JSONPath(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return s(a[0])}revertTo(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_revertTo(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}subscribe(e){return r.lorodoc_subscribe(this.__wbg_ptr,e)}},P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorolist_free(_>>>0,1)),M=class Di{static __wrap(e){e>>>=0;let t=Object.create(Di.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorolist_free(e,0)}isAttached(){return r.lorolist_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorolist_getAttached(this.__wbg_ptr)}pushContainer(e){let t=r.lorolist_pushContainer(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}insertContainer(e,t){let n=r.lorolist_insertContainer(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getShallowValue(){return r.lorolist_getShallowValue(this.__wbg_ptr)}get id(){return r.lorolist_id(this.__wbg_ptr)}get(e){return r.lorolist_get(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=r.lorolist_new()>>>0,P.register(this,this.__wbg_ptr,this),this}pop(){let e=r.lorolist_pop(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}kind(){return r.lorolist_kind(this.__wbg_ptr)}push(e){let t=r.lorolist_push(this.__wbg_ptr,e);if(t[1])throw s(t[0])}clear(){let e=r.lorolist_clear(this.__wbg_ptr);if(e[1])throw s(e[0])}delete(e,t){let n=r.lorolist_delete(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}insert(e,t){let n=r.lorolist_insert(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}get length(){return r.lorolist_length(this.__wbg_ptr)>>>0}parent(){return r.lorolist_parent(this.__wbg_ptr)}getIdAt(e){let t=r.lorolist_getIdAt(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}toJSON(){return r.lorolist_toJSON(this.__wbg_ptr)}toArray(){let e=r.lorolist_toArray(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}getCursor(e,t){let n=r.lorolist_getCursor(this.__wbg_ptr,e,t);return n===0?void 0:S.__wrap(n)}isDeleted(){return r.lorolist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorolist_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},B=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_loromap_free(_>>>0,1)),N=class Li{static __wrap(e){e>>>=0;let t=Object.create(Li.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_loromap_free(e,0)}isAttached(){return r.loromap_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.loromap_getAttached(this.__wbg_ptr)}getLastEditor(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;return r.loromap_getLastEditor(this.__wbg_ptr,t,n)}setContainer(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.loromap_setContainer(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}getShallowValue(){return r.loromap_getShallowValue(this.__wbg_ptr)}getOrCreateContainer(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.loromap_getOrCreateContainer(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}get id(){return r.loromap_id(this.__wbg_ptr)}get(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;return r.loromap_get(this.__wbg_ptr,t,n)}constructor(){return this.__wbg_ptr=r.loromap_new()>>>0,B.register(this,this.__wbg_ptr,this),this}keys(){let e=r.loromap_keys(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}kind(){return r.loromap_kind(this.__wbg_ptr)}get size(){return r.loromap_size(this.__wbg_ptr)>>>0}clear(){let e=r.loromap_clear(this.__wbg_ptr);if(e[1])throw s(e[0])}delete(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.loromap_delete(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}set(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.loromap_set(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}parent(){return r.loromap_parent(this.__wbg_ptr)}values(){let e=r.loromap_values(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}entries(){let e=r.loromap_entries(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}toJSON(){return r.loromap_toJSON(this.__wbg_ptr)}isDeleted(){return r.loromap_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.loromap_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_loromovablelist_free(_>>>0,1)),j=class ki{static __wrap(e){e>>>=0;let t=Object.create(ki.prototype);return t.__wbg_ptr=e,z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_loromovablelist_free(e,0)}isAttached(){return r.loromovablelist_isAttached(this.__wbg_ptr)!==0}getCreatorAt(e){return r.loromovablelist_getCreatorAt(this.__wbg_ptr,e)}getAttached(){return r.loromovablelist_getAttached(this.__wbg_ptr)}setContainer(e,t){let n=r.loromovablelist_setContainer(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getLastMoverAt(e){return r.loromovablelist_getLastMoverAt(this.__wbg_ptr,e)}pushContainer(e){let t=r.loromovablelist_pushContainer(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}getLastEditorAt(e){return r.loromovablelist_getLastEditorAt(this.__wbg_ptr,e)}insertContainer(e,t){let n=r.loromovablelist_insertContainer(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getShallowValue(){return r.loromovablelist_getShallowValue(this.__wbg_ptr)}get id(){return r.loromovablelist_id(this.__wbg_ptr)}get(e){return r.loromovablelist_get(this.__wbg_ptr,e)}move(e,t){let n=r.loromovablelist_move(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}constructor(){return this.__wbg_ptr=r.loromovablelist_new()>>>0,z.register(this,this.__wbg_ptr,this),this}pop(){let e=r.loromovablelist_pop(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}set(e,t){let n=r.loromovablelist_set(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}kind(){return r.loromovablelist_kind(this.__wbg_ptr)}push(e){let t=r.loromovablelist_push(this.__wbg_ptr,e);if(t[1])throw s(t[0])}clear(){let e=r.loromovablelist_clear(this.__wbg_ptr);if(e[1])throw s(e[0])}delete(e,t){let n=r.loromovablelist_delete(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}insert(e,t){let n=r.loromovablelist_insert(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}get length(){return r.loromovablelist_length(this.__wbg_ptr)>>>0}parent(){return r.loromovablelist_parent(this.__wbg_ptr)}toJSON(){return r.loromovablelist_toJSON(this.__wbg_ptr)}toArray(){let e=r.loromovablelist_toArray(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}getCursor(e,t){let n=r.loromovablelist_getCursor(this.__wbg_ptr,e,t);return n===0?void 0:S.__wrap(n)}isDeleted(){return r.loromovablelist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.loromovablelist_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},W=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotext_free(_>>>0,1)),L=class Ei{static __wrap(e){e>>>=0;let t=Object.create(Ei.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotext_free(e,0)}applyDelta(e){let t=r.lorotext_applyDelta(this.__wbg_ptr,e);if(t[1])throw s(t[0])}convertPos(e,t,n){let a=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,g=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=l;return r.lorotext_convertPos(this.__wbg_ptr,e,a,i,g,c)}deleteUtf8(e,t){let n=r.lorotext_deleteUtf8(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}getEditorOf(e){return r.lorotext_getEditorOf(this.__wbg_ptr,e)}insertUtf8(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_insertUtf8(this.__wbg_ptr,e,n,a);if(i[1])throw s(i[0])}isAttached(){return r.lorotext_isAttached(this.__wbg_ptr)!==0}sliceDelta(e,t){let n=r.lorotext_sliceDelta(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getAttached(){return r.lorotext_getAttached(this.__wbg_ptr)}updateByLine(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_updateByLine(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}sliceDeltaUtf8(e,t){let n=r.lorotext_sliceDeltaUtf8(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getShallowValue(){let e,t;try{let n=r.lorotext_getShallowValue(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get id(){return r.lorotext_id(this.__wbg_ptr)}constructor(){return this.__wbg_ptr=r.lorotext_new()>>>0,W.register(this,this.__wbg_ptr,this),this}iter(e){let t=r.lorotext_iter(this.__wbg_ptr,e);if(t[1])throw s(t[0])}kind(){return r.lorotext_kind(this.__wbg_ptr)}mark(e,t,n){let a=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,g=r.lorotext_mark(this.__wbg_ptr,e,a,i,n);if(g[1])throw s(g[0])}push(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.lorotext_push(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}slice(e,t){let n,a;try{let c=r.lorotext_slice(this.__wbg_ptr,e,t);var i=c[0],g=c[1];if(c[3])throw i=0,g=0,s(c[2]);return n=i,a=g,w(i,g)}finally{r.__wbindgen_free(n,a,1)}}delete(e,t){let n=r.lorotext_delete(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}insert(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_insert(this.__wbg_ptr,e,n,a);if(i[1])throw s(i[0])}get length(){return r.lorotext_length(this.__wbg_ptr)>>>0}parent(){return r.lorotext_parent(this.__wbg_ptr)}splice(e,t,n){let a,i;try{let h=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),G=l,K=r.lorotext_splice(this.__wbg_ptr,e,t,h,G);var g=K[0],c=K[1];if(K[3])throw g=0,c=0,s(K[2]);return a=g,i=c,w(g,c)}finally{r.__wbindgen_free(a,i,1)}}unmark(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_unmark(this.__wbg_ptr,e,n,a);if(i[1])throw s(i[0])}update(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_update(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}charAt(e){let t=r.lorotext_charAt(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return String.fromCodePoint(t[0])}toJSON(){return r.lorotext_toJSON(this.__wbg_ptr)}toDelta(){let e=r.lorotext_toDelta(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}getCursor(e,t){let n=r.lorotext_getCursor(this.__wbg_ptr,e,t);return n===0?void 0:S.__wrap(n)}isDeleted(){return r.lorotext_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorotext_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}toString(){let e,t;try{let n=r.lorotext_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}},H=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotree_free(_>>>0,1)),q=class Ri{static __wrap(e){e>>>=0;let t=Object.create(Ri.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotree_free(e,0)}createNode(e,t){let n=r.lorotree_createNode(this.__wbg_ptr,e,b(t)?4294967297:t>>>0);if(n[2])throw s(n[1]);return D.__wrap(n[0])}isAttached(){return r.lorotree_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorotree_getAttached(this.__wbg_ptr)}getNodeByID(e){let t=r.lorotree_getNodeByID(this.__wbg_ptr,e);return t===0?void 0:D.__wrap(t)}isNodeDeleted(e){let t=r.lorotree_isNodeDeleted(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return t[0]!==0}getShallowValue(){return r.lorotree_getShallowValue(this.__wbg_ptr)}enableFractionalIndex(e){r.lorotree_enableFractionalIndex(this.__wbg_ptr,e)}disableFractionalIndex(){r.lorotree_disableFractionalIndex(this.__wbg_ptr)}isFractionalIndexEnabled(){return r.lorotree_isFractionalIndexEnabled(this.__wbg_ptr)!==0}get id(){return r.lorotree_id(this.__wbg_ptr)}move(e,t,n){let a=r.lorotree_move(this.__wbg_ptr,e,t,b(n)?4294967297:n>>>0);if(a[1])throw s(a[0])}constructor(){return this.__wbg_ptr=r.lorotree_new()>>>0,H.register(this,this.__wbg_ptr,this),this}kind(){return r.lorotree_kind(this.__wbg_ptr)}nodes(){let e=r.lorotree_nodes(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}roots(){let e=r.lorotree_roots(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}delete(e){let t=r.lorotree_delete(this.__wbg_ptr,e);if(t[1])throw s(t[0])}parent(){return r.lorotree_parent(this.__wbg_ptr)}toJSON(){return r.lorotree_toJSON(this.__wbg_ptr)}has(e){return r.lorotree_has(this.__wbg_ptr,e)!==0}toArray(){let e=r.lorotree_toArray(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}getNodes(e){let t=r.lorotree_getNodes(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}isDeleted(){return r.lorotree_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorotree_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},ne=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotreenode_free(_>>>0,1)),D=class F{static __wrap(e){e>>>=0;let t=Object.create(F.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotreenode_free(e,0)}creationId(){let e=r.lorotreenode_creationId(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}isDeleted(){let e=r.lorotreenode_isDeleted(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]!==0}moveBefore(e){I(e,F);let t=r.lorotreenode_moveBefore(this.__wbg_ptr,e.__wbg_ptr);if(t[1])throw s(t[0])}createNode(e){let t=r.lorotreenode_createNode(this.__wbg_ptr,b(e)?4294967297:e>>>0);if(t[2])throw s(t[1]);return F.__wrap(t[0])}getLastMoveId(){let e=r.lorotreenode_getLastMoveId(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}toJSON(){let e=r.lorotreenode_toJSON(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}fractionalIndex(){let e=r.lorotreenode_fractionalIndex(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}__getClassname(){let e,t;try{let n=r.lorotreenode___getClassname(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get id(){return r.lorotreenode_id(this.__wbg_ptr)}move(e,t){let n=r.lorotreenode_move(this.__wbg_ptr,e,b(t)?4294967297:t>>>0);if(n[1])throw s(n[0])}get data(){let e=r.lorotreenode_data(this.__wbg_ptr);if(e[2])throw s(e[1]);return N.__wrap(e[0])}index(){let e=r.lorotreenode_index(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]===4294967297?void 0:e[0]}parent(){let e=r.lorotreenode_parent(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]===0?void 0:F.__wrap(e[0])}creator(){return r.lorotreenode_creator(this.__wbg_ptr)}children(){return r.lorotreenode_children(this.__wbg_ptr)}moveAfter(e){I(e,F);let t=r.lorotreenode_moveAfter(this.__wbg_ptr,e.__wbg_ptr);if(t[1])throw s(t[0])}},se=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_undomanager_free(_>>>0,1)),K_=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_undomanager_free(_,0)}groupStart(){let _=r.undomanager_groupStart(this.__wbg_ptr);if(_[1])throw s(_[0])}topRedoValue(){return r.undomanager_topRedoValue(this.__wbg_ptr)}topUndoValue(){return r.undomanager_topUndoValue(this.__wbg_ptr)}setMaxUndoSteps(_){r.undomanager_setMaxUndoSteps(this.__wbg_ptr,_)}setMergeInterval(_){r.undomanager_setMergeInterval(this.__wbg_ptr,_)}addExcludeOriginPrefix(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l;r.undomanager_addExcludeOriginPrefix(this.__wbg_ptr,e,t)}constructor(_,e){return I(_,Q),this.__wbg_ptr=r.undomanager_new(_.__wbg_ptr,e)>>>0,se.register(this,this.__wbg_ptr,this),this}peer(){return r.undomanager_peer(this.__wbg_ptr)}redo(){let _=r.undomanager_redo(this.__wbg_ptr);if(_[2])throw s(_[1]);return _[0]!==0}undo(){let _=r.undomanager_undo(this.__wbg_ptr);if(_[2])throw s(_[1]);return _[0]!==0}clear(){r.undomanager_clear(this.__wbg_ptr)}canRedo(){return r.undomanager_canRedo(this.__wbg_ptr)!==0}canUndo(){return r.undomanager_canUndo(this.__wbg_ptr)!==0}groupEnd(){r.undomanager_groupEnd(this.__wbg_ptr)}setOnPop(_){r.undomanager_setOnPop(this.__wbg_ptr,_)}setOnPush(_){r.undomanager_setOnPush(this.__wbg_ptr,_)}},$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_versionvector_free(_>>>0,1)),x=class E{static __wrap(e){e>>>=0;let t=Object.create(E.prototype);return t.__wbg_ptr=e,$.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_versionvector_free(e,0)}get(e){let t=r.versionvector_get(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return t[0]===4294967297?void 0:t[0]}constructor(e){let t=r.versionvector_new(e);if(t[2])throw s(t[1]);return this.__wbg_ptr=t[0]>>>0,$.register(this,this.__wbg_ptr,this),this}static decode(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.versionvector_decode(t,n);if(a[2])throw s(a[1]);return E.__wrap(a[0])}encode(){let e=r.versionvector_encode(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}length(){return r.versionvector_length(this.__wbg_ptr)>>>0}remove(e){let t=r.versionvector_remove(this.__wbg_ptr,e);if(t[1])throw s(t[0])}setEnd(e){let t=r.versionvector_setEnd(this.__wbg_ptr,e);if(t[1])throw s(t[0])}compare(e){I(e,E);let t=r.versionvector_compare(this.__wbg_ptr,e.__wbg_ptr);return t===4294967297?void 0:t}setLast(e){let t=r.versionvector_setLast(this.__wbg_ptr,e);if(t[1])throw s(t[0])}toJSON(){return r.versionvector_toJSON(this.__wbg_ptr)}static parseJSON(e){let t=r.versionvector_parseJSON(e);if(t[2])throw s(t[1]);return E.__wrap(t[0])}};function Cs(_,e){let t=d(String(e),r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;u().setInt32(_+4,n,!0),u().setInt32(_+0,t,!0)}function As(){return p(function(_,e,t){return _.apply(e,t)},arguments)}function Os(){return p(function(_,e,t){return Reflect.apply(_,e,t)},arguments)}function Is(_){return _.buffer}function Ns(){return p(function(_,e){return _.call(e)},arguments)}function Fs(){return p(function(_,e,t){return _.call(e,t)},arguments)}function Ds(){return p(function(_,e,t,n){return _.call(e,t,n)},arguments)}function Ls(){return p(function(_,e,t,n,a){return _.call(e,t,n,a)},arguments)}function ks(_){return re.__wrap(_)}function Es(_){return _.crypto}function Rs(_){return S.__wrap(_)}function Ts(_){return _.done}function Vs(_){return Object.entries(_)}function Js(_){return _.entries()}function Us(_,e){let t,n;try{t=_,n=e,console.error(w(_,e))}finally{r.__wbindgen_free(t,n,1)}}function Ps(_,e){console.error(w(_,e))}function Ms(_){return Array.from(_)}function Bs(_){return Object.getOwnPropertySymbols(_)}function zs(){return p(function(_,e){_.getRandomValues(e)},arguments)}function js(){return p(function(_,e){return Reflect.get(_,e)},arguments)}function Ws(_,e){return _[e>>>0]}function Hs(_,e){return _[e>>>0]}function qs(_,e){return _[e]}function $s(_){let e;try{e=_ instanceof ArrayBuffer}catch{e=!1}return e}function Gs(_){let e;try{e=_ instanceof Map}catch{e=!1}return e}function Ks(_){let e;try{e=_ instanceof Object}catch{e=!1}return e}function Qs(_){let e;try{e=_ instanceof Uint8Array}catch{e=!1}return e}function Xs(_){return Array.isArray(_)}function Ys(_){return Number.isSafeInteger(_)}function Zs(){return Symbol.iterator}function ea(_){return _.length}function ta(_){return _.length}function ra(_,e,t,n,a,i,g,c){let h,G;try{h=_,G=e,console.log(w(_,e),w(t,n),w(a,i),w(g,c))}finally{r.__wbindgen_free(h,G,1)}}function _a(_,e){console.log(w(_,e))}function oa(_,e){let t,n;try{t=_,n=e,console.log(w(_,e))}finally{r.__wbindgen_free(t,n,1)}}function na(_){return J.__wrap(_)}function sa(_){return M.__wrap(_)}function aa(_){return N.__wrap(_)}function ia(_){return j.__wrap(_)}function la(_){return L.__wrap(_)}function ga(_){return q.__wrap(_)}function ca(_){return D.__wrap(_)}function da(_,e){performance.mark(w(_,e))}function wa(){return p(function(_,e,t,n){let a,i,g,c;try{a=_,i=e,g=t,c=n,performance.measure(w(_,e),w(t,n))}finally{r.__wbindgen_free(a,i,1),r.__wbindgen_free(g,c,1)}},arguments)}function ba(_){return _.msCrypto}function ua(){return{}}function pa(){return new Map}function ha(){return[]}function fa(){return Error()}function ma(_){return new Uint8Array(_)}function va(_,e){return Function(w(_,e))}function ya(_,e,t){return new Uint8Array(_,e>>>0,t>>>0)}function xa(_){return new Uint8Array(_>>>0)}function Sa(_){return Array(_>>>0)}function Ca(_){return _.next}function Aa(){return p(function(_){return _.next()},arguments)}function Oa(_){return _.node}function Ia(){return Date.now()}function Na(){return p(function(_){return Reflect.ownKeys(_)},arguments)}function Fa(_){return _.process}function Da(_,e){return _.push(e)}function La(){return p(function(_,e){_.randomFillSync(e)},arguments)}function ka(){return p(function(){return module.require},arguments)}function Ea(_){return Promise.resolve(_)}function Ra(_,e,t){_[e>>>0]=t}function Ta(_,e,t){_[e]=t}function Va(_,e,t){_.set(e,t>>>0)}function Ja(_,e,t){return _.set(e,t)}function Ua(){return p(function(_,e,t){return Reflect.set(_,e,t)},arguments)}function Pa(_,e,t){_[e>>>0]=t}function Ma(_,e){let t=e.stack,n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;u().setInt32(_+4,a,!0),u().setInt32(_+0,n,!0)}function Ba(){let _=typeof global>"u"?null:global;return b(_)?0:C(_)}function za(){let _=typeof globalThis>"u"?null:globalThis;return b(_)?0:C(_)}function ja(){let _=typeof self>"u"?null:self;return b(_)?0:C(_)}function Wa(){let _=typeof window>"u"?null:window;return b(_)?0:C(_)}function Ha(_,e,t){return _.subarray(e>>>0,t>>>0)}function qa(_,e){return _.then(e)}function $a(_){return _.value}function Ga(_){return _.versions}function Ka(_){return x.__wrap(_)}function Qa(_,e){console.warn(w(_,e))}function Xa(_){return+_}function Ya(_){return _}function Za(_){return BigInt.asUintN(64,_)}function ei(_,e){let t=e,n=typeof t=="bigint"?t:void 0;u().setBigInt64(_+8,b(n)?BigInt(0):n,!0),u().setInt32(_+0,!b(n),!0)}function ti(_){let e=_;return typeof e=="boolean"?e?1:0:2}function ri(_){let e=_.original;return e.cnt--==1?(e.a=0,!0):!1}function _i(_,e,t){return Ss(_,e,10,ji)}function oi(_,e,t){return Ss(_,e,10,Wi)}function ni(_,e){let t=d(Z(e),r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;u().setInt32(_+4,n,!0),u().setInt32(_+0,t,!0)}function si(_,e){return Error(w(_,e))}function ai(_,e){return _ in e}X=function(){let _=r.__wbindgen_export_4,e=_.grow(4);_.set(0,void 0),_.set(e+0,void 0),_.set(e+1,null),_.set(e+2,!0),_.set(e+3,!1)};function ii(_){return Array.isArray(_)}function li(_){return typeof _=="bigint"}function gi(_){return!_}function ci(_){return typeof _=="function"}function di(_){return _===null}function wi(_){let e=_;return typeof e=="object"&&!!e}function bi(_){return typeof _=="string"}function ui(_){return _===void 0}function pi(_,e){return _===e}function hi(_,e){return _==e}function fi(){return r.memory}function mi(_,e){let t=e,n=typeof t=="number"?t:void 0;u().setFloat64(_+8,b(n)?0:n,!0),u().setInt32(_+0,!b(n),!0)}function vi(_){return _}function yi(_){throw _}function xi(_,e){let t=e,n=typeof t=="string"?t:void 0;var a=b(n)?0:d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;u().setInt32(_+4,i,!0),u().setInt32(_+0,a,!0)}function Si(_,e){return w(_,e)}function Ci(_,e){throw Error(w(_,e))}function Ai(_){return typeof _}Ii=Oi({LORO_VERSION:()=>Fn,__externref_drop_slice:()=>zo,__externref_table_alloc:()=>pn,__externref_table_dealloc:()=>go,__wbg_awarenesswasm_free:()=>w_,__wbg_changemodifier_free:()=>Ko,__wbg_cursor_free:()=>Sn,__wbg_ephemeralstorewasm_free:()=>O_,__wbg_lorocounter_free:()=>Do,__wbg_lorodoc_free:()=>Vn,__wbg_lorolist_free:()=>E_,__wbg_loromap_free:()=>H_,__wbg_loromovablelist_free:()=>rn,__wbg_lorotext_free:()=>Vo,__wbg_lorotree_free:()=>_o,__wbg_lorotreenode_free:()=>X_,__wbg_undomanager_free:()=>a_,__wbg_versionvector_free:()=>zn,__wbindgen_exn_store:()=>ss,__wbindgen_export_4:()=>v_,__wbindgen_export_6:()=>es,__wbindgen_free:()=>wr,__wbindgen_malloc:()=>Ae,__wbindgen_realloc:()=>Gn,__wbindgen_start:()=>mr,_dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2222385ed10d04df:()=>Je,awarenesswasm_apply:()=>Le,awarenesswasm_encode:()=>jt,awarenesswasm_encodeAll:()=>Co,awarenesswasm_getAllStates:()=>we,awarenesswasm_getState:()=>fo,awarenesswasm_getTimestamp:()=>Lt,awarenesswasm_isEmpty:()=>Jt,awarenesswasm_length:()=>Kt,awarenesswasm_new:()=>je,awarenesswasm_peer:()=>at,awarenesswasm_peers:()=>At,awarenesswasm_removeOutdated:()=>ar,awarenesswasm_setLocalState:()=>ds,callPendingEvents:()=>me,changemodifier_setMessage:()=>Lr,changemodifier_setTimestamp:()=>tt,closure9_externref_shim:()=>Ar,cursor_containerId:()=>Jr,cursor_decode:()=>Ke,cursor_encode:()=>mt,cursor_kind:()=>gn,cursor_pos:()=>wt,cursor_side:()=>Kr,decodeFrontiers:()=>jr,decodeImportBlobMeta:()=>t_,encodeFrontiers:()=>tr,ephemeralstorewasm_apply:()=>ae,ephemeralstorewasm_delete:()=>W_,ephemeralstorewasm_encode:()=>Tn,ephemeralstorewasm_encodeAll:()=>Go,ephemeralstorewasm_get:()=>xn,ephemeralstorewasm_getAllStates:()=>ho,ephemeralstorewasm_isEmpty:()=>m_,ephemeralstorewasm_keys:()=>tn,ephemeralstorewasm_new:()=>Nn,ephemeralstorewasm_removeOutdated:()=>k_,ephemeralstorewasm_set:()=>To,ephemeralstorewasm_subscribe:()=>Bn,ephemeralstorewasm_subscribeLocalUpdates:()=>U_,lorocounter_decrement:()=>ln,lorocounter_getAttached:()=>Bo,lorocounter_getShallowValue:()=>lo,lorocounter_id:()=>ro,lorocounter_increment:()=>d_,lorocounter_isAttached:()=>$n,lorocounter_kind:()=>cs,lorocounter_new:()=>A_,lorocounter_parent:()=>ns,lorocounter_subscribe:()=>fr,lorocounter_toJSON:()=>De,lorocounter_value:()=>Zn,lorodoc_JSONPath:()=>Cr,lorodoc_applyDiff:()=>ze,lorodoc_attach:()=>Ve,lorodoc_changeCount:()=>Gt,lorodoc_checkout:()=>Fo,lorodoc_checkoutToLatest:()=>fe,lorodoc_clearNextCommitOptions:()=>So,lorodoc_cmpFrontiers:()=>Vt,lorodoc_cmpWithFrontiers:()=>zt,lorodoc_commit:()=>er,lorodoc_configDefaultTextStyle:()=>Ge,lorodoc_configTextStyle:()=>dt,lorodoc_debugHistory:()=>Dt,lorodoc_deleteRootContainer:()=>dr,lorodoc_detach:()=>hs,lorodoc_diff:()=>Ce,lorodoc_export:()=>Vr,lorodoc_exportJsonInIdSpan:()=>st,lorodoc_exportJsonUpdates:()=>Dr,lorodoc_findIdSpansBetween:()=>zr,lorodoc_fork:()=>et,lorodoc_forkAt:()=>Ct,lorodoc_fromSnapshot:()=>un,lorodoc_frontiers:()=>ft,lorodoc_frontiersToVV:()=>e_,lorodoc_getAllChanges:()=>Gr,lorodoc_getByPath:()=>s_,lorodoc_getChangeAt:()=>sr,lorodoc_getChangeAtLamport:()=>de,lorodoc_getChangedContainersIn:()=>B_,lorodoc_getContainerById:()=>kn,lorodoc_getCounter:()=>Ho,lorodoc_getCursorPos:()=>mn,lorodoc_getDeepValueWithID:()=>bo,lorodoc_getList:()=>p_,lorodoc_getMap:()=>Yo,lorodoc_getMovableList:()=>On,lorodoc_getOpsInChange:()=>F_,lorodoc_getPathToContainer:()=>Eo,lorodoc_getPendingTxnLength:()=>Pn,lorodoc_getShallowValue:()=>V_,lorodoc_getText:()=>G_,lorodoc_getTree:()=>nn,lorodoc_getUncommittedOpsAsJson:()=>Po,lorodoc_hasContainer:()=>so,lorodoc_import:()=>eo,lorodoc_importBatch:()=>g_,lorodoc_importJsonUpdates:()=>Hn,lorodoc_importUpdateBatch:()=>ls,lorodoc_isDetached:()=>S_,lorodoc_isDetachedEditingEnabled:()=>_s,lorodoc_isShallow:()=>pr,lorodoc_new:()=>Ne,lorodoc_opCount:()=>Xn,lorodoc_oplogFrontiers:()=>xr,lorodoc_oplogVersion:()=>Me,lorodoc_peerId:()=>Re,lorodoc_peerIdStr:()=>qt,lorodoc_revertTo:()=>Io,lorodoc_setChangeMergeInterval:()=>pe,lorodoc_setDetachedEditing:()=>yo,lorodoc_setHideEmptyRootContainers:()=>Rt,lorodoc_setNextCommitMessage:()=>Mt,lorodoc_setNextCommitOptions:()=>Yt,lorodoc_setNextCommitOrigin:()=>qe,lorodoc_setNextCommitTimestamp:()=>gt,lorodoc_setPeerId:()=>Nt,lorodoc_setRecordTimestamp:()=>gr,lorodoc_shallowSinceFrontiers:()=>us,lorodoc_shallowSinceVV:()=>xe,lorodoc_subscribe:()=>Rr,lorodoc_subscribeFirstCommitFromPeer:()=>ot,lorodoc_subscribeJsonpath:()=>Nr,lorodoc_subscribeLocalUpdates:()=>Mr,lorodoc_subscribePreCommit:()=>Ye,lorodoc_toJSON:()=>xt,lorodoc_travelChangeAncestors:()=>wn,lorodoc_version:()=>pt,lorodoc_vvToFrontiers:()=>Yr,lorolist_clear:()=>qr,lorolist_delete:()=>o_,lorolist_get:()=>or,lorolist_getAttached:()=>ge,lorolist_getCursor:()=>j_,lorolist_getIdAt:()=>Rn,lorolist_getShallowValue:()=>$o,lorolist_id:()=>yn,lorolist_insert:()=>po,lorolist_insertContainer:()=>f_,lorolist_isAttached:()=>en,lorolist_isDeleted:()=>In,lorolist_kind:()=>L_,lorolist_length:()=>Ro,lorolist_new:()=>Mn,lorolist_parent:()=>J_,lorolist_pop:()=>Q_,lorolist_push:()=>an,lorolist_pushContainer:()=>Mo,lorolist_subscribe:()=>io,lorolist_toArray:()=>to,lorolist_toJSON:()=>c_,loromap_clear:()=>qn,loromap_delete:()=>gs,loromap_entries:()=>C_,loromap_get:()=>os,loromap_getAttached:()=>hr,loromap_getLastEditor:()=>Fe,loromap_getOrCreateContainer:()=>Yn,loromap_getShallowValue:()=>Sr,loromap_id:()=>Be,loromap_isAttached:()=>Te,loromap_isDeleted:()=>$t,loromap_keys:()=>No,loromap_kind:()=>he,loromap_new:()=>xo,loromap_parent:()=>Tt,loromap_set:()=>Bt,loromap_setContainer:()=>Zt,loromap_size:()=>$e,loromap_subscribe:()=>ct,loromap_toJSON:()=>Ft,loromap_values:()=>cr,loromovablelist_clear:()=>ps,loromovablelist_delete:()=>Se,loromovablelist_get:()=>Tr,loromovablelist_getAttached:()=>nt,loromovablelist_getCreatorAt:()=>Fr,loromovablelist_getCursor:()=>Br,loromovablelist_getLastEditorAt:()=>Ze,loromovablelist_getLastMoverAt:()=>St,loromovablelist_getShallowValue:()=>bn,loromovablelist_id:()=>ht,loromovablelist_insert:()=>Zr,loromovablelist_insertContainer:()=>$r,loromovablelist_isAttached:()=>n_,loromovablelist_isDeleted:()=>nr,loromovablelist_kind:()=>ce,loromovablelist_length:()=>M_,loromovablelist_move:()=>Ln,loromovablelist_new:()=>Wo,loromovablelist_parent:()=>fn,loromovablelist_pop:()=>wo,loromovablelist_push:()=>u_,loromovablelist_pushContainer:()=>Xo,loromovablelist_set:()=>An,loromovablelist_setContainer:()=>N_,loromovablelist_subscribe:()=>ko,loromovablelist_toArray:()=>Un,loromovablelist_toJSON:()=>T_,lorotext_applyDelta:()=>$_,lorotext_charAt:()=>on,lorotext_convertPos:()=>Uo,lorotext_delete:()=>no,lorotext_deleteUtf8:()=>Z_,lorotext_getAttached:()=>l_,lorotext_getCursor:()=>Wn,lorotext_getEditorOf:()=>is,lorotext_getShallowValue:()=>x_,lorotext_id:()=>rs,lorotext_insert:()=>ur,lorotext_insertUtf8:()=>Ie,lorotext_isAttached:()=>Qn,lorotext_isDeleted:()=>yr,lorotext_iter:()=>Pe,lorotext_kind:()=>Ee,lorotext_length:()=>Ht,lorotext_mark:()=>Oo,lorotext_new:()=>ue,lorotext_parent:()=>vo,lorotext_push:()=>Et,lorotext_slice:()=>Pt,lorotext_sliceDelta:()=>Xt,lorotext_sliceDeltaUtf8:()=>He,lorotext_splice:()=>lt,lorotext_subscribe:()=>It,lorotext_toDelta:()=>lr,lorotext_toJSON:()=>bs,lorotext_toString:()=>ye,lorotext_unmark:()=>Er,lorotext_update:()=>_t,lorotext_updateByLine:()=>Ir,lorotree_createNode:()=>Pr,lorotree_delete:()=>Xe,lorotree_disableFractionalIndex:()=>yt,lorotree_enableFractionalIndex:()=>dn,lorotree_getAttached:()=>ut,lorotree_getNodeByID:()=>Xr,lorotree_getNodes:()=>Hr,lorotree_getShallowValue:()=>__,lorotree_has:()=>_r,lorotree_id:()=>le,lorotree_isAttached:()=>P_,lorotree_isDeleted:()=>Dn,lorotree_isFractionalIndexEnabled:()=>jo,lorotree_isNodeDeleted:()=>hn,lorotree_kind:()=>co,lorotree_move:()=>b_,lorotree_new:()=>Qo,lorotree_nodes:()=>Cn,lorotree_parent:()=>I_,lorotree_roots:()=>Lo,lorotree_subscribe:()=>Jn,lorotree_toArray:()=>R_,lorotree_toJSON:()=>q_,lorotreenode___getClassname:()=>_n,lorotreenode_children:()=>Jo,lorotreenode_createNode:()=>oo,lorotreenode_creationId:()=>Y_,lorotreenode_creator:()=>i_,lorotreenode_data:()=>jn,lorotreenode_fractionalIndex:()=>as,lorotreenode_getLastMoveId:()=>y_,lorotreenode_id:()=>ts,lorotreenode_index:()=>br,lorotreenode_isDeleted:()=>Oe,lorotreenode_move:()=>Kn,lorotreenode_moveAfter:()=>vr,lorotreenode_moveBefore:()=>Ue,lorotreenode_parent:()=>ke,lorotreenode_toJSON:()=>Wt,memory:()=>Ao,redactJsonUpdates:()=>be,run:()=>mo,setDebug:()=>kt,undomanager_addExcludeOriginPrefix:()=>Ut,undomanager_canRedo:()=>Qt,undomanager_canUndo:()=>We,undomanager_clear:()=>it,undomanager_groupEnd:()=>Ot,undomanager_groupStart:()=>ir,undomanager_new:()=>ws,undomanager_peer:()=>ve,undomanager_redo:()=>kr,undomanager_setMaxUndoSteps:()=>rt,undomanager_setMergeInterval:()=>Or,undomanager_setOnPop:()=>Ur,undomanager_setOnPush:()=>Qe,undomanager_topRedoValue:()=>vt,undomanager_topUndoValue:()=>cn,undomanager_undo:()=>bt,versionvector_compare:()=>Qr,versionvector_decode:()=>Wr,versionvector_encode:()=>r_,versionvector_get:()=>rr,versionvector_length:()=>ie,versionvector_new:()=>z_,versionvector_parseJSON:()=>En,versionvector_remove:()=>qo,versionvector_setEnd:()=>vn,versionvector_setLast:()=>uo,versionvector_toJSON:()=>h_},1),URL=globalThis.URL;var o=await vs({"./loro_wasm_bg.js":{__wbg_lorotreenode_new:ca,__wbg_loromovablelist_new:ia,__wbg_lorolist_new:sa,__wbg_loromap_new:aa,__wbg_cursor_new:Rs,__wbg_lorocounter_new:na,__wbg_lorotree_new:ga,__wbg_lorotext_new:la,__wbg_versionvector_new:Ka,__wbg_changemodifier_new:ks,__wbindgen_is_function:ci,__wbindgen_number_get:mi,__wbindgen_string_get:xi,__wbindgen_string_new:Si,__wbindgen_boolean_get:ti,__wbindgen_error_new:si,__wbg_error_ec1c81ec21690870:Ps,__wbindgen_cb_drop:ri,__wbindgen_is_undefined:ui,__wbindgen_in:ai,__wbindgen_is_bigint:li,__wbindgen_bigint_from_i64:Ya,__wbindgen_jsval_eq:pi,__wbindgen_is_object:wi,__wbindgen_bigint_from_u64:Za,__wbindgen_as_number:Xa,__wbindgen_number_new:vi,__wbindgen_is_string:bi,__wbindgen_is_null:di,__wbindgen_is_falsy:gi,__wbindgen_typeof:Ai,__wbg_warn_6a7b1c2df711ad0a:Qa,__wbg_log_8c0006defd0ef388:_a,__wbindgen_is_array:ii,__wbg_log_cb9e190acc5753fb:oa,__wbg_log_0cc1b7768397bcfe:ra,__wbg_mark_7438147ce31e9d4b:da,__wbg_measure_fb7825c11612c823:wa,__wbg_new_8a6f238a6ece86ea:fa,__wbg_stack_0ed75d68575b0f3c:Ma,__wbg_error_7534b8e9a36f1ab4:Us,__wbindgen_jsval_loose_eq:hi,__wbg_getwithrefkey_1dc361bd10053bfe:qs,__wbg_set_3f1d0b984ed272ed:Ta,__wbg_String_8f0eb39a4a4c2f66:Cs,__wbg_now_8a87c5466cc7d560:Ia,__wbg_crypto_574e78ad8b13b65f:Es,__wbg_process_dc0fbacc7c1c06f7:Fa,__wbg_versions_c01dfd4722a88165:Ga,__wbg_node_905d3e251edff8a2:Oa,__wbg_require_60cc747a6bc5215a:ka,__wbg_msCrypto_a61aeb35a24c1329:ba,__wbg_randomFillSync_ac0988aba3254290:La,__wbg_getRandomValues_b8f5dbd5f3995a9e:zs,__wbg_new_5e0be73521bc8c17:pa,__wbg_new_78feb108b6472713:ha,__wbg_new_405e22f390576ce2:ua,__wbg_newnoargs_105ed471475aaf50:va,__wbg_new_a12002a7f91c75be:ma,__wbg_buffer_609cc3eee51ed158:Is,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:ya,__wbg_length_a446193dc22c12f8:ea,__wbg_newwithlength_a381634e90c276d4:xa,__wbg_set_65595bdd868b3009:Va,__wbg_subarray_aa9065fa9dc5df96:Ha,__wbg_getindex_5b00c274b05714aa:Hs,__wbg_setindex_dcd71eabf405bde1:Pa,__wbg_done_769e5ede4b31c67b:Ts,__wbg_value_cd1ffa7b1ab794f1:$a,__wbg_instanceof_Map_f3469ce2244d2430:Gs,__wbg_instanceof_Object_7f2dcef8f78644a4:Ks,__wbg_instanceof_Uint8Array_17156bcf118086a9:Qs,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:$s,__wbg_set_8fc6bf8a5b1071d1:Ja,__wbg_entries_c8a90a7ed73e84ce:Js,__wbg_newwithlength_c4c419ef0bc8a1f8:Sa,__wbg_get_b9b93047fe3cf45b:Ws,__wbg_set_37837023f3d740e8:Ra,__wbg_from_2a5d3e218e67aa85:Ms,__wbg_length_e2d2a49132c1b256:ta,__wbg_push_737cfc8c1432c2c6:Da,__wbg_isArray_a1eab7e0d067391b:Xs,__wbg_isSafeInteger_343e2beeeece1bb0:Ys,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:Bs,__wbg_entries_3265d4158b33e5dc:Vs,__wbg_iterator_9a24c88df860dc65:Zs,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:za,__wbg_call_672a4d21634d4a24:Ns,__wbg_static_accessor_SELF_37c5d418e4bf5819:ja,__wbg_static_accessor_GLOBAL_88a902d13a557d07:Ba,__wbg_static_accessor_WINDOW_5de37043a91a9c40:Wa,__wbg_then_44b73946d2fb3e7d:qa,__wbg_resolve_4851785c9c5f573d:Ea,__wbg_get_67b2ba62fc30de12:js,__wbg_set_bb8cecf6a62b9f46:Ua,__wbg_apply_eb9e9b97497f91e4:Os,__wbg_ownKeys_3930041068756f1f:Na,__wbg_apply_36be6a55257c99bf:As,__wbg_call_7cccdd69e0791ae2:Fs,__wbg_call_833bed5770ea2041:Ds,__wbg_call_b8adc8b1d0a0d8eb:Ls,__wbg_next_25feadfc0913fea9:Ca,__wbg_next_6574e1a8a62d1055:Aa,__wbindgen_bigint_get_as_i64:ei,__wbindgen_memory:fi,__wbindgen_throw:Ci,__wbindgen_rethrow:yi,__wbindgen_debug_string:ni,__wbindgen_closure_wrapper718:_i,__wbindgen_closure_wrapper720:oi,__wbindgen_init_externref_table:X}},ms);Ao=o.memory,Fn=o.LORO_VERSION,w_=o.__wbg_awarenesswasm_free,Ko=o.__wbg_changemodifier_free,Sn=o.__wbg_cursor_free,O_=o.__wbg_ephemeralstorewasm_free,Do=o.__wbg_lorocounter_free,Vn=o.__wbg_lorodoc_free,E_=o.__wbg_lorolist_free,H_=o.__wbg_loromap_free,Vo=o.__wbg_lorotext_free,_o=o.__wbg_lorotree_free,X_=o.__wbg_lorotreenode_free,a_=o.__wbg_undomanager_free,zn=o.__wbg_versionvector_free,Le=o.awarenesswasm_apply,jt=o.awarenesswasm_encode,Co=o.awarenesswasm_encodeAll,we=o.awarenesswasm_getAllStates,fo=o.awarenesswasm_getState,Lt=o.awarenesswasm_getTimestamp,Jt=o.awarenesswasm_isEmpty,Kt=o.awarenesswasm_length,je=o.awarenesswasm_new,at=o.awarenesswasm_peer,At=o.awarenesswasm_peers,ar=o.awarenesswasm_removeOutdated,ds=o.awarenesswasm_setLocalState,me=o.callPendingEvents,Lr=o.changemodifier_setMessage,tt=o.changemodifier_setTimestamp,Jr=o.cursor_containerId,Ke=o.cursor_decode,mt=o.cursor_encode,gn=o.cursor_kind,wt=o.cursor_pos,Kr=o.cursor_side,jr=o.decodeFrontiers,t_=o.decodeImportBlobMeta,tr=o.encodeFrontiers,ae=o.ephemeralstorewasm_apply,W_=o.ephemeralstorewasm_delete,Tn=o.ephemeralstorewasm_encode,Go=o.ephemeralstorewasm_encodeAll,xn=o.ephemeralstorewasm_get,ho=o.ephemeralstorewasm_getAllStates,m_=o.ephemeralstorewasm_isEmpty,tn=o.ephemeralstorewasm_keys,Nn=o.ephemeralstorewasm_new,k_=o.ephemeralstorewasm_removeOutdated,To=o.ephemeralstorewasm_set,Bn=o.ephemeralstorewasm_subscribe,U_=o.ephemeralstorewasm_subscribeLocalUpdates,ln=o.lorocounter_decrement,Bo=o.lorocounter_getAttached,lo=o.lorocounter_getShallowValue,ro=o.lorocounter_id,d_=o.lorocounter_increment,$n=o.lorocounter_isAttached,cs=o.lorocounter_kind,A_=o.lorocounter_new,ns=o.lorocounter_parent,fr=o.lorocounter_subscribe,Cr=o.lorodoc_JSONPath,ze=o.lorodoc_applyDiff,Ve=o.lorodoc_attach,Gt=o.lorodoc_changeCount,Fo=o.lorodoc_checkout,fe=o.lorodoc_checkoutToLatest,So=o.lorodoc_clearNextCommitOptions,Vt=o.lorodoc_cmpFrontiers,zt=o.lorodoc_cmpWithFrontiers,er=o.lorodoc_commit,Ge=o.lorodoc_configDefaultTextStyle,dt=o.lorodoc_configTextStyle,Dt=o.lorodoc_debugHistory,dr=o.lorodoc_deleteRootContainer,hs=o.lorodoc_detach,Ce=o.lorodoc_diff,Vr=o.lorodoc_export,st=o.lorodoc_exportJsonInIdSpan,Dr=o.lorodoc_exportJsonUpdates,zr=o.lorodoc_findIdSpansBetween,et=o.lorodoc_fork,Ct=o.lorodoc_forkAt,un=o.lorodoc_fromSnapshot,ft=o.lorodoc_frontiers,e_=o.lorodoc_frontiersToVV,Gr=o.lorodoc_getAllChanges,s_=o.lorodoc_getByPath,sr=o.lorodoc_getChangeAt,de=o.lorodoc_getChangeAtLamport,B_=o.lorodoc_getChangedContainersIn,kn=o.lorodoc_getContainerById,Ho=o.lorodoc_getCounter,mn=o.lorodoc_getCursorPos,bo=o.lorodoc_getDeepValueWithID,p_=o.lorodoc_getList,Yo=o.lorodoc_getMap,On=o.lorodoc_getMovableList,F_=o.lorodoc_getOpsInChange,Eo=o.lorodoc_getPathToContainer,Pn=o.lorodoc_getPendingTxnLength,V_=o.lorodoc_getShallowValue,G_=o.lorodoc_getText,nn=o.lorodoc_getTree,Po=o.lorodoc_getUncommittedOpsAsJson,so=o.lorodoc_hasContainer,eo=o.lorodoc_import,g_=o.lorodoc_importBatch,Hn=o.lorodoc_importJsonUpdates,S_=o.lorodoc_isDetached,_s=o.lorodoc_isDetachedEditingEnabled,pr=o.lorodoc_isShallow,Ne=o.lorodoc_new,Xn=o.lorodoc_opCount,xr=o.lorodoc_oplogFrontiers,Me=o.lorodoc_oplogVersion,Re=o.lorodoc_peerId,qt=o.lorodoc_peerIdStr,Io=o.lorodoc_revertTo,pe=o.lorodoc_setChangeMergeInterval,yo=o.lorodoc_setDetachedEditing,Rt=o.lorodoc_setHideEmptyRootContainers,Mt=o.lorodoc_setNextCommitMessage,Yt=o.lorodoc_setNextCommitOptions,qe=o.lorodoc_setNextCommitOrigin,gt=o.lorodoc_setNextCommitTimestamp,Nt=o.lorodoc_setPeerId,gr=o.lorodoc_setRecordTimestamp,us=o.lorodoc_shallowSinceFrontiers,xe=o.lorodoc_shallowSinceVV,Rr=o.lorodoc_subscribe,ot=o.lorodoc_subscribeFirstCommitFromPeer,Nr=o.lorodoc_subscribeJsonpath,Mr=o.lorodoc_subscribeLocalUpdates,Ye=o.lorodoc_subscribePreCommit,xt=o.lorodoc_toJSON,wn=o.lorodoc_travelChangeAncestors,pt=o.lorodoc_version,Yr=o.lorodoc_vvToFrontiers,qr=o.lorolist_clear,o_=o.lorolist_delete,or=o.lorolist_get,ge=o.lorolist_getAttached,j_=o.lorolist_getCursor,Rn=o.lorolist_getIdAt,$o=o.lorolist_getShallowValue,yn=o.lorolist_id,po=o.lorolist_insert,f_=o.lorolist_insertContainer,en=o.lorolist_isAttached,In=o.lorolist_isDeleted,L_=o.lorolist_kind,Ro=o.lorolist_length,Mn=o.lorolist_new,J_=o.lorolist_parent,Q_=o.lorolist_pop,an=o.lorolist_push,Mo=o.lorolist_pushContainer,io=o.lorolist_subscribe,to=o.lorolist_toArray,c_=o.lorolist_toJSON,qn=o.loromap_clear,gs=o.loromap_delete,C_=o.loromap_entries,os=o.loromap_get,hr=o.loromap_getAttached,Fe=o.loromap_getLastEditor,Yn=o.loromap_getOrCreateContainer,Sr=o.loromap_getShallowValue,Be=o.loromap_id,Te=o.loromap_isAttached,$t=o.loromap_isDeleted,No=o.loromap_keys,he=o.loromap_kind,xo=o.loromap_new,Tt=o.loromap_parent,Bt=o.loromap_set,Zt=o.loromap_setContainer,$e=o.loromap_size,ct=o.loromap_subscribe,Ft=o.loromap_toJSON,cr=o.loromap_values,ps=o.loromovablelist_clear,Se=o.loromovablelist_delete,Tr=o.loromovablelist_get,nt=o.loromovablelist_getAttached,Fr=o.loromovablelist_getCreatorAt,Br=o.loromovablelist_getCursor,Ze=o.loromovablelist_getLastEditorAt,St=o.loromovablelist_getLastMoverAt,bn=o.loromovablelist_getShallowValue,ht=o.loromovablelist_id,Zr=o.loromovablelist_insert,$r=o.loromovablelist_insertContainer,n_=o.loromovablelist_isAttached,nr=o.loromovablelist_isDeleted,ce=o.loromovablelist_kind,M_=o.loromovablelist_length,Ln=o.loromovablelist_move,Wo=o.loromovablelist_new,fn=o.loromovablelist_parent,wo=o.loromovablelist_pop,u_=o.loromovablelist_push,Xo=o.loromovablelist_pushContainer,An=o.loromovablelist_set,N_=o.loromovablelist_setContainer,ko=o.loromovablelist_subscribe,Un=o.loromovablelist_toArray,T_=o.loromovablelist_toJSON,$_=o.lorotext_applyDelta,on=o.lorotext_charAt,Uo=o.lorotext_convertPos,no=o.lorotext_delete,Z_=o.lorotext_deleteUtf8,l_=o.lorotext_getAttached,Wn=o.lorotext_getCursor,is=o.lorotext_getEditorOf,x_=o.lorotext_getShallowValue,rs=o.lorotext_id,ur=o.lorotext_insert,Ie=o.lorotext_insertUtf8,Qn=o.lorotext_isAttached,yr=o.lorotext_isDeleted,Pe=o.lorotext_iter,Ee=o.lorotext_kind,Ht=o.lorotext_length,Oo=o.lorotext_mark,ue=o.lorotext_new,vo=o.lorotext_parent,Et=o.lorotext_push,Pt=o.lorotext_slice,Xt=o.lorotext_sliceDelta,He=o.lorotext_sliceDeltaUtf8,lt=o.lorotext_splice,It=o.lorotext_subscribe,lr=o.lorotext_toDelta,bs=o.lorotext_toJSON,ye=o.lorotext_toString,Er=o.lorotext_unmark,_t=o.lorotext_update,Ir=o.lorotext_updateByLine,Pr=o.lorotree_createNode,Xe=o.lorotree_delete,yt=o.lorotree_disableFractionalIndex,dn=o.lorotree_enableFractionalIndex,ut=o.lorotree_getAttached,Xr=o.lorotree_getNodeByID,Hr=o.lorotree_getNodes,__=o.lorotree_getShallowValue,_r=o.lorotree_has,le=o.lorotree_id,P_=o.lorotree_isAttached,Dn=o.lorotree_isDeleted,jo=o.lorotree_isFractionalIndexEnabled,hn=o.lorotree_isNodeDeleted,co=o.lorotree_kind,b_=o.lorotree_move,Qo=o.lorotree_new,Cn=o.lorotree_nodes,I_=o.lorotree_parent,Lo=o.lorotree_roots,Jn=o.lorotree_subscribe,R_=o.lorotree_toArray,q_=o.lorotree_toJSON,_n=o.lorotreenode___getClassname,Jo=o.lorotreenode_children,oo=o.lorotreenode_createNode,Y_=o.lorotreenode_creationId,i_=o.lorotreenode_creator,jn=o.lorotreenode_data,as=o.lorotreenode_fractionalIndex,y_=o.lorotreenode_getLastMoveId,ts=o.lorotreenode_id,br=o.lorotreenode_index,Oe=o.lorotreenode_isDeleted,Kn=o.lorotreenode_move,vr=o.lorotreenode_moveAfter,Ue=o.lorotreenode_moveBefore,ke=o.lorotreenode_parent,Wt=o.lorotreenode_toJSON,be=o.redactJsonUpdates,mo=o.run,kt=o.setDebug,Ut=o.undomanager_addExcludeOriginPrefix,Qt=o.undomanager_canRedo,We=o.undomanager_canUndo,it=o.undomanager_clear,Ot=o.undomanager_groupEnd,ir=o.undomanager_groupStart,ws=o.undomanager_new,ve=o.undomanager_peer,kr=o.undomanager_redo,rt=o.undomanager_setMaxUndoSteps,Or=o.undomanager_setMergeInterval,Ur=o.undomanager_setOnPop,Qe=o.undomanager_setOnPush,vt=o.undomanager_topRedoValue,cn=o.undomanager_topUndoValue,bt=o.undomanager_undo,Qr=o.versionvector_compare,Wr=o.versionvector_decode,r_=o.versionvector_encode,rr=o.versionvector_get,ie=o.versionvector_length,z_=o.versionvector_new,En=o.versionvector_parseJSON,qo=o.versionvector_remove,vn=o.versionvector_setEnd,uo=o.versionvector_setLast,h_=o.versionvector_toJSON,ls=o.lorodoc_importUpdateBatch,rn=o.__wbg_loromovablelist_free,Zn=o.lorocounter_value,De=o.lorocounter_toJSON,Ae=o.__wbindgen_malloc,Gn=o.__wbindgen_realloc,ss=o.__wbindgen_exn_store,pn=o.__externref_table_alloc,v_=o.__wbindgen_export_4,wr=o.__wbindgen_free,es=o.__wbindgen_export_6,go=o.__externref_table_dealloc,zo=o.__externref_drop_slice,Ar=o.closure9_externref_shim,Je=o._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2222385ed10d04df,mr=o.__wbindgen_start})();export{ae as $,ie as $a,le as $i,ge as $n,ce as $r,de as $t,we as A,be as Aa,ue as Ai,pe as An,he as Ar,fe as At,me as B,ve as Ba,ye as Bi,xe as Bn,Se as Br,Ce as Bt,Ae as C,Oe as Ca,Ie as Ci,Ne as Cn,Fe as Cr,De as Ct,Le as D,ke as Da,Ee as Di,Re as Dn,Te as Dr,Ve as Dt,Je as E,Ue as Ea,Pe as Ei,Me as En,Be as Er,ze as Et,je as F,We as Fa,He as Fi,qe as Fn,$e as Fr,Ge as Ft,Ke as G,Qe as Ga,Xe as Gi,Ye as Gn,Ze as Gr,et as Gt,tt as H,rt as Ha,_t as Hi,ot as Hn,nt as Hr,st as Ht,at as I,it as Ia,lt as Ii,gt as In,ct as Ir,dt as It,wt as J,bt as Ja,ut as Ji,pt as Jn,ht as Jr,ft as Jt,mt as K,vt as Ka,yt as Ki,xt as Kn,St as Kr,Ct as Kt,At as L,Ot as La,It as Li,Nt as Ln,Ft as Lr,Dt as Lt,Lt as M,kt as Ma,Et as Mi,Rt as Mn,Tt as Mr,Vt as Mt,Jt as N,Ut as Na,Pt as Ni,Mt as Nn,Bt as Nr,zt as Nt,jt as O,Wt as Oa,Ht as Oi,qt as On,$t as Or,Gt as Ot,Kt as P,Qt as Pa,Xt as Pi,Yt as Pn,Zt as Pr,er as Pt,tr as Q,rr as Qa,_r as Qi,or as Qn,nr as Qr,sr as Qt,ar as R,ir as Ra,lr as Ri,gr as Rn,cr as Rr,dr as Rt,wr as S,br as Sa,ur as Si,pr as Sn,hr as Sr,fr as St,mr as T,vr as Ta,yr as Ti,xr as Tn,Sr as Tr,Cr as Tt,Ar as U,Or as Ua,Ir as Ui,Nr as Un,Fr as Ur,Dr as Ut,Lr as V,kr as Va,Er as Vi,Rr as Vn,Tr as Vr,Vr as Vt,Jr as W,Ur as Wa,Pr as Wi,Mr as Wn,Br as Wr,zr as Wt,jr as X,Wr as Xa,Hr as Xi,qr as Xn,$r as Xr,Gr as Xt,Kr as Y,Qr as Ya,Xr as Yi,Yr as Yn,Zr as Yr,e_ as Yt,t_ as Z,r_ as Za,__ as Zi,o_ as Zn,n_ as Zr,s_ as Zt,a_ as _,Hi as __tla,i_ as _a,l_ as _i,g_ as _n,c_ as _r,d_ as _t,w_ as a,b_ as aa,u_ as ai,p_ as an,h_ as ao,f_ as ar,m_ as at,v_ as b,y_ as ba,x_ as bi,S_ as bn,C_ as br,A_ as bt,O_ as c,I_ as ca,N_ as ci,F_ as cn,D_ as co,L_ as cr,k_ as ct,E_ as d,R_ as da,T_ as di,V_ as dn,L as do,J_ as dr,U_ as dt,P_ as ea,M_ as ei,B_ as en,z_ as eo,j_ as er,W_ as et,H_ as f,q_ as fa,$_ as fi,G_ as fn,K_ as fo,Q_ as fr,Ii as ft,X_ as g,Y_ as ga,Z_ as gi,eo as gn,Ni as go,to as gr,ro as gt,_o as h,oo as ha,no as hi,so as hn,ao as ho,io as hr,lo as ht,go as i,co as ia,wo as ii,bo as in,uo as io,po as ir,ho as it,fo as j,mo as ja,vo as ji,yo as jn,xo as jr,So as jt,Co as k,Ao as ka,Oo as ki,Io as kn,No as kr,Fo as kt,Do as l,Lo as la,ko as li,Eo as ln,Q as lo,Ro as lr,To as lt,Vo as m,Jo as ma,Uo as mi,Po as mn,X as mo,Mo as mr,Bo as mt,zo as n,jo as na,Wo as ni,Ho as nn,qo as no,$o as nr,Go as nt,Ko as o,Qo as oa,Xo as oi,Yo as on,Zo as oo,en as or,tn as ot,rn as p,_n as pa,on as pi,nn as pn,sn as po,an as pr,ln as pt,gn as q,cn as qa,dn as qi,wn as qn,bn as qr,un as qt,pn as r,hn as ra,fn as ri,mn as rn,vn as ro,yn as rr,xn as rt,Sn as s,Cn as sa,An as si,On as sn,S as so,In as sr,Nn as st,Fn as t,Dn as ta,Ln as ti,kn as tn,En as to,Rn as tr,Tn as tt,Vn as u,Jn as ua,Un as ui,Pn as un,N as uo,Mn as ur,Bn as ut,zn as v,jn as va,Wn as vi,Hn as vn,qn as vr,$n as vt,Gn as w,Kn as wa,Qn as wi,Xn as wn,Yn as wr,Zn as wt,es as x,ts as xa,rs as xi,_s as xn,os as xr,ns as xt,ss as y,as as ya,is as yi,ls as yn,gs as yr,cs as yt,ds as z,ws as za,bs as zi,us as zn,ps as zr,hs as zt}; diff --git a/docs/assets/loro_wasm_bg-BVxoQZ3o.js b/docs/assets/loro_wasm_bg-BVxoQZ3o.js new file mode 100644 index 0000000..a99cacb --- /dev/null +++ b/docs/assets/loro_wasm_bg-BVxoQZ3o.js @@ -0,0 +1 @@ +import{$ as a,$a as s,$i as o,$n as e,$r as r,$t as t,A as l,Aa as _,Ai as n,An as i,Ar as d,At as c,B as m,Ba as g,Bi as p,Bn as u,Br as b,Bt as w,C as h,Ca as v,Ci as x,Cn as f,Cr as C,Ct as S,D as A,Da as O,Di as y,Dn as I,Dr as N,Dt as D,E as J,Ea as k,Ei as V,En as E,Er as L,Et as P,F as T,Fa as F,Fi as U,Fn as M,Fr as B,Ft as R,G as W,Ga as H,Gi as z,Gn as j,Gr as q,Gt as G,H as K,Ha as Q,Hi as X,Hn as Y,Hr as Z,Ht as $,I as aa,Ia as sa,Ii as oa,In as ea,Ir as ra,It as ta,J as la,Ja as _a,Ji as na,Jn as ia,Jr as da,Jt as ca,K as ma,Ka as ga,Ki as pa,Kn as ua,Kr as ba,Kt as wa,L as ha,La as va,Li as xa,Ln as fa,Lr as Ca,Lt as Sa,M as Aa,Ma as Oa,Mi as ya,Mn as Ia,Mr as Na,Mt as Da,N as Ja,Na as ka,Ni as Va,Nn as Ea,Nr as La,Nt as Pa,O as Ta,Oa as Fa,Oi as Ua,On as Ma,Or as Ba,Ot as Ra,P as Wa,Pa as Ha,Pi as za,Pn as ja,Pr as qa,Pt as Ga,Q as Ka,Qa,Qi as Xa,Qn as Ya,Qr as Za,Qt as $a,R as as,Ra as ss,Ri as os,Rn as es,Rr as rs,Rt as ts,S as ls,Sa as _s,Si as ns,Sn as is,Sr as ds,St as cs,T as ms,Ta as gs,Ti as ps,Tn as us,Tr as bs,Tt as ws,U as hs,Ua as vs,Ui as xs,Un as fs,Ur as Cs,Ut as Ss,V as As,Va as Os,Vi as ys,Vn as Is,Vr as Ns,Vt as Ds,W as Js,Wa as ks,Wi as Vs,Wn as Es,Wr as Ls,Wt as Ps,X as Ts,Xa as Fs,Xi as Us,Xn as Ms,Xr as Bs,Xt as Rs,Y as Ws,Ya as Hs,Yi as zs,Yn as js,Yr as qs,Yt as Gs,Z as Ks,Za as Qs,Zi as Xs,Zn as Ys,Zr as Zs,Zt as $s,_ as ao,_a as so,_i as oo,_n as eo,_r as ro,_t as to,a as lo,aa as _o,ai as no,an as io,ao as co,ar as mo,at as go,b as po,ba as uo,bi as bo,bn as wo,br as ho,bt as vo,c as xo,ca as fo,ci as Co,cn as So,cr as Ao,ct as Oo,d as yo,da as Io,di as No,dn as Do,dr as Jo,dt as ko,ea as Vo,ei as Eo,en as Lo,eo as Po,er as To,et as Fo,f as Uo,fa as Mo,fi as Bo,fn as Ro,fr as Wo,g as Ho,ga as zo,gi as jo,gn as qo,gr as Go,gt as Ko,h as Qo,ha as Xo,hi as Yo,hn as Zo,hr as $o,ht as ae,i as se,ia as oe,ii as ee,in as re,io as te,ir as le,it as _e,j as ne,ja as ie,ji as de,jn as ce,jr as me,jt as ge,k as pe,ka as ue,ki as be,kn as we,kr as he,kt as ve,l as xe,la as fe,li as Ce,ln as Se,lr as Ae,lt as Oe,m as ye,ma as Ie,mi as Ne,mn as De,mr as Je,mt as ke,n as Ve,na as Ee,ni as Le,nn as Pe,no as Te,nr as Fe,nt as Ue,o as Me,oa as Be,oi as Re,on as We,or as He,ot as ze,p as je,pa as qe,pi as Ge,pn as Ke,pr as Qe,pt as Xe,q as Ye,qa as Ze,qi as $e,qn as ar,qr as sr,qt as or,r as er,ra as rr,ri as tr,rn as lr,ro as _r,rr as nr,rt as ir,s as dr,sa as cr,si as mr,sn as gr,sr as pr,st as ur,t as br,ta as wr,ti as hr,tn as vr,to as xr,tr as fr,tt as Cr,u as Sr,ua as Ar,ui as Or,un as yr,ur as Ir,ut as Nr,v as Dr,va as Jr,vi as kr,vn as Vr,vr as Er,vt as Lr,w as Pr,wa as Tr,wi as Fr,wn as Ur,wr as Mr,wt as Br,x as Rr,xa as Wr,xi as Hr,xn as zr,xr as jr,xt as qr,y as Gr,ya as Kr,yi as Qr,yn as Xr,yr as Yr,yt as Zr,z as $r,za as at,zi as st,zn as ot,zr as et,zt as rt,__tla as tt}from"./loro_wasm_bg-BCxPjJ2X.js";let lt=Promise.all([(()=>{try{return tt}catch{}})()]).then(async()=>{});export{br as LORO_VERSION,Ve as __externref_drop_slice,er as __externref_table_alloc,se as __externref_table_dealloc,lt as __tla,lo as __wbg_awarenesswasm_free,Me as __wbg_changemodifier_free,dr as __wbg_cursor_free,xo as __wbg_ephemeralstorewasm_free,xe as __wbg_lorocounter_free,Sr as __wbg_lorodoc_free,yo as __wbg_lorolist_free,Uo as __wbg_loromap_free,je as __wbg_loromovablelist_free,ye as __wbg_lorotext_free,Qo as __wbg_lorotree_free,Ho as __wbg_lorotreenode_free,ao as __wbg_undomanager_free,Dr as __wbg_versionvector_free,Gr as __wbindgen_exn_store,po as __wbindgen_export_4,Rr as __wbindgen_export_6,ls as __wbindgen_free,h as __wbindgen_malloc,Pr as __wbindgen_realloc,ms as __wbindgen_start,J as _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2222385ed10d04df,A as awarenesswasm_apply,Ta as awarenesswasm_encode,pe as awarenesswasm_encodeAll,l as awarenesswasm_getAllStates,ne as awarenesswasm_getState,Aa as awarenesswasm_getTimestamp,Ja as awarenesswasm_isEmpty,Wa as awarenesswasm_length,T as awarenesswasm_new,aa as awarenesswasm_peer,ha as awarenesswasm_peers,as as awarenesswasm_removeOutdated,$r as awarenesswasm_setLocalState,m as callPendingEvents,As as changemodifier_setMessage,K as changemodifier_setTimestamp,hs as closure9_externref_shim,Js as cursor_containerId,W as cursor_decode,ma as cursor_encode,Ye as cursor_kind,la as cursor_pos,Ws as cursor_side,Ts as decodeFrontiers,Ks as decodeImportBlobMeta,Ka as encodeFrontiers,a as ephemeralstorewasm_apply,Fo as ephemeralstorewasm_delete,Cr as ephemeralstorewasm_encode,Ue as ephemeralstorewasm_encodeAll,ir as ephemeralstorewasm_get,_e as ephemeralstorewasm_getAllStates,go as ephemeralstorewasm_isEmpty,ze as ephemeralstorewasm_keys,ur as ephemeralstorewasm_new,Oo as ephemeralstorewasm_removeOutdated,Oe as ephemeralstorewasm_set,Nr as ephemeralstorewasm_subscribe,ko as ephemeralstorewasm_subscribeLocalUpdates,Xe as lorocounter_decrement,ke as lorocounter_getAttached,ae as lorocounter_getShallowValue,Ko as lorocounter_id,to as lorocounter_increment,Lr as lorocounter_isAttached,Zr as lorocounter_kind,vo as lorocounter_new,qr as lorocounter_parent,cs as lorocounter_subscribe,S as lorocounter_toJSON,Br as lorocounter_value,ws as lorodoc_JSONPath,P as lorodoc_applyDiff,D as lorodoc_attach,Ra as lorodoc_changeCount,ve as lorodoc_checkout,c as lorodoc_checkoutToLatest,ge as lorodoc_clearNextCommitOptions,Da as lorodoc_cmpFrontiers,Pa as lorodoc_cmpWithFrontiers,Ga as lorodoc_commit,R as lorodoc_configDefaultTextStyle,ta as lorodoc_configTextStyle,Sa as lorodoc_debugHistory,ts as lorodoc_deleteRootContainer,rt as lorodoc_detach,w as lorodoc_diff,Ds as lorodoc_export,$ as lorodoc_exportJsonInIdSpan,Ss as lorodoc_exportJsonUpdates,Ps as lorodoc_findIdSpansBetween,G as lorodoc_fork,wa as lorodoc_forkAt,or as lorodoc_fromSnapshot,ca as lorodoc_frontiers,Gs as lorodoc_frontiersToVV,Rs as lorodoc_getAllChanges,$s as lorodoc_getByPath,$a as lorodoc_getChangeAt,t as lorodoc_getChangeAtLamport,Lo as lorodoc_getChangedContainersIn,vr as lorodoc_getContainerById,Pe as lorodoc_getCounter,lr as lorodoc_getCursorPos,re as lorodoc_getDeepValueWithID,io as lorodoc_getList,We as lorodoc_getMap,gr as lorodoc_getMovableList,So as lorodoc_getOpsInChange,Se as lorodoc_getPathToContainer,yr as lorodoc_getPendingTxnLength,Do as lorodoc_getShallowValue,Ro as lorodoc_getText,Ke as lorodoc_getTree,De as lorodoc_getUncommittedOpsAsJson,Zo as lorodoc_hasContainer,qo as lorodoc_import,eo as lorodoc_importBatch,Vr as lorodoc_importJsonUpdates,Xr as lorodoc_importUpdateBatch,wo as lorodoc_isDetached,zr as lorodoc_isDetachedEditingEnabled,is as lorodoc_isShallow,f as lorodoc_new,Ur as lorodoc_opCount,us as lorodoc_oplogFrontiers,E as lorodoc_oplogVersion,I as lorodoc_peerId,Ma as lorodoc_peerIdStr,we as lorodoc_revertTo,i as lorodoc_setChangeMergeInterval,ce as lorodoc_setDetachedEditing,Ia as lorodoc_setHideEmptyRootContainers,Ea as lorodoc_setNextCommitMessage,ja as lorodoc_setNextCommitOptions,M as lorodoc_setNextCommitOrigin,ea as lorodoc_setNextCommitTimestamp,fa as lorodoc_setPeerId,es as lorodoc_setRecordTimestamp,ot as lorodoc_shallowSinceFrontiers,u as lorodoc_shallowSinceVV,Is as lorodoc_subscribe,Y as lorodoc_subscribeFirstCommitFromPeer,fs as lorodoc_subscribeJsonpath,Es as lorodoc_subscribeLocalUpdates,j as lorodoc_subscribePreCommit,ua as lorodoc_toJSON,ar as lorodoc_travelChangeAncestors,ia as lorodoc_version,js as lorodoc_vvToFrontiers,Ms as lorolist_clear,Ys as lorolist_delete,Ya as lorolist_get,e as lorolist_getAttached,To as lorolist_getCursor,fr as lorolist_getIdAt,Fe as lorolist_getShallowValue,nr as lorolist_id,le as lorolist_insert,mo as lorolist_insertContainer,He as lorolist_isAttached,pr as lorolist_isDeleted,Ao as lorolist_kind,Ae as lorolist_length,Ir as lorolist_new,Jo as lorolist_parent,Wo as lorolist_pop,Qe as lorolist_push,Je as lorolist_pushContainer,$o as lorolist_subscribe,Go as lorolist_toArray,ro as lorolist_toJSON,Er as loromap_clear,Yr as loromap_delete,ho as loromap_entries,jr as loromap_get,ds as loromap_getAttached,C as loromap_getLastEditor,Mr as loromap_getOrCreateContainer,bs as loromap_getShallowValue,L as loromap_id,N as loromap_isAttached,Ba as loromap_isDeleted,he as loromap_keys,d as loromap_kind,me as loromap_new,Na as loromap_parent,La as loromap_set,qa as loromap_setContainer,B as loromap_size,ra as loromap_subscribe,Ca as loromap_toJSON,rs as loromap_values,et as loromovablelist_clear,b as loromovablelist_delete,Ns as loromovablelist_get,Z as loromovablelist_getAttached,Cs as loromovablelist_getCreatorAt,Ls as loromovablelist_getCursor,q as loromovablelist_getLastEditorAt,ba as loromovablelist_getLastMoverAt,sr as loromovablelist_getShallowValue,da as loromovablelist_id,qs as loromovablelist_insert,Bs as loromovablelist_insertContainer,Zs as loromovablelist_isAttached,Za as loromovablelist_isDeleted,r as loromovablelist_kind,Eo as loromovablelist_length,hr as loromovablelist_move,Le as loromovablelist_new,tr as loromovablelist_parent,ee as loromovablelist_pop,no as loromovablelist_push,Re as loromovablelist_pushContainer,mr as loromovablelist_set,Co as loromovablelist_setContainer,Ce as loromovablelist_subscribe,Or as loromovablelist_toArray,No as loromovablelist_toJSON,Bo as lorotext_applyDelta,Ge as lorotext_charAt,Ne as lorotext_convertPos,Yo as lorotext_delete,jo as lorotext_deleteUtf8,oo as lorotext_getAttached,kr as lorotext_getCursor,Qr as lorotext_getEditorOf,bo as lorotext_getShallowValue,Hr as lorotext_id,ns as lorotext_insert,x as lorotext_insertUtf8,Fr as lorotext_isAttached,ps as lorotext_isDeleted,V as lorotext_iter,y as lorotext_kind,Ua as lorotext_length,be as lorotext_mark,n as lorotext_new,de as lorotext_parent,ya as lorotext_push,Va as lorotext_slice,za as lorotext_sliceDelta,U as lorotext_sliceDeltaUtf8,oa as lorotext_splice,xa as lorotext_subscribe,os as lorotext_toDelta,st as lorotext_toJSON,p as lorotext_toString,ys as lorotext_unmark,X as lorotext_update,xs as lorotext_updateByLine,Vs as lorotree_createNode,z as lorotree_delete,pa as lorotree_disableFractionalIndex,$e as lorotree_enableFractionalIndex,na as lorotree_getAttached,zs as lorotree_getNodeByID,Us as lorotree_getNodes,Xs as lorotree_getShallowValue,Xa as lorotree_has,o as lorotree_id,Vo as lorotree_isAttached,wr as lorotree_isDeleted,Ee as lorotree_isFractionalIndexEnabled,rr as lorotree_isNodeDeleted,oe as lorotree_kind,_o as lorotree_move,Be as lorotree_new,cr as lorotree_nodes,fo as lorotree_parent,fe as lorotree_roots,Ar as lorotree_subscribe,Io as lorotree_toArray,Mo as lorotree_toJSON,qe as lorotreenode___getClassname,Ie as lorotreenode_children,Xo as lorotreenode_createNode,zo as lorotreenode_creationId,so as lorotreenode_creator,Jr as lorotreenode_data,Kr as lorotreenode_fractionalIndex,uo as lorotreenode_getLastMoveId,Wr as lorotreenode_id,_s as lorotreenode_index,v as lorotreenode_isDeleted,Tr as lorotreenode_move,gs as lorotreenode_moveAfter,k as lorotreenode_moveBefore,O as lorotreenode_parent,Fa as lorotreenode_toJSON,ue as memory,_ as redactJsonUpdates,ie as run,Oa as setDebug,ka as undomanager_addExcludeOriginPrefix,Ha as undomanager_canRedo,F as undomanager_canUndo,sa as undomanager_clear,va as undomanager_groupEnd,ss as undomanager_groupStart,at as undomanager_new,g as undomanager_peer,Os as undomanager_redo,Q as undomanager_setMaxUndoSteps,vs as undomanager_setMergeInterval,ks as undomanager_setOnPop,H as undomanager_setOnPush,ga as undomanager_topRedoValue,Ze as undomanager_topUndoValue,_a as undomanager_undo,Hs as versionvector_compare,Fs as versionvector_decode,Qs as versionvector_encode,Qa as versionvector_get,s as versionvector_length,Po as versionvector_new,xr as versionvector_parseJSON,Te as versionvector_remove,_r as versionvector_setEnd,te as versionvector_setLast,co as versionvector_toJSON}; diff --git a/docs/assets/loro_wasm_bg-DV7Kb4_M.wasm b/docs/assets/loro_wasm_bg-DV7Kb4_M.wasm new file mode 100644 index 0000000..2e61273 Binary files /dev/null and b/docs/assets/loro_wasm_bg-DV7Kb4_M.wasm differ diff --git a/docs/assets/lua-BM3BXoTQ.js b/docs/assets/lua-BM3BXoTQ.js new file mode 100644 index 0000000..888ee14 --- /dev/null +++ b/docs/assets/lua-BM3BXoTQ.js @@ -0,0 +1 @@ +function c(e){return RegExp("^(?:"+e.join("|")+")","i")}function i(e){return RegExp("^(?:"+e.join("|")+")$","i")}var g=i("_G,_VERSION,assert,collectgarbage,dofile,error,getfenv,getmetatable,ipairs,load,loadfile,loadstring,module,next,pairs,pcall,print,rawequal,rawget,rawset,require,select,setfenv,setmetatable,tonumber,tostring,type,unpack,xpcall,coroutine.create,coroutine.resume,coroutine.running,coroutine.status,coroutine.wrap,coroutine.yield,debug.debug,debug.getfenv,debug.gethook,debug.getinfo,debug.getlocal,debug.getmetatable,debug.getregistry,debug.getupvalue,debug.setfenv,debug.sethook,debug.setlocal,debug.setmetatable,debug.setupvalue,debug.traceback,close,flush,lines,read,seek,setvbuf,write,io.close,io.flush,io.input,io.lines,io.open,io.output,io.popen,io.read,io.stderr,io.stdin,io.stdout,io.tmpfile,io.type,io.write,math.abs,math.acos,math.asin,math.atan,math.atan2,math.ceil,math.cos,math.cosh,math.deg,math.exp,math.floor,math.fmod,math.frexp,math.huge,math.ldexp,math.log,math.log10,math.max,math.min,math.modf,math.pi,math.pow,math.rad,math.random,math.randomseed,math.sin,math.sinh,math.sqrt,math.tan,math.tanh,os.clock,os.date,os.difftime,os.execute,os.exit,os.getenv,os.remove,os.rename,os.setlocale,os.time,os.tmpname,package.cpath,package.loaded,package.loaders,package.loadlib,package.path,package.preload,package.seeall,string.byte,string.char,string.dump,string.find,string.format,string.gmatch,string.gsub,string.len,string.lower,string.match,string.rep,string.reverse,string.sub,string.upper,table.concat,table.insert,table.maxn,table.remove,table.sort".split(",")),m=i(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),d=i(["function","if","repeat","do","\\(","{"]),p=i(["end","until","\\)","}"]),h=c(["end","until","\\)","}","else","elseif"]);function l(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function s(e,t){var n=e.next();return n=="-"&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=u(l(e),"comment"))(e,t):(e.skipToEnd(),"comment"):n=='"'||n=="'"?(t.cur=f(n))(e,t):n=="["&&/[\[=]/.test(e.peek())?(t.cur=u(l(e),"string"))(e,t):/\d/.test(n)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(n)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function u(e,t){return function(n,a){for(var r=null,o;(o=n.next())!=null;)if(r==null)o=="]"&&(r=0);else if(o=="=")++r;else if(o=="]"&&r==e){a.cur=s;break}else r=null;return t}}function f(e){return function(t,n){for(var a=!1,r;(r=t.next())!=null&&!(r==e&&!a);)a=!a&&r=="\\";return a||(n.cur=s),"string"}}const b={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:s}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),a=e.current();return n=="variable"&&(m.test(a)?n="keyword":g.test(a)&&(n="builtin")),n!="comment"&&n!="string"&&(d.test(a)?++t.indentDepth:p.test(a)&&--t.indentDepth),n},indent:function(e,t,n){var a=h.test(t);return e.basecol+n.unit*(e.indentDepth-(a?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}};export{b as t}; diff --git a/docs/assets/lua-BbH09Iv3.js b/docs/assets/lua-BbH09Iv3.js new file mode 100644 index 0000000..f1ee633 --- /dev/null +++ b/docs/assets/lua-BbH09Iv3.js @@ -0,0 +1 @@ +import{t as e}from"./c-B0sc7wbk.js";var a=Object.freeze(JSON.parse(`{"displayName":"Lua","name":"lua","patterns":[{"begin":"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])","beginCaptures":{"1":{"name":"keyword.local.lua"},"2":{"name":"keyword.control.lua"}},"end":"(?<=[-\\\\]\\"')\\\\[{}])","name":"meta.function.lua","patterns":[{"include":"#comment"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.lua"}},"end":"(\\\\))|(?=[-\\\\]\\"'.\\\\[{}])","endCaptures":{"1":{"name":"punctuation.definition.parameters.finish.lua"}},"name":"meta.parameter.lua","patterns":[{"include":"#comment"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.parameter.function.lua"},{"match":",","name":"punctuation.separator.arguments.lua"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.arguments.lua"}},"end":"(?=[),])","patterns":[{"include":"#emmydoc.type"}]}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)","name":"entity.name.class.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.function.lua"}]},{"match":"(?"},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b","name":"keyword.control.lua"},{"match":"\\\\b(local)\\\\b","name":"keyword.local.lua"},{"match":"\\\\b(function)\\\\b(?![,:])","name":"keyword.control.lua"},{"match":"(?=?|(?]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@see","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"#","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@diagnostic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"([-0-9A-Z_a-z]+)[\\\\t ]*(:)?","beginCaptures":{"1":{"name":"keyword.other.unit"},"2":{"name":"keyword.operator.unit"}},"end":"(?=\\\\n)","patterns":[{"match":"\\\\b([*A-Z_a-z][-0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":",","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@module","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]},{"match":"(?<=---)[\\\\t ]*@(async|nodiscard)","name":"storage.type.annotation.lua"},{"begin":"(?<=---)\\\\|\\\\s*[+>]?","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]}]},"emmydoc.type":{"patterns":[{"begin":"\\\\bfun\\\\b","beginCaptures":{"0":{"name":"keyword.control.lua"}},"end":"(?=[#\\\\s])","patterns":[{"match":"[(),:?][\\\\t ]*","name":"keyword.operator.lua"},{"match":"([A-Z_a-z][-\\\\]*,.0-9<>A-\\\\[_a-z]*)(?","name":"storage.type.generic.lua"},{"match":"\\\\basync\\\\b","name":"entity.name.tag.lua"},{"match":"[,:?\`{|}][\\\\t ]*","name":"keyword.operator.lua"},{"begin":"(?=[\\"'*.A-\\\\[_a-z])","end":"(?=[#),:?|}\\\\s])","patterns":[{"match":"([-\\\\]*,.0-9<>A-\\\\[_a-z]+)(?)","patterns":[{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"entity.name.type.luau"},{"match":"=","name":"keyword.operator.assignment.luau"},{"include":"#type_literal"}]},"identifier":{"patterns":[{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*(?:[\\"\'({]|\\\\[\\\\[))","name":"entity.name.function.luau"},{"match":"(?<=[^.]\\\\.|:)\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"variable.other.property.luau"},{"match":"\\\\b([A-Z_][0-9A-Z_]*)\\\\b","name":"variable.other.constant.luau"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"variable.other.readwrite.luau"}]},"interpolated_string_expression":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.interpolated-string-expression.begin.luau"}},"contentName":"meta.embedded.line.luau","end":"}","endCaptures":{"0":{"name":"punctuation.definition.interpolated-string-expression.end.luau"}},"name":"meta.template.expression.luau","patterns":[{"include":"source.luau"}]},"keyword":{"patterns":[{"match":"\\\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\\\b","name":"keyword.control.luau"},{"match":"\\\\b(local)\\\\b","name":"storage.modifier.local.luau"},{"match":"\\\\b(function)\\\\b(?![,:])","name":"keyword.control.luau"},{"match":"(?=?","name":"keyword.operator.comparison.luau"},{"match":"(?:[-+]|//??|[%*^]|\\\\.\\\\.|)=","name":"keyword.operator.assignment.luau"},{"match":"[-%*+]|//|[/^]","name":"keyword.operator.arithmetic.luau"},{"match":"#|(?)|[;=]|$|(?=\\\\breturn\\\\b)|(?=\\\\bend\\\\b)","patterns":[{"include":"#comment"},{"include":"#type_literal"}]},"type_cast":{"begin":"(::)","beginCaptures":{"1":{"name":"keyword.operator.typecast.luau"}},"end":"(?=^|[-\\\\])+,:;>?}](?!\\\\s*[\\\\&|])|$|\\\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\\\b)","patterns":[{"include":"#type_literal"}]},"type_literal":{"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"[\\\\&?|]","name":"keyword.operator.type.luau"},{"match":"->","name":"keyword.operator.type.function.luau"},{"match":"\\\\b(false)\\\\b","name":"constant.language.boolean.false.luau"},{"match":"\\\\b(true)\\\\b","name":"constant.language.boolean.true.luau"},{"match":"\\\\b(nil|string|number|boolean|thread|userdata|symbol|any)\\\\b","name":"support.type.primitive.luau"},{"begin":"\\\\b(typeof)\\\\b(\\\\()","beginCaptures":{"1":{"name":"support.function.luau"},"2":{"name":"punctuation.arguments.begin.typeof.luau"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.arguments.end.typeof.luau"}},"patterns":[{"include":"source.luau"}]},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.luau"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.luau"}},"patterns":[{"match":"=","name":"keyword.operator.assignment.luau"},{"include":"#type_literal"}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.type.luau"},{"begin":"\\\\{","end":"}","patterns":[{"begin":"\\\\[","end":"]","patterns":[{"include":"#type_literal"}]},{"captures":{"1":{"name":"variable.property.luau"},"2":{"name":"keyword.operator.type.luau"}},"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(:)"},{"include":"#type_literal"},{"match":"[,;]","name":"punctuation.separator.fields.type.luau"}]},{"begin":"\\\\(","end":"\\\\)","patterns":[{"captures":{"1":{"name":"variable.parameter.luau"},"2":{"name":"keyword.operator.type.luau"}},"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(:)","name":"variable.parameter.luau"},{"include":"#type_literal"}]}]}},"scopeName":"source.luau"}'))];export{e as default}; diff --git a/docs/assets/main-CwSdzVhm.js b/docs/assets/main-CwSdzVhm.js new file mode 100644 index 0000000..e658470 --- /dev/null +++ b/docs/assets/main-CwSdzVhm.js @@ -0,0 +1,5 @@ +import{n as qt,r as Bt}from"./chunk-LvLJmgfZ.js";var Qt=Bt({AnnotatedTextEdit:()=>x,ChangeAnnotation:()=>E,ChangeAnnotationIdentifier:()=>g,CodeAction:()=>Ct,CodeActionContext:()=>It,CodeActionKind:()=>Et,CodeActionTriggerKind:()=>M,CodeDescription:()=>Y,CodeLens:()=>_t,Color:()=>V,ColorInformation:()=>$,ColorPresentation:()=>q,Command:()=>A,CompletionItem:()=>ut,CompletionItemKind:()=>it,CompletionItemLabelDetails:()=>ct,CompletionItemTag:()=>ot,CompletionList:()=>dt,CreateFile:()=>I,DeleteFile:()=>_,Diagnostic:()=>T,DiagnosticRelatedInformation:()=>N,DiagnosticSeverity:()=>G,DiagnosticTag:()=>J,DocumentHighlight:()=>mt,DocumentHighlightKind:()=>ht,DocumentLink:()=>kt,DocumentSymbol:()=>At,DocumentUri:()=>z,EOL:()=>zt,FoldingRange:()=>Q,FoldingRangeKind:()=>B,FormattingOptions:()=>yt,Hover:()=>lt,InlayHint:()=>Ot,InlayHintKind:()=>K,InlayHintLabelPart:()=>W,InlineCompletionContext:()=>Kt,InlineCompletionItem:()=>Nt,InlineCompletionList:()=>Ut,InlineCompletionTriggerKind:()=>Ft,InlineValueContext:()=>Rt,InlineValueEvaluatableExpression:()=>Mt,InlineValueText:()=>jt,InlineValueVariableLookup:()=>Dt,InsertReplaceEdit:()=>at,InsertTextFormat:()=>rt,InsertTextMode:()=>st,Location:()=>L,LocationLink:()=>H,MarkedString:()=>D,MarkupContent:()=>k,MarkupKind:()=>P,OptionalVersionedTextDocumentIdentifier:()=>j,ParameterInformation:()=>ft,Position:()=>v,Range:()=>f,RenameFile:()=>C,SelectedCompletionInfo:()=>Pt,SelectionRange:()=>wt,SemanticTokenModifiers:()=>Tt,SemanticTokenTypes:()=>Lt,SemanticTokens:()=>St,SignatureInformation:()=>gt,StringValue:()=>Vt,SymbolInformation:()=>bt,SymbolKind:()=>pt,SymbolTag:()=>vt,TextDocument:()=>Xt,TextDocumentEdit:()=>S,TextDocumentIdentifier:()=>tt,TextDocumentItem:()=>et,TextEdit:()=>b,URI:()=>O,VersionedTextDocumentIdentifier:()=>nt,WorkspaceChange:()=>Z,WorkspaceEdit:()=>U,WorkspaceFolder:()=>Wt,WorkspaceSymbol:()=>xt,integer:()=>X,uinteger:()=>w},1),z,O,X,w,v,f,L,H,V,$,q,B,Q,N,G,J,Y,T,A,b,E,g,x,S,I,C,_,U,y,F,Z,tt,nt,j,et,P,k,it,rt,ot,at,st,ct,ut,dt,D,lt,ft,gt,ht,mt,pt,vt,bt,xt,At,Et,M,It,Ct,_t,yt,kt,wt,Lt,Tt,St,jt,Dt,Mt,Rt,K,W,Ot,Vt,Nt,Ut,Ft,Pt,Kt,Wt,zt,Xt,Ht,o,Gt=qt((()=>{(function(t){function i(r){return typeof r=="string"}t.is=i})(z||(z={})),(function(t){function i(r){return typeof r=="string"}t.is=i})(O||(O={})),(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function i(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=i})(X||(X={})),(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function i(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=i})(w||(w={})),(function(t){function i(e,n){return e===Number.MAX_VALUE&&(e=w.MAX_VALUE),n===Number.MAX_VALUE&&(n=w.MAX_VALUE),{line:e,character:n}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&o.uinteger(n.line)&&o.uinteger(n.character)}t.is=r})(v||(v={})),(function(t){function i(e,n,a,s){if(o.uinteger(e)&&o.uinteger(n)&&o.uinteger(a)&&o.uinteger(s))return{start:v.create(e,n),end:v.create(a,s)};if(v.is(e)&&v.is(n))return{start:e,end:n};throw Error(`Range#create called with invalid arguments[${e}, ${n}, ${a}, ${s}]`)}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&v.is(n.start)&&v.is(n.end)}t.is=r})(f||(f={})),(function(t){function i(e,n){return{uri:e,range:n}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&f.is(n.range)&&(o.string(n.uri)||o.undefined(n.uri))}t.is=r})(L||(L={})),(function(t){function i(e,n,a,s){return{targetUri:e,targetRange:n,targetSelectionRange:a,originSelectionRange:s}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&f.is(n.targetRange)&&o.string(n.targetUri)&&f.is(n.targetSelectionRange)&&(f.is(n.originSelectionRange)||o.undefined(n.originSelectionRange))}t.is=r})(H||(H={})),(function(t){function i(e,n,a,s){return{red:e,green:n,blue:a,alpha:s}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&o.numberRange(n.red,0,1)&&o.numberRange(n.green,0,1)&&o.numberRange(n.blue,0,1)&&o.numberRange(n.alpha,0,1)}t.is=r})(V||(V={})),(function(t){function i(e,n){return{range:e,color:n}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&f.is(n.range)&&V.is(n.color)}t.is=r})($||($={})),(function(t){function i(e,n,a){return{label:e,textEdit:n,additionalTextEdits:a}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&o.string(n.label)&&(o.undefined(n.textEdit)||b.is(n))&&(o.undefined(n.additionalTextEdits)||o.typedArray(n.additionalTextEdits,b.is))}t.is=r})(q||(q={})),(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(B||(B={})),(function(t){function i(e,n,a,s,c,l){let d={startLine:e,endLine:n};return o.defined(a)&&(d.startCharacter=a),o.defined(s)&&(d.endCharacter=s),o.defined(c)&&(d.kind=c),o.defined(l)&&(d.collapsedText=l),d}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&o.uinteger(n.startLine)&&o.uinteger(n.startLine)&&(o.undefined(n.startCharacter)||o.uinteger(n.startCharacter))&&(o.undefined(n.endCharacter)||o.uinteger(n.endCharacter))&&(o.undefined(n.kind)||o.string(n.kind))}t.is=r})(Q||(Q={})),(function(t){function i(e,n){return{location:e,message:n}}t.create=i;function r(e){let n=e;return o.defined(n)&&L.is(n.location)&&o.string(n.message)}t.is=r})(N||(N={})),(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(G||(G={})),(function(t){t.Unnecessary=1,t.Deprecated=2})(J||(J={})),(function(t){function i(r){let e=r;return o.objectLiteral(e)&&o.string(e.href)}t.is=i})(Y||(Y={})),(function(t){function i(e,n,a,s,c,l){let d={range:e,message:n};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(c)&&(d.source=c),o.defined(l)&&(d.relatedInformation=l),d}t.create=i;function r(e){var a;let n=e;return o.defined(n)&&f.is(n.range)&&o.string(n.message)&&(o.number(n.severity)||o.undefined(n.severity))&&(o.integer(n.code)||o.string(n.code)||o.undefined(n.code))&&(o.undefined(n.codeDescription)||o.string((a=n.codeDescription)==null?void 0:a.href))&&(o.string(n.source)||o.undefined(n.source))&&(o.undefined(n.relatedInformation)||o.typedArray(n.relatedInformation,N.is))}t.is=r})(T||(T={})),(function(t){function i(e,n,...a){let s={title:e,command:n};return o.defined(a)&&a.length>0&&(s.arguments=a),s}t.create=i;function r(e){let n=e;return o.defined(n)&&o.string(n.title)&&o.string(n.command)}t.is=r})(A||(A={})),(function(t){function i(a,s){return{range:a,newText:s}}t.replace=i;function r(a,s){return{range:{start:a,end:a},newText:s}}t.insert=r;function e(a){return{range:a,newText:""}}t.del=e;function n(a){let s=a;return o.objectLiteral(s)&&o.string(s.newText)&&f.is(s.range)}t.is=n})(b||(b={})),(function(t){function i(e,n,a){let s={label:e};return n!==void 0&&(s.needsConfirmation=n),a!==void 0&&(s.description=a),s}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&o.string(n.label)&&(o.boolean(n.needsConfirmation)||n.needsConfirmation===void 0)&&(o.string(n.description)||n.description===void 0)}t.is=r})(E||(E={})),(function(t){function i(r){let e=r;return o.string(e)}t.is=i})(g||(g={})),(function(t){function i(a,s,c){return{range:a,newText:s,annotationId:c}}t.replace=i;function r(a,s,c){return{range:{start:a,end:a},newText:s,annotationId:c}}t.insert=r;function e(a,s){return{range:a,newText:"",annotationId:s}}t.del=e;function n(a){let s=a;return b.is(s)&&(E.is(s.annotationId)||g.is(s.annotationId))}t.is=n})(x||(x={})),(function(t){function i(e,n){return{textDocument:e,edits:n}}t.create=i;function r(e){let n=e;return o.defined(n)&&j.is(n.textDocument)&&Array.isArray(n.edits)}t.is=r})(S||(S={})),(function(t){function i(e,n,a){let s={kind:"create",uri:e};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(s.options=n),a!==void 0&&(s.annotationId=a),s}t.create=i;function r(e){let n=e;return n&&n.kind==="create"&&o.string(n.uri)&&(n.options===void 0||(n.options.overwrite===void 0||o.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||o.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||g.is(n.annotationId))}t.is=r})(I||(I={})),(function(t){function i(e,n,a,s){let c={kind:"rename",oldUri:e,newUri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(c.options=a),s!==void 0&&(c.annotationId=s),c}t.create=i;function r(e){let n=e;return n&&n.kind==="rename"&&o.string(n.oldUri)&&o.string(n.newUri)&&(n.options===void 0||(n.options.overwrite===void 0||o.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||o.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||g.is(n.annotationId))}t.is=r})(C||(C={})),(function(t){function i(e,n,a){let s={kind:"delete",uri:e};return n!==void 0&&(n.recursive!==void 0||n.ignoreIfNotExists!==void 0)&&(s.options=n),a!==void 0&&(s.annotationId=a),s}t.create=i;function r(e){let n=e;return n&&n.kind==="delete"&&o.string(n.uri)&&(n.options===void 0||(n.options.recursive===void 0||o.boolean(n.options.recursive))&&(n.options.ignoreIfNotExists===void 0||o.boolean(n.options.ignoreIfNotExists)))&&(n.annotationId===void 0||g.is(n.annotationId))}t.is=r})(_||(_={})),(function(t){function i(r){let e=r;return e&&(e.changes!==void 0||e.documentChanges!==void 0)&&(e.documentChanges===void 0||e.documentChanges.every(n=>o.string(n.kind)?I.is(n)||C.is(n)||_.is(n):S.is(n)))}t.is=i})(U||(U={})),y=class{constructor(t,i){this.edits=t,this.changeAnnotations=i}insert(t,i,r){let e,n;if(r===void 0?e=b.insert(t,i):g.is(r)?(n=r,e=x.insert(t,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),e=x.insert(t,i,n)),this.edits.push(e),n!==void 0)return n}replace(t,i,r){let e,n;if(r===void 0?e=b.replace(t,i):g.is(r)?(n=r,e=x.replace(t,i,r)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(r),e=x.replace(t,i,n)),this.edits.push(e),n!==void 0)return n}delete(t,i){let r,e;if(i===void 0?r=b.del(t):g.is(i)?(e=i,r=x.del(t,i)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(i),r=x.del(t,e)),this.edits.push(r),e!==void 0)return e}add(t){this.edits.push(t)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(t){if(t===void 0)throw Error("Text edit change is not configured to manage change annotations.")}},F=class{constructor(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(t,i){let r;if(g.is(t)?r=t:(r=this.nextId(),i=t),this._annotations[r]!==void 0)throw Error(`Id ${r} is already in use.`);if(i===void 0)throw Error(`No annotation provided for id ${r}`);return this._annotations[r]=i,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Z=class{constructor(t){this._textEditChanges=Object.create(null),t===void 0?this._workspaceEdit={}:(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new F(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(i=>{if(S.is(i)){let r=new y(i.edits,this._changeAnnotations);this._textEditChanges[i.textDocument.uri]=r}})):t.changes&&Object.keys(t.changes).forEach(i=>{let r=new y(t.changes[i]);this._textEditChanges[i]=r}))}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(t){if(j.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let i={uri:t.uri,version:t.version},r=this._textEditChanges[i.uri];if(!r){let e=[],n={textDocument:i,edits:e};this._workspaceEdit.documentChanges.push(n),r=new y(e,this._changeAnnotations),this._textEditChanges[i.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error("Workspace edit is not configured for normal text edit changes.");let i=this._textEditChanges[t];if(!i){let r=[];this._workspaceEdit.changes[t]=r,i=new y(r),this._textEditChanges[t]=i}return i}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new F,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(t,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let e;E.is(i)||g.is(i)?e=i:r=i;let n,a;if(e===void 0?n=I.create(t,r):(a=g.is(e)?e:this._changeAnnotations.manage(e),n=I.create(t,r,a)),this._workspaceEdit.documentChanges.push(n),a!==void 0)return a}renameFile(t,i,r,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let n;E.is(r)||g.is(r)?n=r:e=r;let a,s;if(n===void 0?a=C.create(t,i,e):(s=g.is(n)?n:this._changeAnnotations.manage(n),a=C.create(t,i,e,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}deleteFile(t,i,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let e;E.is(i)||g.is(i)?e=i:r=i;let n,a;if(e===void 0?n=_.create(t,r):(a=g.is(e)?e:this._changeAnnotations.manage(e),n=_.create(t,r,a)),this._workspaceEdit.documentChanges.push(n),a!==void 0)return a}},(function(t){function i(e){return{uri:e}}t.create=i;function r(e){let n=e;return o.defined(n)&&o.string(n.uri)}t.is=r})(tt||(tt={})),(function(t){function i(e,n){return{uri:e,version:n}}t.create=i;function r(e){let n=e;return o.defined(n)&&o.string(n.uri)&&o.integer(n.version)}t.is=r})(nt||(nt={})),(function(t){function i(e,n){return{uri:e,version:n}}t.create=i;function r(e){let n=e;return o.defined(n)&&o.string(n.uri)&&(n.version===null||o.integer(n.version))}t.is=r})(j||(j={})),(function(t){function i(e,n,a,s){return{uri:e,languageId:n,version:a,text:s}}t.create=i;function r(e){let n=e;return o.defined(n)&&o.string(n.uri)&&o.string(n.languageId)&&o.integer(n.version)&&o.string(n.text)}t.is=r})(et||(et={})),(function(t){t.PlainText="plaintext",t.Markdown="markdown";function i(r){let e=r;return e===t.PlainText||e===t.Markdown}t.is=i})(P||(P={})),(function(t){function i(r){let e=r;return o.objectLiteral(r)&&P.is(e.kind)&&o.string(e.value)}t.is=i})(k||(k={})),(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(it||(it={})),(function(t){t.PlainText=1,t.Snippet=2})(rt||(rt={})),(function(t){t.Deprecated=1})(ot||(ot={})),(function(t){function i(e,n,a){return{newText:e,insert:n,replace:a}}t.create=i;function r(e){let n=e;return n&&o.string(n.newText)&&f.is(n.insert)&&f.is(n.replace)}t.is=r})(at||(at={})),(function(t){t.asIs=1,t.adjustIndentation=2})(st||(st={})),(function(t){function i(r){let e=r;return e&&(o.string(e.detail)||e.detail===void 0)&&(o.string(e.description)||e.description===void 0)}t.is=i})(ct||(ct={})),(function(t){function i(r){return{label:r}}t.create=i})(ut||(ut={})),(function(t){function i(r,e){return{items:r||[],isIncomplete:!!e}}t.create=i})(dt||(dt={})),(function(t){function i(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=i;function r(e){let n=e;return o.string(n)||o.objectLiteral(n)&&o.string(n.language)&&o.string(n.value)}t.is=r})(D||(D={})),(function(t){function i(r){let e=r;return!!e&&o.objectLiteral(e)&&(k.is(e.contents)||D.is(e.contents)||o.typedArray(e.contents,D.is))&&(r.range===void 0||f.is(r.range))}t.is=i})(lt||(lt={})),(function(t){function i(r,e){return e?{label:r,documentation:e}:{label:r}}t.create=i})(ft||(ft={})),(function(t){function i(r,e,...n){let a={label:r};return o.defined(e)&&(a.documentation=e),o.defined(n)?a.parameters=n:a.parameters=[],a}t.create=i})(gt||(gt={})),(function(t){t.Text=1,t.Read=2,t.Write=3})(ht||(ht={})),(function(t){function i(r,e){let n={range:r};return o.number(e)&&(n.kind=e),n}t.create=i})(mt||(mt={})),(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(pt||(pt={})),(function(t){t.Deprecated=1})(vt||(vt={})),(function(t){function i(r,e,n,a,s){let c={name:r,kind:e,location:{uri:a,range:n}};return s&&(c.containerName=s),c}t.create=i})(bt||(bt={})),(function(t){function i(r,e,n,a){return a===void 0?{name:r,kind:e,location:{uri:n}}:{name:r,kind:e,location:{uri:n,range:a}}}t.create=i})(xt||(xt={})),(function(t){function i(e,n,a,s,c,l){let d={name:e,detail:n,kind:a,range:s,selectionRange:c};return l!==void 0&&(d.children=l),d}t.create=i;function r(e){let n=e;return n&&o.string(n.name)&&o.number(n.kind)&&f.is(n.range)&&f.is(n.selectionRange)&&(n.detail===void 0||o.string(n.detail))&&(n.deprecated===void 0||o.boolean(n.deprecated))&&(n.children===void 0||Array.isArray(n.children))&&(n.tags===void 0||Array.isArray(n.tags))}t.is=r})(At||(At={})),(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Et||(Et={})),(function(t){t.Invoked=1,t.Automatic=2})(M||(M={})),(function(t){function i(e,n,a){let s={diagnostics:e};return n!=null&&(s.only=n),a!=null&&(s.triggerKind=a),s}t.create=i;function r(e){let n=e;return o.defined(n)&&o.typedArray(n.diagnostics,T.is)&&(n.only===void 0||o.typedArray(n.only,o.string))&&(n.triggerKind===void 0||n.triggerKind===M.Invoked||n.triggerKind===M.Automatic)}t.is=r})(It||(It={})),(function(t){function i(e,n,a){let s={title:e},c=!0;return typeof n=="string"?(c=!1,s.kind=n):A.is(n)?s.command=n:s.edit=n,c&&a!==void 0&&(s.kind=a),s}t.create=i;function r(e){let n=e;return n&&o.string(n.title)&&(n.diagnostics===void 0||o.typedArray(n.diagnostics,T.is))&&(n.kind===void 0||o.string(n.kind))&&(n.edit!==void 0||n.command!==void 0)&&(n.command===void 0||A.is(n.command))&&(n.isPreferred===void 0||o.boolean(n.isPreferred))&&(n.edit===void 0||U.is(n.edit))}t.is=r})(Ct||(Ct={})),(function(t){function i(e,n){let a={range:e};return o.defined(n)&&(a.data=n),a}t.create=i;function r(e){let n=e;return o.defined(n)&&f.is(n.range)&&(o.undefined(n.command)||A.is(n.command))}t.is=r})(_t||(_t={})),(function(t){function i(e,n){return{tabSize:e,insertSpaces:n}}t.create=i;function r(e){let n=e;return o.defined(n)&&o.uinteger(n.tabSize)&&o.boolean(n.insertSpaces)}t.is=r})(yt||(yt={})),(function(t){function i(e,n,a){return{range:e,target:n,data:a}}t.create=i;function r(e){let n=e;return o.defined(n)&&f.is(n.range)&&(o.undefined(n.target)||o.string(n.target))}t.is=r})(kt||(kt={})),(function(t){function i(e,n){return{range:e,parent:n}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&f.is(n.range)&&(n.parent===void 0||t.is(n.parent))}t.is=r})(wt||(wt={})),(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Lt||(Lt={})),(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Tt||(Tt={})),(function(t){function i(r){let e=r;return o.objectLiteral(e)&&(e.resultId===void 0||typeof e.resultId=="string")&&Array.isArray(e.data)&&(e.data.length===0||typeof e.data[0]=="number")}t.is=i})(St||(St={})),(function(t){function i(e,n){return{range:e,text:n}}t.create=i;function r(e){let n=e;return n!=null&&f.is(n.range)&&o.string(n.text)}t.is=r})(jt||(jt={})),(function(t){function i(e,n,a){return{range:e,variableName:n,caseSensitiveLookup:a}}t.create=i;function r(e){let n=e;return n!=null&&f.is(n.range)&&o.boolean(n.caseSensitiveLookup)&&(o.string(n.variableName)||n.variableName===void 0)}t.is=r})(Dt||(Dt={})),(function(t){function i(e,n){return{range:e,expression:n}}t.create=i;function r(e){let n=e;return n!=null&&f.is(n.range)&&(o.string(n.expression)||n.expression===void 0)}t.is=r})(Mt||(Mt={})),(function(t){function i(e,n){return{frameId:e,stoppedLocation:n}}t.create=i;function r(e){let n=e;return o.defined(n)&&f.is(e.stoppedLocation)}t.is=r})(Rt||(Rt={})),(function(t){t.Type=1,t.Parameter=2;function i(r){return r===1||r===2}t.is=i})(K||(K={})),(function(t){function i(e){return{value:e}}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&(n.tooltip===void 0||o.string(n.tooltip)||k.is(n.tooltip))&&(n.location===void 0||L.is(n.location))&&(n.command===void 0||A.is(n.command))}t.is=r})(W||(W={})),(function(t){function i(e,n,a){let s={position:e,label:n};return a!==void 0&&(s.kind=a),s}t.create=i;function r(e){let n=e;return o.objectLiteral(n)&&v.is(n.position)&&(o.string(n.label)||o.typedArray(n.label,W.is))&&(n.kind===void 0||K.is(n.kind))&&n.textEdits===void 0||o.typedArray(n.textEdits,b.is)&&(n.tooltip===void 0||o.string(n.tooltip)||k.is(n.tooltip))&&(n.paddingLeft===void 0||o.boolean(n.paddingLeft))&&(n.paddingRight===void 0||o.boolean(n.paddingRight))}t.is=r})(Ot||(Ot={})),(function(t){function i(r){return{kind:"snippet",value:r}}t.createSnippet=i})(Vt||(Vt={})),(function(t){function i(r,e,n,a){return{insertText:r,filterText:e,range:n,command:a}}t.create=i})(Nt||(Nt={})),(function(t){function i(r){return{items:r}}t.create=i})(Ut||(Ut={})),(function(t){t.Invoked=0,t.Automatic=1})(Ft||(Ft={})),(function(t){function i(r,e){return{range:r,text:e}}t.create=i})(Pt||(Pt={})),(function(t){function i(r,e){return{triggerKind:r,selectedCompletionInfo:e}}t.create=i})(Kt||(Kt={})),(function(t){function i(r){let e=r;return o.objectLiteral(e)&&O.is(e.uri)&&o.string(e.name)}t.is=i})(Wt||(Wt={})),zt=[` +`,`\r +`,"\r"],(function(t){function i(a,s,c,l){return new Ht(a,s,c,l)}t.create=i;function r(a){let s=a;return!!(o.defined(s)&&o.string(s.uri)&&(o.undefined(s.languageId)||o.string(s.languageId))&&o.uinteger(s.lineCount)&&o.func(s.getText)&&o.func(s.positionAt)&&o.func(s.offsetAt))}t.is=r;function e(a,s){let c=a.getText(),l=n(s,(h,m)=>{let p=h.range.start.line-m.range.start.line;return p===0?h.range.start.character-m.range.start.character:p}),d=c.length;for(let h=l.length-1;h>=0;h--){let m=l[h],p=a.offsetAt(m.range.start),u=a.offsetAt(m.range.end);if(u<=d)c=c.substring(0,p)+m.newText+c.substring(u,c.length);else throw Error("Overlapping edit");d=p}return c}t.applyEdits=e;function n(a,s){if(a.length<=1)return a;let c=a.length/2|0,l=a.slice(0,c),d=a.slice(c);n(l,s),n(d,s);let h=0,m=0,p=0;for(;h0&&t.push(i.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let i=this.getLineOffsets(),r=0,e=i.length;if(e===0)return v.create(0,t);for(;rt?e=a:r=a+1}let n=r-1;return v.create(n,t-i[n])}offsetAt(t){let i=this.getLineOffsets();if(t.line>=i.length)return this._content.length;if(t.line<0)return 0;let r=i[t.line],e=t.line+1=0)&&(e[n]=r[n]);return e}var v=["color"],g=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,v);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H14C14.4142 0.25 14.75 0.585786 14.75 1V14C14.75 14.4142 14.4142 14.75 14 14.75H1C0.585786 14.75 0.25 14.4142 0.25 14V1ZM1.75 1.75V13.25H13.25V1.75H1.75Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}),(0,l.createElement)("rect",{x:"7",y:"5",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"7",y:"3",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"7",y:"7",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"5",y:"7",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"3",y:"7",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"9",y:"7",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"11",y:"7",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"7",y:"9",width:"1",height:"1",rx:".5",fill:t}),(0,l.createElement)("rect",{x:"7",y:"11",width:"1",height:"1",rx:".5",fill:t}))}),u=["color"],m=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,u);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M4.18179 6.18181C4.35753 6.00608 4.64245 6.00608 4.81819 6.18181L7.49999 8.86362L10.1818 6.18181C10.3575 6.00608 10.6424 6.00608 10.8182 6.18181C10.9939 6.35755 10.9939 6.64247 10.8182 6.81821L7.81819 9.81821C7.73379 9.9026 7.61934 9.95001 7.49999 9.95001C7.38064 9.95001 7.26618 9.9026 7.18179 9.81821L4.18179 6.81821C4.00605 6.64247 4.00605 6.35755 4.18179 6.18181Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))}),p=["color"],L=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,p);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))}),x=["color"],E=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,x);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))}),R=["color"],y=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,R);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))}),M=["color"],Z=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,M);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))}),O=["color"],V=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,O);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))}),b=["color"],j=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,b);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:t}))}),B=["color"],k=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,B);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M2.05005 13.5C2.05005 13.7485 2.25152 13.95 2.50005 13.95C2.74858 13.95 2.95005 13.7485 2.95005 13.5L2.95005 1.49995C2.95005 1.25142 2.74858 1.04995 2.50005 1.04995C2.25152 1.04995 2.05005 1.25142 2.05005 1.49995L2.05005 13.5ZM8.4317 11.0681C8.60743 11.2439 8.89236 11.2439 9.06809 11.0681C9.24383 10.8924 9.24383 10.6075 9.06809 10.4317L6.58629 7.94993L14.5 7.94993C14.7485 7.94993 14.95 7.74846 14.95 7.49993C14.95 7.2514 14.7485 7.04993 14.5 7.04993L6.58629 7.04993L9.06809 4.56813C9.24383 4.39239 9.24383 4.10746 9.06809 3.93173C8.89236 3.75599 8.60743 3.75599 8.4317 3.93173L5.1817 7.18173C5.00596 7.35746 5.00596 7.64239 5.1817 7.81812L8.4317 11.0681Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))}),H=["color"],q=(0,l.forwardRef)(function(r,o){var e=r.color,t=e===void 0?"currentColor":e,n=i(r,H);return(0,l.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:o}),(0,l.createElement)("path",{d:"M12.95 1.50005C12.95 1.25152 12.7485 1.05005 12.5 1.05005C12.2514 1.05005 12.05 1.25152 12.05 1.50005L12.05 13.5C12.05 13.7486 12.2514 13.95 12.5 13.95C12.7485 13.95 12.95 13.7486 12.95 13.5L12.95 1.50005ZM6.5683 3.93188C6.39257 3.75614 6.10764 3.75614 5.93191 3.93188C5.75617 4.10761 5.75617 4.39254 5.93191 4.56827L8.41371 7.05007L0.499984 7.05007C0.251456 7.05007 0.0499847 7.25155 0.0499847 7.50007C0.0499846 7.7486 0.251457 7.95007 0.499984 7.95007L8.41371 7.95007L5.93191 10.4319C5.75617 10.6076 5.75617 10.8925 5.93191 11.0683C6.10764 11.244 6.39257 11.244 6.56831 11.0683L9.8183 7.81827C9.99404 7.64254 9.99404 7.35761 9.8183 7.18188L6.5683 3.93188Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"}))});const c={keyBy(r,o){let e=new Map,t=new Set;for(let n of r){let a=o(n);e.has(a)&&t.add(a),e.set(a,n)}return t.size>0&&w.trace(`Duplicate keys: ${[...t].join(", ")}`),e},collect(r,o,e){return c.mapValues(c.keyBy(r,o),e)},filterMap(r,o){let e=new Map;for(let[t,n]of r)o(n,t)&&e.set(t,n);return e},mapValues(r,o){let e=new Map;for(let[t,n]of r)e.set(t,o(n,t));return e}};export{E as a,V as c,q as d,s as f,L as i,j as l,g as n,y as o,C as p,m as r,Z as s,c as t,k as u}; diff --git a/docs/assets/markdown-B5dUEZKJ.js b/docs/assets/markdown-B5dUEZKJ.js new file mode 100644 index 0000000..aa18b98 --- /dev/null +++ b/docs/assets/markdown-B5dUEZKJ.js @@ -0,0 +1 @@ +import{t}from"./markdown-DroiuUZL.js";export{t as default}; diff --git a/docs/assets/markdown-DroiuUZL.js b/docs/assets/markdown-DroiuUZL.js new file mode 100644 index 0000000..c7f25d4 --- /dev/null +++ b/docs/assets/markdown-DroiuUZL.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Markdown","name":"markdown","patterns":[{"include":"#frontMatter"},{"include":"#block"}],"repository":{"ampersand":{"match":"&(?!([0-9A-Za-z]+|#[0-9]+|#x\\\\h+);)","name":"meta.other.valid-ampersand.markdown"},"block":{"patterns":[{"include":"#separator"},{"include":"#heading"},{"include":"#blockquote"},{"include":"#lists"},{"include":"#fenced_code_block"},{"include":"#raw_block"},{"include":"#link-def"},{"include":"#html"},{"include":"#table"},{"include":"#paragraph"}]},"blockquote":{"begin":"(^|\\\\G) {0,3}(>) ?","captures":{"2":{"name":"punctuation.definition.quote.begin.markdown"}},"name":"markup.quote.markdown","patterns":[{"include":"#block"}],"while":"(^|\\\\G)\\\\s*(>) ?"},"bold":{"begin":"(?(\\\\*\\\\*(?=\\\\w)|(?]*+>|(?`+)([^`]|(?!(?(?!`))`)*+\\\\k|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+?[\\\\t ]*+((?[\\"\'])(.*?)\\\\k<title>)?\\\\))))|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=__\\\\b|\\\\*\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.bold.markdown"}},"end":"(?<=\\\\S)(\\\\1)","name":"markup.bold.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"bracket":{"match":"<(?![!$/?A-Za-z])","name":"meta.other.valid-bracket.markdown"},"escape":{"match":"\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]","name":"constant.character.escape.markdown"},"fenced_code_block":{"patterns":[{"include":"#fenced_code_block_css"},{"include":"#fenced_code_block_basic"},{"include":"#fenced_code_block_ini"},{"include":"#fenced_code_block_java"},{"include":"#fenced_code_block_lua"},{"include":"#fenced_code_block_makefile"},{"include":"#fenced_code_block_perl"},{"include":"#fenced_code_block_r"},{"include":"#fenced_code_block_ruby"},{"include":"#fenced_code_block_php"},{"include":"#fenced_code_block_sql"},{"include":"#fenced_code_block_vs_net"},{"include":"#fenced_code_block_xml"},{"include":"#fenced_code_block_xsl"},{"include":"#fenced_code_block_yaml"},{"include":"#fenced_code_block_dosbatch"},{"include":"#fenced_code_block_clojure"},{"include":"#fenced_code_block_coffee"},{"include":"#fenced_code_block_c"},{"include":"#fenced_code_block_cpp"},{"include":"#fenced_code_block_diff"},{"include":"#fenced_code_block_dockerfile"},{"include":"#fenced_code_block_git_commit"},{"include":"#fenced_code_block_git_rebase"},{"include":"#fenced_code_block_go"},{"include":"#fenced_code_block_groovy"},{"include":"#fenced_code_block_pug"},{"include":"#fenced_code_block_ignore"},{"include":"#fenced_code_block_js"},{"include":"#fenced_code_block_js_regexp"},{"include":"#fenced_code_block_json"},{"include":"#fenced_code_block_jsonc"},{"include":"#fenced_code_block_jsonl"},{"include":"#fenced_code_block_less"},{"include":"#fenced_code_block_objc"},{"include":"#fenced_code_block_swift"},{"include":"#fenced_code_block_scss"},{"include":"#fenced_code_block_perl6"},{"include":"#fenced_code_block_powershell"},{"include":"#fenced_code_block_python"},{"include":"#fenced_code_block_julia"},{"include":"#fenced_code_block_regexp_python"},{"include":"#fenced_code_block_rust"},{"include":"#fenced_code_block_scala"},{"include":"#fenced_code_block_shell"},{"include":"#fenced_code_block_ts"},{"include":"#fenced_code_block_tsx"},{"include":"#fenced_code_block_csharp"},{"include":"#fenced_code_block_fsharp"},{"include":"#fenced_code_block_dart"},{"include":"#fenced_code_block_handlebars"},{"include":"#fenced_code_block_markdown"},{"include":"#fenced_code_block_log"},{"include":"#fenced_code_block_erlang"},{"include":"#fenced_code_block_elixir"},{"include":"#fenced_code_block_latex"},{"include":"#fenced_code_block_bibtex"},{"include":"#fenced_code_block_twig"},{"include":"#fenced_code_block_yang"},{"include":"#fenced_code_block_abap"},{"include":"#fenced_code_block_restructuredtext"},{"include":"#fenced_code_block_unknown"}]},"fenced_code_block_abap":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(abap)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_basic":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(html?|shtml|xhtml|inc|tmpl|tpl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_bibtex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bibtex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_c":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([ch])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_clojure":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(cl(?:js??|ojure))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_coffee":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(coffee|Cakefile|coffee.erb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_cpp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:pp|\\\\+\\\\+|xx))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_csharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_css":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(css(?:|.erb))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dart":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(dart)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_diff":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(patch|diff|rej)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dockerfile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([Dd]ockerfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dosbatch":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bat(?:|ch))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_elixir":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(elixir)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_erlang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(erlang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_fsharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(f(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_commit":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:COMMIT_EDIT|MERGE_)MSG)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_rebase":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(git-rebase-todo)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_go":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(go(?:|lang))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_groovy":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(g(?:roovy|vy))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_handlebars":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(h(?:andlebars|bs))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ignore":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:git|)ignore)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ignore","patterns":[{"include":"source.ignore"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ini":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ini|conf)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_java":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(java|bsh)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js_regexp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(regexp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_json":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonc)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonl(?:|ines))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonl","patterns":[{"include":"source.json.lines"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_julia":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(julia|\\\\{\\\\.julia.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_latex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:la|)tex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_less":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(less)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_log":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(log)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_lua":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(lua)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_makefile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:[Mm]|GNUm|OCamlM)akefile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_markdown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(m(?:arkdown|d))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_objc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl6":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl6|p6|pl6|pm6|nqp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_php":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_powershell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(p(?:owershell|s1|sm1|sd1|wsh))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_pug":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jade|pug)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_r":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_regexp_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(re)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_restructuredtext":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(r(?:estructuredtext|st))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ruby":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_rust":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(rust|rs|\\\\{\\\\.rust.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scala":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(s(?:cala|bt))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scss":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(scss)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_shell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_sql":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(sql|ddl|dml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_swift":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(swift)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ts":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(t(?:ypescript|s))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_tsx":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(tsx)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_twig":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(twig)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_unknown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?=([^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown"},"fenced_code_block_vs_net":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xsl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xslt??)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yaml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ya?ml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(yang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"frontMatter":{"applyEndPatternLast":1,"begin":"\\\\A(?=(-{3,}))","end":"^(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$","endCaptures":{"0":{"name":"punctuation.definition.end.frontmatter"}},"patterns":[{"begin":"\\\\A(-{3,})(.*)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.frontmatter"},"2":{"name":"comment.frontmatter"}},"contentName":"meta.embedded.block.frontmatter","patterns":[{"include":"source.yaml"}],"while":"^(?!(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$)"}]},"heading":{"captures":{"1":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{6})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.6.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{5})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.5.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{4})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.4.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{3})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.3.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{2})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.2.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{1})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.1.markdown"}]}},"match":"(?:^|\\\\G) {0,3}(#{1,6}\\\\s+(.*?)(\\\\s+#{1,6})?\\\\s*)$","name":"markup.heading.markdown"},"heading-setext":{"patterns":[{"match":"^(={3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.1.markdown"},{"match":"^(-{3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.2.markdown"}]},"html":{"patterns":[{"begin":"(^|\\\\G)\\\\s*(<!--)","captures":{"1":{"name":"punctuation.definition.comment.html"},"2":{"name":"punctuation.definition.comment.html"}},"end":"(-->)","name":"comment.block.html"},{"begin":"(?i)(^|\\\\G)\\\\s*(?=<(script|style|pre)(\\\\s|$|>)(?!.*?</(script|style|pre)>))","end":"(?i)(.*)((</)(script|style|pre)(>))","endCaptures":{"1":{"patterns":[{"include":"text.html.derivative"}]},"2":{"name":"meta.tag.structure.$4.end.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"entity.name.tag.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"patterns":[{"begin":"(\\\\s*|$)","patterns":[{"include":"text.html.derivative"}],"while":"(?i)^(?!.*</(script|style|pre)>)"}]},{"begin":"(?i)(^|\\\\G)\\\\s*(?=</?[A-Za-z]+[^\\\\&/;gt\\\\s]*(\\\\s|$|/?>))","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"},{"begin":"(^|\\\\G)\\\\s*(?=(<(?:[-0-9A-Za-z](/?>|\\\\s.*?>)|/[-0-9A-Za-z]>))\\\\s*$)","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"}]},"image-inline":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.image.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.image.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*(\\\\))","name":"meta.image.inline.markdown"},"image-ref":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.constant.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(.*?)(])","name":"meta.image.reference.markdown"},"inline":{"patterns":[{"include":"#ampersand"},{"include":"#bracket"},{"include":"#bold"},{"include":"#italic"},{"include":"#raw"},{"include":"#strikethrough"},{"include":"#escape"},{"include":"#image-inline"},{"include":"#image-ref"},{"include":"#link-email"},{"include":"#link-inet"},{"include":"#link-inline"},{"include":"#link-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref-shortcut"}]},"italic":{"begin":"(?<open>(\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*|(?<!\\\\w)\\\\b_))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|\\\\k<open>\\\\k<open>|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=_\\\\b|\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.italic.markdown"}},"end":"(?<=\\\\S)(\\\\1)((?!\\\\1)|(?=\\\\1\\\\1))","name":"markup.italic.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"link-def":{"captures":{"1":{"name":"punctuation.definition.constant.markdown"},"2":{"name":"constant.other.reference.link.markdown"},"3":{"name":"punctuation.definition.constant.markdown"},"4":{"name":"punctuation.separator.key-value.markdown"},"5":{"name":"punctuation.definition.link.markdown"},"6":{"name":"markup.underline.link.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"string.other.link.description.title.markdown"},"10":{"name":"punctuation.definition.string.begin.markdown"},"11":{"name":"punctuation.definition.string.end.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"}},"match":"\\\\s*(\\\\[)([^]]+?)(])(:)[\\\\t ]*(?:(<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|(\\\\S+?))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*$","name":"meta.link.reference.def.markdown"},"link-email":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"4":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:mailto:)?[!#-\'*+\\\\--9=?A-Z^-~]+@[-0-9A-Za-z]+(?:\\\\.[-0-9A-Za-z]+)*)(>)","name":"meta.link.email.lt-gt.markdown"},"link-inet":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"3":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:https?|ftp)://.*?)(>)","name":"meta.link.inet.markdown"},"link-inline":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\()[^()]*(\\\\)))|((\\")[^\\"]*(\\"))|((\')[^\']*(\')))?\\\\s*(\\\\))","name":"meta.link.inline.markdown"},"link-ref":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\[)([^]]*+)(])","name":"meta.link.reference.markdown"},"link-ref-literal":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(])","name":"meta.link.reference.literal.markdown"},"link-ref-shortcut":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"3":{"name":"punctuation.definition.link.title.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?:[^]\\\\[\\\\\\\\\\\\s]|\\\\\\\\[]\\\\[])+?)((?<!\\\\\\\\)])","name":"meta.link.reference.markdown"},"list_paragraph":{"begin":"(^|\\\\G)(?=\\\\S)(?![*->]\\\\s|[0-9]+\\\\.\\\\s)","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)(?!\\\\s*$|#| {0,3}([-*>_] {2,}){3,}[\\\\t ]*$\\\\n?| {0,3}[*->]| {0,3}[0-9]+\\\\.)"},"lists":{"patterns":[{"begin":"(^|\\\\G)( {0,3})([-*+])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.unnumbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"},{"begin":"(^|\\\\G)( {0,3})([0-9]+[).])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.numbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"}]},"paragraph":{"begin":"(^|\\\\G) {0,3}(?=[^\\\\t\\\\n ])","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)((?=\\\\s*[-=]{3,}\\\\s*$)| {4,}(?=[^\\\\t\\\\n ]))"},"raw":{"captures":{"1":{"name":"punctuation.definition.raw.markdown"},"3":{"name":"punctuation.definition.raw.markdown"}},"match":"(`+)((?:[^`]|(?!(?<!`)\\\\1(?!`))`)*+)(\\\\1)","name":"markup.inline.raw.string.markdown"},"raw_block":{"begin":"(^|\\\\G)( {4}|\\\\t)","name":"markup.raw.block.markdown","while":"(^|\\\\G)( {4}|\\\\t)"},"separator":{"match":"(^|\\\\G) {0,3}([-*_])( {0,2}\\\\2){2,}[\\\\t ]*$\\\\n?","name":"meta.separator.markdown"},"strikethrough":{"captures":{"1":{"name":"punctuation.definition.strikethrough.markdown"},"2":{"patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"}]},"3":{"name":"punctuation.definition.strikethrough.markdown"}},"match":"(?<!\\\\\\\\)(~{2,})(?!(?<=\\\\w~~)_)((?:[^~]|(?!(?<![\\\\\\\\~])\\\\1(?!~))~)*+)(\\\\1)(?!(?<=_\\\\1)\\\\w)","name":"markup.strikethrough.markdown"},"table":{"begin":"(^|\\\\G)(\\\\|)(?=[^|].+\\\\|\\\\s*$)","beginCaptures":{"2":{"name":"punctuation.definition.table.markdown"}},"name":"markup.table.markdown","patterns":[{"match":"\\\\|","name":"punctuation.definition.table.markdown"},{"captures":{"1":{"name":"punctuation.separator.table.markdown"}},"match":"(?<=\\\\|)\\\\s*(:?-+:?)\\\\s*(?=\\\\|)"},{"captures":{"1":{"patterns":[{"include":"#inline"}]}},"match":"(?<=\\\\|)\\\\s*(?=\\\\S)((\\\\\\\\\\\\||[^|])+)(?<=\\\\S)\\\\s*(?=\\\\|)"}],"while":"(^|\\\\G)(?=\\\\|)"}},"scopeName":"text.html.markdown","embeddedLangs":[],"aliases":["md"],"embeddedLangsLazy":["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","jsonl","less","objective-c","swift","scss","raku","powershell","python","julia","regexp","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","log","erlang","elixir","latex","bibtex","abap","rst","html-derivative"]}'))];export{e as t}; diff --git a/docs/assets/markdown-renderer-DdDKmWlR.css b/docs/assets/markdown-renderer-DdDKmWlR.css new file mode 100644 index 0000000..c7d4cfd --- /dev/null +++ b/docs/assets/markdown-renderer-DdDKmWlR.css @@ -0,0 +1 @@ +@source "../../../node_modules/streamdown/dist/index.js";.mo-markdown-renderer{--text-2xl:1rem;--text-3xl:1.2rem;& h1,& h2,& h3,& h4,& h5,& h6{margin-top:10px}& hr{margin-top:8px;margin-bottom:12px}& pre{width:100%}& [data-code-block-container=true]{margin-top:0!important}& [data-code-block-header=true]{padding:4px!important}& code{white-space:pre-wrap;font-size:inherit!important}& li.task-list-item{list-style-type:none}& li{padding-left:6px;&>input{margin-right:6px}}& ol,& ul{padding-left:10px}} diff --git a/docs/assets/markdown-renderer-DjqhqmES.js b/docs/assets/markdown-renderer-DjqhqmES.js new file mode 100644 index 0000000..00e5516 --- /dev/null +++ b/docs/assets/markdown-renderer-DjqhqmES.js @@ -0,0 +1,4 @@ +import{s as w}from"./chunk-LvLJmgfZ.js";import{u as _}from"./useEvent-DlWF5OMa.js";import{t as S}from"./react-BGmjiNul.js";import{jt as A,w as $,wt as I}from"./cells-CmJW_FeD.js";import{t as j}from"./compiler-runtime-DeeZ7FnK.js";import{o as q}from"./utils-Czt8B2GX.js";import{t as z}from"./jsx-runtime-DN_bIXfG.js";import{t as b}from"./button-B8cGZzP5.js";import{at as M}from"./dist-CAcX026F.js";import{t as D}from"./createLucideIcon-CW2xpJ57.js";import{n as L,t as O}from"./LazyAnyLanguageCodeMirror-Dr2G5gxJ.js";import{r as R}from"./useTheme-BSVRc0kJ.js";import{t as T}from"./copy-DRhpWiOq.js";import{i as U}from"./chunk-OGVTOU66-DQphfHw1.js";import{r as V}from"./es-BJsT6vfZ.js";import{o as W}from"./focus-KGgBDCvb.js";var B=D("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),E=j(),g=w(S(),1),v={};function F(t){let e=(0,E.c)(5),[r,a]=(0,g.useState)(v[t]??!1),s;e[0]===t?s=e[1]:(s=o=>{a(o),v[t]=o},e[0]=t,e[1]=s);let n;return e[2]!==r||e[3]!==s?(n=[r,s],e[2]=r,e[3]=s,e[4]=n):n=e[4],n}function H(t){return t==null||t.data==null||t.data===""}function P(t,e){return`data:${e};base64,${t}`}function Q(t){return t.startsWith("data:")&&t.includes(";base64,")}function G(t){return t.split(",")[1]}function k(t){let e=window.atob(t);return Uint8Array.from(e,r=>r.charCodeAt(0))}function C(t){let e=k(t);return new DataView(e.buffer)}function J(t){let e=Array.from(t,r=>String.fromCharCode(r));return window.btoa(e.join(""))}function K(t){return J(new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function X(t){return(t.buffers??[]).map(C)}var y=j(),l=w(z(),1),Y=[M.lineWrapping],Z=new Set(["python","markdown","sql","json","yaml","toml","shell","javascript","typescript","jsx","tsx","css","html"]);function ee(t,e){return t?t==="python"?{language:t,code:e}:t==="sql"?{language:"python",code:I.fromQuery(e)}:t==="markdown"?{language:"python",code:A.fromMarkdown(e)}:t==="shell"||t==="bash"?{language:"python",code:`import subprocess +subprocess.run("${e}")`}:{language:"python",code:`_${t} = """ +${e} +"""`}:{language:"python",code:e}}var te=t=>{let e=(0,y.c)(9),{code:r,language:a}=t,{createNewCell:s}=$(),n=W(),o=_(q),i;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==a||e[4]!==n?(i=()=>{let u=ee(a,r);a==="sql"&&V({autoInstantiate:o,createNewCell:s,fromCellId:n}),s({code:u.code,before:!1,cellId:n??"__end__"})},e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=n,e[5]=i):i=e[5];let c=i,m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(L,{className:"ml-2 h-4 w-4"}),e[6]=m):m=e[6];let d;return e[7]===c?d=e[8]:(d=(0,l.jsxs)(b,{size:"xs",variant:"outline",onClick:c,children:["Add to Notebook",m]}),e[7]=c,e[8]=d),d},re=t=>{let e=(0,y.c)(17),{code:r,language:a}=t,{theme:s}=R(),[n,o]=(0,g.useState)(r);n!==r&&o(r);let i;e[0]===n?i=e[1]:(i=async()=>{await T(n)},e[0]=n,e[1]=i);let c=i,m=s==="dark"?"dark":"light",d=a&&Z.has(a)?a:void 0,u;e[2]!==m||e[3]!==d||e[4]!==n?(u=(0,l.jsx)(g.Suspense,{children:(0,l.jsx)(O,{theme:m,language:d,className:"cm border rounded overflow-hidden",extensions:Y,value:n,onChange:o})}),e[2]=m,e[3]=d,e[4]=n,e[5]=u):u=e[5];let f;e[6]===c?f=e[7]:(f=(0,l.jsx)(ae,{size:"xs",variant:"outline",onClick:c,children:"Copy"}),e[6]=c,e[7]=f);let p;e[8]!==a||e[9]!==n?(p=(0,l.jsx)(te,{code:n,language:a}),e[8]=a,e[9]=n,e[10]=p):p=e[10];let h;e[11]!==f||e[12]!==p?(h=(0,l.jsxs)("div",{className:"flex justify-end mt-2 space-x-2",children:[f,p]}),e[11]=f,e[12]=p,e[13]=h):h=e[13];let x;return e[14]!==u||e[15]!==h?(x=(0,l.jsxs)("div",{className:"relative",children:[u,h]}),e[14]=u,e[15]=h,e[16]=x):x=e[16],x},ae=t=>{let e=(0,y.c)(9),r,a;e[0]===t?(r=e[1],a=e[2]):({onClick:r,...a}=t,e[0]=t,e[1]=r,e[2]=a);let[s,n]=(0,g.useState)(!1),o;e[3]===r?o=e[4]:(o=m=>{r==null||r(m),n(!0),setTimeout(()=>n(!1),1e3)},e[3]=r,e[4]=o);let i=s?"Copied":"Copy",c;return e[5]!==a||e[6]!==o||e[7]!==i?(c=(0,l.jsx)(b,{...a,onClick:o,children:i}),e[5]=a,e[6]=o,e[7]=i,e[8]=c):c=e[8],c},ne={code:({children:t,className:e})=>{let r=e==null?void 0:e.replace("language-","");if(r&&typeof t=="string"){let a=t.trim();return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-xs text-muted-foreground pl-1",children:r}),(0,l.jsx)(re,{code:a,language:r})]})}return(0,l.jsx)("code",{className:e,children:t})}};const N=(0,g.memo)(t=>{let e=(0,y.c)(2),{content:r}=t,a;return e[0]===r?a=e[1]:(a=(0,l.jsx)(U,{components:ne,className:"mo-markdown-renderer",children:r}),e[0]=r,e[1]=a),a});N.displayName="MarkdownRenderer";export{K as a,X as c,B as d,k as i,H as l,P as n,G as o,C as r,Q as s,N as t,F as u}; diff --git a/docs/assets/marked.esm-BZNXs5FA.js b/docs/assets/marked.esm-BZNXs5FA.js new file mode 100644 index 0000000..ceeeca5 --- /dev/null +++ b/docs/assets/marked.esm-BZNXs5FA.js @@ -0,0 +1,60 @@ +var me=Object.defineProperty;var we=(n,e,t)=>e in n?me(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var k=(n,e,t)=>we(n,typeof e!="symbol"?e+"":e,t);var U;function M(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=M();function ne(n){S=n}var T={exec:()=>null};function u(n,e=""){let t=typeof n=="string"?n:n.source,s={replace:(r,l)=>{let c=typeof l=="string"?l:l.source;return c=c.replace(b.caret,"$1"),t=t.replace(r,c),s},getRegex:()=>new RegExp(t,e)};return s}var b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},ye=/^(?:[ \t]*(?:\n|$))+/,$e=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,A=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Re=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,re=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,se=u(re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ze=u(re).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),N=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Te=/^[^\n]+/,O=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ae=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",O).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_e=u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),I="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Pe=u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",j).replace("tag",I).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ie=u(N).replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I).getRegex(),G={blockquote:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ie).getRegex(),code:$e,def:Ae,fences:Se,heading:Re,hr:A,html:Pe,lheading:se,list:_e,newline:ye,paragraph:ie,table:T,text:Te},le=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I).getRegex(),Ie={...G,lheading:ze,table:le,paragraph:u(N).replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",le).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",I).getRegex()},Le={...G,html:u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",j).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(N).replace("hr",A).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",se).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ce=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Be=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ae=/^( {2,}|\\)\n(?!\s*$)/,qe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,L=/[\p{P}\p{S}]/u,H=/[\s\p{P}\p{S}]/u,oe=/[^\s\p{P}\p{S}]/u,Ee=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,H).getRegex(),ce=/(?!~)[\p{P}\p{S}]/u,ve=/(?!~)[\s\p{P}\p{S}]/u,Ze=/(?:[^\s\p{P}\p{S}]|~)/u,De=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,he=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Me=u(he,"u").replace(/punct/g,L).getRegex(),Qe=u(he,"u").replace(/punct/g,ce).getRegex(),pe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ne=u(pe,"gu").replace(/notPunctSpace/g,oe).replace(/punctSpace/g,H).replace(/punct/g,L).getRegex(),Oe=u(pe,"gu").replace(/notPunctSpace/g,Ze).replace(/punctSpace/g,ve).replace(/punct/g,ce).getRegex(),je=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,oe).replace(/punctSpace/g,H).replace(/punct/g,L).getRegex(),Ge=u(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),He=u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),We=u(j).replace("(?:-->|$)","-->").getRegex(),Xe=u("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",We).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),C=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,Fe=u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",C).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ue=u(/^!?\[(label)\]\[(ref)\]/).replace("label",C).replace("ref",O).getRegex(),ge=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",O).getRegex(),W={_backpedal:T,anyPunctuation:Ge,autolink:He,blockSkip:De,br:ae,code:Be,del:T,emStrongLDelim:Me,emStrongRDelimAst:Ne,emStrongRDelimUnd:je,escape:Ce,link:Fe,nolink:ge,punctuation:Ee,reflink:ue,reflinkSearch:u("reflink|nolink(?!\\()","g").replace("reflink",ue).replace("nolink",ge).getRegex(),tag:Xe,text:qe,url:T},Ue={...W,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",C).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",C).getRegex()},X={...W,emStrongRDelimAst:Oe,emStrongLDelim:Qe,url:u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Je={...X,br:u(ae).replace("{2,}","*").getRegex(),text:u(X.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},B={normal:G,gfm:Ie,pedantic:Le},_={normal:W,gfm:X,breaks:Je,pedantic:Ue},Ke={"&":"&","<":"<",">":">",'"':""","'":"'"},ke=n=>Ke[n];function w(n,e){if(e){if(b.escapeTest.test(n))return n.replace(b.escapeReplace,ke)}else if(b.escapeTestNoEncode.test(n))return n.replace(b.escapeReplaceNoEncode,ke);return n}function de(n){try{n=encodeURI(n).replace(b.percentDecode,"%")}catch{return null}return n}function fe(n,e){var r;let t=n.replace(b.findPipe,(l,c,i)=>{let o=!1,a=c;for(;--a>=0&&i[a]==="\\";)o=!o;return o?"|":" |"}).split(b.splitPipe),s=0;if(t[0].trim()||t.shift(),t.length>0&&!((r=t.at(-1))!=null&&r.trim())&&t.pop(),e)if(t.length>e)t.splice(e);else for(;t.length<e;)t.push("");for(;s<t.length;s++)t[s]=t[s].trim().replace(b.slashPipe,"|");return t}function P(n,e,t){let s=n.length;if(s===0)return"";let r=0;for(;r<s;){let l=n.charAt(s-r-1);if(l===e&&!t)r++;else if(l!==e&&t)r++;else break}return n.slice(0,s-r)}function Ve(n,e){if(n.indexOf(e[1])===-1)return-1;let t=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])t++;else if(n[s]===e[1]&&(t--,t<0))return s;return t>0?-2:-1}function xe(n,e,t,s,r){let l=e.href,c=e.title||null,i=n[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:n[0].charAt(0)==="!"?"image":"link",raw:t,href:l,title:c,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,o}function Ye(n,e,t){let s=n.match(t.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(` +`).map(l=>{let c=l.match(t.other.beginningSpace);if(c===null)return l;let[i]=c;return i.length>=r.length?l.slice(r.length):l}).join(` +`)}var q=class{constructor(n){k(this,"options");k(this,"rules");k(this,"lexer");this.options=n||S}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:P(t,` +`)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let t=e[0],s=Ye(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let s=P(t,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(t=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:P(e[0],` +`)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let t=P(e[0],` +`).split(` +`),s="",r="",l=[];for(;t.length>0;){let c=!1,i=[],o;for(o=0;o<t.length;o++)if(this.rules.other.blockquoteStart.test(t[o]))i.push(t[o]),c=!0;else if(!c)i.push(t[o]);else break;t=t.slice(o);let a=i.join(` +`),h=a.replace(this.rules.other.blockquoteSetextReplace,` + $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s} +${a}`:a,r=r?`${r} +${h}`:h;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=f,t.length===0)break;let p=l.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let x=p,d=x.raw+` +`+t.join(` +`),m=this.blockquote(d);l[l.length-1]=m,s=s.substring(0,s.length-x.raw.length)+m.raw,r=r.substring(0,r.length-x.text.length)+m.text;break}else if((p==null?void 0:p.type)==="list"){let x=p,d=x.raw+` +`+t.join(` +`),m=this.list(d);l[l.length-1]=m,s=s.substring(0,s.length-p.raw.length)+m.raw,r=r.substring(0,r.length-x.raw.length)+m.raw,t=d.substring(l.at(-1).raw.length).split(` +`);continue}}return{type:"blockquote",raw:s,tokens:l,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let t=e[1].trim(),s=t.length>1,r={type:"list",raw:"",ordered:s,start:s?+t.slice(0,-1):"",loose:!1,items:[]};t=s?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=s?t:"[*+-]");let l=this.rules.other.listItemRegex(t),c=!1;for(;n;){let o=!1,a="",h="";if(!(e=l.exec(n))||this.rules.block.hr.test(n))break;a=e[0],n=n.substring(a.length);let f=e[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,Z=>" ".repeat(3*Z.length)),p=n.split(` +`,1)[0],x=!f.trim(),d=0;if(this.options.pedantic?(d=2,h=f.trimStart()):x?d=e[1].length+1:(d=e[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,h=f.slice(d),d+=e[1].length),x&&this.rules.other.blankLine.test(p)&&(a+=p+` +`,n=n.substring(p.length+1),o=!0),!o){let Z=this.rules.other.nextBulletRegex(d),Y=this.rules.other.hrRegex(d),ee=this.rules.other.fencesBeginRegex(d),te=this.rules.other.headingBeginRegex(d),be=this.rules.other.htmlBeginRegex(d);for(;n;){let D=n.split(` +`,1)[0],z;if(p=D,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),z=p):z=p.replace(this.rules.other.tabCharGlobal," "),ee.test(p)||te.test(p)||be.test(p)||Z.test(p)||Y.test(p))break;if(z.search(this.rules.other.nonSpaceChar)>=d||!p.trim())h+=` +`+z.slice(d);else{if(x||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ee.test(f)||te.test(f)||Y.test(f))break;h+=` +`+p}!x&&!p.trim()&&(x=!0),a+=D+` +`,n=n.substring(D.length+1),f=z.slice(d)}}r.loose||(c?r.loose=!0:this.rules.other.doubleBlankLine.test(a)&&(c=!0));let m=null,V;this.options.gfm&&(m=this.rules.other.listIsTask.exec(h),m&&(V=m[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:a,task:!!m,checked:V,loose:!1,text:h,tokens:[]}),r.raw+=a}let i=r.items.at(-1);if(i)i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let o=0;o<r.items.length;o++)if(this.lexer.state.top=!1,r.items[o].tokens=this.lexer.blockTokens(r.items[o].text,[]),!r.loose){let a=r.items[o].tokens.filter(h=>h.type==="space");r.loose=a.length>0&&a.some(h=>this.rules.other.anyLine.test(h.raw))}if(r.loose)for(let o=0;o<r.items.length;o++)r.items[o].loose=!0;return r}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:s,title:r}}}table(n){var c;let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=fe(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=(c=e[3])!=null&&c.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(` +`):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.length===s.length){for(let i of s)this.rules.other.tableAlignRight.test(i)?l.align.push("right"):this.rules.other.tableAlignCenter.test(i)?l.align.push("center"):this.rules.other.tableAlignLeft.test(i)?l.align.push("left"):l.align.push(null);for(let i=0;i<t.length;i++)l.header.push({text:t[i],tokens:this.lexer.inline(t[i]),header:!0,align:l.align[i]});for(let i of r)l.rows.push(fe(i,l.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:l.align[a]})));return l}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let t=e[1].charAt(e[1].length-1)===` +`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let l=P(t.slice(0,-1),"\\");if((t.length-l.length)%2==0)return}else{let l=Ve(e[2],"()");if(l===-2)return;if(l>-1){let c=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let s=e[2],r="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],r=l[3])}else r=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?s.slice(1):s.slice(1,-1)),xe(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let t;if((t=this.rules.inline.reflink.exec(n))||(t=this.rules.inline.nolink.exec(n))){let s=e[(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let r=t[0].charAt(0);return{type:"text",raw:r,text:r}}return xe(t,s,t[0],this.lexer,this.rules)}}emStrong(n,e,t=""){let s=this.rules.inline.emStrongLDelim.exec(n);if(!(!s||s[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!t||this.rules.inline.punctuation.exec(t))){let r=[...s[0]].length-1,l,c,i=r,o=0,a=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,e=e.slice(-1*n.length+r);(s=a.exec(e))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(c=[...l].length,s[3]||s[4]){i+=c;continue}else if((s[5]||s[6])&&r%3&&!((r+c)%3)){o+=c;continue}if(i-=c,i>0)continue;c=Math.min(c,c+i+o);let h=[...s[0]][0].length,f=n.slice(0,r+s.index+h+c);if(Math.min(r,c)%2){let x=f.slice(1,-1);return{type:"em",raw:f,text:x,tokens:this.lexer.inlineTokens(x)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return s&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){let e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let t,s;return e[2]==="@"?(t=e[1],s="mailto:"+t):(t=e[1],s=t),{type:"link",raw:e[0],text:t,href:s,tokens:[{type:"text",raw:t,text:t}]}}}url(n){var t;let e;if(e=this.rules.inline.url.exec(n)){let s,r;if(e[2]==="@")s=e[0],r="mailto:"+s;else{let l;do l=e[0],e[0]=((t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])??"";while(l!==e[0]);s=e[0],r=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},y=class J{constructor(e){k(this,"tokens");k(this,"options");k(this,"state");k(this,"tokenizer");k(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new q,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:b,block:B.normal,inline:_.normal};this.options.pedantic?(t.block=B.pedantic,t.inline=_.pedantic):this.options.gfm&&(t.block=B.gfm,this.options.breaks?t.inline=_.breaks:t.inline=_.gfm),this.tokenizer.rules=t}static get rules(){return{block:B,inline:_}}static lex(e,t){return new J(t).lex(e)}static lexInline(e,t){return new J(t).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let s=this.inlineQueue[t];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],s=!1){var r,l,c;for(this.options.pedantic&&(e=e.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));e;){let i;if((l=(r=this.options.extensions)==null?void 0:r.block)!=null&&l.some(a=>(i=a.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let a=t.at(-1);i.raw.length===1&&a!==void 0?a.raw+=` +`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let a=t.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=(a.raw.endsWith(` +`)?"":` +`)+i.raw,a.text+=` +`+i.text,this.inlineQueue.at(-1).src=a.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let a=t.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=(a.raw.endsWith(` +`)?"":` +`)+i.raw,a.text+=` +`+i.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let o=e;if((c=this.options.extensions)!=null&&c.startBlock){let a=1/0,h=e.slice(1),f;this.options.extensions.startBlock.forEach(p=>{f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(a=Math.min(a,f))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let a=t.at(-1);s&&(a==null?void 0:a.type)==="paragraph"?(a.raw+=(a.raw.endsWith(` +`)?"":` +`)+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let a=t.at(-1);(a==null?void 0:a.type)==="text"?(a.raw+=(a.raw.endsWith(` +`)?"":` +`)+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var i,o,a;let s=e,r=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)h.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,c="";for(;e;){l||(c=""),l=!1;let h;if((o=(i=this.options.extensions)==null?void 0:i.inline)!=null&&o.some(p=>(h=p.call({lexer:this},e,t))?(e=e.substring(h.raw.length),t.push(h),!0):!1))continue;if(h=this.tokenizer.escape(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.tag(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.link(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(h.raw.length);let p=t.at(-1);h.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=h.raw,p.text+=h.text):t.push(h);continue}if(h=this.tokenizer.emStrong(e,s,c)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.codespan(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.br(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.del(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.autolink(e)){e=e.substring(h.raw.length),t.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(e))){e=e.substring(h.raw.length),t.push(h);continue}let f=e;if((a=this.options.extensions)!=null&&a.startInline){let p=1/0,x=e.slice(1),d;this.options.extensions.startInline.forEach(m=>{d=m.call({lexer:this},x),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(f=e.substring(0,p+1))}if(h=this.tokenizer.inlineText(f)){e=e.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(c=h.raw.slice(-1)),l=!0;let p=t.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=h.raw,p.text+=h.text):t.push(h);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw Error(p)}}return t}},E=class{constructor(n){k(this,"options");k(this,"parser");this.options=n||S}space(n){return""}code({text:n,lang:e,escaped:t}){var l;let s=(l=(e||"").match(b.notSpaceStart))==null?void 0:l[0],r=n.replace(b.endingNewline,"")+` +`;return s?'<pre><code class="language-'+w(s)+'">'+(t?r:w(r,!0))+`</code></pre> +`:"<pre><code>"+(t?r:w(r,!0))+`</code></pre> +`}blockquote({tokens:n}){return`<blockquote> +${this.parser.parse(n)}</blockquote> +`}html({text:n}){return n}def(n){return""}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}> +`}hr(n){return`<hr> +`}list(n){let e=n.ordered,t=n.start,s="";for(let c=0;c<n.items.length;c++){let i=n.items[c];s+=this.listitem(i)}let r=e?"ol":"ul",l=e&&t!==1?' start="'+t+'"':"";return"<"+r+l+`> +`+s+"</"+r+`> +`}listitem(n){var t;let e="";if(n.task){let s=this.checkbox({checked:!!n.checked});n.loose?((t=n.tokens[0])==null?void 0:t.type)==="paragraph"?(n.tokens[0].text=s+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&n.tokens[0].tokens[0].type==="text"&&(n.tokens[0].tokens[0].text=s+" "+w(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):e+=s+" "}return e+=this.parser.parse(n.tokens,!!n.loose),`<li>${e}</li> +`}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p> +`}table(n){let e="",t="";for(let r=0;r<n.header.length;r++)t+=this.tablecell(n.header[r]);e+=this.tablerow({text:t});let s="";for(let r=0;r<n.rows.length;r++){let l=n.rows[r];t="";for(let c=0;c<l.length;c++)t+=this.tablecell(l[c]);s+=this.tablerow({text:t})}return s&&(s=`<tbody>${s}</tbody>`),`<table> +<thead> +`+e+`</thead> +`+s+`</table> +`}tablerow({text:n}){return`<tr> +${n}</tr> +`}tablecell(n){let e=this.parser.parseInline(n.tokens),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}> +`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${w(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:t}){let s=this.parser.parseInline(t),r=de(n);if(r===null)return s;n=r;let l='<a href="'+n+'"';return e&&(l+=' title="'+w(e)+'"'),l+=">"+s+"</a>",l}image({href:n,title:e,text:t,tokens:s}){s&&(t=this.parser.parseInline(s,this.parser.textRenderer));let r=de(n);if(r===null)return w(t);n=r;let l=`<img src="${n}" alt="${t}"`;return e&&(l+=` title="${w(e)}"`),l+=">",l}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:w(n.text)}},F=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}},$=class K{constructor(e){k(this,"options");k(this,"renderer");k(this,"textRenderer");this.options=e||S,this.options.renderer=this.options.renderer||new E,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new F}static parse(e,t){return new K(t).parse(e)}static parseInline(e,t){return new K(t).parseInline(e)}parse(e,t=!0){var r,l;let s="";for(let c=0;c<e.length;c++){let i=e[c];if((l=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&l[i.type]){let a=i,h=this.options.extensions.renderers[a.type].call({parser:this},a);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){s+=h||"";continue}}let o=i;switch(o.type){case"space":s+=this.renderer.space(o);continue;case"hr":s+=this.renderer.hr(o);continue;case"heading":s+=this.renderer.heading(o);continue;case"code":s+=this.renderer.code(o);continue;case"table":s+=this.renderer.table(o);continue;case"blockquote":s+=this.renderer.blockquote(o);continue;case"list":s+=this.renderer.list(o);continue;case"html":s+=this.renderer.html(o);continue;case"def":s+=this.renderer.def(o);continue;case"paragraph":s+=this.renderer.paragraph(o);continue;case"text":{let a=o,h=this.renderer.text(a);for(;c+1<e.length&&e[c+1].type==="text";)a=e[++c],h+=` +`+this.renderer.text(a);t?s+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):s+=h;continue}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw Error(a)}}}return s}parseInline(e,t=this.renderer){var r,l;let s="";for(let c=0;c<e.length;c++){let i=e[c];if((l=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&l[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=a||"";continue}}let o=i;switch(o.type){case"escape":s+=t.text(o);break;case"html":s+=t.html(o);break;case"link":s+=t.link(o);break;case"image":s+=t.image(o);break;case"strong":s+=t.strong(o);break;case"em":s+=t.em(o);break;case"codespan":s+=t.codespan(o);break;case"br":s+=t.br(o);break;case"del":s+=t.del(o);break;case"text":s+=t.text(o);break;default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw Error(a)}}}return s}},v=(U=class{constructor(n){k(this,"options");k(this,"block");this.options=n||S}preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}provideLexer(){return this.block?y.lex:y.lexInline}provideParser(){return this.block?$.parse:$.parseInline}},k(U,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),U),R=new class{constructor(...n){k(this,"defaults",M());k(this,"options",this.setOptions);k(this,"parse",this.parseMarkdown(!0));k(this,"parseInline",this.parseMarkdown(!1));k(this,"Parser",$);k(this,"Renderer",E);k(this,"TextRenderer",F);k(this,"Lexer",y);k(this,"Tokenizer",q);k(this,"Hooks",v);this.use(...n)}walkTokens(n,e){var s,r;let t=[];for(let l of n)switch(t=t.concat(e.call(this,l)),l.type){case"table":{let c=l;for(let i of c.header)t=t.concat(this.walkTokens(i.tokens,e));for(let i of c.rows)for(let o of i)t=t.concat(this.walkTokens(o.tokens,e));break}case"list":{let c=l;t=t.concat(this.walkTokens(c.items,e));break}default:{let c=l;(r=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&r[c.type]?this.defaults.extensions.childTokens[c.type].forEach(i=>{let o=c[i].flat(1/0);t=t.concat(this.walkTokens(o,e))}):c.tokens&&(t=t.concat(this.walkTokens(c.tokens,e)))}}return t}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{let s={...t};if(s.async=this.defaults.async||s.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw Error("extension name required");if("renderer"in r){let l=e.renderers[r.name];l?e.renderers[r.name]=function(...c){let i=r.renderer.apply(this,c);return i===!1&&(i=l.apply(this,c)),i}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let l=e[r.level];l?l.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),t.renderer){let r=this.defaults.renderer||new E(this.defaults);for(let l in t.renderer){if(!(l in r))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,i=t.renderer[c],o=r[c];r[c]=(...a)=>{let h=i.apply(r,a);return h===!1&&(h=o.apply(r,a)),h||""}}s.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new q(this.defaults);for(let l in t.tokenizer){if(!(l in r))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,i=t.tokenizer[c],o=r[c];r[c]=(...a)=>{let h=i.apply(r,a);return h===!1&&(h=o.apply(r,a)),h}}s.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new v;for(let l in t.hooks){if(!(l in r))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,i=t.hooks[c],o=r[c];v.passThroughHooks.has(l)?r[c]=a=>{if(this.defaults.async)return Promise.resolve(i.call(r,a)).then(f=>o.call(r,f));let h=i.call(r,a);return o.call(r,h)}:r[c]=(...a)=>{let h=i.apply(r,a);return h===!1&&(h=o.apply(r,a)),h}}s.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,l=t.walkTokens;s.walkTokens=function(c){let i=[];return i.push(l.call(this,c)),r&&(i=i.concat(r.call(this,c))),i}}this.defaults={...this.defaults,...s}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return y.lex(n,e??this.defaults)}parser(n,e){return $.parse(n,e??this.defaults)}parseMarkdown(n){return(e,t)=>{let s={...t},r={...this.defaults,...s},l=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return l(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=n);let c=r.hooks?r.hooks.provideLexer():n?y.lex:y.lexInline,i=r.hooks?r.hooks.provideParser():n?$.parse:$.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(o=>c(o,r)).then(o=>r.hooks?r.hooks.processAllTokens(o):o).then(o=>r.walkTokens?Promise.all(this.walkTokens(o,r.walkTokens)).then(()=>o):o).then(o=>i(o,r)).then(o=>r.hooks?r.hooks.postprocess(o):o).catch(l);try{r.hooks&&(e=r.hooks.preprocess(e));let o=c(e,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let a=i(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return l(o)}}}onError(n,e){return t=>{if(t.message+=` +Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+w(t.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(t);throw t}}};function g(n,e){return R.parse(n,e)}g.options=g.setOptions=function(n){return R.setOptions(n),g.defaults=R.defaults,ne(g.defaults),g},g.getDefaults=M,g.defaults=S,g.use=function(...n){return R.use(...n),g.defaults=R.defaults,ne(g.defaults),g},g.walkTokens=function(n,e){return R.walkTokens(n,e)},g.parseInline=R.parseInline,g.Parser=$,g.parser=$.parse,g.Renderer=E,g.TextRenderer=F,g.Lexer=y,g.lexer=y.lex,g.Tokenizer=q,g.Hooks=v,g.parse=g,g.options,g.setOptions,g.use,g.walkTokens,g.parseInline,$.parse,y.lex;export{g as n,y as t}; diff --git a/docs/assets/marko-Cip_Po2S.js b/docs/assets/marko-Cip_Po2S.js new file mode 100644 index 0000000..fc1b7af --- /dev/null +++ b/docs/assets/marko-Cip_Po2S.js @@ -0,0 +1 @@ +import{t as e}from"./css-xi2XX7Oh.js";import{t as n}from"./scss-B9q1Ycvh.js";import{t}from"./typescript-DAlbup0L.js";import{t as a}from"./less-BQiVuzTN.js";var s=Object.freeze(JSON.parse('{"displayName":"Marko","fileTypes":["marko"],"name":"marko","patterns":[{"begin":"^\\\\s*(style)(\\\\b\\\\S*\\\\.css)?\\\\s+(\\\\{)","beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"contentName":"source.css","end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}},"name":"meta.embedded.css","patterns":[{"include":"source.css"}]},{"begin":"^\\\\s*(style)\\\\b(\\\\S*\\\\.less)\\\\s+(\\\\{)","beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"contentName":"source.less","end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}},"name":"meta.embedded.less","patterns":[{"include":"source.css.less"}]},{"begin":"^\\\\s*(style)\\\\b(\\\\S*\\\\.scss)\\\\s+(\\\\{)","beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"contentName":"source.scss","end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}},"name":"meta.embedded.scss","patterns":[{"include":"source.css.scss"}]},{"begin":"^\\\\s*(style)\\\\b(\\\\S*\\\\.[jt]s)\\\\s+(\\\\{)","beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"contentName":"source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}},"name":"meta.embedded.ts","patterns":[{"include":"source.ts"}]},{"begin":"^\\\\s*(?:(static|server|client)\\\\b|(?=(?:class|import|export)\\\\b))","beginCaptures":{"1":{"name":"keyword.control.static.marko"}},"contentName":"source.ts","end":"(?=\\\\n|$)","name":"meta.embedded.ts","patterns":[{"include":"source.ts"}]},{"include":"#content-concise-mode"}],"repository":{"attr-value":{"begin":"\\\\s*(:?=)\\\\s*","beginCaptures":{"1":{"patterns":[{"include":"source.ts"}]}},"contentName":"source.ts","end":"(?=[],;]|/>|(?<=[^=>])>|(?<!^|[!%\\\\&*:?^|~]|[-!%\\\\&*+/<-?^|~]=|[=>]>|[^.]\\\\.|[^-]-|[^+]\\\\+|[]%).0-9<A-Za-z}]\\\\s/|[^$.\\\\w]await|[^$.\\\\w]async|[^$.\\\\w]class|[^$.\\\\w]function|[^$.\\\\w]keyof|[^$.\\\\w]new|[^$.\\\\w]readonly|[^$.\\\\w]infer|[^$.\\\\w]typeof|[^$.\\\\w]void)\\\\s+(?![\\\\n!%\\\\&(*+:?^{|~]|[-/<=>]=|[=>]>|\\\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\\\s+[^,/:;=>]))","name":"meta.embedded.ts","patterns":[{"include":"#javascript-expression"}]},"attrs":{"patterns":[{"include":"#javascript-comments"},{"applyEndPatternLast":1,"begin":"(?:(key|on[-$0-9A-Z_a-z]+|[$0-9A-Z_a-z]+Change|no-update(?:-body)?(?:-if)?)|([$0-9A-Z_a-z][-$0-9A-Z_a-z]*)|(#[$0-9A-Z_a-z][-$0-9A-Z_a-z]*))(:[$0-9A-Z_a-z][-$0-9A-Z_a-z]*)?","beginCaptures":{"1":{"name":"support.type.attribute-name.marko"},"2":{"name":"entity.other.attribute-name.marko"},"3":{"name":"support.function.attribute-name.marko"},"4":{"name":"support.function.attribute-name.marko"}},"end":"(?=.|$)","name":"meta.marko-attribute","patterns":[{"include":"#html-args-or-method"},{"include":"#attr-value"}]},{"begin":"(\\\\.\\\\.\\\\.)","beginCaptures":{"1":{"name":"keyword.operator.spread.marko"}},"contentName":"source.ts","end":"(?=[],;]|/>|(?<=[^=>])>|(?<!^|[!%\\\\&*:?^|~]|[-!%\\\\&*+/<-?^|~]=|[=>]>|[^.]\\\\.|[^-]-|[^+]\\\\+|[]%).0-9<A-Za-z}]\\\\s/|[^$.\\\\w]await|[^$.\\\\w]async|[^$.\\\\w]class|[^$.\\\\w]function|[^$.\\\\w]keyof|[^$.\\\\w]new|[^$.\\\\w]readonly|[^$.\\\\w]infer|[^$.\\\\w]typeof|[^$.\\\\w]void)\\\\s+(?![\\\\n!%\\\\&(*+:?^{|~]|[-/<=>]=|[=>]>|\\\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\\\s+[^,/:;=>]))","name":"meta.marko-spread-attribute","patterns":[{"include":"#javascript-expression"}]},{"begin":"\\\\s*(,(?!,))","captures":{"1":{"name":"punctuation.separator.comma.marko"}},"end":"(?=\\\\S)"},{"include":"#invalid"}]},"cdata":{"begin":"\\\\s*<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"contentName":"string.other.inline-data.marko","end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"name":"meta.tag.metadata.cdata.marko"},"concise-attr-group":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}},"patterns":[{"include":"#concise-attr-group"},{"begin":"\\\\s+","end":"(?=\\\\S)"},{"include":"#attrs"},{"include":"#invalid"}]},"concise-comment-block":{"begin":"\\\\s*(--+)\\\\s*$","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-comment-block","patterns":[{"include":"#content-embedded-comment"}]},"concise-comment-line":{"applyEndPatternLast":1,"begin":"\\\\s*(--+)","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"end":"$","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-comment-line","patterns":[{"include":"#content-embedded-comment"}]},"concise-html-block":{"begin":"\\\\s*(--+)\\\\s*$","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-html-block","patterns":[{"include":"#content-html-mode"}]},"concise-html-line":{"captures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"},"2":{"patterns":[{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#tag-html"},{"match":"\\\\\\\\.","name":"text.marko"},{"include":"#placeholder"},{"match":".+?","name":"text.marko"}]},"3":{"name":"punctuation.section.embedded.scope.end.marko"}},"match":"\\\\s*(--+)(?=\\\\s+\\\\S)(.*)$()","name":"meta.section.marko-html-line"},"concise-open-tag-content":{"patterns":[{"include":"#invalid-close-tag"},{"include":"#tag-before-attrs"},{"include":"#concise-semi-eol"},{"begin":"(?!^)[\\\\t ,]","end":"(?=--)|(?=\\\\n)","patterns":[{"include":"#concise-semi-eol"},{"include":"#concise-attr-group"},{"begin":"[\\\\t ]+","end":"(?=[\\\\n\\\\S])"},{"include":"#attrs"},{"include":"#invalid"}]}]},"concise-script-block":{"begin":"\\\\s*(--+)\\\\s*$","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-script-block","patterns":[{"include":"#content-embedded-script"}]},"concise-script-line":{"applyEndPatternLast":1,"begin":"\\\\s*(--+)","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"end":"$","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-script-line","patterns":[{"include":"#content-embedded-script"}]},"concise-semi-eol":{"begin":"\\\\s*(;)","beginCaptures":{"1":{"name":"punctuation.terminator.marko"}},"end":"$","patterns":[{"include":"#javascript-comments"},{"include":"#html-comment"},{"include":"#invalid"}]},"concise-style-block":{"begin":"\\\\s*(--+)\\\\s*$","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"contentName":"source.css","end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-style-block","patterns":[{"include":"#content-embedded-style"}]},"concise-style-block-less":{"begin":"\\\\s*(--+)\\\\s*$","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"contentName":"source.less","end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-style-block","patterns":[{"include":"#content-embedded-style-less"}]},"concise-style-block-scss":{"begin":"\\\\s*(--+)\\\\s*$","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"contentName":"source.scss","end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-style-block","patterns":[{"include":"#content-embedded-style-scss"}]},"concise-style-line":{"applyEndPatternLast":1,"begin":"\\\\s*(--+)","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"contentName":"source.css","end":"$","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-style-line","patterns":[{"include":"#content-embedded-style"}]},"concise-style-line-less":{"applyEndPatternLast":1,"begin":"\\\\s*(--+)","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"contentName":"source.less","end":"$","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-style-line","patterns":[{"include":"#content-embedded-style-less"}]},"concise-style-line-scss":{"applyEndPatternLast":1,"begin":"\\\\s*(--+)","beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"contentName":"source.scss","end":"$","endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"name":"meta.section.marko-style-line","patterns":[{"include":"#content-embedded-style-scss"}]},"content-concise-mode":{"name":"meta.marko-concise-content","patterns":[{"include":"#scriptlet"},{"include":"#javascript-comments"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#html-comment"},{"include":"#concise-html-block"},{"include":"#concise-html-line"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"patterns":[{"begin":"^(\\\\s*)(?=html-comment\\\\b)","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-comment-block"},{"include":"#concise-comment-line"}],"while":"(?=^(?:\\\\s*[])`}]|\\\\*/|\\\\s*$|\\\\1\\\\s+(\\\\S|$)))"},{"begin":"^(\\\\s*)(?=(?:html-)?style\\\\b\\\\S*\\\\.less\\\\b)","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-less"},{"include":"#concise-style-line-less"}],"while":"(?=^(?:\\\\s*[])`}]|\\\\*/|\\\\s*$|\\\\1\\\\s+(\\\\S|$)))"},{"begin":"^(\\\\s*)(?=(?:html-)?style\\\\b\\\\S*\\\\.scss\\\\b)","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-scss"},{"include":"#concise-style-line-scss"}],"while":"(?=^(?:\\\\s*[])`}]|\\\\*/|\\\\s*$|\\\\1\\\\s+(\\\\S|$)))"},{"begin":"^(\\\\s*)(?=(?:html-)?style\\\\b\\\\S*\\\\.[jt]s\\\\b)","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}],"while":"(?=^(?:\\\\s*[])`}]|\\\\*/|\\\\s*$|\\\\1\\\\s+(\\\\S|$)))"},{"begin":"^(\\\\s*)(?=(?:html-)?style\\\\b)","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block"},{"include":"#concise-style-line"}],"while":"(?=^(?:\\\\s*[])`}]|\\\\*/|\\\\s*$|\\\\1\\\\s+(\\\\S|$)))"},{"begin":"^(\\\\s*)(?=(?:html-)?script\\\\b)","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}],"while":"(?=^(?:\\\\s*[])`}]|\\\\*/|\\\\s*$|\\\\1\\\\s+(\\\\S|$)))"},{"begin":"^([\\\\t ]*)(?=[#$.0-9@-Z_a-z])","patterns":[{"include":"#concise-open-tag-content"},{"include":"#content-concise-mode"}],"while":"(?=^(?:\\\\s*[])`}]|\\\\*/|\\\\s*$|\\\\1\\\\s+(\\\\S|$)))"}]}]},"content-embedded-comment":{"patterns":[{"include":"#placeholder"},{"match":".","name":"comment.block.marko"}]},"content-embedded-script":{"name":"meta.embedded.ts","patterns":[{"include":"#placeholder"},{"include":"source.ts"}]},"content-embedded-style":{"name":"meta.embedded.css","patterns":[{"include":"#placeholder"},{"include":"source.css"}]},"content-embedded-style-less":{"name":"meta.embedded.css.less","patterns":[{"include":"#placeholder"},{"include":"source.css.less"}]},"content-embedded-style-scss":{"name":"meta.embedded.css.scss","patterns":[{"include":"#placeholder"},{"include":"source.css.scss"}]},"content-html-mode":{"patterns":[{"include":"#scriptlet"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"match":"\\\\\\\\.","name":"text.marko"},{"include":"#placeholder"},{"match":".+?","name":"text.marko"}]},"declaration":{"begin":"(<\\\\?)\\\\s*([-$0-9A-Z_a-z]*)","captures":{"1":{"name":"punctuation.definition.tag.marko"},"2":{"name":"entity.name.tag.marko"}},"end":"(\\\\??>)","name":"meta.tag.metadata.processing.xml.marko","patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.marko"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"string.quoted.double.marko"},"4":{"name":"string.quoted.single.marko"},"5":{"name":"string.unquoted.marko"}},"match":"((?:[^=>?\\\\s]|\\\\?(?!>))+)(=)(?:(\\"(?:[^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\'(?:[^\'\\\\\\\\]|\\\\\\\\.)*\')|((?:[^>?\\\\s]|\\\\?(?!>))+))"}]},"doctype":{"begin":"\\\\s*<!(?=(?i:DOCTYPE\\\\s))","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"name":"meta.tag.metadata.doctype.marko","patterns":[{"match":"\\\\G(?i:DOCTYPE)","name":"entity.name.tag.marko"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.marko"},{"match":"[^>\\\\s]+","name":"entity.other.attribute-name.marko"}]},"html-args-or-method":{"patterns":[{"include":"#tag-type-params"},{"begin":"\\\\s*(?=\\\\()","contentName":"source.ts","end":"(?<=\\\\))","name":"meta.embedded.ts","patterns":[{"include":"source.ts#paren-expression"}]},{"begin":"(?<=\\\\))\\\\s*(?=\\\\{)","contentName":"source.ts","end":"(?<=})","name":"meta.embedded.ts","patterns":[{"include":"source.ts"}]}]},"html-comment":{"begin":"\\\\s*(<!(--)?)","beginCaptures":{"1":{"name":"punctuation.definition.comment.marko"}},"end":"\\\\2>","endCaptures":{"0":{"name":"punctuation.definition.comment.marko"}},"name":"comment.block.marko"},"invalid":{"match":"\\\\S","name":"invalid.illegal.character-not-allowed-here.marko"},"invalid-close-tag":{"begin":"\\\\s*</.*?","end":">","name":"invalid.illegal.character-not-allowed-here.marko"},"javascript-comments":{"patterns":[{"begin":"\\\\s*(?=/\\\\*)","contentName":"source.ts","end":"(?<=\\\\*/)","patterns":[{"include":"source.ts"}]},{"captures":{"0":{"patterns":[{"include":"source.ts"}]}},"contentName":"source.ts","match":"\\\\s*//.*$"}]},"javascript-comments-after-whitespace":{"patterns":[{"begin":"(?:^|\\\\s+)(?=/\\\\*)","contentName":"source.ts","end":"(?<=\\\\*/)","patterns":[{"include":"source.ts"}]},{"captures":{"0":{"patterns":[{"include":"source.ts"}]}},"contentName":"source.ts","match":"(?:^|\\\\s+)//.*$"}]},"javascript-expression":{"patterns":[{"include":"#javascript-comments"},{"captures":{"0":{"patterns":[{"include":"source.ts"}]}},"contentName":"source.ts","match":"(?:\\\\s*\\\\b(?:as|await|extends|in|instanceof|satisfies|keyof|new|typeof|void))+\\\\s+(?![,/:;=>])[#$0-9@-Z_a-z]*"},{"applyEndPatternLast":1,"captures":{"0":{"name":"string.regexp.ts","patterns":[{"include":"source.ts#regexp"},{"include":"source.ts"}]}},"contentName":"source.ts","match":"(?<![]%).0-9<A-Za-z}])\\\\s*/(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[(?:[^]\\\\\\\\]|\\\\\\\\.)*])*/[A-Za-z]*"},{"include":"source.ts"}]},"javascript-placeholder":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"patterns":[{"include":"source.ts"}]},"open-tag-content":{"patterns":[{"include":"#invalid-close-tag"},{"include":"#tag-before-attrs"},{"begin":"(?!/?>)","end":"(?=/?>)","patterns":[{"include":"#attrs"}]}]},"placeholder":{"begin":"\\\\$!?\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"patterns":[{"include":"source.ts"}]},"scriptlet":{"begin":"^\\\\s*(\\\\$)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.scriptlet.marko"}},"contentName":"source.ts","end":"$","name":"meta.embedded.ts","patterns":[{"include":"source.ts"}]},"tag-before-attrs":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"},{"begin":"/(?![*/])","beginCaptures":{"0":{"name":"punctuation.separator.tag-variable.marko"}},"contentName":"source.ts","end":"(?=[(,/;<>|]|:?=|\\\\s+[^:]|$)","name":"meta.embedded.ts","patterns":[{"match":"[$A-Z_a-z][$0-9A-Z_a-z]*","name":"variable.other.constant.object.ts"},{"begin":"\\\\{","captures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"}","patterns":[{"include":"source.ts#object-binding-element"},{"include":"#javascript-expression"}]},{"begin":"\\\\[","captures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"]","patterns":[{"include":"source.ts#array-binding-element"},{"include":"#javascript-expression"}]},{"begin":"\\\\s*(:)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=[](,;]|/>|(?<=[^=>])>|(?<!^|[!%\\\\&*:?^|~]|[-!%\\\\&*+/<-?^|~]=|[=>]>|[^.]\\\\.|[^-]-|[^+]\\\\+|[]%).0-9<A-Za-z}]\\\\s/|[^$.\\\\w]await|[^$.\\\\w]async|[^$.\\\\w]class|[^$.\\\\w]function|[^$.\\\\w]keyof|[^$.\\\\w]new|[^$.\\\\w]readonly|[^$.\\\\w]infer|[^$.\\\\w]typeof|[^$.\\\\w]void)\\\\s+(?![\\\\n!%\\\\&*+:?^{|~]|[-/<=>]=|[=>]>|\\\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\\\s+[^,/:;=>]))","patterns":[{"include":"source.ts#type"},{"include":"#javascript-expression"}]},{"include":"#javascript-expression"}]},{"begin":"\\\\s*\\\\|","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.marko"}},"contentName":"source.ts","end":"\\\\|","endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}},"patterns":[{"include":"source.ts#comment"},{"include":"source.ts#string"},{"include":"source.ts#decorator"},{"include":"source.ts#destructuring-parameter"},{"include":"source.ts#parameter-name"},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=[,|])|(?==[^>])","name":"meta.type.annotation.ts","patterns":[{"include":"source.ts#type"}]},{"include":"source.ts#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.ts"},{"include":"source.ts"}]},{"include":"#html-args-or-method"},{"include":"#attr-value"}]},"tag-html":{"patterns":[{"begin":"\\\\s*(<)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr|const|debug|id|let|lifecycle|log|return)\\\\b)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"}]},{"begin":"\\\\s*(<)(?=html-comment\\\\b)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/>|(?<=</(?:>|html-comment>))","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"end":"\\\\s*</(?:>|html-comment>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#content-embedded-comment"}]}]},{"begin":"\\\\s*(<)(?=((?:html-)?style)\\\\b\\\\S*\\\\.less\\\\b)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/>|(?<=</\\\\2??>)","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"contentName":"source.less","end":"\\\\s*(</)((?:html-)?style)?(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#content-embedded-style-less"}]}]},{"begin":"\\\\s*(<)(?=((?:html-)?style)\\\\b\\\\S*\\\\.scss\\\\b)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/>|(?<=</\\\\2??>)","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"contentName":"source.scss","end":"\\\\s*(</)((?:html-)?style)?(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#content-embedded-style-scss"}]}]},{"begin":"\\\\s*(<)(?=((?:html-)?style)\\\\b\\\\S*\\\\.[jt]s\\\\b)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/>|(?<=</\\\\2??>)","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"contentName":"source.ts","end":"\\\\s*(</)((?:html-)?style)?(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#content-embedded-script"}]}]},{"begin":"\\\\s*(<)(?=((?:html-)?style)\\\\b)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/>|(?<=</\\\\2??>)","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"contentName":"source.css","end":"\\\\s*(</)((?:html-)?style)?(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#content-embedded-style"}]}]},{"begin":"\\\\s*(<)(?=((?:html-)?script)\\\\b)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/>|(?<=</\\\\2??>)","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"contentName":"source.ts","end":"\\\\s*(</)((?:html-)?script)?(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#content-embedded-script"}]}]},{"begin":"\\\\s*(<)(?=[#$.]|([-$0-9@-Z_a-z]+))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"end":"/>|(?<=</\\\\2??>)","endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#open-tag-content"},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"end":"\\\\s*(</)([-#$.0-:@-Z_a-z]+)?(.*?)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"}]},"3":{"patterns":[{"include":"#invalid"}]},"4":{"name":"punctuation.definition.tag.end.marko"}},"patterns":[{"include":"#content-html-mode"}]}]}]},"tag-name":{"patterns":[{"applyEndPatternLast":1,"begin":"\\\\G(style)\\\\b(\\\\.[-$0-9A-Z_a-z]+(?:\\\\.[-$0-9A-Z_a-z]+)*)|([0-9@-Z_a-z](?:[-0-9@-Z_a-z]|:(?!=))*)","beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.type.marko.css"},"3":{"patterns":[{"match":"(script|style|html-script|html-style|html-comment)(?=\\\\b)(?![-:@])","name":"support.type.builtin.marko"},{"match":"(for|if|while|else-if|else|try|await|return)(?=\\\\b)(?![-:@])","name":"keyword.control.flow.marko"},{"match":"(const|context|debug|define|id|let|log|lifecycle)(?=\\\\b)(?![-:@])","name":"support.function.marko"},{"match":"@.+","name":"entity.other.attribute-name.marko"},{"match":".+","name":"entity.name.tag.marko"}]}},"end":"(?=.)","patterns":[{"include":"#tag-type-args"}]},{"begin":"(?=[$0-9A-Z_a-z]|-[^-])","end":"(?=[^-$0-9A-Z_a-z]|$)","patterns":[{"include":"#javascript-placeholder"},{"match":"(?:[-0-9A-Z_a-z]|\\\\$(?!\\\\{))+","name":"entity.name.tag.marko"}]}]},"tag-shorthand-class-or-id":{"begin":"(?=[#.])","end":"$|(?=--|[^-#$.0-9A-Z_a-z])","patterns":[{"include":"#javascript-placeholder"},{"match":"(?:[-#.0-9A-Z_a-z]|\\\\$(?!\\\\{))+","name":"entity.other.attribute-name.marko"}]},"tag-type-args":{"applyEndPatternLast":1,"begin":"(?=<)","contentName":"source.ts","end":"(?<=>)","name":"meta.embedded.ts","patterns":[{"applyEndPatternLast":1,"begin":"(?<=>)(?=[\\\\t ]*<)","end":"(?=.)","patterns":[{"include":"#tag-type-params"}]},{"include":"source.ts#type-arguments"}]},"tag-type-params":{"applyEndPatternLast":1,"begin":"(?!^)[\\\\t ]*(?=<)","contentName":"source.ts","end":"(?<=>)","name":"meta.embedded.ts","patterns":[{"include":"source.ts#type-parameters"}]}},"scopeName":"text.marko","embeddedLangs":["css","less","scss","typescript"]}')),i=[...e,...a,...n,...t,s];export{i as default}; diff --git a/docs/assets/material-theme-C2eZWwOB.js b/docs/assets/material-theme-C2eZWwOB.js new file mode 100644 index 0000000..77b3715 --- /dev/null +++ b/docs/assets/material-theme-C2eZWwOB.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#263238","activityBar.border":"#26323860","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#EEFFFF","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#546E7A","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#263238","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.foreground":"#6c8692","breadcrumbPicker.background":"#263238","button.background":"#80CBC420","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#263238","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#263238","dropdown.border":"#FFFFFF10","editor.background":"#263238","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#EEFFFF","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#EEFFFF","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#80CBC420","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#263238","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#263238","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#263238","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#37474F","editorIndentGuide.background":"#37474F70","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#6c8692","editorLineNumber.foreground":"#465A64","editorLink.activeForeground":"#EEFFFF","editorMarkerNavigation.background":"#EEFFFF05","editorOverviewRuler.border":"#263238","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#37474F","editorSuggestWidget.background":"#263238","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#263238","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#EEFFFF","extensionButton.prominentHoverBackground":"#C3E88D","focusBorder":"#FFFFFF00","foreground":"#EEFFFF","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#6c869290","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#303C41","input.border":"#FFFFFF10","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","inputOption.activeBackground":"#EEFFFF30","inputOption.activeBorder":"#EEFFFF30","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#263238","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#263238","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#263238","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#263238","notifications.foreground":"#EEFFFF","panel.background":"#263238","panel.border":"#26323860","panel.dropBackground":"#EEFFFF","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#EEFFFF","peekView.border":"#00000030","peekViewEditor.background":"#303C41","peekViewEditor.matchHighlightBackground":"#80CBC420","peekViewEditorGutter.background":"#303C41","peekViewResult.background":"#303C41","peekViewResult.matchHighlightBackground":"#80CBC420","peekViewResult.selectionBackground":"#6c869270","peekViewTitle.background":"#303C41","peekViewTitleDescription.foreground":"#EEFFFF60","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#263238","quickInput.foreground":"#6c8692","quickInput.list.focusBackground":"#EEFFFF20","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","selection.background":"#00000080","settings.checkboxBackground":"#263238","settings.checkboxForeground":"#EEFFFF","settings.dropdownBackground":"#263238","settings.dropdownForeground":"#EEFFFF","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#263238","settings.numberInputForeground":"#EEFFFF","settings.textInputBackground":"#263238","settings.textInputForeground":"#EEFFFF","sideBar.background":"#263238","sideBar.border":"#26323860","sideBar.foreground":"#6c8692","sideBarSectionHeader.background":"#263238","sideBarSectionHeader.border":"#26323860","sideBarTitle.foreground":"#EEFFFF","statusBar.background":"#263238","statusBar.border":"#26323860","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#546E7A","statusBar.noFolderBackground":"#263238","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#546E7A20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#263238","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#6c8692","tab.border":"#263238","tab.inactiveBackground":"#263238","tab.inactiveForeground":"#6c8692","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#546E7A","tab.unfocusedActiveForeground":"#EEFFFF","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#546E7A","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#EEFFFF","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#263238","titleBar.activeForeground":"#EEFFFF","titleBar.border":"#26323860","titleBar.inactiveBackground":"#263238","titleBar.inactiveForeground":"#6c8692","tree.indentGuidesStroke":"#37474F","widget.shadow":"#00000030"},"displayName":"Material Theme","name":"material-theme","semanticHighlighting":true,"tokenColors":[{"settings":{"background":"#263238","foreground":"#EEFFFF"}},{"scope":"string","settings":{"foreground":"#C3E88D"}},{"scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"scope":"support.module, support.node","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#546E7A"}},{"scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"fontStyle":"italic","foreground":"#546E7A"}},{"scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#f07178"}},{"scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"fontStyle":"italic bold","foreground":"#f07178"}},{"scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.preprocessor","settings":{"foreground":"#546E7A"}},{"scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"scope":"meta.block","settings":{"foreground":"#f07178"}},{"scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"scope":"constant.keyword","settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"settings":{"background":"#263238","foreground":"#EEFFFF"}},{"scope":["constant.other.placeholder"],"settings":{"foreground":"#f07178"}},{"scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["keyword.control"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"scope":["variable.parameter.function.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/material-theme-darker-DiwKV8Z6.js b/docs/assets/material-theme-darker-DiwKV8Z6.js new file mode 100644 index 0000000..fc93382 --- /dev/null +++ b/docs/assets/material-theme-darker-DiwKV8Z6.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#212121","activityBar.border":"#21212160","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#EEFFFF","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#545454","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#212121","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.foreground":"#676767","breadcrumbPicker.background":"#212121","button.background":"#61616150","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#212121","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#212121","dropdown.border":"#FFFFFF10","editor.background":"#212121","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#EEFFFF","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#EEFFFF","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#61616150","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#212121","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#212121","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#212121","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#424242","editorIndentGuide.background":"#42424270","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#676767","editorLineNumber.foreground":"#424242","editorLink.activeForeground":"#EEFFFF","editorMarkerNavigation.background":"#EEFFFF05","editorOverviewRuler.border":"#212121","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#424242","editorSuggestWidget.background":"#212121","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#212121","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#EEFFFF","extensionButton.prominentHoverBackground":"#C3E88D","focusBorder":"#FFFFFF00","foreground":"#EEFFFF","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#67676790","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#2B2B2B","input.border":"#FFFFFF10","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","inputOption.activeBackground":"#EEFFFF30","inputOption.activeBorder":"#EEFFFF30","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#212121","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#212121","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#212121","notifications.foreground":"#EEFFFF","panel.background":"#212121","panel.border":"#21212160","panel.dropBackground":"#EEFFFF","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#EEFFFF","peekView.border":"#00000030","peekViewEditor.background":"#2B2B2B","peekViewEditor.matchHighlightBackground":"#61616150","peekViewEditorGutter.background":"#2B2B2B","peekViewResult.background":"#2B2B2B","peekViewResult.matchHighlightBackground":"#61616150","peekViewResult.selectionBackground":"#67676770","peekViewTitle.background":"#2B2B2B","peekViewTitleDescription.foreground":"#EEFFFF60","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#212121","quickInput.foreground":"#676767","quickInput.list.focusBackground":"#EEFFFF20","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","selection.background":"#00000080","settings.checkboxBackground":"#212121","settings.checkboxForeground":"#EEFFFF","settings.dropdownBackground":"#212121","settings.dropdownForeground":"#EEFFFF","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#212121","settings.numberInputForeground":"#EEFFFF","settings.textInputBackground":"#212121","settings.textInputForeground":"#EEFFFF","sideBar.background":"#212121","sideBar.border":"#21212160","sideBar.foreground":"#676767","sideBarSectionHeader.background":"#212121","sideBarSectionHeader.border":"#21212160","sideBarTitle.foreground":"#EEFFFF","statusBar.background":"#212121","statusBar.border":"#21212160","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#616161","statusBar.noFolderBackground":"#212121","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#54545420","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#212121","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#676767","tab.border":"#212121","tab.inactiveBackground":"#212121","tab.inactiveForeground":"#676767","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#545454","tab.unfocusedActiveForeground":"#EEFFFF","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#545454","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#EEFFFF","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#212121","titleBar.activeForeground":"#EEFFFF","titleBar.border":"#21212160","titleBar.inactiveBackground":"#212121","titleBar.inactiveForeground":"#676767","tree.indentGuidesStroke":"#424242","widget.shadow":"#00000030"},"displayName":"Material Theme Darker","name":"material-theme-darker","semanticHighlighting":true,"tokenColors":[{"settings":{"background":"#212121","foreground":"#EEFFFF"}},{"scope":"string","settings":{"foreground":"#C3E88D"}},{"scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"scope":"support.module, support.node","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#545454"}},{"scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"fontStyle":"italic","foreground":"#545454"}},{"scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#f07178"}},{"scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"fontStyle":"italic bold","foreground":"#f07178"}},{"scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.preprocessor","settings":{"foreground":"#545454"}},{"scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"scope":"meta.block","settings":{"foreground":"#f07178"}},{"scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"scope":"constant.keyword","settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"settings":{"background":"#212121","foreground":"#EEFFFF"}},{"scope":["constant.other.placeholder"],"settings":{"foreground":"#f07178"}},{"scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["keyword.control"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"scope":["variable.parameter.function.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/material-theme-lighter-BrGzFd-D.js b/docs/assets/material-theme-lighter-BrGzFd-D.js new file mode 100644 index 0000000..8051d2a --- /dev/null +++ b/docs/assets/material-theme-lighter-BrGzFd-D.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#FAFAFA","activityBar.border":"#FAFAFA60","activityBar.dropBackground":"#E5393580","activityBar.foreground":"#90A4AE","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#CCD7DA30","badge.foreground":"#90A4AE","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#FAFAFA","breadcrumb.focusForeground":"#90A4AE","breadcrumb.foreground":"#758a95","breadcrumbPicker.background":"#FAFAFA","button.background":"#80CBC440","button.foreground":"#ffffff","debugConsole.errorForeground":"#E53935","debugConsole.infoForeground":"#39ADB5","debugConsole.warningForeground":"#E2931D","debugToolBar.background":"#FAFAFA","diffEditor.insertedTextBackground":"#39ADB520","diffEditor.removedTextBackground":"#FF537020","dropdown.background":"#FAFAFA","dropdown.border":"#00000010","editor.background":"#FAFAFA","editor.findMatchBackground":"#00000020","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#90A4AE","editor.findMatchHighlightBackground":"#00000010","editor.findMatchHighlightBorder":"#00000030","editor.findRangeHighlightBackground":"#E2931D30","editor.foreground":"#90A4AE","editor.lineHighlightBackground":"#CCD7DA50","editor.lineHighlightBorder":"#CCD7DA00","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#80CBC440","editor.selectionHighlightBackground":"#27272720","editor.wordHighlightBackground":"#FF537030","editor.wordHighlightStrongBackground":"#91B85930","editorBracketMatch.background":"#FAFAFA","editorBracketMatch.border":"#27272750","editorCursor.foreground":"#272727","editorError.foreground":"#E5393570","editorGroup.border":"#00000020","editorGroup.dropBackground":"#E5393580","editorGroup.focusedEmptyBorder":"#E53935","editorGroupHeader.tabsBackground":"#FAFAFA","editorGutter.addedBackground":"#91B85960","editorGutter.deletedBackground":"#E5393560","editorGutter.modifiedBackground":"#6182B860","editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#00000010","editorIndentGuide.activeBackground":"#B0BEC5","editorIndentGuide.background":"#B0BEC570","editorInfo.foreground":"#6182B870","editorLineNumber.activeForeground":"#758a95","editorLineNumber.foreground":"#CFD8DC","editorLink.activeForeground":"#90A4AE","editorMarkerNavigation.background":"#90A4AE05","editorOverviewRuler.border":"#FAFAFA","editorOverviewRuler.errorForeground":"#E5393540","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#6182B840","editorOverviewRuler.warningForeground":"#E2931D40","editorRuler.foreground":"#B0BEC5","editorSuggestWidget.background":"#FAFAFA","editorSuggestWidget.border":"#00000010","editorSuggestWidget.foreground":"#90A4AE","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#CCD7DA50","editorWarning.foreground":"#E2931D70","editorWhitespace.foreground":"#90A4AE40","editorWidget.background":"#FAFAFA","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#90A4AE","extensionButton.prominentBackground":"#91B85990","extensionButton.prominentForeground":"#90A4AE","extensionButton.prominentHoverBackground":"#91B859","focusBorder":"#FFFFFF00","foreground":"#90A4AE","gitDecoration.conflictingResourceForeground":"#E2931D90","gitDecoration.deletedResourceForeground":"#E5393590","gitDecoration.ignoredResourceForeground":"#758a9590","gitDecoration.modifiedResourceForeground":"#6182B890","gitDecoration.untrackedResourceForeground":"#91B85990","input.background":"#EEEEEE","input.border":"#00000010","input.foreground":"#90A4AE","input.placeholderForeground":"#90A4AE60","inputOption.activeBackground":"#90A4AE30","inputOption.activeBorder":"#90A4AE30","inputValidation.errorBorder":"#E53935","inputValidation.infoBorder":"#6182B8","inputValidation.warningBorder":"#E2931D","list.activeSelectionBackground":"#FAFAFA","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#E5393580","list.focusBackground":"#90A4AE20","list.focusForeground":"#90A4AE","list.highlightForeground":"#80CBC4","list.hoverBackground":"#FAFAFA","list.hoverForeground":"#B1C7D3","list.inactiveSelectionBackground":"#CCD7DA50","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#CCD7DA50","listFilterWidget.noMatchesOutline":"#CCD7DA50","listFilterWidget.outline":"#CCD7DA50","menu.background":"#FAFAFA","menu.foreground":"#90A4AE","menu.selectionBackground":"#CCD7DA50","menu.selectionBorder":"#CCD7DA50","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#90A4AE","menubar.selectionBackground":"#CCD7DA50","menubar.selectionBorder":"#CCD7DA50","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#FAFAFA","notifications.foreground":"#90A4AE","panel.background":"#FAFAFA","panel.border":"#FAFAFA60","panel.dropBackground":"#90A4AE","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#000000","panelTitle.inactiveForeground":"#90A4AE","peekView.border":"#00000020","peekViewEditor.background":"#EEEEEE","peekViewEditor.matchHighlightBackground":"#80CBC440","peekViewEditorGutter.background":"#EEEEEE","peekViewResult.background":"#EEEEEE","peekViewResult.matchHighlightBackground":"#80CBC440","peekViewResult.selectionBackground":"#758a9570","peekViewTitle.background":"#EEEEEE","peekViewTitleDescription.foreground":"#90A4AE60","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#FAFAFA","quickInput.foreground":"#758a95","quickInput.list.focusBackground":"#90A4AE20","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000020","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#90A4AE20","scrollbarSlider.hoverBackground":"#90A4AE10","selection.background":"#CCD7DA80","settings.checkboxBackground":"#FAFAFA","settings.checkboxForeground":"#90A4AE","settings.dropdownBackground":"#FAFAFA","settings.dropdownForeground":"#90A4AE","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#FAFAFA","settings.numberInputForeground":"#90A4AE","settings.textInputBackground":"#FAFAFA","settings.textInputForeground":"#90A4AE","sideBar.background":"#FAFAFA","sideBar.border":"#FAFAFA60","sideBar.foreground":"#758a95","sideBarSectionHeader.background":"#FAFAFA","sideBarSectionHeader.border":"#FAFAFA60","sideBarTitle.foreground":"#90A4AE","statusBar.background":"#FAFAFA","statusBar.border":"#FAFAFA60","statusBar.debuggingBackground":"#9C3EDA","statusBar.debuggingForeground":"#FFFFFF","statusBar.foreground":"#7E939E","statusBar.noFolderBackground":"#FAFAFA","statusBarItem.activeBackground":"#E5393580","statusBarItem.hoverBackground":"#90A4AE20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#FAFAFA","tab.activeBorder":"#80CBC4","tab.activeForeground":"#000000","tab.activeModifiedBorder":"#758a95","tab.border":"#FAFAFA","tab.inactiveBackground":"#FAFAFA","tab.inactiveForeground":"#758a95","tab.inactiveModifiedBorder":"#89221f","tab.unfocusedActiveBorder":"#90A4AE","tab.unfocusedActiveForeground":"#90A4AE","tab.unfocusedActiveModifiedBorder":"#b72d2a","tab.unfocusedInactiveModifiedBorder":"#89221f","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#6182B8","terminal.ansiBrightBlack":"#90A4AE","terminal.ansiBrightBlue":"#6182B8","terminal.ansiBrightCyan":"#39ADB5","terminal.ansiBrightGreen":"#91B859","terminal.ansiBrightMagenta":"#9C3EDA","terminal.ansiBrightRed":"#E53935","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#E2931D","terminal.ansiCyan":"#39ADB5","terminal.ansiGreen":"#91B859","terminal.ansiMagenta":"#9C3EDA","terminal.ansiRed":"#E53935","terminal.ansiWhite":"#FFFFFF","terminal.ansiYellow":"#E2931D","terminalCursor.background":"#000000","terminalCursor.foreground":"#E2931D","textLink.activeForeground":"#90A4AE","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#FAFAFA","titleBar.activeForeground":"#90A4AE","titleBar.border":"#FAFAFA60","titleBar.inactiveBackground":"#FAFAFA","titleBar.inactiveForeground":"#758a95","tree.indentGuidesStroke":"#B0BEC5","widget.shadow":"#00000020"},"displayName":"Material Theme Lighter","name":"material-theme-lighter","semanticHighlighting":true,"tokenColors":[{"settings":{"background":"#FAFAFA","foreground":"#90A4AE"}},{"scope":"string","settings":{"foreground":"#91B859"}},{"scope":"punctuation, constant.other.symbol","settings":{"foreground":"#39ADB5"}},{"scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#90A4AE"}},{"scope":"constant.language.boolean","settings":{"foreground":"#FF5370"}},{"scope":"constant.numeric","settings":{"foreground":"#F76D47"}},{"scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#90A4AE"}},{"scope":"keyword.other","settings":{"foreground":"#F76D47"}},{"scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#39ADB5"}},{"scope":"entity.name.function, support.function","settings":{"foreground":"#6182B8"}},{"scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#9C3EDA"}},{"scope":"support.module, support.node","settings":{"fontStyle":"italic","foreground":"#E53935"}},{"scope":"support.type, constant.other.key","settings":{"foreground":"#E2931D"}},{"scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#E2931D"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#90A4AE"}},{"scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"fontStyle":"italic","foreground":"#90A4AE"}},{"scope":"punctuation","settings":{"foreground":"#39ADB5"}},{"scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#E2931D"}},{"scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#E53935"}},{"scope":"meta.definition.method entity.name.function","settings":{"foreground":"#E53935"}},{"scope":"meta.function entity.name.function","settings":{"foreground":"#6182B8"}},{"scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#39ADB5"}},{"scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#90A4AE"}},{"scope":"entity.name.tag.yaml","settings":{"foreground":"#E53935"}},{"scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#E53935"}},{"scope":"constant.language.json","settings":{"foreground":"#39ADB5"}},{"scope":"entity.other.attribute-name.class","settings":{"foreground":"#E2931D"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#F76D47"}},{"scope":"source.css entity.name.tag","settings":{"foreground":"#E2931D"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#8796B0"}},{"scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#39ADB5"}},{"scope":"entity.name.tag","settings":{"foreground":"#E53935"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9C3EDA"}},{"scope":"punctuation.definition.entity.html","settings":{"foreground":"#90A4AE"}},{"scope":"markup.heading","settings":{"foreground":"#39ADB5"}},{"scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#E53935"}},{"scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#39ADB5"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#E53935"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#E53935"}},{"scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"fontStyle":"italic bold","foreground":"#E53935"}},{"scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#91B859"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#91B859"}},{"scope":"keyword.other.definition.ini","settings":{"foreground":"#E53935"}},{"scope":"entity.name.section.group-title.ini","settings":{"foreground":"#39ADB5"}},{"scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#E2931D"}},{"scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#E53935"}},{"scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#6182B8"}},{"scope":"source.cs storage.type","settings":{"foreground":"#E2931D"}},{"scope":"source.cs meta.method.return-type","settings":{"foreground":"#E2931D"}},{"scope":"source.cs meta.preprocessor","settings":{"foreground":"#90A4AE"}},{"scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#90A4AE"}},{"scope":"meta.jsx.children, SXNested","settings":{"foreground":"#90A4AE"}},{"scope":"support.class.component","settings":{"foreground":"#E2931D"}},{"scope":"source.cpp meta.block variable.other","settings":{"foreground":"#90A4AE"}},{"scope":"source.python meta.member.access.python","settings":{"foreground":"#E53935"}},{"scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#6182B8"}},{"scope":"meta.block","settings":{"foreground":"#E53935"}},{"scope":"entity.name.function.call","settings":{"foreground":"#6182B8"}},{"scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#90A4AE"}},{"scope":"constant.keyword","settings":{"fontStyle":"italic","foreground":"#39ADB5"}},{"scope":"entity.name.function","settings":{"foreground":"#6182B8"}},{"settings":{"background":"#FAFAFA","foreground":"#90A4AE"}},{"scope":["constant.other.placeholder"],"settings":{"foreground":"#E53935"}},{"scope":["markup.deleted"],"settings":{"foreground":"#E53935"}},{"scope":["markup.inserted"],"settings":{"foreground":"#91B859"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["keyword.control"],"settings":{"fontStyle":"italic","foreground":"#39ADB5"}},{"scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"scope":["variable.parameter.function.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#E53935"}},{"scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F76D47"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#39ADB5"}},{"scope":["markup.fenced_code.block"],"settings":{"foreground":"#90A4AE90"}},{"scope":["punctuation.definition.quote"],"settings":{"foreground":"#FF5370"}},{"scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#9C3EDA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#E2931D"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F76D47"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#E53935"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#6182B8"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FF5370"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#9C3EDA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#91B859"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/material-theme-ocean-C12SSV5E.js b/docs/assets/material-theme-ocean-C12SSV5E.js new file mode 100644 index 0000000..5d11961 --- /dev/null +++ b/docs/assets/material-theme-ocean-C12SSV5E.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#0F111A","activityBar.border":"#0F111A60","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#babed8","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#464B5D","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#0F111A","breadcrumb.focusForeground":"#babed8","breadcrumb.foreground":"#525975","breadcrumbPicker.background":"#0F111A","button.background":"#717CB450","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#0F111A","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#0F111A","dropdown.border":"#FFFFFF10","editor.background":"#0F111A","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#babed8","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#babed8","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#717CB450","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#0F111A","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#0F111A","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#0F111A","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#3B3F51","editorIndentGuide.background":"#3B3F5170","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#525975","editorLineNumber.foreground":"#3B3F5180","editorLink.activeForeground":"#babed8","editorMarkerNavigation.background":"#babed805","editorOverviewRuler.border":"#0F111A","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#3B3F51","editorSuggestWidget.background":"#0F111A","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#babed8","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#babed840","editorWidget.background":"#0F111A","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#babed8","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#babed8","extensionButton.prominentHoverBackground":"#C3E88D","focusBorder":"#FFFFFF00","foreground":"#babed8","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#52597590","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#1A1C25","input.border":"#FFFFFF10","input.foreground":"#babed8","input.placeholderForeground":"#babed860","inputOption.activeBackground":"#babed830","inputOption.activeBorder":"#babed830","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#0F111A","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#babed820","list.focusForeground":"#babed8","list.highlightForeground":"#80CBC4","list.hoverBackground":"#0F111A","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#0F111A","menu.foreground":"#babed8","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#babed8","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#0F111A","notifications.foreground":"#babed8","panel.background":"#0F111A","panel.border":"#0F111A60","panel.dropBackground":"#babed8","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#babed8","peekView.border":"#00000030","peekViewEditor.background":"#1A1C25","peekViewEditor.matchHighlightBackground":"#717CB450","peekViewEditorGutter.background":"#1A1C25","peekViewResult.background":"#1A1C25","peekViewResult.matchHighlightBackground":"#717CB450","peekViewResult.selectionBackground":"#52597570","peekViewTitle.background":"#1A1C25","peekViewTitleDescription.foreground":"#babed860","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#0F111A","quickInput.foreground":"#525975","quickInput.list.focusBackground":"#babed820","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#8F93A220","scrollbarSlider.hoverBackground":"#8F93A210","selection.background":"#00000080","settings.checkboxBackground":"#0F111A","settings.checkboxForeground":"#babed8","settings.dropdownBackground":"#0F111A","settings.dropdownForeground":"#babed8","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#0F111A","settings.numberInputForeground":"#babed8","settings.textInputBackground":"#0F111A","settings.textInputForeground":"#babed8","sideBar.background":"#0F111A","sideBar.border":"#0F111A60","sideBar.foreground":"#525975","sideBarSectionHeader.background":"#0F111A","sideBarSectionHeader.border":"#0F111A60","sideBarTitle.foreground":"#babed8","statusBar.background":"#0F111A","statusBar.border":"#0F111A60","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#4B526D","statusBar.noFolderBackground":"#0F111A","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#464B5D20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#0F111A","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#525975","tab.border":"#0F111A","tab.inactiveBackground":"#0F111A","tab.inactiveForeground":"#525975","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#464B5D","tab.unfocusedActiveForeground":"#babed8","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#464B5D","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#babed8","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#0F111A","titleBar.activeForeground":"#babed8","titleBar.border":"#0F111A60","titleBar.inactiveBackground":"#0F111A","titleBar.inactiveForeground":"#525975","tree.indentGuidesStroke":"#3B3F51","widget.shadow":"#00000030"},"displayName":"Material Theme Ocean","name":"material-theme-ocean","semanticHighlighting":true,"tokenColors":[{"settings":{"background":"#0F111A","foreground":"#babed8"}},{"scope":"string","settings":{"foreground":"#C3E88D"}},{"scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#babed8"}},{"scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#babed8"}},{"scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"scope":"support.module, support.node","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#464B5D"}},{"scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"fontStyle":"italic","foreground":"#464B5D"}},{"scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#babed8"}},{"scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"scope":"punctuation.definition.entity.html","settings":{"foreground":"#babed8"}},{"scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#f07178"}},{"scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"fontStyle":"italic bold","foreground":"#f07178"}},{"scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.preprocessor","settings":{"foreground":"#464B5D"}},{"scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#babed8"}},{"scope":"meta.jsx.children, SXNested","settings":{"foreground":"#babed8"}},{"scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cpp meta.block variable.other","settings":{"foreground":"#babed8"}},{"scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"scope":"meta.block","settings":{"foreground":"#f07178"}},{"scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#babed8"}},{"scope":"constant.keyword","settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"settings":{"background":"#0F111A","foreground":"#babed8"}},{"scope":["constant.other.placeholder"],"settings":{"foreground":"#f07178"}},{"scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["keyword.control"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"scope":["variable.parameter.function.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["markup.fenced_code.block"],"settings":{"foreground":"#babed890"}},{"scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/material-theme-palenight-Csg_YoNS.js b/docs/assets/material-theme-palenight-Csg_YoNS.js new file mode 100644 index 0000000..0c23a74 --- /dev/null +++ b/docs/assets/material-theme-palenight-Csg_YoNS.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#292D3E","activityBar.border":"#292D3E60","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#babed8","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#676E95","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#292D3E","breadcrumb.focusForeground":"#babed8","breadcrumb.foreground":"#676E95","breadcrumbPicker.background":"#292D3E","button.background":"#717CB450","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#292D3E","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#292D3E","dropdown.border":"#FFFFFF10","editor.background":"#292D3E","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#babed8","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#babed8","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#717CB450","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#292D3E","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#292D3E","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#292D3E","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#4E5579","editorIndentGuide.background":"#4E557970","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#676E95","editorLineNumber.foreground":"#3A3F58","editorLink.activeForeground":"#babed8","editorMarkerNavigation.background":"#babed805","editorOverviewRuler.border":"#292D3E","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#4E5579","editorSuggestWidget.background":"#292D3E","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#babed8","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#babed840","editorWidget.background":"#292D3E","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#babed8","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#babed8","extensionButton.prominentHoverBackground":"#C3E88D","focusBorder":"#FFFFFF00","foreground":"#babed8","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#676E9590","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#333747","input.border":"#FFFFFF10","input.foreground":"#babed8","input.placeholderForeground":"#babed860","inputOption.activeBackground":"#babed830","inputOption.activeBorder":"#babed830","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#292D3E","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#babed820","list.focusForeground":"#babed8","list.highlightForeground":"#80CBC4","list.hoverBackground":"#292D3E","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#292D3E","menu.foreground":"#babed8","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#babed8","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#292D3E","notifications.foreground":"#babed8","panel.background":"#292D3E","panel.border":"#292D3E60","panel.dropBackground":"#babed8","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#babed8","peekView.border":"#00000030","peekViewEditor.background":"#333747","peekViewEditor.matchHighlightBackground":"#717CB450","peekViewEditorGutter.background":"#333747","peekViewResult.background":"#333747","peekViewResult.matchHighlightBackground":"#717CB450","peekViewResult.selectionBackground":"#676E9570","peekViewTitle.background":"#333747","peekViewTitleDescription.foreground":"#babed860","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#292D3E","quickInput.foreground":"#676E95","quickInput.list.focusBackground":"#babed820","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#A6ACCD20","scrollbarSlider.hoverBackground":"#A6ACCD10","selection.background":"#00000080","settings.checkboxBackground":"#292D3E","settings.checkboxForeground":"#babed8","settings.dropdownBackground":"#292D3E","settings.dropdownForeground":"#babed8","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#292D3E","settings.numberInputForeground":"#babed8","settings.textInputBackground":"#292D3E","settings.textInputForeground":"#babed8","sideBar.background":"#292D3E","sideBar.border":"#292D3E60","sideBar.foreground":"#676E95","sideBarSectionHeader.background":"#292D3E","sideBarSectionHeader.border":"#292D3E60","sideBarTitle.foreground":"#babed8","statusBar.background":"#292D3E","statusBar.border":"#292D3E60","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#676E95","statusBar.noFolderBackground":"#292D3E","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#676E9520","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#292D3E","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#676E95","tab.border":"#292D3E","tab.inactiveBackground":"#292D3E","tab.inactiveForeground":"#676E95","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#676E95","tab.unfocusedActiveForeground":"#babed8","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#676E95","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#babed8","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#292D3E","titleBar.activeForeground":"#babed8","titleBar.border":"#292D3E60","titleBar.inactiveBackground":"#292D3E","titleBar.inactiveForeground":"#676E95","tree.indentGuidesStroke":"#4E5579","widget.shadow":"#00000030"},"displayName":"Material Theme Palenight","name":"material-theme-palenight","semanticHighlighting":true,"tokenColors":[{"settings":{"background":"#292D3E","foreground":"#babed8"}},{"scope":"string","settings":{"foreground":"#C3E88D"}},{"scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#babed8"}},{"scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#babed8"}},{"scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"scope":"support.module, support.node","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#676E95"}},{"scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"fontStyle":"italic","foreground":"#676E95"}},{"scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#babed8"}},{"scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"scope":"punctuation.definition.entity.html","settings":{"foreground":"#babed8"}},{"scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#f07178"}},{"scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"fontStyle":"italic bold","foreground":"#f07178"}},{"scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cs meta.preprocessor","settings":{"foreground":"#676E95"}},{"scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#babed8"}},{"scope":"meta.jsx.children, SXNested","settings":{"foreground":"#babed8"}},{"scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"scope":"source.cpp meta.block variable.other","settings":{"foreground":"#babed8"}},{"scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"scope":"meta.block","settings":{"foreground":"#f07178"}},{"scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#babed8"}},{"scope":"constant.keyword","settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"settings":{"background":"#292D3E","foreground":"#babed8"}},{"scope":["constant.other.placeholder"],"settings":{"foreground":"#f07178"}},{"scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["keyword.control"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"scope":["variable.parameter.function.language.special.self.python"],"settings":{"fontStyle":"italic","foreground":"#f07178"}},{"scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"scope":["markup.fenced_code.block"],"settings":{"foreground":"#babed890"}},{"scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/math-B-ZqhQTL.js b/docs/assets/math-B-ZqhQTL.js new file mode 100644 index 0000000..f097deb --- /dev/null +++ b/docs/assets/math-B-ZqhQTL.js @@ -0,0 +1 @@ +const n=Math.abs,h=Math.atan2,M=Math.cos,o=Math.max,r=Math.min,c=Math.sin,i=Math.sqrt,u=1e-12,s=Math.PI,t=s/2,f=2*s;function d(a){return a>1?0:a<-1?s:Math.acos(a)}function l(a){return a>=1?t:a<=-1?-t:Math.asin(a)}export{M as a,o as c,c as d,i as f,h as i,r as l,d as n,u as o,f as p,l as r,t as s,n as t,s as u}; diff --git a/docs/assets/mathematica-BElcKLBW.js b/docs/assets/mathematica-BElcKLBW.js new file mode 100644 index 0000000..c55d6cd --- /dev/null +++ b/docs/assets/mathematica-BElcKLBW.js @@ -0,0 +1 @@ +import{t as a}from"./mathematica-BbPQ8-Rw.js";export{a as mathematica}; diff --git a/docs/assets/mathematica-BbPQ8-Rw.js b/docs/assets/mathematica-BbPQ8-Rw.js new file mode 100644 index 0000000..36a989b --- /dev/null +++ b/docs/assets/mathematica-BbPQ8-Rw.js @@ -0,0 +1 @@ +var o="[a-zA-Z\\$][a-zA-Z0-9\\$]*",A="(?:\\d+)",z="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",Z="(?:\\.\\w+|\\w+\\.\\w*|\\w+)",r="(?:`(?:`?"+z+")?)",$=RegExp("(?:"+A+"(?:\\^\\^"+Z+r+"?(?:\\*\\^[+-]?\\d+)?))"),l=RegExp("(?:"+z+r+"?(?:\\*\\^[+-]?\\d+)?)"),i=RegExp("(?:`?)(?:"+o+")(?:`(?:"+o+"))*(?:`?)");function m(a,t){var e=a.next();return e==='"'?(t.tokenize=u,t.tokenize(a,t)):e==="("&&a.eat("*")?(t.commentLevel++,t.tokenize=h,t.tokenize(a,t)):(a.backUp(1),a.match($,!0,!1)||a.match(l,!0,!1)?"number":a.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":a.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":a.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string.special":a.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||a.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||a.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||a.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variableName.special":a.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"character":a.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":a.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variableName.constant":a.match(i,!0,!1)?"keyword":a.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(a.next(),"error"))}function u(a,t){for(var e,n=!1,c=!1;(e=a.next())!=null;){if(e==='"'&&!c){n=!0;break}c=!c&&e==="\\"}return n&&!c&&(t.tokenize=m),"string"}function h(a,t){for(var e,n;t.commentLevel>0&&(n=a.next())!=null;)e==="("&&n==="*"&&t.commentLevel++,e==="*"&&n===")"&&t.commentLevel--,e=n;return t.commentLevel<=0&&(t.tokenize=m),"comment"}const k={name:"mathematica",startState:function(){return{tokenize:m,commentLevel:0}},token:function(a,t){return a.eatSpace()?null:t.tokenize(a,t)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}};export{k as t}; diff --git a/docs/assets/matlab-CIpdAccA.js b/docs/assets/matlab-CIpdAccA.js new file mode 100644 index 0000000..a4ba830 --- /dev/null +++ b/docs/assets/matlab-CIpdAccA.js @@ -0,0 +1 @@ +var a=[Object.freeze(JSON.parse(`{"displayName":"MATLAB","fileTypes":["m"],"name":"matlab","patterns":[{"include":"#all_before_command_dual"},{"include":"#command_dual"},{"include":"#all_after_command_dual"}],"repository":{"all_after_command_dual":{"patterns":[{"include":"#string"},{"include":"#line_continuation"},{"include":"#comments"},{"include":"#conjugate_transpose"},{"include":"#transpose"},{"include":"#constants"},{"include":"#variables"},{"include":"#numbers"},{"include":"#operators"}]},"all_before_command_dual":{"patterns":[{"include":"#classdef"},{"include":"#function"},{"include":"#blocks"},{"include":"#control_statements"},{"include":"#global_persistent"},{"include":"#parens"},{"include":"#square_brackets"},{"include":"#indexing_curly_brackets"},{"include":"#curly_brackets"}]},"blocks":{"patterns":[{"begin":"\\\\s*(?:^|[,;\\\\s])(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.for.matlab"}},"name":"meta.for.matlab","patterns":[{"include":"$self"}]},{"begin":"\\\\s*(?:^|[,;\\\\s])(if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.if.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.if.matlab"},"2":{"patterns":[{"include":"$self"}]}},"name":"meta.if.matlab","patterns":[{"captures":{"2":{"name":"keyword.control.elseif.matlab"},"3":{"patterns":[{"include":"$self"}]}},"end":"^","match":"(\\\\s*)(?:^|[,;\\\\s])(elseif)\\\\b(.*)$\\\\n?","name":"meta.elseif.matlab"},{"captures":{"2":{"name":"keyword.control.else.matlab"},"3":{"patterns":[{"include":"$self"}]}},"end":"^","match":"(\\\\s*)(?:^|[,;\\\\s])(else)\\\\b(.*)?$\\\\n?","name":"meta.else.matlab"},{"include":"$self"}]},{"begin":"\\\\s*(?:^|[,;\\\\s])(parfor)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.for.matlab"}},"name":"meta.parfor.matlab","patterns":[{"begin":"\\\\G(?!$)","end":"$\\\\n?","name":"meta.parfor-quantity.matlab","patterns":[{"include":"$self"}]},{"include":"$self"}]},{"begin":"\\\\s*(?:^|[,;\\\\s])(spmd)\\\\b","beginCaptures":{"1":{"name":"keyword.control.spmd.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.spmd.matlab"}},"name":"meta.spmd.matlab","patterns":[{"begin":"\\\\G(?!$)","end":"$\\\\n?","name":"meta.spmd-statement.matlab","patterns":[{"include":"$self"}]},{"include":"$self"}]},{"begin":"\\\\s*(?:^|[,;\\\\s])(switch)\\\\b","beginCaptures":{"1":{"name":"keyword.control.switch.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.switch.matlab"}},"name":"meta.switch.matlab","patterns":[{"captures":{"2":{"name":"keyword.control.case.matlab"},"3":{"patterns":[{"include":"$self"}]}},"end":"^","match":"(\\\\s*)(?:^|[,;\\\\s])(case)\\\\b(.*)$\\\\n?","name":"meta.case.matlab"},{"captures":{"2":{"name":"keyword.control.otherwise.matlab"},"3":{"patterns":[{"include":"$self"}]}},"end":"^","match":"(\\\\s*)(?:^|[,;\\\\s])(otherwise)\\\\b(.*)?$\\\\n?","name":"meta.otherwise.matlab"},{"include":"$self"}]},{"begin":"\\\\s*(?:^|[,;\\\\s])(try)\\\\b","beginCaptures":{"1":{"name":"keyword.control.try.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.try.matlab"}},"name":"meta.try.matlab","patterns":[{"captures":{"2":{"name":"keyword.control.catch.matlab"},"3":{"patterns":[{"include":"$self"}]}},"end":"^","match":"(\\\\s*)(?:^|[,;\\\\s])(catch)\\\\b(.*)?$\\\\n?","name":"meta.catch.matlab"},{"include":"$self"}]},{"begin":"\\\\s*(?:^|[,;\\\\s])(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.while.matlab"}},"name":"meta.while.matlab","patterns":[{"include":"$self"}]}]},"braced_validator_list":{"begin":"\\\\s*(\\\\{)\\\\s*","beginCaptures":{"1":{"name":"storage.type.matlab"}},"end":"(})","endCaptures":{"1":{"name":"storage.type.matlab"}},"patterns":[{"include":"#braced_validator_list"},{"include":"#validator_strings"},{"include":"#line_continuation"},{"captures":{"1":{"name":"storage.type.matlab"}},"match":"([^\\"'.{}]+)"},{"match":"\\\\.","name":"storage.type.matlab"}]},"classdef":{"patterns":[{"begin":"^(\\\\s*)(classdef)\\\\b\\\\s*(.*)","beginCaptures":{"2":{"name":"storage.type.class.matlab"},"3":{"patterns":[{"captures":{"1":{"patterns":[{"match":"[A-Za-z][0-9A-Z_a-z]*","name":"variable.parameter.class.matlab"},{"begin":"=\\\\s*","end":",|(?=\\\\))","patterns":[{"match":"true|false","name":"constant.language.boolean.matlab"},{"include":"#string"}]}]},"2":{"name":"meta.class-declaration.matlab"},"3":{"name":"entity.name.section.class.matlab"},"4":{"name":"keyword.operator.other.matlab"},"5":{"patterns":[{"match":"[A-Za-z][0-9A-Z_a-z]*(\\\\.[A-Za-z][0-9A-Z_a-z]*)*","name":"entity.other.inherited-class.matlab"},{"match":"&","name":"keyword.operator.other.matlab"}]},"6":{"patterns":[{"include":"$self"}]}},"match":"(\\\\([^)]*\\\\))?\\\\s*(([A-Za-z][0-9A-Z_a-z]*)(?:\\\\s*(<)\\\\s*([^%]*))?)\\\\s*($|(?=(%|...)).*)"}]}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.class.matlab"}},"name":"meta.class.matlab","patterns":[{"begin":"^(\\\\s*)(properties)\\\\b([^%]*)\\\\s*(\\\\([^)]*\\\\))?\\\\s*($|(?=%))","beginCaptures":{"2":{"name":"keyword.control.properties.matlab"},"3":{"patterns":[{"match":"[A-Za-z][0-9A-Z_a-z]*","name":"variable.parameter.properties.matlab"},{"begin":"=\\\\s*","end":",|(?=\\\\))","patterns":[{"match":"true|false","name":"constant.language.boolean.matlab"},{"match":"p(?:ublic|rotected|rivate)","name":"constant.language.access.matlab"}]}]}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.properties.matlab"}},"name":"meta.properties.matlab","patterns":[{"include":"#validators"},{"include":"$self"}]},{"begin":"^(\\\\s*)(methods)\\\\b([^%]*)\\\\s*(\\\\([^)]*\\\\))?\\\\s*($|(?=%))","beginCaptures":{"2":{"name":"keyword.control.methods.matlab"},"3":{"patterns":[{"match":"[A-Za-z][0-9A-Z_a-z]*","name":"variable.parameter.methods.matlab"},{"begin":"=\\\\s*","end":",|(?=\\\\))","patterns":[{"match":"true|false","name":"constant.language.boolean.matlab"},{"match":"p(?:ublic|rotected|rivate)","name":"constant.language.access.matlab"}]}]}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.methods.matlab"}},"name":"meta.methods.matlab","patterns":[{"include":"$self"}]},{"begin":"^(\\\\s*)(events)\\\\b([^%]*)\\\\s*(\\\\([^)]*\\\\))?\\\\s*($|(?=%))","beginCaptures":{"2":{"name":"keyword.control.events.matlab"},"3":{"patterns":[{"match":"[A-Za-z][0-9A-Z_a-z]*","name":"variable.parameter.events.matlab"},{"begin":"=\\\\s*","end":",|(?=\\\\))","patterns":[{"match":"true|false","name":"constant.language.boolean.matlab"},{"match":"p(?:ublic|rotected|rivate)","name":"constant.language.access.matlab"}]}]}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.events.matlab"}},"name":"meta.events.matlab","patterns":[{"include":"$self"}]},{"begin":"^(\\\\s*)(enumeration)\\\\b([^%]*)\\\\s*($|(?=%))","beginCaptures":{"2":{"name":"keyword.control.enumeration.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.enumeration.matlab"}},"name":"meta.enumeration.matlab","patterns":[{"include":"$self"}]},{"include":"$self"}]}]},"command_dual":{"captures":{"1":{"name":"string.interpolated.matlab"},"2":{"name":"variable.other.command.matlab"},"28":{"name":"comment.line.percentage.matlab"}},"match":"^\\\\s*(([A-HJ-MO-Zbcdfghklmoq-z]\\\\w*|an??|a([0-9A-Z_a-mo-z]\\\\w*|n[0-9A-Z_a-rt-z]\\\\w*|ns\\\\w+)|ep??|e([0-9A-Z_a-oq-z]\\\\w*|p[0-9A-Z_a-rt-z]\\\\w*|ps\\\\w+)|in|i([0-9A-Z_a-mo-z]\\\\w*|n[0-9A-Z_a-eg-z]\\\\w*|nf\\\\w+)|In??|I([0-9A-Z_a-mo-z]\\\\w*|n[0-9A-Z_a-eg-z]\\\\w*|nf\\\\w+)|j\\\\w+|Na??|N([0-9A-Z_b-z]\\\\w*|a[0-9A-MO-Z_a-z]\\\\w*|aN\\\\w+)|na??|narg??|nargi|nargou??|n([0-9A-Z_b-z]\\\\w*|a([0-9A-Z_a-mopqs-z]\\\\w*|n\\\\w+|r([0-9A-Z_a-fh-z]\\\\w*|g([0-9A-Z_a-hj-nq-z]\\\\w*|i([0-9A-Z_a-mo-z]\\\\w*|n\\\\w+)|o([0-9A-Z_a-tv-z]\\\\w*|u([A-Za-su-z]\\\\w*|t\\\\w+))))))|p|p[0-9A-Z_a-hj-z]\\\\w*|pi\\\\w+)\\\\s+((([^\\"%-/:->@\\\\\\\\^{|~\\\\s]|(?=')|(?=\\"))|(\\\\.\\\\^|\\\\.\\\\*|\\\\./|\\\\.\\\\\\\\|\\\\.'|\\\\.\\\\(|&&|==|\\\\|\\\\||&(?=[^\\\\&])|\\\\|(?=[^|])|~=|<=|>=|~(?!=)|<(?!=)|>(?!=)|[-*+/:@\\\\\\\\^])(\\\\S|\\\\s*(?=%)|\\\\s+$|\\\\s+([]\\\\&)*,/:->@\\\\\\\\^|}]|(\\\\.(?:[^.\\\\d]|\\\\.[^.]))))|(\\\\.[^'(*/A-Z\\\\\\\\^a-z\\\\s]))([^%]|'[^']*'|\\"[^\\"]*\\")*|(\\\\.(?=\\\\s)|\\\\.[A-Za-z]|(?=\\\\{))([^\\"%'(=]|==|'[^']*'|\\"[^\\"]*\\"|\\\\(|\\\\([^%)]*\\\\)|\\\\[|\\\\[[^]%]*]|\\\\{|\\\\{[^%}]*})*(\\\\.\\\\.\\\\.[^%]*)?((?=%)|$)))(%.*)?$"},"comment_block":{"begin":"^(\\\\s*)%\\\\{[^\\\\n\\\\S]*+\\\\n","beginCaptures":{"1":{"name":"punctuation.definition.comment.matlab"}},"end":"^\\\\s*%}[^\\\\n\\\\S]*+(?:\\\\n|$)","name":"comment.block.percentage.matlab","patterns":[{"include":"#comment_block"},{"match":"^[^\\\\n]*\\\\n"}]},"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=%%\\\\s)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.matlab"}},"end":"(?!\\\\G)","patterns":[{"begin":"%%","beginCaptures":{"0":{"name":"punctuation.definition.comment.matlab"}},"end":"\\\\n","name":"comment.line.double-percentage.matlab","patterns":[{"begin":"\\\\G[^\\\\n\\\\S]*(?![\\\\n\\\\s])","contentName":"meta.cell.matlab","end":"(?=\\\\n)"}]}]},{"include":"#comment_block"},{"begin":"(^[\\\\t ]+)?(?=%)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.matlab"}},"end":"(?!\\\\G)","patterns":[{"begin":"%","beginCaptures":{"0":{"name":"punctuation.definition.comment.matlab"}},"end":"\\\\n","name":"comment.line.percentage.matlab"}]}]},"conjugate_transpose":{"match":"((?<=\\\\S)|(?<=])|(?<=\\\\))|(?<=}))'","name":"keyword.operator.transpose.matlab"},"constants":{"match":"(?<!\\\\.)\\\\b(eps|false|Inf|inf|intmax|intmin|namelengthmax|NaN|nan|on|off|realmax|realmin|true|pi)\\\\b","name":"constant.language.matlab"},"control_statements":{"captures":{"1":{"name":"keyword.control.matlab"}},"match":"\\\\s*(?:^|[,;\\\\s])(break|continue|return)\\\\b","name":"meta.control.matlab"},"curly_brackets":{"begin":"\\\\{","end":"}","patterns":[{"include":"#end_in_parens"},{"include":"#all_before_command_dual"},{"include":"#all_after_command_dual"},{"include":"#end_in_parens"},{"include":"#block_keywords"}]},"end_in_parens":{"match":"\\\\bend\\\\b","name":"keyword.operator.symbols.matlab"},"function":{"patterns":[{"begin":"^(\\\\s*)(function)\\\\s+(?:(?:(\\\\[)([^]]*)(])|([A-Za-z][0-9A-Z_a-z]*))\\\\s*=\\\\s*)?([A-Za-z][0-9A-Z_a-z]*(\\\\.[A-Za-z][0-9A-Z_a-z]*)*)\\\\s*","beginCaptures":{"2":{"name":"storage.type.function.matlab"},"3":{"name":"punctuation.definition.arguments.begin.matlab"},"4":{"patterns":[{"match":"\\\\w+","name":"variable.parameter.output.matlab"}]},"5":{"name":"punctuation.definition.arguments.end.matlab"},"6":{"name":"variable.parameter.output.function.matlab"},"7":{"name":"entity.name.function.matlab"}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b(\\\\s*\\\\n)?","endCaptures":{"1":{"name":"keyword.control.end.function.matlab"}},"name":"meta.function.matlab","patterns":[{"begin":"\\\\G\\\\(","end":"\\\\)","name":"meta.arguments.function.matlab","patterns":[{"include":"#line_continuation"},{"match":"\\\\w+","name":"variable.parameter.input.matlab"}]},{"begin":"^(\\\\s*)(arguments)\\\\b([^%]*)\\\\s*(\\\\([^)]*\\\\))?\\\\s*($|(?=%))","beginCaptures":{"2":{"name":"keyword.control.arguments.matlab"},"3":{"patterns":[{"match":"[A-Za-z][0-9A-Z_a-z]*","name":"variable.parameter.arguments.matlab"}]}},"end":"\\\\s*(?:^|[,;\\\\s])(end)\\\\b","endCaptures":{"1":{"name":"keyword.control.end.arguments.matlab"}},"name":"meta.arguments.matlab","patterns":[{"include":"#validators"},{"include":"$self"}]},{"include":"$self"}]}]},"global_persistent":{"captures":{"1":{"name":"keyword.control.globalpersistent.matlab"}},"match":"^\\\\s*(global|persistent)\\\\b","name":"meta.globalpersistent.matlab"},"indexing_curly_brackets":{"Comment":"Match identifier{idx, idx, } and stop at newline without ... This helps with partially written code like x{idx ","begin":"([A-Za-z][.0-9A-Z_a-z]*\\\\s*)\\\\{","beginCaptures":{"1":{"patterns":[{"include":"$self"}]}},"end":"(}|(?<!\\\\.\\\\.\\\\.).\\\\n)","patterns":[{"include":"#end_in_parens"},{"include":"#all_before_command_dual"},{"include":"#all_after_command_dual"},{"include":"#end_in_parens"},{"include":"#block_keywords"}]},"line_continuation":{"captures":{"1":{"name":"keyword.operator.symbols.matlab"},"2":{"name":"comment.line.continuation.matlab"}},"match":"(\\\\.\\\\.\\\\.)(.*)$","name":"meta.linecontinuation.matlab"},"numbers":{"match":"(?<=[(*-\\\\-/:=\\\\[\\\\\\\\{\\\\s]|^)\\\\d*\\\\.?\\\\d+([Ee][-+]?\\\\d)?([0-9&&[^.]])*([ij])?\\\\b","name":"constant.numeric.matlab"},"operators":{"match":"(?<=\\\\s)(==|~=|>=??|<=??|&&??|[:|]|\\\\|\\\\||[-*+]|\\\\.\\\\*|/|\\\\./|\\\\\\\\|\\\\.\\\\\\\\|\\\\^|\\\\.\\\\^)(?=\\\\s)","name":"keyword.operator.symbols.matlab"},"parens":{"begin":"\\\\(","end":"(\\\\)|(?<!\\\\.\\\\.\\\\.).\\\\n)","patterns":[{"include":"#end_in_parens"},{"include":"#all_before_command_dual"},{"include":"#all_after_command_dual"},{"include":"#block_keywords"}]},"square_brackets":{"begin":"\\\\[","end":"]","patterns":[{"include":"#all_before_command_dual"},{"include":"#all_after_command_dual"},{"include":"#block_keywords"}]},"string":{"patterns":[{"captures":{"1":{"name":"string.interpolated.matlab"},"2":{"name":"punctuation.definition.string.begin.matlab"}},"match":"^\\\\s*((!).*$\\\\n?)"},{"begin":"((?<=([\\\\&(*-/:->\\\\[\\\\\\\\^{|~\\\\s]))|^)'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.matlab"}},"end":"'(?=([\\\\&(-/:->\\\\[-^{-~\\\\s]))","endCaptures":{"0":{"name":"punctuation.definition.string.end.matlab"}},"name":"string.quoted.single.matlab","patterns":[{"match":"''","name":"constant.character.escape.matlab"},{"match":"'(?=.)","name":"invalid.illegal.unescaped-quote.matlab"},{"match":"((%([-+0]?\\\\d{0,3}(\\\\.\\\\d{1,3})?)([EGc-gs]|(([bt])?([Xoux]))))|%%|\\\\\\\\([\\\\\\\\bfnrt]))","name":"constant.character.escape.matlab"}]},{"begin":"((?<=([\\\\&(*-/:->\\\\[\\\\\\\\^{|~\\\\s]))|^)\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.matlab"}},"end":"\\"(?=([\\\\&(-/:->\\\\[-^{-~\\\\s]))","endCaptures":{"0":{"name":"punctuation.definition.string.end.matlab"}},"name":"string.quoted.double.matlab","patterns":[{"match":"\\"\\"","name":"constant.character.escape.matlab"},{"match":"\\"(?=.)","name":"invalid.illegal.unescaped-quote.matlab"}]}]},"transpose":{"match":"\\\\.'","name":"keyword.operator.transpose.matlab"},"validator_strings":{"patterns":[{"patterns":[{"begin":"((?<=([\\\\&(*-/:->\\\\[\\\\\\\\^{|~\\\\s]))|^)'","end":"'(?=([\\\\&(-/:->\\\\[-^{-~\\\\s]))","name":"storage.type.matlab","patterns":[{"match":"''"},{"match":"'(?=.)"},{"match":"([^']+)"}]},{"begin":"((?<=([\\\\&(*-/:->\\\\[\\\\\\\\^{|~\\\\s]))|^)\\"","end":"\\"(?=([\\\\&(-/:->\\\\[-^{-~\\\\s]))","name":"storage.type.matlab","patterns":[{"match":"\\"\\""},{"match":"\\"(?=.)"},{"match":"[^\\"]+"}]}]}]},"validators":{"begin":"\\\\s*;?\\\\s*([A-Za-z][.0-9?A-Z_a-z]*)","end":"([\\\\n%;=].*)","endCaptures":{"1":{"patterns":[{"captures":{"1":{"patterns":[{"include":"$self"}]}},"match":"(%.*)"},{"captures":{"1":{"patterns":[{"include":"$self"}]}},"match":"(=[^;]*)"},{"captures":{"1":{"patterns":[{"include":"#validators"}]}},"match":"([\\\\n;]\\\\s*[A-Za-z].*)"},{"include":"$self"}]}},"patterns":[{"include":"#line_continuation"},{"match":"\\\\s*(\\\\([^)]*\\\\))","name":"storage.type.matlab"},{"match":"([A-Za-z][.0-9A-Z_a-z]*)","name":"storage.type.matlab"},{"include":"#braced_validator_list"}]},"variables":{"match":"(?<!\\\\.)\\\\b(nargin|nargout|varargin|varargout)\\\\b","name":"variable.other.function.matlab"}},"scopeName":"source.matlab"}`))];export{a as default}; diff --git a/docs/assets/mbox-D2_16jOO.js b/docs/assets/mbox-D2_16jOO.js new file mode 100644 index 0000000..622998d --- /dev/null +++ b/docs/assets/mbox-D2_16jOO.js @@ -0,0 +1 @@ +var i=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],o=["Date","Subject","Comments","Keywords","Resent-Date"],d=/^[ \t]/,s=/^From /,c=RegExp("^("+i.join("|")+"): "),m=RegExp("^("+o.join("|")+"): "),u=/^[^:]+:/,l=/^[^ ]+@[^ ]+/,h=/^.*?(?=[^ ]+?@[^ ]+)/,p=/^<.*?>/,R=/^.*?(?=<.*>)/;function H(e){return e==="Subject"?"header":"string"}function f(e,n){if(e.sol()){if(n.inSeparator=!1,n.inHeader&&e.match(d))return null;if(n.inHeader=!1,n.header=null,e.match(s))return n.inHeaders=!0,n.inSeparator=!0,"atom";var r,t=!1;return(r=e.match(m))||(t=!0)&&(r=e.match(c))?(n.inHeaders=!0,n.inHeader=!0,n.emailPermitted=t,n.header=r[1],"atom"):n.inHeaders&&(r=e.match(u))?(n.inHeader=!0,n.emailPermitted=!0,n.header=r[1],"atom"):(n.inHeaders=!1,e.skipToEnd(),null)}if(n.inSeparator)return e.match(l)?"link":(e.match(h)||e.skipToEnd(),"atom");if(n.inHeader){var a=H(n.header);if(n.emailPermitted){if(e.match(p))return a+" link";if(e.match(R))return a}return e.skipToEnd(),a}return e.skipToEnd(),null}const S={name:"mbox",startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:f,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1},languageData:{autocomplete:i.concat(o)}};export{S as t}; diff --git a/docs/assets/mbox-DlwO5A6s.js b/docs/assets/mbox-DlwO5A6s.js new file mode 100644 index 0000000..c48a438 --- /dev/null +++ b/docs/assets/mbox-DlwO5A6s.js @@ -0,0 +1 @@ +import{t as o}from"./mbox-D2_16jOO.js";export{o as mbox}; diff --git a/docs/assets/mdc-CYEL6kBx.js b/docs/assets/mdc-CYEL6kBx.js new file mode 100644 index 0000000..c90e27e --- /dev/null +++ b/docs/assets/mdc-CYEL6kBx.js @@ -0,0 +1 @@ +import{t as e}from"./html-derivative-CWtHbpe8.js";import{t as r}from"./yaml-gd-fI6BI.js";import{t}from"./markdown-DroiuUZL.js";var a=Object.freeze(JSON.parse(`{"displayName":"MDC","injectionSelector":"L:text.html.markdown","name":"mdc","patterns":[{"include":"text.html.markdown#frontMatter"},{"include":"#block"}],"repository":{"attribute":{"patterns":[{"captures":{"2":{"name":"entity.other.attribute-name.html"},"3":{"patterns":[{"include":"#attribute-interior"}]}},"match":"(([^<=>\\\\s]*)(=\\"([^\\"]*)(\\")|'([^']*)(')|=[^\\"'}\\\\s]*)?\\\\s*)"}]},"attribute-interior":{"patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.html"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#entities"}]},{"match":"=","name":"invalid.illegal.unexpected-equals-sign.html"}]}]},"attributes":{"captures":{"1":{"name":"punctuation.definition.tag.start.component"},"3":{"patterns":[{"include":"#attribute"}]},"4":{"name":"punctuation.definition.tag.end.component"}},"match":"((\\\\{)([^{]*)(}))","name":"attributes.mdc"},"block":{"patterns":[{"include":"#inline"},{"include":"#component_block"},{"include":"text.html.markdown#separator"},{"include":"#heading"},{"include":"#blockquote"},{"include":"#lists"},{"include":"text.html.markdown#fenced_code_block"},{"include":"text.html.markdown#link-def"},{"include":"text.html.markdown#html"},{"include":"#paragraph"}]},"blockquote":{"begin":"(^|\\\\G) *(>) ?","captures":{"2":{"name":"punctuation.definition.quote.begin.markdown"}},"name":"markup.quote.markdown","patterns":[{"include":"#block"}],"while":"(^|\\\\G)\\\\s*(>) ?"},"component_block":{"begin":"(^|\\\\G)(\\\\s*)(:{2,})(?i:(\\\\w[-\\\\w\\\\d]+)(\\\\s*|\\\\s*(\\\\{[^{]*}))$)","beginCaptures":{"3":{"name":"punctuation.definition.tag.start.mdc"},"4":{"name":"entity.name.tag.mdc"},"5":{"patterns":[{"include":"#attributes"}]}},"end":"(^|\\\\G)(\\\\2)(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.tag.end.mdc"}},"name":"block.component.mdc","patterns":[{"captures":{"2":{"name":"punctuation.definition.tag.end.mdc"}},"match":"(^|\\\\G)\\\\s*(:{2,})$"},{"begin":"(^|\\\\G)(\\\\s*)(-{3})(\\\\s*)$","end":"(^|\\\\G)(\\\\s*(-{3})(\\\\s*))$","patterns":[{"include":"source.yaml"}]},{"captures":{"2":{"name":"entity.other.attribute-name.html"},"3":{"name":"comment.block.html"}},"match":"^(\\\\s*)(#[-_\\\\w]*)\\\\s*(<!--(.*)-->)?$"},{"include":"#block"}]},"component_inline":{"captures":{"2":{"name":"punctuation.definition.tag.start.component"},"3":{"name":"entity.name.tag.component"},"5":{"patterns":[{"include":"#attributes"}]},"6":{"patterns":[{"include":"#span"}]},"7":{"patterns":[{"include":"#span"}]},"8":{"patterns":[{"include":"#attributes"}]}},"match":"(^|\\\\G|\\\\s+)(:)(?i:(\\\\w[-\\\\w\\\\d]*))((\\\\{[^}]*})(\\\\[[^]]*])?|(\\\\[[^]]*])(\\\\{[^}]*})?)?\\\\s","name":"inline.component.mdc"},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"912":{"name":"punctuation.definition.entity.html"}},"match":"(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","name":"constant.character.entity.named.$2.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[0-9]+(;)","name":"constant.character.entity.numeric.decimal.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[Xx]\\\\h+(;)","name":"constant.character.entity.numeric.hexadecimal.html"},{"match":"&(?=[0-9A-Za-z]+;)","name":"invalid.illegal.ambiguous-ampersand.html"}]},"heading":{"captures":{"1":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"text.html.markdown#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{6})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.6.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"text.html.markdown#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{5})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.5.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"text.html.markdown#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{4})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.4.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"text.html.markdown#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{3})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.3.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"text.html.markdown#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{2})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.2.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"text.html.markdown#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{1})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.1.markdown"}]}},"match":"(?:^|\\\\G) *(#{1,6}\\\\s+(.*?)(\\\\s+#{1,6})?\\\\s*)$","name":"markup.heading.markdown","patterns":[{"include":"text.html.markdown#inline"}]},"heading-setext":{"patterns":[{"match":"^(={3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.1.markdown"},{"match":"^(-{3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.2.markdown"}]},"inline":{"patterns":[{"include":"#component_inline"},{"include":"#span"},{"include":"#attributes"}]},"lists":{"patterns":[{"begin":"(^|\\\\G)( *)([-*+])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.unnumbered.markdown","patterns":[{"include":"#block"},{"include":"text.html.markdown#list_paragraph"}],"while":"((^|\\\\G)( *|\\\\t))|^([\\\\t ]*)$"},{"begin":"(^|\\\\G)( *)([0-9]+\\\\.)([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.numbered.markdown","patterns":[{"include":"#block"},{"include":"text.html.markdown#list_paragraph"}],"while":"((^|\\\\G)( *|\\\\t))|^([\\\\t ]*)$"}]},"paragraph":{"begin":"(^|\\\\G) *(?=\\\\S)","name":"meta.paragraph.markdown","patterns":[{"include":"text.html.markdown#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)((?=\\\\s*[-=]{3,}\\\\s*$)| {4,}(?=\\\\S))"},"span":{"captures":{"1":{"name":"punctuation.definition.tag.start.component"},"2":{"name":"string.other.link.description.title.markdown"},"3":{"name":"punctuation.definition.tag.end.component"},"4":{"patterns":[{"include":"#attributes"}]}},"match":"(\\\\[)([^]]*)(])((\\\\{)([^{]*)(}))?\\\\s","name":"span.component.mdc"}},"scopeName":"text.markdown.mdc.standalone","embeddedLangs":["markdown","yaml","html-derivative"]}`)),n=[...t,...r,...e,a];export{n as default}; diff --git a/docs/assets/mdx-CQ8NEEVL.js b/docs/assets/mdx-CQ8NEEVL.js new file mode 100644 index 0000000..308e83e --- /dev/null +++ b/docs/assets/mdx-CQ8NEEVL.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"MDX","fileTypes":["mdx"],"name":"mdx","patterns":[{"include":"#markdown-frontmatter"},{"include":"#markdown-sections"}],"repository":{"commonmark-attention":{"patterns":[{"match":"(?<=\\\\S)\\\\*{3,}|\\\\*{3,}(?=\\\\S)","name":"string.other.strong.emphasis.asterisk.mdx"},{"match":"(?<=[\\\\p{L}\\\\p{N}])_{3,}(?![\\\\p{L}\\\\p{N}])|(?<=\\\\p{P})_{3,}|(?<![\\\\p{L}\\\\p{N}\\\\p{P}])_{3,}(?!\\\\s)","name":"string.other.strong.emphasis.underscore.mdx"},{"match":"(?<=\\\\S)\\\\*{2}|\\\\*{2}(?=\\\\S)","name":"string.other.strong.asterisk.mdx"},{"match":"(?<=[\\\\p{L}\\\\p{N}])_{2}(?![\\\\p{L}\\\\p{N}])|(?<=\\\\p{P})_{2}|(?<![\\\\p{L}\\\\p{N}\\\\p{P}])_{2}(?!\\\\s)","name":"string.other.strong.underscore.mdx"},{"match":"(?<=\\\\S)\\\\*|\\\\*(?=\\\\S)","name":"string.other.emphasis.asterisk.mdx"},{"match":"(?<=[\\\\p{L}\\\\p{N}])_(?![\\\\p{L}\\\\p{N}])|(?<=\\\\p{P})_|(?<![\\\\p{L}\\\\p{N}\\\\p{P}])_(?!\\\\s)","name":"string.other.emphasis.underscore.mdx"}]},"commonmark-block-quote":{"begin":"(?:^|\\\\G)[\\\\t ]*(>) ?","beginCaptures":{"0":{"name":"markup.quote.mdx"},"1":{"name":"punctuation.definition.quote.begin.mdx"}},"name":"markup.quote.mdx","patterns":[{"include":"#markdown-sections"}],"while":"(>) ?","whileCaptures":{"0":{"name":"markup.quote.mdx"},"1":{"name":"punctuation.definition.quote.begin.mdx"}}},"commonmark-character-escape":{"match":"\\\\\\\\[!-/:-@\\\\[-`{-~]","name":"constant.language.character-escape.mdx"},"commonmark-character-reference":{"patterns":[{"include":"#whatwg-html-data-character-reference-named-terminated"},{"captures":{"1":{"name":"punctuation.definition.character-reference.begin.html"},"2":{"name":"punctuation.definition.character-reference.numeric.html"},"3":{"name":"punctuation.definition.character-reference.numeric.hexadecimal.html"},"4":{"name":"constant.numeric.integer.hexadecimal.html"},"5":{"name":"punctuation.definition.character-reference.end.html"}},"match":"(&)(#)([Xx])(\\\\h{1,6})(;)","name":"constant.language.character-reference.numeric.hexadecimal.html"},{"captures":{"1":{"name":"punctuation.definition.character-reference.begin.html"},"2":{"name":"punctuation.definition.character-reference.numeric.html"},"3":{"name":"constant.numeric.integer.decimal.html"},"4":{"name":"punctuation.definition.character-reference.end.html"}},"match":"(&)(#)([0-9]{1,7})(;)","name":"constant.language.character-reference.numeric.decimal.html"}]},"commonmark-code-fenced":{"patterns":[{"include":"#commonmark-code-fenced-apib"},{"include":"#commonmark-code-fenced-asciidoc"},{"include":"#commonmark-code-fenced-c"},{"include":"#commonmark-code-fenced-clojure"},{"include":"#commonmark-code-fenced-coffee"},{"include":"#commonmark-code-fenced-console"},{"include":"#commonmark-code-fenced-cpp"},{"include":"#commonmark-code-fenced-cs"},{"include":"#commonmark-code-fenced-css"},{"include":"#commonmark-code-fenced-diff"},{"include":"#commonmark-code-fenced-dockerfile"},{"include":"#commonmark-code-fenced-elixir"},{"include":"#commonmark-code-fenced-elm"},{"include":"#commonmark-code-fenced-erlang"},{"include":"#commonmark-code-fenced-gitconfig"},{"include":"#commonmark-code-fenced-go"},{"include":"#commonmark-code-fenced-graphql"},{"include":"#commonmark-code-fenced-haskell"},{"include":"#commonmark-code-fenced-html"},{"include":"#commonmark-code-fenced-ini"},{"include":"#commonmark-code-fenced-java"},{"include":"#commonmark-code-fenced-js"},{"include":"#commonmark-code-fenced-json"},{"include":"#commonmark-code-fenced-julia"},{"include":"#commonmark-code-fenced-kotlin"},{"include":"#commonmark-code-fenced-less"},{"include":"#commonmark-code-fenced-less"},{"include":"#commonmark-code-fenced-lua"},{"include":"#commonmark-code-fenced-makefile"},{"include":"#commonmark-code-fenced-md"},{"include":"#commonmark-code-fenced-mdx"},{"include":"#commonmark-code-fenced-objc"},{"include":"#commonmark-code-fenced-perl"},{"include":"#commonmark-code-fenced-php"},{"include":"#commonmark-code-fenced-php"},{"include":"#commonmark-code-fenced-python"},{"include":"#commonmark-code-fenced-r"},{"include":"#commonmark-code-fenced-raku"},{"include":"#commonmark-code-fenced-ruby"},{"include":"#commonmark-code-fenced-rust"},{"include":"#commonmark-code-fenced-scala"},{"include":"#commonmark-code-fenced-scss"},{"include":"#commonmark-code-fenced-shell"},{"include":"#commonmark-code-fenced-shell-session"},{"include":"#commonmark-code-fenced-sql"},{"include":"#commonmark-code-fenced-svg"},{"include":"#commonmark-code-fenced-swift"},{"include":"#commonmark-code-fenced-toml"},{"include":"#commonmark-code-fenced-ts"},{"include":"#commonmark-code-fenced-tsx"},{"include":"#commonmark-code-fenced-vbnet"},{"include":"#commonmark-code-fenced-xml"},{"include":"#commonmark-code-fenced-yaml"},{"include":"#commonmark-code-fenced-unknown"}]},"commonmark-code-fenced-apib":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:api-blueprint|(?:.*\\\\.)?apib))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.apib.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.apib","patterns":[{"include":"text.html.markdown.source.gfm.apib"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:api-blueprint|(?:.*\\\\.)?apib))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.apib.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.apib","patterns":[{"include":"text.html.markdown.source.gfm.apib"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-asciidoc":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?a(?:|scii)doc))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.asciidoc.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.asciidoc","patterns":[{"include":"text.html.asciidoc"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?a(?:|scii)doc))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.asciidoc.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.asciidoc","patterns":[{"include":"text.html.asciidoc"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-c":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:dtrace|dtrace-script|oncrpc|rpc|rpcgen|unified-parallel-c|x-bitmap|x-pixmap|xdr|(?:.*\\\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.c.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:dtrace|dtrace-script|oncrpc|rpc|rpcgen|unified-parallel-c|x-bitmap|x-pixmap|xdr|(?:.*\\\\.)?(?:c|cats|h|idc|opencl|upc|xbm|xpm|xs)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.c.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-clojure":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:clojure|rouge|(?:.*\\\\.)?(?:boot|cl2|cljc??|cljs|cljs\\\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.clojure.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:clojure|rouge|(?:.*\\\\.)?(?:boot|cl2|cljc??|cljs|cljs\\\\.hl|cljscm|cljx|edn|hic|rg|wisp)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.clojure.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-coffee":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:coffee-script|coffeescript|(?:.*\\\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.coffee.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:coffee-script|coffeescript|(?:.*\\\\.)?(?:_coffee|cjsx|coffee|cson|em|emberscript|iced)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.coffee.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-console":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:py(?:con|thon-console)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.console.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.console","patterns":[{"include":"text.python.console"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:py(?:con|thon-console)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.console.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.console","patterns":[{"include":"text.python.console"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-cpp":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:ags|ags-script|asymptote|c\\\\+\\\\+|edje-data-collection|game-maker-language|swig|(?:.*\\\\.)?(?:asc|ash|asy|c\\\\+\\\\+|cc|cpp??|cppm|cxx|edc|gml|h\\\\+\\\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.cpp.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.cpp","patterns":[{"include":"source.c++"},{"include":"source.cpp"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:ags|ags-script|asymptote|c\\\\+\\\\+|edje-data-collection|game-maker-language|swig|(?:.*\\\\.)?(?:asc|ash|asy|c\\\\+\\\\+|cc|cpp??|cppm|cxx|edc|gml|h\\\\+\\\\+|hh|hpp|hxx|inl|ino|ipp|ixx|metal|re|tcc|tpp|txx)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.cpp.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.cpp","patterns":[{"include":"source.c++"},{"include":"source.cpp"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-cs":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\\\.)?(?:bf|cake|cs|cs\\\\.pp|csx|eq|linq|uno)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.cs.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.cs","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:beef|c#|cakescript|csharp|(?:.*\\\\.)?(?:bf|cake|cs|cs\\\\.pp|csx|eq|linq|uno)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.cs.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.cs","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-css":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?css))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.css.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?css))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.css.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-diff":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:udiff|(?:.*\\\\.)?(?:diff|patch)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.diff.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:udiff|(?:.*\\\\.)?(?:diff|patch)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.diff.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-dockerfile":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:contain|(?:.*\\\\.)?dock)erfile))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.dockerfile.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:contain|(?:.*\\\\.)?dock)erfile))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.dockerfile.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-elixir":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:elixir|(?:.*\\\\.)?exs??))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.elixir.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:elixir|(?:.*\\\\.)?exs??))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.elixir.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-elm":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?elm))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.elm.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.elm","patterns":[{"include":"source.elm"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?elm))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.elm.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.elm","patterns":[{"include":"source.elm"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-erlang":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:erlang|(?:.*\\\\.)?(?:app|app\\\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.erlang.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:erlang|(?:.*\\\\.)?(?:app|app\\\\.src|erl|es|escript|hrl|xrl|yrl)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.erlang.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-gitconfig":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:git-config|gitmodules|(?:.*\\\\.)?gitconfig))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.gitconfig.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.gitconfig","patterns":[{"include":"source.gitconfig"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:git-config|gitmodules|(?:.*\\\\.)?gitconfig))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.gitconfig.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.gitconfig","patterns":[{"include":"source.gitconfig"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-go":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:golang|(?:.*\\\\.)?go))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.go.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:golang|(?:.*\\\\.)?go))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.go.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-graphql":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?g(?:ql|raphqls??)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.graphql.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.graphql","patterns":[{"include":"source.graphql"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?g(?:ql|raphqls??)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.graphql.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.graphql","patterns":[{"include":"source.graphql"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-haskell":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:c2hs|c2hs-haskell|frege|haskell|(?:.*\\\\.)?(?:chs|dhall|hs|hs-boot|hsc)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.haskell.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.haskell","patterns":[{"include":"source.haskell"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:c2hs|c2hs-haskell|frege|haskell|(?:.*\\\\.)?(?:chs|dhall|hs|hs-boot|hsc)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.haskell.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.haskell","patterns":[{"include":"source.haskell"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-html":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:html|(?:.*\\\\.)?(?:hta|htm|html\\\\.hl|kit|mtml|xht|xhtml)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.html.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:html|(?:.*\\\\.)?(?:hta|htm|html\\\\.hl|kit|mtml|xht|xhtml)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.html.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-ini":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:altium|altium-designer|dosini|(?:.*\\\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.ini.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:altium|altium-designer|dosini|(?:.*\\\\.)?(?:cnf|dof|ini|lektorproject|outjob|pcbdoc|prefs|prjpcb|properties|schdoc|url)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.ini.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-java":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:chuck|unrealscript|(?:.*\\\\.)?(?:ck|java??|jsh|uc)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.java.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:chuck|unrealscript|(?:.*\\\\.)?(?:ck|java??|jsh|uc)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.java.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-js":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:cycript|javascript\\\\+erb|json-with-comments|node|qt-script|(?:.*\\\\.)?(?:_js|bones|cjs|code-snippets|code-workspace|cy|es6|jake|javascript|js|js\\\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime-build|sublime-color-scheme|sublime-commands|sublime-completions|sublime-keymap|sublime-macro|sublime-menu|sublime-mousemap|sublime-project|sublime-settings|sublime-theme|sublime-workspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.js.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.js","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:cycript|javascript\\\\+erb|json-with-comments|node|qt-script|(?:.*\\\\.)?(?:_js|bones|cjs|code-snippets|code-workspace|cy|es6|jake|javascript|js|js\\\\.erb|jsb|jscad|jsfl|jslib|jsm|json5|jsonc|jsonld|jspre|jss|jsx|mjs|njs|pac|sjs|ssjs|sublime-build|sublime-color-scheme|sublime-commands|sublime-completions|sublime-keymap|sublime-macro|sublime-menu|sublime-mousemap|sublime-project|sublime-settings|sublime-theme|sublime-workspace|sublime_metrics|sublime_session|xsjs|xsjslib)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.js.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.js","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-json":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:ecere-projects|ipython-notebook|jupyter-notebook|max|max/msp|maxmsp|oasv2-json|oasv3-json|(?:.*\\\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json-tmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|sarif|tfstate|tfstate\\\\.backup|topojson|webapp|webmanifest|yyp??)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.json.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:ecere-projects|ipython-notebook|jupyter-notebook|max|max/msp|maxmsp|oasv2-json|oasv3-json|(?:.*\\\\.)?(?:4dform|4dproject|avsc|epj|geojson|gltf|har|ice|ipynb|json|json-tmlanguage|jsonl|maxhelp|maxpat|maxproj|mcmeta|mxt|pat|sarif|tfstate|tfstate\\\\.backup|topojson|webapp|webmanifest|yyp??)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.json.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-julia":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:julia|(?:.*\\\\.)?jl))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.julia.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:julia|(?:.*\\\\.)?jl))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.julia.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-kotlin":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:gradle-kotlin-dsl|kotlin|(?:.*\\\\.)?(?:gradle\\\\.kts|ktm??|kts)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.kotlin.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.kotlin","patterns":[{"include":"source.kotlin"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:gradle-kotlin-dsl|kotlin|(?:.*\\\\.)?(?:gradle\\\\.kts|ktm??|kts)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.kotlin.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.kotlin","patterns":[{"include":"source.kotlin"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-less":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:less-css|(?:.*\\\\.)?less))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.less.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:less-css|(?:.*\\\\.)?less))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.less.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-lua":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.lua.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?(?:fcgi|lua|nse|p8|pd_lua|rbxs|rockspec|wlua)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.lua.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-makefile":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:bsdmake|mf|(?:.*\\\\.)?m(?:ake??|akefile|k|kfile)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.makefile.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:bsdmake|mf|(?:.*\\\\.)?m(?:ake??|akefile|k|kfile)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.makefile.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-md":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:md|pandoc|rmarkdown|(?:.*\\\\.)?(?:livemd|markdown|mdown|mdwn|mkdn??|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.md.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.md","patterns":[{"include":"text.md"},{"include":"source.gfm"},{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:md|pandoc|rmarkdown|(?:.*\\\\.)?(?:livemd|markdown|mdown|mdwn|mkdn??|mkdown|qmd|rmd|ronn|scd|workbook)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.md.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.md","patterns":[{"include":"text.md"},{"include":"source.gfm"},{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-mdx":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?mdx))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.mdx.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.mdx","patterns":[{"include":"source.mdx"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?mdx))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.mdx.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.mdx","patterns":[{"include":"source.mdx"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-objc":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:obj(?:-?|ective-?)c))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.objc.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:obj(?:-?|ective-?)c))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.objc.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-perl":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:cperl|(?:.*\\\\.)?(?:cgi|perl|ph|plx??|pm|psgi|t)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.perl.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:cperl|(?:.*\\\\.)?(?:cgi|perl|ph|plx??|pm|psgi|t)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.perl.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-php":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:html\\\\+php|inc|php|(?:.*\\\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.php.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.php","patterns":[{"include":"text.html.php"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:html\\\\+php|inc|php|(?:.*\\\\.)?(?:aw|ctp|php3|php4|php5|phps|phpt|phtml)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.php.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.php","patterns":[{"include":"text.html.php"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-python":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:bazel|easybuild|python3??|rusthon|snakemake|starlark|xonsh|(?:.*\\\\.)?(?:bzl|eb|gypi??|lmi|py3??|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.python.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:bazel|easybuild|python3??|rusthon|snakemake|starlark|xonsh|(?:.*\\\\.)?(?:bzl|eb|gypi??|lmi|py3??|pyde|pyi|pyp|pyt|pyw|rpy|sage|sagews|smk|snakefile|spec|tac|wsgi|xpy|xsh)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.python.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-r":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:rscript|splus|(?:.*\\\\.)?r(?:|d|sx)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.r.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:rscript|splus|(?:.*\\\\.)?r(?:|d|sx)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.r.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-raku":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:perl-6|perl6|pod-6|(?:.*\\\\.)?(?:6pl|6pm|nqp|p6l??|p6m|pl6|pm6|pod6??|raku|rakumod)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.raku.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.raku","patterns":[{"include":"source.raku"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:perl-6|perl6|pod-6|(?:.*\\\\.)?(?:6pl|6pm|nqp|p6l??|p6m|pl6|pm6|pod6??|raku|rakumod)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.raku.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.raku","patterns":[{"include":"source.raku"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-ruby":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:jruby|macruby|(?:.*\\\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rbi??|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.ruby.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:jruby|macruby|(?:.*\\\\.)?(?:builder|druby|duby|eye|gemspec|god|jbuilder|mirah|mspec|pluginspec|podspec|prawn|rabl|rake|rbi??|rbuild|rbw|rbx|ru|ruby|thor|watchr)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.ruby.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-rust":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:rust|(?:.*\\\\.)?rs(?:|\\\\.in)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.rust.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:rust|(?:.*\\\\.)?rs(?:|\\\\.in)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.rust.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-scala":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?(?:kojo|sbt|sc|scala)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.scala.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?(?:kojo|sbt|sc|scala)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.scala.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-scss":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?scss))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.scss.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?scss))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.scss.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-shell":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:abuild|alpine-abuild|apkbuild|envrc|gentoo-ebuild|gentoo-eclass|openrc|openrc-runscript|shell|shell-script|(?:.*\\\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\\\.in|tcsh|tmux|tool|zsh|zsh-theme)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.shell.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.shell","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:abuild|alpine-abuild|apkbuild|envrc|gentoo-ebuild|gentoo-eclass|openrc|openrc-runscript|shell|shell-script|(?:.*\\\\.)?(?:bash|bats|command|csh|ebuild|eclass|ksh|sh|sh\\\\.in|tcsh|tmux|tool|zsh|zsh-theme)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.shell.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.shell","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-shell-session":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:bash-session|console|shellsession|(?:.*\\\\.)?sh-session))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.shell-session.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.shell-session","patterns":[{"include":"text.shell-session"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:bash-session|console|shellsession|(?:.*\\\\.)?sh-session))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.shell-session.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.shell-session","patterns":[{"include":"text.shell-session"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-sql":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:plpgsql|sqlpl|(?:.*\\\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|tab|udf|viw)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.sql.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:plpgsql|sqlpl|(?:.*\\\\.)?(?:cql|db2|ddl|mysql|pgsql|prc|sql|tab|udf|viw)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.sql.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-svg":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?svg))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.svg.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.svg","patterns":[{"include":"text.xml.svg"},{"include":"text.xml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?svg))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.svg.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.svg","patterns":[{"include":"text.xml.svg"},{"include":"text.xml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-swift":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?swift))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.swift.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?swift))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.swift.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-toml":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?toml))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.toml.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.toml","patterns":[{"include":"source.toml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?toml))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.toml.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.toml","patterns":[{"include":"source.toml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-ts":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:typescript|(?:.*\\\\.)?(?:c|m?)ts))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.ts.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.ts","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:typescript|(?:.*\\\\.)?(?:c|m?)ts))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.ts.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.ts","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-tsx":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:(?:.*\\\\.)?tsx))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.tsx.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.tsx","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:(?:.*\\\\.)?tsx))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.tsx.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.tsx","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-unknown":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})(?:[\\\\t ]*([^\\\\t\\\\n\\\\r `]+)(?:[\\\\t ]+([^\\\\n\\\\r`]+))?)?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"contentName":"markup.raw.code.fenced.mdx","end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.other.mdx"},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})(?:[\\\\t ]*([^\\\\t\\\\n\\\\r ]+)(?:[\\\\t ]+([^\\\\n\\\\r]+))?)?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"contentName":"markup.raw.code.fenced.mdx","end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.other.mdx"}]},"commonmark-code-fenced-vbnet":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:fb|freebasic|realbasic|vb-\\\\.net|vb\\\\.net|vbnet|vbscript|visual-basic|visual-basic-\\\\.net|(?:.*\\\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.vbnet.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.vbnet","patterns":[{"include":"source.vbnet"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:fb|freebasic|realbasic|vb-\\\\.net|vb\\\\.net|vbnet|vbscript|visual-basic|visual-basic-\\\\.net|(?:.*\\\\.)?(?:bi|rbbas|rbfrm|rbmnu|rbres|rbtbar|rbuistate|vb|vbhtml|vbs)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.vbnet.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.vbnet","patterns":[{"include":"source.vbnet"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-xml":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:collada|eagle|labview|web-ontology-language|xpages|(?:.*\\\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|scxml|sfproj|shproj|srdf|storyboard|sublime-snippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\\\.dist|xmp|xpl|xproc|xproj|xsd|xsp-config|xsp\\\\.metadata|xspec|xul|zcml)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.xml.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:collada|eagle|labview|web-ontology-language|xpages|(?:.*\\\\.)?(?:adml|admx|ant|axaml|axml|brd|builds|ccproj|ccxml|clixml|cproject|cscfg|csdef|csproj|ct|dae|depproj|dita|ditamap|ditaval|dll\\\\.config|dotsettings|filters|fsproj|fxml|glade|gmx|grxml|hzp|iml|ivy|jelly|jsproj|kml|launch|lvclass|lvlib|lvproj|mdpolicy|mjml|mxml|natvis|ndproj|nproj|nuspec|odd|osm|owl|pkgproj|proj|props|ps1xml|psc1|pt|qhelp|rdf|resx|rss|sch|scxml|sfproj|shproj|srdf|storyboard|sublime-snippet|targets|tml|ui|urdf|ux|vbproj|vcxproj|vsixmanifest|vssettings|vstemplate|vxml|wixproj|wsdl|wsf|wxi|wxl|wxs|x3d|xacro|xaml|xib|xlf|xliff|xmi|xml|xml\\\\.dist|xmp|xpl|xproc|xproj|xsd|xsp-config|xsp\\\\.metadata|xspec|xul|zcml)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.xml.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-fenced-yaml":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*(`{3,})[\\\\t ]*((?i:jar-manifest|kaitai-struct|oasv2-yaml|oasv3-yaml|unity3d-asset|yaml|yml|(?:.*\\\\.)?(?:anim|asset|ksy|lkml|lookml|mat|meta|mir|prefab|raml|reek|rviz|sublime-syntax|syntax|unity|yaml-tmlanguage|yaml\\\\.sed|yml\\\\.mysql)))(?:[\\\\t ]+([^\\\\n\\\\r`]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.yaml.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]},{"begin":"(?:^|\\\\G)[\\\\t ]*(~{3,})[\\\\t ]*((?i:jar-manifest|kaitai-struct|oasv2-yaml|oasv3-yaml|unity3d-asset|yaml|yml|(?:.*\\\\.)?(?:anim|asset|ksy|lkml|lookml|mat|meta|mir|prefab|raml|reek|rviz|sublime-syntax|syntax|unity|yaml-tmlanguage|yaml\\\\.sed|yml\\\\.mysql)))(?:[\\\\t ]+([^\\\\n\\\\r]+))?[\\\\t ]*$","beginCaptures":{"1":{"name":"string.other.begin.code.fenced.mdx"},"2":{"name":"entity.name.function.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"patterns":[{"include":"#markdown-string"}]}},"end":"(?:^|\\\\G)[\\\\t ]*(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.code.fenced.mdx"}},"name":"markup.code.yaml.mdx","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?![\\\\t ]*([`~]{3,})[\\\\t ]*$)"}]}]},"commonmark-code-text":{"captures":{"1":{"name":"string.other.begin.code.mdx"},"2":{"name":"markup.raw.code.mdx markup.inline.raw.code.mdx"},"3":{"name":"string.other.end.code.mdx"}},"match":"(?<!`)(`+)(?!`)(.+?)(?<!`)(\\\\1)(?!`)","name":"markup.code.other.mdx"},"commonmark-definition":{"captures":{"1":{"name":"string.other.begin.mdx"},"2":{"name":"entity.name.identifier.mdx","patterns":[{"include":"#markdown-string"}]},"3":{"name":"string.other.end.mdx"},"4":{"name":"punctuation.separator.key-value.mdx"},"5":{"name":"string.other.begin.destination.mdx"},"6":{"name":"string.other.link.destination.mdx","patterns":[{"include":"#markdown-string"}]},"7":{"name":"string.other.end.destination.mdx"},"8":{"name":"string.other.link.destination.mdx","patterns":[{"include":"#markdown-string"}]},"9":{"name":"string.other.begin.mdx"},"10":{"name":"string.quoted.double.mdx","patterns":[{"include":"#markdown-string"}]},"11":{"name":"string.other.end.mdx"},"12":{"name":"string.other.begin.mdx"},"13":{"name":"string.quoted.single.mdx","patterns":[{"include":"#markdown-string"}]},"14":{"name":"string.other.end.mdx"},"15":{"name":"string.other.begin.mdx"},"16":{"name":"string.quoted.paren.mdx","patterns":[{"include":"#markdown-string"}]},"17":{"name":"string.other.end.mdx"}},"match":"(?:^|\\\\G)[\\\\t ]*(\\\\[)((?:[^]\\\\[\\\\\\\\]|\\\\\\\\[]\\\\[\\\\\\\\]?)+?)(])(:)[\\\\t ]*(?:(<)((?:[^\\\\n<>\\\\\\\\]|\\\\\\\\[<>\\\\\\\\]?)*)(>)|(\\\\g<destination_raw>))(?:[\\\\t ]+(?:(\\")((?:[^\\"\\\\\\\\]|\\\\\\\\[\\"\\\\\\\\]?)*)(\\")|(\')((?:[^\'\\\\\\\\]|\\\\\\\\[\'\\\\\\\\]?)*)(\')|(\\\\()((?:[^)\\\\\\\\]|\\\\\\\\[)\\\\\\\\]?)*)(\\\\))))?$(?<destination_raw>(?!<)(?:(?:[^ ()\\\\\\\\\\\\p{Cc}]|\\\\\\\\[()\\\\\\\\]?)|\\\\(\\\\g<destination_raw>*\\\\))+){0}","name":"meta.link.reference.def.mdx"},"commonmark-hard-break-escape":{"match":"\\\\\\\\$","name":"constant.language.character-escape.line-ending.mdx"},"commonmark-hard-break-trailing":{"match":"( ){2,}$","name":"carriage-return constant.language.character-escape.line-ending.mdx"},"commonmark-heading-atx":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.heading.mdx"},"2":{"name":"entity.name.section.mdx","patterns":[{"include":"#markdown-text"}]},"3":{"name":"punctuation.definition.heading.mdx"}},"match":"(?:^|\\\\G)[\\\\t ]*(#{1}(?!#))(?:[\\\\t ]+([^\\\\n\\\\r]+?)(?:[\\\\t ]+(#+?))?)?[\\\\t ]*$","name":"markup.heading.atx.1.mdx"},{"captures":{"1":{"name":"punctuation.definition.heading.mdx"},"2":{"name":"entity.name.section.mdx","patterns":[{"include":"#markdown-text"}]},"3":{"name":"punctuation.definition.heading.mdx"}},"match":"(?:^|\\\\G)[\\\\t ]*(#{2}(?!#))(?:[\\\\t ]+([^\\\\n\\\\r]+?)(?:[\\\\t ]+(#+?))?)?[\\\\t ]*$","name":"markup.heading.atx.2.mdx"},{"captures":{"1":{"name":"punctuation.definition.heading.mdx"},"2":{"name":"entity.name.section.mdx","patterns":[{"include":"#markdown-text"}]},"3":{"name":"punctuation.definition.heading.mdx"}},"match":"(?:^|\\\\G)[\\\\t ]*(#{3}(?!#))(?:[\\\\t ]+([^\\\\n\\\\r]+?)(?:[\\\\t ]+(#+?))?)?[\\\\t ]*$","name":"markup.heading.atx.3.mdx"},{"captures":{"1":{"name":"punctuation.definition.heading.mdx"},"2":{"name":"entity.name.section.mdx","patterns":[{"include":"#markdown-text"}]},"3":{"name":"punctuation.definition.heading.mdx"}},"match":"(?:^|\\\\G)[\\\\t ]*(#{4}(?!#))(?:[\\\\t ]+([^\\\\n\\\\r]+?)(?:[\\\\t ]+(#+?))?)?[\\\\t ]*$","name":"markup.heading.atx.4.mdx"},{"captures":{"1":{"name":"punctuation.definition.heading.mdx"},"2":{"name":"entity.name.section.mdx","patterns":[{"include":"#markdown-text"}]},"3":{"name":"punctuation.definition.heading.mdx"}},"match":"(?:^|\\\\G)[\\\\t ]*(#{5}(?!#))(?:[\\\\t ]+([^\\\\n\\\\r]+?)(?:[\\\\t ]+(#+?))?)?[\\\\t ]*$","name":"markup.heading.atx.5.mdx"},{"captures":{"1":{"name":"punctuation.definition.heading.mdx"},"2":{"name":"entity.name.section.mdx","patterns":[{"include":"#markdown-text"}]},"3":{"name":"punctuation.definition.heading.mdx"}},"match":"(?:^|\\\\G)[\\\\t ]*(#{6}(?!#))(?:[\\\\t ]+([^\\\\n\\\\r]+?)(?:[\\\\t ]+(#+?))?)?[\\\\t ]*$","name":"markup.heading.atx.6.mdx"}]},"commonmark-heading-setext":{"patterns":[{"match":"(?:^|\\\\G)[\\\\t ]*(=+)[\\\\t ]*$","name":"markup.heading.setext.1.mdx"},{"match":"(?:^|\\\\G)[\\\\t ]*(-+)[\\\\t ]*$","name":"markup.heading.setext.2.mdx"}]},"commonmark-label-end":{"patterns":[{"captures":{"1":{"name":"string.other.end.mdx"},"2":{"name":"string.other.begin.mdx"},"3":{"name":"string.other.begin.destination.mdx"},"4":{"name":"string.other.link.destination.mdx","patterns":[{"include":"#markdown-string"}]},"5":{"name":"string.other.end.destination.mdx"},"6":{"name":"string.other.link.destination.mdx","patterns":[{"include":"#markdown-string"}]},"7":{"name":"string.other.begin.mdx"},"8":{"name":"string.quoted.double.mdx","patterns":[{"include":"#markdown-string"}]},"9":{"name":"string.other.end.mdx"},"10":{"name":"string.other.begin.mdx"},"11":{"name":"string.quoted.single.mdx","patterns":[{"include":"#markdown-string"}]},"12":{"name":"string.other.end.mdx"},"13":{"name":"string.other.begin.mdx"},"14":{"name":"string.quoted.paren.mdx","patterns":[{"include":"#markdown-string"}]},"15":{"name":"string.other.end.mdx"},"16":{"name":"string.other.end.mdx"}},"match":"(])(\\\\()[\\\\t ]*(?:(?:(<)((?:[^\\\\n<>\\\\\\\\]|\\\\\\\\[<>\\\\\\\\]?)*)(>)|(\\\\g<destination_raw>))(?:[\\\\t ]+(?:(\\")((?:[^\\"\\\\\\\\]|\\\\\\\\[\\"\\\\\\\\]?)*)(\\")|(\')((?:[^\'\\\\\\\\]|\\\\\\\\[\'\\\\\\\\]?)*)(\')|(\\\\()((?:[^)\\\\\\\\]|\\\\\\\\[)\\\\\\\\]?)*)(\\\\))))?)?[\\\\t ]*(\\\\))(?<destination_raw>(?!<)(?:(?:[^ ()\\\\\\\\\\\\p{Cc}]|\\\\\\\\[()\\\\\\\\]?)|\\\\(\\\\g<destination_raw>*\\\\))+){0}"},{"captures":{"1":{"name":"string.other.end.mdx"},"2":{"name":"string.other.begin.mdx"},"3":{"name":"entity.name.identifier.mdx","patterns":[{"include":"#markdown-string"}]},"4":{"name":"string.other.end.mdx"}},"match":"(])(\\\\[)((?:[^]\\\\[\\\\\\\\]|\\\\\\\\[]\\\\[\\\\\\\\]?)+?)(])"},{"captures":{"1":{"name":"string.other.end.mdx"}},"match":"(])"}]},"commonmark-label-start":{"patterns":[{"match":"!\\\\[(?!\\\\^)","name":"string.other.begin.image.mdx"},{"match":"\\\\[","name":"string.other.begin.link.mdx"}]},"commonmark-list-item":{"patterns":[{"begin":"(?:^|\\\\G)[\\\\t ]*([-*+])(?: {4}(?! )|\\\\t)(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"variable.unordered.list.mdx"},"2":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t) {1}"},{"begin":"(?:^|\\\\G)[\\\\t ]*([-*+]) {3}(?! )(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"variable.unordered.list.mdx"},"2":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t)"},{"begin":"(?:^|\\\\G)[\\\\t ]*([-*+]) {2}(?! )(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"variable.unordered.list.mdx"},"2":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G) {3}"},{"begin":"(?:^|\\\\G)[\\\\t ]*([-*+])(?: {1}|(?=\\\\n))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"variable.unordered.list.mdx"},"2":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G) {2}"},{"begin":"(?:^|\\\\G)[\\\\t ]*([0-9]{9})([).])(?: {4}(?! )|\\\\t(?![\\\\t ]))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t){3} {2}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{9})([).]) {3}(?! )|([0-9]{8})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t){3} {1}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{9})([).]) {2}(?! )|([0-9]{8})([).]) {3}(?! )|([0-9]{7})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t){3}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{9})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9]{8})([).]) {2}(?! )|([0-9]{7})([).]) {3}(?! )|([0-9]{6})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"string.other.number.mdx"},"8":{"name":"variable.ordered.list.mdx"},"9":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t){2} {3}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{8})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9]{7})([).]) {2}(?! )|([0-9]{6})([).]) {3}(?! )|([0-9]{5})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"string.other.number.mdx"},"8":{"name":"variable.ordered.list.mdx"},"9":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t){2} {2}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{7})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9]{6})([).]) {2}(?! )|([0-9]{5})([).]) {3}(?! )|([0-9]{4})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"string.other.number.mdx"},"8":{"name":"variable.ordered.list.mdx"},"9":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t){2} {1}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{6})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9]{5})([).]) {2}(?! )|([0-9]{4})([).]) {3}(?! )|([0-9]{3})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"string.other.number.mdx"},"8":{"name":"variable.ordered.list.mdx"},"9":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t){2}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{5})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9]{4})([).]) {2}(?! )|([0-9]{3})([).]) {3}(?! )|([0-9]{2})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"string.other.number.mdx"},"8":{"name":"variable.ordered.list.mdx"},"9":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t) {3}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{4})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9]{3})([).]) {2}(?! )|([0-9]{2})([).]) {3}(?! )|([0-9]{1})([).]) {4}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"string.other.number.mdx"},"8":{"name":"variable.ordered.list.mdx"},"9":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t) {2}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{3})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9]{2})([).]) {2}(?! )|([0-9]{1})([).]) {3}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"string.other.number.mdx"},"6":{"name":"variable.ordered.list.mdx"},"7":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t) {1}"},{"begin":"(?:^|\\\\G)[\\\\t ]*(?:([0-9]{2})([).])(?: {1}|(?=[\\\\t ]*\\\\n))|([0-9])([).]) {2}(?! ))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"string.other.number.mdx"},"4":{"name":"variable.ordered.list.mdx"},"5":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t)"},{"begin":"(?:^|\\\\G)[\\\\t ]*([0-9])([).])(?: {1}|(?=[\\\\t ]*\\\\n))(\\\\[[\\\\t Xx]](?=[\\\\t\\\\n\\\\r ]+(?:$|[^\\\\t\\\\n\\\\r ])))?","beginCaptures":{"1":{"name":"string.other.number.mdx"},"2":{"name":"variable.ordered.list.mdx"},"3":{"name":"keyword.other.tasklist.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G) {3}"}]},"commonmark-paragraph":{"begin":"(?![\\\\t ]*$)","name":"meta.paragraph.mdx","patterns":[{"include":"#markdown-text"}],"while":"(?:^|\\\\G)(?: {4}|\\\\t)"},"commonmark-thematic-break":{"match":"(?:^|\\\\G)[\\\\t ]*([-*_])[\\\\t ]*(?:\\\\1[\\\\t ]*){2,}$","name":"meta.separator.mdx"},"extension-gfm-autolink-literal":{"patterns":[{"match":"(?<=^|[]\\\\t\\\\n\\\\r (*\\\\[_~])(?=(?i:www)\\\\.[^\\\\n\\\\r])(?:(?:[-\\\\p{L}\\\\p{N}]|[._](?![!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[])))+\\\\g<path>?)?(?<path>(?:(?:[^]\\\\t\\\\n\\\\r !\\"\\\\&-*,.:;<?_~]|&(?![A-Za-z]*;[!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[]))|[!\\"\')*,.:;?_~](?![!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[])))|\\\\(\\\\g<path>*\\\\))+){0}","name":"string.other.link.autolink.literal.www.mdx"},{"match":"(?<=^|[^A-Za-z])(?i:https?://)(?=[\\\\p{L}\\\\p{N}])(?:(?:[-\\\\p{L}\\\\p{N}]|[._](?![!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[])))+\\\\g<path>?)?(?<path>(?:(?:[^]\\\\t\\\\n\\\\r !\\"\\\\&-*,.:;<?_~]|&(?![A-Za-z]*;[!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[]))|[!\\"\')*,.:;?_~](?![!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[])))|\\\\(\\\\g<path>*\\\\))+){0}","name":"string.other.link.autolink.literal.http.mdx"},{"match":"(?<=^|[^/A-Za-z])(?i:mailto:|xmpp:)?[-+.0-9A-Z_a-z]+@(?:(?:[0-9A-Za-z]|[-_](?![!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[])))+\\\\.(?![!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[])))+(?:[A-Za-z]|[-_](?![!\\"\')*,.:;<?_~]*(?:[<\\\\s]|][\\\\t\\\\n (\\\\[])))+","name":"string.other.link.autolink.literal.email.mdx"}]},"extension-gfm-footnote-call":{"captures":{"1":{"name":"string.other.begin.link.mdx"},"2":{"name":"string.other.begin.footnote.mdx"},"3":{"name":"entity.name.identifier.mdx","patterns":[{"include":"#markdown-string"}]},"4":{"name":"string.other.end.footnote.mdx"}},"match":"(\\\\[)(\\\\^)((?:[^]\\\\t\\\\n\\\\r \\\\[\\\\\\\\]|\\\\\\\\[]\\\\[\\\\\\\\]?)+)(])"},"extension-gfm-footnote-definition":{"begin":"(?:^|\\\\G)[\\\\t ]*(\\\\[)(\\\\^)((?:[^]\\\\t\\\\n\\\\r \\\\[\\\\\\\\]|\\\\\\\\[]\\\\[\\\\\\\\]?)+)(])(:)[\\\\t ]*","beginCaptures":{"1":{"name":"string.other.begin.link.mdx"},"2":{"name":"string.other.begin.footnote.mdx"},"3":{"name":"entity.name.identifier.mdx","patterns":[{"include":"#markdown-string"}]},"4":{"name":"string.other.end.footnote.mdx"}},"patterns":[{"include":"#markdown-sections"}],"while":"^(?=[\\\\t ]*$)|(?:^|\\\\G)(?: {4}|\\\\t)"},"extension-gfm-strikethrough":{"match":"(?<=\\\\S)(?<!~)~{1,2}(?!~)|(?<!~)~{1,2}(?=\\\\S)(?!~)","name":"string.other.strikethrough.mdx"},"extension-gfm-table":{"begin":"(?:^|\\\\G)[\\\\t ]*(?=\\\\|[^\\\\n\\\\r]+\\\\|[\\\\t ]*$)","end":"^(?=[\\\\t ]*$)|$","patterns":[{"captures":{"1":{"patterns":[{"include":"#markdown-text"}]}},"match":"(?<=\\\\||(?:^|\\\\G))[\\\\t ]*((?:[^\\\\n\\\\r\\\\\\\\|]|\\\\\\\\[\\\\\\\\|]?)+?)[\\\\t ]*(?=\\\\||$)"},{"match":"\\\\|","name":"markup.list.table-delimiter.mdx"}]},"extension-github-gemoji":{"captures":{"1":{"name":"punctuation.definition.gemoji.begin.mdx"},"2":{"name":"keyword.control.gemoji.mdx"},"3":{"name":"punctuation.definition.gemoji.end.mdx"}},"match":"(:)((?:(?:(?:hand_with_index_finger_and_thumb_cros|mailbox_clo|fist_rai|confu)s|r(?:aised_hand_with_fingers_splay|e(?:gister|l(?:iev|ax)))|disappointed_reliev|confound|(?:a(?:ston|ngu)i|flu)sh|unamus|hush)e|(?:chart_with_(?:down|up)wards_tre|large_orange_diamo|small_(?:orang|blu)e_diamo|large_blue_diamo|parasol_on_grou|loud_sou|rewi)n|(?:rightwards_pushing_h|hourglass_flowing_s|leftwards_(?:pushing_)?h|(?:raised_back_of|palm_(?:down|up)|call_me)_h|(?:(?:(?:clippert|ascensi)on|norfolk)_is|christmas_is|desert_is|bouvet_is|new_zea|thai|eng|fin|ire)l|rightwards_h|pinching_h|writing_h|s(?:w(?:itzer|azi)|cot)l|magic_w|ok_h|icel)an|s(?:un_behind_(?:large|small|rain)_clou|hallow_pan_of_foo|tar_of_davi|leeping_be|kateboar|a(?:tisfie|uropo)|hiel|oun|qui)|(?:ear_with_hearing_a|pouring_liqu)i|(?:identification_c|(?:arrow_(?:back|for)|fast_for)w|credit_c|woman_be|biohaz|man_be|l(?:eop|iz))ar|m(?:usical_key|ortar_)boar|(?:drop_of_bl|canned_f)oo|c(?:apital_abc|upi)|person_bal|(?:black_bi|(?:cust|plac)a)r|(?:clip|key)boar|mermai|pea_po|worrie|po(?:la|u)n|threa|dv)d|(?:(?:(?:face_with_open_eyes_and_hand_over|face_with_diagonal|open|no)_mou|h(?:and_over_mou|yacin)|mammo)t|running_shirt_with_sas|(?:(?:fishing_pole_and_|blow)fi|(?:tropical_f|petri_d)i|(?:paint|tooth)bru|banglade|jellyfi)s|(?:camera_fl|wavy_d)as|triump|menora|pouc|blus|watc|das|has)h|(?:s(?:o(?:(?:uth_georgia_south_sandwich|lomon)_island|ck)|miling_face_with_three_heart|t_kitts_nevi|weat_drop|agittariu|c(?:orpiu|issor)|ymbol|hort)|twisted_rightwards_arrow|(?:northern_mariana|heard_mcdonald|(?:british_virgi|us_virgi|pitcair|cayma)n|turks_caicos|us_outlying|(?:falk|a)land|marshall|c(?:anary|ocos)|faroe)_island|(?:face_holding_back_tea|(?:c(?:ard_index_divid|rossed_fing)|pinched_fing)e|night_with_sta)r|(?:two_(?:wo)?men_holding|people_holding|heart|open)_hand|(?:sunrise_over_mountai|(?:congratul|united_n)atio|jea)n|(?:caribbean_)?netherland|(?:f(?:lower_playing_car|ace_in_clou)|crossed_swor|prayer_bea)d|(?:money_with_win|nest_with_eg|crossed_fla|hotsprin)g|revolving_heart|(?:high_brightne|(?:expression|wire)le|(?:tumbler|wine)_gla|milk_gla|compa|dre)s|performing_art|earth_america|orthodox_cros|l(?:ow_brightnes|a(?:tin_cros|o)|ung)|no_pedestrian|c(?:ontrol_kno|lu)b|b(?:ookmark_tab|rick|ean)|nesting_doll|cook_island|(?:fleur_de_l|tenn)i|(?:o(?:ncoming_b|phiuch|ctop)|hi(?:ppopotam|bisc)|trolleyb|m(?:(?:rs|x)_cla|auriti|inib)|belar|cact|abac|(?:cyp|tau)r)u|medal_sport|(?:chopstic|firewor)k|rhinocero|(?:p(?:aw_prin|eanu)|footprin)t|two_heart|princes|(?:hondur|baham)a|barbado|aquariu|c(?:ustom|hain)|maraca|comoro|flag|wale|hug|vh)s|(?:(?:diamond_shape_with_a_dot_ins|playground_sl)id|(?:(?:first_quarter|last_quarter|full|new)_moon_with|(?:zipper|money)_mouth|dotted_line|upside_down|c(?:rying_c|owboy_h)at|(?:disguis|nauseat)ed|neutral|monocle|panda|tired|woozy|clown|nerd|zany|fox)_fac|s(?:t(?:uck_out_tongue_winking_ey|eam_locomotiv)|(?:lightly_(?:frown|smil)|neez|h(?:ush|ak))ing_fac|(?:tudio_micropho|(?:hinto_shr|lot_mach)i|ierra_leo|axopho)n|mall_airplan|un_with_fac|a(?:luting_fac|tellit|k)|haved_ic|y(?:nagogu|ring)|n(?:owfl)?ak|urinam|pong)|(?:black_(?:medium_)?small|white_(?:(?:medium_)?small|large)|(?:black|white)_medium|black_large|orange|purple|yellow|b(?:rown|lue)|red)_squar|(?:(?:(?:perso|woma)|ma)n_with_)?probing_can|(?:p(?:ut_litter_in_its_pl|outing_f)|frowning_f|cold_f|wind_f|hot_f)ac|(?:arrows_c(?:ounterc)?lockwi|computer_mou|derelict_hou|carousel_hor|c(?:ity_sunri|hee)|heartpul|briefca|racehor|pig_no|lacros)s|(?:(?:face_with_head_band|ideograph_advant|adhesive_band|under|pack)a|currency_exchan|l(?:eft_l)?ugga|woman_jud|name_bad|man_jud|jud)g|face_with_peeking_ey|(?:(?:e(?:uropean_post_off|ar_of_r)|post_off)i|information_sour|ambulan)c|artificial_satellit|(?:busts?_in_silhouet|(?:vulcan_sal|parach)u|m(?:usical_no|ayot)|ro(?:ller_ska|set)|timor_les|ice_ska)t|(?:(?:incoming|red)_envelo|s(?:ao_tome_princi|tethosco)|(?:micro|tele)sco|citysca)p|(?:(?:(?:convenience|department)_st|musical_sc)o|f(?:light_depar|ramed_pic)tu|love_you_gestu|heart_on_fi|japanese_og|cote_divoi|perseve|singapo)r|b(?:ullettrain_sid|eliz|on)|(?:(?:(?:fe|)male_)?dete|radioa)ctiv|(?:christmas|deciduous|evergreen|tanabata|palm)_tre|(?:vibration_mo|cape_ver)d|(?:fortune_cook|neckt|self)i|(?:fork_and_)?knif|athletic_sho|(?:p(?:lead|arty)|drool|curs|melt|yawn|ly)ing_fac|vomiting_fac|(?:(?:c(?:urling_st|ycl)|meat_on_b|repeat_|headst)o|(?:fire_eng|tanger|ukra)i|rice_sce|(?:micro|i)pho|champag|pho)n|(?:cricket|video)_gam|(?:boxing_glo|oli)v|(?:d(?:ragon|izzy)|monkey)_fac|(?:m(?:artin|ozamb)iq|fond)u|wind_chim|test_tub|flat_sho|m(?:a(?:ns_sho|t)|icrob|oos|ut)|(?:handsh|fish_c|moon_c|cupc)ak|nail_car|zimbabw|ho(?:neybe|l)|ice_cub|airplan|pensiv|c(?:a(?:n(?:dl|o)|k)|o(?:ffe|oki))|tongu|purs|f(?:lut|iv)|d(?:at|ov)|n(?:iu|os)|kit|rag|ax)e|(?:(?:british_indian_ocean_territo|(?:plate_with_cutl|batt)e|medal_milita|low_batte|hunga|wea)r|family_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy))_bo|person_feeding_bab|woman_feeding_bab|s(?:u(?:spension_railwa|nn)|t(?:atue_of_libert|_barthelem|rawberr))|(?:m(?:ountain_cable|ilky_)|aerial_tram)wa|articulated_lorr|man_feeding_bab|mountain_railwa|partly_sunn|(?:vatican_c|infin)it|(?:outbox_tr|inbox_tr|birthd|motorw|paragu|urugu|norw|x_r)a|butterfl|ring_buo|t(?:urke|roph)|angr|fogg)y|(?:(?:perso|woma)n_in_motorized_wheelchai|(?:(?:notebook_with_decorative_c|four_leaf_cl)ov|(?:index_pointing_at_the_vie|white_flo)w|(?:face_with_thermome|non-potable_wa|woman_firefigh|desktop_compu|m(?:an_firefigh|otor_scoo)|(?:ro(?:ller_coa|o)|oy)s|potable_wa|kick_scoo|thermome|firefigh|helicop|ot)t|(?:woman_factory_wor|(?:woman_office|woman_health|health)_wor|man_(?:factory|office|health)_wor|(?:factory|office)_wor|rice_crac|black_jo|firecrac)k|telephone_receiv|(?:palms_up_toget|f(?:ire_extinguis|eat)|teac)h|(?:(?:open_)?file_fol|level_sli)d|police_offic|f(?:lying_sauc|arm)|woman_teach|roll_of_pap|(?:m(?:iddle_f|an_s)in|woman_sin|hambur|plun|dag)g|do_not_litt|wilted_flow|woman_farm|man_(?:teach|farm)|(?:bell_pe|hot_pe|fli)pp|l(?:o(?:udspeak|ve_lett|bst)|edg|add)|tokyo_tow|c(?:ucumb|lapp|anc)|b(?:e(?:ginn|av)|adg)|print|hamst)e|(?:perso|woma)n_in_manual_wheelchai|m(?:an(?:_in_motorized|(?:_in_man)?ual)|otorized)_wheelchai|(?:person_(?:white|curly|red)_|wheelc)hai|triangular_rule|(?:film_project|e(?:l_salv|cu)ad|elevat|tract|anch)o|s(?:traight_rul|pace_invad|crewdriv|nowboard|unflow|peak|wimm|ing|occ|how|urf|ki)e|r(?:ed_ca|unne|azo)|d(?:o(?:lla|o)|ee)|barbe)r|(?:(?:cloud_with_(?:lightning_and_)?ra|japanese_gobl|round_pushp|liechtenste|mandar|pengu|dolph|bahra|pushp|viol)i|(?:couple(?:_with_heart_wo|kiss_)man|construction_worker|(?:mountain_bik|bow|row)ing|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|white_haired|curly_haired|raising_hand|super(?:villain|hero)|red_haired|basketball|s(?:(?:wimm|urf)ing|assy)|haircut|no_good|(?:vampir|massag)e|b(?:iking|ald)|zombie|fairy|mage|elf|ng)_(?:wo)?ma|(?:(?:couple_with_heart_man|isle_of)_m|(?:couplekiss_woman_|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_|frowning_|s(?:tanding|auna)_|po(?:uting_|lice)|running_|blonde_|o(?:lder|k)_)wom|(?:perso|woma)n_with_turb|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_m|f(?:olding_hand_f|rowning_m)|man_with_turb|(?:turkmen|afghan|pak)ist|s(?:tanding_m|(?:outh_s)?ud|auna_m)|po(?:uting_|lice)m|running_m|azerbaij|k(?:yrgyz|azakh)st|tajikist|uzbekist|o(?:lder_m|k_m|ce)|(?:orang|bh)ut|taiw|jord)a|s(?:mall_red_triangle_dow|(?:valbard_jan_may|int_maart|ev)e|afety_pi|top_sig|t_marti|(?:corpi|po|o)o|wede)|(?:heavy_(?:d(?:ivision|ollar)|equals|minus|plus)|no_entry|female|male)_sig|(?:arrow_(?:heading|double)_d|p(?:erson_with_cr|oint_d)|arrow_up_d|thumbsd)ow|(?:house_with_gard|l(?:ock_with_ink_p|eafy_gre)|dancing_(?:wo)?m|fountain_p|keycap_t|chick|ali|yem|od)e|(?:izakaya|jack_o)_lanter|(?:funeral_u|(?:po(?:stal_h|pc)|capric)o|unico)r|chess_paw|b(?:a(?:llo|c)o|eni|rai)|l(?:anter|io)|c(?:o(?:ff)?i|row)|melo|rame|oma|yar)n|(?:s(?:t(?:uck_out_tongue_closed_ey|_vincent_grenadin)|kull_and_crossbon|unglass|pad)|(?:french_souther|palestinia)n_territori|(?:face_with_spiral|kissing_smiling)_ey|united_arab_emirat|kissing_closed_ey|(?:clinking_|dark_sun|eye)glass|(?:no_mobile_|head)phon|womans_cloth|b(?:allet_sho|lueberri)|philippin|(?:no_bicyc|seychel)l|roll_ey|(?:cher|a)ri|p(?:ancak|isc)|maldiv|leav)es|(?:f(?:amily_(?:woman_(?:woman_)?|man_(?:(?:wo|)man_)?)girl_gir|earfu)|(?:woman_playing_hand|m(?:an_playing_hand|irror_)|c(?:onfetti|rystal)_|volley|track|base|8)bal|(?:(?:m(?:ailbox_with_(?:no_)?m|onor)|cockt|e-m)a|(?:person|bride|woman)_with_ve|man_with_ve|light_ra|braz|ema)i|(?:transgender|baby)_symbo|passport_contro|(?:arrow_(?:down|up)_sm|rice_b|footb)al|(?:dromedary_cam|ferris_whe|love_hot|high_he|pretz|falaf|isra)e|page_with_cur|me(?:dical_symbo|ta)|(?:n(?:ewspaper_ro|o_be)|bellhop_be)l|rugby_footbal|s(?:chool_satche|(?:peak|ee)_no_evi|oftbal|crol|anda|nai|hel)|(?:peace|atom)_symbo|hear_no_evi|cora|hote|bage|labe|rof|ow)l|(?:(?:negative_squared_cross|heavy_exclamation|part_alternation)_mar|(?:eight_spoked_)?asteris|(?:ballot_box_with_che|(?:(?:mantelpiece|alarm|timer)_c|un)lo|(?:ha(?:(?:mmer_and|ir)_p|tch(?:ing|ed)_ch)|baby_ch|joyst)i|railway_tra|lipsti|peaco)c|heavy_check_mar|white_check_mar|tr(?:opical_drin|uc)|national_par|pickup_truc|diving_mas|floppy_dis|s(?:tar_struc|hamroc|kun|har)|chipmun|denmar|duc|hoo|lin)k|(?:leftwards_arrow_with_h|arrow_right_h|(?:o(?:range|pen)|closed|blue)_b)ook|(?:woman_playing_water_pol|m(?:an(?:_(?:playing_water_pol|with_gua_pi_ma|in_tuxed)|g)|ontenegr|o(?:roc|na)c|e(?:xic|tr|m))|(?:perso|woma)n_in_tuxed|(?:trinidad_toba|vir)g|water_buffal|b(?:urkina_fas|a(?:mbo|nj)|ent)|puerto_ric|water_pol|flaming|kangaro|(?:mosqu|burr)it|(?:avoc|torn)ad|curaca|lesoth|potat|ko(?:sov|k)|tomat|d(?:ang|od)|yo_y|hoch|t(?:ac|og)|zer)o|(?:c(?:entral_african|zech)|dominican)_republic|(?:eight_pointed_black_s|six_pointed_s|qa)tar|(?:business_suit_levitat|(?:classical_buil|breast_fee)d|(?:woman_cartwhee|m(?:an_(?:cartwhee|jugg)|en_wrest)|women_wrest|woman_jugg|face_exha|cartwhee|wrest|dump)l|c(?:hildren_cross|amp)|woman_facepalm|woman_shrugg|man_(?:facepalm|shrugg)|people_hugg|(?:person_fe|woman_da|man_da)nc|fist_oncom|horse_rac|(?:no_smo|thin)k|laugh|s(?:eedl|mok)|park|w(?:arn|edd))ing|f(?:a(?:mily(?:_(?:woman_(?:woman_(?:girl|boy)|girl|boy)|man_(?:woman_(?:girl|boy)|man_(?:girl|boy)|girl|boy)))?|ctory)|o(?:u(?:ntain|r)|ot|g)|r(?:owning)?|i(?:re|s[ht])|ly|u)|(?:(?:(?:information_desk|handball|bearded)_|(?:frowning|ok)_|juggling_|mer)pers|(?:previous_track|p(?:lay_or_p)?ause|black_square|white_square|next_track|r(?:ecord|adio)|eject)_butt|(?:wa[nx]ing_(?:crescent|gibbous)_m|bowl_with_sp|crescent_m|racc)o|(?:b(?:ouncing_ball|lond_haired)|tipping_hand|pregnant|kneeling|deaf)_pers|s(?:t(?:_pierre_miquel|op_butt|ati)|tanding_pers|peech_ballo|auna_pers)|r(?:eminder_r)?ibb|thought_ballo|watermel|badmint|c(?:amero|ray)|le(?:ban|m)|oni|bis)on|(?:heavy_heart_exclama|building_construc|heart_decora|exclama)tion|(?:(?:triangular_flag_on_po|(?:(?:woman_)?technolog|m(?:ountain_bicycl|an_technolog)|bicycl)i|(?:wo)?man_scienti|(?:wo)?man_arti|s(?:afety_ve|cienti)|empty_ne)s|(?:vertical_)?traffic_ligh|(?:rescue_worker_helm|military_helm|nazar_amul|city_suns|wastebask|dropl|t(?:rump|oil)|bouqu|buck|magn|secr)e|one_piece_swimsui|(?:(?:arrow_(?:low|upp)er|point)_r|bridge_at_n|copyr|mag_r)igh|(?:bullettrain_fro|(?:potted_pl|croiss|e(?:ggpl|leph))a)n|s(?:t(?:ar_and_cresc|ud)en|cream_ca|mi(?:ley?|rk)_ca|(?:peed|ail)boa|hir)|(?:arrow_(?:low|upp)er|point)_lef|woman_astronau|r(?:o(?:tating_ligh|cke)|eceip)|heart_eyes_ca|man_astronau|(?:woman_stud|circus_t|man_stud|trid)en|(?:ringed_pla|file_cabi)ne|nut_and_bol|(?:older_)?adul|k(?:i(?:ssing_ca|wi_frui)|uwai|no)|(?:pouting_c|c(?:ut_of_m|old_sw)e|womans_h|montserr|(?:(?:motor_|row)b|lab_c)o|heartbe|toph)a|(?:woman_pil|honey_p|man_pil|[cp]arr|teap|rob)o|hiking_boo|arrow_lef|fist_righ|flashligh|f(?:ist_lef|ee)|black_ca|astronau|(?:c(?:hest|oco)|dough)nu|innocen|joy_ca|artis|(?:acce|egy)p|co(?:me|a)|pilo)t|(?:heavy_multiplication_|t-re)x|(?:s(?:miling_face_with_te|piral_calend)|oncoming_police_c|chocolate_b|ra(?:ilway|cing)_c|police_c|polar_be|teddy_be|madagasc|blue_c|calend|myanm)ar|c(?:l(?:o(?:ud(?:_with_lightning)?|ck(?:1[012]?|[2-9]))|ap)?|o(?:uple(?:_with_heart|kiss)?|nstruction|mputer|ok|[pw])|a(?:r(?:d_index)?|mera)|r(?:icket|y)|h(?:art|ild))|(?:m(?:artial_arts_unifo|echanical_a)r|(?:cherry_)?blosso|b(?:aggage_clai|roo)|ice_?crea|facepal|mushroo|restroo|vietna|dru|yu)m|(?:woman_with_headscar|m(?:obile_phone_of|aple_lea)|fallen_lea|wol)f|(?:(?:closed_lock_with|old)_|field_hoc|ice_hoc|han|don)key|g(?:lobe_with_meridians|r(?:e(?:y_(?:exclama|ques)tion|e(?:n(?:_(?:square|circle|salad|apple|heart|book)|land)|ce)|y_heart|nada)|i(?:mac|nn)ing|apes)|u(?:inea_bissau|ernsey|am|n)|(?:(?:olfing|enie)_(?:wo)?|uards(?:wo)?)man|(?:inger_roo|oal_ne|hos)t|(?:uadeloup|ame_di|iraff|oos)e|ift_heart|i(?:braltar|rl)|(?:uatemal|(?:eorg|amb)i|orill|uyan|han)a|uide_dog|(?:oggl|lov)es|arlic|emini|uitar|abon|oat|ear|b)|construction_worker|(?:(?:envelope_with|bow_and)_ar|left_right_ar|raised_eyeb)row|(?:(?:oncoming_automob|crocod)i|right_anger_bubb|l(?:eft_speech_bubb|otion_bott|ady_beet)|congo_brazzavil|eye_speech_bubb|(?:large_blue|orange|purple|yellow|brown)_circ|(?:(?:european|japanese)_cas|baby_bot)t|b(?:alance_sca|eet)|s(?:ewing_need|weat_smi)|(?:black|white|red)_circ|(?:motor|re)cyc|pood|turt|tama|waff|musc|eag)le|first_quarter_moon|s(?:m(?:all_red_triangle|i(?:ley?|rk))|t(?:uck_out_tongue|ar)|hopping|leeping|p(?:arkle|ider)|unrise|nowman|chool|cream|k(?:ull|i)|weat|ix|a)|(?:(?:b(?:osnia_herzegovi|ana)|wallis_futu|(?:french_gui|botsw)a|argenti|st_hele)n|(?:(?:equatorial|papua_new)_guin|north_kor|eritr)e|t(?:ristan_da_cunh|ad)|(?:(?:(?:french_poly|indo)ne|tuni)s|(?:new_caledo|ma(?:urita|cedo)|lithua|(?:tanz|alb|rom)a|arme|esto)n|diego_garc|s(?:audi_arab|t_luc|lov(?:ak|en)|omal|erb)|e(?:arth_as|thiop)|m(?:icrone|alay)s|(?:austra|mongo)l|c(?:ambod|roat)|(?:bulga|alge)r|(?:colom|nami|zam)b|boliv|l(?:iber|atv))i|(?:wheel_of_dhar|cine|pana)m|(?:(?:(?:closed|beach|open)_)?umbrel|ceuta_melil|venezue|ang(?:uil|o)|koa)l|c(?:ongo_kinshas|anad|ub)|(?:western_saha|a(?:mpho|ndor)|zeb)r|american_samo|video_camer|m(?:o(?:vie_camer|ldov)|alt|eg)|(?:earth_af|costa_)ric|s(?:outh_afric|ri_lank|a(?:mo|nt))|bubble_te|(?:antarct|jama)ic|ni(?:caragu|geri|nj)|austri|pi(?:nat|zz)|arub|k(?:eny|aab)|indi|u7a7|l(?:lam|ib[ry])|dn)a|l(?:ast_quarter_moon|o(?:tus|ck)|ips|eo)|(?:hammer_and_wren|c(?:ockroa|hur)|facepun|wren|crut|pun)ch|s(?:nowman_with_snow|ignal_strength|weet_potato|miling_imp|p(?:ider_web|arkle[rs])|w(?:im_brief|an)|a(?:n(?:_marino|dwich)|lt)|topwatch|t(?:a(?:dium|r[2s])|ew)|l(?:e(?:epy|d)|oth)|hrimp|yria|carf|(?:hee|oa)p|ea[lt]|h(?:oe|i[pt])|o[bs])|(?:s(?:tuffed_flatbre|p(?:iral_notep|eaking_he))|(?:exploding_h|baguette_br|flatbr)e)ad|(?:arrow_(?:heading|double)_u|(?:p(?:lace_of_wor|assenger_)sh|film_str|tul)i|page_facing_u|biting_li|(?:billed_c|world_m)a|mouse_tra|(?:curly_lo|busst)o|thumbsu|lo(?:llip)?o|clam|im)p|(?:anatomical|light_blue|sparkling|kissing|mending|orange|purple|yellow|broken|b(?:rown|l(?:ack|ue))|pink)_heart|(?:(?:transgender|black)_fla|mechanical_le|(?:checkered|pirate)_fla|electric_plu|rainbow_fla|poultry_le|service_do|white_fla|luxembour|fried_eg|moneyba|h(?:edgeh|otd)o|shru)g|(?:cloud_with|mountain)_snow|(?:(?:antigua_barb|berm)u|(?:kh|ug)an|rwan)da|(?:3r|2n)d_place_medal|1(?:st_place_medal|234|00)|lotus_position|(?:w(?:eight_lift|alk)|climb)ing|(?:(?:cup_with_str|auto_ricksh)a|carpentry_sa|windo|jigsa)w|(?:(?:couch_and|diya)_la|f(?:ried_shri|uelpu))mp|(?:woman_mechan|man_mechan|alemb)ic|(?:european_un|accord|collis|reun)ion|(?:flight_arriv|hospit|portug|seneg|nep)al|card_file_box|(?:(?:oncoming_)?tax|m(?:o(?:unt_fuj|ya)|alaw)|s(?:paghett|ush|ar)|b(?:r(?:occol|une)|urund)|(?:djibou|kiriba)t|hait|fij)i|(?:shopping_c|white_he|bar_ch)art|d(?:isappointed|ominica|e(?:sert)?)|raising_hand|super(?:villain|hero)|b(?:e(?:verage_box|ers|d)|u(?:bbles|lb|g)|i(?:k(?:ini|e)|rd)|o(?:o(?:ks|t)|a[rt]|y)|read|a[cn]k)|ra(?:ised_hands|bbit2|t)|(?:hindu_tem|ap)ple|thong_sandal|a(?:r(?:row_(?:right|down|up)|t)|bc?|nt)?|r(?:a(?:i(?:sed_hand|nbow)|bbit|dio|m)|u(?:nning)?|epeat|i(?:ng|ce)|o(?:ck|se))|takeout_box|(?:flying_|mini)disc|(?:(?:interrob|yin_y)a|b(?:o(?:omera|wli)|angba)|(?:ping_p|hong_k)o|calli|mahjo)ng|b(?:a(?:llot_box|sket|th?|by)|o(?:o(?:k(?:mark)?|m)|w)|u(?:tter|s)|e(?:ll|er?|ar))?|heart_eyes|basketball|(?:paperclip|dancer|ticket)s|point_up_2|(?:wo)?man_cook|n(?:ew(?:spaper)?|o(?:tebook|_entry)|iger)|t(?:e(?:lephone|a)|o(?:oth|p)|r(?:oll)?|wo)|h(?:o(?:u(?:rglass|se)|rse)|a(?:mmer|nd)|eart)|paperclip|full_moon|(?:b(?:lack_ni|athtu|om)|her)b|(?:long|oil)_drum|pineapple|(?:clock(?:1[012]?|[2-9])3|u6e8)0|p(?:o(?:int_up|ut)|r(?:ince|ay)|i(?:ck|g)|en)|e(?:nvelope|ight|u(?:ro)?|gg|ar|ye|s)|m(?:o(?:u(?:ntain|se)|nkey|on)|echanic|a(?:ilbox|[gn])|irror)?|new_moon|d(?:iamonds|olls|art)|question|k(?:iss(?:ing)?|ey)|haircut|no_good|(?:vampir|massag)e|g(?:olf(?:ing)?|u(?:inea|ard)|e(?:nie|m)|ift|rin)|h(?:a(?:ndbag|msa)|ouses|earts|ut)|postbox|toolbox|(?:pencil|t(?:rain|iger)|whale|cat|dog)2|belgium|(?:volca|kimo)no|(?:vanuat|tuval|pala|naur|maca)u|tokelau|o(?:range|ne?|[km])?|office|dancer|ticket|dragon|pencil|zombie|w(?:o(?:mens|rm|od)|ave|in[gk]|c)|m(?:o(?:sque|use2)|e(?:rman|ns)|a(?:li|sk))|jersey|tshirt|w(?:heel|oman)|dizzy|j(?:apan|oy)|t(?:rain|iger)|whale|fairy|a(?:nge[lr]|bcd|tm)|c(?:h(?:a(?:ir|d)|ile)|a(?:ndy|mel)|urry|rab|o(?:rn|ol|w2)|[dn])|p(?:ager|e(?:a(?:ch|r)|ru)|i(?:g2|ll|e)|oop)|n(?:otes|ine)|t(?:onga|hree|ent|ram|[mv])|f(?:erry|r(?:ies|ee|og)|ax)|u(?:7(?:533|981|121)|5(?:5b6|408|272)|6(?:307|70[89]))|mage|e(?:yes|nd)|i(?:ra[nq]|t)|cat|dog|elf|z(?:zz|ap)|yen|j(?:ar|p)|leg|id|u[kps]|ng|o[2x]|vs|kr|[-+]1|[vx])(:)","name":"string.emoji.mdx"},"extension-github-mention":{"captures":{"1":{"name":"punctuation.definition.mention.begin.mdx"},"2":{"name":"string.other.link.mention.mdx"}},"match":"(?<![0-9A-Z_-z])(@)([0-9A-Za-z][-0-9A-Za-z]{0,38}(?:/[0-9A-Za-z][-0-9A-Za-z]{0,38})?)(?![0-9A-Z_-z])","name":"string.mention.mdx"},"extension-github-reference":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.reference.begin.mdx"},"2":{"name":"string.other.link.reference.security-advisory.mdx"},"3":{"name":"punctuation.definition.reference.begin.mdx"},"4":{"name":"string.other.link.reference.issue-or-pr.mdx"}},"match":"(?<![0-9A-Z_a-z])(?:((?i:ghsa-|cve-))([0-9A-Za-z]+)|((?i:gh-|#))([0-9]+))(?![0-9A-Z_a-z])","name":"string.reference.mdx"},{"captures":{"1":{"name":"string.other.link.reference.user.mdx"},"2":{"name":"punctuation.definition.reference.begin.mdx"},"3":{"name":"string.other.link.reference.issue-or-pr.mdx"}},"match":"(?<![^\\\\t\\\\n\\\\r (@\\\\[{])([0-9A-Za-z][-0-9A-Za-z]{0,38}(?:/(?:\\\\.git[-0-9A-Z_a-z]|\\\\.(?!git)|[-0-9A-Z_a-z])+)?)(#)([0-9]+)(?![0-9A-Z_a-z])","name":"string.reference.mdx"}]},"extension-math-flow":{"begin":"(?:^|\\\\G)[\\\\t ]*(\\\\${2,})([^\\\\n\\\\r$]*)$","beginCaptures":{"1":{"name":"string.other.begin.math.flow.mdx"},"2":{"patterns":[{"include":"#markdown-string"}]}},"contentName":"markup.raw.math.flow.mdx","end":"(\\\\1)[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.end.math.flow.mdx"}},"name":"markup.code.other.mdx"},"extension-math-text":{"captures":{"1":{"name":"string.other.begin.math.mdx"},"2":{"name":"markup.raw.math.mdx markup.inline.raw.math.mdx"},"3":{"name":"string.other.end.math.mdx"}},"match":"(?<!\\\\$)(\\\\${2,})(?!\\\\$)(.+?)(?<!\\\\$)(\\\\1)(?!\\\\$)"},"extension-mdx-esm":{"begin":"(?:^|\\\\G)(?=(?i:(?:ex|im)port) )","end":"^(?=[\\\\t ]*$)|$","name":"meta.embedded.tsx","patterns":[{"include":"source.tsx#statements"}]},"extension-mdx-expression-flow":{"begin":"(?:^|\\\\G)[\\\\t ]*(\\\\{)(?!.*}[\\\\t ]*.)","beginCaptures":{"1":{"name":"string.other.begin.expression.mdx.js"}},"contentName":"meta.embedded.tsx","end":"(})[\\\\t ]*$","endCaptures":{"1":{"name":"string.other.begin.expression.mdx.js"}},"patterns":[{"include":"source.tsx#expression"}]},"extension-mdx-expression-text":{"begin":"\\\\{","beginCaptures":{"0":{"name":"string.other.begin.expression.mdx.js"}},"contentName":"meta.embedded.tsx","end":"}","endCaptures":{"0":{"name":"string.other.begin.expression.mdx.js"}},"patterns":[{"include":"source.tsx#expression"}]},"extension-mdx-jsx-flow":{"begin":"(?<=^|\\\\G|>)[\\\\t ]*(<)(?=(?![\\\\t\\\\n\\\\r ]))(?:\\\\s*(/))?(?:\\\\s*(?:([$_[:alpha:]][-$_[:alnum:]]*)\\\\s*(:)\\\\s*([$_[:alpha:]][-$_[:alnum:]]*)|([$_[:alpha:]][$_[:alnum:]]*(?:\\\\s*\\\\.\\\\s*[$_[:alpha:]][-$_[:alnum:]]*)+)|([$_[:upper:]][$_[:alnum:]]*)|([$_[:alpha:]][-$_[:alnum:]]*))(?=[/>{\\\\s]))?","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.jsx"},"2":{"name":"punctuation.definition.tag.closing.jsx"},"3":{"name":"entity.name.tag.namespace.jsx"},"4":{"name":"punctuation.separator.namespace.jsx"},"5":{"name":"entity.name.tag.local.jsx"},"6":{"name":"support.class.component.jsx"},"7":{"name":"support.class.component.jsx"},"8":{"name":"entity.name.tag.jsx"}},"end":"(?:(/)\\\\s*)?(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.self-closing.jsx"},"2":{"name":"punctuation.definition.tag.end.jsx"}},"patterns":[{"include":"source.tsx#jsx-tag-attribute-name"},{"include":"source.tsx#jsx-tag-attribute-assignment"},{"include":"source.tsx#jsx-string-double-quoted"},{"include":"source.tsx#jsx-string-single-quoted"},{"include":"source.tsx#jsx-evaluated-code"},{"include":"source.tsx#jsx-tag-attributes-illegal"}]},"extension-mdx-jsx-text":{"begin":"(<)(?=(?![\\\\t\\\\n\\\\r ]))(?:\\\\s*(/))?(?:\\\\s*(?:([$_[:alpha:]][-$_[:alnum:]]*)\\\\s*(:)\\\\s*([$_[:alpha:]][-$_[:alnum:]]*)|([$_[:alpha:]][$_[:alnum:]]*(?:\\\\s*\\\\.\\\\s*[$_[:alpha:]][-$_[:alnum:]]*)+)|([$_[:upper:]][$_[:alnum:]]*)|([$_[:alpha:]][-$_[:alnum:]]*))(?=[/>{\\\\s]))?","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.jsx"},"2":{"name":"punctuation.definition.tag.closing.jsx"},"3":{"name":"entity.name.tag.namespace.jsx"},"4":{"name":"punctuation.separator.namespace.jsx"},"5":{"name":"entity.name.tag.local.jsx"},"6":{"name":"support.class.component.jsx"},"7":{"name":"support.class.component.jsx"},"8":{"name":"entity.name.tag.jsx"}},"end":"(?:(/)\\\\s*)?(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.self-closing.jsx"},"2":{"name":"punctuation.definition.tag.end.jsx"}},"patterns":[{"include":"source.tsx#jsx-tag-attribute-name"},{"include":"source.tsx#jsx-tag-attribute-assignment"},{"include":"source.tsx#jsx-string-double-quoted"},{"include":"source.tsx#jsx-string-single-quoted"},{"include":"source.tsx#jsx-evaluated-code"},{"include":"source.tsx#jsx-tag-attributes-illegal"}]},"extension-toml":{"begin":"\\\\A\\\\+{3}$","beginCaptures":{"0":{"name":"string.other.begin.toml"}},"contentName":"meta.embedded.toml","end":"^\\\\+{3}$","endCaptures":{"0":{"name":"string.other.end.toml"}},"patterns":[{"include":"source.toml"}]},"extension-yaml":{"begin":"\\\\A-{3}$","beginCaptures":{"0":{"name":"string.other.begin.yaml"}},"contentName":"meta.embedded.yaml","end":"^-{3}$","endCaptures":{"0":{"name":"string.other.end.yaml"}},"patterns":[{"include":"source.yaml"}]},"markdown-frontmatter":{"patterns":[{"include":"#extension-toml"},{"include":"#extension-yaml"}]},"markdown-sections":{"patterns":[{"include":"#commonmark-block-quote"},{"include":"#commonmark-code-fenced"},{"include":"#extension-gfm-footnote-definition"},{"include":"#commonmark-definition"},{"include":"#commonmark-heading-atx"},{"include":"#commonmark-thematic-break"},{"include":"#commonmark-heading-setext"},{"include":"#commonmark-list-item"},{"include":"#extension-gfm-table"},{"include":"#extension-math-flow"},{"include":"#extension-mdx-esm"},{"include":"#extension-mdx-expression-flow"},{"include":"#extension-mdx-jsx-flow"},{"include":"#commonmark-paragraph"}]},"markdown-string":{"patterns":[{"include":"#commonmark-character-escape"},{"include":"#commonmark-character-reference"}]},"markdown-text":{"patterns":[{"include":"#commonmark-attention"},{"include":"#commonmark-character-escape"},{"include":"#commonmark-character-reference"},{"include":"#commonmark-code-text"},{"include":"#commonmark-hard-break-trailing"},{"include":"#commonmark-hard-break-escape"},{"include":"#commonmark-label-end"},{"include":"#extension-gfm-footnote-call"},{"include":"#commonmark-label-start"},{"include":"#extension-gfm-autolink-literal"},{"include":"#extension-gfm-strikethrough"},{"include":"#extension-github-gemoji"},{"include":"#extension-github-mention"},{"include":"#extension-github-reference"},{"include":"#extension-math-text"},{"include":"#extension-mdx-expression-text"},{"include":"#extension-mdx-jsx-text"}]},"whatwg-html-data-character-reference-named-terminated":{"captures":{"1":{"name":"punctuation.definition.character-reference.begin.html"},"2":{"name":"keyword.control.character-reference.html"},"3":{"name":"punctuation.definition.character-reference.end.html"}},"match":"(&)((?:C(?:(?:o(?:unterClockwiseCo)?|lockwiseCo)ntourIntegra|cedi)|(?:(?:Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)|Not(?:Righ|Lef)tTriangle|(?:Not(?:(?:Succeed|Precede|Les)s|Greater)|(?:Precede|Succeed)s|Less)Slant|SquareSu(?:per|b)set|(?:Not(?:Greater|Tilde)|Tilde|Less)Full|RightTriangle|LeftTriangle|Greater(?:Slant|Full)|Precedes|Succeeds|Superset|NotHump|Subset|Tilde|Hump)Equ|int(?:er)?c|DotEqu)a|DoubleContourIntegra|(?:n(?:short)?parall|shortparall|p(?:arall|rur))e|(?:rightarrowta|l(?:eftarrowta|ced|ata|Ata)|sced|rata|perm|rced|rAta|ced)i|Proportiona|smepars|e(?:qvpars|pars|xc|um)|Integra|suphso|rarr[pt]|n(?:pars|tg)|l(?:arr[pt]|cei)|Rarrt|(?:hybu|fora)l|ForAl|[GKLNRSTcknt]cedi|rcei|iexc|gime|fras|[uy]um|oso|dso|ium|Ium)l|D(?:o(?:uble(?:(?:L(?:ong(?:Left)?R|eftR)ight|L(?:ongL)?eft|UpDown|Right|Up)Arrow|Do(?:wnArrow|t))|wn(?:ArrowUpA|TeeA|a)rrow)|iacriticalDot|strok|ashv|cy)|(?:(?:(?:N(?:(?:otN)?estedGreater|ot(?:Greater|Less))|Less(?:Equal)?)Great|GreaterGreat|l[lr]corn|mark|east)e|Not(?:Double)?VerticalBa|(?:Not(?:Righ|Lef)tTriangleB|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)VectorB|RightTriangleB|Left(?:Triangle|Arrow)B|RightArrowB|V(?:er(?:ticalB|b)|b)|UpArrowB|l(?:ur(?:ds|u)h|dr(?:us|d)h|trP|owb|H)|profal|r(?:ulu|dld)h|b(?:igst|rvb)|(?:wed|ve[er])b|s(?:wn|es)w|n(?:wne|ese|sp|hp)|gtlP|d(?:oll|uh|H)|(?:hor|ov)b|u(?:dh|H)|r(?:lh|H)|ohb|hb|St)a|D(?:o(?:wn(?:(?:Left(?:Right|Tee)|RightTee)Vecto|(?:(?:Righ|Lef)tVector|Arrow)Ba)|ubleVerticalBa)|a(?:gge|r)|sc|f)|(?:(?:(?:Righ|Lef)tDown|(?:Righ|Lef)tUp)Tee|(?:Righ|Lef)tUpDown)Vecto|VerticalSeparato|(?:Left(?:Right|Tee)|RightTee)Vecto|less(?:eqq?)?gt|e(?:qslantgt|sc)|(?:RightF|LeftF|[lr]f)loo|u(?:[lr]corne|ar)|timesba|(?:plusa|cirs|apa)ci|U(?:arroci|f)|(?:dzigr|s(?:u(?:pl|br)|imr|[lr])|zigr|angz|nvH|l(?:tl|B)|r[Br])ar|UnderBa|(?:plus|harr|top|mid|of)ci|O(?:verBa|sc|f)|dd?agge|s(?:olba|sc)|g(?:t(?:rar|ci)|sc|f)|c(?:opys|u(?:po|ep)|sc|f)|(?:n(?:(?:v[lr]|[rw])A|l[Aa]|h[Aa]|eA)|x[hlr][Aa]|u(?:ua|da|A)|s[ew]A|rla|o[lr]a|rba|rAa|l[Ablr]a|h(?:oa|A)|era|d(?:ua|A)|cra|vA)r|o(?:lci|sc|ro|pa)|ropa|roar|l(?:o(?:pa|ar)|sc|Ar)|i(?:ma|s)c|ltci|dd?ar|a(?:ma|s)c|R(?:Bar|sc|f)|I(?:mac|f)|(?:u(?:ma|s)|oma|ema|Oma|Ema|[wyz]s|qs|ks|fs|Zs|Ys|Xs|Ws|Vs|Us|Ss|Qs|Ns|Ms|Ks|Is|Gs|Fs|Cs|Bs)c|Umac|x(?:sc|f)|v(?:sc|f)|rsc|n(?:ld|f)|m(?:sc|ld|ac|f)|rAr|h(?:sc|f)|b(?:sc|f)|psc|P(?:sc|f)|L(?:sc|ar|f)|jsc|J(?:sc|f)|E(?:sc|f)|[HT]sc|[yz]f|wf|tf|qf|pf|kf|jf|Zf|Yf|Xf|Wf|Vf|Tf|Sf|Qf|Nf|Mf|Kf|Hf|Gf|Ff|Cf|Bf)r|(?:Diacritical(?:Double)?A|[EINOSYZaisz]a)cute|(?:(?:N(?:egative(?:VeryThin|Thi(?:ck|n))|onBreaking)|NegativeMedium|ZeroWidth|VeryThin|Medium|Thi(?:ck|n))Spac|Filled(?:Very)?SmallSquar|Empty(?:Very)?SmallSquar|(?:N(?:ot(?:Succeeds|Greater|Tilde|Less)T|t)|DiacriticalT|VerticalT|PrecedesT|SucceedsT|NotEqualT|GreaterT|TildeT|EqualT|LessT|at|Ut|It)ild|(?:(?:DiacriticalG|[EIOUaiu]g)ra|[Uu]?bre|[eo]?gra)v|(?:doublebar|curly|big|x)wedg|H(?:orizontalLin|ilbertSpac)|Double(?:Righ|Lef)tTe|(?:(?:measured|uw)ang|exponentia|dwang|ssmi|fema)l|(?:Poincarepla|reali|pho|oli)n|(?:black)?lozeng|(?:VerticalL|(?:prof|imag)l)in|SmallCircl|(?:black|dot)squar|rmoustach|l(?:moustach|angl)|(?:b(?:ack)?pr|(?:tri|xo)t|[qt]pr)im|[Tt]herefor|(?:DownB|[Gag]b)rev|(?:infint|nv[lr]tr)i|b(?:arwedg|owti)|an(?:dslop|gl)|(?:cu(?:rly)?v|rthr|lthr|b(?:ig|ar)v|xv)e|n(?:s(?:qsu[bp]|ccu)|prcu)|orslop|NewLin|maltes|Becaus|rangl|incar|(?:otil|Otil|t(?:ra|il))d|[inu]tild|s(?:mil|imn)|(?:sc|pr)cu|Wedg|Prim|Brev)e|(?:CloseCurly(?:Double)?Quo|OpenCurly(?:Double)?Quo|[ry]?acu)te|(?:Reverse(?:Up)?|Up)Equilibrium|C(?:apitalDifferentialD|(?:oproduc|(?:ircleD|enterD|d)o)t|on(?:grue|i)nt|conint|upCap|o(?:lone|pf)|OPY|hi)|(?:(?:(?:left)?rightsquig|(?:longleftr|twoheadr|nleftr|nLeftr|longr|hookr|nR|Rr)ight|(?:twohead|hook)left|longleft|updown|Updown|nright|Right|nleft|nLeft|down|up|Up)a|L(?:(?:ong(?:left)?righ|(?:ong)?lef)ta|eft(?:(?:right)?a|RightA|TeeA))|RightTeeA|LongLeftA|UpTeeA)rrow|(?:(?:RightArrow|Short|Upper|Lower)Left|(?:L(?:eftArrow|o(?:wer|ng))|LongLeft|Short|Upper)Right|ShortUp)Arrow|(?:b(?:lacktriangle(?:righ|lef)|ulle|no)|RightDoubleBracke|RightAngleBracke|Left(?:Doub|Ang)leBracke|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow)righ|(?:vartriangle|downharpoon|c(?:ircl|urv)earrow|upharpoon|looparrow|mapsto)lef|(?:UnderBrack|OverBrack|emptys|targ|Sups)e|diamondsui|c(?:ircledas|lubsui|are)|(?:spade|heart)sui|(?:(?:c(?:enter|t)|lmi|ino)d|(?:Triple|mD)D|n(?:otin|e)d|(?:ncong|doteq|su[bp]e|e[gl]s)d|l(?:ess|t)d|isind|c(?:ong|up|ap)?d|b(?:igod|N)|t(?:(?:ri)?d|opb)|s(?:ub|im)d|midd|g(?:tr?)?d|Lmid|DotD|(?:xo|ut|z)d|e(?:s?d|rD|fD|DD)|dtd|Zd|Id|Gd|Ed)o|realpar|i(?:magpar|iin)|S(?:uchTha|qr)|su[bp]mul|(?:(?:lt|i)que|gtque|(?:mid|low)a|e(?:que|xi))s|Produc|s(?:updo|e[cx])|r(?:parg|ec)|lparl|vangr|hamil|(?:homt|[lr]fis|ufis|dfis)h|phmma|t(?:wix|in)|quo|o(?:do|as)|fla|eDo)t|(?:(?:Square)?Intersecti|(?:straight|back|var)epsil|SquareUni|expectati|upsil|epsil|Upsil|eq?col|Epsil|(?:omic|Omic|rca|lca|eca|Sca|[NRTt]ca|Lca|Eca|[Zdz]ca|Dca)r|scar|ncar|herc|ccar|Ccar|iog|Iog)on|Not(?:S(?:quareSu(?:per|b)set|u(?:cceeds|(?:per|b)set))|Precedes|Greater|Tilde|Less)?|(?:(?:(?:Not(?:Reverse)?|Reverse)E|comp|E)leme|NotCongrue|(?:n[gl]|l)eqsla|geqsla|q(?:uat)?i|perc|iiii|coni|cwi|awi|oi)nt|(?:(?:rightleftharpo|leftrightharpo|quaterni)on|(?:(?:N(?:ot(?:NestedLess|Greater|Less)|estedLess)L|(?:eqslant|gtr(?:eqq?)?)l|LessL)e|Greater(?:Equal)?Le|cro)s|(?:rightright|leftleft|upup)arrow|rightleftarrow|(?:(?:(?:righ|lef)tthree|divideon|b(?:igo|ox)|[lr]o)t|InvisibleT)ime|downdownarrow|(?:(?:smallset|tri|dot|box)m|PlusM)inu|(?:RoundImpli|complex|Impli|Otim)e|C(?:ircle(?:Time|Minu|Plu)|ayley|ros)|(?:rationa|mode)l|NotExist|(?:(?:UnionP|MinusP|(?:b(?:ig[ou]|ox)|tri|s(?:u[bp]|im)|dot|xu|mn)p)l|(?:xo|u)pl|o(?:min|pl)|ropl|lopl|epl)u|otimesa|integer|e(?:linter|qual)|setminu|rarrbf|larrb?f|olcros|rarrf|mstpo|lesge|gesle|Exist|[lr]time|strn|napo|fltn|ccap|apo)s|(?:b(?:(?:lack|ig)triangledow|etwee)|(?:righ|lef)tharpoondow|(?:triangle|mapsto)dow|(?:nv|i)infi|ssetm|plusm|lagra|d(?:[lr]cor|isi)|c(?:ompf|aro)|s?frow|(?:hyph|curr)e|kgree|thor|ogo|ye)n|Not(?:Righ|Lef)tTriangle|(?:Up(?:Arrow)?|Short)DownArrow|(?:(?:n(?:triangle(?:righ|lef)t|succ|prec)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|backsim)e|lvertneq|gvertneq|(?:suc|pre)cneq|a(?:pprox|symp)e|(?:succ|prec|vee)e|circe)q|(?:UnderParenthes|OverParenthes|xn)is|(?:(?:Righ|Lef)tDown|Right(?:Up)?|Left(?:Up)?)Vector|D(?:o(?:wn(?:RightVector|LeftVector|Arrow|Tee)|t)|el|D)|l(?:eftrightarrows|br(?:k(?:sl[du]|e)|ac[ek])|tri[ef]|s(?:im[eg]|qb|h)|hard|a(?:tes|ngd|p)|o[pz]f|rm|gE|fr|eg|cy)|(?:NotHumpDownHum|(?:righ|lef)tharpoonu|big(?:(?:triangle|sqc)u|c[au])|HumpDownHum|m(?:apstou|lc)|(?:capbr|xsq)cu|smash|rarr[al]|(?:weie|sha)r|larrl|velli|(?:thin|punc)s|h(?:elli|airs)|(?:u[lr]c|vp)ro|d[lr]cro|c(?:upc[au]|apc[au])|thka|scna|prn?a|oper|n(?:ums|va|cu|bs)|ens|xc[au]|Ma)p|l(?:eftrightarrow|e(?:ftarrow|s(?:dot)?)?|moust|a(?:rrb?|te?|ng)|t(?:ri)?|sim|par|oz|[gl])|n(?:triangle(?:righ|lef)t|succ|prec)|SquareSu(?:per|b)set|(?:I(?:nvisibleComm|ot)|(?:varthe|iio)t|varkapp|(?:vars|S)igm|(?:diga|mco)mm|Cedill|lambd|Lambd|delt|Thet|omeg|Omeg|Kapp|Delt|nabl|zet|to[es]|rdc|ldc|iot|Zet|Bet|Et)a|b(?:lacktriangle|arwed|u(?:mpe?|ll)|sol|o(?:x[HVhv]|t)|brk|ne)|(?:trianglerigh|trianglelef|sqsu[bp]se|ques)t|RightT(?:riangl|e)e|(?:(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|nsu[bp]seteq|colone|(?:wedg|sim)e|nsime|lneq|gneq)q|DifferentialD|(?:(?:fall|ris)ingdots|(?:suc|pre)ccurly|ddots)eq|A(?:pplyFunction|ssign|(?:tild|grav|brev)e|acute|o(?:gon|pf)|lpha|(?:mac|sc|f)r|c(?:irc|y)|ring|Elig|uml|nd|MP)|(?:varsu[bp]setn|su(?:psetn?|bsetn?))eq|L(?:eft(?:T(?:riangl|e)e|Arrow)|l)|G(?:reaterEqual|amma)|E(?:xponentialE|quilibrium|sim|cy|TH|NG)|(?:(?:RightCeil|LeftCeil|varnoth|ar|Ur)in|(?:b(?:ack)?co|uri)n|vzigza|roan|loan|ffli|amal|sun|rin|n(?:tl|an)|Ran|Lan)g|(?:thick|succn?|precn?|less|g(?:tr|n)|ln|n)approx|(?:s(?:traightph|em)|(?:rtril|xu|u[lr]|xd|v[lr])tr|varph|l[lr]tr|b(?:sem|eps)|Ph)i|(?:circledd|osl|n(?:v[Dd]|V[Dd]|d)|hsl|V(?:vd|D)|Osl|v[Dd]|md)ash|(?:(?:RuleDelay|imp|cuw)e|(?:n(?:s(?:hort)?)?|short|rn)mi|D(?:Dotrah|iamon)|(?:i(?:nt)?pr|peri)o|odsol|llhar|c(?:opro|irmi)|(?:capa|anda|pou)n|Barwe|napi|api)d|(?:cu(?:rlyeq(?:suc|pre)|es)|telre|[ou]dbla|Udbla|Odbla|radi|lesc|gesc|dbla)c|(?:circled|big|eq|[CEGHSWachiswx])circ|rightarrow|R(?:ightArrow|arr|e)|Pr(?:oportion)?|(?:longmapst|varpropt|p(?:lustw|ropt)|varrh|numer|(?:rsa|lsa|sb)qu|m(?:icr|h)|[lr]aqu|bdqu|eur)o|UnderBrace|ImaginaryI|B(?:ernoullis|a(?:ckslash|rv)|umpeq|cy)|(?:(?:Laplace|Mellin|zee)tr|Fo(?:uriertr|p)|(?:profsu|ssta)r|ordero|origo|[ps]op|nop|mop|i(?:op|mo)|h(?:op|al)|f(?:op|no)|dop|bop|Rop|Pop|Nop|Lop|Iop|Hop|Dop|[GJKMOQSTV-Zgjkoqvwyz]op|Bop)f|nsu[bp]seteq|t(?:ri(?:angleq|e)|imesd|he(?:tav|re4)|au)|O(?:verBrace|r)|(?:(?:pitchfo|checkma|t(?:opfo|b)|rob|rbb|l[bo]b)r|intlarh|b(?:brktbr|l(?:oc|an))|perten|NoBrea|rarrh|s[ew]arh|n[ew]arh|l(?:arrh|hbl)|uhbl|Hace)k|(?:NotCupC|(?:mu(?:lti)?|x)m|cupbrc)ap|t(?:riangle|imes|heta|opf?)|Precedes|Succeeds|Superset|NotEqual|(?:n(?:atural|exist|les)|s(?:qc[au]p|mte)|prime)s|c(?:ir(?:cled[RS]|[Ee])|u(?:rarrm|larrp|darr[lr]|ps)|o(?:mmat|pf)|aps|hi)|b(?:sol(?:hsu)?b|ump(?:eq|E)|ox(?:box|[Vv][HLRhlr]|[Hh][DUdu]|[DUdu][LRlr])|e(?:rnou|t[ah])|lk(?:34|1[24])|cy)|(?:l(?:esdot|squ|dqu)o|rsquo|rdquo|ngt)r|a(?:n(?:g(?:msda[a-h]|st|e)|d[dv])|st|p[Ee]|mp|fr|c[Edy])|(?:g(?:esdoto|E)|[lr]haru)l|(?:angrtvb|lrhar|nis)d|(?:(?:th(?:ic)?k|succn?|p(?:r(?:ecn?|n)?|lus)|rarr|l(?:ess|arr)|su[bp]|par|scn|g(?:tr|n)|ne|sc|n[glv]|ln|eq?)si|thetasy|ccupss|alefsy|botto)m|trpezium|(?:hks[ew]|dr?bk|bk)arow|(?:(?:[lr]a|[cd])empty|b(?:nequi|empty)|plank|nequi|odi)v|(?:(?:sc|rp|n)pol|point|fpart)int|(?:c(?:irf|wco)|awco)nint|PartialD|n(?:s(?:u[bp](?:set)?|c)|rarr|ot(?:ni|in)?|warr|e(?:arr)?|a(?:tur|p)|vlt|p(?:re?|ar)|um?|l[et]|ge|i)|n(?:atural|exist|les)|d(?:i(?:am(?:ond)?|v(?:ide)?)|tri|ash|ot|d)|backsim|l(?:esdot|squ|dqu)o|g(?:esdoto|E)|U(?:p(?:Arrow|si)|nion|arr)|angrtvb|p(?:l(?:anckh|us(?:d[ou]|[be]))|ar(?:sl|t)|r(?:od|nE|E)|erp|iv|m)|n(?:ot(?:niv[abc]|in(?:v[abc]|E))|rarr[cw]|s(?:u[bp][Ee]|c[er])|part|v(?:le|g[et])|g(?:es|E)|c(?:ap|y)|apE|lE|iv|Ll|Gg)|m(?:inus(?:du|b)|ale|cy|p)|rbr(?:k(?:sl[du]|e)|ac[ek])|(?:suphsu|tris|rcu|lcu)b|supdsub|(?:s[ew]a|n[ew]a)rrow|(?:b(?:ecaus|sim)|n(?:[lr]tri|bump)|csu[bp])e|equivDD|u(?:rcorn|lcorn|psi)|timesb|s(?:u(?:p(?:set)?|b(?:set)?)|q(?:su[bp]|u)|i(?:gma|m)|olb?|dot|mt|fr|ce?)|p(?:l(?:anck|us)|r(?:op|ec?)?|ara?|i)|o(?:times|r(?:d(?:er)?)?)|m(?:i(?:nusd?|d)|a(?:p(?:sto)?|lt)|u)|rmoust|g(?:e(?:s(?:dot|l)?|q)?|sim|n(?:ap|e)|[glt])|(?:spade|heart)s|c(?:u(?:rarr|larr|p)|o(?:m(?:ma|p)|lon|py|ng)|lubs|heck|cups|irc?|ent|ap)|colone|a(?:p(?:prox)?|n(?:g(?:msd|rt)?|d)|symp|[cf])|S(?:quare|u[bp]|c)|Subset|b(?:ecaus|sim)|vsu[bp]n[Ee]|s(?:u(?:psu[bp]|b(?:su[bp]|n[Ee]|E)|pn[Ee]|p[123E]|m)|q(?:u(?:ar[ef]|f)|su[bp]e)|igma[fv]|etmn|dot[be]|par|mid|hc?y|c[Ey])|f(?:rac(?:78|5[68]|45|3[458]|2[35]|1[2-68])|fr)|e(?:m(?:sp1[34]|ptyv)|psiv|c(?:irc|y)|t[ah]|ng|ll|fr|e)|(?:kappa|isins|vBar|fork|rho|phi|n[GL]t)v|divonx|V(?:dashl|ee)|gammad|G(?:ammad|cy|[Tgt])|[Ldhlt]strok|[HT]strok|(?:c(?:ylct|hc)|(?:s(?:oft|hch)|hard|S(?:OFT|HCH)|jser|J(?:ser|uk)|HARD|tsh|TSH|juk|iuk|I(?:uk|[EO])|zh|yi|nj|lj|k[hj]|gj|dj|ZH|Y[AIU]|NJ|LJ|K[HJ]|GJ|D[JSZ])c|ubrc|Ubrc|(?:yu|i[eo]|dz|[fpv])c|TSc|SHc|CHc|Vc|Pc|Mc|Fc)y|(?:(?:wre|jm)at|dalet|a(?:ngs|le)p|imat|[lr]ds)h|[CLRUceglnou]acute|ff?llig|(?:f(?:fi|[ij])|sz|oe|ij|ae|OE|IJ)lig|r(?:a(?:tio|rr|ng)|tri|par|eal)|s[ew]arr|s(?:qc[au]p|mte)|prime|rarrb|i(?:n(?:fin|t)?|sin|[cit])|e(?:quiv|m(?:pty|sp)|p(?:si|ar)|cir|[gl])|kappa|isins|ncong|doteq|(?:wedg|sim)e|nsime|rsquo|rdquo|[lr]haru|V(?:dash|ert)|Tilde|lrhar|gamma|Equal|UpTee|n(?:[lr]tri|bump)|C(?:olon|up|ap)|v(?:arpi|ert)|u(?:psih|ml)|vnsu[bp]|r(?:tri[ef]|e(?:als|g)|a(?:rr[cw]|ng[de]|ce)|sh|lm|x)|rhard|sim[gl]E|i(?:sin[Ev]|mage|f[fr]|cy)|harrw|(?:n[gl]|l)eqq|g(?:sim[el]|tcc|e(?:qq|l)|nE|l[Eaj]|gg|ap)|ocirc|starf|utrif|d(?:trif|i(?:ams|e)|ashv|sc[ry]|fr|eg)|[du]har[lr]|T(?:HORN|a[bu])|(?:TRAD|[gl]vn)E|odash|[EUaeu]o(?:gon|pf)|alpha|[IJOUYgjuy]c(?:irc|y)|v(?:arr|ee)|succ|sim[gl]|harr|ln(?:ap|e)|lesg|(?:n[gl]|l)eq|ocir|star|utri|vBar|fork|su[bp]e|nsim|lneq|gneq|csu[bp]|zwn?j|yacy|x(?:opf|i)|scnE|o(?:r(?:d[fm]|v)|mid|lt|hm|gt|fr|cy|S)|scap|rsqb|ropf|ltcc|tsc[ry]|QUOT|[EOUYao]uml|rho|phi|n[GL]t|e[gl]s|ngt|I(?:nt|m)|nis|rfr|rcy|lnE|lEg|ufr|S(?:um|cy)|R(?:sh|ho)|psi|Ps?i|[NRTt]cy|L(?:sh|cy|[Tt])|kcy|Kcy|Hat|REG|[Zdz]cy|wr|lE|wp|Xi|Nu|Mu)(;)","name":"constant.language.character-reference.named.html"}},"scopeName":"source.mdx","embeddedLangs":[],"embeddedLangsLazy":["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","shellsession","sql","xml","swift","typescript"]}'))];export{e as default}; diff --git a/docs/assets/memoize-DN0TMY36.js b/docs/assets/memoize-DN0TMY36.js new file mode 100644 index 0000000..b78b06d --- /dev/null +++ b/docs/assets/memoize-DN0TMY36.js @@ -0,0 +1 @@ +import{r as p}from"./_Uint8Array-BGESiCQL.js";var u="Expected a function";function c(o,t){if(typeof o!="function"||t!=null&&typeof t!="function")throw TypeError(u);var e=function(){var a=arguments,n=t?t.apply(this,a):a[0],r=e.cache;if(r.has(n))return r.get(n);var f=o.apply(this,a);return e.cache=r.set(n,f)||r,f};return e.cache=new(c.Cache||p),e}c.Cache=p;var h=c;export{h as t}; diff --git a/docs/assets/menu-items-9PZrU2e0.js b/docs/assets/menu-items-9PZrU2e0.js new file mode 100644 index 0000000..b7b7c2c --- /dev/null +++ b/docs/assets/menu-items-9PZrU2e0.js @@ -0,0 +1 @@ +import{s as M}from"./chunk-LvLJmgfZ.js";import{t as O}from"./react-BGmjiNul.js";import{t as P}from"./compiler-runtime-DeeZ7FnK.js";import{r as S}from"./useEventListener-COkmyg1v.js";import{t as _}from"./jsx-runtime-DN_bIXfG.js";import{n as u,t as v}from"./cn-C1rgT0yh.js";import{E as q,y as N}from"./Combination-D1TsGrBC.js";var a=M(O(),1),p=M(_(),1);function z(t){let e=t+"CollectionProvider",[o,n]=q(e),[s,l]=o(e,{collectionRef:{current:null},itemMap:new Map}),h=d=>{let{scope:r,children:c}=d,i=a.useRef(null),m=a.useRef(new Map).current;return(0,p.jsx)(s,{scope:r,itemMap:m,collectionRef:i,children:c})};h.displayName=e;let x=t+"CollectionSlot",A=N(x),y=a.forwardRef((d,r)=>{let{scope:c,children:i}=d;return(0,p.jsx)(A,{ref:S(r,l(x,c).collectionRef),children:i})});y.displayName=x;let g=t+"CollectionItemSlot",w="data-radix-collection-item",k=N(g),R=a.forwardRef((d,r)=>{let{scope:c,children:i,...m}=d,f=a.useRef(null),I=S(r,f),C=l(g,c);return a.useEffect(()=>(C.itemMap.set(f,{ref:f,...m}),()=>{C.itemMap.delete(f)})),(0,p.jsx)(k,{[w]:"",ref:I,children:i})});R.displayName=g;function E(d){let r=l(t+"CollectionConsumer",d);return a.useCallback(()=>{let c=r.collectionRef.current;if(!c)return[];let i=Array.from(c.querySelectorAll(`[${w}]`));return Array.from(r.itemMap.values()).sort((m,f)=>i.indexOf(m.ref.current)-i.indexOf(f.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:h,Slot:y,ItemSlot:R},E,n]}var V=a.createContext(void 0);function $(t){let e=a.useContext(V);return t||e||"ltr"}var B=P();const D=u("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",{variants:{subcontent:{true:"shadow-lg"}}}),F=u("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",{variants:{inset:{true:"pl-8"}}}),b="data-disabled:pointer-events-none data-disabled:opacity-50",G=u(v("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground",b),{variants:{}}),H=u("absolute left-2 flex h-3.5 w-3.5 items-center justify-center",{variants:{}}),J=u("px-2 py-1.5 text-sm font-semibold",{variants:{inset:{true:"pl-8"}}}),K=u(v("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden",b),{variants:{inset:{true:"pl-8"},variant:{default:"focus:bg-accent focus:text-accent-foreground aria-selected:bg-accent aria-selected:text-accent-foreground",danger:"focus:bg-(--red-5) focus:text-(--red-12) aria-selected:bg-(--red-5) aria-selected:text-(--red-12)",muted:"focus:bg-muted/70 focus:text-muted-foreground aria-selected:bg-muted/70 aria-selected:text-muted-foreground",success:"focus:bg-(--grass-3) focus:text-(--grass-11) aria-selected:bg-(--grass-3) aria-selected:text-(--grass-11)",disabled:"text-muted-foreground"}},defaultVariants:{variant:"default"}}),L=u("-mx-1 my-1 h-px bg-border last:hidden",{variants:{}}),j=t=>{let e=(0,B.c)(8),o,n;e[0]===t?(o=e[1],n=e[2]):({className:o,...n}=t,e[0]=t,e[1]=o,e[2]=n);let s;e[3]===o?s=e[4]:(s=v("ml-auto text-xs tracking-widest opacity-60",o),e[3]=o,e[4]=s);let l;return e[5]!==n||e[6]!==s?(l=(0,p.jsx)("span",{className:s,...n}),e[5]=n,e[6]=s,e[7]=l):l=e[7],l};j.displayName="MenuShortcut";export{G as a,L as c,z as d,H as i,F as l,j as n,K as o,D as r,J as s,b as t,$ as u}; diff --git a/docs/assets/merge-BBX6ug-N.js b/docs/assets/merge-BBX6ug-N.js new file mode 100644 index 0000000..9545571 --- /dev/null +++ b/docs/assets/merge-BBX6ug-N.js @@ -0,0 +1 @@ +import{C as _,E as Y,S as P,_ as Z,a as $,b as rr,d as A,g as b,m as g,n as nr,o as tr,p as S,s as er,t as T,u as or,v as ar,w as ur,x as s}from"./_Uint8Array-BGESiCQL.js";import{n as C,t as cr}from"./_baseFor-Duhs3RiJ.js";var D=Object.create,ir=(function(){function r(){}return function(n){if(!s(n))return{};if(D)return D(n);r.prototype=n;var t=new r;return r.prototype=void 0,t}})();function fr(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var vr=fr;function sr(r,n){var t=-1,e=r.length;for(n||(n=Array(e));++t<e;)n[t]=r[t];return n}var E=sr,lr=800,pr=16,dr=Date.now;function yr(r){var n=0,t=0;return function(){var e=dr(),a=pr-(e-t);if(t=e,a>0){if(++n>=lr)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}var br=yr;function gr(r){return function(){return r}}var F=gr,l=(function(){try{var r=ar(Object,"defineProperty");return r({},"",{}),r}catch{}})(),L=br(l?function(r,n){return l(r,"toString",{configurable:!0,enumerable:!1,value:F(n),writable:!0})}:C);function hr(r,n,t){n=="__proto__"&&l?l(r,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[n]=t}var p=hr,mr=Object.prototype.hasOwnProperty;function Or(r,n,t){var e=r[n];(!(mr.call(r,n)&&b(e,t))||t===void 0&&!(n in r))&&p(r,n,t)}var M=Or;function wr(r,n,t,e){var a=!t;t||(t={});for(var u=-1,i=n.length;++u<i;){var o=n[u],c=e?e(t[o],r[o],o,t,r):void 0;c===void 0&&(c=r[o]),a?p(t,o,c):M(t,o,c)}return t}var k=wr,B=Math.max;function jr(r,n,t){return n=B(n===void 0?r.length-1:n,0),function(){for(var e=arguments,a=-1,u=B(e.length-n,0),i=Array(u);++a<u;)i[a]=e[n+a];a=-1;for(var o=Array(n+1);++a<n;)o[a]=e[a];return o[n]=t(i),vr(r,this,o)}}var I=jr;function xr(r,n){return L(I(r,n,C),r+"")}var N=xr;function _r(r,n,t){if(!s(t))return!1;var e=typeof n;return(e=="number"?g(t)&&Z(n,t.length):e=="string"&&n in t)?b(t[n],r):!1}var U=_r;function Pr(r){return N(function(n,t){var e=-1,a=t.length,u=a>1?t[a-1]:void 0,i=a>2?t[2]:void 0;for(u=r.length>3&&typeof u=="function"?(a--,u):void 0,i&&U(t[0],t[1],i)&&(u=a<3?void 0:u,a=1),n=Object(n);++e<a;){var o=t[e];o&&r(n,o,e,u)}return n})}var Ar=Pr;function Sr(r){var n=[];if(r!=null)for(var t in Object(r))n.push(t);return n}var Tr=Sr,Cr=Object.prototype.hasOwnProperty;function Dr(r){if(!s(r))return Tr(r);var n=S(r),t=[];for(var e in r)e=="constructor"&&(n||!Cr.call(r,e))||t.push(e);return t}var Er=Dr;function Fr(r){return g(r)?tr(r,!0):Er(r)}var h=Fr,m=$(Object.getPrototypeOf,Object),Lr="[object Object]",Mr=Function.prototype,kr=Object.prototype,q=Mr.toString,Br=kr.hasOwnProperty,Ir=q.call(Object);function Nr(r){if(!_(r)||ur(r)!=Lr)return!1;var n=m(r);if(n===null)return!0;var t=Br.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&q.call(t)==Ir}var Ur=Nr,z=typeof exports=="object"&&exports&&!exports.nodeType&&exports,G=z&&typeof module=="object"&&module&&!module.nodeType&&module,H=G&&G.exports===z?Y.Buffer:void 0,J=H?H.allocUnsafe:void 0;function qr(r,n){if(n)return r.slice();var t=r.length,e=J?J(t):new r.constructor(t);return r.copy(e),e}var K=qr;function zr(r){var n=new r.constructor(r.byteLength);return new T(n).set(new T(r)),n}var Q=zr;function Gr(r,n){var t=n?Q(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var R=Gr;function Hr(r){return typeof r.constructor=="function"&&!S(r)?ir(m(r)):{}}var V=Hr;function Jr(r,n,t){(t!==void 0&&!b(r[n],t)||t===void 0&&!(n in r))&&p(r,n,t)}var O=Jr;function Kr(r){return _(r)&&g(r)}var W=Kr;function Qr(r,n){if(!(n==="constructor"&&typeof r[n]=="function")&&n!="__proto__")return r[n]}var w=Qr;function Rr(r){return k(r,h(r))}var Vr=Rr;function Wr(r,n,t,e,a,u,i){var o=w(r,t),c=w(n,t),j=i.get(c);if(j){O(r,t,j);return}var f=u?u(o,c,t+"",r,n,i):void 0,v=f===void 0;if(v){var d=P(c),y=!d&&or(c),x=!d&&!y&&er(c);f=c,d||y||x?P(o)?f=o:W(o)?f=E(o):y?(v=!1,f=K(c,!0)):x?(v=!1,f=R(c,!0)):f=[]:Ur(c)||A(c)?(f=o,A(o)?f=Vr(o):(!s(o)||rr(o))&&(f=V(c))):v=!1}v&&(i.set(c,f),a(f,c,e,u,i),i.delete(c)),O(r,t,f)}var Xr=Wr;function X(r,n,t,e,a){r!==n&&cr(n,function(u,i){if(a||(a=new nr),s(u))Xr(r,n,i,t,X,e,a);else{var o=e?e(w(r,i),u,i+"",r,n,a):void 0;o===void 0&&(o=u),O(r,i,o)}},h)}var Yr=X,Zr=Ar(function(r,n,t){Yr(r,n,t)});export{E as _,Q as a,h as c,I as d,k as f,F as g,L as h,R as i,U as l,p as m,W as n,K as o,M as p,V as r,m as s,Zr as t,N as u}; diff --git a/docs/assets/mermaid-D5KHoN__.js b/docs/assets/mermaid-D5KHoN__.js new file mode 100644 index 0000000..593370f --- /dev/null +++ b/docs/assets/mermaid-D5KHoN__.js @@ -0,0 +1 @@ +import{s as p}from"./chunk-LvLJmgfZ.js";import"./useEvent-DlWF5OMa.js";import{t as f}from"./react-BGmjiNul.js";import{t as u}from"./compiler-runtime-DeeZ7FnK.js";import{d as h}from"./hotkeys-uKX61F1_.js";import{t as c}from"./jsx-runtime-DN_bIXfG.js";import{r as M}from"./useTheme-BSVRc0kJ.js";import"./purify.es-N-2faAGj.js";import{n as v}from"./useAsyncData-Dj1oqsrZ.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import"./chunk-S3R3BYOJ-By1A-M0T.js";import"./src-faGJHwXX.js";import"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-EXTU4WIE-GbJyzeBy.js";import"./chunk-MI3HLSF2-CXMqGP2w.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import"./chunk-N4CR4FBY-DtYoI569.js";import{t as l}from"./mermaid.core-iFdtpd1M.js";var b=u(),x=p(f(),1),w=p(c(),1),y={startOnLoad:!0,theme:"forest",logLevel:"fatal",securityLevel:"strict",fontFamily:"var(--text-font)",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!0,curve:"linear"},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};function S(){return Array.from({length:6},()=>"abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)]).join("")}var L=g=>{let r=(0,b.c)(9),{diagram:a}=g,[t]=(0,x.useState)(k),e=M().theme==="dark";l.initialize({...y,theme:e?"dark":"forest",darkMode:e});let i;r[0]!==a||r[1]!==t?(i=async()=>(await l.render(t,a,void 0).catch(d=>{var s;throw(s=document.getElementById(t))==null||s.remove(),h.warn("Failed to render mermaid diagram",d),d})).svg,r[0]=a,r[1]=t,r[2]=i):i=r[2];let o;r[3]!==e||r[4]!==a||r[5]!==t?(o=[a,t,e],r[3]=e,r[4]=a,r[5]=t,r[6]=o):o=r[6];let{data:m}=v(i,o);if(!m)return null;let n;return r[7]===m?n=r[8]:(n=(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:m}}),r[7]=m,r[8]=n),n};function k(){return S()}export{L as default}; diff --git a/docs/assets/mermaid-DxlVH6ic.js b/docs/assets/mermaid-DxlVH6ic.js new file mode 100644 index 0000000..842089d --- /dev/null +++ b/docs/assets/mermaid-DxlVH6ic.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Mermaid","fileTypes":[],"injectionSelector":"L:text.html.markdown","name":"mermaid","patterns":[{"include":"#mermaid-code-block"},{"include":"#mermaid-code-block-with-attributes"},{"include":"#mermaid-ado-code-block"}],"repository":{"mermaid":{"patterns":[{"begin":"^\\\\s*(architecture-beta)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"4":{"name":"string"},"5":{"name":"keyword.control.mermaid"},"6":{"name":"string"},"7":{"name":"punctuation.definition.typeparameters.end.mermaid"},"8":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"9":{"name":"string"},"10":{"name":"punctuation.definition.typeparameters.end.mermaid"},"11":{"name":"keyword.control.mermaid"},"12":{"name":"variable"}},"match":"(?i)\\\\s*(group|service)\\\\s+([-\\\\w]+)\\\\s*(\\\\()?([-\\\\w\\\\s]+)?(:)?([-\\\\w\\\\s]+)?(\\\\))?\\\\s*(\\\\[)?([-\\\\w\\\\s]+)?\\\\s*(])?\\\\s*(in)?\\\\s*([-\\\\w]+)?"},{"captures":{"1":{"name":"variable"},"2":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"3":{"name":"variable"},"4":{"name":"punctuation.definition.typeparameters.end.mermaid"},"5":{"name":"keyword.control.mermaid"},"6":{"name":"entity.name.function.mermaid"},"7":{"name":"keyword.control.mermaid"},"8":{"name":"entity.name.function.mermaid"},"9":{"name":"keyword.control.mermaid"},"10":{"name":"variable"},"11":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"12":{"name":"variable"},"13":{"name":"punctuation.definition.typeparameters.end.mermaid"}},"match":"(?i)\\\\s*([-\\\\w]+)\\\\s*(\\\\{)?\\\\s*(group)?(})?\\\\s*(:)\\\\s*([BLRT])\\\\s+(<?-->?)\\\\s+([BLRT])\\\\s*(:)\\\\s*([-\\\\w]+)\\\\s*(\\\\{)?\\\\s*(group)?(})?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"variable"}},"match":"(?i)\\\\s*(junction)\\\\s+([-\\\\w]+)\\\\s*(in)?\\\\s*([-\\\\w]+)?"}]},{"begin":"^\\\\s*(classDiagram)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"entity.name.type.class.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"entity.name.type.class.mermaid"},"6":{"name":"keyword.control.mermaid"},"7":{"name":"string"}},"match":"(?i)([-\\\\w]+)\\\\s(\\"(?:\\\\d+|\\\\*|0..\\\\d+|1..\\\\d+|1..\\\\*)\\")?\\\\s?(--o|--\\\\*|<--|-->|<\\\\.\\\\.|\\\\.\\\\.>|<\\\\|\\\\.\\\\.|\\\\.\\\\.\\\\|>|<\\\\|--|--\\\\|>|--\\\\*?|\\\\.\\\\.|\\\\*--|o--)\\\\s(\\"(?:\\\\d+|\\\\*|0..\\\\d+|1..\\\\d+|1..\\\\*)\\")?\\\\s?([-\\\\w]+)\\\\s?(:)?\\\\s(.*)$"},{"captures":{"1":{"name":"entity.name.type.class.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"entity.name.function.mermaid"},"5":{"name":"punctuation.parenthesis.open.mermaid"},"6":{"name":"storage.type.mermaid"},"7":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"8":{"name":"storage.type.mermaid"},"9":{"name":"punctuation.definition.typeparameters.end.mermaid"},"10":{"name":"entity.name.variable.parameter.mermaid"},"11":{"name":"punctuation.parenthesis.closed.mermaid"},"12":{"name":"keyword.control.mermaid"},"13":{"name":"storage.type.mermaid"},"14":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"15":{"name":"storage.type.mermaid"},"16":{"name":"punctuation.definition.typeparameters.end.mermaid"}},"match":"(?i)([-\\\\w]+)\\\\s?(:)\\\\s([-#+~])?([-\\\\w]+)(\\\\()([-\\\\w]+)?(~)?([-\\\\w]+)?(~)?\\\\s?([-\\\\w]+)?(\\\\))([$*]{0,2})\\\\s?([-\\\\w]+)?(~)?([-\\\\w]+)?(~)?$"},{"captures":{"1":{"name":"entity.name.type.class.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"storage.type.mermaid"},"5":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"6":{"name":"storage.type.mermaid"},"7":{"name":"punctuation.definition.typeparameters.end.mermaid"},"8":{"name":"entity.name.variable.field.mermaid"}},"match":"(?i)([-\\\\w]+)\\\\s?(:)\\\\s([-#+~])?([-\\\\w]+)(~)?([-\\\\w]+)?(~)?\\\\s([-\\\\w]+)?$"},{"captures":{"1":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"2":{"name":"storage.type.mermaid"},"3":{"name":"punctuation.definition.typeparameters.end.mermaid"},"4":{"name":"entity.name.type.class.mermaid"}},"match":"(?i)(<<)([-\\\\w]+)(>>)\\\\s?([-\\\\w]+)?"},{"begin":"(?i)(class)\\\\s+([-\\\\w]+)(~)?([-\\\\w]+)?(~)?\\\\s?(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.type.class.mermaid"},"3":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"4":{"name":"storage.type.mermaid"},"5":{"name":"punctuation.definition.typeparameters.end.mermaid"},"6":{"name":"keyword.control.mermaid"}},"end":"(})","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"match":"%%.*","name":"comment"},{"begin":"(?i)\\\\s([-#+~])?([-\\\\w]+)(\\\\()","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"},"3":{"name":"punctuation.parenthesis.open.mermaid"}},"end":"(?i)(\\\\))([$*]{0,2})\\\\s?([-\\\\w]+)?(~)?([-\\\\w]+)?(~)?$","endCaptures":{"1":{"name":"punctuation.parenthesis.closed.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"storage.type.mermaid"},"4":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"5":{"name":"storage.type.mermaid"},"6":{"name":"punctuation.definition.typeparameters.end.mermaid"}},"patterns":[{"captures":{"1":{"name":"storage.type.mermaid"},"2":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"3":{"name":"storage.type.mermaid"},"4":{"name":"punctuation.definition.typeparameters.end.mermaid"},"5":{"name":"entity.name.variable.parameter.mermaid"}},"match":"(?i)\\\\s*,?\\\\s*([-\\\\w]+)?(~)?([-\\\\w]+)?(~)?\\\\s?([-\\\\w]+)?"}]},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"storage.type.mermaid"},"3":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"4":{"name":"storage.type.mermaid"},"5":{"name":"punctuation.definition.typeparameters.end.mermaid"},"6":{"name":"entity.name.variable.field.mermaid"}},"match":"(?i)\\\\s([-#+~])?([-\\\\w]+)(~)?([-\\\\w]+)?(~)?\\\\s([-\\\\w]+)?$"},{"captures":{"1":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"2":{"name":"storage.type.mermaid"},"3":{"name":"punctuation.definition.typeparameters.end.mermaid"},"4":{"name":"entity.name.type.class.mermaid"}},"match":"(?i)(<<)([-\\\\w]+)(>>)\\\\s?([-\\\\w]+)?"}]},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.type.class.mermaid"},"3":{"name":"punctuation.definition.typeparameters.begin.mermaid"},"4":{"name":"storage.type.mermaid"},"5":{"name":"punctuation.definition.typeparameters.end.mermaid"}},"match":"(?i)(class)\\\\s+([-\\\\w]+)(~)?([-\\\\w]+)?(~)?"}]},{"begin":"^\\\\s*(erDiagram)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"},"4":{"name":"keyword.control.mermaid"}},"match":"(?i)^\\\\s*([-\\\\w]+)\\\\s*(\\\\[)?\\\\s*([-\\\\w]+|\\"[-\\\\w\\\\s]+\\")?\\\\s*(])?$"},{"begin":"(?i)\\\\s+([-\\\\w]+)\\\\s*(\\\\[)?\\\\s*([-\\\\w]+|\\"[-\\\\w\\\\s]+\\")?\\\\s*(])?\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"keyword.control.mermaid"}},"end":"(})","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"captures":{"1":{"name":"storage.type.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"string"}},"match":"(?i)\\\\s*([-\\\\w]+)\\\\s+([-\\\\w]+)\\\\s+([FPU]K(?:,\\\\s*[FPU]K){0,2})?\\\\s*(\\"[!-(*-/:-?\\\\\\\\^\\\\w\\\\s]*\\")?\\\\s*"},{"match":"%%.*","name":"comment"}]},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"variable"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"string"}},"match":"(?i)\\\\s*([-\\\\w]+)\\\\s*((?:\\\\|o|\\\\|\\\\||}o|}\\\\||one or (?:zero|more|many)|zero or (?:one|more|many)|many\\\\([01]\\\\)|only one|0\\\\+|1\\\\+?)(?:..|--)(?:o\\\\||\\\\|\\\\||o\\\\{|\\\\|\\\\{|one or (?:zero|more|many)|zero or (?:one|more|many)|many\\\\([01]\\\\)|only one|0\\\\+|1\\\\+?))\\\\s*([-\\\\w]+)\\\\s*(:)\\\\s*(\\"[\\\\w\\\\s]*\\"|[-\\\\w]+)"}]},{"begin":"^\\\\s*(gantt)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"match":"(?i)^\\\\s*(dateFormat)\\\\s+([-.\\\\w]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"match":"(?i)^\\\\s*(axisFormat)\\\\s+([-%./\\\\\\\\\\\\w]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)(tickInterval)\\\\s+(([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month))"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(title)\\\\s+(\\\\s*[!-/:-?\\\\\\\\^\\\\w\\\\s]*)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(excludes)\\\\s+((?:[-,\\\\d\\\\s]|monday|tuesday|wednesday|thursday|friday|saturday|sunday|weekends)+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s+(todayMarker)\\\\s+(.*)$"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(section)\\\\s+(\\\\s*[!-/:-?\\\\\\\\^\\\\w\\\\s]*)"},{"begin":"(?i)^\\\\s(.*)(:)","beginCaptures":{"1":{"name":"string"},"2":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"match":"(crit|done|active|after)","name":"entity.name.function.mermaid"},{"match":"%%.*","name":"comment"}]}]},{"begin":"^\\\\s*(gitGraph)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"begin":"(?i)^\\\\s*(commit)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"}},"match":"(?i)\\\\s*(id)(:)\\\\s?(\\"[^\\\\n\\"]*\\")"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"entity.name.function.mermaid"}},"match":"(?i)\\\\s*(type)(:)\\\\s?(NORMAL|REVERSE|HIGHLIGHT)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"}},"match":"(?i)\\\\s*(tag)(:)\\\\s?(\\"[!#-(*-/:-?\\\\\\\\^\\\\w\\\\s]*\\")"}]},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"}},"match":"(?i)^\\\\s*(checkout)\\\\s*([^\\"\\\\s]*)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"constant.numeric.decimal.mermaid"}},"match":"(?i)^\\\\s*(branch)\\\\s*([^\\"\\\\s]*)\\\\s*(?:(order)(:)\\\\s?(\\\\d+))?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"string"}},"match":"(?i)^\\\\s*(merge)\\\\s*([^\\"\\\\s]*)\\\\s*(?:(tag)(:)\\\\s?(\\"[^\\\\n\\"]*\\"))?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"string"}},"match":"(?i)^\\\\s*(cherry-pick)\\\\s+(id)(:)\\\\s*(\\"[^\\\\n\\"]*\\")"}]},{"begin":"^\\\\s*(graph|flowchart)\\\\s+([ 0-9\\\\p{L}]+)?","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"string"},"5":{"name":"keyword.control.mermaid"}},"match":"(?i)^\\\\s*(subgraph)\\\\s+(\\\\w+)(\\\\[)(\\"?[!#-\'*-/:<-?\\\\\\\\^`\\\\w\\\\s]*\\"?)(])"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"match":"^\\\\s*(subgraph)\\\\s+([ 0-9<>\\\\p{L}]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"match":"^(?i)\\\\s*(direction)\\\\s+(RB|BT|RL|TD|LR)"},{"match":"\\\\b(end)\\\\b","name":"keyword.control.mermaid"},{"begin":"(?i)\\\\b((?:(?!--|==)[-\\\\w])+\\\\b\\\\s*)(\\\\(\\\\[|\\\\[\\\\[|\\\\[\\\\(?|\\\\(+|[>{]|\\\\(\\\\()","beginCaptures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"}},"end":"(?i)(]\\\\)|]]|\\\\)]|]|\\\\)+|}|\\\\)\\\\))","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"begin":"\\\\s*(\\")","beginCaptures":{"1":{"name":"string"}},"end":"(\\")","endCaptures":{"1":{"name":"string"}},"patterns":[{"begin":"(?i)([^\\"]*)","beginCaptures":{"1":{"name":"string"}},"end":"(?=\\")","patterns":[{"captures":{"1":{"name":"comment"}},"match":"([^\\"]*)"}]}]},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s*([!#-\'*+,./:;<>?\\\\\\\\^_\\\\w\\\\s]+)"}]},{"begin":"(?i)\\\\s*((?:-?\\\\.{1,4}-|-{2,5}|={2,5})[>ox]?\\\\|)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(?i)(\\\\|)","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"begin":"\\\\s*(\\")","beginCaptures":{"1":{"name":"string"}},"end":"(\\")","endCaptures":{"1":{"name":"string"}},"patterns":[{"begin":"(?i)([^\\"]*)","beginCaptures":{"1":{"name":"string"}},"end":"(?=\\")","patterns":[{"captures":{"1":{"name":"comment"}},"match":"([^\\"]*)"}]}]},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s*([!#-\'*+,./:;<>?\\\\\\\\^_\\\\w\\\\s]+)"}]},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"},"3":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*([<ox]?(?:-{2,5}|={2,5}|-\\\\.{1,3}|-\\\\.))((?:(?!--|==)[!-\'*-/:<-?\\\\[-^`\\\\w\\\\s])*)((?:-{2,5}|={2,5}|\\\\.{1,3}-|\\\\.-)[>ox]?)"},{"captures":{"1":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*([<ox]?(?:-?\\\\.{1,4}-|-{1,4}|={1,4})[>ox]?)"},{"match":"\\\\b((?:(?!--|==)[-\\\\w])+\\\\b\\\\s*)","name":"variable"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"string"}},"match":"(?i)\\\\s*(class)\\\\s+\\\\b([-,\\\\w]+)\\\\s+\\\\b(\\\\w+)\\\\b"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"string"}},"match":"(?i)\\\\s*(classDef)\\\\s+\\\\b(\\\\w+)\\\\b\\\\s+\\\\b([-#,:;\\\\w]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"variable"},"4":{"name":"string"}},"match":"(?i)\\\\s*(click)\\\\s+\\\\b([-\\\\w]+\\\\b\\\\s*)(\\\\b\\\\w+\\\\b)?\\\\s(\\"*.*\\")"},{"begin":"\\\\s*(@\\\\{)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(})","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"},"3":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*(shape\\\\s*:)([^,}]*)(,)?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"},"3":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*(label\\\\s*:)([^,}]*)(,)?"}]}]},{"begin":"^\\\\s*(pie)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(title)\\\\s+(\\\\s*[!-/:-?\\\\\\\\^\\\\w\\\\s]*)"},{"begin":"(?i)\\\\s(.*)(:)","beginCaptures":{"1":{"name":"string"},"2":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"match":"%%.*","name":"comment"}]}]},{"begin":"^\\\\s*(quadrantChart)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(title)\\\\s*([!-/:-?\\\\\\\\^\\\\w\\\\s]*)"},{"begin":"(?i)^\\\\s*([xy]-axis)\\\\s+((?:(?!-->)[!#-\'*-/=?\\\\\\\\\\\\w\\\\s])*)","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"end":"$","patterns":[{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)\\\\s*(-->)\\\\s*([!#-\'*-/=?\\\\\\\\\\\\w\\\\s]*)"}]},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(quadrant-[1-4])\\\\s*([!-/:-?\\\\\\\\^\\\\w\\\\s]*)"},{"captures":{"1":{"name":"string"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"constant.numeric.decimal.mermaid"},"5":{"name":"keyword.control.mermaid"},"6":{"name":"constant.numeric.decimal.mermaid"},"7":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*([!#-\'*-/=?\\\\\\\\\\\\w\\\\s]*)\\\\s*(:)\\\\s*(\\\\[)\\\\s*(\\\\d\\\\.\\\\d+)\\\\s*(,)\\\\s*(\\\\d\\\\.\\\\d+)\\\\s*(])"}]},{"begin":"^\\\\s*(requirementDiagram)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"begin":"(?i)^\\\\s*((?:functional|interface|performance|physical)?requirement|designConstraint)\\\\s*([!-/:-?\\\\\\\\^\\\\w\\\\s]*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"}},"end":"(?i)\\\\s*(})","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"}},"match":"(?i)\\\\s*(id:)\\\\s*([!#-\'*+,./:;<>?\\\\\\\\^_\\\\w\\\\s]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)\\\\s*(text:)\\\\s*([!#-\'*+,./:;<>?\\\\\\\\^_\\\\w\\\\s]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"match":"(?i)\\\\s*(risk:)\\\\s*(low|medium|high)\\\\s*$"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"match":"(?i)\\\\s*(verifymethod:)\\\\s*(analysis|inspection|test|demonstration)\\\\s*$"}]},{"begin":"(?i)^\\\\s*(element)\\\\s*([!-/:-?\\\\\\\\^\\\\w\\\\s]*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"}},"end":"(?i)\\\\s*(})","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"}},"match":"(?i)\\\\s*(type:)\\\\s*([!-\'*+,./:;<>?\\\\\\\\^_\\\\w\\\\s]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"}},"match":"(?i)\\\\s*(docref:)\\\\s*([!#-\'*+,./:;<>?\\\\\\\\^_\\\\w\\\\s]+)"}]},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"variable"}},"match":"(?i)^\\\\s*(\\\\w+)\\\\s*(-)\\\\s*((?:contain|copie|derive|satisfie|verifie|refine|trace)s)\\\\s*(->)\\\\s*(\\\\w+)\\\\s*$"},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"variable"}},"match":"(?i)^\\\\s*(\\\\w+)\\\\s*(<-)\\\\s*((?:contain|copie|derive|satisfie|verifie|refine|trace)s)\\\\s*(-)\\\\s*(\\\\w+)\\\\s*$"}]},{"begin":"^\\\\s*(sequenceDiagram)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"(%%|#).*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"}},"match":"(?i)(title)\\\\s*(:)?\\\\s+(\\\\s*[!-/:<-?\\\\\\\\^\\\\w\\\\s]*)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"string"}},"match":"(?i)\\\\s*(participant|actor)\\\\s+((?:(?! as )[!-*./<-?\\\\\\\\^\\\\w\\\\s])+)\\\\s*(as)?\\\\s([!-*,./<-?\\\\\\\\^\\\\w\\\\s]+)?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"}},"match":"(?i)\\\\s*((?:de)?activate)\\\\s+\\\\b([!-*./<-?\\\\\\\\^\\\\w\\\\s]+\\\\b\\\\)?\\\\s*)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"},"3":{"name":"variable"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"variable"},"6":{"name":"keyword.control.mermaid"},"7":{"name":"string"}},"match":"(?i)\\\\s*(Note)\\\\s+((?:left|right)\\\\sof|over)\\\\s+\\\\b([!-*./<-?\\\\\\\\^\\\\w\\\\s]+\\\\b\\\\)?\\\\s*)(,)?(\\\\b[!-*./<-?\\\\\\\\^\\\\w\\\\s]+\\\\b\\\\)?\\\\s*)?(:)(?:\\\\s+([^#;]*))?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)\\\\s*(loop)(?:\\\\s+([^#;]*))?"},{"captures":{"1":{"name":"keyword.control.mermaid"}},"match":"\\\\s*(end)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)\\\\s*(alt|else|option|par|and|rect|autonumber|critical|opt)(?:\\\\s+([^#;]*))?$"},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"variable"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"string"}},"match":"(?i)\\\\s*\\\\b([!-*./<-?\\\\\\\\^\\\\w\\\\s]+\\\\b\\\\)?)\\\\s*(-?-[)>x]>?[-+]?)\\\\s*([!-*./<-?\\\\\\\\^\\\\w\\\\s]+\\\\b\\\\)?)\\\\s*(:)\\\\s*([^#;]*)"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"},"3":{"name":"string"}},"match":"(?i)\\\\s*(box)\\\\s+(transparent)(?:\\\\s+([^#;]*))?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)\\\\s*(box)(?:\\\\s+([^#;]*))?"}]},{"begin":"^\\\\s*(stateDiagram(?:-v2)?)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"entity.name.function.mermaid"}},"match":"^(?i)\\\\s*(direction)\\\\s+(BT|RL|TB|LR)"},{"captures":{"1":{"name":"keyword.control.mermaid"}},"match":"\\\\s+(})\\\\s+"},{"captures":{"1":{"name":"keyword.control.mermaid"}},"match":"\\\\s+(--)\\\\s+"},{"match":"^\\\\s*([-\\\\w]+)$","name":"variable"},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"}},"match":"(?i)([-\\\\w]+)\\\\s*(:)\\\\s*(\\\\s*[^:]+)"},{"begin":"(?i)^\\\\s*(state)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"captures":{"1":{"name":"string"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"variable"},"4":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*(\\"[^\\"]+\\")\\\\s*(as)\\\\s+([-\\\\w]+)\\\\s*(\\\\{)?"},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*([-\\\\w]+)\\\\s+(\\\\{)"},{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*([-\\\\w]+)\\\\s+(<<(?:fork|join)>>)"}]},{"begin":"(?i)([-\\\\w]+)\\\\s*(-->)","beginCaptures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"captures":{"1":{"name":"variable"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"}},"match":"(?i)\\\\s*([-\\\\w]+)\\\\s*(:)?\\\\s*([^\\\\n:]+)?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"string"}},"match":"(?i)(\\\\[\\\\*])\\\\s*(:)?\\\\s*([^\\\\n:]+)?"}]},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"variable"},"4":{"name":"keyword.control.mermaid"},"5":{"name":"string"}},"match":"(?i)(\\\\[\\\\*])\\\\s*(-->)\\\\s*([-\\\\w]+)\\\\s*(:)?\\\\s*([^\\\\n:]+)?"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"},"3":{"name":"keyword.control.mermaid"},"4":{"name":"string"}},"match":"(?i)^\\\\s*(note (?:left|right) of)\\\\s+([-\\\\w]+)\\\\s*(:)\\\\s*([^\\\\n:]+)"},{"begin":"(?i)^\\\\s*(note (?:left|right) of)\\\\s+([-\\\\w]+)(.|\\\\n)","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"variable"}},"contentName":"string","end":"(?i)(end note)","endCaptures":{"1":{"name":"keyword.control.mermaid"}}}]},{"begin":"^\\\\s*(journey)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(title|section)\\\\s+(\\\\s*[!-/:-?\\\\\\\\^\\\\w\\\\s]*)"},{"begin":"(?i)\\\\s*([!\\"$-/<-?\\\\\\\\^\\\\w\\\\s]*)\\\\s*(:)\\\\s*(\\\\d+)\\\\s*(:)","beginCaptures":{"1":{"name":"string"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"constant.numeric.decimal.mermaid"},"4":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"captures":{"1":{"name":"variable"}},"match":"(?i)\\\\s*,?\\\\s*([^\\\\n#,]+)"}]}]},{"begin":"^\\\\s*(xychart(?:-beta)?(?:\\\\s+horizontal)?)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"(^|\\\\G)(?=\\\\s*[:`~]{3,}\\\\s*$)","patterns":[{"match":"%%.*","name":"comment"},{"captures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"string"}},"match":"(?i)^\\\\s*(title)\\\\s+(\\\\s*[!-/:-?\\\\\\\\^\\\\w\\\\s]*)"},{"begin":"(?i)^\\\\s*(x-axis)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"captures":{"1":{"name":"constant.numeric.decimal.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"constant.numeric.decimal.mermaid"}},"match":"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\\\\s*(-->)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)"},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s+(\\"[!#-(*-/:-?\\\\\\\\^\\\\w\\\\s]*\\")"},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s+([!#-(*-/:-?\\\\\\\\^\\\\w]*)"},{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"\\\\s*(])","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"captures":{"1":{"name":"constant.numeric.decimal.mermaid"}},"match":"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)"},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s*(\\"[!#-(*-/:-?\\\\\\\\^\\\\w\\\\s]*\\")"},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s*([-!#-(*+./:-?\\\\\\\\^\\\\w\\\\s]+)"},{"captures":{"1":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*(,)"}]}]},{"begin":"(?i)^\\\\s*(y-axis)","beginCaptures":{"1":{"name":"keyword.control.mermaid"}},"end":"$","patterns":[{"captures":{"1":{"name":"constant.numeric.decimal.mermaid"},"2":{"name":"keyword.control.mermaid"},"3":{"name":"constant.numeric.decimal.mermaid"}},"match":"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)\\\\s*(-->)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)"},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s+(\\"[!#-(*-/:-?\\\\\\\\^\\\\w\\\\s]*\\")"},{"captures":{"1":{"name":"string"}},"match":"(?i)\\\\s+([!#-(*-/:-?\\\\\\\\^\\\\w]*)"}]},{"begin":"(?i)^\\\\s*(line|bar)\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"keyword.control.mermaid"},"2":{"name":"keyword.control.mermaid"}},"end":"\\\\s*(])","endCaptures":{"1":{"name":"keyword.control.mermaid"}},"patterns":[{"captures":{"1":{"name":"constant.numeric.decimal.mermaid"}},"match":"(?i)\\\\s*([-+]?\\\\d+\\\\.?\\\\d*)"},{"captures":{"1":{"name":"keyword.control.mermaid"}},"match":"(?i)\\\\s*(,)"}]}]}]},"mermaid-ado-code-block":{"begin":"(?i)\\\\s*:::\\\\s*mermaid\\\\s*$","contentName":"meta.embedded.block.mermaid","end":"\\\\s*:::\\\\s*","patterns":[{"include":"#mermaid"}]},"mermaid-code-block":{"begin":"(?i)(?<=[`~])mermaid(\\\\s+[^`~]*)?$","contentName":"meta.embedded.block.mermaid","end":"(^|\\\\G)(?=\\\\s*[`~]{3,}\\\\s*$)","patterns":[{"include":"#mermaid"}]},"mermaid-code-block-with-attributes":{"begin":"(?i)(?<=[`~])\\\\{\\\\s*\\\\.?mermaid(\\\\s+[^`~]*)?$","contentName":"meta.embedded.block.mermaid","end":"(^|\\\\G)(?=\\\\s*[`~]{3,}\\\\s*$)","patterns":[{"include":"#mermaid"}]}},"scopeName":"markdown.mermaid.codeblock","aliases":["mmd"]}'))];export{e as default}; diff --git a/docs/assets/mermaid-NA5CF7SZ-Rdx8a8Uo.js b/docs/assets/mermaid-NA5CF7SZ-Rdx8a8Uo.js new file mode 100644 index 0000000..deea0dc --- /dev/null +++ b/docs/assets/mermaid-NA5CF7SZ-Rdx8a8Uo.js @@ -0,0 +1 @@ +import"./react-BGmjiNul.js";import"./jsx-runtime-DN_bIXfG.js";import"./cjs-Bj40p_Np.js";import{r}from"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";export{r as Mermaid}; diff --git a/docs/assets/mermaid-parser.core-wRO0EX_C.js b/docs/assets/mermaid-parser.core-wRO0EX_C.js new file mode 100644 index 0000000..4e753ae --- /dev/null +++ b/docs/assets/mermaid-parser.core-wRO0EX_C.js @@ -0,0 +1,4 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./info-NVLQJR56-WB4oufpk.js","./chunk-FPAJGGOC-C0XAW5Os.js","./reduce-NgiHP_CR.js","./_Uint8Array-BGESiCQL.js","./_baseIsEqual-Cz9Tt_-E.js","./_getTag-BWqNuuwU.js","./_arrayReduce-bZBYsK-u.js","./_baseEach-BH6a1vAB.js","./_baseFor-Duhs3RiJ.js","./get-CyLJYAfP.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./memoize-DN0TMY36.js","./hasIn-DydgU7lx.js","./_baseProperty-DuoFhI7N.js","./_baseUniq-CsutM-S0.js","./min-BgkyNW2f.js","./_baseMap-DCtSqKLi.js","./_baseFlatten-CLPh0yMf.js","./flatten-Buk63LQO.js","./isEmpty-DIxUV1UR.js","./main-CwSdzVhm.js","./chunk-LvLJmgfZ.js","./chunk-LBM3YZW2-CQVIMcAR.js","./packet-BFZMPI3H-Eng5_GUo.js","./chunk-76Q3JFCE-COngPFoW.js","./pie-7BOR55EZ-C4VA6Hl_.js","./chunk-T53DSG4Q-B6Z3zF7Z.js","./architecture-U656AL7Q-whI_ZEN2.js","./chunk-O7ZBX7Z2-CYcfcXcp.js","./gitGraph-F6HP7TQM-fggVUX9Y.js","./chunk-S6J4BHB3-D3MBXPxT.js","./radar-NHE76QYJ-BCFJj-oD.js","./chunk-LHMN2FUI-DW2iokr2.js","./treemap-KMMF4GRG-DsipZLqv.js","./chunk-FWNWRKHM-XgKeqUvn.js"])))=>i.map(i=>d[i]); +import{f as i}from"./chunk-FPAJGGOC-C0XAW5Os.js";import{t as c}from"./preload-helper-BW0IMuFq.js";let _,u=(async()=>{var s;var t={},l={info:i(async()=>{let{createInfoServices:a}=await c(async()=>{let{createInfoServices:r}=await import("./info-NVLQJR56-WB4oufpk.js").then(async e=>(await e.__tla,e));return{createInfoServices:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url);t.info=a().Info.parser.LangiumParser},"info"),packet:i(async()=>{let{createPacketServices:a}=await c(async()=>{let{createPacketServices:r}=await import("./packet-BFZMPI3H-Eng5_GUo.js").then(async e=>(await e.__tla,e));return{createPacketServices:r}},__vite__mapDeps([24,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25]),import.meta.url);t.packet=a().Packet.parser.LangiumParser},"packet"),pie:i(async()=>{let{createPieServices:a}=await c(async()=>{let{createPieServices:r}=await import("./pie-7BOR55EZ-C4VA6Hl_.js").then(async e=>(await e.__tla,e));return{createPieServices:r}},__vite__mapDeps([26,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,27]),import.meta.url);t.pie=a().Pie.parser.LangiumParser},"pie"),architecture:i(async()=>{let{createArchitectureServices:a}=await c(async()=>{let{createArchitectureServices:r}=await import("./architecture-U656AL7Q-whI_ZEN2.js").then(async e=>(await e.__tla,e));return{createArchitectureServices:r}},__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,29]),import.meta.url);t.architecture=a().Architecture.parser.LangiumParser},"architecture"),gitGraph:i(async()=>{let{createGitGraphServices:a}=await c(async()=>{let{createGitGraphServices:r}=await import("./gitGraph-F6HP7TQM-fggVUX9Y.js").then(async e=>(await e.__tla,e));return{createGitGraphServices:r}},__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31]),import.meta.url);t.gitGraph=a().GitGraph.parser.LangiumParser},"gitGraph"),radar:i(async()=>{let{createRadarServices:a}=await c(async()=>{let{createRadarServices:r}=await import("./radar-NHE76QYJ-BCFJj-oD.js").then(async e=>(await e.__tla,e));return{createRadarServices:r}},__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,33]),import.meta.url);t.radar=a().Radar.parser.LangiumParser},"radar"),treemap:i(async()=>{let{createTreemapServices:a}=await c(async()=>{let{createTreemapServices:r}=await import("./treemap-KMMF4GRG-DsipZLqv.js").then(async e=>(await e.__tla,e));return{createTreemapServices:r}},__vite__mapDeps([34,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,35]),import.meta.url);t.treemap=a().Treemap.parser.LangiumParser},"treemap")};_=async function(a,r){let e=l[a];if(!e)throw Error(`Unknown diagram type: ${a}`);t[a]||await e();let n=t[a].parse(r);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new o(n);return n.value},i(_,"parse");var o=(s=class extends Error{constructor(r){let e=r.lexerErrors.map(p=>p.message).join(` +`),n=r.parserErrors.map(p=>p.message).join(` +`);super(`Parsing failed: ${e} ${n}`),this.result=r}},i(s,"MermaidParseError"),s)})();export{u as __tla,_ as t}; diff --git a/docs/assets/mermaid.core-XIi8b-BS.js b/docs/assets/mermaid.core-XIi8b-BS.js new file mode 100644 index 0000000..f5e361c --- /dev/null +++ b/docs/assets/mermaid.core-XIi8b-BS.js @@ -0,0 +1 @@ +import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import"./chunk-S3R3BYOJ-By1A-M0T.js";import"./src-faGJHwXX.js";import"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-EXTU4WIE-GbJyzeBy.js";import"./chunk-MI3HLSF2-CXMqGP2w.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import"./chunk-N4CR4FBY-DtYoI569.js";import{t}from"./mermaid.core-iFdtpd1M.js";export{t as default}; diff --git a/docs/assets/mermaid.core-iFdtpd1M.js b/docs/assets/mermaid.core-iFdtpd1M.js new file mode 100644 index 0000000..2e9e3d6 --- /dev/null +++ b/docs/assets/mermaid.core-iFdtpd1M.js @@ -0,0 +1,11 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./c4Diagram-YG6GDRKO-CQQT57RB.js","./dist-BA8xhrl2.js","./chunk-LvLJmgfZ.js","./src-faGJHwXX.js","./src-Bp_72rVO.js","./timer-CPT_vXom.js","./chunk-S3R3BYOJ-By1A-M0T.js","./step-D7xg1Moj.js","./math-B-ZqhQTL.js","./chunk-ABZYJK2D-DAD3GlgM.js","./preload-helper-BW0IMuFq.js","./purify.es-N-2faAGj.js","./merge-BBX6ug-N.js","./_Uint8Array-BGESiCQL.js","./_baseFor-Duhs3RiJ.js","./memoize-DN0TMY36.js","./chunk-TZMSLE5B-BiNEgT46.js","./flowDiagram-NV44I4VS-CkUxkQez.js","./chunk-JA3XYJ7Z-BlmyoDCa.js","./marked.esm-BZNXs5FA.js","./channel-BftudkVr.js","./chunk-55IACEB6-DvJ_-Ku-.js","./chunk-ATLVNIR6-DsKp3Ify.js","./chunk-CVBHYZKI-B6tT645I.js","./chunk-FMBD7UC4-DYXO3edG.js","./chunk-HN2XXSSU-xW6J7MXn.js","./chunk-JZLCHNYA-DBaJpCky.js","./chunk-MI3HLSF2-CXMqGP2w.js","./chunk-N4CR4FBY-DtYoI569.js","./chunk-QXUST7PY-CIxWhn5L.js","./line-x4bpd_8D.js","./path-DvTahePH.js","./array-CC7vZNGO.js","./chunk-QN33PNHL-C0IBWhei.js","./erDiagram-Q2GNP2WA-C5cEKchg.js","./gitGraphDiagram-NY62KEGX-I86uT3FX.js","./chunk-FPAJGGOC-C0XAW5Os.js","./reduce-NgiHP_CR.js","./_baseIsEqual-Cz9Tt_-E.js","./_getTag-BWqNuuwU.js","./_arrayReduce-bZBYsK-u.js","./_baseEach-BH6a1vAB.js","./get-CyLJYAfP.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./hasIn-DydgU7lx.js","./_baseProperty-DuoFhI7N.js","./_baseUniq-CsutM-S0.js","./min-BgkyNW2f.js","./_baseMap-DCtSqKLi.js","./_baseFlatten-CLPh0yMf.js","./flatten-Buk63LQO.js","./isEmpty-DIxUV1UR.js","./main-CwSdzVhm.js","./chunk-76Q3JFCE-COngPFoW.js","./chunk-FWNWRKHM-XgKeqUvn.js","./chunk-LBM3YZW2-CQVIMcAR.js","./chunk-LHMN2FUI-DW2iokr2.js","./chunk-O7ZBX7Z2-CYcfcXcp.js","./chunk-S6J4BHB3-D3MBXPxT.js","./chunk-T53DSG4Q-B6Z3zF7Z.js","./mermaid-parser.core-wRO0EX_C.js","./chunk-4BX2VUAB-B5-8Pez8.js","./chunk-QZHKN3VN-uHzoVf3q.js","./ganttDiagram-JELNMOA3-BH4xsWll.js","./linear-AjjmB_kQ.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./init-DsZRk2YA.js","./time-DIXLO3Ax.js","./defaultLocale-DzliDDTm.js","./infoDiagram-WHAUD3N6-cXMgF6PV.js","./chunk-EXTU4WIE-GbJyzeBy.js","./chunk-XAJISQIX-DnhQWiv2.js","./pieDiagram-ADFJNKIX-CdLCqSiS.js","./ordinal-_nQ2r1qQ.js","./arc-CWuN1tfc.js","./quadrantDiagram-AYHSOK5B-FJc1d940.js","./xychartDiagram-PRI3JC2R-Pi_FiTJG.js","./range-gMGfxVwZ.js","./requirementDiagram-UZGBJVZJ-grHisX2O.js","./sequenceDiagram-WL72ISMW-CiYSca0h.js","./classDiagram-2ON5EDUG-pASSDJWu.js","./chunk-B4BG7PRW-Cv1rtZu-.js","./classDiagram-v2-WZHVMYZB-x3SAPA1o.js","./stateDiagram-FKZM4ZOC-D40U7ncF.js","./dagre-B0xEvXH8.js","./graphlib-Dtxn1kuc.js","./sortBy-Bdnw8bdS.js","./pick-DeQioq0G.js","./_baseSet-6FYvpjrm.js","./range-sshwVRcP.js","./toInteger-CDcO32Gx.js","./now-6sUe0ZdD.js","./_hasUnicode-zBEpxwYe.js","./isString-CqoLqJdS.js","./chunk-DI55MBZ5-DpQLXMld.js","./stateDiagram-v2-4FDKWEC3-HEpD8xZX.js","./journeyDiagram-XKPGCS4Q-vqg3DbEv.js","./timeline-definition-IT6M3QCI-BXeNa69x.js","./mindmap-definition-VGOIOE7T-bkwq50Hs.js","./kanban-definition-3W4ZIXB7-BtwSVIt8.js","./sankeyDiagram-TZEHDZUN-DArc4irh.js","./colors-BG8Z91CW.js","./diagram-S2PKOQOG-BGwcIRrz.js","./diagram-QEK2KX5R-CPk22-jF.js","./blockDiagram-VD42YOAC-ByTVsUSZ.js","./clone-o2k1NhhT.js","./architectureDiagram-VXUJARFQ-BAPTB7Uu.js","./cytoscape.esm-CiNp3hmz.js","./diagram-PSM6KHXK-CDG_G18X.js","./treemap-DeGcO9km.js"])))=>i.map(i=>d[i]); +import{t as Dt}from"./isEmpty-DIxUV1UR.js";import{t as u}from"./preload-helper-BW0IMuFq.js";import{t as aa}from"./purify.es-N-2faAGj.js";import{u as S}from"./src-Bp_72rVO.js";import{a as ia,f as xt,g as G,h as na,i as sa,o as oa}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{t as Tt}from"./chunk-XAJISQIX-DnhQWiv2.js";import{i as vt,n as i,r as w}from"./src-faGJHwXX.js";import{J as ge,M as pe,P as ee,R as da,S as la,V as ca,W as ma,Y as ua,c as ga,f as Lt,g as pa,h as fa,j as te,l as At,n as ya,p as fe,q as _a,r as wa,t as ha,w as Rt,x as ye,y as N,__tla as ba}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as Ea}from"./chunk-EXTU4WIE-GbJyzeBy.js";import{n as Da,t as xa}from"./chunk-MI3HLSF2-CXMqGP2w.js";import{i as Ta,s as va}from"./chunk-JA3XYJ7Z-BlmyoDCa.js";import{n as La,__tla as Aa}from"./chunk-N4CR4FBY-DtYoI569.js";let It,Ra=Promise.all([(()=>{try{return ba}catch{}})(),(()=>{try{return Aa}catch{}})()]).then(async()=>{var F;var _e="comm",we="rule",he="decl",kt="@import",Pt="@namespace",Ot="@keyframes",Vt="@layer",be=Math.abs,re=String.fromCharCode;function Ee(e){return e.trim()}function U(e,t,r){return e.replace(t,r)}function St(e,t,r){return e.indexOf(t,r)}function z(e,t){return e.charCodeAt(t)|0}function j(e,t,r){return e.slice(t,r)}function R(e){return e.length}function Mt(e){return e.length}function W(e,t){return t.push(e),e}var Y=1,q=1,De=0,E=0,f=0,C="";function ae(e,t,r,a,n,s,o,m){return{value:e,root:t,parent:r,type:a,props:n,children:s,line:Y,column:q,length:o,return:"",siblings:m}}function Ft(){return f}function $t(){return f=E>0?z(C,--E):0,q--,f===10&&(q=1,Y--),f}function T(){return f=E<De?z(C,E++):0,q++,f===10&&(q=1,Y++),f}function V(){return z(C,E)}function J(){return E}function Q(e,t){return j(C,e,t)}function B(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zt(e){return Y=q=1,De=R(C=e),E=0,[]}function jt(e){return C="",e}function ie(e){return Ee(Q(E-1,ne(e===91?e+2:e===40?e+1:e)))}function qt(e){for(;(f=V())&&f<33;)T();return B(e)>2||B(f)>3?"":" "}function Ct(e,t){for(;--t&&T()&&!(f<48||f>102||f>57&&f<65||f>70&&f<97););return Q(e,J()+(t<6&&V()==32&&T()==32))}function ne(e){for(;T();)switch(f){case e:return E;case 34:case 39:e!==34&&e!==39&&ne(f);break;case 40:e===41&&ne(e);break;case 92:T();break}return E}function Bt(e,t){for(;T()&&e+f!==57&&!(e+f===84&&V()===47););return"/*"+Q(t,E-1)+"*"+re(e===47?e:T())}function Ht(e){for(;!B(V());)T();return Q(e,E)}function Gt(e){return jt(Z("",null,null,null,[""],e=zt(e),0,[0],e))}function Z(e,t,r,a,n,s,o,m,d){for(var p=0,y=0,l=o,h=0,D=0,v=0,g=1,P=1,L=1,_=0,A="",O=n,I=s,x=a,c=A;P;)switch(v=_,_=T()){case 40:if(v!=108&&z(c,l-1)==58){St(c+=U(ie(_),"&","&\f"),"&\f",be(p?m[p-1]:0))!=-1&&(L=-1);break}case 34:case 39:case 91:c+=ie(_);break;case 9:case 10:case 13:case 32:c+=qt(v);break;case 92:c+=Ct(J()-1,7);continue;case 47:switch(V()){case 42:case 47:W(Nt(Bt(T(),J()),t,r,d),d),(B(v||1)==5||B(V()||1)==5)&&R(c)&&j(c,-1,void 0)!==" "&&(c+=" ");break;default:c+="/"}break;case 123*g:m[p++]=R(c)*L;case 125*g:case 59:case 0:switch(_){case 0:case 125:P=0;case 59+y:L==-1&&(c=U(c,/\f/g,"")),D>0&&(R(c)-l||g===0&&v===47)&&W(D>32?Te(c+";",a,r,l-1,d):Te(U(c," ","")+";",a,r,l-2,d),d);break;case 59:c+=";";default:if(W(x=xe(c,t,r,p,y,n,m,A,O=[],I=[],l,s),s),_===123)if(y===0)Z(c,t,x,x,O,s,l,m,I);else{switch(h){case 99:if(z(c,3)===110)break;case 108:if(z(c,2)===97)break;default:y=0;case 100:case 109:case 115:}y?Z(e,x,x,a&&W(xe(e,x,x,0,0,n,m,A,n,O=[],l,I),I),n,I,l,m,a?O:I):Z(c,x,x,x,[""],I,0,m,I)}}p=y=D=0,g=L=1,A=c="",l=o;break;case 58:l=1+R(c),D=v;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&$t()==125)continue}switch(c+=re(_),_*g){case 38:L=y>0?1:(c+="\f",-1);break;case 44:m[p++]=(R(c)-1)*L,L=1;break;case 64:V()===45&&(c+=ie(T())),h=V(),y=l=R(A=c+=Ht(J())),_++;break;case 45:v===45&&R(c)==2&&(g=0)}}return s}function xe(e,t,r,a,n,s,o,m,d,p,y,l){for(var h=n-1,D=n===0?s:[""],v=Mt(D),g=0,P=0,L=0;g<a;++g)for(var _=0,A=j(e,h+1,h=be(P=o[g])),O=e;_<v;++_)(O=Ee(P>0?D[_]+" "+A:U(A,/&\f/g,D[_])))&&(d[L++]=O);return ae(e,t,r,n===0?we:m,d,p,y,l)}function Nt(e,t,r,a){return ae(e,t,r,_e,re(Ft()),j(e,2,-2),0,a)}function Te(e,t,r,a,n){return ae(e,t,r,he,j(e,0,a),j(e,a+1,-1),a,n)}function se(e,t){for(var r="",a=0;a<e.length;a++)r+=t(e[a],a,e,t)||"";return r}function Ut(e,t,r,a){switch(e.type){case Vt:if(e.children.length)break;case kt:case Pt:case he:return e.return=e.return||e.value;case _e:return"";case Ot:return e.return=e.value+"{"+se(e.children,a)+"}";case we:if(!R(e.value=e.props.join(",")))return""}return R(r=se(e.children,a))?e.return=e.value+"{"+r+"}":""}var ve="c4",Wt={id:ve,detector:i(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./c4Diagram-YG6GDRKO-CQQT57RB.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url);return{id:ve,diagram:e}},"loader")},Le="flowchart",Yt={id:Le,detector:i((e,t)=>{var r,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./flowDiagram-NV44I4VS-CkUxkQez.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([17,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url);return{id:Le,diagram:e}},"loader")},Ae="flowchart-v2",Jt={id:Ae,detector:i((e,t)=>{var r,a,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./flowDiagram-NV44I4VS-CkUxkQez.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([17,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url);return{id:Ae,diagram:e}},"loader")},Re="er",Qt={id:Re,detector:i(e=>/^\s*erDiagram/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./erDiagram-Q2GNP2WA-C5cEKchg.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([34,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,22,23,25,26,28,29,30,31,32,33]),import.meta.url);return{id:Re,diagram:e}},"loader")},Ie="gitGraph",Zt={id:Ie,detector:i(e=>/^\s*gitGraph/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./gitGraphDiagram-NY62KEGX-I86uT3FX.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([35,1,2,36,37,13,38,39,40,41,14,42,43,44,15,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,10,3,4,5,6,7,8,9,11,12,62,63]),import.meta.url);return{id:Ie,diagram:e}},"loader")},ke="gantt",Kt={id:ke,detector:i(e=>/^\s*gantt/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./ganttDiagram-JELNMOA3-BH4xsWll.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([64,1,2,65,66,67,5,68,69,70,3,4,6,7,8,9,10,11,12,13,14,15]),import.meta.url);return{id:ke,diagram:e}},"loader")},Pe="info",Xt={id:Pe,detector:i(e=>/^\s*info/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./infoDiagram-WHAUD3N6-cXMgF6PV.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([71,36,37,13,38,39,40,41,14,42,43,44,15,45,46,47,48,49,50,51,52,53,2,54,55,56,57,58,59,60,61,10,3,4,5,11,9,72,73]),import.meta.url);return{id:Pe,diagram:e}},"loader")},Oe="pie",er={id:Oe,detector:i(e=>/^\s*pie/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./pieDiagram-ADFJNKIX-CdLCqSiS.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([74,1,2,36,37,13,38,39,40,41,14,42,43,44,15,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,10,3,4,5,31,75,68,76,8,32,6,7,9,11,12,62,72]),import.meta.url);return{id:Oe,diagram:e}},"loader")},Ve="quadrantChart",tr={id:Ve,detector:i(e=>/^\s*quadrantChart/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-FJc1d940.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([77,65,66,67,5,2,68,3,4,11,9,10]),import.meta.url);return{id:Ve,diagram:e}},"loader")},Se="xychart",rr={id:Se,detector:i(e=>/^\s*xychart(-beta)?/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./xychartDiagram-PRI3JC2R-Pi_FiTJG.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([78,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,65,66,67,68,79,75,30,31,32,72]),import.meta.url);return{id:Se,diagram:e}},"loader")},Me="requirement",ar={id:Me,detector:i(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-grHisX2O.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([80,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,21,22,23,25,26,28,29,30,31,32,33]),import.meta.url);return{id:Me,diagram:e}},"loader")},Fe="sequence",ir={id:Fe,detector:i(e=>/^\s*sequenceDiagram/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./sequenceDiagram-WL72ISMW-CiYSca0h.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([81,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,27,63,16]),import.meta.url);return{id:Fe,diagram:e}},"loader")},$e="class",nr={id:$e,detector:i((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./classDiagram-2ON5EDUG-pASSDJWu.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([82,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,21,22,83,24,28,26,23,29,30,31,32,25,33]),import.meta.url);return{id:$e,diagram:e}},"loader")},ze="classDiagram",sr={id:ze,detector:i((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-x3SAPA1o.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([84,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,21,22,83,24,28,26,23,29,30,31,32,25,33]),import.meta.url);return{id:ze,diagram:e}},"loader")},je="state",or={id:je,detector:i((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./stateDiagram-FKZM4ZOC-D40U7ncF.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([85,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,30,31,32,86,87,39,38,37,40,41,42,43,44,45,46,47,50,52,48,49,88,89,90,51,91,92,93,94,95,21,22,23,96,28,26,29,25,33]),import.meta.url);return{id:je,diagram:e}},"loader")},qe="stateDiagram",dr={id:qe,detector:i((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-HEpD8xZX.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([97,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,21,22,23,96,28,26,29,30,31,32,25,33]),import.meta.url);return{id:qe,diagram:e}},"loader")},Ce="journey",lr={id:Ce,detector:i(e=>/^\s*journey/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-vqg3DbEv.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([98,1,2,3,4,5,76,31,8,11,9,10,24,16]),import.meta.url);return{id:Ce,diagram:e}},"loader")},Be={draw:i((e,t,r)=>{w.debug(`rendering svg for syntax error +`);let a=Ea(t),n=a.append("g");a.attr("viewBox","0 0 2412 512"),ga(a,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},cr=Be,mr={db:{},renderer:Be,parser:{parse:i(()=>{},"parse")}},He="flowchart-elk",ur={id:He,detector:i((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./flowDiagram-NV44I4VS-CkUxkQez.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([17,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url);return{id:He,diagram:e}},"loader")},Ge="timeline",gr={id:Ge,detector:i(e=>/^\s*timeline/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./timeline-definition-IT6M3QCI-BXeNa69x.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([99,3,2,4,5,76,31,8,11,9,10]),import.meta.url);return{id:Ge,diagram:e}},"loader")},Ne="mindmap",pr={id:Ne,detector:i(e=>/^\s*mindmap/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./mindmap-definition-VGOIOE7T-bkwq50Hs.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([100,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,21,22,23,25,26,28,29,30,31,32,33]),import.meta.url);return{id:Ne,diagram:e}},"loader")},Ue="kanban",fr={id:Ue,detector:i(e=>/^\s*kanban/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./kanban-definition-3W4ZIXB7-BtwSVIt8.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([101,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,22,23,72,24,26,27]),import.meta.url);return{id:Ue,diagram:e}},"loader")},We="sankey",yr={id:We,detector:i(e=>/^\s*sankey(-beta)?/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-DArc4irh.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([102,3,2,4,5,103,75,68,11,9,10]),import.meta.url);return{id:We,diagram:e}},"loader")},Ye="packet",_r={id:Ye,detector:i(e=>/^\s*packet(-beta)?/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./diagram-S2PKOQOG-BGwcIRrz.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([104,1,2,36,37,13,38,39,40,41,14,42,43,44,15,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,10,3,4,5,6,7,8,9,11,12,62,72]),import.meta.url);return{id:Ye,diagram:e}},"loader")},Je="radar",wr={id:Je,detector:i(e=>/^\s*radar-beta/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./diagram-QEK2KX5R-CPk22-jF.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([105,1,2,36,37,13,38,39,40,41,14,42,43,44,15,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,10,3,4,5,6,7,8,9,11,12,62,72]),import.meta.url);return{id:Je,diagram:e}},"loader")},Qe="block",hr={id:Qe,detector:i(e=>/^\s*block(-beta)?/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./blockDiagram-VD42YOAC-ByTVsUSZ.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([106,1,2,18,3,4,5,6,7,8,9,10,11,12,13,14,15,19,30,31,32,87,39,38,37,40,41,42,43,44,45,46,47,50,52,20,107,23,24,25]),import.meta.url);return{id:Qe,diagram:e}},"loader")},Ze="architecture",br={id:Ze,detector:i(e=>/^\s*architecture/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./architectureDiagram-VXUJARFQ-BAPTB7Uu.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([108,1,2,36,37,13,38,39,40,41,14,42,43,44,15,45,46,47,48,49,50,51,52,53,18,3,4,5,6,7,8,9,10,11,12,19,54,55,56,57,58,59,60,61,109,62,72]),import.meta.url);return{id:Ze,diagram:e}},"loader")},Ke="treemap",Er={id:Ke,detector:i(e=>/^\s*treemap/.test(e),"detector"),loader:i(async()=>{let{diagram:e}=await u(async()=>{let{diagram:t}=await import("./diagram-PSM6KHXK-CDG_G18X.js").then(async r=>(await r.__tla,r));return{diagram:t}},__vite__mapDeps([110,1,2,36,37,13,38,39,40,41,14,42,43,44,15,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,10,3,4,5,67,111,75,68,6,7,8,9,11,12,62,22,72,33]),import.meta.url);return{id:Ke,diagram:e}},"loader")},Xe=!1,K=i(()=>{Xe||(Xe=!0,te("error",mr,e=>e.toLowerCase().trim()==="error"),te("---",{db:{clear:i(()=>{},"clear")},styles:{},renderer:{draw:i(()=>{},"draw")},parser:{parse:i(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:i(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),pe(ur,pr,br),pe(Wt,fr,sr,nr,Qt,Kt,Xt,er,ar,ir,Jt,Yt,gr,Zt,dr,or,lr,tr,yr,_r,rr,hr,wr,Er))},"addDiagrams"),Dr=i(async()=>{w.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(fe).map(async([t,{detector:r,loader:a}])=>{if(a)try{ye(t)}catch{try{let{diagram:n,id:s}=await a();te(s,n,r)}catch(n){throw w.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete fe[t],n}}}))).filter(t=>t.status==="rejected");if(e.length>0){w.error(`Failed to load ${e.length} external diagrams`);for(let t of e)w.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),xr="graphics-document document";function et(e,t){e.attr("role",xr),t!==""&&e.attr("aria-roledescription",t)}i(et,"setA11yDiagramInfo");function tt(e,t,r,a){if(e.insert!==void 0){if(r){let n=`chart-desc-${a}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){let n=`chart-title-${a}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}i(tt,"addSVGa11yTitleDescription");var oe=(F=class{constructor(t,r,a,n,s){this.type=t,this.text=r,this.db=a,this.parser=n,this.renderer=s}static async fromText(t,r={}){var p,y;let a=N(),n=Lt(t,a);t=oa(t)+` +`;try{ye(n)}catch{let l=la(n);if(!l)throw new ha(`Diagram ${n} not found.`);let{id:h,diagram:D}=await l();te(h,D)}let{db:s,parser:o,renderer:m,init:d}=ye(n);return o.parser&&(o.parser.yy=s),(p=s.clear)==null||p.call(s),d==null||d(a),r.title&&((y=s.setDiagramTitle)==null||y.call(s,r.title)),await o.parse(t),new F(n,t,s,o,m)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},i(F,"Diagram"),F),rt=[],Tr=i(()=>{rt.forEach(e=>{e()}),rt=[]},"attachFunctions"),vr=i(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function at(e){let t=e.match(pa);if(!t)return{text:e,metadata:{}};let r=Da(t[1],{schema:xa})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let a={};return r.displayMode&&(a.displayMode=r.displayMode.toString()),r.title&&(a.title=r.title.toString()),r.config&&(a.config=r.config),{text:e.slice(t[0].length),metadata:a}}i(at,"extractFrontMatter");var Lr=i(e=>e.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(t,r,a)=>"<"+r+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Ar=i(e=>{let{text:t,metadata:r}=at(e),{displayMode:a,title:n,config:s={}}=r;return a&&(s.gantt||(s.gantt={}),s.gantt.displayMode=a),{title:n,config:s,text:t}},"processFrontmatter"),Rr=i(e=>{let t=G.detectInit(e)??{},r=G.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:a})=>a==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:na(e),directive:t}},"processDirectives");function de(e){let t=Ar(Lr(e)),r=Rr(t.text),a=sa(t.config,r.directive);return e=vr(r.text),{code:e,title:t.title,config:a}}i(de,"preprocessDiagram");function it(e){let t=new TextEncoder().encode(e),r=Array.from(t,a=>String.fromCodePoint(a)).join("");return btoa(r)}i(it,"toBase64");var Ir=5e4,kr="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Pr="sandbox",Or="loose",Vr="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1999/xlink",Mr="http://www.w3.org/1999/xhtml",Fr="100%",$r="100%",zr="border:0;margin:0;",jr="margin:0",qr="allow-top-navigation-by-user-activation allow-popups",Cr='The "iframe" tag is not supported by your browser.',Br=["foreignobject"],Hr=["dominant-baseline"];function le(e){let t=de(e);return ee(),ya(t.config??{}),t}i(le,"processAndSetConfigs");async function nt(e,t){K();try{let{code:r,config:a}=le(e);return{diagramType:(await lt(r)).type,config:a}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}i(nt,"parse");var st=i((e,t,r=[])=>` +.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),Gr=i((e,t=new Map)=>{var a;let r="";if(e.themeCSS!==void 0&&(r+=` +${e.themeCSS}`),e.fontFamily!==void 0&&(r+=` +:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=` +:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){let n=e.htmlLabels??((a=e.flowchart)==null?void 0:a.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(s=>{Dt(s.styles)||n.forEach(o=>{r+=st(s.id,o,s.styles)}),Dt(s.textStyles)||(r+=st(s.id,"tspan",((s==null?void 0:s.textStyles)||[]).map(o=>o.replace("color","fill"))))})}return r},"createCssStyles"),Nr=i((e,t,r,a)=>se(Gt(`${a}{${_a(t,Gr(e,r),e.themeVariables)}}`),Ut),"createUserStyles"),Ur=i((e="",t,r)=>{let a=e;return!r&&!t&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=ia(a),a=a.replace(/<br>/g,"<br/>"),a},"cleanUpSvgCode"),Wr=i((e="",t)=>{var r,a;return`<iframe style="width:${Fr};height:${(a=(r=t==null?void 0:t.viewBox)==null?void 0:r.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":$r};${zr}" src="data:text/html;charset=UTF-8;base64,${it(`<body style="${jr}">${e}</body>`)}" sandbox="${qr}"> + ${Cr} +</iframe>`},"putIntoIFrame"),ot=i((e,t,r,a,n)=>{let s=e.append("div");s.attr("id",r),a&&s.attr("style",a);let o=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Vr);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function ce(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}i(ce,"sandboxedIframe");var Yr=i((e,t,r,a)=>{var n,s,o;(n=e.getElementById(t))==null||n.remove(),(s=e.getElementById(r))==null||s.remove(),(o=e.getElementById(a))==null||o.remove()},"removeExistingElements"),Jr=i(async function(e,t,r){var yt,_t,wt,ht,bt,Et;K();let a=le(t);t=a.code;let n=N();w.debug(n),t.length>((n==null?void 0:n.maxTextSize)??Ir)&&(t=kr);let s="#"+e,o="i"+e,m="#"+o,d="d"+e,p="#"+d,y=i(()=>{let k=S(h?m:p).node();k&&"remove"in k&&k.remove()},"removeTempElements"),l=S("body"),h=n.securityLevel===Pr,D=n.securityLevel===Or,v=n.fontFamily;r===void 0?(Yr(document,e,d,o),h?(l=S(ce(S("body"),o).nodes()[0].contentDocument.body),l.node().style.margin=0):l=S("body"),ot(l,e,d)):(r&&(r.innerHTML=""),h?(l=S(ce(S(r),o).nodes()[0].contentDocument.body),l.node().style.margin=0):l=S(r),ot(l,e,d,`font-family: ${v}`,Sr));let g,P;try{g=await oe.fromText(t,{title:a.title})}catch(k){if(n.suppressErrorRendering)throw y(),k;g=await oe.fromText("error"),P=k}let L=l.select(p).node(),_=g.type,A=L.firstChild,O=A.firstChild,I=(_t=(yt=g.renderer).getClasses)==null?void 0:_t.call(yt,t,g),x=Nr(n,_,I,s),c=document.createElement("style");c.innerHTML=x,A.insertBefore(c,O);try{await g.renderer.draw(t,e,Tt.version,g)}catch(k){throw n.suppressErrorRendering?y():cr.draw(t,e,Tt.version),k}let ea=l.select(`${p} svg`),ta=(ht=(wt=g.db).getAccTitle)==null?void 0:ht.call(wt),ra=(Et=(bt=g.db).getAccDescription)==null?void 0:Et.call(bt);ct(_,ea,ta,ra),l.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Mr);let $=l.select(p).node().innerHTML;if(w.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),$=Ur($,h,fa(n.arrowMarkerAbsolute)),h){let k=l.select(p+" svg").node();$=Wr($,k)}else D||($=aa.sanitize($,{ADD_TAGS:Br,ADD_ATTR:Hr,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Tr(),P)throw P;return y(),{diagramType:_,svg:$,bindFunctions:g.db.bindFunctions}},"render");function dt(e={}){var r;let t=wa({},e);t!=null&&t.fontFamily&&!((r=t.themeVariables)!=null&&r.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),da(t),t!=null&&t.theme&&t.theme in ge?t.themeVariables=ge[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ge.default.getThemeVariables(t.themeVariables)),vt((typeof t=="object"?ma(t):Rt()).logLevel),K()}i(dt,"initialize");var lt=i((e,t={})=>{let{code:r}=de(e);return oe.fromText(r,t)},"getDiagramFromText");function ct(e,t,r,a){et(t,e),tt(t,r,a,t.attr("id"))}i(ct,"addA11yInfo");var M=Object.freeze({render:Jr,parse:nt,getDiagramFromText:lt,initialize:dt,getConfig:N,setConfig:ca,getSiteConfig:Rt,updateSiteConfig:ua,reset:i(()=>{ee()},"reset"),globalReset:i(()=>{ee(At)},"globalReset"),defaultConfig:At});vt(N().logLevel),ee(N());var Qr=i((e,t,r)=>{w.warn(e),xt(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),mt=i(async function(e={querySelector:".mermaid"}){try{await Zr(e)}catch(t){if(xt(t)&&w.error(t.str),b.parseError&&b.parseError(t),!e.suppressErrors)throw w.error("Use the suppressErrors option to suppress these errors"),t}},"run"),Zr=i(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let a=M.getConfig();w.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");w.debug(`Found ${n.length} diagrams`),(a==null?void 0:a.startOnLoad)!==void 0&&(w.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),M.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));let s=new G.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),o,m=[];for(let d of Array.from(n)){if(w.info("Rendering diagram: "+d.id),d.getAttribute("data-processed"))continue;d.setAttribute("data-processed","true");let p=`mermaid-${s.next()}`;o=d.innerHTML,o=va(G.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");let y=G.detectInit(o);y&&w.debug("Detected early reinit: ",y);try{let{svg:l,bindFunctions:h}=await ue(p,o,d);d.innerHTML=l,e&&await e(p),h&&h(d)}catch(l){Qr(l,m,b.parseError)}}if(m.length>0)throw m[0]},"runThrowsErrors"),ut=i(function(e){M.initialize(e)},"initialize"),Kr=i(async function(e,t,r){w.warn("mermaid.init is deprecated. Please use run instead."),e&&ut(e);let a={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await mt(a)},"init"),Xr=i(async(e,{lazyLoad:t=!0}={})=>{K(),pe(...e),t===!1&&await Dr()},"registerExternalDiagrams"),gt=i(function(){if(b.startOnLoad){let{startOnLoad:e}=M.getConfig();e&&b.run().catch(t=>w.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",gt,!1);let pt,H,X,me,ft,ue,b;pt=i(function(e){b.parseError=e},"setParseErrorHandler"),H=[],X=!1,me=i(async()=>{if(!X){for(X=!0;H.length>0;){let e=H.shift();if(e)try{await e()}catch(t){w.error("Error executing queue",t)}}X=!1}},"executeQueue"),ft=i(async(e,t)=>new Promise((r,a)=>{let n=i(()=>new Promise((s,o)=>{M.parse(e,t).then(m=>{s(m),r(m)},m=>{var d;w.error("Error parsing",m),(d=b.parseError)==null||d.call(b,m),o(m),a(m)})}),"performCall");H.push(n),me().catch(a)}),"parse"),ue=i((e,t,r)=>new Promise((a,n)=>{let s=i(()=>new Promise((o,m)=>{M.render(e,t,r).then(d=>{o(d),a(d)},d=>{var p;w.error("Error parsing",d),(p=b.parseError)==null||p.call(b,d),m(d),n(d)})}),"performCall");H.push(s),me().catch(n)}),"render"),b={startOnLoad:!0,mermaidAPI:M,parse:ft,render:ue,init:Kr,run:mt,registerExternalDiagrams:Xr,registerLayoutLoaders:La,initialize:ut,parseError:void 0,contentLoaded:gt,setParseErrorHandler:pt,detectType:Lt,registerIconPacks:Ta,getRegisteredDiagramsMetadata:i(()=>Object.keys(fe).map(e=>({id:e})),"getRegisteredDiagramsMetadata")},It=b});export{Ra as __tla,It as t}; diff --git a/docs/assets/mhchem-CDMfjrnn.js b/docs/assets/mhchem-CDMfjrnn.js new file mode 100644 index 0000000..014f00d --- /dev/null +++ b/docs/assets/mhchem-CDMfjrnn.js @@ -0,0 +1 @@ +import{c as y}from"./katex-dFZM4X_7.js";y.__defineMacro("\\ce",function(t){return z(t.consumeArgs(1)[0],"ce")}),y.__defineMacro("\\pu",function(t){return z(t.consumeArgs(1)[0],"pu")}),y.__defineMacro("\\tripledash","{\\vphantom{-}\\raisebox{2.56mu}{$\\mkern2mu\\tiny\\text{-}\\mkern1mu\\text{-}\\mkern1mu\\text{-}\\mkern2mu$}}");var z=function(t,e){for(var a="",o=t.length&&t[t.length-1].loc.start,r=t.length-1;r>=0;r--)t[r].loc.start>o&&(a+=" ",o=t[r].loc.start),a+=t[r].text,o+=t[r].text.length;return u.go(n.go(a,e))},n={go:function(t,e){if(!t)return[];e===void 0&&(e="ce");var a="0",o={};o.parenthesisLevel=0,t=t.replace(/\n/g," "),t=t.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),t=t.replace(/[\u2026]/g,"...");for(var r,i=10,c=[];;){r===t?i--:(i=10,r=t);var s=n.stateMachines[e],p=s.transitions[a]||s.transitions["*"];t:for(var m=0;m<p.length;m++){var h=n.patterns.match_(p[m].pattern,t);if(h){for(var d=p[m].task,_=0;_<d.action_.length;_++){var f;if(s.actions[d.action_[_].type_])f=s.actions[d.action_[_].type_](o,h.match_,d.action_[_].option);else if(n.actions[d.action_[_].type_])f=n.actions[d.action_[_].type_](o,h.match_,d.action_[_].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+d.action_[_].type_+")"];n.concatArray(c,f)}if(a=d.nextState||a,t.length>0){if(d.revisit||(t=h.remainder),!d.toContinue)break t}else return c}}if(i<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(t,e){if(e)if(Array.isArray(e))for(var a=0;a<e.length;a++)t.push(e[a]);else t.push(e)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(t){var e=t.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return e&&e[0]?{match_:e.splice(1),remainder:t.substr(e[0].length)}:null},"(-)(9)^(-9)":function(t){var e=t.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return e&&e[0]?{match_:e.splice(1),remainder:t.substr(e[0].length)}:null},"state of aggregation $":function(t){var e=n.patterns.findObserveGroups(t,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(e&&e.remainder.match(/^($|[\s,;\)\]\}])/))return e;var a=t.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return a?{match_:a[0],remainder:t.substr(a[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(t){return n.patterns.findObserveGroups(t,"^{","","","}")},"^($...$)":function(t){return n.patterns.findObserveGroups(t,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(t){return n.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(t){return n.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(t){return n.patterns.findObserveGroups(t,"_{","","","}")},"_($...$)":function(t){return n.patterns.findObserveGroups(t,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(t){return n.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(t){return n.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(t){return n.patterns.findObserveGroups(t,"","{","}","")},"{(...)}":function(t){return n.patterns.findObserveGroups(t,"{","","","}")},"$...$":function(t){return n.patterns.findObserveGroups(t,"","$","$","")},"${(...)}$":function(t){return n.patterns.findObserveGroups(t,"${","","","}$")},"$(...)$":function(t){return n.patterns.findObserveGroups(t,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(t){return n.patterns.findObserveGroups(t,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(t){return n.patterns.findObserveGroups(t,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(t){return n.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(t){return n.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(t){return n.patterns.findObserveGroups(t,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(t){return n.patterns.findObserveGroups(t,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(t){return n.patterns.findObserveGroups(t,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(t){return n.patterns.findObserveGroups(t,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(t){return n.patterns.findObserveGroups(t,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(t){return n.patterns.findObserveGroups(t,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(t){return n.patterns.findObserveGroups(t,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(t){return n.patterns.findObserveGroups(t,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(t){var e=t.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/);if(e)return{match_:e[0],remainder:t.substr(e[0].length)};var a=n.patterns.findObserveGroups(t,"","$","$","");return a&&(e=a.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),e)?{match_:e[0],remainder:t.substr(e[0].length)}:null},amount2:function(t){return this.amount(t)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(t){if(t.match(/^\([a-z]+\)$/))return null;var e=t.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return e?{match_:e[0],remainder:t.substr(e[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(t,e,a,o,r,i,c,s,p,m){var h=function(x,l){if(typeof l=="string")return x.indexOf(l)===0?l:null;var g=x.match(l);return g?g[0]:null},d=function(x,l,g){for(var b=0;l<x.length;){var S=x.charAt(l),k=h(x.substr(l),g);if(k!==null&&b===0)return{endMatchBegin:l,endMatchEnd:l+k.length};if(S==="{")b++;else if(S==="}"){if(b===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];b--}l++}return null},_=h(t,e);if(_===null||(t=t.substr(_.length),_=h(t,a),_===null))return null;var f=d(t,_.length,o||r);if(f===null)return null;var $=t.substring(0,o?f.endMatchEnd:f.endMatchBegin);if(i||c){var v=this.findObserveGroups(t.substr(f.endMatchEnd),i,c,s,p);if(v===null)return null;var q=[$,v.match_];return{match_:m?q.join(""):q,remainder:v.remainder}}else return{match_:$,remainder:t.substr(f.endMatchEnd)}},match_:function(t,e){var a=n.patterns.patterns[t];if(a===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+t+")"];if(typeof a=="function")return n.patterns.patterns[t](e);var o=e.match(a);return o?{match_:o[2]?[o[1],o[2]]:o[1]?o[1]:o[0],remainder:e.substr(o[0].length)}:null}},actions:{"a=":function(t,e){t.a=(t.a||"")+e},"b=":function(t,e){t.b=(t.b||"")+e},"p=":function(t,e){t.p=(t.p||"")+e},"o=":function(t,e){t.o=(t.o||"")+e},"q=":function(t,e){t.q=(t.q||"")+e},"d=":function(t,e){t.d=(t.d||"")+e},"rm=":function(t,e){t.rm=(t.rm||"")+e},"text=":function(t,e){t.text_=(t.text_||"")+e},insert:function(t,e,a){return{type_:a}},"insert+p1":function(t,e,a){return{type_:a,p1:e}},"insert+p1+p2":function(t,e,a){return{type_:a,p1:e[0],p2:e[1]}},copy:function(t,e){return e},rm:function(t,e){return{type_:"rm",p1:e||""}},text:function(t,e){return n.go(e,"text")},"{text}":function(t,e){var a=["{"];return n.concatArray(a,n.go(e,"text")),a.push("}"),a},"tex-math":function(t,e){return n.go(e,"tex-math")},"tex-math tight":function(t,e){return n.go(e,"tex-math tight")},bond:function(t,e,a){return{type_:"bond",kind_:a||e}},"color0-output":function(t,e){return{type_:"color0",color:e[0]}},ce:function(t,e){return n.go(e)},"1/2":function(t,e){var a=[];e.match(/^[+\-]/)&&(a.push(e.substr(0,1)),e=e.substr(1));var o=e.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return o[1]=o[1].replace(/\$/g,""),a.push({type_:"frac",p1:o[1],p2:o[2]}),o[3]&&(o[3]=o[3].replace(/\$/g,""),a.push({type_:"tex-math",p1:o[3]})),a},"9,9":function(t,e){return n.go(e,"9,9")}},createTransitions:function(t){var e,a,o,r,i={};for(e in t)for(a in t[e])for(o=a.split("|"),t[e][a].stateArray=o,r=0;r<o.length;r++)i[o[r]]=[];for(e in t)for(a in t[e])for(o=t[e][a].stateArray||[],r=0;r<o.length;r++){var c=t[e][a];if(c.action_){c.action_=[].concat(c.action_);for(var s=0;s<c.action_.length;s++)typeof c.action_[s]=="string"&&(c.action_[s]={type_:c.action_[s]})}else c.action_=[];for(var p=e.split("|"),m=0;m<p.length;m++)if(o[r]==="*")for(var h in i)i[h].push({pattern:p[m],task:c});else i[o[r]].push({pattern:p[m],task:c})}return i},stateMachines:{}};n.stateMachines={ce:{transitions:n.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(t,e){var a;if((t.d||"").match(/^[0-9]+$/)){var o=t.d;t.d=void 0,a=this.output(t),t.b=o}else a=this.output(t);return n.actions["o="](t,e),a},"d= kv":function(t,e){t.d=e,t.dType="kv"},"charge or bond":function(t,e){if(t.beginsWithBond){var a=[];return n.concatArray(a,this.output(t)),n.concatArray(a,n.actions.bond(t,e,"-")),a}else t.d=e},"- after o/d":function(t,e,a){var o=n.patterns.match_("orbital",t.o||""),r=n.patterns.match_("one lowercase greek letter $",t.o||""),i=n.patterns.match_("one lowercase latin letter $",t.o||""),c=n.patterns.match_("$one lowercase latin letter$ $",t.o||""),s=e==="-"&&(o&&o.remainder===""||r||i||c);s&&!t.a&&!t.b&&!t.p&&!t.d&&!t.q&&!o&&i&&(t.o="$"+t.o+"$");var p=[];return s?(n.concatArray(p,this.output(t)),p.push({type_:"hyphen"})):(o=n.patterns.match_("digits",t.d||""),a&&o&&o.remainder===""?(n.concatArray(p,n.actions["d="](t,e)),n.concatArray(p,this.output(t))):(n.concatArray(p,this.output(t)),n.concatArray(p,n.actions.bond(t,e,"-")))),p},"a to o":function(t){t.o=t.a,t.a=void 0},"sb=true":function(t){t.sb=!0},"sb=false":function(t){t.sb=!1},"beginsWithBond=true":function(t){t.beginsWithBond=!0},"beginsWithBond=false":function(t){t.beginsWithBond=!1},"parenthesisLevel++":function(t){t.parenthesisLevel++},"parenthesisLevel--":function(t){t.parenthesisLevel--},"state of aggregation":function(t,e){return{type_:"state of aggregation",p1:n.go(e,"o")}},comma:function(t,e){var a=e.replace(/\s*$/,"");return a!==e&&t.parenthesisLevel===0?{type_:"comma enumeration L",p1:a}:{type_:"comma enumeration M",p1:a}},output:function(t,e,a){var o;if(!t.r)o=[],!t.a&&!t.b&&!t.p&&!t.o&&!t.q&&!t.d&&!a||(t.sb&&o.push({type_:"entitySkip"}),!t.o&&!t.q&&!t.d&&!t.b&&!t.p&&a!==2?(t.o=t.a,t.a=void 0):!t.o&&!t.q&&!t.d&&(t.b||t.p)?(t.o=t.a,t.d=t.b,t.q=t.p,t.a=t.b=t.p=void 0):t.o&&t.dType==="kv"&&n.patterns.match_("d-oxidation$",t.d||"")?t.dType="oxidation":t.o&&t.dType==="kv"&&!t.q&&(t.dType=void 0),o.push({type_:"chemfive",a:n.go(t.a,"a"),b:n.go(t.b,"bd"),p:n.go(t.p,"pq"),o:n.go(t.o,"o"),q:n.go(t.q,"pq"),d:n.go(t.d,t.dType==="oxidation"?"oxidation":"bd"),dType:t.dType}));else{var r=t.rdt==="M"?n.go(t.rd,"tex-math"):t.rdt==="T"?[{type_:"text",p1:t.rd||""}]:n.go(t.rd),i=t.rqt==="M"?n.go(t.rq,"tex-math"):t.rqt==="T"?[{type_:"text",p1:t.rq||""}]:n.go(t.rq);o={type_:"arrow",r:t.r,rd:r,rq:i}}for(var c in t)c!=="parenthesisLevel"&&c!=="beginsWithBond"&&delete t[c];return o},"oxidation-output":function(t,e){var a=["{"];return n.concatArray(a,n.go(e,"oxidation")),a.push("}"),a},"frac-output":function(t,e){return{type_:"frac-ce",p1:n.go(e[0]),p2:n.go(e[1])}},"overset-output":function(t,e){return{type_:"overset",p1:n.go(e[0]),p2:n.go(e[1])}},"underset-output":function(t,e){return{type_:"underset",p1:n.go(e[0]),p2:n.go(e[1])}},"underbrace-output":function(t,e){return{type_:"underbrace",p1:n.go(e[0]),p2:n.go(e[1])}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:n.go(e[1])}},"r=":function(t,e){t.r=e},"rdt=":function(t,e){t.rdt=e},"rd=":function(t,e){t.rd=e},"rqt=":function(t,e){t.rqt=e},"rq=":function(t,e){t.rq=e},operator:function(t,e,a){return{type_:"operator",kind_:a||e}}}},a:{transitions:n.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:n.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:n.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(t){if(t.text_){var e={type_:"text",p1:t.text_};for(var a in t)delete t[a];return e}}}},pq:{transitions:n.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(t,e){return{type_:"state of aggregation subscript",p1:n.go(e,"o")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:n.go(e[1],"pq")}}}},bd:{transitions:n.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(t,e){return{type_:"color",color1:e[0],color2:n.go(e[1],"bd")}}}},oxidation:{transitions:n.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(t,e){return{type_:"roman numeral",p1:e||""}}}},"tex-math":{transitions:n.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(t){if(t.o){var e={type_:"tex-math",p1:t.o};for(var a in t)delete t[a];return e}}}},"tex-math tight":{transitions:n.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(t,e){t.o=(t.o||"")+"{"+e+"}"},output:function(t){if(t.o){var e={type_:"tex-math",p1:t.o};for(var a in t)delete t[a];return e}}}},"9,9":{transitions:n.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:n.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(t,e){var a=[];return e[0]==="+-"||e[0]==="+/-"?a.push("\\pm "):e[0]&&a.push(e[0]),e[1]&&(n.concatArray(a,n.go(e[1],"pu-9,9")),e[2]&&(e[2].match(/[,.]/)?n.concatArray(a,n.go(e[2],"pu-9,9")):a.push(e[2])),e[3]=e[4]||e[3],e[3]&&(e[3]=e[3].trim(),e[3]==="e"||e[3].substr(0,1)==="*"?a.push({type_:"cdot"}):a.push({type_:"times"}))),e[3]&&a.push("10^{"+e[5]+"}"),a},"number^":function(t,e){var a=[];return e[0]==="+-"||e[0]==="+/-"?a.push("\\pm "):e[0]&&a.push(e[0]),n.concatArray(a,n.go(e[1],"pu-9,9")),a.push("^{"+e[2]+"}"),a},operator:function(t,e,a){return{type_:"operator",kind_:a||e}},space:function(){return{type_:"pu-space-1"}},output:function(t){var e,a=n.patterns.match_("{(...)}",t.d||"");a&&a.remainder===""&&(t.d=a.match_);var o=n.patterns.match_("{(...)}",t.q||"");if(o&&o.remainder===""&&(t.q=o.match_),t.d&&(t.d=(t.d=t.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F"))),t.q){t.q=t.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.q=t.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var r={d:n.go(t.d,"pu"),q:n.go(t.q,"pu")};t.o==="//"?e={type_:"pu-frac",p1:r.d,p2:r.q}:(e=r.d,r.d.length>1||r.q.length>1?e.push({type_:" / "}):e.push({type_:"/"}),n.concatArray(e,r.q))}else e=n.go(t.d,"pu-2");for(var i in t)delete t[i];return e}}},"pu-2":{transitions:n.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(t,e){t.rm+="^{"+e+"}"},space:function(){return{type_:"pu-space-2"}},output:function(t){var e=[];if(t.rm){var a=n.patterns.match_("{(...)}",t.rm||"");e=a&&a.remainder===""?n.go(a.match_,"pu"):{type_:"rm",p1:t.rm}}for(var o in t)delete t[o];return e}}},"pu-9,9":{transitions:n.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(t){var e=[];if(t.text_=t.text_||"",t.text_.length>4){var a=t.text_.length%3;a===0&&(a=3);for(var o=t.text_.length-3;o>0;o-=3)e.push(t.text_.substr(o,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(0,a)),e.reverse()}else e.push(t.text_);for(var r in t)delete t[r];return e},"output-o":function(t){var e=[];if(t.text_=t.text_||"",t.text_.length>4){for(var a=t.text_.length-3,o=0;o<a;o+=3)e.push(t.text_.substr(o,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(o))}else e.push(t.text_);for(var r in t)delete t[r];return e}}}};var u={go:function(t,e){if(!t)return"";for(var a="",o=!1,r=0;r<t.length;r++){var i=t[r];typeof i=="string"?a+=i:(a+=u._go2(i),i.type_==="1st-level escape"&&(o=!0))}return!e&&!o&&a&&(a="{"+a+"}"),a},_goInner:function(t){return t&&u.go(t,!0)},_go2:function(t){var e;switch(t.type_){case"chemfive":e="";var a={a:u._goInner(t.a),b:u._goInner(t.b),p:u._goInner(t.p),o:u._goInner(t.o),q:u._goInner(t.q),d:u._goInner(t.d)};a.a&&(a.a.match(/^[+\-]/)&&(a.a="{"+a.a+"}"),e+=a.a+"\\,"),(a.b||a.p)&&(e+="{\\vphantom{X}}",e+="^{\\hphantom{"+(a.b||"")+"}}_{\\hphantom{"+(a.p||"")+"}}",e+="{\\vphantom{X}}",e+="^{\\smash[t]{\\vphantom{2}}\\mathllap{"+(a.b||"")+"}}",e+="_{\\vphantom{2}\\mathllap{\\smash[t]{"+(a.p||"")+"}}}"),a.o&&(a.o.match(/^[+\-]/)&&(a.o="{"+a.o+"}"),e+=a.o),t.dType==="kv"?((a.d||a.q)&&(e+="{\\vphantom{X}}"),a.d&&(e+="^{"+a.d+"}"),a.q&&(e+="_{\\smash[t]{"+a.q+"}}")):t.dType==="oxidation"?(a.d&&(e+="{\\vphantom{X}}",e+="^{"+a.d+"}"),a.q&&(e+="{\\vphantom{X}}",e+="_{\\smash[t]{"+a.q+"}}")):(a.q&&(e+="{\\vphantom{X}}",e+="_{\\smash[t]{"+a.q+"}}"),a.d&&(e+="{\\vphantom{X}}",e+="^{"+a.d+"}"));break;case"rm":e="\\mathrm{"+t.p1+"}";break;case"text":t.p1.match(/[\^_]/)?(t.p1=t.p1.replace(" ","~").replace("-","\\text{-}"),e="\\mathrm{"+t.p1+"}"):e="\\text{"+t.p1+"}";break;case"roman numeral":e="\\mathrm{"+t.p1+"}";break;case"state of aggregation":e="\\mskip2mu "+u._goInner(t.p1);break;case"state of aggregation subscript":e="\\mskip1mu "+u._goInner(t.p1);break;case"bond":if(e=u._getBond(t.kind_),!e)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+t.kind_+")"];break;case"frac":var o="\\frac{"+t.p1+"}{"+t.p2+"}";e="\\mathchoice{\\textstyle"+o+"}{"+o+"}{"+o+"}{"+o+"}";break;case"pu-frac":var r="\\frac{"+u._goInner(t.p1)+"}{"+u._goInner(t.p2)+"}";e="\\mathchoice{\\textstyle"+r+"}{"+r+"}{"+r+"}{"+r+"}";break;case"tex-math":e=t.p1+" ";break;case"frac-ce":e="\\frac{"+u._goInner(t.p1)+"}{"+u._goInner(t.p2)+"}";break;case"overset":e="\\overset{"+u._goInner(t.p1)+"}{"+u._goInner(t.p2)+"}";break;case"underset":e="\\underset{"+u._goInner(t.p1)+"}{"+u._goInner(t.p2)+"}";break;case"underbrace":e="\\underbrace{"+u._goInner(t.p1)+"}_{"+u._goInner(t.p2)+"}";break;case"color":e="{\\color{"+t.color1+"}{"+u._goInner(t.color2)+"}}";break;case"color0":e="\\color{"+t.color+"}";break;case"arrow":var i={rd:u._goInner(t.rd),rq:u._goInner(t.rq)},c="\\x"+u._getArrow(t.r);i.rq&&(c+="[{"+i.rq+"}]"),i.rd?c+="{"+i.rd+"}":c+="{}",e=c;break;case"operator":e=u._getOperator(t.kind_);break;case"1st-level escape":e=t.p1+" ";break;case"space":e=" ";break;case"entitySkip":e="~";break;case"pu-space-1":e="~";break;case"pu-space-2":e="\\mkern3mu ";break;case"1000 separator":e="\\mkern2mu ";break;case"commaDecimal":e="{,}";break;case"comma enumeration L":e="{"+t.p1+"}\\mkern6mu ";break;case"comma enumeration M":e="{"+t.p1+"}\\mkern3mu ";break;case"comma enumeration S":e="{"+t.p1+"}\\mkern1mu ";break;case"hyphen":e="\\text{-}";break;case"addition compound":e="\\,{\\cdot}\\,";break;case"electron dot":e="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":e="{\\times}";break;case"prime":e="\\prime ";break;case"cdot":e="\\cdot ";break;case"tight cdot":e="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":e="\\times ";break;case"circa":e="{\\sim}";break;case"^":e="uparrow";break;case"v":e="downarrow";break;case"ellipsis":e="\\ldots ";break;case"/":e="/";break;case" / ":e="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return e},_getArrow:function(t){switch(t){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"rightleftarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"rightequilibrium";case"<<=>":return"leftequilibrium";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(t){switch(t){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\mathrlap{\\raisebox{-.1em}{$-$}}\\raisebox{.1em}{$\\tripledash$}}";case"~=":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"~--":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$\\tripledash$}}-}";case"-~-":return"{\\mathrlap{\\raisebox{-.2em}{$-$}}\\mathrlap{\\raisebox{.2em}{$-$}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(t){switch(t){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}}; diff --git a/docs/assets/min-BgkyNW2f.js b/docs/assets/min-BgkyNW2f.js new file mode 100644 index 0000000..5dd23dd --- /dev/null +++ b/docs/assets/min-BgkyNW2f.js @@ -0,0 +1 @@ +import{S as e}from"./_Uint8Array-BGESiCQL.js";import{t as l}from"./isSymbol-BGkTcW3U.js";import{n as c}from"./toString-DlRqgfqz.js";import{n as s}from"./_baseFor-Duhs3RiJ.js";import{r as d}from"./_baseEach-BH6a1vAB.js";import{t as g}from"./_baseMap-DCtSqKLi.js";function h(r,t){return(e(r)?c:g)(r,d(t,3))}var x=h;function S(r,t){return r<t}var f=S;function b(r,t,u){for(var n=-1,v=r.length;++n<v;){var a=r[n],o=t(a);if(o!=null&&(i===void 0?o===o&&!l(o):u(o,i)))var i=o,p=a}return p}var m=b;function j(r){return r&&r.length?m(r,s,f):void 0}var k=j;export{x as i,m as n,f as r,k as t}; diff --git a/docs/assets/min-dark-B4ZhSFYH.js b/docs/assets/min-dark-B4ZhSFYH.js new file mode 100644 index 0000000..4f0e070 --- /dev/null +++ b/docs/assets/min-dark-B4ZhSFYH.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#1A1A1A","activityBar.foreground":"#7D7D7D","activityBarBadge.background":"#383838","badge.background":"#383838","badge.foreground":"#C1C1C1","button.background":"#333","debugIcon.breakpointCurrentStackframeForeground":"#79b8ff","debugIcon.breakpointDisabledForeground":"#848484","debugIcon.breakpointForeground":"#FF7A84","debugIcon.breakpointStackframeForeground":"#79b8ff","debugIcon.breakpointUnverifiedForeground":"#848484","debugIcon.continueForeground":"#FF7A84","debugIcon.disconnectForeground":"#FF7A84","debugIcon.pauseForeground":"#FF7A84","debugIcon.restartForeground":"#79b8ff","debugIcon.startForeground":"#79b8ff","debugIcon.stepBackForeground":"#FF7A84","debugIcon.stepIntoForeground":"#FF7A84","debugIcon.stepOutForeground":"#FF7A84","debugIcon.stepOverForeground":"#FF7A84","debugIcon.stopForeground":"#79b8ff","diffEditor.insertedTextBackground":"#3a632a4b","diffEditor.removedTextBackground":"#88063852","editor.background":"#1f1f1f","editor.lineHighlightBorder":"#303030","editorGroupHeader.tabsBackground":"#1A1A1A","editorGroupHeader.tabsBorder":"#1A1A1A","editorIndentGuide.activeBackground":"#383838","editorIndentGuide.background":"#2A2A2A","editorLineNumber.foreground":"#727272","editorRuler.foreground":"#2A2A2A","editorSuggestWidget.background":"#1A1A1A","focusBorder":"#444","foreground":"#888888","gitDecoration.ignoredResourceForeground":"#444444","input.background":"#2A2A2A","input.foreground":"#E0E0E0","inputOption.activeBackground":"#3a3a3a","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#F5F5F5","list.focusBackground":"#292929","list.highlightForeground":"#EAEAEA","list.hoverBackground":"#262626","list.hoverForeground":"#9E9E9E","list.inactiveSelectionBackground":"#212121","list.inactiveSelectionForeground":"#F5F5F5","panelTitle.activeBorder":"#1f1f1f","panelTitle.activeForeground":"#FAFAFA","panelTitle.inactiveForeground":"#484848","peekView.border":"#444","peekViewEditor.background":"#242424","pickerGroup.border":"#363636","pickerGroup.foreground":"#EAEAEA","progressBar.background":"#FAFAFA","scrollbar.shadow":"#1f1f1f","sideBar.background":"#1A1A1A","sideBarSectionHeader.background":"#202020","statusBar.background":"#1A1A1A","statusBar.debuggingBackground":"#1A1A1A","statusBar.foreground":"#7E7E7E","statusBar.noFolderBackground":"#1A1A1A","statusBarItem.prominentBackground":"#fafafa1a","statusBarItem.remoteBackground":"#1a1a1a00","statusBarItem.remoteForeground":"#7E7E7E","symbolIcon.classForeground":"#FF9800","symbolIcon.constructorForeground":"#b392f0","symbolIcon.enumeratorForeground":"#FF9800","symbolIcon.enumeratorMemberForeground":"#79b8ff","symbolIcon.eventForeground":"#FF9800","symbolIcon.fieldForeground":"#79b8ff","symbolIcon.functionForeground":"#b392f0","symbolIcon.interfaceForeground":"#79b8ff","symbolIcon.methodForeground":"#b392f0","symbolIcon.variableForeground":"#79b8ff","tab.activeBorder":"#1e1e1e","tab.activeForeground":"#FAFAFA","tab.border":"#1A1A1A","tab.inactiveBackground":"#1A1A1A","tab.inactiveForeground":"#727272","terminal.ansiBrightBlack":"#5c5c5c","textLink.activeForeground":"#fafafa","textLink.foreground":"#CCC","titleBar.activeBackground":"#1A1A1A","titleBar.border":"#00000000"},"displayName":"Min Dark","name":"min-dark","semanticHighlighting":true,"tokenColors":[{"settings":{"foreground":"#b392f0"}},{"scope":["support.function","keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],"settings":{"foreground":"#b392f0"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":["strong","markup.heading.markdown","markup.bold.markdown"],"settings":{"fontStyle":"bold","foreground":"#FF7A84"}},{"scope":["markup.italic.markdown"],"settings":{"fontStyle":"italic"}},{"scope":"meta.link.inline.markdown","settings":{"fontStyle":"underline","foreground":"#1976D2"}},{"scope":["string","markup.fenced_code","markup.inline"],"settings":{"foreground":"#9db1c5"}},{"scope":["comment","string.quoted.docstring.multi"],"settings":{"foreground":"#6b737c"}},{"scope":["constant.language","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","support","string.other.link.title.markdown"],"settings":{"foreground":"#79b8ff"}},{"scope":["constant.numeric","constant.other.placeholder","constant.character.format.placeholder","meta.property-value","keyword.other.unit","keyword.other.template","entity.name.tag.yaml","entity.other.attribute-name","support.type.property-name.json"],"settings":{"foreground":"#f8f8f8"}},{"scope":["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","support.function.node","punctuation.separator.key-value","punctuation.definition.template-expression"],"settings":{"foreground":"#f97583"}},{"scope":"variable.parameter.function","settings":{"foreground":"#FF9800"}},{"scope":["entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],"settings":{"foreground":"#b392f0"}},{"scope":["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],"settings":{"foreground":"#ffab70"}},{"scope":"token.info-token","settings":{"foreground":"#316bcd"}},{"scope":"token.warn-token","settings":{"foreground":"#cd9731"}},{"scope":"token.error-token","settings":{"foreground":"#cd3131"}},{"scope":"token.debug-token","settings":{"foreground":"#800080"}},{"scope":["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],"settings":{"foreground":"#bbbbbb"}},{"scope":"markup.underline.link","settings":{"foreground":"#ffab70"}},{"scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#FF7A84"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ffab70"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#79b8ff"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/min-light-QqjIaEXI.js b/docs/assets/min-light-QqjIaEXI.js new file mode 100644 index 0000000..7665668 --- /dev/null +++ b/docs/assets/min-light-QqjIaEXI.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#f6f6f6","activityBar.foreground":"#9E9E9E","activityBarBadge.background":"#616161","badge.background":"#E0E0E0","badge.foreground":"#616161","button.background":"#757575","button.hoverBackground":"#616161","debugIcon.breakpointCurrentStackframeForeground":"#1976D2","debugIcon.breakpointDisabledForeground":"#848484","debugIcon.breakpointForeground":"#D32F2F","debugIcon.breakpointStackframeForeground":"#1976D2","debugIcon.continueForeground":"#6f42c1","debugIcon.disconnectForeground":"#6f42c1","debugIcon.pauseForeground":"#6f42c1","debugIcon.restartForeground":"#1976D2","debugIcon.startForeground":"#1976D2","debugIcon.stepBackForeground":"#6f42c1","debugIcon.stepIntoForeground":"#6f42c1","debugIcon.stepOutForeground":"#6f42c1","debugIcon.stepOverForeground":"#6f42c1","debugIcon.stopForeground":"#1976D2","diffEditor.insertedTextBackground":"#b7e7a44b","diffEditor.removedTextBackground":"#e597af52","editor.background":"#ffffff","editor.foreground":"#212121","editor.lineHighlightBorder":"#f2f2f2","editorBracketMatch.background":"#E7F3FF","editorBracketMatch.border":"#c8e1ff","editorGroupHeader.tabsBackground":"#f6f6f6","editorGroupHeader.tabsBorder":"#fff","editorIndentGuide.background":"#EEE","editorLineNumber.activeForeground":"#757575","editorLineNumber.foreground":"#CCC","editorSuggestWidget.background":"#F3F3F3","extensionButton.prominentBackground":"#000000AA","extensionButton.prominentHoverBackground":"#000000BB","focusBorder":"#D0D0D0","foreground":"#757575","gitDecoration.ignoredResourceForeground":"#AAAAAA","input.border":"#E9E9E9","inputOption.activeBackground":"#EDEDED","list.activeSelectionBackground":"#EEE","list.activeSelectionForeground":"#212121","list.focusBackground":"#ddd","list.focusForeground":"#212121","list.highlightForeground":"#212121","list.inactiveSelectionBackground":"#E0E0E0","list.inactiveSelectionForeground":"#212121","panel.background":"#fff","panel.border":"#f4f4f4","panelTitle.activeBorder":"#fff","panelTitle.inactiveForeground":"#BDBDBD","peekView.border":"#E0E0E0","peekViewEditor.background":"#f8f8f8","pickerGroup.foreground":"#000","progressBar.background":"#000","scrollbar.shadow":"#FFF","sideBar.background":"#f6f6f6","sideBar.border":"#f6f6f6","sideBarSectionHeader.background":"#EEE","sideBarTitle.foreground":"#999","statusBar.background":"#f6f6f6","statusBar.border":"#f6f6f6","statusBar.debuggingBackground":"#f6f6f6","statusBar.foreground":"#7E7E7E","statusBar.noFolderBackground":"#f6f6f6","statusBarItem.prominentBackground":"#0000001a","statusBarItem.remoteBackground":"#f6f6f600","statusBarItem.remoteForeground":"#7E7E7E","symbolIcon.classForeground":"#dd8500","symbolIcon.constructorForeground":"#6f42c1","symbolIcon.enumeratorForeground":"#dd8500","symbolIcon.enumeratorMemberForeground":"#1976D2","symbolIcon.eventForeground":"#dd8500","symbolIcon.fieldForeground":"#1976D2","symbolIcon.functionForeground":"#6f42c1","symbolIcon.interfaceForeground":"#1976D2","symbolIcon.methodForeground":"#6f42c1","symbolIcon.variableForeground":"#1976D2","tab.activeBorder":"#FFF","tab.activeForeground":"#424242","tab.border":"#f6f6f6","tab.inactiveBackground":"#f6f6f6","tab.inactiveForeground":"#BDBDBD","tab.unfocusedActiveBorder":"#fff","terminal.ansiBlack":"#333","terminal.ansiBlue":"#e0e0e0","terminal.ansiBrightBlack":"#a1a1a1","terminal.ansiBrightBlue":"#6871ff","terminal.ansiBrightCyan":"#57d9ad","terminal.ansiBrightGreen":"#a3d900","terminal.ansiBrightMagenta":"#a37acc","terminal.ansiBrightRed":"#d6656a","terminal.ansiBrightWhite":"#7E7E7E","terminal.ansiBrightYellow":"#e7c547","terminal.ansiCyan":"#4dbf99","terminal.ansiGreen":"#77cc00","terminal.ansiMagenta":"#9966cc","terminal.ansiRed":"#D32F2F","terminal.ansiWhite":"#c7c7c7","terminal.ansiYellow":"#f29718","terminal.background":"#fff","textLink.activeForeground":"#000","textLink.foreground":"#000","titleBar.activeBackground":"#f6f6f6","titleBar.border":"#FFFFFF00","titleBar.inactiveBackground":"#f6f6f6"},"displayName":"Min Light","name":"min-light","tokenColors":[{"settings":{"foreground":"#24292eff"}},{"scope":["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],"settings":{"foreground":"#24292eff"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":["strong","markup.heading.markdown","markup.bold.markdown"],"settings":{"fontStyle":"bold"}},{"scope":["markup.italic.markdown"],"settings":{"fontStyle":"italic"}},{"scope":"meta.link.inline.markdown","settings":{"fontStyle":"underline","foreground":"#1976D2"}},{"scope":["string","markup.fenced_code","markup.inline"],"settings":{"foreground":"#2b5581"}},{"scope":["comment","string.quoted.docstring.multi"],"settings":{"foreground":"#c2c3c5"}},{"scope":["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],"settings":{"foreground":"#1976D2"}},{"scope":["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],"settings":{"foreground":"#D32F2F"}},{"scope":"variable.parameter.function","settings":{"foreground":"#FF9800"}},{"scope":["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],"settings":{"foreground":"#6f42c1"}},{"scope":["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],"settings":{"foreground":"#22863a"}},{"scope":"token.info-token","settings":{"foreground":"#316bcd"}},{"scope":"token.warn-token","settings":{"foreground":"#cd9731"}},{"scope":"token.error-token","settings":{"foreground":"#cd3131"}},{"scope":"token.debug-token","settings":{"foreground":"#800080"}},{"scope":["strong","markup.heading.markdown","markup.bold.markdown"],"settings":{"foreground":"#6f42c1"}},{"scope":["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],"settings":{"foreground":"#212121"}},{"scope":["markup.underline.link","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#22863a"}},{"scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#6f42c1"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#d32f2f"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/mindmap-definition-VGOIOE7T-bkwq50Hs.js b/docs/assets/mindmap-definition-VGOIOE7T-bkwq50Hs.js new file mode 100644 index 0000000..1d36090 --- /dev/null +++ b/docs/assets/mindmap-definition-VGOIOE7T-bkwq50Hs.js @@ -0,0 +1,68 @@ +var C;import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as l,r as O}from"./src-faGJHwXX.js";import{D as ht,I as B,Q as lt,X as dt,Z as gt,b as z,d as F}from"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import{r as ut,t as pt}from"./chunk-N4CR4FBY-DtYoI569.js";import{t as yt}from"./chunk-55IACEB6-DvJ_-Ku-.js";import{t as mt}from"./chunk-QN33PNHL-C0IBWhei.js";var b=[];for(let i=0;i<256;++i)b.push((i+256).toString(16).slice(1));function ft(i,t=0){return(b[i[t+0]]+b[i[t+1]]+b[i[t+2]]+b[i[t+3]]+"-"+b[i[t+4]]+b[i[t+5]]+"-"+b[i[t+6]]+b[i[t+7]]+"-"+b[i[t+8]]+b[i[t+9]]+"-"+b[i[t+10]]+b[i[t+11]]+b[i[t+12]]+b[i[t+13]]+b[i[t+14]]+b[i[t+15]]).toLowerCase()}var V,Et=new Uint8Array(16);function bt(){if(!V){if(typeof crypto>"u"||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");V=crypto.getRandomValues.bind(crypto)}return V(Et)}var st={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _t(i,t,n){var g;if(st.randomUUID&&!t&&!i)return st.randomUUID();i||(i={});let a=i.random??((g=i.rng)==null?void 0:g.call(i))??bt();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){if(n||(n=0),n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let c=0;c<16;++c)t[n+c]=a[c];return t}return ft(a)}var Nt=_t,Q=(function(){var i=l(function(e,h,o,r){for(o||(o={}),r=e.length;r--;o[e[r]]=h);return o},"o"),t=[1,4],n=[1,13],a=[1,12],g=[1,15],c=[1,16],p=[1,20],y=[1,19],f=[6,7,8],E=[1,26],T=[1,24],R=[1,25],_=[6,7,11],Y=[1,6,13,15,16,19,22],Z=[1,33],q=[1,34],A=[1,6,7,11,13,15,16,19,22],G={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(e,h,o,r,u,s,$){var d=s.length-1;switch(u){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",s[d].id),r.addNode(s[d-1].length,s[d].id,s[d].descr,s[d].type);break;case 16:r.getLogger().trace("Icon: ",s[d]),r.decorateNode({icon:s[d]});break;case 17:case 21:r.decorateNode({class:s[d]});break;case 18:r.getLogger().trace("SPACELIST");break;case 19:r.getLogger().trace("Node: ",s[d].id),r.addNode(0,s[d].id,s[d].descr,s[d].type);break;case 20:r.decorateNode({icon:s[d]});break;case 25:r.getLogger().trace("node found ..",s[d-2]),this.$={id:s[d-1],descr:s[d-1],type:r.getType(s[d-2],s[d])};break;case 26:this.$={id:s[d],descr:s[d],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace("node found ..",s[d-3]),this.$={id:s[d-3],descr:s[d-1],type:r.getType(s[d-2],s[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:a,14:14,15:g,16:c,17:17,18:18,19:p,22:y},i(f,[2,3]),{1:[2,2]},i(f,[2,4]),i(f,[2,5]),{1:[2,6],6:n,12:21,13:a,14:14,15:g,16:c,17:17,18:18,19:p,22:y},{6:n,9:22,12:11,13:a,14:14,15:g,16:c,17:17,18:18,19:p,22:y},{6:E,7:T,10:23,11:R},i(_,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:y}),i(_,[2,18]),i(_,[2,19]),i(_,[2,20]),i(_,[2,21]),i(_,[2,23]),i(_,[2,24]),i(_,[2,26],{19:[1,30]}),{20:[1,31]},{6:E,7:T,10:32,11:R},{1:[2,7],6:n,12:21,13:a,14:14,15:g,16:c,17:17,18:18,19:p,22:y},i(Y,[2,14],{7:Z,11:q}),i(A,[2,8]),i(A,[2,9]),i(A,[2,10]),i(_,[2,15]),i(_,[2,16]),i(_,[2,17]),{20:[1,35]},{21:[1,36]},i(Y,[2,13],{7:Z,11:q}),i(A,[2,11]),i(A,[2,12]),{21:[1,37]},i(_,[2,25]),i(_,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(e,h){if(h.recoverable)this.trace(e);else{var o=Error(e);throw o.hash=h,o}},"parseError"),parse:l(function(e){var h=this,o=[0],r=[],u=[null],s=[],$=this.table,d="",U=0,J=0,K=0,rt=2,tt=1,ot=s.slice.call(arguments,1),m=Object.create(this.lexer),x={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(x.yy[j]=this.yy[j]);m.setInput(e,x.yy),x.yy.lexer=m,x.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var H=m.yylloc;s.push(H);var at=m.options&&m.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ct(L){o.length-=2*L,u.length-=L,s.length-=L}l(ct,"popStack");function et(){var L=r.pop()||m.lex()||tt;return typeof L!="number"&&(L instanceof Array&&(r=L,L=r.pop()),L=h.symbols_[L]||L),L}l(et,"lex");for(var N,W,I,D,X,v={},P,S,it,M;;){if(I=o[o.length-1],this.defaultActions[I]?D=this.defaultActions[I]:(N??(N=et()),D=$[I]&&$[I][N]),D===void 0||!D.length||!D[0]){var nt="";for(P in M=[],$[I])this.terminals_[P]&&P>rt&&M.push("'"+this.terminals_[P]+"'");nt=m.showPosition?"Parse error on line "+(U+1)+`: +`+m.showPosition()+` +Expecting `+M.join(", ")+", got '"+(this.terminals_[N]||N)+"'":"Parse error on line "+(U+1)+": Unexpected "+(N==tt?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(nt,{text:m.match,token:this.terminals_[N]||N,line:m.yylineno,loc:H,expected:M})}if(D[0]instanceof Array&&D.length>1)throw Error("Parse Error: multiple actions possible at state: "+I+", token: "+N);switch(D[0]){case 1:o.push(N),u.push(m.yytext),s.push(m.yylloc),o.push(D[1]),N=null,W?(N=W,W=null):(J=m.yyleng,d=m.yytext,U=m.yylineno,H=m.yylloc,K>0&&K--);break;case 2:if(S=this.productions_[D[1]][1],v.$=u[u.length-S],v._$={first_line:s[s.length-(S||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(S||1)].first_column,last_column:s[s.length-1].last_column},at&&(v._$.range=[s[s.length-(S||1)].range[0],s[s.length-1].range[1]]),X=this.performAction.apply(v,[d,J,U,x.yy,D[1],u,s].concat(ot)),X!==void 0)return X;S&&(o=o.slice(0,-1*S*2),u=u.slice(0,-1*S),s=s.slice(0,-1*S)),o.push(this.productions_[D[1]][0]),u.push(v.$),s.push(v._$),it=$[o[o.length-2]][o[o.length-1]],o.push(it);break;case 3:return!0}}return!0},"parse")};G.lexer=(function(){return{EOF:1,parseError:l(function(e,h){if(this.yy.parser)this.yy.parser.parseError(e,h);else throw Error(e)},"parseError"),setInput:l(function(e,h){return this.yy=h||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:l(function(e){var h=e.length,o=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===r.length?this.yylloc.first_column:0)+r[r.length-o.length].length-o[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(e){this.unput(this.match.slice(e))},"less"),pastInput:l(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var e=this.pastInput(),h=Array(e.length+1).join("-");return e+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:l(function(e,h){var o,r,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],o=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var s in u)this[s]=u[s];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,h,o,r;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),s=0;s<u.length;s++)if(o=this._input.match(this.rules[u[s]]),o&&(!h||o[0].length>h[0].length)){if(h=o,r=s,this.options.backtrack_lexer){if(e=this.test_match(o,u[s]),e!==!1)return e;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(e=this.test_match(h,u[r]),e===!1?!1:e):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){return this.next()||this.lex()},"lex"),begin:l(function(e){this.conditionStack.push(e)},"begin"),popState:l(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:l(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:l(function(e){this.begin(e)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(e,h,o,r){switch(o){case 0:return e.getLogger().trace("Found comment",h.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",h.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",h.yytext),"NODE_DEND";case 30:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 35:return e.getLogger().trace("Long description:",h.yytext),20;case 36:return e.getLogger().trace("Long description:",h.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function w(){this.yy={}}return l(w,"Parser"),w.prototype=G,G.Parser=w,new w})();Q.parser=Q;var Dt=Q,k={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Lt=(C=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=k,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(t){for(let n=this.nodes.length-1;n>=0;n--)if(this.nodes[n].level<t)return this.nodes[n];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,n,a,g){var T,R;O.info("addNode",t,n,a,g);let c=!1;this.nodes.length===0?(this.baseLevel=t,t=0,c=!0):this.baseLevel!==void 0&&(t-=this.baseLevel,c=!1);let p=z(),y=((T=p.mindmap)==null?void 0:T.padding)??F.mindmap.padding;switch(g){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:y*=2;break}let f={id:this.count++,nodeId:B(n,p),level:t,descr:B(a,p),type:g,children:[],width:((R=p.mindmap)==null?void 0:R.maxNodeWidth)??F.mindmap.maxNodeWidth,padding:y,isRoot:c},E=this.getParent(t);if(E)E.children.push(f),this.nodes.push(f);else if(c)this.nodes.push(f);else throw Error(`There can be only one root. No parent could be found for ("${f.descr}")`)}getType(t,n){switch(O.debug("In get type",t,n),t){case"[":return this.nodeType.RECT;case"(":return n===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(t,n){this.elements[t]=n}getElementById(t){return this.elements[t]}decorateNode(t){if(!t)return;let n=z(),a=this.nodes[this.nodes.length-1];t.icon&&(a.icon=B(t.icon,n)),t.class&&(a.class=B(t.class,n))}type2Str(t){switch(t){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(t,n){if(t.level===0?t.section=void 0:t.section=n,t.children)for(let[a,g]of t.children.entries()){let c=t.level===0?a:n;this.assignSections(g,c)}}flattenNodes(t,n){let a=["mindmap-node"];t.isRoot===!0?a.push("section-root","section--1"):t.section!==void 0&&a.push(`section-${t.section}`),t.class&&a.push(t.class);let g=a.join(" "),c=l(y=>{switch(y){case k.CIRCLE:return"mindmapCircle";case k.RECT:return"rect";case k.ROUNDED_RECT:return"rounded";case k.CLOUD:return"cloud";case k.BANG:return"bang";case k.HEXAGON:return"hexagon";case k.DEFAULT:return"defaultMindmapNode";case k.NO_BORDER:default:return"rect"}},"getShapeFromType"),p={id:t.id.toString(),domId:"node_"+t.id.toString(),label:t.descr,isGroup:!1,shape:c(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:g,cssStyles:[],look:"default",icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(n.push(p),t.children)for(let y of t.children)this.flattenNodes(y,n)}generateEdges(t,n){if(t.children)for(let a of t.children){let g="edge";a.section!==void 0&&(g+=` section-edge-${a.section}`);let c=t.level+1;g+=` edge-depth-${c}`;let p={id:`edge_${t.id}_${a.id}`,start:t.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:g,depth:t.level,section:a.section};n.push(p),this.generateEdges(a,n)}}getData(){let t=this.getMindmap(),n=z(),a=ht().layout!==void 0,g=n;if(a||(g.layout="cose-bilkent"),!t)return{nodes:[],edges:[],config:g};O.debug("getData: mindmapRoot",t,n),this.assignSections(t);let c=[],p=[];this.flattenNodes(t,c),this.generateEdges(t,p),O.debug(`getData: processed ${c.length} nodes and ${p.length} edges`);let y=new Map;for(let f of c)y.set(f.id,{shape:f.shape,width:f.width,height:f.height,padding:f.padding});return{nodes:c,edges:p,config:g,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(y),type:"mindmap",diagramId:"mindmap-"+Nt()}}getLogger(){return O}},l(C,"MindmapDB"),C),St={draw:l(async(i,t,n,a)=>{var y,f;O.debug(`Rendering mindmap diagram +`+i);let g=a.db,c=g.getData(),p=yt(t,c.config.securityLevel);c.type=a.type,c.layoutAlgorithm=pt(c.config.layout,{fallback:"cose-bilkent"}),c.diagramId=t,g.getMindmap()&&(c.nodes.forEach(E=>{E.shape==="rounded"?(E.radius=15,E.taper=15,E.stroke="none",E.width=0,E.padding=15):E.shape==="circle"?E.padding=10:E.shape==="rect"&&(E.width=0,E.padding=10)}),await ut(c,p),mt(p,((y=c.config.mindmap)==null?void 0:y.padding)??F.mindmap.padding,"mindmapDiagram",((f=c.config.mindmap)==null?void 0:f.useMaxWidth)??F.mindmap.useMaxWidth))},"draw")},kt=l(i=>{let t="";for(let n=0;n<i.THEME_COLOR_LIMIT;n++)i["lineColor"+n]=i["lineColor"+n]||i["cScaleInv"+n],lt(i["lineColor"+n])?i["lineColor"+n]=gt(i["lineColor"+n],20):i["lineColor"+n]=dt(i["lineColor"+n],20);for(let n=0;n<i.THEME_COLOR_LIMIT;n++){let a=""+(17-3*n);t+=` + .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path { + fill: ${i["cScale"+n]}; + } + .section-${n-1} text { + fill: ${i["cScaleLabel"+n]}; + } + .node-icon-${n-1} { + font-size: 40px; + color: ${i["cScaleLabel"+n]}; + } + .section-edge-${n-1}{ + stroke: ${i["cScale"+n]}; + } + .edge-depth-${n-1}{ + stroke-width: ${a}; + } + .section-${n-1} line { + stroke: ${i["cScaleInv"+n]} ; + stroke-width: 3; + } + + .disabled, .disabled circle, .disabled text { + fill: lightgray; + } + .disabled text { + fill: #efefef; + } + `}return t},"genSections"),xt={get db(){return new Lt},renderer:St,parser:Dt,styles:l(i=>` + .edge { + stroke-width: 3; + } + ${kt(i)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${i.git0}; + } + .section-root text { + fill: ${i.gitBranchLabel0}; + } + .section-root span { + color: ${i.gitBranchLabel0}; + } + .section-2 span { + color: ${i.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .mindmap-node-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } +`,"getStyles")};export{xt as diagram}; diff --git a/docs/assets/mipsasm-D0HB7dFo.js b/docs/assets/mipsasm-D0HB7dFo.js new file mode 100644 index 0000000..0cb94d4 --- /dev/null +++ b/docs/assets/mipsasm-D0HB7dFo.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"MIPS Assembly","fileTypes":["s","mips","spim","asm"],"name":"mipsasm","patterns":[{"match":"\\\\b(mul|abs|divu??|mulou??|negu??|not|remu??|rol|ror|li|seq|sgeu??|sgtu??|sleu??|sne|b|beqz|bgeu??|bgtu??|bleu??|bltu??|bnez|la|ld|ulhu??|ulw|sd|ush|usw|move|mfc1\\\\.d|l\\\\.d|l\\\\.s|s\\\\.d|s\\\\.s)\\\\b","name":"support.function.pseudo.mips"},{"match":"\\\\b(abs\\\\.d|abs\\\\.s|add|add\\\\.d|add\\\\.s|addiu??|addu|andi??|bc1f|bc1t|beq|bgez|bgezal|bgtz|blez|bltz|bltzal|bne|break|c\\\\.eq\\\\.d|c\\\\.eq\\\\.s|c\\\\.le\\\\.d|c\\\\.le\\\\.s|c\\\\.lt\\\\.d|c\\\\.lt\\\\.s|ceil\\\\.w\\\\.d|ceil\\\\.w\\\\.s|clo|clz|cvt\\\\.d\\\\.s|cvt\\\\.d\\\\.w|cvt\\\\.s\\\\.d|cvt\\\\.s\\\\.w|cvt\\\\.w\\\\.d|cvt\\\\.w\\\\.s|div|div\\\\.d|div\\\\.s|divu|eret|floor\\\\.w\\\\.d|floor\\\\.w\\\\.s|j|jalr??|jr|lbu??|lhu??|ll|lui|lw|lwc1|lwl|lwr|maddu??|mfc0|mfc1|mfhi|mflo|mov\\\\.d|mov\\\\.s|movf|movf\\\\.d|movf\\\\.s|movn|movn\\\\.d|movn\\\\.s|movt|movt\\\\.d|movt\\\\.s|movz|movz\\\\.d|movz\\\\.s|msub|mtc0|mtc1|mthi|mtlo|mul|mul\\\\.d|mul\\\\.s|multu??|neg\\\\.d|neg\\\\.s|nop|nor|ori??|round\\\\.w\\\\.d|round\\\\.w\\\\.s|sb|sc|sdc1|sh|sllv??|slti??|sltiu|sltu|sqrt\\\\.d|sqrt\\\\.s|srav??|srlv??|sub|sub\\\\.d|sub\\\\.s|subu|sw|swc1|swl|swr|syscall|teqi??|tgei??|tgeiu|tgeu|tlti??|tltiu|tltu|trunc\\\\.w\\\\.d|trunc\\\\.w\\\\.s|xori??)\\\\b","name":"support.function.mips"},{"match":"\\\\.(asciiz??|byte|data|double|float|half|kdata|ktext|space|text|word|set\\\\s*(noat|at))\\\\b","name":"storage.type.mips"},{"match":"\\\\.(align|extern||globl)\\\\b","name":"storage.modifier.mips"},{"captures":{"1":{"name":"entity.name.function.label.mips"}},"match":"\\\\b([0-9A-Z_a-z]+):","name":"meta.function.label.mips"},{"captures":{"1":{"name":"punctuation.definition.variable.mips"}},"match":"(\\\\$)([02-9]|1[0-9]|2[0-5]|2[89]|3[01])\\\\b","name":"variable.other.register.usable.by-number.mips"},{"captures":{"1":{"name":"punctuation.definition.variable.mips"}},"match":"(\\\\$)(zero|v[01]|a[0-3]|t[0-9]|s[0-7]|gp|sp|fp|ra)\\\\b","name":"variable.other.register.usable.by-name.mips"},{"captures":{"1":{"name":"punctuation.definition.variable.mips"}},"match":"(\\\\$)(at|k[01]|1|2[67])\\\\b","name":"variable.other.register.reserved.mips"},{"captures":{"1":{"name":"punctuation.definition.variable.mips"}},"match":"(\\\\$)f([0-9]|1[0-9]|2[0-9]|3[01])\\\\b","name":"variable.other.register.usable.floating-point.mips"},{"match":"\\\\b\\\\d+\\\\.\\\\d+\\\\b","name":"constant.numeric.float.mips"},{"match":"\\\\b(\\\\d+|0([Xx])\\\\h+)\\\\b","name":"constant.numeric.integer.mips"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.mips"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.mips"}},"name":"string.quoted.double.mips","patterns":[{"match":"\\\\\\\\[\\"\\\\\\\\nrt]","name":"constant.character.escape.mips"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.mips"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.mips"}},"end":"\\\\n","name":"comment.line.number-sign.mips"}]}],"scopeName":"source.mips","aliases":["mips"]}'))];export{e as default}; diff --git a/docs/assets/mirc-CzS_wutP.js b/docs/assets/mirc-CzS_wutP.js new file mode 100644 index 0000000..7d6c3eb --- /dev/null +++ b/docs/assets/mirc-CzS_wutP.js @@ -0,0 +1 @@ +function t(e){for(var $={},r=e.split(" "),i=0;i<r.length;++i)$[r[i]]=!0;return $}var o=t("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),s=t("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),l=t("if elseif else and not or eq ne in ni for foreach while switch"),c=/[+\-*&%=<>!?^\/\|]/;function d(e,$,r){return $.tokenize=r,r(e,$)}function a(e,$){var r=$.beforeParams;$.beforeParams=!1;var i=e.next();if(/[\[\]{}\(\),\.]/.test(i))return i=="("&&r?$.inParams=!0:i==")"&&($.inParams=!1),null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if(i=="\\")return e.eat("\\"),e.eat(/./),"number";if(i=="/"&&e.eat("*"))return d(e,$,m);if(i==";"&&e.match(/ *\( *\(/))return d(e,$,p);if(i==";"&&!$.inParams)return e.skipToEnd(),"comment";if(i=='"')return e.eat(/"/),"keyword";if(i=="$")return e.eatWhile(/[$_a-z0-9A-Z\.:]/),o&&o.propertyIsEnumerable(e.current().toLowerCase())?"keyword":($.beforeParams=!0,"builtin");if(i=="%")return e.eatWhile(/[^,\s()]/),$.beforeParams=!0,"string";if(c.test(i))return e.eatWhile(c),"operator";e.eatWhile(/[\w\$_{}]/);var n=e.current().toLowerCase();return s&&s.propertyIsEnumerable(n)?"keyword":l&&l.propertyIsEnumerable(n)?($.beforeParams=!0,"keyword"):null}function m(e,$){for(var r=!1,i;i=e.next();){if(i=="/"&&r){$.tokenize=a;break}r=i=="*"}return"comment"}function p(e,$){for(var r=0,i;i=e.next();){if(i==";"&&r==2){$.tokenize=a;break}i==")"?r++:i!=" "&&(r=0)}return"meta"}const u={name:"mirc",startState:function(){return{tokenize:a,beforeParams:!1,inParams:!1}},token:function(e,$){return e.eatSpace()?null:$.tokenize(e,$)}};export{u as t}; diff --git a/docs/assets/mirc-D6l20mh4.js b/docs/assets/mirc-D6l20mh4.js new file mode 100644 index 0000000..2ff55f9 --- /dev/null +++ b/docs/assets/mirc-D6l20mh4.js @@ -0,0 +1 @@ +import{t as r}from"./mirc-CzS_wutP.js";export{r as mirc}; diff --git a/docs/assets/mllike-D9b50pH5.js b/docs/assets/mllike-D9b50pH5.js new file mode 100644 index 0000000..c346d55 --- /dev/null +++ b/docs/assets/mllike-D9b50pH5.js @@ -0,0 +1 @@ +function k(i){var n={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},l=i.extraWords||{};for(var w in l)l.hasOwnProperty(w)&&(n[w]=i.extraWords[w]);var a=[];for(var u in n)a.push(u);function d(e,r){var o=e.next();if(o==='"')return r.tokenize=s,r.tokenize(e,r);if(o==="{"&&e.eat("|"))return r.longString=!0,r.tokenize=b,r.tokenize(e,r);if(o==="("&&e.match(/^\*(?!\))/))return r.commentLevel++,r.tokenize=c,r.tokenize(e,r);if(o==="~"||o==="?")return e.eatWhile(/\w/),"variableName.special";if(o==="`")return e.eatWhile(/\w/),"quote";if(o==="/"&&i.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(o))return o==="0"&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),o==="0"&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),o==="0"&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(o))return"operator";if(/[\w\xa1-\uffff]/.test(o)){e.eatWhile(/[\w\xa1-\uffff]/);var t=e.current();return n.hasOwnProperty(t)?n[t]:"variable"}return null}function s(e,r){for(var o,t=!1,y=!1;(o=e.next())!=null;){if(o==='"'&&!y){t=!0;break}y=!y&&o==="\\"}return t&&!y&&(r.tokenize=d),"string"}function c(e,r){for(var o,t;r.commentLevel>0&&(t=e.next())!=null;)o==="("&&t==="*"&&r.commentLevel++,o==="*"&&t===")"&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=d),"comment"}function b(e,r){for(var o,t;r.longString&&(t=e.next())!=null;)o==="|"&&t==="}"&&(r.longString=!1),o=t;return r.longString||(r.tokenize=d),"string"}return{startState:function(){return{tokenize:d,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{autocomplete:a,commentTokens:{line:i.slashComments?"//":void 0,block:{open:"(*",close:"*)"}}}}}const f=k({name:"ocaml",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),m=k({name:"fsharp",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),p=k({name:"sml",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0});export{f as n,p as r,m as t}; diff --git a/docs/assets/mllike-fwkzyrZt.js b/docs/assets/mllike-fwkzyrZt.js new file mode 100644 index 0000000..7cf053a --- /dev/null +++ b/docs/assets/mllike-fwkzyrZt.js @@ -0,0 +1 @@ +import{n as a,r as s,t as r}from"./mllike-D9b50pH5.js";export{r as fSharp,a as oCaml,s as sml}; diff --git a/docs/assets/mode-CXc0VeQq.js b/docs/assets/mode-CXc0VeQq.js new file mode 100644 index 0000000..d04ca32 --- /dev/null +++ b/docs/assets/mode-CXc0VeQq.js @@ -0,0 +1 @@ +import{i as n,p as t}from"./useEvent-DlWF5OMa.js";import{pi as o}from"./cells-CmJW_FeD.js";import{t as i}from"./invariant-C6yE60hi.js";import{t as a}from"./utils-Czt8B2GX.js";function s(){let r=n.get(e);return o(r,"internal-error: initial mode not found"),i(r!=="present","internal-error: initial mode cannot be 'present'"),r}function m(r){return r==="read"?"read":r==="edit"?"present":"edit"}const d=t({mode:a()?"read":"not-set",cellAnchor:null}),e=t(void 0),l=t(!1);export{d as a,m as i,e as n,l as r,s as t}; diff --git a/docs/assets/modelica-C8E83p8w.js b/docs/assets/modelica-C8E83p8w.js new file mode 100644 index 0000000..bb19655 --- /dev/null +++ b/docs/assets/modelica-C8E83p8w.js @@ -0,0 +1 @@ +function l(n){for(var e={},t=n.split(" "),o=0;o<t.length;++o)e[t[o]]=!0;return e}var a=l("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),i=l("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),u=l("Real Boolean Integer String"),c=[].concat(Object.keys(a),Object.keys(i),Object.keys(u)),p=/[;=\(:\),{}.*<>+\-\/^\[\]]/,k=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,r=/[0-9]/,s=/[_a-zA-Z]/;function f(n,e){return n.skipToEnd(),e.tokenize=null,"comment"}function m(n,e){for(var t=!1,o;o=n.next();){if(t&&o=="/"){e.tokenize=null;break}t=o=="*"}return"comment"}function d(n,e){for(var t=!1,o;(o=n.next())!=null;){if(o=='"'&&!t){e.tokenize=null,e.sol=!1;break}t=!t&&o=="\\"}return"string"}function z(n,e){for(n.eatWhile(r);n.eat(r)||n.eat(s););var t=n.current();return e.sol&&(t=="package"||t=="model"||t=="when"||t=="connector")?e.level++:e.sol&&t=="end"&&e.level>0&&e.level--,e.tokenize=null,e.sol=!1,a.propertyIsEnumerable(t)?"keyword":i.propertyIsEnumerable(t)?"builtin":u.propertyIsEnumerable(t)?"atom":"variable"}function b(n,e){for(;n.eat(/[^']/););return e.tokenize=null,e.sol=!1,n.eat("'")?"variable":"error"}function h(n,e){return n.eatWhile(r),n.eat(".")&&n.eatWhile(r),(n.eat("e")||n.eat("E"))&&(n.eat("-")||n.eat("+"),n.eatWhile(r)),e.tokenize=null,e.sol=!1,"number"}const g={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(n,e){if(e.tokenize!=null)return e.tokenize(n,e);if(n.sol()&&(e.sol=!0),n.eatSpace())return e.tokenize=null,null;var t=n.next();if(t=="/"&&n.eat("/"))e.tokenize=f;else if(t=="/"&&n.eat("*"))e.tokenize=m;else{if(k.test(t+n.peek()))return n.next(),e.tokenize=null,"operator";if(p.test(t))return e.tokenize=null,"operator";if(s.test(t))e.tokenize=z;else if(t=="'"&&n.peek()&&n.peek()!="'")e.tokenize=b;else if(t=='"')e.tokenize=d;else if(r.test(t))e.tokenize=h;else return e.tokenize=null,"error"}return e.tokenize(n,e)},indent:function(n,e,t){if(n.tokenize!=null)return null;var o=n.level;return/(algorithm)/.test(e)&&o--,/(equation)/.test(e)&&o--,/(initial algorithm)/.test(e)&&o--,/(initial equation)/.test(e)&&o--,/(end)/.test(e)&&o--,o>0?t.unit*o:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:c}};export{g as t}; diff --git a/docs/assets/modelica-DAnB6nmO.js b/docs/assets/modelica-DAnB6nmO.js new file mode 100644 index 0000000..b3aa66a --- /dev/null +++ b/docs/assets/modelica-DAnB6nmO.js @@ -0,0 +1 @@ +import{t as o}from"./modelica-C8E83p8w.js";export{o as modelica}; diff --git a/docs/assets/mojo-DcsbnSkY.js b/docs/assets/mojo-DcsbnSkY.js new file mode 100644 index 0000000..ec5f8b8 --- /dev/null +++ b/docs/assets/mojo-DcsbnSkY.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Mojo","name":"mojo","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated-parameter":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"}]},"assignment-operator":{"match":"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)","name":"keyword.operator.assignment.python"},"backticks":{"begin":"\`","end":"\`|(?<!\\\\\\\\)(\\\\n)","name":"string.quoted.single.python"},"builtin-callables":{"patterns":[{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#builtin-exceptions"},{"include":"#builtin-functions"},{"include":"#builtin-types"}]},"builtin-exceptions":{"match":"(?<!\\\\.)\\\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\\\b","name":"support.type.exception.python"},"builtin-functions":{"patterns":[{"match":"(?<!\\\\.)\\\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\\\b","name":"support.function.builtin.python"},{"match":"(?<!\\\\.)\\\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\\\b","name":"variable.legacy.builtin.python"}]},"builtin-possible-callables":{"patterns":[{"include":"#builtin-callables"},{"include":"#magic-names"}]},"builtin-types":{"match":"(?<!\\\\.)\\\\b(__mlir_attr|__mlir_op|__mlir_type|bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\\\b","name":"support.type.python"},"call-wrapper-inheritance":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#inheritance-name"},{"include":"#function-arguments"}]},"class-declaration":{"patterns":[{"begin":"\\\\s*(class|struct|trait)\\\\s+(?=[_[:alpha:]]\\\\w*\\\\s*([(:]))","beginCaptures":{"1":{"name":"storage.type.class.python"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.section.class.begin.python"}},"name":"meta.class.python","patterns":[{"include":"#class-name"},{"include":"#class-inheritance"}]}]},"class-inheritance":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.inheritance.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.inheritance.end.python"}},"name":"meta.class.inheritance.python","patterns":[{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.arguments.python"},{"match":",","name":"punctuation.separator.inheritance.python"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"match":"\\\\bmetaclass\\\\b","name":"support.type.metaclass.python"},{"include":"#illegal-names"},{"include":"#class-kwarg"},{"include":"#call-wrapper-inheritance"},{"include":"#expression-base"},{"include":"#member-access-class"},{"include":"#inheritance-identifier"}]},"class-kwarg":{"captures":{"1":{"name":"entity.other.inherited-class.python variable.parameter.class.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},"class-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.type.class.python"}]},"codetags":{"captures":{"1":{"name":"keyword.codetag.notation.python"}},"match":"\\\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\\\b"},"comments":{"patterns":[{"begin":"#\\\\s*(type:)\\\\s*+(?!$|#)","beginCaptures":{"0":{"name":"meta.typehint.comment.python"},"1":{"name":"comment.typehint.directive.notation.python"}},"contentName":"meta.typehint.comment.python","end":"$|(?=#)","name":"comment.line.number-sign.python","patterns":[{"match":"\\\\Gignore(?=\\\\s*(?:$|#))","name":"comment.typehint.ignore.notation.python"},{"match":"(?<!\\\\.)\\\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\\\b","name":"comment.typehint.type.notation.python"},{"match":"([]()*,.=\\\\[]|(->))","name":"comment.typehint.punctuation.notation.python"},{"match":"([_[:alpha:]]\\\\w*)","name":"comment.typehint.variable.notation.python"}]},{"include":"#comments-base"}]},"comments-base":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"$()","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-double-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\\"\\"\\"))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-single-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?='''))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"curly-braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.python"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.python"}},"patterns":[{"match":":","name":"punctuation.separator.dict.python"},{"include":"#expression"}]},"decorator":{"begin":"^\\\\s*((@))\\\\s*(?=[_[:alpha:]]\\\\w*)","beginCaptures":{"1":{"name":"entity.name.function.decorator.python"},"2":{"name":"punctuation.definition.decorator.python"}},"end":"(\\\\))(.*?)(?=\\\\s*(?:#|$))|(?=[\\\\n#])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"invalid.illegal.decorator.python"}},"name":"meta.function.decorator.python","patterns":[{"include":"#decorator-name"},{"include":"#function-arguments"}]},"decorator-name":{"patterns":[{"include":"#builtin-callables"},{"include":"#illegal-object-name"},{"captures":{"2":{"name":"punctuation.separator.period.python"}},"match":"([_[:alpha:]]\\\\w*)|(\\\\.)","name":"entity.name.function.decorator.python"},{"include":"#line-continuation"},{"captures":{"1":{"name":"invalid.illegal.decorator.python"}},"match":"\\\\s*([^#(.\\\\\\\\_[:alpha:]\\\\s].*?)(?=#|$)","name":"invalid.illegal.decorator.python"}]},"double-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-one-regexp-character-set"},{"include":"#double-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-one-regexp-lookahead"},{"include":"#double-one-regexp-lookahead-negative"},{"include":"#double-one-regexp-lookbehind"},{"include":"#double-one-regexp-lookbehind-negative"},{"include":"#double-one-regexp-conditional"},{"include":"#double-one-regexp-parentheses-non-capturing"},{"include":"#double-one-regexp-parentheses"}]},"double-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-three-regexp-character-set"},{"include":"#double-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-three-regexp-lookahead"},{"include":"#double-three-regexp-lookahead-negative"},{"include":"#double-three-regexp-lookbehind"},{"include":"#double-three-regexp-lookbehind-negative"},{"include":"#double-three-regexp-conditional"},{"include":"#double-three-regexp-parentheses-non-capturing"},{"include":"#double-three-regexp-parentheses"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"ellipsis":{"match":"\\\\.\\\\.\\\\.","name":"constant.other.ellipsis.python"},"escape-sequence":{"match":"\\\\\\\\(x\\\\h{2}|[0-7]{1,3}|[\\"'\\\\\\\\abfnrtv])","name":"constant.character.escape.python"},"escape-sequence-unicode":{"patterns":[{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8}|N\\\\{[\\\\w\\\\s]+?})","name":"constant.character.escape.python"}]},"expression":{"patterns":[{"include":"#expression-base"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"expression-bare":{"patterns":[{"include":"#backticks"},{"include":"#literal"},{"include":"#regexp"},{"include":"#string"},{"include":"#lambda"},{"include":"#generator"},{"include":"#illegal-operator"},{"include":"#operator"},{"include":"#curly-braces"},{"include":"#item-access"},{"include":"#list"},{"include":"#odd-function-call"},{"include":"#round-braces"},{"include":"#function-call"},{"include":"#builtin-functions"},{"include":"#builtin-types"},{"include":"#builtin-exceptions"},{"include":"#magic-names"},{"include":"#special-names"},{"include":"#illegal-names"},{"include":"#special-variables"},{"include":"#ellipsis"},{"include":"#punctuation"},{"include":"#line-continuation"}]},"expression-base":{"patterns":[{"include":"#comments"},{"include":"#expression-bare"},{"include":"#line-continuation"}]},"f-expression":{"patterns":[{"include":"#expression-bare"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"fregexp-base-expression":{"patterns":[{"include":"#fregexp-quantifier"},{"include":"#fstring-formatting-braces"},{"match":"\\\\{.*?}"},{"include":"#regexp-base-common"}]},"fregexp-quantifier":{"match":"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}}","name":"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{"begin":"\\\\b([Ff])([BUbu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{"begin":"\\\\b([Ff])([BUbu])?(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-formatting":{"patterns":[{"include":"#fstring-formatting-braces"},{"include":"#fstring-formatting-singe-brace"}]},"fstring-formatting-braces":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"2":{"name":"invalid.illegal.brace.python"},"3":{"name":"constant.character.format.placeholder.other.python"}},"match":"(\\\\{)(\\\\s*?)(})"},{"match":"(\\\\{\\\\{|}})","name":"constant.character.escape.python"}]},"fstring-formatting-singe-brace":{"match":"(}(?!}))","name":"invalid.illegal.brace.python"},"fstring-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#fstring-formatting"}]},"fstring-illegal-multi-brace":{"patterns":[{"include":"#impossible"}]},"fstring-illegal-single-brace":{"begin":"(\\\\{)(?=[^\\\\n}]*$\\\\n?)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-multi-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-multi"},{"include":"#f-expression"}]},"fstring-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.multi.python"},"fstring-normf-quoted-multi-line":{"begin":"\\\\b([BUbu])([Ff])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-normf-quoted-single-line":{"begin":"\\\\b([BUbu])([Ff])(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#fstring-formatting"}]},"fstring-raw-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.raw.multi.python"},"fstring-raw-quoted-multi-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.multi.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-raw-multi-core"}]},"fstring-raw-quoted-single-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.single.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.single.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-raw-single-core"}]},"fstring-raw-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.raw.single.python"},"fstring-single-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.single.python"},"fstring-terminator-multi":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})","patterns":[{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"fstring-terminator-single":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})|(?=\\\\n)","patterns":[{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"function-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.function-call.arguments.python","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.python"},{"captures":{"1":{"name":"keyword.operator.unpacking.arguments.python"}},"match":"(?:(?<=[(,])|^)\\\\s*(\\\\*{1,2})"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function-call.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"include":"#expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"punctuation.definition.arguments.begin.python"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"}]},"function-call":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#special-variables"},{"include":"#function-name"},{"include":"#function-arguments"}]},"function-declaration":{"begin":"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def|fn)\\\\s+(?=[_[:alpha:]]\\\\p{word}*\\\\s*[(\\\\[])","beginCaptures":{"1":{"name":"storage.type.function.async.python"},"2":{"name":"storage.type.function.python"}},"end":"(:|(?=[\\\\n\\"#']))","endCaptures":{"1":{"name":"punctuation.section.function.begin.python"}},"name":"meta.function.python","patterns":[{"include":"#function-modifier"},{"include":"#function-def-name"},{"include":"#parameters"},{"include":"#meta_parameters"},{"include":"#line-continuation"},{"include":"#return-annotation"}]},"function-def-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.function.python"}]},"function-modifier":{"match":"(raises|capturing)","name":"storage.modifier"},"function-name":{"patterns":[{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.function-call.generic.python"}]},"generator":{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.python"}},"end":"\\\\bin\\\\b","endCaptures":{"0":{"name":"keyword.control.flow.python"}},"patterns":[{"include":"#expression"}]},"illegal-names":{"captures":{"1":{"name":"keyword.control.flow.python"},"2":{"name":"storage.type.function.python"},"3":{"name":"keyword.control.import.python"}},"match":"\\\\b(?:(and|assert|async|await|break|class|struct|trait|continue|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(def|fn|capturing|raises)|(as|import))\\\\b"},"illegal-object-name":{"match":"\\\\b(True|False|None)\\\\b","name":"keyword.illegal.name.python"},"illegal-operator":{"patterns":[{"match":"&&|\\\\|\\\\||--|\\\\+\\\\+","name":"invalid.illegal.operator.python"},{"match":"[$?]","name":"invalid.illegal.operator.python"},{"match":"!\\\\b","name":"invalid.illegal.operator.python"}]},"import":{"patterns":[{"begin":"\\\\b(?<!\\\\.)(from)\\\\b(?=.+import)","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$|(?=import)","patterns":[{"match":"\\\\.+","name":"punctuation.separator.period.python"},{"include":"#expression"}]},{"begin":"\\\\b(?<!\\\\.)(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$","patterns":[{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"include":"#expression"}]}]},"impossible":{"match":"$.^"},"inheritance-identifier":{"captures":{"1":{"name":"entity.other.inherited-class.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"},"inheritance-name":{"patterns":[{"include":"#lambda-incomplete"},{"include":"#builtin-possible-callables"},{"include":"#inheritance-identifier"}]},"item-access":{"patterns":[{"begin":"\\\\b(?=[_[:alpha:]]\\\\w*\\\\s*\\\\[)","end":"(])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.item-access.python","patterns":[{"include":"#item-name"},{"include":"#item-index"},{"include":"#expression"}]}]},"item-index":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.item-access.arguments.python","end":"(?=])","patterns":[{"match":":","name":"punctuation.separator.slice.python"},{"include":"#expression"}]},"item-name":{"patterns":[{"include":"#special-variables"},{"include":"#builtin-functions"},{"include":"#special-names"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.indexed-name.python"}]},"lambda":{"patterns":[{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"((?<=\\\\.)lambda|lambda(?=\\\\s*[.=]))"},{"captures":{"1":{"name":"storage.type.function.lambda.python"}},"match":"\\\\b(lambda)\\\\s*?(?=[\\\\n,]|$)"},{"begin":"\\\\b(lambda)\\\\b","beginCaptures":{"1":{"name":"storage.type.function.lambda.python"}},"contentName":"meta.function.lambda.parameters.python","end":"(:)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.section.function.lambda.begin.python"}},"name":"meta.lambda-function.python","patterns":[{"match":"\\\\b(owned|borrowed|inout)\\\\b","name":"storage.modifier"},{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-nested-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=:|$))"},{"include":"#comments"},{"include":"#backticks"},{"include":"#lambda-parameter-with-default"},{"include":"#line-continuation"},{"include":"#illegal-operator"}]}]},"lambda-incomplete":{"match":"\\\\blambda(?=\\\\s*[),])","name":"storage.type.function.lambda.python"},"lambda-nested-incomplete":{"match":"\\\\blambda(?=\\\\s*[),:])","name":"storage.type.function.lambda.python"},"lambda-parameter-with-default":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"keyword.operator.python"}},"end":"(,)|(?=:|$)","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"line-continuation":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.continuation.line.python"},"2":{"name":"invalid.illegal.line.continuation.python"}},"match":"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)"},{"begin":"(\\\\\\\\)\\\\s*$\\\\n?","beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.python"}},"end":"(?=^\\\\s*$)|(?!(\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))|\\\\G()$)","patterns":[{"include":"#regexp"},{"include":"#string"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.begin.python"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.end.python"}},"patterns":[{"include":"#expression"}]},"literal":{"patterns":[{"match":"\\\\b(True|False|None|NotImplemented|Ellipsis)\\\\b","name":"constant.language.python"},{"include":"#number"}]},"loose-default":{"begin":"(=)","beginCaptures":{"1":{"name":"keyword.operator.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"magic-function-names":{"captures":{"1":{"name":"support.function.magic.python"}},"match":"\\\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|get??|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|len??|long|lshift|lt|missing|mod|mul|neg??|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\\\b"},"magic-names":{"patterns":[{"include":"#magic-function-names"},{"include":"#magic-variable-names"}]},"magic-variable-names":{"captures":{"1":{"name":"support.variable.magic.python"}},"match":"\\\\b(__(?:all|annotations|bases|builtins|class|struct|trait|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\\\b"},"member-access":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|(^|(?<=\\\\s))(?=[^\\\\\\\\\\\\w\\\\s])|$","name":"meta.member.access.python","patterns":[{"include":"#function-call"},{"include":"#member-access-base"},{"include":"#member-access-attribute"}]},"member-access-attribute":{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.attribute.python"},"member-access-base":{"patterns":[{"include":"#magic-names"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#special-names"},{"include":"#line-continuation"},{"include":"#item-access"}]},"member-access-class":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|$","name":"meta.member.access.python","patterns":[{"include":"#call-wrapper-inheritance"},{"include":"#member-access-base"},{"include":"#inheritance-identifier"}]},"meta_parameters":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=])","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},{"include":"#comments"}]},"number":{"name":"constant.numeric.python","patterns":[{"include":"#number-float"},{"include":"#number-dec"},{"include":"#number-hex"},{"include":"#number-oct"},{"include":"#number-bin"},{"include":"#number-long"},{"match":"\\\\b[0-9]+\\\\w+","name":"invalid.illegal.name.python"}]},"number-bin":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Bb])(_?[01])+\\\\b","name":"constant.numeric.bin.python"},"number-dec":{"captures":{"1":{"name":"storage.type.imaginary.number.python"},"2":{"name":"invalid.illegal.dec.python"}},"match":"(?<![.\\\\w])(?:[1-9](?:_?[0-9])*|0+|[0-9](?:_?[0-9])*([Jj])|0([0-9]+)(?![.Ee]))\\\\b","name":"constant.numeric.dec.python"},"number-float":{"captures":{"1":{"name":"storage.type.imaginary.number.python"}},"match":"(?<!\\\\w)(?:(?:\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.)(?:[Ee][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[Ee][-+]?[0-9](?:_?[0-9])*)([Jj])?\\\\b","name":"constant.numeric.float.python"},"number-hex":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Xx])(_?\\\\h)+\\\\b","name":"constant.numeric.hex.python"},"number-long":{"captures":{"2":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])([1-9][0-9]*|0)([Ll])\\\\b","name":"constant.numeric.bin.python"},"number-oct":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Oo])(_?[0-7])+\\\\b","name":"constant.numeric.oct.python"},"odd-function-call":{"begin":"(?<=[])])\\\\s*(?=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"patterns":[{"include":"#function-arguments"}]},"operator":{"captures":{"1":{"name":"keyword.operator.logical.python"},"2":{"name":"keyword.control.flow.python"},"3":{"name":"keyword.operator.bitwise.python"},"4":{"name":"keyword.operator.arithmetic.python"},"5":{"name":"keyword.operator.comparison.python"},"6":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b(?<!\\\\.)(?:(and|or|not|in|is)|(for|if|else|await|yield(?:\\\\s+from)?))(?!\\\\s*:)\\\\b|(<<|>>|[\\\\&^|~])|(\\\\*\\\\*|[-%*+]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"},"parameter-special":{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"variable.parameter.function.language.special.self.python"},"3":{"name":"variable.parameter.function.language.special.cls.python"},"4":{"name":"punctuation.separator.parameters.python"}},"match":"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))"},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"match":"\\\\b(owned|borrowed|inout)\\\\b","name":"storage.modifier"},{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#parameter-special"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comments"},{"include":"#loose-default"},{"include":"#annotated-parameter"}]},"punctuation":{"patterns":[{"match":":","name":"punctuation.separator.colon.python"},{"match":",","name":"punctuation.separator.element.python"}]},"regexp":{"patterns":[{"include":"#regexp-single-three-line"},{"include":"#regexp-double-three-line"},{"include":"#regexp-single-one-line"},{"include":"#regexp-double-one-line"}]},"regexp-backreference":{"captures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},"2":{"name":"entity.name.tag.named.backreference.regexp"},"3":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},"match":"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+\\\\p{alnum}+)?)(\\\\))","name":"meta.backreference.named.regexp"},"regexp-backreference-number":{"captures":{"1":{"name":"entity.name.tag.backreference.regexp"}},"match":"(\\\\\\\\[1-9]\\\\d?)","name":"meta.backreference.regexp"},"regexp-base-common":{"patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"[*+?]\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.disjunction.regexp"},{"include":"#regexp-escape-sequence"}]},"regexp-base-expression":{"patterns":[{"include":"#regexp-quantifier"},{"include":"#regexp-base-common"}]},"regexp-charecter-set-escapes":{"patterns":[{"match":"\\\\\\\\[\\\\\\\\abfnrtv]","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-special"},{"match":"\\\\\\\\([0-7]{1,3})","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-escape-catchall"}]},"regexp-double-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\")|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#double-one-regexp-expression"}]},"regexp-double-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#double-three-regexp-expression"}]},"regexp-escape-catchall":{"match":"\\\\\\\\(.|\\\\n)","name":"constant.character.escape.regexp"},"regexp-escape-character":{"match":"\\\\\\\\(x\\\\h{2}|0[0-7]{1,2}|[0-7]{3})","name":"constant.character.escape.regexp"},"regexp-escape-sequence":{"patterns":[{"include":"#regexp-escape-special"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-backreference-number"},{"include":"#regexp-escape-catchall"}]},"regexp-escape-special":{"match":"\\\\\\\\([ABDSWZbdsw])","name":"support.other.escape.special.regexp"},"regexp-escape-unicode":{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8})","name":"constant.character.unicode.regexp"},"regexp-flags":{"match":"\\\\(\\\\?[Laimsux]+\\\\)","name":"storage.modifier.flag.regexp"},"regexp-quantifier":{"match":"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}","name":"keyword.operator.quantifier.regexp"},"regexp-single-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(')|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#single-one-regexp-expression"}]},"regexp-single-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(''')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(''')","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#single-three-regexp-expression"}]},"return-annotation":{"begin":"(->)","beginCaptures":{"1":{"name":"punctuation.separator.annotation.result.python"}},"end":"(?=:)","patterns":[{"include":"#expression"}]},"round-braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.python"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.python"}},"patterns":[{"include":"#expression"}]},"semicolon":{"patterns":[{"match":";$","name":"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-one-regexp-character-set"},{"include":"#single-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-one-regexp-lookahead"},{"include":"#single-one-regexp-lookahead-negative"},{"include":"#single-one-regexp-lookbehind"},{"include":"#single-one-regexp-lookbehind-negative"},{"include":"#single-one-regexp-conditional"},{"include":"#single-one-regexp-parentheses-non-capturing"},{"include":"#single-one-regexp-parentheses"}]},"single-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='''))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-three-regexp-character-set"},{"include":"#single-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-three-regexp-lookahead"},{"include":"#single-three-regexp-lookahead-negative"},{"include":"#single-three-regexp-lookbehind"},{"include":"#single-three-regexp-lookbehind-negative"},{"include":"#single-three-regexp-conditional"},{"include":"#single-three-regexp-parentheses-non-capturing"},{"include":"#single-three-regexp-parentheses"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"special-names":{"match":"\\\\b(_*\\\\p{upper}[_\\\\d]*\\\\p{upper})[[:upper:]\\\\d]*(_\\\\w*)?\\\\b","name":"constant.other.caps.python"},"special-variables":{"captures":{"1":{"name":"variable.language.special.self.python"},"2":{"name":"variable.language.special.cls.python"}},"match":"\\\\b(?<!\\\\.)(?:(self)|(cls))\\\\b"},"statement":{"patterns":[{"include":"#import"},{"include":"#class-declaration"},{"include":"#function-declaration"},{"include":"#generator"},{"include":"#statement-keyword"},{"include":"#assignment-operator"},{"include":"#decorator"},{"include":"#semicolon"}]},"statement-keyword":{"patterns":[{"match":"\\\\b((async\\\\s+)?\\\\s*(def|fn))\\\\b","name":"storage.type.function.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b(?=.*[:\\\\\\\\])","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"match":"\\\\b(?<!\\\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\\\b","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)(global|nonlocal)\\\\b","name":"storage.modifier.declaration.python"},{"match":"\\\\b(?<!\\\\.)(class|struct|trait)\\\\b","name":"storage.type.class.python"},{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"^\\\\s*(case|match)(?=\\\\s*([-\\"#'(+:\\\\[{\\\\w\\\\d]|$))\\\\b"},{"captures":{"1":{"name":"storage.modifier.declaration.python"},"2":{"name":"variable.other.python"}},"match":"\\\\b(var|let|alias) \\\\s*([_[:alpha:]]\\\\w*)\\\\b"}]},"string":{"patterns":[{"include":"#string-quoted-multi-line"},{"include":"#string-quoted-single-line"},{"include":"#string-bin-quoted-multi-line"},{"include":"#string-bin-quoted-single-line"},{"include":"#string-raw-quoted-multi-line"},{"include":"#string-raw-quoted-single-line"},{"include":"#string-raw-bin-quoted-multi-line"},{"include":"#string-raw-bin-quoted-single-line"},{"include":"#fstring-fnorm-quoted-multi-line"},{"include":"#fstring-fnorm-quoted-single-line"},{"include":"#fstring-normf-quoted-multi-line"},{"include":"#fstring-normf-quoted-single-line"},{"include":"#fstring-raw-quoted-multi-line"},{"include":"#fstring-raw-quoted-single-line"}]},"string-bin-quoted-multi-line":{"begin":"\\\\b([Bb])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.multi.python","patterns":[{"include":"#string-entity"}]},"string-bin-quoted-single-line":{"begin":"\\\\b([Bb])(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.single.python","patterns":[{"include":"#string-entity"}]},"string-brace-formatting":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\{|}}|\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.python"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:)[^\\\\n\\"'{}]*(?:\\\\{[^\\\\n\\"'}]*?}[^\\\\n\\"'{}]*)*})","name":"meta.format.brace.python"}]},"string-consume-escape":{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\]"},"string-entity":{"patterns":[{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#string-formatting"}]},"string-formatting":{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.python"},"string-line-continuation":{"match":"\\\\\\\\$","name":"constant.language.python"},"string-mojo-code-block":{"begin":"^(\\\\s*\`{3,})(mojo)$","beginCaptures":{"1":{"name":"string.quoted.single.python"},"2":{"name":"string.quoted.single.python"}},"contentName":"source.mojo","end":"^(\\\\1)$","endCaptures":{"1":{"name":"string.quoted.single.python"}},"name":"meta.embedded.block.mojo","patterns":[{"include":"source.mojo"}]},"string-multi-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-quoted-multi-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-unicode"},{"include":"#string-multi-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-quoted-single-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-unicode"},{"include":"#string-single-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-raw-bin-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-raw-bin-quoted-multi-line":{"begin":"\\\\b(R[Bb]|[Bb]R)('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.multi.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-bin-quoted-single-line":{"begin":"\\\\b(R[Bb]|[Bb]R)(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.single.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"},{"include":"#string-brace-formatting"}]},"string-raw-quoted-multi-line":{"begin":"\\\\b(([Uu]R)|(R))('''|\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-raw"},{"include":"#string-multi-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-raw-quoted-single-line":{"begin":"\\\\b(([Uu]R)|(R))(([\\"']))","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-raw"},{"include":"#string-single-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-single-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"}]},"string-single-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-single-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-single-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-unicode-guts":{"patterns":[{"include":"#string-mojo-code-block"},{"include":"#escape-sequence-unicode"},{"include":"#string-entity"},{"include":"#string-brace-formatting"}]}},"scopeName":"source.mojo"}`))];export{e as default}; diff --git a/docs/assets/monokai-BLZ9vVX8.js b/docs/assets/monokai-BLZ9vVX8.js new file mode 100644 index 0000000..b4be02d --- /dev/null +++ b/docs/assets/monokai-BLZ9vVX8.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#272822","activityBar.foreground":"#f8f8f2","badge.background":"#75715E","badge.foreground":"#f8f8f2","button.background":"#75715E","debugToolBar.background":"#1e1f1c","diffEditor.insertedTextBackground":"#4b661680","diffEditor.removedTextBackground":"#90274A70","dropdown.background":"#414339","dropdown.listBackground":"#1e1f1c","editor.background":"#272822","editor.foreground":"#f8f8f2","editor.lineHighlightBackground":"#3e3d32","editor.selectionBackground":"#878b9180","editor.selectionHighlightBackground":"#575b6180","editor.wordHighlightBackground":"#4a4a7680","editor.wordHighlightStrongBackground":"#6a6a9680","editorCursor.foreground":"#f8f8f0","editorGroup.border":"#34352f","editorGroup.dropBackground":"#41433980","editorGroupHeader.tabsBackground":"#1e1f1c","editorHoverWidget.background":"#414339","editorHoverWidget.border":"#75715E","editorIndentGuide.activeBackground":"#767771","editorIndentGuide.background":"#464741","editorLineNumber.activeForeground":"#c2c2bf","editorLineNumber.foreground":"#90908a","editorSuggestWidget.background":"#272822","editorSuggestWidget.border":"#75715E","editorWhitespace.foreground":"#464741","editorWidget.background":"#1e1f1c","focusBorder":"#99947c","input.background":"#414339","inputOption.activeBorder":"#75715E","inputValidation.errorBackground":"#90274A","inputValidation.errorBorder":"#f92672","inputValidation.infoBackground":"#546190","inputValidation.infoBorder":"#819aff","inputValidation.warningBackground":"#848528","inputValidation.warningBorder":"#e2e22e","list.activeSelectionBackground":"#75715E","list.dropBackground":"#414339","list.highlightForeground":"#f8f8f2","list.hoverBackground":"#3e3d32","list.inactiveSelectionBackground":"#414339","menu.background":"#1e1f1c","menu.foreground":"#cccccc","minimap.selectionHighlight":"#878b9180","panel.border":"#414339","panelTitle.activeBorder":"#75715E","panelTitle.activeForeground":"#f8f8f2","panelTitle.inactiveForeground":"#75715E","peekView.border":"#75715E","peekViewEditor.background":"#272822","peekViewEditor.matchHighlightBackground":"#75715E","peekViewResult.background":"#1e1f1c","peekViewResult.matchHighlightBackground":"#75715E","peekViewResult.selectionBackground":"#414339","peekViewTitle.background":"#1e1f1c","pickerGroup.foreground":"#75715E","ports.iconRunningProcessForeground":"#ccccc7","progressBar.background":"#75715E","quickInputList.focusBackground":"#414339","selection.background":"#878b9180","settings.focusedRowBackground":"#4143395A","sideBar.background":"#1e1f1c","sideBarSectionHeader.background":"#272822","statusBar.background":"#414339","statusBar.debuggingBackground":"#75715E","statusBar.noFolderBackground":"#414339","statusBarItem.remoteBackground":"#AC6218","tab.border":"#1e1f1c","tab.inactiveBackground":"#34352f","tab.inactiveForeground":"#ccccc7","tab.lastPinnedBorder":"#414339","terminal.ansiBlack":"#333333","terminal.ansiBlue":"#6A7EC8","terminal.ansiBrightBlack":"#666666","terminal.ansiBrightBlue":"#819aff","terminal.ansiBrightCyan":"#66D9EF","terminal.ansiBrightGreen":"#A6E22E","terminal.ansiBrightMagenta":"#AE81FF","terminal.ansiBrightRed":"#f92672","terminal.ansiBrightWhite":"#f8f8f2","terminal.ansiBrightYellow":"#e2e22e","terminal.ansiCyan":"#56ADBC","terminal.ansiGreen":"#86B42B","terminal.ansiMagenta":"#8C6BC8","terminal.ansiRed":"#C4265E","terminal.ansiWhite":"#e3e3dd","terminal.ansiYellow":"#B3B42B","titleBar.activeBackground":"#1e1f1c","widget.shadow":"#00000098"},"displayName":"Monokai","name":"monokai","semanticHighlighting":true,"tokenColors":[{"settings":{"foreground":"#F8F8F2"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#F8F8F2"}},{"scope":"comment","settings":{"foreground":"#88846f"}},{"scope":"string","settings":{"foreground":"#E6DB74"}},{"scope":["punctuation.definition.template-expression","punctuation.section.embedded"],"settings":{"foreground":"#F92672"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#F8F8F2"}},{"scope":"constant.numeric","settings":{"foreground":"#AE81FF"}},{"scope":"constant.language","settings":{"foreground":"#AE81FF"}},{"scope":"constant.character, constant.other","settings":{"foreground":"#AE81FF"}},{"scope":"variable","settings":{"fontStyle":"","foreground":"#F8F8F2"}},{"scope":"keyword","settings":{"foreground":"#F92672"}},{"scope":"storage","settings":{"fontStyle":"","foreground":"#F92672"}},{"scope":"storage.type","settings":{"fontStyle":"italic","foreground":"#66D9EF"}},{"scope":"entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution","settings":{"fontStyle":"underline","foreground":"#A6E22E"}},{"scope":["entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"fontStyle":"italic underline","foreground":"#A6E22E"}},{"scope":"entity.name.function","settings":{"fontStyle":"","foreground":"#A6E22E"}},{"scope":"variable.parameter","settings":{"fontStyle":"italic","foreground":"#FD971F"}},{"scope":"entity.name.tag","settings":{"fontStyle":"","foreground":"#F92672"}},{"scope":"entity.other.attribute-name","settings":{"fontStyle":"","foreground":"#A6E22E"}},{"scope":"support.function","settings":{"fontStyle":"","foreground":"#66D9EF"}},{"scope":"support.constant","settings":{"fontStyle":"","foreground":"#66D9EF"}},{"scope":"support.type, support.class","settings":{"fontStyle":"italic","foreground":"#66D9EF"}},{"scope":"support.other.variable","settings":{"fontStyle":""}},{"scope":"invalid","settings":{"fontStyle":"","foreground":"#F44747"}},{"scope":"invalid.deprecated","settings":{"foreground":"#F44747"}},{"scope":"meta.structure.dictionary.json string.quoted.double.json","settings":{"foreground":"#CFCFC2"}},{"scope":"meta.diff, meta.diff.header","settings":{"foreground":"#75715E"}},{"scope":"markup.deleted","settings":{"foreground":"#F92672"}},{"scope":"markup.inserted","settings":{"foreground":"#A6E22E"}},{"scope":"markup.changed","settings":{"foreground":"#E6DB74"}},{"scope":"constant.numeric.line-number.find-in-files - match","settings":{"foreground":"#AE81FFA0"}},{"scope":"entity.name.filename.find-in-files","settings":{"foreground":"#E6DB74"}},{"scope":"markup.quote","settings":{"foreground":"#F92672"}},{"scope":"markup.list","settings":{"foreground":"#E6DB74"}},{"scope":"markup.bold, markup.italic","settings":{"foreground":"#66D9EF"}},{"scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#FD971F"}},{"scope":"markup.heading","settings":{"foreground":"#A6E22E"}},{"scope":"markup.heading.setext","settings":{"fontStyle":"bold","foreground":"#A6E22E"}},{"scope":"markup.heading.markdown","settings":{"fontStyle":"bold"}},{"scope":"markup.quote.markdown","settings":{"fontStyle":"italic","foreground":"#75715E"}},{"scope":"markup.bold.markdown","settings":{"fontStyle":"bold"}},{"scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#AE81FF"}},{"scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#E6DB74"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.list.unnumbered.markdown, markup.list.numbered.markdown","settings":{"foreground":"#f8f8f2"}},{"scope":["punctuation.definition.list.begin.markdown"],"settings":{"foreground":"#A6E22E"}},{"scope":"token.info-token","settings":{"foreground":"#6796e6"}},{"scope":"token.warn-token","settings":{"foreground":"#cd9731"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#b267e6"}},{"scope":"variable.language","settings":{"foreground":"#FD971F"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/move-BR5EeRuK.js b/docs/assets/move-BR5EeRuK.js new file mode 100644 index 0000000..6a3b309 --- /dev/null +++ b/docs/assets/move-BR5EeRuK.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Move","name":"move","patterns":[{"include":"#address"},{"include":"#comments"},{"include":"#module"},{"include":"#script"},{"include":"#annotation"},{"include":"#comments"},{"include":"#annotation"},{"include":"#entry"},{"include":"#public-scope"},{"include":"#public"},{"include":"#native"},{"include":"#import"},{"include":"#friend"},{"include":"#const"},{"include":"#struct"},{"include":"#has_ability"},{"include":"#enum"},{"include":"#macro"},{"include":"#fun"},{"include":"#spec"}],"repository":{"=== DEPRECATED_BELOW ===":{},"abilities":{"match":"\\\\b(store|key|drop|copy)\\\\b","name":"support.type.ability.move"},"address":{"begin":"\\\\b(address)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.type.address.keyword.move"}},"end":"(?<=})","name":"meta.address_block.move","patterns":[{"include":"#comments"},{"begin":"(?<=address)","end":"(?=\\\\{)","name":"meta.address.definition.move","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"match":"\\\\b(\\\\w+)\\\\b","name":"entity.name.type.move"}]},{"include":"#module"}]},"annotation":{"begin":"#\\\\[","end":"]","name":"support.constant.annotation.move","patterns":[{"match":"\\\\b(\\\\w+)\\\\s*(?==)","name":"meta.annotation.name.move"},{"begin":"=","end":"(?=[],])","name":"meta.annotation.value.move","patterns":[{"include":"#literals"}]}]},"as":{"match":"\\\\b(as)\\\\b","name":"keyword.control.as.move"},"as-import":{"match":"\\\\b(as)\\\\b","name":"meta.import.as.move"},"block":{"begin":"\\\\{","end":"}","name":"meta.block.move","patterns":[{"include":"#expr"}]},"block-comments":{"patterns":[{"begin":"/\\\\*[!*](?![*/])","end":"\\\\*/","name":"comment.block.documentation.move"},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.move"}]},"capitalized":{"match":"\\\\b([A-Z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.type.use.move"},"comments":{"name":"meta.comments.move","patterns":[{"include":"#doc-comments"},{"include":"#line-comments"},{"include":"#block-comments"}]},"const":{"begin":"\\\\b(const)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.const.move"}},"end":";","name":"meta.const.move","patterns":[{"include":"#comments"},{"include":"#primitives"},{"include":"#literals"},{"include":"#types"},{"match":"\\\\b([A-Z][0-9A-Z_]+)\\\\b","name":"constant.other.move"},{"include":"#error_const"}]},"control":{"match":"\\\\b(return|while|loop|if|else|break|continue|abort)\\\\b","name":"keyword.control.move"},"doc-comments":{"begin":"///","end":"$","name":"comment.block.documentation.move","patterns":[{"captures":{"1":{"name":"markup.underline.link.move"}},"match":"`(\\\\w+)`"}]},"entry":{"match":"\\\\b(entry)\\\\b","name":"storage.modifier.visibility.entry.move"},"enum":{"begin":"\\\\b(enum)\\\\b","beginCaptures":{"1":{"name":"keyword.control.enum.move"}},"end":"(?<=})","name":"meta.enum.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"include":"#type_param"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"entity.name.type.enum.move"},{"include":"#has"},{"include":"#abilities"},{"begin":"\\\\{","end":"}","name":"meta.enum.definition.move","patterns":[{"include":"#comments"},{"match":"\\\\b([A-Z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*\\\\()","name":"entity.name.function.enum.move"},{"match":"\\\\b([A-Z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.type.enum.move"},{"begin":"\\\\(","end":"\\\\)","name":"meta.enum.tuple.move","patterns":[{"include":"#comments"},{"include":"#expr_generic"},{"include":"#capitalized"},{"include":"#types"}]},{"begin":"\\\\{","end":"}","name":"meta.enum.struct.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"include":"#expr_generic"},{"include":"#capitalized"},{"include":"#types"}]}]}]},"error_const":{"match":"\\\\b(E[A-Z][0-9A-Z_a-z]*)\\\\b","name":"variable.other.error.const.move"},"escaped_identifier":{"begin":"`","end":"`","name":"variable.language.escaped.move"},"expr":{"name":"meta.expression.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"include":"#expr_generic"},{"include":"#packed_field"},{"include":"#import"},{"include":"#as"},{"include":"#mut"},{"include":"#let"},{"include":"#types"},{"include":"#literals"},{"include":"#control"},{"include":"#move_copy"},{"include":"#resource_methods"},{"include":"#self_access"},{"include":"#module_access"},{"include":"#label"},{"include":"#macro_call"},{"include":"#local_call"},{"include":"#method_call"},{"include":"#path_access"},{"include":"#match_expression"},{"match":"\\\\$(?=[a-z])","name":"keyword.operator.macro.dollar.move"},{"match":"(?<=\\\\$)[a-z][0-9A-Z_a-z]*","name":"variable.other.meta.move"},{"match":"\\\\b([A-Z][A-Z_]+)\\\\b","name":"constant.other.move"},{"include":"#error_const"},{"match":"\\\\b([A-Z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.type.move"},{"include":"#paren"},{"include":"#block"}]},"expr_generic":{"begin":"<(?=([,0-9<>A-Z_a-z\\\\s]+>))","end":">","name":"meta.expression.generic.type.move","patterns":[{"include":"#comments"},{"include":"#types"},{"include":"#capitalized"},{"include":"#expr_generic"}]},"friend":{"begin":"\\\\b(friend)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.type.move"}},"end":";","name":"meta.friend.move","patterns":[{"include":"#comments"},{"include":"#address_literal"},{"match":"\\\\b([A-Za-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.type.module.move"}]},"fun":{"patterns":[{"include":"#fun_signature"},{"include":"#block"}]},"fun_body":{"begin":"\\\\{","end":"(?<=})","name":"meta.fun_body.move","patterns":[{"include":"#expr"}]},"fun_call":{"begin":"\\\\b(\\\\w+)\\\\s*(?:<[,\\\\w\\\\s]+>)?\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.call.move"}},"end":"\\\\)","name":"meta.fun_call.move","patterns":[{"include":"#comments"},{"include":"#resource_methods"},{"include":"#self_access"},{"include":"#module_access"},{"include":"#move_copy"},{"include":"#literals"},{"include":"#fun_call"},{"include":"#block"},{"include":"#mut"},{"include":"#as"}]},"fun_signature":{"begin":"\\\\b(fun)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.fun.move"}},"end":"(?=[;{])","name":"meta.fun_signature.move","patterns":[{"include":"#comments"},{"include":"#module_access"},{"include":"#capitalized"},{"include":"#types"},{"include":"#mut"},{"begin":"(?<=\\\\bfun)","end":"(?=[(<])","name":"meta.function_name.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"match":"\\\\b(\\\\w+)\\\\b","name":"entity.name.function.move"}]},{"include":"#type_param"},{"begin":"\\\\(","end":"\\\\)","name":"meta.parentheses.move","patterns":[{"include":"#comments"},{"include":"#self_access"},{"include":"#expr_generic"},{"include":"#escaped_identifier"},{"include":"#module_access"},{"include":"#capitalized"},{"include":"#types"},{"include":"#mut"}]},{"match":"\\\\b(acquires)\\\\b","name":"storage.modifier"}]},"has":{"match":"\\\\b(has)\\\\b","name":"keyword.control.ability.has.move"},"has_ability":{"begin":"(?<=[)}])\\\\s+(has)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.type.move"}},"end":";","name":"meta.has.ability.move","patterns":[{"include":"#comments"},{"include":"#abilities"}]},"ident":{"match":"\\\\b([A-Za-z][0-9A-Z_a-z]*)\\\\b","name":"meta.identifier.move"},"import":{"begin":"\\\\b(use)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.type.move"}},"end":";","name":"meta.import.move","patterns":[{"include":"#comments"},{"include":"#use_fun"},{"include":"#address_literal"},{"include":"#as-import"},{"match":"\\\\b([A-Z]\\\\w*)\\\\b","name":"entity.name.type.move"},{"begin":"\\\\{","end":"}","patterns":[{"include":"#comments"},{"include":"#as-import"},{"match":"\\\\b([A-Z]\\\\w*)\\\\b","name":"entity.name.type.move"}]},{"match":"\\\\b(\\\\w+)\\\\b","name":"meta.entity.name.type.module.move"}]},"inline":{"match":"\\\\b(inline)\\\\b","name":"storage.modifier.visibility.inline.move"},"label":{"match":"\'[a-z][0-9_a-z]*","name":"string.quoted.single.label.move"},"let":{"match":"\\\\b(let)\\\\b","name":"keyword.control.move"},"line-comments":{"begin":"//","end":"$","name":"comment.line.double-slash.move"},"literals":{"name":"meta.literal.move","patterns":[{"match":"@0x\\\\h+","name":"support.constant.address.base16.move"},{"match":"@[A-Za-z][0-9A-Z_a-z]*","name":"support.constant.address.name.move"},{"match":"0x[_\\\\h]+(?:u(?:8|16|32|64|128|256))?","name":"constant.numeric.hex.move"},{"match":"(?<!\\\\w|(?<!\\\\.)\\\\.)[0-9][0-9_]*(?:\\\\.(?!\\\\.)(?:[0-9][0-9_]*)?)?(?:[Ee][-+]?[0-9_]+)?(?:u(?:8|16|32|64|128|256))?","name":"constant.numeric.move"},{"begin":"\\\\bb\\"","end":"\\"","name":"meta.vector.literal.ascii.move","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.move"},{"match":"\\\\\\\\[\\\\x00\\"nrt]","name":"constant.character.escape.move"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.hex.move"},{"match":"[\\\\x00-\\\\x7F]","name":"string.quoted.double.raw.move"}]},{"begin":"x\\"","end":"\\"","name":"meta.vector.literal.hex.move","patterns":[{"match":"\\\\h+","name":"constant.character.move"}]},{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.boolean.move"},{"begin":"vector\\\\[","end":"]","name":"meta.vector.literal.macro.move","patterns":[{"include":"#expr"}]}]},"local_call":{"match":"\\\\b([a-z][0-9_a-z]*)(?=[(<])","name":"entity.name.function.call.local.move"},"macro":{"begin":"\\\\b(macro)\\\\b","beginCaptures":{"1":{"name":"keyword.control.macro.move"}},"end":"(?<=})","name":"meta.macro.move","patterns":[{"include":"#comments"},{"include":"#fun"}]},"macro_call":{"captures":{"2":{"name":"support.function.macro.move"}},"match":"(\\\\b|\\\\.)([a-z][0-9A-Z_a-z]*)!","name":"meta.macro.call"},"match_expression":{"begin":"\\\\b(match)\\\\b","beginCaptures":{"1":{"name":"keyword.control.match.move"}},"end":"(?<=})","name":"meta.match.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"include":"#types"},{"begin":"\\\\{","end":"}","name":"meta.match.block.move","patterns":[{"match":"\\\\b(=>)\\\\b","name":"operator.match.move"},{"include":"#expr"}]},{"include":"#expr"}]},"method_call":{"captures":{"1":{"name":"entity.name.function.call.path.move"}},"match":"\\\\.([a-z][0-9_a-z]*)(?=[(<])","name":"meta.path.call.move"},"module":{"begin":"\\\\b(module)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.type.move"}},"end":"(?<=[;}])","name":"meta.module.move","patterns":[{"include":"#comments"},{"begin":"(?<=\\\\b(module)\\\\b)","end":"(?=[;{])","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"begin":"(?<=\\\\b(module))","end":"(?=[():{])","name":"constant.other.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"}]},{"begin":"(?<=::)","end":"(?=[;{\\\\s])","name":"entity.name.type.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"}]}]},{"begin":"\\\\{","end":"}","name":"meta.module_scope.move","patterns":[{"include":"#comments"},{"include":"#annotation"},{"include":"#entry"},{"include":"#public-scope"},{"include":"#public"},{"include":"#native"},{"include":"#import"},{"include":"#friend"},{"include":"#const"},{"include":"#struct"},{"include":"#has_ability"},{"include":"#enum"},{"include":"#macro"},{"include":"#fun"},{"include":"#spec"}]}]},"module_access":{"captures":{"1":{"name":"meta.entity.name.type.accessed.module.move"},"2":{"name":"entity.name.function.call.move"}},"match":"\\\\b(\\\\w+)::(\\\\w+)\\\\b","name":"meta.module_access.move"},"module_label":{"begin":"^\\\\s*(module)\\\\b","end":";\\\\s*$","name":"meta.module.label.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"begin":"(?<=\\\\bmodule\\\\b)","end":"(?=[():{])","name":"constant.other.move"},{"begin":"(?<=::)","end":"(?=[{\\\\s])","name":"entity.name.type.move"}]},"move_copy":{"match":"\\\\b(move|copy)\\\\b","name":"variable.language.move"},"mut":{"match":"\\\\b(mut)\\\\b","name":"storage.modifier.mut.move"},"native":{"match":"\\\\b(native)\\\\b","name":"storage.modifier.visibility.native.move"},"packed_field":{"match":"[a-z][0-9_a-z]+\\\\s*:\\\\s*(?=\\\\s)","name":"meta.struct.field.move"},"paren":{"begin":"\\\\(","end":"\\\\)","name":"meta.paren.move","patterns":[{"include":"#expr"}]},"path_access":{"match":"\\\\.[a-z][0-9_a-z]*\\\\b","name":"meta.path.access.move"},"phantom":{"match":"\\\\b(phantom)\\\\b","name":"keyword.control.phantom.move"},"primitives":{"match":"\\\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\\\b","name":"support.type.primitives.move"},"public":{"match":"\\\\b(public)\\\\b","name":"storage.modifier.visibility.public.move"},"public-scope":{"begin":"(?<=\\\\b(public))\\\\s*\\\\(","end":"\\\\)","name":"meta.public.scoped.move","patterns":[{"include":"#comments"},{"match":"\\\\b(friend|script|package)\\\\b","name":"keyword.control.public.scope.move"}]},"resource_methods":{"match":"\\\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\\\b","name":"support.function.typed.move"},"script":{"begin":"\\\\b(script)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.script.move"}},"end":"(?<=})","name":"meta.script.move","patterns":[{"include":"#comments"},{"begin":"\\\\{","end":"}","name":"meta.script_scope.move","patterns":[{"include":"#const"},{"include":"#comments"},{"include":"#import"},{"include":"#fun"}]}]},"self_access":{"captures":{"1":{"name":"variable.language.self.move"},"2":{"name":"entity.name.function.call.move"}},"match":"\\\\b(Self)::(\\\\w+)\\\\b","name":"meta.self_access.move"},"spec":{"begin":"\\\\b(spec)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.spec.move"}},"end":"(?<=[;}])","name":"meta.spec.move","patterns":[{"match":"\\\\b(module|schema|struct|fun)","name":"storage.modifier.spec.target.move"},{"match":"\\\\b(define)","name":"storage.modifier.spec.define.move"},{"match":"\\\\b(\\\\w+)\\\\b","name":"entity.name.function.move"},{"begin":"\\\\{","end":"}","patterns":[{"include":"#comments"},{"include":"#spec_block"},{"include":"#spec_types"},{"include":"#spec_define"},{"include":"#spec_keywords"},{"include":"#control"},{"include":"#fun_call"},{"include":"#literals"},{"include":"#types"},{"include":"#let"}]}]},"spec_block":{"begin":"\\\\{","end":"}","name":"meta.spec_block.move","patterns":[{"include":"#comments"},{"include":"#spec_block"},{"include":"#spec_types"},{"include":"#fun_call"},{"include":"#literals"},{"include":"#control"},{"include":"#types"},{"include":"#let"}]},"spec_define":{"begin":"\\\\b(define)\\\\b","beginCaptures":{"1":{"name":"keyword.control.move.spec"}},"end":"(?=[;{])","name":"meta.spec_define.move","patterns":[{"include":"#comments"},{"include":"#spec_types"},{"include":"#types"},{"begin":"(?<=\\\\bdefine)","end":"(?=\\\\()","patterns":[{"include":"#comments"},{"match":"\\\\b(\\\\w+)\\\\b","name":"entity.name.function.move"}]}]},"spec_keywords":{"match":"\\\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\\\b","name":"keyword.control.move.spec"},"spec_types":{"match":"\\\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\\\b","name":"support.type.vector.move"},"struct":{"begin":"\\\\b(struct)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.type.move"}},"end":"(?<=[);}])","name":"meta.struct.move","patterns":[{"include":"#comments"},{"include":"#escaped_identifier"},{"include":"#has"},{"include":"#abilities"},{"match":"\\\\b[A-Z][0-9A-Z_a-z]*\\\\b","name":"entity.name.type.struct.move"},{"begin":"\\\\(","end":"\\\\)","name":"meta.struct.paren.move","patterns":[{"include":"#comments"},{"include":"#capitalized"},{"include":"#types"}]},{"include":"#type_param"},{"begin":"\\\\(","end":"(?<=\\\\))","name":"meta.struct.paren.move","patterns":[{"include":"#comments"},{"include":"#types"}]},{"begin":"\\\\{","end":"}","name":"meta.struct.body.move","patterns":[{"include":"#comments"},{"include":"#self_access"},{"include":"#escaped_identifier"},{"include":"#module_access"},{"include":"#expr_generic"},{"include":"#capitalized"},{"include":"#types"}]},{"include":"#has_ability"}]},"struct_pack":{"begin":"(?<=[0-9>A-Z_a-z])\\\\s*\\\\{","end":"}","name":"meta.struct.pack.move","patterns":[{"include":"#comments"}]},"type_param":{"begin":"<","end":">","name":"meta.generic_param.move","patterns":[{"include":"#comments"},{"include":"#phantom"},{"include":"#capitalized"},{"include":"#module_access"},{"include":"#abilities"}]},"types":{"name":"meta.types.move","patterns":[{"include":"#primitives"},{"include":"#vector"}]},"use_fun":{"begin":"\\\\b(fun)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.fun.move"}},"end":"(?=;)","name":"meta.import.fun.move","patterns":[{"include":"#comments"},{"match":"\\\\b(as)\\\\b","name":"keyword.control.as.move"},{"match":"\\\\b(Self)\\\\b","name":"variable.language.self.use.fun.move"},{"match":"\\\\b(_______[a-z][0-9_a-z]+)\\\\b","name":"entity.name.function.use.move"},{"include":"#types"},{"include":"#escaped_identifier"},{"include":"#capitalized"}]},"vector":{"match":"\\\\b(vector)\\\\b","name":"support.type.vector.move"}},"scopeName":"source.move"}'))];export{e as default}; diff --git a/docs/assets/mscgen-Cs4VQ67l.js b/docs/assets/mscgen-Cs4VQ67l.js new file mode 100644 index 0000000..36fda87 --- /dev/null +++ b/docs/assets/mscgen-Cs4VQ67l.js @@ -0,0 +1 @@ +import{n as s,r as a,t as n}from"./mscgen-Dk-3wFOB.js";export{n as mscgen,s as msgenny,a as xu}; diff --git a/docs/assets/mscgen-Dk-3wFOB.js b/docs/assets/mscgen-Dk-3wFOB.js new file mode 100644 index 0000000..3dbeb02 --- /dev/null +++ b/docs/assets/mscgen-Dk-3wFOB.js @@ -0,0 +1 @@ +function i(t){return{name:"mscgen",startState:l,copyState:u,token:m(t),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}}}const c=i({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),a=i({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),s=i({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function n(t){return RegExp("^\\b("+t.join("|")+")\\b","i")}function e(t){return RegExp("^(?:"+t.join("|")+")","i")}function l(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function u(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function m(t){return function(r,o){if(r.match(e(t.brackets),!0,!0))return"bracket";if(!o.inComment){if(r.match(/\/\*[^\*\/]*/,!0,!0))return o.inComment=!0,"comment";if(r.match(e(t.singlecomment),!0,!0))return r.skipToEnd(),"comment"}if(o.inComment)return r.match(/[^\*\/]*\*\//,!0,!0)?o.inComment=!1:r.skipToEnd(),"comment";if(!o.inString&&r.match(/\"(\\\"|[^\"])*/,!0,!0))return o.inString=!0,"string";if(o.inString)return r.match(/[^\"]*\"/,!0,!0)?o.inString=!1:r.skipToEnd(),"string";if(t.keywords&&r.match(n(t.keywords),!0,!0)||r.match(n(t.options),!0,!0)||r.match(n(t.arcsWords),!0,!0)||r.match(e(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&r.match(e(t.operators),!0,!0))return"operator";if(t.constants&&r.match(e(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&r.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(t.attributes!==null&&r.match(n(t.attributes),!0,!0))return"attribute";if(r.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return r.next(),null}}export{a as n,s as r,c as t}; diff --git a/docs/assets/multi-icon-6ulZXArq.js b/docs/assets/multi-icon-6ulZXArq.js new file mode 100644 index 0000000..cf929c4 --- /dev/null +++ b/docs/assets/multi-icon-6ulZXArq.js @@ -0,0 +1 @@ +import{s as n}from"./chunk-LvLJmgfZ.js";import{t as f}from"./react-BGmjiNul.js";import{t as x}from"./compiler-runtime-DeeZ7FnK.js";import{t as u}from"./jsx-runtime-DN_bIXfG.js";var h=x(),v=n(f(),1),p=n(u(),1);const b=c=>{let t=(0,h.c)(8),{children:i,layerTop:m}=c,d=m===void 0?!1:m,o;t[0]===i?o=t[1]:(o=v.Children.toArray(i),t[0]=i,t[1]=o);let[l,s]=o,a=`second-icon absolute ${d?"top-[-2px] left-[-2px]":"bottom-[-2px] right-[-2px]"} rounded-full`,r;t[2]!==s||t[3]!==a?(r=(0,p.jsx)("div",{className:a,children:s}),t[2]=s,t[3]=a,t[4]=r):r=t[4];let e;return t[5]!==l||t[6]!==r?(e=(0,p.jsxs)("div",{className:"multi-icon relative w-fit",children:[l,r]}),t[5]=l,t[6]=r,t[7]=e):e=t[7],e};export{b as t}; diff --git a/docs/assets/multi-icon-pwGWVz3d.css b/docs/assets/multi-icon-pwGWVz3d.css new file mode 100644 index 0000000..1e71ff4 --- /dev/null +++ b/docs/assets/multi-icon-pwGWVz3d.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +.multi-icon .second-icon{background-color:var(--background)}@supports (color:color-mix(in lab,red,red)){.multi-icon .second-icon{background-color:color-mix(in srgb,var(--background),transparent 0%)}}.menu-item:hover .multi-icon .second-icon{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.menu-item:hover .multi-icon .second-icon{background-color:color-mix(in srgb,var(--accent),transparent 0%)}} diff --git a/docs/assets/multi-map-CQd4MZr5.js b/docs/assets/multi-map-CQd4MZr5.js new file mode 100644 index 0000000..ffd1ba6 --- /dev/null +++ b/docs/assets/multi-map-CQd4MZr5.js @@ -0,0 +1 @@ +var me=Object.defineProperty;var he=(a,t,e)=>t in a?me(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var q=(a,t,e)=>he(a,typeof t!="symbol"?t+"":t,e);import{s as B}from"./chunk-LvLJmgfZ.js";import{t as be}from"./react-BGmjiNul.js";import{t as xe}from"./compiler-runtime-DeeZ7FnK.js";import{r as G}from"./useEventListener-COkmyg1v.js";import{t as ve}from"./jsx-runtime-DN_bIXfG.js";import{t as C}from"./cn-C1rgT0yh.js";import{_ as we}from"./select-D9lTzMzP.js";import{C as ge,E as J,S as D,_ as j,f as Q,w as W,x as ye}from"./Combination-D1TsGrBC.js";import{d as _e,u as je}from"./menu-items-9PZrU2e0.js";var d=B(be(),1),l=B(ve(),1),N="Collapsible",[Ce,X]=J(N),[Ne,O]=Ce(N),Y=d.forwardRef((a,t)=>{let{__scopeCollapsible:e,open:o,defaultOpen:n,disabled:r,onOpenChange:i,...s}=a,[c,p]=D({prop:o,defaultProp:n??!1,onChange:i,caller:N});return(0,l.jsx)(Ne,{scope:e,disabled:r,contentId:Q(),open:c,onOpenToggle:d.useCallback(()=>p(u=>!u),[p]),children:(0,l.jsx)(j.div,{"data-state":S(c),"data-disabled":r?"":void 0,...s,ref:t})})});Y.displayName=N;var Z="CollapsibleTrigger",ee=d.forwardRef((a,t)=>{let{__scopeCollapsible:e,...o}=a,n=O(Z,e);return(0,l.jsx)(j.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":S(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...o,ref:t,onClick:W(a.onClick,n.onOpenToggle)})});ee.displayName=Z;var E="CollapsibleContent",ae=d.forwardRef((a,t)=>{let{forceMount:e,...o}=a,n=O(E,a.__scopeCollapsible);return(0,l.jsx)(ye,{present:e||n.open,children:({present:r})=>(0,l.jsx)(Ae,{...o,ref:t,present:r})})});ae.displayName=E;var Ae=d.forwardRef((a,t)=>{let{__scopeCollapsible:e,present:o,children:n,...r}=a,i=O(E,e),[s,c]=d.useState(o),p=d.useRef(null),u=G(t,p),m=d.useRef(0),w=m.current,g=d.useRef(0),v=g.current,y=i.open||s,h=d.useRef(y),x=d.useRef(void 0);return d.useEffect(()=>{let f=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(f)},[]),ge(()=>{let f=p.current;if(f){x.current=x.current||{transitionDuration:f.style.transitionDuration,animationName:f.style.animationName},f.style.transitionDuration="0s",f.style.animationName="none";let _=f.getBoundingClientRect();m.current=_.height,g.current=_.width,h.current||(f.style.transitionDuration=x.current.transitionDuration,f.style.animationName=x.current.animationName),c(o)}},[i.open,o]),(0,l.jsx)(j.div,{"data-state":S(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!y,...r,ref:u,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...a.style},children:y&&n})});function S(a){return a?"open":"closed"}var Re=Y,ke=ee,Ie=ae,b="Accordion",De=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[V,Oe,Ee]=_e(b),[A,ea]=J(b,[Ee,X]),z=X(),P=d.forwardRef((a,t)=>{let{type:e,...o}=a,n=o,r=o;return(0,l.jsx)(V.Provider,{scope:a.__scopeAccordion,children:e==="multiple"?(0,l.jsx)(Pe,{...r,ref:t}):(0,l.jsx)(ze,{...n,ref:t})})});P.displayName=b;var[re,Se]=A(b),[te,Ve]=A(b,{collapsible:!1}),ze=d.forwardRef((a,t)=>{let{value:e,defaultValue:o,onValueChange:n=()=>{},collapsible:r=!1,...i}=a,[s,c]=D({prop:e,defaultProp:o??"",onChange:n,caller:b});return(0,l.jsx)(re,{scope:a.__scopeAccordion,value:d.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:d.useCallback(()=>r&&c(""),[r,c]),children:(0,l.jsx)(te,{scope:a.__scopeAccordion,collapsible:r,children:(0,l.jsx)(oe,{...i,ref:t})})})}),Pe=d.forwardRef((a,t)=>{let{value:e,defaultValue:o,onValueChange:n=()=>{},...r}=a,[i,s]=D({prop:e,defaultProp:o??[],onChange:n,caller:b}),c=d.useCallback(u=>s((m=[])=>[...m,u]),[s]),p=d.useCallback(u=>s((m=[])=>m.filter(w=>w!==u)),[s]);return(0,l.jsx)(re,{scope:a.__scopeAccordion,value:i,onItemOpen:c,onItemClose:p,children:(0,l.jsx)(te,{scope:a.__scopeAccordion,collapsible:!0,children:(0,l.jsx)(oe,{...r,ref:t})})})}),[Te,R]=A(b),oe=d.forwardRef((a,t)=>{let{__scopeAccordion:e,disabled:o,dir:n,orientation:r="vertical",...i}=a,s=G(d.useRef(null),t),c=Oe(e),p=je(n)==="ltr",u=W(a.onKeyDown,m=>{var U;if(!De.includes(m.key))return;let w=m.target,g=c().filter(I=>{var $;return!(($=I.ref.current)!=null&&$.disabled)}),v=g.findIndex(I=>I.ref.current===w),y=g.length;if(v===-1)return;m.preventDefault();let h=v,x=y-1,f=()=>{h=v+1,h>x&&(h=0)},_=()=>{h=v-1,h<0&&(h=x)};switch(m.key){case"Home":h=0;break;case"End":h=x;break;case"ArrowRight":r==="horizontal"&&(p?f():_());break;case"ArrowDown":r==="vertical"&&f();break;case"ArrowLeft":r==="horizontal"&&(p?_():f());break;case"ArrowUp":r==="vertical"&&_();break}(U=g[h%y].ref.current)==null||U.focus()});return(0,l.jsx)(Te,{scope:e,disabled:o,direction:n,orientation:r,children:(0,l.jsx)(V.Slot,{scope:e,children:(0,l.jsx)(j.div,{...i,"data-orientation":r,ref:s,onKeyDown:o?void 0:u})})})}),k="AccordionItem",[He,T]=A(k),H=d.forwardRef((a,t)=>{let{__scopeAccordion:e,value:o,...n}=a,r=R(k,e),i=Se(k,e),s=z(e),c=Q(),p=o&&i.value.includes(o)||!1,u=r.disabled||a.disabled;return(0,l.jsx)(He,{scope:e,open:p,disabled:u,triggerId:c,children:(0,l.jsx)(Re,{"data-orientation":r.orientation,"data-state":le(p),...s,...n,ref:t,disabled:u,open:p,onOpenChange:m=>{m?i.onItemOpen(o):i.onItemClose(o)}})})});H.displayName=k;var ne="AccordionHeader",ie=d.forwardRef((a,t)=>{let{__scopeAccordion:e,...o}=a,n=R(b,e),r=T(ne,e);return(0,l.jsx)(j.h3,{"data-orientation":n.orientation,"data-state":le(r.open),"data-disabled":r.disabled?"":void 0,...o,ref:t})});ie.displayName=ne;var M="AccordionTrigger",F=d.forwardRef((a,t)=>{let{__scopeAccordion:e,...o}=a,n=R(b,e),r=T(M,e),i=Ve(M,e),s=z(e);return(0,l.jsx)(V.ItemSlot,{scope:e,children:(0,l.jsx)(ke,{"aria-disabled":r.open&&!i.collapsible||void 0,"data-orientation":n.orientation,id:r.triggerId,...s,...o,ref:t})})});F.displayName=M;var se="AccordionContent",K=d.forwardRef((a,t)=>{let{__scopeAccordion:e,...o}=a,n=R(b,e),r=T(se,e),i=z(e);return(0,l.jsx)(Ie,{role:"region","aria-labelledby":r.triggerId,"data-orientation":n.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...a.style}})});K.displayName=se;function le(a){return a?"open":"closed"}var Me=P,Fe=H,Ke=ie,de=F,ce=K,L=xe(),Le=Me,pe=d.forwardRef((a,t)=>{let e=(0,L.c)(9),o,n;e[0]===a?(o=e[1],n=e[2]):({className:o,...n}=a,e[0]=a,e[1]=o,e[2]=n);let r;e[3]===o?r=e[4]:(r=C("border-b",o),e[3]=o,e[4]=r);let i;return e[5]!==n||e[6]!==t||e[7]!==r?(i=(0,l.jsx)(Fe,{ref:t,className:r,...n}),e[5]=n,e[6]=t,e[7]=r,e[8]=i):i=e[8],i});pe.displayName="AccordionItem";var ue=d.forwardRef((a,t)=>{let e=(0,L.c)(12),o,n,r;e[0]===a?(o=e[1],n=e[2],r=e[3]):({className:n,children:o,...r}=a,e[0]=a,e[1]=o,e[2]=n,e[3]=r);let i;e[4]===n?i=e[5]:(i=C("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-start",n),e[4]=n,e[5]=i);let s;e[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(we,{className:"h-4 w-4 transition-transform duration-200"}),e[6]=s):s=e[6];let c;return e[7]!==o||e[8]!==r||e[9]!==t||e[10]!==i?(c=(0,l.jsx)(Ke,{className:"flex",children:(0,l.jsxs)(de,{ref:t,className:i,...r,children:[o,s]})}),e[7]=o,e[8]=r,e[9]=t,e[10]=i,e[11]=c):c=e[11],c});ue.displayName=de.displayName;var fe=d.forwardRef((a,t)=>{let e=(0,L.c)(17),o,n,r,i;e[0]===a?(o=e[1],n=e[2],r=e[3],i=e[4]):({className:n,children:o,wrapperClassName:i,...r}=a,e[0]=a,e[1]=o,e[2]=n,e[3]=r,e[4]=i);let s;e[5]===n?s=e[6]:(s=C("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",n),e[5]=n,e[6]=s);let c;e[7]===i?c=e[8]:(c=C("pb-4 pt-0",i),e[7]=i,e[8]=c);let p;e[9]!==o||e[10]!==c?(p=(0,l.jsx)("div",{className:c,children:o}),e[9]=o,e[10]=c,e[11]=p):p=e[11];let u;return e[12]!==r||e[13]!==t||e[14]!==s||e[15]!==p?(u=(0,l.jsx)(ce,{ref:t,className:s,...r,children:p}),e[12]=r,e[13]=t,e[14]=s,e[15]=p,e[16]=u):u=e[16],u});fe.displayName=ce.displayName;var Ue=class{constructor(){q(this,"map",new Map)}get(a){return this.map.get(a)??[]}set(a,t){this.map.set(a,t)}add(a,t){this.map.has(a)?this.map.get(a).push(t):this.map.set(a,[t])}has(a){return this.map.has(a)}delete(a){return this.map.delete(a)}clear(){this.map.clear()}keys(){return this.map.keys()}values(){return this.map.values()}entries(){return this.map.entries()}forEach(a){this.map.forEach(a)}flatValues(){let a=[];for(let t of this.map.values())a.push(...t);return a}get size(){return this.map.size}};export{ue as a,H as c,pe as i,F as l,Le as n,P as o,fe as r,K as s,Ue as t}; diff --git a/docs/assets/mumps-BRQASZoy.js b/docs/assets/mumps-BRQASZoy.js new file mode 100644 index 0000000..4b7bcd9 --- /dev/null +++ b/docs/assets/mumps-BRQASZoy.js @@ -0,0 +1 @@ +function a(t){return RegExp("^(("+t.join(")|(")+"))\\b","i")}var n=RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),r=RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),o=RegExp("^[\\.,:]"),c=RegExp("[()]"),m=RegExp("^[%A-Za-z][A-Za-z0-9]*"),i="break.close.do.else.for.goto.halt.hang.if.job.kill.lock.merge.new.open.quit.read.set.tcommit.trollback.tstart.use.view.write.xecute.b.c.d.e.f.g.h.i.j.k.l.m.n.o.q.r.s.tc.tro.ts.u.v.w.x".split("."),l=a("\\$ascii.\\$char.\\$data.\\$ecode.\\$estack.\\$etrap.\\$extract.\\$find.\\$fnumber.\\$get.\\$horolog.\\$io.\\$increment.\\$job.\\$justify.\\$length.\\$name.\\$next.\\$order.\\$piece.\\$qlength.\\$qsubscript.\\$query.\\$quit.\\$random.\\$reverse.\\$select.\\$stack.\\$test.\\$text.\\$translate.\\$view.\\$x.\\$y.\\$a.\\$c.\\$d.\\$e.\\$ec.\\$es.\\$et.\\$f.\\$fn.\\$g.\\$h.\\$i.\\$j.\\$l.\\$n.\\$na.\\$o.\\$p.\\$q.\\$ql.\\$qs.\\$r.\\$re.\\$s.\\$st.\\$t.\\$tr.\\$v.\\$z".split(".")),d=a(i);function s(t,e){t.sol()&&(e.label=!0,e.commandMode=0);var $=t.peek();return $==" "||$==" "?(e.label=!1,e.commandMode==0?e.commandMode=1:(e.commandMode<0||e.commandMode==2)&&(e.commandMode=0)):$!="."&&e.commandMode>0&&($==":"?e.commandMode=-1:e.commandMode=2),($==="("||$===" ")&&(e.label=!1),$===";"?(t.skipToEnd(),"comment"):t.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":$=='"'?t.skipTo('"')?(t.next(),"string"):(t.skipToEnd(),"error"):t.match(r)||t.match(n)?"operator":t.match(o)?null:c.test($)?(t.next(),"bracket"):e.commandMode>0&&t.match(d)?"controlKeyword":t.match(l)?"builtin":t.match(m)?"variable":$==="$"||$==="^"?(t.next(),"builtin"):$==="@"?(t.next(),"string.special"):/[\w%]/.test($)?(t.eatWhile(/[\w%]/),"variable"):(t.next(),"error")}const u={name:"mumps",startState:function(){return{label:!1,commandMode:0}},token:function(t,e){var $=s(t,e);return e.label?"tag":$}};export{u as t}; diff --git a/docs/assets/mumps-Dt8k0EUU.js b/docs/assets/mumps-Dt8k0EUU.js new file mode 100644 index 0000000..cdea675 --- /dev/null +++ b/docs/assets/mumps-Dt8k0EUU.js @@ -0,0 +1 @@ +import{t as m}from"./mumps-BRQASZoy.js";export{m as mumps}; diff --git a/docs/assets/name-cell-input-Dc5Oz84d.js b/docs/assets/name-cell-input-Dc5Oz84d.js new file mode 100644 index 0000000..578d222 --- /dev/null +++ b/docs/assets/name-cell-input-Dc5Oz84d.js @@ -0,0 +1 @@ +import{s as C}from"./chunk-LvLJmgfZ.js";import{t as L}from"./react-BGmjiNul.js";import{bt as x,p as T,w as j,xt as y,yt as F}from"./cells-CmJW_FeD.js";import{t as b}from"./compiler-runtime-DeeZ7FnK.js";import{t as H}from"./useLifecycle-CmDXEyIC.js";import{t as K}from"./jsx-runtime-DN_bIXfG.js";import{r as E}from"./button-B8cGZzP5.js";import{t as w}from"./cn-C1rgT0yh.js";import{r as k}from"./input-Bkl2Yfmh.js";import{r as D}from"./dist-RKnr9SNh.js";import{r as I}from"./useTheme-BSVRc0kJ.js";import{t as M}from"./tooltip-CvjcEpZC.js";import{r as P,t as R}from"./esm-D2_Kx6xF.js";var W=b(),p=C(L(),1),d=C(K(),1),_=[D(),P({syntaxHighlighting:!0,highlightSpecialChars:!1,history:!1,drawSelection:!1,defaultKeymap:!1,historyKeymap:!1})];const B=(0,p.memo)(s=>{let e=(0,W.c)(8),{code:r,className:a}=s,{theme:i}=I(),o;e[0]===a?o=e[1]:(o=w(a,"text-muted-foreground flex flex-col overflow-hidden"),e[0]=a,e[1]=o);let l=i==="dark"?"dark":"light",t;e[2]!==r||e[3]!==l?(t=(0,d.jsx)(R,{minHeight:"10px",theme:l,height:"100%",className:"tiny-code",editable:!1,basicSetup:!1,extensions:_,value:r}),e[2]=r,e[3]=l,e[4]=t):t=e[4];let n;return e[5]!==o||e[6]!==t?(n=(0,d.jsx)("div",{className:o,children:t}),e[5]=o,e[6]=t,e[7]=n):n=e[7],n});B.displayName="TinyCode";var N=b();const q=s=>{let e=(0,N.c)(16),r,a,i,o,l;e[0]===s?(r=e[1],a=e[2],i=e[3],o=e[4],l=e[5]):({value:l,onChange:r,placeholder:i,onEnterKey:a,...o}=s,e[0]=s,e[1]=r,e[2]=a,e[3]=i,e[4]=o,e[5]=l);let t=(0,p.useRef)(null),n=S(l,r),u;e[6]===n.onBlur?u=e[7]:(u=()=>{let f=n.onBlur,v=t.current;if(v)return v.addEventListener("blur",f),()=>{v.removeEventListener("blur",f)}},e[6]=n.onBlur,e[7]=u),H(u);let m=n.value,g=n.onChange,c;e[8]===a?c=e[9]:(c=E.onEnter(f=>{E.stopPropagation()(f),a==null||a()}),e[8]=a,e[9]=c);let h;return e[10]!==n.onChange||e[11]!==n.value||e[12]!==i||e[13]!==o||e[14]!==c?(h=(0,d.jsx)(k,{"data-testid":"cell-name-input",value:m,onChange:g,ref:t,placeholder:i,className:"shadow-none! hover:shadow-none focus:shadow-none focus-visible:shadow-none",onKeyDown:c,...o}),e[10]=n.onChange,e[11]=n.value,e[12]=i,e[13]=o,e[14]=c,e[15]=h):h=e[15],h},z=s=>{let e=(0,N.c)(12),{value:r,cellId:a,className:i}=s,{updateCellName:o}=j(),l;e[0]!==a||e[1]!==o?(l=g=>o({cellId:a,name:g}),e[0]=a,e[1]=o,e[2]=l):l=e[2];let t=S(r,l);if(x(r))return null;let n=t.focusing?"":"text-ellipsis",u;e[3]!==i||e[4]!==n?(u=w("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40",n,i),e[3]=i,e[4]=n,e[5]=u):u=e[5];let m;return e[6]!==t.onBlur||e[7]!==t.onChange||e[8]!==t.onFocus||e[9]!==u||e[10]!==r?(m=(0,d.jsx)(M,{content:"Click to rename",children:(0,d.jsx)("span",{className:u,contentEditable:!0,suppressContentEditableWarning:!0,onChange:t.onChange,onBlur:t.onBlur,onFocus:t.onFocus,onKeyDown:A,children:r})}),e[6]=t.onBlur,e[7]=t.onChange,e[8]=t.onFocus,e[9]=u,e[10]=r,e[11]=m):m=e[11],m};function S(s,e){let[r,a]=(0,p.useState)(s),[i,o]=(0,p.useState)(!1),l=t=>{if(t!==s){if(!t||x(t)){e(t);return}e(F(t,T()))}};return{value:x(r)?"":r,focusing:i,onChange:t=>{let n=t.target.value;a(y(n))},onBlur:t=>{if(t.target instanceof HTMLInputElement){let n=t.target.value;l(y(n))}else t.target instanceof HTMLSpanElement&&(l(y(t.target.innerText.trim())),t.target.scrollLeft=0,o(!1))},onFocus:()=>{o(!0)}}}function A(s){s.stopPropagation(),s.key==="Enter"&&s.target instanceof HTMLElement&&s.target.blur()}export{q as n,B as r,z as t}; diff --git a/docs/assets/name-cell-input-ujOhus_y.css b/docs/assets/name-cell-input-ujOhus_y.css new file mode 100644 index 0000000..c929c70 --- /dev/null +++ b/docs/assets/name-cell-input-ujOhus_y.css @@ -0,0 +1 @@ +.tiny-code .cm-editor{margin:0;padding:0;font-size:8px}.tiny-code .cm-editor .cm-scroller{line-height:11px;overflow-x:hidden} diff --git a/docs/assets/narrat-Chn12a8o.js b/docs/assets/narrat-Chn12a8o.js new file mode 100644 index 0000000..ffe2adf --- /dev/null +++ b/docs/assets/narrat-Chn12a8o.js @@ -0,0 +1 @@ +var a=[Object.freeze(JSON.parse('{"displayName":"Narrat Language","name":"narrat","patterns":[{"include":"#comments"},{"include":"#expression"}],"repository":{"commands":{"patterns":[{"match":"\\\\b(set|var)\\\\b","name":"keyword.commands.variables.narrat"},{"match":"\\\\b(t(?:alk|hink))\\\\b","name":"keyword.commands.text.narrat"},{"match":"\\\\b(jump|run|wait|return|save|save_prompt)","name":"keyword.commands.flow.narrat"},{"match":"\\\\b((?:|clear_dia)log)\\\\b","name":"keyword.commands.helpers.narrat"},{"match":"\\\\b(set_screen|empty_layer|set_button)","name":"keyword.commands.screens.narrat"},{"match":"\\\\b(play|pause|stop)\\\\b","name":"keyword.commands.audio.narrat"},{"match":"\\\\b(notify|enable_notifications|disable_notifications)\\\\b","name":"keyword.commands.notifications.narrat"},{"match":"\\\\b(set_stat|get_stat_value|add_stat)","name":"keyword.commands.stats.narrat"},{"match":"\\\\b(neg|abs|random|random_float|random_from_args|min|max|clamp|floor|round|ceil|sqrt|^)\\\\b","name":"keyword.commands.math.narrat"},{"match":"\\\\b(concat|join)\\\\b","name":"keyword.commands.string.narrat"},{"match":"\\\\b(text_field)\\\\b","name":"keyword.commands.text_field.narrat"},{"match":"\\\\b(add_level|set_level|add_xp|roll|get_level|get_xp)\\\\b","name":"keyword.commands.skills.narrat"},{"match":"\\\\b(add_item|remove_item|enable_interaction|disable_interaction|has_item?|item_amount?)","name":"keyword.commands.inventory.narrat"},{"match":"\\\\b(start_quest|start_objective|complete_objective|complete_quest|quest_started?|objective_started?|quest_completed?|objective_completed?)","name":"keyword.commands.quests.narrat"}]},"comments":{"patterns":[{"match":"//.*$","name":"comment.line.narrat"}]},"expression":{"patterns":[{"include":"#keywords"},{"include":"#commands"},{"include":"#operators"},{"include":"#primitives"},{"include":"#strings"},{"include":"#paren-expression"}]},"interpolation":{"patterns":[{"match":"([.\\\\w])+","name":"variable.interpolation.narrat"}]},"keywords":{"patterns":[{"match":"\\\\b(if|else|choice)\\\\b","name":"keyword.control.narrat"},{"match":"\\\\$[.|\\\\w]+\\\\b","name":"variable.value.narrat"},{"match":"^\\\\w+(?=([\\\\s\\\\w])*:)","name":"entity.name.function.narrat"},{"match":"^\\\\w+(?!([\\\\s\\\\w])*:)","name":"invalid.label.narrat"},{"match":"(?<=\\\\w)[^^]\\\\b(\\\\w+)\\\\b(?=([\\\\s\\\\w])*:)","name":"entity.other.attribute-name"}]},"operators":{"patterns":[{"match":"(&&|\\\\|\\\\||!=|==|>=|<=|[!<>?])\\\\s","name":"keyword.operator.logic.narrat"},{"match":"([-*+/])\\\\s","name":"keyword.operator.arithmetic.narrat"}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.paren.open"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.paren.close"}},"name":"expression.group","patterns":[{"include":"#expression"}]},"primitives":{"patterns":[{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.narrat"},{"match":"\\\\btrue\\\\b","name":"constant.language.true.narrat"},{"match":"\\\\bfalse\\\\b","name":"constant.language.false.narrat"},{"match":"\\\\bnull\\\\b","name":"constant.language.null.narrat"},{"match":"\\\\bundefined\\\\b","name":"constant.language.undefined.narrat"}]},"strings":{"begin":"\\"","end":"\\"","name":"string.quoted.double.narrat","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.narrat"},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.template.open"}},"end":"}","endCaptures":{"0":{"name":"punctuation.template.close.narrat"}},"name":"expression.template","patterns":[{"include":"#expression"},{"include":"#interpolation"}]}]}},"scopeName":"source.narrat","aliases":["nar"]}'))];export{a as default}; diff --git a/docs/assets/nextflow-Bzu3XAuz.js b/docs/assets/nextflow-Bzu3XAuz.js new file mode 100644 index 0000000..2fa4ecb --- /dev/null +++ b/docs/assets/nextflow-Bzu3XAuz.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Nextflow","name":"nextflow","patterns":[{"include":"#nextflow"}],"repository":{"enum-def":{"begin":"^\\\\s*(enum)\\\\s+(\\\\w+)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"},"2":{"name":"storage.type.groovy"}},"end":"}","patterns":[{"include":"source.nextflow-groovy#groovy"},{"include":"#enum-values"}]},"enum-values":{"patterns":[{"begin":"(?<=;|^)\\\\s*\\\\b([0-9A-Z_]+)(?=\\\\s*(?:[(,}]|$))","beginCaptures":{"1":{"name":"constant.enum.name.groovy"}},"end":",|(?=})|^(?!\\\\s*\\\\w+\\\\s*(?:,|$))","patterns":[{"begin":"\\\\(","end":"\\\\)","name":"meta.enum.value.groovy","patterns":[{"match":",","name":"punctuation.definition.seperator.parameter.groovy"},{"include":"#groovy-code"}]}]}]},"function-body":{"patterns":[{"match":"\\\\s"},{"begin":"(?=[<\\\\w][^(]*\\\\s+[$<\\\\w]+\\\\s*\\\\()","end":"(?=[$\\\\w]+\\\\s*\\\\()","name":"meta.method.return-type.java","patterns":[{"include":"source.nextflow-groovy#types"}]},{"begin":"([$\\\\w]+)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.nextflow"}},"end":"\\\\)","name":"meta.definition.method.signature.java","patterns":[{"begin":"(?=[^)])","end":"(?=\\\\))","name":"meta.method.parameters.groovy","patterns":[{"begin":"(?=[^),])","end":"(?=[),])","name":"meta.method.parameter.groovy","patterns":[{"match":",","name":"punctuation.definition.separator.groovy"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.groovy"}},"end":"(?=[),])","name":"meta.parameter.default.groovy","patterns":[{"include":"source.nextflow-groovy#groovy-code"}]},{"include":"source.nextflow-groovy#parameters"}]}]}]},{"begin":"(?=<)","end":"(?=\\\\s)","name":"meta.method.paramerised-type.groovy","patterns":[{"begin":"<","end":">","name":"storage.type.parameters.groovy","patterns":[{"include":"source.nextflow-groovy#types"},{"match":",","name":"punctuation.definition.seperator.groovy"}]}]},{"begin":"\\\\{","end":"(?=})","name":"meta.method.body.java","patterns":[{"include":"source.nextflow-groovy#groovy-code"}]}]},"function-def":{"applyEndPatternLast":1,"begin":"(?<=;|^|\\\\{)(?=\\\\s*(?:def|(?:(?:boolean|byte|char|short|int|float|long|double)|@?(?:[A-Za-z]\\\\w*\\\\.)*[A-Z]+\\\\w*)[]\\\\[]*(?:<.*>)?n)\\\\s+([^=]+\\\\s+)?\\\\w+\\\\s*\\\\()","end":"}|(?=[^{])","name":"meta.definition.method.groovy","patterns":[{"include":"#function-body"}]},"include-decl":{"patterns":[{"match":"^\\\\b(include)\\\\b","name":"keyword.nextflow"},{"match":"\\\\b(from)\\\\b","name":"keyword.nextflow"}]},"nextflow":{"patterns":[{"include":"#enum-def"},{"include":"#function-def"},{"include":"#process-def"},{"include":"#workflow-def"},{"include":"#params-def"},{"include":"#output-def"},{"include":"#include-decl"},{"include":"source.nextflow-groovy"}]},"output-def":{"begin":"^\\\\s*(output)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"}},"end":"}","name":"output.nextflow","patterns":[{"include":"source.nextflow-groovy#groovy"}]},"params-def":{"begin":"^\\\\s*(params)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"}},"end":"}","name":"params.nextflow","patterns":[{"include":"source.nextflow-groovy#groovy"}]},"process-body":{"patterns":[{"match":"(?:input|output|when|script|shell|exec):","name":"constant.block.nextflow"},{"match":"\\\\b(val|env|file|path|stdin|stdout|tuple)([(\\\\s])","name":"entity.name.function.nextflow"},{"include":"source.nextflow-groovy#groovy"}]},"process-def":{"begin":"^\\\\s*(process)\\\\s+(\\\\w+)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"},"2":{"name":"entity.name.function.nextflow"}},"end":"}","name":"process.nextflow","patterns":[{"include":"#process-body"}]},"workflow-body":{"patterns":[{"match":"(?:take|main|emit|publish):","name":"constant.block.nextflow"},{"include":"source.nextflow-groovy#groovy"}]},"workflow-def":{"begin":"^\\\\s*(workflow)(?:\\\\s+(\\\\w+))?\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.nextflow"},"2":{"name":"entity.name.function.nextflow"}},"end":"}","name":"workflow.nextflow","patterns":[{"include":"#workflow-body"}]}},"scopeName":"source.nextflow","aliases":["nf"]}'))];export{e as default}; diff --git a/docs/assets/nginx-Cz_XvoTm.js b/docs/assets/nginx-Cz_XvoTm.js new file mode 100644 index 0000000..9c1eac5 --- /dev/null +++ b/docs/assets/nginx-Cz_XvoTm.js @@ -0,0 +1 @@ +function n(_){for(var t={},r=_.split(" "),e=0;e<r.length;++e)t[r[e]]=!0;return t}var p=n("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),u=n("http mail events server types location upstream charset_map limit_except if geo map"),m=n("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),i;function s(_,t){return i=t,_}function a(_,t){_.eatWhile(/[\w\$_]/);var r=_.current();if(p.propertyIsEnumerable(r))return"keyword";if(u.propertyIsEnumerable(r)||m.propertyIsEnumerable(r))return"controlKeyword";var e=_.next();if(e=="@")return _.eatWhile(/[\w\\\-]/),s("meta",_.current());if(e=="/"&&_.eat("*"))return t.tokenize=c,c(_,t);if(e=="<"&&_.eat("!"))return t.tokenize=l,l(_,t);if(e=="=")s(null,"compare");else return(e=="~"||e=="|")&&_.eat("=")?s(null,"compare"):e=='"'||e=="'"?(t.tokenize=f(e),t.tokenize(_,t)):e=="#"?(_.skipToEnd(),s("comment","comment")):e=="!"?(_.match(/^\s*\w*/),s("keyword","important")):/\d/.test(e)?(_.eatWhile(/[\w.%]/),s("number","unit")):/[,.+>*\/]/.test(e)?s(null,"select-op"):/[;{}:\[\]]/.test(e)?s(null,e):(_.eatWhile(/[\w\\\-]/),s("variable","variable"))}function c(_,t){for(var r=!1,e;(e=_.next())!=null;){if(r&&e=="/"){t.tokenize=a;break}r=e=="*"}return s("comment","comment")}function l(_,t){for(var r=0,e;(e=_.next())!=null;){if(r>=2&&e==">"){t.tokenize=a;break}r=e=="-"?r+1:0}return s("comment","comment")}function f(_){return function(t,r){for(var e=!1,o;(o=t.next())!=null&&!(o==_&&!e);)e=!e&&o=="\\";return e||(r.tokenize=a),s("string","string")}}const d={name:"nginx",startState:function(){return{tokenize:a,baseIndent:0,stack:[]}},token:function(_,t){if(_.eatSpace())return null;i=null;var r=t.tokenize(_,t),e=t.stack[t.stack.length-1];return i=="hash"&&e=="rule"?r="atom":r=="variable"&&(e=="rule"?r="number":(!e||e=="@media{")&&(r="tag")),e=="rule"&&/^[\{\};]$/.test(i)&&t.stack.pop(),i=="{"?e=="@media"?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):i=="}"?t.stack.pop():i=="@media"?t.stack.push("@media"):e=="{"&&i!="comment"&&t.stack.push("rule"),r},indent:function(_,t,r){var e=_.stack.length;return/^\}/.test(t)&&(e-=_.stack[_.stack.length-1]=="rule"?2:1),_.baseIndent+e*r.unit},languageData:{indentOnInput:/^\s*\}$/}};export{d as nginx}; diff --git a/docs/assets/nginx-b0P6EqEr.js b/docs/assets/nginx-b0P6EqEr.js new file mode 100644 index 0000000..c92effb --- /dev/null +++ b/docs/assets/nginx-b0P6EqEr.js @@ -0,0 +1 @@ +import{t as e}from"./lua-BbH09Iv3.js";var n=Object.freeze(JSON.parse(`{"displayName":"Nginx","fileTypes":["conf.erb","conf","ngx","nginx.conf","mime.types","fastcgi_params","scgi_params","uwsgi_params"],"foldingStartMarker":"\\\\{\\\\s*$","foldingStopMarker":"^\\\\s*}","name":"nginx","patterns":[{"match":"#.*","name":"comment.line.number-sign"},{"begin":"\\\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua(?:_block)?)\\\\s*\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"contentName":"meta.embedded.block.lua","end":"}","name":"meta.context.lua.nginx","patterns":[{"include":"source.lua"}]},{"begin":"\\\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua)\\\\s*'","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"contentName":"meta.embedded.block.lua","end":"'","name":"meta.context.lua.nginx","patterns":[{"include":"source.lua"}]},{"begin":"\\\\b(events) +\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"end":"}","name":"meta.context.events.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(http) +\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"end":"}","name":"meta.context.http.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(mail) +\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"end":"}","name":"meta.context.mail.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(stream) +\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"end":"}","name":"meta.context.stream.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(server) +\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"end":"}","name":"meta.context.server.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(location) +(\\\\^?~\\\\*?|=) +(.*?)\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"},"2":{"name":"keyword.operator.nginx"},"3":{"name":"string.regexp.nginx"}},"end":"}","name":"meta.context.location.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(location) +(.*?)\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"},"2":{"name":"entity.name.context.location.nginx"}},"end":"}","name":"meta.context.location.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(limit_except) +\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"end":"}","name":"meta.context.limit_except.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(if) +\\\\(","beginCaptures":{"1":{"name":"keyword.control.nginx"}},"end":"\\\\)","name":"meta.context.if.nginx","patterns":[{"include":"#if_condition"}]},{"begin":"\\\\b(upstream) +(.*?)\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"},"2":{"name":"entity.name.context.location.nginx"}},"end":"}","name":"meta.context.upstream.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(types) +\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"}},"end":"}","name":"meta.context.types.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(map) +(\\\\$)([0-9A-Z_a-z]+) +(\\\\$)([0-9A-Z_a-z]+) *\\\\{","beginCaptures":{"1":{"name":"storage.type.directive.context.nginx"},"2":{"name":"punctuation.definition.variable.nginx"},"3":{"name":"variable.parameter.nginx"},"4":{"name":"punctuation.definition.variable.nginx"},"5":{"name":"variable.other.nginx"}},"end":"}","name":"meta.context.map.nginx","patterns":[{"include":"#values"},{"match":";","name":"punctuation.terminator.nginx"},{"match":"#.*","name":"comment.line.number-sign"}]},{"begin":"\\\\{","end":"}","name":"meta.block.nginx","patterns":[{"include":"$self"}]},{"begin":"\\\\b(return)\\\\b","beginCaptures":{"1":{"name":"keyword.control.nginx"}},"end":";","patterns":[{"include":"#values"}]},{"begin":"\\\\b(rewrite)\\\\s+","beginCaptures":{"1":{"name":"keyword.directive.nginx"}},"end":"(last|break|redirect|permanent)?(;)","endCaptures":{"1":{"name":"keyword.other.nginx"},"2":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"\\\\b(server)\\\\s+","beginCaptures":{"1":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"1":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#server_parameters"}]},{"begin":"\\\\b(internal|empty_gif|f4f|flv|hls|mp4|break|status|stub_status|ip_hash|ntlm|least_conn|upstream_conf|least_conn|zone_sync)\\\\b","beginCaptures":{"1":{"name":"keyword.directive.nginx"}},"end":"(;|$)","endCaptures":{"1":{"name":"punctuation.terminator.nginx"}}},{"begin":"([\\"'\\\\s]|^)(accept_)(mutex(?:|_delay))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(debug_)(connection|points)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(error_)(log|page)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(ssl_)(engine|buffer_size|certificate|certificate_key|ciphers|client_certificate|conf_command|crl|dhparam|early_data|ecdh_curve|ocsp|ocsp_cache|ocsp_responder|password_file|prefer_server_ciphers|protocols|reject_handshake|session_cache|session_ticket_key|session_tickets|session_timeout|stapling|stapling_file|stapling_responder|stapling_verify|trusted_certificate|verify_client|verify_depth|alpn|handshake_timeout|preread)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(worker_)(aio_requests|connections|cpu_affinity|priority|processes|rlimit_core|rlimit_nofile|shutdown_timeout)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(auth_)(delay|basic|basic_user_file|jwt|jwt_claim_set|jwt_header_set|jwt_key_cache|jwt_key_file|jwt_key_request|jwt_leeway|jwt_type|jwt_require|request|request_set|http|http_header|http_pass_client_cert|http_timeout)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(client_)(body_buffer_size|body_in_file_only|body_in_single_buffer|body_temp_path|body_timeout|header_buffer_size|header_timeout|max_body_size)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(keepalive_)(disable|requests|time|timeout)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(limit_)(rate|rate_after|conn|conn_dry_run|conn_log_level|conn_status|conn_zone|zone|req|req_dry_run|req_log_level|req_status|req_zone)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(lingering_)(close|time|timeout)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(log_)(not_found|subrequest|format)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(max_)(ranges|errors)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(msie_)(padding|refresh)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(open_)(file_cache|file_cache_errors|file_cache_min_uses|file_cache_valid|log_file_cache)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(send_)(lowat|timeout)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(server_)(name|name_in_redirect|names_hash_bucket_size|names_hash_max_size|tokens)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(tcp_)(no(?:delay|push))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(types_)(hash_(?:bucket|max)_size)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(variables_)(hash_(?:bucket|max)_size)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(add_)(before_body|after_body|header|trailer)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(status_)(zone|format)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(autoindex_)(exact_size|format|localtime)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(ancient_)(browser(?:|_value))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(modern_)(browser(?:|_value))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(charset_)(map|types)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(dav_)(access|methods)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(fastcgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|catch_stderr|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|index|intercept_errors|keep_conn|limit_rate|max_temp_file_size|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_lowat|send_timeout|socket_keepalive|split_path_info|store|store_access|temp_file_write_size|temp_path)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(geoip_)(country|city|org|proxy|proxy_recursive)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(grpc_)(bind|buffer_size|connect_timeout|hide_header|ignore_headers|intercept_errors|next_upstream|next_upstream_timeout|next_upstream_tries|pass|pass_header|read_timeout|send_timeout|set_header|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(gzip_)(buffers|comp_level|disable|http_version|min_length|proxied|types|vary|static)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(hls_)(buffers|forward_args|fragment|mp4_buffer_size|mp4_max_buffer_size)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(image_)(filter(?:|_buffer|_interlace|_jpeg_quality|_sharpen|_transparency|_webp_quality))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(map_)(hash_(?:bucket|max)_size)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(memcached_)(bind|buffer_size|connect_timeout|gzip_flag|next_upstream|next_upstream_timeout|next_upstream_tries|pass|read_timeout|send_timeout|socket_keepalive)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(mp4_)(buffer_size|max_buffer_size|limit_rate|limit_rate_after|start_key_frame)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(perl_)(modules|require|set)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(proxy_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_convert_head|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|cookie_domain|cookie_flags|cookie_path|force_ranges|headers_hash_bucket_size|headers_hash_max_size|hide_header|http_version|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|method|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|redirect|request_buffering|send_lowat|send_timeout|set_body|set_header|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path|buffer|pass_error_message|protocol|smtp_auth|timeout|protocol_timeout|download_rate|half_close|requests|responses|session_drop|ssl|upload_rate)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(real_)(ip_(?:header|recursive))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(referer_)(hash_(?:bucket|max)_size)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(scgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|store|store_access|temp_file_write_size|temp_path)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(secure_)(link(?:|_md5|_secret))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(session_)(log(?:|_format|_zone))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(ssi_)(last_modified|min_file_chunk|silent_errors|types|value_length)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(sub_)(filter(?:|_last_modified|_once|_types))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(health_)(check(?:|_timeout))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(userid_)(domain|expires|flags|mark|name|p3p|path|service)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(uwsgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|modifier1|modifier2|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(http2_)(body_preread_size|chunk_size|idle_timeout|max_concurrent_pushes|max_concurrent_streams|max_field_size|max_header_size|max_requests|push|push_preload|recv_buffer_size|recv_timeout)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(http3_)(hq|max_concurrent_streams|stream_buffer_size)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(quic_)(active_connection_id_limit|bpf|gso|host_key|retry)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(xslt_)(last_modified|param|string_param|stylesheet|types)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(imap_)(auth|capabilities|client_buffer)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(pop3_)(auth|capabilities)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(smtp_)(auth|capabilities|client_buffer|greeting_delay)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(preread_)(buffer_size|timeout)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(mqtt_)(preread|buffers|rewrite_buffer_size|set_connect)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(zone_)(sync_(?:buffers|connect_retry_interval|connect_timeout|interval|recv_buffer_size|server|ssl|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|timeout))([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(otel_)(exporter|service_name|trace|trace_context|span_name|span_attr)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(js_)(body_filter|content|fetch_buffer_size|fetch_ciphers|fetch_max_response_buffer_size|fetch_protocols|fetch_timeout|fetch_trusted_certificate|fetch_verify|fetch_verify_depth|header_filter|import|include|path|periodic|preload_object|set|shared_dict_zone|var|access|filter|preread)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"},"4":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"([\\"'\\\\s]|^)(daemon|env|include|pid|user??|aio|alias|directio|etag|listen|resolver|root|satisfy|sendfile|allow|deny|api|autoindex|charset|geo|gunzip|gzip|expires|index|keyval|mirror|perl|set|slice|ssi|ssl|zone|state|hash|keepalive|queue|random|sticky|match|userid|http2|http3|protocol|timeout|xclient|starttls|mqtt|load_module|lock_file|master_process|multi_accept|pcre_jit|thread_pool|timer_resolution|working_directory|absolute_redirect|aio_write|chunked_transfer_encoding|connection_pool_size|default_type|directio_alignment|disable_symlinks|if_modified_since|ignore_invalid_headers|large_client_header_buffers|merge_slashes|output_buffers|port_in_redirect|postpone_output|read_ahead|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver_timeout|sendfile_max_chunk|subrequest_output_buffer_size|try_files|underscores_in_headers|addition_types|override_charset|source_charset|create_full_put_path|min_delete_depth|f4f_buffer_size|gunzip_buffers|internal_redirect|keyval_zone|access_log|mirror_request_body|random_index|set_real_ip_from|valid_referers|rewrite_log|uninitialized_variable_warn|split_clients|least_time|sticky_cookie_insert|xml_entities|google_perftools_profiles)([\\"'\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.directive.nginx"},"2":{"name":"keyword.directive.nginx"},"3":{"name":"keyword.directive.nginx"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"\\\\b([0-9A-Z_a-z]+)\\\\s+","beginCaptures":{"1":{"name":"keyword.directive.unknown.nginx"}},"end":"(;|$)","endCaptures":{"1":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]},{"begin":"\\\\b([a-z]+/[-+.0-9A-Za-z]+)\\\\b","beginCaptures":{"1":{"name":"constant.other.mediatype.nginx"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.nginx"}},"patterns":[{"include":"#values"}]}],"repository":{"if_condition":{"patterns":[{"include":"#variables"},{"match":"!?~\\\\*?\\\\s","name":"keyword.operator.nginx"},{"match":"!?-[defx]\\\\s","name":"keyword.operator.nginx"},{"match":"!?=[^=]","name":"keyword.operator.nginx"},{"include":"#regexp_and_string"}]},"regexp_and_string":{"patterns":[{"match":"\\\\^.*?\\\\$","name":"string.regexp.nginx"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.nginx","patterns":[{"match":"\\\\\\\\[\\"'\\\\\\\\nt]","name":"constant.character.escape.nginx"},{"include":"#variables"}]},{"begin":"'","end":"'","name":"string.quoted.single.nginx","patterns":[{"match":"\\\\\\\\[\\"'\\\\\\\\nt]","name":"constant.character.escape.nginx"},{"include":"#variables"}]}]},"server_parameters":{"patterns":[{"captures":{"1":{"name":"variable.parameter.nginx"},"2":{"name":"keyword.operator.nginx"},"3":{"name":"constant.numeric.nginx"}},"match":"(?:^|\\\\s)(weight|max_conn|max_fails|fail_timeout|slow_start)(=)(\\\\d[.\\\\d]*[BDGHKMSTbdghkmst]?)(?:[;\\\\s]|$)"},{"include":"#values"}]},"values":{"patterns":[{"include":"#variables"},{"match":"#.*","name":"comment.line.number-sign"},{"captures":{"1":{"name":"constant.numeric.nginx"}},"match":"(?<=\\\\G|\\\\s)(=?[0-9][.0-9]*[BDGHKMSTbdghkmst]?)(?=[\\\\t ;])"},{"match":"(?<=\\\\G|\\\\s)(on|off|true|false)(?=[\\\\t ;])","name":"constant.language.nginx"},{"match":"(?<=\\\\G|\\\\s)(kqueue|rtsig|epoll|/dev/poll|select|poll|eventport|max|all|default_server|default|main|crit|error|debug|warn|notice|last)(?=[\\\\t ;])","name":"constant.language.nginx"},{"match":"\\\\\\\\.* |~\\\\*?|!~\\\\*?","name":"keyword.operator.nginx"},{"include":"#regexp_and_string"}]},"variables":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.nginx"},"2":{"name":"variable.other.nginx"}},"match":"(\\\\$)([0-9A-Z_a-z]+)\\\\b"},{"captures":{"1":{"name":"punctuation.definition.variable.nginx"},"2":{"name":"variable.other.nginx"},"3":{"name":"punctuation.definition.variable.nginx"}},"match":"(\\\\$\\\\{)([0-9A-Z_a-z]+)(})"}]}},"scopeName":"source.nginx","embeddedLangs":["lua"]}`)),i=[...e,n];export{i as default}; diff --git a/docs/assets/night-owl-ChBOsy9g.js b/docs/assets/night-owl-ChBOsy9g.js new file mode 100644 index 0000000..9ac8cc9 --- /dev/null +++ b/docs/assets/night-owl-ChBOsy9g.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#011627","activityBar.border":"#011627","activityBar.dropBackground":"#5f7e97","activityBar.foreground":"#5f7e97","activityBarBadge.background":"#44596b","activityBarBadge.foreground":"#ffffff","badge.background":"#5f7e97","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#FFFFFF","breadcrumb.focusForeground":"#ffffff","breadcrumb.foreground":"#A599E9","breadcrumbPicker.background":"#001122","button.background":"#7e57c2cc","button.foreground":"#ffffffcc","button.hoverBackground":"#7e57c2","contrastBorder":"#122d42","debugExceptionWidget.background":"#011627","debugExceptionWidget.border":"#5f7e97","debugToolBar.background":"#011627","diffEditor.insertedTextBackground":"#99b76d23","diffEditor.removedTextBackground":"#ef535033","dropdown.background":"#011627","dropdown.border":"#5f7e97","dropdown.foreground":"#ffffffcc","editor.background":"#011627","editor.findMatchBackground":"#5f7e9779","editor.findMatchHighlightBackground":"#1085bb5d","editor.findRangeHighlightBackground":null,"editor.foreground":"#d6deeb","editor.hoverHighlightBackground":"#7e57c25a","editor.inactiveSelectionBackground":"#7e57c25a","editor.lineHighlightBackground":"#28707d29","editor.lineHighlightBorder":null,"editor.rangeHighlightBackground":"#7e57c25a","editor.selectionBackground":"#1d3b53","editor.selectionHighlightBackground":"#5f7e9779","editor.wordHighlightBackground":"#f6bbe533","editor.wordHighlightStrongBackground":"#e2a2f433","editorCodeLens.foreground":"#5e82ceb4","editorCursor.foreground":"#80a4c2","editorError.border":null,"editorError.foreground":"#EF5350","editorGroup.border":"#011627","editorGroup.dropBackground":"#7e57c273","editorGroup.emptyBackground":"#011627","editorGroupHeader.noTabsBackground":"#011627","editorGroupHeader.tabsBackground":"#011627","editorGroupHeader.tabsBorder":"#262A39","editorGutter.addedBackground":"#9CCC65","editorGutter.background":"#011627","editorGutter.deletedBackground":"#EF5350","editorGutter.modifiedBackground":"#e2b93d","editorHoverWidget.background":"#011627","editorHoverWidget.border":"#5f7e97","editorIndentGuide.activeBackground":"#7E97AC","editorIndentGuide.background":"#5e81ce52","editorInlayHint.background":"#0000","editorInlayHint.foreground":"#829D9D","editorLineNumber.activeForeground":"#C5E4FD","editorLineNumber.foreground":"#4b6479","editorLink.activeForeground":null,"editorMarkerNavigation.background":"#0b2942","editorMarkerNavigationError.background":"#EF5350","editorMarkerNavigationWarning.background":"#FFCA28","editorOverviewRuler.commonContentForeground":"#7e57c2","editorOverviewRuler.currentContentForeground":"#7e57c2","editorOverviewRuler.incomingContentForeground":"#7e57c2","editorRuler.foreground":"#5e81ce52","editorSuggestWidget.background":"#2C3043","editorSuggestWidget.border":"#2B2F40","editorSuggestWidget.foreground":"#d6deeb","editorSuggestWidget.highlightForeground":"#ffffff","editorSuggestWidget.selectedBackground":"#5f7e97","editorWarning.border":null,"editorWarning.foreground":"#b39554","editorWhitespace.foreground":null,"editorWidget.background":"#021320","editorWidget.border":"#5f7e97","errorForeground":"#EF5350","extensionButton.prominentBackground":"#7e57c2cc","extensionButton.prominentForeground":"#ffffffcc","extensionButton.prominentHoverBackground":"#7e57c2","focusBorder":"#122d42","foreground":"#d6deeb","gitDecoration.conflictingResourceForeground":"#ffeb95cc","gitDecoration.deletedResourceForeground":"#EF535090","gitDecoration.ignoredResourceForeground":"#395a75","gitDecoration.modifiedResourceForeground":"#a2bffc","gitDecoration.untrackedResourceForeground":"#c5e478ff","input.background":"#0b253a","input.border":"#5f7e97","input.foreground":"#ffffffcc","input.placeholderForeground":"#5f7e97","inputOption.activeBorder":"#ffffffcc","inputValidation.errorBackground":"#AB0300F2","inputValidation.errorBorder":"#EF5350","inputValidation.infoBackground":"#00589EF2","inputValidation.infoBorder":"#64B5F6","inputValidation.warningBackground":"#675700F2","inputValidation.warningBorder":"#FFCA28","list.activeSelectionBackground":"#234d708c","list.activeSelectionForeground":"#ffffff","list.dropBackground":"#011627","list.focusBackground":"#010d18","list.focusForeground":"#ffffff","list.highlightForeground":"#ffffff","list.hoverBackground":"#011627","list.hoverForeground":"#ffffff","list.inactiveSelectionBackground":"#0e293f","list.inactiveSelectionForeground":"#5f7e97","list.invalidItemForeground":"#975f94","merge.border":null,"merge.currentContentBackground":null,"merge.currentHeaderBackground":"#5f7e97","merge.incomingContentBackground":null,"merge.incomingHeaderBackground":"#7e57c25a","meta.objectliteral.js":"#82AAFF","notificationCenter.border":"#262a39","notificationLink.foreground":"#80CBC4","notificationToast.border":"#262a39","notifications.background":"#01111d","notifications.border":"#262a39","notifications.foreground":"#ffffffcc","panel.background":"#011627","panel.border":"#5f7e97","panelTitle.activeBorder":"#5f7e97","panelTitle.activeForeground":"#ffffffcc","panelTitle.inactiveForeground":"#d6deeb80","peekView.border":"#5f7e97","peekViewEditor.background":"#011627","peekViewEditor.matchHighlightBackground":"#7e57c25a","peekViewResult.background":"#011627","peekViewResult.fileForeground":"#5f7e97","peekViewResult.lineForeground":"#5f7e97","peekViewResult.matchHighlightBackground":"#ffffffcc","peekViewResult.selectionBackground":"#2E3250","peekViewResult.selectionForeground":"#5f7e97","peekViewTitle.background":"#011627","peekViewTitleDescription.foreground":"#697098","peekViewTitleLabel.foreground":"#5f7e97","pickerGroup.border":"#011627","pickerGroup.foreground":"#d1aaff","progress.background":"#7e57c2","punctuation.definition.generic.begin.html":"#ef5350f2","scrollbar.shadow":"#010b14","scrollbarSlider.activeBackground":"#084d8180","scrollbarSlider.background":"#084d8180","scrollbarSlider.hoverBackground":"#084d8180","selection.background":"#4373c2","sideBar.background":"#011627","sideBar.border":"#011627","sideBar.foreground":"#89a4bb","sideBarSectionHeader.background":"#011627","sideBarSectionHeader.foreground":"#5f7e97","sideBarTitle.foreground":"#5f7e97","source.elm":"#5f7e97","statusBar.background":"#011627","statusBar.border":"#262A39","statusBar.debuggingBackground":"#202431","statusBar.debuggingBorder":"#1F2330","statusBar.debuggingForeground":null,"statusBar.foreground":"#5f7e97","statusBar.noFolderBackground":"#011627","statusBar.noFolderBorder":"#25293A","statusBar.noFolderForeground":null,"statusBarItem.activeBackground":"#202431","statusBarItem.hoverBackground":"#202431","statusBarItem.prominentBackground":"#202431","statusBarItem.prominentHoverBackground":"#202431","string.quoted.single.js":"#ffffff","tab.activeBackground":"#0b2942","tab.activeBorder":"#262A39","tab.activeForeground":"#d2dee7","tab.border":"#272B3B","tab.inactiveBackground":"#01111d","tab.inactiveForeground":"#5f7e97","tab.unfocusedActiveBorder":"#262A39","tab.unfocusedActiveForeground":"#5f7e97","tab.unfocusedInactiveForeground":"#5f7e97","terminal.ansiBlack":"#011627","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#575656","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#7fdbca","terminal.ansiBrightGreen":"#22da6e","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#EF5350","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#ffeb95","terminal.ansiCyan":"#21c7a8","terminal.ansiGreen":"#22da6e","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#EF5350","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#c5e478","terminal.selectionBackground":"#1b90dd4d","terminalCursor.background":"#234d70","textCodeBlock.background":"#4f4f4f","titleBar.activeBackground":"#011627","titleBar.activeForeground":"#eeefff","titleBar.inactiveBackground":"#010e1a","titleBar.inactiveForeground":null,"walkThrough.embeddedEditorBackground":"#011627","welcomePage.buttonBackground":"#011627","welcomePage.buttonHoverBackground":"#011627","widget.shadow":"#011627"},"displayName":"Night Owl","name":"night-owl","semanticHighlighting":false,"tokenColors":[{"scope":["markup.changed","meta.diff.header.git","meta.diff.header.from-file","meta.diff.header.to-file"],"settings":{"fontStyle":"italic","foreground":"#a2bffc"}},{"scope":"markup.deleted.diff","settings":{"fontStyle":"italic","foreground":"#EF535090"}},{"scope":"markup.inserted.diff","settings":{"fontStyle":"italic","foreground":"#c5e478ff"}},{"settings":{"background":"#011627","foreground":"#d6deeb"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#637777"}},{"scope":"string","settings":{"foreground":"#ecc48d"}},{"scope":["string.quoted","variable.other.readwrite.js"],"settings":{"foreground":"#ecc48d"}},{"scope":"support.constant.math","settings":{"foreground":"#c5e478"}},{"scope":["constant.numeric","constant.character.numeric"],"settings":{"fontStyle":"","foreground":"#F78C6C"}},{"scope":["constant.language","punctuation.definition.constant","variable.other.constant"],"settings":{"foreground":"#82AAFF"}},{"scope":["constant.character","constant.other"],"settings":{"foreground":"#82AAFF"}},{"scope":"constant.character.escape","settings":{"foreground":"#F78C6C"}},{"scope":["string.regexp","string.regexp keyword.other"],"settings":{"foreground":"#5ca7e4"}},{"scope":"meta.function punctuation.separator.comma","settings":{"foreground":"#5f7e97"}},{"scope":"variable","settings":{"foreground":"#c5e478"}},{"scope":["punctuation.accessor","keyword"],"settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":["storage","meta.var.expr","meta.class meta.method.declaration meta.var.expr storage.type.js","storage.type.property.js","storage.type.property.ts","storage.type.property.tsx"],"settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"storage.type","settings":{"foreground":"#c792ea"}},{"scope":"storage.type.function.arrow.js","settings":{"fontStyle":""}},{"scope":["entity.name.class","meta.class entity.name.type.class"],"settings":{"foreground":"#ffcb8b"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#c5e478"}},{"scope":"entity.name.function","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":["punctuation.definition.tag","meta.tag"],"settings":{"foreground":"#7fdbca"}},{"scope":["entity.name.tag","meta.tag.other.html","meta.tag.other.js","meta.tag.other.tsx","entity.name.tag.tsx","entity.name.tag.js","entity.name.tag","meta.tag.js","meta.tag.tsx","meta.tag.html"],"settings":{"fontStyle":"","foreground":"#caece6"}},{"scope":"entity.other.attribute-name","settings":{"fontStyle":"italic","foreground":"#c5e478"}},{"scope":"entity.name.tag.custom","settings":{"foreground":"#f78c6c"}},{"scope":["support.function","support.constant"],"settings":{"foreground":"#82AAFF"}},{"scope":"support.constant.meta.property-value","settings":{"foreground":"#7fdbca"}},{"scope":["support.type","support.class"],"settings":{"foreground":"#c5e478"}},{"scope":"support.variable.dom","settings":{"foreground":"#c5e478"}},{"scope":"invalid","settings":{"background":"#ff2c83","foreground":"#ffffff"}},{"scope":"invalid.deprecated","settings":{"background":"#d3423e","foreground":"#ffffff"}},{"scope":"keyword.operator","settings":{"fontStyle":"","foreground":"#7fdbca"}},{"scope":"keyword.operator.relational","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#c792ea"}},{"scope":"keyword.operator.arithmetic","settings":{"foreground":"#c792ea"}},{"scope":"keyword.operator.bitwise","settings":{"foreground":"#c792ea"}},{"scope":"keyword.operator.increment","settings":{"foreground":"#c792ea"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#c792ea"}},{"scope":"comment.line.double-slash","settings":{"foreground":"#637777"}},{"scope":"object","settings":{"foreground":"#cdebf7"}},{"scope":"constant.language.null","settings":{"foreground":"#ff5874"}},{"scope":"meta.brace","settings":{"foreground":"#d6deeb"}},{"scope":"meta.delimiter.period","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"punctuation.definition.string","settings":{"foreground":"#d9f5dd"}},{"scope":"punctuation.definition.string.begin.markdown","settings":{"foreground":"#ff5874"}},{"scope":"constant.language.boolean","settings":{"foreground":"#ff5874"}},{"scope":"object.comma","settings":{"foreground":"#ffffff"}},{"scope":"variable.parameter.function","settings":{"fontStyle":"","foreground":"#7fdbca"}},{"scope":["support.type.vendor.property-name","support.constant.vendor.property-value","support.type.property-name","meta.property-list entity.name.tag"],"settings":{"fontStyle":"","foreground":"#80CBC4"}},{"scope":"meta.property-list entity.name.tag.reference","settings":{"foreground":"#57eaf1"}},{"scope":"constant.other.color.rgb-value punctuation.definition.constant","settings":{"foreground":"#F78C6C"}},{"scope":"constant.other.color","settings":{"foreground":"#FFEB95"}},{"scope":"keyword.other.unit","settings":{"foreground":"#FFEB95"}},{"scope":"meta.selector","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#FAD430"}},{"scope":"meta.property-name","settings":{"foreground":"#80CBC4"}},{"scope":["entity.name.tag.doctype","meta.tag.sgml.doctype"],"settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"punctuation.definition.parameters","settings":{"foreground":"#d9f5dd"}},{"scope":"keyword.control.operator","settings":{"foreground":"#7fdbca"}},{"scope":"keyword.operator.logical","settings":{"fontStyle":"","foreground":"#c792ea"}},{"scope":["variable.instance","variable.other.instance","variable.readwrite.instance","variable.other.readwrite.instance","variable.other.property"],"settings":{"foreground":"#baebe2"}},{"scope":["variable.other.object.property"],"settings":{"fontStyle":"italic","foreground":"#faf39f"}},{"scope":["variable.other.object.js"],"settings":{"fontStyle":""}},{"scope":["entity.name.function"],"settings":{"fontStyle":"italic","foreground":"#82AAFF"}},{"scope":["variable.language.this.js"],"settings":{"fontStyle":"italic","foreground":"#41eec6"}},{"scope":["keyword.operator.comparison","keyword.control.flow.js","keyword.control.flow.ts","keyword.control.flow.tsx","keyword.control.ruby","keyword.control.module.ruby","keyword.control.class.ruby","keyword.control.def.ruby","keyword.control.loop.js","keyword.control.loop.ts","keyword.control.import.js","keyword.control.import.ts","keyword.control.import.tsx","keyword.control.from.js","keyword.control.from.ts","keyword.control.from.tsx","keyword.operator.instanceof.js","keyword.operator.expression.instanceof.ts","keyword.operator.expression.instanceof.tsx"],"settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":["keyword.control.conditional.js","keyword.control.conditional.ts","keyword.control.switch.js","keyword.control.switch.ts"],"settings":{"fontStyle":"","foreground":"#c792ea"}},{"scope":["support.constant","keyword.other.special-method","keyword.other.new","keyword.other.debugger","keyword.control"],"settings":{"foreground":"#7fdbca"}},{"scope":"support.function","settings":{"foreground":"#c5e478"}},{"scope":"invalid.broken","settings":{"background":"#F78C6C","foreground":"#020e14"}},{"scope":"invalid.unimplemented","settings":{"background":"#8BD649","foreground":"#ffffff"}},{"scope":"invalid.illegal","settings":{"background":"#ec5f67","foreground":"#ffffff"}},{"scope":"variable.language","settings":{"foreground":"#7fdbca"}},{"scope":"support.variable.property","settings":{"foreground":"#7fdbca"}},{"scope":"variable.function","settings":{"foreground":"#82AAFF"}},{"scope":"variable.interpolation","settings":{"foreground":"#ec5f67"}},{"scope":"meta.function-call","settings":{"foreground":"#82AAFF"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#d3423e"}},{"scope":["punctuation.terminator.expression","punctuation.definition.arguments","punctuation.definition.array","punctuation.section.array","meta.array"],"settings":{"foreground":"#d6deeb"}},{"scope":["punctuation.definition.list.begin","punctuation.definition.list.end","punctuation.separator.arguments","punctuation.definition.list"],"settings":{"foreground":"#d9f5dd"}},{"scope":"string.template meta.template.expression","settings":{"foreground":"#d3423e"}},{"scope":"string.template punctuation.definition.string","settings":{"foreground":"#d6deeb"}},{"scope":"italic","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"bold","settings":{"fontStyle":"bold","foreground":"#c5e478"}},{"scope":"quote","settings":{"fontStyle":"italic","foreground":"#697098"}},{"scope":"raw","settings":{"foreground":"#80CBC4"}},{"scope":"variable.assignment.coffee","settings":{"foreground":"#31e1eb"}},{"scope":"variable.parameter.function.coffee","settings":{"foreground":"#d6deeb"}},{"scope":"variable.assignment.coffee","settings":{"foreground":"#7fdbca"}},{"scope":"variable.other.readwrite.cs","settings":{"foreground":"#d6deeb"}},{"scope":["entity.name.type.class.cs","storage.type.cs"],"settings":{"foreground":"#ffcb8b"}},{"scope":"entity.name.type.namespace.cs","settings":{"foreground":"#B2CCD6"}},{"scope":"string.unquoted.preprocessor.message.cs","settings":{"foreground":"#d6deeb"}},{"scope":["punctuation.separator.hash.cs","keyword.preprocessor.region.cs","keyword.preprocessor.endregion.cs"],"settings":{"fontStyle":"bold","foreground":"#ffcb8b"}},{"scope":"variable.other.object.cs","settings":{"foreground":"#B2CCD6"}},{"scope":"entity.name.type.enum.cs","settings":{"foreground":"#c5e478"}},{"scope":["string.interpolated.single.dart","string.interpolated.double.dart"],"settings":{"foreground":"#FFCB8B"}},{"scope":"support.class.dart","settings":{"foreground":"#FFCB8B"}},{"scope":["entity.name.tag.css","entity.name.tag.less","entity.name.tag.custom.css","support.constant.property-value.css"],"settings":{"fontStyle":"","foreground":"#ff6363"}},{"scope":["entity.name.tag.wildcard.css","entity.name.tag.wildcard.less","entity.name.tag.wildcard.scss","entity.name.tag.wildcard.sass"],"settings":{"foreground":"#7fdbca"}},{"scope":"keyword.other.unit.css","settings":{"foreground":"#FFEB95"}},{"scope":["meta.attribute-selector.css entity.other.attribute-name.attribute","variable.other.readwrite.js"],"settings":{"foreground":"#F78C6C"}},{"scope":["source.elixir support.type.elixir","source.elixir meta.module.elixir entity.name.class.elixir"],"settings":{"foreground":"#82AAFF"}},{"scope":"source.elixir entity.name.function","settings":{"foreground":"#c5e478"}},{"scope":["source.elixir constant.other.symbol.elixir","source.elixir constant.other.keywords.elixir"],"settings":{"foreground":"#82AAFF"}},{"scope":"source.elixir punctuation.definition.string","settings":{"foreground":"#c5e478"}},{"scope":["source.elixir variable.other.readwrite.module.elixir","source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir"],"settings":{"foreground":"#c5e478"}},{"scope":"source.elixir .punctuation.binary.elixir","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#7fdbca"}},{"scope":"source.go meta.function-call.go","settings":{"foreground":"#DDDDDD"}},{"scope":["source.go keyword.package.go","source.go keyword.import.go","source.go keyword.function.go","source.go keyword.type.go","source.go keyword.struct.go","source.go keyword.interface.go","source.go keyword.const.go","source.go keyword.var.go","source.go keyword.map.go","source.go keyword.channel.go","source.go keyword.control.go"],"settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":["source.go constant.language.go","source.go constant.other.placeholder.go"],"settings":{"foreground":"#ff5874"}},{"scope":["entity.name.function.preprocessor.cpp","entity.scope.name.cpp"],"settings":{"foreground":"#7fdbcaff"}},{"scope":["meta.namespace-block.cpp"],"settings":{"foreground":"#e0dec6"}},{"scope":["storage.type.language.primitive.cpp"],"settings":{"foreground":"#ff5874"}},{"scope":["meta.preprocessor.macro.cpp"],"settings":{"foreground":"#d6deeb"}},{"scope":["variable.parameter"],"settings":{"foreground":"#ffcb8b"}},{"scope":["variable.other.readwrite.powershell"],"settings":{"foreground":"#82AAFF"}},{"scope":["support.function.powershell"],"settings":{"foreground":"#7fdbcaff"}},{"scope":"entity.other.attribute-name.id.html","settings":{"foreground":"#c5e478"}},{"scope":"punctuation.definition.tag.html","settings":{"foreground":"#6ae9f0"}},{"scope":"meta.tag.sgml.doctype.html","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"meta.class entity.name.type.class.js","settings":{"foreground":"#ffcb8b"}},{"scope":"meta.method.declaration storage.type.js","settings":{"foreground":"#82AAFF"}},{"scope":"terminator.js","settings":{"foreground":"#d6deeb"}},{"scope":"meta.js punctuation.definition.js","settings":{"foreground":"#d6deeb"}},{"scope":["entity.name.type.instance.jsdoc","entity.name.type.instance.phpdoc"],"settings":{"foreground":"#5f7e97"}},{"scope":["variable.other.jsdoc","variable.other.phpdoc"],"settings":{"foreground":"#78ccf0"}},{"scope":["variable.other.meta.import.js","meta.import.js variable.other","variable.other.meta.export.js","meta.export.js variable.other"],"settings":{"foreground":"#d6deeb"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#7986E7"}},{"scope":["variable.other.object.js","variable.other.object.jsx","variable.object.property.js","variable.object.property.jsx"],"settings":{"foreground":"#d6deeb"}},{"scope":["variable.js","variable.other.js"],"settings":{"foreground":"#d6deeb"}},{"scope":["entity.name.type.js","entity.name.type.module.js"],"settings":{"fontStyle":"","foreground":"#ffcb8b"}},{"scope":"support.class.js","settings":{"foreground":"#d6deeb"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#7fdbca"}},{"scope":"support.constant.json","settings":{"foreground":"#c5e478"}},{"scope":"meta.structure.dictionary.value.json string.quoted.double","settings":{"foreground":"#c789d6"}},{"scope":"string.quoted.double.json punctuation.definition.string.json","settings":{"foreground":"#80CBC4"}},{"scope":"meta.structure.dictionary.json meta.structure.dictionary.value constant.language","settings":{"foreground":"#ff5874"}},{"scope":"variable.other.object.js","settings":{"fontStyle":"italic","foreground":"#7fdbca"}},{"scope":["variable.other.ruby"],"settings":{"foreground":"#d6deeb"}},{"scope":["entity.name.type.class.ruby"],"settings":{"foreground":"#ecc48d"}},{"scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#7fdbca"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#7fdbca"}},{"scope":"entity.name.tag.less","settings":{"foreground":"#7fdbca"}},{"scope":"keyword.other.unit.css","settings":{"foreground":"#FFEB95"}},{"scope":"meta.attribute-selector.less entity.other.attribute-name.attribute","settings":{"foreground":"#F78C6C"}},{"scope":["markup.heading","markup.heading.setext.1","markup.heading.setext.2"],"settings":{"foreground":"#82b1ff"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#c5e478"}},{"scope":"markup.quote","settings":{"fontStyle":"italic","foreground":"#697098"}},{"scope":"markup.inline.raw","settings":{"foreground":"#80CBC4"}},{"scope":["markup.underline.link","markup.underline.link.image"],"settings":{"foreground":"#ff869a"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#d6deeb"}},{"scope":["punctuation.definition.string.markdown","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","meta.link.inline.markdown punctuation.definition.string"],"settings":{"foreground":"#82b1ff"}},{"scope":["punctuation.definition.metadata.markdown"],"settings":{"foreground":"#7fdbca"}},{"scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#82b1ff"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#c5e478"}},{"scope":["variable.other.php","variable.other.property.php"],"settings":{"foreground":"#bec5d4"}},{"scope":"support.class.php","settings":{"foreground":"#ffcb8b"}},{"scope":"meta.function-call.php punctuation","settings":{"foreground":"#d6deeb"}},{"scope":"variable.other.global.php","settings":{"foreground":"#c5e478"}},{"scope":"variable.other.global.php punctuation.definition.variable","settings":{"foreground":"#c5e478"}},{"scope":"constant.language.python","settings":{"foreground":"#ff5874"}},{"scope":["variable.parameter.function.python","meta.function-call.arguments.python"],"settings":{"foreground":"#82AAFF"}},{"scope":["meta.function-call.python","meta.function-call.generic.python"],"settings":{"foreground":"#B2CCD6"}},{"scope":"punctuation.python","settings":{"foreground":"#d6deeb"}},{"scope":"entity.name.function.decorator.python","settings":{"foreground":"#c5e478"}},{"scope":"source.python variable.language.special","settings":{"foreground":"#8EACE3"}},{"scope":"keyword.control","settings":{"fontStyle":"italic","foreground":"#c792ea"}},{"scope":["variable.scss","variable.sass","variable.parameter.url.scss","variable.parameter.url.sass"],"settings":{"foreground":"#c5e478"}},{"scope":["source.css.scss meta.at-rule variable","source.css.sass meta.at-rule variable"],"settings":{"foreground":"#82AAFF"}},{"scope":["source.css.scss meta.at-rule variable","source.css.sass meta.at-rule variable"],"settings":{"foreground":"#bec5d4"}},{"scope":["meta.attribute-selector.scss entity.other.attribute-name.attribute","meta.attribute-selector.sass entity.other.attribute-name.attribute"],"settings":{"foreground":"#F78C6C"}},{"scope":["entity.name.tag.scss","entity.name.tag.sass"],"settings":{"foreground":"#7fdbca"}},{"scope":["keyword.other.unit.scss","keyword.other.unit.sass"],"settings":{"foreground":"#FFEB95"}},{"scope":["variable.other.readwrite.alias.ts","variable.other.readwrite.alias.tsx","variable.other.readwrite.ts","variable.other.readwrite.tsx","variable.other.object.ts","variable.other.object.tsx","variable.object.property.ts","variable.object.property.tsx","variable.other.ts","variable.other.tsx","variable.tsx","variable.ts"],"settings":{"foreground":"#d6deeb"}},{"scope":["entity.name.type.ts","entity.name.type.tsx"],"settings":{"foreground":"#ffcb8b"}},{"scope":["support.class.node.ts","support.class.node.tsx"],"settings":{"foreground":"#82AAFF"}},{"scope":["meta.type.parameters.ts entity.name.type","meta.type.parameters.tsx entity.name.type"],"settings":{"foreground":"#5f7e97"}},{"scope":["meta.import.ts punctuation.definition.block","meta.import.tsx punctuation.definition.block","meta.export.ts punctuation.definition.block","meta.export.tsx punctuation.definition.block"],"settings":{"foreground":"#d6deeb"}},{"scope":["meta.decorator punctuation.decorator.ts","meta.decorator punctuation.decorator.tsx"],"settings":{"foreground":"#82AAFF"}},{"scope":"meta.tag.js meta.jsx.children.tsx","settings":{"foreground":"#82AAFF"}},{"scope":"entity.name.tag.yaml","settings":{"foreground":"#7fdbca"}},{"scope":["variable.other.readwrite.js","variable.parameter"],"settings":{"foreground":"#d7dbe0"}},{"scope":["support.class.component.js","support.class.component.tsx"],"settings":{"fontStyle":"","foreground":"#f78c6c"}},{"scope":["meta.jsx.children","meta.jsx.children.js","meta.jsx.children.tsx"],"settings":{"foreground":"#d6deeb"}},{"scope":"meta.class entity.name.type.class.tsx","settings":{"foreground":"#ffcb8b"}},{"scope":["entity.name.type.tsx","entity.name.type.module.tsx"],"settings":{"foreground":"#ffcb8b"}},{"scope":["meta.class.ts meta.var.expr.ts storage.type.ts","meta.class.tsx meta.var.expr.tsx storage.type.tsx"],"settings":{"foreground":"#C792EA"}},{"scope":["meta.method.declaration storage.type.ts","meta.method.declaration storage.type.tsx"],"settings":{"foreground":"#82AAFF"}},{"scope":"markup.deleted","settings":{"foreground":"#ff0000"}},{"scope":"markup.inserted","settings":{"foreground":"#036A07"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":["meta.property-list.css meta.property-value.css variable.other.less","meta.property-list.scss variable.scss","meta.property-list.sass variable.sass","meta.brace","keyword.operator.operator","keyword.operator.or.regexp","keyword.operator.expression.in","keyword.operator.relational","keyword.operator.assignment","keyword.operator.comparison","keyword.operator.type","keyword.operator","keyword","punctuation.definintion.string","punctuation","variable.other.readwrite.js","storage.type","source.css","string.quoted"],"settings":{"fontStyle":""}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/nim-2LoM9u8F.js b/docs/assets/nim-2LoM9u8F.js new file mode 100644 index 0000000..15ae9d9 --- /dev/null +++ b/docs/assets/nim-2LoM9u8F.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./css-xi2XX7Oh.js";import{t}from"./html-Bz1QLM72.js";import{t as a}from"./xml-CmKMNcqy.js";import{t as i}from"./c-B0sc7wbk.js";import{t as m}from"./glsl-DZDdueIl.js";import{t as r}from"./markdown-DroiuUZL.js";var o=Object.freeze(JSON.parse(`{"displayName":"Nim","fileTypes":["nim"],"name":"nim","patterns":[{"begin":"[\\\\t ]*##\\\\[","contentName":"comment.block.doc-comment.content.nim","end":"]##","name":"comment.block.doc-comment.nim","patterns":[{"include":"#multilinedoccomment","name":"comment.block.doc-comment.nested.nim"}]},{"begin":"[\\\\t ]*#\\\\[","contentName":"comment.block.content.nim","end":"]#","name":"comment.block.nim","patterns":[{"include":"#multilinecomment","name":"comment.block.nested.nim"}]},{"begin":"(^[\\\\t ]+)?(?=##)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.nim"}},"end":"(?!\\\\G)","patterns":[{"begin":"##","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim"}},"end":"\\\\n","name":"comment.line.number-sign.doc-comment.nim"}]},{"begin":"(^[\\\\t ]+)?(?=#[^\\\\[])","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.nim"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.nim"}},"end":"\\\\n","name":"comment.line.number-sign.nim"}]},{"name":"meta.proc.nim","patterns":[{"begin":"\\\\b(proc|method|template|macro|iterator|converter|func)\\\\s+\`?([^(*:\`{\\\\s]*)\`?(\\\\s*\\\\*)?\\\\s*(?=[\\\\n(:=\\\\[{])","captures":{"1":{"name":"keyword.other"},"2":{"name":"entity.name.function.nim"},"3":{"name":"keyword.control.export"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]}]},{"begin":"discard \\"\\"\\"","end":"\\"\\"\\"(?!\\")","name":"comment.line.discarded.nim"},{"include":"#float_literal"},{"include":"#integer_literal"},{"match":"(?<=\`)[^ \`]+(?=\`)","name":"entity.name.function.nim"},{"captures":{"1":{"name":"keyword.control.export"}},"match":"\\\\b\\\\s*(\\\\*)(?:\\\\s*(?=[,:])|\\\\s+(?==))"},{"captures":{"1":{"name":"support.type.nim"},"2":{"name":"keyword.control.export"}},"match":"\\\\b([A-Z]\\\\w+)(\\\\*)"},{"include":"#string_literal"},{"match":"\\\\b(true|false|Inf|NegInf|NaN|nil)\\\\b","name":"constant.language.nim"},{"match":"\\\\b(block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b","name":"keyword.control.nim"},{"match":"\\\\b((and|in|is|isnot|not|notin|or|xor))\\\\b","name":"keyword.boolean.nim"},{"match":"([-!$%\\\\&*+./:<-@\\\\\\\\^~])+","name":"keyword.operator.nim"},{"match":"\\\\b((addr|asm??|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template))\\\\b","name":"keyword.other.nim"},{"match":"\\\\b((generic|interface|lambda|out|shared))\\\\b","name":"invalid.illegal.invalid-keyword.nim"},{"match":"\\\\b(new|await|assert|echo|defined|declared|newException|countup|countdown|high|low)\\\\b","name":"keyword.other.common.function.nim"},{"match":"\\\\b(((u?int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed)\\\\b","name":"storage.type.concrete.nim"},{"match":"\\\\b(range|array|seq|set|pointer)\\\\b","name":"storage.type.generic.nim"},{"match":"\\\\b(openarray|varargs|void)\\\\b","name":"storage.type.generic.nim"},{"match":"\\\\b[A-Z][0-9A-Z_]+\\\\b","name":"support.constant.nim"},{"match":"\\\\b[A-Z]\\\\w+\\\\b","name":"support.type.nim"},{"match":"\\\\b\\\\w+\\\\b(?=(\\\\[([,0-9A-Z_a-z\\\\s])+])?\\\\()","name":"support.function.any-method.nim"},{"match":"(?!(openarray|varargs|void|range|array|seq|set|pointer|new|await|assert|echo|defined|declared|newException|countup|countdown|high|low|((u?int)(8|16|32|64)?)|float(32|64)?|bool|string|auto|cstring|char|byte|tobject|typedesc|stmt|expr|any|untyped|typed|addr|asm??|atomic|bind|cast|const|converter|concept|defer|discard|distinct|div|enum|export|from|import|include|let|mod|mixin|object|of|ptr|ref|shl|shr|static|type|using|var|tuple|iterator|macro|func|method|proc|template|and|in|is|isnot|not|notin|or|xor|proc|method|template|macro|iterator|converter|func|true|false|Inf|NegInf|NaN|nil|block|break|case|continue|do|elif|else|end|except|finally|for|if|raise|return|try|when|while|yield)\\\\b)\\\\w+\\\\s+(?!(and|in|is|isnot|not|notin|or|xor|[^\\"'-+0-9A-Z_-z]+)\\\\b)(?=[\\"'-+0-9A-Z_-z])","name":"support.function.any-method.nim"},{"begin":"(^\\\\s*)?(?=\\\\{\\\\.emit: ?\\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"\\\\{\\\\.(emit:) ?(\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"source.c","end":"(\\")\\"\\"(?!\\")(\\\\.?})?","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"source.c"}},"name":"meta.embedded.block.c","patterns":[{"begin":"\`","end":"\`","name":"keyword.operator.nim"},{"include":"source.c"}]}]},{"begin":"\\\\{\\\\.","beginCaptures":{"0":{"name":"punctuation.pragma.start.nim"}},"end":"\\\\.?}","endCaptures":{"0":{"name":"punctuation.pragma.end.nim"}},"patterns":[{"begin":"\\\\b(\\\\p{alpha}\\\\w*)(?:\\\\s|\\\\s*:)","beginCaptures":{"1":{"name":"meta.preprocessor.pragma.nim"}},"end":"(?=\\\\.?}|,)","patterns":[{"include":"source.nim"}]},{"begin":"\\\\b(\\\\p{alpha}\\\\w*)\\\\(","beginCaptures":{"1":{"name":"meta.preprocessor.pragma.nim"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]},{"captures":{"1":{"name":"meta.preprocessor.pragma.nim"}},"match":"\\\\b(\\\\p{alpha}\\\\w*)(?=\\\\.?}|,)"},{"begin":"\\\\b(\\\\p{alpha}\\\\w*)(\\"\\"\\")","beginCaptures":{"1":{"name":"meta.preprocessor.pragma.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.triple.raw.nim"},{"begin":"\\\\b(\\\\p{alpha}\\\\w*)(\\")","beginCaptures":{"1":{"name":"meta.preprocessor.pragma.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.double.raw.nim"},{"begin":"\\\\b(hint\\\\[\\\\w+]):","beginCaptures":{"1":{"name":"meta.preprocessor.pragma.nim"}},"end":"(?=\\\\.?}|,)","patterns":[{"include":"source.nim"}]},{"match":",","name":"punctuation.separator.comma.nim"}]},{"begin":"(^\\\\s*)?(?=asm \\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"(asm) (\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"source.asm","end":"(\\")\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"source.asm"}},"name":"meta.embedded.block.asm","patterns":[{"begin":"\`","end":"\`","name":"keyword.operator.nim"},{"include":"source.asm"}]}]},{"captures":{"1":{"name":"storage.type.function.nim"},"2":{"name":"keyword.operator.nim"}},"match":"(tmpl(i)?)(?=( (html|xml|js|css|glsl|md))?\\"\\"\\")"},{"begin":"(^\\\\s*)?(?=html\\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"(html)(\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"text.html","end":"(\\")\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"text.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"(?<!\\\\$)(\\\\$)\\\\(","captures":{"1":{"name":"keyword.operator.nim"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)\\\\{","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"}","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"([\\\\n{])","endCaptures":{"1":{"name":"plain"}},"patterns":[{"include":"source.nim"}]},{"match":"(?<!\\\\$)(\\\\$\\\\w+)","name":"keyword.operator.nim"},{"include":"text.html.basic"}]}]},{"begin":"(^\\\\s*)?(?=xml\\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"(xml)(\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"text.xml","end":"(\\")\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"text.xml"}},"name":"meta.embedded.block.xml","patterns":[{"begin":"(?<!\\\\$)(\\\\$)\\\\(","captures":{"1":{"name":"keyword.operator.nim"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)\\\\{","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"}","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"([\\\\n{])","endCaptures":{"1":{"name":"plain"}},"patterns":[{"include":"source.nim"}]},{"match":"(?<!\\\\$)(\\\\$\\\\w+)","name":"keyword.operator.nim"},{"include":"text.xml"}]}]},{"begin":"(^\\\\s*)?(?=js\\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"(js)(\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"source.js","end":"(\\")\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"source.js"}},"name":"meta.embedded.block.js","patterns":[{"begin":"(?<!\\\\$)(\\\\$)\\\\(","captures":{"1":{"name":"keyword.operator.nim"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)\\\\{","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"}","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"([\\\\n{])","endCaptures":{"1":{"name":"plain"}},"patterns":[{"include":"source.nim"}]},{"match":"(?<!\\\\$)(\\\\$\\\\w+)","name":"keyword.operator.nim"},{"include":"source.js"}]}]},{"begin":"(^\\\\s*)?(?=css\\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"(css)(\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"source.css","end":"(\\")\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"source.css"}},"name":"meta.embedded.block.css","patterns":[{"begin":"(?<!\\\\$)(\\\\$)\\\\(","captures":{"1":{"name":"keyword.operator.nim"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)\\\\{","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"}","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"([\\\\n{])","endCaptures":{"1":{"name":"plain"}},"patterns":[{"include":"source.nim"}]},{"match":"(?<!\\\\$)(\\\\$\\\\w+)","name":"keyword.operator.nim"},{"include":"source.css"}]}]},{"begin":"(^\\\\s*)?(?=glsl\\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"(glsl)(\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"source.glsl","end":"(\\")\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"source.glsl"}},"name":"meta.embedded.block.glsl","patterns":[{"begin":"(?<!\\\\$)(\\\\$)\\\\(","captures":{"1":{"name":"keyword.operator.nim"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)\\\\{","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"}","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"([\\\\n{])","endCaptures":{"1":{"name":"plain"}},"patterns":[{"include":"source.nim"}]},{"match":"(?<!\\\\$)(\\\\$\\\\w+)","name":"keyword.operator.nim"},{"include":"source.glsl"}]}]},{"begin":"(^\\\\s*)?(?=md\\"\\"\\")","beginCaptures":{"0":{"name":"punctuation.whitespace.embedded.leading.nim"}},"end":"(?!\\\\G)(\\\\s*$\\\\n?)?","endCaptures":{"0":{"name":"punctuation.whitespace.embedded.trailing.nim"}},"patterns":[{"begin":"(md)(\\"\\"\\")","captures":{"1":{"name":"keyword.other.nim"},"2":{"name":"punctuation.section.embedded.begin.nim"}},"contentName":"text.html.markdown","end":"(\\")\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nim"},"1":{"name":"text.html.markdown"}},"name":"meta.embedded.block.html.markdown","patterns":[{"begin":"(?<!\\\\$)(\\\\$)\\\\(","captures":{"1":{"name":"keyword.operator.nim"}},"end":"\\\\)","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)\\\\{","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"}","patterns":[{"include":"source.nim"}]},{"begin":"(?<!\\\\$)(\\\\$)(for|while|case|of|when|if|else|elif)( )","captures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"keyword.operator.nim"}},"end":"([\\\\n{])","endCaptures":{"1":{"name":"plain"}},"patterns":[{"include":"source.nim"}]},{"match":"(?<!\\\\$)(\\\\$\\\\w+)","name":"keyword.operator.nim"},{"include":"text.html.markdown"}]}]}],"repository":{"char_escapes":{"patterns":[{"match":"\\\\\\\\[CRcr]","name":"constant.character.escape.carriagereturn.nim"},{"match":"\\\\\\\\[LNln]","name":"constant.character.escape.linefeed.nim"},{"match":"\\\\\\\\[Ff]","name":"constant.character.escape.formfeed.nim"},{"match":"\\\\\\\\[Tt]","name":"constant.character.escape.tabulator.nim"},{"match":"\\\\\\\\[Vv]","name":"constant.character.escape.verticaltabulator.nim"},{"match":"\\\\\\\\\\"","name":"constant.character.escape.double-quote.nim"},{"match":"\\\\\\\\'","name":"constant.character.escape.single-quote.nim"},{"match":"\\\\\\\\[0-9]+","name":"constant.character.escape.chardecimalvalue.nim"},{"match":"\\\\\\\\[Aa]","name":"constant.character.escape.alert.nim"},{"match":"\\\\\\\\[Bb]","name":"constant.character.escape.backspace.nim"},{"match":"\\\\\\\\[Ee]","name":"constant.character.escape.escape.nim"},{"match":"\\\\\\\\[Xx]\\\\h\\\\h","name":"constant.character.escape.hex.nim"},{"match":"\\\\\\\\\\\\\\\\","name":"constant.character.escape.backslash.nim"}]},"extended_string_quoted_double_raw":{"begin":"\\\\b(\\\\w+)(\\")","beginCaptures":{"1":{"name":"support.function.any-method.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.double.raw.nim","patterns":[{"include":"#raw_string_escapes"}]},"extended_string_quoted_triple_raw":{"begin":"\\\\b(\\\\w+)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.any-method.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.triple.raw.nim"},"float_literal":{"patterns":[{"match":"\\\\b\\\\d[_\\\\d]*((\\\\.\\\\d[_\\\\d]*([Ee][-+]?\\\\d[_\\\\d]*)?)|([Ee][-+]?\\\\d[_\\\\d]*))('([Ff](32|64|128)|[DFdf]))?","name":"constant.numeric.float.decimal.nim"},{"match":"\\\\b0[Xx]\\\\h[_\\\\h]*'([Ff](32|64|128)|[DFdf])","name":"constant.numeric.float.hexadecimal.nim"},{"match":"\\\\b0o[0-7][0-7_]*'([Ff](32|64|128)|[DFdf])","name":"constant.numeric.float.octal.nim"},{"match":"\\\\b0([Bb])[01][01_]*'([Ff](32|64|128)|[DFdf])","name":"constant.numeric.float.binary.nim"},{"match":"\\\\b(\\\\d[_\\\\d]*)'([Ff](32|64|128)|[DFdf])","name":"constant.numeric.float.decimal.nim"}]},"fmt_interpolation":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.nim"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.nim"}},"name":"meta.template.expression.nim","patterns":[{"begin":":","end":"(?=})","name":"meta.template.format-specifier.nim"},{"include":"source.nim"}]},"fmt_string":{"begin":"\\\\b(fmt)(\\")","beginCaptures":{"1":{"name":"support.function.any-method.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.double.raw.nim","patterns":[{"match":"(?<!\\")\\"(?!\\")","name":"invalid.illegal.nim"},{"include":"#raw_string_escapes"},{"include":"#fmt_interpolation"}]},"fmt_string_call":{"begin":"(fmt)\\\\((?=\\")","beginCaptures":{"1":{"name":"support.function.any-method.nim"}},"end":"\\\\)","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"(?=\\\\))","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.double.nim","patterns":[{"match":"\\"","name":"invalid.illegal.nim"},{"include":"#string_escapes"},{"include":"#fmt_interpolation"}]}]},"fmt_string_operator":{"begin":"(&)(\\")","beginCaptures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.double.nim","patterns":[{"match":"\\"","name":"invalid.illegal.nim"},{"include":"#string_escapes"},{"include":"#fmt_interpolation"}]},"fmt_string_triple":{"begin":"\\\\b(fmt)(\\"\\"\\")","beginCaptures":{"1":{"name":"support.function.any-method.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.triple.raw.nim","patterns":[{"include":"#fmt_interpolation"}]},"fmt_string_triple_operator":{"begin":"(&)(\\"\\"\\")","beginCaptures":{"1":{"name":"keyword.operator.nim"},"2":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.triple.raw.nim","patterns":[{"include":"#fmt_interpolation"}]},"integer_literal":{"patterns":[{"match":"\\\\b(0[Xx]\\\\h[_\\\\h]*)('(([IUiu](8|16|32|64))|[Uu]))?","name":"constant.numeric.integer.hexadecimal.nim"},{"match":"\\\\b(0o[0-7][0-7_]*)('(([IUiu](8|16|32|64))|[Uu]))?","name":"constant.numeric.integer.octal.nim"},{"match":"\\\\b(0([Bb])[01][01_]*)('(([IUiu](8|16|32|64))|[Uu]))?","name":"constant.numeric.integer.binary.nim"},{"match":"\\\\b(\\\\d[_\\\\d]*)('(([IUiu](8|16|32|64))|[Uu]))?","name":"constant.numeric.integer.decimal.nim"}]},"multilinecomment":{"begin":"#\\\\[","end":"]#","patterns":[{"include":"#multilinecomment"}]},"multilinedoccomment":{"begin":"##\\\\[","end":"]##","patterns":[{"include":"#multilinedoccomment"}]},"raw_string_escapes":{"captures":{"1":{"name":"constant.character.escape.double-quote.nim"}},"match":"[^\\"](\\"\\")"},"string_escapes":{"patterns":[{"match":"\\\\\\\\[Pp]","name":"constant.character.escape.newline.nim"},{"match":"\\\\\\\\[Uu]\\\\h\\\\h\\\\h\\\\h","name":"constant.character.escape.hex.nim"},{"match":"\\\\\\\\[Uu]\\\\{\\\\h+}","name":"constant.character.escape.hex.nim"},{"include":"#char_escapes"}]},"string_literal":{"patterns":[{"include":"#fmt_string_triple"},{"include":"#fmt_string_triple_operator"},{"include":"#extended_string_quoted_triple_raw"},{"include":"#string_quoted_triple_raw"},{"include":"#fmt_string_operator"},{"include":"#fmt_string"},{"include":"#fmt_string_call"},{"include":"#string_quoted_double_raw"},{"include":"#extended_string_quoted_double_raw"},{"include":"#string_quoted_single"},{"include":"#string_quoted_triple"},{"include":"#string_quoted_double"}]},"string_quoted_double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.double.nim","patterns":[{"include":"#string_escapes"}]},"string_quoted_double_raw":{"begin":"\\\\br\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.double.raw.nim","patterns":[{"include":"#raw_string_escapes"}]},"string_quoted_single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.single.nim","patterns":[{"include":"#char_escapes"},{"match":"([^']{2,}?)","name":"invalid.illegal.character.nim"}]},"string_quoted_triple":{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.triple.nim"},"string_quoted_triple_raw":{"begin":"r\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nim"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nim"}},"name":"string.quoted.triple.raw.nim"}},"scopeName":"source.nim","embeddedLangs":["c","html","xml","javascript","css","glsl","markdown"]}`)),c=[...i,...t,...a,...e,...n,...m,...r,o];export{c as default}; diff --git a/docs/assets/nix-lanrq7Px.js b/docs/assets/nix-lanrq7Px.js new file mode 100644 index 0000000..4c9f711 --- /dev/null +++ b/docs/assets/nix-lanrq7Px.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Nix","fileTypes":["nix"],"name":"nix","patterns":[{"include":"#expression"}],"repository":{"attribute-bind":{"patterns":[{"include":"#attribute-name"},{"include":"#attribute-bind-from-equals"}]},"attribute-bind-from-equals":{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.bind.nix"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.bind.nix"}},"patterns":[{"include":"#expression"}]},"attribute-inherit":{"begin":"\\\\binherit\\\\b","beginCaptures":{"0":{"name":"keyword.other.inherit.nix"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.inherit.nix"}},"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.function.arguments.nix"}},"end":"(?=;)","patterns":[{"begin":"\\\\)","beginCaptures":{"0":{"name":"punctuation.section.function.arguments.nix"}},"end":"(?=;)","patterns":[{"include":"#bad-reserved"},{"include":"#attribute-name-single"},{"include":"#others"}]},{"include":"#expression"}]},{"begin":"(?=[A-Z_a-z])","end":"(?=;)","patterns":[{"include":"#bad-reserved"},{"include":"#attribute-name-single"},{"include":"#others"}]},{"include":"#others"}]},"attribute-name":{"patterns":[{"match":"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*","name":"entity.other.attribute-name.multipart.nix"},{"match":"\\\\."},{"include":"#string-quoted"},{"include":"#interpolation"}]},"attribute-name-single":{"match":"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*","name":"entity.other.attribute-name.single.nix"},"attrset-contents":{"patterns":[{"include":"#attribute-inherit"},{"include":"#bad-reserved"},{"include":"#attribute-bind"},{"include":"#others"}]},"attrset-definition":{"begin":"(?=\\\\{)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.attrset.nix"}},"end":"(})","endCaptures":{"0":{"name":"punctuation.definition.attrset.nix"}},"patterns":[{"include":"#attrset-contents"}]},{"begin":"(?<=})","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]}]},"attrset-definition-brace-opened":{"patterns":[{"begin":"(?<=})","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"(?=.?)","end":"}","endCaptures":{"0":{"name":"punctuation.definition.attrset.nix"}},"patterns":[{"include":"#attrset-contents"}]}]},"attrset-for-sure":{"patterns":[{"begin":"(?=\\\\brec\\\\b)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\brec\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=\\\\{)","patterns":[{"include":"#others"}]},{"include":"#attrset-definition"},{"include":"#others"}]},{"begin":"(?=\\\\{\\\\s*(}|[^,?]*([;=])))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attrset-definition"},{"include":"#others"}]}]},"attrset-or-function":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.attrset-or-function.nix"}},"end":"(?=([]);}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"(?=(\\\\s*}|\\"|\\\\binherit\\\\b|\\\\$\\\\{|\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*(\\\\s*\\\\.|\\\\s*=[^=])))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attrset-definition-brace-opened"}]},{"begin":"(?=(\\\\.\\\\.\\\\.|\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\\\\s*[,?]))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition-brace-opened"}]},{"include":"#bad-reserved"},{"begin":"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"variable.parameter.function.maybe.nix"}},"end":"(?=([]);}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"(?=\\\\.)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attrset-definition-brace-opened"}]},{"begin":"\\\\s*(,)","beginCaptures":{"1":{"name":"keyword.operator.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition-brace-opened"}]},{"begin":"(?==)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attribute-bind-from-equals"},{"include":"#attrset-definition-brace-opened"}]},{"begin":"(?=\\\\?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-parameter-default"},{"begin":",","beginCaptures":{"0":{"name":"keyword.operator.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition-brace-opened"}]}]},{"include":"#others"}]},{"include":"#others"}]},"bad-reserved":{"match":"(?<![-'\\\\w])(if|then|else|assert|with|let|in|rec|inherit)(?![-'\\\\w])","name":"invalid.illegal.reserved.nix"},"comment":{"patterns":[{"begin":"/\\\\*([^*]|\\\\*[^/])*","end":"\\\\*/","name":"comment.block.nix","patterns":[{"include":"#comment-remark"}]},{"begin":"#","end":"$","name":"comment.line.number-sign.nix","patterns":[{"include":"#comment-remark"}]}]},"comment-remark":{"captures":{"1":{"name":"markup.bold.comment.nix"}},"match":"(TODO|FIXME|BUG|!!!):?"},"constants":{"patterns":[{"begin":"\\\\b(builtins|true|false|null)\\\\b","beginCaptures":{"0":{"name":"constant.language.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"\\\\b(scopedImport|import|isNull|abort|throw|baseNameOf|dirOf|removeAttrs|map|toString|derivationStrict|derivation)\\\\b","beginCaptures":{"0":{"name":"support.function.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"\\\\b[0-9]+\\\\b","beginCaptures":{"0":{"name":"constant.numeric.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]}]},"expression":{"patterns":[{"include":"#parens-and-cont"},{"include":"#list-and-cont"},{"include":"#string"},{"include":"#interpolation"},{"include":"#with-assert"},{"include":"#function-for-sure"},{"include":"#attrset-for-sure"},{"include":"#attrset-or-function"},{"include":"#let"},{"include":"#if"},{"include":"#operator-unary"},{"include":"#constants"},{"include":"#bad-reserved"},{"include":"#parameter-name-and-cont"},{"include":"#others"}]},"expression-cont":{"begin":"(?=.?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#parens"},{"include":"#list"},{"include":"#string"},{"include":"#interpolation"},{"include":"#function-for-sure"},{"include":"#attrset-for-sure"},{"include":"#attrset-or-function"},{"match":"(\\\\bor\\\\b|\\\\.|\\\\|>|<\\\\||==|!=?|<=?|>=?|&&|\\\\|\\\\||->|//|\\\\?|\\\\+\\\\+|[-*]|/(?=([^*]|$))|\\\\+)","name":"keyword.operator.nix"},{"include":"#constants"},{"include":"#bad-reserved"},{"include":"#parameter-name"},{"include":"#others"}]},"function-body":{"begin":"(@\\\\s*([A-Z_a-z][-'0-9A-Z_a-z]*)\\\\s*)?(:)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression"}]},"function-body-from-colon":{"begin":"(:)","beginCaptures":{"0":{"name":"punctuation.definition.function.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression"}]},"function-contents":{"patterns":[{"include":"#bad-reserved"},{"include":"#function-parameter"},{"include":"#others"}]},"function-definition":{"begin":"(?=.?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-body-from-colon"},{"begin":"(?=.?)","end":"(?=:)","patterns":[{"begin":"\\\\b([A-Z_a-z][-'0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.parameter.function.4.nix"}},"end":"(?=:)","patterns":[{"begin":"@","end":"(?=:)","patterns":[{"include":"#function-header-until-colon-no-arg"},{"include":"#others"}]},{"include":"#others"}]},{"begin":"(?=\\\\{)","end":"(?=:)","patterns":[{"include":"#function-header-until-colon-with-arg"}]}]},{"include":"#others"}]},"function-definition-brace-opened":{"begin":"(?=.?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-body-from-colon"},{"begin":"(?=.?)","end":"(?=:)","patterns":[{"include":"#function-header-close-brace-with-arg"},{"begin":"(?=.?)","end":"(?=})","patterns":[{"include":"#function-contents"}]}]},{"include":"#others"}]},"function-for-sure":{"patterns":[{"begin":"(?=(\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*\\\\s*[:@]|\\\\{[^}]*}\\\\s*:|\\\\{[^\\"#'/=}]*[,?]))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition"}]}]},"function-header-close-brace-no-arg":{"begin":"}","beginCaptures":{"0":{"name":"punctuation.definition.entity.function.nix"}},"end":"(?=:)","patterns":[{"include":"#others"}]},"function-header-close-brace-with-arg":{"begin":"}","beginCaptures":{"0":{"name":"punctuation.definition.entity.function.nix"}},"end":"(?=:)","patterns":[{"include":"#function-header-terminal-arg"},{"include":"#others"}]},"function-header-open-brace":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.entity.function.2.nix"}},"end":"(?=})","patterns":[{"include":"#function-contents"}]},"function-header-terminal-arg":{"begin":"(?=@)","end":"(?=:)","patterns":[{"begin":"@","end":"(?=:)","patterns":[{"begin":"\\\\b([A-Z_a-z][-'0-9A-Z_a-z]*)","end":"(?=:)","name":"variable.parameter.function.3.nix"},{"include":"#others"}]},{"include":"#others"}]},"function-header-until-colon-no-arg":{"begin":"(?=\\\\{)","end":"(?=:)","patterns":[{"include":"#function-header-open-brace"},{"include":"#function-header-close-brace-no-arg"}]},"function-header-until-colon-with-arg":{"begin":"(?=\\\\{)","end":"(?=:)","patterns":[{"include":"#function-header-open-brace"},{"include":"#function-header-close-brace-with-arg"}]},"function-parameter":{"patterns":[{"begin":"(\\\\.\\\\.\\\\.)","end":"(,|(?=}))","name":"keyword.operator.nix","patterns":[{"include":"#others"}]},{"begin":"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"variable.parameter.function.1.nix"}},"end":"(,|(?=}))","endCaptures":{"0":{"name":"keyword.operator.nix"}},"patterns":[{"include":"#whitespace"},{"include":"#comment"},{"include":"#function-parameter-default"},{"include":"#expression"}]},{"include":"#others"}]},"function-parameter-default":{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.nix"}},"end":"(?=[,}])","patterns":[{"include":"#expression"}]},"if":{"begin":"(?=\\\\bif\\\\b)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\bif\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"\\\\bth(?=en\\\\b)","endCaptures":{"0":{"name":"keyword.other.nix"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=th)en\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"\\\\bel(?=se\\\\b)","endCaptures":{"0":{"name":"keyword.other.nix"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=el)se\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","endCaptures":{"0":{"name":"keyword.other.nix"}},"patterns":[{"include":"#expression"}]}]},"illegal":{"match":".","name":"invalid.illegal"},"interpolation":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nix"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nix"}},"name":"meta.embedded","patterns":[{"include":"#expression"}]},"let":{"begin":"(?=\\\\blet\\\\b)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\blet\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=([]),;}]|\\\\b(in|else|then)\\\\b))","patterns":[{"begin":"(?=\\\\{)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\{","end":"}","patterns":[{"include":"#attrset-contents"}]},{"begin":"(^|(?<=}))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"include":"#others"}]},{"include":"#attrset-contents"},{"include":"#others"}]},{"begin":"\\\\bin\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.nix"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.nix"}},"patterns":[{"include":"#expression"}]},"list-and-cont":{"begin":"(?=\\\\[)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#list"},{"include":"#expression-cont"}]},"operator-unary":{"match":"([-!])","name":"keyword.operator.unary.nix"},"others":{"patterns":[{"include":"#whitespace"},{"include":"#comment"},{"include":"#illegal"}]},"parameter-name":{"captures":{"0":{"name":"variable.parameter.name.nix"}},"match":"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*"},"parameter-name-and-cont":{"begin":"\\\\b[A-Z_a-z][-'0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"variable.parameter.name.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.expression.nix"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.expression.nix"}},"patterns":[{"include":"#expression"}]},"parens-and-cont":{"begin":"(?=\\\\()","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#parens"},{"include":"#expression-cont"}]},"string":{"patterns":[{"begin":"(?='')","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"''","beginCaptures":{"0":{"name":"punctuation.definition.string.other.start.nix"}},"end":"''(?![$']|\\\\\\\\.)","endCaptures":{"0":{"name":"punctuation.definition.string.other.end.nix"}},"name":"string.quoted.other.nix","patterns":[{"match":"''([$']|\\\\\\\\.)","name":"constant.character.escape.nix"},{"include":"#interpolation"}]},{"include":"#expression-cont"}]},{"begin":"(?=\\")","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#string-quoted"},{"include":"#expression-cont"}]},{"begin":"(~?[-+.0-9A-Z_a-z]*(/[-+.0-9A-Z_a-z]+)+)","beginCaptures":{"0":{"name":"string.unquoted.path.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"(<[-+.0-9A-Z_a-z]+(/[-+.0-9A-Z_a-z]+)*>)","beginCaptures":{"0":{"name":"string.unquoted.spath.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"([A-Za-z][-+.0-9A-Za-z]*:[!$-'*-:=?-Z_a-z~]+)","beginCaptures":{"0":{"name":"string.unquoted.url.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]}]},"string-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.double.start.nix"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.double.end.nix"}},"name":"string.quoted.double.nix","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.nix"},{"include":"#interpolation"}]},"whitespace":{"match":"\\\\s+"},"with-assert":{"begin":"(?<![-'\\\\w])(with|assert)(?![-'\\\\w])","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":";","patterns":[{"include":"#expression"}]}},"scopeName":"source.nix"}`))];export{e as default}; diff --git a/docs/assets/node-sql-parser-CmARB4ap.js b/docs/assets/node-sql-parser-CmARB4ap.js new file mode 100644 index 0000000..d79a7e2 --- /dev/null +++ b/docs/assets/node-sql-parser-CmARB4ap.js @@ -0,0 +1,68 @@ +import{t as cL}from"./chunk-LvLJmgfZ.js";var bL=cL(((Zd,Kc)=>{var pl=(function(Cu){var To=1e7,go=7,t=9007199254740992,Ce=ou(t),Ie="0123456789abcdefghijklmnopqrstuvwxyz",r=typeof BigInt=="function";function po(zn,Ss,te,ce){return zn===void 0?po[0]:Ss===void 0||+Ss==10&&!te?$u(zn):Pb(zn,Ss,te,ce)}function ge(zn,Ss){this.value=zn,this.sign=Ss,this.isSmall=!1}ge.prototype=Object.create(po.prototype);function Dn(zn){this.value=zn,this.sign=zn<0,this.isSmall=!0}Dn.prototype=Object.create(po.prototype);function Pn(zn){this.value=zn}Pn.prototype=Object.create(po.prototype);function Ae(zn){return-t<zn&&zn<t}function ou(zn){return zn<1e7?[zn]:zn<1e14?[zn%1e7,Math.floor(zn/1e7)]:[zn%1e7,Math.floor(zn/1e7)%1e7,Math.floor(zn/1e14)]}function Hs(zn){Uo(zn);var Ss=zn.length;if(Ss<4&&jl(zn,Ce)<0)switch(Ss){case 0:return 0;case 1:return zn[0];case 2:return zn[0]+zn[1]*To;default:return zn[0]+(zn[1]+zn[2]*To)*To}return zn}function Uo(zn){for(var Ss=zn.length;zn[--Ss]===0;);zn.length=Ss+1}function Ps(zn){for(var Ss=Array(zn),te=-1;++te<zn;)Ss[te]=0;return Ss}function pe(zn){return zn>0?Math.floor(zn):Math.ceil(zn)}function _o(zn,Ss){var te=zn.length,ce=Ss.length,He=Array(te),Ue=0,Qe=To,uo,Ao;for(Ao=0;Ao<ce;Ao++)uo=zn[Ao]+Ss[Ao]+Ue,Ue=uo>=Qe?1:0,He[Ao]=uo-Ue*Qe;for(;Ao<te;)uo=zn[Ao]+Ue,Ue=uo===Qe?1:0,He[Ao++]=uo-Ue*Qe;return Ue>0&&He.push(Ue),He}function Gi(zn,Ss){return zn.length>=Ss.length?_o(zn,Ss):_o(Ss,zn)}function mi(zn,Ss){var te=zn.length,ce=Array(te),He=To,Ue,Qe;for(Qe=0;Qe<te;Qe++)Ue=zn[Qe]-He+Ss,Ss=Math.floor(Ue/He),ce[Qe]=Ue-Ss*He,Ss+=1;for(;Ss>0;)ce[Qe++]=Ss%He,Ss=Math.floor(Ss/He);return ce}ge.prototype.add=function(zn){var Ss=$u(zn);if(this.sign!==Ss.sign)return this.subtract(Ss.negate());var te=this.value,ce=Ss.value;return Ss.isSmall?new ge(mi(te,Math.abs(ce)),this.sign):new ge(Gi(te,ce),this.sign)},ge.prototype.plus=ge.prototype.add,Dn.prototype.add=function(zn){var Ss=$u(zn),te=this.value;if(te<0!==Ss.sign)return this.subtract(Ss.negate());var ce=Ss.value;if(Ss.isSmall){if(Ae(te+ce))return new Dn(te+ce);ce=ou(Math.abs(ce))}return new ge(mi(ce,Math.abs(te)),te<0)},Dn.prototype.plus=Dn.prototype.add,Pn.prototype.add=function(zn){return new Pn(this.value+$u(zn).value)},Pn.prototype.plus=Pn.prototype.add;function Fi(zn,Ss){var te=zn.length,ce=Ss.length,He=Array(te),Ue=0,Qe=To,uo,Ao;for(uo=0;uo<ce;uo++)Ao=zn[uo]-Ue-Ss[uo],Ao<0?(Ao+=Qe,Ue=1):Ue=0,He[uo]=Ao;for(uo=ce;uo<te;uo++){if(Ao=zn[uo]-Ue,Ao<0)Ao+=Qe;else{He[uo++]=Ao;break}He[uo]=Ao}for(;uo<te;uo++)He[uo]=zn[uo];return Uo(He),He}function T0(zn,Ss,te){var ce;return jl(zn,Ss)>=0?ce=Fi(zn,Ss):(ce=Fi(Ss,zn),te=!te),ce=Hs(ce),typeof ce=="number"?(te&&(ce=-ce),new Dn(ce)):new ge(ce,te)}function dl(zn,Ss,te){var ce=zn.length,He=Array(ce),Ue=-Ss,Qe=To,uo,Ao;for(uo=0;uo<ce;uo++)Ao=zn[uo]+Ue,Ue=Math.floor(Ao/Qe),Ao%=Qe,He[uo]=Ao<0?Ao+Qe:Ao;return He=Hs(He),typeof He=="number"?(te&&(He=-He),new Dn(He)):new ge(He,te)}ge.prototype.subtract=function(zn){var Ss=$u(zn);if(this.sign!==Ss.sign)return this.add(Ss.negate());var te=this.value,ce=Ss.value;return Ss.isSmall?dl(te,Math.abs(ce),this.sign):T0(te,ce,this.sign)},ge.prototype.minus=ge.prototype.subtract,Dn.prototype.subtract=function(zn){var Ss=$u(zn),te=this.value;if(te<0!==Ss.sign)return this.add(Ss.negate());var ce=Ss.value;return Ss.isSmall?new Dn(te-ce):dl(ce,Math.abs(te),te>=0)},Dn.prototype.minus=Dn.prototype.subtract,Pn.prototype.subtract=function(zn){return new Pn(this.value-$u(zn).value)},Pn.prototype.minus=Pn.prototype.subtract,ge.prototype.negate=function(){return new ge(this.value,!this.sign)},Dn.prototype.negate=function(){var zn=this.sign,Ss=new Dn(-this.value);return Ss.sign=!zn,Ss},Pn.prototype.negate=function(){return new Pn(-this.value)},ge.prototype.abs=function(){return new ge(this.value,!1)},Dn.prototype.abs=function(){return new Dn(Math.abs(this.value))},Pn.prototype.abs=function(){return new Pn(this.value>=0?this.value:-this.value)};function Gl(zn,Ss){var te=zn.length,ce=Ss.length,He=Ps(te+ce),Ue=To,Qe,uo,Ao,Pu,Ca;for(Ao=0;Ao<te;++Ao){Pu=zn[Ao];for(var ku=0;ku<ce;++ku)Ca=Ss[ku],Qe=Pu*Ca+He[Ao+ku],uo=Math.floor(Qe/Ue),He[Ao+ku]=Qe-uo*Ue,He[Ao+ku+1]+=uo}return Uo(He),He}function Fl(zn,Ss){var te=zn.length,ce=Array(te),He=To,Ue=0,Qe,uo;for(uo=0;uo<te;uo++)Qe=zn[uo]*Ss+Ue,Ue=Math.floor(Qe/He),ce[uo]=Qe-Ue*He;for(;Ue>0;)ce[uo++]=Ue%He,Ue=Math.floor(Ue/He);return ce}function nc(zn,Ss){for(var te=[];Ss-- >0;)te.push(0);return te.concat(zn)}function xc(zn,Ss){var te=Math.max(zn.length,Ss.length);if(te<=30)return Gl(zn,Ss);te=Math.ceil(te/2);var ce=zn.slice(te),He=zn.slice(0,te),Ue=Ss.slice(te),Qe=Ss.slice(0,te),uo=xc(He,Qe),Ao=xc(ce,Ue),Pu=Gi(Gi(uo,nc(Fi(Fi(xc(Gi(He,ce),Gi(Qe,Ue)),uo),Ao),te)),nc(Ao,2*te));return Uo(Pu),Pu}function I0(zn,Ss){return-.012*zn-.012*Ss+15e-6*zn*Ss>0}ge.prototype.multiply=function(zn){var Ss=$u(zn),te=this.value,ce=Ss.value,He=this.sign!==Ss.sign,Ue;if(Ss.isSmall){if(ce===0)return po[0];if(ce===1)return this;if(ce===-1)return this.negate();if(Ue=Math.abs(ce),Ue<To)return new ge(Fl(te,Ue),He);ce=ou(Ue)}return I0(te.length,ce.length)?new ge(xc(te,ce),He):new ge(Gl(te,ce),He)},ge.prototype.times=ge.prototype.multiply;function ji(zn,Ss,te){return zn<To?new ge(Fl(Ss,zn),te):new ge(Gl(Ss,ou(zn)),te)}Dn.prototype._multiplyBySmall=function(zn){return Ae(zn.value*this.value)?new Dn(zn.value*this.value):ji(Math.abs(zn.value),ou(Math.abs(this.value)),this.sign!==zn.sign)},ge.prototype._multiplyBySmall=function(zn){return zn.value===0?po[0]:zn.value===1?this:zn.value===-1?this.negate():ji(Math.abs(zn.value),this.value,this.sign!==zn.sign)},Dn.prototype.multiply=function(zn){return $u(zn)._multiplyBySmall(this)},Dn.prototype.times=Dn.prototype.multiply,Pn.prototype.multiply=function(zn){return new Pn(this.value*$u(zn).value)},Pn.prototype.times=Pn.prototype.multiply;function af(zn){var Ss=zn.length,te=Ps(Ss+Ss),ce=To,He,Ue,Qe,uo,Ao;for(Qe=0;Qe<Ss;Qe++){uo=zn[Qe],Ue=0-uo*uo;for(var Pu=Qe;Pu<Ss;Pu++)Ao=zn[Pu],He=uo*Ao*2+te[Qe+Pu]+Ue,Ue=Math.floor(He/ce),te[Qe+Pu]=He-Ue*ce;te[Qe+Ss]=Ue}return Uo(te),te}ge.prototype.square=function(){return new ge(af(this.value),!1)},Dn.prototype.square=function(){var zn=this.value*this.value;return Ae(zn)?new Dn(zn):new ge(af(ou(Math.abs(this.value))),!1)},Pn.prototype.square=function(zn){return new Pn(this.value*this.value)};function qf(zn,Ss){var te=zn.length,ce=Ss.length,He=To,Ue=Ps(Ss.length),Qe=Ss[ce-1],uo=Math.ceil(He/(2*Qe)),Ao=Fl(zn,uo),Pu=Fl(Ss,uo),Ca,ku,ca,na,Qa,cf,ri;for(Ao.length<=te&&Ao.push(0),Pu.push(0),Qe=Pu[ce-1],ku=te-ce;ku>=0;ku--){for(Ca=He-1,Ao[ku+ce]!==Qe&&(Ca=Math.floor((Ao[ku+ce]*He+Ao[ku+ce-1])/Qe)),ca=0,na=0,cf=Pu.length,Qa=0;Qa<cf;Qa++)ca+=Ca*Pu[Qa],ri=Math.floor(ca/He),na+=Ao[ku+Qa]-(ca-ri*He),ca=ri,na<0?(Ao[ku+Qa]=na+He,na=-1):(Ao[ku+Qa]=na,na=0);for(;na!==0;){for(--Ca,ca=0,Qa=0;Qa<cf;Qa++)ca+=Ao[ku+Qa]-He+Pu[Qa],ca<0?(Ao[ku+Qa]=ca+He,ca=0):(Ao[ku+Qa]=ca,ca=1);na+=ca}Ue[ku]=Ca}return Ao=wc(Ao,uo)[0],[Hs(Ue),Hs(Ao)]}function Uc(zn,Ss){for(var te=zn.length,ce=Ss.length,He=[],Ue=[],Qe=To,uo,Ao,Pu,Ca,ku;te;){if(Ue.unshift(zn[--te]),Uo(Ue),jl(Ue,Ss)<0){He.push(0);continue}Ao=Ue.length,Pu=Ue[Ao-1]*Qe+Ue[Ao-2],Ca=Ss[ce-1]*Qe+Ss[ce-2],Ao>ce&&(Pu=(Pu+1)*Qe),uo=Math.ceil(Pu/Ca);do{if(ku=Fl(Ss,uo),jl(ku,Ue)<=0)break;uo--}while(uo);He.push(uo),Ue=Fi(Ue,ku)}return He.reverse(),[Hs(He),Hs(Ue)]}function wc(zn,Ss){var te=zn.length,ce=Ps(te),He=To,Ue,Qe,uo=0,Ao;for(Ue=te-1;Ue>=0;--Ue)Ao=uo*He+zn[Ue],Qe=pe(Ao/Ss),uo=Ao-Qe*Ss,ce[Ue]=Qe|0;return[ce,uo|0]}function Ll(zn,Ss){var te,ce=$u(Ss);if(r)return[new Pn(zn.value/ce.value),new Pn(zn.value%ce.value)];var He=zn.value,Ue=ce.value,Qe;if(Ue===0)throw Error("Cannot divide by zero");if(zn.isSmall)return ce.isSmall?[new Dn(pe(He/Ue)),new Dn(He%Ue)]:[po[0],zn];if(ce.isSmall){if(Ue===1)return[zn,po[0]];if(Ue==-1)return[zn.negate(),po[0]];var uo=Math.abs(Ue);if(uo<To){te=wc(He,uo),Qe=Hs(te[0]);var Ao=te[1];return zn.sign&&(Ao=-Ao),typeof Qe=="number"?(zn.sign!==ce.sign&&(Qe=-Qe),[new Dn(Qe),new Dn(Ao)]):[new ge(Qe,zn.sign!==ce.sign),new Dn(Ao)]}Ue=ou(uo)}var Pu=jl(He,Ue);if(Pu===-1)return[po[0],zn];if(Pu===0)return[po[zn.sign===ce.sign?1:-1],po[0]];te=He.length+Ue.length<=200?qf(He,Ue):Uc(He,Ue),Qe=te[0];var Ca=zn.sign!==ce.sign,ku=te[1],ca=zn.sign;return typeof Qe=="number"?(Ca&&(Qe=-Qe),Qe=new Dn(Qe)):Qe=new ge(Qe,Ca),typeof ku=="number"?(ca&&(ku=-ku),ku=new Dn(ku)):ku=new ge(ku,ca),[Qe,ku]}ge.prototype.divmod=function(zn){var Ss=Ll(this,zn);return{quotient:Ss[0],remainder:Ss[1]}},Pn.prototype.divmod=Dn.prototype.divmod=ge.prototype.divmod,ge.prototype.divide=function(zn){return Ll(this,zn)[0]},Pn.prototype.over=Pn.prototype.divide=function(zn){return new Pn(this.value/$u(zn).value)},Dn.prototype.over=Dn.prototype.divide=ge.prototype.over=ge.prototype.divide,ge.prototype.mod=function(zn){return Ll(this,zn)[1]},Pn.prototype.mod=Pn.prototype.remainder=function(zn){return new Pn(this.value%$u(zn).value)},Dn.prototype.remainder=Dn.prototype.mod=ge.prototype.remainder=ge.prototype.mod,ge.prototype.pow=function(zn){var Ss=$u(zn),te=this.value,ce=Ss.value,He,Ue,Qe;if(ce===0)return po[1];if(te===0)return po[0];if(te===1)return po[1];if(te===-1)return Ss.isEven()?po[1]:po[-1];if(Ss.sign)return po[0];if(!Ss.isSmall)throw Error("The exponent "+Ss.toString()+" is too large.");if(this.isSmall&&Ae(He=te**+ce))return new Dn(pe(He));for(Ue=this,Qe=po[1];ce&!0&&(Qe=Qe.times(Ue),--ce),ce!==0;)ce/=2,Ue=Ue.square();return Qe},Dn.prototype.pow=ge.prototype.pow,Pn.prototype.pow=function(zn){var Ss=$u(zn),te=this.value,ce=Ss.value,He=BigInt(0),Ue=BigInt(1),Qe=BigInt(2);if(ce===He)return po[1];if(te===He)return po[0];if(te===Ue)return po[1];if(te===BigInt(-1))return Ss.isEven()?po[1]:po[-1];if(Ss.isNegative())return new Pn(He);for(var uo=this,Ao=po[1];(ce&Ue)===Ue&&(Ao=Ao.times(uo),--ce),ce!==He;)ce/=Qe,uo=uo.square();return Ao},ge.prototype.modPow=function(zn,Ss){if(zn=$u(zn),Ss=$u(Ss),Ss.isZero())throw Error("Cannot take modPow with modulus 0");var te=po[1],ce=this.mod(Ss);for(zn.isNegative()&&(zn=zn.multiply(po[-1]),ce=ce.modInv(Ss));zn.isPositive();){if(ce.isZero())return po[0];zn.isOdd()&&(te=te.multiply(ce).mod(Ss)),zn=zn.divide(2),ce=ce.square().mod(Ss)}return te},Pn.prototype.modPow=Dn.prototype.modPow=ge.prototype.modPow;function jl(zn,Ss){if(zn.length!==Ss.length)return zn.length>Ss.length?1:-1;for(var te=zn.length-1;te>=0;te--)if(zn[te]!==Ss[te])return zn[te]>Ss[te]?1:-1;return 0}ge.prototype.compareAbs=function(zn){var Ss=$u(zn),te=this.value,ce=Ss.value;return Ss.isSmall?1:jl(te,ce)},Dn.prototype.compareAbs=function(zn){var Ss=$u(zn),te=Math.abs(this.value),ce=Ss.value;return Ss.isSmall?(ce=Math.abs(ce),te===ce?0:te>ce?1:-1):-1},Pn.prototype.compareAbs=function(zn){var Ss=this.value,te=$u(zn).value;return Ss=Ss>=0?Ss:-Ss,te=te>=0?te:-te,Ss===te?0:Ss>te?1:-1},ge.prototype.compare=function(zn){if(zn===1/0)return-1;if(zn===-1/0)return 1;var Ss=$u(zn),te=this.value,ce=Ss.value;return this.sign===Ss.sign?Ss.isSmall?this.sign?-1:1:jl(te,ce)*(this.sign?-1:1):Ss.sign?1:-1},ge.prototype.compareTo=ge.prototype.compare,Dn.prototype.compare=function(zn){if(zn===1/0)return-1;if(zn===-1/0)return 1;var Ss=$u(zn),te=this.value,ce=Ss.value;return Ss.isSmall?te==ce?0:te>ce?1:-1:te<0===Ss.sign?te<0?1:-1:te<0?-1:1},Dn.prototype.compareTo=Dn.prototype.compare,Pn.prototype.compare=function(zn){if(zn===1/0)return-1;if(zn===-1/0)return 1;var Ss=this.value,te=$u(zn).value;return Ss===te?0:Ss>te?1:-1},Pn.prototype.compareTo=Pn.prototype.compare,ge.prototype.equals=function(zn){return this.compare(zn)===0},Pn.prototype.eq=Pn.prototype.equals=Dn.prototype.eq=Dn.prototype.equals=ge.prototype.eq=ge.prototype.equals,ge.prototype.notEquals=function(zn){return this.compare(zn)!==0},Pn.prototype.neq=Pn.prototype.notEquals=Dn.prototype.neq=Dn.prototype.notEquals=ge.prototype.neq=ge.prototype.notEquals,ge.prototype.greater=function(zn){return this.compare(zn)>0},Pn.prototype.gt=Pn.prototype.greater=Dn.prototype.gt=Dn.prototype.greater=ge.prototype.gt=ge.prototype.greater,ge.prototype.lesser=function(zn){return this.compare(zn)<0},Pn.prototype.lt=Pn.prototype.lesser=Dn.prototype.lt=Dn.prototype.lesser=ge.prototype.lt=ge.prototype.lesser,ge.prototype.greaterOrEquals=function(zn){return this.compare(zn)>=0},Pn.prototype.geq=Pn.prototype.greaterOrEquals=Dn.prototype.geq=Dn.prototype.greaterOrEquals=ge.prototype.geq=ge.prototype.greaterOrEquals,ge.prototype.lesserOrEquals=function(zn){return this.compare(zn)<=0},Pn.prototype.leq=Pn.prototype.lesserOrEquals=Dn.prototype.leq=Dn.prototype.lesserOrEquals=ge.prototype.leq=ge.prototype.lesserOrEquals,ge.prototype.isEven=function(){return(this.value[0]&1)==0},Dn.prototype.isEven=function(){return(this.value&1)==0},Pn.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},ge.prototype.isOdd=function(){return(this.value[0]&1)==1},Dn.prototype.isOdd=function(){return(this.value&1)==1},Pn.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},ge.prototype.isPositive=function(){return!this.sign},Dn.prototype.isPositive=function(){return this.value>0},Pn.prototype.isPositive=Dn.prototype.isPositive,ge.prototype.isNegative=function(){return this.sign},Dn.prototype.isNegative=function(){return this.value<0},Pn.prototype.isNegative=Dn.prototype.isNegative,ge.prototype.isUnit=function(){return!1},Dn.prototype.isUnit=function(){return Math.abs(this.value)===1},Pn.prototype.isUnit=function(){return this.abs().value===BigInt(1)},ge.prototype.isZero=function(){return!1},Dn.prototype.isZero=function(){return this.value===0},Pn.prototype.isZero=function(){return this.value===BigInt(0)},ge.prototype.isDivisibleBy=function(zn){var Ss=$u(zn);return Ss.isZero()?!1:Ss.isUnit()?!0:Ss.compareAbs(2)===0?this.isEven():this.mod(Ss).isZero()},Pn.prototype.isDivisibleBy=Dn.prototype.isDivisibleBy=ge.prototype.isDivisibleBy;function Oi(zn){var Ss=zn.abs();if(Ss.isUnit())return!1;if(Ss.equals(2)||Ss.equals(3)||Ss.equals(5))return!0;if(Ss.isEven()||Ss.isDivisibleBy(3)||Ss.isDivisibleBy(5))return!1;if(Ss.lesser(49))return!0}function bb(zn,Ss){for(var te=zn.prev(),ce=te,He=0,Ue,Qe,uo;ce.isEven();)ce=ce.divide(2),He++;r:for(Qe=0;Qe<Ss.length;Qe++)if(!zn.lesser(Ss[Qe])&&(uo=pl(Ss[Qe]).modPow(ce,zn),!(uo.isUnit()||uo.equals(te)))){for(Ue=He-1;Ue!=0;Ue--){if(uo=uo.square().mod(zn),uo.isUnit())return!1;if(uo.equals(te))continue r}return!1}return!0}ge.prototype.isPrime=function(zn){var Ss=Oi(this);if(Ss!==Cu)return Ss;var te=this.abs(),ce=te.bitLength();if(ce<=64)return bb(te,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var He=Math.log(2)*ce.toJSNumber(),Ue=Math.ceil(zn===!0?2*He**2:He),Qe=[],uo=0;uo<Ue;uo++)Qe.push(pl(uo+2));return bb(te,Qe)},Pn.prototype.isPrime=Dn.prototype.isPrime=ge.prototype.isPrime,ge.prototype.isProbablePrime=function(zn,Ss){var te=Oi(this);if(te!==Cu)return te;for(var ce=this.abs(),He=zn===Cu?5:zn,Ue=[],Qe=0;Qe<He;Qe++)Ue.push(pl.randBetween(2,ce.minus(2),Ss));return bb(ce,Ue)},Pn.prototype.isProbablePrime=Dn.prototype.isProbablePrime=ge.prototype.isProbablePrime,ge.prototype.modInv=function(zn){for(var Ss=pl.zero,te=pl.one,ce=$u(zn),He=this.abs(),Ue,Qe,uo;!He.isZero();)Ue=ce.divide(He),Qe=Ss,uo=ce,Ss=te,ce=He,te=Qe.subtract(Ue.multiply(te)),He=uo.subtract(Ue.multiply(He));if(!ce.isUnit())throw Error(this.toString()+" and "+zn.toString()+" are not co-prime");return Ss.compare(0)===-1&&(Ss=Ss.add(zn)),this.isNegative()?Ss.negate():Ss},Pn.prototype.modInv=Dn.prototype.modInv=ge.prototype.modInv,ge.prototype.next=function(){var zn=this.value;return this.sign?dl(zn,1,this.sign):new ge(mi(zn,1),this.sign)},Dn.prototype.next=function(){var zn=this.value;return zn+1<t?new Dn(zn+1):new ge(Ce,!1)},Pn.prototype.next=function(){return new Pn(this.value+BigInt(1))},ge.prototype.prev=function(){var zn=this.value;return this.sign?new ge(mi(zn,1),!0):dl(zn,1,this.sign)},Dn.prototype.prev=function(){var zn=this.value;return zn-1>-t?new Dn(zn-1):new ge(Ce,!0)},Pn.prototype.prev=function(){return new Pn(this.value-BigInt(1))};for(var Vi=[1];2*Vi[Vi.length-1]<=To;)Vi.push(2*Vi[Vi.length-1]);var zc=Vi.length,kc=Vi[zc-1];function vb(zn){return Math.abs(zn)<=To}ge.prototype.shiftLeft=function(zn){var Ss=$u(zn).toJSNumber();if(!vb(Ss))throw Error(String(Ss)+" is too large for shifting.");if(Ss<0)return this.shiftRight(-Ss);var te=this;if(te.isZero())return te;for(;Ss>=zc;)te=te.multiply(kc),Ss-=zc-1;return te.multiply(Vi[Ss])},Pn.prototype.shiftLeft=Dn.prototype.shiftLeft=ge.prototype.shiftLeft,ge.prototype.shiftRight=function(zn){var Ss,te=$u(zn).toJSNumber();if(!vb(te))throw Error(String(te)+" is too large for shifting.");if(te<0)return this.shiftLeft(-te);for(var ce=this;te>=zc;){if(ce.isZero()||ce.isNegative()&&ce.isUnit())return ce;Ss=Ll(ce,kc),ce=Ss[1].isNegative()?Ss[0].prev():Ss[0],te-=zc-1}return Ss=Ll(ce,Vi[te]),Ss[1].isNegative()?Ss[0].prev():Ss[0]},Pn.prototype.shiftRight=Dn.prototype.shiftRight=ge.prototype.shiftRight;function Zc(zn,Ss,te){Ss=$u(Ss);for(var ce=zn.isNegative(),He=Ss.isNegative(),Ue=ce?zn.not():zn,Qe=He?Ss.not():Ss,uo=0,Ao=0,Pu=null,Ca=null,ku=[];!Ue.isZero()||!Qe.isZero();)Pu=Ll(Ue,kc),uo=Pu[1].toJSNumber(),ce&&(uo=kc-1-uo),Ca=Ll(Qe,kc),Ao=Ca[1].toJSNumber(),He&&(Ao=kc-1-Ao),Ue=Pu[0],Qe=Ca[0],ku.push(te(uo,Ao));for(var ca=te(ce?1:0,He?1:0)===0?pl(0):pl(-1),na=ku.length-1;na>=0;--na)ca=ca.multiply(kc).add(pl(ku[na]));return ca}ge.prototype.not=function(){return this.negate().prev()},Pn.prototype.not=Dn.prototype.not=ge.prototype.not,ge.prototype.and=function(zn){return Zc(this,zn,function(Ss,te){return Ss&te})},Pn.prototype.and=Dn.prototype.and=ge.prototype.and,ge.prototype.or=function(zn){return Zc(this,zn,function(Ss,te){return Ss|te})},Pn.prototype.or=Dn.prototype.or=ge.prototype.or,ge.prototype.xor=function(zn){return Zc(this,zn,function(Ss,te){return Ss^te})},Pn.prototype.xor=Dn.prototype.xor=ge.prototype.xor;var nl=1<<30,Xf=(To&-To)*(To&-To)|nl;function gl(zn){var Ss=zn.value,te=typeof Ss=="number"?Ss|nl:typeof Ss=="bigint"?Ss|BigInt(nl):Ss[0]+Ss[1]*To|Xf;return te&-te}function lf(zn,Ss){if(Ss.compareTo(zn)<=0){var te=lf(zn,Ss.square(Ss)),ce=te.p,He=te.e,Ue=ce.multiply(Ss);return Ue.compareTo(zn)<=0?{p:Ue,e:He*2+1}:{p:ce,e:He*2}}return{p:pl(1),e:0}}ge.prototype.bitLength=function(){var zn=this;return zn.compareTo(pl(0))<0&&(zn=zn.negate().subtract(pl(1))),zn.compareTo(pl(0))===0?pl(0):pl(lf(zn,pl(2)).e).add(pl(1))},Pn.prototype.bitLength=Dn.prototype.bitLength=ge.prototype.bitLength;function Jc(zn,Ss){return zn=$u(zn),Ss=$u(Ss),zn.greater(Ss)?zn:Ss}function Qc(zn,Ss){return zn=$u(zn),Ss=$u(Ss),zn.lesser(Ss)?zn:Ss}function gv(zn,Ss){if(zn=$u(zn).abs(),Ss=$u(Ss).abs(),zn.equals(Ss))return zn;if(zn.isZero())return Ss;if(Ss.isZero())return zn;for(var te=po[1],ce,He;zn.isEven()&&Ss.isEven();)ce=Qc(gl(zn),gl(Ss)),zn=zn.divide(ce),Ss=Ss.divide(ce),te=te.multiply(ce);for(;zn.isEven();)zn=zn.divide(gl(zn));do{for(;Ss.isEven();)Ss=Ss.divide(gl(Ss));zn.greater(Ss)&&(He=Ss,Ss=zn,zn=He),Ss=Ss.subtract(zn)}while(!Ss.isZero());return te.isUnit()?zn:zn.multiply(te)}function g0(zn,Ss){return zn=$u(zn).abs(),Ss=$u(Ss).abs(),zn.divide(gv(zn,Ss)).multiply(Ss)}function Ki(zn,Ss,te){zn=$u(zn),Ss=$u(Ss);var ce=te||Math.random,He=Qc(zn,Ss),Ue=Jc(zn,Ss).subtract(He).add(1);if(Ue.isSmall)return He.add(Math.floor(ce()*Ue));for(var Qe=j0(Ue,To).value,uo=[],Ao=!0,Pu=0;Pu<Qe.length;Pu++){var Ca=Ao?Qe[Pu]+(Pu+1<Qe.length?Qe[Pu+1]/To:0):To,ku=pe(ce()*Ca);uo.push(ku),ku<Qe[Pu]&&(Ao=!1)}return He.add(po.fromArray(uo,To,!1))}var Pb=function(zn,Ss,te,ce){te||(te=Ie),zn=String(zn),ce||(zn=zn.toLowerCase(),te=te.toLowerCase());var He=zn.length,Ue,Qe=Math.abs(Ss),uo={};for(Ue=0;Ue<te.length;Ue++)uo[te[Ue]]=Ue;for(Ue=0;Ue<He;Ue++){var Ao=zn[Ue];if(Ao!=="-"&&Ao in uo&&uo[Ao]>=Qe){if(Ao==="1"&&Qe===1)continue;throw Error(Ao+" is not a valid digit in base "+Ss+".")}}Ss=$u(Ss);var Pu=[],Ca=zn[0]==="-";for(Ue=Ca?1:0;Ue<zn.length;Ue++){var Ao=zn[Ue];if(Ao in uo)Pu.push($u(uo[Ao]));else if(Ao==="<"){var ku=Ue;do Ue++;while(zn[Ue]!==">"&&Ue<zn.length);Pu.push($u(zn.slice(ku+1,Ue)))}else throw Error(Ao+" is not a valid character")}return ei(Pu,Ss,Ca)};function ei(zn,Ss,te){var ce=po[0],He=po[1],Ue;for(Ue=zn.length-1;Ue>=0;Ue--)ce=ce.add(zn[Ue].times(He)),He=He.times(Ss);return te?ce.negate():ce}function pb(zn,Ss){return Ss||(Ss=Ie),zn<Ss.length?Ss[zn]:"<"+zn+">"}function j0(zn,Ss){if(Ss=pl(Ss),Ss.isZero()){if(zn.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(Ss.equals(-1)){if(zn.isZero())return{value:[0],isNegative:!1};if(zn.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-zn.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var te=Array.apply(null,Array(zn.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return te.unshift([1]),{value:[].concat.apply([],te),isNegative:!1}}var ce=!1;if(zn.isNegative()&&Ss.isPositive()&&(ce=!0,zn=zn.abs()),Ss.isUnit())return zn.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(zn.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:ce};for(var He=[],Ue=zn,Qe;Ue.isNegative()||Ue.compareAbs(Ss)>=0;){Qe=Ue.divmod(Ss),Ue=Qe.quotient;var uo=Qe.remainder;uo.isNegative()&&(uo=Ss.minus(uo).abs(),Ue=Ue.next()),He.push(uo.toJSNumber())}return He.push(Ue.toJSNumber()),{value:He.reverse(),isNegative:ce}}function B0(zn,Ss,te){var ce=j0(zn,Ss);return(ce.isNegative?"-":"")+ce.value.map(function(He){return pb(He,te)}).join("")}ge.prototype.toArray=function(zn){return j0(this,zn)},Dn.prototype.toArray=function(zn){return j0(this,zn)},Pn.prototype.toArray=function(zn){return j0(this,zn)},ge.prototype.toString=function(zn,Ss){if(zn===Cu&&(zn=10),zn!==10||Ss)return B0(this,zn,Ss);for(var te=this.value,ce=te.length,He=String(te[--ce]),Ue="0000000",Qe;--ce>=0;)Qe=String(te[ce]),He+=Ue.slice(Qe.length)+Qe;return(this.sign?"-":"")+He},Dn.prototype.toString=function(zn,Ss){return zn===Cu&&(zn=10),zn!=10||Ss?B0(this,zn,Ss):String(this.value)},Pn.prototype.toString=Dn.prototype.toString,Pn.prototype.toJSON=ge.prototype.toJSON=Dn.prototype.toJSON=function(){return this.toString()},ge.prototype.valueOf=function(){return parseInt(this.toString(),10)},ge.prototype.toJSNumber=ge.prototype.valueOf,Dn.prototype.valueOf=function(){return this.value},Dn.prototype.toJSNumber=Dn.prototype.valueOf,Pn.prototype.valueOf=Pn.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function Mc(zn){if(Ae(+zn)){var Ss=+zn;if(Ss===pe(Ss))return r?new Pn(BigInt(Ss)):new Dn(Ss);throw Error("Invalid integer: "+zn)}var te=zn[0]==="-";te&&(zn=zn.slice(1));var ce=zn.split(/e/i);if(ce.length>2)throw Error("Invalid integer: "+ce.join("e"));if(ce.length===2){var He=ce[1];if(He[0]==="+"&&(He=He.slice(1)),He=+He,He!==pe(He)||!Ae(He))throw Error("Invalid integer: "+He+" is not a valid exponent.");var Ue=ce[0],Qe=Ue.indexOf(".");if(Qe>=0&&(He-=Ue.length-Qe-1,Ue=Ue.slice(0,Qe)+Ue.slice(Qe+1)),He<0)throw Error("Cannot include negative exponent part for integers");Ue+=Array(He+1).join("0"),zn=Ue}if(!/^([0-9][0-9]*)$/.test(zn))throw Error("Invalid integer: "+zn);if(r)return new Pn(BigInt(te?"-"+zn:zn));for(var uo=[],Ao=zn.length,Pu=go,Ca=Ao-Pu;Ao>0;)uo.push(+zn.slice(Ca,Ao)),Ca-=Pu,Ca<0&&(Ca=0),Ao-=Pu;return Uo(uo),new ge(uo,te)}function Cl(zn){if(r)return new Pn(BigInt(zn));if(Ae(zn)){if(zn!==pe(zn))throw Error(zn+" is not an integer.");return new Dn(zn)}return Mc(zn.toString())}function $u(zn){return typeof zn=="number"?Cl(zn):typeof zn=="string"?Mc(zn):typeof zn=="bigint"?new Pn(zn):zn}for(var r0=0;r0<1e3;r0++)po[r0]=$u(r0),r0>0&&(po[-r0]=$u(-r0));return po.one=po[1],po.zero=po[0],po.minusOne=po[-1],po.max=Jc,po.min=Qc,po.gcd=gv,po.lcm=g0,po.isInstance=function(zn){return zn instanceof ge||zn instanceof Dn||zn instanceof Pn},po.randBetween=Ki,po.fromArray=function(zn,Ss,te){return ei(zn.map($u),$u(Ss||10),te)},po})();Kc!==void 0&&Kc.hasOwnProperty("exports")&&(Kc.exports=pl),typeof define=="function"&&define.amd&&define(function(){return pl})})),vL=cL((Zd=>{(function(Kc,pl){for(var Cu in pl)Kc[Cu]=pl[Cu]})(Zd,(function(Kc){var pl={};function Cu(To){if(pl[To])return pl[To].exports;var go=pl[To]={i:To,l:!1,exports:{}};return Kc[To].call(go.exports,go,go.exports,Cu),go.l=!0,go.exports}return Cu.m=Kc,Cu.c=pl,Cu.d=function(To,go,t){Cu.o(To,go)||Object.defineProperty(To,go,{enumerable:!0,get:t})},Cu.r=function(To){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(To,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(To,"__esModule",{value:!0})},Cu.t=function(To,go){if(1&go&&(To=Cu(To)),8&go||4&go&&typeof To=="object"&&To&&To.__esModule)return To;var t=Object.create(null);if(Cu.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:To}),2&go&&typeof To!="string")for(var Ce in To)Cu.d(t,Ce,(function(Ie){return To[Ie]}).bind(null,Ce));return t},Cu.n=function(To){var go=To&&To.__esModule?function(){return To.default}:function(){return To};return Cu.d(go,"a",go),go},Cu.o=function(To,go){return Object.prototype.hasOwnProperty.call(To,go)},Cu.p="",Cu(Cu.s=15)})([function(Kc,pl){Kc.exports=bL()},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:Ti},ge=Ti,Dn=function(j,ur){return Ni(j,ur,1)},Pn=$s("IF",!0),Ae=function(j,ur){return Ni(j,ur)},ou=$s("AUTO_INCREMENT",!0),Hs=$s("UNIQUE",!0),Uo=$s("KEY",!0),Ps=$s("PRIMARY",!0),pe=$s("COLUMN_FORMAT",!0),_o=$s("FIXED",!0),Gi=$s("DYNAMIC",!0),mi=$s("DEFAULT",!0),Fi=$s("STORAGE",!0),T0=$s("DISK",!0),dl=$s("MEMORY",!0),Gl=$s("ALGORITHM",!0),Fl=$s("INSTANT",!0),nc=$s("INPLACE",!0),xc=$s("COPY",!0),I0=$s("LOCK",!0),ji=$s("NONE",!0),af=$s("SHARED",!0),qf=$s("EXCLUSIVE",!0),Uc=$s("PRIMARY KEY",!0),wc=$s("FOREIGN KEY",!0),Ll=$s("MATCH FULL",!0),jl=$s("MATCH PARTIAL",!0),Oi=$s("MATCH SIMPLE",!0),bb=$s("RESTRICT",!0),Vi=$s("CASCADE",!0),zc=$s("SET NULL",!0),kc=$s("NO ACTION",!0),vb=$s("SET DEFAULT",!0),Zc=$s("CHARACTER",!0),nl=$s("SET",!0),Xf=$s("CHARSET",!0),gl=$s("COLLATE",!0),lf=$s("AVG_ROW_LENGTH",!0),Jc=$s("KEY_BLOCK_SIZE",!0),Qc=$s("MAX_ROWS",!0),gv=$s("MIN_ROWS",!0),g0=$s("STATS_SAMPLE_PAGES",!0),Ki=$s("CONNECTION",!0),Pb=$s("COMPRESSION",!0),ei=$s("'",!1),pb=$s("ZLIB",!0),j0=$s("LZ4",!0),B0=$s("ENGINE",!0),Mc=$s("READ",!0),Cl=$s("LOCAL",!0),$u=$s("LOW_PRIORITY",!0),r0=$s("WRITE",!0),zn=function(j,ur){return Ni(j,ur)},Ss=$s("(",!1),te=$s(")",!1),ce=$s(".",!1),He=$s("UNNEST",!0),Ue=$s("BTREE",!0),Qe=$s("HASH",!0),uo=$s("WITH",!0),Ao=$s("PARSER",!0),Pu=$s("VISIBLE",!0),Ca=$s("INVISIBLE",!0),ku=function(j,ur){return ur.unshift(j),ur.forEach(Ir=>{let{table:s,as:er}=Ir;wi[s]=s,er&&(wi[er]=s),(function(Lt){let mt=$a(Lt);Lt.clear(),mt.forEach(bn=>Lt.add(bn))})(Zo)}),ur},ca=$s("FOLLOWING",!0),na=$s("PRECEDING",!0),Qa=$s("CURRENT",!0),cf=$s("ROW",!0),ri=$s("UNBOUNDED",!0),t0=$s("=",!1),n0=function(j,ur){return tl(j,ur)},Dc=$s("!",!1),s0=function(j){return j[0]+" "+j[2]},Rv=$s(">=",!1),nv=$s(">",!1),sv=$s("<=",!1),ev=$s("<>",!1),yc=$s("<",!1),$c=$s("==",!1),Sf=$s("!=",!1),R0=function(j,ur){return{op:j,right:ur}},Rl=$s("+",!1),ff=$s("-",!1),Vf=$s("*",!1),Vv=$s("/",!1),db=$s("%",!1),Of=$s("~",!1),Pc=$s("?|",!1),H0=$s("?&",!1),bf=$s("?",!1),Lb=$s("#-",!1),Fa=$s("#>>",!1),Kf=$s("#>",!1),Nv=$s("@>",!1),Gb=$s("<@",!1),hc=function(j){return Ml[j.toUpperCase()]===!0},Bl=$s('"',!1),sl=/^[^"]/,sc=ja(['"'],!0,!1),Y0=/^[^']/,N0=ja(["'"],!0,!1),ov=$s("`",!1),Fb=/^[^`]/,e0=ja(["`"],!0,!1),Cb=function(j,ur){return j+ur.join("")},_0=/^[A-Za-z_]/,zf=ja([["A","Z"],["a","z"],"_"],!1,!1),je=/^[A-Za-z0-9_]/,o0=ja([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),xi=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,xf=ja([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Zf=$s(":",!1),W0=$s("OVER",!0),jb=$s("filter",!0),Uf=$s("BOTH",!0),u0=$s("LEADING",!0),wb=$s("TRAILING",!0),Ui=$s("trim",!0),uv=$s("AT TIME ZONE",!0),yb=$s("CENTURY",!0),hb=$s("DAY",!0),Kv=$s("DATE",!0),Gc=$s("DECADE",!0),_v=$s("DOW",!0),kf=$s("DOY",!0),vf=$s("EPOCH",!0),ki=$s("HOUR",!0),Hl=$s("ISODOW",!0),Eb=$s("ISOYEAR",!0),Bb=$s("MICROSECONDS",!0),pa=$s("MILLENNIUM",!0),wl=$s("MILLISECONDS",!0),Nl=$s("MINUTE",!0),Sv=$s("MONTH",!0),Hb=$s("QUARTER",!0),Jf=$s("SECOND",!0),pf=$s("TIMEZONE",!0),Yb=$s("TIMEZONE_HOUR",!0),av=$s("TIMEZONE_MINUTE",!0),iv=$s("WEEK",!0),a0=$s("YEAR",!0),_l=$s("u&",!0),Yl=function(j,ur){return{type:j.toLowerCase(),value:ur[1].join("")}},Ab=/^[^"\\\0-\x1F\x7F]/,Mf=ja(['"',"\\",["\0",""],"\x7F"],!0,!1),Wb=/^[^'\\]/,Df=ja(["'","\\"],!0,!1),mb=$s("\\'",!1),i0=$s('\\"',!1),ft=$s("\\\\",!1),tn=$s("\\/",!1),_n=$s("\\b",!1),En=$s("\\f",!1),Os=$s("\\n",!1),gs=$s("\\r",!1),Ys=$s("\\t",!1),Te=$s("\\u",!1),ye=$s("\\",!1),Be=$s("''",!1),io=$s('""',!1),Ro=$s("``",!1),So=/^[\n\r]/,uu=ja([` +`,"\r"],!1,!1),ko=/^[0-9]/,yu=ja([["0","9"]],!1,!1),au=/^[0-9a-fA-F]/,Iu=ja([["0","9"],["a","f"],["A","F"]],!1,!1),mu=/^[eE]/,Ju=ja(["e","E"],!1,!1),ua=/^[+\-]/,Sa=ja(["+","-"],!1,!1),ma=$s("NULL",!0),Bi=$s("NOT NULL",!0),sa=$s("TRUE",!0),di=$s("TO",!0),Hi=$s("FALSE",!0),S0=$s("DROP",!0),l0=$s("USE",!0),Ov=$s("ALTER",!0),lv=$s("SELECT",!0),fi=$s("UPDATE",!0),Wl=$s("CREATE",!0),ec=$s("TEMPORARY",!0),Fc=$s("DELETE",!0),xv=$s("INSERT",!0),lp=$s("RECURSIVE",!0),Uv=$s("REPLACE",!0),$f=$s("RENAME",!0),Tb=$s("IGNORE",!0),cp=$s("PARTITION",!0),c0=$s("INTO",!0),q0=$s("OVERWRITE",!0),df=$s("FROM",!0),f0=$s("UNLOCK",!0),b0=$s("AS",!0),Pf=$s("TABLE",!0),Sp=$s("TABLES",!0),kv=$s("DATABASE",!0),Op=$s("SCHEMA",!0),fp=$s("ON",!0),oc=$s("LEFT",!0),uc=$s("RIGHT",!0),qb=$s("FULL",!0),Gf=$s("CROSS",!0),zv=$s("INNER",!0),Mv=$s("JOIN",!0),Zv=$s("OUTER",!0),bp=$s("UNION",!0),Ib=$s("VALUES",!0),Dv=$s("USING",!0),vp=$s("WHERE",!0),Jv=$s("GROUP",!0),Xb=$s("BY",!0),pp=$s("ORDER",!0),xp=$s("HAVING",!0),cv=$s("LIMIT",!0),Up=$s("OFFSET",!0),Xp=$s("ASC",!0),Qv=$s("DESC",!0),Vp=$s("ALL",!0),dp=$s("DISTINCT",!0),Kp=$s("BETWEEN",!0),ld=$s("IN",!0),Lp=$s("IS",!0),Cp=$s("LIKE",!0),wp=$s("RLIKE",!0),gb=$s("EXISTS",!0),O0=$s("NOT",!0),v0=$s("AND",!0),ac=$s("OR",!0),Rb=$s("COUNT",!0),Ff=$s("MAX",!0),kp=$s("MIN",!0),Mp=$s("SUM",!0),rp=$s("AVG",!0),yp=$s("EXTRACT",!0),hp=$s("CALL",!0),Ep=$s("CASE",!0),Nb=$s("WHEN",!0),Qf=$s("THEN",!0),_b=$s("ELSE",!0),Ap=$s("END",!0),Dp=$s("CAST",!0),$v=$s("ARRAY",!0),$p=$s("ARRAY_AGG",!0),Pp=$s("CHAR",!0),Pv=$s("VARCHAR",!0),Gp=$s("NUMERIC",!0),Fp=$s("DECIMAL",!0),mp=$s("SIGNED",!0),zp=$s("STRING",!0),Zp=$s("UNSIGNED",!0),Gv=$s("INT",!0),tp=$s("ZEROFILL",!0),Fv=$s("INTEGER",!0),yl=$s("JSON",!0),jc=$s("SMALLINT",!0),fv=$s("TINYINT",!0),Sl=$s("TINYTEXT",!0),Ol=$s("TEXT",!0),np=$s("MEDIUMTEXT",!0),bv=$s("LONGTEXT",!0),ql=$s("BIGINT",!0),Ec=$s("FLOAT",!0),Jp=$s("REAL",!0),Qp=$s("DOUBLE",!0),sp=$s("DATETIME",!0),jv=$s("ROWS",!0),Tp=$s("TIME",!0),rd=$s("TIMESTAMP",!0),jp=$s("TRUNCATE",!0),Ip=$s("USER",!0),td=$s("CURRENT_DATE",!0),nd=$s("INTERVAL",!0),Bp=$s("CURRENT_TIME",!0),Hp=$s("CURRENT_TIMESTAMP",!0),gp=$s("CURRENT_USER",!0),sd=$s("SESSION_USER",!0),ed=$s("SYSTEM_USER",!0),Yp=$s("GLOBAL",!0),od=$s("SESSION",!0),ud=$s("PERSIST",!0),Rp=$s("PERSIST_ONLY",!0),O=$s("@",!1),ps=$s("@@",!1),Bv=$s("$",!1),Lf=$s("return",!0),Hv=$s(":=",!1),on=$s("DUAL",!0),zs=$s("ADD",!0),Bc=$s("COLUMN",!0),vv=$s("INDEX",!0),ep=$s("FULLTEXT",!0),Rs=$s("SPATIAL",!0),Np=$s("COMMENT",!0),Wp=$s("CONSTRAINT",!0),cd=$s("REFERENCES",!0),Vb=$s("SQL_CALC_FOUND_ROWS",!0),_=$s("SQL_CACHE",!0),Ls=$s("SQL_NO_CACHE",!0),pv=$s("SQL_SMALL_RESULT",!0),Cf=$s("SQL_BIG_RESULT",!0),dv=$s("SQL_BUFFER_RESULT",!0),Qt=$s(",",!1),Xs=$s("[",!1),ic=$s("]",!1),op=$s(";",!1),Kb=$s("->",!1),ys=$s("||",!1),_p=$s("&&",!1),Yv=$s("/*",!1),Lv=$s("*/",!1),Wv=$s("--",!1),zb=$s("#",!1),wf={type:"any"},qv=/^[ \t\n\r]/,Cv=ja([" "," ",` +`,"\r"],!1,!1),rb=function(j){return{dataType:j}},tb=$s("boolean",!0),I=0,us=0,Sb=[{line:1,column:1}],xl=0,nb=[],zt=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function $s(j,ur){return{type:"literal",text:j,ignoreCase:ur}}function ja(j,ur,Ir){return{type:"class",parts:j,inverted:ur,ignoreCase:Ir}}function Ob(j){var ur,Ir=Sb[j];if(Ir)return Ir;for(ur=j-1;!Sb[ur];)ur--;for(Ir={line:(Ir=Sb[ur]).line,column:Ir.column};ur<j;)t.charCodeAt(ur)===10?(Ir.line++,Ir.column=1):Ir.column++,ur++;return Sb[j]=Ir,Ir}function jf(j,ur){var Ir=Ob(j),s=Ob(ur);return{start:{offset:j,line:Ir.line,column:Ir.column},end:{offset:ur,line:s.line,column:s.column}}}function is(j){I<xl||(I>xl&&(xl=I,nb=[]),nb.push(j))}function el(j,ur,Ir){return new go(go.buildMessage(j,ur),j,ur,Ir)}function Ti(){var j,ur;return j=I,K()!==r&&(ur=(function(){var Ir,s,er,Lt,mt,bn,ir,Zr;if(Ir=I,(s=yf())!==r){for(er=[],Lt=I,(mt=K())!==r&&(bn=Pr())!==r&&(ir=K())!==r&&(Zr=yf())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);Lt!==r;)er.push(Lt),Lt=I,(mt=K())!==r&&(bn=Pr())!==r&&(ir=K())!==r&&(Zr=yf())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);er===r?(I=Ir,Ir=r):(us=Ir,s=(function(rs,vs){let Ds=rs&&rs.ast||rs,ut=vs&&vs.length&&vs[0].length>=4?[Ds]:Ds;for(let De=0;De<vs.length;De++)vs[De][3]&&vs[De][3].length!==0&&ut.push(vs[De][3]&&vs[De][3].ast||vs[De][3]);return{tableList:Array.from(Wu),columnList:$a(Zo),ast:ut}})(s,er),Ir=s)}else I=Ir,Ir=r;return Ir})())!==r?(us=j,j=ur):(I=j,j=r),j}function wv(){var j;return(j=(function(){var ur=I,Ir,s,er,Lt,mt;(Ir=gc())!==r&&K()!==r&&(s=lt())!==r&&K()!==r&&(er=zl())!==r?(us=ur,bn=Ir,ir=s,(Zr=er)&&Zr.forEach(rs=>Wu.add(`${bn}::${rs.db}::${rs.table}`)),Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:bn.toLowerCase(),keyword:ir.toLowerCase(),name:Zr}},ur=Ir):(I=ur,ur=r);var bn,ir,Zr;return ur===r&&(ur=I,(Ir=gc())!==r&&K()!==r&&(s=Un())!==r&&K()!==r&&(er=ml())!==r&&K()!==r&&ia()!==r&&K()!==r&&(Lt=hl())!==r&&K()!==r?((mt=(function(){var rs=I,vs,Ds,ut,De,Qo;if((vs=h())===r&&(vs=ss()),vs!==r){for(Ds=[],ut=I,(De=K())===r?(I=ut,ut=r):((Qo=h())===r&&(Qo=ss()),Qo===r?(I=ut,ut=r):ut=De=[De,Qo]);ut!==r;)Ds.push(ut),ut=I,(De=K())===r?(I=ut,ut=r):((Qo=h())===r&&(Qo=ss()),Qo===r?(I=ut,ut=r):ut=De=[De,Qo]);Ds===r?(I=rs,rs=r):(us=rs,vs=Dn(vs,Ds),rs=vs)}else I=rs,rs=r;return rs})())===r&&(mt=null),mt!==r&&K()!==r?(us=ur,Ir=(function(rs,vs,Ds,ut,De){return{tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:rs.toLowerCase(),keyword:vs.toLowerCase(),name:Ds,table:ut,options:De}}})(Ir,s,er,Lt,mt),ur=Ir):(I=ur,ur=r)):(I=ur,ur=r)),ur})())===r&&(j=(function(){var ur;return(ur=(function(){var Ir=I,s,er,Lt,mt,bn,ir,Zr,rs,vs;(s=Jl())!==r&&K()!==r?((er=qc())===r&&(er=null),er!==r&&K()!==r&<()!==r&&K()!==r?((Lt=up())===r&&(Lt=null),Lt!==r&&K()!==r&&(mt=zl())!==r&&K()!==r&&(bn=(function(){var nr,yr,Ar,qr,bt,pr,xt,cn,mn;if(nr=I,(yr=P())!==r)if(K()!==r)if((Ar=xb())!==r){for(qr=[],bt=I,(pr=K())!==r&&(xt=Q())!==r&&(cn=K())!==r&&(mn=xb())!==r?bt=pr=[pr,xt,cn,mn]:(I=bt,bt=r);bt!==r;)qr.push(bt),bt=I,(pr=K())!==r&&(xt=Q())!==r&&(cn=K())!==r&&(mn=xb())!==r?bt=pr=[pr,xt,cn,mn]:(I=bt,bt=r);qr!==r&&(bt=K())!==r&&(pr=hr())!==r?(us=nr,yr=Ae(Ar,qr),nr=yr):(I=nr,nr=r)}else I=nr,nr=r;else I=nr,nr=r;else I=nr,nr=r;return nr})())!==r&&K()!==r?((ir=(function(){var nr,yr,Ar,qr,bt,pr,xt,cn;if(nr=I,(yr=sb())!==r){for(Ar=[],qr=I,(bt=K())===r?(I=qr,qr=r):((pr=Q())===r&&(pr=null),pr!==r&&(xt=K())!==r&&(cn=sb())!==r?qr=bt=[bt,pr,xt,cn]:(I=qr,qr=r));qr!==r;)Ar.push(qr),qr=I,(bt=K())===r?(I=qr,qr=r):((pr=Q())===r&&(pr=null),pr!==r&&(xt=K())!==r&&(cn=sb())!==r?qr=bt=[bt,pr,xt,cn]:(I=qr,qr=r));Ar===r?(I=nr,nr=r):(us=nr,yr=Ni(yr,Ar),nr=yr)}else I=nr,nr=r;return nr})())===r&&(ir=null),ir!==r&&K()!==r?((Zr=(function(){var nr=I,yr,Ar,qr;return t.substr(I,6).toLowerCase()==="ignore"?(yr=t.substr(I,6),I+=6):(yr=r,zt===0&&is(Tb)),yr===r?(I=nr,nr=r):(Ar=I,zt++,qr=Ge(),zt--,qr===r?Ar=void 0:(I=Ar,Ar=r),Ar===r?(I=nr,nr=r):nr=yr=[yr,Ar]),nr})())===r&&(Zr=Qi()),Zr===r&&(Zr=null),Zr!==r&&K()!==r?((rs=Va())===r&&(rs=null),rs!==r&&K()!==r?((vs=p0())===r&&(vs=null),vs===r?(I=Ir,Ir=r):(us=Ir,s=(function(nr,yr,Ar,qr,bt,pr,xt,cn,mn){return qr&&qr.forEach($n=>Wu.add(`create::${$n.db}::${$n.table}`)),{tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:nr[0].toLowerCase(),keyword:"table",temporary:yr&&yr[0].toLowerCase(),if_not_exists:Ar,table:qr,ignore_replace:xt&&xt[0].toLowerCase(),as:cn&&cn[0].toLowerCase(),query_expr:mn&&mn.ast,create_definitions:bt,table_options:pr}}})(s,er,Lt,mt,bn,ir,Zr,rs,vs),Ir=s)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r),Ir===r&&(Ir=I,(s=Jl())!==r&&K()!==r?((er=qc())===r&&(er=null),er!==r&&K()!==r&<()!==r&&K()!==r?((Lt=up())===r&&(Lt=null),Lt!==r&&K()!==r&&(mt=zl())!==r&&K()!==r&&(bn=(function nr(){var yr,Ar;(yr=(function(){var bt=I,pr;return Yu()!==r&&K()!==r&&(pr=zl())!==r?(us=bt,bt={type:"like",table:pr}):(I=bt,bt=r),bt})())===r&&(yr=I,P()!==r&&K()!==r&&(Ar=nr())!==r&&K()!==r&&hr()!==r?(us=yr,(qr=Ar).parentheses=!0,yr=qr):(I=yr,yr=r));var qr;return yr})())!==r?(us=Ir,Ds=s,ut=er,De=Lt,A=bn,(Qo=mt)&&Qo.forEach(nr=>Wu.add(`create::${nr.db}::${nr.table}`)),s={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:Ds[0].toLowerCase(),keyword:"table",temporary:ut&&ut[0].toLowerCase(),if_not_exists:De,table:Qo,like:A}},Ir=s):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r));var Ds,ut,De,Qo,A;return Ir})())===r&&(ur=(function(){var Ir=I,s,er,Lt,mt,bn;return(s=Jl())!==r&&K()!==r?((er=(function(){var ir=I,Zr,rs,vs;return t.substr(I,8).toLowerCase()==="database"?(Zr=t.substr(I,8),I+=8):(Zr=r,zt===0&&is(kv)),Zr===r?(I=ir,ir=r):(rs=I,zt++,vs=Ge(),zt--,vs===r?rs=void 0:(I=rs,rs=r),rs===r?(I=ir,ir=r):(us=ir,ir=Zr="DATABASE")),ir})())===r&&(er=(function(){var ir=I,Zr,rs,vs;return t.substr(I,6).toLowerCase()==="schema"?(Zr=t.substr(I,6),I+=6):(Zr=r,zt===0&&is(Op)),Zr===r?(I=ir,ir=r):(rs=I,zt++,vs=Ge(),zt--,vs===r?rs=void 0:(I=rs,rs=r),rs===r?(I=ir,ir=r):(us=ir,ir=Zr="SCHEMA")),ir})()),er!==r&&K()!==r?((Lt=up())===r&&(Lt=null),Lt!==r&&K()!==r&&(mt=Co())!==r&&K()!==r?((bn=(function(){var ir,Zr,rs,vs,Ds,ut;if(ir=I,(Zr=ol())!==r){for(rs=[],vs=I,(Ds=K())!==r&&(ut=ol())!==r?vs=Ds=[Ds,ut]:(I=vs,vs=r);vs!==r;)rs.push(vs),vs=I,(Ds=K())!==r&&(ut=ol())!==r?vs=Ds=[Ds,ut]:(I=vs,vs=r);rs===r?(I=ir,ir=r):(us=ir,Zr=Dn(Zr,rs),ir=Zr)}else I=ir,ir=r;return ir})())===r&&(bn=null),bn===r?(I=Ir,Ir=r):(us=Ir,s=(function(ir,Zr,rs,vs,Ds){let ut=Zr.toLowerCase();return{tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:ir[0].toLowerCase(),keyword:ut,if_not_exists:rs,[ut]:{db:vs.schema,schema:vs.name},create_definitions:Ds}}})(s,er,Lt,mt,bn),Ir=s)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r),Ir})()),ur})())===r&&(j=(function(){var ur=I,Ir,s,er;(Ir=(function(){var ir=I,Zr,rs,vs;return t.substr(I,8).toLowerCase()==="truncate"?(Zr=t.substr(I,8),I+=8):(Zr=r,zt===0&&is(jp)),Zr===r?(I=ir,ir=r):(rs=I,zt++,vs=Ge(),zt--,vs===r?rs=void 0:(I=rs,rs=r),rs===r?(I=ir,ir=r):(us=ir,ir=Zr="TRUNCATE")),ir})())!==r&&K()!==r?((s=lt())===r&&(s=null),s!==r&&K()!==r&&(er=zl())!==r?(us=ur,Lt=Ir,mt=s,(bn=er)&&bn.forEach(ir=>Wu.add(`${Lt}::${ir.db}::${ir.table}`)),Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:Lt.toLowerCase(),keyword:mt&&mt.toLowerCase()||"table",name:bn}},ur=Ir):(I=ur,ur=r)):(I=ur,ur=r);var Lt,mt,bn;return ur})())===r&&(j=(function(){var ur=I,Ir,s;(Ir=ya())!==r&&K()!==r&<()!==r&&K()!==r&&(s=(function(){var Lt,mt,bn,ir,Zr,rs,vs,Ds;if(Lt=I,(mt=C())!==r){for(bn=[],ir=I,(Zr=K())!==r&&(rs=Q())!==r&&(vs=K())!==r&&(Ds=C())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r);ir!==r;)bn.push(ir),ir=I,(Zr=K())!==r&&(rs=Q())!==r&&(vs=K())!==r&&(Ds=C())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r);bn===r?(I=Lt,Lt=r):(us=Lt,mt=Ae(mt,bn),Lt=mt)}else I=Lt,Lt=r;return Lt})())!==r?(us=ur,(er=s).forEach(Lt=>Lt.forEach(mt=>mt.table&&Wu.add(`rename::${mt.db}::${mt.table}`))),Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"rename",table:er}},ur=Ir):(I=ur,ur=r);var er;return ur})())===r&&(j=(function(){var ur=I,Ir,s;(Ir=(function(){var Lt=I,mt,bn,ir;return t.substr(I,4).toLowerCase()==="call"?(mt=t.substr(I,4),I+=4):(mt=r,zt===0&&is(hp)),mt===r?(I=Lt,Lt=r):(bn=I,zt++,ir=Ge(),zt--,ir===r?bn=void 0:(I=bn,bn=r),bn===r?(I=Lt,Lt=r):(us=Lt,Lt=mt="CALL")),Lt})())!==r&&K()!==r&&(s=Au())!==r?(us=ur,er=s,Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"call",expr:er},...Le()},ur=Ir):(I=ur,ur=r);var er;return ur})())===r&&(j=(function(){var ur=I,Ir,s;(Ir=(function(){var Lt=I,mt,bn,ir;return t.substr(I,3).toLowerCase()==="use"?(mt=t.substr(I,3),I+=3):(mt=r,zt===0&&is(l0)),mt===r?(I=Lt,Lt=r):(bn=I,zt++,ir=Ge(),zt--,ir===r?bn=void 0:(I=bn,bn=r),bn===r?(I=Lt,Lt=r):Lt=mt=[mt,bn]),Lt})())!==r&&K()!==r&&(s=aa())!==r?(us=ur,er=s,Wu.add(`use::${er}::null`),Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"use",db:er}},ur=Ir):(I=ur,ur=r);var er;return ur})())===r&&(j=(function(){var ur=I,Ir,s,er;(Ir=(function(){var bn=I,ir,Zr,rs;return t.substr(I,5).toLowerCase()==="alter"?(ir=t.substr(I,5),I+=5):(ir=r,zt===0&&is(Ov)),ir===r?(I=bn,bn=r):(Zr=I,zt++,rs=Ge(),zt--,rs===r?Zr=void 0:(I=Zr,Zr=r),Zr===r?(I=bn,bn=r):bn=ir=[ir,Zr]),bn})())!==r&&K()!==r&<()!==r&&K()!==r&&(s=zl())!==r&&K()!==r&&(er=(function(){var bn,ir,Zr,rs,vs,Ds,ut,De;if(bn=I,(ir=hv())!==r){for(Zr=[],rs=I,(vs=K())!==r&&(Ds=Q())!==r&&(ut=K())!==r&&(De=hv())!==r?rs=vs=[vs,Ds,ut,De]:(I=rs,rs=r);rs!==r;)Zr.push(rs),rs=I,(vs=K())!==r&&(Ds=Q())!==r&&(ut=K())!==r&&(De=hv())!==r?rs=vs=[vs,Ds,ut,De]:(I=rs,rs=r);Zr===r?(I=bn,bn=r):(us=bn,ir=Ae(ir,Zr),bn=ir)}else I=bn,bn=r;return bn})())!==r?(us=ur,mt=er,(Lt=s)&&Lt.length>0&&Lt.forEach(bn=>Wu.add(`alter::${bn.db}::${bn.table}`)),Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"alter",table:Lt,expr:mt}},ur=Ir):(I=ur,ur=r);var Lt,mt;return ur})())===r&&(j=(function(){var ur=I,Ir,s,er;(Ir=vi())!==r&&K()!==r?((s=(function(){var bn=I,ir,Zr,rs;return t.substr(I,6).toLowerCase()==="global"?(ir=t.substr(I,6),I+=6):(ir=r,zt===0&&is(Yp)),ir===r?(I=bn,bn=r):(Zr=I,zt++,rs=Ge(),zt--,rs===r?Zr=void 0:(I=Zr,Zr=r),Zr===r?(I=bn,bn=r):(us=bn,bn=ir="GLOBAL")),bn})())===r&&(s=(function(){var bn=I,ir,Zr,rs;return t.substr(I,7).toLowerCase()==="session"?(ir=t.substr(I,7),I+=7):(ir=r,zt===0&&is(od)),ir===r?(I=bn,bn=r):(Zr=I,zt++,rs=Ge(),zt--,rs===r?Zr=void 0:(I=Zr,Zr=r),Zr===r?(I=bn,bn=r):(us=bn,bn=ir="SESSION")),bn})())===r&&(s=(function(){var bn=I,ir,Zr,rs;return t.substr(I,5).toLowerCase()==="local"?(ir=t.substr(I,5),I+=5):(ir=r,zt===0&&is(Cl)),ir===r?(I=bn,bn=r):(Zr=I,zt++,rs=Ge(),zt--,rs===r?Zr=void 0:(I=Zr,Zr=r),Zr===r?(I=bn,bn=r):(us=bn,bn=ir="LOCAL")),bn})())===r&&(s=(function(){var bn=I,ir,Zr,rs;return t.substr(I,7).toLowerCase()==="persist"?(ir=t.substr(I,7),I+=7):(ir=r,zt===0&&is(ud)),ir===r?(I=bn,bn=r):(Zr=I,zt++,rs=Ge(),zt--,rs===r?Zr=void 0:(I=Zr,Zr=r),Zr===r?(I=bn,bn=r):(us=bn,bn=ir="PERSIST")),bn})())===r&&(s=(function(){var bn=I,ir,Zr,rs;return t.substr(I,12).toLowerCase()==="persist_only"?(ir=t.substr(I,12),I+=12):(ir=r,zt===0&&is(Rp)),ir===r?(I=bn,bn=r):(Zr=I,zt++,rs=Ge(),zt--,rs===r?Zr=void 0:(I=Zr,Zr=r),Zr===r?(I=bn,bn=r):(us=bn,bn=ir="PERSIST_ONLY")),bn})()),s===r&&(s=null),s!==r&&K()!==r&&(er=(function(){var bn,ir,Zr,rs,vs,Ds,ut,De;if(bn=I,(ir=zo())!==r){for(Zr=[],rs=I,(vs=K())!==r&&(Ds=Q())!==r&&(ut=K())!==r&&(De=zo())!==r?rs=vs=[vs,Ds,ut,De]:(I=rs,rs=r);rs!==r;)Zr.push(rs),rs=I,(vs=K())!==r&&(Ds=Q())!==r&&(ut=K())!==r&&(De=zo())!==r?rs=vs=[vs,Ds,ut,De]:(I=rs,rs=r);Zr===r?(I=bn,bn=r):(us=bn,ir=zn(ir,Zr),bn=ir)}else I=bn,bn=r;return bn})())!==r?(us=ur,Lt=s,(mt=er).keyword=Lt,Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"set",keyword:Lt,expr:mt}},ur=Ir):(I=ur,ur=r)):(I=ur,ur=r);var Lt,mt;return ur})())===r&&(j=(function(){var ur=I,Ir,s;(Ir=(function(){var Lt=I,mt,bn,ir;return t.substr(I,4).toLowerCase()==="lock"?(mt=t.substr(I,4),I+=4):(mt=r,zt===0&&is(I0)),mt===r?(I=Lt,Lt=r):(bn=I,zt++,ir=Ge(),zt--,ir===r?bn=void 0:(I=bn,bn=r),bn===r?(I=Lt,Lt=r):Lt=mt=[mt,bn]),Lt})())!==r&&K()!==r&&Wn()!==r&&K()!==r&&(s=(function(){var Lt,mt,bn,ir,Zr,rs,vs,Ds;if(Lt=I,(mt=eb())!==r){for(bn=[],ir=I,(Zr=K())!==r&&(rs=Q())!==r&&(vs=K())!==r&&(Ds=eb())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r);ir!==r;)bn.push(ir),ir=I,(Zr=K())!==r&&(rs=Q())!==r&&(vs=K())!==r&&(Ds=eb())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r);bn===r?(I=Lt,Lt=r):(us=Lt,mt=zn(mt,bn),Lt=mt)}else I=Lt,Lt=r;return Lt})())!==r?(us=ur,er=s,Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"lock",keyword:"tables",tables:er}},ur=Ir):(I=ur,ur=r);var er;return ur})())===r&&(j=(function(){var ur=I,Ir;return(Ir=(function(){var s=I,er,Lt,mt;return t.substr(I,6).toLowerCase()==="unlock"?(er=t.substr(I,6),I+=6):(er=r,zt===0&&is(f0)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):s=er=[er,Lt]),s})())!==r&&K()!==r&&Wn()!==r?(us=ur,Ir={tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"unlock",keyword:"tables"}},ur=Ir):(I=ur,ur=r),ur})()),j}function yf(){var j;return(j=p0())===r&&(j=(function(){var ur=I,Ir,s,er,Lt;return(Ir=al())!==r&&K()!==r&&(s=zl())!==r&&K()!==r&&vi()!==r&&K()!==r&&(er=(function(){var mt,bn,ir,Zr,rs,vs,Ds,ut;if(mt=I,(bn=V0())!==r){for(ir=[],Zr=I,(rs=K())!==r&&(vs=Q())!==r&&(Ds=K())!==r&&(ut=V0())!==r?Zr=rs=[rs,vs,Ds,ut]:(I=Zr,Zr=r);Zr!==r;)ir.push(Zr),Zr=I,(rs=K())!==r&&(vs=Q())!==r&&(Ds=K())!==r&&(ut=V0())!==r?Zr=rs=[rs,vs,Ds,ut]:(I=Zr,Zr=r);ir===r?(I=mt,mt=r):(us=mt,bn=Ae(bn,ir),mt=bn)}else I=mt,mt=r;return mt})())!==r&&K()!==r?((Lt=Qb())===r&&(Lt=null),Lt===r?(I=ur,ur=r):(us=ur,Ir=(function(mt,bn,ir){let Zr={};return mt&&mt.forEach(rs=>{let{db:vs,as:Ds,table:ut,join:De}=rs,Qo=De?"select":"update";vs&&(Zr[ut]=vs),ut&&Wu.add(`${Qo}::${vs}::${ut}`)}),bn&&bn.forEach(rs=>{if(rs.table){let vs=Dl(rs.table);Wu.add(`update::${Zr[vs]||null}::${vs}`)}Zo.add(`update::${rs.table}::${rs.column}`)}),{tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"update",table:mt,set:bn,where:ir}}})(s,er,Lt),ur=Ir)):(I=ur,ur=r),ur})())===r&&(j=(function(){var ur=I,Ir,s,er,Lt,mt,bn,ir;return(Ir=K0())!==r&&K()!==r&&(s=dn())!==r&&K()!==r?((er=lt())===r&&(er=null),er!==r&&K()!==r&&(Lt=hl())!==r?((mt=Ef())===r&&(mt=null),mt!==r&&K()!==r&&P()!==r&&K()!==r&&(bn=(function(){var Zr,rs,vs,Ds,ut,De,Qo,A;if(Zr=I,(rs=Zi())!==r){for(vs=[],Ds=I,(ut=K())!==r&&(De=Q())!==r&&(Qo=K())!==r&&(A=Zi())!==r?Ds=ut=[ut,De,Qo,A]:(I=Ds,Ds=r);Ds!==r;)vs.push(Ds),Ds=I,(ut=K())!==r&&(De=Q())!==r&&(Qo=K())!==r&&(A=Zi())!==r?Ds=ut=[ut,De,Qo,A]:(I=Ds,Ds=r);vs===r?(I=Zr,Zr=r):(us=Zr,rs=Ae(rs,vs),Zr=rs)}else I=Zr,Zr=r;return Zr})())!==r&&K()!==r&&hr()!==r&&K()!==r&&(ir=hf())!==r?(us=ur,Ir=(function(Zr,rs,vs,Ds,ut,De,Qo){if(Ds&&(Wu.add(`insert::${Ds.db}::${Ds.table}`),Ds.as=null),De){let nr=Ds&&Ds.table||null;Array.isArray(Qo.values)&&Qo.values.forEach((yr,Ar)=>{if(yr.value.length!=De.length)throw Error("Error: column count doesn't match value count at row "+(Ar+1))}),De.forEach(yr=>Zo.add(`insert::${nr}::${yr}`))}let A=vs?" "+vs.toLowerCase():"";return{tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:Zr,prefix:`${rs.toLowerCase()}${A}`,table:[Ds],columns:De,values:Qo,partition:ut}}})(Ir,s,er,Lt,mt,bn,ir),ur=Ir):(I=ur,ur=r)):(I=ur,ur=r)):(I=ur,ur=r),ur})())===r&&(j=(function(){var ur=I,Ir,s,er,Lt,mt,bn;return(Ir=K0())!==r&&K()!==r?((s=dn())===r&&(s=(function(){var ir=I,Zr,rs,vs;return t.substr(I,9).toLowerCase()==="overwrite"?(Zr=t.substr(I,9),I+=9):(Zr=r,zt===0&&is(q0)),Zr===r?(I=ir,ir=r):(rs=I,zt++,vs=Ge(),zt--,vs===r?rs=void 0:(I=rs,rs=r),rs===r?(I=ir,ir=r):(us=ir,ir=Zr="OVERWRITE")),ir})()),s!==r&&K()!==r?((er=lt())===r&&(er=null),er!==r&&K()!==r&&(Lt=hl())!==r&&K()!==r?((mt=Ef())===r&&(mt=null),mt!==r&&K()!==r&&(bn=hf())!==r?(us=ur,Ir=(function(ir,Zr,rs,vs,Ds,ut){vs&&(Wu.add(`insert::${vs.db}::${vs.table}`),Zo.add(`insert::${vs.table}::(.*)`),vs.as=null);let De=rs?" "+rs.toLowerCase():"";return{tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:ir,prefix:`${Zr.toLowerCase()}${De}`,table:[vs],columns:null,values:ut,partition:Ds}}})(Ir,s,er,Lt,mt,bn),ur=Ir):(I=ur,ur=r)):(I=ur,ur=r)):(I=ur,ur=r)):(I=ur,ur=r),ur})())===r&&(j=(function(){var ur=I,Ir,s,er,Lt;return(Ir=Ba())!==r&&K()!==r?((s=zl())===r&&(s=null),s!==r&&K()!==r&&(er=U0())!==r&&K()!==r?((Lt=Qb())===r&&(Lt=null),Lt===r?(I=ur,ur=r):(us=ur,Ir=(function(mt,bn,ir){if(bn&&bn.forEach(Zr=>{let{db:rs,as:vs,table:Ds,join:ut}=Zr,De=ut?"select":"delete";Ds&&Wu.add(`${De}::${rs}::${Ds}`),ut||Zo.add(`delete::${Ds}::(.*)`)}),mt===null&&bn.length===1){let Zr=bn[0];mt=[{db:Zr.db,table:Zr.table,as:Zr.as,addition:!0}]}return{tableList:Array.from(Wu),columnList:$a(Zo),ast:{type:"delete",table:mt,from:bn,where:ir}}})(s,er,Lt),ur=Ir)):(I=ur,ur=r)):(I=ur,ur=r),ur})())===r&&(j=wv())===r&&(j=(function(){for(var ur=[],Ir=ao();Ir!==r;)ur.push(Ir),Ir=ao();return ur})()),j}function X0(){var j,ur,Ir;return j=I,(function(){var s=I,er,Lt,mt;return t.substr(I,5).toLowerCase()==="union"?(er=t.substr(I,5),I+=5):(er=r,zt===0&&is(bp)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):s=er=[er,Lt]),s})()!==r&&K()!==r?((ur=ka())===r&&(ur=Ua()),ur===r&&(ur=null),ur===r?(I=j,j=r):(us=j,j=(Ir=ur)?"union "+Ir.toLowerCase():"union")):(I=j,j=r),j}function p0(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=p())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=X0())!==r&&(mt=K())!==r&&(bn=p())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=X0())!==r&&(mt=K())!==r&&(bn=p())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir!==r&&(s=K())!==r?((er=wa())===r&&(er=null),er!==r&&(Lt=K())!==r?((mt=ob())===r&&(mt=null),mt===r?(I=j,j=r):(us=j,j=ur=(function(ir,Zr,rs,vs){Zr.forEach(ut=>ut.slice(1,1));let Ds=ir;for(let ut=0;ut<Zr.length;ut++)Ds._next=Zr[ut][3],Ds.set_op=Zr[ut][1],Ds=Ds._next;return rs&&(ir._orderby=rs),vs&&(ir._limit=vs),{tableList:Array.from(Wu),columnList:$a(Zo),ast:ir}})(ur,Ir,er,mt))):(I=j,j=r)):(I=j,j=r)}else I=j,j=r;return j}function up(){var j,ur;return j=I,t.substr(I,2).toLowerCase()==="if"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(Pn)),ur!==r&&K()!==r&&ha()!==r&&K()!==r&&Mi()!==r?(us=j,j=ur="IF NOT EXISTS"):(I=j,j=r),j}function xb(){var j;return(j=yv())===r&&(j=Xl())===r&&(j=d0())===r&&(j=(function(){var ur;return(ur=(function(){var Ir=I,s,er,Lt,mt,bn;(s=Bf())===r&&(s=null),s!==r&&K()!==r?(t.substr(I,11).toLowerCase()==="primary key"?(er=t.substr(I,11),I+=11):(er=r,zt===0&&is(Uc)),er!==r&&K()!==r?((Lt=Kn())===r&&(Lt=null),Lt!==r&&K()!==r&&(mt=Vl())!==r&&K()!==r?((bn=zi())===r&&(bn=null),bn===r?(I=Ir,Ir=r):(us=Ir,Zr=er,rs=Lt,vs=mt,Ds=bn,s={constraint:(ir=s)&&ir.constraint,definition:vs,constraint_type:Zr.toLowerCase(),keyword:ir&&ir.keyword,index_type:rs,resource:"constraint",index_options:Ds},Ir=s)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r);var ir,Zr,rs,vs,Ds;return Ir})())===r&&(ur=(function(){var Ir=I,s,er,Lt,mt,bn,ir,Zr;(s=Bf())===r&&(s=null),s!==r&&K()!==r&&(er=(function(){var nr=I,yr,Ar,qr;return t.substr(I,6).toLowerCase()==="unique"?(yr=t.substr(I,6),I+=6):(yr=r,zt===0&&is(Hs)),yr===r?(I=nr,nr=r):(Ar=I,zt++,qr=Ge(),zt--,qr===r?Ar=void 0:(I=Ar,Ar=r),Ar===r?(I=nr,nr=r):(us=nr,nr=yr="UNIQUE")),nr})())!==r&&K()!==r?((Lt=Un())===r&&(Lt=u()),Lt===r&&(Lt=null),Lt!==r&&K()!==r?((mt=Zi())===r&&(mt=null),mt!==r&&K()!==r?((bn=Kn())===r&&(bn=null),bn!==r&&K()!==r&&(ir=Vl())!==r&&K()!==r?((Zr=zi())===r&&(Zr=null),Zr===r?(I=Ir,Ir=r):(us=Ir,vs=er,Ds=Lt,ut=mt,De=bn,Qo=ir,A=Zr,s={constraint:(rs=s)&&rs.constraint,definition:Qo,constraint_type:Ds&&`${vs.toLowerCase()} ${Ds.toLowerCase()}`||vs.toLowerCase(),keyword:rs&&rs.keyword,index_type:De,index:ut,resource:"constraint",index_options:A},Ir=s)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r);var rs,vs,Ds,ut,De,Qo,A;return Ir})())===r&&(ur=(function(){var Ir=I,s,er,Lt,mt,bn;(s=Bf())===r&&(s=null),s!==r&&K()!==r?(t.substr(I,11).toLowerCase()==="foreign key"?(er=t.substr(I,11),I+=11):(er=r,zt===0&&is(wc)),er!==r&&K()!==r?((Lt=Zi())===r&&(Lt=null),Lt!==r&&K()!==r&&(mt=Vl())!==r&&K()!==r?((bn=jt())===r&&(bn=null),bn===r?(I=Ir,Ir=r):(us=Ir,Zr=er,rs=Lt,vs=mt,Ds=bn,s={constraint:(ir=s)&&ir.constraint,definition:vs,constraint_type:Zr,keyword:ir&&ir.keyword,index:rs,resource:"constraint",reference_definition:Ds},Ir=s)):(I=Ir,Ir=r)):(I=Ir,Ir=r)):(I=Ir,Ir=r);var ir,Zr,rs,vs,Ds;return Ir})()),ur})()),j}function Zb(){var j,ur,Ir,s;return j=I,(ur=(function(){var er=I,Lt;return(Lt=(function(){var mt=I,bn,ir,Zr;return t.substr(I,8).toLowerCase()==="not null"?(bn=t.substr(I,8),I+=8):(bn=r,zt===0&&is(Bi)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):mt=bn=[bn,ir]),mt})())!==r&&(us=er,Lt={type:"not null",value:"not null"}),er=Lt})())===r&&(ur=ju()),ur!==r&&(us=j,(s=ur)&&!s.value&&(s.value="null"),ur={nullable:s}),(j=ur)===r&&(j=I,(ur=(function(){var er=I,Lt;return Qu()!==r&&K()!==r&&(Lt=Su())!==r?(us=er,er={type:"default",value:Lt}):(I=er,er=r),er})())!==r&&(us=j,ur={default_val:ur}),(j=ur)===r&&(j=I,t.substr(I,14).toLowerCase()==="auto_increment"?(ur=t.substr(I,14),I+=14):(ur=r,zt===0&&is(ou)),ur!==r&&(us=j,ur={auto_increment:ur.toLowerCase()}),(j=ur)===r&&(j=I,t.substr(I,6).toLowerCase()==="unique"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Hs)),ur!==r&&K()!==r?(t.substr(I,3).toLowerCase()==="key"?(Ir=t.substr(I,3),I+=3):(Ir=r,zt===0&&is(Uo)),Ir===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur=(function(er){let Lt=["unique"];return er&&Lt.push(er),{unique:Lt.join(" ").toLowerCase("")}})(Ir))):(I=j,j=r),j===r&&(j=I,t.substr(I,7).toLowerCase()==="primary"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Ps)),ur===r&&(ur=null),ur!==r&&K()!==r?(t.substr(I,3).toLowerCase()==="key"?(Ir=t.substr(I,3),I+=3):(Ir=r,zt===0&&is(Uo)),Ir===r?(I=j,j=r):(us=j,j=ur=(function(er){let Lt=[];return er&&Lt.push("primary"),Lt.push("key"),{primary_key:Lt.join(" ").toLowerCase("")}})(ur))):(I=j,j=r),j===r&&(j=I,(ur=Ve())!==r&&(us=j,ur={comment:ur}),(j=ur)===r&&(j=I,(ur=Jb())!==r&&(us=j,ur={collate:ur}),(j=ur)===r&&(j=I,(ur=(function(){var er=I,Lt,mt;return t.substr(I,13).toLowerCase()==="column_format"?(Lt=t.substr(I,13),I+=13):(Lt=r,zt===0&&is(pe)),Lt!==r&&K()!==r?(t.substr(I,5).toLowerCase()==="fixed"?(mt=t.substr(I,5),I+=5):(mt=r,zt===0&&is(_o)),mt===r&&(t.substr(I,7).toLowerCase()==="dynamic"?(mt=t.substr(I,7),I+=7):(mt=r,zt===0&&is(Gi)),mt===r&&(t.substr(I,7).toLowerCase()==="default"?(mt=t.substr(I,7),I+=7):(mt=r,zt===0&&is(mi)))),mt===r?(I=er,er=r):(us=er,Lt={type:"column_format",value:mt.toLowerCase()},er=Lt)):(I=er,er=r),er})())!==r&&(us=j,ur={column_format:ur}),(j=ur)===r&&(j=I,(ur=(function(){var er=I,Lt,mt;return t.substr(I,7).toLowerCase()==="storage"?(Lt=t.substr(I,7),I+=7):(Lt=r,zt===0&&is(Fi)),Lt!==r&&K()!==r?(t.substr(I,4).toLowerCase()==="disk"?(mt=t.substr(I,4),I+=4):(mt=r,zt===0&&is(T0)),mt===r&&(t.substr(I,6).toLowerCase()==="memory"?(mt=t.substr(I,6),I+=6):(mt=r,zt===0&&is(dl))),mt===r?(I=er,er=r):(us=er,Lt={type:"storage",value:mt.toLowerCase()},er=Lt)):(I=er,er=r),er})())!==r&&(us=j,ur={storage:ur}),(j=ur)===r&&(j=I,(ur=jt())!==r&&(us=j,ur={reference_definition:ur}),j=ur))))))))),j}function yv(){var j,ur,Ir,s;return j=I,(ur=ml())!==r&&K()!==r&&(Ir=Wt())!==r&&K()!==r?((s=(function(){var er,Lt,mt,bn,ir,Zr;if(er=I,(Lt=Zb())!==r)if(K()!==r){for(mt=[],bn=I,(ir=K())!==r&&(Zr=Zb())!==r?bn=ir=[ir,Zr]:(I=bn,bn=r);bn!==r;)mt.push(bn),bn=I,(ir=K())!==r&&(Zr=Zb())!==r?bn=ir=[ir,Zr]:(I=bn,bn=r);mt===r?(I=er,er=r):(us=er,er=Lt=(function(rs,vs){let Ds=rs;for(let ut=0;ut<vs.length;ut++)Ds={...Ds,...vs[ut][1]};return Ds})(Lt,mt))}else I=er,er=r;else I=er,er=r;return er})())===r&&(s=null),s===r?(I=j,j=r):(us=j,j=ur=(function(er,Lt,mt){return Zo.add(`create::${er.table}::${er.column}`),{column:er,definition:Lt,resource:"column",...mt||{}}})(ur,Ir,s))):(I=j,j=r),j}function Jb(){var j,ur,Ir,s;return j=I,Eu()!==r&&K()!==r&&(ur=Ii())!==r&&K()!==r&&(Ir=It())!==r&&K()!==r&&(s=aa())!==r?(us=j,j={type:"collate",keyword:"collate",collate:{name:ur,symbol:Ir,value:s}}):(I=j,j=r),j===r&&(j=I,Eu()!==r&&K()!==r?((ur=It())===r&&(ur=null),ur!==r&&K()!==r&&(Ir=aa())!==r?(us=j,j=(function(er,Lt){return{type:"collate",keyword:"collate",collate:{name:Lt,symbol:er}}})(ur,Ir)):(I=j,j=r)):(I=j,j=r)),j}function hv(){var j;return(j=(function(){var ur=I,Ir,s,er;(Ir=Dt())!==r&&K()!==r?((s=Ln())===r&&(s=null),s!==r&&K()!==r&&(er=yv())!==r?(us=ur,Lt=s,mt=er,Ir={action:"add",...mt,keyword:Lt,resource:"column",type:"alter"},ur=Ir):(I=ur,ur=r)):(I=ur,ur=r);var Lt,mt;return ur})())===r&&(j=(function(){var ur=I,Ir,s,er;return(Ir=gc())!==r&&K()!==r?((s=Ln())===r&&(s=null),s!==r&&K()!==r&&(er=ml())!==r?(us=ur,Ir=(function(Lt,mt){return{action:"drop",column:mt,keyword:Lt,resource:"column",type:"alter"}})(s,er),ur=Ir):(I=ur,ur=r)):(I=ur,ur=r),ur})())===r&&(j=(function(){var ur=I,Ir,s;(Ir=Dt())!==r&&K()!==r&&(s=Xl())!==r?(us=ur,er=s,Ir={action:"add",type:"alter",...er},ur=Ir):(I=ur,ur=r);var er;return ur})())===r&&(j=(function(){var ur=I,Ir,s;(Ir=Dt())!==r&&K()!==r&&(s=d0())!==r?(us=ur,er=s,Ir={action:"add",type:"alter",...er},ur=Ir):(I=ur,ur=r);var er;return ur})())===r&&(j=(function(){var ur=I,Ir,s,er;(Ir=ya())!==r&&K()!==r?((s=P0())===r&&(s=Va()),s===r&&(s=null),s!==r&&K()!==r&&(er=aa())!==r?(us=ur,mt=er,Ir={action:"rename",type:"alter",resource:"table",keyword:(Lt=s)&&Lt[0].toLowerCase(),table:mt},ur=Ir):(I=ur,ur=r)):(I=ur,ur=r);var Lt,mt;return ur})())===r&&(j=h())===r&&(j=ss()),j}function h(){var j,ur,Ir,s;return j=I,t.substr(I,9).toLowerCase()==="algorithm"?(ur=t.substr(I,9),I+=9):(ur=r,zt===0&&is(Gl)),ur!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r?(t.substr(I,7).toLowerCase()==="default"?(s=t.substr(I,7),I+=7):(s=r,zt===0&&is(mi)),s===r&&(t.substr(I,7).toLowerCase()==="instant"?(s=t.substr(I,7),I+=7):(s=r,zt===0&&is(Fl)),s===r&&(t.substr(I,7).toLowerCase()==="inplace"?(s=t.substr(I,7),I+=7):(s=r,zt===0&&is(nc)),s===r&&(t.substr(I,4).toLowerCase()==="copy"?(s=t.substr(I,4),I+=4):(s=r,zt===0&&is(xc))))),s===r?(I=j,j=r):(us=j,j=ur={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:Ir,algorithm:s})):(I=j,j=r)):(I=j,j=r),j}function ss(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="lock"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(I0)),ur!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r?(t.substr(I,7).toLowerCase()==="default"?(s=t.substr(I,7),I+=7):(s=r,zt===0&&is(mi)),s===r&&(t.substr(I,4).toLowerCase()==="none"?(s=t.substr(I,4),I+=4):(s=r,zt===0&&is(ji)),s===r&&(t.substr(I,6).toLowerCase()==="shared"?(s=t.substr(I,6),I+=6):(s=r,zt===0&&is(af)),s===r&&(t.substr(I,9).toLowerCase()==="exclusive"?(s=t.substr(I,9),I+=9):(s=r,zt===0&&is(qf))))),s===r?(I=j,j=r):(us=j,j=ur={type:"alter",keyword:"lock",resource:"lock",symbol:Ir,lock:s})):(I=j,j=r)):(I=j,j=r),j}function Xl(){var j,ur,Ir,s,er,Lt;return j=I,(ur=Un())===r&&(ur=u()),ur!==r&&K()!==r?((Ir=Zi())===r&&(Ir=null),Ir!==r&&K()!==r?((s=Kn())===r&&(s=null),s!==r&&K()!==r&&(er=Vl())!==r&&K()!==r?((Lt=zi())===r&&(Lt=null),Lt!==r&&K()!==r?(us=j,j=ur=(function(mt,bn,ir,Zr,rs){return{index:bn,definition:Zr,keyword:mt.toLowerCase(),index_type:ir,resource:"index",index_options:rs}})(ur,Ir,s,er,Lt)):(I=j,j=r)):(I=j,j=r)):(I=j,j=r)):(I=j,j=r),j}function d0(){var j,ur,Ir,s,er,Lt;return j=I,(ur=(function(){var mt=I,bn,ir,Zr;return t.substr(I,8).toLowerCase()==="fulltext"?(bn=t.substr(I,8),I+=8):(bn=r,zt===0&&is(ep)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):(us=mt,mt=bn="FULLTEXT")),mt})())===r&&(ur=(function(){var mt=I,bn,ir,Zr;return t.substr(I,7).toLowerCase()==="spatial"?(bn=t.substr(I,7),I+=7):(bn=r,zt===0&&is(Rs)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):(us=mt,mt=bn="SPATIAL")),mt})()),ur!==r&&K()!==r?((Ir=Un())===r&&(Ir=u()),Ir===r&&(Ir=null),Ir!==r&&K()!==r?((s=Zi())===r&&(s=null),s!==r&&K()!==r&&(er=Vl())!==r&&K()!==r?((Lt=zi())===r&&(Lt=null),Lt!==r&&K()!==r?(us=j,j=ur=(function(mt,bn,ir,Zr,rs){return{index:ir,definition:Zr,keyword:bn&&`${mt.toLowerCase()} ${bn.toLowerCase()}`||mt.toLowerCase(),index_options:rs,resource:"index"}})(ur,Ir,s,er,Lt)):(I=j,j=r)):(I=j,j=r)):(I=j,j=r)):(I=j,j=r),j}function Bf(){var j,ur,Ir;return j=I,(ur=(function(){var s=I,er,Lt,mt;return t.substr(I,10).toLowerCase()==="constraint"?(er=t.substr(I,10),I+=10):(er=r,zt===0&&is(Wp)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="CONSTRAINT")),s})())!==r&&K()!==r?((Ir=aa())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur=(function(s,er){return{keyword:s.toLowerCase(),constraint:er}})(ur,Ir))):(I=j,j=r),j}function jt(){var j,ur,Ir,s,er,Lt,mt,bn,ir,Zr;return j=I,(ur=(function(){var rs=I,vs,Ds,ut;return t.substr(I,10).toLowerCase()==="references"?(vs=t.substr(I,10),I+=10):(vs=r,zt===0&&is(cd)),vs===r?(I=rs,rs=r):(Ds=I,zt++,ut=Ge(),zt--,ut===r?Ds=void 0:(I=Ds,Ds=r),Ds===r?(I=rs,rs=r):(us=rs,rs=vs="REFERENCES")),rs})())!==r&&K()!==r&&(Ir=zl())!==r&&K()!==r&&(s=Vl())!==r&&K()!==r?(t.substr(I,10).toLowerCase()==="match full"?(er=t.substr(I,10),I+=10):(er=r,zt===0&&is(Ll)),er===r&&(t.substr(I,13).toLowerCase()==="match partial"?(er=t.substr(I,13),I+=13):(er=r,zt===0&&is(jl)),er===r&&(t.substr(I,12).toLowerCase()==="match simple"?(er=t.substr(I,12),I+=12):(er=r,zt===0&&is(Oi)))),er===r&&(er=null),er!==r&&K()!==r?((Lt=Us())===r&&(Lt=null),Lt!==r&&K()!==r?((mt=Us())===r&&(mt=null),mt===r?(I=j,j=r):(us=j,bn=er,ir=Lt,Zr=mt,j=ur={definition:s,table:Ir,keyword:ur.toLowerCase(),match:bn&&bn.toLowerCase(),on_action:[ir,Zr].filter(rs=>rs)})):(I=j,j=r)):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,(ur=Us())!==r&&(us=j,ur={on_action:[ur]}),j=ur),j}function Us(){var j,ur,Ir,s;return j=I,ia()!==r&&K()!==r?((ur=Ba())===r&&(ur=al()),ur!==r&&K()!==r&&(Ir=(function(){var er=I,Lt,mt;return(Lt=Fr())!==r&&K()!==r&&P()!==r&&K()!==r?((mt=w0())===r&&(mt=null),mt!==r&&K()!==r&&hr()!==r?(us=er,er=Lt={type:"function",name:{name:[{type:"origin",value:Lt}]},args:mt}):(I=er,er=r)):(I=er,er=r),er===r&&(er=I,t.substr(I,8).toLowerCase()==="restrict"?(Lt=t.substr(I,8),I+=8):(Lt=r,zt===0&&is(bb)),Lt===r&&(t.substr(I,7).toLowerCase()==="cascade"?(Lt=t.substr(I,7),I+=7):(Lt=r,zt===0&&is(Vi)),Lt===r&&(t.substr(I,8).toLowerCase()==="set null"?(Lt=t.substr(I,8),I+=8):(Lt=r,zt===0&&is(zc)),Lt===r&&(t.substr(I,9).toLowerCase()==="no action"?(Lt=t.substr(I,9),I+=9):(Lt=r,zt===0&&is(kc)),Lt===r&&(t.substr(I,11).toLowerCase()==="set default"?(Lt=t.substr(I,11),I+=11):(Lt=r,zt===0&&is(vb)),Lt===r&&(Lt=Fr()))))),Lt!==r&&(us=er,Lt={type:"origin",value:Lt.toLowerCase()}),er=Lt),er})())!==r?(us=j,s=Ir,j={type:"on "+ur[0].toLowerCase(),value:s}):(I=j,j=r)):(I=j,j=r),j}function ol(){var j,ur,Ir,s,er,Lt,mt,bn,ir;return j=I,(ur=Qu())===r&&(ur=null),ur!==r&&K()!==r?((Ir=(function(){var Zr,rs,vs;return Zr=I,t.substr(I,9).toLowerCase()==="character"?(rs=t.substr(I,9),I+=9):(rs=r,zt===0&&is(Zc)),rs!==r&&K()!==r?(t.substr(I,3).toLowerCase()==="set"?(vs=t.substr(I,3),I+=3):(vs=r,zt===0&&is(nl)),vs===r?(I=Zr,Zr=r):(us=Zr,Zr=rs="CHARACTER SET")):(I=Zr,Zr=r),Zr})())===r&&(t.substr(I,7).toLowerCase()==="charset"?(Ir=t.substr(I,7),I+=7):(Ir=r,zt===0&&is(Xf)),Ir===r&&(t.substr(I,7).toLowerCase()==="collate"?(Ir=t.substr(I,7),I+=7):(Ir=r,zt===0&&is(gl)))),Ir!==r&&K()!==r?((s=It())===r&&(s=null),s!==r&&K()!==r&&(er=Ul())!==r?(us=j,mt=Ir,bn=s,ir=er,j=ur={keyword:(Lt=ur)&&`${Lt[0].toLowerCase()} ${mt.toLowerCase()}`||mt.toLowerCase(),symbol:bn,value:ir}):(I=j,j=r)):(I=j,j=r)):(I=j,j=r),j}function sb(){var j,ur,Ir,s,er,Lt,mt,bn,ir;return j=I,t.substr(I,14).toLowerCase()==="auto_increment"?(ur=t.substr(I,14),I+=14):(ur=r,zt===0&&is(ou)),ur===r&&(t.substr(I,14).toLowerCase()==="avg_row_length"?(ur=t.substr(I,14),I+=14):(ur=r,zt===0&&is(lf)),ur===r&&(t.substr(I,14).toLowerCase()==="key_block_size"?(ur=t.substr(I,14),I+=14):(ur=r,zt===0&&is(Jc)),ur===r&&(t.substr(I,8).toLowerCase()==="max_rows"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(Qc)),ur===r&&(t.substr(I,8).toLowerCase()==="min_rows"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(gv)),ur===r&&(t.substr(I,18).toLowerCase()==="stats_sample_pages"?(ur=t.substr(I,18),I+=18):(ur=r,zt===0&&is(g0))))))),ur!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r&&(s=fc())!==r?(us=j,bn=Ir,ir=s,j=ur={keyword:ur.toLowerCase(),symbol:bn,value:ir.value}):(I=j,j=r)):(I=j,j=r),j===r&&(j=ol())===r&&(j=I,(ur=yt())===r&&(t.substr(I,10).toLowerCase()==="connection"?(ur=t.substr(I,10),I+=10):(ur=r,zt===0&&is(Ki))),ur!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r&&(s=Il())!==r?(us=j,j=ur=(function(Zr,rs,vs){return{keyword:Zr.toLowerCase(),symbol:rs,value:`'${vs.value}'`}})(ur,Ir,s)):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,t.substr(I,11).toLowerCase()==="compression"?(ur=t.substr(I,11),I+=11):(ur=r,zt===0&&is(Pb)),ur!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r?(s=I,t.charCodeAt(I)===39?(er="'",I++):(er=r,zt===0&&is(ei)),er===r?(I=s,s=r):(t.substr(I,4).toLowerCase()==="zlib"?(Lt=t.substr(I,4),I+=4):(Lt=r,zt===0&&is(pb)),Lt===r&&(t.substr(I,3).toLowerCase()==="lz4"?(Lt=t.substr(I,3),I+=3):(Lt=r,zt===0&&is(j0)),Lt===r&&(t.substr(I,4).toLowerCase()==="none"?(Lt=t.substr(I,4),I+=4):(Lt=r,zt===0&&is(ji)))),Lt===r?(I=s,s=r):(t.charCodeAt(I)===39?(mt="'",I++):(mt=r,zt===0&&is(ei)),mt===r?(I=s,s=r):s=er=[er,Lt,mt])),s===r?(I=j,j=r):(us=j,j=ur=(function(Zr,rs,vs){return{keyword:Zr.toLowerCase(),symbol:rs,value:vs.join("").toUpperCase()}})(ur,Ir,s))):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,t.substr(I,6).toLowerCase()==="engine"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(B0)),ur!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r&&(s=Ii())!==r?(us=j,j=ur=(function(Zr,rs,vs){return{keyword:Zr.toLowerCase(),symbol:rs,value:vs.toUpperCase()}})(ur,Ir,s)):(I=j,j=r)):(I=j,j=r)))),j}function eb(){var j,ur,Ir,s,er;return j=I,(ur=hs())!==r&&K()!==r&&(Ir=(function(){var Lt,mt,bn;return Lt=I,t.substr(I,4).toLowerCase()==="read"?(mt=t.substr(I,4),I+=4):(mt=r,zt===0&&is(Mc)),mt!==r&&K()!==r?(t.substr(I,5).toLowerCase()==="local"?(bn=t.substr(I,5),I+=5):(bn=r,zt===0&&is(Cl)),bn===r&&(bn=null),bn===r?(I=Lt,Lt=r):(us=Lt,Lt=mt={type:"read",suffix:bn&&"local"})):(I=Lt,Lt=r),Lt===r&&(Lt=I,t.substr(I,12).toLowerCase()==="low_priority"?(mt=t.substr(I,12),I+=12):(mt=r,zt===0&&is($u)),mt===r&&(mt=null),mt!==r&&K()!==r?(t.substr(I,5).toLowerCase()==="write"?(bn=t.substr(I,5),I+=5):(bn=r,zt===0&&is(r0)),bn===r?(I=Lt,Lt=r):(us=Lt,Lt=mt={type:"write",prefix:mt&&"low_priority"})):(I=Lt,Lt=r)),Lt})())!==r?(us=j,s=ur,er=Ir,Wu.add(`lock::${s.db}::${s.table}`),j=ur={table:s,lock_type:er}):(I=j,j=r),j}function p(){var j,ur,Ir,s,er,Lt,mt;return(j=(function(){var bn=I,ir,Zr,rs,vs,Ds,ut,De,Qo,A,nr,yr;return(ir=K())===r?(I=bn,bn=r):((Zr=(function(){var Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks,Ws,fe;if(Ar=I,(qr=kl())!==r)if(K()!==r)if((bt=ns())!==r){for(pr=[],xt=I,(cn=K())!==r&&(mn=Q())!==r&&($n=K())!==r&&(bs=ns())!==r?xt=cn=[cn,mn,$n,bs]:(I=xt,xt=r);xt!==r;)pr.push(xt),xt=I,(cn=K())!==r&&(mn=Q())!==r&&($n=K())!==r&&(bs=ns())!==r?xt=cn=[cn,mn,$n,bs]:(I=xt,xt=r);pr===r?(I=Ar,Ar=r):(us=Ar,qr=Ae(bt,pr),Ar=qr)}else I=Ar,Ar=r;else I=Ar,Ar=r;else I=Ar,Ar=r;if(Ar===r)if(Ar=I,(qr=K())!==r)if(kl()!==r)if((bt=K())!==r)if((pr=(function(){var me=I,Xe,eo,so;return t.substr(I,9).toLowerCase()==="recursive"?(Xe=t.substr(I,9),I+=9):(Xe=r,zt===0&&is(lp)),Xe===r?(I=me,me=r):(eo=I,zt++,so=Ge(),zt--,so===r?eo=void 0:(I=eo,eo=r),eo===r?(I=me,me=r):me=Xe=[Xe,eo]),me})())!==r)if((xt=K())!==r)if((cn=ns())!==r){for(mn=[],$n=I,(bs=K())!==r&&(ks=Q())!==r&&(Ws=K())!==r&&(fe=ns())!==r?$n=bs=[bs,ks,Ws,fe]:(I=$n,$n=r);$n!==r;)mn.push($n),$n=I,(bs=K())!==r&&(ks=Q())!==r&&(Ws=K())!==r&&(fe=ns())!==r?$n=bs=[bs,ks,Ws,fe]:(I=$n,$n=r);mn===r?(I=Ar,Ar=r):(us=Ar,Is=mn,(ne=cn).recursive=!0,qr=Ni(ne,Is),Ar=qr)}else I=Ar,Ar=r;else I=Ar,Ar=r;else I=Ar,Ar=r;else I=Ar,Ar=r;else I=Ar,Ar=r;else I=Ar,Ar=r;var ne,Is;return Ar})())===r&&(Zr=null),Zr!==r&&K()!==r&&(function(){var Ar=I,qr,bt,pr;return t.substr(I,6).toLowerCase()==="select"?(qr=t.substr(I,6),I+=6):(qr=r,zt===0&&is(lv)),qr===r?(I=Ar,Ar=r):(bt=I,zt++,pr=Ge(),zt--,pr===r?bt=void 0:(I=bt,bt=r),bt===r?(I=Ar,Ar=r):Ar=qr=[qr,bt]),Ar})()!==r&&kt()!==r?((rs=(function(){var Ar,qr,bt,pr,xt,cn;if(Ar=I,(qr=Hc())!==r){for(bt=[],pr=I,(xt=K())!==r&&(cn=Hc())!==r?pr=xt=[xt,cn]:(I=pr,pr=r);pr!==r;)bt.push(pr),pr=I,(xt=K())!==r&&(cn=Hc())!==r?pr=xt=[xt,cn]:(I=pr,pr=r);bt===r?(I=Ar,Ar=r):(us=Ar,qr=(function(mn,$n){let bs=[mn];for(let ks=0,Ws=$n.length;ks<Ws;++ks)bs.push($n[ks][1]);return bs})(qr,bt),Ar=qr)}else I=Ar,Ar=r;return Ar})())===r&&(rs=null),rs!==r&&K()!==r?((vs=Ua())===r&&(vs=null),vs!==r&&K()!==r&&(Ds=Ub())!==r&&K()!==r?((ut=U0())===r&&(ut=null),ut!==r&&K()!==r?((De=Qb())===r&&(De=null),De!==r&&K()!==r?((Qo=(function(){var Ar=I,qr,bt;return(qr=(function(){var pr=I,xt,cn,mn;return t.substr(I,5).toLowerCase()==="group"?(xt=t.substr(I,5),I+=5):(xt=r,zt===0&&is(Jv)),xt===r?(I=pr,pr=r):(cn=I,zt++,mn=Ge(),zt--,mn===r?cn=void 0:(I=cn,cn=r),cn===r?(I=pr,pr=r):pr=xt=[xt,cn]),pr})())!==r&&K()!==r&&oi()!==r&&K()!==r&&(bt=w0())!==r?(us=Ar,qr={columns:bt.value},Ar=qr):(I=Ar,Ar=r),Ar})())===r&&(Qo=null),Qo!==r&&K()!==r?((A=(function(){var Ar=I,qr;return(function(){var bt=I,pr,xt,cn;return t.substr(I,6).toLowerCase()==="having"?(pr=t.substr(I,6),I+=6):(pr=r,zt===0&&is(xp)),pr===r?(I=bt,bt=r):(xt=I,zt++,cn=Ge(),zt--,cn===r?xt=void 0:(I=xt,xt=r),xt===r?(I=bt,bt=r):bt=pr=[pr,xt]),bt})()!==r&&K()!==r&&(qr=Al())!==r?(us=Ar,Ar=qr):(I=Ar,Ar=r),Ar})())===r&&(A=null),A!==r&&K()!==r?((nr=wa())===r&&(nr=null),nr!==r&&K()!==r?((yr=ob())===r&&(yr=null),yr===r?(I=bn,bn=r):(us=bn,ir=(function(Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks){return xt&&(Array.isArray(xt)?xt:xt.expr).forEach(Ws=>Ws.table&&Wu.add(`select::${Ws.db}::${Ws.table}`)),{with:Ar,type:"select",options:qr,distinct:bt,columns:pr,from:xt,where:cn,groupby:mn,having:$n,orderby:bs,limit:ks}})(Zr,rs,vs,Ds,ut,De,Qo,A,nr,yr),bn=ir)):(I=bn,bn=r)):(I=bn,bn=r)):(I=bn,bn=r)):(I=bn,bn=r)):(I=bn,bn=r)):(I=bn,bn=r)):(I=bn,bn=r)):(I=bn,bn=r)),bn})())===r&&(j=I,ur=I,t.charCodeAt(I)===40?(Ir="(",I++):(Ir=r,zt===0&&is(Ss)),Ir!==r&&(s=K())!==r&&(er=p())!==r&&(Lt=K())!==r?(t.charCodeAt(I)===41?(mt=")",I++):(mt=r,zt===0&&is(te)),mt===r?(I=ur,ur=r):ur=Ir=[Ir,s,er,Lt,mt]):(I=ur,ur=r),ur!==r&&(us=j,ur={...ur[2],parentheses_symbol:!0}),j=ur),j}function ns(){var j,ur,Ir,s;return j=I,(ur=Il())===r&&(ur=Ii()),ur!==r&&K()!==r?((Ir=Vl())===r&&(Ir=null),Ir!==r&&K()!==r&&Va()!==r&&K()!==r&&P()!==r&&K()!==r&&(s=p0())!==r&&K()!==r&&hr()!==r?(us=j,j=ur=(function(er,Lt,mt){return typeof er=="string"&&(er={type:"default",value:er}),{name:er,stmt:mt,columns:Lt}})(ur,Ir,s)):(I=j,j=r)):(I=j,j=r),j}function Vl(){var j,ur;return j=I,P()!==r&&K()!==r&&(ur=(function(){var Ir,s,er,Lt,mt,bn,ir,Zr;if(Ir=I,(s=ml())!==r){for(er=[],Lt=I,(mt=K())!==r&&(bn=Q())!==r&&(ir=K())!==r&&(Zr=ml())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);Lt!==r;)er.push(Lt),Lt=I,(mt=K())!==r&&(bn=Q())!==r&&(ir=K())!==r&&(Zr=ml())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);er===r?(I=Ir,Ir=r):(us=Ir,s=Ae(s,er),Ir=s)}else I=Ir,Ir=r;return Ir})())!==r&&K()!==r&&hr()!==r?(us=j,j=ur):(I=j,j=r),j}function Hc(){var j,ur;return j=I,(ur=(function(){var Ir;return t.substr(I,19).toLowerCase()==="sql_calc_found_rows"?(Ir=t.substr(I,19),I+=19):(Ir=r,zt===0&&is(Vb)),Ir})())===r&&((ur=(function(){var Ir;return t.substr(I,9).toLowerCase()==="sql_cache"?(Ir=t.substr(I,9),I+=9):(Ir=r,zt===0&&is(_)),Ir})())===r&&(ur=(function(){var Ir;return t.substr(I,12).toLowerCase()==="sql_no_cache"?(Ir=t.substr(I,12),I+=12):(Ir=r,zt===0&&is(Ls)),Ir})()),ur===r&&(ur=(function(){var Ir;return t.substr(I,14).toLowerCase()==="sql_big_result"?(Ir=t.substr(I,14),I+=14):(Ir=r,zt===0&&is(Cf)),Ir})())===r&&(ur=(function(){var Ir;return t.substr(I,16).toLowerCase()==="sql_small_result"?(Ir=t.substr(I,16),I+=16):(Ir=r,zt===0&&is(pv)),Ir})())===r&&(ur=(function(){var Ir;return t.substr(I,17).toLowerCase()==="sql_buffer_result"?(Ir=t.substr(I,17),I+=17):(Ir=r,zt===0&&is(dv)),Ir})())),ur!==r&&(us=j,ur=ur),j=ur}function Ub(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=ka())===r&&(ur=I,(Ir=Tr())===r?(I=ur,ur=r):(s=I,zt++,er=Ge(),zt--,er===r?s=void 0:(I=s,s=r),s===r?(I=ur,ur=r):ur=Ir=[Ir,s]),ur===r&&(ur=Tr())),ur!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=Ta())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=Ta())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=(function(ir,Zr){Zo.add("select::null::(.*)");let rs={expr:{type:"column_ref",table:null,column:"*"},as:null};return Zr&&Zr.length>0?Ni(rs,Zr):[rs]})(0,Ir))}else I=j,j=r;if(j===r)if(j=I,(ur=Ta())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=Ta())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=Ta())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=Ae(ur,Ir))}else I=j,j=r;return j}function Ft(){var j,ur,Ir,s,er,Lt,mt;return j=I,ht()!==r&&K()!==r?((ur=fc())===r&&(ur=Il()),ur!==r&&K()!==r&&e()!==r?(Ir=I,(s=K())===r?(I=Ir,Ir=r):(t.charCodeAt(I)===46?(er=".",I++):(er=r,zt===0&&is(ce)),er!==r&&(Lt=K())!==r&&(mt=aa())!==r?Ir=s=[s,er,Lt,mt]:(I=Ir,Ir=r)),Ir===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=(function(bn,ir){let Zr;return ir&&(Zr={type:"default",value:ir[3]}),{brackets:!0,index:bn,property:Zr}})(ur,Ir))):(I=j,j=r)):(I=j,j=r),j}function xs(){var j,ur,Ir,s,er,Lt;if(j=I,(ur=Ft())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Ft())!==r?s=er=[er,Lt]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Ft())!==r?s=er=[er,Lt]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=Dn(ur,Ir))}else I=j,j=r;return j}function Li(){var j,ur,Ir,s,er;return j=I,(ur=(function(){var Lt,mt,bn,ir,Zr,rs,vs,Ds;if(Lt=I,(mt=Su())!==r){for(bn=[],ir=I,(Zr=K())===r?(I=ir,ir=r):((rs=Ha())===r&&(rs=ln())===r&&(rs=Yn()),rs!==r&&(vs=K())!==r&&(Ds=Su())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r));ir!==r;)bn.push(ir),ir=I,(Zr=K())===r?(I=ir,ir=r):((rs=Ha())===r&&(rs=ln())===r&&(rs=Yn()),rs!==r&&(vs=K())!==r&&(Ds=Su())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r));bn===r?(I=Lt,Lt=r):(us=Lt,mt=(function(ut,De){let Qo=ut.ast;if(Qo&&Qo.type==="select"&&(!(ut.parentheses_symbol||ut.parentheses||ut.ast.parentheses||ut.ast.parentheses_symbol)||Qo.columns.length!==1||Qo.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!De||De.length===0)return ut;let A=De.length,nr=De[A-1][3];for(let yr=A-1;yr>=0;yr--){let Ar=yr===0?ut:De[yr-1][3];nr=xu(De[yr][1],Ar,nr)}return nr})(mt,bn),Lt=mt)}else I=Lt,Lt=r;return Lt})())!==r&&K()!==r?((Ir=xs())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,s=ur,(er=Ir)&&(s.array_index=er),j=ur=s)):(I=j,j=r),j}function Ta(){var j,ur,Ir,s,er,Lt,mt;return j=I,ur=I,(Ir=aa())!==r&&(s=K())!==r&&(er=Y())!==r?ur=Ir=[Ir,s,er]:(I=ur,ur=r),ur===r&&(ur=null),ur!==r&&(Ir=K())!==r&&(s=Tr())!==r?(us=j,j=ur=(function(bn){let ir=bn&&bn[0]||null;return Zo.add(`select::${ir}::(.*)`),{expr:{type:"column_ref",table:ir,column:"*"},as:null}})(ur)):(I=j,j=r),j===r&&(j=I,(ur=Li())!==r&&(Ir=K())!==r?((s=Zn())===r&&(s=null),s===r?(I=j,j=r):(us=j,mt=s,(Lt=ur).type!=="double_quote_string"&&Lt.type!=="single_quote_string"||Zo.add("select::null::"+Lt.value),j=ur={type:"expr",expr:Lt,as:mt})):(I=j,j=r)),j}function x0(){var j,ur,Ir;return j=I,(ur=Va())===r&&(ur=null),ur!==r&&K()!==r?((Ir=xa())===r&&(Ir=Tf()),Ir===r?(I=j,j=r):(us=j,j=ur=Ir)):(I=j,j=r),j}function Zn(){var j,ur,Ir;return j=I,(ur=Va())!==r&&K()!==r?((Ir=xa())===r&&(Ir=Tf()),Ir===r?(I=j,j=r):(us=j,j=ur=Ir)):(I=j,j=r),j===r&&(j=I,(ur=Va())===r&&(ur=null),ur!==r&&K()!==r&&(Ir=aa())!==r?(us=j,j=ur=Ir):(I=j,j=r)),j}function kb(){var j,ur,Ir,s,er;return j=I,t.substr(I,6).toLowerCase()==="unnest"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(He)),ur!==r&&K()!==r&&P()!==r&&K()!==r?((Ir=Su())===r&&(Ir=null),Ir!==r&&K()!==r&&hr()!==r&&K()!==r?((s=xa())===r&&(s=Zn()),s===r&&(s=null),s!==r&&K()!==r?((er=(function(){var Lt,mt;return Lt=I,kl()!==r&&K()!==r&&yn()!==r&&K()!==r?((mt=Zn())===r&&(mt=null),mt===r?(I=Lt,Lt=r):(us=Lt,Lt={keyword:"with offset as",as:mt})):(I=Lt,Lt=r),Lt})())===r&&(er=null),er===r?(I=j,j=r):(us=j,j=ur={type:"unnest",expr:Ir,parentheses:!0,as:s,with_offset:er})):(I=j,j=r)):(I=j,j=r)):(I=j,j=r),j}function U0(){var j,ur;return j=I,Ql()!==r&&K()!==r&&(ur=zl())!==r?(us=j,j=ur):(I=j,j=r),j}function C(){var j,ur,Ir;return j=I,(ur=hl())!==r&&K()!==r&&P0()!==r&&K()!==r&&(Ir=hl())!==r?(us=j,j=ur=[ur,Ir]):(I=j,j=r),j}function Kn(){var j,ur;return j=I,E0()!==r&&K()!==r?(t.substr(I,5).toLowerCase()==="btree"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(Ue)),ur===r&&(t.substr(I,4).toLowerCase()==="hash"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Qe))),ur===r?(I=j,j=r):(us=j,j={keyword:"using",type:ur.toLowerCase()})):(I=j,j=r),j}function zi(){var j,ur,Ir,s,er,Lt;if(j=I,(ur=Kl())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Kl())!==r?s=er=[er,Lt]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Kl())!==r?s=er=[er,Lt]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=(function(mt,bn){let ir=[mt];for(let Zr=0;Zr<bn.length;Zr++)ir.push(bn[Zr][1]);return ir})(ur,Ir))}else I=j,j=r;return j}function Kl(){var j,ur,Ir,s,er,Lt;return j=I,(ur=(function(){var mt=I,bn,ir,Zr;return t.substr(I,14).toLowerCase()==="key_block_size"?(bn=t.substr(I,14),I+=14):(bn=r,zt===0&&is(Jc)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):(us=mt,mt=bn="KEY_BLOCK_SIZE")),mt})())!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r&&(s=fc())!==r?(us=j,er=Ir,Lt=s,j=ur={type:ur.toLowerCase(),symbol:er,expr:Lt}):(I=j,j=r)):(I=j,j=r),j===r&&(j=Kn())===r&&(j=I,t.substr(I,4).toLowerCase()==="with"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(uo)),ur!==r&&K()!==r?(t.substr(I,6).toLowerCase()==="parser"?(Ir=t.substr(I,6),I+=6):(Ir=r,zt===0&&is(Ao)),Ir!==r&&K()!==r&&(s=Ii())!==r?(us=j,j=ur={type:"with parser",expr:s}):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,t.substr(I,7).toLowerCase()==="visible"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Pu)),ur===r&&(t.substr(I,9).toLowerCase()==="invisible"?(ur=t.substr(I,9),I+=9):(ur=r,zt===0&&is(Ca))),ur!==r&&(us=j,ur=(function(mt){return{type:mt.toLowerCase(),expr:mt.toLowerCase()}})(ur)),(j=ur)===r&&(j=Ve()))),j}function zl(){var j,ur,Ir,s;if(j=I,(ur=hs())!==r)if(K()!==r){for(Ir=[],s=Ot();s!==r;)Ir.push(s),s=Ot();Ir===r?(I=j,j=r):(us=j,j=ur=ku(ur,Ir))}else I=j,j=r;else I=j,j=r;return j}function Ot(){var j,ur,Ir;return j=I,K()!==r&&(ur=Q())!==r&&K()!==r&&(Ir=hs())!==r?(us=j,j=Ir):(I=j,j=r),j===r&&(j=I,K()!==r&&(ur=(function(){var s,er,Lt,mt,bn,ir,Zr,rs,vs,Ds,ut;if(s=I,(er=Yi())!==r)if(K()!==r)if((Lt=hs())!==r)if(K()!==r)if((mt=E0())!==r)if(K()!==r)if(P()!==r)if(K()!==r)if((bn=Ul())!==r){for(ir=[],Zr=I,(rs=K())!==r&&(vs=Q())!==r&&(Ds=K())!==r&&(ut=Ul())!==r?Zr=rs=[rs,vs,Ds,ut]:(I=Zr,Zr=r);Zr!==r;)ir.push(Zr),Zr=I,(rs=K())!==r&&(vs=Q())!==r&&(Ds=K())!==r&&(ut=Ul())!==r?Zr=rs=[rs,vs,Ds,ut]:(I=Zr,Zr=r);ir!==r&&(Zr=K())!==r&&(rs=hr())!==r?(us=s,De=er,A=bn,nr=ir,(Qo=Lt).join=De,Qo.using=Ni(A,nr),s=er=Qo):(I=s,s=r)}else I=s,s=r;else I=s,s=r;else I=s,s=r;else I=s,s=r;else I=s,s=r;else I=s,s=r;else I=s,s=r;else I=s,s=r;else I=s,s=r;var De,Qo,A,nr;return s===r&&(s=I,(er=Yi())!==r&&K()!==r&&(Lt=hs())!==r&&K()!==r?((mt=Bn())===r&&(mt=null),mt===r?(I=s,s=r):(us=s,er=(function(yr,Ar,qr){return Ar.join=yr,Ar.on=qr,Ar})(er,Lt,mt),s=er)):(I=s,s=r),s===r&&(s=I,(er=Yi())===r&&(er=X0()),er!==r&&K()!==r&&(Lt=P())!==r&&K()!==r?((mt=p0())===r&&(mt=zl()),mt!==r&&K()!==r&&hr()!==r&&K()!==r?((bn=Zn())===r&&(bn=null),bn!==r&&(ir=K())!==r?((Zr=Bn())===r&&(Zr=null),Zr===r?(I=s,s=r):(us=s,er=(function(yr,Ar,qr,bt){return Ar.parentheses=!0,{expr:Ar,as:qr,join:yr,on:bt}})(er,mt,bn,Zr),s=er)):(I=s,s=r)):(I=s,s=r)):(I=s,s=r))),s})())!==r?(us=j,j=ur):(I=j,j=r)),j}function hs(){var j,ur,Ir,s;return(j=kb())===r&&(j=I,(ur=(function(){var er;return t.substr(I,4).toLowerCase()==="dual"?(er=t.substr(I,4),I+=4):(er=r,zt===0&&is(on)),er})())!==r&&(us=j,ur={type:"dual"}),(j=ur)===r&&(j=I,(ur=Af())!==r&&K()!==r?((Ir=x0())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur={expr:ur,as:Ir})):(I=j,j=r),j===r&&(j=I,(ur=P())!==r&&K()!==r&&(Ir=Af())!==r&&K()!==r&&hr()!==r&&K()!==r?((s=x0())===r&&(s=null),s===r?(I=j,j=r):(us=j,j=ur=(function(er,Lt){return{expr:{...er,parentheses:!0},as:Lt}})(Ir,s))):(I=j,j=r),j===r&&(j=I,(ur=hl())!==r&&K()!==r?((Ir=Zn())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur=(function(er,Lt){return er.type==="var"?(er.as=Lt,er):{db:er.db,table:er.table,as:Lt}})(ur,Ir))):(I=j,j=r),j===r&&(j=I,(ur=P())!==r&&K()!==r&&(Ir=p0())!==r&&K()!==r&&hr()!==r&&K()!==r?((s=Zn())===r&&(s=null),s===r?(I=j,j=r):(us=j,j=ur=(function(er,Lt){return er.parentheses=!0,{expr:er,as:Lt}})(Ir,s))):(I=j,j=r),j===r&&(j=I,(ur=P())!==r&&K()!==r&&(Ir=zl())!==r&&K()!==r&&hr()!==r&&K()!==r?((s=Zn())===r&&(s=null),s===r?(I=j,j=r):(us=j,j=ur=(function(er,Lt){return{expr:er={type:"tables",expr:er,parentheses:!0},as:Lt}})(Ir,s))):(I=j,j=r))))))),j}function Yi(){var j,ur,Ir,s;return j=I,(ur=(function(){var er=I,Lt,mt,bn;return t.substr(I,4).toLowerCase()==="left"?(Lt=t.substr(I,4),I+=4):(Lt=r,zt===0&&is(oc)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):er=Lt=[Lt,mt]),er})())!==r&&(Ir=K())!==r?((s=Jt())===r&&(s=null),s!==r&&K()!==r&&ve()!==r?(us=j,j=ur="LEFT JOIN"):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,(ur=(function(){var er=I,Lt,mt,bn;return t.substr(I,5).toLowerCase()==="right"?(Lt=t.substr(I,5),I+=5):(Lt=r,zt===0&&is(uc)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):er=Lt=[Lt,mt]),er})())!==r&&(Ir=K())!==r?((s=Jt())===r&&(s=null),s!==r&&K()!==r&&ve()!==r?(us=j,j=ur="RIGHT JOIN"):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,(ur=(function(){var er=I,Lt,mt,bn;return t.substr(I,4).toLowerCase()==="full"?(Lt=t.substr(I,4),I+=4):(Lt=r,zt===0&&is(qb)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):er=Lt=[Lt,mt]),er})())!==r&&(Ir=K())!==r?((s=Jt())===r&&(s=null),s!==r&&K()!==r&&ve()!==r?(us=j,j=ur="FULL JOIN"):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,ur=I,(Ir=(function(){var er=I,Lt,mt,bn;return t.substr(I,5).toLowerCase()==="inner"?(Lt=t.substr(I,5),I+=5):(Lt=r,zt===0&&is(zv)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):er=Lt=[Lt,mt]),er})())!==r&&(s=K())!==r?ur=Ir=[Ir,s]:(I=ur,ur=r),ur===r&&(ur=null),ur!==r&&(Ir=ve())!==r?(us=j,j=ur="INNER JOIN"):(I=j,j=r),j===r&&(j=I,(ur=(function(){var er=I,Lt,mt,bn;return t.substr(I,5).toLowerCase()==="cross"?(Lt=t.substr(I,5),I+=5):(Lt=r,zt===0&&is(Gf)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):er=Lt=[Lt,mt]),er})())!==r&&(Ir=K())!==r&&(s=ve())!==r?(us=j,j=ur="CROSS JOIN"):(I=j,j=r))))),j}function hl(){var j,ur,Ir,s,er,Lt,mt,bn;return j=I,(ur=aa())===r?(I=j,j=r):(Ir=I,(s=K())!==r&&(er=Y())!==r&&(Lt=K())!==r&&(mt=aa())!==r?Ir=s=[s,er,Lt,mt]:(I=Ir,Ir=r),Ir===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur=(function(ir,Zr){let rs={db:null,table:ir};return Zr!==null&&(rs.db=ir,rs.table=Zr[3]),rs})(ur,Ir))),j===r&&(j=I,(ur=da())!==r&&(us=j,(bn=ur).db=null,bn.table=bn.name,ur=bn),j=ur),j}function L0(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=Su())!==r){for(Ir=[],s=I,(er=K())===r?(I=s,s=r):((Lt=Ha())===r&&(Lt=ln()),Lt!==r&&(mt=K())!==r&&(bn=Su())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r));s!==r;)Ir.push(s),s=I,(er=K())===r?(I=s,s=r):((Lt=Ha())===r&&(Lt=ln()),Lt!==r&&(mt=K())!==r&&(bn=Su())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r));Ir===r?(I=j,j=r):(us=j,j=ur=(function(ir,Zr){let rs=Zr.length,vs=ir;for(let Ds=0;Ds<rs;++Ds)vs=xu(Zr[Ds][1],vs,Zr[Ds][3]);return vs})(ur,Ir))}else I=j,j=r;return j}function Bn(){var j,ur;return j=I,ia()!==r&&K()!==r&&(ur=Al())!==r?(us=j,j=ur):(I=j,j=r),j}function Qb(){var j,ur;return j=I,(function(){var Ir=I,s,er,Lt;return t.substr(I,5).toLowerCase()==="where"?(s=t.substr(I,5),I+=5):(s=r,zt===0&&is(vp)),s===r?(I=Ir,Ir=r):(er=I,zt++,Lt=Ge(),zt--,Lt===r?er=void 0:(I=er,er=r),er===r?(I=Ir,Ir=r):Ir=s=[s,er]),Ir})()!==r&&K()!==r&&(ur=Al())!==r?(us=j,j=ur):(I=j,j=r),j}function C0(){var j,ur;return(j=Ii())===r&&(j=I,P()!==r&&K()!==r?((ur=(function(){var Ir=I,s,er,Lt;return(s=Oa())===r&&(s=null),s!==r&&K()!==r?((er=wa())===r&&(er=null),er!==r&&K()!==r?((Lt=(function(){var mt=I,bn,ir,Zr,rs;return(bn=rt())!==r&&K()!==r?((ir=Hf())===r&&(ir=k0()),ir===r?(I=mt,mt=r):(us=mt,mt=bn={type:"rows",expr:ir})):(I=mt,mt=r),mt===r&&(mt=I,(bn=rt())!==r&&K()!==r&&(ir=Ou())!==r&&K()!==r&&(Zr=k0())!==r&&K()!==r&&Ha()!==r&&K()!==r?((rs=Hf())===r&&(rs=k0()),rs===r?(I=mt,mt=r):(us=mt,bn=xu(ir,{type:"origin",value:"rows"},{type:"expr_list",value:[Zr,rs]}),mt=bn)):(I=mt,mt=r)),mt})())===r&&(Lt=null),Lt===r?(I=Ir,Ir=r):(us=Ir,Ir=s={name:null,partitionby:s,orderby:er,window_frame_clause:Lt})):(I=Ir,Ir=r)):(I=Ir,Ir=r),Ir})())===r&&(ur=null),ur!==r&&K()!==r&&hr()!==r?(us=j,j={window_specification:ur||{},parentheses:!0}):(I=j,j=r)):(I=j,j=r)),j}function Hf(){var j,ur,Ir,s;return j=I,(ur=Wi())!==r&&K()!==r?(t.substr(I,9).toLowerCase()==="following"?(Ir=t.substr(I,9),I+=9):(Ir=r,zt===0&&is(ca)),Ir===r?(I=j,j=r):(us=j,(s=ur).value+=" FOLLOWING",j=ur=s)):(I=j,j=r),j===r&&(j=M0()),j}function k0(){var j,ur,Ir,s,er;return j=I,(ur=Wi())!==r&&K()!==r?(t.substr(I,9).toLowerCase()==="preceding"?(Ir=t.substr(I,9),I+=9):(Ir=r,zt===0&&is(na)),Ir===r&&(t.substr(I,9).toLowerCase()==="following"?(Ir=t.substr(I,9),I+=9):(Ir=r,zt===0&&is(ca))),Ir===r?(I=j,j=r):(us=j,er=Ir,(s=ur).value+=" "+er.toUpperCase(),j=ur=s)):(I=j,j=r),j===r&&(j=M0()),j}function M0(){var j,ur,Ir;return j=I,t.substr(I,7).toLowerCase()==="current"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Qa)),ur!==r&&K()!==r?(t.substr(I,3).toLowerCase()==="row"?(Ir=t.substr(I,3),I+=3):(Ir=r,zt===0&&is(cf)),Ir===r?(I=j,j=r):(us=j,j=ur={type:"origin",value:"current row"})):(I=j,j=r),j}function Wi(){var j,ur;return j=I,t.substr(I,9).toLowerCase()==="unbounded"?(ur=t.substr(I,9),I+=9):(ur=r,zt===0&&is(ri)),ur!==r&&(us=j,ur={type:"origin",value:ur.toUpperCase()}),(j=ur)===r&&(j=fc()),j}function wa(){var j,ur;return j=I,(function(){var Ir=I,s,er,Lt;return t.substr(I,5).toLowerCase()==="order"?(s=t.substr(I,5),I+=5):(s=r,zt===0&&is(pp)),s===r?(I=Ir,Ir=r):(er=I,zt++,Lt=Ge(),zt--,Lt===r?er=void 0:(I=er,er=r),er===r?(I=Ir,Ir=r):Ir=s=[s,er]),Ir})()!==r&&K()!==r&&oi()!==r&&K()!==r&&(ur=(function(){var Ir,s,er,Lt,mt,bn,ir,Zr;if(Ir=I,(s=ti())!==r){for(er=[],Lt=I,(mt=K())!==r&&(bn=Q())!==r&&(ir=K())!==r&&(Zr=ti())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);Lt!==r;)er.push(Lt),Lt=I,(mt=K())!==r&&(bn=Q())!==r&&(ir=K())!==r&&(Zr=ti())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);er===r?(I=Ir,Ir=r):(us=Ir,s=Ae(s,er),Ir=s)}else I=Ir,Ir=r;return Ir})())!==r?(us=j,j=ur):(I=j,j=r),j}function Oa(){var j,ur;return j=I,l()!==r&&K()!==r&&oi()!==r&&K()!==r&&(ur=Ub())!==r?(us=j,j=ur):(I=j,j=r),j}function ti(){var j,ur,Ir;return j=I,(ur=Su())!==r&&K()!==r?((Ir=(function(){var s=I,er,Lt,mt;return t.substr(I,4).toLowerCase()==="desc"?(er=t.substr(I,4),I+=4):(er=r,zt===0&&is(Qv)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="DESC")),s})())===r&&(Ir=(function(){var s=I,er,Lt,mt;return t.substr(I,3).toLowerCase()==="asc"?(er=t.substr(I,3),I+=3):(er=r,zt===0&&is(Xp)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="ASC")),s})()),Ir===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur={expr:ur,type:Ir})):(I=j,j=r),j}function We(){var j;return(j=fc())===r&&(j=Zl()),j}function ob(){var j,ur,Ir,s,er,Lt;return j=I,(function(){var mt=I,bn,ir,Zr;return t.substr(I,5).toLowerCase()==="limit"?(bn=t.substr(I,5),I+=5):(bn=r,zt===0&&is(cv)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):mt=bn=[bn,ir]),mt})()!==r&&K()!==r&&(ur=We())!==r&&K()!==r?(Ir=I,(s=Q())===r&&(s=yn()),s!==r&&(er=K())!==r&&(Lt=We())!==r?Ir=s=[s,er,Lt]:(I=Ir,Ir=r),Ir===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=(function(mt,bn){let ir=[mt];return bn&&ir.push(bn[2]),{seperator:bn&&bn[0]&&bn[0].toLowerCase()||"",value:ir}})(ur,Ir))):(I=j,j=r),j}function V0(){var j,ur,Ir,s,er,Lt,mt,bn;return j=I,ur=I,(Ir=aa())!==r&&(s=K())!==r&&(er=Y())!==r?ur=Ir=[Ir,s,er]:(I=ur,ur=r),ur===r&&(ur=null),ur!==r&&(Ir=K())!==r&&(s=fa())!==r&&(er=K())!==r?(t.charCodeAt(I)===61?(Lt="=",I++):(Lt=r,zt===0&&is(t0)),Lt!==r&&K()!==r&&(mt=Su())!==r?(us=j,j=ur=(function(ir,Zr,rs){return{column:Zr,value:rs,table:ir&&ir[0]}})(ur,s,mt)):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,ur=I,(Ir=aa())!==r&&(s=K())!==r&&(er=Y())!==r?ur=Ir=[Ir,s,er]:(I=ur,ur=r),ur===r&&(ur=null),ur!==r&&(Ir=K())!==r&&(s=fa())!==r&&(er=K())!==r?(t.charCodeAt(I)===61?(Lt="=",I++):(Lt=r,zt===0&&is(t0)),Lt!==r&&K()!==r&&(mt=nf())!==r&&K()!==r&&P()!==r&&K()!==r&&(bn=ml())!==r&&K()!==r&&hr()!==r?(us=j,j=ur=(function(ir,Zr,rs){return{column:Zr,value:rs,table:ir&&ir[0],keyword:"values"}})(ur,s,bn)):(I=j,j=r)):(I=j,j=r)),j}function hf(){var j,ur;return(j=Af())===r&&(j=I,(ur=p0())!==r&&(us=j,ur=ur.ast),j=ur),j}function Ef(){var j,ur,Ir,s,er,Lt,mt,bn,ir;if(j=I,l()!==r)if(K()!==r)if((ur=P())!==r)if(K()!==r)if((Ir=Ii())!==r){for(s=[],er=I,(Lt=K())!==r&&(mt=Q())!==r&&(bn=K())!==r&&(ir=Ii())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r);er!==r;)s.push(er),er=I,(Lt=K())!==r&&(mt=Q())!==r&&(bn=K())!==r&&(ir=Ii())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r);s!==r&&(er=K())!==r&&(Lt=hr())!==r?(us=j,j=Ni(Ir,s)):(I=j,j=r)}else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;return j===r&&(j=I,l()!==r&&K()!==r&&(ur=El())!==r?(us=j,j=ur):(I=j,j=r)),j}function K0(){var j,ur;return j=I,(ur=(function(){var Ir=I,s,er,Lt;return t.substr(I,6).toLowerCase()==="insert"?(s=t.substr(I,6),I+=6):(s=r,zt===0&&is(xv)),s===r?(I=Ir,Ir=r):(er=I,zt++,Lt=Ge(),zt--,Lt===r?er=void 0:(I=er,er=r),er===r?(I=Ir,Ir=r):Ir=s=[s,er]),Ir})())!==r&&(us=j,ur="insert"),(j=ur)===r&&(j=I,(ur=Qi())!==r&&(us=j,ur="replace"),j=ur),j}function Af(){var j,ur;return j=I,nf()!==r&&K()!==r&&(ur=(function(){var Ir,s,er,Lt,mt,bn,ir,Zr;if(Ir=I,(s=El())!==r){for(er=[],Lt=I,(mt=K())!==r&&(bn=Q())!==r&&(ir=K())!==r&&(Zr=El())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);Lt!==r;)er.push(Lt),Lt=I,(mt=K())!==r&&(bn=Q())!==r&&(ir=K())!==r&&(Zr=El())!==r?Lt=mt=[mt,bn,ir,Zr]:(I=Lt,Lt=r);er===r?(I=Ir,Ir=r):(us=Ir,s=Ae(s,er),Ir=s)}else I=Ir,Ir=r;return Ir})())!==r?(us=j,j={type:"values",values:ur}):(I=j,j=r),j}function El(){var j,ur;return j=I,P()!==r&&K()!==r&&(ur=w0())!==r&&K()!==r&&hr()!==r?(us=j,j=ur):(I=j,j=r),j===r&&(j=xa()),j}function w0(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=Su())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=Su())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=Su())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=(function(ir,Zr){let rs={type:"expr_list"};return rs.value=Ni(ir,Zr),rs})(ur,Ir))}else I=j,j=r;return j}function ul(){var j,ur,Ir;return j=I,Or()!==r&&K()!==r&&(ur=Su())!==r&&K()!==r&&(Ir=(function(){var s;return(s=(function(){var er=I,Lt,mt,bn;return t.substr(I,4).toLowerCase()==="year"?(Lt=t.substr(I,4),I+=4):(Lt=r,zt===0&&is(a0)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):(us=er,er=Lt="YEAR")),er})())===r&&(s=(function(){var er=I,Lt,mt,bn;return t.substr(I,5).toLowerCase()==="month"?(Lt=t.substr(I,5),I+=5):(Lt=r,zt===0&&is(Sv)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):(us=er,er=Lt="MONTH")),er})())===r&&(s=(function(){var er=I,Lt,mt,bn;return t.substr(I,3).toLowerCase()==="day"?(Lt=t.substr(I,3),I+=3):(Lt=r,zt===0&&is(hb)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):(us=er,er=Lt="DAY")),er})())===r&&(s=(function(){var er=I,Lt,mt,bn;return t.substr(I,4).toLowerCase()==="hour"?(Lt=t.substr(I,4),I+=4):(Lt=r,zt===0&&is(ki)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):(us=er,er=Lt="HOUR")),er})())===r&&(s=(function(){var er=I,Lt,mt,bn;return t.substr(I,6).toLowerCase()==="minute"?(Lt=t.substr(I,6),I+=6):(Lt=r,zt===0&&is(Nl)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):(us=er,er=Lt="MINUTE")),er})())===r&&(s=(function(){var er=I,Lt,mt,bn;return t.substr(I,6).toLowerCase()==="second"?(Lt=t.substr(I,6),I+=6):(Lt=r,zt===0&&is(Jf)),Lt===r?(I=er,er=r):(mt=I,zt++,bn=Ge(),zt--,bn===r?mt=void 0:(I=mt,mt=r),mt===r?(I=er,er=r):(us=er,er=Lt="SECOND")),er})()),s})())!==r?(us=j,j={type:"interval",expr:ur,unit:Ir.toLowerCase()}):(I=j,j=r),j}function Ye(){var j,ur,Ir,s,er,Lt;if(j=I,(ur=mf())!==r)if(K()!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=mf())!==r?s=er=[er,Lt]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=mf())!==r?s=er=[er,Lt]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=Dn(ur,Ir))}else I=j,j=r;else I=j,j=r;return j}function mf(){var j,ur,Ir;return j=I,(function(){var s=I,er,Lt,mt;return t.substr(I,4).toLowerCase()==="when"?(er=t.substr(I,4),I+=4):(er=r,zt===0&&is(Nb)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):s=er=[er,Lt]),s})()!==r&&K()!==r&&(ur=Al())!==r&&K()!==r&&(function(){var s=I,er,Lt,mt;return t.substr(I,4).toLowerCase()==="then"?(er=t.substr(I,4),I+=4):(er=r,zt===0&&is(Qf)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):s=er=[er,Lt]),s})()!==r&&K()!==r&&(Ir=Su())!==r?(us=j,j={type:"when",cond:ur,result:Ir}):(I=j,j=r),j}function z0(){var j,ur;return j=I,(function(){var Ir=I,s,er,Lt;return t.substr(I,4).toLowerCase()==="else"?(s=t.substr(I,4),I+=4):(s=r,zt===0&&is(_b)),s===r?(I=Ir,Ir=r):(er=I,zt++,Lt=Ge(),zt--,Lt===r?er=void 0:(I=er,er=r),er===r?(I=Ir,Ir=r):Ir=s=[s,er]),Ir})()!==r&&K()!==r&&(ur=Su())!==r?(us=j,j={type:"else",result:ur}):(I=j,j=r),j}function ub(){var j;return(j=(function(){var ur,Ir,s,er,Lt,mt,bn,ir;if(ur=I,(Ir=D0())!==r){for(s=[],er=I,(Lt=kt())!==r&&(mt=ln())!==r&&(bn=K())!==r&&(ir=D0())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r);er!==r;)s.push(er),er=I,(Lt=kt())!==r&&(mt=ln())!==r&&(bn=K())!==r&&(ir=D0())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r);s===r?(I=ur,ur=r):(us=ur,Ir=n0(Ir,s),ur=Ir)}else I=ur,ur=r;return ur})())===r&&(j=(function(){var ur,Ir,s,er,Lt,mt;if(ur=I,(Ir=Yc())!==r){if(s=[],er=I,(Lt=K())!==r&&(mt=Ic())!==r?er=Lt=[Lt,mt]:(I=er,er=r),er!==r)for(;er!==r;)s.push(er),er=I,(Lt=K())!==r&&(mt=Ic())!==r?er=Lt=[Lt,mt]:(I=er,er=r);else s=r;s===r?(I=ur,ur=r):(us=ur,Ir=rl(Ir,s[0][1]),ur=Ir)}else I=ur,ur=r;return ur})()),j}function Su(){var j;return(j=ub())===r&&(j=p0()),j}function Al(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=Su())!==r){for(Ir=[],s=I,(er=K())===r?(I=s,s=r):((Lt=Ha())===r&&(Lt=ln())===r&&(Lt=Q()),Lt!==r&&(mt=K())!==r&&(bn=Su())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r));s!==r;)Ir.push(s),s=I,(er=K())===r?(I=s,s=r):((Lt=Ha())===r&&(Lt=ln())===r&&(Lt=Q()),Lt!==r&&(mt=K())!==r&&(bn=Su())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r));Ir===r?(I=j,j=r):(us=j,j=ur=(function(ir,Zr){let rs=Zr.length,vs=ir,Ds="";for(let ut=0;ut<rs;++ut)Zr[ut][1]===","?(Ds=",",Array.isArray(vs)||(vs=[vs]),vs.push(Zr[ut][3])):vs=xu(Zr[ut][1],vs,Zr[ut][3]);if(Ds===","){let ut={type:"expr_list"};return ut.value=vs,ut}return vs})(ur,Ir))}else I=j,j=r;return j}function D0(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=Ac())!==r){for(Ir=[],s=I,(er=kt())!==r&&(Lt=Ha())!==r&&(mt=K())!==r&&(bn=Ac())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=kt())!==r&&(Lt=Ha())!==r&&(mt=K())!==r&&(bn=Ac())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=tl(ur,Ir))}else I=j,j=r;return j}function Ac(){var j,ur,Ir,s,er;return(j=mc())===r&&(j=(function(){var Lt=I,mt,bn;(mt=(function(){var rs=I,vs=I,Ds,ut,De;return(Ds=ha())!==r&&(ut=K())!==r&&(De=Mi())!==r?vs=Ds=[Ds,ut,De]:(I=vs,vs=r),vs!==r&&(us=rs,vs=s0(vs)),(rs=vs)===r&&(rs=Mi()),rs})())!==r&&K()!==r&&P()!==r&&K()!==r&&(bn=p0())!==r&&K()!==r&&hr()!==r?(us=Lt,ir=mt,(Zr=bn).parentheses=!0,mt=rl(ir,Zr),Lt=mt):(I=Lt,Lt=r);var ir,Zr;return Lt})())===r&&(j=I,(ur=ha())===r&&(ur=I,t.charCodeAt(I)===33?(Ir="!",I++):(Ir=r,zt===0&&is(Dc)),Ir===r?(I=ur,ur=r):(s=I,zt++,t.charCodeAt(I)===61?(er="=",I++):(er=r,zt===0&&is(t0)),zt--,er===r?s=void 0:(I=s,s=r),s===r?(I=ur,ur=r):ur=Ir=[Ir,s])),ur!==r&&(Ir=K())!==r&&(s=Ac())!==r?(us=j,j=ur=rl("NOT",s)):(I=j,j=r)),j}function mc(){var j,ur,Ir,s,er;return j=I,(ur=bi())!==r&&K()!==r?((Ir=(function(){var Lt;return(Lt=(function(){var mt=I,bn=[],ir=I,Zr,rs,vs,Ds;if((Zr=K())!==r&&(rs=Tc())!==r&&(vs=K())!==r&&(Ds=bi())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r),ir!==r)for(;ir!==r;)bn.push(ir),ir=I,(Zr=K())!==r&&(rs=Tc())!==r&&(vs=K())!==r&&(Ds=bi())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r);else bn=r;return bn!==r&&(us=mt,bn={type:"arithmetic",tail:bn}),mt=bn})())===r&&(Lt=(function(){var mt=I,bn,ir,Zr;return(bn=y0())!==r&&K()!==r&&(ir=P())!==r&&K()!==r&&(Zr=w0())!==r&&K()!==r&&hr()!==r?(us=mt,mt=bn={op:bn,right:Zr}):(I=mt,mt=r),mt===r&&(mt=I,(bn=y0())!==r&&K()!==r?((ir=da())===r&&(ir=Il())===r&&(ir=xa()),ir===r?(I=mt,mt=r):(us=mt,bn=(function(rs,vs){return{op:rs,right:vs}})(bn,ir),mt=bn)):(I=mt,mt=r)),mt})())===r&&(Lt=(function(){var mt=I,bn,ir,Zr;return(bn=(function(){var rs=I,vs=I,Ds,ut,De;return(Ds=ha())!==r&&(ut=K())!==r&&(De=Ou())!==r?vs=Ds=[Ds,ut,De]:(I=vs,vs=r),vs!==r&&(us=rs,vs=s0(vs)),(rs=vs)===r&&(rs=Ou()),rs})())!==r&&K()!==r&&(ir=bi())!==r&&K()!==r&&Ha()!==r&&K()!==r&&(Zr=bi())!==r?(us=mt,mt=bn={op:bn,right:{type:"expr_list",value:[ir,Zr]}}):(I=mt,mt=r),mt})())===r&&(Lt=(function(){var mt=I,bn,ir,Zr,rs;return(bn=zu())!==r&&(ir=K())!==r&&(Zr=bi())!==r?(us=mt,mt=bn={op:"IS",right:Zr}):(I=mt,mt=r),mt===r&&(mt=I,bn=I,(ir=zu())!==r&&(Zr=K())!==r&&(rs=ha())!==r?bn=ir=[ir,Zr,rs]:(I=bn,bn=r),bn!==r&&(ir=K())!==r&&(Zr=bi())!==r?(us=mt,bn=(function(vs){return{op:"IS NOT",right:vs}})(Zr),mt=bn):(I=mt,mt=r)),mt})())===r&&(Lt=(function(){var mt=I,bn,ir;return(bn=(function(){var Zr=I,rs=I,vs,Ds,ut;return(vs=ha())!==r&&(Ds=K())!==r&&(ut=Yu())!==r?rs=vs=[vs,Ds,ut]:(I=rs,rs=r),rs!==r&&(us=Zr,rs=s0(rs)),(Zr=rs)===r&&(Zr=Yu()),Zr})())!==r&&K()!==r?((ir=Nt())===r&&(ir=mc()),ir===r?(I=mt,mt=r):(us=mt,bn=R0(bn,ir),mt=bn)):(I=mt,mt=r),mt})())===r&&(Lt=(function(){var mt=I,bn,ir;return(bn=(function(){var Zr=I,rs=I,vs,Ds,ut;return(vs=ha())!==r&&(Ds=K())!==r&&(ut=lb())!==r?rs=vs=[vs,Ds,ut]:(I=rs,rs=r),rs!==r&&(us=Zr,rs=s0(rs)),(Zr=rs)===r&&(Zr=lb()),Zr})())!==r&&K()!==r?((ir=Nt())===r&&(ir=mc()),ir===r?(I=mt,mt=r):(us=mt,bn=R0(bn,ir),mt=bn)):(I=mt,mt=r),mt})()),Lt})())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,s=ur,j=ur=(er=Ir)===null?s:er.type==="arithmetic"?tl(s,er.tail):xu(er.op,s,er.right))):(I=j,j=r),j===r&&(j=Il())===r&&(j=ml()),j}function Tc(){var j;return t.substr(I,2)===">="?(j=">=",I+=2):(j=r,zt===0&&is(Rv)),j===r&&(t.charCodeAt(I)===62?(j=">",I++):(j=r,zt===0&&is(nv)),j===r&&(t.substr(I,2)==="<="?(j="<=",I+=2):(j=r,zt===0&&is(sv)),j===r&&(t.substr(I,2)==="<>"?(j="<>",I+=2):(j=r,zt===0&&is(ev)),j===r&&(t.charCodeAt(I)===60?(j="<",I++):(j=r,zt===0&&is(yc)),j===r&&(t.substr(I,2)==="=="?(j="==",I+=2):(j=r,zt===0&&is($c)),j===r&&(t.charCodeAt(I)===61?(j="=",I++):(j=r,zt===0&&is(t0)),j===r&&(t.substr(I,2)==="!="?(j="!=",I+=2):(j=r,zt===0&&is(Sf))))))))),j}function y0(){var j,ur,Ir,s,er;return j=I,ur=I,(Ir=ha())!==r&&(s=K())!==r&&(er=il())!==r?ur=Ir=[Ir,s,er]:(I=ur,ur=r),ur!==r&&(us=j,ur=s0(ur)),(j=ur)===r&&(j=il()),j}function bi(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=Z0())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Yc())!==r&&(mt=K())!==r&&(bn=Z0())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Yc())!==r&&(mt=K())!==r&&(bn=Z0())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=(function(ir,Zr){if(Zr&&Zr.length&&ir.type==="column_ref"&&ir.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...Le()}));return tl(ir,Zr)})(ur,Ir))}else I=j,j=r;return j}function Yc(){var j;return t.charCodeAt(I)===43?(j="+",I++):(j=r,zt===0&&is(Rl)),j===r&&(t.charCodeAt(I)===45?(j="-",I++):(j=r,zt===0&&is(ff))),j}function Z0(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=ab())!==r){for(Ir=[],s=I,(er=K())===r?(I=s,s=r):((Lt=lc())===r&&(Lt=Yn()),Lt!==r&&(mt=K())!==r&&(bn=ab())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r));s!==r;)Ir.push(s),s=I,(er=K())===r?(I=s,s=r):((Lt=lc())===r&&(Lt=Yn()),Lt!==r&&(mt=K())!==r&&(bn=ab())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r));Ir===r?(I=j,j=r):(us=j,j=ur=tl(ur,Ir))}else I=j,j=r;return j}function lc(){var j;return t.charCodeAt(I)===42?(j="*",I++):(j=r,zt===0&&is(Vf)),j===r&&(t.charCodeAt(I)===47?(j="/",I++):(j=r,zt===0&&is(Vv)),j===r&&(t.charCodeAt(I)===37?(j="%",I++):(j=r,zt===0&&is(db)))),j}function Ic(){var j,ur,Ir,s;return(j=(function(){var er=I,Lt,mt,bn,ir,Zr,rs;return(Lt=ni())!==r&&K()!==r&&P()!==r&&K()!==r&&(mt=Su())!==r&&K()!==r&&Va()!==r&&K()!==r&&(bn=Wt())!==r&&K()!==r&&(ir=hr())!==r?(us=er,Lt=(function(vs,Ds,ut){return{type:"cast",keyword:vs.toLowerCase(),expr:Ds,symbol:"as",target:[ut]}})(Lt,mt,bn),er=Lt):(I=er,er=r),er===r&&(er=I,(Lt=ni())!==r&&K()!==r&&P()!==r&&K()!==r&&(mt=Su())!==r&&K()!==r&&Va()!==r&&K()!==r&&(bn=cl())!==r&&K()!==r&&(ir=P())!==r&&K()!==r&&(Zr=qi())!==r&&K()!==r&&hr()!==r&&K()!==r&&(rs=hr())!==r?(us=er,Lt=(function(vs,Ds,ut){return{type:"cast",keyword:vs.toLowerCase(),expr:Ds,symbol:"as",target:[{dataType:"DECIMAL("+ut+")"}]}})(Lt,mt,Zr),er=Lt):(I=er,er=r),er===r&&(er=I,(Lt=ni())!==r&&K()!==r&&P()!==r&&K()!==r&&(mt=Su())!==r&&K()!==r&&Va()!==r&&K()!==r&&(bn=cl())!==r&&K()!==r&&(ir=P())!==r&&K()!==r&&(Zr=qi())!==r&&K()!==r&&Q()!==r&&K()!==r&&(rs=qi())!==r&&K()!==r&&hr()!==r&&K()!==r&&hr()!==r?(us=er,Lt=(function(vs,Ds,ut,De){return{type:"cast",keyword:vs.toLowerCase(),expr:Ds,symbol:"as",target:[{dataType:"DECIMAL("+ut+", "+De+")"}]}})(Lt,mt,Zr,rs),er=Lt):(I=er,er=r),er===r&&(er=I,(Lt=ni())!==r&&K()!==r&&P()!==r&&K()!==r&&(mt=Su())!==r&&K()!==r&&Va()!==r&&K()!==r&&(bn=(function(){var vs;return(vs=(function(){var Ds=I,ut,De,Qo;return t.substr(I,6).toLowerCase()==="signed"?(ut=t.substr(I,6),I+=6):(ut=r,zt===0&&is(mp)),ut===r?(I=Ds,Ds=r):(De=I,zt++,Qo=Ge(),zt--,Qo===r?De=void 0:(I=De,De=r),De===r?(I=Ds,Ds=r):(us=Ds,Ds=ut="SIGNED")),Ds})())===r&&(vs=a()),vs})())!==r&&K()!==r?((ir=Ma())===r&&(ir=null),ir!==r&&K()!==r&&(Zr=hr())!==r?(us=er,Lt=(function(vs,Ds,ut,De){return{type:"cast",keyword:vs.toLowerCase(),expr:Ds,symbol:"as",target:[{dataType:ut+(De?" "+De:"")}]}})(Lt,mt,bn,ir),er=Lt):(I=er,er=r)):(I=er,er=r)))),er})())===r&&(j=Nt())===r&&(j=ul())===r&&(j=(function(){var er;return(er=(function(){var Lt=I,mt,bn,ir;return(mt=(function(){var Zr=I,rs,vs,Ds;return t.substr(I,5).toLowerCase()==="count"?(rs=t.substr(I,5),I+=5):(rs=r,zt===0&&is(Rb)),rs===r?(I=Zr,Zr=r):(vs=I,zt++,Ds=Ge(),zt--,Ds===r?vs=void 0:(I=vs,vs=r),vs===r?(I=Zr,Zr=r):(us=Zr,Zr=rs="COUNT")),Zr})())!==r&&K()!==r&&P()!==r&&K()!==r&&(bn=(function(){var Zr=I,rs;return(rs=(function(){var vs=I,Ds;return t.charCodeAt(I)===42?(Ds="*",I++):(Ds=r,zt===0&&is(Vf)),Ds!==r&&(us=vs,Ds={type:"star",value:"*"}),vs=Ds})())!==r&&(us=Zr,rs={expr:rs}),(Zr=rs)===r&&(Zr=h0()),Zr})())!==r&&K()!==r&&hr()!==r&&K()!==r?((ir=cc())===r&&(ir=null),ir===r?(I=Lt,Lt=r):(us=Lt,mt=(function(Zr,rs,vs){return{type:"aggr_func",name:Zr,args:rs,over:vs}})(mt,bn,ir),Lt=mt)):(I=Lt,Lt=r),Lt})())===r&&(er=(function(){var Lt=I,mt,bn,ir;return(mt=(function(){var Zr;return(Zr=(function(){var rs=I,vs,Ds,ut;return t.substr(I,3).toLowerCase()==="sum"?(vs=t.substr(I,3),I+=3):(vs=r,zt===0&&is(Mp)),vs===r?(I=rs,rs=r):(Ds=I,zt++,ut=Ge(),zt--,ut===r?Ds=void 0:(I=Ds,Ds=r),Ds===r?(I=rs,rs=r):(us=rs,rs=vs="SUM")),rs})())===r&&(Zr=(function(){var rs=I,vs,Ds,ut;return t.substr(I,3).toLowerCase()==="max"?(vs=t.substr(I,3),I+=3):(vs=r,zt===0&&is(Ff)),vs===r?(I=rs,rs=r):(Ds=I,zt++,ut=Ge(),zt--,ut===r?Ds=void 0:(I=Ds,Ds=r),Ds===r?(I=rs,rs=r):(us=rs,rs=vs="MAX")),rs})())===r&&(Zr=(function(){var rs=I,vs,Ds,ut;return t.substr(I,3).toLowerCase()==="min"?(vs=t.substr(I,3),I+=3):(vs=r,zt===0&&is(kp)),vs===r?(I=rs,rs=r):(Ds=I,zt++,ut=Ge(),zt--,ut===r?Ds=void 0:(I=Ds,Ds=r),Ds===r?(I=rs,rs=r):(us=rs,rs=vs="MIN")),rs})())===r&&(Zr=(function(){var rs=I,vs,Ds,ut;return t.substr(I,3).toLowerCase()==="avg"?(vs=t.substr(I,3),I+=3):(vs=r,zt===0&&is(rp)),vs===r?(I=rs,rs=r):(Ds=I,zt++,ut=Ge(),zt--,ut===r?Ds=void 0:(I=Ds,Ds=r),Ds===r?(I=rs,rs=r):(us=rs,rs=vs="AVG")),rs})()),Zr})())!==r&&K()!==r&&P()!==r&&K()!==r&&(bn=bi())!==r&&K()!==r&&hr()!==r&&K()!==r?((ir=cc())===r&&(ir=null),ir===r?(I=Lt,Lt=r):(us=Lt,mt=(function(Zr,rs,vs){return{type:"aggr_func",name:Zr,args:{expr:rs},over:vs,...Le()}})(mt,bn,ir),Lt=mt)):(I=Lt,Lt=r),Lt})())===r&&(er=(function(){var Lt=I,mt=I,bn,ir,Zr,rs;return(bn=aa())!==r&&(ir=K())!==r&&(Zr=Y())!==r?mt=bn=[bn,ir,Zr]:(I=mt,mt=r),mt===r&&(mt=null),mt!==r&&(bn=K())!==r&&(ir=(function(){var vs=I,Ds,ut,De;return t.substr(I,9).toLowerCase()==="array_agg"?(Ds=t.substr(I,9),I+=9):(Ds=r,zt===0&&is($p)),Ds===r?(I=vs,vs=r):(ut=I,zt++,De=Ge(),zt--,De===r?ut=void 0:(I=ut,ut=r),ut===r?(I=vs,vs=r):(us=vs,vs=Ds="ARRAY_AGG")),vs})())!==r&&(Zr=K())!==r&&P()!==r&&K()!==r&&(rs=h0())!==r&&K()!==r&&hr()!==r?(us=Lt,mt=(function(vs,Ds,ut){return{type:"aggr_func",name:vs?`${vs[0]}.${Ds}`:Ds,args:ut}})(mt,ir,rs),Lt=mt):(I=Lt,Lt=r),Lt})()),er})())===r&&(j=xa())===r&&(j=(function(){var er,Lt,mt,bn,ir,Zr,rs,vs;return er=I,Di()!==r&&K()!==r&&(Lt=Ye())!==r&&K()!==r?((mt=z0())===r&&(mt=null),mt!==r&&K()!==r&&(bn=Ya())!==r&&K()!==r?((ir=Di())===r&&(ir=null),ir===r?(I=er,er=r):(us=er,rs=Lt,(vs=mt)&&rs.push(vs),er={type:"case",expr:null,args:rs})):(I=er,er=r)):(I=er,er=r),er===r&&(er=I,Di()!==r&&K()!==r&&(Lt=Su())!==r&&K()!==r&&(mt=Ye())!==r&&K()!==r?((bn=z0())===r&&(bn=null),bn!==r&&K()!==r&&(ir=Ya())!==r&&K()!==r?((Zr=Di())===r&&(Zr=null),Zr===r?(I=er,er=r):(us=er,er=(function(Ds,ut,De){return De&&ut.push(De),{type:"case",expr:Ds,args:ut}})(Lt,mt,bn))):(I=er,er=r)):(I=er,er=r)),er})())===r&&(j=I,(ur=ml())!==r&&K()!==r&&(Ir=xs())!==r?(us=j,j=ur=(function(er,Lt){return er.array_index=Lt,er})(ur,Ir)):(I=j,j=r),j===r&&(j=ml())===r&&(j=Zl())===r&&(j=I,(ur=P())!==r&&K()!==r&&(Ir=Al())!==r&&K()!==r&&hr()!==r?(us=j,(s=Ir).parentheses=!0,j=ur=s):(I=j,j=r),j===r&&(j=da()))),j}function ab(){var j,ur,Ir,s,er;return(j=(function(){var Lt,mt,bn,ir,Zr,rs,vs,Ds;if(Lt=I,(mt=J0())!==r)if(K()!==r){for(bn=[],ir=I,(Zr=K())===r?(I=ir,ir=r):(t.substr(I,2)==="?|"?(rs="?|",I+=2):(rs=r,zt===0&&is(Pc)),rs===r&&(t.substr(I,2)==="?&"?(rs="?&",I+=2):(rs=r,zt===0&&is(H0)),rs===r&&(t.charCodeAt(I)===63?(rs="?",I++):(rs=r,zt===0&&is(bf)),rs===r&&(t.substr(I,2)==="#-"?(rs="#-",I+=2):(rs=r,zt===0&&is(Lb)),rs===r&&(t.substr(I,3)==="#>>"?(rs="#>>",I+=3):(rs=r,zt===0&&is(Fa)),rs===r&&(t.substr(I,2)==="#>"?(rs="#>",I+=2):(rs=r,zt===0&&is(Kf)),rs===r&&(rs=Mr())===r&&(t.substr(I,2)==="@>"?(rs="@>",I+=2):(rs=r,zt===0&&is(Nv)),rs===r&&(t.substr(I,2)==="<@"?(rs="<@",I+=2):(rs=r,zt===0&&is(Gb))))))))),rs!==r&&(vs=K())!==r&&(Ds=J0())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r));ir!==r;)bn.push(ir),ir=I,(Zr=K())===r?(I=ir,ir=r):(t.substr(I,2)==="?|"?(rs="?|",I+=2):(rs=r,zt===0&&is(Pc)),rs===r&&(t.substr(I,2)==="?&"?(rs="?&",I+=2):(rs=r,zt===0&&is(H0)),rs===r&&(t.charCodeAt(I)===63?(rs="?",I++):(rs=r,zt===0&&is(bf)),rs===r&&(t.substr(I,2)==="#-"?(rs="#-",I+=2):(rs=r,zt===0&&is(Lb)),rs===r&&(t.substr(I,3)==="#>>"?(rs="#>>",I+=3):(rs=r,zt===0&&is(Fa)),rs===r&&(t.substr(I,2)==="#>"?(rs="#>",I+=2):(rs=r,zt===0&&is(Kf)),rs===r&&(rs=Mr())===r&&(t.substr(I,2)==="@>"?(rs="@>",I+=2):(rs=r,zt===0&&is(Nv)),rs===r&&(t.substr(I,2)==="<@"?(rs="<@",I+=2):(rs=r,zt===0&&is(Gb))))))))),rs!==r&&(vs=K())!==r&&(Ds=J0())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r));bn===r?(I=Lt,Lt=r):(us=Lt,ut=mt,mt=(De=bn)&&De.length!==0?tl(ut,De):ut,Lt=mt)}else I=Lt,Lt=r;else I=Lt,Lt=r;var ut,De;return Lt})())===r&&(j=I,(ur=(function(){var Lt;return t.charCodeAt(I)===33?(Lt="!",I++):(Lt=r,zt===0&&is(Dc)),Lt===r&&(t.charCodeAt(I)===45?(Lt="-",I++):(Lt=r,zt===0&&is(ff)),Lt===r&&(t.charCodeAt(I)===43?(Lt="+",I++):(Lt=r,zt===0&&is(Rl)),Lt===r&&(t.charCodeAt(I)===126?(Lt="~",I++):(Lt=r,zt===0&&is(Of))))),Lt})())===r?(I=j,j=r):(Ir=I,(s=K())!==r&&(er=ab())!==r?Ir=s=[s,er]:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur=rl(ur,Ir[1])))),j}function J0(){var j,ur,Ir,s,er;return j=I,(ur=Ic())!==r&&K()!==r?((Ir=xs())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,s=ur,(er=Ir)&&(s.array_index=er),j=ur=s)):(I=j,j=r),j}function ml(){var j,ur,Ir,s,er,Lt,mt,bn,ir,Zr,rs,vs;if(j=I,(ur=aa())!==r)if(Ir=I,(s=K())!==r&&(er=Y())!==r&&(Lt=K())!==r&&(mt=aa())!==r?Ir=s=[s,er,Lt,mt]:(I=Ir,Ir=r),Ir!==r){if(s=[],er=I,(Lt=K())!==r&&(mt=Y())!==r&&(bn=K())!==r&&(ir=Zi())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r),er!==r)for(;er!==r;)s.push(er),er=I,(Lt=K())!==r&&(mt=Y())!==r&&(bn=K())!==r&&(ir=Zi())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r);else s=r;s===r?(I=j,j=r):(er=I,(Lt=K())!==r&&(mt=Jb())!==r?er=Lt=[Lt,mt]:(I=er,er=r),er===r&&(er=null),er===r?(I=j,j=r):(us=j,j=ur=(function(Ds,ut,De,Qo){return De.length===1?(Zo.add(`select::${Ds}.${ut[3]}::${De[0][3].value||De[0][3]}`),{type:"column_ref",schema:Ds,table:ut[3],column:De[0][3],collate:Qo&&Qo[1]}):{type:"column_ref",column:{expr:tl(xu(".",Ds,ut[3]),De)},collate:Qo&&Qo[1]}})(ur,Ir,s,er)))}else I=j,j=r;else I=j,j=r;return j===r&&(j=I,(ur=aa())!==r&&(Ir=K())!==r&&(s=Y())!==r&&(er=K())!==r&&(Lt=Zi())!==r?(mt=I,(bn=K())!==r&&(ir=Jb())!==r?mt=bn=[bn,ir]:(I=mt,mt=r),mt===r&&(mt=null),mt===r?(I=j,j=r):(us=j,Zr=ur,rs=Lt,vs=mt,Zo.add(`select::${Zr}::${rs}`),j=ur={type:"column_ref",table:Zr,column:rs,collate:vs&&vs[1]})):(I=j,j=r),j===r&&(j=I,(ur=Zi())===r?(I=j,j=r):(Ir=I,(s=K())!==r&&(er=Jb())!==r?Ir=s=[s,er]:(I=Ir,Ir=r),Ir===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur=(function(Ds,ut){return Zo.add("select::null::"+Ds),{type:"column_ref",table:null,column:Ds,collate:ut&&ut[1]}})(ur,Ir))))),j}function Ul(){var j,ur;return j=I,(ur=Ii())!==r&&(us=j,ur={type:"default",value:ur}),(j=ur)===r&&(j=If()),j}function aa(){var j,ur;return j=I,(ur=Ii())===r?(I=j,j=r):(us=I,(hc(ur)?r:void 0)===r?(I=j,j=r):(us=j,j=ur=ur)),j===r&&(j=I,(ur=Tl())!==r&&(us=j,ur=ur),j=ur),j}function Tf(){var j,ur;return j=I,(ur=Ii())===r?(I=j,j=r):(us=I,((function(Ir){if(Ml[Ir.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(Ir)+" is a reserved word, can not as alias clause");return!1})(ur)?r:void 0)===r?(I=j,j=r):(us=j,j=ur=ur)),j===r&&(j=I,(ur=Tl())!==r&&(us=j,ur=ur),j=ur),j}function If(){var j;return(j=Ci())===r&&(j=Q0())===r&&(j=ib()),j}function Tl(){var j,ur;return j=I,(ur=Ci())===r&&(ur=Q0())===r&&(ur=ib()),ur!==r&&(us=j,ur=ur.value),j=ur}function Ci(){var j,ur,Ir,s;if(j=I,t.charCodeAt(I)===34?(ur='"',I++):(ur=r,zt===0&&is(Bl)),ur!==r){if(Ir=[],sl.test(t.charAt(I))?(s=t.charAt(I),I++):(s=r,zt===0&&is(sc)),s!==r)for(;s!==r;)Ir.push(s),sl.test(t.charAt(I))?(s=t.charAt(I),I++):(s=r,zt===0&&is(sc));else Ir=r;Ir===r?(I=j,j=r):(t.charCodeAt(I)===34?(s='"',I++):(s=r,zt===0&&is(Bl)),s===r?(I=j,j=r):(us=j,j=ur={type:"double_quote_string",value:Ir.join("")}))}else I=j,j=r;return j}function Q0(){var j,ur,Ir,s;if(j=I,t.charCodeAt(I)===39?(ur="'",I++):(ur=r,zt===0&&is(ei)),ur!==r){if(Ir=[],Y0.test(t.charAt(I))?(s=t.charAt(I),I++):(s=r,zt===0&&is(N0)),s!==r)for(;s!==r;)Ir.push(s),Y0.test(t.charAt(I))?(s=t.charAt(I),I++):(s=r,zt===0&&is(N0));else Ir=r;Ir===r?(I=j,j=r):(t.charCodeAt(I)===39?(s="'",I++):(s=r,zt===0&&is(ei)),s===r?(I=j,j=r):(us=j,j=ur={type:"single_quote_string",value:Ir.join("")}))}else I=j,j=r;return j}function ib(){var j,ur,Ir,s;if(j=I,t.charCodeAt(I)===96?(ur="`",I++):(ur=r,zt===0&&is(ov)),ur!==r){if(Ir=[],Fb.test(t.charAt(I))?(s=t.charAt(I),I++):(s=r,zt===0&&is(e0)),s!==r)for(;s!==r;)Ir.push(s),Fb.test(t.charAt(I))?(s=t.charAt(I),I++):(s=r,zt===0&&is(e0));else Ir=r;Ir===r?(I=j,j=r):(t.charCodeAt(I)===96?(s="`",I++):(s=r,zt===0&&is(ov)),s===r?(I=j,j=r):(us=j,j=ur={type:"backticks_quote_string",value:Ir.join("")}))}else I=j,j=r;return j}function fa(){var j,ur;return j=I,(ur=rf())!==r&&(us=j,ur=ur),(j=ur)===r&&(j=Tl()),j}function Zi(){var j,ur;return j=I,(ur=rf())===r?(I=j,j=r):(us=I,(hc(ur)?r:void 0)===r?(I=j,j=r):(us=j,j=ur=ur)),j===r&&(j=Tl()),j}function rf(){var j,ur,Ir,s;if(j=I,(ur=$0())!==r){for(Ir=[],s=gf();s!==r;)Ir.push(s),s=gf();Ir===r?(I=j,j=r):(us=j,j=ur=Cb(ur,Ir))}else I=j,j=r;return j}function Ii(){var j,ur,Ir,s;if(j=I,(ur=Ge())!==r){for(Ir=[],s=$0();s!==r;)Ir.push(s),s=$0();Ir===r?(I=j,j=r):(us=j,j=ur=Cb(ur,Ir))}else I=j,j=r;return j}function Ge(){var j;return _0.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(zf)),j}function $0(){var j;return je.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(o0)),j}function gf(){var j;return xi.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(xf)),j}function Zl(){var j,ur,Ir,s;return j=I,ur=I,t.charCodeAt(I)===58?(Ir=":",I++):(Ir=r,zt===0&&is(Zf)),Ir!==r&&(s=Ii())!==r?ur=Ir=[Ir,s]:(I=ur,ur=r),ur!==r&&(us=j,ur={type:"param",value:ur[1]}),j=ur}function Xa(){var j,ur,Ir;return j=I,ia()!==r&&K()!==r&&al()!==r&&K()!==r&&(ur=Fr())!==r&&K()!==r&&P()!==r&&K()!==r?((Ir=w0())===r&&(Ir=null),Ir!==r&&K()!==r&&hr()!==r?(us=j,j={type:"on update",keyword:ur,parentheses:!0,expr:Ir}):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,ia()!==r&&K()!==r&&al()!==r&&K()!==r&&(ur=Fr())!==r?(us=j,j=(function(s){return{type:"on update",keyword:s}})(ur)):(I=j,j=r)),j}function cc(){var j,ur,Ir,s,er;return j=I,t.substr(I,4).toLowerCase()==="over"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(W0)),ur!==r&&K()!==r&&(Ir=C0())!==r?(us=j,j=ur={type:"window",as_window_specification:Ir}):(I=j,j=r),j===r&&(j=I,t.substr(I,4).toLowerCase()==="over"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(W0)),ur!==r&&K()!==r&&(Ir=P())!==r&&K()!==r?((s=Oa())===r&&(s=null),s!==r&&K()!==r?((er=wa())===r&&(er=null),er!==r&&K()!==r&&hr()!==r?(us=j,j=ur={partitionby:s,orderby:er}):(I=j,j=r)):(I=j,j=r)):(I=j,j=r),j===r&&(j=Xa())),j}function h0(){var j,ur,Ir,s,er,Lt,mt,bn,ir,Zr,rs,vs,Ds;if(j=I,(ur=Ua())===r&&(ur=null),ur!==r)if(K()!==r)if((Ir=P())!==r)if(K()!==r)if((s=Su())!==r)if((er=K())!==r)if((Lt=hr())!==r)if((mt=K())!==r){for(bn=[],ir=I,(Zr=K())===r?(I=ir,ir=r):((rs=Ha())===r&&(rs=ln())===r&&(rs=kn()),rs!==r&&(vs=K())!==r&&(Ds=Su())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r));ir!==r;)bn.push(ir),ir=I,(Zr=K())===r?(I=ir,ir=r):((rs=Ha())===r&&(rs=ln())===r&&(rs=kn()),rs!==r&&(vs=K())!==r&&(Ds=Su())!==r?ir=Zr=[Zr,rs,vs,Ds]:(I=ir,ir=r));bn!==r&&(ir=K())!==r?((Zr=wa())===r&&(Zr=null),Zr===r?(I=j,j=r):(us=j,j=ur=(function(ut,De,Qo,A){let nr=Qo.length,yr=De;yr.parentheses=!0;for(let Ar=0;Ar<nr;++Ar)yr=xu(Qo[Ar][1],yr,Qo[Ar][3]);return{distinct:ut,expr:yr,orderby:A}})(ur,s,bn,Zr))):(I=j,j=r)}else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;if(j===r)if(j=I,(ur=Ua())===r&&(ur=null),ur!==r)if(K()!==r)if((Ir=ml())===r&&(Ir=L0()),Ir!==r)if(K()!==r){for(s=[],er=I,(Lt=K())===r?(I=er,er=r):((mt=Q())===r&&(mt=kn()),mt!==r&&(bn=K())!==r&&(ir=Su())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r));er!==r;)s.push(er),er=I,(Lt=K())===r?(I=er,er=r):((mt=Q())===r&&(mt=kn()),mt!==r&&(bn=K())!==r&&(ir=Su())!==r?er=Lt=[Lt,mt,bn,ir]:(I=er,er=r));s!==r&&(er=K())!==r?((Lt=wa())===r&&(Lt=null),Lt===r?(I=j,j=r):(us=j,j=ur=(function(ut,De,Qo,A){let nr=Qo.length,yr=De;for(let Ar=0;Ar<nr;++Ar)yr=xu(Qo[Ar][1],yr,Qo[Ar][3]);return{distinct:ut,expr:yr,orderby:A}})(ur,Ir,s,Lt))):(I=j,j=r)}else I=j,j=r;else I=j,j=r;else I=j,j=r;else I=j,j=r;return j}function n(){var j,ur,Ir,s;return j=I,(ur=Ul())!==r&&K()!==r&&(Ir=Mr())!==r&&K()!==r&&(s=Su())!==r?(us=j,j=ur=xu(Ir,ur,s)):(I=j,j=r),j}function st(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="filter"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(jb)),ur!==r&&K()!==r&&P()!==r&&K()!==r&&(Ir=Su())!==r&&K()!==r&&Q()!==r&&K()!==r&&(s=n())!==r&&K()!==r&&hr()!==r?(us=j,j=ur={type:"function",name:{name:[{type:"origin",value:"filter"}]},args:{type:"expr_list",value:[Ir,s]},...Le()}):(I=j,j=r),j}function gi(){var j,ur,Ir;return j=I,(ur=(function(){var s;return t.substr(I,4).toLowerCase()==="both"?(s=t.substr(I,4),I+=4):(s=r,zt===0&&is(Uf)),s===r&&(t.substr(I,7).toLowerCase()==="leading"?(s=t.substr(I,7),I+=7):(s=r,zt===0&&is(u0)),s===r&&(t.substr(I,8).toLowerCase()==="trailing"?(s=t.substr(I,8),I+=8):(s=r,zt===0&&is(wb)))),s})())===r&&(ur=null),ur!==r&&K()!==r?((Ir=Su())===r&&(Ir=null),Ir!==r&&K()!==r&&Ql()!==r?(us=j,j=ur=(function(s,er,Lt){let mt=[];return s&&mt.push({type:"origin",value:s}),er&&mt.push(er),mt.push({type:"origin",value:"from"}),{type:"expr_list",value:mt}})(ur,Ir)):(I=j,j=r)):(I=j,j=r),j}function xa(){var j,ur,Ir,s,er;return j=I,(ur=(function(){var Lt;return(Lt=or())===r&&(Lt=(function(){var mt=I,bn,ir,Zr;return t.substr(I,12).toLowerCase()==="current_user"?(bn=t.substr(I,12),I+=12):(bn=r,zt===0&&is(gp)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):(us=mt,mt=bn="CURRENT_USER")),mt})())===r&&(Lt=(function(){var mt=I,bn,ir,Zr;return t.substr(I,4).toLowerCase()==="user"?(bn=t.substr(I,4),I+=4):(bn=r,zt===0&&is(Ip)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):(us=mt,mt=bn="USER")),mt})())===r&&(Lt=(function(){var mt=I,bn,ir,Zr;return t.substr(I,12).toLowerCase()==="session_user"?(bn=t.substr(I,12),I+=12):(bn=r,zt===0&&is(sd)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):(us=mt,mt=bn="SESSION_USER")),mt})())===r&&(Lt=(function(){var mt=I,bn,ir,Zr;return t.substr(I,11).toLowerCase()==="system_user"?(bn=t.substr(I,11),I+=11):(bn=r,zt===0&&is(ed)),bn===r?(I=mt,mt=r):(ir=I,zt++,Zr=Ge(),zt--,Zr===r?ir=void 0:(I=ir,ir=r),ir===r?(I=mt,mt=r):(us=mt,mt=bn="SYSTEM_USER")),mt})()),Lt})())!==r&&K()!==r&&(Ir=P())!==r&&K()!==r?((s=w0())===r&&(s=null),s!==r&&K()!==r&&hr()!==r&&K()!==r?((er=cc())===r&&(er=null),er===r?(I=j,j=r):(us=j,j=ur=(function(Lt,mt,bn){return{type:"function",name:{name:[{type:"origin",value:Lt}]},args:mt||{type:"expr_list",value:[]},over:bn,...Le()}})(ur,s,er))):(I=j,j=r)):(I=j,j=r),j===r&&(j=(function(){var Lt=I,mt,bn,ir,Zr;(mt=Oe())!==r&&K()!==r&&P()!==r&&K()!==r&&(bn=Ra())!==r&&K()!==r&&Ql()!==r&&K()!==r?((ir=Lr())===r&&(ir=Or())===r&&(ir=k())===r&&(ir=bu()),ir===r&&(ir=null),ir!==r&&K()!==r&&(Zr=Su())!==r&&K()!==r&&hr()!==r?(us=Lt,rs=bn,vs=ir,Ds=Zr,mt={type:mt.toLowerCase(),args:{field:rs,cast_type:vs,source:Ds},...Le()},Lt=mt):(I=Lt,Lt=r)):(I=Lt,Lt=r);var rs,vs,Ds;return Lt===r&&(Lt=I,(mt=Oe())!==r&&K()!==r&&P()!==r&&K()!==r&&(bn=Ra())!==r&&K()!==r&&Ql()!==r&&K()!==r&&(ir=Su())!==r&&K()!==r&&(Zr=hr())!==r?(us=Lt,mt=(function(ut,De,Qo){return{type:ut.toLowerCase(),args:{field:De,source:Qo},...Le()}})(mt,bn,ir),Lt=mt):(I=Lt,Lt=r)),Lt})())===r&&(j=st())===r&&(j=(function(){var Lt,mt,bn,ir;return Lt=I,t.substr(I,4).toLowerCase()==="trim"?(mt=t.substr(I,4),I+=4):(mt=r,zt===0&&is(Ui)),mt!==r&&K()!==r&&P()!==r&&K()!==r?((bn=gi())===r&&(bn=null),bn!==r&&K()!==r&&(ir=Li())!==r&&K()!==r&&hr()!==r?(us=Lt,Lt=mt=(function(Zr,rs){let vs=Zr||{type:"expr_list",value:[]};return vs.value.push(rs),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:vs}})(bn,ir)):(I=Lt,Lt=r)):(I=Lt,Lt=r),Lt})())===r&&(j=I,(ur=or())!==r&&K()!==r?((Ir=Xa())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur={type:"function",name:{name:[{type:"origin",value:ur}]},over:Ir,...Le()})):(I=j,j=r),j===r&&(j=I,(ur=bu())===r&&(ur=k())===r&&(ur=Lr())===r&&(t.substr(I,12).toLowerCase()==="at time zone"?(ur=t.substr(I,12),I+=12):(ur=r,zt===0&&is(uv))),ur!==r&&K()!==r?((Ir=Al())===r&&(Ir=null),Ir!==r&&K()!==r?((s=cc())===r&&(s=null),s===r?(I=j,j=r):(us=j,j=ur=(function(Lt,mt,bn){return mt&&mt.type!=="expr_list"&&(mt={type:"expr_list",value:[mt]}),{type:"function",name:{name:[{type:"default",value:Lt}]},args:mt||{type:"expr_list",value:[]},over:bn,args_parentheses:!1,...Le()}})(ur,Ir,s))):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,(ur=Co())!==r&&K()!==r&&(Ir=P())!==r&&K()!==r?((s=Al())===r&&(s=null),s!==r&&K()!==r&&hr()!==r&&K()!==r?((er=cc())===r&&(er=null),er===r?(I=j,j=r):(us=j,j=ur=(function(Lt,mt,bn){return mt&&mt.type!=="expr_list"&&(mt={type:"expr_list",value:[mt]}),{type:"function",name:Lt,args:mt||{type:"expr_list",value:[]},over:bn,...Le()}})(ur,s,er))):(I=j,j=r)):(I=j,j=r)))),j}function Ra(){var j,ur;return j=I,t.substr(I,7).toLowerCase()==="century"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(yb)),ur===r&&(t.substr(I,3).toLowerCase()==="day"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(hb)),ur===r&&(t.substr(I,4).toLowerCase()==="date"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Kv)),ur===r&&(t.substr(I,6).toLowerCase()==="decade"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Gc)),ur===r&&(t.substr(I,3).toLowerCase()==="dow"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(_v)),ur===r&&(t.substr(I,3).toLowerCase()==="doy"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(kf)),ur===r&&(t.substr(I,5).toLowerCase()==="epoch"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(vf)),ur===r&&(t.substr(I,4).toLowerCase()==="hour"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(ki)),ur===r&&(t.substr(I,6).toLowerCase()==="isodow"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Hl)),ur===r&&(t.substr(I,7).toLowerCase()==="isoyear"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Eb)),ur===r&&(t.substr(I,12).toLowerCase()==="microseconds"?(ur=t.substr(I,12),I+=12):(ur=r,zt===0&&is(Bb)),ur===r&&(t.substr(I,10).toLowerCase()==="millennium"?(ur=t.substr(I,10),I+=10):(ur=r,zt===0&&is(pa)),ur===r&&(t.substr(I,12).toLowerCase()==="milliseconds"?(ur=t.substr(I,12),I+=12):(ur=r,zt===0&&is(wl)),ur===r&&(t.substr(I,6).toLowerCase()==="minute"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Nl)),ur===r&&(t.substr(I,5).toLowerCase()==="month"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(Sv)),ur===r&&(t.substr(I,7).toLowerCase()==="quarter"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Hb)),ur===r&&(t.substr(I,6).toLowerCase()==="second"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Jf)),ur===r&&(t.substr(I,8).toLowerCase()==="timezone"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(pf)),ur===r&&(t.substr(I,13).toLowerCase()==="timezone_hour"?(ur=t.substr(I,13),I+=13):(ur=r,zt===0&&is(Yb)),ur===r&&(t.substr(I,15).toLowerCase()==="timezone_minute"?(ur=t.substr(I,15),I+=15):(ur=r,zt===0&&is(av)),ur===r&&(t.substr(I,4).toLowerCase()==="week"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(iv)),ur===r&&(t.substr(I,4).toLowerCase()==="year"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(a0))))))))))))))))))))))),ur!==r&&(us=j,ur=ur),j=ur}function or(){var j;return(j=(function(){var ur=I,Ir,s,er;return t.substr(I,12).toLowerCase()==="current_date"?(Ir=t.substr(I,12),I+=12):(Ir=r,zt===0&&is(td)),Ir===r?(I=ur,ur=r):(s=I,zt++,er=Ge(),zt--,er===r?s=void 0:(I=s,s=r),s===r?(I=ur,ur=r):(us=ur,ur=Ir="CURRENT_DATE")),ur})())===r&&(j=(function(){var ur=I,Ir,s,er;return t.substr(I,12).toLowerCase()==="current_time"?(Ir=t.substr(I,12),I+=12):(Ir=r,zt===0&&is(Bp)),Ir===r?(I=ur,ur=r):(s=I,zt++,er=Ge(),zt--,er===r?s=void 0:(I=s,s=r),s===r?(I=ur,ur=r):(us=ur,ur=Ir="CURRENT_TIME")),ur})())===r&&(j=Fr()),j}function Nt(){var j;return(j=Il())===r&&(j=fc())===r&&(j=(function(){var ur=I,Ir;return(Ir=(function(){var s=I,er,Lt,mt;return t.substr(I,4).toLowerCase()==="true"?(er=t.substr(I,4),I+=4):(er=r,zt===0&&is(sa)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):s=er=[er,Lt]),s})())!==r&&(us=ur,Ir={type:"bool",value:!0}),(ur=Ir)===r&&(ur=I,(Ir=(function(){var s=I,er,Lt,mt;return t.substr(I,5).toLowerCase()==="false"?(er=t.substr(I,5),I+=5):(er=r,zt===0&&is(Hi)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):s=er=[er,Lt]),s})())!==r&&(us=ur,Ir={type:"bool",value:!1}),ur=Ir),ur})())===r&&(j=ju())===r&&(j=(function(){var ur=I,Ir,s,er,Lt,mt;if((Ir=k())===r&&(Ir=bu())===r&&(Ir=Lr())===r&&(Ir=Ht()),Ir!==r)if(K()!==r){if(s=I,t.charCodeAt(I)===39?(er="'",I++):(er=r,zt===0&&is(ei)),er!==r){for(Lt=[],mt=Kr();mt!==r;)Lt.push(mt),mt=Kr();Lt===r?(I=s,s=r):(t.charCodeAt(I)===39?(mt="'",I++):(mt=r,zt===0&&is(ei)),mt===r?(I=s,s=r):s=er=[er,Lt,mt])}else I=s,s=r;s===r?(I=ur,ur=r):(us=ur,Ir=Yl(Ir,s),ur=Ir)}else I=ur,ur=r;else I=ur,ur=r;if(ur===r)if(ur=I,(Ir=k())===r&&(Ir=bu())===r&&(Ir=Lr())===r&&(Ir=Ht()),Ir!==r)if(K()!==r){if(s=I,t.charCodeAt(I)===34?(er='"',I++):(er=r,zt===0&&is(Bl)),er!==r){for(Lt=[],mt=Wc();mt!==r;)Lt.push(mt),mt=Wc();Lt===r?(I=s,s=r):(t.charCodeAt(I)===34?(mt='"',I++):(mt=r,zt===0&&is(Bl)),mt===r?(I=s,s=r):s=er=[er,Lt,mt])}else I=s,s=r;s===r?(I=ur,ur=r):(us=ur,Ir=Yl(Ir,s),ur=Ir)}else I=ur,ur=r;else I=ur,ur=r;return ur})())===r&&(j=(function(){var ur=I,Ir,s;return(Ir=ui())!==r&&K()!==r&&ht()!==r&&K()!==r?((s=w0())===r&&(s=null),s!==r&&K()!==r&&e()!==r?(us=ur,Ir=(function(er,Lt){return{expr_list:Lt||{type:"origin",value:""},type:"array",keyword:"array",brackets:!0}})(0,s),ur=Ir):(I=ur,ur=r)):(I=ur,ur=r),ur})()),j}function ju(){var j,ur;return j=I,(ur=(function(){var Ir=I,s,er,Lt;return t.substr(I,4).toLowerCase()==="null"?(s=t.substr(I,4),I+=4):(s=r,zt===0&&is(ma)),s===r?(I=Ir,Ir=r):(er=I,zt++,Lt=Ge(),zt--,Lt===r?er=void 0:(I=er,er=r),er===r?(I=Ir,Ir=r):Ir=s=[s,er]),Ir})())!==r&&(us=j,ur={type:"null",value:null}),j=ur}function Il(){var j,ur,Ir,s,er,Lt;if(j=I,t.substr(I,2).toLowerCase()==="u&"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(_l)),ur!==r){if(Ir=I,t.charCodeAt(I)===39?(s="'",I++):(s=r,zt===0&&is(ei)),s!==r){for(er=[],Lt=Kr();Lt!==r;)er.push(Lt),Lt=Kr();er===r?(I=Ir,Ir=r):(t.charCodeAt(I)===39?(Lt="'",I++):(Lt=r,zt===0&&is(ei)),Lt===r?(I=Ir,Ir=r):Ir=s=[s,er,Lt])}else I=Ir,Ir=r;Ir===r?(I=j,j=r):(us=j,j=ur={type:"unicode_string",value:Ir[1].join("")})}else I=j,j=r;if(j===r){if(j=I,ur=I,t.charCodeAt(I)===39?(Ir="'",I++):(Ir=r,zt===0&&is(ei)),Ir!==r){for(s=[],er=Kr();er!==r;)s.push(er),er=Kr();s===r?(I=ur,ur=r):(t.charCodeAt(I)===39?(er="'",I++):(er=r,zt===0&&is(ei)),er===r?(I=ur,ur=r):ur=Ir=[Ir,s,er])}else I=ur,ur=r;if(ur!==r&&(us=j,ur=(function(mt){return{type:"single_quote_string",value:mt[1].join("")}})(ur)),(j=ur)===r){if(j=I,ur=I,t.charCodeAt(I)===34?(Ir='"',I++):(Ir=r,zt===0&&is(Bl)),Ir!==r){for(s=[],er=Wc();er!==r;)s.push(er),er=Wc();s===r?(I=ur,ur=r):(t.charCodeAt(I)===34?(er='"',I++):(er=r,zt===0&&is(Bl)),er===r?(I=ur,ur=r):ur=Ir=[Ir,s,er])}else I=ur,ur=r;ur!==r&&(Ir=K())!==r?(s=I,zt++,(er=Y())===r&&(er=P()),zt--,er===r?s=void 0:(I=s,s=r),s===r?(I=j,j=r):(us=j,j=ur=(function(mt){return{type:"double_quote_string",value:mt[1].join("")}})(ur))):(I=j,j=r)}}return j}function Wc(){var j;return Ab.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(Mf)),j===r&&(j=Mb()),j}function Kr(){var j;return Wb.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(Df)),j===r&&(j=Mb()),j}function Mb(){var j,ur,Ir,s,er,Lt,mt,bn,ir,Zr;return j=I,t.substr(I,2)==="\\'"?(ur="\\'",I+=2):(ur=r,zt===0&&is(mb)),ur!==r&&(us=j,ur="\\'"),(j=ur)===r&&(j=I,t.substr(I,2)==='\\"'?(ur='\\"',I+=2):(ur=r,zt===0&&is(i0)),ur!==r&&(us=j,ur='\\"'),(j=ur)===r&&(j=I,t.substr(I,2)==="\\\\"?(ur="\\\\",I+=2):(ur=r,zt===0&&is(ft)),ur!==r&&(us=j,ur="\\\\"),(j=ur)===r&&(j=I,t.substr(I,2)==="\\/"?(ur="\\/",I+=2):(ur=r,zt===0&&is(tn)),ur!==r&&(us=j,ur="\\/"),(j=ur)===r&&(j=I,t.substr(I,2)==="\\b"?(ur="\\b",I+=2):(ur=r,zt===0&&is(_n)),ur!==r&&(us=j,ur="\b"),(j=ur)===r&&(j=I,t.substr(I,2)==="\\f"?(ur="\\f",I+=2):(ur=r,zt===0&&is(En)),ur!==r&&(us=j,ur="\f"),(j=ur)===r&&(j=I,t.substr(I,2)==="\\n"?(ur="\\n",I+=2):(ur=r,zt===0&&is(Os)),ur!==r&&(us=j,ur=` +`),(j=ur)===r&&(j=I,t.substr(I,2)==="\\r"?(ur="\\r",I+=2):(ur=r,zt===0&&is(gs)),ur!==r&&(us=j,ur="\r"),(j=ur)===r&&(j=I,t.substr(I,2)==="\\t"?(ur="\\t",I+=2):(ur=r,zt===0&&is(Ys)),ur!==r&&(us=j,ur=" "),(j=ur)===r&&(j=I,t.substr(I,2)==="\\u"?(ur="\\u",I+=2):(ur=r,zt===0&&is(Te)),ur!==r&&(Ir=tf())!==r&&(s=tf())!==r&&(er=tf())!==r&&(Lt=tf())!==r?(us=j,mt=Ir,bn=s,ir=er,Zr=Lt,j=ur=String.fromCharCode(parseInt("0x"+mt+bn+ir+Zr))):(I=j,j=r),j===r&&(j=I,t.charCodeAt(I)===92?(ur="\\",I++):(ur=r,zt===0&&is(ye)),ur!==r&&(us=j,ur="\\"),(j=ur)===r&&(j=I,t.substr(I,2)==="''"?(ur="''",I+=2):(ur=r,zt===0&&is(Be)),ur!==r&&(us=j,ur="''"),(j=ur)===r&&(j=I,t.substr(I,2)==='""'?(ur='""',I+=2):(ur=r,zt===0&&is(io)),ur!==r&&(us=j,ur='""'),(j=ur)===r&&(j=I,t.substr(I,2)==="``"?(ur="``",I+=2):(ur=r,zt===0&&is(Ro)),ur!==r&&(us=j,ur="``"),j=ur))))))))))))),j}function fc(){var j,ur,Ir;return j=I,(ur=(function(){var s=I,er,Lt,mt;return(er=qi())!==r&&(Lt=Ji())!==r&&(mt=Ri())!==r?(us=s,s=er={type:"bigint",value:er+Lt+mt}):(I=s,s=r),s===r&&(s=I,(er=qi())!==r&&(Lt=Ji())!==r?(us=s,er=(function(bn,ir){let Zr=bn+ir;return si(bn)?{type:"bigint",value:Zr}:parseFloat(Zr).toFixed(ir.length-1)})(er,Lt),s=er):(I=s,s=r),s===r&&(s=I,(er=qi())!==r&&(Lt=Ri())!==r?(us=s,er=(function(bn,ir){return{type:"bigint",value:bn+ir}})(er,Lt),s=er):(I=s,s=r),s===r&&(s=I,(er=qi())!==r&&(us=s,er=(function(bn){return si(bn)?{type:"bigint",value:bn}:parseFloat(bn)})(er)),s=er))),s})())!==r&&(us=j,ur=(Ir=ur)&&Ir.type==="bigint"?Ir:{type:"number",value:Ir}),j=ur}function qi(){var j,ur,Ir;return(j=qu())===r&&(j=Se())===r&&(j=I,t.charCodeAt(I)===45?(ur="-",I++):(ur=r,zt===0&&is(ff)),ur===r&&(t.charCodeAt(I)===43?(ur="+",I++):(ur=r,zt===0&&is(Rl))),ur!==r&&(Ir=qu())!==r?(us=j,j=ur+=Ir):(I=j,j=r),j===r&&(j=I,t.charCodeAt(I)===45?(ur="-",I++):(ur=r,zt===0&&is(ff)),ur===r&&(t.charCodeAt(I)===43?(ur="+",I++):(ur=r,zt===0&&is(Rl))),ur!==r&&(Ir=Se())!==r?(us=j,j=ur=(function(s,er){return s+er})(ur,Ir)):(I=j,j=r))),j}function Ji(){var j,ur,Ir;return j=I,t.charCodeAt(I)===46?(ur=".",I++):(ur=r,zt===0&&is(ce)),ur!==r&&(Ir=qu())!==r?(us=j,j=ur="."+Ir):(I=j,j=r),j}function Ri(){var j,ur,Ir;return j=I,(ur=(function(){var s=I,er,Lt;mu.test(t.charAt(I))?(er=t.charAt(I),I++):(er=r,zt===0&&is(Ju)),er===r?(I=s,s=r):(ua.test(t.charAt(I))?(Lt=t.charAt(I),I++):(Lt=r,zt===0&&is(Sa)),Lt===r&&(Lt=null),Lt===r?(I=s,s=r):(us=s,s=er+=(mt=Lt)===null?"":mt));var mt;return s})())!==r&&(Ir=qu())!==r?(us=j,j=ur+=Ir):(I=j,j=r),j}function qu(){var j,ur,Ir;if(j=I,ur=[],(Ir=Se())!==r)for(;Ir!==r;)ur.push(Ir),Ir=Se();else ur=r;return ur!==r&&(us=j,ur=ur.join("")),j=ur}function Se(){var j;return ko.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(yu)),j}function tf(){var j;return au.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(Iu)),j}function Qu(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="default"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(mi)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function P0(){var j,ur,Ir,s;return j=I,t.substr(I,2).toLowerCase()==="to"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(di)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function gc(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="drop"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(S0)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="DROP")),j}function al(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="update"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(fi)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function Jl(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="create"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Wl)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function qc(){var j,ur,Ir,s;return j=I,t.substr(I,9).toLowerCase()==="temporary"?(ur=t.substr(I,9),I+=9):(ur=r,zt===0&&is(ec)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function Ba(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="delete"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Fc)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function Qi(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="replace"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Uv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function ya(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="rename"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is($f)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function l(){var j,ur,Ir,s;return j=I,t.substr(I,9).toLowerCase()==="partition"?(ur=t.substr(I,9),I+=9):(ur=r,zt===0&&is(cp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="PARTITION")),j}function dn(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="into"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(c0)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="INTO")),j}function Ql(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="from"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(df)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function vi(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="set"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(nl)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="SET")),j}function Va(){var j,ur,Ir,s;return j=I,t.substr(I,2).toLowerCase()==="as"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(b0)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function lt(){var j,ur,Ir,s;return j=I,t.substr(I,5).toLowerCase()==="table"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(Pf)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="TABLE")),j}function Wn(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="tables"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Sp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="TABLES")),j}function Eu(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="collate"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(gl)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="COLLATE")),j}function ia(){var j,ur,Ir,s;return j=I,t.substr(I,2).toLowerCase()==="on"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(fp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function ve(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="join"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Mv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function Jt(){var j,ur,Ir,s;return j=I,t.substr(I,5).toLowerCase()==="outer"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(Zv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function nf(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="values"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Ib)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function E0(){var j,ur,Ir,s;return j=I,t.substr(I,5).toLowerCase()==="using"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(Dv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function kl(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="with"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(uo)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function oi(){var j,ur,Ir,s;return j=I,t.substr(I,2).toLowerCase()==="by"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(Xb)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function yn(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="offset"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Up)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="OFFSET")),j}function ka(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="all"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(Vp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="ALL")),j}function Ua(){var j,ur,Ir,s;return j=I,t.substr(I,8).toLowerCase()==="distinct"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(dp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="DISTINCT")),j}function Ou(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="between"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Kp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="BETWEEN")),j}function il(){var j,ur,Ir,s;return j=I,t.substr(I,2).toLowerCase()==="in"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(ld)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="IN")),j}function zu(){var j,ur,Ir,s;return j=I,t.substr(I,2).toLowerCase()==="is"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(Lp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="IS")),j}function Yu(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="like"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Cp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="LIKE")),j}function lb(){var j,ur,Ir,s;return j=I,t.substr(I,5).toLowerCase()==="rlike"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(wp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="RLIKE")),j}function Mi(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="exists"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(gb)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="EXISTS")),j}function ha(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="not"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(O0)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="NOT")),j}function Ha(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="and"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(v0)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="AND")),j}function ln(){var j,ur,Ir,s;return j=I,t.substr(I,2).toLowerCase()==="or"?(ur=t.substr(I,2),I+=2):(ur=r,zt===0&&is(ac)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="OR")),j}function Oe(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="extract"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(yp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="EXTRACT")),j}function Di(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="case"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Ep)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function Ya(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="end"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(Ap)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):j=ur=[ur,Ir]),j}function ni(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="cast"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Dp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="CAST")),j}function ui(){var j,ur,Ir,s;return j=I,t.substr(I,5).toLowerCase()==="array"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is($v)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="ARRAY")),j}function $i(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="char"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Pp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="CHAR")),j}function ai(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="varchar"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Pv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="VARCHAR")),j}function ll(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="numeric"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Gp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="NUMERIC")),j}function cl(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="decimal"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Fp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="DECIMAL")),j}function a(){var j,ur,Ir,s;return j=I,t.substr(I,8).toLowerCase()==="unsigned"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(Zp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="UNSIGNED")),j}function an(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="int"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(Gv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="INT")),j}function Ma(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="integer"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Fv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="INTEGER")),j}function Da(){var j,ur,Ir,s;return j=I,t.substr(I,8).toLowerCase()==="smallint"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(jc)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="SMALLINT")),j}function ii(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="tinyint"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(fv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="TINYINT")),j}function nt(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="bigint"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(ql)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="BIGINT")),j}function o(){var j,ur,Ir,s;return j=I,t.substr(I,5).toLowerCase()==="float"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(Ec)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="FLOAT")),j}function Zt(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="real"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Jp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="REAL")),j}function ba(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="double"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Qp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="DOUBLE")),j}function bu(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="date"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Kv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="DATE")),j}function Ht(){var j,ur,Ir,s;return j=I,t.substr(I,8).toLowerCase()==="datetime"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(sp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="DATETIME")),j}function rt(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="rows"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(jv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="ROWS")),j}function k(){var j,ur,Ir,s;return j=I,t.substr(I,4).toLowerCase()==="time"?(ur=t.substr(I,4),I+=4):(ur=r,zt===0&&is(Tp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="TIME")),j}function Lr(){var j,ur,Ir,s;return j=I,t.substr(I,9).toLowerCase()==="timestamp"?(ur=t.substr(I,9),I+=9):(ur=r,zt===0&&is(rd)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="TIMESTAMP")),j}function Or(){var j,ur,Ir,s;return j=I,t.substr(I,8).toLowerCase()==="interval"?(ur=t.substr(I,8),I+=8):(ur=r,zt===0&&is(nd)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="INTERVAL")),j}function Fr(){var j,ur,Ir,s;return j=I,t.substr(I,17).toLowerCase()==="current_timestamp"?(ur=t.substr(I,17),I+=17):(ur=r,zt===0&&is(Hp)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="CURRENT_TIMESTAMP")),j}function dr(){var j;return(j=(function(){var ur;return t.substr(I,2)==="@@"?(ur="@@",I+=2):(ur=r,zt===0&&is(ps)),ur})())===r&&(j=(function(){var ur;return t.charCodeAt(I)===64?(ur="@",I++):(ur=r,zt===0&&is(O)),ur})())===r&&(j=(function(){var ur;return t.charCodeAt(I)===36?(ur="$",I++):(ur=r,zt===0&&is(Bv)),ur})()),j}function It(){var j;return t.charCodeAt(I)===61?(j="=",I++):(j=r,zt===0&&is(t0)),j}function Dt(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="add"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(zs)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="ADD")),j}function Ln(){var j,ur,Ir,s;return j=I,t.substr(I,6).toLowerCase()==="column"?(ur=t.substr(I,6),I+=6):(ur=r,zt===0&&is(Bc)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="COLUMN")),j}function Un(){var j,ur,Ir,s;return j=I,t.substr(I,5).toLowerCase()==="index"?(ur=t.substr(I,5),I+=5):(ur=r,zt===0&&is(vv)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="INDEX")),j}function u(){var j,ur,Ir,s;return j=I,t.substr(I,3).toLowerCase()==="key"?(ur=t.substr(I,3),I+=3):(ur=r,zt===0&&is(Uo)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="KEY")),j}function yt(){var j,ur,Ir,s;return j=I,t.substr(I,7).toLowerCase()==="comment"?(ur=t.substr(I,7),I+=7):(ur=r,zt===0&&is(Np)),ur===r?(I=j,j=r):(Ir=I,zt++,s=Ge(),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir===r?(I=j,j=r):(us=j,j=ur="COMMENT")),j}function Y(){var j;return t.charCodeAt(I)===46?(j=".",I++):(j=r,zt===0&&is(ce)),j}function Q(){var j;return t.charCodeAt(I)===44?(j=",",I++):(j=r,zt===0&&is(Qt)),j}function Tr(){var j;return t.charCodeAt(I)===42?(j="*",I++):(j=r,zt===0&&is(Vf)),j}function P(){var j;return t.charCodeAt(I)===40?(j="(",I++):(j=r,zt===0&&is(Ss)),j}function hr(){var j;return t.charCodeAt(I)===41?(j=")",I++):(j=r,zt===0&&is(te)),j}function ht(){var j;return t.charCodeAt(I)===91?(j="[",I++):(j=r,zt===0&&is(Xs)),j}function e(){var j;return t.charCodeAt(I)===93?(j="]",I++):(j=r,zt===0&&is(ic)),j}function Pr(){var j;return t.charCodeAt(I)===59?(j=";",I++):(j=r,zt===0&&is(op)),j}function Mr(){var j;return t.substr(I,2)==="->"?(j="->",I+=2):(j=r,zt===0&&is(Kb)),j}function kn(){var j;return t.substr(I,2)==="||"?(j="||",I+=2):(j=r,zt===0&&is(ys)),j}function Yn(){var j;return(j=kn())===r&&(j=(function(){var ur;return t.substr(I,2)==="&&"?(ur="&&",I+=2):(ur=r,zt===0&&is(_p)),ur})()),j}function K(){var j,ur;for(j=[],(ur=_t())===r&&(ur=Js());ur!==r;)j.push(ur),(ur=_t())===r&&(ur=Js());return j}function kt(){var j,ur;if(j=[],(ur=_t())===r&&(ur=Js()),ur!==r)for(;ur!==r;)j.push(ur),(ur=_t())===r&&(ur=Js());else j=r;return j}function Js(){var j;return(j=(function(){var ur=I,Ir,s,er,Lt,mt;if(t.substr(I,2)==="/*"?(Ir="/*",I+=2):(Ir=r,zt===0&&is(Yv)),Ir!==r){for(s=[],er=I,Lt=I,zt++,t.substr(I,2)==="*/"?(mt="*/",I+=2):(mt=r,zt===0&&is(Lv)),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt!==r&&(mt=co())!==r?er=Lt=[Lt,mt]:(I=er,er=r);er!==r;)s.push(er),er=I,Lt=I,zt++,t.substr(I,2)==="*/"?(mt="*/",I+=2):(mt=r,zt===0&&is(Lv)),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt!==r&&(mt=co())!==r?er=Lt=[Lt,mt]:(I=er,er=r);s===r?(I=ur,ur=r):(t.substr(I,2)==="*/"?(er="*/",I+=2):(er=r,zt===0&&is(Lv)),er===r?(I=ur,ur=r):ur=Ir=[Ir,s,er])}else I=ur,ur=r;return ur})())===r&&(j=(function(){var ur=I,Ir,s,er,Lt,mt;if(t.substr(I,2)==="--"?(Ir="--",I+=2):(Ir=r,zt===0&&is(Wv)),Ir!==r){for(s=[],er=I,Lt=I,zt++,mt=Eo(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt!==r&&(mt=co())!==r?er=Lt=[Lt,mt]:(I=er,er=r);er!==r;)s.push(er),er=I,Lt=I,zt++,mt=Eo(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt!==r&&(mt=co())!==r?er=Lt=[Lt,mt]:(I=er,er=r);s===r?(I=ur,ur=r):ur=Ir=[Ir,s]}else I=ur,ur=r;return ur})())===r&&(j=(function(){var ur=I,Ir,s,er,Lt,mt;if(t.charCodeAt(I)===35?(Ir="#",I++):(Ir=r,zt===0&&is(zb)),Ir!==r){for(s=[],er=I,Lt=I,zt++,mt=Eo(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt!==r&&(mt=co())!==r?er=Lt=[Lt,mt]:(I=er,er=r);er!==r;)s.push(er),er=I,Lt=I,zt++,mt=Eo(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt!==r&&(mt=co())!==r?er=Lt=[Lt,mt]:(I=er,er=r);s===r?(I=ur,ur=r):ur=Ir=[Ir,s]}else I=ur,ur=r;return ur})()),j}function Ve(){var j,ur,Ir,s;return j=I,(ur=yt())!==r&&K()!==r?((Ir=It())===r&&(Ir=null),Ir!==r&&K()!==r&&(s=Il())!==r?(us=j,j=ur=(function(er,Lt,mt){return{type:er.toLowerCase(),keyword:er.toLowerCase(),symbol:Lt,value:mt}})(ur,Ir,s)):(I=j,j=r)):(I=j,j=r),j}function co(){var j;return t.length>I?(j=t.charAt(I),I++):(j=r,zt===0&&is(wf)),j}function _t(){var j;return qv.test(t.charAt(I))?(j=t.charAt(I),I++):(j=r,zt===0&&is(Cv)),j}function Eo(){var j,ur;if((j=(function(){var Ir=I,s;return zt++,t.length>I?(s=t.charAt(I),I++):(s=r,zt===0&&is(wf)),zt--,s===r?Ir=void 0:(I=Ir,Ir=r),Ir})())===r)if(j=[],So.test(t.charAt(I))?(ur=t.charAt(I),I++):(ur=r,zt===0&&is(uu)),ur!==r)for(;ur!==r;)j.push(ur),So.test(t.charAt(I))?(ur=t.charAt(I),I++):(ur=r,zt===0&&is(uu));else j=r;return j}function ao(){var j,ur;return j=I,us=I,bc=[],r!==void 0&&K()!==r?((ur=zo())===r&&(ur=(function(){var Ir=I,s;return(function(){var er;return t.substr(I,6).toLowerCase()==="return"?(er=t.substr(I,6),I+=6):(er=r,zt===0&&is(Lf)),er})()!==r&&K()!==r&&(s=no())!==r?(us=Ir,Ir={type:"return",expr:s}):(I=Ir,Ir=r),Ir})()),ur===r?(I=j,j=r):(us=j,j={stmt:ur,vars:bc})):(I=j,j=r),j}function zo(){var j,ur,Ir,s;return j=I,(ur=da())===r&&(ur=Ia()),ur!==r&&K()!==r?((Ir=(function(){var er;return t.substr(I,2)===":="?(er=":=",I+=2):(er=r,zt===0&&is(Hv)),er})())===r&&(Ir=It()),Ir!==r&&K()!==r&&(s=no())!==r?(us=j,j=ur={type:"assign",left:ur,symbol:Ir,right:s}):(I=j,j=r)):(I=j,j=r),j}function no(){var j;return(j=p())===r&&(j=(function(){var ur=I,Ir,s,er,Lt;return(Ir=da())!==r&&K()!==r&&(s=Yi())!==r&&K()!==r&&(er=da())!==r&&K()!==r&&(Lt=Bn())!==r?(us=ur,ur=Ir={type:"join",ltable:Ir,rtable:er,op:s,on:Lt}):(I=ur,ur=r),ur})())===r&&(j=Ke())===r&&(j=(function(){var ur=I,Ir;return ht()!==r&&K()!==r&&(Ir=la())!==r&&K()!==r&&e()!==r?(us=ur,ur={type:"array",value:Ir}):(I=ur,ur=r),ur})()),j}function Ke(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=yo())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Yc())!==r&&(mt=K())!==r&&(bn=yo())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Yc())!==r&&(mt=K())!==r&&(bn=yo())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=n0(ur,Ir))}else I=j,j=r;return j}function yo(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=lo())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=lc())!==r&&(mt=K())!==r&&(bn=lo())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=lc())!==r&&(mt=K())!==r&&(bn=lo())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=n0(ur,Ir))}else I=j,j=r;return j}function lo(){var j,ur,Ir;return(j=Nt())===r&&(j=da())===r&&(j=Au())===r&&(j=Zl())===r&&(j=I,P()!==r&&K()!==r&&(ur=Ke())!==r&&K()!==r&&hr()!==r?(us=j,(Ir=ur).parentheses=!0,j=Ir):(I=j,j=r)),j}function Co(){var j,ur,Ir,s,er,Lt,mt;return j=I,(ur=Ul())===r?(I=j,j=r):(Ir=I,(s=K())!==r&&(er=Y())!==r&&(Lt=K())!==r&&(mt=Ul())!==r?Ir=s=[s,er,Lt,mt]:(I=Ir,Ir=r),Ir===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur=(function(bn,ir){let Zr={name:[bn]};return ir!==null&&(Zr.schema=bn,Zr.name=[ir[3]]),Zr})(ur,Ir))),j}function Au(){var j,ur,Ir;return j=I,(ur=Co())!==r&&K()!==r&&P()!==r&&K()!==r?((Ir=la())===r&&(Ir=null),Ir!==r&&K()!==r&&hr()!==r?(us=j,j=ur=(function(s,er){return{type:"function",name:s,args:{type:"expr_list",value:er},...Le()}})(ur,Ir)):(I=j,j=r)):(I=j,j=r),j===r&&(j=I,(ur=Co())!==r&&(us=j,ur=(function(s){return{type:"function",name:s,args:null,...Le()}})(ur)),j=ur),j}function la(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=lo())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=lo())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=lo())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=Ae(ur,Ir))}else I=j,j=r;return j}function da(){var j,ur,Ir,s,er;return j=I,(ur=dr())!==r&&(Ir=Ia())!==r?(us=j,s=ur,er=Ir,j=ur={type:"var",...er,prefix:s}):(I=j,j=r),j}function Ia(){var j,ur,Ir;return j=I,(ur=Ii())!==r&&(Ir=(function(){var s=I,er=[],Lt=I,mt,bn;for(t.charCodeAt(I)===46?(mt=".",I++):(mt=r,zt===0&&is(ce)),mt!==r&&(bn=Ii())!==r?Lt=mt=[mt,bn]:(I=Lt,Lt=r);Lt!==r;)er.push(Lt),Lt=I,t.charCodeAt(I)===46?(mt=".",I++):(mt=r,zt===0&&is(ce)),mt!==r&&(bn=Ii())!==r?Lt=mt=[mt,bn]:(I=Lt,Lt=r);return er!==r&&(us=s,er=(function(ir){let Zr=[];for(let rs=0;rs<ir.length;rs++)Zr.push(ir[rs][1]);return Zr})(er)),s=er})())!==r?(us=j,j=ur=(function(s,er){return bc.push(s),{type:"var",name:s,members:er,prefix:null}})(ur,Ir)):(I=j,j=r),j===r&&(j=I,(ur=fc())!==r&&(us=j,ur={type:"var",name:ur.value,members:[],quoted:null,prefix:null}),j=ur),j}function Wt(){var j;return(j=ta())===r&&(j=(function(){var ur=I,Ir,s;return(Ir=ui())!==r&&K()!==r&&P()!==r&&K()!==r&&(s=li())!==r&&K()!==r&&hr()!==r?(us=ur,Ir={dataType:Ir,parentheses:!0,expr:{type:"expr_list",value:s.map(er=>({type:"datatype",...er}))}},ur=Ir):(I=ur,ur=r),ur===r&&(ur=I,(Ir=ui())!==r&&K()!==r&&(function(){var er;return t.charCodeAt(I)===60?(er="<",I++):(er=r,zt===0&&is(yc)),er})()!==r&&K()!==r&&(s=li())!==r&&K()!==r&&(function(){var er;return t.charCodeAt(I)===62?(er=">",I++):(er=r,zt===0&&is(nv)),er})()!==r?(us=ur,Ir=(function(er,Lt){return{dataType:er,angle_brackets:!0,expr:{type:"expr_list",value:Lt.map(mt=>({type:"datatype",...mt}))}}})(Ir,s),ur=Ir):(I=ur,ur=r)),ur})()),j}function ta(){var j;return(j=(function(){var ur=I,Ir,s,er;if((Ir=$i())===r&&(Ir=ai()),Ir!==r)if(K()!==r)if(P()!==r)if(K()!==r){if(s=[],ko.test(t.charAt(I))?(er=t.charAt(I),I++):(er=r,zt===0&&is(yu)),er!==r)for(;er!==r;)s.push(er),ko.test(t.charAt(I))?(er=t.charAt(I),I++):(er=r,zt===0&&is(yu));else s=r;s!==r&&(er=K())!==r&&hr()!==r?(us=ur,Ir={dataType:Ir,length:parseInt(s.join(""),10),parentheses:!0},ur=Ir):(I=ur,ur=r)}else I=ur,ur=r;else I=ur,ur=r;else I=ur,ur=r;else I=ur,ur=r;return ur===r&&(ur=I,(Ir=$i())===r&&(Ir=ai())===r&&(Ir=(function(){var Lt,mt,bn,ir;return Lt=I,t.substr(I,6).toLowerCase()==="string"?(mt=t.substr(I,6),I+=6):(mt=r,zt===0&&is(zp)),mt===r?(I=Lt,Lt=r):(bn=I,zt++,ir=Ge(),zt--,ir===r?bn=void 0:(I=bn,bn=r),bn===r?(I=Lt,Lt=r):(us=Lt,Lt=mt="STRING")),Lt})()),Ir!==r&&(us=ur,Ir=rb(Ir)),ur=Ir),ur})())===r&&(j=(function(){var ur=I,Ir,s,er,Lt,mt,bn,ir,Zr,rs,vs,Ds;if((Ir=ll())===r&&(Ir=cl())===r&&(Ir=an())===r&&(Ir=Ma())===r&&(Ir=Da())===r&&(Ir=ii())===r&&(Ir=nt())===r&&(Ir=o())===r&&(Ir=ba())===r&&(Ir=Zt()),Ir!==r)if((s=K())!==r)if((er=P())!==r)if((Lt=K())!==r){if(mt=[],ko.test(t.charAt(I))?(bn=t.charAt(I),I++):(bn=r,zt===0&&is(yu)),bn!==r)for(;bn!==r;)mt.push(bn),ko.test(t.charAt(I))?(bn=t.charAt(I),I++):(bn=r,zt===0&&is(yu));else mt=r;if(mt!==r)if((bn=K())!==r){if(ir=I,(Zr=Q())!==r)if((rs=K())!==r){if(vs=[],ko.test(t.charAt(I))?(Ds=t.charAt(I),I++):(Ds=r,zt===0&&is(yu)),Ds!==r)for(;Ds!==r;)vs.push(Ds),ko.test(t.charAt(I))?(Ds=t.charAt(I),I++):(Ds=r,zt===0&&is(yu));else vs=r;vs===r?(I=ir,ir=r):ir=Zr=[Zr,rs,vs]}else I=ir,ir=r;else I=ir,ir=r;ir===r&&(ir=null),ir!==r&&(Zr=K())!==r&&(rs=hr())!==r&&(vs=K())!==r?((Ds=ea())===r&&(Ds=null),Ds===r?(I=ur,ur=r):(us=ur,ut=ir,De=Ds,Ir={dataType:Ir,length:parseInt(mt.join(""),10),scale:ut&&parseInt(ut[2].join(""),10),parentheses:!0,suffix:De},ur=Ir)):(I=ur,ur=r)}else I=ur,ur=r;else I=ur,ur=r}else I=ur,ur=r;else I=ur,ur=r;else I=ur,ur=r;else I=ur,ur=r;var ut,De;if(ur===r){if(ur=I,(Ir=ll())===r&&(Ir=cl())===r&&(Ir=an())===r&&(Ir=Ma())===r&&(Ir=Da())===r&&(Ir=ii())===r&&(Ir=nt())===r&&(Ir=o())===r&&(Ir=ba())===r&&(Ir=Zt()),Ir!==r){if(s=[],ko.test(t.charAt(I))?(er=t.charAt(I),I++):(er=r,zt===0&&is(yu)),er!==r)for(;er!==r;)s.push(er),ko.test(t.charAt(I))?(er=t.charAt(I),I++):(er=r,zt===0&&is(yu));else s=r;s!==r&&(er=K())!==r?((Lt=ea())===r&&(Lt=null),Lt===r?(I=ur,ur=r):(us=ur,Ir=(function(Qo,A,nr){return{dataType:Qo,length:parseInt(A.join(""),10),suffix:nr}})(Ir,s,Lt),ur=Ir)):(I=ur,ur=r)}else I=ur,ur=r;ur===r&&(ur=I,(Ir=ll())===r&&(Ir=cl())===r&&(Ir=an())===r&&(Ir=Ma())===r&&(Ir=Da())===r&&(Ir=ii())===r&&(Ir=nt())===r&&(Ir=o())===r&&(Ir=ba())===r&&(Ir=Zt()),Ir!==r&&(s=K())!==r?((er=ea())===r&&(er=null),er!==r&&(Lt=K())!==r?(us=ur,Ir=(function(Qo,A){return{dataType:Qo,suffix:A}})(Ir,er),ur=Ir):(I=ur,ur=r)):(I=ur,ur=r))}return ur})())===r&&(j=(function(){var ur=I,Ir,s,er;if((Ir=bu())===r&&(Ir=Ht())===r&&(Ir=k())===r&&(Ir=Lr()),Ir!==r)if(K()!==r)if(P()!==r)if(K()!==r){if(s=[],ko.test(t.charAt(I))?(er=t.charAt(I),I++):(er=r,zt===0&&is(yu)),er!==r)for(;er!==r;)s.push(er),ko.test(t.charAt(I))?(er=t.charAt(I),I++):(er=r,zt===0&&is(yu));else s=r;s!==r&&(er=K())!==r&&hr()!==r?(us=ur,Ir={dataType:Ir,length:parseInt(s.join(""),10),parentheses:!0},ur=Ir):(I=ur,ur=r)}else I=ur,ur=r;else I=ur,ur=r;else I=ur,ur=r;else I=ur,ur=r;return ur===r&&(ur=I,(Ir=bu())===r&&(Ir=Ht())===r&&(Ir=k())===r&&(Ir=Lr()),Ir!==r&&(us=ur,Ir=(function(Lt){return{dataType:Lt}})(Ir)),ur=Ir),ur})())===r&&(j=(function(){var ur=I,Ir;return(Ir=(function(){var s,er,Lt,mt;return s=I,t.substr(I,4).toLowerCase()==="json"?(er=t.substr(I,4),I+=4):(er=r,zt===0&&is(yl)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="JSON")),s})())!==r&&(us=ur,Ir=rb(Ir)),ur=Ir})())===r&&(j=(function(){var ur=I,Ir;return(Ir=(function(){var s,er,Lt,mt;return s=I,t.substr(I,8).toLowerCase()==="tinytext"?(er=t.substr(I,8),I+=8):(er=r,zt===0&&is(Sl)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="TINYTEXT")),s})())===r&&(Ir=(function(){var s,er,Lt,mt;return s=I,t.substr(I,4).toLowerCase()==="text"?(er=t.substr(I,4),I+=4):(er=r,zt===0&&is(Ol)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="TEXT")),s})())===r&&(Ir=(function(){var s,er,Lt,mt;return s=I,t.substr(I,10).toLowerCase()==="mediumtext"?(er=t.substr(I,10),I+=10):(er=r,zt===0&&is(np)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="MEDIUMTEXT")),s})())===r&&(Ir=(function(){var s,er,Lt,mt;return s=I,t.substr(I,8).toLowerCase()==="longtext"?(er=t.substr(I,8),I+=8):(er=r,zt===0&&is(bv)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="LONGTEXT")),s})()),Ir!==r&&(us=ur,Ir={dataType:Ir}),ur=Ir})())===r&&(j=(function(){var ur=I,Ir;return t.substr(I,7).toLowerCase()==="boolean"?(Ir=t.substr(I,7),I+=7):(Ir=r,zt===0&&is(tb)),Ir!==r&&(us=ur,Ir={dataType:"BOOLEAN"}),ur=Ir})()),j}function li(){var j,ur,Ir,s,er,Lt,mt,bn;if(j=I,(ur=ta())!==r){for(Ir=[],s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=ta())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);s!==r;)Ir.push(s),s=I,(er=K())!==r&&(Lt=Q())!==r&&(mt=K())!==r&&(bn=ta())!==r?s=er=[er,Lt,mt,bn]:(I=s,s=r);Ir===r?(I=j,j=r):(us=j,j=ur=Ae(ur,Ir))}else I=j,j=r;return j}function ea(){var j,ur,Ir;return j=I,(ur=a())===r&&(ur=null),ur!==r&&K()!==r?((Ir=(function(){var s,er,Lt,mt;return s=I,t.substr(I,8).toLowerCase()==="zerofill"?(er=t.substr(I,8),I+=8):(er=r,zt===0&&is(tp)),er===r?(I=s,s=r):(Lt=I,zt++,mt=Ge(),zt--,mt===r?Lt=void 0:(I=Lt,Lt=r),Lt===r?(I=s,s=r):(us=s,s=er="ZEROFILL")),s})())===r&&(Ir=null),Ir===r?(I=j,j=r):(us=j,j=ur=(function(s,er){let Lt=[];return s&&Lt.push(s),er&&Lt.push(er),Lt})(ur,Ir))):(I=j,j=r),j}let Ml={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CROSS:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,LEFT:!0,LIKE:!0,LIMIT:!0,LOW_PRIORITY:!0,NOT:!0,NULL:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,READ:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,UNNEST:!0,VALUES:!0,WITH:!0,WHEN:!0,WHERE:!0,WRITE:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0};function Le(){return Ce.includeLocations?{loc:jf(us,I)}:{}}function rl(j,ur){return{type:"unary_expr",operator:j,expr:ur}}function xu(j,ur,Ir){return{type:"binary_expr",operator:j,left:ur,right:Ir}}function si(j){let ur=To(9007199254740991);return!(To(j)<ur)}function Ni(j,ur,Ir=3){let s=[j];for(let er=0;er<ur.length;er++)delete ur[er][Ir].tableList,delete ur[er][Ir].columnList,s.push(ur[er][Ir]);return s}function tl(j,ur){let Ir=j;for(let s=0;s<ur.length;s++)Ir=xu(ur[s][1],Ir,ur[s][3]);return Ir}function Dl(j){return wi[j]||j||null}function $a(j){let ur=new Set;for(let Ir of j.keys()){let s=Ir.split("::");if(!s){ur.add(Ir);break}s&&s[1]&&(s[1]=Dl(s[1])),ur.add(s.join("::"))}return Array.from(ur)}let bc=[],Wu=new Set,Zo=new Set,wi={};if((Ie=ge())!==r&&I===t.length)return Ie;throw Ie!==r&&I<t.length&&is({type:"end"}),el(nb,xl<t.length?t.charAt(xl):null,xl<t.length?jf(xl,xl+1):jf(xl,xl))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:U0},ge=U0,Dn=function(F,ar){return me(F,ar)},Pn=function(F,ar){return Xe(F,ar)},Ae=function(F,ar){return me(F,ar)},ou=xs("=",!1),Hs=xs("DUPLICATE",!0),Uo=xs("BINARY",!0),Ps=xs("MASTER",!0),pe=xs("LOGS",!0),_o=xs("BINLOG",!0),Gi=xs("EVENTS",!0),mi=xs("CHARACTER",!0),Fi=xs("SET",!0),T0=xs("COLLATION",!0),dl=function(F,ar){return me(F,ar,1)},Gl=xs("IF",!0),Fl=xs("CASCADED",!0),nc=xs("LOCAL",!0),xc=xs("CHECK",!0),I0=xs("OPTION",!1),ji=xs("check_option",!0),af=xs("security_barrier",!0),qf=xs("security_invoker",!0),Uc=xs("GRANTS",!0),wc=xs(".",!1),Ll=xs("ALGORITHM",!0),jl=xs("DEFAULT",!0),Oi=xs("INSTANT",!0),bb=xs("INPLACE",!0),Vi=xs("COPY",!0),zc=xs("LOCK",!0),kc=xs("NONE",!0),vb=xs("SHARED",!0),Zc=xs("EXCLUSIVE",!0),nl=xs("AUTO_INCREMENT",!0),Xf=xs("UNIQUE",!0),gl=xs("KEY",!0),lf=xs("PRIMARY",!0),Jc=xs("FOR",!0),Qc=xs("COLUMN_FORMAT",!0),gv=xs("FIXED",!0),g0=xs("DYNAMIC",!0),Ki=xs("STORAGE",!0),Pb=xs("DISK",!0),ei=xs("MEMORY",!0),pb=xs("MATCH FULL",!0),j0=xs("MATCH PARTIAL",!0),B0=xs("MATCH SIMPLE",!0),Mc=xs("expiration_timestamp",!0),Cl=xs("partition_expiration_days",!0),$u=xs("require_partition_filter",!0),r0=xs("kms_key_name",!0),zn=xs("friendly_name",!0),Ss=xs("description",!0),te=xs("labels",!0),ce=xs("default_rounding_mode",!0),He=xs("AVG_ROW_LENGTH",!0),Ue=xs("KEY_BLOCK_SIZE",!0),Qe=xs("MAX_ROWS",!0),uo=xs("MIN_ROWS",!0),Ao=xs("STATS_SAMPLE_PAGES",!0),Pu=xs("CONNECTION",!0),Ca=xs("COMPRESSION",!0),ku=xs("'",!1),ca=xs("ZLIB",!0),na=xs("LZ4",!0),Qa=xs("ENGINE",!0),cf=xs("CLUSTER",!0),ri=xs("BY",!0),t0=xs("OPTIONS",!0),n0=xs("CHARSET",!0),Dc=xs("COLLATE",!0),s0=xs("READ",!0),Rv=xs("LOW_PRIORITY",!0),nv=xs("WRITE",!0),sv=xs("NOT",!0),ev=xs("BTREE",!0),yc=xs("HASH",!0),$c=xs("WITH",!0),Sf=xs("PARSER",!0),R0=xs("VISIBLE",!0),Rl=xs("INVISIBLE",!0),ff=xs("RESTRICT",!0),Vf=xs("CASCADE",!0),Vv=xs("SET NULL",!0),db=xs("NO ACTION",!0),Of=xs("SET DEFAULT",!0),Pc=xs("UPDATE",!0),H0=xs("CREATE",!0),bf=xs("DELETE",!0),Lb=xs("INSERT",!0),Fa=xs(":=",!1),Kf=xs("return",!0),Nv=xs("REPLACE",!0),Gb=xs("ANALYZE",!0),hc=xs("ATTACH",!0),Bl=xs("DATABASE",!0),sl=xs("RENAME",!0),sc=xs("SHOW",!0),Y0=xs("DESCRIBE",!0),N0=xs("@",!1),ov=xs("@@",!1),Fb=xs("$",!1),e0=xs("TEMPORARY",!0),Cb=xs("TEMP",!0),_0=xs("SCHEMA",!0),zf=xs("ALTER",!0),je=xs("SPATIAL",!0),o0=xs("(",!1),xi=xs(")",!1),xf=xs("INTERSECT",!0),Zf=xs("EXCEPT",!0),W0=xs("SYSTEM_TIME",!0),jb=xs("AS",!0),Uf=xs("OF",!0),u0=xs("UNNEST",!0),wb=function(F,ar){return ar.unshift(F),ar.forEach(Nr=>{let{table:Rr,as:ct}=Nr;Na[Rr]=Rr,ct&&(Na[ct]=Rr),(function(dt){let Yt=so(dt);dt.clear(),Yt.forEach(vn=>dt.add(vn))})(Po)}),ar},Ui=/^[@]/,uv=Li(["@"],!1,!1),yb=/^[{]/,hb=Li(["{"],!1,!1),Kv=/^[=]/,Gc=Li(["="],!1,!1),_v=/^[}]/,kf=Li(["}"],!1,!1),vf=xs("TABLESAMPLE",!0),ki=xs("BERNOULLI",!0),Hl=xs("RESERVOIR",!0),Eb=xs("PERCENT",!0),Bb=xs("ROWS",!0),pa=xs("RANGE",!0),wl=xs("FOLLOWING",!0),Nl=xs("PRECEDING",!0),Sv=xs("CURRENT",!0),Hb=xs("ROW",!0),Jf=xs("UNBOUNDED",!0),pf=xs("!",!1),Yb=function(F){return F[0]+" "+F[2]},av=xs(">=",!1),iv=xs(">",!1),a0=xs("<=",!1),_l=xs("<>",!1),Yl=xs("<",!1),Ab=xs("!=",!1),Mf=xs("+",!1),Wb=xs("-",!1),Df=xs("*",!1),mb=xs("/",!1),i0=xs("%",!1),ft=xs("~",!1),tn=function(F){return bs[F.toUpperCase()]===!0},_n=xs('"',!1),En=/^[^"]/,Os=Li(['"'],!0,!1),gs=/^[^']/,Ys=Li(["'"],!0,!1),Te=xs("`",!1),ye=/^[^`]/,Be=Li(["`"],!0,!1),io=function(F,ar){return F+ar.join("")},Ro=/^[A-Za-z_]/,So=Li([["A","Z"],["a","z"],"_"],!1,!1),uu=/^[A-Za-z0-9_\-]/,ko=Li([["A","Z"],["a","z"],["0","9"],"_","-"],!1,!1),yu=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,au=Li([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Iu=xs(":",!1),mu=xs("string_agg",!0),Ju=xs("ANY_VALUE",!0),ua=xs("YEAR_MONTH",!0),Sa=xs("DAY_HOUR",!0),ma=xs("DAY_MINUTE",!0),Bi=xs("DAY_SECOND",!0),sa=xs("DAY_MICROSECOND",!0),di=xs("HOUR_MINUTE",!0),Hi=xs("HOUR_SECOND",!0),S0=xs("HOUR_MICROSECOND",!0),l0=xs("MINUTE_SECOND",!0),Ov=xs("MINUTE_MICROSECOND",!0),lv=xs("SECOND_MICROSECOND",!0),fi=xs("TIMEZONE_HOUR",!0),Wl=xs("TIMEZONE_MINUTE",!0),ec=xs("CENTURY",!0),Fc=xs("DAYOFWEEK",!0),xv=xs("DAY",!0),lp=xs("DATE",!0),Uv=xs("DECADE",!0),$f=xs("DOW",!0),Tb=xs("DOY",!0),cp=xs("EPOCH",!0),c0=xs("HOUR",!0),q0=xs("ISODOW",!0),df=xs("ISOWEEK",!0),f0=xs("ISOYEAR",!0),b0=xs("MICROSECONDS",!0),Pf=xs("MILLENNIUM",!0),Sp=xs("MILLISECONDS",!0),kv=xs("MINUTE",!0),Op=xs("MONTH",!0),fp=xs("QUARTER",!0),oc=xs("SECOND",!0),uc=xs("TIME",!0),qb=xs("TIMEZONE",!0),Gf=xs("WEEK",!0),zv=xs("YEAR",!0),Mv=xs("DATE_TRUNC",!0),Zv=xs("R",!0),bp=function(F,ar){return{type:F.toLowerCase(),value:ar[1].join("")}},Ib=/^[^"\\\0-\x1F\x7F]/,Dv=Li(['"',"\\",["\0",""],"\x7F"],!0,!1),vp=/^[^'\\]/,Jv=Li(["'","\\"],!0,!1),Xb=xs("\\'",!1),pp=xs('\\"',!1),xp=xs("\\\\",!1),cv=xs("\\/",!1),Up=xs("\\b",!1),Xp=xs("\\f",!1),Qv=xs("\\n",!1),Vp=xs("\\r",!1),dp=xs("\\t",!1),Kp=xs("\\u",!1),ld=xs("\\",!1),Lp=xs("''",!1),Cp=xs('""',!1),wp=xs("``",!1),gb=/^[\n\r]/,O0=Li([` +`,"\r"],!1,!1),v0=/^[0-9]/,ac=Li([["0","9"]],!1,!1),Rb=/^[0-9a-fA-F]/,Ff=Li([["0","9"],["a","f"],["A","F"]],!1,!1),kp=/^[eE]/,Mp=Li(["e","E"],!1,!1),rp=/^[+\-]/,yp=Li(["+","-"],!1,!1),hp=xs("NULL",!0),Ep=xs("NOT NULL",!0),Nb=xs("TRUE",!0),Qf=xs("TO",!0),_b=xs("FALSE",!0),Ap=xs("DROP",!0),Dp=xs("USE",!0),$v=xs("SELECT",!0),$p=xs("RECURSIVE",!0),Pp=xs("IGNORE",!0),Pv=xs("PARTITION",!0),Gp=xs("INTO",!0),Fp=xs("FROM",!0),mp=xs("UNLOCK",!0),zp=xs("TABLE",!0),Zp=xs("TABLES",!0),Gv=xs("ON",!0),tp=xs("LEFT",!0),Fv=xs("RIGHT",!0),yl=xs("FULL",!0),jc=xs("INNER",!0),fv=xs("CROSS",!0),Sl=xs("JOIN",!0),Ol=xs("OUTER",!0),np=xs("OVER",!0),bv=xs("UNION",!0),ql=xs("VALUE",!0),Ec=xs("VALUES",!0),Jp=xs("USING",!0),Qp=xs("WHERE",!0),sp=xs("GROUP",!0),jv=xs("ORDER",!0),Tp=xs("HAVING",!0),rd=xs("QUALIFY",!0),jp=xs("WINDOW",!0),Ip=xs("ORDINAL",!0),td=xs("SAFE_ORDINAL",!0),nd=xs("LIMIT",!0),Bp=xs("OFFSET",!0),Hp=xs("SAFE_OFFSET",!0),gp=xs("ASC",!0),sd=xs("DESC",!0),ed=xs("ALL",!0),Yp=xs("DISTINCT",!0),od=xs("BETWEEN",!0),ud=xs("IN",!0),Rp=xs("IS",!0),O=xs("LIKE",!0),ps=xs("EXISTS",!0),Bv=xs("AND",!0),Lf=xs("OR",!0),Hv=xs("COUNT",!0),on=xs("MAX",!0),zs=xs("MIN",!0),Bc=xs("SUM",!0),vv=xs("AVG",!0),ep=xs("EXTRACT",!0),Rs=xs("CALL",!0),Np=xs("CASE",!0),Wp=xs("WHEN",!0),cd=xs("THEN",!0),Vb=xs("ELSE",!0),_=xs("END",!0),Ls=xs("CAST",!0),pv=xs("SAFE_CAST",!0),Cf=xs("ARRAY",!0),dv=xs("BYTES",!0),Qt=xs("BOOL",!0),Xs=xs("GEOGRAPHY",!0),ic=xs("NUMERIC",!0),op=xs("DECIMAL",!0),Kb=xs("SIGNED",!0),ys=xs("UNSIGNED",!0),_p=xs("INT64",!0),Yv=xs("INTEGER",!0),Lv=xs("JSON",!0),Wv=xs("STRING",!0),zb=xs("STRUCT",!0),wf=xs("FLOAT64",!0),qv=xs("DATETIME",!0),Cv=xs("TIMESTAMP",!0),rb=xs("TRUNCATE",!0),tb=xs("CURRENT_DATE",!0),I=xs("INTERVAL",!0),us=xs("CURRENT_TIME",!0),Sb=xs("CURRENT_TIMESTAMP",!0),xl=xs("SESSION_USER",!0),nb=xs("GLOBAL",!0),zt=xs("SESSION",!0),$s=xs("PIVOT",!0),ja=xs("PERSIST",!0),Ob=xs("PERSIST_ONLY",!0),jf=xs("VIEW",!0),is=xs("ADD",!0),el=xs("COLUMN",!0),Ti=xs("INDEX",!0),wv=xs("FULLTEXT",!0),yf=xs("COMMENT",!0),X0=xs("REFERENCES",!0),p0=xs(",",!1),up=xs("[",!1),xb=xs("]",!1),Zb=xs(";",!1),yv=xs("||",!1),Jb=xs("&&",!1),hv=xs("/*",!1),h=xs("*/",!1),ss=xs("--",!1),Xl=xs("#",!1),d0={type:"any"},Bf=/^[ \t\n\r]/,jt=Li([" "," ",` +`,"\r"],!1,!1),Us=function(F){return{dataType:F}},ol=xs("MAX",!1),sb=xs("max",!1),eb=function(F,ar){return{dataType:F,definition:ar,anglebracket:!0}},p=0,ns=0,Vl=[{line:1,column:1}],Hc=0,Ub=[],Ft=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function xs(F,ar){return{type:"literal",text:F,ignoreCase:ar}}function Li(F,ar,Nr){return{type:"class",parts:F,inverted:ar,ignoreCase:Nr}}function Ta(F){var ar,Nr=Vl[F];if(Nr)return Nr;for(ar=F-1;!Vl[ar];)ar--;for(Nr={line:(Nr=Vl[ar]).line,column:Nr.column};ar<F;)t.charCodeAt(ar)===10?(Nr.line++,Nr.column=1):Nr.column++,ar++;return Vl[F]=Nr,Nr}function x0(F,ar){var Nr=Ta(F),Rr=Ta(ar);return{start:{offset:F,line:Nr.line,column:Nr.column},end:{offset:ar,line:Rr.line,column:Rr.column}}}function Zn(F){p<Hc||(p>Hc&&(Hc=p,Ub=[]),Ub.push(F))}function kb(F,ar,Nr){return new go(go.buildMessage(F,ar),F,ar,Nr)}function U0(){var F,ar;return F=p,A()!==r&&(ar=(function(){var Nr,Rr,ct,dt,Yt,vn,fn,gn;if(Nr=p,(Rr=C())!==r){for(ct=[],dt=p,(Yt=A())!==r&&(vn=De())!==r&&(fn=A())!==r&&(gn=C())!==r?dt=Yt=[Yt,vn,fn,gn]:(p=dt,dt=r);dt!==r;)ct.push(dt),dt=p,(Yt=A())!==r&&(vn=De())!==r&&(fn=A())!==r&&(gn=C())!==r?dt=Yt=[Yt,vn,fn,gn]:(p=dt,dt=r);ct===r?(p=Nr,Nr=r):(ns=Nr,Rr=(function(Vn,Jn){let ms=Vn&&Vn.ast||Vn,Qs=Jn&&Jn.length&&Jn[0].length>=4?[ms]:ms;for(let $=0;$<Jn.length;$++)Jn[$][3]&&Jn[$][3].length!==0&&Qs.push(Jn[$][3]&&Jn[$][3].ast||Jn[$][3]);return{tableList:Array.from(su),columnList:so(Po),ast:Qs}})(Rr,ct),Nr=Rr)}else p=Nr,Nr=r;return Nr})())!==r?(ns=F,F=ar):(p=F,F=r),F}function C(){var F;return(F=(function(){var ar,Nr,Rr,ct,dt,Yt,vn;return(ar=(function(){var fn=p,gn,Vn,Jn;(gn=aa())!==r&&A()!==r?((Vn=qi())===r&&(Vn=null),Vn!==r&&A()!==r?((Jn=qu())===r&&(Jn=null),Jn!==r&&A()!==r?(ns=fn,ms=gn,Qs=Vn,$=Jn,gn={tableList:Array.from(su),columnList:so(Po),ast:{...ms.ast,_orderby:Qs,_limit:$,_parentheses:ms._parentheses}},fn=gn):(p=fn,fn=r)):(p=fn,fn=r)):(p=fn,fn=r);var ms,Qs,$;return fn})())===r&&(ar=p,Nr=p,t.charCodeAt(p)===40?(Rr="(",p++):(Rr=r,Ft===0&&Zn(o0)),Rr!==r&&(ct=A())!==r&&(dt=If())!==r&&(Yt=A())!==r?(t.charCodeAt(p)===41?(vn=")",p++):(vn=r,Ft===0&&Zn(xi)),vn===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct,dt,Yt,vn]):(p=Nr,Nr=r),Nr!==r&&(ns=ar,Nr={...Nr[2],parentheses_symbol:!0}),ar=Nr),ar})())===r&&(F=(function(){var ar;return(ar=aa())===r&&(ar=(function(){var Nr=p,Rr,ct,dt,Yt,vn,fn,gn;return(Rr=mc())!==r&&A()!==r&&(ct=Xa())!==r&&A()!==r&&P()!==r&&A()!==r&&(dt=L0())!==r&&A()!==r?((Yt=gf())===r&&(Yt=null),Yt!==r&&A()!==r?((vn=or())===r&&(vn=null),vn!==r&&A()!==r?((fn=qi())===r&&(fn=null),fn!==r&&A()!==r?((gn=qu())===r&&(gn=null),gn===r?(p=Nr,Nr=r):(ns=Nr,Rr=(function(Vn,Jn,ms,Qs,$,J){let br=mr=>{let{server:et,db:pt,schema:At,as:Bt,table:Ut,join:pn}=mr,Cn=pn?"select":"update",Hn=[et,pt,At].filter(Boolean).join(".")||null;pt&&(dbObj[Ut]=Hn),Ut&&su.add(`${Cn}::${Hn}::${Ut}`)};return Vn&&Vn.forEach(br),ms&&ms.forEach(br),Jn&&Jn.forEach(mr=>Po.add(`update::${mr.table}::${mr.column}`)),{tableList:Array.from(su),columnList:so(Po),ast:{type:"update",table:Vn,set:Jn,where:Qs,orderby:$,limit:J}}})(ct,dt,Yt,vn,fn,gn),Nr=Rr)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r),Nr})())===r&&(ar=(function(){var Nr=p,Rr,ct,dt,Yt,vn,fn,gn;return(Rr=Qb())!==r&&A()!==r?((ct=Q())===r&&(ct=null),ct!==r&&A()!==r&&(dt=gi())!==r&&A()!==r?((Yt=C0())===r&&(Yt=null),Yt!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=yn())!==r&&A()!==r&&Zr()!==r&&A()!==r&&(fn=Hf())!==r&&A()!==r?((gn=k0())===r&&(gn=null),gn===r?(p=Nr,Nr=r):(ns=Nr,Rr=(function(Vn,Jn,ms,Qs,$,J){if(Jn&&(su.add(`insert::${Jn.db}::${Jn.table}`),Jn.as=null),Qs){let br=Jn&&Jn.table||null;Array.isArray($.values)&&$.values.forEach((mr,et)=>{if(mr.value.length!=Qs.length)throw Error("Error: column count doesn't match value count at row "+(et+1))}),Qs.forEach(mr=>Po.add(`insert::${br}::${mr}`))}return{tableList:Array.from(su),columnList:so(Po),ast:{type:Vn,table:[Jn],columns:Qs,values:$,partition:ms,on_duplicate_update:J}}})(Rr,dt,Yt,vn,fn,gn),Nr=Rr)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r),Nr})())===r&&(ar=(function(){var Nr=p,Rr,ct,dt,Yt,vn,fn,gn;return(Rr=Qb())!==r&&A()!==r?((ct=(function(){var Vn=p,Jn,ms,Qs;return t.substr(p,6).toLowerCase()==="ignore"?(Jn=t.substr(p,6),p+=6):(Jn=r,Ft===0&&Zn(Pp)),Jn===r?(p=Vn,Vn=r):(ms=p,Ft++,Qs=Oe(),Ft--,Qs===r?ms=void 0:(p=ms,ms=r),ms===r?(p=Vn,Vn=r):Vn=Jn=[Jn,ms]),Vn})())===r&&(ct=null),ct!==r&&A()!==r?((dt=Q())===r&&(dt=null),dt!==r&&A()!==r&&(Yt=gi())!==r&&A()!==r?((vn=C0())===r&&(vn=null),vn!==r&&A()!==r&&(fn=Hf())!==r&&A()!==r?((gn=k0())===r&&(gn=null),gn===r?(p=Nr,Nr=r):(ns=Nr,Rr=(function(Vn,Jn,ms,Qs,$,J,br){Qs&&(su.add(`insert::${Qs.db}::${Qs.table}`),Po.add(`insert::${Qs.table}::(.*)`),Qs.as=null);let mr=[Jn,ms].filter(et=>et).map(et=>et[0]&&et[0].toLowerCase()).join(" ");return{tableList:Array.from(su),columnList:so(Po),ast:{type:Vn,table:[Qs],columns:null,values:J,partition:$,prefix:mr,on_duplicate_update:br}}})(Rr,ct,dt,Yt,vn,fn,gn),Nr=Rr)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r),Nr})())===r&&(ar=(function(){var Nr=p,Rr,ct,dt,Yt,vn,fn;(Rr=Qb())!==r&&A()!==r?((ct=Q())===r&&(ct=null),ct!==r&&A()!==r&&(dt=gi())!==r&&A()!==r?((Yt=C0())===r&&(Yt=null),Yt!==r&&A()!==r&&P()!==r&&A()!==r&&(vn=L0())!==r&&A()!==r?((fn=k0())===r&&(fn=null),fn===r?(p=Nr,Nr=r):(ns=Nr,gn=Rr,Jn=Yt,ms=vn,Qs=fn,(Vn=dt)&&(su.add(`insert::${Vn.db}::${Vn.table}`),Po.add(`insert::${Vn.table}::(.*)`),Vn.as=null),Rr={tableList:Array.from(su),columnList:so(Po),ast:{type:gn,table:[Vn],columns:null,partition:Jn,set:ms,on_duplicate_update:Qs}},Nr=Rr)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r);var gn,Vn,Jn,ms,Qs;return Nr})())===r&&(ar=(function(){var Nr=p,Rr,ct,dt,Yt,vn,fn;return(Rr=y0())!==r&&A()!==r?((ct=Xa())===r&&(ct=null),ct!==r&&A()!==r?((dt=gf())===r&&(dt=null),dt!==r&&A()!==r?((Yt=or())===r&&(Yt=null),Yt!==r&&A()!==r?((vn=qi())===r&&(vn=null),vn!==r&&A()!==r?((fn=qu())===r&&(fn=null),fn===r?(p=Nr,Nr=r):(ns=Nr,Rr=(function(gn,Vn,Jn,ms,Qs){if(gn&&gn.forEach($=>su.add(`delete::${$.db}::${$.table}`)),Vn&&Vn.forEach($=>{let{db:J,as:br,table:mr,join:et}=$,pt=et?"select":"delete";mr&&su.add(`${pt}::${J}::${mr}`),et||Po.add(`delete::${mr}::(.*)`)}),gn===null&&Vn.length===1){let $=Vn[0];gn=[{db:$.db,table:$.table,as:$.as,addition:!0}]}return{tableList:Array.from(su),columnList:so(Po),ast:{type:"delete",table:gn,from:Vn,where:Jn,orderby:ms,limit:Qs}}})(ct,dt,Yt,vn,fn),Nr=Rr)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r),Nr})())===r&&(ar=(function(){var Nr;return(Nr=(function(){var Rr=p,ct,dt;(ct=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,7).toLowerCase()==="analyze"?(gn=t.substr(p,7),p+=7):(gn=r,Ft===0&&Zn(Gb)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):fn=gn=[gn,Vn]),fn})())!==r&&A()!==r&&(dt=gi())!==r&&A()!==r?(ns=Rr,Yt=ct,vn=dt,su.add(`${Yt}::${vn.db}::${vn.table}`),ct={tableList:Array.from(su),columnList:so(Po),ast:{type:Yt.toLowerCase(),table:vn}},Rr=ct):(p=Rr,Rr=r);var Yt,vn;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt,Yt,vn,fn;(ct=(function(){var $=p,J,br,mr;return t.substr(p,6).toLowerCase()==="attach"?(J=t.substr(p,6),p+=6):(J=r,Ft===0&&Zn(hc)),J===r?(p=$,$=r):(br=p,Ft++,mr=Oe(),Ft--,mr===r?br=void 0:(p=br,br=r),br===r?(p=$,$=r):$=J=[J,br]),$})())!==r&&A()!==r&&(dt=Z0())!==r&&A()!==r&&(Yt=Qu())!==r&&A()!==r&&(vn=hr())!==r&&A()!==r&&(fn=Ua())!==r&&A()!==r?(ns=Rr,gn=ct,Vn=dt,Jn=Yt,ms=vn,Qs=fn,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:gn.toLowerCase(),database:Vn,expr:Jn,as:ms&&ms[0].toLowerCase(),schema:Qs}},Rr=ct):(p=Rr,Rr=r);var gn,Vn,Jn,ms,Qs;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt,Yt,vn,fn;(ct=yt())!==r&&A()!==r&&(dt=ht())!==r&&A()!==r&&(Yt=Xa())!==r?(ns=Rr,gn=ct,Vn=dt,(Jn=Yt)&&Jn.forEach(ms=>su.add(`${gn}::${ms.db}::${ms.table}`)),ct={tableList:Array.from(su),columnList:so(Po),ast:{type:gn.toLowerCase(),keyword:Vn.toLowerCase(),name:Jn}},Rr=ct):(p=Rr,Rr=r);var gn,Vn,Jn;return Rr===r&&(Rr=p,(ct=yt())!==r&&A()!==r&&(dt=Ir())!==r&&A()!==r&&(Yt=oi())!==r&&A()!==r&&Pr()!==r&&A()!==r&&(vn=gi())!==r&&A()!==r?((fn=(function(){var ms=p,Qs,$,J,br,mr;if((Qs=We())===r&&(Qs=ob()),Qs!==r){for($=[],J=p,(br=A())===r?(p=J,J=r):((mr=We())===r&&(mr=ob()),mr===r?(p=J,J=r):J=br=[br,mr]);J!==r;)$.push(J),J=p,(br=A())===r?(p=J,J=r):((mr=We())===r&&(mr=ob()),mr===r?(p=J,J=r):J=br=[br,mr]);$===r?(p=ms,ms=r):(ns=ms,Qs=dl(Qs,$),ms=Qs)}else p=ms,ms=r;return ms})())===r&&(fn=null),fn!==r&&A()!==r?(ns=Rr,ct=(function(ms,Qs,$,J,br){return{tableList:Array.from(su),columnList:so(Po),ast:{type:ms.toLowerCase(),keyword:Qs.toLowerCase(),name:$,table:J,options:br}}})(ct,dt,Yt,vn,fn),Rr=ct):(p=Rr,Rr=r)):(p=Rr,Rr=r)),Rr})())===r&&(Nr=(function(){var Rr;return(Rr=(function(){var ct=p,dt,Yt,vn,fn,gn,Vn,Jn,ms,Qs,$,J,br;(dt=Tc())!==r&&A()!==r?(Yt=p,(vn=ta())!==r&&(fn=A())!==r&&(gn=Yc())!==r?Yt=vn=[vn,fn,gn]:(p=Yt,Yt=r),Yt===r&&(Yt=null),Yt!==r&&(vn=A())!==r?((fn=ml())===r&&(fn=J0()),fn===r&&(fn=null),fn!==r&&(gn=A())!==r&&(Vn=ht())!==r&&A()!==r?((Jn=Oa())===r&&(Jn=null),Jn!==r&&A()!==r&&(ms=gi())!==r&&A()!==r?((Qs=(function(){var Ut,pn,Cn,Hn,qn,Cs,js,qe,bo;if(Ut=p,(pn=ir())!==r)if(A()!==r)if((Cn=V0())!==r){for(Hn=[],qn=p,(Cs=A())!==r&&(js=mt())!==r&&(qe=A())!==r&&(bo=V0())!==r?qn=Cs=[Cs,js,qe,bo]:(p=qn,qn=r);qn!==r;)Hn.push(qn),qn=p,(Cs=A())!==r&&(js=mt())!==r&&(qe=A())!==r&&(bo=V0())!==r?qn=Cs=[Cs,js,qe,bo]:(p=qn,qn=r);Hn!==r&&(qn=A())!==r&&(Cs=Zr())!==r?(ns=Ut,pn=Ae(Cn,Hn),Ut=pn):(p=Ut,Ut=r)}else p=Ut,Ut=r;else p=Ut,Ut=r;else p=Ut,Ut=r;return Ut})())===r&&(Qs=null),Qs!==r&&A()!==r?(($=(function(){var Ut,pn,Cn,Hn,qn,Cs,js,qe;if(Ut=p,(pn=Ye())!==r){for(Cn=[],Hn=p,(qn=A())===r?(p=Hn,Hn=r):((Cs=mt())===r&&(Cs=null),Cs!==r&&(js=A())!==r&&(qe=Ye())!==r?Hn=qn=[qn,Cs,js,qe]:(p=Hn,Hn=r));Hn!==r;)Cn.push(Hn),Hn=p,(qn=A())===r?(p=Hn,Hn=r):((Cs=mt())===r&&(Cs=null),Cs!==r&&(js=A())!==r&&(qe=Ye())!==r?Hn=qn=[qn,Cs,js,qe]:(p=Hn,Hn=r));Cn===r?(p=Ut,Ut=r):(ns=Ut,pn=me(pn,Cn),Ut=pn)}else p=Ut,Ut=r;return Ut})())===r&&($=null),$!==r&&A()!==r?((J=hr())===r&&(J=null),J!==r&&A()!==r?((br=aa())===r&&(br=null),br===r?(p=ct,ct=r):(ns=ct,dt=(function(Ut,pn,Cn,Hn,qn,Cs,js,qe,bo){return qn&&su.add(`create::${qn.db}::${qn.table}`),{tableList:Array.from(su),columnList:so(Po),ast:{type:Ut[0].toLowerCase(),keyword:"table",temporary:Cn&&Cn[0].toLowerCase(),if_not_exists:Hn,table:[qn],replace:pn&&"or replace",as:qe&&qe[0].toLowerCase(),query_expr:bo&&bo.ast,create_definitions:Cs,table_options:js}}})(dt,Yt,fn,Jn,ms,Qs,$,J,br),ct=dt)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r),ct===r&&(ct=p,(dt=Tc())!==r&&A()!==r?((Yt=J0())===r&&(Yt=null),Yt!==r&&(vn=A())!==r&&(fn=ht())!==r&&(gn=A())!==r?((Vn=Oa())===r&&(Vn=null),Vn!==r&&A()!==r&&(Jn=Xa())!==r&&A()!==r&&(ms=(function Ut(){var pn,Cn;(pn=(function(){var qn=p,Cs;return la()!==r&&A()!==r&&(Cs=Xa())!==r?(ns=qn,qn={type:"like",table:Cs}):(p=qn,qn=r),qn})())===r&&(pn=p,ir()!==r&&A()!==r&&(Cn=Ut())!==r&&A()!==r&&Zr()!==r?(ns=pn,(Hn=Cn).parentheses=!0,pn=Hn):(p=pn,pn=r));var Hn;return pn})())!==r?(ns=ct,mr=dt,et=Yt,pt=Vn,Bt=ms,(At=Jn)&&At.forEach(Ut=>su.add(`create::${Ut.db}::${Ut.table}`)),dt={tableList:Array.from(su),columnList:so(Po),ast:{type:mr[0].toLowerCase(),keyword:"table",temporary:et&&et[0].toLowerCase(),if_not_exists:pt,table:At,like:Bt}},ct=dt):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r));var mr,et,pt,At,Bt;return ct})())===r&&(Rr=(function(){var ct=p,dt,Yt,vn,fn,gn;return(dt=Tc())!==r&&A()!==r?((Yt=Z0())===r&&(Yt=(function(){var Vn=p,Jn,ms,Qs;return t.substr(p,6).toLowerCase()==="schema"?(Jn=t.substr(p,6),p+=6):(Jn=r,Ft===0&&Zn(_0)),Jn===r?(p=Vn,Vn=r):(ms=p,Ft++,Qs=Oe(),Ft--,Qs===r?ms=void 0:(p=ms,ms=r),ms===r?(p=Vn,Vn=r):Vn=Jn=[Jn,ms]),Vn})()),Yt!==r&&A()!==r?((vn=Oa())===r&&(vn=null),vn!==r&&A()!==r&&(fn=cl())!==r&&A()!==r?((gn=(function(){var Vn,Jn,ms,Qs,$,J;if(Vn=p,(Jn=mf())!==r){for(ms=[],Qs=p,($=A())!==r&&(J=mf())!==r?Qs=$=[$,J]:(p=Qs,Qs=r);Qs!==r;)ms.push(Qs),Qs=p,($=A())!==r&&(J=mf())!==r?Qs=$=[$,J]:(p=Qs,Qs=r);ms===r?(p=Vn,Vn=r):(ns=Vn,Jn=dl(Jn,ms),Vn=Jn)}else p=Vn,Vn=r;return Vn})())===r&&(gn=null),gn===r?(p=ct,ct=r):(ns=ct,dt=(function(Vn,Jn,ms,Qs,$){let J=Jn.toLowerCase();return{tableList:Array.from(su),columnList:so(Po),ast:{type:Vn[0].toLowerCase(),keyword:J,if_not_exists:ms,[J]:{db:Qs.schema,schema:Qs.name},create_definitions:$}}})(dt,Yt,vn,fn,gn),ct=dt)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r),ct})())===r&&(Rr=(function(){var ct=p,dt,Yt,vn,fn,gn,Vn,Jn,ms,Qs,$,J,br,mr,et,pt,At,Bt;return(dt=Tc())!==r&&A()!==r?(Yt=p,(vn=ta())!==r&&(fn=A())!==r&&(gn=Yc())!==r?Yt=vn=[vn,fn,gn]:(p=Yt,Yt=r),Yt===r&&(Yt=null),Yt!==r&&(vn=A())!==r?((fn=ml())===r&&(fn=J0()),fn===r&&(fn=null),fn!==r&&(gn=A())!==r?((Vn=(function(){var Ut=p,pn,Cn,Hn;return t.substr(p,9).toLowerCase()==="recursive"?(pn=t.substr(p,9),p+=9):(pn=r,Ft===0&&Zn($p)),pn===r?(p=Ut,Ut=r):(Cn=p,Ft++,Hn=Oe(),Ft--,Hn===r?Cn=void 0:(p=Cn,Cn=r),Cn===r?(p=Ut,Ut=r):Ut=pn=[pn,Cn]),Ut})())===r&&(Vn=null),Vn!==r&&A()!==r&&(function(){var Ut=p,pn,Cn,Hn;return t.substr(p,4).toLowerCase()==="view"?(pn=t.substr(p,4),p+=4):(pn=r,Ft===0&&Zn(jf)),pn===r?(p=Ut,Ut=r):(Cn=p,Ft++,Hn=Oe(),Ft--,Hn===r?Cn=void 0:(p=Cn,Cn=r),Cn===r?(p=Ut,Ut=r):(ns=Ut,Ut=pn="VIEW")),Ut})()!==r&&A()!==r&&(Jn=gi())!==r&&A()!==r?(ms=p,(Qs=ir())!==r&&($=A())!==r&&(J=yn())!==r&&(br=A())!==r&&(mr=Zr())!==r?ms=Qs=[Qs,$,J,br,mr]:(p=ms,ms=r),ms===r&&(ms=null),ms!==r&&(Qs=A())!==r?($=p,(J=Js())!==r&&(br=A())!==r&&(mr=ir())!==r&&(et=A())!==r&&(pt=(function(){var Ut,pn,Cn,Hn,qn,Cs,js,qe;if(Ut=p,(pn=ti())!==r){for(Cn=[],Hn=p,(qn=A())!==r&&(Cs=mt())!==r&&(js=A())!==r&&(qe=ti())!==r?Hn=qn=[qn,Cs,js,qe]:(p=Hn,Hn=r);Hn!==r;)Cn.push(Hn),Hn=p,(qn=A())!==r&&(Cs=mt())!==r&&(js=A())!==r&&(qe=ti())!==r?Hn=qn=[qn,Cs,js,qe]:(p=Hn,Hn=r);Cn===r?(p=Ut,Ut=r):(ns=Ut,pn=Ae(pn,Cn),Ut=pn)}else p=Ut,Ut=r;return Ut})())!==r&&(At=A())!==r&&(Bt=Zr())!==r?$=J=[J,br,mr,et,pt,At,Bt]:(p=$,$=r),$===r&&($=null),$!==r&&(J=A())!==r&&(br=hr())!==r&&(mr=A())!==r&&(et=If())!==r&&(pt=A())!==r?((At=(function(){var Ut=p,pn,Cn,Hn,qn;return(pn=Js())!==r&&A()!==r?(t.substr(p,8).toLowerCase()==="cascaded"?(Cn=t.substr(p,8),p+=8):(Cn=r,Ft===0&&Zn(Fl)),Cn===r&&(t.substr(p,5).toLowerCase()==="local"?(Cn=t.substr(p,5),p+=5):(Cn=r,Ft===0&&Zn(nc))),Cn!==r&&A()!==r?(t.substr(p,5).toLowerCase()==="check"?(Hn=t.substr(p,5),p+=5):(Hn=r,Ft===0&&Zn(xc)),Hn!==r&&A()!==r?(t.substr(p,6)==="OPTION"?(qn="OPTION",p+=6):(qn=r,Ft===0&&Zn(I0)),qn===r?(p=Ut,Ut=r):(ns=Ut,pn=(function(Cs){return`with ${Cs.toLowerCase()} check option`})(Cn),Ut=pn)):(p=Ut,Ut=r)):(p=Ut,Ut=r)):(p=Ut,Ut=r),Ut===r&&(Ut=p,(pn=Js())!==r&&A()!==r?(t.substr(p,5).toLowerCase()==="check"?(Cn=t.substr(p,5),p+=5):(Cn=r,Ft===0&&Zn(xc)),Cn!==r&&A()!==r?(t.substr(p,6)==="OPTION"?(Hn="OPTION",p+=6):(Hn=r,Ft===0&&Zn(I0)),Hn===r?(p=Ut,Ut=r):(ns=Ut,Ut=pn="with check option")):(p=Ut,Ut=r)):(p=Ut,Ut=r)),Ut})())===r&&(At=null),At===r?(p=ct,ct=r):(ns=ct,dt=(function(Ut,pn,Cn,Hn,qn,Cs,js,qe,bo){return qn.view=qn.table,delete qn.table,{tableList:Array.from(su),columnList:so(Po),ast:{type:Ut[0].toLowerCase(),keyword:"view",replace:pn&&"or replace",temporary:Cn&&Cn[0].toLowerCase(),recursive:Hn&&Hn.toLowerCase(),columns:Cs&&Cs[2],select:qe,view:qn,with_options:js&&js[4],with:bo}}})(dt,Yt,fn,Vn,Jn,ms,$,et,At),ct=dt)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r)):(p=ct,ct=r),ct})()),Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt,Yt;(ct=(function(){var Vn=p,Jn,ms,Qs;return t.substr(p,8).toLowerCase()==="truncate"?(Jn=t.substr(p,8),p+=8):(Jn=r,Ft===0&&Zn(rb)),Jn===r?(p=Vn,Vn=r):(ms=p,Ft++,Qs=Oe(),Ft--,Qs===r?ms=void 0:(p=ms,ms=r),ms===r?(p=Vn,Vn=r):(ns=Vn,Vn=Jn="TRUNCATE")),Vn})())!==r&&A()!==r?((dt=ht())===r&&(dt=null),dt!==r&&A()!==r&&(Yt=Xa())!==r?(ns=Rr,vn=ct,fn=dt,(gn=Yt)&&gn.forEach(Vn=>su.add(`${vn}::${Vn.db}::${Vn.table}`)),ct={tableList:Array.from(su),columnList:so(Po),ast:{type:vn.toLowerCase(),keyword:fn&&fn.toLowerCase()||"table",name:gn}},Rr=ct):(p=Rr,Rr=r)):(p=Rr,Rr=r);var vn,fn,gn;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt;(ct=lc())!==r&&A()!==r&&ht()!==r&&A()!==r&&(dt=(function(){var vn,fn,gn,Vn,Jn,ms,Qs,$;if(vn=p,(fn=Zl())!==r){for(gn=[],Vn=p,(Jn=A())!==r&&(ms=mt())!==r&&(Qs=A())!==r&&($=Zl())!==r?Vn=Jn=[Jn,ms,Qs,$]:(p=Vn,Vn=r);Vn!==r;)gn.push(Vn),Vn=p,(Jn=A())!==r&&(ms=mt())!==r&&(Qs=A())!==r&&($=Zl())!==r?Vn=Jn=[Jn,ms,Qs,$]:(p=Vn,Vn=r);gn===r?(p=vn,vn=r):(ns=vn,fn=Ae(fn,gn),vn=fn)}else p=vn,vn=r;return vn})())!==r?(ns=Rr,(Yt=dt).forEach(vn=>vn.forEach(fn=>fn.table&&su.add(`rename::${fn.db}::${fn.table}`))),ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"rename",table:Yt}},Rr=ct):(p=Rr,Rr=r);var Yt;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt;(ct=(function(){var vn=p,fn,gn,Vn;return t.substr(p,4).toLowerCase()==="call"?(fn=t.substr(p,4),p+=4):(fn=r,Ft===0&&Zn(Rs)),fn===r?(p=vn,vn=r):(gn=p,Ft++,Vn=Oe(),Ft--,Vn===r?gn=void 0:(p=gn,gn=r),gn===r?(p=vn,vn=r):(ns=vn,vn=fn="CALL")),vn})())!==r&&A()!==r&&(dt=Yi())!==r?(ns=Rr,Yt=dt,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"call",expr:Yt}},Rr=ct):(p=Rr,Rr=r);var Yt;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt;(ct=(function(){var vn=p,fn,gn,Vn;return t.substr(p,3).toLowerCase()==="use"?(fn=t.substr(p,3),p+=3):(fn=r,Ft===0&&Zn(Dp)),fn===r?(p=vn,vn=r):(gn=p,Ft++,Vn=Oe(),Ft--,Vn===r?gn=void 0:(p=gn,gn=r),gn===r?(p=vn,vn=r):vn=fn=[fn,gn]),vn})())!==r&&A()!==r&&(dt=Ua())!==r?(ns=Rr,Yt=dt,su.add(`use::${Yt}::null`),ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"use",db:Yt}},Rr=ct):(p=Rr,Rr=r);var Yt;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt,Yt;(ct=(function(){var gn=p,Vn,Jn,ms;return t.substr(p,5).toLowerCase()==="alter"?(Vn=t.substr(p,5),p+=5):(Vn=r,Ft===0&&Zn(zf)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):gn=Vn=[Vn,Jn]),gn})())!==r&&A()!==r&&ht()!==r&&A()!==r&&(dt=Xa())!==r&&A()!==r&&(Yt=(function(){var gn,Vn,Jn,ms,Qs,$,J,br;if(gn=p,(Vn=z0())!==r){for(Jn=[],ms=p,(Qs=A())!==r&&($=mt())!==r&&(J=A())!==r&&(br=z0())!==r?ms=Qs=[Qs,$,J,br]:(p=ms,ms=r);ms!==r;)Jn.push(ms),ms=p,(Qs=A())!==r&&($=mt())!==r&&(J=A())!==r&&(br=z0())!==r?ms=Qs=[Qs,$,J,br]:(p=ms,ms=r);Jn===r?(p=gn,gn=r):(ns=gn,Vn=Ae(Vn,Jn),gn=Vn)}else p=gn,gn=r;return gn})())!==r?(ns=Rr,fn=Yt,(vn=dt)&&vn.length>0&&vn.forEach(gn=>su.add(`alter::${gn.db}::${gn.table}`)),ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"alter",table:vn,expr:fn}},Rr=ct):(p=Rr,Rr=r);var vn,fn;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt,Yt;(ct=P())!==r&&A()!==r?((dt=(function(){var gn=p,Vn,Jn,ms;return t.substr(p,6).toLowerCase()==="global"?(Vn=t.substr(p,6),p+=6):(Vn=r,Ft===0&&Zn(nb)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="GLOBAL")),gn})())===r&&(dt=(function(){var gn=p,Vn,Jn,ms;return t.substr(p,7).toLowerCase()==="session"?(Vn=t.substr(p,7),p+=7):(Vn=r,Ft===0&&Zn(zt)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="SESSION")),gn})())===r&&(dt=(function(){var gn=p,Vn,Jn,ms;return t.substr(p,5).toLowerCase()==="local"?(Vn=t.substr(p,5),p+=5):(Vn=r,Ft===0&&Zn(nc)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="LOCAL")),gn})())===r&&(dt=(function(){var gn=p,Vn,Jn,ms;return t.substr(p,7).toLowerCase()==="persist"?(Vn=t.substr(p,7),p+=7):(Vn=r,Ft===0&&Zn(ja)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="PERSIST")),gn})())===r&&(dt=(function(){var gn=p,Vn,Jn,ms;return t.substr(p,12).toLowerCase()==="persist_only"?(Vn=t.substr(p,12),p+=12):(Vn=r,Ft===0&&Zn(Ob)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="PERSIST_ONLY")),gn})()),dt===r&&(dt=null),dt!==r&&A()!==r&&(Yt=(function(){var gn,Vn,Jn,ms,Qs,$,J,br;if(gn=p,(Vn=zi())!==r){for(Jn=[],ms=p,(Qs=A())!==r&&($=mt())!==r&&(J=A())!==r&&(br=zi())!==r?ms=Qs=[Qs,$,J,br]:(p=ms,ms=r);ms!==r;)Jn.push(ms),ms=p,(Qs=A())!==r&&($=mt())!==r&&(J=A())!==r&&(br=zi())!==r?ms=Qs=[Qs,$,J,br]:(p=ms,ms=r);Jn===r?(p=gn,gn=r):(ns=gn,Vn=Dn(Vn,Jn),gn=Vn)}else p=gn,gn=r;return gn})())!==r?(ns=Rr,vn=dt,(fn=Yt).keyword=vn,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"set",keyword:vn,expr:fn}},Rr=ct):(p=Rr,Rr=r)):(p=Rr,Rr=r);var vn,fn;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt;(ct=(function(){var vn=p,fn,gn,Vn;return t.substr(p,4).toLowerCase()==="lock"?(fn=t.substr(p,4),p+=4):(fn=r,Ft===0&&Zn(zc)),fn===r?(p=vn,vn=r):(gn=p,Ft++,Vn=Oe(),Ft--,Vn===r?gn=void 0:(p=gn,gn=r),gn===r?(p=vn,vn=r):vn=fn=[fn,gn]),vn})())!==r&&A()!==r&&e()!==r&&A()!==r&&(dt=(function(){var vn,fn,gn,Vn,Jn,ms,Qs,$;if(vn=p,(fn=K0())!==r){for(gn=[],Vn=p,(Jn=A())!==r&&(ms=mt())!==r&&(Qs=A())!==r&&($=K0())!==r?Vn=Jn=[Jn,ms,Qs,$]:(p=Vn,Vn=r);Vn!==r;)gn.push(Vn),Vn=p,(Jn=A())!==r&&(ms=mt())!==r&&(Qs=A())!==r&&($=K0())!==r?Vn=Jn=[Jn,ms,Qs,$]:(p=Vn,Vn=r);gn===r?(p=vn,vn=r):(ns=vn,fn=Dn(fn,gn),vn=fn)}else p=vn,vn=r;return vn})())!==r?(ns=Rr,Yt=dt,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"lock",keyword:"tables",tables:Yt}},Rr=ct):(p=Rr,Rr=r);var Yt;return Rr})())===r&&(Nr=(function(){var Rr=p,ct;return(ct=(function(){var dt=p,Yt,vn,fn;return t.substr(p,6).toLowerCase()==="unlock"?(Yt=t.substr(p,6),p+=6):(Yt=r,Ft===0&&Zn(mp)),Yt===r?(p=dt,dt=r):(vn=p,Ft++,fn=Oe(),Ft--,fn===r?vn=void 0:(p=vn,vn=r),vn===r?(p=dt,dt=r):dt=Yt=[Yt,vn]),dt})())!==r&&A()!==r&&e()!==r?(ns=Rr,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"unlock",keyword:"tables"}},Rr=ct):(p=Rr,Rr=r),Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt,Yt,vn,fn,gn,Vn,Jn;(ct=Ic())!==r&&A()!==r?(t.substr(p,6).toLowerCase()==="binary"?(dt=t.substr(p,6),p+=6):(dt=r,Ft===0&&Zn(Uo)),dt===r&&(t.substr(p,6).toLowerCase()==="master"?(dt=t.substr(p,6),p+=6):(dt=r,Ft===0&&Zn(Ps))),dt!==r&&(Yt=A())!==r?(t.substr(p,4).toLowerCase()==="logs"?(vn=t.substr(p,4),p+=4):(vn=r,Ft===0&&Zn(pe)),vn===r?(p=Rr,Rr=r):(ns=Rr,ms=dt,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"show",suffix:"logs",keyword:ms.toLowerCase()}},Rr=ct)):(p=Rr,Rr=r)):(p=Rr,Rr=r);var ms;Rr===r&&(Rr=p,(ct=Ic())!==r&&A()!==r?(t.substr(p,6).toLowerCase()==="binlog"?(dt=t.substr(p,6),p+=6):(dt=r,Ft===0&&Zn(_o)),dt!==r&&(Yt=A())!==r?(t.substr(p,6).toLowerCase()==="events"?(vn=t.substr(p,6),p+=6):(vn=r,Ft===0&&Zn(Gi)),vn!==r&&(fn=A())!==r?((gn=Va())===r&&(gn=null),gn!==r&&A()!==r?((Vn=gf())===r&&(Vn=null),Vn!==r&&A()!==r?((Jn=qu())===r&&(Jn=null),Jn===r?(p=Rr,Rr=r):(ns=Rr,Qs=gn,$=Vn,J=Jn,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"show",suffix:"events",keyword:"binlog",in:Qs,from:$,limit:J}},Rr=ct)):(p=Rr,Rr=r)):(p=Rr,Rr=r)):(p=Rr,Rr=r)):(p=Rr,Rr=r)):(p=Rr,Rr=r),Rr===r&&(Rr=p,(ct=Ic())!==r&&A()!==r?(dt=p,t.substr(p,9).toLowerCase()==="character"?(Yt=t.substr(p,9),p+=9):(Yt=r,Ft===0&&Zn(mi)),Yt!==r&&(vn=A())!==r?(t.substr(p,3).toLowerCase()==="set"?(fn=t.substr(p,3),p+=3):(fn=r,Ft===0&&Zn(Fi)),fn===r?(p=dt,dt=r):dt=Yt=[Yt,vn,fn]):(p=dt,dt=r),dt===r&&(t.substr(p,9).toLowerCase()==="collation"?(dt=t.substr(p,9),p+=9):(dt=r,Ft===0&&Zn(T0))),dt!==r&&(Yt=A())!==r?((vn=vi())===r&&(vn=or()),vn===r&&(vn=null),vn===r?(p=Rr,Rr=r):(ns=Rr,ct=(function(br,mr){let et=Array.isArray(br)&&br||[br];return{tableList:Array.from(su),columnList:so(Po),ast:{type:"show",suffix:et[2]&&et[2].toLowerCase(),keyword:et[0].toLowerCase(),expr:mr}}})(dt,vn),Rr=ct)):(p=Rr,Rr=r)):(p=Rr,Rr=r),Rr===r&&(Rr=(function(){var br=p,mr,et,pt;(mr=Ic())!==r&&A()!==r?(t.substr(p,6).toLowerCase()==="grants"?(et=t.substr(p,6),p+=6):(et=r,Ft===0&&Zn(Uc)),et!==r&&A()!==r?((pt=(function(){var Bt=p,Ut,pn,Cn,Hn,qn,Cs;t.substr(p,3).toLowerCase()==="for"?(Ut=t.substr(p,3),p+=3):(Ut=r,Ft===0&&Zn(Jc)),Ut!==r&&A()!==r&&(pn=Ua())!==r&&A()!==r?(Cn=p,(Hn=ab())!==r&&(qn=A())!==r&&(Cs=Ua())!==r?Cn=Hn=[Hn,qn,Cs]:(p=Cn,Cn=r),Cn===r&&(Cn=null),Cn!==r&&(Hn=A())!==r?((qn=(function(){var bo=p,tu;return kt()!==r&&A()!==r&&(tu=(function(){var Ru,Je,hu,Go,nu,xe,qs,fo;if(Ru=p,(Je=Ua())!==r){for(hu=[],Go=p,(nu=A())!==r&&(xe=mt())!==r&&(qs=A())!==r&&(fo=Ua())!==r?Go=nu=[nu,xe,qs,fo]:(p=Go,Go=r);Go!==r;)hu.push(Go),Go=p,(nu=A())!==r&&(xe=mt())!==r&&(qs=A())!==r&&(fo=Ua())!==r?Go=nu=[nu,xe,qs,fo]:(p=Go,Go=r);hu===r?(p=Ru,Ru=r):(ns=Ru,Je=Dn(Je,hu),Ru=Je)}else p=Ru,Ru=r;return Ru})())!==r?(ns=bo,bo=tu):(p=bo,bo=r),bo})())===r&&(qn=null),qn===r?(p=Bt,Bt=r):(ns=Bt,qe=qn,Ut={user:pn,host:(js=Cn)&&js[2],role_list:qe},Bt=Ut)):(p=Bt,Bt=r)):(p=Bt,Bt=r);var js,qe;return Bt})())===r&&(pt=null),pt===r?(p=br,br=r):(ns=br,At=pt,mr={tableList:Array.from(su),columnList:so(Po),ast:{type:"show",keyword:"grants",for:At}},br=mr)):(p=br,br=r)):(p=br,br=r);var At;return br})())));var Qs,$,J;return Rr})())===r&&(Nr=(function(){var Rr=p,ct,dt;(ct=no())===r&&(ct=(function(){var vn=p,fn,gn,Vn;return t.substr(p,8).toLowerCase()==="describe"?(fn=t.substr(p,8),p+=8):(fn=r,Ft===0&&Zn(Y0)),fn===r?(p=vn,vn=r):(gn=p,Ft++,Vn=Oe(),Ft--,Vn===r?gn=void 0:(p=gn,gn=r),gn===r?(p=vn,vn=r):vn=fn=[fn,gn]),vn})()),ct!==r&&A()!==r&&(dt=Ua())!==r?(ns=Rr,Yt=dt,ct={tableList:Array.from(su),columnList:so(Po),ast:{type:"desc",table:Yt}},Rr=ct):(p=Rr,Rr=r);var Yt;return Rr})()),Nr})())===r&&(ar=(function(){for(var Nr=[],Rr=Kn();Rr!==r;)Nr.push(Rr),Rr=Kn();return Nr})()),ar})()),F}function Kn(){var F,ar;return F=p,ns=p,Mu=[],r!==void 0&&A()!==r?((ar=zi())===r&&(ar=(function(){var Nr=p,Rr;return(function(){var ct;return t.substr(p,6).toLowerCase()==="return"?(ct=t.substr(p,6),p+=6):(ct=r,Ft===0&&Zn(Kf)),ct})()!==r&&A()!==r&&(Rr=Kl())!==r?(ns=Nr,Nr={type:"return",expr:Rr}):(p=Nr,Nr=r),Nr})()),ar===r?(p=F,F=r):(ns=F,F={stmt:ar,vars:Mu})):(p=F,F=r),F}function zi(){var F,ar,Nr,Rr;return F=p,(ar=M0())===r&&(ar=Wi()),ar!==r&&A()!==r?((Nr=(function(){var ct;return t.substr(p,2)===":="?(ct=":=",p+=2):(ct=r,Ft===0&&Zn(Fa)),ct})())===r&&(Nr=bi()),Nr!==r&&A()!==r&&(Rr=Kl())!==r?(ns=F,F=ar={type:"assign",left:ar,symbol:Nr,right:Rr}):(p=F,F=r)):(p=F,F=r),F}function Kl(){var F;return(F=If())===r&&(F=(function(){var ar=p,Nr,Rr,ct,dt;return(Nr=M0())!==r&&A()!==r&&(Rr=st())!==r&&A()!==r&&(ct=M0())!==r&&A()!==r&&(dt=Ra())!==r?(ns=ar,ar=Nr={type:"join",ltable:Nr,rtable:ct,op:Rr,on:dt}):(p=ar,ar=r),ar})())===r&&(F=zl())===r&&(F=(function(){var ar=p,Nr;return Ds()!==r&&A()!==r&&(Nr=hl())!==r&&A()!==r&&ut()!==r?(ns=ar,ar={type:"array",value:Nr,brackets:!0}):(p=ar,ar=r),ar})()),F}function zl(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Ot())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=Wn())!==r&&(Yt=A())!==r&&(vn=Ot())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=Wn())!==r&&(Yt=A())!==r&&(vn=Ot())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Pn(ar,Nr))}else p=F,F=r;return F}function Ot(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=hs())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=ia())!==r&&(Yt=A())!==r&&(vn=hs())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=ia())!==r&&(Yt=A())!==r&&(vn=hs())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Pn(ar,Nr))}else p=F,F=r;return F}function hs(){var F,ar,Nr;return(F=ii())===r&&(F=M0())===r&&(F=Yi())===r&&(F=ni())===r&&(F=p,ir()!==r&&A()!==r&&(ar=zl())!==r&&A()!==r&&Zr()!==r?(ns=F,(Nr=ar).parentheses=!0,F=Nr):(p=F,F=r)),F}function Yi(){var F,ar,Nr;return F=p,(ar=cl())!==r&&A()!==r&&ir()!==r&&A()!==r?((Nr=hl())===r&&(Nr=null),Nr!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar=(function(Rr,ct){return{type:"function",name:Rr,args:{type:"expr_list",value:ct},...Ws()}})(ar,Nr)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=cl())!==r&&(ns=F,ar=(function(Rr){return{type:"function",name:Rr,args:null,...Ws()}})(ar)),F=ar),F}function hl(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=hs())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=hs())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=hs())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Ae(ar,Nr))}else p=F,F=r;return F}function L0(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Bn())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=Bn())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=Bn())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Ae(ar,Nr))}else p=F,F=r;return F}function Bn(){var F,ar,Nr,Rr,ct,dt,Yt,vn;return F=p,ar=p,(Nr=Ua())!==r&&(Rr=A())!==r&&(ct=Lt())!==r?ar=Nr=[Nr,Rr,ct]:(p=ar,ar=r),ar===r&&(ar=null),ar!==r&&(Nr=A())!==r&&(Rr=Mi())!==r&&(ct=A())!==r?(t.charCodeAt(p)===61?(dt="=",p++):(dt=r,Ft===0&&Zn(ou)),dt!==r&&A()!==r&&(Yt=Qu())!==r?(ns=F,F=ar=(function(fn,gn,Vn){return{column:gn,value:Vn,table:fn&&fn[0]}})(ar,Rr,Yt)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,ar=p,(Nr=Ua())!==r&&(Rr=A())!==r&&(ct=Lt())!==r?ar=Nr=[Nr,Rr,ct]:(p=ar,ar=r),ar===r&&(ar=null),ar!==r&&(Nr=A())!==r&&(Rr=Mi())!==r&&(ct=A())!==r?(t.charCodeAt(p)===61?(dt="=",p++):(dt=r,Ft===0&&Zn(ou)),dt!==r&&A()!==r&&(Yt=K())!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=oi())!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar=(function(fn,gn,Vn){return{column:gn,value:Vn,table:fn&&fn[0],keyword:"values"}})(ar,Rr,vn)):(p=F,F=r)):(p=F,F=r)),F}function Qb(){var F,ar;return F=p,(ar=(function(){var Nr=p,Rr,ct,dt;return t.substr(p,6).toLowerCase()==="insert"?(Rr=t.substr(p,6),p+=6):(Rr=r,Ft===0&&Zn(Lb)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct]),Nr})())!==r&&(ns=F,ar="insert"),(F=ar)===r&&(F=p,(ar=Yc())!==r&&(ns=F,ar="replace"),F=ar),F}function C0(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn;if(F=p,Y()!==r)if(A()!==r)if((ar=ir())!==r)if(A()!==r)if((Nr=ln())!==r){for(Rr=[],ct=p,(dt=A())!==r&&(Yt=mt())!==r&&(vn=A())!==r&&(fn=ln())!==r?ct=dt=[dt,Yt,vn,fn]:(p=ct,ct=r);ct!==r;)Rr.push(ct),ct=p,(dt=A())!==r&&(Yt=mt())!==r&&(vn=A())!==r&&(fn=ln())!==r?ct=dt=[dt,Yt,vn,fn]:(p=ct,ct=r);Rr!==r&&(ct=A())!==r&&(dt=Zr())!==r?(ns=F,F=me(Nr,Rr)):(p=F,F=r)}else p=F,F=r;else p=F,F=r;else p=F,F=r;else p=F,F=r;else p=F,F=r;return F===r&&(F=p,Y()!==r&&A()!==r&&(ar=wa())!==r?(ns=F,F=ar):(p=F,F=r)),F}function Hf(){var F,ar;return(F=(function(){var Nr=p,Rr;return K()!==r&&A()!==r&&(Rr=(function(){var ct,dt,Yt,vn,fn,gn,Vn,Jn;if(ct=p,(dt=wa())!==r){for(Yt=[],vn=p,(fn=A())!==r&&(gn=mt())!==r&&(Vn=A())!==r&&(Jn=wa())!==r?vn=fn=[fn,gn,Vn,Jn]:(p=vn,vn=r);vn!==r;)Yt.push(vn),vn=p,(fn=A())!==r&&(gn=mt())!==r&&(Vn=A())!==r&&(Jn=wa())!==r?vn=fn=[fn,gn,Vn,Jn]:(p=vn,vn=r);Yt===r?(p=ct,ct=r):(ns=ct,dt=Ae(dt,Yt),ct=dt)}else p=ct,ct=r;return ct})())!==r?(ns=Nr,Nr={type:"values",values:Rr}):(p=Nr,Nr=r),Nr})())===r&&(F=p,(ar=aa())!==r&&(ns=F,ar=ar.ast),F=ar),F}function k0(){var F,ar,Nr;return F=p,Pr()!==r&&A()!==r?(t.substr(p,9).toLowerCase()==="duplicate"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(Hs)),ar!==r&&A()!==r&&s()!==r&&A()!==r&&mc()!==r&&A()!==r&&(Nr=L0())!==r?(ns=F,F={keyword:"on duplicate key update",set:Nr}):(p=F,F=r)):(p=F,F=r),F}function M0(){var F,ar,Nr,Rr,ct;return F=p,(ar=(function(){var dt;return(dt=(function(){var Yt;return t.substr(p,2)==="@@"?(Yt="@@",p+=2):(Yt=r,Ft===0&&Zn(ov)),Yt})())===r&&(dt=ab())===r&&(dt=(function(){var Yt;return t.charCodeAt(p)===36?(Yt="$",p++):(Yt=r,Ft===0&&Zn(Fb)),Yt})()),dt})())!==r&&(Nr=Wi())!==r?(ns=F,Rr=ar,ct=Nr,F=ar={type:"var",...ct,prefix:Rr}):(p=F,F=r),F}function Wi(){var F,ar,Nr;return F=p,(ar=ln())!==r&&(Nr=(function(){var Rr=p,ct=[],dt=p,Yt,vn;for(t.charCodeAt(p)===46?(Yt=".",p++):(Yt=r,Ft===0&&Zn(wc)),Yt!==r&&(vn=ln())!==r?dt=Yt=[Yt,vn]:(p=dt,dt=r);dt!==r;)ct.push(dt),dt=p,t.charCodeAt(p)===46?(Yt=".",p++):(Yt=r,Ft===0&&Zn(wc)),Yt!==r&&(vn=ln())!==r?dt=Yt=[Yt,vn]:(p=dt,dt=r);return ct!==r&&(ns=Rr,ct=(function(fn){let gn=[];for(let Vn=0;Vn<fn.length;Vn++)gn.push(fn[Vn][1]);return gn})(ct)),Rr=ct})())!==r?(ns=F,F=ar=(function(Rr,ct){return Mu.push(Rr),{type:"var",name:Rr,members:ct,prefix:null}})(ar,Nr)):(p=F,F=r),F===r&&(F=p,(ar=k())!==r&&(ns=F,ar={type:"var",name:ar.value,members:[],quoted:null,prefix:null}),F=ar),F}function wa(){var F,ar;return F=p,ir()!==r&&A()!==r&&(ar=Se())!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar):(p=F,F=r),F}function Oa(){var F,ar;return F=p,t.substr(p,2).toLowerCase()==="if"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(Gl)),ar!==r&&A()!==r&&Ia()!==r&&A()!==r&&da()!==r?(ns=F,F=ar="IF NOT EXISTS"):(p=F,F=r),F}function ti(){var F,ar,Nr;return F=p,t.substr(p,12).toLowerCase()==="check_option"?(ar=t.substr(p,12),p+=12):(ar=r,Ft===0&&Zn(ji)),ar!==r&&A()!==r&&bi()!==r&&A()!==r?(t.substr(p,8).toLowerCase()==="cascaded"?(Nr=t.substr(p,8),p+=8):(Nr=r,Ft===0&&Zn(Fl)),Nr===r&&(t.substr(p,5).toLowerCase()==="local"?(Nr=t.substr(p,5),p+=5):(Nr=r,Ft===0&&Zn(nc))),Nr===r?(p=F,F=r):(ns=F,F=ar={type:"check_option",value:Nr,symbol:"="})):(p=F,F=r),F===r&&(F=p,t.substr(p,16).toLowerCase()==="security_barrier"?(ar=t.substr(p,16),p+=16):(ar=r,Ft===0&&Zn(af)),ar===r&&(t.substr(p,16).toLowerCase()==="security_invoker"?(ar=t.substr(p,16),p+=16):(ar=r,Ft===0&&Zn(qf))),ar!==r&&A()!==r&&bi()!==r&&A()!==r&&(Nr=Zt())!==r?(ns=F,F=ar=(function(Rr,ct){return{type:Rr.toLowerCase(),value:ct.value?"true":"false",symbol:"="}})(ar,Nr)):(p=F,F=r)),F}function We(){var F,ar,Nr,Rr;return F=p,t.substr(p,9).toLowerCase()==="algorithm"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(Ll)),ar!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r?(t.substr(p,7).toLowerCase()==="default"?(Rr=t.substr(p,7),p+=7):(Rr=r,Ft===0&&Zn(jl)),Rr===r&&(t.substr(p,7).toLowerCase()==="instant"?(Rr=t.substr(p,7),p+=7):(Rr=r,Ft===0&&Zn(Oi)),Rr===r&&(t.substr(p,7).toLowerCase()==="inplace"?(Rr=t.substr(p,7),p+=7):(Rr=r,Ft===0&&Zn(bb)),Rr===r&&(t.substr(p,4).toLowerCase()==="copy"?(Rr=t.substr(p,4),p+=4):(Rr=r,Ft===0&&Zn(Vi))))),Rr===r?(p=F,F=r):(ns=F,F=ar={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:Nr,algorithm:Rr})):(p=F,F=r)):(p=F,F=r),F}function ob(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="lock"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(zc)),ar!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r?(t.substr(p,7).toLowerCase()==="default"?(Rr=t.substr(p,7),p+=7):(Rr=r,Ft===0&&Zn(jl)),Rr===r&&(t.substr(p,4).toLowerCase()==="none"?(Rr=t.substr(p,4),p+=4):(Rr=r,Ft===0&&Zn(kc)),Rr===r&&(t.substr(p,6).toLowerCase()==="shared"?(Rr=t.substr(p,6),p+=6):(Rr=r,Ft===0&&Zn(vb)),Rr===r&&(t.substr(p,9).toLowerCase()==="exclusive"?(Rr=t.substr(p,9),p+=9):(Rr=r,Ft===0&&Zn(Zc))))),Rr===r?(p=F,F=r):(ns=F,F=ar={type:"alter",keyword:"lock",resource:"lock",symbol:Nr,lock:Rr})):(p=F,F=r)):(p=F,F=r),F}function V0(){var F;return(F=Ef())===r&&(F=(function(){var ar=p,Nr,Rr,ct,dt,Yt;return(Nr=Ir())===r&&(Nr=s()),Nr!==r&&A()!==r?((Rr=ha())===r&&(Rr=null),Rr!==r&&A()!==r?((ct=ub())===r&&(ct=null),ct!==r&&A()!==r&&(dt=Su())!==r&&A()!==r?((Yt=Al())===r&&(Yt=null),Yt!==r&&A()!==r?(ns=ar,Nr=(function(vn,fn,gn,Vn,Jn){return{index:fn,definition:Vn,keyword:vn.toLowerCase(),index_type:gn,resource:"index",index_options:Jn}})(Nr,Rr,ct,dt,Yt),ar=Nr):(p=ar,ar=r)):(p=ar,ar=r)):(p=ar,ar=r)):(p=ar,ar=r),ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct,dt,Yt;return(Nr=(function(){var vn=p,fn,gn,Vn;return t.substr(p,8).toLowerCase()==="fulltext"?(fn=t.substr(p,8),p+=8):(fn=r,Ft===0&&Zn(wv)),fn===r?(p=vn,vn=r):(gn=p,Ft++,Vn=Oe(),Ft--,Vn===r?gn=void 0:(p=gn,gn=r),gn===r?(p=vn,vn=r):(ns=vn,vn=fn="FULLTEXT")),vn})())===r&&(Nr=(function(){var vn=p,fn,gn,Vn;return t.substr(p,7).toLowerCase()==="spatial"?(fn=t.substr(p,7),p+=7):(fn=r,Ft===0&&Zn(je)),fn===r?(p=vn,vn=r):(gn=p,Ft++,Vn=Oe(),Ft--,Vn===r?gn=void 0:(p=gn,gn=r),gn===r?(p=vn,vn=r):vn=fn=[fn,gn]),vn})()),Nr!==r&&A()!==r?((Rr=Ir())===r&&(Rr=s()),Rr===r&&(Rr=null),Rr!==r&&A()!==r?((ct=ha())===r&&(ct=null),ct!==r&&A()!==r&&(dt=Su())!==r&&A()!==r?((Yt=Al())===r&&(Yt=null),Yt===r?(p=ar,ar=r):(ns=ar,Nr=(function(vn,fn,gn,Vn,Jn){return{index:gn,definition:Vn,keyword:fn&&`${vn.toLowerCase()} ${fn.toLowerCase()}`||vn.toLowerCase(),index_options:Jn,resource:"index"}})(Nr,Rr,ct,dt,Yt),ar=Nr)):(p=ar,ar=r)):(p=ar,ar=r)):(p=ar,ar=r),ar})()),F}function hf(){var F,ar,Nr,Rr;return F=p,(ar=(function(){var ct=p,dt;return(dt=(function(){var Yt=p,vn,fn,gn;return t.substr(p,8).toLowerCase()==="not null"?(vn=t.substr(p,8),p+=8):(vn=r,Ft===0&&Zn(Ep)),vn===r?(p=Yt,Yt=r):(fn=p,Ft++,gn=Oe(),Ft--,gn===r?fn=void 0:(p=fn,fn=r),fn===r?(p=Yt,Yt=r):Yt=vn=[vn,fn]),Yt})())!==r&&(ns=ct,dt={type:"not null",value:"not null"}),ct=dt})())===r&&(ar=o()),ar!==r&&(ns=F,(Rr=ar)&&!Rr.value&&(Rr.value="null"),ar={nullable:Rr}),(F=ar)===r&&(F=p,(ar=(function(){var ct=p,dt;return Un()!==r&&A()!==r&&(dt=Qu())!==r?(ns=ct,ct={type:"default",value:dt}):(p=ct,ct=r),ct})())!==r&&(ns=F,ar={default_val:ar}),(F=ar)===r&&(F=p,t.substr(p,14).toLowerCase()==="auto_increment"?(ar=t.substr(p,14),p+=14):(ar=r,Ft===0&&Zn(nl)),ar!==r&&(ns=F,ar={auto_increment:ar.toLowerCase()}),(F=ar)===r&&(F=p,t.substr(p,6).toLowerCase()==="unique"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Xf)),ar!==r&&A()!==r?(t.substr(p,3).toLowerCase()==="key"?(Nr=t.substr(p,3),p+=3):(Nr=r,Ft===0&&Zn(gl)),Nr===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=ar=(function(ct){let dt=["unique"];return ct&&dt.push(ct),{unique:dt.join(" ").toLowerCase("")}})(Nr))):(p=F,F=r),F===r&&(F=p,t.substr(p,7).toLowerCase()==="primary"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(lf)),ar===r&&(ar=null),ar!==r&&A()!==r?(t.substr(p,3).toLowerCase()==="key"?(Nr=t.substr(p,3),p+=3):(Nr=r,Ft===0&&Zn(gl)),Nr===r?(p=F,F=r):(ns=F,F=ar=(function(ct){let dt=[];return ct&&dt.push("primary"),dt.push("key"),{primary_key:dt.join(" ").toLowerCase("")}})(ar))):(p=F,F=r),F===r&&(F=p,(ar=Af())!==r&&(ns=F,ar={comment:ar}),(F=ar)===r&&(F=p,(ar=El())!==r&&(ns=F,ar={collate:ar}),(F=ar)===r&&(F=p,(ar=(function(){var ct=p,dt,Yt;return t.substr(p,13).toLowerCase()==="column_format"?(dt=t.substr(p,13),p+=13):(dt=r,Ft===0&&Zn(Qc)),dt!==r&&A()!==r?(t.substr(p,5).toLowerCase()==="fixed"?(Yt=t.substr(p,5),p+=5):(Yt=r,Ft===0&&Zn(gv)),Yt===r&&(t.substr(p,7).toLowerCase()==="dynamic"?(Yt=t.substr(p,7),p+=7):(Yt=r,Ft===0&&Zn(g0)),Yt===r&&(t.substr(p,7).toLowerCase()==="default"?(Yt=t.substr(p,7),p+=7):(Yt=r,Ft===0&&Zn(jl)))),Yt===r?(p=ct,ct=r):(ns=ct,dt={type:"column_format",value:Yt.toLowerCase()},ct=dt)):(p=ct,ct=r),ct})())!==r&&(ns=F,ar={column_format:ar}),(F=ar)===r&&(F=p,(ar=(function(){var ct=p,dt,Yt;return t.substr(p,7).toLowerCase()==="storage"?(dt=t.substr(p,7),p+=7):(dt=r,Ft===0&&Zn(Ki)),dt!==r&&A()!==r?(t.substr(p,4).toLowerCase()==="disk"?(Yt=t.substr(p,4),p+=4):(Yt=r,Ft===0&&Zn(Pb)),Yt===r&&(t.substr(p,6).toLowerCase()==="memory"?(Yt=t.substr(p,6),p+=6):(Yt=r,Ft===0&&Zn(ei))),Yt===r?(p=ct,ct=r):(ns=ct,dt={type:"storage",value:Yt.toLowerCase()},ct=dt)):(p=ct,ct=r),ct})())!==r&&(ns=F,ar={storage:ar}),(F=ar)===r&&(F=p,(ar=w0())!==r&&(ns=F,ar={reference_definition:ar}),F=ar))))))))),F}function Ef(){var F,ar,Nr,Rr;return F=p,(ar=oi())!==r&&A()!==r&&(Nr=cn())!==r&&A()!==r?((Rr=(function(){var ct,dt,Yt,vn,fn,gn;if(ct=p,(dt=hf())!==r)if(A()!==r){for(Yt=[],vn=p,(fn=A())!==r&&(gn=hf())!==r?vn=fn=[fn,gn]:(p=vn,vn=r);vn!==r;)Yt.push(vn),vn=p,(fn=A())!==r&&(gn=hf())!==r?vn=fn=[fn,gn]:(p=vn,vn=r);Yt===r?(p=ct,ct=r):(ns=ct,ct=dt=(function(Vn,Jn){let ms=Vn;for(let Qs=0;Qs<Jn.length;Qs++)ms={...ms,...Jn[Qs][1]};return ms})(dt,Yt))}else p=ct,ct=r;else p=ct,ct=r;return ct})())===r&&(Rr=null),Rr===r?(p=F,F=r):(ns=F,F=ar=(function(ct,dt,Yt){return Po.add(`create::${ct.table}::${ct.column}`),{column:ct,definition:dt,resource:"column",...Yt||{}}})(ar,Nr,Rr))):(p=F,F=r),F}function K0(){var F,ar,Nr,Rr,ct;return F=p,(ar=n())!==r&&A()!==r&&(Nr=(function(){var dt=p,Yt,vn;return t.substr(p,4).toLowerCase()==="read"?(Yt=t.substr(p,4),p+=4):(Yt=r,Ft===0&&Zn(s0)),Yt!==r&&A()!==r?(t.substr(p,5).toLowerCase()==="local"?(vn=t.substr(p,5),p+=5):(vn=r,Ft===0&&Zn(nc)),vn===r&&(vn=null),vn===r?(p=dt,dt=r):(ns=dt,dt=Yt={type:"read",suffix:vn&&"local"})):(p=dt,dt=r),dt===r&&(dt=p,t.substr(p,12).toLowerCase()==="low_priority"?(Yt=t.substr(p,12),p+=12):(Yt=r,Ft===0&&Zn(Rv)),Yt===r&&(Yt=null),Yt!==r&&A()!==r?(t.substr(p,5).toLowerCase()==="write"?(vn=t.substr(p,5),p+=5):(vn=r,Ft===0&&Zn(nv)),vn===r?(p=dt,dt=r):(ns=dt,dt=Yt={type:"write",prefix:Yt&&"low_priority"})):(p=dt,dt=r)),dt})())!==r?(ns=F,Rr=ar,ct=Nr,su.add(`lock::${Rr.db}::${Rr.table}`),F=ar={table:Rr,lock_type:ct}):(p=F,F=r),F}function Af(){var F,ar,Nr,Rr;return F=p,(ar=er())!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r&&(Rr=ba())!==r?(ns=F,F=ar=(function(ct,dt,Yt){return{type:ct.toLowerCase(),keyword:ct.toLowerCase(),symbol:dt,value:Yt}})(ar,Nr,Rr)):(p=F,F=r)):(p=F,F=r),F}function El(){var F,ar,Nr;return F=p,(function(){var Rr=p,ct,dt,Yt;return t.substr(p,7).toLowerCase()==="collate"?(ct=t.substr(p,7),p+=7):(ct=r,Ft===0&&Zn(Dc)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):(ns=Rr,Rr=ct="COLLATE")),Rr})()!==r&&A()!==r?((ar=bi())===r&&(ar=null),ar!==r&&A()!==r&&(Nr=Ua())!==r?(ns=F,F={type:"collate",keyword:"collate",collate:{name:Nr,symbol:ar}}):(p=F,F=r)):(p=F,F=r),F}function w0(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn,gn;return F=p,(ar=(function(){var Vn=p,Jn,ms,Qs;return t.substr(p,10).toLowerCase()==="references"?(Jn=t.substr(p,10),p+=10):(Jn=r,Ft===0&&Zn(X0)),Jn===r?(p=Vn,Vn=r):(ms=p,Ft++,Qs=Oe(),Ft--,Qs===r?ms=void 0:(p=ms,ms=r),ms===r?(p=Vn,Vn=r):(ns=Vn,Vn=Jn="REFERENCES")),Vn})())!==r&&A()!==r&&(Nr=Xa())!==r&&A()!==r&&(Rr=Su())!==r&&A()!==r?(t.substr(p,10).toLowerCase()==="match full"?(ct=t.substr(p,10),p+=10):(ct=r,Ft===0&&Zn(pb)),ct===r&&(t.substr(p,13).toLowerCase()==="match partial"?(ct=t.substr(p,13),p+=13):(ct=r,Ft===0&&Zn(j0)),ct===r&&(t.substr(p,12).toLowerCase()==="match simple"?(ct=t.substr(p,12),p+=12):(ct=r,Ft===0&&Zn(B0)))),ct===r&&(ct=null),ct!==r&&A()!==r?((dt=Ac())===r&&(dt=null),dt!==r&&A()!==r?((Yt=Ac())===r&&(Yt=null),Yt===r?(p=F,F=r):(ns=F,vn=ct,fn=dt,gn=Yt,F=ar={definition:Rr,table:Nr,keyword:ar.toLowerCase(),match:vn&&vn.toLowerCase(),on_action:[fn,gn].filter(Vn=>Vn)})):(p=F,F=r)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=Ac())!==r&&(ns=F,ar={on_action:[ar]}),F=ar),F}function ul(){var F,ar,Nr,Rr;return F=p,t.substr(p,20).toLowerCase()==="expiration_timestamp"?(ar=t.substr(p,20),p+=20):(ar=r,Ft===0&&Zn(Mc)),ar===r&&(t.substr(p,25).toLowerCase()==="partition_expiration_days"?(ar=t.substr(p,25),p+=25):(ar=r,Ft===0&&Zn(Cl)),ar===r&&(t.substr(p,24).toLowerCase()==="require_partition_filter"?(ar=t.substr(p,24),p+=24):(ar=r,Ft===0&&Zn($u)),ar===r&&(t.substr(p,12).toLowerCase()==="kms_key_name"?(ar=t.substr(p,12),p+=12):(ar=r,Ft===0&&Zn(r0)),ar===r&&(t.substr(p,13).toLowerCase()==="friendly_name"?(ar=t.substr(p,13),p+=13):(ar=r,Ft===0&&Zn(zn)),ar===r&&(t.substr(p,11).toLowerCase()==="description"?(ar=t.substr(p,11),p+=11):(ar=r,Ft===0&&Zn(Ss)),ar===r&&(t.substr(p,6).toLowerCase()==="labels"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(te)),ar===r&&(t.substr(p,21).toLowerCase()==="default_rounding_mode"?(ar=t.substr(p,21),p+=21):(ar=r,Ft===0&&Zn(ce))))))))),ar!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r&&(Rr=Qu())!==r?(ns=F,F=ar={keyword:ar,symbol:"=",value:Rr}):(p=F,F=r)):(p=F,F=r),F}function Ye(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn;return F=p,t.substr(p,14).toLowerCase()==="auto_increment"?(ar=t.substr(p,14),p+=14):(ar=r,Ft===0&&Zn(nl)),ar===r&&(t.substr(p,14).toLowerCase()==="avg_row_length"?(ar=t.substr(p,14),p+=14):(ar=r,Ft===0&&Zn(He)),ar===r&&(t.substr(p,14).toLowerCase()==="key_block_size"?(ar=t.substr(p,14),p+=14):(ar=r,Ft===0&&Zn(Ue)),ar===r&&(t.substr(p,8).toLowerCase()==="max_rows"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(Qe)),ar===r&&(t.substr(p,8).toLowerCase()==="min_rows"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(uo)),ar===r&&(t.substr(p,18).toLowerCase()==="stats_sample_pages"?(ar=t.substr(p,18),p+=18):(ar=r,Ft===0&&Zn(Ao))))))),ar!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r&&(Rr=k())!==r?(ns=F,vn=Nr,fn=Rr,F=ar={keyword:ar.toLowerCase(),symbol:vn,value:fn.value}):(p=F,F=r)):(p=F,F=r),F===r&&(F=mf())===r&&(F=p,(ar=er())===r&&(t.substr(p,10).toLowerCase()==="connection"?(ar=t.substr(p,10),p+=10):(ar=r,Ft===0&&Zn(Pu))),ar!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r&&(Rr=ba())!==r?(ns=F,F=ar=(function(gn,Vn,Jn){return{keyword:gn.toLowerCase(),symbol:Vn,value:`'${Jn.value}'`}})(ar,Nr,Rr)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,t.substr(p,11).toLowerCase()==="compression"?(ar=t.substr(p,11),p+=11):(ar=r,Ft===0&&Zn(Ca)),ar!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r?(Rr=p,t.charCodeAt(p)===39?(ct="'",p++):(ct=r,Ft===0&&Zn(ku)),ct===r?(p=Rr,Rr=r):(t.substr(p,4).toLowerCase()==="zlib"?(dt=t.substr(p,4),p+=4):(dt=r,Ft===0&&Zn(ca)),dt===r&&(t.substr(p,3).toLowerCase()==="lz4"?(dt=t.substr(p,3),p+=3):(dt=r,Ft===0&&Zn(na)),dt===r&&(t.substr(p,4).toLowerCase()==="none"?(dt=t.substr(p,4),p+=4):(dt=r,Ft===0&&Zn(kc)))),dt===r?(p=Rr,Rr=r):(t.charCodeAt(p)===39?(Yt="'",p++):(Yt=r,Ft===0&&Zn(ku)),Yt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt,Yt])),Rr===r?(p=F,F=r):(ns=F,F=ar=(function(gn,Vn,Jn){return{keyword:gn.toLowerCase(),symbol:Vn,value:Jn.join("").toUpperCase()}})(ar,Nr,Rr))):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,t.substr(p,6).toLowerCase()==="engine"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Qa)),ar!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r&&(Rr=ln())!==r?(ns=F,F=ar=(function(gn,Vn,Jn){return{keyword:gn.toLowerCase(),symbol:Vn,value:Jn.toUpperCase()}})(ar,Nr,Rr)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=Y())!==r&&A()!==r&&(Nr=Ve())!==r&&A()!==r&&(Rr=Qu())!==r?(ns=F,F=ar=(function(gn){return{keyword:"partition by",value:gn}})(Rr)):(p=F,F=r),F===r&&(F=p,t.substr(p,7).toLowerCase()==="cluster"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(cf)),ar!==r&&A()!==r?(t.substr(p,2).toLowerCase()==="by"?(Nr=t.substr(p,2),p+=2):(Nr=r,Ft===0&&Zn(ri)),Nr!==r&&A()!==r&&(Rr=yn())!==r?(ns=F,F=ar=(function(gn){return{keyword:"cluster by",value:gn}})(Rr)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,t.substr(p,7).toLowerCase()==="options"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(t0)),ar!==r&&A()!==r&&(Nr=ir())!==r&&A()!==r&&(Rr=(function(){var gn,Vn,Jn,ms,Qs,$,J,br;if(gn=p,(Vn=ul())!==r){for(Jn=[],ms=p,(Qs=A())!==r&&($=mt())!==r&&(J=A())!==r&&(br=ul())!==r?ms=Qs=[Qs,$,J,br]:(p=ms,ms=r);ms!==r;)Jn.push(ms),ms=p,(Qs=A())!==r&&($=mt())!==r&&(J=A())!==r&&(br=ul())!==r?ms=Qs=[Qs,$,J,br]:(p=ms,ms=r);Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn=Dn(Vn,Jn))}else p=gn,gn=r;return gn})())!==r&&(ct=A())!==r&&(dt=Zr())!==r?(ns=F,F=ar=(function(gn){return{keyword:"options",parentheses:!0,value:gn}})(Rr)):(p=F,F=r))))))),F}function mf(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn;return F=p,(ar=Un())===r&&(ar=null),ar!==r&&A()!==r?((Nr=(function(){var gn=p,Vn,Jn;return t.substr(p,9).toLowerCase()==="character"?(Vn=t.substr(p,9),p+=9):(Vn=r,Ft===0&&Zn(mi)),Vn!==r&&A()!==r?(t.substr(p,3).toLowerCase()==="set"?(Jn=t.substr(p,3),p+=3):(Jn=r,Ft===0&&Zn(Fi)),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="CHARACTER SET")):(p=gn,gn=r),gn})())===r&&(t.substr(p,7).toLowerCase()==="charset"?(Nr=t.substr(p,7),p+=7):(Nr=r,Ft===0&&Zn(n0)),Nr===r&&(t.substr(p,7).toLowerCase()==="collate"?(Nr=t.substr(p,7),p+=7):(Nr=r,Ft===0&&Zn(Dc)))),Nr!==r&&A()!==r?((Rr=bi())===r&&(Rr=null),Rr!==r&&A()!==r&&(ct=ka())!==r?(ns=F,Yt=Nr,vn=Rr,fn=ct,F=ar={keyword:(dt=ar)&&`${dt[0].toLowerCase()} ${Yt.toLowerCase()}`||Yt.toLowerCase(),symbol:vn,value:fn}):(p=F,F=r)):(p=F,F=r)):(p=F,F=r),F}function z0(){var F;return(F=(function(){var ar=p,Nr,Rr,ct;(Nr=(function(){var vn=p,fn,gn,Vn;return t.substr(p,3).toLowerCase()==="add"?(fn=t.substr(p,3),p+=3):(fn=r,Ft===0&&Zn(is)),fn===r?(p=vn,vn=r):(gn=p,Ft++,Vn=Oe(),Ft--,Vn===r?gn=void 0:(p=gn,gn=r),gn===r?(p=vn,vn=r):(ns=vn,vn=fn="ADD")),vn})())!==r&&A()!==r?((Rr=ur())===r&&(Rr=null),Rr!==r&&A()!==r&&(ct=Ef())!==r?(ns=ar,dt=Rr,Yt=ct,Nr={action:"add",...Yt,keyword:dt,resource:"column",type:"alter"},ar=Nr):(p=ar,ar=r)):(p=ar,ar=r);var dt,Yt;return ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct;return(Nr=yt())!==r&&A()!==r?((Rr=ur())===r&&(Rr=null),Rr!==r&&A()!==r&&(ct=oi())!==r?(ns=ar,Nr=(function(dt,Yt){return{action:"drop",column:Yt,keyword:dt,resource:"column",type:"alter"}})(Rr,ct),ar=Nr):(p=ar,ar=r)):(p=ar,ar=r),ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct;(Nr=lc())!==r&&A()!==r?((Rr=u())===r&&(Rr=hr()),Rr===r&&(Rr=null),Rr!==r&&A()!==r&&(ct=Ua())!==r?(ns=ar,Yt=ct,Nr={action:"rename",type:"alter",resource:"table",keyword:(dt=Rr)&&dt[0].toLowerCase(),table:Yt},ar=Nr):(p=ar,ar=r)):(p=ar,ar=r);var dt,Yt;return ar})()),F}function ub(){var F,ar;return F=p,kt()!==r&&A()!==r?(t.substr(p,5).toLowerCase()==="btree"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(ev)),ar===r&&(t.substr(p,4).toLowerCase()==="hash"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(yc))),ar===r?(p=F,F=r):(ns=F,F={keyword:"using",type:ar.toLowerCase()})):(p=F,F=r),F}function Su(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,ir()!==r)if(A()!==r)if((ar=ha())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=ha())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=ha())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr!==r&&(Rr=A())!==r&&(ct=Zr())!==r?(ns=F,F=Ae(ar,Nr)):(p=F,F=r)}else p=F,F=r;else p=F,F=r;else p=F,F=r;return F}function Al(){var F,ar,Nr,Rr,ct,dt;if(F=p,(ar=D0())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=D0())!==r?Rr=ct=[ct,dt]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=D0())!==r?Rr=ct=[ct,dt]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=(function(Yt,vn){let fn=[Yt];for(let gn=0;gn<vn.length;gn++)fn.push(vn[gn][1]);return fn})(ar,Nr))}else p=F,F=r;return F}function D0(){var F,ar,Nr,Rr,ct,dt;return F=p,(ar=(function(){var Yt=p,vn,fn,gn;return t.substr(p,14).toLowerCase()==="key_block_size"?(vn=t.substr(p,14),p+=14):(vn=r,Ft===0&&Zn(Ue)),vn===r?(p=Yt,Yt=r):(fn=p,Ft++,gn=Oe(),Ft--,gn===r?fn=void 0:(p=fn,fn=r),fn===r?(p=Yt,Yt=r):Yt=vn=[vn,fn]),Yt})())!==r&&A()!==r?((Nr=bi())===r&&(Nr=null),Nr!==r&&A()!==r&&(Rr=k())!==r?(ns=F,ct=Nr,dt=Rr,F=ar={type:ar.toLowerCase(),symbol:ct,expr:dt}):(p=F,F=r)):(p=F,F=r),F===r&&(F=ub())===r&&(F=p,t.substr(p,4).toLowerCase()==="with"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn($c)),ar!==r&&A()!==r?(t.substr(p,6).toLowerCase()==="parser"?(Nr=t.substr(p,6),p+=6):(Nr=r,Ft===0&&Zn(Sf)),Nr!==r&&A()!==r&&(Rr=ln())!==r?(ns=F,F=ar={type:"with parser",expr:Rr}):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,t.substr(p,7).toLowerCase()==="visible"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(R0)),ar===r&&(t.substr(p,9).toLowerCase()==="invisible"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(Rl))),ar!==r&&(ns=F,ar=(function(Yt){return{type:Yt.toLowerCase(),expr:Yt.toLowerCase()}})(ar)),(F=ar)===r&&(F=Af()))),F}function Ac(){var F,ar,Nr,Rr;return F=p,Pr()!==r&&A()!==r?((ar=y0())===r&&(ar=mc()),ar!==r&&A()!==r&&(Nr=(function(){var ct=p,dt,Yt;return(dt=j())!==r&&A()!==r&&ir()!==r&&A()!==r?((Yt=Se())===r&&(Yt=null),Yt!==r&&A()!==r&&Zr()!==r?(ns=ct,ct=dt={type:"function",name:{name:[{type:"origin",value:dt}]},args:Yt}):(p=ct,ct=r)):(p=ct,ct=r),ct===r&&(ct=p,t.substr(p,8).toLowerCase()==="restrict"?(dt=t.substr(p,8),p+=8):(dt=r,Ft===0&&Zn(ff)),dt===r&&(t.substr(p,7).toLowerCase()==="cascade"?(dt=t.substr(p,7),p+=7):(dt=r,Ft===0&&Zn(Vf)),dt===r&&(t.substr(p,8).toLowerCase()==="set null"?(dt=t.substr(p,8),p+=8):(dt=r,Ft===0&&Zn(Vv)),dt===r&&(t.substr(p,9).toLowerCase()==="no action"?(dt=t.substr(p,9),p+=9):(dt=r,Ft===0&&Zn(db)),dt===r&&(t.substr(p,11).toLowerCase()==="set default"?(dt=t.substr(p,11),p+=11):(dt=r,Ft===0&&Zn(Of)),dt===r&&(dt=j()))))),dt!==r&&(ns=ct,dt={type:"origin",value:dt.toLowerCase()}),ct=dt),ct})())!==r?(ns=F,Rr=Nr,F={type:"on "+ar[0].toLowerCase(),value:Rr}):(p=F,F=r)):(p=F,F=r),F}function mc(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="update"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Pc)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Tc(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="create"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(H0)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function y0(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="delete"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(bf)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function bi(){var F;return t.charCodeAt(p)===61?(F="=",p++):(F=r,Ft===0&&Zn(ou)),F}function Yc(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="replace"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(Nv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Z0(){var F,ar,Nr,Rr;return F=p,t.substr(p,8).toLowerCase()==="database"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(Bl)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function lc(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="rename"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(sl)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Ic(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="show"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(sc)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function ab(){var F;return t.charCodeAt(p)===64?(F="@",p++):(F=r,Ft===0&&Zn(N0)),F}function J0(){var F,ar,Nr,Rr;return F=p,t.substr(p,9).toLowerCase()==="temporary"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(e0)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function ml(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="temp"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Cb)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Ul(){var F,ar,Nr,Rr;return F=p,(ar=(function(){var ct=p,dt,Yt,vn;return t.substr(p,5).toLowerCase()==="union"?(dt=t.substr(p,5),p+=5):(dt=r,Ft===0&&Zn(bv)),dt===r?(p=ct,ct=r):(Yt=p,Ft++,vn=Oe(),Ft--,vn===r?Yt=void 0:(p=Yt,Yt=r),Yt===r?(p=ct,ct=r):ct=dt=[dt,Yt]),ct})())!==r&&A()!==r?((Nr=Ke())===r&&(Nr=yo()),Nr===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=ar=(Rr=Nr)?"union "+Rr.toLowerCase():"union")):(p=F,F=r),F===r&&(F=p,t.substr(p,9).toLowerCase()==="intersect"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(xf)),ar===r&&(t.substr(p,6).toLowerCase()==="except"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Zf))),ar!==r&&A()!==r&&(Nr=yo())!==r?(ns=F,F=ar=(function(ct,dt){return`${ct.toLowerCase()} ${dt.toLowerCase()}`})(ar,Nr)):(p=F,F=r)),F}function aa(){var F,ar,Nr,Rr,ct,dt,Yt;return(F=Tf())===r&&(F=p,ar=p,t.charCodeAt(p)===40?(Nr="(",p++):(Nr=r,Ft===0&&Zn(o0)),Nr!==r&&(Rr=A())!==r&&(ct=Tf())!==r&&(dt=A())!==r?(t.charCodeAt(p)===41?(Yt=")",p++):(Yt=r,Ft===0&&Zn(xi)),Yt===r?(p=ar,ar=r):ar=Nr=[Nr,Rr,ct,dt,Yt]):(p=ar,ar=r),ar!==r&&(ns=F,ar={...ar[2],_parentheses:!0}),F=ar),F}function Tf(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=If())!==r){for(Nr=[],Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=Ul())===r&&(dt=null),dt!==r&&(Yt=A())!==r&&(vn=If())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=Ul())===r&&(dt=null),dt!==r&&(Yt=A())!==r&&(vn=If())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Nr!==r&&(Rr=A())!==r?((ct=qi())===r&&(ct=null),ct!==r&&(dt=A())!==r?((Yt=qu())===r&&(Yt=null),Yt===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn,Vn,Jn){let ms=fn;for(let Qs=0;Qs<gn.length;Qs++)ms._next=gn[Qs][3],ms.set_op=gn[Qs][1],ms=ms._next;return{tableList:Array.from(su),columnList:so(Po),ast:fn}})(ar,Nr))):(p=F,F=r)):(p=F,F=r)}else p=F,F=r;return F}function If(){var F,ar,Nr,Rr,ct,dt,Yt;return(F=(function(){var vn=p,fn,gn,Vn,Jn,ms,Qs,$,J,br,mr,et,pt,At,Bt;return(fn=A())===r?(p=vn,vn=r):((gn=(function(){var Ut,pn,Cn,Hn,qn,Cs,js,qe,bo;if(Ut=p,(pn=Js())!==r)if(A()!==r)if((Cn=Tl())!==r){for(Hn=[],qn=p,(Cs=A())!==r&&(js=mt())!==r&&(qe=A())!==r&&(bo=Tl())!==r?qn=Cs=[Cs,js,qe,bo]:(p=qn,qn=r);qn!==r;)Hn.push(qn),qn=p,(Cs=A())!==r&&(js=mt())!==r&&(qe=A())!==r&&(bo=Tl())!==r?qn=Cs=[Cs,js,qe,bo]:(p=qn,qn=r);Hn===r?(p=Ut,Ut=r):(ns=Ut,pn=Ae(Cn,Hn),Ut=pn)}else p=Ut,Ut=r;else p=Ut,Ut=r;else p=Ut,Ut=r;return Ut})())===r&&(gn=null),gn!==r&&A()!==r&&(function(){var Ut=p,pn,Cn,Hn;return t.substr(p,6).toLowerCase()==="select"?(pn=t.substr(p,6),p+=6):(pn=r,Ft===0&&Zn($v)),pn===r?(p=Ut,Ut=r):(Cn=p,Ft++,Hn=Oe(),Ft--,Hn===r?Cn=void 0:(p=Cn,Cn=r),Cn===r?(p=Ut,Ut=r):Ut=pn=[pn,Cn]),Ut})()!==r&&nr()!==r?((Vn=(function(){var Ut=p,pn,Cn;(pn=hr())!==r&&A()!==r?((Cn=tl())===r&&(Cn=(function(){var qn=p,Cs,js,qe;return t.substr(p,5).toLowerCase()==="value"?(Cs=t.substr(p,5),p+=5):(Cs=r,Ft===0&&Zn(ql)),Cs===r?(p=qn,qn=r):(js=p,Ft++,qe=Oe(),Ft--,qe===r?js=void 0:(p=js,js=r),js===r?(p=qn,qn=r):(ns=qn,qn=Cs="VALUE")),qn})()),Cn===r?(p=Ut,Ut=r):(ns=Ut,Hn=Cn,pn=`${pn[0].toLowerCase()} ${Hn.toLowerCase()}`,Ut=pn)):(p=Ut,Ut=r);var Hn;return Ut})())===r&&(Vn=null),Vn!==r&&A()!==r?((Jn=Ke())===r&&(Jn=yo()),Jn===r&&(Jn=null),Jn!==r&&A()!==r&&(ms=Q0())!==r&&A()!==r?((Qs=gf())===r&&(Qs=null),Qs!==r&&A()!==r?(($=(function(){var Ut=p,pn,Cn,Hn,qn,Cs;return t.substr(p,3).toLowerCase()==="for"?(pn=t.substr(p,3),p+=3):(pn=r,Ft===0&&Zn(Jc)),pn!==r&&A()!==r?(t.substr(p,11).toLowerCase()==="system_time"?(Cn=t.substr(p,11),p+=11):(Cn=r,Ft===0&&Zn(W0)),Cn!==r&&A()!==r?(t.substr(p,2).toLowerCase()==="as"?(Hn=t.substr(p,2),p+=2):(Hn=r,Ft===0&&Zn(jb)),Hn!==r&&A()!==r?(t.substr(p,2).toLowerCase()==="of"?(qn=t.substr(p,2),p+=2):(qn=r,Ft===0&&Zn(Uf)),qn!==r&&A()!==r&&(Cs=Qu())!==r?(ns=Ut,Ut=pn={keyword:"for system_time as of",expr:Cs}):(p=Ut,Ut=r)):(p=Ut,Ut=r)):(p=Ut,Ut=r)):(p=Ut,Ut=r),Ut})())===r&&($=null),$!==r&&A()!==r?((J=or())===r&&(J=null),J!==r&&A()!==r?((br=(function(){var Ut=p,pn,Cn;return(pn=(function(){var Hn=p,qn,Cs,js;return t.substr(p,5).toLowerCase()==="group"?(qn=t.substr(p,5),p+=5):(qn=r,Ft===0&&Zn(sp)),qn===r?(p=Hn,Hn=r):(Cs=p,Ft++,js=Oe(),Ft--,js===r?Cs=void 0:(p=Cs,Cs=r),Cs===r?(p=Hn,Hn=r):Hn=qn=[qn,Cs]),Hn})())!==r&&A()!==r&&Ve()!==r&&A()!==r&&(Cn=Se())!==r?(ns=Ut,pn={columns:Cn.value},Ut=pn):(p=Ut,Ut=r),Ut})())===r&&(br=null),br!==r&&A()!==r?((mr=(function(){var Ut=p,pn;return co()!==r&&A()!==r&&(pn=Ba())!==r?(ns=Ut,Ut=pn):(p=Ut,Ut=r),Ut})())===r&&(mr=null),mr!==r&&A()!==r?((et=(function(){var Ut=p,pn;return(function(){var Cn=p,Hn,qn,Cs;return t.substr(p,7).toLowerCase()==="qualify"?(Hn=t.substr(p,7),p+=7):(Hn=r,Ft===0&&Zn(rd)),Hn===r?(p=Cn,Cn=r):(qn=p,Ft++,Cs=Oe(),Ft--,Cs===r?qn=void 0:(p=qn,qn=r),qn===r?(p=Cn,Cn=r):Cn=Hn=[Hn,qn]),Cn})()!==r&&A()!==r&&(pn=Qu())!==r?(ns=Ut,Ut=pn):(p=Ut,Ut=r),Ut})())===r&&(et=null),et!==r&&A()!==r?((pt=qi())===r&&(pt=null),pt!==r&&A()!==r?((At=qu())===r&&(At=null),At!==r&&A()!==r?((Bt=(function(){var Ut=p,pn;return(function(){var Cn=p,Hn,qn,Cs;return t.substr(p,6).toLowerCase()==="window"?(Hn=t.substr(p,6),p+=6):(Hn=r,Ft===0&&Zn(jp)),Hn===r?(p=Cn,Cn=r):(qn=p,Ft++,Cs=Oe(),Ft--,Cs===r?qn=void 0:(p=qn,qn=r),qn===r?(p=Cn,Cn=r):Cn=Hn=[Hn,qn]),Cn})()!==r&&A()!==r&&(pn=(function(){var Cn,Hn,qn,Cs,js,qe,bo,tu;if(Cn=p,(Hn=Nt())!==r){for(qn=[],Cs=p,(js=A())!==r&&(qe=mt())!==r&&(bo=A())!==r&&(tu=Nt())!==r?Cs=js=[js,qe,bo,tu]:(p=Cs,Cs=r);Cs!==r;)qn.push(Cs),Cs=p,(js=A())!==r&&(qe=mt())!==r&&(bo=A())!==r&&(tu=Nt())!==r?Cs=js=[js,qe,bo,tu]:(p=Cs,Cs=r);qn===r?(p=Cn,Cn=r):(ns=Cn,Hn=Ae(Hn,qn),Cn=Hn)}else p=Cn,Cn=r;return Cn})())!==r?(ns=Ut,Ut={keyword:"window",type:"window",expr:pn}):(p=Ut,Ut=r),Ut})())===r&&(Bt=null),Bt===r?(p=vn,vn=r):(ns=vn,fn=(function(Ut,pn,Cn,Hn,qn,Cs,js,qe,bo,tu,Ru,Je,hu){return Array.isArray(qn)&&qn.forEach(Go=>Go.table&&su.add(`select::${[Go.db,Go.schema].filter(Boolean).join(".")||null}::${Go.table}`)),{type:"select",as_struct_val:pn,distinct:Cn,columns:Hn,from:qn,for_sys_time_as_of:Cs,where:js,with:Ut,groupby:qe,having:bo,qualify:tu,orderby:Ru,limit:Je,window:hu,...Ws()}})(gn,Vn,Jn,ms,Qs,$,J,br,mr,et,pt,At,Bt),vn=fn)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)):(p=vn,vn=r)),vn})())===r&&(F=p,ar=p,t.charCodeAt(p)===40?(Nr="(",p++):(Nr=r,Ft===0&&Zn(o0)),Nr!==r&&(Rr=A())!==r&&(ct=If())!==r&&(dt=A())!==r?(t.charCodeAt(p)===41?(Yt=")",p++):(Yt=r,Ft===0&&Zn(xi)),Yt===r?(p=ar,ar=r):ar=Nr=[Nr,Rr,ct,dt,Yt]):(p=ar,ar=r),ar!==r&&(ns=F,ar={...ar[2],parentheses_symbol:!0}),F=ar),F}function Tl(){var F,ar,Nr;return F=p,(ar=ba())===r&&(ar=ln()),ar!==r&&A()!==r&&hr()!==r&&A()!==r&&ir()!==r&&A()!==r&&(Nr=aa())!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar=(function(Rr,ct){return typeof Rr=="string"&&(Rr={type:"default",value:Rr}),{name:Rr,stmt:ct}})(ar,Nr)):(p=F,F=r),F}function Ci(){var F,ar,Nr;return F=p,(ar=(function(){var Rr,ct,dt,Yt,vn,fn,gn,Vn;if(Rr=p,(ct=Qu())!==r){for(dt=[],Yt=p,(vn=A())===r?(p=Yt,Yt=r):((fn=Wt())===r&&(fn=ta())===r&&(fn=Qo()),fn!==r&&(gn=A())!==r&&(Vn=Qu())!==r?Yt=vn=[vn,fn,gn,Vn]:(p=Yt,Yt=r));Yt!==r;)dt.push(Yt),Yt=p,(vn=A())===r?(p=Yt,Yt=r):((fn=Wt())===r&&(fn=ta())===r&&(fn=Qo()),fn!==r&&(gn=A())!==r&&(Vn=Qu())!==r?Yt=vn=[vn,fn,gn,Vn]:(p=Yt,Yt=r));dt===r?(p=Rr,Rr=r):(ns=Rr,ct=(function(Jn,ms){let Qs=Jn.ast;if(Qs&&Qs.type==="select"&&(!(Jn.parentheses_symbol||Jn.parentheses||Jn.ast.parentheses||Jn.ast.parentheses_symbol)||Qs.columns.length!==1||Qs.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!ms||ms.length===0)return Jn;let $=ms.length,J=ms[$-1][3];for(let br=$-1;br>=0;br--){let mr=br===0?Jn:ms[br-1][3];J=ne(ms[br][1],mr,J)}return J})(ct,dt),Rr=ct)}else p=Rr,Rr=r;return Rr})())!==r&&A()!==r?((Nr=Ge())===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=ar={expr:ar,as:Nr,...Ws()})):(p=F,F=r),F}function Q0(){var F,ar,Nr;return F=p,(ar=ib())!==r&&A()!==r?((Nr=mt())===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=ar=ar)):(p=F,F=r),F}function ib(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Ii())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=Ii())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=Ii())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Ae(ar,Nr))}else p=F,F=r;return F}function fa(){var F,ar;return F=p,Ds()!==r&&A()!==r?((ar=k())===r&&(ar=ba()),ar!==r&&A()!==r&&ut()!==r?(ns=F,F={value:ar}):(p=F,F=r)):(p=F,F=r),F}function Zi(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn,gn,Vn,Jn,ms,Qs;if(F=p,ar=[],(Nr=fa())!==r)for(;Nr!==r;)ar.push(Nr),Nr=fa();else ar=r;if(ar!==r&&(ns=F,ar=ar),(F=ar)===r){if(F=p,ar=[],Nr=p,(Rr=Ds())!==r&&(ct=A())!==r?((dt=ao())===r&&(dt=_t())===r&&(dt=zo())===r&&(dt=Eo()),dt!==r&&(Yt=A())!==r&&(vn=ir())!==r&&(fn=A())!==r?((gn=k())===r&&(gn=ba()),gn!==r&&(Vn=A())!==r&&(Jn=Zr())!==r&&(ms=A())!==r&&(Qs=ut())!==r?Nr=Rr=[Rr,ct,dt,Yt,vn,fn,gn,Vn,Jn,ms,Qs]:(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r),Nr!==r)for(;Nr!==r;)ar.push(Nr),Nr=p,(Rr=Ds())!==r&&(ct=A())!==r?((dt=ao())===r&&(dt=_t())===r&&(dt=zo())===r&&(dt=Eo()),dt!==r&&(Yt=A())!==r&&(vn=ir())!==r&&(fn=A())!==r?((gn=k())===r&&(gn=ba()),gn!==r&&(Vn=A())!==r&&(Jn=Zr())!==r&&(ms=A())!==r&&(Qs=ut())!==r?Nr=Rr=[Rr,ct,dt,Yt,vn,fn,gn,Vn,Jn,ms,Qs]:(p=Nr,Nr=r)):(p=Nr,Nr=r)):(p=Nr,Nr=r);else ar=r;ar!==r&&(ns=F,ar=ar.map($=>({name:$[2],value:$[6]}))),F=ar}return F}function rf(){var F,ar,Nr;return F=p,(ar=Qu())!==r&&A()!==r&&(Nr=Zi())!==r?(ns=F,F=ar={expr:ar,offset:Nr}):(p=F,F=r),F}function Ii(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn,gn;return F=p,ar=p,(Nr=Mi())!==r&&(Rr=A())!==r&&(ct=Lt())!==r?ar=Nr=[Nr,Rr,ct]:(p=ar,ar=r),ar===r&&(ar=null),ar!==r&&(Nr=bn())!==r&&(Rr=A())!==r?(t.substr(p,6).toLowerCase()==="except"?(ct=t.substr(p,6),p+=6):(ct=r,Ft===0&&Zn(Zf)),ct===r&&(t.substr(p,7).toLowerCase()==="replace"?(ct=t.substr(p,7),p+=7):(ct=r,Ft===0&&Zn(Nv))),ct!==r&&(dt=A())!==r&&(Yt=ir())!==r&&(vn=A())!==r&&(fn=ib())!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar=(function(Vn,Jn,ms){let Qs=Vn&&Vn[0];return Po.add(`select::${Qs}::(.*)`),{expr_list:ms,parentheses:!0,expr:{type:"column_ref",table:Qs,column:"*"},type:Jn.toLowerCase(),...Ws()}})(ar,ct,fn)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=Ke())===r&&(ar=p,(Nr=bn())===r?(p=ar,ar=r):(Rr=p,Ft++,ct=Oe(),Ft--,ct===r?Rr=void 0:(p=Rr,Rr=r),Rr===r?(p=ar,ar=r):ar=Nr=[Nr,Rr]),ar===r&&(ar=bn())),ar!==r&&(ns=F,ar=(function(Vn){return Po.add("select::null::(.*)"),{expr:{type:"column_ref",table:null,column:"*"},as:null,...Ws()}})()),(F=ar)===r&&(F=p,(ar=Mi())!==r&&(Nr=A())!==r&&(Rr=Lt())!==r?(ct=p,(dt=rf())===r&&(dt=Mi()),dt!==r&&(Yt=A())!==r&&(vn=Lt())!==r?ct=dt=[dt,Yt,vn]:(p=ct,ct=r),ct===r&&(ct=null),ct!==r&&(dt=A())!==r&&(Yt=bn())!==r?(ns=F,F=ar=(function(Vn,Jn){Po.add(`select::${Vn}::(.*)`);let ms="*",Qs=Jn&&Jn[0];return typeof Qs=="string"&&(ms=Qs+".*"),Qs&&Qs.expr&&Qs.offset&&(ms={...Qs,suffix:".*"}),{expr:{type:"column_ref",table:Vn,column:ms},as:null,...Ws()}})(ar,ct)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=rf())!==r&&(Nr=A())!==r?(Rr=p,(ct=Lt())!==r&&(dt=A())!==r&&(Yt=Mi())!==r?Rr=ct=[ct,dt,Yt]:(p=Rr,Rr=r),Rr===r&&(Rr=null),Rr!==r&&(ct=A())!==r?((dt=Ge())===r&&(dt=null),dt===r?(p=F,F=r):(ns=F,F=ar=(function(Vn,Jn,ms){return Jn&&(Vn.suffix="."+Jn[2]),{expr:{type:"column_ref",table:null,column:Vn},as:ms,...Ws()}})(ar,Rr,dt))):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=Ci())!==r&&(ns=F,(gn=ar).expr.type!=="double_quote_string"&&gn.expr.type!=="single_quote_string"||Po.add("select::null::"+gn.expr.value),ar=gn),F=ar)))),F}function Ge(){var F,ar,Nr;return F=p,(ar=hr())!==r&&A()!==r&&(Nr=(function(){var Rr=p,ct;return(ct=Ha())===r?(p=Rr,Rr=r):(ns=p,((function(dt){if(bs[dt.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(dt)+" is a reserved word, can not as alias clause");return!1})(ct)?r:void 0)===r?(p=Rr,Rr=r):(ns=Rr,Rr=ct=ct)),Rr===r&&(Rr=p,(ct=Ou())!==r&&(ns=Rr,ct=ct),Rr=ct),Rr})())!==r?(ns=F,F=ar=Nr):(p=F,F=r),F===r&&(F=p,(ar=hr())===r&&(ar=null),ar!==r&&A()!==r&&(Nr=ha())!==r?(ns=F,F=ar=Nr):(p=F,F=r)),F}function $0(){var F,ar,Nr,Rr,ct;return F=p,t.substr(p,6).toLowerCase()==="unnest"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(u0)),ar!==r&&A()!==r&&ir()!==r&&A()!==r?((Nr=Qu())===r&&(Nr=null),Nr!==r&&A()!==r&&Zr()!==r&&A()!==r?((Rr=Ge())===r&&(Rr=null),Rr!==r&&A()!==r?((ct=(function(){var dt=p,Yt;return Js()!==r&&A()!==r&&ao()!==r&&A()!==r?((Yt=Ge())===r&&(Yt=null),Yt===r?(p=dt,dt=r):(ns=dt,dt={keyword:"with offset as",as:Yt})):(p=dt,dt=r),dt})())===r&&(ct=null),ct===r?(p=F,F=r):(ns=F,F=ar={type:"unnest",expr:Nr,parentheses:!0,as:Rr,with_offset:ct})):(p=F,F=r)):(p=F,F=r)):(p=F,F=r),F}function gf(){var F,ar,Nr,Rr,ct;return F=p,Tr()!==r&&A()!==r&&(ar=Xa())!==r&&A()!==r?((Nr=(function(){var dt=p,Yt,vn,fn,gn,Vn,Jn;return(Yt=(function(){var ms=p,Qs,$,J;return t.substr(p,5).toLowerCase()==="pivot"?(Qs=t.substr(p,5),p+=5):(Qs=r,Ft===0&&Zn($s)),Qs===r?(p=ms,ms=r):($=p,Ft++,J=Oe(),Ft--,J===r?$=void 0:(p=$,$=r),$===r?(p=ms,ms=r):(ns=ms,ms=Qs="PIVOT")),ms})())!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=(function(){var ms,Qs,$,J,br,mr,et,pt,At,Bt,Ut;if(ms=p,(Qs=ui())!==r)if(A()!==r)if(($=Ge())===r&&($=null),$!==r){for(J=[],br=p,(mr=A())!==r&&(et=mt())!==r&&(pt=A())!==r&&(At=ui())!==r&&(Bt=A())!==r?((Ut=Ge())===r&&(Ut=null),Ut===r?(p=br,br=r):br=mr=[mr,et,pt,At,Bt,Ut]):(p=br,br=r);br!==r;)J.push(br),br=p,(mr=A())!==r&&(et=mt())!==r&&(pt=A())!==r&&(At=ui())!==r&&(Bt=A())!==r?((Ut=Ge())===r&&(Ut=null),Ut===r?(p=br,br=r):br=mr=[mr,et,pt,At,Bt,Ut]):(p=br,br=r);J===r?(p=ms,ms=r):(ns=ms,Qs=(function(pn,Cn,Hn){let qn={type:"expr_list"};return qn.value=me(pn,Hn),qn})(Qs,0,J),ms=Qs)}else p=ms,ms=r;else p=ms,ms=r;else p=ms,ms=r;return ms})())!==r&&A()!==r?(t.substr(p,3).toLowerCase()==="for"?(fn=t.substr(p,3),p+=3):(fn=r,Ft===0&&Zn(Jc)),fn!==r&&A()!==r&&(gn=oi())!==r&&A()!==r&&(Vn=Va())!==r&&A()!==r&&Zr()!==r&&A()!==r?((Jn=Ge())===r&&(Jn=null),Jn===r?(p=dt,dt=r):(ns=dt,Yt=(function(ms,Qs,$,J){return $.operator="=",{type:"pivot",expr:ms,column:Qs,in_expr:$,as:J}})(vn,gn,Vn,Jn),dt=Yt)):(p=dt,dt=r)):(p=dt,dt=r),dt})())===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,ct=Nr,(Rr=ar)[0]&&(Rr[0].operator=ct),F=Rr)):(p=F,F=r),F}function Zl(){var F,ar,Nr;return F=p,(ar=gi())!==r&&A()!==r&&u()!==r&&A()!==r&&(Nr=gi())!==r?(ns=F,F=ar=[ar,Nr]):(p=F,F=r),F}function Xa(){var F,ar,Nr,Rr;if(F=p,(ar=n())!==r){for(Nr=[],Rr=cc();Rr!==r;)Nr.push(Rr),Rr=cc();Nr===r?(p=F,F=r):(ns=F,F=ar=wb(ar,Nr))}else p=F,F=r;return F}function cc(){var F,ar,Nr;return F=p,A()!==r&&(ar=mt())!==r&&A()!==r&&(Nr=n())!==r?(ns=F,F=Nr):(p=F,F=r),F===r&&(F=p,A()!==r&&(ar=(function(){var Rr,ct,dt,Yt,vn,fn,gn,Vn,Jn,ms,Qs;if(Rr=p,(ct=st())!==r)if(A()!==r)if((dt=n())!==r)if(A()!==r)if((Yt=kt())!==r)if(A()!==r)if(ir()!==r)if(A()!==r)if((vn=ka())!==r){for(fn=[],gn=p,(Vn=A())!==r&&(Jn=mt())!==r&&(ms=A())!==r&&(Qs=ka())!==r?gn=Vn=[Vn,Jn,ms,Qs]:(p=gn,gn=r);gn!==r;)fn.push(gn),gn=p,(Vn=A())!==r&&(Jn=mt())!==r&&(ms=A())!==r&&(Qs=ka())!==r?gn=Vn=[Vn,Jn,ms,Qs]:(p=gn,gn=r);fn!==r&&(gn=A())!==r&&(Vn=Zr())!==r?(ns=Rr,$=ct,br=vn,mr=fn,(J=dt).join=$,J.using=me(br,mr),Rr=ct=J):(p=Rr,Rr=r)}else p=Rr,Rr=r;else p=Rr,Rr=r;else p=Rr,Rr=r;else p=Rr,Rr=r;else p=Rr,Rr=r;else p=Rr,Rr=r;else p=Rr,Rr=r;else p=Rr,Rr=r;else p=Rr,Rr=r;var $,J,br,mr;return Rr===r&&(Rr=p,(ct=st())!==r&&A()!==r&&(dt=n())!==r&&A()!==r?((Yt=Ra())===r&&(Yt=null),Yt===r?(p=Rr,Rr=r):(ns=Rr,ct=(function(et,pt,At){return pt.join=et,pt.on=At,pt})(ct,dt,Yt),Rr=ct)):(p=Rr,Rr=r),Rr===r&&(Rr=p,(ct=st())===r&&(ct=Ul()),ct!==r&&A()!==r&&(dt=ir())!==r&&A()!==r&&(Yt=aa())!==r&&A()!==r&&Zr()!==r&&A()!==r?((vn=Ge())===r&&(vn=null),vn!==r&&(fn=A())!==r?((gn=Ra())===r&&(gn=null),gn===r?(p=Rr,Rr=r):(ns=Rr,ct=(function(et,pt,At,Bt){return pt.parentheses=!0,{expr:pt,as:At,join:et,on:Bt}})(ct,Yt,vn,gn),Rr=ct)):(p=Rr,Rr=r)):(p=Rr,Rr=r))),Rr})())!==r?(ns=F,F=ar):(p=F,F=r)),F}function h0(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn,gn,Vn,Jn;return F=p,t.substr(p,11).toLowerCase()==="tablesample"?(ar=t.substr(p,11),p+=11):(ar=r,Ft===0&&Zn(vf)),ar!==r&&(Nr=A())!==r?(t.substr(p,9).toLowerCase()==="bernoulli"?(Rr=t.substr(p,9),p+=9):(Rr=r,Ft===0&&Zn(ki)),Rr===r&&(t.substr(p,9).toLowerCase()==="reservoir"?(Rr=t.substr(p,9),p+=9):(Rr=r,Ft===0&&Zn(Hl))),Rr!==r&&(ct=A())!==r?(t.charCodeAt(p)===40?(dt="(",p++):(dt=r,Ft===0&&Zn(o0)),dt!==r&&(Yt=A())!==r&&(vn=Lr())!==r&&(fn=A())!==r?(t.substr(p,7).toLowerCase()==="percent"?(gn=t.substr(p,7),p+=7):(gn=r,Ft===0&&Zn(Eb)),gn===r&&(t.substr(p,4).toLowerCase()==="rows"?(gn=t.substr(p,4),p+=4):(gn=r,Ft===0&&Zn(Bb))),gn!==r&&(Vn=A())!==r?(t.charCodeAt(p)===41?(Jn=")",p++):(Jn=r,Ft===0&&Zn(xi)),Jn===r?(p=F,F=r):F=ar=[ar,Nr,Rr,ct,dt,Yt,vn,fn,gn,Vn,Jn]):(p=F,F=r)):(p=F,F=r)):(p=F,F=r)):(p=F,F=r),F}function n(){var F,ar,Nr,Rr,ct,dt,Yt,vn;return(F=$0())===r&&(F=p,(ar=ll())!==r&&(Nr=A())!==r?((Rr=Ge())===r&&(Rr=null),Rr===r?(p=F,F=r):(ns=F,F=ar={type:"expr",expr:ar,as:Rr})):(p=F,F=r),F===r&&(F=p,(ar=gi())===r?(p=F,F=r):((Nr=(function(){var fn,gn,Vn,Jn,ms,Qs,$,J,br,mr,et;return fn=p,Ui.test(t.charAt(p))?(gn=t.charAt(p),p++):(gn=r,Ft===0&&Zn(uv)),gn===r?(p=fn,fn=r):(yb.test(t.charAt(p))?(Vn=t.charAt(p),p++):(Vn=r,Ft===0&&Zn(hb)),Vn!==r&&(Jn=A())!==r&&(ms=ln())!==r&&(Qs=A())!==r?(Kv.test(t.charAt(p))?($=t.charAt(p),p++):($=r,Ft===0&&Zn(Gc)),$!==r&&(J=A())!==r&&(br=ln())!==r&&(mr=A())!==r?(_v.test(t.charAt(p))?(et=t.charAt(p),p++):(et=r,Ft===0&&Zn(kf)),et===r?(p=fn,fn=r):fn=gn=[gn,Vn,Jn,ms,Qs,$,J,br,mr,et]):(p=fn,fn=r)):(p=fn,fn=r)),fn})())===r&&(Nr=null),Nr!==r&&(Rr=A())!==r?((ct=h0())===r&&(ct=null),ct!==r&&A()!==r?((dt=Ge())===r&&(dt=null),dt===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn,Vn,Jn){return fn.type==="var"?(fn.as=Jn,fn):{...fn,as:Jn,...Ws()}})(ar,0,0,dt))):(p=F,F=r)):(p=F,F=r)),F===r&&(F=p,(ar=ir())!==r&&(Nr=A())!==r&&(Rr=aa())!==r&&(ct=A())!==r&&Zr()!==r&&(dt=A())!==r?((Yt=h0())===r&&(Yt=null),Yt!==r&&A()!==r?((vn=Ge())===r&&(vn=null),vn===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn,Vn){return fn.parentheses=!0,{expr:fn,as:Vn,...Ws()}})(Rr,0,vn))):(p=F,F=r)):(p=F,F=r)))),F}function st(){var F,ar,Nr;return F=p,(ar=(function(){var Rr=p,ct,dt,Yt;return t.substr(p,4).toLowerCase()==="left"?(ct=t.substr(p,4),p+=4):(ct=r,Ft===0&&Zn(tp)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt]),Rr})())!==r&&A()!==r?((Nr=kn())===r&&(Nr=null),Nr!==r&&A()!==r&&Mr()!==r?(ns=F,F=ar="LEFT JOIN"):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=(function(){var Rr=p,ct,dt,Yt;return t.substr(p,5).toLowerCase()==="right"?(ct=t.substr(p,5),p+=5):(ct=r,Ft===0&&Zn(Fv)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt]),Rr})())!==r&&A()!==r?((Nr=kn())===r&&(Nr=null),Nr!==r&&A()!==r&&Mr()!==r?(ns=F,F=ar="RIGHT JOIN"):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=(function(){var Rr=p,ct,dt,Yt;return t.substr(p,4).toLowerCase()==="full"?(ct=t.substr(p,4),p+=4):(ct=r,Ft===0&&Zn(yl)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt]),Rr})())!==r&&A()!==r?((Nr=kn())===r&&(Nr=null),Nr!==r&&A()!==r&&Mr()!==r?(ns=F,F=ar="FULL JOIN"):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=(function(){var Rr=p,ct,dt,Yt;return t.substr(p,5).toLowerCase()==="cross"?(ct=t.substr(p,5),p+=5):(ct=r,Ft===0&&Zn(fv)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt]),Rr})())!==r&&A()!==r&&(Nr=Mr())!==r?(ns=F,F=ar=ar[0].toUpperCase()+" JOIN"):(p=F,F=r),F===r&&(F=p,(ar=(function(){var Rr=p,ct,dt,Yt;return t.substr(p,5).toLowerCase()==="inner"?(ct=t.substr(p,5),p+=5):(ct=r,Ft===0&&Zn(jc)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt]),Rr})())===r&&(ar=null),ar!==r&&A()!==r&&(Nr=Mr())!==r?(ns=F,F=ar=(function(Rr){return Rr?Rr[0].toUpperCase()+" JOIN":"JOIN"})(ar)):(p=F,F=r))))),F}function gi(){var F,ar,Nr,Rr,ct,dt,Yt,vn;return F=p,(ar=ka())===r?(p=F,F=r):(Nr=p,(Rr=A())!==r&&(ct=Lt())!==r&&(dt=A())!==r&&(Yt=ka())!==r?Nr=Rr=[Rr,ct,dt,Yt]:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(Rr=p,(ct=A())!==r&&(dt=Lt())!==r&&(Yt=A())!==r&&(vn=ka())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r),Rr===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn,Vn){let Jn={db:null,table:fn.value};return Vn!==null&&(Jn.db=fn.value,Jn.catalog=fn.value,Jn.schema=gn[3].value,Jn.table=Vn[3].value,Jn.surround={table:$o(Vn[3]),db:$o(fn),schema:$o(gn[3])}),Jn})(ar,Nr,Rr)))),F===r&&(F=p,(ar=ka())===r?(p=F,F=r):(Nr=p,(Rr=A())!==r&&(ct=Lt())!==r&&(dt=A())!==r&&(Yt=ka())!==r?Nr=Rr=[Rr,ct,dt,Yt]:(p=Nr,Nr=r),Nr===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn){let Vn={db:null,table:fn.value,surround:{table:$o(fn)}};return gn!==null&&(Vn.db=fn.value,Vn.table=gn[3].value,Vn.surround={table:$o(gn[3]),db:$o(fn)}),Vn})(ar,Nr)))),F}function xa(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Qu())!==r){for(Nr=[],Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=Wt())===r&&(dt=ta()),dt!==r&&(Yt=A())!==r&&(vn=Qu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=Wt())===r&&(dt=ta()),dt!==r&&(Yt=A())!==r&&(vn=Qu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Nr===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn){let Vn=gn.length,Jn=fn;for(let ms=0;ms<Vn;++ms)Jn=ne(gn[ms][1],Jn,gn[ms][3]);return Jn})(ar,Nr))}else p=F,F=r;return F}function Ra(){var F,ar;return F=p,Pr()!==r&&A()!==r&&(ar=Ba())!==r?(ns=F,F=ar):(p=F,F=r),F}function or(){var F,ar;return F=p,(function(){var Nr=p,Rr,ct,dt;return t.substr(p,5).toLowerCase()==="where"?(Rr=t.substr(p,5),p+=5):(Rr=r,Ft===0&&Zn(Qp)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct]),Nr})()!==r&&A()!==r&&(ar=Ba())!==r?(ns=F,F=ar):(p=F,F=r),F}function Nt(){var F,ar,Nr;return F=p,(ar=ln())!==r&&A()!==r&&hr()!==r&&A()!==r&&(Nr=ju())!==r?(ns=F,F=ar={name:ar,as_window_specification:Nr}):(p=F,F=r),F}function ju(){var F,ar,Nr;return F=p,(ar=ln())!==r&&(ns=F,ar=ar),(F=ar)===r&&(F=p,(ar=ir())!==r&&A()!==r?((Nr=(function(){var Rr=p,ct,dt,Yt,vn;return(ct=Ua())===r&&(ct=null),ct!==r&&A()!==r?((dt=fc())===r&&(dt=null),dt!==r&&A()!==r?((Yt=qi())===r&&(Yt=null),Yt!==r&&A()!==r?((vn=(function(){var fn=p,gn,Vn,Jn,ms;(gn=bc())!==r&&A()!==r?((Vn=Il())===r&&(Vn=Wc()),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn={type:"rows",expr:Vn})):(p=fn,fn=r),fn===r&&(fn=p,(gn=bc())===r&&(t.substr(p,5).toLowerCase()==="range"?(gn=t.substr(p,5),p+=5):(gn=r,Ft===0&&Zn(pa))),gn!==r&&A()!==r&&(Vn=lo())!==r&&A()!==r&&(Jn=Wc())!==r&&A()!==r&&Wt()!==r&&A()!==r&&(ms=Il())!==r?(ns=fn,Qs=Jn,$=ms,gn=ne(Vn,{type:"origin",value:gn.toLowerCase()},{type:"expr_list",value:[Qs,$]}),fn=gn):(p=fn,fn=r));var Qs,$;return fn})())===r&&(vn=null),vn===r?(p=Rr,Rr=r):(ns=Rr,Rr=ct={name:ct,partitionby:dt,orderby:Yt,window_frame_clause:vn})):(p=Rr,Rr=r)):(p=Rr,Rr=r)):(p=Rr,Rr=r),Rr})())===r&&(Nr=null),Nr!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar={window_specification:Nr,parentheses:!0}):(p=F,F=r)):(p=F,F=r)),F}function Il(){var F,ar,Nr;return F=p,(ar=Mb())!==r&&A()!==r?(t.substr(p,9).toLowerCase()==="following"?(Nr=t.substr(p,9),p+=9):(Nr=r,Ft===0&&Zn(wl)),Nr===r&&(t.substr(p,9).toLowerCase()==="preceding"?(Nr=t.substr(p,9),p+=9):(Nr=r,Ft===0&&Zn(Nl))),Nr===r?(p=F,F=r):(ns=F,F=ar=(function(Rr,ct){return Rr.value+=" "+ct.toUpperCase(),Rr})(ar,Nr))):(p=F,F=r),F===r&&(F=Kr()),F}function Wc(){var F,ar,Nr,Rr,ct;return F=p,(ar=Mb())!==r&&A()!==r?(t.substr(p,9).toLowerCase()==="preceding"?(Nr=t.substr(p,9),p+=9):(Nr=r,Ft===0&&Zn(Nl)),Nr===r&&(t.substr(p,9).toLowerCase()==="following"?(Nr=t.substr(p,9),p+=9):(Nr=r,Ft===0&&Zn(wl))),Nr===r?(p=F,F=r):(ns=F,ct=Nr,(Rr=ar).value+=" "+ct.toUpperCase(),F=ar=Rr)):(p=F,F=r),F===r&&(F=Kr()),F}function Kr(){var F,ar,Nr;return F=p,t.substr(p,7).toLowerCase()==="current"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(Sv)),ar!==r&&A()!==r?(t.substr(p,3).toLowerCase()==="row"?(Nr=t.substr(p,3),p+=3):(Nr=r,Ft===0&&Zn(Hb)),Nr===r?(p=F,F=r):(ns=F,F=ar={type:"origin",value:"current row",...Ws()})):(p=F,F=r),F}function Mb(){var F,ar;return F=p,t.substr(p,9).toLowerCase()==="unbounded"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(Jf)),ar!==r&&(ns=F,ar={type:"origin",value:ar.toUpperCase(),...Ws()}),(F=ar)===r&&(F=k()),F}function fc(){var F,ar;return F=p,Y()!==r&&A()!==r&&Ve()!==r&&A()!==r&&(ar=Q0())!==r?(ns=F,F=ar):(p=F,F=r),F}function qi(){var F,ar;return F=p,(function(){var Nr=p,Rr,ct,dt;return t.substr(p,5).toLowerCase()==="order"?(Rr=t.substr(p,5),p+=5):(Rr=r,Ft===0&&Zn(jv)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct]),Nr})()!==r&&A()!==r&&Ve()!==r&&A()!==r&&(ar=(function(){var Nr,Rr,ct,dt,Yt,vn,fn,gn;if(Nr=p,(Rr=Ji())!==r){for(ct=[],dt=p,(Yt=A())!==r&&(vn=mt())!==r&&(fn=A())!==r&&(gn=Ji())!==r?dt=Yt=[Yt,vn,fn,gn]:(p=dt,dt=r);dt!==r;)ct.push(dt),dt=p,(Yt=A())!==r&&(vn=mt())!==r&&(fn=A())!==r&&(gn=Ji())!==r?dt=Yt=[Yt,vn,fn,gn]:(p=dt,dt=r);ct===r?(p=Nr,Nr=r):(ns=Nr,Rr=Ae(Rr,ct),Nr=Rr)}else p=Nr,Nr=r;return Nr})())!==r?(ns=F,F=ar):(p=F,F=r),F}function Ji(){var F,ar,Nr,Rr,ct,dt;return F=p,(ar=Qu())!==r&&A()!==r?(Nr=p,t.substr(p,7).toLowerCase()==="collate"?(Rr=t.substr(p,7),p+=7):(Rr=r,Ft===0&&Zn(Dc)),Rr!==r&&(ct=A())!==r&&(dt=ba())!==r?Nr=Rr=[Rr,ct,dt]:(p=Nr,Nr=r),Nr===r&&(Nr=null),Nr!==r&&(Rr=A())!==r?((ct=no())===r&&(ct=(function(){var Yt=p,vn,fn,gn;return t.substr(p,3).toLowerCase()==="asc"?(vn=t.substr(p,3),p+=3):(vn=r,Ft===0&&Zn(gp)),vn===r?(p=Yt,Yt=r):(fn=p,Ft++,gn=Oe(),Ft--,gn===r?fn=void 0:(p=fn,fn=r),fn===r?(p=Yt,Yt=r):(ns=Yt,Yt=vn="ASC")),Yt})()),ct===r&&(ct=null),ct===r?(p=F,F=r):(ns=F,F=ar={expr:ar,type:ct})):(p=F,F=r)):(p=F,F=r),F}function Ri(){var F;return(F=k())===r&&(F=ni()),F}function qu(){var F,ar,Nr,Rr,ct,dt;return F=p,(function(){var Yt=p,vn,fn,gn;return t.substr(p,5).toLowerCase()==="limit"?(vn=t.substr(p,5),p+=5):(vn=r,Ft===0&&Zn(nd)),vn===r?(p=Yt,Yt=r):(fn=p,Ft++,gn=Oe(),Ft--,gn===r?fn=void 0:(p=fn,fn=r),fn===r?(p=Yt,Yt=r):Yt=vn=[vn,fn]),Yt})()!==r&&A()!==r&&(ar=Ri())!==r&&A()!==r?(Nr=p,(Rr=mt())===r&&(Rr=ao()),Rr!==r&&(ct=A())!==r&&(dt=Ri())!==r?Nr=Rr=[Rr,ct,dt]:(p=Nr,Nr=r),Nr===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=(function(Yt,vn){let fn=[Yt];return vn&&fn.push(vn[2]),{seperator:vn&&vn[0]&&vn[0].toLowerCase()||"",value:fn,...Ws()}})(ar,Nr))):(p=F,F=r),F}function Se(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Qu())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=Qu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=Qu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn){let Vn={type:"expr_list"};return Vn.value=me(fn,gn),Vn})(ar,Nr))}else p=F,F=r;return F}function tf(){var F;return(F=qc())===r&&(F=Jl())===r&&(F=(function(){var ar,Nr,Rr,ct,dt,Yt,vn,fn;if(ar=p,(Nr=Qi())!==r){for(Rr=[],ct=p,(dt=nr())!==r&&(Yt=ta())!==r&&(vn=A())!==r&&(fn=Qi())!==r?ct=dt=[dt,Yt,vn,fn]:(p=ct,ct=r);ct!==r;)Rr.push(ct),ct=p,(dt=nr())!==r&&(Yt=ta())!==r&&(vn=A())!==r&&(fn=Qi())!==r?ct=dt=[dt,Yt,vn,fn]:(p=ct,ct=r);Rr===r?(p=ar,ar=r):(ns=ar,Nr=Pn(Nr,Rr),ar=Nr)}else p=ar,ar=r;return ar})())===r&&(F=(function(){var ar,Nr,Rr,ct,dt,Yt;if(ar=p,(Nr=Wn())!==r){if(Rr=[],ct=p,(dt=A())!==r&&(Yt=ve())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r),ct!==r)for(;ct!==r;)Rr.push(ct),ct=p,(dt=A())!==r&&(Yt=ve())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r);else Rr=r;Rr===r?(p=ar,ar=r):(ns=ar,Nr=fe(Nr,Rr[0][1]),ar=Nr)}else p=ar,ar=r;return ar})())===r&&(F=al()),F}function Qu(){var F;return(F=tf())===r&&(F=aa()),F}function P0(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=gc())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=gc())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=gc())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Ae(ar,Nr))}else p=F,F=r;return F}function gc(){var F,ar;return F=p,ir()!==r&&A()!==r&&(ar=Q0())!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar):(p=F,F=r),F}function al(){var F,ar,Nr,Rr,ct;return F=p,(ar=Ds())!==r&&A()!==r?((Nr=Q0())===r&&(Nr=null),Nr!==r&&(Rr=A())!==r&&(ct=ut())!==r?(ns=F,F=ar=(function(dt){return{array_path:dt,type:"array",brackets:!0,keyword:""}})(Nr)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=mn())===r&&(ar=xu()),ar===r&&(ar=null),ar!==r&&Ds()!==r&&(Nr=A())!==r&&(Rr=nt())!==r&&(ct=A())!==r&&ut()!==r?(ns=F,F=ar=(function(dt,Yt){return{definition:dt,array_path:Yt.map(vn=>({expr:vn,as:null})),type:"array",keyword:dt&&"array",brackets:!0}})(ar,Rr)):(p=F,F=r),F===r&&(F=p,(ar=mn())===r&&(ar=xu()),ar===r&&(ar=null),ar!==r&&A()!==r&&(Nr=Ds())!==r&&(Rr=A())!==r?((ct=P0())===r&&(ct=Qu()),ct!==r&&A()!==r&&ut()!==r?(ns=F,F=ar=(function(dt,Yt,vn,fn){return{definition:dt,expr_list:vn,type:"array",keyword:dt&&"array",brackets:!0,parentheses:!1}})(ar,0,ct)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=mn())===r&&(ar=xu()),ar!==r&&A()!==r&&(Nr=ir())!==r&&(Rr=A())!==r?((ct=P0())===r&&(ct=Qu()),ct!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar=(function(dt,Yt,vn,fn){return{definition:dt,expr_list:vn,type:"array",keyword:dt&&"array",brackets:!1,parentheses:!0}})(ar,0,ct)):(p=F,F=r)):(p=F,F=r)))),F}function Jl(){var F,ar;return F=p,(function(){var Nr=p,Rr,ct,dt;return t.substr(p,4).toLowerCase()==="json"?(Rr=t.substr(p,4),p+=4):(Rr=r,Ft===0&&Zn(Lv)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):(ns=Nr,Nr=Rr="JSON")),Nr})()!==r&&A()!==r&&(ar=nt())!==r?(ns=F,F={type:"json",keyword:"json",expr_list:ar}):(p=F,F=r),F}function qc(){var F,ar,Nr;return F=p,(ar=$n())===r&&(ar=tl()),ar!==r&&A()!==r&&ir()!==r&&A()!==r&&(Nr=Q0())!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar=(function(Rr,ct){return{definition:Rr,expr_list:ct,type:"struct",keyword:Rr&&"struct",parentheses:!0}})(ar,Nr)):(p=F,F=r),F}function Ba(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Qu())!==r){for(Nr=[],Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=Wt())===r&&(dt=ta())===r&&(dt=mt()),dt!==r&&(Yt=A())!==r&&(vn=Qu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=Wt())===r&&(dt=ta())===r&&(dt=mt()),dt!==r&&(Yt=A())!==r&&(vn=Qu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Nr===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn){let Vn=gn.length,Jn=fn,ms="";for(let Qs=0;Qs<Vn;++Qs)gn[Qs][1]===","?(ms=",",Array.isArray(Jn)||(Jn=[Jn]),Jn.push(gn[Qs][3])):Jn=ne(gn[Qs][1],Jn,gn[Qs][3]);if(ms===","){let Qs={type:"expr_list"};return Qs.value=Jn,Qs}return Jn})(ar,Nr))}else p=F,F=r;return F}function Qi(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=ya())!==r){for(Nr=[],Rr=p,(ct=nr())!==r&&(dt=Wt())!==r&&(Yt=A())!==r&&(vn=ya())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=nr())!==r&&(dt=Wt())!==r&&(Yt=A())!==r&&(vn=ya())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Pn(ar,Nr))}else p=F,F=r;return F}function ya(){var F,ar,Nr,Rr,ct;return(F=l())===r&&(F=(function(){var dt=p,Yt,vn;(Yt=(function(){var Vn=p,Jn=p,ms,Qs,$;return(ms=Ia())!==r&&(Qs=A())!==r&&($=da())!==r?Jn=ms=[ms,Qs,$]:(p=Jn,Jn=r),Jn!==r&&(ns=Vn,Jn=Yb(Jn)),(Vn=Jn)===r&&(Vn=da()),Vn})())!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=aa())!==r&&A()!==r&&Zr()!==r?(ns=dt,fn=Yt,(gn=vn).parentheses=!0,Yt=fe(fn,gn),dt=Yt):(p=dt,dt=r);var fn,gn;return dt})())===r&&(F=p,(ar=Ia())===r&&(ar=p,t.charCodeAt(p)===33?(Nr="!",p++):(Nr=r,Ft===0&&Zn(pf)),Nr===r?(p=ar,ar=r):(Rr=p,Ft++,t.charCodeAt(p)===61?(ct="=",p++):(ct=r,Ft===0&&Zn(ou)),Ft--,ct===r?Rr=void 0:(p=Rr,Rr=r),Rr===r?(p=ar,ar=r):ar=Nr=[Nr,Rr])),ar!==r&&(Nr=A())!==r&&(Rr=ya())!==r?(ns=F,F=ar=fe("NOT",Rr)):(p=F,F=r)),F}function l(){var F,ar,Nr,Rr,ct;return F=p,(ar=lt())!==r&&A()!==r?((Nr=(function(){var dt;return(dt=(function(){var Yt=p,vn=[],fn=p,gn,Vn,Jn,ms;if((gn=A())!==r&&(Vn=dn())!==r&&(Jn=A())!==r&&(ms=lt())!==r?fn=gn=[gn,Vn,Jn,ms]:(p=fn,fn=r),fn!==r)for(;fn!==r;)vn.push(fn),fn=p,(gn=A())!==r&&(Vn=dn())!==r&&(Jn=A())!==r&&(ms=lt())!==r?fn=gn=[gn,Vn,Jn,ms]:(p=fn,fn=r);else vn=r;return vn!==r&&(ns=Yt,vn={type:"arithmetic",tail:vn}),Yt=vn})())===r&&(dt=Va())===r&&(dt=(function(){var Yt=p,vn,fn,gn;return(vn=(function(){var Vn=p,Jn=p,ms,Qs,$;return(ms=Ia())!==r&&(Qs=A())!==r&&($=lo())!==r?Jn=ms=[ms,Qs,$]:(p=Jn,Jn=r),Jn!==r&&(ns=Vn,Jn=Yb(Jn)),(Vn=Jn)===r&&(Vn=lo()),Vn})())!==r&&A()!==r&&(fn=lt())!==r&&A()!==r&&Wt()!==r&&A()!==r&&(gn=lt())!==r?(ns=Yt,Yt=vn={op:vn,right:{type:"expr_list",value:[fn,gn]}}):(p=Yt,Yt=r),Yt})())===r&&(dt=(function(){var Yt=p,vn,fn,gn,Vn;return(vn=Au())!==r&&(fn=A())!==r&&(gn=lt())!==r?(ns=Yt,Yt=vn={op:"IS",right:gn}):(p=Yt,Yt=r),Yt===r&&(Yt=p,vn=p,(fn=Au())!==r&&(gn=A())!==r&&(Vn=Ia())!==r?vn=fn=[fn,gn,Vn]:(p=vn,vn=r),vn!==r&&(fn=A())!==r&&(gn=lt())!==r?(ns=Yt,vn=(function(Jn){return{op:"IS NOT",right:Jn}})(gn),Yt=vn):(p=Yt,Yt=r)),Yt})())===r&&(dt=vi()),dt})())===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,Rr=ar,F=ar=(ct=Nr)===null?Rr:ct.type==="arithmetic"?Xe(Rr,ct.tail):ne(ct.op,Rr,ct.right))):(p=F,F=r),F===r&&(F=ba())===r&&(F=oi()),F}function dn(){var F;return t.substr(p,2)===">="?(F=">=",p+=2):(F=r,Ft===0&&Zn(av)),F===r&&(t.charCodeAt(p)===62?(F=">",p++):(F=r,Ft===0&&Zn(iv)),F===r&&(t.substr(p,2)==="<="?(F="<=",p+=2):(F=r,Ft===0&&Zn(a0)),F===r&&(t.substr(p,2)==="<>"?(F="<>",p+=2):(F=r,Ft===0&&Zn(_l)),F===r&&(t.charCodeAt(p)===60?(F="<",p++):(F=r,Ft===0&&Zn(Yl)),F===r&&(t.charCodeAt(p)===61?(F="=",p++):(F=r,Ft===0&&Zn(ou)),F===r&&(t.substr(p,2)==="!="?(F="!=",p+=2):(F=r,Ft===0&&Zn(Ab)))))))),F}function Ql(){var F,ar,Nr,Rr,ct;return F=p,ar=p,(Nr=Ia())!==r&&(Rr=A())!==r&&(ct=Co())!==r?ar=Nr=[Nr,Rr,ct]:(p=ar,ar=r),ar!==r&&(ns=F,ar=Yb(ar)),(F=ar)===r&&(F=Co()),F}function vi(){var F,ar,Nr;return F=p,(ar=(function(){var Rr,ct,dt,Yt,vn;return Rr=p,ct=p,(dt=Ia())!==r&&(Yt=A())!==r&&(vn=la())!==r?ct=dt=[dt,Yt,vn]:(p=ct,ct=r),ct!==r&&(ns=Rr,ct=Yb(ct)),(Rr=ct)===r&&(Rr=la()),Rr})())!==r&&A()!==r?((Nr=ii())===r&&(Nr=l()),Nr===r?(p=F,F=r):(ns=F,F=ar={op:ar,right:Nr})):(p=F,F=r),F}function Va(){var F,ar,Nr,Rr;return F=p,(ar=Ql())!==r&&A()!==r&&(Nr=ir())!==r&&A()!==r&&(Rr=Se())!==r&&A()!==r&&Zr()!==r?(ns=F,F=ar={op:ar,right:Rr}):(p=F,F=r),F===r&&(F=p,(ar=Ql())!==r&&A()!==r?((Nr=ba())===r&&(Nr=$0()),Nr===r?(p=F,F=r):(ns=F,F=ar=(function(ct,dt){return{op:ct,right:dt}})(ar,Nr))):(p=F,F=r)),F}function lt(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Eu())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=Wn())!==r&&(Yt=A())!==r&&(vn=Eu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=Wn())!==r&&(Yt=A())!==r&&(vn=Eu())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn){if(gn&&gn.length&&fn.type==="column_ref"&&fn.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...Ws()}));return Xe(fn,gn)})(ar,Nr))}else p=F,F=r;return F}function Wn(){var F;return t.charCodeAt(p)===43?(F="+",p++):(F=r,Ft===0&&Zn(Mf)),F===r&&(t.charCodeAt(p)===45?(F="-",p++):(F=r,Ft===0&&Zn(Wb))),F}function Eu(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=Jt())!==r){for(Nr=[],Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=ia())===r&&(dt=Qo()),dt!==r&&(Yt=A())!==r&&(vn=Jt())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())===r?(p=Rr,Rr=r):((dt=ia())===r&&(dt=Qo()),dt!==r&&(Yt=A())!==r&&(vn=Jt())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r));Nr===r?(p=F,F=r):(ns=F,F=ar=Xe(ar,Nr))}else p=F,F=r;return F}function ia(){var F;return t.charCodeAt(p)===42?(F="*",p++):(F=r,Ft===0&&Zn(Df)),F===r&&(t.charCodeAt(p)===47?(F="/",p++):(F=r,Ft===0&&Zn(mb)),F===r&&(t.charCodeAt(p)===37?(F="%",p++):(F=r,Ft===0&&Zn(i0)))),F}function ve(){var F,ar,Nr;return(F=al())===r&&(F=(function(){var Rr=p,ct,dt,Yt;return(ct=wi())!==r&&A()!==r&&(dt=Qu())!==r&&A()!==r&&(Yt=(function(){var vn;return(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,4).toLowerCase()==="year"?(gn=t.substr(p,4),p+=4):(gn=r,Ft===0&&Zn(zv)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="YEAR")),fn})())===r&&(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,7).toLowerCase()==="isoyear"?(gn=t.substr(p,7),p+=7):(gn=r,Ft===0&&Zn(f0)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="ISOYEAR")),fn})())===r&&(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,5).toLowerCase()==="month"?(gn=t.substr(p,5),p+=5):(gn=r,Ft===0&&Zn(Op)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="MONTH")),fn})())===r&&(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,3).toLowerCase()==="day"?(gn=t.substr(p,3),p+=3):(gn=r,Ft===0&&Zn(xv)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="DAY")),fn})())===r&&(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,4).toLowerCase()==="hour"?(gn=t.substr(p,4),p+=4):(gn=r,Ft===0&&Zn(c0)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="HOUR")),fn})())===r&&(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,6).toLowerCase()==="minute"?(gn=t.substr(p,6),p+=6):(gn=r,Ft===0&&Zn(kv)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="MINUTE")),fn})())===r&&(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,6).toLowerCase()==="second"?(gn=t.substr(p,6),p+=6):(gn=r,Ft===0&&Zn(oc)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="SECOND")),fn})())===r&&(vn=(function(){var fn=p,gn,Vn,Jn;return t.substr(p,4).toLowerCase()==="week"?(gn=t.substr(p,4),p+=4):(gn=r,Ft===0&&Zn(Gf)),gn===r?(p=fn,fn=r):(Vn=p,Ft++,Jn=Oe(),Ft--,Jn===r?Vn=void 0:(p=Vn,Vn=r),Vn===r?(p=fn,fn=r):(ns=fn,fn=gn="WEEK")),fn})()),vn})())!==r?(ns=Rr,ct={type:"interval",expr:dt,unit:Yt.toLowerCase()},Rr=ct):(p=Rr,Rr=r),Rr})())===r&&(F=ui())===r&&(F=ll())===r&&(F=qc())===r&&(F=Jl())===r&&(F=(function(){var Rr=p,ct,dt,Yt,vn,fn,gn;return(ct=Da())!==r&&A()!==r&&ir()!==r&&A()!==r&&(dt=Ma())!==r&&A()!==r&&hr()!==r&&A()!==r&&(Yt=cn())!==r&&A()!==r&&(vn=Zr())!==r?(ns=Rr,ct=(function(Vn,Jn,ms){return{type:"cast",keyword:Vn.toLowerCase(),...Jn,symbol:"as",target:[ms]}})(ct,dt,Yt),Rr=ct):(p=Rr,Rr=r),Rr===r&&(Rr=p,(ct=Da())!==r&&A()!==r&&ir()!==r&&A()!==r&&(dt=Ma())!==r&&A()!==r&&hr()!==r&&A()!==r&&(Yt=si())!==r&&A()!==r&&(vn=ir())!==r&&A()!==r&&(fn=Or())!==r&&A()!==r&&Zr()!==r&&A()!==r&&(gn=Zr())!==r?(ns=Rr,ct=(function(Vn,Jn,ms){return{type:"cast",keyword:Vn.toLowerCase(),...Jn,symbol:"as",target:[{dataType:"DECIMAL("+ms+")"}]}})(ct,dt,fn),Rr=ct):(p=Rr,Rr=r),Rr===r&&(Rr=p,(ct=Da())!==r&&A()!==r&&ir()!==r&&A()!==r&&(dt=Ma())!==r&&A()!==r&&hr()!==r&&A()!==r&&(Yt=si())!==r&&A()!==r&&(vn=ir())!==r&&A()!==r&&(fn=Or())!==r&&A()!==r&&mt()!==r&&A()!==r&&(gn=Or())!==r&&A()!==r&&Zr()!==r&&A()!==r&&Zr()!==r?(ns=Rr,ct=(function(Vn,Jn,ms,Qs){return{type:"cast",keyword:Vn.toLowerCase(),...Jn,symbol:"as",target:[{dataType:"DECIMAL("+ms+", "+Qs+")"}]}})(ct,dt,fn,gn),Rr=ct):(p=Rr,Rr=r),Rr===r&&(Rr=p,(ct=Da())!==r&&A()!==r&&ir()!==r&&A()!==r&&(dt=Ma())!==r&&A()!==r&&hr()!==r&&A()!==r&&(Yt=(function(){var Vn;return(Vn=(function(){var Jn=p,ms,Qs,$;return t.substr(p,6).toLowerCase()==="signed"?(ms=t.substr(p,6),p+=6):(ms=r,Ft===0&&Zn(Kb)),ms===r?(p=Jn,Jn=r):(Qs=p,Ft++,$=Oe(),Ft--,$===r?Qs=void 0:(p=Qs,Qs=r),Qs===r?(p=Jn,Jn=r):(ns=Jn,Jn=ms="SIGNED")),Jn})())===r&&(Vn=(function(){var Jn=p,ms,Qs,$;return t.substr(p,8).toLowerCase()==="unsigned"?(ms=t.substr(p,8),p+=8):(ms=r,Ft===0&&Zn(ys)),ms===r?(p=Jn,Jn=r):(Qs=p,Ft++,$=Oe(),Ft--,$===r?Qs=void 0:(p=Qs,Qs=r),Qs===r?(p=Jn,Jn=r):(ns=Jn,Jn=ms="UNSIGNED")),Jn})()),Vn})())!==r&&A()!==r?((vn=Ni())===r&&(vn=null),vn!==r&&A()!==r&&(fn=Zr())!==r?(ns=Rr,ct=(function(Vn,Jn,ms,Qs){return{type:"cast",keyword:Vn.toLowerCase(),...Jn,symbol:"as",target:[{dataType:ms+(Qs?" "+Qs:"")}]}})(ct,dt,Yt,vn),Rr=ct):(p=Rr,Rr=r)):(p=Rr,Rr=r)))),Rr})())===r&&(F=ii())===r&&(F=(function(){var Rr=p,ct,dt,Yt,vn,fn,gn;(ct=Le())!==r&&A()!==r&&(dt=nf())!==r&&A()!==r?((Yt=kl())===r&&(Yt=null),Yt!==r&&A()!==r&&(vn=rl())!==r&&A()!==r?((fn=Le())===r&&(fn=null),fn===r?(p=Rr,Rr=r):(ns=Rr,Vn=dt,(Jn=Yt)&&Vn.push(Jn),Rr=ct={type:"case",expr:null,args:Vn})):(p=Rr,Rr=r)):(p=Rr,Rr=r);var Vn,Jn;return Rr===r&&(Rr=p,(ct=Le())!==r&&A()!==r&&(dt=Qu())!==r&&A()!==r&&(Yt=nf())!==r&&A()!==r?((vn=kl())===r&&(vn=null),vn!==r&&A()!==r&&(fn=rl())!==r&&A()!==r?((gn=Le())===r&&(gn=null),gn===r?(p=Rr,Rr=r):(ns=Rr,ct=(function(ms,Qs,$){return $&&Qs.push($),{type:"case",expr:ms,args:Qs}})(dt,Yt,vn),Rr=ct)):(p=Rr,Rr=r)):(p=Rr,Rr=r)),Rr})())===r&&(F=oi())===r&&(F=ni())===r&&(F=p,ir()!==r&&A()!==r&&(ar=Ba())!==r&&A()!==r&&Zr()!==r?(ns=F,(Nr=ar).parentheses=!0,F=Nr):(p=F,F=r)),F}function Jt(){var F,ar,Nr,Rr,ct;return(F=ve())===r&&(F=p,(ar=(function(){var dt;return t.charCodeAt(p)===33?(dt="!",p++):(dt=r,Ft===0&&Zn(pf)),dt===r&&(t.charCodeAt(p)===45?(dt="-",p++):(dt=r,Ft===0&&Zn(Wb)),dt===r&&(t.charCodeAt(p)===43?(dt="+",p++):(dt=r,Ft===0&&Zn(Mf)),dt===r&&(t.charCodeAt(p)===126?(dt="~",p++):(dt=r,Ft===0&&Zn(ft))))),dt})())===r?(p=F,F=r):(Nr=p,(Rr=A())!==r&&(ct=Jt())!==r?Nr=Rr=[Rr,ct]:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar=fe(ar,Nr[1])))),F}function nf(){var F,ar,Nr,Rr,ct,dt;if(F=p,(ar=E0())!==r)if(A()!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=E0())!==r?Rr=ct=[ct,dt]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=E0())!==r?Rr=ct=[ct,dt]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=dl(ar,Nr))}else p=F,F=r;else p=F,F=r;return F}function E0(){var F,ar,Nr;return F=p,(function(){var Rr=p,ct,dt,Yt;return t.substr(p,4).toLowerCase()==="when"?(ct=t.substr(p,4),p+=4):(ct=r,Ft===0&&Zn(Wp)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt]),Rr})()!==r&&A()!==r&&(ar=Ba())!==r&&A()!==r&&(function(){var Rr=p,ct,dt,Yt;return t.substr(p,4).toLowerCase()==="then"?(ct=t.substr(p,4),p+=4):(ct=r,Ft===0&&Zn(cd)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt]),Rr})()!==r&&A()!==r&&(Nr=Qu())!==r?(ns=F,F={type:"when",cond:ar,result:Nr}):(p=F,F=r),F}function kl(){var F,ar;return F=p,(function(){var Nr=p,Rr,ct,dt;return t.substr(p,4).toLowerCase()==="else"?(Rr=t.substr(p,4),p+=4):(Rr=r,Ft===0&&Zn(Vb)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct]),Nr})()!==r&&A()!==r&&(ar=Qu())!==r?(ns=F,F={type:"else",result:ar}):(p=F,F=r),F}function oi(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn,gn,Vn;if(F=p,(ar=Mi())!==r){if(Nr=[],Rr=p,(ct=A())!==r&&(dt=Lt())!==r&&(Yt=A())!==r&&(vn=Mi())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r),Rr!==r)for(;Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=Lt())!==r&&(Yt=A())!==r&&(vn=Mi())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);else Nr=r;Nr!==r&&(Rr=A())!==r?(ct=p,(dt=Zi())!==r&&(Yt=A())!==r?(vn=p,(fn=Lt())!==r&&(gn=A())!==r&&(Vn=Mi())!==r?vn=fn=[fn,gn,Vn]:(p=vn,vn=r),vn===r&&(vn=null),vn===r?(p=ct,ct=r):ct=dt=[dt,Yt,vn]):(p=ct,ct=r),ct===r&&(ct=null),ct===r?(p=F,F=r):(dt=p,(Yt=A())!==r&&(vn=El())!==r?dt=Yt=[Yt,vn]:(p=dt,dt=r),dt===r&&(dt=null),dt===r?(p=F,F=r):(ns=F,F=ar=(function(Jn,ms,Qs,$){let J=ms.map(br=>br[3]);return Po.add(`select::${Jn}::${J[0]}`),{type:"column_ref",table:Jn,...Qs?{column:{expr:{type:"column_ref",table:null,column:J[0],subFields:J.slice(1)},offset:Qs&&Qs[0],suffix:Qs&&Qs[2]&&"."+Qs[2][2]}}:{column:J[0],subFields:J.slice(1)},collate:$&&$[1],...Ws()}})(ar,Nr,ct,dt)))):(p=F,F=r)}else p=F,F=r;if(F===r)if(F=p,(ar=Ou())===r&&(ar=ha()),ar!==r)if((Nr=A())!==r){for(Rr=[],ct=fa();ct!==r;)Rr.push(ct),ct=fa();Rr===r?(p=F,F=r):(ct=p,(dt=A())!==r&&(Yt=El())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r),ct===r&&(ct=null),ct===r?(p=F,F=r):(ns=F,F=ar=(function(Jn,ms,Qs){let $=typeof Jn=="string"?Jn:Jn.value;Po.add("select::null::"+$);let J=typeof Jn=="string"?{expr:{type:"default",value:Jn}}:{expr:Jn};return ms&&(J.offset=ms),{type:"column_ref",table:null,column:J,collate:Qs&&Qs[1],...Ws()}})(ar,Rr,ct)))}else p=F,F=r;else p=F,F=r;return F}function yn(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=ha())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=ha())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=ha())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Ae(ar,Nr))}else p=F,F=r;return F}function ka(){var F,ar;return F=p,(ar=ln())!==r&&(ns=F,ar={type:"default",value:ar}),(F=ar)===r&&(F=Ou()),F}function Ua(){var F,ar;return F=p,(ar=ln())===r?(p=F,F=r):(ns=p,((function(Nr){return bs[(""+Nr).toUpperCase()]===!0})(ar)?r:void 0)===r?(p=F,F=r):(ns=F,F=ar=ar)),F===r&&(F=p,(ar=il())!==r&&(ns=F,ar=ar),F=ar),F}function Ou(){var F;return(F=zu())===r&&(F=Yu())===r&&(F=lb()),F}function il(){var F,ar;return F=p,(ar=zu())===r&&(ar=Yu())===r&&(ar=lb()),ar!==r&&(ns=F,ar=ar.value),F=ar}function zu(){var F,ar,Nr,Rr;if(F=p,t.charCodeAt(p)===34?(ar='"',p++):(ar=r,Ft===0&&Zn(_n)),ar!==r){if(Nr=[],En.test(t.charAt(p))?(Rr=t.charAt(p),p++):(Rr=r,Ft===0&&Zn(Os)),Rr!==r)for(;Rr!==r;)Nr.push(Rr),En.test(t.charAt(p))?(Rr=t.charAt(p),p++):(Rr=r,Ft===0&&Zn(Os));else Nr=r;Nr===r?(p=F,F=r):(t.charCodeAt(p)===34?(Rr='"',p++):(Rr=r,Ft===0&&Zn(_n)),Rr===r?(p=F,F=r):(ns=F,F=ar={type:"double_quote_string",value:Nr.join("")}))}else p=F,F=r;return F}function Yu(){var F,ar,Nr,Rr;if(F=p,t.charCodeAt(p)===39?(ar="'",p++):(ar=r,Ft===0&&Zn(ku)),ar!==r){if(Nr=[],gs.test(t.charAt(p))?(Rr=t.charAt(p),p++):(Rr=r,Ft===0&&Zn(Ys)),Rr!==r)for(;Rr!==r;)Nr.push(Rr),gs.test(t.charAt(p))?(Rr=t.charAt(p),p++):(Rr=r,Ft===0&&Zn(Ys));else Nr=r;Nr===r?(p=F,F=r):(t.charCodeAt(p)===39?(Rr="'",p++):(Rr=r,Ft===0&&Zn(ku)),Rr===r?(p=F,F=r):(ns=F,F=ar={type:"single_quote_string",value:Nr.join("")}))}else p=F,F=r;return F}function lb(){var F,ar,Nr,Rr;if(F=p,t.charCodeAt(p)===96?(ar="`",p++):(ar=r,Ft===0&&Zn(Te)),ar!==r){if(Nr=[],ye.test(t.charAt(p))?(Rr=t.charAt(p),p++):(Rr=r,Ft===0&&Zn(Be)),Rr!==r)for(;Rr!==r;)Nr.push(Rr),ye.test(t.charAt(p))?(Rr=t.charAt(p),p++):(Rr=r,Ft===0&&Zn(Be));else Nr=r;Nr===r?(p=F,F=r):(t.charCodeAt(p)===96?(Rr="`",p++):(Rr=r,Ft===0&&Zn(Te)),Rr===r?(p=F,F=r):(ns=F,F=ar={type:"backticks_quote_string",value:Nr.join("")}))}else p=F,F=r;return F}function Mi(){var F;return(F=Ha())===r&&(F=il()),F}function ha(){var F,ar;return F=p,(ar=Ha())===r?(p=F,F=r):(ns=p,(tn(ar)?r:void 0)===r?(p=F,F=r):(ns=F,F=ar=ar)),F===r&&(F=il()),F}function Ha(){var F,ar,Nr,Rr;if(F=p,(ar=Oe())!==r){for(Nr=[],Rr=Ya();Rr!==r;)Nr.push(Rr),Rr=Ya();Nr===r?(p=F,F=r):(ns=F,F=ar=io(ar,Nr))}else p=F,F=r;return F}function ln(){var F,ar,Nr,Rr;if(F=p,(ar=Oe())!==r){for(Nr=[],Rr=Di();Rr!==r;)Nr.push(Rr),Rr=Di();Nr===r?(p=F,F=r):(ns=F,F=ar=io(ar,Nr))}else p=F,F=r;return F}function Oe(){var F;return Ro.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(So)),F}function Di(){var F;return uu.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(ko)),F}function Ya(){var F;return yu.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(au)),F}function ni(){var F,ar,Nr;return F=p,t.charCodeAt(p)===58?(ar=":",p++):(ar=r,Ft===0&&Zn(Iu)),ar===r&&(t.charCodeAt(p)===64?(ar="@",p++):(ar=r,Ft===0&&Zn(N0))),ar!==r&&(Nr=ln())!==r?(ns=F,F=ar={type:"param",value:Nr,prefix:ar}):(p=F,F=r),F}function ui(){var F;return(F=(function(){var ar=p,Nr,Rr,ct;return(Nr=(function(){var dt=p,Yt,vn,fn;return t.substr(p,5).toLowerCase()==="count"?(Yt=t.substr(p,5),p+=5):(Yt=r,Ft===0&&Zn(Hv)),Yt===r?(p=dt,dt=r):(vn=p,Ft++,fn=Oe(),Ft--,fn===r?vn=void 0:(p=vn,vn=r),vn===r?(p=dt,dt=r):(ns=dt,dt=Yt="COUNT")),dt})())===r&&(t.substr(p,10).toLowerCase()==="string_agg"?(Nr=t.substr(p,10),p+=10):(Nr=r,Ft===0&&Zn(mu))),Nr!==r&&A()!==r&&ir()!==r&&A()!==r&&(Rr=(function(){var dt=p,Yt,vn,fn,gn,Vn,Jn,ms,Qs,$;if((Yt=(function(){var J=p,br;return t.charCodeAt(p)===42?(br="*",p++):(br=r,Ft===0&&Zn(Df)),br!==r&&(ns=J,br={type:"star",value:"*"}),J=br})())!==r&&(ns=dt,Yt={expr:Yt,...Ws()}),(dt=Yt)===r){if(dt=p,(Yt=yo())===r&&(Yt=null),Yt!==r)if(A()!==r)if((vn=ir())!==r)if(A()!==r)if((fn=Qu())!==r)if(A()!==r)if(Zr()!==r){for(gn=[],Vn=p,(Jn=A())===r?(p=Vn,Vn=r):((ms=Wt())===r&&(ms=ta()),ms!==r&&(Qs=A())!==r&&($=Qu())!==r?Vn=Jn=[Jn,ms,Qs,$]:(p=Vn,Vn=r));Vn!==r;)gn.push(Vn),Vn=p,(Jn=A())===r?(p=Vn,Vn=r):((ms=Wt())===r&&(ms=ta()),ms!==r&&(Qs=A())!==r&&($=Qu())!==r?Vn=Jn=[Jn,ms,Qs,$]:(p=Vn,Vn=r));gn!==r&&(Vn=A())!==r?((Jn=qi())===r&&(Jn=null),Jn===r?(p=dt,dt=r):(ns=dt,Yt=(function(J,br,mr,et){let pt=mr.length,At=br;At.parentheses=!0;for(let Bt=0;Bt<pt;++Bt)At=ne(mr[Bt][1],At,mr[Bt][3]);return{distinct:J,expr:At,orderby:et,...Ws()}})(Yt,fn,gn,Jn),dt=Yt)):(p=dt,dt=r)}else p=dt,dt=r;else p=dt,dt=r;else p=dt,dt=r;else p=dt,dt=r;else p=dt,dt=r;else p=dt,dt=r;else p=dt,dt=r;dt===r&&(dt=p,(Yt=yo())===r&&(Yt=null),Yt!==r&&A()!==r&&(vn=xa())!==r&&A()!==r?((fn=qi())===r&&(fn=null),fn===r?(p=dt,dt=r):(ns=dt,Yt=(function(J,br,mr){return{distinct:J,expr:br,orderby:mr,...Ws()}})(Yt,vn,fn),dt=Yt)):(p=dt,dt=r))}return dt})())!==r&&A()!==r&&Zr()!==r&&A()!==r?((ct=ai())===r&&(ct=null),ct===r?(p=ar,ar=r):(ns=ar,Nr=(function(dt,Yt,vn){return{type:"aggr_func",name:dt,args:Yt,over:vn,...Ws()}})(Nr,Rr,ct),ar=Nr)):(p=ar,ar=r),ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct;return(Nr=(function(){var dt;return(dt=(function(){var Yt=p,vn,fn,gn;return t.substr(p,3).toLowerCase()==="sum"?(vn=t.substr(p,3),p+=3):(vn=r,Ft===0&&Zn(Bc)),vn===r?(p=Yt,Yt=r):(fn=p,Ft++,gn=Oe(),Ft--,gn===r?fn=void 0:(p=fn,fn=r),fn===r?(p=Yt,Yt=r):(ns=Yt,Yt=vn="SUM")),Yt})())===r&&(dt=li())===r&&(dt=ea())===r&&(dt=(function(){var Yt=p,vn,fn,gn;return t.substr(p,3).toLowerCase()==="avg"?(vn=t.substr(p,3),p+=3):(vn=r,Ft===0&&Zn(vv)),vn===r?(p=Yt,Yt=r):(fn=p,Ft++,gn=Oe(),Ft--,gn===r?fn=void 0:(p=fn,fn=r),fn===r?(p=Yt,Yt=r):(ns=Yt,Yt=vn="AVG")),Yt})()),dt})())!==r&&A()!==r&&ir()!==r&&A()!==r&&(Rr=lt())!==r&&A()!==r&&Zr()!==r&&A()!==r?((ct=ai())===r&&(ct=null),ct===r?(p=ar,ar=r):(ns=ar,Nr=(function(dt,Yt,vn){return{type:"aggr_func",name:dt,args:{expr:Yt},over:vn,...Ws()}})(Nr,Rr,ct),ar=Nr)):(p=ar,ar=r),ar})()),F}function $i(){var F,ar,Nr,Rr;return F=p,Pr()!==r&&A()!==r?(t.substr(p,6).toLowerCase()==="update"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Pc)),ar!==r&&A()!==r&&(Nr=j())!==r&&A()!==r&&ir()!==r&&A()!==r?((Rr=Se())===r&&(Rr=null),Rr!==r&&A()!==r&&Zr()!==r?(ns=F,F={type:"on update",keyword:Nr,parentheses:!0,expr:Rr}):(p=F,F=r)):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,Pr()!==r&&A()!==r?(t.substr(p,6).toLowerCase()==="update"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Pc)),ar!==r&&A()!==r&&(Nr=j())!==r?(ns=F,F=(function(ct){return{type:"on update",keyword:ct}})(Nr)):(p=F,F=r)):(p=F,F=r)),F}function ai(){var F,ar,Nr,Rr;return F=p,Yn()!==r&&A()!==r&&(ar=ju())!==r?(ns=F,F={type:"window",as_window_specification:ar}):(p=F,F=r),F===r&&(F=p,Yn()!==r&&A()!==r&&(ar=ir())!==r&&A()!==r&&(Nr=fc())!==r&&A()!==r?((Rr=qi())===r&&(Rr=null),Rr!==r&&A()!==r&&Zr()!==r?(ns=F,F={partitionby:Nr,orderby:Rr}):(p=F,F=r)):(p=F,F=r),F===r&&(F=$i())),F}function ll(){var F,ar,Nr,Rr,ct;return(F=(function(){var dt=p,Yt,vn,fn,gn;(Yt=Ml())!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=an())!==r&&A()!==r&&Tr()!==r&&A()!==r?((fn=Zo())===r&&(fn=wi())===r&&(fn=Wu())===r&&(fn=Dl()),fn!==r&&A()!==r&&(gn=Qu())!==r&&A()!==r&&Zr()!==r?(ns=dt,Vn=vn,Jn=fn,ms=gn,Yt={type:Yt.toLowerCase(),args:{field:Vn,cast_type:Jn,source:ms},...Ws()},dt=Yt):(p=dt,dt=r)):(p=dt,dt=r);var Vn,Jn,ms;return dt===r&&(dt=p,(Yt=Ml())!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=an())!==r&&A()!==r&&Tr()!==r&&A()!==r&&(fn=Qu())!==r&&A()!==r&&(gn=Zr())!==r?(ns=dt,Yt=(function(Qs,$,J){return{type:Qs.toLowerCase(),args:{field:$,source:J},...Ws()}})(Yt,vn,fn),dt=Yt):(p=dt,dt=r),dt===r&&(dt=p,t.substr(p,10).toLowerCase()==="date_trunc"?(Yt=t.substr(p,10),p+=10):(Yt=r,Ft===0&&Zn(Mv)),Yt!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=Qu())!==r&&A()!==r&&mt()!==r&&A()!==r&&(fn=an())!==r&&A()!==r&&(gn=Zr())!==r?(ns=dt,Yt=(function(Qs,$){return{type:"function",name:{name:[{type:"origin",value:"date_trunc"}]},args:{type:"expr_list",value:[Qs,{type:"origin",value:$}]},over:null,...Ws()}})(vn,fn),dt=Yt):(p=dt,dt=r))),dt})())===r&&(F=(function(){var dt=p,Yt,vn,fn,gn;return t.substr(p,9).toLowerCase()==="any_value"?(Yt=t.substr(p,9),p+=9):(Yt=r,Ft===0&&Zn(Ju)),Yt!==r&&A()!==r&&ir()!==r&&A()!==r&&(vn=Ba())!==r&&A()!==r?((fn=(function(){var Vn=p,Jn,ms;return co()!==r&&A()!==r?((Jn=li())===r&&(Jn=ea()),Jn!==r&&A()!==r&&(ms=Ba())!==r?(ns=Vn,Vn={prefix:Jn,expr:ms}):(p=Vn,Vn=r)):(p=Vn,Vn=r),Vn})())===r&&(fn=null),fn!==r&&A()!==r&&Zr()!==r&&A()!==r?((gn=ai())===r&&(gn=null),gn===r?(p=dt,dt=r):(ns=dt,Yt={type:"any_value",args:{expr:vn,having:fn},over:gn,...Ws()},dt=Yt)):(p=dt,dt=r)):(p=dt,dt=r),dt})())===r&&(F=p,(ar=(function(){var dt;return(dt=a())===r&&(dt=(function(){var Yt=p,vn,fn,gn;return t.substr(p,12).toLowerCase()==="session_user"?(vn=t.substr(p,12),p+=12):(vn=r,Ft===0&&Zn(xl)),vn===r?(p=Yt,Yt=r):(fn=p,Ft++,gn=Oe(),Ft--,gn===r?fn=void 0:(p=fn,fn=r),fn===r?(p=Yt,Yt=r):(ns=Yt,Yt=vn="SESSION_USER")),Yt})()),dt})())!==r&&A()!==r&&(Nr=ir())!==r&&A()!==r?((Rr=Se())===r&&(Rr=null),Rr!==r&&A()!==r&&Zr()!==r&&A()!==r?((ct=ai())===r&&(ct=null),ct===r?(p=F,F=r):(ns=F,F=ar=(function(dt,Yt,vn){return{type:"function",name:{name:[{type:"default",value:dt}]},args:Yt||{type:"expr_list",value:[]},over:vn,...Ws()}})(ar,Rr,ct))):(p=F,F=r)):(p=F,F=r),F===r&&(F=p,(ar=a())!==r&&A()!==r?((Nr=$i())===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=ar={type:"function",name:{name:[{type:"origin",value:ar}]},over:Nr,...Ws()})):(p=F,F=r),F===r&&(F=p,(ar=cl())!==r&&A()!==r&&(Nr=ir())!==r&&A()!==r?((Rr=Ba())===r&&(Rr=null),Rr!==r&&A()!==r&&Zr()!==r&&A()!==r?((ct=ai())===r&&(ct=null),ct===r?(p=F,F=r):(ns=F,F=ar=(function(dt,Yt,vn){return Yt&&Yt.type!=="expr_list"&&(Yt={type:"expr_list",value:[Yt]}),{type:"function",name:dt,args:Yt||{type:"expr_list",value:[]},over:vn,...Ws()}})(ar,Rr,ct))):(p=F,F=r)):(p=F,F=r)))),F}function cl(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=ka())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=Lt())!==r&&(Yt=A())!==r&&(vn=ka())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=Lt())!==r&&(Yt=A())!==r&&(vn=ka())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=(function(fn,gn){let Vn={name:[fn]};return gn!==null&&(Vn.schema=fn,Vn.name=gn.map(Jn=>Jn[3])),Vn})(ar,Nr))}else p=F,F=r;return F}function a(){var F;return(F=(function(){var ar=p,Nr,Rr,ct;return t.substr(p,12).toLowerCase()==="current_date"?(Nr=t.substr(p,12),p+=12):(Nr=r,Ft===0&&Zn(tb)),Nr===r?(p=ar,ar=r):(Rr=p,Ft++,ct=Oe(),Ft--,ct===r?Rr=void 0:(p=Rr,Rr=r),Rr===r?(p=ar,ar=r):(ns=ar,ar=Nr="CURRENT_DATE")),ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct;return t.substr(p,12).toLowerCase()==="current_time"?(Nr=t.substr(p,12),p+=12):(Nr=r,Ft===0&&Zn(us)),Nr===r?(p=ar,ar=r):(Rr=p,Ft++,ct=Oe(),Ft--,ct===r?Rr=void 0:(p=Rr,Rr=r),Rr===r?(p=ar,ar=r):(ns=ar,ar=Nr="CURRENT_TIME")),ar})())===r&&(F=j()),F}function an(){var F,ar;return F=p,t.substr(p,10).toLowerCase()==="year_month"?(ar=t.substr(p,10),p+=10):(ar=r,Ft===0&&Zn(ua)),ar===r&&(t.substr(p,8).toLowerCase()==="day_hour"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(Sa)),ar===r&&(t.substr(p,10).toLowerCase()==="day_minute"?(ar=t.substr(p,10),p+=10):(ar=r,Ft===0&&Zn(ma)),ar===r&&(t.substr(p,10).toLowerCase()==="day_second"?(ar=t.substr(p,10),p+=10):(ar=r,Ft===0&&Zn(Bi)),ar===r&&(t.substr(p,15).toLowerCase()==="day_microsecond"?(ar=t.substr(p,15),p+=15):(ar=r,Ft===0&&Zn(sa)),ar===r&&(t.substr(p,11).toLowerCase()==="hour_minute"?(ar=t.substr(p,11),p+=11):(ar=r,Ft===0&&Zn(di)),ar===r&&(t.substr(p,11).toLowerCase()==="hour_second"?(ar=t.substr(p,11),p+=11):(ar=r,Ft===0&&Zn(Hi)),ar===r&&(t.substr(p,16).toLowerCase()==="hour_microsecond"?(ar=t.substr(p,16),p+=16):(ar=r,Ft===0&&Zn(S0)),ar===r&&(t.substr(p,13).toLowerCase()==="minute_second"?(ar=t.substr(p,13),p+=13):(ar=r,Ft===0&&Zn(l0)),ar===r&&(t.substr(p,18).toLowerCase()==="minute_microsecond"?(ar=t.substr(p,18),p+=18):(ar=r,Ft===0&&Zn(Ov)),ar===r&&(t.substr(p,18).toLowerCase()==="second_microsecond"?(ar=t.substr(p,18),p+=18):(ar=r,Ft===0&&Zn(lv)),ar===r&&(t.substr(p,13).toLowerCase()==="timezone_hour"?(ar=t.substr(p,13),p+=13):(ar=r,Ft===0&&Zn(fi)),ar===r&&(t.substr(p,15).toLowerCase()==="timezone_minute"?(ar=t.substr(p,15),p+=15):(ar=r,Ft===0&&Zn(Wl)),ar===r&&(t.substr(p,7).toLowerCase()==="century"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(ec)),ar===r&&(t.substr(p,9).toLowerCase()==="dayofweek"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(Fc)),ar===r&&(t.substr(p,3).toLowerCase()==="day"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(xv)),ar===r&&(t.substr(p,4).toLowerCase()==="date"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(lp)),ar===r&&(t.substr(p,6).toLowerCase()==="decade"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Uv)),ar===r&&(t.substr(p,3).toLowerCase()==="dow"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn($f)),ar===r&&(t.substr(p,3).toLowerCase()==="doy"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(Tb)),ar===r&&(t.substr(p,5).toLowerCase()==="epoch"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(cp)),ar===r&&(t.substr(p,4).toLowerCase()==="hour"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(c0)),ar===r&&(t.substr(p,6).toLowerCase()==="isodow"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(q0)),ar===r&&(t.substr(p,7).toLowerCase()==="isoweek"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(df)),ar===r&&(t.substr(p,7).toLowerCase()==="isoyear"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(f0)),ar===r&&(t.substr(p,12).toLowerCase()==="microseconds"?(ar=t.substr(p,12),p+=12):(ar=r,Ft===0&&Zn(b0)),ar===r&&(t.substr(p,10).toLowerCase()==="millennium"?(ar=t.substr(p,10),p+=10):(ar=r,Ft===0&&Zn(Pf)),ar===r&&(t.substr(p,12).toLowerCase()==="milliseconds"?(ar=t.substr(p,12),p+=12):(ar=r,Ft===0&&Zn(Sp)),ar===r&&(t.substr(p,6).toLowerCase()==="minute"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(kv)),ar===r&&(t.substr(p,5).toLowerCase()==="month"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(Op)),ar===r&&(t.substr(p,7).toLowerCase()==="quarter"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(fp)),ar===r&&(t.substr(p,6).toLowerCase()==="second"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(oc)),ar===r&&(t.substr(p,4).toLowerCase()==="time"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(uc)),ar===r&&(t.substr(p,8).toLowerCase()==="timezone"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(qb)),ar===r&&(t.substr(p,4).toLowerCase()==="week"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Gf)),ar===r&&(t.substr(p,4).toLowerCase()==="year"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(zv))))))))))))))))))))))))))))))))))))),ar!==r&&(ns=F,ar=ar),F=ar}function Ma(){var F,ar,Nr;return F=p,(ar=Qu())!==r&&A()!==r?((Nr=Zi())===r&&(Nr=null),Nr===r?(p=F,F=r):(ns=F,F=ar=(function(Rr,ct){let dt={expr:Rr};return ct&&(dt.offset=ct),dt})(ar,Nr))):(p=F,F=r),F}function Da(){var F;return(F=(function(){var ar=p,Nr,Rr,ct;return t.substr(p,4).toLowerCase()==="cast"?(Nr=t.substr(p,4),p+=4):(Nr=r,Ft===0&&Zn(Ls)),Nr===r?(p=ar,ar=r):(Rr=p,Ft++,ct=Oe(),Ft--,ct===r?Rr=void 0:(p=Rr,Rr=r),Rr===r?(p=ar,ar=r):(ns=ar,ar=Nr="CAST")),ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct;return t.substr(p,9).toLowerCase()==="safe_cast"?(Nr=t.substr(p,9),p+=9):(Nr=r,Ft===0&&Zn(pv)),Nr===r?(p=ar,ar=r):(Rr=p,Ft++,ct=Oe(),Ft--,ct===r?Rr=void 0:(p=Rr,Rr=r),Rr===r?(p=ar,ar=r):(ns=ar,ar=Nr="SAFE_CAST")),ar})()),F}function ii(){var F;return(F=ba())===r&&(F=k())===r&&(F=Zt())===r&&(F=o())===r&&(F=(function(){var ar=p,Nr,Rr,ct,dt,Yt;if((Nr=Wu())===r&&(Nr=Dl())===r&&(Nr=Zo())===r&&(Nr=$a()),Nr!==r)if(A()!==r){if(Rr=p,t.charCodeAt(p)===39?(ct="'",p++):(ct=r,Ft===0&&Zn(ku)),ct!==r){for(dt=[],Yt=Ht();Yt!==r;)dt.push(Yt),Yt=Ht();dt===r?(p=Rr,Rr=r):(t.charCodeAt(p)===39?(Yt="'",p++):(Yt=r,Ft===0&&Zn(ku)),Yt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt,Yt])}else p=Rr,Rr=r;Rr===r?(p=ar,ar=r):(ns=ar,Nr=bp(Nr,Rr),ar=Nr)}else p=ar,ar=r;else p=ar,ar=r;if(ar===r)if(ar=p,(Nr=Wu())===r&&(Nr=Dl())===r&&(Nr=Zo())===r&&(Nr=$a()),Nr!==r)if(A()!==r){if(Rr=p,t.charCodeAt(p)===34?(ct='"',p++):(ct=r,Ft===0&&Zn(_n)),ct!==r){for(dt=[],Yt=bu();Yt!==r;)dt.push(Yt),Yt=bu();dt===r?(p=Rr,Rr=r):(t.charCodeAt(p)===34?(Yt='"',p++):(Yt=r,Ft===0&&Zn(_n)),Yt===r?(p=Rr,Rr=r):Rr=ct=[ct,dt,Yt])}else p=Rr,Rr=r;Rr===r?(p=ar,ar=r):(ns=ar,Nr=bp(Nr,Rr),ar=Nr)}else p=ar,ar=r;else p=ar,ar=r;return ar})()),F}function nt(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=ii())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=ii())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=ii())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Ae(ar,Nr))}else p=F,F=r;return F}function o(){var F,ar;return F=p,(ar=(function(){var Nr=p,Rr,ct,dt;return t.substr(p,4).toLowerCase()==="null"?(Rr=t.substr(p,4),p+=4):(Rr=r,Ft===0&&Zn(hp)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct]),Nr})())!==r&&(ns=F,ar={type:"null",value:null}),F=ar}function Zt(){var F,ar;return F=p,(ar=(function(){var Nr=p,Rr,ct,dt;return t.substr(p,4).toLowerCase()==="true"?(Rr=t.substr(p,4),p+=4):(Rr=r,Ft===0&&Zn(Nb)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct]),Nr})())!==r&&(ns=F,ar={type:"bool",value:!0}),(F=ar)===r&&(F=p,(ar=(function(){var Nr=p,Rr,ct,dt;return t.substr(p,5).toLowerCase()==="false"?(Rr=t.substr(p,5),p+=5):(Rr=r,Ft===0&&Zn(_b)),Rr===r?(p=Nr,Nr=r):(ct=p,Ft++,dt=Oe(),Ft--,dt===r?ct=void 0:(p=ct,ct=r),ct===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct]),Nr})())!==r&&(ns=F,ar={type:"bool",value:!1}),F=ar),F}function ba(){var F,ar,Nr,Rr,ct,dt;if(F=p,t.substr(p,1).toLowerCase()==="r"?(ar=t.charAt(p),p++):(ar=r,Ft===0&&Zn(Zv)),ar===r&&(ar=null),ar!==r)if(A()!==r){if(Nr=p,t.charCodeAt(p)===39?(Rr="'",p++):(Rr=r,Ft===0&&Zn(ku)),Rr!==r){for(ct=[],dt=Ht();dt!==r;)ct.push(dt),dt=Ht();ct===r?(p=Nr,Nr=r):(t.charCodeAt(p)===39?(dt="'",p++):(dt=r,Ft===0&&Zn(ku)),dt===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct,dt])}else p=Nr,Nr=r;Nr===r?(p=F,F=r):(ns=F,F=ar={type:ar?"regex_string":"single_quote_string",value:Nr[1].join(""),...Ws()})}else p=F,F=r;else p=F,F=r;if(F===r)if(F=p,t.substr(p,1).toLowerCase()==="r"?(ar=t.charAt(p),p++):(ar=r,Ft===0&&Zn(Zv)),ar===r&&(ar=null),ar!==r)if(A()!==r){if(Nr=p,t.charCodeAt(p)===34?(Rr='"',p++):(Rr=r,Ft===0&&Zn(_n)),Rr!==r){for(ct=[],dt=bu();dt!==r;)ct.push(dt),dt=bu();ct===r?(p=Nr,Nr=r):(t.charCodeAt(p)===34?(dt='"',p++):(dt=r,Ft===0&&Zn(_n)),dt===r?(p=Nr,Nr=r):Nr=Rr=[Rr,ct,dt])}else p=Nr,Nr=r;Nr===r?(p=F,F=r):(ns=F,F=ar=(function(Yt,vn){return{type:Yt?"regex_string":"string",value:vn[1].join(""),...Ws()}})(ar,Nr))}else p=F,F=r;else p=F,F=r;return F}function bu(){var F;return Ib.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(Dv)),F===r&&(F=rt()),F}function Ht(){var F;return vp.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(Jv)),F===r&&(F=rt()),F}function rt(){var F,ar,Nr,Rr,ct,dt,Yt,vn,fn,gn;return F=p,t.substr(p,2)==="\\'"?(ar="\\'",p+=2):(ar=r,Ft===0&&Zn(Xb)),ar!==r&&(ns=F,ar="\\'"),(F=ar)===r&&(F=p,t.substr(p,2)==='\\"'?(ar='\\"',p+=2):(ar=r,Ft===0&&Zn(pp)),ar!==r&&(ns=F,ar='\\"'),(F=ar)===r&&(F=p,t.substr(p,2)==="\\\\"?(ar="\\\\",p+=2):(ar=r,Ft===0&&Zn(xp)),ar!==r&&(ns=F,ar="\\\\"),(F=ar)===r&&(F=p,t.substr(p,2)==="\\/"?(ar="\\/",p+=2):(ar=r,Ft===0&&Zn(cv)),ar!==r&&(ns=F,ar="\\/"),(F=ar)===r&&(F=p,t.substr(p,2)==="\\b"?(ar="\\b",p+=2):(ar=r,Ft===0&&Zn(Up)),ar!==r&&(ns=F,ar="\b"),(F=ar)===r&&(F=p,t.substr(p,2)==="\\f"?(ar="\\f",p+=2):(ar=r,Ft===0&&Zn(Xp)),ar!==r&&(ns=F,ar="\f"),(F=ar)===r&&(F=p,t.substr(p,2)==="\\n"?(ar="\\n",p+=2):(ar=r,Ft===0&&Zn(Qv)),ar!==r&&(ns=F,ar=` +`),(F=ar)===r&&(F=p,t.substr(p,2)==="\\r"?(ar="\\r",p+=2):(ar=r,Ft===0&&Zn(Vp)),ar!==r&&(ns=F,ar="\r"),(F=ar)===r&&(F=p,t.substr(p,2)==="\\t"?(ar="\\t",p+=2):(ar=r,Ft===0&&Zn(dp)),ar!==r&&(ns=F,ar=" "),(F=ar)===r&&(F=p,t.substr(p,2)==="\\u"?(ar="\\u",p+=2):(ar=r,Ft===0&&Zn(Kp)),ar!==r&&(Nr=Ln())!==r&&(Rr=Ln())!==r&&(ct=Ln())!==r&&(dt=Ln())!==r?(ns=F,Yt=Nr,vn=Rr,fn=ct,gn=dt,F=ar=String.fromCharCode(parseInt("0x"+Yt+vn+fn+gn))):(p=F,F=r),F===r&&(F=p,t.charCodeAt(p)===92?(ar="\\",p++):(ar=r,Ft===0&&Zn(ld)),ar!==r&&(ns=F,ar="\\"),(F=ar)===r&&(F=p,t.substr(p,2)==="''"?(ar="''",p+=2):(ar=r,Ft===0&&Zn(Lp)),ar!==r&&(ns=F,ar="''"),(F=ar)===r&&(F=p,t.substr(p,2)==='""'?(ar='""',p+=2):(ar=r,Ft===0&&Zn(Cp)),ar!==r&&(ns=F,ar='""'),(F=ar)===r&&(F=p,t.substr(p,2)==="``"?(ar="``",p+=2):(ar=r,Ft===0&&Zn(wp)),ar!==r&&(ns=F,ar="``"),F=ar))))))))))))),F}function k(){var F,ar,Nr;return F=p,(ar=Lr())!==r&&(ns=F,ar=(Nr=ar)&&Nr.type==="bigint"?Nr:{type:"number",value:Nr}),F=ar}function Lr(){var F,ar,Nr,Rr;return F=p,(ar=Or())!==r&&(Nr=Fr())!==r&&(Rr=dr())!==r?(ns=F,F=ar={type:"bigint",value:ar+Nr+Rr}):(p=F,F=r),F===r&&(F=p,(ar=Or())!==r&&(Nr=Fr())!==r?(ns=F,F=ar=(function(ct,dt){let Yt=ct+dt;return Is(ct)?{type:"bigint",value:Yt}:parseFloat(Yt).toFixed(dt.length-1)})(ar,Nr)):(p=F,F=r),F===r&&(F=p,(ar=Or())!==r&&(Nr=dr())!==r?(ns=F,F=ar=(function(ct,dt){return{type:"bigint",value:ct+dt}})(ar,Nr)):(p=F,F=r),F===r&&(F=p,(ar=Or())!==r&&(ns=F,ar=(function(ct){return Is(ct)?{type:"bigint",value:ct}:parseFloat(ct)})(ar)),F=ar))),F}function Or(){var F,ar,Nr;return(F=It())===r&&(F=Dt())===r&&(F=p,t.charCodeAt(p)===45?(ar="-",p++):(ar=r,Ft===0&&Zn(Wb)),ar===r&&(t.charCodeAt(p)===43?(ar="+",p++):(ar=r,Ft===0&&Zn(Mf))),ar!==r&&(Nr=It())!==r?(ns=F,F=ar+=Nr):(p=F,F=r),F===r&&(F=p,t.charCodeAt(p)===45?(ar="-",p++):(ar=r,Ft===0&&Zn(Wb)),ar===r&&(t.charCodeAt(p)===43?(ar="+",p++):(ar=r,Ft===0&&Zn(Mf))),ar!==r&&(Nr=Dt())!==r?(ns=F,F=ar=(function(Rr,ct){return Rr+ct})(ar,Nr)):(p=F,F=r))),F}function Fr(){var F,ar,Nr;return F=p,t.charCodeAt(p)===46?(ar=".",p++):(ar=r,Ft===0&&Zn(wc)),ar!==r&&(Nr=It())!==r?(ns=F,F=ar="."+Nr):(p=F,F=r),F}function dr(){var F,ar,Nr;return F=p,(ar=(function(){var Rr=p,ct,dt;kp.test(t.charAt(p))?(ct=t.charAt(p),p++):(ct=r,Ft===0&&Zn(Mp)),ct===r?(p=Rr,Rr=r):(rp.test(t.charAt(p))?(dt=t.charAt(p),p++):(dt=r,Ft===0&&Zn(yp)),dt===r&&(dt=null),dt===r?(p=Rr,Rr=r):(ns=Rr,Rr=ct+=(Yt=dt)===null?"":Yt));var Yt;return Rr})())!==r&&(Nr=It())!==r?(ns=F,F=ar+=Nr):(p=F,F=r),F}function It(){var F,ar,Nr;if(F=p,ar=[],(Nr=Dt())!==r)for(;Nr!==r;)ar.push(Nr),Nr=Dt();else ar=r;return ar!==r&&(ns=F,ar=ar.join("")),F=ar}function Dt(){var F;return v0.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(ac)),F}function Ln(){var F;return Rb.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(Ff)),F}function Un(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="default"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(jl)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function u(){var F,ar,Nr,Rr;return F=p,t.substr(p,2).toLowerCase()==="to"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(Qf)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function yt(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="drop"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Ap)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="DROP")),F}function Y(){var F,ar,Nr,Rr;return F=p,t.substr(p,9).toLowerCase()==="partition"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(Pv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="PARTITION")),F}function Q(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="into"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Gp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Tr(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="from"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Fp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function P(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="set"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(Fi)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="SET")),F}function hr(){var F,ar,Nr,Rr;return F=p,t.substr(p,2).toLowerCase()==="as"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(jb)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function ht(){var F,ar,Nr,Rr;return F=p,t.substr(p,5).toLowerCase()==="table"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(zp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="TABLE")),F}function e(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="tables"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Zp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="TABLES")),F}function Pr(){var F,ar,Nr,Rr;return F=p,t.substr(p,2).toLowerCase()==="on"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(Gv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Mr(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="join"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Sl)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function kn(){var F,ar,Nr,Rr;return F=p,t.substr(p,5).toLowerCase()==="outer"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(Ol)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Yn(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="over"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(np)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function K(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="values"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Ec)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function kt(){var F,ar,Nr,Rr;return F=p,t.substr(p,5).toLowerCase()==="using"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(Jp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Js(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="with"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn($c)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function Ve(){var F,ar,Nr,Rr;return F=p,t.substr(p,2).toLowerCase()==="by"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(ri)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function co(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="having"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Tp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function _t(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="ordinal"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(Ip)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="ORDINAL")),F}function Eo(){var F,ar,Nr,Rr;return F=p,t.substr(p,12).toLowerCase()==="safe_ordinal"?(ar=t.substr(p,12),p+=12):(ar=r,Ft===0&&Zn(td)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="SAFE_ORDINAL")),F}function ao(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="offset"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(Bp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="OFFSET")),F}function zo(){var F,ar,Nr,Rr;return F=p,t.substr(p,11).toLowerCase()==="safe_offset"?(ar=t.substr(p,11),p+=11):(ar=r,Ft===0&&Zn(Hp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="SAFE_OFFSET")),F}function no(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="desc"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(sd)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="DESC")),F}function Ke(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="all"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(ed)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="ALL")),F}function yo(){var F,ar,Nr,Rr;return F=p,t.substr(p,8).toLowerCase()==="distinct"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(Yp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="DISTINCT")),F}function lo(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="between"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(od)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="BETWEEN")),F}function Co(){var F,ar,Nr,Rr;return F=p,t.substr(p,2).toLowerCase()==="in"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(ud)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="IN")),F}function Au(){var F,ar,Nr,Rr;return F=p,t.substr(p,2).toLowerCase()==="is"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(Rp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="IS")),F}function la(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="like"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(O)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="LIKE")),F}function da(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="exists"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(ps)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="EXISTS")),F}function Ia(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="not"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(sv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="NOT")),F}function Wt(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="and"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(Bv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="AND")),F}function ta(){var F,ar,Nr,Rr;return F=p,t.substr(p,2).toLowerCase()==="or"?(ar=t.substr(p,2),p+=2):(ar=r,Ft===0&&Zn(Lf)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="OR")),F}function li(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="max"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(on)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="MAX")),F}function ea(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="min"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(zs)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="MIN")),F}function Ml(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="extract"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(ep)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="EXTRACT")),F}function Le(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="case"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Np)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function rl(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="end"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(_)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):F=ar=[ar,Nr]),F}function xu(){var F,ar,Nr,Rr;return F=p,t.substr(p,5).toLowerCase()==="array"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(Cf)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="ARRAY")),F}function si(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="decimal"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(op)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="DECIMAL")),F}function Ni(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="integer"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(Yv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="INTEGER")),F}function tl(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="struct"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(zb)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="STRUCT")),F}function Dl(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="date"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(lp)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="DATE")),F}function $a(){var F,ar,Nr,Rr;return F=p,t.substr(p,8).toLowerCase()==="datetime"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(qv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="DATETIME")),F}function bc(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="rows"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(Bb)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="ROWS")),F}function Wu(){var F,ar,Nr,Rr;return F=p,t.substr(p,4).toLowerCase()==="time"?(ar=t.substr(p,4),p+=4):(ar=r,Ft===0&&Zn(uc)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="TIME")),F}function Zo(){var F,ar,Nr,Rr;return F=p,t.substr(p,9).toLowerCase()==="timestamp"?(ar=t.substr(p,9),p+=9):(ar=r,Ft===0&&Zn(Cv)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="TIMESTAMP")),F}function wi(){var F,ar,Nr,Rr;return F=p,t.substr(p,8).toLowerCase()==="interval"?(ar=t.substr(p,8),p+=8):(ar=r,Ft===0&&Zn(I)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="INTERVAL")),F}function j(){var F,ar,Nr,Rr;return F=p,t.substr(p,17).toLowerCase()==="current_timestamp"?(ar=t.substr(p,17),p+=17):(ar=r,Ft===0&&Zn(Sb)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="CURRENT_TIMESTAMP")),F}function ur(){var F,ar,Nr,Rr;return F=p,t.substr(p,6).toLowerCase()==="column"?(ar=t.substr(p,6),p+=6):(ar=r,Ft===0&&Zn(el)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="COLUMN")),F}function Ir(){var F,ar,Nr,Rr;return F=p,t.substr(p,5).toLowerCase()==="index"?(ar=t.substr(p,5),p+=5):(ar=r,Ft===0&&Zn(Ti)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="INDEX")),F}function s(){var F,ar,Nr,Rr;return F=p,t.substr(p,3).toLowerCase()==="key"?(ar=t.substr(p,3),p+=3):(ar=r,Ft===0&&Zn(gl)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="KEY")),F}function er(){var F,ar,Nr,Rr;return F=p,t.substr(p,7).toLowerCase()==="comment"?(ar=t.substr(p,7),p+=7):(ar=r,Ft===0&&Zn(yf)),ar===r?(p=F,F=r):(Nr=p,Ft++,Rr=Oe(),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr===r?(p=F,F=r):(ns=F,F=ar="COMMENT")),F}function Lt(){var F;return t.charCodeAt(p)===46?(F=".",p++):(F=r,Ft===0&&Zn(wc)),F}function mt(){var F;return t.charCodeAt(p)===44?(F=",",p++):(F=r,Ft===0&&Zn(p0)),F}function bn(){var F;return t.charCodeAt(p)===42?(F="*",p++):(F=r,Ft===0&&Zn(Df)),F}function ir(){var F;return t.charCodeAt(p)===40?(F="(",p++):(F=r,Ft===0&&Zn(o0)),F}function Zr(){var F;return t.charCodeAt(p)===41?(F=")",p++):(F=r,Ft===0&&Zn(xi)),F}function rs(){var F;return t.charCodeAt(p)===60?(F="<",p++):(F=r,Ft===0&&Zn(Yl)),F}function vs(){var F;return t.charCodeAt(p)===62?(F=">",p++):(F=r,Ft===0&&Zn(iv)),F}function Ds(){var F;return t.charCodeAt(p)===91?(F="[",p++):(F=r,Ft===0&&Zn(up)),F}function ut(){var F;return t.charCodeAt(p)===93?(F="]",p++):(F=r,Ft===0&&Zn(xb)),F}function De(){var F;return t.charCodeAt(p)===59?(F=";",p++):(F=r,Ft===0&&Zn(Zb)),F}function Qo(){var F;return(F=(function(){var ar;return t.substr(p,2)==="||"?(ar="||",p+=2):(ar=r,Ft===0&&Zn(yv)),ar})())===r&&(F=(function(){var ar;return t.substr(p,2)==="&&"?(ar="&&",p+=2):(ar=r,Ft===0&&Zn(Jb)),ar})()),F}function A(){var F,ar;for(F=[],(ar=qr())===r&&(ar=yr());ar!==r;)F.push(ar),(ar=qr())===r&&(ar=yr());return F}function nr(){var F,ar;if(F=[],(ar=qr())===r&&(ar=yr()),ar!==r)for(;ar!==r;)F.push(ar),(ar=qr())===r&&(ar=yr());else F=r;return F}function yr(){var F;return(F=(function(){var ar=p,Nr,Rr,ct,dt,Yt;if(t.substr(p,2)==="/*"?(Nr="/*",p+=2):(Nr=r,Ft===0&&Zn(hv)),Nr!==r){for(Rr=[],ct=p,dt=p,Ft++,t.substr(p,2)==="*/"?(Yt="*/",p+=2):(Yt=r,Ft===0&&Zn(h)),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt!==r&&(Yt=Ar())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r);ct!==r;)Rr.push(ct),ct=p,dt=p,Ft++,t.substr(p,2)==="*/"?(Yt="*/",p+=2):(Yt=r,Ft===0&&Zn(h)),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt!==r&&(Yt=Ar())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r);Rr===r?(p=ar,ar=r):(t.substr(p,2)==="*/"?(ct="*/",p+=2):(ct=r,Ft===0&&Zn(h)),ct===r?(p=ar,ar=r):ar=Nr=[Nr,Rr,ct])}else p=ar,ar=r;return ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct,dt,Yt;if(t.substr(p,2)==="--"?(Nr="--",p+=2):(Nr=r,Ft===0&&Zn(ss)),Nr!==r){for(Rr=[],ct=p,dt=p,Ft++,Yt=bt(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt!==r&&(Yt=Ar())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r);ct!==r;)Rr.push(ct),ct=p,dt=p,Ft++,Yt=bt(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt!==r&&(Yt=Ar())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r);Rr===r?(p=ar,ar=r):ar=Nr=[Nr,Rr]}else p=ar,ar=r;return ar})())===r&&(F=(function(){var ar=p,Nr,Rr,ct,dt,Yt;if(t.charCodeAt(p)===35?(Nr="#",p++):(Nr=r,Ft===0&&Zn(Xl)),Nr!==r){for(Rr=[],ct=p,dt=p,Ft++,Yt=bt(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt!==r&&(Yt=Ar())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r);ct!==r;)Rr.push(ct),ct=p,dt=p,Ft++,Yt=bt(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt!==r&&(Yt=Ar())!==r?ct=dt=[dt,Yt]:(p=ct,ct=r);Rr===r?(p=ar,ar=r):ar=Nr=[Nr,Rr]}else p=ar,ar=r;return ar})()),F}function Ar(){var F;return t.length>p?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(d0)),F}function qr(){var F;return Bf.test(t.charAt(p))?(F=t.charAt(p),p++):(F=r,Ft===0&&Zn(jt)),F}function bt(){var F,ar;if((F=(function(){var Nr=p,Rr;return Ft++,t.length>p?(Rr=t.charAt(p),p++):(Rr=r,Ft===0&&Zn(d0)),Ft--,Rr===r?Nr=void 0:(p=Nr,Nr=r),Nr})())===r)if(F=[],gb.test(t.charAt(p))?(ar=t.charAt(p),p++):(ar=r,Ft===0&&Zn(O0)),ar!==r)for(;ar!==r;)F.push(ar),gb.test(t.charAt(p))?(ar=t.charAt(p),p++):(ar=r,Ft===0&&Zn(O0));else F=r;return F}function pr(){var F,ar,Nr,Rr,ct,dt,Yt,vn;if(F=p,(ar=xt())!==r){for(Nr=[],Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=xt())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Rr!==r;)Nr.push(Rr),Rr=p,(ct=A())!==r&&(dt=mt())!==r&&(Yt=A())!==r&&(vn=xt())!==r?Rr=ct=[ct,dt,Yt,vn]:(p=Rr,Rr=r);Nr===r?(p=F,F=r):(ns=F,F=ar=Ae(ar,Nr))}else p=F,F=r;return F}function xt(){var F,ar,Nr,Rr;return F=p,ar=p,(Nr=ln())===r?(p=ar,ar=r):(ns=p,(Rr=(Rr=ks[Nr.toUpperCase()]===!0)?r:void 0)===r?(p=ar,ar=r):(ns=ar,ar=Nr=Nr)),ar===r&&(ar=null),ar!==r&&(Nr=A())!==r&&(Rr=cn())!==r?(ns=F,F=ar=(function(ct,dt){return{field_name:ct,field_type:dt}})(ar,Rr)):(p=F,F=r),F}function cn(){var F;return(F=$n())===r&&(F=mn())===r&&(F=(function(){var ar,Nr,Rr,ct,dt,Yt,vn,fn,gn,Vn;if(ar=p,(Nr=(function(){var Jn,ms,Qs,$;return Jn=p,t.substr(p,6).toLowerCase()==="string"?(ms=t.substr(p,6),p+=6):(ms=r,Ft===0&&Zn(Wv)),ms===r?(p=Jn,Jn=r):(Qs=p,Ft++,$=Oe(),Ft--,$===r?Qs=void 0:(p=Qs,Qs=r),Qs===r?(p=Jn,Jn=r):(ns=Jn,Jn=ms="STRING")),Jn})())!==r){if(Rr=[],ct=p,(dt=A())!==r)if((Yt=ir())!==r)if((vn=A())!==r){if(fn=[],v0.test(t.charAt(p))?(gn=t.charAt(p),p++):(gn=r,Ft===0&&Zn(ac)),gn!==r)for(;gn!==r;)fn.push(gn),v0.test(t.charAt(p))?(gn=t.charAt(p),p++):(gn=r,Ft===0&&Zn(ac));else fn=r;fn!==r&&(gn=A())!==r&&(Vn=Zr())!==r?ct=dt=[dt,Yt,vn,fn,gn,Vn]:(p=ct,ct=r)}else p=ct,ct=r;else p=ct,ct=r;else p=ct,ct=r;for(;ct!==r;)if(Rr.push(ct),ct=p,(dt=A())!==r)if((Yt=ir())!==r)if((vn=A())!==r){if(fn=[],v0.test(t.charAt(p))?(gn=t.charAt(p),p++):(gn=r,Ft===0&&Zn(ac)),gn!==r)for(;gn!==r;)fn.push(gn),v0.test(t.charAt(p))?(gn=t.charAt(p),p++):(gn=r,Ft===0&&Zn(ac));else fn=r;fn!==r&&(gn=A())!==r&&(Vn=Zr())!==r?ct=dt=[dt,Yt,vn,fn,gn,Vn]:(p=ct,ct=r)}else p=ct,ct=r;else p=ct,ct=r;else p=ct,ct=r;Rr===r?(p=ar,ar=r):(ns=ar,Nr=(function(Jn,ms){let Qs={dataType:Jn};return ms&&ms.length!==0?{...Qs,length:parseInt(ms[3].join(""),10),parentheses:!0}:Qs})(Nr,Rr),ar=Nr)}else p=ar,ar=r;return ar})())===r&&(F=(function(){var ar=p,Nr;return(Nr=(function(){var Rr,ct,dt,Yt;return Rr=p,t.substr(p,7).toLowerCase()==="numeric"?(ct=t.substr(p,7),p+=7):(ct=r,Ft===0&&Zn(ic)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):(ns=Rr,Rr=ct="NUMERIC")),Rr})())===r&&(Nr=(function(){var Rr,ct,dt,Yt;return Rr=p,t.substr(p,5).toLowerCase()==="int64"?(ct=t.substr(p,5),p+=5):(ct=r,Ft===0&&Zn(_p)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):(ns=Rr,Rr=ct="INT64")),Rr})())===r&&(Nr=(function(){var Rr,ct,dt,Yt;return Rr=p,t.substr(p,7).toLowerCase()==="float64"?(ct=t.substr(p,7),p+=7):(ct=r,Ft===0&&Zn(wf)),ct===r?(p=Rr,Rr=r):(dt=p,Ft++,Yt=Oe(),Ft--,Yt===r?dt=void 0:(p=dt,dt=r),dt===r?(p=Rr,Rr=r):(ns=Rr,Rr=ct="FLOAT64")),Rr})())===r&&(Nr=Ni()),Nr!==r&&(ns=ar,Nr=Us(Nr)),ar=Nr})())===r&&(F=(function(){var ar=p,Nr,Rr,ct;if((Nr=Dl())===r&&(Nr=$a())===r&&(Nr=Wu())===r&&(Nr=Zo()),Nr!==r)if(A()!==r)if(ir()!==r)if(A()!==r){if(Rr=[],v0.test(t.charAt(p))?(ct=t.charAt(p),p++):(ct=r,Ft===0&&Zn(ac)),ct!==r)for(;ct!==r;)Rr.push(ct),v0.test(t.charAt(p))?(ct=t.charAt(p),p++):(ct=r,Ft===0&&Zn(ac));else Rr=r;Rr!==r&&(ct=A())!==r&&Zr()!==r?(ns=ar,Nr={dataType:Nr,length:parseInt(Rr.join(""),10),parentheses:!0},ar=Nr):(p=ar,ar=r)}else p=ar,ar=r;else p=ar,ar=r;else p=ar,ar=r;else p=ar,ar=r;return ar===r&&(ar=p,(Nr=Dl())===r&&(Nr=$a())===r&&(Nr=Wu())===r&&(Nr=Zo()),Nr!==r&&(ns=ar,Nr=Us(Nr)),ar=Nr),ar})())===r&&(F=(function(){var ar,Nr,Rr,ct,dt,Yt,vn,fn;if(ar=p,Nr=p,(Rr=(function(){var gn,Vn,Jn,ms;return gn=p,t.substr(p,5).toLowerCase()==="bytes"?(Vn=t.substr(p,5),p+=5):(Vn=r,Ft===0&&Zn(dv)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="BYTES")),gn})())!==r)if((ct=ir())!==r)if((dt=A())!==r){if(Yt=[],v0.test(t.charAt(p))?(vn=t.charAt(p),p++):(vn=r,Ft===0&&Zn(ac)),vn!==r)for(;vn!==r;)Yt.push(vn),v0.test(t.charAt(p))?(vn=t.charAt(p),p++):(vn=r,Ft===0&&Zn(ac));else Yt=r;Yt===r&&(t.substr(p,3)==="MAX"?(Yt="MAX",p+=3):(Yt=r,Ft===0&&Zn(ol)),Yt===r&&(t.substr(p,3)==="max"?(Yt="max",p+=3):(Yt=r,Ft===0&&Zn(sb)))),Yt!==r&&(vn=A())!==r&&(fn=Zr())!==r?Nr=Rr=[Rr,ct,dt,Yt,vn,fn]:(p=Nr,Nr=r)}else p=Nr,Nr=r;else p=Nr,Nr=r;else p=Nr,Nr=r;return Nr===r&&(Nr=(function(){var gn,Vn,Jn,ms;return gn=p,t.substr(p,4).toLowerCase()==="bool"?(Vn=t.substr(p,4),p+=4):(Vn=r,Ft===0&&Zn(Qt)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="BOOL")),gn})())===r&&(Nr=(function(){var gn,Vn,Jn,ms;return gn=p,t.substr(p,9).toLowerCase()==="geography"?(Vn=t.substr(p,9),p+=9):(Vn=r,Ft===0&&Zn(Xs)),Vn===r?(p=gn,gn=r):(Jn=p,Ft++,ms=Oe(),Ft--,ms===r?Jn=void 0:(p=Jn,Jn=r),Jn===r?(p=gn,gn=r):(ns=gn,gn=Vn="GEOGRAPHY")),gn})()),Nr!==r&&(ns=ar,Nr=Us(Nr)),ar=Nr})()),F}function mn(){var F,ar,Nr;return F=p,(ar=xu())!==r&&A()!==r&&rs()!==r&&A()!==r&&(Nr=pr())!==r&&A()!==r&&vs()!==r?(ns=F,F=ar=eb(ar,Nr)):(p=F,F=r),F}function $n(){var F,ar,Nr;return F=p,(ar=tl())!==r&&A()!==r&&rs()!==r&&A()!==r&&(Nr=pr())!==r&&A()!==r&&vs()!==r?(ns=F,F=ar=eb(ar,Nr)):(p=F,F=r),F}let bs={ARRAY:!0,ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CROSS:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,EXCEPT:!0,FALSE:!0,FROM:!0,FULL:!0,FOR:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTERSECT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,KEY:!1,LEFT:!0,LIKE:!0,LIMIT:!0,LOW_PRIORITY:!0,NOT:!0,NULL:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,PARTITION:!0,PIVOT:!0,RECURSIVE:!0,RENAME:!0,READ:!0,RIGHT:!1,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,VALUES:!0,WINDOW:!0,WITH:!0,WHEN:!0,WHERE:!0,WRITE:!0,GLOBAL:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0,UNNEST:!0},ks={BOOL:!0,BYTE:!0,DATE:!0,DATETIME:!0,FLOAT64:!0,INT64:!0,NUMERIC:!0,STRING:!0,TIME:!0,TIMESTAMP:!0,ARRAY:!0,STRUCT:!0};function Ws(){return Ce.includeLocations?{loc:x0(ns,p)}:{}}function fe(F,ar){return{type:"unary_expr",operator:F,expr:ar}}function ne(F,ar,Nr){return{type:"binary_expr",operator:F,left:ar,right:Nr,...Ws()}}function Is(F){let ar=To(9007199254740991);return!(To(F)<ar)}function me(F,ar,Nr=3){let Rr=[F];for(let ct=0;ct<ar.length;ct++)delete ar[ct][Nr].tableList,delete ar[ct][Nr].columnList,Rr.push(ar[ct][Nr]);return Rr}function Xe(F,ar){let Nr=F;for(let Rr=0;Rr<ar.length;Rr++)Nr=ne(ar[Rr][1],Nr,ar[Rr][3]);return Nr}function eo(F){return Na[F]||F||null}function so(F){let ar=new Set;for(let Nr of F.keys()){let Rr=Nr.split("::");if(!Rr){ar.add(Nr);break}Rr&&Rr[1]&&(Rr[1]=eo(Rr[1])),ar.add(Rr.join("::"))}return Array.from(ar)}function $o(F){switch(F.type){case"double_quote_string":return'"';case"single_quote_string":return"'";case"backticks_quote_string":return"`";default:return""}}let Mu=[],su=new Set,Po=new Set,Na={};if((Ie=ge())!==r&&p===t.length)return Ie;throw Ie!==r&&p<t.length&&Zn({type:"end"}),kb(Ub,Hc<t.length?t.charAt(Hc):null,Hc<t.length?x0(Hc,Hc+1):x0(Hc,Hc))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:Yv},ge=Yv,Dn=function(Y,Q){return Fr(Y,Q,1)},Pn=Xs("IF",!0),Ae=function(Y,Q){return Fr(Y,Q)},ou=Xs("AUTO_INCREMENT",!0),Hs=Xs("UNIQUE",!0),Uo=Xs("KEY",!0),Ps=Xs("PRIMARY",!0),pe=Xs("COLUMN_FORMAT",!0),_o=Xs("FIXED",!0),Gi=Xs("DYNAMIC",!0),mi=Xs("DEFAULT",!0),Fi=Xs("STORAGE",!0),T0=Xs("DISK",!0),dl=Xs("MEMORY",!0),Gl=Xs("ALGORITHM",!0),Fl=Xs("INSTANT",!0),nc=Xs("INPLACE",!0),xc=Xs("COPY",!0),I0=Xs("LOCK",!0),ji=Xs("NONE",!0),af=Xs("SHARED",!0),qf=Xs("EXCLUSIVE",!0),Uc=Xs("CHECK",!0),wc=Xs("NOCHECK",!0),Ll=Xs("PRIMARY KEY",!0),jl=Xs("NOT",!0),Oi=Xs("FOR",!0),bb=Xs("REPLICATION",!0),Vi=Xs("FOREIGN KEY",!0),zc=Xs("MATCH FULL",!0),kc=Xs("MATCH PARTIAL",!0),vb=Xs("MATCH SIMPLE",!0),Zc=Xs("RESTRICT",!0),nl=Xs("CASCADE",!0),Xf=Xs("SET NULL",!0),gl=Xs("NO ACTION",!0),lf=Xs("SET DEFAULT",!0),Jc=Xs("CHARACTER",!0),Qc=Xs("SET",!0),gv=Xs("CHARSET",!0),g0=Xs("COLLATE",!0),Ki=Xs("AVG_ROW_LENGTH",!0),Pb=Xs("KEY_BLOCK_SIZE",!0),ei=Xs("MAX_ROWS",!0),pb=Xs("MIN_ROWS",!0),j0=Xs("STATS_SAMPLE_PAGES",!0),B0=Xs("CONNECTION",!0),Mc=Xs("COMPRESSION",!0),Cl=Xs("'",!1),$u=Xs("ZLIB",!0),r0=Xs("LZ4",!0),zn=Xs("ENGINE",!0),Ss=Xs("READ",!0),te=Xs("LOCAL",!0),ce=Xs("LOW_PRIORITY",!0),He=Xs("WRITE",!0),Ue=function(Y,Q){return Fr(Y,Q)},Qe=Xs("(",!1),uo=Xs(")",!1),Ao=Xs("BTREE",!0),Pu=Xs("HASH",!0),Ca=Xs("WITH",!0),ku=Xs("PARSER",!0),ca=Xs("VISIBLE",!0),na=Xs("INVISIBLE",!0),Qa=function(Y,Q){return Q.unshift(Y),Q.forEach(Tr=>{let{table:P,as:hr}=Tr;yt[P]=P,hr&&(yt[hr]=P),(function(ht){let e=Dt(ht);ht.clear(),e.forEach(Pr=>ht.add(Pr))})(u)}),Q},cf=Xs("FIRST",!0),ri=Xs("LAST",!0),t0=Xs("NEXT",!0),n0=Xs("ROWS",!0),Dc=Xs("ROW",!0),s0=Xs("ONLY",!0),Rv=Xs("CS",!0),nv=Xs("UR",!0),sv=Xs("RS",!0),ev=Xs("RR",!0),yc=Xs("=",!1),$c=Xs("DUPLICATE",!0),Sf=function(Y,Q){return dr(Y,Q)},R0=Xs("!",!1),Rl=function(Y){return Y[0]+" "+Y[2]},ff=Xs(">=",!1),Vf=Xs(">",!1),Vv=Xs("<=",!1),db=Xs("<>",!1),Of=Xs("<",!1),Pc=Xs("!=",!1),H0=Xs("+",!1),bf=Xs("-",!1),Lb=Xs("*",!1),Fa=Xs("/",!1),Kf=Xs("%",!1),Nv=Xs("~",!1),Gb=Xs("?|",!1),hc=Xs("?&",!1),Bl=Xs("?",!1),sl=Xs("#-",!1),sc=Xs("#>>",!1),Y0=Xs("#>",!1),N0=Xs("@>",!1),ov=Xs("<@",!1),Fb=function(Y){return Ht[Y.toUpperCase()]===!0},e0=Xs('"',!1),Cb=/^[^"]/,_0=ic(['"'],!0,!1),zf=/^[^']/,je=ic(["'"],!0,!1),o0=Xs("`",!1),xi=/^[^`]/,xf=ic(["`"],!0,!1),Zf=function(Y,Q){return Y+Q.join("")},W0=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,jb=ic([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Uf=/^[A-Za-z0-9_$\u4E00-\u9FA5\xC0-\u017F]/,u0=ic([["A","Z"],["a","z"],["0","9"],"_","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),wb=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,Ui=ic([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),uv=Xs(":",!1),yb=function(Y,Q){return{type:Y.toLowerCase(),value:Q[1].join("")}},hb=/^[^"\\\0-\x1F\x7F]/,Kv=ic(['"',"\\",["\0",""],"\x7F"],!0,!1),Gc=/^[^'\\]/,_v=ic(["'","\\"],!0,!1),kf=Xs("\\'",!1),vf=Xs('\\"',!1),ki=Xs("\\\\",!1),Hl=Xs("\\/",!1),Eb=Xs("\\b",!1),Bb=Xs("\\f",!1),pa=Xs("\\n",!1),wl=Xs("\\r",!1),Nl=Xs("\\t",!1),Sv=Xs("\\u",!1),Hb=Xs("\\",!1),Jf=Xs("''",!1),pf=Xs('""',!1),Yb=Xs("``",!1),av=/^[\n\r]/,iv=ic([` +`,"\r"],!1,!1),a0=Xs(".",!1),_l=/^[0-9]/,Yl=ic([["0","9"]],!1,!1),Ab=/^[0-9a-fA-F]/,Mf=ic([["0","9"],["a","f"],["A","F"]],!1,!1),Wb=/^[eE]/,Df=ic(["e","E"],!1,!1),mb=/^[+\-]/,i0=ic(["+","-"],!1,!1),ft=Xs("NULL",!0),tn=Xs("NOT NULL",!0),_n=Xs("TRUE",!0),En=Xs("TO",!0),Os=Xs("FALSE",!0),gs=Xs("DROP",!0),Ys=Xs("USE",!0),Te=Xs("ALTER",!0),ye=Xs("SELECT",!0),Be=Xs("UPDATE",!0),io=Xs("CREATE",!0),Ro=Xs("TEMPORARY",!0),So=Xs("DELETE",!0),uu=Xs("INSERT",!0),ko=Xs("RECURSIVE",!0),yu=Xs("REPLACE",!0),au=Xs("RENAME",!0),Iu=Xs("IGNORE",!0),mu=Xs("PARTITION",!0),Ju=Xs("INTO",!0),ua=Xs("FROM",!0),Sa=Xs("UNLOCK",!0),ma=Xs("AS",!0),Bi=Xs("TABLE",!0),sa=Xs("TABLES",!0),di=Xs("DATABASE",!0),Hi=Xs("SCHEMA",!0),S0=Xs("ON",!0),l0=Xs("LEFT",!0),Ov=Xs("RIGHT",!0),lv=Xs("FULL",!0),fi=Xs("INNER",!0),Wl=Xs("JOIN",!0),ec=Xs("OUTER",!0),Fc=Xs("OVER",!0),xv=Xs("UNION",!0),lp=Xs("MINUS",!0),Uv=Xs("INTERSECT",!0),$f=Xs("EXCEPT",!0),Tb=Xs("VALUES",!0),cp=Xs("USING",!0),c0=Xs("WHERE",!0),q0=Xs("GROUP",!0),df=Xs("BY",!0),f0=Xs("ORDER",!0),b0=Xs("HAVING",!0),Pf=Xs("FETCH",!0),Sp=Xs("OFFSET",!0),kv=Xs("ASC",!0),Op=Xs("DESC",!0),fp=Xs("ALL",!0),oc=Xs("DISTINCT",!0),uc=Xs("BETWEEN",!0),qb=Xs("IN",!0),Gf=Xs("IS",!0),zv=Xs("LIKE",!0),Mv=Xs("EXISTS",!0),Zv=Xs("AND",!0),bp=Xs("OR",!0),Ib=Xs("COUNT",!0),Dv=Xs("MAX",!0),vp=Xs("MIN",!0),Jv=Xs("SUM",!0),Xb=Xs("AVG",!0),pp=Xs("CALL",!0),xp=Xs("CASE",!0),cv=Xs("WHEN",!0),Up=Xs("THEN",!0),Xp=Xs("ELSE",!0),Qv=Xs("END",!0),Vp=Xs("CAST",!0),dp=Xs("CHAR",!0),Kp=Xs("VARCHAR",!0),ld=Xs("NUMERIC",!0),Lp=Xs("DECIMAL",!0),Cp=Xs("SIGNED",!0),wp=Xs("UNSIGNED",!0),gb=Xs("INT",!0),O0=Xs("ZEROFILL",!0),v0=Xs("INTEGER",!0),ac=Xs("JSON",!0),Rb=Xs("SMALLINT",!0),Ff=Xs("TINYINT",!0),kp=Xs("TINYTEXT",!0),Mp=Xs("TEXT",!0),rp=Xs("MEDIUMTEXT",!0),yp=Xs("LONGTEXT",!0),hp=Xs("BIGINT",!0),Ep=Xs("FLOAT",!0),Nb=Xs("DOUBLE",!0),Qf=Xs("DATE",!0),_b=Xs("DATETIME",!0),Ap=Xs("TIME",!0),Dp=Xs("TIMESTAMP",!0),$v=Xs("TRUNCATE",!0),$p=Xs("USER",!0),Pp=Xs("CURRENT_DATE",!0),Pv=Xs("INTERVAL",!0),Gp=Xs("YEAR",!0),Fp=Xs("MONTH",!0),mp=Xs("DAY",!0),zp=Xs("HOUR",!0),Zp=Xs("MINUTE",!0),Gv=Xs("SECOND",!0),tp=Xs("CURRENT_TIME",!0),Fv=Xs("CURRENT_TIMESTAMP",!0),yl=Xs("CURRENT_USER",!0),jc=Xs("SESSION_USER",!0),fv=Xs("SYSTEM_USER",!0),Sl=Xs("GLOBAL",!0),Ol=Xs("SESSION",!0),np=Xs("PERSIST",!0),bv=Xs("PERSIST_ONLY",!0),ql=Xs("@",!1),Ec=Xs("@@",!1),Jp=Xs("$",!1),Qp=Xs("return",!0),sp=Xs(":=",!1),jv=Xs("DUAL",!0),Tp=Xs("ADD",!0),rd=Xs("COLUMN",!0),jp=Xs("INDEX",!0),Ip=Xs("FULLTEXT",!0),td=Xs("SPATIAL",!0),nd=Xs("COMMENT",!0),Bp=Xs("CONSTRAINT",!0),Hp=Xs("REFERENCES",!0),gp=Xs("SQL_CALC_FOUND_ROWS",!0),sd=Xs("SQL_CACHE",!0),ed=Xs("SQL_NO_CACHE",!0),Yp=Xs("SQL_SMALL_RESULT",!0),od=Xs("SQL_BIG_RESULT",!0),ud=Xs("SQL_BUFFER_RESULT",!0),Rp=Xs(",",!1),O=Xs("[",!1),ps=Xs("]",!1),Bv=Xs(";",!1),Lf=Xs("->",!1),Hv=Xs("->>",!1),on=Xs("||",!1),zs=Xs("&&",!1),Bc=Xs("/*",!1),vv=Xs("*/",!1),ep=Xs("--",!1),Rs=Xs("#",!1),Np={type:"any"},Wp=/^[ \t\n\r]/,cd=ic([" "," ",` +`,"\r"],!1,!1),Vb=function(Y){return{dataType:Y}},_=0,Ls=0,pv=[{line:1,column:1}],Cf=0,dv=[],Qt=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function Xs(Y,Q){return{type:"literal",text:Y,ignoreCase:Q}}function ic(Y,Q,Tr){return{type:"class",parts:Y,inverted:Q,ignoreCase:Tr}}function op(Y){var Q,Tr=pv[Y];if(Tr)return Tr;for(Q=Y-1;!pv[Q];)Q--;for(Tr={line:(Tr=pv[Q]).line,column:Tr.column};Q<Y;)t.charCodeAt(Q)===10?(Tr.line++,Tr.column=1):Tr.column++,Q++;return pv[Y]=Tr,Tr}function Kb(Y,Q){var Tr=op(Y),P=op(Q);return{start:{offset:Y,line:Tr.line,column:Tr.column},end:{offset:Q,line:P.line,column:P.column}}}function ys(Y){_<Cf||(_>Cf&&(Cf=_,dv=[]),dv.push(Y))}function _p(Y,Q,Tr){return new go(go.buildMessage(Y,Q),Y,Q,Tr)}function Yv(){var Y,Q;return Y=_,ln()!==r&&(Q=(function(){var Tr,P,hr,ht,e,Pr,Mr,kn;if(Tr=_,(P=Wv())!==r){for(hr=[],ht=_,(e=ln())!==r&&(Pr=lb())!==r&&(Mr=ln())!==r&&(kn=Wv())!==r?ht=e=[e,Pr,Mr,kn]:(_=ht,ht=r);ht!==r;)hr.push(ht),ht=_,(e=ln())!==r&&(Pr=lb())!==r&&(Mr=ln())!==r&&(kn=Wv())!==r?ht=e=[e,Pr,Mr,kn]:(_=ht,ht=r);hr===r?(_=Tr,Tr=r):(Ls=Tr,P=(function(Yn,K){let kt=Yn&&Yn.ast||Yn,Js=K&&K.length&&K[0].length>=4?[kt]:kt;for(let Ve=0;Ve<K.length;Ve++)K[Ve][3]&&K[Ve][3].length!==0&&Js.push(K[Ve][3]&&K[Ve][3].ast||K[Ve][3]);return{tableList:Array.from(Un),columnList:Dt(u),ast:Js}})(P,hr),Tr=P)}else _=Tr,Tr=r;return Tr})())!==r?(Ls=Y,Y=Q):(_=Y,Y=r),Y}function Lv(){var Y;return(Y=(function(){var Q=_,Tr,P,hr,ht,e;(Tr=Tl())!==r&&ln()!==r&&(P=Xa())!==r&&ln()!==r&&(hr=Xl())!==r?(Ls=Q,Pr=Tr,Mr=P,(kn=hr)&&kn.forEach(Yn=>Un.add(`${Pr}::${Yn.db}::${Yn.table}`)),Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:Pr.toLowerCase(),keyword:Mr.toLowerCase(),name:kn}},Q=Tr):(_=Q,Q=r);var Pr,Mr,kn;return Q===r&&(Q=_,(Tr=Tl())!==r&&ln()!==r&&(P=kl())!==r&&ln()!==r&&(hr=Oa())!==r&&ln()!==r&&h0()!==r&&ln()!==r&&(ht=Us())!==r&&ln()!==r?((e=(function(){var Yn=_,K,kt,Js,Ve,co;if((K=Sb())===r&&(K=xl()),K!==r){for(kt=[],Js=_,(Ve=ln())===r?(_=Js,Js=r):((co=Sb())===r&&(co=xl()),co===r?(_=Js,Js=r):Js=Ve=[Ve,co]);Js!==r;)kt.push(Js),Js=_,(Ve=ln())===r?(_=Js,Js=r):((co=Sb())===r&&(co=xl()),co===r?(_=Js,Js=r):Js=Ve=[Ve,co]);kt===r?(_=Yn,Yn=r):(Ls=Yn,K=Dn(K,kt),Yn=K)}else _=Yn,Yn=r;return Yn})())===r&&(e=null),e!==r&&ln()!==r?(Ls=Q,Tr=(function(Yn,K,kt,Js,Ve){return{tableList:Array.from(Un),columnList:Dt(u),ast:{type:Yn.toLowerCase(),keyword:K.toLowerCase(),name:kt,table:Js,options:Ve}}})(Tr,P,hr,ht,e),Q=Tr):(_=Q,Q=r)):(_=Q,Q=r)),Q})())===r&&(Y=(function(){var Q;return(Q=(function(){var Tr=_,P,hr,ht,e,Pr,Mr,kn,Yn,K;(P=Q0())!==r&&ln()!==r?((hr=ib())===r&&(hr=null),hr!==r&&ln()!==r&&Xa()!==r&&ln()!==r?((ht=qv())===r&&(ht=null),ht!==r&&ln()!==r&&(e=Xl())!==r&&ln()!==r&&(Pr=(function(){var Eo,ao,zo,no,Ke,yo,lo,Co,Au;if(Eo=_,(ao=zu())!==r)if(ln()!==r)if((zo=Cv())!==r){for(no=[],Ke=_,(yo=ln())!==r&&(lo=Ou())!==r&&(Co=ln())!==r&&(Au=Cv())!==r?Ke=yo=[yo,lo,Co,Au]:(_=Ke,Ke=r);Ke!==r;)no.push(Ke),Ke=_,(yo=ln())!==r&&(lo=Ou())!==r&&(Co=ln())!==r&&(Au=Cv())!==r?Ke=yo=[yo,lo,Co,Au]:(_=Ke,Ke=r);no!==r&&(Ke=ln())!==r&&(yo=Yu())!==r?(Ls=Eo,ao=Ae(zo,no),Eo=ao):(_=Eo,Eo=r)}else _=Eo,Eo=r;else _=Eo,Eo=r;else _=Eo,Eo=r;return Eo})())!==r&&ln()!==r?((Mr=(function(){var Eo,ao,zo,no,Ke,yo,lo,Co;if(Eo=_,(ao=el())!==r){for(zo=[],no=_,(Ke=ln())===r?(_=no,no=r):((yo=Ou())===r&&(yo=null),yo!==r&&(lo=ln())!==r&&(Co=el())!==r?no=Ke=[Ke,yo,lo,Co]:(_=no,no=r));no!==r;)zo.push(no),no=_,(Ke=ln())===r?(_=no,no=r):((yo=Ou())===r&&(yo=null),yo!==r&&(lo=ln())!==r&&(Co=el())!==r?no=Ke=[Ke,yo,lo,Co]:(_=no,no=r));zo===r?(_=Eo,Eo=r):(Ls=Eo,ao=Fr(ao,zo),Eo=ao)}else _=Eo,Eo=r;return Eo})())===r&&(Mr=null),Mr!==r&&ln()!==r?((kn=Ii())===r&&(kn=Zi()),kn===r&&(kn=null),kn!==r&&ln()!==r?((Yn=Zl())===r&&(Yn=null),Yn!==r&&ln()!==r?((K=wf())===r&&(K=null),K===r?(_=Tr,Tr=r):(Ls=Tr,P=(function(Eo,ao,zo,no,Ke,yo,lo,Co,Au){return no&&no.forEach(la=>Un.add(`create::${la.db}::${la.table}`)),{tableList:Array.from(Un),columnList:Dt(u),ast:{type:Eo[0].toLowerCase(),keyword:"table",temporary:ao&&ao[0].toLowerCase(),if_not_exists:zo,table:no,ignore_replace:lo&&lo[0].toLowerCase(),as:Co&&Co[0].toLowerCase(),query_expr:Au&&Au.ast,create_definitions:Ke,table_options:yo}}})(P,hr,ht,e,Pr,Mr,kn,Yn,K),Tr=P)):(_=Tr,Tr=r)):(_=Tr,Tr=r)):(_=Tr,Tr=r)):(_=Tr,Tr=r)):(_=Tr,Tr=r)):(_=Tr,Tr=r),Tr===r&&(Tr=_,(P=Q0())!==r&&ln()!==r?((hr=ib())===r&&(hr=null),hr!==r&&ln()!==r&&Xa()!==r&&ln()!==r?((ht=qv())===r&&(ht=null),ht!==r&&ln()!==r&&(e=Xl())!==r&&ln()!==r&&(Pr=(function Eo(){var ao,zo;(ao=(function(){var Ke=_,yo;return fc()!==r&&ln()!==r&&(yo=Xl())!==r?(Ls=Ke,Ke={type:"like",table:yo}):(_=Ke,Ke=r),Ke})())===r&&(ao=_,zu()!==r&&ln()!==r&&(zo=Eo())!==r&&ln()!==r&&Yu()!==r?(Ls=ao,(no=zo).parentheses=!0,ao=no):(_=ao,ao=r));var no;return ao})())!==r?(Ls=Tr,kt=P,Js=hr,Ve=ht,_t=Pr,(co=e)&&co.forEach(Eo=>Un.add(`create::${Eo.db}::${Eo.table}`)),P={tableList:Array.from(Un),columnList:Dt(u),ast:{type:kt[0].toLowerCase(),keyword:"table",temporary:Js&&Js[0].toLowerCase(),if_not_exists:Ve,table:co,like:_t}},Tr=P):(_=Tr,Tr=r)):(_=Tr,Tr=r)):(_=Tr,Tr=r));var kt,Js,Ve,co,_t;return Tr})())===r&&(Q=(function(){var Tr=_,P,hr,ht,e,Pr;return(P=Q0())!==r&&ln()!==r?((hr=(function(){var Mr=_,kn,Yn,K;return t.substr(_,8).toLowerCase()==="database"?(kn=t.substr(_,8),_+=8):(kn=r,Qt===0&&ys(di)),kn===r?(_=Mr,Mr=r):(Yn=_,Qt++,K=Ye(),Qt--,K===r?Yn=void 0:(_=Yn,Yn=r),Yn===r?(_=Mr,Mr=r):(Ls=Mr,Mr=kn="DATABASE")),Mr})())===r&&(hr=(function(){var Mr=_,kn,Yn,K;return t.substr(_,6).toLowerCase()==="schema"?(kn=t.substr(_,6),_+=6):(kn=r,Qt===0&&ys(Hi)),kn===r?(_=Mr,Mr=r):(Yn=_,Qt++,K=Ye(),Qt--,K===r?Yn=void 0:(_=Yn,Yn=r),Yn===r?(_=Mr,Mr=r):(Ls=Mr,Mr=kn="SCHEMA")),Mr})()),hr!==r&&ln()!==r?((ht=qv())===r&&(ht=null),ht!==r&&ln()!==r&&(e=Da())!==r&&ln()!==r?((Pr=(function(){var Mr,kn,Yn,K,kt,Js;if(Mr=_,(kn=is())!==r){for(Yn=[],K=_,(kt=ln())!==r&&(Js=is())!==r?K=kt=[kt,Js]:(_=K,K=r);K!==r;)Yn.push(K),K=_,(kt=ln())!==r&&(Js=is())!==r?K=kt=[kt,Js]:(_=K,K=r);Yn===r?(_=Mr,Mr=r):(Ls=Mr,kn=Dn(kn,Yn),Mr=kn)}else _=Mr,Mr=r;return Mr})())===r&&(Pr=null),Pr===r?(_=Tr,Tr=r):(Ls=Tr,P=(function(Mr,kn,Yn,K,kt){let Js=kn.toLowerCase();return{tableList:Array.from(Un),columnList:Dt(u),ast:{type:Mr[0].toLowerCase(),keyword:Js,if_not_exists:Yn,[Js]:{db:K.schema,schema:K.name},create_definitions:kt}}})(P,hr,ht,e,Pr),Tr=P)):(_=Tr,Tr=r)):(_=Tr,Tr=r)):(_=Tr,Tr=r),Tr})()),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;(Tr=(function(){var Mr=_,kn,Yn,K;return t.substr(_,8).toLowerCase()==="truncate"?(kn=t.substr(_,8),_+=8):(kn=r,Qt===0&&ys($v)),kn===r?(_=Mr,Mr=r):(Yn=_,Qt++,K=Ye(),Qt--,K===r?Yn=void 0:(_=Yn,Yn=r),Yn===r?(_=Mr,Mr=r):(Ls=Mr,Mr=kn="TRUNCATE")),Mr})())!==r&&ln()!==r?((P=Xa())===r&&(P=null),P!==r&&ln()!==r&&(hr=Xl())!==r?(Ls=Q,ht=Tr,e=P,(Pr=hr)&&Pr.forEach(Mr=>Un.add(`${ht}::${Mr.db}::${Mr.table}`)),Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:ht.toLowerCase(),keyword:e&&e.toLowerCase()||"table",name:Pr}},Q=Tr):(_=Q,Q=r)):(_=Q,Q=r);var ht,e,Pr;return Q})())===r&&(Y=(function(){var Q=_,Tr,P;(Tr=rf())!==r&&ln()!==r&&Xa()!==r&&ln()!==r&&(P=(function(){var ht,e,Pr,Mr,kn,Yn,K,kt;if(ht=_,(e=Jb())!==r){for(Pr=[],Mr=_,(kn=ln())!==r&&(Yn=Ou())!==r&&(K=ln())!==r&&(kt=Jb())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r);Mr!==r;)Pr.push(Mr),Mr=_,(kn=ln())!==r&&(Yn=Ou())!==r&&(K=ln())!==r&&(kt=Jb())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r);Pr===r?(_=ht,ht=r):(Ls=ht,e=Ae(e,Pr),ht=e)}else _=ht,ht=r;return ht})())!==r?(Ls=Q,(hr=P).forEach(ht=>ht.forEach(e=>e.table&&Un.add(`rename::${e.db}::${e.table}`))),Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:"rename",table:hr}},Q=Tr):(_=Q,Q=r);var hr;return Q})())===r&&(Y=(function(){var Q=_,Tr,P;(Tr=(function(){var ht=_,e,Pr,Mr;return t.substr(_,4).toLowerCase()==="call"?(e=t.substr(_,4),_+=4):(e=r,Qt===0&&ys(pp)),e===r?(_=ht,ht=r):(Pr=_,Qt++,Mr=Ye(),Qt--,Mr===r?Pr=void 0:(_=Pr,Pr=r),Pr===r?(_=ht,ht=r):(Ls=ht,ht=e="CALL")),ht})())!==r&&ln()!==r&&(P=ii())!==r?(Ls=Q,hr=P,Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:"call",expr:hr}},Q=Tr):(_=Q,Q=r);var hr;return Q})())===r&&(Y=(function(){var Q=_,Tr,P;(Tr=(function(){var ht=_,e,Pr,Mr;return t.substr(_,3).toLowerCase()==="use"?(e=t.substr(_,3),_+=3):(e=r,Qt===0&&ys(Ys)),e===r?(_=ht,ht=r):(Pr=_,Qt++,Mr=Ye(),Qt--,Mr===r?Pr=void 0:(_=Pr,Pr=r),Pr===r?(_=ht,ht=r):ht=e=[e,Pr]),ht})())!==r&&ln()!==r&&(P=We())!==r?(Ls=Q,hr=P,Un.add(`use::${hr}::null`),Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:"use",db:hr}},Q=Tr):(_=Q,Q=r);var hr;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;(Tr=(function(){var Pr=_,Mr,kn,Yn;return t.substr(_,5).toLowerCase()==="alter"?(Mr=t.substr(_,5),_+=5):(Mr=r,Qt===0&&ys(Te)),Mr===r?(_=Pr,Pr=r):(kn=_,Qt++,Yn=Ye(),Qt--,Yn===r?kn=void 0:(_=kn,kn=r),kn===r?(_=Pr,Pr=r):Pr=Mr=[Mr,kn]),Pr})())!==r&&ln()!==r&&Xa()!==r&&ln()!==r&&(P=Xl())!==r&&ln()!==r&&(hr=(function(){var Pr,Mr,kn,Yn,K,kt,Js,Ve;if(Pr=_,(Mr=us())!==r){for(kn=[],Yn=_,(K=ln())!==r&&(kt=Ou())!==r&&(Js=ln())!==r&&(Ve=us())!==r?Yn=K=[K,kt,Js,Ve]:(_=Yn,Yn=r);Yn!==r;)kn.push(Yn),Yn=_,(K=ln())!==r&&(kt=Ou())!==r&&(Js=ln())!==r&&(Ve=us())!==r?Yn=K=[K,kt,Js,Ve]:(_=Yn,Yn=r);kn===r?(_=Pr,Pr=r):(Ls=Pr,Mr=Ae(Mr,kn),Pr=Mr)}else _=Pr,Pr=r;return Pr})())!==r?(Ls=Q,e=hr,(ht=P)&&ht.length>0&&ht.forEach(Pr=>Un.add(`alter::${Pr.db}::${Pr.table}`)),Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:"alter",table:ht,expr:e}},Q=Tr):(_=Q,Q=r);var ht,e;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;(Tr=gf())!==r&&ln()!==r?((P=(function(){var Pr=_,Mr,kn,Yn;return t.substr(_,6).toLowerCase()==="global"?(Mr=t.substr(_,6),_+=6):(Mr=r,Qt===0&&ys(Sl)),Mr===r?(_=Pr,Pr=r):(kn=_,Qt++,Yn=Ye(),Qt--,Yn===r?kn=void 0:(_=kn,kn=r),kn===r?(_=Pr,Pr=r):(Ls=Pr,Pr=Mr="GLOBAL")),Pr})())===r&&(P=(function(){var Pr=_,Mr,kn,Yn;return t.substr(_,7).toLowerCase()==="session"?(Mr=t.substr(_,7),_+=7):(Mr=r,Qt===0&&ys(Ol)),Mr===r?(_=Pr,Pr=r):(kn=_,Qt++,Yn=Ye(),Qt--,Yn===r?kn=void 0:(_=kn,kn=r),kn===r?(_=Pr,Pr=r):(Ls=Pr,Pr=Mr="SESSION")),Pr})())===r&&(P=(function(){var Pr=_,Mr,kn,Yn;return t.substr(_,5).toLowerCase()==="local"?(Mr=t.substr(_,5),_+=5):(Mr=r,Qt===0&&ys(te)),Mr===r?(_=Pr,Pr=r):(kn=_,Qt++,Yn=Ye(),Qt--,Yn===r?kn=void 0:(_=kn,kn=r),kn===r?(_=Pr,Pr=r):(Ls=Pr,Pr=Mr="LOCAL")),Pr})())===r&&(P=(function(){var Pr=_,Mr,kn,Yn;return t.substr(_,7).toLowerCase()==="persist"?(Mr=t.substr(_,7),_+=7):(Mr=r,Qt===0&&ys(np)),Mr===r?(_=Pr,Pr=r):(kn=_,Qt++,Yn=Ye(),Qt--,Yn===r?kn=void 0:(_=kn,kn=r),kn===r?(_=Pr,Pr=r):(Ls=Pr,Pr=Mr="PERSIST")),Pr})())===r&&(P=(function(){var Pr=_,Mr,kn,Yn;return t.substr(_,12).toLowerCase()==="persist_only"?(Mr=t.substr(_,12),_+=12):(Mr=r,Qt===0&&ys(bv)),Mr===r?(_=Pr,Pr=r):(kn=_,Qt++,Yn=Ye(),Qt--,Yn===r?kn=void 0:(_=kn,kn=r),kn===r?(_=Pr,Pr=r):(Ls=Pr,Pr=Mr="PERSIST_ONLY")),Pr})()),P===r&&(P=null),P!==r&&ln()!==r&&(hr=(function(){var Pr,Mr,kn,Yn,K,kt,Js,Ve;if(Pr=_,(Mr=ll())!==r){for(kn=[],Yn=_,(K=ln())!==r&&(kt=Ou())!==r&&(Js=ln())!==r&&(Ve=ll())!==r?Yn=K=[K,kt,Js,Ve]:(_=Yn,Yn=r);Yn!==r;)kn.push(Yn),Yn=_,(K=ln())!==r&&(kt=Ou())!==r&&(Js=ln())!==r&&(Ve=ll())!==r?Yn=K=[K,kt,Js,Ve]:(_=Yn,Yn=r);kn===r?(_=Pr,Pr=r):(Ls=Pr,Mr=Ue(Mr,kn),Pr=Mr)}else _=Pr,Pr=r;return Pr})())!==r?(Ls=Q,ht=P,(e=hr).keyword=ht,Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:"set",keyword:ht,expr:e}},Q=Tr):(_=Q,Q=r)):(_=Q,Q=r);var ht,e;return Q})())===r&&(Y=(function(){var Q=_,Tr,P;(Tr=(function(){var ht=_,e,Pr,Mr;return t.substr(_,4).toLowerCase()==="lock"?(e=t.substr(_,4),_+=4):(e=r,Qt===0&&ys(I0)),e===r?(_=ht,ht=r):(Pr=_,Qt++,Mr=Ye(),Qt--,Mr===r?Pr=void 0:(_=Pr,Pr=r),Pr===r?(_=ht,ht=r):ht=e=[e,Pr]),ht})())!==r&&ln()!==r&&cc()!==r&&ln()!==r&&(P=(function(){var ht,e,Pr,Mr,kn,Yn,K,kt;if(ht=_,(e=Ti())!==r){for(Pr=[],Mr=_,(kn=ln())!==r&&(Yn=Ou())!==r&&(K=ln())!==r&&(kt=Ti())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r);Mr!==r;)Pr.push(Mr),Mr=_,(kn=ln())!==r&&(Yn=Ou())!==r&&(K=ln())!==r&&(kt=Ti())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r);Pr===r?(_=ht,ht=r):(Ls=ht,e=Ue(e,Pr),ht=e)}else _=ht,ht=r;return ht})())!==r?(Ls=Q,hr=P,Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:"lock",keyword:"tables",tables:hr}},Q=Tr):(_=Q,Q=r);var hr;return Q})())===r&&(Y=(function(){var Q=_,Tr;return(Tr=(function(){var P=_,hr,ht,e;return t.substr(_,6).toLowerCase()==="unlock"?(hr=t.substr(_,6),_+=6):(hr=r,Qt===0&&ys(Sa)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):P=hr=[hr,ht]),P})())!==r&&ln()!==r&&cc()!==r?(Ls=Q,Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:"unlock",keyword:"tables"}},Q=Tr):(_=Q,Q=r),Q})()),Y}function Wv(){var Y;return(Y=wf())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht;return(Tr=Ci())!==r&&ln()!==r&&(P=Xl())!==r&&ln()!==r&&gf()!==r&&ln()!==r&&(hr=Ft())!==r&&ln()!==r?((ht=eb())===r&&(ht=null),ht===r?(_=Q,Q=r):(Ls=Q,Tr=(function(e,Pr,Mr){let kn={};return e&&e.forEach(Yn=>{let{server:K,db:kt,schema:Js,as:Ve,table:co,join:_t}=Yn,Eo=_t?"select":"update",ao=[K,kt,Js].filter(Boolean).join(".")||null;kt&&(kn[co]=ao),co&&Un.add(`${Eo}::${ao}::${co}`)}),Pr&&Pr.forEach(Yn=>{if(Yn.table){let K=It(Yn.table);Un.add(`update::${kn[K]||null}::${K}`)}u.add(`update::${Yn.table}::${Yn.column}`)}),{tableList:Array.from(Un),columnList:Dt(u),ast:{type:"update",table:e,set:Pr,where:Mr}}})(P,hr,ht),Q=Tr)):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e,Pr,Mr;return(Tr=Zn())!==r&&ln()!==r?((P=$0())===r&&(P=null),P!==r&&ln()!==r&&(hr=Us())!==r&&ln()!==r?((ht=Ta())===r&&(ht=null),ht!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(e=(function(){var kn,Yn,K,kt,Js,Ve,co,_t;if(kn=_,(Yn=El())!==r){for(K=[],kt=_,(Js=ln())!==r&&(Ve=Ou())!==r&&(co=ln())!==r&&(_t=El())!==r?kt=Js=[Js,Ve,co,_t]:(_=kt,kt=r);kt!==r;)K.push(kt),kt=_,(Js=ln())!==r&&(Ve=Ou())!==r&&(co=ln())!==r&&(_t=El())!==r?kt=Js=[Js,Ve,co,_t]:(_=kt,kt=r);K===r?(_=kn,kn=r):(Ls=kn,Yn=Ae(Yn,K),kn=Yn)}else _=kn,kn=r;return kn})())!==r&&ln()!==r&&Yu()!==r&&ln()!==r&&(Pr=Li())!==r&&ln()!==r?((Mr=x0())===r&&(Mr=null),Mr===r?(_=Q,Q=r):(Ls=Q,Tr=(function(kn,Yn,K,kt,Js,Ve){if(Yn&&(Un.add(`insert::${Yn.db}::${Yn.table}`),Yn.as=null),kt){let co=Yn&&Yn.table||null;Array.isArray(Js.values)&&Js.values.forEach((_t,Eo)=>{if(_t.value.length!=kt.length)throw Error("Error: column count doesn't match value count at row "+(Eo+1))}),kt.forEach(_t=>u.add(`insert::${co}::${_t}`))}return{tableList:Array.from(Un),columnList:Dt(u),ast:{type:kn,table:[Yn],columns:kt,values:Js,partition:K,on_duplicate_update:Ve}}})(Tr,hr,ht,e,Pr,Mr),Q=Tr)):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e,Pr,Mr;return(Tr=Zn())!==r&&ln()!==r?((P=Ii())===r&&(P=null),P!==r&&ln()!==r?((hr=$0())===r&&(hr=null),hr!==r&&ln()!==r&&(ht=Us())!==r&&ln()!==r?((e=Ta())===r&&(e=null),e!==r&&ln()!==r&&(Pr=Li())!==r&&ln()!==r?((Mr=x0())===r&&(Mr=null),Mr===r?(_=Q,Q=r):(Ls=Q,Tr=(function(kn,Yn,K,kt,Js,Ve,co){kt&&(Un.add(`insert::${kt.db}::${kt.table}`),u.add(`insert::${kt.table}::(.*)`),kt.as=null);let _t=[Yn,K].filter(Eo=>Eo).map(Eo=>Eo[0]&&Eo[0].toLowerCase()).join(" ");return{tableList:Array.from(Un),columnList:Dt(u),ast:{type:kn,table:[kt],columns:null,values:Ve,partition:Js,prefix:_t,on_duplicate_update:co}}})(Tr,P,hr,ht,e,Pr,Mr),Q=Tr)):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e;(Tr=Zn())!==r&&ln()!==r&&$0()!==r&&ln()!==r&&(P=Us())!==r&&ln()!==r?((hr=Ta())===r&&(hr=null),hr!==r&&ln()!==r&&gf()!==r&&ln()!==r&&(ht=Ft())!==r&&ln()!==r?((e=x0())===r&&(e=null),e===r?(_=Q,Q=r):(Ls=Q,Pr=Tr,kn=hr,Yn=ht,K=e,(Mr=P)&&(Un.add(`insert::${Mr.db}::${Mr.table}`),u.add(`insert::${Mr.table}::(.*)`),Mr.as=null),Tr={tableList:Array.from(Un),columnList:Dt(u),ast:{type:Pr,table:[Mr],columns:null,partition:kn,set:Yn,on_duplicate_update:K}},Q=Tr)):(_=Q,Q=r)):(_=Q,Q=r);var Pr,Mr,kn,Yn,K;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht;return(Tr=fa())!==r&&ln()!==r?((P=Xl())===r&&(P=null),P!==r&&ln()!==r&&(hr=yv())!==r&&ln()!==r?((ht=eb())===r&&(ht=null),ht===r?(_=Q,Q=r):(Ls=Q,Tr=(function(e,Pr,Mr){if(Pr&&Pr.forEach(kn=>{let{db:Yn,as:K,table:kt,join:Js}=kn,Ve=Js?"select":"delete";kt&&Un.add(`${Ve}::${Yn}::${kt}`),Js||u.add(`delete::${kt}::(.*)`)}),e===null&&Pr.length===1){let kn=Pr[0];e=[{db:kn.db,table:kn.table,as:kn.as,addition:!0}]}return{tableList:Array.from(Un),columnList:Dt(u),ast:{type:"delete",table:e,from:Pr,where:Mr}}})(P,hr,ht),Q=Tr)):(_=Q,Q=r)):(_=Q,Q=r),Q})())===r&&(Y=Lv())===r&&(Y=(function(){for(var Q=[],Tr=ai();Tr!==r;)Q.push(Tr),Tr=ai();return Q})()),Y}function zb(){var Y,Q,Tr,P,hr;return Y=_,(Q=(function(){var ht=_,e,Pr,Mr;return t.substr(_,5).toLowerCase()==="union"?(e=t.substr(_,5),_+=5):(e=r,Qt===0&&ys(xv)),e===r?(_=ht,ht=r):(Pr=_,Qt++,Mr=Ye(),Qt--,Mr===r?Pr=void 0:(_=Pr,Pr=r),Pr===r?(_=ht,ht=r):(Ls=ht,ht=e="UNION")),ht})())===r&&(Q=(function(){var ht=_,e,Pr,Mr;return t.substr(_,9).toLowerCase()==="intersect"?(e=t.substr(_,9),_+=9):(e=r,Qt===0&&ys(Uv)),e===r?(_=ht,ht=r):(Pr=_,Qt++,Mr=Ye(),Qt--,Mr===r?Pr=void 0:(_=Pr,Pr=r),Pr===r?(_=ht,ht=r):(Ls=ht,ht=e="INTERSECT")),ht})())===r&&(Q=(function(){var ht=_,e,Pr,Mr;return t.substr(_,6).toLowerCase()==="except"?(e=t.substr(_,6),_+=6):(e=r,Qt===0&&ys($f)),e===r?(_=ht,ht=r):(Pr=_,Qt++,Mr=Ye(),Qt--,Mr===r?Pr=void 0:(_=Pr,Pr=r),Pr===r?(_=ht,ht=r):(Ls=ht,ht=e="EXCEPT")),ht})()),Q!==r&&ln()!==r?((Tr=ju())===r&&(Tr=Il()),Tr===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,P=Q,Y=Q=(hr=Tr)?`${P.toLowerCase()} ${hr.toLowerCase()}`:""+P.toLowerCase())):(_=Y,Y=r),Y===r&&(Y=_,(Q=(function(){var ht=_,e,Pr,Mr;return t.substr(_,5).toLowerCase()==="minus"?(e=t.substr(_,5),_+=5):(e=r,Qt===0&&ys(lp)),e===r?(_=ht,ht=r):(Pr=_,Qt++,Mr=Ye(),Qt--,Mr===r?Pr=void 0:(_=Pr,Pr=r),Pr===r?(_=ht,ht=r):(Ls=ht,ht=e="MINUS")),ht})())!==r&&(Ls=Y,Q="minus"),Y=Q),Y}function wf(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=wv())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=zb())!==r&&(e=ln())!==r&&(Pr=wv())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=zb())!==r&&(e=ln())!==r&&(Pr=wv())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr!==r&&(P=ln())!==r?((hr=ns())===r&&(hr=null),hr!==r&&(ht=ln())!==r?((e=Ub())===r&&(e=null),e===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Mr,kn,Yn,K){let kt=Mr;for(let Js=0;Js<kn.length;Js++)kt._next=kn[Js][3],kt.set_op=kn[Js][1],kt=kt._next;return Yn&&(Mr._orderby=Yn),K&&(Mr._limit=K),{tableList:Array.from(Un),columnList:Dt(u),ast:Mr}})(Q,Tr,hr,e))):(_=Y,Y=r)):(_=Y,Y=r)}else _=Y,Y=r;return Y}function qv(){var Y,Q;return Y=_,t.substr(_,2).toLowerCase()==="if"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(Pn)),Q!==r&&ln()!==r&&Ji()!==r&&ln()!==r&&qi()!==r?(Ls=Y,Y=Q="IF NOT EXISTS"):(_=Y,Y=r),Y}function Cv(){var Y;return(Y=$s())===r&&(Y=tb())===r&&(Y=nb())===r&&(Y=zt()),Y}function rb(){var Y,Q,Tr,P;return Y=_,(Q=(function(){var hr=_,ht;return(ht=(function(){var e=_,Pr,Mr,kn;return t.substr(_,8).toLowerCase()==="not null"?(Pr=t.substr(_,8),_+=8):(Pr=r,Qt===0&&ys(tn)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):e=Pr=[Pr,Mr]),e})())!==r&&(Ls=hr,ht={type:"not null",value:"not null"}),hr=ht})())===r&&(Q=Tc()),Q!==r&&(Ls=Y,(P=Q)&&!P.value&&(P.value="null"),Q={nullable:P}),(Y=Q)===r&&(Y=_,(Q=(function(){var hr=_,ht;return Tf()!==r&&ln()!==r&&(ht=Ot())!==r?(Ls=hr,hr={type:"default",value:ht}):(_=hr,hr=r),hr})())!==r&&(Ls=Y,Q={default_val:Q}),(Y=Q)===r&&(Y=_,t.substr(_,14).toLowerCase()==="auto_increment"?(Q=t.substr(_,14),_+=14):(Q=r,Qt===0&&ys(ou)),Q!==r&&(Ls=Y,Q={auto_increment:Q.toLowerCase()}),(Y=Q)===r&&(Y=_,t.substr(_,6).toLowerCase()==="unique"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(Hs)),Q!==r&&ln()!==r?(t.substr(_,3).toLowerCase()==="key"?(Tr=t.substr(_,3),_+=3):(Tr=r,Qt===0&&ys(Uo)),Tr===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(hr){let ht=["unique"];return hr&&ht.push(hr),{unique:ht.join(" ").toLowerCase("")}})(Tr))):(_=Y,Y=r),Y===r&&(Y=_,t.substr(_,7).toLowerCase()==="primary"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(Ps)),Q===r&&(Q=null),Q!==r&&ln()!==r?(t.substr(_,3).toLowerCase()==="key"?(Tr=t.substr(_,3),_+=3):(Tr=r,Qt===0&&ys(Uo)),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(hr){let ht=[];return hr&&ht.push("primary"),ht.push("key"),{primary_key:ht.join(" ").toLowerCase("")}})(Q))):(_=Y,Y=r),Y===r&&(Y=_,(Q=Ya())!==r&&(Ls=Y,Q={comment:Q}),(Y=Q)===r&&(Y=_,(Q=I())!==r&&(Ls=Y,Q={collate:Q}),(Y=Q)===r&&(Y=_,(Q=(function(){var hr=_,ht,e;return t.substr(_,13).toLowerCase()==="column_format"?(ht=t.substr(_,13),_+=13):(ht=r,Qt===0&&ys(pe)),ht!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="fixed"?(e=t.substr(_,5),_+=5):(e=r,Qt===0&&ys(_o)),e===r&&(t.substr(_,7).toLowerCase()==="dynamic"?(e=t.substr(_,7),_+=7):(e=r,Qt===0&&ys(Gi)),e===r&&(t.substr(_,7).toLowerCase()==="default"?(e=t.substr(_,7),_+=7):(e=r,Qt===0&&ys(mi)))),e===r?(_=hr,hr=r):(Ls=hr,ht={type:"column_format",value:e.toLowerCase()},hr=ht)):(_=hr,hr=r),hr})())!==r&&(Ls=Y,Q={column_format:Q}),(Y=Q)===r&&(Y=_,(Q=(function(){var hr=_,ht,e;return t.substr(_,7).toLowerCase()==="storage"?(ht=t.substr(_,7),_+=7):(ht=r,Qt===0&&ys(Fi)),ht!==r&&ln()!==r?(t.substr(_,4).toLowerCase()==="disk"?(e=t.substr(_,4),_+=4):(e=r,Qt===0&&ys(T0)),e===r&&(t.substr(_,6).toLowerCase()==="memory"?(e=t.substr(_,6),_+=6):(e=r,Qt===0&&ys(dl))),e===r?(_=hr,hr=r):(Ls=hr,ht={type:"storage",value:e.toLowerCase()},hr=ht)):(_=hr,hr=r),hr})())!==r&&(Ls=Y,Q={storage:Q}),(Y=Q)===r&&(Y=_,(Q=Ob())!==r&&(Ls=Y,Q={reference_definition:Q}),Y=Q))))))))),Y}function tb(){var Y,Q,Tr,P;return Y=_,(Q=Oa())!==r&&ln()!==r&&(Tr=ba())!==r&&ln()!==r?((P=(function(){var hr,ht,e,Pr,Mr,kn;if(hr=_,(ht=rb())!==r)if(ln()!==r){for(e=[],Pr=_,(Mr=ln())!==r&&(kn=rb())!==r?Pr=Mr=[Mr,kn]:(_=Pr,Pr=r);Pr!==r;)e.push(Pr),Pr=_,(Mr=ln())!==r&&(kn=rb())!==r?Pr=Mr=[Mr,kn]:(_=Pr,Pr=r);e===r?(_=hr,hr=r):(Ls=hr,hr=ht=(function(Yn,K){let kt=Yn;for(let Js=0;Js<K.length;Js++)kt={...kt,...K[Js][1]};return kt})(ht,e))}else _=hr,hr=r;else _=hr,hr=r;return hr})())===r&&(P=null),P===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(hr,ht,e){return u.add(`create::${hr.table}::${hr.column}`),{column:hr,definition:ht,resource:"column",...e||{}}})(Q,Tr,P))):(_=Y,Y=r),Y}function I(){var Y,Q,Tr;return Y=_,(function(){var P=_,hr,ht,e;return t.substr(_,7).toLowerCase()==="collate"?(hr=t.substr(_,7),_+=7):(hr=r,Qt===0&&ys(g0)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="COLLATE")),P})()!==r&&ln()!==r?((Q=Jt())===r&&(Q=null),Q!==r&&ln()!==r&&(Tr=We())!==r?(Ls=Y,Y={type:"collate",keyword:"collate",collate:{name:Tr,symbol:Q}}):(_=Y,Y=r)):(_=Y,Y=r),Y}function us(){var Y;return(Y=(function(){var Q=_,Tr,P;return(Tr=nf())!==r&&ln()!==r&&(P=$s())!==r?(Ls=Q,Tr=(function(hr){return{action:"add",create_definitions:hr,resource:"constraint",type:"alter"}})(P),Q=Tr):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;return(Tr=Tl())!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="check"?(P=t.substr(_,5),_+=5):(P=r,Qt===0&&ys(Uc)),P!==r&&ln()!==r&&(hr=ul())!==r?(Ls=Q,Tr=(function(ht,e){return{action:"drop",constraint:e,keyword:ht.toLowerCase(),resource:"constraint",type:"alter"}})(P,hr),Q=Tr):(_=Q,Q=r)):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht;return(Tr=Ra())!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="check"?(P=t.substr(_,5),_+=5):(P=r,Qt===0&&ys(Uc)),P!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="check"?(hr=t.substr(_,5),_+=5):(hr=r,Qt===0&&ys(Uc)),hr!==r&&ln()!==r&&ka()!==r&&ln()!==r&&(ht=ul())!==r?(Ls=Q,Tr=(function(e){return{action:"with",constraint:e,keyword:"check check",resource:"constraint",type:"alter"}})(ht),Q=Tr):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P;return t.substr(_,7).toLowerCase()==="nocheck"?(Tr=t.substr(_,7),_+=7):(Tr=r,Qt===0&&ys(wc)),Tr!==r&&ln()!==r&&ka()!==r&&ln()!==r&&(P=ul())!==r?(Ls=Q,Tr=(function(hr){return{action:"nocheck",constraint:hr,resource:"constraint",type:"alter"}})(P),Q=Tr):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;(Tr=nf())!==r&&ln()!==r?((P=E0())===r&&(P=null),P!==r&&ln()!==r&&(hr=tb())!==r?(Ls=Q,ht=P,e=hr,Tr={action:"add",...e,keyword:ht,resource:"column",type:"alter"},Q=Tr):(_=Q,Q=r)):(_=Q,Q=r);var ht,e;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;return(Tr=Tl())!==r&&ln()!==r?((P=E0())===r&&(P=null),P!==r&&ln()!==r&&(hr=Oa())!==r?(Ls=Q,Tr=(function(ht,e){return{action:"drop",column:e,keyword:ht,resource:"column",type:"alter"}})(P,hr),Q=Tr):(_=Q,Q=r)):(_=Q,Q=r),Q})())===r&&(Y=(function(){var Q=_,Tr,P;(Tr=nf())!==r&&ln()!==r&&(P=nb())!==r?(Ls=Q,hr=P,Tr={action:"add",type:"alter",...hr},Q=Tr):(_=Q,Q=r);var hr;return Q})())===r&&(Y=(function(){var Q=_,Tr,P;(Tr=nf())!==r&&ln()!==r&&(P=zt())!==r?(Ls=Q,hr=P,Tr={action:"add",type:"alter",...hr},Q=Tr):(_=Q,Q=r);var hr;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;(Tr=rf())!==r&&ln()!==r?((P=If())===r&&(P=Zl()),P===r&&(P=null),P!==r&&ln()!==r&&(hr=We())!==r?(Ls=Q,e=hr,Tr={action:"rename",type:"alter",resource:"table",keyword:(ht=P)&&ht[0].toLowerCase(),table:e},Q=Tr):(_=Q,Q=r)):(_=Q,Q=r);var ht,e;return Q})())===r&&(Y=Sb())===r&&(Y=xl()),Y}function Sb(){var Y,Q,Tr,P;return Y=_,t.substr(_,9).toLowerCase()==="algorithm"?(Q=t.substr(_,9),_+=9):(Q=r,Qt===0&&ys(Gl)),Q!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r?(t.substr(_,7).toLowerCase()==="default"?(P=t.substr(_,7),_+=7):(P=r,Qt===0&&ys(mi)),P===r&&(t.substr(_,7).toLowerCase()==="instant"?(P=t.substr(_,7),_+=7):(P=r,Qt===0&&ys(Fl)),P===r&&(t.substr(_,7).toLowerCase()==="inplace"?(P=t.substr(_,7),_+=7):(P=r,Qt===0&&ys(nc)),P===r&&(t.substr(_,4).toLowerCase()==="copy"?(P=t.substr(_,4),_+=4):(P=r,Qt===0&&ys(xc))))),P===r?(_=Y,Y=r):(Ls=Y,Y=Q={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:Tr,algorithm:P})):(_=Y,Y=r)):(_=Y,Y=r),Y}function xl(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="lock"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(I0)),Q!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r?(t.substr(_,7).toLowerCase()==="default"?(P=t.substr(_,7),_+=7):(P=r,Qt===0&&ys(mi)),P===r&&(t.substr(_,4).toLowerCase()==="none"?(P=t.substr(_,4),_+=4):(P=r,Qt===0&&ys(ji)),P===r&&(t.substr(_,6).toLowerCase()==="shared"?(P=t.substr(_,6),_+=6):(P=r,Qt===0&&ys(af)),P===r&&(t.substr(_,9).toLowerCase()==="exclusive"?(P=t.substr(_,9),_+=9):(P=r,Qt===0&&ys(qf))))),P===r?(_=Y,Y=r):(Ls=Y,Y=Q={type:"alter",keyword:"lock",resource:"lock",symbol:Tr,lock:P})):(_=Y,Y=r)):(_=Y,Y=r),Y}function nb(){var Y,Q,Tr,P,hr,ht;return Y=_,(Q=kl())===r&&(Q=oi()),Q!==r&&ln()!==r?((Tr=El())===r&&(Tr=null),Tr!==r&&ln()!==r?((P=hv())===r&&(P=null),P!==r&&ln()!==r&&(hr=X0())!==r&&ln()!==r?((ht=h())===r&&(ht=null),ht!==r&&ln()!==r?(Ls=Y,Y=Q=(function(e,Pr,Mr,kn,Yn){return{index:Pr,definition:kn,keyword:e.toLowerCase(),index_type:Mr,resource:"index",index_options:Yn}})(Q,Tr,P,hr,ht)):(_=Y,Y=r)):(_=Y,Y=r)):(_=Y,Y=r)):(_=Y,Y=r),Y}function zt(){var Y,Q,Tr,P,hr,ht;return Y=_,(Q=(function(){var e=_,Pr,Mr,kn;return t.substr(_,8).toLowerCase()==="fulltext"?(Pr=t.substr(_,8),_+=8):(Pr=r,Qt===0&&ys(Ip)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):(Ls=e,e=Pr="FULLTEXT")),e})())===r&&(Q=(function(){var e=_,Pr,Mr,kn;return t.substr(_,7).toLowerCase()==="spatial"?(Pr=t.substr(_,7),_+=7):(Pr=r,Qt===0&&ys(td)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):(Ls=e,e=Pr="SPATIAL")),e})()),Q!==r&&ln()!==r?((Tr=kl())===r&&(Tr=oi()),Tr===r&&(Tr=null),Tr!==r&&ln()!==r?((P=El())===r&&(P=null),P!==r&&ln()!==r&&(hr=X0())!==r&&ln()!==r?((ht=h())===r&&(ht=null),ht!==r&&ln()!==r?(Ls=Y,Y=Q=(function(e,Pr,Mr,kn,Yn){return{index:Mr,definition:kn,keyword:Pr&&`${e.toLowerCase()} ${Pr.toLowerCase()}`||e.toLowerCase(),index_options:Yn,resource:"index"}})(Q,Tr,P,hr,ht)):(_=Y,Y=r)):(_=Y,Y=r)):(_=Y,Y=r)):(_=Y,Y=r),Y}function $s(){var Y;return(Y=(function(){var Q=_,Tr,P,hr,ht,e;(Tr=ja())===r&&(Tr=null),Tr!==r&&ln()!==r?(t.substr(_,11).toLowerCase()==="primary key"?(P=t.substr(_,11),_+=11):(P=r,Qt===0&&ys(Ll)),P!==r&&ln()!==r?((hr=hv())===r&&(hr=null),hr!==r&&ln()!==r&&(ht=X0())!==r&&ln()!==r?((e=h())===r&&(e=null),e===r?(_=Q,Q=r):(Ls=Q,Mr=P,kn=hr,Yn=ht,K=e,Tr={constraint:(Pr=Tr)&&Pr.constraint,definition:Yn,constraint_type:Mr.toLowerCase(),keyword:Pr&&Pr.keyword,index_type:kn,resource:"constraint",index_options:K},Q=Tr)):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r);var Pr,Mr,kn,Yn,K;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e,Pr,Mr;(Tr=ja())===r&&(Tr=null),Tr!==r&&ln()!==r&&(P=(function(){var _t=_,Eo,ao,zo;return t.substr(_,6).toLowerCase()==="unique"?(Eo=t.substr(_,6),_+=6):(Eo=r,Qt===0&&ys(Hs)),Eo===r?(_=_t,_t=r):(ao=_,Qt++,zo=Ye(),Qt--,zo===r?ao=void 0:(_=ao,ao=r),ao===r?(_=_t,_t=r):(Ls=_t,_t=Eo="UNIQUE")),_t})())!==r&&ln()!==r?((hr=kl())===r&&(hr=oi()),hr===r&&(hr=null),hr!==r&&ln()!==r?((ht=El())===r&&(ht=null),ht!==r&&ln()!==r?((e=hv())===r&&(e=null),e!==r&&ln()!==r&&(Pr=X0())!==r&&ln()!==r?((Mr=h())===r&&(Mr=null),Mr===r?(_=Q,Q=r):(Ls=Q,Yn=P,K=hr,kt=ht,Js=e,Ve=Pr,co=Mr,Tr={constraint:(kn=Tr)&&kn.constraint,definition:Ve,constraint_type:K&&`${Yn.toLowerCase()} ${K.toLowerCase()}`||Yn.toLowerCase(),keyword:kn&&kn.keyword,index_type:Js,index:kt,resource:"constraint",index_options:co},Q=Tr)):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r);var kn,Yn,K,kt,Js,Ve,co;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e;(Tr=ja())===r&&(Tr=null),Tr!==r&&ln()!==r?(t.substr(_,11).toLowerCase()==="foreign key"?(P=t.substr(_,11),_+=11):(P=r,Qt===0&&ys(Vi)),P!==r&&ln()!==r?((hr=El())===r&&(hr=null),hr!==r&&ln()!==r&&(ht=X0())!==r&&ln()!==r?((e=Ob())===r&&(e=null),e===r?(_=Q,Q=r):(Ls=Q,Mr=P,kn=hr,Yn=ht,K=e,Tr={constraint:(Pr=Tr)&&Pr.constraint,definition:Yn,constraint_type:Mr,keyword:Pr&&Pr.keyword,index:kn,resource:"constraint",reference_definition:K},Q=Tr)):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r);var Pr,Mr,kn,Yn,K;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e,Pr,Mr,kn,Yn;return(Tr=ja())===r&&(Tr=null),Tr!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="check"?(P=t.substr(_,5),_+=5):(P=r,Qt===0&&ys(Uc)),P!==r&&ln()!==r?(hr=_,t.substr(_,3).toLowerCase()==="not"?(ht=t.substr(_,3),_+=3):(ht=r,Qt===0&&ys(jl)),ht!==r&&(e=ln())!==r?(t.substr(_,3).toLowerCase()==="for"?(Pr=t.substr(_,3),_+=3):(Pr=r,Qt===0&&ys(Oi)),Pr!==r&&(Mr=ln())!==r?(t.substr(_,11).toLowerCase()==="replication"?(kn=t.substr(_,11),_+=11):(kn=r,Qt===0&&ys(bb)),kn!==r&&(Yn=ln())!==r?hr=ht=[ht,e,Pr,Mr,kn,Yn]:(_=hr,hr=r)):(_=hr,hr=r)):(_=hr,hr=r),hr===r&&(hr=null),hr!==r&&(ht=zu())!==r&&(e=ln())!==r&&(Pr=Ot())!==r&&(Mr=ln())!==r&&(kn=Yu())!==r?(Ls=Q,Tr=(function(K,kt,Js,Ve){return{constraint_type:kt.toLowerCase(),keyword:K&&K.keyword,constraint:K&&K.constraint,index_type:Js&&{keyword:"not for replication"},definition:[Ve],resource:"constraint"}})(Tr,P,hr,Pr),Q=Tr):(_=Q,Q=r)):(_=Q,Q=r)):(_=Q,Q=r),Q})()),Y}function ja(){var Y,Q,Tr;return Y=_,(Q=ka())!==r&&ln()!==r?((Tr=We())===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(P,hr){return{keyword:P.toLowerCase(),constraint:hr}})(Q,Tr))):(_=Y,Y=r),Y}function Ob(){var Y,Q,Tr,P,hr,ht,e,Pr,Mr,kn;return Y=_,(Q=(function(){var Yn=_,K,kt,Js;return t.substr(_,10).toLowerCase()==="references"?(K=t.substr(_,10),_+=10):(K=r,Qt===0&&ys(Hp)),K===r?(_=Yn,Yn=r):(kt=_,Qt++,Js=Ye(),Qt--,Js===r?kt=void 0:(_=kt,kt=r),kt===r?(_=Yn,Yn=r):(Ls=Yn,Yn=K="REFERENCES")),Yn})())!==r&&ln()!==r&&(Tr=Xl())!==r&&ln()!==r&&(P=X0())!==r&&ln()!==r?(t.substr(_,10).toLowerCase()==="match full"?(hr=t.substr(_,10),_+=10):(hr=r,Qt===0&&ys(zc)),hr===r&&(t.substr(_,13).toLowerCase()==="match partial"?(hr=t.substr(_,13),_+=13):(hr=r,Qt===0&&ys(kc)),hr===r&&(t.substr(_,12).toLowerCase()==="match simple"?(hr=t.substr(_,12),_+=12):(hr=r,Qt===0&&ys(vb)))),hr===r&&(hr=null),hr!==r&&ln()!==r?((ht=jf())===r&&(ht=null),ht!==r&&ln()!==r?((e=jf())===r&&(e=null),e===r?(_=Y,Y=r):(Ls=Y,Pr=hr,Mr=ht,kn=e,Y=Q={definition:P,table:Tr,keyword:Q.toLowerCase(),match:Pr&&Pr.toLowerCase(),on_action:[Mr,kn].filter(Yn=>Yn)})):(_=Y,Y=r)):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,(Q=jf())!==r&&(Ls=Y,Q={on_action:[Q]}),Y=Q),Y}function jf(){var Y,Q,Tr,P;return Y=_,h0()!==r&&ln()!==r?((Q=fa())===r&&(Q=Ci()),Q!==r&&ln()!==r&&(Tr=(function(){var hr=_,ht,e;return(ht=ia())!==r&&ln()!==r&&zu()!==r&&ln()!==r?((e=U0())===r&&(e=null),e!==r&&ln()!==r&&Yu()!==r?(Ls=hr,hr=ht={type:"function",name:{name:[{type:"origin",value:ht}]},args:e}):(_=hr,hr=r)):(_=hr,hr=r),hr===r&&(hr=_,t.substr(_,8).toLowerCase()==="restrict"?(ht=t.substr(_,8),_+=8):(ht=r,Qt===0&&ys(Zc)),ht===r&&(t.substr(_,7).toLowerCase()==="cascade"?(ht=t.substr(_,7),_+=7):(ht=r,Qt===0&&ys(nl)),ht===r&&(t.substr(_,8).toLowerCase()==="set null"?(ht=t.substr(_,8),_+=8):(ht=r,Qt===0&&ys(Xf)),ht===r&&(t.substr(_,9).toLowerCase()==="no action"?(ht=t.substr(_,9),_+=9):(ht=r,Qt===0&&ys(gl)),ht===r&&(t.substr(_,11).toLowerCase()==="set default"?(ht=t.substr(_,11),_+=11):(ht=r,Qt===0&&ys(lf)),ht===r&&(ht=ia()))))),ht!==r&&(Ls=hr,ht={type:"origin",value:ht.toLowerCase()}),hr=ht),hr})())!==r?(Ls=Y,P=Tr,Y={type:"on "+Q[0].toLowerCase(),value:P}):(_=Y,Y=r)):(_=Y,Y=r),Y}function is(){var Y,Q,Tr,P,hr,ht,e,Pr,Mr;return Y=_,(Q=Tf())===r&&(Q=null),Q!==r&&ln()!==r?((Tr=(function(){var kn,Yn,K;return kn=_,t.substr(_,9).toLowerCase()==="character"?(Yn=t.substr(_,9),_+=9):(Yn=r,Qt===0&&ys(Jc)),Yn!==r&&ln()!==r?(t.substr(_,3).toLowerCase()==="set"?(K=t.substr(_,3),_+=3):(K=r,Qt===0&&ys(Qc)),K===r?(_=kn,kn=r):(Ls=kn,kn=Yn="CHARACTER SET")):(_=kn,kn=r),kn})())===r&&(t.substr(_,7).toLowerCase()==="charset"?(Tr=t.substr(_,7),_+=7):(Tr=r,Qt===0&&ys(gv)),Tr===r&&(t.substr(_,7).toLowerCase()==="collate"?(Tr=t.substr(_,7),_+=7):(Tr=r,Qt===0&&ys(g0)))),Tr!==r&&ln()!==r?((P=Jt())===r&&(P=null),P!==r&&ln()!==r&&(hr=ti())!==r?(Ls=Y,e=Tr,Pr=P,Mr=hr,Y=Q={keyword:(ht=Q)&&`${ht[0].toLowerCase()} ${e.toLowerCase()}`||e.toLowerCase(),symbol:Pr,value:Mr}):(_=Y,Y=r)):(_=Y,Y=r)):(_=Y,Y=r),Y}function el(){var Y,Q,Tr,P,hr,ht,e,Pr,Mr;return Y=_,t.substr(_,14).toLowerCase()==="auto_increment"?(Q=t.substr(_,14),_+=14):(Q=r,Qt===0&&ys(ou)),Q===r&&(t.substr(_,14).toLowerCase()==="avg_row_length"?(Q=t.substr(_,14),_+=14):(Q=r,Qt===0&&ys(Ki)),Q===r&&(t.substr(_,14).toLowerCase()==="key_block_size"?(Q=t.substr(_,14),_+=14):(Q=r,Qt===0&&ys(Pb)),Q===r&&(t.substr(_,8).toLowerCase()==="max_rows"?(Q=t.substr(_,8),_+=8):(Q=r,Qt===0&&ys(ei)),Q===r&&(t.substr(_,8).toLowerCase()==="min_rows"?(Q=t.substr(_,8),_+=8):(Q=r,Qt===0&&ys(pb)),Q===r&&(t.substr(_,18).toLowerCase()==="stats_sample_pages"?(Q=t.substr(_,18),_+=18):(Q=r,Qt===0&&ys(j0))))))),Q!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r&&(P=lc())!==r?(Ls=Y,Pr=Tr,Mr=P,Y=Q={keyword:Q.toLowerCase(),symbol:Pr,value:Mr.value}):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=is())===r&&(Y=_,(Q=yn())===r&&(t.substr(_,10).toLowerCase()==="connection"?(Q=t.substr(_,10),_+=10):(Q=r,Qt===0&&ys(B0))),Q!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r&&(P=y0())!==r?(Ls=Y,Y=Q=(function(kn,Yn,K){return{keyword:kn.toLowerCase(),symbol:Yn,value:`'${K.value}'`}})(Q,Tr,P)):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,t.substr(_,11).toLowerCase()==="compression"?(Q=t.substr(_,11),_+=11):(Q=r,Qt===0&&ys(Mc)),Q!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r?(P=_,t.charCodeAt(_)===39?(hr="'",_++):(hr=r,Qt===0&&ys(Cl)),hr===r?(_=P,P=r):(t.substr(_,4).toLowerCase()==="zlib"?(ht=t.substr(_,4),_+=4):(ht=r,Qt===0&&ys($u)),ht===r&&(t.substr(_,3).toLowerCase()==="lz4"?(ht=t.substr(_,3),_+=3):(ht=r,Qt===0&&ys(r0)),ht===r&&(t.substr(_,4).toLowerCase()==="none"?(ht=t.substr(_,4),_+=4):(ht=r,Qt===0&&ys(ji)))),ht===r?(_=P,P=r):(t.charCodeAt(_)===39?(e="'",_++):(e=r,Qt===0&&ys(Cl)),e===r?(_=P,P=r):P=hr=[hr,ht,e])),P===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(kn,Yn,K){return{keyword:kn.toLowerCase(),symbol:Yn,value:K.join("").toUpperCase()}})(Q,Tr,P))):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,t.substr(_,6).toLowerCase()==="engine"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(zn)),Q!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r&&(P=ul())!==r?(Ls=Y,Y=Q=(function(kn,Yn,K){return{keyword:kn.toLowerCase(),symbol:Yn,value:K.toUpperCase()}})(Q,Tr,P)):(_=Y,Y=r)):(_=Y,Y=r)))),Y}function Ti(){var Y,Q,Tr,P,hr;return Y=_,(Q=Bf())!==r&&ln()!==r&&(Tr=(function(){var ht,e,Pr;return ht=_,t.substr(_,4).toLowerCase()==="read"?(e=t.substr(_,4),_+=4):(e=r,Qt===0&&ys(Ss)),e!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="local"?(Pr=t.substr(_,5),_+=5):(Pr=r,Qt===0&&ys(te)),Pr===r&&(Pr=null),Pr===r?(_=ht,ht=r):(Ls=ht,ht=e={type:"read",suffix:Pr&&"local"})):(_=ht,ht=r),ht===r&&(ht=_,t.substr(_,12).toLowerCase()==="low_priority"?(e=t.substr(_,12),_+=12):(e=r,Qt===0&&ys(ce)),e===r&&(e=null),e!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="write"?(Pr=t.substr(_,5),_+=5):(Pr=r,Qt===0&&ys(He)),Pr===r?(_=ht,ht=r):(Ls=ht,ht=e={type:"write",prefix:e&&"low_priority"})):(_=ht,ht=r)),ht})())!==r?(Ls=Y,P=Q,hr=Tr,Un.add(`lock::${P.db}::${P.table}`),Y=Q={table:P,lock_type:hr}):(_=Y,Y=r),Y}function wv(){var Y,Q,Tr,P,hr,ht,e;return(Y=(function(){var Pr=_,Mr,kn,Yn,K,kt,Js,Ve,co,_t,Eo,ao,zo;return(Mr=ln())===r?(_=Pr,Pr=r):((kn=(function(){var no,Ke,yo,lo,Co,Au,la,da,Ia,Wt,ta,li;if(no=_,(Ke=Ra())!==r)if(ln()!==r)if((yo=yf())!==r){for(lo=[],Co=_,(Au=ln())!==r&&(la=Ou())!==r&&(da=ln())!==r&&(Ia=yf())!==r?Co=Au=[Au,la,da,Ia]:(_=Co,Co=r);Co!==r;)lo.push(Co),Co=_,(Au=ln())!==r&&(la=Ou())!==r&&(da=ln())!==r&&(Ia=yf())!==r?Co=Au=[Au,la,da,Ia]:(_=Co,Co=r);lo===r?(_=no,no=r):(Ls=no,Ke=Ae(yo,lo),no=Ke)}else _=no,no=r;else _=no,no=r;else _=no,no=r;if(no===r)if(no=_,(Ke=ln())!==r)if(Ra()!==r)if((yo=ln())!==r)if((lo=(function(){var Le=_,rl,xu,si;return t.substr(_,9).toLowerCase()==="recursive"?(rl=t.substr(_,9),_+=9):(rl=r,Qt===0&&ys(ko)),rl===r?(_=Le,Le=r):(xu=_,Qt++,si=Ye(),Qt--,si===r?xu=void 0:(_=xu,xu=r),xu===r?(_=Le,Le=r):Le=rl=[rl,xu]),Le})())!==r)if((Co=ln())!==r)if((Au=yf())!==r){for(la=[],da=_,(Ia=ln())!==r&&(Wt=Ou())!==r&&(ta=ln())!==r&&(li=yf())!==r?da=Ia=[Ia,Wt,ta,li]:(_=da,da=r);da!==r;)la.push(da),da=_,(Ia=ln())!==r&&(Wt=Ou())!==r&&(ta=ln())!==r&&(li=yf())!==r?da=Ia=[Ia,Wt,ta,li]:(_=da,da=r);la===r?(_=no,no=r):(Ls=no,Ml=la,(ea=Au).recursive=!0,Ke=Fr(ea,Ml),no=Ke)}else _=no,no=r;else _=no,no=r;else _=no,no=r;else _=no,no=r;else _=no,no=r;else _=no,no=r;var ea,Ml;return no})())===r&&(kn=null),kn!==r&&ln()!==r&&(function(){var no=_,Ke,yo,lo;return t.substr(_,6).toLowerCase()==="select"?(Ke=t.substr(_,6),_+=6):(Ke=r,Qt===0&&ys(ye)),Ke===r?(_=no,no=r):(yo=_,Qt++,lo=Ye(),Qt--,lo===r?yo=void 0:(_=yo,yo=r),yo===r?(_=no,no=r):no=Ke=[Ke,yo]),no})()!==r&&Oe()!==r?((Yn=(function(){var no,Ke,yo,lo,Co,Au;if(no=_,(Ke=p0())!==r){for(yo=[],lo=_,(Co=ln())!==r&&(Au=p0())!==r?lo=Co=[Co,Au]:(_=lo,lo=r);lo!==r;)yo.push(lo),lo=_,(Co=ln())!==r&&(Au=p0())!==r?lo=Co=[Co,Au]:(_=lo,lo=r);yo===r?(_=no,no=r):(Ls=no,Ke=(function(la,da){let Ia=[la];for(let Wt=0,ta=da.length;Wt<ta;++Wt)Ia.push(da[Wt][1]);return Ia})(Ke,yo),no=Ke)}else _=no,no=r;return no})())===r&&(Yn=null),Yn!==r&&ln()!==r?((K=Il())===r&&(K=null),K!==r&&ln()!==r&&(kt=up())!==r&&ln()!==r?((Js=yv())===r&&(Js=null),Js!==r&&ln()!==r?((Ve=eb())===r&&(Ve=null),Ve!==r&&ln()!==r?((co=(function(){var no=_,Ke,yo;return(Ke=(function(){var lo=_,Co,Au,la;return t.substr(_,5).toLowerCase()==="group"?(Co=t.substr(_,5),_+=5):(Co=r,Qt===0&&ys(q0)),Co===r?(_=lo,lo=r):(Au=_,Qt++,la=Ye(),Qt--,la===r?Au=void 0:(_=Au,Au=r),Au===r?(_=lo,lo=r):lo=Co=[Co,Au]),lo})())!==r&&ln()!==r&&or()!==r&&ln()!==r&&(yo=U0())!==r?(Ls=no,Ke={columns:yo.value},no=Ke):(_=no,no=r),no})())===r&&(co=null),co!==r&&ln()!==r?((_t=(function(){var no=_,Ke;return(function(){var yo=_,lo,Co,Au;return t.substr(_,6).toLowerCase()==="having"?(lo=t.substr(_,6),_+=6):(lo=r,Qt===0&&ys(b0)),lo===r?(_=yo,yo=r):(Co=_,Qt++,Au=Ye(),Qt--,Au===r?Co=void 0:(_=Co,Co=r),Co===r?(_=yo,yo=r):yo=lo=[lo,Co]),yo})()!==r&&ln()!==r&&(Ke=hs())!==r?(Ls=no,no=Ke):(_=no,no=r),no})())===r&&(_t=null),_t!==r&&ln()!==r?((Eo=ns())===r&&(Eo=null),Eo!==r&&ln()!==r?((ao=Ub())===r&&(ao=null),ao===r?(_=Pr,Pr=r):((zo=(function(){var no=_,Ke;return Ra()!==r&&ln()!==r?(t.substr(_,2).toLowerCase()==="cs"?(Ke=t.substr(_,2),_+=2):(Ke=r,Qt===0&&ys(Rv)),Ke===r&&(t.substr(_,2).toLowerCase()==="ur"?(Ke=t.substr(_,2),_+=2):(Ke=r,Qt===0&&ys(nv)),Ke===r&&(t.substr(_,2).toLowerCase()==="rs"?(Ke=t.substr(_,2),_+=2):(Ke=r,Qt===0&&ys(sv)),Ke===r&&(t.substr(_,2).toLowerCase()==="rr"?(Ke=t.substr(_,2),_+=2):(Ke=r,Qt===0&&ys(ev))))),Ke===r?(_=no,no=r):(Ls=no,no={type:"isolation",keyword:"with",expr:{type:"origin",value:Ke}})):(_=no,no=r),no})())===r&&(zo=null),zo!==r&&ln()!==r?(Ls=Pr,Mr=(function(no,Ke,yo,lo,Co,Au,la,da,Ia,Wt,ta){return Co&&Co.forEach(li=>li.table&&Un.add(`select::${li.db}::${li.table}`)),{with:no,type:"select",options:Ke,distinct:yo,columns:lo,from:Co,where:Au,groupby:la,having:da,orderby:Ia,limit:Wt,isolation:ta}})(kn,Yn,K,kt,Js,Ve,co,_t,Eo,ao,zo),Pr=Mr):(_=Pr,Pr=r))):(_=Pr,Pr=r)):(_=Pr,Pr=r)):(_=Pr,Pr=r)):(_=Pr,Pr=r)):(_=Pr,Pr=r)):(_=Pr,Pr=r)):(_=Pr,Pr=r)):(_=Pr,Pr=r)),Pr})())===r&&(Y=_,Q=_,t.charCodeAt(_)===40?(Tr="(",_++):(Tr=r,Qt===0&&ys(Qe)),Tr!==r&&(P=ln())!==r&&(hr=wv())!==r&&(ht=ln())!==r?(t.charCodeAt(_)===41?(e=")",_++):(e=r,Qt===0&&ys(uo)),e===r?(_=Q,Q=r):Q=Tr=[Tr,P,hr,ht,e]):(_=Q,Q=r),Q!==r&&(Ls=Y,Q={...Q[2],parentheses_symbol:!0}),Y=Q),Y}function yf(){var Y,Q,Tr,P;return Y=_,(Q=y0())===r&&(Q=ul()),Q!==r&&ln()!==r?((Tr=X0())===r&&(Tr=null),Tr!==r&&ln()!==r&&Zl()!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(P=wf())!==r&&ln()!==r&&Yu()!==r?(Ls=Y,Y=Q=(function(hr,ht,e){return typeof hr=="string"&&(hr={type:"default",value:hr}),{name:hr,stmt:e,columns:ht}})(Q,Tr,P)):(_=Y,Y=r)):(_=Y,Y=r),Y}function X0(){var Y,Q;return Y=_,zu()!==r&&ln()!==r&&(Q=p())!==r&&ln()!==r&&Yu()!==r?(Ls=Y,Y=Q):(_=Y,Y=r),Y}function p0(){var Y,Q;return Y=_,(Q=(function(){var Tr;return t.substr(_,19).toLowerCase()==="sql_calc_found_rows"?(Tr=t.substr(_,19),_+=19):(Tr=r,Qt===0&&ys(gp)),Tr})())===r&&((Q=(function(){var Tr;return t.substr(_,9).toLowerCase()==="sql_cache"?(Tr=t.substr(_,9),_+=9):(Tr=r,Qt===0&&ys(sd)),Tr})())===r&&(Q=(function(){var Tr;return t.substr(_,12).toLowerCase()==="sql_no_cache"?(Tr=t.substr(_,12),_+=12):(Tr=r,Qt===0&&ys(ed)),Tr})()),Q===r&&(Q=(function(){var Tr;return t.substr(_,14).toLowerCase()==="sql_big_result"?(Tr=t.substr(_,14),_+=14):(Tr=r,Qt===0&&ys(od)),Tr})())===r&&(Q=(function(){var Tr;return t.substr(_,16).toLowerCase()==="sql_small_result"?(Tr=t.substr(_,16),_+=16):(Tr=r,Qt===0&&ys(Yp)),Tr})())===r&&(Q=(function(){var Tr;return t.substr(_,17).toLowerCase()==="sql_buffer_result"?(Tr=t.substr(_,17),_+=17):(Tr=r,Qt===0&&ys(ud)),Tr})())),Q!==r&&(Ls=Y,Q=Q),Y=Q}function up(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=ju())===r&&(Q=_,(Tr=il())===r?(_=Q,Q=r):(P=_,Qt++,hr=Ye(),Qt--,hr===r?P=void 0:(_=P,P=r),P===r?(_=Q,Q=r):Q=Tr=[Tr,P]),Q===r&&(Q=il())),Q!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=xb())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=xb())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Mr,kn){u.add("select::null::(.*)");let Yn={expr:{type:"column_ref",table:null,column:"*"},as:null};return kn&&kn.length>0?Fr(Yn,kn):[Yn]})(0,Tr))}else _=Y,Y=r;if(Y===r)if(Y=_,(Q=xb())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=xb())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=xb())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Ae(Q,Tr))}else _=Y,Y=r;return Y}function xb(){var Y,Q,Tr,P,hr,ht,e;return Y=_,Q=_,(Tr=We())!==r&&(P=ln())!==r&&(hr=Ua())!==r?Q=Tr=[Tr,P,hr]:(_=Q,Q=r),Q===r&&(Q=null),Q!==r&&(Tr=ln())!==r&&(P=il())!==r?(Ls=Y,Y=Q=(function(Pr){let Mr=Pr&&Pr[0]||null;return u.add(`select::${Mr}::(.*)`),{expr:{type:"column_ref",table:Mr,column:"*"},as:null}})(Q)):(_=Y,Y=r),Y===r&&(Y=_,(Q=(function(){var Pr,Mr,kn,Yn,K,kt,Js,Ve;if(Pr=_,(Mr=Ot())!==r){for(kn=[],Yn=_,(K=ln())===r?(_=Yn,Yn=r):((kt=Ri())===r&&(kt=qu())===r&&(kt=Ha()),kt!==r&&(Js=ln())!==r&&(Ve=Ot())!==r?Yn=K=[K,kt,Js,Ve]:(_=Yn,Yn=r));Yn!==r;)kn.push(Yn),Yn=_,(K=ln())===r?(_=Yn,Yn=r):((kt=Ri())===r&&(kt=qu())===r&&(kt=Ha()),kt!==r&&(Js=ln())!==r&&(Ve=Ot())!==r?Yn=K=[K,kt,Js,Ve]:(_=Yn,Yn=r));kn===r?(_=Pr,Pr=r):(Ls=Pr,Mr=(function(co,_t){let Eo=co.ast;if(Eo&&Eo.type==="select"&&(!(co.parentheses_symbol||co.parentheses||co.ast.parentheses||co.ast.parentheses_symbol)||Eo.columns.length!==1||Eo.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!_t||_t.length===0)return co;let ao=_t.length,zo=_t[ao-1][3];for(let no=ao-1;no>=0;no--){let Ke=no===0?co:_t[no-1][3];zo=Lr(_t[no][1],Ke,zo)}return zo})(Mr,kn),Pr=Mr)}else _=Pr,Pr=r;return Pr})())!==r&&(Tr=ln())!==r?((P=Zb())===r&&(P=null),P===r?(_=Y,Y=r):(Ls=Y,e=P,(ht=Q).type!=="double_quote_string"&&ht.type!=="single_quote_string"||u.add("select::null::"+ht.value),Y=Q={expr:ht,as:e})):(_=Y,Y=r)),Y}function Zb(){var Y,Q,Tr;return Y=_,(Q=Zl())!==r&&ln()!==r&&(Tr=(function(){var P=_,hr;return(hr=ul())===r?(_=P,P=r):(Ls=_,((function(ht){if(Ht[ht.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(ht)+" is a reserved word, can not as alias clause");return!1})(hr)?r:void 0)===r?(_=P,P=r):(Ls=P,P=hr=hr)),P===r&&(P=_,(hr=V0())!==r&&(Ls=P,hr=hr),P=hr),P})())!==r?(Ls=Y,Y=Q=Tr):(_=Y,Y=r),Y===r&&(Y=_,(Q=Zl())===r&&(Q=null),Q!==r&&ln()!==r&&(Tr=We())!==r?(Ls=Y,Y=Q=Tr):(_=Y,Y=r)),Y}function yv(){var Y,Q;return Y=_,(function(){var Tr=_,P,hr,ht;return t.substr(_,4).toLowerCase()==="from"?(P=t.substr(_,4),_+=4):(P=r,Qt===0&&ys(ua)),P===r?(_=Tr,Tr=r):(hr=_,Qt++,ht=Ye(),Qt--,ht===r?hr=void 0:(_=hr,hr=r),hr===r?(_=Tr,Tr=r):Tr=P=[P,hr]),Tr})()!==r&&ln()!==r&&(Q=Xl())!==r?(Ls=Y,Y=Q):(_=Y,Y=r),Y}function Jb(){var Y,Q,Tr;return Y=_,(Q=Us())!==r&&ln()!==r&&If()!==r&&ln()!==r&&(Tr=Us())!==r?(Ls=Y,Y=Q=[Q,Tr]):(_=Y,Y=r),Y}function hv(){var Y,Q;return Y=_,xa()!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="btree"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(Ao)),Q===r&&(t.substr(_,4).toLowerCase()==="hash"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Pu))),Q===r?(_=Y,Y=r):(Ls=Y,Y={keyword:"using",type:Q.toLowerCase()})):(_=Y,Y=r),Y}function h(){var Y,Q,Tr,P,hr,ht;if(Y=_,(Q=ss())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=ss())!==r?P=hr=[hr,ht]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=ss())!==r?P=hr=[hr,ht]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(e,Pr){let Mr=[e];for(let kn=0;kn<Pr.length;kn++)Mr.push(Pr[kn][1]);return Mr})(Q,Tr))}else _=Y,Y=r;return Y}function ss(){var Y,Q,Tr,P,hr,ht;return Y=_,(Q=(function(){var e=_,Pr,Mr,kn;return t.substr(_,14).toLowerCase()==="key_block_size"?(Pr=t.substr(_,14),_+=14):(Pr=r,Qt===0&&ys(Pb)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):(Ls=e,e=Pr="KEY_BLOCK_SIZE")),e})())!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r&&(P=lc())!==r?(Ls=Y,hr=Tr,ht=P,Y=Q={type:Q.toLowerCase(),symbol:hr,expr:ht}):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=hv())===r&&(Y=_,t.substr(_,4).toLowerCase()==="with"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Ca)),Q!==r&&ln()!==r?(t.substr(_,6).toLowerCase()==="parser"?(Tr=t.substr(_,6),_+=6):(Tr=r,Qt===0&&ys(ku)),Tr!==r&&ln()!==r&&(P=ul())!==r?(Ls=Y,Y=Q={type:"with parser",expr:P}):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,t.substr(_,7).toLowerCase()==="visible"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(ca)),Q===r&&(t.substr(_,9).toLowerCase()==="invisible"?(Q=t.substr(_,9),_+=9):(Q=r,Qt===0&&ys(na))),Q!==r&&(Ls=Y,Q=(function(e){return{type:e.toLowerCase(),expr:e.toLowerCase()}})(Q)),(Y=Q)===r&&(Y=Ya()))),Y}function Xl(){var Y,Q,Tr,P;if(Y=_,(Q=Bf())!==r){for(Tr=[],P=d0();P!==r;)Tr.push(P),P=d0();Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Qa(Q,Tr))}else _=Y,Y=r;return Y}function d0(){var Y,Q,Tr;return Y=_,ln()!==r&&(Q=Ou())!==r&&ln()!==r&&(Tr=Bf())!==r?(Ls=Y,Y=Tr):(_=Y,Y=r),Y===r&&(Y=_,ln()!==r&&(Q=(function(){var P,hr,ht,e,Pr,Mr,kn,Yn,K,kt,Js;if(P=_,(hr=jt())!==r)if(ln()!==r)if((ht=Bf())!==r)if(ln()!==r)if((e=xa())!==r)if(ln()!==r)if(zu()!==r)if(ln()!==r)if((Pr=ti())!==r){for(Mr=[],kn=_,(Yn=ln())!==r&&(K=Ou())!==r&&(kt=ln())!==r&&(Js=ti())!==r?kn=Yn=[Yn,K,kt,Js]:(_=kn,kn=r);kn!==r;)Mr.push(kn),kn=_,(Yn=ln())!==r&&(K=Ou())!==r&&(kt=ln())!==r&&(Js=ti())!==r?kn=Yn=[Yn,K,kt,Js]:(_=kn,kn=r);Mr!==r&&(kn=ln())!==r&&(Yn=Yu())!==r?(Ls=P,Ve=hr,_t=Pr,Eo=Mr,(co=ht).join=Ve,co.using=Fr(_t,Eo),P=hr=co):(_=P,P=r)}else _=P,P=r;else _=P,P=r;else _=P,P=r;else _=P,P=r;else _=P,P=r;else _=P,P=r;else _=P,P=r;else _=P,P=r;else _=P,P=r;var Ve,co,_t,Eo;return P===r&&(P=_,(hr=jt())!==r&&ln()!==r&&(ht=Bf())!==r&&ln()!==r?((e=sb())===r&&(e=null),e===r?(_=P,P=r):(Ls=P,hr=(function(ao,zo,no){return zo.join=ao,zo.on=no,zo})(hr,ht,e),P=hr)):(_=P,P=r),P===r&&(P=_,(hr=jt())===r&&(hr=zb()),hr!==r&&ln()!==r&&(ht=zu())!==r&&ln()!==r&&(e=wf())!==r&&ln()!==r&&Yu()!==r&&ln()!==r?((Pr=Zb())===r&&(Pr=null),Pr!==r&&(Mr=ln())!==r?((kn=sb())===r&&(kn=null),kn===r?(_=P,P=r):(Ls=P,hr=(function(ao,zo,no,Ke){return zo.parentheses=!0,{expr:zo,as:no,join:ao,on:Ke}})(hr,e,Pr,kn),P=hr)):(_=P,P=r)):(_=P,P=r))),P})())!==r?(Ls=Y,Y=Q):(_=Y,Y=r)),Y}function Bf(){var Y,Q,Tr,P,hr,ht;return Y=_,(Q=(function(){var e;return t.substr(_,4).toLowerCase()==="dual"?(e=t.substr(_,4),_+=4):(e=r,Qt===0&&ys(jv)),e})())!==r&&(Ls=Y,Q={type:"dual"}),(Y=Q)===r&&(Y=_,(Q=Us())!==r&&ln()!==r?((Tr=Zb())===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,ht=Tr,Y=Q=(hr=Q).type==="var"?(hr.as=ht,hr):{db:hr.db,table:hr.table,as:ht})):(_=Y,Y=r),Y===r&&(Y=_,(Q=zu())!==r&&ln()!==r&&(Tr=wf())!==r&&ln()!==r&&Yu()!==r&&ln()!==r?((P=Zb())===r&&(P=null),P===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(e,Pr){return e.parentheses=!0,{expr:e,as:Pr}})(Tr,P))):(_=Y,Y=r))),Y}function jt(){var Y,Q,Tr,P;return Y=_,(Q=(function(){var hr=_,ht,e,Pr;return t.substr(_,4).toLowerCase()==="left"?(ht=t.substr(_,4),_+=4):(ht=r,Qt===0&&ys(l0)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):hr=ht=[ht,e]),hr})())!==r&&(Tr=ln())!==r?((P=st())===r&&(P=null),P!==r&&ln()!==r&&n()!==r?(Ls=Y,Y=Q="LEFT JOIN"):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,(Q=(function(){var hr=_,ht,e,Pr;return t.substr(_,5).toLowerCase()==="right"?(ht=t.substr(_,5),_+=5):(ht=r,Qt===0&&ys(Ov)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):hr=ht=[ht,e]),hr})())!==r&&(Tr=ln())!==r?((P=st())===r&&(P=null),P!==r&&ln()!==r&&n()!==r?(Ls=Y,Y=Q="RIGHT JOIN"):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,(Q=(function(){var hr=_,ht,e,Pr;return t.substr(_,4).toLowerCase()==="full"?(ht=t.substr(_,4),_+=4):(ht=r,Qt===0&&ys(lv)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):hr=ht=[ht,e]),hr})())!==r&&(Tr=ln())!==r?((P=st())===r&&(P=null),P!==r&&ln()!==r&&n()!==r?(Ls=Y,Y=Q="FULL JOIN"):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,Q=_,(Tr=(function(){var hr=_,ht,e,Pr;return t.substr(_,5).toLowerCase()==="inner"?(ht=t.substr(_,5),_+=5):(ht=r,Qt===0&&ys(fi)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):hr=ht=[ht,e]),hr})())!==r&&(P=ln())!==r?Q=Tr=[Tr,P]:(_=Q,Q=r),Q===r&&(Q=null),Q!==r&&(Tr=n())!==r?(Ls=Y,Y=Q="INNER JOIN"):(_=Y,Y=r)))),Y}function Us(){var Y,Q,Tr,P,hr,ht,e,Pr;return Y=_,(Q=We())===r?(_=Y,Y=r):(Tr=_,(P=ln())!==r&&(hr=Ua())!==r&&(ht=ln())!==r&&(e=We())!==r?Tr=P=[P,hr,ht,e]:(_=Tr,Tr=r),Tr===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Mr,kn){let Yn={db:null,table:Mr};return kn!==null&&(Yn.db=Mr,Yn.table=kn[3]),Yn})(Q,Tr))),Y===r&&(Y=_,(Q=o())!==r&&(Ls=Y,(Pr=Q).db=null,Pr.table=Pr.name,Q=Pr),Y=Q),Y}function ol(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=Ot())!==r){for(Tr=[],P=_,(hr=ln())===r?(_=P,P=r):((ht=Ri())===r&&(ht=qu()),ht!==r&&(e=ln())!==r&&(Pr=Ot())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r));P!==r;)Tr.push(P),P=_,(hr=ln())===r?(_=P,P=r):((ht=Ri())===r&&(ht=qu()),ht!==r&&(e=ln())!==r&&(Pr=Ot())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r));Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Mr,kn){let Yn=kn.length,K=Mr;for(let kt=0;kt<Yn;++kt)K=Lr(kn[kt][1],K,kn[kt][3]);return K})(Q,Tr))}else _=Y,Y=r;return Y}function sb(){var Y,Q;return Y=_,h0()!==r&&ln()!==r&&(Q=hs())!==r?(Ls=Y,Y=Q):(_=Y,Y=r),Y}function eb(){var Y,Q;return Y=_,(function(){var Tr=_,P,hr,ht;return t.substr(_,5).toLowerCase()==="where"?(P=t.substr(_,5),_+=5):(P=r,Qt===0&&ys(c0)),P===r?(_=Tr,Tr=r):(hr=_,Qt++,ht=Ye(),Qt--,ht===r?hr=void 0:(_=hr,hr=r),hr===r?(_=Tr,Tr=r):Tr=P=[P,hr]),Tr})()!==r&&ln()!==r&&(Q=hs())!==r?(Ls=Y,Y=Q):(_=Y,Y=r),Y}function p(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=Oa())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=Oa())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=Oa())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Ae(Q,Tr))}else _=Y,Y=r;return Y}function ns(){var Y,Q;return Y=_,(function(){var Tr=_,P,hr,ht;return t.substr(_,5).toLowerCase()==="order"?(P=t.substr(_,5),_+=5):(P=r,Qt===0&&ys(f0)),P===r?(_=Tr,Tr=r):(hr=_,Qt++,ht=Ye(),Qt--,ht===r?hr=void 0:(_=hr,hr=r),hr===r?(_=Tr,Tr=r):Tr=P=[P,hr]),Tr})()!==r&&ln()!==r&&or()!==r&&ln()!==r&&(Q=(function(){var Tr,P,hr,ht,e,Pr,Mr,kn;if(Tr=_,(P=Vl())!==r){for(hr=[],ht=_,(e=ln())!==r&&(Pr=Ou())!==r&&(Mr=ln())!==r&&(kn=Vl())!==r?ht=e=[e,Pr,Mr,kn]:(_=ht,ht=r);ht!==r;)hr.push(ht),ht=_,(e=ln())!==r&&(Pr=Ou())!==r&&(Mr=ln())!==r&&(kn=Vl())!==r?ht=e=[e,Pr,Mr,kn]:(_=ht,ht=r);hr===r?(_=Tr,Tr=r):(Ls=Tr,P=Ae(P,hr),Tr=P)}else _=Tr,Tr=r;return Tr})())!==r?(Ls=Y,Y=Q):(_=Y,Y=r),Y}function Vl(){var Y,Q,Tr;return Y=_,(Q=Ot())!==r&&ln()!==r?((Tr=(function(){var P=_,hr,ht,e;return t.substr(_,4).toLowerCase()==="desc"?(hr=t.substr(_,4),_+=4):(hr=r,Qt===0&&ys(Op)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="DESC")),P})())===r&&(Tr=(function(){var P=_,hr,ht,e;return t.substr(_,3).toLowerCase()==="asc"?(hr=t.substr(_,3),_+=3):(hr=r,Qt===0&&ys(kv)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="ASC")),P})()),Tr===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q={expr:Q,type:Tr})):(_=Y,Y=r),Y}function Hc(){var Y;return(Y=lc())===r&&(Y=ub()),Y}function Ub(){var Y,Q,Tr,P,hr,ht,e,Pr,Mr,kn,Yn,K,kt,Js,Ve;return Y=_,Nt()!==r&&ln()!==r?(t.substr(_,5).toLowerCase()==="first"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(cf)),Q===r&&(t.substr(_,4).toLowerCase()==="last"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(ri)),Q===r&&(t.substr(_,4).toLowerCase()==="next"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(t0)))),Q!==r&&ln()!==r&&(Tr=Hc())!==r&&ln()!==r?(t.substr(_,4).toLowerCase()==="rows"?(P=t.substr(_,4),_+=4):(P=r,Qt===0&&ys(n0)),P===r&&(t.substr(_,3).toLowerCase()==="row"?(P=t.substr(_,3),_+=3):(P=r,Qt===0&&ys(Dc))),P!==r&&(hr=ln())!==r?(t.substr(_,4).toLowerCase()==="only"?(ht=t.substr(_,4),_+=4):(ht=r,Qt===0&&ys(s0)),ht===r?(_=Y,Y=r):(Ls=Y,Js=Tr,Ve=P,Y={fetch:{prefix:[{type:"origin",value:"fetch"},{type:"origin",value:Q.toLowerCase()}],value:Js,suffix:[{type:"origin",value:Ve},{type:"origin",value:"only"}]}})):(_=Y,Y=r)):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,(function(){var co=_,_t,Eo,ao;return t.substr(_,6).toLowerCase()==="offset"?(_t=t.substr(_,6),_+=6):(_t=r,Qt===0&&ys(Sp)),_t===r?(_=co,co=r):(Eo=_,Qt++,ao=Ye(),Qt--,ao===r?Eo=void 0:(_=Eo,Eo=r),Eo===r?(_=co,co=r):(Ls=co,co=_t="OFFSET")),co})()!==r&&ln()!==r&&(Q=Hc())!==r&&ln()!==r?(t.substr(_,4).toLowerCase()==="rows"?(Tr=t.substr(_,4),_+=4):(Tr=r,Qt===0&&ys(n0)),Tr===r&&(Tr=null),Tr!==r&&ln()!==r?(P=_,(hr=Nt())!==r&&(ht=ln())!==r?(t.substr(_,4).toLowerCase()==="next"?(e=t.substr(_,4),_+=4):(e=r,Qt===0&&ys(t0)),e!==r&&(Pr=ln())!==r&&(Mr=Hc())!==r&&(kn=ln())!==r?(t.substr(_,4).toLowerCase()==="rows"?(Yn=t.substr(_,4),_+=4):(Yn=r,Qt===0&&ys(n0)),Yn===r&&(t.substr(_,3).toLowerCase()==="row"?(Yn=t.substr(_,3),_+=3):(Yn=r,Qt===0&&ys(Dc))),Yn!==r&&(K=ln())!==r?(t.substr(_,4).toLowerCase()==="only"?(kt=t.substr(_,4),_+=4):(kt=r,Qt===0&&ys(s0)),kt===r?(_=P,P=r):P=hr=[hr,ht,e,Pr,Mr,kn,Yn,K,kt]):(_=P,P=r)):(_=P,P=r)):(_=P,P=r),P===r&&(P=null),P===r?(_=Y,Y=r):(Ls=Y,Y=(function(co,_t,Eo){let ao={offset:{prefix:[{type:"origin",value:"offset"}],value:co,suffix:[]}};return _t&&(ao.offset.suffix=[{type:"origin",value:"rows"}]),Eo&&(ao.fetch={prefix:[{type:"origin",value:"fetch"},{type:"origin",value:Eo[2].toLowerCase()}],value:Eo[4],suffix:[{type:"origin",value:Eo[6].toLowerCase()},{type:"origin",value:"only"}]}),ao})(Q,Tr,P))):(_=Y,Y=r)):(_=Y,Y=r)),Y}function Ft(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=xs())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=xs())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=xs())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Ae(Q,Tr))}else _=Y,Y=r;return Y}function xs(){var Y,Q,Tr,P,hr,ht,e,Pr;return Y=_,Q=_,(Tr=We())!==r&&(P=ln())!==r&&(hr=Ua())!==r?Q=Tr=[Tr,P,hr]:(_=Q,Q=r),Q===r&&(Q=null),Q!==r&&(Tr=ln())!==r&&(P=Af())!==r&&(hr=ln())!==r?(t.charCodeAt(_)===61?(ht="=",_++):(ht=r,Qt===0&&ys(yc)),ht!==r&&ln()!==r&&(e=Ot())!==r?(Ls=Y,Y=Q=(function(Mr,kn,Yn){return{column:kn,value:Yn,table:Mr&&Mr[0]}})(Q,P,e)):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,Q=_,(Tr=We())!==r&&(P=ln())!==r&&(hr=Ua())!==r?Q=Tr=[Tr,P,hr]:(_=Q,Q=r),Q===r&&(Q=null),Q!==r&&(Tr=ln())!==r&&(P=Af())!==r&&(hr=ln())!==r?(t.charCodeAt(_)===61?(ht="=",_++):(ht=r,Qt===0&&ys(yc)),ht!==r&&ln()!==r&&(e=gi())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(Pr=Oa())!==r&&ln()!==r&&Yu()!==r?(Ls=Y,Y=Q=(function(Mr,kn,Yn){return{column:kn,value:Yn,table:Mr&&Mr[0],keyword:"values"}})(Q,P,Pr)):(_=Y,Y=r)):(_=Y,Y=r)),Y}function Li(){var Y,Q;return(Y=(function(){var Tr=_,P;return gi()!==r&&ln()!==r&&(P=(function(){var hr,ht,e,Pr,Mr,kn,Yn,K;if(hr=_,(ht=kb())!==r){for(e=[],Pr=_,(Mr=ln())!==r&&(kn=Ou())!==r&&(Yn=ln())!==r&&(K=kb())!==r?Pr=Mr=[Mr,kn,Yn,K]:(_=Pr,Pr=r);Pr!==r;)e.push(Pr),Pr=_,(Mr=ln())!==r&&(kn=Ou())!==r&&(Yn=ln())!==r&&(K=kb())!==r?Pr=Mr=[Mr,kn,Yn,K]:(_=Pr,Pr=r);e===r?(_=hr,hr=r):(Ls=hr,ht=Ae(ht,e),hr=ht)}else _=hr,hr=r;return hr})())!==r?(Ls=Tr,Tr={type:"values",values:P}):(_=Tr,Tr=r),Tr})())===r&&(Y=_,(Q=wf())!==r&&(Ls=Y,Q=Q.ast),Y=Q),Y}function Ta(){var Y,Q,Tr,P,hr,ht,e,Pr,Mr;if(Y=_,Ge()!==r)if(ln()!==r)if((Q=zu())!==r)if(ln()!==r)if((Tr=ul())!==r){for(P=[],hr=_,(ht=ln())!==r&&(e=Ou())!==r&&(Pr=ln())!==r&&(Mr=ul())!==r?hr=ht=[ht,e,Pr,Mr]:(_=hr,hr=r);hr!==r;)P.push(hr),hr=_,(ht=ln())!==r&&(e=Ou())!==r&&(Pr=ln())!==r&&(Mr=ul())!==r?hr=ht=[ht,e,Pr,Mr]:(_=hr,hr=r);P!==r&&(hr=ln())!==r&&(ht=Yu())!==r?(Ls=Y,Y=Fr(Tr,P)):(_=Y,Y=r)}else _=Y,Y=r;else _=Y,Y=r;else _=Y,Y=r;else _=Y,Y=r;else _=Y,Y=r;return Y===r&&(Y=_,Ge()!==r&&ln()!==r&&(Q=kb())!==r?(Ls=Y,Y=Q):(_=Y,Y=r)),Y}function x0(){var Y,Q,Tr;return Y=_,h0()!==r&&ln()!==r?(t.substr(_,9).toLowerCase()==="duplicate"?(Q=t.substr(_,9),_+=9):(Q=r,Qt===0&&ys($c)),Q!==r&&ln()!==r&&oi()!==r&&ln()!==r&&Ci()!==r&&ln()!==r&&(Tr=Ft())!==r?(Ls=Y,Y={keyword:"on duplicate key update",set:Tr}):(_=Y,Y=r)):(_=Y,Y=r),Y}function Zn(){var Y,Q;return Y=_,(Q=(function(){var Tr=_,P,hr,ht;return t.substr(_,6).toLowerCase()==="insert"?(P=t.substr(_,6),_+=6):(P=r,Qt===0&&ys(uu)),P===r?(_=Tr,Tr=r):(hr=_,Qt++,ht=Ye(),Qt--,ht===r?hr=void 0:(_=hr,hr=r),hr===r?(_=Tr,Tr=r):Tr=P=[P,hr]),Tr})())!==r&&(Ls=Y,Q="insert"),(Y=Q)===r&&(Y=_,(Q=Zi())!==r&&(Ls=Y,Q="replace"),Y=Q),Y}function kb(){var Y,Q;return Y=_,zu()!==r&&ln()!==r&&(Q=U0())!==r&&ln()!==r&&Yu()!==r?(Ls=Y,Y=Q):(_=Y,Y=r),Y}function U0(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=Ot())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=Ot())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=Ot())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Mr,kn){let Yn={type:"expr_list"};return Yn.value=Fr(Mr,kn),Yn})(Q,Tr))}else _=Y,Y=r;return Y}function C(){var Y,Q,Tr;return Y=_,(function(){var P=_,hr,ht,e;return t.substr(_,8).toLowerCase()==="interval"?(hr=t.substr(_,8),_+=8):(hr=r,Qt===0&&ys(Pv)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="INTERVAL")),P})()!==r&&ln()!==r&&(Q=Ot())!==r&&ln()!==r&&(Tr=(function(){var P;return(P=(function(){var hr=_,ht,e,Pr;return t.substr(_,4).toLowerCase()==="year"?(ht=t.substr(_,4),_+=4):(ht=r,Qt===0&&ys(Gp)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):(Ls=hr,hr=ht="YEAR")),hr})())===r&&(P=(function(){var hr=_,ht,e,Pr;return t.substr(_,5).toLowerCase()==="month"?(ht=t.substr(_,5),_+=5):(ht=r,Qt===0&&ys(Fp)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):(Ls=hr,hr=ht="MONTH")),hr})())===r&&(P=(function(){var hr=_,ht,e,Pr;return t.substr(_,3).toLowerCase()==="day"?(ht=t.substr(_,3),_+=3):(ht=r,Qt===0&&ys(mp)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):(Ls=hr,hr=ht="DAY")),hr})())===r&&(P=(function(){var hr=_,ht,e,Pr;return t.substr(_,4).toLowerCase()==="hour"?(ht=t.substr(_,4),_+=4):(ht=r,Qt===0&&ys(zp)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):(Ls=hr,hr=ht="HOUR")),hr})())===r&&(P=(function(){var hr=_,ht,e,Pr;return t.substr(_,6).toLowerCase()==="minute"?(ht=t.substr(_,6),_+=6):(ht=r,Qt===0&&ys(Zp)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):(Ls=hr,hr=ht="MINUTE")),hr})())===r&&(P=(function(){var hr=_,ht,e,Pr;return t.substr(_,6).toLowerCase()==="second"?(ht=t.substr(_,6),_+=6):(ht=r,Qt===0&&ys(Gv)),ht===r?(_=hr,hr=r):(e=_,Qt++,Pr=Ye(),Qt--,Pr===r?e=void 0:(_=e,e=r),e===r?(_=hr,hr=r):(Ls=hr,hr=ht="SECOND")),hr})()),P})())!==r?(Ls=Y,Y={type:"interval",expr:Q,unit:Tr.toLowerCase()}):(_=Y,Y=r),Y}function Kn(){var Y,Q,Tr,P,hr,ht;if(Y=_,(Q=zi())!==r)if(ln()!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=zi())!==r?P=hr=[hr,ht]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=zi())!==r?P=hr=[hr,ht]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Dn(Q,Tr))}else _=Y,Y=r;else _=Y,Y=r;return Y}function zi(){var Y,Q,Tr;return Y=_,(function(){var P=_,hr,ht,e;return t.substr(_,4).toLowerCase()==="when"?(hr=t.substr(_,4),_+=4):(hr=r,Qt===0&&ys(cv)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):P=hr=[hr,ht]),P})()!==r&&ln()!==r&&(Q=hs())!==r&&ln()!==r&&(function(){var P=_,hr,ht,e;return t.substr(_,4).toLowerCase()==="then"?(hr=t.substr(_,4),_+=4):(hr=r,Qt===0&&ys(Up)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):P=hr=[hr,ht]),P})()!==r&&ln()!==r&&(Tr=Ot())!==r?(Ls=Y,Y={type:"when",cond:Q,result:Tr}):(_=Y,Y=r),Y}function Kl(){var Y,Q;return Y=_,(function(){var Tr=_,P,hr,ht;return t.substr(_,4).toLowerCase()==="else"?(P=t.substr(_,4),_+=4):(P=r,Qt===0&&ys(Xp)),P===r?(_=Tr,Tr=r):(hr=_,Qt++,ht=Ye(),Qt--,ht===r?hr=void 0:(_=hr,hr=r),hr===r?(_=Tr,Tr=r):Tr=P=[P,hr]),Tr})()!==r&&ln()!==r&&(Q=Ot())!==r?(Ls=Y,Y={type:"else",result:Q}):(_=Y,Y=r),Y}function zl(){var Y;return(Y=(function(){var Q,Tr,P,hr,ht,e,Pr,Mr;if(Q=_,(Tr=Yi())!==r){for(P=[],hr=_,(ht=Oe())!==r&&(e=qu())!==r&&(Pr=ln())!==r&&(Mr=Yi())!==r?hr=ht=[ht,e,Pr,Mr]:(_=hr,hr=r);hr!==r;)P.push(hr),hr=_,(ht=Oe())!==r&&(e=qu())!==r&&(Pr=ln())!==r&&(Mr=Yi())!==r?hr=ht=[ht,e,Pr,Mr]:(_=hr,hr=r);P===r?(_=Q,Q=r):(Ls=Q,Tr=Sf(Tr,P),Q=Tr)}else _=Q,Q=r;return Q})())===r&&(Y=(function(){var Q,Tr,P,hr,ht,e;if(Q=_,(Tr=Hf())!==r){if(P=[],hr=_,(ht=ln())!==r&&(e=Wi())!==r?hr=ht=[ht,e]:(_=hr,hr=r),hr!==r)for(;hr!==r;)P.push(hr),hr=_,(ht=ln())!==r&&(e=Wi())!==r?hr=ht=[ht,e]:(_=hr,hr=r);else P=r;P===r?(_=Q,Q=r):(Ls=Q,Tr=k(Tr,P[0][1]),Q=Tr)}else _=Q,Q=r;return Q})()),Y}function Ot(){var Y;return(Y=zl())===r&&(Y=wf()),Y}function hs(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=Ot())!==r){for(Tr=[],P=_,(hr=ln())===r?(_=P,P=r):((ht=Ri())===r&&(ht=qu())===r&&(ht=Ou()),ht!==r&&(e=ln())!==r&&(Pr=Ot())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r));P!==r;)Tr.push(P),P=_,(hr=ln())===r?(_=P,P=r):((ht=Ri())===r&&(ht=qu())===r&&(ht=Ou()),ht!==r&&(e=ln())!==r&&(Pr=Ot())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r));Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Mr,kn){let Yn=kn.length,K=Mr,kt="";for(let Js=0;Js<Yn;++Js)kn[Js][1]===","?(kt=",",Array.isArray(K)||(K=[K]),K.push(kn[Js][3])):K=Lr(kn[Js][1],K,kn[Js][3]);if(kt===","){let Js={type:"expr_list"};return Js.value=K,Js}return K})(Q,Tr))}else _=Y,Y=r;return Y}function Yi(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=hl())!==r){for(Tr=[],P=_,(hr=Oe())!==r&&(ht=Ri())!==r&&(e=ln())!==r&&(Pr=hl())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=Oe())!==r&&(ht=Ri())!==r&&(e=ln())!==r&&(Pr=hl())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Sf(Q,Tr))}else _=Y,Y=r;return Y}function hl(){var Y,Q,Tr,P,hr;return(Y=L0())===r&&(Y=(function(){var ht=_,e,Pr;(e=(function(){var Yn=_,K=_,kt,Js,Ve;return(kt=Ji())!==r&&(Js=ln())!==r&&(Ve=qi())!==r?K=kt=[kt,Js,Ve]:(_=K,K=r),K!==r&&(Ls=Yn,K=Rl(K)),(Yn=K)===r&&(Yn=qi()),Yn})())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(Pr=wf())!==r&&ln()!==r&&Yu()!==r?(Ls=ht,Mr=e,(kn=Pr).parentheses=!0,e=k(Mr,kn),ht=e):(_=ht,ht=r);var Mr,kn;return ht})())===r&&(Y=_,(Q=Ji())===r&&(Q=_,t.charCodeAt(_)===33?(Tr="!",_++):(Tr=r,Qt===0&&ys(R0)),Tr===r?(_=Q,Q=r):(P=_,Qt++,t.charCodeAt(_)===61?(hr="=",_++):(hr=r,Qt===0&&ys(yc)),Qt--,hr===r?P=void 0:(_=P,P=r),P===r?(_=Q,Q=r):Q=Tr=[Tr,P])),Q!==r&&(Tr=ln())!==r&&(P=hl())!==r?(Ls=Y,Y=Q=k("NOT",P)):(_=Y,Y=r)),Y}function L0(){var Y,Q,Tr,P,hr;return Y=_,(Q=C0())!==r&&ln()!==r?((Tr=(function(){var ht;return(ht=(function(){var e=_,Pr=[],Mr=_,kn,Yn,K,kt;if((kn=ln())!==r&&(Yn=Bn())!==r&&(K=ln())!==r&&(kt=C0())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r),Mr!==r)for(;Mr!==r;)Pr.push(Mr),Mr=_,(kn=ln())!==r&&(Yn=Bn())!==r&&(K=ln())!==r&&(kt=C0())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r);else Pr=r;return Pr!==r&&(Ls=e,Pr={type:"arithmetic",tail:Pr}),e=Pr})())===r&&(ht=(function(){var e=_,Pr,Mr,kn;return(Pr=Qb())!==r&&ln()!==r&&(Mr=zu())!==r&&ln()!==r&&(kn=U0())!==r&&ln()!==r&&Yu()!==r?(Ls=e,e=Pr={op:Pr,right:kn}):(_=e,e=r),e===r&&(e=_,(Pr=Qb())!==r&&ln()!==r?((Mr=o())===r&&(Mr=y0())===r&&(Mr=D0()),Mr===r?(_=e,e=r):(Ls=e,Pr=(function(Yn,K){return{op:Yn,right:K}})(Pr,Mr),e=Pr)):(_=e,e=r)),e})())===r&&(ht=(function(){var e=_,Pr,Mr,kn;return(Pr=(function(){var Yn=_,K=_,kt,Js,Ve;return(kt=Ji())!==r&&(Js=ln())!==r&&(Ve=Wc())!==r?K=kt=[kt,Js,Ve]:(_=K,K=r),K!==r&&(Ls=Yn,K=Rl(K)),(Yn=K)===r&&(Yn=Wc()),Yn})())!==r&&ln()!==r&&(Mr=C0())!==r&&ln()!==r&&Ri()!==r&&ln()!==r&&(kn=C0())!==r?(Ls=e,e=Pr={op:Pr,right:{type:"expr_list",value:[Mr,kn]}}):(_=e,e=r),e})())===r&&(ht=(function(){var e=_,Pr,Mr,kn,Yn;return(Pr=Mb())!==r&&(Mr=ln())!==r&&(kn=C0())!==r?(Ls=e,e=Pr={op:"IS",right:kn}):(_=e,e=r),e===r&&(e=_,Pr=_,(Mr=Mb())!==r&&(kn=ln())!==r&&(Yn=Ji())!==r?Pr=Mr=[Mr,kn,Yn]:(_=Pr,Pr=r),Pr!==r&&(Mr=ln())!==r&&(kn=C0())!==r?(Ls=e,Pr=(function(K){return{op:"IS NOT",right:K}})(kn),e=Pr):(_=e,e=r)),e})())===r&&(ht=(function(){var e=_,Pr,Mr;return(Pr=(function(){var kn=_,Yn=_,K,kt,Js;return(K=Ji())!==r&&(kt=ln())!==r&&(Js=fc())!==r?Yn=K=[K,kt,Js]:(_=Yn,Yn=r),Yn!==r&&(Ls=kn,Yn=Rl(Yn)),(kn=Yn)===r&&(kn=fc()),kn})())!==r&&ln()!==r?((Mr=mc())===r&&(Mr=L0()),Mr===r?(_=e,e=r):(Ls=e,e=Pr={op:Pr,right:Mr})):(_=e,e=r),e})()),ht})())===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,P=Q,Y=Q=(hr=Tr)===null?P:hr.type==="arithmetic"?dr(P,hr.tail):Lr(hr.op,P,hr.right))):(_=Y,Y=r),Y===r&&(Y=y0())===r&&(Y=Oa()),Y}function Bn(){var Y;return t.substr(_,2)===">="?(Y=">=",_+=2):(Y=r,Qt===0&&ys(ff)),Y===r&&(t.charCodeAt(_)===62?(Y=">",_++):(Y=r,Qt===0&&ys(Vf)),Y===r&&(t.substr(_,2)==="<="?(Y="<=",_+=2):(Y=r,Qt===0&&ys(Vv)),Y===r&&(t.substr(_,2)==="<>"?(Y="<>",_+=2):(Y=r,Qt===0&&ys(db)),Y===r&&(t.charCodeAt(_)===60?(Y="<",_++):(Y=r,Qt===0&&ys(Of)),Y===r&&(t.charCodeAt(_)===61?(Y="=",_++):(Y=r,Qt===0&&ys(yc)),Y===r&&(t.substr(_,2)==="!="?(Y="!=",_+=2):(Y=r,Qt===0&&ys(Pc)))))))),Y}function Qb(){var Y,Q,Tr,P,hr;return Y=_,Q=_,(Tr=Ji())!==r&&(P=ln())!==r&&(hr=Kr())!==r?Q=Tr=[Tr,P,hr]:(_=Q,Q=r),Q!==r&&(Ls=Y,Q=Rl(Q)),(Y=Q)===r&&(Y=Kr()),Y}function C0(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=k0())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Hf())!==r&&(e=ln())!==r&&(Pr=k0())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Hf())!==r&&(e=ln())!==r&&(Pr=k0())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Mr,kn){if(kn&&kn.length&&Mr.type==="column_ref"&&Mr.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...rt()}));return dr(Mr,kn)})(Q,Tr))}else _=Y,Y=r;return Y}function Hf(){var Y;return t.charCodeAt(_)===43?(Y="+",_++):(Y=r,Qt===0&&ys(H0)),Y===r&&(t.charCodeAt(_)===45?(Y="-",_++):(Y=r,Qt===0&&ys(bf))),Y}function k0(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=wa())!==r){for(Tr=[],P=_,(hr=ln())===r?(_=P,P=r):((ht=M0())===r&&(ht=Ha()),ht!==r&&(e=ln())!==r&&(Pr=wa())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r));P!==r;)Tr.push(P),P=_,(hr=ln())===r?(_=P,P=r):((ht=M0())===r&&(ht=Ha()),ht!==r&&(e=ln())!==r&&(Pr=wa())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r));Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=dr(Q,Tr))}else _=Y,Y=r;return Y}function M0(){var Y;return t.charCodeAt(_)===42?(Y="*",_++):(Y=r,Qt===0&&ys(Lb)),Y===r&&(t.charCodeAt(_)===47?(Y="/",_++):(Y=r,Qt===0&&ys(Fa)),Y===r&&(t.charCodeAt(_)===37?(Y="%",_++):(Y=r,Qt===0&&ys(Kf)))),Y}function Wi(){var Y,Q,Tr;return(Y=(function(){var P=_,hr,ht,e,Pr,Mr,kn;return(hr=Qu())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(ht=Ot())!==r&&ln()!==r&&Zl()!==r&&ln()!==r&&(e=ba())!==r&&ln()!==r&&(Pr=Yu())!==r?(Ls=P,hr=(function(Yn,K,kt){return{type:"cast",keyword:Yn.toLowerCase(),expr:K,symbol:"as",target:[kt]}})(hr,ht,e),P=hr):(_=P,P=r),P===r&&(P=_,(hr=Qu())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(ht=Ot())!==r&&ln()!==r&&Zl()!==r&&ln()!==r&&(e=Jl())!==r&&ln()!==r&&(Pr=zu())!==r&&ln()!==r&&(Mr=Ic())!==r&&ln()!==r&&Yu()!==r&&ln()!==r&&(kn=Yu())!==r?(Ls=P,hr=(function(Yn,K,kt){return{type:"cast",keyword:Yn.toLowerCase(),expr:K,symbol:"as",target:[{dataType:"DECIMAL("+kt+")"}]}})(hr,ht,Mr),P=hr):(_=P,P=r),P===r&&(P=_,(hr=Qu())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(ht=Ot())!==r&&ln()!==r&&Zl()!==r&&ln()!==r&&(e=Jl())!==r&&ln()!==r&&(Pr=zu())!==r&&ln()!==r&&(Mr=Ic())!==r&&ln()!==r&&Ou()!==r&&ln()!==r&&(kn=Ic())!==r&&ln()!==r&&Yu()!==r&&ln()!==r&&Yu()!==r?(Ls=P,hr=(function(Yn,K,kt,Js){return{type:"cast",keyword:Yn.toLowerCase(),expr:K,symbol:"as",target:[{dataType:"DECIMAL("+kt+", "+Js+")"}]}})(hr,ht,Mr,kn),P=hr):(_=P,P=r),P===r&&(P=_,(hr=Qu())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(ht=Ot())!==r&&ln()!==r&&Zl()!==r&&ln()!==r&&(e=(function(){var Yn;return(Yn=(function(){var K=_,kt,Js,Ve;return t.substr(_,6).toLowerCase()==="signed"?(kt=t.substr(_,6),_+=6):(kt=r,Qt===0&&ys(Cp)),kt===r?(_=K,K=r):(Js=_,Qt++,Ve=Ye(),Qt--,Ve===r?Js=void 0:(_=Js,Js=r),Js===r?(_=K,K=r):(Ls=K,K=kt="SIGNED")),K})())===r&&(Yn=qc()),Yn})())!==r&&ln()!==r?((Pr=Qi())===r&&(Pr=null),Pr!==r&&ln()!==r&&(Mr=Yu())!==r?(Ls=P,hr=(function(Yn,K,kt,Js){return{type:"cast",keyword:Yn.toLowerCase(),expr:K,symbol:"as",target:[{dataType:kt+(Js?" "+Js:"")}]}})(hr,ht,e,Pr),P=hr):(_=P,P=r)):(_=P,P=r)))),P})())===r&&(Y=mc())===r&&(Y=C())===r&&(Y=(function(){var P;return(P=(function(){var hr=_,ht,e,Pr;return(ht=(function(){var Mr=_,kn,Yn,K;return t.substr(_,5).toLowerCase()==="count"?(kn=t.substr(_,5),_+=5):(kn=r,Qt===0&&ys(Ib)),kn===r?(_=Mr,Mr=r):(Yn=_,Qt++,K=Ye(),Qt--,K===r?Yn=void 0:(_=Yn,Yn=r),Yn===r?(_=Mr,Mr=r):(Ls=Mr,Mr=kn="COUNT")),Mr})())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(e=(function(){var Mr=_,kn,Yn,K,kt,Js,Ve,co,_t,Eo;if((kn=(function(){var ao=_,zo;return t.charCodeAt(_)===42?(zo="*",_++):(zo=r,Qt===0&&ys(Lb)),zo!==r&&(Ls=ao,zo={type:"star",value:"*"}),ao=zo})())!==r&&(Ls=Mr,kn={expr:kn}),(Mr=kn)===r){if(Mr=_,(kn=Il())===r&&(kn=null),kn!==r)if(ln()!==r)if((Yn=zu())!==r)if(ln()!==r)if((K=Ot())!==r)if(ln()!==r)if(Yu()!==r){for(kt=[],Js=_,(Ve=ln())===r?(_=Js,Js=r):((co=Ri())===r&&(co=qu()),co!==r&&(_t=ln())!==r&&(Eo=Ot())!==r?Js=Ve=[Ve,co,_t,Eo]:(_=Js,Js=r));Js!==r;)kt.push(Js),Js=_,(Ve=ln())===r?(_=Js,Js=r):((co=Ri())===r&&(co=qu()),co!==r&&(_t=ln())!==r&&(Eo=Ot())!==r?Js=Ve=[Ve,co,_t,Eo]:(_=Js,Js=r));kt!==r&&(Js=ln())!==r?((Ve=ns())===r&&(Ve=null),Ve===r?(_=Mr,Mr=r):(Ls=Mr,kn=(function(ao,zo,no,Ke){let yo=no.length,lo=zo;lo.parentheses=!0;for(let Co=0;Co<yo;++Co)lo=Lr(no[Co][1],lo,no[Co][3]);return{distinct:ao,expr:lo,orderby:Ke}})(kn,K,kt,Ve),Mr=kn)):(_=Mr,Mr=r)}else _=Mr,Mr=r;else _=Mr,Mr=r;else _=Mr,Mr=r;else _=Mr,Mr=r;else _=Mr,Mr=r;else _=Mr,Mr=r;else _=Mr,Mr=r;Mr===r&&(Mr=_,(kn=Il())===r&&(kn=null),kn!==r&&ln()!==r&&(Yn=ol())!==r&&ln()!==r?((K=ns())===r&&(K=null),K===r?(_=Mr,Mr=r):(Ls=Mr,kn=(function(ao,zo,no){return{distinct:ao,expr:zo,orderby:no}})(kn,Yn,K),Mr=kn)):(_=Mr,Mr=r))}return Mr})())!==r&&ln()!==r&&Yu()!==r&&ln()!==r?((Pr=Al())===r&&(Pr=null),Pr===r?(_=hr,hr=r):(Ls=hr,ht=(function(Mr,kn,Yn){return{type:"aggr_func",name:Mr,args:kn,over:Yn}})(ht,e,Pr),hr=ht)):(_=hr,hr=r),hr})())===r&&(P=(function(){var hr=_,ht,e,Pr;return(ht=(function(){var Mr;return(Mr=(function(){var kn=_,Yn,K,kt;return t.substr(_,3).toLowerCase()==="sum"?(Yn=t.substr(_,3),_+=3):(Yn=r,Qt===0&&ys(Jv)),Yn===r?(_=kn,kn=r):(K=_,Qt++,kt=Ye(),Qt--,kt===r?K=void 0:(_=K,K=r),K===r?(_=kn,kn=r):(Ls=kn,kn=Yn="SUM")),kn})())===r&&(Mr=(function(){var kn=_,Yn,K,kt;return t.substr(_,3).toLowerCase()==="max"?(Yn=t.substr(_,3),_+=3):(Yn=r,Qt===0&&ys(Dv)),Yn===r?(_=kn,kn=r):(K=_,Qt++,kt=Ye(),Qt--,kt===r?K=void 0:(_=K,K=r),K===r?(_=kn,kn=r):(Ls=kn,kn=Yn="MAX")),kn})())===r&&(Mr=(function(){var kn=_,Yn,K,kt;return t.substr(_,3).toLowerCase()==="min"?(Yn=t.substr(_,3),_+=3):(Yn=r,Qt===0&&ys(vp)),Yn===r?(_=kn,kn=r):(K=_,Qt++,kt=Ye(),Qt--,kt===r?K=void 0:(_=K,K=r),K===r?(_=kn,kn=r):(Ls=kn,kn=Yn="MIN")),kn})())===r&&(Mr=(function(){var kn=_,Yn,K,kt;return t.substr(_,3).toLowerCase()==="avg"?(Yn=t.substr(_,3),_+=3):(Yn=r,Qt===0&&ys(Xb)),Yn===r?(_=kn,kn=r):(K=_,Qt++,kt=Ye(),Qt--,kt===r?K=void 0:(_=K,K=r),K===r?(_=kn,kn=r):(Ls=kn,kn=Yn="AVG")),kn})()),Mr})())!==r&&ln()!==r&&zu()!==r&&ln()!==r&&(e=C0())!==r&&ln()!==r&&Yu()!==r&&ln()!==r?((Pr=Al())===r&&(Pr=null),Pr===r?(_=hr,hr=r):(Ls=hr,ht=(function(Mr,kn,Yn){return{type:"aggr_func",name:Mr,args:{expr:kn},over:Yn,...rt()}})(ht,e,Pr),hr=ht)):(_=hr,hr=r),hr})()),P})())===r&&(Y=D0())===r&&(Y=(function(){var P,hr,ht,e,Pr,Mr,kn,Yn;return P=_,Se()!==r&&ln()!==r&&(hr=Kn())!==r&&ln()!==r?((ht=Kl())===r&&(ht=null),ht!==r&&ln()!==r&&(e=tf())!==r&&ln()!==r?((Pr=Se())===r&&(Pr=null),Pr===r?(_=P,P=r):(Ls=P,kn=hr,(Yn=ht)&&kn.push(Yn),P={type:"case",expr:null,args:kn})):(_=P,P=r)):(_=P,P=r),P===r&&(P=_,Se()!==r&&ln()!==r&&(hr=Ot())!==r&&ln()!==r&&(ht=Kn())!==r&&ln()!==r?((e=Kl())===r&&(e=null),e!==r&&ln()!==r&&(Pr=tf())!==r&&ln()!==r?((Mr=Se())===r&&(Mr=null),Mr===r?(_=P,P=r):(Ls=P,P=(function(K,kt,Js){return Js&&kt.push(Js),{type:"case",expr:K,args:kt}})(hr,ht,e))):(_=P,P=r)):(_=P,P=r)),P})())===r&&(Y=Oa())===r&&(Y=ub())===r&&(Y=_,zu()!==r&&ln()!==r&&(Q=hs())!==r&&ln()!==r&&Yu()!==r?(Ls=Y,(Tr=Q).parentheses=!0,Y=Tr):(_=Y,Y=r),Y===r&&(Y=o())),Y}function wa(){var Y,Q,Tr,P,hr;return(Y=(function(){var ht,e,Pr,Mr,kn,Yn,K,kt;if(ht=_,(e=Wi())!==r)if(ln()!==r){for(Pr=[],Mr=_,(kn=ln())===r?(_=Mr,Mr=r):(t.substr(_,2)==="?|"?(Yn="?|",_+=2):(Yn=r,Qt===0&&ys(Gb)),Yn===r&&(t.substr(_,2)==="?&"?(Yn="?&",_+=2):(Yn=r,Qt===0&&ys(hc)),Yn===r&&(t.charCodeAt(_)===63?(Yn="?",_++):(Yn=r,Qt===0&&ys(Bl)),Yn===r&&(t.substr(_,2)==="#-"?(Yn="#-",_+=2):(Yn=r,Qt===0&&ys(sl)),Yn===r&&(t.substr(_,3)==="#>>"?(Yn="#>>",_+=3):(Yn=r,Qt===0&&ys(sc)),Yn===r&&(t.substr(_,2)==="#>"?(Yn="#>",_+=2):(Yn=r,Qt===0&&ys(Y0)),Yn===r&&(Yn=ha())===r&&(Yn=Mi())===r&&(t.substr(_,2)==="@>"?(Yn="@>",_+=2):(Yn=r,Qt===0&&ys(N0)),Yn===r&&(t.substr(_,2)==="<@"?(Yn="<@",_+=2):(Yn=r,Qt===0&&ys(ov))))))))),Yn!==r&&(K=ln())!==r&&(kt=Wi())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r));Mr!==r;)Pr.push(Mr),Mr=_,(kn=ln())===r?(_=Mr,Mr=r):(t.substr(_,2)==="?|"?(Yn="?|",_+=2):(Yn=r,Qt===0&&ys(Gb)),Yn===r&&(t.substr(_,2)==="?&"?(Yn="?&",_+=2):(Yn=r,Qt===0&&ys(hc)),Yn===r&&(t.charCodeAt(_)===63?(Yn="?",_++):(Yn=r,Qt===0&&ys(Bl)),Yn===r&&(t.substr(_,2)==="#-"?(Yn="#-",_+=2):(Yn=r,Qt===0&&ys(sl)),Yn===r&&(t.substr(_,3)==="#>>"?(Yn="#>>",_+=3):(Yn=r,Qt===0&&ys(sc)),Yn===r&&(t.substr(_,2)==="#>"?(Yn="#>",_+=2):(Yn=r,Qt===0&&ys(Y0)),Yn===r&&(Yn=ha())===r&&(Yn=Mi())===r&&(t.substr(_,2)==="@>"?(Yn="@>",_+=2):(Yn=r,Qt===0&&ys(N0)),Yn===r&&(t.substr(_,2)==="<@"?(Yn="<@",_+=2):(Yn=r,Qt===0&&ys(ov))))))))),Yn!==r&&(K=ln())!==r&&(kt=Wi())!==r?Mr=kn=[kn,Yn,K,kt]:(_=Mr,Mr=r));Pr===r?(_=ht,ht=r):(Ls=ht,Js=e,e=(Ve=Pr)&&Ve.length!==0?dr(Js,Ve):Js,ht=e)}else _=ht,ht=r;else _=ht,ht=r;var Js,Ve;return ht})())===r&&(Y=_,(Q=(function(){var ht;return t.charCodeAt(_)===33?(ht="!",_++):(ht=r,Qt===0&&ys(R0)),ht===r&&(t.charCodeAt(_)===45?(ht="-",_++):(ht=r,Qt===0&&ys(bf)),ht===r&&(t.charCodeAt(_)===43?(ht="+",_++):(ht=r,Qt===0&&ys(H0)),ht===r&&(t.charCodeAt(_)===126?(ht="~",_++):(ht=r,Qt===0&&ys(Nv))))),ht})())===r?(_=Y,Y=r):(Tr=_,(P=ln())!==r&&(hr=wa())!==r?Tr=P=[P,hr]:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=k(Q,Tr[1])))),Y}function Oa(){var Y,Q,Tr,P,hr,ht,e,Pr,Mr,kn,Yn,K;return Y=_,(Q=We())!==r&&(Tr=ln())!==r&&(P=Ua())!==r&&(hr=ln())!==r&&(ht=Af())!==r?(e=_,(Pr=ln())!==r&&(Mr=I())!==r?e=Pr=[Pr,Mr]:(_=e,e=r),e===r&&(e=null),e===r?(_=Y,Y=r):(Ls=Y,kn=Q,Yn=ht,K=e,u.add(`select::${kn}::${Yn}`),Y=Q={type:"column_ref",table:kn,column:Yn,collate:K&&K[1]})):(_=Y,Y=r),Y===r&&(Y=_,(Q=El())===r?(_=Y,Y=r):(Tr=_,(P=ln())!==r&&(hr=I())!==r?Tr=P=[P,hr]:(_=Tr,Tr=r),Tr===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(kt,Js){return u.add("select::null::"+kt),{type:"column_ref",table:null,column:kt,collate:Js&&Js[1]}})(Q,Tr)))),Y}function ti(){var Y,Q;return Y=_,(Q=ul())!==r&&(Ls=Y,Q={type:"default",value:Q}),(Y=Q)===r&&(Y=ob()),Y}function We(){var Y,Q;return Y=_,(Q=ul())===r?(_=Y,Y=r):(Ls=_,(Fb(Q)?r:void 0)===r?(_=Y,Y=r):(Ls=Y,Y=Q=Q)),Y===r&&(Y=_,(Q=V0())!==r&&(Ls=Y,Q=Q),Y=Q),Y}function ob(){var Y;return(Y=hf())===r&&(Y=Ef())===r&&(Y=K0()),Y}function V0(){var Y,Q;return Y=_,(Q=hf())===r&&(Q=Ef())===r&&(Q=K0()),Q!==r&&(Ls=Y,Q=Q.value),Y=Q}function hf(){var Y,Q,Tr,P;if(Y=_,t.charCodeAt(_)===34?(Q='"',_++):(Q=r,Qt===0&&ys(e0)),Q!==r){if(Tr=[],Cb.test(t.charAt(_))?(P=t.charAt(_),_++):(P=r,Qt===0&&ys(_0)),P!==r)for(;P!==r;)Tr.push(P),Cb.test(t.charAt(_))?(P=t.charAt(_),_++):(P=r,Qt===0&&ys(_0));else Tr=r;Tr===r?(_=Y,Y=r):(t.charCodeAt(_)===34?(P='"',_++):(P=r,Qt===0&&ys(e0)),P===r?(_=Y,Y=r):(Ls=Y,Y=Q={type:"double_quote_string",value:Tr.join("")}))}else _=Y,Y=r;return Y}function Ef(){var Y,Q,Tr,P;if(Y=_,t.charCodeAt(_)===39?(Q="'",_++):(Q=r,Qt===0&&ys(Cl)),Q!==r){if(Tr=[],zf.test(t.charAt(_))?(P=t.charAt(_),_++):(P=r,Qt===0&&ys(je)),P!==r)for(;P!==r;)Tr.push(P),zf.test(t.charAt(_))?(P=t.charAt(_),_++):(P=r,Qt===0&&ys(je));else Tr=r;Tr===r?(_=Y,Y=r):(t.charCodeAt(_)===39?(P="'",_++):(P=r,Qt===0&&ys(Cl)),P===r?(_=Y,Y=r):(Ls=Y,Y=Q={type:"single_quote_string",value:Tr.join("")}))}else _=Y,Y=r;return Y}function K0(){var Y,Q,Tr,P;if(Y=_,t.charCodeAt(_)===96?(Q="`",_++):(Q=r,Qt===0&&ys(o0)),Q!==r){if(Tr=[],xi.test(t.charAt(_))?(P=t.charAt(_),_++):(P=r,Qt===0&&ys(xf)),P!==r)for(;P!==r;)Tr.push(P),xi.test(t.charAt(_))?(P=t.charAt(_),_++):(P=r,Qt===0&&ys(xf));else Tr=r;Tr===r?(_=Y,Y=r):(t.charCodeAt(_)===96?(P="`",_++):(P=r,Qt===0&&ys(o0)),P===r?(_=Y,Y=r):(Ls=Y,Y=Q={type:"backticks_quote_string",value:Tr.join("")}))}else _=Y,Y=r;return Y}function Af(){var Y,Q;return Y=_,(Q=w0())!==r&&(Ls=Y,Q=Q),(Y=Q)===r&&(Y=V0()),Y}function El(){var Y,Q;return Y=_,(Q=w0())===r?(_=Y,Y=r):(Ls=_,(Fb(Q)?r:void 0)===r?(_=Y,Y=r):(Ls=Y,Y=Q=Q)),Y===r&&(Y=V0()),Y}function w0(){var Y,Q,Tr,P;if(Y=_,(Q=Ye())!==r){for(Tr=[],P=z0();P!==r;)Tr.push(P),P=z0();Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Zf(Q,Tr))}else _=Y,Y=r;return Y}function ul(){var Y,Q,Tr,P;if(Y=_,(Q=Ye())!==r){for(Tr=[],P=mf();P!==r;)Tr.push(P),P=mf();Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Zf(Q,Tr))}else _=Y,Y=r;return Y}function Ye(){var Y;return W0.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(jb)),Y}function mf(){var Y;return Uf.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(u0)),Y}function z0(){var Y;return wb.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(Ui)),Y}function ub(){var Y,Q,Tr,P;return Y=_,Q=_,t.charCodeAt(_)===58?(Tr=":",_++):(Tr=r,Qt===0&&ys(uv)),Tr!==r&&(P=ul())!==r?Q=Tr=[Tr,P]:(_=Q,Q=r),Q!==r&&(Ls=Y,Q={type:"param",value:Q[1]}),Y=Q}function Su(){var Y,Q,Tr;return Y=_,h0()!==r&&ln()!==r&&Ci()!==r&&ln()!==r&&(Q=ia())!==r&&ln()!==r&&zu()!==r&&ln()!==r?((Tr=U0())===r&&(Tr=null),Tr!==r&&ln()!==r&&Yu()!==r?(Ls=Y,Y={type:"on update",keyword:Q,parentheses:!0,expr:Tr}):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,h0()!==r&&ln()!==r&&Ci()!==r&&ln()!==r&&(Q=ia())!==r?(Ls=Y,Y=(function(P){return{type:"on update",keyword:P}})(Q)):(_=Y,Y=r)),Y}function Al(){var Y,Q,Tr;return Y=_,(function(){var P=_,hr,ht,e;return t.substr(_,4).toLowerCase()==="over"?(hr=t.substr(_,4),_+=4):(hr=r,Qt===0&&ys(Fc)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):P=hr=[hr,ht]),P})()!==r&&ln()!==r&&zu()!==r&&ln()!==r&&Ge()!==r&&ln()!==r&&or()!==r&&ln()!==r&&(Q=up())!==r&&ln()!==r?((Tr=ns())===r&&(Tr=null),Tr!==r&&ln()!==r&&Yu()!==r?(Ls=Y,Y={partitionby:Q,orderby:Tr}):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=Su()),Y}function D0(){var Y,Q,Tr,P,hr;return Y=_,(Q=(function(){var ht;return(ht=Ac())===r&&(ht=(function(){var e=_,Pr,Mr,kn;return t.substr(_,12).toLowerCase()==="current_user"?(Pr=t.substr(_,12),_+=12):(Pr=r,Qt===0&&ys(yl)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):(Ls=e,e=Pr="CURRENT_USER")),e})())===r&&(ht=(function(){var e=_,Pr,Mr,kn;return t.substr(_,4).toLowerCase()==="user"?(Pr=t.substr(_,4),_+=4):(Pr=r,Qt===0&&ys($p)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):(Ls=e,e=Pr="USER")),e})())===r&&(ht=(function(){var e=_,Pr,Mr,kn;return t.substr(_,12).toLowerCase()==="session_user"?(Pr=t.substr(_,12),_+=12):(Pr=r,Qt===0&&ys(jc)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):(Ls=e,e=Pr="SESSION_USER")),e})())===r&&(ht=(function(){var e=_,Pr,Mr,kn;return t.substr(_,11).toLowerCase()==="system_user"?(Pr=t.substr(_,11),_+=11):(Pr=r,Qt===0&&ys(fv)),Pr===r?(_=e,e=r):(Mr=_,Qt++,kn=Ye(),Qt--,kn===r?Mr=void 0:(_=Mr,Mr=r),Mr===r?(_=e,e=r):(Ls=e,e=Pr="SYSTEM_USER")),e})()),ht})())!==r&&ln()!==r&&(Tr=zu())!==r&&ln()!==r?((P=U0())===r&&(P=null),P!==r&&ln()!==r&&Yu()!==r&&ln()!==r?((hr=Al())===r&&(hr=null),hr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(ht,e,Pr){return{type:"function",name:{name:[{type:"default",value:ht}]},args:e||{type:"expr_list",value:[]},over:Pr,...rt()}})(Q,P,hr))):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,(Q=Ac())!==r&&ln()!==r?((Tr=Su())===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q={type:"function",name:{name:[{type:"origin",value:Q}]},over:Tr,...rt()})):(_=Y,Y=r),Y===r&&(Y=_,(Q=Da())!==r&&ln()!==r&&(Tr=zu())!==r&&ln()!==r?((P=hs())===r&&(P=null),P!==r&&ln()!==r&&Yu()!==r&&ln()!==r?((hr=Al())===r&&(hr=null),hr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(ht,e,Pr){return e&&e.type!=="expr_list"&&(e={type:"expr_list",value:[e]}),{type:"function",name:ht,args:e||{type:"expr_list",value:[]},over:Pr,...rt()}})(Q,P,hr))):(_=Y,Y=r)):(_=Y,Y=r))),Y}function Ac(){var Y;return(Y=(function(){var Q=_,Tr,P,hr;return t.substr(_,12).toLowerCase()==="current_date"?(Tr=t.substr(_,12),_+=12):(Tr=r,Qt===0&&ys(Pp)),Tr===r?(_=Q,Q=r):(P=_,Qt++,hr=Ye(),Qt--,hr===r?P=void 0:(_=P,P=r),P===r?(_=Q,Q=r):(Ls=Q,Q=Tr="CURRENT_DATE")),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;return t.substr(_,12).toLowerCase()==="current_time"?(Tr=t.substr(_,12),_+=12):(Tr=r,Qt===0&&ys(tp)),Tr===r?(_=Q,Q=r):(P=_,Qt++,hr=Ye(),Qt--,hr===r?P=void 0:(_=P,P=r),P===r?(_=Q,Q=r):(Ls=Q,Q=Tr="CURRENT_TIME")),Q})())===r&&(Y=ia()),Y}function mc(){var Y;return(Y=y0())===r&&(Y=lc())===r&&(Y=(function(){var Q=_,Tr;return(Tr=(function(){var P=_,hr,ht,e;return t.substr(_,4).toLowerCase()==="true"?(hr=t.substr(_,4),_+=4):(hr=r,Qt===0&&ys(_n)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):P=hr=[hr,ht]),P})())!==r&&(Ls=Q,Tr={type:"bool",value:!0}),(Q=Tr)===r&&(Q=_,(Tr=(function(){var P=_,hr,ht,e;return t.substr(_,5).toLowerCase()==="false"?(hr=t.substr(_,5),_+=5):(hr=r,Qt===0&&ys(Os)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):P=hr=[hr,ht]),P})())!==r&&(Ls=Q,Tr={type:"bool",value:!1}),Q=Tr),Q})())===r&&(Y=Tc())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e;if((Tr=Wn())===r&&(Tr=Va())===r&&(Tr=Eu())===r&&(Tr=lt()),Tr!==r)if(ln()!==r){if(P=_,t.charCodeAt(_)===39?(hr="'",_++):(hr=r,Qt===0&&ys(Cl)),hr!==r){for(ht=[],e=Yc();e!==r;)ht.push(e),e=Yc();ht===r?(_=P,P=r):(t.charCodeAt(_)===39?(e="'",_++):(e=r,Qt===0&&ys(Cl)),e===r?(_=P,P=r):P=hr=[hr,ht,e])}else _=P,P=r;P===r?(_=Q,Q=r):(Ls=Q,Tr=yb(Tr,P),Q=Tr)}else _=Q,Q=r;else _=Q,Q=r;if(Q===r)if(Q=_,(Tr=Wn())===r&&(Tr=Va())===r&&(Tr=Eu())===r&&(Tr=lt()),Tr!==r)if(ln()!==r){if(P=_,t.charCodeAt(_)===34?(hr='"',_++):(hr=r,Qt===0&&ys(e0)),hr!==r){for(ht=[],e=bi();e!==r;)ht.push(e),e=bi();ht===r?(_=P,P=r):(t.charCodeAt(_)===34?(e='"',_++):(e=r,Qt===0&&ys(e0)),e===r?(_=P,P=r):P=hr=[hr,ht,e])}else _=P,P=r;P===r?(_=Q,Q=r):(Ls=Q,Tr=yb(Tr,P),Q=Tr)}else _=Q,Q=r;else _=Q,Q=r;return Q})()),Y}function Tc(){var Y,Q;return Y=_,(Q=(function(){var Tr=_,P,hr,ht;return t.substr(_,4).toLowerCase()==="null"?(P=t.substr(_,4),_+=4):(P=r,Qt===0&&ys(ft)),P===r?(_=Tr,Tr=r):(hr=_,Qt++,ht=Ye(),Qt--,ht===r?hr=void 0:(_=hr,hr=r),hr===r?(_=Tr,Tr=r):Tr=P=[P,hr]),Tr})())!==r&&(Ls=Y,Q={type:"null",value:null}),Y=Q}function y0(){var Y,Q,Tr,P,hr;if(Y=_,Q=_,t.charCodeAt(_)===39?(Tr="'",_++):(Tr=r,Qt===0&&ys(Cl)),Tr!==r){for(P=[],hr=Yc();hr!==r;)P.push(hr),hr=Yc();P===r?(_=Q,Q=r):(t.charCodeAt(_)===39?(hr="'",_++):(hr=r,Qt===0&&ys(Cl)),hr===r?(_=Q,Q=r):Q=Tr=[Tr,P,hr])}else _=Q,Q=r;if(Q!==r&&(Ls=Y,Q={type:"single_quote_string",value:Q[1].join("")}),(Y=Q)===r){if(Y=_,Q=_,t.charCodeAt(_)===34?(Tr='"',_++):(Tr=r,Qt===0&&ys(e0)),Tr!==r){for(P=[],hr=bi();hr!==r;)P.push(hr),hr=bi();P===r?(_=Q,Q=r):(t.charCodeAt(_)===34?(hr='"',_++):(hr=r,Qt===0&&ys(e0)),hr===r?(_=Q,Q=r):Q=Tr=[Tr,P,hr])}else _=Q,Q=r;Q!==r&&(Ls=Y,Q=(function(ht){return{type:"double_quote_string",value:ht[1].join("")}})(Q)),Y=Q}return Y}function bi(){var Y;return hb.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(Kv)),Y===r&&(Y=Z0()),Y}function Yc(){var Y;return Gc.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(_v)),Y===r&&(Y=Z0()),Y}function Z0(){var Y,Q,Tr,P,hr,ht,e,Pr,Mr,kn;return Y=_,t.substr(_,2)==="\\'"?(Q="\\'",_+=2):(Q=r,Qt===0&&ys(kf)),Q!==r&&(Ls=Y,Q="\\'"),(Y=Q)===r&&(Y=_,t.substr(_,2)==='\\"'?(Q='\\"',_+=2):(Q=r,Qt===0&&ys(vf)),Q!==r&&(Ls=Y,Q='\\"'),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\\\"?(Q="\\\\",_+=2):(Q=r,Qt===0&&ys(ki)),Q!==r&&(Ls=Y,Q="\\\\"),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\/"?(Q="\\/",_+=2):(Q=r,Qt===0&&ys(Hl)),Q!==r&&(Ls=Y,Q="\\/"),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\b"?(Q="\\b",_+=2):(Q=r,Qt===0&&ys(Eb)),Q!==r&&(Ls=Y,Q="\b"),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\f"?(Q="\\f",_+=2):(Q=r,Qt===0&&ys(Bb)),Q!==r&&(Ls=Y,Q="\f"),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\n"?(Q="\\n",_+=2):(Q=r,Qt===0&&ys(pa)),Q!==r&&(Ls=Y,Q=` +`),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\r"?(Q="\\r",_+=2):(Q=r,Qt===0&&ys(wl)),Q!==r&&(Ls=Y,Q="\r"),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\t"?(Q="\\t",_+=2):(Q=r,Qt===0&&ys(Nl)),Q!==r&&(Ls=Y,Q=" "),(Y=Q)===r&&(Y=_,t.substr(_,2)==="\\u"?(Q="\\u",_+=2):(Q=r,Qt===0&&ys(Sv)),Q!==r&&(Tr=aa())!==r&&(P=aa())!==r&&(hr=aa())!==r&&(ht=aa())!==r?(Ls=Y,e=Tr,Pr=P,Mr=hr,kn=ht,Y=Q=String.fromCharCode(parseInt("0x"+e+Pr+Mr+kn))):(_=Y,Y=r),Y===r&&(Y=_,t.charCodeAt(_)===92?(Q="\\",_++):(Q=r,Qt===0&&ys(Hb)),Q!==r&&(Ls=Y,Q="\\"),(Y=Q)===r&&(Y=_,t.substr(_,2)==="''"?(Q="''",_+=2):(Q=r,Qt===0&&ys(Jf)),Q!==r&&(Ls=Y,Q="''"),(Y=Q)===r&&(Y=_,t.substr(_,2)==='""'?(Q='""',_+=2):(Q=r,Qt===0&&ys(pf)),Q!==r&&(Ls=Y,Q='""'),(Y=Q)===r&&(Y=_,t.substr(_,2)==="``"?(Q="``",_+=2):(Q=r,Qt===0&&ys(Yb)),Q!==r&&(Ls=Y,Q="``"),Y=Q))))))))))))),Y}function lc(){var Y,Q,Tr;return Y=_,(Q=(function(){var P=_,hr,ht,e;return(hr=Ic())!==r&&(ht=ab())!==r&&(e=J0())!==r?(Ls=P,P=hr={type:"bigint",value:hr+ht+e}):(_=P,P=r),P===r&&(P=_,(hr=Ic())!==r&&(ht=ab())!==r?(Ls=P,hr=(function(Pr,Mr){let kn=Pr+Mr;return Or(Pr)?{type:"bigint",value:kn}:parseFloat(kn).toFixed(Mr.length-1)})(hr,ht),P=hr):(_=P,P=r),P===r&&(P=_,(hr=Ic())!==r&&(ht=J0())!==r?(Ls=P,hr=(function(Pr,Mr){return{type:"bigint",value:Pr+Mr}})(hr,ht),P=hr):(_=P,P=r),P===r&&(P=_,(hr=Ic())!==r&&(Ls=P,hr=(function(Pr){return Or(Pr)?{type:"bigint",value:Pr}:parseFloat(Pr)})(hr)),P=hr))),P})())!==r&&(Ls=Y,Q=(Tr=Q)&&Tr.type==="bigint"?Tr:{type:"number",value:Tr}),Y=Q}function Ic(){var Y,Q,Tr;return(Y=ml())===r&&(Y=Ul())===r&&(Y=_,t.charCodeAt(_)===45?(Q="-",_++):(Q=r,Qt===0&&ys(bf)),Q===r&&(t.charCodeAt(_)===43?(Q="+",_++):(Q=r,Qt===0&&ys(H0))),Q!==r&&(Tr=ml())!==r?(Ls=Y,Y=Q+=Tr):(_=Y,Y=r),Y===r&&(Y=_,t.charCodeAt(_)===45?(Q="-",_++):(Q=r,Qt===0&&ys(bf)),Q===r&&(t.charCodeAt(_)===43?(Q="+",_++):(Q=r,Qt===0&&ys(H0))),Q!==r&&(Tr=Ul())!==r?(Ls=Y,Y=Q=(function(P,hr){return P+hr})(Q,Tr)):(_=Y,Y=r))),Y}function ab(){var Y,Q,Tr;return Y=_,t.charCodeAt(_)===46?(Q=".",_++):(Q=r,Qt===0&&ys(a0)),Q!==r&&(Tr=ml())!==r?(Ls=Y,Y=Q="."+Tr):(_=Y,Y=r),Y}function J0(){var Y,Q,Tr;return Y=_,(Q=(function(){var P=_,hr,ht;Wb.test(t.charAt(_))?(hr=t.charAt(_),_++):(hr=r,Qt===0&&ys(Df)),hr===r?(_=P,P=r):(mb.test(t.charAt(_))?(ht=t.charAt(_),_++):(ht=r,Qt===0&&ys(i0)),ht===r&&(ht=null),ht===r?(_=P,P=r):(Ls=P,P=hr+=(e=ht)===null?"":e));var e;return P})())!==r&&(Tr=ml())!==r?(Ls=Y,Y=Q+=Tr):(_=Y,Y=r),Y}function ml(){var Y,Q,Tr;if(Y=_,Q=[],(Tr=Ul())!==r)for(;Tr!==r;)Q.push(Tr),Tr=Ul();else Q=r;return Q!==r&&(Ls=Y,Q=Q.join("")),Y=Q}function Ul(){var Y;return _l.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(Yl)),Y}function aa(){var Y;return Ab.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(Mf)),Y}function Tf(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="default"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(mi)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function If(){var Y,Q,Tr,P;return Y=_,t.substr(_,2).toLowerCase()==="to"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(En)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Tl(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="drop"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(gs)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="DROP")),Y}function Ci(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="update"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(Be)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Q0(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="create"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(io)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function ib(){var Y,Q,Tr,P;return Y=_,t.substr(_,9).toLowerCase()==="temporary"?(Q=t.substr(_,9),_+=9):(Q=r,Qt===0&&ys(Ro)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function fa(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="delete"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(So)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Zi(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="replace"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(yu)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function rf(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="rename"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(au)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Ii(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="ignore"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(Iu)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Ge(){var Y,Q,Tr,P;return Y=_,t.substr(_,9).toLowerCase()==="partition"?(Q=t.substr(_,9),_+=9):(Q=r,Qt===0&&ys(mu)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="PARTITION")),Y}function $0(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="into"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Ju)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function gf(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="set"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(Qc)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="SET")),Y}function Zl(){var Y,Q,Tr,P;return Y=_,t.substr(_,2).toLowerCase()==="as"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(ma)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Xa(){var Y,Q,Tr,P;return Y=_,t.substr(_,5).toLowerCase()==="table"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(Bi)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="TABLE")),Y}function cc(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="tables"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(sa)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="TABLES")),Y}function h0(){var Y,Q,Tr,P;return Y=_,t.substr(_,2).toLowerCase()==="on"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(S0)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function n(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="join"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Wl)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function st(){var Y,Q,Tr,P;return Y=_,t.substr(_,5).toLowerCase()==="outer"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(ec)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function gi(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="values"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(Tb)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function xa(){var Y,Q,Tr,P;return Y=_,t.substr(_,5).toLowerCase()==="using"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(cp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Ra(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="with"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Ca)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function or(){var Y,Q,Tr,P;return Y=_,t.substr(_,2).toLowerCase()==="by"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(df)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Nt(){var Y,Q,Tr,P;return Y=_,t.substr(_,5).toLowerCase()==="fetch"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(Pf)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="FETCH")),Y}function ju(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="all"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(fp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="ALL")),Y}function Il(){var Y,Q,Tr,P;return Y=_,t.substr(_,8).toLowerCase()==="distinct"?(Q=t.substr(_,8),_+=8):(Q=r,Qt===0&&ys(oc)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="DISTINCT")),Y}function Wc(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="between"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(uc)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="BETWEEN")),Y}function Kr(){var Y,Q,Tr,P;return Y=_,t.substr(_,2).toLowerCase()==="in"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(qb)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="IN")),Y}function Mb(){var Y,Q,Tr,P;return Y=_,t.substr(_,2).toLowerCase()==="is"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(Gf)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="IS")),Y}function fc(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="like"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(zv)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="LIKE")),Y}function qi(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="exists"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(Mv)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="EXISTS")),Y}function Ji(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="not"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(jl)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="NOT")),Y}function Ri(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="and"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(Zv)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="AND")),Y}function qu(){var Y,Q,Tr,P;return Y=_,t.substr(_,2).toLowerCase()==="or"?(Q=t.substr(_,2),_+=2):(Q=r,Qt===0&&ys(bp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="OR")),Y}function Se(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="case"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(xp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function tf(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="end"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(Qv)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):Y=Q=[Q,Tr]),Y}function Qu(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="cast"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Vp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="CAST")),Y}function P0(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="char"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(dp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="CHAR")),Y}function gc(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="varchar"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(Kp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="VARCHAR")),Y}function al(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="numeric"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(ld)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="NUMERIC")),Y}function Jl(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="decimal"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(Lp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="DECIMAL")),Y}function qc(){var Y,Q,Tr,P;return Y=_,t.substr(_,8).toLowerCase()==="unsigned"?(Q=t.substr(_,8),_+=8):(Q=r,Qt===0&&ys(wp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="UNSIGNED")),Y}function Ba(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="int"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(gb)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="INT")),Y}function Qi(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="integer"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(v0)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="INTEGER")),Y}function ya(){var Y,Q,Tr,P;return Y=_,t.substr(_,8).toLowerCase()==="smallint"?(Q=t.substr(_,8),_+=8):(Q=r,Qt===0&&ys(Rb)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="SMALLINT")),Y}function l(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="tinyint"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(Ff)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="TINYINT")),Y}function dn(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="bigint"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(hp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="BIGINT")),Y}function Ql(){var Y,Q,Tr,P;return Y=_,t.substr(_,5).toLowerCase()==="float"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(Ep)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="FLOAT")),Y}function vi(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="double"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(Nb)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="DOUBLE")),Y}function Va(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="date"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Qf)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="DATE")),Y}function lt(){var Y,Q,Tr,P;return Y=_,t.substr(_,8).toLowerCase()==="datetime"?(Q=t.substr(_,8),_+=8):(Q=r,Qt===0&&ys(_b)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="DATETIME")),Y}function Wn(){var Y,Q,Tr,P;return Y=_,t.substr(_,4).toLowerCase()==="time"?(Q=t.substr(_,4),_+=4):(Q=r,Qt===0&&ys(Ap)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="TIME")),Y}function Eu(){var Y,Q,Tr,P;return Y=_,t.substr(_,9).toLowerCase()==="timestamp"?(Q=t.substr(_,9),_+=9):(Q=r,Qt===0&&ys(Dp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="TIMESTAMP")),Y}function ia(){var Y,Q,Tr,P;return Y=_,t.substr(_,17).toLowerCase()==="current_timestamp"?(Q=t.substr(_,17),_+=17):(Q=r,Qt===0&&ys(Fv)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="CURRENT_TIMESTAMP")),Y}function ve(){var Y;return(Y=(function(){var Q;return t.substr(_,2)==="@@"?(Q="@@",_+=2):(Q=r,Qt===0&&ys(Ec)),Q})())===r&&(Y=(function(){var Q;return t.charCodeAt(_)===64?(Q="@",_++):(Q=r,Qt===0&&ys(ql)),Q})())===r&&(Y=(function(){var Q;return t.charCodeAt(_)===36?(Q="$",_++):(Q=r,Qt===0&&ys(Jp)),Q})()),Y}function Jt(){var Y;return t.charCodeAt(_)===61?(Y="=",_++):(Y=r,Qt===0&&ys(yc)),Y}function nf(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="add"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(Tp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="ADD")),Y}function E0(){var Y,Q,Tr,P;return Y=_,t.substr(_,6).toLowerCase()==="column"?(Q=t.substr(_,6),_+=6):(Q=r,Qt===0&&ys(rd)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="COLUMN")),Y}function kl(){var Y,Q,Tr,P;return Y=_,t.substr(_,5).toLowerCase()==="index"?(Q=t.substr(_,5),_+=5):(Q=r,Qt===0&&ys(jp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="INDEX")),Y}function oi(){var Y,Q,Tr,P;return Y=_,t.substr(_,3).toLowerCase()==="key"?(Q=t.substr(_,3),_+=3):(Q=r,Qt===0&&ys(Uo)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="KEY")),Y}function yn(){var Y,Q,Tr,P;return Y=_,t.substr(_,7).toLowerCase()==="comment"?(Q=t.substr(_,7),_+=7):(Q=r,Qt===0&&ys(nd)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="COMMENT")),Y}function ka(){var Y,Q,Tr,P;return Y=_,t.substr(_,10).toLowerCase()==="constraint"?(Q=t.substr(_,10),_+=10):(Q=r,Qt===0&&ys(Bp)),Q===r?(_=Y,Y=r):(Tr=_,Qt++,P=Ye(),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q="CONSTRAINT")),Y}function Ua(){var Y;return t.charCodeAt(_)===46?(Y=".",_++):(Y=r,Qt===0&&ys(a0)),Y}function Ou(){var Y;return t.charCodeAt(_)===44?(Y=",",_++):(Y=r,Qt===0&&ys(Rp)),Y}function il(){var Y;return t.charCodeAt(_)===42?(Y="*",_++):(Y=r,Qt===0&&ys(Lb)),Y}function zu(){var Y;return t.charCodeAt(_)===40?(Y="(",_++):(Y=r,Qt===0&&ys(Qe)),Y}function Yu(){var Y;return t.charCodeAt(_)===41?(Y=")",_++):(Y=r,Qt===0&&ys(uo)),Y}function lb(){var Y;return t.charCodeAt(_)===59?(Y=";",_++):(Y=r,Qt===0&&ys(Bv)),Y}function Mi(){var Y;return t.substr(_,2)==="->"?(Y="->",_+=2):(Y=r,Qt===0&&ys(Lf)),Y}function ha(){var Y;return t.substr(_,3)==="->>"?(Y="->>",_+=3):(Y=r,Qt===0&&ys(Hv)),Y}function Ha(){var Y;return(Y=(function(){var Q;return t.substr(_,2)==="||"?(Q="||",_+=2):(Q=r,Qt===0&&ys(on)),Q})())===r&&(Y=(function(){var Q;return t.substr(_,2)==="&&"?(Q="&&",_+=2):(Q=r,Qt===0&&ys(zs)),Q})()),Y}function ln(){var Y,Q;for(Y=[],(Q=ui())===r&&(Q=Di());Q!==r;)Y.push(Q),(Q=ui())===r&&(Q=Di());return Y}function Oe(){var Y,Q;if(Y=[],(Q=ui())===r&&(Q=Di()),Q!==r)for(;Q!==r;)Y.push(Q),(Q=ui())===r&&(Q=Di());else Y=r;return Y}function Di(){var Y;return(Y=(function(){var Q=_,Tr,P,hr,ht,e;if(t.substr(_,2)==="/*"?(Tr="/*",_+=2):(Tr=r,Qt===0&&ys(Bc)),Tr!==r){for(P=[],hr=_,ht=_,Qt++,t.substr(_,2)==="*/"?(e="*/",_+=2):(e=r,Qt===0&&ys(vv)),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht!==r&&(e=ni())!==r?hr=ht=[ht,e]:(_=hr,hr=r);hr!==r;)P.push(hr),hr=_,ht=_,Qt++,t.substr(_,2)==="*/"?(e="*/",_+=2):(e=r,Qt===0&&ys(vv)),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht!==r&&(e=ni())!==r?hr=ht=[ht,e]:(_=hr,hr=r);P===r?(_=Q,Q=r):(t.substr(_,2)==="*/"?(hr="*/",_+=2):(hr=r,Qt===0&&ys(vv)),hr===r?(_=Q,Q=r):Q=Tr=[Tr,P,hr])}else _=Q,Q=r;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e;if(t.substr(_,2)==="--"?(Tr="--",_+=2):(Tr=r,Qt===0&&ys(ep)),Tr!==r){for(P=[],hr=_,ht=_,Qt++,e=$i(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht!==r&&(e=ni())!==r?hr=ht=[ht,e]:(_=hr,hr=r);hr!==r;)P.push(hr),hr=_,ht=_,Qt++,e=$i(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht!==r&&(e=ni())!==r?hr=ht=[ht,e]:(_=hr,hr=r);P===r?(_=Q,Q=r):Q=Tr=[Tr,P]}else _=Q,Q=r;return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e;if(t.charCodeAt(_)===35?(Tr="#",_++):(Tr=r,Qt===0&&ys(Rs)),Tr!==r){for(P=[],hr=_,ht=_,Qt++,e=$i(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht!==r&&(e=ni())!==r?hr=ht=[ht,e]:(_=hr,hr=r);hr!==r;)P.push(hr),hr=_,ht=_,Qt++,e=$i(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht!==r&&(e=ni())!==r?hr=ht=[ht,e]:(_=hr,hr=r);P===r?(_=Q,Q=r):Q=Tr=[Tr,P]}else _=Q,Q=r;return Q})()),Y}function Ya(){var Y,Q,Tr,P;return Y=_,(Q=yn())!==r&&ln()!==r?((Tr=Jt())===r&&(Tr=null),Tr!==r&&ln()!==r&&(P=y0())!==r?(Ls=Y,Y=Q=(function(hr,ht,e){return{type:hr.toLowerCase(),keyword:hr.toLowerCase(),symbol:ht,value:e}})(Q,Tr,P)):(_=Y,Y=r)):(_=Y,Y=r),Y}function ni(){var Y;return t.length>_?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(Np)),Y}function ui(){var Y;return Wp.test(t.charAt(_))?(Y=t.charAt(_),_++):(Y=r,Qt===0&&ys(cd)),Y}function $i(){var Y,Q;if((Y=(function(){var Tr=_,P;return Qt++,t.length>_?(P=t.charAt(_),_++):(P=r,Qt===0&&ys(Np)),Qt--,P===r?Tr=void 0:(_=Tr,Tr=r),Tr})())===r)if(Y=[],av.test(t.charAt(_))?(Q=t.charAt(_),_++):(Q=r,Qt===0&&ys(iv)),Q!==r)for(;Q!==r;)Y.push(Q),av.test(t.charAt(_))?(Q=t.charAt(_),_++):(Q=r,Qt===0&&ys(iv));else Y=r;return Y}function ai(){var Y,Q;return Y=_,Ls=_,Ln=[],r!==void 0&&ln()!==r?((Q=ll())===r&&(Q=(function(){var Tr=_,P;return(function(){var hr;return t.substr(_,6).toLowerCase()==="return"?(hr=t.substr(_,6),_+=6):(hr=r,Qt===0&&ys(Qp)),hr})()!==r&&ln()!==r&&(P=cl())!==r?(Ls=Tr,Tr={type:"return",expr:P}):(_=Tr,Tr=r),Tr})()),Q===r?(_=Y,Y=r):(Ls=Y,Y={stmt:Q,vars:Ln})):(_=Y,Y=r),Y}function ll(){var Y,Q,Tr,P;return Y=_,(Q=o())===r&&(Q=Zt()),Q!==r&&ln()!==r?((Tr=(function(){var hr;return t.substr(_,2)===":="?(hr=":=",_+=2):(hr=r,Qt===0&&ys(sp)),hr})())===r&&(Tr=Jt()),Tr!==r&&ln()!==r&&(P=cl())!==r?(Ls=Y,Y=Q={type:"assign",left:Q,symbol:Tr,right:P}):(_=Y,Y=r)):(_=Y,Y=r),Y}function cl(){var Y;return(Y=wv())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht;return(Tr=o())!==r&&ln()!==r&&(P=jt())!==r&&ln()!==r&&(hr=o())!==r&&ln()!==r&&(ht=sb())!==r?(Ls=Q,Q=Tr={type:"join",ltable:Tr,rtable:hr,op:P,on:ht}):(_=Q,Q=r),Q})())===r&&(Y=a())===r&&(Y=(function(){var Q=_,Tr;return(function(){var P;return t.charCodeAt(_)===91?(P="[",_++):(P=r,Qt===0&&ys(O)),P})()!==r&&ln()!==r&&(Tr=nt())!==r&&ln()!==r&&(function(){var P;return t.charCodeAt(_)===93?(P="]",_++):(P=r,Qt===0&&ys(ps)),P})()!==r?(Ls=Q,Q={type:"array",value:Tr}):(_=Q,Q=r),Q})()),Y}function a(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=an())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Hf())!==r&&(e=ln())!==r&&(Pr=an())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Hf())!==r&&(e=ln())!==r&&(Pr=an())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Sf(Q,Tr))}else _=Y,Y=r;return Y}function an(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=Ma())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=M0())!==r&&(e=ln())!==r&&(Pr=Ma())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=M0())!==r&&(e=ln())!==r&&(Pr=Ma())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Sf(Q,Tr))}else _=Y,Y=r;return Y}function Ma(){var Y,Q,Tr;return(Y=mc())===r&&(Y=o())===r&&(Y=ii())===r&&(Y=ub())===r&&(Y=_,zu()!==r&&ln()!==r&&(Q=a())!==r&&ln()!==r&&Yu()!==r?(Ls=Y,(Tr=Q).parentheses=!0,Y=Tr):(_=Y,Y=r)),Y}function Da(){var Y,Q,Tr,P,hr,ht,e;return Y=_,(Q=ti())===r?(_=Y,Y=r):(Tr=_,(P=ln())!==r&&(hr=Ua())!==r&&(ht=ln())!==r&&(e=ti())!==r?Tr=P=[P,hr,ht,e]:(_=Tr,Tr=r),Tr===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(Pr,Mr){let kn={name:[Pr]};return Mr!==null&&(kn.schema=Pr,kn.name=[Mr[3]]),kn})(Q,Tr))),Y}function ii(){var Y,Q,Tr;return Y=_,(Q=Da())!==r&&ln()!==r&&zu()!==r&&ln()!==r?((Tr=nt())===r&&(Tr=null),Tr!==r&&ln()!==r&&Yu()!==r?(Ls=Y,Y=Q=(function(P,hr){return{type:"function",name:P,args:{type:"expr_list",value:hr},...rt()}})(Q,Tr)):(_=Y,Y=r)):(_=Y,Y=r),Y===r&&(Y=_,(Q=Da())!==r&&(Ls=Y,Q=(function(P){return{type:"function",name:P,args:null,...rt()}})(Q)),Y=Q),Y}function nt(){var Y,Q,Tr,P,hr,ht,e,Pr;if(Y=_,(Q=Ma())!==r){for(Tr=[],P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=Ma())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);P!==r;)Tr.push(P),P=_,(hr=ln())!==r&&(ht=Ou())!==r&&(e=ln())!==r&&(Pr=Ma())!==r?P=hr=[hr,ht,e,Pr]:(_=P,P=r);Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=Ae(Q,Tr))}else _=Y,Y=r;return Y}function o(){var Y,Q,Tr,P,hr;return Y=_,(Q=ve())!==r&&(Tr=Zt())!==r?(Ls=Y,P=Q,hr=Tr,Y=Q={type:"var",...hr,prefix:P}):(_=Y,Y=r),Y}function Zt(){var Y,Q,Tr;return Y=_,(Q=ul())!==r&&(Tr=(function(){var P=_,hr=[],ht=_,e,Pr;for(t.charCodeAt(_)===46?(e=".",_++):(e=r,Qt===0&&ys(a0)),e!==r&&(Pr=ul())!==r?ht=e=[e,Pr]:(_=ht,ht=r);ht!==r;)hr.push(ht),ht=_,t.charCodeAt(_)===46?(e=".",_++):(e=r,Qt===0&&ys(a0)),e!==r&&(Pr=ul())!==r?ht=e=[e,Pr]:(_=ht,ht=r);return hr!==r&&(Ls=P,hr=(function(Mr){let kn=[];for(let Yn=0;Yn<Mr.length;Yn++)kn.push(Mr[Yn][1]);return kn})(hr)),P=hr})())!==r?(Ls=Y,Y=Q=(function(P,hr){return Ln.push(P),{type:"var",name:P,members:hr,prefix:null}})(Q,Tr)):(_=Y,Y=r),Y===r&&(Y=_,(Q=lc())!==r&&(Ls=Y,Q={type:"var",name:Q.value,members:[],quoted:null,prefix:null}),Y=Q),Y}function ba(){var Y;return(Y=(function(){var Q=_,Tr,P,hr;if((Tr=P0())===r&&(Tr=gc()),Tr!==r)if(ln()!==r)if(zu()!==r)if(ln()!==r){if(P=[],_l.test(t.charAt(_))?(hr=t.charAt(_),_++):(hr=r,Qt===0&&ys(Yl)),hr!==r)for(;hr!==r;)P.push(hr),_l.test(t.charAt(_))?(hr=t.charAt(_),_++):(hr=r,Qt===0&&ys(Yl));else P=r;P!==r&&(hr=ln())!==r&&Yu()!==r?(Ls=Q,Tr={dataType:Tr,length:parseInt(P.join(""),10),parentheses:!0},Q=Tr):(_=Q,Q=r)}else _=Q,Q=r;else _=Q,Q=r;else _=Q,Q=r;else _=Q,Q=r;return Q===r&&(Q=_,(Tr=P0())!==r&&(Ls=Q,Tr=Vb(Tr)),(Q=Tr)===r&&(Q=_,(Tr=gc())!==r&&(Ls=Q,Tr=Vb(Tr)),Q=Tr)),Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr,ht,e,Pr,Mr,kn,Yn,K,kt;if((Tr=al())===r&&(Tr=Jl())===r&&(Tr=Ba())===r&&(Tr=Qi())===r&&(Tr=ya())===r&&(Tr=l())===r&&(Tr=dn())===r&&(Tr=Ql())===r&&(Tr=vi()),Tr!==r)if((P=ln())!==r)if((hr=zu())!==r)if((ht=ln())!==r){if(e=[],_l.test(t.charAt(_))?(Pr=t.charAt(_),_++):(Pr=r,Qt===0&&ys(Yl)),Pr!==r)for(;Pr!==r;)e.push(Pr),_l.test(t.charAt(_))?(Pr=t.charAt(_),_++):(Pr=r,Qt===0&&ys(Yl));else e=r;if(e!==r)if((Pr=ln())!==r){if(Mr=_,(kn=Ou())!==r)if((Yn=ln())!==r){if(K=[],_l.test(t.charAt(_))?(kt=t.charAt(_),_++):(kt=r,Qt===0&&ys(Yl)),kt!==r)for(;kt!==r;)K.push(kt),_l.test(t.charAt(_))?(kt=t.charAt(_),_++):(kt=r,Qt===0&&ys(Yl));else K=r;K===r?(_=Mr,Mr=r):Mr=kn=[kn,Yn,K]}else _=Mr,Mr=r;else _=Mr,Mr=r;Mr===r&&(Mr=null),Mr!==r&&(kn=ln())!==r&&(Yn=Yu())!==r&&(K=ln())!==r?((kt=bu())===r&&(kt=null),kt===r?(_=Q,Q=r):(Ls=Q,Js=Mr,Ve=kt,Tr={dataType:Tr,length:parseInt(e.join(""),10),scale:Js&&parseInt(Js[2].join(""),10),parentheses:!0,suffix:Ve},Q=Tr)):(_=Q,Q=r)}else _=Q,Q=r;else _=Q,Q=r}else _=Q,Q=r;else _=Q,Q=r;else _=Q,Q=r;else _=Q,Q=r;var Js,Ve;if(Q===r){if(Q=_,(Tr=al())===r&&(Tr=Jl())===r&&(Tr=Ba())===r&&(Tr=Qi())===r&&(Tr=ya())===r&&(Tr=l())===r&&(Tr=dn())===r&&(Tr=Ql())===r&&(Tr=vi()),Tr!==r){if(P=[],_l.test(t.charAt(_))?(hr=t.charAt(_),_++):(hr=r,Qt===0&&ys(Yl)),hr!==r)for(;hr!==r;)P.push(hr),_l.test(t.charAt(_))?(hr=t.charAt(_),_++):(hr=r,Qt===0&&ys(Yl));else P=r;P!==r&&(hr=ln())!==r?((ht=bu())===r&&(ht=null),ht===r?(_=Q,Q=r):(Ls=Q,Tr=(function(co,_t,Eo){return{dataType:co,length:parseInt(_t.join(""),10),suffix:Eo}})(Tr,P,ht),Q=Tr)):(_=Q,Q=r)}else _=Q,Q=r;Q===r&&(Q=_,(Tr=al())===r&&(Tr=Jl())===r&&(Tr=Ba())===r&&(Tr=Qi())===r&&(Tr=ya())===r&&(Tr=l())===r&&(Tr=dn())===r&&(Tr=Ql())===r&&(Tr=vi()),Tr!==r&&(P=ln())!==r?((hr=bu())===r&&(hr=null),hr!==r&&(ht=ln())!==r?(Ls=Q,Tr=(function(co,_t){return{dataType:co,suffix:_t}})(Tr,hr),Q=Tr):(_=Q,Q=r)):(_=Q,Q=r))}return Q})())===r&&(Y=(function(){var Q=_,Tr,P,hr;if((Tr=Va())===r&&(Tr=lt())===r&&(Tr=Wn())===r&&(Tr=Eu()),Tr!==r)if(ln()!==r)if(zu()!==r)if(ln()!==r){if(P=[],_l.test(t.charAt(_))?(hr=t.charAt(_),_++):(hr=r,Qt===0&&ys(Yl)),hr!==r)for(;hr!==r;)P.push(hr),_l.test(t.charAt(_))?(hr=t.charAt(_),_++):(hr=r,Qt===0&&ys(Yl));else P=r;P!==r&&(hr=ln())!==r&&Yu()!==r?(Ls=Q,Tr={dataType:Tr,length:parseInt(P.join(""),10),parentheses:!0},Q=Tr):(_=Q,Q=r)}else _=Q,Q=r;else _=Q,Q=r;else _=Q,Q=r;else _=Q,Q=r;return Q===r&&(Q=_,(Tr=Va())===r&&(Tr=lt())===r&&(Tr=Wn())===r&&(Tr=Eu()),Tr!==r&&(Ls=Q,Tr=Vb(Tr)),Q=Tr),Q})())===r&&(Y=(function(){var Q=_,Tr;return(Tr=(function(){var P,hr,ht,e;return P=_,t.substr(_,4).toLowerCase()==="json"?(hr=t.substr(_,4),_+=4):(hr=r,Qt===0&&ys(ac)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="JSON")),P})())!==r&&(Ls=Q,Tr=Vb(Tr)),Q=Tr})())===r&&(Y=(function(){var Q=_,Tr;return(Tr=(function(){var P,hr,ht,e;return P=_,t.substr(_,8).toLowerCase()==="tinytext"?(hr=t.substr(_,8),_+=8):(hr=r,Qt===0&&ys(kp)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="TINYTEXT")),P})())===r&&(Tr=(function(){var P,hr,ht,e;return P=_,t.substr(_,4).toLowerCase()==="text"?(hr=t.substr(_,4),_+=4):(hr=r,Qt===0&&ys(Mp)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="TEXT")),P})())===r&&(Tr=(function(){var P,hr,ht,e;return P=_,t.substr(_,10).toLowerCase()==="mediumtext"?(hr=t.substr(_,10),_+=10):(hr=r,Qt===0&&ys(rp)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="MEDIUMTEXT")),P})())===r&&(Tr=(function(){var P,hr,ht,e;return P=_,t.substr(_,8).toLowerCase()==="longtext"?(hr=t.substr(_,8),_+=8):(hr=r,Qt===0&&ys(yp)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="LONGTEXT")),P})()),Tr!==r&&(Ls=Q,Tr={dataType:Tr}),Q=Tr})()),Y}function bu(){var Y,Q,Tr;return Y=_,(Q=qc())===r&&(Q=null),Q!==r&&ln()!==r?((Tr=(function(){var P,hr,ht,e;return P=_,t.substr(_,8).toLowerCase()==="zerofill"?(hr=t.substr(_,8),_+=8):(hr=r,Qt===0&&ys(O0)),hr===r?(_=P,P=r):(ht=_,Qt++,e=Ye(),Qt--,e===r?ht=void 0:(_=ht,ht=r),ht===r?(_=P,P=r):(Ls=P,P=hr="ZEROFILL")),P})())===r&&(Tr=null),Tr===r?(_=Y,Y=r):(Ls=Y,Y=Q=(function(P,hr){let ht=[];return P&&ht.push(P),hr&&ht.push(hr),ht})(Q,Tr))):(_=Y,Y=r),Y}let Ht={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXCEPT:!0,EXPLAIN:!0,FALSE:!0,FETCH:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,KEY:!0,LEFT:!0,LIKE:!0,LIMIT:!0,LOW_PRIORITY:!0,MINUS:!0,NOT:!0,NULL:!0,OFFSET:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,READ:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,TYPE:!0,UNION:!0,UPDATE:!0,USING:!0,VALUES:!0,WITH:!0,WHEN:!0,WHERE:!0,WRITE:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0};function rt(){return Ce.includeLocations?{loc:Kb(Ls,_)}:{}}function k(Y,Q){return{type:"unary_expr",operator:Y,expr:Q}}function Lr(Y,Q,Tr){return{type:"binary_expr",operator:Y,left:Q,right:Tr}}function Or(Y){let Q=To(9007199254740991);return!(To(Y)<Q)}function Fr(Y,Q,Tr=3){let P=[Y];for(let hr=0;hr<Q.length;hr++)delete Q[hr][Tr].tableList,delete Q[hr][Tr].columnList,P.push(Q[hr][Tr]);return P}function dr(Y,Q){let Tr=Y;for(let P=0;P<Q.length;P++)Tr=Lr(Q[P][1],Tr,Q[P][3]);return Tr}function It(Y){return yt[Y]||Y||null}function Dt(Y){let Q=new Set;for(let Tr of Y.keys()){let P=Tr.split("::");if(!P){Q.add(Tr);break}P&&P[1]&&(P[1]=It(P[1])),Q.add(P.join("::"))}return Array.from(Q)}let Ln=[],Un=new Set,u=new Set,yt={};if((Ie=ge())!==r&&_===t.length)return Ie;throw Ie!==r&&_<t.length&&ys({type:"end"}),_p(dv,Cf<t.length?t.charAt(Cf):null,Cf<t.length?Kb(Cf,Cf+1):Kb(Cf,Cf))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:C0},ge=C0,Dn=hs("IF",!0),Pn=hs("EXTENSION",!0),Ae=hs("SCHEMA",!0),ou=hs("VERSION",!0),Hs=function($,J){return dt($,J,1)},Uo=hs("NULLS",!0),Ps=hs("FIRST",!0),pe=hs("LAST",!0),_o=hs("AUTO_INCREMENT",!0),Gi=hs("UNIQUE",!0),mi=hs("KEY",!0),Fi=hs("PRIMARY",!0),T0=hs("COLUMN_FORMAT",!0),dl=hs("FIXED",!0),Gl=hs("DYNAMIC",!0),Fl=hs("DEFAULT",!0),nc=hs("STORAGE",!0),xc=hs("DISK",!0),I0=hs("MEMORY",!0),ji=hs("ALGORITHM",!0),af=hs("INSTANT",!0),qf=hs("INPLACE",!0),Uc=hs("COPY",!0),wc=hs("LOCK",!0),Ll=hs("NONE",!0),jl=hs("SHARED",!0),Oi=hs("EXCLUSIVE",!0),bb=hs("PRIMARY KEY",!0),Vi=hs("FOREIGN KEY",!0),zc=hs("MATCH FULL",!0),kc=hs("MATCH PARTIAL",!0),vb=hs("MATCH SIMPLE",!0),Zc=hs("RESTRICT",!0),nl=hs("CASCADE",!0),Xf=hs("SET NULL",!0),gl=hs("NO ACTION",!0),lf=hs("SET DEFAULT",!0),Jc=hs("TRIGGER",!0),Qc=hs("BEFORE",!0),gv=hs("AFTER",!0),g0=hs("INSTEAD OF",!0),Ki=hs("ON",!0),Pb=hs("EXECUTE",!0),ei=hs("PROCEDURE",!0),pb=hs("FUNCTION",!0),j0=hs("OF",!0),B0=hs("NOT",!0),Mc=hs("DEFERRABLE",!0),Cl=hs("INITIALLY IMMEDIATE",!0),$u=hs("INITIALLY DEFERRED",!0),r0=hs("FOR",!0),zn=hs("EACH",!0),Ss=hs("ROW",!0),te=hs("STATEMENT",!0),ce=hs("CHARACTER",!0),He=hs("SET",!0),Ue=hs("CHARSET",!0),Qe=hs("COLLATE",!0),uo=hs("AVG_ROW_LENGTH",!0),Ao=hs("KEY_BLOCK_SIZE",!0),Pu=hs("MAX_ROWS",!0),Ca=hs("MIN_ROWS",!0),ku=hs("STATS_SAMPLE_PAGES",!0),ca=hs("CONNECTION",!0),na=hs("COMPRESSION",!0),Qa=hs("'",!1),cf=hs("ZLIB",!0),ri=hs("LZ4",!0),t0=hs("ENGINE",!0),n0=hs("IN",!0),Dc=hs("ACCESS SHARE",!0),s0=hs("ROW SHARE",!0),Rv=hs("ROW EXCLUSIVE",!0),nv=hs("SHARE UPDATE EXCLUSIVE",!0),sv=hs("SHARE ROW EXCLUSIVE",!0),ev=hs("ACCESS EXCLUSIVE",!0),yc=hs("SHARE",!0),$c=hs("MODE",!0),Sf=hs("NOWAIT",!0),R0=hs("(",!1),Rl=hs(")",!1),ff=hs("BTREE",!0),Vf=hs("HASH",!0),Vv=hs("GIST",!0),db=hs("GIN",!0),Of=hs("WITH",!0),Pc=hs("PARSER",!0),H0=hs("VISIBLE",!0),bf=hs("INVISIBLE",!0),Lb=function($,J){return J.unshift($),J.forEach(br=>{let{table:mr,as:et}=br;Qs[mr]=mr,et&&(Qs[et]=mr),(function(pt){let At=fn(pt);pt.clear(),At.forEach(Bt=>pt.add(Bt))})(ms)}),J},Fa=hs("DATA",!0),Kf=hs("TIMECOL",!0),Nv=hs("DESCRIPTOR",!0),Gb=hs("SIZE",!0),hc=hs("OFFSET",!0),Bl=hs("=",!1),sl=function($,J){return Yt($,J)},sc=hs("!",!1),Y0=hs(">=",!1),N0=hs(">",!1),ov=hs("<=",!1),Fb=hs("<>",!1),e0=hs("<",!1),Cb=hs("!=",!1),_0=hs("ESCAPE",!0),zf=hs("+",!1),je=hs("-",!1),o0=hs("*",!1),xi=hs("/",!1),xf=hs("%",!1),Zf=hs("$",!1),W0=hs("~",!1),jb=hs("?|",!1),Uf=hs("?&",!1),u0=hs("?",!1),wb=hs("#-",!1),Ui=hs("#>>",!1),uv=hs("#>",!1),yb=hs("@>",!1),hb=hs("<@",!1),Kv=function($){return F[$.toUpperCase()]===!0},Gc=hs('"',!1),_v=/^[^"]/,kf=Yi(['"'],!0,!1),vf=/^[^']/,ki=Yi(["'"],!0,!1),Hl=hs("`",!1),Eb=/^[^`]/,Bb=Yi(["`"],!0,!1),pa=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,wl=Yi([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Nl=/^[A-Za-z0-9_\-$\u4E00-\u9FA5\xC0-\u017F]/,Sv=Yi([["A","Z"],["a","z"],["0","9"],"_","-","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Hb=/^[A-Za-z0-9_]/,Jf=Yi([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),pf=hs(":",!1),Yb=hs("OVER",!0),av=hs("POSITION",!0),iv=hs("VALUE",!0),a0=hs("NULL",!0),_l=hs("ABSENT",!0),Yl=hs("json_object",!0),Ab=hs("BOTH",!0),Mf=hs("LEADING",!0),Wb=hs("TRAILING",!0),Df=hs("trim",!0),mb=hs("placing",!0),i0=hs("for",!0),ft=hs("overlay",!0),tn=hs("SUBSTRING",!0),_n=hs("CENTURY",!0),En=hs("DAY",!0),Os=hs("DATE",!0),gs=hs("DECADE",!0),Ys=hs("DOW",!0),Te=hs("DOY",!0),ye=hs("EPOCH",!0),Be=hs("HOUR",!0),io=hs("ISODOW",!0),Ro=hs("ISOYEAR",!0),So=hs("MICROSECONDS",!0),uu=hs("MILLENNIUM",!0),ko=hs("MILLISECONDS",!0),yu=hs("MINUTE",!0),au=hs("MONTH",!0),Iu=hs("QUARTER",!0),mu=hs("SECOND",!0),Ju=hs("TIMEZONE",!0),ua=hs("TIMEZONE_HOUR",!0),Sa=hs("TIMEZONE_MINUTE",!0),ma=hs("WEEK",!0),Bi=hs("YEAR",!0),sa=/^[^"\\\0-\x1F\x7F]/,di=Yi(['"',"\\",["\0",""],"\x7F"],!0,!1),Hi=/^[^'\\]/,S0=Yi(["'","\\"],!0,!1),l0=hs("\\'",!1),Ov=hs('\\"',!1),lv=hs("\\\\",!1),fi=hs("\\/",!1),Wl=hs("\\b",!1),ec=hs("\\f",!1),Fc=hs("\\n",!1),xv=hs("\\r",!1),lp=hs("\\t",!1),Uv=hs("\\u",!1),$f=hs("\\",!1),Tb=hs("''",!1),cp=hs('""',!1),c0=hs("``",!1),q0=/^[\n\r]/,df=Yi([` +`,"\r"],!1,!1),f0=hs(".",!1),b0=/^[0-9]/,Pf=Yi([["0","9"]],!1,!1),Sp=/^[0-9a-fA-F]/,kv=Yi([["0","9"],["a","f"],["A","F"]],!1,!1),Op=/^[eE]/,fp=Yi(["e","E"],!1,!1),oc=/^[+\-]/,uc=Yi(["+","-"],!1,!1),qb=hs("NOT NULL",!0),Gf=hs("TRUE",!0),zv=hs("TO",!0),Mv=hs("FALSE",!0),Zv=hs("DROP",!0),bp=hs("USE",!0),Ib=hs("ALTER",!0),Dv=hs("SELECT",!0),vp=hs("UPDATE",!0),Jv=hs("CREATE",!0),Xb=hs("TEMPORARY",!0),pp=hs("DELETE",!0),xp=hs("INSERT",!0),cv=hs("RECURSIVE",!0),Up=hs("REPLACE",!0),Xp=hs("RETURNING",!0),Qv=hs("RENAME",!0),Vp=hs("IGNORE",!0),dp=hs("PARTITION",!0),Kp=hs("INTO",!0),ld=hs("FROM",!0),Lp=hs("AS",!0),Cp=hs("TABLE",!0),wp=hs("TABLESPACE",!0),gb=hs("DATABASE",!0),O0=hs("NATURAL",!0),v0=hs("LEFT",!0),ac=hs("RIGHT",!0),Rb=hs("FULL",!0),Ff=hs("INNER",!0),kp=hs("JOIN",!0),Mp=hs("CROSS",!0),rp=hs("APPLY",!0),yp=hs("OUTER",!0),hp=hs("UNION",!0),Ep=hs("INTERSECT",!0),Nb=hs("EXCEPT",!0),Qf=hs("VALUES",!0),_b=hs("USING",!0),Ap=hs("WHERE",!0),Dp=hs("GROUP",!0),$v=hs("BY",!0),$p=hs("ORDER",!0),Pp=hs("HAVING",!0),Pv=hs("LIMIT",!0),Gp=hs("ASC",!0),Fp=hs("DESC",!0),mp=hs("ALL",!0),zp=hs("DISTINCT",!0),Zp=hs("BETWEEN",!0),Gv=hs("IS",!0),tp=hs("LIKE",!0),Fv=hs("SIMILAR",!0),yl=hs("EXISTS",!0),jc=hs("AND",!0),fv=hs("OR",!0),Sl=hs("COUNT",!0),Ol=hs("MAX",!0),np=hs("MIN",!0),bv=hs("SUM",!0),ql=hs("AVG",!0),Ec=hs("COLLECT",!0),Jp=hs("RANK",!0),Qp=hs("DENSE_RANK",!0),sp=hs("LISTAGG",!0),jv=hs("ROW_NUMBER",!0),Tp=hs("TUMBLE",!0),rd=hs("EXTRACT",!0),jp=hs("CALL",!0),Ip=hs("CASE",!0),td=hs("WHEN",!0),nd=hs("THEN",!0),Bp=hs("ELSE",!0),Hp=hs("END",!0),gp=hs("CAST",!0),sd=hs("TRY_CAST",!0),ed=hs("BOOL",!0),Yp=hs("BOOLEAN",!0),od=hs("CHAR",!0),ud=hs("VARCHAR",!0),Rp=hs("STRING",!0),O=hs("NUMERIC",!0),ps=hs("DECIMAL",!0),Bv=hs("SIGNED",!0),Lf=hs("UNSIGNED",!0),Hv=hs("INT",!0),on=hs("ZEROFILL",!0),zs=hs("INTEGER",!0),Bc=hs("JSON",!0),vv=hs("JSONB",!0),ep=hs("GEOMETRY",!0),Rs=hs("SMALLINT",!0),Np=hs("TINYINT",!0),Wp=hs("TINYTEXT",!0),cd=hs("TEXT",!0),Vb=hs("MEDIUMTEXT",!0),_=hs("LONGTEXT",!0),Ls=hs("BIGINT",!0),pv=hs("FLOAT",!0),Cf=hs("DOUBLE",!0),dv=hs("DATETIME",!0),Qt=hs("TIME",!0),Xs=hs("TIMESTAMP",!0),ic=hs("TRUNCATE",!0),op=hs("USER",!0),Kb=hs("UUID",!0),ys=hs("ARRAY",!0),_p=hs("MAP",!0),Yv=hs("CURRENT_DATE",!0),Lv=hs("INTERVAL",!0),Wv=hs("CURRENT_TIME",!0),zb=hs("CURRENT_TIMESTAMP",!0),wf=hs("CURRENT_USER",!0),qv=hs("SESSION_USER",!0),Cv=hs("SYSTEM_USER",!0),rb=hs("GLOBAL",!0),tb=hs("SESSION",!0),I=hs("LOCAL",!0),us=hs("PERSIST",!0),Sb=hs("PERSIST_ONLY",!0),xl=hs("@",!1),nb=hs("@@",!1),zt=hs("return",!0),$s=hs(":=",!1),ja=hs("::",!1),Ob=hs("DUAL",!0),jf=hs("ADD",!0),is=hs("COLUMN",!0),el=hs("INDEX",!0),Ti=hs("FULLTEXT",!0),wv=hs("SPATIAL",!0),yf=hs("COMMENT",!0),X0=hs("CONSTRAINT",!0),p0=hs("CONCURRENTLY",!0),up=hs("REFERENCES",!0),xb=hs("SQL_CALC_FOUND_ROWS",!0),Zb=hs("SQL_CACHE",!0),yv=hs("SQL_NO_CACHE",!0),Jb=hs("SQL_SMALL_RESULT",!0),hv=hs("SQL_BIG_RESULT",!0),h=hs("SQL_BUFFER_RESULT",!0),ss=hs(",",!1),Xl=hs("[",!1),d0=hs("]",!1),Bf=hs(";",!1),jt=hs("->",!1),Us=hs("->>",!1),ol=hs("=>",!1),sb=hs("||",!1),eb=hs("&&",!1),p=hs("/*",!1),ns=hs("*/",!1),Vl=hs("--",!1),Hc={type:"any"},Ub=hs("years",!0),Ft=hs("months",!0),xs=hs("days",!0),Li=hs("hours",!0),Ta=hs("minutes",!0),x0=hs("seconds",!0),Zn=/^[ \t\n\r]/,kb=Yi([" "," ",` +`,"\r"],!1,!1),U0=function($){return{dataType:$}},C=0,Kn=0,zi=[{line:1,column:1}],Kl=0,zl=[],Ot=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function hs($,J){return{type:"literal",text:$,ignoreCase:J}}function Yi($,J,br){return{type:"class",parts:$,inverted:J,ignoreCase:br}}function hl($){var J,br=zi[$];if(br)return br;for(J=$-1;!zi[J];)J--;for(br={line:(br=zi[J]).line,column:br.column};J<$;)t.charCodeAt(J)===10?(br.line++,br.column=1):br.column++,J++;return zi[$]=br,br}function L0($,J){var br=hl($),mr=hl(J);return{start:{offset:$,line:br.line,column:br.column},end:{offset:J,line:mr.line,column:mr.column}}}function Bn($){C<Kl||(C>Kl&&(Kl=C,zl=[]),zl.push($))}function Qb($,J,br){return new go(go.buildMessage($,J),$,J,br)}function C0(){var $,J;return $=C,pr()!==r&&(J=(function(){var br,mr,et,pt,At,Bt,Ut,pn;if(br=C,(mr=k0())!==r){for(et=[],pt=C,(At=pr())!==r&&(Bt=nr())!==r&&(Ut=pr())!==r&&(pn=k0())!==r?pt=At=[At,Bt,Ut,pn]:(C=pt,pt=r);pt!==r;)et.push(pt),pt=C,(At=pr())!==r&&(Bt=nr())!==r&&(Ut=pr())!==r&&(pn=k0())!==r?pt=At=[At,Bt,Ut,pn]:(C=pt,pt=r);et===r?(C=br,br=r):(Kn=br,mr=(function(Cn,Hn){let qn=Cn&&Cn.ast||Cn,Cs=Hn&&Hn.length&&Hn[0].length>=4?[qn]:qn;for(let js=0;js<Hn.length;js++)Hn[js][3]&&Hn[js][3].length!==0&&Cs.push(Hn[js][3]&&Hn[js][3].ast||Hn[js][3]);return{tableList:Array.from(Jn),columnList:fn(ms),ast:Cs}})(mr,et),br=mr)}else C=br,br=r;return br})())!==r?(Kn=$,$=J):(C=$,$=r),$}function Hf(){var $;return($=(function(){var J=C,br,mr,et,pt,At;(br=o())!==r&&pr()!==r&&(mr=Un())!==r&&pr()!==r&&(et=aa())!==r?(Kn=J,Bt=br,Ut=mr,(pn=et)&&pn.forEach(Cn=>Jn.add(`${Bt}::${[Cn.db,Cn.schema].filter(Boolean).join(".")||null}::${Cn.table}`)),br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:Bt.toLowerCase(),keyword:Ut.toLowerCase(),name:pn}},J=br):(C=J,J=r);var Bt,Ut,pn;return J===r&&(J=C,(br=o())!==r&&pr()!==r&&(mr=s())!==r&&pr()!==r&&(et=Ba())!==r&&pr()!==r&&u()!==r&&pr()!==r&&(pt=Ci())!==r&&pr()!==r?((At=(function(){var Cn=C,Hn,qn,Cs,js,qe;if((Hn=Af())===r&&(Hn=El()),Hn!==r){for(qn=[],Cs=C,(js=pr())===r?(C=Cs,Cs=r):((qe=Af())===r&&(qe=El()),qe===r?(C=Cs,Cs=r):Cs=js=[js,qe]);Cs!==r;)qn.push(Cs),Cs=C,(js=pr())===r?(C=Cs,Cs=r):((qe=Af())===r&&(qe=El()),qe===r?(C=Cs,Cs=r):Cs=js=[js,qe]);qn===r?(C=Cn,Cn=r):(Kn=Cn,Hn=Hs(Hn,qn),Cn=Hn)}else C=Cn,Cn=r;return Cn})())===r&&(At=null),At!==r&&pr()!==r?(Kn=J,br=(function(Cn,Hn,qn,Cs,js){return{tableList:Array.from(Jn),columnList:fn(ms),ast:{type:Cn.toLowerCase(),keyword:Hn.toLowerCase(),name:qn,table:Cs,options:js}}})(br,mr,et,pt,At),J=br):(C=J,J=r)):(C=J,J=r)),J})())===r&&($=(function(){var J;return(J=(function(){var br=C,mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn,Cs,js,qe,bo,tu,Ru;(mr=ba())!==r&&pr()!==r?((et=bu())===r&&(et=null),et!==r&&pr()!==r&&Un()!==r&&pr()!==r?((pt=wa())===r&&(pt=null),pt!==r&&pr()!==r&&(At=aa())!==r&&pr()!==r&&(Bt=(function(){var fo,Ks,Vo,eu,Jo,Bu,oa,Nu,cu;if(fo=C,(Ks=vs())!==r)if(pr()!==r)if((Vo=ob())!==r){for(eu=[],Jo=C,(Bu=pr())!==r&&(oa=Zr())!==r&&(Nu=pr())!==r&&(cu=ob())!==r?Jo=Bu=[Bu,oa,Nu,cu]:(C=Jo,Jo=r);Jo!==r;)eu.push(Jo),Jo=C,(Bu=pr())!==r&&(oa=Zr())!==r&&(Nu=pr())!==r&&(cu=ob())!==r?Jo=Bu=[Bu,oa,Nu,cu]:(C=Jo,Jo=r);eu!==r&&(Jo=pr())!==r&&(Bu=Ds())!==r?(Kn=fo,Ks=dt(Vo,eu),fo=Ks):(C=fo,fo=r)}else C=fo,fo=r;else C=fo,fo=r;else C=fo,fo=r;return fo})())!==r&&(Ut=pr())!==r?((pn=(function(){var fo,Ks,Vo,eu,Jo,Bu,oa,Nu;if(fo=C,(Ks=Al())!==r){for(Vo=[],eu=C,(Jo=pr())===r?(C=eu,eu=r):((Bu=Zr())===r&&(Bu=null),Bu!==r&&(oa=pr())!==r&&(Nu=Al())!==r?eu=Jo=[Jo,Bu,oa,Nu]:(C=eu,eu=r));eu!==r;)Vo.push(eu),eu=C,(Jo=pr())===r?(C=eu,eu=r):((Bu=Zr())===r&&(Bu=null),Bu!==r&&(oa=pr())!==r&&(Nu=Al())!==r?eu=Jo=[Jo,Bu,oa,Nu]:(C=eu,eu=r));Vo===r?(C=fo,fo=r):(Kn=fo,Ks=dt(Ks,Vo),fo=Ks)}else C=fo,fo=r;return fo})())===r&&(pn=null),pn!==r&&(Cn=pr())!==r?(Hn=C,(qn=hr())!==r&&(Cs=pr())!==r&&(js=vs())!==r&&(qe=pr())!==r&&(bo=ti())!==r&&(tu=pr())!==r&&(Ru=Ds())!==r?Hn=qn=[qn,Cs,js,qe,bo,tu,Ru]:(C=Hn,Hn=r),Hn===r&&(Hn=null),Hn!==r&&(qn=pr())!==r?((Cs=Or())===r&&(Cs=k()),Cs===r&&(Cs=null),Cs!==r&&(js=pr())!==r?((qe=Ln())===r&&(qe=null),qe!==r&&(bo=pr())!==r?((tu=Wi())===r&&(tu=null),tu===r?(C=br,br=r):(Kn=br,mr=(function(fo,Ks,Vo,eu,Jo,Bu,oa,Nu,cu,le){return eu&&eu.forEach(vu=>Jn.add(`create::${[vu.db,vu.schema].filter(Boolean).join(".")||null}::${vu.table}`)),{tableList:Array.from(Jn),columnList:fn(ms),ast:{type:fo[0].toLowerCase(),keyword:"table",temporary:Ks&&Ks[0].toLowerCase(),if_not_exists:Vo,table:eu,ignore_replace:Nu&&Nu[0].toLowerCase(),as:cu&&cu[0].toLowerCase(),query_expr:le&&le.ast,create_definitions:Jo,table_options:Bu,with:oa&&oa[4]}}})(mr,et,pt,At,Bt,pn,Hn,Cs,qe,tu),br=mr)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r),br===r&&(br=C,(mr=ba())!==r&&pr()!==r?((et=bu())===r&&(et=null),et!==r&&pr()!==r&&Un()!==r&&pr()!==r?((pt=wa())===r&&(pt=null),pt!==r&&pr()!==r&&(At=aa())!==r&&pr()!==r?(Bt=C,(Ut=hr())!==r&&(pn=pr())!==r&&(Cn=vs())!==r&&(Hn=pr())!==r&&(qn=ti())!==r&&(Cs=pr())!==r&&(js=Ds())!==r?Bt=Ut=[Ut,pn,Cn,Hn,qn,Cs,js]:(C=Bt,Bt=r),Bt===r&&(Bt=null),Bt!==r&&(Ut=pr())!==r&&(pn=(function fo(){var Ks,Vo;(Ks=(function(){var Jo=C,Bu;return Js()!==r&&pr()!==r&&(Bu=aa())!==r?(Kn=Jo,Jo={type:"like",table:Bu}):(C=Jo,Jo=r),Jo})())===r&&(Ks=C,vs()!==r&&pr()!==r&&(Vo=fo())!==r&&pr()!==r&&Ds()!==r?(Kn=Ks,(eu=Vo).parentheses=!0,Ks=eu):(C=Ks,Ks=r));var eu;return Ks})())!==r?(Kn=br,Je=mr,hu=et,Go=pt,xe=Bt,qs=pn,(nu=At)&&nu.forEach(fo=>Jn.add(`create::${[fo.db,fo.schema].filter(Boolean).join(".")||null}::${fo.table}`)),mr={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:Je[0].toLowerCase(),keyword:"table",temporary:hu&&hu[0].toLowerCase(),if_not_exists:Go,table:nu,like:qs,with:xe&&xe[4]}},br=mr):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r));var Je,hu,Go,nu,xe,qs;return br})())===r&&(J=(function(){var br=C,mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn,Cs,js,qe,bo,tu,Ru,Je,hu,Go,nu;return(mr=ba())!==r&&pr()!==r?(et=C,(pt=ao())!==r&&(At=pr())!==r&&(Bt=k())!==r?et=pt=[pt,At,Bt]:(C=et,et=r),et===r&&(et=null),et!==r&&(pt=pr())!==r?((At=bn())===r&&(At=null),At!==r&&(Bt=pr())!==r?(t.substr(C,7).toLowerCase()==="trigger"?(Ut=t.substr(C,7),C+=7):(Ut=r,Ot===0&&Bn(Jc)),Ut!==r&&pr()!==r&&(pn=ia())!==r&&pr()!==r?(t.substr(C,6).toLowerCase()==="before"?(Cn=t.substr(C,6),C+=6):(Cn=r,Ot===0&&Bn(Qc)),Cn===r&&(t.substr(C,5).toLowerCase()==="after"?(Cn=t.substr(C,5),C+=5):(Cn=r,Ot===0&&Bn(gv)),Cn===r&&(t.substr(C,10).toLowerCase()==="instead of"?(Cn=t.substr(C,10),C+=10):(Cn=r,Ot===0&&Bn(g0)))),Cn!==r&&pr()!==r&&(Hn=(function(){var xe,qs,fo,Ks,Vo,eu,Jo,Bu;if(xe=C,(qs=ub())!==r){for(fo=[],Ks=C,(Vo=pr())!==r&&(eu=ao())!==r&&(Jo=pr())!==r&&(Bu=ub())!==r?Ks=Vo=[Vo,eu,Jo,Bu]:(C=Ks,Ks=r);Ks!==r;)fo.push(Ks),Ks=C,(Vo=pr())!==r&&(eu=ao())!==r&&(Jo=pr())!==r&&(Bu=ub())!==r?Ks=Vo=[Vo,eu,Jo,Bu]:(C=Ks,Ks=r);fo===r?(C=xe,xe=r):(Kn=xe,qs=dt(qs,fo),xe=qs)}else C=xe,xe=r;return xe})())!==r&&pr()!==r?(t.substr(C,2).toLowerCase()==="on"?(qn=t.substr(C,2),C+=2):(qn=r,Ot===0&&Bn(Ki)),qn!==r&&pr()!==r&&(Cs=Ci())!==r&&pr()!==r?(js=C,(qe=It())!==r&&(bo=pr())!==r&&(tu=Ci())!==r?js=qe=[qe,bo,tu]:(C=js,js=r),js===r&&(js=null),js!==r&&(qe=pr())!==r?((bo=(function(){var xe=C,qs=C,fo,Ks,Vo;t.substr(C,3).toLowerCase()==="not"?(fo=t.substr(C,3),C+=3):(fo=r,Ot===0&&Bn(B0)),fo===r&&(fo=null),fo!==r&&(Ks=pr())!==r?(t.substr(C,10).toLowerCase()==="deferrable"?(Vo=t.substr(C,10),C+=10):(Vo=r,Ot===0&&Bn(Mc)),Vo===r?(C=qs,qs=r):qs=fo=[fo,Ks,Vo]):(C=qs,qs=r),qs!==r&&(fo=pr())!==r?(t.substr(C,19).toLowerCase()==="initially immediate"?(Ks=t.substr(C,19),C+=19):(Ks=r,Ot===0&&Bn(Cl)),Ks===r&&(t.substr(C,18).toLowerCase()==="initially deferred"?(Ks=t.substr(C,18),C+=18):(Ks=r,Ot===0&&Bn($u))),Ks===r?(C=xe,xe=r):(Kn=xe,Jo=Ks,qs={keyword:(eu=qs)&&eu[0]?eu[0].toLowerCase()+" deferrable":"deferrable",args:Jo&&Jo.toLowerCase()},xe=qs)):(C=xe,xe=r);var eu,Jo;return xe})())===r&&(bo=null),bo!==r&&(tu=pr())!==r?((Ru=(function(){var xe=C,qs,fo,Ks;t.substr(C,3).toLowerCase()==="for"?(qs=t.substr(C,3),C+=3):(qs=r,Ot===0&&Bn(r0)),qs!==r&&pr()!==r?(t.substr(C,4).toLowerCase()==="each"?(fo=t.substr(C,4),C+=4):(fo=r,Ot===0&&Bn(zn)),fo===r&&(fo=null),fo!==r&&pr()!==r?(t.substr(C,3).toLowerCase()==="row"?(Ks=t.substr(C,3),C+=3):(Ks=r,Ot===0&&Bn(Ss)),Ks===r&&(t.substr(C,9).toLowerCase()==="statement"?(Ks=t.substr(C,9),C+=9):(Ks=r,Ot===0&&Bn(te))),Ks===r?(C=xe,xe=r):(Kn=xe,Vo=qs,Jo=Ks,qs={keyword:(eu=fo)?`${Vo.toLowerCase()} ${eu.toLowerCase()}`:Vo.toLowerCase(),args:Jo.toLowerCase()},xe=qs)):(C=xe,xe=r)):(C=xe,xe=r);var Vo,eu,Jo;return xe})())===r&&(Ru=null),Ru!==r&&pr()!==r?((Je=(function(){var xe=C,qs;return Ke()!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(qs=Nt())!==r&&pr()!==r&&Ds()!==r?(Kn=xe,xe={type:"when",cond:qs,parentheses:!0}):(C=xe,xe=r),xe})())===r&&(Je=null),Je!==r&&pr()!==r?(t.substr(C,7).toLowerCase()==="execute"?(hu=t.substr(C,7),C+=7):(hu=r,Ot===0&&Bn(Pb)),hu!==r&&pr()!==r?(t.substr(C,9).toLowerCase()==="procedure"?(Go=t.substr(C,9),C+=9):(Go=r,Ot===0&&Bn(ei)),Go===r&&(t.substr(C,8).toLowerCase()==="function"?(Go=t.substr(C,8),C+=8):(Go=r,Ot===0&&Bn(pb))),Go!==r&&pr()!==r&&(nu=so())!==r?(Kn=br,mr=(function(xe,qs,fo,Ks,Vo,eu,Jo,Bu,oa,Nu,cu,le,vu,Ee,yi,Rc){return{type:"create",replace:qs&&"or replace",constraint:Vo,location:eu&&eu.toLowerCase(),events:Jo,table:oa,from:Nu&&Nu[2],deferrable:cu,for_each:le,when:vu,execute:{keyword:"execute "+yi.toLowerCase(),expr:Rc},constraint_type:Ks&&Ks.toLowerCase(),keyword:Ks&&Ks.toLowerCase(),constraint_kw:fo&&fo.toLowerCase(),resource:"constraint"}})(0,et,At,Ut,pn,Cn,Hn,0,Cs,js,bo,Ru,Je,0,Go,nu),br=mr):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r),br})())===r&&(J=(function(){var br=C,mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn,Cs,js,qe;(mr=ba())!==r&&pr()!==r?(t.substr(C,9).toLowerCase()==="extension"?(et=t.substr(C,9),C+=9):(et=r,Ot===0&&Bn(Pn)),et!==r&&pr()!==r?((pt=wa())===r&&(pt=null),pt!==r&&pr()!==r?((At=ia())===r&&(At=Ya()),At!==r&&pr()!==r?((Bt=hr())===r&&(Bt=null),Bt!==r&&pr()!==r?(Ut=C,t.substr(C,6).toLowerCase()==="schema"?(pn=t.substr(C,6),C+=6):(pn=r,Ot===0&&Bn(Ae)),pn!==r&&(Cn=pr())!==r&&(Hn=ia())!==r?Ut=pn=[pn,Cn,Hn]:(C=Ut,Ut=r),Ut===r&&(Ut=Ya()),Ut===r&&(Ut=null),Ut!==r&&(pn=pr())!==r?(Cn=C,t.substr(C,7).toLowerCase()==="version"?(Hn=t.substr(C,7),C+=7):(Hn=r,Ot===0&&Bn(ou)),Hn!==r&&(qn=pr())!==r?((Cs=ia())===r&&(Cs=Ya()),Cs===r?(C=Cn,Cn=r):Cn=Hn=[Hn,qn,Cs]):(C=Cn,Cn=r),Cn===r&&(Cn=null),Cn!==r&&(Hn=pr())!==r?(qn=C,(Cs=It())!==r&&(js=pr())!==r?((qe=ia())===r&&(qe=Ya()),qe===r?(C=qn,qn=r):qn=Cs=[Cs,js,qe]):(C=qn,qn=r),qn===r&&(qn=null),qn===r?(C=br,br=r):(Kn=br,bo=pt,tu=At,Ru=Bt,Je=Ut,hu=Cn,Go=qn,mr={type:"create",keyword:et.toLowerCase(),if_not_exists:bo,extension:gn(tu),with:Ru&&Ru[0].toLowerCase(),schema:gn(Je&&Je[2].toLowerCase()),version:gn(hu&&hu[2]),from:gn(Go&&Go[2])},br=mr)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r);var bo,tu,Ru,Je,hu,Go;return br})())===r&&(J=(function(){var br=C,mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn,Cs,js,qe,bo,tu,Ru,Je;(mr=ba())!==r&&pr()!==r?((et=Lt())===r&&(et=null),et!==r&&pr()!==r&&(pt=s())!==r&&pr()!==r?((At=(function(){var Nu=C,cu,le,vu;return t.substr(C,12).toLowerCase()==="concurrently"?(cu=t.substr(C,12),C+=12):(cu=r,Ot===0&&Bn(p0)),cu===r?(C=Nu,Nu=r):(le=C,Ot++,vu=ve(),Ot--,vu===r?le=void 0:(C=le,le=r),le===r?(C=Nu,Nu=r):(Kn=Nu,Nu=cu="CONCURRENTLY")),Nu})())===r&&(At=null),At!==r&&pr()!==r?((Bt=ya())===r&&(Bt=null),Bt!==r&&pr()!==r&&(Ut=u())!==r&&pr()!==r&&(pn=Ci())!==r&&pr()!==r?((Cn=J0())===r&&(Cn=null),Cn!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(Hn=(function(){var Nu,cu,le,vu,Ee,yi,Rc,Wa;if(Nu=C,(cu=We())!==r){for(le=[],vu=C,(Ee=pr())!==r&&(yi=Zr())!==r&&(Rc=pr())!==r&&(Wa=We())!==r?vu=Ee=[Ee,yi,Rc,Wa]:(C=vu,vu=r);vu!==r;)le.push(vu),vu=C,(Ee=pr())!==r&&(yi=Zr())!==r&&(Rc=pr())!==r&&(Wa=We())!==r?vu=Ee=[Ee,yi,Rc,Wa]:(C=vu,vu=r);le===r?(C=Nu,Nu=r):(Kn=Nu,cu=dt(cu,le),Nu=cu)}else C=Nu,Nu=r;return Nu})())!==r&&pr()!==r&&Ds()!==r&&pr()!==r?(qn=C,(Cs=hr())!==r&&(js=pr())!==r&&(qe=vs())!==r&&(bo=pr())!==r&&(tu=(function(){var Nu,cu,le,vu,Ee,yi,Rc,Wa;if(Nu=C,(cu=Ul())!==r){for(le=[],vu=C,(Ee=pr())!==r&&(yi=Zr())!==r&&(Rc=pr())!==r&&(Wa=Ul())!==r?vu=Ee=[Ee,yi,Rc,Wa]:(C=vu,vu=r);vu!==r;)le.push(vu),vu=C,(Ee=pr())!==r&&(yi=Zr())!==r&&(Rc=pr())!==r&&(Wa=Ul())!==r?vu=Ee=[Ee,yi,Rc,Wa]:(C=vu,vu=r);le===r?(C=Nu,Nu=r):(Kn=Nu,cu=dt(cu,le),Nu=cu)}else C=Nu,Nu=r;return Nu})())!==r&&(Ru=pr())!==r&&(Je=Ds())!==r?qn=Cs=[Cs,js,qe,bo,tu,Ru,Je]:(C=qn,qn=r),qn===r&&(qn=null),qn!==r&&(Cs=pr())!==r?(js=C,(qe=(function(){var Nu=C,cu,le,vu;return t.substr(C,10).toLowerCase()==="tablespace"?(cu=t.substr(C,10),C+=10):(cu=r,Ot===0&&Bn(wp)),cu===r?(C=Nu,Nu=r):(le=C,Ot++,vu=ve(),Ot--,vu===r?le=void 0:(C=le,le=r),le===r?(C=Nu,Nu=r):(Kn=Nu,Nu=cu="TABLESPACE")),Nu})())!==r&&(bo=pr())!==r&&(tu=ia())!==r?js=qe=[qe,bo,tu]:(C=js,js=r),js===r&&(js=null),js!==r&&(qe=pr())!==r?((bo=fa())===r&&(bo=null),bo!==r&&(tu=pr())!==r?(Kn=br,hu=mr,Go=et,nu=pt,xe=At,qs=Bt,fo=Ut,Ks=pn,Vo=Cn,eu=Hn,Jo=qn,Bu=js,oa=bo,mr={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:hu[0].toLowerCase(),index_type:Go&&Go.toLowerCase(),keyword:nu.toLowerCase(),concurrently:xe&&xe.toLowerCase(),index:qs,on_kw:fo[0].toLowerCase(),table:Ks,index_using:Vo,index_columns:eu,with:Jo&&Jo[4],with_before_where:!0,tablespace:Bu&&{type:"origin",value:Bu[2]},where:oa}},br=mr):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r);var hu,Go,nu,xe,qs,fo,Ks,Vo,eu,Jo,Bu,oa;return br})())===r&&(J=(function(){var br=C,mr,et,pt,At,Bt;return(mr=ba())!==r&&pr()!==r?((et=(function(){var Ut=C,pn,Cn,Hn;return t.substr(C,8).toLowerCase()==="database"?(pn=t.substr(C,8),C+=8):(pn=r,Ot===0&&Bn(gb)),pn===r?(C=Ut,Ut=r):(Cn=C,Ot++,Hn=ve(),Ot--,Hn===r?Cn=void 0:(C=Cn,Cn=r),Cn===r?(C=Ut,Ut=r):(Kn=Ut,Ut=pn="DATABASE")),Ut})())===r&&(et=(function(){var Ut=C,pn,Cn,Hn;return t.substr(C,6).toLowerCase()==="schema"?(pn=t.substr(C,6),C+=6):(pn=r,Ot===0&&Bn(Ae)),pn===r?(C=Ut,Ut=r):(Cn=C,Ot++,Hn=ve(),Ot--,Hn===r?Cn=void 0:(C=Cn,Cn=r),Cn===r?(C=Ut,Ut=r):(Kn=Ut,Ut=pn="SCHEMA")),Ut})()),et!==r&&pr()!==r?((pt=wa())===r&&(pt=null),pt!==r&&pr()!==r&&(At=eo())!==r&&pr()!==r?((Bt=(function(){var Ut,pn,Cn,Hn,qn,Cs;if(Ut=C,(pn=Su())!==r){for(Cn=[],Hn=C,(qn=pr())!==r&&(Cs=Su())!==r?Hn=qn=[qn,Cs]:(C=Hn,Hn=r);Hn!==r;)Cn.push(Hn),Hn=C,(qn=pr())!==r&&(Cs=Su())!==r?Hn=qn=[qn,Cs]:(C=Hn,Hn=r);Cn===r?(C=Ut,Ut=r):(Kn=Ut,pn=Hs(pn,Cn),Ut=pn)}else C=Ut,Ut=r;return Ut})())===r&&(Bt=null),Bt===r?(C=br,br=r):(Kn=br,mr=(function(Ut,pn,Cn,Hn,qn){let Cs=pn.toLowerCase();return{tableList:Array.from(Jn),columnList:fn(ms),ast:{type:Ut[0].toLowerCase(),keyword:Cs,if_not_exists:Cn,[Cs]:{db:Hn.schema,schema:Hn.name},create_definitions:qn}}})(mr,et,pt,At,Bt),br=mr)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r),br})()),J})())===r&&($=(function(){var J=C,br,mr,et;(br=Dl())!==r&&pr()!==r?((mr=Un())===r&&(mr=null),mr!==r&&pr()!==r&&(et=aa())!==r?(Kn=J,pt=br,At=mr,(Bt=et)&&Bt.forEach(Ut=>Jn.add(`${pt}::${[Ut.db,Ut.schema].filter(Boolean).join(".")||null}::${Ut.table}`)),br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:pt.toLowerCase(),keyword:At&&At.toLowerCase()||"table",name:Bt}},J=br):(C=J,J=r)):(C=J,J=r);var pt,At,Bt;return J})())===r&&($=(function(){var J=C,br,mr;(br=Lr())!==r&&pr()!==r&&Un()!==r&&pr()!==r&&(mr=(function(){var pt,At,Bt,Ut,pn,Cn,Hn,qn;if(pt=C,(At=ab())!==r){for(Bt=[],Ut=C,(pn=pr())!==r&&(Cn=Zr())!==r&&(Hn=pr())!==r&&(qn=ab())!==r?Ut=pn=[pn,Cn,Hn,qn]:(C=Ut,Ut=r);Ut!==r;)Bt.push(Ut),Ut=C,(pn=pr())!==r&&(Cn=Zr())!==r&&(Hn=pr())!==r&&(qn=ab())!==r?Ut=pn=[pn,Cn,Hn,qn]:(C=Ut,Ut=r);Bt===r?(C=pt,pt=r):(Kn=pt,At=dt(At,Bt),pt=At)}else C=pt,pt=r;return pt})())!==r?(Kn=J,(et=mr).forEach(pt=>pt.forEach(At=>At.table&&Jn.add(`rename::${[At.db,At.schema].filter(Boolean).join(".")||null}::${At.table}`))),br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"rename",table:et}},J=br):(C=J,J=r);var et;return J})())===r&&($=(function(){var J=C,br,mr;(br=(function(){var pt=C,At,Bt,Ut;return t.substr(C,4).toLowerCase()==="call"?(At=t.substr(C,4),C+=4):(At=r,Ot===0&&Bn(jp)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="CALL")),pt})())!==r&&pr()!==r&&(mr=so())!==r?(Kn=J,et=mr,br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"call",expr:et}},J=br):(C=J,J=r);var et;return J})())===r&&($=(function(){var J=C,br,mr;(br=(function(){var pt=C,At,Bt,Ut;return t.substr(C,3).toLowerCase()==="use"?(At=t.substr(C,3),C+=3):(At=r,Ot===0&&Bn(bp)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):pt=At=[At,Bt]),pt})())!==r&&pr()!==r&&(mr=ya())!==r?(Kn=J,et=mr,Jn.add(`use::${et}::null`),br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"use",db:et}},J=br):(C=J,J=r);var et;return J})())===r&&($=(function(){var J=C,br,mr,et;(br=(function(){var Bt=C,Ut,pn,Cn;return t.substr(C,5).toLowerCase()==="alter"?(Ut=t.substr(C,5),C+=5):(Ut=r,Ot===0&&Bn(Ib)),Ut===r?(C=Bt,Bt=r):(pn=C,Ot++,Cn=ve(),Ot--,Cn===r?pn=void 0:(C=pn,pn=r),pn===r?(C=Bt,Bt=r):Bt=Ut=[Ut,pn]),Bt})())!==r&&pr()!==r&&Un()!==r&&pr()!==r&&(mr=aa())!==r&&pr()!==r&&(et=(function(){var Bt,Ut,pn,Cn,Hn,qn,Cs,js;if(Bt=C,(Ut=K0())!==r){for(pn=[],Cn=C,(Hn=pr())!==r&&(qn=Zr())!==r&&(Cs=pr())!==r&&(js=K0())!==r?Cn=Hn=[Hn,qn,Cs,js]:(C=Cn,Cn=r);Cn!==r;)pn.push(Cn),Cn=C,(Hn=pr())!==r&&(qn=Zr())!==r&&(Cs=pr())!==r&&(js=K0())!==r?Cn=Hn=[Hn,qn,Cs,js]:(C=Cn,Cn=r);pn===r?(C=Bt,Bt=r):(Kn=Bt,Ut=dt(Ut,pn),Bt=Ut)}else C=Bt,Bt=r;return Bt})())!==r?(Kn=J,At=et,(pt=mr)&&pt.length>0&&pt.forEach(Bt=>Jn.add(`alter::${[Bt.db,Bt.schema].filter(Boolean).join(".")||null}::${Bt.table}`)),br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"alter",table:pt,expr:At}},J=br):(C=J,J=r);var pt,At;return J})())===r&&($=(function(){var J=C,br,mr,et;(br=Dt())!==r&&pr()!==r?((mr=(function(){var Bt=C,Ut,pn,Cn;return t.substr(C,6).toLowerCase()==="global"?(Ut=t.substr(C,6),C+=6):(Ut=r,Ot===0&&Bn(rb)),Ut===r?(C=Bt,Bt=r):(pn=C,Ot++,Cn=ve(),Ot--,Cn===r?pn=void 0:(C=pn,pn=r),pn===r?(C=Bt,Bt=r):(Kn=Bt,Bt=Ut="GLOBAL")),Bt})())===r&&(mr=(function(){var Bt=C,Ut,pn,Cn;return t.substr(C,7).toLowerCase()==="session"?(Ut=t.substr(C,7),C+=7):(Ut=r,Ot===0&&Bn(tb)),Ut===r?(C=Bt,Bt=r):(pn=C,Ot++,Cn=ve(),Ot--,Cn===r?pn=void 0:(C=pn,pn=r),pn===r?(C=Bt,Bt=r):(Kn=Bt,Bt=Ut="SESSION")),Bt})())===r&&(mr=(function(){var Bt=C,Ut,pn,Cn;return t.substr(C,5).toLowerCase()==="local"?(Ut=t.substr(C,5),C+=5):(Ut=r,Ot===0&&Bn(I)),Ut===r?(C=Bt,Bt=r):(pn=C,Ot++,Cn=ve(),Ot--,Cn===r?pn=void 0:(C=pn,pn=r),pn===r?(C=Bt,Bt=r):(Kn=Bt,Bt=Ut="LOCAL")),Bt})())===r&&(mr=(function(){var Bt=C,Ut,pn,Cn;return t.substr(C,7).toLowerCase()==="persist"?(Ut=t.substr(C,7),C+=7):(Ut=r,Ot===0&&Bn(us)),Ut===r?(C=Bt,Bt=r):(pn=C,Ot++,Cn=ve(),Ot--,Cn===r?pn=void 0:(C=pn,pn=r),pn===r?(C=Bt,Bt=r):(Kn=Bt,Bt=Ut="PERSIST")),Bt})())===r&&(mr=(function(){var Bt=C,Ut,pn,Cn;return t.substr(C,12).toLowerCase()==="persist_only"?(Ut=t.substr(C,12),C+=12):(Ut=r,Ot===0&&Bn(Sb)),Ut===r?(C=Bt,Bt=r):(pn=C,Ot++,Cn=ve(),Ot--,Cn===r?pn=void 0:(C=pn,pn=r),pn===r?(C=Bt,Bt=r):(Kn=Bt,Bt=Ut="PERSIST_ONLY")),Bt})()),mr===r&&(mr=null),mr!==r&&pr()!==r&&(et=(function(){var Bt,Ut,pn,Cn,Hn,qn,Cs,js;if(Bt=C,(Ut=fe())!==r){for(pn=[],Cn=C,(Hn=pr())!==r&&(qn=Zr())!==r&&(Cs=pr())!==r&&(js=fe())!==r?Cn=Hn=[Hn,qn,Cs,js]:(C=Cn,Cn=r);Cn!==r;)pn.push(Cn),Cn=C,(Hn=pr())!==r&&(qn=Zr())!==r&&(Cs=pr())!==r&&(js=fe())!==r?Cn=Hn=[Hn,qn,Cs,js]:(C=Cn,Cn=r);pn===r?(C=Bt,Bt=r):(Kn=Bt,Ut=dt(Ut,pn),Bt=Ut)}else C=Bt,Bt=r;return Bt})())!==r?(Kn=J,pt=mr,At=et,br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"set",keyword:pt,expr:At}},J=br):(C=J,J=r)):(C=J,J=r);var pt,At;return J})())===r&&($=(function(){var J=C,br,mr,et,pt,At;(br=(function(){var Hn=C,qn,Cs,js;return t.substr(C,4).toLowerCase()==="lock"?(qn=t.substr(C,4),C+=4):(qn=r,Ot===0&&Bn(wc)),qn===r?(C=Hn,Hn=r):(Cs=C,Ot++,js=ve(),Ot--,js===r?Cs=void 0:(C=Cs,Cs=r),Cs===r?(C=Hn,Hn=r):Hn=qn=[qn,Cs]),Hn})())!==r&&pr()!==r?((mr=Un())===r&&(mr=null),mr!==r&&pr()!==r&&(et=aa())!==r&&pr()!==r?((pt=(function(){var Hn=C,qn,Cs,js;return t.substr(C,2).toLowerCase()==="in"?(qn=t.substr(C,2),C+=2):(qn=r,Ot===0&&Bn(n0)),qn!==r&&pr()!==r?(t.substr(C,12).toLowerCase()==="access share"?(Cs=t.substr(C,12),C+=12):(Cs=r,Ot===0&&Bn(Dc)),Cs===r&&(t.substr(C,9).toLowerCase()==="row share"?(Cs=t.substr(C,9),C+=9):(Cs=r,Ot===0&&Bn(s0)),Cs===r&&(t.substr(C,13).toLowerCase()==="row exclusive"?(Cs=t.substr(C,13),C+=13):(Cs=r,Ot===0&&Bn(Rv)),Cs===r&&(t.substr(C,22).toLowerCase()==="share update exclusive"?(Cs=t.substr(C,22),C+=22):(Cs=r,Ot===0&&Bn(nv)),Cs===r&&(t.substr(C,19).toLowerCase()==="share row exclusive"?(Cs=t.substr(C,19),C+=19):(Cs=r,Ot===0&&Bn(sv)),Cs===r&&(t.substr(C,9).toLowerCase()==="exclusive"?(Cs=t.substr(C,9),C+=9):(Cs=r,Ot===0&&Bn(Oi)),Cs===r&&(t.substr(C,16).toLowerCase()==="access exclusive"?(Cs=t.substr(C,16),C+=16):(Cs=r,Ot===0&&Bn(ev)),Cs===r&&(t.substr(C,5).toLowerCase()==="share"?(Cs=t.substr(C,5),C+=5):(Cs=r,Ot===0&&Bn(yc))))))))),Cs!==r&&pr()!==r?(t.substr(C,4).toLowerCase()==="mode"?(js=t.substr(C,4),C+=4):(js=r,Ot===0&&Bn($c)),js===r?(C=Hn,Hn=r):(Kn=Hn,qn={mode:`in ${Cs.toLowerCase()} mode`},Hn=qn)):(C=Hn,Hn=r)):(C=Hn,Hn=r),Hn})())===r&&(pt=null),pt!==r&&pr()!==r?(t.substr(C,6).toLowerCase()==="nowait"?(At=t.substr(C,6),C+=6):(At=r,Ot===0&&Bn(Sf)),At===r&&(At=null),At===r?(C=J,J=r):(Kn=J,Bt=mr,pn=pt,Cn=At,(Ut=et)&&Ut.forEach(Hn=>Jn.add(`lock::${[Hn.db,Hn.schema].filter(Boolean).join(".")||null}::${Hn.table}`)),br={tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"lock",keyword:Bt&&Bt.toLowerCase(),tables:Ut.map(Hn=>({table:Hn})),lock_mode:pn,nowait:Cn}},J=br)):(C=J,J=r)):(C=J,J=r)):(C=J,J=r);var Bt,Ut,pn,Cn;return J})()),$}function k0(){var $;return($=Wi())===r&&($=(function(){var J=C,br,mr,et,pt,At;return(br=Zt())!==r&&pr()!==r&&(mr=aa())!==r&&pr()!==r&&Dt()!==r&&pr()!==r&&(et=(function(){var Bt,Ut,pn,Cn,Hn,qn,Cs,js;if(Bt=C,(Ut=gf())!==r){for(pn=[],Cn=C,(Hn=pr())!==r&&(qn=Zr())!==r&&(Cs=pr())!==r&&(js=gf())!==r?Cn=Hn=[Hn,qn,Cs,js]:(C=Cn,Cn=r);Cn!==r;)pn.push(Cn),Cn=C,(Hn=pr())!==r&&(qn=Zr())!==r&&(Cs=pr())!==r&&(js=gf())!==r?Cn=Hn=[Hn,qn,Cs,js]:(C=Cn,Cn=r);pn===r?(C=Bt,Bt=r):(Kn=Bt,Ut=dt(Ut,pn),Bt=Ut)}else C=Bt,Bt=r;return Bt})())!==r&&pr()!==r?((pt=fa())===r&&(pt=null),pt!==r&&pr()!==r?((At=Zl())===r&&(At=null),At===r?(C=J,J=r):(Kn=J,br=(function(Bt,Ut,pn,Cn){let Hn={};return Bt&&Bt.forEach(qn=>{let{db:Cs,as:js,schema:qe,table:bo,join:tu}=qn,Ru=tu?"select":"update",Je=[Cs,qe].filter(Boolean).join(".")||null;Cs&&(Hn[bo]=Je),bo&&Jn.add(`${Ru}::${Je}::${bo}`)}),Ut&&Ut.forEach(qn=>{if(qn.table){let Cs=vn(qn.table);Jn.add(`update::${Hn[Cs]||null}::${Cs}`)}ms.add(`update::${qn.table}::${qn.column}`)}),{tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"update",table:Bt,set:Ut,where:pn,returning:Cn}}})(mr,et,pt,At),J=br)):(C=J,J=r)):(C=J,J=r),J})())===r&&($=(function(){var J=C,br,mr,et,pt,At,Bt,Ut;return(br=h0())!==r&&pr()!==r?((mr=dr())===r&&(mr=null),mr!==r&&pr()!==r&&(et=Ci())!==r&&pr()!==r?((pt=cc())===r&&(pt=null),pt!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(At=(function(){var pn,Cn,Hn,qn,Cs,js,qe,bo;if(pn=C,(Cn=Wn())!==r){for(Hn=[],qn=C,(Cs=pr())!==r&&(js=Zr())!==r&&(qe=pr())!==r&&(bo=Wn())!==r?qn=Cs=[Cs,js,qe,bo]:(C=qn,qn=r);qn!==r;)Hn.push(qn),qn=C,(Cs=pr())!==r&&(js=Zr())!==r&&(qe=pr())!==r&&(bo=Wn())!==r?qn=Cs=[Cs,js,qe,bo]:(C=qn,qn=r);Hn===r?(C=pn,pn=r):(Kn=pn,Cn=dt(Cn,Hn),pn=Cn)}else C=pn,pn=r;return pn})())!==r&&pr()!==r&&Ds()!==r&&pr()!==r&&(Bt=Xa())!==r&&pr()!==r?((Ut=Zl())===r&&(Ut=null),Ut===r?(C=J,J=r):(Kn=J,br=(function(pn,Cn,Hn,qn,Cs,js){if(Cn&&(Jn.add(`insert::${[Cn.db,Cn.schema].filter(Boolean).join(".")||null}::${Cn.table}`),Cn.as=null),qn){let qe=Cn&&Cn.table||null;Array.isArray(Cs.values)&&Cs.values.forEach((bo,tu)=>{if(bo.value.length!=qn.length)throw Error("Error: column count doesn't match value count at row "+(tu+1))}),qn.forEach(bo=>ms.add(`insert::${qe}::${bo}`))}return{tableList:Array.from(Jn),columnList:fn(ms),ast:{type:pn,table:[Cn],columns:qn,values:Cs,partition:Hn,returning:js}}})(br,et,pt,At,Bt,Ut),J=br)):(C=J,J=r)):(C=J,J=r)):(C=J,J=r),J})())===r&&($=(function(){var J=C,br,mr,et,pt,At,Bt,Ut;return(br=h0())!==r&&pr()!==r?((mr=Or())===r&&(mr=null),mr!==r&&pr()!==r?((et=dr())===r&&(et=null),et!==r&&pr()!==r&&(pt=Ci())!==r&&pr()!==r?((At=cc())===r&&(At=null),At!==r&&pr()!==r&&(Bt=Xa())!==r&&pr()!==r?((Ut=Zl())===r&&(Ut=null),Ut===r?(C=J,J=r):(Kn=J,br=(function(pn,Cn,Hn,qn,Cs,js,qe){qn&&(Jn.add(`insert::${[qn.db,qn.schema].filter(Boolean).join(".")||null}::${qn.table}`),ms.add(`insert::${qn.table}::(.*)`),qn.as=null);let bo=[Cn,Hn].filter(tu=>tu).map(tu=>tu[0]&&tu[0].toLowerCase()).join(" ");return{tableList:Array.from(Jn),columnList:fn(ms),ast:{type:pn,table:[qn],columns:null,values:js,partition:Cs,prefix:bo,returning:qe}}})(br,mr,et,pt,At,Bt,Ut),J=br)):(C=J,J=r)):(C=J,J=r)):(C=J,J=r)):(C=J,J=r),J})())===r&&($=(function(){var J=C,br,mr,et,pt;return(br=Ht())!==r&&pr()!==r?((mr=aa())===r&&(mr=null),mr!==r&&pr()!==r&&(et=Ic())!==r&&pr()!==r?((pt=fa())===r&&(pt=null),pt===r?(C=J,J=r):(Kn=J,br=(function(At,Bt,Ut){if(Bt&&Bt.forEach(pn=>{let{db:Cn,schema:Hn,as:qn,table:Cs,join:js}=pn,qe=js?"select":"delete",bo=[Cn,Hn].filter(Boolean).join(".")||null;Cs&&Jn.add(`${qe}::${bo}::${Cs}`),js||ms.add(`delete::${Cs}::(.*)`)}),At===null&&Bt.length===1){let pn=Bt[0];At=[{db:pn.db,schema:pn.schema,table:pn.table,as:pn.as,addition:!0}]}return{tableList:Array.from(Jn),columnList:fn(ms),ast:{type:"delete",table:At,from:Bt,where:Ut}}})(mr,et,pt),J=br)):(C=J,J=r)):(C=J,J=r),J})())===r&&($=Hf())===r&&($=(function(){for(var J=[],br=Ws();br!==r;)J.push(br),br=Ws();return J})()),$}function M0(){var $,J,br,mr,et;return $=C,(J=(function(){var pt=C,At,Bt,Ut;return t.substr(C,5).toLowerCase()==="union"?(At=t.substr(C,5),C+=5):(At=r,Ot===0&&Bn(hp)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="UNION")),pt})())===r&&(J=(function(){var pt=C,At,Bt,Ut;return t.substr(C,9).toLowerCase()==="intersect"?(At=t.substr(C,9),C+=9):(At=r,Ot===0&&Bn(Ep)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="INTERSECT")),pt})())===r&&(J=(function(){var pt=C,At,Bt,Ut;return t.substr(C,6).toLowerCase()==="except"?(At=t.substr(C,6),C+=6):(At=r,Ot===0&&Bn(Nb)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="EXCEPT")),pt})()),J!==r&&pr()!==r?((br=Mr())===r&&(br=kn()),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,mr=J,$=J=(et=br)?`${mr.toLowerCase()} ${et.toLowerCase()}`:""+mr.toLowerCase())):(C=$,$=r),$}function Wi(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=D0())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=M0())!==r&&(At=pr())!==r&&(Bt=D0())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=M0())!==r&&(At=pr())!==r&&(Bt=D0())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br!==r&&(mr=pr())!==r?((et=rf())===r&&(et=null),et!==r&&(pt=pr())!==r?((At=$0())===r&&(At=null),At===r?(C=$,$=r):(Kn=$,$=J=(function(Ut,pn,Cn,Hn){let qn=Ut;for(let Cs=0;Cs<pn.length;Cs++)qn._next=pn[Cs][3],qn.set_op=pn[Cs][1],qn=qn._next;return Cn&&(Ut._orderby=Cn),Hn&&(Ut._limit=Hn),{tableList:Array.from(Jn),columnList:fn(ms),ast:Ut}})(J,br,et,At))):(C=$,$=r)):(C=$,$=r)}else C=$,$=r;return $}function wa(){var $,J;return $=C,t.substr(C,2).toLowerCase()==="if"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn(Dn)),J!==r&&pr()!==r&&_t()!==r&&pr()!==r&&co()!==r?(Kn=$,$=J="IF NOT EXISTS"):(C=$,$=r),$}function Oa(){var $,J,br;return $=C,(J=Qi())!==r&&pr()!==r&&j()!==r&&pr()!==r&&(br=Qi())!==r?(Kn=$,$=J={keyword:J,symbol:"=",value:br}):(C=$,$=r),$}function ti(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Oa())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Oa())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Oa())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=dt(J,br))}else C=$,$=r;return $}function We(){var $,J,br,mr,et,pt,At,Bt,Ut;return $=C,(J=Nt())!==r&&pr()!==r?((br=Ef())===r&&(br=null),br!==r&&pr()!==r?((mr=ya())===r&&(mr=null),mr!==r&&pr()!==r?((et=e())===r&&(et=Pr()),et===r&&(et=null),et!==r&&pr()!==r?(pt=C,t.substr(C,5).toLowerCase()==="nulls"?(At=t.substr(C,5),C+=5):(At=r,Ot===0&&Bn(Uo)),At!==r&&(Bt=pr())!==r?(t.substr(C,5).toLowerCase()==="first"?(Ut=t.substr(C,5),C+=5):(Ut=r,Ot===0&&Bn(Ps)),Ut===r&&(t.substr(C,4).toLowerCase()==="last"?(Ut=t.substr(C,4),C+=4):(Ut=r,Ot===0&&Bn(pe))),Ut===r?(C=pt,pt=r):pt=At=[At,Bt,Ut]):(C=pt,pt=r),pt===r&&(pt=null),pt===r?(C=$,$=r):(Kn=$,$=J=(function(pn,Cn,Hn,qn,Cs){return{...pn,collate:Cn,opclass:Hn,order_by:qn&&qn.toLowerCase(),nulls:Cs&&`${Cs[0].toLowerCase()} ${Cs[2].toLowerCase()}`}})(J,br,mr,et,pt))):(C=$,$=r)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r),$}function ob(){var $;return($=hf())===r&&($=w0())===r&&($=ul())===r&&($=(function(){var J;return(J=(function(){var br=C,mr,et,pt,At,Bt;(mr=Ye())===r&&(mr=null),mr!==r&&pr()!==r?(t.substr(C,11).toLowerCase()==="primary key"?(et=t.substr(C,11),C+=11):(et=r,Ot===0&&Bn(bb)),et!==r&&pr()!==r?((pt=J0())===r&&(pt=null),pt!==r&&pr()!==r&&(At=mc())!==r&&pr()!==r?((Bt=ml())===r&&(Bt=null),Bt===r?(C=br,br=r):(Kn=br,pn=et,Cn=pt,Hn=At,qn=Bt,mr={constraint:(Ut=mr)&&Ut.constraint,definition:Hn,constraint_type:pn.toLowerCase(),keyword:Ut&&Ut.keyword,index_type:Cn,resource:"constraint",index_options:qn},br=mr)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r);var Ut,pn,Cn,Hn,qn;return br})())===r&&(J=(function(){var br=C,mr,et,pt,At,Bt,Ut,pn;(mr=Ye())===r&&(mr=null),mr!==r&&pr()!==r&&(et=Lt())!==r&&pr()!==r?((pt=s())===r&&(pt=er()),pt===r&&(pt=null),pt!==r&&pr()!==r?((At=Wn())===r&&(At=null),At!==r&&pr()!==r?((Bt=J0())===r&&(Bt=null),Bt!==r&&pr()!==r&&(Ut=mc())!==r&&pr()!==r?((pn=ml())===r&&(pn=null),pn===r?(C=br,br=r):(Kn=br,Hn=et,qn=pt,Cs=At,js=Bt,qe=Ut,bo=pn,mr={constraint:(Cn=mr)&&Cn.constraint,definition:qe,constraint_type:qn&&`${Hn.toLowerCase()} ${qn.toLowerCase()}`||Hn.toLowerCase(),keyword:Cn&&Cn.keyword,index_type:js,index:Cs,resource:"constraint",index_options:bo},br=mr)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r);var Cn,Hn,qn,Cs,js,qe,bo;return br})())===r&&(J=(function(){var br=C,mr,et,pt,At,Bt;(mr=Ye())===r&&(mr=null),mr!==r&&pr()!==r?(t.substr(C,11).toLowerCase()==="foreign key"?(et=t.substr(C,11),C+=11):(et=r,Ot===0&&Bn(Vi)),et!==r&&pr()!==r?((pt=Wn())===r&&(pt=null),pt!==r&&pr()!==r&&(At=mc())!==r&&pr()!==r?((Bt=mf())===r&&(Bt=null),Bt===r?(C=br,br=r):(Kn=br,pn=et,Cn=pt,Hn=At,qn=Bt,mr={constraint:(Ut=mr)&&Ut.constraint,definition:Hn,constraint_type:pn,keyword:Ut&&Ut.keyword,index:Cn,resource:"constraint",reference_definition:qn},br=mr)):(C=br,br=r)):(C=br,br=r)):(C=br,br=r);var Ut,pn,Cn,Hn,qn;return br})()),J})()),$}function V0(){var $,J,br,mr;return $=C,(J=(function(){var et=C,pt;return(pt=(function(){var At=C,Bt,Ut,pn;return t.substr(C,8).toLowerCase()==="not null"?(Bt=t.substr(C,8),C+=8):(Bt=r,Ot===0&&Bn(qb)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):At=Bt=[Bt,Ut]),At})())!==r&&(Kn=et,pt={type:"not null",value:"not null"}),et=pt})())===r&&(J=Di()),J!==r&&(Kn=$,(mr=J)&&!mr.value&&(mr.value="null"),J={nullable:mr}),($=J)===r&&($=C,(J=(function(){var et=C,pt;return ii()!==r&&pr()!==r&&(pt=Nt())!==r?(Kn=et,et={type:"default",value:pt}):(C=et,et=r),et})())!==r&&(Kn=$,J={default_val:J}),($=J)===r&&($=C,t.substr(C,14).toLowerCase()==="auto_increment"?(J=t.substr(C,14),C+=14):(J=r,Ot===0&&Bn(_o)),J!==r&&(Kn=$,J={auto_increment:J.toLowerCase()}),($=J)===r&&($=C,t.substr(C,6).toLowerCase()==="unique"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Gi)),J!==r&&pr()!==r?(t.substr(C,3).toLowerCase()==="key"?(br=t.substr(C,3),C+=3):(br=r,Ot===0&&Bn(mi)),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J=(function(et){let pt=["unique"];return et&&pt.push(et),{unique:pt.join(" ").toLowerCase("")}})(br))):(C=$,$=r),$===r&&($=C,t.substr(C,7).toLowerCase()==="primary"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Fi)),J===r&&(J=null),J!==r&&pr()!==r?(t.substr(C,3).toLowerCase()==="key"?(br=t.substr(C,3),C+=3):(br=r,Ot===0&&Bn(mi)),br===r?(C=$,$=r):(Kn=$,$=J=(function(et){let pt=[];return et&&pt.push("primary"),pt.push("key"),{primary_key:pt.join(" ").toLowerCase("")}})(J))):(C=$,$=r),$===r&&($=C,(J=mn())!==r&&(Kn=$,J={comment:J}),($=J)===r&&($=C,(J=Ef())!==r&&(Kn=$,J={collate:J}),($=J)===r&&($=C,(J=(function(){var et=C,pt,At;return t.substr(C,13).toLowerCase()==="column_format"?(pt=t.substr(C,13),C+=13):(pt=r,Ot===0&&Bn(T0)),pt!==r&&pr()!==r?(t.substr(C,5).toLowerCase()==="fixed"?(At=t.substr(C,5),C+=5):(At=r,Ot===0&&Bn(dl)),At===r&&(t.substr(C,7).toLowerCase()==="dynamic"?(At=t.substr(C,7),C+=7):(At=r,Ot===0&&Bn(Gl)),At===r&&(t.substr(C,7).toLowerCase()==="default"?(At=t.substr(C,7),C+=7):(At=r,Ot===0&&Bn(Fl)))),At===r?(C=et,et=r):(Kn=et,pt={type:"column_format",value:At.toLowerCase()},et=pt)):(C=et,et=r),et})())!==r&&(Kn=$,J={column_format:J}),($=J)===r&&($=C,(J=(function(){var et=C,pt,At;return t.substr(C,7).toLowerCase()==="storage"?(pt=t.substr(C,7),C+=7):(pt=r,Ot===0&&Bn(nc)),pt!==r&&pr()!==r?(t.substr(C,4).toLowerCase()==="disk"?(At=t.substr(C,4),C+=4):(At=r,Ot===0&&Bn(xc)),At===r&&(t.substr(C,6).toLowerCase()==="memory"?(At=t.substr(C,6),C+=6):(At=r,Ot===0&&Bn(I0))),At===r?(C=et,et=r):(Kn=et,pt={type:"storage",value:At.toLowerCase()},et=pt)):(C=et,et=r),et})())!==r&&(Kn=$,J={storage:J}),($=J)===r&&($=C,(J=mf())!==r&&(Kn=$,J={reference_definition:J}),$=J))))))))),$}function hf(){var $,J,br,mr;return $=C,(J=Ba())!==r&&pr()!==r&&(br=Po())!==r&&pr()!==r?((mr=(function(){var et,pt,At,Bt,Ut,pn;if(et=C,(pt=V0())!==r)if(pr()!==r){for(At=[],Bt=C,(Ut=pr())!==r&&(pn=V0())!==r?Bt=Ut=[Ut,pn]:(C=Bt,Bt=r);Bt!==r;)At.push(Bt),Bt=C,(Ut=pr())!==r&&(pn=V0())!==r?Bt=Ut=[Ut,pn]:(C=Bt,Bt=r);At===r?(C=et,et=r):(Kn=et,et=pt=(function(Cn,Hn){let qn=Cn;for(let Cs=0;Cs<Hn.length;Cs++)qn={...qn,...Hn[Cs][1]};return qn})(pt,At))}else C=et,et=r;else C=et,et=r;return et})())===r&&(mr=null),mr===r?(C=$,$=r):(Kn=$,$=J=(function(et,pt,At){return ms.add(`create::${et.table}::${et.column}`),{column:et,definition:pt,resource:"column",...At||{}}})(J,br,mr))):(C=$,$=r),$}function Ef(){var $,J,br;return $=C,(function(){var mr=C,et,pt,At;return t.substr(C,7).toLowerCase()==="collate"?(et=t.substr(C,7),C+=7):(et=r,Ot===0&&Bn(Qe)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="COLLATE")),mr})()!==r&&pr()!==r?((J=j())===r&&(J=null),J!==r&&pr()!==r&&(br=ya())!==r?(Kn=$,$={type:"collate",keyword:"collate",collate:{name:br,symbol:J}}):(C=$,$=r)):(C=$,$=r),$}function K0(){var $;return($=(function(){var J=C,br,mr,et;(br=ur())!==r&&pr()!==r?((mr=Ir())===r&&(mr=null),mr!==r&&pr()!==r&&(et=hf())!==r?(Kn=J,pt=mr,At=et,br={action:"add",...At,keyword:pt,resource:"column",type:"alter"},J=br):(C=J,J=r)):(C=J,J=r);var pt,At;return J})())===r&&($=(function(){var J=C,br,mr,et;return(br=o())!==r&&pr()!==r?((mr=Ir())===r&&(mr=null),mr!==r&&pr()!==r&&(et=Ba())!==r?(Kn=J,br=(function(pt,At){return{action:"drop",column:At,keyword:pt,resource:"column",type:"alter"}})(mr,et),J=br):(C=J,J=r)):(C=J,J=r),J})())===r&&($=(function(){var J=C,br,mr;(br=ur())!==r&&pr()!==r&&(mr=w0())!==r?(Kn=J,et=mr,br={action:"add",type:"alter",...et},J=br):(C=J,J=r);var et;return J})())===r&&($=(function(){var J=C,br,mr;(br=ur())!==r&&pr()!==r&&(mr=ul())!==r?(Kn=J,et=mr,br={action:"add",type:"alter",...et},J=br):(C=J,J=r);var et;return J})())===r&&($=(function(){var J=C,br,mr,et;(br=Lr())!==r&&pr()!==r?((mr=nt())===r&&(mr=Ln()),mr===r&&(mr=null),mr!==r&&pr()!==r&&(et=ya())!==r?(Kn=J,At=et,br={action:"rename",type:"alter",resource:"table",keyword:(pt=mr)&&pt[0].toLowerCase(),table:At},J=br):(C=J,J=r)):(C=J,J=r);var pt,At;return J})())===r&&($=Af())===r&&($=El()),$}function Af(){var $,J,br,mr;return $=C,t.substr(C,9).toLowerCase()==="algorithm"?(J=t.substr(C,9),C+=9):(J=r,Ot===0&&Bn(ji)),J!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r?(t.substr(C,7).toLowerCase()==="default"?(mr=t.substr(C,7),C+=7):(mr=r,Ot===0&&Bn(Fl)),mr===r&&(t.substr(C,7).toLowerCase()==="instant"?(mr=t.substr(C,7),C+=7):(mr=r,Ot===0&&Bn(af)),mr===r&&(t.substr(C,7).toLowerCase()==="inplace"?(mr=t.substr(C,7),C+=7):(mr=r,Ot===0&&Bn(qf)),mr===r&&(t.substr(C,4).toLowerCase()==="copy"?(mr=t.substr(C,4),C+=4):(mr=r,Ot===0&&Bn(Uc))))),mr===r?(C=$,$=r):(Kn=$,$=J={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:br,algorithm:mr})):(C=$,$=r)):(C=$,$=r),$}function El(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="lock"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(wc)),J!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r?(t.substr(C,7).toLowerCase()==="default"?(mr=t.substr(C,7),C+=7):(mr=r,Ot===0&&Bn(Fl)),mr===r&&(t.substr(C,4).toLowerCase()==="none"?(mr=t.substr(C,4),C+=4):(mr=r,Ot===0&&Bn(Ll)),mr===r&&(t.substr(C,6).toLowerCase()==="shared"?(mr=t.substr(C,6),C+=6):(mr=r,Ot===0&&Bn(jl)),mr===r&&(t.substr(C,9).toLowerCase()==="exclusive"?(mr=t.substr(C,9),C+=9):(mr=r,Ot===0&&Bn(Oi))))),mr===r?(C=$,$=r):(Kn=$,$=J={type:"alter",keyword:"lock",resource:"lock",symbol:br,lock:mr})):(C=$,$=r)):(C=$,$=r),$}function w0(){var $,J,br,mr,et,pt;return $=C,(J=s())===r&&(J=er()),J!==r&&pr()!==r?((br=Wn())===r&&(br=null),br!==r&&pr()!==r?((mr=J0())===r&&(mr=null),mr!==r&&pr()!==r&&(et=mc())!==r&&pr()!==r?((pt=ml())===r&&(pt=null),pt!==r&&pr()!==r?(Kn=$,$=J=(function(At,Bt,Ut,pn,Cn){return{index:Bt,definition:pn,keyword:At.toLowerCase(),index_type:Ut,resource:"index",index_options:Cn}})(J,br,mr,et,pt)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r),$}function ul(){var $,J,br,mr,et,pt;return $=C,(J=(function(){var At=C,Bt,Ut,pn;return t.substr(C,8).toLowerCase()==="fulltext"?(Bt=t.substr(C,8),C+=8):(Bt=r,Ot===0&&Bn(Ti)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="FULLTEXT")),At})())===r&&(J=(function(){var At=C,Bt,Ut,pn;return t.substr(C,7).toLowerCase()==="spatial"?(Bt=t.substr(C,7),C+=7):(Bt=r,Ot===0&&Bn(wv)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="SPATIAL")),At})()),J!==r&&pr()!==r?((br=s())===r&&(br=er()),br===r&&(br=null),br!==r&&pr()!==r?((mr=Wn())===r&&(mr=null),mr!==r&&pr()!==r&&(et=mc())!==r&&pr()!==r?((pt=ml())===r&&(pt=null),pt!==r&&pr()!==r?(Kn=$,$=J=(function(At,Bt,Ut,pn,Cn){return{index:Ut,definition:pn,keyword:Bt&&`${At.toLowerCase()} ${Bt.toLowerCase()}`||At.toLowerCase(),index_options:Cn,resource:"index"}})(J,br,mr,et,pt)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r),$}function Ye(){var $,J,br;return $=C,(J=bn())!==r&&pr()!==r?((br=ya())===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J=(function(mr,et){return{keyword:mr.toLowerCase(),constraint:et}})(J,br))):(C=$,$=r),$}function mf(){var $,J,br,mr,et,pt,At,Bt,Ut,pn;return $=C,(J=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,10).toLowerCase()==="references"?(Hn=t.substr(C,10),C+=10):(Hn=r,Ot===0&&Bn(up)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="REFERENCES")),Cn})())!==r&&pr()!==r&&(br=aa())!==r&&pr()!==r&&(mr=mc())!==r&&pr()!==r?(t.substr(C,10).toLowerCase()==="match full"?(et=t.substr(C,10),C+=10):(et=r,Ot===0&&Bn(zc)),et===r&&(t.substr(C,13).toLowerCase()==="match partial"?(et=t.substr(C,13),C+=13):(et=r,Ot===0&&Bn(kc)),et===r&&(t.substr(C,12).toLowerCase()==="match simple"?(et=t.substr(C,12),C+=12):(et=r,Ot===0&&Bn(vb)))),et===r&&(et=null),et!==r&&pr()!==r?((pt=z0())===r&&(pt=null),pt!==r&&pr()!==r?((At=z0())===r&&(At=null),At===r?(C=$,$=r):(Kn=$,Bt=et,Ut=pt,pn=At,$=J={definition:mr,table:br,keyword:J.toLowerCase(),match:Bt&&Bt.toLowerCase(),on_action:[Ut,pn].filter(Cn=>Cn)})):(C=$,$=r)):(C=$,$=r)):(C=$,$=r),$}function z0(){var $,J,br,mr;return $=C,u()!==r&&pr()!==r?((J=Ht())===r&&(J=Zt()),J!==r&&pr()!==r&&(br=(function(){var et=C,pt,At;return(pt=Wu())!==r&&pr()!==r&&vs()!==r&&pr()!==r?((At=st())===r&&(At=null),At!==r&&pr()!==r&&Ds()!==r?(Kn=et,et=pt={type:"function",name:{name:[{type:"origin",value:pt}]},args:At}):(C=et,et=r)):(C=et,et=r),et===r&&(et=C,t.substr(C,8).toLowerCase()==="restrict"?(pt=t.substr(C,8),C+=8):(pt=r,Ot===0&&Bn(Zc)),pt===r&&(t.substr(C,7).toLowerCase()==="cascade"?(pt=t.substr(C,7),C+=7):(pt=r,Ot===0&&Bn(nl)),pt===r&&(t.substr(C,8).toLowerCase()==="set null"?(pt=t.substr(C,8),C+=8):(pt=r,Ot===0&&Bn(Xf)),pt===r&&(t.substr(C,9).toLowerCase()==="no action"?(pt=t.substr(C,9),C+=9):(pt=r,Ot===0&&Bn(gl)),pt===r&&(t.substr(C,11).toLowerCase()==="set default"?(pt=t.substr(C,11),C+=11):(pt=r,Ot===0&&Bn(lf)),pt===r&&(pt=Wu()))))),pt!==r&&(Kn=et,pt={type:"origin",value:pt.toLowerCase()}),et=pt),et})())!==r?(Kn=$,mr=br,$={type:"on "+J[0].toLowerCase(),value:mr}):(C=$,$=r)):(C=$,$=r),$}function ub(){var $,J,br,mr,et,pt,At;return $=C,(J=rt())===r&&(J=Ht())===r&&(J=Dl()),J!==r&&(Kn=$,At=J,J={keyword:Array.isArray(At)?At[0].toLowerCase():At.toLowerCase()}),($=J)===r&&($=C,(J=Zt())!==r&&pr()!==r?(br=C,t.substr(C,2).toLowerCase()==="of"?(mr=t.substr(C,2),C+=2):(mr=r,Ot===0&&Bn(j0)),mr!==r&&(et=pr())!==r&&(pt=Zi())!==r?br=mr=[mr,et,pt]:(C=br,br=r),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J=(function(Bt,Ut){return{keyword:Bt&&Bt[0]&&Bt[0].toLowerCase(),args:Ut&&{keyword:Ut[0],columns:Ut[2]}||null}})(J,br))):(C=$,$=r)),$}function Su(){var $,J,br,mr,et,pt,At,Bt,Ut;return $=C,(J=ii())===r&&(J=null),J!==r&&pr()!==r?((br=(function(){var pn,Cn,Hn;return pn=C,t.substr(C,9).toLowerCase()==="character"?(Cn=t.substr(C,9),C+=9):(Cn=r,Ot===0&&Bn(ce)),Cn!==r&&pr()!==r?(t.substr(C,3).toLowerCase()==="set"?(Hn=t.substr(C,3),C+=3):(Hn=r,Ot===0&&Bn(He)),Hn===r?(C=pn,pn=r):(Kn=pn,pn=Cn="CHARACTER SET")):(C=pn,pn=r),pn})())===r&&(t.substr(C,7).toLowerCase()==="charset"?(br=t.substr(C,7),C+=7):(br=r,Ot===0&&Bn(Ue)),br===r&&(t.substr(C,7).toLowerCase()==="collate"?(br=t.substr(C,7),C+=7):(br=r,Ot===0&&Bn(Qe)))),br!==r&&pr()!==r?((mr=j())===r&&(mr=null),mr!==r&&pr()!==r&&(et=Qi())!==r?(Kn=$,At=br,Bt=mr,Ut=et,$=J={keyword:(pt=J)&&`${pt[0].toLowerCase()} ${At.toLowerCase()}`||At.toLowerCase(),symbol:Bt,value:Ut}):(C=$,$=r)):(C=$,$=r)):(C=$,$=r),$}function Al(){var $,J,br,mr,et,pt,At,Bt,Ut;return $=C,t.substr(C,14).toLowerCase()==="auto_increment"?(J=t.substr(C,14),C+=14):(J=r,Ot===0&&Bn(_o)),J===r&&(t.substr(C,14).toLowerCase()==="avg_row_length"?(J=t.substr(C,14),C+=14):(J=r,Ot===0&&Bn(uo)),J===r&&(t.substr(C,14).toLowerCase()==="key_block_size"?(J=t.substr(C,14),C+=14):(J=r,Ot===0&&Bn(Ao)),J===r&&(t.substr(C,8).toLowerCase()==="max_rows"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(Pu)),J===r&&(t.substr(C,8).toLowerCase()==="min_rows"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(Ca)),J===r&&(t.substr(C,18).toLowerCase()==="stats_sample_pages"?(J=t.substr(C,18),C+=18):(J=r,Ot===0&&Bn(ku))))))),J!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r&&(mr=ai())!==r?(Kn=$,Bt=br,Ut=mr,$=J={keyword:J.toLowerCase(),symbol:Bt,value:Ut.value}):(C=$,$=r)):(C=$,$=r),$===r&&($=Su())===r&&($=C,(J=mt())===r&&(t.substr(C,10).toLowerCase()==="connection"?(J=t.substr(C,10),C+=10):(J=r,Ot===0&&Bn(ca))),J!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r&&(mr=Ya())!==r?(Kn=$,$=J=(function(pn,Cn,Hn){return{keyword:pn.toLowerCase(),symbol:Cn,value:`'${Hn.value}'`}})(J,br,mr)):(C=$,$=r)):(C=$,$=r),$===r&&($=C,t.substr(C,11).toLowerCase()==="compression"?(J=t.substr(C,11),C+=11):(J=r,Ot===0&&Bn(na)),J!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r?(mr=C,t.charCodeAt(C)===39?(et="'",C++):(et=r,Ot===0&&Bn(Qa)),et===r?(C=mr,mr=r):(t.substr(C,4).toLowerCase()==="zlib"?(pt=t.substr(C,4),C+=4):(pt=r,Ot===0&&Bn(cf)),pt===r&&(t.substr(C,3).toLowerCase()==="lz4"?(pt=t.substr(C,3),C+=3):(pt=r,Ot===0&&Bn(ri)),pt===r&&(t.substr(C,4).toLowerCase()==="none"?(pt=t.substr(C,4),C+=4):(pt=r,Ot===0&&Bn(Ll)))),pt===r?(C=mr,mr=r):(t.charCodeAt(C)===39?(At="'",C++):(At=r,Ot===0&&Bn(Qa)),At===r?(C=mr,mr=r):mr=et=[et,pt,At])),mr===r?(C=$,$=r):(Kn=$,$=J=(function(pn,Cn,Hn){return{keyword:pn.toLowerCase(),symbol:Cn,value:Hn.join("").toUpperCase()}})(J,br,mr))):(C=$,$=r)):(C=$,$=r),$===r&&($=C,t.substr(C,6).toLowerCase()==="engine"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(t0)),J!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r&&(mr=ia())!==r?(Kn=$,$=J=(function(pn,Cn,Hn){return{keyword:pn.toLowerCase(),symbol:Cn,value:Hn.toUpperCase()}})(J,br,mr)):(C=$,$=r)):(C=$,$=r)))),$}function D0(){var $,J,br,mr,et,pt,At;return($=(function(){var Bt=C,Ut,pn,Cn,Hn,qn,Cs,js,qe,bo,tu,Ru;return(Ut=pr())===r?(C=Bt,Bt=r):((pn=(function(){var Je,hu,Go,nu,xe,qs,fo,Ks,Vo,eu,Jo,Bu;if(Je=C,(hu=hr())!==r)if(pr()!==r)if((Go=Ac())!==r){for(nu=[],xe=C,(qs=pr())!==r&&(fo=Zr())!==r&&(Ks=pr())!==r&&(Vo=Ac())!==r?xe=qs=[qs,fo,Ks,Vo]:(C=xe,xe=r);xe!==r;)nu.push(xe),xe=C,(qs=pr())!==r&&(fo=Zr())!==r&&(Ks=pr())!==r&&(Vo=Ac())!==r?xe=qs=[qs,fo,Ks,Vo]:(C=xe,xe=r);nu===r?(C=Je,Je=r):(Kn=Je,hu=dt(Go,nu),Je=hu)}else C=Je,Je=r;else C=Je,Je=r;else C=Je,Je=r;if(Je===r)if(Je=C,(hu=pr())!==r)if(hr()!==r)if((Go=pr())!==r)if((nu=(function(){var oa=C,Nu,cu,le;return t.substr(C,9).toLowerCase()==="recursive"?(Nu=t.substr(C,9),C+=9):(Nu=r,Ot===0&&Bn(cv)),Nu===r?(C=oa,oa=r):(cu=C,Ot++,le=ve(),Ot--,le===r?cu=void 0:(C=cu,cu=r),cu===r?(C=oa,oa=r):oa=Nu=[Nu,cu]),oa})())!==r)if((xe=pr())!==r)if((qs=Ac())!==r){for(fo=[],Ks=C,(Vo=pr())!==r&&(eu=Zr())!==r&&(Jo=pr())!==r&&(Bu=Ac())!==r?Ks=Vo=[Vo,eu,Jo,Bu]:(C=Ks,Ks=r);Ks!==r;)fo.push(Ks),Ks=C,(Vo=pr())!==r&&(eu=Zr())!==r&&(Jo=pr())!==r&&(Bu=Ac())!==r?Ks=Vo=[Vo,eu,Jo,Bu]:(C=Ks,Ks=r);fo===r?(C=Je,Je=r):(Kn=Je,hu=(function(oa,Nu){return oa.recursive=!0,dt(oa,Nu)})(qs,fo),Je=hu)}else C=Je,Je=r;else C=Je,Je=r;else C=Je,Je=r;else C=Je,Je=r;else C=Je,Je=r;else C=Je,Je=r;return Je})())===r&&(pn=null),pn!==r&&pr()!==r&&(function(){var Je=C,hu,Go,nu;return t.substr(C,6).toLowerCase()==="select"?(hu=t.substr(C,6),C+=6):(hu=r,Ot===0&&Bn(Dv)),hu===r?(C=Je,Je=r):(Go=C,Ot++,nu=ve(),Ot--,nu===r?Go=void 0:(C=Go,Go=r),Go===r?(C=Je,Je=r):Je=hu=[hu,Go]),Je})()!==r&&xt()!==r?((Cn=(function(){var Je,hu,Go,nu,xe,qs;if(Je=C,(hu=Tc())!==r){for(Go=[],nu=C,(xe=pr())!==r&&(qs=Tc())!==r?nu=xe=[xe,qs]:(C=nu,nu=r);nu!==r;)Go.push(nu),nu=C,(xe=pr())!==r&&(qs=Tc())!==r?nu=xe=[xe,qs]:(C=nu,nu=r);Go===r?(C=Je,Je=r):(Kn=Je,hu=(function(fo,Ks){let Vo=[fo];for(let eu=0,Jo=Ks.length;eu<Jo;++eu)Vo.push(Ks[eu][1]);return Vo})(hu,Go),Je=hu)}else C=Je,Je=r;return Je})())===r&&(Cn=null),Cn!==r&&pr()!==r?((Hn=kn())===r&&(Hn=null),Hn!==r&&pr()!==r&&(qn=y0())!==r&&pr()!==r?((Cs=Ic())===r&&(Cs=null),Cs!==r&&pr()!==r?((js=fa())===r&&(js=null),js!==r&&pr()!==r?((qe=(function(){var Je=C,hu,Go;return(hu=(function(){var nu=C,xe,qs,fo;return t.substr(C,5).toLowerCase()==="group"?(xe=t.substr(C,5),C+=5):(xe=r,Ot===0&&Bn(Dp)),xe===r?(C=nu,nu=r):(qs=C,Ot++,fo=ve(),Ot--,fo===r?qs=void 0:(C=qs,qs=r),qs===r?(C=nu,nu=r):nu=xe=[xe,qs]),nu})())!==r&&pr()!==r&&ht()!==r&&pr()!==r&&(Go=st())!==r?(Kn=Je,hu={columns:Go.value},Je=hu):(C=Je,Je=r),Je})())===r&&(qe=null),qe!==r&&pr()!==r?((bo=(function(){var Je=C,hu;return(function(){var Go=C,nu,xe,qs;return t.substr(C,6).toLowerCase()==="having"?(nu=t.substr(C,6),C+=6):(nu=r,Ot===0&&Bn(Pp)),nu===r?(C=Go,Go=r):(xe=C,Ot++,qs=ve(),Ot--,qs===r?xe=void 0:(C=xe,xe=r),xe===r?(C=Go,Go=r):Go=nu=[nu,xe]),Go})()!==r&&pr()!==r&&(hu=Il())!==r?(Kn=Je,Je=hu):(C=Je,Je=r),Je})())===r&&(bo=null),bo!==r&&pr()!==r?((tu=rf())===r&&(tu=null),tu!==r&&pr()!==r?((Ru=$0())===r&&(Ru=null),Ru===r?(C=Bt,Bt=r):(Kn=Bt,Ut=(function(Je,hu,Go,nu,xe,qs,fo,Ks,Vo,eu){return xe&&xe.forEach(Jo=>Jo.table&&Jn.add(`select::${[Jo.db,Jo.schema].filter(Boolean).join(".")||null}::${Jo.table}`)),{with:Je,type:"select",options:hu,distinct:Go,columns:nu,from:xe,where:qs,groupby:fo,having:Ks,orderby:Vo,limit:eu}})(pn,Cn,Hn,qn,Cs,js,qe,bo,tu,Ru),Bt=Ut)):(C=Bt,Bt=r)):(C=Bt,Bt=r)):(C=Bt,Bt=r)):(C=Bt,Bt=r)):(C=Bt,Bt=r)):(C=Bt,Bt=r)):(C=Bt,Bt=r)):(C=Bt,Bt=r)),Bt})())===r&&($=C,J=C,t.charCodeAt(C)===40?(br="(",C++):(br=r,Ot===0&&Bn(R0)),br!==r&&(mr=pr())!==r&&(et=D0())!==r&&(pt=pr())!==r?(t.charCodeAt(C)===41?(At=")",C++):(At=r,Ot===0&&Bn(Rl)),At===r?(C=J,J=r):J=br=[br,mr,et,pt,At]):(C=J,J=r),J!==r&&(Kn=$,J={...J[2],parentheses_symbol:!0}),$=J),$}function Ac(){var $,J,br,mr;return $=C,(J=Ya())===r&&(J=ia()),J!==r&&pr()!==r?((br=mc())===r&&(br=null),br!==r&&pr()!==r&&Ln()!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(mr=Wi())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J=(function(et,pt,At){return typeof et=="string"&&(et={type:"default",value:et}),{name:et,stmt:At,columns:pt}})(J,br,mr)):(C=$,$=r)):(C=$,$=r),$}function mc(){var $,J;return $=C,vs()!==r&&pr()!==r&&(J=Zi())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J):(C=$,$=r),$}function Tc(){var $,J;return $=C,(J=(function(){var br;return t.substr(C,19).toLowerCase()==="sql_calc_found_rows"?(br=t.substr(C,19),C+=19):(br=r,Ot===0&&Bn(xb)),br})())===r&&((J=(function(){var br;return t.substr(C,9).toLowerCase()==="sql_cache"?(br=t.substr(C,9),C+=9):(br=r,Ot===0&&Bn(Zb)),br})())===r&&(J=(function(){var br;return t.substr(C,12).toLowerCase()==="sql_no_cache"?(br=t.substr(C,12),C+=12):(br=r,Ot===0&&Bn(yv)),br})()),J===r&&(J=(function(){var br;return t.substr(C,14).toLowerCase()==="sql_big_result"?(br=t.substr(C,14),C+=14):(br=r,Ot===0&&Bn(hv)),br})())===r&&(J=(function(){var br;return t.substr(C,16).toLowerCase()==="sql_small_result"?(br=t.substr(C,16),C+=16):(br=r,Ot===0&&Bn(Jb)),br})())===r&&(J=(function(){var br;return t.substr(C,17).toLowerCase()==="sql_buffer_result"?(br=t.substr(C,17),C+=17):(br=r,Ot===0&&Bn(h)),br})())),J!==r&&(Kn=$,J=J),$=J}function y0(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Mr())===r&&(J=C,(br=rs())===r?(C=J,J=r):(mr=C,Ot++,et=ve(),Ot--,et===r?mr=void 0:(C=mr,mr=r),mr===r?(C=J,J=r):J=br=[br,mr]),J===r&&(J=rs())),J!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Z0())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Z0())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=(function(Ut,pn){ms.add("select::null::(.*)");let Cn={expr:{type:"column_ref",table:null,column:"*"},as:null};return pn&&pn.length>0?dt(Cn,pn):[Cn]})(0,br))}else C=$,$=r;if($===r)if($=C,(J=Z0())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Z0())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Z0())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=dt(J,br))}else C=$,$=r;return $}function bi(){var $,J;return $=C,ut()!==r&&pr()!==r?((J=ai())===r&&(J=Ya()),J!==r&&pr()!==r&&De()!==r?(Kn=$,$={brackets:!0,index:J}):(C=$,$=r)):(C=$,$=r),$}function Yc(){var $,J,br,mr,et,pt;if($=C,(J=bi())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=bi())!==r?mr=et=[et,pt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=bi())!==r?mr=et=[et,pt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=dt(J,br,1))}else C=$,$=r;return $}function Z0(){var $,J,br,mr,et;return $=C,(J=ju())!==r&&(br=wi())!==r&&(mr=Po())!==r?(Kn=$,$=J={type:"cast",expr:J,symbol:"::",target:[mr]}):(C=$,$=r),$===r&&($=C,J=C,(br=ya())!==r&&(mr=pr())!==r&&(et=ir())!==r?J=br=[br,mr,et]:(C=J,J=r),J===r&&(J=null),J!==r&&(br=pr())!==r&&(mr=rs())!==r?(Kn=$,$=J=(function(pt){let At=pt&&pt[0]||null;return ms.add(`select::${At}::(.*)`),{expr:{type:"column_ref",table:At,column:"*"},as:null}})(J)):(C=$,$=r),$===r&&($=C,(J=ju())!==r&&(br=pr())!==r?((mr=lc())===r&&(mr=null),mr===r?(C=$,$=r):(Kn=$,$=J=(function(pt,At){return pt.type!=="double_quote_string"&&pt.type!=="single_quote_string"||ms.add("select::null::"+pt.value),{type:"expr",expr:pt,as:At}})(J,mr))):(C=$,$=r))),$}function lc(){var $,J,br;return $=C,(J=Ln())!==r&&pr()!==r&&(br=(function(){var mr=C,et;return(et=ia())===r?(C=mr,mr=r):(Kn=C,((function(pt){if(F[pt.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(pt)+" is a reserved word, can not as alias clause");return!1})(et)?r:void 0)===r?(C=mr,mr=r):(Kn=mr,mr=et=et)),mr===r&&(mr=C,(et=dn())!==r&&(Kn=mr,et=et),mr=et),mr})())!==r?(Kn=$,$=J=br):(C=$,$=r),$===r&&($=C,(J=Ln())===r&&(J=null),J!==r&&pr()!==r&&(br=ya())!==r?(Kn=$,$=J=br):(C=$,$=r)),$}function Ic(){var $,J;return $=C,It()!==r&&pr()!==r&&(J=aa())!==r?(Kn=$,$=J):(C=$,$=r),$}function ab(){var $,J,br;return $=C,(J=Ci())!==r&&pr()!==r&&nt()!==r&&pr()!==r&&(br=Ci())!==r?(Kn=$,$=J=[J,br]):(C=$,$=r),$}function J0(){var $,J;return $=C,P()!==r&&pr()!==r?(t.substr(C,5).toLowerCase()==="btree"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(ff)),J===r&&(t.substr(C,4).toLowerCase()==="hash"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Vf)),J===r&&(t.substr(C,4).toLowerCase()==="gist"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Vv)),J===r&&(t.substr(C,3).toLowerCase()==="gin"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(db))))),J===r?(C=$,$=r):(Kn=$,$={keyword:"using",type:J.toLowerCase()})):(C=$,$=r),$}function ml(){var $,J,br,mr,et,pt;if($=C,(J=Ul())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Ul())!==r?mr=et=[et,pt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Ul())!==r?mr=et=[et,pt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=(function(At,Bt){let Ut=[At];for(let pn=0;pn<Bt.length;pn++)Ut.push(Bt[pn][1]);return Ut})(J,br))}else C=$,$=r;return $}function Ul(){var $,J,br,mr,et,pt;return $=C,(J=(function(){var At=C,Bt,Ut,pn;return t.substr(C,14).toLowerCase()==="key_block_size"?(Bt=t.substr(C,14),C+=14):(Bt=r,Ot===0&&Bn(Ao)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="KEY_BLOCK_SIZE")),At})())!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r&&(mr=ai())!==r?(Kn=$,et=br,pt=mr,$=J={type:J.toLowerCase(),symbol:et,expr:pt}):(C=$,$=r)):(C=$,$=r),$===r&&($=C,(J=ia())!==r&&pr()!==r&&(br=j())!==r&&pr()!==r?((mr=ai())===r&&(mr=ya()),mr===r?(C=$,$=r):(Kn=$,$=J=(function(At,Bt,Ut){return{type:At.toLowerCase(),symbol:Bt,expr:typeof Ut=="string"&&{type:"origin",value:Ut}||Ut}})(J,br,mr))):(C=$,$=r),$===r&&($=J0())===r&&($=C,t.substr(C,4).toLowerCase()==="with"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Of)),J!==r&&pr()!==r?(t.substr(C,6).toLowerCase()==="parser"?(br=t.substr(C,6),C+=6):(br=r,Ot===0&&Bn(Pc)),br!==r&&pr()!==r&&(mr=ia())!==r?(Kn=$,$=J={type:"with parser",expr:mr}):(C=$,$=r)):(C=$,$=r),$===r&&($=C,t.substr(C,7).toLowerCase()==="visible"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(H0)),J===r&&(t.substr(C,9).toLowerCase()==="invisible"?(J=t.substr(C,9),C+=9):(J=r,Ot===0&&Bn(bf))),J!==r&&(Kn=$,J=(function(At){return{type:At.toLowerCase(),expr:At.toLowerCase()}})(J)),($=J)===r&&($=mn())))),$}function aa(){var $,J,br,mr;if($=C,(J=If())!==r){for(br=[],mr=Tf();mr!==r;)br.push(mr),mr=Tf();br===r?(C=$,$=r):(Kn=$,$=J=Lb(J,br))}else C=$,$=r;return $}function Tf(){var $,J,br;return $=C,pr()!==r&&(J=Zr())!==r&&pr()!==r&&(br=If())!==r?(Kn=$,$=br):(C=$,$=r),$===r&&($=C,pr()!==r&&(J=(function(){var mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn,Cs;if(mr=C,(et=Tl())!==r)if(pr()!==r)if((pt=If())!==r)if(pr()!==r)if((At=P())!==r)if(pr()!==r)if(vs()!==r)if(pr()!==r)if((Bt=Qi())!==r){for(Ut=[],pn=C,(Cn=pr())!==r&&(Hn=Zr())!==r&&(qn=pr())!==r&&(Cs=Qi())!==r?pn=Cn=[Cn,Hn,qn,Cs]:(C=pn,pn=r);pn!==r;)Ut.push(pn),pn=C,(Cn=pr())!==r&&(Hn=Zr())!==r&&(qn=pr())!==r&&(Cs=Qi())!==r?pn=Cn=[Cn,Hn,qn,Cs]:(C=pn,pn=r);Ut!==r&&(pn=pr())!==r&&(Cn=Ds())!==r?(Kn=mr,js=et,bo=Bt,tu=Ut,(qe=pt).join=js,qe.using=dt(bo,tu),mr=et=qe):(C=mr,mr=r)}else C=mr,mr=r;else C=mr,mr=r;else C=mr,mr=r;else C=mr,mr=r;else C=mr,mr=r;else C=mr,mr=r;else C=mr,mr=r;else C=mr,mr=r;else C=mr,mr=r;var js,qe,bo,tu;return mr===r&&(mr=C,(et=Tl())!==r&&pr()!==r&&(pt=If())!==r&&pr()!==r?((At=ib())===r&&(At=null),At===r?(C=mr,mr=r):(Kn=mr,et=(function(Ru,Je,hu){return Je.join=Ru,Je.on=hu,Je})(et,pt,At),mr=et)):(C=mr,mr=r),mr===r&&(mr=C,(et=Tl())===r&&(et=M0()),et!==r&&pr()!==r&&(pt=vs())!==r&&pr()!==r&&(At=Wi())!==r&&pr()!==r&&Ds()!==r&&pr()!==r?((Bt=lc())===r&&(Bt=null),Bt!==r&&(Ut=pr())!==r?((pn=ib())===r&&(pn=null),pn===r?(C=mr,mr=r):(Kn=mr,et=(function(Ru,Je,hu,Go){return Je.parentheses=!0,{expr:Je,as:hu,join:Ru,on:Go}})(et,At,Bt,pn),mr=et)):(C=mr,mr=r)):(C=mr,mr=r))),mr})())!==r?(Kn=$,$=J):(C=$,$=r)),$}function If(){var $,J,br,mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn,Cs,js,qe,bo,tu,Ru,Je,hu,Go,nu,xe,qs,fo,Ks;return $=C,(J=(function(){var Vo;return t.substr(C,4).toLowerCase()==="dual"?(Vo=t.substr(C,4),C+=4):(Vo=r,Ot===0&&Bn(Ob)),Vo})())!==r&&(Kn=$,J={type:"dual"}),($=J)===r&&($=C,(J=Ci())!==r&&pr()!==r?((br=lc())===r&&(br=null),br===r?(C=$,$=r):(Kn=$,Ks=br,$=J=(fo=J).type==="var"?(fo.as=Ks,fo):{db:fo.db,table:fo.table,as:Ks})):(C=$,$=r),$===r&&($=C,(J=vs())!==r&&pr()!==r&&(br=Wi())!==r&&pr()!==r&&Ds()!==r&&pr()!==r?((mr=lc())===r&&(mr=null),mr===r?(C=$,$=r):(Kn=$,$=J=(function(Vo,eu){return Vo.parentheses=!0,{expr:Vo,as:eu}})(br,mr))):(C=$,$=r),$===r&&($=C,(J=Un())!==r&&pr()!==r&&(br=vs())!==r&&pr()!==r&&(function(){var Vo=C,eu,Jo,Bu;return t.substr(C,6).toLowerCase()==="tumble"?(eu=t.substr(C,6),C+=6):(eu=r,Ot===0&&Bn(Tp)),eu===r?(C=Vo,Vo=r):(Jo=C,Ot++,Bu=ve(),Ot--,Bu===r?Jo=void 0:(C=Jo,Jo=r),Jo===r?(C=Vo,Vo=r):(Kn=Vo,Vo=eu="TUMBLE")),Vo})()!==r&&pr()!==r&&(mr=vs())!==r&&pr()!==r?(et=C,t.substr(C,4).toLowerCase()==="data"?(pt=t.substr(C,4),C+=4):(pt=r,Ot===0&&Bn(Fa)),pt!==r&&(At=pr())!==r&&(Bt=qr())!==r?et=pt=[pt,At,Bt]:(C=et,et=r),et===r&&(et=null),et!==r&&(pt=pr())!==r&&(At=Un())!==r&&(Bt=pr())!==r&&(Ut=Ci())!==r&&pr()!==r&&Zr()!==r&&pr()!==r?(pn=C,t.substr(C,7).toLowerCase()==="timecol"?(Cn=t.substr(C,7),C+=7):(Cn=r,Ot===0&&Bn(Kf)),Cn!==r&&(Hn=pr())!==r&&(qn=qr())!==r?pn=Cn=[Cn,Hn,qn]:(C=pn,pn=r),pn===r&&(pn=null),pn!==r&&(Cn=pr())!==r?(t.substr(C,10).toLowerCase()==="descriptor"?(Hn=t.substr(C,10),C+=10):(Hn=r,Ot===0&&Bn(Nv)),Hn!==r&&(qn=pr())!==r&&vs()!==r&&pr()!==r&&(Cs=Ba())!==r&&pr()!==r&&Ds()!==r&&pr()!==r&&Zr()!==r&&pr()!==r?(js=C,t.substr(C,4).toLowerCase()==="size"?(qe=t.substr(C,4),C+=4):(qe=r,Ot===0&&Bn(Gb)),qe!==r&&(bo=pr())!==r&&(tu=qr())!==r?js=qe=[qe,bo,tu]:(C=js,js=r),js===r&&(js=null),js!==r&&(qe=pr())!==r&&(bo=gi())!==r?(tu=C,(Ru=pr())!==r&&(Je=Zr())!==r&&(hu=pr())!==r?(Go=C,t.substr(C,6).toLowerCase()==="offset"?(nu=t.substr(C,6),C+=6):(nu=r,Ot===0&&Bn(hc)),nu!==r&&(xe=pr())!==r&&(qs=qr())!==r?Go=nu=[nu,xe,qs]:(C=Go,Go=r),Go===r&&(Go=null),Go!==r&&(nu=pr())!==r&&(xe=gi())!==r?tu=Ru=[Ru,Je,hu,Go,nu,xe]:(C=tu,tu=r)):(C=tu,tu=r),tu===r&&(tu=null),tu!==r&&(Ru=pr())!==r&&(Je=Ds())!==r&&(hu=pr())!==r&&(Go=Ds())!==r&&(nu=pr())!==r?((xe=lc())===r&&(xe=null),xe===r?(C=$,$=r):(Kn=$,$=J=(function(Vo,eu,Jo,Bu,oa,Nu,cu,le){let vu={expr:{type:"tumble",data:{name:Vo&&Vo[0],symbol:Vo&&Vo[2],expr:eu},timecol:{name:Jo&&Jo[0],symbol:Jo&&Jo[2],expr:Bu},size:{name:oa&&oa[0],symbol:oa&&oa[2],expr:Nu}},as:le};return cu&&(vu.expr.offset={name:cu[3]&&cu[3][0],symbol:cu[3]&&cu[3][2],expr:cu[5]}),vu})(et,Ut,pn,Cs,js,bo,tu,xe))):(C=$,$=r)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r)):(C=$,$=r)))),$}function Tl(){var $,J,br,mr,et,pt;return $=C,(J=(function(){var At=C,Bt,Ut,pn;return t.substr(C,7).toLowerCase()==="natural"?(Bt=t.substr(C,7),C+=7):(Bt=r,Ot===0&&Bn(O0)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="NATURAL")),At})())===r&&(J=null),J!==r&&(br=pr())!==r?((mr=(function(){var At=C,Bt,Ut,pn;return t.substr(C,4).toLowerCase()==="left"?(Bt=t.substr(C,4),C+=4):(Bt=r,Ot===0&&Bn(v0)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="LEFT")),At})())===r&&(mr=(function(){var At=C,Bt,Ut,pn;return t.substr(C,5).toLowerCase()==="right"?(Bt=t.substr(C,5),C+=5):(Bt=r,Ot===0&&Bn(ac)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="RIGHT")),At})())===r&&(mr=(function(){var At=C,Bt,Ut,pn;return t.substr(C,4).toLowerCase()==="full"?(Bt=t.substr(C,4),C+=4):(Bt=r,Ot===0&&Bn(Rb)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="FULL")),At})()),mr===r&&(mr=null),mr!==r&&pr()!==r?((et=Q())===r&&(et=null),et!==r&&pr()!==r&&yt()!==r?(Kn=$,$=J=`${J?"NATURAL ":""}${(pt=mr)?pt+" ":""}${et?"OUTER ":""}JOIN`):(C=$,$=r)):(C=$,$=r)):(C=$,$=r),$===r&&($=C,J=C,(br=(function(){var At=C,Bt,Ut,pn;return t.substr(C,5).toLowerCase()==="inner"?(Bt=t.substr(C,5),C+=5):(Bt=r,Ot===0&&Bn(Ff)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="INNER")),At})())!==r&&(mr=pr())!==r?J=br=[br,mr]:(C=J,J=r),J===r&&(J=null),J!==r&&(br=yt())!==r?(Kn=$,$=J=J?"INNER JOIN":"JOIN"):(C=$,$=r),$===r&&($=C,(J=Y())!==r&&(br=pr())!==r&&(mr=yt())!==r?(Kn=$,$=J="CROSS JOIN"):(C=$,$=r),$===r&&($=C,(J=Y())===r&&(J=Q()),J!==r&&(br=pr())!==r&&(mr=(function(){var At=C,Bt,Ut,pn;return t.substr(C,5).toLowerCase()==="apply"?(Bt=t.substr(C,5),C+=5):(Bt=r,Ot===0&&Bn(rp)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):At=Bt=[Bt,Ut]),At})())!==r?(Kn=$,$=J=J[0].toUpperCase()+" APPLY"):(C=$,$=r)))),$}function Ci(){var $,J,br,mr,et,pt,At,Bt,Ut;return $=C,(J=ya())===r?(C=$,$=r):(br=C,(mr=pr())!==r&&(et=ir())!==r&&(pt=pr())!==r&&(At=ya())!==r?br=mr=[mr,et,pt,At]:(C=br,br=r),br===r?(C=$,$=r):(mr=C,(et=pr())!==r&&(pt=ir())!==r&&(At=pr())!==r&&(Bt=ya())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r),mr===r?(C=$,$=r):(Kn=$,$=J=(function(pn,Cn,Hn){let qn={db:null,table:pn};return Hn!==null&&(qn.db=`${pn}.${Cn[3]}`,qn.table=Hn[3]),qn})(J,br,mr)))),$===r&&($=C,(J=ya())!==r&&(br=pr())!==r&&(mr=ir())!==r&&(et=pr())!==r&&(pt=rs())!==r?(Kn=$,$=J={db:J,table:"*"}):(C=$,$=r),$===r&&($=C,(J=ya())===r?(C=$,$=r):(br=C,(mr=pr())!==r&&(et=ir())!==r&&(pt=pr())!==r&&(At=ya())!==r?br=mr=[mr,et,pt,At]:(C=br,br=r),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J=(function(pn,Cn){let Hn={db:null,table:pn};return Cn!==null&&(Hn.db=pn,Hn.table=Cn[3]),Hn})(J,br))),$===r&&($=C,(J=Mu())!==r&&(Kn=$,(Ut=J).db=null,Ut.table=Ut.name,J=Ut),$=J))),$}function Q0(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Nt())!==r){for(br=[],mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Eo())===r&&(pt=ao()),pt!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));mr!==r;)br.push(mr),mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Eo())===r&&(pt=ao()),pt!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));br===r?(C=$,$=r):(Kn=$,$=J=(function(Ut,pn){let Cn=pn.length,Hn=Ut;for(let qn=0;qn<Cn;++qn)Hn=Rr(pn[qn][1],Hn,pn[qn][3]);return Hn})(J,br))}else C=$,$=r;return $}function ib(){var $,J;return $=C,u()!==r&&pr()!==r&&(J=Il())!==r?(Kn=$,$=J):(C=$,$=r),$}function fa(){var $,J;return $=C,(function(){var br=C,mr,et,pt;return t.substr(C,5).toLowerCase()==="where"?(mr=t.substr(C,5),C+=5):(mr=r,Ot===0&&Bn(Ap)),mr===r?(C=br,br=r):(et=C,Ot++,pt=ve(),Ot--,pt===r?et=void 0:(C=et,et=r),et===r?(C=br,br=r):br=mr=[mr,et]),br})()!==r&&pr()!==r?((J=Il())===r&&(J=Nt()),J===r?(C=$,$=r):(Kn=$,$=J)):(C=$,$=r),$}function Zi(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Ba())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Ba())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Ba())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=dt(J,br))}else C=$,$=r;return $}function rf(){var $,J;return $=C,(function(){var br=C,mr,et,pt;return t.substr(C,5).toLowerCase()==="order"?(mr=t.substr(C,5),C+=5):(mr=r,Ot===0&&Bn($p)),mr===r?(C=br,br=r):(et=C,Ot++,pt=ve(),Ot--,pt===r?et=void 0:(C=et,et=r),et===r?(C=br,br=r):br=mr=[mr,et]),br})()!==r&&pr()!==r&&ht()!==r&&pr()!==r&&(J=(function(){var br,mr,et,pt,At,Bt,Ut,pn;if(br=C,(mr=Ii())!==r){for(et=[],pt=C,(At=pr())!==r&&(Bt=Zr())!==r&&(Ut=pr())!==r&&(pn=Ii())!==r?pt=At=[At,Bt,Ut,pn]:(C=pt,pt=r);pt!==r;)et.push(pt),pt=C,(At=pr())!==r&&(Bt=Zr())!==r&&(Ut=pr())!==r&&(pn=Ii())!==r?pt=At=[At,Bt,Ut,pn]:(C=pt,pt=r);et===r?(C=br,br=r):(Kn=br,mr=dt(mr,et),br=mr)}else C=br,br=r;return br})())!==r?(Kn=$,$=J):(C=$,$=r),$}function Ii(){var $,J,br;return $=C,(J=Nt())!==r&&pr()!==r?((br=Pr())===r&&(br=e()),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J={expr:J,type:br})):(C=$,$=r),$}function Ge(){var $;return($=ai())===r&&($=E0()),$}function $0(){var $,J,br,mr,et,pt;return $=C,(function(){var At=C,Bt,Ut,pn;return t.substr(C,5).toLowerCase()==="limit"?(Bt=t.substr(C,5),C+=5):(Bt=r,Ot===0&&Bn(Pv)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):At=Bt=[Bt,Ut]),At})()!==r&&pr()!==r?((J=Ge())===r&&(J=Mr()),J!==r&&pr()!==r?(br=C,(mr=(function(){var At=C,Bt,Ut,pn;return t.substr(C,6).toLowerCase()==="offset"?(Bt=t.substr(C,6),C+=6):(Bt=r,Ot===0&&Bn(hc)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="OFFSET")),At})())!==r&&(et=pr())!==r&&(pt=Ge())!==r?br=mr=[mr,et,pt]:(C=br,br=r),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=(function(At,Bt){let Ut=[];return typeof At=="string"?Ut.push({type:"origin",value:"all"}):Ut.push(At),Bt&&Ut.push(Bt[2]),{seperator:Bt&&Bt[0]&&Bt[0].toLowerCase()||"",value:Ut}})(J,br))):(C=$,$=r)):(C=$,$=r),$}function gf(){var $,J,br,mr,et,pt,At,Bt;return $=C,J=C,(br=ya())!==r&&(mr=pr())!==r&&(et=ir())!==r?J=br=[br,mr,et]:(C=J,J=r),J===r&&(J=null),J!==r&&(br=pr())!==r&&(mr=lt())!==r&&(et=pr())!==r?(t.charCodeAt(C)===61?(pt="=",C++):(pt=r,Ot===0&&Bn(Bl)),pt!==r&&pr()!==r&&(At=Nt())!==r?(Kn=$,$=J=(function(Ut,pn,Cn){return{column:pn,value:Cn,table:Ut&&Ut[0]}})(J,mr,At)):(C=$,$=r)):(C=$,$=r),$===r&&($=C,J=C,(br=ya())!==r&&(mr=pr())!==r&&(et=ir())!==r?J=br=[br,mr,et]:(C=J,J=r),J===r&&(J=null),J!==r&&(br=pr())!==r&&(mr=lt())!==r&&(et=pr())!==r?(t.charCodeAt(C)===61?(pt="=",C++):(pt=r,Ot===0&&Bn(Bl)),pt!==r&&pr()!==r&&(At=Tr())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(Bt=Ba())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J=(function(Ut,pn,Cn){return{column:pn,value:Cn,table:Ut&&Ut[0],keyword:"values"}})(J,mr,Bt)):(C=$,$=r)):(C=$,$=r)),$}function Zl(){var $,J,br;return $=C,(J=(function(){var mr=C,et,pt,At;return t.substr(C,9).toLowerCase()==="returning"?(et=t.substr(C,9),C+=9):(et=r,Ot===0&&Bn(Xp)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="RETURNING")),mr})())!==r&&pr()!==r?((br=y0())===r&&(br=D0()),br===r?(C=$,$=r):(Kn=$,$=J=(function(mr,et){return{type:mr&&mr.toLowerCase()||"returning",columns:et==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null}]||et}})(J,br))):(C=$,$=r),$}function Xa(){var $,J;return($=(function(){var br=C,mr;return Tr()!==r&&pr()!==r&&(mr=(function(){var et,pt,At,Bt,Ut,pn,Cn,Hn;if(et=C,(pt=n())!==r){for(At=[],Bt=C,(Ut=pr())!==r&&(pn=Zr())!==r&&(Cn=pr())!==r&&(Hn=n())!==r?Bt=Ut=[Ut,pn,Cn,Hn]:(C=Bt,Bt=r);Bt!==r;)At.push(Bt),Bt=C,(Ut=pr())!==r&&(pn=Zr())!==r&&(Cn=pr())!==r&&(Hn=n())!==r?Bt=Ut=[Ut,pn,Cn,Hn]:(C=Bt,Bt=r);At===r?(C=et,et=r):(Kn=et,pt=dt(pt,At),et=pt)}else C=et,et=r;return et})())!==r?(Kn=br,br={type:"values",values:mr}):(C=br,br=r),br})())===r&&($=C,(J=Wi())!==r&&(Kn=$,J=J.ast),$=J),$}function cc(){var $,J,br,mr,et,pt,At,Bt,Ut;if($=C,Fr()!==r)if(pr()!==r)if((J=vs())!==r)if(pr()!==r)if((br=ia())!==r){for(mr=[],et=C,(pt=pr())!==r&&(At=Zr())!==r&&(Bt=pr())!==r&&(Ut=ia())!==r?et=pt=[pt,At,Bt,Ut]:(C=et,et=r);et!==r;)mr.push(et),et=C,(pt=pr())!==r&&(At=Zr())!==r&&(Bt=pr())!==r&&(Ut=ia())!==r?et=pt=[pt,At,Bt,Ut]:(C=et,et=r);mr!==r&&(et=pr())!==r&&(pt=Ds())!==r?(Kn=$,$=dt(br,mr)):(C=$,$=r)}else C=$,$=r;else C=$,$=r;else C=$,$=r;else C=$,$=r;else C=$,$=r;return $===r&&($=C,Fr()!==r&&pr()!==r&&(J=n())!==r?(Kn=$,$=J):(C=$,$=r)),$}function h0(){var $,J;return $=C,(J=rt())!==r&&(Kn=$,J="insert"),($=J)===r&&($=C,(J=k())!==r&&(Kn=$,J="replace"),$=J),$}function n(){var $,J;return $=C,vs()!==r&&pr()!==r&&(J=st())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J):(C=$,$=r),$}function st(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Nt())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=(function(Ut,pn){let Cn={type:"expr_list"};return Cn.value=dt(Ut,pn),Cn})(J,br))}else C=$,$=r;return $}function gi(){var $,J,br;return $=C,bc()!==r&&pr()!==r&&(J=Nt())!==r&&pr()!==r&&(br=(function(){var mr,et;return(mr=(function(){var pt=C,At,Bt,Ut;return t.substr(C,4).toLowerCase()==="year"?(At=t.substr(C,4),C+=4):(At=r,Ot===0&&Bn(Bi)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="YEAR")),pt})())===r&&(mr=(function(){var pt=C,At,Bt,Ut;return t.substr(C,5).toLowerCase()==="month"?(At=t.substr(C,5),C+=5):(At=r,Ot===0&&Bn(au)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="MONTH")),pt})())===r&&(mr=(function(){var pt=C,At,Bt,Ut;return t.substr(C,3).toLowerCase()==="day"?(At=t.substr(C,3),C+=3):(At=r,Ot===0&&Bn(En)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="DAY")),pt})())===r&&(mr=(function(){var pt=C,At,Bt,Ut;return t.substr(C,4).toLowerCase()==="hour"?(At=t.substr(C,4),C+=4):(At=r,Ot===0&&Bn(Be)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="HOUR")),pt})())===r&&(mr=(function(){var pt=C,At,Bt,Ut;return t.substr(C,6).toLowerCase()==="minute"?(At=t.substr(C,6),C+=6):(At=r,Ot===0&&Bn(yu)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="MINUTE")),pt})())===r&&(mr=(function(){var pt=C,At,Bt,Ut;return t.substr(C,6).toLowerCase()==="second"?(At=t.substr(C,6),C+=6):(At=r,Ot===0&&Bn(mu)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="SECOND")),pt})())===r&&(mr=C,t.substr(C,5).toLowerCase()==="years"?(et=t.substr(C,5),C+=5):(et=r,Ot===0&&Bn(Ub)),et===r&&(t.substr(C,6).toLowerCase()==="months"?(et=t.substr(C,6),C+=6):(et=r,Ot===0&&Bn(Ft)),et===r&&(t.substr(C,4).toLowerCase()==="days"?(et=t.substr(C,4),C+=4):(et=r,Ot===0&&Bn(xs)),et===r&&(t.substr(C,5).toLowerCase()==="hours"?(et=t.substr(C,5),C+=5):(et=r,Ot===0&&Bn(Li)),et===r&&(t.substr(C,7).toLowerCase()==="minutes"?(et=t.substr(C,7),C+=7):(et=r,Ot===0&&Bn(Ta)),et===r&&(t.substr(C,7).toLowerCase()==="seconds"?(et=t.substr(C,7),C+=7):(et=r,Ot===0&&Bn(x0))))))),et!==r&&(Kn=mr,et=et.toUpperCase()),mr=et),mr})())!==r?(Kn=$,$={type:"interval",expr:J,unit:br.toLowerCase()}):(C=$,$=r),$===r&&($=C,bc()!==r&&pr()!==r&&(J=Ya())!==r?(Kn=$,$=(function(mr){return{type:"interval",expr:mr,unit:""}})(J)):(C=$,$=r)),$}function xa(){var $,J,br,mr,et,pt,At,Bt;return $=C,no()!==r&&pr()!==r?((J=Nt())===r&&(J=null),J!==r&&pr()!==r&&(br=(function(){var Ut,pn,Cn,Hn,qn,Cs;if(Ut=C,(pn=Ra())!==r)if(pr()!==r){for(Cn=[],Hn=C,(qn=pr())!==r&&(Cs=Ra())!==r?Hn=qn=[qn,Cs]:(C=Hn,Hn=r);Hn!==r;)Cn.push(Hn),Hn=C,(qn=pr())!==r&&(Cs=Ra())!==r?Hn=qn=[qn,Cs]:(C=Hn,Hn=r);Cn===r?(C=Ut,Ut=r):(Kn=Ut,pn=Hs(pn,Cn),Ut=pn)}else C=Ut,Ut=r;else C=Ut,Ut=r;return Ut})())!==r&&pr()!==r?((mr=(function(){var Ut=C,pn;return(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,4).toLowerCase()==="else"?(Hn=t.substr(C,4),C+=4):(Hn=r,Ot===0&&Bn(Bp)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):Cn=Hn=[Hn,qn]),Cn})()!==r&&pr()!==r&&(pn=Nt())!==r?(Kn=Ut,Ut={type:"else",result:pn}):(C=Ut,Ut=r),Ut})())===r&&(mr=null),mr!==r&&pr()!==r&&(function(){var Ut=C,pn,Cn,Hn;return t.substr(C,3).toLowerCase()==="end"?(pn=t.substr(C,3),C+=3):(pn=r,Ot===0&&Bn(Hp)),pn===r?(C=Ut,Ut=r):(Cn=C,Ot++,Hn=ve(),Ot--,Hn===r?Cn=void 0:(C=Cn,Cn=r),Cn===r?(C=Ut,Ut=r):Ut=pn=[pn,Cn]),Ut})()!==r&&pr()!==r?((et=no())===r&&(et=null),et===r?(C=$,$=r):(Kn=$,pt=J,At=br,(Bt=mr)&&At.push(Bt),$={type:"case",expr:pt||null,args:At})):(C=$,$=r)):(C=$,$=r)):(C=$,$=r),$}function Ra(){var $,J,br;return $=C,Ke()!==r&&pr()!==r&&(J=Il())!==r&&pr()!==r&&(function(){var mr=C,et,pt,At;return t.substr(C,4).toLowerCase()==="then"?(et=t.substr(C,4),C+=4):(et=r,Ot===0&&Bn(nd)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):mr=et=[et,pt]),mr})()!==r&&pr()!==r&&(br=(function(){var mr,et,pt,At,Bt;return mr=C,(et=ju())!==r&&pr()!==r?((pt=Yc())===r&&(pt=null),pt===r?(C=mr,mr=r):(Kn=mr,At=et,(Bt=pt)&&(At.array_index=Bt),mr=et=At)):(C=mr,mr=r),mr})())!==r?(Kn=$,$={type:"when",cond:J,result:br}):(C=$,$=r),$}function or(){var $;return($=(function(){var J,br,mr,et,pt,At,Bt,Ut;if(J=C,(br=Wc())!==r){for(mr=[],et=C,(pt=xt())!==r&&(At=ao())!==r&&(Bt=pr())!==r&&(Ut=Wc())!==r?et=pt=[pt,At,Bt,Ut]:(C=et,et=r);et!==r;)mr.push(et),et=C,(pt=xt())!==r&&(At=ao())!==r&&(Bt=pr())!==r&&(Ut=Wc())!==r?et=pt=[pt,At,Bt,Ut]:(C=et,et=r);mr===r?(C=J,J=r):(Kn=J,br=sl(br,mr),J=br)}else C=J,J=r;return J})())===r&&($=(function(){var J,br,mr,et,pt,At;if(J=C,(br=Se())!==r){if(mr=[],et=C,(pt=pr())!==r&&(At=P0())!==r?et=pt=[pt,At]:(C=et,et=r),et!==r)for(;et!==r;)mr.push(et),et=C,(pt=pr())!==r&&(At=P0())!==r?et=pt=[pt,At]:(C=et,et=r);else mr=r;mr===r?(C=J,J=r):(Kn=J,br=Nr(br,mr[0][1]),J=br)}else C=J,J=r;return J})()),$}function Nt(){var $;return($=or())===r&&($=Wi()),$}function ju(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Nt())!==r){for(br=[],mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Eo())===r&&(pt=ao())===r&&(pt=bt()),pt!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));mr!==r;)br.push(mr),mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Eo())===r&&(pt=ao())===r&&(pt=bt()),pt!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));br===r?(C=$,$=r):(Kn=$,$=J=(function(Ut,pn){let Cn=Ut.ast;if(Cn&&Cn.type==="select"&&(!(Ut.parentheses_symbol||Ut.parentheses||Ut.ast.parentheses||Ut.ast.parentheses_symbol)||Cn.columns.length!==1||Cn.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!pn||pn.length===0)return Ut;let Hn=pn.length,qn=pn[Hn-1][3];for(let Cs=Hn-1;Cs>=0;Cs--){let js=Cs===0?Ut:pn[Cs-1][3];qn=Rr(pn[Cs][1],js,qn)}return qn})(J,br))}else C=$,$=r;return $}function Il(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Nt())!==r){for(br=[],mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Eo())===r&&(pt=ao())===r&&(pt=Zr()),pt!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));mr!==r;)br.push(mr),mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Eo())===r&&(pt=ao())===r&&(pt=Zr()),pt!==r&&(At=pr())!==r&&(Bt=Nt())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));br===r?(C=$,$=r):(Kn=$,$=J=(function(Ut,pn){let Cn=pn.length,Hn=Ut,qn="";for(let Cs=0;Cs<Cn;++Cs)pn[Cs][1]===","?(qn=",",Array.isArray(Hn)||(Hn=[Hn]),Hn.push(pn[Cs][3])):Hn=Rr(pn[Cs][1],Hn,pn[Cs][3]);if(qn===","){let Cs={type:"expr_list"};return Cs.value=Hn,Cs}return Hn})(J,br))}else C=$,$=r;return $}function Wc(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Kr())!==r){for(br=[],mr=C,(et=xt())!==r&&(pt=Eo())!==r&&(At=pr())!==r&&(Bt=Kr())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=xt())!==r&&(pt=Eo())!==r&&(At=pr())!==r&&(Bt=Kr())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=sl(J,br))}else C=$,$=r;return $}function Kr(){var $,J,br,mr,et;return($=Mb())===r&&($=(function(){var pt=C,At,Bt;(At=fc())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(Bt=Wi())!==r&&pr()!==r&&Ds()!==r?(Kn=pt,Ut=At,(pn=Bt).parentheses=!0,At=Nr(Ut,pn),pt=At):(C=pt,pt=r);var Ut,pn;return pt})())===r&&($=C,(J=_t())===r&&(J=C,t.charCodeAt(C)===33?(br="!",C++):(br=r,Ot===0&&Bn(sc)),br===r?(C=J,J=r):(mr=C,Ot++,t.charCodeAt(C)===61?(et="=",C++):(et=r,Ot===0&&Bn(Bl)),Ot--,et===r?mr=void 0:(C=mr,mr=r),mr===r?(C=J,J=r):J=br=[br,mr])),J!==r&&(br=pr())!==r&&(mr=Kr())!==r?(Kn=$,$=J=Nr("NOT",mr)):(C=$,$=r)),$}function Mb(){var $,J,br,mr,et;return $=C,(J=qu())!==r&&pr()!==r?((br=(function(){var pt;return(pt=(function(){var At=C,Bt=[],Ut=C,pn,Cn,Hn,qn;if((pn=pr())!==r&&(Cn=qi())!==r&&(Hn=pr())!==r&&(qn=qu())!==r?Ut=pn=[pn,Cn,Hn,qn]:(C=Ut,Ut=r),Ut!==r)for(;Ut!==r;)Bt.push(Ut),Ut=C,(pn=pr())!==r&&(Cn=qi())!==r&&(Hn=pr())!==r&&(qn=qu())!==r?Ut=pn=[pn,Cn,Hn,qn]:(C=Ut,Ut=r);else Bt=r;return Bt!==r&&(Kn=At,Bt={type:"arithmetic",tail:Bt}),At=Bt})())===r&&(pt=(function(){var At=C,Bt,Ut,pn;return(Bt=Ri())!==r&&pr()!==r&&(Ut=vs())!==r&&pr()!==r&&(pn=st())!==r&&pr()!==r&&Ds()!==r?(Kn=At,At=Bt={op:Bt,right:pn}):(C=At,At=r),At===r&&(At=C,(Bt=Ri())!==r&&pr()!==r?((Ut=Mu())===r&&(Ut=Ya())===r&&(Ut=ha()),Ut===r?(C=At,At=r):(Kn=At,Bt=(function(Cn,Hn){return{op:Cn,right:Hn}})(Bt,Ut),At=Bt)):(C=At,At=r)),At})())===r&&(pt=(function(){var At=C,Bt,Ut;return(Bt=fc())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(Ut=st())!==r&&pr()!==r&&Ds()!==r?(Kn=At,At=Bt={op:Bt,right:Ut}):(C=At,At=r),At})())===r&&(pt=(function(){var At=C,Bt,Ut,pn;return(Bt=(function(){var Cn=C,Hn=C,qn,Cs,js;(qn=_t())!==r&&(Cs=pr())!==r&&(js=Yn())!==r?Hn=qn=[qn,Cs,js]:(C=Hn,Hn=r),Hn!==r&&(Kn=Cn,Hn=(qe=Hn)[0]+" "+qe[2]);var qe;return(Cn=Hn)===r&&(Cn=Yn()),Cn})())!==r&&pr()!==r&&(Ut=qu())!==r&&pr()!==r&&Eo()!==r&&pr()!==r&&(pn=qu())!==r?(Kn=At,At=Bt={op:Bt,right:{type:"expr_list",value:[Ut,pn]}}):(C=At,At=r),At})())===r&&(pt=(function(){var At=C,Bt,Ut;return(Bt=(function(){var pn=C;return kt()!==r&&pr()!==r&&_t()!==r&&pr()!==r&&kn()!==r&&pr()!==r&&It()!==r?(Kn=pn,pn="IS NOT DISTINCT FROM"):(C=pn,pn=r),pn===r&&(pn=C,kt()!==r&&pr()!==r&&kn()!==r&&pr()!==r&&It()!==r?(Kn=pn,pn="IS DISTINCT FROM"):(C=pn,pn=r)),pn})())!==r&&pr()!==r&&(Ut=Nt())!==r?(Kn=At,At=Bt={op:Bt,right:Ut}):(C=At,At=r),At})())===r&&(pt=(function(){var At=C,Bt,Ut,pn,Cn,Hn,qn,Cs,js;return(Bt=kt())!==r&&(Ut=pr())!==r&&(pn=qu())!==r?(Kn=At,At=Bt={op:"IS",right:pn}):(C=At,At=r),At===r&&(At=C,(Bt=kt())!==r&&(Ut=pr())!==r?(pn=C,(Cn=kn())!==r&&(Hn=pr())!==r&&(qn=It())!==r&&(Cs=pr())!==r&&(js=Ci())!==r?pn=Cn=[Cn,Hn,qn,Cs,js]:(C=pn,pn=r),pn===r?(C=At,At=r):(Kn=At,Bt=(function(qe){let{db:bo,table:tu}=qe.pop(),Ru=tu==="*"?"*":`"${tu}"`;return{op:"IS",right:{type:"origin",value:"DISTINCT FROM "+(bo?`"${bo}".${Ru}`:Ru)}}})(pn),At=Bt)):(C=At,At=r),At===r&&(At=C,Bt=C,(Ut=kt())!==r&&(pn=pr())!==r&&(Cn=_t())!==r?Bt=Ut=[Ut,pn,Cn]:(C=Bt,Bt=r),Bt!==r&&(Ut=pr())!==r&&(pn=qu())!==r?(Kn=At,Bt=(function(qe){return{op:"IS NOT",right:qe}})(pn),At=Bt):(C=At,At=r))),At})())===r&&(pt=(function(){var At=C,Bt,Ut,pn;(Bt=(function(){var Cs=C,js=C,qe,bo,tu;(qe=_t())!==r&&(bo=pr())!==r&&(tu=Js())!==r?js=qe=[qe,bo,tu]:(C=js,js=r),js!==r&&(Kn=Cs,js=(Ru=js)[0]+" "+Ru[2]);var Ru;return(Cs=js)===r&&(Cs=Js()),Cs})())!==r&&pr()!==r?((Ut=Oe())===r&&(Ut=Mb()),Ut!==r&&pr()!==r?((pn=Ji())===r&&(pn=null),pn===r?(C=At,At=r):(Kn=At,Cn=Bt,Hn=Ut,(qn=pn)&&(Hn.escape=qn),At=Bt={op:Cn,right:Hn})):(C=At,At=r)):(C=At,At=r);var Cn,Hn,qn;return At})())===r&&(pt=(function(){var At=C,Bt,Ut,pn;(Bt=(function(){var Cs=C,js=C,qe,bo,tu,Ru,Je;return(qe=_t())!==r&&(bo=pr())!==r&&(tu=Ve())!==r&&(Ru=pr())!==r&&(Je=nt())!==r?js=qe=[qe,bo,tu,Ru,Je]:(C=js,js=r),js!==r&&(Kn=Cs,js="NOT SIMILAR TO"),(Cs=js)===r&&(Cs=C,(js=Ve())!==r&&(qe=pr())!==r&&(bo=nt())!==r?(Kn=Cs,Cs=js="SIMILAR TO"):(C=Cs,Cs=r)),Cs})())!==r&&pr()!==r?((Ut=Oe())===r&&(Ut=Mb()),Ut!==r&&pr()!==r?((pn=Ji())===r&&(pn=null),pn===r?(C=At,At=r):(Kn=At,Cn=Bt,Hn=Ut,(qn=pn)&&(Hn.escape=qn),At=Bt={op:Cn,right:Hn})):(C=At,At=r)):(C=At,At=r);var Cn,Hn,qn;return At})()),pt})())===r&&(br=null),br===r?(C=$,$=r):(Kn=$,mr=J,$=J=(et=br)===null?mr:et.type==="arithmetic"?Yt(mr,et.tail):Rr(et.op,mr,et.right))):(C=$,$=r),$===r&&($=Ya())===r&&($=Ba()),$}function fc(){var $,J,br,mr,et,pt;return $=C,J=C,(br=_t())!==r&&(mr=pr())!==r&&(et=co())!==r?J=br=[br,mr,et]:(C=J,J=r),J!==r&&(Kn=$,J=(pt=J)[0]+" "+pt[2]),($=J)===r&&($=co()),$}function qi(){var $;return t.substr(C,2)===">="?($=">=",C+=2):($=r,Ot===0&&Bn(Y0)),$===r&&(t.charCodeAt(C)===62?($=">",C++):($=r,Ot===0&&Bn(N0)),$===r&&(t.substr(C,2)==="<="?($="<=",C+=2):($=r,Ot===0&&Bn(ov)),$===r&&(t.substr(C,2)==="<>"?($="<>",C+=2):($=r,Ot===0&&Bn(Fb)),$===r&&(t.charCodeAt(C)===60?($="<",C++):($=r,Ot===0&&Bn(e0)),$===r&&(t.charCodeAt(C)===61?($="=",C++):($=r,Ot===0&&Bn(Bl)),$===r&&(t.substr(C,2)==="!="?($="!=",C+=2):($=r,Ot===0&&Bn(Cb)))))))),$}function Ji(){var $,J,br;return $=C,t.substr(C,6).toLowerCase()==="escape"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(_0)),J!==r&&pr()!==r&&(br=Ya())!==r?(Kn=$,$=J=(function(mr,et){return{type:"ESCAPE",value:et}})(0,br)):(C=$,$=r),$}function Ri(){var $,J,br,mr,et,pt;return $=C,J=C,(br=_t())!==r&&(mr=pr())!==r&&(et=K())!==r?J=br=[br,mr,et]:(C=J,J=r),J!==r&&(Kn=$,J=(pt=J)[0]+" "+pt[2]),($=J)===r&&($=K()),$}function qu(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=tf())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Se())!==r&&(At=pr())!==r&&(Bt=tf())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Se())!==r&&(At=pr())!==r&&(Bt=tf())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=(function(Ut,pn){if(pn&&pn.length&&Ut.type==="column_ref"&&Ut.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...ar()}));return Yt(Ut,pn)})(J,br))}else C=$,$=r;return $}function Se(){var $;return t.charCodeAt(C)===43?($="+",C++):($=r,Ot===0&&Bn(zf)),$===r&&(t.charCodeAt(C)===45?($="-",C++):($=r,Ot===0&&Bn(je))),$}function tf(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=gc())!==r){for(br=[],mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Qu())===r&&(pt=bt()),pt!==r&&(At=pr())!==r&&(Bt=gc())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));mr!==r;)br.push(mr),mr=C,(et=pr())===r?(C=mr,mr=r):((pt=Qu())===r&&(pt=bt()),pt!==r&&(At=pr())!==r&&(Bt=gc())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r));br===r?(C=$,$=r):(Kn=$,$=J=Yt(J,br))}else C=$,$=r;return $}function Qu(){var $;return t.charCodeAt(C)===42?($="*",C++):($=r,Ot===0&&Bn(o0)),$===r&&(t.charCodeAt(C)===47?($="/",C++):($=r,Ot===0&&Bn(xi)),$===r&&(t.charCodeAt(C)===37?($="%",C++):($=r,Ot===0&&Bn(xf)))),$}function P0(){var $,J,br,mr;return($=(function(){var et=C,pt,At,Bt,Ut,pn,Cn,Hn;return(pt=Oe())===r&&(pt=kl())===r&&(pt=ha())===r&&(pt=xa())===r&&(pt=gi())===r&&(pt=Ba())===r&&(pt=E0()),pt!==r&&wi()!==r&&(At=Po())!==r?(Kn=et,et=pt={type:"cast",keyword:"cast",expr:pt,symbol:"::",target:[At]}):(C=et,et=r),et===r&&(et=C,(pt=yo())===r&&(pt=lo()),pt!==r&&pr()!==r&&(At=vs())!==r&&pr()!==r&&(Bt=Nt())!==r&&pr()!==r&&Ln()!==r&&pr()!==r&&(Ut=Po())!==r&&pr()!==r&&(pn=Ds())!==r?(Kn=et,pt=(function(qn,Cs,js){return{type:"cast",keyword:qn.toLowerCase(),expr:Cs,symbol:"as",target:[js]}})(pt,Bt,Ut),et=pt):(C=et,et=r),et===r&&(et=C,(pt=yo())===r&&(pt=lo()),pt!==r&&pr()!==r&&(At=vs())!==r&&pr()!==r&&(Bt=Nt())!==r&&pr()!==r&&Ln()!==r&&pr()!==r&&(Ut=da())!==r&&pr()!==r&&(pn=vs())!==r&&pr()!==r&&(Cn=ll())!==r&&pr()!==r&&Ds()!==r&&pr()!==r&&(Hn=Ds())!==r?(Kn=et,pt=(function(qn,Cs,js){return{type:"cast",keyword:qn.toLowerCase(),expr:Cs,symbol:"as",target:[{dataType:"DECIMAL("+js+")"}]}})(pt,Bt,Cn),et=pt):(C=et,et=r),et===r&&(et=C,(pt=yo())===r&&(pt=lo()),pt!==r&&pr()!==r&&(At=vs())!==r&&pr()!==r&&(Bt=Nt())!==r&&pr()!==r&&Ln()!==r&&pr()!==r&&(Ut=da())!==r&&pr()!==r&&(pn=vs())!==r&&pr()!==r&&(Cn=ll())!==r&&pr()!==r&&Zr()!==r&&pr()!==r&&(Hn=ll())!==r&&pr()!==r&&Ds()!==r&&pr()!==r&&Ds()!==r?(Kn=et,pt=(function(qn,Cs,js,qe){return{type:"cast",keyword:qn.toLowerCase(),expr:Cs,symbol:"as",target:[{dataType:"DECIMAL("+js+", "+qe+")"}]}})(pt,Bt,Cn,Hn),et=pt):(C=et,et=r),et===r&&(et=C,(pt=yo())===r&&(pt=lo()),pt!==r&&pr()!==r&&(At=vs())!==r&&pr()!==r&&(Bt=Nt())!==r&&pr()!==r&&Ln()!==r&&pr()!==r&&(Ut=(function(){var qn;return(qn=(function(){var Cs=C,js,qe,bo;return t.substr(C,6).toLowerCase()==="signed"?(js=t.substr(C,6),C+=6):(js=r,Ot===0&&Bn(Bv)),js===r?(C=Cs,Cs=r):(qe=C,Ot++,bo=ve(),Ot--,bo===r?qe=void 0:(C=qe,qe=r),qe===r?(C=Cs,Cs=r):(Kn=Cs,Cs=js="SIGNED")),Cs})())===r&&(qn=Ia()),qn})())!==r&&pr()!==r?((pn=ta())===r&&(pn=null),pn!==r&&pr()!==r&&(Cn=Ds())!==r?(Kn=et,pt=(function(qn,Cs,js,qe){return{type:"cast",keyword:qn.toLowerCase(),expr:Cs,symbol:"as",target:[{dataType:js+(qe?" "+qe:"")}]}})(pt,Bt,Ut,pn),et=pt):(C=et,et=r)):(C=et,et=r))))),et})())===r&&($=gi())===r&&($=Oe())===r&&($=kl())===r&&($=ha())===r&&($=xa())===r&&($=Ba())===r&&($=E0())===r&&($=C,vs()!==r&&(J=pr())!==r&&(br=Il())!==r&&pr()!==r&&Ds()!==r?(Kn=$,(mr=br).parentheses=!0,$=mr):(C=$,$=r),$===r&&($=Mu())===r&&($=C,pr()===r?(C=$,$=r):(t.charCodeAt(C)===36?(J="$",C++):(J=r,Ot===0&&Bn(Zf)),J!==r&&(br=ai())!==r?(Kn=$,$={type:"origin",value:"$"+br.value}):(C=$,$=r)))),$}function gc(){var $,J,br,mr,et;return($=(function(){var pt,At,Bt,Ut,pn,Cn,Hn,qn;if(pt=C,(At=al())!==r)if(pr()!==r){for(Bt=[],Ut=C,(pn=pr())===r?(C=Ut,Ut=r):(t.substr(C,2)==="?|"?(Cn="?|",C+=2):(Cn=r,Ot===0&&Bn(jb)),Cn===r&&(t.substr(C,2)==="?&"?(Cn="?&",C+=2):(Cn=r,Ot===0&&Bn(Uf)),Cn===r&&(t.charCodeAt(C)===63?(Cn="?",C++):(Cn=r,Ot===0&&Bn(u0)),Cn===r&&(t.substr(C,2)==="#-"?(Cn="#-",C+=2):(Cn=r,Ot===0&&Bn(wb)),Cn===r&&(t.substr(C,3)==="#>>"?(Cn="#>>",C+=3):(Cn=r,Ot===0&&Bn(Ui)),Cn===r&&(t.substr(C,2)==="#>"?(Cn="#>",C+=2):(Cn=r,Ot===0&&Bn(uv)),Cn===r&&(Cn=Ar())===r&&(Cn=yr())===r&&(t.substr(C,2)==="@>"?(Cn="@>",C+=2):(Cn=r,Ot===0&&Bn(yb)),Cn===r&&(t.substr(C,2)==="<@"?(Cn="<@",C+=2):(Cn=r,Ot===0&&Bn(hb))))))))),Cn!==r&&(Hn=pr())!==r&&(qn=al())!==r?Ut=pn=[pn,Cn,Hn,qn]:(C=Ut,Ut=r));Ut!==r;)Bt.push(Ut),Ut=C,(pn=pr())===r?(C=Ut,Ut=r):(t.substr(C,2)==="?|"?(Cn="?|",C+=2):(Cn=r,Ot===0&&Bn(jb)),Cn===r&&(t.substr(C,2)==="?&"?(Cn="?&",C+=2):(Cn=r,Ot===0&&Bn(Uf)),Cn===r&&(t.charCodeAt(C)===63?(Cn="?",C++):(Cn=r,Ot===0&&Bn(u0)),Cn===r&&(t.substr(C,2)==="#-"?(Cn="#-",C+=2):(Cn=r,Ot===0&&Bn(wb)),Cn===r&&(t.substr(C,3)==="#>>"?(Cn="#>>",C+=3):(Cn=r,Ot===0&&Bn(Ui)),Cn===r&&(t.substr(C,2)==="#>"?(Cn="#>",C+=2):(Cn=r,Ot===0&&Bn(uv)),Cn===r&&(Cn=Ar())===r&&(Cn=yr())===r&&(t.substr(C,2)==="@>"?(Cn="@>",C+=2):(Cn=r,Ot===0&&Bn(yb)),Cn===r&&(t.substr(C,2)==="<@"?(Cn="<@",C+=2):(Cn=r,Ot===0&&Bn(hb))))))))),Cn!==r&&(Hn=pr())!==r&&(qn=al())!==r?Ut=pn=[pn,Cn,Hn,qn]:(C=Ut,Ut=r));Bt===r?(C=pt,pt=r):(Kn=pt,Cs=At,At=(js=Bt)&&js.length!==0?Yt(Cs,js):Cs,pt=At)}else C=pt,pt=r;else C=pt,pt=r;var Cs,js;return pt})())===r&&($=C,(J=(function(){var pt;return t.charCodeAt(C)===33?(pt="!",C++):(pt=r,Ot===0&&Bn(sc)),pt===r&&(t.charCodeAt(C)===45?(pt="-",C++):(pt=r,Ot===0&&Bn(je)),pt===r&&(t.charCodeAt(C)===43?(pt="+",C++):(pt=r,Ot===0&&Bn(zf)),pt===r&&(t.charCodeAt(C)===126?(pt="~",C++):(pt=r,Ot===0&&Bn(W0))))),pt})())===r?(C=$,$=r):(br=C,(mr=pr())!==r&&(et=gc())!==r?br=mr=[mr,et]:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J=Nr(J,br[1])))),$}function al(){var $,J,br,mr,et;return $=C,(J=P0())!==r&&pr()!==r?((br=Yc())===r&&(br=null),br===r?(C=$,$=r):(Kn=$,mr=J,(et=br)&&(mr.array_index=et),$=J=mr)):(C=$,$=r),$}function Jl(){var $,J,br,mr,et;return $=C,(J=Ya())!==r&&pr()!==r&&Zr()!==r&&pr()!==r&&(br=Qi())!==r?(Kn=$,mr=J,et=br,ms.add("select::null::"+et.value),$=J={key:mr,value:et}):(C=$,$=r),$}function qc(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Jl())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Jl())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Jl())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=dt(J,br))}else C=$,$=r;return $}function Ba(){var $,J,br,mr,et,pt,At,Bt,Ut,pn,Cn,Hn;return $=C,(J=(function(){var qn,Cs;return qn=C,$a()!==r&&pr()!==r&&ut()!==r&&pr()!==r&&(Cs=qc())!==r&&pr()!==r&&De()!==r?(Kn=qn,qn={type:"map_object",keyword:"map",expr:Cs}):(C=qn,qn=r),qn})())!==r&&(Kn=$,J={type:"column_ref",table:null,column:{expr:J}}),($=J)===r&&($=C,J=C,(br=ya())!==r&&(mr=pr())!==r&&(et=ir())!==r?J=br=[br,mr,et]:(C=J,J=r),J===r&&(J=null),J!==r&&(br=pr())!==r&&(mr=rs())!==r?(Kn=$,$=J=(function(qn){let Cs=qn&&qn[0]||null;return ms.add(`select::${Cs}::(.*)`),{type:"column_ref",table:Cs,column:"*"}})(J)):(C=$,$=r),$===r&&($=C,(J=ya())!==r&&(br=pr())!==r&&(mr=ir())!==r&&(et=pr())!==r&&(pt=Wn())!==r?(At=C,(Bt=pr())!==r&&(Ut=Ef())!==r?At=Bt=[Bt,Ut]:(C=At,At=r),At===r&&(At=null),At===r?(C=$,$=r):(Kn=$,pn=J,Cn=pt,Hn=At,ms.add(`select::${pn}::${Cn}`),$=J={type:"column_ref",table:pn,column:Cn,collate:Hn&&Hn[1]})):(C=$,$=r),$===r&&($=C,(J=Wn())===r?(C=$,$=r):(br=C,(mr=pr())!==r&&(et=Ef())!==r?br=mr=[mr,et]:(C=br,br=r),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J=(function(qn,Cs){return ms.add("select::null::"+qn),{type:"column_ref",table:null,column:qn,collate:Cs&&Cs[1]}})(J,br)))))),$}function Qi(){var $,J;return $=C,(J=ia())!==r&&(Kn=$,J={type:"default",value:J}),($=J)===r&&($=l()),$}function ya(){var $,J;return $=C,(J=ia())===r?(C=$,$=r):(Kn=C,(Kv(J)?r:void 0)===r?(C=$,$=r):(Kn=$,$=J=J)),$===r&&($=C,(J=dn())!==r&&(Kn=$,J=J),$=J),$}function l(){var $;return($=Ql())===r&&($=vi())===r&&($=Va()),$}function dn(){var $,J;return $=C,(J=Ql())===r&&(J=vi())===r&&(J=Va()),J!==r&&(Kn=$,J=J.value),$=J}function Ql(){var $,J,br,mr;if($=C,t.charCodeAt(C)===34?(J='"',C++):(J=r,Ot===0&&Bn(Gc)),J!==r){if(br=[],_v.test(t.charAt(C))?(mr=t.charAt(C),C++):(mr=r,Ot===0&&Bn(kf)),mr!==r)for(;mr!==r;)br.push(mr),_v.test(t.charAt(C))?(mr=t.charAt(C),C++):(mr=r,Ot===0&&Bn(kf));else br=r;br===r?(C=$,$=r):(t.charCodeAt(C)===34?(mr='"',C++):(mr=r,Ot===0&&Bn(Gc)),mr===r?(C=$,$=r):(Kn=$,$=J={type:"double_quote_string",value:br.join("")}))}else C=$,$=r;return $}function vi(){var $,J,br,mr;if($=C,t.charCodeAt(C)===39?(J="'",C++):(J=r,Ot===0&&Bn(Qa)),J!==r){if(br=[],vf.test(t.charAt(C))?(mr=t.charAt(C),C++):(mr=r,Ot===0&&Bn(ki)),mr!==r)for(;mr!==r;)br.push(mr),vf.test(t.charAt(C))?(mr=t.charAt(C),C++):(mr=r,Ot===0&&Bn(ki));else br=r;br===r?(C=$,$=r):(t.charCodeAt(C)===39?(mr="'",C++):(mr=r,Ot===0&&Bn(Qa)),mr===r?(C=$,$=r):(Kn=$,$=J={type:"single_quote_string",value:br.join("")}))}else C=$,$=r;return $}function Va(){var $,J,br,mr;if($=C,t.charCodeAt(C)===96?(J="`",C++):(J=r,Ot===0&&Bn(Hl)),J!==r){if(br=[],Eb.test(t.charAt(C))?(mr=t.charAt(C),C++):(mr=r,Ot===0&&Bn(Bb)),mr!==r)for(;mr!==r;)br.push(mr),Eb.test(t.charAt(C))?(mr=t.charAt(C),C++):(mr=r,Ot===0&&Bn(Bb));else br=r;br===r?(C=$,$=r):(t.charCodeAt(C)===96?(mr="`",C++):(mr=r,Ot===0&&Bn(Hl)),mr===r?(C=$,$=r):(Kn=$,$=J={type:"backticks_quote_string",value:br.join("")}))}else C=$,$=r;return $}function lt(){var $,J;return $=C,(J=Eu())!==r&&(Kn=$,J=J),($=J)===r&&($=dn()),$}function Wn(){var $,J;return $=C,(J=Eu())===r?(C=$,$=r):(Kn=C,(Kv(J)?r:void 0)===r?(C=$,$=r):(Kn=$,$=J=J)),$===r&&($=dn()),$}function Eu(){var $,J,br,mr;if($=C,(J=ve())!==r){for(br=[],mr=nf();mr!==r;)br.push(mr),mr=nf();br===r?(C=$,$=r):(Kn=$,$=J+=br.join(""))}else C=$,$=r;return $}function ia(){var $,J,br,mr;if($=C,(J=ve())!==r){for(br=[],mr=Jt();mr!==r;)br.push(mr),mr=Jt();br===r?(C=$,$=r):(Kn=$,$=J+=br.join(""))}else C=$,$=r;return $}function ve(){var $;return pa.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(wl)),$}function Jt(){var $;return Nl.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(Sv)),$}function nf(){var $;return Hb.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(Jf)),$}function E0(){var $,J,br,mr;return $=C,J=C,t.charCodeAt(C)===58?(br=":",C++):(br=r,Ot===0&&Bn(pf)),br!==r&&(mr=ia())!==r?J=br=[br,mr]:(C=J,J=r),J!==r&&(Kn=$,J={type:"param",value:J[1]}),$=J}function kl(){var $;return($=(function(){var J=C,br,mr;return(br=(function(){var et=C,pt,At,Bt;return t.substr(C,5).toLowerCase()==="count"?(pt=t.substr(C,5),C+=5):(pt=r,Ot===0&&Bn(Sl)),pt===r?(C=et,et=r):(At=C,Ot++,Bt=ve(),Ot--,Bt===r?At=void 0:(C=At,At=r),At===r?(C=et,et=r):(Kn=et,et=pt="COUNT")),et})())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(mr=(function(){var et=C,pt,At,Bt,Ut,pn,Cn,Hn,qn,Cs;if((pt=(function(){var js=C,qe;return t.charCodeAt(C)===42?(qe="*",C++):(qe=r,Ot===0&&Bn(o0)),qe!==r&&(Kn=js,qe={type:"star",value:"*"}),js=qe})())!==r&&(Kn=et,pt={expr:pt}),(et=pt)===r){if(et=C,(pt=kn())===r&&(pt=null),pt!==r)if(pr()!==r)if((At=vs())!==r)if(pr()!==r)if((Bt=Nt())!==r)if(pr()!==r)if(Ds()!==r){for(Ut=[],pn=C,(Cn=pr())===r?(C=pn,pn=r):((Hn=Eo())===r&&(Hn=ao()),Hn!==r&&(qn=pr())!==r&&(Cs=Nt())!==r?pn=Cn=[Cn,Hn,qn,Cs]:(C=pn,pn=r));pn!==r;)Ut.push(pn),pn=C,(Cn=pr())===r?(C=pn,pn=r):((Hn=Eo())===r&&(Hn=ao()),Hn!==r&&(qn=pr())!==r&&(Cs=Nt())!==r?pn=Cn=[Cn,Hn,qn,Cs]:(C=pn,pn=r));Ut!==r&&(pn=pr())!==r?((Cn=rf())===r&&(Cn=null),Cn===r?(C=et,et=r):(Kn=et,pt=(function(js,qe,bo,tu){let Ru=bo.length,Je=qe;Je.parentheses=!0;for(let hu=0;hu<Ru;++hu)Je=Rr(bo[hu][1],Je,bo[hu][3]);return{distinct:js,expr:Je,orderby:tu}})(pt,Bt,Ut,Cn),et=pt)):(C=et,et=r)}else C=et,et=r;else C=et,et=r;else C=et,et=r;else C=et,et=r;else C=et,et=r;else C=et,et=r;else C=et,et=r;et===r&&(et=C,(pt=kn())===r&&(pt=null),pt!==r&&pr()!==r&&(At=Q0())!==r&&pr()!==r?((Bt=rf())===r&&(Bt=null),Bt===r?(C=et,et=r):(Kn=et,pt=(function(js,qe,bo){return{distinct:js,expr:qe,orderby:bo}})(pt,At,Bt),et=pt)):(C=et,et=r))}return et})())!==r&&pr()!==r&&Ds()!==r?(Kn=J,br=(function(et,pt){return{type:"aggr_func",name:et,args:pt}})(br,mr),J=br):(C=J,J=r),J})())===r&&($=(function(){var J=C,br,mr,et,pt,At,Bt,Ut;return(br=(function(){var pn;return(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,3).toLowerCase()==="sum"?(Hn=t.substr(C,3),C+=3):(Hn=r,Ot===0&&Bn(bv)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="SUM")),Cn})())===r&&(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,3).toLowerCase()==="max"?(Hn=t.substr(C,3),C+=3):(Hn=r,Ot===0&&Bn(Ol)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="MAX")),Cn})())===r&&(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,3).toLowerCase()==="min"?(Hn=t.substr(C,3),C+=3):(Hn=r,Ot===0&&Bn(np)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="MIN")),Cn})())===r&&(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,3).toLowerCase()==="avg"?(Hn=t.substr(C,3),C+=3):(Hn=r,Ot===0&&Bn(ql)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="AVG")),Cn})())===r&&(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,7).toLowerCase()==="collect"?(Hn=t.substr(C,7),C+=7):(Hn=r,Ot===0&&Bn(Ec)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="COLLECT")),Cn})()),pn})())!==r&&pr()!==r&&vs()!==r&&pr()!==r?((mr=kn())===r&&(mr=null),mr!==r&&(et=pr())!==r&&(pt=qu())!==r&&(At=pr())!==r&&(Bt=Ds())!==r?(Kn=J,br=(function(pn,Cn,Hn){return{type:"aggr_func",name:pn,args:{expr:Hn,distinct:Cn}}})(br,mr,pt),J=br):(C=J,J=r)):(C=J,J=r),J===r&&(J=C,(br=(function(){var pn;return(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,4).toLowerCase()==="rank"?(Hn=t.substr(C,4),C+=4):(Hn=r,Ot===0&&Bn(Jp)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="RANK")),Cn})())===r&&(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,10).toLowerCase()==="dense_rank"?(Hn=t.substr(C,10),C+=10):(Hn=r,Ot===0&&Bn(Qp)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="DENSE_RANK")),Cn})())===r&&(pn=(function(){var Cn=C,Hn,qn,Cs;return t.substr(C,10).toLowerCase()==="row_number"?(Hn=t.substr(C,10),C+=10):(Hn=r,Ot===0&&Bn(jv)),Hn===r?(C=Cn,Cn=r):(qn=C,Ot++,Cs=ve(),Ot--,Cs===r?qn=void 0:(C=qn,qn=r),qn===r?(C=Cn,Cn=r):(Kn=Cn,Cn=Hn="ROW_NUMBER")),Cn})()),pn})())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(mr=Ds())!==r?(Kn=J,br=(function(pn){return{type:"aggr_func",name:pn}})(br),J=br):(C=J,J=r),J===r&&(J=C,(br=(function(){var pn=C,Cn,Hn,qn;return t.substr(C,7).toLowerCase()==="listagg"?(Cn=t.substr(C,7),C+=7):(Cn=r,Ot===0&&Bn(sp)),Cn===r?(C=pn,pn=r):(Hn=C,Ot++,qn=ve(),Ot--,qn===r?Hn=void 0:(C=Hn,Hn=r),Hn===r?(C=pn,pn=r):(Kn=pn,pn=Cn="LISTAGG")),pn})())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(mr=qu())!==r?(et=C,(pt=pr())!==r&&(At=Zr())!==r&&(Bt=pr())!==r&&(Ut=Ya())!==r?et=pt=[pt,At,Bt,Ut]:(C=et,et=r),et===r&&(et=null),et!==r&&(pt=pr())!==r&&(At=Ds())!==r?(Kn=J,br=(function(pn,Cn,Hn){return{type:"aggr_func",name:pn,args:{expr:Cn,separator:Hn}}})(br,mr,et),J=br):(C=J,J=r)):(C=J,J=r))),J})()),$}function oi(){var $,J,br;return $=C,u()!==r&&pr()!==r&&Zt()!==r&&pr()!==r&&(J=Wu())!==r&&pr()!==r&&vs()!==r&&pr()!==r?((br=st())===r&&(br=null),br!==r&&pr()!==r&&Ds()!==r?(Kn=$,$={type:"on update",keyword:J,parentheses:!0,expr:br}):(C=$,$=r)):(C=$,$=r),$===r&&($=C,u()!==r&&pr()!==r&&Zt()!==r&&pr()!==r&&(J=Wu())!==r?(Kn=$,$=(function(mr){return{type:"on update",keyword:mr}})(J)):(C=$,$=r)),$}function yn(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="over"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Yb)),J!==r&&pr()!==r&&vs()!==r&&pr()!==r&&Fr()!==r&&pr()!==r&&ht()!==r&&pr()!==r&&(br=y0())!==r&&pr()!==r?((mr=rf())===r&&(mr=null),mr!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J={partitionby:br,orderby:mr}):(C=$,$=r)):(C=$,$=r),$===r&&($=oi()),$}function ka(){var $,J,br;return $=C,t.substr(C,8).toLowerCase()==="position"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(av)),J!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(br=(function(){var mr,et,pt,At,Bt,Ut,pn,Cn;return mr=C,(et=Ya())!==r&&pr()!==r&&K()!==r&&pr()!==r&&(pt=Nt())!==r?(At=C,(Bt=pr())!==r&&(Ut=It())!==r&&(pn=pr())!==r&&(Cn=ai())!==r?At=Bt=[Bt,Ut,pn,Cn]:(C=At,At=r),At===r&&(At=null),At===r?(C=mr,mr=r):(Kn=mr,mr=et=(function(Hn,qn,Cs){let js=[Hn,{type:"origin",value:"in"},qn];return Cs&&(js.push({type:"origin",value:"from"}),js.push(Cs[3])),{type:"expr_list",value:js}})(et,pt,At))):(C=mr,mr=r),mr})())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J={type:"function",name:{name:[{type:"origin",value:"position"}]},separator:" ",args:br,...ar()}):(C=$,$=r),$}function Ua(){var $,J,br,mr,et,pt,At,Bt,Ut,pn,Cn;return $=C,(J=Ya())!==r&&pr()!==r?(t.substr(C,5).toLowerCase()==="value"?(br=t.substr(C,5),C+=5):(br=r,Ot===0&&Bn(iv)),br!==r&&pr()!==r&&(mr=Q0())!==r&&pr()!==r?(et=C,(pt=u())!==r&&(At=pr())!==r?(t.substr(C,4).toLowerCase()==="null"?(Bt=t.substr(C,4),C+=4):(Bt=r,Ot===0&&Bn(a0)),Bt!==r&&(Ut=pr())!==r?(t.substr(C,4).toLowerCase()==="null"?(pn=t.substr(C,4),C+=4):(pn=r,Ot===0&&Bn(a0)),pn===r&&(t.substr(C,6).toLowerCase()==="absent"?(pn=t.substr(C,6),C+=6):(pn=r,Ot===0&&Bn(_l))),pn===r?(C=et,et=r):et=pt=[pt,At,Bt,Ut,pn]):(C=et,et=r)):(C=et,et=r),et===r&&(et=null),et===r?(C=$,$=r):(Kn=$,$=J={type:"json_object_arg",expr:{key:J,value:mr,on:(Cn=et)&&{type:"origin",value:Cn[4]}}})):(C=$,$=r)):(C=$,$=r),$}function Ou(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Ua())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Ua())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Ua())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J={type:"expr_list",value:dt(J,br)})}else C=$,$=r;return $}function il(){var $,J,br;return $=C,t.substr(C,11).toLowerCase()==="json_object"?(J=t.substr(C,11),C+=11):(J=r,Ot===0&&Bn(Yl)),J!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(br=Ou())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J={type:"function",name:{name:[{type:"origin",value:"json_object"}]},args:br,...ar()}):(C=$,$=r),$}function zu(){var $,J,br;return $=C,(J=(function(){var mr;return t.substr(C,4).toLowerCase()==="both"?(mr=t.substr(C,4),C+=4):(mr=r,Ot===0&&Bn(Ab)),mr===r&&(t.substr(C,7).toLowerCase()==="leading"?(mr=t.substr(C,7),C+=7):(mr=r,Ot===0&&Bn(Mf)),mr===r&&(t.substr(C,8).toLowerCase()==="trailing"?(mr=t.substr(C,8),C+=8):(mr=r,Ot===0&&Bn(Wb)))),mr})())===r&&(J=null),J!==r&&pr()!==r?((br=Nt())===r&&(br=null),br!==r&&pr()!==r&&It()!==r?(Kn=$,$=J=(function(mr,et,pt){let At=[];return mr&&At.push({type:"origin",value:mr}),et&&At.push(et),At.push({type:"origin",value:"from"}),{type:"expr_list",value:At}})(J,br)):(C=$,$=r)):(C=$,$=r),$}function Yu(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="trim"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Df)),J!==r&&pr()!==r&&vs()!==r&&pr()!==r?((br=zu())===r&&(br=null),br!==r&&pr()!==r&&(mr=Nt())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J=(function(et,pt){let At=et||{type:"expr_list",value:[]};return At.value.push(pt),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:At,...ar()}})(br,mr)):(C=$,$=r)):(C=$,$=r),$}function lb(){var $,J,br;return $=C,t.substr(C,7).toLowerCase()==="overlay"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(ft)),J!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(br=(function(){var mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn;return mr=C,(et=Nt())!==r&&pr()!==r?(t.substr(C,7).toLowerCase()==="placing"?(pt=t.substr(C,7),C+=7):(pt=r,Ot===0&&Bn(mb)),pt!==r&&pr()!==r&&(At=Nt())!==r&&pr()!==r&&It()!==r&&pr()!==r&&(Bt=ai())!==r?(Ut=C,(pn=pr())===r?(C=Ut,Ut=r):(t.substr(C,3).toLowerCase()==="for"?(Cn=t.substr(C,3),C+=3):(Cn=r,Ot===0&&Bn(i0)),Cn!==r&&(Hn=pr())!==r&&(qn=ai())!==r?Ut=pn=[pn,Cn,Hn,qn]:(C=Ut,Ut=r)),Ut===r&&(Ut=null),Ut===r?(C=mr,mr=r):(Kn=mr,mr=et=(function(Cs,js,qe,bo){let tu=[Cs,{type:"origin",value:"placing"},js,{type:"origin",value:"from"},qe];return bo&&(tu.push({type:"origin",value:"for"}),tu.push(bo[3])),{type:"expr_list",value:tu}})(et,At,Bt,Ut))):(C=mr,mr=r)):(C=mr,mr=r),mr})())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J={type:"function",name:{name:[{type:"origin",value:"overlay"}]},separator:" ",args:br,...ar()}):(C=$,$=r),$}function Mi(){var $,J,br;return $=C,t.substr(C,9).toLowerCase()==="substring"?(J=t.substr(C,9),C+=9):(J=r,Ot===0&&Bn(tn)),J!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(br=(function(){var mr,et,pt,At,Bt,Ut,pn,Cn;return mr=C,(et=Nt())!==r&&pr()!==r&&It()!==r&&pr()!==r&&(pt=ai())!==r?(At=C,(Bt=pr())===r?(C=At,At=r):(t.substr(C,3).toLowerCase()==="for"?(Ut=t.substr(C,3),C+=3):(Ut=r,Ot===0&&Bn(i0)),Ut!==r&&(pn=pr())!==r&&(Cn=ai())!==r?At=Bt=[Bt,Ut,pn,Cn]:(C=At,At=r)),At===r&&(At=null),At===r?(C=mr,mr=r):(Kn=mr,mr=et=(function(Hn,qn,Cs){let js=[Hn,{type:"origin",value:"from"},qn];return Cs&&(js.push({type:"origin",value:"for"}),js.push(Cs[3])),{type:"expr_list",value:js}})(et,pt,At))):(C=mr,mr=r),mr})())!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J={type:"function",name:{name:[{type:"origin",value:"substring"}]},separator:" ",args:br,...ar()}):(C=$,$=r),$}function ha(){var $,J,br,mr,et;return($=ka())===r&&($=il())===r&&($=Yu())===r&&($=Mi())===r&&($=lb())===r&&($=C,(J=(function(){var pt;return(pt=ln())===r&&(pt=(function(){var At=C,Bt,Ut,pn;return t.substr(C,12).toLowerCase()==="current_user"?(Bt=t.substr(C,12),C+=12):(Bt=r,Ot===0&&Bn(wf)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="CURRENT_USER")),At})())===r&&(pt=(function(){var At=C,Bt,Ut,pn;return t.substr(C,4).toLowerCase()==="user"?(Bt=t.substr(C,4),C+=4):(Bt=r,Ot===0&&Bn(op)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="USER")),At})())===r&&(pt=(function(){var At=C,Bt,Ut,pn;return t.substr(C,12).toLowerCase()==="session_user"?(Bt=t.substr(C,12),C+=12):(Bt=r,Ot===0&&Bn(qv)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="SESSION_USER")),At})())===r&&(pt=(function(){var At=C,Bt,Ut,pn;return t.substr(C,11).toLowerCase()==="system_user"?(Bt=t.substr(C,11),C+=11):(Bt=r,Ot===0&&Bn(Cv)),Bt===r?(C=At,At=r):(Ut=C,Ot++,pn=ve(),Ot--,pn===r?Ut=void 0:(C=Ut,Ut=r),Ut===r?(C=At,At=r):(Kn=At,At=Bt="SYSTEM_USER")),At})()),pt})())!==r&&pr()!==r&&(br=vs())!==r&&pr()!==r?((mr=st())===r&&(mr=null),mr!==r&&pr()!==r&&Ds()!==r&&pr()!==r?((et=yn())===r&&(et=null),et===r?(C=$,$=r):(Kn=$,$=J=(function(pt,At,Bt){return{type:"function",name:{name:[{type:"default",value:pt}]},args:At||{type:"expr_list",value:[]},over:Bt,...ar()}})(J,mr,et))):(C=$,$=r)):(C=$,$=r),$===r&&($=(function(){var pt=C,At,Bt,Ut,pn;(At=zo())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(Bt=Ha())!==r&&pr()!==r&&It()!==r&&pr()!==r?((Ut=tl())===r&&(Ut=bc())===r&&(Ut=Ni())===r&&(Ut=xu()),Ut!==r&&pr()!==r&&(pn=Nt())!==r&&pr()!==r&&Ds()!==r?(Kn=pt,Cn=Bt,Hn=Ut,qn=pn,At={type:At.toLowerCase(),args:{field:Cn,cast_type:Hn,source:qn},...ar()},pt=At):(C=pt,pt=r)):(C=pt,pt=r);var Cn,Hn,qn;return pt===r&&(pt=C,(At=zo())!==r&&pr()!==r&&vs()!==r&&pr()!==r&&(Bt=Ha())!==r&&pr()!==r&&It()!==r&&pr()!==r&&(Ut=Nt())!==r&&pr()!==r&&(pn=Ds())!==r?(Kn=pt,At=(function(Cs,js,qe){return{type:Cs.toLowerCase(),args:{field:js,source:qe},...ar()}})(At,Bt,Ut),pt=At):(C=pt,pt=r)),pt})())===r&&($=C,(J=ln())!==r&&pr()!==r?((br=oi())===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J={type:"function",name:{name:[{type:"origin",value:J}]},over:br,...ar()})):(C=$,$=r),$===r&&($=C,(J=eo())!==r&&pr()!==r&&(br=vs())!==r&&pr()!==r?((mr=Il())===r&&(mr=null),mr!==r&&pr()!==r&&Ds()!==r&&pr()!==r?((et=yn())===r&&(et=null),et===r?(C=$,$=r):(Kn=$,$=J=(function(pt,At,Bt){return At&&At.type!=="expr_list"&&(At={type:"expr_list",value:[At]}),{type:"function",name:pt,args:At||{type:"expr_list",value:[]},over:Bt,...ar()}})(J,mr,et))):(C=$,$=r)):(C=$,$=r)))),$}function Ha(){var $,J;return $=C,t.substr(C,7).toLowerCase()==="century"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(_n)),J===r&&(t.substr(C,3).toLowerCase()==="day"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(En)),J===r&&(t.substr(C,4).toLowerCase()==="date"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Os)),J===r&&(t.substr(C,6).toLowerCase()==="decade"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(gs)),J===r&&(t.substr(C,3).toLowerCase()==="dow"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(Ys)),J===r&&(t.substr(C,3).toLowerCase()==="doy"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(Te)),J===r&&(t.substr(C,5).toLowerCase()==="epoch"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(ye)),J===r&&(t.substr(C,4).toLowerCase()==="hour"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Be)),J===r&&(t.substr(C,6).toLowerCase()==="isodow"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(io)),J===r&&(t.substr(C,7).toLowerCase()==="isoyear"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Ro)),J===r&&(t.substr(C,12).toLowerCase()==="microseconds"?(J=t.substr(C,12),C+=12):(J=r,Ot===0&&Bn(So)),J===r&&(t.substr(C,10).toLowerCase()==="millennium"?(J=t.substr(C,10),C+=10):(J=r,Ot===0&&Bn(uu)),J===r&&(t.substr(C,12).toLowerCase()==="milliseconds"?(J=t.substr(C,12),C+=12):(J=r,Ot===0&&Bn(ko)),J===r&&(t.substr(C,6).toLowerCase()==="minute"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(yu)),J===r&&(t.substr(C,5).toLowerCase()==="month"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(au)),J===r&&(t.substr(C,7).toLowerCase()==="quarter"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Iu)),J===r&&(t.substr(C,6).toLowerCase()==="second"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(mu)),J===r&&(t.substr(C,8).toLowerCase()==="timezone"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(Ju)),J===r&&(t.substr(C,13).toLowerCase()==="timezone_hour"?(J=t.substr(C,13),C+=13):(J=r,Ot===0&&Bn(ua)),J===r&&(t.substr(C,15).toLowerCase()==="timezone_minute"?(J=t.substr(C,15),C+=15):(J=r,Ot===0&&Bn(Sa)),J===r&&(t.substr(C,4).toLowerCase()==="week"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(ma)),J===r&&(t.substr(C,4).toLowerCase()==="year"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Bi))))))))))))))))))))))),J!==r&&(Kn=$,J=J),$=J}function ln(){var $;return($=(function(){var J=C,br,mr,et;return t.substr(C,12).toLowerCase()==="current_date"?(br=t.substr(C,12),C+=12):(br=r,Ot===0&&Bn(Yv)),br===r?(C=J,J=r):(mr=C,Ot++,et=ve(),Ot--,et===r?mr=void 0:(C=mr,mr=r),mr===r?(C=J,J=r):(Kn=J,J=br="CURRENT_DATE")),J})())===r&&($=(function(){var J=C,br,mr,et;return t.substr(C,12).toLowerCase()==="current_time"?(br=t.substr(C,12),C+=12):(br=r,Ot===0&&Bn(Wv)),br===r?(C=J,J=r):(mr=C,Ot++,et=ve(),Ot--,et===r?mr=void 0:(C=mr,mr=r),mr===r?(C=J,J=r):(Kn=J,J=br="CURRENT_TIME")),J})())===r&&($=Wu()),$}function Oe(){var $;return($=Ya())===r&&($=ai())===r&&($=(function(){var J=C,br;return(br=(function(){var mr=C,et,pt,At;return t.substr(C,4).toLowerCase()==="true"?(et=t.substr(C,4),C+=4):(et=r,Ot===0&&Bn(Gf)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):mr=et=[et,pt]),mr})())!==r&&(Kn=J,br={type:"bool",value:!0}),(J=br)===r&&(J=C,(br=(function(){var mr=C,et,pt,At;return t.substr(C,5).toLowerCase()==="false"?(et=t.substr(C,5),C+=5):(et=r,Ot===0&&Bn(Mv)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):mr=et=[et,pt]),mr})())!==r&&(Kn=J,br={type:"bool",value:!1}),J=br),J})())===r&&($=Di())===r&&($=(function(){var J=C,br,mr,et,pt,At;if((br=Ni())===r&&(br=xu())===r&&(br=tl())===r&&(br=si()),br!==r)if(pr()!==r){if(mr=C,t.charCodeAt(C)===39?(et="'",C++):(et=r,Ot===0&&Bn(Qa)),et!==r){for(pt=[],At=ui();At!==r;)pt.push(At),At=ui();pt===r?(C=mr,mr=r):(t.charCodeAt(C)===39?(At="'",C++):(At=r,Ot===0&&Bn(Qa)),At===r?(C=mr,mr=r):mr=et=[et,pt,At])}else C=mr,mr=r;mr===r?(C=J,J=r):(Kn=J,Bt=mr,br={type:br.toLowerCase(),value:Bt[1].join("")},J=br)}else C=J,J=r;else C=J,J=r;var Bt;if(J===r)if(J=C,(br=Ni())===r&&(br=xu())===r&&(br=tl())===r&&(br=si()),br!==r)if(pr()!==r){if(mr=C,t.charCodeAt(C)===34?(et='"',C++):(et=r,Ot===0&&Bn(Gc)),et!==r){for(pt=[],At=ni();At!==r;)pt.push(At),At=ni();pt===r?(C=mr,mr=r):(t.charCodeAt(C)===34?(At='"',C++):(At=r,Ot===0&&Bn(Gc)),At===r?(C=mr,mr=r):mr=et=[et,pt,At])}else C=mr,mr=r;mr===r?(C=J,J=r):(Kn=J,br=(function(Ut,pn){return{type:Ut.toLowerCase(),value:pn[1].join("")}})(br,mr),J=br)}else C=J,J=r;else C=J,J=r;return J})()),$}function Di(){var $,J;return $=C,(J=(function(){var br=C,mr,et,pt;return t.substr(C,4).toLowerCase()==="null"?(mr=t.substr(C,4),C+=4):(mr=r,Ot===0&&Bn(a0)),mr===r?(C=br,br=r):(et=C,Ot++,pt=ve(),Ot--,pt===r?et=void 0:(C=et,et=r),et===r?(C=br,br=r):br=mr=[mr,et]),br})())!==r&&(Kn=$,J={type:"null",value:null}),$=J}function Ya(){var $,J,br,mr,et;if($=C,J=C,t.charCodeAt(C)===39?(br="'",C++):(br=r,Ot===0&&Bn(Qa)),br!==r){for(mr=[],et=ui();et!==r;)mr.push(et),et=ui();mr===r?(C=J,J=r):(t.charCodeAt(C)===39?(et="'",C++):(et=r,Ot===0&&Bn(Qa)),et===r?(C=J,J=r):J=br=[br,mr,et])}else C=J,J=r;if(J!==r&&(Kn=$,J={type:"single_quote_string",value:J[1].join("")}),($=J)===r){if($=C,J=C,t.charCodeAt(C)===34?(br='"',C++):(br=r,Ot===0&&Bn(Gc)),br!==r){for(mr=[],et=ni();et!==r;)mr.push(et),et=ni();mr===r?(C=J,J=r):(t.charCodeAt(C)===34?(et='"',C++):(et=r,Ot===0&&Bn(Gc)),et===r?(C=J,J=r):J=br=[br,mr,et])}else C=J,J=r;J===r?(C=$,$=r):(br=C,Ot++,mr=ir(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J=(function(pt){return{type:"double_quote_string",value:pt[1].join("")}})(J)))}return $}function ni(){var $;return sa.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(di)),$===r&&($=$i()),$}function ui(){var $;return Hi.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(S0)),$===r&&($=$i()),$}function $i(){var $,J,br,mr,et,pt,At,Bt,Ut,pn;return $=C,t.substr(C,2)==="\\'"?(J="\\'",C+=2):(J=r,Ot===0&&Bn(l0)),J!==r&&(Kn=$,J="\\'"),($=J)===r&&($=C,t.substr(C,2)==='\\"'?(J='\\"',C+=2):(J=r,Ot===0&&Bn(Ov)),J!==r&&(Kn=$,J='\\"'),($=J)===r&&($=C,t.substr(C,2)==="\\\\"?(J="\\\\",C+=2):(J=r,Ot===0&&Bn(lv)),J!==r&&(Kn=$,J="\\\\"),($=J)===r&&($=C,t.substr(C,2)==="\\/"?(J="\\/",C+=2):(J=r,Ot===0&&Bn(fi)),J!==r&&(Kn=$,J="\\/"),($=J)===r&&($=C,t.substr(C,2)==="\\b"?(J="\\b",C+=2):(J=r,Ot===0&&Bn(Wl)),J!==r&&(Kn=$,J="\b"),($=J)===r&&($=C,t.substr(C,2)==="\\f"?(J="\\f",C+=2):(J=r,Ot===0&&Bn(ec)),J!==r&&(Kn=$,J="\f"),($=J)===r&&($=C,t.substr(C,2)==="\\n"?(J="\\n",C+=2):(J=r,Ot===0&&Bn(Fc)),J!==r&&(Kn=$,J=` +`),($=J)===r&&($=C,t.substr(C,2)==="\\r"?(J="\\r",C+=2):(J=r,Ot===0&&Bn(xv)),J!==r&&(Kn=$,J="\r"),($=J)===r&&($=C,t.substr(C,2)==="\\t"?(J="\\t",C+=2):(J=r,Ot===0&&Bn(lp)),J!==r&&(Kn=$,J=" "),($=J)===r&&($=C,t.substr(C,2)==="\\u"?(J="\\u",C+=2):(J=r,Ot===0&&Bn(Uv)),J!==r&&(br=Da())!==r&&(mr=Da())!==r&&(et=Da())!==r&&(pt=Da())!==r?(Kn=$,At=br,Bt=mr,Ut=et,pn=pt,$=J=String.fromCharCode(parseInt("0x"+At+Bt+Ut+pn))):(C=$,$=r),$===r&&($=C,t.charCodeAt(C)===92?(J="\\",C++):(J=r,Ot===0&&Bn($f)),J!==r&&(Kn=$,J="\\"),($=J)===r&&($=C,t.substr(C,2)==="''"?(J="''",C+=2):(J=r,Ot===0&&Bn(Tb)),J!==r&&(Kn=$,J="''"),($=J)===r&&($=C,t.substr(C,2)==='""'?(J='""',C+=2):(J=r,Ot===0&&Bn(cp)),J!==r&&(Kn=$,J='""'),($=J)===r&&($=C,t.substr(C,2)==="``"?(J="``",C+=2):(J=r,Ot===0&&Bn(c0)),J!==r&&(Kn=$,J="``"),$=J))))))))))))),$}function ai(){var $,J,br;return $=C,(J=(function(){var mr=C,et,pt,At;return(et=ll())!==r&&(pt=cl())!==r&&(At=a())!==r?(Kn=mr,mr=et={type:"bigint",value:et+pt+At}):(C=mr,mr=r),mr===r&&(mr=C,(et=ll())!==r&&(pt=cl())!==r?(Kn=mr,et=(function(Bt,Ut){let pn=Bt+Ut;return ct(Bt)?{type:"bigint",value:pn}:parseFloat(pn).toFixed(Ut.length-1)})(et,pt),mr=et):(C=mr,mr=r),mr===r&&(mr=C,(et=ll())!==r&&(pt=a())!==r?(Kn=mr,et=(function(Bt,Ut){return{type:"bigint",value:Bt+Ut}})(et,pt),mr=et):(C=mr,mr=r),mr===r&&(mr=C,(et=ll())!==r&&(Kn=mr,et=(function(Bt){return ct(Bt)?{type:"bigint",value:Bt}:parseFloat(Bt)})(et)),mr=et))),mr})())!==r&&(Kn=$,J=(br=J)&&br.type==="bigint"?br:{type:"number",value:br}),$=J}function ll(){var $,J,br;return($=an())===r&&($=Ma())===r&&($=C,t.charCodeAt(C)===45?(J="-",C++):(J=r,Ot===0&&Bn(je)),J===r&&(t.charCodeAt(C)===43?(J="+",C++):(J=r,Ot===0&&Bn(zf))),J!==r&&(br=an())!==r?(Kn=$,$=J+=br):(C=$,$=r),$===r&&($=C,t.charCodeAt(C)===45?(J="-",C++):(J=r,Ot===0&&Bn(je)),J===r&&(t.charCodeAt(C)===43?(J="+",C++):(J=r,Ot===0&&Bn(zf))),J!==r&&(br=Ma())!==r?(Kn=$,$=J=(function(mr,et){return mr+et})(J,br)):(C=$,$=r))),$}function cl(){var $,J,br;return $=C,t.charCodeAt(C)===46?(J=".",C++):(J=r,Ot===0&&Bn(f0)),J!==r&&(br=an())!==r?(Kn=$,$=J="."+br):(C=$,$=r),$}function a(){var $,J,br;return $=C,(J=(function(){var mr=C,et,pt;Op.test(t.charAt(C))?(et=t.charAt(C),C++):(et=r,Ot===0&&Bn(fp)),et===r?(C=mr,mr=r):(oc.test(t.charAt(C))?(pt=t.charAt(C),C++):(pt=r,Ot===0&&Bn(uc)),pt===r&&(pt=null),pt===r?(C=mr,mr=r):(Kn=mr,mr=et+=(At=pt)===null?"":At));var At;return mr})())!==r&&(br=an())!==r?(Kn=$,$=J+=br):(C=$,$=r),$}function an(){var $,J,br;if($=C,J=[],(br=Ma())!==r)for(;br!==r;)J.push(br),br=Ma();else J=r;return J!==r&&(Kn=$,J=J.join("")),$=J}function Ma(){var $;return b0.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(Pf)),$}function Da(){var $;return Sp.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(kv)),$}function ii(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="default"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Fl)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function nt(){var $,J,br,mr;return $=C,t.substr(C,2).toLowerCase()==="to"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn(zv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function o(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="drop"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Zv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="DROP")),$}function Zt(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="update"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(vp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function ba(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="create"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Jv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function bu(){var $,J,br,mr;return $=C,t.substr(C,9).toLowerCase()==="temporary"?(J=t.substr(C,9),C+=9):(J=r,Ot===0&&Bn(Xb)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Ht(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="delete"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(pp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function rt(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="insert"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(xp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function k(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="replace"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Up)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Lr(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="rename"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Qv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Or(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="ignore"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Vp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Fr(){var $,J,br,mr;return $=C,t.substr(C,9).toLowerCase()==="partition"?(J=t.substr(C,9),C+=9):(J=r,Ot===0&&Bn(dp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="PARTITION")),$}function dr(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="into"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Kp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function It(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="from"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(ld)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Dt(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="set"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(He)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="SET")),$}function Ln(){var $,J,br,mr;return $=C,t.substr(C,2).toLowerCase()==="as"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn(Lp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Un(){var $,J,br,mr;return $=C,t.substr(C,5).toLowerCase()==="table"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(Cp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="TABLE")),$}function u(){var $,J,br,mr;return $=C,t.substr(C,2).toLowerCase()==="on"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn(Ki)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function yt(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="join"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(kp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Y(){var $,J,br,mr;return $=C,t.substr(C,5).toLowerCase()==="cross"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(Mp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Q(){var $,J,br,mr;return $=C,t.substr(C,5).toLowerCase()==="outer"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(yp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Tr(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="values"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Qf)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function P(){var $,J,br,mr;return $=C,t.substr(C,5).toLowerCase()==="using"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(_b)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function hr(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="with"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Of)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function ht(){var $,J,br,mr;return $=C,t.substr(C,2).toLowerCase()==="by"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn($v)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function e(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="asc"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(Gp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="ASC")),$}function Pr(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="desc"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Fp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="DESC")),$}function Mr(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="all"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(mp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="ALL")),$}function kn(){var $,J,br,mr;return $=C,t.substr(C,8).toLowerCase()==="distinct"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(zp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="DISTINCT")),$}function Yn(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="between"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Zp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="BETWEEN")),$}function K(){var $,J,br,mr;return $=C,t.substr(C,2).toLowerCase()==="in"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn(n0)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="IN")),$}function kt(){var $,J,br,mr;return $=C,t.substr(C,2).toLowerCase()==="is"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn(Gv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="IS")),$}function Js(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="like"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(tp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="LIKE")),$}function Ve(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="similar"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Fv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="SIMILAR")),$}function co(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="exists"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(yl)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="EXISTS")),$}function _t(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="not"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(B0)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="NOT")),$}function Eo(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="and"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(jc)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="AND")),$}function ao(){var $,J,br,mr;return $=C,t.substr(C,2).toLowerCase()==="or"?(J=t.substr(C,2),C+=2):(J=r,Ot===0&&Bn(fv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="OR")),$}function zo(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="extract"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(rd)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="EXTRACT")),$}function no(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="case"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Ip)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function Ke(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="when"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(td)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):$=J=[J,br]),$}function yo(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="cast"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(gp)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="CAST")),$}function lo(){var $,J,br,mr;return $=C,t.substr(C,8).toLowerCase()==="try_cast"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(sd)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="TRY_CAST")),$}function Co(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="char"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(od)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="CHAR")),$}function Au(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="varchar"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(ud)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="VARCHAR")),$}function la(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="numeric"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(O)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="NUMERIC")),$}function da(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="decimal"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(ps)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="DECIMAL")),$}function Ia(){var $,J,br,mr;return $=C,t.substr(C,8).toLowerCase()==="unsigned"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(Lf)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="UNSIGNED")),$}function Wt(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="int"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(Hv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="INT")),$}function ta(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="integer"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(zs)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="INTEGER")),$}function li(){var $,J,br,mr;return $=C,t.substr(C,8).toLowerCase()==="smallint"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(Rs)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="SMALLINT")),$}function ea(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="tinyint"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(Np)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="TINYINT")),$}function Ml(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="bigint"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Ls)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="BIGINT")),$}function Le(){var $,J,br,mr;return $=C,t.substr(C,5).toLowerCase()==="float"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(pv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="FLOAT")),$}function rl(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="double"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Cf)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="DOUBLE")),$}function xu(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="date"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Os)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="DATE")),$}function si(){var $,J,br,mr;return $=C,t.substr(C,8).toLowerCase()==="datetime"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(dv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="DATETIME")),$}function Ni(){var $,J,br,mr;return $=C,t.substr(C,4).toLowerCase()==="time"?(J=t.substr(C,4),C+=4):(J=r,Ot===0&&Bn(Qt)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="TIME")),$}function tl(){var $,J,br,mr;return $=C,t.substr(C,9).toLowerCase()==="timestamp"?(J=t.substr(C,9),C+=9):(J=r,Ot===0&&Bn(Xs)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="TIMESTAMP")),$}function Dl(){var $,J,br,mr;return $=C,t.substr(C,8).toLowerCase()==="truncate"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(ic)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="TRUNCATE")),$}function $a(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="map"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(_p)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="MAP")),$}function bc(){var $,J,br,mr;return $=C,t.substr(C,8).toLowerCase()==="interval"?(J=t.substr(C,8),C+=8):(J=r,Ot===0&&Bn(Lv)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="INTERVAL")),$}function Wu(){var $,J,br,mr;return $=C,t.substr(C,17).toLowerCase()==="current_timestamp"?(J=t.substr(C,17),C+=17):(J=r,Ot===0&&Bn(zb)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="CURRENT_TIMESTAMP")),$}function Zo(){var $;return($=(function(){var J;return t.substr(C,2)==="@@"?(J="@@",C+=2):(J=r,Ot===0&&Bn(nb)),J})())===r&&($=(function(){var J;return t.charCodeAt(C)===64?(J="@",C++):(J=r,Ot===0&&Bn(xl)),J})())===r&&($=(function(){var J;return t.charCodeAt(C)===36?(J="$",C++):(J=r,Ot===0&&Bn(Zf)),J})()),$}function wi(){var $;return t.substr(C,2)==="::"?($="::",C+=2):($=r,Ot===0&&Bn(ja)),$}function j(){var $;return t.charCodeAt(C)===61?($="=",C++):($=r,Ot===0&&Bn(Bl)),$}function ur(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="add"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(jf)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="ADD")),$}function Ir(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="column"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(is)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="COLUMN")),$}function s(){var $,J,br,mr;return $=C,t.substr(C,5).toLowerCase()==="index"?(J=t.substr(C,5),C+=5):(J=r,Ot===0&&Bn(el)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="INDEX")),$}function er(){var $,J,br,mr;return $=C,t.substr(C,3).toLowerCase()==="key"?(J=t.substr(C,3),C+=3):(J=r,Ot===0&&Bn(mi)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="KEY")),$}function Lt(){var $,J,br,mr;return $=C,t.substr(C,6).toLowerCase()==="unique"?(J=t.substr(C,6),C+=6):(J=r,Ot===0&&Bn(Gi)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="UNIQUE")),$}function mt(){var $,J,br,mr;return $=C,t.substr(C,7).toLowerCase()==="comment"?(J=t.substr(C,7),C+=7):(J=r,Ot===0&&Bn(yf)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="COMMENT")),$}function bn(){var $,J,br,mr;return $=C,t.substr(C,10).toLowerCase()==="constraint"?(J=t.substr(C,10),C+=10):(J=r,Ot===0&&Bn(X0)),J===r?(C=$,$=r):(br=C,Ot++,mr=ve(),Ot--,mr===r?br=void 0:(C=br,br=r),br===r?(C=$,$=r):(Kn=$,$=J="CONSTRAINT")),$}function ir(){var $;return t.charCodeAt(C)===46?($=".",C++):($=r,Ot===0&&Bn(f0)),$}function Zr(){var $;return t.charCodeAt(C)===44?($=",",C++):($=r,Ot===0&&Bn(ss)),$}function rs(){var $;return t.charCodeAt(C)===42?($="*",C++):($=r,Ot===0&&Bn(o0)),$}function vs(){var $;return t.charCodeAt(C)===40?($="(",C++):($=r,Ot===0&&Bn(R0)),$}function Ds(){var $;return t.charCodeAt(C)===41?($=")",C++):($=r,Ot===0&&Bn(Rl)),$}function ut(){var $;return t.charCodeAt(C)===91?($="[",C++):($=r,Ot===0&&Bn(Xl)),$}function De(){var $;return t.charCodeAt(C)===93?($="]",C++):($=r,Ot===0&&Bn(d0)),$}function Qo(){var $;return t.charCodeAt(C)===60?($="<",C++):($=r,Ot===0&&Bn(e0)),$}function A(){var $;return t.charCodeAt(C)===62?($=">",C++):($=r,Ot===0&&Bn(N0)),$}function nr(){var $;return t.charCodeAt(C)===59?($=";",C++):($=r,Ot===0&&Bn(Bf)),$}function yr(){var $;return t.substr(C,2)==="->"?($="->",C+=2):($=r,Ot===0&&Bn(jt)),$}function Ar(){var $;return t.substr(C,3)==="->>"?($="->>",C+=3):($=r,Ot===0&&Bn(Us)),$}function qr(){var $;return t.substr(C,2)==="=>"?($="=>",C+=2):($=r,Ot===0&&Bn(ol)),$}function bt(){var $;return($=(function(){var J;return t.substr(C,2)==="||"?(J="||",C+=2):(J=r,Ot===0&&Bn(sb)),J})())===r&&($=(function(){var J;return t.substr(C,2)==="&&"?(J="&&",C+=2):(J=r,Ot===0&&Bn(eb)),J})()),$}function pr(){var $,J;for($=[],(J=bs())===r&&(J=cn());J!==r;)$.push(J),(J=bs())===r&&(J=cn());return $}function xt(){var $,J;if($=[],(J=bs())===r&&(J=cn()),J!==r)for(;J!==r;)$.push(J),(J=bs())===r&&(J=cn());else $=r;return $}function cn(){var $;return($=(function(){var J=C,br,mr,et,pt,At;if(t.substr(C,2)==="/*"?(br="/*",C+=2):(br=r,Ot===0&&Bn(p)),br!==r){for(mr=[],et=C,pt=C,Ot++,t.substr(C,2)==="*/"?(At="*/",C+=2):(At=r,Ot===0&&Bn(ns)),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt!==r&&(At=$n())!==r?et=pt=[pt,At]:(C=et,et=r);et!==r;)mr.push(et),et=C,pt=C,Ot++,t.substr(C,2)==="*/"?(At="*/",C+=2):(At=r,Ot===0&&Bn(ns)),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt!==r&&(At=$n())!==r?et=pt=[pt,At]:(C=et,et=r);mr===r?(C=J,J=r):(t.substr(C,2)==="*/"?(et="*/",C+=2):(et=r,Ot===0&&Bn(ns)),et===r?(C=J,J=r):J=br=[br,mr,et])}else C=J,J=r;return J})())===r&&($=(function(){var J=C,br,mr,et,pt,At;if(t.substr(C,2)==="--"?(br="--",C+=2):(br=r,Ot===0&&Bn(Vl)),br!==r){for(mr=[],et=C,pt=C,Ot++,At=ks(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt!==r&&(At=$n())!==r?et=pt=[pt,At]:(C=et,et=r);et!==r;)mr.push(et),et=C,pt=C,Ot++,At=ks(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt!==r&&(At=$n())!==r?et=pt=[pt,At]:(C=et,et=r);mr===r?(C=J,J=r):J=br=[br,mr]}else C=J,J=r;return J})()),$}function mn(){var $,J,br,mr;return $=C,(J=mt())!==r&&pr()!==r?((br=j())===r&&(br=null),br!==r&&pr()!==r&&(mr=Ya())!==r?(Kn=$,$=J=(function(et,pt,At){return{type:et.toLowerCase(),keyword:et.toLowerCase(),symbol:pt,value:At}})(J,br,mr)):(C=$,$=r)):(C=$,$=r),$}function $n(){var $;return t.length>C?($=t.charAt(C),C++):($=r,Ot===0&&Bn(Hc)),$}function bs(){var $;return Zn.test(t.charAt(C))?($=t.charAt(C),C++):($=r,Ot===0&&Bn(kb)),$}function ks(){var $,J;if(($=(function(){var br=C,mr;return Ot++,t.length>C?(mr=t.charAt(C),C++):(mr=r,Ot===0&&Bn(Hc)),Ot--,mr===r?br=void 0:(C=br,br=r),br})())===r)if($=[],q0.test(t.charAt(C))?(J=t.charAt(C),C++):(J=r,Ot===0&&Bn(df)),J!==r)for(;J!==r;)$.push(J),q0.test(t.charAt(C))?(J=t.charAt(C),C++):(J=r,Ot===0&&Bn(df));else $=r;return $}function Ws(){var $,J;return $=C,Kn=C,Vn=[],r!==void 0&&pr()!==r?((J=fe())===r&&(J=(function(){var br=C,mr;return(function(){var et;return t.substr(C,6).toLowerCase()==="return"?(et=t.substr(C,6),C+=6):(et=r,Ot===0&&Bn(zt)),et})()!==r&&pr()!==r&&(mr=ne())!==r?(Kn=br,br={type:"return",expr:mr}):(C=br,br=r),br})()),J===r?(C=$,$=r):(Kn=$,$={type:"proc",stmt:J,vars:Vn})):(C=$,$=r),$}function fe(){var $,J,br,mr;return $=C,(J=Mu())===r&&(J=su()),J!==r&&pr()!==r?((br=(function(){var et;return t.substr(C,2)===":="?(et=":=",C+=2):(et=r,Ot===0&&Bn($s)),et})())===r&&(br=j()),br!==r&&pr()!==r&&(mr=ne())!==r?(Kn=$,$=J={type:"assign",left:J,symbol:br,right:mr}):(C=$,$=r)):(C=$,$=r),$}function ne(){var $;return($=D0())===r&&($=(function(){var J=C,br,mr,et,pt;return(br=Mu())!==r&&pr()!==r&&(mr=Tl())!==r&&pr()!==r&&(et=Mu())!==r&&pr()!==r&&(pt=ib())!==r?(Kn=J,J=br={type:"join",ltable:br,rtable:et,op:mr,on:pt}):(C=J,J=r),J})())===r&&($=Is())===r&&($=(function(){var J=C,br;return ut()!==r&&pr()!==r&&(br=$o())!==r&&pr()!==r&&De()!==r?(Kn=J,J={type:"array",value:br}):(C=J,J=r),J})()),$}function Is(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=me())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Se())!==r&&(At=pr())!==r&&(Bt=me())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Se())!==r&&(At=pr())!==r&&(Bt=me())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=sl(J,br))}else C=$,$=r;return $}function me(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Xe())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Qu())!==r&&(At=pr())!==r&&(Bt=Xe())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Qu())!==r&&(At=pr())!==r&&(Bt=Xe())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=sl(J,br))}else C=$,$=r;return $}function Xe(){var $,J,br;return($=Oe())===r&&($=Mu())===r&&($=so())===r&&($=E0())===r&&($=C,vs()!==r&&pr()!==r&&(J=Is())!==r&&pr()!==r&&Ds()!==r?(Kn=$,(br=J).parentheses=!0,$=br):(C=$,$=r)),$}function eo(){var $,J,br,mr,et,pt,At;return $=C,(J=Qi())===r?(C=$,$=r):(br=C,(mr=pr())!==r&&(et=ir())!==r&&(pt=pr())!==r&&(At=Qi())!==r?br=mr=[mr,et,pt,At]:(C=br,br=r),br===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J=(function(Bt,Ut){let pn={name:[Bt]};return Ut!==null&&(pn.schema=Bt,pn.name=[Ut[3]]),pn})(J,br))),$}function so(){var $,J,br;return $=C,(J=eo())!==r&&pr()!==r&&vs()!==r&&pr()!==r?((br=$o())===r&&(br=null),br!==r&&pr()!==r&&Ds()!==r?(Kn=$,$=J=(function(mr,et){return{type:"function",name:mr,args:{type:"expr_list",value:et},...ar()}})(J,br)):(C=$,$=r)):(C=$,$=r),$===r&&($=C,(J=eo())!==r&&(Kn=$,J=(function(mr){return{type:"function",name:mr,args:null,...ar()}})(J)),$=J),$}function $o(){var $,J,br,mr,et,pt,At,Bt;if($=C,(J=Xe())!==r){for(br=[],mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Xe())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);mr!==r;)br.push(mr),mr=C,(et=pr())!==r&&(pt=Zr())!==r&&(At=pr())!==r&&(Bt=Xe())!==r?mr=et=[et,pt,At,Bt]:(C=mr,mr=r);br===r?(C=$,$=r):(Kn=$,$=J=dt(J,br))}else C=$,$=r;return $}function Mu(){var $,J,br,mr,et;return $=C,(J=Zo())!==r&&(br=su())!==r?(Kn=$,mr=J,et=br,$=J={type:"var",...et,prefix:mr}):(C=$,$=r),$}function su(){var $,J,br;return $=C,(J=ia())!==r&&(br=(function(){var mr=C,et=[],pt=C,At,Bt;for(t.charCodeAt(C)===46?(At=".",C++):(At=r,Ot===0&&Bn(f0)),At!==r&&(Bt=ia())!==r?pt=At=[At,Bt]:(C=pt,pt=r);pt!==r;)et.push(pt),pt=C,t.charCodeAt(C)===46?(At=".",C++):(At=r,Ot===0&&Bn(f0)),At!==r&&(Bt=ia())!==r?pt=At=[At,Bt]:(C=pt,pt=r);return et!==r&&(Kn=mr,et=(function(Ut){let pn=[];for(let Cn=0;Cn<Ut.length;Cn++)pn.push(Ut[Cn][1]);return pn})(et)),mr=et})())!==r?(Kn=$,$=J=(function(mr,et){return Vn.push(mr),{type:"var",name:mr,members:et,prefix:null}})(J,br)):(C=$,$=r),$===r&&($=C,(J=ai())!==r&&(Kn=$,J={type:"var",name:J.value,members:[],quoted:null,prefix:null}),$=J),$}function Po(){var $;return($=(function(){var J=C,br,mr,et;if((br=Co())===r&&(br=Au()),br!==r)if(pr()!==r)if(vs()!==r)if(pr()!==r){if(mr=[],b0.test(t.charAt(C))?(et=t.charAt(C),C++):(et=r,Ot===0&&Bn(Pf)),et!==r)for(;et!==r;)mr.push(et),b0.test(t.charAt(C))?(et=t.charAt(C),C++):(et=r,Ot===0&&Bn(Pf));else mr=r;mr!==r&&(et=pr())!==r&&Ds()!==r?(Kn=J,br={dataType:br,length:parseInt(mr.join(""),10),parentheses:!0},J=br):(C=J,J=r)}else C=J,J=r;else C=J,J=r;else C=J,J=r;else C=J,J=r;return J===r&&(J=C,(br=Co())!==r&&(Kn=J,br=(function(pt){return{dataType:pt}})(br)),(J=br)===r&&(J=C,(br=Au())!==r&&(Kn=J,br=U0(br)),(J=br)===r&&(J=C,(br=(function(){var pt,At,Bt,Ut;return pt=C,t.substr(C,6).toLowerCase()==="string"?(At=t.substr(C,6),C+=6):(At=r,Ot===0&&Bn(Rp)),At===r?(C=pt,pt=r):(Bt=C,Ot++,Ut=ve(),Ot--,Ut===r?Bt=void 0:(C=Bt,Bt=r),Bt===r?(C=pt,pt=r):(Kn=pt,pt=At="STRING")),pt})())!==r&&(Kn=J,br=(function(pt){return{dataType:pt}})(br)),J=br))),J})())===r&&($=(function(){var J=C,br,mr,et,pt,At,Bt,Ut,pn,Cn,Hn,qn;if((br=la())===r&&(br=da())===r&&(br=Wt())===r&&(br=ta())===r&&(br=li())===r&&(br=ea())===r&&(br=Ml())===r&&(br=Le())===r&&(br=rl()),br!==r)if((mr=pr())!==r)if((et=vs())!==r)if((pt=pr())!==r){if(At=[],b0.test(t.charAt(C))?(Bt=t.charAt(C),C++):(Bt=r,Ot===0&&Bn(Pf)),Bt!==r)for(;Bt!==r;)At.push(Bt),b0.test(t.charAt(C))?(Bt=t.charAt(C),C++):(Bt=r,Ot===0&&Bn(Pf));else At=r;if(At!==r)if((Bt=pr())!==r){if(Ut=C,(pn=Zr())!==r)if((Cn=pr())!==r){if(Hn=[],b0.test(t.charAt(C))?(qn=t.charAt(C),C++):(qn=r,Ot===0&&Bn(Pf)),qn!==r)for(;qn!==r;)Hn.push(qn),b0.test(t.charAt(C))?(qn=t.charAt(C),C++):(qn=r,Ot===0&&Bn(Pf));else Hn=r;Hn===r?(C=Ut,Ut=r):Ut=pn=[pn,Cn,Hn]}else C=Ut,Ut=r;else C=Ut,Ut=r;Ut===r&&(Ut=null),Ut!==r&&(pn=pr())!==r&&(Cn=Ds())!==r&&(Hn=pr())!==r?((qn=Na())===r&&(qn=null),qn===r?(C=J,J=r):(Kn=J,Cs=Ut,js=qn,br={dataType:br,length:parseInt(At.join(""),10),scale:Cs&&parseInt(Cs[2].join(""),10),parentheses:!0,suffix:js},J=br)):(C=J,J=r)}else C=J,J=r;else C=J,J=r}else C=J,J=r;else C=J,J=r;else C=J,J=r;else C=J,J=r;var Cs,js;if(J===r){if(J=C,(br=la())===r&&(br=da())===r&&(br=Wt())===r&&(br=ta())===r&&(br=li())===r&&(br=ea())===r&&(br=Ml())===r&&(br=Le())===r&&(br=rl()),br!==r){if(mr=[],b0.test(t.charAt(C))?(et=t.charAt(C),C++):(et=r,Ot===0&&Bn(Pf)),et!==r)for(;et!==r;)mr.push(et),b0.test(t.charAt(C))?(et=t.charAt(C),C++):(et=r,Ot===0&&Bn(Pf));else mr=r;mr!==r&&(et=pr())!==r?((pt=Na())===r&&(pt=null),pt===r?(C=J,J=r):(Kn=J,br=(function(qe,bo,tu){return{dataType:qe,length:parseInt(bo.join(""),10),suffix:tu}})(br,mr,pt),J=br)):(C=J,J=r)}else C=J,J=r;J===r&&(J=C,(br=la())===r&&(br=da())===r&&(br=Wt())===r&&(br=ta())===r&&(br=li())===r&&(br=ea())===r&&(br=Ml())===r&&(br=Le())===r&&(br=rl()),br!==r&&(mr=pr())!==r?((et=Na())===r&&(et=null),et!==r&&(pt=pr())!==r?(Kn=J,br=(function(qe,bo){return{dataType:qe,suffix:bo}})(br,et),J=br):(C=J,J=r)):(C=J,J=r))}return J})())===r&&($=(function(){var J=C,br,mr,et;if((br=xu())===r&&(br=si())===r&&(br=Ni())===r&&(br=tl()),br!==r)if(pr()!==r)if(vs()!==r)if(pr()!==r){if(mr=[],b0.test(t.charAt(C))?(et=t.charAt(C),C++):(et=r,Ot===0&&Bn(Pf)),et!==r)for(;et!==r;)mr.push(et),b0.test(t.charAt(C))?(et=t.charAt(C),C++):(et=r,Ot===0&&Bn(Pf));else mr=r;mr!==r&&(et=pr())!==r&&Ds()!==r?(Kn=J,br={dataType:br,length:parseInt(mr.join(""),10),parentheses:!0},J=br):(C=J,J=r)}else C=J,J=r;else C=J,J=r;else C=J,J=r;else C=J,J=r;return J===r&&(J=C,(br=xu())===r&&(br=si())===r&&(br=Ni())===r&&(br=tl()),br!==r&&(Kn=J,br=U0(br)),J=br),J})())===r&&($=(function(){var J=C,br;return(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,4).toLowerCase()==="json"?(et=t.substr(C,4),C+=4):(et=r,Ot===0&&Bn(Bc)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="JSON")),mr})())===r&&(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,5).toLowerCase()==="jsonb"?(et=t.substr(C,5),C+=5):(et=r,Ot===0&&Bn(vv)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="JSONB")),mr})()),br!==r&&(Kn=J,br=U0(br)),J=br})())===r&&($=(function(){var J=C,br;return(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,8).toLowerCase()==="geometry"?(et=t.substr(C,8),C+=8):(et=r,Ot===0&&Bn(ep)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="GEOMETRY")),mr})())!==r&&(Kn=J,br={dataType:br}),J=br})())===r&&($=(function(){var J=C,br;return(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,8).toLowerCase()==="tinytext"?(et=t.substr(C,8),C+=8):(et=r,Ot===0&&Bn(Wp)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="TINYTEXT")),mr})())===r&&(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,4).toLowerCase()==="text"?(et=t.substr(C,4),C+=4):(et=r,Ot===0&&Bn(cd)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="TEXT")),mr})())===r&&(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,10).toLowerCase()==="mediumtext"?(et=t.substr(C,10),C+=10):(et=r,Ot===0&&Bn(Vb)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="MEDIUMTEXT")),mr})())===r&&(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,8).toLowerCase()==="longtext"?(et=t.substr(C,8),C+=8):(et=r,Ot===0&&Bn(_)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="LONGTEXT")),mr})()),br!==r&&(Kn=J,br={dataType:br}),J=br})())===r&&($=(function(){var J=C,br;return(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,4).toLowerCase()==="uuid"?(et=t.substr(C,4),C+=4):(et=r,Ot===0&&Bn(Kb)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="UUID")),mr})())!==r&&(Kn=J,br={dataType:br}),J=br})())===r&&($=(function(){var J=C,br;return(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,4).toLowerCase()==="bool"?(et=t.substr(C,4),C+=4):(et=r,Ot===0&&Bn(ed)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="BOOL")),mr})())===r&&(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,7).toLowerCase()==="boolean"?(et=t.substr(C,7),C+=7):(et=r,Ot===0&&Bn(Yp)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="BOOLEAN")),mr})()),br!==r&&(Kn=J,br={dataType:br}),J=br})())===r&&($=(function(){var J=C,br,mr;return(br=(function(){var et,pt,At,Bt;return et=C,t.substr(C,5).toLowerCase()==="array"?(pt=t.substr(C,5),C+=5):(pt=r,Ot===0&&Bn(ys)),pt===r?(C=et,et=r):(At=C,Ot++,Bt=ve(),Ot--,Bt===r?At=void 0:(C=At,At=r),At===r?(C=et,et=r):(Kn=et,et=pt="ARRAY")),et})())!==r&&Qo()!==r&&(mr=Po())!==r&&A()!==r?(Kn=J,J=br={dataType:br,subType:mr}):(C=J,J=r),J})())===r&&($=(function(){var J=C,br,mr;return(br=$a())!==r&&Qo()!==r&&Po()!==r&&Zr()!==r&&(mr=Po())!==r&&A()!==r?(Kn=J,J=br={dataType:br,subType:mr}):(C=J,J=r),J})())===r&&($=(function(){var J=C,br;return(br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,3).toLowerCase()==="row"?(et=t.substr(C,3),C+=3):(et=r,Ot===0&&Bn(Ss)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="ROW")),mr})())!==r&&(Kn=J,br={dataType:br}),J=br})()),$}function Na(){var $,J,br;return $=C,(J=Ia())===r&&(J=null),J!==r&&pr()!==r?((br=(function(){var mr,et,pt,At;return mr=C,t.substr(C,8).toLowerCase()==="zerofill"?(et=t.substr(C,8),C+=8):(et=r,Ot===0&&Bn(on)),et===r?(C=mr,mr=r):(pt=C,Ot++,At=ve(),Ot--,At===r?pt=void 0:(C=pt,pt=r),pt===r?(C=mr,mr=r):(Kn=mr,mr=et="ZEROFILL")),mr})())===r&&(br=null),br===r?(C=$,$=r):(Kn=$,$=J=(function(mr,et){let pt=[];return mr&&pt.push(mr),et&&pt.push(et),pt})(J,br))):(C=$,$=r),$}let F={ABS:!0,ALL:!0,ALLOCATE:!0,ALLOW:!0,ALTER:!0,AND:!0,ANY:!0,ARE:!0,ARRAY:!0,ARRAY_MAX_CARDINALITY:!0,AS:!0,ASENSITIVE:!0,ASYMMETRIC:!0,AT:!0,ATOMIC:!0,AUTHORIZATION:!0,AVG:!0,BEGIN:!0,BEGIN_FRAME:!0,BEGIN_PARTITION:!0,BETWEEN:!0,BIGINT:!0,BINARY:!0,BIT:!0,BLOB:!0,BOOLEAN:!0,BOTH:!0,BY:!0,CALL:!0,CALLED:!0,CARDINALITY:!0,CASCADED:!0,CASE:!0,CAST:!0,CEIL:!0,CEILING:!0,CHAR:!0,CHARACTER:!0,CHARACTER_LENGTH:!0,CHAR_LENGTH:!0,CHECK:!0,CLASSIFIER:!0,CLOB:!0,CLOSE:!0,COALESCE:!0,COLLATE:!0,COLLECT:!0,COLUMN:!0,COMMIT:!0,CONDITION:!0,CONNECT:!0,CONSTRAINT:!0,CONTAINS:!0,CONVERT:!0,CORR:!0,CORRESPONDING:!0,COUNT:!0,COVAR_POP:!0,COVAR_SAMP:!0,CREATE:!0,CROSS:!0,CUBE:!0,CUME_DIST:!0,CURRENT:!0,CURRENT_CATALOG:!0,CURRENT_DATE:!0,CURRENT_DEFAULT_TRANSFORM_GROUP:!0,CURRENT_PATH:!0,CURRENT_ROLE:!0,CURRENT_ROW:!0,CURRENT_SCHEMA:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_TRANSFORM_GROUP_FOR_TYPE:!0,CURRENT_USER:!0,CURSOR:!0,CYCLE:!0,DATE:!0,DAY:!0,DEALLOCATE:!0,DEC:!0,DECIMAL:!0,DECLARE:!0,DEFAULT:!0,DEFINE:!0,DELETE:!0,DENSE_RANK:!0,DEREF:!0,DESCRIBE:!0,DETERMINISTIC:!0,DISALLOW:!0,DISCONNECT:!0,DISTINCT:!0,DOUBLE:!0,DROP:!0,DYNAMIC:!0,EACH:!0,ELEMENT:!0,ELSE:!0,EMPTY:!0,END:!0,"END-EXEC":!0,END_FRAME:!0,END_PARTITION:!0,EQUALS:!0,ESCAPE:!0,EVERY:!0,EXCEPT:!0,EXEC:!0,EXECUTE:!0,EXISTS:!0,EXP:!0,EXPLAIN:!0,EXTEND:!0,EXTERNAL:!0,EXTRACT:!0,FALSE:!0,FETCH:!0,FILTER:!0,FIRST_VALUE:!0,FLOAT:!0,FLOOR:!0,FOR:!0,FOREIGN:!0,FRAME_ROW:!0,FREE:!0,FROM:!0,FULL:!0,FUNCTION:!0,FUSION:!0,GET:!0,GLOBAL:!0,GRANT:!0,GROUP:!0,GROUPING:!0,GROUPS:!0,HAVING:!0,HOLD:!0,HOUR:!0,IDENTITY:!0,IMPORT:!0,IN:!0,INDICATOR:!0,INITIAL:!0,INNER:!0,INOUT:!0,INSENSITIVE:!0,INSERT:!0,INT:!0,INTEGER:!0,INTERSECT:!0,INTERSECTION:!0,INTERVAL:!0,INTO:!0,IS:!0,JOIN:!0,JSON_ARRAY:!0,JSON_ARRAYAGG:!0,JSON_EXISTS:!0,JSON_OBJECT:!0,JSON_OBJECTAGG:!0,JSON_QUERY:!0,JSON_VALUE:!0,LAG:!0,LANGUAGE:!0,LARGE:!0,LAST_VALUE:!0,LATERAL:!0,LEAD:!0,LEADING:!0,LEFT:!0,LIKE:!0,LIKE_REGEX:!0,LIMIT:!0,LN:!0,LOCAL:!0,LOCALTIME:!0,LOCALTIMESTAMP:!0,LOWER:!0,MATCH:!0,MATCHES:!0,MATCH_NUMBER:!0,MATCH_RECOGNIZE:!0,MAX:!0,MEASURES:!0,MEMBER:!0,MERGE:!0,METHOD:!0,MIN:!0,MINUS:!0,MINUTE:!0,MOD:!0,MODIFIES:!0,MODULE:!0,MONTH:!0,MULTISET:!0,NATIONAL:!0,NATURAL:!0,NCHAR:!0,NCLOB:!0,NEW:!0,NEXT:!0,NO:!0,NONE:!0,NORMALIZE:!0,NOT:!0,NTH_VALUE:!0,NTILE:!0,NULL:!0,NULLIF:!0,NUMERIC:!0,OCCURRENCES_REGEX:!0,OCTET_LENGTH:!0,OF:!0,OFFSET:!0,OLD:!0,OMIT:!0,ON:!0,ONE:!0,ONLY:!0,OPEN:!0,OR:!0,ORDER:!0,OUT:!0,OUTER:!0,OVER:!0,OVERLAPS:!0,OVERLAY:!0,PARAMETER:!0,PARTITION:!0,PATTERN:!0,PER:!0,PERCENT:!0,PERCENTILE_CONT:!0,PERCENTILE_DISC:!0,PERCENT_RANK:!0,PERIOD:!0,PERMUTE:!0,PORTION:!0,POSITION:!0,POSITION_REGEX:!0,POWER:!0,PRECEDES:!0,PRECISION:!0,PREPARE:!0,PREV:!0,PRIMARY:!0,PROCEDURE:!0,RANGE:!0,RANK:!0,READS:!0,REAL:!0,RECURSIVE:!0,REF:!0,REFERENCES:!0,REFERENCING:!0,REGR_AVGX:!0,REGR_AVGY:!0,REGR_COUNT:!0,REGR_INTERCEPT:!0,REGR_R2:!0,REGR_SLOPE:!0,REGR_SXX:!0,REGR_SXY:!0,REGR_SYY:!0,RELEASE:!0,RESET:!0,RESULT:!0,RETURN:!0,RETURNS:!0,REVOKE:!0,RIGHT:!0,ROLLBACK:!0,ROLLUP:!0,ROW:!0,ROWS:!0,ROW_NUMBER:!0,RUNNING:!0,SAVEPOINT:!0,SCOPE:!0,SCROLL:!0,SEARCH:!0,SECOND:!0,SEEK:!0,SELECT:!0,SENSITIVE:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SIMILAR:!0,SIMILAR:!0,SKIP:!0,SMALLINT:!0,SOME:!0,SPECIFIC:!0,SPECIFICTYPE:!0,SQL:!0,SQLEXCEPTION:!0,SQLSTATE:!0,SQLWARNING:!0,SQRT:!0,START:!0,STATIC:!0,STDDEV_POP:!0,STDDEV_SAMP:!0,STREAM:!0,SUBMULTISET:!0,SUBSET:!0,SUBSTRING:!0,SUBSTRING_REGEX:!0,SUCCEEDS:!0,SUM:!0,SYMMETRIC:!0,SYSTEM:!0,SYSTEM_TIME:!0,SYSTEM_USER:!0,TABLE:!0,TABLESAMPLE:!0,THEN:!0,TO:!0,TIME:!0,TIMESTAMP:!0,TIMEZONE_HOUR:!0,TIMEZONE_MINUTE:!0,TINYINT:!0,TO:!0,TRAILING:!0,TRANSLATE:!0,TRANSLATE_REGEX:!0,TRANSLATION:!0,TREAT:!0,TRIGGER:!0,TRIM:!0,TRIM_ARRAY:!0,TRUE:!0,TRUNCATE:!0,UESCAPE:!0,UNION:!0,UNIQUE:!0,UNKNOWN:!0,UNNEST:!0,UPDATE:!0,UPPER:!0,UPSERT:!0,USER:!0,USING:!0,VALUE:!0,VALUES:!0,VALUE_OF:!0,VARBINARY:!0,VARCHAR:!0,VARYING:!0,VAR_POP:!0,VAR_SAMP:!0,VERSIONING:!0,WHEN:!0,WHENEVER:!0,WHERE:!0,WIDTH_BUCKET:!0,WINDOW:!0,WITH:!0,WITHIN:!0,WITHOUT:!0,YEAR:!0};function ar(){return Ce.includeLocations?{loc:L0(Kn,C)}:{}}function Nr($,J){return{type:"unary_expr",operator:$,expr:J}}function Rr($,J,br){return{type:"binary_expr",operator:$,left:J,right:br}}function ct($){let J=To(9007199254740991);return!(To($)<J)}function dt($,J,br=3){let mr=[$];for(let et=0;et<J.length;et++)delete J[et][br].tableList,delete J[et][br].columnList,mr.push(J[et][br]);return mr}function Yt($,J){let br=$;for(let mr=0;mr<J.length;mr++)br=Rr(J[mr][1],br,J[mr][3]);return br}function vn($){return Qs[$]||$||null}function fn($){let J=new Set;for(let br of $.keys()){let mr=br.split("::");if(!mr){J.add(br);break}mr&&mr[1]&&(mr[1]=vn(mr[1])),J.add(mr.join("::"))}return Array.from(J)}function gn($){return typeof $=="string"?{type:"same",value:$}:$}let Vn=[],Jn=new Set,ms=new Set,Qs={};if((Ie=ge())!==r&&C===t.length)return Ie;throw Ie!==r&&C<t.length&&Bn({type:"end"}),Qb(zl,Kl<t.length?t.charAt(Kl):null,Kl<t.length?L0(Kl,Kl+1):L0(Kl,Kl))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:Wp},ge=Wp,Dn=function(k,Lr){return ii(k,Lr,1)},Pn=zs("IF",!0),Ae=function(k,Lr){return ii(k,Lr)},ou=zs("AUTO_INCREMENT",!0),Hs=zs("UNIQUE",!0),Uo=zs("KEY",!0),Ps=zs("PRIMARY",!0),pe=zs("COLUMN_FORMAT",!0),_o=zs("FIXED",!0),Gi=zs("DYNAMIC",!0),mi=zs("DEFAULT",!0),Fi=zs("STORAGE",!0),T0=zs("DISK",!0),dl=zs("MEMORY",!0),Gl=zs("ALGORITHM",!0),Fl=zs("INSTANT",!0),nc=zs("INPLACE",!0),xc=zs("COPY",!0),I0=zs("LOCK",!0),ji=zs("NONE",!0),af=zs("SHARED",!0),qf=zs("EXCLUSIVE",!0),Uc=zs("PRIMARY KEY",!0),wc=zs("FOREIGN KEY",!0),Ll=zs("MATCH FULL",!0),jl=zs("MATCH PARTIAL",!0),Oi=zs("MATCH SIMPLE",!0),bb=zs("RESTRICT",!0),Vi=zs("CASCADE",!0),zc=zs("SET NULL",!0),kc=zs("NO ACTION",!0),vb=zs("SET DEFAULT",!0),Zc=zs("CHARACTER",!0),nl=zs("SET",!0),Xf=zs("CHARSET",!0),gl=zs("COLLATE",!0),lf=zs("AVG_ROW_LENGTH",!0),Jc=zs("KEY_BLOCK_SIZE",!0),Qc=zs("MAX_ROWS",!0),gv=zs("MIN_ROWS",!0),g0=zs("STATS_SAMPLE_PAGES",!0),Ki=zs("CONNECTION",!0),Pb=zs("COMPRESSION",!0),ei=zs("'",!1),pb=zs("ZLIB",!0),j0=zs("LZ4",!0),B0=zs("ENGINE",!0),Mc=zs("READ",!0),Cl=zs("LOCAL",!0),$u=zs("LOW_PRIORITY",!0),r0=zs("WRITE",!0),zn=function(k,Lr){return ii(k,Lr)},Ss=zs("(",!1),te=zs(")",!1),ce=zs(".",!1),He=zs("BTREE",!0),Ue=zs("HASH",!0),Qe=zs("WITH",!0),uo=zs("PARSER",!0),Ao=zs("VISIBLE",!0),Pu=zs("INVISIBLE",!0),Ca=function(k,Lr){return Lr.unshift(k),Lr.forEach(Or=>{let{table:Fr,as:dr}=Or;rt[Fr]=Fr,dr&&(rt[dr]=Fr),(function(It){let Dt=Zt(It);It.clear(),Dt.forEach(Ln=>It.add(Ln))})(Ht)}),Lr},ku=zs("FOLLOWING",!0),ca=zs("PRECEDING",!0),na=zs("CURRENT",!0),Qa=zs("ROW",!0),cf=zs("UNBOUNDED",!0),ri=zs("=",!1),t0=function(k,Lr){return nt(k,Lr)},n0=zs("!",!1),Dc=function(k){return k[0]+" "+k[2]},s0=zs(">=",!1),Rv=zs(">",!1),nv=zs("<=",!1),sv=zs("<>",!1),ev=zs("<",!1),yc=zs("==",!1),$c=zs("!=",!1),Sf=function(k,Lr){return{op:k,right:Lr}},R0=zs("+",!1),Rl=zs("-",!1),ff=zs("*",!1),Vf=zs("/",!1),Vv=zs("%",!1),db=zs("~",!1),Of=function(k){return cl[k.toUpperCase()]===!0},Pc=zs('"',!1),H0=/^[^"]/,bf=Bc(['"'],!0,!1),Lb=/^[^']/,Fa=Bc(["'"],!0,!1),Kf=zs("`",!1),Nv=/^[^`]/,Gb=Bc(["`"],!0,!1),hc=function(k,Lr){return k+Lr.join("")},Bl=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,sl=Bc([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),sc=/^[A-Za-z0-9_$\u4E00-\u9FA5\xC0-\u017F]/,Y0=Bc([["A","Z"],["a","z"],["0","9"],"_","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),N0=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,ov=Bc([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Fb=zs(":",!1),e0=zs("OVER",!0),Cb=zs("AT TIME ZONE",!0),_0=function(k,Lr){return{type:k.toLowerCase(),value:Lr[1].join("")}},zf=/^[^"\\\0-\x1F\x7F]/,je=Bc(['"',"\\",["\0",""],"\x7F"],!0,!1),o0=/^[^'\\]/,xi=Bc(["'","\\"],!0,!1),xf=zs("\\'",!1),Zf=zs('\\"',!1),W0=zs("\\\\",!1),jb=zs("\\/",!1),Uf=zs("\\b",!1),u0=zs("\\f",!1),wb=zs("\\n",!1),Ui=zs("\\r",!1),uv=zs("\\t",!1),yb=zs("\\u",!1),hb=zs("\\",!1),Kv=zs("''",!1),Gc=zs('""',!1),_v=zs("``",!1),kf=/^[\n\r]/,vf=Bc([` +`,"\r"],!1,!1),ki=/^[0-9]/,Hl=Bc([["0","9"]],!1,!1),Eb=/^[0-9a-fA-F]/,Bb=Bc([["0","9"],["a","f"],["A","F"]],!1,!1),pa=/^[eE]/,wl=Bc(["e","E"],!1,!1),Nl=/^[+\-]/,Sv=Bc(["+","-"],!1,!1),Hb=zs("NULL",!0),Jf=zs("NOT NULL",!0),pf=zs("TRUE",!0),Yb=zs("TO",!0),av=zs("FALSE",!0),iv=zs("DROP",!0),a0=zs("USE",!0),_l=zs("ALTER",!0),Yl=zs("SELECT",!0),Ab=zs("UPDATE",!0),Mf=zs("CREATE",!0),Wb=zs("TEMPORARY",!0),Df=zs("DELETE",!0),mb=zs("INSERT",!0),i0=zs("RECURSIVE",!0),ft=zs("REPLACE",!0),tn=zs("RENAME",!0),_n=zs("IGNORE",!0),En=zs("PARTITION",!0),Os=zs("INTO",!0),gs=zs("OVERWRITE",!0),Ys=zs("FROM",!0),Te=zs("UNLOCK",!0),ye=zs("AS",!0),Be=zs("TABLE",!0),io=zs("TABLES",!0),Ro=zs("DATABASE",!0),So=zs("SCHEMA",!0),uu=zs("ON",!0),ko=zs("LEFT",!0),yu=zs("RIGHT",!0),au=zs("FULL",!0),Iu=zs("CROSS",!0),mu=zs("INNER",!0),Ju=zs("JOIN",!0),ua=zs("OUTER",!0),Sa=zs("UNION",!0),ma=zs("VALUES",!0),Bi=zs("USING",!0),sa=zs("WHERE",!0),di=zs("GROUP",!0),Hi=zs("BY",!0),S0=zs("ORDER",!0),l0=zs("HAVING",!0),Ov=zs("LIMIT",!0),lv=zs("OFFSET",!0),fi=zs("ASC",!0),Wl=zs("DESC",!0),ec=zs("ALL",!0),Fc=zs("DISTINCT",!0),xv=zs("BETWEEN",!0),lp=zs("IN",!0),Uv=zs("IS",!0),$f=zs("LIKE",!0),Tb=zs("RLIKE",!0),cp=zs("EXISTS",!0),c0=zs("NOT",!0),q0=zs("AND",!0),df=zs("OR",!0),f0=zs("COUNT",!0),b0=zs("MAX",!0),Pf=zs("MIN",!0),Sp=zs("SUM",!0),kv=zs("AVG",!0),Op=zs("CALL",!0),fp=zs("CASE",!0),oc=zs("WHEN",!0),uc=zs("THEN",!0),qb=zs("ELSE",!0),Gf=zs("END",!0),zv=zs("CAST",!0),Mv=zs("CHAR",!0),Zv=zs("VARCHAR",!0),bp=zs("NUMERIC",!0),Ib=zs("DECIMAL",!0),Dv=zs("SIGNED",!0),vp=zs("STRING",!0),Jv=zs("UNSIGNED",!0),Xb=zs("INT",!0),pp=zs("ZEROFILL",!0),xp=zs("INTEGER",!0),cv=zs("JSON",!0),Up=zs("SMALLINT",!0),Xp=zs("TINYINT",!0),Qv=zs("TINYTEXT",!0),Vp=zs("TEXT",!0),dp=zs("MEDIUMTEXT",!0),Kp=zs("LONGTEXT",!0),ld=zs("BIGINT",!0),Lp=zs("FLOAT",!0),Cp=zs("DOUBLE",!0),wp=zs("DATE",!0),gb=zs("DATETIME",!0),O0=zs("ROWS",!0),v0=zs("TIME",!0),ac=zs("TIMESTAMP",!0),Rb=zs("TRUNCATE",!0),Ff=zs("USER",!0),kp=zs("CURRENT_DATE",!0),Mp=zs("INTERVAL",!0),rp=zs("YEAR",!0),yp=zs("MONTH",!0),hp=zs("DAY",!0),Ep=zs("HOUR",!0),Nb=zs("MINUTE",!0),Qf=zs("SECOND",!0),_b=zs("CURRENT_TIME",!0),Ap=zs("CURRENT_TIMESTAMP",!0),Dp=zs("CURRENT_USER",!0),$v=zs("SESSION_USER",!0),$p=zs("SYSTEM_USER",!0),Pp=zs("GLOBAL",!0),Pv=zs("SESSION",!0),Gp=zs("PERSIST",!0),Fp=zs("PERSIST_ONLY",!0),mp=zs("@",!1),zp=zs("@@",!1),Zp=zs("$",!1),Gv=zs("return",!0),tp=zs(":=",!1),Fv=zs("DUAL",!0),yl=zs("ADD",!0),jc=zs("COLUMN",!0),fv=zs("INDEX",!0),Sl=zs("FULLTEXT",!0),Ol=zs("SPATIAL",!0),np=zs("COMMENT",!0),bv=zs("CONSTRAINT",!0),ql=zs("REFERENCES",!0),Ec=zs("SQL_CALC_FOUND_ROWS",!0),Jp=zs("SQL_CACHE",!0),Qp=zs("SQL_NO_CACHE",!0),sp=zs("SQL_SMALL_RESULT",!0),jv=zs("SQL_BIG_RESULT",!0),Tp=zs("SQL_BUFFER_RESULT",!0),rd=zs(",",!1),jp=zs("[",!1),Ip=zs("]",!1),td=zs(";",!1),nd=zs("||",!1),Bp=zs("&&",!1),Hp=zs("/*",!1),gp=zs("*/",!1),sd=zs("--",!1),ed=zs("#",!1),Yp={type:"any"},od=/^[ \t\n\r]/,ud=Bc([" "," ",` +`,"\r"],!1,!1),Rp=function(k){return{dataType:k}},O=0,ps=0,Bv=[{line:1,column:1}],Lf=0,Hv=[],on=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function zs(k,Lr){return{type:"literal",text:k,ignoreCase:Lr}}function Bc(k,Lr,Or){return{type:"class",parts:k,inverted:Lr,ignoreCase:Or}}function vv(k){var Lr,Or=Bv[k];if(Or)return Or;for(Lr=k-1;!Bv[Lr];)Lr--;for(Or={line:(Or=Bv[Lr]).line,column:Or.column};Lr<k;)t.charCodeAt(Lr)===10?(Or.line++,Or.column=1):Or.column++,Lr++;return Bv[k]=Or,Or}function ep(k,Lr){var Or=vv(k),Fr=vv(Lr);return{start:{offset:k,line:Or.line,column:Or.column},end:{offset:Lr,line:Fr.line,column:Fr.column}}}function Rs(k){O<Lf||(O>Lf&&(Lf=O,Hv=[]),Hv.push(k))}function Np(k,Lr,Or){return new go(go.buildMessage(k,Lr),k,Lr,Or)}function Wp(){var k,Lr;return k=O,yn()!==r&&(Lr=(function(){var Or,Fr,dr,It,Dt,Ln,Un,u;if(Or=O,(Fr=Vb())!==r){for(dr=[],It=O,(Dt=yn())!==r&&(Ln=kl())!==r&&(Un=yn())!==r&&(u=Vb())!==r?It=Dt=[Dt,Ln,Un,u]:(O=It,It=r);It!==r;)dr.push(It),It=O,(Dt=yn())!==r&&(Ln=kl())!==r&&(Un=yn())!==r&&(u=Vb())!==r?It=Dt=[Dt,Ln,Un,u]:(O=It,It=r);dr===r?(O=Or,Or=r):(ps=Or,Fr=(function(yt,Y){let Q=yt&&yt.ast||yt,Tr=Y&&Y.length&&Y[0].length>=4?[Q]:Q;for(let P=0;P<Y.length;P++)Y[P][3]&&Y[P][3].length!==0&&Tr.push(Y[P][3]&&Y[P][3].ast||Y[P][3]);return{tableList:Array.from(bu),columnList:Zt(Ht),ast:Tr}})(Fr,dr),Or=Fr)}else O=Or,Or=r;return Or})())!==r?(ps=k,k=Lr):(O=k,k=r),k}function cd(){var k;return(k=(function(){var Lr=O,Or,Fr,dr,It,Dt;(Or=Z0())!==r&&yn()!==r&&(Fr=Ci())!==r&&yn()!==r&&(dr=Ti())!==r?(ps=Lr,Ln=Or,Un=Fr,(u=dr)&&u.forEach(yt=>bu.add(`${Ln}::${yt.db}::${yt.table}`)),Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:Ln.toLowerCase(),keyword:Un.toLowerCase(),name:u}},Lr=Or):(O=Lr,Lr=r);var Ln,Un,u;return Lr===r&&(Lr=O,(Or=Z0())!==r&&yn()!==r&&(Fr=vi())!==r&&yn()!==r&&(dr=hl())!==r&&yn()!==r&&ib()!==r&&yn()!==r&&(It=p0())!==r&&yn()!==r?((Dt=(function(){var yt=O,Y,Q,Tr,P,hr;if((Y=op())===r&&(Y=Kb()),Y!==r){for(Q=[],Tr=O,(P=yn())===r?(O=Tr,Tr=r):((hr=op())===r&&(hr=Kb()),hr===r?(O=Tr,Tr=r):Tr=P=[P,hr]);Tr!==r;)Q.push(Tr),Tr=O,(P=yn())===r?(O=Tr,Tr=r):((hr=op())===r&&(hr=Kb()),hr===r?(O=Tr,Tr=r):Tr=P=[P,hr]);Q===r?(O=yt,yt=r):(ps=yt,Y=Dn(Y,Q),yt=Y)}else O=yt,yt=r;return yt})())===r&&(Dt=null),Dt!==r&&yn()!==r?(ps=Lr,Or=(function(yt,Y,Q,Tr,P){return{tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:yt.toLowerCase(),keyword:Y.toLowerCase(),name:Q,table:Tr,options:P}}})(Or,Fr,dr,It,Dt),Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r)),Lr})())===r&&(k=(function(){var Lr;return(Lr=(function(){var Or=O,Fr,dr,It,Dt,Ln,Un,u,yt,Y;(Fr=Ic())!==r&&yn()!==r?((dr=ab())===r&&(dr=null),dr!==r&&yn()!==r&&Ci()!==r&&yn()!==r?((It=pv())===r&&(It=null),It!==r&&yn()!==r&&(Dt=Ti())!==r&&yn()!==r&&(Ln=(function(){var e,Pr,Mr,kn,Yn,K,kt,Js,Ve;if(e=O,(Pr=ve())!==r)if(yn()!==r)if((Mr=Cf())!==r){for(kn=[],Yn=O,(K=yn())!==r&&(kt=Eu())!==r&&(Js=yn())!==r&&(Ve=Cf())!==r?Yn=K=[K,kt,Js,Ve]:(O=Yn,Yn=r);Yn!==r;)kn.push(Yn),Yn=O,(K=yn())!==r&&(kt=Eu())!==r&&(Js=yn())!==r&&(Ve=Cf())!==r?Yn=K=[K,kt,Js,Ve]:(O=Yn,Yn=r);kn!==r&&(Yn=yn())!==r&&(K=Jt())!==r?(ps=e,Pr=Ae(Mr,kn),e=Pr):(O=e,e=r)}else O=e,e=r;else O=e,e=r;else O=e,e=r;return e})())!==r&&yn()!==r?((Un=(function(){var e,Pr,Mr,kn,Yn,K,kt,Js;if(e=O,(Pr=wf())!==r){for(Mr=[],kn=O,(Yn=yn())===r?(O=kn,kn=r):((K=Eu())===r&&(K=null),K!==r&&(kt=yn())!==r&&(Js=wf())!==r?kn=Yn=[Yn,K,kt,Js]:(O=kn,kn=r));kn!==r;)Mr.push(kn),kn=O,(Yn=yn())===r?(O=kn,kn=r):((K=Eu())===r&&(K=null),K!==r&&(kt=yn())!==r&&(Js=wf())!==r?kn=Yn=[Yn,K,kt,Js]:(O=kn,kn=r));Mr===r?(O=e,e=r):(ps=e,Pr=ii(Pr,Mr),e=Pr)}else O=e,e=r;return e})())===r&&(Un=null),Un!==r&&yn()!==r?((u=(function(){var e=O,Pr,Mr,kn;return t.substr(O,6).toLowerCase()==="ignore"?(Pr=t.substr(O,6),O+=6):(Pr=r,on===0&&Rs(_n)),Pr===r?(O=e,e=r):(Mr=O,on++,kn=We(),on--,kn===r?Mr=void 0:(O=Mr,Mr=r),Mr===r?(O=e,e=r):e=Pr=[Pr,Mr]),e})())===r&&(u=ml()),u===r&&(u=null),u!==r&&yn()!==r?((yt=Tl())===r&&(yt=null),yt!==r&&yn()!==r?((Y=Ls())===r&&(Y=null),Y===r?(O=Or,Or=r):(ps=Or,Fr=(function(e,Pr,Mr,kn,Yn,K,kt,Js,Ve){return kn&&kn.forEach(co=>bu.add(`create::${co.db}::${co.table}`)),{tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:e[0].toLowerCase(),keyword:"table",temporary:Pr&&Pr[0].toLowerCase(),if_not_exists:Mr,table:kn,ignore_replace:kt&&kt[0].toLowerCase(),as:Js&&Js[0].toLowerCase(),query_expr:Ve&&Ve.ast,create_definitions:Yn,table_options:K}}})(Fr,dr,It,Dt,Ln,Un,u,yt,Y),Or=Fr)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r),Or===r&&(Or=O,(Fr=Ic())!==r&&yn()!==r?((dr=ab())===r&&(dr=null),dr!==r&&yn()!==r&&Ci()!==r&&yn()!==r?((It=pv())===r&&(It=null),It!==r&&yn()!==r&&(Dt=Ti())!==r&&yn()!==r&&(Ln=(function e(){var Pr,Mr;(Pr=(function(){var Yn=O,K;return n()!==r&&yn()!==r&&(K=Ti())!==r?(ps=Yn,Yn={type:"like",table:K}):(O=Yn,Yn=r),Yn})())===r&&(Pr=O,ve()!==r&&yn()!==r&&(Mr=e())!==r&&yn()!==r&&Jt()!==r?(ps=Pr,(kn=Mr).parentheses=!0,Pr=kn):(O=Pr,Pr=r));var kn;return Pr})())!==r?(ps=Or,Q=Fr,Tr=dr,P=It,ht=Ln,(hr=Dt)&&hr.forEach(e=>bu.add(`create::${e.db}::${e.table}`)),Fr={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:Q[0].toLowerCase(),keyword:"table",temporary:Tr&&Tr[0].toLowerCase(),if_not_exists:P,table:hr,like:ht}},Or=Fr):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r));var Q,Tr,P,hr,ht;return Or})())===r&&(Lr=(function(){var Or=O,Fr,dr,It,Dt,Ln;return(Fr=Ic())!==r&&yn()!==r?((dr=(function(){var Un=O,u,yt,Y;return t.substr(O,8).toLowerCase()==="database"?(u=t.substr(O,8),O+=8):(u=r,on===0&&Rs(Ro)),u===r?(O=Un,Un=r):(yt=O,on++,Y=We(),on--,Y===r?yt=void 0:(O=yt,yt=r),yt===r?(O=Un,Un=r):(ps=Un,Un=u="DATABASE")),Un})())===r&&(dr=(function(){var Un=O,u,yt,Y;return t.substr(O,6).toLowerCase()==="schema"?(u=t.substr(O,6),O+=6):(u=r,on===0&&Rs(So)),u===r?(O=Un,Un=r):(yt=O,on++,Y=We(),on--,Y===r?yt=void 0:(O=yt,yt=r),yt===r?(O=Un,Un=r):(ps=Un,Un=u="SCHEMA")),Un})()),dr!==r&&yn()!==r?((It=pv())===r&&(It=null),It!==r&&yn()!==r&&(Dt=Di())!==r&&yn()!==r?((Ln=(function(){var Un,u,yt,Y,Q,Tr;if(Un=O,(u=zb())!==r){for(yt=[],Y=O,(Q=yn())!==r&&(Tr=zb())!==r?Y=Q=[Q,Tr]:(O=Y,Y=r);Y!==r;)yt.push(Y),Y=O,(Q=yn())!==r&&(Tr=zb())!==r?Y=Q=[Q,Tr]:(O=Y,Y=r);yt===r?(O=Un,Un=r):(ps=Un,u=Dn(u,yt),Un=u)}else O=Un,Un=r;return Un})())===r&&(Ln=null),Ln===r?(O=Or,Or=r):(ps=Or,Fr=(function(Un,u,yt,Y,Q){let Tr=u.toLowerCase();return{tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:Un[0].toLowerCase(),keyword:Tr,if_not_exists:yt,[Tr]:{db:Y.schema,schema:Y.name},create_definitions:Q}}})(Fr,dr,It,Dt,Ln),Or=Fr)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r),Or})()),Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr;(Or=(function(){var Un=O,u,yt,Y;return t.substr(O,8).toLowerCase()==="truncate"?(u=t.substr(O,8),O+=8):(u=r,on===0&&Rs(Rb)),u===r?(O=Un,Un=r):(yt=O,on++,Y=We(),on--,Y===r?yt=void 0:(O=yt,yt=r),yt===r?(O=Un,Un=r):(ps=Un,Un=u="TRUNCATE")),Un})())!==r&&yn()!==r?((Fr=Ci())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=Ti())!==r?(ps=Lr,It=Or,Dt=Fr,(Ln=dr)&&Ln.forEach(Un=>bu.add(`${It}::${Un.db}::${Un.table}`)),Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:It.toLowerCase(),keyword:Dt&&Dt.toLowerCase()||"table",name:Ln}},Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r);var It,Dt,Ln;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr;(Or=Ul())!==r&&yn()!==r&&Ci()!==r&&yn()!==r&&(Fr=(function(){var It,Dt,Ln,Un,u,yt,Y,Q;if(It=O,(Dt=Ob())!==r){for(Ln=[],Un=O,(u=yn())!==r&&(yt=Eu())!==r&&(Y=yn())!==r&&(Q=Ob())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r);Un!==r;)Ln.push(Un),Un=O,(u=yn())!==r&&(yt=Eu())!==r&&(Y=yn())!==r&&(Q=Ob())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r);Ln===r?(O=It,It=r):(ps=It,Dt=Ae(Dt,Ln),It=Dt)}else O=It,It=r;return It})())!==r?(ps=Lr,(dr=Fr).forEach(It=>It.forEach(Dt=>Dt.table&&bu.add(`rename::${Dt.db}::${Dt.table}`))),Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"rename",table:dr}},Lr=Or):(O=Lr,Lr=r);var dr;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr;(Or=(function(){var It=O,Dt,Ln,Un;return t.substr(O,4).toLowerCase()==="call"?(Dt=t.substr(O,4),O+=4):(Dt=r,on===0&&Rs(Op)),Dt===r?(O=It,It=r):(Ln=O,on++,Un=We(),on--,Un===r?Ln=void 0:(O=Ln,Ln=r),Ln===r?(O=It,It=r):(ps=It,It=Dt="CALL")),It})())!==r&&yn()!==r&&(Fr=Ya())!==r?(ps=Lr,dr=Fr,Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"call",expr:dr}},Lr=Or):(O=Lr,Lr=r);var dr;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr;(Or=(function(){var It=O,Dt,Ln,Un;return t.substr(O,3).toLowerCase()==="use"?(Dt=t.substr(O,3),O+=3):(Dt=r,on===0&&Rs(a0)),Dt===r?(O=It,It=r):(Ln=O,on++,Un=We(),on--,Un===r?Ln=void 0:(O=Ln,Ln=r),Ln===r?(O=It,It=r):It=Dt=[Dt,Ln]),It})())!==r&&yn()!==r&&(Fr=Bn())!==r?(ps=Lr,dr=Fr,bu.add(`use::${dr}::null`),Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"use",db:dr}},Lr=Or):(O=Lr,Lr=r);var dr;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr;(Or=(function(){var Ln=O,Un,u,yt;return t.substr(O,5).toLowerCase()==="alter"?(Un=t.substr(O,5),O+=5):(Un=r,on===0&&Rs(_l)),Un===r?(O=Ln,Ln=r):(u=O,on++,yt=We(),on--,yt===r?u=void 0:(O=u,u=r),u===r?(O=Ln,Ln=r):Ln=Un=[Un,u]),Ln})())!==r&&yn()!==r&&Ci()!==r&&yn()!==r&&(Fr=Ti())!==r&&yn()!==r&&(dr=(function(){var Ln,Un,u,yt,Y,Q,Tr,P;if(Ln=O,(Un=ic())!==r){for(u=[],yt=O,(Y=yn())!==r&&(Q=Eu())!==r&&(Tr=yn())!==r&&(P=ic())!==r?yt=Y=[Y,Q,Tr,P]:(O=yt,yt=r);yt!==r;)u.push(yt),yt=O,(Y=yn())!==r&&(Q=Eu())!==r&&(Tr=yn())!==r&&(P=ic())!==r?yt=Y=[Y,Q,Tr,P]:(O=yt,yt=r);u===r?(O=Ln,Ln=r):(ps=Ln,Un=Ae(Un,u),Ln=Un)}else O=Ln,Ln=r;return Ln})())!==r?(ps=Lr,Dt=dr,(It=Fr)&&It.length>0&&It.forEach(Ln=>bu.add(`alter::${Ln.db}::${Ln.table}`)),Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"alter",table:It,expr:Dt}},Lr=Or):(O=Lr,Lr=r);var It,Dt;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr;(Or=If())!==r&&yn()!==r?((Fr=(function(){var Ln=O,Un,u,yt;return t.substr(O,6).toLowerCase()==="global"?(Un=t.substr(O,6),O+=6):(Un=r,on===0&&Rs(Pp)),Un===r?(O=Ln,Ln=r):(u=O,on++,yt=We(),on--,yt===r?u=void 0:(O=u,u=r),u===r?(O=Ln,Ln=r):(ps=Ln,Ln=Un="GLOBAL")),Ln})())===r&&(Fr=(function(){var Ln=O,Un,u,yt;return t.substr(O,7).toLowerCase()==="session"?(Un=t.substr(O,7),O+=7):(Un=r,on===0&&Rs(Pv)),Un===r?(O=Ln,Ln=r):(u=O,on++,yt=We(),on--,yt===r?u=void 0:(O=u,u=r),u===r?(O=Ln,Ln=r):(ps=Ln,Ln=Un="SESSION")),Ln})())===r&&(Fr=(function(){var Ln=O,Un,u,yt;return t.substr(O,5).toLowerCase()==="local"?(Un=t.substr(O,5),O+=5):(Un=r,on===0&&Rs(Cl)),Un===r?(O=Ln,Ln=r):(u=O,on++,yt=We(),on--,yt===r?u=void 0:(O=u,u=r),u===r?(O=Ln,Ln=r):(ps=Ln,Ln=Un="LOCAL")),Ln})())===r&&(Fr=(function(){var Ln=O,Un,u,yt;return t.substr(O,7).toLowerCase()==="persist"?(Un=t.substr(O,7),O+=7):(Un=r,on===0&&Rs(Gp)),Un===r?(O=Ln,Ln=r):(u=O,on++,yt=We(),on--,yt===r?u=void 0:(O=u,u=r),u===r?(O=Ln,Ln=r):(ps=Ln,Ln=Un="PERSIST")),Ln})())===r&&(Fr=(function(){var Ln=O,Un,u,yt;return t.substr(O,12).toLowerCase()==="persist_only"?(Un=t.substr(O,12),O+=12):(Un=r,on===0&&Rs(Fp)),Un===r?(O=Ln,Ln=r):(u=O,on++,yt=We(),on--,yt===r?u=void 0:(O=u,u=r),u===r?(O=Ln,Ln=r):(ps=Ln,Ln=Un="PERSIST_ONLY")),Ln})()),Fr===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=(function(){var Ln,Un,u,yt,Y,Q,Tr,P;if(Ln=O,(Un=Mi())!==r){for(u=[],yt=O,(Y=yn())!==r&&(Q=Eu())!==r&&(Tr=yn())!==r&&(P=Mi())!==r?yt=Y=[Y,Q,Tr,P]:(O=yt,yt=r);yt!==r;)u.push(yt),yt=O,(Y=yn())!==r&&(Q=Eu())!==r&&(Tr=yn())!==r&&(P=Mi())!==r?yt=Y=[Y,Q,Tr,P]:(O=yt,yt=r);u===r?(O=Ln,Ln=r):(ps=Ln,Un=zn(Un,u),Ln=Un)}else O=Ln,Ln=r;return Ln})())!==r?(ps=Lr,It=Fr,(Dt=dr).keyword=It,Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"set",keyword:It,expr:Dt}},Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r);var It,Dt;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr;(Or=(function(){var It=O,Dt,Ln,Un;return t.substr(O,4).toLowerCase()==="lock"?(Dt=t.substr(O,4),O+=4):(Dt=r,on===0&&Rs(I0)),Dt===r?(O=It,It=r):(Ln=O,on++,Un=We(),on--,Un===r?Ln=void 0:(O=Ln,Ln=r),Ln===r?(O=It,It=r):It=Dt=[Dt,Ln]),It})())!==r&&yn()!==r&&Q0()!==r&&yn()!==r&&(Fr=(function(){var It,Dt,Ln,Un,u,yt,Y,Q;if(It=O,(Dt=qv())!==r){for(Ln=[],Un=O,(u=yn())!==r&&(yt=Eu())!==r&&(Y=yn())!==r&&(Q=qv())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r);Un!==r;)Ln.push(Un),Un=O,(u=yn())!==r&&(yt=Eu())!==r&&(Y=yn())!==r&&(Q=qv())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r);Ln===r?(O=It,It=r):(ps=It,Dt=zn(Dt,Ln),It=Dt)}else O=It,It=r;return It})())!==r?(ps=Lr,dr=Fr,Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"lock",keyword:"tables",tables:dr}},Lr=Or):(O=Lr,Lr=r);var dr;return Lr})())===r&&(k=(function(){var Lr=O,Or;return(Or=(function(){var Fr=O,dr,It,Dt;return t.substr(O,6).toLowerCase()==="unlock"?(dr=t.substr(O,6),O+=6):(dr=r,on===0&&Rs(Te)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):Fr=dr=[dr,It]),Fr})())!==r&&yn()!==r&&Q0()!==r?(ps=Lr,Or={tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"unlock",keyword:"tables"}},Lr=Or):(O=Lr,Lr=r),Lr})()),k}function Vb(){var k;return(k=Ls())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It;return(Or=lc())!==r&&yn()!==r&&(Fr=Ti())!==r&&yn()!==r&&If()!==r&&yn()!==r&&(dr=(function(){var Dt,Ln,Un,u,yt,Y,Q,Tr;if(Dt=O,(Ln=ol())!==r){for(Un=[],u=O,(yt=yn())!==r&&(Y=Eu())!==r&&(Q=yn())!==r&&(Tr=ol())!==r?u=yt=[yt,Y,Q,Tr]:(O=u,u=r);u!==r;)Un.push(u),u=O,(yt=yn())!==r&&(Y=Eu())!==r&&(Q=yn())!==r&&(Tr=ol())!==r?u=yt=[yt,Y,Q,Tr]:(O=u,u=r);Un===r?(O=Dt,Dt=r):(ps=Dt,Ln=Ae(Ln,Un),Dt=Ln)}else O=Dt,Dt=r;return Dt})())!==r&&yn()!==r?((It=Zb())===r&&(It=null),It===r?(O=Lr,Lr=r):(ps=Lr,Or=(function(Dt,Ln,Un){let u={};return Dt&&Dt.forEach(yt=>{let{db:Y,as:Q,table:Tr,join:P}=yt,hr=P?"select":"update";Y&&(u[Tr]=Y),Tr&&bu.add(`${hr}::${Y}::${Tr}`)}),Ln&&Ln.forEach(yt=>{if(yt.table){let Y=o(yt.table);bu.add(`update::${u[Y]||null}::${Y}`)}Ht.add(`update::${yt.table}::${yt.column}`)}),{tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"update",table:Dt,set:Ln,where:Un}}})(Fr,dr,It),Lr=Or)):(O=Lr,Lr=r),Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It,Dt,Ln,Un;return(Or=p())!==r&&yn()!==r&&(Fr=Tf())!==r&&yn()!==r?((dr=Ci())===r&&(dr=null),dr!==r&&yn()!==r&&(It=p0())!==r?((Dt=eb())===r&&(Dt=null),Dt!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Ln=(function(){var u,yt,Y,Q,Tr,P,hr,ht;if(u=O,(yt=wa())!==r){for(Y=[],Q=O,(Tr=yn())!==r&&(P=Eu())!==r&&(hr=yn())!==r&&(ht=wa())!==r?Q=Tr=[Tr,P,hr,ht]:(O=Q,Q=r);Q!==r;)Y.push(Q),Q=O,(Tr=yn())!==r&&(P=Eu())!==r&&(hr=yn())!==r&&(ht=wa())!==r?Q=Tr=[Tr,P,hr,ht]:(O=Q,Q=r);Y===r?(O=u,u=r):(ps=u,yt=Ae(yt,Y),u=yt)}else O=u,u=r;return u})())!==r&&yn()!==r&&Jt()!==r&&yn()!==r&&(Un=sb())!==r?(ps=Lr,Or=(function(u,yt,Y,Q,Tr,P,hr){if(Q&&(bu.add(`insert::${Q.db}::${Q.table}`),Q.as=null),P){let e=Q&&Q.table||null;Array.isArray(hr.values)&&hr.values.forEach((Pr,Mr)=>{if(Pr.value.length!=P.length)throw Error("Error: column count doesn't match value count at row "+(Mr+1))}),P.forEach(Pr=>Ht.add(`insert::${e}::${Pr}`))}let ht=Y?" "+Y.toLowerCase():"";return{tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:u,prefix:`${yt.toLowerCase()}${ht}`,table:[Q],columns:P,values:hr,partition:Tr}}})(Or,Fr,dr,It,Dt,Ln,Un),Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r)):(O=Lr,Lr=r),Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It,Dt,Ln;return(Or=p())!==r&&yn()!==r?((Fr=Tf())===r&&(Fr=(function(){var Un=O,u,yt,Y;return t.substr(O,9).toLowerCase()==="overwrite"?(u=t.substr(O,9),O+=9):(u=r,on===0&&Rs(gs)),u===r?(O=Un,Un=r):(yt=O,on++,Y=We(),on--,Y===r?yt=void 0:(O=yt,yt=r),yt===r?(O=Un,Un=r):(ps=Un,Un=u="OVERWRITE")),Un})()),Fr!==r&&yn()!==r?((dr=Ci())===r&&(dr=null),dr!==r&&yn()!==r&&(It=p0())!==r&&yn()!==r?((Dt=eb())===r&&(Dt=null),Dt!==r&&yn()!==r&&(Ln=sb())!==r?(ps=Lr,Or=(function(Un,u,yt,Y,Q,Tr){Y&&(bu.add(`insert::${Y.db}::${Y.table}`),Ht.add(`insert::${Y.table}::(.*)`),Y.as=null);let P=yt?" "+yt.toLowerCase():"";return{tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:Un,prefix:`${u.toLowerCase()}${P}`,table:[Y],columns:null,values:Tr,partition:Q}}})(Or,Fr,dr,It,Dt,Ln),Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r)):(O=Lr,Lr=r)):(O=Lr,Lr=r),Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It;return(Or=J0())!==r&&yn()!==r?((Fr=Ti())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=ja())!==r&&yn()!==r?((It=Zb())===r&&(It=null),It===r?(O=Lr,Lr=r):(ps=Lr,Or=(function(Dt,Ln,Un){if(Ln&&Ln.forEach(u=>{let{db:yt,as:Y,table:Q,join:Tr}=u,P=Tr?"select":"delete";Q&&bu.add(`${P}::${yt}::${Q}`),Tr||Ht.add(`delete::${Q}::(.*)`)}),Dt===null&&Ln.length===1){let u=Ln[0];Dt=[{db:u.db,table:u.table,as:u.as,addition:!0}]}return{tableList:Array.from(bu),columnList:Zt(Ht),ast:{type:"delete",table:Dt,from:Ln,where:Un}}})(Fr,dr,It),Lr=Or)):(O=Lr,Lr=r)):(O=Lr,Lr=r),Lr})())===r&&(k=cd())===r&&(k=(function(){for(var Lr=[],Or=lb();Or!==r;)Lr.push(Or),Or=lb();return Lr})()),k}function _(){var k,Lr,Or;return k=O,(function(){var Fr=O,dr,It,Dt;return t.substr(O,5).toLowerCase()==="union"?(dr=t.substr(O,5),O+=5):(dr=r,on===0&&Rs(Sa)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):Fr=dr=[dr,It]),Fr})()!==r&&yn()!==r?((Lr=gf())===r&&(Lr=Zl()),Lr===r&&(Lr=null),Lr===r?(O=k,k=r):(ps=k,k=(Or=Lr)?"union "+Or.toLowerCase():"union")):(O=k,k=r),k}function Ls(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=Cv())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=_())!==r&&(Dt=yn())!==r&&(Ln=Cv())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=_())!==r&&(Dt=yn())!==r&&(Ln=Cv())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or!==r&&(Fr=yn())!==r?((dr=Xl())===r&&(dr=null),dr!==r&&(It=yn())!==r?((Dt=Us())===r&&(Dt=null),Dt===r?(O=k,k=r):(ps=k,k=Lr=(function(Un,u,yt,Y){u.forEach(Tr=>Tr.slice(1,1));let Q=Un;for(let Tr=0;Tr<u.length;Tr++)Q._next=u[Tr][3],Q.set_op=u[Tr][1],Q=Q._next;return yt&&(Un._orderby=yt),Y&&(Un._limit=Y),{tableList:Array.from(bu),columnList:Zt(Ht),ast:Un}})(Lr,Or,dr,Dt))):(O=k,k=r)):(O=k,k=r)}else O=k,k=r;return k}function pv(){var k,Lr;return k=O,t.substr(O,2).toLowerCase()==="if"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(Pn)),Lr!==r&&yn()!==r&&xa()!==r&&yn()!==r&&gi()!==r?(ps=k,k=Lr="IF NOT EXISTS"):(O=k,k=r),k}function Cf(){var k;return(k=Qt())===r&&(k=ys())===r&&(k=_p())===r&&(k=(function(){var Lr;return(Lr=(function(){var Or=O,Fr,dr,It,Dt,Ln;(Fr=Yv())===r&&(Fr=null),Fr!==r&&yn()!==r?(t.substr(O,11).toLowerCase()==="primary key"?(dr=t.substr(O,11),O+=11):(dr=r,on===0&&Rs(Uc)),dr!==r&&yn()!==r?((It=jf())===r&&(It=null),It!==r&&yn()!==r&&(Dt=tb())!==r&&yn()!==r?((Ln=is())===r&&(Ln=null),Ln===r?(O=Or,Or=r):(ps=Or,u=dr,yt=It,Y=Dt,Q=Ln,Fr={constraint:(Un=Fr)&&Un.constraint,definition:Y,constraint_type:u.toLowerCase(),keyword:Un&&Un.keyword,index_type:yt,resource:"constraint",index_options:Q},Or=Fr)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r);var Un,u,yt,Y,Q;return Or})())===r&&(Lr=(function(){var Or=O,Fr,dr,It,Dt,Ln,Un,u;(Fr=Yv())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=(function(){var e=O,Pr,Mr,kn;return t.substr(O,6).toLowerCase()==="unique"?(Pr=t.substr(O,6),O+=6):(Pr=r,on===0&&Rs(Hs)),Pr===r?(O=e,e=r):(Mr=O,on++,kn=We(),on--,kn===r?Mr=void 0:(O=Mr,Mr=r),Mr===r?(O=e,e=r):(ps=e,e=Pr="UNIQUE")),e})())!==r&&yn()!==r?((It=vi())===r&&(It=Va()),It===r&&(It=null),It!==r&&yn()!==r?((Dt=wa())===r&&(Dt=null),Dt!==r&&yn()!==r?((Ln=jf())===r&&(Ln=null),Ln!==r&&yn()!==r&&(Un=tb())!==r&&yn()!==r?((u=is())===r&&(u=null),u===r?(O=Or,Or=r):(ps=Or,Y=dr,Q=It,Tr=Dt,P=Ln,hr=Un,ht=u,Fr={constraint:(yt=Fr)&&yt.constraint,definition:hr,constraint_type:Q&&`${Y.toLowerCase()} ${Q.toLowerCase()}`||Y.toLowerCase(),keyword:yt&&yt.keyword,index_type:P,index:Tr,resource:"constraint",index_options:ht},Or=Fr)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r);var yt,Y,Q,Tr,P,hr,ht;return Or})())===r&&(Lr=(function(){var Or=O,Fr,dr,It,Dt,Ln;(Fr=Yv())===r&&(Fr=null),Fr!==r&&yn()!==r?(t.substr(O,11).toLowerCase()==="foreign key"?(dr=t.substr(O,11),O+=11):(dr=r,on===0&&Rs(wc)),dr!==r&&yn()!==r?((It=wa())===r&&(It=null),It!==r&&yn()!==r&&(Dt=tb())!==r&&yn()!==r?((Ln=Lv())===r&&(Ln=null),Ln===r?(O=Or,Or=r):(ps=Or,u=dr,yt=It,Y=Dt,Q=Ln,Fr={constraint:(Un=Fr)&&Un.constraint,definition:Y,constraint_type:u,keyword:Un&&Un.keyword,index:yt,resource:"constraint",reference_definition:Q},Or=Fr)):(O=Or,Or=r)):(O=Or,Or=r)):(O=Or,Or=r);var Un,u,yt,Y,Q;return Or})()),Lr})()),k}function dv(){var k,Lr,Or,Fr;return k=O,(Lr=(function(){var dr=O,It;return(It=(function(){var Dt=O,Ln,Un,u;return t.substr(O,8).toLowerCase()==="not null"?(Ln=t.substr(O,8),O+=8):(Ln=r,on===0&&Rs(Jf)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):Dt=Ln=[Ln,Un]),Dt})())!==r&&(ps=dr,It={type:"not null",value:"not null"}),dr=It})())===r&&(Lr=ul()),Lr!==r&&(ps=k,(Fr=Lr)&&!Fr.value&&(Fr.value="null"),Lr={nullable:Fr}),(k=Lr)===r&&(k=O,(Lr=(function(){var dr=O,It;return bi()!==r&&yn()!==r&&(It=Ta())!==r?(ps=dr,dr={type:"default",value:It}):(O=dr,dr=r),dr})())!==r&&(ps=k,Lr={default_val:Lr}),(k=Lr)===r&&(k=O,t.substr(O,14).toLowerCase()==="auto_increment"?(Lr=t.substr(O,14),O+=14):(Lr=r,on===0&&Rs(ou)),Lr!==r&&(ps=k,Lr={auto_increment:Lr.toLowerCase()}),(k=Lr)===r&&(k=O,t.substr(O,6).toLowerCase()==="unique"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(Hs)),Lr!==r&&yn()!==r?(t.substr(O,3).toLowerCase()==="key"?(Or=t.substr(O,3),O+=3):(Or=r,on===0&&Rs(Uo)),Or===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr=(function(dr){let It=["unique"];return dr&&It.push(dr),{unique:It.join(" ").toLowerCase("")}})(Or))):(O=k,k=r),k===r&&(k=O,t.substr(O,7).toLowerCase()==="primary"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(Ps)),Lr===r&&(Lr=null),Lr!==r&&yn()!==r?(t.substr(O,3).toLowerCase()==="key"?(Or=t.substr(O,3),O+=3):(Or=r,on===0&&Rs(Uo)),Or===r?(O=k,k=r):(ps=k,k=Lr=(function(dr){let It=[];return dr&&It.push("primary"),It.push("key"),{primary_key:It.join(" ").toLowerCase("")}})(Lr))):(O=k,k=r),k===r&&(k=O,(Lr=Ou())!==r&&(ps=k,Lr={comment:Lr}),(k=Lr)===r&&(k=O,(Lr=Xs())!==r&&(ps=k,Lr={collate:Lr}),(k=Lr)===r&&(k=O,(Lr=(function(){var dr=O,It,Dt;return t.substr(O,13).toLowerCase()==="column_format"?(It=t.substr(O,13),O+=13):(It=r,on===0&&Rs(pe)),It!==r&&yn()!==r?(t.substr(O,5).toLowerCase()==="fixed"?(Dt=t.substr(O,5),O+=5):(Dt=r,on===0&&Rs(_o)),Dt===r&&(t.substr(O,7).toLowerCase()==="dynamic"?(Dt=t.substr(O,7),O+=7):(Dt=r,on===0&&Rs(Gi)),Dt===r&&(t.substr(O,7).toLowerCase()==="default"?(Dt=t.substr(O,7),O+=7):(Dt=r,on===0&&Rs(mi)))),Dt===r?(O=dr,dr=r):(ps=dr,It={type:"column_format",value:Dt.toLowerCase()},dr=It)):(O=dr,dr=r),dr})())!==r&&(ps=k,Lr={column_format:Lr}),(k=Lr)===r&&(k=O,(Lr=(function(){var dr=O,It,Dt;return t.substr(O,7).toLowerCase()==="storage"?(It=t.substr(O,7),O+=7):(It=r,on===0&&Rs(Fi)),It!==r&&yn()!==r?(t.substr(O,4).toLowerCase()==="disk"?(Dt=t.substr(O,4),O+=4):(Dt=r,on===0&&Rs(T0)),Dt===r&&(t.substr(O,6).toLowerCase()==="memory"?(Dt=t.substr(O,6),O+=6):(Dt=r,on===0&&Rs(dl))),Dt===r?(O=dr,dr=r):(ps=dr,It={type:"storage",value:Dt.toLowerCase()},dr=It)):(O=dr,dr=r),dr})())!==r&&(ps=k,Lr={storage:Lr}),(k=Lr)===r&&(k=O,(Lr=Lv())!==r&&(ps=k,Lr={reference_definition:Lr}),k=Lr))))))))),k}function Qt(){var k,Lr,Or,Fr;return k=O,(Lr=hl())!==r&&yn()!==r&&(Or=ai())!==r&&yn()!==r?((Fr=(function(){var dr,It,Dt,Ln,Un,u;if(dr=O,(It=dv())!==r)if(yn()!==r){for(Dt=[],Ln=O,(Un=yn())!==r&&(u=dv())!==r?Ln=Un=[Un,u]:(O=Ln,Ln=r);Ln!==r;)Dt.push(Ln),Ln=O,(Un=yn())!==r&&(u=dv())!==r?Ln=Un=[Un,u]:(O=Ln,Ln=r);Dt===r?(O=dr,dr=r):(ps=dr,dr=It=(function(yt,Y){let Q=yt;for(let Tr=0;Tr<Y.length;Tr++)Q={...Q,...Y[Tr][1]};return Q})(It,Dt))}else O=dr,dr=r;else O=dr,dr=r;return dr})())===r&&(Fr=null),Fr===r?(O=k,k=r):(ps=k,k=Lr=(function(dr,It,Dt){return Ht.add(`create::${dr.table}::${dr.column}`),{column:dr,definition:It,resource:"column",...Dt||{}}})(Lr,Or,Fr))):(O=k,k=r),k}function Xs(){var k,Lr,Or;return k=O,(function(){var Fr=O,dr,It,Dt;return t.substr(O,7).toLowerCase()==="collate"?(dr=t.substr(O,7),O+=7):(dr=r,on===0&&Rs(gl)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="COLLATE")),Fr})()!==r&&yn()!==r?((Lr=l())===r&&(Lr=null),Lr!==r&&yn()!==r&&(Or=Bn())!==r?(ps=k,k={type:"collate",keyword:"collate",collate:{name:Or,symbol:Lr}}):(O=k,k=r)):(O=k,k=r),k}function ic(){var k;return(k=(function(){var Lr=O,Or,Fr,dr;(Or=dn())!==r&&yn()!==r?((Fr=Ql())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=Qt())!==r?(ps=Lr,It=Fr,Dt=dr,Or={action:"add",...Dt,keyword:It,resource:"column",type:"alter"},Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r);var It,Dt;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr;return(Or=Z0())!==r&&yn()!==r?((Fr=Ql())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=hl())!==r?(ps=Lr,Or=(function(It,Dt){return{action:"drop",column:Dt,keyword:It,resource:"column",type:"alter"}})(Fr,dr),Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r),Lr})())===r&&(k=(function(){var Lr=O,Or,Fr;(Or=dn())!==r&&yn()!==r&&(Fr=ys())!==r?(ps=Lr,dr=Fr,Or={action:"add",type:"alter",...dr},Lr=Or):(O=Lr,Lr=r);var dr;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr;(Or=dn())!==r&&yn()!==r&&(Fr=_p())!==r?(ps=Lr,dr=Fr,Or={action:"add",type:"alter",...dr},Lr=Or):(O=Lr,Lr=r);var dr;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr;(Or=Ul())!==r&&yn()!==r?((Fr=Yc())===r&&(Fr=Tl()),Fr===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=Bn())!==r?(ps=Lr,Dt=dr,Or={action:"rename",type:"alter",resource:"table",keyword:(It=Fr)&&It[0].toLowerCase(),table:Dt},Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r);var It,Dt;return Lr})())===r&&(k=op())===r&&(k=Kb()),k}function op(){var k,Lr,Or,Fr;return k=O,t.substr(O,9).toLowerCase()==="algorithm"?(Lr=t.substr(O,9),O+=9):(Lr=r,on===0&&Rs(Gl)),Lr!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r?(t.substr(O,7).toLowerCase()==="default"?(Fr=t.substr(O,7),O+=7):(Fr=r,on===0&&Rs(mi)),Fr===r&&(t.substr(O,7).toLowerCase()==="instant"?(Fr=t.substr(O,7),O+=7):(Fr=r,on===0&&Rs(Fl)),Fr===r&&(t.substr(O,7).toLowerCase()==="inplace"?(Fr=t.substr(O,7),O+=7):(Fr=r,on===0&&Rs(nc)),Fr===r&&(t.substr(O,4).toLowerCase()==="copy"?(Fr=t.substr(O,4),O+=4):(Fr=r,on===0&&Rs(xc))))),Fr===r?(O=k,k=r):(ps=k,k=Lr={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:Or,algorithm:Fr})):(O=k,k=r)):(O=k,k=r),k}function Kb(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="lock"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(I0)),Lr!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r?(t.substr(O,7).toLowerCase()==="default"?(Fr=t.substr(O,7),O+=7):(Fr=r,on===0&&Rs(mi)),Fr===r&&(t.substr(O,4).toLowerCase()==="none"?(Fr=t.substr(O,4),O+=4):(Fr=r,on===0&&Rs(ji)),Fr===r&&(t.substr(O,6).toLowerCase()==="shared"?(Fr=t.substr(O,6),O+=6):(Fr=r,on===0&&Rs(af)),Fr===r&&(t.substr(O,9).toLowerCase()==="exclusive"?(Fr=t.substr(O,9),O+=9):(Fr=r,on===0&&Rs(qf))))),Fr===r?(O=k,k=r):(ps=k,k=Lr={type:"alter",keyword:"lock",resource:"lock",symbol:Or,lock:Fr})):(O=k,k=r)):(O=k,k=r),k}function ys(){var k,Lr,Or,Fr,dr,It;return k=O,(Lr=vi())===r&&(Lr=Va()),Lr!==r&&yn()!==r?((Or=wa())===r&&(Or=null),Or!==r&&yn()!==r?((Fr=jf())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=tb())!==r&&yn()!==r?((It=is())===r&&(It=null),It!==r&&yn()!==r?(ps=k,k=Lr=(function(Dt,Ln,Un,u,yt){return{index:Ln,definition:u,keyword:Dt.toLowerCase(),index_type:Un,resource:"index",index_options:yt}})(Lr,Or,Fr,dr,It)):(O=k,k=r)):(O=k,k=r)):(O=k,k=r)):(O=k,k=r),k}function _p(){var k,Lr,Or,Fr,dr,It;return k=O,(Lr=(function(){var Dt=O,Ln,Un,u;return t.substr(O,8).toLowerCase()==="fulltext"?(Ln=t.substr(O,8),O+=8):(Ln=r,on===0&&Rs(Sl)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="FULLTEXT")),Dt})())===r&&(Lr=(function(){var Dt=O,Ln,Un,u;return t.substr(O,7).toLowerCase()==="spatial"?(Ln=t.substr(O,7),O+=7):(Ln=r,on===0&&Rs(Ol)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="SPATIAL")),Dt})()),Lr!==r&&yn()!==r?((Or=vi())===r&&(Or=Va()),Or===r&&(Or=null),Or!==r&&yn()!==r?((Fr=wa())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=tb())!==r&&yn()!==r?((It=is())===r&&(It=null),It!==r&&yn()!==r?(ps=k,k=Lr=(function(Dt,Ln,Un,u,yt){return{index:Un,definition:u,keyword:Ln&&`${Dt.toLowerCase()} ${Ln.toLowerCase()}`||Dt.toLowerCase(),index_options:yt,resource:"index"}})(Lr,Or,Fr,dr,It)):(O=k,k=r)):(O=k,k=r)):(O=k,k=r)):(O=k,k=r),k}function Yv(){var k,Lr,Or;return k=O,(Lr=(function(){var Fr=O,dr,It,Dt;return t.substr(O,10).toLowerCase()==="constraint"?(dr=t.substr(O,10),O+=10):(dr=r,on===0&&Rs(bv)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="CONSTRAINT")),Fr})())!==r&&yn()!==r?((Or=Bn())===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Fr,dr){return{keyword:Fr.toLowerCase(),constraint:dr}})(Lr,Or))):(O=k,k=r),k}function Lv(){var k,Lr,Or,Fr,dr,It,Dt,Ln,Un,u;return k=O,(Lr=(function(){var yt=O,Y,Q,Tr;return t.substr(O,10).toLowerCase()==="references"?(Y=t.substr(O,10),O+=10):(Y=r,on===0&&Rs(ql)),Y===r?(O=yt,yt=r):(Q=O,on++,Tr=We(),on--,Tr===r?Q=void 0:(O=Q,Q=r),Q===r?(O=yt,yt=r):(ps=yt,yt=Y="REFERENCES")),yt})())!==r&&yn()!==r&&(Or=Ti())!==r&&yn()!==r&&(Fr=tb())!==r&&yn()!==r?(t.substr(O,10).toLowerCase()==="match full"?(dr=t.substr(O,10),O+=10):(dr=r,on===0&&Rs(Ll)),dr===r&&(t.substr(O,13).toLowerCase()==="match partial"?(dr=t.substr(O,13),O+=13):(dr=r,on===0&&Rs(jl)),dr===r&&(t.substr(O,12).toLowerCase()==="match simple"?(dr=t.substr(O,12),O+=12):(dr=r,on===0&&Rs(Oi)))),dr===r&&(dr=null),dr!==r&&yn()!==r?((It=Wv())===r&&(It=null),It!==r&&yn()!==r?((Dt=Wv())===r&&(Dt=null),Dt===r?(O=k,k=r):(ps=k,Ln=dr,Un=It,u=Dt,k=Lr={definition:Fr,table:Or,keyword:Lr.toLowerCase(),match:Ln&&Ln.toLowerCase(),on_action:[Un,u].filter(yt=>yt)})):(O=k,k=r)):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,(Lr=Wv())!==r&&(ps=k,Lr={on_action:[Lr]}),k=Lr),k}function Wv(){var k,Lr,Or,Fr;return k=O,ib()!==r&&yn()!==r?((Lr=J0())===r&&(Lr=lc()),Lr!==r&&yn()!==r&&(Or=(function(){var dr=O,It,Dt;return(It=Qi())!==r&&yn()!==r&&ve()!==r&&yn()!==r?((Dt=Vl())===r&&(Dt=null),Dt!==r&&yn()!==r&&Jt()!==r?(ps=dr,dr=It={type:"function",name:{name:[{type:"origin",value:It}]},args:Dt}):(O=dr,dr=r)):(O=dr,dr=r),dr===r&&(dr=O,t.substr(O,8).toLowerCase()==="restrict"?(It=t.substr(O,8),O+=8):(It=r,on===0&&Rs(bb)),It===r&&(t.substr(O,7).toLowerCase()==="cascade"?(It=t.substr(O,7),O+=7):(It=r,on===0&&Rs(Vi)),It===r&&(t.substr(O,8).toLowerCase()==="set null"?(It=t.substr(O,8),O+=8):(It=r,on===0&&Rs(zc)),It===r&&(t.substr(O,9).toLowerCase()==="no action"?(It=t.substr(O,9),O+=9):(It=r,on===0&&Rs(kc)),It===r&&(t.substr(O,11).toLowerCase()==="set default"?(It=t.substr(O,11),O+=11):(It=r,on===0&&Rs(vb)),It===r&&(It=Qi()))))),It!==r&&(ps=dr,It={type:"origin",value:It.toLowerCase()}),dr=It),dr})())!==r?(ps=k,Fr=Or,k={type:"on "+Lr[0].toLowerCase(),value:Fr}):(O=k,k=r)):(O=k,k=r),k}function zb(){var k,Lr,Or,Fr,dr,It,Dt,Ln,Un;return k=O,(Lr=bi())===r&&(Lr=null),Lr!==r&&yn()!==r?((Or=(function(){var u,yt,Y;return u=O,t.substr(O,9).toLowerCase()==="character"?(yt=t.substr(O,9),O+=9):(yt=r,on===0&&Rs(Zc)),yt!==r&&yn()!==r?(t.substr(O,3).toLowerCase()==="set"?(Y=t.substr(O,3),O+=3):(Y=r,on===0&&Rs(nl)),Y===r?(O=u,u=r):(ps=u,u=yt="CHARACTER SET")):(O=u,u=r),u})())===r&&(t.substr(O,7).toLowerCase()==="charset"?(Or=t.substr(O,7),O+=7):(Or=r,on===0&&Rs(Xf)),Or===r&&(t.substr(O,7).toLowerCase()==="collate"?(Or=t.substr(O,7),O+=7):(Or=r,on===0&&Rs(gl)))),Or!==r&&yn()!==r?((Fr=l())===r&&(Fr=null),Fr!==r&&yn()!==r&&(dr=L0())!==r?(ps=k,Dt=Or,Ln=Fr,Un=dr,k=Lr={keyword:(It=Lr)&&`${It[0].toLowerCase()} ${Dt.toLowerCase()}`||Dt.toLowerCase(),symbol:Ln,value:Un}):(O=k,k=r)):(O=k,k=r)):(O=k,k=r),k}function wf(){var k,Lr,Or,Fr,dr,It,Dt,Ln,Un;return k=O,t.substr(O,14).toLowerCase()==="auto_increment"?(Lr=t.substr(O,14),O+=14):(Lr=r,on===0&&Rs(ou)),Lr===r&&(t.substr(O,14).toLowerCase()==="avg_row_length"?(Lr=t.substr(O,14),O+=14):(Lr=r,on===0&&Rs(lf)),Lr===r&&(t.substr(O,14).toLowerCase()==="key_block_size"?(Lr=t.substr(O,14),O+=14):(Lr=r,on===0&&Rs(Jc)),Lr===r&&(t.substr(O,8).toLowerCase()==="max_rows"?(Lr=t.substr(O,8),O+=8):(Lr=r,on===0&&Rs(Qc)),Lr===r&&(t.substr(O,8).toLowerCase()==="min_rows"?(Lr=t.substr(O,8),O+=8):(Lr=r,on===0&&Rs(gv)),Lr===r&&(t.substr(O,18).toLowerCase()==="stats_sample_pages"?(Lr=t.substr(O,18),O+=18):(Lr=r,on===0&&Rs(g0))))))),Lr!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r&&(Fr=Su())!==r?(ps=k,Ln=Or,Un=Fr,k=Lr={keyword:Lr.toLowerCase(),symbol:Ln,value:Un.value}):(O=k,k=r)):(O=k,k=r),k===r&&(k=zb())===r&&(k=O,(Lr=lt())===r&&(t.substr(O,10).toLowerCase()==="connection"?(Lr=t.substr(O,10),O+=10):(Lr=r,on===0&&Rs(Ki))),Lr!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r&&(Fr=Ye())!==r?(ps=k,k=Lr=(function(u,yt,Y){return{keyword:u.toLowerCase(),symbol:yt,value:`'${Y.value}'`}})(Lr,Or,Fr)):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,t.substr(O,11).toLowerCase()==="compression"?(Lr=t.substr(O,11),O+=11):(Lr=r,on===0&&Rs(Pb)),Lr!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r?(Fr=O,t.charCodeAt(O)===39?(dr="'",O++):(dr=r,on===0&&Rs(ei)),dr===r?(O=Fr,Fr=r):(t.substr(O,4).toLowerCase()==="zlib"?(It=t.substr(O,4),O+=4):(It=r,on===0&&Rs(pb)),It===r&&(t.substr(O,3).toLowerCase()==="lz4"?(It=t.substr(O,3),O+=3):(It=r,on===0&&Rs(j0)),It===r&&(t.substr(O,4).toLowerCase()==="none"?(It=t.substr(O,4),O+=4):(It=r,on===0&&Rs(ji)))),It===r?(O=Fr,Fr=r):(t.charCodeAt(O)===39?(Dt="'",O++):(Dt=r,on===0&&Rs(ei)),Dt===r?(O=Fr,Fr=r):Fr=dr=[dr,It,Dt])),Fr===r?(O=k,k=r):(ps=k,k=Lr=(function(u,yt,Y){return{keyword:u.toLowerCase(),symbol:yt,value:Y.join("").toUpperCase()}})(Lr,Or,Fr))):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,t.substr(O,6).toLowerCase()==="engine"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(B0)),Lr!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r&&(Fr=ti())!==r?(ps=k,k=Lr=(function(u,yt,Y){return{keyword:u.toLowerCase(),symbol:yt,value:Y.toUpperCase()}})(Lr,Or,Fr)):(O=k,k=r)):(O=k,k=r)))),k}function qv(){var k,Lr,Or,Fr,dr;return k=O,(Lr=yf())!==r&&yn()!==r&&(Or=(function(){var It,Dt,Ln;return It=O,t.substr(O,4).toLowerCase()==="read"?(Dt=t.substr(O,4),O+=4):(Dt=r,on===0&&Rs(Mc)),Dt!==r&&yn()!==r?(t.substr(O,5).toLowerCase()==="local"?(Ln=t.substr(O,5),O+=5):(Ln=r,on===0&&Rs(Cl)),Ln===r&&(Ln=null),Ln===r?(O=It,It=r):(ps=It,It=Dt={type:"read",suffix:Ln&&"local"})):(O=It,It=r),It===r&&(It=O,t.substr(O,12).toLowerCase()==="low_priority"?(Dt=t.substr(O,12),O+=12):(Dt=r,on===0&&Rs($u)),Dt===r&&(Dt=null),Dt!==r&&yn()!==r?(t.substr(O,5).toLowerCase()==="write"?(Ln=t.substr(O,5),O+=5):(Ln=r,on===0&&Rs(r0)),Ln===r?(O=It,It=r):(ps=It,It=Dt={type:"write",prefix:Dt&&"low_priority"})):(O=It,It=r)),It})())!==r?(ps=k,Fr=Lr,dr=Or,bu.add(`lock::${Fr.db}::${Fr.table}`),k=Lr={table:Fr,lock_type:dr}):(O=k,k=r),k}function Cv(){var k,Lr,Or,Fr,dr,It,Dt;return(k=(function(){var Ln=O,Un,u,yt,Y,Q,Tr,P,hr,ht,e,Pr;return(Un=yn())===r?(O=Ln,Ln=r):((u=(function(){var Mr,kn,Yn,K,kt,Js,Ve,co,_t,Eo,ao,zo;if(Mr=O,(kn=Ge())!==r)if(yn()!==r)if((Yn=rb())!==r){for(K=[],kt=O,(Js=yn())!==r&&(Ve=Eu())!==r&&(co=yn())!==r&&(_t=rb())!==r?kt=Js=[Js,Ve,co,_t]:(O=kt,kt=r);kt!==r;)K.push(kt),kt=O,(Js=yn())!==r&&(Ve=Eu())!==r&&(co=yn())!==r&&(_t=rb())!==r?kt=Js=[Js,Ve,co,_t]:(O=kt,kt=r);K===r?(O=Mr,Mr=r):(ps=Mr,kn=Ae(Yn,K),Mr=kn)}else O=Mr,Mr=r;else O=Mr,Mr=r;else O=Mr,Mr=r;if(Mr===r)if(Mr=O,(kn=yn())!==r)if(Ge()!==r)if((Yn=yn())!==r)if((K=(function(){var yo=O,lo,Co,Au;return t.substr(O,9).toLowerCase()==="recursive"?(lo=t.substr(O,9),O+=9):(lo=r,on===0&&Rs(i0)),lo===r?(O=yo,yo=r):(Co=O,on++,Au=We(),on--,Au===r?Co=void 0:(O=Co,Co=r),Co===r?(O=yo,yo=r):yo=lo=[lo,Co]),yo})())!==r)if((kt=yn())!==r)if((Js=rb())!==r){for(Ve=[],co=O,(_t=yn())!==r&&(Eo=Eu())!==r&&(ao=yn())!==r&&(zo=rb())!==r?co=_t=[_t,Eo,ao,zo]:(O=co,co=r);co!==r;)Ve.push(co),co=O,(_t=yn())!==r&&(Eo=Eu())!==r&&(ao=yn())!==r&&(zo=rb())!==r?co=_t=[_t,Eo,ao,zo]:(O=co,co=r);Ve===r?(O=Mr,Mr=r):(ps=Mr,Ke=Ve,(no=Js).recursive=!0,kn=ii(no,Ke),Mr=kn)}else O=Mr,Mr=r;else O=Mr,Mr=r;else O=Mr,Mr=r;else O=Mr,Mr=r;else O=Mr,Mr=r;else O=Mr,Mr=r;var no,Ke;return Mr})())===r&&(u=null),u!==r&&yn()!==r&&(function(){var Mr=O,kn,Yn,K;return t.substr(O,6).toLowerCase()==="select"?(kn=t.substr(O,6),O+=6):(kn=r,on===0&&Rs(Yl)),kn===r?(O=Mr,Mr=r):(Yn=O,on++,K=We(),on--,K===r?Yn=void 0:(O=Yn,Yn=r),Yn===r?(O=Mr,Mr=r):Mr=kn=[kn,Yn]),Mr})()!==r&&ka()!==r?((yt=(function(){var Mr,kn,Yn,K,kt,Js;if(Mr=O,(kn=I())!==r){for(Yn=[],K=O,(kt=yn())!==r&&(Js=I())!==r?K=kt=[kt,Js]:(O=K,K=r);K!==r;)Yn.push(K),K=O,(kt=yn())!==r&&(Js=I())!==r?K=kt=[kt,Js]:(O=K,K=r);Yn===r?(O=Mr,Mr=r):(ps=Mr,kn=(function(Ve,co){let _t=[Ve];for(let Eo=0,ao=co.length;Eo<ao;++Eo)_t.push(co[Eo][1]);return _t})(kn,Yn),Mr=kn)}else O=Mr,Mr=r;return Mr})())===r&&(yt=null),yt!==r&&yn()!==r?((Y=Zl())===r&&(Y=null),Y!==r&&yn()!==r&&(Q=us())!==r&&yn()!==r?((Tr=ja())===r&&(Tr=null),Tr!==r&&yn()!==r?((P=Zb())===r&&(P=null),P!==r&&yn()!==r?((hr=(function(){var Mr=O,kn,Yn;return(kn=(function(){var K=O,kt,Js,Ve;return t.substr(O,5).toLowerCase()==="group"?(kt=t.substr(O,5),O+=5):(kt=r,on===0&&Rs(di)),kt===r?(O=K,K=r):(Js=O,on++,Ve=We(),on--,Ve===r?Js=void 0:(O=Js,Js=r),Js===r?(O=K,K=r):K=kt=[kt,Js]),K})())!==r&&yn()!==r&&$0()!==r&&yn()!==r&&(Yn=Vl())!==r?(ps=Mr,kn={columns:Yn.value},Mr=kn):(O=Mr,Mr=r),Mr})())===r&&(hr=null),hr!==r&&yn()!==r?((ht=(function(){var Mr=O,kn;return(function(){var Yn=O,K,kt,Js;return t.substr(O,6).toLowerCase()==="having"?(K=t.substr(O,6),O+=6):(K=r,on===0&&Rs(l0)),K===r?(O=Yn,Yn=r):(kt=O,on++,Js=We(),on--,Js===r?kt=void 0:(O=kt,kt=r),kt===r?(O=Yn,Yn=r):Yn=K=[K,kt]),Yn})()!==r&&yn()!==r&&(kn=x0())!==r?(ps=Mr,Mr=kn):(O=Mr,Mr=r),Mr})())===r&&(ht=null),ht!==r&&yn()!==r?((e=Xl())===r&&(e=null),e!==r&&yn()!==r?((Pr=Us())===r&&(Pr=null),Pr===r?(O=Ln,Ln=r):(ps=Ln,Un=(function(Mr,kn,Yn,K,kt,Js,Ve,co,_t,Eo){return kt&&kt.forEach(ao=>ao.table&&bu.add(`select::${ao.db}::${ao.table}`)),{with:Mr,type:"select",options:kn,distinct:Yn,columns:K,from:kt,where:Js,groupby:Ve,having:co,orderby:_t,limit:Eo}})(u,yt,Y,Q,Tr,P,hr,ht,e,Pr),Ln=Un)):(O=Ln,Ln=r)):(O=Ln,Ln=r)):(O=Ln,Ln=r)):(O=Ln,Ln=r)):(O=Ln,Ln=r)):(O=Ln,Ln=r)):(O=Ln,Ln=r)):(O=Ln,Ln=r)),Ln})())===r&&(k=O,Lr=O,t.charCodeAt(O)===40?(Or="(",O++):(Or=r,on===0&&Rs(Ss)),Or!==r&&(Fr=yn())!==r&&(dr=Cv())!==r&&(It=yn())!==r?(t.charCodeAt(O)===41?(Dt=")",O++):(Dt=r,on===0&&Rs(te)),Dt===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr,dr,It,Dt]):(O=Lr,Lr=r),Lr!==r&&(ps=k,Lr={...Lr[2],parentheses_symbol:!0}),k=Lr),k}function rb(){var k,Lr,Or,Fr;return k=O,(Lr=Ye())===r&&(Lr=ti()),Lr!==r&&yn()!==r?((Or=tb())===r&&(Or=null),Or!==r&&yn()!==r&&Tl()!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Fr=Ls())!==r&&yn()!==r&&Jt()!==r?(ps=k,k=Lr=(function(dr,It,Dt){return typeof dr=="string"&&(dr={type:"default",value:dr}),{name:dr,stmt:Dt,columns:It}})(Lr,Or,Fr)):(O=k,k=r)):(O=k,k=r),k}function tb(){var k,Lr;return k=O,ve()!==r&&yn()!==r&&(Lr=(function(){var Or,Fr,dr,It,Dt,Ln,Un,u;if(Or=O,(Fr=hl())!==r){for(dr=[],It=O,(Dt=yn())!==r&&(Ln=Eu())!==r&&(Un=yn())!==r&&(u=hl())!==r?It=Dt=[Dt,Ln,Un,u]:(O=It,It=r);It!==r;)dr.push(It),It=O,(Dt=yn())!==r&&(Ln=Eu())!==r&&(Un=yn())!==r&&(u=hl())!==r?It=Dt=[Dt,Ln,Un,u]:(O=It,It=r);dr===r?(O=Or,Or=r):(ps=Or,Fr=Ae(Fr,dr),Or=Fr)}else O=Or,Or=r;return Or})())!==r&&yn()!==r&&Jt()!==r?(ps=k,k=Lr):(O=k,k=r),k}function I(){var k,Lr;return k=O,(Lr=(function(){var Or;return t.substr(O,19).toLowerCase()==="sql_calc_found_rows"?(Or=t.substr(O,19),O+=19):(Or=r,on===0&&Rs(Ec)),Or})())===r&&((Lr=(function(){var Or;return t.substr(O,9).toLowerCase()==="sql_cache"?(Or=t.substr(O,9),O+=9):(Or=r,on===0&&Rs(Jp)),Or})())===r&&(Lr=(function(){var Or;return t.substr(O,12).toLowerCase()==="sql_no_cache"?(Or=t.substr(O,12),O+=12):(Or=r,on===0&&Rs(Qp)),Or})()),Lr===r&&(Lr=(function(){var Or;return t.substr(O,14).toLowerCase()==="sql_big_result"?(Or=t.substr(O,14),O+=14):(Or=r,on===0&&Rs(jv)),Or})())===r&&(Lr=(function(){var Or;return t.substr(O,16).toLowerCase()==="sql_small_result"?(Or=t.substr(O,16),O+=16):(Or=r,on===0&&Rs(sp)),Or})())===r&&(Lr=(function(){var Or;return t.substr(O,17).toLowerCase()==="sql_buffer_result"?(Or=t.substr(O,17),O+=17):(Or=r,on===0&&Rs(Tp)),Or})())),Lr!==r&&(ps=k,Lr=Lr),k=Lr}function us(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=gf())===r&&(Lr=O,(Or=ia())===r?(O=Lr,Lr=r):(Fr=O,on++,dr=We(),on--,dr===r?Fr=void 0:(O=Fr,Fr=r),Fr===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr]),Lr===r&&(Lr=ia())),Lr!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=zt())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=zt())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Un,u){Ht.add("select::null::(.*)");let yt={expr:{type:"column_ref",table:null,column:"*"},as:null};return u&&u.length>0?ii(yt,u):[yt]})(0,Or))}else O=k,k=r;if(k===r)if(k=O,(Lr=zt())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=zt())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=zt())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=Ae(Lr,Or))}else O=k,k=r;return k}function Sb(){var k,Lr,Or,Fr,dr,It,Dt;return k=O,nf()!==r&&yn()!==r?((Lr=Su())===r&&(Lr=Ye()),Lr!==r&&yn()!==r&&E0()!==r?(Or=O,(Fr=yn())===r?(O=Or,Or=r):(t.charCodeAt(O)===46?(dr=".",O++):(dr=r,on===0&&Rs(ce)),dr!==r&&(It=yn())!==r&&(Dt=Bn())!==r?Or=Fr=[Fr,dr,It,Dt]:(O=Or,Or=r)),Or===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=(function(Ln,Un){let u;return Un&&(u={type:"default",value:Un[3]}),{brackets:!0,index:Ln,property:u}})(Lr,Or))):(O=k,k=r)):(O=k,k=r),k}function xl(){var k,Lr,Or,Fr,dr,It;if(k=O,(Lr=Sb())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Sb())!==r?Fr=dr=[dr,It]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Sb())!==r?Fr=dr=[dr,It]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=Dn(Lr,Or))}else O=k,k=r;return k}function nb(){var k,Lr,Or,Fr,dr;return k=O,(Lr=(function(){var It,Dt,Ln,Un,u,yt,Y,Q;if(It=O,(Dt=Ta())!==r){for(Ln=[],Un=O,(u=yn())===r?(O=Un,Un=r):((yt=Ra())===r&&(yt=or())===r&&(yt=oi()),yt!==r&&(Y=yn())!==r&&(Q=Ta())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r));Un!==r;)Ln.push(Un),Un=O,(u=yn())===r?(O=Un,Un=r):((yt=Ra())===r&&(yt=or())===r&&(yt=oi()),yt!==r&&(Y=yn())!==r&&(Q=Ta())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r));Ln===r?(O=It,It=r):(ps=It,Dt=(function(Tr,P){let hr=Tr.ast;if(hr&&hr.type==="select"&&(!(Tr.parentheses_symbol||Tr.parentheses||Tr.ast.parentheses||Tr.ast.parentheses_symbol)||hr.columns.length!==1||hr.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!P||P.length===0)return Tr;let ht=P.length,e=P[ht-1][3];for(let Pr=ht-1;Pr>=0;Pr--){let Mr=Pr===0?Tr:P[Pr-1][3];e=Ma(P[Pr][1],Mr,e)}return e})(Dt,Ln),It=Dt)}else O=It,It=r;return It})())!==r&&yn()!==r?((Or=xl())===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,Fr=Lr,(dr=Or)&&(Fr.array_index=dr),k=Lr=Fr)):(O=k,k=r),k}function zt(){var k,Lr,Or,Fr,dr,It,Dt;return k=O,Lr=O,(Or=Bn())!==r&&(Fr=yn())!==r&&(dr=Wn())!==r?Lr=Or=[Or,Fr,dr]:(O=Lr,Lr=r),Lr===r&&(Lr=null),Lr!==r&&(Or=yn())!==r&&(Fr=ia())!==r?(ps=k,k=Lr=(function(Ln){let Un=Ln&&Ln[0]||null;return Ht.add(`select::${Un}::(.*)`),{expr:{type:"column_ref",table:Un,column:"*"},as:null}})(Lr)):(O=k,k=r),k===r&&(k=O,(Lr=nb())!==r&&(Or=yn())!==r?((Fr=$s())===r&&(Fr=null),Fr===r?(O=k,k=r):(ps=k,Dt=Fr,(It=Lr).type!=="double_quote_string"&&It.type!=="single_quote_string"||Ht.add("select::null::"+It.value),k=Lr={type:"expr",expr:It,as:Dt})):(O=k,k=r)),k}function $s(){var k,Lr,Or;return k=O,(Lr=Tl())!==r&&yn()!==r&&(Or=(function(){var Fr=O,dr;return(dr=ti())===r?(O=Fr,Fr=r):(ps=O,((function(It){if(cl[It.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(It)+" is a reserved word, can not as alias clause");return!1})(dr)?r:void 0)===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr=dr)),Fr===r&&(Fr=O,(dr=C0())!==r&&(ps=Fr,dr=dr),Fr=dr),Fr})())!==r?(ps=k,k=Lr=Or):(O=k,k=r),k===r&&(k=O,(Lr=Tl())===r&&(Lr=null),Lr!==r&&yn()!==r&&(Or=Bn())!==r?(ps=k,k=Lr=Or):(O=k,k=r)),k}function ja(){var k,Lr;return k=O,(function(){var Or=O,Fr,dr,It;return t.substr(O,4).toLowerCase()==="from"?(Fr=t.substr(O,4),O+=4):(Fr=r,on===0&&Rs(Ys)),Fr===r?(O=Or,Or=r):(dr=O,on++,It=We(),on--,It===r?dr=void 0:(O=dr,dr=r),dr===r?(O=Or,Or=r):Or=Fr=[Fr,dr]),Or})()!==r&&yn()!==r&&(Lr=Ti())!==r?(ps=k,k=Lr):(O=k,k=r),k}function Ob(){var k,Lr,Or;return k=O,(Lr=p0())!==r&&yn()!==r&&Yc()!==r&&yn()!==r&&(Or=p0())!==r?(ps=k,k=Lr=[Lr,Or]):(O=k,k=r),k}function jf(){var k,Lr;return k=O,Ii()!==r&&yn()!==r?(t.substr(O,5).toLowerCase()==="btree"?(Lr=t.substr(O,5),O+=5):(Lr=r,on===0&&Rs(He)),Lr===r&&(t.substr(O,4).toLowerCase()==="hash"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(Ue))),Lr===r?(O=k,k=r):(ps=k,k={keyword:"using",type:Lr.toLowerCase()})):(O=k,k=r),k}function is(){var k,Lr,Or,Fr,dr,It;if(k=O,(Lr=el())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=el())!==r?Fr=dr=[dr,It]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=el())!==r?Fr=dr=[dr,It]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Dt,Ln){let Un=[Dt];for(let u=0;u<Ln.length;u++)Un.push(Ln[u][1]);return Un})(Lr,Or))}else O=k,k=r;return k}function el(){var k,Lr,Or,Fr,dr,It;return k=O,(Lr=(function(){var Dt=O,Ln,Un,u;return t.substr(O,14).toLowerCase()==="key_block_size"?(Ln=t.substr(O,14),O+=14):(Ln=r,on===0&&Rs(Jc)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="KEY_BLOCK_SIZE")),Dt})())!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r&&(Fr=Su())!==r?(ps=k,dr=Or,It=Fr,k=Lr={type:Lr.toLowerCase(),symbol:dr,expr:It}):(O=k,k=r)):(O=k,k=r),k===r&&(k=jf())===r&&(k=O,t.substr(O,4).toLowerCase()==="with"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(Qe)),Lr!==r&&yn()!==r?(t.substr(O,6).toLowerCase()==="parser"?(Or=t.substr(O,6),O+=6):(Or=r,on===0&&Rs(uo)),Or!==r&&yn()!==r&&(Fr=ti())!==r?(ps=k,k=Lr={type:"with parser",expr:Fr}):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,t.substr(O,7).toLowerCase()==="visible"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(Ao)),Lr===r&&(t.substr(O,9).toLowerCase()==="invisible"?(Lr=t.substr(O,9),O+=9):(Lr=r,on===0&&Rs(Pu))),Lr!==r&&(ps=k,Lr=(function(Dt){return{type:Dt.toLowerCase(),expr:Dt.toLowerCase()}})(Lr)),(k=Lr)===r&&(k=Ou()))),k}function Ti(){var k,Lr,Or,Fr;if(k=O,(Lr=yf())!==r){for(Or=[],Fr=wv();Fr!==r;)Or.push(Fr),Fr=wv();Or===r?(O=k,k=r):(ps=k,k=Lr=Ca(Lr,Or))}else O=k,k=r;return k}function wv(){var k,Lr,Or;return k=O,yn()!==r&&(Lr=Eu())!==r&&yn()!==r&&(Or=yf())!==r?(ps=k,k=Or):(O=k,k=r),k===r&&(k=O,yn()!==r&&(Lr=(function(){var Fr,dr,It,Dt,Ln,Un,u,yt,Y,Q,Tr;if(Fr=O,(dr=X0())!==r)if(yn()!==r)if((It=yf())!==r)if(yn()!==r)if((Dt=Ii())!==r)if(yn()!==r)if(ve()!==r)if(yn()!==r)if((Ln=L0())!==r){for(Un=[],u=O,(yt=yn())!==r&&(Y=Eu())!==r&&(Q=yn())!==r&&(Tr=L0())!==r?u=yt=[yt,Y,Q,Tr]:(O=u,u=r);u!==r;)Un.push(u),u=O,(yt=yn())!==r&&(Y=Eu())!==r&&(Q=yn())!==r&&(Tr=L0())!==r?u=yt=[yt,Y,Q,Tr]:(O=u,u=r);Un!==r&&(u=yn())!==r&&(yt=Jt())!==r?(ps=Fr,P=dr,ht=Ln,e=Un,(hr=It).join=P,hr.using=ii(ht,e),Fr=dr=hr):(O=Fr,Fr=r)}else O=Fr,Fr=r;else O=Fr,Fr=r;else O=Fr,Fr=r;else O=Fr,Fr=r;else O=Fr,Fr=r;else O=Fr,Fr=r;else O=Fr,Fr=r;else O=Fr,Fr=r;else O=Fr,Fr=r;var P,hr,ht,e;return Fr===r&&(Fr=O,(dr=X0())!==r&&yn()!==r&&(It=yf())!==r&&yn()!==r?((Dt=xb())===r&&(Dt=null),Dt===r?(O=Fr,Fr=r):(ps=Fr,dr=(function(Pr,Mr,kn){return Mr.join=Pr,Mr.on=kn,Mr})(dr,It,Dt),Fr=dr)):(O=Fr,Fr=r),Fr===r&&(Fr=O,(dr=X0())===r&&(dr=_()),dr!==r&&yn()!==r&&(It=ve())!==r&&yn()!==r&&(Dt=Ls())!==r&&yn()!==r&&Jt()!==r&&yn()!==r?((Ln=$s())===r&&(Ln=null),Ln!==r&&(Un=yn())!==r?((u=xb())===r&&(u=null),u===r?(O=Fr,Fr=r):(ps=Fr,dr=(function(Pr,Mr,kn,Yn){return Mr.parentheses=!0,{expr:Mr,as:kn,join:Pr,on:Yn}})(dr,Dt,Ln,u),Fr=dr)):(O=Fr,Fr=r)):(O=Fr,Fr=r))),Fr})())!==r?(ps=k,k=Lr):(O=k,k=r)),k}function yf(){var k,Lr,Or,Fr,dr,It;return k=O,(Lr=(function(){var Dt;return t.substr(O,4).toLowerCase()==="dual"?(Dt=t.substr(O,4),O+=4):(Dt=r,on===0&&Rs(Fv)),Dt})())!==r&&(ps=k,Lr={type:"dual"}),(k=Lr)===r&&(k=O,(Lr=p0())!==r&&yn()!==r?((Or=$s())===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,It=Or,k=Lr=(dr=Lr).type==="var"?(dr.as=It,dr):{db:dr.db,table:dr.table,as:It})):(O=k,k=r),k===r&&(k=O,(Lr=ve())!==r&&yn()!==r&&(Or=Ls())!==r&&yn()!==r&&Jt()!==r&&yn()!==r?((Fr=$s())===r&&(Fr=null),Fr===r?(O=k,k=r):(ps=k,k=Lr=(function(Dt,Ln){return Dt.parentheses=!0,{expr:Dt,as:Ln}})(Or,Fr))):(O=k,k=r))),k}function X0(){var k,Lr,Or,Fr;return k=O,(Lr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,4).toLowerCase()==="left"?(It=t.substr(O,4),O+=4):(It=r,on===0&&Rs(ko)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):dr=It=[It,Dt]),dr})())!==r&&(Or=yn())!==r?((Fr=Zi())===r&&(Fr=null),Fr!==r&&yn()!==r&&fa()!==r?(ps=k,k=Lr="LEFT JOIN"):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,(Lr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,5).toLowerCase()==="right"?(It=t.substr(O,5),O+=5):(It=r,on===0&&Rs(yu)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):dr=It=[It,Dt]),dr})())!==r&&(Or=yn())!==r?((Fr=Zi())===r&&(Fr=null),Fr!==r&&yn()!==r&&fa()!==r?(ps=k,k=Lr="RIGHT JOIN"):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,(Lr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,4).toLowerCase()==="full"?(It=t.substr(O,4),O+=4):(It=r,on===0&&Rs(au)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):dr=It=[It,Dt]),dr})())!==r&&(Or=yn())!==r?((Fr=Zi())===r&&(Fr=null),Fr!==r&&yn()!==r&&fa()!==r?(ps=k,k=Lr="FULL JOIN"):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,Lr=O,(Or=(function(){var dr=O,It,Dt,Ln;return t.substr(O,5).toLowerCase()==="inner"?(It=t.substr(O,5),O+=5):(It=r,on===0&&Rs(mu)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):dr=It=[It,Dt]),dr})())!==r&&(Fr=yn())!==r?Lr=Or=[Or,Fr]:(O=Lr,Lr=r),Lr===r&&(Lr=null),Lr!==r&&(Or=fa())!==r?(ps=k,k=Lr="INNER JOIN"):(O=k,k=r),k===r&&(k=O,(Lr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,5).toLowerCase()==="cross"?(It=t.substr(O,5),O+=5):(It=r,on===0&&Rs(Iu)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):dr=It=[It,Dt]),dr})())!==r&&(Or=yn())!==r&&(Fr=fa())!==r?(ps=k,k=Lr="CROSS JOIN"):(O=k,k=r))))),k}function p0(){var k,Lr,Or,Fr,dr,It,Dt,Ln;return k=O,(Lr=Bn())===r?(O=k,k=r):(Or=O,(Fr=yn())!==r&&(dr=Wn())!==r&&(It=yn())!==r&&(Dt=Bn())!==r?Or=Fr=[Fr,dr,It,Dt]:(O=Or,Or=r),Or===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Un,u){let yt={db:null,table:Un};return u!==null&&(yt.db=Un,yt.table=u[3]),yt})(Lr,Or))),k===r&&(k=O,(Lr=ui())!==r&&(ps=k,(Ln=Lr).db=null,Ln.table=Ln.name,Lr=Ln),k=Lr),k}function up(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=Ta())!==r){for(Or=[],Fr=O,(dr=yn())===r?(O=Fr,Fr=r):((It=Ra())===r&&(It=or()),It!==r&&(Dt=yn())!==r&&(Ln=Ta())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r));Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())===r?(O=Fr,Fr=r):((It=Ra())===r&&(It=or()),It!==r&&(Dt=yn())!==r&&(Ln=Ta())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r));Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Un,u){let yt=u.length,Y=Un;for(let Q=0;Q<yt;++Q)Y=Ma(u[Q][1],Y,u[Q][3]);return Y})(Lr,Or))}else O=k,k=r;return k}function xb(){var k,Lr;return k=O,ib()!==r&&yn()!==r&&(Lr=x0())!==r?(ps=k,k=Lr):(O=k,k=r),k}function Zb(){var k,Lr;return k=O,(function(){var Or=O,Fr,dr,It;return t.substr(O,5).toLowerCase()==="where"?(Fr=t.substr(O,5),O+=5):(Fr=r,on===0&&Rs(sa)),Fr===r?(O=Or,Or=r):(dr=O,on++,It=We(),on--,It===r?dr=void 0:(O=dr,dr=r),dr===r?(O=Or,Or=r):Or=Fr=[Fr,dr]),Or})()!==r&&yn()!==r&&(Lr=x0())!==r?(ps=k,k=Lr):(O=k,k=r),k}function yv(){var k,Lr;return(k=ti())===r&&(k=O,ve()!==r&&yn()!==r?((Lr=(function(){var Or=O,Fr,dr,It;return(Fr=d0())===r&&(Fr=null),Fr!==r&&yn()!==r?((dr=Xl())===r&&(dr=null),dr!==r&&yn()!==r?((It=(function(){var Dt=O,Ln,Un,u,yt;return(Ln=Jl())!==r&&yn()!==r?((Un=Jb())===r&&(Un=hv()),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln={type:"rows",expr:Un})):(O=Dt,Dt=r),Dt===r&&(Dt=O,(Ln=Jl())!==r&&yn()!==r&&(Un=Xa())!==r&&yn()!==r&&(u=hv())!==r&&yn()!==r&&Ra()!==r&&yn()!==r&&(yt=Jb())!==r?(ps=Dt,Ln=Ma(Un,{type:"origin",value:"rows"},{type:"expr_list",value:[u,yt]}),Dt=Ln):(O=Dt,Dt=r)),Dt})())===r&&(It=null),It===r?(O=Or,Or=r):(ps=Or,Or=Fr={name:null,partitionby:Fr,orderby:dr,window_frame_clause:It})):(O=Or,Or=r)):(O=Or,Or=r),Or})())===r&&(Lr=null),Lr!==r&&yn()!==r&&Jt()!==r?(ps=k,k={window_specification:Lr||{},parentheses:!0}):(O=k,k=r)):(O=k,k=r)),k}function Jb(){var k,Lr,Or,Fr;return k=O,(Lr=ss())!==r&&yn()!==r?(t.substr(O,9).toLowerCase()==="following"?(Or=t.substr(O,9),O+=9):(Or=r,on===0&&Rs(ku)),Or===r?(O=k,k=r):(ps=k,(Fr=Lr).value+=" FOLLOWING",k=Lr=Fr)):(O=k,k=r),k===r&&(k=h()),k}function hv(){var k,Lr,Or,Fr,dr;return k=O,(Lr=ss())!==r&&yn()!==r?(t.substr(O,9).toLowerCase()==="preceding"?(Or=t.substr(O,9),O+=9):(Or=r,on===0&&Rs(ca)),Or===r&&(t.substr(O,9).toLowerCase()==="following"?(Or=t.substr(O,9),O+=9):(Or=r,on===0&&Rs(ku))),Or===r?(O=k,k=r):(ps=k,dr=Or,(Fr=Lr).value+=" "+dr.toUpperCase(),k=Lr=Fr)):(O=k,k=r),k===r&&(k=h()),k}function h(){var k,Lr,Or;return k=O,t.substr(O,7).toLowerCase()==="current"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(na)),Lr!==r&&yn()!==r?(t.substr(O,3).toLowerCase()==="row"?(Or=t.substr(O,3),O+=3):(Or=r,on===0&&Rs(Qa)),Or===r?(O=k,k=r):(ps=k,k=Lr={type:"origin",value:"current row"})):(O=k,k=r),k}function ss(){var k,Lr;return k=O,t.substr(O,9).toLowerCase()==="unbounded"?(Lr=t.substr(O,9),O+=9):(Lr=r,on===0&&Rs(cf)),Lr!==r&&(ps=k,Lr={type:"origin",value:Lr.toUpperCase()}),(k=Lr)===r&&(k=Su()),k}function Xl(){var k,Lr;return k=O,(function(){var Or=O,Fr,dr,It;return t.substr(O,5).toLowerCase()==="order"?(Fr=t.substr(O,5),O+=5):(Fr=r,on===0&&Rs(S0)),Fr===r?(O=Or,Or=r):(dr=O,on++,It=We(),on--,It===r?dr=void 0:(O=dr,dr=r),dr===r?(O=Or,Or=r):Or=Fr=[Fr,dr]),Or})()!==r&&yn()!==r&&$0()!==r&&yn()!==r&&(Lr=(function(){var Or,Fr,dr,It,Dt,Ln,Un,u;if(Or=O,(Fr=Bf())!==r){for(dr=[],It=O,(Dt=yn())!==r&&(Ln=Eu())!==r&&(Un=yn())!==r&&(u=Bf())!==r?It=Dt=[Dt,Ln,Un,u]:(O=It,It=r);It!==r;)dr.push(It),It=O,(Dt=yn())!==r&&(Ln=Eu())!==r&&(Un=yn())!==r&&(u=Bf())!==r?It=Dt=[Dt,Ln,Un,u]:(O=It,It=r);dr===r?(O=Or,Or=r):(ps=Or,Fr=Ae(Fr,dr),Or=Fr)}else O=Or,Or=r;return Or})())!==r?(ps=k,k=Lr):(O=k,k=r),k}function d0(){var k,Lr;return k=O,aa()!==r&&yn()!==r&&$0()!==r&&yn()!==r&&(Lr=us())!==r?(ps=k,k=Lr):(O=k,k=r),k}function Bf(){var k,Lr,Or;return k=O,(Lr=Ta())!==r&&yn()!==r?((Or=(function(){var Fr=O,dr,It,Dt;return t.substr(O,4).toLowerCase()==="desc"?(dr=t.substr(O,4),O+=4):(dr=r,on===0&&Rs(Wl)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="DESC")),Fr})())===r&&(Or=(function(){var Fr=O,dr,It,Dt;return t.substr(O,3).toLowerCase()==="asc"?(dr=t.substr(O,3),O+=3):(dr=r,on===0&&Rs(fi)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="ASC")),Fr})()),Or===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr={expr:Lr,type:Or})):(O=k,k=r),k}function jt(){var k;return(k=Su())===r&&(k=hf()),k}function Us(){var k,Lr,Or,Fr,dr,It;return k=O,(function(){var Dt=O,Ln,Un,u;return t.substr(O,5).toLowerCase()==="limit"?(Ln=t.substr(O,5),O+=5):(Ln=r,on===0&&Rs(Ov)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):Dt=Ln=[Ln,Un]),Dt})()!==r&&yn()!==r&&(Lr=jt())!==r&&yn()!==r?(Or=O,(Fr=Eu())===r&&(Fr=(function(){var Dt=O,Ln,Un,u;return t.substr(O,6).toLowerCase()==="offset"?(Ln=t.substr(O,6),O+=6):(Ln=r,on===0&&Rs(lv)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="OFFSET")),Dt})()),Fr!==r&&(dr=yn())!==r&&(It=jt())!==r?Or=Fr=[Fr,dr,It]:(O=Or,Or=r),Or===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=(function(Dt,Ln){let Un=[Dt];return Ln&&Un.push(Ln[2]),{seperator:Ln&&Ln[0]&&Ln[0].toLowerCase()||"",value:Un}})(Lr,Or))):(O=k,k=r),k}function ol(){var k,Lr,Or,Fr,dr,It,Dt,Ln;return k=O,Lr=O,(Or=Bn())!==r&&(Fr=yn())!==r&&(dr=Wn())!==r?Lr=Or=[Or,Fr,dr]:(O=Lr,Lr=r),Lr===r&&(Lr=null),Lr!==r&&(Or=yn())!==r&&(Fr=Wi())!==r&&(dr=yn())!==r?(t.charCodeAt(O)===61?(It="=",O++):(It=r,on===0&&Rs(ri)),It!==r&&yn()!==r&&(Dt=Ta())!==r?(ps=k,k=Lr=(function(Un,u,yt){return{column:u,value:yt,table:Un&&Un[0]}})(Lr,Fr,Dt)):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,Lr=O,(Or=Bn())!==r&&(Fr=yn())!==r&&(dr=Wn())!==r?Lr=Or=[Or,Fr,dr]:(O=Lr,Lr=r),Lr===r&&(Lr=null),Lr!==r&&(Or=yn())!==r&&(Fr=Wi())!==r&&(dr=yn())!==r?(t.charCodeAt(O)===61?(It="=",O++):(It=r,on===0&&Rs(ri)),It!==r&&yn()!==r&&(Dt=rf())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Ln=hl())!==r&&yn()!==r&&Jt()!==r?(ps=k,k=Lr=(function(Un,u,yt){return{column:u,value:yt,table:Un&&Un[0],keyword:"values"}})(Lr,Fr,Ln)):(O=k,k=r)):(O=k,k=r)),k}function sb(){var k,Lr;return(k=(function(){var Or=O,Fr;return rf()!==r&&yn()!==r&&(Fr=(function(){var dr,It,Dt,Ln,Un,u,yt,Y;if(dr=O,(It=ns())!==r){for(Dt=[],Ln=O,(Un=yn())!==r&&(u=Eu())!==r&&(yt=yn())!==r&&(Y=ns())!==r?Ln=Un=[Un,u,yt,Y]:(O=Ln,Ln=r);Ln!==r;)Dt.push(Ln),Ln=O,(Un=yn())!==r&&(u=Eu())!==r&&(yt=yn())!==r&&(Y=ns())!==r?Ln=Un=[Un,u,yt,Y]:(O=Ln,Ln=r);Dt===r?(O=dr,dr=r):(ps=dr,It=Ae(It,Dt),dr=It)}else O=dr,dr=r;return dr})())!==r?(ps=Or,Or={type:"values",values:Fr}):(O=Or,Or=r),Or})())===r&&(k=O,(Lr=Ls())!==r&&(ps=k,Lr=Lr.ast),k=Lr),k}function eb(){var k,Lr,Or,Fr,dr,It,Dt,Ln,Un;if(k=O,aa()!==r)if(yn()!==r)if((Lr=ve())!==r)if(yn()!==r)if((Or=ti())!==r){for(Fr=[],dr=O,(It=yn())!==r&&(Dt=Eu())!==r&&(Ln=yn())!==r&&(Un=ti())!==r?dr=It=[It,Dt,Ln,Un]:(O=dr,dr=r);dr!==r;)Fr.push(dr),dr=O,(It=yn())!==r&&(Dt=Eu())!==r&&(Ln=yn())!==r&&(Un=ti())!==r?dr=It=[It,Dt,Ln,Un]:(O=dr,dr=r);Fr!==r&&(dr=yn())!==r&&(It=Jt())!==r?(ps=k,k=ii(Or,Fr)):(O=k,k=r)}else O=k,k=r;else O=k,k=r;else O=k,k=r;else O=k,k=r;else O=k,k=r;return k===r&&(k=O,aa()!==r&&yn()!==r&&(Lr=ns())!==r?(ps=k,k=Lr):(O=k,k=r)),k}function p(){var k,Lr;return k=O,(Lr=(function(){var Or=O,Fr,dr,It;return t.substr(O,6).toLowerCase()==="insert"?(Fr=t.substr(O,6),O+=6):(Fr=r,on===0&&Rs(mb)),Fr===r?(O=Or,Or=r):(dr=O,on++,It=We(),on--,It===r?dr=void 0:(O=dr,dr=r),dr===r?(O=Or,Or=r):Or=Fr=[Fr,dr]),Or})())!==r&&(ps=k,Lr="insert"),(k=Lr)===r&&(k=O,(Lr=ml())!==r&&(ps=k,Lr="replace"),k=Lr),k}function ns(){var k,Lr;return k=O,ve()!==r&&yn()!==r&&(Lr=Vl())!==r&&yn()!==r&&Jt()!==r?(ps=k,k=Lr):(O=k,k=r),k}function Vl(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=Ta())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=Ta())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=Ta())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Un,u){let yt={type:"expr_list"};return yt.value=ii(Un,u),yt})(Lr,Or))}else O=k,k=r;return k}function Hc(){var k,Lr,Or;return k=O,(function(){var Fr=O,dr,It,Dt;return t.substr(O,8).toLowerCase()==="interval"?(dr=t.substr(O,8),O+=8):(dr=r,on===0&&Rs(Mp)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="INTERVAL")),Fr})()!==r&&yn()!==r&&(Lr=Ta())!==r&&yn()!==r&&(Or=(function(){var Fr;return(Fr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,4).toLowerCase()==="year"?(It=t.substr(O,4),O+=4):(It=r,on===0&&Rs(rp)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):(ps=dr,dr=It="YEAR")),dr})())===r&&(Fr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,5).toLowerCase()==="month"?(It=t.substr(O,5),O+=5):(It=r,on===0&&Rs(yp)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):(ps=dr,dr=It="MONTH")),dr})())===r&&(Fr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,3).toLowerCase()==="day"?(It=t.substr(O,3),O+=3):(It=r,on===0&&Rs(hp)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):(ps=dr,dr=It="DAY")),dr})())===r&&(Fr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,4).toLowerCase()==="hour"?(It=t.substr(O,4),O+=4):(It=r,on===0&&Rs(Ep)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):(ps=dr,dr=It="HOUR")),dr})())===r&&(Fr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,6).toLowerCase()==="minute"?(It=t.substr(O,6),O+=6):(It=r,on===0&&Rs(Nb)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):(ps=dr,dr=It="MINUTE")),dr})())===r&&(Fr=(function(){var dr=O,It,Dt,Ln;return t.substr(O,6).toLowerCase()==="second"?(It=t.substr(O,6),O+=6):(It=r,on===0&&Rs(Qf)),It===r?(O=dr,dr=r):(Dt=O,on++,Ln=We(),on--,Ln===r?Dt=void 0:(O=Dt,Dt=r),Dt===r?(O=dr,dr=r):(ps=dr,dr=It="SECOND")),dr})()),Fr})())!==r?(ps=k,k={type:"interval",expr:Lr,unit:Or.toLowerCase()}):(O=k,k=r),k}function Ub(){var k,Lr,Or,Fr,dr,It;if(k=O,(Lr=Ft())!==r)if(yn()!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Ft())!==r?Fr=dr=[dr,It]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Ft())!==r?Fr=dr=[dr,It]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=Dn(Lr,Or))}else O=k,k=r;else O=k,k=r;return k}function Ft(){var k,Lr,Or;return k=O,(function(){var Fr=O,dr,It,Dt;return t.substr(O,4).toLowerCase()==="when"?(dr=t.substr(O,4),O+=4):(dr=r,on===0&&Rs(oc)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):Fr=dr=[dr,It]),Fr})()!==r&&yn()!==r&&(Lr=x0())!==r&&yn()!==r&&(function(){var Fr=O,dr,It,Dt;return t.substr(O,4).toLowerCase()==="then"?(dr=t.substr(O,4),O+=4):(dr=r,on===0&&Rs(uc)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):Fr=dr=[dr,It]),Fr})()!==r&&yn()!==r&&(Or=Ta())!==r?(ps=k,k={type:"when",cond:Lr,result:Or}):(O=k,k=r),k}function xs(){var k,Lr;return k=O,(function(){var Or=O,Fr,dr,It;return t.substr(O,4).toLowerCase()==="else"?(Fr=t.substr(O,4),O+=4):(Fr=r,on===0&&Rs(qb)),Fr===r?(O=Or,Or=r):(dr=O,on++,It=We(),on--,It===r?dr=void 0:(O=dr,dr=r),dr===r?(O=Or,Or=r):Or=Fr=[Fr,dr]),Or})()!==r&&yn()!==r&&(Lr=Ta())!==r?(ps=k,k={type:"else",result:Lr}):(O=k,k=r),k}function Li(){var k;return(k=(function(){var Lr,Or,Fr,dr,It,Dt,Ln,Un;if(Lr=O,(Or=Zn())!==r){for(Fr=[],dr=O,(It=ka())!==r&&(Dt=or())!==r&&(Ln=yn())!==r&&(Un=Zn())!==r?dr=It=[It,Dt,Ln,Un]:(O=dr,dr=r);dr!==r;)Fr.push(dr),dr=O,(It=ka())!==r&&(Dt=or())!==r&&(Ln=yn())!==r&&(Un=Zn())!==r?dr=It=[It,Dt,Ln,Un]:(O=dr,dr=r);Fr===r?(O=Lr,Lr=r):(ps=Lr,Or=t0(Or,Fr),Lr=Or)}else O=Lr,Lr=r;return Lr})())===r&&(k=(function(){var Lr,Or,Fr,dr,It,Dt;if(Lr=O,(Or=Kl())!==r){if(Fr=[],dr=O,(It=yn())!==r&&(Dt=hs())!==r?dr=It=[It,Dt]:(O=dr,dr=r),dr!==r)for(;dr!==r;)Fr.push(dr),dr=O,(It=yn())!==r&&(Dt=hs())!==r?dr=It=[It,Dt]:(O=dr,dr=r);else Fr=r;Fr===r?(O=Lr,Lr=r):(ps=Lr,Or=an(Or,Fr[0][1]),Lr=Or)}else O=Lr,Lr=r;return Lr})()),k}function Ta(){var k;return(k=Li())===r&&(k=Ls()),k}function x0(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=Ta())!==r){for(Or=[],Fr=O,(dr=yn())===r?(O=Fr,Fr=r):((It=Ra())===r&&(It=or())===r&&(It=Eu()),It!==r&&(Dt=yn())!==r&&(Ln=Ta())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r));Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())===r?(O=Fr,Fr=r):((It=Ra())===r&&(It=or())===r&&(It=Eu()),It!==r&&(Dt=yn())!==r&&(Ln=Ta())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r));Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Un,u){let yt=u.length,Y=Un,Q="";for(let Tr=0;Tr<yt;++Tr)u[Tr][1]===","?(Q=",",Array.isArray(Y)||(Y=[Y]),Y.push(u[Tr][3])):Y=Ma(u[Tr][1],Y,u[Tr][3]);if(Q===","){let Tr={type:"expr_list"};return Tr.value=Y,Tr}return Y})(Lr,Or))}else O=k,k=r;return k}function Zn(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=kb())!==r){for(Or=[],Fr=O,(dr=ka())!==r&&(It=Ra())!==r&&(Dt=yn())!==r&&(Ln=kb())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=ka())!==r&&(It=Ra())!==r&&(Dt=yn())!==r&&(Ln=kb())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=nt(Lr,Or))}else O=k,k=r;return k}function kb(){var k,Lr,Or,Fr,dr;return(k=U0())===r&&(k=(function(){var It=O,Dt,Ln;(Dt=(function(){var yt=O,Y=O,Q,Tr,P;return(Q=xa())!==r&&(Tr=yn())!==r&&(P=gi())!==r?Y=Q=[Q,Tr,P]:(O=Y,Y=r),Y!==r&&(ps=yt,Y=Dc(Y)),(yt=Y)===r&&(yt=gi()),yt})())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Ln=Ls())!==r&&yn()!==r&&Jt()!==r?(ps=It,Un=Dt,(u=Ln).parentheses=!0,Dt=an(Un,u),It=Dt):(O=It,It=r);var Un,u;return It})())===r&&(k=O,(Lr=xa())===r&&(Lr=O,t.charCodeAt(O)===33?(Or="!",O++):(Or=r,on===0&&Rs(n0)),Or===r?(O=Lr,Lr=r):(Fr=O,on++,t.charCodeAt(O)===61?(dr="=",O++):(dr=r,on===0&&Rs(ri)),on--,dr===r?Fr=void 0:(O=Fr,Fr=r),Fr===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr])),Lr!==r&&(Or=yn())!==r&&(Fr=kb())!==r?(ps=k,k=Lr=an("NOT",Fr)):(O=k,k=r)),k}function U0(){var k,Lr,Or,Fr,dr;return k=O,(Lr=zi())!==r&&yn()!==r?((Or=(function(){var It;return(It=(function(){var Dt=O,Ln=[],Un=O,u,yt,Y,Q;if((u=yn())!==r&&(yt=C())!==r&&(Y=yn())!==r&&(Q=zi())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r),Un!==r)for(;Un!==r;)Ln.push(Un),Un=O,(u=yn())!==r&&(yt=C())!==r&&(Y=yn())!==r&&(Q=zi())!==r?Un=u=[u,yt,Y,Q]:(O=Un,Un=r);else Ln=r;return Ln!==r&&(ps=Dt,Ln={type:"arithmetic",tail:Ln}),Dt=Ln})())===r&&(It=(function(){var Dt=O,Ln,Un,u;return(Ln=Kn())!==r&&yn()!==r&&(Un=ve())!==r&&yn()!==r&&(u=Vl())!==r&&yn()!==r&&Jt()!==r?(ps=Dt,Dt=Ln={op:Ln,right:u}):(O=Dt,Dt=r),Dt===r&&(Dt=O,(Ln=Kn())!==r&&yn()!==r?((Un=ui())===r&&(Un=Ye())===r&&(Un=Af()),Un===r?(O=Dt,Dt=r):(ps=Dt,Ln=(function(yt,Y){return{op:yt,right:Y}})(Ln,Un),Dt=Ln)):(O=Dt,Dt=r)),Dt})())===r&&(It=(function(){var Dt=O,Ln,Un,u;return(Ln=(function(){var yt=O,Y=O,Q,Tr,P;return(Q=xa())!==r&&(Tr=yn())!==r&&(P=Xa())!==r?Y=Q=[Q,Tr,P]:(O=Y,Y=r),Y!==r&&(ps=yt,Y=Dc(Y)),(yt=Y)===r&&(yt=Xa()),yt})())!==r&&yn()!==r&&(Un=zi())!==r&&yn()!==r&&Ra()!==r&&yn()!==r&&(u=zi())!==r?(ps=Dt,Dt=Ln={op:Ln,right:{type:"expr_list",value:[Un,u]}}):(O=Dt,Dt=r),Dt})())===r&&(It=(function(){var Dt=O,Ln,Un,u,yt;return(Ln=h0())!==r&&(Un=yn())!==r&&(u=zi())!==r?(ps=Dt,Dt=Ln={op:"IS",right:u}):(O=Dt,Dt=r),Dt===r&&(Dt=O,Ln=O,(Un=h0())!==r&&(u=yn())!==r&&(yt=xa())!==r?Ln=Un=[Un,u,yt]:(O=Ln,Ln=r),Ln!==r&&(Un=yn())!==r&&(u=zi())!==r?(ps=Dt,Ln=(function(Y){return{op:"IS NOT",right:Y}})(u),Dt=Ln):(O=Dt,Dt=r)),Dt})())===r&&(It=(function(){var Dt=O,Ln,Un;return(Ln=(function(){var u=O,yt=O,Y,Q,Tr;return(Y=xa())!==r&&(Q=yn())!==r&&(Tr=n())!==r?yt=Y=[Y,Q,Tr]:(O=yt,yt=r),yt!==r&&(ps=u,yt=Dc(yt)),(u=yt)===r&&(u=n()),u})())!==r&&yn()!==r?((Un=w0())===r&&(Un=U0()),Un===r?(O=Dt,Dt=r):(ps=Dt,Ln=Sf(Ln,Un),Dt=Ln)):(O=Dt,Dt=r),Dt})())===r&&(It=(function(){var Dt=O,Ln,Un;return(Ln=(function(){var u=O,yt=O,Y,Q,Tr;return(Y=xa())!==r&&(Q=yn())!==r&&(Tr=st())!==r?yt=Y=[Y,Q,Tr]:(O=yt,yt=r),yt!==r&&(ps=u,yt=Dc(yt)),(u=yt)===r&&(u=st()),u})())!==r&&yn()!==r?((Un=w0())===r&&(Un=U0()),Un===r?(O=Dt,Dt=r):(ps=Dt,Ln=Sf(Ln,Un),Dt=Ln)):(O=Dt,Dt=r),Dt})()),It})())===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,Fr=Lr,k=Lr=(dr=Or)===null?Fr:dr.type==="arithmetic"?nt(Fr,dr.tail):Ma(dr.op,Fr,dr.right))):(O=k,k=r),k===r&&(k=Ye())===r&&(k=hl()),k}function C(){var k;return t.substr(O,2)===">="?(k=">=",O+=2):(k=r,on===0&&Rs(s0)),k===r&&(t.charCodeAt(O)===62?(k=">",O++):(k=r,on===0&&Rs(Rv)),k===r&&(t.substr(O,2)==="<="?(k="<=",O+=2):(k=r,on===0&&Rs(nv)),k===r&&(t.substr(O,2)==="<>"?(k="<>",O+=2):(k=r,on===0&&Rs(sv)),k===r&&(t.charCodeAt(O)===60?(k="<",O++):(k=r,on===0&&Rs(ev)),k===r&&(t.substr(O,2)==="=="?(k="==",O+=2):(k=r,on===0&&Rs(yc)),k===r&&(t.charCodeAt(O)===61?(k="=",O++):(k=r,on===0&&Rs(ri)),k===r&&(t.substr(O,2)==="!="?(k="!=",O+=2):(k=r,on===0&&Rs($c))))))))),k}function Kn(){var k,Lr,Or,Fr,dr;return k=O,Lr=O,(Or=xa())!==r&&(Fr=yn())!==r&&(dr=cc())!==r?Lr=Or=[Or,Fr,dr]:(O=Lr,Lr=r),Lr!==r&&(ps=k,Lr=Dc(Lr)),(k=Lr)===r&&(k=cc()),k}function zi(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=zl())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Kl())!==r&&(Dt=yn())!==r&&(Ln=zl())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Kl())!==r&&(Dt=yn())!==r&&(Ln=zl())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Un,u){if(u&&u.length&&Un.type==="column_ref"&&Un.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...a()}));return nt(Un,u)})(Lr,Or))}else O=k,k=r;return k}function Kl(){var k;return t.charCodeAt(O)===43?(k="+",O++):(k=r,on===0&&Rs(R0)),k===r&&(t.charCodeAt(O)===45?(k="-",O++):(k=r,on===0&&Rs(Rl))),k}function zl(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=Yi())!==r){for(Or=[],Fr=O,(dr=yn())===r?(O=Fr,Fr=r):((It=Ot())===r&&(It=oi()),It!==r&&(Dt=yn())!==r&&(Ln=Yi())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r));Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())===r?(O=Fr,Fr=r):((It=Ot())===r&&(It=oi()),It!==r&&(Dt=yn())!==r&&(Ln=Yi())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r));Or===r?(O=k,k=r):(ps=k,k=Lr=nt(Lr,Or))}else O=k,k=r;return k}function Ot(){var k;return t.charCodeAt(O)===42?(k="*",O++):(k=r,on===0&&Rs(ff)),k===r&&(t.charCodeAt(O)===47?(k="/",O++):(k=r,on===0&&Rs(Vf)),k===r&&(t.charCodeAt(O)===37?(k="%",O++):(k=r,on===0&&Rs(Vv)))),k}function hs(){var k,Lr,Or,Fr;return(k=(function(){var dr=O,It,Dt,Ln,Un,u,yt;return(It=Il())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Dt=Ta())!==r&&yn()!==r&&Tl()!==r&&yn()!==r&&(Ln=ai())!==r&&yn()!==r&&(Un=Jt())!==r?(ps=dr,It=(function(Y,Q,Tr){return{type:"cast",keyword:Y.toLowerCase(),expr:Q,symbol:"as",target:[Tr]}})(It,Dt,Ln),dr=It):(O=dr,dr=r),dr===r&&(dr=O,(It=Il())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Dt=Ta())!==r&&yn()!==r&&Tl()!==r&&yn()!==r&&(Ln=fc())!==r&&yn()!==r&&(Un=ve())!==r&&yn()!==r&&(u=Al())!==r&&yn()!==r&&Jt()!==r&&yn()!==r&&(yt=Jt())!==r?(ps=dr,It=(function(Y,Q,Tr){return{type:"cast",keyword:Y.toLowerCase(),expr:Q,symbol:"as",target:[{dataType:"DECIMAL("+Tr+")"}]}})(It,Dt,u),dr=It):(O=dr,dr=r),dr===r&&(dr=O,(It=Il())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Dt=Ta())!==r&&yn()!==r&&Tl()!==r&&yn()!==r&&(Ln=fc())!==r&&yn()!==r&&(Un=ve())!==r&&yn()!==r&&(u=Al())!==r&&yn()!==r&&Eu()!==r&&yn()!==r&&(yt=Al())!==r&&yn()!==r&&Jt()!==r&&yn()!==r&&Jt()!==r?(ps=dr,It=(function(Y,Q,Tr,P){return{type:"cast",keyword:Y.toLowerCase(),expr:Q,symbol:"as",target:[{dataType:"DECIMAL("+Tr+", "+P+")"}]}})(It,Dt,u,yt),dr=It):(O=dr,dr=r),dr===r&&(dr=O,(It=Il())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Dt=Ta())!==r&&yn()!==r&&Tl()!==r&&yn()!==r&&(Ln=(function(){var Y;return(Y=(function(){var Q=O,Tr,P,hr;return t.substr(O,6).toLowerCase()==="signed"?(Tr=t.substr(O,6),O+=6):(Tr=r,on===0&&Rs(Dv)),Tr===r?(O=Q,Q=r):(P=O,on++,hr=We(),on--,hr===r?P=void 0:(O=P,P=r),P===r?(O=Q,Q=r):(ps=Q,Q=Tr="SIGNED")),Q})())===r&&(Y=qi()),Y})())!==r&&yn()!==r?((Un=Ri())===r&&(Un=null),Un!==r&&yn()!==r&&(u=Jt())!==r?(ps=dr,It=(function(Y,Q,Tr,P){return{type:"cast",keyword:Y.toLowerCase(),expr:Q,symbol:"as",target:[{dataType:Tr+(P?" "+P:"")}]}})(It,Dt,Ln,Un),dr=It):(O=dr,dr=r)):(O=dr,dr=r)))),dr})())===r&&(k=w0())===r&&(k=Hc())===r&&(k=(function(){var dr;return(dr=(function(){var It=O,Dt,Ln,Un;return(Dt=(function(){var u=O,yt,Y,Q;return t.substr(O,5).toLowerCase()==="count"?(yt=t.substr(O,5),O+=5):(yt=r,on===0&&Rs(f0)),yt===r?(O=u,u=r):(Y=O,on++,Q=We(),on--,Q===r?Y=void 0:(O=Y,Y=r),Y===r?(O=u,u=r):(ps=u,u=yt="COUNT")),u})())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Ln=(function(){var u=O,yt,Y,Q,Tr,P,hr,ht,e,Pr;if((yt=(function(){var Mr=O,kn;return t.charCodeAt(O)===42?(kn="*",O++):(kn=r,on===0&&Rs(ff)),kn!==r&&(ps=Mr,kn={type:"star",value:"*"}),Mr=kn})())!==r&&(ps=u,yt={expr:yt}),(u=yt)===r){if(u=O,(yt=Zl())===r&&(yt=null),yt!==r)if(yn()!==r)if((Y=ve())!==r)if(yn()!==r)if((Q=Ta())!==r)if(yn()!==r)if(Jt()!==r){for(Tr=[],P=O,(hr=yn())===r?(O=P,P=r):((ht=Ra())===r&&(ht=or()),ht!==r&&(e=yn())!==r&&(Pr=Ta())!==r?P=hr=[hr,ht,e,Pr]:(O=P,P=r));P!==r;)Tr.push(P),P=O,(hr=yn())===r?(O=P,P=r):((ht=Ra())===r&&(ht=or()),ht!==r&&(e=yn())!==r&&(Pr=Ta())!==r?P=hr=[hr,ht,e,Pr]:(O=P,P=r));Tr!==r&&(P=yn())!==r?((hr=Xl())===r&&(hr=null),hr===r?(O=u,u=r):(ps=u,yt=(function(Mr,kn,Yn,K){let kt=Yn.length,Js=kn;Js.parentheses=!0;for(let Ve=0;Ve<kt;++Ve)Js=Ma(Yn[Ve][1],Js,Yn[Ve][3]);return{distinct:Mr,expr:Js,orderby:K}})(yt,Q,Tr,hr),u=yt)):(O=u,u=r)}else O=u,u=r;else O=u,u=r;else O=u,u=r;else O=u,u=r;else O=u,u=r;else O=u,u=r;else O=u,u=r;u===r&&(u=O,(yt=Zl())===r&&(yt=null),yt!==r&&yn()!==r&&(Y=up())!==r&&yn()!==r?((Q=Xl())===r&&(Q=null),Q===r?(O=u,u=r):(ps=u,yt=(function(Mr,kn,Yn){return{distinct:Mr,expr:kn,orderby:Yn}})(yt,Y,Q),u=yt)):(O=u,u=r))}return u})())!==r&&yn()!==r&&Jt()!==r&&yn()!==r?((Un=K0())===r&&(Un=null),Un===r?(O=It,It=r):(ps=It,Dt=(function(u,yt,Y){return{type:"aggr_func",name:u,args:yt,over:Y}})(Dt,Ln,Un),It=Dt)):(O=It,It=r),It})())===r&&(dr=(function(){var It=O,Dt,Ln,Un;return(Dt=(function(){var u;return(u=(function(){var yt=O,Y,Q,Tr;return t.substr(O,3).toLowerCase()==="sum"?(Y=t.substr(O,3),O+=3):(Y=r,on===0&&Rs(Sp)),Y===r?(O=yt,yt=r):(Q=O,on++,Tr=We(),on--,Tr===r?Q=void 0:(O=Q,Q=r),Q===r?(O=yt,yt=r):(ps=yt,yt=Y="SUM")),yt})())===r&&(u=(function(){var yt=O,Y,Q,Tr;return t.substr(O,3).toLowerCase()==="max"?(Y=t.substr(O,3),O+=3):(Y=r,on===0&&Rs(b0)),Y===r?(O=yt,yt=r):(Q=O,on++,Tr=We(),on--,Tr===r?Q=void 0:(O=Q,Q=r),Q===r?(O=yt,yt=r):(ps=yt,yt=Y="MAX")),yt})())===r&&(u=(function(){var yt=O,Y,Q,Tr;return t.substr(O,3).toLowerCase()==="min"?(Y=t.substr(O,3),O+=3):(Y=r,on===0&&Rs(Pf)),Y===r?(O=yt,yt=r):(Q=O,on++,Tr=We(),on--,Tr===r?Q=void 0:(O=Q,Q=r),Q===r?(O=yt,yt=r):(ps=yt,yt=Y="MIN")),yt})())===r&&(u=(function(){var yt=O,Y,Q,Tr;return t.substr(O,3).toLowerCase()==="avg"?(Y=t.substr(O,3),O+=3):(Y=r,on===0&&Rs(kv)),Y===r?(O=yt,yt=r):(Q=O,on++,Tr=We(),on--,Tr===r?Q=void 0:(O=Q,Q=r),Q===r?(O=yt,yt=r):(ps=yt,yt=Y="AVG")),yt})()),u})())!==r&&yn()!==r&&ve()!==r&&yn()!==r&&(Ln=zi())!==r&&yn()!==r&&Jt()!==r&&yn()!==r?((Un=K0())===r&&(Un=null),Un===r?(O=It,It=r):(ps=It,Dt=(function(u,yt,Y){return{type:"aggr_func",name:u,args:{expr:yt},over:Y,...a()}})(Dt,Ln,Un),It=Dt)):(O=It,It=r),It})()),dr})())===r&&(k=Af())===r&&(k=(function(){var dr,It,Dt,Ln,Un,u,yt,Y;return dr=O,Nt()!==r&&yn()!==r&&(It=Ub())!==r&&yn()!==r?((Dt=xs())===r&&(Dt=null),Dt!==r&&yn()!==r&&(Ln=ju())!==r&&yn()!==r?((Un=Nt())===r&&(Un=null),Un===r?(O=dr,dr=r):(ps=dr,yt=It,(Y=Dt)&&yt.push(Y),dr={type:"case",expr:null,args:yt})):(O=dr,dr=r)):(O=dr,dr=r),dr===r&&(dr=O,Nt()!==r&&yn()!==r&&(It=Ta())!==r&&yn()!==r&&(Dt=Ub())!==r&&yn()!==r?((Ln=xs())===r&&(Ln=null),Ln!==r&&yn()!==r&&(Un=ju())!==r&&yn()!==r?((u=Nt())===r&&(u=null),u===r?(O=dr,dr=r):(ps=dr,dr=(function(Q,Tr,P){return P&&Tr.push(P),{type:"case",expr:Q,args:Tr}})(It,Dt,Ln))):(O=dr,dr=r)):(O=dr,dr=r)),dr})())===r&&(k=O,(Lr=hl())!==r&&yn()!==r&&(Or=xl())!==r?(ps=k,k=Lr=(function(dr,It){return dr.array_index=It,dr})(Lr,Or)):(O=k,k=r),k===r&&(k=hl())===r&&(k=hf())===r&&(k=O,(Lr=ve())!==r&&yn()!==r&&(Or=x0())!==r&&yn()!==r&&Jt()!==r?(ps=k,(Fr=Or).parentheses=!0,k=Lr=Fr):(O=k,k=r),k===r&&(k=ui()))),k}function Yi(){var k,Lr,Or,Fr,dr;return(k=hs())===r&&(k=O,(Lr=(function(){var It;return t.charCodeAt(O)===33?(It="!",O++):(It=r,on===0&&Rs(n0)),It===r&&(t.charCodeAt(O)===45?(It="-",O++):(It=r,on===0&&Rs(Rl)),It===r&&(t.charCodeAt(O)===43?(It="+",O++):(It=r,on===0&&Rs(R0)),It===r&&(t.charCodeAt(O)===126?(It="~",O++):(It=r,on===0&&Rs(db))))),It})())===r?(O=k,k=r):(Or=O,(Fr=yn())!==r&&(dr=Yi())!==r?Or=Fr=[Fr,dr]:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr=an(Lr,Or[1])))),k}function hl(){var k,Lr,Or,Fr,dr,It,Dt,Ln,Un,u,yt,Y;return k=O,(Lr=Bn())!==r&&(Or=yn())!==r&&(Fr=Wn())!==r&&(dr=yn())!==r&&(It=wa())!==r?(Dt=O,(Ln=yn())!==r&&(Un=Xs())!==r?Dt=Ln=[Ln,Un]:(O=Dt,Dt=r),Dt===r&&(Dt=null),Dt===r?(O=k,k=r):(ps=k,u=Lr,yt=It,Y=Dt,Ht.add(`select::${u}::${yt}`),k=Lr={type:"column_ref",table:u,column:yt,collate:Y&&Y[1]})):(O=k,k=r),k===r&&(k=O,(Lr=wa())===r?(O=k,k=r):(Or=O,(Fr=yn())!==r&&(dr=Xs())!==r?Or=Fr=[Fr,dr]:(O=Or,Or=r),Or===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Q,Tr){return Ht.add("select::null::"+Q),{type:"column_ref",table:null,column:Q,collate:Tr&&Tr[1]}})(Lr,Or)))),k}function L0(){var k,Lr;return k=O,(Lr=ti())!==r&&(ps=k,Lr={type:"default",value:Lr}),(k=Lr)===r&&(k=Qb()),k}function Bn(){var k,Lr;return k=O,(Lr=ti())===r?(O=k,k=r):(ps=O,(Of(Lr)?r:void 0)===r?(O=k,k=r):(ps=k,k=Lr=Lr)),k===r&&(k=O,(Lr=C0())!==r&&(ps=k,Lr=Lr),k=Lr),k}function Qb(){var k;return(k=Hf())===r&&(k=k0())===r&&(k=M0()),k}function C0(){var k,Lr;return k=O,(Lr=Hf())===r&&(Lr=k0())===r&&(Lr=M0()),Lr!==r&&(ps=k,Lr=Lr.value),k=Lr}function Hf(){var k,Lr,Or,Fr;if(k=O,t.charCodeAt(O)===34?(Lr='"',O++):(Lr=r,on===0&&Rs(Pc)),Lr!==r){if(Or=[],H0.test(t.charAt(O))?(Fr=t.charAt(O),O++):(Fr=r,on===0&&Rs(bf)),Fr!==r)for(;Fr!==r;)Or.push(Fr),H0.test(t.charAt(O))?(Fr=t.charAt(O),O++):(Fr=r,on===0&&Rs(bf));else Or=r;Or===r?(O=k,k=r):(t.charCodeAt(O)===34?(Fr='"',O++):(Fr=r,on===0&&Rs(Pc)),Fr===r?(O=k,k=r):(ps=k,k=Lr={type:"double_quote_string",value:Or.join("")}))}else O=k,k=r;return k}function k0(){var k,Lr,Or,Fr;if(k=O,t.charCodeAt(O)===39?(Lr="'",O++):(Lr=r,on===0&&Rs(ei)),Lr!==r){if(Or=[],Lb.test(t.charAt(O))?(Fr=t.charAt(O),O++):(Fr=r,on===0&&Rs(Fa)),Fr!==r)for(;Fr!==r;)Or.push(Fr),Lb.test(t.charAt(O))?(Fr=t.charAt(O),O++):(Fr=r,on===0&&Rs(Fa));else Or=r;Or===r?(O=k,k=r):(t.charCodeAt(O)===39?(Fr="'",O++):(Fr=r,on===0&&Rs(ei)),Fr===r?(O=k,k=r):(ps=k,k=Lr={type:"single_quote_string",value:Or.join("")}))}else O=k,k=r;return k}function M0(){var k,Lr,Or,Fr;if(k=O,t.charCodeAt(O)===96?(Lr="`",O++):(Lr=r,on===0&&Rs(Kf)),Lr!==r){if(Or=[],Nv.test(t.charAt(O))?(Fr=t.charAt(O),O++):(Fr=r,on===0&&Rs(Gb)),Fr!==r)for(;Fr!==r;)Or.push(Fr),Nv.test(t.charAt(O))?(Fr=t.charAt(O),O++):(Fr=r,on===0&&Rs(Gb));else Or=r;Or===r?(O=k,k=r):(t.charCodeAt(O)===96?(Fr="`",O++):(Fr=r,on===0&&Rs(Kf)),Fr===r?(O=k,k=r):(ps=k,k=Lr={type:"backticks_quote_string",value:Or.join("")}))}else O=k,k=r;return k}function Wi(){var k,Lr;return k=O,(Lr=Oa())!==r&&(ps=k,Lr=Lr),(k=Lr)===r&&(k=C0()),k}function wa(){var k,Lr;return k=O,(Lr=Oa())===r?(O=k,k=r):(ps=O,(Of(Lr)?r:void 0)===r?(O=k,k=r):(ps=k,k=Lr=Lr)),k===r&&(k=C0()),k}function Oa(){var k,Lr,Or,Fr;if(k=O,(Lr=ob())!==r){for(Or=[],Fr=V0();Fr!==r;)Or.push(Fr),Fr=V0();Or===r?(O=k,k=r):(ps=k,k=Lr=hc(Lr,Or))}else O=k,k=r;return k}function ti(){var k,Lr,Or,Fr;if(k=O,(Lr=We())!==r){for(Or=[],Fr=ob();Fr!==r;)Or.push(Fr),Fr=ob();Or===r?(O=k,k=r):(ps=k,k=Lr=hc(Lr,Or))}else O=k,k=r;return k}function We(){var k;return Bl.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(sl)),k}function ob(){var k;return sc.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(Y0)),k}function V0(){var k;return N0.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(ov)),k}function hf(){var k,Lr,Or,Fr;return k=O,Lr=O,t.charCodeAt(O)===58?(Or=":",O++):(Or=r,on===0&&Rs(Fb)),Or!==r&&(Fr=ti())!==r?Lr=Or=[Or,Fr]:(O=Lr,Lr=r),Lr!==r&&(ps=k,Lr={type:"param",value:Lr[1]}),k=Lr}function Ef(){var k,Lr,Or;return k=O,ib()!==r&&yn()!==r&&lc()!==r&&yn()!==r&&(Lr=Qi())!==r&&yn()!==r&&ve()!==r&&yn()!==r?((Or=Vl())===r&&(Or=null),Or!==r&&yn()!==r&&Jt()!==r?(ps=k,k={type:"on update",keyword:Lr,parentheses:!0,expr:Or}):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,ib()!==r&&yn()!==r&&lc()!==r&&yn()!==r&&(Lr=Qi())!==r?(ps=k,k=(function(Fr){return{type:"on update",keyword:Fr}})(Lr)):(O=k,k=r)),k}function K0(){var k,Lr,Or,Fr,dr;return k=O,t.substr(O,4).toLowerCase()==="over"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(e0)),Lr!==r&&yn()!==r&&(Or=yv())!==r?(ps=k,k=Lr={type:"window",as_window_specification:Or}):(O=k,k=r),k===r&&(k=O,t.substr(O,4).toLowerCase()==="over"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(e0)),Lr!==r&&yn()!==r&&(Or=ve())!==r&&yn()!==r?((Fr=d0())===r&&(Fr=null),Fr!==r&&yn()!==r?((dr=Xl())===r&&(dr=null),dr!==r&&yn()!==r&&Jt()!==r?(ps=k,k=Lr={partitionby:Fr,orderby:dr}):(O=k,k=r)):(O=k,k=r)):(O=k,k=r),k===r&&(k=Ef())),k}function Af(){var k,Lr,Or,Fr,dr;return k=O,(Lr=(function(){var It;return(It=El())===r&&(It=(function(){var Dt=O,Ln,Un,u;return t.substr(O,12).toLowerCase()==="current_user"?(Ln=t.substr(O,12),O+=12):(Ln=r,on===0&&Rs(Dp)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="CURRENT_USER")),Dt})())===r&&(It=(function(){var Dt=O,Ln,Un,u;return t.substr(O,4).toLowerCase()==="user"?(Ln=t.substr(O,4),O+=4):(Ln=r,on===0&&Rs(Ff)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="USER")),Dt})())===r&&(It=(function(){var Dt=O,Ln,Un,u;return t.substr(O,12).toLowerCase()==="session_user"?(Ln=t.substr(O,12),O+=12):(Ln=r,on===0&&Rs($v)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="SESSION_USER")),Dt})())===r&&(It=(function(){var Dt=O,Ln,Un,u;return t.substr(O,11).toLowerCase()==="system_user"?(Ln=t.substr(O,11),O+=11):(Ln=r,on===0&&Rs($p)),Ln===r?(O=Dt,Dt=r):(Un=O,on++,u=We(),on--,u===r?Un=void 0:(O=Un,Un=r),Un===r?(O=Dt,Dt=r):(ps=Dt,Dt=Ln="SYSTEM_USER")),Dt})()),It})())!==r&&yn()!==r&&(Or=ve())!==r&&yn()!==r?((Fr=Vl())===r&&(Fr=null),Fr!==r&&yn()!==r&&Jt()!==r&&yn()!==r?((dr=K0())===r&&(dr=null),dr===r?(O=k,k=r):(ps=k,k=Lr=(function(It,Dt,Ln){return{type:"function",name:{name:[{type:"default",value:It}]},args:Dt||{type:"expr_list",value:[]},over:Ln,...a()}})(Lr,Fr,dr))):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,(Lr=El())!==r&&yn()!==r?((Or=Ef())===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr={type:"function",name:{name:[{type:"origin",value:Lr}]},over:Or,...a()})):(O=k,k=r),k===r&&(k=O,(Lr=gc())===r&&(Lr=qc())===r&&(Lr=Ba())===r&&(t.substr(O,12).toLowerCase()==="at time zone"?(Lr=t.substr(O,12),O+=12):(Lr=r,on===0&&Rs(Cb))),Lr!==r&&yn()!==r?((Or=x0())===r&&(Or=null),Or!==r&&yn()!==r?((Fr=K0())===r&&(Fr=null),Fr===r?(O=k,k=r):(ps=k,k=Lr=(function(It,Dt,Ln){return Dt&&Dt.type!=="expr_list"&&(Dt={type:"expr_list",value:[Dt]}),{type:"function",name:{name:[{type:"default",value:It}]},args:Dt||{type:"expr_list",value:[]},over:Ln,args_parentheses:!1,...a()}})(Lr,Or,Fr))):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,(Lr=Di())!==r&&yn()!==r&&(Or=ve())!==r&&yn()!==r?((Fr=x0())===r&&(Fr=null),Fr!==r&&yn()!==r&&Jt()!==r&&yn()!==r?((dr=K0())===r&&(dr=null),dr===r?(O=k,k=r):(ps=k,k=Lr=(function(It,Dt,Ln){return Dt&&Dt.type!=="expr_list"&&(Dt={type:"expr_list",value:[Dt]}),{type:"function",name:It,args:Dt||{type:"expr_list",value:[]},over:Ln,...a()}})(Lr,Fr,dr))):(O=k,k=r)):(O=k,k=r)))),k}function El(){var k;return(k=(function(){var Lr=O,Or,Fr,dr;return t.substr(O,12).toLowerCase()==="current_date"?(Or=t.substr(O,12),O+=12):(Or=r,on===0&&Rs(kp)),Or===r?(O=Lr,Lr=r):(Fr=O,on++,dr=We(),on--,dr===r?Fr=void 0:(O=Fr,Fr=r),Fr===r?(O=Lr,Lr=r):(ps=Lr,Lr=Or="CURRENT_DATE")),Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr;return t.substr(O,12).toLowerCase()==="current_time"?(Or=t.substr(O,12),O+=12):(Or=r,on===0&&Rs(_b)),Or===r?(O=Lr,Lr=r):(Fr=O,on++,dr=We(),on--,dr===r?Fr=void 0:(O=Fr,Fr=r),Fr===r?(O=Lr,Lr=r):(ps=Lr,Lr=Or="CURRENT_TIME")),Lr})())===r&&(k=Qi()),k}function w0(){var k;return(k=Ye())===r&&(k=Su())===r&&(k=(function(){var Lr=O,Or;return(Or=(function(){var Fr=O,dr,It,Dt;return t.substr(O,4).toLowerCase()==="true"?(dr=t.substr(O,4),O+=4):(dr=r,on===0&&Rs(pf)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):Fr=dr=[dr,It]),Fr})())!==r&&(ps=Lr,Or={type:"bool",value:!0}),(Lr=Or)===r&&(Lr=O,(Or=(function(){var Fr=O,dr,It,Dt;return t.substr(O,5).toLowerCase()==="false"?(dr=t.substr(O,5),O+=5):(dr=r,on===0&&Rs(av)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):Fr=dr=[dr,It]),Fr})())!==r&&(ps=Lr,Or={type:"bool",value:!1}),Lr=Or),Lr})())===r&&(k=ul())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It,Dt;if((Or=qc())===r&&(Or=gc())===r&&(Or=Ba())===r&&(Or=al()),Or!==r)if(yn()!==r){if(Fr=O,t.charCodeAt(O)===39?(dr="'",O++):(dr=r,on===0&&Rs(ei)),dr!==r){for(It=[],Dt=z0();Dt!==r;)It.push(Dt),Dt=z0();It===r?(O=Fr,Fr=r):(t.charCodeAt(O)===39?(Dt="'",O++):(Dt=r,on===0&&Rs(ei)),Dt===r?(O=Fr,Fr=r):Fr=dr=[dr,It,Dt])}else O=Fr,Fr=r;Fr===r?(O=Lr,Lr=r):(ps=Lr,Or=_0(Or,Fr),Lr=Or)}else O=Lr,Lr=r;else O=Lr,Lr=r;if(Lr===r)if(Lr=O,(Or=qc())===r&&(Or=gc())===r&&(Or=Ba())===r&&(Or=al()),Or!==r)if(yn()!==r){if(Fr=O,t.charCodeAt(O)===34?(dr='"',O++):(dr=r,on===0&&Rs(Pc)),dr!==r){for(It=[],Dt=mf();Dt!==r;)It.push(Dt),Dt=mf();It===r?(O=Fr,Fr=r):(t.charCodeAt(O)===34?(Dt='"',O++):(Dt=r,on===0&&Rs(Pc)),Dt===r?(O=Fr,Fr=r):Fr=dr=[dr,It,Dt])}else O=Fr,Fr=r;Fr===r?(O=Lr,Lr=r):(ps=Lr,Or=_0(Or,Fr),Lr=Or)}else O=Lr,Lr=r;else O=Lr,Lr=r;return Lr})()),k}function ul(){var k,Lr;return k=O,(Lr=(function(){var Or=O,Fr,dr,It;return t.substr(O,4).toLowerCase()==="null"?(Fr=t.substr(O,4),O+=4):(Fr=r,on===0&&Rs(Hb)),Fr===r?(O=Or,Or=r):(dr=O,on++,It=We(),on--,It===r?dr=void 0:(O=dr,dr=r),dr===r?(O=Or,Or=r):Or=Fr=[Fr,dr]),Or})())!==r&&(ps=k,Lr={type:"null",value:null}),k=Lr}function Ye(){var k,Lr,Or,Fr,dr;if(k=O,Lr=O,t.charCodeAt(O)===39?(Or="'",O++):(Or=r,on===0&&Rs(ei)),Or!==r){for(Fr=[],dr=z0();dr!==r;)Fr.push(dr),dr=z0();Fr===r?(O=Lr,Lr=r):(t.charCodeAt(O)===39?(dr="'",O++):(dr=r,on===0&&Rs(ei)),dr===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr,dr])}else O=Lr,Lr=r;if(Lr!==r&&(ps=k,Lr={type:"single_quote_string",value:Lr[1].join("")}),(k=Lr)===r){if(k=O,Lr=O,t.charCodeAt(O)===34?(Or='"',O++):(Or=r,on===0&&Rs(Pc)),Or!==r){for(Fr=[],dr=mf();dr!==r;)Fr.push(dr),dr=mf();Fr===r?(O=Lr,Lr=r):(t.charCodeAt(O)===34?(dr='"',O++):(dr=r,on===0&&Rs(Pc)),dr===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr,dr])}else O=Lr,Lr=r;Lr!==r&&(ps=k,Lr=(function(It){return{type:"double_quote_string",value:It[1].join("")}})(Lr)),k=Lr}return k}function mf(){var k;return zf.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(je)),k===r&&(k=ub()),k}function z0(){var k;return o0.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(xi)),k===r&&(k=ub()),k}function ub(){var k,Lr,Or,Fr,dr,It,Dt,Ln,Un,u;return k=O,t.substr(O,2)==="\\'"?(Lr="\\'",O+=2):(Lr=r,on===0&&Rs(xf)),Lr!==r&&(ps=k,Lr="\\'"),(k=Lr)===r&&(k=O,t.substr(O,2)==='\\"'?(Lr='\\"',O+=2):(Lr=r,on===0&&Rs(Zf)),Lr!==r&&(ps=k,Lr='\\"'),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\\\"?(Lr="\\\\",O+=2):(Lr=r,on===0&&Rs(W0)),Lr!==r&&(ps=k,Lr="\\\\"),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\/"?(Lr="\\/",O+=2):(Lr=r,on===0&&Rs(jb)),Lr!==r&&(ps=k,Lr="\\/"),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\b"?(Lr="\\b",O+=2):(Lr=r,on===0&&Rs(Uf)),Lr!==r&&(ps=k,Lr="\b"),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\f"?(Lr="\\f",O+=2):(Lr=r,on===0&&Rs(u0)),Lr!==r&&(ps=k,Lr="\f"),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\n"?(Lr="\\n",O+=2):(Lr=r,on===0&&Rs(wb)),Lr!==r&&(ps=k,Lr=` +`),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\r"?(Lr="\\r",O+=2):(Lr=r,on===0&&Rs(Ui)),Lr!==r&&(ps=k,Lr="\r"),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\t"?(Lr="\\t",O+=2):(Lr=r,on===0&&Rs(uv)),Lr!==r&&(ps=k,Lr=" "),(k=Lr)===r&&(k=O,t.substr(O,2)==="\\u"?(Lr="\\u",O+=2):(Lr=r,on===0&&Rs(yb)),Lr!==r&&(Or=y0())!==r&&(Fr=y0())!==r&&(dr=y0())!==r&&(It=y0())!==r?(ps=k,Dt=Or,Ln=Fr,Un=dr,u=It,k=Lr=String.fromCharCode(parseInt("0x"+Dt+Ln+Un+u))):(O=k,k=r),k===r&&(k=O,t.charCodeAt(O)===92?(Lr="\\",O++):(Lr=r,on===0&&Rs(hb)),Lr!==r&&(ps=k,Lr="\\"),(k=Lr)===r&&(k=O,t.substr(O,2)==="''"?(Lr="''",O+=2):(Lr=r,on===0&&Rs(Kv)),Lr!==r&&(ps=k,Lr="''"),(k=Lr)===r&&(k=O,t.substr(O,2)==='""'?(Lr='""',O+=2):(Lr=r,on===0&&Rs(Gc)),Lr!==r&&(ps=k,Lr='""'),(k=Lr)===r&&(k=O,t.substr(O,2)==="``"?(Lr="``",O+=2):(Lr=r,on===0&&Rs(_v)),Lr!==r&&(ps=k,Lr="``"),k=Lr))))))))))))),k}function Su(){var k,Lr,Or;return k=O,(Lr=(function(){var Fr=O,dr,It,Dt;return(dr=Al())!==r&&(It=D0())!==r&&(Dt=Ac())!==r?(ps=Fr,Fr=dr={type:"bigint",value:dr+It+Dt}):(O=Fr,Fr=r),Fr===r&&(Fr=O,(dr=Al())!==r&&(It=D0())!==r?(ps=Fr,dr=(function(Ln,Un){let u=Ln+Un;return Da(Ln)?{type:"bigint",value:u}:parseFloat(u).toFixed(Un.length-1)})(dr,It),Fr=dr):(O=Fr,Fr=r),Fr===r&&(Fr=O,(dr=Al())!==r&&(It=Ac())!==r?(ps=Fr,dr=(function(Ln,Un){return{type:"bigint",value:Ln+Un}})(dr,It),Fr=dr):(O=Fr,Fr=r),Fr===r&&(Fr=O,(dr=Al())!==r&&(ps=Fr,dr=(function(Ln){return Da(Ln)?{type:"bigint",value:Ln}:parseFloat(Ln)})(dr)),Fr=dr))),Fr})())!==r&&(ps=k,Lr=(Or=Lr)&&Or.type==="bigint"?Or:{type:"number",value:Or}),k=Lr}function Al(){var k,Lr,Or;return(k=mc())===r&&(k=Tc())===r&&(k=O,t.charCodeAt(O)===45?(Lr="-",O++):(Lr=r,on===0&&Rs(Rl)),Lr===r&&(t.charCodeAt(O)===43?(Lr="+",O++):(Lr=r,on===0&&Rs(R0))),Lr!==r&&(Or=mc())!==r?(ps=k,k=Lr+=Or):(O=k,k=r),k===r&&(k=O,t.charCodeAt(O)===45?(Lr="-",O++):(Lr=r,on===0&&Rs(Rl)),Lr===r&&(t.charCodeAt(O)===43?(Lr="+",O++):(Lr=r,on===0&&Rs(R0))),Lr!==r&&(Or=Tc())!==r?(ps=k,k=Lr=(function(Fr,dr){return Fr+dr})(Lr,Or)):(O=k,k=r))),k}function D0(){var k,Lr,Or;return k=O,t.charCodeAt(O)===46?(Lr=".",O++):(Lr=r,on===0&&Rs(ce)),Lr!==r&&(Or=mc())!==r?(ps=k,k=Lr="."+Or):(O=k,k=r),k}function Ac(){var k,Lr,Or;return k=O,(Lr=(function(){var Fr=O,dr,It;pa.test(t.charAt(O))?(dr=t.charAt(O),O++):(dr=r,on===0&&Rs(wl)),dr===r?(O=Fr,Fr=r):(Nl.test(t.charAt(O))?(It=t.charAt(O),O++):(It=r,on===0&&Rs(Sv)),It===r&&(It=null),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr+=(Dt=It)===null?"":Dt));var Dt;return Fr})())!==r&&(Or=mc())!==r?(ps=k,k=Lr+=Or):(O=k,k=r),k}function mc(){var k,Lr,Or;if(k=O,Lr=[],(Or=Tc())!==r)for(;Or!==r;)Lr.push(Or),Or=Tc();else Lr=r;return Lr!==r&&(ps=k,Lr=Lr.join("")),k=Lr}function Tc(){var k;return ki.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(Hl)),k}function y0(){var k;return Eb.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(Bb)),k}function bi(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="default"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(mi)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Yc(){var k,Lr,Or,Fr;return k=O,t.substr(O,2).toLowerCase()==="to"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(Yb)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Z0(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="drop"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(iv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="DROP")),k}function lc(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="update"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(Ab)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Ic(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="create"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(Mf)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function ab(){var k,Lr,Or,Fr;return k=O,t.substr(O,9).toLowerCase()==="temporary"?(Lr=t.substr(O,9),O+=9):(Lr=r,on===0&&Rs(Wb)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function J0(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="delete"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(Df)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function ml(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="replace"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(ft)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Ul(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="rename"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(tn)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function aa(){var k,Lr,Or,Fr;return k=O,t.substr(O,9).toLowerCase()==="partition"?(Lr=t.substr(O,9),O+=9):(Lr=r,on===0&&Rs(En)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="PARTITION")),k}function Tf(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="into"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(Os)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="INTO")),k}function If(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="set"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(nl)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="SET")),k}function Tl(){var k,Lr,Or,Fr;return k=O,t.substr(O,2).toLowerCase()==="as"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(ye)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Ci(){var k,Lr,Or,Fr;return k=O,t.substr(O,5).toLowerCase()==="table"?(Lr=t.substr(O,5),O+=5):(Lr=r,on===0&&Rs(Be)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="TABLE")),k}function Q0(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="tables"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(io)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="TABLES")),k}function ib(){var k,Lr,Or,Fr;return k=O,t.substr(O,2).toLowerCase()==="on"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(uu)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function fa(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="join"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(Ju)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Zi(){var k,Lr,Or,Fr;return k=O,t.substr(O,5).toLowerCase()==="outer"?(Lr=t.substr(O,5),O+=5):(Lr=r,on===0&&Rs(ua)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function rf(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="values"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(ma)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Ii(){var k,Lr,Or,Fr;return k=O,t.substr(O,5).toLowerCase()==="using"?(Lr=t.substr(O,5),O+=5):(Lr=r,on===0&&Rs(Bi)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Ge(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="with"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(Qe)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function $0(){var k,Lr,Or,Fr;return k=O,t.substr(O,2).toLowerCase()==="by"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(Hi)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function gf(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="all"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(ec)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="ALL")),k}function Zl(){var k,Lr,Or,Fr;return k=O,t.substr(O,8).toLowerCase()==="distinct"?(Lr=t.substr(O,8),O+=8):(Lr=r,on===0&&Rs(Fc)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="DISTINCT")),k}function Xa(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="between"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(xv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="BETWEEN")),k}function cc(){var k,Lr,Or,Fr;return k=O,t.substr(O,2).toLowerCase()==="in"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(lp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="IN")),k}function h0(){var k,Lr,Or,Fr;return k=O,t.substr(O,2).toLowerCase()==="is"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(Uv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="IS")),k}function n(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="like"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs($f)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="LIKE")),k}function st(){var k,Lr,Or,Fr;return k=O,t.substr(O,5).toLowerCase()==="rlike"?(Lr=t.substr(O,5),O+=5):(Lr=r,on===0&&Rs(Tb)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="RLIKE")),k}function gi(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="exists"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(cp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="EXISTS")),k}function xa(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="not"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(c0)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="NOT")),k}function Ra(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="and"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(q0)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="AND")),k}function or(){var k,Lr,Or,Fr;return k=O,t.substr(O,2).toLowerCase()==="or"?(Lr=t.substr(O,2),O+=2):(Lr=r,on===0&&Rs(df)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="OR")),k}function Nt(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="case"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(fp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function ju(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="end"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(Gf)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):k=Lr=[Lr,Or]),k}function Il(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="cast"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(zv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="CAST")),k}function Wc(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="char"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(Mv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="CHAR")),k}function Kr(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="varchar"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(Zv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="VARCHAR")),k}function Mb(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="numeric"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(bp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="NUMERIC")),k}function fc(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="decimal"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(Ib)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="DECIMAL")),k}function qi(){var k,Lr,Or,Fr;return k=O,t.substr(O,8).toLowerCase()==="unsigned"?(Lr=t.substr(O,8),O+=8):(Lr=r,on===0&&Rs(Jv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="UNSIGNED")),k}function Ji(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="int"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(Xb)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="INT")),k}function Ri(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="integer"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(xp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="INTEGER")),k}function qu(){var k,Lr,Or,Fr;return k=O,t.substr(O,8).toLowerCase()==="smallint"?(Lr=t.substr(O,8),O+=8):(Lr=r,on===0&&Rs(Up)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="SMALLINT")),k}function Se(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="tinyint"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(Xp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="TINYINT")),k}function tf(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="bigint"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(ld)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="BIGINT")),k}function Qu(){var k,Lr,Or,Fr;return k=O,t.substr(O,5).toLowerCase()==="float"?(Lr=t.substr(O,5),O+=5):(Lr=r,on===0&&Rs(Lp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="FLOAT")),k}function P0(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="double"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(Cp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="DOUBLE")),k}function gc(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="date"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(wp)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="DATE")),k}function al(){var k,Lr,Or,Fr;return k=O,t.substr(O,8).toLowerCase()==="datetime"?(Lr=t.substr(O,8),O+=8):(Lr=r,on===0&&Rs(gb)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="DATETIME")),k}function Jl(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="rows"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(O0)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="ROWS")),k}function qc(){var k,Lr,Or,Fr;return k=O,t.substr(O,4).toLowerCase()==="time"?(Lr=t.substr(O,4),O+=4):(Lr=r,on===0&&Rs(v0)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="TIME")),k}function Ba(){var k,Lr,Or,Fr;return k=O,t.substr(O,9).toLowerCase()==="timestamp"?(Lr=t.substr(O,9),O+=9):(Lr=r,on===0&&Rs(ac)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="TIMESTAMP")),k}function Qi(){var k,Lr,Or,Fr;return k=O,t.substr(O,17).toLowerCase()==="current_timestamp"?(Lr=t.substr(O,17),O+=17):(Lr=r,on===0&&Rs(Ap)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="CURRENT_TIMESTAMP")),k}function ya(){var k;return(k=(function(){var Lr;return t.substr(O,2)==="@@"?(Lr="@@",O+=2):(Lr=r,on===0&&Rs(zp)),Lr})())===r&&(k=(function(){var Lr;return t.charCodeAt(O)===64?(Lr="@",O++):(Lr=r,on===0&&Rs(mp)),Lr})())===r&&(k=(function(){var Lr;return t.charCodeAt(O)===36?(Lr="$",O++):(Lr=r,on===0&&Rs(Zp)),Lr})()),k}function l(){var k;return t.charCodeAt(O)===61?(k="=",O++):(k=r,on===0&&Rs(ri)),k}function dn(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="add"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(yl)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="ADD")),k}function Ql(){var k,Lr,Or,Fr;return k=O,t.substr(O,6).toLowerCase()==="column"?(Lr=t.substr(O,6),O+=6):(Lr=r,on===0&&Rs(jc)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="COLUMN")),k}function vi(){var k,Lr,Or,Fr;return k=O,t.substr(O,5).toLowerCase()==="index"?(Lr=t.substr(O,5),O+=5):(Lr=r,on===0&&Rs(fv)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="INDEX")),k}function Va(){var k,Lr,Or,Fr;return k=O,t.substr(O,3).toLowerCase()==="key"?(Lr=t.substr(O,3),O+=3):(Lr=r,on===0&&Rs(Uo)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="KEY")),k}function lt(){var k,Lr,Or,Fr;return k=O,t.substr(O,7).toLowerCase()==="comment"?(Lr=t.substr(O,7),O+=7):(Lr=r,on===0&&Rs(np)),Lr===r?(O=k,k=r):(Or=O,on++,Fr=We(),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or===r?(O=k,k=r):(ps=k,k=Lr="COMMENT")),k}function Wn(){var k;return t.charCodeAt(O)===46?(k=".",O++):(k=r,on===0&&Rs(ce)),k}function Eu(){var k;return t.charCodeAt(O)===44?(k=",",O++):(k=r,on===0&&Rs(rd)),k}function ia(){var k;return t.charCodeAt(O)===42?(k="*",O++):(k=r,on===0&&Rs(ff)),k}function ve(){var k;return t.charCodeAt(O)===40?(k="(",O++):(k=r,on===0&&Rs(Ss)),k}function Jt(){var k;return t.charCodeAt(O)===41?(k=")",O++):(k=r,on===0&&Rs(te)),k}function nf(){var k;return t.charCodeAt(O)===91?(k="[",O++):(k=r,on===0&&Rs(jp)),k}function E0(){var k;return t.charCodeAt(O)===93?(k="]",O++):(k=r,on===0&&Rs(Ip)),k}function kl(){var k;return t.charCodeAt(O)===59?(k=";",O++):(k=r,on===0&&Rs(td)),k}function oi(){var k;return(k=(function(){var Lr;return t.substr(O,2)==="||"?(Lr="||",O+=2):(Lr=r,on===0&&Rs(nd)),Lr})())===r&&(k=(function(){var Lr;return t.substr(O,2)==="&&"?(Lr="&&",O+=2):(Lr=r,on===0&&Rs(Bp)),Lr})()),k}function yn(){var k,Lr;for(k=[],(Lr=zu())===r&&(Lr=Ua());Lr!==r;)k.push(Lr),(Lr=zu())===r&&(Lr=Ua());return k}function ka(){var k,Lr;if(k=[],(Lr=zu())===r&&(Lr=Ua()),Lr!==r)for(;Lr!==r;)k.push(Lr),(Lr=zu())===r&&(Lr=Ua());else k=r;return k}function Ua(){var k;return(k=(function(){var Lr=O,Or,Fr,dr,It,Dt;if(t.substr(O,2)==="/*"?(Or="/*",O+=2):(Or=r,on===0&&Rs(Hp)),Or!==r){for(Fr=[],dr=O,It=O,on++,t.substr(O,2)==="*/"?(Dt="*/",O+=2):(Dt=r,on===0&&Rs(gp)),on--,Dt===r?It=void 0:(O=It,It=r),It!==r&&(Dt=il())!==r?dr=It=[It,Dt]:(O=dr,dr=r);dr!==r;)Fr.push(dr),dr=O,It=O,on++,t.substr(O,2)==="*/"?(Dt="*/",O+=2):(Dt=r,on===0&&Rs(gp)),on--,Dt===r?It=void 0:(O=It,It=r),It!==r&&(Dt=il())!==r?dr=It=[It,Dt]:(O=dr,dr=r);Fr===r?(O=Lr,Lr=r):(t.substr(O,2)==="*/"?(dr="*/",O+=2):(dr=r,on===0&&Rs(gp)),dr===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr,dr])}else O=Lr,Lr=r;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It,Dt;if(t.substr(O,2)==="--"?(Or="--",O+=2):(Or=r,on===0&&Rs(sd)),Or!==r){for(Fr=[],dr=O,It=O,on++,Dt=Yu(),on--,Dt===r?It=void 0:(O=It,It=r),It!==r&&(Dt=il())!==r?dr=It=[It,Dt]:(O=dr,dr=r);dr!==r;)Fr.push(dr),dr=O,It=O,on++,Dt=Yu(),on--,Dt===r?It=void 0:(O=It,It=r),It!==r&&(Dt=il())!==r?dr=It=[It,Dt]:(O=dr,dr=r);Fr===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr]}else O=Lr,Lr=r;return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It,Dt;if(t.charCodeAt(O)===35?(Or="#",O++):(Or=r,on===0&&Rs(ed)),Or!==r){for(Fr=[],dr=O,It=O,on++,Dt=Yu(),on--,Dt===r?It=void 0:(O=It,It=r),It!==r&&(Dt=il())!==r?dr=It=[It,Dt]:(O=dr,dr=r);dr!==r;)Fr.push(dr),dr=O,It=O,on++,Dt=Yu(),on--,Dt===r?It=void 0:(O=It,It=r),It!==r&&(Dt=il())!==r?dr=It=[It,Dt]:(O=dr,dr=r);Fr===r?(O=Lr,Lr=r):Lr=Or=[Or,Fr]}else O=Lr,Lr=r;return Lr})()),k}function Ou(){var k,Lr,Or,Fr;return k=O,(Lr=lt())!==r&&yn()!==r?((Or=l())===r&&(Or=null),Or!==r&&yn()!==r&&(Fr=Ye())!==r?(ps=k,k=Lr=(function(dr,It,Dt){return{type:dr.toLowerCase(),keyword:dr.toLowerCase(),symbol:It,value:Dt}})(Lr,Or,Fr)):(O=k,k=r)):(O=k,k=r),k}function il(){var k;return t.length>O?(k=t.charAt(O),O++):(k=r,on===0&&Rs(Yp)),k}function zu(){var k;return od.test(t.charAt(O))?(k=t.charAt(O),O++):(k=r,on===0&&Rs(ud)),k}function Yu(){var k,Lr;if((k=(function(){var Or=O,Fr;return on++,t.length>O?(Fr=t.charAt(O),O++):(Fr=r,on===0&&Rs(Yp)),on--,Fr===r?Or=void 0:(O=Or,Or=r),Or})())===r)if(k=[],kf.test(t.charAt(O))?(Lr=t.charAt(O),O++):(Lr=r,on===0&&Rs(vf)),Lr!==r)for(;Lr!==r;)k.push(Lr),kf.test(t.charAt(O))?(Lr=t.charAt(O),O++):(Lr=r,on===0&&Rs(vf));else k=r;return k}function lb(){var k,Lr;return k=O,ps=O,ba=[],r!==void 0&&yn()!==r?((Lr=Mi())===r&&(Lr=(function(){var Or=O,Fr;return(function(){var dr;return t.substr(O,6).toLowerCase()==="return"?(dr=t.substr(O,6),O+=6):(dr=r,on===0&&Rs(Gv)),dr})()!==r&&yn()!==r&&(Fr=ha())!==r?(ps=Or,Or={type:"return",expr:Fr}):(O=Or,Or=r),Or})()),Lr===r?(O=k,k=r):(ps=k,k={stmt:Lr,vars:ba})):(O=k,k=r),k}function Mi(){var k,Lr,Or,Fr;return k=O,(Lr=ui())===r&&(Lr=$i()),Lr!==r&&yn()!==r?((Or=(function(){var dr;return t.substr(O,2)===":="?(dr=":=",O+=2):(dr=r,on===0&&Rs(tp)),dr})())===r&&(Or=l()),Or!==r&&yn()!==r&&(Fr=ha())!==r?(ps=k,k=Lr={type:"assign",left:Lr,symbol:Or,right:Fr}):(O=k,k=r)):(O=k,k=r),k}function ha(){var k;return(k=Cv())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It;return(Or=ui())!==r&&yn()!==r&&(Fr=X0())!==r&&yn()!==r&&(dr=ui())!==r&&yn()!==r&&(It=xb())!==r?(ps=Lr,Lr=Or={type:"join",ltable:Or,rtable:dr,op:Fr,on:It}):(O=Lr,Lr=r),Lr})())===r&&(k=Ha())===r&&(k=(function(){var Lr=O,Or;return nf()!==r&&yn()!==r&&(Or=ni())!==r&&yn()!==r&&E0()!==r?(ps=Lr,Lr={type:"array",value:Or}):(O=Lr,Lr=r),Lr})()),k}function Ha(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=ln())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Kl())!==r&&(Dt=yn())!==r&&(Ln=ln())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Kl())!==r&&(Dt=yn())!==r&&(Ln=ln())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=t0(Lr,Or))}else O=k,k=r;return k}function ln(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=Oe())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Ot())!==r&&(Dt=yn())!==r&&(Ln=Oe())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Ot())!==r&&(Dt=yn())!==r&&(Ln=Oe())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=t0(Lr,Or))}else O=k,k=r;return k}function Oe(){var k,Lr,Or;return(k=w0())===r&&(k=ui())===r&&(k=Ya())===r&&(k=hf())===r&&(k=O,ve()!==r&&yn()!==r&&(Lr=Ha())!==r&&yn()!==r&&Jt()!==r?(ps=k,(Or=Lr).parentheses=!0,k=Or):(O=k,k=r)),k}function Di(){var k,Lr,Or,Fr,dr,It,Dt;return k=O,(Lr=L0())===r?(O=k,k=r):(Or=O,(Fr=yn())!==r&&(dr=Wn())!==r&&(It=yn())!==r&&(Dt=L0())!==r?Or=Fr=[Fr,dr,It,Dt]:(O=Or,Or=r),Or===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Ln,Un){let u={name:[Ln]};return Un!==null&&(u.schema=Ln,u.name=[Un[3]]),u})(Lr,Or))),k}function Ya(){var k,Lr,Or;return k=O,(Lr=Di())!==r&&yn()!==r&&ve()!==r&&yn()!==r?((Or=ni())===r&&(Or=null),Or!==r&&yn()!==r&&Jt()!==r?(ps=k,k=Lr=(function(Fr,dr){return{type:"function",name:Fr,args:{type:"expr_list",value:dr},...a()}})(Lr,Or)):(O=k,k=r)):(O=k,k=r),k===r&&(k=O,(Lr=Di())!==r&&(ps=k,Lr=(function(Fr){return{type:"function",name:Fr,args:null,...a()}})(Lr)),k=Lr),k}function ni(){var k,Lr,Or,Fr,dr,It,Dt,Ln;if(k=O,(Lr=Oe())!==r){for(Or=[],Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=Oe())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Fr!==r;)Or.push(Fr),Fr=O,(dr=yn())!==r&&(It=Eu())!==r&&(Dt=yn())!==r&&(Ln=Oe())!==r?Fr=dr=[dr,It,Dt,Ln]:(O=Fr,Fr=r);Or===r?(O=k,k=r):(ps=k,k=Lr=Ae(Lr,Or))}else O=k,k=r;return k}function ui(){var k,Lr,Or,Fr,dr;return k=O,(Lr=ya())!==r&&(Or=$i())!==r?(ps=k,Fr=Lr,dr=Or,k=Lr={type:"var",...dr,prefix:Fr}):(O=k,k=r),k}function $i(){var k,Lr,Or;return k=O,(Lr=ti())!==r&&(Or=(function(){var Fr=O,dr=[],It=O,Dt,Ln;for(t.charCodeAt(O)===46?(Dt=".",O++):(Dt=r,on===0&&Rs(ce)),Dt!==r&&(Ln=ti())!==r?It=Dt=[Dt,Ln]:(O=It,It=r);It!==r;)dr.push(It),It=O,t.charCodeAt(O)===46?(Dt=".",O++):(Dt=r,on===0&&Rs(ce)),Dt!==r&&(Ln=ti())!==r?It=Dt=[Dt,Ln]:(O=It,It=r);return dr!==r&&(ps=Fr,dr=(function(Un){let u=[];for(let yt=0;yt<Un.length;yt++)u.push(Un[yt][1]);return u})(dr)),Fr=dr})())!==r?(ps=k,k=Lr=(function(Fr,dr){return ba.push(Fr),{type:"var",name:Fr,members:dr,prefix:null}})(Lr,Or)):(O=k,k=r),k===r&&(k=O,(Lr=Su())!==r&&(ps=k,Lr={type:"var",name:Lr.value,members:[],quoted:null,prefix:null}),k=Lr),k}function ai(){var k;return(k=(function(){var Lr=O,Or,Fr,dr;if((Or=Wc())===r&&(Or=Kr()),Or!==r)if(yn()!==r)if(ve()!==r)if(yn()!==r){if(Fr=[],ki.test(t.charAt(O))?(dr=t.charAt(O),O++):(dr=r,on===0&&Rs(Hl)),dr!==r)for(;dr!==r;)Fr.push(dr),ki.test(t.charAt(O))?(dr=t.charAt(O),O++):(dr=r,on===0&&Rs(Hl));else Fr=r;Fr!==r&&(dr=yn())!==r&&Jt()!==r?(ps=Lr,Or={dataType:Or,length:parseInt(Fr.join(""),10),parentheses:!0},Lr=Or):(O=Lr,Lr=r)}else O=Lr,Lr=r;else O=Lr,Lr=r;else O=Lr,Lr=r;else O=Lr,Lr=r;return Lr===r&&(Lr=O,(Or=Wc())===r&&(Or=Kr())===r&&(Or=(function(){var It,Dt,Ln,Un;return It=O,t.substr(O,6).toLowerCase()==="string"?(Dt=t.substr(O,6),O+=6):(Dt=r,on===0&&Rs(vp)),Dt===r?(O=It,It=r):(Ln=O,on++,Un=We(),on--,Un===r?Ln=void 0:(O=Ln,Ln=r),Ln===r?(O=It,It=r):(ps=It,It=Dt="STRING")),It})()),Or!==r&&(ps=Lr,Or=Rp(Or)),Lr=Or),Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr,It,Dt,Ln,Un,u,yt,Y,Q;if((Or=Mb())===r&&(Or=fc())===r&&(Or=Ji())===r&&(Or=Ri())===r&&(Or=qu())===r&&(Or=Se())===r&&(Or=tf())===r&&(Or=Qu())===r&&(Or=P0()),Or!==r)if((Fr=yn())!==r)if((dr=ve())!==r)if((It=yn())!==r){if(Dt=[],ki.test(t.charAt(O))?(Ln=t.charAt(O),O++):(Ln=r,on===0&&Rs(Hl)),Ln!==r)for(;Ln!==r;)Dt.push(Ln),ki.test(t.charAt(O))?(Ln=t.charAt(O),O++):(Ln=r,on===0&&Rs(Hl));else Dt=r;if(Dt!==r)if((Ln=yn())!==r){if(Un=O,(u=Eu())!==r)if((yt=yn())!==r){if(Y=[],ki.test(t.charAt(O))?(Q=t.charAt(O),O++):(Q=r,on===0&&Rs(Hl)),Q!==r)for(;Q!==r;)Y.push(Q),ki.test(t.charAt(O))?(Q=t.charAt(O),O++):(Q=r,on===0&&Rs(Hl));else Y=r;Y===r?(O=Un,Un=r):Un=u=[u,yt,Y]}else O=Un,Un=r;else O=Un,Un=r;Un===r&&(Un=null),Un!==r&&(u=yn())!==r&&(yt=Jt())!==r&&(Y=yn())!==r?((Q=ll())===r&&(Q=null),Q===r?(O=Lr,Lr=r):(ps=Lr,Tr=Un,P=Q,Or={dataType:Or,length:parseInt(Dt.join(""),10),scale:Tr&&parseInt(Tr[2].join(""),10),parentheses:!0,suffix:P},Lr=Or)):(O=Lr,Lr=r)}else O=Lr,Lr=r;else O=Lr,Lr=r}else O=Lr,Lr=r;else O=Lr,Lr=r;else O=Lr,Lr=r;else O=Lr,Lr=r;var Tr,P;if(Lr===r){if(Lr=O,(Or=Mb())===r&&(Or=fc())===r&&(Or=Ji())===r&&(Or=Ri())===r&&(Or=qu())===r&&(Or=Se())===r&&(Or=tf())===r&&(Or=Qu())===r&&(Or=P0()),Or!==r){if(Fr=[],ki.test(t.charAt(O))?(dr=t.charAt(O),O++):(dr=r,on===0&&Rs(Hl)),dr!==r)for(;dr!==r;)Fr.push(dr),ki.test(t.charAt(O))?(dr=t.charAt(O),O++):(dr=r,on===0&&Rs(Hl));else Fr=r;Fr!==r&&(dr=yn())!==r?((It=ll())===r&&(It=null),It===r?(O=Lr,Lr=r):(ps=Lr,Or=(function(hr,ht,e){return{dataType:hr,length:parseInt(ht.join(""),10),suffix:e}})(Or,Fr,It),Lr=Or)):(O=Lr,Lr=r)}else O=Lr,Lr=r;Lr===r&&(Lr=O,(Or=Mb())===r&&(Or=fc())===r&&(Or=Ji())===r&&(Or=Ri())===r&&(Or=qu())===r&&(Or=Se())===r&&(Or=tf())===r&&(Or=Qu())===r&&(Or=P0()),Or!==r&&(Fr=yn())!==r?((dr=ll())===r&&(dr=null),dr!==r&&(It=yn())!==r?(ps=Lr,Or=(function(hr,ht){return{dataType:hr,suffix:ht}})(Or,dr),Lr=Or):(O=Lr,Lr=r)):(O=Lr,Lr=r))}return Lr})())===r&&(k=(function(){var Lr=O,Or,Fr,dr;if((Or=gc())===r&&(Or=al())===r&&(Or=qc())===r&&(Or=Ba()),Or!==r)if(yn()!==r)if(ve()!==r)if(yn()!==r){if(Fr=[],ki.test(t.charAt(O))?(dr=t.charAt(O),O++):(dr=r,on===0&&Rs(Hl)),dr!==r)for(;dr!==r;)Fr.push(dr),ki.test(t.charAt(O))?(dr=t.charAt(O),O++):(dr=r,on===0&&Rs(Hl));else Fr=r;Fr!==r&&(dr=yn())!==r&&Jt()!==r?(ps=Lr,Or={dataType:Or,length:parseInt(Fr.join(""),10),parentheses:!0},Lr=Or):(O=Lr,Lr=r)}else O=Lr,Lr=r;else O=Lr,Lr=r;else O=Lr,Lr=r;else O=Lr,Lr=r;return Lr===r&&(Lr=O,(Or=gc())===r&&(Or=al())===r&&(Or=qc())===r&&(Or=Ba()),Or!==r&&(ps=Lr,Or=(function(It){return{dataType:It}})(Or)),Lr=Or),Lr})())===r&&(k=(function(){var Lr=O,Or;return(Or=(function(){var Fr,dr,It,Dt;return Fr=O,t.substr(O,4).toLowerCase()==="json"?(dr=t.substr(O,4),O+=4):(dr=r,on===0&&Rs(cv)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="JSON")),Fr})())!==r&&(ps=Lr,Or=Rp(Or)),Lr=Or})())===r&&(k=(function(){var Lr=O,Or;return(Or=(function(){var Fr,dr,It,Dt;return Fr=O,t.substr(O,8).toLowerCase()==="tinytext"?(dr=t.substr(O,8),O+=8):(dr=r,on===0&&Rs(Qv)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="TINYTEXT")),Fr})())===r&&(Or=(function(){var Fr,dr,It,Dt;return Fr=O,t.substr(O,4).toLowerCase()==="text"?(dr=t.substr(O,4),O+=4):(dr=r,on===0&&Rs(Vp)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="TEXT")),Fr})())===r&&(Or=(function(){var Fr,dr,It,Dt;return Fr=O,t.substr(O,10).toLowerCase()==="mediumtext"?(dr=t.substr(O,10),O+=10):(dr=r,on===0&&Rs(dp)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="MEDIUMTEXT")),Fr})())===r&&(Or=(function(){var Fr,dr,It,Dt;return Fr=O,t.substr(O,8).toLowerCase()==="longtext"?(dr=t.substr(O,8),O+=8):(dr=r,on===0&&Rs(Kp)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="LONGTEXT")),Fr})()),Or!==r&&(ps=Lr,Or={dataType:Or}),Lr=Or})()),k}function ll(){var k,Lr,Or;return k=O,(Lr=qi())===r&&(Lr=null),Lr!==r&&yn()!==r?((Or=(function(){var Fr,dr,It,Dt;return Fr=O,t.substr(O,8).toLowerCase()==="zerofill"?(dr=t.substr(O,8),O+=8):(dr=r,on===0&&Rs(pp)),dr===r?(O=Fr,Fr=r):(It=O,on++,Dt=We(),on--,Dt===r?It=void 0:(O=It,It=r),It===r?(O=Fr,Fr=r):(ps=Fr,Fr=dr="ZEROFILL")),Fr})())===r&&(Or=null),Or===r?(O=k,k=r):(ps=k,k=Lr=(function(Fr,dr){let It=[];return Fr&&It.push(Fr),dr&&It.push(dr),It})(Lr,Or))):(O=k,k=r),k}let cl={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CROSS:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,KEY:!0,LEFT:!0,LIKE:!0,LIMIT:!0,LOW_PRIORITY:!0,NOT:!0,NULL:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,READ:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,VALUES:!0,WITH:!0,WHEN:!0,WHERE:!0,WRITE:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0};function a(){return Ce.includeLocations?{loc:ep(ps,O)}:{}}function an(k,Lr){return{type:"unary_expr",operator:k,expr:Lr}}function Ma(k,Lr,Or){return{type:"binary_expr",operator:k,left:Lr,right:Or}}function Da(k){let Lr=To(9007199254740991);return!(To(k)<Lr)}function ii(k,Lr,Or=3){let Fr=[k];for(let dr=0;dr<Lr.length;dr++)delete Lr[dr][Or].tableList,delete Lr[dr][Or].columnList,Fr.push(Lr[dr][Or]);return Fr}function nt(k,Lr){let Or=k;for(let Fr=0;Fr<Lr.length;Fr++)Or=Ma(Lr[Fr][1],Or,Lr[Fr][3]);return Or}function o(k){return rt[k]||k||null}function Zt(k){let Lr=new Set;for(let Or of k.keys()){let Fr=Or.split("::");if(!Fr){Lr.add(Or);break}Fr&&Fr[1]&&(Fr[1]=o(Fr[1])),Lr.add(Fr.join("::"))}return Array.from(Lr)}let ba=[],bu=new Set,Ht=new Set,rt={};if((Ie=ge())!==r&&O===t.length)return Ie;throw Ie!==r&&O<t.length&&Rs({type:"end"}),Np(Hv,Lf<t.length?t.charAt(Lf):null,Lf<t.length?ep(Lf,Lf+1):ep(Lf,Lf))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:ao},ge=ao,Dn=function(d,N){return Sr(d,N)},Pn=function(d,N){return{...d,order_by:N&&N.toLowerCase()}},Ae=function(d,N){return Sr(d,N,1)},ou=kt("IF",!0),Hs="IDENTIFIED",Uo=kt("IDENTIFIED",!1),Ps=kt("WITH",!0),pe=kt("BY",!0),_o=kt("RANDOM",!0),Gi=kt("PASSWORD",!0),mi=kt("AS",!0),Fi=function(d,N){return Sr(d,N)},T0=kt("role",!0),dl=kt("NONE",!0),Gl=kt("SSL",!0),Fl=kt("X509",!0),nc=kt("CIPHER",!0),xc=kt("ISSUER",!0),I0=kt("SUBJECT",!0),ji=function(d,N){return N.prefix=d.toLowerCase(),N},af=kt("REQUIRE",!0),qf=kt("MAX_QUERIES_PER_HOUR",!0),Uc=kt("MAX_UPDATES_PER_HOUR",!0),wc=kt("MAX_CONNECTIONS_PER_HOUR",!0),Ll=kt("MAX_USER_CONNECTIONS",!0),jl=kt("EXPIRE",!0),Oi=kt("DEFAULT",!0),bb=kt("NEVER",!0),Vi=kt("HISTORY",!0),zc=kt("REUSE",!1),kc=kt("CURRENT",!0),vb=kt("OPTIONAL",!0),Zc=kt("FAILED_LOGIN_ATTEMPTS",!0),nl=kt("PASSWORD_LOCK_TIME",!0),Xf=kt("UNBOUNDED",!0),gl=kt("ACCOUNT",!0),lf=kt("LOCK",!0),Jc=kt("UNLOCK",!0),Qc=kt("ATTRIBUTE",!0),gv=kt("CASCADED",!0),g0=kt("LOCAL",!0),Ki=kt("CHECK",!0),Pb=kt("OPTION",!1),ei=kt("ALGORITHM",!0),pb=kt("UNDEFINED",!0),j0=kt("MERGE",!0),B0=kt("TEMPTABLE",!0),Mc=kt("SQL",!0),Cl=kt("SECURITY",!0),$u=kt("DEFINER",!0),r0=kt("INVOKER",!0),zn=function(d,N){return Sr(d,N)},Ss=kt("AUTO_INCREMENT",!0),te=kt("UNIQUE",!0),ce=kt("KEY",!0),He=kt("PRIMARY",!0),Ue=kt("@",!1),Qe=function(){return sr("=",{type:"origin",value:"definer"},{type:"function",name:{name:[{type:"default",value:"current_user"}]},args:{type:"expr_list",value:[]}})},uo=kt("BEFORE",!0),Ao=kt("AFTER",!0),Pu=kt("FOR",!0),Ca=kt("EACH",!0),ku=kt("ROW",!0),ca=kt("STATEMENT",!0),na=kt("FOLLOWS",!0),Qa=kt("PRECEDES",!0),cf=kt("COLUMN_FORMAT",!0),ri=kt("FIXED",!0),t0=kt("DYNAMIC",!0),n0=kt("STORAGE",!0),Dc=kt("DISK",!0),s0=kt("MEMORY",!0),Rv=kt("GENERATED",!0),nv=kt("ALWAYS",!0),sv=kt("STORED",!0),ev=kt("VIRTUAL",!0),yc=kt("if",!0),$c=kt("exists",!0),Sf=kt("first",!0),R0=kt("after",!0),Rl=kt("LESS",!0),ff=kt("THAN",!0),Vf=kt("DROP",!0),Vv=kt("TRUNCATE",!0),db=kt("DISCARD",!0),Of=kt("IMPORT",!0),Pc=kt("COALESCE",!0),H0=kt("ANALYZE",!0),bf=kt("TABLESPACE",!0),Lb=kt("INSTANT",!0),Fa=kt("INPLACE",!0),Kf=kt("COPY",!0),Nv=kt("SHARED",!0),Gb=kt("EXCLUSIVE",!0),hc=kt("CHANGE",!0),Bl=kt("FOREIGN",!0),sl=kt("CONSTRAINT",!0),sc=kt("NOCHECK",!0),Y0=kt("NOT",!0),N0=kt("REPLICATION",!0),ov=kt("FOREIGN KEY",!0),Fb=kt("ENFORCED",!0),e0=kt("MATCH FULL",!0),Cb=kt("MATCH PARTIAL",!0),_0=kt("MATCH SIMPLE",!0),zf=kt("RESTRICT",!0),je=kt("CASCADE",!0),o0=kt("SET NULL",!0),xi=kt("NO ACTION",!0),xf=kt("SET DEFAULT",!0),Zf=kt("CHARACTER",!0),W0=kt("SET",!0),jb=kt("CHARSET",!0),Uf=kt("COLLATE",!0),u0=kt("AVG_ROW_LENGTH",!0),wb=kt("KEY_BLOCK_SIZE",!0),Ui=kt("MAX_ROWS",!0),uv=kt("MIN_ROWS",!0),yb=kt("STATS_SAMPLE_PAGES",!0),hb=kt("CHECKSUM",!1),Kv=kt("DELAY_KEY_WRITE",!1),Gc=/^[01]/,_v=Js(["0","1"],!1,!1),kf=kt("CONNECTION",!0),vf=kt("ENGINE_ATTRIBUTE",!0),ki=kt("SECONDARY_ENGINE_ATTRIBUTE",!0),Hl=kt("DATA",!0),Eb=kt("INDEX",!0),Bb=kt("DIRECTORY",!0),pa=kt("COMPRESSION",!0),wl=kt("'",!1),Nl=kt("ZLIB",!0),Sv=kt("LZ4",!0),Hb=kt("ENGINE",!0),Jf=function(d,N,H){return{keyword:d.toLowerCase(),symbol:N,value:H.toUpperCase()}},pf=kt("ROW_FORMAT",!0),Yb=kt("COMPRESSED",!0),av=kt("REDUNDANT",!0),iv=kt("COMPACT",!0),a0=kt("READ",!0),_l=kt("LOW_PRIORITY",!0),Yl=kt("WRITE",!0),Ab=function(d,N){return Sr(d,N)},Mf=kt("BINARY",!0),Wb=kt("MASTER",!0),Df=kt("LOGS",!0),mb=kt("TRIGGERS",!0),i0=kt("STATUS",!0),ft=kt("PROCESSLIST",!0),tn=kt("PROCEDURE",!0),_n=kt("FUNCTION",!0),En=kt("BINLOG",!0),Os=kt("EVENTS",!0),gs=kt("COLLATION",!0),Ys=kt("DATABASES",!0),Te=kt("COLUMNS",!0),ye=kt("INDEXES",!0),Be=kt("EVENT",!0),io=kt("GRANTS",!0),Ro=kt("SERIALIZABLE",!0),So=kt("REPEATABLE",!0),uu=kt("COMMITTED",!0),ko=kt("UNCOMMITTED",!0),yu=function(d){return{type:"origin",value:"read "+d.toLowerCase()}},au=kt("ISOLATION",!0),Iu=kt("LEVEL",!0),mu=kt("ONLY",!0),Ju=kt("DEFERRABLE",!0),ua=kt("commit",!0),Sa=kt("rollback",!0),ma=kt("begin",!0),Bi=kt("WORK",!0),sa=kt("TRANSACTION",!0),di=kt("start",!0),Hi=kt("transaction",!0),S0=kt("FIELDS",!0),l0=kt("TERMINATED",!0),Ov=kt("OPTIONALLY",!0),lv=kt("ENCLOSED",!0),fi=kt("ESCAPED",!0),Wl=kt("STARTING",!0),ec=kt("LINES",!0),Fc=kt("LOAD",!0),xv=kt("CONCURRENT",!0),lp=kt("INFILE",!0),Uv=kt("INTO",!0),$f=kt("TABLE",!0),Tb=kt("ROWS",!0),cp=kt("VIEW",!0),c0=kt("GRANT",!0),q0=kt("OPTION",!0),df=function(d){return{type:"origin",value:Array.isArray(d)?d[0]:d}},f0=kt("ROUTINE",!0),b0=kt("EXECUTE",!0),Pf=kt("ADMIN",!0),Sp=kt("GRANT",!1),kv=kt("PROXY",!1),Op=kt("(",!1),fp=kt(")",!1),oc=/^[0-9]/,uc=Js([["0","9"]],!1,!1),qb=kt("IN",!0),Gf=kt("SHARE",!0),zv=kt("MODE",!0),Mv=kt("WAIT",!0),Zv=kt("NOWAIT",!0),bp=kt("SKIP",!0),Ib=kt("LOCKED",!0),Dv=kt("NATURAL",!0),vp=kt("LANGUAGE",!0),Jv=kt("QUERY",!0),Xb=kt("EXPANSION",!0),pp=kt("BOOLEAN",!0),xp=kt("MATCH",!0),cv=kt("AGAINST",!1),Up=kt("OUTFILE",!0),Xp=kt("DUMPFILE",!0),Qv=kt("BTREE",!0),Vp=kt("HASH",!0),dp=kt("PARSER",!0),Kp=kt("VISIBLE",!0),ld=kt("INVISIBLE",!0),Lp=kt("LATERAL",!0),Cp=/^[_0-9]/,wp=Js(["_",["0","9"]],!1,!1),gb=kt("ROLLUP",!0),O0=kt("?",!1),v0=kt("=",!1),ac=kt("DUPLICATE",!0),Rb=function(d,N){return tt(d,N)},Ff=function(d){return d[0]+" "+d[2]},kp=kt(">=",!1),Mp=kt(">",!1),rp=kt("<=",!1),yp=kt("<>",!1),hp=kt("<",!1),Ep=kt("!=",!1),Nb=kt("ESCAPE",!0),Qf=kt("+",!1),_b=kt("-",!1),Ap=kt("*",!1),Dp=kt("/",!1),$v=kt("%",!1),$p=kt("||",!1),Pp=kt("div",!0),Pv=kt("mod",!0),Gp=kt("&",!1),Fp=kt(">>",!1),mp=kt("<<",!1),zp=kt("^",!1),Zp=kt("|",!1),Gv=kt("!",!1),tp=kt("~",!1),Fv=kt("?|",!1),yl=kt("?&",!1),jc=kt("#-",!1),fv=kt("#>>",!1),Sl=kt("#>",!1),Ol=kt("@>",!1),np=kt("<@",!1),bv=function(d){return de[d.toUpperCase()]===!0},ql=kt('"',!1),Ec=/^[^"]/,Jp=Js(['"'],!0,!1),Qp=/^[^']/,sp=Js(["'"],!0,!1),jv=kt("`",!1),Tp=/^[^`\\]/,rd=Js(["`","\\"],!0,!1),jp=function(d,N){return d+N.join("")},Ip=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,td=Js([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),nd=/^[A-Za-z0-9_$\x80-\uFFFF]/,Bp=Js([["A","Z"],["a","z"],["0","9"],"_","$",["\x80","\uFFFF"]],!1,!1),Hp=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,gp=Js([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),sd=kt(":",!1),ed=kt("NOW",!0),Yp=kt("OVER",!0),od=kt("WINDOW",!0),ud=kt("FOLLOWING",!0),Rp=kt("PRECEDING",!0),O=kt("SEPARATOR",!0),ps=kt("YEAR_MONTH",!0),Bv=kt("DAY_HOUR",!0),Lf=kt("DAY_MINUTE",!0),Hv=kt("DAY_SECOND",!0),on=kt("DAY_MICROSECOND",!0),zs=kt("HOUR_MINUTE",!0),Bc=kt("HOUR_SECOND",!0),vv=kt("HOUR_MICROSECOND",!0),ep=kt("MINUTE_SECOND",!0),Rs=kt("MINUTE_MICROSECOND",!0),Np=kt("SECOND_MICROSECOND",!0),Wp=kt("TIMEZONE_HOUR",!0),cd=kt("TIMEZONE_MINUTE",!0),Vb=kt("CENTURY",!0),_=kt("DAY",!0),Ls=kt("DATE",!0),pv=kt("DECADE",!0),Cf=kt("DOW",!0),dv=kt("DOY",!0),Qt=kt("EPOCH",!0),Xs=kt("HOUR",!0),ic=kt("ISODOW",!0),op=kt("ISOWEEK",!0),Kb=kt("ISOYEAR",!0),ys=kt("MICROSECONDS",!0),_p=kt("MILLENNIUM",!0),Yv=kt("MILLISECONDS",!0),Lv=kt("MINUTE",!0),Wv=kt("MONTH",!0),zb=kt("QUARTER",!0),wf=kt("SECOND",!0),qv=kt("TIME",!0),Cv=kt("TIMEZONE",!0),rb=kt("WEEK",!0),tb=kt("YEAR",!0),I=kt("DATE_TRUNC",!0),us=kt("BOTH",!0),Sb=kt("LEADING",!0),xl=kt("TRAILING",!0),nb=kt("trim",!0),zt=kt("convert",!0),$s=kt("binary",!0),ja=kt("_binary",!0),Ob=kt("_latin1",!0),jf=kt("X",!0),is=/^[0-9A-Fa-f]/,el=Js([["0","9"],["A","F"],["a","f"]],!1,!1),Ti=kt("b",!0),wv=kt("0x",!0),yf=kt("N",!0),X0=function(d,N){return{type:d.toLowerCase(),value:N[1].join("")}},p0=/^[^"\\\0-\x1F\x7F]/,up=Js(['"',"\\",["\0",""],"\x7F"],!0,!1),xb=/^[\n]/,Zb=Js([` +`],!1,!1),yv=/^[^'\\]/,Jb=Js(["'","\\"],!0,!1),hv=kt("\\'",!1),h=kt('\\"',!1),ss=kt("\\\\",!1),Xl=kt("\\/",!1),d0=kt("\\b",!1),Bf=kt("\\f",!1),jt=kt("\\n",!1),Us=kt("\\r",!1),ol=kt("\\t",!1),sb=kt("\\u",!1),eb=kt("\\",!1),p=kt("''",!1),ns=kt('""',!1),Vl=kt("``",!1),Hc=/^[\n\r]/,Ub=Js([` +`,"\r"],!1,!1),Ft=kt(".",!1),xs=/^[0-9a-fA-F]/,Li=Js([["0","9"],["a","f"],["A","F"]],!1,!1),Ta=/^[eE]/,x0=Js(["e","E"],!1,!1),Zn=/^[+\-]/,kb=Js(["+","-"],!1,!1),U0=kt("NULL",!0),C=kt("NOT NULL",!0),Kn=kt("TRUE",!0),zi=kt("TO",!0),Kl=kt("FALSE",!0),zl=kt("SHOW",!0),Ot=kt("USE",!0),hs=kt("ALTER",!0),Yi=kt("SELECT",!0),hl=kt("UPDATE",!0),L0=kt("CREATE",!0),Bn=kt("TEMPORARY",!0),Qb=kt("DELETE",!0),C0=kt("INSERT",!0),Hf=kt("RECURSIVE",!0),k0=kt("REPLACE",!0),M0=kt("RENAME",!0),Wi=kt("IGNORE",!0),wa=kt("EXPLAIN",!0),Oa=kt("PARTITION",!0),ti=kt("FROM",!0),We=kt("TRIGGER",!0),ob=kt("TABLES",!0),V0=kt("DATABASE",!0),hf=kt("SCHEMA",!0),Ef=kt("ON",!0),K0=kt("LEFT",!0),Af=kt("RIGHT",!0),El=kt("FULL",!0),w0=kt("INNER",!0),ul=kt("CROSS",!0),Ye=kt("JOIN",!0),mf=kt("OUTER",!0),z0=kt("UNION",!0),ub=kt("MINUS",!0),Su=kt("INTERSECT",!0),Al=kt("EXCEPT",!0),D0=kt("VALUES",!0),Ac=kt("USING",!0),mc=kt("WHERE",!0),Tc=kt("GO",!0),y0=kt("GROUP",!0),bi=kt("ORDER",!0),Yc=kt("HAVING",!0),Z0=kt("LIMIT",!0),lc=kt("OFFSET",!0),Ic=kt("ASC",!0),ab=kt("DESC",!0),J0=kt("DESCRIBE",!0),ml=kt("ALL",!0),Ul=kt("DISTINCT",!0),aa=kt("BETWEEN",!0),Tf=kt("IS",!0),If=kt("LIKE",!0),Tl=kt("RLIKE",!0),Ci=kt("REGEXP",!0),Q0=kt("EXISTS",!0),ib=kt("AND",!0),fa=kt("OR",!0),Zi=kt("COUNT",!0),rf=kt("GROUP_CONCAT",!0),Ii=kt("MAX",!0),Ge=kt("MIN",!0),$0=kt("SUM",!0),gf=kt("AVG",!0),Zl=kt("EXTRACT",!0),Xa=kt("CALL",!0),cc=kt("CASE",!0),h0=kt("WHEN",!0),n=kt("THEN",!0),st=kt("ELSE",!0),gi=kt("END",!0),xa=kt("CAST",!0),Ra=kt("VARBINARY",!0),or=kt("BIT",!0),Nt=kt("CHAR",!0),ju=kt("VARCHAR",!0),Il=kt("NUMERIC",!0),Wc=kt("DECIMAL",!0),Kr=kt("SIGNED",!0),Mb=kt("UNSIGNED",!0),fc=kt("INT",!0),qi=kt("ZEROFILL",!0),Ji=kt("INTEGER",!0),Ri=kt("JSON",!0),qu=kt("SMALLINT",!0),Se=kt("MEDIUMINT",!0),tf=kt("TINYINT",!0),Qu=kt("TINYTEXT",!0),P0=kt("TEXT",!0),gc=kt("MEDIUMTEXT",!0),al=kt("LONGTEXT",!0),Jl=kt("BIGINT",!0),qc=kt("ENUM",!0),Ba=kt("FLOAT",!0),Qi=kt("DOUBLE",!0),ya=kt("DATETIME",!0),l=kt("TIMESTAMP",!0),dn=kt("USER",!0),Ql=kt("CURRENT_DATE",!0),vi=kt("INTERVAL",!0),Va=kt("MICROSECOND",!0),lt=kt("CURRENT_TIME",!0),Wn=kt("CURRENT_TIMESTAMP",!0),Eu=kt("CURRENT_USER",!0),ia=kt("SESSION_USER",!0),ve=kt("SYSTEM_USER",!0),Jt=kt("GLOBAL",!0),nf=kt("SESSION",!0),E0=kt("PERSIST",!0),kl=kt("PERSIST_ONLY",!0),oi=kt("GEOMETRY",!0),yn=kt("POINT",!0),ka=kt("LINESTRING",!0),Ua=kt("POLYGON",!0),Ou=kt("MULTIPOINT",!0),il=kt("MULTILINESTRING",!0),zu=kt("MULTIPOLYGON",!0),Yu=kt("GEOMETRYCOLLECTION",!0),lb=kt("@@",!1),Mi=kt("$",!1),ha=kt("return",!0),Ha=kt(":=",!1),ln=kt("DUAL",!0),Oe=kt("ADD",!0),Di=kt("COLUMN",!0),Ya=kt("MODIFY",!0),ni=kt("FULLTEXT",!0),ui=kt("SPATIAL",!0),$i=kt("COMMENT",!0),ai=kt("REFERENCES",!0),ll=kt("SQL_CALC_FOUND_ROWS",!0),cl=kt("SQL_CACHE",!0),a=kt("SQL_NO_CACHE",!0),an=kt("SQL_SMALL_RESULT",!0),Ma=kt("SQL_BIG_RESULT",!0),Da=kt("SQL_BUFFER_RESULT",!0),ii=kt(",",!1),nt=kt("[",!1),o=kt("]",!1),Zt=kt(";",!1),ba=kt("->",!1),bu=kt("->>",!1),Ht=kt("&&",!1),rt=kt("XOR",!0),k=kt("/*",!1),Lr=kt("*/",!1),Or=kt("--",!1),Fr=kt("#",!1),dr={type:"any"},It=/^[ \t\n\r]/,Dt=Js([" "," ",` +`,"\r"],!1,!1),Ln=function(d,N,H){return{type:"assign",left:d,symbol:N,right:H}},Un=kt("boolean",!0),u=kt("blob",!0),yt=kt("tinyblob",!0),Y=kt("mediumblob",!0),Q=kt("longblob",!0),Tr=function(d,N){return{dataType:d,...N||{}}},P=kt("ARRAY",!0),hr=/^[0-6]/,ht=Js([["0","6"]],!1,!1),e=0,Pr=0,Mr=[{line:1,column:1}],kn=0,Yn=[],K=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function kt(d,N){return{type:"literal",text:d,ignoreCase:N}}function Js(d,N,H){return{type:"class",parts:d,inverted:N,ignoreCase:H}}function Ve(d){var N,H=Mr[d];if(H)return H;for(N=d-1;!Mr[N];)N--;for(H={line:(H=Mr[N]).line,column:H.column};N<d;)t.charCodeAt(N)===10?(H.line++,H.column=1):H.column++,N++;return Mr[d]=H,H}function co(d,N){var H=Ve(d),X=Ve(N);return{start:{offset:d,line:H.line,column:H.column},end:{offset:N,line:X.line,column:X.column}}}function _t(d){e<kn||(e>kn&&(kn=e,Yn=[]),Yn.push(d))}function Eo(d,N,H){return new go(go.buildMessage(d,N),d,N,H)}function ao(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=zo())!==r)if(Wr()!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Et())!==r&&(i=Wr())!==r&&(b=zo())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Et())!==r&&(i=Wr())!==r&&(b=zo())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){if(!x||x.length===0)return m;delete m.tableList,delete m.columnList;let tr=m;for(let Cr=0;Cr<x.length;Cr++)delete x[Cr][3].tableList,delete x[Cr][3].columnList,tr.go_next=x[Cr][3],tr.go="go",tr=tr.go_next;return{tableList:Array.from(Tn),columnList:Xt(jn),ast:m}})(N,H))}else e=d,d=r;else e=d,d=r;return d}function zo(){var d,N;return d=e,Wr()!==r&&(N=(function(){var H,X,lr,wr,i,b,m,x;if(H=e,(X=Ke())!==r){for(lr=[],wr=e,(i=Wr())!==r&&(b=Mo())!==r&&(m=Wr())!==r&&(x=Ke())!==r?wr=i=[i,b,m,x]:(e=wr,wr=r);wr!==r;)lr.push(wr),wr=e,(i=Wr())!==r&&(b=Mo())!==r&&(m=Wr())!==r&&(x=Ke())!==r?wr=i=[i,b,m,x]:(e=wr,wr=r);lr===r?(e=H,H=r):(Pr=H,X=(function(tr,Cr){let gr=tr&&tr.ast||tr,Yr=Cr&&Cr.length&&Cr[0].length>=4?[gr]:gr;for(let Rt=0;Rt<Cr.length;Rt++)Cr[Rt][3]&&Cr[Rt][3].length!==0&&Yr.push(Cr[Rt][3]&&Cr[Rt][3].ast||Cr[Rt][3]);return{tableList:Array.from(Tn),columnList:Xt(jn),ast:Yr}})(X,lr),H=X)}else e=H,H=r;return H})())!==r?(Pr=d,d=N):(e=d,d=r),d}function no(){var d;return(d=(function(){var N=e,H,X,lr,wr,i,b;(H=_c())!==r&&Wr()!==r&&(X=va())!==r&&Wr()!==r?((lr=rl())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=me())!==r?(Pr=N,m=H,x=X,tr=lr,(Cr=wr)&&Cr.forEach(gr=>Tn.add(`${m}::${gr.db}::${gr.table}`)),H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:m.toLowerCase(),keyword:x.toLowerCase(),prefix:tr,name:Cr}},N=H):(e=N,N=r)):(e=N,N=r);var m,x,tr,Cr;return N===r&&(N=e,(H=_c())!==r&&Wr()!==r&&(X=Pt())!==r&&Wr()!==r?((lr=rl())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=me())!==r&&Wr()!==r?((i=ur())===r&&(i=null),i===r?(e=N,N=r):(Pr=N,H=(function(gr,Yr,Rt,gt,Gt){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:gr.toLowerCase(),keyword:Yr.toLowerCase(),prefix:Rt,name:gt,options:Gt&&[{type:"origin",value:Gt}]}}})(H,X,lr,wr,i),N=H)):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,(H=_c())!==r&&Wr()!==r&&(X=_s())!==r&&Wr()!==r&&(lr=Je())!==r&&Wr()!==r&&(wr=R())!==r&&Wr()!==r&&(i=$o())!==r&&Wr()!==r?((b=(function(){var gr=e,Yr,Rt,gt,Gt,rn;if((Yr=tl())===r&&(Yr=Dl()),Yr!==r){for(Rt=[],gt=e,(Gt=Wr())===r?(e=gt,gt=r):((rn=tl())===r&&(rn=Dl()),rn===r?(e=gt,gt=r):gt=Gt=[Gt,rn]);gt!==r;)Rt.push(gt),gt=e,(Gt=Wr())===r?(e=gt,gt=r):((rn=tl())===r&&(rn=Dl()),rn===r?(e=gt,gt=r):gt=Gt=[Gt,rn]);Rt===r?(e=gr,gr=r):(Pr=gr,Yr=Ae(Yr,Rt),gr=Yr)}else e=gr,gr=r;return gr})())===r&&(b=null),b!==r&&Wr()!==r?(Pr=N,H=(function(gr,Yr,Rt,gt,Gt){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:gr.toLowerCase(),keyword:Yr.toLowerCase(),name:Rt,table:gt,options:Gt}}})(H,X,lr,i,b),N=H):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,(H=_c())!==r&&Wr()!==r?((X=ot())===r&&(X=Xv()),X!==r&&Wr()!==r?((lr=rl())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=cu())!==r?(Pr=N,H=(function(gr,Yr,Rt,gt){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:gr.toLowerCase(),keyword:Yr.toLowerCase(),prefix:Rt,name:gt}}})(H,X,lr,wr),N=H):(e=N,N=r)):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,(H=_c())!==r&&Wr()!==r&&(X=Nf())!==r&&Wr()!==r?((lr=rl())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=eo())!==r?(Pr=N,H=(function(gr,Yr,Rt,gt){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:gr.toLowerCase(),keyword:Yr.toLowerCase(),prefix:Rt,name:[{schema:gt.db,trigger:gt.table}]}}})(H,X,lr,wr),N=H):(e=N,N=r)):(e=N,N=r))))),N})())===r&&(d=(function(){var N;return(N=(function(){var H=e,X,lr,wr,i,b,m,x,tr,Cr;(X=Uu())!==r&&Wr()!==r?((lr=Sc())===r&&(lr=null),lr!==r&&Wr()!==r&&va()!==r&&Wr()!==r?((wr=Au())===r&&(wr=null),wr!==r&&Wr()!==r&&(i=$o())!==r&&Wr()!==r&&(b=(function rn(){var xn,f;(xn=(function(){var S=e,W;return ie()!==r&&Wr()!==r&&(W=me())!==r?(Pr=S,S={type:"like",table:W}):(e=S,S=r),S})())===r&&(xn=e,mo()!==r&&Wr()!==r&&(f=rn())!==r&&Wr()!==r&&ho()!==r?(Pr=xn,(y=f).parentheses=!0,xn=y):(e=xn,xn=r));var y;return xn})())!==r?(Pr=H,gr=X,Yr=lr,Rt=wr,Gt=b,(gt=i)&&Tn.add(`create::${gt.db}::${gt.table}`),X={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:gr[0].toLowerCase(),keyword:"table",temporary:Yr&&Yr[0].toLowerCase(),if_not_exists:Rt,table:[gt],like:Gt}},H=X):(e=H,H=r)):(e=H,H=r)):(e=H,H=r);var gr,Yr,Rt,gt,Gt;return H===r&&(H=e,(X=Uu())!==r&&Wr()!==r?((lr=Sc())===r&&(lr=null),lr!==r&&Wr()!==r&&va()!==r&&Wr()!==r?((wr=Au())===r&&(wr=null),wr!==r&&Wr()!==r&&(i=$o())!==r&&Wr()!==r?((b=(function(){var rn,xn,f,y,S,W,vr,_r,$r;if(rn=e,(xn=mo())!==r)if(Wr()!==r)if((f=ta())!==r){for(y=[],S=e,(W=Wr())!==r&&(vr=Me())!==r&&(_r=Wr())!==r&&($r=ta())!==r?S=W=[W,vr,_r,$r]:(e=S,S=r);S!==r;)y.push(S),S=e,(W=Wr())!==r&&(vr=Me())!==r&&(_r=Wr())!==r&&($r=ta())!==r?S=W=[W,vr,_r,$r]:(e=S,S=r);y!==r&&(S=Wr())!==r&&(W=ho())!==r?(Pr=rn,xn=zn(f,y),rn=xn):(e=rn,rn=r)}else e=rn,rn=r;else e=rn,rn=r;else e=rn,rn=r;return rn})())===r&&(b=null),b!==r&&Wr()!==r?((m=(function(){var rn,xn,f,y,S,W,vr,_r;if(rn=e,(xn=er())!==r){for(f=[],y=e,(S=Wr())===r?(e=y,y=r):((W=Me())===r&&(W=null),W!==r&&(vr=Wr())!==r&&(_r=er())!==r?y=S=[S,W,vr,_r]:(e=y,y=r));y!==r;)f.push(y),y=e,(S=Wr())===r?(e=y,y=r):((W=Me())===r&&(W=null),W!==r&&(vr=Wr())!==r&&(_r=er())!==r?y=S=[S,W,vr,_r]:(e=y,y=r));f===r?(e=rn,rn=r):(Pr=rn,xn=Dn(xn,f),rn=xn)}else e=rn,rn=r;return rn})())===r&&(m=null),m!==r&&Wr()!==r?((x=Oc())===r&&(x=qa()),x===r&&(x=null),x!==r&&Wr()!==r?((tr=G0())===r&&(tr=null),tr!==r&&Wr()!==r?((Cr=lo())===r&&(Cr=null),Cr===r?(e=H,H=r):(Pr=H,X=(function(rn,xn,f,y,S,W,vr,_r,$r){return y&&Tn.add(`create::${y.db}::${y.table}`),{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:rn[0].toLowerCase(),keyword:"table",temporary:xn&&xn[0].toLowerCase(),if_not_exists:f,table:[y],ignore_replace:vr&&vr[0].toLowerCase(),as:_r&&_r[0].toLowerCase(),query_expr:$r&&$r.ast,create_definitions:S,table_options:W}}})(X,lr,wr,i,b,m,x,tr,Cr),H=X)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)),H})())===r&&(N=(function(){var H=e,X,lr,wr,i,b,m,x,tr,Cr,gr;(X=Uu())!==r&&Wr()!==r?((lr=Ml())===r&&(lr=null),lr!==r&&Wr()!==r&&Nf()!==r&&Wr()!==r?((wr=Au())===r&&(wr=null),wr!==r&&Wr()!==r&&(i=$o())!==r&&Wr()!==r&&(b=(function(){var vr;return t.substr(e,6).toLowerCase()==="before"?(vr=t.substr(e,6),e+=6):(vr=r,K===0&&_t(uo)),vr===r&&(t.substr(e,5).toLowerCase()==="after"?(vr=t.substr(e,5),e+=5):(vr=r,K===0&&_t(Ao))),vr})())!==r&&Wr()!==r&&(m=(function(){var vr=e,_r;return(_r=Xc())===r&&(_r=ip())===r&&(_r=of()),_r!==r&&(Pr=vr,_r={keyword:_r[0].toLowerCase()}),vr=_r})())!==r&&Wr()!==r&&R()!==r&&Wr()!==r&&(x=$o())!==r&&Wr()!==r&&(tr=(function(){var vr=e,_r,$r,at;t.substr(e,3).toLowerCase()==="for"?(_r=t.substr(e,3),e+=3):(_r=r,K===0&&_t(Pu)),_r!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="each"?($r=t.substr(e,4),e+=4):($r=r,K===0&&_t(Ca)),$r===r&&($r=null),$r!==r&&Wr()!==r?(t.substr(e,3).toLowerCase()==="row"?(at=t.substr(e,3),e+=3):(at=r,K===0&&_t(ku)),at===r&&(t.substr(e,9).toLowerCase()==="statement"?(at=t.substr(e,9),e+=9):(at=r,K===0&&_t(ca))),at===r?(e=vr,vr=r):(Pr=vr,St=_r,sn=at,_r={keyword:(Kt=$r)?`${St.toLowerCase()} ${Kt.toLowerCase()}`:St.toLowerCase(),args:sn.toLowerCase()},vr=_r)):(e=vr,vr=r)):(e=vr,vr=r);var St,Kt,sn;return vr})())!==r&&Wr()!==r?((Cr=(function(){var vr=e,_r,$r;return t.substr(e,7).toLowerCase()==="follows"?(_r=t.substr(e,7),e+=7):(_r=r,K===0&&_t(na)),_r===r&&(t.substr(e,8).toLowerCase()==="precedes"?(_r=t.substr(e,8),e+=8):(_r=r,K===0&&_t(Qa))),_r!==r&&Wr()!==r&&($r=qs())!==r?(Pr=vr,vr=_r={keyword:_r,trigger:$r}):(e=vr,vr=r),vr})())===r&&(Cr=null),Cr!==r&&Wr()!==r&&(gr=(function(){var vr=e,_r;return m0()!==r&&Wr()!==r&&(_r=ct())!==r?(Pr=vr,vr={type:"set",expr:_r}):(e=vr,vr=r),vr})())!==r?(Pr=H,Yr=X,Rt=lr,gt=wr,Gt=i,rn=b,xn=m,f=x,y=tr,S=Cr,W=gr,X={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:Yr[0].toLowerCase(),definer:Rt,keyword:"trigger",for_each:y,if_not_exists:gt,trigger:Gt,time:rn,events:[xn],order:S,table:f,execute:W}},H=X):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r);var Yr,Rt,gt,Gt,rn,xn,f,y,S,W;return H})())===r&&(N=(function(){var H=e,X,lr,wr,i,b,m,x,tr,Cr,gr,Yr;(X=Uu())!==r&&Wr()!==r?((lr=oo())===r&&(lr=Pe())===r&&(lr=jr()),lr===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=_s())!==r&&Wr()!==r&&(i=qs())!==r&&Wr()!==r?((b=fe())===r&&(b=null),b!==r&&Wr()!==r&&(m=R())!==r&&Wr()!==r&&(x=$o())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(tr=(function(){var $r,at,St,Kt,sn,Nn,Xn,Gn;if($r=e,(at=Co())!==r){for(St=[],Kt=e,(sn=Wr())!==r&&(Nn=Me())!==r&&(Xn=Wr())!==r&&(Gn=Co())!==r?Kt=sn=[sn,Nn,Xn,Gn]:(e=Kt,Kt=r);Kt!==r;)St.push(Kt),Kt=e,(sn=Wr())!==r&&(Nn=Me())!==r&&(Xn=Wr())!==r&&(Gn=Co())!==r?Kt=sn=[sn,Nn,Xn,Gn]:(e=Kt,Kt=r);St===r?(e=$r,$r=r):(Pr=$r,at=Dn(at,St),$r=at)}else e=$r,$r=r;return $r})())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?((Cr=ne())===r&&(Cr=null),Cr!==r&&Wr()!==r?((gr=tl())===r&&(gr=null),gr!==r&&Wr()!==r?((Yr=Dl())===r&&(Yr=null),Yr!==r&&Wr()!==r?(Pr=H,Rt=X,gt=lr,Gt=wr,rn=i,xn=b,f=m,y=x,S=tr,W=Cr,vr=gr,_r=Yr,X={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:Rt[0].toLowerCase(),index_type:gt&>.toLowerCase(),keyword:Gt.toLowerCase(),index:rn,on_kw:f[0].toLowerCase(),table:y,index_columns:S,index_using:xn,index_options:W,algorithm_option:vr,lock_option:_r}},H=X):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r);var Rt,gt,Gt,rn,xn,f,y,S,W,vr,_r;return H})())===r&&(N=(function(){var H=e,X,lr,wr,i,b;return(X=Uu())!==r&&Wr()!==r?((lr=ot())===r&&(lr=Xv()),lr!==r&&Wr()!==r?((wr=Au())===r&&(wr=null),wr!==r&&Wr()!==r&&(i=Dr())!==r&&Wr()!==r?((b=(function(){var m,x,tr,Cr,gr,Yr;if(m=e,(x=s())!==r){for(tr=[],Cr=e,(gr=Wr())!==r&&(Yr=s())!==r?Cr=gr=[gr,Yr]:(e=Cr,Cr=r);Cr!==r;)tr.push(Cr),Cr=e,(gr=Wr())!==r&&(Yr=s())!==r?Cr=gr=[gr,Yr]:(e=Cr,Cr=r);tr===r?(e=m,m=r):(Pr=m,x=Ae(x,tr),m=x)}else e=m,m=r;return m})())===r&&(b=null),b===r?(e=H,H=r):(Pr=H,X=(function(m,x,tr,Cr,gr){let Yr=x.toLowerCase();return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:m[0].toLowerCase(),keyword:Yr,if_not_exists:tr,[Yr]:{db:Cr.schema,schema:Cr.name},create_definitions:gr}}})(X,lr,wr,i,b),H=X)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r),H})())===r&&(N=(function(){var H=e,X,lr,wr,i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S,W;return(X=Uu())!==r&&Wr()!==r?(lr=e,(wr=iu())!==r&&(i=Wr())!==r&&(b=qa())!==r?lr=wr=[wr,i,b]:(e=lr,lr=r),lr===r&&(lr=null),lr!==r&&(wr=Wr())!==r?(i=e,t.substr(e,9).toLowerCase()==="algorithm"?(b=t.substr(e,9),e+=9):(b=r,K===0&&_t(ei)),b!==r&&(m=Wr())!==r&&(x=Mn())!==r&&(tr=Wr())!==r?(t.substr(e,9).toLowerCase()==="undefined"?(Cr=t.substr(e,9),e+=9):(Cr=r,K===0&&_t(pb)),Cr===r&&(t.substr(e,5).toLowerCase()==="merge"?(Cr=t.substr(e,5),e+=5):(Cr=r,K===0&&_t(j0)),Cr===r&&(t.substr(e,9).toLowerCase()==="temptable"?(Cr=t.substr(e,9),e+=9):(Cr=r,K===0&&_t(B0)))),Cr===r?(e=i,i=r):i=b=[b,m,x,tr,Cr]):(e=i,i=r),i===r&&(i=null),i!==r&&(b=Wr())!==r?((m=Ml())===r&&(m=null),m!==r&&(x=Wr())!==r?(tr=e,t.substr(e,3).toLowerCase()==="sql"?(Cr=t.substr(e,3),e+=3):(Cr=r,K===0&&_t(Mc)),Cr!==r&&(gr=Wr())!==r?(t.substr(e,8).toLowerCase()==="security"?(Yr=t.substr(e,8),e+=8):(Yr=r,K===0&&_t(Cl)),Yr!==r&&(Rt=Wr())!==r?(t.substr(e,7).toLowerCase()==="definer"?(gt=t.substr(e,7),e+=7):(gt=r,K===0&&_t($u)),gt===r&&(t.substr(e,7).toLowerCase()==="invoker"?(gt=t.substr(e,7),e+=7):(gt=r,K===0&&_t(r0))),gt===r?(e=tr,tr=r):tr=Cr=[Cr,gr,Yr,Rt,gt]):(e=tr,tr=r)):(e=tr,tr=r),tr===r&&(tr=null),tr!==r&&(Cr=Wr())!==r&&(gr=Pt())!==r&&(Yr=Wr())!==r&&(Rt=$o())!==r&&(gt=Wr())!==r?(Gt=e,(rn=mo())!==r&&(xn=Wr())!==r&&(f=hu())!==r&&(y=Wr())!==r&&(S=ho())!==r?Gt=rn=[rn,xn,f,y,S]:(e=Gt,Gt=r),Gt===r&&(Gt=null),Gt!==r&&(rn=Wr())!==r&&(xn=G0())!==r&&(f=Wr())!==r&&(y=bt())!==r&&(S=Wr())!==r?((W=(function(){var vr=e,_r,$r,at,St;return(_r=it())!==r&&Wr()!==r?(t.substr(e,8).toLowerCase()==="cascaded"?($r=t.substr(e,8),e+=8):($r=r,K===0&&_t(gv)),$r===r&&(t.substr(e,5).toLowerCase()==="local"?($r=t.substr(e,5),e+=5):($r=r,K===0&&_t(g0))),$r!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="check"?(at=t.substr(e,5),e+=5):(at=r,K===0&&_t(Ki)),at!==r&&Wr()!==r?(t.substr(e,6)==="OPTION"?(St="OPTION",e+=6):(St=r,K===0&&_t(Pb)),St===r?(e=vr,vr=r):(Pr=vr,_r=(function(Kt){return`with ${Kt.toLowerCase()} check option`})($r),vr=_r)):(e=vr,vr=r)):(e=vr,vr=r)):(e=vr,vr=r),vr===r&&(vr=e,(_r=it())!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="check"?($r=t.substr(e,5),e+=5):($r=r,K===0&&_t(Ki)),$r!==r&&Wr()!==r?(t.substr(e,6)==="OPTION"?(at="OPTION",e+=6):(at=r,K===0&&_t(Pb)),at===r?(e=vr,vr=r):(Pr=vr,vr=_r="with check option")):(e=vr,vr=r)):(e=vr,vr=r)),vr})())===r&&(W=null),W===r?(e=H,H=r):(Pr=H,X=(function(vr,_r,$r,at,St,Kt,sn,Nn,Xn){return Kt.view=Kt.table,delete Kt.table,{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:vr[0].toLowerCase(),keyword:"view",replace:_r&&"or replace",algorithm:$r&&$r[4],definer:at,sql_security:St&&St[4],columns:sn&&sn[2],select:Nn,view:Kt,with:Xn}}})(X,lr,i,m,tr,Rt,Gt,y,W),H=X)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r),H})())===r&&(N=(function(){var H=e,X,lr,wr,i,b,m,x,tr,Cr,gr;return(X=Uu())!==r&&Wr()!==r&&g()!==r&&Wr()!==r?((lr=Au())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=(function(){var Yr,Rt,gt,Gt,rn,xn,f,y;if(Yr=e,(Rt=la())!==r){for(gt=[],Gt=e,(rn=Wr())!==r&&(xn=Me())!==r&&(f=Wr())!==r&&(y=la())!==r?Gt=rn=[rn,xn,f,y]:(e=Gt,Gt=r);Gt!==r;)gt.push(Gt),Gt=e,(rn=Wr())!==r&&(xn=Me())!==r&&(f=Wr())!==r&&(y=la())!==r?Gt=rn=[rn,xn,f,y]:(e=Gt,Gt=r);gt===r?(e=Yr,Yr=r):(Pr=Yr,Rt=Fi(Rt,gt),Yr=Rt)}else e=Yr,Yr=r;return Yr})())!==r&&Wr()!==r?((i=(function(){var Yr=e,Rt,gt;return mv()!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="role"?(Rt=t.substr(e,4),e+=4):(Rt=r,K===0&&_t(T0)),Rt!==r&&Wr()!==r&&(gt=Ds())!==r?(Pr=Yr,Yr={keyword:"default role",value:gt}):(e=Yr,Yr=r)):(e=Yr,Yr=r),Yr})())===r&&(i=null),i!==r&&Wr()!==r?((b=(function(){var Yr=e,Rt,gt;return t.substr(e,7).toLowerCase()==="require"?(Rt=t.substr(e,7),e+=7):(Rt=r,K===0&&_t(af)),Rt!==r&&Wr()!==r&&(gt=(function(){var Gt,rn,xn,f,y,S,W,vr;if(Gt=e,(rn=da())!==r){for(xn=[],f=e,(y=Wr())!==r&&(S=Gs())!==r&&(W=Wr())!==r&&(vr=da())!==r?f=y=[y,S,W,vr]:(e=f,f=r);f!==r;)xn.push(f),f=e,(y=Wr())!==r&&(S=Gs())!==r&&(W=Wr())!==r&&(vr=da())!==r?f=y=[y,S,W,vr]:(e=f,f=r);xn===r?(e=Gt,Gt=r):(Pr=Gt,rn=tt(rn,xn),Gt=rn)}else e=Gt,Gt=r;return Gt})())!==r?(Pr=Yr,Yr=Rt={keyword:"require",value:gt}):(e=Yr,Yr=r),Yr})())===r&&(b=null),b!==r&&Wr()!==r?((m=(function(){var Yr,Rt,gt,Gt,rn,xn,f;if(Yr=e,(Rt=it())!==r)if(Wr()!==r)if((gt=Ia())!==r){for(Gt=[],rn=e,(xn=Wr())!==r&&(f=Ia())!==r?rn=xn=[xn,f]:(e=rn,rn=r);rn!==r;)Gt.push(rn),rn=e,(xn=Wr())!==r&&(f=Ia())!==r?rn=xn=[xn,f]:(e=rn,rn=r);Gt===r?(e=Yr,Yr=r):(Pr=Yr,Rt=(function(y,S){let W=[y];if(S)for(let vr of S)W.push(vr[1]);return{keyword:"with",value:W}})(gt,Gt),Yr=Rt)}else e=Yr,Yr=r;else e=Yr,Yr=r;else e=Yr,Yr=r;return Yr})())===r&&(m=null),m!==r&&Wr()!==r?((x=(function(){var Yr,Rt,gt,Gt,rn,xn;if(Yr=e,(Rt=Wt())!==r){for(gt=[],Gt=e,(rn=Wr())!==r&&(xn=Wt())!==r?Gt=rn=[rn,xn]:(e=Gt,Gt=r);Gt!==r;)gt.push(Gt),Gt=e,(rn=Wr())!==r&&(xn=Wt())!==r?Gt=rn=[rn,xn]:(e=Gt,Gt=r);gt===r?(e=Yr,Yr=r):(Pr=Yr,Rt=Sr(Rt,gt,1),Yr=Rt)}else e=Yr,Yr=r;return Yr})())===r&&(x=null),x!==r&&Wr()!==r?((tr=(function(){var Yr=e,Rt,gt;return t.substr(e,7).toLowerCase()==="account"?(Rt=t.substr(e,7),e+=7):(Rt=r,K===0&&_t(gl)),Rt!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="lock"?(gt=t.substr(e,4),e+=4):(gt=r,K===0&&_t(lf)),gt===r&&(t.substr(e,6).toLowerCase()==="unlock"?(gt=t.substr(e,6),e+=6):(gt=r,K===0&&_t(Jc))),gt===r?(e=Yr,Yr=r):(Pr=Yr,Rt=(function(Gt){return{type:"origin",value:Gt.toLowerCase(),prefix:"account"}})(gt),Yr=Rt)):(e=Yr,Yr=r),Yr})())===r&&(tr=null),tr!==r&&Wr()!==r?((Cr=Fu())===r&&(Cr=null),Cr!==r&&Wr()!==r?((gr=(function(){var Yr=e,Rt,gt;t.substr(e,9).toLowerCase()==="attribute"?(Rt=t.substr(e,9),e+=9):(Rt=r,K===0&&_t(Qc)),Rt!==r&&Wr()!==r&&(gt=Ei())!==r?(Pr=Yr,(Gt=gt).prefix="attribute",Yr=Rt=Gt):(e=Yr,Yr=r);var Gt;return Yr})())===r&&(gr=null),gr===r?(e=H,H=r):(Pr=H,X=(function(Yr,Rt,gt,Gt,rn,xn,f,y,S,W,vr){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:Yr[0].toLowerCase(),keyword:"user",if_not_exists:gt,user:Gt,default_role:rn,require:xn,resource_options:f,password_options:y,lock_option:S,comment:W,attribute:vr}}})(X,0,lr,wr,i,b,m,x,tr,Cr,gr),H=X)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r)):(e=H,H=r),H})()),N})())===r&&(d=(function(){var N=e,H,X,lr;(H=(function(){var m=e,x,tr,Cr;return t.substr(e,8).toLowerCase()==="truncate"?(x=t.substr(e,8),e+=8):(x=r,K===0&&_t(Vv)),x===r?(e=m,m=r):(tr=e,K++,Cr=le(),K--,Cr===r?tr=void 0:(e=tr,tr=r),tr===r?(e=m,m=r):(Pr=m,m=x="TRUNCATE")),m})())!==r&&Wr()!==r?((X=va())===r&&(X=null),X!==r&&Wr()!==r&&(lr=me())!==r?(Pr=N,wr=H,i=X,(b=lr)&&b.forEach(m=>Tn.add(`${wr}::${m.db}::${m.table}`)),H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:wr.toLowerCase(),keyword:i&&i.toLowerCase()||"table",name:b}},N=H):(e=N,N=r)):(e=N,N=r);var wr,i,b;return N})())===r&&(d=(function(){var N=e,H,X;(H=qo())!==r&&Wr()!==r&&va()!==r&&Wr()!==r&&(X=(function(){var wr,i,b,m,x,tr,Cr,gr;if(wr=e,(i=Ws())!==r){for(b=[],m=e,(x=Wr())!==r&&(tr=Me())!==r&&(Cr=Wr())!==r&&(gr=Ws())!==r?m=x=[x,tr,Cr,gr]:(e=m,m=r);m!==r;)b.push(m),m=e,(x=Wr())!==r&&(tr=Me())!==r&&(Cr=Wr())!==r&&(gr=Ws())!==r?m=x=[x,tr,Cr,gr]:(e=m,m=r);b===r?(e=wr,wr=r):(Pr=wr,i=zn(i,b),wr=i)}else e=wr,wr=r;return wr})())!==r?(Pr=N,(lr=X).forEach(wr=>wr.forEach(i=>i.table&&Tn.add(`rename::${i.db}::${i.table}`))),H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"rename",table:lr}},N=H):(e=N,N=r);var lr;return N})())===r&&(d=(function(){var N=e,H,X;(H=(function(){var wr=e,i,b,m;return t.substr(e,4).toLowerCase()==="call"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(Xa)),i===r?(e=wr,wr=r):(b=e,K++,m=le(),K--,m===r?b=void 0:(e=b,b=r),b===r?(e=wr,wr=r):(Pr=wr,wr=i="CALL")),wr})())!==r&&Wr()!==r&&(X=(function(){var wr;return(wr=Xr())===r&&(wr=Jr()),wr})())!==r?(Pr=N,lr=X,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"call",expr:lr}},N=H):(e=N,N=r);var lr;return N})())===r&&(d=(function(){var N=e,H,X;(H=(function(){var wr=e,i,b,m;return t.substr(e,3).toLowerCase()==="use"?(i=t.substr(e,3),e+=3):(i=r,K===0&&_t(Ot)),i===r?(e=wr,wr=r):(b=e,K++,m=le(),K--,m===r?b=void 0:(e=b,b=r),b===r?(e=wr,wr=r):wr=i=[i,b]),wr})())!==r&&Wr()!==r&&(X=qs())!==r?(Pr=N,lr=X,Tn.add(`use::${lr}::null`),H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"use",db:lr}},N=H):(e=N,N=r);var lr;return N})())===r&&(d=(function(){var N=e,H,X,lr;(H=Tv())!==r&&Wr()!==r&&va()!==r&&Wr()!==r&&(X=$o())!==r&&Wr()!==r&&(lr=(function(){var b,m,x,tr,Cr,gr,Yr,Rt;if(b=e,(m=si())!==r){for(x=[],tr=e,(Cr=Wr())!==r&&(gr=Me())!==r&&(Yr=Wr())!==r&&(Rt=si())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(e=tr,tr=r);tr!==r;)x.push(tr),tr=e,(Cr=Wr())!==r&&(gr=Me())!==r&&(Yr=Wr())!==r&&(Rt=si())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(e=tr,tr=r);x===r?(e=b,b=r):(Pr=b,m=zn(m,x),b=m)}else e=b,b=r;return b})())!==r?(Pr=N,wr=X,i=lr,Tn.add(`alter::${wr.db}::${wr.table}`),H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"alter",table:[wr],expr:i}},N=H):(e=N,N=r);var wr,i;return N})())===r&&(d=(function(){var N=e,H,X,lr;(H=m0())!==r&&Wr()!==r?((X=(function(){var b=e,m,x,tr;return t.substr(e,6).toLowerCase()==="global"?(m=t.substr(e,6),e+=6):(m=r,K===0&&_t(Jt)),m===r?(e=b,b=r):(x=e,K++,tr=le(),K--,tr===r?x=void 0:(e=x,x=r),x===r?(e=b,b=r):(Pr=b,b=m="GLOBAL")),b})())===r&&(X=(function(){var b=e,m,x,tr;return t.substr(e,7).toLowerCase()==="session"?(m=t.substr(e,7),e+=7):(m=r,K===0&&_t(nf)),m===r?(e=b,b=r):(x=e,K++,tr=le(),K--,tr===r?x=void 0:(e=x,x=r),x===r?(e=b,b=r):(Pr=b,b=m="SESSION")),b})())===r&&(X=(function(){var b=e,m,x,tr;return t.substr(e,5).toLowerCase()==="local"?(m=t.substr(e,5),e+=5):(m=r,K===0&&_t(g0)),m===r?(e=b,b=r):(x=e,K++,tr=le(),K--,tr===r?x=void 0:(e=x,x=r),x===r?(e=b,b=r):(Pr=b,b=m="LOCAL")),b})())===r&&(X=(function(){var b=e,m,x,tr;return t.substr(e,7).toLowerCase()==="persist"?(m=t.substr(e,7),e+=7):(m=r,K===0&&_t(E0)),m===r?(e=b,b=r):(x=e,K++,tr=le(),K--,tr===r?x=void 0:(e=x,x=r),x===r?(e=b,b=r):(Pr=b,b=m="PERSIST")),b})())===r&&(X=(function(){var b=e,m,x,tr;return t.substr(e,12).toLowerCase()==="persist_only"?(m=t.substr(e,12),e+=12):(m=r,K===0&&_t(kl)),m===r?(e=b,b=r):(x=e,K++,tr=le(),K--,tr===r?x=void 0:(e=x,x=r),x===r?(e=b,b=r):(Pr=b,b=m="PERSIST_ONLY")),b})()),X===r&&(X=null),X!==r&&Wr()!==r&&(lr=(function(){var b,m,x,tr,Cr,gr,Yr,Rt;if(b=e,(m=pi())!==r){for(x=[],tr=e,(Cr=Wr())!==r&&(gr=Me())!==r&&(Yr=Wr())!==r&&(Rt=pi())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(e=tr,tr=r);tr!==r;)x.push(tr),tr=e,(Cr=Wr())!==r&&(gr=Me())!==r&&(Yr=Wr())!==r&&(Rt=pi())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(e=tr,tr=r);x===r?(e=b,b=r):(Pr=b,m=Ab(m,x),b=m)}else e=b,b=r;return b})())!==r?(Pr=N,wr=X,(i=lr).keyword=wr,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"set",keyword:wr,expr:i}},N=H):(e=N,N=r)):(e=N,N=r);var wr,i;return N})())===r&&(d=(function(){var N=e,H,X;(H=(function(){var wr=e,i,b,m;return t.substr(e,4).toLowerCase()==="lock"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(lf)),i===r?(e=wr,wr=r):(b=e,K++,m=le(),K--,m===r?b=void 0:(e=b,b=r),b===r?(e=wr,wr=r):wr=i=[i,b]),wr})())!==r&&Wr()!==r&&Xu()!==r&&Wr()!==r&&(X=(function(){var wr,i,b,m,x,tr,Cr,gr;if(wr=e,(i=Lt())!==r){for(b=[],m=e,(x=Wr())!==r&&(tr=Me())!==r&&(Cr=Wr())!==r&&(gr=Lt())!==r?m=x=[x,tr,Cr,gr]:(e=m,m=r);m!==r;)b.push(m),m=e,(x=Wr())!==r&&(tr=Me())!==r&&(Cr=Wr())!==r&&(gr=Lt())!==r?m=x=[x,tr,Cr,gr]:(e=m,m=r);b===r?(e=wr,wr=r):(Pr=wr,i=Ab(i,b),wr=i)}else e=wr,wr=r;return wr})())!==r?(Pr=N,lr=X,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"lock",keyword:"tables",tables:lr}},N=H):(e=N,N=r);var lr;return N})())===r&&(d=(function(){var N=e,H;return(H=(function(){var X=e,lr,wr,i;return t.substr(e,6).toLowerCase()==="unlock"?(lr=t.substr(e,6),e+=6):(lr=r,K===0&&_t(Jc)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):X=lr=[lr,wr]),X})())!==r&&Wr()!==r&&Xu()!==r?(Pr=N,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"unlock",keyword:"tables"}},N=H):(e=N,N=r),N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m,x;(H=Si())!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="binary"?(X=t.substr(e,6),e+=6):(X=r,K===0&&_t(Mf)),X===r&&(t.substr(e,6).toLowerCase()==="master"?(X=t.substr(e,6),e+=6):(X=r,K===0&&_t(Wb))),X!==r&&(lr=Wr())!==r?(t.substr(e,4).toLowerCase()==="logs"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(Df)),wr===r?(e=N,N=r):(Pr=N,tr=X,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",suffix:"logs",keyword:tr.toLowerCase()}},N=H)):(e=N,N=r)):(e=N,N=r);var tr;N===r&&(N=e,(H=Si())!==r&&Wr()!==r&&(X=Xu())!==r?(Pr=N,Tn.add("show::null::null"),H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",keyword:"tables"}},N=H):(e=N,N=r),N===r&&(N=e,(H=Si())!==r&&Wr()!==r?(t.substr(e,8).toLowerCase()==="triggers"?(X=t.substr(e,8),e+=8):(X=r,K===0&&_t(mb)),X===r&&(t.substr(e,6).toLowerCase()==="status"?(X=t.substr(e,6),e+=6):(X=r,K===0&&_t(i0)),X===r&&(t.substr(e,11).toLowerCase()==="processlist"?(X=t.substr(e,11),e+=11):(X=r,K===0&&_t(ft)))),X===r?(e=N,N=r):(Pr=N,Rt=X,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",keyword:Rt.toLowerCase()}},N=H)):(e=N,N=r),N===r&&(N=e,(H=Si())!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="procedure"?(X=t.substr(e,9),e+=9):(X=r,K===0&&_t(tn)),X===r&&(t.substr(e,8).toLowerCase()==="function"?(X=t.substr(e,8),e+=8):(X=r,K===0&&_t(_n))),X!==r&&(lr=Wr())!==r?(t.substr(e,6).toLowerCase()==="status"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(i0)),wr===r?(e=N,N=r):(Pr=N,H=(function(gt){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",keyword:gt.toLowerCase(),suffix:"status"}}})(X),N=H)):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,(H=Si())!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="binlog"?(X=t.substr(e,6),e+=6):(X=r,K===0&&_t(En)),X!==r&&(lr=Wr())!==r?(t.substr(e,6).toLowerCase()==="events"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(Os)),wr!==r&&(i=Wr())!==r?((b=qn())===r&&(b=null),b!==r&&Wr()!==r?((m=ks())===r&&(m=null),m!==r&&Wr()!==r?((x=Rr())===r&&(x=null),x===r?(e=N,N=r):(Pr=N,Cr=b,gr=m,Yr=x,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",suffix:"events",keyword:"binlog",in:Cr,from:gr,limit:Yr}},N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,(H=Si())!==r&&Wr()!==r?(X=e,t.substr(e,9).toLowerCase()==="character"?(lr=t.substr(e,9),e+=9):(lr=r,K===0&&_t(Zf)),lr!==r&&(wr=Wr())!==r?(t.substr(e,3).toLowerCase()==="set"?(i=t.substr(e,3),e+=3):(i=r,K===0&&_t(W0)),i===r?(e=X,X=r):X=lr=[lr,wr,i]):(e=X,X=r),X===r&&(t.substr(e,9).toLowerCase()==="collation"?(X=t.substr(e,9),e+=9):(X=r,K===0&&_t(gs)),X===r&&(t.substr(e,9).toLowerCase()==="databases"?(X=t.substr(e,9),e+=9):(X=r,K===0&&_t(Ys)))),X!==r&&(lr=Wr())!==r?((wr=Hn())===r&&(wr=su()),wr===r&&(wr=null),wr===r?(e=N,N=r):(Pr=N,H=(function(gt,Gt){let rn=Array.isArray(gt)&>||[gt];return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",suffix:rn[2]&&rn[2].toLowerCase(),keyword:rn[0].toLowerCase(),expr:Gt}}})(X,wr),N=H)):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,(H=Si())!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="columns"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Te)),X===r&&(t.substr(e,7).toLowerCase()==="indexes"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(ye)),X===r&&(t.substr(e,5).toLowerCase()==="index"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(Eb)))),X!==r&&(lr=Wr())!==r&&(wr=ks())!==r?(Pr=N,H=(function(gt,Gt){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",keyword:gt.toLowerCase(),from:Gt}}})(X,wr),N=H):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,(H=Si())!==r&&Wr()!==r&&(X=Uu())!==r&&(lr=Wr())!==r?((wr=Pt())===r&&(wr=va())===r&&(t.substr(e,5).toLowerCase()==="event"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(Be)),wr===r&&(wr=Nf())===r&&(t.substr(e,9).toLowerCase()==="procedure"?(wr=t.substr(e,9),e+=9):(wr=r,K===0&&_t(tn)))),wr!==r&&(i=Wr())!==r&&(b=$o())!==r?(Pr=N,H=(function(gt,Gt){let rn=gt.toLowerCase();return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",keyword:"create",suffix:rn,[rn]:Gt}}})(wr,b),N=H):(e=N,N=r)):(e=N,N=r),N===r&&(N=(function(){var gt=e,Gt,rn,xn;(Gt=Si())!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="grants"?(rn=t.substr(e,6),e+=6):(rn=r,K===0&&_t(io)),rn!==r&&Wr()!==r?((xn=(function(){var y=e,S,W,vr,_r,$r,at;t.substr(e,3).toLowerCase()==="for"?(S=t.substr(e,3),e+=3):(S=r,K===0&&_t(Pu)),S!==r&&Wr()!==r&&(W=qs())!==r&&Wr()!==r?(vr=e,(_r=wn())!==r&&($r=Wr())!==r&&(at=qs())!==r?vr=_r=[_r,$r,at]:(e=vr,vr=r),vr===r&&(vr=null),vr!==r&&(_r=Wr())!==r?(($r=(function(){var sn=e,Nn;return vt()!==r&&Wr()!==r&&(Nn=(function(){var Xn,Gn,fs,Ts,Ms,Vs,se,Re;if(Xn=e,(Gn=qs())!==r){for(fs=[],Ts=e,(Ms=Wr())!==r&&(Vs=Me())!==r&&(se=Wr())!==r&&(Re=qs())!==r?Ts=Ms=[Ms,Vs,se,Re]:(e=Ts,Ts=r);Ts!==r;)fs.push(Ts),Ts=e,(Ms=Wr())!==r&&(Vs=Me())!==r&&(se=Wr())!==r&&(Re=qs())!==r?Ts=Ms=[Ms,Vs,se,Re]:(e=Ts,Ts=r);fs===r?(e=Xn,Xn=r):(Pr=Xn,Gn=Ab(Gn,fs),Xn=Gn)}else e=Xn,Xn=r;return Xn})())!==r?(Pr=sn,sn=Nn):(e=sn,sn=r),sn})())===r&&($r=null),$r===r?(e=y,y=r):(Pr=y,Kt=$r,S={user:W,host:(St=vr)&&St[2],role_list:Kt},y=S)):(e=y,y=r)):(e=y,y=r);var St,Kt;return y})())===r&&(xn=null),xn===r?(e=gt,gt=r):(Pr=gt,f=xn,Gt={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"show",keyword:"grants",for:f}},gt=Gt)):(e=gt,gt=r)):(e=gt,gt=r);var f;return gt})()))))))));var Cr,gr,Yr,Rt;return N})())===r&&(d=(function(){var N=e,H,X;(H=hn())===r&&(H=(function(){var wr=e,i,b,m;return t.substr(e,8).toLowerCase()==="describe"?(i=t.substr(e,8),e+=8):(i=r,K===0&&_t(J0)),i===r?(e=wr,wr=r):(b=e,K++,m=le(),K--,m===r?b=void 0:(e=b,b=r),b===r?(e=wr,wr=r):(Pr=wr,wr=i="DESCRIBE")),wr})()),H!==r&&Wr()!==r&&(X=qs())!==r?(Pr=N,lr=X,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"desc",table:lr}},N=H):(e=N,N=r);var lr;return N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m,x;t.substr(e,5).toLowerCase()==="grant"?(H=t.substr(e,5),e+=5):(H=r,K===0&&_t(c0)),H!==r&&Wr()!==r&&(X=(function(){var Gt,rn,xn,f,y,S,W,vr;if(Gt=e,(rn=rs())!==r){for(xn=[],f=e,(y=Wr())!==r&&(S=Me())!==r&&(W=Wr())!==r&&(vr=rs())!==r?f=y=[y,S,W,vr]:(e=f,f=r);f!==r;)xn.push(f),f=e,(y=Wr())!==r&&(S=Me())!==r&&(W=Wr())!==r&&(vr=rs())!==r?f=y=[y,S,W,vr]:(e=f,f=r);xn===r?(e=Gt,Gt=r):(Pr=Gt,rn=Fi(rn,xn),Gt=rn)}else e=Gt,Gt=r;return Gt})())!==r&&Wr()!==r&&(lr=R())!==r&&Wr()!==r?((wr=(function(){var Gt=e,rn;return(rn=va())===r&&(t.substr(e,8).toLowerCase()==="function"?(rn=t.substr(e,8),e+=8):(rn=r,K===0&&_t(_n)),rn===r&&(t.substr(e,9).toLowerCase()==="procedure"?(rn=t.substr(e,9),e+=9):(rn=r,K===0&&_t(tn)))),rn!==r&&(Pr=Gt,rn={type:"origin",value:rn.toUpperCase()}),Gt=rn})())===r&&(wr=null),wr!==r&&Wr()!==r&&(i=(function(){var Gt=e,rn=e,xn,f,y;return(xn=qs())===r&&(xn=_u()),xn!==r&&(f=Wr())!==r&&(y=ru())!==r?rn=xn=[xn,f,y]:(e=rn,rn=r),rn===r&&(rn=null),rn!==r&&(xn=Wr())!==r?((f=qs())===r&&(f=_u()),f===r?(e=Gt,Gt=r):(Pr=Gt,rn=(function(S,W){return{prefix:S&&S[0],name:W}})(rn,f),Gt=rn)):(e=Gt,Gt=r),Gt})())!==r&&Wr()!==r&&(b=pc())!==r&&Wr()!==r&&(m=Ds())!==r&&Wr()!==r?((x=(function(){var Gt=e,rn,xn;return it()!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="grant"?(rn=t.substr(e,5),e+=5):(rn=r,K===0&&_t(c0)),rn!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="option"?(xn=t.substr(e,6),e+=6):(xn=r,K===0&&_t(q0)),xn===r?(e=Gt,Gt=r):(Pr=Gt,Gt={type:"origin",value:"with grant option"})):(e=Gt,Gt=r)):(e=Gt,Gt=r),Gt})())===r&&(x=null),x===r?(e=N,N=r):(Pr=N,tr=X,Cr=wr,gr=i,Yr=b,Rt=m,gt=x,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"grant",keyword:"priv",objects:tr,on:{object_type:Cr,priv_level:[gr]},to_from:Yr[0],user_or_roles:Rt,with:gt}},N=H)):(e=N,N=r)):(e=N,N=r);var tr,Cr,gr,Yr,Rt,gt;return N===r&&(N=e,t.substr(e,5)==="GRANT"?(H="GRANT",e+=5):(H=r,K===0&&_t(Sp)),H!==r&&Wr()!==r?(t.substr(e,5)==="PROXY"?(X="PROXY",e+=5):(X=r,K===0&&_t(kv)),X!==r&&Wr()!==r&&(lr=R())!==r&&Wr()!==r&&(wr=vs())!==r&&Wr()!==r&&(i=pc())!==r&&Wr()!==r&&(b=Ds())!==r&&Wr()!==r?((m=ut())===r&&(m=null),m===r?(e=N,N=r):(Pr=N,H=(function(Gt,rn,xn,f){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"grant",keyword:"proxy",objects:[{priv:{type:"origin",value:"proxy"}}],on:Gt,to_from:rn[0],user_or_roles:xn,with:f}}})(wr,i,b,m),N=H)):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,t.substr(e,5)==="GRANT"?(H="GRANT",e+=5):(H=r,K===0&&_t(Sp)),H!==r&&Wr()!==r&&(X=(function(){var Gt,rn,xn,f,y,S,W,vr;if(Gt=e,(rn=qs())!==r){for(xn=[],f=e,(y=Wr())!==r&&(S=Me())!==r&&(W=Wr())!==r&&(vr=qs())!==r?f=y=[y,S,W,vr]:(e=f,f=r);f!==r;)xn.push(f),f=e,(y=Wr())!==r&&(S=Me())!==r&&(W=Wr())!==r&&(vr=qs())!==r?f=y=[y,S,W,vr]:(e=f,f=r);xn===r?(e=Gt,Gt=r):(Pr=Gt,rn=Fi(rn,xn),Gt=rn)}else e=Gt,Gt=r;return Gt})())!==r&&Wr()!==r&&(lr=pc())!==r&&Wr()!==r&&(wr=Ds())!==r&&Wr()!==r?((i=ut())===r&&(i=null),i===r?(e=N,N=r):(Pr=N,H=(function(Gt,rn,xn,f){return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"grant",keyword:"role",objects:Gt.map(y=>({priv:{type:"string",value:y}})),to_from:rn[0],user_or_roles:xn,with:f}}})(X,lr,wr,i),N=H)):(e=N,N=r))),N})())===r&&(d=(function(){var N=e,H,X;(H=(function(){var wr=e,i,b,m;return t.substr(e,7).toLowerCase()==="explain"?(i=t.substr(e,7),e+=7):(i=r,K===0&&_t(wa)),i===r?(e=wr,wr=r):(b=e,K++,m=le(),K--,m===r?b=void 0:(e=b,b=r),b===r?(e=wr,wr=r):wr=i=[i,b]),wr})())!==r&&Wr()!==r&&(X=bt())!==r?(Pr=N,lr=X,H={tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:"explain",expr:lr}},N=H):(e=N,N=r);var lr;return N})())===r&&(d=(function(){var N=e,H,X,lr;return t.substr(e,6).toLowerCase()==="commit"?(H=t.substr(e,6),e+=6):(H=r,K===0&&_t(ua)),H===r&&(t.substr(e,8).toLowerCase()==="rollback"?(H=t.substr(e,8),e+=8):(H=r,K===0&&_t(Sa))),H!==r&&(Pr=N,H={type:"transaction",expr:{action:{type:"origin",value:H}}}),(N=H)===r&&(N=e,t.substr(e,5).toLowerCase()==="begin"?(H=t.substr(e,5),e+=5):(H=r,K===0&&_t(ma)),H!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="work"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(Bi)),X===r&&(t.substr(e,11).toLowerCase()==="transaction"?(X=t.substr(e,11),e+=11):(X=r,K===0&&_t(sa))),X===r&&(X=null),X!==r&&Wr()!==r?((lr=bn())===r&&(lr=null),lr===r?(e=N,N=r):(Pr=N,H=(function(wr,i){return{type:"transaction",expr:{action:{type:"origin",value:"begin"},keyword:wr,modes:i}}})(X,lr),N=H)):(e=N,N=r)):(e=N,N=r),N===r&&(N=e,t.substr(e,5).toLowerCase()==="start"?(H=t.substr(e,5),e+=5):(H=r,K===0&&_t(di)),H!==r&&Wr()!==r?(t.substr(e,11).toLowerCase()==="transaction"?(X=t.substr(e,11),e+=11):(X=r,K===0&&_t(Hi)),X!==r&&Wr()!==r?((lr=bn())===r&&(lr=null),lr===r?(e=N,N=r):(Pr=N,H=(function(wr,i){return{type:"transaction",expr:{action:{type:"origin",value:"start"},keyword:wr,modes:i}}})(X,lr),N=H)):(e=N,N=r)):(e=N,N=r))),N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S,W,vr,_r,$r;t.substr(e,4).toLowerCase()==="load"?(H=t.substr(e,4),e+=4):(H=r,K===0&&_t(Fc)),H!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="data"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(Hl)),X!==r&&Wr()!==r?(t.substr(e,12).toLowerCase()==="low_priority"?(lr=t.substr(e,12),e+=12):(lr=r,K===0&&_t(_l)),lr===r&&(t.substr(e,10).toLowerCase()==="concurrent"?(lr=t.substr(e,10),e+=10):(lr=r,K===0&&_t(xv))),lr===r&&(lr=null),lr!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="local"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(g0)),wr===r&&(wr=null),wr!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="infile"?(i=t.substr(e,6),e+=6):(i=r,K===0&&_t(lp)),i!==r&&Wr()!==r&&(b=nu())!==r&&Wr()!==r?((m=gn())===r&&(m=null),m!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="into"?(x=t.substr(e,4),e+=4):(x=r,K===0&&_t(Uv)),x!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="table"?(tr=t.substr(e,5),e+=5):(tr=r,K===0&&_t($f)),tr!==r&&Wr()!==r&&(Cr=$o())!==r&&Wr()!==r?((gr=vn())===r&&(gr=null),gr!==r&&Wr()!==r?(Yr=e,(Rt=Ir())!==r&&(gt=Wr())!==r&&(Gt=nu())!==r?Yr=Rt=[Rt,gt,Gt]:(e=Yr,Yr=r),Yr===r&&(Yr=null),Yr!==r&&(Rt=Wr())!==r?((gt=(function(){var sn=e,Nn,Xn,Gn,fs,Ts,Ms,Vs,se,Re,oe,Ne;t.substr(e,6).toLowerCase()==="fields"?(Nn=t.substr(e,6),e+=6):(Nn=r,K===0&&_t(S0)),Nn===r&&(t.substr(e,7).toLowerCase()==="columns"?(Nn=t.substr(e,7),e+=7):(Nn=r,K===0&&_t(Te))),Nn!==r&&Wr()!==r?(Xn=e,t.substr(e,10).toLowerCase()==="terminated"?(Gn=t.substr(e,10),e+=10):(Gn=r,K===0&&_t(l0)),Gn!==r&&(fs=Wr())!==r?(t.substr(e,2).toLowerCase()==="by"?(Ts=t.substr(e,2),e+=2):(Ts=r,K===0&&_t(pe)),Ts!==r&&(Ms=Wr())!==r&&(Vs=nu())!==r?Xn=Gn=[Gn,fs,Ts,Ms,Vs]:(e=Xn,Xn=r)):(e=Xn,Xn=r),Xn===r&&(Xn=null),Xn!==r&&(Gn=Wr())!==r?(fs=e,t.substr(e,10).toLowerCase()==="optionally"?(Ts=t.substr(e,10),e+=10):(Ts=r,K===0&&_t(Ov)),Ts===r&&(Ts=null),Ts!==r&&(Ms=Wr())!==r?(t.substr(e,8).toLowerCase()==="enclosed"?(Vs=t.substr(e,8),e+=8):(Vs=r,K===0&&_t(lv)),Vs!==r&&(se=Wr())!==r?(t.substr(e,2).toLowerCase()==="by"?(Re=t.substr(e,2),e+=2):(Re=r,K===0&&_t(pe)),Re!==r&&(oe=Wr())!==r&&(Ne=nu())!==r?fs=Ts=[Ts,Ms,Vs,se,Re,oe,Ne]:(e=fs,fs=r)):(e=fs,fs=r)):(e=fs,fs=r),fs===r&&(fs=null),fs!==r&&(Ts=Wr())!==r?(Ms=e,t.substr(e,7).toLowerCase()==="escaped"?(Vs=t.substr(e,7),e+=7):(Vs=r,K===0&&_t(fi)),Vs!==r&&(se=Wr())!==r?(t.substr(e,2).toLowerCase()==="by"?(Re=t.substr(e,2),e+=2):(Re=r,K===0&&_t(pe)),Re!==r&&(oe=Wr())!==r&&(Ne=nu())!==r?Ms=Vs=[Vs,se,Re,oe,Ne]:(e=Ms,Ms=r)):(e=Ms,Ms=r),Ms===r&&(Ms=null),Ms===r?(e=sn,sn=r):(Pr=sn,ze=Nn,Lo=fs,wo=Ms,(to=Xn)&&(to[4].prefix="TERMINATED BY"),Lo&&(Lo[6].prefix=(Lo[0]&&Lo[0].toUpperCase()==="OPTIONALLY"?"OPTIONALLY ":"")+"ENCLOSED BY"),wo&&(wo[4].prefix="ESCAPED BY"),Nn={keyword:ze,terminated:to&&to[4],enclosed:Lo&&Lo[6],escaped:wo&&wo[4]},sn=Nn)):(e=sn,sn=r)):(e=sn,sn=r)):(e=sn,sn=r);var ze,to,Lo,wo;return sn})())===r&&(gt=null),gt!==r&&(Gt=Wr())!==r?((rn=(function(){var sn=e,Nn,Xn,Gn;return t.substr(e,5).toLowerCase()==="lines"?(Nn=t.substr(e,5),e+=5):(Nn=r,K===0&&_t(ec)),Nn!==r&&Wr()!==r?((Xn=ir())===r&&(Xn=null),Xn!==r&&Wr()!==r?((Gn=ir())===r&&(Gn=null),Gn===r?(e=sn,sn=r):(Pr=sn,Nn=(function(fs,Ts,Ms){if(Ts&&Ms&&Ts.type===Ms.type)throw Error("LINES cannot be specified twice");return Ts&&Reflect.deleteProperty(Ts,"type"),Ms&&Reflect.deleteProperty(Ms,"type"),{keyword:fs,...Ts||{},...Ms||{}}})(Nn,Xn,Gn),sn=Nn)):(e=sn,sn=r)):(e=sn,sn=r),sn})())===r&&(rn=null),rn!==r&&Wr()!==r?(xn=e,(f=Oc())!==r&&(y=Wr())!==r&&(S=ga())!==r&&(W=Wr())!==r?(t.substr(e,5).toLowerCase()==="lines"?(vr=t.substr(e,5),e+=5):(vr=r,K===0&&_t(ec)),vr===r&&(t.substr(e,4).toLowerCase()==="rows"?(vr=t.substr(e,4),e+=4):(vr=r,K===0&&_t(Tb))),vr===r?(e=xn,xn=r):xn=f=[f,y,S,W,vr]):(e=xn,xn=r),xn===r&&(xn=null),xn!==r&&(f=Wr())!==r?((y=xt())===r&&(y=null),y!==r&&(S=Wr())!==r?(W=e,(vr=m0())!==r&&(_r=Wr())!==r&&($r=ct())!==r?W=vr=[vr,_r,$r]:(e=W,W=r),W===r&&(W=null),W===r?(e=N,N=r):(Pr=N,St=y,Kt=W,H={type:"load_data",mode:lr,local:wr,file:b,replace_ignore:m,table:Cr,partition:gr,character_set:Yr,fields:gt,lines:rn,ignore:(at=xn)&&{count:at[2],suffix:at[4]},column:St,set:Kt&&Kt[2]},N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r);var at,St,Kt;return N})()),d}function Ke(){var d;return(d=lo())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m;return(H=Wr())===r?(e=N,N=r):((X=Qo())===r&&(X=null),X!==r&&Wr()!==r&&ip()!==r&&Wr()!==r&&(lr=me())!==r&&Wr()!==r&&m0()!==r&&Wr()!==r&&(wr=ct())!==r&&Wr()!==r?((i=su())===r&&(i=null),i!==r&&Wr()!==r?((b=F())===r&&(b=null),b!==r&&Wr()!==r?((m=Rr())===r&&(m=null),m===r?(e=N,N=r):(Pr=N,H=(function(x,tr,Cr,gr,Yr,Rt){let gt={};return tr&&tr.forEach(Gt=>{let{db:rn,as:xn,table:f,join:y}=Gt,S=y?"select":"update";rn&&(gt[f]=rn),f&&Tn.add(`${S}::${rn}::${f}`)}),Cr&&Cr.forEach(Gt=>{if(Gt.table){let rn=Ct(Gt.table);Tn.add(`update::${gt[rn]||null}::${rn}`)}jn.add(`update::${Gt.table}::${Gt.column}`)}),{tableList:Array.from(Tn),columnList:Xt(jn),ast:{with:x,type:"update",table:tr,set:Cr,where:gr,orderby:Yr,limit:Rt}}})(X,lr,wr,i,b,m),N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)),N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m,x;return(H=gn())!==r&&Wr()!==r?((X=Oc())===r&&(X=null),X!==r&&Wr()!==r?((lr=Xo())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=$o())!==r&&Wr()!==r?((i=vn())===r&&(i=null),i!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(b=hu())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r&&(m=Yt())!==r&&Wr()!==r?((x=fn())===r&&(x=null),x===r?(e=N,N=r):(Pr=N,H=(function(tr,Cr,gr,Yr,Rt,gt,Gt,rn){if(Yr&&(Tn.add(`insert::${Yr.db}::${Yr.table}`),Yr.as=null),gt){let f=Yr&&Yr.table||null;Array.isArray(Gt.values)&&Gt.values.forEach((y,S)=>{if(y.value.length!=gt.length)throw Error("Error: column count doesn't match value count at row "+(S+1))}),gt.forEach(y=>jn.add(`insert::${f}::${y}`))}let xn=[Cr,gr].filter(f=>f).map(f=>f[0]&&f[0].toLowerCase()).join(" ");return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:tr,table:[Yr],columns:gt,values:Gt,partition:Rt,prefix:xn,on_duplicate_update:rn}}})(H,X,lr,wr,i,b,m,x),N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r),N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m;return(H=gn())!==r&&Wr()!==r?((X=Oc())===r&&(X=null),X!==r&&Wr()!==r?((lr=Xo())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=$o())!==r&&Wr()!==r?((i=vn())===r&&(i=null),i!==r&&Wr()!==r&&(b=Yt())!==r&&Wr()!==r?((m=fn())===r&&(m=null),m===r?(e=N,N=r):(Pr=N,H=(function(x,tr,Cr,gr,Yr,Rt,gt){gr&&(Tn.add(`insert::${gr.db}::${gr.table}`),jn.add(`insert::${gr.table}::(.*)`),gr.as=null);let Gt=[tr,Cr].filter(rn=>rn).map(rn=>rn[0]&&rn[0].toLowerCase()).join(" ");return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:x,table:[gr],columns:null,values:Rt,partition:Yr,prefix:Gt,on_duplicate_update:gt}}})(H,X,lr,wr,i,b,m),N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r),N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m;return(H=gn())!==r&&Wr()!==r?((X=Oc())===r&&(X=null),X!==r&&Wr()!==r?((lr=Xo())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=$o())!==r&&Wr()!==r?((i=vn())===r&&(i=null),i!==r&&Wr()!==r&&m0()!==r&&Wr()!==r&&(b=ct())!==r&&Wr()!==r?((m=fn())===r&&(m=null),m===r?(e=N,N=r):(Pr=N,H=(function(x,tr,Cr,gr,Yr,Rt,gt){gr&&(Tn.add(`insert::${gr.db}::${gr.table}`),jn.add(`insert::${gr.table}::(.*)`),gr.as=null);let Gt=[tr,Cr].filter(rn=>rn).map(rn=>rn[0]&&rn[0].toLowerCase()).join(" ");return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{type:x,table:[gr],columns:null,partition:Yr,prefix:Gt,set:Rt,on_duplicate_update:gt}}})(H,X,lr,wr,i,b,m),N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r),N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m;return(H=Wr())===r?(e=N,N=r):((X=Qo())===r&&(X=null),X!==r&&Wr()!==r&&of()!==r&&Wr()!==r?((lr=me())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=ks())!==r&&Wr()!==r?((i=su())===r&&(i=null),i!==r&&Wr()!==r?((b=F())===r&&(b=null),b!==r&&Wr()!==r?((m=Rr())===r&&(m=null),m===r?(e=N,N=r):(Pr=N,H=(function(x,tr,Cr,gr,Yr,Rt){if(Cr&&(Array.isArray(Cr)?Cr:Cr.expr).forEach(gt=>{let{db:Gt,as:rn,table:xn,join:f}=gt,y=f?"select":"delete";xn&&Tn.add(`${y}::${Gt}::${xn}`),f||jn.add(`delete::${xn}::(.*)`)}),tr===null&&Cr.length===1){let gt=Cr[0];tr=[{db:gt.db,table:gt.table,as:gt.as,addition:!0}]}return{tableList:Array.from(Tn),columnList:Xt(jn),ast:{with:x,type:"delete",table:tr,from:Cr,where:gr,orderby:Yr,limit:Rt}}})(X,lr,wr,i,b,m),N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)),N})())===r&&(d=no())===r&&(d=(function(){for(var N=[],H=Hr();H!==r;)N.push(H),H=Hr();return N})()),d}function yo(){var d,N,H,X;return d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,5).toLowerCase()==="union"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(z0)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&Wr()!==r?((H=ds())===r&&(H=Ns()),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(X=H)?"union "+X.toLowerCase():"union")):(e=d,d=r),d===r&&(d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,5).toLowerCase()==="minus"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(ub)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(Pr=d,N="minus"),(d=N)===r&&(d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,9).toLowerCase()==="intersect"?(wr=t.substr(e,9),e+=9):(wr=r,K===0&&_t(Su)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(Pr=d,N="intersect"),(d=N)===r&&(d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,6).toLowerCase()==="except"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(Al)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(Pr=d,N="except"),d=N))),d}function lo(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=De())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=yo())!==r&&(i=Wr())!==r&&(b=De())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=yo())!==r&&(i=Wr())!==r&&(b=De())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H!==r&&(X=Wr())!==r?((lr=F())===r&&(lr=null),lr!==r&&(wr=Wr())!==r?((i=Rr())===r&&(i=null),i===r?(e=d,d=r):(Pr=d,d=N=(function(m,x,tr,Cr){let gr=m;for(let Yr=0;Yr<x.length;Yr++)gr._next=x[Yr][3],gr.set_op=x[Yr][1],gr=gr._next;return tr&&(m._orderby=tr),Cr&&(m._limit=Cr),{tableList:Array.from(Tn),columnList:Xt(jn),ast:m}})(N,H,lr,i))):(e=d,d=r)):(e=d,d=r)}else e=d,d=r;return d}function Co(){var d,N,H;return d=e,(N=mr())!==r&&Wr()!==r?((H=en())===r&&(H=hn()),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=Pn(N,H))):(e=d,d=r),d===r&&(d=(function(){var X=e,lr,wr;return(lr=Je())!==r&&Wr()!==r?((wr=en())===r&&(wr=hn()),wr===r&&(wr=null),wr===r?(e=X,X=r):(Pr=X,lr=Pn(lr,wr),X=lr)):(e=X,X=r),X})()),d}function Au(){var d,N;return d=e,t.substr(e,2).toLowerCase()==="if"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(ou)),N!==r&&Wr()!==r&&$e()!==r&&Wr()!==r&&ro()!==r?(Pr=d,d=N="IF NOT EXISTS"):(e=d,d=r),d}function la(){var d,N,H;return d=e,(N=vs())!==r&&Wr()!==r?((H=(function(){var X,lr,wr,i,b,m,x,tr,Cr;return X=e,t.substr(e,10)===Hs?(lr=Hs,e+=10):(lr=r,K===0&&_t(Uo)),lr!==r&&Wr()!==r?(wr=e,t.substr(e,4).toLowerCase()==="with"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(Ps)),i!==r&&(b=Wr())!==r&&(m=qs())!==r?wr=i=[i,b,m]:(e=wr,wr=r),wr===r&&(wr=null),wr!==r&&(i=Wr())!==r?(t.substr(e,2).toLowerCase()==="by"?(b=t.substr(e,2),e+=2):(b=r,K===0&&_t(pe)),b!==r&&(m=Wr())!==r?(t.substr(e,6).toLowerCase()==="random"?(x=t.substr(e,6),e+=6):(x=r,K===0&&_t(_o)),x!==r&&Wr()!==r?(t.substr(e,8).toLowerCase()==="password"?(tr=t.substr(e,8),e+=8):(tr=r,K===0&&_t(Gi)),tr===r?(e=X,X=r):(Pr=X,X=lr={keyword:["identified",(Cr=wr)&&Cr[0].toLowerCase()].filter(gr=>gr).join(" "),auth_plugin:Cr&&Cr[2],value:{prefix:"by",type:"origin",value:"random password"}})):(e=X,X=r)):(e=X,X=r)):(e=X,X=r)):(e=X,X=r),X===r&&(X=e,t.substr(e,10)===Hs?(lr=Hs,e+=10):(lr=r,K===0&&_t(Uo)),lr!==r&&Wr()!==r?(wr=e,t.substr(e,4).toLowerCase()==="with"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(Ps)),i!==r&&(b=Wr())!==r&&(m=qs())!==r?wr=i=[i,b,m]:(e=wr,wr=r),wr===r&&(wr=null),wr!==r&&(i=Wr())!==r?(t.substr(e,2).toLowerCase()==="by"?(b=t.substr(e,2),e+=2):(b=r,K===0&&_t(pe)),b!==r&&(m=Wr())!==r&&(x=Ei())!==r?(Pr=X,X=lr=(function(gr,Yr){return Yr.prefix="by",{keyword:["identified",gr&&gr[0].toLowerCase()].filter(Rt=>Rt).join(" "),auth_plugin:gr&&gr[2],value:Yr}})(wr,x)):(e=X,X=r)):(e=X,X=r)):(e=X,X=r),X===r&&(X=e,t.substr(e,10)===Hs?(lr=Hs,e+=10):(lr=r,K===0&&_t(Uo)),lr!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="with"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(Ps)),wr!==r&&(i=Wr())!==r&&(b=qs())!==r&&(m=Wr())!==r?(t.substr(e,2).toLowerCase()==="as"?(x=t.substr(e,2),e+=2):(x=r,K===0&&_t(mi)),x!==r&&Wr()!==r&&(tr=Ei())!==r?(Pr=X,X=lr=(function(gr,Yr){return Yr.prefix="as",{keyword:"identified with",auth_plugin:gr&&gr[2],value:Yr}})(b,tr)):(e=X,X=r)):(e=X,X=r)):(e=X,X=r))),X})())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N={user:N,auth_option:H})):(e=d,d=r),d}function da(){var d,N,H;return d=e,t.substr(e,4).toLowerCase()==="none"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(dl)),N===r&&(t.substr(e,3).toLowerCase()==="ssl"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(Gl)),N===r&&(t.substr(e,4).toLowerCase()==="x509"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Fl)))),N!==r&&(Pr=d,N={type:"origin",value:N}),(d=N)===r&&(d=e,t.substr(e,6).toLowerCase()==="cipher"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(nc)),N===r&&(t.substr(e,6).toLowerCase()==="issuer"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(xc)),N===r&&(t.substr(e,7).toLowerCase()==="subject"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(I0)))),N!==r&&Wr()!==r&&(H=Ei())!==r?(Pr=d,d=N=ji(N,H)):(e=d,d=r)),d}function Ia(){var d,N,H;return d=e,t.substr(e,20).toLowerCase()==="max_queries_per_hour"?(N=t.substr(e,20),e+=20):(N=r,K===0&&_t(qf)),N===r&&(t.substr(e,20).toLowerCase()==="max_updates_per_hour"?(N=t.substr(e,20),e+=20):(N=r,K===0&&_t(Uc)),N===r&&(t.substr(e,24).toLowerCase()==="max_connections_per_hour"?(N=t.substr(e,24),e+=24):(N=r,K===0&&_t(wc)),N===r&&(t.substr(e,20).toLowerCase()==="max_user_connections"?(N=t.substr(e,20),e+=20):(N=r,K===0&&_t(Ll))))),N!==r&&Wr()!==r&&(H=ga())!==r?(Pr=d,d=N=ji(N,H)):(e=d,d=r),d}function Wt(){var d,N,H,X,lr,wr;return d=e,t.substr(e,8).toLowerCase()==="password"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Gi)),N!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="expire"?(H=t.substr(e,6),e+=6):(H=r,K===0&&_t(jl)),H!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="default"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Oi)),X===r&&(t.substr(e,5).toLowerCase()==="never"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(bb)),X===r&&(X=Qs())),X===r?(e=d,d=r):(Pr=d,d=N={keyword:"password expire",value:typeof(wr=X)=="string"?{type:"origin",value:wr}:wr})):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,8).toLowerCase()==="password"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Gi)),N!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="history"?(H=t.substr(e,7),e+=7):(H=r,K===0&&_t(Vi)),H!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="default"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Oi)),X===r&&(X=ga()),X===r?(e=d,d=r):(Pr=d,d=N=(function(i){return{keyword:"password history",value:typeof i=="string"?{type:"origin",value:i}:i}})(X))):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,8).toLowerCase()==="password"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Gi)),N!==r&&Wr()!==r?(t.substr(e,5)==="REUSE"?(H="REUSE",e+=5):(H=r,K===0&&_t(zc)),H!==r&&Wr()!==r&&(X=Qs())!==r?(Pr=d,d=N=(function(i){return{keyword:"password reuse",value:i}})(X)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,8).toLowerCase()==="password"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Gi)),N!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="require"?(H=t.substr(e,7),e+=7):(H=r,K===0&&_t(af)),H!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="current"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(kc)),X!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="default"?(lr=t.substr(e,7),e+=7):(lr=r,K===0&&_t(Oi)),lr===r&&(t.substr(e,8).toLowerCase()==="optional"?(lr=t.substr(e,8),e+=8):(lr=r,K===0&&_t(vb))),lr===r?(e=d,d=r):(Pr=d,d=N=(function(i){return{keyword:"password require current",value:{type:"origin",value:i}}})(lr))):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,21).toLowerCase()==="failed_login_attempts"?(N=t.substr(e,21),e+=21):(N=r,K===0&&_t(Zc)),N!==r&&Wr()!==r&&(H=ga())!==r?(Pr=d,d=N=(function(i){return{keyword:"failed_login_attempts",value:i}})(H)):(e=d,d=r),d===r&&(d=e,t.substr(e,18).toLowerCase()==="password_lock_time"?(N=t.substr(e,18),e+=18):(N=r,K===0&&_t(nl)),N!==r&&Wr()!==r?((H=ga())===r&&(t.substr(e,9).toLowerCase()==="unbounded"?(H=t.substr(e,9),e+=9):(H=r,K===0&&_t(Xf))),H===r?(e=d,d=r):(Pr=d,d=N=(function(i){return{keyword:"password_lock_time",value:typeof i=="string"?{type:"origin",value:i}:i}})(H))):(e=d,d=r)))))),d}function ta(){var d;return(d=Wu())===r&&(d=ea())===r&&(d=$a())===r&&(d=bc()),d}function li(){var d,N,H,X,lr;return d=e,(N=(function(){var wr=e,i;return(i=(function(){var b=e,m,x,tr;return t.substr(e,8).toLowerCase()==="not null"?(m=t.substr(e,8),e+=8):(m=r,K===0&&_t(C)),m===r?(e=b,b=r):(x=e,K++,tr=le(),K--,tr===r?x=void 0:(e=x,x=r),x===r?(e=b,b=r):b=m=[m,x]),b})())!==r&&(Pr=wr,i={type:"not null",value:"not null"}),wr=i})())===r&&(N=rc()),N!==r&&(Pr=d,(lr=N)&&!lr.value&&(lr.value="null"),N={nullable:lr}),(d=N)===r&&(d=e,(N=(function(){var wr=e,i;return mv()!==r&&Wr()!==r&&(i=mr())!==r?(Pr=wr,wr={type:"default",value:i}):(e=wr,wr=r),wr})())!==r&&(Pr=d,N={default_val:N}),(d=N)===r&&(d=e,t.substr(e,14).toLowerCase()==="auto_increment"?(N=t.substr(e,14),e+=14):(N=r,K===0&&_t(Ss)),N!==r&&(Pr=d,N={auto_increment:N.toLowerCase()}),(d=N)===r&&(d=e,t.substr(e,6).toLowerCase()==="unique"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(te)),N!==r&&Wr()!==r?(t.substr(e,3).toLowerCase()==="key"?(H=t.substr(e,3),e+=3):(H=r,K===0&&_t(ce)),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(wr){let i=["unique"];return wr&&i.push(wr),{unique:i.join(" ").toLowerCase("")}})(H))):(e=d,d=r),d===r&&(d=e,t.substr(e,7).toLowerCase()==="primary"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(He)),N===r&&(N=null),N!==r&&Wr()!==r?(t.substr(e,3).toLowerCase()==="key"?(H=t.substr(e,3),e+=3):(H=r,K===0&&_t(ce)),H===r?(e=d,d=r):(Pr=d,d=N=(function(wr){let i=[];return wr&&i.push("primary"),i.push("key"),{primary_key:i.join(" ").toLowerCase("")}})(N))):(e=d,d=r),d===r&&(d=e,(N=Fu())!==r&&(Pr=d,N={comment:N}),(d=N)===r&&(d=e,(N=Le())!==r&&(Pr=d,N={collate:N}),(d=N)===r&&(d=e,(N=(function(){var wr=e,i,b;return t.substr(e,13).toLowerCase()==="column_format"?(i=t.substr(e,13),e+=13):(i=r,K===0&&_t(cf)),i!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="fixed"?(b=t.substr(e,5),e+=5):(b=r,K===0&&_t(ri)),b===r&&(t.substr(e,7).toLowerCase()==="dynamic"?(b=t.substr(e,7),e+=7):(b=r,K===0&&_t(t0)),b===r&&(t.substr(e,7).toLowerCase()==="default"?(b=t.substr(e,7),e+=7):(b=r,K===0&&_t(Oi)))),b===r?(e=wr,wr=r):(Pr=wr,i={type:"column_format",value:b.toLowerCase()},wr=i)):(e=wr,wr=r),wr})())!==r&&(Pr=d,N={column_format:N}),(d=N)===r&&(d=e,(N=(function(){var wr=e,i,b;return t.substr(e,7).toLowerCase()==="storage"?(i=t.substr(e,7),e+=7):(i=r,K===0&&_t(n0)),i!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="disk"?(b=t.substr(e,4),e+=4):(b=r,K===0&&_t(Dc)),b===r&&(t.substr(e,6).toLowerCase()==="memory"?(b=t.substr(e,6),e+=6):(b=r,K===0&&_t(s0))),b===r?(e=wr,wr=r):(Pr=wr,i={type:"storage",value:b.toLowerCase()},wr=i)):(e=wr,wr=r),wr})())!==r&&(Pr=d,N={storage:N}),(d=N)===r&&(d=e,(N=wi())!==r&&(Pr=d,N={reference_definition:N}),(d=N)===r&&(d=e,(N=(function(){var wr=e,i,b,m,x,tr,Cr,gr;return(i=Zo())===r&&(i=null),i!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="check"?(b=t.substr(e,5),e+=5):(b=r,K===0&&_t(Ki)),b!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(m=et())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?(x=e,(tr=$e())===r&&(tr=null),tr!==r&&(Cr=Wr())!==r?(t.substr(e,8).toLowerCase()==="enforced"?(gr=t.substr(e,8),e+=8):(gr=r,K===0&&_t(Fb)),gr===r?(e=x,x=r):x=tr=[tr,Cr,gr]):(e=x,x=r),x===r&&(x=null),x===r?(e=wr,wr=r):(Pr=wr,i=(function(Yr,Rt,gt,Gt){let rn=[];return Gt&&rn.push(Gt[0],Gt[2]),{constraint_type:Rt.toLowerCase(),keyword:Yr&&Yr.keyword,constraint:Yr&&Yr.constraint,definition:[gt],enforced:rn.filter(xn=>xn).join(" ").toLowerCase(),resource:"constraint"}})(i,b,m,x),wr=i)):(e=wr,wr=r)):(e=wr,wr=r),wr})())!==r&&(Pr=d,N={check:N}),(d=N)===r&&(d=e,(N=Ir())!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r&&(X=nu())!==r?(Pr=d,d=N=(function(wr,i,b){return{character_set:{type:wr,value:b,symbol:i}}})(N,H,X)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=(function(){var wr=e,i=e,b,m,x,tr,Cr,gr;if((b=(function(){var Rt=e,gt=e,Gt,rn,xn;return t.substr(e,9).toLowerCase()==="generated"?(Gt=t.substr(e,9),e+=9):(Gt=r,K===0&&_t(Rv)),Gt!==r&&(rn=Wr())!==r?(t.substr(e,6).toLowerCase()==="always"?(xn=t.substr(e,6),e+=6):(xn=r,K===0&&_t(nv)),xn===r?(e=gt,gt=r):gt=Gt=[Gt,rn,xn]):(e=gt,gt=r),gt!==r&&(Pr=Rt,gt=gt.join("").toLowerCase()),Rt=gt})())===r&&(b=null),b!==r&&(m=Wr())!==r?(t.substr(e,2).toLowerCase()==="as"?(x=t.substr(e,2),e+=2):(x=r,K===0&&_t(mi)),x===r?(e=i,i=r):i=b=[b,m,x]):(e=i,i=r),i!==r)if((b=Wr())!==r)if((m=mo())!==r)if((x=Wr())!==r)if((tr=vl())===r&&(tr=mr()),tr!==r)if(Wr()!==r)if(ho()!==r)if(Wr()!==r){for(Cr=[],t.substr(e,6).toLowerCase()==="stored"?(gr=t.substr(e,6),e+=6):(gr=r,K===0&&_t(sv)),gr===r&&(t.substr(e,7).toLowerCase()==="virtual"?(gr=t.substr(e,7),e+=7):(gr=r,K===0&&_t(ev)));gr!==r;)Cr.push(gr),t.substr(e,6).toLowerCase()==="stored"?(gr=t.substr(e,6),e+=6):(gr=r,K===0&&_t(sv)),gr===r&&(t.substr(e,7).toLowerCase()==="virtual"?(gr=t.substr(e,7),e+=7):(gr=r,K===0&&_t(ev)));Cr===r?(e=wr,wr=r):(Pr=wr,Yr=Cr,i={type:"generated",expr:tr,value:i.filter(Rt=>typeof Rt=="string").join(" ").toLowerCase(),storage_type:Yr&&Yr[0]&&Yr[0].toLowerCase()},wr=i)}else e=wr,wr=r;else e=wr,wr=r;else e=wr,wr=r;else e=wr,wr=r;else e=wr,wr=r;else e=wr,wr=r;else e=wr,wr=r;else e=wr,wr=r;var Yr;return wr})())!==r&&(Pr=d,N={generated:N}),d=N)))))))))))),d}function ea(){var d,N,H,X;return d=e,(N=Je())!==r&&Wr()!==r&&(H=fr())!==r&&Wr()!==r?((X=(function(){var lr,wr,i,b,m,x;if(lr=e,(wr=li())!==r)if(Wr()!==r){for(i=[],b=e,(m=Wr())!==r&&(x=li())!==r?b=m=[m,x]:(e=b,b=r);b!==r;)i.push(b),b=e,(m=Wr())!==r&&(x=li())!==r?b=m=[m,x]:(e=b,b=r);i===r?(e=lr,lr=r):(Pr=lr,lr=wr=(function(tr,Cr){let gr=tr;for(let Yr=0;Yr<Cr.length;Yr++)gr={...gr,...Cr[Yr][1]};return gr})(wr,i))}else e=lr,lr=r;else e=lr,lr=r;return lr})())===r&&(X=null),X===r?(e=d,d=r):(Pr=d,d=N=(function(lr,wr,i){return jn.add(`create::${lr.table}::${lr.column}`),{column:lr,definition:wr,resource:"column",...i||{}}})(N,H,X))):(e=d,d=r),d}function Ml(){var d,N,H,X,lr;return d=e,t.substr(e,7).toLowerCase()==="definer"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t($u)),N!==r&&Wr()!==r&&Mn()!==r&&Wr()!==r?((H=Jo())===r&&(H=Ei()),H!==r&&Wr()!==r?(t.charCodeAt(e)===64?(X="@",e++):(X=r,K===0&&_t(Ue)),X!==r&&Wr()!==r?((lr=Jo())===r&&(lr=Ei()),lr===r?(e=d,d=r):(Pr=d,d=N=(function(wr,i){return sr("=",{type:"origin",value:"definer"},sr("@",wr,i))})(H,lr))):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,7).toLowerCase()==="definer"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t($u)),N!==r&&Wr()!==r&&Mn()!==r&&Wr()!==r&&(H=Qr())!==r&&Wr()!==r&&(X=mo())!==r&&Wr()!==r&&(lr=ho())!==r?(Pr=d,d=N=Qe()):(e=d,d=r),d===r&&(d=e,t.substr(e,7).toLowerCase()==="definer"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t($u)),N!==r&&Wr()!==r&&Mn()!==r&&Wr()!==r&&(H=Qr())!==r?(Pr=d,d=N=Qe()):(e=d,d=r))),d}function Le(){var d,N,H;return d=e,(function(){var X=e,lr,wr,i;return t.substr(e,7).toLowerCase()==="collate"?(lr=t.substr(e,7),e+=7):(lr=r,K===0&&_t(Uf)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="COLLATE")),X})()!==r&&Wr()!==r?((N=Mn())===r&&(N=null),N!==r&&Wr()!==r&&(H=qs())!==r?(Pr=d,d={type:"collate",keyword:"collate",collate:{name:H,symbol:N}}):(e=d,d=r)):(e=d,d=r),d}function rl(){var d,N,H;return d=e,t.substr(e,2).toLowerCase()==="if"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(yc)),N!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="exists"?(H=t.substr(e,6),e+=6):(H=r,K===0&&_t($c)),H===r?(e=d,d=r):(Pr=d,d=N="if exists")):(e=d,d=r),d}function xu(){var d,N,H;return d=e,t.substr(e,5).toLowerCase()==="first"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Sf)),N!==r&&(Pr=d,N={keyword:N}),(d=N)===r&&(d=e,t.substr(e,5).toLowerCase()==="after"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(R0)),N!==r&&Wr()!==r&&(H=Je())!==r?(Pr=d,d=N=(function(X,lr){return{keyword:X,expr:lr}})(N,H)):(e=d,d=r)),d}function si(){var d,N,H;return(d=(function(){var X=e,lr,wr;return(lr=as())!==r&&Wr()!==r&&(wr=Wu())!==r?(Pr=X,lr=(function(i){return{action:"add",create_definitions:i,resource:"constraint",type:"alter"}})(wr),X=lr):(e=X,X=r),X})())===r&&(d=(function(){var X=e,lr,wr,i;return(lr=_c())!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="check"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(Ki)),wr!==r&&Wr()!==r&&(i=cu())!==r?(Pr=X,lr=(function(b,m){return{action:"drop",constraint:m,keyword:b.toLowerCase(),resource:"constraint",type:"alter"}})(wr,i),X=lr):(e=X,X=r)):(e=X,X=r),X===r&&(X=e,(lr=_c())!==r&&Wr()!==r?(t.substr(e,10).toLowerCase()==="constraint"?(wr=t.substr(e,10),e+=10):(wr=r,K===0&&_t(sl)),wr!==r&&Wr()!==r&&(i=cu())!==r?(Pr=X,lr=(function(b,m){return{action:"drop",constraint:m,keyword:b.toLowerCase(),resource:"constraint",type:"alter"}})(wr,i),X=lr):(e=X,X=r)):(e=X,X=r)),X})())===r&&(d=(function(){var X=e,lr,wr,i,b,m;return(lr=_c())!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="primary"?(wr=t.substr(e,7),e+=7):(wr=r,K===0&&_t(He)),wr!==r&&(i=Wr())!==r&&(b=we())!==r?(Pr=X,X=lr={action:"drop",key:"",keyword:"primary key",resource:"key",type:"alter"}):(e=X,X=r)):(e=X,X=r),X===r&&(X=e,(lr=_c())!==r&&Wr()!==r?(wr=e,t.substr(e,7).toLowerCase()==="foreign"?(i=t.substr(e,7),e+=7):(i=r,K===0&&_t(Bl)),i===r&&(i=null),i!==r&&(b=Wr())!==r&&(m=we())!==r?wr=i=[i,b,m]:(e=wr,wr=r),wr===r&&(wr=_s()),wr!==r&&(i=Wr())!==r&&(b=qs())!==r?(Pr=X,lr=(function(x,tr){let Cr=Array.isArray(x)?"key":"index";return{action:"drop",[Cr]:tr,keyword:Array.isArray(x)?""+[x[0],x[2]].filter(gr=>gr).join(" ").toLowerCase():x.toLowerCase(),resource:Cr,type:"alter"}})(wr,b),X=lr):(e=X,X=r)):(e=X,X=r)),X})())===r&&(d=(function(){var X=e,lr,wr,i,b;return(lr=it())!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="check"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(Ki)),wr!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="check"?(i=t.substr(e,5),e+=5):(i=r,K===0&&_t(Ki)),i!==r&&Wr()!==r&&No()!==r&&Wr()!==r&&(b=cu())!==r?(Pr=X,lr=(function(m){return{action:"with",constraint:m,keyword:"check check",resource:"constraint",type:"alter"}})(b),X=lr):(e=X,X=r)):(e=X,X=r)):(e=X,X=r),X})())===r&&(d=(function(){var X=e,lr,wr;return t.substr(e,7).toLowerCase()==="nocheck"?(lr=t.substr(e,7),e+=7):(lr=r,K===0&&_t(sc)),lr!==r&&Wr()!==r&&No()!==r&&Wr()!==r&&(wr=cu())!==r?(Pr=X,lr=(function(i){return{action:"nocheck",constraint:i,resource:"constraint",type:"alter"}})(wr),X=lr):(e=X,X=r),X})())===r&&(d=(function(){var X=e,lr,wr,i,b;(lr=as())!==r&&Wr()!==r&&(wr=cs())!==r&&Wr()!==r&&(i=ea())!==r&&Wr()!==r?((b=xu())===r&&(b=null),b===r?(e=X,X=r):(Pr=X,m=wr,x=i,tr=b,lr={action:"add",...x,keyword:m,suffix:tr,resource:"column",type:"alter"},X=lr)):(e=X,X=r);var m,x,tr;return X===r&&(X=e,(lr=as())!==r&&Wr()!==r&&(wr=ea())!==r&&Wr()!==r?((i=xu())===r&&(i=null),i===r?(e=X,X=r):(Pr=X,lr=(function(Cr,gr){return{action:"add",...Cr,suffix:gr,resource:"column",type:"alter"}})(wr,i),X=lr)):(e=X,X=r)),X})())===r&&(d=(function(){var X=e,lr,wr,i;return(lr=_c())!==r&&Wr()!==r&&(wr=cs())!==r&&Wr()!==r&&(i=Je())!==r?(Pr=X,lr=(function(b,m){return{action:"drop",column:m,keyword:b,resource:"column",type:"alter"}})(wr,i),X=lr):(e=X,X=r),X===r&&(X=e,(lr=_c())!==r&&Wr()!==r&&(wr=Je())!==r?(Pr=X,lr=(function(b){return{action:"drop",column:b,resource:"column",type:"alter"}})(wr),X=lr):(e=X,X=r)),X})())===r&&(d=(function(){var X=e,lr,wr,i,b;(lr=(function(){var tr=e,Cr,gr,Yr;return t.substr(e,6).toLowerCase()==="modify"?(Cr=t.substr(e,6),e+=6):(Cr=r,K===0&&_t(Ya)),Cr===r?(e=tr,tr=r):(gr=e,K++,Yr=le(),K--,Yr===r?gr=void 0:(e=gr,gr=r),gr===r?(e=tr,tr=r):(Pr=tr,tr=Cr="MODIFY")),tr})())!==r&&Wr()!==r?((wr=cs())===r&&(wr=null),wr!==r&&Wr()!==r&&(i=ea())!==r&&Wr()!==r?((b=xu())===r&&(b=null),b===r?(e=X,X=r):(Pr=X,m=i,x=b,lr={action:"modify",keyword:wr,...m,suffix:x,resource:"column",type:"alter"},X=lr)):(e=X,X=r)):(e=X,X=r);var m,x;return X})())===r&&(d=(function(){var X=e,lr,wr;(lr=as())!==r&&Wr()!==r&&(wr=$a())!==r?(Pr=X,i=wr,lr={action:"add",type:"alter",...i},X=lr):(e=X,X=r);var i;return X})())===r&&(d=(function(){var X=e,lr,wr;(lr=as())!==r&&Wr()!==r&&(wr=bc())!==r?(Pr=X,i=wr,lr={action:"add",type:"alter",...i},X=lr):(e=X,X=r);var i;return X})())===r&&(d=(function(){var X=e,lr,wr,i,b;return(lr=qo())!==r&&Wr()!==r&&cs()!==r&&Wr()!==r&&(wr=Je())!==r&&Wr()!==r?((i=pc())===r&&(i=G0()),i===r&&(i=null),i!==r&&Wr()!==r&&(b=Je())!==r?(Pr=X,lr=(function(m,x,tr){return{action:"rename",type:"alter",resource:"column",keyword:"column",old_column:m,prefix:x&&x[0].toLowerCase(),column:tr}})(wr,i,b),X=lr):(e=X,X=r)):(e=X,X=r),X})())===r&&(d=(function(){var X=e,lr,wr,i;(lr=qo())!==r&&Wr()!==r?((wr=pc())===r&&(wr=G0()),wr===r&&(wr=null),wr!==r&&Wr()!==r&&(i=qs())!==r?(Pr=X,m=i,lr={action:"rename",type:"alter",resource:"table",keyword:(b=wr)&&b[0].toLowerCase(),table:m},X=lr):(e=X,X=r)):(e=X,X=r);var b,m;return X})())===r&&(d=tl())===r&&(d=Dl())===r&&(d=(function(){var X=e,lr,wr,i,b,m;t.substr(e,6).toLowerCase()==="change"?(lr=t.substr(e,6),e+=6):(lr=r,K===0&&_t(hc)),lr!==r&&Wr()!==r?((wr=cs())===r&&(wr=null),wr!==r&&Wr()!==r&&(i=Je())!==r&&Wr()!==r&&(b=ea())!==r&&Wr()!==r?((m=xu())===r&&(m=null),m===r?(e=X,X=r):(Pr=X,x=wr,tr=b,Cr=m,lr={action:"change",old_column:i,...tr,keyword:x,resource:"column",type:"alter",suffix:Cr},X=lr)):(e=X,X=r)):(e=X,X=r);var x,tr,Cr;return X})())===r&&(d=(function(){var X=e,lr,wr,i,b;return t.substr(e,4).toLowerCase()==="drop"?(lr=t.substr(e,4),e+=4):(lr=r,K===0&&_t(Vf)),lr===r&&(t.substr(e,8).toLowerCase()==="truncate"?(lr=t.substr(e,8),e+=8):(lr=r,K===0&&_t(Vv)),lr===r&&(t.substr(e,7).toLowerCase()==="discard"?(lr=t.substr(e,7),e+=7):(lr=r,K===0&&_t(db)),lr===r&&(t.substr(e,6).toLowerCase()==="import"?(lr=t.substr(e,6),e+=6):(lr=r,K===0&&_t(Of)),lr===r&&(t.substr(e,8).toLowerCase()==="coalesce"?(lr=t.substr(e,8),e+=8):(lr=r,K===0&&_t(Pc)),lr===r&&(t.substr(e,7).toLowerCase()==="analyze"?(lr=t.substr(e,7),e+=7):(lr=r,K===0&&_t(H0)),lr===r&&(t.substr(e,5).toLowerCase()==="check"?(lr=t.substr(e,5),e+=5):(lr=r,K===0&&_t(Ki)))))))),lr!==r&&Wr()!==r&&(wr=Yo())!==r&&Wr()!==r&&(i=xt())!==r&&Wr()!==r?(t.substr(e,10).toLowerCase()==="tablespace"?(b=t.substr(e,10),e+=10):(b=r,K===0&&_t(bf)),b===r&&(b=null),b===r?(e=X,X=r):(Pr=X,lr=(function(m,x,tr,Cr){let gr={action:m.toLowerCase(),keyword:x,resource:"partition",type:"alter",partitions:tr};return Cr&&(gr.suffix={keyword:Cr}),gr})(lr,wr,i,b),X=lr)):(e=X,X=r),X===r&&(X=e,(lr=as())!==r&&Wr()!==r&&(wr=Yo())!==r&&Wr()!==r&&(i=mo())!==r&&Wr()!==r&&(b=(function(){var m,x,tr,Cr,gr,Yr,Rt,gt;if(m=e,(x=Ni())!==r){for(tr=[],Cr=e,(gr=Wr())!==r&&(Yr=Me())!==r&&(Rt=Wr())!==r&&(gt=Ni())!==r?Cr=gr=[gr,Yr,Rt,gt]:(e=Cr,Cr=r);Cr!==r;)tr.push(Cr),Cr=e,(gr=Wr())!==r&&(Yr=Me())!==r&&(Rt=Wr())!==r&&(gt=Ni())!==r?Cr=gr=[gr,Yr,Rt,gt]:(e=Cr,Cr=r);tr===r?(e=m,m=r):(Pr=m,x=Dn(x,tr),m=x)}else e=m,m=r;return m})())!==r&&Wr()!==r&&ho()!==r?(Pr=X,X=lr={action:"add",keyword:wr,resource:"partition",type:"alter",partitions:b}):(e=X,X=r)),X})())===r&&(d=e,(N=er())!==r&&(Pr=d,(H=N).resource=H.keyword,H[H.keyword]=H.value,delete H.value,N={type:"alter",...H}),d=N),d}function Ni(){var d,N,H,X,lr;return d=e,Yo()!==r&&Wr()!==r&&(N=nu())!==r&&Wr()!==r&&Er()!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="less"?(H=t.substr(e,4),e+=4):(H=r,K===0&&_t(Rl)),H!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="than"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(ff)),X!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(lr=ga())!==r&&Wr()!==r&&ho()!==r?(Pr=d,d={name:N,value:{type:"less than",expr:lr,parentheses:!0}}):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d}function tl(){var d,N,H,X;return d=e,t.substr(e,9).toLowerCase()==="algorithm"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(ei)),N!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="default"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Oi)),X===r&&(t.substr(e,7).toLowerCase()==="instant"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Lb)),X===r&&(t.substr(e,7).toLowerCase()==="inplace"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Fa)),X===r&&(t.substr(e,4).toLowerCase()==="copy"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(Kf))))),X===r?(e=d,d=r):(Pr=d,d=N={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:H,algorithm:X})):(e=d,d=r)):(e=d,d=r),d}function Dl(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="lock"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(lf)),N!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="default"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Oi)),X===r&&(t.substr(e,4).toLowerCase()==="none"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(dl)),X===r&&(t.substr(e,6).toLowerCase()==="shared"?(X=t.substr(e,6),e+=6):(X=r,K===0&&_t(Nv)),X===r&&(t.substr(e,9).toLowerCase()==="exclusive"?(X=t.substr(e,9),e+=9):(X=r,K===0&&_t(Gb))))),X===r?(e=d,d=r):(Pr=d,d=N={type:"alter",keyword:"lock",resource:"lock",symbol:H,lock:X})):(e=d,d=r)):(e=d,d=r),d}function $a(){var d,N,H,X,lr,wr;return d=e,(N=_s())===r&&(N=we()),N!==r&&Wr()!==r?((H=oa())===r&&(H=null),H!==r&&Wr()!==r?((X=fe())===r&&(X=null),X!==r&&Wr()!==r&&(lr=Ar())!==r&&Wr()!==r?((wr=ne())===r&&(wr=null),wr!==r&&Wr()!==r?(Pr=d,d=N=(function(i,b,m,x,tr){return{index:b,definition:x,keyword:i.toLowerCase(),index_type:m,resource:"index",index_options:tr}})(N,H,X,lr,wr)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d}function bc(){var d,N,H,X,lr,wr;return d=e,(N=Pe())===r&&(N=jr()),N!==r&&Wr()!==r?((H=_s())===r&&(H=we()),H===r&&(H=null),H!==r&&Wr()!==r?((X=oa())===r&&(X=null),X!==r&&Wr()!==r&&(lr=nr())!==r&&Wr()!==r?((wr=ne())===r&&(wr=null),wr===r?(e=d,d=r):(Pr=d,d=N=(function(i,b,m,x,tr){return{index:m,definition:x,keyword:b&&`${i.toLowerCase()} ${b.toLowerCase()}`||i.toLowerCase(),index_options:tr,resource:"index"}})(N,H,X,lr,wr))):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d}function Wu(){var d;return(d=(function(){var N=e,H,X,lr,wr,i,b,m;(H=Zo())===r&&(H=null),H!==r&&Wr()!==r?(X=e,t.substr(e,7).toLowerCase()==="primary"?(lr=t.substr(e,7),e+=7):(lr=r,K===0&&_t(He)),lr!==r&&(wr=Wr())!==r?(t.substr(e,3).toLowerCase()==="key"?(i=t.substr(e,3),e+=3):(i=r,K===0&&_t(ce)),i===r?(e=X,X=r):X=lr=[lr,wr,i]):(e=X,X=r),X!==r&&(lr=Wr())!==r?((wr=fe())===r&&(wr=null),wr!==r&&(i=Wr())!==r&&(b=Ar())!==r&&Wr()!==r?((m=ne())===r&&(m=null),m===r?(e=N,N=r):(Pr=N,tr=X,Cr=wr,gr=b,Yr=m,H={constraint:(x=H)&&x.constraint,definition:gr,constraint_type:`${tr[0].toLowerCase()} ${tr[2].toLowerCase()}`,keyword:x&&x.keyword,index_type:Cr,resource:"constraint",index_options:Yr},N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r);var x,tr,Cr,gr,Yr;return N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m;(H=Zo())===r&&(H=null),H!==r&&Wr()!==r&&(X=oo())!==r&&Wr()!==r?((lr=_s())===r&&(lr=we()),lr===r&&(lr=null),lr!==r&&Wr()!==r?((wr=oa())===r&&(wr=null),wr!==r&&Wr()!==r?((i=fe())===r&&(i=null),i!==r&&Wr()!==r&&(b=Ar())!==r&&Wr()!==r?((m=ne())===r&&(m=null),m===r?(e=N,N=r):(Pr=N,tr=X,Cr=lr,gr=wr,Yr=i,Rt=b,gt=m,H={constraint:(x=H)&&x.constraint,definition:Rt,constraint_type:Cr&&`${tr.toLowerCase()} ${Cr.toLowerCase()}`||tr.toLowerCase(),keyword:x&&x.keyword,index_type:Yr,index:gr,resource:"constraint",index_options:gt},N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r);var x,tr,Cr,gr,Yr,Rt,gt;return N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i;(H=Zo())===r&&(H=null),H!==r&&Wr()!==r?(t.substr(e,11).toLowerCase()==="foreign key"?(X=t.substr(e,11),e+=11):(X=r,K===0&&_t(ov)),X!==r&&Wr()!==r?((lr=oa())===r&&(lr=null),lr!==r&&Wr()!==r&&(wr=nr())!==r&&Wr()!==r?((i=wi())===r&&(i=null),i===r?(e=N,N=r):(Pr=N,m=X,x=lr,tr=wr,Cr=i,H={constraint:(b=H)&&b.constraint,definition:tr,constraint_type:m,keyword:b&&b.keyword,index:x,resource:"constraint",reference_definition:Cr},N=H)):(e=N,N=r)):(e=N,N=r)):(e=N,N=r);var b,m,x,tr,Cr;return N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m,x,tr;return(H=Zo())===r&&(H=null),H!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="check"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(Ki)),X!==r&&Wr()!==r?(lr=e,t.substr(e,3).toLowerCase()==="not"?(wr=t.substr(e,3),e+=3):(wr=r,K===0&&_t(Y0)),wr!==r&&(i=Wr())!==r?(t.substr(e,3).toLowerCase()==="for"?(b=t.substr(e,3),e+=3):(b=r,K===0&&_t(Pu)),b!==r&&(m=Wr())!==r?(t.substr(e,11).toLowerCase()==="replication"?(x=t.substr(e,11),e+=11):(x=r,K===0&&_t(N0)),x!==r&&(tr=Wr())!==r?lr=wr=[wr,i,b,m,x,tr]:(e=lr,lr=r)):(e=lr,lr=r)):(e=lr,lr=r),lr===r&&(lr=null),lr!==r&&(wr=mo())!==r&&(i=Wr())!==r&&(b=et())!==r&&(m=Wr())!==r&&(x=ho())!==r?(Pr=N,H=(function(Cr,gr,Yr,Rt){return{constraint_type:gr.toLowerCase(),keyword:Cr&&Cr.keyword,constraint:Cr&&Cr.constraint,index_type:Yr&&{keyword:"not for replication"},definition:[Rt],resource:"constraint"}})(H,X,lr,b),N=H):(e=N,N=r)):(e=N,N=r)):(e=N,N=r),N})()),d}function Zo(){var d,N,H;return d=e,(N=No())!==r&&Wr()!==r?((H=qs())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(X,lr){return{keyword:X.toLowerCase(),constraint:lr}})(N,H))):(e=d,d=r),d}function wi(){var d,N,H,X,lr,wr,i,b,m,x;return d=e,(N=lu())!==r&&Wr()!==r&&(H=me())!==r&&Wr()!==r&&(X=nr())!==r&&Wr()!==r?(t.substr(e,10).toLowerCase()==="match full"?(lr=t.substr(e,10),e+=10):(lr=r,K===0&&_t(e0)),lr===r&&(t.substr(e,13).toLowerCase()==="match partial"?(lr=t.substr(e,13),e+=13):(lr=r,K===0&&_t(Cb)),lr===r&&(t.substr(e,12).toLowerCase()==="match simple"?(lr=t.substr(e,12),e+=12):(lr=r,K===0&&_t(_0)))),lr===r&&(lr=null),lr!==r&&Wr()!==r?((wr=j())===r&&(wr=null),wr!==r&&Wr()!==r?((i=j())===r&&(i=null),i===r?(e=d,d=r):(Pr=d,b=lr,m=wr,x=i,d=N={definition:X,table:H,keyword:N.toLowerCase(),match:b&&b.toLowerCase(),on_action:[m,x].filter(tr=>tr)})):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=j())!==r&&(Pr=d,N={on_action:[N]}),d=N),d}function j(){var d,N,H,X;return d=e,R()!==r&&Wr()!==r?((N=of())===r&&(N=ip()),N!==r&&Wr()!==r&&(H=(function(){var lr=e,wr,i;return(wr=Vr())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r?((i=ms())===r&&(i=null),i!==r&&Wr()!==r&&ho()!==r?(Pr=lr,lr=wr={type:"function",name:{name:[{type:"origin",value:wr}]},args:i}):(e=lr,lr=r)):(e=lr,lr=r),lr===r&&(lr=e,(wr=ur())===r&&(t.substr(e,8).toLowerCase()==="set null"?(wr=t.substr(e,8),e+=8):(wr=r,K===0&&_t(o0)),wr===r&&(t.substr(e,9).toLowerCase()==="no action"?(wr=t.substr(e,9),e+=9):(wr=r,K===0&&_t(xi)),wr===r&&(t.substr(e,11).toLowerCase()==="set default"?(wr=t.substr(e,11),e+=11):(wr=r,K===0&&_t(xf)),wr===r&&(wr=Vr())))),wr!==r&&(Pr=lr,wr={type:"origin",value:wr.toLowerCase()}),lr=wr),lr})())!==r?(Pr=d,X=H,d={type:"on "+N[0].toLowerCase(),value:X}):(e=d,d=r)):(e=d,d=r),d}function ur(){var d,N;return d=e,t.substr(e,8).toLowerCase()==="restrict"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(zf)),N===r&&(t.substr(e,7).toLowerCase()==="cascade"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(je))),N!==r&&(Pr=d,N=N.toLowerCase()),d=N}function Ir(){var d,N,H;return d=e,t.substr(e,9).toLowerCase()==="character"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(Zf)),N!==r&&Wr()!==r?(t.substr(e,3).toLowerCase()==="set"?(H=t.substr(e,3),e+=3):(H=r,K===0&&_t(W0)),H===r?(e=d,d=r):(Pr=d,d=N="CHARACTER SET")):(e=d,d=r),d}function s(){var d,N,H,X,lr,wr,i,b,m;return d=e,(N=mv())===r&&(N=null),N!==r&&Wr()!==r?((H=Ir())===r&&(t.substr(e,7).toLowerCase()==="charset"?(H=t.substr(e,7),e+=7):(H=r,K===0&&_t(jb)),H===r&&(t.substr(e,7).toLowerCase()==="collate"?(H=t.substr(e,7),e+=7):(H=r,K===0&&_t(Uf)))),H!==r&&Wr()!==r?((X=Mn())===r&&(X=null),X!==r&&Wr()!==r&&(lr=nu())!==r?(Pr=d,i=H,b=X,m=lr,d=N={keyword:(wr=N)&&`${wr[0].toLowerCase()} ${i.toLowerCase()}`||i.toLowerCase(),symbol:b,value:m}):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d}function er(){var d,N,H,X,lr,wr,i,b,m;return d=e,t.substr(e,14).toLowerCase()==="auto_increment"?(N=t.substr(e,14),e+=14):(N=r,K===0&&_t(Ss)),N===r&&(t.substr(e,14).toLowerCase()==="avg_row_length"?(N=t.substr(e,14),e+=14):(N=r,K===0&&_t(u0)),N===r&&(t.substr(e,14).toLowerCase()==="key_block_size"?(N=t.substr(e,14),e+=14):(N=r,K===0&&_t(wb)),N===r&&(t.substr(e,8).toLowerCase()==="max_rows"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Ui)),N===r&&(t.substr(e,8).toLowerCase()==="min_rows"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(uv)),N===r&&(t.substr(e,18).toLowerCase()==="stats_sample_pages"?(N=t.substr(e,18),e+=18):(N=r,K===0&&_t(yb))))))),N!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r&&(X=ga())!==r?(Pr=d,b=H,m=X,d=N={keyword:N.toLowerCase(),symbol:b,value:m.value}):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,8)==="CHECKSUM"?(N="CHECKSUM",e+=8):(N=r,K===0&&_t(hb)),N===r&&(t.substr(e,15)==="DELAY_KEY_WRITE"?(N="DELAY_KEY_WRITE",e+=15):(N=r,K===0&&_t(Kv))),N!==r&&Wr()!==r&&(H=Mn())!==r&&Wr()!==r?(Gc.test(t.charAt(e))?(X=t.charAt(e),e++):(X=r,K===0&&_t(_v)),X===r?(e=d,d=r):(Pr=d,d=N=(function(x,tr,Cr){return{keyword:x.toLowerCase(),symbol:tr,value:Cr}})(N,H,X))):(e=d,d=r),d===r&&(d=s())===r&&(d=e,(N=Bo())===r&&(t.substr(e,10).toLowerCase()==="connection"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(kf)),N===r&&(t.substr(e,16).toLowerCase()==="engine_attribute"?(N=t.substr(e,16),e+=16):(N=r,K===0&&_t(vf)),N===r&&(t.substr(e,26).toLowerCase()==="secondary_engine_attribute"?(N=t.substr(e,26),e+=26):(N=r,K===0&&_t(ki))))),N!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r&&(X=Ei())!==r?(Pr=d,d=N=(function(x,tr,Cr){return{keyword:x.toLowerCase(),symbol:tr,value:`'${Cr.value}'`}})(N,H,X)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,4).toLowerCase()==="data"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Hl)),N===r&&(t.substr(e,5).toLowerCase()==="index"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Eb))),N!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="directory"?(H=t.substr(e,9),e+=9):(H=r,K===0&&_t(Bb)),H!==r&&Wr()!==r?((X=Mn())===r&&(X=null),X!==r&&(lr=Wr())!==r&&(wr=Ei())!==r?(Pr=d,d=N=(function(x,tr,Cr){return{keyword:x.toLowerCase()+" directory",symbol:tr,value:`'${Cr.value}'`}})(N,X,wr)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,11).toLowerCase()==="compression"?(N=t.substr(e,11),e+=11):(N=r,K===0&&_t(pa)),N!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r?(X=e,t.charCodeAt(e)===39?(lr="'",e++):(lr=r,K===0&&_t(wl)),lr===r?(e=X,X=r):(t.substr(e,4).toLowerCase()==="zlib"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(Nl)),wr===r&&(t.substr(e,3).toLowerCase()==="lz4"?(wr=t.substr(e,3),e+=3):(wr=r,K===0&&_t(Sv)),wr===r&&(t.substr(e,4).toLowerCase()==="none"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(dl)))),wr===r?(e=X,X=r):(t.charCodeAt(e)===39?(i="'",e++):(i=r,K===0&&_t(wl)),i===r?(e=X,X=r):X=lr=[lr,wr,i])),X===r?(e=d,d=r):(Pr=d,d=N=(function(x,tr,Cr){return{keyword:x.toLowerCase(),symbol:tr,value:Cr.join("").toUpperCase()}})(N,H,X))):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,6).toLowerCase()==="engine"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Hb)),N!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r&&(X=cu())!==r?(Pr=d,d=N=Jf(N,H,X)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,10).toLowerCase()==="row_format"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(pf)),N!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="default"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Oi)),X===r&&(t.substr(e,7).toLowerCase()==="dynamic"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(t0)),X===r&&(t.substr(e,5).toLowerCase()==="fixed"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(ri)),X===r&&(t.substr(e,10).toLowerCase()==="compressed"?(X=t.substr(e,10),e+=10):(X=r,K===0&&_t(Yb)),X===r&&(t.substr(e,9).toLowerCase()==="redundant"?(X=t.substr(e,9),e+=9):(X=r,K===0&&_t(av)),X===r&&(t.substr(e,7).toLowerCase()==="compact"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(iv))))))),X===r?(e=d,d=r):(Pr=d,d=N=Jf(N,H,X))):(e=d,d=r)):(e=d,d=r))))))),d}function Lt(){var d,N,H,X,lr;return d=e,(N=eo())!==r&&Wr()!==r&&(H=(function(){var wr,i,b;return wr=e,t.substr(e,4).toLowerCase()==="read"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(a0)),i!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="local"?(b=t.substr(e,5),e+=5):(b=r,K===0&&_t(g0)),b===r&&(b=null),b===r?(e=wr,wr=r):(Pr=wr,wr=i={type:"read",suffix:b&&"local"})):(e=wr,wr=r),wr===r&&(wr=e,t.substr(e,12).toLowerCase()==="low_priority"?(i=t.substr(e,12),e+=12):(i=r,K===0&&_t(_l)),i===r&&(i=null),i!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="write"?(b=t.substr(e,5),e+=5):(b=r,K===0&&_t(Yl)),b===r?(e=wr,wr=r):(Pr=wr,wr=i={type:"write",prefix:i&&"low_priority"})):(e=wr,wr=r)),wr})())!==r?(Pr=d,X=N,lr=H,Tn.add(`lock::${X.db}::${X.table}`),d=N={table:X,lock_type:lr}):(e=d,d=r),d}function mt(){var d,N,H,X;return d=e,t.substr(e,9).toLowerCase()==="isolation"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(au)),N!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="level"?(H=t.substr(e,5),e+=5):(H=r,K===0&&_t(Iu)),H!==r&&Wr()!==r&&(X=(function(){var lr,wr,i;return lr=e,t.substr(e,12).toLowerCase()==="serializable"?(wr=t.substr(e,12),e+=12):(wr=r,K===0&&_t(Ro)),wr!==r&&(Pr=lr,wr={type:"origin",value:"serializable"}),(lr=wr)===r&&(lr=e,t.substr(e,10).toLowerCase()==="repeatable"?(wr=t.substr(e,10),e+=10):(wr=r,K===0&&_t(So)),wr!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="read"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(a0)),i===r?(e=lr,lr=r):(Pr=lr,lr=wr={type:"origin",value:"repeatable read"})):(e=lr,lr=r),lr===r&&(lr=e,t.substr(e,4).toLowerCase()==="read"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(a0)),wr!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="committed"?(i=t.substr(e,9),e+=9):(i=r,K===0&&_t(uu)),i===r&&(t.substr(e,11).toLowerCase()==="uncommitted"?(i=t.substr(e,11),e+=11):(i=r,K===0&&_t(ko))),i===r?(e=lr,lr=r):(Pr=lr,lr=wr=yu(i))):(e=lr,lr=r))),lr})())!==r?(Pr=d,d=N={type:"origin",value:"isolation level "+X.value}):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,4).toLowerCase()==="read"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(a0)),N!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="write"?(H=t.substr(e,5),e+=5):(H=r,K===0&&_t(Yl)),H===r&&(t.substr(e,4).toLowerCase()==="only"?(H=t.substr(e,4),e+=4):(H=r,K===0&&_t(mu))),H===r?(e=d,d=r):(Pr=d,d=N=yu(H))):(e=d,d=r),d===r&&(d=e,(N=$e())===r&&(N=null),N!==r&&Wr()!==r?(t.substr(e,10).toLowerCase()==="deferrable"?(H=t.substr(e,10),e+=10):(H=r,K===0&&_t(Ju)),H===r?(e=d,d=r):(Pr=d,d=N={type:"origin",value:N?"not deferrable":"deferrable"})):(e=d,d=r))),d}function bn(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=mt())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mt())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mt())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=Dn(N,H))}else e=d,d=r;return d}function ir(){var d,N,H,X,lr,wr;return d=e,t.substr(e,8).toLowerCase()==="starting"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Wl)),N===r&&(t.substr(e,10).toLowerCase()==="terminated"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(l0))),N!==r&&Wr()!==r?(t.substr(e,2).toLowerCase()==="by"?(H=t.substr(e,2),e+=2):(H=r,K===0&&_t(pe)),H!==r&&Wr()!==r&&(X=nu())!==r?(Pr=d,lr=N,(wr=X).prefix=lr.toUpperCase()+" BY",d=N={type:lr.toLowerCase(),[lr.toLowerCase()]:wr}):(e=d,d=r)):(e=d,d=r),d}function Zr(){var d;return(d=(function(){var N,H,X,lr,wr;return N=e,(H=ds())===r&&(H=Tv())===r&&(H=e,(X=Uu())!==r&&(lr=Wr())!==r?(t.substr(e,4).toLowerCase()==="view"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(cp)),wr===r?(e=H,H=r):H=X=[X,lr,wr]):(e=H,H=r),H===r&&(H=Uu())===r&&(H=of())===r&&(H=_c())===r&&(H=e,t.substr(e,5).toLowerCase()==="grant"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(c0)),X!==r&&(lr=Wr())!==r?(t.substr(e,6).toLowerCase()==="option"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(q0)),wr===r?(e=H,H=r):H=X=[X,lr,wr]):(e=H,H=r),H===r&&(H=_s())===r&&(H=Xc())===r&&(H=lu())===r&&(H=ef())===r&&(H=e,(X=Si())!==r&&(lr=Wr())!==r&&(wr=Pt())!==r?H=X=[X,lr,wr]:(e=H,H=r),H===r&&(H=Nf())===r&&(H=ip())))),H!==r&&(Pr=N,H=df(H)),N=H})())===r&&(d=(function(){var N,H,X,lr,wr;return N=e,H=e,(X=Tv())!==r&&(lr=Wr())!==r?(t.substr(e,7).toLowerCase()==="routine"?(wr=t.substr(e,7),e+=7):(wr=r,K===0&&_t(f0)),wr===r?(e=H,H=r):H=X=[X,lr,wr]):(e=H,H=r),H===r&&(t.substr(e,7).toLowerCase()==="execute"?(H=t.substr(e,7),e+=7):(H=r,K===0&&_t(b0)),H===r&&(H=e,t.substr(e,5).toLowerCase()==="grant"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(c0)),X!==r&&(lr=Wr())!==r?(t.substr(e,6).toLowerCase()==="option"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(q0)),wr===r?(e=H,H=r):H=X=[X,lr,wr]):(e=H,H=r),H===r&&(H=e,(X=Uu())!==r&&(lr=Wr())!==r?(t.substr(e,7).toLowerCase()==="routine"?(wr=t.substr(e,7),e+=7):(wr=r,K===0&&_t(f0)),wr===r?(e=H,H=r):H=X=[X,lr,wr]):(e=H,H=r)))),H!==r&&(Pr=N,H=df(H)),N=H})()),d}function rs(){var d,N,H,X,lr,wr,i,b;return d=e,(N=Zr())!==r&&Wr()!==r?(H=e,(X=mo())!==r&&(lr=Wr())!==r&&(wr=Po())!==r&&(i=Wr())!==r&&(b=ho())!==r?H=X=[X,lr,wr,i,b]:(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){return{priv:m,columns:x&&x[2]}})(N,H))):(e=d,d=r),d}function vs(){var d,N,H,X,lr,wr,i;return d=e,(N=qs())!==r&&Wr()!==r?(H=e,t.charCodeAt(e)===64?(X="@",e++):(X=r,K===0&&_t(Ue)),X!==r&&(lr=Wr())!==r&&(wr=qs())!==r?H=X=[X,lr,wr]:(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N={name:{type:"single_quote_string",value:N},host:(i=H)?{type:"single_quote_string",value:i[2]}:null})):(e=d,d=r),d}function Ds(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=vs())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=vs())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=vs())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=Fi(N,H))}else e=d,d=r;return d}function ut(){var d,N,H;return d=e,it()!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="admin"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Pf)),N!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="option"?(H=t.substr(e,6),e+=6):(H=r,K===0&&_t(q0)),H===r?(e=d,d=r):(Pr=d,d={type:"origin",value:"with admin option"})):(e=d,d=r)):(e=d,d=r),d}function De(){var d,N,H,X,lr,wr,i;return(d=bt())===r&&(d=e,N=e,t.charCodeAt(e)===40?(H="(",e++):(H=r,K===0&&_t(Op)),H!==r&&(X=Wr())!==r&&(lr=De())!==r&&(wr=Wr())!==r?(t.charCodeAt(e)===41?(i=")",e++):(i=r,K===0&&_t(fp)),i===r?(e=N,N=r):N=H=[H,X,lr,wr,i]):(e=N,N=r),N!==r&&(Pr=d,N={...N[2],parentheses_symbol:!0}),d=N),d}function Qo(){var d,N,H,X,lr,wr,i,b,m,x,tr,Cr,gr;if(d=e,it()!==r)if(Wr()!==r)if((N=A())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=A())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=A())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=zn(N,H))}else e=d,d=r;else e=d,d=r;else e=d,d=r;if(d===r)if(d=e,Wr()!==r)if(it()!==r)if((N=Wr())!==r)if((H=(function(){var Yr=e,Rt,gt,Gt;return t.substr(e,9).toLowerCase()==="recursive"?(Rt=t.substr(e,9),e+=9):(Rt=r,K===0&&_t(Hf)),Rt===r?(e=Yr,Yr=r):(gt=e,K++,Gt=le(),K--,Gt===r?gt=void 0:(e=gt,gt=r),gt===r?(e=Yr,Yr=r):Yr=Rt=[Rt,gt]),Yr})())!==r)if((X=Wr())!==r)if((lr=A())!==r){for(wr=[],i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=A())!==r?i=b=[b,m,x,tr]:(e=i,i=r);i!==r;)wr.push(i),i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=A())!==r?i=b=[b,m,x,tr]:(e=i,i=r);wr===r?(e=d,d=r):(Pr=d,gr=wr,(Cr=lr).recursive=!0,d=Sr(Cr,gr))}else e=d,d=r;else e=d,d=r;else e=d,d=r;else e=d,d=r;else e=d,d=r;else e=d,d=r;return d}function A(){var d,N,H,X;return d=e,(N=Ei())===r&&(N=cu())===r&&(N=$o()),N!==r&&Wr()!==r?((H=nr())===r&&(H=null),H!==r&&Wr()!==r&&G0()!==r&&Wr()!==r&&mo()!==r&&Wr()!==r?((X=Vn())===r&&(X=lo()),X!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=N=(function(lr,wr,i){return typeof lr=="string"&&(lr={type:"default",value:lr}),lr.table&&(lr={type:"default",value:lr.table}),{name:lr,stmt:i,columns:wr}})(N,H,X)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d}function nr(){var d,N;return d=e,mo()!==r&&Wr()!==r&&(N=(function(){var H;return(H=Po())===r&&(H=(function(){var X,lr,wr,i,b,m,x,tr;if(X=e,(lr=vl())!==r){for(wr=[],i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=vl())!==r?i=b=[b,m,x,tr]:(e=i,i=r);i!==r;)wr.push(i),i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=vl())!==r?i=b=[b,m,x,tr]:(e=i,i=r);wr===r?(e=X,X=r):(Pr=X,lr=zn(lr,wr),X=lr)}else e=X,X=r;return X})()),H})())!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=N):(e=d,d=r),d}function yr(){var d,N,H,X,lr,wr,i;if(d=e,(N=Bu())!==r)if(Wr()!==r)if((H=mo())!==r)if(Wr()!==r){if(X=[],oc.test(t.charAt(e))?(lr=t.charAt(e),e++):(lr=r,K===0&&_t(uc)),lr!==r)for(;lr!==r;)X.push(lr),oc.test(t.charAt(e))?(lr=t.charAt(e),e++):(lr=r,K===0&&_t(uc));else X=r;X!==r&&(lr=Wr())!==r&&ho()!==r&&Wr()!==r?((wr=en())===r&&(wr=hn()),wr===r&&(wr=null),wr===r?(e=d,d=r):(Pr=d,i=wr,d=N={type:"column_ref",column:N,suffix:`(${parseInt(X.join(""),10)})`,order_by:i,...U()})):(e=d,d=r)}else e=d,d=r;else e=d,d=r;else e=d,d=r;else e=d,d=r;return d===r&&(d=e,(N=Bu())!==r&&Wr()!==r?((H=en())===r&&(H=hn()),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(b,m){return{type:"column_ref",column:b,order_by:m,...U()}})(N,H))):(e=d,d=r)),d}function Ar(){var d,N,H;return d=e,mo()!==r&&Wr()!==r?((N=(function(){var X,lr,wr,i,b,m,x,tr;if(X=e,(lr=yr())!==r){for(wr=[],i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=yr())!==r?i=b=[b,m,x,tr]:(e=i,i=r);i!==r;)wr.push(i),i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=yr())!==r?i=b=[b,m,x,tr]:(e=i,i=r);wr===r?(e=X,X=r):(Pr=X,X=lr=zn(lr,wr))}else e=X,X=r;return X})())===r&&(N=ms()),N!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=(H=N).type?H.value:H):(e=d,d=r)):(e=d,d=r),d}function qr(){var d,N,H,X;return d=e,(N=(function(){var lr,wr,i,b,m,x;return lr=e,wr=e,t.substr(e,3).toLowerCase()==="for"?(i=t.substr(e,3),e+=3):(i=r,K===0&&_t(Pu)),i!==r&&(b=Wr())!==r&&(m=ip())!==r?wr=i=[i,b,m]:(e=wr,wr=r),wr!==r&&(Pr=lr,wr=`${(x=wr)[0]} ${x[2][0]}`),lr=wr})())===r&&(N=(function(){var lr,wr,i,b,m,x,tr,Cr,gr,Yr;return lr=e,wr=e,t.substr(e,4).toLowerCase()==="lock"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(lf)),i!==r&&(b=Wr())!==r?(t.substr(e,2).toLowerCase()==="in"?(m=t.substr(e,2),e+=2):(m=r,K===0&&_t(qb)),m!==r&&(x=Wr())!==r?(t.substr(e,5).toLowerCase()==="share"?(tr=t.substr(e,5),e+=5):(tr=r,K===0&&_t(Gf)),tr!==r&&(Cr=Wr())!==r?(t.substr(e,4).toLowerCase()==="mode"?(gr=t.substr(e,4),e+=4):(gr=r,K===0&&_t(zv)),gr===r?(e=wr,wr=r):wr=i=[i,b,m,x,tr,Cr,gr]):(e=wr,wr=r)):(e=wr,wr=r)):(e=wr,wr=r),wr!==r&&(Pr=lr,wr=`${(Yr=wr)[0]} ${Yr[2]} ${Yr[4]} ${Yr[6]}`),lr=wr})()),N!==r&&Wr()!==r?((H=(function(){var lr,wr,i,b,m,x,tr;return lr=e,wr=e,t.substr(e,4).toLowerCase()==="wait"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(Mv)),i!==r&&(b=Wr())!==r&&(m=ga())!==r?wr=i=[i,b,m]:(e=wr,wr=r),wr!==r&&(Pr=lr,wr=`${(x=wr)[0]} ${x[2].value}`),(lr=wr)===r&&(t.substr(e,6).toLowerCase()==="nowait"?(lr=t.substr(e,6),e+=6):(lr=r,K===0&&_t(Zv)),lr===r&&(lr=e,wr=e,t.substr(e,4).toLowerCase()==="skip"?(i=t.substr(e,4),e+=4):(i=r,K===0&&_t(bp)),i!==r&&(b=Wr())!==r?(t.substr(e,6).toLowerCase()==="locked"?(m=t.substr(e,6),e+=6):(m=r,K===0&&_t(Ib)),m===r?(e=wr,wr=r):wr=i=[i,b,m]):(e=wr,wr=r),wr!==r&&(Pr=lr,wr=`${(tr=wr)[0]} ${tr[2]}`),lr=wr)),lr})())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N+=(X=H)?" "+X:"")):(e=d,d=r),d}function bt(){var d,N,H,X,lr,wr,i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt;return d=e,Wr()===r?(e=d,d=r):((N=Qo())===r&&(N=null),N!==r&&Wr()!==r&&ef()!==r&&Aa()!==r?((H=(function(){var rn,xn,f,y,S,W;if(rn=e,(xn=pr())!==r){for(f=[],y=e,(S=Wr())!==r&&(W=pr())!==r?y=S=[S,W]:(e=y,y=r);y!==r;)f.push(y),y=e,(S=Wr())!==r&&(W=pr())!==r?y=S=[S,W]:(e=y,y=r);f===r?(e=rn,rn=r):(Pr=rn,xn=(function(vr,_r){let $r=[vr];for(let at=0,St=_r.length;at<St;++at)$r.push(_r[at][1]);return $r})(xn,f),rn=xn)}else e=rn,rn=r;return rn})())===r&&(H=null),H!==r&&Wr()!==r?((X=Ns())===r&&(X=null),X!==r&&Wr()!==r&&(lr=xt())!==r&&Wr()!==r?((wr=bs())===r&&(wr=null),wr!==r&&Wr()!==r?((i=ks())===r&&(i=null),i!==r&&Wr()!==r?((b=bs())===r&&(b=null),b!==r&&Wr()!==r?((m=su())===r&&(m=null),m!==r&&Wr()!==r?((x=(function(){var rn=e,xn,f,y;(xn=(function(){var W=e,vr,_r,$r;return t.substr(e,5).toLowerCase()==="group"?(vr=t.substr(e,5),e+=5):(vr=r,K===0&&_t(y0)),vr===r?(e=W,W=r):(_r=e,K++,$r=le(),K--,$r===r?_r=void 0:(e=_r,_r=r),_r===r?(e=W,W=r):W=vr=[vr,_r]),W})())!==r&&Wr()!==r&&$t()!==r&&Wr()!==r&&(f=ms())!==r&&Wr()!==r?((y=(function(){var W=e,vr;return it()!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="rollup"?(vr=t.substr(e,6),e+=6):(vr=r,K===0&&_t(gb)),vr===r?(e=W,W=r):(Pr=W,W={type:"origin",value:"with rollup"})):(e=W,W=r),W})())===r&&(y=null),y===r?(e=rn,rn=r):(Pr=rn,S=y,xn={columns:f.value,modifiers:[S]},rn=xn)):(e=rn,rn=r);var S;return rn})())===r&&(x=null),x!==r&&Wr()!==r?((tr=(function(){var rn=e,xn;return(function(){var f=e,y,S,W;return t.substr(e,6).toLowerCase()==="having"?(y=t.substr(e,6),e+=6):(y=r,K===0&&_t(Yc)),y===r?(e=f,f=r):(S=e,K++,W=le(),K--,W===r?S=void 0:(e=S,S=r),S===r?(e=f,f=r):f=y=[y,S]),f})()!==r&&Wr()!==r&&(xn=pt())!==r?(Pr=rn,rn=xn):(e=rn,rn=r),rn})())===r&&(tr=null),tr!==r&&Wr()!==r?((Cr=F())===r&&(Cr=null),Cr!==r&&Wr()!==r?((gr=Le())===r&&(gr=null),gr!==r&&Wr()!==r?((Yr=Rr())===r&&(Yr=null),Yr!==r&&Wr()!==r?((Rt=qr())===r&&(Rt=null),Rt!==r&&Wr()!==r?((gt=(function(){var rn=e,xn,f;return t.substr(e,6).toLowerCase()==="window"?(xn=t.substr(e,6),e+=6):(xn=r,K===0&&_t(od)),xn!==r&&Wr()!==r&&(f=(function(){var y,S,W,vr,_r,$r,at,St;if(y=e,(S=vc())!==r){for(W=[],vr=e,(_r=Wr())!==r&&($r=Me())!==r&&(at=Wr())!==r&&(St=vc())!==r?vr=_r=[_r,$r,at,St]:(e=vr,vr=r);vr!==r;)W.push(vr),vr=e,(_r=Wr())!==r&&($r=Me())!==r&&(at=Wr())!==r&&(St=vc())!==r?vr=_r=[_r,$r,at,St]:(e=vr,vr=r);W===r?(e=y,y=r):(Pr=y,S=Sr(S,W),y=S)}else e=y,y=r;return y})())!==r?(Pr=rn,rn=xn={keyword:"window",type:"window",expr:f}):(e=rn,rn=r),rn})())===r&&(gt=null),gt!==r&&Wr()!==r?((Gt=bs())===r&&(Gt=null),Gt===r?(e=d,d=r):(Pr=d,d=(function(rn,xn,f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn){if(S&&vr||S&&Gn||vr&&Gn||S&&vr&&Gn)throw Error("A given SQL statement can contain at most one INTO clause");return W&&(Array.isArray(W)?W:W.expr).forEach(fs=>fs.table&&Tn.add(`select::${fs.db}::${fs.table}`)),{with:rn,type:"select",options:xn,distinct:f,columns:y,into:{...S||vr||Gn||{},position:(S?"column":vr&&"from")||Gn&&"end"},from:W,where:_r,groupby:$r,having:at,orderby:St,limit:sn,locking_read:Nn&&Nn,window:Xn,collate:Kt,...U()}})(N,H,X,lr,wr,i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt))):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)):(e=d,d=r)),d}function pr(){var d,N;return d=e,(N=(function(){var H;return t.substr(e,19).toLowerCase()==="sql_calc_found_rows"?(H=t.substr(e,19),e+=19):(H=r,K===0&&_t(ll)),H})())===r&&((N=(function(){var H;return t.substr(e,9).toLowerCase()==="sql_cache"?(H=t.substr(e,9),e+=9):(H=r,K===0&&_t(cl)),H})())===r&&(N=(function(){var H;return t.substr(e,12).toLowerCase()==="sql_no_cache"?(H=t.substr(e,12),e+=12):(H=r,K===0&&_t(a)),H})()),N===r&&(N=(function(){var H;return t.substr(e,14).toLowerCase()==="sql_big_result"?(H=t.substr(e,14),e+=14):(H=r,K===0&&_t(Ma)),H})())===r&&(N=(function(){var H;return t.substr(e,16).toLowerCase()==="sql_small_result"?(H=t.substr(e,16),e+=16):(H=r,K===0&&_t(an)),H})())===r&&(N=(function(){var H;return t.substr(e,17).toLowerCase()==="sql_buffer_result"?(H=t.substr(e,17),e+=17):(H=r,K===0&&_t(Da)),H})())),N!==r&&(Pr=d,N=N),d=N}function xt(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=ds())===r&&(N=e,(H=_u())===r?(e=N,N=r):(X=e,K++,lr=le(),K--,lr===r?X=void 0:(e=X,X=r),X===r?(e=N,N=r):N=H=[H,X]),N===r&&(N=_u())),N!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mn())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mn())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){jn.add("select::null::(.*)");let tr={expr:{type:"column_ref",table:null,column:"*"},as:null,...U()};return x&&x.length>0?Sr(tr,x):[tr]})(0,H))}else e=d,d=r;if(d===r)if(d=e,(N=mn())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mn())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mn())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=zn(N,H))}else e=d,d=r;return d}function cn(){var d,N,H,X,lr,wr,i;return d=e,t.substr(e,5).toLowerCase()==="match"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(xp)),N!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(H=Po())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?(t.substr(e,7)==="AGAINST"?(X="AGAINST",e+=7):(X=r,K===0&&_t(cv)),X!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(lr=mr())!==r&&Wr()!==r?((wr=(function(){var b,m,x,tr,Cr,gr,Yr;return b=e,ue()!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="natural"?(m=t.substr(e,7),e+=7):(m=r,K===0&&_t(Dv)),m!==r&&Wr()!==r?(t.substr(e,8).toLowerCase()==="language"?(x=t.substr(e,8),e+=8):(x=r,K===0&&_t(vp)),x!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="mode"?(tr=t.substr(e,4),e+=4):(tr=r,K===0&&_t(zv)),tr!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="with"?(Cr=t.substr(e,4),e+=4):(Cr=r,K===0&&_t(Ps)),Cr!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="query"?(gr=t.substr(e,5),e+=5):(gr=r,K===0&&_t(Jv)),gr!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="expansion"?(Yr=t.substr(e,9),e+=9):(Yr=r,K===0&&_t(Xb)),Yr===r?(e=b,b=r):(Pr=b,b={type:"origin",value:"IN NATURAL LANGUAGE MODE WITH QUERY EXPANSION"})):(e=b,b=r)):(e=b,b=r)):(e=b,b=r)):(e=b,b=r)):(e=b,b=r)):(e=b,b=r),b===r&&(b=e,ue()!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="natural"?(m=t.substr(e,7),e+=7):(m=r,K===0&&_t(Dv)),m!==r&&Wr()!==r?(t.substr(e,8).toLowerCase()==="language"?(x=t.substr(e,8),e+=8):(x=r,K===0&&_t(vp)),x!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="mode"?(tr=t.substr(e,4),e+=4):(tr=r,K===0&&_t(zv)),tr===r?(e=b,b=r):(Pr=b,b={type:"origin",value:"IN NATURAL LANGUAGE MODE"})):(e=b,b=r)):(e=b,b=r)):(e=b,b=r),b===r&&(b=e,ue()!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="boolean"?(m=t.substr(e,7),e+=7):(m=r,K===0&&_t(pp)),m!==r&&Wr()!==r?(t.substr(e,4).toLowerCase()==="mode"?(x=t.substr(e,4),e+=4):(x=r,K===0&&_t(zv)),x===r?(e=b,b=r):(Pr=b,b={type:"origin",value:"IN BOOLEAN MODE"})):(e=b,b=r)):(e=b,b=r),b===r&&(b=e,it()!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="query"?(m=t.substr(e,5),e+=5):(m=r,K===0&&_t(Jv)),m!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="expansion"?(x=t.substr(e,9),e+=9):(x=r,K===0&&_t(Xb)),x===r?(e=b,b=r):(Pr=b,b={type:"origin",value:"WITH QUERY EXPANSION"})):(e=b,b=r)):(e=b,b=r)))),b})())===r&&(wr=null),wr!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?((i=$n())===r&&(i=null),i===r?(e=d,d=r):(Pr=d,d=N=(function(b,m,x,tr){return{against:"against",columns:b,expr:m,match:"match",mode:x,type:"fulltext_search",as:tr}})(H,lr,wr,i))):(e=d,d=r)):(e=d,d=r)):(e=d,d=r),d}function mn(){var d,N,H,X,lr,wr,i,b;return d=e,(N=cn())!==r&&(Pr=d,N=(function(m){let{as:x,...tr}=m;return{expr:tr,as:x}})(N)),(d=N)===r&&(d=e,(N=qs())!==r&&(H=Wr())!==r&&(X=ru())!==r&&(lr=Wr())!==r&&(wr=qs())!==r&&Wr()!==r&&ru()!==r&&Wr()!==r&&_u()!==r?(Pr=d,i=N,b=wr,jn.add(`select::${i}::${b}::(.*)`),d=N={expr:{type:"column_ref",db:i,table:b,column:"*"},as:null,...U()}):(e=d,d=r),d===r&&(d=e,N=e,(H=qs())!==r&&(X=Wr())!==r&&(lr=ru())!==r?N=H=[H,X,lr]:(e=N,N=r),N===r&&(N=null),N!==r&&(H=Wr())!==r&&(X=_u())!==r?(Pr=d,d=N=(function(m){let x=m&&m[0]||null;return jn.add(`select::${x}::(.*)`),{expr:{type:"column_ref",table:x,column:"*"},as:null,...U()}})(N)):(e=d,d=r),d===r&&(d=e,(N=(function(){var m=e,x,tr,Cr;return(x=nn())===r&&(x=On()),x!==r&&Wr()!==r&&(tr=An())!==r&&Wr()!==r&&(Cr=L())!==r?(Pr=m,x=Ln(x,tr,Cr),m=x):(e=m,m=r),m})())!==r&&(H=Wr())!==r?((X=$n())===r&&(X=null),X===r?(e=d,d=r):(Pr=d,d=N={expr:N,as:X})):(e=d,d=r),d===r&&(d=e,(N=(function(){var m,x,tr,Cr,gr,Yr,Rt,gt;if(m=e,(x=mr())!==r){for(tr=[],Cr=e,(gr=Wr())===r?(e=Cr,Cr=r):((Yr=Gs())===r&&(Yr=iu())===r&&(Yr=Ko()),Yr!==r&&(Rt=Wr())!==r&&(gt=mr())!==r?Cr=gr=[gr,Yr,Rt,gt]:(e=Cr,Cr=r));Cr!==r;)tr.push(Cr),Cr=e,(gr=Wr())===r?(e=Cr,Cr=r):((Yr=Gs())===r&&(Yr=iu())===r&&(Yr=Ko()),Yr!==r&&(Rt=Wr())!==r&&(gt=mr())!==r?Cr=gr=[gr,Yr,Rt,gt]:(e=Cr,Cr=r));tr===r?(e=m,m=r):(Pr=m,x=(function(Gt,rn){let xn=Gt.ast;if(xn&&xn.type==="select"&&(!(Gt.parentheses_symbol||Gt.parentheses||Gt.ast.parentheses||Gt.ast.parentheses_symbol)||xn.columns.length!==1||xn.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!rn||rn.length===0)return Gt;let f=rn.length,y=rn[f-1][3];for(let S=f-1;S>=0;S--){let W=S===0?Gt:rn[S-1][3];y=sr(rn[S][1],W,y)}return y})(x,tr),m=x)}else e=m,m=r;return m})())!==r&&(H=Wr())!==r?((X=$n())===r&&(X=null),X===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){return m.type!=="double_quote_string"&&m.type!=="single_quote_string"||jn.add("select::null::"+m.value),{expr:m,as:x}})(N,X))):(e=d,d=r))))),d}function $n(){var d,N,H;return d=e,(N=G0())!==r&&Wr()!==r&&(H=(function(){var X=e,lr;return(lr=cu())===r?(e=X,X=r):(Pr=e,((function(wr){if(de[wr.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(wr)+" is a reserved word, can not as alias clause");return!1})(lr)?r:void 0)===r?(e=X,X=r):(Pr=X,X=lr=lr)),X===r&&(X=e,(lr=Ks())!==r&&(Pr=X,lr=lr),X=lr),X})())!==r?(Pr=d,d=N=H):(e=d,d=r),d===r&&(d=e,(N=G0())===r&&(N=null),N!==r&&Wr()!==r&&(H=qs())!==r?(Pr=d,d=N=H):(e=d,d=r)),d}function bs(){var d,N,H;return d=e,Xo()!==r&&Wr()!==r&&(N=(function(){var X,lr,wr,i,b,m,x,tr;if(X=e,(lr=nn())!==r){for(wr=[],i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=nn())!==r?i=b=[b,m,x,tr]:(e=i,i=r);i!==r;)wr.push(i),i=e,(b=Wr())!==r&&(m=Me())!==r&&(x=Wr())!==r&&(tr=nn())!==r?i=b=[b,m,x,tr]:(e=i,i=r);wr===r?(e=X,X=r):(Pr=X,lr=Dn(lr,wr),X=lr)}else e=X,X=r;return X})())!==r?(Pr=d,d={keyword:"var",type:"into",expr:N}):(e=d,d=r),d===r&&(d=e,Xo()!==r&&Wr()!==r?(t.substr(e,7).toLowerCase()==="outfile"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Up)),N===r&&(t.substr(e,8).toLowerCase()==="dumpfile"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Xp))),N===r&&(N=null),N!==r&&Wr()!==r?((H=Ei())===r&&(H=qs()),H===r?(e=d,d=r):(Pr=d,d={keyword:N,type:"into",expr:H})):(e=d,d=r)):(e=d,d=r)),d}function ks(){var d,N;return d=e,$l()!==r&&Wr()!==r&&(N=me())!==r?(Pr=d,d=N):(e=d,d=r),d}function Ws(){var d,N,H;return d=e,(N=$o())!==r&&Wr()!==r&&pc()!==r&&Wr()!==r&&(H=$o())!==r?(Pr=d,d=N=[N,H]):(e=d,d=r),d}function fe(){var d,N;return d=e,vt()!==r&&Wr()!==r?(t.substr(e,5).toLowerCase()==="btree"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Qv)),N===r&&(t.substr(e,4).toLowerCase()==="hash"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Vp))),N===r?(e=d,d=r):(Pr=d,d={keyword:"using",type:N.toLowerCase()})):(e=d,d=r),d}function ne(){var d,N,H,X,lr,wr;if(d=e,(N=Is())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Is())!==r?X=lr=[lr,wr]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Is())!==r?X=lr=[lr,wr]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=(function(i,b){let m=[i];for(let x=0;x<b.length;x++)m.push(b[x][1]);return m})(N,H))}else e=d,d=r;return d}function Is(){var d,N,H,X,lr,wr;return d=e,(N=(function(){var i=e,b,m,x;return t.substr(e,14).toLowerCase()==="key_block_size"?(b=t.substr(e,14),e+=14):(b=r,K===0&&_t(wb)),b===r?(e=i,i=r):(m=e,K++,x=le(),K--,x===r?m=void 0:(e=m,m=r),m===r?(e=i,i=r):(Pr=i,i=b="KEY_BLOCK_SIZE")),i})())!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r&&(X=ga())!==r?(Pr=d,lr=H,wr=X,d=N={type:N.toLowerCase(),symbol:lr,expr:wr}):(e=d,d=r)):(e=d,d=r),d===r&&(d=fe())===r&&(d=e,t.substr(e,4).toLowerCase()==="with"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Ps)),N!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="parser"?(H=t.substr(e,6),e+=6):(H=r,K===0&&_t(dp)),H!==r&&Wr()!==r&&(X=cu())!==r?(Pr=d,d=N={type:"with parser",expr:X}):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,t.substr(e,7).toLowerCase()==="visible"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Kp)),N===r&&(t.substr(e,9).toLowerCase()==="invisible"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(ld))),N!==r&&(Pr=d,N=(function(i){return{type:i.toLowerCase(),expr:i.toLowerCase()}})(N)),(d=N)===r&&(d=Fu()))),d}function me(){var d,N,H,X,lr,wr,i,b,m,x,tr,Cr;if(d=e,(N=eo())!==r){for(H=[],X=Xe();X!==r;)H.push(X),X=Xe();H===r?(e=d,d=r):(Pr=d,tr=N,(Cr=H).unshift(tr),Cr.forEach(gr=>{let{table:Yr,as:Rt}=gr;ts[Yr]=Yr,Rt&&(ts[Rt]=Yr),Vt(jn)}),d=N=Cr)}else e=d,d=r;if(d===r){if(d=e,N=[],(H=mo())!==r)for(;H!==r;)N.push(H),H=mo();else N=r;if(N!==r)if((H=Wr())!==r)if((X=eo())!==r){for(lr=[],wr=Xe();wr!==r;)lr.push(wr),wr=Xe();if(lr!==r)if((wr=Wr())!==r){if(i=[],(b=ho())!==r)for(;b!==r;)i.push(b),b=ho();else i=r;if(i!==r)if((b=Wr())!==r){for(m=[],x=Xe();x!==r;)m.push(x),x=Xe();m===r?(e=d,d=r):(Pr=d,d=N=(function(gr,Yr,Rt,gt,Gt){if(gr.length!==gt.length)throw Error(`parentheses not match in from clause: ${gr.length} != ${gt.length}`);return Rt.unshift(Yr),Rt.forEach(rn=>{let{table:xn,as:f}=rn;ts[xn]=xn,f&&(ts[f]=xn),Vt(jn)}),Gt.forEach(rn=>{let{table:xn,as:f}=rn;ts[xn]=xn,f&&(ts[f]=xn),Vt(jn)}),{expr:Rt,parentheses:{length:gt.length},joins:Gt}})(N,X,lr,i,m))}else e=d,d=r;else e=d,d=r}else e=d,d=r;else e=d,d=r}else e=d,d=r;else e=d,d=r;else e=d,d=r}return d}function Xe(){var d,N,H;return d=e,Wr()!==r&&(N=Me())!==r&&Wr()!==r&&(H=eo())!==r?(Pr=d,d=H):(e=d,d=r),d===r&&(d=e,Wr()!==r&&(N=(function(){var X,lr,wr,i,b,m,x,tr,Cr,gr,Yr;if(X=e,(lr=so())!==r)if(Wr()!==r)if((wr=eo())===r&&(wr=me()),wr!==r)if(Wr()!==r)if((i=vt())!==r)if(Wr()!==r)if(mo()!==r)if(Wr()!==r)if((b=nu())!==r){for(m=[],x=e,(tr=Wr())!==r&&(Cr=Me())!==r&&(gr=Wr())!==r&&(Yr=nu())!==r?x=tr=[tr,Cr,gr,Yr]:(e=x,x=r);x!==r;)m.push(x),x=e,(tr=Wr())!==r&&(Cr=Me())!==r&&(gr=Wr())!==r&&(Yr=nu())!==r?x=tr=[tr,Cr,gr,Yr]:(e=x,x=r);m!==r&&(x=Wr())!==r&&(tr=ho())!==r?(Pr=X,Rt=lr,Gt=b,rn=m,(gt=wr).join=Rt,gt.using=Sr(Gt,rn),X=lr=gt):(e=X,X=r)}else e=X,X=r;else e=X,X=r;else e=X,X=r;else e=X,X=r;else e=X,X=r;else e=X,X=r;else e=X,X=r;else e=X,X=r;else e=X,X=r;var Rt,gt,Gt,rn;return X===r&&(X=e,(lr=so())!==r&&Wr()!==r?((wr=eo())===r&&(wr=me()),wr!==r&&Wr()!==r?((i=Mu())===r&&(i=null),i===r?(e=X,X=r):(Pr=X,lr=(function(xn,f,y){return f.join=xn,f.on=y,f})(lr,wr,i),X=lr)):(e=X,X=r)):(e=X,X=r),X===r&&(X=e,(lr=so())===r&&(lr=yo()),lr!==r&&Wr()!==r&&(wr=mo())!==r&&Wr()!==r&&(i=lo())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?((b=$n())===r&&(b=null),b!==r&&(m=Wr())!==r?((x=Mu())===r&&(x=null),x===r?(e=X,X=r):(Pr=X,lr=(function(xn,f,y,S){return f.parentheses=!0,{expr:f,as:y,join:xn,on:S}})(lr,i,b,x),X=lr)):(e=X,X=r)):(e=X,X=r))),X})())!==r?(Pr=d,d=N):(e=d,d=r)),d}function eo(){var d,N,H,X,lr,wr,i;return d=e,(N=(function(){var b;return t.substr(e,4).toLowerCase()==="dual"?(b=t.substr(e,4),e+=4):(b=r,K===0&&_t(ln)),b})())!==r&&(Pr=d,N={type:"dual"}),(d=N)===r&&(d=e,(N=$o())!==r&&Wr()!==r?((H=$n())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,i=H,d=N=(wr=N).type==="var"?(wr.as=i,wr):{db:wr.db,table:wr.table,as:i,...U()})):(e=d,d=r),d===r&&(d=e,(N=mo())!==r&&Wr()!==r&&(H=$o())!==r&&Wr()!==r?((X=$n())===r&&(X=null),X!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=N=(function(b,m,x){return b.type==="var"?(b.as=m,b.parentheses=!0,b):{db:b.db,table:b.table,as:m,parentheses:!0}})(H,X)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=Vn())!==r&&Wr()!==r?((H=$n())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(b,m){return{expr:{type:"values",values:b,prefix:"row"},as:m}})(N,H))):(e=d,d=r),d===r&&(d=e,t.substr(e,7).toLowerCase()==="lateral"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Lp)),N===r&&(N=null),N!==r&&Wr()!==r&&(H=mo())!==r&&Wr()!==r?((X=lo())===r&&(X=Vn()),X!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?((lr=$n())===r&&(lr=null),lr===r?(e=d,d=r):(Pr=d,d=N=(function(b,m,x){Array.isArray(m)&&(m={type:"values",values:m,prefix:"row"}),m.parentheses=!0;let tr={expr:m,as:x};return b&&(tr.prefix=b),tr})(N,X,lr))):(e=d,d=r)):(e=d,d=r))))),d}function so(){var d,N,H,X;return d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,4).toLowerCase()==="left"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(K0)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(H=Wr())!==r?((X=cr())===r&&(X=null),X!==r&&Wr()!==r&&B()!==r?(Pr=d,d=N="LEFT JOIN"):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,5).toLowerCase()==="right"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(Af)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(H=Wr())!==r?((X=cr())===r&&(X=null),X!==r&&Wr()!==r&&B()!==r?(Pr=d,d=N="RIGHT JOIN"):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,4).toLowerCase()==="full"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(El)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(H=Wr())!==r?((X=cr())===r&&(X=null),X!==r&&Wr()!==r&&B()!==r?(Pr=d,d=N="FULL JOIN"):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=(function(){var lr=e,wr,i,b;return t.substr(e,5).toLowerCase()==="cross"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(ul)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(H=Wr())!==r&&(X=B())!==r?(Pr=d,d=N="CROSS JOIN"):(e=d,d=r),d===r&&(d=e,N=e,(H=(function(){var lr=e,wr,i,b;return t.substr(e,5).toLowerCase()==="inner"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(w0)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):lr=wr=[wr,i]),lr})())!==r&&(X=Wr())!==r?N=H=[H,X]:(e=N,N=r),N===r&&(N=null),N!==r&&(H=B())!==r?(Pr=d,d=N="INNER JOIN"):(e=d,d=r))))),d}function $o(){var d,N,H,X,lr,wr,i,b,m;if(d=e,N=[],Cp.test(t.charAt(e))?(H=t.charAt(e),e++):(H=r,K===0&&_t(wp)),H!==r)for(;H!==r;)N.push(H),Cp.test(t.charAt(e))?(H=t.charAt(e),e++):(H=r,K===0&&_t(wp));else N=r;return N!==r&&(H=xe())!==r?(X=e,(lr=Wr())!==r&&(wr=ru())!==r&&(i=Wr())!==r&&(b=xe())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r),X===r&&(X=null),X===r?(e=d,d=r):(Pr=d,d=N=(function(x,tr,Cr){let gr=`${x.join("")}${tr}`,Yr={db:null,table:gr};return Cr!==null&&(Yr.db=gr,Yr.table=Cr[3]),Yr})(N,H,X))):(e=d,d=r),d===r&&(d=e,(N=qs())===r?(e=d,d=r):(H=e,(X=Wr())!==r&&(lr=ru())!==r&&(wr=Wr())!==r&&(i=xe())!==r?H=X=[X,lr,wr,i]:(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(x,tr){let Cr={db:null,table:x};return tr!==null&&(Cr.db=x,Cr.table=tr[3]),Cr})(N,H))),d===r&&(d=e,(N=nn())!==r&&(Pr=d,(m=N).db=null,m.table=m.name,N=m),d=N)),d}function Mu(){var d,N;return d=e,R()!==r&&Wr()!==r&&(N=et())!==r?(Pr=d,d=N):(e=d,d=r),d}function su(){var d,N;return d=e,(function(){var H=e,X,lr,wr;return t.substr(e,5).toLowerCase()==="where"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(mc)),X===r?(e=H,H=r):(lr=e,K++,wr=le(),K--,wr===r?lr=void 0:(e=lr,lr=r),lr===r?(e=H,H=r):H=X=[X,lr]),H})()!==r&&Wr()!==r&&(N=pt())!==r?(Pr=d,d=N):(e=d,d=r),d}function Po(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=Je())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=Je())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=Je())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=zn(N,H))}else e=d,d=r;return d}function Na(){var d,N;return d=e,Yo()!==r&&Wr()!==r&&$t()!==r&&Wr()!==r&&(N=xt())!==r?(Pr=d,d=N):(e=d,d=r),d}function F(){var d,N;return d=e,(function(){var H=e,X,lr,wr;return t.substr(e,5).toLowerCase()==="order"?(X=t.substr(e,5),e+=5):(X=r,K===0&&_t(bi)),X===r?(e=H,H=r):(lr=e,K++,wr=le(),K--,wr===r?lr=void 0:(e=lr,lr=r),lr===r?(e=H,H=r):H=X=[X,lr]),H})()!==r&&Wr()!==r&&$t()!==r&&Wr()!==r&&(N=(function(){var H,X,lr,wr,i,b,m,x;if(H=e,(X=ar())!==r){for(lr=[],wr=e,(i=Wr())!==r&&(b=Me())!==r&&(m=Wr())!==r&&(x=ar())!==r?wr=i=[i,b,m,x]:(e=wr,wr=r);wr!==r;)lr.push(wr),wr=e,(i=Wr())!==r&&(b=Me())!==r&&(m=Wr())!==r&&(x=ar())!==r?wr=i=[i,b,m,x]:(e=wr,wr=r);lr===r?(e=H,H=r):(Pr=H,X=zn(X,lr),H=X)}else e=H,H=r;return H})())!==r?(Pr=d,d=N):(e=d,d=r),d}function ar(){var d,N,H;return d=e,(N=mr())!==r&&Wr()!==r?((H=hn())===r&&(H=en()),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N={expr:N,type:H})):(e=d,d=r),d}function Nr(){var d,N;return(d=ga())===r&&(d=yi())===r&&(d=e,t.charCodeAt(e)===63?(N="?",e++):(N=r,K===0&&_t(O0)),N!==r&&(Pr=d,N={type:"origin",value:"?"}),d=N),d}function Rr(){var d,N,H,X,lr,wr;return d=e,(function(){var i=e,b,m,x;return t.substr(e,5).toLowerCase()==="limit"?(b=t.substr(e,5),e+=5):(b=r,K===0&&_t(Z0)),b===r?(e=i,i=r):(m=e,K++,x=le(),K--,x===r?m=void 0:(e=m,m=r),m===r?(e=i,i=r):i=b=[b,m]),i})()!==r&&Wr()!==r&&(N=Nr())!==r&&Wr()!==r?(H=e,(X=Me())===r&&(X=(function(){var i=e,b,m,x;return t.substr(e,6).toLowerCase()==="offset"?(b=t.substr(e,6),e+=6):(b=r,K===0&&_t(lc)),b===r?(e=i,i=r):(m=e,K++,x=le(),K--,x===r?m=void 0:(e=m,m=r),m===r?(e=i,i=r):(Pr=i,i=b="OFFSET")),i})()),X!==r&&(lr=Wr())!==r&&(wr=Nr())!==r?H=X=[X,lr,wr]:(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=(function(i,b){let m=[i];return b&&m.push(b[2]),{seperator:b&&b[0]&&b[0].toLowerCase()||"",value:m,...U()}})(N,H))):(e=d,d=r),d}function ct(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=dt())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=dt())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=dt())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=zn(N,H))}else e=d,d=r;return d}function dt(){var d,N,H,X,lr,wr,i,b;return d=e,N=e,(H=qs())!==r&&(X=Wr())!==r&&(lr=ru())!==r?N=H=[H,X,lr]:(e=N,N=r),N===r&&(N=null),N!==r&&(H=Wr())!==r&&(X=Bu())!==r&&(lr=Wr())!==r?(t.charCodeAt(e)===61?(wr="=",e++):(wr=r,K===0&&_t(v0)),wr!==r&&Wr()!==r&&(i=mr())!==r?(Pr=d,d=N=(function(m,x,tr){return{column:x,value:tr,table:m&&m[0]}})(N,X,i)):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,N=e,(H=qs())!==r&&(X=Wr())!==r&&(lr=ru())!==r?N=H=[H,X,lr]:(e=N,N=r),N===r&&(N=null),N!==r&&(H=Wr())!==r&&(X=Bu())!==r&&(lr=Wr())!==r?(t.charCodeAt(e)===61?(wr="=",e++):(wr=r,K===0&&_t(v0)),wr!==r&&Wr()!==r&&(i=Er())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(b=Je())!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=N=(function(m,x,tr){return{column:x,value:tr,table:m&&m[0],keyword:"values"}})(N,X,b)):(e=d,d=r)):(e=d,d=r)),d}function Yt(){var d,N;return(d=Vn())===r&&(d=e,(N=lo())!==r&&(Pr=d,N=N.ast),d=N),d}function vn(){var d,N,H,X,lr,wr,i,b,m;if(d=e,Yo()!==r)if(Wr()!==r)if((N=mo())!==r)if(Wr()!==r)if((H=cu())!==r){for(X=[],lr=e,(wr=Wr())!==r&&(i=Me())!==r&&(b=Wr())!==r&&(m=cu())!==r?lr=wr=[wr,i,b,m]:(e=lr,lr=r);lr!==r;)X.push(lr),lr=e,(wr=Wr())!==r&&(i=Me())!==r&&(b=Wr())!==r&&(m=cu())!==r?lr=wr=[wr,i,b,m]:(e=lr,lr=r);X!==r&&(lr=Wr())!==r&&(wr=ho())!==r?(Pr=d,d=Fi(H,X)):(e=d,d=r)}else e=d,d=r;else e=d,d=r;else e=d,d=r;else e=d,d=r;else e=d,d=r;return d===r&&(d=e,Yo()!==r&&Wr()!==r&&(N=Jn())!==r?(Pr=d,d=N):(e=d,d=r)),d}function fn(){var d,N,H;return d=e,R()!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="duplicate"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(ac)),N!==r&&Wr()!==r&&we()!==r&&Wr()!==r&&ip()!==r&&Wr()!==r&&(H=ct())!==r?(Pr=d,d={keyword:"on duplicate key update",set:H}):(e=d,d=r)):(e=d,d=r),d}function gn(){var d,N;return d=e,(N=Xc())!==r&&(Pr=d,N="insert"),(d=N)===r&&(d=e,(N=qa())!==r&&(Pr=d,N="replace"),d=N),d}function Vn(){var d,N;return d=e,Er()!==r&&Wr()!==r&&(N=(function(){var H,X,lr,wr,i,b,m,x;if(H=e,(X=Jn())!==r){for(lr=[],wr=e,(i=Wr())!==r&&(b=Me())!==r&&(m=Wr())!==r&&(x=Jn())!==r?wr=i=[i,b,m,x]:(e=wr,wr=r);wr!==r;)lr.push(wr),wr=e,(i=Wr())!==r&&(b=Me())!==r&&(m=Wr())!==r&&(x=Jn())!==r?wr=i=[i,b,m,x]:(e=wr,wr=r);lr===r?(e=H,H=r):(Pr=H,X=zn(X,lr),H=X)}else e=H,H=r;return H})())!==r?(Pr=d,d={type:"values",values:N}):(e=d,d=r),d}function Jn(){var d,N,H,X,lr;return d=e,t.substr(e,3).toLowerCase()==="row"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(ku)),N===r&&(N=null),N!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(H=ms())!==r&&Wr()!==r&&ho()!==r?(Pr=d,X=N,(lr=H).prefix=X&&X.toLowerCase(),d=N=lr):(e=d,d=r),d}function ms(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=mr())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=mr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){let tr={type:"expr_list"};return tr.value=Sr(m,x),tr})(N,H))}else e=d,d=r;return d}function Qs(){var d,N,H;return d=e,Gr()!==r&&Wr()!==r&&(N=mr())!==r&&Wr()!==r&&(H=(function(){var X;return(X=(function(){var lr=e,wr,i,b;return t.substr(e,4).toLowerCase()==="year"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(tb)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="YEAR")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,7).toLowerCase()==="quarter"?(wr=t.substr(e,7),e+=7):(wr=r,K===0&&_t(zb)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="QUARTER")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,5).toLowerCase()==="month"?(wr=t.substr(e,5),e+=5):(wr=r,K===0&&_t(Wv)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="MONTH")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,4).toLowerCase()==="week"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(rb)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="WEEK")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,3).toLowerCase()==="day"?(wr=t.substr(e,3),e+=3):(wr=r,K===0&&_t(_)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="DAY")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,4).toLowerCase()==="hour"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(Xs)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="HOUR")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,6).toLowerCase()==="minute"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(Lv)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="MINUTE")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,6).toLowerCase()==="second"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(wf)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="SECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,11).toLowerCase()==="microsecond"?(wr=t.substr(e,11),e+=11):(wr=r,K===0&&_t(Va)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="MICROSECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,18).toLowerCase()==="second_microsecond"?(wr=t.substr(e,18),e+=18):(wr=r,K===0&&_t(Np)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="SECOND_MICROSECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,18).toLowerCase()==="minute_microsecond"?(wr=t.substr(e,18),e+=18):(wr=r,K===0&&_t(Rs)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="MINUTE_MICROSECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,13).toLowerCase()==="minute_second"?(wr=t.substr(e,13),e+=13):(wr=r,K===0&&_t(ep)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="MINUTE_SECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,16).toLowerCase()==="hour_microsecond"?(wr=t.substr(e,16),e+=16):(wr=r,K===0&&_t(vv)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="HOUR_MICROSECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,11).toLowerCase()==="hour_second"?(wr=t.substr(e,11),e+=11):(wr=r,K===0&&_t(Bc)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="HOUR_SECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,11).toLowerCase()==="hour_minute"?(wr=t.substr(e,11),e+=11):(wr=r,K===0&&_t(zs)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="HOUR_MINUTE")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,15).toLowerCase()==="day_microsecond"?(wr=t.substr(e,15),e+=15):(wr=r,K===0&&_t(on)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="DAY_MICROSECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,10).toLowerCase()==="day_second"?(wr=t.substr(e,10),e+=10):(wr=r,K===0&&_t(Hv)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="DAY_SECOND")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,10).toLowerCase()==="day_minute"?(wr=t.substr(e,10),e+=10):(wr=r,K===0&&_t(Lf)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="DAY_MINUTE")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,8).toLowerCase()==="day_hour"?(wr=t.substr(e,8),e+=8):(wr=r,K===0&&_t(Bv)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="DAY_HOUR")),lr})())===r&&(X=(function(){var lr=e,wr,i,b;return t.substr(e,10).toLowerCase()==="year_month"?(wr=t.substr(e,10),e+=10):(wr=r,K===0&&_t(ps)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="YEAR_MONTH")),lr})()),X})())!==r?(Pr=d,d={type:"interval",expr:N,unit:H.toLowerCase()}):(e=d,d=r),d}function $(){var d,N,H,X,lr,wr;if(d=e,(N=J())!==r)if(Wr()!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=J())!==r?X=lr=[lr,wr]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=J())!==r?X=lr=[lr,wr]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=Ae(N,H))}else e=d,d=r;else e=d,d=r;return d}function J(){var d,N,H;return d=e,(function(){var X=e,lr,wr,i;return t.substr(e,4).toLowerCase()==="when"?(lr=t.substr(e,4),e+=4):(lr=r,K===0&&_t(h0)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):X=lr=[lr,wr]),X})()!==r&&Wr()!==r&&(N=pt())!==r&&Wr()!==r&&(function(){var X=e,lr,wr,i;return t.substr(e,4).toLowerCase()==="then"?(lr=t.substr(e,4),e+=4):(lr=r,K===0&&_t(n)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):X=lr=[lr,wr]),X})()!==r&&Wr()!==r&&(H=mr())!==r?(Pr=d,d={type:"when",cond:N,result:H}):(e=d,d=r),d}function br(){var d,N;return d=e,(function(){var H=e,X,lr,wr;return t.substr(e,4).toLowerCase()==="else"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(st)),X===r?(e=H,H=r):(lr=e,K++,wr=le(),K--,wr===r?lr=void 0:(e=lr,lr=r),lr===r?(e=H,H=r):H=X=[X,lr]),H})()!==r&&Wr()!==r&&(N=mr())!==r?(Pr=d,d={type:"else",result:N}):(e=d,d=r),d}function mr(){var d;return(d=(function(){var N,H,X,lr,wr,i,b,m;if(N=e,(H=At())!==r){for(X=[],lr=e,(wr=Aa())!==r&&(i=iu())!==r&&(b=Wr())!==r&&(m=At())!==r?lr=wr=[wr,i,b,m]:(e=lr,lr=r);lr!==r;)X.push(lr),lr=e,(wr=Aa())!==r&&(i=iu())!==r&&(b=Wr())!==r&&(m=At())!==r?lr=wr=[wr,i,b,m]:(e=lr,lr=r);X===r?(e=N,N=r):(Pr=N,H=Rb(H,X),N=H)}else e=N,N=r;return N})())===r&&(d=lo()),d}function et(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=mr())!==r){for(H=[],X=e,(lr=Wr())===r?(e=X,X=r):((wr=Gs())===r&&(wr=iu()),wr!==r&&(i=Wr())!==r&&(b=mr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r));X!==r;)H.push(X),X=e,(lr=Wr())===r?(e=X,X=r):((wr=Gs())===r&&(wr=iu()),wr!==r&&(i=Wr())!==r&&(b=mr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r));H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){let tr=x.length,Cr=m;for(let gr=0;gr<tr;++gr)Cr=sr(x[gr][1],Cr,x[gr][3]);return Cr})(N,H))}else e=d,d=r;return d}function pt(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=mr())!==r){for(H=[],X=e,(lr=Wr())===r?(e=X,X=r):((wr=Gs())===r&&(wr=iu())===r&&(wr=Me())===r&&(wr=Ko()),wr!==r&&(i=Wr())!==r&&(b=mr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r));X!==r;)H.push(X),X=e,(lr=Wr())===r?(e=X,X=r):((wr=Gs())===r&&(wr=iu())===r&&(wr=Me())===r&&(wr=Ko()),wr!==r&&(i=Wr())!==r&&(b=mr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r));H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){let tr=x.length,Cr=m,gr="";for(let Yr=0;Yr<tr;++Yr)x[Yr][1]===","?(gr=",",Array.isArray(Cr)||(Cr=[Cr]),Cr.push(x[Yr][3])):Cr=sr(x[Yr][1],Cr,x[Yr][3]);if(gr===","){let Yr={type:"expr_list"};return Yr.value=Array.isArray(Cr)?Cr:[Cr],Yr}return Cr})(N,H))}else e=d,d=r;return d}function At(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=Bt())!==r){for(H=[],X=e,(lr=Aa())!==r&&(wr=Gs())!==r&&(i=Wr())!==r&&(b=Bt())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Aa())!==r&&(wr=Gs())!==r&&(i=Wr())!==r&&(b=Bt())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=tt(N,H))}else e=d,d=r;return d}function Bt(){var d,N;return(d=Ut())===r&&(d=(function(){var H=e,X,lr;(X=(function(){var b=e,m=e,x,tr,Cr;return(x=$e())!==r&&(tr=Wr())!==r&&(Cr=ro())!==r?m=x=[x,tr,Cr]:(e=m,m=r),m!==r&&(Pr=b,m=Ff(m)),(b=m)===r&&(b=ro()),b})())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(lr=lo())!==r&&Wr()!==r&&ho()!==r?(Pr=H,wr=X,(i=lr).parentheses=!0,X=Z(wr,i),H=X):(e=H,H=r);var wr,i;return H})())===r&&(d=e,$e()!==r&&Wr()!==r&&(N=Bt())!==r?(Pr=d,d=Z("NOT",N)):(e=d,d=r)),d}function Ut(){var d,N,H;return d=e,(N=Cs())!==r&&Wr()!==r?((H=(function(){var X;return(X=(function(){var lr=e,wr=[],i=e,b,m,x,tr;if((b=Wr())!==r&&(m=pn())!==r&&(x=Wr())!==r&&(tr=Cs())!==r?i=b=[b,m,x,tr]:(e=i,i=r),i!==r)for(;i!==r;)wr.push(i),i=e,(b=Wr())!==r&&(m=pn())!==r&&(x=Wr())!==r&&(tr=Cs())!==r?i=b=[b,m,x,tr]:(e=i,i=r);else wr=r;return wr!==r&&(i=Wr())!==r?((b=qn())===r&&(b=null),b===r?(e=lr,lr=r):(Pr=lr,lr=wr={type:"arithmetic",tail:wr,in:b})):(e=lr,lr=r),lr})())===r&&(X=qn())===r&&(X=(function(){var lr=e,wr,i,b;return(wr=(function(){var m=e,x=e,tr,Cr,gr;return(tr=$e())!==r&&(Cr=Wr())!==r&&(gr=Fs())!==r?x=tr=[tr,Cr,gr]:(e=x,x=r),x!==r&&(Pr=m,x=Ff(x)),(m=x)===r&&(m=Fs()),m})())!==r&&Wr()!==r&&(i=Cs())!==r&&Wr()!==r&&Gs()!==r&&Wr()!==r&&(b=Cs())!==r?(Pr=lr,lr=wr={op:wr,right:{type:"expr_list",value:[i,b]}}):(e=lr,lr=r),lr})())===r&&(X=(function(){var lr=e,wr,i,b,m;return(wr=ee())!==r&&(i=Wr())!==r&&(b=Cs())!==r?(Pr=lr,lr=wr={op:"IS",right:b}):(e=lr,lr=r),lr===r&&(lr=e,wr=e,(i=ee())!==r&&(b=Wr())!==r&&(m=$e())!==r?wr=i=[i,b,m]:(e=wr,wr=r),wr!==r&&(i=Wr())!==r&&(b=Cs())!==r?(Pr=lr,wr=(function(x){return{op:"IS NOT",right:x}})(b),lr=wr):(e=lr,lr=r)),lr})())===r&&(X=Hn())===r&&(X=(function(){var lr=e,wr,i,b;(wr=(function(){var tr=e,Cr,gr;(Cr=$e())===r&&(Cr=null),Cr!==r&&Wr()!==r?((gr=(function(){var gt=e,Gt,rn,xn;return t.substr(e,6).toLowerCase()==="regexp"?(Gt=t.substr(e,6),e+=6):(Gt=r,K===0&&_t(Ci)),Gt===r?(e=gt,gt=r):(rn=e,K++,xn=le(),K--,xn===r?rn=void 0:(e=rn,rn=r),rn===r?(e=gt,gt=r):(Pr=gt,gt=Gt="REGEXP")),gt})())===r&&(gr=(function(){var gt=e,Gt,rn,xn;return t.substr(e,5).toLowerCase()==="rlike"?(Gt=t.substr(e,5),e+=5):(Gt=r,K===0&&_t(Tl)),Gt===r?(e=gt,gt=r):(rn=e,K++,xn=le(),K--,xn===r?rn=void 0:(e=rn,rn=r),rn===r?(e=gt,gt=r):(Pr=gt,gt=Gt="RLIKE")),gt})()),gr===r?(e=tr,tr=r):(Pr=tr,Rt=gr,tr=Cr=(Yr=Cr)?`${Yr} ${Rt}`:Rt)):(e=tr,tr=r);var Yr,Rt;return tr})())!==r&&Wr()!==r?(t.substr(e,6).toLowerCase()==="binary"?(i=t.substr(e,6),e+=6):(i=r,K===0&&_t(Mf)),i===r&&(i=null),i!==r&&Wr()!==r?((b=gu())===r&&(b=Ei())===r&&(b=Je()),b===r?(e=lr,lr=r):(Pr=lr,m=wr,lr=wr={op:(x=i)?`${m} ${x}`:m,right:b})):(e=lr,lr=r)):(e=lr,lr=r);var m,x;return lr})()),X})())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(X,lr){if(lr===null)return X;if(lr.type==="arithmetic"){if(!lr.in)return tt(X,lr.tail);let wr=tt(X,lr.tail);return sr(lr.in.op,wr,lr.in.right)}return sr(lr.op,X,lr.right)})(N,H))):(e=d,d=r),d===r&&(d=Ei())===r&&(d=Je()),d}function pn(){var d;return t.substr(e,2)===">="?(d=">=",e+=2):(d=r,K===0&&_t(kp)),d===r&&(t.charCodeAt(e)===62?(d=">",e++):(d=r,K===0&&_t(Mp)),d===r&&(t.substr(e,2)==="<="?(d="<=",e+=2):(d=r,K===0&&_t(rp)),d===r&&(t.substr(e,2)==="<>"?(d="<>",e+=2):(d=r,K===0&&_t(yp)),d===r&&(t.charCodeAt(e)===60?(d="<",e++):(d=r,K===0&&_t(hp)),d===r&&(t.charCodeAt(e)===61?(d="=",e++):(d=r,K===0&&_t(v0)),d===r&&(t.substr(e,2)==="!="?(d="!=",e+=2):(d=r,K===0&&_t(Ep)))))))),d}function Cn(){var d,N,H,X,lr;return d=e,N=e,(H=$e())!==r&&(X=Wr())!==r&&(lr=ue())!==r?N=H=[H,X,lr]:(e=N,N=r),N!==r&&(Pr=d,N=Ff(N)),(d=N)===r&&(d=ue()),d}function Hn(){var d,N,H,X,lr,wr,i;return d=e,(N=(function(){var b,m,x,tr,Cr;return b=e,m=e,(x=$e())!==r&&(tr=Wr())!==r&&(Cr=ie())!==r?m=x=[x,tr,Cr]:(e=m,m=r),m!==r&&(Pr=b,m=Ff(m)),(b=m)===r&&(b=ie()),b})())!==r&&Wr()!==r?((H=vl())===r&&(H=yi())===r&&(H=Ut()),H!==r&&Wr()!==r?((X=(function(){var b,m,x;return b=e,t.substr(e,6).toLowerCase()==="escape"?(m=t.substr(e,6),e+=6):(m=r,K===0&&_t(Nb)),m!==r&&Wr()!==r&&(x=Ei())!==r?(Pr=b,b=m=(function(tr,Cr){return{type:"ESCAPE",value:Cr}})(0,x)):(e=b,b=r),b})())===r&&(X=null),X===r?(e=d,d=r):(Pr=d,lr=N,wr=H,(i=X)&&(wr.escape=i),d=N={op:lr,right:wr})):(e=d,d=r)):(e=d,d=r),d}function qn(){var d,N,H,X;return d=e,(N=Cn())!==r&&Wr()!==r&&(H=mo())!==r&&Wr()!==r&&(X=ms())!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=N={op:N,right:X}):(e=d,d=r),d===r&&(d=e,(N=Cn())!==r&&Wr()!==r?((H=nn())===r&&(H=Je())===r&&(H=Ei()),H===r?(e=d,d=r):(Pr=d,d=N=(function(lr,wr){return{op:lr,right:wr}})(N,H))):(e=d,d=r)),d}function Cs(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=qe())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=js())!==r&&(i=Wr())!==r&&(b=qe())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=js())!==r&&(i=Wr())!==r&&(b=qe())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){if(x&&x.length&&m.type==="column_ref"&&m.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...U()}));return tt(m,x)})(N,H))}else e=d,d=r;return d}function js(){var d;return t.charCodeAt(e)===43?(d="+",e++):(d=r,K===0&&_t(Qf)),d===r&&(t.charCodeAt(e)===45?(d="-",e++):(d=r,K===0&&_t(_b))),d}function qe(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=tu())!==r){for(H=[],X=e,(lr=Wr())===r?(e=X,X=r):((wr=bo())===r&&(wr=Ko()),wr!==r&&(i=Wr())!==r&&(b=tu())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r));X!==r;)H.push(X),X=e,(lr=Wr())===r?(e=X,X=r):((wr=bo())===r&&(wr=Ko()),wr!==r&&(i=Wr())!==r&&(b=tu())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r));H===r?(e=d,d=r):(Pr=d,d=N=tt(N,H))}else e=d,d=r;return d}function bo(){var d,N;return t.charCodeAt(e)===42?(d="*",e++):(d=r,K===0&&_t(Ap)),d===r&&(t.charCodeAt(e)===47?(d="/",e++):(d=r,K===0&&_t(Dp)),d===r&&(t.charCodeAt(e)===37?(d="%",e++):(d=r,K===0&&_t($v)),d===r&&(t.substr(e,2)==="||"?(d="||",e+=2):(d=r,K===0&&_t($p)),d===r&&(d=e,t.substr(e,3).toLowerCase()==="div"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(Pp)),N===r&&(t.substr(e,3).toLowerCase()==="mod"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(Pv))),N!==r&&(Pr=d,N=N.toUpperCase()),(d=N)===r&&(t.charCodeAt(e)===38?(d="&",e++):(d=r,K===0&&_t(Gp)),d===r&&(t.substr(e,2)===">>"?(d=">>",e+=2):(d=r,K===0&&_t(Fp)),d===r&&(t.substr(e,2)==="<<"?(d="<<",e+=2):(d=r,K===0&&_t(mp)),d===r&&(t.charCodeAt(e)===94?(d="^",e++):(d=r,K===0&&_t(zp)),d===r&&(t.charCodeAt(e)===124?(d="|",e++):(d=r,K===0&&_t(Zp))))))))))),d}function tu(){var d,N,H,X,lr;return(d=(function(){var wr,i,b,m,x,tr,Cr,gr;if(wr=e,(i=Ru())!==r)if(Wr()!==r){for(b=[],m=e,(x=Wr())===r?(e=m,m=r):(t.substr(e,2)==="?|"?(tr="?|",e+=2):(tr=r,K===0&&_t(Fv)),tr===r&&(t.substr(e,2)==="?&"?(tr="?&",e+=2):(tr=r,K===0&&_t(yl)),tr===r&&(t.charCodeAt(e)===63?(tr="?",e++):(tr=r,K===0&&_t(O0)),tr===r&&(t.substr(e,2)==="#-"?(tr="#-",e+=2):(tr=r,K===0&&_t(jc)),tr===r&&(t.substr(e,3)==="#>>"?(tr="#>>",e+=3):(tr=r,K===0&&_t(fv)),tr===r&&(t.substr(e,2)==="#>"?(tr="#>",e+=2):(tr=r,K===0&&_t(Sl)),tr===r&&(tr=Gu())===r&&(tr=Fo())===r&&(t.substr(e,2)==="@>"?(tr="@>",e+=2):(tr=r,K===0&&_t(Ol)),tr===r&&(t.substr(e,2)==="<@"?(tr="<@",e+=2):(tr=r,K===0&&_t(np))))))))),tr!==r&&(Cr=Wr())!==r&&(gr=Ru())!==r?m=x=[x,tr,Cr,gr]:(e=m,m=r));m!==r;)b.push(m),m=e,(x=Wr())===r?(e=m,m=r):(t.substr(e,2)==="?|"?(tr="?|",e+=2):(tr=r,K===0&&_t(Fv)),tr===r&&(t.substr(e,2)==="?&"?(tr="?&",e+=2):(tr=r,K===0&&_t(yl)),tr===r&&(t.charCodeAt(e)===63?(tr="?",e++):(tr=r,K===0&&_t(O0)),tr===r&&(t.substr(e,2)==="#-"?(tr="#-",e+=2):(tr=r,K===0&&_t(jc)),tr===r&&(t.substr(e,3)==="#>>"?(tr="#>>",e+=3):(tr=r,K===0&&_t(fv)),tr===r&&(t.substr(e,2)==="#>"?(tr="#>",e+=2):(tr=r,K===0&&_t(Sl)),tr===r&&(tr=Gu())===r&&(tr=Fo())===r&&(t.substr(e,2)==="@>"?(tr="@>",e+=2):(tr=r,K===0&&_t(Ol)),tr===r&&(t.substr(e,2)==="<@"?(tr="<@",e+=2):(tr=r,K===0&&_t(np))))))))),tr!==r&&(Cr=Wr())!==r&&(gr=Ru())!==r?m=x=[x,tr,Cr,gr]:(e=m,m=r));b===r?(e=wr,wr=r):(Pr=wr,Yr=i,i=(Rt=b)&&Rt.length!==0?tt(Yr,Rt):Yr,wr=i)}else e=wr,wr=r;else e=wr,wr=r;var Yr,Rt;return wr})())===r&&(d=e,(N=(function(){var wr;return t.charCodeAt(e)===33?(wr="!",e++):(wr=r,K===0&&_t(Gv)),wr===r&&(t.charCodeAt(e)===45?(wr="-",e++):(wr=r,K===0&&_t(_b)),wr===r&&(t.charCodeAt(e)===43?(wr="+",e++):(wr=r,K===0&&_t(Qf)),wr===r&&(t.charCodeAt(e)===126?(wr="~",e++):(wr=r,K===0&&_t(tp))))),wr})())===r?(e=d,d=r):(H=e,(X=Wr())!==r&&(lr=tu())!==r?H=X=[X,lr]:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N=Z(N,H[1])))),d}function Ru(){var d,N,H,X;return(d=Qs())===r&&(d=(function(){var lr;return(lr=(function(){var wr=e,i,b,m;return(i=(function(){var x=e,tr,Cr,gr;return t.substr(e,5).toLowerCase()==="count"?(tr=t.substr(e,5),e+=5):(tr=r,K===0&&_t(Zi)),tr===r?(e=x,x=r):(Cr=e,K++,gr=le(),K--,gr===r?Cr=void 0:(e=Cr,Cr=r),Cr===r?(e=x,x=r):(Pr=x,x=tr="COUNT")),x})())===r&&(i=(function(){var x=e,tr,Cr,gr;return t.substr(e,12).toLowerCase()==="group_concat"?(tr=t.substr(e,12),e+=12):(tr=r,K===0&&_t(rf)),tr===r?(e=x,x=r):(Cr=e,K++,gr=le(),K--,gr===r?Cr=void 0:(e=Cr,Cr=r),Cr===r?(e=x,x=r):(Pr=x,x=tr="GROUP_CONCAT")),x})()),i!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(b=(function(){var x=e,tr,Cr,gr,Yr;return(tr=(function(){var Rt=e,gt;return t.charCodeAt(e)===42?(gt="*",e++):(gt=r,K===0&&_t(Ap)),gt!==r&&(Pr=Rt,gt={type:"star",value:"*"}),Rt=gt})())!==r&&(Pr=x,tr={expr:tr,...U()}),(x=tr)===r&&(x=e,(tr=Ns())===r&&(tr=null),tr!==r&&Wr()!==r&&(Cr=pt())!==r&&Wr()!==r?((gr=F())===r&&(gr=null),gr!==r&&Wr()!==r?((Yr=(function(){var Rt=e,gt,Gt;return t.substr(e,9).toLowerCase()==="separator"?(gt=t.substr(e,9),e+=9):(gt=r,K===0&&_t(O)),gt===r&&(gt=null),gt!==r&&Wr()!==r&&(Gt=Ei())!==r?(Pr=Rt,Rt=gt={keyword:gt,value:Gt}):(e=Rt,Rt=r),Rt})())===r&&(Yr=null),Yr===r?(e=x,x=r):(Pr=x,tr=(function(Rt,gt,Gt,rn){return{distinct:Rt,expr:gt,orderby:Gt,separator:rn,...U()}})(tr,Cr,gr,Yr),x=tr)):(e=x,x=r)):(e=x,x=r)),x})())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?((m=Wa())===r&&(m=null),m===r?(e=wr,wr=r):(Pr=wr,i=(function(x,tr,Cr){return{type:"aggr_func",name:x,args:tr,over:Cr,...U()}})(i,b,m),wr=i)):(e=wr,wr=r),wr})())===r&&(lr=(function(){var wr=e,i,b,m;return(i=(function(){var x;return(x=(function(){var tr=e,Cr,gr,Yr;return t.substr(e,3).toLowerCase()==="sum"?(Cr=t.substr(e,3),e+=3):(Cr=r,K===0&&_t($0)),Cr===r?(e=tr,tr=r):(gr=e,K++,Yr=le(),K--,Yr===r?gr=void 0:(e=gr,gr=r),gr===r?(e=tr,tr=r):(Pr=tr,tr=Cr="SUM")),tr})())===r&&(x=(function(){var tr=e,Cr,gr,Yr;return t.substr(e,3).toLowerCase()==="max"?(Cr=t.substr(e,3),e+=3):(Cr=r,K===0&&_t(Ii)),Cr===r?(e=tr,tr=r):(gr=e,K++,Yr=le(),K--,Yr===r?gr=void 0:(e=gr,gr=r),gr===r?(e=tr,tr=r):(Pr=tr,tr=Cr="MAX")),tr})())===r&&(x=(function(){var tr=e,Cr,gr,Yr;return t.substr(e,3).toLowerCase()==="min"?(Cr=t.substr(e,3),e+=3):(Cr=r,K===0&&_t(Ge)),Cr===r?(e=tr,tr=r):(gr=e,K++,Yr=le(),K--,Yr===r?gr=void 0:(e=gr,gr=r),gr===r?(e=tr,tr=r):(Pr=tr,tr=Cr="MIN")),tr})())===r&&(x=(function(){var tr=e,Cr,gr,Yr;return t.substr(e,3).toLowerCase()==="avg"?(Cr=t.substr(e,3),e+=3):(Cr=r,K===0&&_t(gf)),Cr===r?(e=tr,tr=r):(gr=e,K++,Yr=le(),K--,Yr===r?gr=void 0:(e=gr,gr=r),gr===r?(e=tr,tr=r):(Pr=tr,tr=Cr="AVG")),tr})()),x})())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(b=et())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r?((m=Wa())===r&&(m=null),m===r?(e=wr,wr=r):(Pr=wr,i=(function(x,tr,Cr){return{type:"aggr_func",name:x,args:{expr:tr},over:Cr,...U()}})(i,b,m),wr=i)):(e=wr,wr=r),wr})()),lr})())===r&&(d=cn())===r&&(d=gu())===r&&(d=(function(){var lr=e,wr,i,b,m,x,tr;return(wr=Do())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(i=mr())!==r&&Wr()!==r&&G0()!==r&&Wr()!==r&&(b=Es())!==r&&Wr()!==r&&(m=Ir())!==r&&Wr()!==r&&(x=nu())!==r&&Wr()!==r&&ho()!==r?(Pr=lr,wr=(function(Cr,gr,Yr,Rt,gt){let{dataType:Gt,length:rn}=Yr,xn=Gt;return rn!==void 0&&(xn=`${xn}(${rn})`),{type:"cast",keyword:Cr.toLowerCase(),expr:gr,symbol:"as",target:[{dataType:xn,suffix:[{type:"origin",value:Rt},gt]}]}})(wr,i,b,m,x),lr=wr):(e=lr,lr=r),lr===r&&(lr=e,(wr=Do())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(i=mr())!==r&&Wr()!==r&&G0()!==r&&Wr()!==r&&(b=fr())!==r&&Wr()!==r&&(m=ho())!==r?(Pr=lr,wr=(function(Cr,gr,Yr){return{type:"cast",keyword:Cr.toLowerCase(),expr:gr,symbol:"as",target:[Yr]}})(wr,i,b),lr=wr):(e=lr,lr=r),lr===r&&(lr=e,(wr=Do())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(i=mr())!==r&&Wr()!==r&&G0()!==r&&Wr()!==r&&(b=_f())!==r&&Wr()!==r&&(m=mo())!==r&&Wr()!==r&&(x=_i())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r&&(tr=ho())!==r?(Pr=lr,wr=(function(Cr,gr,Yr){return{type:"cast",keyword:Cr.toLowerCase(),expr:gr,symbol:"as",target:[{dataType:"DECIMAL("+Yr+")"}]}})(wr,i,x),lr=wr):(e=lr,lr=r),lr===r&&(lr=e,(wr=Do())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(i=mr())!==r&&Wr()!==r&&G0()!==r&&Wr()!==r&&(b=_f())!==r&&Wr()!==r&&(m=mo())!==r&&Wr()!==r&&(x=_i())!==r&&Wr()!==r&&Me()!==r&&Wr()!==r&&(tr=_i())!==r&&Wr()!==r&&ho()!==r&&Wr()!==r&&ho()!==r?(Pr=lr,wr=(function(Cr,gr,Yr,Rt){return{type:"cast",keyword:Cr.toLowerCase(),expr:gr,symbol:"as",target:[{dataType:"DECIMAL("+Yr+", "+Rt+")"}]}})(wr,i,x,tr),lr=wr):(e=lr,lr=r),lr===r&&(lr=e,(wr=Do())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(i=mr())!==r&&Wr()!==r&&G0()!==r&&Wr()!==r&&(b=Du())!==r&&Wr()!==r?((m=Db())===r&&(m=null),m!==r&&Wr()!==r&&(x=ho())!==r?(Pr=lr,wr=(function(Cr,gr,Yr,Rt){return{type:"cast",keyword:Cr.toLowerCase(),expr:gr,symbol:"as",target:[{dataType:[Yr,Rt].filter(Boolean).join(" ")}]}})(wr,i,b,m),lr=wr):(e=lr,lr=r)):(e=lr,lr=r))))),lr})())===r&&(d=(function(){var lr,wr,i,b,m,x,tr,Cr;return lr=e,wu()!==r&&Wr()!==r&&(wr=$())!==r&&Wr()!==r?((i=br())===r&&(i=null),i!==r&&Wr()!==r&&(b=Ea())!==r&&Wr()!==r?((m=wu())===r&&(m=null),m===r?(e=lr,lr=r):(Pr=lr,tr=wr,(Cr=i)&&tr.push(Cr),lr={type:"case",expr:null,args:tr})):(e=lr,lr=r)):(e=lr,lr=r),lr===r&&(lr=e,wu()!==r&&Wr()!==r&&(wr=mr())!==r&&Wr()!==r&&(i=$())!==r&&Wr()!==r?((b=br())===r&&(b=null),b!==r&&Wr()!==r&&(m=Ea())!==r&&Wr()!==r?((x=wu())===r&&(x=null),x===r?(e=lr,lr=r):(Pr=lr,lr=(function(gr,Yr,Rt){return Rt&&Yr.push(Rt),{type:"case",expr:gr,args:Yr}})(wr,i,b))):(e=lr,lr=r)):(e=lr,lr=r)),lr})())===r&&(d=Hu())===r&&(d=Je())===r&&(d=ga())===r&&(d=yi())===r&&(d=e,mo()!==r&&(N=Wr())!==r&&(H=pt())!==r&&Wr()!==r&&ho()!==r?(Pr=d,(X=H).parentheses=!0,d=X):(e=d,d=r),d===r&&(d=nn())===r&&(d=e,Wr()===r?(e=d,d=r):(t.charCodeAt(e)===63?(N="?",e++):(N=r,K===0&&_t(O0)),N===r?(e=d,d=r):(Pr=d,d={type:"origin",value:N})))),d}function Je(){var d,N,H,X,lr,wr,i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt;return d=e,(N=cu())===r&&(N=Jo()),N!==r&&(H=Wr())!==r&&(X=ru())!==r&&(lr=Wr())!==r?((wr=cu())===r&&(wr=Jo()),wr!==r&&(i=Wr())!==r&&(b=ru())!==r&&(m=Wr())!==r&&(x=Bu())!==r?(tr=e,(Cr=Wr())!==r&&(gr=Le())!==r?tr=Cr=[Cr,gr]:(e=tr,tr=r),tr===r&&(tr=null),tr===r?(e=d,d=r):(Pr=d,Yr=N,Rt=wr,gt=x,Gt=tr,jn.add(`select::${typeof Yr=="object"?Yr.value:Yr}::${typeof Rt=="object"?Rt.value:Rt}::${gt}`),d=N={type:"column_ref",db:Yr,table:Rt,column:gt,collate:Gt&&Gt[1],...U()})):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=cu())===r&&(N=Jo()),N!==r&&(H=Wr())!==r&&(X=ru())!==r&&(lr=Wr())!==r&&(wr=Bu())!==r?(i=e,(b=Wr())!==r&&(m=Le())!==r?i=b=[b,m]:(e=i,i=r),i===r&&(i=null),i===r?(e=d,d=r):(Pr=d,d=N=(function(rn,xn,f){return jn.add(`select::${typeof rn=="object"?rn.value:rn}::${xn}`),{type:"column_ref",table:rn,column:xn,collate:f&&f[1],...U()}})(N,wr,i))):(e=d,d=r),d===r&&(d=e,N=e,(H=qs())!==r&&(X=Wr())!==r&&(lr=ru())!==r?N=H=[H,X,lr]:(e=N,N=r),N===r&&(N=null),N!==r&&(H=Wr())!==r&&(X=_u())!==r?(Pr=d,d=N=(function(rn){let xn=rn&&rn[0]||null;return jn.add(`select::${xn}::(.*)`),{expr:{type:"column_ref",table:xn,column:"*"},as:null,...U()}})(N)):(e=d,d=r),d===r&&(d=e,(N=oa())===r?(e=d,d=r):(H=e,(X=Wr())!==r&&(lr=Le())!==r?H=X=[X,lr]:(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(rn,xn){return jn.add("select::null::"+rn),{type:"column_ref",table:null,column:rn,collate:xn&&xn[1],...U()}})(N,H)))))),d}function hu(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=oa())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=oa())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=oa())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=zn(N,H))}else e=d,d=r;return d}function Go(){var d,N;return d=e,(N=cu())!==r&&(Pr=d,N={type:"default",value:N}),d=N}function nu(){var d;return(d=Go())===r&&(d=fo()),d}function xe(){var d;return(d=cu())===r&&(d=Ks()),d}function qs(){var d,N;return d=e,(N=cu())===r?(e=d,d=r):(Pr=e,(bv(N)?r:void 0)===r?(e=d,d=r):(Pr=d,d=N=N)),d===r&&(d=Ks()),d}function fo(){var d;return(d=Vo())===r&&(d=eu())===r&&(d=Jo()),d}function Ks(){var d,N;return d=e,(N=Vo())===r&&(N=eu())===r&&(N=Jo()),N!==r&&(Pr=d,N=N.value),d=N}function Vo(){var d,N,H,X;if(d=e,t.charCodeAt(e)===34?(N='"',e++):(N=r,K===0&&_t(ql)),N!==r){if(H=[],Ec.test(t.charAt(e))?(X=t.charAt(e),e++):(X=r,K===0&&_t(Jp)),X!==r)for(;X!==r;)H.push(X),Ec.test(t.charAt(e))?(X=t.charAt(e),e++):(X=r,K===0&&_t(Jp));else H=r;H===r?(e=d,d=r):(t.charCodeAt(e)===34?(X='"',e++):(X=r,K===0&&_t(ql)),X===r?(e=d,d=r):(Pr=d,d=N={type:"double_quote_string",value:H.join("")}))}else e=d,d=r;return d}function eu(){var d,N,H,X;if(d=e,t.charCodeAt(e)===39?(N="'",e++):(N=r,K===0&&_t(wl)),N!==r){for(H=[],Qp.test(t.charAt(e))?(X=t.charAt(e),e++):(X=r,K===0&&_t(sp));X!==r;)H.push(X),Qp.test(t.charAt(e))?(X=t.charAt(e),e++):(X=r,K===0&&_t(sp));H===r?(e=d,d=r):(t.charCodeAt(e)===39?(X="'",e++):(X=r,K===0&&_t(wl)),X===r?(e=d,d=r):(Pr=d,d=N={type:"single_quote_string",value:H.join("")}))}else e=d,d=r;return d}function Jo(){var d,N,H,X;if(d=e,t.charCodeAt(e)===96?(N="`",e++):(N=r,K===0&&_t(jv)),N!==r){if(H=[],Tp.test(t.charAt(e))?(X=t.charAt(e),e++):(X=r,K===0&&_t(rd)),X===r&&(X=Rf()),X!==r)for(;X!==r;)H.push(X),Tp.test(t.charAt(e))?(X=t.charAt(e),e++):(X=r,K===0&&_t(rd)),X===r&&(X=Rf());else H=r;H===r?(e=d,d=r):(t.charCodeAt(e)===96?(X="`",e++):(X=r,K===0&&_t(jv)),X===r?(e=d,d=r):(Pr=d,d=N={type:"backticks_quote_string",value:H.join("")}))}else e=d,d=r;return d}function Bu(){var d,N;return d=e,(N=Nu())!==r&&(Pr=d,N=N),(d=N)===r&&(d=Ks()),d}function oa(){var d,N;return d=e,(N=Nu())===r?(e=d,d=r):(Pr=e,(bv(N)?r:void 0)===r?(e=d,d=r):(Pr=d,d=N=N)),d===r&&(d=e,(N=Jo())!==r&&(Pr=d,N=N.value),d=N),d}function Nu(){var d,N,H,X;if(d=e,(N=le())!==r){for(H=[],X=Ee();X!==r;)H.push(X),X=Ee();H===r?(e=d,d=r):(Pr=d,d=N=jp(N,H))}else e=d,d=r;if(d===r)if(d=e,(N=tc())!==r){if(H=[],(X=Ee())!==r)for(;X!==r;)H.push(X),X=Ee();else H=r;H===r?(e=d,d=r):(Pr=d,d=N=jp(N,H))}else e=d,d=r;return d}function cu(){var d,N,H,X;if(d=e,(N=le())!==r){for(H=[],X=vu();X!==r;)H.push(X),X=vu();H===r?(e=d,d=r):(Pr=d,d=N=jp(N,H))}else e=d,d=r;return d}function le(){var d;return Ip.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(td)),d}function vu(){var d;return nd.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(Bp)),d}function Ee(){var d;return Hp.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(gp)),d}function yi(){var d,N,H,X;return d=e,N=e,t.charCodeAt(e)===58?(H=":",e++):(H=r,K===0&&_t(sd)),H!==r&&(X=cu())!==r?N=H=[H,X]:(e=N,N=r),N!==r&&(Pr=d,N={type:"param",value:N[1]}),d=N}function Rc(){var d,N,H,X,lr,wr,i,b,m;return d=e,R()!==r&&Wr()!==r&&ip()!==r&&Wr()!==r&&(N=Vr())!==r&&Wr()!==r?(H=e,(X=mo())!==r&&(lr=Wr())!==r?((wr=ms())===r&&(wr=null),wr!==r&&(i=Wr())!==r&&(b=ho())!==r?H=X=[X,lr,wr,i,b]:(e=H,H=r)):(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d={type:"on update",keyword:N,parentheses:!!(m=H),expr:m?m[2]:null})):(e=d,d=r),d===r&&(d=e,R()!==r&&Wr()!==r&&ip()!==r&&Wr()!==r?(t.substr(e,3).toLowerCase()==="now"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(ed)),N!==r&&Wr()!==r&&(H=mo())!==r&&(X=Wr())!==r&&(lr=ho())!==r?(Pr=d,d=(function(x){return{type:"on update",keyword:x,parentheses:!0}})(N)):(e=d,d=r)):(e=d,d=r)),d}function Wa(){var d,N,H;return d=e,t.substr(e,4).toLowerCase()==="over"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Yp)),N!==r&&Wr()!==r&&(H=Ev())!==r?(Pr=d,d=N={type:"window",as_window_specification:H}):(e=d,d=r),d===r&&(d=Rc()),d}function vc(){var d,N,H;return d=e,(N=cu())!==r&&Wr()!==r&&G0()!==r&&Wr()!==r&&(H=Ev())!==r?(Pr=d,d=N={name:N,as_window_specification:H}):(e=d,d=r),d}function Ev(){var d,N;return(d=cu())===r&&(d=e,mo()!==r&&Wr()!==r?((N=(function(){var H=e,X,lr,wr;return(X=Na())===r&&(X=null),X!==r&&Wr()!==r?((lr=F())===r&&(lr=null),lr!==r&&Wr()!==r?((wr=(function(){var i=e,b,m,x,tr;return(b=w())!==r&&Wr()!==r?((m=cb())===r&&(m=ad()),m===r?(e=i,i=r):(Pr=i,i=b={type:"rows",expr:m})):(e=i,i=r),i===r&&(i=e,(b=w())!==r&&Wr()!==r&&(m=Fs())!==r&&Wr()!==r&&(x=ad())!==r&&Wr()!==r&&Gs()!==r&&Wr()!==r&&(tr=cb())!==r?(Pr=i,b=sr(m,{type:"origin",value:"rows"},{type:"expr_list",value:[x,tr]}),i=b):(e=i,i=r)),i})())===r&&(wr=null),wr===r?(e=H,H=r):(Pr=H,H=X={name:null,partitionby:X,orderby:lr,window_frame_clause:wr})):(e=H,H=r)):(e=H,H=r),H})())===r&&(N=null),N!==r&&Wr()!==r&&ho()!==r?(Pr=d,d={window_specification:N||{},parentheses:!0}):(e=d,d=r)):(e=d,d=r)),d}function cb(){var d,N,H,X;return d=e,(N=ap())!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="following"?(H=t.substr(e,9),e+=9):(H=r,K===0&&_t(ud)),H===r?(e=d,d=r):(Pr=d,(X=N).value+=" FOLLOWING",d=N=X)):(e=d,d=r),d===r&&(d=hi()),d}function ad(){var d,N,H,X,lr;return d=e,(N=ap())!==r&&Wr()!==r?(t.substr(e,9).toLowerCase()==="preceding"?(H=t.substr(e,9),e+=9):(H=r,K===0&&_t(Rp)),H===r&&(t.substr(e,9).toLowerCase()==="following"?(H=t.substr(e,9),e+=9):(H=r,K===0&&_t(ud))),H===r?(e=d,d=r):(Pr=d,lr=H,(X=N).value+=" "+lr.toUpperCase(),d=N=X)):(e=d,d=r),d===r&&(d=hi()),d}function hi(){var d,N,H;return d=e,t.substr(e,7).toLowerCase()==="current"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(kc)),N!==r&&Wr()!==r?(t.substr(e,3).toLowerCase()==="row"?(H=t.substr(e,3),e+=3):(H=r,K===0&&_t(ku)),H===r?(e=d,d=r):(Pr=d,d=N={type:"origin",value:"current row",...U()})):(e=d,d=r),d}function ap(){var d,N;return d=e,t.substr(e,9).toLowerCase()==="unbounded"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(Xf)),N!==r&&(Pr=d,N={type:"origin",value:N.toUpperCase(),...U()}),(d=N)===r&&(d=ga()),d}function A0(){var d,N;return d=e,t.substr(e,10).toLowerCase()==="year_month"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(ps)),N===r&&(t.substr(e,8).toLowerCase()==="day_hour"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Bv)),N===r&&(t.substr(e,10).toLowerCase()==="day_minute"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(Lf)),N===r&&(t.substr(e,10).toLowerCase()==="day_second"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(Hv)),N===r&&(t.substr(e,15).toLowerCase()==="day_microsecond"?(N=t.substr(e,15),e+=15):(N=r,K===0&&_t(on)),N===r&&(t.substr(e,11).toLowerCase()==="hour_minute"?(N=t.substr(e,11),e+=11):(N=r,K===0&&_t(zs)),N===r&&(t.substr(e,11).toLowerCase()==="hour_second"?(N=t.substr(e,11),e+=11):(N=r,K===0&&_t(Bc)),N===r&&(t.substr(e,16).toLowerCase()==="hour_microsecond"?(N=t.substr(e,16),e+=16):(N=r,K===0&&_t(vv)),N===r&&(t.substr(e,13).toLowerCase()==="minute_second"?(N=t.substr(e,13),e+=13):(N=r,K===0&&_t(ep)),N===r&&(t.substr(e,18).toLowerCase()==="minute_microsecond"?(N=t.substr(e,18),e+=18):(N=r,K===0&&_t(Rs)),N===r&&(t.substr(e,18).toLowerCase()==="second_microsecond"?(N=t.substr(e,18),e+=18):(N=r,K===0&&_t(Np)),N===r&&(t.substr(e,13).toLowerCase()==="timezone_hour"?(N=t.substr(e,13),e+=13):(N=r,K===0&&_t(Wp)),N===r&&(t.substr(e,15).toLowerCase()==="timezone_minute"?(N=t.substr(e,15),e+=15):(N=r,K===0&&_t(cd)),N===r&&(t.substr(e,7).toLowerCase()==="century"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Vb)),N===r&&(t.substr(e,3).toLowerCase()==="day"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(_)),N===r&&(t.substr(e,4).toLowerCase()==="date"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Ls)),N===r&&(t.substr(e,6).toLowerCase()==="decade"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(pv)),N===r&&(t.substr(e,3).toLowerCase()==="dow"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(Cf)),N===r&&(t.substr(e,3).toLowerCase()==="doy"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(dv)),N===r&&(t.substr(e,5).toLowerCase()==="epoch"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Qt)),N===r&&(t.substr(e,4).toLowerCase()==="hour"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Xs)),N===r&&(t.substr(e,6).toLowerCase()==="isodow"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(ic)),N===r&&(t.substr(e,7).toLowerCase()==="isoweek"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(op)),N===r&&(t.substr(e,7).toLowerCase()==="isoyear"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Kb)),N===r&&(t.substr(e,12).toLowerCase()==="microseconds"?(N=t.substr(e,12),e+=12):(N=r,K===0&&_t(ys)),N===r&&(t.substr(e,10).toLowerCase()==="millennium"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(_p)),N===r&&(t.substr(e,12).toLowerCase()==="milliseconds"?(N=t.substr(e,12),e+=12):(N=r,K===0&&_t(Yv)),N===r&&(t.substr(e,6).toLowerCase()==="minute"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Lv)),N===r&&(t.substr(e,5).toLowerCase()==="month"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Wv)),N===r&&(t.substr(e,7).toLowerCase()==="quarter"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(zb)),N===r&&(t.substr(e,6).toLowerCase()==="second"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(wf)),N===r&&(t.substr(e,4).toLowerCase()==="time"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(qv)),N===r&&(t.substr(e,8).toLowerCase()==="timezone"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Cv)),N===r&&(t.substr(e,4).toLowerCase()==="week"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(rb)),N===r&&(t.substr(e,4).toLowerCase()==="year"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(tb)))))))))))))))))))))))))))))))))))),N!==r&&(Pr=d,N=N),d=N}function fl(){var d,N,H,X,lr,wr,i,b;return d=e,(N=Oo())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(H=A0())!==r&&Wr()!==r&&$l()!==r&&Wr()!==r?((X=z())===r&&(X=Gr())===r&&(X=G())===r&&(X=ra()),X!==r&&Wr()!==r&&(lr=mr())!==r&&Wr()!==r&&ho()!==r?(Pr=d,wr=H,i=X,b=lr,d=N={type:N.toLowerCase(),args:{field:wr,cast_type:i,source:b},...U()}):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=Oo())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(H=A0())!==r&&Wr()!==r&&$l()!==r&&Wr()!==r&&(X=mr())!==r&&Wr()!==r&&(lr=ho())!==r?(Pr=d,d=N=(function(m,x,tr){return{type:m.toLowerCase(),args:{field:x,source:tr},...U()}})(N,H,X)):(e=d,d=r),d===r&&(d=e,t.substr(e,10).toLowerCase()==="date_trunc"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(I)),N!==r&&Wr()!==r&&mo()!==r&&Wr()!==r&&(H=mr())!==r&&Wr()!==r&&Me()!==r&&Wr()!==r&&(X=A0())!==r&&Wr()!==r&&(lr=ho())!==r?(Pr=d,d=N=(function(m,x){return{type:"function",name:{name:[{type:"origin",value:"date_trunc"}]},args:{type:"expr_list",value:[m,{type:"origin",value:x}]},over:null,...U()}})(H,X)):(e=d,d=r))),d}function Av(){var d,N,H;return d=e,(N=(function(){var X;return t.substr(e,4).toLowerCase()==="both"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(us)),X===r&&(t.substr(e,7).toLowerCase()==="leading"?(X=t.substr(e,7),e+=7):(X=r,K===0&&_t(Sb)),X===r&&(t.substr(e,8).toLowerCase()==="trailing"?(X=t.substr(e,8),e+=8):(X=r,K===0&&_t(xl)))),X})())===r&&(N=null),N!==r&&Wr()!==r?((H=mr())===r&&(H=null),H!==r&&Wr()!==r&&$l()!==r?(Pr=d,d=N=(function(X,lr,wr){let i=[];return X&&i.push({type:"origin",value:X}),lr&&i.push(lr),i.push({type:"origin",value:"from"}),{type:"expr_list",value:i}})(N,H)):(e=d,d=r)):(e=d,d=r),d}function bl(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="trim"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(nb)),N!==r&&Wr()!==r&&mo()!==r&&Wr()!==r?((H=Av())===r&&(H=null),H!==r&&Wr()!==r&&(X=mr())!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=N=(function(lr,wr){let i=lr||{type:"expr_list",value:[]};return i.value.push(wr),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:i,...U()}})(H,X)):(e=d,d=r)):(e=d,d=r),d}function gu(){var d,N,H,X,lr,wr,i;return(d=fl())===r&&(d=bl())===r&&(d=e,t.substr(e,7).toLowerCase()==="convert"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(zt)),N!==r&&Wr()!==r&&(H=mo())!==r&&Wr()!==r&&(X=(function(){var b,m,x,tr,Cr;return b=e,(m=M())!==r&&Wr()!==r&&Me()!==r&&Wr()!==r?((x=Es())===r&&(x=ws()),x!==r&&Wr()!==r&&(tr=Ir())!==r&&Wr()!==r&&(Cr=nu())!==r?(Pr=b,b=m=(function(gr,Yr,Rt,gt){let{dataType:Gt,length:rn}=Yr,xn=Gt;return rn!==void 0&&(xn=`${xn}(${rn})`),{type:"expr_list",value:[gr,{type:"origin",value:xn,suffix:{prefix:Rt,...gt}}]}})(m,x,tr,Cr)):(e=b,b=r)):(e=b,b=r),b===r&&(b=e,(m=M())!==r&&Wr()!==r&&Me()!==r&&Wr()!==r?((x=Du())===r&&(x=fr()),x===r?(e=b,b=r):(Pr=b,b=m=(function(gr,Yr){return{type:"expr_list",value:[gr,{type:"datatype",...typeof Yr=="string"?{dataType:Yr}:Yr}]}})(m,x))):(e=b,b=r),b===r&&(b=e,(m=pt())!==r&&Wr()!==r&&vt()!==r&&Wr()!==r&&(x=cu())!==r?(Pr=b,b=m=(function(gr,Yr){return gr.suffix="USING "+Yr.toUpperCase(),{type:"expr_list",value:[gr]}})(m,x)):(e=b,b=r))),b})())!==r&&(lr=Wr())!==r&&ho()!==r?(Pr=d,d=N={type:"function",name:{name:[{type:"origin",value:"convert"}]},args:X,...U()}):(e=d,d=r),d===r&&(d=e,(N=(function(){var b;return(b=Xi())===r&&(b=Qr())===r&&(b=g())===r&&(b=(function(){var m=e,x,tr,Cr;return t.substr(e,12).toLowerCase()==="session_user"?(x=t.substr(e,12),e+=12):(x=r,K===0&&_t(ia)),x===r?(e=m,m=r):(tr=e,K++,Cr=le(),K--,Cr===r?tr=void 0:(e=tr,tr=r),tr===r?(e=m,m=r):(Pr=m,m=x="SESSION_USER")),m})())===r&&(b=(function(){var m=e,x,tr,Cr;return t.substr(e,11).toLowerCase()==="system_user"?(x=t.substr(e,11),e+=11):(x=r,K===0&&_t(ve)),x===r?(e=m,m=r):(tr=e,K++,Cr=le(),K--,Cr===r?tr=void 0:(e=tr,tr=r),tr===r?(e=m,m=r):(Pr=m,m=x="SYSTEM_USER")),m})()),b})())!==r&&Wr()!==r&&(H=mo())!==r&&Wr()!==r?((X=ms())===r&&(X=null),X!==r&&(lr=Wr())!==r&&ho()!==r&&Wr()!==r?((wr=Wa())===r&&(wr=null),wr===r?(e=d,d=r):(Pr=d,d=N=(function(b,m,x){return{type:"function",name:{name:[{type:"default",value:b}]},args:m||{type:"expr_list",value:[]},over:x,...U()}})(N,X,wr))):(e=d,d=r)):(e=d,d=r),d===r&&(d=e,(N=Xi())!==r&&Wr()!==r?((H=Rc())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N={type:"function",name:{name:[{type:"origin",value:N}]},over:H,...U()})):(e=d,d=r),d===r&&(d=e,(N=Dr())===r?(e=d,d=r):(Pr=e,((function(b){return!E[b.name[0]&&b.name[0].value.toLowerCase()]})(N)?void 0:r)!==r&&(H=Wr())!==r&&mo()!==r&&(X=Wr())!==r?((lr=pt())===r&&(lr=null),lr!==r&&Wr()!==r&&ho()!==r&&(wr=Wr())!==r?((i=Wa())===r&&(i=null),i===r?(e=d,d=r):(Pr=d,d=N=(function(b,m,x){return m&&m.type!=="expr_list"&&(m={type:"expr_list",value:[m]}),(b.name[0]&&b.name[0].value.toUpperCase()==="TIMESTAMPDIFF"||b.name[0]&&b.name[0].value.toUpperCase()==="TIMESTAMPADD")&&m.value&&m.value[0]&&(m.value[0]={type:"origin",value:m.value[0].column}),{type:"function",name:b,args:m||{type:"expr_list",value:[]},over:x,...U()}})(N,lr,i))):(e=d,d=r)):(e=d,d=r)))))),d}function Xi(){var d;return(d=(function(){var N=e,H,X,lr;return t.substr(e,12).toLowerCase()==="current_date"?(H=t.substr(e,12),e+=12):(H=r,K===0&&_t(Ql)),H===r?(e=N,N=r):(X=e,K++,lr=le(),K--,lr===r?X=void 0:(e=X,X=r),X===r?(e=N,N=r):(Pr=N,N=H="CURRENT_DATE")),N})())===r&&(d=(function(){var N=e,H,X,lr;return t.substr(e,12).toLowerCase()==="current_time"?(H=t.substr(e,12),e+=12):(H=r,K===0&&_t(lt)),H===r?(e=N,N=r):(X=e,K++,lr=le(),K--,lr===r?X=void 0:(e=X,X=r),X===r?(e=N,N=r):(Pr=N,N=H="CURRENT_TIME")),N})())===r&&(d=Vr()),d}function Du(){var d;return(d=(function(){var N=e,H,X,lr;return t.substr(e,6).toLowerCase()==="signed"?(H=t.substr(e,6),e+=6):(H=r,K===0&&_t(Kr)),H===r?(e=N,N=r):(X=e,K++,lr=le(),K--,lr===r?X=void 0:(e=X,X=r),X===r?(e=N,N=r):(Pr=N,N=H="SIGNED")),N})())===r&&(d=(function(){var N=e,H,X,lr;return t.substr(e,8).toLowerCase()==="unsigned"?(H=t.substr(e,8),e+=8):(H=r,K===0&&_t(Mb)),H===r?(e=N,N=r):(X=e,K++,lr=le(),K--,lr===r?X=void 0:(e=X,X=r),X===r?(e=N,N=r):(Pr=N,N=H="UNSIGNED")),N})()),d}function Hu(){var d,N,H,X,lr,wr,i,b,m;return d=e,t.substr(e,6).toLowerCase()==="binary"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t($s)),N===r&&(t.substr(e,7).toLowerCase()==="_binary"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(ja))),N===r&&(N=null),N!==r&&Wr()!==r&&(H=Ei())!==r?(X=e,(lr=Wr())!==r&&(wr=Le())!==r?X=lr=[lr,wr]:(e=X,X=r),X===r&&(X=null),X===r?(e=d,d=r):(Pr=d,b=H,m=X,(i=N)&&(b.prefix=i.toLowerCase()),m&&(b.suffix={collate:m[1]}),d=N=b)):(e=d,d=r),d===r&&(d=(function(){var x=e,tr;return(tr=(function(){var Cr=e,gr,Yr,Rt;return t.substr(e,4).toLowerCase()==="true"?(gr=t.substr(e,4),e+=4):(gr=r,K===0&&_t(Kn)),gr===r?(e=Cr,Cr=r):(Yr=e,K++,Rt=le(),K--,Rt===r?Yr=void 0:(e=Yr,Yr=r),Yr===r?(e=Cr,Cr=r):Cr=gr=[gr,Yr]),Cr})())!==r&&(Pr=x,tr={type:"bool",value:!0}),(x=tr)===r&&(x=e,(tr=(function(){var Cr=e,gr,Yr,Rt;return t.substr(e,5).toLowerCase()==="false"?(gr=t.substr(e,5),e+=5):(gr=r,K===0&&_t(Kl)),gr===r?(e=Cr,Cr=r):(Yr=e,K++,Rt=le(),K--,Rt===r?Yr=void 0:(e=Yr,Yr=r),Yr===r?(e=Cr,Cr=r):Cr=gr=[gr,Yr]),Cr})())!==r&&(Pr=x,tr={type:"bool",value:!1}),x=tr),x})())===r&&(d=rc())===r&&(d=(function(){var x=e,tr,Cr,gr,Yr,Rt;if((tr=G())===r&&(tr=ra())===r&&(tr=z())===r&&(tr=fd()),tr!==r)if(Wr()!==r){if(Cr=e,t.charCodeAt(e)===39?(gr="'",e++):(gr=r,K===0&&_t(wl)),gr!==r){for(Yr=[],Rt=Tt();Rt!==r;)Yr.push(Rt),Rt=Tt();Yr===r?(e=Cr,Cr=r):(t.charCodeAt(e)===39?(Rt="'",e++):(Rt=r,K===0&&_t(wl)),Rt===r?(e=Cr,Cr=r):Cr=gr=[gr,Yr,Rt])}else e=Cr,Cr=r;Cr===r?(e=x,x=r):(Pr=x,tr=X0(tr,Cr),x=tr)}else e=x,x=r;else e=x,x=r;if(x===r)if(x=e,(tr=G())===r&&(tr=ra())===r&&(tr=z())===r&&(tr=fd()),tr!==r)if(Wr()!==r){if(Cr=e,t.charCodeAt(e)===34?(gr='"',e++):(gr=r,K===0&&_t(ql)),gr!==r){for(Yr=[],Rt=rv();Rt!==r;)Yr.push(Rt),Rt=rv();Yr===r?(e=Cr,Cr=r):(t.charCodeAt(e)===34?(Rt='"',e++):(Rt=r,K===0&&_t(ql)),Rt===r?(e=Cr,Cr=r):Cr=gr=[gr,Yr,Rt])}else e=Cr,Cr=r;Cr===r?(e=x,x=r):(Pr=x,tr=X0(tr,Cr),x=tr)}else e=x,x=r;else e=x,x=r;return x})()),d}function vl(){var d;return(d=Hu())===r&&(d=ga()),d}function rc(){var d,N;return d=e,(N=(function(){var H=e,X,lr,wr;return t.substr(e,4).toLowerCase()==="null"?(X=t.substr(e,4),e+=4):(X=r,K===0&&_t(U0)),X===r?(e=H,H=r):(lr=e,K++,wr=le(),K--,wr===r?lr=void 0:(e=lr,lr=r),lr===r?(e=H,H=r):H=X=[X,lr]),H})())!==r&&(Pr=d,N={type:"null",value:null}),d=N}function Ei(){var d,N,H,X,lr,wr,i,b;if(d=e,t.substr(e,7).toLowerCase()==="_binary"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(ja)),N===r&&(t.substr(e,7).toLowerCase()==="_latin1"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Ob))),N===r&&(N=null),N!==r)if((H=Wr())!==r)if(t.substr(e,1).toLowerCase()==="x"?(X=t.charAt(e),e++):(X=r,K===0&&_t(jf)),X!==r){if(lr=e,t.charCodeAt(e)===39?(wr="'",e++):(wr=r,K===0&&_t(wl)),wr!==r){for(i=[],is.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(el));b!==r;)i.push(b),is.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(el));i===r?(e=lr,lr=r):(t.charCodeAt(e)===39?(b="'",e++):(b=r,K===0&&_t(wl)),b===r?(e=lr,lr=r):lr=wr=[wr,i,b])}else e=lr,lr=r;lr===r?(e=d,d=r):(Pr=d,d=N={type:"hex_string",prefix:N,value:lr[1].join("")})}else e=d,d=r;else e=d,d=r;else e=d,d=r;if(d===r){if(d=e,t.substr(e,7).toLowerCase()==="_binary"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(ja)),N===r&&(t.substr(e,7).toLowerCase()==="_latin1"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Ob))),N===r&&(N=null),N!==r)if((H=Wr())!==r)if(t.substr(e,1).toLowerCase()==="b"?(X=t.charAt(e),e++):(X=r,K===0&&_t(Ti)),X!==r){if(lr=e,t.charCodeAt(e)===39?(wr="'",e++):(wr=r,K===0&&_t(wl)),wr!==r){for(i=[],is.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(el));b!==r;)i.push(b),is.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(el));i===r?(e=lr,lr=r):(t.charCodeAt(e)===39?(b="'",e++):(b=r,K===0&&_t(wl)),b===r?(e=lr,lr=r):lr=wr=[wr,i,b])}else e=lr,lr=r;lr===r?(e=d,d=r):(Pr=d,d=N=(function(m,x,tr){return{type:"bit_string",prefix:m,value:tr[1].join("")}})(N,0,lr))}else e=d,d=r;else e=d,d=r;else e=d,d=r;if(d===r){if(d=e,t.substr(e,7).toLowerCase()==="_binary"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(ja)),N===r&&(t.substr(e,7).toLowerCase()==="_latin1"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Ob))),N===r&&(N=null),N!==r)if((H=Wr())!==r)if(t.substr(e,2).toLowerCase()==="0x"?(X=t.substr(e,2),e+=2):(X=r,K===0&&_t(wv)),X!==r){for(lr=[],is.test(t.charAt(e))?(wr=t.charAt(e),e++):(wr=r,K===0&&_t(el));wr!==r;)lr.push(wr),is.test(t.charAt(e))?(wr=t.charAt(e),e++):(wr=r,K===0&&_t(el));lr===r?(e=d,d=r):(Pr=d,d=N=(function(m,x,tr){return{type:"full_hex_string",prefix:m,value:tr.join("")}})(N,0,lr))}else e=d,d=r;else e=d,d=r;else e=d,d=r;if(d===r){if(d=e,t.substr(e,1).toLowerCase()==="n"?(N=t.charAt(e),e++):(N=r,K===0&&_t(yf)),N!==r){if(H=e,t.charCodeAt(e)===39?(X="'",e++):(X=r,K===0&&_t(wl)),X!==r){for(lr=[],wr=Tt();wr!==r;)lr.push(wr),wr=Tt();lr===r?(e=H,H=r):(t.charCodeAt(e)===39?(wr="'",e++):(wr=r,K===0&&_t(wl)),wr===r?(e=H,H=r):H=X=[X,lr,wr])}else e=H,H=r;H===r?(e=d,d=r):(Pr=d,d=N=(function(m,x){return{type:"natural_string",value:x[1].join("")}})(0,H))}else e=d,d=r;if(d===r){if(d=e,N=e,t.charCodeAt(e)===39?(H="'",e++):(H=r,K===0&&_t(wl)),H!==r){for(X=[],lr=Tt();lr!==r;)X.push(lr),lr=Tt();X===r?(e=N,N=r):(t.charCodeAt(e)===39?(lr="'",e++):(lr=r,K===0&&_t(wl)),lr===r?(e=N,N=r):N=H=[H,X,lr])}else e=N,N=r;if(N!==r&&(Pr=d,N=(function(m){return{type:"single_quote_string",value:m[1].join("")}})(N)),(d=N)===r){if(d=e,N=e,t.charCodeAt(e)===34?(H='"',e++):(H=r,K===0&&_t(ql)),H!==r){for(X=[],lr=rv();lr!==r;)X.push(lr),lr=rv();X===r?(e=N,N=r):(t.charCodeAt(e)===34?(lr='"',e++):(lr=r,K===0&&_t(ql)),lr===r?(e=N,N=r):N=H=[H,X,lr])}else e=N,N=r;N!==r&&(Pr=d,N=(function(m){return{type:"double_quote_string",value:m[1].join("")}})(N)),d=N}}}}}return d}function rv(){var d;return p0.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(up)),d===r&&(d=Rf())===r&&(xb.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(Zb))),d}function Tt(){var d;return yv.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(Jb)),d===r&&(d=Rf()),d}function Rf(){var d,N,H,X,lr,wr,i,b,m,x;return d=e,t.substr(e,2)==="\\'"?(N="\\'",e+=2):(N=r,K===0&&_t(hv)),N!==r&&(Pr=d,N="\\'"),(d=N)===r&&(d=e,t.substr(e,2)==='\\"'?(N='\\"',e+=2):(N=r,K===0&&_t(h)),N!==r&&(Pr=d,N='\\"'),(d=N)===r&&(d=e,t.substr(e,2)==="\\\\"?(N="\\\\",e+=2):(N=r,K===0&&_t(ss)),N!==r&&(Pr=d,N="\\\\"),(d=N)===r&&(d=e,t.substr(e,2)==="\\/"?(N="\\/",e+=2):(N=r,K===0&&_t(Xl)),N!==r&&(Pr=d,N="\\/"),(d=N)===r&&(d=e,t.substr(e,2)==="\\b"?(N="\\b",e+=2):(N=r,K===0&&_t(d0)),N!==r&&(Pr=d,N="\b"),(d=N)===r&&(d=e,t.substr(e,2)==="\\f"?(N="\\f",e+=2):(N=r,K===0&&_t(Bf)),N!==r&&(Pr=d,N="\f"),(d=N)===r&&(d=e,t.substr(e,2)==="\\n"?(N="\\n",e+=2):(N=r,K===0&&_t(jt)),N!==r&&(Pr=d,N=` +`),(d=N)===r&&(d=e,t.substr(e,2)==="\\r"?(N="\\r",e+=2):(N=r,K===0&&_t(Us)),N!==r&&(Pr=d,N="\r"),(d=N)===r&&(d=e,t.substr(e,2)==="\\t"?(N="\\t",e+=2):(N=r,K===0&&_t(ol)),N!==r&&(Pr=d,N=" "),(d=N)===r&&(d=e,t.substr(e,2)==="\\u"?(N="\\u",e+=2):(N=r,K===0&&_t(sb)),N!==r&&(H=sf())!==r&&(X=sf())!==r&&(lr=sf())!==r&&(wr=sf())!==r?(Pr=d,i=H,b=X,m=lr,x=wr,d=N=String.fromCharCode(parseInt("0x"+i+b+m+x))):(e=d,d=r),d===r&&(d=e,t.charCodeAt(e)===92?(N="\\",e++):(N=r,K===0&&_t(eb)),N!==r&&(Pr=d,N="\\"),(d=N)===r&&(d=e,t.substr(e,2)==="''"?(N="''",e+=2):(N=r,K===0&&_t(p)),N!==r&&(Pr=d,N="''"),(d=N)===r&&(d=e,t.substr(e,2)==='""'?(N='""',e+=2):(N=r,K===0&&_t(ns)),N!==r&&(Pr=d,N='""'),(d=N)===r&&(d=e,t.substr(e,2)==="``"?(N="``",e+=2):(N=r,K===0&&_t(Vl)),N!==r&&(Pr=d,N="``"),d=N))))))))))))),d}function ga(){var d,N,H;return d=e,(N=(function(){var X=e,lr,wr,i;return(lr=_i())!==r&&(wr=Nc())!==r&&(i=Ai())!==r?(Pr=X,X=lr={type:"bigint",value:lr+wr+i}):(e=X,X=r),X===r&&(X=e,(lr=_i())!==r&&(wr=Nc())!==r?(Pr=X,lr=(function(b,m){let x=b+m;if(xr(b))return{type:"bigint",value:x};let tr=m.length>=1?m.length-1:0;return parseFloat(x).toFixed(tr)})(lr,wr),X=lr):(e=X,X=r),X===r&&(X=e,(lr=_i())!==r&&(wr=Ai())!==r?(Pr=X,lr=(function(b,m){return{type:"bigint",value:b+m}})(lr,wr),X=lr):(e=X,X=r),X===r&&(X=e,(lr=_i())!==r&&(Pr=X,lr=(function(b){return xr(b)?{type:"bigint",value:b}:parseFloat(b)})(lr)),X=lr))),X})())!==r&&(Pr=d,N=(H=N)&&H.type==="bigint"?H:{type:"number",value:H}),d=N}function _i(){var d,N,H;return(d=tc())===r&&(d=Yf())===r&&(d=e,t.charCodeAt(e)===45?(N="-",e++):(N=r,K===0&&_t(_b)),N===r&&(t.charCodeAt(e)===43?(N="+",e++):(N=r,K===0&&_t(Qf))),N!==r&&(H=tc())!==r?(Pr=d,d=N+=H):(e=d,d=r),d===r&&(d=e,t.charCodeAt(e)===45?(N="-",e++):(N=r,K===0&&_t(_b)),N===r&&(t.charCodeAt(e)===43?(N="+",e++):(N=r,K===0&&_t(Qf))),N!==r&&(H=Yf())!==r?(Pr=d,d=N=(function(X,lr){return X+lr})(N,H)):(e=d,d=r))),d}function Nc(){var d,N,H,X;return d=e,t.charCodeAt(e)===46?(N=".",e++):(N=r,K===0&&_t(Ft)),N===r?(e=d,d=r):((H=tc())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(X=H)?"."+X:"")),d}function Ai(){var d,N,H;return d=e,(N=(function(){var X=e,lr,wr;Ta.test(t.charAt(e))?(lr=t.charAt(e),e++):(lr=r,K===0&&_t(x0)),lr===r?(e=X,X=r):(Zn.test(t.charAt(e))?(wr=t.charAt(e),e++):(wr=r,K===0&&_t(kb)),wr===r&&(wr=null),wr===r?(e=X,X=r):(Pr=X,X=lr+=(i=wr)===null?"":i));var i;return X})())!==r&&(H=tc())!==r?(Pr=d,d=N+=H):(e=d,d=r),d}function tc(){var d,N,H;if(d=e,N=[],(H=Yf())!==r)for(;H!==r;)N.push(H),H=Yf();else N=r;return N!==r&&(Pr=d,N=N.join("")),d=N}function Yf(){var d;return oc.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(uc)),d}function sf(){var d;return xs.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(Li)),d}function mv(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="default"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Oi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function pc(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="to"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(zi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Si(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="show"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(zl)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function _c(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="drop"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Vf)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DROP")),d}function Tv(){var d,N,H,X;return d=e,t.substr(e,5).toLowerCase()==="alter"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(hs)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function ef(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="select"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Yi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function ip(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="update"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(hl)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Uu(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="create"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(L0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Sc(){var d,N,H,X;return d=e,t.substr(e,9).toLowerCase()==="temporary"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(Bn)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function of(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="delete"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Qb)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Xc(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="insert"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(C0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function qa(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="replace"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(k0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function qo(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="rename"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(M0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Oc(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="ignore"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Wi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Yo(){var d,N,H,X;return d=e,t.substr(e,9).toLowerCase()==="partition"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(Oa)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="PARTITION")),d}function Xo(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="into"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Uv)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function $l(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="from"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(ti)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function m0(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="set"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(W0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="SET")),d}function G0(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="as"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(mi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function va(){var d,N,H,X;return d=e,t.substr(e,5).toLowerCase()==="table"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t($f)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="TABLE")),d}function Nf(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="trigger"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(We)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="TRIGGER")),d}function Xu(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="tables"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(ob)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="TABLES")),d}function ot(){var d,N,H,X;return d=e,t.substr(e,8).toLowerCase()==="database"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(V0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DATABASE")),d}function Xv(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="schema"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(hf)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="SCHEMA")),d}function R(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="on"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(Ef)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function B(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="join"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Ye)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function cr(){var d,N,H,X;return d=e,t.substr(e,5).toLowerCase()==="outer"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(mf)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Er(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="values"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(D0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function vt(){var d,N,H,X;return d=e,t.substr(e,5).toLowerCase()==="using"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Ac)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function it(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="with"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Ps)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Et(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="go"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(Tc)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="GO")),d}function $t(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="by"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(pe)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function en(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="asc"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(Ic)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="ASC")),d}function hn(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="desc"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(ab)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DESC")),d}function ds(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="all"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(ml)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="ALL")),d}function Ns(){var d,N,H,X;return d=e,t.substr(e,8).toLowerCase()==="distinct"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(Ul)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DISTINCT")),d}function Fs(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="between"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(aa)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="BETWEEN")),d}function ue(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="in"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(qb)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="IN")),d}function ee(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="is"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(Tf)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="IS")),d}function ie(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="like"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(If)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="LIKE")),d}function ro(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="exists"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Q0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="EXISTS")),d}function $e(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="not"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(Y0)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="NOT")),d}function Gs(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="and"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(ib)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="AND")),d}function iu(){var d,N,H,X;return d=e,t.substr(e,2).toLowerCase()==="or"?(N=t.substr(e,2),e+=2):(N=r,K===0&&_t(fa)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="OR")),d}function Oo(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="extract"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Zl)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="EXTRACT")),d}function wu(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="case"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(cc)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Ea(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="end"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(gi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):d=N=[N,H]),d}function Do(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="cast"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(xa)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="CAST")),d}function Ka(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="bit"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(or)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="BIT")),d}function dc(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="numeric"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Il)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="NUMERIC")),d}function _f(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="decimal"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Wc)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DECIMAL")),d}function La(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="int"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(fc)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="INT")),d}function Db(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="integer"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(Ji)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="INTEGER")),d}function Wf(){var d,N,H,X;return d=e,t.substr(e,8).toLowerCase()==="smallint"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(qu)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="SMALLINT")),d}function Wo(){var d,N,H,X;return d=e,t.substr(e,9).toLowerCase()==="mediumint"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(Se)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="MEDIUMINT")),d}function $b(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="tinyint"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(tf)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="TINYINT")),d}function pu(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="bigint"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Jl)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="BIGINT")),d}function fu(){var d,N,H,X;return d=e,t.substr(e,5).toLowerCase()==="float"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Ba)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="FLOAT")),d}function Vu(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="double"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Qi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DOUBLE")),d}function ra(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="date"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Ls)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DATE")),d}function fd(){var d,N,H,X;return d=e,t.substr(e,8).toLowerCase()==="datetime"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(ya)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="DATETIME")),d}function w(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="rows"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(Tb)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="ROWS")),d}function G(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="time"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(qv)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="TIME")),d}function z(){var d,N,H,X;return d=e,t.substr(e,9).toLowerCase()==="timestamp"?(N=t.substr(e,9),e+=9):(N=r,K===0&&_t(l)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="TIMESTAMP")),d}function g(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="user"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(dn)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="USER")),d}function Gr(){var d,N,H,X;return d=e,t.substr(e,8).toLowerCase()==="interval"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(vi)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="INTERVAL")),d}function Vr(){var d,N,H,X;return d=e,t.substr(e,17).toLowerCase()==="current_timestamp"?(N=t.substr(e,17),e+=17):(N=r,K===0&&_t(Wn)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="CURRENT_TIMESTAMP")),d}function Qr(){var d,N,H,X;return d=e,t.substr(e,12).toLowerCase()==="current_user"?(N=t.substr(e,12),e+=12):(N=r,K===0&&_t(Eu)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="CURRENT_USER")),d}function Pt(){var d,N,H,X;return d=e,t.substr(e,4).toLowerCase()==="view"?(N=t.substr(e,4),e+=4):(N=r,K===0&&_t(cp)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="VIEW")),d}function wn(){var d;return t.charCodeAt(e)===64?(d="@",e++):(d=r,K===0&&_t(Ue)),d}function Rn(){var d;return(d=(function(){var N;return t.substr(e,2)==="@@"?(N="@@",e+=2):(N=r,K===0&&_t(lb)),N})())===r&&(d=wn())===r&&(d=(function(){var N;return t.charCodeAt(e)===36?(N="$",e++):(N=r,K===0&&_t(Mi)),N})()),d}function An(){var d;return t.substr(e,2)===":="?(d=":=",e+=2):(d=r,K===0&&_t(Ha)),d}function Mn(){var d;return t.charCodeAt(e)===61?(d="=",e++):(d=r,K===0&&_t(v0)),d}function as(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="add"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(Oe)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="ADD")),d}function cs(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="column"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(Di)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="COLUMN")),d}function _s(){var d,N,H,X;return d=e,t.substr(e,5).toLowerCase()==="index"?(N=t.substr(e,5),e+=5):(N=r,K===0&&_t(Eb)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="INDEX")),d}function we(){var d,N,H,X;return d=e,t.substr(e,3).toLowerCase()==="key"?(N=t.substr(e,3),e+=3):(N=r,K===0&&_t(ce)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="KEY")),d}function Pe(){var d,N,H,X;return d=e,t.substr(e,8).toLowerCase()==="fulltext"?(N=t.substr(e,8),e+=8):(N=r,K===0&&_t(ni)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="FULLTEXT")),d}function jr(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="spatial"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t(ui)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="SPATIAL")),d}function oo(){var d,N,H,X;return d=e,t.substr(e,6).toLowerCase()==="unique"?(N=t.substr(e,6),e+=6):(N=r,K===0&&_t(te)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="UNIQUE")),d}function Bo(){var d,N,H,X;return d=e,t.substr(e,7).toLowerCase()==="comment"?(N=t.substr(e,7),e+=7):(N=r,K===0&&_t($i)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="COMMENT")),d}function No(){var d,N,H,X;return d=e,t.substr(e,10).toLowerCase()==="constraint"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(sl)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="CONSTRAINT")),d}function lu(){var d,N,H,X;return d=e,t.substr(e,10).toLowerCase()==="references"?(N=t.substr(e,10),e+=10):(N=r,K===0&&_t(ai)),N===r?(e=d,d=r):(H=e,K++,X=le(),K--,X===r?H=void 0:(e=H,H=r),H===r?(e=d,d=r):(Pr=d,d=N="REFERENCES")),d}function ru(){var d;return t.charCodeAt(e)===46?(d=".",e++):(d=r,K===0&&_t(Ft)),d}function Me(){var d;return t.charCodeAt(e)===44?(d=",",e++):(d=r,K===0&&_t(ii)),d}function _u(){var d;return t.charCodeAt(e)===42?(d="*",e++):(d=r,K===0&&_t(Ap)),d}function mo(){var d;return t.charCodeAt(e)===40?(d="(",e++):(d=r,K===0&&_t(Op)),d}function ho(){var d;return t.charCodeAt(e)===41?(d=")",e++):(d=r,K===0&&_t(fp)),d}function Mo(){var d;return t.charCodeAt(e)===59?(d=";",e++):(d=r,K===0&&_t(Zt)),d}function Fo(){var d;return t.substr(e,2)==="->"?(d="->",e+=2):(d=r,K===0&&_t(ba)),d}function Gu(){var d;return t.substr(e,3)==="->>"?(d="->>",e+=3):(d=r,K===0&&_t(bu)),d}function Ko(){var d;return(d=(function(){var N;return t.substr(e,2)==="||"?(N="||",e+=2):(N=r,K===0&&_t($p)),N})())===r&&(d=(function(){var N;return t.substr(e,2)==="&&"?(N="&&",e+=2):(N=r,K===0&&_t(Ht)),N})())===r&&(d=(function(){var N,H,X,lr;return N=e,t.substr(e,3).toLowerCase()==="xor"?(H=t.substr(e,3),e+=3):(H=r,K===0&&_t(rt)),H===r?(e=N,N=r):(X=e,K++,lr=le(),K--,lr===r?X=void 0:(e=X,X=r),X===r?(e=N,N=r):(Pr=N,N=H="XOR")),N})()),d}function Wr(){var d,N;for(d=[],(N=F0())===r&&(N=Lc());N!==r;)d.push(N),(N=F0())===r&&(N=Lc());return d}function Aa(){var d,N;if(d=[],(N=F0())===r&&(N=Lc()),N!==r)for(;N!==r;)d.push(N),(N=F0())===r&&(N=Lc());else d=r;return d}function Lc(){var d;return(d=(function(){var N=e,H,X,lr,wr,i;if(t.substr(e,2)==="/*"?(H="/*",e+=2):(H=r,K===0&&_t(k)),H!==r){for(X=[],lr=e,wr=e,K++,t.substr(e,2)==="*/"?(i="*/",e+=2):(i=r,K===0&&_t(Lr)),K--,i===r?wr=void 0:(e=wr,wr=r),wr!==r&&(i=Pi())!==r?lr=wr=[wr,i]:(e=lr,lr=r);lr!==r;)X.push(lr),lr=e,wr=e,K++,t.substr(e,2)==="*/"?(i="*/",e+=2):(i=r,K===0&&_t(Lr)),K--,i===r?wr=void 0:(e=wr,wr=r),wr!==r&&(i=Pi())!==r?lr=wr=[wr,i]:(e=lr,lr=r);X===r?(e=N,N=r):(t.substr(e,2)==="*/"?(lr="*/",e+=2):(lr=r,K===0&&_t(Lr)),lr===r?(e=N,N=r):N=H=[H,X,lr])}else e=N,N=r;return N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i;if(t.substr(e,2)==="--"?(H="--",e+=2):(H=r,K===0&&_t(Or)),H!==r){for(X=[],lr=e,wr=e,K++,i=Zu(),K--,i===r?wr=void 0:(e=wr,wr=r),wr!==r&&(i=Pi())!==r?lr=wr=[wr,i]:(e=lr,lr=r);lr!==r;)X.push(lr),lr=e,wr=e,K++,i=Zu(),K--,i===r?wr=void 0:(e=wr,wr=r),wr!==r&&(i=Pi())!==r?lr=wr=[wr,i]:(e=lr,lr=r);X===r?(e=N,N=r):N=H=[H,X]}else e=N,N=r;return N})())===r&&(d=(function(){var N=e,H,X,lr,wr,i;if(t.charCodeAt(e)===35?(H="#",e++):(H=r,K===0&&_t(Fr)),H!==r){for(X=[],lr=e,wr=e,K++,i=Zu(),K--,i===r?wr=void 0:(e=wr,wr=r),wr!==r&&(i=Pi())!==r?lr=wr=[wr,i]:(e=lr,lr=r);lr!==r;)X.push(lr),lr=e,wr=e,K++,i=Zu(),K--,i===r?wr=void 0:(e=wr,wr=r),wr!==r&&(i=Pi())!==r?lr=wr=[wr,i]:(e=lr,lr=r);X===r?(e=N,N=r):N=H=[H,X]}else e=N,N=r;return N})()),d}function Fu(){var d,N,H,X;return d=e,(N=Bo())!==r&&Wr()!==r?((H=Mn())===r&&(H=null),H!==r&&Wr()!==r&&(X=Ei())!==r?(Pr=d,d=N=(function(lr,wr,i){return{type:lr.toLowerCase(),keyword:lr.toLowerCase(),symbol:wr,value:i}})(N,H,X)):(e=d,d=r)):(e=d,d=r),d}function Pi(){var d;return t.length>e?(d=t.charAt(e),e++):(d=r,K===0&&_t(dr)),d}function F0(){var d;return It.test(t.charAt(e))?(d=t.charAt(e),e++):(d=r,K===0&&_t(Dt)),d}function Zu(){var d,N;if((d=(function(){var H=e,X;return K++,t.length>e?(X=t.charAt(e),e++):(X=r,K===0&&_t(dr)),K--,X===r?H=void 0:(e=H,H=r),H})())===r)if(d=[],Hc.test(t.charAt(e))?(N=t.charAt(e),e++):(N=r,K===0&&_t(Ub)),N!==r)for(;N!==r;)d.push(N),Hc.test(t.charAt(e))?(N=t.charAt(e),e++):(N=r,K===0&&_t(Ub));else d=r;return d}function Hr(){var d,N;return d=e,Pr=e,In=[],r!==void 0&&Wr()!==r?((N=pi())===r&&(N=(function(){var H=e,X;return(function(){var lr;return t.substr(e,6).toLowerCase()==="return"?(lr=t.substr(e,6),e+=6):(lr=r,K===0&&_t(ha)),lr})()!==r&&Wr()!==r&&(X=L())!==r?(Pr=H,H={type:"return",expr:X}):(e=H,H=r),H})()),N===r?(e=d,d=r):(Pr=d,d={stmt:N,vars:In})):(e=d,d=r),d}function pi(){var d,N,H,X;return d=e,(N=nn())===r&&(N=On()),N!==r&&Wr()!==r?((H=An())===r&&(H=Mn()),H!==r&&Wr()!==r&&(X=L())!==r?(Pr=d,d=N=Ln(N,H,X)):(e=d,d=r)):(e=d,d=r),d}function L(){var d;return(d=De())===r&&(d=(function(){var N=e,H,X,lr,wr;return(H=nn())!==r&&Wr()!==r&&(X=so())!==r&&Wr()!==r&&(lr=nn())!==r&&Wr()!==r&&(wr=Mu())!==r?(Pr=N,N=H={type:"join",ltable:H,rtable:lr,op:X,on:wr}):(e=N,N=r),N})())===r&&(d=M())===r&&(d=(function(){var N=e,H;return(function(){var X;return t.charCodeAt(e)===91?(X="[",e++):(X=r,K===0&&_t(nt)),X})()!==r&&Wr()!==r&&(H=Mt())!==r&&Wr()!==r&&(function(){var X;return t.charCodeAt(e)===93?(X="]",e++):(X=r,K===0&&_t(o)),X})()!==r?(Pr=N,N={type:"array",value:H}):(e=N,N=r),N})()),d}function M(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=q())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=js())!==r&&(i=Wr())!==r&&(b=q())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=js())!==r&&(i=Wr())!==r&&(b=q())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=Rb(N,H))}else e=d,d=r;return d}function q(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=rr())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=bo())!==r&&(i=Wr())!==r&&(b=rr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=bo())!==r&&(i=Wr())!==r&&(b=rr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=Rb(N,H))}else e=d,d=r;return d}function rr(){var d,N,H;return(d=Xr())===r&&(d=vl())===r&&(d=nn())===r&&(d=Je())===r&&(d=Jr())===r&&(d=yi())===r&&(d=e,mo()!==r&&Wr()!==r&&(N=M())!==r&&Wr()!==r&&ho()!==r?(Pr=d,(H=N).parentheses=!0,d=H):(e=d,d=r)),d}function Dr(){var d,N,H,X,lr,wr,i;return d=e,(N=Go())===r&&(N=Jo()),N===r?(e=d,d=r):(H=e,(X=Wr())!==r&&(lr=ru())!==r&&(wr=Wr())!==r?((i=Go())===r&&(i=Jo()),i===r?(e=H,H=r):H=X=[X,lr,wr,i]):(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(b,m){let x={name:[b]};return m!==null&&(x.schema=b,x.name=[m[3]]),x})(N,H))),d}function Xr(){var d,N,H;return d=e,(N=Dr())!==r&&Wr()!==r&&mo()!==r&&Wr()!==r?((H=Mt())===r&&(H=null),H!==r&&Wr()!==r&&ho()!==r?(Pr=d,d=N=(function(X,lr){return{type:"function",name:X,args:{type:"expr_list",value:lr},...U()}})(N,H)):(e=d,d=r)):(e=d,d=r),d}function Jr(){var d,N;return d=e,(N=Dr())!==r&&(Pr=d,N=(function(H){return{type:"function",name:H,args:null,...U()}})(N)),d=N}function Mt(){var d,N,H,X,lr,wr,i,b;if(d=e,(N=rr())!==r){for(H=[],X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=rr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);X!==r;)H.push(X),X=e,(lr=Wr())!==r&&(wr=Me())!==r&&(i=Wr())!==r&&(b=rr())!==r?X=lr=[lr,wr,i,b]:(e=X,X=r);H===r?(e=d,d=r):(Pr=d,d=N=zn(N,H))}else e=d,d=r;return d}function nn(){var d,N,H,X,lr;return d=e,(N=Rn())!==r&&(H=On())!==r?(Pr=d,X=N,lr=H,d=N={type:"var",...lr,prefix:X}):(e=d,d=r),d}function On(){var d,N,H;return d=e,(N=cu())!==r&&(H=(function(){var X=e,lr=[],wr=e,i,b;for(t.charCodeAt(e)===46?(i=".",e++):(i=r,K===0&&_t(Ft)),i!==r&&(b=cu())!==r?wr=i=[i,b]:(e=wr,wr=r);wr!==r;)lr.push(wr),wr=e,t.charCodeAt(e)===46?(i=".",e++):(i=r,K===0&&_t(Ft)),i!==r&&(b=cu())!==r?wr=i=[i,b]:(e=wr,wr=r);return lr!==r&&(Pr=X,lr=(function(m){let x=[];for(let tr=0;tr<m.length;tr++)x.push(m[tr][1]);return x})(lr)),X=lr})())!==r?(Pr=d,d=N=(function(X,lr){return In.push(X),{type:"var",name:X,members:lr,prefix:null}})(N,H)):(e=d,d=r),d===r&&(d=e,(N=ga())!==r&&(Pr=d,N={type:"var",name:N.value,members:[],quoted:null,prefix:null}),d=N),d}function fr(){var d;return(d=Es())===r&&(d=(function(){var N=e,H,X,lr,wr,i,b,m,x,tr,Cr,gr;if((H=dc())===r&&(H=_f())===r&&(H=La())===r&&(H=Db())===r&&(H=Wf())===r&&(H=Wo())===r&&(H=$b())===r&&(H=pu())===r&&(H=fu())===r&&(H=Vu())===r&&(H=Ka()),H!==r)if((X=Wr())!==r)if((lr=mo())!==r)if((wr=Wr())!==r){if(i=[],oc.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(uc)),b!==r)for(;b!==r;)i.push(b),oc.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(uc));else i=r;if(i!==r)if((b=Wr())!==r){if(m=e,(x=Me())!==r)if((tr=Wr())!==r){if(Cr=[],oc.test(t.charAt(e))?(gr=t.charAt(e),e++):(gr=r,K===0&&_t(uc)),gr!==r)for(;gr!==r;)Cr.push(gr),oc.test(t.charAt(e))?(gr=t.charAt(e),e++):(gr=r,K===0&&_t(uc));else Cr=r;Cr===r?(e=m,m=r):m=x=[x,tr,Cr]}else e=m,m=r;else e=m,m=r;m===r&&(m=null),m!==r&&(x=Wr())!==r&&(tr=ho())!==r&&(Cr=Wr())!==r?((gr=ls())===r&&(gr=null),gr===r?(e=N,N=r):(Pr=N,Yr=m,Rt=gr,H={dataType:H,length:parseInt(i.join(""),10),scale:Yr&&parseInt(Yr[2].join(""),10),parentheses:!0,suffix:Rt},N=H)):(e=N,N=r)}else e=N,N=r;else e=N,N=r}else e=N,N=r;else e=N,N=r;else e=N,N=r;else e=N,N=r;var Yr,Rt;if(N===r){if(N=e,(H=dc())===r&&(H=_f())===r&&(H=La())===r&&(H=Db())===r&&(H=Wf())===r&&(H=Wo())===r&&(H=$b())===r&&(H=pu())===r&&(H=fu())===r&&(H=Vu())===r&&(H=Ka()),H!==r){if(X=[],oc.test(t.charAt(e))?(lr=t.charAt(e),e++):(lr=r,K===0&&_t(uc)),lr!==r)for(;lr!==r;)X.push(lr),oc.test(t.charAt(e))?(lr=t.charAt(e),e++):(lr=r,K===0&&_t(uc));else X=r;X!==r&&(lr=Wr())!==r?((wr=ls())===r&&(wr=null),wr===r?(e=N,N=r):(Pr=N,H=(function(gt,Gt,rn){return{dataType:gt,length:parseInt(Gt.join(""),10),suffix:rn}})(H,X,wr),N=H)):(e=N,N=r)}else e=N,N=r;N===r&&(N=e,(H=dc())===r&&(H=_f())===r&&(H=La())===r&&(H=Db())===r&&(H=Wf())===r&&(H=Wo())===r&&(H=$b())===r&&(H=pu())===r&&(H=fu())===r&&(H=Vu())===r&&(H=Ka()),H!==r&&(X=Wr())!==r?((lr=ls())===r&&(lr=null),lr!==r&&(wr=Wr())!==r?(Pr=N,H=(function(gt,Gt){return{dataType:gt,suffix:Gt}})(H,lr),N=H):(e=N,N=r)):(e=N,N=r))}return N})())===r&&(d=ws())===r&&(d=(function(){var N=e,H;return(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,4).toLowerCase()==="json"?(lr=t.substr(e,4),e+=4):(lr=r,K===0&&_t(Ri)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="JSON")),X})())!==r&&(Pr=N,H={dataType:H}),N=H})())===r&&(d=(function(){var N=e,H,X;return(H=(function(){var lr,wr,i,b;return lr=e,t.substr(e,8).toLowerCase()==="tinytext"?(wr=t.substr(e,8),e+=8):(wr=r,K===0&&_t(Qu)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="TINYTEXT")),lr})())===r&&(H=(function(){var lr,wr,i,b;return lr=e,t.substr(e,4).toLowerCase()==="text"?(wr=t.substr(e,4),e+=4):(wr=r,K===0&&_t(P0)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="TEXT")),lr})())===r&&(H=(function(){var lr,wr,i,b;return lr=e,t.substr(e,10).toLowerCase()==="mediumtext"?(wr=t.substr(e,10),e+=10):(wr=r,K===0&&_t(gc)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="MEDIUMTEXT")),lr})())===r&&(H=(function(){var lr,wr,i,b;return lr=e,t.substr(e,8).toLowerCase()==="longtext"?(wr=t.substr(e,8),e+=8):(wr=r,K===0&&_t(al)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="LONGTEXT")),lr})()),H===r?(e=N,N=r):((X=os())===r&&(X=null),X===r?(e=N,N=r):(Pr=N,H=Tr(H,X),N=H)),N})())===r&&(d=(function(){var N=e,H,X;(H=(function(){var i,b,m,x;return i=e,t.substr(e,4).toLowerCase()==="enum"?(b=t.substr(e,4),e+=4):(b=r,K===0&&_t(qc)),b===r?(e=i,i=r):(m=e,K++,x=le(),K--,x===r?m=void 0:(e=m,m=r),m===r?(e=i,i=r):(Pr=i,i=b="ENUM")),i})())===r&&(H=m0()),H!==r&&Wr()!==r&&(X=Jn())!==r?(Pr=N,lr=H,(wr=X).parentheses=!0,N=H={dataType:lr,expr:wr}):(e=N,N=r);var lr,wr;return N})())===r&&(d=(function(){var N=e,H;return t.substr(e,7).toLowerCase()==="boolean"?(H=t.substr(e,7),e+=7):(H=r,K===0&&_t(Un)),H!==r&&(Pr=N,H={dataType:"BOOLEAN"}),N=H})())===r&&(d=(function(){var N=e,H,X;return(H=(function(){var lr,wr,i,b;return lr=e,t.substr(e,6).toLowerCase()==="binary"?(wr=t.substr(e,6),e+=6):(wr=r,K===0&&_t(Mf)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="BINARY")),lr})())===r&&(H=(function(){var lr,wr,i,b;return lr=e,t.substr(e,9).toLowerCase()==="varbinary"?(wr=t.substr(e,9),e+=9):(wr=r,K===0&&_t(Ra)),wr===r?(e=lr,lr=r):(i=e,K++,b=le(),K--,b===r?i=void 0:(e=i,i=r),i===r?(e=lr,lr=r):(Pr=lr,lr=wr="VARBINARY")),lr})()),H!==r&&Wr()!==r?((X=os())===r&&(X=null),X===r?(e=N,N=r):(Pr=N,H=Tr(H,X),N=H)):(e=N,N=r),N})())===r&&(d=(function(){var N=e,H;return t.substr(e,4).toLowerCase()==="blob"?(H=t.substr(e,4),e+=4):(H=r,K===0&&_t(u)),H===r&&(t.substr(e,8).toLowerCase()==="tinyblob"?(H=t.substr(e,8),e+=8):(H=r,K===0&&_t(yt)),H===r&&(t.substr(e,10).toLowerCase()==="mediumblob"?(H=t.substr(e,10),e+=10):(H=r,K===0&&_t(Y)),H===r&&(t.substr(e,8).toLowerCase()==="longblob"?(H=t.substr(e,8),e+=8):(H=r,K===0&&_t(Q))))),H!==r&&(Pr=N,H={dataType:H.toUpperCase()}),N=H})())===r&&(d=(function(){var N=e,H;return(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,8).toLowerCase()==="geometry"?(lr=t.substr(e,8),e+=8):(lr=r,K===0&&_t(oi)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="GEOMETRY")),X})())===r&&(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,5).toLowerCase()==="point"?(lr=t.substr(e,5),e+=5):(lr=r,K===0&&_t(yn)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="POINT")),X})())===r&&(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,10).toLowerCase()==="linestring"?(lr=t.substr(e,10),e+=10):(lr=r,K===0&&_t(ka)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="LINESTRING")),X})())===r&&(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,7).toLowerCase()==="polygon"?(lr=t.substr(e,7),e+=7):(lr=r,K===0&&_t(Ua)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="POLYGON")),X})())===r&&(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,10).toLowerCase()==="multipoint"?(lr=t.substr(e,10),e+=10):(lr=r,K===0&&_t(Ou)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="MULTIPOINT")),X})())===r&&(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,15).toLowerCase()==="multilinestring"?(lr=t.substr(e,15),e+=15):(lr=r,K===0&&_t(il)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="MULTILINESTRING")),X})())===r&&(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,12).toLowerCase()==="multipolygon"?(lr=t.substr(e,12),e+=12):(lr=r,K===0&&_t(zu)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="MULTIPOLYGON")),X})())===r&&(H=(function(){var X,lr,wr,i;return X=e,t.substr(e,18).toLowerCase()==="geometrycollection"?(lr=t.substr(e,18),e+=18):(lr=r,K===0&&_t(Yu)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="GEOMETRYCOLLECTION")),X})()),H!==r&&(Pr=N,H={dataType:H}),N=H})()),d}function os(){var d,N,H,X,lr;if(d=e,mo()!==r)if(Wr()!==r){if(N=[],oc.test(t.charAt(e))?(H=t.charAt(e),e++):(H=r,K===0&&_t(uc)),H!==r)for(;H!==r;)N.push(H),oc.test(t.charAt(e))?(H=t.charAt(e),e++):(H=r,K===0&&_t(uc));else N=r;N!==r&&(H=Wr())!==r&&ho()!==r&&Wr()!==r?((X=ls())===r&&(X=null),X===r?(e=d,d=r):(Pr=d,lr=X,d={length:parseInt(N.join(""),10),parentheses:!0,suffix:lr})):(e=d,d=r)}else e=d,d=r;else e=d,d=r;return d}function Es(){var d,N,H,X,lr,wr,i,b,m,x,tr;if(d=e,(N=(function(){var Cr,gr,Yr,Rt;return Cr=e,t.substr(e,4).toLowerCase()==="char"?(gr=t.substr(e,4),e+=4):(gr=r,K===0&&_t(Nt)),gr===r?(e=Cr,Cr=r):(Yr=e,K++,Rt=le(),K--,Rt===r?Yr=void 0:(e=Yr,Yr=r),Yr===r?(e=Cr,Cr=r):(Pr=Cr,Cr=gr="CHAR")),Cr})())===r&&(N=(function(){var Cr,gr,Yr,Rt;return Cr=e,t.substr(e,7).toLowerCase()==="varchar"?(gr=t.substr(e,7),e+=7):(gr=r,K===0&&_t(ju)),gr===r?(e=Cr,Cr=r):(Yr=e,K++,Rt=le(),K--,Rt===r?Yr=void 0:(e=Yr,Yr=r),Yr===r?(e=Cr,Cr=r):(Pr=Cr,Cr=gr="VARCHAR")),Cr})()),N!==r){if(H=e,(X=Wr())!==r)if((lr=mo())!==r)if((wr=Wr())!==r){if(i=[],oc.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(uc)),b!==r)for(;b!==r;)i.push(b),oc.test(t.charAt(e))?(b=t.charAt(e),e++):(b=r,K===0&&_t(uc));else i=r;i!==r&&(b=Wr())!==r&&(m=ho())!==r&&(x=Wr())!==r?(t.substr(e,5).toLowerCase()==="array"?(tr=t.substr(e,5),e+=5):(tr=r,K===0&&_t(P)),tr===r&&(tr=null),tr===r?(e=H,H=r):H=X=[X,lr,wr,i,b,m,x,tr]):(e=H,H=r)}else e=H,H=r;else e=H,H=r;else e=H,H=r;H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(Cr,gr){let Yr={dataType:Cr};return gr&&(Yr.length=parseInt(gr[3].join(""),10),Yr.parentheses=!0,Yr.suffix=gr[7]&&["ARRAY"]),Yr})(N,H))}else e=d,d=r;return d}function ls(){var d,N,H;return d=e,(N=Du())===r&&(N=null),N!==r&&Wr()!==r?((H=(function(){var X,lr,wr,i;return X=e,t.substr(e,8).toLowerCase()==="zerofill"?(lr=t.substr(e,8),e+=8):(lr=r,K===0&&_t(qi)),lr===r?(e=X,X=r):(wr=e,K++,i=le(),K--,i===r?wr=void 0:(e=wr,wr=r),wr===r?(e=X,X=r):(Pr=X,X=lr="ZEROFILL")),X})())===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(X,lr){let wr=[];return X&&wr.push(X),lr&&wr.push(lr),wr})(N,H))):(e=d,d=r),d}function ws(){var d,N,H,X,lr,wr,i,b,m,x,tr;return d=e,(N=ra())===r&&(N=fd())===r&&(N=G())===r&&(N=z())===r&&(N=(function(){var Cr,gr,Yr,Rt;return Cr=e,t.substr(e,4).toLowerCase()==="year"?(gr=t.substr(e,4),e+=4):(gr=r,K===0&&_t(tb)),gr===r?(e=Cr,Cr=r):(Yr=e,K++,Rt=le(),K--,Rt===r?Yr=void 0:(e=Yr,Yr=r),Yr===r?(e=Cr,Cr=r):(Pr=Cr,Cr=gr="YEAR")),Cr})()),N===r?(e=d,d=r):(H=e,(X=Wr())!==r&&(lr=mo())!==r&&(wr=Wr())!==r?(hr.test(t.charAt(e))?(i=t.charAt(e),e++):(i=r,K===0&&_t(ht)),i!==r&&(b=Wr())!==r&&(m=ho())!==r&&(x=Wr())!==r?((tr=ls())===r&&(tr=null),tr===r?(e=H,H=r):H=X=[X,lr,wr,i,b,m,x,tr]):(e=H,H=r)):(e=H,H=r),H===r&&(H=null),H===r?(e=d,d=r):(Pr=d,d=N=(function(Cr,gr){let Yr={dataType:Cr};return gr&&(Yr.length=parseInt(gr[3],10),Yr.parentheses=!0,Yr.suffix=gr[7]),Yr})(N,H))),d}let de={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,ANALYZE:!0,ACCESSIBLE:!0,BEFORE:!0,BETWEEN:!0,BIGINT:!0,BLOB:!0,BOTH:!0,BY:!0,BOOLEAN:!0,CALL:!0,CASCADE:!0,CASE:!0,CHAR:!0,CHECK:!0,COLLATE:!0,CONDITION:!0,CONSTRAINT:!0,CONTINUE:!0,CONVERT:!0,CREATE:!0,CROSS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,CURSOR:!0,DATABASE:!0,DATABASES:!0,DAY_HOUR:!0,DAY_MICROSECOND:!0,DAY_MINUTE:!0,DAY_SECOND:!0,DEC:!0,DECIMAL:!0,DECLARE:!0,DEFAULT:!0,DELAYED:!0,DELETE:!0,DESC:!0,DESCRIBE:!0,DETERMINISTIC:!0,DISTINCT:!0,DISTINCTROW:!0,DIV:!0,DROP:!0,DOUBLE:!0,DUAL:!0,ELSE:!0,EACH:!0,ELSEIF:!0,ENCLOSED:!0,ESCAPED:!0,EXCEPT:!0,EXISTS:!0,EXIT:!0,EXPLAIN:!0,FALSE:!0,FULL:!0,FROM:!0,FETCH:!0,FLOAT:!0,FLOAT4:!0,FLOAT8:!0,FOR:!0,FORCE:!0,FOREIGN:!0,FULLTEXT:!0,FUNCTION:!0,GENERATED:!0,GET:!0,GO:!0,GRANT:!0,GROUP:!0,GROUPING:!0,GROUPS:!0,HAVING:!0,HIGH_PRIORITY:!0,HOUR_MICROSECOND:!0,HOUR_MINUTE:!0,HOUR_SECOND:!0,IGNORE:!0,IN:!0,INNER:!0,INFILE:!0,INOUT:!0,INSENSITIVE:!0,INSERT:!0,INTERSECT:!0,INT:!0,INT1:!0,INT2:!0,INT3:!0,INT4:!0,INT8:!0,INTEGER:!0,INTERVAL:!0,INTO:!0,IO_AFTER_GTIDS:!0,IO_BEFORE_GTIDS:!0,IS:!0,ITERATE:!0,JOIN:!0,JSON_TABLE:!0,KEY:!0,KEYS:!0,KILL:!0,LAG:!0,LAST_VALUE:!0,LATERAL:!0,LEAD:!0,LEADING:!0,LEAVE:!0,LEFT:!0,LIKE:!0,LIMIT:!0,LINEAR:!0,LINES:!0,LOAD:!0,LOCALTIME:!0,LOCALTIMESTAMP:!0,LOCK:!0,LONG:!0,LONGBLOB:!0,LONGTEXT:!0,LOOP:!0,LOW_PRIORITY:!0,MASTER_BIND:!0,MATCH:!0,MAXVALUE:!0,MEDIUMBLOB:!0,MEDIUMINT:!0,MEDIUMTEXT:!0,MIDDLEINT:!0,MINUTE_MICROSECOND:!0,MINUTE_SECOND:!0,MINUS:!0,MOD:!0,MODIFIES:!0,NATURAL:!0,NOT:!0,NO_WRITE_TO_BINLOG:!0,NTH_VALUE:!0,NTILE:!0,NULL:!0,NUMERIC:!0,OF:!0,ON:!0,OPTIMIZE:!0,OPTIMIZER_COSTS:!0,OPTION:!0,OPTIONALLY:!0,OR:!0,ORDER:!0,OUT:!0,OUTER:!0,OUTFILE:!0,OVER:!0,PARTITION:!0,PERCENT_RANK:!0,PRECISION:!0,PRIMARY:!0,PROCEDURE:!0,PURGE:!0,RANGE:!0,RANK:!0,READ:!0,READS:!0,READ_WRITE:!0,REAL:!0,RECURSIVE:!0,REFERENCES:!0,REGEXP:!0,RELEASE:!0,RENAME:!0,REPEAT:!0,REPLACE:!0,REQUIRE:!0,RESIGNAL:!0,RESTRICT:!0,RETURN:!0,REVOKE:!0,RIGHT:!0,RLIKE:!0,ROW:!0,ROWS:!0,ROW_NUMBER:!0,SCHEMA:!0,SCHEMAS:!0,SELECT:!0,SENSITIVE:!0,SEPARATOR:!0,SET:!0,SHOW:!0,SIGNAL:!0,SMALLINT:!0,SPATIAL:!0,SPECIFIC:!0,SQL:!0,SQLEXCEPTION:!0,SQLSTATE:!0,SQLWARNING:!0,SQL_BIG_RESULT:!0,SSL:!0,STARTING:!0,STORED:!0,STRAIGHT_JOIN:!0,TABLE:!0,TERMINATED:!0,THEN:!0,TINYBLOB:!0,TINYINT:!0,TINYTEXT:!0,TO:!0,TRAILING:!0,TRIGGER:!0,TRUE:!0,UNION:!0,UNIQUE:!0,UNLOCK:!0,UNSIGNED:!0,UPDATE:!0,USAGE:!0,USE:!0,USING:!0,UTC_DATE:!0,UTC_TIME:!0,UTC_TIMESTAMP:!0,VALUES:!0,VARBINARY:!0,VARCHAR:!0,VARCHARACTER:!0,VARYING:!0,VIRTUAL:!0,WHEN:!0,WHERE:!0,WHILE:!0,WINDOW:!0,WITH:!0,WRITE:!0,XOR:!0,YEAR_MONTH:!0,ZEROFILL:!0},E={avg:!0,sum:!0,count:!0,convert:!0,max:!0,min:!0,group_concat:!0,std:!0,variance:!0,current_date:!0,current_time:!0,current_timestamp:!0,current_user:!0,user:!0,session_user:!0,system_user:!0};function U(){return Ce.includeLocations?{loc:co(Pr,e)}:{}}function Z(d,N){return{type:"unary_expr",operator:d,expr:N}}function sr(d,N,H){return{type:"binary_expr",operator:d,left:N,right:H,...U()}}function xr(d){let N=To(9007199254740991);return!(To(d)<N)}function Sr(d,N,H=3){let X=[d];for(let lr=0;lr<N.length;lr++)delete N[lr][H].tableList,delete N[lr][H].columnList,X.push(N[lr][H]);return X}function tt(d,N){let H=d;for(let X=0;X<N.length;X++)H=sr(N[X][1],H,N[X][3]);return H}function Ct(d){return ts[d]||d||null}function Xt(d){let N=new Set;for(let H of d.keys()){let X=H.split("::");if(!X){N.add(H);break}X&&X[1]&&(X[1]=Ct(X[1])),N.add(X.join("::"))}return Array.from(N)}function Vt(d){let N=Xt(d);d.clear(),N.forEach(H=>d.add(H))}let In=[],Tn=new Set,jn=new Set,ts={};if((Ie=ge())!==r&&e===t.length)return Ie;throw Ie!==r&&e<t.length&&_t({type:"end"}),Eo(Yn,kn<t.length?t.charAt(kn):null,kn<t.length?co(kn,kn+1):co(kn,kn))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:Yn},ge=Yn,Dn=function(E,U){return Mt(E,U)},Pn=function(E,U){return{...E,order_by:U&&U.toLowerCase()}},Ae=function(E,U){return Mt(E,U,1)},ou=hr("IF",!0),Hs="IDENTIFIED",Uo=hr("IDENTIFIED",!1),Ps=hr("WITH",!0),pe=hr("BY",!0),_o=hr("RANDOM",!0),Gi=hr("PASSWORD",!0),mi=hr("AS",!0),Fi=function(E,U){return Mt(E,U)},T0=hr("role",!0),dl=hr("NONE",!0),Gl=hr("SSL",!0),Fl=hr("X509",!0),nc=hr("CIPHER",!0),xc=hr("ISSUER",!0),I0=hr("SUBJECT",!0),ji=function(E,U){return U.prefix=E.toLowerCase(),U},af=hr("REQUIRE",!0),qf=hr("MAX_QUERIES_PER_HOUR",!0),Uc=hr("MAX_UPDATES_PER_HOUR",!0),wc=hr("MAX_CONNECTIONS_PER_HOUR",!0),Ll=hr("MAX_USER_CONNECTIONS",!0),jl=hr("EXPIRE",!0),Oi=hr("DEFAULT",!0),bb=hr("NEVER",!0),Vi=hr("HISTORY",!0),zc=hr("REUSE",!1),kc=hr("CURRENT",!0),vb=hr("OPTIONAL",!0),Zc=hr("FAILED_LOGIN_ATTEMPTS",!0),nl=hr("PASSWORD_LOCK_TIME",!0),Xf=hr("UNBOUNDED",!0),gl=hr("ACCOUNT",!0),lf=hr("LOCK",!0),Jc=hr("UNLOCK",!0),Qc=hr("ATTRIBUTE",!0),gv=hr("CASCADED",!0),g0=hr("LOCAL",!0),Ki=hr("CHECK",!0),Pb=hr("OPTION",!1),ei=hr("ALGORITHM",!0),pb=hr("UNDEFINED",!0),j0=hr("MERGE",!0),B0=hr("TEMPTABLE",!0),Mc=hr("SQL",!0),Cl=hr("SECURITY",!0),$u=hr("DEFINER",!0),r0=hr("INVOKER",!0),zn=function(E,U){return Mt(E,U)},Ss=hr("AUTO_INCREMENT",!0),te=hr("UNIQUE",!0),ce=hr("KEY",!0),He=hr("PRIMARY",!0),Ue=hr("@",!1),Qe=function(){return Xr("=",{type:"origin",value:"definer"},{type:"function",name:{name:[{type:"default",value:"current_user"}]},args:{type:"expr_list",value:[]}})},uo=hr("BEFORE",!0),Ao=hr("AFTER",!0),Pu=hr("FOR",!0),Ca=hr("EACH",!0),ku=hr("ROW",!0),ca=hr("STATEMENT",!0),na=hr("FOLLOWS",!0),Qa=hr("PRECEDES",!0),cf=hr("COLUMN_FORMAT",!0),ri=hr("FIXED",!0),t0=hr("DYNAMIC",!0),n0=hr("STORAGE",!0),Dc=hr("DISK",!0),s0=hr("MEMORY",!0),Rv=hr("GENERATED",!0),nv=hr("ALWAYS",!0),sv=hr("STORED",!0),ev=hr("VIRTUAL",!0),yc=hr("if",!0),$c=hr("exists",!0),Sf=hr("first",!0),R0=hr("after",!0),Rl=hr("LESS",!0),ff=hr("THAN",!0),Vf=hr("DROP",!0),Vv=hr("TRUNCATE",!0),db=hr("DISCARD",!0),Of=hr("IMPORT",!0),Pc=hr("COALESCE",!0),H0=hr("ANALYZE",!0),bf=hr("TABLESPACE",!0),Lb=hr("FOREIGN",!0),Fa=hr("INSTANT",!0),Kf=hr("INPLACE",!0),Nv=hr("COPY",!0),Gb=hr("SHARED",!0),hc=hr("EXCLUSIVE",!0),Bl=hr("CHANGE",!0),sl=/^[0-9]/,sc=ht([["0","9"]],!1,!1),Y0=hr("PRIMARY KEY",!0),N0=hr("NOT",!0),ov=hr("REPLICATION",!0),Fb=hr("FOREIGN KEY",!0),e0=hr("ENFORCED",!0),Cb=hr("MATCH FULL",!0),_0=hr("MATCH PARTIAL",!0),zf=hr("MATCH SIMPLE",!0),je=hr("RESTRICT",!0),o0=hr("CASCADE",!0),xi=hr("SET NULL",!0),xf=hr("NO ACTION",!0),Zf=hr("SET DEFAULT",!0),W0=hr("CHARACTER",!0),jb=hr("SET",!0),Uf=hr("CHARSET",!0),u0=hr("COLLATE",!0),wb=hr("AVG_ROW_LENGTH",!0),Ui=hr("KEY_BLOCK_SIZE",!0),uv=hr("MAX_ROWS",!0),yb=hr("MIN_ROWS",!0),hb=hr("STATS_SAMPLE_PAGES",!0),Kv=hr("CHECKSUM",!1),Gc=hr("DELAY_KEY_WRITE",!1),_v=/^[01]/,kf=ht(["0","1"],!1,!1),vf=hr("CONNECTION",!0),ki=hr("ENGINE_ATTRIBUTE",!0),Hl=hr("SECONDARY_ENGINE_ATTRIBUTE",!0),Eb=hr("DATA",!0),Bb=hr("INDEX",!0),pa=hr("DIRECTORY",!0),wl=hr("COMPRESSION",!0),Nl=hr("'",!1),Sv=hr("ZLIB",!0),Hb=hr("LZ4",!0),Jf=hr("ENGINE",!0),pf=function(E,U,Z){return{keyword:E.toLowerCase(),symbol:U,value:Z.toUpperCase()}},Yb=hr("ROW_FORMAT",!0),av=hr("COMPRESSED",!0),iv=hr("REDUNDANT",!0),a0=hr("COMPACT",!0),_l=hr("BINARY",!0),Yl=hr("MASTER",!0),Ab=hr("LOGS",!0),Mf=hr("TRIGGERS",!0),Wb=hr("STATUS",!0),Df=hr("PROCESSLIST",!0),mb=hr("PROCEDURE",!0),i0=hr("FUNCTION",!0),ft=hr("BINLOG",!0),tn=hr("EVENTS",!0),_n=hr("COLLATION",!0),En=hr("DATABASES",!0),Os=hr("COLUMNS",!0),gs=hr("INDEXES",!0),Ys=hr("EVENT",!0),Te=hr("GRANTS",!0),ye=function(E,U){return Mt(E,U)},Be=hr("SERIALIZABLE",!0),io=hr("REPEATABLE",!0),Ro=hr("READ",!0),So=hr("COMMITTED",!0),uu=hr("UNCOMMITTED",!0),ko=function(E){return{type:"origin",value:"read "+E.toLowerCase()}},yu=hr("ISOLATION",!0),au=hr("LEVEL",!0),Iu=hr("WRITE",!0),mu=hr("ONLY",!0),Ju=hr("DEFERRABLE",!0),ua=hr("commit",!0),Sa=hr("rollback",!0),ma=hr("begin",!0),Bi=hr("WORK",!0),sa=hr("TRANSACTION",!0),di=hr("start",!0),Hi=hr("transaction",!0),S0=hr("FIELDS",!0),l0=hr("TERMINATED",!0),Ov=hr("OPTIONALLY",!0),lv=hr("ENCLOSED",!0),fi=hr("ESCAPED",!0),Wl=hr("STARTING",!0),ec=hr("LINES",!0),Fc=hr("LOAD",!0),xv=hr("LOW_PRIORITY",!0),lp=hr("CONCURRENT",!0),Uv=hr("INFILE",!0),$f=hr("INTO",!0),Tb=hr("TABLE",!0),cp=hr("ROWS",!0),c0=hr("VIEW",!0),q0=hr("GRANT",!0),df=hr("OPTION",!0),f0=function(E){return{type:"origin",value:Array.isArray(E)?E[0]:E}},b0=hr("ROUTINE",!0),Pf=hr("EXECUTE",!0),Sp=hr("ADMIN",!0),kv=hr("GRANT",!1),Op=hr("PROXY",!1),fp=hr("(",!1),oc=hr(")",!1),uc=hr("IN",!0),qb=hr("SHARE",!0),Gf=hr("MODE",!0),zv=hr("WAIT",!0),Mv=hr("NOWAIT",!0),Zv=hr("SKIP",!0),bp=hr("LOCKED",!0),Ib=hr("NATURAL",!0),Dv=hr("LANGUAGE",!0),vp=hr("QUERY",!0),Jv=hr("EXPANSION",!0),Xb=hr("BOOLEAN",!0),pp=hr("MATCH",!0),xp=hr("AGAINST",!1),cv=hr("OUTFILE",!0),Up=hr("DUMPFILE",!0),Xp=hr("BTREE",!0),Qv=hr("HASH",!0),Vp=hr("PARSER",!0),dp=hr("VISIBLE",!0),Kp=hr("INVISIBLE",!0),ld=hr("LATERAL",!0),Lp=/^[_0-9]/,Cp=ht(["_",["0","9"]],!1,!1),wp=hr("ROLLUP",!0),gb=hr("?",!1),O0=hr("=",!1),v0=hr("DUPLICATE",!0),ac=function(E,U){return nn(E,U)},Rb=function(E){return E[0]+" "+E[2]},Ff=hr(">=",!1),kp=hr(">",!1),Mp=hr("<=",!1),rp=hr("<>",!1),yp=hr("<",!1),hp=hr("!=",!1),Ep=hr("ESCAPE",!0),Nb=hr("+",!1),Qf=hr("-",!1),_b=hr("*",!1),Ap=hr("/",!1),Dp=hr("%",!1),$v=hr("||",!1),$p=hr("div",!0),Pp=hr("mod",!0),Pv=hr("&",!1),Gp=hr(">>",!1),Fp=hr("<<",!1),mp=hr("^",!1),zp=hr("|",!1),Zp=hr("!",!1),Gv=hr("~",!1),tp=function(E){return{type:"default",value:E}},Fv=function(E){return M[E.toUpperCase()]===!0},yl=hr('"',!1),jc=/^[^"]/,fv=ht(['"'],!0,!1),Sl=/^[^']/,Ol=ht(["'"],!0,!1),np=hr("`",!1),bv=/^[^`\\]/,ql=ht(["`","\\"],!0,!1),Ec=function(E,U){return E+U.join("")},Jp=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,Qp=ht([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),sp=/^[A-Za-z0-9_$$\u4E00-\u9FA5\xC0-\u017F]/,jv=ht([["A","Z"],["a","z"],["0","9"],"_","$","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Tp=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,rd=ht([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),jp=hr(":",!1),Ip=hr("NOW",!0),td=hr("OVER",!0),nd=hr("WINDOW",!0),Bp=hr("FOLLOWING",!0),Hp=hr("PRECEDING",!0),gp=hr("SEPARATOR",!0),sd=hr("YEAR_MONTH",!0),ed=hr("DAY_HOUR",!0),Yp=hr("DAY_MINUTE",!0),od=hr("DAY_SECOND",!0),ud=hr("DAY_MICROSECOND",!0),Rp=hr("HOUR_MINUTE",!0),O=hr("HOUR_SECOND",!0),ps=hr("HOUR_MICROSECOND",!0),Bv=hr("MINUTE_SECOND",!0),Lf=hr("MINUTE_MICROSECOND",!0),Hv=hr("SECOND_MICROSECOND",!0),on=hr("TIMEZONE_HOUR",!0),zs=hr("TIMEZONE_MINUTE",!0),Bc=hr("CENTURY",!0),vv=hr("DAY",!0),ep=hr("DATE",!0),Rs=hr("DECADE",!0),Np=hr("DOW",!0),Wp=hr("DOY",!0),cd=hr("EPOCH",!0),Vb=hr("HOUR",!0),_=hr("ISODOW",!0),Ls=hr("ISOWEEK",!0),pv=hr("ISOYEAR",!0),Cf=hr("MICROSECONDS",!0),dv=hr("MILLENNIUM",!0),Qt=hr("MILLISECONDS",!0),Xs=hr("MINUTE",!0),ic=hr("MONTH",!0),op=hr("QUARTER",!0),Kb=hr("SECOND",!0),ys=hr("TIME",!0),_p=hr("TIMEZONE",!0),Yv=hr("WEEK",!0),Lv=hr("YEAR",!0),Wv=hr("DATE_TRUNC",!0),zb=hr("BOTH",!0),wf=hr("LEADING",!0),qv=hr("TRAILING",!0),Cv=hr("trim",!0),rb=hr("convert",!0),tb=hr("binary",!0),I=hr("_binary",!0),us=hr("_latin1",!0),Sb=hr("X",!0),xl=/^[0-9A-Fa-f]/,nb=ht([["0","9"],["A","F"],["a","f"]],!1,!1),zt=hr("b",!0),$s=hr("0x",!0),ja=hr("N",!0),Ob=function(E,U){return{type:E.toLowerCase(),value:U[1].join("")}},jf=/^[^"\\\0-\x1F\x7F]/,is=ht(['"',"\\",["\0",""],"\x7F"],!0,!1),el=/^[\n]/,Ti=ht([` +`],!1,!1),wv=/^[^'\\]/,yf=ht(["'","\\"],!0,!1),X0=hr("\\'",!1),p0=hr('\\"',!1),up=hr("\\\\",!1),xb=hr("\\/",!1),Zb=hr("\\b",!1),yv=hr("\\f",!1),Jb=hr("\\n",!1),hv=hr("\\r",!1),h=hr("\\t",!1),ss=hr("\\u",!1),Xl=hr("\\",!1),d0=hr("''",!1),Bf=hr('""',!1),jt=hr("``",!1),Us=/^[\n\r]/,ol=ht([` +`,"\r"],!1,!1),sb=hr(".",!1),eb=/^[0-9a-fA-F]/,p=ht([["0","9"],["a","f"],["A","F"]],!1,!1),ns=/^[eE]/,Vl=ht(["e","E"],!1,!1),Hc=/^[+\-]/,Ub=ht(["+","-"],!1,!1),Ft=hr("NULL",!0),xs=hr("NOT NULL",!0),Li=hr("TRUE",!0),Ta=hr("TO",!0),x0=hr("FALSE",!0),Zn=hr("SHOW",!0),kb=hr("USE",!0),U0=hr("ALTER",!0),C=hr("SELECT",!0),Kn=hr("UPDATE",!0),zi=hr("CREATE",!0),Kl=hr("TEMPORARY",!0),zl=hr("DELETE",!0),Ot=hr("INSERT",!0),hs=hr("RECURSIVE",!0),Yi=hr("REPLACE",!0),hl=hr("RETURNING",!0),L0=hr("RENAME",!0),Bn=hr("IGNORE",!0),Qb=hr("EXPLAIN",!0),C0=hr("PARTITION",!0),Hf=hr("FROM",!0),k0=hr("TRIGGER",!0),M0=hr("TABLES",!0),Wi=hr("DATABASE",!0),wa=hr("SCHEMA",!0),Oa=hr("ON",!0),ti=hr("LEFT",!0),We=hr("RIGHT",!0),ob=hr("FULL",!0),V0=hr("INNER",!0),hf=hr("CROSS",!0),Ef=hr("JOIN",!0),K0=hr("OUTER",!0),Af=hr("UNION",!0),El=hr("MINUS",!0),w0=hr("INTERSECT",!0),ul=hr("EXCEPT",!0),Ye=hr("VALUES",!0),mf=hr("USING",!0),z0=hr("WHERE",!0),ub=hr("GROUP",!0),Su=hr("ORDER",!0),Al=hr("HAVING",!0),D0=hr("LIMIT",!0),Ac=hr("OFFSET",!0),mc=hr("ASC",!0),Tc=hr("DESC",!0),y0=hr("DESCRIBE",!0),bi=hr("ALL",!0),Yc=hr("DISTINCT",!0),Z0=hr("BETWEEN",!0),lc=hr("IS",!0),Ic=hr("LIKE",!0),ab=hr("RLIKE",!0),J0=hr("REGEXP",!0),ml=hr("EXISTS",!0),Ul=hr("AND",!0),aa=hr("OR",!0),Tf=hr("COUNT",!0),If=hr("GROUP_CONCAT",!0),Tl=hr("MAX",!0),Ci=hr("MIN",!0),Q0=hr("SUM",!0),ib=hr("AVG",!0),fa=hr("EXTRACT",!0),Zi=hr("CALL",!0),rf=hr("CASE",!0),Ii=hr("WHEN",!0),Ge=hr("THEN",!0),$0=hr("ELSE",!0),gf=hr("END",!0),Zl=hr("CAST",!0),Xa=hr("VARBINARY",!0),cc=hr("BIT",!0),h0=hr("CHAR",!0),n=hr("VARCHAR",!0),st=hr("NUMERIC",!0),gi=hr("DECIMAL",!0),xa=hr("SIGNED",!0),Ra=hr("UNSIGNED",!0),or=hr("INT",!0),Nt=hr("ZEROFILL",!0),ju=hr("INTEGER",!0),Il=hr("JSON",!0),Wc=hr("SMALLINT",!0),Kr=hr("MEDIUMINT",!0),Mb=hr("TINYINT",!0),fc=hr("TINYTEXT",!0),qi=hr("TEXT",!0),Ji=hr("MEDIUMTEXT",!0),Ri=hr("LONGTEXT",!0),qu=hr("BIGINT",!0),Se=hr("ENUM",!0),tf=hr("FLOAT",!0),Qu=hr("DOUBLE",!0),P0=hr("DATETIME",!0),gc=hr("TIMESTAMP",!0),al=hr("USER",!0),Jl=hr("UUID",!0),qc=hr("CURRENT_DATE",!0),Ba=hr("INTERVAL",!0),Qi=hr("CURRENT_TIME",!0),ya=hr("CURRENT_TIMESTAMP",!0),l=hr("CURRENT_USER",!0),dn=hr("SESSION_USER",!0),Ql=hr("SYSTEM_USER",!0),vi=hr("GLOBAL",!0),Va=hr("SESSION",!0),lt=hr("PERSIST",!0),Wn=hr("PERSIST_ONLY",!0),Eu=hr("GEOMETRY",!0),ia=hr("POINT",!0),ve=hr("LINESTRING",!0),Jt=hr("POLYGON",!0),nf=hr("MULTIPOINT",!0),E0=hr("MULTILINESTRING",!0),kl=hr("MULTIPOLYGON",!0),oi=hr("GEOMETRYCOLLECTION",!0),yn=hr("@@",!1),ka=hr("$",!1),Ua=hr("return",!0),Ou=hr(":=",!1),il=hr("DUAL",!0),zu=hr("ADD",!0),Yu=hr("COLUMN",!0),lb=hr("MODIFY",!0),Mi=hr("FULLTEXT",!0),ha=hr("SPATIAL",!0),Ha=hr("COMMENT",!0),ln=hr("CONSTRAINT",!0),Oe=hr("REFERENCES",!0),Di=hr("SQL_CALC_FOUND_ROWS",!0),Ya=hr("SQL_CACHE",!0),ni=hr("SQL_NO_CACHE",!0),ui=hr("SQL_SMALL_RESULT",!0),$i=hr("SQL_BIG_RESULT",!0),ai=hr("SQL_BUFFER_RESULT",!0),ll=hr(",",!1),cl=hr("[",!1),a=hr("]",!1),an=hr(";",!1),Ma=hr("&&",!1),Da=hr("XOR",!0),ii=hr("/*",!1),nt=hr("*/",!1),o=hr("--",!1),Zt=hr("#",!1),ba={type:"any"},bu=/^[ \t\n\r]/,Ht=ht([" "," ",` +`,"\r"],!1,!1),rt=function(E,U,Z){return{type:"assign",left:E,symbol:U,right:Z}},k=hr("boolean",!0),Lr=hr("blob",!0),Or=hr("tinyblob",!0),Fr=hr("mediumblob",!0),dr=hr("longblob",!0),It=function(E,U){return{dataType:E,...U||{}}},Dt=hr("ARRAY",!0),Ln=/^[0-6]/,Un=ht([["0","6"]],!1,!1),u=0,yt=0,Y=[{line:1,column:1}],Q=0,Tr=[],P=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function hr(E,U){return{type:"literal",text:E,ignoreCase:U}}function ht(E,U,Z){return{type:"class",parts:E,inverted:U,ignoreCase:Z}}function e(E){var U,Z=Y[E];if(Z)return Z;for(U=E-1;!Y[U];)U--;for(Z={line:(Z=Y[U]).line,column:Z.column};U<E;)t.charCodeAt(U)===10?(Z.line++,Z.column=1):Z.column++,U++;return Y[E]=Z,Z}function Pr(E,U){var Z=e(E),sr=e(U);return{start:{offset:E,line:Z.line,column:Z.column},end:{offset:U,line:sr.line,column:sr.column}}}function Mr(E){u<Q||(u>Q&&(Q=u,Tr=[]),Tr.push(E))}function kn(E,U,Z){return new go(go.buildMessage(E,U),E,U,Z)}function Yn(){var E,U;return E=u,jr()!==r&&(U=(function(){var Z,sr,xr,Sr,tt,Ct,Xt,Vt;if(Z=u,(sr=kt())!==r){for(xr=[],Sr=u,(tt=jr())!==r&&(Ct=we())!==r&&(Xt=jr())!==r&&(Vt=kt())!==r?Sr=tt=[tt,Ct,Xt,Vt]:(u=Sr,Sr=r);Sr!==r;)xr.push(Sr),Sr=u,(tt=jr())!==r&&(Ct=we())!==r&&(Xt=jr())!==r&&(Vt=kt())!==r?Sr=tt=[tt,Ct,Xt,Vt]:(u=Sr,Sr=r);xr===r?(u=Z,Z=r):(yt=Z,sr=(function(In,Tn){let jn=In&&In.ast||In,ts=Tn&&Tn.length&&Tn[0].length>=4?[jn]:jn;for(let d=0;d<Tn.length;d++)Tn[d][3]&&Tn[d][3].length!==0&&ts.push(Tn[d][3]&&Tn[d][3].ast||Tn[d][3]);return{tableList:Array.from(ls),columnList:fr(ws),ast:ts}})(sr,xr),Z=sr)}else u=Z,Z=r;return Z})())!==r?(yt=E,E=U):(u=E,E=r),E}function K(){var E;return(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct;(Z=ga())!==r&&jr()!==r&&(sr=of())!==r&&jr()!==r?((xr=la())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=xt())!==r?(yt=U,Xt=Z,Vt=sr,In=xr,(Tn=Sr)&&Tn.forEach(jn=>ls.add(`${Xt}::${jn.db}::${jn.table}`)),Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:Xt.toLowerCase(),keyword:Vt.toLowerCase(),prefix:In,name:Tn}},U=Z):(u=U,U=r)):(u=U,U=r);var Xt,Vt,In,Tn;return U===r&&(U=u,(Z=ga())!==r&&jr()!==r&&(sr=fu())!==r&&jr()!==r?((xr=la())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=xt())!==r&&jr()!==r?((tt=tl())===r&&(tt=null),tt===r?(u=U,U=r):(yt=U,Z=(function(jn,ts,d,N,H){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:jn.toLowerCase(),keyword:ts.toLowerCase(),prefix:d,name:N,options:H&&[{type:"origin",value:H}]}}})(Z,sr,xr,Sr,tt),U=Z)):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,(Z=ga())!==r&&jr()!==r&&(sr=g())!==r&&jr()!==r&&(xr=pn())!==r&&jr()!==r&&(Sr=Yo())!==r&&jr()!==r&&(tt=bs())!==r&&jr()!==r?((Ct=(function(){var jn=u,ts,d,N,H,X;if((ts=ta())===r&&(ts=li()),ts!==r){for(d=[],N=u,(H=jr())===r?(u=N,N=r):((X=ta())===r&&(X=li()),X===r?(u=N,N=r):N=H=[H,X]);N!==r;)d.push(N),N=u,(H=jr())===r?(u=N,N=r):((X=ta())===r&&(X=li()),X===r?(u=N,N=r):N=H=[H,X]);d===r?(u=jn,jn=r):(yt=jn,ts=Ae(ts,d),jn=ts)}else u=jn,jn=r;return jn})())===r&&(Ct=null),Ct!==r&&jr()!==r?(yt=U,Z=(function(jn,ts,d,N,H){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:jn.toLowerCase(),keyword:ts.toLowerCase(),name:d,table:N,options:H}}})(Z,sr,xr,tt,Ct),U=Z):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,(Z=ga())!==r&&jr()!==r?((sr=qo())===r&&(sr=Oc()),sr!==r&&jr()!==r?((xr=la())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=xe())!==r?(yt=U,Z=(function(jn,ts,d,N){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:jn.toLowerCase(),keyword:ts.toLowerCase(),prefix:d,name:N}}})(Z,sr,xr,Sr),U=Z):(u=U,U=r)):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,(Z=ga())!==r&&jr()!==r&&(sr=Xc())!==r&&jr()!==r?((xr=la())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=mn())!==r?(yt=U,Z=(function(jn,ts,d,N){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:jn.toLowerCase(),keyword:ts.toLowerCase(),prefix:d,name:[{schema:N.db,trigger:N.table}]}}})(Z,sr,xr,Sr),U=Z):(u=U,U=r)):(u=U,U=r))))),U})())===r&&(E=(function(){var U;return(U=(function(){var Z=u,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn;(sr=tc())!==r&&jr()!==r?((xr=Yf())===r&&(xr=null),xr!==r&&jr()!==r&&of()!==r&&jr()!==r?((Sr=_t())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=xt())!==r&&jr()!==r&&(Ct=(function(){var X,lr,wr,i,b,m,x,tr,Cr;if(X=u,(lr=cs())!==r)if(jr()!==r)if((wr=Ke())!==r){for(i=[],b=u,(m=jr())!==r&&(x=Mn())!==r&&(tr=jr())!==r&&(Cr=Ke())!==r?b=m=[m,x,tr,Cr]:(u=b,b=r);b!==r;)i.push(b),b=u,(m=jr())!==r&&(x=Mn())!==r&&(tr=jr())!==r&&(Cr=Ke())!==r?b=m=[m,x,tr,Cr]:(u=b,b=r);i!==r&&(b=jr())!==r&&(m=_s())!==r?(yt=X,lr=zn(wr,i),X=lr):(u=X,X=r)}else u=X,X=r;else u=X,X=r;else u=X,X=r;return X})())!==r&&jr()!==r?((Xt=(function(){var X,lr,wr,i,b,m,x,tr;if(X=u,(lr=bc())!==r){for(wr=[],i=u,(b=jr())===r?(u=i,i=r):((m=Mn())===r&&(m=null),m!==r&&(x=jr())!==r&&(tr=bc())!==r?i=b=[b,m,x,tr]:(u=i,i=r));i!==r;)wr.push(i),i=u,(b=jr())===r?(u=i,i=r):((m=Mn())===r&&(m=null),m!==r&&(x=jr())!==r&&(tr=bc())!==r?i=b=[b,m,x,tr]:(u=i,i=r));wr===r?(u=X,X=r):(yt=X,lr=Dn(lr,wr),X=lr)}else u=X,X=r;return X})())===r&&(Xt=null),Xt!==r&&jr()!==r?((Vt=_c())===r&&(Vt=pc()),Vt===r&&(Vt=null),Vt!==r&&jr()!==r?((In=Sc())===r&&(In=null),In!==r&&jr()!==r?((Tn=Ve())===r&&(Tn=null),Tn===r?(u=Z,Z=r):(yt=Z,sr=(function(X,lr,wr,i,b,m,x,tr,Cr){return i&&i.forEach(gr=>ls.add(`create::${gr.db}::${gr.table}`)),{tableList:Array.from(ls),columnList:fr(ws),ast:{type:X[0].toLowerCase(),keyword:"table",temporary:lr&&lr[0].toLowerCase(),if_not_exists:wr,table:i,ignore_replace:x&&x[0].toLowerCase(),as:tr&&tr[0].toLowerCase(),query_expr:Cr&&Cr.ast,create_definitions:b,table_options:m}}})(sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn),Z=sr)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r),Z===r&&(Z=u,(sr=tc())!==r&&jr()!==r?((xr=Yf())===r&&(xr=null),xr!==r&&jr()!==r&&of()!==r&&jr()!==r?((Sr=_t())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=xt())!==r&&jr()!==r&&(Ct=(function X(){var lr,wr;(lr=(function(){var b=u,m;return vt()!==r&&jr()!==r&&(m=xt())!==r?(yt=b,b={type:"like",table:m}):(u=b,b=r),b})())===r&&(lr=u,cs()!==r&&jr()!==r&&(wr=X())!==r&&jr()!==r&&_s()!==r?(yt=lr,(i=wr).parentheses=!0,lr=i):(u=lr,lr=r));var i;return lr})())!==r?(yt=Z,jn=sr,ts=xr,d=Sr,H=Ct,(N=tt)&&N.forEach(X=>ls.add(`create::${X.db}::${X.table}`)),sr={tableList:Array.from(ls),columnList:fr(ws),ast:{type:jn[0].toLowerCase(),keyword:"table",temporary:ts&&ts[0].toLowerCase(),if_not_exists:d,table:N,like:H}},Z=sr):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r));var jn,ts,d,N,H;return Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn;(sr=tc())!==r&&jr()!==r?((xr=Co())===r&&(xr=null),xr!==r&&jr()!==r&&Xc()!==r&&jr()!==r?((Sr=_t())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=bs())!==r&&jr()!==r&&(Ct=(function(){var x;return t.substr(u,6).toLowerCase()==="before"?(x=t.substr(u,6),u+=6):(x=r,P===0&&Mr(uo)),x===r&&(t.substr(u,5).toLowerCase()==="after"?(x=t.substr(u,5),u+=5):(x=r,P===0&&Mr(Ao))),x})())!==r&&jr()!==r&&(Xt=(function(){var x=u,tr;return(tr=mv())===r&&(tr=Ai())===r&&(tr=sf()),tr!==r&&(yt=x,tr={keyword:tr[0].toLowerCase()}),x=tr})())!==r&&jr()!==r&&Yo()!==r&&jr()!==r&&(Vt=bs())!==r&&jr()!==r&&(In=(function(){var x=u,tr,Cr,gr;t.substr(u,3).toLowerCase()==="for"?(tr=t.substr(u,3),u+=3):(tr=r,P===0&&Mr(Pu)),tr!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="each"?(Cr=t.substr(u,4),u+=4):(Cr=r,P===0&&Mr(Ca)),Cr===r&&(Cr=null),Cr!==r&&jr()!==r?(t.substr(u,3).toLowerCase()==="row"?(gr=t.substr(u,3),u+=3):(gr=r,P===0&&Mr(ku)),gr===r&&(t.substr(u,9).toLowerCase()==="statement"?(gr=t.substr(u,9),u+=9):(gr=r,P===0&&Mr(ca))),gr===r?(u=x,x=r):(yt=x,Yr=tr,gt=gr,tr={keyword:(Rt=Cr)?`${Yr.toLowerCase()} ${Rt.toLowerCase()}`:Yr.toLowerCase(),args:gt.toLowerCase()},x=tr)):(u=x,x=r)):(u=x,x=r);var Yr,Rt,gt;return x})())!==r&&jr()!==r?((Tn=(function(){var x=u,tr,Cr;return t.substr(u,7).toLowerCase()==="follows"?(tr=t.substr(u,7),u+=7):(tr=r,P===0&&Mr(na)),tr===r&&(t.substr(u,8).toLowerCase()==="precedes"?(tr=t.substr(u,8),u+=8):(tr=r,P===0&&Mr(Qa))),tr!==r&&jr()!==r&&(Cr=xe())!==r?(yt=x,x=tr={keyword:tr,trigger:Cr}):(u=x,x=r),x})())===r&&(Tn=null),Tn!==r&&jr()!==r&&(jn=(function(){var x=u,tr;return Uu()!==r&&jr()!==r&&(tr=so())!==r?(yt=x,x={type:"set",expr:tr}):(u=x,x=r),x})())!==r?(yt=Z,ts=sr,d=xr,N=Sr,H=tt,X=Ct,lr=Xt,wr=Vt,i=In,b=Tn,m=jn,sr={tableList:Array.from(ls),columnList:fr(ws),ast:{type:ts[0].toLowerCase(),definer:d,keyword:"trigger",for_each:i,if_not_exists:N,trigger:H,time:X,events:[lr],order:b,table:wr,execute:m}},Z=sr):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r);var ts,d,N,H,X,lr,wr,i,b,m;return Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts;(sr=tc())!==r&&jr()!==r?((xr=Pt())===r&&(xr=Vr())===r&&(xr=Qr()),xr===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=g())!==r&&jr()!==r&&(tt=js())!==r&&jr()!==r?((Ct=qr())===r&&(Ct=null),Ct!==r&&jr()!==r&&(Xt=Yo())!==r&&jr()!==r&&(Vt=bs())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(In=(function(){var Cr,gr,Yr,Rt,gt,Gt,rn,xn;if(Cr=u,(gr=co())!==r){for(Yr=[],Rt=u,(gt=jr())!==r&&(Gt=Mn())!==r&&(rn=jr())!==r&&(xn=co())!==r?Rt=gt=[gt,Gt,rn,xn]:(u=Rt,Rt=r);Rt!==r;)Yr.push(Rt),Rt=u,(gt=jr())!==r&&(Gt=Mn())!==r&&(rn=jr())!==r&&(xn=co())!==r?Rt=gt=[gt,Gt,rn,xn]:(u=Rt,Rt=r);Yr===r?(u=Cr,Cr=r):(yt=Cr,gr=Dn(gr,Yr),Cr=gr)}else u=Cr,Cr=r;return Cr})())!==r&&jr()!==r&&_s()!==r&&jr()!==r?((Tn=bt())===r&&(Tn=null),Tn!==r&&jr()!==r?((jn=ta())===r&&(jn=null),jn!==r&&jr()!==r?((ts=li())===r&&(ts=null),ts!==r&&jr()!==r?(yt=Z,d=sr,N=xr,H=Sr,X=tt,lr=Ct,wr=Xt,i=Vt,b=In,m=Tn,x=jn,tr=ts,sr={tableList:Array.from(ls),columnList:fr(ws),ast:{type:d[0].toLowerCase(),index_type:N&&N.toLowerCase(),keyword:H.toLowerCase(),index:X,on_kw:wr[0].toLowerCase(),table:i,index_columns:b,index_using:lr,index_options:m,algorithm_option:x,lock_option:tr}},Z=sr):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r);var d,N,H,X,lr,wr,i,b,m,x,tr;return Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct;return(sr=tc())!==r&&jr()!==r?((xr=qo())===r&&(xr=Oc()),xr!==r&&jr()!==r?((Sr=_t())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=Ko())!==r&&jr()!==r?((Ct=(function(){var Xt,Vt,In,Tn,jn,ts;if(Xt=u,(Vt=$a())!==r){for(In=[],Tn=u,(jn=jr())!==r&&(ts=$a())!==r?Tn=jn=[jn,ts]:(u=Tn,Tn=r);Tn!==r;)In.push(Tn),Tn=u,(jn=jr())!==r&&(ts=$a())!==r?Tn=jn=[jn,ts]:(u=Tn,Tn=r);In===r?(u=Xt,Xt=r):(yt=Xt,Vt=Ae(Vt,In),Xt=Vt)}else u=Xt,Xt=r;return Xt})())===r&&(Ct=null),Ct===r?(u=Z,Z=r):(yt=Z,sr=(function(Xt,Vt,In,Tn,jn){let ts=Vt.toLowerCase();return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:Xt[0].toLowerCase(),keyword:ts,if_not_exists:In,[ts]:{db:Tn.schema,schema:Tn.name},create_definitions:jn}}})(sr,xr,Sr,tt,Ct),Z=sr)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r),Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts,d,N,H,X,lr,wr,i,b,m;return(sr=tc())!==r&&jr()!==r?(xr=u,(Sr=en())!==r&&(tt=jr())!==r&&(Ct=pc())!==r?xr=Sr=[Sr,tt,Ct]:(u=xr,xr=r),xr===r&&(xr=null),xr!==r&&(Sr=jr())!==r?(tt=u,t.substr(u,9).toLowerCase()==="algorithm"?(Ct=t.substr(u,9),u+=9):(Ct=r,P===0&&Mr(ei)),Ct!==r&&(Xt=jr())!==r&&(Vt=w())!==r&&(In=jr())!==r?(t.substr(u,9).toLowerCase()==="undefined"?(Tn=t.substr(u,9),u+=9):(Tn=r,P===0&&Mr(pb)),Tn===r&&(t.substr(u,5).toLowerCase()==="merge"?(Tn=t.substr(u,5),u+=5):(Tn=r,P===0&&Mr(j0)),Tn===r&&(t.substr(u,9).toLowerCase()==="temptable"?(Tn=t.substr(u,9),u+=9):(Tn=r,P===0&&Mr(B0)))),Tn===r?(u=tt,tt=r):tt=Ct=[Ct,Xt,Vt,In,Tn]):(u=tt,tt=r),tt===r&&(tt=null),tt!==r&&(Ct=jr())!==r?((Xt=Co())===r&&(Xt=null),Xt!==r&&(Vt=jr())!==r?(In=u,t.substr(u,3).toLowerCase()==="sql"?(Tn=t.substr(u,3),u+=3):(Tn=r,P===0&&Mr(Mc)),Tn!==r&&(jn=jr())!==r?(t.substr(u,8).toLowerCase()==="security"?(ts=t.substr(u,8),u+=8):(ts=r,P===0&&Mr(Cl)),ts!==r&&(d=jr())!==r?(t.substr(u,7).toLowerCase()==="definer"?(N=t.substr(u,7),u+=7):(N=r,P===0&&Mr($u)),N===r&&(t.substr(u,7).toLowerCase()==="invoker"?(N=t.substr(u,7),u+=7):(N=r,P===0&&Mr(r0))),N===r?(u=In,In=r):In=Tn=[Tn,jn,ts,d,N]):(u=In,In=r)):(u=In,In=r),In===r&&(In=null),In!==r&&(Tn=jr())!==r&&(jn=fu())!==r&&(ts=jr())!==r&&(d=bs())!==r&&(N=jr())!==r?(H=u,(X=cs())!==r&&(lr=jr())!==r&&(wr=Cn())!==r&&(i=jr())!==r&&(b=_s())!==r?H=X=[X,lr,wr,i,b]:(u=H,H=r),H===r&&(H=null),H!==r&&(X=jr())!==r&&(lr=Sc())!==r&&(wr=jr())!==r&&(i=vs())!==r&&(b=jr())!==r?((m=(function(){var x=u,tr,Cr,gr,Yr;return(tr=va())!==r&&jr()!==r?(t.substr(u,8).toLowerCase()==="cascaded"?(Cr=t.substr(u,8),u+=8):(Cr=r,P===0&&Mr(gv)),Cr===r&&(t.substr(u,5).toLowerCase()==="local"?(Cr=t.substr(u,5),u+=5):(Cr=r,P===0&&Mr(g0))),Cr!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="check"?(gr=t.substr(u,5),u+=5):(gr=r,P===0&&Mr(Ki)),gr!==r&&jr()!==r?(t.substr(u,6)==="OPTION"?(Yr="OPTION",u+=6):(Yr=r,P===0&&Mr(Pb)),Yr===r?(u=x,x=r):(yt=x,tr=(function(Rt){return`with ${Rt.toLowerCase()} check option`})(Cr),x=tr)):(u=x,x=r)):(u=x,x=r)):(u=x,x=r),x===r&&(x=u,(tr=va())!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="check"?(Cr=t.substr(u,5),u+=5):(Cr=r,P===0&&Mr(Ki)),Cr!==r&&jr()!==r?(t.substr(u,6)==="OPTION"?(gr="OPTION",u+=6):(gr=r,P===0&&Mr(Pb)),gr===r?(u=x,x=r):(yt=x,x=tr="with check option")):(u=x,x=r)):(u=x,x=r)),x})())===r&&(m=null),m===r?(u=Z,Z=r):(yt=Z,sr=(function(x,tr,Cr,gr,Yr,Rt,gt,Gt,rn){return Rt.view=Rt.table,delete Rt.table,{tableList:Array.from(ls),columnList:fr(ws),ast:{type:x[0].toLowerCase(),keyword:"view",replace:tr&&"or replace",algorithm:Cr&&Cr[4],definer:gr,sql_security:Yr&&Yr[4],columns:gt&>[2],select:Gt,view:Rt,with:rn}}})(sr,xr,tt,Xt,In,d,H,i,m),Z=sr)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r),Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn;return(sr=tc())!==r&&jr()!==r&&Wf()!==r&&jr()!==r?((xr=_t())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=(function(){var ts,d,N,H,X,lr,wr,i;if(ts=u,(d=Eo())!==r){for(N=[],H=u,(X=jr())!==r&&(lr=Mn())!==r&&(wr=jr())!==r&&(i=Eo())!==r?H=X=[X,lr,wr,i]:(u=H,H=r);H!==r;)N.push(H),H=u,(X=jr())!==r&&(lr=Mn())!==r&&(wr=jr())!==r&&(i=Eo())!==r?H=X=[X,lr,wr,i]:(u=H,H=r);N===r?(u=ts,ts=r):(yt=ts,d=Fi(d,N),ts=d)}else u=ts,ts=r;return ts})())!==r&&jr()!==r?((tt=(function(){var ts=u,d,N;return rv()!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="role"?(d=t.substr(u,4),u+=4):(d=r,P===0&&Mr(T0)),d!==r&&jr()!==r&&(N=er())!==r?(yt=ts,ts={keyword:"default role",value:N}):(u=ts,ts=r)):(u=ts,ts=r),ts})())===r&&(tt=null),tt!==r&&jr()!==r?((Ct=(function(){var ts=u,d,N;return t.substr(u,7).toLowerCase()==="require"?(d=t.substr(u,7),u+=7):(d=r,P===0&&Mr(af)),d!==r&&jr()!==r&&(N=(function(){var H,X,lr,wr,i,b,m,x;if(H=u,(X=ao())!==r){for(lr=[],wr=u,(i=jr())!==r&&(b=$t())!==r&&(m=jr())!==r&&(x=ao())!==r?wr=i=[i,b,m,x]:(u=wr,wr=r);wr!==r;)lr.push(wr),wr=u,(i=jr())!==r&&(b=$t())!==r&&(m=jr())!==r&&(x=ao())!==r?wr=i=[i,b,m,x]:(u=wr,wr=r);lr===r?(u=H,H=r):(yt=H,X=nn(X,lr),H=X)}else u=H,H=r;return H})())!==r?(yt=ts,ts=d={keyword:"require",value:N}):(u=ts,ts=r),ts})())===r&&(Ct=null),Ct!==r&&jr()!==r?((Xt=(function(){var ts,d,N,H,X,lr,wr;if(ts=u,(d=va())!==r)if(jr()!==r)if((N=zo())!==r){for(H=[],X=u,(lr=jr())!==r&&(wr=zo())!==r?X=lr=[lr,wr]:(u=X,X=r);X!==r;)H.push(X),X=u,(lr=jr())!==r&&(wr=zo())!==r?X=lr=[lr,wr]:(u=X,X=r);H===r?(u=ts,ts=r):(yt=ts,d=(function(i,b){let m=[i];if(b)for(let x of b)m.push(x[1]);return{keyword:"with",value:m}})(N,H),ts=d)}else u=ts,ts=r;else u=ts,ts=r;else u=ts,ts=r;return ts})())===r&&(Xt=null),Xt!==r&&jr()!==r?((Vt=(function(){var ts,d,N,H,X,lr;if(ts=u,(d=no())!==r){for(N=[],H=u,(X=jr())!==r&&(lr=no())!==r?H=X=[X,lr]:(u=H,H=r);H!==r;)N.push(H),H=u,(X=jr())!==r&&(lr=no())!==r?H=X=[X,lr]:(u=H,H=r);N===r?(u=ts,ts=r):(yt=ts,d=Mt(d,N,1),ts=d)}else u=ts,ts=r;return ts})())===r&&(Vt=null),Vt!==r&&jr()!==r?((In=(function(){var ts=u,d,N;return t.substr(u,7).toLowerCase()==="account"?(d=t.substr(u,7),u+=7):(d=r,P===0&&Mr(gl)),d!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="lock"?(N=t.substr(u,4),u+=4):(N=r,P===0&&Mr(lf)),N===r&&(t.substr(u,6).toLowerCase()==="unlock"?(N=t.substr(u,6),u+=6):(N=r,P===0&&Mr(Jc))),N===r?(u=ts,ts=r):(yt=ts,d=(function(H){return{type:"origin",value:H.toLowerCase(),prefix:"account"}})(N),ts=d)):(u=ts,ts=r),ts})())===r&&(In=null),In!==r&&jr()!==r?((Tn=No())===r&&(Tn=null),Tn!==r&&jr()!==r?((jn=(function(){var ts=u,d,N;t.substr(u,9).toLowerCase()==="attribute"?(d=t.substr(u,9),u+=9):(d=r,P===0&&Mr(Qc)),d!==r&&jr()!==r&&(N=A0())!==r?(yt=ts,(H=N).prefix="attribute",ts=d=H):(u=ts,ts=r);var H;return ts})())===r&&(jn=null),jn===r?(u=Z,Z=r):(yt=Z,sr=(function(ts,d,N,H,X,lr,wr,i,b,m,x){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:ts[0].toLowerCase(),keyword:"user",if_not_exists:N,user:H,default_role:X,require:lr,resource_options:wr,password_options:i,lock_option:b,comment:m,attribute:x}}})(sr,0,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn),Z=sr)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r),Z})()),U})())===r&&(E=(function(){var U=u,Z,sr,xr;(Z=(function(){var Xt=u,Vt,In,Tn;return t.substr(u,8).toLowerCase()==="truncate"?(Vt=t.substr(u,8),u+=8):(Vt=r,P===0&&Mr(Vv)),Vt===r?(u=Xt,Xt=r):(In=u,P++,Tn=qs(),P--,Tn===r?In=void 0:(u=In,In=r),In===r?(u=Xt,Xt=r):(yt=Xt,Xt=Vt="TRUNCATE")),Xt})())!==r&&jr()!==r?((sr=of())===r&&(sr=null),sr!==r&&jr()!==r&&(xr=xt())!==r?(yt=U,Sr=Z,tt=sr,(Ct=xr)&&Ct.forEach(Xt=>ls.add(`${Sr}::${Xt.db}::${Xt.table}`)),Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:Sr.toLowerCase(),keyword:tt&&tt.toLowerCase()||"table",name:Ct}},U=Z):(u=U,U=r)):(u=U,U=r);var Sr,tt,Ct;return U})())===r&&(E=(function(){var U=u,Z,sr;(Z=Si())!==r&&jr()!==r&&of()!==r&&jr()!==r&&(sr=(function(){var Sr,tt,Ct,Xt,Vt,In,Tn,jn;if(Sr=u,(tt=Ar())!==r){for(Ct=[],Xt=u,(Vt=jr())!==r&&(In=Mn())!==r&&(Tn=jr())!==r&&(jn=Ar())!==r?Xt=Vt=[Vt,In,Tn,jn]:(u=Xt,Xt=r);Xt!==r;)Ct.push(Xt),Xt=u,(Vt=jr())!==r&&(In=Mn())!==r&&(Tn=jr())!==r&&(jn=Ar())!==r?Xt=Vt=[Vt,In,Tn,jn]:(u=Xt,Xt=r);Ct===r?(u=Sr,Sr=r):(yt=Sr,tt=zn(tt,Ct),Sr=tt)}else u=Sr,Sr=r;return Sr})())!==r?(yt=U,(xr=sr).forEach(Sr=>Sr.forEach(tt=>tt.table&&ls.add(`rename::${tt.db}::${tt.table}`))),Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"rename",table:xr}},U=Z):(u=U,U=r);var xr;return U})())===r&&(E=(function(){var U=u,Z,sr;(Z=(function(){var Sr=u,tt,Ct,Xt;return t.substr(u,4).toLowerCase()==="call"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(Zi)),tt===r?(u=Sr,Sr=r):(Ct=u,P++,Xt=qs(),P--,Xt===r?Ct=void 0:(u=Ct,Ct=r),Ct===r?(u=Sr,Sr=r):(yt=Sr,Sr=tt="CALL")),Sr})())!==r&&jr()!==r&&(sr=(function(){var Sr;return(Sr=Wr())===r&&(Sr=Aa()),Sr})())!==r?(yt=U,xr=sr,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"call",expr:xr}},U=Z):(u=U,U=r);var xr;return U})())===r&&(E=(function(){var U=u,Z,sr;(Z=(function(){var Sr=u,tt,Ct,Xt;return t.substr(u,3).toLowerCase()==="use"?(tt=t.substr(u,3),u+=3):(tt=r,P===0&&Mr(kb)),tt===r?(u=Sr,Sr=r):(Ct=u,P++,Xt=qs(),P--,Xt===r?Ct=void 0:(u=Ct,Ct=r),Ct===r?(u=Sr,Sr=r):Sr=tt=[tt,Ct]),Sr})())!==r&&jr()!==r&&(sr=js())!==r?(yt=U,xr=sr,ls.add(`use::${xr}::null`),Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"use",db:xr}},U=Z):(u=U,U=r);var xr;return U})())===r&&(E=(function(){var U=u,Z,sr,xr;(Z=_i())!==r&&jr()!==r&&of()!==r&&jr()!==r&&(sr=bs())!==r&&jr()!==r&&(xr=(function(){var Ct,Xt,Vt,In,Tn,jn,ts,d;if(Ct=u,(Xt=Ia())!==r){for(Vt=[],In=u,(Tn=jr())!==r&&(jn=Mn())!==r&&(ts=jr())!==r&&(d=Ia())!==r?In=Tn=[Tn,jn,ts,d]:(u=In,In=r);In!==r;)Vt.push(In),In=u,(Tn=jr())!==r&&(jn=Mn())!==r&&(ts=jr())!==r&&(d=Ia())!==r?In=Tn=[Tn,jn,ts,d]:(u=In,In=r);Vt===r?(u=Ct,Ct=r):(yt=Ct,Xt=zn(Xt,Vt),Ct=Xt)}else u=Ct,Ct=r;return Ct})())!==r?(yt=U,Sr=sr,tt=xr,ls.add(`alter::${Sr.db}::${Sr.table}`),Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"alter",table:[Sr],expr:tt}},U=Z):(u=U,U=r);var Sr,tt;return U})())===r&&(E=(function(){var U=u,Z,sr,xr;(Z=Uu())!==r&&jr()!==r?((sr=(function(){var Ct=u,Xt,Vt,In;return t.substr(u,6).toLowerCase()==="global"?(Xt=t.substr(u,6),u+=6):(Xt=r,P===0&&Mr(vi)),Xt===r?(u=Ct,Ct=r):(Vt=u,P++,In=qs(),P--,In===r?Vt=void 0:(u=Vt,Vt=r),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct=Xt="GLOBAL")),Ct})())===r&&(sr=(function(){var Ct=u,Xt,Vt,In;return t.substr(u,7).toLowerCase()==="session"?(Xt=t.substr(u,7),u+=7):(Xt=r,P===0&&Mr(Va)),Xt===r?(u=Ct,Ct=r):(Vt=u,P++,In=qs(),P--,In===r?Vt=void 0:(u=Vt,Vt=r),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct=Xt="SESSION")),Ct})())===r&&(sr=(function(){var Ct=u,Xt,Vt,In;return t.substr(u,5).toLowerCase()==="local"?(Xt=t.substr(u,5),u+=5):(Xt=r,P===0&&Mr(g0)),Xt===r?(u=Ct,Ct=r):(Vt=u,P++,In=qs(),P--,In===r?Vt=void 0:(u=Vt,Vt=r),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct=Xt="LOCAL")),Ct})())===r&&(sr=(function(){var Ct=u,Xt,Vt,In;return t.substr(u,7).toLowerCase()==="persist"?(Xt=t.substr(u,7),u+=7):(Xt=r,P===0&&Mr(lt)),Xt===r?(u=Ct,Ct=r):(Vt=u,P++,In=qs(),P--,In===r?Vt=void 0:(u=Vt,Vt=r),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct=Xt="PERSIST")),Ct})())===r&&(sr=(function(){var Ct=u,Xt,Vt,In;return t.substr(u,12).toLowerCase()==="persist_only"?(Xt=t.substr(u,12),u+=12):(Xt=r,P===0&&Mr(Wn)),Xt===r?(u=Ct,Ct=r):(Vt=u,P++,In=qs(),P--,In===r?Vt=void 0:(u=Vt,Vt=r),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct=Xt="PERSIST_ONLY")),Ct})()),sr===r&&(sr=null),sr!==r&&jr()!==r&&(xr=(function(){var Ct,Xt,Vt,In,Tn,jn,ts,d;if(Ct=u,(Xt=mo())!==r){for(Vt=[],In=u,(Tn=jr())!==r&&(jn=Mn())!==r&&(ts=jr())!==r&&(d=mo())!==r?In=Tn=[Tn,jn,ts,d]:(u=In,In=r);In!==r;)Vt.push(In),In=u,(Tn=jr())!==r&&(jn=Mn())!==r&&(ts=jr())!==r&&(d=mo())!==r?In=Tn=[Tn,jn,ts,d]:(u=In,In=r);Vt===r?(u=Ct,Ct=r):(yt=Ct,Xt=ye(Xt,Vt),Ct=Xt)}else u=Ct,Ct=r;return Ct})())!==r?(yt=U,Sr=sr,(tt=xr).keyword=Sr,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"set",keyword:Sr,expr:tt}},U=Z):(u=U,U=r)):(u=U,U=r);var Sr,tt;return U})())===r&&(E=(function(){var U=u,Z,sr;(Z=(function(){var Sr=u,tt,Ct,Xt;return t.substr(u,4).toLowerCase()==="lock"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(lf)),tt===r?(u=Sr,Sr=r):(Ct=u,P++,Xt=qs(),P--,Xt===r?Ct=void 0:(u=Ct,Ct=r),Ct===r?(u=Sr,Sr=r):Sr=tt=[tt,Ct]),Sr})())!==r&&jr()!==r&&qa()!==r&&jr()!==r&&(sr=(function(){var Sr,tt,Ct,Xt,Vt,In,Tn,jn;if(Sr=u,(tt=j())!==r){for(Ct=[],Xt=u,(Vt=jr())!==r&&(In=Mn())!==r&&(Tn=jr())!==r&&(jn=j())!==r?Xt=Vt=[Vt,In,Tn,jn]:(u=Xt,Xt=r);Xt!==r;)Ct.push(Xt),Xt=u,(Vt=jr())!==r&&(In=Mn())!==r&&(Tn=jr())!==r&&(jn=j())!==r?Xt=Vt=[Vt,In,Tn,jn]:(u=Xt,Xt=r);Ct===r?(u=Sr,Sr=r):(yt=Sr,tt=ye(tt,Ct),Sr=tt)}else u=Sr,Sr=r;return Sr})())!==r?(yt=U,xr=sr,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"lock",keyword:"tables",tables:xr}},U=Z):(u=U,U=r);var xr;return U})())===r&&(E=(function(){var U=u,Z;return(Z=(function(){var sr=u,xr,Sr,tt;return t.substr(u,6).toLowerCase()==="unlock"?(xr=t.substr(u,6),u+=6):(xr=r,P===0&&Mr(Jc)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):sr=xr=[xr,Sr]),sr})())!==r&&jr()!==r&&qa()!==r?(yt=U,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"unlock",keyword:"tables"}},U=Z):(u=U,U=r),U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct,Xt,Vt;(Z=Rf())!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="binary"?(sr=t.substr(u,6),u+=6):(sr=r,P===0&&Mr(_l)),sr===r&&(t.substr(u,6).toLowerCase()==="master"?(sr=t.substr(u,6),u+=6):(sr=r,P===0&&Mr(Yl))),sr!==r&&(xr=jr())!==r?(t.substr(u,4).toLowerCase()==="logs"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(Ab)),Sr===r?(u=U,U=r):(yt=U,In=sr,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",suffix:"logs",keyword:In.toLowerCase()}},U=Z)):(u=U,U=r)):(u=U,U=r);var In;U===r&&(U=u,(Z=Rf())!==r&&jr()!==r&&(sr=qa())!==r?(yt=U,ls.add("show::null::null"),Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",keyword:"tables"}},U=Z):(u=U,U=r),U===r&&(U=u,(Z=Rf())!==r&&jr()!==r?(t.substr(u,8).toLowerCase()==="triggers"?(sr=t.substr(u,8),u+=8):(sr=r,P===0&&Mr(Mf)),sr===r&&(t.substr(u,6).toLowerCase()==="status"?(sr=t.substr(u,6),u+=6):(sr=r,P===0&&Mr(Wb)),sr===r&&(t.substr(u,11).toLowerCase()==="processlist"?(sr=t.substr(u,11),u+=11):(sr=r,P===0&&Mr(Df)))),sr===r?(u=U,U=r):(yt=U,d=sr,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",keyword:d.toLowerCase()}},U=Z)):(u=U,U=r),U===r&&(U=u,(Z=Rf())!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="procedure"?(sr=t.substr(u,9),u+=9):(sr=r,P===0&&Mr(mb)),sr===r&&(t.substr(u,8).toLowerCase()==="function"?(sr=t.substr(u,8),u+=8):(sr=r,P===0&&Mr(i0))),sr!==r&&(xr=jr())!==r?(t.substr(u,6).toLowerCase()==="status"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(Wb)),Sr===r?(u=U,U=r):(yt=U,Z=(function(N){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",keyword:N.toLowerCase(),suffix:"status"}}})(sr),U=Z)):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,(Z=Rf())!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="binlog"?(sr=t.substr(u,6),u+=6):(sr=r,P===0&&Mr(ft)),sr!==r&&(xr=jr())!==r?(t.substr(u,6).toLowerCase()==="events"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(tn)),Sr!==r&&(tt=jr())!==r?((Ct=mr())===r&&(Ct=null),Ct!==r&&jr()!==r?((Xt=yr())===r&&(Xt=null),Xt!==r&&jr()!==r?((Vt=eo())===r&&(Vt=null),Vt===r?(u=U,U=r):(yt=U,Tn=Ct,jn=Xt,ts=Vt,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",suffix:"events",keyword:"binlog",in:Tn,from:jn,limit:ts}},U=Z)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,(Z=Rf())!==r&&jr()!==r?(sr=u,t.substr(u,9).toLowerCase()==="character"?(xr=t.substr(u,9),u+=9):(xr=r,P===0&&Mr(W0)),xr!==r&&(Sr=jr())!==r?(t.substr(u,3).toLowerCase()==="set"?(tt=t.substr(u,3),u+=3):(tt=r,P===0&&Mr(jb)),tt===r?(u=sr,sr=r):sr=xr=[xr,Sr,tt]):(u=sr,sr=r),sr===r&&(t.substr(u,9).toLowerCase()==="collation"?(sr=t.substr(u,9),u+=9):(sr=r,P===0&&Mr(_n)),sr===r&&(t.substr(u,9).toLowerCase()==="databases"?(sr=t.substr(u,9),u+=9):(sr=r,P===0&&Mr(En)))),sr!==r&&(xr=jr())!==r?((Sr=br())===r&&(Sr=Ws()),Sr===r&&(Sr=null),Sr===r?(u=U,U=r):(yt=U,Z=(function(N,H){let X=Array.isArray(N)&&N||[N];return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",suffix:X[2]&&X[2].toLowerCase(),keyword:X[0].toLowerCase(),expr:H}}})(sr,Sr),U=Z)):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,(Z=Rf())!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="columns"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Os)),sr===r&&(t.substr(u,7).toLowerCase()==="indexes"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(gs)),sr===r&&(t.substr(u,5).toLowerCase()==="index"?(sr=t.substr(u,5),u+=5):(sr=r,P===0&&Mr(Bb)))),sr!==r&&(xr=jr())!==r&&(Sr=yr())!==r?(yt=U,Z=(function(N,H){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",keyword:N.toLowerCase(),from:H}}})(sr,Sr),U=Z):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,(Z=Rf())!==r&&jr()!==r&&(sr=tc())!==r&&(xr=jr())!==r?((Sr=fu())===r&&(Sr=of())===r&&(t.substr(u,5).toLowerCase()==="event"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(Ys)),Sr===r&&(Sr=Xc())===r&&(t.substr(u,9).toLowerCase()==="procedure"?(Sr=t.substr(u,9),u+=9):(Sr=r,P===0&&Mr(mb)))),Sr!==r&&(tt=jr())!==r&&(Ct=bs())!==r?(yt=U,Z=(function(N,H){let X=N.toLowerCase();return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",keyword:"create",suffix:X,[X]:H}}})(Sr,Ct),U=Z):(u=U,U=r)):(u=U,U=r),U===r&&(U=(function(){var N=u,H,X,lr;(H=Rf())!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="grants"?(X=t.substr(u,6),u+=6):(X=r,P===0&&Mr(Te)),X!==r&&jr()!==r?((lr=(function(){var i=u,b,m,x,tr,Cr,gr;t.substr(u,3).toLowerCase()==="for"?(b=t.substr(u,3),u+=3):(b=r,P===0&&Mr(Pu)),b!==r&&jr()!==r&&(m=js())!==r&&jr()!==r?(x=u,(tr=Vu())!==r&&(Cr=jr())!==r&&(gr=js())!==r?x=tr=[tr,Cr,gr]:(u=x,x=r),x===r&&(x=null),x!==r&&(tr=jr())!==r?((Cr=(function(){var gt=u,Gt;return G0()!==r&&jr()!==r&&(Gt=(function(){var rn,xn,f,y,S,W,vr,_r;if(rn=u,(xn=js())!==r){for(f=[],y=u,(S=jr())!==r&&(W=Mn())!==r&&(vr=jr())!==r&&(_r=js())!==r?y=S=[S,W,vr,_r]:(u=y,y=r);y!==r;)f.push(y),y=u,(S=jr())!==r&&(W=Mn())!==r&&(vr=jr())!==r&&(_r=js())!==r?y=S=[S,W,vr,_r]:(u=y,y=r);f===r?(u=rn,rn=r):(yt=rn,xn=ye(xn,f),rn=xn)}else u=rn,rn=r;return rn})())!==r?(yt=gt,gt=Gt):(u=gt,gt=r),gt})())===r&&(Cr=null),Cr===r?(u=i,i=r):(yt=i,Rt=Cr,b={user:m,host:(Yr=x)&&Yr[2],role_list:Rt},i=b)):(u=i,i=r)):(u=i,i=r);var Yr,Rt;return i})())===r&&(lr=null),lr===r?(u=N,N=r):(yt=N,wr=lr,H={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"show",keyword:"grants",for:wr}},N=H)):(u=N,N=r)):(u=N,N=r);var wr;return N})()))))))));var Tn,jn,ts,d;return U})())===r&&(E=(function(){var U=u,Z,sr;(Z=ot())===r&&(Z=(function(){var Sr=u,tt,Ct,Xt;return t.substr(u,8).toLowerCase()==="describe"?(tt=t.substr(u,8),u+=8):(tt=r,P===0&&Mr(y0)),tt===r?(u=Sr,Sr=r):(Ct=u,P++,Xt=qs(),P--,Xt===r?Ct=void 0:(u=Ct,Ct=r),Ct===r?(u=Sr,Sr=r):(yt=Sr,Sr=tt="DESCRIBE")),Sr})()),Z!==r&&jr()!==r&&(sr=js())!==r?(yt=U,xr=sr,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"desc",table:xr}},U=Z):(u=U,U=r);var xr;return U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct,Xt,Vt;t.substr(u,5).toLowerCase()==="grant"?(Z=t.substr(u,5),u+=5):(Z=r,P===0&&Mr(q0)),Z!==r&&jr()!==r&&(sr=(function(){var H,X,lr,wr,i,b,m,x;if(H=u,(X=Ir())!==r){for(lr=[],wr=u,(i=jr())!==r&&(b=Mn())!==r&&(m=jr())!==r&&(x=Ir())!==r?wr=i=[i,b,m,x]:(u=wr,wr=r);wr!==r;)lr.push(wr),wr=u,(i=jr())!==r&&(b=Mn())!==r&&(m=jr())!==r&&(x=Ir())!==r?wr=i=[i,b,m,x]:(u=wr,wr=r);lr===r?(u=H,H=r):(yt=H,X=Fi(X,lr),H=X)}else u=H,H=r;return H})())!==r&&jr()!==r&&(xr=Yo())!==r&&jr()!==r?((Sr=(function(){var H=u,X;return(X=of())===r&&(t.substr(u,8).toLowerCase()==="function"?(X=t.substr(u,8),u+=8):(X=r,P===0&&Mr(i0)),X===r&&(t.substr(u,9).toLowerCase()==="procedure"?(X=t.substr(u,9),u+=9):(X=r,P===0&&Mr(mb)))),X!==r&&(yt=H,X={type:"origin",value:X.toUpperCase()}),H=X})())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=(function(){var H=u,X=u,lr,wr,i;return(lr=js())===r&&(lr=as()),lr!==r&&(wr=jr())!==r&&(i=An())!==r?X=lr=[lr,wr,i]:(u=X,X=r),X===r&&(X=null),X!==r&&(lr=jr())!==r?((wr=js())===r&&(wr=as()),wr===r?(u=H,H=r):(yt=H,X=(function(b,m){return{prefix:b&&b[0],name:m}})(X,wr),H=X)):(u=H,H=r),H})())!==r&&jr()!==r&&(Ct=Tt())!==r&&jr()!==r&&(Xt=er())!==r&&jr()!==r?((Vt=(function(){var H=u,X,lr;return va()!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="grant"?(X=t.substr(u,5),u+=5):(X=r,P===0&&Mr(q0)),X!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="option"?(lr=t.substr(u,6),u+=6):(lr=r,P===0&&Mr(df)),lr===r?(u=H,H=r):(yt=H,H={type:"origin",value:"with grant option"})):(u=H,H=r)):(u=H,H=r),H})())===r&&(Vt=null),Vt===r?(u=U,U=r):(yt=U,In=sr,Tn=Sr,jn=tt,ts=Ct,d=Xt,N=Vt,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"grant",keyword:"priv",objects:In,on:{object_type:Tn,priv_level:[jn]},to_from:ts[0],user_or_roles:d,with:N}},U=Z)):(u=U,U=r)):(u=U,U=r);var In,Tn,jn,ts,d,N;return U===r&&(U=u,t.substr(u,5)==="GRANT"?(Z="GRANT",u+=5):(Z=r,P===0&&Mr(kv)),Z!==r&&jr()!==r?(t.substr(u,5)==="PROXY"?(sr="PROXY",u+=5):(sr=r,P===0&&Mr(Op)),sr!==r&&jr()!==r&&(xr=Yo())!==r&&jr()!==r&&(Sr=s())!==r&&jr()!==r&&(tt=Tt())!==r&&jr()!==r&&(Ct=er())!==r&&jr()!==r?((Xt=Lt())===r&&(Xt=null),Xt===r?(u=U,U=r):(yt=U,Z=(function(H,X,lr,wr){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:"grant",keyword:"proxy",objects:[{priv:{type:"origin",value:"proxy"}}],on:H,to_from:X[0],user_or_roles:lr,with:wr}}})(Sr,tt,Ct,Xt),U=Z)):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,t.substr(u,5)==="GRANT"?(Z="GRANT",u+=5):(Z=r,P===0&&Mr(kv)),Z!==r&&jr()!==r&&(sr=(function(){var H,X,lr,wr,i,b,m,x;if(H=u,(X=js())!==r){for(lr=[],wr=u,(i=jr())!==r&&(b=Mn())!==r&&(m=jr())!==r&&(x=js())!==r?wr=i=[i,b,m,x]:(u=wr,wr=r);wr!==r;)lr.push(wr),wr=u,(i=jr())!==r&&(b=Mn())!==r&&(m=jr())!==r&&(x=js())!==r?wr=i=[i,b,m,x]:(u=wr,wr=r);lr===r?(u=H,H=r):(yt=H,X=Fi(X,lr),H=X)}else u=H,H=r;return H})())!==r&&jr()!==r&&(xr=Tt())!==r&&jr()!==r&&(Sr=er())!==r&&jr()!==r?((tt=Lt())===r&&(tt=null),tt===r?(u=U,U=r):(yt=U,Z=(function(H,X,lr,wr){return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:"grant",keyword:"role",objects:H.map(i=>({priv:{type:"string",value:i}})),to_from:X[0],user_or_roles:lr,with:wr}}})(sr,xr,Sr,tt),U=Z)):(u=U,U=r))),U})())===r&&(E=(function(){var U=u,Z,sr;(Z=(function(){var Sr=u,tt,Ct,Xt;return t.substr(u,7).toLowerCase()==="explain"?(tt=t.substr(u,7),u+=7):(tt=r,P===0&&Mr(Qb)),tt===r?(u=Sr,Sr=r):(Ct=u,P++,Xt=qs(),P--,Xt===r?Ct=void 0:(u=Ct,Ct=r),Ct===r?(u=Sr,Sr=r):Sr=tt=[tt,Ct]),Sr})())!==r&&jr()!==r&&(sr=vs())!==r?(yt=U,xr=sr,Z={tableList:Array.from(ls),columnList:fr(ws),ast:{type:"explain",expr:xr}},U=Z):(u=U,U=r);var xr;return U})())===r&&(E=(function(){var U=u,Z,sr,xr;return t.substr(u,6).toLowerCase()==="commit"?(Z=t.substr(u,6),u+=6):(Z=r,P===0&&Mr(ua)),Z===r&&(t.substr(u,8).toLowerCase()==="rollback"?(Z=t.substr(u,8),u+=8):(Z=r,P===0&&Mr(Sa))),Z!==r&&(yt=U,Z={type:"transaction",expr:{action:{type:"origin",value:Z}}}),(U=Z)===r&&(U=u,t.substr(u,5).toLowerCase()==="begin"?(Z=t.substr(u,5),u+=5):(Z=r,P===0&&Mr(ma)),Z!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="work"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr(Bi)),sr===r&&(t.substr(u,11).toLowerCase()==="transaction"?(sr=t.substr(u,11),u+=11):(sr=r,P===0&&Mr(sa))),sr===r&&(sr=null),sr!==r&&jr()!==r?((xr=Zo())===r&&(xr=null),xr===r?(u=U,U=r):(yt=U,Z=(function(Sr,tt){return{type:"transaction",expr:{action:{type:"origin",value:"begin"},keyword:Sr,modes:tt}}})(sr,xr),U=Z)):(u=U,U=r)):(u=U,U=r),U===r&&(U=u,t.substr(u,5).toLowerCase()==="start"?(Z=t.substr(u,5),u+=5):(Z=r,P===0&&Mr(di)),Z!==r&&jr()!==r?(t.substr(u,11).toLowerCase()==="transaction"?(sr=t.substr(u,11),u+=11):(sr=r,P===0&&Mr(Hi)),sr!==r&&jr()!==r?((xr=Zo())===r&&(xr=null),xr===r?(u=U,U=r):(yt=U,Z=(function(Sr,tt){return{type:"transaction",expr:{action:{type:"origin",value:"start"},keyword:Sr,modes:tt}}})(sr,xr),U=Z)):(u=U,U=r)):(u=U,U=r))),U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts,d,N,H,X,lr,wr,i,b,m,x,tr,Cr;t.substr(u,4).toLowerCase()==="load"?(Z=t.substr(u,4),u+=4):(Z=r,P===0&&Mr(Fc)),Z!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="data"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr(Eb)),sr!==r&&jr()!==r?(t.substr(u,12).toLowerCase()==="low_priority"?(xr=t.substr(u,12),u+=12):(xr=r,P===0&&Mr(xv)),xr===r&&(t.substr(u,10).toLowerCase()==="concurrent"?(xr=t.substr(u,10),u+=10):(xr=r,P===0&&Mr(lp))),xr===r&&(xr=null),xr!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="local"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(g0)),Sr===r&&(Sr=null),Sr!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="infile"?(tt=t.substr(u,6),u+=6):(tt=r,P===0&&Mr(Uv)),tt!==r&&jr()!==r&&(Ct=qn())!==r&&jr()!==r?((Xt=F())===r&&(Xt=null),Xt!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="into"?(Vt=t.substr(u,4),u+=4):(Vt=r,P===0&&Mr($f)),Vt!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="table"?(In=t.substr(u,5),u+=5):(In=r,P===0&&Mr(Tb)),In!==r&&jr()!==r&&(Tn=bs())!==r&&jr()!==r?((jn=Po())===r&&(jn=null),jn!==r&&jr()!==r?(ts=u,(d=Dl())!==r&&(N=jr())!==r&&(H=qn())!==r?ts=d=[d,N,H]:(u=ts,ts=r),ts===r&&(ts=null),ts!==r&&(d=jr())!==r?((N=(function(){var gt=u,Gt,rn,xn,f,y,S,W,vr,_r,$r,at;t.substr(u,6).toLowerCase()==="fields"?(Gt=t.substr(u,6),u+=6):(Gt=r,P===0&&Mr(S0)),Gt===r&&(t.substr(u,7).toLowerCase()==="columns"?(Gt=t.substr(u,7),u+=7):(Gt=r,P===0&&Mr(Os))),Gt!==r&&jr()!==r?(rn=u,t.substr(u,10).toLowerCase()==="terminated"?(xn=t.substr(u,10),u+=10):(xn=r,P===0&&Mr(l0)),xn!==r&&(f=jr())!==r?(t.substr(u,2).toLowerCase()==="by"?(y=t.substr(u,2),u+=2):(y=r,P===0&&Mr(pe)),y!==r&&(S=jr())!==r&&(W=qn())!==r?rn=xn=[xn,f,y,S,W]:(u=rn,rn=r)):(u=rn,rn=r),rn===r&&(rn=null),rn!==r&&(xn=jr())!==r?(f=u,t.substr(u,10).toLowerCase()==="optionally"?(y=t.substr(u,10),u+=10):(y=r,P===0&&Mr(Ov)),y===r&&(y=null),y!==r&&(S=jr())!==r?(t.substr(u,8).toLowerCase()==="enclosed"?(W=t.substr(u,8),u+=8):(W=r,P===0&&Mr(lv)),W!==r&&(vr=jr())!==r?(t.substr(u,2).toLowerCase()==="by"?(_r=t.substr(u,2),u+=2):(_r=r,P===0&&Mr(pe)),_r!==r&&($r=jr())!==r&&(at=qn())!==r?f=y=[y,S,W,vr,_r,$r,at]:(u=f,f=r)):(u=f,f=r)):(u=f,f=r),f===r&&(f=null),f!==r&&(y=jr())!==r?(S=u,t.substr(u,7).toLowerCase()==="escaped"?(W=t.substr(u,7),u+=7):(W=r,P===0&&Mr(fi)),W!==r&&(vr=jr())!==r?(t.substr(u,2).toLowerCase()==="by"?(_r=t.substr(u,2),u+=2):(_r=r,P===0&&Mr(pe)),_r!==r&&($r=jr())!==r&&(at=qn())!==r?S=W=[W,vr,_r,$r,at]:(u=S,S=r)):(u=S,S=r),S===r&&(S=null),S===r?(u=gt,gt=r):(yt=gt,St=Gt,sn=f,Nn=S,(Kt=rn)&&(Kt[4].prefix="TERMINATED BY"),sn&&(sn[6].prefix=(sn[0]&&sn[0].toUpperCase()==="OPTIONALLY"?"OPTIONALLY ":"")+"ENCLOSED BY"),Nn&&(Nn[4].prefix="ESCAPED BY"),Gt={keyword:St,terminated:Kt&&Kt[4],enclosed:sn&&sn[6],escaped:Nn&&Nn[4]},gt=Gt)):(u=gt,gt=r)):(u=gt,gt=r)):(u=gt,gt=r);var St,Kt,sn,Nn;return gt})())===r&&(N=null),N!==r&&(H=jr())!==r?((X=(function(){var gt=u,Gt,rn,xn;return t.substr(u,5).toLowerCase()==="lines"?(Gt=t.substr(u,5),u+=5):(Gt=r,P===0&&Mr(ec)),Gt!==r&&jr()!==r?((rn=wi())===r&&(rn=null),rn!==r&&jr()!==r?((xn=wi())===r&&(xn=null),xn===r?(u=gt,gt=r):(yt=gt,Gt=(function(f,y,S){if(y&&S&&y.type===S.type)throw Error("LINES cannot be specified twice");return y&&Reflect.deleteProperty(y,"type"),S&&Reflect.deleteProperty(S,"type"),{keyword:f,...y||{},...S||{}}})(Gt,rn,xn),gt=Gt)):(u=gt,gt=r)):(u=gt,gt=r),gt})())===r&&(X=null),X!==r&&jr()!==r?(lr=u,(wr=_c())!==r&&(i=jr())!==r&&(b=gu())!==r&&(m=jr())!==r?(t.substr(u,5).toLowerCase()==="lines"?(x=t.substr(u,5),u+=5):(x=r,P===0&&Mr(ec)),x===r&&(t.substr(u,4).toLowerCase()==="rows"?(x=t.substr(u,4),u+=4):(x=r,P===0&&Mr(cp))),x===r?(u=lr,lr=r):lr=wr=[wr,i,b,m,x]):(u=lr,lr=r),lr===r&&(lr=null),lr!==r&&(wr=jr())!==r?((i=ut())===r&&(i=null),i!==r&&(b=jr())!==r?(m=u,(x=Uu())!==r&&(tr=jr())!==r&&(Cr=so())!==r?m=x=[x,tr,Cr]:(u=m,m=r),m===r&&(m=null),m===r?(u=U,U=r):(yt=U,Yr=i,Rt=m,Z={type:"load_data",mode:xr,local:Sr,file:Ct,replace_ignore:Xt,table:Tn,partition:jn,character_set:ts,fields:N,lines:X,ignore:(gr=lr)&&{count:gr[2],suffix:gr[4]},column:Yr,set:Rt&&Rt[2]},U=Z)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r);var gr,Yr,Rt;return U})()),E}function kt(){var E;return(E=Ve())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt;return(Z=jr())===r?(u=U,U=r):((sr=bn())===r&&(sr=null),sr!==r&&jr()!==r&&Ai()!==r&&jr()!==r&&(xr=xt())!==r&&jr()!==r&&Uu()!==r&&jr()!==r&&(Sr=so())!==r&&jr()!==r?((tt=Ws())===r&&(tt=null),tt===r?(u=U,U=r):(yt=U,Z=(function(Ct,Xt,Vt,In){let Tn={};return Xt&&Xt.forEach(jn=>{let{db:ts,as:d,table:N,join:H}=jn,X=H?"select":"update";ts&&(Tn[N]=ts),N&&ls.add(`${X}::${ts}::${N}`)}),Vt&&Vt.forEach(jn=>{if(jn.table){let ts=On(jn.table);ls.add(`update::${Tn[ts]||null}::${ts}`)}ws.add(`update::${jn.table}::${jn.column}`)}),{tableList:Array.from(ls),columnList:fr(ws),ast:{with:Ct,type:"update",table:Xt,set:Vt,where:In}}})(sr,xr,Sr,tt),U=Z)):(u=U,U=r)),U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In;return(Z=F())!==r&&jr()!==r?((sr=_c())===r&&(sr=null),sr!==r&&jr()!==r?((xr=ef())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=bs())!==r&&jr()!==r?((tt=Po())===r&&(tt=null),tt!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Ct=Cn())!==r&&jr()!==r&&_s()!==r&&jr()!==r&&(Xt=su())!==r&&jr()!==r?((Vt=Na())===r&&(Vt=null),Vt!==r&&jr()!==r?((In=Mu())===r&&(In=null),In===r?(u=U,U=r):(yt=U,Z=(function(Tn,jn,ts,d,N,H,X,lr,wr){if(d&&(ls.add(`insert::${d.db}::${d.table}`),d.as=null),H){let b=d&&d.table||null;Array.isArray(X.values)&&X.values.forEach((m,x)=>{if(m.value.length!=H.length)throw Error("Error: column count doesn't match value count at row "+(x+1))}),H.forEach(m=>ws.add(`insert::${b}::${m}`))}let i=[jn,ts].filter(b=>b).map(b=>b[0]&&b[0].toLowerCase()).join(" ");return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:Tn,table:[d],columns:H,values:X,partition:N,prefix:i,on_duplicate_update:lr,returning:wr}}})(Z,sr,xr,Sr,tt,Ct,Xt,Vt,In),U=Z)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r),U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct,Xt,Vt;return(Z=F())!==r&&jr()!==r?((sr=_c())===r&&(sr=null),sr!==r&&jr()!==r?((xr=ef())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=bs())!==r&&jr()!==r?((tt=Po())===r&&(tt=null),tt!==r&&jr()!==r&&(Ct=su())!==r&&jr()!==r?((Xt=Na())===r&&(Xt=null),Xt!==r&&jr()!==r?((Vt=Mu())===r&&(Vt=null),Vt===r?(u=U,U=r):(yt=U,Z=(function(In,Tn,jn,ts,d,N,H,X){ts&&(ls.add(`insert::${ts.db}::${ts.table}`),ws.add(`insert::${ts.table}::(.*)`),ts.as=null);let lr=[Tn,jn].filter(wr=>wr).map(wr=>wr[0]&&wr[0].toLowerCase()).join(" ");return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:In,table:[ts],columns:null,values:N,partition:d,prefix:lr,on_duplicate_update:H,returning:X}}})(Z,sr,xr,Sr,tt,Ct,Xt,Vt),U=Z)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r),U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct,Xt,Vt;return(Z=F())!==r&&jr()!==r?((sr=_c())===r&&(sr=null),sr!==r&&jr()!==r?((xr=ef())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=bs())!==r&&jr()!==r?((tt=Po())===r&&(tt=null),tt!==r&&jr()!==r&&Uu()!==r&&jr()!==r&&(Ct=so())!==r&&jr()!==r?((Xt=Na())===r&&(Xt=null),Xt!==r&&jr()!==r?((Vt=Mu())===r&&(Vt=null),Vt===r?(u=U,U=r):(yt=U,Z=(function(In,Tn,jn,ts,d,N,H,X){ts&&(ls.add(`insert::${ts.db}::${ts.table}`),ws.add(`insert::${ts.table}::(.*)`),ts.as=null);let lr=[Tn,jn].filter(wr=>wr).map(wr=>wr[0]&&wr[0].toLowerCase()).join(" ");return{tableList:Array.from(ls),columnList:fr(ws),ast:{type:In,table:[ts],columns:null,partition:d,prefix:lr,set:N,on_duplicate_update:H,returning:X}}})(Z,sr,xr,Sr,tt,Ct,Xt,Vt),U=Z)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r),U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct;return(Z=jr())===r?(u=U,U=r):((sr=bn())===r&&(sr=null),sr!==r&&jr()!==r&&sf()!==r&&jr()!==r?((xr=xt())===r&&(xr=null),xr!==r&&jr()!==r&&(Sr=yr())!==r&&jr()!==r?((tt=Ws())===r&&(tt=null),tt!==r&&jr()!==r?((Ct=Mu())===r&&(Ct=null),Ct===r?(u=U,U=r):(yt=U,Z=(function(Xt,Vt,In,Tn,jn){if(In&&(Array.isArray(In)?In:In.expr).forEach(ts=>{let{db:d,as:N,table:H,join:X}=ts,lr=X?"select":"delete";H&&ls.add(`${lr}::${d}::${H}`),X||ws.add(`delete::${H}::(.*)`)}),Vt===null&&In.length===1){let ts=In[0];Vt=[{db:ts.db,table:ts.table,as:ts.as,addition:!0}]}return{tableList:Array.from(ls),columnList:fr(ws),ast:{with:Xt,type:"delete",table:Vt,from:In,where:Tn,returning:jn}}})(sr,xr,Sr,tt,Ct),U=Z)):(u=U,U=r)):(u=U,U=r)):(u=U,U=r)),U})())===r&&(E=K())===r&&(E=(function(){for(var U=[],Z=_u();Z!==r;)U.push(Z),Z=_u();return U})()),E}function Js(){var E,U,Z,sr;return E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,5).toLowerCase()==="union"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(Af)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&jr()!==r?((Z=Xv())===r&&(Z=R()),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(sr=Z)?"union "+sr.toLowerCase():"union")):(u=E,E=r),E===r&&(E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,5).toLowerCase()==="minus"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(El)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(yt=E,U="minus"),(E=U)===r&&(E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,9).toLowerCase()==="intersect"?(Sr=t.substr(u,9),u+=9):(Sr=r,P===0&&Mr(w0)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(yt=E,U="intersect"),(E=U)===r&&(E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,6).toLowerCase()==="except"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(ul)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(yt=E,U="except"),E=U))),E}function Ve(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=mt())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Js())!==r&&(tt=jr())!==r&&(Ct=mt())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Js())!==r&&(tt=jr())!==r&&(Ct=mt())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z!==r&&(sr=jr())!==r?((xr=Is())===r&&(xr=null),xr!==r&&(Sr=jr())!==r?((tt=eo())===r&&(tt=null),tt===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt,In,Tn){let jn=Xt;for(let ts=0;ts<Vt.length;ts++)jn._next=Vt[ts][3],jn.set_op=Vt[ts][1],jn=jn._next;return In&&(Xt._orderby=In),Tn&&(Xt._limit=Tn),{tableList:Array.from(ls),columnList:fr(ws),ast:Xt}})(U,Z,xr,tt))):(u=E,E=r)):(u=E,E=r)}else u=E,E=r;return E}function co(){var E,U,Z;return E=u,(U=fn())!==r&&jr()!==r?((Z=Xu())===r&&(Z=ot()),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=Pn(U,Z))):(u=E,E=r),E===r&&(E=(function(){var sr=u,xr,Sr;return(xr=pn())!==r&&jr()!==r?((Sr=Xu())===r&&(Sr=ot()),Sr===r&&(Sr=null),Sr===r?(u=sr,sr=r):(yt=sr,xr=Pn(xr,Sr),sr=xr)):(u=sr,sr=r),sr})()),E}function _t(){var E,U;return E=u,t.substr(u,2).toLowerCase()==="if"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(ou)),U!==r&&jr()!==r&&Et()!==r&&jr()!==r&&it()!==r?(yt=E,E=U="IF NOT EXISTS"):(u=E,E=r),E}function Eo(){var E,U,Z;return E=u,(U=s())!==r&&jr()!==r?((Z=(function(){var sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn;return sr=u,t.substr(u,10)===Hs?(xr=Hs,u+=10):(xr=r,P===0&&Mr(Uo)),xr!==r&&jr()!==r?(Sr=u,t.substr(u,4).toLowerCase()==="with"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(Ps)),tt!==r&&(Ct=jr())!==r&&(Xt=js())!==r?Sr=tt=[tt,Ct,Xt]:(u=Sr,Sr=r),Sr===r&&(Sr=null),Sr!==r&&(tt=jr())!==r?(t.substr(u,2).toLowerCase()==="by"?(Ct=t.substr(u,2),u+=2):(Ct=r,P===0&&Mr(pe)),Ct!==r&&(Xt=jr())!==r?(t.substr(u,6).toLowerCase()==="random"?(Vt=t.substr(u,6),u+=6):(Vt=r,P===0&&Mr(_o)),Vt!==r&&jr()!==r?(t.substr(u,8).toLowerCase()==="password"?(In=t.substr(u,8),u+=8):(In=r,P===0&&Mr(Gi)),In===r?(u=sr,sr=r):(yt=sr,sr=xr={keyword:["identified",(Tn=Sr)&&Tn[0].toLowerCase()].filter(jn=>jn).join(" "),auth_plugin:Tn&&Tn[2],value:{prefix:"by",type:"origin",value:"random password"}})):(u=sr,sr=r)):(u=sr,sr=r)):(u=sr,sr=r)):(u=sr,sr=r),sr===r&&(sr=u,t.substr(u,10)===Hs?(xr=Hs,u+=10):(xr=r,P===0&&Mr(Uo)),xr!==r&&jr()!==r?(Sr=u,t.substr(u,4).toLowerCase()==="with"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(Ps)),tt!==r&&(Ct=jr())!==r&&(Xt=js())!==r?Sr=tt=[tt,Ct,Xt]:(u=Sr,Sr=r),Sr===r&&(Sr=null),Sr!==r&&(tt=jr())!==r?(t.substr(u,2).toLowerCase()==="by"?(Ct=t.substr(u,2),u+=2):(Ct=r,P===0&&Mr(pe)),Ct!==r&&(Xt=jr())!==r&&(Vt=A0())!==r?(yt=sr,sr=xr=(function(jn,ts){return ts.prefix="by",{keyword:["identified",jn&&jn[0].toLowerCase()].filter(d=>d).join(" "),auth_plugin:jn&&jn[2],value:ts}})(Sr,Vt)):(u=sr,sr=r)):(u=sr,sr=r)):(u=sr,sr=r),sr===r&&(sr=u,t.substr(u,10)===Hs?(xr=Hs,u+=10):(xr=r,P===0&&Mr(Uo)),xr!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="with"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(Ps)),Sr!==r&&(tt=jr())!==r&&(Ct=js())!==r&&(Xt=jr())!==r?(t.substr(u,2).toLowerCase()==="as"?(Vt=t.substr(u,2),u+=2):(Vt=r,P===0&&Mr(mi)),Vt!==r&&jr()!==r&&(In=A0())!==r?(yt=sr,sr=xr=(function(jn,ts){return ts.prefix="as",{keyword:"identified with",auth_plugin:jn&&jn[2],value:ts}})(Ct,In)):(u=sr,sr=r)):(u=sr,sr=r)):(u=sr,sr=r))),sr})())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U={user:U,auth_option:Z})):(u=E,E=r),E}function ao(){var E,U,Z;return E=u,t.substr(u,4).toLowerCase()==="none"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(dl)),U===r&&(t.substr(u,3).toLowerCase()==="ssl"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(Gl)),U===r&&(t.substr(u,4).toLowerCase()==="x509"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Fl)))),U!==r&&(yt=E,U={type:"origin",value:U}),(E=U)===r&&(E=u,t.substr(u,6).toLowerCase()==="cipher"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(nc)),U===r&&(t.substr(u,6).toLowerCase()==="issuer"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(xc)),U===r&&(t.substr(u,7).toLowerCase()==="subject"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(I0)))),U!==r&&jr()!==r&&(Z=A0())!==r?(yt=E,E=U=ji(U,Z)):(u=E,E=r)),E}function zo(){var E,U,Z;return E=u,t.substr(u,20).toLowerCase()==="max_queries_per_hour"?(U=t.substr(u,20),u+=20):(U=r,P===0&&Mr(qf)),U===r&&(t.substr(u,20).toLowerCase()==="max_updates_per_hour"?(U=t.substr(u,20),u+=20):(U=r,P===0&&Mr(Uc)),U===r&&(t.substr(u,24).toLowerCase()==="max_connections_per_hour"?(U=t.substr(u,24),u+=24):(U=r,P===0&&Mr(wc)),U===r&&(t.substr(u,20).toLowerCase()==="max_user_connections"?(U=t.substr(u,20),u+=20):(U=r,P===0&&Mr(Ll))))),U!==r&&jr()!==r&&(Z=gu())!==r?(yt=E,E=U=ji(U,Z)):(u=E,E=r),E}function no(){var E,U,Z,sr,xr,Sr;return E=u,t.substr(u,8).toLowerCase()==="password"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Gi)),U!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="expire"?(Z=t.substr(u,6),u+=6):(Z=r,P===0&&Mr(jl)),Z!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="default"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Oi)),sr===r&&(t.substr(u,5).toLowerCase()==="never"?(sr=t.substr(u,5),u+=5):(sr=r,P===0&&Mr(bb)),sr===r&&(sr=ct())),sr===r?(u=E,E=r):(yt=E,E=U={keyword:"password expire",value:typeof(Sr=sr)=="string"?{type:"origin",value:Sr}:Sr})):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,8).toLowerCase()==="password"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Gi)),U!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="history"?(Z=t.substr(u,7),u+=7):(Z=r,P===0&&Mr(Vi)),Z!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="default"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Oi)),sr===r&&(sr=gu()),sr===r?(u=E,E=r):(yt=E,E=U=(function(tt){return{keyword:"password history",value:typeof tt=="string"?{type:"origin",value:tt}:tt}})(sr))):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,8).toLowerCase()==="password"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Gi)),U!==r&&jr()!==r?(t.substr(u,5)==="REUSE"?(Z="REUSE",u+=5):(Z=r,P===0&&Mr(zc)),Z!==r&&jr()!==r&&(sr=ct())!==r?(yt=E,E=U=(function(tt){return{keyword:"password reuse",value:tt}})(sr)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,8).toLowerCase()==="password"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Gi)),U!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="require"?(Z=t.substr(u,7),u+=7):(Z=r,P===0&&Mr(af)),Z!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="current"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(kc)),sr!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="default"?(xr=t.substr(u,7),u+=7):(xr=r,P===0&&Mr(Oi)),xr===r&&(t.substr(u,8).toLowerCase()==="optional"?(xr=t.substr(u,8),u+=8):(xr=r,P===0&&Mr(vb))),xr===r?(u=E,E=r):(yt=E,E=U=(function(tt){return{keyword:"password require current",value:{type:"origin",value:tt}}})(xr))):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,21).toLowerCase()==="failed_login_attempts"?(U=t.substr(u,21),u+=21):(U=r,P===0&&Mr(Zc)),U!==r&&jr()!==r&&(Z=gu())!==r?(yt=E,E=U=(function(tt){return{keyword:"failed_login_attempts",value:tt}})(Z)):(u=E,E=r),E===r&&(E=u,t.substr(u,18).toLowerCase()==="password_lock_time"?(U=t.substr(u,18),u+=18):(U=r,P===0&&Mr(nl)),U!==r&&jr()!==r?((Z=gu())===r&&(t.substr(u,9).toLowerCase()==="unbounded"?(Z=t.substr(u,9),u+=9):(Z=r,P===0&&Mr(Xf))),Z===r?(u=E,E=r):(yt=E,E=U=(function(tt){return{keyword:"password_lock_time",value:typeof tt=="string"?{type:"origin",value:tt}:tt}})(Z))):(u=E,E=r)))))),E}function Ke(){var E;return(E=lo())===r&&(E=Le())===r&&(E=rl())===r&&(E=(function(){var U;return(U=(function(){var Z=u,sr,xr,Sr,tt,Ct;(sr=xu())===r&&(sr=null),sr!==r&&jr()!==r?(t.substr(u,11).toLowerCase()==="primary key"?(xr=t.substr(u,11),u+=11):(xr=r,P===0&&Mr(Y0)),xr!==r&&jr()!==r?((Sr=qr())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=Ml())!==r&&jr()!==r?((Ct=bt())===r&&(Ct=null),Ct===r?(u=Z,Z=r):(yt=Z,Vt=xr,In=Sr,Tn=tt,jn=Ct,sr={constraint:(Xt=sr)&&Xt.constraint,definition:Tn,constraint_type:Vt.toLowerCase(),keyword:Xt&&Xt.keyword,index_type:In,resource:"constraint",index_options:jn},Z=sr)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r);var Xt,Vt,In,Tn,jn;return Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct,Xt,Vt;(sr=xu())===r&&(sr=null),sr!==r&&jr()!==r&&(xr=Pt())!==r&&jr()!==r?((Sr=g())===r&&(Sr=Gr()),Sr===r&&(Sr=null),Sr!==r&&jr()!==r?((tt=Go())===r&&(tt=null),tt!==r&&jr()!==r?((Ct=qr())===r&&(Ct=null),Ct!==r&&jr()!==r&&(Xt=Ml())!==r&&jr()!==r?((Vt=bt())===r&&(Vt=null),Vt===r?(u=Z,Z=r):(yt=Z,Tn=xr,jn=Sr,ts=tt,d=Ct,N=Xt,H=Vt,sr={constraint:(In=sr)&&In.constraint,definition:N,constraint_type:jn&&`${Tn.toLowerCase()} ${jn.toLowerCase()}`||Tn.toLowerCase(),keyword:In&&In.keyword,index_type:d,index:ts,resource:"constraint",index_options:H},Z=sr)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r);var In,Tn,jn,ts,d,N,H;return Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct;(sr=xu())===r&&(sr=null),sr!==r&&jr()!==r?(t.substr(u,11).toLowerCase()==="foreign key"?(xr=t.substr(u,11),u+=11):(xr=r,P===0&&Mr(Fb)),xr!==r&&jr()!==r?((Sr=Go())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=Zr())!==r&&jr()!==r?((Ct=si())===r&&(Ct=null),Ct===r?(u=Z,Z=r):(yt=Z,Vt=xr,In=Sr,Tn=tt,jn=Ct,sr={constraint:(Xt=sr)&&Xt.constraint,definition:Tn,constraint_type:Vt,keyword:Xt&&Xt.keyword,index:In,resource:"constraint",reference_definition:jn},Z=sr)):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r);var Xt,Vt,In,Tn,jn;return Z})())===r&&(U=(function(){var Z=u,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn;return(sr=xu())===r&&(sr=null),sr!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="check"?(xr=t.substr(u,5),u+=5):(xr=r,P===0&&Mr(Ki)),xr!==r&&jr()!==r?(Sr=u,t.substr(u,3).toLowerCase()==="not"?(tt=t.substr(u,3),u+=3):(tt=r,P===0&&Mr(N0)),tt!==r&&(Ct=jr())!==r?(t.substr(u,3).toLowerCase()==="for"?(Xt=t.substr(u,3),u+=3):(Xt=r,P===0&&Mr(Pu)),Xt!==r&&(Vt=jr())!==r?(t.substr(u,11).toLowerCase()==="replication"?(In=t.substr(u,11),u+=11):(In=r,P===0&&Mr(ov)),In!==r&&(Tn=jr())!==r?Sr=tt=[tt,Ct,Xt,Vt,In,Tn]:(u=Sr,Sr=r)):(u=Sr,Sr=r)):(u=Sr,Sr=r),Sr===r&&(Sr=null),Sr!==r&&(tt=cs())!==r&&(Ct=jr())!==r&&(Xt=gn())!==r&&(Vt=jr())!==r&&(In=_s())!==r?(yt=Z,sr=(function(jn,ts,d,N){return{constraint_type:ts.toLowerCase(),keyword:jn&&jn.keyword,constraint:jn&&jn.constraint,index_type:d&&{keyword:"not for replication"},definition:[N],resource:"constraint"}})(sr,xr,Sr,Xt),Z=sr):(u=Z,Z=r)):(u=Z,Z=r)):(u=Z,Z=r),Z})()),U})()),E}function yo(){var E,U,Z,sr,xr;return E=u,(U=(function(){var Sr=u,tt;return(tt=(function(){var Ct=u,Xt,Vt,In;return t.substr(u,8).toLowerCase()==="not null"?(Xt=t.substr(u,8),u+=8):(Xt=r,P===0&&Mr(xs)),Xt===r?(u=Ct,Ct=r):(Vt=u,P++,In=qs(),P--,In===r?Vt=void 0:(u=Vt,Vt=r),Vt===r?(u=Ct,Ct=r):Ct=Xt=[Xt,Vt]),Ct})())!==r&&(yt=Sr,tt={type:"not null",value:"not null"}),Sr=tt})())===r&&(U=ap()),U!==r&&(yt=E,(xr=U)&&!xr.value&&(xr.value="null"),U={nullable:xr}),(E=U)===r&&(E=u,(U=(function(){var Sr=u,tt;return rv()!==r&&jr()!==r&&(tt=fn())!==r?(yt=Sr,Sr={type:"default",value:tt}):(u=Sr,Sr=r),Sr})())!==r&&(yt=E,U={default_val:U}),(E=U)===r&&(E=u,t.substr(u,14).toLowerCase()==="auto_increment"?(U=t.substr(u,14),u+=14):(U=r,P===0&&Mr(Ss)),U!==r&&(yt=E,U={auto_increment:U.toLowerCase()}),(E=U)===r&&(E=u,t.substr(u,6).toLowerCase()==="unique"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(te)),U!==r&&jr()!==r?(t.substr(u,3).toLowerCase()==="key"?(Z=t.substr(u,3),u+=3):(Z=r,P===0&&Mr(ce)),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Sr){let tt=["unique"];return Sr&&tt.push(Sr),{unique:tt.join(" ").toLowerCase("")}})(Z))):(u=E,E=r),E===r&&(E=u,t.substr(u,7).toLowerCase()==="primary"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(He)),U===r&&(U=null),U!==r&&jr()!==r?(t.substr(u,3).toLowerCase()==="key"?(Z=t.substr(u,3),u+=3):(Z=r,P===0&&Mr(ce)),Z===r?(u=E,E=r):(yt=E,E=U=(function(Sr){let tt=[];return Sr&&tt.push("primary"),tt.push("key"),{primary_key:tt.join(" ").toLowerCase("")}})(U))):(u=E,E=r),E===r&&(E=u,(U=No())!==r&&(yt=E,U={comment:U}),(E=U)===r&&(E=u,(U=Au())!==r&&(yt=E,U={collate:U}),(E=U)===r&&(E=u,(U=(function(){var Sr=u,tt,Ct;return t.substr(u,13).toLowerCase()==="column_format"?(tt=t.substr(u,13),u+=13):(tt=r,P===0&&Mr(cf)),tt!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="fixed"?(Ct=t.substr(u,5),u+=5):(Ct=r,P===0&&Mr(ri)),Ct===r&&(t.substr(u,7).toLowerCase()==="dynamic"?(Ct=t.substr(u,7),u+=7):(Ct=r,P===0&&Mr(t0)),Ct===r&&(t.substr(u,7).toLowerCase()==="default"?(Ct=t.substr(u,7),u+=7):(Ct=r,P===0&&Mr(Oi)))),Ct===r?(u=Sr,Sr=r):(yt=Sr,tt={type:"column_format",value:Ct.toLowerCase()},Sr=tt)):(u=Sr,Sr=r),Sr})())!==r&&(yt=E,U={column_format:U}),(E=U)===r&&(E=u,(U=(function(){var Sr=u,tt,Ct;return t.substr(u,7).toLowerCase()==="storage"?(tt=t.substr(u,7),u+=7):(tt=r,P===0&&Mr(n0)),tt!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="disk"?(Ct=t.substr(u,4),u+=4):(Ct=r,P===0&&Mr(Dc)),Ct===r&&(t.substr(u,6).toLowerCase()==="memory"?(Ct=t.substr(u,6),u+=6):(Ct=r,P===0&&Mr(s0))),Ct===r?(u=Sr,Sr=r):(yt=Sr,tt={type:"storage",value:Ct.toLowerCase()},Sr=tt)):(u=Sr,Sr=r),Sr})())!==r&&(yt=E,U={storage:U}),(E=U)===r&&(E=u,(U=si())!==r&&(yt=E,U={reference_definition:U}),(E=U)===r&&(E=u,(U=(function(){var Sr=u,tt,Ct,Xt,Vt,In,Tn,jn;return(tt=xu())===r&&(tt=null),tt!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="check"?(Ct=t.substr(u,5),u+=5):(Ct=r,P===0&&Mr(Ki)),Ct!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Xt=gn())!==r&&jr()!==r&&_s()!==r&&jr()!==r?(Vt=u,(In=Et())===r&&(In=null),In!==r&&(Tn=jr())!==r?(t.substr(u,8).toLowerCase()==="enforced"?(jn=t.substr(u,8),u+=8):(jn=r,P===0&&Mr(e0)),jn===r?(u=Vt,Vt=r):Vt=In=[In,Tn,jn]):(u=Vt,Vt=r),Vt===r&&(Vt=null),Vt===r?(u=Sr,Sr=r):(yt=Sr,tt=(function(ts,d,N,H){let X=[];return H&&X.push(H[0],H[2]),{constraint_type:d.toLowerCase(),keyword:ts&&ts.keyword,constraint:ts&&ts.constraint,definition:[N],enforced:X.filter(lr=>lr).join(" ").toLowerCase(),resource:"constraint"}})(tt,Ct,Xt,Vt),Sr=tt)):(u=Sr,Sr=r)):(u=Sr,Sr=r),Sr})())!==r&&(yt=E,U={check:U}),(E=U)===r&&(E=u,(U=Dl())!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r&&(sr=qn())!==r?(yt=E,E=U=(function(Sr,tt,Ct){return{character_set:{type:Sr,value:Ct,symbol:tt}}})(U,Z,sr)):(u=E,E=r)):(u=E,E=r)))))))))))),E}function lo(){var E,U,Z,sr,xr;return E=u,(U=pn())!==r&&jr()!==r&&(Z=F0())!==r&&jr()!==r?((sr=(function(){var Sr=u,tt=u,Ct,Xt,Vt,In,Tn,jn;if((Ct=(function(){var d=u,N=u,H,X,lr;return t.substr(u,9).toLowerCase()==="generated"?(H=t.substr(u,9),u+=9):(H=r,P===0&&Mr(Rv)),H!==r&&(X=jr())!==r?(t.substr(u,6).toLowerCase()==="always"?(lr=t.substr(u,6),u+=6):(lr=r,P===0&&Mr(nv)),lr===r?(u=N,N=r):N=H=[H,X,lr]):(u=N,N=r),N!==r&&(yt=d,N=N.join("").toLowerCase()),d=N})())===r&&(Ct=null),Ct!==r&&(Xt=jr())!==r?(t.substr(u,2).toLowerCase()==="as"?(Vt=t.substr(u,2),u+=2):(Vt=r,P===0&&Mr(mi)),Vt===r?(u=tt,tt=r):tt=Ct=[Ct,Xt,Vt]):(u=tt,tt=r),tt!==r)if((Ct=jr())!==r)if((Xt=cs())!==r)if((Vt=jr())!==r)if((In=hi())===r&&(In=fn()),In!==r)if(jr()!==r)if(_s()!==r)if(jr()!==r){for(Tn=[],t.substr(u,6).toLowerCase()==="stored"?(jn=t.substr(u,6),u+=6):(jn=r,P===0&&Mr(sv)),jn===r&&(t.substr(u,7).toLowerCase()==="virtual"?(jn=t.substr(u,7),u+=7):(jn=r,P===0&&Mr(ev)));jn!==r;)Tn.push(jn),t.substr(u,6).toLowerCase()==="stored"?(jn=t.substr(u,6),u+=6):(jn=r,P===0&&Mr(sv)),jn===r&&(t.substr(u,7).toLowerCase()==="virtual"?(jn=t.substr(u,7),u+=7):(jn=r,P===0&&Mr(ev)));Tn===r?(u=Sr,Sr=r):(yt=Sr,ts=Tn,tt={type:"generated",expr:In,value:tt.filter(d=>typeof d=="string").join(" ").toLowerCase(),storage_type:ts&&ts[0]&&ts[0].toLowerCase()},Sr=tt)}else u=Sr,Sr=r;else u=Sr,Sr=r;else u=Sr,Sr=r;else u=Sr,Sr=r;else u=Sr,Sr=r;else u=Sr,Sr=r;else u=Sr,Sr=r;else u=Sr,Sr=r;var ts;return Sr})())===r&&(sr=null),sr!==r&&jr()!==r?((xr=(function(){var Sr,tt,Ct,Xt,Vt,In;if(Sr=u,(tt=yo())!==r)if(jr()!==r){for(Ct=[],Xt=u,(Vt=jr())!==r&&(In=yo())!==r?Xt=Vt=[Vt,In]:(u=Xt,Xt=r);Xt!==r;)Ct.push(Xt),Xt=u,(Vt=jr())!==r&&(In=yo())!==r?Xt=Vt=[Vt,In]:(u=Xt,Xt=r);Ct===r?(u=Sr,Sr=r):(yt=Sr,Sr=tt=(function(Tn,jn){let ts=Tn;for(let d=0;d<jn.length;d++)ts={...ts,...jn[d][1]};return ts})(tt,Ct))}else u=Sr,Sr=r;else u=Sr,Sr=r;return Sr})())===r&&(xr=null),xr===r?(u=E,E=r):(yt=E,E=U=(function(Sr,tt,Ct,Xt){return ws.add(`create::${Sr.table}::${Sr.column}`),{column:Sr,definition:tt,generated:Ct,resource:"column",...Xt||{}}})(U,Z,sr,xr))):(u=E,E=r)):(u=E,E=r),E}function Co(){var E,U,Z,sr,xr;return E=u,t.substr(u,7).toLowerCase()==="definer"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr($u)),U!==r&&jr()!==r&&w()!==r&&jr()!==r?((Z=Je())===r&&(Z=A0()),Z!==r&&jr()!==r?(t.charCodeAt(u)===64?(sr="@",u++):(sr=r,P===0&&Mr(Ue)),sr!==r&&jr()!==r?((xr=Je())===r&&(xr=A0()),xr===r?(u=E,E=r):(yt=E,E=U=(function(Sr,tt){return Xr("=",{type:"origin",value:"definer"},Xr(Sr,"@",tt))})(Z,xr))):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,7).toLowerCase()==="definer"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr($u)),U!==r&&jr()!==r&&w()!==r&&jr()!==r&&(Z=pu())!==r&&jr()!==r&&(sr=cs())!==r&&jr()!==r&&(xr=_s())!==r?(yt=E,E=U=Qe()):(u=E,E=r),E===r&&(E=u,t.substr(u,7).toLowerCase()==="definer"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr($u)),U!==r&&jr()!==r&&w()!==r&&jr()!==r&&(Z=pu())!==r?(yt=E,E=U=Qe()):(u=E,E=r))),E}function Au(){var E,U,Z;return E=u,(function(){var sr=u,xr,Sr,tt;return t.substr(u,7).toLowerCase()==="collate"?(xr=t.substr(u,7),u+=7):(xr=r,P===0&&Mr(u0)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="COLLATE")),sr})()!==r&&jr()!==r?((U=w())===r&&(U=null),U!==r&&jr()!==r&&(Z=js())!==r?(yt=E,E={type:"collate",keyword:"collate",collate:{name:Z,symbol:U}}):(u=E,E=r)):(u=E,E=r),E}function la(){var E,U,Z;return E=u,t.substr(u,2).toLowerCase()==="if"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(yc)),U!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="exists"?(Z=t.substr(u,6),u+=6):(Z=r,P===0&&Mr($c)),Z===r?(u=E,E=r):(yt=E,E=U="if exists")):(u=E,E=r),E}function da(){var E,U,Z;return E=u,t.substr(u,5).toLowerCase()==="first"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(Sf)),U!==r&&(yt=E,U={keyword:U}),(E=U)===r&&(E=u,t.substr(u,5).toLowerCase()==="after"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(R0)),U!==r&&jr()!==r&&(Z=pn())!==r?(yt=E,E=U=(function(sr,xr){return{keyword:sr,expr:xr}})(U,Z)):(u=E,E=r)),E}function Ia(){var E,U,Z;return(E=(function(){var sr=u,xr,Sr,tt,Ct,Xt;(xr=G())!==r&&jr()!==r?((Sr=z())===r&&(Sr=null),Sr!==r&&jr()!==r?((tt=_t())===r&&(tt=null),tt!==r&&jr()!==r&&(Ct=lo())!==r&&jr()!==r?((Xt=da())===r&&(Xt=null),Xt===r?(u=sr,sr=r):(yt=sr,Vt=Sr,In=tt,Tn=Ct,jn=Xt,xr={action:"add",...Tn,suffix:jn,keyword:Vt,if_not_exists:In,resource:"column",type:"alter"},sr=xr)):(u=sr,sr=r)):(u=sr,sr=r)):(u=sr,sr=r);var Vt,In,Tn,jn;return sr===r&&(sr=u,(xr=G())!==r&&jr()!==r&&(Sr=lo())!==r&&jr()!==r?((tt=da())===r&&(tt=null),tt===r?(u=sr,sr=r):(yt=sr,xr=(function(ts,d){return{action:"add",...ts,suffix:d,resource:"column",type:"alter"}})(Sr,tt),sr=xr)):(u=sr,sr=r)),sr})())===r&&(E=(function(){var sr=u,xr,Sr,tt,Ct,Xt;return(xr=ga())!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="primary"?(Sr=t.substr(u,7),u+=7):(Sr=r,P===0&&Mr(He)),Sr!==r&&(tt=jr())!==r&&(Ct=Gr())!==r?(yt=sr,sr=xr={action:"drop",key:"",keyword:"primary key",resource:"key",type:"alter"}):(u=sr,sr=r)):(u=sr,sr=r),sr===r&&(sr=u,(xr=ga())!==r&&jr()!==r?(Sr=u,t.substr(u,7).toLowerCase()==="foreign"?(tt=t.substr(u,7),u+=7):(tt=r,P===0&&Mr(Lb)),tt===r&&(tt=null),tt!==r&&(Ct=jr())!==r&&(Xt=Gr())!==r?Sr=tt=[tt,Ct,Xt]:(u=Sr,Sr=r),Sr===r&&(Sr=g()),Sr!==r&&(tt=jr())!==r&&(Ct=js())!==r?(yt=sr,xr=(function(Vt,In){let Tn=Array.isArray(Vt)?"key":"index";return{action:"drop",[Tn]:In,keyword:Array.isArray(Vt)?""+[Vt[0],Vt[2]].filter(jn=>jn).join(" ").toLowerCase():Vt.toLowerCase(),resource:Tn,type:"alter"}})(Sr,Ct),sr=xr):(u=sr,sr=r)):(u=sr,sr=r)),sr})())===r&&(E=(function(){var sr=u,xr,Sr,tt;return(xr=ga())!==r&&jr()!==r&&(Sr=z())!==r&&jr()!==r&&(tt=pn())!==r?(yt=sr,xr=(function(Ct,Xt){return{action:"drop",column:Xt,keyword:Ct,resource:"column",type:"alter"}})(Sr,tt),sr=xr):(u=sr,sr=r),sr===r&&(sr=u,(xr=ga())!==r&&jr()!==r&&(Sr=pn())!==r?(yt=sr,xr=(function(Ct){return{action:"drop",column:Ct,resource:"column",type:"alter"}})(Sr),sr=xr):(u=sr,sr=r)),sr})())===r&&(E=(function(){var sr=u,xr,Sr,tt,Ct;(xr=(function(){var In=u,Tn,jn,ts;return t.substr(u,6).toLowerCase()==="modify"?(Tn=t.substr(u,6),u+=6):(Tn=r,P===0&&Mr(lb)),Tn===r?(u=In,In=r):(jn=u,P++,ts=qs(),P--,ts===r?jn=void 0:(u=jn,jn=r),jn===r?(u=In,In=r):(yt=In,In=Tn="MODIFY")),In})())!==r&&jr()!==r?((Sr=z())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=lo())!==r&&jr()!==r?((Ct=da())===r&&(Ct=null),Ct===r?(u=sr,sr=r):(yt=sr,Xt=tt,Vt=Ct,xr={action:"modify",keyword:Sr,...Xt,suffix:Vt,resource:"column",type:"alter"},sr=xr)):(u=sr,sr=r)):(u=sr,sr=r);var Xt,Vt;return sr})())===r&&(E=(function(){var sr=u,xr,Sr;(xr=G())!==r&&jr()!==r&&(Sr=Le())!==r?(yt=sr,tt=Sr,xr={action:"add",type:"alter",...tt},sr=xr):(u=sr,sr=r);var tt;return sr})())===r&&(E=(function(){var sr=u,xr,Sr;(xr=G())!==r&&jr()!==r&&(Sr=rl())!==r?(yt=sr,tt=Sr,xr={action:"add",type:"alter",...tt},sr=xr):(u=sr,sr=r);var tt;return sr})())===r&&(E=(function(){var sr=u,xr,Sr,tt,Ct;return(xr=Si())!==r&&jr()!==r&&z()!==r&&jr()!==r&&(Sr=pn())!==r&&jr()!==r?((tt=Tt())===r&&(tt=Sc()),tt===r&&(tt=null),tt!==r&&jr()!==r&&(Ct=pn())!==r?(yt=sr,xr=(function(Xt,Vt,In){return{action:"rename",type:"alter",resource:"column",keyword:"column",old_column:Xt,prefix:Vt&&Vt[0].toLowerCase(),column:In}})(Sr,tt,Ct),sr=xr):(u=sr,sr=r)):(u=sr,sr=r),sr})())===r&&(E=(function(){var sr=u,xr,Sr,tt;(xr=Si())!==r&&jr()!==r?((Sr=Tt())===r&&(Sr=Sc()),Sr===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=js())!==r?(yt=sr,Xt=tt,xr={action:"rename",type:"alter",resource:"table",keyword:(Ct=Sr)&&Ct[0].toLowerCase(),table:Xt},sr=xr):(u=sr,sr=r)):(u=sr,sr=r);var Ct,Xt;return sr})())===r&&(E=ta())===r&&(E=li())===r&&(E=(function(){var sr=u,xr,Sr,tt,Ct,Xt;t.substr(u,6).toLowerCase()==="change"?(xr=t.substr(u,6),u+=6):(xr=r,P===0&&Mr(Bl)),xr!==r&&jr()!==r?((Sr=z())===r&&(Sr=null),Sr!==r&&jr()!==r&&(tt=pn())!==r&&jr()!==r&&(Ct=lo())!==r&&jr()!==r?((Xt=da())===r&&(Xt=null),Xt===r?(u=sr,sr=r):(yt=sr,Vt=Sr,In=Ct,Tn=Xt,xr={action:"change",old_column:tt,...In,keyword:Vt,resource:"column",type:"alter",suffix:Tn},sr=xr)):(u=sr,sr=r)):(u=sr,sr=r);var Vt,In,Tn;return sr})())===r&&(E=(function(){var sr=u,xr,Sr,tt,Ct;return t.substr(u,4).toLowerCase()==="drop"?(xr=t.substr(u,4),u+=4):(xr=r,P===0&&Mr(Vf)),xr===r&&(t.substr(u,8).toLowerCase()==="truncate"?(xr=t.substr(u,8),u+=8):(xr=r,P===0&&Mr(Vv)),xr===r&&(t.substr(u,7).toLowerCase()==="discard"?(xr=t.substr(u,7),u+=7):(xr=r,P===0&&Mr(db)),xr===r&&(t.substr(u,6).toLowerCase()==="import"?(xr=t.substr(u,6),u+=6):(xr=r,P===0&&Mr(Of)),xr===r&&(t.substr(u,8).toLowerCase()==="coalesce"?(xr=t.substr(u,8),u+=8):(xr=r,P===0&&Mr(Pc)),xr===r&&(t.substr(u,7).toLowerCase()==="analyze"?(xr=t.substr(u,7),u+=7):(xr=r,P===0&&Mr(H0)),xr===r&&(t.substr(u,5).toLowerCase()==="check"?(xr=t.substr(u,5),u+=5):(xr=r,P===0&&Mr(Ki)))))))),xr!==r&&jr()!==r&&(Sr=Tv())!==r&&jr()!==r&&(tt=ut())!==r&&jr()!==r?(t.substr(u,10).toLowerCase()==="tablespace"?(Ct=t.substr(u,10),u+=10):(Ct=r,P===0&&Mr(bf)),Ct===r&&(Ct=null),Ct===r?(u=sr,sr=r):(yt=sr,xr=(function(Xt,Vt,In,Tn){let jn={action:Xt.toLowerCase(),keyword:Vt,resource:"partition",type:"alter",partitions:In};return Tn&&(jn.suffix={keyword:Tn}),jn})(xr,Sr,tt,Ct),sr=xr)):(u=sr,sr=r),sr===r&&(sr=u,(xr=G())!==r&&jr()!==r&&(Sr=Tv())!==r&&jr()!==r&&(tt=cs())!==r&&jr()!==r&&(Ct=(function(){var Xt,Vt,In,Tn,jn,ts,d,N;if(Xt=u,(Vt=Wt())!==r){for(In=[],Tn=u,(jn=jr())!==r&&(ts=Mn())!==r&&(d=jr())!==r&&(N=Wt())!==r?Tn=jn=[jn,ts,d,N]:(u=Tn,Tn=r);Tn!==r;)In.push(Tn),Tn=u,(jn=jr())!==r&&(ts=Mn())!==r&&(d=jr())!==r&&(N=Wt())!==r?Tn=jn=[jn,ts,d,N]:(u=Tn,Tn=r);In===r?(u=Xt,Xt=r):(yt=Xt,Vt=Dn(Vt,In),Xt=Vt)}else u=Xt,Xt=r;return Xt})())!==r&&jr()!==r&&_s()!==r?(yt=sr,sr=xr={action:"add",keyword:Sr,resource:"partition",type:"alter",partitions:Ct}):(u=sr,sr=r)),sr})())===r&&(E=u,(U=bc())!==r&&(yt=E,(Z=U).resource=Z.keyword,Z[Z.keyword]=Z.value,delete Z.value,U={type:"alter",...Z}),E=U),E}function Wt(){var E,U,Z,sr,xr;return E=u,Tv()!==r&&jr()!==r&&(U=qn())!==r&&jr()!==r&&m0()!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="less"?(Z=t.substr(u,4),u+=4):(Z=r,P===0&&Mr(Rl)),Z!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="than"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr(ff)),sr!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(xr=gu())!==r&&jr()!==r&&_s()!==r?(yt=E,E={name:U,value:{type:"less than",expr:xr,parentheses:!0}}):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E}function ta(){var E,U,Z,sr;return E=u,t.substr(u,9).toLowerCase()==="algorithm"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(ei)),U!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="default"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Oi)),sr===r&&(t.substr(u,7).toLowerCase()==="instant"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Fa)),sr===r&&(t.substr(u,7).toLowerCase()==="inplace"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Kf)),sr===r&&(t.substr(u,4).toLowerCase()==="copy"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr(Nv))))),sr===r?(u=E,E=r):(yt=E,E=U={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:Z,algorithm:sr})):(u=E,E=r)):(u=E,E=r),E}function li(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="lock"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(lf)),U!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="default"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Oi)),sr===r&&(t.substr(u,4).toLowerCase()==="none"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr(dl)),sr===r&&(t.substr(u,6).toLowerCase()==="shared"?(sr=t.substr(u,6),u+=6):(sr=r,P===0&&Mr(Gb)),sr===r&&(t.substr(u,9).toLowerCase()==="exclusive"?(sr=t.substr(u,9),u+=9):(sr=r,P===0&&Mr(hc))))),sr===r?(u=E,E=r):(yt=E,E=U={type:"alter",keyword:"lock",resource:"lock",symbol:Z,lock:sr})):(u=E,E=r)):(u=E,E=r),E}function ea(){var E,U,Z,sr,xr,Sr,tt;if(E=u,(U=hu())!==r)if(jr()!==r)if((Z=cs())!==r)if(jr()!==r){if(sr=[],sl.test(t.charAt(u))?(xr=t.charAt(u),u++):(xr=r,P===0&&Mr(sc)),xr!==r)for(;xr!==r;)sr.push(xr),sl.test(t.charAt(u))?(xr=t.charAt(u),u++):(xr=r,P===0&&Mr(sc));else sr=r;sr!==r&&(xr=jr())!==r&&_s()!==r&&jr()!==r?((Sr=Xu())===r&&(Sr=ot()),Sr===r&&(Sr=null),Sr===r?(u=E,E=r):(yt=E,tt=Sr,E=U={type:"column_ref",column:U,suffix:`(${parseInt(sr.join(""),10)})`,order_by:tt})):(u=E,E=r)}else u=E,E=r;else u=E,E=r;else u=E,E=r;else u=E,E=r;return E===r&&(E=u,(U=hu())!==r&&jr()!==r?((Z=Xu())===r&&(Z=ot()),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Ct,Xt){return{type:"column_ref",column:Ct,order_by:Xt}})(U,Z))):(u=E,E=r)),E}function Ml(){var E,U,Z;return E=u,cs()!==r&&jr()!==r?((U=(function(){var sr,xr,Sr,tt,Ct,Xt,Vt,In;if(sr=u,(xr=ea())!==r){for(Sr=[],tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=ea())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);tt!==r;)Sr.push(tt),tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=ea())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);Sr===r?(u=sr,sr=r):(yt=sr,sr=xr=zn(xr,Sr))}else u=sr,sr=r;return sr})())===r&&(U=Rr()),U!==r&&jr()!==r&&_s()!==r?(yt=E,E=(Z=U).type?Z.value:Z):(u=E,E=r)):(u=E,E=r),E}function Le(){var E,U,Z,sr,xr,Sr;return E=u,(U=g())===r&&(U=Gr()),U!==r&&jr()!==r?((Z=Go())===r&&(Z=null),Z!==r&&jr()!==r?((sr=qr())===r&&(sr=null),sr!==r&&jr()!==r&&(xr=Ml())!==r&&jr()!==r?((Sr=bt())===r&&(Sr=null),Sr!==r&&jr()!==r?(yt=E,E=U=(function(tt,Ct,Xt,Vt,In){return{index:Ct,definition:Vt,keyword:tt.toLowerCase(),index_type:Xt,resource:"index",index_options:In}})(U,Z,sr,xr,Sr)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E}function rl(){var E,U,Z,sr,xr,Sr;return E=u,(U=Vr())===r&&(U=Qr()),U!==r&&jr()!==r?((Z=g())===r&&(Z=Gr()),Z===r&&(Z=null),Z!==r&&jr()!==r?((sr=Go())===r&&(sr=null),sr!==r&&jr()!==r&&(xr=Zr())!==r&&jr()!==r?((Sr=bt())===r&&(Sr=null),Sr!==r&&jr()!==r?(yt=E,E=U=(function(tt,Ct,Xt,Vt,In){return{index:Xt,definition:Vt,keyword:Ct&&`${tt.toLowerCase()} ${Ct.toLowerCase()}`||tt.toLowerCase(),index_options:In,resource:"index"}})(U,Z,sr,xr,Sr)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E}function xu(){var E,U,Z;return E=u,(U=(function(){var sr=u,xr,Sr,tt;return t.substr(u,10).toLowerCase()==="constraint"?(xr=t.substr(u,10),u+=10):(xr=r,P===0&&Mr(ln)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="CONSTRAINT")),sr})())!==r&&jr()!==r?((Z=js())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(sr,xr){return{keyword:sr.toLowerCase(),constraint:xr}})(U,Z))):(u=E,E=r),E}function si(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt;return E=u,(U=Rn())!==r&&jr()!==r&&(Z=xt())!==r&&jr()!==r&&(sr=Zr())!==r&&jr()!==r?(t.substr(u,10).toLowerCase()==="match full"?(xr=t.substr(u,10),u+=10):(xr=r,P===0&&Mr(Cb)),xr===r&&(t.substr(u,13).toLowerCase()==="match partial"?(xr=t.substr(u,13),u+=13):(xr=r,P===0&&Mr(_0)),xr===r&&(t.substr(u,12).toLowerCase()==="match simple"?(xr=t.substr(u,12),u+=12):(xr=r,P===0&&Mr(zf)))),xr===r&&(xr=null),xr!==r&&jr()!==r?((Sr=Ni())===r&&(Sr=null),Sr!==r&&jr()!==r?((tt=Ni())===r&&(tt=null),tt===r?(u=E,E=r):(yt=E,Ct=xr,Xt=Sr,Vt=tt,E=U={definition:sr,table:Z,keyword:U.toLowerCase(),match:Ct&&Ct.toLowerCase(),on_action:[Xt,Vt].filter(In=>In)})):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=Ni())!==r&&(yt=E,U={on_action:[U]}),E=U),E}function Ni(){var E,U,Z,sr;return E=u,Yo()!==r&&jr()!==r?((U=sf())===r&&(U=Ai()),U!==r&&jr()!==r&&(Z=(function(){var xr=u,Sr,tt;return(Sr=$b())!==r&&jr()!==r&&cs()!==r&&jr()!==r?((tt=Rr())===r&&(tt=null),tt!==r&&jr()!==r&&_s()!==r?(yt=xr,xr=Sr={type:"function",name:{name:[{type:"origin",value:Sr}]},args:tt}):(u=xr,xr=r)):(u=xr,xr=r),xr===r&&(xr=u,(Sr=tl())===r&&(t.substr(u,8).toLowerCase()==="set null"?(Sr=t.substr(u,8),u+=8):(Sr=r,P===0&&Mr(xi)),Sr===r&&(t.substr(u,9).toLowerCase()==="no action"?(Sr=t.substr(u,9),u+=9):(Sr=r,P===0&&Mr(xf)),Sr===r&&(t.substr(u,11).toLowerCase()==="set default"?(Sr=t.substr(u,11),u+=11):(Sr=r,P===0&&Mr(Zf)),Sr===r&&(Sr=$b())))),Sr!==r&&(yt=xr,Sr={type:"origin",value:Sr.toLowerCase()}),xr=Sr),xr})())!==r?(yt=E,sr=Z,E={type:"on "+U[0].toLowerCase(),value:sr}):(u=E,E=r)):(u=E,E=r),E}function tl(){var E,U;return E=u,t.substr(u,8).toLowerCase()==="restrict"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(je)),U===r&&(t.substr(u,7).toLowerCase()==="cascade"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(o0))),U!==r&&(yt=E,U=U.toLowerCase()),E=U}function Dl(){var E,U,Z;return E=u,t.substr(u,9).toLowerCase()==="character"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(W0)),U!==r&&jr()!==r?(t.substr(u,3).toLowerCase()==="set"?(Z=t.substr(u,3),u+=3):(Z=r,P===0&&Mr(jb)),Z===r?(u=E,E=r):(yt=E,E=U="CHARACTER SET")):(u=E,E=r),E}function $a(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt;return E=u,(U=rv())===r&&(U=null),U!==r&&jr()!==r?((Z=Dl())===r&&(t.substr(u,7).toLowerCase()==="charset"?(Z=t.substr(u,7),u+=7):(Z=r,P===0&&Mr(Uf)),Z===r&&(t.substr(u,7).toLowerCase()==="collate"?(Z=t.substr(u,7),u+=7):(Z=r,P===0&&Mr(u0)))),Z!==r&&jr()!==r?((sr=w())===r&&(sr=null),sr!==r&&jr()!==r&&(xr=qn())!==r?(yt=E,tt=Z,Ct=sr,Xt=xr,E=U={keyword:(Sr=U)&&`${Sr[0].toLowerCase()} ${tt.toLowerCase()}`||tt.toLowerCase(),symbol:Ct,value:Xt}):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E}function bc(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt;return E=u,t.substr(u,14).toLowerCase()==="auto_increment"?(U=t.substr(u,14),u+=14):(U=r,P===0&&Mr(Ss)),U===r&&(t.substr(u,14).toLowerCase()==="avg_row_length"?(U=t.substr(u,14),u+=14):(U=r,P===0&&Mr(wb)),U===r&&(t.substr(u,14).toLowerCase()==="key_block_size"?(U=t.substr(u,14),u+=14):(U=r,P===0&&Mr(Ui)),U===r&&(t.substr(u,8).toLowerCase()==="max_rows"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(uv)),U===r&&(t.substr(u,8).toLowerCase()==="min_rows"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(yb)),U===r&&(t.substr(u,18).toLowerCase()==="stats_sample_pages"?(U=t.substr(u,18),u+=18):(U=r,P===0&&Mr(hb))))))),U!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r&&(sr=gu())!==r?(yt=E,Ct=Z,Xt=sr,E=U={keyword:U.toLowerCase(),symbol:Ct,value:Xt.value}):(u=E,E=r)):(u=E,E=r),E===r&&(E=$a())===r&&(E=u,t.substr(u,8)==="CHECKSUM"?(U="CHECKSUM",u+=8):(U=r,P===0&&Mr(Kv)),U===r&&(t.substr(u,15)==="DELAY_KEY_WRITE"?(U="DELAY_KEY_WRITE",u+=15):(U=r,P===0&&Mr(Gc))),U!==r&&jr()!==r&&(Z=w())!==r&&jr()!==r?(_v.test(t.charAt(u))?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(kf)),sr===r?(u=E,E=r):(yt=E,E=U=(function(Vt,In,Tn){return{keyword:Vt.toLowerCase(),symbol:In,value:Tn}})(U,Z,sr))):(u=E,E=r),E===r&&(E=u,(U=wn())===r&&(t.substr(u,10).toLowerCase()==="connection"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(vf)),U===r&&(t.substr(u,16).toLowerCase()==="engine_attribute"?(U=t.substr(u,16),u+=16):(U=r,P===0&&Mr(ki)),U===r&&(t.substr(u,26).toLowerCase()==="secondary_engine_attribute"?(U=t.substr(u,26),u+=26):(U=r,P===0&&Mr(Hl))))),U!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r&&(sr=A0())!==r?(yt=E,E=U=(function(Vt,In,Tn){return{keyword:Vt.toLowerCase(),symbol:In,value:`'${Tn.value}'`}})(U,Z,sr)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,4).toLowerCase()==="data"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Eb)),U===r&&(t.substr(u,5).toLowerCase()==="index"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(Bb))),U!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="directory"?(Z=t.substr(u,9),u+=9):(Z=r,P===0&&Mr(pa)),Z!==r&&jr()!==r?((sr=w())===r&&(sr=null),sr!==r&&(xr=jr())!==r&&(Sr=A0())!==r?(yt=E,E=U=(function(Vt,In,Tn){return{keyword:Vt.toLowerCase()+" directory",symbol:In,value:`'${Tn.value}'`}})(U,sr,Sr)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,11).toLowerCase()==="compression"?(U=t.substr(u,11),u+=11):(U=r,P===0&&Mr(wl)),U!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r?(sr=u,t.charCodeAt(u)===39?(xr="'",u++):(xr=r,P===0&&Mr(Nl)),xr===r?(u=sr,sr=r):(t.substr(u,4).toLowerCase()==="zlib"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(Sv)),Sr===r&&(t.substr(u,3).toLowerCase()==="lz4"?(Sr=t.substr(u,3),u+=3):(Sr=r,P===0&&Mr(Hb)),Sr===r&&(t.substr(u,4).toLowerCase()==="none"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(dl)))),Sr===r?(u=sr,sr=r):(t.charCodeAt(u)===39?(tt="'",u++):(tt=r,P===0&&Mr(Nl)),tt===r?(u=sr,sr=r):sr=xr=[xr,Sr,tt])),sr===r?(u=E,E=r):(yt=E,E=U=(function(Vt,In,Tn){return{keyword:Vt.toLowerCase(),symbol:In,value:Tn.join("").toUpperCase()}})(U,Z,sr))):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,6).toLowerCase()==="engine"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Jf)),U!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r&&(sr=xe())!==r?(yt=E,E=U=pf(U,Z,sr)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,10).toLowerCase()==="row_format"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(Yb)),U!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="default"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(Oi)),sr===r&&(t.substr(u,7).toLowerCase()==="dynamic"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(t0)),sr===r&&(t.substr(u,5).toLowerCase()==="fixed"?(sr=t.substr(u,5),u+=5):(sr=r,P===0&&Mr(ri)),sr===r&&(t.substr(u,10).toLowerCase()==="compressed"?(sr=t.substr(u,10),u+=10):(sr=r,P===0&&Mr(av)),sr===r&&(t.substr(u,9).toLowerCase()==="redundant"?(sr=t.substr(u,9),u+=9):(sr=r,P===0&&Mr(iv)),sr===r&&(t.substr(u,7).toLowerCase()==="compact"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(a0))))))),sr===r?(u=E,E=r):(yt=E,E=U=pf(U,Z,sr))):(u=E,E=r)):(u=E,E=r))))))),E}function Wu(){var E,U,Z,sr;return E=u,t.substr(u,9).toLowerCase()==="isolation"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(yu)),U!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="level"?(Z=t.substr(u,5),u+=5):(Z=r,P===0&&Mr(au)),Z!==r&&jr()!==r&&(sr=(function(){var xr,Sr,tt;return xr=u,t.substr(u,12).toLowerCase()==="serializable"?(Sr=t.substr(u,12),u+=12):(Sr=r,P===0&&Mr(Be)),Sr!==r&&(yt=xr,Sr={type:"origin",value:"serializable"}),(xr=Sr)===r&&(xr=u,t.substr(u,10).toLowerCase()==="repeatable"?(Sr=t.substr(u,10),u+=10):(Sr=r,P===0&&Mr(io)),Sr!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="read"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(Ro)),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr={type:"origin",value:"repeatable read"})):(u=xr,xr=r),xr===r&&(xr=u,t.substr(u,4).toLowerCase()==="read"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(Ro)),Sr!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="committed"?(tt=t.substr(u,9),u+=9):(tt=r,P===0&&Mr(So)),tt===r&&(t.substr(u,11).toLowerCase()==="uncommitted"?(tt=t.substr(u,11),u+=11):(tt=r,P===0&&Mr(uu))),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr=ko(tt))):(u=xr,xr=r))),xr})())!==r?(yt=E,E=U={type:"origin",value:"isolation level "+sr.value}):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,4).toLowerCase()==="read"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Ro)),U!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="write"?(Z=t.substr(u,5),u+=5):(Z=r,P===0&&Mr(Iu)),Z===r&&(t.substr(u,4).toLowerCase()==="only"?(Z=t.substr(u,4),u+=4):(Z=r,P===0&&Mr(mu))),Z===r?(u=E,E=r):(yt=E,E=U=ko(Z))):(u=E,E=r),E===r&&(E=u,(U=Et())===r&&(U=null),U!==r&&jr()!==r?(t.substr(u,10).toLowerCase()==="deferrable"?(Z=t.substr(u,10),u+=10):(Z=r,P===0&&Mr(Ju)),Z===r?(u=E,E=r):(yt=E,E=U={type:"origin",value:U?"not deferrable":"deferrable"})):(u=E,E=r))),E}function Zo(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=Wu())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Wu())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Wu())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=Dn(U,Z))}else u=E,E=r;return E}function wi(){var E,U,Z,sr,xr,Sr;return E=u,t.substr(u,8).toLowerCase()==="starting"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Wl)),U===r&&(t.substr(u,10).toLowerCase()==="terminated"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(l0))),U!==r&&jr()!==r?(t.substr(u,2).toLowerCase()==="by"?(Z=t.substr(u,2),u+=2):(Z=r,P===0&&Mr(pe)),Z!==r&&jr()!==r&&(sr=qn())!==r?(yt=E,xr=U,(Sr=sr).prefix=xr.toUpperCase()+" BY",E=U={type:xr.toLowerCase(),[xr.toLowerCase()]:Sr}):(u=E,E=r)):(u=E,E=r),E}function j(){var E,U,Z,sr,xr;return E=u,(U=mn())!==r&&jr()!==r&&(Z=(function(){var Sr,tt,Ct;return Sr=u,t.substr(u,4).toLowerCase()==="read"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(Ro)),tt!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="local"?(Ct=t.substr(u,5),u+=5):(Ct=r,P===0&&Mr(g0)),Ct===r&&(Ct=null),Ct===r?(u=Sr,Sr=r):(yt=Sr,Sr=tt={type:"read",suffix:Ct&&"local"})):(u=Sr,Sr=r),Sr===r&&(Sr=u,t.substr(u,12).toLowerCase()==="low_priority"?(tt=t.substr(u,12),u+=12):(tt=r,P===0&&Mr(xv)),tt===r&&(tt=null),tt!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="write"?(Ct=t.substr(u,5),u+=5):(Ct=r,P===0&&Mr(Iu)),Ct===r?(u=Sr,Sr=r):(yt=Sr,Sr=tt={type:"write",prefix:tt&&"low_priority"})):(u=Sr,Sr=r)),Sr})())!==r?(yt=E,sr=U,xr=Z,ls.add(`lock::${sr.db}::${sr.table}`),E=U={table:sr,lock_type:xr}):(u=E,E=r),E}function ur(){var E;return(E=(function(){var U,Z,sr,xr,Sr;return U=u,(Z=Xv())===r&&(Z=_i())===r&&(Z=u,(sr=tc())!==r&&(xr=jr())!==r?(t.substr(u,4).toLowerCase()==="view"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(c0)),Sr===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr]):(u=Z,Z=r),Z===r&&(Z=tc())===r&&(Z=sf())===r&&(Z=ga())===r&&(Z=u,t.substr(u,5).toLowerCase()==="grant"?(sr=t.substr(u,5),u+=5):(sr=r,P===0&&Mr(q0)),sr!==r&&(xr=jr())!==r?(t.substr(u,6).toLowerCase()==="option"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(df)),Sr===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr]):(u=Z,Z=r),Z===r&&(Z=g())===r&&(Z=mv())===r&&(Z=Rn())===r&&(Z=Nc())===r&&(Z=u,(sr=Rf())!==r&&(xr=jr())!==r&&(Sr=fu())!==r?Z=sr=[sr,xr,Sr]:(u=Z,Z=r),Z===r&&(Z=Xc())===r&&(Z=Ai())))),Z!==r&&(yt=U,Z=f0(Z)),U=Z})())===r&&(E=(function(){var U,Z,sr,xr,Sr;return U=u,Z=u,(sr=_i())!==r&&(xr=jr())!==r?(t.substr(u,7).toLowerCase()==="routine"?(Sr=t.substr(u,7),u+=7):(Sr=r,P===0&&Mr(b0)),Sr===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr]):(u=Z,Z=r),Z===r&&(t.substr(u,7).toLowerCase()==="execute"?(Z=t.substr(u,7),u+=7):(Z=r,P===0&&Mr(Pf)),Z===r&&(Z=u,t.substr(u,5).toLowerCase()==="grant"?(sr=t.substr(u,5),u+=5):(sr=r,P===0&&Mr(q0)),sr!==r&&(xr=jr())!==r?(t.substr(u,6).toLowerCase()==="option"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(df)),Sr===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr]):(u=Z,Z=r),Z===r&&(Z=u,(sr=tc())!==r&&(xr=jr())!==r?(t.substr(u,7).toLowerCase()==="routine"?(Sr=t.substr(u,7),u+=7):(Sr=r,P===0&&Mr(b0)),Sr===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr]):(u=Z,Z=r)))),Z!==r&&(yt=U,Z=f0(Z)),U=Z})()),E}function Ir(){var E,U,Z,sr,xr,Sr,tt,Ct;return E=u,(U=ur())!==r&&jr()!==r?(Z=u,(sr=cs())!==r&&(xr=jr())!==r&&(Sr=fe())!==r&&(tt=jr())!==r&&(Ct=_s())!==r?Z=sr=[sr,xr,Sr,tt,Ct]:(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){return{priv:Xt,columns:Vt&&Vt[2]}})(U,Z))):(u=E,E=r),E}function s(){var E,U,Z,sr,xr,Sr,tt;return E=u,(U=js())!==r&&jr()!==r?(Z=u,t.charCodeAt(u)===64?(sr="@",u++):(sr=r,P===0&&Mr(Ue)),sr!==r&&(xr=jr())!==r&&(Sr=js())!==r?Z=sr=[sr,xr,Sr]:(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U={name:{type:"single_quote_string",value:U},host:(tt=Z)?{type:"single_quote_string",value:tt[2]}:null})):(u=E,E=r),E}function er(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=s())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=s())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=s())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=Fi(U,Z))}else u=E,E=r;return E}function Lt(){var E,U,Z;return E=u,va()!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="admin"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(Sp)),U!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="option"?(Z=t.substr(u,6),u+=6):(Z=r,P===0&&Mr(df)),Z===r?(u=E,E=r):(yt=E,E={type:"origin",value:"with admin option"})):(u=E,E=r)):(u=E,E=r),E}function mt(){var E,U,Z,sr,xr,Sr,tt;return(E=vs())===r&&(E=u,U=u,t.charCodeAt(u)===40?(Z="(",u++):(Z=r,P===0&&Mr(fp)),Z!==r&&(sr=jr())!==r&&(xr=mt())!==r&&(Sr=jr())!==r?(t.charCodeAt(u)===41?(tt=")",u++):(tt=r,P===0&&Mr(oc)),tt===r?(u=U,U=r):U=Z=[Z,sr,xr,Sr,tt]):(u=U,U=r),U!==r&&(yt=E,U={...U[2],parentheses_symbol:!0}),E=U),E}function bn(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn;if(E=u,va()!==r)if(jr()!==r)if((U=ir())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=ir())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=ir())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=zn(U,Z))}else u=E,E=r;else u=E,E=r;else u=E,E=r;if(E===r)if(E=u,jr()!==r)if(va()!==r)if((U=jr())!==r)if((Z=(function(){var ts=u,d,N,H;return t.substr(u,9).toLowerCase()==="recursive"?(d=t.substr(u,9),u+=9):(d=r,P===0&&Mr(hs)),d===r?(u=ts,ts=r):(N=u,P++,H=qs(),P--,H===r?N=void 0:(u=N,N=r),N===r?(u=ts,ts=r):ts=d=[d,N]),ts})())!==r)if((sr=jr())!==r)if((xr=ir())!==r){for(Sr=[],tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=ir())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);tt!==r;)Sr.push(tt),tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=ir())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);Sr===r?(u=E,E=r):(yt=E,jn=Sr,(Tn=xr).recursive=!0,E=Mt(Tn,jn))}else u=E,E=r;else u=E,E=r;else u=E,E=r;else u=E,E=r;else u=E,E=r;else u=E,E=r;return E}function ir(){var E,U,Z,sr;return E=u,(U=A0())===r&&(U=xe())===r&&(U=bs()),U!==r&&jr()!==r?((Z=Zr())===r&&(Z=null),Z!==r&&jr()!==r&&Sc()!==r&&jr()!==r&&cs()!==r&&jr()!==r?((sr=ar())===r&&(sr=Ve()),sr!==r&&jr()!==r&&_s()!==r?(yt=E,E=U=(function(xr,Sr,tt){return typeof xr=="string"&&(xr={type:"default",value:xr}),xr.table&&(xr={type:"default",value:xr.table}),{name:xr,stmt:tt,columns:Sr}})(U,Z,sr)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E}function Zr(){var E,U;return E=u,cs()!==r&&jr()!==r&&(U=(function(){var Z;return(Z=fe())===r&&(Z=(function(){var sr,xr,Sr,tt,Ct,Xt,Vt,In;if(sr=u,(xr=hi())!==r){for(Sr=[],tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=hi())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);tt!==r;)Sr.push(tt),tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=hi())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);Sr===r?(u=sr,sr=r):(yt=sr,xr=zn(xr,Sr),sr=xr)}else u=sr,sr=r;return sr})()),Z})())!==r&&jr()!==r&&_s()!==r?(yt=E,E=U):(u=E,E=r),E}function rs(){var E,U,Z,sr;return E=u,(U=(function(){var xr,Sr,tt,Ct,Xt,Vt;return xr=u,Sr=u,t.substr(u,3).toLowerCase()==="for"?(tt=t.substr(u,3),u+=3):(tt=r,P===0&&Mr(Pu)),tt!==r&&(Ct=jr())!==r&&(Xt=Ai())!==r?Sr=tt=[tt,Ct,Xt]:(u=Sr,Sr=r),Sr!==r&&(yt=xr,Sr=`${(Vt=Sr)[0]} ${Vt[2][0]}`),xr=Sr})())===r&&(U=(function(){var xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts;return xr=u,Sr=u,t.substr(u,4).toLowerCase()==="lock"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(lf)),tt!==r&&(Ct=jr())!==r?(t.substr(u,2).toLowerCase()==="in"?(Xt=t.substr(u,2),u+=2):(Xt=r,P===0&&Mr(uc)),Xt!==r&&(Vt=jr())!==r?(t.substr(u,5).toLowerCase()==="share"?(In=t.substr(u,5),u+=5):(In=r,P===0&&Mr(qb)),In!==r&&(Tn=jr())!==r?(t.substr(u,4).toLowerCase()==="mode"?(jn=t.substr(u,4),u+=4):(jn=r,P===0&&Mr(Gf)),jn===r?(u=Sr,Sr=r):Sr=tt=[tt,Ct,Xt,Vt,In,Tn,jn]):(u=Sr,Sr=r)):(u=Sr,Sr=r)):(u=Sr,Sr=r),Sr!==r&&(yt=xr,Sr=`${(ts=Sr)[0]} ${ts[2]} ${ts[4]} ${ts[6]}`),xr=Sr})()),U!==r&&jr()!==r?((Z=(function(){var xr,Sr,tt,Ct,Xt,Vt,In;return xr=u,Sr=u,t.substr(u,4).toLowerCase()==="wait"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(zv)),tt!==r&&(Ct=jr())!==r&&(Xt=gu())!==r?Sr=tt=[tt,Ct,Xt]:(u=Sr,Sr=r),Sr!==r&&(yt=xr,Sr=`${(Vt=Sr)[0]} ${Vt[2].value}`),(xr=Sr)===r&&(t.substr(u,6).toLowerCase()==="nowait"?(xr=t.substr(u,6),u+=6):(xr=r,P===0&&Mr(Mv)),xr===r&&(xr=u,Sr=u,t.substr(u,4).toLowerCase()==="skip"?(tt=t.substr(u,4),u+=4):(tt=r,P===0&&Mr(Zv)),tt!==r&&(Ct=jr())!==r?(t.substr(u,6).toLowerCase()==="locked"?(Xt=t.substr(u,6),u+=6):(Xt=r,P===0&&Mr(bp)),Xt===r?(u=Sr,Sr=r):Sr=tt=[tt,Ct,Xt]):(u=Sr,Sr=r),Sr!==r&&(yt=xr,Sr=`${(In=Sr)[0]} ${In[2]}`),xr=Sr)),xr})())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U+=(sr=Z)?" "+sr:"")):(u=E,E=r),E}function vs(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts,d,N,H;return E=u,jr()===r?(u=E,E=r):((U=bn())===r&&(U=null),U!==r&&jr()!==r&&Nc()!==r&&oo()!==r?((Z=(function(){var X,lr,wr,i,b,m;if(X=u,(lr=Ds())!==r){for(wr=[],i=u,(b=jr())!==r&&(m=Ds())!==r?i=b=[b,m]:(u=i,i=r);i!==r;)wr.push(i),i=u,(b=jr())!==r&&(m=Ds())!==r?i=b=[b,m]:(u=i,i=r);wr===r?(u=X,X=r):(yt=X,lr=(function(x,tr){let Cr=[x];for(let gr=0,Yr=tr.length;gr<Yr;++gr)Cr.push(tr[gr][1]);return Cr})(lr,wr),X=lr)}else u=X,X=r;return X})())===r&&(Z=null),Z!==r&&jr()!==r?((sr=R())===r&&(sr=null),sr!==r&&jr()!==r&&(xr=ut())!==r&&jr()!==r?((Sr=nr())===r&&(Sr=null),Sr!==r&&jr()!==r?((tt=yr())===r&&(tt=null),tt!==r&&jr()!==r?((Ct=nr())===r&&(Ct=null),Ct!==r&&jr()!==r?((Xt=Ws())===r&&(Xt=null),Xt!==r&&jr()!==r?((Vt=(function(){var X=u,lr,wr,i;(lr=(function(){var m=u,x,tr,Cr;return t.substr(u,5).toLowerCase()==="group"?(x=t.substr(u,5),u+=5):(x=r,P===0&&Mr(ub)),x===r?(u=m,m=r):(tr=u,P++,Cr=qs(),P--,Cr===r?tr=void 0:(u=tr,tr=r),tr===r?(u=m,m=r):m=x=[x,tr]),m})())!==r&&jr()!==r&&Nf()!==r&&jr()!==r&&(wr=Rr())!==r&&jr()!==r?((i=(function(){var m=u,x;return va()!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="rollup"?(x=t.substr(u,6),u+=6):(x=r,P===0&&Mr(wp)),x===r?(u=m,m=r):(yt=m,m={type:"origin",value:"with rollup"})):(u=m,m=r),m})())===r&&(i=null),i===r?(u=X,X=r):(yt=X,b=i,lr={columns:wr.value,modifiers:[b]},X=lr)):(u=X,X=r);var b;return X})())===r&&(Vt=null),Vt!==r&&jr()!==r?((In=(function(){var X=u,lr;return(function(){var wr=u,i,b,m;return t.substr(u,6).toLowerCase()==="having"?(i=t.substr(u,6),u+=6):(i=r,P===0&&Mr(Al)),i===r?(u=wr,wr=r):(b=u,P++,m=qs(),P--,m===r?b=void 0:(u=b,b=r),b===r?(u=wr,wr=r):wr=i=[i,b]),wr})()!==r&&jr()!==r&&(lr=Vn())!==r?(yt=X,X=lr):(u=X,X=r),X})())===r&&(In=null),In!==r&&jr()!==r?((Tn=Is())===r&&(Tn=null),Tn!==r&&jr()!==r?((jn=Au())===r&&(jn=null),jn!==r&&jr()!==r?((ts=eo())===r&&(ts=null),ts!==r&&jr()!==r?((d=rs())===r&&(d=null),d!==r&&jr()!==r?((N=(function(){var X=u,lr,wr;return t.substr(u,6).toLowerCase()==="window"?(lr=t.substr(u,6),u+=6):(lr=r,P===0&&Mr(nd)),lr!==r&&jr()!==r&&(wr=(function(){var i,b,m,x,tr,Cr,gr,Yr;if(i=u,(b=Bu())!==r){for(m=[],x=u,(tr=jr())!==r&&(Cr=Mn())!==r&&(gr=jr())!==r&&(Yr=Bu())!==r?x=tr=[tr,Cr,gr,Yr]:(u=x,x=r);x!==r;)m.push(x),x=u,(tr=jr())!==r&&(Cr=Mn())!==r&&(gr=jr())!==r&&(Yr=Bu())!==r?x=tr=[tr,Cr,gr,Yr]:(u=x,x=r);m===r?(u=i,i=r):(yt=i,b=Mt(b,m),i=b)}else u=i,i=r;return i})())!==r?(yt=X,X=lr={keyword:"window",type:"window",expr:wr}):(u=X,X=r),X})())===r&&(N=null),N!==r&&jr()!==r?((H=nr())===r&&(H=null),H===r?(u=E,E=r):(yt=E,E=(function(X,lr,wr,i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn){if(b&&x||b&&xn||x&&xn||b&&x&&xn)throw Error("A given SQL statement can contain at most one INTO clause");return m&&(Array.isArray(m)?m:m.expr).forEach(f=>f.table&&ls.add(`select::${f.db}::${f.table}`)),{with:X,type:"select",options:lr,distinct:wr,columns:i,into:{...b||x||xn||{},position:(b?"column":x&&"from")||xn&&"end"},from:m,where:tr,groupby:Cr,having:gr,orderby:Yr,collate:Rt,limit:gt,locking_read:Gt&&Gt,window:rn}})(U,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts,d,N,H))):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)):(u=E,E=r)),E}function Ds(){var E,U;return E=u,(U=(function(){var Z;return t.substr(u,19).toLowerCase()==="sql_calc_found_rows"?(Z=t.substr(u,19),u+=19):(Z=r,P===0&&Mr(Di)),Z})())===r&&((U=(function(){var Z;return t.substr(u,9).toLowerCase()==="sql_cache"?(Z=t.substr(u,9),u+=9):(Z=r,P===0&&Mr(Ya)),Z})())===r&&(U=(function(){var Z;return t.substr(u,12).toLowerCase()==="sql_no_cache"?(Z=t.substr(u,12),u+=12):(Z=r,P===0&&Mr(ni)),Z})()),U===r&&(U=(function(){var Z;return t.substr(u,14).toLowerCase()==="sql_big_result"?(Z=t.substr(u,14),u+=14):(Z=r,P===0&&Mr($i)),Z})())===r&&(U=(function(){var Z;return t.substr(u,16).toLowerCase()==="sql_small_result"?(Z=t.substr(u,16),u+=16):(Z=r,P===0&&Mr(ui)),Z})())===r&&(U=(function(){var Z;return t.substr(u,17).toLowerCase()==="sql_buffer_result"?(Z=t.substr(u,17),u+=17):(Z=r,P===0&&Mr(ai)),Z})())),U!==r&&(yt=E,U=U),E=U}function ut(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=Xv())===r&&(U=u,(Z=as())===r?(u=U,U=r):(sr=u,P++,xr=qs(),P--,xr===r?sr=void 0:(u=sr,sr=r),sr===r?(u=U,U=r):U=Z=[Z,sr]),U===r&&(U=as())),U!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Qo())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Qo())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){ws.add("select::null::(.*)");let In={expr:{type:"column_ref",table:null,column:"*"},as:null};return Vt&&Vt.length>0?Mt(In,Vt):[In]})(0,Z))}else u=E,E=r;if(E===r)if(E=u,(U=Qo())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Qo())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Qo())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=zn(U,Z))}else u=E,E=r;return E}function De(){var E,U,Z,sr,xr,Sr,tt;return E=u,t.substr(u,5).toLowerCase()==="match"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(pp)),U!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Z=fe())!==r&&jr()!==r&&_s()!==r&&jr()!==r?(t.substr(u,7)==="AGAINST"?(sr="AGAINST",u+=7):(sr=r,P===0&&Mr(xp)),sr!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(xr=fn())!==r&&jr()!==r?((Sr=(function(){var Ct,Xt,Vt,In,Tn,jn,ts;return Ct=u,cr()!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="natural"?(Xt=t.substr(u,7),u+=7):(Xt=r,P===0&&Mr(Ib)),Xt!==r&&jr()!==r?(t.substr(u,8).toLowerCase()==="language"?(Vt=t.substr(u,8),u+=8):(Vt=r,P===0&&Mr(Dv)),Vt!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="mode"?(In=t.substr(u,4),u+=4):(In=r,P===0&&Mr(Gf)),In!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="with"?(Tn=t.substr(u,4),u+=4):(Tn=r,P===0&&Mr(Ps)),Tn!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="query"?(jn=t.substr(u,5),u+=5):(jn=r,P===0&&Mr(vp)),jn!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="expansion"?(ts=t.substr(u,9),u+=9):(ts=r,P===0&&Mr(Jv)),ts===r?(u=Ct,Ct=r):(yt=Ct,Ct={type:"origin",value:"IN NATURAL LANGUAGE MODE WITH QUERY EXPANSION"})):(u=Ct,Ct=r)):(u=Ct,Ct=r)):(u=Ct,Ct=r)):(u=Ct,Ct=r)):(u=Ct,Ct=r)):(u=Ct,Ct=r),Ct===r&&(Ct=u,cr()!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="natural"?(Xt=t.substr(u,7),u+=7):(Xt=r,P===0&&Mr(Ib)),Xt!==r&&jr()!==r?(t.substr(u,8).toLowerCase()==="language"?(Vt=t.substr(u,8),u+=8):(Vt=r,P===0&&Mr(Dv)),Vt!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="mode"?(In=t.substr(u,4),u+=4):(In=r,P===0&&Mr(Gf)),In===r?(u=Ct,Ct=r):(yt=Ct,Ct={type:"origin",value:"IN NATURAL LANGUAGE MODE"})):(u=Ct,Ct=r)):(u=Ct,Ct=r)):(u=Ct,Ct=r),Ct===r&&(Ct=u,cr()!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="boolean"?(Xt=t.substr(u,7),u+=7):(Xt=r,P===0&&Mr(Xb)),Xt!==r&&jr()!==r?(t.substr(u,4).toLowerCase()==="mode"?(Vt=t.substr(u,4),u+=4):(Vt=r,P===0&&Mr(Gf)),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct={type:"origin",value:"IN BOOLEAN MODE"})):(u=Ct,Ct=r)):(u=Ct,Ct=r),Ct===r&&(Ct=u,va()!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="query"?(Xt=t.substr(u,5),u+=5):(Xt=r,P===0&&Mr(vp)),Xt!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="expansion"?(Vt=t.substr(u,9),u+=9):(Vt=r,P===0&&Mr(Jv)),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct={type:"origin",value:"WITH QUERY EXPANSION"})):(u=Ct,Ct=r)):(u=Ct,Ct=r)))),Ct})())===r&&(Sr=null),Sr!==r&&jr()!==r&&_s()!==r&&jr()!==r?((tt=A())===r&&(tt=null),tt===r?(u=E,E=r):(yt=E,E=U=(function(Ct,Xt,Vt,In){return{against:"against",columns:Ct,expr:Xt,match:"match",mode:Vt,type:"fulltext_search",as:In}})(Z,xr,Sr,tt))):(u=E,E=r)):(u=E,E=r)):(u=E,E=r),E}function Qo(){var E,U,Z,sr,xr,Sr,tt,Ct;return E=u,(U=De())!==r&&(yt=E,U=(function(Xt){let{as:Vt,...In}=Xt;return{expr:In,as:Vt}})(U)),(E=U)===r&&(E=u,(U=js())!==r&&(Z=jr())!==r&&(sr=An())!==r&&(xr=jr())!==r&&(Sr=js())!==r&&jr()!==r&&An()!==r&&jr()!==r&&as()!==r?(yt=E,tt=U,Ct=Sr,ws.add(`select::${tt}::${Ct}::(.*)`),E=U={expr:{type:"column_ref",db:tt,table:Ct,column:"*"},as:null}):(u=E,E=r),E===r&&(E=u,U=u,(Z=js())!==r&&(sr=jr())!==r&&(xr=An())!==r?U=Z=[Z,sr,xr]:(u=U,U=r),U===r&&(U=null),U!==r&&(Z=jr())!==r&&(sr=as())!==r?(yt=E,E=U=(function(Xt){return ws.add(`select::${Xt}::(.*)`),{expr:{type:"column_ref",table:Xt&&Xt[0]||null,column:"*"},as:null}})(U)):(u=E,E=r),E===r&&(E=u,(U=(function(){var Xt=u,Vt,In,Tn;return(Vt=Fu())===r&&(Vt=Pi()),Vt!==r&&jr()!==r&&(In=fd())!==r&&jr()!==r&&(Tn=ho())!==r?(yt=Xt,Vt=rt(Vt,In,Tn),Xt=Vt):(u=Xt,Xt=r),Xt})())!==r&&(Z=jr())!==r?((sr=A())===r&&(sr=null),sr===r?(u=E,E=r):(yt=E,E=U={expr:U,as:sr})):(u=E,E=r),E===r&&(E=u,(U=(function(){var Xt,Vt,In,Tn,jn,ts,d,N;if(Xt=u,(Vt=fn())!==r){for(In=[],Tn=u,(jn=jr())===r?(u=Tn,Tn=r):((ts=$t())===r&&(ts=en())===r&&(ts=Pe()),ts!==r&&(d=jr())!==r&&(N=fn())!==r?Tn=jn=[jn,ts,d,N]:(u=Tn,Tn=r));Tn!==r;)In.push(Tn),Tn=u,(jn=jr())===r?(u=Tn,Tn=r):((ts=$t())===r&&(ts=en())===r&&(ts=Pe()),ts!==r&&(d=jr())!==r&&(N=fn())!==r?Tn=jn=[jn,ts,d,N]:(u=Tn,Tn=r));In===r?(u=Xt,Xt=r):(yt=Xt,Vt=(function(H,X){let lr=H.ast;if(lr&&lr.type==="select"&&(!(H.parentheses_symbol||H.parentheses||H.ast.parentheses||H.ast.parentheses_symbol)||lr.columns.length!==1||lr.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!X||X.length===0)return H;let wr=X.length,i=X[wr-1][3];for(let b=wr-1;b>=0;b--){let m=b===0?H:X[b-1][3];i=Xr(X[b][1],m,i)}return i})(Vt,In),Xt=Vt)}else u=Xt,Xt=r;return Xt})())!==r&&(Z=jr())!==r?((sr=A())===r&&(sr=null),sr===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){return Xt.type!=="double_quote_string"&&Xt.type!=="single_quote_string"||ws.add("select::null::"+Xt.value),{expr:Xt,as:Vt}})(U,sr))):(u=E,E=r))))),E}function A(){var E,U,Z;return E=u,(U=Sc())!==r&&jr()!==r&&(Z=(function(){var sr=u,xr;return(xr=xe())===r?(u=sr,sr=r):(yt=u,((function(Sr){if(M[Sr.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(Sr)+" is a reserved word, can not as alias clause");return!1})(xr)?r:void 0)===r?(u=sr,sr=r):(yt=sr,sr=xr=xr)),sr===r&&(sr=bo()),sr})())!==r?(yt=E,E=U=Z):(u=E,E=r),E===r&&(E=u,(U=Sc())===r&&(U=null),U!==r&&jr()!==r&&(Z=js())!==r?(yt=E,E=U=Z):(u=E,E=r)),E}function nr(){var E,U,Z;return E=u,ef()!==r&&jr()!==r&&(U=(function(){var sr,xr,Sr,tt,Ct,Xt,Vt,In;if(sr=u,(xr=Fu())!==r){for(Sr=[],tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=Fu())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);tt!==r;)Sr.push(tt),tt=u,(Ct=jr())!==r&&(Xt=Mn())!==r&&(Vt=jr())!==r&&(In=Fu())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);Sr===r?(u=sr,sr=r):(yt=sr,xr=Dn(xr,Sr),sr=xr)}else u=sr,sr=r;return sr})())!==r?(yt=E,E={keyword:"var",type:"into",expr:U}):(u=E,E=r),E===r&&(E=u,ef()!==r&&jr()!==r?(t.substr(u,7).toLowerCase()==="outfile"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(cv)),U===r&&(t.substr(u,8).toLowerCase()==="dumpfile"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Up))),U===r&&(U=null),U!==r&&jr()!==r?((Z=A0())===r&&(Z=js()),Z===r?(u=E,E=r):(yt=E,E={keyword:U,type:"into",expr:Z})):(u=E,E=r)):(u=E,E=r)),E}function yr(){var E,U;return E=u,ip()!==r&&jr()!==r&&(U=xt())!==r?(yt=E,E=U):(u=E,E=r),E}function Ar(){var E,U,Z;return E=u,(U=bs())!==r&&jr()!==r&&Tt()!==r&&jr()!==r&&(Z=bs())!==r?(yt=E,E=U=[U,Z]):(u=E,E=r),E}function qr(){var E,U;return E=u,G0()!==r&&jr()!==r?(t.substr(u,5).toLowerCase()==="btree"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(Xp)),U===r&&(t.substr(u,4).toLowerCase()==="hash"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Qv))),U===r?(u=E,E=r):(yt=E,E={keyword:"using",type:U.toLowerCase()})):(u=E,E=r),E}function bt(){var E,U,Z,sr,xr,Sr;if(E=u,(U=pr())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=pr())!==r?sr=xr=[xr,Sr]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=pr())!==r?sr=xr=[xr,Sr]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=(function(tt,Ct){let Xt=[tt];for(let Vt=0;Vt<Ct.length;Vt++)Xt.push(Ct[Vt][1]);return Xt})(U,Z))}else u=E,E=r;return E}function pr(){var E,U,Z,sr,xr,Sr;return E=u,(U=(function(){var tt=u,Ct,Xt,Vt;return t.substr(u,14).toLowerCase()==="key_block_size"?(Ct=t.substr(u,14),u+=14):(Ct=r,P===0&&Mr(Ui)),Ct===r?(u=tt,tt=r):(Xt=u,P++,Vt=qs(),P--,Vt===r?Xt=void 0:(u=Xt,Xt=r),Xt===r?(u=tt,tt=r):(yt=tt,tt=Ct="KEY_BLOCK_SIZE")),tt})())!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r&&(sr=gu())!==r?(yt=E,xr=Z,Sr=sr,E=U={type:U.toLowerCase(),symbol:xr,expr:Sr}):(u=E,E=r)):(u=E,E=r),E===r&&(E=qr())===r&&(E=u,t.substr(u,4).toLowerCase()==="with"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Ps)),U!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="parser"?(Z=t.substr(u,6),u+=6):(Z=r,P===0&&Mr(Vp)),Z!==r&&jr()!==r&&(sr=xe())!==r?(yt=E,E=U={type:"with parser",expr:sr}):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,t.substr(u,7).toLowerCase()==="visible"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(dp)),U===r&&(t.substr(u,9).toLowerCase()==="invisible"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(Kp))),U!==r&&(yt=E,U=(function(tt){return{type:tt.toLowerCase(),expr:tt.toLowerCase()}})(U)),(E=U)===r&&(E=No()))),E}function xt(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn;if(E=u,(U=mn())!==r){for(Z=[],sr=cn();sr!==r;)Z.push(sr),sr=cn();Z===r?(u=E,E=r):(yt=E,In=U,(Tn=Z).unshift(In),Tn.forEach(jn=>{let{table:ts,as:d}=jn;de[ts]=ts,d&&(de[d]=ts),os(ws)}),E=U=Tn)}else u=E,E=r;if(E===r){if(E=u,U=[],(Z=cs())!==r)for(;Z!==r;)U.push(Z),Z=cs();else U=r;if(U!==r)if((Z=jr())!==r)if((sr=mn())!==r){for(xr=[],Sr=cn();Sr!==r;)xr.push(Sr),Sr=cn();if(xr!==r)if((Sr=jr())!==r){if(tt=[],(Ct=_s())!==r)for(;Ct!==r;)tt.push(Ct),Ct=_s();else tt=r;if(tt!==r)if((Ct=jr())!==r){for(Xt=[],Vt=cn();Vt!==r;)Xt.push(Vt),Vt=cn();Xt===r?(u=E,E=r):(yt=E,E=U=(function(jn,ts,d,N,H){if(jn.length!==N.length)throw Error(`parentheses not match in from clause: ${jn.length} != ${N.length}`);return d.unshift(ts),d.forEach(X=>{let{table:lr,as:wr}=X;de[lr]=lr,wr&&(de[wr]=lr),os(ws)}),H.forEach(X=>{let{table:lr,as:wr}=X;de[lr]=lr,wr&&(de[wr]=lr),os(ws)}),{expr:d,parentheses:{length:N.length},joins:H}})(U,sr,xr,tt,Xt))}else u=E,E=r;else u=E,E=r}else u=E,E=r;else u=E,E=r}else u=E,E=r;else u=E,E=r;else u=E,E=r}return E}function cn(){var E,U,Z;return E=u,jr()!==r&&(U=Mn())!==r&&jr()!==r&&(Z=mn())!==r?(yt=E,E=Z):(u=E,E=r),E===r&&(E=u,jr()!==r&&(U=(function(){var sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts;if(sr=u,(xr=$n())!==r)if(jr()!==r)if((Sr=mn())===r&&(Sr=xt()),Sr!==r)if(jr()!==r)if((tt=G0())!==r)if(jr()!==r)if(cs()!==r)if(jr()!==r)if((Ct=qn())!==r){for(Xt=[],Vt=u,(In=jr())!==r&&(Tn=Mn())!==r&&(jn=jr())!==r&&(ts=qn())!==r?Vt=In=[In,Tn,jn,ts]:(u=Vt,Vt=r);Vt!==r;)Xt.push(Vt),Vt=u,(In=jr())!==r&&(Tn=Mn())!==r&&(jn=jr())!==r&&(ts=qn())!==r?Vt=In=[In,Tn,jn,ts]:(u=Vt,Vt=r);Xt!==r&&(Vt=jr())!==r&&(In=_s())!==r?(yt=sr,d=xr,H=Ct,X=Xt,(N=Sr).join=d,N.using=Mt(H,X),sr=xr=N):(u=sr,sr=r)}else u=sr,sr=r;else u=sr,sr=r;else u=sr,sr=r;else u=sr,sr=r;else u=sr,sr=r;else u=sr,sr=r;else u=sr,sr=r;else u=sr,sr=r;else u=sr,sr=r;var d,N,H,X;return sr===r&&(sr=u,(xr=$n())!==r&&jr()!==r?((Sr=mn())===r&&(Sr=xt()),Sr!==r&&jr()!==r?((tt=ks())===r&&(tt=null),tt===r?(u=sr,sr=r):(yt=sr,xr=(function(lr,wr,i){return wr.join=lr,wr.on=i,wr})(xr,Sr,tt),sr=xr)):(u=sr,sr=r)):(u=sr,sr=r),sr===r&&(sr=u,(xr=$n())===r&&(xr=Js()),xr!==r&&jr()!==r&&(Sr=cs())!==r&&jr()!==r&&(tt=Ve())!==r&&jr()!==r&&_s()!==r&&jr()!==r?((Ct=A())===r&&(Ct=null),Ct!==r&&(Xt=jr())!==r?((Vt=ks())===r&&(Vt=null),Vt===r?(u=sr,sr=r):(yt=sr,xr=(function(lr,wr,i,b){return wr.parentheses=!0,{expr:wr,as:i,join:lr,on:b}})(xr,tt,Ct,Vt),sr=xr)):(u=sr,sr=r)):(u=sr,sr=r))),sr})())!==r?(yt=E,E=U):(u=E,E=r)),E}function mn(){var E,U,Z,sr,xr,Sr,tt;return E=u,(U=(function(){var Ct;return t.substr(u,4).toLowerCase()==="dual"?(Ct=t.substr(u,4),u+=4):(Ct=r,P===0&&Mr(il)),Ct})())!==r&&(yt=E,U={type:"dual"}),(E=U)===r&&(E=u,(U=bs())!==r&&jr()!==r?((Z=A())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,tt=Z,E=U=(Sr=U).type==="var"?(Sr.as=tt,Sr):{db:Sr.db,table:Sr.table,as:tt})):(u=E,E=r),E===r&&(E=u,(U=cs())!==r&&jr()!==r&&(Z=bs())!==r&&jr()!==r?((sr=A())===r&&(sr=null),sr!==r&&jr()!==r&&_s()!==r?(yt=E,E=U=(function(Ct,Xt,Vt){return Ct.type==="var"?(Ct.as=Xt,Ct.parentheses=!0,Ct):{db:Ct.db,table:Ct.table,as:Xt,parentheses:!0}})(Z,sr)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=ar())!==r&&jr()!==r?((Z=A())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Ct,Xt){return{expr:Ct,as:Xt}})(U,Z))):(u=E,E=r),E===r&&(E=u,t.substr(u,7).toLowerCase()==="lateral"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(ld)),U===r&&(U=null),U!==r&&jr()!==r&&(Z=cs())!==r&&jr()!==r?((sr=Ve())===r&&(sr=ar()),sr!==r&&jr()!==r&&_s()!==r&&jr()!==r?((xr=A())===r&&(xr=null),xr===r?(u=E,E=r):(yt=E,E=U=(function(Ct,Xt,Vt){Xt.parentheses=!0;let In={expr:Xt,as:Vt};return Ct&&(In.prefix=Ct),In})(U,sr,xr))):(u=E,E=r)):(u=E,E=r))))),E}function $n(){var E,U,Z,sr;return E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,4).toLowerCase()==="left"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(ti)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(Z=jr())!==r?((sr=$l())===r&&(sr=null),sr!==r&&jr()!==r&&Xo()!==r?(yt=E,E=U="LEFT JOIN"):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,5).toLowerCase()==="right"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(We)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(Z=jr())!==r?((sr=$l())===r&&(sr=null),sr!==r&&jr()!==r&&Xo()!==r?(yt=E,E=U="RIGHT JOIN"):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,4).toLowerCase()==="full"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(ob)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(Z=jr())!==r?((sr=$l())===r&&(sr=null),sr!==r&&jr()!==r&&Xo()!==r?(yt=E,E=U="FULL JOIN"):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,5).toLowerCase()==="cross"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(hf)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(Z=jr())!==r&&(sr=Xo())!==r?(yt=E,E=U="CROSS JOIN"):(u=E,E=r),E===r&&(E=u,U=u,(Z=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,5).toLowerCase()==="inner"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(V0)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):xr=Sr=[Sr,tt]),xr})())!==r&&(sr=jr())!==r?U=Z=[Z,sr]:(u=U,U=r),U===r&&(U=null),U!==r&&(Z=Xo())!==r?(yt=E,E=U="INNER JOIN"):(u=E,E=r))))),E}function bs(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt;if(E=u,U=[],Lp.test(t.charAt(u))?(Z=t.charAt(u),u++):(Z=r,P===0&&Mr(Cp)),Z!==r)for(;Z!==r;)U.push(Z),Lp.test(t.charAt(u))?(Z=t.charAt(u),u++):(Z=r,P===0&&Mr(Cp));else U=r;return U!==r&&(Z=Cs())!==r?(sr=u,(xr=jr())!==r&&(Sr=An())!==r&&(tt=jr())!==r&&(Ct=Cs())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r),sr===r&&(sr=null),sr===r?(u=E,E=r):(yt=E,E=U=(function(Vt,In,Tn){let jn=`${Vt.join("")}${In}`,ts={db:null,table:jn};return Tn!==null&&(ts.db=jn,ts.table=Tn[3]),ts})(U,Z,sr))):(u=E,E=r),E===r&&(E=u,(U=js())===r?(u=E,E=r):(Z=u,(sr=jr())!==r&&(xr=An())!==r&&(Sr=jr())!==r&&(tt=Cs())!==r?Z=sr=[sr,xr,Sr,tt]:(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Vt,In){let Tn={db:null,table:Vt};return In!==null&&(Tn.db=Vt,Tn.table=In[3]),Tn})(U,Z))),E===r&&(E=u,(U=Fu())!==r&&(yt=E,(Xt=U).db=null,Xt.table=Xt.name,U=Xt),E=U)),E}function ks(){var E,U;return E=u,Yo()!==r&&jr()!==r&&(U=gn())!==r?(yt=E,E=U):(u=E,E=r),E}function Ws(){var E,U;return E=u,(function(){var Z=u,sr,xr,Sr;return t.substr(u,5).toLowerCase()==="where"?(sr=t.substr(u,5),u+=5):(sr=r,P===0&&Mr(z0)),sr===r?(u=Z,Z=r):(xr=u,P++,Sr=qs(),P--,Sr===r?xr=void 0:(u=xr,xr=r),xr===r?(u=Z,Z=r):Z=sr=[sr,xr]),Z})()!==r&&jr()!==r&&(U=Vn())!==r?(yt=E,E=U):(u=E,E=r),E}function fe(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=pn())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=pn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=pn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=zn(U,Z))}else u=E,E=r;return E}function ne(){var E,U;return E=u,Tv()!==r&&jr()!==r&&Nf()!==r&&jr()!==r&&(U=ut())!==r?(yt=E,E=U):(u=E,E=r),E}function Is(){var E,U;return E=u,(function(){var Z=u,sr,xr,Sr;return t.substr(u,5).toLowerCase()==="order"?(sr=t.substr(u,5),u+=5):(sr=r,P===0&&Mr(Su)),sr===r?(u=Z,Z=r):(xr=u,P++,Sr=qs(),P--,Sr===r?xr=void 0:(u=xr,xr=r),xr===r?(u=Z,Z=r):Z=sr=[sr,xr]),Z})()!==r&&jr()!==r&&Nf()!==r&&jr()!==r&&(U=(function(){var Z,sr,xr,Sr,tt,Ct,Xt,Vt;if(Z=u,(sr=me())!==r){for(xr=[],Sr=u,(tt=jr())!==r&&(Ct=Mn())!==r&&(Xt=jr())!==r&&(Vt=me())!==r?Sr=tt=[tt,Ct,Xt,Vt]:(u=Sr,Sr=r);Sr!==r;)xr.push(Sr),Sr=u,(tt=jr())!==r&&(Ct=Mn())!==r&&(Xt=jr())!==r&&(Vt=me())!==r?Sr=tt=[tt,Ct,Xt,Vt]:(u=Sr,Sr=r);xr===r?(u=Z,Z=r):(yt=Z,sr=zn(sr,xr),Z=sr)}else u=Z,Z=r;return Z})())!==r?(yt=E,E=U):(u=E,E=r),E}function me(){var E,U,Z;return E=u,(U=fn())!==r&&jr()!==r?((Z=ot())===r&&(Z=Xu()),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U={expr:U,type:Z})):(u=E,E=r),E}function Xe(){var E,U;return(E=gu())===r&&(E=Vo())===r&&(E=u,t.charCodeAt(u)===63?(U="?",u++):(U=r,P===0&&Mr(gb)),U!==r&&(yt=E,U={type:"origin",value:"?"}),E=U),E}function eo(){var E,U,Z,sr,xr,Sr;return E=u,(function(){var tt=u,Ct,Xt,Vt;return t.substr(u,5).toLowerCase()==="limit"?(Ct=t.substr(u,5),u+=5):(Ct=r,P===0&&Mr(D0)),Ct===r?(u=tt,tt=r):(Xt=u,P++,Vt=qs(),P--,Vt===r?Xt=void 0:(u=Xt,Xt=r),Xt===r?(u=tt,tt=r):tt=Ct=[Ct,Xt]),tt})()!==r&&jr()!==r&&(U=Xe())!==r&&jr()!==r?(Z=u,(sr=Mn())===r&&(sr=(function(){var tt=u,Ct,Xt,Vt;return t.substr(u,6).toLowerCase()==="offset"?(Ct=t.substr(u,6),u+=6):(Ct=r,P===0&&Mr(Ac)),Ct===r?(u=tt,tt=r):(Xt=u,P++,Vt=qs(),P--,Vt===r?Xt=void 0:(u=Xt,Xt=r),Xt===r?(u=tt,tt=r):(yt=tt,tt=Ct="OFFSET")),tt})()),sr!==r&&(xr=jr())!==r&&(Sr=Xe())!==r?Z=sr=[sr,xr,Sr]:(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=(function(tt,Ct){let Xt=[tt];return Ct&&Xt.push(Ct[2]),{seperator:Ct&&Ct[0]&&Ct[0].toLowerCase()||"",value:Xt}})(U,Z))):(u=E,E=r),E}function so(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=$o())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=$o())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=$o())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=zn(U,Z))}else u=E,E=r;return E}function $o(){var E,U,Z,sr,xr,Sr,tt,Ct;return E=u,U=u,(Z=js())!==r&&(sr=jr())!==r&&(xr=An())!==r?U=Z=[Z,sr,xr]:(u=U,U=r),U===r&&(U=null),U!==r&&(Z=jr())!==r&&(sr=hu())!==r&&(xr=jr())!==r?(t.charCodeAt(u)===61?(Sr="=",u++):(Sr=r,P===0&&Mr(O0)),Sr!==r&&jr()!==r&&(tt=fn())!==r?(yt=E,E=U=(function(Xt,Vt,In){return{column:Vt,value:In,table:Xt&&Xt[0]}})(U,sr,tt)):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,U=u,(Z=js())!==r&&(sr=jr())!==r&&(xr=An())!==r?U=Z=[Z,sr,xr]:(u=U,U=r),U===r&&(U=null),U!==r&&(Z=jr())!==r&&(sr=hu())!==r&&(xr=jr())!==r?(t.charCodeAt(u)===61?(Sr="=",u++):(Sr=r,P===0&&Mr(O0)),Sr!==r&&jr()!==r&&(tt=m0())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Ct=pn())!==r&&jr()!==r&&_s()!==r?(yt=E,E=U=(function(Xt,Vt,In){return{column:Vt,value:In,table:Xt&&Xt[0],keyword:"values"}})(U,sr,Ct)):(u=E,E=r)):(u=E,E=r)),E}function Mu(){var E,U,Z;return E=u,(U=(function(){var sr=u,xr,Sr,tt;return t.substr(u,9).toLowerCase()==="returning"?(xr=t.substr(u,9),u+=9):(xr=r,P===0&&Mr(hl)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="RETURNING")),sr})())!==r&&jr()!==r?((Z=ut())===r&&(Z=mt()),Z===r?(u=E,E=r):(yt=E,E=U=(function(sr,xr){return{type:sr&&sr.toLowerCase()||"returning",columns:xr==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null}]||xr}})(U,Z))):(u=E,E=r),E}function su(){var E,U;return(E=ar())===r&&(E=u,(U=Ve())!==r&&(yt=E,U=U.ast),E=U),E}function Po(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt;if(E=u,Tv()!==r)if(jr()!==r)if((U=cs())!==r)if(jr()!==r)if((Z=xe())!==r){for(sr=[],xr=u,(Sr=jr())!==r&&(tt=Mn())!==r&&(Ct=jr())!==r&&(Xt=xe())!==r?xr=Sr=[Sr,tt,Ct,Xt]:(u=xr,xr=r);xr!==r;)sr.push(xr),xr=u,(Sr=jr())!==r&&(tt=Mn())!==r&&(Ct=jr())!==r&&(Xt=xe())!==r?xr=Sr=[Sr,tt,Ct,Xt]:(u=xr,xr=r);sr!==r&&(xr=jr())!==r&&(Sr=_s())!==r?(yt=E,E=Fi(Z,sr)):(u=E,E=r)}else u=E,E=r;else u=E,E=r;else u=E,E=r;else u=E,E=r;else u=E,E=r;return E===r&&(E=u,Tv()!==r&&jr()!==r&&(U=Nr())!==r?(yt=E,E=U):(u=E,E=r)),E}function Na(){var E,U,Z;return E=u,Yo()!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="duplicate"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(v0)),U!==r&&jr()!==r&&Gr()!==r&&jr()!==r&&Ai()!==r&&jr()!==r&&(Z=so())!==r?(yt=E,E={keyword:"on duplicate key update",set:Z}):(u=E,E=r)):(u=E,E=r),E}function F(){var E,U;return E=u,(U=mv())!==r&&(yt=E,U="insert"),(E=U)===r&&(E=u,(U=pc())!==r&&(yt=E,U="replace"),E=U),E}function ar(){var E,U;return E=u,m0()!==r&&jr()!==r&&(U=(function(){var Z,sr,xr,Sr,tt,Ct,Xt,Vt;if(Z=u,(sr=Nr())!==r){for(xr=[],Sr=u,(tt=jr())!==r&&(Ct=Mn())!==r&&(Xt=jr())!==r&&(Vt=Nr())!==r?Sr=tt=[tt,Ct,Xt,Vt]:(u=Sr,Sr=r);Sr!==r;)xr.push(Sr),Sr=u,(tt=jr())!==r&&(Ct=Mn())!==r&&(Xt=jr())!==r&&(Vt=Nr())!==r?Sr=tt=[tt,Ct,Xt,Vt]:(u=Sr,Sr=r);xr===r?(u=Z,Z=r):(yt=Z,sr=zn(sr,xr),Z=sr)}else u=Z,Z=r;return Z})())!==r?(yt=E,E={type:"values",values:U}):(u=E,E=r),E}function Nr(){var E,U,Z,sr,xr;return E=u,t.substr(u,3).toLowerCase()==="row"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(ku)),U===r&&(U=null),U!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Z=Rr())!==r&&jr()!==r&&_s()!==r?(yt=E,sr=U,(xr=Z).prefix=sr&&sr.toLowerCase(),E=U=xr):(u=E,E=r),E}function Rr(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=fn())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=fn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=fn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){let In={type:"expr_list"};return In.value=Mt(Xt,Vt),In})(U,Z))}else u=E,E=r;return E}function ct(){var E,U,Z;return E=u,Wo()!==r&&jr()!==r&&(U=fn())!==r&&jr()!==r&&(Z=(function(){var sr;return(sr=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,4).toLowerCase()==="year"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(Lv)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="YEAR")),xr})())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,5).toLowerCase()==="month"?(Sr=t.substr(u,5),u+=5):(Sr=r,P===0&&Mr(ic)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="MONTH")),xr})())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,4).toLowerCase()==="week"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(Yv)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="WEEK")),xr})())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,3).toLowerCase()==="day"?(Sr=t.substr(u,3),u+=3):(Sr=r,P===0&&Mr(vv)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="DAY")),xr})())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,4).toLowerCase()==="hour"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(Vb)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="HOUR")),xr})())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,6).toLowerCase()==="minute"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(Xs)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="MINUTE")),xr})())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;return t.substr(u,6).toLowerCase()==="second"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(Kb)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="SECOND")),xr})()),sr})())!==r?(yt=E,E={type:"interval",expr:U,unit:Z.toLowerCase()}):(u=E,E=r),E}function dt(){var E,U,Z,sr,xr,Sr;if(E=u,(U=Yt())!==r)if(jr()!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Yt())!==r?sr=xr=[xr,Sr]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Yt())!==r?sr=xr=[xr,Sr]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=Ae(U,Z))}else u=E,E=r;else u=E,E=r;return E}function Yt(){var E,U,Z;return E=u,(function(){var sr=u,xr,Sr,tt;return t.substr(u,4).toLowerCase()==="when"?(xr=t.substr(u,4),u+=4):(xr=r,P===0&&Mr(Ii)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):sr=xr=[xr,Sr]),sr})()!==r&&jr()!==r&&(U=Vn())!==r&&jr()!==r&&(function(){var sr=u,xr,Sr,tt;return t.substr(u,4).toLowerCase()==="then"?(xr=t.substr(u,4),u+=4):(xr=r,P===0&&Mr(Ge)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):sr=xr=[xr,Sr]),sr})()!==r&&jr()!==r&&(Z=fn())!==r?(yt=E,E={type:"when",cond:U,result:Z}):(u=E,E=r),E}function vn(){var E,U;return E=u,(function(){var Z=u,sr,xr,Sr;return t.substr(u,4).toLowerCase()==="else"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr($0)),sr===r?(u=Z,Z=r):(xr=u,P++,Sr=qs(),P--,Sr===r?xr=void 0:(u=xr,xr=r),xr===r?(u=Z,Z=r):Z=sr=[sr,xr]),Z})()!==r&&jr()!==r&&(U=fn())!==r?(yt=E,E={type:"else",result:U}):(u=E,E=r),E}function fn(){var E;return(E=(function(){var U,Z,sr,xr,Sr,tt,Ct,Xt;if(U=u,(Z=Jn())!==r){for(sr=[],xr=u,(Sr=oo())!==r&&(tt=en())!==r&&(Ct=jr())!==r&&(Xt=Jn())!==r?xr=Sr=[Sr,tt,Ct,Xt]:(u=xr,xr=r);xr!==r;)sr.push(xr),xr=u,(Sr=oo())!==r&&(tt=en())!==r&&(Ct=jr())!==r&&(Xt=Jn())!==r?xr=Sr=[Sr,tt,Ct,Xt]:(u=xr,xr=r);sr===r?(u=U,U=r):(yt=U,Z=ac(Z,sr),U=Z)}else u=U,U=r;return U})())===r&&(E=Ve()),E}function gn(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=fn())!==r){for(Z=[],sr=u,(xr=jr())===r?(u=sr,sr=r):((Sr=$t())===r&&(Sr=en()),Sr!==r&&(tt=jr())!==r&&(Ct=fn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r));sr!==r;)Z.push(sr),sr=u,(xr=jr())===r?(u=sr,sr=r):((Sr=$t())===r&&(Sr=en()),Sr!==r&&(tt=jr())!==r&&(Ct=fn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r));Z===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){let In=Vt.length,Tn=Xt;for(let jn=0;jn<In;++jn)Tn=Xr(Vt[jn][1],Tn,Vt[jn][3]);return Tn})(U,Z))}else u=E,E=r;return E}function Vn(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=fn())!==r){for(Z=[],sr=u,(xr=jr())===r?(u=sr,sr=r):((Sr=$t())===r&&(Sr=en())===r&&(Sr=Mn())===r&&(Sr=Pe()),Sr!==r&&(tt=jr())!==r&&(Ct=fn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r));sr!==r;)Z.push(sr),sr=u,(xr=jr())===r?(u=sr,sr=r):((Sr=$t())===r&&(Sr=en())===r&&(Sr=Mn())===r&&(Sr=Pe()),Sr!==r&&(tt=jr())!==r&&(Ct=fn())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r));Z===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){let In=Vt.length,Tn=Xt,jn="";for(let ts=0;ts<In;++ts)Vt[ts][1]===","?(jn=",",Array.isArray(Tn)||(Tn=[Tn]),Tn.push(Vt[ts][3])):Tn=Xr(Vt[ts][1],Tn,Vt[ts][3]);if(jn===","){let ts={type:"expr_list"};return ts.value=Array.isArray(Tn)?Tn:[Tn],ts}return Tn})(U,Z))}else u=E,E=r;return E}function Jn(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=ms())!==r){for(Z=[],sr=u,(xr=oo())!==r&&(Sr=$t())!==r&&(tt=jr())!==r&&(Ct=ms())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=oo())!==r&&(Sr=$t())!==r&&(tt=jr())!==r&&(Ct=ms())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=ac(U,Z))}else u=E,E=r;return E}function ms(){var E,U;return(E=Qs())===r&&(E=(function(){var Z=u,sr,xr;(sr=(function(){var Ct=u,Xt=u,Vt,In,Tn;return(Vt=Et())!==r&&(In=jr())!==r&&(Tn=it())!==r?Xt=Vt=[Vt,In,Tn]:(u=Xt,Xt=r),Xt!==r&&(yt=Ct,Xt=Rb(Xt)),(Ct=Xt)===r&&(Ct=it()),Ct})())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(xr=Ve())!==r&&jr()!==r&&_s()!==r?(yt=Z,Sr=sr,(tt=xr).parentheses=!0,sr=Dr(Sr,tt),Z=sr):(u=Z,Z=r);var Sr,tt;return Z})())===r&&(E=u,Et()!==r&&jr()!==r&&(U=ms())!==r?(yt=E,E=Dr("NOT",U)):(u=E,E=r)),E}function Qs(){var E,U,Z;return E=u,(U=et())!==r&&jr()!==r?((Z=(function(){var sr;return(sr=(function(){var xr=u,Sr=[],tt=u,Ct,Xt,Vt,In;if((Ct=jr())!==r&&(Xt=$())!==r&&(Vt=jr())!==r&&(In=et())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r),tt!==r)for(;tt!==r;)Sr.push(tt),tt=u,(Ct=jr())!==r&&(Xt=$())!==r&&(Vt=jr())!==r&&(In=et())!==r?tt=Ct=[Ct,Xt,Vt,In]:(u=tt,tt=r);else Sr=r;return Sr!==r&&(tt=jr())!==r?((Ct=mr())===r&&(Ct=null),Ct===r?(u=xr,xr=r):(yt=xr,xr=Sr={type:"arithmetic",tail:Sr,in:Ct})):(u=xr,xr=r),xr})())===r&&(sr=mr())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;return(Sr=(function(){var Xt=u,Vt=u,In,Tn,jn;return(In=Et())!==r&&(Tn=jr())!==r&&(jn=B())!==r?Vt=In=[In,Tn,jn]:(u=Vt,Vt=r),Vt!==r&&(yt=Xt,Vt=Rb(Vt)),(Xt=Vt)===r&&(Xt=B()),Xt})())!==r&&jr()!==r&&(tt=et())!==r&&jr()!==r&&$t()!==r&&jr()!==r&&(Ct=et())!==r?(yt=xr,xr=Sr={op:Sr,right:{type:"expr_list",value:[tt,Ct]}}):(u=xr,xr=r),xr})())===r&&(sr=(function(){var xr=u,Sr,tt,Ct,Xt;return(Sr=Er())!==r&&(tt=jr())!==r&&(Ct=et())!==r?(yt=xr,xr=Sr={op:"IS",right:Ct}):(u=xr,xr=r),xr===r&&(xr=u,Sr=u,(tt=Er())!==r&&(Ct=jr())!==r&&(Xt=Et())!==r?Sr=tt=[tt,Ct,Xt]:(u=Sr,Sr=r),Sr!==r&&(tt=jr())!==r&&(Ct=et())!==r?(yt=xr,Sr=(function(Vt){return{op:"IS NOT",right:Vt}})(Ct),xr=Sr):(u=xr,xr=r)),xr})())===r&&(sr=br())===r&&(sr=(function(){var xr=u,Sr,tt,Ct;(Sr=(function(){var In=u,Tn,jn;(Tn=Et())===r&&(Tn=null),Tn!==r&&jr()!==r?((jn=(function(){var N=u,H,X,lr;return t.substr(u,6).toLowerCase()==="regexp"?(H=t.substr(u,6),u+=6):(H=r,P===0&&Mr(J0)),H===r?(u=N,N=r):(X=u,P++,lr=qs(),P--,lr===r?X=void 0:(u=X,X=r),X===r?(u=N,N=r):(yt=N,N=H="REGEXP")),N})())===r&&(jn=(function(){var N=u,H,X,lr;return t.substr(u,5).toLowerCase()==="rlike"?(H=t.substr(u,5),u+=5):(H=r,P===0&&Mr(ab)),H===r?(u=N,N=r):(X=u,P++,lr=qs(),P--,lr===r?X=void 0:(u=X,X=r),X===r?(u=N,N=r):(yt=N,N=H="RLIKE")),N})()),jn===r?(u=In,In=r):(yt=In,d=jn,In=Tn=(ts=Tn)?`${ts} ${d}`:d)):(u=In,In=r);var ts,d;return In})())!==r&&jr()!==r?(t.substr(u,6).toLowerCase()==="binary"?(tt=t.substr(u,6),u+=6):(tt=r,P===0&&Mr(_l)),tt===r&&(tt=null),tt!==r&&jr()!==r?((Ct=vc())===r&&(Ct=A0())===r&&(Ct=pn()),Ct===r?(u=xr,xr=r):(yt=xr,Xt=Sr,xr=Sr={op:(Vt=tt)?`${Xt} ${Vt}`:Xt,right:Ct})):(u=xr,xr=r)):(u=xr,xr=r);var Xt,Vt;return xr})()),sr})())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(sr,xr){if(xr===null)return sr;if(xr.type==="arithmetic"){if(!xr.in)return nn(sr,xr.tail);let Sr=nn(sr,xr.tail);return Xr(xr.in.op,Sr,xr.in.right)}return Xr(xr.op,sr,xr.right)})(U,Z))):(u=E,E=r),E===r&&(E=A0())===r&&(E=pn()),E}function $(){var E;return t.substr(u,2)===">="?(E=">=",u+=2):(E=r,P===0&&Mr(Ff)),E===r&&(t.charCodeAt(u)===62?(E=">",u++):(E=r,P===0&&Mr(kp)),E===r&&(t.substr(u,2)==="<="?(E="<=",u+=2):(E=r,P===0&&Mr(Mp)),E===r&&(t.substr(u,2)==="<>"?(E="<>",u+=2):(E=r,P===0&&Mr(rp)),E===r&&(t.charCodeAt(u)===60?(E="<",u++):(E=r,P===0&&Mr(yp)),E===r&&(t.charCodeAt(u)===61?(E="=",u++):(E=r,P===0&&Mr(O0)),E===r&&(t.substr(u,2)==="!="?(E="!=",u+=2):(E=r,P===0&&Mr(hp)))))))),E}function J(){var E,U,Z,sr,xr;return E=u,U=u,(Z=Et())!==r&&(sr=jr())!==r&&(xr=cr())!==r?U=Z=[Z,sr,xr]:(u=U,U=r),U!==r&&(yt=E,U=Rb(U)),(E=U)===r&&(E=cr()),E}function br(){var E,U,Z,sr,xr,Sr,tt;return E=u,(U=(function(){var Ct,Xt,Vt,In,Tn;return Ct=u,Xt=u,(Vt=Et())!==r&&(In=jr())!==r&&(Tn=vt())!==r?Xt=Vt=[Vt,In,Tn]:(u=Xt,Xt=r),Xt!==r&&(yt=Ct,Xt=Rb(Xt)),(Ct=Xt)===r&&(Ct=vt()),Ct})())!==r&&jr()!==r?((Z=hi())===r&&(Z=Vo())===r&&(Z=Qs()),Z!==r&&jr()!==r?((sr=(function(){var Ct,Xt,Vt;return Ct=u,t.substr(u,6).toLowerCase()==="escape"?(Xt=t.substr(u,6),u+=6):(Xt=r,P===0&&Mr(Ep)),Xt!==r&&jr()!==r&&(Vt=A0())!==r?(yt=Ct,Ct=Xt=(function(In,Tn){return{type:"ESCAPE",value:Tn}})(0,Vt)):(u=Ct,Ct=r),Ct})())===r&&(sr=null),sr===r?(u=E,E=r):(yt=E,xr=U,Sr=Z,(tt=sr)&&(Sr.escape=tt),E=U={op:xr,right:Sr})):(u=E,E=r)):(u=E,E=r),E}function mr(){var E,U,Z,sr;return E=u,(U=J())!==r&&jr()!==r&&(Z=cs())!==r&&jr()!==r&&(sr=Rr())!==r&&jr()!==r&&_s()!==r?(yt=E,E=U={op:U,right:sr}):(u=E,E=r),E===r&&(E=u,(U=J())!==r&&jr()!==r?((Z=Fu())===r&&(Z=pn())===r&&(Z=A0()),Z===r?(u=E,E=r):(yt=E,E=U=(function(xr,Sr){return{op:xr,right:Sr}})(U,Z))):(u=E,E=r)),E}function et(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=At())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=pt())!==r&&(tt=jr())!==r&&(Ct=At())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=pt())!==r&&(tt=jr())!==r&&(Ct=At())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){if(Vt&&Vt.length&&Xt.type==="column_ref"&&Xt.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...rr()}));return nn(Xt,Vt)})(U,Z))}else u=E,E=r;return E}function pt(){var E;return t.charCodeAt(u)===43?(E="+",u++):(E=r,P===0&&Mr(Nb)),E===r&&(t.charCodeAt(u)===45?(E="-",u++):(E=r,P===0&&Mr(Qf))),E}function At(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=Ut())!==r){for(Z=[],sr=u,(xr=jr())===r?(u=sr,sr=r):((Sr=Bt())===r&&(Sr=Pe()),Sr!==r&&(tt=jr())!==r&&(Ct=Ut())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r));sr!==r;)Z.push(sr),sr=u,(xr=jr())===r?(u=sr,sr=r):((Sr=Bt())===r&&(Sr=Pe()),Sr!==r&&(tt=jr())!==r&&(Ct=Ut())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r));Z===r?(u=E,E=r):(yt=E,E=U=nn(U,Z))}else u=E,E=r;return E}function Bt(){var E,U;return t.charCodeAt(u)===42?(E="*",u++):(E=r,P===0&&Mr(_b)),E===r&&(t.charCodeAt(u)===47?(E="/",u++):(E=r,P===0&&Mr(Ap)),E===r&&(t.charCodeAt(u)===37?(E="%",u++):(E=r,P===0&&Mr(Dp)),E===r&&(t.substr(u,2)==="||"?(E="||",u+=2):(E=r,P===0&&Mr($v)),E===r&&(E=u,t.substr(u,3).toLowerCase()==="div"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr($p)),U===r&&(t.substr(u,3).toLowerCase()==="mod"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(Pp))),U!==r&&(yt=E,U=U.toUpperCase()),(E=U)===r&&(t.charCodeAt(u)===38?(E="&",u++):(E=r,P===0&&Mr(Pv)),E===r&&(t.substr(u,2)===">>"?(E=">>",u+=2):(E=r,P===0&&Mr(Gp)),E===r&&(t.substr(u,2)==="<<"?(E="<<",u+=2):(E=r,P===0&&Mr(Fp)),E===r&&(t.charCodeAt(u)===94?(E="^",u++):(E=r,P===0&&Mr(mp)),E===r&&(t.charCodeAt(u)===124?(E="|",u++):(E=r,P===0&&Mr(zp))))))))))),E}function Ut(){var E,U,Z,sr,xr;return(E=(function(){var Sr,tt,Ct;(Sr=ct())===r&&(Sr=(function(){var Vt;return(Vt=(function(){var In=u,Tn,jn,ts;return(Tn=(function(){var d=u,N,H,X;return t.substr(u,5).toLowerCase()==="count"?(N=t.substr(u,5),u+=5):(N=r,P===0&&Mr(Tf)),N===r?(u=d,d=r):(H=u,P++,X=qs(),P--,X===r?H=void 0:(u=H,H=r),H===r?(u=d,d=r):(yt=d,d=N="COUNT")),d})())===r&&(Tn=(function(){var d=u,N,H,X;return t.substr(u,12).toLowerCase()==="group_concat"?(N=t.substr(u,12),u+=12):(N=r,P===0&&Mr(If)),N===r?(u=d,d=r):(H=u,P++,X=qs(),P--,X===r?H=void 0:(u=H,H=r),H===r?(u=d,d=r):(yt=d,d=N="GROUP_CONCAT")),d})()),Tn!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(jn=(function(){var d=u,N,H,X,lr;return(N=(function(){var wr=u,i;return t.charCodeAt(u)===42?(i="*",u++):(i=r,P===0&&Mr(_b)),i!==r&&(yt=wr,i={type:"star",value:"*"}),wr=i})())!==r&&(yt=d,N={expr:N,...rr()}),(d=N)===r&&(d=u,(N=R())===r&&(N=null),N!==r&&jr()!==r&&(H=Vn())!==r&&jr()!==r?((X=Is())===r&&(X=null),X!==r&&jr()!==r?((lr=(function(){var wr=u,i,b;return t.substr(u,9).toLowerCase()==="separator"?(i=t.substr(u,9),u+=9):(i=r,P===0&&Mr(gp)),i===r&&(i=null),i!==r&&jr()!==r&&(b=A0())!==r?(yt=wr,wr=i={keyword:i,value:b}):(u=wr,wr=r),wr})())===r&&(lr=null),lr===r?(u=d,d=r):(yt=d,N=(function(wr,i,b,m){return{distinct:wr,expr:i,orderby:b,separator:m,...rr()}})(N,H,X,lr),d=N)):(u=d,d=r)):(u=d,d=r)),d})())!==r&&jr()!==r&&_s()!==r&&jr()!==r?((ts=Jo())===r&&(ts=null),ts===r?(u=In,In=r):(yt=In,Tn=(function(d,N,H){return{type:"aggr_func",name:d,args:N,over:H}})(Tn,jn,ts),In=Tn)):(u=In,In=r),In})())===r&&(Vt=(function(){var In=u,Tn,jn,ts;return(Tn=(function(){var d;return(d=(function(){var N=u,H,X,lr;return t.substr(u,3).toLowerCase()==="sum"?(H=t.substr(u,3),u+=3):(H=r,P===0&&Mr(Q0)),H===r?(u=N,N=r):(X=u,P++,lr=qs(),P--,lr===r?X=void 0:(u=X,X=r),X===r?(u=N,N=r):(yt=N,N=H="SUM")),N})())===r&&(d=(function(){var N=u,H,X,lr;return t.substr(u,3).toLowerCase()==="max"?(H=t.substr(u,3),u+=3):(H=r,P===0&&Mr(Tl)),H===r?(u=N,N=r):(X=u,P++,lr=qs(),P--,lr===r?X=void 0:(u=X,X=r),X===r?(u=N,N=r):(yt=N,N=H="MAX")),N})())===r&&(d=(function(){var N=u,H,X,lr;return t.substr(u,3).toLowerCase()==="min"?(H=t.substr(u,3),u+=3):(H=r,P===0&&Mr(Ci)),H===r?(u=N,N=r):(X=u,P++,lr=qs(),P--,lr===r?X=void 0:(u=X,X=r),X===r?(u=N,N=r):(yt=N,N=H="MIN")),N})())===r&&(d=(function(){var N=u,H,X,lr;return t.substr(u,3).toLowerCase()==="avg"?(H=t.substr(u,3),u+=3):(H=r,P===0&&Mr(ib)),H===r?(u=N,N=r):(X=u,P++,lr=qs(),P--,lr===r?X=void 0:(u=X,X=r),X===r?(u=N,N=r):(yt=N,N=H="AVG")),N})()),d})())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(jn=gn())!==r&&jr()!==r&&_s()!==r&&jr()!==r?((ts=Jo())===r&&(ts=null),ts===r?(u=In,In=r):(yt=In,Tn=(function(d,N,H){return{type:"aggr_func",name:d,args:{expr:N},over:H,...rr()}})(Tn,jn,ts),In=Tn)):(u=In,In=r),In})()),Vt})())===r&&(Sr=De())===r&&(Sr=vc())===r&&(Sr=(function(){var Vt=u,In,Tn,jn,ts,d,N;return(In=Fs())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Tn=fn())!==r&&jr()!==r&&Sc()!==r&&jr()!==r&&(jn=Hr())!==r&&jr()!==r&&(ts=Dl())!==r&&jr()!==r&&(d=qn())!==r&&jr()!==r&&_s()!==r?(yt=Vt,In=(function(H,X,lr,wr,i){let{dataType:b,length:m}=lr,x=b;return m!==void 0&&(x=`${x}(${m})`),{type:"cast",keyword:H.toLowerCase(),expr:X,symbol:"as",target:[{dataType:x,suffix:[{type:"origin",value:wr},i]}]}})(In,Tn,jn,ts,d),Vt=In):(u=Vt,Vt=r),Vt===r&&(Vt=u,(In=Fs())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Tn=fn())!==r&&jr()!==r&&Sc()!==r&&jr()!==r&&(jn=F0())!==r&&jr()!==r&&(ts=_s())!==r?(yt=Vt,In=(function(H,X,lr){return{type:"cast",keyword:H.toLowerCase(),expr:X,symbol:"as",target:[lr]}})(In,Tn,jn),Vt=In):(u=Vt,Vt=r),Vt===r&&(Vt=u,(In=Fs())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Tn=fn())!==r&&jr()!==r&&Sc()!==r&&jr()!==r&&(jn=ie())!==r&&jr()!==r&&(ts=cs())!==r&&jr()!==r&&(d=Xi())!==r&&jr()!==r&&_s()!==r&&jr()!==r&&(N=_s())!==r?(yt=Vt,In=(function(H,X,lr){return{type:"cast",keyword:H.toLowerCase(),expr:X,symbol:"as",target:[{dataType:"DECIMAL("+lr+")"}]}})(In,Tn,d),Vt=In):(u=Vt,Vt=r),Vt===r&&(Vt=u,(In=Fs())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Tn=fn())!==r&&jr()!==r&&Sc()!==r&&jr()!==r&&(jn=ie())!==r&&jr()!==r&&(ts=cs())!==r&&jr()!==r&&(d=Xi())!==r&&jr()!==r&&Mn()!==r&&jr()!==r&&(N=Xi())!==r&&jr()!==r&&_s()!==r&&jr()!==r&&_s()!==r?(yt=Vt,In=(function(H,X,lr,wr){return{type:"cast",keyword:H.toLowerCase(),expr:X,symbol:"as",target:[{dataType:"DECIMAL("+lr+", "+wr+")"}]}})(In,Tn,d,N),Vt=In):(u=Vt,Vt=r),Vt===r&&(Vt=u,(In=Fs())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Tn=fn())!==r&&jr()!==r&&Sc()!==r&&jr()!==r&&(jn=cb())!==r&&jr()!==r?((ts=$e())===r&&(ts=null),ts!==r&&jr()!==r&&(d=_s())!==r?(yt=Vt,In=(function(H,X,lr,wr){return{type:"cast",keyword:H.toLowerCase(),expr:X,symbol:"as",target:[{dataType:[lr,wr].filter(Boolean).join(" ")}]}})(In,Tn,jn,ts),Vt=In):(u=Vt,Vt=r)):(u=Vt,Vt=r))))),Vt})())===r&&(Sr=(function(){var Vt,In,Tn,jn,ts,d,N,H;return Vt=u,ds()!==r&&jr()!==r&&(In=dt())!==r&&jr()!==r?((Tn=vn())===r&&(Tn=null),Tn!==r&&jr()!==r&&(jn=Ns())!==r&&jr()!==r?((ts=ds())===r&&(ts=null),ts===r?(u=Vt,Vt=r):(yt=Vt,N=In,(H=Tn)&&N.push(H),Vt={type:"case",expr:null,args:N})):(u=Vt,Vt=r)):(u=Vt,Vt=r),Vt===r&&(Vt=u,ds()!==r&&jr()!==r&&(In=fn())!==r&&jr()!==r&&(Tn=dt())!==r&&jr()!==r?((jn=vn())===r&&(jn=null),jn!==r&&jr()!==r&&(ts=Ns())!==r&&jr()!==r?((d=ds())===r&&(d=null),d===r?(u=Vt,Vt=r):(yt=Vt,Vt=(function(X,lr,wr){return wr&&lr.push(wr),{type:"case",expr:X,args:lr}})(In,Tn,jn))):(u=Vt,Vt=r)):(u=Vt,Vt=r)),Vt})())===r&&(Sr=ad())===r&&(Sr=pn())===r&&(Sr=gu())===r&&(Sr=Vo())===r&&(Sr=u,cs()!==r&&(tt=jr())!==r&&(Ct=Vn())!==r&&jr()!==r&&_s()!==r?(yt=Sr,(Xt=Ct).parentheses=!0,Sr=Xt):(u=Sr,Sr=r),Sr===r&&(Sr=Fu())===r&&(Sr=u,jr()===r?(u=Sr,Sr=r):(t.charCodeAt(u)===63?(tt="?",u++):(tt=r,P===0&&Mr(gb)),tt===r?(u=Sr,Sr=r):(yt=Sr,Sr={type:"origin",value:tt}))));var Xt;return Sr})())===r&&(E=u,(U=(function(){var Sr;return t.charCodeAt(u)===33?(Sr="!",u++):(Sr=r,P===0&&Mr(Zp)),Sr===r&&(t.charCodeAt(u)===45?(Sr="-",u++):(Sr=r,P===0&&Mr(Qf)),Sr===r&&(t.charCodeAt(u)===43?(Sr="+",u++):(Sr=r,P===0&&Mr(Nb)),Sr===r&&(t.charCodeAt(u)===126?(Sr="~",u++):(Sr=r,P===0&&Mr(Gv))))),Sr})())===r?(u=E,E=r):(Z=u,(sr=jr())!==r&&(xr=Ut())!==r?Z=sr=[sr,xr]:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U=Dr(U,Z[1])))),E}function pn(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts,d,N;return E=u,(U=xe())===r&&(U=Je()),U!==r&&jr()!==r&&(Z=An())!==r&&(sr=jr())!==r?((xr=xe())===r&&(xr=Je()),xr!==r&&(Sr=jr())!==r&&(tt=An())!==r&&(Ct=jr())!==r&&(Xt=hu())!==r?(Vt=u,(In=jr())!==r&&(Tn=Au())!==r?Vt=In=[In,Tn]:(u=Vt,Vt=r),Vt===r&&(Vt=null),Vt===r?(u=E,E=r):(yt=E,jn=U,ts=xr,d=Xt,N=Vt,ws.add(`select::${jn}::${ts}::${d}`),E=U={type:"column_ref",db:jn,table:ts,column:d,collate:N&&N[1],...rr()})):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=xe())===r&&(U=Je()),U!==r&&jr()!==r&&(Z=An())!==r&&(sr=jr())!==r&&(xr=hu())!==r?(Sr=u,(tt=jr())!==r&&(Ct=Au())!==r?Sr=tt=[tt,Ct]:(u=Sr,Sr=r),Sr===r&&(Sr=null),Sr===r?(u=E,E=r):(yt=E,E=U=(function(H,X,lr){return ws.add(`select::${H}::${X}`),{type:"column_ref",table:H,column:X,collate:lr&&lr[1],...rr()}})(U,xr,Sr))):(u=E,E=r),E===r&&(E=u,(U=Go())!==r&&jr()!==r?(Z=u,(sr=jr())!==r&&(xr=Au())!==r?Z=sr=[sr,xr]:(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(H,X){return ws.add("select::null::"+H),{type:"column_ref",table:null,column:H,collate:X&&X[1],...rr()}})(U,Z))):(u=E,E=r))),E}function Cn(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=Go())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Go())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Go())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=zn(U,Z))}else u=E,E=r;return E}function Hn(){var E,U;return E=u,(U=xe())!==r&&(yt=E,U=tp(U)),E=U}function qn(){var E,U;return E=u,(U=xe())!==r&&(yt=E,U=tp(U)),(E=U)===r&&(E=qe()),E}function Cs(){var E;return(E=xe())===r&&(E=bo()),E}function js(){var E,U;return E=u,(U=xe())===r?(u=E,E=r):(yt=u,(Fv(U)?r:void 0)===r?(u=E,E=r):(yt=E,E=U=U)),E===r&&(E=bo()),E}function qe(){var E;return(E=tu())===r&&(E=Ru())===r&&(E=Je()),E}function bo(){var E,U;return E=u,(U=tu())===r&&(U=Ru())===r&&(U=Je()),U!==r&&(yt=E,U=U.value),E=U}function tu(){var E,U,Z,sr;if(E=u,t.charCodeAt(u)===34?(U='"',u++):(U=r,P===0&&Mr(yl)),U!==r){if(Z=[],jc.test(t.charAt(u))?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(fv)),sr!==r)for(;sr!==r;)Z.push(sr),jc.test(t.charAt(u))?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(fv));else Z=r;Z===r?(u=E,E=r):(t.charCodeAt(u)===34?(sr='"',u++):(sr=r,P===0&&Mr(yl)),sr===r?(u=E,E=r):(yt=E,E=U={type:"double_quote_string",value:Z.join("")}))}else u=E,E=r;return E}function Ru(){var E,U,Z,sr;if(E=u,t.charCodeAt(u)===39?(U="'",u++):(U=r,P===0&&Mr(Nl)),U!==r){for(Z=[],Sl.test(t.charAt(u))?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(Ol));sr!==r;)Z.push(sr),Sl.test(t.charAt(u))?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(Ol));Z===r?(u=E,E=r):(t.charCodeAt(u)===39?(sr="'",u++):(sr=r,P===0&&Mr(Nl)),sr===r?(u=E,E=r):(yt=E,E=U={type:"single_quote_string",value:Z.join("")}))}else u=E,E=r;return E}function Je(){var E,U,Z,sr;if(E=u,t.charCodeAt(u)===96?(U="`",u++):(U=r,P===0&&Mr(np)),U!==r){if(Z=[],bv.test(t.charAt(u))?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(ql)),sr===r&&(sr=bl()),sr!==r)for(;sr!==r;)Z.push(sr),bv.test(t.charAt(u))?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(ql)),sr===r&&(sr=bl());else Z=r;Z===r?(u=E,E=r):(t.charCodeAt(u)===96?(sr="`",u++):(sr=r,P===0&&Mr(np)),sr===r?(u=E,E=r):(yt=E,E=U={type:"backticks_quote_string",value:Z.join("")}))}else u=E,E=r;return E}function hu(){var E,U;return E=u,(U=nu())!==r&&(yt=E,U=U),(E=U)===r&&(E=bo()),E}function Go(){var E,U;return E=u,(U=nu())===r?(u=E,E=r):(yt=u,(Fv(U)?r:void 0)===r?(u=E,E=r):(yt=E,E=U=U)),E===r&&(E=u,(U=Je())!==r&&(yt=E,U=U.value),E=U),E}function nu(){var E,U,Z,sr;if(E=u,(U=qs())!==r){for(Z=[],sr=Ks();sr!==r;)Z.push(sr),sr=Ks();Z===r?(u=E,E=r):(yt=E,E=U=Ec(U,Z))}else u=E,E=r;if(E===r)if(E=u,(U=vl())!==r){if(Z=[],(sr=Ks())!==r)for(;sr!==r;)Z.push(sr),sr=Ks();else Z=r;Z===r?(u=E,E=r):(yt=E,E=U=Ec(U,Z))}else u=E,E=r;return E}function xe(){var E,U,Z,sr;if(E=u,(U=qs())!==r){for(Z=[],sr=fo();sr!==r;)Z.push(sr),sr=fo();Z===r?(u=E,E=r):(yt=E,E=U=Ec(U,Z))}else u=E,E=r;return E}function qs(){var E;return Jp.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(Qp)),E}function fo(){var E;return sp.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(jv)),E}function Ks(){var E;return Tp.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(rd)),E}function Vo(){var E,U,Z,sr;return E=u,U=u,t.charCodeAt(u)===58?(Z=":",u++):(Z=r,P===0&&Mr(jp)),Z!==r&&(sr=xe())!==r?U=Z=[Z,sr]:(u=U,U=r),U!==r&&(yt=E,U={type:"param",value:U[1]}),E=U}function eu(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt;return E=u,Yo()!==r&&jr()!==r&&Ai()!==r&&jr()!==r&&(U=$b())!==r&&jr()!==r?(Z=u,(sr=cs())!==r&&(xr=jr())!==r?((Sr=Rr())===r&&(Sr=null),Sr!==r&&(tt=jr())!==r&&(Ct=_s())!==r?Z=sr=[sr,xr,Sr,tt,Ct]:(u=Z,Z=r)):(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E={type:"on update",keyword:U,parentheses:!!(Xt=Z),expr:Xt?Xt[2]:null})):(u=E,E=r),E===r&&(E=u,Yo()!==r&&jr()!==r&&Ai()!==r&&jr()!==r?(t.substr(u,3).toLowerCase()==="now"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(Ip)),U!==r&&jr()!==r&&(Z=cs())!==r&&(sr=jr())!==r&&(xr=_s())!==r?(yt=E,E=(function(Vt){return{type:"on update",keyword:Vt,parentheses:!0}})(U)):(u=E,E=r)):(u=E,E=r)),E}function Jo(){var E,U,Z;return E=u,t.substr(u,4).toLowerCase()==="over"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(td)),U!==r&&jr()!==r&&(Z=oa())!==r?(yt=E,E=U={type:"window",as_window_specification:Z}):(u=E,E=r),E===r&&(E=eu()),E}function Bu(){var E,U,Z;return E=u,(U=xe())!==r&&jr()!==r&&Sc()!==r&&jr()!==r&&(Z=oa())!==r?(yt=E,E=U={name:U,as_window_specification:Z}):(u=E,E=r),E}function oa(){var E,U;return(E=xe())===r&&(E=u,cs()!==r&&jr()!==r?((U=(function(){var Z=u,sr,xr,Sr;return(sr=ne())===r&&(sr=null),sr!==r&&jr()!==r?((xr=Is())===r&&(xr=null),xr!==r&&jr()!==r?((Sr=(function(){var tt=u,Ct,Xt,Vt,In;return(Ct=_f())!==r&&jr()!==r?((Xt=Nu())===r&&(Xt=cu()),Xt===r?(u=tt,tt=r):(yt=tt,tt=Ct={type:"rows",expr:Xt})):(u=tt,tt=r),tt===r&&(tt=u,(Ct=_f())!==r&&jr()!==r&&(Xt=B())!==r&&jr()!==r&&(Vt=cu())!==r&&jr()!==r&&$t()!==r&&jr()!==r&&(In=Nu())!==r?(yt=tt,Ct=Xr(Xt,{type:"origin",value:"rows"},{type:"expr_list",value:[Vt,In]}),tt=Ct):(u=tt,tt=r)),tt})())===r&&(Sr=null),Sr===r?(u=Z,Z=r):(yt=Z,Z=sr={name:null,partitionby:sr,orderby:xr,window_frame_clause:Sr})):(u=Z,Z=r)):(u=Z,Z=r),Z})())===r&&(U=null),U!==r&&jr()!==r&&_s()!==r?(yt=E,E={window_specification:U||{},parentheses:!0}):(u=E,E=r)):(u=E,E=r)),E}function Nu(){var E,U,Z,sr;return E=u,(U=vu())!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="following"?(Z=t.substr(u,9),u+=9):(Z=r,P===0&&Mr(Bp)),Z===r?(u=E,E=r):(yt=E,(sr=U).value+=" FOLLOWING",E=U=sr)):(u=E,E=r),E===r&&(E=le()),E}function cu(){var E,U,Z,sr,xr;return E=u,(U=vu())!==r&&jr()!==r?(t.substr(u,9).toLowerCase()==="preceding"?(Z=t.substr(u,9),u+=9):(Z=r,P===0&&Mr(Hp)),Z===r&&(t.substr(u,9).toLowerCase()==="following"?(Z=t.substr(u,9),u+=9):(Z=r,P===0&&Mr(Bp))),Z===r?(u=E,E=r):(yt=E,xr=Z,(sr=U).value+=" "+xr.toUpperCase(),E=U=sr)):(u=E,E=r),E===r&&(E=le()),E}function le(){var E,U,Z;return E=u,t.substr(u,7).toLowerCase()==="current"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(kc)),U!==r&&jr()!==r?(t.substr(u,3).toLowerCase()==="row"?(Z=t.substr(u,3),u+=3):(Z=r,P===0&&Mr(ku)),Z===r?(u=E,E=r):(yt=E,E=U={type:"origin",value:"current row"})):(u=E,E=r),E}function vu(){var E,U;return E=u,t.substr(u,9).toLowerCase()==="unbounded"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(Xf)),U!==r&&(yt=E,U={type:"origin",value:U.toUpperCase()}),(E=U)===r&&(E=gu()),E}function Ee(){var E,U;return E=u,t.substr(u,10).toLowerCase()==="year_month"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(sd)),U===r&&(t.substr(u,8).toLowerCase()==="day_hour"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(ed)),U===r&&(t.substr(u,10).toLowerCase()==="day_minute"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(Yp)),U===r&&(t.substr(u,10).toLowerCase()==="day_second"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(od)),U===r&&(t.substr(u,15).toLowerCase()==="day_microsecond"?(U=t.substr(u,15),u+=15):(U=r,P===0&&Mr(ud)),U===r&&(t.substr(u,11).toLowerCase()==="hour_minute"?(U=t.substr(u,11),u+=11):(U=r,P===0&&Mr(Rp)),U===r&&(t.substr(u,11).toLowerCase()==="hour_second"?(U=t.substr(u,11),u+=11):(U=r,P===0&&Mr(O)),U===r&&(t.substr(u,16).toLowerCase()==="hour_microsecond"?(U=t.substr(u,16),u+=16):(U=r,P===0&&Mr(ps)),U===r&&(t.substr(u,13).toLowerCase()==="minute_second"?(U=t.substr(u,13),u+=13):(U=r,P===0&&Mr(Bv)),U===r&&(t.substr(u,18).toLowerCase()==="minute_microsecond"?(U=t.substr(u,18),u+=18):(U=r,P===0&&Mr(Lf)),U===r&&(t.substr(u,18).toLowerCase()==="second_microsecond"?(U=t.substr(u,18),u+=18):(U=r,P===0&&Mr(Hv)),U===r&&(t.substr(u,13).toLowerCase()==="timezone_hour"?(U=t.substr(u,13),u+=13):(U=r,P===0&&Mr(on)),U===r&&(t.substr(u,15).toLowerCase()==="timezone_minute"?(U=t.substr(u,15),u+=15):(U=r,P===0&&Mr(zs)),U===r&&(t.substr(u,7).toLowerCase()==="century"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(Bc)),U===r&&(t.substr(u,3).toLowerCase()==="day"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(vv)),U===r&&(t.substr(u,4).toLowerCase()==="date"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(ep)),U===r&&(t.substr(u,6).toLowerCase()==="decade"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Rs)),U===r&&(t.substr(u,3).toLowerCase()==="dow"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(Np)),U===r&&(t.substr(u,3).toLowerCase()==="doy"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(Wp)),U===r&&(t.substr(u,5).toLowerCase()==="epoch"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(cd)),U===r&&(t.substr(u,4).toLowerCase()==="hour"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Vb)),U===r&&(t.substr(u,6).toLowerCase()==="isodow"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(_)),U===r&&(t.substr(u,7).toLowerCase()==="isoweek"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(Ls)),U===r&&(t.substr(u,7).toLowerCase()==="isoyear"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(pv)),U===r&&(t.substr(u,12).toLowerCase()==="microseconds"?(U=t.substr(u,12),u+=12):(U=r,P===0&&Mr(Cf)),U===r&&(t.substr(u,10).toLowerCase()==="millennium"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(dv)),U===r&&(t.substr(u,12).toLowerCase()==="milliseconds"?(U=t.substr(u,12),u+=12):(U=r,P===0&&Mr(Qt)),U===r&&(t.substr(u,6).toLowerCase()==="minute"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Xs)),U===r&&(t.substr(u,5).toLowerCase()==="month"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(ic)),U===r&&(t.substr(u,7).toLowerCase()==="quarter"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(op)),U===r&&(t.substr(u,6).toLowerCase()==="second"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Kb)),U===r&&(t.substr(u,4).toLowerCase()==="time"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(ys)),U===r&&(t.substr(u,8).toLowerCase()==="timezone"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(_p)),U===r&&(t.substr(u,4).toLowerCase()==="week"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Yv)),U===r&&(t.substr(u,4).toLowerCase()==="year"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Lv)))))))))))))))))))))))))))))))))))),U!==r&&(yt=E,U=U),E=U}function yi(){var E,U,Z,sr,xr,Sr,tt,Ct;return E=u,(U=hn())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Z=Ee())!==r&&jr()!==r&&ip()!==r&&jr()!==r?((sr=Db())===r&&(sr=Wo())===r&&(sr=La())===r&&(sr=Ka()),sr!==r&&jr()!==r&&(xr=fn())!==r&&jr()!==r&&_s()!==r?(yt=E,Sr=Z,tt=sr,Ct=xr,E=U={type:U.toLowerCase(),args:{field:Sr,cast_type:tt,source:Ct},...rr()}):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=hn())!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Z=Ee())!==r&&jr()!==r&&ip()!==r&&jr()!==r&&(sr=fn())!==r&&jr()!==r&&(xr=_s())!==r?(yt=E,E=U=(function(Xt,Vt,In){return{type:Xt.toLowerCase(),args:{field:Vt,source:In},...rr()}})(U,Z,sr)):(u=E,E=r),E===r&&(E=u,t.substr(u,10).toLowerCase()==="date_trunc"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(Wv)),U!==r&&jr()!==r&&cs()!==r&&jr()!==r&&(Z=fn())!==r&&jr()!==r&&Mn()!==r&&jr()!==r&&(sr=Ee())!==r&&jr()!==r&&(xr=_s())!==r?(yt=E,E=U=(function(Xt,Vt){return{type:"function",name:{name:[{type:"origin",value:"date_trunc"}]},args:{type:"expr_list",value:[Xt,{type:"origin",value:Vt}]},over:null,...rr()}})(Z,sr)):(u=E,E=r))),E}function Rc(){var E,U,Z;return E=u,(U=(function(){var sr;return t.substr(u,4).toLowerCase()==="both"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr(zb)),sr===r&&(t.substr(u,7).toLowerCase()==="leading"?(sr=t.substr(u,7),u+=7):(sr=r,P===0&&Mr(wf)),sr===r&&(t.substr(u,8).toLowerCase()==="trailing"?(sr=t.substr(u,8),u+=8):(sr=r,P===0&&Mr(qv)))),sr})())===r&&(U=null),U!==r&&jr()!==r?((Z=fn())===r&&(Z=null),Z!==r&&jr()!==r&&ip()!==r?(yt=E,E=U=(function(sr,xr,Sr){let tt=[];return sr&&tt.push({type:"origin",value:sr}),xr&&tt.push(xr),tt.push({type:"origin",value:"from"}),{type:"expr_list",value:tt}})(U,Z)):(u=E,E=r)):(u=E,E=r),E}function Wa(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="trim"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Cv)),U!==r&&jr()!==r&&cs()!==r&&jr()!==r?((Z=Rc())===r&&(Z=null),Z!==r&&jr()!==r&&(sr=fn())!==r&&jr()!==r&&_s()!==r?(yt=E,E=U=(function(xr,Sr){let tt=xr||{type:"expr_list",value:[]};return tt.value.push(Sr),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:tt,...rr()}})(Z,sr)):(u=E,E=r)):(u=E,E=r),E}function vc(){var E,U,Z,sr,xr,Sr,tt;return(E=yi())===r&&(E=Wa())===r&&(E=u,t.substr(u,7).toLowerCase()==="convert"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(rb)),U!==r&&jr()!==r&&(Z=cs())!==r&&jr()!==r&&(sr=(function(){var Ct,Xt,Vt,In,Tn;return Ct=u,(Xt=Mo())!==r&&jr()!==r&&Mn()!==r&&jr()!==r?((Vt=Hr())===r&&(Vt=L()),Vt!==r&&jr()!==r&&(In=Dl())!==r&&jr()!==r&&(Tn=qn())!==r?(yt=Ct,Ct=Xt=(function(jn,ts,d,N){let{dataType:H,length:X}=ts,lr=H;return X!==void 0&&(lr=`${lr}(${X})`),{type:"expr_list",value:[jn,{type:"origin",value:lr,suffix:{prefix:d,...N}}]}})(Xt,Vt,In,Tn)):(u=Ct,Ct=r)):(u=Ct,Ct=r),Ct===r&&(Ct=u,(Xt=Mo())!==r&&jr()!==r&&Mn()!==r&&jr()!==r?((Vt=cb())===r&&(Vt=F0()),Vt===r?(u=Ct,Ct=r):(yt=Ct,Ct=Xt=(function(jn,ts){return{type:"expr_list",value:[jn,{type:"datatype",...typeof ts=="string"?{dataType:ts}:ts}]}})(Xt,Vt))):(u=Ct,Ct=r),Ct===r&&(Ct=u,(Xt=Vn())!==r&&jr()!==r&&G0()!==r&&jr()!==r&&(Vt=xe())!==r?(yt=Ct,Ct=Xt=(function(jn,ts){return jn.suffix="USING "+ts.toUpperCase(),{type:"expr_list",value:[jn]}})(Xt,Vt)):(u=Ct,Ct=r))),Ct})())!==r&&(xr=jr())!==r&&_s()!==r?(yt=E,E=U={type:"function",name:{name:[{type:"origin",value:"convert"}]},args:sr,...rr()}):(u=E,E=r),E===r&&(E=u,(U=(function(){var Ct;return(Ct=Ev())===r&&(Ct=pu())===r&&(Ct=Wf())===r&&(Ct=(function(){var Xt=u,Vt,In,Tn;return t.substr(u,12).toLowerCase()==="session_user"?(Vt=t.substr(u,12),u+=12):(Vt=r,P===0&&Mr(dn)),Vt===r?(u=Xt,Xt=r):(In=u,P++,Tn=qs(),P--,Tn===r?In=void 0:(u=In,In=r),In===r?(u=Xt,Xt=r):(yt=Xt,Xt=Vt="SESSION_USER")),Xt})())===r&&(Ct=(function(){var Xt=u,Vt,In,Tn;return t.substr(u,11).toLowerCase()==="system_user"?(Vt=t.substr(u,11),u+=11):(Vt=r,P===0&&Mr(Ql)),Vt===r?(u=Xt,Xt=r):(In=u,P++,Tn=qs(),P--,Tn===r?In=void 0:(u=In,In=r),In===r?(u=Xt,Xt=r):(yt=Xt,Xt=Vt="SYSTEM_USER")),Xt})()),Ct})())!==r&&jr()!==r&&(Z=cs())!==r&&jr()!==r?((sr=Rr())===r&&(sr=null),sr!==r&&(xr=jr())!==r&&_s()!==r&&jr()!==r?((Sr=Jo())===r&&(Sr=null),Sr===r?(u=E,E=r):(yt=E,E=U=(function(Ct,Xt,Vt){return{type:"function",name:{name:[{type:"default",value:Ct}]},args:Xt||{type:"expr_list",value:[]},over:Vt,...rr()}})(U,sr,Sr))):(u=E,E=r)):(u=E,E=r),E===r&&(E=u,(U=Ev())!==r&&jr()!==r?((Z=eu())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U={type:"function",name:{name:[{type:"origin",value:U}]},over:Z,...rr()})):(u=E,E=r),E===r&&(E=u,(U=Ko())===r?(u=E,E=r):(yt=u,((function(Ct){return!q[Ct.name[0]&&Ct.name[0].value.toLowerCase()]})(U)?void 0:r)!==r&&(Z=jr())!==r&&cs()!==r&&(sr=jr())!==r?((xr=Vn())===r&&(xr=null),xr!==r&&jr()!==r&&_s()!==r&&(Sr=jr())!==r?((tt=Jo())===r&&(tt=null),tt===r?(u=E,E=r):(yt=E,E=U=(function(Ct,Xt,Vt){return Xt&&Xt.type!=="expr_list"&&(Xt={type:"expr_list",value:[Xt]}),(Ct.name[0]&&Ct.name[0].value.toUpperCase()==="TIMESTAMPDIFF"||Ct.name[0]&&Ct.name[0].value.toUpperCase()==="TIMESTAMPADD")&&Xt.value&&Xt.value[0]&&(Xt.value[0]={type:"origin",value:Xt.value[0].column}),{type:"function",name:Ct,args:Xt||{type:"expr_list",value:[]},over:Vt,...rr()}})(U,xr,tt))):(u=E,E=r)):(u=E,E=r)))))),E}function Ev(){var E;return(E=(function(){var U=u,Z,sr,xr;return t.substr(u,12).toLowerCase()==="current_date"?(Z=t.substr(u,12),u+=12):(Z=r,P===0&&Mr(qc)),Z===r?(u=U,U=r):(sr=u,P++,xr=qs(),P--,xr===r?sr=void 0:(u=sr,sr=r),sr===r?(u=U,U=r):(yt=U,U=Z="CURRENT_DATE")),U})())===r&&(E=(function(){var U=u,Z,sr,xr;return t.substr(u,12).toLowerCase()==="current_time"?(Z=t.substr(u,12),u+=12):(Z=r,P===0&&Mr(Qi)),Z===r?(u=U,U=r):(sr=u,P++,xr=qs(),P--,xr===r?sr=void 0:(u=sr,sr=r),sr===r?(u=U,U=r):(yt=U,U=Z="CURRENT_TIME")),U})())===r&&(E=$b()),E}function cb(){var E;return(E=(function(){var U=u,Z,sr,xr;return t.substr(u,6).toLowerCase()==="signed"?(Z=t.substr(u,6),u+=6):(Z=r,P===0&&Mr(xa)),Z===r?(u=U,U=r):(sr=u,P++,xr=qs(),P--,xr===r?sr=void 0:(u=sr,sr=r),sr===r?(u=U,U=r):(yt=U,U=Z="SIGNED")),U})())===r&&(E=(function(){var U=u,Z,sr,xr;return t.substr(u,8).toLowerCase()==="unsigned"?(Z=t.substr(u,8),u+=8):(Z=r,P===0&&Mr(Ra)),Z===r?(u=U,U=r):(sr=u,P++,xr=qs(),P--,xr===r?sr=void 0:(u=sr,sr=r),sr===r?(u=U,U=r):(yt=U,U=Z="UNSIGNED")),U})()),E}function ad(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt;return E=u,t.substr(u,6).toLowerCase()==="binary"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(tb)),U===r&&(t.substr(u,7).toLowerCase()==="_binary"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(I))),U===r&&(U=null),U!==r&&jr()!==r&&(Z=A0())!==r?(sr=u,(xr=jr())!==r&&(Sr=Au())!==r?sr=xr=[xr,Sr]:(u=sr,sr=r),sr===r&&(sr=null),sr===r?(u=E,E=r):(yt=E,Ct=Z,Xt=sr,(tt=U)&&(Ct.prefix=tt.toLowerCase()),Xt&&(Ct.suffix={collate:Xt[1]}),E=U=Ct)):(u=E,E=r),E===r&&(E=(function(){var Vt=u,In;return(In=(function(){var Tn=u,jn,ts,d;return t.substr(u,4).toLowerCase()==="true"?(jn=t.substr(u,4),u+=4):(jn=r,P===0&&Mr(Li)),jn===r?(u=Tn,Tn=r):(ts=u,P++,d=qs(),P--,d===r?ts=void 0:(u=ts,ts=r),ts===r?(u=Tn,Tn=r):Tn=jn=[jn,ts]),Tn})())!==r&&(yt=Vt,In={type:"bool",value:!0}),(Vt=In)===r&&(Vt=u,(In=(function(){var Tn=u,jn,ts,d;return t.substr(u,5).toLowerCase()==="false"?(jn=t.substr(u,5),u+=5):(jn=r,P===0&&Mr(x0)),jn===r?(u=Tn,Tn=r):(ts=u,P++,d=qs(),P--,d===r?ts=void 0:(u=ts,ts=r),ts===r?(u=Tn,Tn=r):Tn=jn=[jn,ts]),Tn})())!==r&&(yt=Vt,In={type:"bool",value:!1}),Vt=In),Vt})())===r&&(E=ap())===r&&(E=(function(){var Vt=u,In,Tn,jn,ts,d;if((In=La())===r&&(In=Ka())===r&&(In=Db())===r&&(In=dc()),In!==r)if(jr()!==r){if(Tn=u,t.charCodeAt(u)===39?(jn="'",u++):(jn=r,P===0&&Mr(Nl)),jn!==r){for(ts=[],d=Av();d!==r;)ts.push(d),d=Av();ts===r?(u=Tn,Tn=r):(t.charCodeAt(u)===39?(d="'",u++):(d=r,P===0&&Mr(Nl)),d===r?(u=Tn,Tn=r):Tn=jn=[jn,ts,d])}else u=Tn,Tn=r;Tn===r?(u=Vt,Vt=r):(yt=Vt,In=Ob(In,Tn),Vt=In)}else u=Vt,Vt=r;else u=Vt,Vt=r;if(Vt===r)if(Vt=u,(In=La())===r&&(In=Ka())===r&&(In=Db())===r&&(In=dc()),In!==r)if(jr()!==r){if(Tn=u,t.charCodeAt(u)===34?(jn='"',u++):(jn=r,P===0&&Mr(yl)),jn!==r){for(ts=[],d=fl();d!==r;)ts.push(d),d=fl();ts===r?(u=Tn,Tn=r):(t.charCodeAt(u)===34?(d='"',u++):(d=r,P===0&&Mr(yl)),d===r?(u=Tn,Tn=r):Tn=jn=[jn,ts,d])}else u=Tn,Tn=r;Tn===r?(u=Vt,Vt=r):(yt=Vt,In=Ob(In,Tn),Vt=In)}else u=Vt,Vt=r;else u=Vt,Vt=r;return Vt})()),E}function hi(){var E;return(E=ad())===r&&(E=gu()),E}function ap(){var E,U;return E=u,(U=(function(){var Z=u,sr,xr,Sr;return t.substr(u,4).toLowerCase()==="null"?(sr=t.substr(u,4),u+=4):(sr=r,P===0&&Mr(Ft)),sr===r?(u=Z,Z=r):(xr=u,P++,Sr=qs(),P--,Sr===r?xr=void 0:(u=xr,xr=r),xr===r?(u=Z,Z=r):Z=sr=[sr,xr]),Z})())!==r&&(yt=E,U={type:"null",value:null}),E=U}function A0(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,t.substr(u,7).toLowerCase()==="_binary"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(I)),U===r&&(t.substr(u,7).toLowerCase()==="_latin1"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(us))),U===r&&(U=null),U!==r)if((Z=jr())!==r)if(t.substr(u,1).toLowerCase()==="x"?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(Sb)),sr!==r){if(xr=u,t.charCodeAt(u)===39?(Sr="'",u++):(Sr=r,P===0&&Mr(Nl)),Sr!==r){for(tt=[],xl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(nb));Ct!==r;)tt.push(Ct),xl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(nb));tt===r?(u=xr,xr=r):(t.charCodeAt(u)===39?(Ct="'",u++):(Ct=r,P===0&&Mr(Nl)),Ct===r?(u=xr,xr=r):xr=Sr=[Sr,tt,Ct])}else u=xr,xr=r;xr===r?(u=E,E=r):(yt=E,E=U={type:"hex_string",prefix:U,value:xr[1].join("")})}else u=E,E=r;else u=E,E=r;else u=E,E=r;if(E===r){if(E=u,t.substr(u,7).toLowerCase()==="_binary"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(I)),U===r&&(t.substr(u,7).toLowerCase()==="_latin1"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(us))),U===r&&(U=null),U!==r)if((Z=jr())!==r)if(t.substr(u,1).toLowerCase()==="b"?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(zt)),sr!==r){if(xr=u,t.charCodeAt(u)===39?(Sr="'",u++):(Sr=r,P===0&&Mr(Nl)),Sr!==r){for(tt=[],xl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(nb));Ct!==r;)tt.push(Ct),xl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(nb));tt===r?(u=xr,xr=r):(t.charCodeAt(u)===39?(Ct="'",u++):(Ct=r,P===0&&Mr(Nl)),Ct===r?(u=xr,xr=r):xr=Sr=[Sr,tt,Ct])}else u=xr,xr=r;xr===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt,In){return{type:"bit_string",prefix:Xt,value:In[1].join("")}})(U,0,xr))}else u=E,E=r;else u=E,E=r;else u=E,E=r;if(E===r){if(E=u,t.substr(u,7).toLowerCase()==="_binary"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(I)),U===r&&(t.substr(u,7).toLowerCase()==="_latin1"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(us))),U===r&&(U=null),U!==r)if((Z=jr())!==r)if(t.substr(u,2).toLowerCase()==="0x"?(sr=t.substr(u,2),u+=2):(sr=r,P===0&&Mr($s)),sr!==r){for(xr=[],xl.test(t.charAt(u))?(Sr=t.charAt(u),u++):(Sr=r,P===0&&Mr(nb));Sr!==r;)xr.push(Sr),xl.test(t.charAt(u))?(Sr=t.charAt(u),u++):(Sr=r,P===0&&Mr(nb));xr===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt,In){return{type:"full_hex_string",prefix:Xt,value:In.join("")}})(U,0,xr))}else u=E,E=r;else u=E,E=r;else u=E,E=r;if(E===r){if(E=u,t.substr(u,1).toLowerCase()==="n"?(U=t.charAt(u),u++):(U=r,P===0&&Mr(ja)),U!==r){if(Z=u,t.charCodeAt(u)===39?(sr="'",u++):(sr=r,P===0&&Mr(Nl)),sr!==r){for(xr=[],Sr=Av();Sr!==r;)xr.push(Sr),Sr=Av();xr===r?(u=Z,Z=r):(t.charCodeAt(u)===39?(Sr="'",u++):(Sr=r,P===0&&Mr(Nl)),Sr===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr])}else u=Z,Z=r;Z===r?(u=E,E=r):(yt=E,E=U=(function(Xt,Vt){return{type:"natural_string",value:Vt[1].join("")}})(0,Z))}else u=E,E=r;if(E===r){if(E=u,U=u,t.charCodeAt(u)===39?(Z="'",u++):(Z=r,P===0&&Mr(Nl)),Z!==r){for(sr=[],xr=Av();xr!==r;)sr.push(xr),xr=Av();sr===r?(u=U,U=r):(t.charCodeAt(u)===39?(xr="'",u++):(xr=r,P===0&&Mr(Nl)),xr===r?(u=U,U=r):U=Z=[Z,sr,xr])}else u=U,U=r;if(U!==r&&(yt=E,U=(function(Xt){return{type:"single_quote_string",value:Xt[1].join("")}})(U)),(E=U)===r){if(E=u,U=u,t.charCodeAt(u)===34?(Z='"',u++):(Z=r,P===0&&Mr(yl)),Z!==r){for(sr=[],xr=fl();xr!==r;)sr.push(xr),xr=fl();sr===r?(u=U,U=r):(t.charCodeAt(u)===34?(xr='"',u++):(xr=r,P===0&&Mr(yl)),xr===r?(u=U,U=r):U=Z=[Z,sr,xr])}else u=U,U=r;U!==r&&(yt=E,U=(function(Xt){return{type:"double_quote_string",value:Xt[1].join("")}})(U)),E=U}}}}}return E}function fl(){var E;return jf.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(is)),E===r&&(E=bl())===r&&(el.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(Ti))),E}function Av(){var E;return wv.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(yf)),E===r&&(E=bl()),E}function bl(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt;return E=u,t.substr(u,2)==="\\'"?(U="\\'",u+=2):(U=r,P===0&&Mr(X0)),U!==r&&(yt=E,U="\\'"),(E=U)===r&&(E=u,t.substr(u,2)==='\\"'?(U='\\"',u+=2):(U=r,P===0&&Mr(p0)),U!==r&&(yt=E,U='\\"'),(E=U)===r&&(E=u,t.substr(u,2)==="\\\\"?(U="\\\\",u+=2):(U=r,P===0&&Mr(up)),U!==r&&(yt=E,U="\\\\"),(E=U)===r&&(E=u,t.substr(u,2)==="\\/"?(U="\\/",u+=2):(U=r,P===0&&Mr(xb)),U!==r&&(yt=E,U="\\/"),(E=U)===r&&(E=u,t.substr(u,2)==="\\b"?(U="\\b",u+=2):(U=r,P===0&&Mr(Zb)),U!==r&&(yt=E,U="\b"),(E=U)===r&&(E=u,t.substr(u,2)==="\\f"?(U="\\f",u+=2):(U=r,P===0&&Mr(yv)),U!==r&&(yt=E,U="\f"),(E=U)===r&&(E=u,t.substr(u,2)==="\\n"?(U="\\n",u+=2):(U=r,P===0&&Mr(Jb)),U!==r&&(yt=E,U=` +`),(E=U)===r&&(E=u,t.substr(u,2)==="\\r"?(U="\\r",u+=2):(U=r,P===0&&Mr(hv)),U!==r&&(yt=E,U="\r"),(E=U)===r&&(E=u,t.substr(u,2)==="\\t"?(U="\\t",u+=2):(U=r,P===0&&Mr(h)),U!==r&&(yt=E,U=" "),(E=U)===r&&(E=u,t.substr(u,2)==="\\u"?(U="\\u",u+=2):(U=r,P===0&&Mr(ss)),U!==r&&(Z=Ei())!==r&&(sr=Ei())!==r&&(xr=Ei())!==r&&(Sr=Ei())!==r?(yt=E,tt=Z,Ct=sr,Xt=xr,Vt=Sr,E=U=String.fromCharCode(parseInt("0x"+tt+Ct+Xt+Vt))):(u=E,E=r),E===r&&(E=u,t.charCodeAt(u)===92?(U="\\",u++):(U=r,P===0&&Mr(Xl)),U!==r&&(yt=E,U="\\"),(E=U)===r&&(E=u,t.substr(u,2)==="''"?(U="''",u+=2):(U=r,P===0&&Mr(d0)),U!==r&&(yt=E,U="''"),(E=U)===r&&(E=u,t.substr(u,2)==='""'?(U='""',u+=2):(U=r,P===0&&Mr(Bf)),U!==r&&(yt=E,U='""'),(E=U)===r&&(E=u,t.substr(u,2)==="``"?(U="``",u+=2):(U=r,P===0&&Mr(jt)),U!==r&&(yt=E,U="``"),E=U))))))))))))),E}function gu(){var E,U,Z;return E=u,(U=(function(){var sr=u,xr,Sr,tt;return(xr=Xi())!==r&&(Sr=Du())!==r&&(tt=Hu())!==r?(yt=sr,sr=xr={type:"bigint",value:xr+Sr+tt}):(u=sr,sr=r),sr===r&&(sr=u,(xr=Xi())!==r&&(Sr=Du())!==r?(yt=sr,xr=(function(Ct,Xt){let Vt=Ct+Xt;if(Jr(Ct))return{type:"bigint",value:Vt};let In=Xt.length>=1?Xt.length-1:0;return parseFloat(Vt).toFixed(In)})(xr,Sr),sr=xr):(u=sr,sr=r),sr===r&&(sr=u,(xr=Xi())!==r&&(Sr=Hu())!==r?(yt=sr,xr=(function(Ct,Xt){return{type:"bigint",value:Ct+Xt}})(xr,Sr),sr=xr):(u=sr,sr=r),sr===r&&(sr=u,(xr=Xi())!==r&&(yt=sr,xr=(function(Ct){return Jr(Ct)?{type:"bigint",value:Ct}:parseFloat(Ct)})(xr)),sr=xr))),sr})())!==r&&(yt=E,U=(Z=U)&&Z.type==="bigint"?Z:{type:"number",value:Z}),E=U}function Xi(){var E,U,Z;return(E=vl())===r&&(E=rc())===r&&(E=u,t.charCodeAt(u)===45?(U="-",u++):(U=r,P===0&&Mr(Qf)),U===r&&(t.charCodeAt(u)===43?(U="+",u++):(U=r,P===0&&Mr(Nb))),U!==r&&(Z=vl())!==r?(yt=E,E=U+=Z):(u=E,E=r),E===r&&(E=u,t.charCodeAt(u)===45?(U="-",u++):(U=r,P===0&&Mr(Qf)),U===r&&(t.charCodeAt(u)===43?(U="+",u++):(U=r,P===0&&Mr(Nb))),U!==r&&(Z=rc())!==r?(yt=E,E=U=(function(sr,xr){return sr+xr})(U,Z)):(u=E,E=r))),E}function Du(){var E,U,Z,sr;return E=u,t.charCodeAt(u)===46?(U=".",u++):(U=r,P===0&&Mr(sb)),U===r?(u=E,E=r):((Z=vl())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(sr=Z)?"."+sr:"")),E}function Hu(){var E,U,Z;return E=u,(U=(function(){var sr=u,xr,Sr;ns.test(t.charAt(u))?(xr=t.charAt(u),u++):(xr=r,P===0&&Mr(Vl)),xr===r?(u=sr,sr=r):(Hc.test(t.charAt(u))?(Sr=t.charAt(u),u++):(Sr=r,P===0&&Mr(Ub)),Sr===r&&(Sr=null),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr+=(tt=Sr)===null?"":tt));var tt;return sr})())!==r&&(Z=vl())!==r?(yt=E,E=U+=Z):(u=E,E=r),E}function vl(){var E,U,Z;if(E=u,U=[],(Z=rc())!==r)for(;Z!==r;)U.push(Z),Z=rc();else U=r;return U!==r&&(yt=E,U=U.join("")),E=U}function rc(){var E;return sl.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(sc)),E}function Ei(){var E;return eb.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(p)),E}function rv(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="default"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(Oi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Tt(){var E,U,Z,sr;return E=u,t.substr(u,2).toLowerCase()==="to"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(Ta)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Rf(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="show"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Zn)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function ga(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="drop"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Vf)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DROP")),E}function _i(){var E,U,Z,sr;return E=u,t.substr(u,5).toLowerCase()==="alter"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(U0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Nc(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="select"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(C)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Ai(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="update"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Kn)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function tc(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="create"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(zi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Yf(){var E,U,Z,sr;return E=u,t.substr(u,9).toLowerCase()==="temporary"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(Kl)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function sf(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="delete"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(zl)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function mv(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="insert"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Ot)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function pc(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="replace"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(Yi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Si(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="rename"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(L0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function _c(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="ignore"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Bn)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Tv(){var E,U,Z,sr;return E=u,t.substr(u,9).toLowerCase()==="partition"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(C0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="PARTITION")),E}function ef(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="into"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr($f)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function ip(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="from"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Hf)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Uu(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="set"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(jb)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="SET")),E}function Sc(){var E,U,Z,sr;return E=u,t.substr(u,2).toLowerCase()==="as"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(mi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function of(){var E,U,Z,sr;return E=u,t.substr(u,5).toLowerCase()==="table"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(Tb)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="TABLE")),E}function Xc(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="trigger"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(k0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="TRIGGER")),E}function qa(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="tables"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(M0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="TABLES")),E}function qo(){var E,U,Z,sr;return E=u,t.substr(u,8).toLowerCase()==="database"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Wi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DATABASE")),E}function Oc(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="schema"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(wa)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="SCHEMA")),E}function Yo(){var E,U,Z,sr;return E=u,t.substr(u,2).toLowerCase()==="on"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(Oa)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Xo(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="join"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Ef)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function $l(){var E,U,Z,sr;return E=u,t.substr(u,5).toLowerCase()==="outer"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(K0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function m0(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="values"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Ye)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function G0(){var E,U,Z,sr;return E=u,t.substr(u,5).toLowerCase()==="using"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(mf)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function va(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="with"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Ps)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Nf(){var E,U,Z,sr;return E=u,t.substr(u,2).toLowerCase()==="by"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(pe)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Xu(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="asc"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(mc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="ASC")),E}function ot(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="desc"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Tc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DESC")),E}function Xv(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="all"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(bi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="ALL")),E}function R(){var E,U,Z,sr;return E=u,t.substr(u,8).toLowerCase()==="distinct"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Yc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DISTINCT")),E}function B(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="between"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(Z0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="BETWEEN")),E}function cr(){var E,U,Z,sr;return E=u,t.substr(u,2).toLowerCase()==="in"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(uc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="IN")),E}function Er(){var E,U,Z,sr;return E=u,t.substr(u,2).toLowerCase()==="is"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(lc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="IS")),E}function vt(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="like"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Ic)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="LIKE")),E}function it(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="exists"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(ml)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="EXISTS")),E}function Et(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="not"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(N0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="NOT")),E}function $t(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="and"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(Ul)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="AND")),E}function en(){var E,U,Z,sr;return E=u,t.substr(u,2).toLowerCase()==="or"?(U=t.substr(u,2),u+=2):(U=r,P===0&&Mr(aa)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="OR")),E}function hn(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="extract"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(fa)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="EXTRACT")),E}function ds(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="case"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(rf)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Ns(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="end"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(gf)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):E=U=[U,Z]),E}function Fs(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="cast"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(Zl)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="CAST")),E}function ue(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="bit"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(cc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="BIT")),E}function ee(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="numeric"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(st)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="NUMERIC")),E}function ie(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="decimal"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(gi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DECIMAL")),E}function ro(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="int"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(or)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="INT")),E}function $e(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="integer"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(ju)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="INTEGER")),E}function Gs(){var E,U,Z,sr;return E=u,t.substr(u,8).toLowerCase()==="smallint"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Wc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="SMALLINT")),E}function iu(){var E,U,Z,sr;return E=u,t.substr(u,9).toLowerCase()==="mediumint"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(Kr)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="MEDIUMINT")),E}function Oo(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="tinyint"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(Mb)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="TINYINT")),E}function wu(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="bigint"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(qu)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="BIGINT")),E}function Ea(){var E,U,Z,sr;return E=u,t.substr(u,5).toLowerCase()==="float"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(tf)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="FLOAT")),E}function Do(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="double"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Qu)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DOUBLE")),E}function Ka(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="date"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(ep)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DATE")),E}function dc(){var E,U,Z,sr;return E=u,t.substr(u,8).toLowerCase()==="datetime"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(P0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="DATETIME")),E}function _f(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="rows"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(cp)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="ROWS")),E}function La(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="time"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(ys)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="TIME")),E}function Db(){var E,U,Z,sr;return E=u,t.substr(u,9).toLowerCase()==="timestamp"?(U=t.substr(u,9),u+=9):(U=r,P===0&&Mr(gc)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="TIMESTAMP")),E}function Wf(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="user"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(al)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="USER")),E}function Wo(){var E,U,Z,sr;return E=u,t.substr(u,8).toLowerCase()==="interval"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Ba)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="INTERVAL")),E}function $b(){var E,U,Z,sr;return E=u,t.substr(u,17).toLowerCase()==="current_timestamp"?(U=t.substr(u,17),u+=17):(U=r,P===0&&Mr(ya)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="CURRENT_TIMESTAMP")),E}function pu(){var E,U,Z,sr;return E=u,t.substr(u,12).toLowerCase()==="current_user"?(U=t.substr(u,12),u+=12):(U=r,P===0&&Mr(l)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="CURRENT_USER")),E}function fu(){var E,U,Z,sr;return E=u,t.substr(u,4).toLowerCase()==="view"?(U=t.substr(u,4),u+=4):(U=r,P===0&&Mr(c0)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="VIEW")),E}function Vu(){var E;return t.charCodeAt(u)===64?(E="@",u++):(E=r,P===0&&Mr(Ue)),E}function ra(){var E;return(E=(function(){var U;return t.substr(u,2)==="@@"?(U="@@",u+=2):(U=r,P===0&&Mr(yn)),U})())===r&&(E=Vu())===r&&(E=(function(){var U;return t.charCodeAt(u)===36?(U="$",u++):(U=r,P===0&&Mr(ka)),U})()),E}function fd(){var E;return t.substr(u,2)===":="?(E=":=",u+=2):(E=r,P===0&&Mr(Ou)),E}function w(){var E;return t.charCodeAt(u)===61?(E="=",u++):(E=r,P===0&&Mr(O0)),E}function G(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="add"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(zu)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="ADD")),E}function z(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="column"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(Yu)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="COLUMN")),E}function g(){var E,U,Z,sr;return E=u,t.substr(u,5).toLowerCase()==="index"?(U=t.substr(u,5),u+=5):(U=r,P===0&&Mr(Bb)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="INDEX")),E}function Gr(){var E,U,Z,sr;return E=u,t.substr(u,3).toLowerCase()==="key"?(U=t.substr(u,3),u+=3):(U=r,P===0&&Mr(ce)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="KEY")),E}function Vr(){var E,U,Z,sr;return E=u,t.substr(u,8).toLowerCase()==="fulltext"?(U=t.substr(u,8),u+=8):(U=r,P===0&&Mr(Mi)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="FULLTEXT")),E}function Qr(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="spatial"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(ha)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="SPATIAL")),E}function Pt(){var E,U,Z,sr;return E=u,t.substr(u,6).toLowerCase()==="unique"?(U=t.substr(u,6),u+=6):(U=r,P===0&&Mr(te)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="UNIQUE")),E}function wn(){var E,U,Z,sr;return E=u,t.substr(u,7).toLowerCase()==="comment"?(U=t.substr(u,7),u+=7):(U=r,P===0&&Mr(Ha)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="COMMENT")),E}function Rn(){var E,U,Z,sr;return E=u,t.substr(u,10).toLowerCase()==="references"?(U=t.substr(u,10),u+=10):(U=r,P===0&&Mr(Oe)),U===r?(u=E,E=r):(Z=u,P++,sr=qs(),P--,sr===r?Z=void 0:(u=Z,Z=r),Z===r?(u=E,E=r):(yt=E,E=U="REFERENCES")),E}function An(){var E;return t.charCodeAt(u)===46?(E=".",u++):(E=r,P===0&&Mr(sb)),E}function Mn(){var E;return t.charCodeAt(u)===44?(E=",",u++):(E=r,P===0&&Mr(ll)),E}function as(){var E;return t.charCodeAt(u)===42?(E="*",u++):(E=r,P===0&&Mr(_b)),E}function cs(){var E;return t.charCodeAt(u)===40?(E="(",u++):(E=r,P===0&&Mr(fp)),E}function _s(){var E;return t.charCodeAt(u)===41?(E=")",u++):(E=r,P===0&&Mr(oc)),E}function we(){var E;return t.charCodeAt(u)===59?(E=";",u++):(E=r,P===0&&Mr(an)),E}function Pe(){var E;return(E=(function(){var U;return t.substr(u,2)==="||"?(U="||",u+=2):(U=r,P===0&&Mr($v)),U})())===r&&(E=(function(){var U;return t.substr(u,2)==="&&"?(U="&&",u+=2):(U=r,P===0&&Mr(Ma)),U})())===r&&(E=(function(){var U,Z,sr,xr;return U=u,t.substr(u,3).toLowerCase()==="xor"?(Z=t.substr(u,3),u+=3):(Z=r,P===0&&Mr(Da)),Z===r?(u=U,U=r):(sr=u,P++,xr=qs(),P--,xr===r?sr=void 0:(u=sr,sr=r),sr===r?(u=U,U=r):(yt=U,U=Z="XOR")),U})()),E}function jr(){var E,U;for(E=[],(U=ru())===r&&(U=Bo());U!==r;)E.push(U),(U=ru())===r&&(U=Bo());return E}function oo(){var E,U;if(E=[],(U=ru())===r&&(U=Bo()),U!==r)for(;U!==r;)E.push(U),(U=ru())===r&&(U=Bo());else E=r;return E}function Bo(){var E;return(E=(function(){var U=u,Z,sr,xr,Sr,tt;if(t.substr(u,2)==="/*"?(Z="/*",u+=2):(Z=r,P===0&&Mr(ii)),Z!==r){for(sr=[],xr=u,Sr=u,P++,t.substr(u,2)==="*/"?(tt="*/",u+=2):(tt=r,P===0&&Mr(nt)),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr!==r&&(tt=lu())!==r?xr=Sr=[Sr,tt]:(u=xr,xr=r);xr!==r;)sr.push(xr),xr=u,Sr=u,P++,t.substr(u,2)==="*/"?(tt="*/",u+=2):(tt=r,P===0&&Mr(nt)),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr!==r&&(tt=lu())!==r?xr=Sr=[Sr,tt]:(u=xr,xr=r);sr===r?(u=U,U=r):(t.substr(u,2)==="*/"?(xr="*/",u+=2):(xr=r,P===0&&Mr(nt)),xr===r?(u=U,U=r):U=Z=[Z,sr,xr])}else u=U,U=r;return U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt;if(t.substr(u,2)==="--"?(Z="--",u+=2):(Z=r,P===0&&Mr(o)),Z!==r){for(sr=[],xr=u,Sr=u,P++,tt=Me(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr!==r&&(tt=lu())!==r?xr=Sr=[Sr,tt]:(u=xr,xr=r);xr!==r;)sr.push(xr),xr=u,Sr=u,P++,tt=Me(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr!==r&&(tt=lu())!==r?xr=Sr=[Sr,tt]:(u=xr,xr=r);sr===r?(u=U,U=r):U=Z=[Z,sr]}else u=U,U=r;return U})())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt;if(t.charCodeAt(u)===35?(Z="#",u++):(Z=r,P===0&&Mr(Zt)),Z!==r){for(sr=[],xr=u,Sr=u,P++,tt=Me(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr!==r&&(tt=lu())!==r?xr=Sr=[Sr,tt]:(u=xr,xr=r);xr!==r;)sr.push(xr),xr=u,Sr=u,P++,tt=Me(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr!==r&&(tt=lu())!==r?xr=Sr=[Sr,tt]:(u=xr,xr=r);sr===r?(u=U,U=r):U=Z=[Z,sr]}else u=U,U=r;return U})()),E}function No(){var E,U,Z,sr;return E=u,(U=wn())!==r&&jr()!==r?((Z=w())===r&&(Z=null),Z!==r&&jr()!==r&&(sr=A0())!==r?(yt=E,E=U=(function(xr,Sr,tt){return{type:xr.toLowerCase(),keyword:xr.toLowerCase(),symbol:Sr,value:tt}})(U,Z,sr)):(u=E,E=r)):(u=E,E=r),E}function lu(){var E;return t.length>u?(E=t.charAt(u),u++):(E=r,P===0&&Mr(ba)),E}function ru(){var E;return bu.test(t.charAt(u))?(E=t.charAt(u),u++):(E=r,P===0&&Mr(Ht)),E}function Me(){var E,U;if((E=(function(){var Z=u,sr;return P++,t.length>u?(sr=t.charAt(u),u++):(sr=r,P===0&&Mr(ba)),P--,sr===r?Z=void 0:(u=Z,Z=r),Z})())===r)if(E=[],Us.test(t.charAt(u))?(U=t.charAt(u),u++):(U=r,P===0&&Mr(ol)),U!==r)for(;U!==r;)E.push(U),Us.test(t.charAt(u))?(U=t.charAt(u),u++):(U=r,P===0&&Mr(ol));else E=r;return E}function _u(){var E,U;return E=u,yt=u,Es=[],r!==void 0&&jr()!==r?((U=mo())===r&&(U=(function(){var Z=u,sr;return(function(){var xr;return t.substr(u,6).toLowerCase()==="return"?(xr=t.substr(u,6),u+=6):(xr=r,P===0&&Mr(Ua)),xr})()!==r&&jr()!==r&&(sr=ho())!==r?(yt=Z,Z={type:"return",expr:sr}):(u=Z,Z=r),Z})()),U===r?(u=E,E=r):(yt=E,E={stmt:U,vars:Es})):(u=E,E=r),E}function mo(){var E,U,Z,sr;return E=u,(U=Fu())===r&&(U=Pi()),U!==r&&jr()!==r?((Z=fd())===r&&(Z=w()),Z!==r&&jr()!==r&&(sr=ho())!==r?(yt=E,E=U=rt(U,Z,sr)):(u=E,E=r)):(u=E,E=r),E}function ho(){var E;return(E=mt())===r&&(E=(function(){var U=u,Z,sr,xr,Sr;return(Z=Fu())!==r&&jr()!==r&&(sr=$n())!==r&&jr()!==r&&(xr=Fu())!==r&&jr()!==r&&(Sr=ks())!==r?(yt=U,U=Z={type:"join",ltable:Z,rtable:xr,op:sr,on:Sr}):(u=U,U=r),U})())===r&&(E=Mo())===r&&(E=(function(){var U=u,Z;return(function(){var sr;return t.charCodeAt(u)===91?(sr="[",u++):(sr=r,P===0&&Mr(cl)),sr})()!==r&&jr()!==r&&(Z=Lc())!==r&&jr()!==r&&(function(){var sr;return t.charCodeAt(u)===93?(sr="]",u++):(sr=r,P===0&&Mr(a)),sr})()!==r?(yt=U,U={type:"array",value:Z}):(u=U,U=r),U})()),E}function Mo(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=Fo())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=pt())!==r&&(tt=jr())!==r&&(Ct=Fo())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=pt())!==r&&(tt=jr())!==r&&(Ct=Fo())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=ac(U,Z))}else u=E,E=r;return E}function Fo(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=Gu())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Bt())!==r&&(tt=jr())!==r&&(Ct=Gu())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Bt())!==r&&(tt=jr())!==r&&(Ct=Gu())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=ac(U,Z))}else u=E,E=r;return E}function Gu(){var E,U,Z;return(E=Wr())===r&&(E=hi())===r&&(E=Fu())===r&&(E=pn())===r&&(E=Aa())===r&&(E=Vo())===r&&(E=u,cs()!==r&&jr()!==r&&(U=Mo())!==r&&jr()!==r&&_s()!==r?(yt=E,(Z=U).parentheses=!0,E=Z):(u=E,E=r)),E}function Ko(){var E,U,Z,sr,xr,Sr,tt;return E=u,(U=Hn())===r&&(U=Je()),U===r?(u=E,E=r):(Z=u,(sr=jr())!==r&&(xr=An())!==r&&(Sr=jr())!==r?((tt=Hn())===r&&(tt=Je()),tt===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr,tt]):(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Ct,Xt){let Vt={name:[Ct]};return Xt!==null&&(Vt.schema=Ct,Vt.name=[Xt[3]]),Vt})(U,Z))),E}function Wr(){var E,U,Z;return E=u,(U=Ko())!==r&&jr()!==r&&cs()!==r&&jr()!==r?((Z=Lc())===r&&(Z=null),Z!==r&&jr()!==r&&_s()!==r?(yt=E,E=U=(function(sr,xr){return{type:"function",name:sr,args:{type:"expr_list",value:xr},...rr()}})(U,Z)):(u=E,E=r)):(u=E,E=r),E}function Aa(){var E,U;return E=u,(U=Ko())!==r&&(yt=E,U=(function(Z){return{type:"function",name:Z,args:null,...rr()}})(U)),E=U}function Lc(){var E,U,Z,sr,xr,Sr,tt,Ct;if(E=u,(U=Gu())!==r){for(Z=[],sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Gu())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);sr!==r;)Z.push(sr),sr=u,(xr=jr())!==r&&(Sr=Mn())!==r&&(tt=jr())!==r&&(Ct=Gu())!==r?sr=xr=[xr,Sr,tt,Ct]:(u=sr,sr=r);Z===r?(u=E,E=r):(yt=E,E=U=zn(U,Z))}else u=E,E=r;return E}function Fu(){var E,U,Z,sr,xr;return E=u,(U=ra())!==r&&(Z=Pi())!==r?(yt=E,sr=U,xr=Z,E=U={type:"var",...xr,prefix:sr}):(u=E,E=r),E}function Pi(){var E,U,Z;return E=u,(U=xe())!==r&&(Z=(function(){var sr=u,xr=[],Sr=u,tt,Ct;for(t.charCodeAt(u)===46?(tt=".",u++):(tt=r,P===0&&Mr(sb)),tt!==r&&(Ct=xe())!==r?Sr=tt=[tt,Ct]:(u=Sr,Sr=r);Sr!==r;)xr.push(Sr),Sr=u,t.charCodeAt(u)===46?(tt=".",u++):(tt=r,P===0&&Mr(sb)),tt!==r&&(Ct=xe())!==r?Sr=tt=[tt,Ct]:(u=Sr,Sr=r);return xr!==r&&(yt=sr,xr=(function(Xt){let Vt=[];for(let In=0;In<Xt.length;In++)Vt.push(Xt[In][1]);return Vt})(xr)),sr=xr})())!==r?(yt=E,E=U=(function(sr,xr){return Es.push(sr),{type:"var",name:sr,members:xr,prefix:null}})(U,Z)):(u=E,E=r),E===r&&(E=u,(U=gu())!==r&&(yt=E,U={type:"var",name:U.value,members:[],quoted:null,prefix:null}),E=U),E}function F0(){var E;return(E=Hr())===r&&(E=(function(){var U=u,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn;if((Z=ee())===r&&(Z=ie())===r&&(Z=ro())===r&&(Z=$e())===r&&(Z=Gs())===r&&(Z=iu())===r&&(Z=Oo())===r&&(Z=wu())===r&&(Z=Ea())===r&&(Z=Do())===r&&(Z=ue()),Z!==r)if((sr=jr())!==r)if((xr=cs())!==r)if((Sr=jr())!==r){if(tt=[],sl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(sc)),Ct!==r)for(;Ct!==r;)tt.push(Ct),sl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(sc));else tt=r;if(tt!==r)if((Ct=jr())!==r){if(Xt=u,(Vt=Mn())!==r)if((In=jr())!==r){if(Tn=[],sl.test(t.charAt(u))?(jn=t.charAt(u),u++):(jn=r,P===0&&Mr(sc)),jn!==r)for(;jn!==r;)Tn.push(jn),sl.test(t.charAt(u))?(jn=t.charAt(u),u++):(jn=r,P===0&&Mr(sc));else Tn=r;Tn===r?(u=Xt,Xt=r):Xt=Vt=[Vt,In,Tn]}else u=Xt,Xt=r;else u=Xt,Xt=r;Xt===r&&(Xt=null),Xt!==r&&(Vt=jr())!==r&&(In=_s())!==r&&(Tn=jr())!==r?((jn=pi())===r&&(jn=null),jn===r?(u=U,U=r):(yt=U,ts=Xt,d=jn,Z={dataType:Z,length:parseInt(tt.join(""),10),scale:ts&&parseInt(ts[2].join(""),10),parentheses:!0,suffix:d},U=Z)):(u=U,U=r)}else u=U,U=r;else u=U,U=r}else u=U,U=r;else u=U,U=r;else u=U,U=r;else u=U,U=r;var ts,d;if(U===r){if(U=u,(Z=ee())===r&&(Z=ie())===r&&(Z=ro())===r&&(Z=$e())===r&&(Z=Gs())===r&&(Z=iu())===r&&(Z=Oo())===r&&(Z=wu())===r&&(Z=Ea())===r&&(Z=Do())===r&&(Z=ue()),Z!==r){if(sr=[],sl.test(t.charAt(u))?(xr=t.charAt(u),u++):(xr=r,P===0&&Mr(sc)),xr!==r)for(;xr!==r;)sr.push(xr),sl.test(t.charAt(u))?(xr=t.charAt(u),u++):(xr=r,P===0&&Mr(sc));else sr=r;sr!==r&&(xr=jr())!==r?((Sr=pi())===r&&(Sr=null),Sr===r?(u=U,U=r):(yt=U,Z=(function(N,H,X){return{dataType:N,length:parseInt(H.join(""),10),suffix:X}})(Z,sr,Sr),U=Z)):(u=U,U=r)}else u=U,U=r;U===r&&(U=u,(Z=ee())===r&&(Z=ie())===r&&(Z=ro())===r&&(Z=$e())===r&&(Z=Gs())===r&&(Z=iu())===r&&(Z=Oo())===r&&(Z=wu())===r&&(Z=Ea())===r&&(Z=Do())===r&&(Z=ue()),Z!==r&&(sr=jr())!==r?((xr=pi())===r&&(xr=null),xr!==r&&(Sr=jr())!==r?(yt=U,Z=(function(N,H){return{dataType:N,suffix:H}})(Z,xr),U=Z):(u=U,U=r)):(u=U,U=r))}return U})())===r&&(E=L())===r&&(E=(function(){var U=u,Z;return(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,4).toLowerCase()==="json"?(xr=t.substr(u,4),u+=4):(xr=r,P===0&&Mr(Il)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="JSON")),sr})())!==r&&(yt=U,Z={dataType:Z}),U=Z})())===r&&(E=(function(){var U=u,Z,sr;return(Z=(function(){var xr,Sr,tt,Ct;return xr=u,t.substr(u,8).toLowerCase()==="tinytext"?(Sr=t.substr(u,8),u+=8):(Sr=r,P===0&&Mr(fc)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="TINYTEXT")),xr})())===r&&(Z=(function(){var xr,Sr,tt,Ct;return xr=u,t.substr(u,4).toLowerCase()==="text"?(Sr=t.substr(u,4),u+=4):(Sr=r,P===0&&Mr(qi)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="TEXT")),xr})())===r&&(Z=(function(){var xr,Sr,tt,Ct;return xr=u,t.substr(u,10).toLowerCase()==="mediumtext"?(Sr=t.substr(u,10),u+=10):(Sr=r,P===0&&Mr(Ji)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="MEDIUMTEXT")),xr})())===r&&(Z=(function(){var xr,Sr,tt,Ct;return xr=u,t.substr(u,8).toLowerCase()==="longtext"?(Sr=t.substr(u,8),u+=8):(Sr=r,P===0&&Mr(Ri)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="LONGTEXT")),xr})()),Z===r?(u=U,U=r):((sr=Zu())===r&&(sr=null),sr===r?(u=U,U=r):(yt=U,Z=It(Z,sr),U=Z)),U})())===r&&(E=(function(){var U=u,Z,sr;(Z=(function(){var tt,Ct,Xt,Vt;return tt=u,t.substr(u,4).toLowerCase()==="enum"?(Ct=t.substr(u,4),u+=4):(Ct=r,P===0&&Mr(Se)),Ct===r?(u=tt,tt=r):(Xt=u,P++,Vt=qs(),P--,Vt===r?Xt=void 0:(u=Xt,Xt=r),Xt===r?(u=tt,tt=r):(yt=tt,tt=Ct="ENUM")),tt})())===r&&(Z=Uu()),Z!==r&&jr()!==r&&(sr=Nr())!==r?(yt=U,xr=Z,(Sr=sr).parentheses=!0,U=Z={dataType:xr,expr:Sr}):(u=U,U=r);var xr,Sr;return U})())===r&&(E=(function(){var U=u,Z;return(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,4).toLowerCase()==="uuid"?(xr=t.substr(u,4),u+=4):(xr=r,P===0&&Mr(Jl)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="UUID")),sr})())!==r&&(yt=U,Z={dataType:Z}),U=Z})())===r&&(E=(function(){var U=u,Z;return t.substr(u,7).toLowerCase()==="boolean"?(Z=t.substr(u,7),u+=7):(Z=r,P===0&&Mr(k)),Z!==r&&(yt=U,Z={dataType:"BOOLEAN"}),U=Z})())===r&&(E=(function(){var U=u,Z,sr;return(Z=(function(){var xr,Sr,tt,Ct;return xr=u,t.substr(u,6).toLowerCase()==="binary"?(Sr=t.substr(u,6),u+=6):(Sr=r,P===0&&Mr(_l)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="BINARY")),xr})())===r&&(Z=(function(){var xr,Sr,tt,Ct;return xr=u,t.substr(u,9).toLowerCase()==="varbinary"?(Sr=t.substr(u,9),u+=9):(Sr=r,P===0&&Mr(Xa)),Sr===r?(u=xr,xr=r):(tt=u,P++,Ct=qs(),P--,Ct===r?tt=void 0:(u=tt,tt=r),tt===r?(u=xr,xr=r):(yt=xr,xr=Sr="VARBINARY")),xr})()),Z!==r&&jr()!==r?((sr=Zu())===r&&(sr=null),sr===r?(u=U,U=r):(yt=U,Z=It(Z,sr),U=Z)):(u=U,U=r),U})())===r&&(E=(function(){var U=u,Z;return t.substr(u,4).toLowerCase()==="blob"?(Z=t.substr(u,4),u+=4):(Z=r,P===0&&Mr(Lr)),Z===r&&(t.substr(u,8).toLowerCase()==="tinyblob"?(Z=t.substr(u,8),u+=8):(Z=r,P===0&&Mr(Or)),Z===r&&(t.substr(u,10).toLowerCase()==="mediumblob"?(Z=t.substr(u,10),u+=10):(Z=r,P===0&&Mr(Fr)),Z===r&&(t.substr(u,8).toLowerCase()==="longblob"?(Z=t.substr(u,8),u+=8):(Z=r,P===0&&Mr(dr))))),Z!==r&&(yt=U,Z={dataType:Z.toUpperCase()}),U=Z})())===r&&(E=(function(){var U=u,Z;return(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,8).toLowerCase()==="geometry"?(xr=t.substr(u,8),u+=8):(xr=r,P===0&&Mr(Eu)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="GEOMETRY")),sr})())===r&&(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,5).toLowerCase()==="point"?(xr=t.substr(u,5),u+=5):(xr=r,P===0&&Mr(ia)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="POINT")),sr})())===r&&(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,10).toLowerCase()==="linestring"?(xr=t.substr(u,10),u+=10):(xr=r,P===0&&Mr(ve)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="LINESTRING")),sr})())===r&&(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,7).toLowerCase()==="polygon"?(xr=t.substr(u,7),u+=7):(xr=r,P===0&&Mr(Jt)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="POLYGON")),sr})())===r&&(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,10).toLowerCase()==="multipoint"?(xr=t.substr(u,10),u+=10):(xr=r,P===0&&Mr(nf)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="MULTIPOINT")),sr})())===r&&(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,15).toLowerCase()==="multilinestring"?(xr=t.substr(u,15),u+=15):(xr=r,P===0&&Mr(E0)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="MULTILINESTRING")),sr})())===r&&(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,12).toLowerCase()==="multipolygon"?(xr=t.substr(u,12),u+=12):(xr=r,P===0&&Mr(kl)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="MULTIPOLYGON")),sr})())===r&&(Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,18).toLowerCase()==="geometrycollection"?(xr=t.substr(u,18),u+=18):(xr=r,P===0&&Mr(oi)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="GEOMETRYCOLLECTION")),sr})()),Z!==r&&(yt=U,Z={dataType:Z}),U=Z})()),E}function Zu(){var E,U,Z,sr,xr;if(E=u,cs()!==r)if(jr()!==r){if(U=[],sl.test(t.charAt(u))?(Z=t.charAt(u),u++):(Z=r,P===0&&Mr(sc)),Z!==r)for(;Z!==r;)U.push(Z),sl.test(t.charAt(u))?(Z=t.charAt(u),u++):(Z=r,P===0&&Mr(sc));else U=r;U!==r&&(Z=jr())!==r&&_s()!==r&&jr()!==r?((sr=pi())===r&&(sr=null),sr===r?(u=E,E=r):(yt=E,xr=sr,E={length:parseInt(U.join(""),10),parentheses:!0,suffix:xr})):(u=E,E=r)}else u=E,E=r;else u=E,E=r;return E}function Hr(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In;if(E=u,(U=(function(){var Tn,jn,ts,d;return Tn=u,t.substr(u,4).toLowerCase()==="char"?(jn=t.substr(u,4),u+=4):(jn=r,P===0&&Mr(h0)),jn===r?(u=Tn,Tn=r):(ts=u,P++,d=qs(),P--,d===r?ts=void 0:(u=ts,ts=r),ts===r?(u=Tn,Tn=r):(yt=Tn,Tn=jn="CHAR")),Tn})())===r&&(U=(function(){var Tn,jn,ts,d;return Tn=u,t.substr(u,7).toLowerCase()==="varchar"?(jn=t.substr(u,7),u+=7):(jn=r,P===0&&Mr(n)),jn===r?(u=Tn,Tn=r):(ts=u,P++,d=qs(),P--,d===r?ts=void 0:(u=ts,ts=r),ts===r?(u=Tn,Tn=r):(yt=Tn,Tn=jn="VARCHAR")),Tn})()),U!==r){if(Z=u,(sr=jr())!==r)if((xr=cs())!==r)if((Sr=jr())!==r){if(tt=[],sl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(sc)),Ct!==r)for(;Ct!==r;)tt.push(Ct),sl.test(t.charAt(u))?(Ct=t.charAt(u),u++):(Ct=r,P===0&&Mr(sc));else tt=r;tt!==r&&(Ct=jr())!==r&&(Xt=_s())!==r&&(Vt=jr())!==r?(t.substr(u,5).toLowerCase()==="array"?(In=t.substr(u,5),u+=5):(In=r,P===0&&Mr(Dt)),In===r&&(In=null),In===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr,tt,Ct,Xt,Vt,In]):(u=Z,Z=r)}else u=Z,Z=r;else u=Z,Z=r;else u=Z,Z=r;Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Tn,jn){let ts={dataType:Tn};return jn&&(ts.length=parseInt(jn[3].join(""),10),ts.parentheses=!0,ts.suffix=jn[7]&&["ARRAY"]),ts})(U,Z))}else u=E,E=r;return E}function pi(){var E,U,Z;return E=u,(U=cb())===r&&(U=null),U!==r&&jr()!==r?((Z=(function(){var sr,xr,Sr,tt;return sr=u,t.substr(u,8).toLowerCase()==="zerofill"?(xr=t.substr(u,8),u+=8):(xr=r,P===0&&Mr(Nt)),xr===r?(u=sr,sr=r):(Sr=u,P++,tt=qs(),P--,tt===r?Sr=void 0:(u=Sr,Sr=r),Sr===r?(u=sr,sr=r):(yt=sr,sr=xr="ZEROFILL")),sr})())===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(sr,xr){let Sr=[];return sr&&Sr.push(sr),xr&&Sr.push(xr),Sr})(U,Z))):(u=E,E=r),E}function L(){var E,U,Z,sr,xr,Sr,tt,Ct,Xt,Vt,In;return E=u,(U=Ka())===r&&(U=dc())===r&&(U=La())===r&&(U=Db())===r&&(U=(function(){var Tn,jn,ts,d;return Tn=u,t.substr(u,4).toLowerCase()==="year"?(jn=t.substr(u,4),u+=4):(jn=r,P===0&&Mr(Lv)),jn===r?(u=Tn,Tn=r):(ts=u,P++,d=qs(),P--,d===r?ts=void 0:(u=ts,ts=r),ts===r?(u=Tn,Tn=r):(yt=Tn,Tn=jn="YEAR")),Tn})()),U===r?(u=E,E=r):(Z=u,(sr=jr())!==r&&(xr=cs())!==r&&(Sr=jr())!==r?(Ln.test(t.charAt(u))?(tt=t.charAt(u),u++):(tt=r,P===0&&Mr(Un)),tt!==r&&(Ct=jr())!==r&&(Xt=_s())!==r&&(Vt=jr())!==r?((In=pi())===r&&(In=null),In===r?(u=Z,Z=r):Z=sr=[sr,xr,Sr,tt,Ct,Xt,Vt,In]):(u=Z,Z=r)):(u=Z,Z=r),Z===r&&(Z=null),Z===r?(u=E,E=r):(yt=E,E=U=(function(Tn,jn){let ts={dataType:Tn};return jn&&(ts.length=parseInt(jn[3],10),ts.parentheses=!0,ts.suffix=jn[7]),ts})(U,Z))),E}let M={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,BOOLEAN:!0,CALL:!0,CASCADE:!0,CASE:!0,CREATE:!0,CONTAINS:!0,CROSS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXCEPT:!0,EXPLAIN:!0,FALSE:!0,FOR:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTERSECT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,KEY:!0,LATERAL:!0,LEFT:!0,LIKE:!0,LIMIT:!0,LOW_PRIORITY:!0,NATURAL:!0,MINUS:!0,NOT:!0,NULL:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,RIGHT:!0,READ:!0,RETURNING:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,STATUS:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,VALUES:!0,WITH:!0,WHEN:!0,WHERE:!0,WRITE:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0},q={avg:!0,sum:!0,count:!0,max:!0,min:!0,group_concat:!0,std:!0,variance:!0,current_date:!0,current_time:!0,current_timestamp:!0,current_user:!0,user:!0,session_user:!0,system_user:!0};function rr(){return Ce.includeLocations?{loc:Pr(yt,u)}:{}}function Dr(E,U){return{type:"unary_expr",operator:E,expr:U}}function Xr(E,U,Z){return{type:"binary_expr",operator:E,left:U,right:Z}}function Jr(E){let U=To(9007199254740991);return!(To(E)<U)}function Mt(E,U,Z=3){let sr=[E];for(let xr=0;xr<U.length;xr++)delete U[xr][Z].tableList,delete U[xr][Z].columnList,sr.push(U[xr][Z]);return sr}function nn(E,U){let Z=E;for(let sr=0;sr<U.length;sr++)Z=Xr(U[sr][1],Z,U[sr][3]);return Z}function On(E){return de[E]||E||null}function fr(E){let U=new Set;for(let Z of E.keys()){let sr=Z.split("::");if(!sr){U.add(Z);break}sr&&sr[1]&&(sr[1]=On(sr[1])),U.add(sr.join("::"))}return Array.from(U)}function os(E){let U=fr(E);E.clear(),U.forEach(Z=>E.add(Z))}let Es=[],ls=new Set,ws=new Set,de={};if((Ie=ge())!==r&&u===t.length)return Ie;throw Ie!==r&&u<t.length&&Mr({type:"end"}),kn(Tr,Q<t.length?t.charAt(Q):null,Q<t.length?Pr(Q,Q+1):Pr(Q,Q))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:k},ge=k,Dn=o("IF",!0),Pn=o("EXTENSION",!0),Ae=o("SCHEMA",!0),ou=o("VERSION",!0),Hs=o("CASCADED",!0),Uo=o("LOCAL",!0),Ps=o("CHECK",!0),pe=o("OPTION",!1),_o=o("check_option",!0),Gi=o("security_barrier",!0),mi=o("security_invoker",!0),Fi=o("SFUNC",!0),T0=o("STYPE",!0),dl=o("AGGREGATE",!0),Gl=o("RETURNS",!0),Fl=o("SETOF",!0),nc=o("CONSTANT",!0),xc=o(":=",!1),I0=o("BEGIN",!0),ji=o("DECLARE",!0),af=o("LANGUAGE",!1),qf=o("TRANSORM",!0),Uc=o("FOR",!1),wc=o("TYPE",!1),Ll=o("WINDOW",!0),jl=o("IMMUTABLE",!0),Oi=o("STABLE",!0),bb=o("VOLATILE",!0),Vi=o("STRICT",!0),zc=o("NOT",!0),kc=o("LEAKPROOF",!0),vb=o("CALLED",!0),Zc=o("NULL",!0),nl=o("ON",!0),Xf=o("INPUT",!0),gl=o("EXTERNAL",!0),lf=o("SECURITY",!0),Jc=o("INVOKER",!0),Qc=o("DEFINER",!0),gv=o("PARALLEL",!0),g0=o("UNSAFE",!0),Ki=o("RESTRICTED",!0),Pb=o("SAFE",!0),ei=/^[^ s\t\n\r]/,pb=Zt([" ","s"," ",` +`,"\r"],!0,!1),j0=/^[^ s\t\n\r;]/,B0=Zt([" ","s"," ",` +`,"\r",";"],!0,!1),Mc=o("COST",!0),Cl=o("ROWS",!0),$u=o("SUPPORT",!0),r0=o("TO",!0),zn=o("=",!1),Ss=o("CURRENT",!0),te=o("FUNCTION",!0),ce=o("TYPE",!0),He=o("DOMAIN",!0),Ue=o("INCREMENT",!0),Qe=o("MINVALUE",!0),uo=function(i,b){return{resource:"sequence",prefix:i.toLowerCase(),value:b}},Ao=o("NO",!0),Pu=o("MAXVALUE",!0),Ca=o("START",!0),ku=o("CACHE",!0),ca=o("CYCLE",!0),na=o("OWNED",!0),Qa=o("NONE",!0),cf=o("NULLS",!0),ri=o("FIRST",!0),t0=o("LAST",!0),n0=o("AUTO_INCREMENT",!0),Dc=o("UNIQUE",!0),s0=o("KEY",!0),Rv=o("PRIMARY",!0),nv=o("COLUMN_FORMAT",!0),sv=o("FIXED",!0),ev=o("DYNAMIC",!0),yc=o("DEFAULT",!0),$c=o("STORAGE",!0),Sf=o("DISK",!0),R0=o("MEMORY",!0),Rl=o("CASCADE",!0),ff=o("RESTRICT",!0),Vf=o("OUT",!0),Vv=o("VARIADIC",!0),db=o("INOUT",!0),Of=o("OWNER",!0),Pc=o("CURRENT_ROLE",!0),H0=o("CURRENT_USER",!0),bf=o("SESSION_USER",!0),Lb=o("ALGORITHM",!0),Fa=o("INSTANT",!0),Kf=o("INPLACE",!0),Nv=o("COPY",!0),Gb=o("LOCK",!0),hc=o("SHARED",!0),Bl=o("EXCLUSIVE",!0),sl=o("PRIMARY KEY",!0),sc=o("FOREIGN KEY",!0),Y0=o("MATCH FULL",!0),N0=o("MATCH PARTIAL",!0),ov=o("MATCH SIMPLE",!0),Fb=o("SET NULL",!0),e0=o("NO ACTION",!0),Cb=o("SET DEFAULT",!0),_0=o("TRIGGER",!0),zf=o("BEFORE",!0),je=o("AFTER",!0),o0=o("INSTEAD OF",!0),xi=o("EXECUTE",!0),xf=o("PROCEDURE",!0),Zf=o("OF",!0),W0=o("DEFERRABLE",!0),jb=o("INITIALLY IMMEDIATE",!0),Uf=o("INITIALLY DEFERRED",!0),u0=o("FOR",!0),wb=o("EACH",!0),Ui=o("ROW",!0),uv=o("STATEMENT",!0),yb=o("CHARACTER",!0),hb=o("SET",!0),Kv=o("CHARSET",!0),Gc=o("COLLATE",!0),_v=o("AVG_ROW_LENGTH",!0),kf=o("KEY_BLOCK_SIZE",!0),vf=o("MAX_ROWS",!0),ki=o("MIN_ROWS",!0),Hl=o("STATS_SAMPLE_PAGES",!0),Eb=o("CONNECTION",!0),Bb=o("COMPRESSION",!0),pa=o("'",!1),wl=o("ZLIB",!0),Nl=o("LZ4",!0),Sv=o("ENGINE",!0),Hb=o("IN",!0),Jf=o("ACCESS SHARE",!0),pf=o("ROW SHARE",!0),Yb=o("ROW EXCLUSIVE",!0),av=o("SHARE UPDATE EXCLUSIVE",!0),iv=o("SHARE ROW EXCLUSIVE",!0),a0=o("ACCESS EXCLUSIVE",!0),_l=o("SHARE",!0),Yl=o("MODE",!0),Ab=o("NOWAIT",!0),Mf=o("TABLES",!0),Wb=o("PREPARE",!0),Df=o("USAGE",!0),mb=function(i){return{type:"origin",value:Array.isArray(i)?i[0]:i}},i0=o("CONNECT",!0),ft=o("PRIVILEGES",!0),tn=function(i){return{type:"origin",value:i}},_n=o("SEQUENCE",!0),En=o("DATABASE",!0),Os=o("DOMAIN",!1),gs=o("FUNCTION",!1),Ys=o("ROUTINE",!0),Te=o("LANGUAGE",!0),ye=o("LARGE",!0),Be=o("SCHEMA",!1),io=o("FUNCTIONS",!0),Ro=o("PROCEDURES",!0),So=o("ROUTINES",!0),uu=o("PUBLIC",!0),ko=o("GRANT",!0),yu=o("OPTION",!0),au=o("ADMIN",!0),Iu=o("REVOKE",!0),mu=o("ELSEIF",!0),Ju=o("THEN",!0),ua=o("END",!0),Sa=o("DEBUG",!0),ma=o("LOG",!0),Bi=o("INFO",!0),sa=o("NOTICE",!0),di=o("WARNING",!0),Hi=o("EXCEPTION",!0),S0=o("MESSAGE",!0),l0=o("DETAIL",!0),Ov=o("HINT",!0),lv=o("ERRCODE",!0),fi=o("COLUMN",!0),Wl=o("CONSTRAINT",!0),ec=o("DATATYPE",!0),Fc=o("TABLE",!0),xv=o("SQLSTATE",!0),lp=o("RAISE",!0),Uv=o("LOOP",!0),$f=o(";",!1),Tb=o("(",!1),cp=o(")",!1),c0=o('"',!1),q0=o("OUTFILE",!0),df=o("DUMPFILE",!0),f0=o("BTREE",!0),b0=o("HASH",!0),Pf=o("GIST",!0),Sp=o("GIN",!0),kv=o("WITH",!0),Op=o("PARSER",!0),fp=o("VISIBLE",!0),oc=o("INVISIBLE",!0),uc=function(i,b){return b.unshift(i),b.forEach(m=>{let{table:x,as:tr}=m;wr[x]=x,tr&&(wr[tr]=x),(function(Cr){let gr=d(Cr);Cr.clear(),gr.forEach(Yr=>Cr.add(Yr))})(lr)}),b},qb=o("LATERAL",!0),Gf=o("TABLESAMPLE",!0),zv=o("REPEATABLE",!0),Mv=o("CROSS",!0),Zv=o("FOLLOWING",!0),bp=o("PRECEDING",!0),Ib=o("UNBOUNDED",!0),Dv=o("DO",!0),vp=o("NOTHING",!0),Jv=o("CONFLICT",!0),Xb=function(i,b){return jn(i,b)},pp=o("!",!1),xp=o(">=",!1),cv=o(">",!1),Up=o("<=",!1),Xp=o("<>",!1),Qv=o("<",!1),Vp=o("!=",!1),dp=o("SIMILAR",!0),Kp=o("!~*",!1),ld=o("~*",!1),Lp=o("~",!1),Cp=o("!~",!1),wp=o("ESCAPE",!0),gb=o("+",!1),O0=o("-",!1),v0=o("*",!1),ac=o("/",!1),Rb=o("%",!1),Ff=o("||",!1),kp=o("$",!1),Mp=o("?|",!1),rp=o("?&",!1),yp=o("?",!1),hp=o("#-",!1),Ep=o("#>>",!1),Nb=o("#>",!1),Qf=o("@>",!1),_b=o("<@",!1),Ap=o("E",!0),Dp=function(i){return tt[i.toUpperCase()]===!0},$v=/^[^"]/,$p=Zt(['"'],!0,!1),Pp=/^[^']/,Pv=Zt(["'"],!0,!1),Gp=o("`",!1),Fp=/^[^`]/,mp=Zt(["`"],!0,!1),zp=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,Zp=Zt([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Gv=/^[A-Za-z0-9_\-$\u4E00-\u9FA5\xC0-\u017F]/,tp=Zt([["A","Z"],["a","z"],["0","9"],"_","-","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Fv=/^[A-Za-z0-9_\u4E00-\u9FA5\xC0-\u017F]/,yl=Zt([["A","Z"],["a","z"],["0","9"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),jc=o(":",!1),fv=o("OVER",!0),Sl=o("FILTER",!0),Ol=o("FIRST_VALUE",!0),np=o("LAST_VALUE",!0),bv=o("ROW_NUMBER",!0),ql=o("DENSE_RANK",!0),Ec=o("RANK",!0),Jp=o("LAG",!0),Qp=o("LEAD",!0),sp=o("NTH_VALUE",!0),jv=o("IGNORE",!0),Tp=o("RESPECT",!0),rd=o("percentile_cont",!0),jp=o("percentile_disc",!0),Ip=o("within",!0),td=o("mode",!0),nd=o("BOTH",!0),Bp=o("LEADING",!0),Hp=o("TRAILING",!0),gp=o("trim",!0),sd=o("crosstab",!0),ed=o("now",!0),Yp=o("at",!0),od=o("zone",!0),ud=o("CENTURY",!0),Rp=o("DAY",!0),O=o("DATE",!0),ps=o("DECADE",!0),Bv=o("DOW",!0),Lf=o("DOY",!0),Hv=o("EPOCH",!0),on=o("HOUR",!0),zs=o("ISODOW",!0),Bc=o("ISOYEAR",!0),vv=o("MICROSECONDS",!0),ep=o("MILLENNIUM",!0),Rs=o("MILLISECONDS",!0),Np=o("MINUTE",!0),Wp=o("MONTH",!0),cd=o("QUARTER",!0),Vb=o("SECOND",!0),_=o("TIMEZONE",!0),Ls=o("TIMEZONE_HOUR",!0),pv=o("TIMEZONE_MINUTE",!0),Cf=o("WEEK",!0),dv=o("YEAR",!0),Qt=o("NTILE",!0),Xs=/^[\n]/,ic=Zt([` +`],!1,!1),op=/^[^"\\\0-\x1F\x7F]/,Kb=Zt(['"',"\\",["\0",""],"\x7F"],!0,!1),ys=/^[^'\\]/,_p=Zt(["'","\\"],!0,!1),Yv=o("\\'",!1),Lv=o('\\"',!1),Wv=o("\\\\",!1),zb=o("\\/",!1),wf=o("\\b",!1),qv=o("\\f",!1),Cv=o("\\n",!1),rb=o("\\r",!1),tb=o("\\t",!1),I=o("\\u",!1),us=o("\\",!1),Sb=o("''",!1),xl=/^[\n\r]/,nb=Zt([` +`,"\r"],!1,!1),zt=o(".",!1),$s=/^[0-9]/,ja=Zt([["0","9"]],!1,!1),Ob=/^[0-9a-fA-F]/,jf=Zt([["0","9"],["a","f"],["A","F"]],!1,!1),is=/^[eE]/,el=Zt(["e","E"],!1,!1),Ti=/^[+\-]/,wv=Zt(["+","-"],!1,!1),yf=o("NOT NULL",!0),X0=o("TRUE",!0),p0=o("FALSE",!0),up=o("SHOW",!0),xb=o("DROP",!0),Zb=o("USE",!0),yv=o("ALTER",!0),Jb=o("SELECT",!0),hv=o("UPDATE",!0),h=o("CREATE",!0),ss=o("TEMPORARY",!0),Xl=o("TEMP",!0),d0=o("DELETE",!0),Bf=o("INSERT",!0),jt=o("RECURSIVE",!0),Us=o("REPLACE",!0),ol=o("RETURNING",!0),sb=o("RENAME",!0),eb=o("PARTITION",!0),p=o("INTO",!0),ns=o("FROM",!0),Vl=o("AS",!0),Hc=o("TABLESPACE",!0),Ub=o("DEALLOCATE",!0),Ft=o("LEFT",!0),xs=o("RIGHT",!0),Li=o("FULL",!0),Ta=o("INNER",!0),x0=o("JOIN",!0),Zn=o("OUTER",!0),kb=o("UNION",!0),U0=o("INTERSECT",!0),C=o("EXCEPT",!0),Kn=o("VALUES",!0),zi=o("USING",!0),Kl=o("WHERE",!0),zl=o("GROUP",!0),Ot=o("BY",!0),hs=o("ORDER",!0),Yi=o("HAVING",!0),hl=o("LIMIT",!0),L0=o("OFFSET",!0),Bn=o("ASC",!0),Qb=o("DESC",!0),C0=o("ALL",!0),Hf=o("DISTINCT",!0),k0=o("BETWEEN",!0),M0=o("IS",!0),Wi=o("LIKE",!0),wa=o("ILIKE",!0),Oa=o("EXISTS",!0),ti=o("AND",!0),We=o("OR",!0),ob=o("ARRAY",!0),V0=o("ARRAY_AGG",!0),hf=o("STRING_AGG",!0),Ef=o("COUNT",!0),K0=o("GROUP_CONCAT",!0),Af=o("MAX",!0),El=o("MIN",!0),w0=o("SUM",!0),ul=o("AVG",!0),Ye=o("EXTRACT",!0),mf=o("CALL",!0),z0=o("CASE",!0),ub=o("WHEN",!0),Su=o("ELSE",!0),Al=o("CAST",!0),D0=o("BOOL",!0),Ac=o("BOOLEAN",!0),mc=o("CHAR",!0),Tc=o("VARCHAR",!0),y0=o("NUMERIC",!0),bi=o("DECIMAL",!0),Yc=o("SIGNED",!0),Z0=o("UNSIGNED",!0),lc=o("INT",!0),Ic=o("ZEROFILL",!0),ab=o("INTEGER",!0),J0=o("JSON",!0),ml=o("JSONB",!0),Ul=o("GEOMETRY",!0),aa=o("SMALLINT",!0),Tf=o("SERIAL",!0),If=o("TINYINT",!0),Tl=o("TINYTEXT",!0),Ci=o("TEXT",!0),Q0=o("MEDIUMTEXT",!0),ib=o("LONGTEXT",!0),fa=o("BIGINT",!0),Zi=o("ENUM",!0),rf=o("FLOAT",!0),Ii=o("DOUBLE",!0),Ge=o("BIGSERIAL",!0),$0=o("REAL",!0),gf=o("DATETIME",!0),Zl=o("TIME",!0),Xa=o("TIMESTAMP",!0),cc=o("TRUNCATE",!0),h0=o("USER",!0),n=o("UUID",!0),st=o("OID",!0),gi=o("REGCLASS",!0),xa=o("REGCOLLATION",!0),Ra=o("REGCONFIG",!0),or=o("REGDICTIONARY",!0),Nt=o("REGNAMESPACE",!0),ju=o("REGOPER",!0),Il=o("REGOPERATOR",!0),Wc=o("REGPROC",!0),Kr=o("REGPROCEDURE",!0),Mb=o("REGROLE",!0),fc=o("REGTYPE",!0),qi=o("CURRENT_DATE",!0),Ji=o("INTERVAL",!0),Ri=o("CURRENT_TIME",!0),qu=o("CURRENT_TIMESTAMP",!0),Se=o("SYSTEM_USER",!0),tf=o("GLOBAL",!0),Qu=o("SESSION",!0),P0=o("PERSIST",!0),gc=o("PERSIST_ONLY",!0),al=o("VIEW",!0),Jl=o("@",!1),qc=o("@@",!1),Ba=o("$$",!1),Qi=o("return",!0),ya=o("::",!1),l=o("DUAL",!0),dn=o("ADD",!0),Ql=o("INDEX",!0),vi=o("FULLTEXT",!0),Va=o("SPATIAL",!0),lt=o("COMMENT",!0),Wn=o("CONCURRENTLY",!0),Eu=o("REFERENCES",!0),ia=o("SQL_CALC_FOUND_ROWS",!0),ve=o("SQL_CACHE",!0),Jt=o("SQL_NO_CACHE",!0),nf=o("SQL_SMALL_RESULT",!0),E0=o("SQL_BIG_RESULT",!0),kl=o("SQL_BUFFER_RESULT",!0),oi=o(",",!1),yn=o("[",!1),ka=o("]",!1),Ua=o("->",!1),Ou=o("->>",!1),il=o("&&",!1),zu=o("/*",!1),Yu=o("*/",!1),lb=o("--",!1),Mi={type:"any"},ha=/^[ \t\n\r]/,Ha=Zt([" "," ",` +`,"\r"],!1,!1),ln=/^[^$]/,Oe=Zt(["$"],!0,!1),Di=function(i){return{dataType:i}},Ya=o("bytea",!0),ni=o("varying",!0),ui=o("PRECISION",!0),$i=o("WITHOUT",!0),ai=o("ZONE",!0),ll=function(i){return{dataType:i}},cl=o("RECORD",!0),a=0,an=0,Ma=[{line:1,column:1}],Da=0,ii=[],nt=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function o(i,b){return{type:"literal",text:i,ignoreCase:b}}function Zt(i,b,m){return{type:"class",parts:i,inverted:b,ignoreCase:m}}function ba(i){var b,m=Ma[i];if(m)return m;for(b=i-1;!Ma[b];)b--;for(m={line:(m=Ma[b]).line,column:m.column};b<i;)t.charCodeAt(b)===10?(m.line++,m.column=1):m.column++,b++;return Ma[i]=m,m}function bu(i,b){var m=ba(i),x=ba(b);return{start:{offset:i,line:m.line,column:m.column},end:{offset:b,line:x.line,column:x.column}}}function Ht(i){a<Da||(a>Da&&(Da=a,ii=[]),ii.push(i))}function rt(i,b,m){return new go(go.buildMessage(i,b),i,b,m)}function k(){var i,b;return i=a,Hr()===r?(a=i,i=r):((b=(function(){var m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f;if(m=a,(x=sf())!==r)if(Hr()!==r)if(tr=a,(Cr=Fs())!==r&&(gr=Hr())!==r&&(Yr=ef())!==r?tr=Cr=[Cr,gr,Yr]:(a=tr,tr=r),tr===r&&(tr=null),tr!==r)if((Cr=Hr())!==r)if(t.substr(a,8).toLowerCase()==="function"?(gr=t.substr(a,8),a+=8):(gr=r,nt===0&&Ht(te)),gr!==r)if((Yr=Hr())!==r)if((Rt=qr())!==r)if(Hr()!==r)if(Ko()!==r)if(Hr()!==r)if((gt=co())===r&&(gt=null),gt!==r)if(Hr()!==r)if(Wr()!==r)if(Hr()!==r)if((Gt=(function(){var y=a,S,W,vr,_r;return t.substr(a,7).toLowerCase()==="returns"?(S=t.substr(a,7),a+=7):(S=r,nt===0&&Ht(Gl)),S!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="setof"?(W=t.substr(a,5),a+=5):(W=r,nt===0&&Ht(Fl)),W===r&&(W=null),W!==r&&Hr()!==r?((vr=E())===r&&(vr=qr()),vr===r?(a=y,y=r):(an=y,y=S={type:"returns",keyword:W,expr:vr})):(a=y,y=r)):(a=y,y=r),y===r&&(y=a,t.substr(a,7).toLowerCase()==="returns"?(S=t.substr(a,7),a+=7):(S=r,nt===0&&Ht(Gl)),S!==r&&Hr()!==r&&(W=Oc())!==r&&Hr()!==r&&(vr=Ko())!==r&&Hr()!==r&&(_r=yt())!==r&&Hr()!==r&&Wr()!==r?(an=y,y=S={type:"returns",keyword:"table",expr:_r}):(a=y,y=r)),y})())===r&&(Gt=null),Gt!==r)if(Hr()!==r){for(rn=[],xn=P();xn!==r;)rn.push(xn),xn=P();rn!==r&&(xn=Hr())!==r?((f=Fu())===r&&(f=null),f!==r&&Hr()!==r?(an=m,x=(function(y,S,W,vr,_r,$r,at){return{tableList:Array.from(X),columnList:d(lr),ast:{args:_r||[],type:"create",replace:S&&"or replace",name:{schema:vr.db,name:vr.table},returns:$r,keyword:W&&W.toLowerCase(),options:at||[]}}})(0,tr,gr,Rt,gt,Gt,rn),m=x):(a=m,m=r)):(a=m,m=r)}else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;else a=m,m=r;return m})())===r&&(b=Fr()),b===r?(a=i,i=r):(an=i,i=b)),i}function Lr(){var i;return(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt,gt;(m=Nc())!==r&&Hr()!==r&&(x=Oc())!==r&&Hr()!==r&&(tr=A())!==r?(an=b,Gt=m,rn=x,(xn=tr)&&xn.forEach(f=>X.add(`${Gt}::${[f.db,f.schema].filter(Boolean).join(".")||null}::${f.table}`)),m={tableList:Array.from(X),columnList:d(lr),ast:{type:Gt.toLowerCase(),keyword:rn.toLowerCase(),name:xn}},b=m):(a=b,b=r);var Gt,rn,xn;return b===r&&(b=a,(m=Nc())!==r&&Hr()!==r&&(x=No())!==r&&Hr()!==r?((tr=mo())===r&&(tr=null),tr!==r&&Hr()!==r?(Cr=a,t.substr(a,2).toLowerCase()==="if"?(gr=t.substr(a,2),a+=2):(gr=r,nt===0&&Ht(Dn)),gr!==r&&(Yr=Hr())!==r&&(Rt=hn())!==r?Cr=gr=[gr,Yr,Rt]:(a=Cr,Cr=r),Cr===r&&(Cr=null),Cr!==r&&(gr=Hr())!==r&&(Yr=Hn())!==r&&(Rt=Hr())!==r?(t.substr(a,7).toLowerCase()==="cascade"?(gt=t.substr(a,7),a+=7):(gt=r,nt===0&&Ht(Rl)),gt===r&&(t.substr(a,8).toLowerCase()==="restrict"?(gt=t.substr(a,8),a+=8):(gt=r,nt===0&&Ht(ff))),gt===r&&(gt=null),gt===r?(a=b,b=r):(an=b,m=(function(f,y,S,W,vr,_r){return{tableList:Array.from(X),columnList:d(lr),ast:{type:f.toLowerCase(),keyword:y.toLowerCase(),prefix:S,name:vr,options:_r&&[{type:"origin",value:_r}]}}})(m,x,tr,0,Yr,gt),b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)),b})())===r&&(i=(function(){var b;return(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn;(x=sf())!==r&&Hr()!==r?((tr=mv())===r&&(tr=null),tr!==r&&Hr()!==r&&Oc()!==r&&Hr()!==r?((Cr=Dt())===r&&(Cr=null),Cr!==r&&Hr()!==r&&(gr=A())!==r&&Hr()!==r&&(Yr=(function(){var vr,_r,$r,at,St,Kt,sn,Nn,Xn;if(vr=a,(_r=Ko())!==r)if(Hr()!==r)if(($r=e())!==r){for(at=[],St=a,(Kt=Hr())!==r&&(sn=Fo())!==r&&(Nn=Hr())!==r&&(Xn=e())!==r?St=Kt=[Kt,sn,Nn,Xn]:(a=St,St=r);St!==r;)at.push(St),St=a,(Kt=Hr())!==r&&(sn=Fo())!==r&&(Nn=Hr())!==r&&(Xn=e())!==r?St=Kt=[Kt,sn,Nn,Xn]:(a=St,St=r);at!==r&&(St=Hr())!==r&&(Kt=Wr())!==r?(an=vr,_r=Tn($r,at),vr=_r):(a=vr,vr=r)}else a=vr,vr=r;else a=vr,vr=r;else a=vr,vr=r;return vr})())!==r&&Hr()!==r?((Rt=(function(){var vr,_r,$r,at,St,Kt,sn,Nn;if(vr=a,(_r=ea())!==r){for($r=[],at=a,(St=Hr())===r?(a=at,at=r):((Kt=Fo())===r&&(Kt=null),Kt!==r&&(sn=Hr())!==r&&(Nn=ea())!==r?at=St=[St,Kt,sn,Nn]:(a=at,at=r));at!==r;)$r.push(at),at=a,(St=Hr())===r?(a=at,at=r):((Kt=Fo())===r&&(Kt=null),Kt!==r&&(sn=Hr())!==r&&(Nn=ea())!==r?at=St=[St,Kt,sn,Nn]:(a=at,at=r));$r===r?(a=vr,vr=r):(an=vr,_r=Tn(_r,$r),vr=_r)}else a=vr,vr=r;return vr})())===r&&(Rt=null),Rt!==r&&Hr()!==r?((gt=Uu())===r&&(gt=ef()),gt===r&&(gt=null),gt!==r&&Hr()!==r?((Gt=qo())===r&&(Gt=null),Gt!==r&&Hr()!==r?((rn=It())===r&&(rn=null),rn===r?(a=m,m=r):(an=m,x=(function(vr,_r,$r,at,St,Kt,sn,Nn,Xn){return at&&at.forEach(Gn=>X.add(`create::${[Gn.db,Gn.schema].filter(Boolean).join(".")||null}::${Gn.table}`)),{tableList:Array.from(X),columnList:d(lr),ast:{type:vr[0].toLowerCase(),keyword:"table",temporary:_r&&_r[0].toLowerCase(),if_not_exists:$r,table:at,ignore_replace:sn&&sn[0].toLowerCase(),as:Nn&&Nn[0].toLowerCase(),query_expr:Xn&&Xn.ast,create_definitions:St,table_options:Kt}}})(x,tr,Cr,gr,Yr,Rt,gt,Gt,rn),m=x)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r),m===r&&(m=a,(x=sf())!==r&&Hr()!==r?((tr=mv())===r&&(tr=null),tr!==r&&Hr()!==r&&Oc()!==r&&Hr()!==r?((Cr=Dt())===r&&(Cr=null),Cr!==r&&Hr()!==r&&(gr=A())!==r&&Hr()!==r&&(Yr=(function vr(){var _r,$r;(_r=(function(){var St=a,Kt;return $t()!==r&&Hr()!==r&&(Kt=A())!==r?(an=St,St={type:"like",table:Kt}):(a=St,St=r),St})())===r&&(_r=a,Ko()!==r&&Hr()!==r&&($r=vr())!==r&&Hr()!==r&&Wr()!==r?(an=_r,(at=$r).parentheses=!0,_r=at):(a=_r,_r=r));var at;return _r})())!==r?(an=m,xn=x,f=tr,y=Cr,W=Yr,(S=gr)&&S.forEach(vr=>X.add(`create::${[vr.db,vr.schema].filter(Boolean).join(".")||null}::${vr.table}`)),x={tableList:Array.from(X),columnList:d(lr),ast:{type:xn[0].toLowerCase(),keyword:"table",temporary:f&&f[0].toLowerCase(),if_not_exists:y,table:S,like:W}},m=x):(a=m,m=r)):(a=m,m=r)):(a=m,m=r));var xn,f,y,S,W;return m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S,W,vr,_r,$r,at,St,Kt;return(x=sf())!==r&&Hr()!==r?(tr=a,(Cr=Fs())!==r&&(gr=Hr())!==r&&(Yr=ef())!==r?tr=Cr=[Cr,gr,Yr]:(a=tr,tr=r),tr===r&&(tr=null),tr!==r&&(Cr=Hr())!==r?((gr=_u())===r&&(gr=null),gr!==r&&(Yr=Hr())!==r?(t.substr(a,7).toLowerCase()==="trigger"?(Rt=t.substr(a,7),a+=7):(Rt=r,nt===0&&Ht(_0)),Rt!==r&&Hr()!==r&&(gt=fo())!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="before"?(Gt=t.substr(a,6),a+=6):(Gt=r,nt===0&&Ht(zf)),Gt===r&&(t.substr(a,5).toLowerCase()==="after"?(Gt=t.substr(a,5),a+=5):(Gt=r,nt===0&&Ht(je)),Gt===r&&(t.substr(a,10).toLowerCase()==="instead of"?(Gt=t.substr(a,10),a+=10):(Gt=r,nt===0&&Ht(o0)))),Gt!==r&&Hr()!==r&&(rn=(function(){var sn,Nn,Xn,Gn,fs,Ts,Ms,Vs;if(sn=a,(Nn=Wt())!==r){for(Xn=[],Gn=a,(fs=Hr())!==r&&(Ts=Fs())!==r&&(Ms=Hr())!==r&&(Vs=Wt())!==r?Gn=fs=[fs,Ts,Ms,Vs]:(a=Gn,Gn=r);Gn!==r;)Xn.push(Gn),Gn=a,(fs=Hr())!==r&&(Ts=Fs())!==r&&(Ms=Hr())!==r&&(Vs=Wt())!==r?Gn=fs=[fs,Ts,Ms,Vs]:(a=Gn,Gn=r);Xn===r?(a=sn,sn=r):(an=sn,Nn=Tn(Nn,Xn),sn=Nn)}else a=sn,sn=r;return sn})())!==r&&Hr()!==r?(t.substr(a,2).toLowerCase()==="on"?(xn=t.substr(a,2),a+=2):(xn=r,nt===0&&Ht(nl)),xn!==r&&Hr()!==r&&(f=qr())!==r&&Hr()!==r?(y=a,(S=Xc())!==r&&(W=Hr())!==r&&(vr=qr())!==r?y=S=[S,W,vr]:(a=y,y=r),y===r&&(y=null),y!==r&&(S=Hr())!==r?((W=(function(){var sn=a,Nn=a,Xn,Gn,fs;t.substr(a,3).toLowerCase()==="not"?(Xn=t.substr(a,3),a+=3):(Xn=r,nt===0&&Ht(zc)),Xn===r&&(Xn=null),Xn!==r&&(Gn=Hr())!==r?(t.substr(a,10).toLowerCase()==="deferrable"?(fs=t.substr(a,10),a+=10):(fs=r,nt===0&&Ht(W0)),fs===r?(a=Nn,Nn=r):Nn=Xn=[Xn,Gn,fs]):(a=Nn,Nn=r),Nn!==r&&(Xn=Hr())!==r?(t.substr(a,19).toLowerCase()==="initially immediate"?(Gn=t.substr(a,19),a+=19):(Gn=r,nt===0&&Ht(jb)),Gn===r&&(t.substr(a,18).toLowerCase()==="initially deferred"?(Gn=t.substr(a,18),a+=18):(Gn=r,nt===0&&Ht(Uf))),Gn===r?(a=sn,sn=r):(an=sn,Ms=Gn,Nn={keyword:(Ts=Nn)&&Ts[0]?Ts[0].toLowerCase()+" deferrable":"deferrable",args:Ms&&Ms.toLowerCase()},sn=Nn)):(a=sn,sn=r);var Ts,Ms;return sn})())===r&&(W=null),W!==r&&(vr=Hr())!==r?((_r=(function(){var sn=a,Nn,Xn,Gn;t.substr(a,3).toLowerCase()==="for"?(Nn=t.substr(a,3),a+=3):(Nn=r,nt===0&&Ht(u0)),Nn!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="each"?(Xn=t.substr(a,4),a+=4):(Xn=r,nt===0&&Ht(wb)),Xn===r&&(Xn=null),Xn!==r&&Hr()!==r?(t.substr(a,3).toLowerCase()==="row"?(Gn=t.substr(a,3),a+=3):(Gn=r,nt===0&&Ht(Ui)),Gn===r&&(t.substr(a,9).toLowerCase()==="statement"?(Gn=t.substr(a,9),a+=9):(Gn=r,nt===0&&Ht(uv))),Gn===r?(a=sn,sn=r):(an=sn,fs=Nn,Ms=Gn,Nn={keyword:(Ts=Xn)?`${fs.toLowerCase()} ${Ts.toLowerCase()}`:fs.toLowerCase(),args:Ms.toLowerCase()},sn=Nn)):(a=sn,sn=r)):(a=sn,sn=r);var fs,Ts,Ms;return sn})())===r&&(_r=null),_r!==r&&Hr()!==r?(($r=(function(){var sn=a,Nn;return ro()!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Nn=fn())!==r&&Hr()!==r&&Wr()!==r?(an=sn,sn={type:"when",cond:Nn,parentheses:!0}):(a=sn,sn=r),sn})())===r&&($r=null),$r!==r&&Hr()!==r?(t.substr(a,7).toLowerCase()==="execute"?(at=t.substr(a,7),a+=7):(at=r,nt===0&&Ht(xi)),at!==r&&Hr()!==r?(t.substr(a,9).toLowerCase()==="procedure"?(St=t.substr(a,9),a+=9):(St=r,nt===0&&Ht(xf)),St===r&&(t.substr(a,8).toLowerCase()==="function"?(St=t.substr(a,8),a+=8):(St=r,nt===0&&Ht(te))),St!==r&&Hr()!==r&&(Kt=Es())!==r?(an=m,x=(function(sn,Nn,Xn,Gn,fs,Ts,Ms,Vs,se,Re,oe,Ne,ze,to,Lo,wo){return{type:"create",replace:Nn&&"or replace",constraint:fs,location:Ts&&Ts.toLowerCase(),events:Ms,table:se,from:Re&&Re[2],deferrable:oe,for_each:Ne,when:ze,execute:{keyword:"execute "+Lo.toLowerCase(),expr:wo},constraint_type:Gn&&Gn.toLowerCase(),keyword:Gn&&Gn.toLowerCase(),constraint_kw:Xn&&Xn.toLowerCase(),resource:"constraint"}})(0,tr,gr,Rt,gt,Gt,rn,0,f,y,W,_r,$r,0,St,Kt),m=x):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S;(x=sf())!==r&&Hr()!==r?(t.substr(a,9).toLowerCase()==="extension"?(tr=t.substr(a,9),a+=9):(tr=r,nt===0&&Ht(Pn)),tr!==r&&Hr()!==r?((Cr=Dt())===r&&(Cr=null),Cr!==r&&Hr()!==r?((gr=fo())===r&&(gr=fl()),gr!==r&&Hr()!==r?((Yr=Nf())===r&&(Yr=null),Yr!==r&&Hr()!==r?(Rt=a,t.substr(a,6).toLowerCase()==="schema"?(gt=t.substr(a,6),a+=6):(gt=r,nt===0&&Ht(Ae)),gt!==r&&(Gt=Hr())!==r&&(rn=fo())!==r?Rt=gt=[gt,Gt,rn]:(a=Rt,Rt=r),Rt===r&&(Rt=fl()),Rt===r&&(Rt=null),Rt!==r&&(gt=Hr())!==r?(Gt=a,t.substr(a,7).toLowerCase()==="version"?(rn=t.substr(a,7),a+=7):(rn=r,nt===0&&Ht(ou)),rn!==r&&(xn=Hr())!==r?((f=fo())===r&&(f=fl()),f===r?(a=Gt,Gt=r):Gt=rn=[rn,xn,f]):(a=Gt,Gt=r),Gt===r&&(Gt=null),Gt!==r&&(rn=Hr())!==r?(xn=a,(f=Xc())!==r&&(y=Hr())!==r?((S=fo())===r&&(S=fl()),S===r?(a=xn,xn=r):xn=f=[f,y,S]):(a=xn,xn=r),xn===r&&(xn=null),xn===r?(a=m,m=r):(an=m,W=Cr,vr=gr,_r=Yr,$r=Rt,at=Gt,St=xn,x={type:"create",keyword:tr.toLowerCase(),if_not_exists:W,extension:N(vr),with:_r&&_r[0].toLowerCase(),schema:N($r&&$r[2].toLowerCase()),version:N(at&&at[2]),from:N(St&&St[2])},m=x)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r);var W,vr,_r,$r,at,St;return m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S,W,vr,_r,$r;(x=sf())!==r&&Hr()!==r?((tr=ru())===r&&(tr=null),tr!==r&&Hr()!==r&&(Cr=No())!==r&&Hr()!==r?((gr=mo())===r&&(gr=null),gr!==r&&Hr()!==r?((Yr=js())===r&&(Yr=null),Yr!==r&&Hr()!==r&&(Rt=Xo())!==r&&Hr()!==r&&(gt=qr())!==r&&Hr()!==r?((Gt=ut())===r&&(Gt=null),Gt!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(rn=(function(){var Re,oe,Ne,ze,to,Lo,wo,jo;if(Re=a,(oe=ht())!==r){for(Ne=[],ze=a,(to=Hr())!==r&&(Lo=Fo())!==r&&(wo=Hr())!==r&&(jo=ht())!==r?ze=to=[to,Lo,wo,jo]:(a=ze,ze=r);ze!==r;)Ne.push(ze),ze=a,(to=Hr())!==r&&(Lo=Fo())!==r&&(wo=Hr())!==r&&(jo=ht())!==r?ze=to=[to,Lo,wo,jo]:(a=ze,ze=r);Ne===r?(a=Re,Re=r):(an=Re,oe=Tn(oe,Ne),Re=oe)}else a=Re,Re=r;return Re})())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?(xn=a,(f=Nf())!==r&&(y=Hr())!==r&&(S=Ko())!==r&&(W=Hr())!==r&&(vr=(function(){var Re,oe,Ne,ze,to,Lo,wo,jo;if(Re=a,(oe=Qo())!==r){for(Ne=[],ze=a,(to=Hr())!==r&&(Lo=Fo())!==r&&(wo=Hr())!==r&&(jo=Qo())!==r?ze=to=[to,Lo,wo,jo]:(a=ze,ze=r);ze!==r;)Ne.push(ze),ze=a,(to=Hr())!==r&&(Lo=Fo())!==r&&(wo=Hr())!==r&&(jo=Qo())!==r?ze=to=[to,Lo,wo,jo]:(a=ze,ze=r);Ne===r?(a=Re,Re=r):(an=Re,oe=Tn(oe,Ne),Re=oe)}else a=Re,Re=r;return Re})())!==r&&(_r=Hr())!==r&&($r=Wr())!==r?xn=f=[f,y,S,W,vr,_r,$r]:(a=xn,xn=r),xn===r&&(xn=null),xn!==r&&(f=Hr())!==r?(y=a,(S=(function(){var Re=a,oe,Ne,ze;return t.substr(a,10).toLowerCase()==="tablespace"?(oe=t.substr(a,10),a+=10):(oe=r,nt===0&&Ht(Hc)),oe===r?(a=Re,Re=r):(Ne=a,nt++,ze=Ks(),nt--,ze===r?Ne=void 0:(a=Ne,Ne=r),Ne===r?(a=Re,Re=r):(an=Re,Re=oe="TABLESPACE")),Re})())!==r&&(W=Hr())!==r&&(vr=fo())!==r?y=S=[S,W,vr]:(a=y,y=r),y===r&&(y=null),y!==r&&(S=Hr())!==r?((W=xt())===r&&(W=null),W!==r&&(vr=Hr())!==r?(an=m,at=x,St=tr,Kt=Cr,sn=gr,Nn=Yr,Xn=Rt,Gn=gt,fs=Gt,Ts=rn,Ms=xn,Vs=y,se=W,x={tableList:Array.from(X),columnList:d(lr),ast:{type:at[0].toLowerCase(),index_type:St&&St.toLowerCase(),keyword:Kt.toLowerCase(),concurrently:sn&&sn.toLowerCase(),index:Nn,on_kw:Xn[0].toLowerCase(),table:Gn,index_using:fs,index_columns:Ts,with:Ms&&Ms[4],with_before_where:!0,tablespace:Vs&&{type:"origin",value:Vs[2]},where:se}},m=x):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r);var at,St,Kt,sn,Nn,Xn,Gn,fs,Ts,Ms,Vs,se;return m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt;return(x=sf())!==r&&Hr()!==r?((tr=mv())===r&&(tr=pc()),tr===r&&(tr=null),tr!==r&&Hr()!==r&&(function(){var rn=a,xn,f,y;return t.substr(a,8).toLowerCase()==="sequence"?(xn=t.substr(a,8),a+=8):(xn=r,nt===0&&Ht(_n)),xn===r?(a=rn,rn=r):(f=a,nt++,y=Ks(),nt--,y===r?f=void 0:(a=f,f=r),f===r?(a=rn,rn=r):(an=rn,rn=xn="SEQUENCE")),rn})()!==r&&Hr()!==r?((Cr=Dt())===r&&(Cr=null),Cr!==r&&Hr()!==r&&(gr=qr())!==r&&Hr()!==r?(Yr=a,(Rt=qo())!==r&&(gt=Hr())!==r&&(Gt=bo())!==r?Yr=Rt=[Rt,gt,Gt]:(a=Yr,Yr=r),Yr===r&&(Yr=null),Yr!==r&&(Rt=Hr())!==r?((gt=(function(){var rn,xn,f,y,S,W;if(rn=a,(xn=hr())!==r){for(f=[],y=a,(S=Hr())!==r&&(W=hr())!==r?y=S=[S,W]:(a=y,y=r);y!==r;)f.push(y),y=a,(S=Hr())!==r&&(W=hr())!==r?y=S=[S,W]:(a=y,y=r);f===r?(a=rn,rn=r):(an=rn,xn=Tn(xn,f,1),rn=xn)}else a=rn,rn=r;return rn})())===r&&(gt=null),gt===r?(a=m,m=r):(an=m,x=(function(rn,xn,f,y,S,W){return y.as=S&&S[2],{tableList:Array.from(X),columnList:d(lr),ast:{type:rn[0].toLowerCase(),keyword:"sequence",temporary:xn&&xn[0].toLowerCase(),if_not_exists:f,sequence:[y],create_definitions:W}}})(x,tr,Cr,gr,Yr,gt),m=x)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr;return(x=sf())!==r&&Hr()!==r?((tr=(function(){var Rt=a,gt,Gt,rn;return t.substr(a,8).toLowerCase()==="database"?(gt=t.substr(a,8),a+=8):(gt=r,nt===0&&Ht(En)),gt===r?(a=Rt,Rt=r):(Gt=a,nt++,rn=Ks(),nt--,rn===r?Gt=void 0:(a=Gt,Gt=r),Gt===r?(a=Rt,Rt=r):(an=Rt,Rt=gt="DATABASE")),Rt})())===r&&(tr=Yo()),tr!==r&&Hr()!==r?((Cr=Dt())===r&&(Cr=null),Cr!==r&&Hr()!==r&&(gr=os())!==r&&Hr()!==r?((Yr=(function(){var Rt,gt,Gt,rn,xn,f;if(Rt=a,(gt=li())!==r){for(Gt=[],rn=a,(xn=Hr())!==r&&(f=li())!==r?rn=xn=[xn,f]:(a=rn,rn=r);rn!==r;)Gt.push(rn),rn=a,(xn=Hr())!==r&&(f=li())!==r?rn=xn=[xn,f]:(a=rn,rn=r);Gt===r?(a=Rt,Rt=r):(an=Rt,gt=Tn(gt,Gt,1),Rt=gt)}else a=Rt,Rt=r;return Rt})())===r&&(Yr=null),Yr===r?(a=m,m=r):(an=m,x=(function(Rt,gt,Gt,rn,xn){let f=gt.toLowerCase();return{tableList:Array.from(X),columnList:d(lr),ast:{type:Rt[0].toLowerCase(),keyword:f,if_not_exists:Gt,[f]:{db:rn.schema,schema:rn.name},create_definitions:xn}}})(x,tr,Cr,gr,Yr),m=x)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt;return(x=sf())!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="domain"?(tr=t.substr(a,6),a+=6):(tr=r,nt===0&&Ht(He)),tr!==r&&Hr()!==r&&(Cr=qr())!==r&&Hr()!==r?((gr=qo())===r&&(gr=null),gr!==r&&Hr()!==r&&(Yr=E())!==r&&Hr()!==r?((Rt=kn())===r&&(Rt=null),Rt!==r&&Hr()!==r?((gt=K())===r&&(gt=null),gt!==r&&Hr()!==r?((Gt=la())===r&&(Gt=null),Gt===r?(a=m,m=r):(an=m,x=(function(rn,xn,f,y,S,W,vr,_r){_r&&(_r.type="constraint");let $r=[W,vr,_r].filter(at=>at);return{tableList:Array.from(X),columnList:d(lr),ast:{type:rn[0].toLowerCase(),keyword:xn.toLowerCase(),domain:{schema:f.db,name:f.table},as:y&&y[0]&&y[0].toLowerCase(),target:S,create_definitions:$r}}})(x,tr,Cr,gr,Yr,Rt,gt,Gt),m=x)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt;(x=sf())!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="type"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(ce)),tr!==r&&Hr()!==r&&(Cr=qr())!==r&&Hr()!==r&&(gr=qo())!==r&&Hr()!==r&&(Yr=ra())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r?((Rt=Nr())===r&&(Rt=null),Rt!==r&&Hr()!==r&&Wr()!==r?(an=m,gt=x,Gt=tr,rn=Cr,xn=gr,f=Yr,(y=Rt).parentheses=!0,x={tableList:Array.from(X),columnList:d(lr),ast:{type:gt[0].toLowerCase(),keyword:Gt.toLowerCase(),name:{schema:rn.db,name:rn.table},as:xn&&xn[0]&&xn[0].toLowerCase(),resource:f.toLowerCase(),create_definitions:y}},m=x):(a=m,m=r)):(a=m,m=r)):(a=m,m=r);var gt,Gt,rn,xn,f,y;return m===r&&(m=a,(x=sf())!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="type"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(ce)),tr!==r&&Hr()!==r&&(Cr=qr())!==r?(an=m,x=(function(S,W,vr){return{tableList:Array.from(X),columnList:d(lr),ast:{type:S[0].toLowerCase(),keyword:W.toLowerCase(),name:{schema:vr.db,name:vr.table}}}})(x,tr,Cr),m=x):(a=m,m=r)):(a=m,m=r)),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S,W,vr,_r,$r;return(x=sf())!==r&&Hr()!==r?(tr=a,(Cr=Fs())!==r&&(gr=Hr())!==r&&(Yr=ef())!==r?tr=Cr=[Cr,gr,Yr]:(a=tr,tr=r),tr===r&&(tr=null),tr!==r&&(Cr=Hr())!==r?((gr=pc())===r&&(gr=mv()),gr===r&&(gr=null),gr!==r&&(Yr=Hr())!==r?((Rt=Tv())===r&&(Rt=null),Rt!==r&&Hr()!==r&&(function(){var at=a,St,Kt,sn;return t.substr(a,4).toLowerCase()==="view"?(St=t.substr(a,4),a+=4):(St=r,nt===0&&Ht(al)),St===r?(a=at,at=r):(Kt=a,nt++,sn=Ks(),nt--,sn===r?Kt=void 0:(a=Kt,Kt=r),Kt===r?(a=at,at=r):(an=at,at=St="VIEW")),at})()!==r&&Hr()!==r&&(gt=qr())!==r&&Hr()!==r?(Gt=a,(rn=Ko())!==r&&(xn=Hr())!==r&&(f=qn())!==r&&(y=Hr())!==r&&(S=Wr())!==r?Gt=rn=[rn,xn,f,y,S]:(a=Gt,Gt=r),Gt===r&&(Gt=null),Gt!==r&&(rn=Hr())!==r?(xn=a,(f=Nf())!==r&&(y=Hr())!==r&&(S=Ko())!==r&&(W=Hr())!==r&&(vr=(function(){var at,St,Kt,sn,Nn,Xn,Gn,fs;if(at=a,(St=Ln())!==r){for(Kt=[],sn=a,(Nn=Hr())!==r&&(Xn=Fo())!==r&&(Gn=Hr())!==r&&(fs=Ln())!==r?sn=Nn=[Nn,Xn,Gn,fs]:(a=sn,sn=r);sn!==r;)Kt.push(sn),sn=a,(Nn=Hr())!==r&&(Xn=Fo())!==r&&(Gn=Hr())!==r&&(fs=Ln())!==r?sn=Nn=[Nn,Xn,Gn,fs]:(a=sn,sn=r);Kt===r?(a=at,at=r):(an=at,St=Tn(St,Kt),at=St)}else a=at,at=r;return at})())!==r&&(_r=Hr())!==r&&($r=Wr())!==r?xn=f=[f,y,S,W,vr,_r,$r]:(a=xn,xn=r),xn===r&&(xn=null),xn!==r&&(f=Hr())!==r&&(y=qo())!==r&&(S=Hr())!==r&&(W=ur())!==r&&(vr=Hr())!==r?((_r=(function(){var at=a,St,Kt,sn,Nn;return(St=Nf())!==r&&Hr()!==r?(t.substr(a,8).toLowerCase()==="cascaded"?(Kt=t.substr(a,8),a+=8):(Kt=r,nt===0&&Ht(Hs)),Kt===r&&(t.substr(a,5).toLowerCase()==="local"?(Kt=t.substr(a,5),a+=5):(Kt=r,nt===0&&Ht(Uo))),Kt!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="check"?(sn=t.substr(a,5),a+=5):(sn=r,nt===0&&Ht(Ps)),sn!==r&&Hr()!==r?(t.substr(a,6)==="OPTION"?(Nn="OPTION",a+=6):(Nn=r,nt===0&&Ht(pe)),Nn===r?(a=at,at=r):(an=at,St=(function(Xn){return`with ${Xn.toLowerCase()} check option`})(Kt),at=St)):(a=at,at=r)):(a=at,at=r)):(a=at,at=r),at===r&&(at=a,(St=Nf())!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="check"?(Kt=t.substr(a,5),a+=5):(Kt=r,nt===0&&Ht(Ps)),Kt!==r&&Hr()!==r?(t.substr(a,6)==="OPTION"?(sn="OPTION",a+=6):(sn=r,nt===0&&Ht(pe)),sn===r?(a=at,at=r):(an=at,at=St="with check option")):(a=at,at=r)):(a=at,at=r)),at})())===r&&(_r=null),_r===r?(a=m,m=r):(an=m,x=(function(at,St,Kt,sn,Nn,Xn,Gn,fs,Ts){return Nn.view=Nn.table,delete Nn.table,{tableList:Array.from(X),columnList:d(lr),ast:{type:at[0].toLowerCase(),keyword:"view",replace:St&&"or replace",temporary:Kt&&Kt[0].toLowerCase(),recursive:sn&&sn.toLowerCase(),columns:Xn&&Xn[2],select:fs,view:Nn,with_options:Gn&&Gn[4],with:Ts}}})(x,tr,gr,Rt,gt,Gt,xn,W,_r),m=x)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt;(x=sf())!==r&&Hr()!==r?(tr=a,(Cr=Fs())!==r&&(gr=Hr())!==r&&(Yr=ef())!==r?tr=Cr=[Cr,gr,Yr]:(a=tr,tr=r),tr===r&&(tr=null),tr!==r&&(Cr=Hr())!==r?(t.substr(a,9).toLowerCase()==="aggregate"?(gr=t.substr(a,9),a+=9):(gr=r,nt===0&&Ht(dl)),gr!==r&&(Yr=Hr())!==r&&(Rt=qr())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(gt=kt())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Gt=(function(){var S,W,vr,_r,$r,at,St,Kt;if(S=a,(W=(function(){var sn=a,Nn,Xn,Gn,fs;t.substr(a,5).toLowerCase()==="sfunc"?(Nn=t.substr(a,5),a+=5):(Nn=r,nt===0&&Ht(Fi)),Nn!==r&&Hr()!==r&&jr()!==r&&Hr()!==r&&(Xn=qr())!==r&&Hr()!==r&&Fo()!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="stype"?(Gn=t.substr(a,5),a+=5):(Gn=r,nt===0&&Ht(T0)),Gn!==r&&Hr()!==r&&jr()!==r&&Hr()!==r&&(fs=E())!==r?(an=sn,Ms=fs,Nn=[{type:"sfunc",symbol:"=",value:{schema:(Ts=Xn).db,name:Ts.table}},{type:"stype",symbol:"=",value:Ms}],sn=Nn):(a=sn,sn=r)):(a=sn,sn=r);var Ts,Ms;return sn})())!==r){for(vr=[],_r=a,($r=Hr())!==r&&(at=Fo())!==r&&(St=Hr())!==r&&(Kt=Un())!==r?_r=$r=[$r,at,St,Kt]:(a=_r,_r=r);_r!==r;)vr.push(_r),_r=a,($r=Hr())!==r&&(at=Fo())!==r&&(St=Hr())!==r&&(Kt=Un())!==r?_r=$r=[$r,at,St,Kt]:(a=_r,_r=r);vr===r?(a=S,S=r):(an=S,W=Tn(W,vr),S=W)}else a=S,S=r;return S})())!==r&&Hr()!==r&&Wr()!==r?(an=m,rn=tr,xn=Rt,f=gt,y=Gt,x={tableList:Array.from(X),columnList:d(lr),ast:{type:"create",keyword:"aggregate",replace:rn&&"or replace",name:{schema:xn.db,name:xn.table},args:{parentheses:!0,expr:f,orderby:f.orderby},options:y}},m=x):(a=m,m=r)):(a=m,m=r)):(a=m,m=r);var rn,xn,f,y;return m})()),b})())===r&&(i=Tr())===r&&(i=(function(){var b=a,m,x,tr;(m=wn())!==r&&Hr()!==r?((x=Oc())===r&&(x=null),x!==r&&Hr()!==r&&(tr=A())!==r?(an=b,Cr=m,gr=x,(Yr=tr)&&Yr.forEach(Rt=>X.add(`${Cr}::${[Rt.db,Rt.schema].filter(Boolean).join(".")||null}::${Rt.table}`)),m={tableList:Array.from(X),columnList:d(lr),ast:{type:Cr.toLowerCase(),keyword:gr&&gr.toLowerCase()||"table",name:Yr}},b=m):(a=b,b=r)):(a=b,b=r);var Cr,gr,Yr;return b})())===r&&(i=(function(){var b=a,m,x;(m=ip())!==r&&Hr()!==r&&Oc()!==r&&Hr()!==r&&(x=(function(){var Cr,gr,Yr,Rt,gt,Gt,rn,xn;if(Cr=a,(gr=Ds())!==r){for(Yr=[],Rt=a,(gt=Hr())!==r&&(Gt=Fo())!==r&&(rn=Hr())!==r&&(xn=Ds())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r);Rt!==r;)Yr.push(Rt),Rt=a,(gt=Hr())!==r&&(Gt=Fo())!==r&&(rn=Hr())!==r&&(xn=Ds())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r);Yr===r?(a=Cr,Cr=r):(an=Cr,gr=Tn(gr,Yr),Cr=gr)}else a=Cr,Cr=r;return Cr})())!==r?(an=b,(tr=x).forEach(Cr=>Cr.forEach(gr=>gr.table&&X.add(`rename::${[gr.db,gr.schema].filter(Boolean).join(".")||null}::${gr.table}`))),m={tableList:Array.from(X),columnList:d(lr),ast:{type:"rename",table:tr}},b=m):(a=b,b=r);var tr;return b})())===r&&(i=(function(){var b=a,m,x;(m=(function(){var Cr=a,gr,Yr,Rt;return t.substr(a,4).toLowerCase()==="call"?(gr=t.substr(a,4),a+=4):(gr=r,nt===0&&Ht(mf)),gr===r?(a=Cr,Cr=r):(Yr=a,nt++,Rt=Ks(),nt--,Rt===r?Yr=void 0:(a=Yr,Yr=r),Yr===r?(a=Cr,Cr=r):(an=Cr,Cr=gr="CALL")),Cr})())!==r&&Hr()!==r&&(x=Es())!==r?(an=b,tr=x,m={tableList:Array.from(X),columnList:d(lr),ast:{type:"call",expr:tr}},b=m):(a=b,b=r);var tr;return b})())===r&&(i=(function(){var b=a,m,x;(m=(function(){var Cr=a,gr,Yr,Rt;return t.substr(a,3).toLowerCase()==="use"?(gr=t.substr(a,3),a+=3):(gr=r,nt===0&&Ht(Zb)),gr===r?(a=Cr,Cr=r):(Yr=a,nt++,Rt=Ks(),nt--,Rt===r?Yr=void 0:(a=Yr,Yr=r),Yr===r?(a=Cr,Cr=r):Cr=gr=[gr,Yr]),Cr})())!==r&&Hr()!==r&&(x=js())!==r?(an=b,tr=x,X.add(`use::${tr}::null`),m={tableList:Array.from(X),columnList:d(lr),ast:{type:"use",db:tr}},b=m):(a=b,b=r);var tr;return b})())===r&&(i=(function(){var b;return(b=(function(){var m=a,x,tr,Cr;(x=Ai())!==r&&Hr()!==r&&Oc()!==r&&Hr()!==r&&(tr=A())!==r&&Hr()!==r&&(Cr=(function(){var Rt,gt,Gt,rn,xn,f,y,S;if(Rt=a,(gt=_t())!==r){for(Gt=[],rn=a,(xn=Hr())!==r&&(f=Fo())!==r&&(y=Hr())!==r&&(S=_t())!==r?rn=xn=[xn,f,y,S]:(a=rn,rn=r);rn!==r;)Gt.push(rn),rn=a,(xn=Hr())!==r&&(f=Fo())!==r&&(y=Hr())!==r&&(S=_t())!==r?rn=xn=[xn,f,y,S]:(a=rn,rn=r);Gt===r?(a=Rt,Rt=r):(an=Rt,gt=Tn(gt,Gt),Rt=gt)}else a=Rt,Rt=r;return Rt})())!==r?(an=m,Yr=Cr,(gr=tr)&&gr.length>0&&gr.forEach(Rt=>X.add(`alter::${[Rt.db,Rt.schema].filter(Boolean).join(".")||null}::${Rt.table}`)),x={tableList:Array.from(X),columnList:d(lr),ast:{type:"alter",table:gr,expr:Yr}},m=x):(a=m,m=r);var gr,Yr;return m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr;return(x=Ai())!==r&&Hr()!==r&&(tr=Yo())!==r&&Hr()!==r&&(Cr=fo())!==r&&Hr()!==r?((gr=Eo())===r&&(gr=ao())===r&&(gr=zo()),gr===r?(a=m,m=r):(an=m,x=(function(Yr,Rt,gt){let Gt=Yr.toLowerCase();return gt.resource=Gt,gt[Gt]=gt.table,delete gt.table,{tableList:Array.from(X),columnList:d(lr),ast:{type:"alter",keyword:Gt,schema:Rt,expr:gt}}})(tr,Cr,gr),m=x)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr;return(x=Ai())!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="domain"?(tr=t.substr(a,6),a+=6):(tr=r,nt===0&&Ht(He)),tr===r&&(t.substr(a,4).toLowerCase()==="type"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(ce))),tr!==r&&Hr()!==r&&(Cr=qr())!==r&&Hr()!==r?((gr=Eo())===r&&(gr=ao())===r&&(gr=zo()),gr===r?(a=m,m=r):(an=m,x=(function(Yr,Rt,gt){let Gt=Yr.toLowerCase();return gt.resource=Gt,gt[Gt]=gt.table,delete gt.table,{tableList:Array.from(X),columnList:d(lr),ast:{type:"alter",keyword:Gt,name:{schema:Rt.db,name:Rt.table},expr:gt}}})(tr,Cr,gr),m=x)):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn;return(x=Ai())!==r&&Hr()!==r?(t.substr(a,8).toLowerCase()==="function"?(tr=t.substr(a,8),a+=8):(tr=r,nt===0&&Ht(te)),tr!==r&&Hr()!==r&&(Cr=qr())!==r&&Hr()!==r?(gr=a,(Yr=Ko())!==r&&(Rt=Hr())!==r?((gt=co())===r&&(gt=null),gt!==r&&(Gt=Hr())!==r&&(rn=Wr())!==r?gr=Yr=[Yr,Rt,gt,Gt,rn]:(a=gr,gr=r)):(a=gr,gr=r),gr===r&&(gr=null),gr!==r&&(Yr=Hr())!==r?((Rt=Eo())===r&&(Rt=ao())===r&&(Rt=zo()),Rt===r?(a=m,m=r):(an=m,x=(function(xn,f,y,S){let W=xn.toLowerCase();S.resource=W,S[W]=S.table,delete S.table;let vr={};return y&&y[0]&&(vr.parentheses=!0),vr.expr=y&&y[2],{tableList:Array.from(X),columnList:d(lr),ast:{type:"alter",keyword:W,name:{schema:f.db,name:f.table},args:vr,expr:S}}})(tr,Cr,gr,Rt),m=x)):(a=m,m=r)):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=(function(){var m=a,x,tr,Cr,gr,Yr;return(x=Ai())!==r&&Hr()!==r?(t.substr(a,9).toLowerCase()==="aggregate"?(tr=t.substr(a,9),a+=9):(tr=r,nt===0&&Ht(dl)),tr!==r&&Hr()!==r&&(Cr=qr())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(gr=kt())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?((Yr=Eo())===r&&(Yr=ao())===r&&(Yr=zo()),Yr===r?(a=m,m=r):(an=m,x=(function(Rt,gt,Gt,rn){let xn=Rt.toLowerCase();return rn.resource=xn,rn[xn]=rn.table,delete rn.table,{tableList:Array.from(X),columnList:d(lr),ast:{type:"alter",keyword:xn,name:{schema:gt.db,name:gt.table},args:{parentheses:!0,expr:Gt,orderby:Gt.orderby},expr:rn}}})(tr,Cr,gr,Yr),m=x)):(a=m,m=r)):(a=m,m=r),m})()),b})())===r&&(i=(function(){var b=a,m,x,tr;(m=qa())!==r&&Hr()!==r?((x=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,6).toLowerCase()==="global"?(Rt=t.substr(a,6),a+=6):(Rt=r,nt===0&&Ht(tf)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):(an=Yr,Yr=Rt="GLOBAL")),Yr})())===r&&(x=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,7).toLowerCase()==="session"?(Rt=t.substr(a,7),a+=7):(Rt=r,nt===0&&Ht(Qu)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):(an=Yr,Yr=Rt="SESSION")),Yr})())===r&&(x=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,5).toLowerCase()==="local"?(Rt=t.substr(a,5),a+=5):(Rt=r,nt===0&&Ht(Uo)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):(an=Yr,Yr=Rt="LOCAL")),Yr})())===r&&(x=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,7).toLowerCase()==="persist"?(Rt=t.substr(a,7),a+=7):(Rt=r,nt===0&&Ht(P0)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):(an=Yr,Yr=Rt="PERSIST")),Yr})())===r&&(x=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,12).toLowerCase()==="persist_only"?(Rt=t.substr(a,12),a+=12):(Rt=r,nt===0&&Ht(gc)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):(an=Yr,Yr=Rt="PERSIST_ONLY")),Yr})()),x===r&&(x=null),x!==r&&Hr()!==r&&(tr=(function(){var Yr,Rt,gt,Gt,rn,xn,f,y;if(Yr=a,(Rt=Jr())!==r){for(gt=[],Gt=a,(rn=Hr())!==r&&(xn=Fo())!==r&&(f=Hr())!==r&&(y=Jr())!==r?Gt=rn=[rn,xn,f,y]:(a=Gt,Gt=r);Gt!==r;)gt.push(Gt),Gt=a,(rn=Hr())!==r&&(xn=Fo())!==r&&(f=Hr())!==r&&(y=Jr())!==r?Gt=rn=[rn,xn,f,y]:(a=Gt,Gt=r);gt===r?(a=Yr,Yr=r):(an=Yr,Rt=Tn(Rt,gt),Yr=Rt)}else a=Yr,Yr=r;return Yr})())!==r?(an=b,Cr=x,(gr=tr).keyword=Cr,m={tableList:Array.from(X),columnList:d(lr),ast:{type:"set",keyword:Cr,expr:gr}},b=m):(a=b,b=r)):(a=b,b=r);var Cr,gr;return b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr;(m=(function(){var rn=a,xn,f,y;return t.substr(a,4).toLowerCase()==="lock"?(xn=t.substr(a,4),a+=4):(xn=r,nt===0&&Ht(Gb)),xn===r?(a=rn,rn=r):(f=a,nt++,y=Ks(),nt--,y===r?f=void 0:(a=f,f=r),f===r?(a=rn,rn=r):rn=xn=[xn,f]),rn})())!==r&&Hr()!==r?((x=Oc())===r&&(x=null),x!==r&&Hr()!==r&&(tr=A())!==r&&Hr()!==r?((Cr=(function(){var rn=a,xn,f,y;return t.substr(a,2).toLowerCase()==="in"?(xn=t.substr(a,2),a+=2):(xn=r,nt===0&&Ht(Hb)),xn!==r&&Hr()!==r?(t.substr(a,12).toLowerCase()==="access share"?(f=t.substr(a,12),a+=12):(f=r,nt===0&&Ht(Jf)),f===r&&(t.substr(a,9).toLowerCase()==="row share"?(f=t.substr(a,9),a+=9):(f=r,nt===0&&Ht(pf)),f===r&&(t.substr(a,13).toLowerCase()==="row exclusive"?(f=t.substr(a,13),a+=13):(f=r,nt===0&&Ht(Yb)),f===r&&(t.substr(a,22).toLowerCase()==="share update exclusive"?(f=t.substr(a,22),a+=22):(f=r,nt===0&&Ht(av)),f===r&&(t.substr(a,19).toLowerCase()==="share row exclusive"?(f=t.substr(a,19),a+=19):(f=r,nt===0&&Ht(iv)),f===r&&(t.substr(a,9).toLowerCase()==="exclusive"?(f=t.substr(a,9),a+=9):(f=r,nt===0&&Ht(Bl)),f===r&&(t.substr(a,16).toLowerCase()==="access exclusive"?(f=t.substr(a,16),a+=16):(f=r,nt===0&&Ht(a0)),f===r&&(t.substr(a,5).toLowerCase()==="share"?(f=t.substr(a,5),a+=5):(f=r,nt===0&&Ht(_l))))))))),f!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="mode"?(y=t.substr(a,4),a+=4):(y=r,nt===0&&Ht(Yl)),y===r?(a=rn,rn=r):(an=rn,xn={mode:`in ${f.toLowerCase()} mode`},rn=xn)):(a=rn,rn=r)):(a=rn,rn=r),rn})())===r&&(Cr=null),Cr!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="nowait"?(gr=t.substr(a,6),a+=6):(gr=r,nt===0&&Ht(Ab)),gr===r&&(gr=null),gr===r?(a=b,b=r):(an=b,Yr=x,gt=Cr,Gt=gr,(Rt=tr)&&Rt.forEach(rn=>X.add(`lock::${[rn.db,rn.schema].filter(Boolean).join(".")||null}::${rn.table}`)),m={tableList:Array.from(X),columnList:d(lr),ast:{type:"lock",keyword:Yr&&Yr.toLowerCase(),tables:Rt.map(rn=>({table:rn})),lock_mode:gt,nowait:Gt}},b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r);var Yr,Rt,gt,Gt;return b})())===r&&(i=(function(){var b=a,m,x;return(m=_i())!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="tables"?(x=t.substr(a,6),a+=6):(x=r,nt===0&&Ht(Mf)),x===r?(a=b,b=r):(an=b,m={tableList:Array.from(X),columnList:d(lr),ast:{type:"show",keyword:"tables"}},b=m)):(a=b,b=r),b===r&&(b=a,(m=_i())!==r&&Hr()!==r&&(x=de())!==r?(an=b,m=(function(tr){return{tableList:Array.from(X),columnList:d(lr),ast:{type:"show",keyword:"var",var:tr}}})(x),b=m):(a=b,b=r)),b})())===r&&(i=(function(){var b=a,m,x,tr;(m=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,10).toLowerCase()==="deallocate"?(Rt=t.substr(a,10),a+=10):(Rt=r,nt===0&&Ht(Ub)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):(an=Yr,Yr=Rt="DEALLOCATE")),Yr})())!==r&&Hr()!==r?(t.substr(a,7).toLowerCase()==="prepare"?(x=t.substr(a,7),a+=7):(x=r,nt===0&&Ht(Wb)),x===r&&(x=null),x!==r&&Hr()!==r?((tr=fo())===r&&(tr=cr()),tr===r?(a=b,b=r):(an=b,Cr=x,gr=tr,m={tableList:Array.from(X),columnList:d(lr),ast:{type:"deallocate",keyword:Cr,expr:{type:"default",value:gr}}},b=m)):(a=b,b=r)):(a=b,b=r);var Cr,gr;return b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn;(m=Dl())!==r&&Hr()!==r&&(x=(function(){var f,y,S,W,vr,_r,$r,at;if(f=a,(y=xu())!==r){for(S=[],W=a,(vr=Hr())!==r&&(_r=Fo())!==r&&($r=Hr())!==r&&(at=xu())!==r?W=vr=[vr,_r,$r,at]:(a=W,W=r);W!==r;)S.push(W),W=a,(vr=Hr())!==r&&(_r=Fo())!==r&&($r=Hr())!==r&&(at=xu())!==r?W=vr=[vr,_r,$r,at]:(a=W,W=r);S===r?(a=f,f=r):(an=f,y=Tn(y,S),f=y)}else a=f,f=r;return f})())!==r&&Hr()!==r&&(tr=Xo())!==r&&Hr()!==r?((Cr=(function(){var f=a,y,S;return(y=Oc())===r&&(t.substr(a,8).toLowerCase()==="sequence"?(y=t.substr(a,8),a+=8):(y=r,nt===0&&Ht(_n)),y===r&&(t.substr(a,8).toLowerCase()==="database"?(y=t.substr(a,8),a+=8):(y=r,nt===0&&Ht(En)),y===r&&(t.substr(a,6)==="DOMAIN"?(y="DOMAIN",a+=6):(y=r,nt===0&&Ht(Os)),y===r&&(t.substr(a,8)==="FUNCTION"?(y="FUNCTION",a+=8):(y=r,nt===0&&Ht(gs)),y===r&&(t.substr(a,9).toLowerCase()==="procedure"?(y=t.substr(a,9),a+=9):(y=r,nt===0&&Ht(xf)),y===r&&(t.substr(a,7).toLowerCase()==="routine"?(y=t.substr(a,7),a+=7):(y=r,nt===0&&Ht(Ys)),y===r&&(t.substr(a,8).toLowerCase()==="language"?(y=t.substr(a,8),a+=8):(y=r,nt===0&&Ht(Te)),y===r&&(t.substr(a,5).toLowerCase()==="large"?(y=t.substr(a,5),a+=5):(y=r,nt===0&&Ht(ye)),y===r&&(t.substr(a,6)==="SCHEMA"?(y="SCHEMA",a+=6):(y=r,nt===0&&Ht(Be))))))))))),y!==r&&(an=f,y={type:"origin",value:y.toUpperCase()}),(f=y)===r&&(f=a,(y=cr())!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="tables"?(S=t.substr(a,6),a+=6):(S=r,nt===0&&Ht(Mf)),S===r&&(t.substr(a,8).toLowerCase()==="sequence"?(S=t.substr(a,8),a+=8):(S=r,nt===0&&Ht(_n)),S===r&&(t.substr(a,9).toLowerCase()==="functions"?(S=t.substr(a,9),a+=9):(S=r,nt===0&&Ht(io)),S===r&&(t.substr(a,10).toLowerCase()==="procedures"?(S=t.substr(a,10),a+=10):(S=r,nt===0&&Ht(Ro)),S===r&&(t.substr(a,8).toLowerCase()==="routines"?(S=t.substr(a,8),a+=8):(S=r,nt===0&&Ht(So)))))),S!==r&&Hr()!==r&&it()!==r&&Hr()!==r&&Yo()!==r?(an=f,f=y={type:"origin",value:`all ${S} in schema`}):(a=f,f=r)):(a=f,f=r)),f})())===r&&(Cr=null),Cr!==r&&(gr=Hr())!==r&&(Yr=(function(){var f,y,S,W,vr,_r,$r,at;if(f=a,(y=si())!==r){for(S=[],W=a,(vr=Hr())!==r&&(_r=Fo())!==r&&($r=Hr())!==r&&(at=si())!==r?W=vr=[vr,_r,$r,at]:(a=W,W=r);W!==r;)S.push(W),W=a,(vr=Hr())!==r&&(_r=Fo())!==r&&($r=Hr())!==r&&(at=si())!==r?W=vr=[vr,_r,$r,at]:(a=W,W=r);S===r?(a=f,f=r):(an=f,y=Tn(y,S),f=y)}else a=f,f=r;return f})())!==r&&(Rt=Hr())!==r?((gt=ga())===r&&(gt=Xc()),gt===r?(a=b,b=r):(an=a,xn=gt,({revoke:"from",grant:"to"}[m.type].toLowerCase()===xn[0].toLowerCase()?void 0:r)!==r&&Hr()!==r&&(Gt=tl())!==r&&Hr()!==r?((rn=(function(){var f=a,y,S;return Nf()!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="grant"?(y=t.substr(a,5),a+=5):(y=r,nt===0&&Ht(ko)),y!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="option"?(S=t.substr(a,6),a+=6):(S=r,nt===0&&Ht(yu)),S===r?(a=f,f=r):(an=f,f={type:"origin",value:"with grant option"})):(a=f,f=r)):(a=f,f=r),f})())===r&&(rn=null),rn===r?(a=b,b=r):(an=b,m=(function(f,y,S,W,vr,_r,$r){return{tableList:Array.from(X),columnList:d(lr),ast:{...f,keyword:"priv",objects:y,on:{object_type:S,priv_level:W},to_from:vr[0],user_or_roles:_r,with:$r}}})(m,x,Cr,Yr,gt,Gt,rn),b=m)):(a=b,b=r))):(a=b,b=r)):(a=b,b=r);var xn;return b===r&&(b=a,(m=Dl())!==r&&Hr()!==r&&(x=qe())!==r&&Hr()!==r?((tr=ga())===r&&(tr=Xc()),tr===r?(a=b,b=r):(an=a,((function(f,y,S){return{revoke:"from",grant:"to"}[f.type].toLowerCase()===S[0].toLowerCase()})(m,0,tr)?void 0:r)!==r&&(Cr=Hr())!==r&&(gr=tl())!==r&&(Yr=Hr())!==r?((Rt=(function(){var f=a,y,S;return Nf()!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="admin"?(y=t.substr(a,5),a+=5):(y=r,nt===0&&Ht(au)),y!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="option"?(S=t.substr(a,6),a+=6):(S=r,nt===0&&Ht(yu)),S===r?(a=f,f=r):(an=f,f={type:"origin",value:"with admin option"})):(a=f,f=r)):(a=f,f=r),f})())===r&&(Rt=null),Rt===r?(a=b,b=r):(an=b,m=(function(f,y,S,W,vr){return{tableList:Array.from(X),columnList:d(lr),ast:{...f,keyword:"role",objects:y.map(_r=>({priv:{type:"string",value:_r}})),to_from:S[0],user_or_roles:W,with:vr}}})(m,x,tr,gr,Rt),b=m)):(a=b,b=r))):(a=b,b=r)),b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f;t.substr(a,2).toLowerCase()==="if"?(m=t.substr(a,2),a+=2):(m=r,nt===0&&Ht(Dn)),m!==r&&Hr()!==r&&(x=fn())!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="then"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(Ju)),tr!==r&&Hr()!==r&&(Cr=Or())!==r&&Hr()!==r?((gr=Fu())===r&&(gr=null),gr!==r&&Hr()!==r?((Yr=(function(){var at,St,Kt,sn,Nn,Xn;if(at=a,(St=$a())!==r){for(Kt=[],sn=a,(Nn=Hr())!==r&&(Xn=$a())!==r?sn=Nn=[Nn,Xn]:(a=sn,sn=r);sn!==r;)Kt.push(sn),sn=a,(Nn=Hr())!==r&&(Xn=$a())!==r?sn=Nn=[Nn,Xn]:(a=sn,sn=r);Kt===r?(a=at,at=r):(an=at,St=Tn(St,Kt,1),at=St)}else a=at,at=r;return at})())===r&&(Yr=null),Yr!==r&&Hr()!==r?(Rt=a,(gt=$e())!==r&&(Gt=Hr())!==r&&(rn=Or())!==r?Rt=gt=[gt,Gt,rn]:(a=Rt,Rt=r),Rt===r&&(Rt=null),Rt!==r&&(gt=Hr())!==r?((Gt=Fu())===r&&(Gt=null),Gt!==r&&(rn=Hr())!==r?(t.substr(a,3).toLowerCase()==="end"?(xn=t.substr(a,3),a+=3):(xn=r,nt===0&&Ht(ua)),xn!==r&&Hr()!==r?(t.substr(a,2).toLowerCase()==="if"?(f=t.substr(a,2),a+=2):(f=r,nt===0&&Ht(Dn)),f===r?(a=b,b=r):(an=b,y=x,S=Cr,W=gr,vr=Yr,_r=Rt,$r=Gt,m={tableList:Array.from(X),columnList:d(lr),ast:{type:"if",keyword:"if",boolean_expr:y,semicolons:[W||"",$r||""],prefix:{type:"origin",value:"then"},if_expr:S,elseif_expr:vr,else_expr:_r&&_r[2],suffix:{type:"origin",value:"end if"}}},b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r);var y,S,W,vr,_r,$r;return b})())===r&&(i=(function(){var b=a,m,x,tr,Cr;t.substr(a,5).toLowerCase()==="raise"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(lp)),m!==r&&Hr()!==r?((x=(function(){var gt;return t.substr(a,5).toLowerCase()==="debug"?(gt=t.substr(a,5),a+=5):(gt=r,nt===0&&Ht(Sa)),gt===r&&(t.substr(a,3).toLowerCase()==="log"?(gt=t.substr(a,3),a+=3):(gt=r,nt===0&&Ht(ma)),gt===r&&(t.substr(a,4).toLowerCase()==="info"?(gt=t.substr(a,4),a+=4):(gt=r,nt===0&&Ht(Bi)),gt===r&&(t.substr(a,6).toLowerCase()==="notice"?(gt=t.substr(a,6),a+=6):(gt=r,nt===0&&Ht(sa)),gt===r&&(t.substr(a,7).toLowerCase()==="warning"?(gt=t.substr(a,7),a+=7):(gt=r,nt===0&&Ht(di)),gt===r&&(t.substr(a,9).toLowerCase()==="exception"?(gt=t.substr(a,9),a+=9):(gt=r,nt===0&&Ht(Hi))))))),gt})())===r&&(x=null),x!==r&&Hr()!==r?((tr=(function(){var gt,Gt,rn,xn,f,y,S,W;if(gt=a,(Gt=fl())!==r){for(rn=[],xn=a,(f=Hr())!==r&&(y=Fo())!==r&&(S=Hr())!==r&&(W=fr())!==r?xn=f=[f,y,S,W]:(a=xn,xn=r);xn!==r;)rn.push(xn),xn=a,(f=Hr())!==r&&(y=Fo())!==r&&(S=Hr())!==r&&(W=fr())!==r?xn=f=[f,y,S,W]:(a=xn,xn=r);rn===r?(a=gt,gt=r):(an=gt,Gt={type:"format",keyword:Gt,expr:(vr=rn)&&vr.map(_r=>_r[3])},gt=Gt)}else a=gt,gt=r;var vr;return gt===r&&(gt=a,t.substr(a,8).toLowerCase()==="sqlstate"?(Gt=t.substr(a,8),a+=8):(Gt=r,nt===0&&Ht(xv)),Gt!==r&&(rn=Hr())!==r&&(xn=fl())!==r?(an=gt,gt=Gt={type:"sqlstate",keyword:{type:"origin",value:"SQLSTATE"},expr:[xn]}):(a=gt,gt=r),gt===r&&(gt=a,(Gt=js())!==r&&(an=gt,Gt={type:"condition",expr:[{type:"default",value:Gt}]}),gt=Gt)),gt})())===r&&(tr=null),tr!==r&&Hr()!==r?((Cr=(function(){var gt,Gt,rn,xn,f,y,S,W,vr,_r;if(gt=a,(Gt=va())!==r)if(Hr()!==r)if(t.substr(a,7).toLowerCase()==="message"?(rn=t.substr(a,7),a+=7):(rn=r,nt===0&&Ht(S0)),rn===r&&(t.substr(a,6).toLowerCase()==="detail"?(rn=t.substr(a,6),a+=6):(rn=r,nt===0&&Ht(l0)),rn===r&&(t.substr(a,4).toLowerCase()==="hint"?(rn=t.substr(a,4),a+=4):(rn=r,nt===0&&Ht(Ov)),rn===r&&(t.substr(a,7).toLowerCase()==="errcode"?(rn=t.substr(a,7),a+=7):(rn=r,nt===0&&Ht(lv)),rn===r&&(t.substr(a,6).toLowerCase()==="column"?(rn=t.substr(a,6),a+=6):(rn=r,nt===0&&Ht(fi)),rn===r&&(t.substr(a,10).toLowerCase()==="constraint"?(rn=t.substr(a,10),a+=10):(rn=r,nt===0&&Ht(Wl)),rn===r&&(t.substr(a,8).toLowerCase()==="datatype"?(rn=t.substr(a,8),a+=8):(rn=r,nt===0&&Ht(ec)),rn===r&&(t.substr(a,5).toLowerCase()==="table"?(rn=t.substr(a,5),a+=5):(rn=r,nt===0&&Ht(Fc)),rn===r&&(t.substr(a,6).toLowerCase()==="schema"?(rn=t.substr(a,6),a+=6):(rn=r,nt===0&&Ht(Ae)))))))))),rn!==r)if(Hr()!==r)if(jr()!==r)if(Hr()!==r)if((xn=fn())!==r){for(f=[],y=a,(S=Hr())!==r&&(W=Fo())!==r&&(vr=Hr())!==r&&(_r=fn())!==r?y=S=[S,W,vr,_r]:(a=y,y=r);y!==r;)f.push(y),y=a,(S=Hr())!==r&&(W=Fo())!==r&&(vr=Hr())!==r&&(_r=fn())!==r?y=S=[S,W,vr,_r]:(a=y,y=r);f===r?(a=gt,gt=r):(an=gt,Gt=(function($r,at,St){let Kt=[at];return St&&St.forEach(sn=>Kt.push(sn[3])),{type:"using",option:$r,symbol:"=",expr:Kt}})(rn,xn,f),gt=Gt)}else a=gt,gt=r;else a=gt,gt=r;else a=gt,gt=r;else a=gt,gt=r;else a=gt,gt=r;else a=gt,gt=r;else a=gt,gt=r;return gt})())===r&&(Cr=null),Cr===r?(a=b,b=r):(an=b,gr=x,Yr=tr,Rt=Cr,m={tableList:Array.from(X),columnList:d(lr),ast:{type:"raise",level:gr,using:Rt,raise:Yr}},b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r);var gr,Yr,Rt;return b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt,gt;return t.substr(a,7).toLowerCase()==="execute"?(m=t.substr(a,7),a+=7):(m=r,nt===0&&Ht(xi)),m!==r&&Hr()!==r&&(x=js())!==r&&Hr()!==r?(tr=a,(Cr=Ko())!==r&&(gr=Hr())!==r&&(Yr=ls())!==r&&(Rt=Hr())!==r&&(gt=Wr())!==r?tr=Cr=[Cr,gr,Yr,Rt,gt]:(a=tr,tr=r),tr===r&&(tr=null),tr===r?(a=b,b=r):(an=b,m=(function(Gt,rn){return{tableList:Array.from(X),columnList:d(lr),ast:{type:"execute",name:Gt,args:rn&&{type:"expr_list",value:rn[2]}}}})(x,tr),b=m)):(a=b,b=r),b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt;(m=(function(){var rn=a,xn,f;return t.substr(a,3).toLowerCase()==="for"?(xn=t.substr(a,3),a+=3):(xn=r,nt===0&&Ht(u0)),xn!==r&&(an=rn,xn={label:null,keyword:"for"}),(rn=xn)===r&&(rn=a,(xn=js())!==r&&Hr()!==r?(t.substr(a,3).toLowerCase()==="for"?(f=t.substr(a,3),a+=3):(f=r,nt===0&&Ht(u0)),f===r?(a=rn,rn=r):(an=rn,rn=xn={label:xn,keyword:"for"})):(a=rn,rn=r)),rn})())!==r&&Hr()!==r&&(x=js())!==r&&Hr()!==r&&it()!==r&&Hr()!==r&&(tr=bc())!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="loop"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(Uv)),Cr!==r&&Hr()!==r&&(gr=Fr())!==r&&Hr()!==r&&Gs()!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="loop"?(Yr=t.substr(a,4),a+=4):(Yr=r,nt===0&&Ht(Uv)),Yr!==r&&Hr()!==r?((Rt=js())===r&&(Rt=null),Rt===r?(a=b,b=r):(an=a,Gt=Rt,(!(!(gt=m).label||!Gt||gt.label!==Gt)||!gt.label&&!Gt?void 0:r)===r?(a=b,b=r):(an=b,m=(function(rn,xn,f,y,S){return{tableList:Array.from(X),columnList:d(lr),ast:{type:"for",label:S,target:xn,query:f,stmts:y.ast}}})(0,x,tr,gr,Rt),b=m))):(a=b,b=r)):(a=b,b=r)):(a=b,b=r);var gt,Gt;return b})()),i}function Or(){var i;return(i=It())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt;return(m=Hr())===r?(a=b,b=r):((x=Wu())===r&&(x=null),x!==r&&Hr()!==r&&Yf()!==r&&Hr()!==r&&(tr=A())!==r&&Hr()!==r&&qa()!==r&&Hr()!==r&&(Cr=so())!==r&&Hr()!==r?((gr=vs())===r&&(gr=null),gr!==r&&Hr()!==r?((Yr=xt())===r&&(Yr=null),Yr!==r&&Hr()!==r?((Rt=Mu())===r&&(Rt=null),Rt===r?(a=b,b=r):(an=b,m=(function(gt,Gt,rn,xn,f,y){let S={},W=vr=>{let{server:_r,db:$r,schema:at,as:St,table:Kt,join:sn}=vr,Nn=sn?"select":"update",Xn=[_r,$r,at].filter(Boolean).join(".")||null;$r&&(S[Kt]=Xn),Kt&&X.add(`${Nn}::${Xn}::${Kt}`)};return Gt&&Gt.forEach(W),xn&&xn.forEach(W),rn&&rn.forEach(vr=>{if(vr.table){let _r=ts(vr.table);X.add(`update::${S[_r]||null}::${_r}`)}lr.add(`update::${vr.table}::${vr.column}`)}),{tableList:Array.from(X),columnList:d(lr),ast:{with:gt,type:"update",table:Gt,set:rn,from:xn,where:f,returning:y}}})(x,tr,Cr,gr,Yr,Rt),b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)),b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt,gt;return(m=Na())!==r&&Hr()!==r?((x=of())===r&&(x=null),x!==r&&Hr()!==r&&(tr=qr())!==r&&Hr()!==r?((Cr=Po())===r&&(Cr=null),Cr!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(gr=qn())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r&&(Yr=su())!==r&&Hr()!==r?((Rt=(function(){var Gt=a,rn,xn,f;return Xo()!==r&&Hr()!==r?(t.substr(a,8).toLowerCase()==="conflict"?(rn=t.substr(a,8),a+=8):(rn=r,nt===0&&Ht(Jv)),rn!==r&&Hr()!==r?((xn=(function(){var y=a,S,W;return(S=Ko())!==r&&Hr()!==r&&(W=cn())!==r&&Hr()!==r&&Wr()!==r?(an=y,S=(function(vr){return{type:"column",expr:vr,parentheses:!0}})(W),y=S):(a=y,y=r),y})())===r&&(xn=null),xn!==r&&Hr()!==r&&(f=(function(){var y=a,S,W,vr,_r;return t.substr(a,2).toLowerCase()==="do"?(S=t.substr(a,2),a+=2):(S=r,nt===0&&Ht(Dv)),S!==r&&Hr()!==r?(t.substr(a,7).toLowerCase()==="nothing"?(W=t.substr(a,7),a+=7):(W=r,nt===0&&Ht(vp)),W===r?(a=y,y=r):(an=y,y=S={keyword:"do",expr:{type:"origin",value:"nothing"}})):(a=y,y=r),y===r&&(y=a,t.substr(a,2).toLowerCase()==="do"?(S=t.substr(a,2),a+=2):(S=r,nt===0&&Ht(Dv)),S!==r&&Hr()!==r&&(W=Yf())!==r&&Hr()!==r&&qa()!==r&&Hr()!==r&&(vr=so())!==r&&Hr()!==r?((_r=xt())===r&&(_r=null),_r===r?(a=y,y=r):(an=y,y=S={keyword:"do",expr:{type:"update",set:vr,where:_r}})):(a=y,y=r)),y})())!==r?(an=Gt,Gt={type:"conflict",keyword:"on",target:xn,action:f}):(a=Gt,Gt=r)):(a=Gt,Gt=r)):(a=Gt,Gt=r),Gt})())===r&&(Rt=null),Rt!==r&&Hr()!==r?((gt=Mu())===r&&(gt=null),gt===r?(a=b,b=r):(an=b,m=(function(Gt,rn,xn,f,y,S,W){if(rn&&(X.add(`insert::${[rn.db,rn.schema].filter(Boolean).join(".")||null}::${rn.table}`),rn.as=null),f){let vr=rn&&rn.table||null;Array.isArray(y.values)&&y.values.forEach((_r,$r)=>{if(_r.value.length!=f.length)throw Error("Error: column count doesn't match value count at row "+($r+1))}),f.forEach(_r=>lr.add(`insert::${vr}::${_r}`))}return{tableList:Array.from(X),columnList:d(lr),ast:{type:Gt,table:[rn],columns:f,values:y,partition:xn,conflict:S,returning:W}}})(m,tr,Cr,gr,Yr,Rt,gt),b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r),b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt;return(m=Na())!==r&&Hr()!==r?((x=Uu())===r&&(x=null),x!==r&&Hr()!==r?((tr=of())===r&&(tr=null),tr!==r&&Hr()!==r&&(Cr=qr())!==r&&Hr()!==r?((gr=Po())===r&&(gr=null),gr!==r&&Hr()!==r&&(Yr=su())!==r&&Hr()!==r?((Rt=Mu())===r&&(Rt=null),Rt===r?(a=b,b=r):(an=b,m=(function(gt,Gt,rn,xn,f,y,S){xn&&(X.add(`insert::${[xn.db,xn.schema].filter(Boolean).join(".")||null}::${xn.table}`),lr.add(`insert::${xn.table}::(.*)`),xn.as=null);let W=[Gt,rn].filter(vr=>vr).map(vr=>vr[0]&&vr[0].toLowerCase()).join(" ");return{tableList:Array.from(X),columnList:d(lr),ast:{type:gt,table:[xn],columns:null,values:y,partition:f,prefix:W,returning:S}}})(m,x,tr,Cr,gr,Yr,Rt),b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r),b})())===r&&(i=(function(){var b=a,m,x,tr,Cr;return(m=Si())!==r&&Hr()!==r?((x=A())===r&&(x=null),x!==r&&Hr()!==r&&(tr=vs())!==r&&Hr()!==r?((Cr=xt())===r&&(Cr=null),Cr===r?(a=b,b=r):(an=b,m=(function(gr,Yr,Rt){if(Yr&&Yr.forEach(gt=>{let{db:Gt,as:rn,schema:xn,table:f,join:y}=gt,S=y?"select":"delete",W=[Gt,xn].filter(Boolean).join(".")||null;f&&X.add(`${S}::${W}::${f}`),y||lr.add(`delete::${f}::(.*)`)}),gr===null&&Yr.length===1){let gt=Yr[0];gr=[{db:gt.db,schema:gt.schema,table:gt.table,as:gt.as,addition:!0}]}return{tableList:Array.from(X),columnList:d(lr),ast:{type:"delete",table:gr,from:Yr,where:Rt}}})(x,tr,Cr),b=m)):(a=b,b=r)):(a=b,b=r),b})())===r&&(i=Lr())===r&&(i=(function(){for(var b=[],m=Xr();m!==r;)b.push(m),m=Xr();return b})()),i}function Fr(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=Or())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fu())!==r&&(gr=Hr())!==r&&(Yr=Or())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fu())!==r&&(gr=Hr())!==r&&(Yr=Or())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt){let Gt=Rt&&Rt.ast||Rt,rn=gt&>.length&>[0].length>=4?[Gt]:Gt;for(let xn=0;xn<gt.length;xn++)gt[xn][3]&>[xn][3].length!==0&&rn.push(gt[xn][3]&>[xn][3].ast||gt[xn][3]);return{tableList:Array.from(X),columnList:d(lr),ast:rn}})(b,m))}else a=i,i=r;return i}function dr(){var i,b,m,x;return i=a,(b=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,5).toLowerCase()==="union"?(Cr=t.substr(a,5),a+=5):(Cr=r,nt===0&&Ht(kb)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):tr=Cr=[Cr,gr]),tr})())!==r&&Hr()!==r?((m=cr())===r&&(m=Er()),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(x=m)?"union "+x.toLowerCase():"union")):(a=i,i=r),i===r&&(i=a,(b=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,9).toLowerCase()==="intersect"?(Cr=t.substr(a,9),a+=9):(Cr=r,nt===0&&Ht(U0)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):tr=Cr=[Cr,gr]),tr})())!==r&&(an=i,b="intersect"),(i=b)===r&&(i=a,(b=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,6).toLowerCase()==="except"?(Cr=t.substr(a,6),a+=6):(Cr=r,nt===0&&Ht(C)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):tr=Cr=[Cr,gr]),tr})())!==r&&(an=i,b="except"),i=b)),i}function It(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=bc())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=dr())!==r&&(gr=Hr())!==r&&(Yr=bc())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=dr())!==r&&(gr=Hr())!==r&&(Yr=bc())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m!==r&&(x=Hr())!==r?((tr=Is())===r&&(tr=null),tr!==r&&(Cr=Hr())!==r?((gr=eo())===r&&(gr=null),gr===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt,Gt,rn){let xn=Rt;for(let f=0;f<gt.length;f++)xn._next=gt[f][3],xn.set_op=gt[f][1],xn=xn._next;return Gt&&(Rt._orderby=Gt),rn&&rn.value&&rn.value.length>0&&(Rt._limit=rn),{tableList:Array.from(X),columnList:d(lr),ast:Rt}})(b,m,tr,gr))):(a=i,i=r)):(a=i,i=r)}else a=i,i=r;return i}function Dt(){var i,b;return i=a,t.substr(a,2).toLowerCase()==="if"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(Dn)),b!==r&&Hr()!==r&&ds()!==r&&Hr()!==r&&hn()!==r?(an=i,i=b="IF NOT EXISTS"):(a=i,i=r),i}function Ln(){var i,b,m;return i=a,t.substr(a,12).toLowerCase()==="check_option"?(b=t.substr(a,12),a+=12):(b=r,nt===0&&Ht(_o)),b!==r&&Hr()!==r&&jr()!==r&&Hr()!==r?(t.substr(a,8).toLowerCase()==="cascaded"?(m=t.substr(a,8),a+=8):(m=r,nt===0&&Ht(Hs)),m===r&&(t.substr(a,5).toLowerCase()==="local"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(Uo))),m===r?(a=i,i=r):(an=i,i=b={type:"check_option",value:m,symbol:"="})):(a=i,i=r),i===r&&(i=a,t.substr(a,16).toLowerCase()==="security_barrier"?(b=t.substr(a,16),a+=16):(b=r,nt===0&&Ht(Gi)),b===r&&(t.substr(a,16).toLowerCase()==="security_invoker"?(b=t.substr(a,16),a+=16):(b=r,nt===0&&Ht(mi))),b!==r&&Hr()!==r&&jr()!==r&&Hr()!==r&&(m=A0())!==r?(an=i,i=b=(function(x,tr){return{type:x.toLowerCase(),value:tr.value?"true":"false",symbol:"="}})(b,m)):(a=i,i=r)),i}function Un(){var i,b,m,x;return i=a,(b=js())!==r&&Hr()!==r&&jr()!==r&&Hr()!==r?((m=js())===r&&(m=fn()),m===r?(a=i,i=r):(an=i,i=b={type:b,symbol:"=",value:typeof(x=m)=="string"?{type:"default",value:x}:x})):(a=i,i=r),i}function u(){var i,b,m;return i=a,(b=Hn())!==r&&Hr()!==r&&(m=E())!==r?(an=i,i=b=(function(x,tr){return{column:x,definition:tr}})(b,m)):(a=i,i=r),i}function yt(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=u())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=u())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=u())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function Y(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn;return i=a,(b=fo())===r?(a=i,i=r):(an=a,(b.toLowerCase()==="begin"?r:void 0)!==r&&Hr()!==r?(t.substr(a,8).toLowerCase()==="constant"?(m=t.substr(a,8),a+=8):(m=r,nt===0&&Ht(nc)),m===r&&(m=null),m!==r&&Hr()!==r&&(x=E())!==r&&Hr()!==r?((tr=kn())===r&&(tr=null),tr!==r&&Hr()!==r?(Cr=a,(gr=ds())!==r&&(Yr=Hr())!==r&&(Rt=Tt())!==r?Cr=gr=[gr,Yr,Rt]:(a=Cr,Cr=r),Cr===r&&(Cr=null),Cr!==r&&(gr=Hr())!==r?(Yr=a,(Rt=Rf())===r&&(t.substr(a,2)===":="?(Rt=":=",a+=2):(Rt=r,nt===0&&Ht(xc))),Rt===r&&(Rt=null),Rt!==r&&(gt=Hr())!==r?(Gt=a,nt++,t.substr(a,5).toLowerCase()==="begin"?(rn=t.substr(a,5),a+=5):(rn=r,nt===0&&Ht(I0)),nt--,rn===r?Gt=r:(a=Gt,Gt=void 0),Gt===r&&(Gt=cb())===r&&(Gt=fn()),Gt===r?(a=Yr,Yr=r):Yr=Rt=[Rt,gt,Gt]):(a=Yr,Yr=r),Yr===r&&(Yr=null),Yr!==r&&(Rt=Hr())!==r?((gt=Fu())===r&&(gt=null),gt===r?(a=i,i=r):(an=i,i=b=(function(xn,f,y,S,W,vr,_r){return{keyword:"variable",name:xn,constant:f,datatype:y,collate:S,not_null:W&&"not null",definition:vr&&vr[0]&&{type:"default",keyword:vr[0],value:vr[2]}}})(b,m,x,tr,Cr,Yr))):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)),i}function Q(){var i,b,m,x,tr,Cr;if(i=a,(b=Y())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Y())!==r?x=tr=[tr,Cr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Y())!==r?x=tr=[tr,Cr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m,1))}else a=i,i=r;return i}function Tr(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="declare"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(ji)),b!==r&&Hr()!==r&&(m=Q())!==r?(an=i,x=m,i=b={tableList:Array.from(X),columnList:d(lr),ast:{type:"declare",declare:x,symbol:";"}}):(a=i,i=r),i}function P(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S,W;if(i=a,t.substr(a,8)==="LANGUAGE"?(b="LANGUAGE",a+=8):(b=r,nt===0&&Ht(af)),b!==r&&(m=Hr())!==r&&(x=fo())!==r&&(tr=Hr())!==r?(an=i,i=b={prefix:"LANGUAGE",type:"default",value:x}):(a=i,i=r),i===r&&(i=a,t.substr(a,8).toLowerCase()==="transorm"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(qf)),b!==r&&(m=Hr())!==r?(x=a,t.substr(a,3)==="FOR"?(tr="FOR",a+=3):(tr=r,nt===0&&Ht(Uc)),tr!==r&&(Cr=Hr())!==r?(t.substr(a,4)==="TYPE"?(gr="TYPE",a+=4):(gr=r,nt===0&&Ht(wc)),gr!==r&&(Yr=Hr())!==r&&(Rt=fo())!==r?x=tr=[tr,Cr,gr,Yr,Rt]:(a=x,x=r)):(a=x,x=r),x===r&&(x=null),x!==r&&(tr=Hr())!==r?(an=i,i=b=(W=x)?{prefix:["TRANSORM",W[0].toUpperCase(),W[2].toUpperCase()].join(" "),type:"default",value:W[4]}:{type:"origin",value:"TRANSORM"}):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,6).toLowerCase()==="window"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Ll)),b===r&&(t.substr(a,9).toLowerCase()==="immutable"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(jl)),b===r&&(t.substr(a,6).toLowerCase()==="stable"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Oi)),b===r&&(t.substr(a,8).toLowerCase()==="volatile"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(bb)),b===r&&(t.substr(a,6).toLowerCase()==="strict"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Vi)))))),b!==r&&(m=Hr())!==r?(an=i,i=b={type:"origin",value:b}):(a=i,i=r),i===r&&(i=a,t.substr(a,3).toLowerCase()==="not"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(zc)),b===r&&(b=null),b!==r&&(m=Hr())!==r?(t.substr(a,9).toLowerCase()==="leakproof"?(x=t.substr(a,9),a+=9):(x=r,nt===0&&Ht(kc)),x!==r&&(tr=Hr())!==r?(an=i,i=b={type:"origin",value:[b,"LEAKPROOF"].filter(vr=>vr).join(" ")}):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,6).toLowerCase()==="called"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(vb)),b===r&&(b=a,t.substr(a,7).toLowerCase()==="returns"?(m=t.substr(a,7),a+=7):(m=r,nt===0&&Ht(Gl)),m!==r&&(x=Hr())!==r?(t.substr(a,4).toLowerCase()==="null"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(Zc)),tr===r?(a=b,b=r):b=m=[m,x,tr]):(a=b,b=r)),b===r&&(b=null),b!==r&&(m=Hr())!==r?(t.substr(a,2).toLowerCase()==="on"?(x=t.substr(a,2),a+=2):(x=r,nt===0&&Ht(nl)),x!==r&&(tr=Hr())!==r?(t.substr(a,4).toLowerCase()==="null"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(Zc)),Cr!==r&&(gr=Hr())!==r?(t.substr(a,5).toLowerCase()==="input"?(Yr=t.substr(a,5),a+=5):(Yr=r,nt===0&&Ht(Xf)),Yr!==r&&(Rt=Hr())!==r?(an=i,i=b=(function(vr){return Array.isArray(vr)&&(vr=[vr[0],vr[2]].join(" ")),{type:"origin",value:vr+" ON NULL INPUT"}})(b)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,8).toLowerCase()==="external"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(gl)),b===r&&(b=null),b!==r&&(m=Hr())!==r?(t.substr(a,8).toLowerCase()==="security"?(x=t.substr(a,8),a+=8):(x=r,nt===0&&Ht(lf)),x!==r&&(tr=Hr())!==r?(t.substr(a,7).toLowerCase()==="invoker"?(Cr=t.substr(a,7),a+=7):(Cr=r,nt===0&&Ht(Jc)),Cr===r&&(t.substr(a,7).toLowerCase()==="definer"?(Cr=t.substr(a,7),a+=7):(Cr=r,nt===0&&Ht(Qc))),Cr!==r&&(gr=Hr())!==r?(an=i,i=b=(function(vr,_r){return{type:"origin",value:[vr,"SECURITY",_r].filter($r=>$r).join(" ")}})(b,Cr)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,8).toLowerCase()==="parallel"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(gv)),b!==r&&(m=Hr())!==r?(t.substr(a,6).toLowerCase()==="unsafe"?(x=t.substr(a,6),a+=6):(x=r,nt===0&&Ht(g0)),x===r&&(t.substr(a,10).toLowerCase()==="restricted"?(x=t.substr(a,10),a+=10):(x=r,nt===0&&Ht(Ki)),x===r&&(t.substr(a,4).toLowerCase()==="safe"?(x=t.substr(a,4),a+=4):(x=r,nt===0&&Ht(Pb)))),x!==r&&(tr=Hr())!==r?(an=i,i=b=(function(vr){return{type:"origin",value:["PARALLEL",vr].join(" ")}})(x)):(a=i,i=r)):(a=i,i=r),i===r))))))){if(i=a,(b=qo())!==r)if((m=Hr())!==r){if(x=[],ei.test(t.charAt(a))?(tr=t.charAt(a),a++):(tr=r,nt===0&&Ht(pb)),tr!==r)for(;tr!==r;)x.push(tr),ei.test(t.charAt(a))?(tr=t.charAt(a),a++):(tr=r,nt===0&&Ht(pb));else x=r;if(x!==r)if((tr=Hr())!==r)if((Cr=Tr())===r&&(Cr=null),Cr!==r)if((gr=Hr())!==r)if(t.substr(a,5).toLowerCase()==="begin"?(Yr=t.substr(a,5),a+=5):(Yr=r,nt===0&&Ht(I0)),Yr===r&&(Yr=null),Yr!==r)if((Rt=Hr())!==r)if((gt=Fr())!==r)if(Hr()!==r)if((Gt=Gs())===r&&(Gt=null),Gt!==r)if(an=a,S=Gt,((y=Yr)&&S||!y&&!S?void 0:r)!==r)if(Hr()!==r)if((rn=Fu())===r&&(rn=null),rn!==r)if(Hr()!==r){if(xn=[],j0.test(t.charAt(a))?(f=t.charAt(a),a++):(f=r,nt===0&&Ht(B0)),f!==r)for(;f!==r;)xn.push(f),j0.test(t.charAt(a))?(f=t.charAt(a),a++):(f=r,nt===0&&Ht(B0));else xn=r;xn!==r&&(f=Hr())!==r?(an=i,i=b=(function(vr,_r,$r,at,St,Kt){let sn=vr.join(""),Nn=Kt.join("");if(sn!==Nn)throw Error(`start symbol '${sn}'is not same with end symbol '${Nn}'`);return{type:"as",declare:_r&&_r.ast,begin:$r,expr:Array.isArray(at.ast)?at.ast.flat():[at.ast],end:St&&St[0],symbol:sn}})(x,Cr,Yr,gt,Gt,xn)):(a=i,i=r)}else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r}else a=i,i=r;else a=i,i=r;i===r&&(i=a,t.substr(a,4).toLowerCase()==="cost"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Mc)),b===r&&(t.substr(a,4).toLowerCase()==="rows"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Cl))),b!==r&&(m=Hr())!==r&&(x=Xi())!==r&&(tr=Hr())!==r?(an=i,i=b=(function(vr,_r){return _r.prefix=vr,_r})(b,x)):(a=i,i=r),i===r&&(i=a,t.substr(a,7).toLowerCase()==="support"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht($u)),b!==r&&(m=Hr())!==r&&(x=os())!==r&&(tr=Hr())!==r?(an=i,i=b=(function(vr){return{prefix:"support",type:"default",value:vr}})(x)):(a=i,i=r),i===r&&(i=a,(b=qa())!==r&&(m=Hr())!==r&&(x=fo())!==r&&(tr=Hr())!==r?(Cr=a,t.substr(a,2).toLowerCase()==="to"?(gr=t.substr(a,2),a+=2):(gr=r,nt===0&&Ht(r0)),gr===r&&(t.charCodeAt(a)===61?(gr="=",a++):(gr=r,nt===0&&Ht(zn))),gr!==r&&(Yr=Hr())!==r&&(Rt=qe())!==r?Cr=gr=[gr,Yr,Rt]:(a=Cr,Cr=r),Cr===r&&(Cr=a,(gr=Xc())!==r&&(Yr=Hr())!==r?(t.substr(a,7).toLowerCase()==="current"?(Rt=t.substr(a,7),a+=7):(Rt=r,nt===0&&Ht(Ss)),Rt===r?(a=Cr,Cr=r):Cr=gr=[gr,Yr,Rt]):(a=Cr,Cr=r)),Cr===r&&(Cr=null),Cr!==r&&(gr=Hr())!==r?(an=i,i=b=(function(vr,_r){let $r;if(_r){let at=Array.isArray(_r[2])?_r[2]:[_r[2]];$r={prefix:_r[0],expr:at.map(St=>({type:"default",value:St}))}}return{type:"set",parameter:vr,value:$r}})(x,Cr)):(a=i,i=r)):(a=i,i=r))))}return i}function hr(){var i;return(i=(function(){var b,m,x,tr,Cr,gr;return b=a,t.substr(a,9).toLowerCase()==="increment"?(m=t.substr(a,9),a+=9):(m=r,nt===0&&Ht(Ue)),m!==r&&Hr()!==r?((x=ot())===r&&(x=null),x!==r&&Hr()!==r&&(tr=Xi())!==r?(an=b,Cr=m,gr=tr,b=m={resource:"sequence",prefix:x?Cr.toLowerCase()+" by":Cr.toLowerCase(),value:gr}):(a=b,b=r)):(a=b,b=r),b})())===r&&(i=(function(){var b,m,x;return b=a,t.substr(a,8).toLowerCase()==="minvalue"?(m=t.substr(a,8),a+=8):(m=r,nt===0&&Ht(Qe)),m!==r&&Hr()!==r&&(x=Xi())!==r?(an=b,b=m=uo(m,x)):(a=b,b=r),b===r&&(b=a,t.substr(a,2).toLowerCase()==="no"?(m=t.substr(a,2),a+=2):(m=r,nt===0&&Ht(Ao)),m!==r&&Hr()!==r?(t.substr(a,8).toLowerCase()==="minvalue"?(x=t.substr(a,8),a+=8):(x=r,nt===0&&Ht(Qe)),x===r?(a=b,b=r):(an=b,b=m={resource:"sequence",value:{type:"origin",value:"no minvalue"}})):(a=b,b=r)),b})())===r&&(i=(function(){var b,m,x;return b=a,t.substr(a,8).toLowerCase()==="maxvalue"?(m=t.substr(a,8),a+=8):(m=r,nt===0&&Ht(Pu)),m!==r&&Hr()!==r&&(x=Xi())!==r?(an=b,b=m=uo(m,x)):(a=b,b=r),b===r&&(b=a,t.substr(a,2).toLowerCase()==="no"?(m=t.substr(a,2),a+=2):(m=r,nt===0&&Ht(Ao)),m!==r&&Hr()!==r?(t.substr(a,8).toLowerCase()==="maxvalue"?(x=t.substr(a,8),a+=8):(x=r,nt===0&&Ht(Pu)),x===r?(a=b,b=r):(an=b,b=m={resource:"sequence",value:{type:"origin",value:"no maxvalue"}})):(a=b,b=r)),b})())===r&&(i=(function(){var b,m,x,tr,Cr,gr;return b=a,t.substr(a,5).toLowerCase()==="start"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(Ca)),m!==r&&Hr()!==r?((x=Nf())===r&&(x=null),x!==r&&Hr()!==r&&(tr=Xi())!==r?(an=b,Cr=m,gr=tr,b=m={resource:"sequence",prefix:x?Cr.toLowerCase()+" with":Cr.toLowerCase(),value:gr}):(a=b,b=r)):(a=b,b=r),b})())===r&&(i=(function(){var b,m,x;return b=a,t.substr(a,5).toLowerCase()==="cache"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(ku)),m!==r&&Hr()!==r&&(x=Xi())!==r?(an=b,b=m=uo(m,x)):(a=b,b=r),b})())===r&&(i=(function(){var b,m,x;return b=a,t.substr(a,2).toLowerCase()==="no"?(m=t.substr(a,2),a+=2):(m=r,nt===0&&Ht(Ao)),m===r&&(m=null),m!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="cycle"?(x=t.substr(a,5),a+=5):(x=r,nt===0&&Ht(ca)),x===r?(a=b,b=r):(an=b,b=m={resource:"sequence",value:{type:"origin",value:m?"no cycle":"cycle"}})):(a=b,b=r),b})())===r&&(i=(function(){var b,m,x;return b=a,t.substr(a,5).toLowerCase()==="owned"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(na)),m!==r&&Hr()!==r&&ot()!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="none"?(x=t.substr(a,4),a+=4):(x=r,nt===0&&Ht(Qa)),x===r?(a=b,b=r):(an=b,b=m={resource:"sequence",prefix:"owned by",value:{type:"origin",value:"none"}})):(a=b,b=r),b===r&&(b=a,t.substr(a,5).toLowerCase()==="owned"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(na)),m!==r&&Hr()!==r&&ot()!==r&&Hr()!==r&&(x=Hn())!==r?(an=b,b=m={resource:"sequence",prefix:"owned by",value:x}):(a=b,b=r)),b})()),i}function ht(){var i,b,m,x,tr,Cr,gr,Yr,Rt;return i=a,(b=fn())!==r&&Hr()!==r?((m=kn())===r&&(m=null),m!==r&&Hr()!==r?((x=js())===r&&(x=null),x!==r&&Hr()!==r?((tr=R())===r&&(tr=B()),tr===r&&(tr=null),tr!==r&&Hr()!==r?(Cr=a,t.substr(a,5).toLowerCase()==="nulls"?(gr=t.substr(a,5),a+=5):(gr=r,nt===0&&Ht(cf)),gr!==r&&(Yr=Hr())!==r?(t.substr(a,5).toLowerCase()==="first"?(Rt=t.substr(a,5),a+=5):(Rt=r,nt===0&&Ht(ri)),Rt===r&&(t.substr(a,4).toLowerCase()==="last"?(Rt=t.substr(a,4),a+=4):(Rt=r,nt===0&&Ht(t0))),Rt===r?(a=Cr,Cr=r):Cr=gr=[gr,Yr,Rt]):(a=Cr,Cr=r),Cr===r&&(Cr=null),Cr===r?(a=i,i=r):(an=i,i=b=(function(gt,Gt,rn,xn,f){return{...gt,collate:Gt,opclass:rn,order_by:xn&&xn.toLowerCase(),nulls:f&&`${f[0].toLowerCase()} ${f[2].toLowerCase()}`}})(b,m,x,tr,Cr))):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i}function e(){var i;return(i=Mr())===r&&(i=yo())===r&&(i=lo())===r&&(i=Co()),i}function Pr(){var i,b,m,x;return(i=(function(){var tr=a,Cr,gr;(Cr=ap())===r&&(Cr=hi()),Cr!==r&&Hr()!==r?((gr=K())===r&&(gr=null),gr===r?(a=tr,tr=r):(an=tr,Rt=gr,(Yr=Cr)&&!Yr.value&&(Yr.value="null"),tr=Cr={default_val:Rt,nullable:Yr})):(a=tr,tr=r);var Yr,Rt;return tr===r&&(tr=a,(Cr=K())!==r&&Hr()!==r?((gr=ap())===r&&(gr=hi()),gr===r&&(gr=null),gr===r?(a=tr,tr=r):(an=tr,Cr=(function(gt,Gt){return Gt&&!Gt.value&&(Gt.value="null"),{default_val:gt,nullable:Gt}})(Cr,gr),tr=Cr)):(a=tr,tr=r)),tr})())===r&&(i=a,t.substr(a,14).toLowerCase()==="auto_increment"?(b=t.substr(a,14),a+=14):(b=r,nt===0&&Ht(n0)),b!==r&&(an=i,b={auto_increment:b.toLowerCase()}),(i=b)===r&&(i=a,t.substr(a,6).toLowerCase()==="unique"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Dc)),b!==r&&Hr()!==r?(t.substr(a,3).toLowerCase()==="key"?(m=t.substr(a,3),a+=3):(m=r,nt===0&&Ht(s0)),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(tr){let Cr=["unique"];return tr&&Cr.push(tr),{unique:Cr.join(" ").toLowerCase("")}})(m))):(a=i,i=r),i===r&&(i=a,t.substr(a,7).toLowerCase()==="primary"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(Rv)),b===r&&(b=null),b!==r&&Hr()!==r?(t.substr(a,3).toLowerCase()==="key"?(m=t.substr(a,3),a+=3):(m=r,nt===0&&Ht(s0)),m===r?(a=i,i=r):(an=i,i=b=(function(tr){let Cr=[];return tr&&Cr.push("primary"),Cr.push("key"),{primary_key:Cr.join(" ").toLowerCase("")}})(b))):(a=i,i=r),i===r&&(i=a,(b=M())!==r&&(an=i,b={comment:b}),(i=b)===r&&(i=a,(b=kn())!==r&&(an=i,b={collate:b}),(i=b)===r&&(i=a,(b=(function(){var tr=a,Cr,gr;return t.substr(a,13).toLowerCase()==="column_format"?(Cr=t.substr(a,13),a+=13):(Cr=r,nt===0&&Ht(nv)),Cr!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="fixed"?(gr=t.substr(a,5),a+=5):(gr=r,nt===0&&Ht(sv)),gr===r&&(t.substr(a,7).toLowerCase()==="dynamic"?(gr=t.substr(a,7),a+=7):(gr=r,nt===0&&Ht(ev)),gr===r&&(t.substr(a,7).toLowerCase()==="default"?(gr=t.substr(a,7),a+=7):(gr=r,nt===0&&Ht(yc)))),gr===r?(a=tr,tr=r):(an=tr,Cr={type:"column_format",value:gr.toLowerCase()},tr=Cr)):(a=tr,tr=r),tr})())!==r&&(an=i,b={column_format:b}),(i=b)===r&&(i=a,(b=(function(){var tr=a,Cr,gr;return t.substr(a,7).toLowerCase()==="storage"?(Cr=t.substr(a,7),a+=7):(Cr=r,nt===0&&Ht($c)),Cr!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="disk"?(gr=t.substr(a,4),a+=4):(gr=r,nt===0&&Ht(Sf)),gr===r&&(t.substr(a,6).toLowerCase()==="memory"?(gr=t.substr(a,6),a+=6):(gr=r,nt===0&&Ht(R0))),gr===r?(a=tr,tr=r):(an=tr,Cr={type:"storage",value:gr.toLowerCase()},tr=Cr)):(a=tr,tr=r),tr})())!==r&&(an=i,b={storage:b}),(i=b)===r&&(i=a,(b=da())!==r&&(an=i,b={reference_definition:b}),(i=b)===r&&(i=a,(b=ta())!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r&&(x=Cs())!==r?(an=i,i=b=(function(tr,Cr,gr){return{character_set:{type:tr,value:gr,symbol:Cr}}})(b,m,x)):(a=i,i=r)):(a=i,i=r)))))))))),i}function Mr(){var i,b,m,x;return i=a,(b=Hn())!==r&&Hr()!==r&&(m=E())!==r&&Hr()!==r?((x=(function(){var tr,Cr,gr,Yr,Rt,gt;if(tr=a,(Cr=Pr())!==r)if(Hr()!==r){for(gr=[],Yr=a,(Rt=Hr())!==r&&(gt=Pr())!==r?Yr=Rt=[Rt,gt]:(a=Yr,Yr=r);Yr!==r;)gr.push(Yr),Yr=a,(Rt=Hr())!==r&&(gt=Pr())!==r?Yr=Rt=[Rt,gt]:(a=Yr,Yr=r);gr===r?(a=tr,tr=r):(an=tr,tr=Cr=(function(Gt,rn){let xn=Gt;for(let f=0;f<rn.length;f++)xn={...xn,...rn[f][1]};return xn})(Cr,gr))}else a=tr,tr=r;else a=tr,tr=r;return tr})())===r&&(x=null),x===r?(a=i,i=r):(an=i,i=b=(function(tr,Cr,gr){return lr.add(`create::${tr.table}::${tr.column}`),{column:tr,definition:Cr,resource:"column",...gr||{}}})(b,m,x))):(a=i,i=r),i}function kn(){var i,b,m;return i=a,(function(){var x=a,tr,Cr,gr;return t.substr(a,7).toLowerCase()==="collate"?(tr=t.substr(a,7),a+=7):(tr=r,nt===0&&Ht(Gc)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="COLLATE")),x})()!==r&&Hr()!==r?((b=jr())===r&&(b=null),b!==r&&Hr()!==r&&(m=js())!==r?(an=i,i={type:"collate",keyword:"collate",collate:{name:m,symbol:b}}):(a=i,i=r)):(a=i,i=r),i}function Yn(){var i,b,m,x,tr;return i=a,(b=Rf())===r&&(b=jr()),b===r&&(b=null),b!==r&&Hr()!==r&&(m=fn())!==r?(an=i,tr=m,i=b={type:"default",keyword:(x=b)&&x[0],value:tr}):(a=i,i=r),i}function K(){var i,b;return i=a,Rf()!==r&&Hr()!==r&&(b=fn())!==r?(an=i,i={type:"default",value:b}):(a=i,i=r),i}function kt(){var i,b,m;return i=a,(b=Gu())!==r&&(an=i,b=[{name:"*"}]),(i=b)===r&&(i=a,(b=co())===r&&(b=null),b!==r&&Hr()!==r&&Xv()!==r&&Hr()!==r&&ot()!==r&&Hr()!==r&&(m=co())!==r?(an=i,i=b=(function(x,tr){let Cr=x||[];return Cr.orderby=tr,Cr})(b,m)):(a=i,i=r),i===r&&(i=co())),i}function Js(){var i,b;return i=a,(b=it())===r&&(t.substr(a,3).toLowerCase()==="out"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(Vf)),b===r&&(t.substr(a,8).toLowerCase()==="variadic"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(Vv)),b===r&&(t.substr(a,5).toLowerCase()==="inout"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(db))))),b!==r&&(an=i,b=b.toUpperCase()),i=b}function Ve(){var i,b,m,x,tr;return i=a,(b=Js())===r&&(b=null),b!==r&&Hr()!==r&&(m=E())!==r&&Hr()!==r?((x=Yn())===r&&(x=null),x===r?(a=i,i=r):(an=i,i=b={mode:b,type:m,default:x})):(a=i,i=r),i===r&&(i=a,(b=Js())===r&&(b=null),b!==r&&Hr()!==r&&(m=fo())!==r&&Hr()!==r&&(x=E())!==r&&Hr()!==r?((tr=Yn())===r&&(tr=null),tr===r?(a=i,i=r):(an=i,i=b=(function(Cr,gr,Yr,Rt){return{mode:Cr,name:gr,type:Yr,default:Rt}})(b,m,x,tr))):(a=i,i=r)),i}function co(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=Ve())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Ve())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Ve())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function _t(){var i;return(i=(function(){var b=a,m,x,tr;(m=oo())!==r&&Hr()!==r?((x=Bo())===r&&(x=null),x!==r&&Hr()!==r&&(tr=Mr())!==r?(an=b,Cr=x,gr=tr,m={action:"add",...gr,keyword:Cr,resource:"column",type:"alter"},b=m):(a=b,b=r)):(a=b,b=r);var Cr,gr;return b})())===r&&(i=(function(){var b=a,m,x;return(m=oo())!==r&&Hr()!==r&&(x=Co())!==r?(an=b,m=(function(tr){return{action:"add",create_definitions:tr,resource:"constraint",type:"alter"}})(x),b=m):(a=b,b=r),b})())===r&&(i=(function(){var b=a,m,x,tr;return(m=Nc())!==r&&Hr()!==r?((x=Bo())===r&&(x=null),x!==r&&Hr()!==r&&(tr=Hn())!==r?(an=b,m=(function(Cr,gr){return{action:"drop",column:gr,keyword:Cr,resource:"column",type:"alter"}})(x,tr),b=m):(a=b,b=r)):(a=b,b=r),b})())===r&&(i=(function(){var b=a,m,x;(m=oo())!==r&&Hr()!==r&&(x=yo())!==r?(an=b,tr=x,m={action:"add",type:"alter",...tr},b=m):(a=b,b=r);var tr;return b})())===r&&(i=(function(){var b=a,m,x;(m=oo())!==r&&Hr()!==r&&(x=lo())!==r?(an=b,tr=x,m={action:"add",type:"alter",...tr},b=m):(a=b,b=r);var tr;return b})())===r&&(i=Eo())===r&&(i=no())===r&&(i=Ke()),i}function Eo(){var i,b,m,x,tr;return i=a,ip()!==r&&Hr()!==r?((b=ga())===r&&(b=qo()),b===r&&(b=null),b!==r&&Hr()!==r&&(m=js())!==r?(an=i,tr=m,i={action:"rename",type:"alter",resource:"table",keyword:(x=b)&&x[0].toLowerCase(),table:tr}):(a=i,i=r)):(a=i,i=r),i}function ao(){var i,b,m;return i=a,t.substr(a,5).toLowerCase()==="owner"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(Of)),b!==r&&Hr()!==r&&ga()!==r&&Hr()!==r?((m=js())===r&&(t.substr(a,12).toLowerCase()==="current_role"?(m=t.substr(a,12),a+=12):(m=r,nt===0&&Ht(Pc)),m===r&&(t.substr(a,12).toLowerCase()==="current_user"?(m=t.substr(a,12),a+=12):(m=r,nt===0&&Ht(H0)),m===r&&(t.substr(a,12).toLowerCase()==="session_user"?(m=t.substr(a,12),a+=12):(m=r,nt===0&&Ht(bf))))),m===r?(a=i,i=r):(an=i,i=b={action:"owner",type:"alter",resource:"table",keyword:"to",table:m})):(a=i,i=r),i}function zo(){var i,b;return i=a,qa()!==r&&Hr()!==r&&Yo()!==r&&Hr()!==r&&(b=js())!==r?(an=i,i={action:"set",type:"alter",resource:"table",keyword:"schema",table:b}):(a=i,i=r),i}function no(){var i,b,m,x;return i=a,t.substr(a,9).toLowerCase()==="algorithm"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(Lb)),b!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r?(t.substr(a,7).toLowerCase()==="default"?(x=t.substr(a,7),a+=7):(x=r,nt===0&&Ht(yc)),x===r&&(t.substr(a,7).toLowerCase()==="instant"?(x=t.substr(a,7),a+=7):(x=r,nt===0&&Ht(Fa)),x===r&&(t.substr(a,7).toLowerCase()==="inplace"?(x=t.substr(a,7),a+=7):(x=r,nt===0&&Ht(Kf)),x===r&&(t.substr(a,4).toLowerCase()==="copy"?(x=t.substr(a,4),a+=4):(x=r,nt===0&&Ht(Nv))))),x===r?(a=i,i=r):(an=i,i=b={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:m,algorithm:x})):(a=i,i=r)):(a=i,i=r),i}function Ke(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="lock"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Gb)),b!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r?(t.substr(a,7).toLowerCase()==="default"?(x=t.substr(a,7),a+=7):(x=r,nt===0&&Ht(yc)),x===r&&(t.substr(a,4).toLowerCase()==="none"?(x=t.substr(a,4),a+=4):(x=r,nt===0&&Ht(Qa)),x===r&&(t.substr(a,6).toLowerCase()==="shared"?(x=t.substr(a,6),a+=6):(x=r,nt===0&&Ht(hc)),x===r&&(t.substr(a,9).toLowerCase()==="exclusive"?(x=t.substr(a,9),a+=9):(x=r,nt===0&&Ht(Bl))))),x===r?(a=i,i=r):(an=i,i=b={type:"alter",keyword:"lock",resource:"lock",symbol:m,lock:x})):(a=i,i=r)):(a=i,i=r),i}function yo(){var i,b,m,x,tr,Cr;return i=a,(b=No())===r&&(b=lu()),b!==r&&Hr()!==r?((m=xe())===r&&(m=null),m!==r&&Hr()!==r?((x=ut())===r&&(x=null),x!==r&&Hr()!==r&&(tr=wi())!==r&&Hr()!==r?((Cr=De())===r&&(Cr=null),Cr!==r&&Hr()!==r?(an=i,i=b=(function(gr,Yr,Rt,gt,Gt){return{index:Yr,definition:gt,keyword:gr.toLowerCase(),index_type:Rt,resource:"index",index_options:Gt}})(b,m,x,tr,Cr)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i}function lo(){var i,b,m,x,tr,Cr;return i=a,(b=(function(){var gr=a,Yr,Rt,gt;return t.substr(a,8).toLowerCase()==="fulltext"?(Yr=t.substr(a,8),a+=8):(Yr=r,nt===0&&Ht(vi)),Yr===r?(a=gr,gr=r):(Rt=a,nt++,gt=Ks(),nt--,gt===r?Rt=void 0:(a=Rt,Rt=r),Rt===r?(a=gr,gr=r):(an=gr,gr=Yr="FULLTEXT")),gr})())===r&&(b=(function(){var gr=a,Yr,Rt,gt;return t.substr(a,7).toLowerCase()==="spatial"?(Yr=t.substr(a,7),a+=7):(Yr=r,nt===0&&Ht(Va)),Yr===r?(a=gr,gr=r):(Rt=a,nt++,gt=Ks(),nt--,gt===r?Rt=void 0:(a=Rt,Rt=r),Rt===r?(a=gr,gr=r):(an=gr,gr=Yr="SPATIAL")),gr})()),b!==r&&Hr()!==r?((m=No())===r&&(m=lu()),m===r&&(m=null),m!==r&&Hr()!==r?((x=xe())===r&&(x=null),x!==r&&Hr()!==r&&(tr=wi())!==r&&Hr()!==r?((Cr=De())===r&&(Cr=null),Cr!==r&&Hr()!==r?(an=i,i=b=(function(gr,Yr,Rt,gt,Gt){return{index:Rt,definition:gt,keyword:Yr&&`${gr.toLowerCase()} ${Yr.toLowerCase()}`||gr.toLowerCase(),index_options:Gt,resource:"index"}})(b,m,x,tr,Cr)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i}function Co(){var i;return(i=(function(){var b=a,m,x,tr,Cr,gr;(m=Au())===r&&(m=null),m!==r&&Hr()!==r?(t.substr(a,11).toLowerCase()==="primary key"?(x=t.substr(a,11),a+=11):(x=r,nt===0&&Ht(sl)),x!==r&&Hr()!==r?((tr=ut())===r&&(tr=null),tr!==r&&Hr()!==r&&(Cr=wi())!==r&&Hr()!==r?((gr=De())===r&&(gr=null),gr===r?(a=b,b=r):(an=b,Rt=x,gt=tr,Gt=Cr,rn=gr,m={constraint:(Yr=m)&&Yr.constraint,definition:Gt,constraint_type:Rt.toLowerCase(),keyword:Yr&&Yr.keyword,index_type:gt,resource:"constraint",index_options:rn},b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r);var Yr,Rt,gt,Gt,rn;return b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr,Yr,Rt;(m=Au())===r&&(m=null),m!==r&&Hr()!==r&&(x=ru())!==r&&Hr()!==r?((tr=No())===r&&(tr=lu()),tr===r&&(tr=null),tr!==r&&Hr()!==r?((Cr=xe())===r&&(Cr=null),Cr!==r&&Hr()!==r?((gr=ut())===r&&(gr=null),gr!==r&&Hr()!==r&&(Yr=wi())!==r&&Hr()!==r?((Rt=De())===r&&(Rt=null),Rt===r?(a=b,b=r):(an=b,Gt=x,rn=tr,xn=Cr,f=gr,y=Yr,S=Rt,m={constraint:(gt=m)&>.constraint,definition:y,constraint_type:rn&&`${Gt.toLowerCase()} ${rn.toLowerCase()}`||Gt.toLowerCase(),keyword:gt&>.keyword,index_type:f,index:xn,resource:"constraint",index_options:S},b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r);var gt,Gt,rn,xn,f,y,S;return b})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr;(m=Au())===r&&(m=null),m!==r&&Hr()!==r?(t.substr(a,11).toLowerCase()==="foreign key"?(x=t.substr(a,11),a+=11):(x=r,nt===0&&Ht(sc)),x!==r&&Hr()!==r?((tr=xe())===r&&(tr=null),tr!==r&&Hr()!==r&&(Cr=wi())!==r&&Hr()!==r?((gr=da())===r&&(gr=null),gr===r?(a=b,b=r):(an=b,Rt=x,gt=tr,Gt=Cr,rn=gr,m={constraint:(Yr=m)&&Yr.constraint,definition:Gt,constraint_type:Rt,keyword:Yr&&Yr.keyword,index:gt,resource:"constraint",reference_definition:rn},b=m)):(a=b,b=r)):(a=b,b=r)):(a=b,b=r);var Yr,Rt,gt,Gt,rn;return b})())===r&&(i=la()),i}function Au(){var i,b,m;return i=a,(b=_u())!==r&&Hr()!==r?((m=js())===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(x,tr){return{keyword:x.toLowerCase(),constraint:tr}})(b,m))):(a=i,i=r),i}function la(){var i,b,m,x,tr,Cr,gr;return i=a,(b=Au())===r&&(b=null),b!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="check"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(Ps)),m!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(x=gn())!==r&&Hr()!==r&&Wr()!==r?(an=i,Cr=m,gr=x,i=b={constraint:(tr=b)&&tr.constraint,definition:[gr],constraint_type:Cr.toLowerCase(),keyword:tr&&tr.keyword,resource:"constraint"}):(a=i,i=r)):(a=i,i=r),i}function da(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt;return i=a,(b=ho())!==r&&Hr()!==r&&(m=qr())!==r&&Hr()!==r&&(x=wi())!==r&&Hr()!==r?(t.substr(a,10).toLowerCase()==="match full"?(tr=t.substr(a,10),a+=10):(tr=r,nt===0&&Ht(Y0)),tr===r&&(t.substr(a,13).toLowerCase()==="match partial"?(tr=t.substr(a,13),a+=13):(tr=r,nt===0&&Ht(N0)),tr===r&&(t.substr(a,12).toLowerCase()==="match simple"?(tr=t.substr(a,12),a+=12):(tr=r,nt===0&&Ht(ov)))),tr===r&&(tr=null),tr!==r&&Hr()!==r?((Cr=Ia())===r&&(Cr=null),Cr!==r&&Hr()!==r?((gr=Ia())===r&&(gr=null),gr===r?(a=i,i=r):(an=i,Yr=tr,Rt=Cr,gt=gr,i=b={definition:x,table:[m],keyword:b.toLowerCase(),match:Yr&&Yr.toLowerCase(),on_action:[Rt,gt].filter(Gt=>Gt)})):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,(b=Ia())!==r&&(an=i,b={on_action:[b]}),i=b),i}function Ia(){var i,b,m,x;return i=a,Xo()!==r&&Hr()!==r?((b=Si())===r&&(b=Yf()),b!==r&&Hr()!==r&&(m=(function(){var tr=a,Cr,gr;return(Cr=An())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r?((gr=Nr())===r&&(gr=null),gr!==r&&Hr()!==r&&Wr()!==r?(an=tr,tr=Cr={type:"function",name:{name:[{type:"origin",value:Cr}]},args:gr}):(a=tr,tr=r)):(a=tr,tr=r),tr===r&&(tr=a,t.substr(a,8).toLowerCase()==="restrict"?(Cr=t.substr(a,8),a+=8):(Cr=r,nt===0&&Ht(ff)),Cr===r&&(t.substr(a,7).toLowerCase()==="cascade"?(Cr=t.substr(a,7),a+=7):(Cr=r,nt===0&&Ht(Rl)),Cr===r&&(t.substr(a,8).toLowerCase()==="set null"?(Cr=t.substr(a,8),a+=8):(Cr=r,nt===0&&Ht(Fb)),Cr===r&&(t.substr(a,9).toLowerCase()==="no action"?(Cr=t.substr(a,9),a+=9):(Cr=r,nt===0&&Ht(e0)),Cr===r&&(t.substr(a,11).toLowerCase()==="set default"?(Cr=t.substr(a,11),a+=11):(Cr=r,nt===0&&Ht(Cb)),Cr===r&&(Cr=An()))))),Cr!==r&&(an=tr,Cr={type:"origin",value:Cr.toLowerCase()}),tr=Cr),tr})())!==r?(an=i,x=m,i={type:"on "+b[0].toLowerCase(),value:x}):(a=i,i=r)):(a=i,i=r),i}function Wt(){var i,b,m,x,tr,Cr,gr;return i=a,(b=_c())===r&&(b=Si())===r&&(b=wn()),b!==r&&(an=i,gr=b,b={keyword:Array.isArray(gr)?gr[0].toLowerCase():gr.toLowerCase()}),(i=b)===r&&(i=a,(b=Yf())!==r&&Hr()!==r?(m=a,t.substr(a,2).toLowerCase()==="of"?(x=t.substr(a,2),a+=2):(x=r,nt===0&&Ht(Zf)),x!==r&&(tr=Hr())!==r&&(Cr=cn())!==r?m=x=[x,tr,Cr]:(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(Yr,Rt){return{keyword:Yr&&Yr[0]&&Yr[0].toLowerCase(),args:Rt&&{keyword:Rt[0],columns:Rt[2]}||null}})(b,m))):(a=i,i=r)),i}function ta(){var i,b,m;return i=a,t.substr(a,9).toLowerCase()==="character"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(yb)),b!==r&&Hr()!==r?(t.substr(a,3).toLowerCase()==="set"?(m=t.substr(a,3),a+=3):(m=r,nt===0&&Ht(hb)),m===r?(a=i,i=r):(an=i,i=b="CHARACTER SET")):(a=i,i=r),i}function li(){var i,b,m,x,tr,Cr,gr,Yr,Rt;return i=a,(b=Rf())===r&&(b=null),b!==r&&Hr()!==r?((m=ta())===r&&(t.substr(a,7).toLowerCase()==="charset"?(m=t.substr(a,7),a+=7):(m=r,nt===0&&Ht(Kv)),m===r&&(t.substr(a,7).toLowerCase()==="collate"?(m=t.substr(a,7),a+=7):(m=r,nt===0&&Ht(Gc)))),m!==r&&Hr()!==r?((x=jr())===r&&(x=null),x!==r&&Hr()!==r&&(tr=Cs())!==r?(an=i,gr=m,Yr=x,Rt=tr,i=b={keyword:(Cr=b)&&`${Cr[0].toLowerCase()} ${gr.toLowerCase()}`||gr.toLowerCase(),symbol:Yr,value:Rt}):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i}function ea(){var i,b,m,x,tr,Cr,gr,Yr,Rt;return i=a,t.substr(a,14).toLowerCase()==="auto_increment"?(b=t.substr(a,14),a+=14):(b=r,nt===0&&Ht(n0)),b===r&&(t.substr(a,14).toLowerCase()==="avg_row_length"?(b=t.substr(a,14),a+=14):(b=r,nt===0&&Ht(_v)),b===r&&(t.substr(a,14).toLowerCase()==="key_block_size"?(b=t.substr(a,14),a+=14):(b=r,nt===0&&Ht(kf)),b===r&&(t.substr(a,8).toLowerCase()==="max_rows"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(vf)),b===r&&(t.substr(a,8).toLowerCase()==="min_rows"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(ki)),b===r&&(t.substr(a,18).toLowerCase()==="stats_sample_pages"?(b=t.substr(a,18),a+=18):(b=r,nt===0&&Ht(Hl))))))),b!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r&&(x=Xi())!==r?(an=i,Yr=m,Rt=x,i=b={keyword:b.toLowerCase(),symbol:Yr,value:Rt.value}):(a=i,i=r)):(a=i,i=r),i===r&&(i=li())===r&&(i=a,(b=Me())===r&&(t.substr(a,10).toLowerCase()==="connection"?(b=t.substr(a,10),a+=10):(b=r,nt===0&&Ht(Eb))),b!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r&&(x=fl())!==r?(an=i,i=b=(function(gt,Gt,rn){return{keyword:gt.toLowerCase(),symbol:Gt,value:`'${rn.value}'`}})(b,m,x)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,11).toLowerCase()==="compression"?(b=t.substr(a,11),a+=11):(b=r,nt===0&&Ht(Bb)),b!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r?(x=a,t.charCodeAt(a)===39?(tr="'",a++):(tr=r,nt===0&&Ht(pa)),tr===r?(a=x,x=r):(t.substr(a,4).toLowerCase()==="zlib"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(wl)),Cr===r&&(t.substr(a,3).toLowerCase()==="lz4"?(Cr=t.substr(a,3),a+=3):(Cr=r,nt===0&&Ht(Nl)),Cr===r&&(t.substr(a,4).toLowerCase()==="none"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(Qa)))),Cr===r?(a=x,x=r):(t.charCodeAt(a)===39?(gr="'",a++):(gr=r,nt===0&&Ht(pa)),gr===r?(a=x,x=r):x=tr=[tr,Cr,gr])),x===r?(a=i,i=r):(an=i,i=b=(function(gt,Gt,rn){return{keyword:gt.toLowerCase(),symbol:Gt,value:rn.join("").toUpperCase()}})(b,m,x))):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,6).toLowerCase()==="engine"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Sv)),b!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r&&(x=fo())!==r?(an=i,i=b=(function(gt,Gt,rn){return{keyword:gt.toLowerCase(),symbol:Gt,value:rn.toUpperCase()}})(b,m,x)):(a=i,i=r)):(a=i,i=r)))),i}function Ml(){var i,b,m;return i=a,(b=tc())===r&&(b=_c())===r&&(b=Yf())===r&&(b=Si())===r&&(b=wn())===r&&(b=ho())===r&&(t.substr(a,7).toLowerCase()==="trigger"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(_0))),b!==r&&(an=i,m=b,b={type:"origin",value:Array.isArray(m)?m[0]:m}),i=b}function Le(){var i,b,m,x;return i=a,cr()===r?(a=i,i=r):(b=a,(m=Hr())===r?(a=b,b=r):(t.substr(a,10).toLowerCase()==="privileges"?(x=t.substr(a,10),a+=10):(x=r,nt===0&&Ht(ft)),x===r?(a=b,b=r):b=m=[m,x]),b===r&&(b=null),b===r?(a=i,i=r):(an=i,i={type:"origin",value:b?"all privileges":"all"})),i}function rl(){var i;return(i=Ml())===r&&(i=(function(){var b,m;return b=a,t.substr(a,5).toLowerCase()==="usage"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(Df)),m===r&&(m=tc())===r&&(m=Yf()),m!==r&&(an=b,m=mb(m)),b=m})())===r&&(i=(function(){var b,m;return b=a,(m=sf())===r&&(t.substr(a,7).toLowerCase()==="connect"?(m=t.substr(a,7),a+=7):(m=r,nt===0&&Ht(i0)),m===r&&(m=mv())===r&&(m=pc())),m!==r&&(an=b,m=mb(m)),b=m})())===r&&(i=(function(){var b,m;return b=a,t.substr(a,5).toLowerCase()==="usage"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(Df)),m!==r&&(an=b,m=tn(m)),(b=m)===r&&(b=Le()),b})())===r&&(i=(function(){var b,m;return b=a,t.substr(a,7).toLowerCase()==="execute"?(m=t.substr(a,7),a+=7):(m=r,nt===0&&Ht(xi)),m!==r&&(an=b,m=tn(m)),(b=m)===r&&(b=Le()),b})()),i}function xu(){var i,b,m,x,tr,Cr,gr,Yr;return i=a,(b=rl())!==r&&Hr()!==r?(m=a,(x=Ko())!==r&&(tr=Hr())!==r&&(Cr=cn())!==r&&(gr=Hr())!==r&&(Yr=Wr())!==r?m=x=[x,tr,Cr,gr,Yr]:(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt){return{priv:Rt,columns:gt&>[2]}})(b,m))):(a=i,i=r),i}function si(){var i,b,m,x,tr;return i=a,b=a,(m=js())!==r&&(x=Hr())!==r&&(tr=Mo())!==r?b=m=[m,x,tr]:(a=b,b=r),b===r&&(b=null),b!==r&&(m=Hr())!==r?((x=js())===r&&(x=Gu()),x===r?(a=i,i=r):(an=i,i=b=(function(Cr,gr){return{prefix:Cr&&Cr[0],name:gr}})(b,x))):(a=i,i=r),i}function Ni(){var i,b,m,x;return i=a,(b=Xu())===r&&(b=null),b!==r&&Hr()!==r&&(m=js())!==r?(an=i,x=m,i=b={name:{type:"origin",value:b?`${group} ${x}`:x}}):(a=i,i=r),i===r&&(i=a,t.substr(a,6).toLowerCase()==="public"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(uu)),b===r&&(b=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,12).toLowerCase()==="current_role"?(Cr=t.substr(a,12),a+=12):(Cr=r,nt===0&&Ht(Pc)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):(an=tr,tr=Cr="CURRENT_ROLE")),tr})())===r&&(b=Mn())===r&&(b=as()),b!==r&&(an=i,b=(function(tr){return{name:{type:"origin",value:tr}}})(b)),i=b),i}function tl(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=Ni())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Ni())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Ni())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function Dl(){var i,b,m,x,tr,Cr,gr,Yr;return i=a,t.substr(a,5).toLowerCase()==="grant"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(ko)),b!==r&&(an=i,b={type:"grant"}),(i=b)===r&&(i=a,t.substr(a,6).toLowerCase()==="revoke"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Iu)),b!==r&&Hr()!==r?(m=a,t.substr(a,5).toLowerCase()==="grant"?(x=t.substr(a,5),a+=5):(x=r,nt===0&&Ht(ko)),x!==r&&(tr=Hr())!==r?(t.substr(a,6).toLowerCase()==="option"?(Cr=t.substr(a,6),a+=6):(Cr=r,nt===0&&Ht(yu)),Cr!==r&&(gr=Hr())!==r?(t.substr(a,3).toLowerCase()==="for"?(Yr=t.substr(a,3),a+=3):(Yr=r,nt===0&&Ht(u0)),Yr===r?(a=m,m=r):m=x=[x,tr,Cr,gr,Yr]):(a=m,m=r)):(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b={type:"revoke",grant_option_for:m&&{type:"origin",value:"grant option for"}})):(a=i,i=r)),i}function $a(){var i,b,m,x,tr,Cr;return i=a,t.substr(a,6).toLowerCase()==="elseif"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(mu)),b!==r&&Hr()!==r&&(m=fn())!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="then"?(x=t.substr(a,4),a+=4):(x=r,nt===0&&Ht(Ju)),x!==r&&Hr()!==r&&(tr=Or())!==r&&Hr()!==r?((Cr=Fu())===r&&(Cr=null),Cr===r?(a=i,i=r):(an=i,i=b={type:"elseif",boolean_expr:m,then:tr,semicolon:Cr})):(a=i,i=r)):(a=i,i=r),i}function bc(){var i,b,m,x,tr,Cr,gr;return i=a,(b=tc())!==r&&(m=Hr())!==r?(t.charCodeAt(a)===59?(x=";",a++):(x=r,nt===0&&Ht($f)),x===r?(a=i,i=r):(an=i,i=b={type:"select"})):(a=i,i=r),i===r&&(i=ur())===r&&(i=a,b=a,t.charCodeAt(a)===40?(m="(",a++):(m=r,nt===0&&Ht(Tb)),m!==r&&(x=Hr())!==r&&(tr=bc())!==r&&(Cr=Hr())!==r?(t.charCodeAt(a)===41?(gr=")",a++):(gr=r,nt===0&&Ht(cp)),gr===r?(a=b,b=r):b=m=[m,x,tr,Cr,gr]):(a=b,b=r),b!==r&&(an=i,b={...b[2],parentheses_symbol:!0}),i=b),i}function Wu(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt;if(i=a,Nf()!==r)if(Hr()!==r)if((b=Zo())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Zo())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Zo())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=Tn(b,m))}else a=i,i=r;else a=i,i=r;else a=i,i=r;if(i===r)if(i=a,Hr()!==r)if(Nf()!==r)if((b=Hr())!==r)if((m=Tv())!==r)if((x=Hr())!==r)if((tr=Zo())!==r){for(Cr=[],gr=a,(Yr=Hr())!==r&&(Rt=Fo())!==r&&(gt=Hr())!==r&&(Gt=Zo())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r);gr!==r;)Cr.push(gr),gr=a,(Yr=Hr())!==r&&(Rt=Fo())!==r&&(gt=Hr())!==r&&(Gt=Zo())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r);Cr===r?(a=i,i=r):(an=i,i=(function(rn,xn){return rn.recursive=!0,Tn(rn,xn)})(tr,Cr))}else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;return i}function Zo(){var i,b,m,x;return i=a,(b=fl())===r&&(b=fo()),b!==r&&Hr()!==r?((m=wi())===r&&(m=null),m!==r&&Hr()!==r&&qo()!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(x=Or())!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b=(function(tr,Cr,gr){return typeof tr=="string"&&(tr={type:"default",value:tr}),{name:tr,stmt:gr.ast,columns:Cr}})(b,m,x)):(a=i,i=r)):(a=i,i=r),i}function wi(){var i,b;return i=a,Ko()!==r&&Hr()!==r&&(b=cn())!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b):(a=i,i=r),i}function j(){var i,b,m;return i=a,(b=Er())!==r&&Hr()!==r&&Xo()!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(m=cn())!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b=(function(x,tr,Cr){return console.lo,{type:x+" ON",columns:Cr}})(b,0,m)):(a=i,i=r),i===r&&(i=a,(b=Er())===r&&(b=null),b!==r&&(an=i,b={type:b}),i=b),i}function ur(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y;return i=a,Hr()===r?(a=i,i=r):((b=Wu())===r&&(b=null),b!==r&&Hr()!==r&&tc()!==r&&pi()!==r?((m=(function(){var S,W,vr,_r,$r,at;if(S=a,(W=Ir())!==r){for(vr=[],_r=a,($r=Hr())!==r&&(at=Ir())!==r?_r=$r=[$r,at]:(a=_r,_r=r);_r!==r;)vr.push(_r),_r=a,($r=Hr())!==r&&(at=Ir())!==r?_r=$r=[$r,at]:(a=_r,_r=r);vr===r?(a=S,S=r):(an=S,W=(function(St,Kt){let sn=[St];for(let Nn=0,Xn=Kt.length;Nn<Xn;++Nn)sn.push(Kt[Nn][1]);return sn})(W,vr),S=W)}else a=S,S=r;return S})())===r&&(m=null),m!==r&&Hr()!==r?((x=j())===r&&(x=null),x!==r&&Hr()!==r&&(tr=s())!==r&&Hr()!==r?((Cr=rs())===r&&(Cr=null),Cr!==r&&Hr()!==r?((gr=vs())===r&&(gr=null),gr!==r&&Hr()!==r?((Yr=rs())===r&&(Yr=null),Yr!==r&&Hr()!==r?((Rt=xt())===r&&(Rt=null),Rt!==r&&Hr()!==r?((gt=(function(){var S=a,W,vr;return(W=Xu())!==r&&Hr()!==r&&ot()!==r&&Hr()!==r&&(vr=Nr())!==r?(an=S,W={columns:vr.value},S=W):(a=S,S=r),S})())===r&&(gt=null),gt!==r&&Hr()!==r?((Gt=(function(){var S=a,W;return(function(){var vr=a,_r,$r,at;return t.substr(a,6).toLowerCase()==="having"?(_r=t.substr(a,6),a+=6):(_r=r,nt===0&&Ht(Yi)),_r===r?(a=vr,vr=r):($r=a,nt++,at=Ks(),nt--,at===r?$r=void 0:(a=$r,$r=r),$r===r?(a=vr,vr=r):vr=_r=[_r,$r]),vr})()!==r&&Hr()!==r&&(W=gn())!==r?(an=S,S=W):(a=S,S=r),S})())===r&&(Gt=null),Gt!==r&&Hr()!==r?((rn=Is())===r&&(rn=null),rn!==r&&Hr()!==r?((xn=eo())===r&&(xn=null),xn!==r&&Hr()!==r?((f=(function(){var S=a,W;return(function(){var vr=a,_r,$r,at;return t.substr(a,6).toLowerCase()==="window"?(_r=t.substr(a,6),a+=6):(_r=r,nt===0&&Ht(Ll)),_r===r?(a=vr,vr=r):($r=a,nt++,at=Ks(),nt--,at===r?$r=void 0:(a=$r,$r=r),$r===r?(a=vr,vr=r):vr=_r=[_r,$r]),vr})()!==r&&Hr()!==r&&(W=(function(){var vr,_r,$r,at,St,Kt,sn,Nn;if(vr=a,(_r=mn())!==r){for($r=[],at=a,(St=Hr())!==r&&(Kt=Fo())!==r&&(sn=Hr())!==r&&(Nn=mn())!==r?at=St=[St,Kt,sn,Nn]:(a=at,at=r);at!==r;)$r.push(at),at=a,(St=Hr())!==r&&(Kt=Fo())!==r&&(sn=Hr())!==r&&(Nn=mn())!==r?at=St=[St,Kt,sn,Nn]:(a=at,at=r);$r===r?(a=vr,vr=r):(an=vr,_r=Tn(_r,$r),vr=_r)}else a=vr,vr=r;return vr})())!==r?(an=S,S={keyword:"window",type:"window",expr:W}):(a=S,S=r),S})())===r&&(f=null),f!==r&&Hr()!==r?((y=rs())===r&&(y=null),y===r?(a=i,i=r):(an=i,i=(function(S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts){if($r&&St||$r&&Ts||St&&Ts||$r&&St&&Ts)throw Error("A given SQL statement can contain at most one INTO clause");return at&&at.forEach(Ms=>Ms.table&&X.add(`select::${[Ms.db,Ms.schema].filter(Boolean).join(".")||null}::${Ms.table}`)),{with:S,type:"select",options:W,distinct:vr,columns:_r,into:{...$r||St||Ts||{},position:($r?"column":St&&"from")||Ts&&"end"},from:at,where:Kt,groupby:sn,having:Nn,orderby:Xn,limit:Gn,window:fs}})(b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y))):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)),i}function Ir(){var i,b;return i=a,(b=(function(){var m;return t.substr(a,19).toLowerCase()==="sql_calc_found_rows"?(m=t.substr(a,19),a+=19):(m=r,nt===0&&Ht(ia)),m})())===r&&((b=(function(){var m;return t.substr(a,9).toLowerCase()==="sql_cache"?(m=t.substr(a,9),a+=9):(m=r,nt===0&&Ht(ve)),m})())===r&&(b=(function(){var m;return t.substr(a,12).toLowerCase()==="sql_no_cache"?(m=t.substr(a,12),a+=12):(m=r,nt===0&&Ht(Jt)),m})()),b===r&&(b=(function(){var m;return t.substr(a,14).toLowerCase()==="sql_big_result"?(m=t.substr(a,14),a+=14):(m=r,nt===0&&Ht(E0)),m})())===r&&(b=(function(){var m;return t.substr(a,16).toLowerCase()==="sql_small_result"?(m=t.substr(a,16),a+=16):(m=r,nt===0&&Ht(nf)),m})())===r&&(b=(function(){var m;return t.substr(a,17).toLowerCase()==="sql_buffer_result"?(m=t.substr(a,17),a+=17):(m=r,nt===0&&Ht(kl)),m})())),b!==r&&(an=i,b=b),i=b}function s(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=cr())===r&&(b=a,(m=Gu())===r?(a=b,b=r):(x=a,nt++,tr=Ks(),nt--,tr===r?x=void 0:(a=x,x=r),x===r?(a=b,b=r):b=m=[m,x]),b===r&&(b=Gu())),b!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=bn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=bn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt){lr.add("select::null::(.*)");let Gt={expr:{type:"column_ref",table:null,column:"*"},as:null};return gt&>.length>0?Tn(Gt,gt):[Gt]})(0,m))}else a=i,i=r;if(i===r)if(i=a,(b=bn())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=bn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=bn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function er(){var i,b;return i=a,Aa()!==r&&Hr()!==r?((b=Xi())===r&&(b=fl()),b!==r&&Hr()!==r&&Lc()!==r?(an=i,i={brackets:!0,index:b}):(a=i,i=r)):(a=i,i=r),i}function Lt(){var i,b,m,x,tr,Cr;if(i=a,(b=er())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=er())!==r?x=tr=[tr,Cr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=er())!==r?x=tr=[tr,Cr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m,1))}else a=i,i=r;return i}function mt(){var i,b,m,x,tr;return i=a,(b=(function(){var Cr,gr,Yr,Rt,gt,Gt,rn,xn;if(Cr=a,(gr=fn())!==r){for(Yr=[],Rt=a,(gt=Hr())===r?(a=Rt,Rt=r):((Gt=Ns())===r&&(Gt=Fs())===r&&(Gt=Zu()),Gt!==r&&(rn=Hr())!==r&&(xn=fn())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r));Rt!==r;)Yr.push(Rt),Rt=a,(gt=Hr())===r?(a=Rt,Rt=r):((Gt=Ns())===r&&(Gt=Fs())===r&&(Gt=Zu()),Gt!==r&&(rn=Hr())!==r&&(xn=fn())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r));Yr===r?(a=Cr,Cr=r):(an=Cr,gr=(function(f,y){if(f.ast,!y||y.length===0)return f;let S=y.length,W=y[S-1][3];for(let vr=S-1;vr>=0;vr--){let _r=vr===0?f:y[vr-1][3];W=Vt(y[vr][1],_r,W)}return W})(gr,Yr),Cr=gr)}else a=Cr,Cr=r;return Cr})())!==r&&Hr()!==r?((m=Lt())===r&&(m=null),m===r?(a=i,i=r):(an=i,x=b,(tr=m)&&(x.array_index=tr),i=b=x)):(a=i,i=r),i}function bn(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn;if(i=a,(b=Cn())!==r&&(an=i,b=(function(f){return{expr:f,as:null}})(b)),(i=b)===r){if(i=a,(b=mt())!==r)if((m=Hr())!==r)if((x=Ev())!==r)if((tr=Hr())!==r){for(Cr=[],gr=a,(Yr=Hr())===r?(a=gr,gr=r):((Rt=mr())===r&&(Rt=pt()),Rt!==r&&(gt=Hr())!==r&&(Gt=mt())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r));gr!==r;)Cr.push(gr),gr=a,(Yr=Hr())===r?(a=gr,gr=r):((Rt=mr())===r&&(Rt=pt()),Rt!==r&&(gt=Hr())!==r&&(Gt=mt())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r));Cr!==r&&(gr=Hr())!==r?((Yr=Zr())===r&&(Yr=null),Yr===r?(a=i,i=r):(an=i,i=b=(function(f,y,S,W){return{...y,as:W,type:"cast",expr:f,tail:S&&S[0]&&{operator:S[0][1],expr:S[0][3]}}})(b,x,Cr,Yr))):(a=i,i=r)}else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;i===r&&(i=a,(b=js())!==r&&(m=Hr())!==r&&(x=Mo())!==r?(tr=a,(Cr=js())!==r&&(gr=Hr())!==r&&(Yr=Mo())!==r?tr=Cr=[Cr,gr,Yr]:(a=tr,tr=r),tr===r&&(tr=null),tr!==r&&(Cr=Hr())!==r&&(gr=Gu())!==r?(an=i,i=b=(function(f,y){let S=y&&y[0],W;return S&&(W=f,f=S),lr.add(`select::${f}::(.*)`),{expr:{type:"column_ref",table:f,schema:W,column:"*"},as:null}})(b,tr)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,b=a,(m=js())!==r&&(x=Hr())!==r&&(tr=Mo())!==r?b=m=[m,x,tr]:(a=b,b=r),b===r&&(b=null),b!==r&&(m=Hr())!==r&&(x=Gu())!==r?(an=i,i=b=(function(f){let y=f&&f[0]||null;return lr.add(`select::${y}::(.*)`),{expr:{type:"column_ref",table:y,column:"*"},as:null}})(b)):(a=i,i=r),i===r&&(i=a,(b=Je())!==r&&(m=Hr())!==r?((x=Mo())===r&&(x=null),x===r?(a=i,i=r):(an=a,(tr=(tr=(function(f,y){if(y)return!0})(0,x))?r:void 0)!==r&&(Cr=Hr())!==r?((gr=Zr())===r&&(gr=null),gr===r?(a=i,i=r):(an=i,i=b=(function(f,y,S){return lr.add("select::null::"+f.value),{type:"expr",expr:{type:"column_ref",table:null,column:{expr:f}},as:S}})(b,0,gr))):(a=i,i=r))):(a=i,i=r),i===r&&(i=a,(b=mt())!==r&&(m=Hr())!==r?((x=Zr())===r&&(x=null),x===r?(a=i,i=r):(an=i,xn=x,(rn=b).type!=="double_quote_string"&&rn.type!=="single_quote_string"||lr.add("select::null::"+rn.value),i=b={type:"expr",expr:rn,as:xn})):(a=i,i=r)))))}return i}function ir(){var i,b,m;return i=a,(b=qo())===r&&(b=null),b!==r&&Hr()!==r&&(m=bo())!==r?(an=i,i=b=m):(a=i,i=r),i}function Zr(){var i,b,m;return i=a,(b=qo())!==r&&Hr()!==r&&(m=bo())!==r?(an=i,i=b=m):(a=i,i=r),i===r&&(i=a,(b=qo())===r&&(b=null),b!==r&&Hr()!==r&&(m=bo())!==r?(an=i,i=b=m):(a=i,i=r)),i}function rs(){var i,b,m;return i=a,of()!==r&&Hr()!==r&&(b=(function(){var x,tr,Cr,gr,Yr,Rt,gt,Gt;if(x=a,(tr=ws())!==r){for(Cr=[],gr=a,(Yr=Hr())!==r&&(Rt=Fo())!==r&&(gt=Hr())!==r&&(Gt=ws())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r);gr!==r;)Cr.push(gr),gr=a,(Yr=Hr())!==r&&(Rt=Fo())!==r&&(gt=Hr())!==r&&(Gt=ws())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r);Cr===r?(a=x,x=r):(an=x,tr=Tn(tr,Cr),x=tr)}else a=x,x=r;return x})())!==r?(an=i,i={keyword:"var",type:"into",expr:b}):(a=i,i=r),i===r&&(i=a,of()!==r&&Hr()!==r?(t.substr(a,7).toLowerCase()==="outfile"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(q0)),b===r&&(t.substr(a,8).toLowerCase()==="dumpfile"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(df))),b===r&&(b=null),b!==r&&Hr()!==r?((m=fl())===r&&(m=js()),m===r?(a=i,i=r):(an=i,i={keyword:b,type:"into",expr:m})):(a=i,i=r)):(a=i,i=r)),i}function vs(){var i,b;return i=a,Xc()!==r&&Hr()!==r&&(b=A())!==r?(an=i,i=b):(a=i,i=r),i}function Ds(){var i,b,m;return i=a,(b=qr())!==r&&Hr()!==r&&ga()!==r&&Hr()!==r&&(m=qr())!==r?(an=i,i=b=[b,m]):(a=i,i=r),i}function ut(){var i,b;return i=a,va()!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="btree"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(f0)),b===r&&(t.substr(a,4).toLowerCase()==="hash"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(b0)),b===r&&(t.substr(a,4).toLowerCase()==="gist"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Pf)),b===r&&(t.substr(a,3).toLowerCase()==="gin"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(Sp))))),b===r?(a=i,i=r):(an=i,i={keyword:"using",type:b.toLowerCase()})):(a=i,i=r),i}function De(){var i,b,m,x,tr,Cr;if(i=a,(b=Qo())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Qo())!==r?x=tr=[tr,Cr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Qo())!==r?x=tr=[tr,Cr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=(function(gr,Yr){let Rt=[gr];for(let gt=0;gt<Yr.length;gt++)Rt.push(Yr[gt][1]);return Rt})(b,m))}else a=i,i=r;return i}function Qo(){var i,b,m,x,tr,Cr;return i=a,(b=(function(){var gr=a,Yr,Rt,gt;return t.substr(a,14).toLowerCase()==="key_block_size"?(Yr=t.substr(a,14),a+=14):(Yr=r,nt===0&&Ht(kf)),Yr===r?(a=gr,gr=r):(Rt=a,nt++,gt=Ks(),nt--,gt===r?Rt=void 0:(a=Rt,Rt=r),Rt===r?(a=gr,gr=r):(an=gr,gr=Yr="KEY_BLOCK_SIZE")),gr})())!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r&&(x=Xi())!==r?(an=i,tr=m,Cr=x,i=b={type:b.toLowerCase(),symbol:tr,expr:Cr}):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,(b=fo())!==r&&Hr()!==r&&(m=jr())!==r&&Hr()!==r?((x=Xi())===r&&(x=js()),x===r?(a=i,i=r):(an=i,i=b=(function(gr,Yr,Rt){return{type:gr.toLowerCase(),symbol:Yr,expr:typeof Rt=="string"&&{type:"origin",value:Rt}||Rt}})(b,m,x))):(a=i,i=r),i===r&&(i=ut())===r&&(i=a,t.substr(a,4).toLowerCase()==="with"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(kv)),b!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="parser"?(m=t.substr(a,6),a+=6):(m=r,nt===0&&Ht(Op)),m!==r&&Hr()!==r&&(x=fo())!==r?(an=i,i=b={type:"with parser",expr:x}):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,7).toLowerCase()==="visible"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(fp)),b===r&&(t.substr(a,9).toLowerCase()==="invisible"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(oc))),b!==r&&(an=i,b=(function(gr){return{type:gr.toLowerCase(),expr:gr.toLowerCase()}})(b)),(i=b)===r&&(i=M())))),i}function A(){var i,b,m,x;if(i=a,(b=yr())!==r){for(m=[],x=nr();x!==r;)m.push(x),x=nr();m===r?(a=i,i=r):(an=i,i=b=uc(b,m))}else a=i,i=r;return i}function nr(){var i,b,m;return i=a,Hr()!==r&&(b=Fo())!==r&&Hr()!==r&&(m=yr())!==r?(an=i,i=m):(a=i,i=r),i===r&&(i=a,Hr()!==r&&(b=(function(){var x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f;if(x=a,(tr=Ar())!==r)if(Hr()!==r)if((Cr=yr())!==r)if(Hr()!==r)if((gr=va())!==r)if(Hr()!==r)if(Ko()!==r)if(Hr()!==r)if((Yr=Cs())!==r){for(Rt=[],gt=a,(Gt=Hr())!==r&&(rn=Fo())!==r&&(xn=Hr())!==r&&(f=Cs())!==r?gt=Gt=[Gt,rn,xn,f]:(a=gt,gt=r);gt!==r;)Rt.push(gt),gt=a,(Gt=Hr())!==r&&(rn=Fo())!==r&&(xn=Hr())!==r&&(f=Cs())!==r?gt=Gt=[Gt,rn,xn,f]:(a=gt,gt=r);Rt!==r&&(gt=Hr())!==r&&(Gt=Wr())!==r?(an=x,y=tr,W=Yr,vr=Rt,(S=Cr).join=y,S.using=Tn(W,vr),x=tr=S):(a=x,x=r)}else a=x,x=r;else a=x,x=r;else a=x,x=r;else a=x,x=r;else a=x,x=r;else a=x,x=r;else a=x,x=r;else a=x,x=r;else a=x,x=r;var y,S,W,vr;return x===r&&(x=a,(tr=Ar())!==r&&Hr()!==r&&(Cr=yr())!==r&&Hr()!==r?((gr=pr())===r&&(gr=null),gr===r?(a=x,x=r):(an=x,tr=(function(_r,$r,at){return $r.join=_r,$r.on=at,$r})(tr,Cr,gr),x=tr)):(a=x,x=r),x===r&&(x=a,(tr=Ar())===r&&(tr=dr()),tr!==r&&Hr()!==r&&(Cr=Ko())!==r&&Hr()!==r?((gr=It())===r&&(gr=A()),gr!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?((Yr=Zr())===r&&(Yr=null),Yr!==r&&(Rt=Hr())!==r?((gt=pr())===r&&(gt=null),gt===r?(a=x,x=r):(an=x,tr=(function(_r,$r,at,St){return Array.isArray($r)&&($r={type:"tables",expr:$r}),$r.parentheses=!0,{expr:$r,as:at,join:_r,on:St}})(tr,gr,Yr,gt),x=tr)):(a=x,x=r)):(a=x,x=r)):(a=x,x=r))),x})())!==r?(an=i,i=b):(a=i,i=r)),i}function yr(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn;return i=a,(b=(function(){var xn;return t.substr(a,4).toLowerCase()==="dual"?(xn=t.substr(a,4),a+=4):(xn=r,nt===0&&Ht(l)),xn})())!==r&&(an=i,b={type:"dual"}),(i=b)===r&&(i=a,(b=F())!==r&&Hr()!==r?((m=ir())===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b={expr:b,as:m})):(a=i,i=r),i===r&&(i=a,t.substr(a,7).toLowerCase()==="lateral"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(qb)),b===r&&(b=null),b!==r&&Hr()!==r&&(m=Ko())!==r&&Hr()!==r?((x=It())===r&&(x=F()),x!==r&&Hr()!==r&&(tr=Wr())!==r&&(Cr=Hr())!==r?((gr=ir())===r&&(gr=null),gr===r?(a=i,i=r):(an=i,i=b=(function(xn,f,y){return f.parentheses=!0,{prefix:xn,expr:f,as:y}})(b,x,gr))):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,7).toLowerCase()==="lateral"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(qb)),b===r&&(b=null),b!==r&&Hr()!==r&&(m=Ko())!==r&&Hr()!==r&&(x=A())!==r&&Hr()!==r&&(tr=Wr())!==r&&(Cr=Hr())!==r?((gr=ir())===r&&(gr=null),gr===r?(a=i,i=r):(an=i,i=b=(function(xn,f,y){return{prefix:xn,expr:f={type:"tables",expr:f,parentheses:!0},as:y}})(b,x,gr))):(a=i,i=r),i===r&&(i=a,t.substr(a,7).toLowerCase()==="lateral"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(qb)),b===r&&(b=null),b!==r&&Hr()!==r&&(m=Rc())!==r&&Hr()!==r?((x=Zr())===r&&(x=null),x===r?(a=i,i=r):(an=i,i=b=(function(xn,f,y){return{prefix:xn,type:"expr",expr:f,as:y}})(b,m,x))):(a=i,i=r),i===r&&(i=a,(b=qr())!==r&&Hr()!==r?(t.substr(a,11).toLowerCase()==="tablesample"?(m=t.substr(a,11),a+=11):(m=r,nt===0&&Ht(Gf)),m!==r&&Hr()!==r&&(x=Rc())!==r&&Hr()!==r?(tr=a,t.substr(a,10).toLowerCase()==="repeatable"?(Cr=t.substr(a,10),a+=10):(Cr=r,nt===0&&Ht(zv)),Cr!==r&&(gr=Hr())!==r&&(Yr=Ko())!==r&&(Rt=Hr())!==r&&(gt=Xi())!==r&&(Gt=Hr())!==r&&(rn=Wr())!==r?tr=Cr=[Cr,gr,Yr,Rt,gt,Gt,rn]:(a=tr,tr=r),tr===r&&(tr=null),tr!==r&&(Cr=Hr())!==r?((gr=Zr())===r&&(gr=null),gr===r?(a=i,i=r):(an=i,i=b=(function(xn,f,y,S){return{...xn,as:S,tablesample:{expr:f,repeatable:y&&y[4]}}})(b,x,tr,gr))):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,(b=qr())!==r&&Hr()!==r?((m=Zr())===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(xn,f){return xn.type==="var"?(xn.as=f,xn):{...xn,as:f}})(b,m))):(a=i,i=r))))))),i}function Ar(){var i,b,m,x;return i=a,(b=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,4).toLowerCase()==="left"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(Ft)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):tr=Cr=[Cr,gr]),tr})())!==r&&(m=Hr())!==r?((x=m0())===r&&(x=null),x!==r&&Hr()!==r&&$l()!==r?(an=i,i=b="LEFT JOIN"):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,(b=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,5).toLowerCase()==="right"?(Cr=t.substr(a,5),a+=5):(Cr=r,nt===0&&Ht(xs)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):tr=Cr=[Cr,gr]),tr})())!==r&&(m=Hr())!==r?((x=m0())===r&&(x=null),x!==r&&Hr()!==r&&$l()!==r?(an=i,i=b="RIGHT JOIN"):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,(b=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,4).toLowerCase()==="full"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(Li)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):tr=Cr=[Cr,gr]),tr})())!==r&&(m=Hr())!==r?((x=m0())===r&&(x=null),x!==r&&Hr()!==r&&$l()!==r?(an=i,i=b="FULL JOIN"):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,t.substr(a,5).toLowerCase()==="cross"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(Mv)),b!==r&&(m=Hr())!==r&&(x=$l())!==r?(an=i,i=b="CROSS JOIN"):(a=i,i=r),i===r&&(i=a,b=a,(m=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,5).toLowerCase()==="inner"?(Cr=t.substr(a,5),a+=5):(Cr=r,nt===0&&Ht(Ta)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):tr=Cr=[Cr,gr]),tr})())!==r&&(x=Hr())!==r?b=m=[m,x]:(a=b,b=r),b===r&&(b=null),b!==r&&(m=$l())!==r?(an=i,i=b="INNER JOIN"):(a=i,i=r))))),i}function qr(){var i,b,m,x,tr,Cr,gr,Yr,Rt;return i=a,(b=js())===r?(a=i,i=r):(m=a,(x=Hr())!==r&&(tr=Mo())!==r&&(Cr=Hr())!==r?((gr=js())===r&&(gr=Gu()),gr===r?(a=m,m=r):m=x=[x,tr,Cr,gr]):(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(x=a,(tr=Hr())!==r&&(Cr=Mo())!==r&&(gr=Hr())!==r?((Yr=js())===r&&(Yr=Gu()),Yr===r?(a=x,x=r):x=tr=[tr,Cr,gr,Yr]):(a=x,x=r),x===r&&(x=null),x===r?(a=i,i=r):(an=i,i=b=(function(gt,Gt,rn){let xn={db:null,table:gt};return rn===null?(Gt!==null&&(xn.db=gt,xn.table=Gt[3]),xn):(xn.db=gt,xn.schema=Gt[3],xn.table=rn[3],xn)})(b,m,x)))),i===r&&(i=a,(b=ws())!==r&&(an=i,(Rt=b).db=null,Rt.table=Rt.name,b=Rt),i=b),i}function bt(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=fn())!==r){for(m=[],x=a,(tr=Hr())===r?(a=x,x=r):((Cr=Ns())===r&&(Cr=Fs()),Cr!==r&&(gr=Hr())!==r&&(Yr=fn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r));x!==r;)m.push(x),x=a,(tr=Hr())===r?(a=x,x=r):((Cr=Ns())===r&&(Cr=Fs()),Cr!==r&&(gr=Hr())!==r&&(Yr=fn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r));m===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt){let Gt=gt.length,rn=Rt;for(let xn=0;xn<Gt;++xn)rn=Vt(gt[xn][1],rn,gt[xn][3]);return rn})(b,m))}else a=i,i=r;return i}function pr(){var i,b;return i=a,Xo()!==r&&Hr()!==r&&(b=gn())!==r?(an=i,i=b):(a=i,i=r),i}function xt(){var i,b;return i=a,(function(){var m=a,x,tr,Cr;return t.substr(a,5).toLowerCase()==="where"?(x=t.substr(a,5),a+=5):(x=r,nt===0&&Ht(Kl)),x===r?(a=m,m=r):(tr=a,nt++,Cr=Ks(),nt--,Cr===r?tr=void 0:(a=tr,tr=r),tr===r?(a=m,m=r):m=x=[x,tr]),m})()!==r&&Hr()!==r&&(b=gn())!==r?(an=i,i=b):(a=i,i=r),i}function cn(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=Hn())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Hn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=Hn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function mn(){var i,b,m;return i=a,(b=fo())!==r&&Hr()!==r&&qo()!==r&&Hr()!==r&&(m=$n())!==r?(an=i,i=b={name:b,as_window_specification:m}):(a=i,i=r),i}function $n(){var i,b;return(i=fo())===r&&(i=a,Ko()!==r&&Hr()!==r?((b=(function(){var m=a,x,tr,Cr;return(x=ne())===r&&(x=null),x!==r&&Hr()!==r?((tr=Is())===r&&(tr=null),tr!==r&&Hr()!==r?((Cr=(function(){var gr=a,Yr,Rt,gt,Gt;return(Yr=Vr())!==r&&Hr()!==r?((Rt=bs())===r&&(Rt=ks()),Rt===r?(a=gr,gr=r):(an=gr,gr=Yr={type:"rows",expr:Rt})):(a=gr,gr=r),gr===r&&(gr=a,(Yr=Vr())!==r&&Hr()!==r&&(Rt=vt())!==r&&Hr()!==r&&(gt=ks())!==r&&Hr()!==r&&Ns()!==r&&Hr()!==r&&(Gt=bs())!==r?(an=gr,Yr=Vt(Rt,{type:"origin",value:"rows"},{type:"expr_list",value:[gt,Gt]}),gr=Yr):(a=gr,gr=r)),gr})())===r&&(Cr=null),Cr===r?(a=m,m=r):(an=m,m=x={name:null,partitionby:x,orderby:tr,window_frame_clause:Cr})):(a=m,m=r)):(a=m,m=r),m})())===r&&(b=null),b!==r&&Hr()!==r&&Wr()!==r?(an=i,i={window_specification:b||{},parentheses:!0}):(a=i,i=r)):(a=i,i=r)),i}function bs(){var i,b,m,x;return i=a,(b=fe())!==r&&Hr()!==r?(t.substr(a,9).toLowerCase()==="following"?(m=t.substr(a,9),a+=9):(m=r,nt===0&&Ht(Zv)),m===r?(a=i,i=r):(an=i,(x=b).value+=" FOLLOWING",i=b=x)):(a=i,i=r),i===r&&(i=Ws()),i}function ks(){var i,b,m,x,tr;return i=a,(b=fe())!==r&&Hr()!==r?(t.substr(a,9).toLowerCase()==="preceding"?(m=t.substr(a,9),a+=9):(m=r,nt===0&&Ht(bp)),m===r&&(t.substr(a,9).toLowerCase()==="following"?(m=t.substr(a,9),a+=9):(m=r,nt===0&&Ht(Zv))),m===r?(a=i,i=r):(an=i,tr=m,(x=b).value+=" "+tr.toUpperCase(),i=b=x)):(a=i,i=r),i===r&&(i=Ws()),i}function Ws(){var i,b,m;return i=a,t.substr(a,7).toLowerCase()==="current"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(Ss)),b!==r&&Hr()!==r?(t.substr(a,3).toLowerCase()==="row"?(m=t.substr(a,3),a+=3):(m=r,nt===0&&Ht(Ui)),m===r?(a=i,i=r):(an=i,i=b={type:"origin",value:"current row"})):(a=i,i=r),i}function fe(){var i,b;return i=a,t.substr(a,9).toLowerCase()==="unbounded"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(Ib)),b!==r&&(an=i,b={type:"origin",value:b.toUpperCase()}),(i=b)===r&&(i=Xi()),i}function ne(){var i,b;return i=a,Sc()!==r&&Hr()!==r&&ot()!==r&&Hr()!==r&&(b=s())!==r?(an=i,i=b):(a=i,i=r),i}function Is(){var i,b;return i=a,Xv()!==r&&Hr()!==r&&ot()!==r&&Hr()!==r&&(b=(function(){var m,x,tr,Cr,gr,Yr,Rt,gt;if(m=a,(x=me())!==r){for(tr=[],Cr=a,(gr=Hr())!==r&&(Yr=Fo())!==r&&(Rt=Hr())!==r&&(gt=me())!==r?Cr=gr=[gr,Yr,Rt,gt]:(a=Cr,Cr=r);Cr!==r;)tr.push(Cr),Cr=a,(gr=Hr())!==r&&(Yr=Fo())!==r&&(Rt=Hr())!==r&&(gt=me())!==r?Cr=gr=[gr,Yr,Rt,gt]:(a=Cr,Cr=r);tr===r?(a=m,m=r):(an=m,x=Tn(x,tr),m=x)}else a=m,m=r;return m})())!==r?(an=i,i=b):(a=i,i=r),i}function me(){var i,b,m,x,tr,Cr,gr;return i=a,(b=fn())!==r&&Hr()!==r?((m=B())===r&&(m=R()),m===r&&(m=null),m!==r&&Hr()!==r?(x=a,t.substr(a,5).toLowerCase()==="nulls"?(tr=t.substr(a,5),a+=5):(tr=r,nt===0&&Ht(cf)),tr!==r&&(Cr=Hr())!==r?(t.substr(a,5).toLowerCase()==="first"?(gr=t.substr(a,5),a+=5):(gr=r,nt===0&&Ht(ri)),gr===r&&(t.substr(a,4).toLowerCase()==="last"?(gr=t.substr(a,4),a+=4):(gr=r,nt===0&&Ht(t0))),gr===r&&(gr=null),gr===r?(a=x,x=r):x=tr=[tr,Cr,gr]):(a=x,x=r),x===r&&(x=null),x===r?(a=i,i=r):(an=i,i=b=(function(Yr,Rt,gt){let Gt={expr:Yr,type:Rt};return Gt.nulls=gt&&[gt[0],gt[2]].filter(rn=>rn).join(" "),Gt})(b,m,x))):(a=i,i=r)):(a=i,i=r),i}function Xe(){var i;return(i=Xi())===r&&(i=ws())===r&&(i=Jo()),i}function eo(){var i,b,m,x,tr,Cr,gr;return i=a,b=a,(m=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,5).toLowerCase()==="limit"?(Rt=t.substr(a,5),a+=5):(Rt=r,nt===0&&Ht(hl)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):Yr=Rt=[Rt,gt]),Yr})())!==r&&(x=Hr())!==r?((tr=Xe())===r&&(tr=cr()),tr===r?(a=b,b=r):b=m=[m,x,tr]):(a=b,b=r),b===r&&(b=null),b!==r&&(m=Hr())!==r?(x=a,(tr=(function(){var Yr=a,Rt,gt,Gt;return t.substr(a,6).toLowerCase()==="offset"?(Rt=t.substr(a,6),a+=6):(Rt=r,nt===0&&Ht(L0)),Rt===r?(a=Yr,Yr=r):(gt=a,nt++,Gt=Ks(),nt--,Gt===r?gt=void 0:(a=gt,gt=r),gt===r?(a=Yr,Yr=r):(an=Yr,Yr=Rt="OFFSET")),Yr})())!==r&&(Cr=Hr())!==r&&(gr=Xe())!==r?x=tr=[tr,Cr,gr]:(a=x,x=r),x===r&&(x=null),x===r?(a=i,i=r):(an=i,i=b=(function(Yr,Rt){let gt=[];return Yr&>.push(typeof Yr[2]=="string"?{type:"origin",value:"all"}:Yr[2]),Rt&>.push(Rt[2]),{seperator:Rt&&Rt[0]&&Rt[0].toLowerCase()||"",value:gt}})(b,x))):(a=i,i=r),i}function so(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=$o())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=$o())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=$o())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function $o(){var i,b,m,x,tr,Cr,gr,Yr;return i=a,b=a,(m=js())!==r&&(x=Hr())!==r&&(tr=Mo())!==r?b=m=[m,x,tr]:(a=b,b=r),b===r&&(b=null),b!==r&&(m=Hr())!==r&&(x=nu())!==r&&(tr=Hr())!==r?(t.charCodeAt(a)===61?(Cr="=",a++):(Cr=r,nt===0&&Ht(zn)),Cr!==r&&Hr()!==r&&(gr=fn())!==r?(an=i,i=b=(function(Rt,gt,Gt){return{column:gt,value:Gt,table:Rt&&Rt[0]}})(b,x,gr)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,b=a,(m=js())!==r&&(x=Hr())!==r&&(tr=Mo())!==r?b=m=[m,x,tr]:(a=b,b=r),b===r&&(b=null),b!==r&&(m=Hr())!==r&&(x=nu())!==r&&(tr=Hr())!==r?(t.charCodeAt(a)===61?(Cr="=",a++):(Cr=r,nt===0&&Ht(zn)),Cr!==r&&Hr()!==r&&(gr=G0())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Yr=Hn())!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b=(function(Rt,gt,Gt){return{column:gt,value:Gt,table:Rt&&Rt[0],keyword:"values"}})(b,x,Yr)):(a=i,i=r)):(a=i,i=r)),i}function Mu(){var i,b,m;return i=a,(b=(function(){var x=a,tr,Cr,gr;return t.substr(a,9).toLowerCase()==="returning"?(tr=t.substr(a,9),a+=9):(tr=r,nt===0&&Ht(ol)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="RETURNING")),x})())!==r&&Hr()!==r?((m=s())===r&&(m=bc()),m===r?(a=i,i=r):(an=i,i=b=(function(x,tr){return{type:x&&x.toLowerCase()||"returning",columns:tr==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null}]||tr}})(b,m))):(a=i,i=r),i}function su(){var i,b;return(i=F())===r&&(i=a,(b=It())!==r&&(an=i,b=b.ast),i=b),i}function Po(){var i,b,m,x,tr,Cr,gr,Yr,Rt;if(i=a,Sc()!==r)if(Hr()!==r)if((b=Ko())!==r)if(Hr()!==r)if((m=fo())!==r){for(x=[],tr=a,(Cr=Hr())!==r&&(gr=Fo())!==r&&(Yr=Hr())!==r&&(Rt=fo())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(a=tr,tr=r);tr!==r;)x.push(tr),tr=a,(Cr=Hr())!==r&&(gr=Fo())!==r&&(Yr=Hr())!==r&&(Rt=fo())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(a=tr,tr=r);x!==r&&(tr=Hr())!==r&&(Cr=Wr())!==r?(an=i,i=Tn(m,x)):(a=i,i=r)}else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;return i===r&&(i=a,Sc()!==r&&Hr()!==r&&(b=ar())!==r?(an=i,i=b):(a=i,i=r)),i}function Na(){var i,b;return i=a,(b=_c())!==r&&(an=i,b="insert"),(i=b)===r&&(i=a,(b=ef())!==r&&(an=i,b="replace"),i=b),i}function F(){var i,b;return i=a,G0()!==r&&Hr()!==r&&(b=(function(){var m,x,tr,Cr,gr,Yr,Rt,gt;if(m=a,(x=ar())!==r){for(tr=[],Cr=a,(gr=Hr())!==r&&(Yr=Fo())!==r&&(Rt=Hr())!==r&&(gt=ar())!==r?Cr=gr=[gr,Yr,Rt,gt]:(a=Cr,Cr=r);Cr!==r;)tr.push(Cr),Cr=a,(gr=Hr())!==r&&(Yr=Fo())!==r&&(Rt=Hr())!==r&&(gt=ar())!==r?Cr=gr=[gr,Yr,Rt,gt]:(a=Cr,Cr=r);tr===r?(a=m,m=r):(an=m,x=Tn(x,tr),m=x)}else a=m,m=r;return m})())!==r?(an=i,i={type:"values",values:b}):(a=i,i=r),i}function ar(){var i,b;return i=a,Ko()!==r&&Hr()!==r&&(b=Nr())!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b):(a=i,i=r),i}function Nr(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=fn())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=fn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=fn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt){let Gt={type:"expr_list"};return Gt.value=Tn(Rt,gt),Gt})(b,m))}else a=i,i=r;return i}function Rr(){var i,b,m;return i=a,Rn()!==r&&Hr()!==r&&(b=fn())!==r&&Hr()!==r&&(m=(function(){var x;return(x=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,4).toLowerCase()==="year"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(dv)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):(an=tr,tr=Cr="YEAR")),tr})())===r&&(x=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,5).toLowerCase()==="month"?(Cr=t.substr(a,5),a+=5):(Cr=r,nt===0&&Ht(Wp)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):(an=tr,tr=Cr="MONTH")),tr})())===r&&(x=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,3).toLowerCase()==="day"?(Cr=t.substr(a,3),a+=3):(Cr=r,nt===0&&Ht(Rp)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):(an=tr,tr=Cr="DAY")),tr})())===r&&(x=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,4).toLowerCase()==="hour"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(on)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):(an=tr,tr=Cr="HOUR")),tr})())===r&&(x=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,6).toLowerCase()==="minute"?(Cr=t.substr(a,6),a+=6):(Cr=r,nt===0&&Ht(Np)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):(an=tr,tr=Cr="MINUTE")),tr})())===r&&(x=(function(){var tr=a,Cr,gr,Yr;return t.substr(a,6).toLowerCase()==="second"?(Cr=t.substr(a,6),a+=6):(Cr=r,nt===0&&Ht(Vb)),Cr===r?(a=tr,tr=r):(gr=a,nt++,Yr=Ks(),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=tr,tr=r):(an=tr,tr=Cr="SECOND")),tr})()),x})())!==r?(an=i,i={type:"interval",expr:b,unit:m.toLowerCase()}):(a=i,i=r),i===r&&(i=a,Rn()!==r&&Hr()!==r&&(b=fl())!==r?(an=i,i=(function(x){return{type:"interval",expr:x,unit:""}})(b)):(a=i,i=r)),i}function ct(){var i,b,m,x,tr,Cr;if(i=a,(b=dt())!==r)if(Hr()!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=dt())!==r?x=tr=[tr,Cr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=dt())!==r?x=tr=[tr,Cr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m,1))}else a=i,i=r;else a=i,i=r;return i}function dt(){var i,b,m;return i=a,ro()!==r&&Hr()!==r&&(b=gn())!==r&&Hr()!==r&&(function(){var x=a,tr,Cr,gr;return t.substr(a,4).toLowerCase()==="then"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(Ju)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):x=tr=[tr,Cr]),x})()!==r&&Hr()!==r&&(m=fn())!==r?(an=i,i={type:"when",cond:b,result:m}):(a=i,i=r),i}function Yt(){var i,b;return i=a,$e()!==r&&Hr()!==r&&(b=fn())!==r?(an=i,i={type:"else",result:b}):(a=i,i=r),i}function vn(){var i;return(i=Vn())===r&&(i=(function(){var b,m,x,tr,Cr,gr;if(b=a,(m=mr())!==r){if(x=[],tr=a,(Cr=Hr())!==r&&(gr=Bt())!==r?tr=Cr=[Cr,gr]:(a=tr,tr=r),tr!==r)for(;tr!==r;)x.push(tr),tr=a,(Cr=Hr())!==r&&(gr=Bt())!==r?tr=Cr=[Cr,gr]:(a=tr,tr=r);else x=r;x===r?(a=b,b=r):(an=b,m=Xt(m,x[0][1]),b=m)}else a=b,b=r;return b})()),i}function fn(){var i;return(i=vn())===r&&(i=It()),i}function gn(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=fn())!==r){for(m=[],x=a,(tr=Hr())===r?(a=x,x=r):((Cr=Ns())===r&&(Cr=Fs())===r&&(Cr=Fo()),Cr!==r&&(gr=Hr())!==r&&(Yr=fn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r));x!==r;)m.push(x),x=a,(tr=Hr())===r?(a=x,x=r):((Cr=Ns())===r&&(Cr=Fs())===r&&(Cr=Fo()),Cr!==r&&(gr=Hr())!==r&&(Yr=fn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r));m===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt){let Gt=gt.length,rn=Rt,xn="";for(let f=0;f<Gt;++f)gt[f][1]===","?(xn=",",Array.isArray(rn)||(rn=[rn]),rn.push(gt[f][3])):rn=Vt(gt[f][1],rn,gt[f][3]);if(xn===","){let f={type:"expr_list"};return f.value=rn,f}return rn})(b,m))}else a=i,i=r;return i}function Vn(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=Jn())!==r){for(m=[],x=a,(tr=pi())!==r&&(Cr=Fs())!==r&&(gr=Hr())!==r&&(Yr=Jn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=pi())!==r&&(Cr=Fs())!==r&&(gr=Hr())!==r&&(Yr=Jn())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Xb(b,m))}else a=i,i=r;return i}function Jn(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=ms())!==r){for(m=[],x=a,(tr=pi())!==r&&(Cr=Ns())!==r&&(gr=Hr())!==r&&(Yr=ms())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=pi())!==r&&(Cr=Ns())!==r&&(gr=Hr())!==r&&(Yr=ms())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Xb(b,m))}else a=i,i=r;return i}function ms(){var i,b,m,x,tr;return(i=Qs())===r&&(i=(function(){var Cr=a,gr,Yr;(gr=(function(){var Gt=a,rn=a,xn,f,y;(xn=ds())!==r&&(f=Hr())!==r&&(y=hn())!==r?rn=xn=[xn,f,y]:(a=rn,rn=r),rn!==r&&(an=Gt,rn=(S=rn)[0]+" "+S[2]);var S;return(Gt=rn)===r&&(Gt=hn()),Gt})())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Yr=It())!==r&&Hr()!==r&&Wr()!==r?(an=Cr,Rt=gr,(gt=Yr).parentheses=!0,gr=Xt(Rt,gt),Cr=gr):(a=Cr,Cr=r);var Rt,gt;return Cr})())===r&&(i=a,(b=ds())===r&&(b=a,t.charCodeAt(a)===33?(m="!",a++):(m=r,nt===0&&Ht(pp)),m===r?(a=b,b=r):(x=a,nt++,t.charCodeAt(a)===61?(tr="=",a++):(tr=r,nt===0&&Ht(zn)),nt--,tr===r?x=void 0:(a=x,x=r),x===r?(a=b,b=r):b=m=[m,x])),b!==r&&(m=Hr())!==r&&(x=ms())!==r?(an=i,i=b=Xt("NOT",x)):(a=i,i=r)),i}function Qs(){var i,b,m,x,tr;return i=a,(b=br())!==r&&Hr()!==r?((m=(function(){var Cr;return(Cr=(function(){var gr=a,Yr=[],Rt=a,gt,Gt,rn,xn;if((gt=Hr())!==r&&(Gt=$())!==r&&(rn=Hr())!==r&&(xn=br())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r),Rt!==r)for(;Rt!==r;)Yr.push(Rt),Rt=a,(gt=Hr())!==r&&(Gt=$())!==r&&(rn=Hr())!==r&&(xn=br())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r);else Yr=r;return Yr!==r&&(an=gr,Yr={type:"arithmetic",tail:Yr}),gr=Yr})())===r&&(Cr=(function(){var gr=a,Yr,Rt,gt;return(Yr=J())!==r&&Hr()!==r&&(Rt=Ko())!==r&&Hr()!==r&&(gt=Nr())!==r&&Hr()!==r&&Wr()!==r?(an=gr,gr=Yr={op:Yr,right:gt}):(a=gr,gr=r),gr===r&&(gr=a,(Yr=J())!==r&&Hr()!==r?((Rt=ws())===r&&(Rt=fl())===r&&(Rt=Rc()),Rt===r?(a=gr,gr=r):(an=gr,Yr=(function(Gt,rn){return{op:Gt,right:rn}})(Yr,Rt),gr=Yr)):(a=gr,gr=r)),gr})())===r&&(Cr=(function(){var gr=a,Yr,Rt,gt;return(Yr=(function(){var Gt=a,rn=a,xn,f,y;(xn=ds())!==r&&(f=Hr())!==r&&(y=vt())!==r?rn=xn=[xn,f,y]:(a=rn,rn=r),rn!==r&&(an=Gt,rn=(S=rn)[0]+" "+S[2]);var S;return(Gt=rn)===r&&(Gt=vt()),Gt})())!==r&&Hr()!==r&&(Rt=br())!==r&&Hr()!==r&&Ns()!==r&&Hr()!==r&&(gt=br())!==r?(an=gr,gr=Yr={op:Yr,right:{type:"expr_list",value:[Rt,gt]}}):(a=gr,gr=r),gr})())===r&&(Cr=(function(){var gr=a,Yr,Rt,gt,Gt,rn,xn,f,y;return(Yr=Et())!==r&&(Rt=Hr())!==r&&(gt=br())!==r?(an=gr,gr=Yr={op:"IS",right:gt}):(a=gr,gr=r),gr===r&&(gr=a,(Yr=Et())!==r&&(Rt=Hr())!==r?(gt=a,(Gt=Er())!==r&&(rn=Hr())!==r&&(xn=Xc())!==r&&(f=Hr())!==r&&(y=qr())!==r?gt=Gt=[Gt,rn,xn,f,y]:(a=gt,gt=r),gt===r?(a=gr,gr=r):(an=gr,Yr=(function(S){let{db:W,table:vr}=S.pop(),_r=vr==="*"?"*":`"${vr}"`;return{op:"IS",right:{type:"default",value:"DISTINCT FROM "+(W?`"${W}".${_r}`:_r)}}})(gt),gr=Yr)):(a=gr,gr=r),gr===r&&(gr=a,Yr=a,(Rt=Et())!==r&&(gt=Hr())!==r&&(Gt=ds())!==r?Yr=Rt=[Rt,gt,Gt]:(a=Yr,Yr=r),Yr!==r&&(Rt=Hr())!==r&&(gt=br())!==r?(an=gr,Yr=(function(S){return{op:"IS NOT",right:S}})(gt),gr=Yr):(a=gr,gr=r))),gr})())===r&&(Cr=(function(){var gr=a,Yr,Rt,gt;(Yr=(function(){var f=a,y=a,S,W,vr;(S=ds())!==r&&(W=Hr())!==r?((vr=$t())===r&&(vr=en()),vr===r?(a=y,y=r):y=S=[S,W,vr]):(a=y,y=r),y!==r&&(an=f,y=(_r=y)[0]+" "+_r[2]);var _r;return(f=y)===r&&(f=$t())===r&&(f=en())===r&&(f=a,t.substr(a,7).toLowerCase()==="similar"?(y=t.substr(a,7),a+=7):(y=r,nt===0&&Ht(dp)),y!==r&&(S=Hr())!==r&&(W=ga())!==r?(an=f,f=y="SIMILAR TO"):(a=f,f=r),f===r&&(f=a,(y=ds())!==r&&(S=Hr())!==r?(t.substr(a,7).toLowerCase()==="similar"?(W=t.substr(a,7),a+=7):(W=r,nt===0&&Ht(dp)),W!==r&&(vr=Hr())!==r&&ga()!==r?(an=f,f=y="NOT SIMILAR TO"):(a=f,f=r)):(a=f,f=r))),f})())!==r&&Hr()!==r?((Rt=cb())===r&&(Rt=Qs()),Rt!==r&&Hr()!==r?((gt=(function(){var f=a,y,S;return t.substr(a,6).toLowerCase()==="escape"?(y=t.substr(a,6),a+=6):(y=r,nt===0&&Ht(wp)),y!==r&&Hr()!==r&&(S=fl())!==r?(an=f,y=(function(W,vr){return{type:"ESCAPE",value:vr}})(0,S),f=y):(a=f,f=r),f})())===r&&(gt=null),gt===r?(a=gr,gr=r):(an=gr,Gt=Yr,rn=Rt,(xn=gt)&&(rn.escape=xn),gr=Yr={op:Gt,right:rn})):(a=gr,gr=r)):(a=gr,gr=r);var Gt,rn,xn;return gr})())===r&&(Cr=(function(){var gr=a,Yr,Rt;return(Yr=(function(){var gt;return t.substr(a,3)==="!~*"?(gt="!~*",a+=3):(gt=r,nt===0&&Ht(Kp)),gt===r&&(t.substr(a,2)==="~*"?(gt="~*",a+=2):(gt=r,nt===0&&Ht(ld)),gt===r&&(t.charCodeAt(a)===126?(gt="~",a++):(gt=r,nt===0&&Ht(Lp)),gt===r&&(t.substr(a,2)==="!~"?(gt="!~",a+=2):(gt=r,nt===0&&Ht(Cp))))),gt})())!==r&&Hr()!==r?((Rt=cb())===r&&(Rt=Qs()),Rt===r?(a=gr,gr=r):(an=gr,gr=Yr={op:Yr,right:Rt})):(a=gr,gr=r),gr})()),Cr})())===r&&(m=null),m===r?(a=i,i=r):(an=i,x=b,i=b=(tr=m)===null?x:tr.type==="arithmetic"?jn(x,tr.tail):Vt(tr.op,x,tr.right))):(a=i,i=r),i===r&&(i=fl())===r&&(i=Hn()),i}function $(){var i;return t.substr(a,2)===">="?(i=">=",a+=2):(i=r,nt===0&&Ht(xp)),i===r&&(t.charCodeAt(a)===62?(i=">",a++):(i=r,nt===0&&Ht(cv)),i===r&&(t.substr(a,2)==="<="?(i="<=",a+=2):(i=r,nt===0&&Ht(Up)),i===r&&(t.substr(a,2)==="<>"?(i="<>",a+=2):(i=r,nt===0&&Ht(Xp)),i===r&&(t.charCodeAt(a)===60?(i="<",a++):(i=r,nt===0&&Ht(Qv)),i===r&&(t.charCodeAt(a)===61?(i="=",a++):(i=r,nt===0&&Ht(zn)),i===r&&(t.substr(a,2)==="!="?(i="!=",a+=2):(i=r,nt===0&&Ht(Vp)))))))),i}function J(){var i,b,m,x,tr,Cr;return i=a,b=a,(m=ds())!==r&&(x=Hr())!==r&&(tr=it())!==r?b=m=[m,x,tr]:(a=b,b=r),b!==r&&(an=i,b=(Cr=b)[0]+" "+Cr[2]),(i=b)===r&&(i=it()),i}function br(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=et())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=mr())!==r&&(gr=Hr())!==r&&(Yr=et())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=mr())!==r&&(gr=Hr())!==r&&(Yr=et())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=(function(Rt,gt){if(gt&>.length&&Rt.type==="column_ref"&&Rt.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...Ct()}));return jn(Rt,gt)})(b,m))}else a=i,i=r;return i}function mr(){var i;return t.charCodeAt(a)===43?(i="+",a++):(i=r,nt===0&&Ht(gb)),i===r&&(t.charCodeAt(a)===45?(i="-",a++):(i=r,nt===0&&Ht(O0))),i}function et(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=Ut())!==r){for(m=[],x=a,(tr=Hr())===r?(a=x,x=r):((Cr=pt())===r&&(Cr=Zu()),Cr!==r&&(gr=Hr())!==r&&(Yr=Ut())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r));x!==r;)m.push(x),x=a,(tr=Hr())===r?(a=x,x=r):((Cr=pt())===r&&(Cr=Zu()),Cr!==r&&(gr=Hr())!==r&&(Yr=Ut())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r));m===r?(a=i,i=r):(an=i,i=b=jn(b,m))}else a=i,i=r;return i}function pt(){var i;return t.charCodeAt(a)===42?(i="*",a++):(i=r,nt===0&&Ht(v0)),i===r&&(t.charCodeAt(a)===47?(i="/",a++):(i=r,nt===0&&Ht(ac)),i===r&&(t.charCodeAt(a)===37?(i="%",a++):(i=r,nt===0&&Ht(Rb)),i===r&&(t.substr(a,2)==="||"?(i="||",a+=2):(i=r,nt===0&&Ht(Ff))))),i}function At(){var i,b,m;return i=a,(b=Hn())!==r&&Hr()!==r?((m=Lt())===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(x,tr){return tr&&(x.array_index=tr),x})(b,m))):(a=i,i=r),i}function Bt(){var i,b,m,x,tr,Cr;return(i=(function(){var gr=a,Yr,Rt,gt,Gt,rn,xn,f,y;return(Yr=iu())!==r&&Hr()!==r&&(Rt=Ko())!==r&&Hr()!==r&&(gt=fn())!==r&&Hr()!==r&&(Gt=qo())!==r&&Hr()!==r&&(rn=E())!==r&&Hr()!==r&&(xn=Wr())!==r?(an=gr,Yr=(function(S,W,vr){return{type:"cast",keyword:S.toLowerCase(),expr:W,symbol:"as",target:[vr]}})(Yr,gt,rn),gr=Yr):(a=gr,gr=r),gr===r&&(gr=a,(Yr=iu())!==r&&Hr()!==r&&(Rt=Ko())!==r&&Hr()!==r&&(gt=fn())!==r&&Hr()!==r&&(Gt=qo())!==r&&Hr()!==r&&(rn=Do())!==r&&Hr()!==r&&(xn=Ko())!==r&&Hr()!==r&&(f=Du())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r&&(y=Wr())!==r?(an=gr,Yr=(function(S,W,vr){return{type:"cast",keyword:S.toLowerCase(),expr:W,symbol:"as",target:[{dataType:"DECIMAL("+vr+")"}]}})(Yr,gt,f),gr=Yr):(a=gr,gr=r),gr===r&&(gr=a,(Yr=iu())!==r&&Hr()!==r&&(Rt=Ko())!==r&&Hr()!==r&&(gt=fn())!==r&&Hr()!==r&&(Gt=qo())!==r&&Hr()!==r&&(rn=Do())!==r&&Hr()!==r&&(xn=Ko())!==r&&Hr()!==r&&(f=Du())!==r&&Hr()!==r&&Fo()!==r&&Hr()!==r&&(y=Du())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r&&Wr()!==r?(an=gr,Yr=(function(S,W,vr,_r){return{type:"cast",keyword:S.toLowerCase(),expr:W,symbol:"as",target:[{dataType:"DECIMAL("+vr+", "+_r+")"}]}})(Yr,gt,f,y),gr=Yr):(a=gr,gr=r),gr===r&&(gr=a,(Yr=iu())!==r&&Hr()!==r&&(Rt=Ko())!==r&&Hr()!==r&&(gt=fn())!==r&&Hr()!==r&&(Gt=qo())!==r&&Hr()!==r&&(rn=(function(){var S;return(S=(function(){var W=a,vr,_r,$r;return t.substr(a,6).toLowerCase()==="signed"?(vr=t.substr(a,6),a+=6):(vr=r,nt===0&&Ht(Yc)),vr===r?(a=W,W=r):(_r=a,nt++,$r=Ks(),nt--,$r===r?_r=void 0:(a=_r,_r=r),_r===r?(a=W,W=r):(an=W,W=vr="SIGNED")),W})())===r&&(S=Ka()),S})())!==r&&Hr()!==r?((xn=_f())===r&&(xn=null),xn!==r&&Hr()!==r&&(f=Wr())!==r?(an=gr,Yr=(function(S,W,vr,_r){return{type:"cast",keyword:S.toLowerCase(),expr:W,symbol:"as",target:[{dataType:vr+(_r?" "+_r:"")}]}})(Yr,gt,rn,xn),gr=Yr):(a=gr,gr=r)):(a=gr,gr=r),gr===r&&(gr=a,(Yr=Ko())!==r&&Hr()!==r?((Rt=Vn())===r&&(Rt=At())===r&&(Rt=Jo()),Rt!==r&&Hr()!==r&&(gt=Wr())!==r&&Hr()!==r?((Gt=Ev())===r&&(Gt=null),Gt===r?(a=gr,gr=r):(an=gr,Yr=(function(S,W){return S.parentheses=!0,W?{type:"cast",keyword:"cast",expr:S,...W}:S})(Rt,Gt),gr=Yr)):(a=gr,gr=r)):(a=gr,gr=r),gr===r&&(gr=a,(Yr=cb())===r&&(Yr=Rr())===r&&(Yr=(function(){var S=a,W,vr;(W=(function(){var at=a,St,Kt,sn,Nn,Xn,Gn,fs,Ts;return(St=(function(){var Ms=a,Vs,se,Re;return t.substr(a,5).toLowerCase()==="count"?(Vs=t.substr(a,5),a+=5):(Vs=r,nt===0&&Ht(Ef)),Vs===r?(a=Ms,Ms=r):(se=a,nt++,Re=Ks(),nt--,Re===r?se=void 0:(a=se,se=r),se===r?(a=Ms,Ms=r):(an=Ms,Ms=Vs="COUNT")),Ms})())===r&&(St=(function(){var Ms=a,Vs,se,Re;return t.substr(a,12).toLowerCase()==="group_concat"?(Vs=t.substr(a,12),a+=12):(Vs=r,nt===0&&Ht(K0)),Vs===r?(a=Ms,Ms=r):(se=a,nt++,Re=Ks(),nt--,Re===r?se=void 0:(a=se,se=r),se===r?(a=Ms,Ms=r):(an=Ms,Ms=Vs="GROUP_CONCAT")),Ms})()),St!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Kt=(function(){var Ms=a,Vs;return(Vs=(function(){var se=a,Re;return t.charCodeAt(a)===42?(Re="*",a++):(Re=r,nt===0&&Ht(v0)),Re!==r&&(an=se,Re={type:"star",value:"*"}),se=Re})())!==r&&(an=Ms,Vs={expr:Vs}),(Ms=Vs)===r&&(Ms=le()),Ms})())!==r&&Hr()!==r&&(sn=Wr())!==r&&Hr()!==r?((Nn=oa())===r&&(Nn=null),Nn===r?(a=at,at=r):(an=at,St=(function(Ms,Vs,se){return{type:"aggr_func",name:Ms,args:Vs,over:se}})(St,Kt,Nn),at=St)):(a=at,at=r),at===r&&(at=a,t.substr(a,15).toLowerCase()==="percentile_cont"?(St=t.substr(a,15),a+=15):(St=r,nt===0&&Ht(rd)),St===r&&(t.substr(a,15).toLowerCase()==="percentile_disc"?(St=t.substr(a,15),a+=15):(St=r,nt===0&&Ht(jp))),St!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r?((Kt=Xi())===r&&(Kt=ad()),Kt!==r&&Hr()!==r&&(sn=Wr())!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="within"?(Nn=t.substr(a,6),a+=6):(Nn=r,nt===0&&Ht(Ip)),Nn!==r&&Hr()!==r&&Xu()!==r&&Hr()!==r&&(Xn=Ko())!==r&&Hr()!==r&&(Gn=Is())!==r&&Hr()!==r&&(fs=Wr())!==r&&Hr()!==r?((Ts=oa())===r&&(Ts=null),Ts===r?(a=at,at=r):(an=at,St=(function(Ms,Vs,se,Re){return{type:"aggr_func",name:Ms.toUpperCase(),args:{expr:Vs},within_group_orderby:se,over:Re}})(St,Kt,Gn,Ts),at=St)):(a=at,at=r)):(a=at,at=r)):(a=at,at=r),at===r&&(at=a,t.substr(a,4).toLowerCase()==="mode"?(St=t.substr(a,4),a+=4):(St=r,nt===0&&Ht(td)),St!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Kt=Wr())!==r&&Hr()!==r?(t.substr(a,6).toLowerCase()==="within"?(sn=t.substr(a,6),a+=6):(sn=r,nt===0&&Ht(Ip)),sn!==r&&Hr()!==r&&(Nn=Xu())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Xn=Is())!==r&&Hr()!==r&&(Gn=Wr())!==r&&Hr()!==r?((fs=oa())===r&&(fs=null),fs===r?(a=at,at=r):(an=at,St=(function(Ms,Vs,se){return{type:"aggr_func",name:Ms.toUpperCase(),args:{expr:{}},within_group_orderby:Vs,over:se}})(St,Xn,fs),at=St)):(a=at,at=r)):(a=at,at=r))),at})())===r&&(W=(function(){var at=a,St,Kt,sn;return(St=(function(){var Nn;return(Nn=(function(){var Xn=a,Gn,fs,Ts;return t.substr(a,3).toLowerCase()==="sum"?(Gn=t.substr(a,3),a+=3):(Gn=r,nt===0&&Ht(w0)),Gn===r?(a=Xn,Xn=r):(fs=a,nt++,Ts=Ks(),nt--,Ts===r?fs=void 0:(a=fs,fs=r),fs===r?(a=Xn,Xn=r):(an=Xn,Xn=Gn="SUM")),Xn})())===r&&(Nn=(function(){var Xn=a,Gn,fs,Ts;return t.substr(a,3).toLowerCase()==="max"?(Gn=t.substr(a,3),a+=3):(Gn=r,nt===0&&Ht(Af)),Gn===r?(a=Xn,Xn=r):(fs=a,nt++,Ts=Ks(),nt--,Ts===r?fs=void 0:(a=fs,fs=r),fs===r?(a=Xn,Xn=r):(an=Xn,Xn=Gn="MAX")),Xn})())===r&&(Nn=(function(){var Xn=a,Gn,fs,Ts;return t.substr(a,3).toLowerCase()==="min"?(Gn=t.substr(a,3),a+=3):(Gn=r,nt===0&&Ht(El)),Gn===r?(a=Xn,Xn=r):(fs=a,nt++,Ts=Ks(),nt--,Ts===r?fs=void 0:(a=fs,fs=r),fs===r?(a=Xn,Xn=r):(an=Xn,Xn=Gn="MIN")),Xn})())===r&&(Nn=(function(){var Xn=a,Gn,fs,Ts;return t.substr(a,3).toLowerCase()==="avg"?(Gn=t.substr(a,3),a+=3):(Gn=r,nt===0&&Ht(ul)),Gn===r?(a=Xn,Xn=r):(fs=a,nt++,Ts=Ks(),nt--,Ts===r?fs=void 0:(a=fs,fs=r),fs===r?(a=Xn,Xn=r):(an=Xn,Xn=Gn="AVG")),Xn})()),Nn})())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Kt=br())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?((sn=oa())===r&&(sn=null),sn===r?(a=at,at=r):(an=at,St=(function(Nn,Xn,Gn){return{type:"aggr_func",name:Nn,args:{expr:Xn},over:Gn,...Ct()}})(St,Kt,sn),at=St)):(a=at,at=r),at})())===r&&(W=(function(){var at=a,St=a,Kt,sn,Nn,Xn;return(Kt=js())!==r&&(sn=Hr())!==r&&(Nn=Mo())!==r?St=Kt=[Kt,sn,Nn]:(a=St,St=r),St===r&&(St=null),St!==r&&(Kt=Hr())!==r?((sn=(function(){var Gn=a,fs,Ts,Ms;return t.substr(a,9).toLowerCase()==="array_agg"?(fs=t.substr(a,9),a+=9):(fs=r,nt===0&&Ht(V0)),fs===r?(a=Gn,Gn=r):(Ts=a,nt++,Ms=Ks(),nt--,Ms===r?Ts=void 0:(a=Ts,Ts=r),Ts===r?(a=Gn,Gn=r):(an=Gn,Gn=fs="ARRAY_AGG")),Gn})())===r&&(sn=(function(){var Gn=a,fs,Ts,Ms;return t.substr(a,10).toLowerCase()==="string_agg"?(fs=t.substr(a,10),a+=10):(fs=r,nt===0&&Ht(hf)),fs===r?(a=Gn,Gn=r):(Ts=a,nt++,Ms=Ks(),nt--,Ms===r?Ts=void 0:(a=Ts,Ts=r),Ts===r?(a=Gn,Gn=r):(an=Gn,Gn=fs="STRING_AGG")),Gn})()),sn!==r&&(Nn=Hr())!==r&&Ko()!==r&&Hr()!==r&&(Xn=le())!==r&&Hr()!==r&&Wr()!==r?(an=at,St=(function(Gn,fs,Ts){return{type:"aggr_func",name:Gn?`${Gn[0]}.${fs}`:fs,args:Ts}})(St,sn,Xn),at=St):(a=at,at=r)):(a=at,at=r),at})()),W!==r&&Hr()!==r?((vr=(function(){var at=a,St,Kt;return t.substr(a,6).toLowerCase()==="filter"?(St=t.substr(a,6),a+=6):(St=r,nt===0&&Ht(Sl)),St!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(Kt=xt())!==r&&Hr()!==r&&Wr()!==r?(an=at,at=St={keyword:"filter",parentheses:!0,where:Kt}):(a=at,at=r),at})())===r&&(vr=null),vr===r?(a=S,S=r):(an=S,_r=W,($r=vr)&&(_r.filter=$r),S=W=_r)):(a=S,S=r);var _r,$r;return S})())===r&&(Yr=(function(){var S;return(S=(function(){var W=a,vr,_r;return(vr=(function(){var $r;return t.substr(a,10).toLowerCase()==="row_number"?($r=t.substr(a,10),a+=10):($r=r,nt===0&&Ht(bv)),$r===r&&(t.substr(a,10).toLowerCase()==="dense_rank"?($r=t.substr(a,10),a+=10):($r=r,nt===0&&Ht(ql)),$r===r&&(t.substr(a,4).toLowerCase()==="rank"?($r=t.substr(a,4),a+=4):($r=r,nt===0&&Ht(Ec)))),$r})())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r&&(_r=oa())!==r?(an=W,vr=(function($r,at){return{type:"window_func",name:$r,over:at}})(vr,_r),W=vr):(a=W,W=r),W})())===r&&(S=(function(){var W=a,vr,_r,$r,at;return(vr=(function(){var St;return t.substr(a,3).toLowerCase()==="lag"?(St=t.substr(a,3),a+=3):(St=r,nt===0&&Ht(Jp)),St===r&&(t.substr(a,4).toLowerCase()==="lead"?(St=t.substr(a,4),a+=4):(St=r,nt===0&&Ht(Qp)),St===r&&(t.substr(a,9).toLowerCase()==="nth_value"?(St=t.substr(a,9),a+=9):(St=r,nt===0&&Ht(sp)))),St})())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(_r=Nr())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?(($r=Nu())===r&&($r=null),$r!==r&&Hr()!==r&&(at=oa())!==r?(an=W,vr=(function(St,Kt,sn,Nn){return{type:"window_func",name:St,args:Kt,over:Nn,consider_nulls:sn}})(vr,_r,$r,at),W=vr):(a=W,W=r)):(a=W,W=r),W})())===r&&(S=(function(){var W=a,vr,_r,$r,at;return(vr=(function(){var St;return t.substr(a,11).toLowerCase()==="first_value"?(St=t.substr(a,11),a+=11):(St=r,nt===0&&Ht(Ol)),St===r&&(t.substr(a,10).toLowerCase()==="last_value"?(St=t.substr(a,10),a+=10):(St=r,nt===0&&Ht(np))),St})())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(_r=fn())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?(($r=Nu())===r&&($r=null),$r!==r&&Hr()!==r&&(at=oa())!==r?(an=W,vr=(function(St,Kt,sn,Nn){return{type:"window_func",name:St,args:{type:"expr_list",value:[Kt]},over:Nn,consider_nulls:sn}})(vr,_r,$r,at),W=vr):(a=W,W=r)):(a=W,W=r),W})()),S})())===r&&(Yr=Rc())===r&&(Yr=(function(){var S,W,vr,_r,$r,at,St,Kt;return S=a,ie()!==r&&Hr()!==r&&(W=ct())!==r&&Hr()!==r?((vr=Yt())===r&&(vr=null),vr!==r&&Hr()!==r&&(_r=Gs())!==r&&Hr()!==r?(($r=ie())===r&&($r=null),$r===r?(a=S,S=r):(an=S,St=W,(Kt=vr)&&St.push(Kt),S={type:"case",expr:null,args:St})):(a=S,S=r)):(a=S,S=r),S===r&&(S=a,ie()!==r&&Hr()!==r&&(W=fn())!==r&&Hr()!==r&&(vr=ct())!==r&&Hr()!==r?((_r=Yt())===r&&(_r=null),_r!==r&&Hr()!==r&&($r=Gs())!==r&&Hr()!==r?((at=ie())===r&&(at=null),at===r?(a=S,S=r):(an=S,S=(function(sn,Nn,Xn){return Xn&&Nn.push(Xn),{type:"case",expr:sn,args:Nn}})(W,vr,_r))):(a=S,S=r)):(a=S,S=r)),S})())===r&&(Yr=At())===r&&(Yr=Jo()),Yr!==r&&Hr()!==r?((Rt=Ev())===r&&(Rt=null),Rt===r?(a=gr,gr=r):(an=gr,Yr=(function(S,W){return W?{type:"cast",keyword:"cast",expr:S,...W}:S})(Yr,Rt),gr=Yr)):(a=gr,gr=r)))))),gr})())===r&&(i=a,Ko()!==r&&(b=Hr())!==r&&(m=gn())!==r&&(x=Hr())!==r&&(tr=Wr())!==r?(an=i,(Cr=m).parentheses=!0,i=Cr):(a=i,i=r),i===r&&(i=ws())===r&&(i=a,Hr()===r?(a=i,i=r):(t.charCodeAt(a)===36?(b="$",a++):(b=r,nt===0&&Ht(kp)),b===r?(a=i,i=r):(t.charCodeAt(a)===60?(m="<",a++):(m=r,nt===0&&Ht(Qv)),m!==r&&(x=Xi())!==r?(t.charCodeAt(a)===62?(tr=">",a++):(tr=r,nt===0&&Ht(cv)),tr===r?(a=i,i=r):(an=i,i={type:"origin",value:`$<${x.value}>`})):(a=i,i=r))))),i}function Ut(){var i,b,m,x,tr;return(i=(function(){var Cr,gr,Yr,Rt,gt,Gt,rn,xn;if(Cr=a,(gr=pn())!==r)if(Hr()!==r){for(Yr=[],Rt=a,(gt=Hr())===r?(a=Rt,Rt=r):(t.substr(a,2)==="?|"?(Gt="?|",a+=2):(Gt=r,nt===0&&Ht(Mp)),Gt===r&&(t.substr(a,2)==="?&"?(Gt="?&",a+=2):(Gt=r,nt===0&&Ht(rp)),Gt===r&&(t.charCodeAt(a)===63?(Gt="?",a++):(Gt=r,nt===0&&Ht(yp)),Gt===r&&(t.substr(a,2)==="#-"?(Gt="#-",a+=2):(Gt=r,nt===0&&Ht(hp)),Gt===r&&(t.substr(a,3)==="#>>"?(Gt="#>>",a+=3):(Gt=r,nt===0&&Ht(Ep)),Gt===r&&(t.substr(a,2)==="#>"?(Gt="#>",a+=2):(Gt=r,nt===0&&Ht(Nb)),Gt===r&&(Gt=F0())===r&&(Gt=Pi())===r&&(t.substr(a,2)==="@>"?(Gt="@>",a+=2):(Gt=r,nt===0&&Ht(Qf)),Gt===r&&(t.substr(a,2)==="<@"?(Gt="<@",a+=2):(Gt=r,nt===0&&Ht(_b))))))))),Gt!==r&&(rn=Hr())!==r&&(xn=pn())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r));Rt!==r;)Yr.push(Rt),Rt=a,(gt=Hr())===r?(a=Rt,Rt=r):(t.substr(a,2)==="?|"?(Gt="?|",a+=2):(Gt=r,nt===0&&Ht(Mp)),Gt===r&&(t.substr(a,2)==="?&"?(Gt="?&",a+=2):(Gt=r,nt===0&&Ht(rp)),Gt===r&&(t.charCodeAt(a)===63?(Gt="?",a++):(Gt=r,nt===0&&Ht(yp)),Gt===r&&(t.substr(a,2)==="#-"?(Gt="#-",a+=2):(Gt=r,nt===0&&Ht(hp)),Gt===r&&(t.substr(a,3)==="#>>"?(Gt="#>>",a+=3):(Gt=r,nt===0&&Ht(Ep)),Gt===r&&(t.substr(a,2)==="#>"?(Gt="#>",a+=2):(Gt=r,nt===0&&Ht(Nb)),Gt===r&&(Gt=F0())===r&&(Gt=Pi())===r&&(t.substr(a,2)==="@>"?(Gt="@>",a+=2):(Gt=r,nt===0&&Ht(Qf)),Gt===r&&(t.substr(a,2)==="<@"?(Gt="<@",a+=2):(Gt=r,nt===0&&Ht(_b))))))))),Gt!==r&&(rn=Hr())!==r&&(xn=pn())!==r?Rt=gt=[gt,Gt,rn,xn]:(a=Rt,Rt=r));Yr===r?(a=Cr,Cr=r):(an=Cr,f=gr,gr=(y=Yr)&&y.length!==0?jn(f,y):f,Cr=gr)}else a=Cr,Cr=r;else a=Cr,Cr=r;var f,y;return Cr})())===r&&(i=a,(b=(function(){var Cr;return t.charCodeAt(a)===33?(Cr="!",a++):(Cr=r,nt===0&&Ht(pp)),Cr===r&&(t.charCodeAt(a)===45?(Cr="-",a++):(Cr=r,nt===0&&Ht(O0)),Cr===r&&(t.charCodeAt(a)===43?(Cr="+",a++):(Cr=r,nt===0&&Ht(gb)),Cr===r&&(t.charCodeAt(a)===126?(Cr="~",a++):(Cr=r,nt===0&&Ht(Lp))))),Cr})())===r?(a=i,i=r):(m=a,(x=Hr())!==r&&(tr=Ut())!==r?m=x=[x,tr]:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b=Xt(b,m[1])))),i}function pn(){var i,b,m,x,tr;return i=a,(b=Bt())!==r&&Hr()!==r?((m=Lt())===r&&(m=null),m===r?(a=i,i=r):(an=i,x=b,(tr=m)&&(x.array_index=tr),i=b=x)):(a=i,i=r),i}function Cn(){var i,b,m,x,tr,Cr;if(i=a,t.substr(a,1).toLowerCase()==="e"?(b=t.charAt(a),a++):(b=r,nt===0&&Ht(Ap)),b!==r)if(t.charCodeAt(a)===39?(m="'",a++):(m=r,nt===0&&Ht(pa)),m!==r)if(Hr()!==r){for(x=[],tr=bl();tr!==r;)x.push(tr),tr=bl();x!==r&&(tr=Hr())!==r?(t.charCodeAt(a)===39?(Cr="'",a++):(Cr=r,nt===0&&Ht(pa)),Cr===r?(a=i,i=r):(an=i,i=b={type:"default",value:`E'${x.join("")}'`})):(a=i,i=r)}else a=i,i=r;else a=i,i=r;else a=i,i=r;return i}function Hn(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn;if((i=Cn())===r&&(i=a,b=a,(m=js())!==r&&(x=Hr())!==r&&(tr=Mo())!==r?b=m=[m,x,tr]:(a=b,b=r),b===r&&(b=null),b!==r&&(m=Hr())!==r&&(x=Gu())!==r?(an=i,i=b=(function(xn){let f=xn&&xn[0]||null;return lr.add(`select::${f}::(.*)`),{type:"column_ref",table:f,column:"*"}})(b)):(a=i,i=r),i===r)){if(i=a,(b=js())!==r)if(m=a,(x=Hr())!==r&&(tr=Mo())!==r&&(Cr=Hr())!==r&&(gr=js())!==r?m=x=[x,tr,Cr,gr]:(a=m,m=r),m!==r){if(x=[],tr=a,(Cr=Hr())!==r&&(gr=Mo())!==r&&(Yr=Hr())!==r&&(Rt=xe())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(a=tr,tr=r),tr!==r)for(;tr!==r;)x.push(tr),tr=a,(Cr=Hr())!==r&&(gr=Mo())!==r&&(Yr=Hr())!==r&&(Rt=xe())!==r?tr=Cr=[Cr,gr,Yr,Rt]:(a=tr,tr=r);else x=r;x===r?(a=i,i=r):(tr=a,(Cr=Hr())!==r&&(gr=kn())!==r?tr=Cr=[Cr,gr]:(a=tr,tr=r),tr===r&&(tr=null),tr===r?(a=i,i=r):(an=i,i=b=(function(xn,f,y,S){return y.length===1?(lr.add(`select::${xn}.${f[3]}::${y[0][3].value||y[0][3]}`),{type:"column_ref",schema:xn,table:f[3],column:y[0][3],collate:S&&S[1]}):{type:"column_ref",column:{expr:jn(Vt(".",xn,f[3]),y)},collate:S&&S[1]}})(b,m,x,tr)))}else a=i,i=r;else a=i,i=r;i===r&&(i=a,(b=js())!==r&&(m=Hr())!==r&&(x=Mo())!==r&&(tr=Hr())!==r&&(Cr=xe())!==r?(gr=a,(Yr=Hr())!==r&&(Rt=kn())!==r?gr=Yr=[Yr,Rt]:(a=gr,gr=r),gr===r&&(gr=null),gr===r?(a=i,i=r):(an=i,gt=b,Gt=Cr,rn=gr,lr.add(`select::${gt}::${Gt}`),i=b={type:"column_ref",table:gt,column:Gt,collate:rn&&rn[1]})):(a=i,i=r),i===r&&(i=a,(b=xe())===r?(a=i,i=r):(m=a,(x=Hr())!==r&&(tr=kn())!==r?m=x=[x,tr]:(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(xn,f){return lr.add("select::null::"+xn),{type:"column_ref",table:null,column:xn,collate:f&&f[1]}})(b,m)))))}return i}function qn(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=xe())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=xe())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=xe())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function Cs(){var i,b;return i=a,(b=fo())!==r&&(an=i,b={type:"default",value:b}),(i=b)===r&&(i=tu()),i}function js(){var i,b;return i=a,(b=fo())===r?(a=i,i=r):(an=a,(Dp(b)?r:void 0)===r?(a=i,i=r):(an=i,i=b=b)),i===r&&(i=a,(b=Ru())!==r&&(an=i,b=b),i=b),i}function qe(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=js())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=js())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=js())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function bo(){var i,b,m,x,tr,Cr,gr,Yr,Rt;return i=a,(b=fo())===r?(a=i,i=r):(an=a,((function(gt){return tt[gt.toUpperCase()]===!0})(b)?r:void 0)===r?(a=i,i=r):(m=a,(x=Hr())!==r&&(tr=Ko())!==r&&(Cr=Hr())!==r&&(gr=qn())!==r&&(Yr=Hr())!==r&&(Rt=Wr())!==r?m=x=[x,tr,Cr,gr,Yr,Rt]:(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(gt,Gt){return Gt?`${gt}(${Gt[3].join(", ")})`:gt})(b,m)))),i===r&&(i=a,(b=Ru())!==r&&(an=i,b=b),i=b),i}function tu(){var i;return(i=Je())===r&&(i=hu())===r&&(i=Go()),i}function Ru(){var i,b;return i=a,(b=Je())===r&&(b=hu())===r&&(b=Go()),b!==r&&(an=i,b=b.value),i=b}function Je(){var i,b,m,x;if(i=a,t.charCodeAt(a)===34?(b='"',a++):(b=r,nt===0&&Ht(c0)),b!==r){if(m=[],$v.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht($p)),x!==r)for(;x!==r;)m.push(x),$v.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht($p));else m=r;m===r?(a=i,i=r):(t.charCodeAt(a)===34?(x='"',a++):(x=r,nt===0&&Ht(c0)),x===r?(a=i,i=r):(an=i,i=b={type:"double_quote_string",value:m.join("")}))}else a=i,i=r;return i}function hu(){var i,b,m,x;if(i=a,t.charCodeAt(a)===39?(b="'",a++):(b=r,nt===0&&Ht(pa)),b!==r){if(m=[],Pp.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(Pv)),x!==r)for(;x!==r;)m.push(x),Pp.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(Pv));else m=r;m===r?(a=i,i=r):(t.charCodeAt(a)===39?(x="'",a++):(x=r,nt===0&&Ht(pa)),x===r?(a=i,i=r):(an=i,i=b={type:"single_quote_string",value:m.join("")}))}else a=i,i=r;return i}function Go(){var i,b,m,x;if(i=a,t.charCodeAt(a)===96?(b="`",a++):(b=r,nt===0&&Ht(Gp)),b!==r){if(m=[],Fp.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(mp)),x!==r)for(;x!==r;)m.push(x),Fp.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(mp));else m=r;m===r?(a=i,i=r):(t.charCodeAt(a)===96?(x="`",a++):(x=r,nt===0&&Ht(Gp)),x===r?(a=i,i=r):(an=i,i=b={type:"backticks_quote_string",value:m.join("")}))}else a=i,i=r;return i}function nu(){var i;return(i=qs())===r&&(i=Ru()),i}function xe(){var i,b;return i=a,(b=qs())===r?(a=i,i=r):(an=a,(Dp(b)?r:void 0)===r?(a=i,i=r):(an=i,i=b=b)),i===r&&(i=Ru()),i}function qs(){var i,b,m,x;if(i=a,(b=Ks())!==r){for(m=[],x=eu();x!==r;)m.push(x),x=eu();m===r?(a=i,i=r):(an=i,i=b+=m.join(""))}else a=i,i=r;return i}function fo(){var i,b,m,x;if(i=a,(b=Ks())!==r){for(m=[],x=Vo();x!==r;)m.push(x),x=Vo();m===r?(a=i,i=r):(an=i,i=b+=m.join(""))}else a=i,i=r;return i}function Ks(){var i;return zp.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(Zp)),i}function Vo(){var i;return Gv.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(tp)),i}function eu(){var i;return Fv.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(yl)),i}function Jo(){var i,b,m,x;return i=a,b=a,t.charCodeAt(a)===58?(m=":",a++):(m=r,nt===0&&Ht(jc)),m!==r&&(x=fo())!==r?b=m=[m,x]:(a=b,b=r),b!==r&&(an=i,b={type:"param",value:b[1]}),i=b}function Bu(){var i,b,m;return i=a,Xo()!==r&&Hr()!==r&&Yf()!==r&&Hr()!==r&&(b=An())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r?((m=Nr())===r&&(m=null),m!==r&&Hr()!==r&&Wr()!==r?(an=i,i={type:"on update",keyword:b,parentheses:!0,expr:m}):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,Xo()!==r&&Hr()!==r&&Yf()!==r&&Hr()!==r&&(b=An())!==r?(an=i,i=(function(x){return{type:"on update",keyword:x}})(b)):(a=i,i=r)),i}function oa(){var i,b,m,x,tr;return i=a,t.substr(a,4).toLowerCase()==="over"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(fv)),b!==r&&Hr()!==r&&(m=$n())!==r?(an=i,i=b={type:"window",as_window_specification:m}):(a=i,i=r),i===r&&(i=a,t.substr(a,4).toLowerCase()==="over"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(fv)),b!==r&&Hr()!==r&&(m=Ko())!==r&&Hr()!==r?((x=ne())===r&&(x=null),x!==r&&Hr()!==r?((tr=Is())===r&&(tr=null),tr!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b={partitionby:x,orderby:tr}):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i===r&&(i=Bu())),i}function Nu(){var i,b,m;return i=a,t.substr(a,6).toLowerCase()==="ignore"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(jv)),b===r&&(t.substr(a,7).toLowerCase()==="respect"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(Tp))),b!==r&&Hr()!==r?(t.substr(a,5).toLowerCase()==="nulls"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(cf)),m===r?(a=i,i=r):(an=i,i=b=b.toUpperCase()+" NULLS")):(a=i,i=r),i}function cu(){var i,b;return i=a,Fo()!==r&&Hr()!==r&&(b=fl())!==r?(an=i,i={symbol:ke,delimiter:b}):(a=i,i=r),i}function le(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt;if(i=a,(b=Er())===r&&(b=null),b!==r)if(Hr()!==r)if((m=Ko())!==r)if(Hr()!==r)if((x=fn())!==r)if(Hr()!==r)if((tr=Wr())!==r)if(Hr()!==r){for(Cr=[],gr=a,(Yr=Hr())===r?(a=gr,gr=r):((Rt=Ns())===r&&(Rt=Fs()),Rt!==r&&(gt=Hr())!==r&&(Gt=fn())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r));gr!==r;)Cr.push(gr),gr=a,(Yr=Hr())===r?(a=gr,gr=r):((Rt=Ns())===r&&(Rt=Fs()),Rt!==r&&(gt=Hr())!==r&&(Gt=fn())!==r?gr=Yr=[Yr,Rt,gt,Gt]:(a=gr,gr=r));Cr!==r&&(gr=Hr())!==r?((Yr=cu())===r&&(Yr=null),Yr!==r&&(Rt=Hr())!==r?((gt=Is())===r&&(gt=null),gt===r?(a=i,i=r):(an=i,i=b=(function(rn,xn,f,y,S){let W=f.length,vr=xn;vr.parentheses=!0;for(let _r=0;_r<W;++_r)vr=Vt(f[_r][1],vr,f[_r][3]);return{distinct:rn,expr:vr,orderby:S,separator:y}})(b,x,Cr,Yr,gt))):(a=i,i=r)):(a=i,i=r)}else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;return i===r&&(i=a,(b=Er())===r&&(b=null),b!==r&&Hr()!==r&&(m=bt())!==r&&Hr()!==r?((x=cu())===r&&(x=null),x!==r&&Hr()!==r?((tr=Is())===r&&(tr=null),tr===r?(a=i,i=r):(an=i,i=b=(function(rn,xn,f,y){return{distinct:rn,expr:xn,orderby:y,separator:f}})(b,m,x,tr))):(a=i,i=r)):(a=i,i=r)),i}function vu(){var i,b,m;return i=a,(b=(function(){var x;return t.substr(a,4).toLowerCase()==="both"?(x=t.substr(a,4),a+=4):(x=r,nt===0&&Ht(nd)),x===r&&(t.substr(a,7).toLowerCase()==="leading"?(x=t.substr(a,7),a+=7):(x=r,nt===0&&Ht(Bp)),x===r&&(t.substr(a,8).toLowerCase()==="trailing"?(x=t.substr(a,8),a+=8):(x=r,nt===0&&Ht(Hp)))),x})())===r&&(b=null),b!==r&&Hr()!==r?((m=fn())===r&&(m=null),m!==r&&Hr()!==r&&Xc()!==r?(an=i,i=b=(function(x,tr,Cr){let gr=[];return x&&gr.push({type:"origin",value:x}),tr&&gr.push(tr),gr.push({type:"origin",value:"from"}),{type:"expr_list",value:gr}})(b,m)):(a=i,i=r)):(a=i,i=r),i}function Ee(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="trim"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(gp)),b!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r?((m=vu())===r&&(m=null),m!==r&&Hr()!==r&&(x=fn())!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b=(function(tr,Cr){let gr=tr||{type:"expr_list",value:[]};return gr.value.push(Cr),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:gr,...Ct()}})(m,x)):(a=i,i=r)):(a=i,i=r),i}function yi(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="crosstab"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(sd)),b!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(m=Nr())!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r&&qo()!==r&&Hr()!==r&&fo()!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(x=yt())!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b={type:"tablefunc",name:{name:[{type:"origin",value:"crosstab"}]},args:m,as:{type:"function",name:{name:[{type:"default",value:name}]},args:{type:"expr_list",value:x.map(tr=>({...tr,type:"column_definition"}))},...Ct()},...Ct()}):(a=i,i=r),i}function Rc(){var i,b,m,x,tr,Cr,gr;return(i=Ee())===r&&(i=yi())===r&&(i=a,t.substr(a,3).toLowerCase()==="now"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(ed)),b!==r&&Hr()!==r&&(m=Ko())!==r&&Hr()!==r?((x=Nr())===r&&(x=null),x!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?(t.substr(a,2).toLowerCase()==="at"?(tr=t.substr(a,2),a+=2):(tr=r,nt===0&&Ht(Yp)),tr!==r&&Hr()!==r&&Qr()!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="zone"?(Cr=t.substr(a,4),a+=4):(Cr=r,nt===0&&Ht(od)),Cr!==r&&Hr()!==r&&(gr=fl())!==r?(an=i,i=b=(function(Yr,Rt,gt){return gt.prefix="at time zone",{type:"function",name:{name:[{type:"default",value:Yr}]},args:Rt||{type:"expr_list",value:[]},suffix:gt,...Ct()}})(b,x,gr)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r)):(a=i,i=r),i===r&&(i=a,(b=(function(){var Yr;return(Yr=vc())===r&&(Yr=Mn())===r&&(Yr=(function(){var Rt=a,gt,Gt,rn;return t.substr(a,4).toLowerCase()==="user"?(gt=t.substr(a,4),a+=4):(gt=r,nt===0&&Ht(h0)),gt===r?(a=Rt,Rt=r):(Gt=a,nt++,rn=Ks(),nt--,rn===r?Gt=void 0:(a=Gt,Gt=r),Gt===r?(a=Rt,Rt=r):(an=Rt,Rt=gt="USER")),Rt})())===r&&(Yr=as())===r&&(Yr=(function(){var Rt=a,gt,Gt,rn;return t.substr(a,11).toLowerCase()==="system_user"?(gt=t.substr(a,11),a+=11):(gt=r,nt===0&&Ht(Se)),gt===r?(a=Rt,Rt=r):(Gt=a,nt++,rn=Ks(),nt--,rn===r?Gt=void 0:(a=Gt,Gt=r),Gt===r?(a=Rt,Rt=r):(an=Rt,Rt=gt="SYSTEM_USER")),Rt})())===r&&(t.substr(a,5).toLowerCase()==="ntile"?(Yr=t.substr(a,5),a+=5):(Yr=r,nt===0&&Ht(Qt))),Yr})())!==r&&Hr()!==r&&(m=Ko())!==r&&Hr()!==r?((x=Nr())===r&&(x=null),x!==r&&Hr()!==r&&Wr()!==r&&Hr()!==r?((tr=oa())===r&&(tr=null),tr===r?(a=i,i=r):(an=i,i=b=(function(Yr,Rt,gt){return{type:"function",name:{name:[{type:"default",value:Yr}]},args:Rt||{type:"expr_list",value:[]},over:gt,...Ct()}})(b,x,tr))):(a=i,i=r)):(a=i,i=r),i===r&&(i=(function(){var Yr=a,Rt,gt,Gt,rn;(Rt=ee())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(gt=Wa())!==r&&Hr()!==r&&Xc()!==r&&Hr()!==r?((Gt=Pt())===r&&(Gt=Rn())===r&&(Gt=Qr())===r&&(Gt=g()),Gt===r&&(Gt=null),Gt!==r&&Hr()!==r&&(rn=fn())!==r&&Hr()!==r&&Wr()!==r?(an=Yr,xn=gt,f=Gt,y=rn,Rt={type:Rt.toLowerCase(),args:{field:xn,cast_type:f,source:y},...Ct()},Yr=Rt):(a=Yr,Yr=r)):(a=Yr,Yr=r);var xn,f,y;return Yr===r&&(Yr=a,(Rt=ee())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r&&(gt=Wa())!==r&&Hr()!==r&&Xc()!==r&&Hr()!==r&&(Gt=fn())!==r&&Hr()!==r&&(rn=Wr())!==r?(an=Yr,Rt=(function(S,W,vr){return{type:S.toLowerCase(),args:{field:W,source:vr},...Ct()}})(Rt,gt,Gt),Yr=Rt):(a=Yr,Yr=r)),Yr})())===r&&(i=a,(b=vc())!==r&&Hr()!==r?((m=Bu())===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b={type:"function",name:{name:[{type:"origin",value:b}]},over:m,...Ct()})):(a=i,i=r),i===r&&(i=a,(b=os())!==r&&Hr()!==r&&(m=Ko())!==r&&Hr()!==r?((x=gn())===r&&(x=null),x!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b=(function(Yr,Rt){return Rt&&Rt.type!=="expr_list"&&(Rt={type:"expr_list",value:[Rt]}),{type:"function",name:Yr,args:Rt||{type:"expr_list",value:[]},...Ct()}})(b,x)):(a=i,i=r)):(a=i,i=r))))),i}function Wa(){var i,b;return i=a,t.substr(a,7).toLowerCase()==="century"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(ud)),b===r&&(t.substr(a,3).toLowerCase()==="day"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(Rp)),b===r&&(t.substr(a,4).toLowerCase()==="date"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(O)),b===r&&(t.substr(a,6).toLowerCase()==="decade"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(ps)),b===r&&(t.substr(a,3).toLowerCase()==="dow"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(Bv)),b===r&&(t.substr(a,3).toLowerCase()==="doy"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(Lf)),b===r&&(t.substr(a,5).toLowerCase()==="epoch"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(Hv)),b===r&&(t.substr(a,4).toLowerCase()==="hour"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(on)),b===r&&(t.substr(a,6).toLowerCase()==="isodow"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(zs)),b===r&&(t.substr(a,7).toLowerCase()==="isoyear"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(Bc)),b===r&&(t.substr(a,12).toLowerCase()==="microseconds"?(b=t.substr(a,12),a+=12):(b=r,nt===0&&Ht(vv)),b===r&&(t.substr(a,10).toLowerCase()==="millennium"?(b=t.substr(a,10),a+=10):(b=r,nt===0&&Ht(ep)),b===r&&(t.substr(a,12).toLowerCase()==="milliseconds"?(b=t.substr(a,12),a+=12):(b=r,nt===0&&Ht(Rs)),b===r&&(t.substr(a,6).toLowerCase()==="minute"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Np)),b===r&&(t.substr(a,5).toLowerCase()==="month"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(Wp)),b===r&&(t.substr(a,7).toLowerCase()==="quarter"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(cd)),b===r&&(t.substr(a,6).toLowerCase()==="second"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Vb)),b===r&&(t.substr(a,8).toLowerCase()==="timezone"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(_)),b===r&&(t.substr(a,13).toLowerCase()==="timezone_hour"?(b=t.substr(a,13),a+=13):(b=r,nt===0&&Ht(Ls)),b===r&&(t.substr(a,15).toLowerCase()==="timezone_minute"?(b=t.substr(a,15),a+=15):(b=r,nt===0&&Ht(pv)),b===r&&(t.substr(a,4).toLowerCase()==="week"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Cf)),b===r&&(t.substr(a,4).toLowerCase()==="year"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(dv))))))))))))))))))))))),b!==r&&(an=i,b=b),i=b}function vc(){var i;return(i=(function(){var b=a,m,x,tr;return t.substr(a,12).toLowerCase()==="current_date"?(m=t.substr(a,12),a+=12):(m=r,nt===0&&Ht(qi)),m===r?(a=b,b=r):(x=a,nt++,tr=Ks(),nt--,tr===r?x=void 0:(a=x,x=r),x===r?(a=b,b=r):(an=b,b=m="CURRENT_DATE")),b})())===r&&(i=(function(){var b=a,m,x,tr;return t.substr(a,12).toLowerCase()==="current_time"?(m=t.substr(a,12),a+=12):(m=r,nt===0&&Ht(Ri)),m===r?(a=b,b=r):(x=a,nt++,tr=Ks(),nt--,tr===r?x=void 0:(a=x,x=r),x===r?(a=b,b=r):(an=b,b=m="CURRENT_TIME")),b})())===r&&(i=An()),i}function Ev(){var i,b,m,x,tr,Cr;if(i=a,b=[],m=a,(x=Pe())!==r&&(tr=Hr())!==r&&(Cr=E())!==r?m=x=[x,tr,Cr]:(a=m,m=r),m!==r)for(;m!==r;)b.push(m),m=a,(x=Pe())!==r&&(tr=Hr())!==r&&(Cr=E())!==r?m=x=[x,tr,Cr]:(a=m,m=r);else b=r;return b!==r&&(m=Hr())!==r?((x=Zr())===r&&(x=null),x===r?(a=i,i=r):(an=i,i=b={as:x,symbol:"::",target:b.map(gr=>gr[2])})):(a=i,i=r),i}function cb(){var i;return(i=fl())===r&&(i=Xi())===r&&(i=A0())===r&&(i=hi())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr;if((m=Qr())===r&&(m=g())===r&&(m=Pt())===r&&(m=Gr()),m!==r)if(Hr()!==r){if(x=a,t.charCodeAt(a)===39?(tr="'",a++):(tr=r,nt===0&&Ht(pa)),tr!==r){for(Cr=[],gr=bl();gr!==r;)Cr.push(gr),gr=bl();Cr===r?(a=x,x=r):(t.charCodeAt(a)===39?(gr="'",a++):(gr=r,nt===0&&Ht(pa)),gr===r?(a=x,x=r):x=tr=[tr,Cr,gr])}else a=x,x=r;x===r?(a=b,b=r):(an=b,Yr=x,m={type:m.toLowerCase(),value:Yr[1].join("")},b=m)}else a=b,b=r;else a=b,b=r;var Yr;if(b===r)if(b=a,(m=Qr())===r&&(m=g())===r&&(m=Pt())===r&&(m=Gr()),m!==r)if(Hr()!==r){if(x=a,t.charCodeAt(a)===34?(tr='"',a++):(tr=r,nt===0&&Ht(c0)),tr!==r){for(Cr=[],gr=Av();gr!==r;)Cr.push(gr),gr=Av();Cr===r?(a=x,x=r):(t.charCodeAt(a)===34?(gr='"',a++):(gr=r,nt===0&&Ht(c0)),gr===r?(a=x,x=r):x=tr=[tr,Cr,gr])}else a=x,x=r;x===r?(a=b,b=r):(an=b,m=(function(Rt,gt){return{type:Rt.toLowerCase(),value:gt[1].join("")}})(m,x),b=m)}else a=b,b=r;else a=b,b=r;return b})())===r&&(i=ad()),i}function ad(){var i,b;return i=a,ue()!==r&&Hr()!==r&&Aa()!==r&&Hr()!==r?((b=Nr())===r&&(b=null),b!==r&&Hr()!==r&&Lc()!==r?(an=i,i=(function(m,x){return{expr_list:x||{type:"origin",value:""},type:"array",keyword:"array",brackets:!0}})(0,b)):(a=i,i=r)):(a=i,i=r),i}function hi(){var i,b;return i=a,(b=Tt())!==r&&(an=i,b={type:"null",value:null}),i=b}function ap(){var i,b;return i=a,(b=(function(){var m=a,x,tr,Cr;return t.substr(a,8).toLowerCase()==="not null"?(x=t.substr(a,8),a+=8):(x=r,nt===0&&Ht(yf)),x===r?(a=m,m=r):(tr=a,nt++,Cr=Ks(),nt--,Cr===r?tr=void 0:(a=tr,tr=r),tr===r?(a=m,m=r):m=x=[x,tr]),m})())!==r&&(an=i,b={type:"not null",value:"not null"}),i=b}function A0(){var i,b;return i=a,(b=(function(){var m=a,x,tr,Cr;return t.substr(a,4).toLowerCase()==="true"?(x=t.substr(a,4),a+=4):(x=r,nt===0&&Ht(X0)),x===r?(a=m,m=r):(tr=a,nt++,Cr=Ks(),nt--,Cr===r?tr=void 0:(a=tr,tr=r),tr===r?(a=m,m=r):m=x=[x,tr]),m})())!==r&&(an=i,b={type:"bool",value:!0}),(i=b)===r&&(i=a,(b=(function(){var m=a,x,tr,Cr;return t.substr(a,5).toLowerCase()==="false"?(x=t.substr(a,5),a+=5):(x=r,nt===0&&Ht(p0)),x===r?(a=m,m=r):(tr=a,nt++,Cr=Ks(),nt--,Cr===r?tr=void 0:(a=tr,tr=r),tr===r?(a=m,m=r):m=x=[x,tr]),m})())!==r&&(an=i,b={type:"bool",value:!1}),i=b),i}function fl(){var i,b,m,x,tr,Cr,gr,Yr,Rt;if(i=a,b=a,t.charCodeAt(a)===39?(m="'",a++):(m=r,nt===0&&Ht(pa)),m!==r){for(x=[],tr=bl();tr!==r;)x.push(tr),tr=bl();x===r?(a=b,b=r):(t.charCodeAt(a)===39?(tr="'",a++):(tr=r,nt===0&&Ht(pa)),tr===r?(a=b,b=r):b=m=[m,x,tr])}else a=b,b=r;if(b!==r){if(m=[],Xs.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(ic)),x!==r)for(;x!==r;)m.push(x),Xs.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(ic));else m=r;if(m!==r)if((x=Hr())!==r){if(tr=a,t.charCodeAt(a)===39?(Cr="'",a++):(Cr=r,nt===0&&Ht(pa)),Cr!==r){for(gr=[],Yr=bl();Yr!==r;)gr.push(Yr),Yr=bl();gr===r?(a=tr,tr=r):(t.charCodeAt(a)===39?(Yr="'",a++):(Yr=r,nt===0&&Ht(pa)),Yr===r?(a=tr,tr=r):tr=Cr=[Cr,gr,Yr])}else a=tr,tr=r;tr===r?(a=i,i=r):(an=i,Rt=tr,i=b={type:"single_quote_string",value:`${b[1].join("")}${Rt[1].join("")}`})}else a=i,i=r;else a=i,i=r}else a=i,i=r;if(i===r){if(i=a,b=a,t.charCodeAt(a)===39?(m="'",a++):(m=r,nt===0&&Ht(pa)),m!==r){for(x=[],tr=bl();tr!==r;)x.push(tr),tr=bl();x===r?(a=b,b=r):(t.charCodeAt(a)===39?(tr="'",a++):(tr=r,nt===0&&Ht(pa)),tr===r?(a=b,b=r):b=m=[m,x,tr])}else a=b,b=r;if(b!==r&&(an=i,b=(function(gt){return{type:"single_quote_string",value:gt[1].join("")}})(b)),(i=b)===r){if(i=a,b=a,t.charCodeAt(a)===34?(m='"',a++):(m=r,nt===0&&Ht(c0)),m!==r){for(x=[],tr=Av();tr!==r;)x.push(tr),tr=Av();x===r?(a=b,b=r):(t.charCodeAt(a)===34?(tr='"',a++):(tr=r,nt===0&&Ht(c0)),tr===r?(a=b,b=r):b=m=[m,x,tr])}else a=b,b=r;b===r?(a=i,i=r):(m=a,nt++,x=Mo(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b=(function(gt){return{type:"double_quote_string",value:gt[1].join("")}})(b)))}}return i}function Av(){var i;return op.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(Kb)),i===r&&(i=gu()),i}function bl(){var i;return ys.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(_p)),i===r&&(i=gu()),i}function gu(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt;return i=a,t.substr(a,2)==="\\'"?(b="\\'",a+=2):(b=r,nt===0&&Ht(Yv)),b!==r&&(an=i,b="\\'"),(i=b)===r&&(i=a,t.substr(a,2)==='\\"'?(b='\\"',a+=2):(b=r,nt===0&&Ht(Lv)),b!==r&&(an=i,b='\\"'),(i=b)===r&&(i=a,t.substr(a,2)==="\\\\"?(b="\\\\",a+=2):(b=r,nt===0&&Ht(Wv)),b!==r&&(an=i,b="\\\\"),(i=b)===r&&(i=a,t.substr(a,2)==="\\/"?(b="\\/",a+=2):(b=r,nt===0&&Ht(zb)),b!==r&&(an=i,b="\\/"),(i=b)===r&&(i=a,t.substr(a,2)==="\\b"?(b="\\b",a+=2):(b=r,nt===0&&Ht(wf)),b!==r&&(an=i,b="\b"),(i=b)===r&&(i=a,t.substr(a,2)==="\\f"?(b="\\f",a+=2):(b=r,nt===0&&Ht(qv)),b!==r&&(an=i,b="\f"),(i=b)===r&&(i=a,t.substr(a,2)==="\\n"?(b="\\n",a+=2):(b=r,nt===0&&Ht(Cv)),b!==r&&(an=i,b=` +`),(i=b)===r&&(i=a,t.substr(a,2)==="\\r"?(b="\\r",a+=2):(b=r,nt===0&&Ht(rb)),b!==r&&(an=i,b="\r"),(i=b)===r&&(i=a,t.substr(a,2)==="\\t"?(b="\\t",a+=2):(b=r,nt===0&&Ht(tb)),b!==r&&(an=i,b=" "),(i=b)===r&&(i=a,t.substr(a,2)==="\\u"?(b="\\u",a+=2):(b=r,nt===0&&Ht(I)),b!==r&&(m=rv())!==r&&(x=rv())!==r&&(tr=rv())!==r&&(Cr=rv())!==r?(an=i,gr=m,Yr=x,Rt=tr,gt=Cr,i=b=String.fromCharCode(parseInt("0x"+gr+Yr+Rt+gt))):(a=i,i=r),i===r&&(i=a,t.charCodeAt(a)===92?(b="\\",a++):(b=r,nt===0&&Ht(us)),b!==r&&(an=i,b="\\"),(i=b)===r&&(i=a,t.substr(a,2)==="''"?(b="''",a+=2):(b=r,nt===0&&Ht(Sb)),b!==r&&(an=i,b="''"),i=b))))))))))),i}function Xi(){var i,b,m;return i=a,(b=(function(){var x=a,tr,Cr,gr;return(tr=Du())===r&&(tr=null),tr!==r&&(Cr=Hu())!==r&&(gr=vl())!==r?(an=x,x=tr={type:"bigint",value:(tr||"")+Cr+gr}):(a=x,x=r),x===r&&(x=a,(tr=Du())===r&&(tr=null),tr!==r&&(Cr=Hu())!==r?(an=x,tr=(function(Yr,Rt){let gt=(Yr||"")+Rt;return Yr&&In(Yr)?{type:"bigint",value:gt}:parseFloat(gt).toFixed(Rt.length-1)})(tr,Cr),x=tr):(a=x,x=r),x===r&&(x=a,(tr=Du())!==r&&(Cr=vl())!==r?(an=x,tr=(function(Yr,Rt){return{type:"bigint",value:Yr+Rt}})(tr,Cr),x=tr):(a=x,x=r),x===r&&(x=a,(tr=Du())!==r&&(an=x,tr=(function(Yr){return In(Yr)?{type:"bigint",value:Yr}:parseFloat(Yr)})(tr)),x=tr))),x})())!==r&&(an=i,b=(m=b)&&m.type==="bigint"?m:{type:"number",value:m}),i=b}function Du(){var i,b,m;return(i=rc())===r&&(i=Ei())===r&&(i=a,t.charCodeAt(a)===45?(b="-",a++):(b=r,nt===0&&Ht(O0)),b===r&&(t.charCodeAt(a)===43?(b="+",a++):(b=r,nt===0&&Ht(gb))),b!==r&&(m=rc())!==r?(an=i,i=b+=m):(a=i,i=r),i===r&&(i=a,t.charCodeAt(a)===45?(b="-",a++):(b=r,nt===0&&Ht(O0)),b===r&&(t.charCodeAt(a)===43?(b="+",a++):(b=r,nt===0&&Ht(gb))),b!==r&&(m=Ei())!==r?(an=i,i=b=(function(x,tr){return x+tr})(b,m)):(a=i,i=r))),i}function Hu(){var i,b,m;return i=a,t.charCodeAt(a)===46?(b=".",a++):(b=r,nt===0&&Ht(zt)),b!==r&&(m=rc())!==r?(an=i,i=b="."+m):(a=i,i=r),i}function vl(){var i,b,m;return i=a,(b=(function(){var x=a,tr,Cr;is.test(t.charAt(a))?(tr=t.charAt(a),a++):(tr=r,nt===0&&Ht(el)),tr===r?(a=x,x=r):(Ti.test(t.charAt(a))?(Cr=t.charAt(a),a++):(Cr=r,nt===0&&Ht(wv)),Cr===r&&(Cr=null),Cr===r?(a=x,x=r):(an=x,x=tr+=(gr=Cr)===null?"":gr));var gr;return x})())!==r&&(m=rc())!==r?(an=i,i=b+=m):(a=i,i=r),i}function rc(){var i,b,m;if(i=a,b=[],(m=Ei())!==r)for(;m!==r;)b.push(m),m=Ei();else b=r;return b!==r&&(an=i,b=b.join("")),i=b}function Ei(){var i;return $s.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(ja)),i}function rv(){var i;return Ob.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(jf)),i}function Tt(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="null"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Zc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Rf(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="default"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(yc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function ga(){var i,b,m,x;return i=a,t.substr(a,2).toLowerCase()==="to"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(r0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function _i(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="show"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(up)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Nc(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="drop"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(xb)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="DROP")),i}function Ai(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="alter"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(yv)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function tc(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="select"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Jb)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Yf(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="update"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(hv)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function sf(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="create"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(h)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function mv(){var i,b,m,x;return i=a,t.substr(a,9).toLowerCase()==="temporary"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(ss)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function pc(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="temp"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Xl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Si(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="delete"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(d0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function _c(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="insert"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Bf)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Tv(){var i,b,m,x;return i=a,t.substr(a,9).toLowerCase()==="recursive"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(jt)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="RECURSIVE")),i}function ef(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="replace"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(Us)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function ip(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="rename"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(sb)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Uu(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="ignore"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(jv)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Sc(){var i,b,m,x;return i=a,t.substr(a,9).toLowerCase()==="partition"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(eb)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="PARTITION")),i}function of(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="into"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(p)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Xc(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="from"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(ns)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function qa(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="set"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(hb)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="SET")),i}function qo(){var i,b,m,x;return i=a,t.substr(a,2).toLowerCase()==="as"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(Vl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Oc(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="table"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(Fc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="TABLE")),i}function Yo(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="schema"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Ae)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="SCHEMA")),i}function Xo(){var i,b,m,x;return i=a,t.substr(a,2).toLowerCase()==="on"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(nl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function $l(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="join"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(x0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function m0(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="outer"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(Zn)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function G0(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="values"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Kn)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function va(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="using"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(zi)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Nf(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="with"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(kv)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Xu(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="group"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(zl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function ot(){var i,b,m,x;return i=a,t.substr(a,2).toLowerCase()==="by"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(Ot)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Xv(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="order"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(hs)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function R(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="asc"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(Bn)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="ASC")),i}function B(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="desc"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Qb)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="DESC")),i}function cr(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="all"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(C0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="ALL")),i}function Er(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="distinct"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(Hf)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="DISTINCT")),i}function vt(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="between"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(k0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="BETWEEN")),i}function it(){var i,b,m,x;return i=a,t.substr(a,2).toLowerCase()==="in"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(Hb)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="IN")),i}function Et(){var i,b,m,x;return i=a,t.substr(a,2).toLowerCase()==="is"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(M0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="IS")),i}function $t(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="like"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Wi)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="LIKE")),i}function en(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="ilike"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(wa)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="ILIKE")),i}function hn(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="exists"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Oa)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="EXISTS")),i}function ds(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="not"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(zc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="NOT")),i}function Ns(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="and"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(ti)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="AND")),i}function Fs(){var i,b,m,x;return i=a,t.substr(a,2).toLowerCase()==="or"?(b=t.substr(a,2),a+=2):(b=r,nt===0&&Ht(We)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="OR")),i}function ue(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="array"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(ob)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="ARRAY")),i}function ee(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="extract"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(Ye)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="EXTRACT")),i}function ie(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="case"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(z0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function ro(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="when"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(ub)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function $e(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="else"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Su)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function Gs(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="end"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(ua)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):i=b=[b,m]),i}function iu(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="cast"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Al)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="CAST")),i}function Oo(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="char"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(mc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="CHAR")),i}function wu(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="varchar"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(Tc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="VARCHAR")),i}function Ea(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="numeric"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(y0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="NUMERIC")),i}function Do(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="decimal"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(bi)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="DECIMAL")),i}function Ka(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="unsigned"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(Z0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="UNSIGNED")),i}function dc(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="int"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(lc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="INT")),i}function _f(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="integer"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(ab)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="INTEGER")),i}function La(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="smallint"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(aa)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="SMALLINT")),i}function Db(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="serial"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Tf)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="SERIAL")),i}function Wf(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="tinyint"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(If)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="TINYINT")),i}function Wo(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="tinytext"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(Tl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="TINYTEXT")),i}function $b(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="text"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Ci)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="TEXT")),i}function pu(){var i,b,m,x;return i=a,t.substr(a,10).toLowerCase()==="mediumtext"?(b=t.substr(a,10),a+=10):(b=r,nt===0&&Ht(Q0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="MEDIUMTEXT")),i}function fu(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="longtext"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(ib)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="LONGTEXT")),i}function Vu(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="bigint"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(fa)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="BIGINT")),i}function ra(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="enum"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Zi)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="ENUM")),i}function fd(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="float"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(rf)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="FLOAT")),i}function w(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="double"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Ii)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="DOUBLE")),i}function G(){var i,b,m,x;return i=a,t.substr(a,9).toLowerCase()==="bigserial"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(Ge)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="BIGSERIAL")),i}function z(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="real"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht($0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="REAL")),i}function g(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="date"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(O)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="DATE")),i}function Gr(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="datetime"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(gf)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="DATETIME")),i}function Vr(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="rows"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Cl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="ROWS")),i}function Qr(){var i,b,m,x;return i=a,t.substr(a,4).toLowerCase()==="time"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(Zl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="TIME")),i}function Pt(){var i,b,m,x;return i=a,t.substr(a,9).toLowerCase()==="timestamp"?(b=t.substr(a,9),a+=9):(b=r,nt===0&&Ht(Xa)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="TIMESTAMP")),i}function wn(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="truncate"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(cc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="TRUNCATE")),i}function Rn(){var i,b,m,x;return i=a,t.substr(a,8).toLowerCase()==="interval"?(b=t.substr(a,8),a+=8):(b=r,nt===0&&Ht(Ji)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="INTERVAL")),i}function An(){var i,b,m,x;return i=a,t.substr(a,17).toLowerCase()==="current_timestamp"?(b=t.substr(a,17),a+=17):(b=r,nt===0&&Ht(qu)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="CURRENT_TIMESTAMP")),i}function Mn(){var i,b,m,x;return i=a,t.substr(a,12).toLowerCase()==="current_user"?(b=t.substr(a,12),a+=12):(b=r,nt===0&&Ht(H0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="CURRENT_USER")),i}function as(){var i,b,m,x;return i=a,t.substr(a,12).toLowerCase()==="session_user"?(b=t.substr(a,12),a+=12):(b=r,nt===0&&Ht(bf)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="SESSION_USER")),i}function cs(){var i;return t.charCodeAt(a)===36?(i="$",a++):(i=r,nt===0&&Ht(kp)),i}function _s(){var i;return t.substr(a,2)==="$$"?(i="$$",a+=2):(i=r,nt===0&&Ht(Ba)),i}function we(){var i;return(i=(function(){var b;return t.substr(a,2)==="@@"?(b="@@",a+=2):(b=r,nt===0&&Ht(qc)),b})())===r&&(i=(function(){var b;return t.charCodeAt(a)===64?(b="@",a++):(b=r,nt===0&&Ht(Jl)),b})())===r&&(i=cs())===r&&(i=cs()),i}function Pe(){var i;return t.substr(a,2)==="::"?(i="::",a+=2):(i=r,nt===0&&Ht(ya)),i}function jr(){var i;return t.charCodeAt(a)===61?(i="=",a++):(i=r,nt===0&&Ht(zn)),i}function oo(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="add"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(dn)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="ADD")),i}function Bo(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="column"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(fi)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="COLUMN")),i}function No(){var i,b,m,x;return i=a,t.substr(a,5).toLowerCase()==="index"?(b=t.substr(a,5),a+=5):(b=r,nt===0&&Ht(Ql)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="INDEX")),i}function lu(){var i,b,m,x;return i=a,t.substr(a,3).toLowerCase()==="key"?(b=t.substr(a,3),a+=3):(b=r,nt===0&&Ht(s0)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="KEY")),i}function ru(){var i,b,m,x;return i=a,t.substr(a,6).toLowerCase()==="unique"?(b=t.substr(a,6),a+=6):(b=r,nt===0&&Ht(Dc)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="UNIQUE")),i}function Me(){var i,b,m,x;return i=a,t.substr(a,7).toLowerCase()==="comment"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(lt)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="COMMENT")),i}function _u(){var i,b,m,x;return i=a,t.substr(a,10).toLowerCase()==="constraint"?(b=t.substr(a,10),a+=10):(b=r,nt===0&&Ht(Wl)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="CONSTRAINT")),i}function mo(){var i,b,m,x;return i=a,t.substr(a,12).toLowerCase()==="concurrently"?(b=t.substr(a,12),a+=12):(b=r,nt===0&&Ht(Wn)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="CONCURRENTLY")),i}function ho(){var i,b,m,x;return i=a,t.substr(a,10).toLowerCase()==="references"?(b=t.substr(a,10),a+=10):(b=r,nt===0&&Ht(Eu)),b===r?(a=i,i=r):(m=a,nt++,x=Ks(),nt--,x===r?m=void 0:(a=m,m=r),m===r?(a=i,i=r):(an=i,i=b="REFERENCES")),i}function Mo(){var i;return t.charCodeAt(a)===46?(i=".",a++):(i=r,nt===0&&Ht(zt)),i}function Fo(){var i;return t.charCodeAt(a)===44?(i=",",a++):(i=r,nt===0&&Ht(oi)),i}function Gu(){var i;return t.charCodeAt(a)===42?(i="*",a++):(i=r,nt===0&&Ht(v0)),i}function Ko(){var i;return t.charCodeAt(a)===40?(i="(",a++):(i=r,nt===0&&Ht(Tb)),i}function Wr(){var i;return t.charCodeAt(a)===41?(i=")",a++):(i=r,nt===0&&Ht(cp)),i}function Aa(){var i;return t.charCodeAt(a)===91?(i="[",a++):(i=r,nt===0&&Ht(yn)),i}function Lc(){var i;return t.charCodeAt(a)===93?(i="]",a++):(i=r,nt===0&&Ht(ka)),i}function Fu(){var i;return t.charCodeAt(a)===59?(i=";",a++):(i=r,nt===0&&Ht($f)),i}function Pi(){var i;return t.substr(a,2)==="->"?(i="->",a+=2):(i=r,nt===0&&Ht(Ua)),i}function F0(){var i;return t.substr(a,3)==="->>"?(i="->>",a+=3):(i=r,nt===0&&Ht(Ou)),i}function Zu(){var i;return(i=(function(){var b;return t.substr(a,2)==="||"?(b="||",a+=2):(b=r,nt===0&&Ht(Ff)),b})())===r&&(i=(function(){var b;return t.substr(a,2)==="&&"?(b="&&",a+=2):(b=r,nt===0&&Ht(il)),b})()),i}function Hr(){var i,b;for(i=[],(b=rr())===r&&(b=L());b!==r;)i.push(b),(b=rr())===r&&(b=L());return i}function pi(){var i,b;if(i=[],(b=rr())===r&&(b=L()),b!==r)for(;b!==r;)i.push(b),(b=rr())===r&&(b=L());else i=r;return i}function L(){var i;return(i=(function b(){var m=a,x,tr,Cr,gr,Yr,Rt;if(t.substr(a,2)==="/*"?(x="/*",a+=2):(x=r,nt===0&&Ht(zu)),x!==r){for(tr=[],Cr=a,gr=a,nt++,t.substr(a,2)==="*/"?(Yr="*/",a+=2):(Yr=r,nt===0&&Ht(Yu)),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=Cr,Cr=r):(Yr=a,nt++,t.substr(a,2)==="/*"?(Rt="/*",a+=2):(Rt=r,nt===0&&Ht(zu)),nt--,Rt===r?Yr=void 0:(a=Yr,Yr=r),Yr!==r&&(Rt=q())!==r?Cr=gr=[gr,Yr,Rt]:(a=Cr,Cr=r)),Cr===r&&(Cr=b());Cr!==r;)tr.push(Cr),Cr=a,gr=a,nt++,t.substr(a,2)==="*/"?(Yr="*/",a+=2):(Yr=r,nt===0&&Ht(Yu)),nt--,Yr===r?gr=void 0:(a=gr,gr=r),gr===r?(a=Cr,Cr=r):(Yr=a,nt++,t.substr(a,2)==="/*"?(Rt="/*",a+=2):(Rt=r,nt===0&&Ht(zu)),nt--,Rt===r?Yr=void 0:(a=Yr,Yr=r),Yr!==r&&(Rt=q())!==r?Cr=gr=[gr,Yr,Rt]:(a=Cr,Cr=r)),Cr===r&&(Cr=b());tr===r?(a=m,m=r):(t.substr(a,2)==="*/"?(Cr="*/",a+=2):(Cr=r,nt===0&&Ht(Yu)),Cr===r?(a=m,m=r):m=x=[x,tr,Cr])}else a=m,m=r;return m})())===r&&(i=(function(){var b=a,m,x,tr,Cr,gr;if(t.substr(a,2)==="--"?(m="--",a+=2):(m=r,nt===0&&Ht(lb)),m!==r){for(x=[],tr=a,Cr=a,nt++,gr=Dr(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr!==r&&(gr=q())!==r?tr=Cr=[Cr,gr]:(a=tr,tr=r);tr!==r;)x.push(tr),tr=a,Cr=a,nt++,gr=Dr(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr!==r&&(gr=q())!==r?tr=Cr=[Cr,gr]:(a=tr,tr=r);x===r?(a=b,b=r):b=m=[m,x]}else a=b,b=r;return b})()),i}function M(){var i,b,m,x;return i=a,(b=Me())!==r&&Hr()!==r?((m=jr())===r&&(m=null),m!==r&&Hr()!==r&&(x=fl())!==r?(an=i,i=b=(function(tr,Cr,gr){return{type:tr.toLowerCase(),keyword:tr.toLowerCase(),symbol:Cr,value:gr}})(b,m,x)):(a=i,i=r)):(a=i,i=r),i}function q(){var i;return t.length>a?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(Mi)),i}function rr(){var i;return ha.test(t.charAt(a))?(i=t.charAt(a),a++):(i=r,nt===0&&Ht(Ha)),i}function Dr(){var i,b;if((i=(function(){var m=a,x;return nt++,t.length>a?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(Mi)),nt--,x===r?m=void 0:(a=m,m=r),m})())===r)if(i=[],xl.test(t.charAt(a))?(b=t.charAt(a),a++):(b=r,nt===0&&Ht(nb)),b!==r)for(;b!==r;)i.push(b),xl.test(t.charAt(a))?(b=t.charAt(a),a++):(b=r,nt===0&&Ht(nb));else i=r;return i}function Xr(){var i,b;return i=a,an=a,H=[],r!==void 0&&Hr()!==r?((b=Jr())===r&&(b=(function(){var m=a,x;return(function(){var tr;return t.substr(a,6).toLowerCase()==="return"?(tr=t.substr(a,6),a+=6):(tr=r,nt===0&&Ht(Qi)),tr})()!==r&&Hr()!==r&&(x=Mt())!==r?(an=m,m={type:"return",expr:x}):(a=m,m=r),m})()),b===r?(a=i,i=r):(an=i,i={type:"proc",stmt:b,vars:H})):(a=i,i=r),i}function Jr(){var i,b,m,x;return i=a,(b=ws())===r&&(b=de()),b!==r&&Hr()!==r?((m=(function(){var tr;return t.substr(a,2)===":="?(tr=":=",a+=2):(tr=r,nt===0&&Ht(xc)),tr})())===r&&(m=jr()),m!==r&&Hr()!==r&&(x=Mt())!==r?(an=i,i=b={type:"assign",left:b,symbol:m,right:x}):(a=i,i=r)):(a=i,i=r),i}function Mt(){var i;return(i=bc())===r&&(i=(function(){var b=a,m,x,tr,Cr;return(m=ws())!==r&&Hr()!==r&&(x=Ar())!==r&&Hr()!==r&&(tr=ws())!==r&&Hr()!==r&&(Cr=pr())!==r?(an=b,b=m={type:"join",ltable:m,rtable:tr,op:x,on:Cr}):(a=b,b=r),b})())===r&&(i=nn())===r&&(i=(function(){var b=a,m;return Aa()!==r&&Hr()!==r&&(m=ls())!==r&&Hr()!==r&&Lc()!==r?(an=b,b={type:"array",value:m}):(a=b,b=r),b})()),i}function nn(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=On())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=mr())!==r&&(gr=Hr())!==r&&(Yr=On())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=mr())!==r&&(gr=Hr())!==r&&(Yr=On())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Xb(b,m))}else a=i,i=r;return i}function On(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=fr())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=pt())!==r&&(gr=Hr())!==r&&(Yr=fr())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=pt())!==r&&(gr=Hr())!==r&&(Yr=fr())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Xb(b,m))}else a=i,i=r;return i}function fr(){var i,b,m,x,tr,Cr,gr,Yr,Rt;return(i=cb())===r&&(i=ws())===r&&(i=Es())===r&&(i=Jo())===r&&(i=a,(b=Ko())!==r&&(m=Hr())!==r&&(x=nn())!==r&&(tr=Hr())!==r&&(Cr=Wr())!==r?(an=i,(Rt=x).parentheses=!0,i=b=Rt):(a=i,i=r),i===r&&(i=a,(b=fo())===r?(a=i,i=r):(m=a,(x=Mo())!==r&&(tr=Hr())!==r&&(Cr=fo())!==r?m=x=[x,tr,Cr]:(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(an=i,gr=b,i=b=(Yr=m)?{type:"column_ref",table:gr,column:Yr[2]}:{type:"var",name:gr,prefix:null})))),i}function os(){var i,b,m,x,tr,Cr,gr;return i=a,(b=Cs())===r?(a=i,i=r):(m=a,(x=Hr())!==r&&(tr=Mo())!==r&&(Cr=Hr())!==r&&(gr=Cs())!==r?m=x=[x,tr,Cr,gr]:(a=m,m=r),m===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(Yr,Rt){let gt={name:[Yr]};return Rt!==null&&(gt.schema=Yr,gt.name=[Rt[3]]),gt})(b,m))),i}function Es(){var i,b,m;return i=a,(b=os())!==r&&Hr()!==r&&Ko()!==r&&Hr()!==r?((m=ls())===r&&(m=null),m!==r&&Hr()!==r&&Wr()!==r?(an=i,i=b=(function(x,tr){return{type:"function",name:x,args:{type:"expr_list",value:tr},...Ct()}})(b,m)):(a=i,i=r)):(a=i,i=r),i}function ls(){var i,b,m,x,tr,Cr,gr,Yr;if(i=a,(b=fr())!==r){for(m=[],x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=fr())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);x!==r;)m.push(x),x=a,(tr=Hr())!==r&&(Cr=Fo())!==r&&(gr=Hr())!==r&&(Yr=fr())!==r?x=tr=[tr,Cr,gr,Yr]:(a=x,x=r);m===r?(a=i,i=r):(an=i,i=b=Tn(b,m))}else a=i,i=r;return i}function ws(){var i,b,m,x,tr,Cr,gr;if(i=a,(b=_s())!==r){for(m=[],ln.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(Oe));x!==r;)m.push(x),ln.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(Oe));m!==r&&(x=_s())!==r?(an=i,i=b={type:"var",name:m.join(""),prefix:"$$",suffix:"$$"}):(a=i,i=r)}else a=i,i=r;if(i===r){if(i=a,(b=cs())!==r)if((m=xe())!==r)if((x=cs())!==r){for(tr=[],ln.test(t.charAt(a))?(Cr=t.charAt(a),a++):(Cr=r,nt===0&&Ht(Oe));Cr!==r;)tr.push(Cr),ln.test(t.charAt(a))?(Cr=t.charAt(a),a++):(Cr=r,nt===0&&Ht(Oe));tr!==r&&(Cr=cs())!==r&&(gr=xe())!==r?(an=a,((function(Yr,Rt,gt){if(Yr!==gt)return!0})(m,0,gr)?r:void 0)!==r&&cs()!==r?(an=i,i=b=(function(Yr,Rt,gt){return{type:"var",name:Rt.join(""),prefix:`$${Yr}$`,suffix:`$${gt}$`}})(m,tr,gr)):(a=i,i=r)):(a=i,i=r)}else a=i,i=r;else a=i,i=r;else a=i,i=r;i===r&&(i=a,(b=we())!==r&&(m=de())!==r?(an=i,i=b=(function(Yr,Rt){return{type:"var",...Rt,prefix:Yr}})(b,m)):(a=i,i=r))}return i}function de(){var i,b,m,x,tr;return i=a,t.charCodeAt(a)===34?(b='"',a++):(b=r,nt===0&&Ht(c0)),b===r&&(b=null),b!==r&&(m=fo())!==r&&(x=(function(){var Cr=a,gr=[],Yr=a,Rt,gt;for(t.charCodeAt(a)===46?(Rt=".",a++):(Rt=r,nt===0&&Ht(zt)),Rt!==r&&(gt=fo())!==r?Yr=Rt=[Rt,gt]:(a=Yr,Yr=r);Yr!==r;)gr.push(Yr),Yr=a,t.charCodeAt(a)===46?(Rt=".",a++):(Rt=r,nt===0&&Ht(zt)),Rt!==r&&(gt=fo())!==r?Yr=Rt=[Rt,gt]:(a=Yr,Yr=r);return gr!==r&&(an=Cr,gr=(function(Gt){let rn=[];for(let xn=0;xn<Gt.length;xn++)rn.push(Gt[xn][1]);return rn})(gr)),Cr=gr})())!==r?(t.charCodeAt(a)===34?(tr='"',a++):(tr=r,nt===0&&Ht(c0)),tr===r&&(tr=null),tr===r?(a=i,i=r):(an=i,i=b=(function(Cr,gr,Yr,Rt){if(Cr&&!Rt||!Cr&&Rt)throw Error("double quoted not match");return H.push(gr),{type:"var",name:gr,members:Yr,quoted:Cr&&Rt?'"':null,prefix:null}})(b,m,x,tr))):(a=i,i=r),i===r&&(i=a,(b=Xi())!==r&&(an=i,b={type:"var",name:b.value,members:[],quoted:null,prefix:null}),i=b),i}function E(){var i;return(i=(function(){var b=a,m,x;(m=xr())===r&&(m=Z()),m!==r&&Hr()!==r&&Aa()!==r&&Hr()!==r&&(x=Lc())!==r&&Hr()!==r&&Aa()!==r&&Hr()!==r&&Lc()!==r?(an=b,tr=m,m={...tr,array:{dimension:2}},b=m):(a=b,b=r);var tr;return b===r&&(b=a,(m=xr())===r&&(m=Z()),m!==r&&Hr()!==r&&Aa()!==r&&Hr()!==r?((x=Xi())===r&&(x=null),x!==r&&Hr()!==r&&Lc()!==r?(an=b,m=(function(Cr,gr){return{...Cr,array:{dimension:1,length:[gr]}}})(m,x),b=m):(a=b,b=r)):(a=b,b=r),b===r&&(b=a,(m=xr())===r&&(m=Z()),m!==r&&Hr()!==r&&ue()!==r?(an=b,m=(function(Cr){return{...Cr,array:{keyword:"array"}}})(m),b=m):(a=b,b=r))),b})())===r&&(i=Z())===r&&(i=xr())===r&&(i=(function(){var b=a,m,x,tr;if((m=g())===r&&(m=Gr()),m!==r)if(Hr()!==r)if(Ko()!==r)if(Hr()!==r){if(x=[],$s.test(t.charAt(a))?(tr=t.charAt(a),a++):(tr=r,nt===0&&Ht(ja)),tr!==r)for(;tr!==r;)x.push(tr),$s.test(t.charAt(a))?(tr=t.charAt(a),a++):(tr=r,nt===0&&Ht(ja));else x=r;x!==r&&(tr=Hr())!==r&&Wr()!==r?(an=b,m={dataType:m,length:parseInt(x.join(""),10),parentheses:!0},b=m):(a=b,b=r)}else a=b,b=r;else a=b,b=r;else a=b,b=r;else a=b,b=r;return b===r&&(b=a,(m=g())===r&&(m=Gr()),m!==r&&(an=b,m=ll(m)),(b=m)===r&&(b=(function(){var Cr=a,gr,Yr,Rt,gt,Gt;if((gr=Qr())===r&&(gr=Pt()),gr!==r)if(Hr()!==r)if((Yr=Ko())!==r)if(Hr()!==r){if(Rt=[],$s.test(t.charAt(a))?(gt=t.charAt(a),a++):(gt=r,nt===0&&Ht(ja)),gt!==r)for(;gt!==r;)Rt.push(gt),$s.test(t.charAt(a))?(gt=t.charAt(a),a++):(gt=r,nt===0&&Ht(ja));else Rt=r;Rt!==r&&(gt=Hr())!==r&&Wr()!==r&&Hr()!==r?((Gt=Sr())===r&&(Gt=null),Gt===r?(a=Cr,Cr=r):(an=Cr,gr=(function(rn,xn,f){return{dataType:rn,length:parseInt(xn.join(""),10),parentheses:!0,suffix:f}})(gr,Rt,Gt),Cr=gr)):(a=Cr,Cr=r)}else a=Cr,Cr=r;else a=Cr,Cr=r;else a=Cr,Cr=r;else a=Cr,Cr=r;return Cr===r&&(Cr=a,(gr=Qr())===r&&(gr=Pt()),gr!==r&&Hr()!==r?((Yr=Sr())===r&&(Yr=null),Yr===r?(a=Cr,Cr=r):(an=Cr,gr=(function(rn,xn){return{dataType:rn,suffix:xn}})(gr,Yr),Cr=gr)):(a=Cr,Cr=r)),Cr})())),b})())===r&&(i=(function(){var b=a,m;return(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,4).toLowerCase()==="json"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(J0)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="JSON")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,5).toLowerCase()==="jsonb"?(tr=t.substr(a,5),a+=5):(tr=r,nt===0&&Ht(ml)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="JSONB")),x})()),m!==r&&(an=b,m=ll(m)),b=m})())===r&&(i=(function(){var b=a,m;return(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,8).toLowerCase()==="geometry"?(tr=t.substr(a,8),a+=8):(tr=r,nt===0&&Ht(Ul)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="GEOMETRY")),x})())!==r&&(an=b,m={dataType:m}),b=m})())===r&&(i=(function(){var b=a,m;return(m=Wo())===r&&(m=$b())===r&&(m=pu())===r&&(m=fu()),m!==r&&Aa()!==r&&Hr()!==r&&Lc()!==r?(an=b,b=m={dataType:m+"[]"}):(a=b,b=r),b===r&&(b=a,(m=Wo())===r&&(m=$b())===r&&(m=pu())===r&&(m=fu()),m!==r&&(an=b,m=(function(x){return{dataType:x}})(m)),b=m),b})())===r&&(i=(function(){var b=a,m;return(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,4).toLowerCase()==="uuid"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(n)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="UUID")),x})())!==r&&(an=b,m={dataType:m}),b=m})())===r&&(i=(function(){var b=a,m;return(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,4).toLowerCase()==="bool"?(tr=t.substr(a,4),a+=4):(tr=r,nt===0&&Ht(D0)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="BOOL")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,7).toLowerCase()==="boolean"?(tr=t.substr(a,7),a+=7):(tr=r,nt===0&&Ht(Ac)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="BOOLEAN")),x})()),m!==r&&(an=b,m=Di(m)),b=m})())===r&&(i=(function(){var b=a,m,x;(m=ra())!==r&&Hr()!==r&&(x=ar())!==r?(an=b,tr=m,(Cr=x).parentheses=!0,b=m={dataType:tr,expr:Cr}):(a=b,b=r);var tr,Cr;return b})())===r&&(i=(function(){var b=a,m;return(m=Db())===r&&(m=Rn()),m!==r&&(an=b,m=ll(m)),b=m})())===r&&(i=(function(){var b=a,m;return t.substr(a,5).toLowerCase()==="bytea"?(m=t.substr(a,5),a+=5):(m=r,nt===0&&Ht(Ya)),m!==r&&(an=b,m={dataType:"BYTEA"}),b=m})())===r&&(i=(function(){var b=a,m;return(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,3).toLowerCase()==="oid"?(tr=t.substr(a,3),a+=3):(tr=r,nt===0&&Ht(st)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="OID")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,8).toLowerCase()==="regclass"?(tr=t.substr(a,8),a+=8):(tr=r,nt===0&&Ht(gi)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGCLASS")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,12).toLowerCase()==="regcollation"?(tr=t.substr(a,12),a+=12):(tr=r,nt===0&&Ht(xa)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGCOLLATION")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,9).toLowerCase()==="regconfig"?(tr=t.substr(a,9),a+=9):(tr=r,nt===0&&Ht(Ra)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGCONFIG")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,13).toLowerCase()==="regdictionary"?(tr=t.substr(a,13),a+=13):(tr=r,nt===0&&Ht(or)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGDICTIONARY")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,12).toLowerCase()==="regnamespace"?(tr=t.substr(a,12),a+=12):(tr=r,nt===0&&Ht(Nt)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGNAMESPACE")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,7).toLowerCase()==="regoper"?(tr=t.substr(a,7),a+=7):(tr=r,nt===0&&Ht(ju)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGOPER")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,11).toLowerCase()==="regoperator"?(tr=t.substr(a,11),a+=11):(tr=r,nt===0&&Ht(Il)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGOPERATOR")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,7).toLowerCase()==="regproc"?(tr=t.substr(a,7),a+=7):(tr=r,nt===0&&Ht(Wc)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGPROC")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,12).toLowerCase()==="regprocedure"?(tr=t.substr(a,12),a+=12):(tr=r,nt===0&&Ht(Kr)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGPROCEDURE")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,7).toLowerCase()==="regrole"?(tr=t.substr(a,7),a+=7):(tr=r,nt===0&&Ht(Mb)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGROLE")),x})())===r&&(m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,7).toLowerCase()==="regtype"?(tr=t.substr(a,7),a+=7):(tr=r,nt===0&&Ht(fc)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="REGTYPE")),x})()),m!==r&&(an=b,m=Di(m)),b=m})())===r&&(i=(function(){var b=a,m;return t.substr(a,6).toLowerCase()==="record"?(m=t.substr(a,6),a+=6):(m=r,nt===0&&Ht(cl)),m!==r&&(an=b,m={dataType:"RECORD"}),b=m})()),i}function U(){var i,b;return i=a,(function(){var m,x,tr,Cr;return m=a,t.substr(a,9).toLowerCase()==="character"?(x=t.substr(a,9),a+=9):(x=r,nt===0&&Ht(yb)),x===r?(a=m,m=r):(tr=a,nt++,Cr=Ks(),nt--,Cr===r?tr=void 0:(a=tr,tr=r),tr===r?(a=m,m=r):(an=m,m=x="CHARACTER")),m})()!==r&&Hr()!==r?(t.substr(a,7).toLowerCase()==="varying"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht(ni)),b===r&&(b=null),b===r?(a=i,i=r):(an=i,i="CHARACTER VARYING")):(a=i,i=r),i}function Z(){var i,b,m,x;if(i=a,(b=Oo())===r&&(b=wu())===r&&(b=U()),b!==r)if(Hr()!==r)if(Ko()!==r)if(Hr()!==r){if(m=[],$s.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(ja)),x!==r)for(;x!==r;)m.push(x),$s.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(ja));else m=r;m!==r&&(x=Hr())!==r&&Wr()!==r?(an=i,i=b={dataType:b,length:parseInt(m.join(""),10),parentheses:!0}):(a=i,i=r)}else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;return i===r&&(i=a,(b=Oo())===r&&(b=U())===r&&(b=wu()),b!==r&&(an=i,b=(function(tr){return{dataType:tr}})(b)),i=b),i}function sr(){var i,b,m;return i=a,(b=Ka())===r&&(b=null),b!==r&&Hr()!==r?((m=(function(){var x,tr,Cr,gr;return x=a,t.substr(a,8).toLowerCase()==="zerofill"?(tr=t.substr(a,8),a+=8):(tr=r,nt===0&&Ht(Ic)),tr===r?(a=x,x=r):(Cr=a,nt++,gr=Ks(),nt--,gr===r?Cr=void 0:(a=Cr,Cr=r),Cr===r?(a=x,x=r):(an=x,x=tr="ZEROFILL")),x})())===r&&(m=null),m===r?(a=i,i=r):(an=i,i=b=(function(x,tr){let Cr=[];return x&&Cr.push(x),tr&&Cr.push(tr),Cr})(b,m))):(a=i,i=r),i}function xr(){var i,b,m,x,tr,Cr,gr,Yr,Rt,gt,Gt,rn,xn,f,y,S;if(i=a,(b=Ea())===r&&(b=Do())===r&&(b=dc())===r&&(b=_f())===r&&(b=La())===r&&(b=Wf())===r&&(b=Vu())===r&&(b=fd())===r&&(b=a,(m=w())!==r&&(x=Hr())!==r?(t.substr(a,9).toLowerCase()==="precision"?(tr=t.substr(a,9),a+=9):(tr=r,nt===0&&Ht(ui)),tr===r?(a=b,b=r):b=m=[m,x,tr]):(a=b,b=r),b===r&&(b=w())===r&&(b=Db())===r&&(b=G())===r&&(b=z())),b!==r)if((m=Hr())!==r)if((x=Ko())!==r)if((tr=Hr())!==r){if(Cr=[],$s.test(t.charAt(a))?(gr=t.charAt(a),a++):(gr=r,nt===0&&Ht(ja)),gr!==r)for(;gr!==r;)Cr.push(gr),$s.test(t.charAt(a))?(gr=t.charAt(a),a++):(gr=r,nt===0&&Ht(ja));else Cr=r;if(Cr!==r)if((gr=Hr())!==r){if(Yr=a,(Rt=Fo())!==r)if((gt=Hr())!==r){if(Gt=[],$s.test(t.charAt(a))?(rn=t.charAt(a),a++):(rn=r,nt===0&&Ht(ja)),rn!==r)for(;rn!==r;)Gt.push(rn),$s.test(t.charAt(a))?(rn=t.charAt(a),a++):(rn=r,nt===0&&Ht(ja));else Gt=r;Gt===r?(a=Yr,Yr=r):Yr=Rt=[Rt,gt,Gt]}else a=Yr,Yr=r;else a=Yr,Yr=r;Yr===r&&(Yr=null),Yr!==r&&(Rt=Hr())!==r&&(gt=Wr())!==r&&(Gt=Hr())!==r?((rn=sr())===r&&(rn=null),rn===r?(a=i,i=r):(an=i,xn=b,f=Cr,y=Yr,S=rn,i=b={dataType:Array.isArray(xn)?`${xn[0].toUpperCase()} ${xn[2].toUpperCase()}`:xn,length:parseInt(f.join(""),10),scale:y&&parseInt(y[2].join(""),10),parentheses:!0,suffix:S})):(a=i,i=r)}else a=i,i=r;else a=i,i=r}else a=i,i=r;else a=i,i=r;else a=i,i=r;else a=i,i=r;if(i===r){if(i=a,(b=Ea())===r&&(b=Do())===r&&(b=dc())===r&&(b=_f())===r&&(b=La())===r&&(b=Wf())===r&&(b=Vu())===r&&(b=fd())===r&&(b=a,(m=w())!==r&&(x=Hr())!==r?(t.substr(a,9).toLowerCase()==="precision"?(tr=t.substr(a,9),a+=9):(tr=r,nt===0&&Ht(ui)),tr===r?(a=b,b=r):b=m=[m,x,tr]):(a=b,b=r),b===r&&(b=w())===r&&(b=Db())===r&&(b=G())===r&&(b=z())),b!==r){if(m=[],$s.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(ja)),x!==r)for(;x!==r;)m.push(x),$s.test(t.charAt(a))?(x=t.charAt(a),a++):(x=r,nt===0&&Ht(ja));else m=r;m!==r&&(x=Hr())!==r?((tr=sr())===r&&(tr=null),tr===r?(a=i,i=r):(an=i,i=b=(function(W,vr,_r){return{dataType:Array.isArray(W)?`${W[0].toUpperCase()} ${W[2].toUpperCase()}`:W,length:parseInt(vr.join(""),10),suffix:_r}})(b,m,tr))):(a=i,i=r)}else a=i,i=r;i===r&&(i=a,(b=Ea())===r&&(b=Do())===r&&(b=dc())===r&&(b=_f())===r&&(b=La())===r&&(b=Wf())===r&&(b=Vu())===r&&(b=fd())===r&&(b=a,(m=w())!==r&&(x=Hr())!==r?(t.substr(a,9).toLowerCase()==="precision"?(tr=t.substr(a,9),a+=9):(tr=r,nt===0&&Ht(ui)),tr===r?(a=b,b=r):b=m=[m,x,tr]):(a=b,b=r),b===r&&(b=w())===r&&(b=Db())===r&&(b=G())===r&&(b=z())),b!==r&&(m=Hr())!==r?((x=sr())===r&&(x=null),x!==r&&(tr=Hr())!==r?(an=i,i=b=(function(W,vr){return{dataType:Array.isArray(W)?`${W[0].toUpperCase()} ${W[2].toUpperCase()}`:W,suffix:vr}})(b,x)):(a=i,i=r)):(a=i,i=r))}return i}function Sr(){var i,b,m;return i=a,t.substr(a,7).toLowerCase()==="without"?(b=t.substr(a,7),a+=7):(b=r,nt===0&&Ht($i)),b===r&&(t.substr(a,4).toLowerCase()==="with"?(b=t.substr(a,4),a+=4):(b=r,nt===0&&Ht(kv))),b!==r&&Hr()!==r&&Qr()!==r&&Hr()!==r?(t.substr(a,4).toLowerCase()==="zone"?(m=t.substr(a,4),a+=4):(m=r,nt===0&&Ht(ai)),m===r?(a=i,i=r):(an=i,i=b=[b.toUpperCase(),"TIME","ZONE"])):(a=i,i=r),i}let tt={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,EXCEPT:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTERSECT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,LEFT:!0,LIKE:!0,LIMIT:!0,NOT:!0,NULL:!0,NULLS:!0,OFFSET:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,WITH:!0,WHEN:!0,WHERE:!0,WINDOW:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0};function Ct(){return Ce.includeLocations?{loc:bu(an,a)}:{}}function Xt(i,b){return{type:"unary_expr",operator:i,expr:b}}function Vt(i,b,m){return{type:"binary_expr",operator:i,left:b,right:m}}function In(i){let b=To(9007199254740991);return!(To(i)<b)}function Tn(i,b,m=3){let x=Array.isArray(i)?i:[i];for(let tr=0;tr<b.length;tr++)delete b[tr][m].tableList,delete b[tr][m].columnList,x.push(b[tr][m]);return x}function jn(i,b){let m=i;for(let x=0;x<b.length;x++)m=Vt(b[x][1],m,b[x][3]);return m}function ts(i){return wr[i]||i||null}function d(i){let b=new Set;for(let m of i.keys()){let x=m.split("::");if(!x){b.add(m);break}x&&x[1]&&(x[1]=ts(x[1])),b.add(x.join("::"))}return Array.from(b)}function N(i){return typeof i=="string"?{type:"same",value:i}:i}let H=[],X=new Set,lr=new Set,wr={};if((Ie=ge())!==r&&a===t.length)return Ie;throw Ie!==r&&a<t.length&&Ht({type:"end"}),rt(ii,Da<t.length?t.charAt(Da):null,Da<t.length?bu(Da,Da+1):bu(Da,Da))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:Qo},ge=Qo,Dn=Zr("IF",!0),Pn=Zr("if",!0),Ae=Zr("exists",!0),ou=Zr("EXTENSION",!0),Hs=Zr("SCHEMA",!0),Uo=Zr("VERSION",!0),Ps=Zr("CASCADED",!0),pe=Zr("LOCAL",!0),_o=Zr("CHECK",!0),Gi=Zr("OPTION",!1),mi=Zr("check_option",!0),Fi=Zr("security_barrier",!0),T0=Zr("security_invoker",!0),dl=Zr("SFUNC",!0),Gl=Zr("STYPE",!0),Fl=Zr("AGGREGATE",!0),nc=Zr("RETURNS",!0),xc=Zr("SETOF",!0),I0=Zr("CONSTANT",!0),ji=Zr(":=",!1),af=Zr("BEGIN",!0),qf=Zr("DECLARE",!0),Uc=Zr("LANGUAGE",!1),wc=Zr("TRANSORM",!0),Ll=Zr("FOR",!1),jl=Zr("TYPE",!1),Oi=Zr("WINDOW",!0),bb=Zr("IMMUTABLE",!0),Vi=Zr("STABLE",!0),zc=Zr("VOLATILE",!0),kc=Zr("STRICT",!0),vb=Zr("NOT",!0),Zc=Zr("LEAKPROOF",!0),nl=Zr("CALLED",!0),Xf=Zr("NULL",!0),gl=Zr("ON",!0),lf=Zr("INPUT",!0),Jc=Zr("EXTERNAL",!0),Qc=Zr("SECURITY",!0),gv=Zr("INVOKER",!0),g0=Zr("DEFINER",!0),Ki=Zr("PARALLEL",!0),Pb=Zr("UNSAFE",!0),ei=Zr("RESTRICTED",!0),pb=Zr("SAFE",!0),j0=/^[^ s\t\n\r]/,B0=rs([" ","s"," ",` +`,"\r"],!0,!1),Mc=/^[^ s\t\n\r;]/,Cl=rs([" ","s"," ",` +`,"\r",";"],!0,!1),$u=Zr("COST",!0),r0=Zr("ROWS",!0),zn=Zr("SUPPORT",!0),Ss=Zr("TO",!0),te=Zr("=",!1),ce=Zr("CURRENT",!0),He=Zr("FUNCTION",!0),Ue=Zr("RANGE",!0),Qe=Zr("TYPE",!0),uo=Zr("DOMAIN",!0),Ao=Zr("INCREMENT",!0),Pu=Zr("MINVALUE",!0),Ca=function(v,T){return{resource:"sequence",prefix:v.toLowerCase(),value:T}},ku=Zr("NO",!0),ca=Zr("MAXVALUE",!0),na=Zr("START",!0),Qa=function(v,T,D){return{resource:"sequence",prefix:T?v.toLowerCase()+" with":v.toLowerCase(),value:D}},cf=Zr("RESTART",!0),ri=Zr("CACHE",!0),t0=Zr("CYCLE",!0),n0=Zr("OWNED",!0),Dc=Zr("NONE",!0),s0=Zr("INCLUDE",!0),Rv=Zr("NULLS",!0),nv=Zr("FIRST",!0),sv=Zr("LAST",!0),ev=Zr("MODULUS",!0),yc=Zr("REMAINDER",!0),$c=Zr("FOR",!0),Sf=Zr("OF",!0),R0=Zr("AUTO_INCREMENT",!0),Rl=Zr("UNIQUE",!0),ff=Zr("KEY",!0),Vf=Zr("PRIMARY",!0),Vv=Zr("GENERATED",!0),db=Zr("BY",!0),Of=Zr("DEFAULT",!0),Pc=Zr("AS",!0),H0=Zr("IDENTITY",!0),bf=Zr("COLUMN_FORMAT",!0),Lb=Zr("FIXED",!0),Fa=Zr("DYNAMIC",!0),Kf=Zr("STORAGE",!0),Nv=Zr("DISK",!0),Gb=Zr("MEMORY",!0),hc=Zr("CASCADE",!0),Bl=Zr("RESTRICT",!0),sl=Zr("ONLY",!0),sc=Zr("CONTINUE",!0),Y0=Zr("OUT",!0),N0=Zr("VARIADIC",!0),ov=Zr("OWNER",!0),Fb=Zr("LOGGED",!0),e0=Zr("UNLOGGED",!0),Cb=Zr("only",!0),_0=Zr("CURRENT_ROLE",!0),zf=Zr("CURRENT_USER",!0),je=Zr("SESSION_USER",!0),o0=Zr("ALGORITHM",!0),xi=Zr("INSTANT",!0),xf=Zr("INPLACE",!0),Zf=Zr("COPY",!0),W0=Zr("LOCK",!0),jb=Zr("SHARED",!0),Uf=Zr("EXCLUSIVE",!0),u0=Zr("data",!0),wb=Zr("type",!0),Ui=Zr("PRIMARY KEY",!0),uv=Zr("FOREIGN KEY",!0),yb=Zr("ENFORCED",!0),hb=Zr("MATCH FULL",!0),Kv=Zr("MATCH PARTIAL",!0),Gc=Zr("MATCH SIMPLE",!0),_v=Zr("SET NULL",!0),kf=Zr("NO ACTION",!0),vf=Zr("SET DEFAULT",!0),ki=Zr("TRIGGER",!0),Hl=Zr("BEFORE",!0),Eb=Zr("AFTER",!0),Bb=Zr("INSTEAD OF",!0),pa=Zr("EXECUTE",!0),wl=Zr("PROCEDURE",!0),Nl=Zr("DEFERRABLE",!0),Sv=Zr("INITIALLY IMMEDIATE",!0),Hb=Zr("INITIALLY DEFERRED",!0),Jf=Zr("EACH",!0),pf=Zr("ROW",!0),Yb=Zr("STATEMENT",!0),av=Zr("CHARACTER",!0),iv=Zr("SET",!0),a0=Zr("CHARSET",!0),_l=Zr("COLLATE",!0),Yl=Zr("AVG_ROW_LENGTH",!0),Ab=Zr("KEY_BLOCK_SIZE",!0),Mf=Zr("MAX_ROWS",!0),Wb=Zr("MIN_ROWS",!0),Df=Zr("STATS_SAMPLE_PAGES",!0),mb=Zr("CONNECTION",!0),i0=Zr("COMPRESSION",!0),ft=Zr("'",!1),tn=Zr("ZLIB",!0),_n=Zr("LZ4",!0),En=Zr("ENGINE",!0),Os=Zr("IN",!0),gs=Zr("ACCESS SHARE",!0),Ys=Zr("ROW SHARE",!0),Te=Zr("ROW EXCLUSIVE",!0),ye=Zr("SHARE UPDATE EXCLUSIVE",!0),Be=Zr("SHARE ROW EXCLUSIVE",!0),io=Zr("ACCESS EXCLUSIVE",!0),Ro=Zr("SHARE",!0),So=Zr("MODE",!0),uu=Zr("NOWAIT",!0),ko=Zr("TABLES",!0),yu=Zr("PREPARE",!0),au=Zr("USAGE",!0),Iu=function(v){return{type:"origin",value:Array.isArray(v)?v[0]:v}},mu=Zr("CONNECT",!0),Ju=Zr("PRIVILEGES",!0),ua=function(v){return{type:"origin",value:v}},Sa=Zr("SEQUENCE",!0),ma=Zr("DATABASE",!0),Bi=Zr("DOMAIN",!1),sa=Zr("FUNCTION",!1),di=Zr("ROUTINE",!0),Hi=Zr("LANGUAGE",!0),S0=Zr("LARGE",!0),l0=Zr("SCHEMA",!1),Ov=Zr("FUNCTIONS",!0),lv=Zr("PROCEDURES",!0),fi=Zr("ROUTINES",!0),Wl=Zr("PUBLIC",!0),ec=Zr("GRANT",!0),Fc=Zr("OPTION",!0),xv=Zr("ADMIN",!0),lp=Zr("REVOKE",!0),Uv=Zr("ELSEIF",!0),$f=Zr("THEN",!0),Tb=Zr("END",!0),cp=Zr("DEBUG",!0),c0=Zr("LOG",!0),q0=Zr("INFO",!0),df=Zr("NOTICE",!0),f0=Zr("WARNING",!0),b0=Zr("EXCEPTION",!0),Pf=Zr("MESSAGE",!0),Sp=Zr("DETAIL",!0),kv=Zr("HINT",!0),Op=Zr("ERRCODE",!0),fp=Zr("COLUMN",!0),oc=Zr("CONSTRAINT",!0),uc=Zr("DATATYPE",!0),qb=Zr("TABLE",!0),Gf=Zr("SQLSTATE",!0),zv=Zr("RAISE",!0),Mv=Zr("LOOP",!0),Zv=Zr("SERIALIZABLE",!0),bp=Zr("REPEATABLE",!0),Ib=Zr("READ",!0),Dv=Zr("COMMITTED",!0),vp=Zr("UNCOMMITTED",!0),Jv=function(v){return{type:"origin",value:"read "+v.toLowerCase()}},Xb=Zr("ISOLATION",!0),pp=Zr("LEVEL",!0),xp=Zr("WRITE",!0),cv=Zr("commit",!0),Up=Zr("rollback",!0),Xp=Zr("begin",!0),Qv=Zr("WORK",!0),Vp=Zr("TRANSACTION",!0),dp=Zr("start",!0),Kp=Zr("transaction",!0),ld=Zr("ROLE",!0),Lp=Zr("SERVER",!0),Cp=Zr("SUBSCRIPTION",!0),wp=Zr("IS",!0),gb=Zr("COMMENT",!0),O0=Zr("(",!1),v0=Zr(")",!1),ac=Zr(";",!1),Rb=Zr("AT",!0),Ff=Zr("ZONE",!0),kp=Zr("OUTFILE",!0),Mp=Zr("DUMPFILE",!0),rp=Zr("BTREE",!0),yp=Zr("HASH",!0),hp=Zr("GIST",!0),Ep=Zr("GIN",!0),Nb=Zr("WITH",!0),Qf=Zr("PARSER",!0),_b=Zr("VISIBLE",!0),Ap=Zr("INVISIBLE",!0),Dp=function(v,T){return T.unshift(v),T.forEach(D=>{let{table:V,as:Ur}=D;zd[V]=V,Ur&&(zd[Ur]=V),(function(zr){let Br=Cc(zr);zr.clear(),Br.forEach(wt=>zr.add(wt))})(Ja)}),T},$v=Zr("LATERAL",!0),$p=Zr("TABLESAMPLE",!0),Pp=Zr("CROSS",!0),Pv=Zr("FOLLOWING",!0),Gp=Zr("PRECEDING",!0),Fp=Zr("UNBOUNDED",!0),mp=Zr("DO",!0),zp=Zr("NOTHING",!0),Zp=Zr("CONFLICT",!0),Gv=function(v,T){return Sd(v,T)},tp=Zr("!",!1),Fv=Zr(">=",!1),yl=Zr(">",!1),jc=Zr("<=",!1),fv=Zr("<>",!1),Sl=Zr("<",!1),Ol=Zr("!=",!1),np=Zr("SIMILAR",!0),bv=Zr("!~*",!1),ql=Zr("~*",!1),Ec=Zr("~",!1),Jp=Zr("!~",!1),Qp=Zr("ESCAPE",!0),sp=Zr("+",!1),jv=Zr("-",!1),Tp=Zr("*",!1),rd=Zr("/",!1),jp=Zr("%",!1),Ip=Zr("||",!1),td=Zr("$",!1),nd=Zr("?|",!1),Bp=Zr("?&",!1),Hp=Zr("?",!1),gp=Zr("#-",!1),sd=Zr("#>>",!1),ed=Zr("#>",!1),Yp=Zr("@>",!1),od=Zr("<@",!1),ud=Zr("E",!0),Rp=function(v){return{type:"default",value:v}},O=function(v){return aL[v.toUpperCase()]===!0},ps=Zr('"',!1),Bv=/^[^"]/,Lf=rs(['"'],!0,!1),Hv=/^[^']/,on=rs(["'"],!0,!1),zs=Zr("`",!1),Bc=/^[^`]/,vv=rs(["`"],!0,!1),ep=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,Rs=rs([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Np=/^[A-Za-z0-9_\-$\u4E00-\u9FA5\xC0-\u017F]/,Wp=rs([["A","Z"],["a","z"],["0","9"],"_","-","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),cd=/^[A-Za-z0-9_\u4E00-\u9FA5\xC0-\u017F]/,Vb=rs([["A","Z"],["a","z"],["0","9"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),_=Zr(":",!1),Ls=Zr("OVER",!0),pv=Zr("FILTER",!0),Cf=Zr("FIRST_VALUE",!0),dv=Zr("LAST_VALUE",!0),Qt=Zr("ROW_NUMBER",!0),Xs=Zr("DENSE_RANK",!0),ic=Zr("RANK",!0),op=Zr("LAG",!0),Kb=Zr("LEAD",!0),ys=Zr("NTH_VALUE",!0),_p=Zr("IGNORE",!0),Yv=Zr("RESPECT",!0),Lv=Zr("percentile_cont",!0),Wv=Zr("percentile_disc",!0),zb=Zr("within",!0),wf=Zr("mode",!0),qv=Zr("POSITION",!0),Cv=Zr("BOTH",!0),rb=Zr("LEADING",!0),tb=Zr("TRAILING",!0),I=Zr("trim",!0),us=Zr("crosstab",!0),Sb=Zr("jsonb_to_recordset",!0),xl=Zr("jsonb_to_record",!0),nb=Zr("json_to_recordset",!0),zt=Zr("json_to_record",!0),$s=Zr("substring",!0),ja=Zr("years",!0),Ob=Zr("months",!0),jf=Zr("weeks",!0),is=Zr("days",!0),el=Zr("hours",!0),Ti=Zr("mins",!0),wv=Zr("=>",!1),yf=Zr("secs",!0),X0=Zr("make_interval",!0),p0=Zr("now",!0),up=Zr("at",!0),xb=Zr("zone",!0),Zb=Zr("CENTURY",!0),yv=Zr("DAY",!0),Jb=Zr("DATE",!0),hv=Zr("DECADE",!0),h=Zr("DOW",!0),ss=Zr("DOY",!0),Xl=Zr("EPOCH",!0),d0=Zr("HOUR",!0),Bf=Zr("ISODOW",!0),jt=Zr("ISOYEAR",!0),Us=Zr("MICROSECONDS",!0),ol=Zr("MILLENNIUM",!0),sb=Zr("MILLISECONDS",!0),eb=Zr("MINUTE",!0),p=Zr("MONTH",!0),ns=Zr("QUARTER",!0),Vl=Zr("SECOND",!0),Hc=Zr("TIMEZONE",!0),Ub=Zr("TIMEZONE_HOUR",!0),Ft=Zr("TIMEZONE_MINUTE",!0),xs=Zr("WEEK",!0),Li=Zr("YEAR",!0),Ta=Zr("NTILE",!0),x0=/^[\n]/,Zn=rs([` +`],!1,!1),kb=/^[^"\\\0-\x1F\x7F]/,U0=rs(['"',"\\",["\0",""],"\x7F"],!0,!1),C=/^[^'\\]/,Kn=rs(["'","\\"],!0,!1),zi=Zr("\\'",!1),Kl=Zr('\\"',!1),zl=Zr("\\\\",!1),Ot=Zr("\\/",!1),hs=Zr("\\b",!1),Yi=Zr("\\f",!1),hl=Zr("\\n",!1),L0=Zr("\\r",!1),Bn=Zr("\\t",!1),Qb=Zr("\\u",!1),C0=Zr("\\",!1),Hf=Zr("''",!1),k0=/^[\n\r]/,M0=rs([` +`,"\r"],!1,!1),Wi=Zr(".",!1),wa=/^[0-9]/,Oa=rs([["0","9"]],!1,!1),ti=/^[0-9a-fA-F]/,We=rs([["0","9"],["a","f"],["A","F"]],!1,!1),ob=/^[eE]/,V0=rs(["e","E"],!1,!1),hf=/^[+\-]/,Ef=rs(["+","-"],!1,!1),K0=Zr("NOT NULL",!0),Af=Zr("TRUE",!0),El=Zr("FALSE",!0),w0=Zr("SHOW",!0),ul=Zr("DROP",!0),Ye=Zr("USE",!0),mf=Zr("ALTER",!0),z0=Zr("SELECT",!0),ub=Zr("UPDATE",!0),Su=Zr("CREATE",!0),Al=Zr("TEMPORARY",!0),D0=Zr("UNLOGGED",!1),Ac=Zr("TEMP",!0),mc=Zr("DELETE",!0),Tc=Zr("INSERT",!0),y0=Zr("RECURSIVE",!0),bi=Zr("REPLACE",!0),Yc=Zr("RETURN",!0),Z0=Zr("RETURNING",!0),lc=Zr("RENAME",!0),Ic=Zr("PARTITION",!0),ab=Zr("INTO",!0),J0=Zr("FROM",!0),ml=Zr("TABLESPACE",!0),Ul=Zr("COLLATION",!0),aa=Zr("DEALLOCATE",!0),Tf=Zr("LEFT",!0),If=Zr("RIGHT",!0),Tl=Zr("FULL",!0),Ci=Zr("INNER",!0),Q0=Zr("JOIN",!0),ib=Zr("OUTER",!0),fa=Zr("UNION",!0),Zi=Zr("INTERSECT",!0),rf=Zr("EXCEPT",!0),Ii=Zr("VALUES",!0),Ge=Zr("USING",!0),$0=Zr("WHERE",!0),gf=Zr("GROUP",!0),Zl=Zr("ORDER",!0),Xa=Zr("HAVING",!0),cc=Zr("LIMIT",!0),h0=Zr("OFFSET",!0),n=Zr("ASC",!0),st=Zr("DESC",!0),gi=Zr("ALL",!0),xa=Zr("DISTINCT",!0),Ra=Zr("BETWEEN",!0),or=Zr("LIKE",!0),Nt=Zr("ILIKE",!0),ju=Zr("EXISTS",!0),Il=Zr("AND",!0),Wc=Zr("OR",!0),Kr=Zr("ARRAY",!0),Mb=Zr("ARRAY_AGG",!0),fc=Zr("STRING_AGG",!0),qi=Zr("COUNT",!0),Ji=Zr("GROUP_CONCAT",!0),Ri=Zr("MAX",!0),qu=Zr("MIN",!0),Se=Zr("SUM",!0),tf=Zr("AVG",!0),Qu=Zr("EXTRACT",!0),P0=Zr("CALL",!0),gc=Zr("CASE",!0),al=Zr("WHEN",!0),Jl=Zr("ELSE",!0),qc=Zr("CAST",!0),Ba=Zr("BOOL",!0),Qi=Zr("BOOLEAN",!0),ya=Zr("CHAR",!0),l=Zr("VARCHAR",!0),dn=Zr("NUMERIC",!0),Ql=Zr("DECIMAL",!0),vi=Zr("SIGNED",!0),Va=Zr("UNSIGNED",!0),lt=Zr("INT",!0),Wn=Zr("ZEROFILL",!0),Eu=Zr("INTEGER",!0),ia=Zr("JSON",!0),ve=Zr("JSONB",!0),Jt=Zr("GEOMETRY",!0),nf=Zr("SMALLINT",!0),E0=Zr("SERIAL",!0),kl=Zr("SMALLSERIAL",!0),oi=Zr("TINYINT",!0),yn=Zr("TINYTEXT",!0),ka=Zr("TEXT",!0),Ua=Zr("MEDIUMTEXT",!0),Ou=Zr("LONGTEXT",!0),il=Zr("MEDIUMINT",!0),zu=Zr("BIGINT",!0),Yu=Zr("ENUM",!0),lb=Zr("FLOAT",!0),Mi=Zr("DOUBLE",!0),ha=Zr("BIGSERIAL",!0),Ha=Zr("REAL",!0),ln=Zr("DATETIME",!0),Oe=Zr("TIME",!0),Di=Zr("TIMESTAMP",!0),Ya=Zr("TIMESTAMPTZ",!0),ni=Zr("TRUNCATE",!0),ui=Zr("USER",!0),$i=Zr("UUID",!0),ai=Zr("OID",!0),ll=Zr("REGCLASS",!0),cl=Zr("REGCOLLATION",!0),a=Zr("REGCONFIG",!0),an=Zr("REGDICTIONARY",!0),Ma=Zr("REGNAMESPACE",!0),Da=Zr("REGOPER",!0),ii=Zr("REGOPERATOR",!0),nt=Zr("REGPROC",!0),o=Zr("REGPROCEDURE",!0),Zt=Zr("REGROLE",!0),ba=Zr("REGTYPE",!0),bu=Zr("CIDR",!0),Ht=Zr("INET",!0),rt=Zr("MACADDR",!0),k=Zr("MACADDR8",!0),Lr=Zr("BIT",!0),Or=Zr("MONEY",!0),Fr=Zr("CURRENT_DATE",!0),dr=Zr("INTERVAL",!0),It=Zr("CURRENT_TIME",!0),Dt=Zr("CURRENT_TIMESTAMP",!0),Ln=Zr("SYSTEM_USER",!0),Un=Zr("GLOBAL",!0),u=Zr("SESSION",!0),yt=Zr("PERSIST",!0),Y=Zr("PERSIST_ONLY",!0),Q=Zr("VIEW",!0),Tr=Zr("@",!1),P=Zr("@@",!1),hr=Zr("$$",!1),ht=Zr("::",!1),e=Zr("DUAL",!0),Pr=Zr("ADD",!0),Mr=Zr("INDEX",!0),kn=Zr("FULLTEXT",!0),Yn=Zr("SPATIAL",!0),K=Zr("CONCURRENTLY",!0),kt=Zr("REFERENCES",!0),Js=Zr("SQL_CALC_FOUND_ROWS",!0),Ve=Zr("SQL_CACHE",!0),co=Zr("SQL_NO_CACHE",!0),_t=Zr("SQL_SMALL_RESULT",!0),Eo=Zr("SQL_BIG_RESULT",!0),ao=Zr("SQL_BUFFER_RESULT",!0),zo=Zr(",",!1),no=Zr("[",!1),Ke=Zr("]",!1),yo=Zr("->",!1),lo=Zr("->>",!1),Co=Zr("&&",!1),Au=Zr("/*",!1),la=Zr("*/",!1),da=Zr("--",!1),Ia={type:"any"},Wt=/^[ \t\n\r]/,ta=rs([" "," ",` +`,"\r"],!1,!1),li=Zr("default",!0),ea=/^[^$]/,Ml=rs(["$"],!0,!1),Le=function(v){return{dataType:v}},rl=Zr("bytea",!0),xu=Zr("varying",!0),si=Zr("PRECISION",!0),Ni=Zr("WITHOUT",!0),tl=function(v){return{dataType:v}},Dl=Zr("POINT",!0),$a=Zr("LINESTRING",!0),bc=Zr("POLYGON",!0),Wu=Zr("MULTIPOINT",!0),Zo=Zr("MULTILINESTRING",!0),wi=Zr("MULTIPOLYGON",!0),j=Zr("GEOMETRYCOLLECTION",!0),ur=function(v){return{dataType:v}},Ir=Zr("RECORD",!0),s=0,er=0,Lt=[{line:1,column:1}],mt=0,bn=[],ir=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function Zr(v,T){return{type:"literal",text:v,ignoreCase:T}}function rs(v,T,D){return{type:"class",parts:v,inverted:T,ignoreCase:D}}function vs(v){var T,D=Lt[v];if(D)return D;for(T=v-1;!Lt[T];)T--;for(D={line:(D=Lt[T]).line,column:D.column};T<v;)t.charCodeAt(T)===10?(D.line++,D.column=1):D.column++,T++;return Lt[v]=D,D}function Ds(v,T){var D=vs(v),V=vs(T);return{start:{offset:v,line:D.line,column:D.column},end:{offset:T,line:V.line,column:V.column}}}function ut(v){s<mt||(s>mt&&(mt=s,bn=[]),bn.push(v))}function De(v,T,D){return new go(go.buildMessage(v,T),v,T,D)}function Qo(){var v,T;return v=s,kr()===r?(s=v,v=r):((T=ne())===r&&(T=yr()),T===r?(s=v,v=r):(er=v,v=T)),v===r&&(v=ne())===r&&(v=yr()),v}function A(){var v;return(v=(function(){var T=s,D,V,Ur,zr,Br,wt;(D=mo())!==r&&kr()!==r&&(V=Dr())!==r&&kr()!==r?((Ur=pr())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=vc())!==r?(er=T,qt=D,un=V,Sn=Ur,(Fn=zr)&&Fn.forEach(es=>Za.add(`${qt}::${[es.db,es.schema].filter(Boolean).join(".")||null}::${es.table}`)),D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:qt.toLowerCase(),keyword:un.toLowerCase(),prefix:Sn,name:Fn}},T=D):(s=T,T=r)):(s=T,T=r);var qt,un,Sn,Fn;return T===r&&(T=s,(D=mo())!==r&&kr()!==r&&(V=wo())!==r&&kr()!==r?((Ur=uf())===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=pr())===r&&(zr=null),zr!==r&&kr()!==r&&(Br=R())!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="cascade"?(wt=t.substr(s,7),s+=7):(wt=r,ir===0&&ut(hc)),wt===r&&(t.substr(s,8).toLowerCase()==="restrict"?(wt=t.substr(s,8),s+=8):(wt=r,ir===0&&ut(Bl))),wt===r&&(wt=null),wt===r?(s=T,T=r):(er=T,D=(function(es,Qn,As,Bs,Zs,ae){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:es.toLowerCase(),keyword:Qn.toLowerCase(),prefix:[As,Bs].filter(be=>be).join(" "),name:Zs,options:ae&&[{type:"origin",value:ae}]}}})(D,V,Ur,zr,Br,wt),T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r),T===r&&(T=s,(D=mo())!==r&&kr()!==r&&(V=(function(){var es=s,Qn,As,Bs;return t.substr(s,4).toLowerCase()==="type"?(Qn=t.substr(s,4),s+=4):(Qn=r,ir===0&&ut(Qe)),Qn===r?(s=es,es=r):(As=s,ir++,Bs=Gs(),ir--,Bs===r?As=void 0:(s=As,As=r),As===r?(s=es,es=r):(er=es,es=Qn="TYPE")),es})())!==r&&kr()!==r?((Ur=pr())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=Av())!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="cascade"?(Br=t.substr(s,7),s+=7):(Br=r,ir===0&&ut(hc)),Br===r&&(t.substr(s,8).toLowerCase()==="restrict"?(Br=t.substr(s,8),s+=8):(Br=r,ir===0&&ut(Bl))),Br===r&&(Br=null),Br===r?(s=T,T=r):(er=T,D=(function(es,Qn,As,Bs,Zs){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:es.toLowerCase(),keyword:Qn.toLowerCase(),prefix:[As].filter(ae=>ae).join(" "),name:Bs,options:Zs&&[{type:"origin",value:Zs}]}}})(D,V,Ur,zr,Br),T=D)):(s=T,T=r)):(s=T,T=r),T===r&&(T=s,(D=mo())!==r&&kr()!==r&&(V=Vs())!==r&&kr()!==r?((Ur=pr())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=vc())!==r&&kr()!==r?((Br=(function(){var es=s,Qn;return t.substr(s,8).toLowerCase()==="restrict"?(Qn=t.substr(s,8),s+=8):(Qn=r,ir===0&&ut(Bl)),Qn===r&&(t.substr(s,7).toLowerCase()==="cascade"?(Qn=t.substr(s,7),s+=7):(Qn=r,ir===0&&ut(hc))),Qn!==r&&(er=es,Qn=Qn.toLowerCase()),es=Qn})())===r&&(Br=null),Br===r?(s=T,T=r):(er=T,D=(function(es,Qn,As,Bs,Zs){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:es.toLowerCase(),keyword:Qn.toLowerCase(),prefix:As,name:Bs,options:Zs&&[{type:"origin",value:Zs}]}}})(D,V,Ur,zr,Br),T=D)):(s=T,T=r)):(s=T,T=r)))),T})())===r&&(v=(function(){var T;return(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es;(V=Gu())!==r&&kr()!==r?((Ur=Aa())===r&&(Ur=Ko()),Ur===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=Wr())===r&&(zr=null),zr!==r&&kr()!==r&&Dr()!==r&&kr()!==r?((Br=bt())===r&&(Br=null),Br!==r&&kr()!==r&&(wt=vc())!==r&&kr()!==r&&(qt=(function(){var he=s,re,_e,Ze,Fe,vo,Io,xo,Tu;(re=pi())!==r&&kr()!==r?(t.substr(s,2).toLowerCase()==="of"?(_e=t.substr(s,2),s+=2):(_e=r,ir===0&&ut(Sf)),_e!==r&&kr()!==r&&(Ze=hi())!==r&&kr()!==r&&(Fe=(function(){var Pa=s,fb,tv;return t.substr(s,3).toLowerCase()==="for"?(fb=t.substr(s,3),s+=3):(fb=r,ir===0&&ut($c)),fb!==r&&kr()!==r&&Es()!==r&&kr()!==r&&(tv=(function(){var Pl=s,hd,md,Td,qp;return M()!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(hd=Pt())!==r&&kr()!==r&&(md=Lu())!==r&&kr()!==r&&Me()!==r&&kr()!==r&&(Td=Ho())!==r&&kr()!==r&&(qp=Pt())!==r&&kr()!==r&&Lu()!==r?(er=Pl,Pl={type:"for_values_item",keyword:"from",from:hd,to:qp}):(s=Pl,Pl=r),Pl===r&&(Pl=s,Ct()!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(hd=pc())!==r&&kr()!==r&&(md=Lu())!==r?(er=Pl,Pl={type:"for_values_item",keyword:"in",in:hd}):(s=Pl,Pl=r),Pl===r&&(Pl=s,ws()!==r&&kr()!==r&&Ho()!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="modulus"?(hd=t.substr(s,7),s+=7):(hd=r,ir===0&&ut(ev)),hd!==r&&kr()!==r&&(md=as())!==r&&kr()!==r&&du()!==r&&kr()!==r?(t.substr(s,9).toLowerCase()==="remainder"?(Td=t.substr(s,9),s+=9):(Td=r,ir===0&&ut(yc)),Td!==r&&kr()!==r&&(qp=as())!==r&&kr()!==r&&Lu()!==r?(er=Pl,Pl={type:"for_values_item",keyword:"with",modulus:md,remainder:qp}):(s=Pl,Pl=r)):(s=Pl,Pl=r)):(s=Pl,Pl=r))),Pl})())!==r?(er=Pa,Pa=fb={type:"for_values",keyword:"for values",expr:tv}):(s=Pa,Pa=r),Pa})())!==r&&kr()!==r?(vo=s,(Io=nn())!==r&&(xo=kr())!==r&&(Tu=Er())!==r?vo=Io=[Io,xo,Tu]:(s=vo,vo=r),vo===r&&(vo=null),vo===r?(s=he,he=r):(er=he,re={type:"partition_of",keyword:"partition of",table:Ze,for_values:Fe,tablespace:(_a=vo)&&_a[2]},he=re)):(s=he,he=r)):(s=he,he=r);var _a;return he})())!==r?(er=D,Qn=V,As=Ur,Bs=zr,Zs=Br,be=qt,(ae=wt)&&ae.forEach(he=>Za.add(`create::${[he.db,he.schema].filter(Boolean).join(".")||null}::${he.table}`)),V={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:Qn[0].toLowerCase(),keyword:"table",temporary:As&&As[0].toLowerCase(),unlogged:Bs,if_not_exists:Zs,table:ae,partition_of:be}},D=V):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r);var Qn,As,Bs,Zs,ae,be;return D===r&&(D=s,(V=Gu())!==r&&kr()!==r?((Ur=Aa())===r&&(Ur=Ko()),Ur===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=Wr())===r&&(zr=null),zr!==r&&kr()!==r&&Dr()!==r&&kr()!==r?((Br=bt())===r&&(Br=null),Br!==r&&kr()!==r&&(wt=vc())!==r&&kr()!==r?((qt=(function(){var he,re,_e,Ze,Fe,vo,Io,xo,Tu;if(he=s,(re=Ho())!==r)if(kr()!==r)if((_e=eo())!==r){for(Ze=[],Fe=s,(vo=kr())!==r&&(Io=du())!==r&&(xo=kr())!==r&&(Tu=eo())!==r?Fe=vo=[vo,Io,xo,Tu]:(s=Fe,Fe=r);Fe!==r;)Ze.push(Fe),Fe=s,(vo=kr())!==r&&(Io=du())!==r&&(xo=kr())!==r&&(Tu=eo())!==r?Fe=vo=[vo,Io,xo,Tu]:(s=Fe,Fe=r);Ze!==r&&(Fe=kr())!==r&&(vo=Lu())!==r?(er=he,re=Vc(_e,Ze),he=re):(s=he,he=r)}else s=he,he=r;else s=he,he=r;else s=he,he=r;return he})())===r&&(qt=null),qt!==r&&kr()!==r?((un=(function(){var he,re,_e,Ze,Fe,vo,Io,xo;if(he=s,(re=Bt())!==r){for(_e=[],Ze=s,(Fe=kr())===r?(s=Ze,Ze=r):((vo=du())===r&&(vo=null),vo!==r&&(Io=kr())!==r&&(xo=Bt())!==r?Ze=Fe=[Fe,vo,Io,xo]:(s=Ze,Ze=r));Ze!==r;)_e.push(Ze),Ze=s,(Fe=kr())===r?(s=Ze,Ze=r):((vo=du())===r&&(vo=null),vo!==r&&(Io=kr())!==r&&(xo=Bt())!==r?Ze=Fe=[Fe,vo,Io,xo]:(s=Ze,Ze=r));_e===r?(s=he,he=r):(er=he,re=Vc(re,_e),he=re)}else s=he,he=r;return he})())===r&&(un=null),un!==r&&kr()!==r?((Sn=Hr())===r&&(Sn=F0()),Sn===r&&(Sn=null),Sn!==r&&kr()!==r?((Fn=rr())===r&&(Fn=null),Fn!==r&&kr()!==r?((es=qr())===r&&(es=null),es===r?(s=D,D=r):(er=D,V=(function(he,re,_e,Ze,Fe,vo,Io,xo,Tu,_a){return Fe&&Fe.forEach(Pa=>Za.add(`create::${[Pa.db,Pa.schema].filter(Boolean).join(".")||null}::${Pa.table}`)),{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:he[0].toLowerCase(),keyword:"table",temporary:re&&re[0].toLowerCase(),unlogged:_e,if_not_exists:Ze,table:Fe,ignore_replace:xo&&xo[0].toLowerCase(),as:Tu&&Tu[0].toLowerCase(),query_expr:_a&&_a.ast,create_definitions:vo,table_options:Io}}})(V,Ur,zr,Br,wt,qt,un,Sn,Fn,es),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D===r&&(D=s,(V=Gu())!==r&&kr()!==r?((Ur=Aa())===r&&(Ur=Ko()),Ur===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=Wr())===r&&(zr=null),zr!==r&&kr()!==r&&Dr()!==r&&kr()!==r?((Br=bt())===r&&(Br=null),Br!==r&&kr()!==r&&(wt=vc())!==r&&kr()!==r&&(qt=(function he(){var re,_e;(re=(function(){var Fe=s,vo;return Vt()!==r&&kr()!==r&&(vo=vc())!==r?(er=Fe,Fe={type:"like",table:vo}):(s=Fe,Fe=r),Fe})())===r&&(re=s,Ho()!==r&&kr()!==r&&(_e=he())!==r&&kr()!==r&&Lu()!==r?(er=re,(Ze=_e).parentheses=!0,re=Ze):(s=re,re=r));var Ze;return re})())!==r?(er=D,V=(function(he,re,_e,Ze,Fe,vo){return Fe&&Fe.forEach(Io=>Za.add(`create::${[Io.db,Io.schema].filter(Boolean).join(".")||null}::${Io.table}`)),{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:he[0].toLowerCase(),keyword:"table",temporary:re&&re[0].toLowerCase(),unlogged:_e,if_not_exists:Ze,table:Fe,like:vo}}})(V,Ur,zr,Br,wt,qt),D=V):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r))),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs,Zs,ae,be,he,re,_e,Ze;return(V=Gu())!==r&&kr()!==r?(Ur=s,(zr=d())!==r&&(Br=kr())!==r&&(wt=F0())!==r?Ur=zr=[zr,Br,wt]:(s=Ur,Ur=r),Ur===r&&(Ur=null),Ur!==r&&(zr=kr())!==r?((Br=ci())===r&&(Br=null),Br!==r&&(wt=kr())!==r?(t.substr(s,7).toLowerCase()==="trigger"?(qt=t.substr(s,7),s+=7):(qt=r,ir===0&&ut(ki)),qt!==r&&kr()!==r&&(un=$e())!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="before"?(Sn=t.substr(s,6),s+=6):(Sn=r,ir===0&&ut(Hl)),Sn===r&&(t.substr(s,5).toLowerCase()==="after"?(Sn=t.substr(s,5),s+=5):(Sn=r,ir===0&&ut(Eb)),Sn===r&&(t.substr(s,10).toLowerCase()==="instead of"?(Sn=t.substr(s,10),s+=10):(Sn=r,ir===0&&ut(Bb)))),Sn!==r&&kr()!==r&&(Fn=(function(){var Fe,vo,Io,xo,Tu,_a,Pa,fb;if(Fe=s,(vo=et())!==r){for(Io=[],xo=s,(Tu=kr())!==r&&(_a=d())!==r&&(Pa=kr())!==r&&(fb=et())!==r?xo=Tu=[Tu,_a,Pa,fb]:(s=xo,xo=r);xo!==r;)Io.push(xo),xo=s,(Tu=kr())!==r&&(_a=d())!==r&&(Pa=kr())!==r&&(fb=et())!==r?xo=Tu=[Tu,_a,Pa,fb]:(s=xo,xo=r);Io===r?(s=Fe,Fe=r):(er=Fe,vo=Vc(vo,Io),Fe=vo)}else s=Fe,Fe=r;return Fe})())!==r&&kr()!==r?(t.substr(s,2).toLowerCase()==="on"?(es=t.substr(s,2),s+=2):(es=r,ir===0&&ut(gl)),es!==r&&kr()!==r&&(Qn=hi())!==r&&kr()!==r?(As=s,(Bs=M())!==r&&(Zs=kr())!==r&&(ae=hi())!==r?As=Bs=[Bs,Zs,ae]:(s=As,As=r),As===r&&(As=null),As!==r&&(Bs=kr())!==r?((Zs=(function(){var Fe=s,vo=s,Io,xo,Tu;t.substr(s,3).toLowerCase()==="not"?(Io=t.substr(s,3),s+=3):(Io=r,ir===0&&ut(vb)),Io===r&&(Io=null),Io!==r&&(xo=kr())!==r?(t.substr(s,10).toLowerCase()==="deferrable"?(Tu=t.substr(s,10),s+=10):(Tu=r,ir===0&&ut(Nl)),Tu===r?(s=vo,vo=r):vo=Io=[Io,xo,Tu]):(s=vo,vo=r),vo!==r&&(Io=kr())!==r?(t.substr(s,19).toLowerCase()==="initially immediate"?(xo=t.substr(s,19),s+=19):(xo=r,ir===0&&ut(Sv)),xo===r&&(t.substr(s,18).toLowerCase()==="initially deferred"?(xo=t.substr(s,18),s+=18):(xo=r,ir===0&&ut(Hb))),xo===r?(s=Fe,Fe=r):(er=Fe,Pa=xo,vo={keyword:(_a=vo)&&_a[0]?_a[0].toLowerCase()+" deferrable":"deferrable",args:Pa&&Pa.toLowerCase()},Fe=vo)):(s=Fe,Fe=r);var _a,Pa;return Fe})())===r&&(Zs=null),Zs!==r&&(ae=kr())!==r?((be=(function(){var Fe=s,vo,Io,xo;t.substr(s,3).toLowerCase()==="for"?(vo=t.substr(s,3),s+=3):(vo=r,ir===0&&ut($c)),vo!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="each"?(Io=t.substr(s,4),s+=4):(Io=r,ir===0&&ut(Jf)),Io===r&&(Io=null),Io!==r&&kr()!==r?(t.substr(s,3).toLowerCase()==="row"?(xo=t.substr(s,3),s+=3):(xo=r,ir===0&&ut(pf)),xo===r&&(t.substr(s,9).toLowerCase()==="statement"?(xo=t.substr(s,9),s+=9):(xo=r,ir===0&&ut(Yb))),xo===r?(s=Fe,Fe=r):(er=Fe,Tu=vo,Pa=xo,vo={keyword:(_a=Io)?`${Tu.toLowerCase()} ${_a.toLowerCase()}`:Tu.toLowerCase(),args:Pa.toLowerCase()},Fe=vo)):(s=Fe,Fe=r)):(s=Fe,Fe=r);var Tu,_a,Pa;return Fe})())===r&&(be=null),be!==r&&kr()!==r?((he=(function(){var Fe=s,vo;return lr()!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(vo=Uu())!==r&&kr()!==r&&Lu()!==r?(er=Fe,Fe={type:"when",cond:vo,parentheses:!0}):(s=Fe,Fe=r),Fe})())===r&&(he=null),he!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="execute"?(re=t.substr(s,7),s+=7):(re=r,ir===0&&ut(pa)),re!==r&&kr()!==r?(t.substr(s,9).toLowerCase()==="procedure"?(_e=t.substr(s,9),s+=9):(_e=r,ir===0&&ut(wl)),_e===r&&(t.substr(s,8).toLowerCase()==="function"?(_e=t.substr(s,8),s+=8):(_e=r,ir===0&&ut(He))),_e!==r&&kr()!==r&&(Ze=Yd())!==r?(er=D,V=(function(Fe,vo,Io,xo,Tu,_a,Pa,fb,tv,Pl,hd,md,Td,qp,Ld,yd){return{type:"create",replace:vo&&"or replace",constraint:Tu,location:_a&&_a.toLowerCase(),events:Pa,table:tv,from:Pl&&Pl[2],deferrable:hd,for_each:md,when:Td,execute:{keyword:"execute "+Ld.toLowerCase(),expr:yd},constraint_type:xo&&xo.toLowerCase(),keyword:xo&&xo.toLowerCase(),constraint_kw:Io&&Io.toLowerCase(),resource:"constraint"}})(0,Ur,Br,qt,un,Sn,Fn,0,Qn,As,Zs,be,he,0,_e,Ze),D=V):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs;(V=Gu())!==r&&kr()!==r?(t.substr(s,9).toLowerCase()==="extension"?(Ur=t.substr(s,9),s+=9):(Ur=r,ir===0&&ut(ou)),Ur!==r&&kr()!==r?((zr=bt())===r&&(zr=null),zr!==r&&kr()!==r?((Br=$e())===r&&(Br=Pt()),Br!==r&&kr()!==r?((wt=ws())===r&&(wt=null),wt!==r&&kr()!==r?(qt=s,t.substr(s,6).toLowerCase()==="schema"?(un=t.substr(s,6),s+=6):(un=r,ir===0&&ut(Hs)),un!==r&&(Sn=kr())!==r&&(Fn=$e())!==r?qt=un=[un,Sn,Fn]:(s=qt,qt=r),qt===r&&(qt=Pt()),qt===r&&(qt=null),qt!==r&&(un=kr())!==r?(Sn=s,t.substr(s,7).toLowerCase()==="version"?(Fn=t.substr(s,7),s+=7):(Fn=r,ir===0&&ut(Uo)),Fn!==r&&(es=kr())!==r?((Qn=$e())===r&&(Qn=Pt()),Qn===r?(s=Sn,Sn=r):Sn=Fn=[Fn,es,Qn]):(s=Sn,Sn=r),Sn===r&&(Sn=null),Sn!==r&&(Fn=kr())!==r?(es=s,(Qn=M())!==r&&(As=kr())!==r?((Bs=$e())===r&&(Bs=Pt()),Bs===r?(s=es,es=r):es=Qn=[Qn,As,Bs]):(s=es,es=r),es===r&&(es=null),es===r?(s=D,D=r):(er=D,Zs=zr,ae=Br,be=wt,he=qt,re=Sn,_e=es,V={type:"create",keyword:Ur.toLowerCase(),if_not_exists:Zs,extension:Bd(ae),with:be&&be[0].toLowerCase(),schema:Bd(he&&he[2].toLowerCase()),version:Bd(re&&re[2]),from:Bd(_e&&_e[2])},D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r);var Zs,ae,be,he,re,_e;return D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs,Zs,ae,be,he,re,_e;(V=Gu())!==r&&kr()!==r?((Ur=Ku())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=wo())!==r&&kr()!==r?((Br=bt())===r&&(Br=null),Br===r?(s=D,D=r):((wt=uf())===r&&(wt=null),wt!==r&&kr()!==r?((qt=it())===r&&(qt=null),qt!==r&&kr()!==r&&(un=On())!==r&&kr()!==r&&(Sn=hi())!==r&&kr()!==r?((Fn=yi())===r&&(Fn=null),Fn!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(es=(function(){var qp,Ld,yd,bd,wd,Id,gd,Rd;if(qp=s,(Ld=Xe())!==r){for(yd=[],bd=s,(wd=kr())!==r&&(Id=du())!==r&&(gd=kr())!==r&&(Rd=Xe())!==r?bd=wd=[wd,Id,gd,Rd]:(s=bd,bd=r);bd!==r;)yd.push(bd),bd=s,(wd=kr())!==r&&(Id=du())!==r&&(gd=kr())!==r&&(Rd=Xe())!==r?bd=wd=[wd,Id,gd,Rd]:(s=bd,bd=r);yd===r?(s=qp,qp=r):(er=qp,Ld=Vc(Ld,yd),qp=Ld)}else s=qp,qp=r;return qp})())!==r&&kr()!==r&&Lu()!==r&&kr()!==r?((Qn=(function(){var qp=s,Ld,yd;return t.substr(s,7).toLowerCase()==="include"?(Ld=t.substr(s,7),s+=7):(Ld=r,ir===0&&ut(s0)),Ld!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(yd=cr())!==r&&kr()!==r&&Lu()!==r?(er=qp,Ld=(function(bd,wd){return{type:bd.toLowerCase(),keyword:bd.toLowerCase(),columns:wd}})(Ld,yd),qp=Ld):(s=qp,qp=r),qp})())===r&&(Qn=null),Qn!==r&&kr()!==r?(As=s,(Bs=ws())!==r&&(Zs=kr())!==r&&(ae=Ho())!==r&&(be=kr())!==r&&(he=(function(){var qp,Ld,yd,bd,wd,Id,gd,Rd;if(qp=s,(Ld=Wa())!==r){for(yd=[],bd=s,(wd=kr())!==r&&(Id=du())!==r&&(gd=kr())!==r&&(Rd=Wa())!==r?bd=wd=[wd,Id,gd,Rd]:(s=bd,bd=r);bd!==r;)yd.push(bd),bd=s,(wd=kr())!==r&&(Id=du())!==r&&(gd=kr())!==r&&(Rd=Wa())!==r?bd=wd=[wd,Id,gd,Rd]:(s=bd,bd=r);yd===r?(s=qp,qp=r):(er=qp,Ld=Vc(Ld,yd),qp=Ld)}else s=qp,qp=r;return qp})())!==r&&(re=kr())!==r&&(_e=Lu())!==r?As=Bs=[Bs,Zs,ae,be,he,re,_e]:(s=As,As=r),As===r&&(As=null),As!==r&&(Bs=kr())!==r?(Zs=s,(ae=nn())!==r&&(be=kr())!==r&&(he=$e())!==r?Zs=ae=[ae,be,he]:(s=Zs,Zs=r),Zs===r&&(Zs=null),Zs!==r&&(ae=kr())!==r?((be=fl())===r&&(be=null),be!==r&&(he=kr())!==r?(er=D,Ze=V,Fe=Ur,vo=zr,Io=Br,xo=wt,Tu=qt,_a=un,Pa=Sn,fb=Fn,tv=es,Pl=Qn,hd=As,md=Zs,Td=be,V={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:Ze[0].toLowerCase(),index_type:Fe&&Fe.toLowerCase(),keyword:vo.toLowerCase(),concurrently:xo&&xo.toLowerCase(),index:Tu,if_not_exists:Io,on_kw:_a[0].toLowerCase(),table:Pa,index_using:fb,index_columns:tv,include:Pl,with:hd&&hd[4],with_before_where:!0,tablespace:md&&{type:"origin",value:md[2]},where:Td}},D=V):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r))):(s=D,D=r)):(s=D,D=r);var Ze,Fe,vo,Io,xo,Tu,_a,Pa,fb,tv,Pl,hd,md,Td;return D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn;return(V=Gu())!==r&&kr()!==r?((Ur=Ko())===r&&(Ur=Aa()),Ur===r&&(Ur=null),Ur!==r&&kr()!==r&&Mt()!==r&&kr()!==r?((zr=bt())===r&&(zr=null),zr!==r&&kr()!==r&&(Br=hi())!==r&&kr()!==r?(wt=s,(qt=rr())!==r&&(un=kr())!==r&&(Sn=$t())!==r?wt=qt=[qt,un,Sn]:(s=wt,wt=r),wt===r&&(wt=null),wt!==r&&(qt=kr())!==r?((un=me())===r&&(un=null),un===r?(s=D,D=r):(er=D,V=(function(Fn,es,Qn,As,Bs,Zs){return As.as=Bs&&Bs[2],{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:Fn[0].toLowerCase(),keyword:"sequence",temporary:es&&es[0].toLowerCase(),if_not_exists:Qn,sequence:[As],create_definitions:Zs}}})(V,Ur,zr,Br,wt,un),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt;return(V=Gu())!==r&&kr()!==r?((Ur=Xr())===r&&(Ur=Jr()),Ur!==r&&kr()!==r?((zr=bt())===r&&(zr=null),zr!==r&&kr()!==r&&(Br=xd())!==r&&kr()!==r?((wt=(function(){var qt,un,Sn,Fn,es,Qn;if(qt=s,(un=At())!==r){for(Sn=[],Fn=s,(es=kr())!==r&&(Qn=At())!==r?Fn=es=[es,Qn]:(s=Fn,Fn=r);Fn!==r;)Sn.push(Fn),Fn=s,(es=kr())!==r&&(Qn=At())!==r?Fn=es=[es,Qn]:(s=Fn,Fn=r);Sn===r?(s=qt,qt=r):(er=qt,un=Vc(un,Sn,1),qt=un)}else s=qt,qt=r;return qt})())===r&&(wt=null),wt===r?(s=D,D=r):(er=D,V=(function(qt,un,Sn,Fn,es){let Qn=un.toLowerCase();return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:qt[0].toLowerCase(),keyword:Qn,if_not_exists:Sn,[Qn]:{db:Fn.schema,schema:Fn.name},create_definitions:es}}})(V,Ur,zr,Br,wt),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn;return(V=Gu())!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="domain"?(Ur=t.substr(s,6),s+=6):(Ur=r,ir===0&&ut(uo)),Ur!==r&&kr()!==r&&(zr=hi())!==r&&kr()!==r?((Br=rr())===r&&(Br=null),Br!==r&&kr()!==r&&(wt=Ed())!==r&&kr()!==r?((qt=Mu())===r&&(qt=null),qt!==r&&kr()!==r?((un=Po())===r&&(un=null),un!==r&&kr()!==r?((Sn=J())===r&&(Sn=null),Sn===r?(s=D,D=r):(er=D,V=(function(Fn,es,Qn,As,Bs,Zs,ae,be){be&&(be.type="constraint");let he=[Zs,ae,be].filter(re=>re);return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:Fn[0].toLowerCase(),keyword:es.toLowerCase(),domain:{schema:Qn.db,name:Qn.table},as:As&&As[0]&&As[0].toLowerCase(),target:Bs,create_definitions:he}}})(V,Ur,zr,Br,wt,qt,un,Sn),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br;(V=Gu())!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="type"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(Qe)),Ur!==r&&kr()!==r&&(zr=hi())!==r&&kr()!==r?((Br=(function(){var Fn=s,es,Qn,As,Bs;(es=rr())!==r&&kr()!==r?((Qn=f())===r&&(t.substr(s,5).toLowerCase()==="range"?(Qn=t.substr(s,5),s+=5):(Qn=r,ir===0&&ut(Ue))),Qn!==r&&kr()!==r&&(As=Ho())!==r&&kr()!==r?((Bs=pc())===r&&(Bs=null),Bs!==r&&kr()!==r&&Lu()!==r?(er=Fn,Zs=Qn,(ae=Bs).parentheses=!0,es={as:"as",resource:Zs.toLowerCase(),create_definitions:ae},Fn=es):(s=Fn,Fn=r)):(s=Fn,Fn=r)):(s=Fn,Fn=r);var Zs,ae;return Fn===r&&(Fn=s,(es=rr())!==r&&kr()!==r&&(Qn=Ho())!==r&&kr()!==r?((As=(function(){var be,he,re,_e,Ze,Fe,vo,Io;if(be=s,(he=$o())!==r){for(re=[],_e=s,(Ze=kr())!==r&&(Fe=du())!==r&&(vo=kr())!==r&&(Io=$o())!==r?_e=Ze=[Ze,Fe,vo,Io]:(s=_e,_e=r);_e!==r;)re.push(_e),_e=s,(Ze=kr())!==r&&(Fe=du())!==r&&(vo=kr())!==r&&(Io=$o())!==r?_e=Ze=[Ze,Fe,vo,Io]:(s=_e,_e=r);re===r?(s=be,be=r):(er=be,he=Vc(he,re),be=he)}else s=be,be=r;return be})())===r&&(As=null),As!==r&&kr()!==r&&(Bs=Lu())!==r?(er=Fn,es=(function(be){return{as:"as",create_definitions:be}})(As),Fn=es):(s=Fn,Fn=r)):(s=Fn,Fn=r)),Fn})())===r&&(Br=null),Br===r?(s=D,D=r):(er=D,wt=V,qt=Ur,un=zr,Sn=Br,Kd.add([un.db,un.table].filter(Fn=>Fn).join(".")),V={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:wt[0].toLowerCase(),keyword:qt.toLowerCase(),name:{schema:un.db,name:un.table},...Sn}},D=V)):(s=D,D=r)):(s=D,D=r);var wt,qt,un,Sn;return D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs,Zs,ae,be,he;return(V=Gu())!==r&&kr()!==r?(Ur=s,(zr=d())!==r&&(Br=kr())!==r&&(wt=F0())!==r?Ur=zr=[zr,Br,wt]:(s=Ur,Ur=r),Ur===r&&(Ur=null),Ur!==r&&(zr=kr())!==r?((Br=Aa())===r&&(Br=Ko()),Br===r&&(Br=null),Br!==r&&(wt=kr())!==r?((qt=Pi())===r&&(qt=null),qt!==r&&kr()!==r&&Vs()!==r&&kr()!==r&&(un=hi())!==r&&kr()!==r?(Sn=s,(Fn=Ho())!==r&&(es=kr())!==r&&(Qn=cr())!==r&&(As=kr())!==r&&(Bs=Lu())!==r?Sn=Fn=[Fn,es,Qn,As,Bs]:(s=Sn,Sn=r),Sn===r&&(Sn=null),Sn!==r&&(Fn=kr())!==r?(es=s,(Qn=ws())!==r&&(As=kr())!==r&&(Bs=Ho())!==r&&(Zs=kr())!==r&&(ae=(function(){var re,_e,Ze,Fe,vo,Io,xo,Tu;if(re=s,(_e=xt())!==r){for(Ze=[],Fe=s,(vo=kr())!==r&&(Io=du())!==r&&(xo=kr())!==r&&(Tu=xt())!==r?Fe=vo=[vo,Io,xo,Tu]:(s=Fe,Fe=r);Fe!==r;)Ze.push(Fe),Fe=s,(vo=kr())!==r&&(Io=du())!==r&&(xo=kr())!==r&&(Tu=xt())!==r?Fe=vo=[vo,Io,xo,Tu]:(s=Fe,Fe=r);Ze===r?(s=re,re=r):(er=re,_e=Vc(_e,Ze),re=_e)}else s=re,re=r;return re})())!==r&&(be=kr())!==r&&(he=Lu())!==r?es=Qn=[Qn,As,Bs,Zs,ae,be,he]:(s=es,es=r),es===r&&(es=null),es!==r&&(Qn=kr())!==r&&(As=rr())!==r&&(Bs=kr())!==r&&(Zs=hu())!==r&&(ae=kr())!==r?((be=(function(){var re=s,_e,Ze,Fe,vo;return(_e=ws())!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="cascaded"?(Ze=t.substr(s,8),s+=8):(Ze=r,ir===0&&ut(Ps)),Ze===r&&(t.substr(s,5).toLowerCase()==="local"?(Ze=t.substr(s,5),s+=5):(Ze=r,ir===0&&ut(pe))),Ze!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="check"?(Fe=t.substr(s,5),s+=5):(Fe=r,ir===0&&ut(_o)),Fe!==r&&kr()!==r?(t.substr(s,6)==="OPTION"?(vo="OPTION",s+=6):(vo=r,ir===0&&ut(Gi)),vo===r?(s=re,re=r):(er=re,_e=(function(Io){return`with ${Io.toLowerCase()} check option`})(Ze),re=_e)):(s=re,re=r)):(s=re,re=r)):(s=re,re=r),re===r&&(re=s,(_e=ws())!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="check"?(Ze=t.substr(s,5),s+=5):(Ze=r,ir===0&&ut(_o)),Ze!==r&&kr()!==r?(t.substr(s,6)==="OPTION"?(Fe="OPTION",s+=6):(Fe=r,ir===0&&ut(Gi)),Fe===r?(s=re,re=r):(er=re,re=_e="with check option")):(s=re,re=r)):(s=re,re=r)),re})())===r&&(be=null),be===r?(s=D,D=r):(er=D,V=(function(re,_e,Ze,Fe,vo,Io,xo,Tu,_a){return vo.view=vo.table,delete vo.table,{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:re[0].toLowerCase(),keyword:"view",replace:_e&&"or replace",temporary:Ze&&Ze[0].toLowerCase(),recursive:Fe&&Fe.toLowerCase(),columns:Io&&Io[2],select:Tu,view:vo,with_options:xo&&xo[4],with:_a}}})(V,Ur,Br,qt,un,Sn,es,Zs,be),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn;(V=Gu())!==r&&kr()!==r?(Ur=s,(zr=d())!==r&&(Br=kr())!==r&&(wt=F0())!==r?Ur=zr=[zr,Br,wt]:(s=Ur,Ur=r),Ur===r&&(Ur=null),Ur!==r&&(zr=kr())!==r?(t.substr(s,9).toLowerCase()==="aggregate"?(Br=t.substr(s,9),s+=9):(Br=r,ir===0&&ut(Fl)),Br!==r&&(wt=kr())!==r&&(qt=hi())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(un=F())!==r&&kr()!==r&&Lu()!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Sn=(function(){var As,Bs,Zs,ae,be,he,re,_e;if(As=s,(Bs=(function(){var Ze=s,Fe,vo,Io,xo;t.substr(s,5).toLowerCase()==="sfunc"?(Fe=t.substr(s,5),s+=5):(Fe=r,ir===0&&ut(dl)),Fe!==r&&kr()!==r&&ze()!==r&&kr()!==r&&(vo=hi())!==r&&kr()!==r&&du()!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="stype"?(Io=t.substr(s,5),s+=5):(Io=r,ir===0&&ut(Gl)),Io!==r&&kr()!==r&&ze()!==r&&kr()!==r&&(xo=Ed())!==r?(er=Ze,_a=xo,Fe=[{type:"sfunc",symbol:"=",value:{schema:(Tu=vo).db,name:Tu.table}},{type:"stype",symbol:"=",value:_a}],Ze=Fe):(s=Ze,Ze=r)):(s=Ze,Ze=r);var Tu,_a;return Ze})())!==r){for(Zs=[],ae=s,(be=kr())!==r&&(he=du())!==r&&(re=kr())!==r&&(_e=cn())!==r?ae=be=[be,he,re,_e]:(s=ae,ae=r);ae!==r;)Zs.push(ae),ae=s,(be=kr())!==r&&(he=du())!==r&&(re=kr())!==r&&(_e=cn())!==r?ae=be=[be,he,re,_e]:(s=ae,ae=r);Zs===r?(s=As,As=r):(er=As,Bs=Vc(Bs,Zs),As=Bs)}else s=As,As=r;return As})())!==r&&kr()!==r&&Lu()!==r?(er=D,Fn=qt,es=un,Qn=Sn,V={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"create",keyword:"aggregate",name:{schema:Fn.db,name:Fn.table},args:{parentheses:!0,expr:es,orderby:es.orderby},options:Qn}},D=V):(s=D,D=r)):(s=D,D=r)):(s=D,D=r);var Fn,es,Qn;return D})()),T})())===r&&(v=Ws())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un;(D=sn())!==r&&kr()!==r?((V=Dr())===r&&(V=null),V!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="only"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(sl)),Ur===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=(function(){var Zs,ae,be,he,re,_e,Ze,Fe;if(Zs=s,(ae=Na())!==r){for(be=[],he=s,(re=kr())!==r&&(_e=du())!==r&&(Ze=kr())!==r&&(Fe=Na())!==r?he=re=[re,_e,Ze,Fe]:(s=he,he=r);he!==r;)be.push(he),he=s,(re=kr())!==r&&(_e=du())!==r&&(Ze=kr())!==r&&(Fe=Na())!==r?he=re=[re,_e,Ze,Fe]:(s=he,he=r);be===r?(s=Zs,Zs=r):(er=Zs,ae=Vc(ae,be),Zs=ae)}else s=Zs,Zs=r;return Zs})())!==r&&kr()!==r?(Br=s,t.substr(s,7).toLowerCase()==="restart"?(wt=t.substr(s,7),s+=7):(wt=r,ir===0&&ut(cf)),wt===r&&(t.substr(s,8).toLowerCase()==="continue"?(wt=t.substr(s,8),s+=8):(wt=r,ir===0&&ut(sc))),wt!==r&&(qt=kr())!==r?(t.substr(s,8).toLowerCase()==="identity"?(un=t.substr(s,8),s+=8):(un=r,ir===0&&ut(H0)),un===r?(s=Br,Br=r):Br=wt=[wt,qt,un]):(s=Br,Br=r),Br===r&&(Br=null),Br!==r&&(wt=kr())!==r?(t.substr(s,7).toLowerCase()==="cascade"?(qt=t.substr(s,7),s+=7):(qt=r,ir===0&&ut(hc)),qt===r&&(t.substr(s,8).toLowerCase()==="restrict"?(qt=t.substr(s,8),s+=8):(qt=r,ir===0&&ut(Bl))),qt===r&&(qt=null),qt===r?(s=T,T=r):(er=T,Sn=D,Fn=V,es=Ur,Qn=zr,As=Br,Bs=qt,D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:Sn.toLowerCase(),keyword:Fn&&Fn.toLowerCase()||"table",prefix:es,name:Qn,suffix:[As&&[As[0],As[2]].join(" "),Bs].filter(Zs=>Zs).map(Zs=>({type:"origin",value:Zs}))}},T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var Sn,Fn,es,Qn,As,Bs;return T})())===r&&(v=(function(){var T=s,D,V;(D=Zu())!==r&&kr()!==r&&Dr()!==r&&kr()!==r&&(V=(function(){var zr,Br,wt,qt,un,Sn,Fn,es;if(zr=s,(Br=Ee())!==r){for(wt=[],qt=s,(un=kr())!==r&&(Sn=du())!==r&&(Fn=kr())!==r&&(es=Ee())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r);qt!==r;)wt.push(qt),qt=s,(un=kr())!==r&&(Sn=du())!==r&&(Fn=kr())!==r&&(es=Ee())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r);wt===r?(s=zr,zr=r):(er=zr,Br=Vc(Br,wt),zr=Br)}else s=zr,zr=r;return zr})())!==r?(er=T,(Ur=V).forEach(zr=>zr.forEach(Br=>Br.table&&Za.add(`rename::${[Br.db,Br.schema].filter(Boolean).join(".")||null}::${Br.table}`))),D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"rename",table:Ur}},T=D):(s=T,T=r);var Ur;return T})())===r&&(v=(function(){var T=s,D,V;(D=(function(){var zr=s,Br,wt,qt;return t.substr(s,4).toLowerCase()==="call"?(Br=t.substr(s,4),s+=4):(Br=r,ir===0&&ut(P0)),Br===r?(s=zr,zr=r):(wt=s,ir++,qt=Gs(),ir--,qt===r?wt=void 0:(s=wt,wt=r),wt===r?(s=zr,zr=r):(er=zr,zr=Br="CALL")),zr})())!==r&&kr()!==r&&(V=Yd())!==r?(er=T,Ur=V,D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"call",expr:Ur}},T=D):(s=T,T=r);var Ur;return T})())===r&&(v=(function(){var T=s,D,V;(D=(function(){var zr=s,Br,wt,qt;return t.substr(s,3).toLowerCase()==="use"?(Br=t.substr(s,3),s+=3):(Br=r,ir===0&&ut(Ye)),Br===r?(s=zr,zr=r):(wt=s,ir++,qt=Gs(),ir--,qt===r?wt=void 0:(s=wt,wt=r),wt===r?(s=zr,zr=r):zr=Br=[Br,wt]),zr})())!==r&&kr()!==r&&(V=it())!==r?(er=T,Ur=V,Za.add(`use::${Ur}::null`),D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"use",db:Ur}},T=D):(s=T,T=r);var Ur;return T})())===r&&(v=(function(){var T;return(T=(function(){var D=s,V,Ur,zr,Br,wt,qt;(V=ho())!==r&&kr()!==r?((Ur=Dr())===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=pr())===r&&(zr=null),zr!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="only"?(Br=t.substr(s,4),s+=4):(Br=r,ir===0&&ut(Cb)),Br===r&&(Br=null),Br!==r&&kr()!==r&&(wt=hi())!==r&&kr()!==r&&(qt=(function(){var Qn,As,Bs,Zs,ae,be,he,re;if(Qn=s,(As=dt())!==r){for(Bs=[],Zs=s,(ae=kr())!==r&&(be=du())!==r&&(he=kr())!==r&&(re=dt())!==r?Zs=ae=[ae,be,he,re]:(s=Zs,Zs=r);Zs!==r;)Bs.push(Zs),Zs=s,(ae=kr())!==r&&(be=du())!==r&&(he=kr())!==r&&(re=dt())!==r?Zs=ae=[ae,be,he,re]:(s=Zs,Zs=r);Bs===r?(s=Qn,Qn=r):(er=Qn,As=Vc(As,Bs),Qn=As)}else s=Qn,Qn=r;return Qn})())!==r?(er=D,un=zr,Sn=Br,es=qt,(Fn=wt)&&Fn.length>0&&Fn.forEach(Qn=>Za.add(`alter::${[Qn.db,Qn.schema].filter(Boolean).join(".")||null}::${Qn.table}`)),V={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"alter",keyword:"table",if_exists:un,prefix:Sn&&{type:"origin",value:Sn},table:[Fn],expr:es}},D=V):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r);var un,Sn,Fn,es;return D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br;return(V=ho())!==r&&kr()!==r&&(Ur=Jr())!==r&&kr()!==r&&(zr=$e())!==r&&kr()!==r?((Br=Yt())===r&&(Br=vn())===r&&(Br=fn()),Br===r?(s=D,D=r):(er=D,V=(function(wt,qt,un){let Sn=wt.toLowerCase();return un.resource=Sn,un[Sn]=un.table,delete un.table,{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"alter",keyword:Sn,schema:qt,expr:un}}})(Ur,zr,Br),D=V)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br;return(V=ho())!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="domain"?(Ur=t.substr(s,6),s+=6):(Ur=r,ir===0&&ut(uo)),Ur===r&&(t.substr(s,4).toLowerCase()==="type"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(Qe))),Ur!==r&&kr()!==r&&(zr=hi())!==r&&kr()!==r?((Br=Yt())===r&&(Br=vn())===r&&(Br=fn()),Br===r?(s=D,D=r):(er=D,V=(function(wt,qt,un){let Sn=wt.toLowerCase();return un.resource=Sn,un[Sn]=un.table,delete un.table,{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"alter",keyword:Sn,name:{schema:qt.db,name:qt.table},expr:un}}})(Ur,zr,Br),D=V)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn,Fn;return(V=ho())!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="function"?(Ur=t.substr(s,8),s+=8):(Ur=r,ir===0&&ut(He)),Ur!==r&&kr()!==r&&(zr=hi())!==r&&kr()!==r?(Br=s,(wt=Ho())!==r&&(qt=kr())!==r?((un=Rr())===r&&(un=null),un!==r&&(Sn=kr())!==r&&(Fn=Lu())!==r?Br=wt=[wt,qt,un,Sn,Fn]:(s=Br,Br=r)):(s=Br,Br=r),Br===r&&(Br=null),Br!==r&&(wt=kr())!==r?((qt=Yt())===r&&(qt=vn())===r&&(qt=fn()),qt===r?(s=D,D=r):(er=D,V=(function(es,Qn,As,Bs){let Zs=es.toLowerCase();Bs.resource=Zs,Bs[Zs]=Bs.table,delete Bs.table;let ae={};return As&&As[0]&&(ae.parentheses=!0),ae.expr=As&&As[2],{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"alter",keyword:Zs,name:{schema:Qn.db,name:Qn.table},args:ae,expr:Bs}}})(Ur,zr,Br,qt),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt;return(V=ho())!==r&&kr()!==r?(t.substr(s,9).toLowerCase()==="aggregate"?(Ur=t.substr(s,9),s+=9):(Ur=r,ir===0&&ut(Fl)),Ur!==r&&kr()!==r&&(zr=hi())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Br=F())!==r&&kr()!==r&&Lu()!==r&&kr()!==r?((wt=Yt())===r&&(wt=vn())===r&&(wt=fn()),wt===r?(s=D,D=r):(er=D,V=(function(qt,un,Sn,Fn){let es=qt.toLowerCase();return Fn.resource=es,Fn[es]=Fn.table,delete Fn.table,{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"alter",keyword:es,name:{schema:un.db,name:un.table},args:{parentheses:!0,expr:Sn,orderby:Sn.orderby},expr:Fn}}})(Ur,zr,Br,wt),D=V)):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=(function(){var D=s,V,Ur,zr,Br,wt,qt,un;return(V=ho())!==r&&kr()!==r&&Mt()!==r&&kr()!==r?((Ur=pr())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=hi())!==r&&kr()!==r?(Br=s,(wt=rr())!==r&&(qt=kr())!==r&&(un=Ed())!==r?Br=wt=[wt,qt,un]:(s=Br,Br=r),Br===r&&(Br=null),Br!==r&&(wt=kr())!==r?((qt=me())===r&&(qt=(function(){var Sn,Fn,es,Qn,As,Bs;if(Sn=s,(Fn=ct())!==r){for(es=[],Qn=s,(As=kr())!==r&&(Bs=ct())!==r?Qn=As=[As,Bs]:(s=Qn,Qn=r);Qn!==r;)es.push(Qn),Qn=s,(As=kr())!==r&&(Bs=ct())!==r?Qn=As=[As,Bs]:(s=Qn,Qn=r);es===r?(s=Sn,Sn=r):(er=Sn,Fn=Vc(Fn,es,1),Sn=Fn)}else s=Sn,Sn=r;return Sn})()),qt===r&&(qt=null),qt===r?(s=D,D=r):(er=D,V=(function(Sn,Fn,es,Qn){return Fn.as=es&&es[2],{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"alter",keyword:"sequence",if_exists:Sn,sequence:[Fn],expr:Qn}}})(Ur,zr,Br,qt),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r),D})()),T})())===r&&(v=(function(){var T=s,D,V,Ur;(D=q())!==r&&kr()!==r?((V=(function(){var wt=s,qt,un,Sn;return t.substr(s,6).toLowerCase()==="global"?(qt=t.substr(s,6),s+=6):(qt=r,ir===0&&ut(Un)),qt===r?(s=wt,wt=r):(un=s,ir++,Sn=Gs(),ir--,Sn===r?un=void 0:(s=un,un=r),un===r?(s=wt,wt=r):(er=wt,wt=qt="GLOBAL")),wt})())===r&&(V=(function(){var wt=s,qt,un,Sn;return t.substr(s,7).toLowerCase()==="session"?(qt=t.substr(s,7),s+=7):(qt=r,ir===0&&ut(u)),qt===r?(s=wt,wt=r):(un=s,ir++,Sn=Gs(),ir--,Sn===r?un=void 0:(s=un,un=r),un===r?(s=wt,wt=r):(er=wt,wt=qt="SESSION")),wt})())===r&&(V=Ms())===r&&(V=(function(){var wt=s,qt,un,Sn;return t.substr(s,7).toLowerCase()==="persist"?(qt=t.substr(s,7),s+=7):(qt=r,ir===0&&ut(yt)),qt===r?(s=wt,wt=r):(un=s,ir++,Sn=Gs(),ir--,Sn===r?un=void 0:(s=un,un=r),un===r?(s=wt,wt=r):(er=wt,wt=qt="PERSIST")),wt})())===r&&(V=(function(){var wt=s,qt,un,Sn;return t.substr(s,12).toLowerCase()==="persist_only"?(qt=t.substr(s,12),s+=12):(qt=r,ir===0&&ut(Y)),qt===r?(s=wt,wt=r):(un=s,ir++,Sn=Gs(),ir--,Sn===r?un=void 0:(s=un,un=r),un===r?(s=wt,wt=r):(er=wt,wt=qt="PERSIST_ONLY")),wt})()),V===r&&(V=null),V!==r&&kr()!==r&&(Ur=(function(){var wt,qt,un,Sn,Fn,es,Qn,As;if(wt=s,(qt=$d())!==r){for(un=[],Sn=s,(Fn=kr())!==r&&(es=du())!==r&&(Qn=kr())!==r&&(As=$d())!==r?Sn=Fn=[Fn,es,Qn,As]:(s=Sn,Sn=r);Sn!==r;)un.push(Sn),Sn=s,(Fn=kr())!==r&&(es=du())!==r&&(Qn=kr())!==r&&(As=$d())!==r?Sn=Fn=[Fn,es,Qn,As]:(s=Sn,Sn=r);un===r?(s=wt,wt=r):(er=wt,qt=Vc(qt,un),wt=qt)}else s=wt,wt=r;return wt})())!==r?(er=T,zr=V,Br=Ur,D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"set",keyword:zr,expr:Br}},T=D):(s=T,T=r)):(s=T,T=r);var zr,Br;return T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br;(D=(function(){var Fn=s,es,Qn,As;return t.substr(s,4).toLowerCase()==="lock"?(es=t.substr(s,4),s+=4):(es=r,ir===0&&ut(W0)),es===r?(s=Fn,Fn=r):(Qn=s,ir++,As=Gs(),ir--,As===r?Qn=void 0:(s=Qn,Qn=r),Qn===r?(s=Fn,Fn=r):Fn=es=[es,Qn]),Fn})())!==r&&kr()!==r?((V=Dr())===r&&(V=null),V!==r&&kr()!==r&&(Ur=vc())!==r&&kr()!==r?((zr=(function(){var Fn=s,es,Qn,As;return t.substr(s,2).toLowerCase()==="in"?(es=t.substr(s,2),s+=2):(es=r,ir===0&&ut(Os)),es!==r&&kr()!==r?(t.substr(s,12).toLowerCase()==="access share"?(Qn=t.substr(s,12),s+=12):(Qn=r,ir===0&&ut(gs)),Qn===r&&(t.substr(s,9).toLowerCase()==="row share"?(Qn=t.substr(s,9),s+=9):(Qn=r,ir===0&&ut(Ys)),Qn===r&&(t.substr(s,13).toLowerCase()==="row exclusive"?(Qn=t.substr(s,13),s+=13):(Qn=r,ir===0&&ut(Te)),Qn===r&&(t.substr(s,22).toLowerCase()==="share update exclusive"?(Qn=t.substr(s,22),s+=22):(Qn=r,ir===0&&ut(ye)),Qn===r&&(t.substr(s,19).toLowerCase()==="share row exclusive"?(Qn=t.substr(s,19),s+=19):(Qn=r,ir===0&&ut(Be)),Qn===r&&(t.substr(s,9).toLowerCase()==="exclusive"?(Qn=t.substr(s,9),s+=9):(Qn=r,ir===0&&ut(Uf)),Qn===r&&(t.substr(s,16).toLowerCase()==="access exclusive"?(Qn=t.substr(s,16),s+=16):(Qn=r,ir===0&&ut(io)),Qn===r&&(t.substr(s,5).toLowerCase()==="share"?(Qn=t.substr(s,5),s+=5):(Qn=r,ir===0&&ut(Ro))))))))),Qn!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="mode"?(As=t.substr(s,4),s+=4):(As=r,ir===0&&ut(So)),As===r?(s=Fn,Fn=r):(er=Fn,es={mode:`in ${Qn.toLowerCase()} mode`},Fn=es)):(s=Fn,Fn=r)):(s=Fn,Fn=r),Fn})())===r&&(zr=null),zr!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="nowait"?(Br=t.substr(s,6),s+=6):(Br=r,ir===0&&ut(uu)),Br===r&&(Br=null),Br===r?(s=T,T=r):(er=T,wt=V,un=zr,Sn=Br,(qt=Ur)&&qt.forEach(Fn=>Za.add(`lock::${[Fn.db,Fn.schema].filter(Boolean).join(".")||null}::${Fn.table}`)),D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"lock",keyword:wt&&wt.toLowerCase(),tables:qt.map(Fn=>({table:Fn})),lock_mode:un,nowait:Sn}},T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var wt,qt,un,Sn;return T})())===r&&(v=(function(){var T=s,D,V;return(D=_u())!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="tables"?(V=t.substr(s,6),s+=6):(V=r,ir===0&&ut(ko)),V===r?(s=T,T=r):(er=T,D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"show",keyword:"tables"}},T=D)):(s=T,T=r),T===r&&(T=s,(D=_u())!==r&&kr()!==r&&(V=qd())!==r?(er=T,D=(function(Ur){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"show",keyword:"var",var:Ur}}})(V),T=D):(s=T,T=r)),T})())===r&&(v=(function(){var T=s,D,V,Ur;(D=(function(){var wt=s,qt,un,Sn;return t.substr(s,10).toLowerCase()==="deallocate"?(qt=t.substr(s,10),s+=10):(qt=r,ir===0&&ut(aa)),qt===r?(s=wt,wt=r):(un=s,ir++,Sn=Gs(),ir--,Sn===r?un=void 0:(s=un,un=r),un===r?(s=wt,wt=r):(er=wt,wt=qt="DEALLOCATE")),wt})())!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="prepare"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(yu)),V===r&&(V=null),V!==r&&kr()!==r?((Ur=$e())===r&&(Ur=xr()),Ur===r?(s=T,T=r):(er=T,zr=V,Br=Ur,D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"deallocate",keyword:zr,expr:{type:"default",value:Br}}},T=D)):(s=T,T=r)):(s=T,T=r);var zr,Br;return T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn;(D=qe())!==r&&kr()!==r&&(V=(function(){var Qn,As,Bs,Zs,ae,be,he,re;if(Qn=s,(As=Hn())!==r){for(Bs=[],Zs=s,(ae=kr())!==r&&(be=du())!==r&&(he=kr())!==r&&(re=Hn())!==r?Zs=ae=[ae,be,he,re]:(s=Zs,Zs=r);Zs!==r;)Bs.push(Zs),Zs=s,(ae=kr())!==r&&(be=du())!==r&&(he=kr())!==r&&(re=Hn())!==r?Zs=ae=[ae,be,he,re]:(s=Zs,Zs=r);Bs===r?(s=Qn,Qn=r):(er=Qn,As=Vc(As,Bs),Qn=As)}else s=Qn,Qn=r;return Qn})())!==r&&kr()!==r&&(Ur=On())!==r&&kr()!==r?((zr=(function(){var Qn=s,As,Bs;return(As=Dr())===r&&(t.substr(s,8).toLowerCase()==="sequence"?(As=t.substr(s,8),s+=8):(As=r,ir===0&&ut(Sa)),As===r&&(t.substr(s,8).toLowerCase()==="database"?(As=t.substr(s,8),s+=8):(As=r,ir===0&&ut(ma)),As===r&&(t.substr(s,6)==="DOMAIN"?(As="DOMAIN",s+=6):(As=r,ir===0&&ut(Bi)),As===r&&(t.substr(s,8)==="FUNCTION"?(As="FUNCTION",s+=8):(As=r,ir===0&&ut(sa)),As===r&&(t.substr(s,9).toLowerCase()==="procedure"?(As=t.substr(s,9),s+=9):(As=r,ir===0&&ut(wl)),As===r&&(t.substr(s,7).toLowerCase()==="routine"?(As=t.substr(s,7),s+=7):(As=r,ir===0&&ut(di)),As===r&&(t.substr(s,8).toLowerCase()==="language"?(As=t.substr(s,8),s+=8):(As=r,ir===0&&ut(Hi)),As===r&&(t.substr(s,5).toLowerCase()==="large"?(As=t.substr(s,5),s+=5):(As=r,ir===0&&ut(S0)),As===r&&(t.substr(s,6)==="SCHEMA"?(As="SCHEMA",s+=6):(As=r,ir===0&&ut(l0))))))))))),As!==r&&(er=Qn,As={type:"origin",value:As.toUpperCase()}),(Qn=As)===r&&(Qn=s,(As=xr())!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="tables"?(Bs=t.substr(s,6),s+=6):(Bs=r,ir===0&&ut(ko)),Bs===r&&(t.substr(s,8).toLowerCase()==="sequence"?(Bs=t.substr(s,8),s+=8):(Bs=r,ir===0&&ut(Sa)),Bs===r&&(t.substr(s,9).toLowerCase()==="functions"?(Bs=t.substr(s,9),s+=9):(Bs=r,ir===0&&ut(Ov)),Bs===r&&(t.substr(s,10).toLowerCase()==="procedures"?(Bs=t.substr(s,10),s+=10):(Bs=r,ir===0&&ut(lv)),Bs===r&&(t.substr(s,8).toLowerCase()==="routines"?(Bs=t.substr(s,8),s+=8):(Bs=r,ir===0&&ut(fi)))))),Bs!==r&&kr()!==r&&Ct()!==r&&kr()!==r&&Jr()!==r?(er=Qn,Qn=As={type:"origin",value:`all ${Bs} in schema`}):(s=Qn,Qn=r)):(s=Qn,Qn=r)),Qn})())===r&&(zr=null),zr!==r&&(Br=kr())!==r&&(wt=(function(){var Qn,As,Bs,Zs,ae,be,he,re;if(Qn=s,(As=qn())!==r){for(Bs=[],Zs=s,(ae=kr())!==r&&(be=du())!==r&&(he=kr())!==r&&(re=qn())!==r?Zs=ae=[ae,be,he,re]:(s=Zs,Zs=r);Zs!==r;)Bs.push(Zs),Zs=s,(ae=kr())!==r&&(be=du())!==r&&(he=kr())!==r&&(re=qn())!==r?Zs=ae=[ae,be,he,re]:(s=Zs,Zs=r);Bs===r?(s=Qn,Qn=r):(er=Qn,As=Vc(As,Bs),Qn=As)}else s=Qn,Qn=r;return Qn})())!==r&&(qt=kr())!==r?((un=Me())===r&&(un=M()),un===r?(s=T,T=r):(er=s,es=un,({revoke:"from",grant:"to"}[D.type].toLowerCase()===es[0].toLowerCase()?void 0:r)!==r&&kr()!==r&&(Sn=js())!==r&&kr()!==r?((Fn=(function(){var Qn=s,As,Bs;return ws()!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="grant"?(As=t.substr(s,5),s+=5):(As=r,ir===0&&ut(ec)),As!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="option"?(Bs=t.substr(s,6),s+=6):(Bs=r,ir===0&&ut(Fc)),Bs===r?(s=Qn,Qn=r):(er=Qn,Qn={type:"origin",value:"with grant option"})):(s=Qn,Qn=r)):(s=Qn,Qn=r),Qn})())===r&&(Fn=null),Fn===r?(s=T,T=r):(er=T,D=(function(Qn,As,Bs,Zs,ae,be,he){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{...Qn,keyword:"priv",objects:As,on:{object_type:Bs,priv_level:Zs},to_from:ae[0],user_or_roles:be,with:he}}})(D,V,zr,wt,un,Sn,Fn),T=D)):(s=T,T=r))):(s=T,T=r)):(s=T,T=r);var es;return T===r&&(T=s,(D=qe())!==r&&kr()!==r&&(V=Et())!==r&&kr()!==r?((Ur=Me())===r&&(Ur=M()),Ur===r?(s=T,T=r):(er=s,((function(Qn,As,Bs){return{revoke:"from",grant:"to"}[Qn.type].toLowerCase()===Bs[0].toLowerCase()})(D,0,Ur)?void 0:r)!==r&&(zr=kr())!==r&&(Br=js())!==r&&(wt=kr())!==r?((qt=(function(){var Qn=s,As,Bs;return ws()!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="admin"?(As=t.substr(s,5),s+=5):(As=r,ir===0&&ut(xv)),As!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="option"?(Bs=t.substr(s,6),s+=6):(Bs=r,ir===0&&ut(Fc)),Bs===r?(s=Qn,Qn=r):(er=Qn,Qn={type:"origin",value:"with admin option"})):(s=Qn,Qn=r)):(s=Qn,Qn=r),Qn})())===r&&(qt=null),qt===r?(s=T,T=r):(er=T,D=(function(Qn,As,Bs,Zs,ae){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{...Qn,keyword:"role",objects:As.map(be=>({priv:{type:"string",value:be}})),to_from:Bs[0],user_or_roles:Zs,with:ae}}})(D,V,Ur,Br,qt),T=D)):(s=T,T=r))):(s=T,T=r)),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn;t.substr(s,2).toLowerCase()==="if"?(D=t.substr(s,2),s+=2):(D=r,ir===0&&ut(Dn)),D!==r&&kr()!==r&&(V=Uu())!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="then"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut($f)),Ur!==r&&kr()!==r&&(zr=nr())!==r&&kr()!==r?((Br=dd())===r&&(Br=null),Br!==r&&kr()!==r?((wt=(function(){var re,_e,Ze,Fe,vo,Io;if(re=s,(_e=bo())!==r){for(Ze=[],Fe=s,(vo=kr())!==r&&(Io=bo())!==r?Fe=vo=[vo,Io]:(s=Fe,Fe=r);Fe!==r;)Ze.push(Fe),Fe=s,(vo=kr())!==r&&(Io=bo())!==r?Fe=vo=[vo,Io]:(s=Fe,Fe=r);Ze===r?(s=re,re=r):(er=re,_e=Vc(_e,Ze,1),re=_e)}else s=re,re=r;return re})())===r&&(wt=null),wt!==r&&kr()!==r?(qt=s,(un=wr())!==r&&(Sn=kr())!==r&&(Fn=nr())!==r?qt=un=[un,Sn,Fn]:(s=qt,qt=r),qt===r&&(qt=null),qt!==r&&(un=kr())!==r?((Sn=dd())===r&&(Sn=null),Sn!==r&&(Fn=kr())!==r?(t.substr(s,3).toLowerCase()==="end"?(es=t.substr(s,3),s+=3):(es=r,ir===0&&ut(Tb)),es!==r&&kr()!==r?(t.substr(s,2).toLowerCase()==="if"?(Qn=t.substr(s,2),s+=2):(Qn=r,ir===0&&ut(Dn)),Qn===r?(s=T,T=r):(er=T,As=V,Bs=zr,Zs=Br,ae=wt,be=qt,he=Sn,D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"if",keyword:"if",boolean_expr:As,semicolons:[Zs||"",he||""],prefix:{type:"origin",value:"then"},if_expr:Bs,elseif_expr:ae,else_expr:be&&be[2],suffix:{type:"origin",value:"end if"}}},T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var As,Bs,Zs,ae,be,he;return T})())===r&&(v=(function(){var T=s,D,V,Ur,zr;t.substr(s,5).toLowerCase()==="raise"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(zv)),D!==r&&kr()!==r?((V=(function(){var un;return t.substr(s,5).toLowerCase()==="debug"?(un=t.substr(s,5),s+=5):(un=r,ir===0&&ut(cp)),un===r&&(t.substr(s,3).toLowerCase()==="log"?(un=t.substr(s,3),s+=3):(un=r,ir===0&&ut(c0)),un===r&&(t.substr(s,4).toLowerCase()==="info"?(un=t.substr(s,4),s+=4):(un=r,ir===0&&ut(q0)),un===r&&(t.substr(s,6).toLowerCase()==="notice"?(un=t.substr(s,6),s+=6):(un=r,ir===0&&ut(df)),un===r&&(t.substr(s,7).toLowerCase()==="warning"?(un=t.substr(s,7),s+=7):(un=r,ir===0&&ut(f0)),un===r&&(t.substr(s,9).toLowerCase()==="exception"?(un=t.substr(s,9),s+=9):(un=r,ir===0&&ut(b0))))))),un})())===r&&(V=null),V!==r&&kr()!==r?((Ur=(function(){var un,Sn,Fn,es,Qn,As,Bs,Zs;if(un=s,(Sn=Pt())!==r){for(Fn=[],es=s,(Qn=kr())!==r&&(As=du())!==r&&(Bs=kr())!==r&&(Zs=Nd())!==r?es=Qn=[Qn,As,Bs,Zs]:(s=es,es=r);es!==r;)Fn.push(es),es=s,(Qn=kr())!==r&&(As=du())!==r&&(Bs=kr())!==r&&(Zs=Nd())!==r?es=Qn=[Qn,As,Bs,Zs]:(s=es,es=r);Fn===r?(s=un,un=r):(er=un,Sn={type:"format",keyword:Sn,expr:(ae=Fn)&&ae.map(be=>be[3])},un=Sn)}else s=un,un=r;var ae;return un===r&&(un=s,t.substr(s,8).toLowerCase()==="sqlstate"?(Sn=t.substr(s,8),s+=8):(Sn=r,ir===0&&ut(Gf)),Sn!==r&&(Fn=kr())!==r&&(es=Pt())!==r?(er=un,un=Sn={type:"sqlstate",keyword:{type:"origin",value:"SQLSTATE"},expr:[es]}):(s=un,un=r),un===r&&(un=s,(Sn=it())!==r&&(er=un,Sn={type:"condition",expr:[{type:"default",value:Sn}]}),un=Sn)),un})())===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=(function(){var un,Sn,Fn,es,Qn,As,Bs,Zs,ae,be;if(un=s,(Sn=ls())!==r)if(kr()!==r)if(t.substr(s,7).toLowerCase()==="message"?(Fn=t.substr(s,7),s+=7):(Fn=r,ir===0&&ut(Pf)),Fn===r&&(t.substr(s,6).toLowerCase()==="detail"?(Fn=t.substr(s,6),s+=6):(Fn=r,ir===0&&ut(Sp)),Fn===r&&(t.substr(s,4).toLowerCase()==="hint"?(Fn=t.substr(s,4),s+=4):(Fn=r,ir===0&&ut(kv)),Fn===r&&(t.substr(s,7).toLowerCase()==="errcode"?(Fn=t.substr(s,7),s+=7):(Fn=r,ir===0&&ut(Op)),Fn===r&&(t.substr(s,6).toLowerCase()==="column"?(Fn=t.substr(s,6),s+=6):(Fn=r,ir===0&&ut(fp)),Fn===r&&(t.substr(s,10).toLowerCase()==="constraint"?(Fn=t.substr(s,10),s+=10):(Fn=r,ir===0&&ut(oc)),Fn===r&&(t.substr(s,8).toLowerCase()==="datatype"?(Fn=t.substr(s,8),s+=8):(Fn=r,ir===0&&ut(uc)),Fn===r&&(t.substr(s,5).toLowerCase()==="table"?(Fn=t.substr(s,5),s+=5):(Fn=r,ir===0&&ut(qb)),Fn===r&&(t.substr(s,6).toLowerCase()==="schema"?(Fn=t.substr(s,6),s+=6):(Fn=r,ir===0&&ut(Hs)))))))))),Fn!==r)if(kr()!==r)if(ze()!==r)if(kr()!==r)if((es=Uu())!==r){for(Qn=[],As=s,(Bs=kr())!==r&&(Zs=du())!==r&&(ae=kr())!==r&&(be=Uu())!==r?As=Bs=[Bs,Zs,ae,be]:(s=As,As=r);As!==r;)Qn.push(As),As=s,(Bs=kr())!==r&&(Zs=du())!==r&&(ae=kr())!==r&&(be=Uu())!==r?As=Bs=[Bs,Zs,ae,be]:(s=As,As=r);Qn===r?(s=un,un=r):(er=un,Sn=(function(he,re,_e){let Ze=[re];return _e&&_e.forEach(Fe=>Ze.push(Fe[3])),{type:"using",option:he,symbol:"=",expr:Ze}})(Fn,es,Qn),un=Sn)}else s=un,un=r;else s=un,un=r;else s=un,un=r;else s=un,un=r;else s=un,un=r;else s=un,un=r;else s=un,un=r;return un})())===r&&(zr=null),zr===r?(s=T,T=r):(er=T,Br=V,wt=Ur,qt=zr,D={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"raise",level:Br,using:qt,raise:wt}},T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var Br,wt,qt;return T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un;return t.substr(s,7).toLowerCase()==="execute"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(pa)),D!==r&&kr()!==r&&(V=it())!==r&&kr()!==r?(Ur=s,(zr=Ho())!==r&&(Br=kr())!==r&&(wt=Wd())!==r&&(qt=kr())!==r&&(un=Lu())!==r?Ur=zr=[zr,Br,wt,qt,un]:(s=Ur,Ur=r),Ur===r&&(Ur=null),Ur===r?(s=T,T=r):(er=T,D=(function(Sn,Fn){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"execute",name:Sn,args:Fn&&{type:"expr_list",value:Fn[2]}}}})(V,Ur),T=D)):(s=T,T=r),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt;(D=(function(){var Fn=s,es,Qn;return t.substr(s,3).toLowerCase()==="for"?(es=t.substr(s,3),s+=3):(es=r,ir===0&&ut($c)),es!==r&&(er=Fn,es={label:null,keyword:"for"}),(Fn=es)===r&&(Fn=s,(es=it())!==r&&kr()!==r?(t.substr(s,3).toLowerCase()==="for"?(Qn=t.substr(s,3),s+=3):(Qn=r,ir===0&&ut($c)),Qn===r?(s=Fn,Fn=r):(er=Fn,Fn=es={label:es,keyword:"for"})):(s=Fn,Fn=r)),Fn})())!==r&&kr()!==r&&(V=it())!==r&&kr()!==r&&Ct()!==r&&kr()!==r&&(Ur=hu())!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="loop"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(Mv)),zr!==r&&kr()!==r&&(Br=yr())!==r&&kr()!==r&&i()!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="loop"?(wt=t.substr(s,4),s+=4):(wt=r,ir===0&&ut(Mv)),wt!==r&&kr()!==r?((qt=it())===r&&(qt=null),qt===r?(s=T,T=r):(er=s,Sn=qt,(!(!(un=D).label||!Sn||un.label!==Sn)||!un.label&&!Sn?void 0:r)===r?(s=T,T=r):(er=T,D=(function(Fn,es,Qn,As,Bs){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"for",label:Bs,target:es,query:Qn,stmts:As.ast}}})(0,V,Ur,Br,qt),T=D))):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var un,Sn;return T})())===r&&(v=(function(){var T=s,D,V,Ur;return t.substr(s,6).toLowerCase()==="commit"?(D=t.substr(s,6),s+=6):(D=r,ir===0&&ut(cv)),D===r&&(t.substr(s,8).toLowerCase()==="rollback"?(D=t.substr(s,8),s+=8):(D=r,ir===0&&ut(Up))),D!==r&&(er=T,D={type:"transaction",expr:{action:{type:"origin",value:D}}}),(T=D)===r&&(T=s,t.substr(s,5).toLowerCase()==="begin"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(Xp)),D!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="work"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut(Qv)),V===r&&(t.substr(s,11).toLowerCase()==="transaction"?(V=t.substr(s,11),s+=11):(V=r,ir===0&&ut(Vp))),V===r&&(V=null),V!==r&&kr()!==r?((Ur=Ru())===r&&(Ur=null),Ur===r?(s=T,T=r):(er=T,D=(function(zr,Br){return{type:"transaction",expr:{action:{type:"origin",value:"begin"},keyword:zr,modes:Br}}})(V,Ur),T=D)):(s=T,T=r)):(s=T,T=r),T===r&&(T=s,t.substr(s,5).toLowerCase()==="start"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(dp)),D!==r&&kr()!==r?(t.substr(s,11).toLowerCase()==="transaction"?(V=t.substr(s,11),s+=11):(V=r,ir===0&&ut(Kp)),V!==r&&kr()!==r?((Ur=Ru())===r&&(Ur=null),Ur===r?(s=T,T=r):(er=T,D=(function(zr,Br){return{type:"transaction",expr:{action:{type:"origin",value:"start"},keyword:zr,modes:Br}}})(V,Ur),T=D)):(s=T,T=r)):(s=T,T=r))),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr;return t.substr(s,7).toLowerCase()==="comment"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(gb)),D!==r&&kr()!==r?(t.substr(s,2).toLowerCase()==="on"?(V=t.substr(s,2),s+=2):(V=r,ir===0&&ut(gl)),V!==r&&kr()!==r&&(Ur=(function(){var Br=s,wt,qt;return(wt=Dr())===r&&(wt=Vs())===r&&(wt=nn()),wt!==r&&kr()!==r&&(qt=hi())!==r?(er=Br,wt=(function(un,Sn){return{type:un.toLowerCase(),name:Sn}})(wt,qt),Br=wt):(s=Br,Br=r),Br===r&&(Br=s,(wt=Lo())!==r&&kr()!==r&&(qt=R())!==r?(er=Br,wt=(function(un,Sn){return{type:un.toLowerCase(),name:Sn}})(wt,qt),Br=wt):(s=Br,Br=r),Br===r&&(Br=s,(wt=wo())===r&&(wt=(function(){var un=s,Sn,Fn,es;return t.substr(s,9).toLowerCase()==="collation"?(Sn=t.substr(s,9),s+=9):(Sn=r,ir===0&&ut(Ul)),Sn===r?(s=un,un=r):(Fn=s,ir++,es=Gs(),ir--,es===r?Fn=void 0:(s=Fn,Fn=r),Fn===r?(s=un,un=r):(er=un,un=Sn="COLLATION")),un})())===r&&(wt=nn())===r&&(wt=Jr())===r&&(t.substr(s,6).toLowerCase()==="domain"?(wt=t.substr(s,6),s+=6):(wt=r,ir===0&&ut(uo)),wt===r&&(wt=Xr())===r&&(t.substr(s,4).toLowerCase()==="role"?(wt=t.substr(s,4),s+=4):(wt=r,ir===0&&ut(ld)),wt===r&&(t.substr(s,8).toLowerCase()==="sequence"?(wt=t.substr(s,8),s+=8):(wt=r,ir===0&&ut(Sa)),wt===r&&(t.substr(s,6).toLowerCase()==="server"?(wt=t.substr(s,6),s+=6):(wt=r,ir===0&&ut(Lp)),wt===r&&(t.substr(s,12).toLowerCase()==="subscription"?(wt=t.substr(s,12),s+=12):(wt=r,ir===0&&ut(Cp)),wt===r&&(t.substr(s,9).toLowerCase()==="extension"?(wt=t.substr(s,9),s+=9):(wt=r,ir===0&&ut(ou)))))))),wt!==r&&kr()!==r&&(qt=vt())!==r?(er=Br,wt=(function(un,Sn){return{type:un.toLowerCase(),name:Sn}})(wt,qt),Br=wt):(s=Br,Br=r))),Br})())!==r&&kr()!==r&&(zr=(function(){var Br=s,wt,qt;return t.substr(s,2).toLowerCase()==="is"?(wt=t.substr(s,2),s+=2):(wt=r,ir===0&&ut(wp)),wt!==r&&kr()!==r?((qt=Pt())===r&&(qt=Gr()),qt===r?(s=Br,Br=r):(er=Br,Br=wt={keyword:"is",expr:qt})):(s=Br,Br=r),Br})())!==r?(er=T,T=D={type:"comment",keyword:"on",target:Ur,expr:zr}):(s=T,T=r)):(s=T,T=r),T})()),v}function nr(){var v;return(v=qr())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt;return(D=kr())===r?(s=T,T=r):((V=Go())===r&&(V=null),V!==r&&kr()!==r&&Fo()!==r&&kr()!==r&&(Ur=vc())!==r&&kr()!==r&&q()!==r&&kr()!==r&&(zr=ga())!==r&&kr()!==r?((Br=vu())===r&&(Br=null),Br!==r&&kr()!==r?((wt=fl())===r&&(wt=null),wt!==r&&kr()!==r?((qt=Nc())===r&&(qt=null),qt===r?(s=T,T=r):(er=T,D=(function(un,Sn,Fn,es,Qn,As){let Bs={},Zs=ae=>{let{server:be,db:he,schema:re,as:_e,table:Ze,join:Fe}=ae,vo=Fe?"select":"update",Io=[be,he,re].filter(Boolean).join(".")||null;he&&(Bs[Ze]=Io),Ze&&Za.add(`${vo}::${Io}::${Ze}`)};return Sn&&Sn.forEach(Zs),es&&es.forEach(Zs),Fn&&Fn.forEach(ae=>{if(ae.table){let be=lL(ae.table);Za.add(`update::${Bs[be]||null}::${be}`)}Ja.add(`update::${ae.table}::${ae.column.expr.value}`)}),{tableList:Array.from(Za),columnList:Cc(Ja),ast:{with:un,type:"update",table:Sn,set:Fn,from:es,where:Qn,returning:As}}})(V,Ur,zr,Br,wt,qt),T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un;return(D=Yf())!==r&&kr()!==r?((V=L())===r&&(V=null),V!==r&&kr()!==r&&(Ur=hi())!==r&&kr()!==r?((zr=tc())===r&&(zr=null),zr!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Br=cr())!==r&&kr()!==r&&Lu()!==r&&kr()!==r&&(wt=Ai())!==r&&kr()!==r?((qt=(function(){var Sn=s,Fn,es,Qn;return On()!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="conflict"?(Fn=t.substr(s,8),s+=8):(Fn=r,ir===0&&ut(Zp)),Fn!==r&&kr()!==r?((es=(function(){var As=s,Bs,Zs;return(Bs=Ho())!==r&&kr()!==r&&(Zs=Av())!==r&&kr()!==r&&Lu()!==r?(er=As,Bs=(function(ae){return{type:"column",expr:ae,parentheses:!0}})(Zs),As=Bs):(s=As,As=r),As})())===r&&(es=null),es!==r&&kr()!==r&&(Qn=(function(){var As=s,Bs,Zs,ae,be;return t.substr(s,2).toLowerCase()==="do"?(Bs=t.substr(s,2),s+=2):(Bs=r,ir===0&&ut(mp)),Bs!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="nothing"?(Zs=t.substr(s,7),s+=7):(Zs=r,ir===0&&ut(zp)),Zs===r?(s=As,As=r):(er=As,As=Bs={keyword:"do",expr:{type:"origin",value:"nothing"}})):(s=As,As=r),As===r&&(As=s,t.substr(s,2).toLowerCase()==="do"?(Bs=t.substr(s,2),s+=2):(Bs=r,ir===0&&ut(mp)),Bs!==r&&kr()!==r&&(Zs=Fo())!==r&&kr()!==r&&q()!==r&&kr()!==r&&(ae=ga())!==r&&kr()!==r?((be=fl())===r&&(be=null),be===r?(s=As,As=r):(er=As,As=Bs={keyword:"do",expr:{type:"update",set:ae,where:be}})):(s=As,As=r)),As})())!==r?(er=Sn,Sn={type:"conflict",keyword:"on",target:es,action:Qn}):(s=Sn,Sn=r)):(s=Sn,Sn=r)):(s=Sn,Sn=r),Sn})())===r&&(qt=null),qt!==r&&kr()!==r?((un=Nc())===r&&(un=null),un===r?(s=T,T=r):(er=T,D=(function(Sn,Fn,es,Qn,As,Bs,Zs){if(Fn&&(Za.add(`insert::${[Fn.db,Fn.schema].filter(Boolean).join(".")||null}::${Fn.table}`),Fn.as=null),Qn){let ae=Fn&&Fn.table||null;Array.isArray(As.values)&&As.values.forEach((be,he)=>{if(be.value.length!=Qn.length)throw Error("Error: column count doesn't match value count at row "+(he+1))}),Qn.forEach(be=>Ja.add(`insert::${ae}::${be.value}`))}return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:Sn,table:[Fn],columns:Qn,values:As,partition:es,conflict:Bs,returning:Zs}}})(D,Ur,zr,Br,wt,qt,un),T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt;return(D=Yf())!==r&&kr()!==r?((V=Hr())===r&&(V=null),V!==r&&kr()!==r?((Ur=L())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=hi())!==r&&kr()!==r?((Br=tc())===r&&(Br=null),Br!==r&&kr()!==r&&(wt=Ai())!==r&&kr()!==r?((qt=Nc())===r&&(qt=null),qt===r?(s=T,T=r):(er=T,D=(function(un,Sn,Fn,es,Qn,As,Bs){es&&(Za.add(`insert::${[es.db,es.schema].filter(Boolean).join(".")||null}::${es.table}`),Ja.add(`insert::${es.table}::(.*)`),es.as=null);let Zs=[Sn,Fn].filter(ae=>ae).map(ae=>ae[0]&&ae[0].toLowerCase()).join(" ");return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:un,table:[es],columns:null,values:As,partition:Qn,prefix:Zs,returning:Bs}}})(D,V,Ur,zr,Br,wt,qt),T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br;return(D=Lc())!==r&&kr()!==r?((V=vc())===r&&(V=null),V!==r&&kr()!==r&&(Ur=vu())!==r&&kr()!==r?((zr=fl())===r&&(zr=null),zr!==r&&kr()!==r?((Br=Nc())===r&&(Br=null),Br===r?(s=T,T=r):(er=T,D=(function(wt,qt,un,Sn){if(qt&&qt.forEach(Fn=>{let{db:es,as:Qn,schema:As,table:Bs,join:Zs}=Fn,ae=Zs?"select":"delete",be=[es,As].filter(Boolean).join(".")||null;Bs&&Za.add(`${ae}::${be}::${Bs}`),Zs||Ja.add(`delete::${Bs}::(.*)`)}),wt===null&&qt.length===1){let Fn=qt[0];wt=[{db:Fn.db,schema:Fn.schema,table:Fn.table,as:Fn.as,addition:!0}]}return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"delete",table:wt,from:qt,where:un,returning:Sn}}})(V,Ur,zr,Br),T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r),T})())===r&&(v=A())===r&&(v=(function(){for(var T=[],D=sL();D!==r;)T.push(D),D=sL();return T})()),v}function yr(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=nr())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=dd())!==r&&(Br=kr())!==r&&(wt=nr())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=dd())!==r&&(Br=kr())!==r&&(wt=nr())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=(function(qt,un){let Sn=qt&&qt.ast||qt,Fn=un&&un.length&&un[0].length>=4?[Sn]:Sn;for(let es=0;es<un.length;es++)un[es][3]&&un[es][3].length!==0&&Fn.push(un[es][3]&&un[es][3].ast||un[es][3]);return{tableList:Array.from(Za),columnList:Cc(Ja),ast:Fn}})(T,D))}else s=v,v=r;return v}function Ar(){var v,T,D,V;return v=s,(T=(function(){var Ur=s,zr,Br,wt;return t.substr(s,5).toLowerCase()==="union"?(zr=t.substr(s,5),s+=5):(zr=r,ir===0&&ut(fa)),zr===r?(s=Ur,Ur=r):(Br=s,ir++,wt=Gs(),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=Ur,Ur=r):Ur=zr=[zr,Br]),Ur})())!==r&&kr()!==r?((D=xr())===r&&(D=Sr()),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(V=D)?"union "+V.toLowerCase():"union")):(s=v,v=r),v===r&&(v=s,(T=(function(){var Ur=s,zr,Br,wt;return t.substr(s,9).toLowerCase()==="intersect"?(zr=t.substr(s,9),s+=9):(zr=r,ir===0&&ut(Zi)),zr===r?(s=Ur,Ur=r):(Br=s,ir++,wt=Gs(),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=Ur,Ur=r):Ur=zr=[zr,Br]),Ur})())!==r&&(er=v,T="intersect"),(v=T)===r&&(v=s,(T=(function(){var Ur=s,zr,Br,wt;return t.substr(s,6).toLowerCase()==="except"?(zr=t.substr(s,6),s+=6):(zr=r,ir===0&&ut(rf)),zr===r?(s=Ur,Ur=r):(Br=s,ir++,wt=Gs(),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=Ur,Ur=r):Ur=zr=[zr,Br]),Ur})())!==r&&(er=v,T="except"),v=T)),v}function qr(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=hu())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=Ar())!==r&&(Br=kr())!==r&&(wt=hu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=Ar())!==r&&(Br=kr())!==r&&(wt=hu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D!==r&&(V=kr())!==r?((Ur=Ei())===r&&(Ur=null),Ur!==r&&(zr=kr())!==r?((Br=Rf())===r&&(Br=null),Br===r?(s=v,v=r):(er=v,v=T=(function(qt,un,Sn,Fn){let es=qt;for(let Qn=0;Qn<un.length;Qn++)es._next=un[Qn][3],es.set_op=un[Qn][1],es=es._next;return Sn&&(qt._orderby=Sn),Fn&&Fn.value&&Fn.value.length>0&&(qt._limit=Fn),{tableList:Array.from(Za),columnList:Cc(Ja),ast:qt}})(T,D,Ur,Br))):(s=v,v=r)):(s=v,v=r)}else s=v,v=r;return v}function bt(){var v,T;return v=s,t.substr(s,2).toLowerCase()==="if"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(Dn)),T!==r&&kr()!==r&&jn()!==r&&kr()!==r&&Tn()!==r?(er=v,v=T="IF NOT EXISTS"):(s=v,v=r),v}function pr(){var v,T,D;return v=s,t.substr(s,2).toLowerCase()==="if"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(Pn)),T!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="exists"?(D=t.substr(s,6),s+=6):(D=r,ir===0&&ut(Ae)),D===r?(s=v,v=r):(er=v,v=T="IF EXISTS")):(s=v,v=r),v}function xt(){var v,T,D;return v=s,t.substr(s,12).toLowerCase()==="check_option"?(T=t.substr(s,12),s+=12):(T=r,ir===0&&ut(mi)),T!==r&&kr()!==r&&ze()!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="cascaded"?(D=t.substr(s,8),s+=8):(D=r,ir===0&&ut(Ps)),D===r&&(t.substr(s,5).toLowerCase()==="local"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(pe))),D===r?(s=v,v=r):(er=v,v=T={type:"check_option",value:D,symbol:"="})):(s=v,v=r),v===r&&(v=s,t.substr(s,16).toLowerCase()==="security_barrier"?(T=t.substr(s,16),s+=16):(T=r,ir===0&&ut(Fi)),T===r&&(t.substr(s,16).toLowerCase()==="security_invoker"?(T=t.substr(s,16),s+=16):(T=r,ir===0&&ut(T0))),T!==r&&kr()!==r&&ze()!==r&&kr()!==r&&(D=Qr())!==r?(er=v,v=T=(function(V,Ur){return{type:V.toLowerCase(),value:Ur.value?"true":"false",symbol:"="}})(T,D)):(s=v,v=r)),v}function cn(){var v,T,D,V;return v=s,(T=it())!==r&&kr()!==r&&ze()!==r&&kr()!==r?((D=it())===r&&(D=Uu()),D===r?(s=v,v=r):(er=v,v=T={type:T,symbol:"=",value:typeof(V=D)=="string"?{type:"default",value:V}:V})):(s=v,v=r),v}function mn(){var v,T,D;return v=s,(T=R())!==r&&kr()!==r&&(D=Ed())!==r?(er=v,v=T=(function(V,Ur){return{column:V,definition:Ur}})(T,D)):(s=v,v=r),v}function $n(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=mn())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=mn())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=mn())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function bs(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn;return v=s,(T=$e())===r?(s=v,v=r):(er=s,(T.toLowerCase()==="begin"?r:void 0)!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="constant"?(D=t.substr(s,8),s+=8):(D=r,ir===0&&ut(I0)),D===r&&(D=null),D!==r&&kr()!==r&&(V=Ed())!==r&&kr()!==r?((Ur=Mu())===r&&(Ur=null),Ur!==r&&kr()!==r?(zr=s,(Br=jn())!==r&&(wt=kr())!==r&&(qt=lu())!==r?zr=Br=[Br,wt,qt]:(s=zr,zr=r),zr===r&&(zr=null),zr!==r&&(Br=kr())!==r?(wt=s,(qt=ru())===r&&(t.substr(s,2)===":="?(qt=":=",s+=2):(qt=r,ir===0&&ut(ji))),qt===r&&(qt=null),qt!==r&&(un=kr())!==r?(Sn=s,ir++,t.substr(s,5).toLowerCase()==="begin"?(Fn=t.substr(s,5),s+=5):(Fn=r,ir===0&&ut(af)),ir--,Fn===r?Sn=r:(s=Sn,Sn=void 0),Sn===r&&(Sn=z())===r&&(Sn=Uu()),Sn===r?(s=wt,wt=r):wt=qt=[qt,un,Sn]):(s=wt,wt=r),wt===r&&(wt=null),wt!==r&&(qt=kr())!==r?((un=dd())===r&&(un=null),un===r?(s=v,v=r):(er=v,v=T=(function(es,Qn,As,Bs,Zs,ae,be){return{keyword:"variable",name:es,constant:Qn,datatype:As,collate:Bs,not_null:Zs&&"not null",definition:ae&&ae[0]&&{type:"default",keyword:ae[0],value:ae[2]}}})(T,D,V,Ur,zr,wt))):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)),v}function ks(){var v,T,D,V,Ur,zr;if(v=s,(T=bs())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=bs())!==r?V=Ur=[Ur,zr]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=bs())!==r?V=Ur=[Ur,zr]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D,1))}else s=v,v=r;return v}function Ws(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="declare"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(qf)),T!==r&&kr()!==r&&(D=ks())!==r?(er=v,V=D,v=T={tableList:Array.from(Za),columnList:Cc(Ja),ast:{type:"declare",declare:V,symbol:";"}}):(s=v,v=r),v}function fe(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs,Zs;if(v=s,t.substr(s,8)==="LANGUAGE"?(T="LANGUAGE",s+=8):(T=r,ir===0&&ut(Uc)),T!==r&&(D=kr())!==r&&(V=$e())!==r&&(Ur=kr())!==r?(er=v,v=T={prefix:"LANGUAGE",type:"default",value:V}):(s=v,v=r),v===r&&(v=s,t.substr(s,8).toLowerCase()==="transorm"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(wc)),T!==r&&(D=kr())!==r?(V=s,t.substr(s,3)==="FOR"?(Ur="FOR",s+=3):(Ur=r,ir===0&&ut(Ll)),Ur!==r&&(zr=kr())!==r?(t.substr(s,4)==="TYPE"?(Br="TYPE",s+=4):(Br=r,ir===0&&ut(jl)),Br!==r&&(wt=kr())!==r&&(qt=$e())!==r?V=Ur=[Ur,zr,Br,wt,qt]:(s=V,V=r)):(s=V,V=r),V===r&&(V=null),V!==r&&(Ur=kr())!==r?(er=v,v=T=(Zs=V)?{prefix:["TRANSORM",Zs[0].toUpperCase(),Zs[2].toUpperCase()].join(" "),type:"default",value:Zs[4]}:{type:"origin",value:"TRANSORM"}):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,6).toLowerCase()==="window"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Oi)),T===r&&(t.substr(s,9).toLowerCase()==="immutable"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(bb)),T===r&&(t.substr(s,6).toLowerCase()==="stable"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Vi)),T===r&&(t.substr(s,8).toLowerCase()==="volatile"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(zc)),T===r&&(t.substr(s,6).toLowerCase()==="strict"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(kc)))))),T!==r&&(D=kr())!==r?(er=v,v=T={type:"origin",value:T}):(s=v,v=r),v===r&&(v=s,t.substr(s,3).toLowerCase()==="not"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(vb)),T===r&&(T=null),T!==r&&(D=kr())!==r?(t.substr(s,9).toLowerCase()==="leakproof"?(V=t.substr(s,9),s+=9):(V=r,ir===0&&ut(Zc)),V!==r&&(Ur=kr())!==r?(er=v,v=T={type:"origin",value:[T,"LEAKPROOF"].filter(ae=>ae).join(" ")}):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,6).toLowerCase()==="called"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(nl)),T===r&&(T=s,t.substr(s,7).toLowerCase()==="returns"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(nc)),D!==r&&(V=kr())!==r?(t.substr(s,4).toLowerCase()==="null"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(Xf)),Ur===r?(s=T,T=r):T=D=[D,V,Ur]):(s=T,T=r)),T===r&&(T=null),T!==r&&(D=kr())!==r?(t.substr(s,2).toLowerCase()==="on"?(V=t.substr(s,2),s+=2):(V=r,ir===0&&ut(gl)),V!==r&&(Ur=kr())!==r?(t.substr(s,4).toLowerCase()==="null"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(Xf)),zr!==r&&(Br=kr())!==r?(t.substr(s,5).toLowerCase()==="input"?(wt=t.substr(s,5),s+=5):(wt=r,ir===0&&ut(lf)),wt!==r&&(qt=kr())!==r?(er=v,v=T=(function(ae){return Array.isArray(ae)&&(ae=[ae[0],ae[2]].join(" ")),{type:"origin",value:ae+" ON NULL INPUT"}})(T)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,8).toLowerCase()==="external"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Jc)),T===r&&(T=null),T!==r&&(D=kr())!==r?(t.substr(s,8).toLowerCase()==="security"?(V=t.substr(s,8),s+=8):(V=r,ir===0&&ut(Qc)),V!==r&&(Ur=kr())!==r?(t.substr(s,7).toLowerCase()==="invoker"?(zr=t.substr(s,7),s+=7):(zr=r,ir===0&&ut(gv)),zr===r&&(t.substr(s,7).toLowerCase()==="definer"?(zr=t.substr(s,7),s+=7):(zr=r,ir===0&&ut(g0))),zr!==r&&(Br=kr())!==r?(er=v,v=T=(function(ae,be){return{type:"origin",value:[ae,"SECURITY",be].filter(he=>he).join(" ")}})(T,zr)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,8).toLowerCase()==="parallel"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Ki)),T!==r&&(D=kr())!==r?(t.substr(s,6).toLowerCase()==="unsafe"?(V=t.substr(s,6),s+=6):(V=r,ir===0&&ut(Pb)),V===r&&(t.substr(s,10).toLowerCase()==="restricted"?(V=t.substr(s,10),s+=10):(V=r,ir===0&&ut(ei)),V===r&&(t.substr(s,4).toLowerCase()==="safe"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut(pb)))),V!==r&&(Ur=kr())!==r?(er=v,v=T=(function(ae){return{type:"origin",value:["PARALLEL",ae].join(" ")}})(V)):(s=v,v=r)):(s=v,v=r),v===r))))))){if(v=s,(T=rr())!==r)if((D=kr())!==r){if(V=[],j0.test(t.charAt(s))?(Ur=t.charAt(s),s++):(Ur=r,ir===0&&ut(B0)),Ur!==r)for(;Ur!==r;)V.push(Ur),j0.test(t.charAt(s))?(Ur=t.charAt(s),s++):(Ur=r,ir===0&&ut(B0));else V=r;if(V!==r)if((Ur=kr())!==r)if((zr=Ws())===r&&(zr=null),zr!==r)if((Br=kr())!==r)if(t.substr(s,5).toLowerCase()==="begin"?(wt=t.substr(s,5),s+=5):(wt=r,ir===0&&ut(af)),wt===r&&(wt=null),wt!==r)if((qt=kr())!==r)if((un=yr())!==r)if(kr()!==r)if((Sn=i())===r&&(Sn=null),Sn!==r)if(er=s,Bs=Sn,((As=wt)&&Bs||!As&&!Bs?void 0:r)!==r)if(kr()!==r)if((Fn=dd())===r&&(Fn=null),Fn!==r)if(kr()!==r){if(es=[],Mc.test(t.charAt(s))?(Qn=t.charAt(s),s++):(Qn=r,ir===0&&ut(Cl)),Qn!==r)for(;Qn!==r;)es.push(Qn),Mc.test(t.charAt(s))?(Qn=t.charAt(s),s++):(Qn=r,ir===0&&ut(Cl));else es=r;es!==r&&(Qn=kr())!==r?(er=v,v=T=(function(ae,be,he,re,_e,Ze){let Fe=ae.join(""),vo=Ze.join("");if(Fe!==vo)throw Error(`start symbol '${Fe}'is not same with end symbol '${vo}'`);return{type:"as",declare:be&&be.ast,begin:he,expr:Array.isArray(re.ast)?re.ast.flat():[re.ast],end:_e&&_e[0],symbol:Fe}})(V,zr,wt,un,Sn,es)):(s=v,v=r)}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r}else s=v,v=r;else s=v,v=r;v===r&&(v=s,t.substr(s,4).toLowerCase()==="cost"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut($u)),T===r&&(t.substr(s,4).toLowerCase()==="rows"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(r0))),T!==r&&(D=kr())!==r&&(V=as())!==r&&(Ur=kr())!==r?(er=v,v=T=(function(ae,be){return be.prefix=ae,be})(T,V)):(s=v,v=r),v===r&&(v=s,t.substr(s,7).toLowerCase()==="support"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(zn)),T!==r&&(D=kr())!==r&&(V=xd())!==r&&(Ur=kr())!==r?(er=v,v=T=(function(ae){return{prefix:"support",type:"default",value:[ae.schema&&ae.schema.value,ae.name.value].filter(be=>be).join(".")}})(V)):(s=v,v=r),v===r&&(v=s,(T=q())!==r&&(D=kr())!==r&&(V=$e())!==r&&(Ur=kr())!==r?(zr=s,t.substr(s,2).toLowerCase()==="to"?(Br=t.substr(s,2),s+=2):(Br=r,ir===0&&ut(Ss)),Br===r&&(t.charCodeAt(s)===61?(Br="=",s++):(Br=r,ir===0&&ut(te))),Br!==r&&(wt=kr())!==r&&(qt=Et())!==r?zr=Br=[Br,wt,qt]:(s=zr,zr=r),zr===r&&(zr=s,(Br=M())!==r&&(wt=kr())!==r?(t.substr(s,7).toLowerCase()==="current"?(qt=t.substr(s,7),s+=7):(qt=r,ir===0&&ut(ce)),qt===r?(s=zr,zr=r):zr=Br=[Br,wt,qt]):(s=zr,zr=r)),zr===r&&(zr=null),zr!==r&&(Br=kr())!==r?(er=v,v=T=(function(ae,be){let he;if(be){let re=Array.isArray(be[2])?be[2]:[be[2]];he={prefix:be[0],expr:re.map(_e=>({type:"default",value:_e}))}}return{type:"set",parameter:ae,value:he}})(V,zr)):(s=v,v=r)):(s=v,v=r),v===r&&(v=eL()))))}return v}function ne(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn;if(v=s,Gu()!==r)if(kr()!==r)if(T=s,(D=d())!==r&&(V=kr())!==r&&(Ur=F0())!==r?T=D=[D,V,Ur]:(s=T,T=r),T===r&&(T=null),T!==r)if((D=kr())!==r)if(t.substr(s,8).toLowerCase()==="function"?(V=t.substr(s,8),s+=8):(V=r,ir===0&&ut(He)),V!==r)if((Ur=kr())!==r)if((zr=xd())!==r)if(kr()!==r)if(Ho()!==r)if(kr()!==r)if((Br=Rr())===r&&(Br=null),Br!==r)if(kr()!==r)if(Lu()!==r)if(kr()!==r)if((wt=(function(){var Fn,es,Qn,As,Bs;return Fn=s,t.substr(s,7).toLowerCase()==="returns"?(es=t.substr(s,7),s+=7):(es=r,ir===0&&ut(nc)),es!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="setof"?(Qn=t.substr(s,5),s+=5):(Qn=r,ir===0&&ut(xc)),Qn===r&&(Qn=null),Qn!==r&&kr()!==r?((As=Ed())===r&&(As=hi()),As===r?(s=Fn,Fn=r):(er=Fn,Fn=es={type:"returns",keyword:Qn,expr:As})):(s=Fn,Fn=r)):(s=Fn,Fn=r),Fn===r&&(Fn=s,t.substr(s,7).toLowerCase()==="returns"?(es=t.substr(s,7),s+=7):(es=r,ir===0&&ut(nc)),es!==r&&kr()!==r&&(Qn=Dr())!==r&&kr()!==r&&(As=Ho())!==r&&kr()!==r&&(Bs=$n())!==r&&kr()!==r&&Lu()!==r?(er=Fn,Fn=es={type:"returns",keyword:"table",expr:Bs}):(s=Fn,Fn=r)),Fn})())===r&&(wt=null),wt!==r)if(kr()!==r){for(qt=[],un=fe();un!==r;)qt.push(un),un=fe();qt!==r&&(un=kr())!==r?((Sn=dd())===r&&(Sn=null),Sn!==r&&kr()!==r?(er=v,v=(function(Fn,es,Qn,As,Bs,Zs,ae){return{tableList:Array.from(Za),columnList:Cc(Ja),ast:{args:Bs||[],type:"create",replace:es&&"or replace",name:As,returns:Zs,keyword:Qn&&Qn.toLowerCase(),options:ae||[]}}})(0,T,V,zr,Br,wt,qt)):(s=v,v=r)):(s=v,v=r)}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;return v}function Is(){var v;return(v=(function(){var T,D,V,Ur,zr,Br;return T=s,t.substr(s,9).toLowerCase()==="increment"?(D=t.substr(s,9),s+=9):(D=r,ir===0&&ut(Ao)),D!==r&&kr()!==r?((V=E())===r&&(V=null),V!==r&&kr()!==r&&(Ur=as())!==r?(er=T,zr=D,Br=Ur,T=D={resource:"sequence",prefix:V?zr.toLowerCase()+" by":zr.toLowerCase(),value:Br}):(s=T,T=r)):(s=T,T=r),T})())===r&&(v=(function(){var T,D,V;return T=s,t.substr(s,8).toLowerCase()==="minvalue"?(D=t.substr(s,8),s+=8):(D=r,ir===0&&ut(Pu)),D!==r&&kr()!==r&&(V=as())!==r?(er=T,T=D=Ca(D,V)):(s=T,T=r),T===r&&(T=s,t.substr(s,2).toLowerCase()==="no"?(D=t.substr(s,2),s+=2):(D=r,ir===0&&ut(ku)),D!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="minvalue"?(V=t.substr(s,8),s+=8):(V=r,ir===0&&ut(Pu)),V===r?(s=T,T=r):(er=T,T=D={resource:"sequence",value:{type:"origin",value:"no minvalue"}})):(s=T,T=r)),T})())===r&&(v=(function(){var T,D,V;return T=s,t.substr(s,8).toLowerCase()==="maxvalue"?(D=t.substr(s,8),s+=8):(D=r,ir===0&&ut(ca)),D!==r&&kr()!==r&&(V=as())!==r?(er=T,T=D=Ca(D,V)):(s=T,T=r),T===r&&(T=s,t.substr(s,2).toLowerCase()==="no"?(D=t.substr(s,2),s+=2):(D=r,ir===0&&ut(ku)),D!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="maxvalue"?(V=t.substr(s,8),s+=8):(V=r,ir===0&&ut(ca)),V===r?(s=T,T=r):(er=T,T=D={resource:"sequence",value:{type:"origin",value:"no maxvalue"}})):(s=T,T=r)),T})())===r&&(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,5).toLowerCase()==="start"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(na)),D!==r&&kr()!==r?((V=ws())===r&&(V=null),V!==r&&kr()!==r&&(Ur=as())!==r?(er=T,T=D=Qa(D,V,Ur)):(s=T,T=r)):(s=T,T=r),T===r&&(T=s,t.substr(s,7).toLowerCase()==="restart"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(cf)),D!==r&&kr()!==r?((V=ws())===r&&(V=null),V!==r&&kr()!==r&&(Ur=as())!==r?(er=T,T=D=Qa(D,V,Ur)):(s=T,T=r)):(s=T,T=r)),T})())===r&&(v=(function(){var T,D,V;return T=s,t.substr(s,5).toLowerCase()==="cache"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(ri)),D!==r&&kr()!==r&&(V=as())!==r?(er=T,T=D=Ca(D,V)):(s=T,T=r),T})())===r&&(v=(function(){var T,D,V;return T=s,t.substr(s,2).toLowerCase()==="no"?(D=t.substr(s,2),s+=2):(D=r,ir===0&&ut(ku)),D===r&&(D=null),D!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="cycle"?(V=t.substr(s,5),s+=5):(V=r,ir===0&&ut(t0)),V===r?(s=T,T=r):(er=T,T=D={resource:"sequence",value:{type:"origin",value:D?"no cycle":"cycle"}})):(s=T,T=r),T})())===r&&(v=(function(){var T,D,V;return T=s,t.substr(s,5).toLowerCase()==="owned"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(n0)),D!==r&&kr()!==r&&E()!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="none"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut(Dc)),V===r?(s=T,T=r):(er=T,T=D={resource:"sequence",prefix:"owned by",value:{type:"origin",value:"none"}})):(s=T,T=r),T===r&&(T=s,t.substr(s,5).toLowerCase()==="owned"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(n0)),D!==r&&kr()!==r&&E()!==r&&kr()!==r&&(V=R())!==r?(er=T,T=D={resource:"sequence",prefix:"owned by",value:V}):(s=T,T=r)),T})()),v}function me(){var v,T,D,V,Ur,zr;if(v=s,(T=Is())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=Is())!==r?V=Ur=[Ur,zr]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=Is())!==r?V=Ur=[Ur,zr]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D,1))}else s=v,v=r;return v}function Xe(){var v,T,D,V,Ur,zr,Br,wt,qt;return v=s,(T=Uu())!==r&&kr()!==r?((D=Mu())===r&&(D=null),D!==r&&kr()!==r?((V=it())===r&&(V=null),V!==r&&kr()!==r?((Ur=Z())===r&&(Ur=sr()),Ur===r&&(Ur=null),Ur!==r&&kr()!==r?(zr=s,t.substr(s,5).toLowerCase()==="nulls"?(Br=t.substr(s,5),s+=5):(Br=r,ir===0&&ut(Rv)),Br!==r&&(wt=kr())!==r?(t.substr(s,5).toLowerCase()==="first"?(qt=t.substr(s,5),s+=5):(qt=r,ir===0&&ut(nv)),qt===r&&(t.substr(s,4).toLowerCase()==="last"?(qt=t.substr(s,4),s+=4):(qt=r,ir===0&&ut(sv))),qt===r?(s=zr,zr=r):zr=Br=[Br,wt,qt]):(s=zr,zr=r),zr===r&&(zr=null),zr===r?(s=v,v=r):(er=v,v=T=(function(un,Sn,Fn,es,Qn){return{collate:Sn,...un,opclass:Fn,order_by:es&&es.toLowerCase(),nulls:Qn&&`${Qn[0].toLowerCase()} ${Qn[2].toLowerCase()}`}})(T,D,V,Ur,zr))):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v}function eo(){var v;return(v=$o())===r&&(v=Jn())===r&&(v=ms())===r&&(v=Qs()),v}function so(){var v,T,D,V,Ur,zr;return(v=(function(){var Br=s,wt,qt;return(wt=$())!==r&&(er=Br,wt={constraint:wt}),(Br=wt)===r&&(Br=s,(wt=Vr())===r&&(wt=Gr()),wt!==r&&kr()!==r?((qt=Po())===r&&(qt=null),qt===r?(s=Br,Br=r):(er=Br,wt=(function(un,Sn){return un&&!un.value&&(un.value="null"),{default_val:Sn,nullable:un}})(wt,qt),Br=wt)):(s=Br,Br=r),Br===r&&(Br=s,(wt=Po())!==r&&kr()!==r?((qt=Vr())===r&&(qt=Gr()),qt===r&&(qt=null),qt===r?(s=Br,Br=r):(er=Br,wt=(function(un,Sn){return Sn&&!Sn.value&&(Sn.value="null"),{default_val:un,nullable:Sn}})(wt,qt),Br=wt)):(s=Br,Br=r))),Br})())===r&&(v=s,t.substr(s,14).toLowerCase()==="auto_increment"?(T=t.substr(s,14),s+=14):(T=r,ir===0&&ut(R0)),T!==r&&(er=v,T={auto_increment:T.toLowerCase()}),(v=T)===r&&(v=s,t.substr(s,6).toLowerCase()==="unique"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Rl)),T!==r&&kr()!==r?(t.substr(s,3).toLowerCase()==="key"?(D=t.substr(s,3),s+=3):(D=r,ir===0&&ut(ff)),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(Br){let wt=["unique"];return Br&&wt.push(Br),{unique:wt.join(" ").toLowerCase("")}})(D))):(s=v,v=r),v===r&&(v=s,t.substr(s,7).toLowerCase()==="primary"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Vf)),T===r&&(T=null),T!==r&&kr()!==r?(t.substr(s,3).toLowerCase()==="key"?(D=t.substr(s,3),s+=3):(D=r,ir===0&&ut(ff)),D===r?(s=v,v=r):(er=v,v=T=(function(Br){let wt=[];return Br&&wt.push("primary"),wt.push("key"),{primary_key:wt.join(" ").toLowerCase("")}})(T))):(s=v,v=r),v===r&&(v=s,(T=rL())!==r&&(er=v,T={comment:T}),(v=T)===r&&(v=s,t.substr(s,9).toLowerCase()==="generated"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(Vv)),T===r&&(T=null),T!==r&&kr()!==r?(t.substr(s,2).toLowerCase()==="by"?(D=t.substr(s,2),s+=2):(D=r,ir===0&&ut(db)),D!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="default"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(Of)),V!==r&&kr()!==r?(t.substr(s,2).toLowerCase()==="as"?(Ur=t.substr(s,2),s+=2):(Ur=r,ir===0&&ut(Pc)),Ur!==r&&kr()!==r?(t.substr(s,8).toLowerCase()==="identity"?(zr=t.substr(s,8),s+=8):(zr=r,ir===0&&ut(H0)),zr===r?(s=v,v=r):(er=v,v=T=(function(Br){let wt=[];return Br&&wt.push("generated"),wt.push("by","default","as","identity"),{generated_by_default:{type:"origin",value:wt.join(" ").toLowerCase("")}}})(T))):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=Mu())!==r&&(er=v,T={collate:T}),(v=T)===r&&(v=s,(T=(function(){var Br=s,wt,qt;return t.substr(s,13).toLowerCase()==="column_format"?(wt=t.substr(s,13),s+=13):(wt=r,ir===0&&ut(bf)),wt!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="fixed"?(qt=t.substr(s,5),s+=5):(qt=r,ir===0&&ut(Lb)),qt===r&&(t.substr(s,7).toLowerCase()==="dynamic"?(qt=t.substr(s,7),s+=7):(qt=r,ir===0&&ut(Fa)),qt===r&&(t.substr(s,7).toLowerCase()==="default"?(qt=t.substr(s,7),s+=7):(qt=r,ir===0&&ut(Of)))),qt===r?(s=Br,Br=r):(er=Br,wt={type:"column_format",value:qt.toLowerCase()},Br=wt)):(s=Br,Br=r),Br})())!==r&&(er=v,T={column_format:T}),(v=T)===r&&(v=s,(T=(function(){var Br=s,wt,qt;return t.substr(s,7).toLowerCase()==="storage"?(wt=t.substr(s,7),s+=7):(wt=r,ir===0&&ut(Kf)),wt!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="disk"?(qt=t.substr(s,4),s+=4):(qt=r,ir===0&&ut(Nv)),qt===r&&(t.substr(s,6).toLowerCase()==="memory"?(qt=t.substr(s,6),s+=6):(qt=r,ir===0&&ut(Gb))),qt===r?(s=Br,Br=r):(er=Br,wt={type:"storage",value:qt.toLowerCase()},Br=wt)):(s=Br,Br=r),Br})())!==r&&(er=v,T={storage:T}),(v=T)===r&&(v=s,(T=br())!==r&&(er=v,T={reference_definition:T}),(v=T)===r&&(v=s,(T=(function(){var Br=s,wt,qt,un,Sn,Fn,es,Qn;return(wt=$())===r&&(wt=null),wt!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="check"?(qt=t.substr(s,5),s+=5):(qt=r,ir===0&&ut(_o)),qt!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(un=ap())!==r&&kr()!==r&&Lu()!==r&&kr()!==r?(Sn=s,(Fn=jn())===r&&(Fn=null),Fn!==r&&(es=kr())!==r?(t.substr(s,8).toLowerCase()==="enforced"?(Qn=t.substr(s,8),s+=8):(Qn=r,ir===0&&ut(yb)),Qn===r?(s=Sn,Sn=r):Sn=Fn=[Fn,es,Qn]):(s=Sn,Sn=r),Sn===r&&(Sn=null),Sn===r?(s=Br,Br=r):(er=Br,wt=(function(As,Bs,Zs,ae){let be=[];return ae&&be.push(ae[0],ae[2]),{constraint_type:Bs.toLowerCase(),keyword:As&&As.keyword,constraint:As&&As.constraint,definition:[Zs],enforced:be.filter(he=>he).join(" ").toLowerCase(),resource:"constraint"}})(wt,qt,un,Sn),Br=wt)):(s=Br,Br=r)):(s=Br,Br=r),Br})())!==r&&(er=v,T={check:T}),(v=T)===r&&(v=s,(T=pt())!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r&&(V=Er())!==r?(er=v,v=T=(function(Br,wt,qt){return{character_set:{type:Br,value:qt,symbol:wt}}})(T,D,V)):(s=v,v=r)):(s=v,v=r)))))))))))),v}function $o(){var v,T,D,V;return v=s,(T=R())!==r&&kr()!==r?((D=Ed())===r&&(D=ds()),D!==r&&kr()!==r?((V=(function(){var Ur,zr,Br,wt,qt,un;if(Ur=s,(zr=so())!==r)if(kr()!==r){for(Br=[],wt=s,(qt=kr())!==r&&(un=so())!==r?wt=qt=[qt,un]:(s=wt,wt=r);wt!==r;)Br.push(wt),wt=s,(qt=kr())!==r&&(un=so())!==r?wt=qt=[qt,un]:(s=wt,wt=r);Br===r?(s=Ur,Ur=r):(er=Ur,Ur=zr=(function(Sn,Fn){let es=Sn;for(let Qn=0;Qn<Fn.length;Qn++)es={...es,...Fn[Qn][1]};return es})(zr,Br))}else s=Ur,Ur=r;else s=Ur,Ur=r;return Ur})())===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(Ur,zr,Br){return Ja.add(`create::${Ur.table}::${Ur.column.expr.value}`),zr.type==="double_quote_string"&&(zr={dataType:`"${zr.value}"`}),{column:Ur,definition:zr,resource:"column",...Br||{}}})(T,D,V))):(s=v,v=r)):(s=v,v=r),v}function Mu(){var v,T,D,V,Ur,zr,Br,wt,qt,un;return v=s,(function(){var Sn=s,Fn,es,Qn;return t.substr(s,7).toLowerCase()==="collate"?(Fn=t.substr(s,7),s+=7):(Fn=r,ir===0&&ut(_l)),Fn===r?(s=Sn,Sn=r):(es=s,ir++,Qn=Gs(),ir--,Qn===r?es=void 0:(s=es,es=r),es===r?(s=Sn,Sn=r):(er=Sn,Sn=Fn="COLLATE")),Sn})()!==r&&kr()!==r?((T=ze())===r&&(T=null),T!==r&&kr()!==r?(D=s,(V=vt())!==r&&(Ur=kr())!==r&&(zr=Ga())!==r&&(Br=kr())!==r?D=V=[V,Ur,zr,Br]:(s=D,D=r),D===r&&(D=null),D!==r&&(V=vt())!==r?(er=v,wt=T,un=V,v={type:"collate",keyword:"collate",collate:{name:(qt=D)?[qt[0],un]:un,symbol:wt}}):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v}function su(){var v,T,D,V,Ur;return v=s,(T=ru())===r&&(T=ze()),T===r&&(T=null),T!==r&&kr()!==r&&(D=Uu())!==r?(er=v,Ur=D,v=T={type:"default",keyword:(V=T)&&V[0],value:Ur}):(s=v,v=r),v}function Po(){var v,T;return v=s,ru()!==r&&kr()!==r&&(T=Uu())!==r?(er=v,v={type:"default",value:T}):(s=v,v=r),v}function Na(){var v,T,D,V,Ur;return v=s,(T=hi())!==r&&kr()!==r?((D=id())===r&&(D=null),D===r?(s=v,v=r):(er=v,V=T,Ur=D,Za.add(`truncate::${[V.db,V.schema].filter(Boolean).join(".")||null}::${V.table}`),Ur&&(V.suffix=Ur),v=T=V)):(s=v,v=r),v}function F(){var v,T,D;return v=s,(T=id())!==r&&(er=v,T=[{name:"*"}]),(v=T)===r&&(v=s,(T=Rr())===r&&(T=null),T!==r&&kr()!==r&&U()!==r&&kr()!==r&&E()!==r&&kr()!==r&&(D=Rr())!==r?(er=v,v=T=(function(V,Ur){let zr=V||[];return zr.orderby=Ur,zr})(T,D)):(s=v,v=r),v===r&&(v=Rr())),v}function ar(){var v,T;return v=s,(T=Ct())===r&&(t.substr(s,3).toLowerCase()==="out"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(Y0)),T===r&&(t.substr(s,8).toLowerCase()==="variadic"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(N0)))),T!==r&&(er=v,T=T.toUpperCase()),v=T}function Nr(){var v,T,D,V,Ur;return v=s,(T=ar())===r&&(T=null),T!==r&&kr()!==r&&(D=Ed())!==r&&kr()!==r?((V=su())===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T={mode:T,type:D,default:V})):(s=v,v=r),v===r&&(v=s,(T=ar())===r&&(T=null),T!==r&&kr()!==r&&(D=$e())!==r&&kr()!==r&&(V=Ed())!==r&&kr()!==r?((Ur=su())===r&&(Ur=null),Ur===r?(s=v,v=r):(er=v,v=T=(function(zr,Br,wt,qt){return{mode:zr,name:Br,type:wt,default:qt}})(T,D,V,Ur))):(s=v,v=r)),v}function Rr(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Nr())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Nr())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Nr())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function ct(){var v;return(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,5).toLowerCase()==="owner"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(ov)),D!==r&&kr()!==r&&Me()!==r&&kr()!==r?((V=fs())===r&&(V=Gn())===r&&(V=Ts())===r&&(V=vt()),V===r?(s=T,T=r):(er=T,T=D={resource:"sequence",prefix:"owner to",value:typeof(Ur=V)=="string"?{type:"origin",value:Ur}:Ur})):(s=T,T=r),T})())===r&&(v=(function(){var T,D;return T=s,Zu()!==r&&kr()!==r&&Me()!==r&&kr()!==r&&(D=vt())!==r?(er=T,T={resource:"sequence",prefix:"rename to",value:D}):(s=T,T=r),T})())===r&&(v=(function(){var T,D,V;return T=s,q()!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="logged"?(D=t.substr(s,6),s+=6):(D=r,ir===0&&ut(Fb)),D===r&&(t.substr(s,8).toLowerCase()==="unlogged"?(D=t.substr(s,8),s+=8):(D=r,ir===0&&ut(e0))),D===r?(s=T,T=r):(er=T,T={resource:"sequence",prefix:"set",value:{type:"origin",value:D}})):(s=T,T=r),T===r&&(T=s,q()!==r&&kr()!==r&&(D=Jr())!==r&&kr()!==r&&(V=vt())!==r?(er=T,T=(function(Ur){return{resource:"sequence",prefix:"set schema",value:Ur}})(V)):(s=T,T=r)),T})()),v}function dt(){var v;return(v=(function(){var T=s,D,V,Ur,zr;(D=to())!==r&&kr()!==r?((V=Lo())===r&&(V=null),V!==r&&kr()!==r?((Ur=bt())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=$o())!==r?(er=T,Br=V,wt=zr,D={action:"add",if_not_exists:Ur,...wt,keyword:Br,resource:"column",type:"alter"},T=D):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var Br,wt;return T})())===r&&(v=(function(){var T=s,D,V;return(D=to())!==r&&kr()!==r&&(V=Qs())!==r?(er=T,D=(function(Ur){return{action:"add",create_definitions:Ur,resource:"constraint",type:"alter"}})(V),T=D):(s=T,T=r),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr;return(D=mo())!==r&&kr()!==r?((V=Lo())===r&&(V=null),V!==r&&kr()!==r?((Ur=pr())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=R())!==r?(er=T,D=(function(Br,wt,qt){return{action:"drop",column:qt,if_exists:wt,keyword:Br,resource:"column",type:"alter"}})(V,Ur,zr),T=D):(s=T,T=r)):(s=T,T=r)):(s=T,T=r),T})())===r&&(v=(function(){var T=s,D,V;(D=to())!==r&&kr()!==r&&(V=Jn())!==r?(er=T,Ur=V,D={action:"add",type:"alter",...Ur},T=D):(s=T,T=r);var Ur;return T})())===r&&(v=(function(){var T=s,D,V;(D=to())!==r&&kr()!==r&&(V=ms())!==r?(er=T,Ur=V,D={action:"add",type:"alter",...Ur},T=D):(s=T,T=r);var Ur;return T})())===r&&(v=Yt())===r&&(v=gn())===r&&(v=Vn())===r&&(v=vn())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As;return(D=ho())!==r&&kr()!==r?((V=Lo())===r&&(V=null),V!==r&&kr()!==r&&(Ur=R())!==r&&kr()!==r?(zr=s,(Br=q())!==r&&(wt=kr())!==r?(t.substr(s,4).toLowerCase()==="data"?(qt=t.substr(s,4),s+=4):(qt=r,ir===0&&ut(u0)),qt===r?(s=zr,zr=r):zr=Br=[Br,wt,qt]):(s=zr,zr=r),zr===r&&(zr=null),zr!==r&&(Br=kr())!==r?(t.substr(s,4).toLowerCase()==="type"?(wt=t.substr(s,4),s+=4):(wt=r,ir===0&&ut(wb)),wt!==r&&(qt=kr())!==r&&(un=Ed())!==r&&kr()!==r?((Sn=Mu())===r&&(Sn=null),Sn!==r&&kr()!==r?(Fn=s,(es=ls())!==r&&(Qn=kr())!==r&&(As=Uu())!==r?Fn=es=[es,Qn,As]:(s=Fn,Fn=r),Fn===r&&(Fn=null),Fn===r?(s=T,T=r):(er=T,D=(function(Bs,Zs,ae,be,he,re){return Zs.suffix=ae?"set data type":"type",{action:"alter",column:Zs,keyword:Bs,resource:"column",definition:be,collate:he,using:re&&re[2],type:"alter"}})(V,Ur,zr,un,Sn,Fn),T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr;return(D=ho())!==r&&kr()!==r?((V=Lo())===r&&(V=null),V!==r&&kr()!==r&&(Ur=R())!==r&&kr()!==r&&q()!==r&&kr()!==r&&ru()!==r&&kr()!==r&&(zr=Uu())!==r?(er=T,D=(function(Br,wt,qt){return{action:"alter",column:wt,keyword:Br,resource:"column",default_val:{type:"set default",value:qt},type:"alter"}})(V,Ur,zr),T=D):(s=T,T=r)):(s=T,T=r),T===r&&(T=s,(D=ho())!==r&&kr()!==r?((V=Lo())===r&&(V=null),V!==r&&kr()!==r&&(Ur=R())!==r&&kr()!==r&&mo()!==r&&kr()!==r&&ru()!==r?(er=T,D=(function(Br,wt){return{action:"alter",column:wt,keyword:Br,resource:"column",default_val:{type:"drop default"},type:"alter"}})(V,Ur),T=D):(s=T,T=r)):(s=T,T=r)),T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br;return(D=ho())!==r&&kr()!==r?((V=Lo())===r&&(V=null),V!==r&&kr()!==r&&(Ur=R())!==r&&kr()!==r?((zr=q())===r&&(zr=mo()),zr!==r&&kr()!==r&&(Br=Vr())!==r?(er=T,D=(function(wt,qt,un,Sn){return Sn.action=un.toLowerCase(),{action:"alter",column:qt,keyword:wt,resource:"column",nullable:Sn,type:"alter"}})(V,Ur,zr,Br),T=D):(s=T,T=r)):(s=T,T=r)):(s=T,T=r),T})()),v}function Yt(){var v,T,D,V,Ur;return v=s,Zu()!==r&&kr()!==r?((T=Me())===r&&(T=rr()),T===r&&(T=null),T!==r&&kr()!==r&&(D=it())!==r?(er=v,Ur=D,v={action:"rename",type:"alter",resource:"table",keyword:(V=T)&&V[0].toLowerCase(),table:Ur}):(s=v,v=r)):(s=v,v=r),v}function vn(){var v,T,D;return v=s,t.substr(s,5).toLowerCase()==="owner"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(ov)),T!==r&&kr()!==r&&Me()!==r&&kr()!==r?((D=it())===r&&(t.substr(s,12).toLowerCase()==="current_role"?(D=t.substr(s,12),s+=12):(D=r,ir===0&&ut(_0)),D===r&&(t.substr(s,12).toLowerCase()==="current_user"?(D=t.substr(s,12),s+=12):(D=r,ir===0&&ut(zf)),D===r&&(t.substr(s,12).toLowerCase()==="session_user"?(D=t.substr(s,12),s+=12):(D=r,ir===0&&ut(je))))),D===r?(s=v,v=r):(er=v,v=T={action:"owner",type:"alter",resource:"table",keyword:"to",table:D})):(s=v,v=r),v}function fn(){var v,T;return v=s,q()!==r&&kr()!==r&&Jr()!==r&&kr()!==r&&(T=it())!==r?(er=v,v={action:"set",type:"alter",resource:"table",keyword:"schema",table:T}):(s=v,v=r),v}function gn(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="algorithm"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(o0)),T!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="default"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(Of)),V===r&&(t.substr(s,7).toLowerCase()==="instant"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(xi)),V===r&&(t.substr(s,7).toLowerCase()==="inplace"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(xf)),V===r&&(t.substr(s,4).toLowerCase()==="copy"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut(Zf))))),V===r?(s=v,v=r):(er=v,v=T={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:D,algorithm:V})):(s=v,v=r)):(s=v,v=r),v}function Vn(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="lock"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(W0)),T!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="default"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(Of)),V===r&&(t.substr(s,4).toLowerCase()==="none"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut(Dc)),V===r&&(t.substr(s,6).toLowerCase()==="shared"?(V=t.substr(s,6),s+=6):(V=r,ir===0&&ut(jb)),V===r&&(t.substr(s,9).toLowerCase()==="exclusive"?(V=t.substr(s,9),s+=9):(V=r,ir===0&&ut(Uf))))),V===r?(s=v,v=r):(er=v,v=T={type:"alter",keyword:"lock",resource:"lock",symbol:D,lock:V})):(s=v,v=r)):(s=v,v=r),v}function Jn(){var v,T,D,V,Ur,zr;return v=s,(T=wo())===r&&(T=jo()),T!==r&&kr()!==r?((D=ie())===r&&(D=null),D!==r&&kr()!==r?((V=yi())===r&&(V=null),V!==r&&kr()!==r&&(Ur=xe())!==r&&kr()!==r?((zr=Rc())===r&&(zr=null),zr!==r&&kr()!==r?(er=v,v=T=(function(Br,wt,qt,un,Sn){return{index:wt,definition:un,keyword:Br.toLowerCase(),index_type:qt,resource:"index",index_options:Sn}})(T,D,V,Ur,zr)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v}function ms(){var v,T,D,V,Ur,zr;return v=s,(T=(function(){var Br=s,wt,qt,un;return t.substr(s,8).toLowerCase()==="fulltext"?(wt=t.substr(s,8),s+=8):(wt=r,ir===0&&ut(kn)),wt===r?(s=Br,Br=r):(qt=s,ir++,un=Gs(),ir--,un===r?qt=void 0:(s=qt,qt=r),qt===r?(s=Br,Br=r):(er=Br,Br=wt="FULLTEXT")),Br})())===r&&(T=(function(){var Br=s,wt,qt,un;return t.substr(s,7).toLowerCase()==="spatial"?(wt=t.substr(s,7),s+=7):(wt=r,ir===0&&ut(Yn)),wt===r?(s=Br,Br=r):(qt=s,ir++,un=Gs(),ir--,un===r?qt=void 0:(s=qt,qt=r),qt===r?(s=Br,Br=r):(er=Br,Br=wt="SPATIAL")),Br})()),T!==r&&kr()!==r?((D=wo())===r&&(D=jo()),D===r&&(D=null),D!==r&&kr()!==r?((V=ie())===r&&(V=null),V!==r&&kr()!==r&&(Ur=xe())!==r&&kr()!==r?((zr=Rc())===r&&(zr=null),zr!==r&&kr()!==r?(er=v,v=T=(function(Br,wt,qt,un,Sn){return{index:qt,definition:un,keyword:wt&&`${Br.toLowerCase()} ${wt.toLowerCase()}`||Br.toLowerCase(),index_options:Sn,resource:"index"}})(T,D,V,Ur,zr)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v}function Qs(){var v;return(v=(function(){var T=s,D,V,Ur,zr,Br;(D=$())===r&&(D=null),D!==r&&kr()!==r?(t.substr(s,11).toLowerCase()==="primary key"?(V=t.substr(s,11),s+=11):(V=r,ir===0&&ut(Ui)),V!==r&&kr()!==r?((Ur=yi())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=xe())!==r&&kr()!==r?((Br=Rc())===r&&(Br=null),Br===r?(s=T,T=r):(er=T,qt=V,un=Ur,Sn=zr,Fn=Br,D={constraint:(wt=D)&&wt.constraint,definition:Sn,constraint_type:qt.toLowerCase(),keyword:wt&&wt.keyword,index_type:un,resource:"constraint",index_options:Fn},T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var wt,qt,un,Sn,Fn;return T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt;(D=$())===r&&(D=null),D!==r&&kr()!==r&&(V=Ku())!==r&&kr()!==r?((Ur=wo())===r&&(Ur=jo()),Ur===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=ie())===r&&(zr=null),zr!==r&&kr()!==r?((Br=yi())===r&&(Br=null),Br!==r&&kr()!==r&&(wt=xe())!==r&&kr()!==r?((qt=Rc())===r&&(qt=null),qt===r?(s=T,T=r):(er=T,Sn=V,Fn=Ur,es=zr,Qn=Br,As=wt,Bs=qt,D={constraint:(un=D)&&un.constraint,definition:As,constraint_type:Fn&&`${Sn.toLowerCase()} ${Fn.toLowerCase()}`||Sn.toLowerCase(),keyword:un&&un.keyword,index_type:Qn,index:es,resource:"constraint",index_options:Bs},T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var un,Sn,Fn,es,Qn,As,Bs;return T})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br;(D=$())===r&&(D=null),D!==r&&kr()!==r?(t.substr(s,11).toLowerCase()==="foreign key"?(V=t.substr(s,11),s+=11):(V=r,ir===0&&ut(uv)),V!==r&&kr()!==r?((Ur=ie())===r&&(Ur=null),Ur!==r&&kr()!==r&&(zr=xe())!==r&&kr()!==r?((Br=br())===r&&(Br=null),Br===r?(s=T,T=r):(er=T,qt=V,un=Ur,Sn=zr,Fn=Br,D={constraint:(wt=D)&&wt.constraint,definition:Sn,constraint_type:qt,keyword:wt&&wt.keyword,index:un,resource:"constraint",reference_definition:Fn},T=D)):(s=T,T=r)):(s=T,T=r)):(s=T,T=r);var wt,qt,un,Sn,Fn;return T})())===r&&(v=J()),v}function $(){var v,T,D;return v=s,(T=ci())!==r&&kr()!==r?((D=it())===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(V,Ur){return{keyword:V.toLowerCase(),constraint:Ur}})(T,D))):(s=v,v=r),v}function J(){var v,T,D,V,Ur,zr,Br;return v=s,(T=$())===r&&(T=null),T!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="check"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(_o)),D!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(V=Sc())!==r&&kr()!==r&&Lu()!==r?(er=v,zr=D,Br=V,v=T={constraint:(Ur=T)&&Ur.constraint,definition:[Br],constraint_type:zr.toLowerCase(),keyword:Ur&&Ur.keyword,resource:"constraint"}):(s=v,v=r)):(s=v,v=r),v}function br(){var v,T,D,V,Ur,zr,Br,wt,qt,un;return v=s,(T=Iv())!==r&&kr()!==r&&(D=hi())!==r&&kr()!==r&&(V=xe())!==r&&kr()!==r?(t.substr(s,10).toLowerCase()==="match full"?(Ur=t.substr(s,10),s+=10):(Ur=r,ir===0&&ut(hb)),Ur===r&&(t.substr(s,13).toLowerCase()==="match partial"?(Ur=t.substr(s,13),s+=13):(Ur=r,ir===0&&ut(Kv)),Ur===r&&(t.substr(s,12).toLowerCase()==="match simple"?(Ur=t.substr(s,12),s+=12):(Ur=r,ir===0&&ut(Gc)))),Ur===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=mr())===r&&(zr=null),zr!==r&&kr()!==r?((Br=mr())===r&&(Br=null),Br===r?(s=v,v=r):(er=v,wt=Ur,qt=zr,un=Br,v=T={definition:V,table:[D],keyword:T.toLowerCase(),match:wt&&wt.toLowerCase(),on_action:[qt,un].filter(Sn=>Sn)})):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=mr())!==r&&(er=v,T={on_action:[T]}),v=T),v}function mr(){var v,T,D,V;return v=s,On()!==r&&kr()!==r?((T=Lc())===r&&(T=Fo()),T!==r&&kr()!==r&&(D=(function(){var Ur=s,zr,Br;return(zr=Xn())!==r&&kr()!==r&&Ho()!==r&&kr()!==r?((Br=pc())===r&&(Br=null),Br!==r&&kr()!==r&&Lu()!==r?(er=Ur,Ur=zr={type:"function",name:{name:[{type:"origin",value:zr}]},args:Br}):(s=Ur,Ur=r)):(s=Ur,Ur=r),Ur===r&&(Ur=s,t.substr(s,8).toLowerCase()==="restrict"?(zr=t.substr(s,8),s+=8):(zr=r,ir===0&&ut(Bl)),zr===r&&(t.substr(s,7).toLowerCase()==="cascade"?(zr=t.substr(s,7),s+=7):(zr=r,ir===0&&ut(hc)),zr===r&&(t.substr(s,8).toLowerCase()==="set null"?(zr=t.substr(s,8),s+=8):(zr=r,ir===0&&ut(_v)),zr===r&&(t.substr(s,9).toLowerCase()==="no action"?(zr=t.substr(s,9),s+=9):(zr=r,ir===0&&ut(kf)),zr===r&&(t.substr(s,11).toLowerCase()==="set default"?(zr=t.substr(s,11),s+=11):(zr=r,ir===0&&ut(vf)),zr===r&&(zr=Xn()))))),zr!==r&&(er=Ur,zr={type:"origin",value:zr.toLowerCase()}),Ur=zr),Ur})())!==r?(er=v,V=D,v={type:"on "+T[0].toLowerCase(),value:V}):(s=v,v=r)):(s=v,v=r),v}function et(){var v,T,D,V,Ur,zr,Br;return v=s,(T=Fu())===r&&(T=Lc())===r&&(T=sn()),T!==r&&(er=v,Br=T,T={keyword:Array.isArray(Br)?Br[0].toLowerCase():Br.toLowerCase()}),(v=T)===r&&(v=s,(T=Fo())!==r&&kr()!==r?(D=s,t.substr(s,2).toLowerCase()==="of"?(V=t.substr(s,2),s+=2):(V=r,ir===0&&ut(Sf)),V!==r&&(Ur=kr())!==r&&(zr=Av())!==r?D=V=[V,Ur,zr]:(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(wt,qt){return{keyword:wt&&wt[0]&&wt[0].toLowerCase(),args:qt&&{keyword:qt[0],columns:qt[2]}||null}})(T,D))):(s=v,v=r)),v}function pt(){var v,T,D;return v=s,t.substr(s,9).toLowerCase()==="character"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(av)),T!==r&&kr()!==r?(t.substr(s,3).toLowerCase()==="set"?(D=t.substr(s,3),s+=3):(D=r,ir===0&&ut(iv)),D===r?(s=v,v=r):(er=v,v=T="CHARACTER SET")):(s=v,v=r),v}function At(){var v,T,D,V,Ur,zr,Br,wt,qt;return v=s,(T=ru())===r&&(T=null),T!==r&&kr()!==r?((D=pt())===r&&(t.substr(s,7).toLowerCase()==="charset"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(a0)),D===r&&(t.substr(s,7).toLowerCase()==="collate"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(_l)))),D!==r&&kr()!==r?((V=ze())===r&&(V=null),V!==r&&kr()!==r&&(Ur=Er())!==r?(er=v,Br=D,wt=V,qt=Ur,v=T={keyword:(zr=T)&&`${zr[0].toLowerCase()} ${Br.toLowerCase()}`||Br.toLowerCase(),symbol:wt,value:qt}):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v}function Bt(){var v,T,D,V,Ur,zr,Br,wt,qt;return v=s,t.substr(s,14).toLowerCase()==="auto_increment"?(T=t.substr(s,14),s+=14):(T=r,ir===0&&ut(R0)),T===r&&(t.substr(s,14).toLowerCase()==="avg_row_length"?(T=t.substr(s,14),s+=14):(T=r,ir===0&&ut(Yl)),T===r&&(t.substr(s,14).toLowerCase()==="key_block_size"?(T=t.substr(s,14),s+=14):(T=r,ir===0&&ut(Ab)),T===r&&(t.substr(s,8).toLowerCase()==="max_rows"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Mf)),T===r&&(t.substr(s,8).toLowerCase()==="min_rows"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Wb)),T===r&&(t.substr(s,18).toLowerCase()==="stats_sample_pages"?(T=t.substr(s,18),s+=18):(T=r,ir===0&&ut(Df))))))),T!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r&&(V=as())!==r?(er=v,wt=D,qt=V,v=T={keyword:T.toLowerCase(),symbol:wt,value:qt.value}):(s=v,v=r)):(s=v,v=r),v===r&&(v=At())===r&&(v=s,(T=za())===r&&(t.substr(s,10).toLowerCase()==="connection"?(T=t.substr(s,10),s+=10):(T=r,ir===0&&ut(mb))),T!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r&&(V=Pt())!==r?(er=v,v=T=(function(un,Sn,Fn){return{keyword:un.toLowerCase(),symbol:Sn,value:`'${Fn.value}'`}})(T,D,V)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,11).toLowerCase()==="compression"?(T=t.substr(s,11),s+=11):(T=r,ir===0&&ut(i0)),T!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r?(V=s,t.charCodeAt(s)===39?(Ur="'",s++):(Ur=r,ir===0&&ut(ft)),Ur===r?(s=V,V=r):(t.substr(s,4).toLowerCase()==="zlib"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(tn)),zr===r&&(t.substr(s,3).toLowerCase()==="lz4"?(zr=t.substr(s,3),s+=3):(zr=r,ir===0&&ut(_n)),zr===r&&(t.substr(s,4).toLowerCase()==="none"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(Dc)))),zr===r?(s=V,V=r):(t.charCodeAt(s)===39?(Br="'",s++):(Br=r,ir===0&&ut(ft)),Br===r?(s=V,V=r):V=Ur=[Ur,zr,Br])),V===r?(s=v,v=r):(er=v,v=T=(function(un,Sn,Fn){return{keyword:un.toLowerCase(),symbol:Sn,value:Fn.join("").toUpperCase()}})(T,D,V))):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,6).toLowerCase()==="engine"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(En)),T!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r&&(V=$e())!==r?(er=v,v=T=(function(un,Sn,Fn){return{keyword:un.toLowerCase(),symbol:Sn,value:Fn.toUpperCase()}})(T,D,V)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=pi())!==r&&kr()!==r&&(D=E())!==r&&kr()!==r&&(V=Uu())!==r?(er=v,v=T=(function(un){return{keyword:"partition by",value:un}})(V)):(s=v,v=r))))),v}function Ut(){var v,T,D;return v=s,(T=Mo())===r&&(T=Fu())===r&&(T=Fo())===r&&(T=Lc())===r&&(T=sn())===r&&(T=Iv())===r&&(t.substr(s,7).toLowerCase()==="trigger"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(ki))),T!==r&&(er=v,D=T,T={type:"origin",value:Array.isArray(D)?D[0]:D}),v=T}function pn(){var v,T,D,V;return v=s,xr()===r?(s=v,v=r):(T=s,(D=kr())===r?(s=T,T=r):(t.substr(s,10).toLowerCase()==="privileges"?(V=t.substr(s,10),s+=10):(V=r,ir===0&&ut(Ju)),V===r?(s=T,T=r):T=D=[D,V]),T===r&&(T=null),T===r?(s=v,v=r):(er=v,v={type:"origin",value:T?"all privileges":"all"})),v}function Cn(){var v;return(v=Ut())===r&&(v=(function(){var T,D;return T=s,t.substr(s,5).toLowerCase()==="usage"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(au)),D===r&&(D=Mo())===r&&(D=Fo()),D!==r&&(er=T,D=Iu(D)),T=D})())===r&&(v=(function(){var T,D;return T=s,(D=Gu())===r&&(t.substr(s,7).toLowerCase()==="connect"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(mu)),D===r&&(D=Ko())===r&&(D=Aa())),D!==r&&(er=T,D=Iu(D)),T=D})())===r&&(v=(function(){var T,D;return T=s,t.substr(s,5).toLowerCase()==="usage"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(au)),D!==r&&(er=T,D=ua(D)),(T=D)===r&&(T=pn()),T})())===r&&(v=(function(){var T,D;return T=s,t.substr(s,7).toLowerCase()==="execute"?(D=t.substr(s,7),s+=7):(D=r,ir===0&&ut(pa)),D!==r&&(er=T,D=ua(D)),(T=D)===r&&(T=pn()),T})()),v}function Hn(){var v,T,D,V,Ur,zr,Br,wt;return v=s,(T=Cn())!==r&&kr()!==r?(D=s,(V=Ho())!==r&&(Ur=kr())!==r&&(zr=Av())!==r&&(Br=kr())!==r&&(wt=Lu())!==r?D=V=[V,Ur,zr,Br,wt]:(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(qt,un){return{priv:qt,columns:un&&un[2]}})(T,D))):(s=v,v=r),v}function qn(){var v,T,D,V,Ur;return v=s,T=s,(D=it())!==r&&(V=kr())!==r&&(Ur=Ga())!==r?T=D=[D,V,Ur]:(s=T,T=r),T===r&&(T=null),T!==r&&(D=kr())!==r?((V=it())===r&&(V=id()),V===r?(s=v,v=r):(er=v,v=T=(function(zr,Br){return{prefix:zr&&zr[0],name:Br}})(T,V))):(s=v,v=r),v}function Cs(){var v,T,D,V;return v=s,(T=de())===r&&(T=null),T!==r&&kr()!==r&&(D=it())!==r?(er=v,V=D,v=T={name:{type:"origin",value:T?`${group} ${V}`:V}}):(s=v,v=r),v===r&&(v=s,t.substr(s,6).toLowerCase()==="public"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Wl)),T===r&&(T=fs())===r&&(T=Gn())===r&&(T=Ts()),T!==r&&(er=v,T=(function(Ur){return{name:{type:"origin",value:Ur}}})(T)),v=T),v}function js(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Cs())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Cs())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Cs())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function qe(){var v,T,D,V,Ur,zr,Br,wt;return v=s,t.substr(s,5).toLowerCase()==="grant"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(ec)),T!==r&&(er=v,T={type:"grant"}),(v=T)===r&&(v=s,t.substr(s,6).toLowerCase()==="revoke"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(lp)),T!==r&&kr()!==r?(D=s,t.substr(s,5).toLowerCase()==="grant"?(V=t.substr(s,5),s+=5):(V=r,ir===0&&ut(ec)),V!==r&&(Ur=kr())!==r?(t.substr(s,6).toLowerCase()==="option"?(zr=t.substr(s,6),s+=6):(zr=r,ir===0&&ut(Fc)),zr!==r&&(Br=kr())!==r?(t.substr(s,3).toLowerCase()==="for"?(wt=t.substr(s,3),s+=3):(wt=r,ir===0&&ut($c)),wt===r?(s=D,D=r):D=V=[V,Ur,zr,Br,wt]):(s=D,D=r)):(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T={type:"revoke",grant_option_for:D&&{type:"origin",value:"grant option for"}})):(s=v,v=r)),v}function bo(){var v,T,D,V,Ur,zr;return v=s,t.substr(s,6).toLowerCase()==="elseif"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Uv)),T!==r&&kr()!==r&&(D=Uu())!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="then"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut($f)),V!==r&&kr()!==r&&(Ur=nr())!==r&&kr()!==r?((zr=dd())===r&&(zr=null),zr===r?(s=v,v=r):(er=v,v=T={type:"elseif",boolean_expr:D,then:Ur,semicolon:zr})):(s=v,v=r)):(s=v,v=r),v}function tu(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="isolation"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(Xb)),T!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="level"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(pp)),D!==r&&kr()!==r&&(V=(function(){var Ur,zr,Br;return Ur=s,t.substr(s,12).toLowerCase()==="serializable"?(zr=t.substr(s,12),s+=12):(zr=r,ir===0&&ut(Zv)),zr!==r&&(er=Ur,zr={type:"origin",value:"serializable"}),(Ur=zr)===r&&(Ur=s,t.substr(s,10).toLowerCase()==="repeatable"?(zr=t.substr(s,10),s+=10):(zr=r,ir===0&&ut(bp)),zr!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="read"?(Br=t.substr(s,4),s+=4):(Br=r,ir===0&&ut(Ib)),Br===r?(s=Ur,Ur=r):(er=Ur,Ur=zr={type:"origin",value:"repeatable read"})):(s=Ur,Ur=r),Ur===r&&(Ur=s,t.substr(s,4).toLowerCase()==="read"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(Ib)),zr!==r&&kr()!==r?(t.substr(s,9).toLowerCase()==="committed"?(Br=t.substr(s,9),s+=9):(Br=r,ir===0&&ut(Dv)),Br===r&&(t.substr(s,11).toLowerCase()==="uncommitted"?(Br=t.substr(s,11),s+=11):(Br=r,ir===0&&ut(vp))),Br===r?(s=Ur,Ur=r):(er=Ur,Ur=zr=Jv(Br))):(s=Ur,Ur=r))),Ur})())!==r?(er=v,v=T={type:"origin",value:"isolation level "+V.value}):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,4).toLowerCase()==="read"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Ib)),T!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="write"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(xp)),D===r&&(t.substr(s,4).toLowerCase()==="only"?(D=t.substr(s,4),s+=4):(D=r,ir===0&&ut(sl))),D===r?(s=v,v=r):(er=v,v=T=Jv(D))):(s=v,v=r),v===r&&(v=s,(T=jn())===r&&(T=null),T!==r&&kr()!==r?(t.substr(s,10).toLowerCase()==="deferrable"?(D=t.substr(s,10),s+=10):(D=r,ir===0&&ut(Nl)),D===r?(s=v,v=r):(er=v,v=T={type:"origin",value:T?"not deferrable":"deferrable"})):(s=v,v=r))),v}function Ru(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=tu())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=tu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=tu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function Je(){var v,T,D,V,Ur,zr,Br;return v=s,T=s,t.charCodeAt(s)===40?(D="(",s++):(D=r,ir===0&&ut(O0)),D!==r&&(V=kr())!==r&&(Ur=hu())!==r&&(zr=kr())!==r?(t.charCodeAt(s)===41?(Br=")",s++):(Br=r,ir===0&&ut(v0)),Br===r?(s=T,T=r):T=D=[D,V,Ur,zr,Br]):(s=T,T=r),T!==r&&(er=v,T={...T[2],parentheses_symbol:!0}),v=T}function hu(){var v,T;return v=s,Mo()!==r&&kr()!==r?(t.charCodeAt(s)===59?(T=";",s++):(T=r,ir===0&&ut(ac)),T===r?(s=v,v=r):(er=v,v={type:"select"})):(s=v,v=r),v===r&&(v=(function(){var D=s,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs,Zs,ae;return(V=kr())===r?(s=D,D=r):((Ur=Go())===r&&(Ur=null),Ur!==r&&kr()!==r&&Mo()!==r&&Od()!==r?((zr=(function(){var be,he,re,_e,Ze,Fe;if(be=s,(he=qs())!==r){for(re=[],_e=s,(Ze=kr())!==r&&(Fe=qs())!==r?_e=Ze=[Ze,Fe]:(s=_e,_e=r);_e!==r;)re.push(_e),_e=s,(Ze=kr())!==r&&(Fe=qs())!==r?_e=Ze=[Ze,Fe]:(s=_e,_e=r);re===r?(s=be,be=r):(er=be,he=(function(vo,Io){let xo=[vo];for(let Tu=0,_a=Io.length;Tu<_a;++Tu)xo.push(Io[Tu][1]);return xo})(he,re),be=he)}else s=be,be=r;return be})())===r&&(zr=null),zr!==r&&kr()!==r?((Br=(function(){var be=s,he,re;return(he=Sr())!==r&&kr()!==r&&On()!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(re=fo())!==r&&kr()!==r&&Lu()!==r?(er=be,he=(function(_e,Ze,Fe){return console.lo,{type:_e+" ON",columns:Fe}})(he,0,re),be=he):(s=be,be=r),be===r&&(be=s,(he=Sr())===r&&(he=null),he!==r&&(er=be,he={type:he}),be=he),be})())===r&&(Br=null),Br!==r&&kr()!==r&&(wt=Ks())!==r&&kr()!==r?((qt=le())===r&&(qt=null),qt!==r&&kr()!==r?((un=vu())===r&&(un=null),un!==r&&kr()!==r?((Sn=le())===r&&(Sn=null),Sn!==r&&kr()!==r?((Fn=fl())===r&&(Fn=null),Fn!==r&&kr()!==r?((es=(function(){var be=s,he,re;return(he=de())!==r&&kr()!==r&&E()!==r&&kr()!==r&&(re=pc())!==r?(er=be,he={columns:re.value},be=he):(s=be,be=r),be})())===r&&(es=null),es!==r&&kr()!==r?((Qn=(function(){var be=s,he;return(function(){var re=s,_e,Ze,Fe;return t.substr(s,6).toLowerCase()==="having"?(_e=t.substr(s,6),s+=6):(_e=r,ir===0&&ut(Xa)),_e===r?(s=re,re=r):(Ze=s,ir++,Fe=Gs(),ir--,Fe===r?Ze=void 0:(s=Ze,Ze=r),Ze===r?(s=re,re=r):re=_e=[_e,Ze]),re})()!==r&&kr()!==r&&(he=Sc())!==r?(er=be,be=he):(s=be,be=r),be})())===r&&(Qn=null),Qn!==r&&kr()!==r?((As=Ei())===r&&(As=null),As!==r&&kr()!==r?((Bs=Rf())===r&&(Bs=null),Bs!==r&&kr()!==r?((Zs=(function(){var be=s,he;return(function(){var re=s,_e,Ze,Fe;return t.substr(s,6).toLowerCase()==="window"?(_e=t.substr(s,6),s+=6):(_e=r,ir===0&&ut(Oi)),_e===r?(s=re,re=r):(Ze=s,ir++,Fe=Gs(),ir--,Fe===r?Ze=void 0:(s=Ze,Ze=r),Ze===r?(s=re,re=r):re=_e=[_e,Ze]),re})()!==r&&kr()!==r&&(he=(function(){var re,_e,Ze,Fe,vo,Io,xo,Tu;if(re=s,(_e=bl())!==r){for(Ze=[],Fe=s,(vo=kr())!==r&&(Io=du())!==r&&(xo=kr())!==r&&(Tu=bl())!==r?Fe=vo=[vo,Io,xo,Tu]:(s=Fe,Fe=r);Fe!==r;)Ze.push(Fe),Fe=s,(vo=kr())!==r&&(Io=du())!==r&&(xo=kr())!==r&&(Tu=bl())!==r?Fe=vo=[vo,Io,xo,Tu]:(s=Fe,Fe=r);Ze===r?(s=re,re=r):(er=re,_e=Vc(_e,Ze),re=_e)}else s=re,re=r;return re})())!==r?(er=be,be={keyword:"window",type:"window",expr:he}):(s=be,be=r),be})())===r&&(Zs=null),Zs!==r&&kr()!==r?((ae=le())===r&&(ae=null),ae===r?(s=D,D=r):(er=D,V=(function(be,he,re,_e,Ze,Fe,vo,Io,xo,Tu,_a,Pa,fb,tv){if(Ze&&vo||Ze&&tv||vo&&tv||Ze&&vo&&tv)throw Error("A given SQL statement can contain at most one INTO clause");return Fe&&Fe.forEach(Pl=>Pl.table&&Za.add(`select::${[Pl.db,Pl.schema].filter(Boolean).join(".")||null}::${Pl.table}`)),{with:be,type:"select",options:he,distinct:re,columns:_e,into:{...Ze||vo||tv||{},position:(Ze?"column":vo&&"from")||tv&&"end"},from:Fe,where:Io,groupby:xo,having:Tu,orderby:_a,limit:Pa,window:fb}})(Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs,Zs,ae),D=V)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)):(s=D,D=r)),D})())===r&&(v=Je()),v}function Go(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn;if(v=s,ws()!==r)if(kr()!==r)if((T=nu())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=nu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=nu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=Vc(T,D))}else s=v,v=r;else s=v,v=r;else s=v,v=r;if(v===r)if(v=s,kr()!==r)if(ws()!==r)if((T=kr())!==r)if((D=Pi())!==r)if((V=kr())!==r)if((Ur=nu())!==r){for(zr=[],Br=s,(wt=kr())!==r&&(qt=du())!==r&&(un=kr())!==r&&(Sn=nu())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r);Br!==r;)zr.push(Br),Br=s,(wt=kr())!==r&&(qt=du())!==r&&(un=kr())!==r&&(Sn=nu())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r);zr===r?(s=v,v=r):(er=v,v=(function(Fn,es){return Fn.recursive=!0,Vc(Fn,es)})(Ur,zr))}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;return v}function nu(){var v,T,D,V;return v=s,(T=Pt())===r&&(T=$e()),T!==r&&kr()!==r?((D=xe())===r&&(D=null),D!==r&&kr()!==r&&rr()!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(V=nr())!==r&&kr()!==r&&Lu()!==r?(er=v,v=T=(function(Ur,zr,Br){return typeof Ur=="string"&&(Ur={type:"default",value:Ur}),{name:Ur,stmt:Br.ast,columns:zr}})(T,D,V)):(s=v,v=r)):(s=v,v=r),v}function xe(){var v,T;return v=s,Ho()!==r&&kr()!==r&&(T=Av())!==r&&kr()!==r&&Lu()!==r?(er=v,v=T):(s=v,v=r),v}function qs(){var v,T;return v=s,(T=(function(){var D;return t.substr(s,19).toLowerCase()==="sql_calc_found_rows"?(D=t.substr(s,19),s+=19):(D=r,ir===0&&ut(Js)),D})())===r&&((T=(function(){var D;return t.substr(s,9).toLowerCase()==="sql_cache"?(D=t.substr(s,9),s+=9):(D=r,ir===0&&ut(Ve)),D})())===r&&(T=(function(){var D;return t.substr(s,12).toLowerCase()==="sql_no_cache"?(D=t.substr(s,12),s+=12):(D=r,ir===0&&ut(co)),D})()),T===r&&(T=(function(){var D;return t.substr(s,14).toLowerCase()==="sql_big_result"?(D=t.substr(s,14),s+=14):(D=r,ir===0&&ut(Eo)),D})())===r&&(T=(function(){var D;return t.substr(s,16).toLowerCase()==="sql_small_result"?(D=t.substr(s,16),s+=16):(D=r,ir===0&&ut(_t)),D})())===r&&(T=(function(){var D;return t.substr(s,17).toLowerCase()==="sql_buffer_result"?(D=t.substr(s,17),s+=17):(D=r,ir===0&&ut(ao)),D})())),T!==r&&(er=v,T=T),v=T}function fo(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=oa())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=oa())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=oa())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function Ks(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=xr())===r&&(T=s,(D=id())===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):T=D=[D,V]),T===r&&(T=id())),T!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=oa())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=oa())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=(function(qt,un){Ja.add("select::null::(.*)");let Sn={expr:{type:"column_ref",table:null,column:"*"},as:null};return un&&un.length>0?Vc(Sn,un):[Sn]})(0,D))}else s=v,v=r;return v===r&&(v=fo()),v}function Vo(){var v,T;return v=s,vd()!==r&&kr()!==r?((T=as())===r&&(T=Pt())===r&&(T=Vu()),T!==r&&kr()!==r&&pd()!==r?(er=v,v={brackets:!0,index:T}):(s=v,v=r)):(s=v,v=r),v}function eu(){var v,T,D,V,Ur,zr;if(v=s,(T=Vo())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=Vo())!==r?V=Ur=[Ur,zr]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=Vo())!==r?V=Ur=[Ur,zr]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D,1))}else s=v,v=r;return v}function Jo(){var v,T,D,V,Ur;return v=s,(T=(function(){var zr,Br,wt,qt,un,Sn,Fn,es;if(zr=s,(Br=Uu())!==r){for(wt=[],qt=s,(un=kr())===r?(s=qt,qt=r):((Sn=ts())===r&&(Sn=d())===r&&(Sn=Ud()),Sn!==r&&(Fn=kr())!==r&&(es=Uu())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r));qt!==r;)wt.push(qt),qt=s,(un=kr())===r?(s=qt,qt=r):((Sn=ts())===r&&(Sn=d())===r&&(Sn=Ud()),Sn!==r&&(Fn=kr())!==r&&(es=Uu())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r));wt===r?(s=zr,zr=r):(er=zr,Br=(function(Qn,As){let Bs=Qn.ast;if(Bs&&Bs.type==="select"&&(!(Qn.parentheses_symbol||Qn.parentheses||Qn.ast.parentheses||Qn.ast.parentheses_symbol)||Bs.columns.length!==1||Bs.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!As||As.length===0)return Qn;let Zs=As.length,ae=As[Zs-1][3];for(let be=Zs-1;be>=0;be--){let he=be===0?Qn:As[be-1][3];ae=_d(As[be][1],he,ae)}return ae})(Br,wt),zr=Br)}else s=zr,zr=r;return zr})())!==r&&kr()!==r?((D=eu())===r&&(D=null),D===r?(s=v,v=r):(er=v,V=T,(Ur=D)&&(V.array_index=Ur),v=T=V)):(s=v,v=r),v}function Bu(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="at"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(Rb)),T!==r&&kr()!==r&&St()!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="zone"?(D=t.substr(s,4),s+=4):(D=r,ir===0&&ut(Ff)),D!==r&&kr()!==r?((V=en())===r&&(V=R()),V===r?(s=v,v=r):(er=v,v=T=[{type:"origin",value:"at time zone"},V])):(s=v,v=r)):(s=v,v=r),v}function oa(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es;if(v=s,(T=Xv())!==r&&(er=v,T=(function(Qn){return{expr:Qn,as:null}})(T)),(v=T)===r){if(v=s,(T=R())!==r)if((D=kr())!==r)if((V=G())!==r)if((Ur=kr())!==r){if(zr=[],(Br=Bu())!==r)for(;Br!==r;)zr.push(Br),Br=Bu();else zr=r;zr!==r&&(Br=kr())!==r?((wt=cu())===r&&(wt=null),wt===r?(s=v,v=r):(er=v,v=T=(function(Qn,As,Bs,Zs){return As.target[As.target.length-1].suffix=Bs.flat(),{...As,as:Zs,type:"cast",expr:Qn,suffix:Bs.flat()}})(T,V,zr,wt))):(s=v,v=r)}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;if(v===r){if(v=s,(T=B())===r&&(T=Jo()),T!==r)if((D=kr())!==r)if((V=G())!==r)if((Ur=kr())!==r){for(zr=[],Br=s,(wt=kr())===r?(s=Br,Br=r):((qt=$l())===r&&(qt=G0()),qt!==r&&(un=kr())!==r&&(Sn=Jo())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r));Br!==r;)zr.push(Br),Br=s,(wt=kr())===r?(s=Br,Br=r):((qt=$l())===r&&(qt=G0()),qt!==r&&(un=kr())!==r&&(Sn=Jo())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r));if(zr!==r)if((Br=kr())!==r){for(wt=[],qt=Bu();qt!==r;)wt.push(qt),qt=Bu();wt!==r&&(qt=kr())!==r?((un=cu())===r&&(un=null),un===r?(s=v,v=r):(er=v,v=T=(function(Qn,As,Bs,Zs,ae){return Qn.type==="column_ref"&&Zs.length&&(Qn.column.options={type:"expr_list",value:Zs.flat(),separator:" "}),{...As,as:ae,type:"cast",expr:Qn,tail:Bs&&Bs[0]&&{operator:Bs[0][1],expr:Bs[0][3]}}})(T,V,zr,wt,un))):(s=v,v=r)}else s=v,v=r;else s=v,v=r}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;v===r&&(v=s,(T=vt())!==r&&(D=kr())!==r&&(V=Ga())!==r?(Ur=s,(zr=Er())!==r&&(Br=kr())!==r&&(wt=Ga())!==r?Ur=zr=[zr,Br,wt]:(s=Ur,Ur=r),Ur===r&&(Ur=null),Ur!==r&&(zr=kr())!==r&&(Br=id())!==r?(er=v,v=T=(function(Qn,As){let Bs=As&&As[0],Zs;return Bs&&(Zs=Qn,Qn=Bs),Ja.add(`select::${Qn?Qn.value:null}::(.*)`),{expr:{type:"column_ref",table:Qn,schema:Zs,column:"*"},as:null}})(T,Ur)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,T=s,(D=vt())!==r&&(V=kr())!==r&&(Ur=Ga())!==r?T=D=[D,V,Ur]:(s=T,T=r),T===r&&(T=null),T!==r&&(D=kr())!==r&&(V=id())!==r?(er=v,v=T=(function(Qn){let As=Qn&&Qn[0]||null;return Ja.add(`select::${As?As.value:null}::(.*)`),{expr:{type:"column_ref",table:As,column:"*"},as:null}})(T)):(s=v,v=r),v===r&&(v=s,(T=Jo())!==r&&(D=kr())!==r?((V=cu())===r&&(V=null),V===r?(s=v,v=r):(er=v,es=V,(Fn=T).type!=="double_quote_string"&&Fn.type!=="single_quote_string"||Ja.add("select::null::"+Fn.value),v=T={type:"expr",expr:Fn,as:es})):(s=v,v=r))))}}return v}function Nu(){var v,T,D;return v=s,(T=rr())===r&&(T=null),T!==r&&kr()!==r&&(D=$t())!==r?(er=v,v=T=D):(s=v,v=r),v}function cu(){var v,T,D;return v=s,(T=rr())!==r&&kr()!==r&&(D=$t())!==r?(er=v,v=T=D):(s=v,v=r),v===r&&(v=s,(T=rr())===r&&(T=null),T!==r&&kr()!==r&&(D=$t())!==r?(er=v,v=T=D):(s=v,v=r)),v}function le(){var v,T,D;return v=s,L()!==r&&kr()!==r&&(T=(function(){var V,Ur,zr,Br,wt,qt,un,Sn;if(V=s,(Ur=Ad())!==r){for(zr=[],Br=s,(wt=kr())!==r&&(qt=du())!==r&&(un=kr())!==r&&(Sn=Ad())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r);Br!==r;)zr.push(Br),Br=s,(wt=kr())!==r&&(qt=du())!==r&&(un=kr())!==r&&(Sn=Ad())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r);zr===r?(s=V,V=r):(er=V,Ur=Vc(Ur,zr),V=Ur)}else s=V,V=r;return V})())!==r?(er=v,v={keyword:"var",type:"into",expr:T}):(s=v,v=r),v===r&&(v=s,L()!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="outfile"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(kp)),T===r&&(t.substr(s,8).toLowerCase()==="dumpfile"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Mp))),T===r&&(T=null),T!==r&&kr()!==r?((D=Pt())===r&&(D=it()),D===r?(s=v,v=r):(er=v,v={keyword:T,type:"into",expr:D})):(s=v,v=r)):(s=v,v=r)),v}function vu(){var v,T;return v=s,M()!==r&&kr()!==r&&(T=vc())!==r?(er=v,v=T):(s=v,v=r),v}function Ee(){var v,T,D;return v=s,(T=hi())!==r&&kr()!==r&&Me()!==r&&kr()!==r&&(D=hi())!==r?(er=v,v=T=[T,D]):(s=v,v=r),v}function yi(){var v,T;return v=s,ls()!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="btree"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(rp)),T===r&&(t.substr(s,4).toLowerCase()==="hash"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(yp)),T===r&&(t.substr(s,4).toLowerCase()==="gist"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(hp)),T===r&&(t.substr(s,3).toLowerCase()==="gin"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(Ep))))),T===r?(s=v,v=r):(er=v,v={keyword:"using",type:T.toLowerCase()})):(s=v,v=r),v}function Rc(){var v,T,D,V,Ur,zr;if(v=s,(T=Wa())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=Wa())!==r?V=Ur=[Ur,zr]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=Wa())!==r?V=Ur=[Ur,zr]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=(function(Br,wt){let qt=[Br];for(let un=0;un<wt.length;un++)qt.push(wt[un][1]);return qt})(T,D))}else s=v,v=r;return v}function Wa(){var v,T,D,V,Ur,zr;return v=s,(T=(function(){var Br=s,wt,qt,un;return t.substr(s,14).toLowerCase()==="key_block_size"?(wt=t.substr(s,14),s+=14):(wt=r,ir===0&&ut(Ab)),wt===r?(s=Br,Br=r):(qt=s,ir++,un=Gs(),ir--,un===r?qt=void 0:(s=qt,qt=r),qt===r?(s=Br,Br=r):(er=Br,Br=wt="KEY_BLOCK_SIZE")),Br})())!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r&&(V=as())!==r?(er=v,Ur=D,zr=V,v=T={type:T.toLowerCase(),symbol:Ur,expr:zr}):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=$e())!==r&&kr()!==r&&(D=ze())!==r&&kr()!==r?((V=as())===r&&(V=it()),V===r?(s=v,v=r):(er=v,v=T=(function(Br,wt,qt){return{type:Br.toLowerCase(),symbol:wt,expr:typeof qt=="string"&&{type:"origin",value:qt}||qt}})(T,D,V))):(s=v,v=r),v===r&&(v=yi())===r&&(v=s,t.substr(s,4).toLowerCase()==="with"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Nb)),T!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="parser"?(D=t.substr(s,6),s+=6):(D=r,ir===0&&ut(Qf)),D!==r&&kr()!==r&&(V=$e())!==r?(er=v,v=T={type:"with parser",expr:V}):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,7).toLowerCase()==="visible"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(_b)),T===r&&(t.substr(s,9).toLowerCase()==="invisible"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(Ap))),T!==r&&(er=v,T=(function(Br){return{type:Br.toLowerCase(),expr:Br.toLowerCase()}})(T)),(v=T)===r&&(v=rL())))),v}function vc(){var v,T,D,V;if(v=s,(T=cb())!==r){for(D=[],V=Ev();V!==r;)D.push(V),V=Ev();D===r?(s=v,v=r):(er=v,v=T=Dp(T,D))}else s=v,v=r;return v}function Ev(){var v,T,D;return v=s,kr()!==r&&(T=du())!==r&&kr()!==r&&(D=cb())!==r?(er=v,v=D):(s=v,v=r),v===r&&(v=s,kr()!==r&&(T=(function(){var V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn;if(V=s,(Ur=ad())!==r)if(kr()!==r)if((zr=cb())!==r)if(kr()!==r)if((Br=ls())!==r)if(kr()!==r)if(Ho()!==r)if(kr()!==r)if((wt=Er())!==r){for(qt=[],un=s,(Sn=kr())!==r&&(Fn=du())!==r&&(es=kr())!==r&&(Qn=Er())!==r?un=Sn=[Sn,Fn,es,Qn]:(s=un,un=r);un!==r;)qt.push(un),un=s,(Sn=kr())!==r&&(Fn=du())!==r&&(es=kr())!==r&&(Qn=Er())!==r?un=Sn=[Sn,Fn,es,Qn]:(s=un,un=r);qt!==r&&(un=kr())!==r&&(Sn=Lu())!==r?(er=V,As=Ur,Zs=wt,ae=qt,(Bs=zr).join=As,Bs.using=Vc(Zs,ae),V=Ur=Bs):(s=V,V=r)}else s=V,V=r;else s=V,V=r;else s=V,V=r;else s=V,V=r;else s=V,V=r;else s=V,V=r;else s=V,V=r;else s=V,V=r;else s=V,V=r;var As,Bs,Zs,ae;return V===r&&(V=s,(Ur=ad())!==r&&kr()!==r&&(zr=cb())!==r&&kr()!==r?((Br=A0())===r&&(Br=null),Br===r?(s=V,V=r):(er=V,Ur=(function(be,he,re){return he.join=be,he.on=re,he})(Ur,zr,Br),V=Ur)):(s=V,V=r),V===r&&(V=s,(Ur=ad())===r&&(Ur=Ar()),Ur!==r&&kr()!==r&&(zr=Ho())!==r&&kr()!==r?((Br=qr())===r&&(Br=vc()),Br!==r&&kr()!==r&&Lu()!==r&&kr()!==r?((wt=cu())===r&&(wt=null),wt!==r&&(qt=kr())!==r?((un=A0())===r&&(un=null),un===r?(s=V,V=r):(er=V,Ur=(function(be,he,re,_e){return Array.isArray(he)&&(he={type:"tables",expr:he}),he.parentheses=!0,{expr:he,as:re,join:be,on:_e}})(Ur,Br,wt,un),V=Ur)):(s=V,V=r)):(s=V,V=r)):(s=V,V=r))),V})())!==r?(er=v,v=T):(s=v,v=r)),v}function cb(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn;return v=s,(T=(function(){var es;return t.substr(s,4).toLowerCase()==="dual"?(es=t.substr(s,4),s+=4):(es=r,ir===0&&ut(e)),es})())!==r&&(er=v,T={type:"dual"}),(v=T)===r&&(v=s,(T=sf())!==r&&kr()!==r?((D=Nu())===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T={expr:T,as:D})):(s=v,v=r),v===r&&(v=s,t.substr(s,7).toLowerCase()==="lateral"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut($v)),T===r&&(T=null),T!==r&&kr()!==r&&(D=Ho())!==r&&kr()!==r?((V=qr())===r&&(V=sf()),V!==r&&kr()!==r&&(Ur=Lu())!==r&&(zr=kr())!==r?((Br=Nu())===r&&(Br=null),Br===r?(s=v,v=r):(er=v,v=T=(function(es,Qn,As){return Qn.parentheses=!0,{prefix:es,expr:Qn,as:As}})(T,V,Br))):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,7).toLowerCase()==="lateral"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut($v)),T===r&&(T=null),T!==r&&kr()!==r&&(D=Ho())!==r&&kr()!==r&&(V=vc())!==r&&kr()!==r&&(Ur=Lu())!==r&&(zr=kr())!==r?((Br=Nu())===r&&(Br=null),Br===r?(s=v,v=r):(er=v,v=T=(function(es,Qn,As){return{prefix:es,expr:Qn={type:"tables",expr:Qn,parentheses:!0},as:As}})(T,V,Br))):(s=v,v=r),v===r&&(v=s,t.substr(s,7).toLowerCase()==="lateral"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut($v)),T===r&&(T=null),T!==r&&kr()!==r&&(D=Vu())!==r&&kr()!==r?((V=cu())===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(es,Qn,As){return{prefix:es,type:"expr",expr:Qn,as:As}})(T,D,V))):(s=v,v=r),v===r&&(v=s,(T=hi())!==r&&kr()!==r?(t.substr(s,11).toLowerCase()==="tablesample"?(D=t.substr(s,11),s+=11):(D=r,ir===0&&ut($p)),D!==r&&kr()!==r&&(V=Vu())!==r&&kr()!==r?(Ur=s,t.substr(s,10).toLowerCase()==="repeatable"?(zr=t.substr(s,10),s+=10):(zr=r,ir===0&&ut(bp)),zr!==r&&(Br=kr())!==r&&(wt=Ho())!==r&&(qt=kr())!==r&&(un=as())!==r&&(Sn=kr())!==r&&(Fn=Lu())!==r?Ur=zr=[zr,Br,wt,qt,un,Sn,Fn]:(s=Ur,Ur=r),Ur===r&&(Ur=null),Ur!==r&&(zr=kr())!==r?((Br=cu())===r&&(Br=null),Br===r?(s=v,v=r):(er=v,v=T=(function(es,Qn,As,Bs){return{...es,as:Bs,tablesample:{expr:Qn,repeatable:As&&As[4]}}})(T,V,Ur,Br))):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=hi())!==r&&kr()!==r?((D=cu())===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(es,Qn){return es.type==="var"?(es.as=Qn,es):{...es,as:Qn}})(T,D))):(s=v,v=r))))))),v}function ad(){var v,T,D,V;return v=s,(T=(function(){var Ur=s,zr,Br,wt;return t.substr(s,4).toLowerCase()==="left"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(Tf)),zr===r?(s=Ur,Ur=r):(Br=s,ir++,wt=Gs(),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=Ur,Ur=r):Ur=zr=[zr,Br]),Ur})())!==r&&(D=kr())!==r?((V=os())===r&&(V=null),V!==r&&kr()!==r&&fr()!==r?(er=v,v=T="LEFT JOIN"):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=(function(){var Ur=s,zr,Br,wt;return t.substr(s,5).toLowerCase()==="right"?(zr=t.substr(s,5),s+=5):(zr=r,ir===0&&ut(If)),zr===r?(s=Ur,Ur=r):(Br=s,ir++,wt=Gs(),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=Ur,Ur=r):Ur=zr=[zr,Br]),Ur})())!==r&&(D=kr())!==r?((V=os())===r&&(V=null),V!==r&&kr()!==r&&fr()!==r?(er=v,v=T="RIGHT JOIN"):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=(function(){var Ur=s,zr,Br,wt;return t.substr(s,4).toLowerCase()==="full"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(Tl)),zr===r?(s=Ur,Ur=r):(Br=s,ir++,wt=Gs(),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=Ur,Ur=r):Ur=zr=[zr,Br]),Ur})())!==r&&(D=kr())!==r?((V=os())===r&&(V=null),V!==r&&kr()!==r&&fr()!==r?(er=v,v=T="FULL JOIN"):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,5).toLowerCase()==="cross"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(Pp)),T!==r&&(D=kr())!==r&&(V=fr())!==r?(er=v,v=T="CROSS JOIN"):(s=v,v=r),v===r&&(v=s,T=s,(D=(function(){var Ur=s,zr,Br,wt;return t.substr(s,5).toLowerCase()==="inner"?(zr=t.substr(s,5),s+=5):(zr=r,ir===0&&ut(Ci)),zr===r?(s=Ur,Ur=r):(Br=s,ir++,wt=Gs(),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=Ur,Ur=r):Ur=zr=[zr,Br]),Ur})())!==r&&(V=kr())!==r?T=D=[D,V]:(s=T,T=r),T===r&&(T=null),T!==r&&(D=fr())!==r?(er=v,v=T="INNER JOIN"):(s=v,v=r))))),v}function hi(){var v,T,D,V,Ur,zr,Br,wt,qt;return v=s,(T=it())===r?(s=v,v=r):(D=s,(V=kr())!==r&&(Ur=Ga())!==r&&(zr=kr())!==r?((Br=it())===r&&(Br=id()),Br===r?(s=D,D=r):D=V=[V,Ur,zr,Br]):(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(V=s,(Ur=kr())!==r&&(zr=Ga())!==r&&(Br=kr())!==r?((wt=it())===r&&(wt=id()),wt===r?(s=V,V=r):V=Ur=[Ur,zr,Br,wt]):(s=V,V=r),V===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(un,Sn,Fn){let es={db:null,table:un};return Fn===null?(Sn!==null&&(es.db=un,es.table=Sn[3]),es):(es.db=un,es.schema=Sn[3],es.table=Fn[3],es)})(T,D,V)))),v===r&&(v=s,(T=Ad())!==r&&(er=v,(qt=T).db=null,qt.table=qt.name,T=qt),v=T),v}function ap(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Uu())!==r){for(D=[],V=s,(Ur=kr())===r?(s=V,V=r):((zr=ts())===r&&(zr=d()),zr!==r&&(Br=kr())!==r&&(wt=Uu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r));V!==r;)D.push(V),V=s,(Ur=kr())===r?(s=V,V=r):((zr=ts())===r&&(zr=d()),zr!==r&&(Br=kr())!==r&&(wt=Uu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r));D===r?(s=v,v=r):(er=v,v=T=(function(qt,un){let Sn=un.length,Fn=qt;for(let es=0;es<Sn;++es)Fn=_d(un[es][1],Fn,un[es][3]);return Fn})(T,D))}else s=v,v=r;return v}function A0(){var v,T;return v=s,On()!==r&&kr()!==r&&(T=Sc())!==r?(er=v,v=T):(s=v,v=r),v}function fl(){var v,T;return v=s,(function(){var D=s,V,Ur,zr;return t.substr(s,5).toLowerCase()==="where"?(V=t.substr(s,5),s+=5):(V=r,ir===0&&ut($0)),V===r?(s=D,D=r):(Ur=s,ir++,zr=Gs(),ir--,zr===r?Ur=void 0:(s=Ur,Ur=r),Ur===r?(s=D,D=r):D=V=[V,Ur]),D})()!==r&&kr()!==r&&(T=Sc())!==r?(er=v,v=T):(s=v,v=r),v}function Av(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=R())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=R())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=R())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function bl(){var v,T,D;return v=s,(T=$e())!==r&&kr()!==r&&rr()!==r&&kr()!==r&&(D=gu())!==r?(er=v,v=T={name:T,as_window_specification:D}):(s=v,v=r),v}function gu(){var v,T;return(v=$e())===r&&(v=s,Ho()!==r&&kr()!==r?((T=(function(){var D=s,V,Ur,zr;return(V=rc())===r&&(V=null),V!==r&&kr()!==r?((Ur=Ei())===r&&(Ur=null),Ur!==r&&kr()!==r?((zr=(function(){var Br=s,wt,qt,un,Sn;return(wt=at())!==r&&kr()!==r?((qt=Xi())===r&&(qt=Du()),qt===r?(s=Br,Br=r):(er=Br,Br=wt={type:"rows",expr:qt})):(s=Br,Br=r),Br===r&&(Br=s,(wt=at())!==r&&kr()!==r&&(qt=tt())!==r&&kr()!==r&&(un=Du())!==r&&kr()!==r&&ts()!==r&&kr()!==r&&(Sn=Xi())!==r?(er=Br,wt=_d(qt,{type:"origin",value:"rows"},{type:"expr_list",value:[un,Sn]}),Br=wt):(s=Br,Br=r)),Br})())===r&&(zr=null),zr===r?(s=D,D=r):(er=D,D=V={name:null,partitionby:V,orderby:Ur,window_frame_clause:zr})):(s=D,D=r)):(s=D,D=r),D})())===r&&(T=null),T!==r&&kr()!==r&&Lu()!==r?(er=v,v={window_specification:T||{},parentheses:!0}):(s=v,v=r)):(s=v,v=r)),v}function Xi(){var v,T,D,V;return v=s,(T=vl())!==r&&kr()!==r?(t.substr(s,9).toLowerCase()==="following"?(D=t.substr(s,9),s+=9):(D=r,ir===0&&ut(Pv)),D===r?(s=v,v=r):(er=v,(V=T).value+=" FOLLOWING",v=T=V)):(s=v,v=r),v===r&&(v=Hu()),v}function Du(){var v,T,D,V,Ur;return v=s,(T=vl())!==r&&kr()!==r?(t.substr(s,9).toLowerCase()==="preceding"?(D=t.substr(s,9),s+=9):(D=r,ir===0&&ut(Gp)),D===r&&(t.substr(s,9).toLowerCase()==="following"?(D=t.substr(s,9),s+=9):(D=r,ir===0&&ut(Pv))),D===r?(s=v,v=r):(er=v,Ur=D,(V=T).value+=" "+Ur.toUpperCase(),v=T=V)):(s=v,v=r),v===r&&(v=Hu()),v}function Hu(){var v,T,D;return v=s,t.substr(s,7).toLowerCase()==="current"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(ce)),T!==r&&kr()!==r?(t.substr(s,3).toLowerCase()==="row"?(D=t.substr(s,3),s+=3):(D=r,ir===0&&ut(pf)),D===r?(s=v,v=r):(er=v,v=T={type:"origin",value:"current row"})):(s=v,v=r),v}function vl(){var v,T;return v=s,t.substr(s,9).toLowerCase()==="unbounded"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(Fp)),T!==r&&(er=v,T={type:"origin",value:T.toUpperCase()}),(v=T)===r&&(v=as()),v}function rc(){var v,T,D;return v=s,pi()!==r&&kr()!==r&&E()!==r&&kr()!==r?((T=Av())===r&&(T=Vu()),T===r?(s=v,v=r):(er=v,D=T,v=Array.isArray(D)?D.map(V=>({type:"expr",expr:V})):[{type:"expr",expr:D}])):(s=v,v=r),v}function Ei(){var v,T;return v=s,U()!==r&&kr()!==r&&E()!==r&&kr()!==r&&(T=(function(){var D,V,Ur,zr,Br,wt,qt,un;if(D=s,(V=rv())!==r){for(Ur=[],zr=s,(Br=kr())!==r&&(wt=du())!==r&&(qt=kr())!==r&&(un=rv())!==r?zr=Br=[Br,wt,qt,un]:(s=zr,zr=r);zr!==r;)Ur.push(zr),zr=s,(Br=kr())!==r&&(wt=du())!==r&&(qt=kr())!==r&&(un=rv())!==r?zr=Br=[Br,wt,qt,un]:(s=zr,zr=r);Ur===r?(s=D,D=r):(er=D,V=Vc(V,Ur),D=V)}else s=D,D=r;return D})())!==r?(er=v,v=T):(s=v,v=r),v}function rv(){var v,T,D,V,Ur,zr,Br;return v=s,(T=Uu())!==r&&kr()!==r?((D=sr())===r&&(D=Z()),D===r&&(D=null),D!==r&&kr()!==r?(V=s,t.substr(s,5).toLowerCase()==="nulls"?(Ur=t.substr(s,5),s+=5):(Ur=r,ir===0&&ut(Rv)),Ur!==r&&(zr=kr())!==r?(t.substr(s,5).toLowerCase()==="first"?(Br=t.substr(s,5),s+=5):(Br=r,ir===0&&ut(nv)),Br===r&&(t.substr(s,4).toLowerCase()==="last"?(Br=t.substr(s,4),s+=4):(Br=r,ir===0&&ut(sv))),Br===r&&(Br=null),Br===r?(s=V,V=r):V=Ur=[Ur,zr,Br]):(s=V,V=r),V===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(wt,qt,un){let Sn={expr:wt,type:qt};return Sn.nulls=un&&[un[0],un[2]].filter(Fn=>Fn).join(" "),Sn})(T,D,V))):(s=v,v=r)):(s=v,v=r),v}function Tt(){var v;return(v=as())===r&&(v=Ad())===r&&(v=wu()),v}function Rf(){var v,T,D,V,Ur,zr,Br;return v=s,T=s,(D=(function(){var wt=s,qt,un,Sn;return t.substr(s,5).toLowerCase()==="limit"?(qt=t.substr(s,5),s+=5):(qt=r,ir===0&&ut(cc)),qt===r?(s=wt,wt=r):(un=s,ir++,Sn=Gs(),ir--,Sn===r?un=void 0:(s=un,un=r),un===r?(s=wt,wt=r):wt=qt=[qt,un]),wt})())!==r&&(V=kr())!==r?((Ur=Tt())===r&&(Ur=xr())===r&&(Ur=Je()),Ur===r?(s=T,T=r):T=D=[D,V,Ur]):(s=T,T=r),T===r&&(T=null),T!==r&&(D=kr())!==r?(V=s,(Ur=(function(){var wt=s,qt,un,Sn;return t.substr(s,6).toLowerCase()==="offset"?(qt=t.substr(s,6),s+=6):(qt=r,ir===0&&ut(h0)),qt===r?(s=wt,wt=r):(un=s,ir++,Sn=Gs(),ir--,Sn===r?un=void 0:(s=un,un=r),un===r?(s=wt,wt=r):(er=wt,wt=qt="OFFSET")),wt})())!==r&&(zr=kr())!==r&&(Br=Tt())!==r?V=Ur=[Ur,zr,Br]:(s=V,V=r),V===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(wt,qt){let un=[];return wt&&un.push(typeof wt[2]=="string"?{type:"origin",value:"all"}:wt[2]),qt&&un.push(qt[2]),{seperator:qt&&qt[0]&&qt[0].toLowerCase()||"",value:un}})(T,V))):(s=v,v=r),v}function ga(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=_i())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=_i())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=_i())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function _i(){var v,T,D,V,Ur;return v=s,(T=va())!==r&&kr()!==r?(t.charCodeAt(s)===61?(D="=",s++):(D=r,ir===0&&ut(te)),D!==r&&kr()!==r&&(V=Uu())!==r?(er=v,v=T=(function(zr,Br){return{...zr,value:Br}})(T,V)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=va())!==r&&kr()!==r?(t.charCodeAt(s)===61?(D="=",s++):(D=r,ir===0&&ut(te)),D!==r&&kr()!==r&&(V=Es())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Ur=R())!==r&&kr()!==r&&Lu()!==r?(er=v,v=T={...c,value:Ur,keyword:"values"}):(s=v,v=r)):(s=v,v=r)),v}function Nc(){var v,T,D;return v=s,(T=(function(){var V=s,Ur,zr,Br;return t.substr(s,9).toLowerCase()==="returning"?(Ur=t.substr(s,9),s+=9):(Ur=r,ir===0&&ut(Z0)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="RETURNING")),V})())!==r&&kr()!==r?((D=Ks())===r&&(D=hu()),D===r?(s=v,v=r):(er=v,v=T=(function(V,Ur){return{type:V&&V.toLowerCase()||"returning",columns:Ur==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null}]||Ur}})(T,D))):(s=v,v=r),v}function Ai(){var v,T;return(v=sf())===r&&(v=s,(T=qr())!==r&&(er=v,T=T.ast),v=T),v}function tc(){var v,T,D,V,Ur,zr,Br,wt,qt;if(v=s,pi()!==r)if(kr()!==r)if((T=Ho())!==r)if(kr()!==r)if((D=$e())!==r){for(V=[],Ur=s,(zr=kr())!==r&&(Br=du())!==r&&(wt=kr())!==r&&(qt=$e())!==r?Ur=zr=[zr,Br,wt,qt]:(s=Ur,Ur=r);Ur!==r;)V.push(Ur),Ur=s,(zr=kr())!==r&&(Br=du())!==r&&(wt=kr())!==r&&(qt=$e())!==r?Ur=zr=[zr,Br,wt,qt]:(s=Ur,Ur=r);V!==r&&(Ur=kr())!==r&&(zr=Lu())!==r?(er=v,v=Vc(D,V)):(s=v,v=r)}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;return v===r&&(v=s,pi()!==r&&kr()!==r&&(T=mv())!==r?(er=v,v=T):(s=v,v=r)),v}function Yf(){var v,T;return v=s,(T=Fu())!==r&&(er=v,T="insert"),(v=T)===r&&(v=s,(T=F0())!==r&&(er=v,T="replace"),v=T),v}function sf(){var v,T;return v=s,Es()!==r&&kr()!==r&&(T=(function(){var D,V,Ur,zr,Br,wt,qt,un;if(D=s,(V=mv())!==r){for(Ur=[],zr=s,(Br=kr())!==r&&(wt=du())!==r&&(qt=kr())!==r&&(un=mv())!==r?zr=Br=[Br,wt,qt,un]:(s=zr,zr=r);zr!==r;)Ur.push(zr),zr=s,(Br=kr())!==r&&(wt=du())!==r&&(qt=kr())!==r&&(un=mv())!==r?zr=Br=[Br,wt,qt,un]:(s=zr,zr=r);Ur===r?(s=D,D=r):(er=D,V=Vc(V,Ur),D=V)}else s=D,D=r;return D})())!==r?(er=v,v={type:"values",values:T}):(s=v,v=r),v}function mv(){var v,T;return v=s,Ho()!==r&&kr()!==r&&(T=pc())!==r&&kr()!==r&&Lu()!==r?(er=v,v=T):(s=v,v=r),v}function pc(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Uu())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Uu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Uu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=(function(qt,un){let Sn={type:"expr_list"};return Sn.value=Vc(qt,un),Sn})(T,D))}else s=v,v=r;return v}function Si(){var v,T,D;return v=s,Nn()!==r&&kr()!==r&&(T=Uu())!==r&&kr()!==r&&(D=tL())!==r?(er=v,v={type:"interval",expr:T,unit:D.toLowerCase()}):(s=v,v=r),v===r&&(v=s,Nn()!==r&&kr()!==r&&(T=Pt())!==r?(er=v,v=(function(V){return{type:"interval",expr:V,unit:""}})(T)):(s=v,v=r)),v}function _c(){var v,T,D,V,Ur,zr;if(v=s,(T=Tv())!==r)if(kr()!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=Tv())!==r?V=Ur=[Ur,zr]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=Tv())!==r?V=Ur=[Ur,zr]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D,1))}else s=v,v=r;else s=v,v=r;return v}function Tv(){var v,T,D;return v=s,lr()!==r&&kr()!==r&&(T=ap())!==r&&kr()!==r&&(function(){var V=s,Ur,zr,Br;return t.substr(s,4).toLowerCase()==="then"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut($f)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):V=Ur=[Ur,zr]),V})()!==r&&kr()!==r&&(D=Jo())!==r?(er=v,v={type:"when",cond:T,result:D}):(s=v,v=r),v}function ef(){var v,T;return v=s,wr()!==r&&kr()!==r&&(T=Uu())!==r?(er=v,v={type:"else",result:T}):(s=v,v=r),v}function ip(){var v;return(v=of())===r&&(v=(function(){var T,D,V,Ur,zr,Br;if(T=s,(D=$l())!==r){if(V=[],Ur=s,(zr=kr())!==r&&(Br=Nf())!==r?Ur=zr=[zr,Br]:(s=Ur,Ur=r),Ur!==r)for(;Ur!==r;)V.push(Ur),Ur=s,(zr=kr())!==r&&(Br=Nf())!==r?Ur=zr=[zr,Br]:(s=Ur,Ur=r);else V=r;V===r?(s=T,T=r):(er=T,D=jd(D,V[0][1]),T=D)}else s=T,T=r;return T})()),v}function Uu(){var v;return(v=ip())===r&&(v=qr()),v}function Sc(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Uu())!==r){for(D=[],V=s,(Ur=kr())===r?(s=V,V=r):((zr=ts())===r&&(zr=d())===r&&(zr=du()),zr!==r&&(Br=kr())!==r&&(wt=Uu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r));V!==r;)D.push(V),V=s,(Ur=kr())===r?(s=V,V=r):((zr=ts())===r&&(zr=d())===r&&(zr=du()),zr!==r&&(Br=kr())!==r&&(wt=Uu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r));D===r?(s=v,v=r):(er=v,v=T=(function(qt,un){let Sn=un.length,Fn=qt,es="";for(let Qn=0;Qn<Sn;++Qn)un[Qn][1]===","?(es=",",Array.isArray(Fn)||(Fn=[Fn]),Fn.push(un[Qn][3])):Fn=_d(un[Qn][1],Fn,un[Qn][3]);if(es===","){let Qn={type:"expr_list"};return Qn.value=Fn,Qn}return Fn})(T,D))}else s=v,v=r;return v}function of(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Xc())!==r){for(D=[],V=s,(Ur=Od())!==r&&(zr=d())!==r&&(Br=kr())!==r&&(wt=Xc())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=Od())!==r&&(zr=d())!==r&&(Br=kr())!==r&&(wt=Xc())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Gv(T,D))}else s=v,v=r;return v}function Xc(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=qa())!==r){for(D=[],V=s,(Ur=Od())!==r&&(zr=ts())!==r&&(Br=kr())!==r&&(wt=qa())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=Od())!==r&&(zr=ts())!==r&&(Br=kr())!==r&&(wt=qa())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Gv(T,D))}else s=v,v=r;return v}function qa(){var v,T,D,V,Ur;return(v=qo())===r&&(v=(function(){var zr=s,Br,wt;(Br=(function(){var Sn=s,Fn=s,es,Qn,As;(es=jn())!==r&&(Qn=kr())!==r&&(As=Tn())!==r?Fn=es=[es,Qn,As]:(s=Fn,Fn=r),Fn!==r&&(er=Sn,Fn=(Bs=Fn)[0]+" "+Bs[2]);var Bs;return(Sn=Fn)===r&&(Sn=Tn()),Sn})())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(wt=qr())!==r&&kr()!==r&&Lu()!==r?(er=zr,qt=Br,(un=wt).parentheses=!0,Br=jd(qt,un),zr=Br):(s=zr,zr=r);var qt,un;return zr})())===r&&(v=s,(T=jn())===r&&(T=s,t.charCodeAt(s)===33?(D="!",s++):(D=r,ir===0&&ut(tp)),D===r?(s=T,T=r):(V=s,ir++,t.charCodeAt(s)===61?(Ur="=",s++):(Ur=r,ir===0&&ut(te)),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):T=D=[D,V])),T!==r&&(D=kr())!==r&&(V=qa())!==r?(er=v,v=T=jd("NOT",V)):(s=v,v=r)),v}function qo(){var v,T,D,V,Ur;return v=s,(T=Xo())!==r&&kr()!==r?((D=(function(){var zr;return(zr=(function(){var Br=s,wt=[],qt=s,un,Sn,Fn,es;if((un=kr())!==r&&(Sn=Oc())!==r&&(Fn=kr())!==r&&(es=Xo())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r),qt!==r)for(;qt!==r;)wt.push(qt),qt=s,(un=kr())!==r&&(Sn=Oc())!==r&&(Fn=kr())!==r&&(es=Xo())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r);else wt=r;return wt!==r&&(er=Br,wt={type:"arithmetic",tail:wt}),Br=wt})())===r&&(zr=(function(){var Br=s,wt,qt,un;return(wt=Yo())!==r&&kr()!==r&&(qt=Ho())!==r&&kr()!==r&&(un=pc())!==r&&kr()!==r&&Lu()!==r?(er=Br,Br=wt={op:wt,right:un}):(s=Br,Br=r),Br===r&&(Br=s,(wt=Yo())!==r&&kr()!==r?((qt=Ad())===r&&(qt=Pt())===r&&(qt=Vu()),qt===r?(s=Br,Br=r):(er=Br,wt=(function(Sn,Fn){return{op:Sn,right:Fn}})(wt,qt),Br=wt)):(s=Br,Br=r)),Br})())===r&&(zr=(function(){var Br=s,wt,qt,un;return(wt=(function(){var Sn=s,Fn=s,es,Qn,As;(es=jn())!==r&&(Qn=kr())!==r&&(As=tt())!==r?Fn=es=[es,Qn,As]:(s=Fn,Fn=r),Fn!==r&&(er=Sn,Fn=(Bs=Fn)[0]+" "+Bs[2]);var Bs;return(Sn=Fn)===r&&(Sn=tt()),Sn})())!==r&&kr()!==r&&(qt=Xo())!==r&&kr()!==r&&ts()!==r&&kr()!==r&&(un=Xo())!==r?(er=Br,Br=wt={op:wt,right:{type:"expr_list",value:[qt,un]}}):(s=Br,Br=r),Br})())===r&&(zr=(function(){var Br=s,wt,qt,un,Sn,Fn,es,Qn,As;return(wt=Xt())!==r&&(qt=kr())!==r&&(un=Xo())!==r?(er=Br,Br=wt={op:"IS",right:un}):(s=Br,Br=r),Br===r&&(Br=s,(wt=Xt())!==r&&(qt=kr())!==r?(un=s,(Sn=Sr())!==r&&(Fn=kr())!==r&&(es=M())!==r&&(Qn=kr())!==r&&(As=hi())!==r?un=Sn=[Sn,Fn,es,Qn,As]:(s=un,un=r),un===r?(s=Br,Br=r):(er=Br,wt=(function(Bs){let{db:Zs,table:ae}=Bs.pop(),be=ae==="*"?"*":`"${ae}"`;return{op:"IS",right:{type:"default",value:"DISTINCT FROM "+(Zs?`"${Zs}".${be}`:be)}}})(un),Br=wt)):(s=Br,Br=r),Br===r&&(Br=s,wt=s,(qt=Xt())!==r&&(un=kr())!==r&&(Sn=jn())!==r?wt=qt=[qt,un,Sn]:(s=wt,wt=r),wt!==r&&(qt=kr())!==r&&(un=Xo())!==r?(er=Br,wt=(function(Bs){return{op:"IS NOT",right:Bs}})(un),Br=wt):(s=Br,Br=r))),Br})())===r&&(zr=(function(){var Br=s,wt,qt,un;(wt=(function(){var Qn=s,As=s,Bs,Zs,ae;(Bs=jn())!==r&&(Zs=kr())!==r?((ae=Vt())===r&&(ae=In()),ae===r?(s=As,As=r):As=Bs=[Bs,Zs,ae]):(s=As,As=r),As!==r&&(er=Qn,As=(be=As)[0]+" "+be[2]);var be;return(Qn=As)===r&&(Qn=Vt())===r&&(Qn=In())===r&&(Qn=s,t.substr(s,7).toLowerCase()==="similar"?(As=t.substr(s,7),s+=7):(As=r,ir===0&&ut(np)),As!==r&&(Bs=kr())!==r&&(Zs=Me())!==r?(er=Qn,Qn=As="SIMILAR TO"):(s=Qn,Qn=r),Qn===r&&(Qn=s,(As=jn())!==r&&(Bs=kr())!==r?(t.substr(s,7).toLowerCase()==="similar"?(Zs=t.substr(s,7),s+=7):(Zs=r,ir===0&&ut(np)),Zs!==r&&(ae=kr())!==r&&Me()!==r?(er=Qn,Qn=As="NOT SIMILAR TO"):(s=Qn,Qn=r)):(s=Qn,Qn=r))),Qn})())!==r&&kr()!==r?((qt=z())===r&&(qt=qo()),qt!==r&&kr()!==r?((un=(function(){var Qn=s,As,Bs;return t.substr(s,6).toLowerCase()==="escape"?(As=t.substr(s,6),s+=6):(As=r,ir===0&&ut(Qp)),As!==r&&kr()!==r&&(Bs=Pt())!==r?(er=Qn,As=(function(Zs,ae){return{type:"ESCAPE",value:ae}})(0,Bs),Qn=As):(s=Qn,Qn=r),Qn})())===r&&(un=null),un===r?(s=Br,Br=r):(er=Br,Sn=wt,Fn=qt,(es=un)&&(Fn.escape=es),Br=wt={op:Sn,right:Fn})):(s=Br,Br=r)):(s=Br,Br=r);var Sn,Fn,es;return Br})())===r&&(zr=(function(){var Br=s,wt,qt;return(wt=(function(){var un;return t.substr(s,3)==="!~*"?(un="!~*",s+=3):(un=r,ir===0&&ut(bv)),un===r&&(t.substr(s,2)==="~*"?(un="~*",s+=2):(un=r,ir===0&&ut(ql)),un===r&&(t.charCodeAt(s)===126?(un="~",s++):(un=r,ir===0&&ut(Ec)),un===r&&(t.substr(s,2)==="!~"?(un="!~",s+=2):(un=r,ir===0&&ut(Jp))))),un})())!==r&&kr()!==r?((qt=z())===r&&(qt=qo()),qt===r?(s=Br,Br=r):(er=Br,Br=wt={op:wt,right:qt})):(s=Br,Br=r),Br})()),zr})())===r&&(D=null),D===r?(s=v,v=r):(er=v,V=T,v=T=(Ur=D)===null?V:Ur.type==="arithmetic"?Sd(V,Ur.tail):_d(Ur.op,V,Ur.right))):(s=v,v=r),v===r&&(v=Pt())===r&&(v=R()),v}function Oc(){var v;return t.substr(s,2)===">="?(v=">=",s+=2):(v=r,ir===0&&ut(Fv)),v===r&&(t.charCodeAt(s)===62?(v=">",s++):(v=r,ir===0&&ut(yl)),v===r&&(t.substr(s,2)==="<="?(v="<=",s+=2):(v=r,ir===0&&ut(jc)),v===r&&(t.substr(s,2)==="<>"?(v="<>",s+=2):(v=r,ir===0&&ut(fv)),v===r&&(t.charCodeAt(s)===60?(v="<",s++):(v=r,ir===0&&ut(Sl)),v===r&&(t.charCodeAt(s)===61?(v="=",s++):(v=r,ir===0&&ut(te)),v===r&&(t.substr(s,2)==="!="?(v="!=",s+=2):(v=r,ir===0&&ut(Ol)))))))),v}function Yo(){var v,T,D,V,Ur,zr;return v=s,T=s,(D=jn())!==r&&(V=kr())!==r&&(Ur=Ct())!==r?T=D=[D,V,Ur]:(s=T,T=r),T!==r&&(er=v,T=(zr=T)[0]+" "+zr[2]),(v=T)===r&&(v=Ct()),v}function Xo(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=m0())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=$l())!==r&&(Br=kr())!==r&&(wt=m0())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=$l())!==r&&(Br=kr())!==r&&(wt=m0())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=(function(qt,un){if(un&&un.length&&qt.type==="column_ref"&&qt.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...Cd()}));return Sd(qt,un)})(T,D))}else s=v,v=r;return v}function $l(){var v;return t.charCodeAt(s)===43?(v="+",s++):(v=r,ir===0&&ut(sp)),v===r&&(t.charCodeAt(s)===45?(v="-",s++):(v=r,ir===0&&ut(jv))),v}function m0(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Xu())!==r){for(D=[],V=s,(Ur=kr())===r?(s=V,V=r):((zr=G0())===r&&(zr=Ud()),zr!==r&&(Br=kr())!==r&&(wt=Xu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r));V!==r;)D.push(V),V=s,(Ur=kr())===r?(s=V,V=r):((zr=G0())===r&&(zr=Ud()),zr!==r&&(Br=kr())!==r&&(wt=Xu())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r));D===r?(s=v,v=r):(er=v,v=T=Sd(T,D))}else s=v,v=r;return v}function G0(){var v;return t.charCodeAt(s)===42?(v="*",s++):(v=r,ir===0&&ut(Tp)),v===r&&(t.charCodeAt(s)===47?(v="/",s++):(v=r,ir===0&&ut(rd)),v===r&&(t.charCodeAt(s)===37?(v="%",s++):(v=r,ir===0&&ut(jp)),v===r&&(t.substr(s,2)==="||"?(v="||",s+=2):(v=r,ir===0&&ut(Ip))))),v}function va(){var v,T,D,V,Ur;if(v=s,(T=R())!==r)if(kr()!==r)if((D=eu())===r&&(D=null),D!==r)if(kr()!==r){for(V=[],Ur=Bu();Ur!==r;)V.push(Ur),Ur=Bu();V===r?(s=v,v=r):(er=v,v=T=(function(zr,Br,wt){return Br&&(zr.array_index=Br),wt.length&&(zr.options={type:"expr_list",value:wt.flat(),separator:" "}),zr})(T,D,V))}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;return v}function Nf(){var v,T,D,V,Ur,zr;return(v=(function(){var Br=s,wt,qt,un,Sn,Fn,es,Qn,As;return(wt=b())!==r&&kr()!==r&&(qt=Ho())!==r&&kr()!==r&&(un=Uu())!==r&&kr()!==r&&(Sn=rr())!==r&&kr()!==r&&(Fn=Ed())!==r&&kr()!==r&&(es=Lu())!==r?(er=Br,wt=(function(Bs,Zs,ae){return{type:"cast",keyword:Bs.toLowerCase(),expr:Zs,symbol:"as",target:[ae]}})(wt,un,Fn),Br=wt):(s=Br,Br=r),Br===r&&(Br=s,(wt=b())!==r&&kr()!==r&&(qt=Ho())!==r&&kr()!==r&&(un=Uu())!==r&&kr()!==r&&(Sn=rr())!==r&&kr()!==r&&(Fn=x())!==r&&kr()!==r&&(es=Ho())!==r&&kr()!==r&&(Qn=we())!==r&&kr()!==r&&Lu()!==r&&kr()!==r&&(As=Lu())!==r?(er=Br,wt=(function(Bs,Zs,ae){return{type:"cast",keyword:Bs.toLowerCase(),expr:Zs,symbol:"as",target:[{dataType:"DECIMAL("+ae+")"}]}})(wt,un,Qn),Br=wt):(s=Br,Br=r),Br===r&&(Br=s,(wt=b())!==r&&kr()!==r&&(qt=Ho())!==r&&kr()!==r&&(un=Uu())!==r&&kr()!==r&&(Sn=rr())!==r&&kr()!==r&&(Fn=x())!==r&&kr()!==r&&(es=Ho())!==r&&kr()!==r&&(Qn=we())!==r&&kr()!==r&&du()!==r&&kr()!==r&&(As=we())!==r&&kr()!==r&&Lu()!==r&&kr()!==r&&Lu()!==r?(er=Br,wt=(function(Bs,Zs,ae,be){return{type:"cast",keyword:Bs.toLowerCase(),expr:Zs,symbol:"as",target:[{dataType:"DECIMAL("+ae+", "+be+")"}]}})(wt,un,Qn,As),Br=wt):(s=Br,Br=r),Br===r&&(Br=s,(wt=b())!==r&&kr()!==r&&(qt=Ho())!==r&&kr()!==r&&(un=Uu())!==r&&kr()!==r&&(Sn=rr())!==r&&kr()!==r&&(Fn=(function(){var Bs;return(Bs=(function(){var Zs=s,ae,be,he;return t.substr(s,6).toLowerCase()==="signed"?(ae=t.substr(s,6),s+=6):(ae=r,ir===0&&ut(vi)),ae===r?(s=Zs,Zs=r):(be=s,ir++,he=Gs(),ir--,he===r?be=void 0:(s=be,be=r),be===r?(s=Zs,Zs=r):(er=Zs,Zs=ae="SIGNED")),Zs})())===r&&(Bs=tr()),Bs})())!==r&&kr()!==r?((es=gr())===r&&(es=null),es!==r&&kr()!==r&&(Qn=Lu())!==r?(er=Br,wt=(function(Bs,Zs,ae,be){return{type:"cast",keyword:Bs.toLowerCase(),expr:Zs,symbol:"as",target:[{dataType:ae+(be?" "+be:"")}]}})(wt,un,Fn,es),Br=wt):(s=Br,Br=r)):(s=Br,Br=r),Br===r&&(Br=s,(wt=Ho())!==r&&kr()!==r?((qt=of())===r&&(qt=va())===r&&(qt=wu()),qt!==r&&kr()!==r&&(un=Lu())!==r&&kr()!==r?((Sn=G())===r&&(Sn=null),Sn===r?(s=Br,Br=r):(er=Br,wt=(function(Bs,Zs){return Bs.parentheses=!0,Zs?{...Zs,type:"cast",keyword:"cast",expr:Bs}:Bs})(qt,Sn),Br=wt)):(s=Br,Br=r)):(s=Br,Br=r),Br===r&&(Br=s,(wt=Si())===r&&(wt=(function(){var Bs=s,Zs,ae;(Zs=(function(){var re=s,_e,Ze,Fe,vo,Io,xo,Tu,_a;return(_e=(function(){var Pa=s,fb,tv,Pl;return t.substr(s,5).toLowerCase()==="count"?(fb=t.substr(s,5),s+=5):(fb=r,ir===0&&ut(qi)),fb===r?(s=Pa,Pa=r):(tv=s,ir++,Pl=Gs(),ir--,Pl===r?tv=void 0:(s=tv,tv=r),tv===r?(s=Pa,Pa=r):(er=Pa,Pa=fb="COUNT")),Pa})())===r&&(_e=(function(){var Pa=s,fb,tv,Pl;return t.substr(s,12).toLowerCase()==="group_concat"?(fb=t.substr(s,12),s+=12):(fb=r,ir===0&&ut(Ji)),fb===r?(s=Pa,Pa=r):(tv=s,ir++,Pl=Gs(),ir--,Pl===r?tv=void 0:(s=tv,tv=r),tv===r?(s=Pa,Pa=r):(er=Pa,Pa=fb="GROUP_CONCAT")),Pa})()),_e!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Ze=(function(){var Pa=s,fb;return(fb=(function(){var tv=s,Pl;return t.charCodeAt(s)===42?(Pl="*",s++):(Pl=r,ir===0&&ut(Tp)),Pl!==r&&(er=tv,Pl={type:"star",value:"*"}),tv=Pl})())!==r&&(er=Pa,fb={expr:fb}),(Pa=fb)===r&&(Pa=_f()),Pa})())!==r&&kr()!==r&&(Fe=Lu())!==r&&kr()!==r?((vo=Do())===r&&(vo=null),vo===r?(s=re,re=r):(er=re,_e=(function(Pa,fb,tv){return{type:"aggr_func",name:Pa,args:fb,over:tv}})(_e,Ze,vo),re=_e)):(s=re,re=r),re===r&&(re=s,t.substr(s,15).toLowerCase()==="percentile_cont"?(_e=t.substr(s,15),s+=15):(_e=r,ir===0&&ut(Lv)),_e===r&&(t.substr(s,15).toLowerCase()==="percentile_disc"?(_e=t.substr(s,15),s+=15):(_e=r,ir===0&&ut(Wv))),_e!==r&&kr()!==r&&Ho()!==r&&kr()!==r?((Ze=as())===r&&(Ze=g()),Ze!==r&&kr()!==r&&(Fe=Lu())!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="within"?(vo=t.substr(s,6),s+=6):(vo=r,ir===0&&ut(zb)),vo!==r&&kr()!==r&&de()!==r&&kr()!==r&&(Io=Ho())!==r&&kr()!==r&&(xo=Ei())!==r&&kr()!==r&&(Tu=Lu())!==r&&kr()!==r?((_a=Do())===r&&(_a=null),_a===r?(s=re,re=r):(er=re,_e=(function(Pa,fb,tv,Pl){return{type:"aggr_func",name:Pa.toUpperCase(),args:{expr:fb},within_group_orderby:tv,over:Pl}})(_e,Ze,xo,_a),re=_e)):(s=re,re=r)):(s=re,re=r)):(s=re,re=r),re===r&&(re=s,t.substr(s,4).toLowerCase()==="mode"?(_e=t.substr(s,4),s+=4):(_e=r,ir===0&&ut(wf)),_e!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Ze=Lu())!==r&&kr()!==r?(t.substr(s,6).toLowerCase()==="within"?(Fe=t.substr(s,6),s+=6):(Fe=r,ir===0&&ut(zb)),Fe!==r&&kr()!==r&&(vo=de())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Io=Ei())!==r&&kr()!==r&&(xo=Lu())!==r&&kr()!==r?((Tu=Do())===r&&(Tu=null),Tu===r?(s=re,re=r):(er=re,_e=(function(Pa,fb,tv){return{type:"aggr_func",name:Pa.toUpperCase(),args:{expr:{}},within_group_orderby:fb,over:tv}})(_e,Io,Tu),re=_e)):(s=re,re=r)):(s=re,re=r))),re})())===r&&(Zs=(function(){var re=s,_e,Ze,Fe;return(_e=(function(){var vo;return(vo=(function(){var Io=s,xo,Tu,_a;return t.substr(s,3).toLowerCase()==="sum"?(xo=t.substr(s,3),s+=3):(xo=r,ir===0&&ut(Se)),xo===r?(s=Io,Io=r):(Tu=s,ir++,_a=Gs(),ir--,_a===r?Tu=void 0:(s=Tu,Tu=r),Tu===r?(s=Io,Io=r):(er=Io,Io=xo="SUM")),Io})())===r&&(vo=(function(){var Io=s,xo,Tu,_a;return t.substr(s,3).toLowerCase()==="max"?(xo=t.substr(s,3),s+=3):(xo=r,ir===0&&ut(Ri)),xo===r?(s=Io,Io=r):(Tu=s,ir++,_a=Gs(),ir--,_a===r?Tu=void 0:(s=Tu,Tu=r),Tu===r?(s=Io,Io=r):(er=Io,Io=xo="MAX")),Io})())===r&&(vo=(function(){var Io=s,xo,Tu,_a;return t.substr(s,3).toLowerCase()==="min"?(xo=t.substr(s,3),s+=3):(xo=r,ir===0&&ut(qu)),xo===r?(s=Io,Io=r):(Tu=s,ir++,_a=Gs(),ir--,_a===r?Tu=void 0:(s=Tu,Tu=r),Tu===r?(s=Io,Io=r):(er=Io,Io=xo="MIN")),Io})())===r&&(vo=(function(){var Io=s,xo,Tu,_a;return t.substr(s,3).toLowerCase()==="avg"?(xo=t.substr(s,3),s+=3):(xo=r,ir===0&&ut(tf)),xo===r?(s=Io,Io=r):(Tu=s,ir++,_a=Gs(),ir--,_a===r?Tu=void 0:(s=Tu,Tu=r),Tu===r?(s=Io,Io=r):(er=Io,Io=xo="AVG")),Io})()),vo})())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Ze=Xo())!==r&&kr()!==r&&Lu()!==r&&kr()!==r?((Fe=Do())===r&&(Fe=null),Fe===r?(s=re,re=r):(er=re,_e=(function(vo,Io,xo){return{type:"aggr_func",name:vo,args:{expr:Io},over:xo,...Cd()}})(_e,Ze,Fe),re=_e)):(s=re,re=r),re})())===r&&(Zs=(function(){var re=s,_e=s,Ze,Fe,vo,Io;return(Ze=it())!==r&&(Fe=kr())!==r&&(vo=Ga())!==r?_e=Ze=[Ze,Fe,vo]:(s=_e,_e=r),_e===r&&(_e=null),_e!==r&&(Ze=kr())!==r?((Fe=(function(){var xo=s,Tu,_a,Pa;return t.substr(s,9).toLowerCase()==="array_agg"?(Tu=t.substr(s,9),s+=9):(Tu=r,ir===0&&ut(Mb)),Tu===r?(s=xo,xo=r):(_a=s,ir++,Pa=Gs(),ir--,Pa===r?_a=void 0:(s=_a,_a=r),_a===r?(s=xo,xo=r):(er=xo,xo=Tu="ARRAY_AGG")),xo})())===r&&(Fe=(function(){var xo=s,Tu,_a,Pa;return t.substr(s,10).toLowerCase()==="string_agg"?(Tu=t.substr(s,10),s+=10):(Tu=r,ir===0&&ut(fc)),Tu===r?(s=xo,xo=r):(_a=s,ir++,Pa=Gs(),ir--,Pa===r?_a=void 0:(s=_a,_a=r),_a===r?(s=xo,xo=r):(er=xo,xo=Tu="STRING_AGG")),xo})()),Fe!==r&&(vo=kr())!==r&&Ho()!==r&&kr()!==r&&(Io=_f())!==r&&kr()!==r&&Lu()!==r?(er=re,_e=(function(xo,Tu,_a){return{type:"aggr_func",name:xo?`${xo[0]}.${Tu}`:Tu,args:_a}})(_e,Fe,Io),re=_e):(s=re,re=r)):(s=re,re=r),re})()),Zs!==r&&kr()!==r?((ae=(function(){var re=s,_e,Ze;return t.substr(s,6).toLowerCase()==="filter"?(_e=t.substr(s,6),s+=6):(_e=r,ir===0&&ut(pv)),_e!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(Ze=fl())!==r&&kr()!==r&&Lu()!==r?(er=re,re=_e={keyword:"filter",parentheses:!0,where:Ze}):(s=re,re=r),re})())===r&&(ae=null),ae===r?(s=Bs,Bs=r):(er=Bs,be=Zs,(he=ae)&&(be.filter=he),Bs=Zs=be)):(s=Bs,Bs=r);var be,he;return Bs})())===r&&(wt=(function(){var Bs;return(Bs=(function(){var Zs=s,ae,be;return(ae=(function(){var he;return t.substr(s,10).toLowerCase()==="row_number"?(he=t.substr(s,10),s+=10):(he=r,ir===0&&ut(Qt)),he===r&&(t.substr(s,10).toLowerCase()==="dense_rank"?(he=t.substr(s,10),s+=10):(he=r,ir===0&&ut(Xs)),he===r&&(t.substr(s,4).toLowerCase()==="rank"?(he=t.substr(s,4),s+=4):(he=r,ir===0&&ut(ic)))),he})())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&Lu()!==r&&kr()!==r&&(be=Do())!==r?(er=Zs,ae=(function(he,re){return{type:"window_func",name:he,over:re}})(ae,be),Zs=ae):(s=Zs,Zs=r),Zs})())===r&&(Bs=(function(){var Zs=s,ae,be,he,re;return(ae=(function(){var _e;return t.substr(s,3).toLowerCase()==="lag"?(_e=t.substr(s,3),s+=3):(_e=r,ir===0&&ut(op)),_e===r&&(t.substr(s,4).toLowerCase()==="lead"?(_e=t.substr(s,4),s+=4):(_e=r,ir===0&&ut(Kb)),_e===r&&(t.substr(s,9).toLowerCase()==="nth_value"?(_e=t.substr(s,9),s+=9):(_e=r,ir===0&&ut(ys)))),_e})())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(be=pc())!==r&&kr()!==r&&Lu()!==r&&kr()!==r?((he=Ka())===r&&(he=null),he!==r&&kr()!==r&&(re=Do())!==r?(er=Zs,ae=(function(_e,Ze,Fe,vo){return{type:"window_func",name:_e,args:Ze,over:vo,consider_nulls:Fe}})(ae,be,he,re),Zs=ae):(s=Zs,Zs=r)):(s=Zs,Zs=r),Zs})())===r&&(Bs=(function(){var Zs=s,ae,be,he,re;return(ae=(function(){var _e;return t.substr(s,11).toLowerCase()==="first_value"?(_e=t.substr(s,11),s+=11):(_e=r,ir===0&&ut(Cf)),_e===r&&(t.substr(s,10).toLowerCase()==="last_value"?(_e=t.substr(s,10),s+=10):(_e=r,ir===0&&ut(dv))),_e})())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(be=Uu())!==r&&kr()!==r&&Lu()!==r&&kr()!==r?((he=Ka())===r&&(he=null),he!==r&&kr()!==r&&(re=Do())!==r?(er=Zs,ae=(function(_e,Ze,Fe,vo){return{type:"window_func",name:_e,args:{type:"expr_list",value:[Ze]},over:vo,consider_nulls:Fe}})(ae,be,he,re),Zs=ae):(s=Zs,Zs=r)):(s=Zs,Zs=r),Zs})()),Bs})())===r&&(wt=Vu())===r&&(wt=B())===r&&(wt=z())===r&&(wt=(function(){var Bs,Zs,ae,be,he,re,_e,Ze;return Bs=s,X()!==r&&kr()!==r&&(Zs=_c())!==r&&kr()!==r?((ae=ef())===r&&(ae=null),ae!==r&&kr()!==r&&(be=i())!==r&&kr()!==r?((he=X())===r&&(he=null),he===r?(s=Bs,Bs=r):(er=Bs,_e=Zs,(Ze=ae)&&_e.push(Ze),Bs={type:"case",expr:null,args:_e})):(s=Bs,Bs=r)):(s=Bs,Bs=r),Bs===r&&(Bs=s,X()!==r&&kr()!==r&&(Zs=Uu())!==r&&kr()!==r&&(ae=_c())!==r&&kr()!==r?((be=ef())===r&&(be=null),be!==r&&kr()!==r&&(he=i())!==r&&kr()!==r?((re=X())===r&&(re=null),re===r?(s=Bs,Bs=r):(er=Bs,Bs=(function(Fe,vo,Io){return Io&&vo.push(Io),{type:"case",expr:Fe,args:vo}})(Zs,ae,be))):(s=Bs,Bs=r)):(s=Bs,Bs=r)),Bs})())===r&&(wt=va())===r&&(wt=wu()),wt!==r&&kr()!==r?((qt=G())===r&&(qt=null),qt===r?(s=Br,Br=r):(er=Br,wt=(function(Bs,Zs){return Zs?{...Zs,type:"cast",keyword:"cast",expr:Bs}:Bs})(wt,qt),Br=wt)):(s=Br,Br=r)))))),Br})())===r&&(v=s,Ho()!==r&&(T=kr())!==r&&(D=Sc())!==r&&(V=kr())!==r&&(Ur=Lu())!==r?(er=v,(zr=D).parentheses=!0,v=zr):(s=v,v=r),v===r&&(v=Ad())===r&&(v=s,kr()===r?(s=v,v=r):(t.charCodeAt(s)===36?(T="$",s++):(T=r,ir===0&&ut(td)),T===r?(s=v,v=r):(t.charCodeAt(s)===60?(D="<",s++):(D=r,ir===0&&ut(Sl)),D!==r&&(V=as())!==r?(t.charCodeAt(s)===62?(Ur=">",s++):(Ur=r,ir===0&&ut(yl)),Ur===r?(s=v,v=r):(er=v,v={type:"origin",value:`$<${V.value}>`})):(s=v,v=r))))),v}function Xu(){var v,T,D,V,Ur;return(v=(function(){var zr,Br,wt,qt,un,Sn,Fn,es;if(zr=s,(Br=ot())!==r)if(kr()!==r){for(wt=[],qt=s,(un=kr())===r?(s=qt,qt=r):(t.substr(s,2)==="?|"?(Sn="?|",s+=2):(Sn=r,ir===0&&ut(nd)),Sn===r&&(t.substr(s,2)==="?&"?(Sn="?&",s+=2):(Sn=r,ir===0&&ut(Bp)),Sn===r&&(t.charCodeAt(s)===63?(Sn="?",s++):(Sn=r,ir===0&&ut(Hp)),Sn===r&&(t.substr(s,2)==="#-"?(Sn="#-",s+=2):(Sn=r,ir===0&&ut(gp)),Sn===r&&(t.substr(s,3)==="#>>"?(Sn="#>>",s+=3):(Sn=r,ir===0&&ut(sd)),Sn===r&&(t.substr(s,2)==="#>"?(Sn="#>",s+=2):(Sn=r,ir===0&&ut(ed)),Sn===r&&(Sn=Qd())===r&&(Sn=Jd())===r&&(t.substr(s,2)==="@>"?(Sn="@>",s+=2):(Sn=r,ir===0&&ut(Yp)),Sn===r&&(t.substr(s,2)==="<@"?(Sn="<@",s+=2):(Sn=r,ir===0&&ut(od))))))))),Sn!==r&&(Fn=kr())!==r&&(es=ot())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r));qt!==r;)wt.push(qt),qt=s,(un=kr())===r?(s=qt,qt=r):(t.substr(s,2)==="?|"?(Sn="?|",s+=2):(Sn=r,ir===0&&ut(nd)),Sn===r&&(t.substr(s,2)==="?&"?(Sn="?&",s+=2):(Sn=r,ir===0&&ut(Bp)),Sn===r&&(t.charCodeAt(s)===63?(Sn="?",s++):(Sn=r,ir===0&&ut(Hp)),Sn===r&&(t.substr(s,2)==="#-"?(Sn="#-",s+=2):(Sn=r,ir===0&&ut(gp)),Sn===r&&(t.substr(s,3)==="#>>"?(Sn="#>>",s+=3):(Sn=r,ir===0&&ut(sd)),Sn===r&&(t.substr(s,2)==="#>"?(Sn="#>",s+=2):(Sn=r,ir===0&&ut(ed)),Sn===r&&(Sn=Qd())===r&&(Sn=Jd())===r&&(t.substr(s,2)==="@>"?(Sn="@>",s+=2):(Sn=r,ir===0&&ut(Yp)),Sn===r&&(t.substr(s,2)==="<@"?(Sn="<@",s+=2):(Sn=r,ir===0&&ut(od))))))))),Sn!==r&&(Fn=kr())!==r&&(es=ot())!==r?qt=un=[un,Sn,Fn,es]:(s=qt,qt=r));wt===r?(s=zr,zr=r):(er=zr,Qn=Br,Br=(As=wt)&&As.length!==0?Sd(Qn,As):Qn,zr=Br)}else s=zr,zr=r;else s=zr,zr=r;var Qn,As;return zr})())===r&&(v=s,(T=(function(){var zr;return t.charCodeAt(s)===33?(zr="!",s++):(zr=r,ir===0&&ut(tp)),zr===r&&(t.charCodeAt(s)===45?(zr="-",s++):(zr=r,ir===0&&ut(jv)),zr===r&&(t.charCodeAt(s)===43?(zr="+",s++):(zr=r,ir===0&&ut(sp)),zr===r&&(t.charCodeAt(s)===126?(zr="~",s++):(zr=r,ir===0&&ut(Ec))))),zr})())===r?(s=v,v=r):(D=s,(V=kr())!==r&&(Ur=Xu())!==r?D=V=[V,Ur]:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T=jd(T,D[1])))),v}function ot(){var v,T,D,V,Ur;return v=s,(T=Nf())!==r&&kr()!==r?((D=eu())===r&&(D=null),D===r?(s=v,v=r):(er=v,V=T,(Ur=D)&&(V.array_index=Ur),v=T=V)):(s=v,v=r),v}function Xv(){var v,T,D,V,Ur,zr;if(v=s,t.substr(s,1).toLowerCase()==="e"?(T=t.charAt(s),s++):(T=r,ir===0&&ut(ud)),T!==r)if(t.charCodeAt(s)===39?(D="'",s++):(D=r,ir===0&&ut(ft)),D!==r)if(kr()!==r){for(V=[],Ur=An();Ur!==r;)V.push(Ur),Ur=An();V!==r&&(Ur=kr())!==r?(t.charCodeAt(s)===39?(zr="'",s++):(zr=r,ir===0&&ut(ft)),zr===r?(s=v,v=r):(er=v,v=T={type:"default",value:`E'${V.join("")}'`})):(s=v,v=r)}else s=v,v=r;else s=v,v=r;else s=v,v=r;return v}function R(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn;if((v=Xv())===r&&(v=s,T=s,(D=it())!==r&&(V=kr())!==r&&(Ur=Ga())!==r?T=D=[D,V,Ur]:(s=T,T=r),T===r&&(T=null),T!==r&&(D=kr())!==r&&(V=id())!==r?(er=v,v=T=(function(es){let Qn=es&&es[0]||null;return Ja.add(`select::${Qn}::(.*)`),{type:"column_ref",table:Qn,column:"*"}})(T)):(s=v,v=r),v===r)){if(v=s,(T=it())!==r)if(D=s,(V=kr())!==r&&(Ur=Ga())!==r&&(zr=kr())!==r&&(Br=it())!==r?D=V=[V,Ur,zr,Br]:(s=D,D=r),D!==r){if(V=[],Ur=s,(zr=kr())!==r&&(Br=Ga())!==r&&(wt=kr())!==r&&(qt=ue())!==r?Ur=zr=[zr,Br,wt,qt]:(s=Ur,Ur=r),Ur!==r)for(;Ur!==r;)V.push(Ur),Ur=s,(zr=kr())!==r&&(Br=Ga())!==r&&(wt=kr())!==r&&(qt=ue())!==r?Ur=zr=[zr,Br,wt,qt]:(s=Ur,Ur=r);else V=r;V===r?(s=v,v=r):(Ur=s,(zr=kr())!==r&&(Br=Mu())!==r?Ur=zr=[zr,Br]:(s=Ur,Ur=r),Ur===r&&(Ur=null),Ur===r?(s=v,v=r):(er=v,v=T=(function(es,Qn,As,Bs){return As.length===1?(Ja.add(`select::${es}.${Qn[3]}::${As[0][3].value}`),{type:"column_ref",schema:es,table:Qn[3],column:{expr:As[0][3]},collate:Bs&&Bs[1]}):{type:"column_ref",column:{expr:Sd(_d(".",es,Qn[3]),As)},collate:Bs&&Bs[1]}})(T,D,V,Ur)))}else s=v,v=r;else s=v,v=r;v===r&&(v=s,(T=it())!==r&&(D=kr())!==r&&(V=Ga())!==r&&(Ur=kr())!==r&&(zr=ue())!==r?(Br=s,(wt=kr())!==r&&(qt=Mu())!==r?Br=wt=[wt,qt]:(s=Br,Br=r),Br===r&&(Br=null),Br===r?(s=v,v=r):(er=v,un=T,Sn=zr,Fn=Br,Ja.add(`select::${un}::${Sn.value}`),v=T={type:"column_ref",table:un,column:{expr:Sn},collate:Fn&&Fn[1]})):(s=v,v=r),v===r&&(v=s,(T=ee())===r?(s=v,v=r):(D=s,ir++,V=Ho(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(V=s,(Ur=kr())!==r&&(zr=Mu())!==r?V=Ur=[Ur,zr]:(s=V,V=r),V===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(es,Qn){return Ja.add("select::null::"+es.value),{type:"column_ref",table:null,column:{expr:es},collate:Qn&&Qn[1]}})(T,V))))))}return v}function B(){var v,T,D;return v=s,(T=wn())!==r&&(er=v,D=T,Ja.add("select::null::"+D.value),T={type:"column_ref",table:null,column:{expr:D}}),v=T}function cr(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=ee())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=ee())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=ee())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function Er(){var v,T;return v=s,(T=$e())!==r&&(er=v,T=Rp(T)),(v=T)===r&&(v=en()),v}function vt(){var v,T;return v=s,(T=$e())===r?(s=v,v=r):(er=s,(O(T)?r:void 0)===r?(s=v,v=r):(er=v,v=T=(function(D){return{type:"default",value:D}})(T))),v===r&&(v=en()),v}function it(){var v,T;return v=s,(T=$e())===r?(s=v,v=r):(er=s,(O(T)?r:void 0)===r?(s=v,v=r):(er=v,v=T=T)),v===r&&(v=hn()),v}function Et(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=it())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=it())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=it())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function $t(){var v,T,D,V,Ur,zr,Br,wt,qt;return v=s,(T=ro())===r?(s=v,v=r):(er=s,((function(un){return aL[un.toUpperCase()]===!0})(T)?r:void 0)===r?(s=v,v=r):(D=s,(V=kr())!==r&&(Ur=Ho())!==r&&(zr=kr())!==r&&(Br=cr())!==r&&(wt=kr())!==r&&(qt=Lu())!==r?D=V=[V,Ur,zr,Br,wt,qt]:(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(un,Sn){return Sn?`${un}(${Sn[3].map(Fn=>Fn.value).join(", ")})`:un})(T,D)))),v===r&&(v=s,(T=ds())!==r&&(er=v,T=(function(un){return un.value})(T)),v=T),v}function en(){var v;return(v=ds())===r&&(v=Ns())===r&&(v=Fs()),v}function hn(){var v,T;return v=s,(T=ds())===r&&(T=Ns())===r&&(T=Fs()),T!==r&&(er=v,T=T.value),v=T}function ds(){var v,T,D,V;if(v=s,t.charCodeAt(s)===34?(T='"',s++):(T=r,ir===0&&ut(ps)),T!==r){if(D=[],Bv.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Lf)),V!==r)for(;V!==r;)D.push(V),Bv.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Lf));else D=r;D===r?(s=v,v=r):(t.charCodeAt(s)===34?(V='"',s++):(V=r,ir===0&&ut(ps)),V===r?(s=v,v=r):(er=v,v=T={type:"double_quote_string",value:D.join("")}))}else s=v,v=r;return v}function Ns(){var v,T,D,V;if(v=s,t.charCodeAt(s)===39?(T="'",s++):(T=r,ir===0&&ut(ft)),T!==r){if(D=[],Hv.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(on)),V!==r)for(;V!==r;)D.push(V),Hv.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(on));else D=r;D===r?(s=v,v=r):(t.charCodeAt(s)===39?(V="'",s++):(V=r,ir===0&&ut(ft)),V===r?(s=v,v=r):(er=v,v=T={type:"single_quote_string",value:D.join("")}))}else s=v,v=r;return v}function Fs(){var v,T,D,V;if(v=s,t.charCodeAt(s)===96?(T="`",s++):(T=r,ir===0&&ut(zs)),T!==r){if(D=[],Bc.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(vv)),V!==r)for(;V!==r;)D.push(V),Bc.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(vv));else D=r;D===r?(s=v,v=r):(t.charCodeAt(s)===96?(V="`",s++):(V=r,ir===0&&ut(zs)),V===r?(s=v,v=r):(er=v,v=T={type:"backticks_quote_string",value:D.join("")}))}else s=v,v=r;return v}function ue(){var v,T;return v=s,(T=ro())!==r&&(er=v,T=Rp(T)),(v=T)===r&&(v=en()),v}function ee(){var v,T;return v=s,(T=ro())===r?(s=v,v=r):(er=s,(O(T)?r:void 0)===r?(s=v,v=r):(er=v,v=T=(function(D){return{type:"default",value:D}})(T))),v===r&&(v=en()),v}function ie(){var v,T;return v=s,(T=ro())===r?(s=v,v=r):(er=s,(O(T)?r:void 0)===r?(s=v,v=r):(er=v,v=T=T)),v===r&&(v=hn()),v}function ro(){var v,T,D,V;if(v=s,(T=Gs())!==r){for(D=[],V=Oo();V!==r;)D.push(V),V=Oo();D===r?(s=v,v=r):(er=v,v=T+=D.join(""))}else s=v,v=r;return v}function $e(){var v,T,D,V;if(v=s,(T=Gs())!==r){for(D=[],V=iu();V!==r;)D.push(V),V=iu();D===r?(s=v,v=r):(er=v,v=T+=D.join(""))}else s=v,v=r;return v}function Gs(){var v;return ep.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(Rs)),v}function iu(){var v;return Np.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(Wp)),v}function Oo(){var v;return cd.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(Vb)),v}function wu(){var v,T,D,V;return v=s,T=s,t.charCodeAt(s)===58?(D=":",s++):(D=r,ir===0&&ut(_)),D!==r&&(V=$e())!==r?T=D=[D,V]:(s=T,T=r),T!==r&&(er=v,T={type:"param",value:T[1]}),v=T}function Ea(){var v,T,D;return v=s,On()!==r&&kr()!==r&&Fo()!==r&&kr()!==r&&(T=Xn())!==r&&kr()!==r&&Ho()!==r&&kr()!==r?((D=pc())===r&&(D=null),D!==r&&kr()!==r&&Lu()!==r?(er=v,v={type:"on update",keyword:T,parentheses:!0,expr:D}):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,On()!==r&&kr()!==r&&Fo()!==r&&kr()!==r&&(T=Xn())!==r?(er=v,v=(function(V){return{type:"on update",keyword:V}})(T)):(s=v,v=r)),v}function Do(){var v,T,D,V,Ur;return v=s,t.substr(s,4).toLowerCase()==="over"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Ls)),T!==r&&kr()!==r&&(D=gu())!==r?(er=v,v=T={type:"window",as_window_specification:D}):(s=v,v=r),v===r&&(v=s,t.substr(s,4).toLowerCase()==="over"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Ls)),T!==r&&kr()!==r&&(D=Ho())!==r&&kr()!==r?((V=rc())===r&&(V=null),V!==r&&kr()!==r?((Ur=Ei())===r&&(Ur=null),Ur!==r&&kr()!==r&&Lu()!==r?(er=v,v=T={partitionby:V,orderby:Ur}):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v===r&&(v=Ea())),v}function Ka(){var v,T,D;return v=s,t.substr(s,6).toLowerCase()==="ignore"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(_p)),T===r&&(t.substr(s,7).toLowerCase()==="respect"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Yv))),T!==r&&kr()!==r?(t.substr(s,5).toLowerCase()==="nulls"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(Rv)),D===r?(s=v,v=r):(er=v,v=T=T.toUpperCase()+" NULLS")):(s=v,v=r),v}function dc(){var v,T,D;return v=s,(T=du())!==r&&kr()!==r&&(D=Pt())!==r?(er=v,v=T={symbol:T,delimiter:D}):(s=v,v=r),v}function _f(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn;if(v=s,(T=Sr())===r&&(T=null),T!==r)if(kr()!==r)if((D=Ho())!==r)if(kr()!==r)if((V=Uu())!==r)if(kr()!==r)if((Ur=Lu())!==r)if(kr()!==r){for(zr=[],Br=s,(wt=kr())===r?(s=Br,Br=r):((qt=ts())===r&&(qt=d()),qt!==r&&(un=kr())!==r&&(Sn=Uu())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r));Br!==r;)zr.push(Br),Br=s,(wt=kr())===r?(s=Br,Br=r):((qt=ts())===r&&(qt=d()),qt!==r&&(un=kr())!==r&&(Sn=Uu())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r));zr!==r&&(Br=kr())!==r?((wt=dc())===r&&(wt=null),wt!==r&&(qt=kr())!==r?((un=Ei())===r&&(un=null),un===r?(s=v,v=r):(er=v,v=T=(function(Fn,es,Qn,As,Bs){let Zs=Qn.length,ae=es;ae.parentheses=!0;for(let be=0;be<Zs;++be)ae=_d(Qn[be][1],ae,Qn[be][3]);return{distinct:Fn,expr:ae,orderby:Bs,separator:As}})(T,V,zr,wt,un))):(s=v,v=r)):(s=v,v=r)}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;return v===r&&(v=s,(T=Sr())===r&&(T=null),T!==r&&kr()!==r&&(D=ap())!==r&&kr()!==r?((V=dc())===r&&(V=null),V!==r&&kr()!==r?((Ur=Ei())===r&&(Ur=null),Ur===r?(s=v,v=r):(er=v,v=T=(function(Fn,es,Qn,As){return{distinct:Fn,expr:es,orderby:As,separator:Qn}})(T,D,V,Ur))):(s=v,v=r)):(s=v,v=r)),v}function La(){var v,T,D;return v=s,t.substr(s,8).toLowerCase()==="position"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(qv)),T!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(D=(function(){var V,Ur,zr,Br,wt,qt,un,Sn;return V=s,(Ur=Pt())!==r&&kr()!==r&&Ct()!==r&&kr()!==r&&(zr=Uu())!==r?(Br=s,(wt=kr())!==r&&(qt=M())!==r&&(un=kr())!==r&&(Sn=as())!==r?Br=wt=[wt,qt,un,Sn]:(s=Br,Br=r),Br===r&&(Br=null),Br===r?(s=V,V=r):(er=V,V=Ur=(function(Fn,es,Qn){let As=[Fn,{type:"origin",value:"in"},es];return Qn&&(As.push({type:"origin",value:"from"}),As.push(Qn[3])),{type:"expr_list",value:As}})(Ur,zr,Br))):(s=V,V=r),V})())!==r&&kr()!==r&&Lu()!==r?(er=v,v=T={type:"function",name:{name:[{type:"origin",value:"position"}]},separator:" ",args:D,...Cd()}):(s=v,v=r),v}function Db(){var v,T,D;return v=s,(T=(function(){var V;return t.substr(s,4).toLowerCase()==="both"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut(Cv)),V===r&&(t.substr(s,7).toLowerCase()==="leading"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(rb)),V===r&&(t.substr(s,8).toLowerCase()==="trailing"?(V=t.substr(s,8),s+=8):(V=r,ir===0&&ut(tb)))),V})())===r&&(T=null),T!==r&&kr()!==r?((D=Uu())===r&&(D=null),D!==r&&kr()!==r&&M()!==r?(er=v,v=T=(function(V,Ur,zr){let Br=[];return V&&Br.push({type:"origin",value:V}),Ur&&Br.push(Ur),Br.push({type:"origin",value:"from"}),{type:"expr_list",value:Br}})(T,D)):(s=v,v=r)):(s=v,v=r),v}function Wf(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="trim"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(I)),T!==r&&kr()!==r&&Ho()!==r&&kr()!==r?((D=Db())===r&&(D=null),D!==r&&kr()!==r&&(V=Uu())!==r&&kr()!==r&&Lu()!==r?(er=v,v=T=(function(Ur,zr){let Br=Ur||{type:"expr_list",value:[]};return Br.value.push(zr),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:Br,...Cd()}})(D,V)):(s=v,v=r)):(s=v,v=r),v}function Wo(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es;return v=s,t.substr(s,8).toLowerCase()==="crosstab"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(us)),T===r&&(t.substr(s,18).toLowerCase()==="jsonb_to_recordset"?(T=t.substr(s,18),s+=18):(T=r,ir===0&&ut(Sb)),T===r&&(t.substr(s,15).toLowerCase()==="jsonb_to_record"?(T=t.substr(s,15),s+=15):(T=r,ir===0&&ut(xl)),T===r&&(t.substr(s,17).toLowerCase()==="json_to_recordset"?(T=t.substr(s,17),s+=17):(T=r,ir===0&&ut(nb)),T===r&&(t.substr(s,14).toLowerCase()==="json_to_record"?(T=t.substr(s,14),s+=14):(T=r,ir===0&&ut(zt)))))),T!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(D=pc())!==r&&kr()!==r&&Lu()!==r&&kr()!==r?(V=s,(Ur=rr())!==r&&(zr=kr())!==r&&(Br=$e())!==r&&(wt=kr())!==r&&(qt=Ho())!==r&&(un=kr())!==r&&(Sn=$n())!==r&&(Fn=kr())!==r&&(es=Lu())!==r?V=Ur=[Ur,zr,Br,wt,qt,un,Sn,Fn,es]:(s=V,V=r),V===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(Qn,As,Bs){return{type:"tablefunc",name:{name:[{type:"default",value:Qn}]},args:As,as:Bs&&{type:"function",name:{name:[{type:"default",value:Bs[2]}]},args:{type:"expr_list",value:Bs[6].map(Zs=>({...Zs,type:"column_definition"}))},...Cd()},...Cd()}})(T,D,V))):(s=v,v=r),v}function $b(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="years"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(ja)),T===r&&(t.substr(s,6).toLowerCase()==="months"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Ob)),T===r&&(t.substr(s,5).toLowerCase()==="weeks"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(jf)),T===r&&(t.substr(s,4).toLowerCase()==="days"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(is)),T===r&&(t.substr(s,5).toLowerCase()==="hours"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(el)),T===r&&(t.substr(s,4).toLowerCase()==="mins"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Ti))))))),T!==r&&kr()!==r?(t.substr(s,2)==="=>"?(D="=>",s+=2):(D=r,ir===0&&ut(wv)),D!==r&&kr()!==r?((V=cs())===r&&(V=Uu()),V===r?(s=v,v=r):(er=v,v=T={type:"func_arg",value:{name:T,symbol:"=>",expr:V}})):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,t.substr(s,4).toLowerCase()==="secs"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(yf)),T!==r&&kr()!==r?(t.substr(s,2)==="=>"?(D="=>",s+=2):(D=r,ir===0&&ut(wv)),D!==r&&kr()!==r?((V=_s())===r&&(V=Uu()),V===r?(s=v,v=r):(er=v,v=T=(function(Ur,zr){return{type:"func_arg",value:{name:Ur,symbol:"=>",expr:zr}}})(T,V))):(s=v,v=r)):(s=v,v=r)),v}function pu(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=$b())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=$b())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=$b())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T={type:"expr_list",value:Vc(T,D)})}else s=v,v=r;return v===r&&(v=pc()),v}function fu(){var v,T,D;return v=s,t.substr(s,13).toLowerCase()==="make_interval"?(T=t.substr(s,13),s+=13):(T=r,ir===0&&ut(X0)),T!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(D=pu())!==r&&kr()!==r&&Lu()!==r?(er=v,v=T=(function(V,Ur){return{type:"function",name:{name:[{type:"origin",value:V}]},args:Ur,...Cd()}})(T,D)):(s=v,v=r),v}function Vu(){var v,T,D,V,Ur,zr,Br;return(v=La())===r&&(v=Wf())===r&&(v=Wo())===r&&(v=(function(){var wt,qt,un,Sn,Fn,es,Qn,As,Bs,Zs,ae;return wt=s,t.substr(s,9).toLowerCase()==="substring"?(qt=t.substr(s,9),s+=9):(qt=r,ir===0&&ut($s)),qt!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(un=en())!==r&&kr()!==r&&(Sn=du())!==r&&(Fn=kr())!==r&&(es=as())!==r&&(Qn=kr())!==r&&(As=du())!==r&&(Bs=kr())!==r&&(Zs=as())!==r&&(ae=kr())!==r&&Lu()!==r?(er=wt,wt=qt={type:"function",name:{name:[{type:"origin",value:"substring"}]},args:{type:"expr_list",value:[un,es,Zs]}}):(s=wt,wt=r),wt===r&&(wt=s,t.substr(s,9).toLowerCase()==="substring"?(qt=t.substr(s,9),s+=9):(qt=r,ir===0&&ut($s)),qt!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(un=en())!==r&&kr()!==r&&(Sn=M())!==r&&(Fn=kr())!==r&&(es=en())!==r&&(Qn=kr())!==r?(As=s,t.substr(s,3).toLowerCase()==="for"?(Bs=t.substr(s,3),s+=3):(Bs=r,ir===0&&ut($c)),Bs!==r&&(Zs=kr())!==r&&(ae=en())!==r?As=Bs=[Bs,Zs,ae]:(s=As,As=r),As===r&&(As=null),As!==r&&(Bs=kr())!==r&&(Zs=Lu())!==r?(er=wt,wt=qt=(function(be,he,re){let _e=[{type:"origin",value:"from"}],Ze={type:"expr_list",value:[be,he]};return re&&(_e.push({type:"origin",value:"for"}),Ze.value.push(re[2])),{type:"function",name:{name:[{type:"origin",value:"substring"}]},args:Ze,separator:_e}})(un,es,As)):(s=wt,wt=r)):(s=wt,wt=r),wt===r&&(wt=s,t.substr(s,9).toLowerCase()==="substring"?(qt=t.substr(s,9),s+=9):(qt=r,ir===0&&ut($s)),qt!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(un=en())!==r&&kr()!==r?(Sn=s,(Fn=M())!==r&&(es=kr())!==r&&(Qn=as())!==r?Sn=Fn=[Fn,es,Qn]:(s=Sn,Sn=r),Sn===r&&(Sn=null),Sn!==r&&(Fn=kr())!==r?(es=s,t.substr(s,3).toLowerCase()==="for"?(Qn=t.substr(s,3),s+=3):(Qn=r,ir===0&&ut($c)),Qn!==r&&(As=kr())!==r&&(Bs=as())!==r?es=Qn=[Qn,As,Bs]:(s=es,es=r),es===r&&(es=null),es!==r&&(Qn=kr())!==r&&(As=Lu())!==r?(er=wt,wt=qt=(function(be,he,re){let _e=[],Ze={type:"expr_list",value:[be]};return he&&(_e.push({type:"origin",value:"from"}),Ze.value.push(he[2])),re&&(_e.push({type:"origin",value:"for"}),Ze.value.push(re[2])),{type:"function",name:{name:[{type:"origin",value:"substring"}]},args:Ze,separator:_e}})(un,Sn,es)):(s=wt,wt=r)):(s=wt,wt=r)):(s=wt,wt=r))),wt})())===r&&(v=fu())===r&&(v=s,t.substr(s,3).toLowerCase()==="now"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(p0)),T!==r&&kr()!==r&&(D=Ho())!==r&&kr()!==r?((V=pc())===r&&(V=null),V!==r&&kr()!==r&&Lu()!==r&&kr()!==r?(t.substr(s,2).toLowerCase()==="at"?(Ur=t.substr(s,2),s+=2):(Ur=r,ir===0&&ut(up)),Ur!==r&&kr()!==r&&St()!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="zone"?(zr=t.substr(s,4),s+=4):(zr=r,ir===0&&ut(xb)),zr!==r&&kr()!==r&&(Br=Pt())!==r?(er=v,v=T=(function(wt,qt,un){return un.prefix="at time zone",{type:"function",name:{name:[{type:"default",value:wt}]},args:qt||{type:"expr_list",value:[]},suffix:un,...Cd()}})(T,V,Br)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=(function(){var wt;return(wt=fd())===r&&(wt=Gn())===r&&(wt=(function(){var qt=s,un,Sn,Fn;return t.substr(s,4).toLowerCase()==="user"?(un=t.substr(s,4),s+=4):(un=r,ir===0&&ut(ui)),un===r?(s=qt,qt=r):(Sn=s,ir++,Fn=Gs(),ir--,Fn===r?Sn=void 0:(s=Sn,Sn=r),Sn===r?(s=qt,qt=r):(er=qt,qt=un="USER")),qt})())===r&&(wt=Ts())===r&&(wt=(function(){var qt=s,un,Sn,Fn;return t.substr(s,11).toLowerCase()==="system_user"?(un=t.substr(s,11),s+=11):(un=r,ir===0&&ut(Ln)),un===r?(s=qt,qt=r):(Sn=s,ir++,Fn=Gs(),ir--,Fn===r?Sn=void 0:(s=Sn,Sn=r),Sn===r?(s=qt,qt=r):(er=qt,qt=un="SYSTEM_USER")),qt})())===r&&(t.substr(s,5).toLowerCase()==="ntile"?(wt=t.substr(s,5),s+=5):(wt=r,ir===0&&ut(Ta))),wt})())!==r&&kr()!==r&&(D=Ho())!==r&&kr()!==r?((V=pc())===r&&(V=null),V!==r&&kr()!==r&&Lu()!==r&&kr()!==r?((Ur=Do())===r&&(Ur=null),Ur===r?(s=v,v=r):(er=v,v=T=(function(wt,qt,un){return{type:"function",name:{name:[{type:"origin",value:wt}]},args:qt||{type:"expr_list",value:[]},over:un,...Cd()}})(T,V,Ur))):(s=v,v=r)):(s=v,v=r),v===r&&(v=(function(){var wt=s,qt,un,Sn,Fn;(qt=H())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(un=ra())!==r&&kr()!==r&&M()!==r&&kr()!==r?((Sn=Kt())===r&&(Sn=Nn())===r&&(Sn=St())===r&&(Sn=_r()),Sn===r&&(Sn=null),Sn!==r&&kr()!==r&&(Fn=Uu())!==r&&kr()!==r&&Lu()!==r?(er=wt,es=un,Qn=Sn,As=Fn,qt={type:qt.toLowerCase(),args:{field:es,cast_type:Qn,source:As},...Cd()},wt=qt):(s=wt,wt=r)):(s=wt,wt=r);var es,Qn,As;return wt===r&&(wt=s,(qt=H())!==r&&kr()!==r&&Ho()!==r&&kr()!==r&&(un=ra())!==r&&kr()!==r&&M()!==r&&kr()!==r&&(Sn=Uu())!==r&&kr()!==r&&(Fn=Lu())!==r?(er=wt,qt=(function(Bs,Zs,ae){return{type:Bs.toLowerCase(),args:{field:Zs,source:ae},...Cd()}})(qt,un,Sn),wt=qt):(s=wt,wt=r)),wt})())===r&&(v=s,(T=fd())!==r&&kr()!==r?((D=Bu())===r&&(D=null),D!==r&&kr()!==r?((V=Ea())===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(wt,qt,un){let Sn={};return qt&&(Sn.args={type:"expr_list",value:qt},Sn.args_parentheses=!1,Sn.separator=" "),{type:"function",name:{name:[{type:"origin",value:wt}]},over:un,...Sn,...Cd()}})(T,D,V))):(s=v,v=r)):(s=v,v=r),v===r&&(v=s,(T=xd())!==r&&kr()!==r&&(D=Ho())!==r&&kr()!==r?((V=Sc())===r&&(V=null),V!==r&&kr()!==r&&Lu()!==r?(er=v,v=T=(function(wt,qt){return qt&&qt.type!=="expr_list"&&(qt={type:"expr_list",value:[qt]}),{type:"function",name:wt,args:qt||{type:"expr_list",value:[]},...Cd()}})(T,V)):(s=v,v=r)):(s=v,v=r))))),v}function ra(){var v,T;return v=s,t.substr(s,7).toLowerCase()==="century"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Zb)),T===r&&(t.substr(s,3).toLowerCase()==="day"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(yv)),T===r&&(t.substr(s,4).toLowerCase()==="date"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Jb)),T===r&&(t.substr(s,6).toLowerCase()==="decade"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(hv)),T===r&&(t.substr(s,3).toLowerCase()==="dow"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(h)),T===r&&(t.substr(s,3).toLowerCase()==="doy"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(ss)),T===r&&(t.substr(s,5).toLowerCase()==="epoch"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(Xl)),T===r&&(t.substr(s,4).toLowerCase()==="hour"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(d0)),T===r&&(t.substr(s,6).toLowerCase()==="isodow"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Bf)),T===r&&(t.substr(s,7).toLowerCase()==="isoyear"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(jt)),T===r&&(t.substr(s,12).toLowerCase()==="microseconds"?(T=t.substr(s,12),s+=12):(T=r,ir===0&&ut(Us)),T===r&&(t.substr(s,10).toLowerCase()==="millennium"?(T=t.substr(s,10),s+=10):(T=r,ir===0&&ut(ol)),T===r&&(t.substr(s,12).toLowerCase()==="milliseconds"?(T=t.substr(s,12),s+=12):(T=r,ir===0&&ut(sb)),T===r&&(t.substr(s,6).toLowerCase()==="minute"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(eb)),T===r&&(t.substr(s,5).toLowerCase()==="month"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(p)),T===r&&(t.substr(s,7).toLowerCase()==="quarter"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(ns)),T===r&&(t.substr(s,6).toLowerCase()==="second"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Vl)),T===r&&(t.substr(s,8).toLowerCase()==="timezone"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Hc)),T===r&&(t.substr(s,13).toLowerCase()==="timezone_hour"?(T=t.substr(s,13),s+=13):(T=r,ir===0&&ut(Ub)),T===r&&(t.substr(s,15).toLowerCase()==="timezone_minute"?(T=t.substr(s,15),s+=15):(T=r,ir===0&&ut(Ft)),T===r&&(t.substr(s,4).toLowerCase()==="week"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(xs)),T===r&&(t.substr(s,4).toLowerCase()==="year"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Li))))))))))))))))))))))),T!==r&&(er=v,T=T),v=T}function fd(){var v;return(v=(function(){var T=s,D,V,Ur;return t.substr(s,12).toLowerCase()==="current_date"?(D=t.substr(s,12),s+=12):(D=r,ir===0&&ut(Fr)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="CURRENT_DATE")),T})())===r&&(v=(function(){var T=s,D,V,Ur;return t.substr(s,12).toLowerCase()==="current_time"?(D=t.substr(s,12),s+=12):(D=r,ir===0&&ut(It)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="CURRENT_TIME")),T})())===r&&(v=Xn()),v}function w(){var v,T,D,V;return v=s,t.charCodeAt(s)===34?(T='"',s++):(T=r,ir===0&&ut(ps)),T===r&&(T=null),T!==r&&(D=Ed())!==r?(t.charCodeAt(s)===34?(V='"',s++):(V=r,ir===0&&ut(ps)),V===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T=(function(Ur,zr,Br){if(Ur&&!Br||!Ur&&Br)throw Error("double quoted not match");return Ur&&Br&&(zr.quoted='"'),zr})(T,D,V))):(s=v,v=r),v}function G(){var v,T,D,V,Ur,zr;if(v=s,T=[],D=s,(V=Ne())!==r&&(Ur=kr())!==r&&(zr=w())!==r?D=V=[V,Ur,zr]:(s=D,D=r),D!==r)for(;D!==r;)T.push(D),D=s,(V=Ne())!==r&&(Ur=kr())!==r&&(zr=w())!==r?D=V=[V,Ur,zr]:(s=D,D=r);else T=r;return T!==r&&(D=kr())!==r?((V=cu())===r&&(V=null),V===r?(s=v,v=r):(er=v,v=T={as:V,symbol:"::",target:T.map(Br=>Br[2])})):(s=v,v=r),v}function z(){var v;return(v=Pt())===r&&(v=as())===r&&(v=Qr())===r&&(v=Gr())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br;if((D=St())===r&&(D=_r())===r&&(D=Kt())===r&&(D=$r()),D!==r)if(kr()!==r){if(V=s,t.charCodeAt(s)===39?(Ur="'",s++):(Ur=r,ir===0&&ut(ft)),Ur!==r){for(zr=[],Br=An();Br!==r;)zr.push(Br),Br=An();zr===r?(s=V,V=r):(t.charCodeAt(s)===39?(Br="'",s++):(Br=r,ir===0&&ut(ft)),Br===r?(s=V,V=r):V=Ur=[Ur,zr,Br])}else s=V,V=r;V===r?(s=T,T=r):(er=T,wt=V,D={type:D.toLowerCase(),value:wt[1].join("")},T=D)}else s=T,T=r;else s=T,T=r;var wt;if(T===r)if(T=s,(D=St())===r&&(D=_r())===r&&(D=Kt())===r&&(D=$r()),D!==r)if(kr()!==r){if(V=s,t.charCodeAt(s)===34?(Ur='"',s++):(Ur=r,ir===0&&ut(ps)),Ur!==r){for(zr=[],Br=Rn();Br!==r;)zr.push(Br),Br=Rn();zr===r?(s=V,V=r):(t.charCodeAt(s)===34?(Br='"',s++):(Br=r,ir===0&&ut(ps)),Br===r?(s=V,V=r):V=Ur=[Ur,zr,Br])}else s=V,V=r;V===r?(s=T,T=r):(er=T,D=(function(qt,un){return{type:qt.toLowerCase(),value:un[1].join("")}})(D,V),T=D)}else s=T,T=r;else s=T,T=r;return T})())===r&&(v=g()),v}function g(){var v,T;return v=s,N()!==r&&kr()!==r&&vd()!==r&&kr()!==r?((T=pc())===r&&(T=null),T!==r&&kr()!==r&&pd()!==r?(er=v,v=(function(D,V){return{expr_list:V||{type:"origin",value:""},type:"array",keyword:"array",brackets:!0}})(0,T)):(s=v,v=r)):(s=v,v=r),v}function Gr(){var v,T;return v=s,(T=lu())!==r&&(er=v,T={type:"null",value:null}),v=T}function Vr(){var v,T;return v=s,(T=(function(){var D=s,V,Ur,zr;return t.substr(s,8).toLowerCase()==="not null"?(V=t.substr(s,8),s+=8):(V=r,ir===0&&ut(K0)),V===r?(s=D,D=r):(Ur=s,ir++,zr=Gs(),ir--,zr===r?Ur=void 0:(s=Ur,Ur=r),Ur===r?(s=D,D=r):D=V=[V,Ur]),D})())!==r&&(er=v,T={type:"not null",value:"not null"}),v=T}function Qr(){var v,T;return v=s,(T=(function(){var D=s,V,Ur,zr;return t.substr(s,4).toLowerCase()==="true"?(V=t.substr(s,4),s+=4):(V=r,ir===0&&ut(Af)),V===r?(s=D,D=r):(Ur=s,ir++,zr=Gs(),ir--,zr===r?Ur=void 0:(s=Ur,Ur=r),Ur===r?(s=D,D=r):D=V=[V,Ur]),D})())!==r&&(er=v,T={type:"bool",value:!0}),(v=T)===r&&(v=s,(T=(function(){var D=s,V,Ur,zr;return t.substr(s,5).toLowerCase()==="false"?(V=t.substr(s,5),s+=5):(V=r,ir===0&&ut(El)),V===r?(s=D,D=r):(Ur=s,ir++,zr=Gs(),ir--,zr===r?Ur=void 0:(s=Ur,Ur=r),Ur===r?(s=D,D=r):D=V=[V,Ur]),D})())!==r&&(er=v,T={type:"bool",value:!1}),v=T),v}function Pt(){var v,T,D,V,Ur,zr,Br,wt,qt;if(v=s,T=s,t.charCodeAt(s)===39?(D="'",s++):(D=r,ir===0&&ut(ft)),D!==r){for(V=[],Ur=An();Ur!==r;)V.push(Ur),Ur=An();V===r?(s=T,T=r):(t.charCodeAt(s)===39?(Ur="'",s++):(Ur=r,ir===0&&ut(ft)),Ur===r?(s=T,T=r):T=D=[D,V,Ur])}else s=T,T=r;if(T!==r){if(D=[],x0.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Zn)),V!==r)for(;V!==r;)D.push(V),x0.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Zn));else D=r;if(D!==r)if((V=kr())!==r){if(Ur=s,t.charCodeAt(s)===39?(zr="'",s++):(zr=r,ir===0&&ut(ft)),zr!==r){for(Br=[],wt=An();wt!==r;)Br.push(wt),wt=An();Br===r?(s=Ur,Ur=r):(t.charCodeAt(s)===39?(wt="'",s++):(wt=r,ir===0&&ut(ft)),wt===r?(s=Ur,Ur=r):Ur=zr=[zr,Br,wt])}else s=Ur,Ur=r;Ur===r?(s=v,v=r):(er=v,qt=Ur,v=T={type:"single_quote_string",value:`${T[1].join("")}${qt[1].join("")}`})}else s=v,v=r;else s=v,v=r}else s=v,v=r;if(v===r){if(v=s,T=s,t.charCodeAt(s)===39?(D="'",s++):(D=r,ir===0&&ut(ft)),D!==r){for(V=[],Ur=An();Ur!==r;)V.push(Ur),Ur=An();V===r?(s=T,T=r):(t.charCodeAt(s)===39?(Ur="'",s++):(Ur=r,ir===0&&ut(ft)),Ur===r?(s=T,T=r):T=D=[D,V,Ur])}else s=T,T=r;T!==r&&(er=v,T=(function(un){return{type:"single_quote_string",value:un[1].join("")}})(T)),(v=T)===r&&(v=wn())}return v}function wn(){var v,T,D,V,Ur;if(v=s,T=s,t.charCodeAt(s)===34?(D='"',s++):(D=r,ir===0&&ut(ps)),D!==r){for(V=[],Ur=Rn();Ur!==r;)V.push(Ur),Ur=Rn();V===r?(s=T,T=r):(t.charCodeAt(s)===34?(Ur='"',s++):(Ur=r,ir===0&&ut(ps)),Ur===r?(s=T,T=r):T=D=[D,V,Ur])}else s=T,T=r;return T===r?(s=v,v=r):(D=s,ir++,V=Ga(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T={type:"double_quote_string",value:T[1].join("")})),v}function Rn(){var v;return kb.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(U0)),v===r&&(v=Mn()),v}function An(){var v;return C.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(Kn)),v===r&&(v=Mn()),v}function Mn(){var v,T,D,V,Ur,zr,Br,wt,qt,un;return v=s,t.substr(s,2)==="\\'"?(T="\\'",s+=2):(T=r,ir===0&&ut(zi)),T!==r&&(er=v,T="\\'"),(v=T)===r&&(v=s,t.substr(s,2)==='\\"'?(T='\\"',s+=2):(T=r,ir===0&&ut(Kl)),T!==r&&(er=v,T='\\"'),(v=T)===r&&(v=s,t.substr(s,2)==="\\\\"?(T="\\\\",s+=2):(T=r,ir===0&&ut(zl)),T!==r&&(er=v,T="\\\\"),(v=T)===r&&(v=s,t.substr(s,2)==="\\/"?(T="\\/",s+=2):(T=r,ir===0&&ut(Ot)),T!==r&&(er=v,T="\\/"),(v=T)===r&&(v=s,t.substr(s,2)==="\\b"?(T="\\b",s+=2):(T=r,ir===0&&ut(hs)),T!==r&&(er=v,T="\b"),(v=T)===r&&(v=s,t.substr(s,2)==="\\f"?(T="\\f",s+=2):(T=r,ir===0&&ut(Yi)),T!==r&&(er=v,T="\f"),(v=T)===r&&(v=s,t.substr(s,2)==="\\n"?(T="\\n",s+=2):(T=r,ir===0&&ut(hl)),T!==r&&(er=v,T=` +`),(v=T)===r&&(v=s,t.substr(s,2)==="\\r"?(T="\\r",s+=2):(T=r,ir===0&&ut(L0)),T!==r&&(er=v,T="\r"),(v=T)===r&&(v=s,t.substr(s,2)==="\\t"?(T="\\t",s+=2):(T=r,ir===0&&ut(Bn)),T!==r&&(er=v,T=" "),(v=T)===r&&(v=s,t.substr(s,2)==="\\u"?(T="\\u",s+=2):(T=r,ir===0&&ut(Qb)),T!==r&&(D=No())!==r&&(V=No())!==r&&(Ur=No())!==r&&(zr=No())!==r?(er=v,Br=D,wt=V,qt=Ur,un=zr,v=T=String.fromCharCode(parseInt("0x"+Br+wt+qt+un))):(s=v,v=r),v===r&&(v=s,t.charCodeAt(s)===92?(T="\\",s++):(T=r,ir===0&&ut(C0)),T!==r&&(er=v,T="\\"),(v=T)===r&&(v=s,t.substr(s,2)==="''"?(T="''",s+=2):(T=r,ir===0&&ut(Hf)),T!==r&&(er=v,T="''"),v=T))))))))))),v}function as(){var v,T,D;return v=s,(T=(function(){var V;return(V=_s())===r&&(V=cs()),V})())!==r&&(er=v,T=(D=T)&&typeof D=="object"?D:{type:"number",value:D}),v=T}function cs(){var v,T,D;return v=s,(T=we())!==r&&(D=jr())!==r?(er=v,v=T={type:"bigint",value:T+D}):(s=v,v=r),v===r&&(v=s,(T=we())!==r&&(er=v,T=(function(V){return iL(V)?{type:"bigint",value:V}:{type:"number",value:parseFloat(V)}})(T)),v=T),v}function _s(){var v,T,D,V;return v=s,(T=we())===r&&(T=null),T!==r&&(D=Pe())!==r&&(V=jr())!==r?(er=v,v=T={type:"bigint",value:(T||"")+D+V}):(s=v,v=r),v===r&&(v=s,(T=we())===r&&(T=null),T!==r&&(D=Pe())!==r?(er=v,v=T=(function(Ur,zr){let Br=(Ur||"")+zr;return Ur&&iL(Ur)?{type:"bigint",value:Br}:parseFloat(Br).toFixed(zr.length-1)})(T,D)):(s=v,v=r)),v}function we(){var v,T,D;return(v=oo())===r&&(v=Bo())===r&&(v=s,t.charCodeAt(s)===45?(T="-",s++):(T=r,ir===0&&ut(jv)),T===r&&(t.charCodeAt(s)===43?(T="+",s++):(T=r,ir===0&&ut(sp))),T!==r&&(D=oo())!==r?(er=v,v=T+=D):(s=v,v=r),v===r&&(v=s,t.charCodeAt(s)===45?(T="-",s++):(T=r,ir===0&&ut(jv)),T===r&&(t.charCodeAt(s)===43?(T="+",s++):(T=r,ir===0&&ut(sp))),T!==r&&(D=Bo())!==r?(er=v,v=T=(function(V,Ur){return V+Ur})(T,D)):(s=v,v=r))),v}function Pe(){var v,T,D;return v=s,t.charCodeAt(s)===46?(T=".",s++):(T=r,ir===0&&ut(Wi)),T!==r&&(D=oo())!==r?(er=v,v=T="."+D):(s=v,v=r),v}function jr(){var v,T,D;return v=s,(T=(function(){var V=s,Ur,zr;ob.test(t.charAt(s))?(Ur=t.charAt(s),s++):(Ur=r,ir===0&&ut(V0)),Ur===r?(s=V,V=r):(hf.test(t.charAt(s))?(zr=t.charAt(s),s++):(zr=r,ir===0&&ut(Ef)),zr===r&&(zr=null),zr===r?(s=V,V=r):(er=V,V=Ur+=(Br=zr)===null?"":Br));var Br;return V})())!==r&&(D=oo())!==r?(er=v,v=T+=D):(s=v,v=r),v}function oo(){var v,T,D;if(v=s,T=[],(D=Bo())!==r)for(;D!==r;)T.push(D),D=Bo();else T=r;return T!==r&&(er=v,T=T.join("")),v=T}function Bo(){var v;return wa.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(Oa)),v}function No(){var v;return ti.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(We)),v}function lu(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="null"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Xf)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function ru(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="default"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Of)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Me(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="to"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(Ss)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function _u(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="show"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(w0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function mo(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="drop"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(ul)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DROP")),v}function ho(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="alter"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(mf)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Mo(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="select"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(z0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Fo(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="update"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(ub)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Gu(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="create"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Su)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Ko(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="temporary"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(Al)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Wr(){var v,T,D,V;return v=s,t.substr(s,8)==="UNLOGGED"?(T="UNLOGGED",s+=8):(T=r,ir===0&&ut(D0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="UNLOGGED")),v}function Aa(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="temp"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Ac)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Lc(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="delete"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(mc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Fu(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="insert"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Tc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Pi(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="recursive"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(y0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="RECURSIVE")),v}function F0(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="replace"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(bi)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Zu(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="rename"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(lc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Hr(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="ignore"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(_p)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function pi(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="partition"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(Ic)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="PARTITION")),v}function L(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="into"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(ab)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function M(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="from"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(J0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function q(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="set"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(iv)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="SET")),v}function rr(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="as"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(Pc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Dr(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="table"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(qb)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="TABLE")),v}function Xr(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="database"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(ma)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DATABASE")),v}function Jr(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="schema"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Hs)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="SCHEMA")),v}function Mt(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="sequence"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Sa)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="SEQUENCE")),v}function nn(){var v,T,D,V;return v=s,t.substr(s,10).toLowerCase()==="tablespace"?(T=t.substr(s,10),s+=10):(T=r,ir===0&&ut(ml)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="TABLESPACE")),v}function On(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="on"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(gl)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function fr(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="join"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Q0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function os(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="outer"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(ib)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Es(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="values"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Ii)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function ls(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="using"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(Ge)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function ws(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="with"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Nb)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function de(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="group"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(gf)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function E(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="by"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(db)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function U(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="order"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(Zl)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function Z(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="asc"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(n)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="ASC")),v}function sr(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="desc"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(st)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DESC")),v}function xr(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="all"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(gi)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="ALL")),v}function Sr(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="distinct"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(xa)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DISTINCT")),v}function tt(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="between"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Ra)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="BETWEEN")),v}function Ct(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="in"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(Os)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="IN")),v}function Xt(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="is"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(wp)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="IS")),v}function Vt(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="like"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(or)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="LIKE")),v}function In(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="ilike"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(Nt)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="ILIKE")),v}function Tn(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="exists"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(ju)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="EXISTS")),v}function jn(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="not"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(vb)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="NOT")),v}function ts(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="and"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(Il)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="AND")),v}function d(){var v,T,D,V;return v=s,t.substr(s,2).toLowerCase()==="or"?(T=t.substr(s,2),s+=2):(T=r,ir===0&&ut(Wc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="OR")),v}function N(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="array"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(Kr)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="ARRAY")),v}function H(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="extract"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Qu)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="EXTRACT")),v}function X(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="case"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(gc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function lr(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="when"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(al)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function wr(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="else"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Jl)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function i(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="end"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(Tb)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):v=T=[T,D]),v}function b(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="cast"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(qc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="CAST")),v}function m(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="numeric"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(dn)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="NUMERIC")),v}function x(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="decimal"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Ql)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DECIMAL")),v}function tr(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="unsigned"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(Va)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="UNSIGNED")),v}function Cr(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="int"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(lt)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="INT")),v}function gr(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="integer"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(Eu)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="INTEGER")),v}function Yr(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="smallint"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(nf)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="SMALLINT")),v}function Rt(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="serial"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(E0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="SERIAL")),v}function gt(){var v,T,D,V;return v=s,t.substr(s,11).toLowerCase()==="smallserial"?(T=t.substr(s,11),s+=11):(T=r,ir===0&&ut(kl)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="SMALLSERIAL")),v}function Gt(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="tinyint"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(oi)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="TINYINT")),v}function rn(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="mediumint"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(il)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="MEDIUMINT")),v}function xn(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="bigint"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(zu)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="BIGINT")),v}function f(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="enum"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Yu)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="ENUM")),v}function y(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="float"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(lb)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="FLOAT")),v}function S(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="double"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Mi)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DOUBLE")),v}function W(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="bigserial"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(ha)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="BIGSERIAL")),v}function vr(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="real"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Ha)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="REAL")),v}function _r(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="date"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Jb)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DATE")),v}function $r(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="datetime"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(ln)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="DATETIME")),v}function at(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="rows"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(r0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="ROWS")),v}function St(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="time"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Oe)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="TIME")),v}function Kt(){var v,T,D,V;return v=s,t.substr(s,9).toLowerCase()==="timestamp"?(T=t.substr(s,9),s+=9):(T=r,ir===0&&ut(Di)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="TIMESTAMP")),v}function sn(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="truncate"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(ni)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="TRUNCATE")),v}function Nn(){var v,T,D,V;return v=s,t.substr(s,8).toLowerCase()==="interval"?(T=t.substr(s,8),s+=8):(T=r,ir===0&&ut(dr)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="INTERVAL")),v}function Xn(){var v,T,D,V;return v=s,t.substr(s,17).toLowerCase()==="current_timestamp"?(T=t.substr(s,17),s+=17):(T=r,ir===0&&ut(Dt)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="CURRENT_TIMESTAMP")),v}function Gn(){var v,T,D,V;return v=s,t.substr(s,12).toLowerCase()==="current_user"?(T=t.substr(s,12),s+=12):(T=r,ir===0&&ut(zf)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="CURRENT_USER")),v}function fs(){var v,T,D,V;return v=s,t.substr(s,12).toLowerCase()==="current_role"?(T=t.substr(s,12),s+=12):(T=r,ir===0&&ut(_0)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="CURRENT_ROLE")),v}function Ts(){var v,T,D,V;return v=s,t.substr(s,12).toLowerCase()==="session_user"?(T=t.substr(s,12),s+=12):(T=r,ir===0&&ut(je)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="SESSION_USER")),v}function Ms(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="local"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(pe)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="LOCAL")),v}function Vs(){var v,T,D,V;return v=s,t.substr(s,4).toLowerCase()==="view"?(T=t.substr(s,4),s+=4):(T=r,ir===0&&ut(Q)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="VIEW")),v}function se(){var v;return t.charCodeAt(s)===36?(v="$",s++):(v=r,ir===0&&ut(td)),v}function Re(){var v;return t.substr(s,2)==="$$"?(v="$$",s+=2):(v=r,ir===0&&ut(hr)),v}function oe(){var v;return(v=(function(){var T;return t.substr(s,2)==="@@"?(T="@@",s+=2):(T=r,ir===0&&ut(P)),T})())===r&&(v=(function(){var T;return t.charCodeAt(s)===64?(T="@",s++):(T=r,ir===0&&ut(Tr)),T})())===r&&(v=se())===r&&(v=se()),v}function Ne(){var v;return t.substr(s,2)==="::"?(v="::",s+=2):(v=r,ir===0&&ut(ht)),v}function ze(){var v;return t.charCodeAt(s)===61?(v="=",s++):(v=r,ir===0&&ut(te)),v}function to(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="add"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(Pr)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="ADD")),v}function Lo(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="column"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(fp)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="COLUMN")),v}function wo(){var v,T,D,V;return v=s,t.substr(s,5).toLowerCase()==="index"?(T=t.substr(s,5),s+=5):(T=r,ir===0&&ut(Mr)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="INDEX")),v}function jo(){var v,T,D,V;return v=s,t.substr(s,3).toLowerCase()==="key"?(T=t.substr(s,3),s+=3):(T=r,ir===0&&ut(ff)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="KEY")),v}function Ku(){var v,T,D,V;return v=s,t.substr(s,6).toLowerCase()==="unique"?(T=t.substr(s,6),s+=6):(T=r,ir===0&&ut(Rl)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="UNIQUE")),v}function za(){var v,T,D,V;return v=s,t.substr(s,7).toLowerCase()==="comment"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(gb)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="COMMENT")),v}function ci(){var v,T,D,V;return v=s,t.substr(s,10).toLowerCase()==="constraint"?(T=t.substr(s,10),s+=10):(T=r,ir===0&&ut(oc)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="CONSTRAINT")),v}function uf(){var v,T,D,V;return v=s,t.substr(s,12).toLowerCase()==="concurrently"?(T=t.substr(s,12),s+=12):(T=r,ir===0&&ut(K)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="CONCURRENTLY")),v}function Iv(){var v,T,D,V;return v=s,t.substr(s,10).toLowerCase()==="references"?(T=t.substr(s,10),s+=10):(T=r,ir===0&&ut(kt)),T===r?(s=v,v=r):(D=s,ir++,V=Gs(),ir--,V===r?D=void 0:(s=D,D=r),D===r?(s=v,v=r):(er=v,v=T="REFERENCES")),v}function Ga(){var v;return t.charCodeAt(s)===46?(v=".",s++):(v=r,ir===0&&ut(Wi)),v}function du(){var v;return t.charCodeAt(s)===44?(v=",",s++):(v=r,ir===0&&ut(zo)),v}function id(){var v;return t.charCodeAt(s)===42?(v="*",s++):(v=r,ir===0&&ut(Tp)),v}function Ho(){var v;return t.charCodeAt(s)===40?(v="(",s++):(v=r,ir===0&&ut(O0)),v}function Lu(){var v;return t.charCodeAt(s)===41?(v=")",s++):(v=r,ir===0&&ut(v0)),v}function vd(){var v;return t.charCodeAt(s)===91?(v="[",s++):(v=r,ir===0&&ut(no)),v}function pd(){var v;return t.charCodeAt(s)===93?(v="]",s++):(v=r,ir===0&&ut(Ke)),v}function dd(){var v;return t.charCodeAt(s)===59?(v=";",s++):(v=r,ir===0&&ut(ac)),v}function Jd(){var v;return t.substr(s,2)==="->"?(v="->",s+=2):(v=r,ir===0&&ut(yo)),v}function Qd(){var v;return t.substr(s,3)==="->>"?(v="->>",s+=3):(v=r,ir===0&&ut(lo)),v}function Ud(){var v;return(v=(function(){var T;return t.substr(s,2)==="||"?(T="||",s+=2):(T=r,ir===0&&ut(Ip)),T})())===r&&(v=(function(){var T;return t.substr(s,2)==="&&"?(T="&&",s+=2):(T=r,ir===0&&ut(Co)),T})()),v}function kr(){var v,T;for(v=[],(T=Dd())===r&&(T=kd());T!==r;)v.push(T),(T=Dd())===r&&(T=kd());return v}function Od(){var v,T;if(v=[],(T=Dd())===r&&(T=kd()),T!==r)for(;T!==r;)v.push(T),(T=Dd())===r&&(T=kd());else v=r;return v}function kd(){var v;return(v=(function T(){var D=s,V,Ur,zr,Br,wt,qt;if(t.substr(s,2)==="/*"?(V="/*",s+=2):(V=r,ir===0&&ut(Au)),V!==r){for(Ur=[],zr=s,Br=s,ir++,t.substr(s,2)==="*/"?(wt="*/",s+=2):(wt=r,ir===0&&ut(la)),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=zr,zr=r):(wt=s,ir++,t.substr(s,2)==="/*"?(qt="/*",s+=2):(qt=r,ir===0&&ut(Au)),ir--,qt===r?wt=void 0:(s=wt,wt=r),wt!==r&&(qt=Md())!==r?zr=Br=[Br,wt,qt]:(s=zr,zr=r)),zr===r&&(zr=T());zr!==r;)Ur.push(zr),zr=s,Br=s,ir++,t.substr(s,2)==="*/"?(wt="*/",s+=2):(wt=r,ir===0&&ut(la)),ir--,wt===r?Br=void 0:(s=Br,Br=r),Br===r?(s=zr,zr=r):(wt=s,ir++,t.substr(s,2)==="/*"?(qt="/*",s+=2):(qt=r,ir===0&&ut(Au)),ir--,qt===r?wt=void 0:(s=wt,wt=r),wt!==r&&(qt=Md())!==r?zr=Br=[Br,wt,qt]:(s=zr,zr=r)),zr===r&&(zr=T());Ur===r?(s=D,D=r):(t.substr(s,2)==="*/"?(zr="*/",s+=2):(zr=r,ir===0&&ut(la)),zr===r?(s=D,D=r):D=V=[V,Ur,zr])}else s=D,D=r;return D})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br;if(t.substr(s,2)==="--"?(D="--",s+=2):(D=r,ir===0&&ut(da)),D!==r){for(V=[],Ur=s,zr=s,ir++,Br=nL(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr!==r&&(Br=Md())!==r?Ur=zr=[zr,Br]:(s=Ur,Ur=r);Ur!==r;)V.push(Ur),Ur=s,zr=s,ir++,Br=nL(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr!==r&&(Br=Md())!==r?Ur=zr=[zr,Br]:(s=Ur,Ur=r);V===r?(s=T,T=r):T=D=[D,V]}else s=T,T=r;return T})()),v}function rL(){var v,T,D,V;return v=s,(T=za())!==r&&kr()!==r?((D=ze())===r&&(D=null),D!==r&&kr()!==r&&(V=Pt())!==r?(er=v,v=T=(function(Ur,zr,Br){return{type:Ur.toLowerCase(),keyword:Ur.toLowerCase(),symbol:zr,value:Br}})(T,D,V)):(s=v,v=r)):(s=v,v=r),v}function Md(){var v;return t.length>s?(v=t.charAt(s),s++):(v=r,ir===0&&ut(Ia)),v}function tL(){var v;return(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,4).toLowerCase()==="year"?(D=t.substr(s,4),s+=4):(D=r,ir===0&&ut(Li)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="YEAR")),T})())===r&&(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,5).toLowerCase()==="month"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(p)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="MONTH")),T})())===r&&(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,3).toLowerCase()==="day"?(D=t.substr(s,3),s+=3):(D=r,ir===0&&ut(yv)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="DAY")),T})())===r&&(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,4).toLowerCase()==="hour"?(D=t.substr(s,4),s+=4):(D=r,ir===0&&ut(d0)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="HOUR")),T})())===r&&(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,6).toLowerCase()==="minute"?(D=t.substr(s,6),s+=6):(D=r,ir===0&&ut(eb)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="MINUTE")),T})())===r&&(v=(function(){var T,D,V,Ur;return T=s,t.substr(s,6).toLowerCase()==="second"?(D=t.substr(s,6),s+=6):(D=r,ir===0&&ut(Vl)),D===r?(s=T,T=r):(V=s,ir++,Ur=Gs(),ir--,Ur===r?V=void 0:(s=V,V=r),V===r?(s=T,T=r):(er=T,T=D="SECOND")),T})()),v}function Dd(){var v;return Wt.test(t.charAt(s))?(v=t.charAt(s),s++):(v=r,ir===0&&ut(ta)),v}function nL(){var v,T;if((v=(function(){var D=s,V;return ir++,t.length>s?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Ia)),ir--,V===r?D=void 0:(s=D,D=r),D})())===r)if(v=[],k0.test(t.charAt(s))?(T=t.charAt(s),s++):(T=r,ir===0&&ut(M0)),T!==r)for(;T!==r;)v.push(T),k0.test(t.charAt(s))?(T=t.charAt(s),s++):(T=r,ir===0&&ut(M0));else v=r;return v}function sL(){var v,T;return v=s,er=s,Vd=[],r!==void 0&&kr()!==r?((T=$d())===r&&(T=eL()),T===r?(s=v,v=r):(er=v,v={type:"proc",stmt:T,vars:Vd})):(s=v,v=r),v}function $d(){var v,T,D,V,Ur,zr;return(v=(function(){var Br,wt,qt,un,Sn;return Br=s,St()!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="zone"?(wt=t.substr(s,4),s+=4):(wt=r,ir===0&&ut(Ff)),wt!==r&&kr()!==r&&(qt=Si())!==r&&kr()!==r&&(un=Me())!==r&&kr()!==r&&(Sn=tL())!==r?(er=Br,Br={type:"assign",left:{type:"expr_list",value:[{type:"origin",value:"time zone"},qt],separator:" "},symbol:"to",right:{type:"origin",value:Sn}}):(s=Br,Br=r)):(s=Br,Br=r),Br===r&&(Br=s,St()!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="zone"?(wt=t.substr(s,4),s+=4):(wt=r,ir===0&&ut(Ff)),wt!==r&&kr()!==r?((qt=Me())===r&&(qt=null),qt!==r&&kr()!==r?((un=as())===r&&(un=Pt())===r&&(un=Ms())===r&&(t.substr(s,7).toLowerCase()==="default"?(un=t.substr(s,7),s+=7):(un=r,ir===0&&ut(li))),un===r?(s=Br,Br=r):(er=Br,Br=(function(Fn,es){return{type:"assign",left:{type:"origin",value:"time zone"},symbol:Fn?"to":null,right:typeof es=="string"?{type:"origin",value:es}:es}})(qt,un))):(s=Br,Br=r)):(s=Br,Br=r)):(s=Br,Br=r)),Br})())===r&&(v=s,(T=Ad())===r&&(T=qd()),T!==r&&kr()!==r?((D=(function(){var Br;return t.substr(s,2)===":="?(Br=":=",s+=2):(Br=r,ir===0&&ut(ji)),Br})())===r&&(D=ze())===r&&(D=Me()),D!==r&&kr()!==r&&(V=oL())!==r?(er=v,Ur=D,zr=V,v=T={type:"assign",left:T,symbol:Array.isArray(Ur)?Ur[0]:Ur,right:zr}):(s=v,v=r)):(s=v,v=r)),v}function eL(){var v,T;return v=s,(function(){var D,V,Ur,zr;return D=s,t.substr(s,6).toLowerCase()==="return"?(V=t.substr(s,6),s+=6):(V=r,ir===0&&ut(Yc)),V===r?(s=D,D=r):(Ur=s,ir++,zr=Gs(),ir--,zr===r?Ur=void 0:(s=Ur,Ur=r),Ur===r?(s=D,D=r):(er=D,D=V="RETURN")),D})()!==r&&kr()!==r&&(T=oL())!==r?(er=v,v={type:"return",expr:T}):(s=v,v=r),v}function oL(){var v;return(v=hu())===r&&(v=(function(){var T=s,D,V,Ur,zr;return(D=Ad())!==r&&kr()!==r&&(V=ad())!==r&&kr()!==r&&(Ur=Ad())!==r&&kr()!==r&&(zr=A0())!==r?(er=T,T=D={type:"join",ltable:D,rtable:Ur,op:V,on:zr}):(s=T,T=r),T})())===r&&(v=uL())===r&&(v=(function(){var T=s,D;return vd()!==r&&kr()!==r&&(D=Wd())!==r&&kr()!==r&&pd()!==r?(er=T,T={type:"array",value:D}):(s=T,T=r),T})()),v}function uL(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Hd())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=$l())!==r&&(Br=kr())!==r&&(wt=Hd())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=$l())!==r&&(Br=kr())!==r&&(wt=Hd())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Gv(T,D))}else s=v,v=r;return v}function Hd(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Nd())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=G0())!==r&&(Br=kr())!==r&&(wt=Nd())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=G0())!==r&&(Br=kr())!==r&&(wt=Nd())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Gv(T,D))}else s=v,v=r;return v}function Nd(){var v,T,D,V,Ur,zr,Br,wt,qt;return(v=z())===r&&(v=Ad())===r&&(v=Yd())===r&&(v=wu())===r&&(v=s,(T=Ho())!==r&&(D=kr())!==r&&(V=uL())!==r&&(Ur=kr())!==r&&(zr=Lu())!==r?(er=v,(qt=V).parentheses=!0,v=T=qt):(s=v,v=r),v===r&&(v=s,(T=$e())===r?(s=v,v=r):(D=s,(V=Ga())!==r&&(Ur=kr())!==r&&(zr=$e())!==r?D=V=[V,Ur,zr]:(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(er=v,Br=T,v=T=(wt=D)?{type:"column_ref",table:Br,column:wt[2]}:{type:"var",name:Br,prefix:null})))),v}function xd(){var v,T,D,V,Ur,zr,Br;return v=s,(T=Er())===r?(s=v,v=r):(D=s,(V=kr())!==r&&(Ur=Ga())!==r&&(zr=kr())!==r&&(Br=Er())!==r?D=V=[V,Ur,zr,Br]:(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(wt,qt){let un={name:[wt]};return qt!==null&&(un.schema=wt,un.name=[qt[3]]),un})(T,D))),v}function Yd(){var v,T,D;return v=s,(T=xd())!==r&&kr()!==r&&Ho()!==r&&kr()!==r?((D=Wd())===r&&(D=null),D!==r&&kr()!==r&&Lu()!==r?(er=v,v=T=(function(V,Ur){return{type:"function",name:V,args:{type:"expr_list",value:Ur},...Cd()}})(T,D)):(s=v,v=r)):(s=v,v=r),v}function Wd(){var v,T,D,V,Ur,zr,Br,wt;if(v=s,(T=Nd())!==r){for(D=[],V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Nd())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);V!==r;)D.push(V),V=s,(Ur=kr())!==r&&(zr=du())!==r&&(Br=kr())!==r&&(wt=Nd())!==r?V=Ur=[Ur,zr,Br,wt]:(s=V,V=r);D===r?(s=v,v=r):(er=v,v=T=Vc(T,D))}else s=v,v=r;return v}function Ad(){var v,T,D,V,Ur,zr,Br;if(v=s,(T=Re())!==r){for(D=[],ea.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Ml));V!==r;)D.push(V),ea.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Ml));D!==r&&(V=Re())!==r?(er=v,v=T={type:"var",name:D.join(""),prefix:"$$",suffix:"$$"}):(s=v,v=r)}else s=v,v=r;if(v===r){if(v=s,(T=se())!==r)if((D=ie())!==r)if((V=se())!==r){for(Ur=[],ea.test(t.charAt(s))?(zr=t.charAt(s),s++):(zr=r,ir===0&&ut(Ml));zr!==r;)Ur.push(zr),ea.test(t.charAt(s))?(zr=t.charAt(s),s++):(zr=r,ir===0&&ut(Ml));Ur!==r&&(zr=se())!==r&&(Br=ie())!==r?(er=s,((function(wt,qt,un){if(wt!==un)return!0})(D,0,Br)?r:void 0)!==r&&se()!==r?(er=v,v=T=(function(wt,qt,un){return{type:"var",name:qt.join(""),prefix:`$${wt}$`,suffix:`$${un}$`}})(D,Ur,Br)):(s=v,v=r)):(s=v,v=r)}else s=v,v=r;else s=v,v=r;else s=v,v=r;v===r&&(v=s,(T=oe())!==r&&(D=qd())!==r?(er=v,v=T=(function(wt,qt){return{type:"var",...qt,prefix:wt}})(T,D)):(s=v,v=r))}return v}function qd(){var v,T,D,V,Ur;return v=s,t.charCodeAt(s)===34?(T='"',s++):(T=r,ir===0&&ut(ps)),T===r&&(T=null),T!==r&&(D=$e())!==r&&(V=(function(){var zr=s,Br=[],wt=s,qt,un;for(t.charCodeAt(s)===46?(qt=".",s++):(qt=r,ir===0&&ut(Wi)),qt!==r&&(un=$e())!==r?wt=qt=[qt,un]:(s=wt,wt=r);wt!==r;)Br.push(wt),wt=s,t.charCodeAt(s)===46?(qt=".",s++):(qt=r,ir===0&&ut(Wi)),qt!==r&&(un=$e())!==r?wt=qt=[qt,un]:(s=wt,wt=r);return Br!==r&&(er=zr,Br=(function(Sn){let Fn=[];for(let es=0;es<Sn.length;es++)Fn.push(Sn[es][1]);return Fn})(Br)),zr=Br})())!==r?(t.charCodeAt(s)===34?(Ur='"',s++):(Ur=r,ir===0&&ut(ps)),Ur===r&&(Ur=null),Ur===r?(s=v,v=r):(er=v,v=T=(function(zr,Br,wt,qt){if(zr&&!qt||!zr&&qt)throw Error("double quoted not match");return Vd.push(Br),{type:"var",name:Br,members:wt,quoted:zr&&qt?'"':null,prefix:null}})(T,D,V,Ur))):(s=v,v=r),v===r&&(v=s,(T=as())!==r&&(er=v,T={type:"var",name:T.value,members:[],quoted:null,prefix:null}),v=T),v}function Ed(){var v;return(v=(function(){var T=s,D,V;(D=Gd())===r&&(D=Pd())===r&&(D=Fd()),D!==r&&kr()!==r&&vd()!==r&&kr()!==r&&(V=pd())!==r&&kr()!==r&&vd()!==r&&kr()!==r&&pd()!==r?(er=T,Ur=D,D={...Ur,array:{dimension:2}},T=D):(s=T,T=r);var Ur;return T===r&&(T=s,(D=Gd())===r&&(D=Pd())===r&&(D=Fd()),D!==r&&kr()!==r&&vd()!==r&&kr()!==r?((V=as())===r&&(V=null),V!==r&&kr()!==r&&pd()!==r?(er=T,D=(function(zr,Br){return{...zr,array:{dimension:1,length:[Br]}}})(D,V),T=D):(s=T,T=r)):(s=T,T=r),T===r&&(T=s,(D=Gd())===r&&(D=Pd())===r&&(D=Fd()),D!==r&&kr()!==r&&N()!==r?(er=T,D=(function(zr){return{...zr,array:{keyword:"array"}}})(D),T=D):(s=T,T=r))),T})())===r&&(v=Pd())===r&&(v=Gd())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un;if((D=_r())===r&&(D=$r()),D!==r){if(V=s,(Ur=kr())!==r)if((zr=Ho())!==r)if((Br=kr())!==r){if(wt=[],wa.test(t.charAt(s))?(qt=t.charAt(s),s++):(qt=r,ir===0&&ut(Oa)),qt!==r)for(;qt!==r;)wt.push(qt),wa.test(t.charAt(s))?(qt=t.charAt(s),s++):(qt=r,ir===0&&ut(Oa));else wt=r;wt!==r&&(qt=kr())!==r&&(un=Lu())!==r?V=Ur=[Ur,zr,Br,wt,qt,un]:(s=V,V=r)}else s=V,V=r;else s=V,V=r;else s=V,V=r;V===r&&(V=null),V===r?(s=T,T=r):(er=T,D=(function(Sn,Fn){let es={dataType:Sn};return Fn&&(es.length=parseInt(Fn[3].join(""),10),es.parentheses=!0),es})(D,V),T=D)}else s=T,T=r;return T===r&&(T=(function(){var Sn=s,Fn,es,Qn,As,Bs,Zs,ae,be;if((Fn=St())===r&&(Fn=Kt())===r&&(Fn=(function(){var he,re,_e,Ze;return he=s,t.substr(s,11).toLowerCase()==="timestamptz"?(re=t.substr(s,11),s+=11):(re=r,ir===0&&ut(Ya)),re===r?(s=he,he=r):(_e=s,ir++,Ze=Gs(),ir--,Ze===r?_e=void 0:(s=_e,_e=r),_e===r?(s=he,he=r):(er=he,he=re="TIMESTAMPTZ")),he})()),Fn!==r){if(es=s,(Qn=kr())!==r)if((As=Ho())!==r)if((Bs=kr())!==r){if(Zs=[],wa.test(t.charAt(s))?(ae=t.charAt(s),s++):(ae=r,ir===0&&ut(Oa)),ae!==r)for(;ae!==r;)Zs.push(ae),wa.test(t.charAt(s))?(ae=t.charAt(s),s++):(ae=r,ir===0&&ut(Oa));else Zs=r;Zs!==r&&(ae=kr())!==r&&(be=Lu())!==r?es=Qn=[Qn,As,Bs,Zs,ae,be]:(s=es,es=r)}else s=es,es=r;else s=es,es=r;else s=es,es=r;es===r&&(es=null),es!==r&&(Qn=kr())!==r?((As=(function(){var he=s,re,_e;return t.substr(s,7).toLowerCase()==="without"?(re=t.substr(s,7),s+=7):(re=r,ir===0&&ut(Ni)),re===r&&(t.substr(s,4).toLowerCase()==="with"?(re=t.substr(s,4),s+=4):(re=r,ir===0&&ut(Nb))),re!==r&&kr()!==r&&St()!==r&&kr()!==r?(t.substr(s,4).toLowerCase()==="zone"?(_e=t.substr(s,4),s+=4):(_e=r,ir===0&&ut(Ff)),_e===r?(s=he,he=r):(er=he,re=[re.toUpperCase(),"TIME","ZONE"],he=re)):(s=he,he=r),he})())===r&&(As=null),As===r?(s=Sn,Sn=r):(er=Sn,Fn=(function(he,re,_e){let Ze={dataType:he};return re&&(Ze.length=parseInt(re[3].join(""),10),Ze.parentheses=!0),_e&&(Ze.suffix=_e),Ze})(Fn,es,As),Sn=Fn)):(s=Sn,Sn=r)}else s=Sn,Sn=r;return Sn})()),T})())===r&&(v=(function(){var T=s,D;return(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,4).toLowerCase()==="json"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(ia)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="JSON")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,5).toLowerCase()==="jsonb"?(Ur=t.substr(s,5),s+=5):(Ur=r,ir===0&&ut(ve)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="JSONB")),V})()),D!==r&&(er=T,D=tl(D)),T=D})())===r&&(v=(function(){var T=s,D,V,Ur,zr,Br,wt,qt,un;(D=(function(){var Fn,es,Qn,As;return Fn=s,t.substr(s,8).toLowerCase()==="geometry"?(es=t.substr(s,8),s+=8):(es=r,ir===0&&ut(Jt)),es===r?(s=Fn,Fn=r):(Qn=s,ir++,As=Gs(),ir--,As===r?Qn=void 0:(s=Qn,Qn=r),Qn===r?(s=Fn,Fn=r):(er=Fn,Fn=es="GEOMETRY")),Fn})())===r?(s=T,T=r):(V=s,(Ur=kr())!==r&&(zr=Ho())!==r&&(Br=kr())!==r&&(wt=(function(){var Fn=s,es,Qn,As,Bs,Zs,ae;if(t.substr(s,5).toLowerCase()==="point"?(es=t.substr(s,5),s+=5):(es=r,ir===0&&ut(Dl)),es===r&&(t.substr(s,10).toLowerCase()==="linestring"?(es=t.substr(s,10),s+=10):(es=r,ir===0&&ut($a)),es===r&&(t.substr(s,7).toLowerCase()==="polygon"?(es=t.substr(s,7),s+=7):(es=r,ir===0&&ut(bc)),es===r&&(t.substr(s,10).toLowerCase()==="multipoint"?(es=t.substr(s,10),s+=10):(es=r,ir===0&&ut(Wu)),es===r&&(t.substr(s,15).toLowerCase()==="multilinestring"?(es=t.substr(s,15),s+=15):(es=r,ir===0&&ut(Zo)),es===r&&(t.substr(s,12).toLowerCase()==="multipolygon"?(es=t.substr(s,12),s+=12):(es=r,ir===0&&ut(wi)),es===r&&(t.substr(s,18).toLowerCase()==="geometrycollection"?(es=t.substr(s,18),s+=18):(es=r,ir===0&&ut(j)))))))),es!==r)if(kr()!==r){if(Qn=s,(As=du())!==r)if((Bs=kr())!==r){if(Zs=[],wa.test(t.charAt(s))?(ae=t.charAt(s),s++):(ae=r,ir===0&&ut(Oa)),ae!==r)for(;ae!==r;)Zs.push(ae),wa.test(t.charAt(s))?(ae=t.charAt(s),s++):(ae=r,ir===0&&ut(Oa));else Zs=r;Zs===r?(s=Qn,Qn=r):Qn=As=[As,Bs,Zs]}else s=Qn,Qn=r;else s=Qn,Qn=r;Qn===r&&(Qn=null),Qn===r?(s=Fn,Fn=r):(er=Fn,es={length:es,scale:(be=Qn)&&be[2]&&parseInt(be[2].join(""),10)},Fn=es)}else s=Fn,Fn=r;else s=Fn,Fn=r;var be;return Fn})())!==r&&(qt=kr())!==r&&(un=Lu())!==r?V=Ur=[Ur,zr,Br,wt,qt,un]:(s=V,V=r),V===r&&(V=null),V===r?(s=T,T=r):(er=T,D={dataType:D,...(Sn=V)&&Sn[3]||{},parentheses:!!Sn},T=D));var Sn;return T})())===r&&(v=Fd())===r&&(v=(function(){var T=s,D;return(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,4).toLowerCase()==="uuid"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut($i)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="UUID")),V})())!==r&&(er=T,D=ur(D)),T=D})())===r&&(v=(function(){var T=s,D;return(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,4).toLowerCase()==="bool"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(Ba)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="BOOL")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,7).toLowerCase()==="boolean"?(Ur=t.substr(s,7),s+=7):(Ur=r,ir===0&&ut(Qi)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="BOOLEAN")),V})()),D!==r&&(er=T,D=Le(D)),T=D})())===r&&(v=(function(){var T=s,D,V;(D=f())!==r&&kr()!==r&&(V=mv())!==r?(er=T,Ur=D,(zr=V).parentheses=!0,T=D={dataType:Ur,expr:zr}):(s=T,T=r);var Ur,zr;return T})())===r&&(v=(function(){var T=s,D;return(D=Rt())===r&&(D=Nn()),D!==r&&(er=T,D=tl(D)),T=D})())===r&&(v=(function(){var T=s,D;return t.substr(s,5).toLowerCase()==="bytea"?(D=t.substr(s,5),s+=5):(D=r,ir===0&&ut(rl)),D!==r&&(er=T,D={dataType:"BYTEA"}),T=D})())===r&&(v=(function(){var T=s,D;return(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,3).toLowerCase()==="oid"?(Ur=t.substr(s,3),s+=3):(Ur=r,ir===0&&ut(ai)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="OID")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,8).toLowerCase()==="regclass"?(Ur=t.substr(s,8),s+=8):(Ur=r,ir===0&&ut(ll)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGCLASS")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,12).toLowerCase()==="regcollation"?(Ur=t.substr(s,12),s+=12):(Ur=r,ir===0&&ut(cl)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGCOLLATION")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,9).toLowerCase()==="regconfig"?(Ur=t.substr(s,9),s+=9):(Ur=r,ir===0&&ut(a)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGCONFIG")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,13).toLowerCase()==="regdictionary"?(Ur=t.substr(s,13),s+=13):(Ur=r,ir===0&&ut(an)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGDICTIONARY")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,12).toLowerCase()==="regnamespace"?(Ur=t.substr(s,12),s+=12):(Ur=r,ir===0&&ut(Ma)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGNAMESPACE")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,7).toLowerCase()==="regoper"?(Ur=t.substr(s,7),s+=7):(Ur=r,ir===0&&ut(Da)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGOPER")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,11).toLowerCase()==="regoperator"?(Ur=t.substr(s,11),s+=11):(Ur=r,ir===0&&ut(ii)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGOPERATOR")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,7).toLowerCase()==="regproc"?(Ur=t.substr(s,7),s+=7):(Ur=r,ir===0&&ut(nt)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGPROC")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,12).toLowerCase()==="regprocedure"?(Ur=t.substr(s,12),s+=12):(Ur=r,ir===0&&ut(o)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGPROCEDURE")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,7).toLowerCase()==="regrole"?(Ur=t.substr(s,7),s+=7):(Ur=r,ir===0&&ut(Zt)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGROLE")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,7).toLowerCase()==="regtype"?(Ur=t.substr(s,7),s+=7):(Ur=r,ir===0&&ut(ba)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="REGTYPE")),V})()),D!==r&&(er=T,D=Le(D)),T=D})())===r&&(v=(function(){var T=s,D;return t.substr(s,6).toLowerCase()==="record"?(D=t.substr(s,6),s+=6):(D=r,ir===0&&ut(Ir)),D!==r&&(er=T,D={dataType:"RECORD"}),T=D})())===r&&(v=(function(){var T=s,D;return(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,4).toLowerCase()==="inet"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(Ht)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="INET")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,4).toLowerCase()==="cidr"?(Ur=t.substr(s,4),s+=4):(Ur=r,ir===0&&ut(bu)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="CIDR")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,8).toLowerCase()==="macaddr8"?(Ur=t.substr(s,8),s+=8):(Ur=r,ir===0&&ut(k)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="MACADDR8")),V})())===r&&(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,7).toLowerCase()==="macaddr"?(Ur=t.substr(s,7),s+=7):(Ur=r,ir===0&&ut(rt)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="MACADDR")),V})()),D!==r&&(er=T,D=ur(D)),T=D})())===r&&(v=(function(){var T,D,V,Ur,zr,Br,wt,qt,un,Sn;if(T=s,(D=(function(){var Fn,es,Qn,As;return Fn=s,t.substr(s,3).toLowerCase()==="bit"?(es=t.substr(s,3),s+=3):(es=r,ir===0&&ut(Lr)),es===r?(s=Fn,Fn=r):(Qn=s,ir++,As=Gs(),ir--,As===r?Qn=void 0:(s=Qn,Qn=r),Qn===r?(s=Fn,Fn=r):(er=Fn,Fn=es="BIT")),Fn})())!==r)if(kr()!==r)if(t.substr(s,7).toLowerCase()==="varying"?(V=t.substr(s,7),s+=7):(V=r,ir===0&&ut(xu)),V===r&&(V=null),V!==r)if(kr()!==r){if(Ur=s,(zr=kr())!==r)if((Br=Ho())!==r)if((wt=kr())!==r){if(qt=[],wa.test(t.charAt(s))?(un=t.charAt(s),s++):(un=r,ir===0&&ut(Oa)),un!==r)for(;un!==r;)qt.push(un),wa.test(t.charAt(s))?(un=t.charAt(s),s++):(un=r,ir===0&&ut(Oa));else qt=r;qt!==r&&(un=kr())!==r&&(Sn=Lu())!==r?Ur=zr=[zr,Br,wt,qt,un,Sn]:(s=Ur,Ur=r)}else s=Ur,Ur=r;else s=Ur,Ur=r;else s=Ur,Ur=r;Ur===r&&(Ur=null),Ur===r?(s=T,T=r):(er=T,D=(function(Fn,es,Qn){let As=Fn;es&&(As+=" VARYING");let Bs={dataType:As};return Qn&&(Bs.length=parseInt(Qn[3].join(""),10),Bs.parentheses=!0),Bs})(D,V,Ur),T=D)}else s=T,T=r;else s=T,T=r;else s=T,T=r;else s=T,T=r;return T})())===r&&(v=(function(){var T=s,D;return(D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,5).toLowerCase()==="money"?(Ur=t.substr(s,5),s+=5):(Ur=r,ir===0&&ut(Or)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="MONEY")),V})())!==r&&(er=T,D={dataType:D}),T=D})())===r&&(v=(function(){var T=s,D,V;return(D=$e())!==r&&kr()!==r&&Ga()!==r&&kr()!==r&&(V=(function(){var Ur;return(Ur=$e())===r&&(Ur=hn()),Ur})())!==r?(er=s,((function(Ur,zr){return Kd.has(`${Ur}.${zr}`)})(D,V)?void 0:r)===r?(s=T,T=r):(er=T,D=(function(Ur,zr){return{schema:Ur,dataType:zr}})(D,V),T=D)):(s=T,T=r),T===r&&(T=s,(D=$e())===r?(s=T,T=r):(er=s,((function(Ur){return Kd.has(Ur)})(D)?void 0:r)===r?(s=T,T=r):(er=T,D=(function(Ur){return{dataType:Ur}})(D),T=D))),T})()),v}function fL(){var v,T;return v=s,(function(){var D,V,Ur,zr;return D=s,t.substr(s,9).toLowerCase()==="character"?(V=t.substr(s,9),s+=9):(V=r,ir===0&&ut(av)),V===r?(s=D,D=r):(Ur=s,ir++,zr=Gs(),ir--,zr===r?Ur=void 0:(s=Ur,Ur=r),Ur===r?(s=D,D=r):(er=D,D=V="CHARACTER")),D})()!==r&&kr()!==r?(t.substr(s,7).toLowerCase()==="varying"?(T=t.substr(s,7),s+=7):(T=r,ir===0&&ut(xu)),T===r&&(T=null),T===r?(s=v,v=r):(er=v,v="CHARACTER VARYING")):(s=v,v=r),v}function Pd(){var v,T,D,V,Ur,zr,Br,wt,qt;if(v=s,(T=(function(){var un,Sn,Fn,es;return un=s,t.substr(s,4).toLowerCase()==="char"?(Sn=t.substr(s,4),s+=4):(Sn=r,ir===0&&ut(ya)),Sn===r?(s=un,un=r):(Fn=s,ir++,es=Gs(),ir--,es===r?Fn=void 0:(s=Fn,Fn=r),Fn===r?(s=un,un=r):(er=un,un=Sn="CHAR")),un})())===r&&(T=(function(){var un,Sn,Fn,es;return un=s,t.substr(s,7).toLowerCase()==="varchar"?(Sn=t.substr(s,7),s+=7):(Sn=r,ir===0&&ut(l)),Sn===r?(s=un,un=r):(Fn=s,ir++,es=Gs(),ir--,es===r?Fn=void 0:(s=Fn,Fn=r),Fn===r?(s=un,un=r):(er=un,un=Sn="VARCHAR")),un})())===r&&(T=fL()),T!==r){if(D=s,(V=kr())!==r)if((Ur=Ho())!==r)if((zr=kr())!==r){if(Br=[],wa.test(t.charAt(s))?(wt=t.charAt(s),s++):(wt=r,ir===0&&ut(Oa)),wt!==r)for(;wt!==r;)Br.push(wt),wa.test(t.charAt(s))?(wt=t.charAt(s),s++):(wt=r,ir===0&&ut(Oa));else Br=r;Br!==r&&(wt=kr())!==r&&(qt=Lu())!==r?D=V=[V,Ur,zr,Br,wt,qt]:(s=D,D=r)}else s=D,D=r;else s=D,D=r;else s=D,D=r;D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(un,Sn){let Fn={dataType:un};return Sn&&(Fn.length=parseInt(Sn[3].join(""),10),Fn.parentheses=!0),Fn})(T,D))}else s=v,v=r;return v}function Xd(){var v,T,D;return v=s,(T=tr())===r&&(T=null),T!==r&&kr()!==r?((D=(function(){var V,Ur,zr,Br;return V=s,t.substr(s,8).toLowerCase()==="zerofill"?(Ur=t.substr(s,8),s+=8):(Ur=r,ir===0&&ut(Wn)),Ur===r?(s=V,V=r):(zr=s,ir++,Br=Gs(),ir--,Br===r?zr=void 0:(s=zr,zr=r),zr===r?(s=V,V=r):(er=V,V=Ur="ZEROFILL")),V})())===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T=(function(V,Ur){let zr=[];return V&&zr.push(V),Ur&&zr.push(Ur),zr})(T,D))):(s=v,v=r),v}function Gd(){var v,T,D,V,Ur,zr,Br,wt,qt,un,Sn,Fn,es,Qn,As,Bs;if(v=s,(T=m())===r&&(T=x())===r&&(T=Cr())===r&&(T=gr())===r&&(T=Yr())===r&&(T=Gt())===r&&(T=rn())===r&&(T=xn())===r&&(T=y())===r&&(T=s,(D=S())!==r&&(V=kr())!==r?(t.substr(s,9).toLowerCase()==="precision"?(Ur=t.substr(s,9),s+=9):(Ur=r,ir===0&&ut(si)),Ur===r?(s=T,T=r):T=D=[D,V,Ur]):(s=T,T=r),T===r&&(T=S())===r&&(T=Rt())===r&&(T=gt())===r&&(T=W())===r&&(T=vr())),T!==r)if((D=kr())!==r)if((V=Ho())!==r)if((Ur=kr())!==r){if(zr=[],wa.test(t.charAt(s))?(Br=t.charAt(s),s++):(Br=r,ir===0&&ut(Oa)),Br!==r)for(;Br!==r;)zr.push(Br),wa.test(t.charAt(s))?(Br=t.charAt(s),s++):(Br=r,ir===0&&ut(Oa));else zr=r;if(zr!==r)if((Br=kr())!==r){if(wt=s,(qt=du())!==r)if((un=kr())!==r){if(Sn=[],wa.test(t.charAt(s))?(Fn=t.charAt(s),s++):(Fn=r,ir===0&&ut(Oa)),Fn!==r)for(;Fn!==r;)Sn.push(Fn),wa.test(t.charAt(s))?(Fn=t.charAt(s),s++):(Fn=r,ir===0&&ut(Oa));else Sn=r;Sn===r?(s=wt,wt=r):wt=qt=[qt,un,Sn]}else s=wt,wt=r;else s=wt,wt=r;wt===r&&(wt=null),wt!==r&&(qt=kr())!==r&&(un=Lu())!==r&&(Sn=kr())!==r?((Fn=Xd())===r&&(Fn=null),Fn===r?(s=v,v=r):(er=v,es=T,Qn=zr,As=wt,Bs=Fn,v=T={dataType:Array.isArray(es)?`${es[0].toUpperCase()} ${es[2].toUpperCase()}`:es,length:parseInt(Qn.join(""),10),scale:As&&parseInt(As[2].join(""),10),parentheses:!0,suffix:Bs})):(s=v,v=r)}else s=v,v=r;else s=v,v=r}else s=v,v=r;else s=v,v=r;else s=v,v=r;else s=v,v=r;if(v===r){if(v=s,(T=m())===r&&(T=x())===r&&(T=Cr())===r&&(T=gr())===r&&(T=Yr())===r&&(T=Gt())===r&&(T=rn())===r&&(T=xn())===r&&(T=y())===r&&(T=s,(D=S())!==r&&(V=kr())!==r?(t.substr(s,9).toLowerCase()==="precision"?(Ur=t.substr(s,9),s+=9):(Ur=r,ir===0&&ut(si)),Ur===r?(s=T,T=r):T=D=[D,V,Ur]):(s=T,T=r),T===r&&(T=S())===r&&(T=Rt())===r&&(T=gt())===r&&(T=W())===r&&(T=vr())),T!==r){if(D=[],wa.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Oa)),V!==r)for(;V!==r;)D.push(V),wa.test(t.charAt(s))?(V=t.charAt(s),s++):(V=r,ir===0&&ut(Oa));else D=r;D!==r&&(V=kr())!==r?((Ur=Xd())===r&&(Ur=null),Ur===r?(s=v,v=r):(er=v,v=T=(function(Zs,ae,be){return{dataType:Array.isArray(Zs)?`${Zs[0].toUpperCase()} ${Zs[2].toUpperCase()}`:Zs,length:parseInt(ae.join(""),10),suffix:be}})(T,D,Ur))):(s=v,v=r)}else s=v,v=r;v===r&&(v=s,(T=m())===r&&(T=x())===r&&(T=Cr())===r&&(T=gr())===r&&(T=Yr())===r&&(T=Gt())===r&&(T=rn())===r&&(T=xn())===r&&(T=y())===r&&(T=s,(D=S())!==r&&(V=kr())!==r?(t.substr(s,9).toLowerCase()==="precision"?(Ur=t.substr(s,9),s+=9):(Ur=r,ir===0&&ut(si)),Ur===r?(s=T,T=r):T=D=[D,V,Ur]):(s=T,T=r),T===r&&(T=S())===r&&(T=Rt())===r&&(T=gt())===r&&(T=W())===r&&(T=vr())),T!==r&&(D=kr())!==r?((V=Xd())===r&&(V=null),V!==r&&(Ur=kr())!==r?(er=v,v=T=(function(Zs,ae){return{dataType:Array.isArray(Zs)?`${Zs[0].toUpperCase()} ${Zs[2].toUpperCase()}`:Zs,suffix:ae}})(T,V)):(s=v,v=r)):(s=v,v=r))}return v}function Fd(){var v,T,D,V,Ur,zr;return v=s,(T=(function(){var Br,wt,qt,un;return Br=s,t.substr(s,8).toLowerCase()==="tinytext"?(wt=t.substr(s,8),s+=8):(wt=r,ir===0&&ut(yn)),wt===r?(s=Br,Br=r):(qt=s,ir++,un=Gs(),ir--,un===r?qt=void 0:(s=qt,qt=r),qt===r?(s=Br,Br=r):(er=Br,Br=wt="TINYTEXT")),Br})())===r&&(T=(function(){var Br,wt,qt,un;return Br=s,t.substr(s,4).toLowerCase()==="text"?(wt=t.substr(s,4),s+=4):(wt=r,ir===0&&ut(ka)),wt===r?(s=Br,Br=r):(qt=s,ir++,un=Gs(),ir--,un===r?qt=void 0:(s=qt,qt=r),qt===r?(s=Br,Br=r):(er=Br,Br=wt="TEXT")),Br})())===r&&(T=(function(){var Br,wt,qt,un;return Br=s,t.substr(s,10).toLowerCase()==="mediumtext"?(wt=t.substr(s,10),s+=10):(wt=r,ir===0&&ut(Ua)),wt===r?(s=Br,Br=r):(qt=s,ir++,un=Gs(),ir--,un===r?qt=void 0:(s=qt,qt=r),qt===r?(s=Br,Br=r):(er=Br,Br=wt="MEDIUMTEXT")),Br})())===r&&(T=(function(){var Br,wt,qt,un;return Br=s,t.substr(s,8).toLowerCase()==="longtext"?(wt=t.substr(s,8),s+=8):(wt=r,ir===0&&ut(Ou)),wt===r?(s=Br,Br=r):(qt=s,ir++,un=Gs(),ir--,un===r?qt=void 0:(s=qt,qt=r),qt===r?(s=Br,Br=r):(er=Br,Br=wt="LONGTEXT")),Br})()),T===r?(s=v,v=r):(D=s,(V=vd())!==r&&(Ur=kr())!==r&&(zr=pd())!==r?D=V=[V,Ur,zr]:(s=D,D=r),D===r&&(D=null),D===r?(s=v,v=r):(er=v,v=T={dataType:`${T}${D?"[]":""}`})),v}let aL={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,AT:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CONTAINS:!0,CONSTRAINT:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,EXCEPT:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTERSECT:!0,INTO:!0,IS:!0,ILIKE:!0,JOIN:!0,JSON:!0,LEFT:!0,LIKE:!0,LIMIT:!0,NOT:!0,NULL:!0,NULLS:!0,OFFSET:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,PARTITION:!0,RECURSIVE:!0,RENAME:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,WITH:!0,WHEN:!0,WHERE:!0,WINDOW:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0};function Cd(){return Ce.includeLocations?{loc:Ds(er,s)}:{}}function jd(v,T){return{type:"unary_expr",operator:v,expr:T}}function _d(v,T,D){return{type:"binary_expr",operator:v,left:T,right:D,...Cd()}}function iL(v){let T=To(9007199254740991);return!(To(v)<T)}function Vc(v,T,D=3){let V=Array.isArray(v)?v:[v];for(let Ur=0;Ur<T.length;Ur++)delete T[Ur][D].tableList,delete T[Ur][D].columnList,V.push(T[Ur][D]);return V}function Sd(v,T){let D=v;for(let V=0;V<T.length;V++)D=_d(T[V][1],D,T[V][3]);return D}function lL(v){return zd[v]||v||null}function Cc(v){let T=new Set;for(let D of v.keys()){let V=D.split("::");if(!V){T.add(D);break}V&&V[1]&&(V[1]=lL(V[1])),T.add(V.join("::"))}return Array.from(T)}function Bd(v){return typeof v=="string"?{type:"same",value:v}:v}let Vd=[],Za=new Set,Ja=new Set,Kd=new Set,zd={};if((Ie=ge())!==r&&s===t.length)return Ie;throw Ie!==r&&s<t.length&&ut({type:"end"}),De(bn,mt<t.length?t.charAt(mt):null,mt<t.length?Ds(mt,mt+1):Ds(mt,mt))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:Dt},ge=Dt,Dn=k("IF",!0),Pn=k("EXTENSION",!0),Ae=k("SCHEMA",!0),ou=k("VERSION",!0),Hs=k("CASCADED",!0),Uo=k("LOCAL",!0),Ps=k("CHECK",!0),pe=k("OPTION",!1),_o=k("check_option",!0),Gi=k("security_barrier",!0),mi=k("security_invoker",!0),Fi=k("SFUNC",!0),T0=k("STYPE",!0),dl=k("AGGREGATE",!0),Gl=k("RETURNS",!0),Fl=k("SETOF",!0),nc=k("CONSTANT",!0),xc=k(":=",!1),I0=k("BEGIN",!0),ji=k("DECLARE",!0),af=k("LANGUAGE",!1),qf=k("TRANSORM",!0),Uc=k("FOR",!1),wc=k("TYPE",!1),Ll=k("WINDOW",!0),jl=k("IMMUTABLE",!0),Oi=k("STABLE",!0),bb=k("VOLATILE",!0),Vi=k("STRICT",!0),zc=k("NOT",!0),kc=k("LEAKPROOF",!0),vb=k("CALLED",!0),Zc=k("NULL",!0),nl=k("ON",!0),Xf=k("INPUT",!0),gl=k("EXTERNAL",!0),lf=k("SECURITY",!0),Jc=k("INVOKER",!0),Qc=k("DEFINER",!0),gv=k("PARALLEL",!0),g0=k("UNSAFE",!0),Ki=k("RESTRICTED",!0),Pb=k("SAFE",!0),ei=/^[^ s\t\n\r]/,pb=Lr([" ","s"," ",` +`,"\r"],!0,!1),j0=/^[^ s\t\n\r;]/,B0=Lr([" ","s"," ",` +`,"\r",";"],!0,!1),Mc=k("COST",!0),Cl=k("ROWS",!0),$u=k("SUPPORT",!0),r0=k("TO",!0),zn=k("=",!1),Ss=k("CURRENT",!0),te=k("FUNCTION",!0),ce=k("TYPE",!0),He=k("DOMAIN",!0),Ue=k("INCREMENT",!0),Qe=k("MINVALUE",!0),uo=function(f,y){return{resource:"sequence",prefix:f.toLowerCase(),value:y}},Ao=k("NO",!0),Pu=k("MAXVALUE",!0),Ca=k("START",!0),ku=k("CACHE",!0),ca=k("CYCLE",!0),na=k("OWNED",!0),Qa=k("NONE",!0),cf=k("NULLS",!0),ri=k("FIRST",!0),t0=k("LAST",!0),n0=k("AUTO_INCREMENT",!0),Dc=k("UNIQUE",!0),s0=k("KEY",!0),Rv=k("PRIMARY",!0),nv=k("COLUMN_FORMAT",!0),sv=k("FIXED",!0),ev=k("DYNAMIC",!0),yc=k("DEFAULT",!0),$c=k("STORAGE",!0),Sf=k("DISK",!0),R0=k("MEMORY",!0),Rl=k("CASCADE",!0),ff=k("RESTRICT",!0),Vf=k("OUT",!0),Vv=k("VARIADIC",!0),db=k("INOUT",!0),Of=k("OWNER",!0),Pc=k("CURRENT_ROLE",!0),H0=k("CURRENT_USER",!0),bf=k("SESSION_USER",!0),Lb=k("ALGORITHM",!0),Fa=k("INSTANT",!0),Kf=k("INPLACE",!0),Nv=k("COPY",!0),Gb=k("LOCK",!0),hc=k("SHARED",!0),Bl=k("EXCLUSIVE",!0),sl=k("PRIMARY KEY",!0),sc=k("FOREIGN KEY",!0),Y0=k("MATCH FULL",!0),N0=k("MATCH PARTIAL",!0),ov=k("MATCH SIMPLE",!0),Fb=k("SET NULL",!0),e0=k("NO ACTION",!0),Cb=k("SET DEFAULT",!0),_0=k("TRIGGER",!0),zf=k("BEFORE",!0),je=k("AFTER",!0),o0=k("INSTEAD OF",!0),xi=k("EXECUTE",!0),xf=k("PROCEDURE",!0),Zf=k("OF",!0),W0=k("DEFERRABLE",!0),jb=k("INITIALLY IMMEDIATE",!0),Uf=k("INITIALLY DEFERRED",!0),u0=k("FOR",!0),wb=k("EACH",!0),Ui=k("ROW",!0),uv=k("STATEMENT",!0),yb=k("CHARACTER",!0),hb=k("SET",!0),Kv=k("CHARSET",!0),Gc=k("COLLATE",!0),_v=k("AVG_ROW_LENGTH",!0),kf=k("KEY_BLOCK_SIZE",!0),vf=k("MAX_ROWS",!0),ki=k("MIN_ROWS",!0),Hl=k("STATS_SAMPLE_PAGES",!0),Eb=k("CONNECTION",!0),Bb=k("COMPRESSION",!0),pa=k("'",!1),wl=k("ZLIB",!0),Nl=k("LZ4",!0),Sv=k("ENGINE",!0),Hb=k("IN",!0),Jf=k("ACCESS SHARE",!0),pf=k("ROW SHARE",!0),Yb=k("ROW EXCLUSIVE",!0),av=k("SHARE UPDATE EXCLUSIVE",!0),iv=k("SHARE ROW EXCLUSIVE",!0),a0=k("ACCESS EXCLUSIVE",!0),_l=k("SHARE",!0),Yl=k("MODE",!0),Ab=k("NOWAIT",!0),Mf=k("TABLES",!0),Wb=k("PREPARE",!0),Df=k("USAGE",!0),mb=function(f){return{type:"origin",value:Array.isArray(f)?f[0]:f}},i0=k("CONNECT",!0),ft=k("PRIVILEGES",!0),tn=function(f){return{type:"origin",value:f}},_n=k("SEQUENCE",!0),En=k("DATABASE",!0),Os=k("DOMAIN",!1),gs=k("FUNCTION",!1),Ys=k("ROUTINE",!0),Te=k("LANGUAGE",!0),ye=k("LARGE",!0),Be=k("SCHEMA",!1),io=k("FUNCTIONS",!0),Ro=k("PROCEDURES",!0),So=k("ROUTINES",!0),uu=k("PUBLIC",!0),ko=k("GRANT",!0),yu=k("OPTION",!0),au=k("ADMIN",!0),Iu=k("REVOKE",!0),mu=k("ELSEIF",!0),Ju=k("THEN",!0),ua=k("END",!0),Sa=k("DEBUG",!0),ma=k("LOG",!0),Bi=k("INFO",!0),sa=k("NOTICE",!0),di=k("WARNING",!0),Hi=k("EXCEPTION",!0),S0=k("MESSAGE",!0),l0=k("DETAIL",!0),Ov=k("HINT",!0),lv=k("ERRCODE",!0),fi=k("COLUMN",!0),Wl=k("CONSTRAINT",!0),ec=k("DATATYPE",!0),Fc=k("TABLE",!0),xv=k("SQLSTATE",!0),lp=k("RAISE",!0),Uv=k("LOOP",!0),$f=k("begin",!0),Tb=k("commit",!0),cp=k("rollback",!0),c0=k(";",!1),q0=k("(",!1),df=k(")",!1),f0=k('"',!1),b0=k("OUTFILE",!0),Pf=k("DUMPFILE",!0),Sp=k("BTREE",!0),kv=k("HASH",!0),Op=k("GIST",!0),fp=k("GIN",!0),oc=k("WITH",!0),uc=k("PARSER",!0),qb=k("VISIBLE",!0),Gf=k("INVISIBLE",!0),zv=function(f,y){return y.unshift(f),y.forEach(S=>{let{table:W,as:vr}=S;xn[W]=W,vr&&(xn[vr]=W),(function(_r){let $r=gr(_r);_r.clear(),$r.forEach(at=>_r.add(at))})(Gt)}),y},Mv=k("LATERAL",!0),Zv=k("TABLESAMPLE",!0),bp=k("REPEATABLE",!0),Ib=k("CROSS",!0),Dv=k("FOLLOWING",!0),vp=k("PRECEDING",!0),Jv=k("UNBOUNDED",!0),Xb=k("DO",!0),pp=k("NOTHING",!0),xp=k("CONFLICT",!0),cv=function(f,y){return tr(f,y)},Up=k("!",!1),Xp=k(">=",!1),Qv=k(">",!1),Vp=k("<=",!1),dp=k("<>",!1),Kp=k("<",!1),ld=k("!=",!1),Lp=k("SIMILAR",!0),Cp=k("!~*",!1),wp=k("~*",!1),gb=k("~",!1),O0=k("!~",!1),v0=k("ESCAPE",!0),ac=k("+",!1),Rb=k("-",!1),Ff=k("*",!1),kp=k("/",!1),Mp=k("%",!1),rp=k("||",!1),yp=k("$",!1),hp=k("?|",!1),Ep=k("?&",!1),Nb=k("?",!1),Qf=k("#-",!1),_b=k("#>>",!1),Ap=k("#>",!1),Dp=k("@>",!1),$v=k("<@",!1),$p=k("E",!0),Pp=function(f){return{type:"default",value:f}},Pv=function(f){return lr[f.toUpperCase()]===!0},Gp=/^[^"]/,Fp=Lr(['"'],!0,!1),mp=/^[^']/,zp=Lr(["'"],!0,!1),Zp=k("`",!1),Gv=/^[^`]/,tp=Lr(["`"],!0,!1),Fv=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,yl=Lr([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),jc=/^[A-Za-z0-9_\-$\u4E00-\u9FA5\xC0-\u017F]/,fv=Lr([["A","Z"],["a","z"],["0","9"],"_","-","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Sl=/^[A-Za-z0-9_\u4E00-\u9FA5\xC0-\u017F]/,Ol=Lr([["A","Z"],["a","z"],["0","9"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),np=k(":",!1),bv=k("OVER",!0),ql=k("FILTER",!0),Ec=k("FIRST_VALUE",!0),Jp=k("LAST_VALUE",!0),Qp=k("ROW_NUMBER",!0),sp=k("DENSE_RANK",!0),jv=k("RANK",!0),Tp=k("LAG",!0),rd=k("LEAD",!0),jp=k("NTH_VALUE",!0),Ip=k("IGNORE",!0),td=k("RESPECT",!0),nd=k("percentile_cont",!0),Bp=k("percentile_disc",!0),Hp=k("within",!0),gp=k("mode",!0),sd=k("BOTH",!0),ed=k("LEADING",!0),Yp=k("TRAILING",!0),od=k("trim",!0),ud=k("crosstab",!0),Rp=k("POSITION",!0),O=k("now",!0),ps=k("at",!0),Bv=k("zone",!0),Lf=k("CENTURY",!0),Hv=k("DAY",!0),on=k("DATE",!0),zs=k("DECADE",!0),Bc=k("DOW",!0),vv=k("DOY",!0),ep=k("EPOCH",!0),Rs=k("HOUR",!0),Np=k("ISODOW",!0),Wp=k("ISOYEAR",!0),cd=k("MICROSECONDS",!0),Vb=k("MILLENNIUM",!0),_=k("MILLISECONDS",!0),Ls=k("MINUTE",!0),pv=k("MONTH",!0),Cf=k("QUARTER",!0),dv=k("SECOND",!0),Qt=k("TIMEZONE",!0),Xs=k("TIMEZONE_HOUR",!0),ic=k("TIMEZONE_MINUTE",!0),op=k("WEEK",!0),Kb=k("YEAR",!0),ys=k("NTILE",!0),_p=/^[\n]/,Yv=Lr([` +`],!1,!1),Lv=/^[^"\\\0-\x1F\x7F]/,Wv=Lr(['"',"\\",["\0",""],"\x7F"],!0,!1),zb=/^[^'\\]/,wf=Lr(["'","\\"],!0,!1),qv=k("\\'",!1),Cv=k('\\"',!1),rb=k("\\\\",!1),tb=k("\\/",!1),I=k("\\b",!1),us=k("\\f",!1),Sb=k("\\n",!1),xl=k("\\r",!1),nb=k("\\t",!1),zt=k("\\u",!1),$s=k("\\",!1),ja=k("''",!1),Ob=/^[\n\r]/,jf=Lr([` +`,"\r"],!1,!1),is=k(".",!1),el=/^[0-9]/,Ti=Lr([["0","9"]],!1,!1),wv=/^[0-9a-fA-F]/,yf=Lr([["0","9"],["a","f"],["A","F"]],!1,!1),X0=/^[eE]/,p0=Lr(["e","E"],!1,!1),up=/^[+\-]/,xb=Lr(["+","-"],!1,!1),Zb=k("NOT NULL",!0),yv=k("TRUE",!0),Jb=k("FALSE",!0),hv=k("SHOW",!0),h=k("DROP",!0),ss=k("USE",!0),Xl=k("ALTER",!0),d0=k("SELECT",!0),Bf=k("UPDATE",!0),jt=k("CREATE",!0),Us=k("TEMPORARY",!0),ol=k("TEMP",!0),sb=k("DELETE",!0),eb=k("INSERT",!0),p=k("RECURSIVE",!0),ns=k("REPLACE",!0),Vl=k("RETURNING",!0),Hc=k("RENAME",!0),Ub=k("PARTITION",!0),Ft=k("INTO",!0),xs=k("FROM",!0),Li=k("AS",!0),Ta=k("TABLESPACE",!0),x0=k("DEALLOCATE",!0),Zn=k("LEFT",!0),kb=k("RIGHT",!0),U0=k("FULL",!0),C=k("INNER",!0),Kn=k("JOIN",!0),zi=k("OUTER",!0),Kl=k("UNION",!0),zl=k("INTERSECT",!0),Ot=k("EXCEPT",!0),hs=k("VALUES",!0),Yi=k("USING",!0),hl=k("WHERE",!0),L0=k("GROUP",!0),Bn=k("BY",!0),Qb=k("ORDER",!0),C0=k("HAVING",!0),Hf=k("QUALIFY",!0),k0=k("LIMIT",!0),M0=k("OFFSET",!0),Wi=k("ASC",!0),wa=k("DESC",!0),Oa=k("ALL",!0),ti=k("DISTINCT",!0),We=k("BETWEEN",!0),ob=k("IS",!0),V0=k("LIKE",!0),hf=k("ILIKE",!0),Ef=k("EXISTS",!0),K0=k("AND",!0),Af=k("OR",!0),El=k("ARRAY",!0),w0=k("ARRAY_AGG",!0),ul=k("STRING_AGG",!0),Ye=k("COUNT",!0),mf=k("GROUP_CONCAT",!0),z0=k("MAX",!0),ub=k("MIN",!0),Su=k("SUM",!0),Al=k("AVG",!0),D0=k("EXTRACT",!0),Ac=k("CALL",!0),mc=k("CASE",!0),Tc=k("WHEN",!0),y0=k("ELSE",!0),bi=k("CAST",!0),Yc=k("BOOL",!0),Z0=k("BOOLEAN",!0),lc=k("CHAR",!0),Ic=k("VARCHAR",!0),ab=k("NUMERIC",!0),J0=k("DECIMAL",!0),ml=k("SIGNED",!0),Ul=k("UNSIGNED",!0),aa=k("INT",!0),Tf=k("ZEROFILL",!0),If=k("INTEGER",!0),Tl=k("JSON",!0),Ci=k("JSONB",!0),Q0=k("GEOMETRY",!0),ib=k("SMALLINT",!0),fa=k("SERIAL",!0),Zi=k("TINYINT",!0),rf=k("TINYTEXT",!0),Ii=k("TEXT",!0),Ge=k("MEDIUMTEXT",!0),$0=k("LONGTEXT",!0),gf=k("BIGINT",!0),Zl=k("ENUM",!0),Xa=k("FLOAT",!0),cc=k("DOUBLE",!0),h0=k("BIGSERIAL",!0),n=k("REAL",!0),st=k("DATETIME",!0),gi=k("TIME",!0),xa=k("TIMESTAMP",!0),Ra=k("TRUNCATE",!0),or=k("USER",!0),Nt=k("UUID",!0),ju=k("OID",!0),Il=k("REGCLASS",!0),Wc=k("REGCOLLATION",!0),Kr=k("REGCONFIG",!0),Mb=k("REGDICTIONARY",!0),fc=k("REGNAMESPACE",!0),qi=k("REGOPER",!0),Ji=k("REGOPERATOR",!0),Ri=k("REGPROC",!0),qu=k("REGPROCEDURE",!0),Se=k("REGROLE",!0),tf=k("REGTYPE",!0),Qu=k("CURRENT_DATE",!0),P0=k("INTERVAL",!0),gc=k("CURRENT_TIME",!0),al=k("CURRENT_TIMESTAMP",!0),Jl=k("SYSTEM_USER",!0),qc=k("GLOBAL",!0),Ba=k("SESSION",!0),Qi=k("PERSIST",!0),ya=k("PERSIST_ONLY",!0),l=k("VIEW",!0),dn=k("@",!1),Ql=k("@@",!1),vi=k("$$",!1),Va=k("return",!0),lt=k("::",!1),Wn=k("DUAL",!0),Eu=k("ADD",!0),ia=k("INDEX",!0),ve=k("FULLTEXT",!0),Jt=k("SPATIAL",!0),nf=k("COMMENT",!0),E0=k("CONCURRENTLY",!0),kl=k("REFERENCES",!0),oi=k("SQL_CALC_FOUND_ROWS",!0),yn=k("SQL_CACHE",!0),ka=k("SQL_NO_CACHE",!0),Ua=k("SQL_SMALL_RESULT",!0),Ou=k("SQL_BIG_RESULT",!0),il=k("SQL_BUFFER_RESULT",!0),zu=k(",",!1),Yu=k("[",!1),lb=k("]",!1),Mi=k("->",!1),ha=k("->>",!1),Ha=k("&&",!1),ln=k("/*",!1),Oe=k("*/",!1),Di=k("--",!1),Ya={type:"any"},ni=/^[ \t\n\r]/,ui=Lr([" "," ",` +`,"\r"],!1,!1),$i=/^[^$]/,ai=Lr(["$"],!0,!1),ll=function(f){return{dataType:f}},cl=k("bytea",!0),a=k("varying",!0),an=k("PRECISION",!0),Ma=k("WITHOUT",!0),Da=k("ZONE",!0),ii=function(f){return{dataType:f}},nt=k("RECORD",!0),o=0,Zt=0,ba=[{line:1,column:1}],bu=0,Ht=[],rt=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function k(f,y){return{type:"literal",text:f,ignoreCase:y}}function Lr(f,y,S){return{type:"class",parts:f,inverted:y,ignoreCase:S}}function Or(f){var y,S=ba[f];if(S)return S;for(y=f-1;!ba[y];)y--;for(S={line:(S=ba[y]).line,column:S.column};y<f;)t.charCodeAt(y)===10?(S.line++,S.column=1):S.column++,y++;return ba[f]=S,S}function Fr(f,y){var S=Or(f),W=Or(y);return{start:{offset:f,line:S.line,column:S.column},end:{offset:y,line:W.line,column:W.column}}}function dr(f){o<bu||(o>bu&&(bu=o,Ht=[]),Ht.push(f))}function It(f,y,S){return new go(go.buildMessage(f,y),f,y,S)}function Dt(){var f,y;return f=o,fr()===r?(o=f,f=r):((y=Yn())===r&&(y=u()),y===r?(o=f,f=r):(Zt=f,f=y)),f===r&&(f=Yn())===r&&(f=u()),f}function Ln(){var f;return(f=(function(){var y=o,S,W,vr,_r,$r,at,St,Kt;(S=Uu())!==r&&fr()!==r&&(W=B())!==r&&fr()!==r&&(vr=xt())!==r?(Zt=y,sn=S,Nn=W,(Xn=vr)&&Xn.forEach(Gn=>gt.add(`${sn}::${[Gn.db,Gn.schema].filter(Boolean).join(".")||null}::${Gn.table}`)),S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:sn.toLowerCase(),keyword:Nn.toLowerCase(),name:Xn}},y=S):(o=y,y=r);var sn,Nn,Xn;return y===r&&(y=o,(S=Uu())!==r&&fr()!==r&&(W=Aa())!==r&&fr()!==r?((vr=Zu())===r&&(vr=null),vr!==r&&fr()!==r?(_r=o,t.substr(o,2).toLowerCase()==="if"?($r=t.substr(o,2),o+=2):($r=r,rt===0&&dr(Dn)),$r!==r&&(at=fr())!==r&&(St=wu())!==r?_r=$r=[$r,at,St]:(o=_r,_r=r),_r===r&&(_r=null),_r!==r&&($r=fr())!==r&&(at=Ru())!==r&&(St=fr())!==r?(t.substr(o,7).toLowerCase()==="cascade"?(Kt=t.substr(o,7),o+=7):(Kt=r,rt===0&&dr(Rl)),Kt===r&&(t.substr(o,8).toLowerCase()==="restrict"?(Kt=t.substr(o,8),o+=8):(Kt=r,rt===0&&dr(ff))),Kt===r&&(Kt=null),Kt===r?(o=y,y=r):(Zt=y,S=(function(Gn,fs,Ts,Ms,Vs,se){return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Gn.toLowerCase(),keyword:fs.toLowerCase(),prefix:Ts,name:Vs,options:se&&[{type:"origin",value:se}]}}})(S,W,vr,0,at,Kt),y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)),y})())===r&&(f=(function(){var y;return(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn,Nn;(W=qa())!==r&&fr()!==r?((vr=qo())===r&&(vr=null),vr!==r&&fr()!==r&&B()!==r&&fr()!==r?((_r=Q())===r&&(_r=null),_r!==r&&fr()!==r&&($r=xt())!==r&&fr()!==r&&(at=(function(){var Vs,se,Re,oe,Ne,ze,to,Lo,wo;if(Vs=o,(se=q())!==r)if(fr()!==r)if((Re=Js())!==r){for(oe=[],Ne=o,(ze=fr())!==r&&(to=L())!==r&&(Lo=fr())!==r&&(wo=Js())!==r?Ne=ze=[ze,to,Lo,wo]:(o=Ne,Ne=r);Ne!==r;)oe.push(Ne),Ne=o,(ze=fr())!==r&&(to=L())!==r&&(Lo=fr())!==r&&(wo=Js())!==r?Ne=ze=[ze,to,Lo,wo]:(o=Ne,Ne=r);oe!==r&&(Ne=fr())!==r&&(ze=rr())!==r?(Zt=Vs,se=x(Re,oe),Vs=se):(o=Vs,Vs=r)}else o=Vs,Vs=r;else o=Vs,Vs=r;else o=Vs,Vs=r;return Vs})())!==r&&fr()!==r?((St=(function(){var Vs,se,Re,oe,Ne,ze,to,Lo;if(Vs=o,(se=tl())!==r){for(Re=[],oe=o,(Ne=fr())===r?(o=oe,oe=r):((ze=L())===r&&(ze=null),ze!==r&&(to=fr())!==r&&(Lo=tl())!==r?oe=Ne=[Ne,ze,to,Lo]:(o=oe,oe=r));oe!==r;)Re.push(oe),oe=o,(Ne=fr())===r?(o=oe,oe=r):((ze=L())===r&&(ze=null),ze!==r&&(to=fr())!==r&&(Lo=tl())!==r?oe=Ne=[Ne,ze,to,Lo]:(o=oe,oe=r));Re===r?(o=Vs,Vs=r):(Zt=Vs,se=x(se,Re),Vs=se)}else o=Vs,Vs=r;return Vs})())===r&&(St=null),St!==r&&fr()!==r?((Kt=va())===r&&(Kt=m0()),Kt===r&&(Kt=null),Kt!==r&&fr()!==r?((sn=R())===r&&(sn=null),sn!==r&&fr()!==r?((Nn=Y())===r&&(Nn=null),Nn===r?(o=S,S=r):(Zt=S,W=(function(Vs,se,Re,oe,Ne,ze,to,Lo,wo){return oe&&oe.forEach(jo=>gt.add(`create::${[jo.db,jo.schema].filter(Boolean).join(".")||null}::${jo.table}`)),{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Vs[0].toLowerCase(),keyword:"table",temporary:se&&se[0].toLowerCase(),if_not_exists:Re,table:oe,ignore_replace:to&&to[0].toLowerCase(),as:Lo&&Lo[0].toLowerCase(),query_expr:wo&&wo.ast,create_definitions:Ne,table_options:ze}}})(W,vr,_r,$r,at,St,Kt,sn,Nn),S=W)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r),S===r&&(S=o,(W=qa())!==r&&fr()!==r?((vr=qo())===r&&(vr=null),vr!==r&&fr()!==r&&B()!==r&&fr()!==r?((_r=Q())===r&&(_r=null),_r!==r&&fr()!==r&&($r=xt())!==r&&fr()!==r&&(at=(function Vs(){var se,Re;(se=(function(){var Ne=o,ze;return iu()!==r&&fr()!==r&&(ze=xt())!==r?(Zt=Ne,Ne={type:"like",table:ze}):(o=Ne,Ne=r),Ne})())===r&&(se=o,q()!==r&&fr()!==r&&(Re=Vs())!==r&&fr()!==r&&rr()!==r?(Zt=se,(oe=Re).parentheses=!0,se=oe):(o=se,se=r));var oe;return se})())!==r?(Zt=S,Xn=W,Gn=vr,fs=_r,Ms=at,(Ts=$r)&&Ts.forEach(Vs=>gt.add(`create::${[Vs.db,Vs.schema].filter(Boolean).join(".")||null}::${Vs.table}`)),W={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Xn[0].toLowerCase(),keyword:"table",temporary:Gn&&Gn[0].toLowerCase(),if_not_exists:fs,table:Ts,like:Ms}},S=W):(o=S,S=r)):(o=S,S=r)):(o=S,S=r));var Xn,Gn,fs,Ts,Ms;return S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts,Ms,Vs,se,Re,oe,Ne,ze;return(W=qa())!==r&&fr()!==r?(vr=o,(_r=Ka())!==r&&($r=fr())!==r&&(at=m0())!==r?vr=_r=[_r,$r,at]:(o=vr,vr=r),vr===r&&(vr=null),vr!==r&&(_r=fr())!==r?(($r=F0())===r&&($r=null),$r!==r&&(at=fr())!==r?(t.substr(o,7).toLowerCase()==="trigger"?(St=t.substr(o,7),o+=7):(St=r,rt===0&&dr(_0)),St!==r&&fr()!==r&&(Kt=vu())!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="before"?(sn=t.substr(o,6),o+=6):(sn=r,rt===0&&dr(zf)),sn===r&&(t.substr(o,5).toLowerCase()==="after"?(sn=t.substr(o,5),o+=5):(sn=r,rt===0&&dr(je)),sn===r&&(t.substr(o,10).toLowerCase()==="instead of"?(sn=t.substr(o,10),o+=10):(sn=r,rt===0&&dr(o0)))),sn!==r&&fr()!==r&&(Nn=(function(){var to,Lo,wo,jo,Ku,za,ci,uf;if(to=o,(Lo=xu())!==r){for(wo=[],jo=o,(Ku=fr())!==r&&(za=Ka())!==r&&(ci=fr())!==r&&(uf=xu())!==r?jo=Ku=[Ku,za,ci,uf]:(o=jo,jo=r);jo!==r;)wo.push(jo),jo=o,(Ku=fr())!==r&&(za=Ka())!==r&&(ci=fr())!==r&&(uf=xu())!==r?jo=Ku=[Ku,za,ci,uf]:(o=jo,jo=r);wo===r?(o=to,to=r):(Zt=to,Lo=x(Lo,wo),to=Lo)}else o=to,to=r;return to})())!==r&&fr()!==r?(t.substr(o,2).toLowerCase()==="on"?(Xn=t.substr(o,2),o+=2):(Xn=r,rt===0&&dr(nl)),Xn!==r&&fr()!==r&&(Gn=bs())!==r&&fr()!==r?(fs=o,(Ts=ot())!==r&&(Ms=fr())!==r&&(Vs=bs())!==r?fs=Ts=[Ts,Ms,Vs]:(o=fs,fs=r),fs===r&&(fs=null),fs!==r&&(Ts=fr())!==r?((Ms=(function(){var to=o,Lo=o,wo,jo,Ku;t.substr(o,3).toLowerCase()==="not"?(wo=t.substr(o,3),o+=3):(wo=r,rt===0&&dr(zc)),wo===r&&(wo=null),wo!==r&&(jo=fr())!==r?(t.substr(o,10).toLowerCase()==="deferrable"?(Ku=t.substr(o,10),o+=10):(Ku=r,rt===0&&dr(W0)),Ku===r?(o=Lo,Lo=r):Lo=wo=[wo,jo,Ku]):(o=Lo,Lo=r),Lo!==r&&(wo=fr())!==r?(t.substr(o,19).toLowerCase()==="initially immediate"?(jo=t.substr(o,19),o+=19):(jo=r,rt===0&&dr(jb)),jo===r&&(t.substr(o,18).toLowerCase()==="initially deferred"?(jo=t.substr(o,18),o+=18):(jo=r,rt===0&&dr(Uf))),jo===r?(o=to,to=r):(Zt=to,ci=jo,Lo={keyword:(za=Lo)&&za[0]?za[0].toLowerCase()+" deferrable":"deferrable",args:ci&&ci.toLowerCase()},to=Lo)):(o=to,to=r);var za,ci;return to})())===r&&(Ms=null),Ms!==r&&(Vs=fr())!==r?((se=(function(){var to=o,Lo,wo,jo;t.substr(o,3).toLowerCase()==="for"?(Lo=t.substr(o,3),o+=3):(Lo=r,rt===0&&dr(u0)),Lo!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="each"?(wo=t.substr(o,4),o+=4):(wo=r,rt===0&&dr(wb)),wo===r&&(wo=null),wo!==r&&fr()!==r?(t.substr(o,3).toLowerCase()==="row"?(jo=t.substr(o,3),o+=3):(jo=r,rt===0&&dr(Ui)),jo===r&&(t.substr(o,9).toLowerCase()==="statement"?(jo=t.substr(o,9),o+=9):(jo=r,rt===0&&dr(uv))),jo===r?(o=to,to=r):(Zt=to,Ku=Lo,ci=jo,Lo={keyword:(za=wo)?`${Ku.toLowerCase()} ${za.toLowerCase()}`:Ku.toLowerCase(),args:ci.toLowerCase()},to=Lo)):(o=to,to=r)):(o=to,to=r);var Ku,za,ci;return to})())===r&&(se=null),se!==r&&fr()!==r?((Re=(function(){var to=o,Lo;return Db()!==r&&fr()!==r&&q()!==r&&fr()!==r&&(Lo=J())!==r&&fr()!==r&&rr()!==r?(Zt=to,to={type:"when",cond:Lo,parentheses:!0}):(o=to,to=r),to})())===r&&(Re=null),Re!==r&&fr()!==r?(t.substr(o,7).toLowerCase()==="execute"?(oe=t.substr(o,7),o+=7):(oe=r,rt===0&&dr(xi)),oe!==r&&fr()!==r?(t.substr(o,9).toLowerCase()==="procedure"?(Ne=t.substr(o,9),o+=9):(Ne=r,rt===0&&dr(xf)),Ne===r&&(t.substr(o,8).toLowerCase()==="function"?(Ne=t.substr(o,8),o+=8):(Ne=r,rt===0&&dr(te))),Ne!==r&&fr()!==r&&(ze=Xt())!==r?(Zt=S,W=(function(to,Lo,wo,jo,Ku,za,ci,uf,Iv,Ga,du,id,Ho,Lu,vd,pd){return{type:"create",replace:Lo&&"or replace",constraint:Ku,location:za&&za.toLowerCase(),events:ci,table:Iv,from:Ga&&Ga[2],deferrable:du,for_each:id,when:Ho,execute:{keyword:"execute "+vd.toLowerCase(),expr:pd},constraint_type:jo&&jo.toLowerCase(),keyword:jo&&jo.toLowerCase(),constraint_kw:wo&&wo.toLowerCase(),resource:"constraint"}})(0,vr,$r,St,Kt,sn,Nn,0,Gn,fs,Ms,se,Re,0,Ne,ze),S=W):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts;(W=qa())!==r&&fr()!==r?(t.substr(o,9).toLowerCase()==="extension"?(vr=t.substr(o,9),o+=9):(vr=r,rt===0&&dr(Pn)),vr!==r&&fr()!==r?((_r=Q())===r&&(_r=null),_r!==r&&fr()!==r?(($r=vu())===r&&($r=Tt()),$r!==r&&fr()!==r?((at=en())===r&&(at=null),at!==r&&fr()!==r?(St=o,t.substr(o,6).toLowerCase()==="schema"?(Kt=t.substr(o,6),o+=6):(Kt=r,rt===0&&dr(Ae)),Kt!==r&&(sn=fr())!==r&&(Nn=vu())!==r?St=Kt=[Kt,sn,Nn]:(o=St,St=r),St===r&&(St=Tt()),St===r&&(St=null),St!==r&&(Kt=fr())!==r?(sn=o,t.substr(o,7).toLowerCase()==="version"?(Nn=t.substr(o,7),o+=7):(Nn=r,rt===0&&dr(ou)),Nn!==r&&(Xn=fr())!==r?((Gn=vu())===r&&(Gn=Tt()),Gn===r?(o=sn,sn=r):sn=Nn=[Nn,Xn,Gn]):(o=sn,sn=r),sn===r&&(sn=null),sn!==r&&(Nn=fr())!==r?(Xn=o,(Gn=ot())!==r&&(fs=fr())!==r?((Ts=vu())===r&&(Ts=Tt()),Ts===r?(o=Xn,Xn=r):Xn=Gn=[Gn,fs,Ts]):(o=Xn,Xn=r),Xn===r&&(Xn=null),Xn===r?(o=S,S=r):(Zt=S,Ms=_r,Vs=$r,se=at,Re=St,oe=sn,Ne=Xn,W={type:"create",keyword:vr.toLowerCase(),if_not_exists:Ms,extension:Yr(Vs),with:se&&se[0].toLowerCase(),schema:Yr(Re&&Re[2].toLowerCase()),version:Yr(oe&&oe[2]),from:Yr(Ne&&Ne[2])},S=W)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r);var Ms,Vs,se,Re,oe,Ne;return S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts,Ms,Vs,se,Re;(W=qa())!==r&&fr()!==r?((vr=Fu())===r&&(vr=null),vr!==r&&fr()!==r&&(_r=Aa())!==r&&fr()!==r?(($r=Zu())===r&&($r=null),$r!==r&&fr()!==r?((at=xe())===r&&(at=null),at!==r&&fr()!==r&&(St=Er())!==r&&fr()!==r&&(Kt=bs())!==r&&fr()!==r?((sn=qr())===r&&(sn=null),sn!==r&&fr()!==r&&q()!==r&&fr()!==r&&(Nn=(function(){var Ga,du,id,Ho,Lu,vd,pd,dd;if(Ga=o,(du=kt())!==r){for(id=[],Ho=o,(Lu=fr())!==r&&(vd=L())!==r&&(pd=fr())!==r&&(dd=kt())!==r?Ho=Lu=[Lu,vd,pd,dd]:(o=Ho,Ho=r);Ho!==r;)id.push(Ho),Ho=o,(Lu=fr())!==r&&(vd=L())!==r&&(pd=fr())!==r&&(dd=kt())!==r?Ho=Lu=[Lu,vd,pd,dd]:(o=Ho,Ho=r);id===r?(o=Ga,Ga=r):(Zt=Ga,du=x(du,id),Ga=du)}else o=Ga,Ga=r;return Ga})())!==r&&fr()!==r&&rr()!==r&&fr()!==r?(Xn=o,(Gn=en())!==r&&(fs=fr())!==r&&(Ts=q())!==r&&(Ms=fr())!==r&&(Vs=(function(){var Ga,du,id,Ho,Lu,vd,pd,dd;if(Ga=o,(du=pr())!==r){for(id=[],Ho=o,(Lu=fr())!==r&&(vd=L())!==r&&(pd=fr())!==r&&(dd=pr())!==r?Ho=Lu=[Lu,vd,pd,dd]:(o=Ho,Ho=r);Ho!==r;)id.push(Ho),Ho=o,(Lu=fr())!==r&&(vd=L())!==r&&(pd=fr())!==r&&(dd=pr())!==r?Ho=Lu=[Lu,vd,pd,dd]:(o=Ho,Ho=r);id===r?(o=Ga,Ga=r):(Zt=Ga,du=x(du,id),Ga=du)}else o=Ga,Ga=r;return Ga})())!==r&&(se=fr())!==r&&(Re=rr())!==r?Xn=Gn=[Gn,fs,Ts,Ms,Vs,se,Re]:(o=Xn,Xn=r),Xn===r&&(Xn=null),Xn!==r&&(Gn=fr())!==r?(fs=o,(Ts=(function(){var Ga=o,du,id,Ho;return t.substr(o,10).toLowerCase()==="tablespace"?(du=t.substr(o,10),o+=10):(du=r,rt===0&&dr(Ta)),du===r?(o=Ga,Ga=r):(id=o,rt++,Ho=Ee(),rt--,Ho===r?id=void 0:(o=id,id=r),id===r?(o=Ga,Ga=r):(Zt=Ga,Ga=du="TABLESPACE")),Ga})())!==r&&(Ms=fr())!==r&&(Vs=vu())!==r?fs=Ts=[Ts,Ms,Vs]:(o=fs,fs=r),fs===r&&(fs=null),fs!==r&&(Ts=fr())!==r?((Ms=fe())===r&&(Ms=null),Ms!==r&&(Vs=fr())!==r?(Zt=S,oe=W,Ne=vr,ze=_r,to=$r,Lo=at,wo=St,jo=Kt,Ku=sn,za=Nn,ci=Xn,uf=fs,Iv=Ms,W={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:oe[0].toLowerCase(),index_type:Ne&&Ne.toLowerCase(),keyword:ze.toLowerCase(),concurrently:to&&to.toLowerCase(),index:Lo,on_kw:wo[0].toLowerCase(),table:jo,index_using:Ku,index_columns:za,with:ci&&ci[4],with_before_where:!0,tablespace:uf&&{type:"origin",value:uf[2]},where:Iv}},S=W):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r);var oe,Ne,ze,to,Lo,wo,jo,Ku,za,ci,uf,Iv;return S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn;return(W=qa())!==r&&fr()!==r?((vr=qo())===r&&(vr=Oc()),vr===r&&(vr=null),vr!==r&&fr()!==r&&(function(){var Nn=o,Xn,Gn,fs;return t.substr(o,8).toLowerCase()==="sequence"?(Xn=t.substr(o,8),o+=8):(Xn=r,rt===0&&dr(_n)),Xn===r?(o=Nn,Nn=r):(Gn=o,rt++,fs=Ee(),rt--,fs===r?Gn=void 0:(o=Gn,Gn=r),Gn===r?(o=Nn,Nn=r):(Zt=Nn,Nn=Xn="SEQUENCE")),Nn})()!==r&&fr()!==r?((_r=Q())===r&&(_r=null),_r!==r&&fr()!==r&&($r=bs())!==r&&fr()!==r?(at=o,(St=R())!==r&&(Kt=fr())!==r&&(sn=fo())!==r?at=St=[St,Kt,sn]:(o=at,at=r),at===r&&(at=null),at!==r&&(St=fr())!==r?((Kt=(function(){var Nn,Xn,Gn,fs,Ts,Ms;if(Nn=o,(Xn=K())!==r){for(Gn=[],fs=o,(Ts=fr())!==r&&(Ms=K())!==r?fs=Ts=[Ts,Ms]:(o=fs,fs=r);fs!==r;)Gn.push(fs),fs=o,(Ts=fr())!==r&&(Ms=K())!==r?fs=Ts=[Ts,Ms]:(o=fs,fs=r);Gn===r?(o=Nn,Nn=r):(Zt=Nn,Xn=x(Xn,Gn,1),Nn=Xn)}else o=Nn,Nn=r;return Nn})())===r&&(Kt=null),Kt===r?(o=S,S=r):(Zt=S,W=(function(Nn,Xn,Gn,fs,Ts,Ms){return fs.as=Ts&&Ts[2],{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Nn[0].toLowerCase(),keyword:"sequence",temporary:Xn&&Xn[0].toLowerCase(),if_not_exists:Gn,sequence:[fs],create_definitions:Ms}}})(W,vr,_r,$r,at,Kt),S=W)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at;return(W=qa())!==r&&fr()!==r?((vr=(function(){var St=o,Kt,sn,Nn;return t.substr(o,8).toLowerCase()==="database"?(Kt=t.substr(o,8),o+=8):(Kt=r,rt===0&&dr(En)),Kt===r?(o=St,St=r):(sn=o,rt++,Nn=Ee(),rt--,Nn===r?sn=void 0:(o=sn,sn=r),sn===r?(o=St,St=r):(Zt=St,St=Kt="DATABASE")),St})())===r&&(vr=cr()),vr!==r&&fr()!==r?((_r=Q())===r&&(_r=null),_r!==r&&fr()!==r&&($r=Ct())!==r&&fr()!==r?((at=(function(){var St,Kt,sn,Nn,Xn,Gn;if(St=o,(Kt=Ni())!==r){for(sn=[],Nn=o,(Xn=fr())!==r&&(Gn=Ni())!==r?Nn=Xn=[Xn,Gn]:(o=Nn,Nn=r);Nn!==r;)sn.push(Nn),Nn=o,(Xn=fr())!==r&&(Gn=Ni())!==r?Nn=Xn=[Xn,Gn]:(o=Nn,Nn=r);sn===r?(o=St,St=r):(Zt=St,Kt=x(Kt,sn,1),St=Kt)}else o=St,St=r;return St})())===r&&(at=null),at===r?(o=S,S=r):(Zt=S,W=(function(St,Kt,sn,Nn,Xn){let Gn=Kt.toLowerCase();return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:St[0].toLowerCase(),keyword:Gn,if_not_exists:sn,[Gn]:{db:Nn.schema,schema:Nn.name},create_definitions:Xn}}})(W,vr,_r,$r,at),S=W)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn;return(W=qa())!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="domain"?(vr=t.substr(o,6),o+=6):(vr=r,rt===0&&dr(He)),vr!==r&&fr()!==r&&(_r=bs())!==r&&fr()!==r?(($r=R())===r&&($r=null),$r!==r&&fr()!==r&&(at=jn())!==r&&fr()!==r?((St=_t())===r&&(St=null),St!==r&&fr()!==r?((Kt=ao())===r&&(Kt=null),Kt!==r&&fr()!==r?((sn=Ml())===r&&(sn=null),sn===r?(o=S,S=r):(Zt=S,W=(function(Nn,Xn,Gn,fs,Ts,Ms,Vs,se){se&&(se.type="constraint");let Re=[Ms,Vs,se].filter(oe=>oe);return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Nn[0].toLowerCase(),keyword:Xn.toLowerCase(),domain:{schema:Gn.db,name:Gn.table},as:fs&&fs[0]&&fs[0].toLowerCase(),target:Ts,create_definitions:Re}}})(W,vr,_r,$r,at,St,Kt,sn),S=W)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St;(W=qa())!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="type"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(ce)),vr!==r&&fr()!==r&&(_r=bs())!==r&&fr()!==r&&($r=R())!==r&&fr()!==r&&(at=An())!==r&&fr()!==r&&q()!==r&&fr()!==r?((St=gn())===r&&(St=null),St!==r&&fr()!==r&&rr()!==r?(Zt=S,Kt=W,sn=vr,Nn=_r,Xn=$r,Gn=at,(fs=St).parentheses=!0,rn.add([Nn.db,Nn.table].filter(Ts=>Ts).join(".")),W={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Kt[0].toLowerCase(),keyword:sn.toLowerCase(),name:{schema:Nn.db,name:Nn.table},as:Xn&&Xn[0]&&Xn[0].toLowerCase(),resource:Gn.toLowerCase(),create_definitions:fs}},S=W):(o=S,S=r)):(o=S,S=r)):(o=S,S=r);var Kt,sn,Nn,Xn,Gn,fs;return S===r&&(S=o,(W=qa())!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="type"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(ce)),vr!==r&&fr()!==r&&(_r=bs())!==r?(Zt=S,W=(function(Ts,Ms,Vs){return rn.add([Vs.db,Vs.table].filter(se=>se).join(".")),{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Ts[0].toLowerCase(),keyword:Ms.toLowerCase(),name:{schema:Vs.db,name:Vs.table}}}})(W,vr,_r),S=W):(o=S,S=r)):(o=S,S=r)),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts,Ms,Vs,se,Re;return(W=qa())!==r&&fr()!==r?(vr=o,(_r=Ka())!==r&&($r=fr())!==r&&(at=m0())!==r?vr=_r=[_r,$r,at]:(o=vr,vr=r),vr===r&&(vr=null),vr!==r&&(_r=fr())!==r?(($r=Oc())===r&&($r=qo()),$r===r&&($r=null),$r!==r&&(at=fr())!==r?((St=$l())===r&&(St=null),St!==r&&fr()!==r&&(function(){var oe=o,Ne,ze,to;return t.substr(o,4).toLowerCase()==="view"?(Ne=t.substr(o,4),o+=4):(Ne=r,rt===0&&dr(l)),Ne===r?(o=oe,oe=r):(ze=o,rt++,to=Ee(),rt--,to===r?ze=void 0:(o=ze,ze=r),ze===r?(o=oe,oe=r):(Zt=oe,oe=Ne="VIEW")),oe})()!==r&&fr()!==r&&(Kt=bs())!==r&&fr()!==r?(sn=o,(Nn=q())!==r&&(Xn=fr())!==r&&(Gn=hu())!==r&&(fs=fr())!==r&&(Ts=rr())!==r?sn=Nn=[Nn,Xn,Gn,fs,Ts]:(o=sn,sn=r),sn===r&&(sn=null),sn!==r&&(Nn=fr())!==r?(Xn=o,(Gn=en())!==r&&(fs=fr())!==r&&(Ts=q())!==r&&(Ms=fr())!==r&&(Vs=(function(){var oe,Ne,ze,to,Lo,wo,jo,Ku;if(oe=o,(Ne=Tr())!==r){for(ze=[],to=o,(Lo=fr())!==r&&(wo=L())!==r&&(jo=fr())!==r&&(Ku=Tr())!==r?to=Lo=[Lo,wo,jo,Ku]:(o=to,to=r);to!==r;)ze.push(to),to=o,(Lo=fr())!==r&&(wo=L())!==r&&(jo=fr())!==r&&(Ku=Tr())!==r?to=Lo=[Lo,wo,jo,Ku]:(o=to,to=r);ze===r?(o=oe,oe=r):(Zt=oe,Ne=x(Ne,ze),oe=Ne)}else o=oe,oe=r;return oe})())!==r&&(se=fr())!==r&&(Re=rr())!==r?Xn=Gn=[Gn,fs,Ts,Ms,Vs,se,Re]:(o=Xn,Xn=r),Xn===r&&(Xn=null),Xn!==r&&(Gn=fr())!==r&&(fs=R())!==r&&(Ts=fr())!==r&&(Ms=ir())!==r&&(Vs=fr())!==r?((se=(function(){var oe=o,Ne,ze,to,Lo;return(Ne=en())!==r&&fr()!==r?(t.substr(o,8).toLowerCase()==="cascaded"?(ze=t.substr(o,8),o+=8):(ze=r,rt===0&&dr(Hs)),ze===r&&(t.substr(o,5).toLowerCase()==="local"?(ze=t.substr(o,5),o+=5):(ze=r,rt===0&&dr(Uo))),ze!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="check"?(to=t.substr(o,5),o+=5):(to=r,rt===0&&dr(Ps)),to!==r&&fr()!==r?(t.substr(o,6)==="OPTION"?(Lo="OPTION",o+=6):(Lo=r,rt===0&&dr(pe)),Lo===r?(o=oe,oe=r):(Zt=oe,Ne=(function(wo){return`with ${wo.toLowerCase()} check option`})(ze),oe=Ne)):(o=oe,oe=r)):(o=oe,oe=r)):(o=oe,oe=r),oe===r&&(oe=o,(Ne=en())!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="check"?(ze=t.substr(o,5),o+=5):(ze=r,rt===0&&dr(Ps)),ze!==r&&fr()!==r?(t.substr(o,6)==="OPTION"?(to="OPTION",o+=6):(to=r,rt===0&&dr(pe)),to===r?(o=oe,oe=r):(Zt=oe,oe=Ne="with check option")):(o=oe,oe=r)):(o=oe,oe=r)),oe})())===r&&(se=null),se===r?(o=S,S=r):(Zt=S,W=(function(oe,Ne,ze,to,Lo,wo,jo,Ku,za){return Lo.view=Lo.table,delete Lo.table,{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:oe[0].toLowerCase(),keyword:"view",replace:Ne&&"or replace",temporary:ze&&ze[0].toLowerCase(),recursive:to&&to.toLowerCase(),columns:wo&&wo[2],select:Ku,view:Lo,with_options:jo&&jo[4],with:za}}})(W,vr,$r,St,Kt,sn,Xn,Ms,se),S=W)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn;(W=qa())!==r&&fr()!==r?(vr=o,(_r=Ka())!==r&&($r=fr())!==r&&(at=m0())!==r?vr=_r=[_r,$r,at]:(o=vr,vr=r),vr===r&&(vr=null),vr!==r&&(_r=fr())!==r?(t.substr(o,9).toLowerCase()==="aggregate"?($r=t.substr(o,9),o+=9):($r=r,rt===0&&dr(dl)),$r!==r&&(at=fr())!==r&&(St=bs())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(Kt=zo())!==r&&fr()!==r&&rr()!==r&&fr()!==r&&q()!==r&&fr()!==r&&(sn=(function(){var fs,Ts,Ms,Vs,se,Re,oe,Ne;if(fs=o,(Ts=(function(){var ze=o,to,Lo,wo,jo;t.substr(o,5).toLowerCase()==="sfunc"?(to=t.substr(o,5),o+=5):(to=r,rt===0&&dr(Fi)),to!==r&&fr()!==r&&Gu()!==r&&fr()!==r&&(Lo=bs())!==r&&fr()!==r&&L()!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="stype"?(wo=t.substr(o,5),o+=5):(wo=r,rt===0&&dr(T0)),wo!==r&&fr()!==r&&Gu()!==r&&fr()!==r&&(jo=jn())!==r?(Zt=ze,za=jo,to=[{type:"sfunc",symbol:"=",value:{schema:(Ku=Lo).db,name:Ku.table}},{type:"stype",symbol:"=",value:za}],ze=to):(o=ze,ze=r)):(o=ze,ze=r);var Ku,za;return ze})())!==r){for(Ms=[],Vs=o,(se=fr())!==r&&(Re=L())!==r&&(oe=fr())!==r&&(Ne=P())!==r?Vs=se=[se,Re,oe,Ne]:(o=Vs,Vs=r);Vs!==r;)Ms.push(Vs),Vs=o,(se=fr())!==r&&(Re=L())!==r&&(oe=fr())!==r&&(Ne=P())!==r?Vs=se=[se,Re,oe,Ne]:(o=Vs,Vs=r);Ms===r?(o=fs,fs=r):(Zt=fs,Ts=x(Ts,Ms),fs=Ts)}else o=fs,fs=r;return fs})())!==r&&fr()!==r&&rr()!==r?(Zt=S,Nn=St,Xn=Kt,Gn=sn,W={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"create",keyword:"aggregate",name:{schema:Nn.db,name:Nn.table},args:{parentheses:!0,expr:Xn,orderby:Xn.orderby},options:Gn}},S=W):(o=S,S=r)):(o=S,S=r)):(o=S,S=r);var Nn,Xn,Gn;return S})()),y})())===r&&(f=Mr())===r&&(f=(function(){var y=o,S,W,vr;(S=No())!==r&&fr()!==r?((W=B())===r&&(W=null),W!==r&&fr()!==r&&(vr=xt())!==r?(Zt=y,_r=S,$r=W,(at=vr)&&at.forEach(St=>gt.add(`${_r}::${[St.db,St.schema].filter(Boolean).join(".")||null}::${St.table}`)),S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:_r.toLowerCase(),keyword:$r&&$r.toLowerCase()||"table",name:at}},y=S):(o=y,y=r)):(o=y,y=r);var _r,$r,at;return y})())===r&&(f=(function(){var y=o,S,W;(S=G0())!==r&&fr()!==r&&B()!==r&&fr()!==r&&(W=(function(){var _r,$r,at,St,Kt,sn,Nn,Xn;if(_r=o,($r=Ar())!==r){for(at=[],St=o,(Kt=fr())!==r&&(sn=L())!==r&&(Nn=fr())!==r&&(Xn=Ar())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r);St!==r;)at.push(St),St=o,(Kt=fr())!==r&&(sn=L())!==r&&(Nn=fr())!==r&&(Xn=Ar())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r);at===r?(o=_r,_r=r):(Zt=_r,$r=x($r,at),_r=$r)}else o=_r,_r=r;return _r})())!==r?(Zt=y,(vr=W).forEach(_r=>_r.forEach($r=>$r.table&>.add(`rename::${[$r.db,$r.schema].filter(Boolean).join(".")||null}::${$r.table}`))),S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"rename",table:vr}},y=S):(o=y,y=r);var vr;return y})())===r&&(f=(function(){var y=o,S,W;(S=(function(){var _r=o,$r,at,St;return t.substr(o,4).toLowerCase()==="call"?($r=t.substr(o,4),o+=4):($r=r,rt===0&&dr(Ac)),$r===r?(o=_r,_r=r):(at=o,rt++,St=Ee(),rt--,St===r?at=void 0:(o=at,at=r),at===r?(o=_r,_r=r):(Zt=_r,_r=$r="CALL")),_r})())!==r&&fr()!==r&&(W=Xt())!==r?(Zt=y,vr=W,S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"call",expr:vr}},y=S):(o=y,y=r);var vr;return y})())===r&&(f=(function(){var y=o,S,W;(S=(function(){var _r=o,$r,at,St;return t.substr(o,3).toLowerCase()==="use"?($r=t.substr(o,3),o+=3):($r=r,rt===0&&dr(ss)),$r===r?(o=_r,_r=r):(at=o,rt++,St=Ee(),rt--,St===r?at=void 0:(o=at,at=r),at===r?(o=_r,_r=r):_r=$r=[$r,at]),_r})())!==r&&fr()!==r&&(W=xe())!==r?(Zt=y,vr=W,gt.add(`use::${vr}::null`),S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"use",db:vr}},y=S):(o=y,y=r);var vr;return y})())===r&&(f=(function(){var y;return(y=(function(){var S=o,W,vr,_r;(W=Sc())!==r&&fr()!==r&&B()!==r&&fr()!==r&&(vr=xt())!==r&&fr()!==r&&(_r=(function(){var St,Kt,sn,Nn,Xn,Gn,fs,Ts;if(St=o,(Kt=lo())!==r){for(sn=[],Nn=o,(Xn=fr())!==r&&(Gn=L())!==r&&(fs=fr())!==r&&(Ts=lo())!==r?Nn=Xn=[Xn,Gn,fs,Ts]:(o=Nn,Nn=r);Nn!==r;)sn.push(Nn),Nn=o,(Xn=fr())!==r&&(Gn=L())!==r&&(fs=fr())!==r&&(Ts=lo())!==r?Nn=Xn=[Xn,Gn,fs,Ts]:(o=Nn,Nn=r);sn===r?(o=St,St=r):(Zt=St,Kt=x(Kt,sn),St=Kt)}else o=St,St=r;return St})())!==r?(Zt=S,at=_r,($r=vr)&&$r.length>0&&$r.forEach(St=>gt.add(`alter::${[St.db,St.schema].filter(Boolean).join(".")||null}::${St.table}`)),W={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"alter",table:$r,expr:at}},S=W):(o=S,S=r);var $r,at;return S})())===r&&(y=(function(){var S=o,W,vr,_r,$r;return(W=Sc())!==r&&fr()!==r&&(vr=cr())!==r&&fr()!==r&&(_r=vu())!==r&&fr()!==r?(($r=Co())===r&&($r=Au())===r&&($r=la()),$r===r?(o=S,S=r):(Zt=S,W=(function(at,St,Kt){let sn=at.toLowerCase();return Kt.resource=sn,Kt[sn]=Kt.table,delete Kt.table,{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"alter",keyword:sn,schema:St,expr:Kt}}})(vr,_r,$r),S=W)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r;return(W=Sc())!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="domain"?(vr=t.substr(o,6),o+=6):(vr=r,rt===0&&dr(He)),vr===r&&(t.substr(o,4).toLowerCase()==="type"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(ce))),vr!==r&&fr()!==r&&(_r=bs())!==r&&fr()!==r?(($r=Co())===r&&($r=Au())===r&&($r=la()),$r===r?(o=S,S=r):(Zt=S,W=(function(at,St,Kt){let sn=at.toLowerCase();return Kt.resource=sn,Kt[sn]=Kt.table,delete Kt.table,{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"alter",keyword:sn,name:{schema:St.db,name:St.table},expr:Kt}}})(vr,_r,$r),S=W)):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at,St,Kt,sn,Nn;return(W=Sc())!==r&&fr()!==r?(t.substr(o,8).toLowerCase()==="function"?(vr=t.substr(o,8),o+=8):(vr=r,rt===0&&dr(te)),vr!==r&&fr()!==r&&(_r=bs())!==r&&fr()!==r?($r=o,(at=q())!==r&&(St=fr())!==r?((Kt=yo())===r&&(Kt=null),Kt!==r&&(sn=fr())!==r&&(Nn=rr())!==r?$r=at=[at,St,Kt,sn,Nn]:(o=$r,$r=r)):(o=$r,$r=r),$r===r&&($r=null),$r!==r&&(at=fr())!==r?((St=Co())===r&&(St=Au())===r&&(St=la()),St===r?(o=S,S=r):(Zt=S,W=(function(Xn,Gn,fs,Ts){let Ms=Xn.toLowerCase();Ts.resource=Ms,Ts[Ms]=Ts.table,delete Ts.table;let Vs={};return fs&&fs[0]&&(Vs.parentheses=!0),Vs.expr=fs&&fs[2],{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"alter",keyword:Ms,name:{schema:Gn.db,name:Gn.table},args:Vs,expr:Ts}}})(vr,_r,$r,St),S=W)):(o=S,S=r)):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=(function(){var S=o,W,vr,_r,$r,at;return(W=Sc())!==r&&fr()!==r?(t.substr(o,9).toLowerCase()==="aggregate"?(vr=t.substr(o,9),o+=9):(vr=r,rt===0&&dr(dl)),vr!==r&&fr()!==r&&(_r=bs())!==r&&fr()!==r&&q()!==r&&fr()!==r&&($r=zo())!==r&&fr()!==r&&rr()!==r&&fr()!==r?((at=Co())===r&&(at=Au())===r&&(at=la()),at===r?(o=S,S=r):(Zt=S,W=(function(St,Kt,sn,Nn){let Xn=St.toLowerCase();return Nn.resource=Xn,Nn[Xn]=Nn.table,delete Nn.table,{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"alter",keyword:Xn,name:{schema:Kt.db,name:Kt.table},args:{parentheses:!0,expr:sn,orderby:sn.orderby},expr:Nn}}})(vr,_r,$r,at),S=W)):(o=S,S=r)):(o=S,S=r),S})()),y})())===r&&(f=(function(){var y=o,S,W,vr;(S=Xv())!==r&&fr()!==r?((W=(function(){var at=o,St,Kt,sn;return t.substr(o,6).toLowerCase()==="global"?(St=t.substr(o,6),o+=6):(St=r,rt===0&&dr(qc)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):(Zt=at,at=St="GLOBAL")),at})())===r&&(W=(function(){var at=o,St,Kt,sn;return t.substr(o,7).toLowerCase()==="session"?(St=t.substr(o,7),o+=7):(St=r,rt===0&&dr(Ba)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):(Zt=at,at=St="SESSION")),at})())===r&&(W=(function(){var at=o,St,Kt,sn;return t.substr(o,5).toLowerCase()==="local"?(St=t.substr(o,5),o+=5):(St=r,rt===0&&dr(Uo)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):(Zt=at,at=St="LOCAL")),at})())===r&&(W=(function(){var at=o,St,Kt,sn;return t.substr(o,7).toLowerCase()==="persist"?(St=t.substr(o,7),o+=7):(St=r,rt===0&&dr(Qi)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):(Zt=at,at=St="PERSIST")),at})())===r&&(W=(function(){var at=o,St,Kt,sn;return t.substr(o,12).toLowerCase()==="persist_only"?(St=t.substr(o,12),o+=12):(St=r,rt===0&&dr(ya)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):(Zt=at,at=St="PERSIST_ONLY")),at})()),W===r&&(W=null),W!==r&&fr()!==r&&(vr=(function(){var at,St,Kt,sn,Nn,Xn,Gn,fs;if(at=o,(St=Z())!==r){for(Kt=[],sn=o,(Nn=fr())!==r&&(Xn=L())!==r&&(Gn=fr())!==r&&(fs=Z())!==r?sn=Nn=[Nn,Xn,Gn,fs]:(o=sn,sn=r);sn!==r;)Kt.push(sn),sn=o,(Nn=fr())!==r&&(Xn=L())!==r&&(Gn=fr())!==r&&(fs=Z())!==r?sn=Nn=[Nn,Xn,Gn,fs]:(o=sn,sn=r);Kt===r?(o=at,at=r):(Zt=at,St=x(St,Kt),at=St)}else o=at,at=r;return at})())!==r?(Zt=y,_r=W,($r=vr).keyword=_r,S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"set",keyword:_r,expr:$r}},y=S):(o=y,y=r)):(o=y,y=r);var _r,$r;return y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r;(S=(function(){var Nn=o,Xn,Gn,fs;return t.substr(o,4).toLowerCase()==="lock"?(Xn=t.substr(o,4),o+=4):(Xn=r,rt===0&&dr(Gb)),Xn===r?(o=Nn,Nn=r):(Gn=o,rt++,fs=Ee(),rt--,fs===r?Gn=void 0:(o=Gn,Gn=r),Gn===r?(o=Nn,Nn=r):Nn=Xn=[Xn,Gn]),Nn})())!==r&&fr()!==r?((W=B())===r&&(W=null),W!==r&&fr()!==r&&(vr=xt())!==r&&fr()!==r?((_r=(function(){var Nn=o,Xn,Gn,fs;return t.substr(o,2).toLowerCase()==="in"?(Xn=t.substr(o,2),o+=2):(Xn=r,rt===0&&dr(Hb)),Xn!==r&&fr()!==r?(t.substr(o,12).toLowerCase()==="access share"?(Gn=t.substr(o,12),o+=12):(Gn=r,rt===0&&dr(Jf)),Gn===r&&(t.substr(o,9).toLowerCase()==="row share"?(Gn=t.substr(o,9),o+=9):(Gn=r,rt===0&&dr(pf)),Gn===r&&(t.substr(o,13).toLowerCase()==="row exclusive"?(Gn=t.substr(o,13),o+=13):(Gn=r,rt===0&&dr(Yb)),Gn===r&&(t.substr(o,22).toLowerCase()==="share update exclusive"?(Gn=t.substr(o,22),o+=22):(Gn=r,rt===0&&dr(av)),Gn===r&&(t.substr(o,19).toLowerCase()==="share row exclusive"?(Gn=t.substr(o,19),o+=19):(Gn=r,rt===0&&dr(iv)),Gn===r&&(t.substr(o,9).toLowerCase()==="exclusive"?(Gn=t.substr(o,9),o+=9):(Gn=r,rt===0&&dr(Bl)),Gn===r&&(t.substr(o,16).toLowerCase()==="access exclusive"?(Gn=t.substr(o,16),o+=16):(Gn=r,rt===0&&dr(a0)),Gn===r&&(t.substr(o,5).toLowerCase()==="share"?(Gn=t.substr(o,5),o+=5):(Gn=r,rt===0&&dr(_l))))))))),Gn!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="mode"?(fs=t.substr(o,4),o+=4):(fs=r,rt===0&&dr(Yl)),fs===r?(o=Nn,Nn=r):(Zt=Nn,Xn={mode:`in ${Gn.toLowerCase()} mode`},Nn=Xn)):(o=Nn,Nn=r)):(o=Nn,Nn=r),Nn})())===r&&(_r=null),_r!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="nowait"?($r=t.substr(o,6),o+=6):($r=r,rt===0&&dr(Ab)),$r===r&&($r=null),$r===r?(o=y,y=r):(Zt=y,at=W,Kt=_r,sn=$r,(St=vr)&&St.forEach(Nn=>gt.add(`lock::${[Nn.db,Nn.schema].filter(Boolean).join(".")||null}::${Nn.table}`)),S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"lock",keyword:at&&at.toLowerCase(),tables:St.map(Nn=>({table:Nn})),lock_mode:Kt,nowait:sn}},y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r);var at,St,Kt,sn;return y})())===r&&(f=(function(){var y=o,S,W;return(S=ip())!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="tables"?(W=t.substr(o,6),o+=6):(W=r,rt===0&&dr(Mf)),W===r?(o=y,y=r):(Zt=y,S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"show",keyword:"tables"}},y=S)):(o=y,y=r),y===r&&(y=o,(S=ip())!==r&&fr()!==r&&(W=Tn())!==r?(Zt=y,S=(function(vr){return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"show",keyword:"var",var:vr}}})(W),y=S):(o=y,y=r)),y})())===r&&(f=(function(){var y=o,S,W,vr;(S=(function(){var at=o,St,Kt,sn;return t.substr(o,10).toLowerCase()==="deallocate"?(St=t.substr(o,10),o+=10):(St=r,rt===0&&dr(x0)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):(Zt=at,at=St="DEALLOCATE")),at})())!==r&&fr()!==r?(t.substr(o,7).toLowerCase()==="prepare"?(W=t.substr(o,7),o+=7):(W=r,rt===0&&dr(Wb)),W===r&&(W=null),W!==r&&fr()!==r?((vr=vu())===r&&(vr=ee()),vr===r?(o=y,y=r):(Zt=y,_r=W,$r=vr,S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"deallocate",keyword:_r,expr:{type:"default",value:$r}}},y=S)):(o=y,y=r)):(o=y,y=r);var _r,$r;return y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St,Kt,sn,Nn;(S=ur())!==r&&fr()!==r&&(W=(function(){var Gn,fs,Ts,Ms,Vs,se,Re,oe;if(Gn=o,(fs=Wu())!==r){for(Ts=[],Ms=o,(Vs=fr())!==r&&(se=L())!==r&&(Re=fr())!==r&&(oe=Wu())!==r?Ms=Vs=[Vs,se,Re,oe]:(o=Ms,Ms=r);Ms!==r;)Ts.push(Ms),Ms=o,(Vs=fr())!==r&&(se=L())!==r&&(Re=fr())!==r&&(oe=Wu())!==r?Ms=Vs=[Vs,se,Re,oe]:(o=Ms,Ms=r);Ts===r?(o=Gn,Gn=r):(Zt=Gn,fs=x(fs,Ts),Gn=fs)}else o=Gn,Gn=r;return Gn})())!==r&&fr()!==r&&(vr=Er())!==r&&fr()!==r?((_r=(function(){var Gn=o,fs,Ts;return(fs=B())===r&&(t.substr(o,8).toLowerCase()==="sequence"?(fs=t.substr(o,8),o+=8):(fs=r,rt===0&&dr(_n)),fs===r&&(t.substr(o,8).toLowerCase()==="database"?(fs=t.substr(o,8),o+=8):(fs=r,rt===0&&dr(En)),fs===r&&(t.substr(o,6)==="DOMAIN"?(fs="DOMAIN",o+=6):(fs=r,rt===0&&dr(Os)),fs===r&&(t.substr(o,8)==="FUNCTION"?(fs="FUNCTION",o+=8):(fs=r,rt===0&&dr(gs)),fs===r&&(t.substr(o,9).toLowerCase()==="procedure"?(fs=t.substr(o,9),o+=9):(fs=r,rt===0&&dr(xf)),fs===r&&(t.substr(o,7).toLowerCase()==="routine"?(fs=t.substr(o,7),o+=7):(fs=r,rt===0&&dr(Ys)),fs===r&&(t.substr(o,8).toLowerCase()==="language"?(fs=t.substr(o,8),o+=8):(fs=r,rt===0&&dr(Te)),fs===r&&(t.substr(o,5).toLowerCase()==="large"?(fs=t.substr(o,5),o+=5):(fs=r,rt===0&&dr(ye)),fs===r&&(t.substr(o,6)==="SCHEMA"?(fs="SCHEMA",o+=6):(fs=r,rt===0&&dr(Be))))))))))),fs!==r&&(Zt=Gn,fs={type:"origin",value:fs.toUpperCase()}),(Gn=fs)===r&&(Gn=o,(fs=ee())!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="tables"?(Ts=t.substr(o,6),o+=6):(Ts=r,rt===0&&dr(Mf)),Ts===r&&(t.substr(o,8).toLowerCase()==="sequence"?(Ts=t.substr(o,8),o+=8):(Ts=r,rt===0&&dr(_n)),Ts===r&&(t.substr(o,9).toLowerCase()==="functions"?(Ts=t.substr(o,9),o+=9):(Ts=r,rt===0&&dr(io)),Ts===r&&(t.substr(o,10).toLowerCase()==="procedures"?(Ts=t.substr(o,10),o+=10):(Ts=r,rt===0&&dr(Ro)),Ts===r&&(t.substr(o,8).toLowerCase()==="routines"?(Ts=t.substr(o,8),o+=8):(Ts=r,rt===0&&dr(So)))))),Ts!==r&&fr()!==r&&$e()!==r&&fr()!==r&&cr()!==r?(Zt=Gn,Gn=fs={type:"origin",value:`all ${Ts} in schema`}):(o=Gn,Gn=r)):(o=Gn,Gn=r)),Gn})())===r&&(_r=null),_r!==r&&($r=fr())!==r&&(at=(function(){var Gn,fs,Ts,Ms,Vs,se,Re,oe;if(Gn=o,(fs=Zo())!==r){for(Ts=[],Ms=o,(Vs=fr())!==r&&(se=L())!==r&&(Re=fr())!==r&&(oe=Zo())!==r?Ms=Vs=[Vs,se,Re,oe]:(o=Ms,Ms=r);Ms!==r;)Ts.push(Ms),Ms=o,(Vs=fr())!==r&&(se=L())!==r&&(Re=fr())!==r&&(oe=Zo())!==r?Ms=Vs=[Vs,se,Re,oe]:(o=Ms,Ms=r);Ts===r?(o=Gn,Gn=r):(Zt=Gn,fs=x(fs,Ts),Gn=fs)}else o=Gn,Gn=r;return Gn})())!==r&&(St=fr())!==r?((Kt=ef())===r&&(Kt=ot()),Kt===r?(o=y,y=r):(Zt=o,Xn=Kt,({revoke:"from",grant:"to"}[S.type].toLowerCase()===Xn[0].toLowerCase()?void 0:r)!==r&&fr()!==r&&(sn=j())!==r&&fr()!==r?((Nn=(function(){var Gn=o,fs,Ts;return en()!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="grant"?(fs=t.substr(o,5),o+=5):(fs=r,rt===0&&dr(ko)),fs!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="option"?(Ts=t.substr(o,6),o+=6):(Ts=r,rt===0&&dr(yu)),Ts===r?(o=Gn,Gn=r):(Zt=Gn,Gn={type:"origin",value:"with grant option"})):(o=Gn,Gn=r)):(o=Gn,Gn=r),Gn})())===r&&(Nn=null),Nn===r?(o=y,y=r):(Zt=y,S=(function(Gn,fs,Ts,Ms,Vs,se,Re){return{tableList:Array.from(gt),columnList:gr(Gt),ast:{...Gn,keyword:"priv",objects:fs,on:{object_type:Ts,priv_level:Ms},to_from:Vs[0],user_or_roles:se,with:Re}}})(S,W,_r,at,Kt,sn,Nn),y=S)):(o=y,y=r))):(o=y,y=r)):(o=y,y=r);var Xn;return y===r&&(y=o,(S=ur())!==r&&fr()!==r&&(W=qs())!==r&&fr()!==r?((vr=ef())===r&&(vr=ot()),vr===r?(o=y,y=r):(Zt=o,((function(Gn,fs,Ts){return{revoke:"from",grant:"to"}[Gn.type].toLowerCase()===Ts[0].toLowerCase()})(S,0,vr)?void 0:r)!==r&&(_r=fr())!==r&&($r=j())!==r&&(at=fr())!==r?((St=(function(){var Gn=o,fs,Ts;return en()!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="admin"?(fs=t.substr(o,5),o+=5):(fs=r,rt===0&&dr(au)),fs!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="option"?(Ts=t.substr(o,6),o+=6):(Ts=r,rt===0&&dr(yu)),Ts===r?(o=Gn,Gn=r):(Zt=Gn,Gn={type:"origin",value:"with admin option"})):(o=Gn,Gn=r)):(o=Gn,Gn=r),Gn})())===r&&(St=null),St===r?(o=y,y=r):(Zt=y,S=(function(Gn,fs,Ts,Ms,Vs){return{tableList:Array.from(gt),columnList:gr(Gt),ast:{...Gn,keyword:"role",objects:fs.map(se=>({priv:{type:"string",value:se}})),to_from:Ts[0],user_or_roles:Ms,with:Vs}}})(S,W,vr,$r,St),y=S)):(o=y,y=r))):(o=y,y=r)),y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn;t.substr(o,2).toLowerCase()==="if"?(S=t.substr(o,2),o+=2):(S=r,rt===0&&dr(Dn)),S!==r&&fr()!==r&&(W=J())!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="then"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(Ju)),vr!==r&&fr()!==r&&(_r=Un())!==r&&fr()!==r?(($r=Jr())===r&&($r=null),$r!==r&&fr()!==r?((at=(function(){var oe,Ne,ze,to,Lo,wo;if(oe=o,(Ne=Ir())!==r){for(ze=[],to=o,(Lo=fr())!==r&&(wo=Ir())!==r?to=Lo=[Lo,wo]:(o=to,to=r);to!==r;)ze.push(to),to=o,(Lo=fr())!==r&&(wo=Ir())!==r?to=Lo=[Lo,wo]:(o=to,to=r);ze===r?(o=oe,oe=r):(Zt=oe,Ne=x(Ne,ze,1),oe=Ne)}else o=oe,oe=r;return oe})())===r&&(at=null),at!==r&&fr()!==r?(St=o,(Kt=Wf())!==r&&(sn=fr())!==r&&(Nn=Un())!==r?St=Kt=[Kt,sn,Nn]:(o=St,St=r),St===r&&(St=null),St!==r&&(Kt=fr())!==r?((sn=Jr())===r&&(sn=null),sn!==r&&(Nn=fr())!==r?(t.substr(o,3).toLowerCase()==="end"?(Xn=t.substr(o,3),o+=3):(Xn=r,rt===0&&dr(ua)),Xn!==r&&fr()!==r?(t.substr(o,2).toLowerCase()==="if"?(Gn=t.substr(o,2),o+=2):(Gn=r,rt===0&&dr(Dn)),Gn===r?(o=y,y=r):(Zt=y,fs=W,Ts=_r,Ms=$r,Vs=at,se=St,Re=sn,S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"if",keyword:"if",boolean_expr:fs,semicolons:[Ms||"",Re||""],prefix:{type:"origin",value:"then"},if_expr:Ts,elseif_expr:Vs,else_expr:se&&se[2],suffix:{type:"origin",value:"end if"}}},y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r);var fs,Ts,Ms,Vs,se,Re;return y})())===r&&(f=(function(){var y=o,S,W,vr,_r;t.substr(o,5).toLowerCase()==="raise"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(lp)),S!==r&&fr()!==r?((W=(function(){var Kt;return t.substr(o,5).toLowerCase()==="debug"?(Kt=t.substr(o,5),o+=5):(Kt=r,rt===0&&dr(Sa)),Kt===r&&(t.substr(o,3).toLowerCase()==="log"?(Kt=t.substr(o,3),o+=3):(Kt=r,rt===0&&dr(ma)),Kt===r&&(t.substr(o,4).toLowerCase()==="info"?(Kt=t.substr(o,4),o+=4):(Kt=r,rt===0&&dr(Bi)),Kt===r&&(t.substr(o,6).toLowerCase()==="notice"?(Kt=t.substr(o,6),o+=6):(Kt=r,rt===0&&dr(sa)),Kt===r&&(t.substr(o,7).toLowerCase()==="warning"?(Kt=t.substr(o,7),o+=7):(Kt=r,rt===0&&dr(di)),Kt===r&&(t.substr(o,9).toLowerCase()==="exception"?(Kt=t.substr(o,9),o+=9):(Kt=r,rt===0&&dr(Hi))))))),Kt})())===r&&(W=null),W!==r&&fr()!==r?((vr=(function(){var Kt,sn,Nn,Xn,Gn,fs,Ts,Ms;if(Kt=o,(sn=Tt())!==r){for(Nn=[],Xn=o,(Gn=fr())!==r&&(fs=L())!==r&&(Ts=fr())!==r&&(Ms=tt())!==r?Xn=Gn=[Gn,fs,Ts,Ms]:(o=Xn,Xn=r);Xn!==r;)Nn.push(Xn),Xn=o,(Gn=fr())!==r&&(fs=L())!==r&&(Ts=fr())!==r&&(Ms=tt())!==r?Xn=Gn=[Gn,fs,Ts,Ms]:(o=Xn,Xn=r);Nn===r?(o=Kt,Kt=r):(Zt=Kt,sn={type:"format",keyword:sn,expr:(Vs=Nn)&&Vs.map(se=>se[3])},Kt=sn)}else o=Kt,Kt=r;var Vs;return Kt===r&&(Kt=o,t.substr(o,8).toLowerCase()==="sqlstate"?(sn=t.substr(o,8),o+=8):(sn=r,rt===0&&dr(xv)),sn!==r&&(Nn=fr())!==r&&(Xn=Tt())!==r?(Zt=Kt,Kt=sn={type:"sqlstate",keyword:{type:"origin",value:"SQLSTATE"},expr:[Xn]}):(o=Kt,Kt=r),Kt===r&&(Kt=o,(sn=xe())!==r&&(Zt=Kt,sn={type:"condition",expr:[{type:"default",value:sn}]}),Kt=sn)),Kt})())===r&&(vr=null),vr!==r&&fr()!==r?((_r=(function(){var Kt,sn,Nn,Xn,Gn,fs,Ts,Ms,Vs,se;if(Kt=o,(sn=$t())!==r)if(fr()!==r)if(t.substr(o,7).toLowerCase()==="message"?(Nn=t.substr(o,7),o+=7):(Nn=r,rt===0&&dr(S0)),Nn===r&&(t.substr(o,6).toLowerCase()==="detail"?(Nn=t.substr(o,6),o+=6):(Nn=r,rt===0&&dr(l0)),Nn===r&&(t.substr(o,4).toLowerCase()==="hint"?(Nn=t.substr(o,4),o+=4):(Nn=r,rt===0&&dr(Ov)),Nn===r&&(t.substr(o,7).toLowerCase()==="errcode"?(Nn=t.substr(o,7),o+=7):(Nn=r,rt===0&&dr(lv)),Nn===r&&(t.substr(o,6).toLowerCase()==="column"?(Nn=t.substr(o,6),o+=6):(Nn=r,rt===0&&dr(fi)),Nn===r&&(t.substr(o,10).toLowerCase()==="constraint"?(Nn=t.substr(o,10),o+=10):(Nn=r,rt===0&&dr(Wl)),Nn===r&&(t.substr(o,8).toLowerCase()==="datatype"?(Nn=t.substr(o,8),o+=8):(Nn=r,rt===0&&dr(ec)),Nn===r&&(t.substr(o,5).toLowerCase()==="table"?(Nn=t.substr(o,5),o+=5):(Nn=r,rt===0&&dr(Fc)),Nn===r&&(t.substr(o,6).toLowerCase()==="schema"?(Nn=t.substr(o,6),o+=6):(Nn=r,rt===0&&dr(Ae)))))))))),Nn!==r)if(fr()!==r)if(Gu()!==r)if(fr()!==r)if((Xn=J())!==r){for(Gn=[],fs=o,(Ts=fr())!==r&&(Ms=L())!==r&&(Vs=fr())!==r&&(se=J())!==r?fs=Ts=[Ts,Ms,Vs,se]:(o=fs,fs=r);fs!==r;)Gn.push(fs),fs=o,(Ts=fr())!==r&&(Ms=L())!==r&&(Vs=fr())!==r&&(se=J())!==r?fs=Ts=[Ts,Ms,Vs,se]:(o=fs,fs=r);Gn===r?(o=Kt,Kt=r):(Zt=Kt,sn=(function(Re,oe,Ne){let ze=[oe];return Ne&&Ne.forEach(to=>ze.push(to[3])),{type:"using",option:Re,symbol:"=",expr:ze}})(Nn,Xn,Gn),Kt=sn)}else o=Kt,Kt=r;else o=Kt,Kt=r;else o=Kt,Kt=r;else o=Kt,Kt=r;else o=Kt,Kt=r;else o=Kt,Kt=r;else o=Kt,Kt=r;return Kt})())===r&&(_r=null),_r===r?(o=y,y=r):(Zt=y,$r=W,at=vr,St=_r,S={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"raise",level:$r,using:St,raise:at}},y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r);var $r,at,St;return y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St,Kt;return t.substr(o,7).toLowerCase()==="execute"?(S=t.substr(o,7),o+=7):(S=r,rt===0&&dr(xi)),S!==r&&fr()!==r&&(W=xe())!==r&&fr()!==r?(vr=o,(_r=q())!==r&&($r=fr())!==r&&(at=Vt())!==r&&(St=fr())!==r&&(Kt=rr())!==r?vr=_r=[_r,$r,at,St,Kt]:(o=vr,vr=r),vr===r&&(vr=null),vr===r?(o=y,y=r):(Zt=y,S=(function(sn,Nn){return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"execute",name:sn,args:Nn&&{type:"expr_list",value:Nn[2]}}}})(W,vr),y=S)):(o=y,y=r),y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St;(S=(function(){var Nn=o,Xn,Gn;return t.substr(o,3).toLowerCase()==="for"?(Xn=t.substr(o,3),o+=3):(Xn=r,rt===0&&dr(u0)),Xn!==r&&(Zt=Nn,Xn={label:null,keyword:"for"}),(Nn=Xn)===r&&(Nn=o,(Xn=xe())!==r&&fr()!==r?(t.substr(o,3).toLowerCase()==="for"?(Gn=t.substr(o,3),o+=3):(Gn=r,rt===0&&dr(u0)),Gn===r?(o=Nn,Nn=r):(Zt=Nn,Nn=Xn={label:Xn,keyword:"for"})):(o=Nn,Nn=r)),Nn})())!==r&&fr()!==r&&(W=xe())!==r&&fr()!==r&&$e()!==r&&fr()!==r&&(vr=s())!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="loop"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(Uv)),_r!==r&&fr()!==r&&($r=u())!==r&&fr()!==r&&Wo()!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="loop"?(at=t.substr(o,4),o+=4):(at=r,rt===0&&dr(Uv)),at!==r&&fr()!==r?((St=xe())===r&&(St=null),St===r?(o=y,y=r):(Zt=o,sn=St,(!(!(Kt=S).label||!sn||Kt.label!==sn)||!Kt.label&&!sn?void 0:r)===r?(o=y,y=r):(Zt=y,S=(function(Nn,Xn,Gn,fs,Ts){return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"for",label:Ts,target:Xn,query:Gn,stmts:fs.ast}}})(0,W,vr,$r,St),y=S))):(o=y,y=r)):(o=y,y=r)):(o=y,y=r);var Kt,sn;return y})())===r&&(f=(function(){var y=o,S;return t.substr(o,5).toLowerCase()==="begin"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr($f)),S===r&&(t.substr(o,6).toLowerCase()==="commit"?(S=t.substr(o,6),o+=6):(S=r,rt===0&&dr(Tb)),S===r&&(t.substr(o,8).toLowerCase()==="rollback"?(S=t.substr(o,8),o+=8):(S=r,rt===0&&dr(cp)))),S!==r&&(Zt=y,S={type:"transaction",expr:{action:{type:"origin",value:S}}}),y=S})()),f}function Un(){var f;return(f=Y())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St;return(S=fr())===r?(o=y,y=r):((W=er())===r&&(W=null),W!==r&&fr()!==r&&Xc()!==r&&fr()!==r&&(vr=xt())!==r&&fr()!==r&&Xv()!==r&&fr()!==r&&(_r=ar())!==r&&fr()!==r?(($r=yr())===r&&($r=null),$r!==r&&fr()!==r?((at=fe())===r&&(at=null),at!==r&&fr()!==r?((St=Rr())===r&&(St=null),St===r?(o=y,y=r):(Zt=y,S=(function(Kt,sn,Nn,Xn,Gn,fs){let Ts={},Ms=Vs=>{let{server:se,db:Re,schema:oe,as:Ne,table:ze,join:to}=Vs,Lo=to?"select":"update",wo=[se,Re,oe].filter(Boolean).join(".")||null;Re&&(Ts[ze]=wo),ze&>.add(`${Lo}::${wo}::${ze}`)};return sn&&sn.forEach(Ms),Xn&&Xn.forEach(Ms),Nn&&Nn.forEach(Vs=>{if(Vs.table){let se=Cr(Vs.table);gt.add(`update::${Ts[se]||null}::${se}`)}Gt.add(`update::${Vs.table}::${Vs.column}`)}),{tableList:Array.from(gt),columnList:gr(Gt),ast:{with:Kt,type:"update",table:sn,set:Nn,from:Xn,where:Gn,returning:fs}}})(W,vr,_r,$r,at,St),y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)),y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St,Kt;return(S=Yt())!==r&&fr()!==r?((W=Xu())===r&&(W=null),W!==r&&fr()!==r&&(vr=bs())!==r&&fr()!==r?((_r=dt())===r&&(_r=null),_r!==r&&fr()!==r&&q()!==r&&fr()!==r&&($r=hu())!==r&&fr()!==r&&rr()!==r&&fr()!==r&&(at=ct())!==r&&fr()!==r?((St=(function(){var sn=o,Nn,Xn,Gn;return Er()!==r&&fr()!==r?(t.substr(o,8).toLowerCase()==="conflict"?(Nn=t.substr(o,8),o+=8):(Nn=r,rt===0&&dr(xp)),Nn!==r&&fr()!==r?((Xn=(function(){var fs=o,Ts,Ms;return(Ts=q())!==r&&fr()!==r&&(Ms=ne())!==r&&fr()!==r&&rr()!==r?(Zt=fs,Ts=(function(Vs){return{type:"column",expr:Vs,parentheses:!0}})(Ms),fs=Ts):(o=fs,fs=r),fs})())===r&&(Xn=null),Xn!==r&&fr()!==r&&(Gn=(function(){var fs=o,Ts,Ms,Vs,se;return t.substr(o,2).toLowerCase()==="do"?(Ts=t.substr(o,2),o+=2):(Ts=r,rt===0&&dr(Xb)),Ts!==r&&fr()!==r?(t.substr(o,7).toLowerCase()==="nothing"?(Ms=t.substr(o,7),o+=7):(Ms=r,rt===0&&dr(pp)),Ms===r?(o=fs,fs=r):(Zt=fs,fs=Ts={keyword:"do",expr:{type:"origin",value:"nothing"}})):(o=fs,fs=r),fs===r&&(fs=o,t.substr(o,2).toLowerCase()==="do"?(Ts=t.substr(o,2),o+=2):(Ts=r,rt===0&&dr(Xb)),Ts!==r&&fr()!==r&&(Ms=Xc())!==r&&fr()!==r&&Xv()!==r&&fr()!==r&&(Vs=ar())!==r&&fr()!==r?((se=fe())===r&&(se=null),se===r?(o=fs,fs=r):(Zt=fs,fs=Ts={keyword:"do",expr:{type:"update",set:Vs,where:se}})):(o=fs,fs=r)),fs})())!==r?(Zt=sn,sn={type:"conflict",keyword:"on",target:Xn,action:Gn}):(o=sn,sn=r)):(o=sn,sn=r)):(o=sn,sn=r),sn})())===r&&(St=null),St!==r&&fr()!==r?((Kt=Rr())===r&&(Kt=null),Kt===r?(o=y,y=r):(Zt=y,S=(function(sn,Nn,Xn,Gn,fs,Ts,Ms){if(Nn&&(gt.add(`insert::${[Nn.db,Nn.schema].filter(Boolean).join(".")||null}::${Nn.table}`),Nn.as=null),Gn){let Vs=Nn&&Nn.table||null;Array.isArray(fs.values)&&fs.values.forEach((se,Re)=>{if(se.value.length!=Gn.length)throw Error("Error: column count doesn't match value count at row "+(Re+1))}),Gn.forEach(se=>Gt.add(`insert::${Vs}::${se.value}`))}return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:sn,table:[Nn],columns:Gn,values:fs,partition:Xn,conflict:Ts,returning:Ms}}})(S,vr,_r,$r,at,St,Kt),y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r),y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St;return(S=Yt())!==r&&fr()!==r?((W=va())===r&&(W=null),W!==r&&fr()!==r?((vr=Xu())===r&&(vr=null),vr!==r&&fr()!==r&&(_r=bs())!==r&&fr()!==r?(($r=dt())===r&&($r=null),$r!==r&&fr()!==r&&(at=ct())!==r&&fr()!==r?((St=Rr())===r&&(St=null),St===r?(o=y,y=r):(Zt=y,S=(function(Kt,sn,Nn,Xn,Gn,fs,Ts){Xn&&(gt.add(`insert::${[Xn.db,Xn.schema].filter(Boolean).join(".")||null}::${Xn.table}`),Gt.add(`insert::${Xn.table}::(.*)`),Xn.as=null);let Ms=[sn,Nn].filter(Vs=>Vs).map(Vs=>Vs[0]&&Vs[0].toLowerCase()).join(" ");return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:Kt,table:[Xn],columns:null,values:fs,partition:Gn,prefix:Ms,returning:Ts}}})(S,W,vr,_r,$r,at,St),y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r),y})())===r&&(f=(function(){var y=o,S,W,vr,_r;return(S=Yo())!==r&&fr()!==r?((W=xt())===r&&(W=null),W!==r&&fr()!==r&&(vr=yr())!==r&&fr()!==r?((_r=fe())===r&&(_r=null),_r===r?(o=y,y=r):(Zt=y,S=(function($r,at,St){if(at&&at.forEach(Kt=>{let{db:sn,as:Nn,schema:Xn,table:Gn,join:fs}=Kt,Ts=fs?"select":"delete",Ms=[sn,Xn].filter(Boolean).join(".")||null;Gn&>.add(`${Ts}::${Ms}::${Gn}`),fs||Gt.add(`delete::${Gn}::(.*)`)}),$r===null&&at.length===1){let Kt=at[0];$r=[{db:Kt.db,schema:Kt.schema,table:Kt.table,as:Kt.as,addition:!0}]}return{tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"delete",table:$r,from:at,where:St}}})(W,vr,_r),y=S)):(o=y,y=r)):(o=y,y=r),y})())===r&&(f=Ln())===r&&(f=(function(){for(var y=[],S=U();S!==r;)y.push(S),S=U();return y})()),f}function u(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=Un())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=Jr())!==r&&($r=fr())!==r&&(at=Un())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=Jr())!==r&&($r=fr())!==r&&(at=Un())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt){let sn=St&&St.ast||St,Nn=Kt&&Kt.length&&Kt[0].length>=4?[sn]:sn;for(let Xn=0;Xn<Kt.length;Xn++)Kt[Xn][3]&&Kt[Xn][3].length!==0&&Nn.push(Kt[Xn][3]&&Kt[Xn][3].ast||Kt[Xn][3]);return{tableList:Array.from(gt),columnList:gr(Gt),ast:Nn}})(y,S))}else o=f,f=r;return f}function yt(){var f,y,S,W;return f=o,(y=(function(){var vr=o,_r,$r,at;return t.substr(o,5).toLowerCase()==="union"?(_r=t.substr(o,5),o+=5):(_r=r,rt===0&&dr(Kl)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):vr=_r=[_r,$r]),vr})())!==r&&fr()!==r?((S=ee())===r&&(S=ie()),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(W=S)?"union "+W.toLowerCase():"union")):(o=f,f=r),f===r&&(f=o,(y=(function(){var vr=o,_r,$r,at;return t.substr(o,9).toLowerCase()==="intersect"?(_r=t.substr(o,9),o+=9):(_r=r,rt===0&&dr(zl)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):vr=_r=[_r,$r]),vr})())!==r&&(Zt=f,y="intersect"),(f=y)===r&&(f=o,(y=(function(){var vr=o,_r,$r,at;return t.substr(o,6).toLowerCase()==="except"?(_r=t.substr(o,6),o+=6):(_r=r,rt===0&&dr(Ot)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):vr=_r=[_r,$r]),vr})())!==r&&(Zt=f,y="except"),f=y)),f}function Y(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=s())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=yt())!==r&&($r=fr())!==r&&(at=s())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=yt())!==r&&($r=fr())!==r&&(at=s())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S!==r&&(W=fr())!==r?((vr=su())===r&&(vr=null),vr!==r&&(_r=fr())!==r?(($r=F())===r&&($r=null),$r===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt,sn,Nn){let Xn=St;for(let Gn=0;Gn<Kt.length;Gn++)Xn._next=Kt[Gn][3],Xn.set_op=Kt[Gn][1],Xn=Xn._next;return sn&&(St._orderby=sn),Nn&&Nn.value&&Nn.value.length>0&&(St._limit=Nn),{tableList:Array.from(gt),columnList:gr(Gt),ast:St}})(y,S,vr,$r))):(o=f,f=r)):(o=f,f=r)}else o=f,f=r;return f}function Q(){var f,y;return f=o,t.substr(o,2).toLowerCase()==="if"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(Dn)),y!==r&&fr()!==r&&Ea()!==r&&fr()!==r&&wu()!==r?(Zt=f,f=y="IF NOT EXISTS"):(o=f,f=r),f}function Tr(){var f,y,S;return f=o,t.substr(o,12).toLowerCase()==="check_option"?(y=t.substr(o,12),o+=12):(y=r,rt===0&&dr(_o)),y!==r&&fr()!==r&&Gu()!==r&&fr()!==r?(t.substr(o,8).toLowerCase()==="cascaded"?(S=t.substr(o,8),o+=8):(S=r,rt===0&&dr(Hs)),S===r&&(t.substr(o,5).toLowerCase()==="local"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(Uo))),S===r?(o=f,f=r):(Zt=f,f=y={type:"check_option",value:S,symbol:"="})):(o=f,f=r),f===r&&(f=o,t.substr(o,16).toLowerCase()==="security_barrier"?(y=t.substr(o,16),o+=16):(y=r,rt===0&&dr(Gi)),y===r&&(t.substr(o,16).toLowerCase()==="security_invoker"?(y=t.substr(o,16),o+=16):(y=r,rt===0&&dr(mi))),y!==r&&fr()!==r&&Gu()!==r&&fr()!==r&&(S=rv())!==r?(Zt=f,f=y=(function(W,vr){return{type:W.toLowerCase(),value:vr.value?"true":"false",symbol:"="}})(y,S)):(o=f,f=r)),f}function P(){var f,y,S,W;return f=o,(y=xe())!==r&&fr()!==r&&Gu()!==r&&fr()!==r?((S=xe())===r&&(S=J()),S===r?(o=f,f=r):(Zt=f,f=y={type:y,symbol:"=",value:typeof(W=S)=="string"?{type:"default",value:W}:W})):(o=f,f=r),f}function hr(){var f,y,S;return f=o,(y=Ru())!==r&&fr()!==r&&(S=jn())!==r?(Zt=f,f=y=(function(W,vr){return{column:W,definition:vr}})(y,S)):(o=f,f=r),f}function ht(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=hr())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=hr())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=hr())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function e(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn;return f=o,(y=vu())===r?(o=f,f=r):(Zt=o,(y.toLowerCase()==="begin"?r:void 0)!==r&&fr()!==r?(t.substr(o,8).toLowerCase()==="constant"?(S=t.substr(o,8),o+=8):(S=r,rt===0&&dr(nc)),S===r&&(S=null),S!==r&&fr()!==r&&(W=jn())!==r&&fr()!==r?((vr=_t())===r&&(vr=null),vr!==r&&fr()!==r?(_r=o,($r=Ea())!==r&&(at=fr())!==r&&(St=_c())!==r?_r=$r=[$r,at,St]:(o=_r,_r=r),_r===r&&(_r=null),_r!==r&&($r=fr())!==r?(at=o,(St=Tv())===r&&(t.substr(o,2)===":="?(St=":=",o+=2):(St=r,rt===0&&dr(xc))),St===r&&(St=null),St!==r&&(Kt=fr())!==r?(sn=o,rt++,t.substr(o,5).toLowerCase()==="begin"?(Nn=t.substr(o,5),o+=5):(Nn=r,rt===0&&dr(I0)),rt--,Nn===r?sn=r:(o=sn,sn=void 0),sn===r&&(sn=Hu())===r&&(sn=J()),sn===r?(o=at,at=r):at=St=[St,Kt,sn]):(o=at,at=r),at===r&&(at=null),at!==r&&(St=fr())!==r?((Kt=Jr())===r&&(Kt=null),Kt===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn,fs,Ts,Ms,Vs,se){return{keyword:"variable",name:Xn,constant:Gn,datatype:fs,collate:Ts,not_null:Ms&&"not null",definition:Vs&&Vs[0]&&{type:"default",keyword:Vs[0],value:Vs[2]}}})(y,S,W,vr,_r,at))):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)),f}function Pr(){var f,y,S,W,vr,_r;if(f=o,(y=e())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=e())!==r?W=vr=[vr,_r]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=e())!==r?W=vr=[vr,_r]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S,1))}else o=f,f=r;return f}function Mr(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="declare"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(ji)),y!==r&&fr()!==r&&(S=Pr())!==r?(Zt=f,W=S,f=y={tableList:Array.from(gt),columnList:gr(Gt),ast:{type:"declare",declare:W,symbol:";"}}):(o=f,f=r),f}function kn(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts,Ms;if(f=o,t.substr(o,8)==="LANGUAGE"?(y="LANGUAGE",o+=8):(y=r,rt===0&&dr(af)),y!==r&&(S=fr())!==r&&(W=vu())!==r&&(vr=fr())!==r?(Zt=f,f=y={prefix:"LANGUAGE",type:"default",value:W}):(o=f,f=r),f===r&&(f=o,t.substr(o,8).toLowerCase()==="transorm"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(qf)),y!==r&&(S=fr())!==r?(W=o,t.substr(o,3)==="FOR"?(vr="FOR",o+=3):(vr=r,rt===0&&dr(Uc)),vr!==r&&(_r=fr())!==r?(t.substr(o,4)==="TYPE"?($r="TYPE",o+=4):($r=r,rt===0&&dr(wc)),$r!==r&&(at=fr())!==r&&(St=vu())!==r?W=vr=[vr,_r,$r,at,St]:(o=W,W=r)):(o=W,W=r),W===r&&(W=null),W!==r&&(vr=fr())!==r?(Zt=f,f=y=(Ms=W)?{prefix:["TRANSORM",Ms[0].toUpperCase(),Ms[2].toUpperCase()].join(" "),type:"default",value:Ms[4]}:{type:"origin",value:"TRANSORM"}):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,6).toLowerCase()==="window"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Ll)),y===r&&(t.substr(o,9).toLowerCase()==="immutable"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(jl)),y===r&&(t.substr(o,6).toLowerCase()==="stable"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Oi)),y===r&&(t.substr(o,8).toLowerCase()==="volatile"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(bb)),y===r&&(t.substr(o,6).toLowerCase()==="strict"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Vi)))))),y!==r&&(S=fr())!==r?(Zt=f,f=y={type:"origin",value:y}):(o=f,f=r),f===r&&(f=o,t.substr(o,3).toLowerCase()==="not"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(zc)),y===r&&(y=null),y!==r&&(S=fr())!==r?(t.substr(o,9).toLowerCase()==="leakproof"?(W=t.substr(o,9),o+=9):(W=r,rt===0&&dr(kc)),W!==r&&(vr=fr())!==r?(Zt=f,f=y={type:"origin",value:[y,"LEAKPROOF"].filter(Vs=>Vs).join(" ")}):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,6).toLowerCase()==="called"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(vb)),y===r&&(y=o,t.substr(o,7).toLowerCase()==="returns"?(S=t.substr(o,7),o+=7):(S=r,rt===0&&dr(Gl)),S!==r&&(W=fr())!==r?(t.substr(o,4).toLowerCase()==="null"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(Zc)),vr===r?(o=y,y=r):y=S=[S,W,vr]):(o=y,y=r)),y===r&&(y=null),y!==r&&(S=fr())!==r?(t.substr(o,2).toLowerCase()==="on"?(W=t.substr(o,2),o+=2):(W=r,rt===0&&dr(nl)),W!==r&&(vr=fr())!==r?(t.substr(o,4).toLowerCase()==="null"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(Zc)),_r!==r&&($r=fr())!==r?(t.substr(o,5).toLowerCase()==="input"?(at=t.substr(o,5),o+=5):(at=r,rt===0&&dr(Xf)),at!==r&&(St=fr())!==r?(Zt=f,f=y=(function(Vs){return Array.isArray(Vs)&&(Vs=[Vs[0],Vs[2]].join(" ")),{type:"origin",value:Vs+" ON NULL INPUT"}})(y)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,8).toLowerCase()==="external"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(gl)),y===r&&(y=null),y!==r&&(S=fr())!==r?(t.substr(o,8).toLowerCase()==="security"?(W=t.substr(o,8),o+=8):(W=r,rt===0&&dr(lf)),W!==r&&(vr=fr())!==r?(t.substr(o,7).toLowerCase()==="invoker"?(_r=t.substr(o,7),o+=7):(_r=r,rt===0&&dr(Jc)),_r===r&&(t.substr(o,7).toLowerCase()==="definer"?(_r=t.substr(o,7),o+=7):(_r=r,rt===0&&dr(Qc))),_r!==r&&($r=fr())!==r?(Zt=f,f=y=(function(Vs,se){return{type:"origin",value:[Vs,"SECURITY",se].filter(Re=>Re).join(" ")}})(y,_r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,8).toLowerCase()==="parallel"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(gv)),y!==r&&(S=fr())!==r?(t.substr(o,6).toLowerCase()==="unsafe"?(W=t.substr(o,6),o+=6):(W=r,rt===0&&dr(g0)),W===r&&(t.substr(o,10).toLowerCase()==="restricted"?(W=t.substr(o,10),o+=10):(W=r,rt===0&&dr(Ki)),W===r&&(t.substr(o,4).toLowerCase()==="safe"?(W=t.substr(o,4),o+=4):(W=r,rt===0&&dr(Pb)))),W!==r&&(vr=fr())!==r?(Zt=f,f=y=(function(Vs){return{type:"origin",value:["PARALLEL",Vs].join(" ")}})(W)):(o=f,f=r)):(o=f,f=r),f===r))))))){if(f=o,(y=R())!==r)if((S=fr())!==r){if(W=[],ei.test(t.charAt(o))?(vr=t.charAt(o),o++):(vr=r,rt===0&&dr(pb)),vr!==r)for(;vr!==r;)W.push(vr),ei.test(t.charAt(o))?(vr=t.charAt(o),o++):(vr=r,rt===0&&dr(pb));else W=r;if(W!==r)if((vr=fr())!==r)if((_r=Mr())===r&&(_r=null),_r!==r)if(($r=fr())!==r)if(t.substr(o,5).toLowerCase()==="begin"?(at=t.substr(o,5),o+=5):(at=r,rt===0&&dr(I0)),at===r&&(at=null),at!==r)if((St=fr())!==r)if((Kt=u())!==r)if(fr()!==r)if((sn=Wo())===r&&(sn=null),sn!==r)if(Zt=o,Ts=sn,((fs=at)&&Ts||!fs&&!Ts?void 0:r)!==r)if(fr()!==r)if((Nn=Jr())===r&&(Nn=null),Nn!==r)if(fr()!==r){if(Xn=[],j0.test(t.charAt(o))?(Gn=t.charAt(o),o++):(Gn=r,rt===0&&dr(B0)),Gn!==r)for(;Gn!==r;)Xn.push(Gn),j0.test(t.charAt(o))?(Gn=t.charAt(o),o++):(Gn=r,rt===0&&dr(B0));else Xn=r;Xn!==r&&(Gn=fr())!==r?(Zt=f,f=y=(function(Vs,se,Re,oe,Ne,ze){let to=Vs.join(""),Lo=ze.join("");if(to!==Lo)throw Error(`start symbol '${to}'is not same with end symbol '${Lo}'`);return{type:"as",declare:se&&se.ast,begin:Re,expr:Array.isArray(oe.ast)?oe.ast.flat():[oe.ast],end:Ne&&Ne[0],symbol:to}})(W,_r,at,Kt,sn,Xn)):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r}else o=f,f=r;else o=f,f=r;f===r&&(f=o,t.substr(o,4).toLowerCase()==="cost"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Mc)),y===r&&(t.substr(o,4).toLowerCase()==="rows"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Cl))),y!==r&&(S=fr())!==r&&(W=Ai())!==r&&(vr=fr())!==r?(Zt=f,f=y=(function(Vs,se){return se.prefix=Vs,se})(y,W)):(o=f,f=r),f===r&&(f=o,t.substr(o,7).toLowerCase()==="support"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr($u)),y!==r&&(S=fr())!==r&&(W=Ct())!==r&&(vr=fr())!==r?(Zt=f,f=y=(function(Vs){return{prefix:"support",type:"default",value:[Vs.schema&&Vs.schema.value,Vs.name.value].filter(se=>se).join(".")}})(W)):(o=f,f=r),f===r&&(f=o,(y=Xv())!==r&&(S=fr())!==r&&(W=vu())!==r&&(vr=fr())!==r?(_r=o,t.substr(o,2).toLowerCase()==="to"?($r=t.substr(o,2),o+=2):($r=r,rt===0&&dr(r0)),$r===r&&(t.charCodeAt(o)===61?($r="=",o++):($r=r,rt===0&&dr(zn))),$r!==r&&(at=fr())!==r&&(St=qs())!==r?_r=$r=[$r,at,St]:(o=_r,_r=r),_r===r&&(_r=o,($r=ot())!==r&&(at=fr())!==r?(t.substr(o,7).toLowerCase()==="current"?(St=t.substr(o,7),o+=7):(St=r,rt===0&&dr(Ss)),St===r?(o=_r,_r=r):_r=$r=[$r,at,St]):(o=_r,_r=r)),_r===r&&(_r=null),_r!==r&&($r=fr())!==r?(Zt=f,f=y=(function(Vs,se){let Re;if(se){let oe=Array.isArray(se[2])?se[2]:[se[2]];Re={prefix:se[0],expr:oe.map(Ne=>({type:"default",value:Ne}))}}return{type:"set",parameter:Vs,value:Re}})(W,_r)):(o=f,f=r)):(o=f,f=r))))}return f}function Yn(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn;if(f=o,qa()!==r)if(fr()!==r)if(y=o,(S=Ka())!==r&&(W=fr())!==r&&(vr=m0())!==r?y=S=[S,W,vr]:(o=y,y=r),y===r&&(y=null),y!==r)if((S=fr())!==r)if(t.substr(o,8).toLowerCase()==="function"?(W=t.substr(o,8),o+=8):(W=r,rt===0&&dr(te)),W!==r)if((vr=fr())!==r)if((_r=bs())!==r)if(fr()!==r)if(q()!==r)if(fr()!==r)if(($r=yo())===r&&($r=null),$r!==r)if(fr()!==r)if(rr()!==r)if(fr()!==r)if((at=(function(){var Nn,Xn,Gn,fs,Ts;return Nn=o,t.substr(o,7).toLowerCase()==="returns"?(Xn=t.substr(o,7),o+=7):(Xn=r,rt===0&&dr(Gl)),Xn!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="setof"?(Gn=t.substr(o,5),o+=5):(Gn=r,rt===0&&dr(Fl)),Gn===r&&(Gn=null),Gn!==r&&fr()!==r?((fs=jn())===r&&(fs=bs()),fs===r?(o=Nn,Nn=r):(Zt=Nn,Nn=Xn={type:"returns",keyword:Gn,expr:fs})):(o=Nn,Nn=r)):(o=Nn,Nn=r),Nn===r&&(Nn=o,t.substr(o,7).toLowerCase()==="returns"?(Xn=t.substr(o,7),o+=7):(Xn=r,rt===0&&dr(Gl)),Xn!==r&&fr()!==r&&(Gn=B())!==r&&fr()!==r&&(fs=q())!==r&&fr()!==r&&(Ts=ht())!==r&&fr()!==r&&rr()!==r?(Zt=Nn,Nn=Xn={type:"returns",keyword:"table",expr:Ts}):(o=Nn,Nn=r)),Nn})())===r&&(at=null),at!==r)if(fr()!==r){for(St=[],Kt=kn();Kt!==r;)St.push(Kt),Kt=kn();St!==r&&(Kt=fr())!==r?((sn=Jr())===r&&(sn=null),sn!==r&&fr()!==r?(Zt=f,f=(function(Nn,Xn,Gn,fs,Ts,Ms,Vs){return{tableList:Array.from(gt),columnList:gr(Gt),ast:{args:Ts||[],type:"create",replace:Xn&&"or replace",name:{schema:fs.db,name:fs.table},returns:Ms,keyword:Gn&&Gn.toLowerCase(),options:Vs||[]}}})(0,y,W,_r,$r,at,St)):(o=f,f=r)):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;return f}function K(){var f;return(f=(function(){var y,S,W,vr,_r,$r;return y=o,t.substr(o,9).toLowerCase()==="increment"?(S=t.substr(o,9),o+=9):(S=r,rt===0&&dr(Ue)),S!==r&&fr()!==r?((W=ds())===r&&(W=null),W!==r&&fr()!==r&&(vr=Ai())!==r?(Zt=y,_r=S,$r=vr,y=S={resource:"sequence",prefix:W?_r.toLowerCase()+" by":_r.toLowerCase(),value:$r}):(o=y,y=r)):(o=y,y=r),y})())===r&&(f=(function(){var y,S,W;return y=o,t.substr(o,8).toLowerCase()==="minvalue"?(S=t.substr(o,8),o+=8):(S=r,rt===0&&dr(Qe)),S!==r&&fr()!==r&&(W=Ai())!==r?(Zt=y,y=S=uo(S,W)):(o=y,y=r),y===r&&(y=o,t.substr(o,2).toLowerCase()==="no"?(S=t.substr(o,2),o+=2):(S=r,rt===0&&dr(Ao)),S!==r&&fr()!==r?(t.substr(o,8).toLowerCase()==="minvalue"?(W=t.substr(o,8),o+=8):(W=r,rt===0&&dr(Qe)),W===r?(o=y,y=r):(Zt=y,y=S={resource:"sequence",value:{type:"origin",value:"no minvalue"}})):(o=y,y=r)),y})())===r&&(f=(function(){var y,S,W;return y=o,t.substr(o,8).toLowerCase()==="maxvalue"?(S=t.substr(o,8),o+=8):(S=r,rt===0&&dr(Pu)),S!==r&&fr()!==r&&(W=Ai())!==r?(Zt=y,y=S=uo(S,W)):(o=y,y=r),y===r&&(y=o,t.substr(o,2).toLowerCase()==="no"?(S=t.substr(o,2),o+=2):(S=r,rt===0&&dr(Ao)),S!==r&&fr()!==r?(t.substr(o,8).toLowerCase()==="maxvalue"?(W=t.substr(o,8),o+=8):(W=r,rt===0&&dr(Pu)),W===r?(o=y,y=r):(Zt=y,y=S={resource:"sequence",value:{type:"origin",value:"no maxvalue"}})):(o=y,y=r)),y})())===r&&(f=(function(){var y,S,W,vr,_r,$r;return y=o,t.substr(o,5).toLowerCase()==="start"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(Ca)),S!==r&&fr()!==r?((W=en())===r&&(W=null),W!==r&&fr()!==r&&(vr=Ai())!==r?(Zt=y,_r=S,$r=vr,y=S={resource:"sequence",prefix:W?_r.toLowerCase()+" with":_r.toLowerCase(),value:$r}):(o=y,y=r)):(o=y,y=r),y})())===r&&(f=(function(){var y,S,W;return y=o,t.substr(o,5).toLowerCase()==="cache"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(ku)),S!==r&&fr()!==r&&(W=Ai())!==r?(Zt=y,y=S=uo(S,W)):(o=y,y=r),y})())===r&&(f=(function(){var y,S,W;return y=o,t.substr(o,2).toLowerCase()==="no"?(S=t.substr(o,2),o+=2):(S=r,rt===0&&dr(Ao)),S===r&&(S=null),S!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="cycle"?(W=t.substr(o,5),o+=5):(W=r,rt===0&&dr(ca)),W===r?(o=y,y=r):(Zt=y,y=S={resource:"sequence",value:{type:"origin",value:S?"no cycle":"cycle"}})):(o=y,y=r),y})())===r&&(f=(function(){var y,S,W;return y=o,t.substr(o,5).toLowerCase()==="owned"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(na)),S!==r&&fr()!==r&&ds()!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="none"?(W=t.substr(o,4),o+=4):(W=r,rt===0&&dr(Qa)),W===r?(o=y,y=r):(Zt=y,y=S={resource:"sequence",prefix:"owned by",value:{type:"origin",value:"none"}})):(o=y,y=r),y===r&&(y=o,t.substr(o,5).toLowerCase()==="owned"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(na)),S!==r&&fr()!==r&&ds()!==r&&fr()!==r&&(W=Ru())!==r?(Zt=y,y=S={resource:"sequence",prefix:"owned by",value:W}):(o=y,y=r)),y})()),f}function kt(){var f,y,S,W,vr,_r,$r,at,St;return f=o,(y=J())!==r&&fr()!==r?((S=_t())===r&&(S=null),S!==r&&fr()!==r?((W=xe())===r&&(W=null),W!==r&&fr()!==r?((vr=Fs())===r&&(vr=ue()),vr===r&&(vr=null),vr!==r&&fr()!==r?(_r=o,t.substr(o,5).toLowerCase()==="nulls"?($r=t.substr(o,5),o+=5):($r=r,rt===0&&dr(cf)),$r!==r&&(at=fr())!==r?(t.substr(o,5).toLowerCase()==="first"?(St=t.substr(o,5),o+=5):(St=r,rt===0&&dr(ri)),St===r&&(t.substr(o,4).toLowerCase()==="last"?(St=t.substr(o,4),o+=4):(St=r,rt===0&&dr(t0))),St===r?(o=_r,_r=r):_r=$r=[$r,at,St]):(o=_r,_r=r),_r===r&&(_r=null),_r===r?(o=f,f=r):(Zt=f,f=y=(function(Kt,sn,Nn,Xn,Gn){return{...Kt,collate:sn,opclass:Nn,order_by:Xn&&Xn.toLowerCase(),nulls:Gn&&`${Gn[0].toLowerCase()} ${Gn[2].toLowerCase()}`}})(y,S,W,vr,_r))):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f}function Js(){var f;return(f=co())===r&&(f=Wt())===r&&(f=ta())===r&&(f=li()),f}function Ve(){var f,y,S,W;return(f=(function(){var vr=o,_r,$r;(_r=Ei())===r&&(_r=rc()),_r!==r&&fr()!==r?(($r=ao())===r&&($r=null),$r===r?(o=vr,vr=r):(Zt=vr,St=$r,(at=_r)&&!at.value&&(at.value="null"),vr=_r={default_val:St,nullable:at})):(o=vr,vr=r);var at,St;return vr===r&&(vr=o,(_r=ao())!==r&&fr()!==r?(($r=Ei())===r&&($r=rc()),$r===r&&($r=null),$r===r?(o=vr,vr=r):(Zt=vr,_r=(function(Kt,sn){return sn&&!sn.value&&(sn.value="null"),{default_val:Kt,nullable:sn}})(_r,$r),vr=_r)):(o=vr,vr=r)),vr})())===r&&(f=o,t.substr(o,14).toLowerCase()==="auto_increment"?(y=t.substr(o,14),o+=14):(y=r,rt===0&&dr(n0)),y!==r&&(Zt=f,y={auto_increment:y.toLowerCase()}),(f=y)===r&&(f=o,t.substr(o,6).toLowerCase()==="unique"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Dc)),y!==r&&fr()!==r?(t.substr(o,3).toLowerCase()==="key"?(S=t.substr(o,3),o+=3):(S=r,rt===0&&dr(s0)),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(vr){let _r=["unique"];return vr&&_r.push(vr),{unique:_r.join(" ").toLowerCase("")}})(S))):(o=f,f=r),f===r&&(f=o,t.substr(o,7).toLowerCase()==="primary"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Rv)),y===r&&(y=null),y!==r&&fr()!==r?(t.substr(o,3).toLowerCase()==="key"?(S=t.substr(o,3),o+=3):(S=r,rt===0&&dr(s0)),S===r?(o=f,f=r):(Zt=f,f=y=(function(vr){let _r=[];return vr&&_r.push("primary"),_r.push("key"),{primary_key:_r.join(" ").toLowerCase("")}})(y))):(o=f,f=r),f===r&&(f=o,(y=ls())!==r&&(Zt=f,y={comment:y}),(f=y)===r&&(f=o,(y=_t())!==r&&(Zt=f,y={collate:y}),(f=y)===r&&(f=o,(y=(function(){var vr=o,_r,$r;return t.substr(o,13).toLowerCase()==="column_format"?(_r=t.substr(o,13),o+=13):(_r=r,rt===0&&dr(nv)),_r!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="fixed"?($r=t.substr(o,5),o+=5):($r=r,rt===0&&dr(sv)),$r===r&&(t.substr(o,7).toLowerCase()==="dynamic"?($r=t.substr(o,7),o+=7):($r=r,rt===0&&dr(ev)),$r===r&&(t.substr(o,7).toLowerCase()==="default"?($r=t.substr(o,7),o+=7):($r=r,rt===0&&dr(yc)))),$r===r?(o=vr,vr=r):(Zt=vr,_r={type:"column_format",value:$r.toLowerCase()},vr=_r)):(o=vr,vr=r),vr})())!==r&&(Zt=f,y={column_format:y}),(f=y)===r&&(f=o,(y=(function(){var vr=o,_r,$r;return t.substr(o,7).toLowerCase()==="storage"?(_r=t.substr(o,7),o+=7):(_r=r,rt===0&&dr($c)),_r!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="disk"?($r=t.substr(o,4),o+=4):($r=r,rt===0&&dr(Sf)),$r===r&&(t.substr(o,6).toLowerCase()==="memory"?($r=t.substr(o,6),o+=6):($r=r,rt===0&&dr(R0))),$r===r?(o=vr,vr=r):(Zt=vr,_r={type:"storage",value:$r.toLowerCase()},vr=_r)):(o=vr,vr=r),vr})())!==r&&(Zt=f,y={storage:y}),(f=y)===r&&(f=o,(y=Le())!==r&&(Zt=f,y={reference_definition:y}),(f=y)===r&&(f=o,(y=si())!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r&&(W=Go())!==r?(Zt=f,f=y=(function(vr,_r,$r){return{character_set:{type:vr,value:$r,symbol:_r}}})(y,S,W)):(o=f,f=r)):(o=f,f=r)))))))))),f}function co(){var f,y,S,W;return f=o,(y=Ru())!==r&&fr()!==r&&(S=jn())!==r&&fr()!==r?((W=(function(){var vr,_r,$r,at,St,Kt;if(vr=o,(_r=Ve())!==r)if(fr()!==r){for($r=[],at=o,(St=fr())!==r&&(Kt=Ve())!==r?at=St=[St,Kt]:(o=at,at=r);at!==r;)$r.push(at),at=o,(St=fr())!==r&&(Kt=Ve())!==r?at=St=[St,Kt]:(o=at,at=r);$r===r?(o=vr,vr=r):(Zt=vr,vr=_r=(function(sn,Nn){let Xn=sn;for(let Gn=0;Gn<Nn.length;Gn++)Xn={...Xn,...Nn[Gn][1]};return Xn})(_r,$r))}else o=vr,vr=r;else o=vr,vr=r;return vr})())===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y=(function(vr,_r,$r){return Gt.add(`create::${vr.table}::${vr.column.expr.value}`),{column:vr,definition:_r,resource:"column",...$r||{}}})(y,S,W))):(o=f,f=r),f}function _t(){var f,y,S;return f=o,(function(){var W=o,vr,_r,$r;return t.substr(o,7).toLowerCase()==="collate"?(vr=t.substr(o,7),o+=7):(vr=r,rt===0&&dr(Gc)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="COLLATE")),W})()!==r&&fr()!==r?((y=Gu())===r&&(y=null),y!==r&&fr()!==r&&(S=xe())!==r?(Zt=f,f={type:"collate",keyword:"collate",collate:{name:S,symbol:y}}):(o=f,f=r)):(o=f,f=r),f}function Eo(){var f,y,S,W,vr;return f=o,(y=Tv())===r&&(y=Gu()),y===r&&(y=null),y!==r&&fr()!==r&&(S=J())!==r?(Zt=f,vr=S,f=y={type:"default",keyword:(W=y)&&W[0],value:vr}):(o=f,f=r),f}function ao(){var f,y;return f=o,Tv()!==r&&fr()!==r&&(y=J())!==r?(Zt=f,f={type:"default",value:y}):(o=f,f=r),f}function zo(){var f,y,S;return f=o,(y=M())!==r&&(Zt=f,y=[{name:"*"}]),(f=y)===r&&(f=o,(y=yo())===r&&(y=null),y!==r&&fr()!==r&&Ns()!==r&&fr()!==r&&ds()!==r&&fr()!==r&&(S=yo())!==r?(Zt=f,f=y=(function(W,vr){let _r=W||[];return _r.orderby=vr,_r})(y,S)):(o=f,f=r),f===r&&(f=yo())),f}function no(){var f,y;return f=o,(y=$e())===r&&(t.substr(o,3).toLowerCase()==="out"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(Vf)),y===r&&(t.substr(o,8).toLowerCase()==="variadic"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(Vv)),y===r&&(t.substr(o,5).toLowerCase()==="inout"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(db))))),y!==r&&(Zt=f,y=y.toUpperCase()),f=y}function Ke(){var f,y,S,W,vr;return f=o,(y=no())===r&&(y=null),y!==r&&fr()!==r&&(S=jn())!==r&&fr()!==r?((W=Eo())===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y={mode:y,type:S,default:W})):(o=f,f=r),f===r&&(f=o,(y=no())===r&&(y=null),y!==r&&fr()!==r&&(S=vu())!==r&&fr()!==r&&(W=jn())!==r&&fr()!==r?((vr=Eo())===r&&(vr=null),vr===r?(o=f,f=r):(Zt=f,f=y=(function(_r,$r,at,St){return{mode:_r,name:$r,type:at,default:St}})(y,S,W,vr))):(o=f,f=r)),f}function yo(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=Ke())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Ke())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Ke())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function lo(){var f;return(f=(function(){var y=o,S,W,vr;(S=Ko())!==r&&fr()!==r?((W=Wr())===r&&(W=null),W!==r&&fr()!==r&&(vr=co())!==r?(Zt=y,_r=W,$r=vr,S={action:"add",...$r,keyword:_r,resource:"column",type:"alter"},y=S):(o=y,y=r)):(o=y,y=r);var _r,$r;return y})())===r&&(f=(function(){var y=o,S,W;return(S=Ko())!==r&&fr()!==r&&(W=li())!==r?(Zt=y,S=(function(vr){return{action:"add",create_definitions:vr,resource:"constraint",type:"alter"}})(W),y=S):(o=y,y=r),y})())===r&&(f=(function(){var y=o,S,W,vr;return(S=Uu())!==r&&fr()!==r?((W=Wr())===r&&(W=null),W!==r&&fr()!==r&&(vr=Ru())!==r?(Zt=y,S=(function(_r,$r){return{action:"drop",column:$r,keyword:_r,resource:"column",type:"alter"}})(W,vr),y=S):(o=y,y=r)):(o=y,y=r),y})())===r&&(f=(function(){var y=o,S,W;(S=Ko())!==r&&fr()!==r&&(W=Wt())!==r?(Zt=y,vr=W,S={action:"add",type:"alter",...vr},y=S):(o=y,y=r);var vr;return y})())===r&&(f=(function(){var y=o,S,W;(S=Ko())!==r&&fr()!==r&&(W=ta())!==r?(Zt=y,vr=W,S={action:"add",type:"alter",...vr},y=S):(o=y,y=r);var vr;return y})())===r&&(f=Co())===r&&(f=da())===r&&(f=Ia()),f}function Co(){var f,y,S,W,vr;return f=o,G0()!==r&&fr()!==r?((y=ef())===r&&(y=R()),y===r&&(y=null),y!==r&&fr()!==r&&(S=xe())!==r?(Zt=f,vr=S,f={action:"rename",type:"alter",resource:"table",keyword:(W=y)&&W[0].toLowerCase(),table:vr}):(o=f,f=r)):(o=f,f=r),f}function Au(){var f,y,S;return f=o,t.substr(o,5).toLowerCase()==="owner"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Of)),y!==r&&fr()!==r&&ef()!==r&&fr()!==r?((S=xe())===r&&(t.substr(o,12).toLowerCase()==="current_role"?(S=t.substr(o,12),o+=12):(S=r,rt===0&&dr(Pc)),S===r&&(t.substr(o,12).toLowerCase()==="current_user"?(S=t.substr(o,12),o+=12):(S=r,rt===0&&dr(H0)),S===r&&(t.substr(o,12).toLowerCase()==="session_user"?(S=t.substr(o,12),o+=12):(S=r,rt===0&&dr(bf))))),S===r?(o=f,f=r):(Zt=f,f=y={action:"owner",type:"alter",resource:"table",keyword:"to",table:S})):(o=f,f=r),f}function la(){var f,y;return f=o,Xv()!==r&&fr()!==r&&cr()!==r&&fr()!==r&&(y=xe())!==r?(Zt=f,f={action:"set",type:"alter",resource:"table",keyword:"schema",table:y}):(o=f,f=r),f}function da(){var f,y,S,W;return f=o,t.substr(o,9).toLowerCase()==="algorithm"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(Lb)),y!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r?(t.substr(o,7).toLowerCase()==="default"?(W=t.substr(o,7),o+=7):(W=r,rt===0&&dr(yc)),W===r&&(t.substr(o,7).toLowerCase()==="instant"?(W=t.substr(o,7),o+=7):(W=r,rt===0&&dr(Fa)),W===r&&(t.substr(o,7).toLowerCase()==="inplace"?(W=t.substr(o,7),o+=7):(W=r,rt===0&&dr(Kf)),W===r&&(t.substr(o,4).toLowerCase()==="copy"?(W=t.substr(o,4),o+=4):(W=r,rt===0&&dr(Nv))))),W===r?(o=f,f=r):(Zt=f,f=y={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:S,algorithm:W})):(o=f,f=r)):(o=f,f=r),f}function Ia(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="lock"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Gb)),y!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r?(t.substr(o,7).toLowerCase()==="default"?(W=t.substr(o,7),o+=7):(W=r,rt===0&&dr(yc)),W===r&&(t.substr(o,4).toLowerCase()==="none"?(W=t.substr(o,4),o+=4):(W=r,rt===0&&dr(Qa)),W===r&&(t.substr(o,6).toLowerCase()==="shared"?(W=t.substr(o,6),o+=6):(W=r,rt===0&&dr(hc)),W===r&&(t.substr(o,9).toLowerCase()==="exclusive"?(W=t.substr(o,9),o+=9):(W=r,rt===0&&dr(Bl))))),W===r?(o=f,f=r):(Zt=f,f=y={type:"alter",keyword:"lock",resource:"lock",symbol:S,lock:W})):(o=f,f=r)):(o=f,f=r),f}function Wt(){var f,y,S,W,vr,_r;return f=o,(y=Aa())===r&&(y=Lc()),y!==r&&fr()!==r?((S=cu())===r&&(S=null),S!==r&&fr()!==r?((W=qr())===r&&(W=null),W!==r&&fr()!==r&&(vr=mt())!==r&&fr()!==r?((_r=bt())===r&&(_r=null),_r!==r&&fr()!==r?(Zt=f,f=y=(function($r,at,St,Kt,sn){return{index:at,definition:Kt,keyword:$r.toLowerCase(),index_type:St,resource:"index",index_options:sn}})(y,S,W,vr,_r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f}function ta(){var f,y,S,W,vr,_r;return f=o,(y=(function(){var $r=o,at,St,Kt;return t.substr(o,8).toLowerCase()==="fulltext"?(at=t.substr(o,8),o+=8):(at=r,rt===0&&dr(ve)),at===r?(o=$r,$r=r):(St=o,rt++,Kt=Ee(),rt--,Kt===r?St=void 0:(o=St,St=r),St===r?(o=$r,$r=r):(Zt=$r,$r=at="FULLTEXT")),$r})())===r&&(y=(function(){var $r=o,at,St,Kt;return t.substr(o,7).toLowerCase()==="spatial"?(at=t.substr(o,7),o+=7):(at=r,rt===0&&dr(Jt)),at===r?(o=$r,$r=r):(St=o,rt++,Kt=Ee(),rt--,Kt===r?St=void 0:(o=St,St=r),St===r?(o=$r,$r=r):(Zt=$r,$r=at="SPATIAL")),$r})()),y!==r&&fr()!==r?((S=Aa())===r&&(S=Lc()),S===r&&(S=null),S!==r&&fr()!==r?((W=cu())===r&&(W=null),W!==r&&fr()!==r&&(vr=mt())!==r&&fr()!==r?((_r=bt())===r&&(_r=null),_r!==r&&fr()!==r?(Zt=f,f=y=(function($r,at,St,Kt,sn){return{index:St,definition:Kt,keyword:at&&`${$r.toLowerCase()} ${at.toLowerCase()}`||$r.toLowerCase(),index_options:sn,resource:"index"}})(y,S,W,vr,_r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f}function li(){var f;return(f=(function(){var y=o,S,W,vr,_r,$r;(S=ea())===r&&(S=null),S!==r&&fr()!==r?(t.substr(o,11).toLowerCase()==="primary key"?(W=t.substr(o,11),o+=11):(W=r,rt===0&&dr(sl)),W!==r&&fr()!==r?((vr=qr())===r&&(vr=null),vr!==r&&fr()!==r&&(_r=mt())!==r&&fr()!==r?(($r=bt())===r&&($r=null),$r===r?(o=y,y=r):(Zt=y,St=W,Kt=vr,sn=_r,Nn=$r,S={constraint:(at=S)&&at.constraint,definition:sn,constraint_type:St.toLowerCase(),keyword:at&&at.keyword,index_type:Kt,resource:"constraint",index_options:Nn},y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r);var at,St,Kt,sn,Nn;return y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r,at,St;(S=ea())===r&&(S=null),S!==r&&fr()!==r&&(W=Fu())!==r&&fr()!==r?((vr=Aa())===r&&(vr=Lc()),vr===r&&(vr=null),vr!==r&&fr()!==r?((_r=cu())===r&&(_r=null),_r!==r&&fr()!==r?(($r=qr())===r&&($r=null),$r!==r&&fr()!==r&&(at=mt())!==r&&fr()!==r?((St=bt())===r&&(St=null),St===r?(o=y,y=r):(Zt=y,sn=W,Nn=vr,Xn=_r,Gn=$r,fs=at,Ts=St,S={constraint:(Kt=S)&&Kt.constraint,definition:fs,constraint_type:Nn&&`${sn.toLowerCase()} ${Nn.toLowerCase()}`||sn.toLowerCase(),keyword:Kt&&Kt.keyword,index_type:Gn,index:Xn,resource:"constraint",index_options:Ts},y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r);var Kt,sn,Nn,Xn,Gn,fs,Ts;return y})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r;(S=ea())===r&&(S=null),S!==r&&fr()!==r?(t.substr(o,11).toLowerCase()==="foreign key"?(W=t.substr(o,11),o+=11):(W=r,rt===0&&dr(sc)),W!==r&&fr()!==r?((vr=cu())===r&&(vr=null),vr!==r&&fr()!==r&&(_r=mt())!==r&&fr()!==r?(($r=Le())===r&&($r=null),$r===r?(o=y,y=r):(Zt=y,St=W,Kt=vr,sn=_r,Nn=$r,S={constraint:(at=S)&&at.constraint,definition:sn,constraint_type:St,keyword:at&&at.keyword,index:Kt,resource:"constraint",reference_definition:Nn},y=S)):(o=y,y=r)):(o=y,y=r)):(o=y,y=r);var at,St,Kt,sn,Nn;return y})())===r&&(f=Ml()),f}function ea(){var f,y,S;return f=o,(y=F0())!==r&&fr()!==r?((S=xe())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(W,vr){return{keyword:W.toLowerCase(),constraint:vr}})(y,S))):(o=f,f=r),f}function Ml(){var f,y,S,W,vr,_r,$r;return f=o,(y=ea())===r&&(y=null),y!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="check"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(Ps)),S!==r&&fr()!==r&&q()!==r&&fr()!==r&&(W=br())!==r&&fr()!==r&&rr()!==r?(Zt=f,_r=S,$r=W,f=y={constraint:(vr=y)&&vr.constraint,definition:[$r],constraint_type:_r.toLowerCase(),keyword:vr&&vr.keyword,resource:"constraint"}):(o=f,f=r)):(o=f,f=r),f}function Le(){var f,y,S,W,vr,_r,$r,at,St,Kt;return f=o,(y=Hr())!==r&&fr()!==r&&(S=bs())!==r&&fr()!==r&&(W=mt())!==r&&fr()!==r?(t.substr(o,10).toLowerCase()==="match full"?(vr=t.substr(o,10),o+=10):(vr=r,rt===0&&dr(Y0)),vr===r&&(t.substr(o,13).toLowerCase()==="match partial"?(vr=t.substr(o,13),o+=13):(vr=r,rt===0&&dr(N0)),vr===r&&(t.substr(o,12).toLowerCase()==="match simple"?(vr=t.substr(o,12),o+=12):(vr=r,rt===0&&dr(ov)))),vr===r&&(vr=null),vr!==r&&fr()!==r?((_r=rl())===r&&(_r=null),_r!==r&&fr()!==r?(($r=rl())===r&&($r=null),$r===r?(o=f,f=r):(Zt=f,at=vr,St=_r,Kt=$r,f=y={definition:W,table:[S],keyword:y.toLowerCase(),match:at&&at.toLowerCase(),on_action:[St,Kt].filter(sn=>sn)})):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,(y=rl())!==r&&(Zt=f,y={on_action:[y]}),f=y),f}function rl(){var f,y,S,W;return f=o,Er()!==r&&fr()!==r?((y=Yo())===r&&(y=Xc()),y!==r&&fr()!==r&&(S=(function(){var vr=o,_r,$r;return(_r=ru())!==r&&fr()!==r&&q()!==r&&fr()!==r?(($r=gn())===r&&($r=null),$r!==r&&fr()!==r&&rr()!==r?(Zt=vr,vr=_r={type:"function",name:{name:[{type:"origin",value:_r}]},args:$r}):(o=vr,vr=r)):(o=vr,vr=r),vr===r&&(vr=o,t.substr(o,8).toLowerCase()==="restrict"?(_r=t.substr(o,8),o+=8):(_r=r,rt===0&&dr(ff)),_r===r&&(t.substr(o,7).toLowerCase()==="cascade"?(_r=t.substr(o,7),o+=7):(_r=r,rt===0&&dr(Rl)),_r===r&&(t.substr(o,8).toLowerCase()==="set null"?(_r=t.substr(o,8),o+=8):(_r=r,rt===0&&dr(Fb)),_r===r&&(t.substr(o,9).toLowerCase()==="no action"?(_r=t.substr(o,9),o+=9):(_r=r,rt===0&&dr(e0)),_r===r&&(t.substr(o,11).toLowerCase()==="set default"?(_r=t.substr(o,11),o+=11):(_r=r,rt===0&&dr(Cb)),_r===r&&(_r=ru()))))),_r!==r&&(Zt=vr,_r={type:"origin",value:_r.toLowerCase()}),vr=_r),vr})())!==r?(Zt=f,W=S,f={type:"on "+y[0].toLowerCase(),value:W}):(o=f,f=r)):(o=f,f=r),f}function xu(){var f,y,S,W,vr,_r,$r;return f=o,(y=Xo())===r&&(y=Yo())===r&&(y=No()),y!==r&&(Zt=f,$r=y,y={keyword:Array.isArray($r)?$r[0].toLowerCase():$r.toLowerCase()}),(f=y)===r&&(f=o,(y=Xc())!==r&&fr()!==r?(S=o,t.substr(o,2).toLowerCase()==="of"?(W=t.substr(o,2),o+=2):(W=r,rt===0&&dr(Zf)),W!==r&&(vr=fr())!==r&&(_r=ne())!==r?S=W=[W,vr,_r]:(o=S,S=r),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(at,St){return{keyword:at&&at[0]&&at[0].toLowerCase(),args:St&&{keyword:St[0],columns:St[2]}||null}})(y,S))):(o=f,f=r)),f}function si(){var f,y,S;return f=o,t.substr(o,9).toLowerCase()==="character"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(yb)),y!==r&&fr()!==r?(t.substr(o,3).toLowerCase()==="set"?(S=t.substr(o,3),o+=3):(S=r,rt===0&&dr(hb)),S===r?(o=f,f=r):(Zt=f,f=y="CHARACTER SET")):(o=f,f=r),f}function Ni(){var f,y,S,W,vr,_r,$r,at,St;return f=o,(y=Tv())===r&&(y=null),y!==r&&fr()!==r?((S=si())===r&&(t.substr(o,7).toLowerCase()==="charset"?(S=t.substr(o,7),o+=7):(S=r,rt===0&&dr(Kv)),S===r&&(t.substr(o,7).toLowerCase()==="collate"?(S=t.substr(o,7),o+=7):(S=r,rt===0&&dr(Gc)))),S!==r&&fr()!==r?((W=Gu())===r&&(W=null),W!==r&&fr()!==r&&(vr=Go())!==r?(Zt=f,$r=S,at=W,St=vr,f=y={keyword:(_r=y)&&`${_r[0].toLowerCase()} ${$r.toLowerCase()}`||$r.toLowerCase(),symbol:at,value:St}):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f}function tl(){var f,y,S,W,vr,_r,$r,at,St;return f=o,t.substr(o,14).toLowerCase()==="auto_increment"?(y=t.substr(o,14),o+=14):(y=r,rt===0&&dr(n0)),y===r&&(t.substr(o,14).toLowerCase()==="avg_row_length"?(y=t.substr(o,14),o+=14):(y=r,rt===0&&dr(_v)),y===r&&(t.substr(o,14).toLowerCase()==="key_block_size"?(y=t.substr(o,14),o+=14):(y=r,rt===0&&dr(kf)),y===r&&(t.substr(o,8).toLowerCase()==="max_rows"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(vf)),y===r&&(t.substr(o,8).toLowerCase()==="min_rows"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(ki)),y===r&&(t.substr(o,18).toLowerCase()==="stats_sample_pages"?(y=t.substr(o,18),o+=18):(y=r,rt===0&&dr(Hl))))))),y!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r&&(W=Ai())!==r?(Zt=f,at=S,St=W,f=y={keyword:y.toLowerCase(),symbol:at,value:St.value}):(o=f,f=r)):(o=f,f=r),f===r&&(f=Ni())===r&&(f=o,(y=Pi())===r&&(t.substr(o,10).toLowerCase()==="connection"?(y=t.substr(o,10),o+=10):(y=r,rt===0&&dr(Eb))),y!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r&&(W=Tt())!==r?(Zt=f,f=y=(function(Kt,sn,Nn){return{keyword:Kt.toLowerCase(),symbol:sn,value:`'${Nn.value}'`}})(y,S,W)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,11).toLowerCase()==="compression"?(y=t.substr(o,11),o+=11):(y=r,rt===0&&dr(Bb)),y!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r?(W=o,t.charCodeAt(o)===39?(vr="'",o++):(vr=r,rt===0&&dr(pa)),vr===r?(o=W,W=r):(t.substr(o,4).toLowerCase()==="zlib"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(wl)),_r===r&&(t.substr(o,3).toLowerCase()==="lz4"?(_r=t.substr(o,3),o+=3):(_r=r,rt===0&&dr(Nl)),_r===r&&(t.substr(o,4).toLowerCase()==="none"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(Qa)))),_r===r?(o=W,W=r):(t.charCodeAt(o)===39?($r="'",o++):($r=r,rt===0&&dr(pa)),$r===r?(o=W,W=r):W=vr=[vr,_r,$r])),W===r?(o=f,f=r):(Zt=f,f=y=(function(Kt,sn,Nn){return{keyword:Kt.toLowerCase(),symbol:sn,value:Nn.join("").toUpperCase()}})(y,S,W))):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,6).toLowerCase()==="engine"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Sv)),y!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r&&(W=vu())!==r?(Zt=f,f=y=(function(Kt,sn,Nn){return{keyword:Kt.toLowerCase(),symbol:sn,value:Nn.toUpperCase()}})(y,S,W)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,(y=Nf())!==r&&fr()!==r&&(S=ds())!==r&&fr()!==r&&(W=J())!==r?(Zt=f,f=y=(function(Kt){return{keyword:"partition by",value:Kt}})(W)):(o=f,f=r))))),f}function Dl(){var f,y,S;return f=o,(y=of())===r&&(y=Xo())===r&&(y=Xc())===r&&(y=Yo())===r&&(y=No())===r&&(y=Hr())===r&&(t.substr(o,7).toLowerCase()==="trigger"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(_0))),y!==r&&(Zt=f,S=y,y={type:"origin",value:Array.isArray(S)?S[0]:S}),f=y}function $a(){var f,y,S,W;return f=o,ee()===r?(o=f,f=r):(y=o,(S=fr())===r?(o=y,y=r):(t.substr(o,10).toLowerCase()==="privileges"?(W=t.substr(o,10),o+=10):(W=r,rt===0&&dr(ft)),W===r?(o=y,y=r):y=S=[S,W]),y===r&&(y=null),y===r?(o=f,f=r):(Zt=f,f={type:"origin",value:y?"all privileges":"all"})),f}function bc(){var f;return(f=Dl())===r&&(f=(function(){var y,S;return y=o,t.substr(o,5).toLowerCase()==="usage"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(Df)),S===r&&(S=of())===r&&(S=Xc()),S!==r&&(Zt=y,S=mb(S)),y=S})())===r&&(f=(function(){var y,S;return y=o,(S=qa())===r&&(t.substr(o,7).toLowerCase()==="connect"?(S=t.substr(o,7),o+=7):(S=r,rt===0&&dr(i0)),S===r&&(S=qo())===r&&(S=Oc())),S!==r&&(Zt=y,S=mb(S)),y=S})())===r&&(f=(function(){var y,S;return y=o,t.substr(o,5).toLowerCase()==="usage"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(Df)),S!==r&&(Zt=y,S=tn(S)),(y=S)===r&&(y=$a()),y})())===r&&(f=(function(){var y,S;return y=o,t.substr(o,7).toLowerCase()==="execute"?(S=t.substr(o,7),o+=7):(S=r,rt===0&&dr(xi)),S!==r&&(Zt=y,S=tn(S)),(y=S)===r&&(y=$a()),y})()),f}function Wu(){var f,y,S,W,vr,_r,$r,at;return f=o,(y=bc())!==r&&fr()!==r?(S=o,(W=q())!==r&&(vr=fr())!==r&&(_r=ne())!==r&&($r=fr())!==r&&(at=rr())!==r?S=W=[W,vr,_r,$r,at]:(o=S,S=r),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt){return{priv:St,columns:Kt&&Kt[2]}})(y,S))):(o=f,f=r),f}function Zo(){var f,y,S,W,vr;return f=o,y=o,(S=xe())!==r&&(W=fr())!==r&&(vr=pi())!==r?y=S=[S,W,vr]:(o=y,y=r),y===r&&(y=null),y!==r&&(S=fr())!==r?((W=xe())===r&&(W=M()),W===r?(o=f,f=r):(Zt=f,f=y=(function(_r,$r){return{prefix:_r&&_r[0],name:$r}})(y,W))):(o=f,f=r),f}function wi(){var f,y,S,W;return f=o,(y=hn())===r&&(y=null),y!==r&&fr()!==r&&(S=xe())!==r?(Zt=f,W=S,f=y={name:{type:"origin",value:y?`${group} ${W}`:W}}):(o=f,f=r),f===r&&(f=o,t.substr(o,6).toLowerCase()==="public"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(uu)),y===r&&(y=(function(){var vr=o,_r,$r,at;return t.substr(o,12).toLowerCase()==="current_role"?(_r=t.substr(o,12),o+=12):(_r=r,rt===0&&dr(Pc)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):(Zt=vr,vr=_r="CURRENT_ROLE")),vr})())===r&&(y=Me())===r&&(y=_u()),y!==r&&(Zt=f,y=(function(vr){return{name:{type:"origin",value:vr}}})(y)),f=y),f}function j(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=wi())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=wi())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=wi())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function ur(){var f,y,S,W,vr,_r,$r,at;return f=o,t.substr(o,5).toLowerCase()==="grant"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(ko)),y!==r&&(Zt=f,y={type:"grant"}),(f=y)===r&&(f=o,t.substr(o,6).toLowerCase()==="revoke"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Iu)),y!==r&&fr()!==r?(S=o,t.substr(o,5).toLowerCase()==="grant"?(W=t.substr(o,5),o+=5):(W=r,rt===0&&dr(ko)),W!==r&&(vr=fr())!==r?(t.substr(o,6).toLowerCase()==="option"?(_r=t.substr(o,6),o+=6):(_r=r,rt===0&&dr(yu)),_r!==r&&($r=fr())!==r?(t.substr(o,3).toLowerCase()==="for"?(at=t.substr(o,3),o+=3):(at=r,rt===0&&dr(u0)),at===r?(o=S,S=r):S=W=[W,vr,_r,$r,at]):(o=S,S=r)):(o=S,S=r),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y={type:"revoke",grant_option_for:S&&{type:"origin",value:"grant option for"}})):(o=f,f=r)),f}function Ir(){var f,y,S,W,vr,_r;return f=o,t.substr(o,6).toLowerCase()==="elseif"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(mu)),y!==r&&fr()!==r&&(S=J())!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="then"?(W=t.substr(o,4),o+=4):(W=r,rt===0&&dr(Ju)),W!==r&&fr()!==r&&(vr=Un())!==r&&fr()!==r?((_r=Jr())===r&&(_r=null),_r===r?(o=f,f=r):(Zt=f,f=y={type:"elseif",boolean_expr:S,then:vr,semicolon:_r})):(o=f,f=r)):(o=f,f=r),f}function s(){var f,y,S,W,vr,_r,$r;return f=o,(y=of())!==r&&(S=fr())!==r?(t.charCodeAt(o)===59?(W=";",o++):(W=r,rt===0&&dr(c0)),W===r?(o=f,f=r):(Zt=f,f=y={type:"select"})):(o=f,f=r),f===r&&(f=ir())===r&&(f=o,y=o,t.charCodeAt(o)===40?(S="(",o++):(S=r,rt===0&&dr(q0)),S!==r&&(W=fr())!==r&&(vr=s())!==r&&(_r=fr())!==r?(t.charCodeAt(o)===41?($r=")",o++):($r=r,rt===0&&dr(df)),$r===r?(o=y,y=r):y=S=[S,W,vr,_r,$r]):(o=y,y=r),y!==r&&(Zt=f,y={...y[2],parentheses_symbol:!0}),f=y),f}function er(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn;if(f=o,en()!==r)if(fr()!==r)if((y=Lt())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Lt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Lt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=x(y,S))}else o=f,f=r;else o=f,f=r;else o=f,f=r;if(f===r)if(f=o,fr()!==r)if(en()!==r)if((y=fr())!==r)if((S=$l())!==r)if((W=fr())!==r)if((vr=Lt())!==r){for(_r=[],$r=o,(at=fr())!==r&&(St=L())!==r&&(Kt=fr())!==r&&(sn=Lt())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r);$r!==r;)_r.push($r),$r=o,(at=fr())!==r&&(St=L())!==r&&(Kt=fr())!==r&&(sn=Lt())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r);_r===r?(o=f,f=r):(Zt=f,f=(function(Nn,Xn){return Nn.recursive=!0,x(Nn,Xn)})(vr,_r))}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;return f}function Lt(){var f,y,S,W;return f=o,(y=Tt())===r&&(y=vu()),y!==r&&fr()!==r?((S=mt())===r&&(S=null),S!==r&&fr()!==r&&R()!==r&&fr()!==r&&q()!==r&&fr()!==r&&(W=Un())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y=(function(vr,_r,$r){return typeof vr=="string"&&(vr={type:"default",value:vr}),{name:vr,stmt:$r.ast,columns:_r}})(y,S,W)):(o=f,f=r)):(o=f,f=r),f}function mt(){var f,y;return f=o,q()!==r&&fr()!==r&&(y=ne())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y):(o=f,f=r),f}function bn(){var f,y,S;return f=o,(y=ie())!==r&&fr()!==r&&Er()!==r&&fr()!==r&&q()!==r&&fr()!==r&&(S=ne())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y=(function(W,vr,_r){return console.lo,{type:W+" ON",columns:_r}})(y,0,S)):(o=f,f=r),f===r&&(f=o,(y=ie())===r&&(y=null),y!==r&&(Zt=f,y={type:y}),f=y),f}function ir(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts;return f=o,fr()===r?(o=f,f=r):((y=er())===r&&(y=null),y!==r&&fr()!==r&&of()!==r&&os()!==r?((S=(function(){var Ms,Vs,se,Re,oe,Ne;if(Ms=o,(Vs=Zr())!==r){for(se=[],Re=o,(oe=fr())!==r&&(Ne=Zr())!==r?Re=oe=[oe,Ne]:(o=Re,Re=r);Re!==r;)se.push(Re),Re=o,(oe=fr())!==r&&(Ne=Zr())!==r?Re=oe=[oe,Ne]:(o=Re,Re=r);se===r?(o=Ms,Ms=r):(Zt=Ms,Vs=(function(ze,to){let Lo=[ze];for(let wo=0,jo=to.length;wo<jo;++wo)Lo.push(to[wo][1]);return Lo})(Vs,se),Ms=Vs)}else o=Ms,Ms=r;return Ms})())===r&&(S=null),S!==r&&fr()!==r?((W=bn())===r&&(W=null),W!==r&&fr()!==r&&(vr=rs())!==r&&fr()!==r?((_r=nr())===r&&(_r=null),_r!==r&&fr()!==r?(($r=yr())===r&&($r=null),$r!==r&&fr()!==r?((at=nr())===r&&(at=null),at!==r&&fr()!==r?((St=fe())===r&&(St=null),St!==r&&fr()!==r?((Kt=(function(){var Ms=o,Vs,se;return(Vs=hn())!==r&&fr()!==r&&ds()!==r&&fr()!==r&&(se=gn())!==r?(Zt=Ms,Vs={columns:se.value},Ms=Vs):(o=Ms,Ms=r),Ms})())===r&&(Kt=null),Kt!==r&&fr()!==r?((sn=(function(){var Ms=o,Vs;return(function(){var se=o,Re,oe,Ne;return t.substr(o,6).toLowerCase()==="having"?(Re=t.substr(o,6),o+=6):(Re=r,rt===0&&dr(C0)),Re===r?(o=se,se=r):(oe=o,rt++,Ne=Ee(),rt--,Ne===r?oe=void 0:(o=oe,oe=r),oe===r?(o=se,se=r):se=Re=[Re,oe]),se})()!==r&&fr()!==r&&(Vs=br())!==r?(Zt=Ms,Ms=Vs):(o=Ms,Ms=r),Ms})())===r&&(sn=null),sn!==r&&fr()!==r?((Nn=(function(){var Ms=o,Vs;return(function(){var se=o,Re,oe,Ne;return t.substr(o,7).toLowerCase()==="qualify"?(Re=t.substr(o,7),o+=7):(Re=r,rt===0&&dr(Hf)),Re===r?(o=se,se=r):(oe=o,rt++,Ne=Ee(),rt--,Ne===r?oe=void 0:(o=oe,oe=r),oe===r?(o=se,se=r):se=Re=[Re,oe]),se})()!==r&&fr()!==r&&(Vs=br())!==r?(Zt=Ms,Ms=Vs):(o=Ms,Ms=r),Ms})())===r&&(Nn=null),Nn!==r&&fr()!==r?((Xn=su())===r&&(Xn=null),Xn!==r&&fr()!==r?((Gn=F())===r&&(Gn=null),Gn!==r&&fr()!==r?((fs=(function(){var Ms=o,Vs;return(function(){var se=o,Re,oe,Ne;return t.substr(o,6).toLowerCase()==="window"?(Re=t.substr(o,6),o+=6):(Re=r,rt===0&&dr(Ll)),Re===r?(o=se,se=r):(oe=o,rt++,Ne=Ee(),rt--,Ne===r?oe=void 0:(o=oe,oe=r),oe===r?(o=se,se=r):se=Re=[Re,oe]),se})()!==r&&fr()!==r&&(Vs=(function(){var se,Re,oe,Ne,ze,to,Lo,wo;if(se=o,(Re=Is())!==r){for(oe=[],Ne=o,(ze=fr())!==r&&(to=L())!==r&&(Lo=fr())!==r&&(wo=Is())!==r?Ne=ze=[ze,to,Lo,wo]:(o=Ne,Ne=r);Ne!==r;)oe.push(Ne),Ne=o,(ze=fr())!==r&&(to=L())!==r&&(Lo=fr())!==r&&(wo=Is())!==r?Ne=ze=[ze,to,Lo,wo]:(o=Ne,Ne=r);oe===r?(o=se,se=r):(Zt=se,Re=x(Re,oe),se=Re)}else o=se,se=r;return se})())!==r?(Zt=Ms,Ms={keyword:"window",type:"window",expr:Vs}):(o=Ms,Ms=r),Ms})())===r&&(fs=null),fs!==r&&fr()!==r?((Ts=nr())===r&&(Ts=null),Ts===r?(o=f,f=r):(Zt=f,f=(function(Ms,Vs,se,Re,oe,Ne,ze,to,Lo,wo,jo,Ku,za,ci,uf){if(oe&&ze||oe&&uf||ze&&uf||oe&&ze&&uf)throw Error("A given SQL statement can contain at most one INTO clause");return Ne&&Ne.forEach(Iv=>Iv.table&>.add(`select::${[Iv.db,Iv.schema].filter(Boolean).join(".")||null}::${Iv.table}`)),{with:Ms,type:"select",options:Vs,distinct:se,columns:Re,into:{...oe||ze||uf||{},position:(oe?"column":ze&&"from")||uf&&"end"},from:Ne,where:to,groupby:Lo,having:wo,qualify:jo,orderby:Ku,limit:za,window:ci}})(y,S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts))):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)),f}function Zr(){var f,y;return f=o,(y=(function(){var S;return t.substr(o,19).toLowerCase()==="sql_calc_found_rows"?(S=t.substr(o,19),o+=19):(S=r,rt===0&&dr(oi)),S})())===r&&((y=(function(){var S;return t.substr(o,9).toLowerCase()==="sql_cache"?(S=t.substr(o,9),o+=9):(S=r,rt===0&&dr(yn)),S})())===r&&(y=(function(){var S;return t.substr(o,12).toLowerCase()==="sql_no_cache"?(S=t.substr(o,12),o+=12):(S=r,rt===0&&dr(ka)),S})()),y===r&&(y=(function(){var S;return t.substr(o,14).toLowerCase()==="sql_big_result"?(S=t.substr(o,14),o+=14):(S=r,rt===0&&dr(Ou)),S})())===r&&(y=(function(){var S;return t.substr(o,16).toLowerCase()==="sql_small_result"?(S=t.substr(o,16),o+=16):(S=r,rt===0&&dr(Ua)),S})())===r&&(y=(function(){var S;return t.substr(o,17).toLowerCase()==="sql_buffer_result"?(S=t.substr(o,17),o+=17):(S=r,rt===0&&dr(il)),S})())),y!==r&&(Zt=f,y=y),f=y}function rs(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=ee())===r&&(y=o,(S=M())===r?(o=y,y=r):(W=o,rt++,vr=Ee(),rt--,vr===r?W=void 0:(o=W,W=r),W===r?(o=y,y=r):y=S=[S,W]),y===r&&(y=M())),y!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=De())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=De())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt){Gt.add("select::null::(.*)");let sn={expr:{type:"column_ref",table:null,column:"*"},as:null};return Kt&&Kt.length>0?x(sn,Kt):[sn]})(0,S))}else o=f,f=r;if(f===r)if(f=o,(y=De())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=De())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=De())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function vs(){var f,y;return f=o,Dr()!==r&&fr()!==r?((y=Ai())===r&&(y=Tt()),y!==r&&fr()!==r&&Xr()!==r?(Zt=f,f={brackets:!0,index:y}):(o=f,f=r)):(o=f,f=r),f}function Ds(){var f,y,S,W,vr,_r;if(f=o,(y=vs())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=vs())!==r?W=vr=[vr,_r]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=vs())!==r?W=vr=[vr,_r]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S,1))}else o=f,f=r;return f}function ut(){var f,y,S,W,vr;return f=o,(y=(function(){var _r,$r,at,St,Kt,sn,Nn,Xn;if(_r=o,($r=J())!==r){for(at=[],St=o,(Kt=fr())===r?(o=St,St=r):((sn=Do())===r&&(sn=Ka())===r&&(sn=On()),sn!==r&&(Nn=fr())!==r&&(Xn=J())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r));St!==r;)at.push(St),St=o,(Kt=fr())===r?(o=St,St=r):((sn=Do())===r&&(sn=Ka())===r&&(sn=On()),sn!==r&&(Nn=fr())!==r&&(Xn=J())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r));at===r?(o=_r,_r=r):(Zt=_r,$r=(function(Gn,fs){let Ts=Gn.ast;if(Ts&&Ts.type==="select"&&(!(Gn.parentheses_symbol||Gn.parentheses||Gn.ast.parentheses||Gn.ast.parentheses_symbol)||Ts.columns.length!==1||Ts.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!fs||fs.length===0)return Gn;let Ms=fs.length,Vs=fs[Ms-1][3];for(let se=Ms-1;se>=0;se--){let Re=se===0?Gn:fs[se-1][3];Vs=b(fs[se][1],Re,Vs)}return Vs})($r,at),_r=$r)}else o=_r,_r=r;return _r})())!==r&&fr()!==r?((S=Ds())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,W=y,(vr=S)&&(W.array_index=vr),f=y=W)):(o=f,f=r),f}function De(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn;if(f=o,(y=tu())!==r&&(Zt=f,y=(function(Gn){return{expr:Gn,as:null}})(y)),(f=y)===r){if(f=o,(y=Je())===r&&(y=ut()),y!==r)if((S=fr())!==r)if((W=Du())!==r)if((vr=fr())!==r){for(_r=[],$r=o,(at=fr())===r?(o=$r,$r=r):((St=Cn())===r&&(St=qn()),St!==r&&(Kt=fr())!==r&&(sn=ut())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r));$r!==r;)_r.push($r),$r=o,(at=fr())===r?(o=$r,$r=r):((St=Cn())===r&&(St=qn()),St!==r&&(Kt=fr())!==r&&(sn=ut())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r));_r!==r&&($r=fr())!==r?((at=A())===r&&(at=null),at===r?(o=f,f=r):(Zt=f,f=y=(function(Gn,fs,Ts,Ms){return{...fs,as:Ms,type:"cast",expr:Gn,tail:Ts&&Ts[0]&&{operator:Ts[0][1],expr:Ts[0][3]}}})(y,W,_r,at))):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;f===r&&(f=o,(y=nu())!==r&&(S=fr())!==r&&(W=pi())!==r?(vr=o,(_r=nu())!==r&&($r=fr())!==r&&(at=pi())!==r?vr=_r=[_r,$r,at]:(o=vr,vr=r),vr===r&&(vr=null),vr!==r&&(_r=fr())!==r&&($r=M())!==r?(Zt=f,f=y=(function(Gn,fs){let Ts=fs&&fs[0],Ms;return Ts&&(Ms=Gn,Gn=Ts),Gt.add(`select::${Gn}::(.*)`),{expr:{type:"column_ref",table:Gn,schema:Ms,column:"*"},as:null}})(y,vr)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,y=o,(S=nu())!==r&&(W=fr())!==r&&(vr=pi())!==r?y=S=[S,W,vr]:(o=y,y=r),y===r&&(y=null),y!==r&&(S=fr())!==r&&(W=M())!==r?(Zt=f,f=y=(function(Gn){let fs=Gn&&Gn[0]||null;return Gt.add(`select::${fs.value}::(.*)`),{expr:{type:"column_ref",table:fs,column:"*"},as:null}})(y)):(o=f,f=r),f===r&&(f=o,(y=ut())!==r&&(S=fr())!==r?((W=A())===r&&(W=null),W===r?(o=f,f=r):(Zt=f,Xn=W,(Nn=y).type!=="double_quote_string"&&Nn.type!=="single_quote_string"||Gt.add("select::null::"+Nn.value),f=y={type:"expr",expr:Nn,as:Xn})):(o=f,f=r))))}return f}function Qo(){var f,y,S;return f=o,(y=R())===r&&(y=null),y!==r&&fr()!==r&&(S=fo())!==r?(Zt=f,f=y=S):(o=f,f=r),f}function A(){var f,y,S;return f=o,(y=R())!==r&&fr()!==r&&(S=fo())!==r?(Zt=f,f=y=S):(o=f,f=r),f===r&&(f=o,(y=R())===r&&(y=null),y!==r&&fr()!==r&&(S=fo())!==r?(Zt=f,f=y=S):(o=f,f=r)),f}function nr(){var f,y,S;return f=o,Xu()!==r&&fr()!==r&&(y=(function(){var W,vr,_r,$r,at,St,Kt,sn;if(W=o,(vr=In())!==r){for(_r=[],$r=o,(at=fr())!==r&&(St=L())!==r&&(Kt=fr())!==r&&(sn=In())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r);$r!==r;)_r.push($r),$r=o,(at=fr())!==r&&(St=L())!==r&&(Kt=fr())!==r&&(sn=In())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r);_r===r?(o=W,W=r):(Zt=W,vr=x(vr,_r),W=vr)}else o=W,W=r;return W})())!==r?(Zt=f,f={keyword:"var",type:"into",expr:y}):(o=f,f=r),f===r&&(f=o,Xu()!==r&&fr()!==r?(t.substr(o,7).toLowerCase()==="outfile"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(b0)),y===r&&(t.substr(o,8).toLowerCase()==="dumpfile"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(Pf))),y===r&&(y=null),y!==r&&fr()!==r?((S=Tt())===r&&(S=xe()),S===r?(o=f,f=r):(Zt=f,f={keyword:y,type:"into",expr:S})):(o=f,f=r)):(o=f,f=r)),f}function yr(){var f,y;return f=o,ot()!==r&&fr()!==r&&(y=xt())!==r?(Zt=f,f=y):(o=f,f=r),f}function Ar(){var f,y,S;return f=o,(y=bs())!==r&&fr()!==r&&ef()!==r&&fr()!==r&&(S=bs())!==r?(Zt=f,f=y=[y,S]):(o=f,f=r),f}function qr(){var f,y;return f=o,$t()!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="btree"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Sp)),y===r&&(t.substr(o,4).toLowerCase()==="hash"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(kv)),y===r&&(t.substr(o,4).toLowerCase()==="gist"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Op)),y===r&&(t.substr(o,3).toLowerCase()==="gin"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(fp))))),y===r?(o=f,f=r):(Zt=f,f={keyword:"using",type:y.toLowerCase()})):(o=f,f=r),f}function bt(){var f,y,S,W,vr,_r;if(f=o,(y=pr())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=pr())!==r?W=vr=[vr,_r]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=pr())!==r?W=vr=[vr,_r]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=(function($r,at){let St=[$r];for(let Kt=0;Kt<at.length;Kt++)St.push(at[Kt][1]);return St})(y,S))}else o=f,f=r;return f}function pr(){var f,y,S,W,vr,_r;return f=o,(y=(function(){var $r=o,at,St,Kt;return t.substr(o,14).toLowerCase()==="key_block_size"?(at=t.substr(o,14),o+=14):(at=r,rt===0&&dr(kf)),at===r?(o=$r,$r=r):(St=o,rt++,Kt=Ee(),rt--,Kt===r?St=void 0:(o=St,St=r),St===r?(o=$r,$r=r):(Zt=$r,$r=at="KEY_BLOCK_SIZE")),$r})())!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r&&(W=Ai())!==r?(Zt=f,vr=S,_r=W,f=y={type:y.toLowerCase(),symbol:vr,expr:_r}):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,(y=vu())!==r&&fr()!==r&&(S=Gu())!==r&&fr()!==r?((W=Ai())===r&&(W=xe()),W===r?(o=f,f=r):(Zt=f,f=y=(function($r,at,St){return{type:$r.toLowerCase(),symbol:at,expr:typeof St=="string"&&{type:"origin",value:St}||St}})(y,S,W))):(o=f,f=r),f===r&&(f=qr())===r&&(f=o,t.substr(o,4).toLowerCase()==="with"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(oc)),y!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="parser"?(S=t.substr(o,6),o+=6):(S=r,rt===0&&dr(uc)),S!==r&&fr()!==r&&(W=vu())!==r?(Zt=f,f=y={type:"with parser",expr:W}):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,7).toLowerCase()==="visible"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(qb)),y===r&&(t.substr(o,9).toLowerCase()==="invisible"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(Gf))),y!==r&&(Zt=f,y=(function($r){return{type:$r.toLowerCase(),expr:$r.toLowerCase()}})(y)),(f=y)===r&&(f=ls())))),f}function xt(){var f,y,S,W;if(f=o,(y=mn())!==r){for(S=[],W=cn();W!==r;)S.push(W),W=cn();S===r?(o=f,f=r):(Zt=f,f=y=zv(y,S))}else o=f,f=r;return f}function cn(){var f,y,S;return f=o,fr()!==r&&(y=L())!==r&&fr()!==r&&(S=mn())!==r?(Zt=f,f=S):(o=f,f=r),f===r&&(f=o,fr()!==r&&(y=(function(){var W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn;if(W=o,(vr=$n())!==r)if(fr()!==r)if((_r=mn())!==r)if(fr()!==r)if(($r=$t())!==r)if(fr()!==r)if(q()!==r)if(fr()!==r)if((at=Go())!==r){for(St=[],Kt=o,(sn=fr())!==r&&(Nn=L())!==r&&(Xn=fr())!==r&&(Gn=Go())!==r?Kt=sn=[sn,Nn,Xn,Gn]:(o=Kt,Kt=r);Kt!==r;)St.push(Kt),Kt=o,(sn=fr())!==r&&(Nn=L())!==r&&(Xn=fr())!==r&&(Gn=Go())!==r?Kt=sn=[sn,Nn,Xn,Gn]:(o=Kt,Kt=r);St!==r&&(Kt=fr())!==r&&(sn=rr())!==r?(Zt=W,fs=vr,Ms=at,Vs=St,(Ts=_r).join=fs,Ts.using=x(Ms,Vs),W=vr=Ts):(o=W,W=r)}else o=W,W=r;else o=W,W=r;else o=W,W=r;else o=W,W=r;else o=W,W=r;else o=W,W=r;else o=W,W=r;else o=W,W=r;else o=W,W=r;var fs,Ts,Ms,Vs;return W===r&&(W=o,(vr=$n())!==r&&fr()!==r&&(_r=mn())!==r&&fr()!==r?(($r=Ws())===r&&($r=null),$r===r?(o=W,W=r):(Zt=W,vr=(function(se,Re,oe){return Re.join=se,Re.on=oe,Re})(vr,_r,$r),W=vr)):(o=W,W=r),W===r&&(W=o,(vr=$n())===r&&(vr=yt()),vr!==r&&fr()!==r&&(_r=q())!==r&&fr()!==r?(($r=Y())===r&&($r=xt()),$r!==r&&fr()!==r&&rr()!==r&&fr()!==r?((at=A())===r&&(at=null),at!==r&&(St=fr())!==r?((Kt=Ws())===r&&(Kt=null),Kt===r?(o=W,W=r):(Zt=W,vr=(function(se,Re,oe,Ne){return Array.isArray(Re)&&(Re={type:"tables",expr:Re}),Re.parentheses=!0,{expr:Re,as:oe,join:se,on:Ne}})(vr,$r,at,Kt),W=vr)):(o=W,W=r)):(o=W,W=r)):(o=W,W=r))),W})())!==r?(Zt=f,f=y):(o=f,f=r)),f}function mn(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn;return f=o,(y=(function(){var Xn;return t.substr(o,4).toLowerCase()==="dual"?(Xn=t.substr(o,4),o+=4):(Xn=r,rt===0&&dr(Wn)),Xn})())!==r&&(Zt=f,y={type:"dual"}),(f=y)===r&&(f=o,(y=vn())!==r&&fr()!==r?((S=Qo())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y={expr:y,as:S})):(o=f,f=r),f===r&&(f=o,t.substr(o,7).toLowerCase()==="lateral"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Mv)),y===r&&(y=null),y!==r&&fr()!==r&&(S=q())!==r&&fr()!==r?((W=Y())===r&&(W=vn()),W!==r&&fr()!==r&&(vr=rr())!==r&&(_r=fr())!==r?(($r=Qo())===r&&($r=null),$r===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn,fs){return Gn.parentheses=!0,{prefix:Xn,expr:Gn,as:fs}})(y,W,$r))):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,7).toLowerCase()==="lateral"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Mv)),y===r&&(y=null),y!==r&&fr()!==r&&(S=q())!==r&&fr()!==r&&(W=xt())!==r&&fr()!==r&&(vr=rr())!==r&&(_r=fr())!==r?(($r=Qo())===r&&($r=null),$r===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn,fs){return{prefix:Xn,expr:Gn={type:"tables",expr:Gn,parentheses:!0},as:fs}})(y,W,$r))):(o=f,f=r),f===r&&(f=o,t.substr(o,7).toLowerCase()==="lateral"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Mv)),y===r&&(y=null),y!==r&&fr()!==r&&(S=bl())!==r&&fr()!==r?((W=A())===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn,fs){return{prefix:Xn,type:"expr",expr:Gn,as:fs}})(y,S,W))):(o=f,f=r),f===r&&(f=o,(y=bs())!==r&&fr()!==r?(t.substr(o,11).toLowerCase()==="tablesample"?(S=t.substr(o,11),o+=11):(S=r,rt===0&&dr(Zv)),S!==r&&fr()!==r&&(W=bl())!==r&&fr()!==r?(vr=o,t.substr(o,10).toLowerCase()==="repeatable"?(_r=t.substr(o,10),o+=10):(_r=r,rt===0&&dr(bp)),_r!==r&&($r=fr())!==r&&(at=q())!==r&&(St=fr())!==r&&(Kt=Ai())!==r&&(sn=fr())!==r&&(Nn=rr())!==r?vr=_r=[_r,$r,at,St,Kt,sn,Nn]:(o=vr,vr=r),vr===r&&(vr=null),vr!==r&&(_r=fr())!==r?(($r=A())===r&&($r=null),$r===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn,fs,Ts){return{...Xn,as:Ts,tablesample:{expr:Gn,repeatable:fs&&fs[4]}}})(y,W,vr,$r))):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,(y=bs())!==r&&fr()!==r?((S=A())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn){return Xn.type==="var"?(Xn.as=Gn,Xn):{...Xn,as:Gn}})(y,S))):(o=f,f=r))))))),f}function $n(){var f,y,S,W;return f=o,(y=(function(){var vr=o,_r,$r,at;return t.substr(o,4).toLowerCase()==="left"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(Zn)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):vr=_r=[_r,$r]),vr})())!==r&&(S=fr())!==r?((W=it())===r&&(W=null),W!==r&&fr()!==r&&vt()!==r?(Zt=f,f=y="LEFT JOIN"):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,(y=(function(){var vr=o,_r,$r,at;return t.substr(o,5).toLowerCase()==="right"?(_r=t.substr(o,5),o+=5):(_r=r,rt===0&&dr(kb)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):vr=_r=[_r,$r]),vr})())!==r&&(S=fr())!==r?((W=it())===r&&(W=null),W!==r&&fr()!==r&&vt()!==r?(Zt=f,f=y="RIGHT JOIN"):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,(y=(function(){var vr=o,_r,$r,at;return t.substr(o,4).toLowerCase()==="full"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(U0)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):vr=_r=[_r,$r]),vr})())!==r&&(S=fr())!==r?((W=it())===r&&(W=null),W!==r&&fr()!==r&&vt()!==r?(Zt=f,f=y="FULL JOIN"):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,t.substr(o,5).toLowerCase()==="cross"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Ib)),y!==r&&(S=fr())!==r&&(W=vt())!==r?(Zt=f,f=y="CROSS JOIN"):(o=f,f=r),f===r&&(f=o,y=o,(S=(function(){var vr=o,_r,$r,at;return t.substr(o,5).toLowerCase()==="inner"?(_r=t.substr(o,5),o+=5):(_r=r,rt===0&&dr(C)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):vr=_r=[_r,$r]),vr})())!==r&&(W=fr())!==r?y=S=[S,W]:(o=y,y=r),y===r&&(y=null),y!==r&&(S=vt())!==r?(Zt=f,f=y="INNER JOIN"):(o=f,f=r))))),f}function bs(){var f,y,S,W,vr,_r,$r,at,St;return f=o,(y=xe())===r?(o=f,f=r):(S=o,(W=fr())!==r&&(vr=pi())!==r&&(_r=fr())!==r?(($r=xe())===r&&($r=M()),$r===r?(o=S,S=r):S=W=[W,vr,_r,$r]):(o=S,S=r),S===r&&(S=null),S===r?(o=f,f=r):(W=o,(vr=fr())!==r&&(_r=pi())!==r&&($r=fr())!==r?((at=xe())===r&&(at=M()),at===r?(o=W,W=r):W=vr=[vr,_r,$r,at]):(o=W,W=r),W===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y=(function(Kt,sn,Nn){let Xn={db:null,table:Kt};return Nn===null?(sn!==null&&(Xn.db=Kt,Xn.table=sn[3]),Xn):(Xn.db=Kt,Xn.schema=sn[3],Xn.table=Nn[3],Xn)})(y,S,W)))),f===r&&(f=o,(y=In())!==r&&(Zt=f,(St=y).db=null,St.table=St.name,y=St),f=y),f}function ks(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=J())!==r){for(S=[],W=o,(vr=fr())===r?(o=W,W=r):((_r=Do())===r&&(_r=Ka()),_r!==r&&($r=fr())!==r&&(at=J())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r));W!==r;)S.push(W),W=o,(vr=fr())===r?(o=W,W=r):((_r=Do())===r&&(_r=Ka()),_r!==r&&($r=fr())!==r&&(at=J())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r));S===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt){let sn=Kt.length,Nn=St;for(let Xn=0;Xn<sn;++Xn)Nn=b(Kt[Xn][1],Nn,Kt[Xn][3]);return Nn})(y,S))}else o=f,f=r;return f}function Ws(){var f,y;return f=o,Er()!==r&&fr()!==r&&(y=br())!==r?(Zt=f,f=y):(o=f,f=r),f}function fe(){var f,y;return f=o,(function(){var S=o,W,vr,_r;return t.substr(o,5).toLowerCase()==="where"?(W=t.substr(o,5),o+=5):(W=r,rt===0&&dr(hl)),W===r?(o=S,S=r):(vr=o,rt++,_r=Ee(),rt--,_r===r?vr=void 0:(o=vr,vr=r),vr===r?(o=S,S=r):S=W=[W,vr]),S})()!==r&&fr()!==r&&(y=br())!==r?(Zt=f,f=y):(o=f,f=r),f}function ne(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=Ru())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Ru())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Ru())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function Is(){var f,y,S;return f=o,(y=vu())!==r&&fr()!==r&&R()!==r&&fr()!==r&&(S=me())!==r?(Zt=f,f=y={name:y,as_window_specification:S}):(o=f,f=r),f}function me(){var f,y;return(f=vu())===r&&(f=o,q()!==r&&fr()!==r?((y=(function(){var S=o,W,vr,_r;return(W=Mu())===r&&(W=null),W!==r&&fr()!==r?((vr=su())===r&&(vr=null),vr!==r&&fr()!==r?((_r=(function(){var $r=o,at,St,Kt,sn;return(at=jr())!==r&&fr()!==r?((St=Xe())===r&&(St=eo()),St===r?(o=$r,$r=r):(Zt=$r,$r=at={type:"rows",expr:St})):(o=$r,$r=r),$r===r&&($r=o,(at=jr())!==r&&fr()!==r&&(St=ro())!==r&&fr()!==r&&(Kt=eo())!==r&&fr()!==r&&Do()!==r&&fr()!==r&&(sn=Xe())!==r?(Zt=$r,at=b(St,{type:"origin",value:"rows"},{type:"expr_list",value:[Kt,sn]}),$r=at):(o=$r,$r=r)),$r})())===r&&(_r=null),_r===r?(o=S,S=r):(Zt=S,S=W={name:null,partitionby:W,orderby:vr,window_frame_clause:_r})):(o=S,S=r)):(o=S,S=r),S})())===r&&(y=null),y!==r&&fr()!==r&&rr()!==r?(Zt=f,f={window_specification:y||{},parentheses:!0}):(o=f,f=r)):(o=f,f=r)),f}function Xe(){var f,y,S,W;return f=o,(y=$o())!==r&&fr()!==r?(t.substr(o,9).toLowerCase()==="following"?(S=t.substr(o,9),o+=9):(S=r,rt===0&&dr(Dv)),S===r?(o=f,f=r):(Zt=f,(W=y).value+=" FOLLOWING",f=y=W)):(o=f,f=r),f===r&&(f=so()),f}function eo(){var f,y,S,W,vr;return f=o,(y=$o())!==r&&fr()!==r?(t.substr(o,9).toLowerCase()==="preceding"?(S=t.substr(o,9),o+=9):(S=r,rt===0&&dr(vp)),S===r&&(t.substr(o,9).toLowerCase()==="following"?(S=t.substr(o,9),o+=9):(S=r,rt===0&&dr(Dv))),S===r?(o=f,f=r):(Zt=f,vr=S,(W=y).value+=" "+vr.toUpperCase(),f=y=W)):(o=f,f=r),f===r&&(f=so()),f}function so(){var f,y,S;return f=o,t.substr(o,7).toLowerCase()==="current"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Ss)),y!==r&&fr()!==r?(t.substr(o,3).toLowerCase()==="row"?(S=t.substr(o,3),o+=3):(S=r,rt===0&&dr(Ui)),S===r?(o=f,f=r):(Zt=f,f=y={type:"origin",value:"current row"})):(o=f,f=r),f}function $o(){var f,y;return f=o,t.substr(o,9).toLowerCase()==="unbounded"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(Jv)),y!==r&&(Zt=f,y={type:"origin",value:y.toUpperCase()}),(f=y)===r&&(f=Ai()),f}function Mu(){var f,y;return f=o,Nf()!==r&&fr()!==r&&ds()!==r&&fr()!==r&&(y=rs())!==r?(Zt=f,f=y):(o=f,f=r),f}function su(){var f,y;return f=o,Ns()!==r&&fr()!==r&&ds()!==r&&fr()!==r&&(y=(function(){var S,W,vr,_r,$r,at,St,Kt;if(S=o,(W=Po())!==r){for(vr=[],_r=o,($r=fr())!==r&&(at=L())!==r&&(St=fr())!==r&&(Kt=Po())!==r?_r=$r=[$r,at,St,Kt]:(o=_r,_r=r);_r!==r;)vr.push(_r),_r=o,($r=fr())!==r&&(at=L())!==r&&(St=fr())!==r&&(Kt=Po())!==r?_r=$r=[$r,at,St,Kt]:(o=_r,_r=r);vr===r?(o=S,S=r):(Zt=S,W=x(W,vr),S=W)}else o=S,S=r;return S})())!==r?(Zt=f,f=y):(o=f,f=r),f}function Po(){var f,y,S,W,vr,_r,$r;return f=o,(y=J())!==r&&fr()!==r?((S=ue())===r&&(S=Fs()),S===r&&(S=null),S!==r&&fr()!==r?(W=o,t.substr(o,5).toLowerCase()==="nulls"?(vr=t.substr(o,5),o+=5):(vr=r,rt===0&&dr(cf)),vr!==r&&(_r=fr())!==r?(t.substr(o,5).toLowerCase()==="first"?($r=t.substr(o,5),o+=5):($r=r,rt===0&&dr(ri)),$r===r&&(t.substr(o,4).toLowerCase()==="last"?($r=t.substr(o,4),o+=4):($r=r,rt===0&&dr(t0))),$r===r&&($r=null),$r===r?(o=W,W=r):W=vr=[vr,_r,$r]):(o=W,W=r),W===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y=(function(at,St,Kt){let sn={expr:at,type:St};return sn.nulls=Kt&&[Kt[0],Kt[2]].filter(Nn=>Nn).join(" "),sn})(y,S,W))):(o=f,f=r)):(o=f,f=r),f}function Na(){var f;return(f=Ai())===r&&(f=In())===r&&(f=Wa()),f}function F(){var f,y,S,W,vr,_r,$r;return f=o,y=o,(S=(function(){var at=o,St,Kt,sn;return t.substr(o,5).toLowerCase()==="limit"?(St=t.substr(o,5),o+=5):(St=r,rt===0&&dr(k0)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):at=St=[St,Kt]),at})())!==r&&(W=fr())!==r?((vr=Na())===r&&(vr=ee()),vr===r?(o=y,y=r):y=S=[S,W,vr]):(o=y,y=r),y===r&&(y=null),y!==r&&(S=fr())!==r?(W=o,(vr=(function(){var at=o,St,Kt,sn;return t.substr(o,6).toLowerCase()==="offset"?(St=t.substr(o,6),o+=6):(St=r,rt===0&&dr(M0)),St===r?(o=at,at=r):(Kt=o,rt++,sn=Ee(),rt--,sn===r?Kt=void 0:(o=Kt,Kt=r),Kt===r?(o=at,at=r):(Zt=at,at=St="OFFSET")),at})())!==r&&(_r=fr())!==r&&($r=Na())!==r?W=vr=[vr,_r,$r]:(o=W,W=r),W===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y=(function(at,St){let Kt=[];return at&&Kt.push(typeof at[2]=="string"?{type:"origin",value:"all"}:at[2]),St&&Kt.push(St[2]),{seperator:St&&St[0]&&St[0].toLowerCase()||"",value:Kt}})(y,W))):(o=f,f=r),f}function ar(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=Nr())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Nr())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Nr())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function Nr(){var f,y,S,W,vr,_r,$r,at;return f=o,y=o,(S=xe())!==r&&(W=fr())!==r&&(vr=pi())!==r?y=S=[S,W,vr]:(o=y,y=r),y===r&&(y=null),y!==r&&(S=fr())!==r&&(W=oa())!==r&&(vr=fr())!==r?(t.charCodeAt(o)===61?(_r="=",o++):(_r=r,rt===0&&dr(zn)),_r!==r&&fr()!==r&&($r=J())!==r?(Zt=f,f=y=(function(St,Kt,sn){return{column:{expr:Kt},value:sn,table:St&&St[0]}})(y,W,$r)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,y=o,(S=xe())!==r&&(W=fr())!==r&&(vr=pi())!==r?y=S=[S,W,vr]:(o=y,y=r),y===r&&(y=null),y!==r&&(S=fr())!==r&&(W=oa())!==r&&(vr=fr())!==r?(t.charCodeAt(o)===61?(_r="=",o++):(_r=r,rt===0&&dr(zn)),_r!==r&&fr()!==r&&($r=Et())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(at=Ru())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y=(function(St,Kt,sn){return{column:{expr:Kt},value:sn,table:St&&St[0],keyword:"values"}})(y,W,at)):(o=f,f=r)):(o=f,f=r)),f}function Rr(){var f,y,S;return f=o,(y=(function(){var W=o,vr,_r,$r;return t.substr(o,9).toLowerCase()==="returning"?(vr=t.substr(o,9),o+=9):(vr=r,rt===0&&dr(Vl)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="RETURNING")),W})())!==r&&fr()!==r?((S=rs())===r&&(S=s()),S===r?(o=f,f=r):(Zt=f,f=y=(function(W,vr){return{type:W&&W.toLowerCase()||"returning",columns:vr==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null}]||vr}})(y,S))):(o=f,f=r),f}function ct(){var f,y;return(f=vn())===r&&(f=o,(y=Y())!==r&&(Zt=f,y=y.ast),f=y),f}function dt(){var f,y,S,W,vr,_r,$r,at,St;if(f=o,Nf()!==r)if(fr()!==r)if((y=q())!==r)if(fr()!==r)if((S=vu())!==r){for(W=[],vr=o,(_r=fr())!==r&&($r=L())!==r&&(at=fr())!==r&&(St=vu())!==r?vr=_r=[_r,$r,at,St]:(o=vr,vr=r);vr!==r;)W.push(vr),vr=o,(_r=fr())!==r&&($r=L())!==r&&(at=fr())!==r&&(St=vu())!==r?vr=_r=[_r,$r,at,St]:(o=vr,vr=r);W!==r&&(vr=fr())!==r&&(_r=rr())!==r?(Zt=f,f=x(S,W)):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;return f===r&&(f=o,Nf()!==r&&fr()!==r&&(y=fn())!==r?(Zt=f,f=y):(o=f,f=r)),f}function Yt(){var f,y;return f=o,(y=Xo())!==r&&(Zt=f,y="insert"),(f=y)===r&&(f=o,(y=m0())!==r&&(Zt=f,y="replace"),f=y),f}function vn(){var f,y;return f=o,Et()!==r&&fr()!==r&&(y=(function(){var S,W,vr,_r,$r,at,St,Kt;if(S=o,(W=fn())!==r){for(vr=[],_r=o,($r=fr())!==r&&(at=L())!==r&&(St=fr())!==r&&(Kt=fn())!==r?_r=$r=[$r,at,St,Kt]:(o=_r,_r=r);_r!==r;)vr.push(_r),_r=o,($r=fr())!==r&&(at=L())!==r&&(St=fr())!==r&&(Kt=fn())!==r?_r=$r=[$r,at,St,Kt]:(o=_r,_r=r);vr===r?(o=S,S=r):(Zt=S,W=x(W,vr),S=W)}else o=S,S=r;return S})())!==r?(Zt=f,f={type:"values",values:y}):(o=f,f=r),f}function fn(){var f,y;return f=o,q()!==r&&fr()!==r&&(y=gn())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y):(o=f,f=r),f}function gn(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=J())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=J())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=J())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt){let sn={type:"expr_list"};return sn.value=x(St,Kt),sn})(y,S))}else o=f,f=r;return f}function Vn(){var f,y,S;return f=o,lu()!==r&&fr()!==r&&(y=J())!==r&&fr()!==r&&(S=(function(){var W;return(W=(function(){var vr=o,_r,$r,at;return t.substr(o,4).toLowerCase()==="year"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(Kb)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):(Zt=vr,vr=_r="YEAR")),vr})())===r&&(W=(function(){var vr=o,_r,$r,at;return t.substr(o,5).toLowerCase()==="month"?(_r=t.substr(o,5),o+=5):(_r=r,rt===0&&dr(pv)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):(Zt=vr,vr=_r="MONTH")),vr})())===r&&(W=(function(){var vr=o,_r,$r,at;return t.substr(o,3).toLowerCase()==="day"?(_r=t.substr(o,3),o+=3):(_r=r,rt===0&&dr(Hv)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):(Zt=vr,vr=_r="DAY")),vr})())===r&&(W=(function(){var vr=o,_r,$r,at;return t.substr(o,4).toLowerCase()==="hour"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(Rs)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):(Zt=vr,vr=_r="HOUR")),vr})())===r&&(W=(function(){var vr=o,_r,$r,at;return t.substr(o,6).toLowerCase()==="minute"?(_r=t.substr(o,6),o+=6):(_r=r,rt===0&&dr(Ls)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):(Zt=vr,vr=_r="MINUTE")),vr})())===r&&(W=(function(){var vr=o,_r,$r,at;return t.substr(o,6).toLowerCase()==="second"?(_r=t.substr(o,6),o+=6):(_r=r,rt===0&&dr(dv)),_r===r?(o=vr,vr=r):($r=o,rt++,at=Ee(),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=vr,vr=r):(Zt=vr,vr=_r="SECOND")),vr})()),W})())!==r?(Zt=f,f={type:"interval",expr:y,unit:S.toLowerCase()}):(o=f,f=r),f===r&&(f=o,lu()!==r&&fr()!==r&&(y=Tt())!==r?(Zt=f,f=(function(W){return{type:"interval",expr:W,unit:""}})(y)):(o=f,f=r)),f}function Jn(){var f,y,S,W,vr,_r;if(f=o,(y=ms())!==r)if(fr()!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=ms())!==r?W=vr=[vr,_r]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=ms())!==r?W=vr=[vr,_r]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S,1))}else o=f,f=r;else o=f,f=r;return f}function ms(){var f,y,S;return f=o,Db()!==r&&fr()!==r&&(y=br())!==r&&fr()!==r&&(function(){var W=o,vr,_r,$r;return t.substr(o,4).toLowerCase()==="then"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(Ju)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):W=vr=[vr,_r]),W})()!==r&&fr()!==r&&(S=J())!==r?(Zt=f,f={type:"when",cond:y,result:S}):(o=f,f=r),f}function Qs(){var f,y;return f=o,Wf()!==r&&fr()!==r&&(y=J())!==r?(Zt=f,f={type:"else",result:y}):(o=f,f=r),f}function $(){var f;return(f=mr())===r&&(f=(function(){var y,S,W,vr,_r,$r;if(y=o,(S=Cn())!==r){if(W=[],vr=o,(_r=fr())!==r&&($r=js())!==r?vr=_r=[_r,$r]:(o=vr,vr=r),vr!==r)for(;vr!==r;)W.push(vr),vr=o,(_r=fr())!==r&&($r=js())!==r?vr=_r=[_r,$r]:(o=vr,vr=r);else W=r;W===r?(o=y,y=r):(Zt=y,S=i(S,W[0][1]),y=S)}else o=y,y=r;return y})()),f}function J(){var f;return(f=$())===r&&(f=Y()),f}function br(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=J())!==r){for(S=[],W=o,(vr=fr())===r?(o=W,W=r):((_r=Do())===r&&(_r=Ka())===r&&(_r=L()),_r!==r&&($r=fr())!==r&&(at=J())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r));W!==r;)S.push(W),W=o,(vr=fr())===r?(o=W,W=r):((_r=Do())===r&&(_r=Ka())===r&&(_r=L()),_r!==r&&($r=fr())!==r&&(at=J())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r));S===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt){let sn=Kt.length,Nn=St,Xn="";for(let Gn=0;Gn<sn;++Gn)Kt[Gn][1]===","?(Xn=",",Array.isArray(Nn)||(Nn=[Nn]),Nn.push(Kt[Gn][3])):Nn=b(Kt[Gn][1],Nn,Kt[Gn][3]);if(Xn===","){let Gn={type:"expr_list"};return Gn.value=Nn,Gn}return Nn})(y,S))}else o=f,f=r;return f}function mr(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=et())!==r){for(S=[],W=o,(vr=os())!==r&&(_r=Ka())!==r&&($r=fr())!==r&&(at=et())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=os())!==r&&(_r=Ka())!==r&&($r=fr())!==r&&(at=et())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=cv(y,S))}else o=f,f=r;return f}function et(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=pt())!==r){for(S=[],W=o,(vr=os())!==r&&(_r=Do())!==r&&($r=fr())!==r&&(at=pt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=os())!==r&&(_r=Do())!==r&&($r=fr())!==r&&(at=pt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=cv(y,S))}else o=f,f=r;return f}function pt(){var f,y,S,W,vr;return(f=At())===r&&(f=(function(){var _r=o,$r,at;($r=(function(){var sn=o,Nn=o,Xn,Gn,fs;(Xn=Ea())!==r&&(Gn=fr())!==r&&(fs=wu())!==r?Nn=Xn=[Xn,Gn,fs]:(o=Nn,Nn=r),Nn!==r&&(Zt=sn,Nn=(Ts=Nn)[0]+" "+Ts[2]);var Ts;return(sn=Nn)===r&&(sn=wu()),sn})())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(at=Y())!==r&&fr()!==r&&rr()!==r?(Zt=_r,St=$r,(Kt=at).parentheses=!0,$r=i(St,Kt),_r=$r):(o=_r,_r=r);var St,Kt;return _r})())===r&&(f=o,(y=Ea())===r&&(y=o,t.charCodeAt(o)===33?(S="!",o++):(S=r,rt===0&&dr(Up)),S===r?(o=y,y=r):(W=o,rt++,t.charCodeAt(o)===61?(vr="=",o++):(vr=r,rt===0&&dr(zn)),rt--,vr===r?W=void 0:(o=W,W=r),W===r?(o=y,y=r):y=S=[S,W])),y!==r&&(S=fr())!==r&&(W=pt())!==r?(Zt=f,f=y=i("NOT",W)):(o=f,f=r)),f}function At(){var f,y,S,W,vr;return f=o,(y=pn())!==r&&fr()!==r?((S=(function(){var _r;return(_r=(function(){var $r=o,at=[],St=o,Kt,sn,Nn,Xn;if((Kt=fr())!==r&&(sn=Bt())!==r&&(Nn=fr())!==r&&(Xn=pn())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r),St!==r)for(;St!==r;)at.push(St),St=o,(Kt=fr())!==r&&(sn=Bt())!==r&&(Nn=fr())!==r&&(Xn=pn())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r);else at=r;return at!==r&&(Zt=$r,at={type:"arithmetic",tail:at}),$r=at})())===r&&(_r=(function(){var $r=o,at,St,Kt;return(at=Ut())!==r&&fr()!==r&&(St=q())!==r&&fr()!==r&&(Kt=gn())!==r&&fr()!==r&&rr()!==r?(Zt=$r,$r=at={op:at,right:Kt}):(o=$r,$r=r),$r===r&&($r=o,(at=Ut())!==r&&fr()!==r?((St=In())===r&&(St=Tt())===r&&(St=bl()),St===r?(o=$r,$r=r):(Zt=$r,at=(function(sn,Nn){return{op:sn,right:Nn}})(at,St),$r=at)):(o=$r,$r=r)),$r})())===r&&(_r=(function(){var $r=o,at,St,Kt;return(at=(function(){var sn=o,Nn=o,Xn,Gn,fs;(Xn=Ea())!==r&&(Gn=fr())!==r&&(fs=ro())!==r?Nn=Xn=[Xn,Gn,fs]:(o=Nn,Nn=r),Nn!==r&&(Zt=sn,Nn=(Ts=Nn)[0]+" "+Ts[2]);var Ts;return(sn=Nn)===r&&(sn=ro()),sn})())!==r&&fr()!==r&&(St=pn())!==r&&fr()!==r&&Do()!==r&&fr()!==r&&(Kt=pn())!==r?(Zt=$r,$r=at={op:at,right:{type:"expr_list",value:[St,Kt]}}):(o=$r,$r=r),$r})())===r&&(_r=(function(){var $r=o,at,St,Kt,sn,Nn,Xn,Gn,fs;return(at=Gs())!==r&&(St=fr())!==r&&(Kt=pn())!==r?(Zt=$r,$r=at={op:"IS",right:Kt}):(o=$r,$r=r),$r===r&&($r=o,(at=Gs())!==r&&(St=fr())!==r?(Kt=o,(sn=ie())!==r&&(Nn=fr())!==r&&(Xn=ot())!==r&&(Gn=fr())!==r&&(fs=bs())!==r?Kt=sn=[sn,Nn,Xn,Gn,fs]:(o=Kt,Kt=r),Kt===r?(o=$r,$r=r):(Zt=$r,at=(function(Ts){let{db:Ms,table:Vs}=Ts.pop(),se=Vs==="*"?"*":`"${Vs}"`;return{op:"IS",right:{type:"default",value:"DISTINCT FROM "+(Ms?`"${Ms}".${se}`:se)}}})(Kt),$r=at)):(o=$r,$r=r),$r===r&&($r=o,at=o,(St=Gs())!==r&&(Kt=fr())!==r&&(sn=Ea())!==r?at=St=[St,Kt,sn]:(o=at,at=r),at!==r&&(St=fr())!==r&&(Kt=pn())!==r?(Zt=$r,at=(function(Ts){return{op:"IS NOT",right:Ts}})(Kt),$r=at):(o=$r,$r=r))),$r})())===r&&(_r=(function(){var $r=o,at,St,Kt;(at=(function(){var Gn=o,fs=o,Ts,Ms,Vs;(Ts=Ea())!==r&&(Ms=fr())!==r?((Vs=iu())===r&&(Vs=Oo()),Vs===r?(o=fs,fs=r):fs=Ts=[Ts,Ms,Vs]):(o=fs,fs=r),fs!==r&&(Zt=Gn,fs=(se=fs)[0]+" "+se[2]);var se;return(Gn=fs)===r&&(Gn=iu())===r&&(Gn=Oo())===r&&(Gn=o,t.substr(o,7).toLowerCase()==="similar"?(fs=t.substr(o,7),o+=7):(fs=r,rt===0&&dr(Lp)),fs!==r&&(Ts=fr())!==r&&(Ms=ef())!==r?(Zt=Gn,Gn=fs="SIMILAR TO"):(o=Gn,Gn=r),Gn===r&&(Gn=o,(fs=Ea())!==r&&(Ts=fr())!==r?(t.substr(o,7).toLowerCase()==="similar"?(Ms=t.substr(o,7),o+=7):(Ms=r,rt===0&&dr(Lp)),Ms!==r&&(Vs=fr())!==r&&ef()!==r?(Zt=Gn,Gn=fs="NOT SIMILAR TO"):(o=Gn,Gn=r)):(o=Gn,Gn=r))),Gn})())!==r&&fr()!==r?((St=Hu())===r&&(St=At()),St!==r&&fr()!==r?((Kt=(function(){var Gn=o,fs,Ts;return t.substr(o,6).toLowerCase()==="escape"?(fs=t.substr(o,6),o+=6):(fs=r,rt===0&&dr(v0)),fs!==r&&fr()!==r&&(Ts=Tt())!==r?(Zt=Gn,fs=(function(Ms,Vs){return{type:"ESCAPE",value:Vs}})(0,Ts),Gn=fs):(o=Gn,Gn=r),Gn})())===r&&(Kt=null),Kt===r?(o=$r,$r=r):(Zt=$r,sn=at,Nn=St,(Xn=Kt)&&(Nn.escape=Xn),$r=at={op:sn,right:Nn})):(o=$r,$r=r)):(o=$r,$r=r);var sn,Nn,Xn;return $r})())===r&&(_r=(function(){var $r=o,at,St;return(at=(function(){var Kt;return t.substr(o,3)==="!~*"?(Kt="!~*",o+=3):(Kt=r,rt===0&&dr(Cp)),Kt===r&&(t.substr(o,2)==="~*"?(Kt="~*",o+=2):(Kt=r,rt===0&&dr(wp)),Kt===r&&(t.charCodeAt(o)===126?(Kt="~",o++):(Kt=r,rt===0&&dr(gb)),Kt===r&&(t.substr(o,2)==="!~"?(Kt="!~",o+=2):(Kt=r,rt===0&&dr(O0))))),Kt})())!==r&&fr()!==r?((St=Hu())===r&&(St=At()),St===r?(o=$r,$r=r):(Zt=$r,$r=at={op:at,right:St})):(o=$r,$r=r),$r})()),_r})())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,W=y,f=y=(vr=S)===null?W:vr.type==="arithmetic"?tr(W,vr.tail):b(vr.op,W,vr.right))):(o=f,f=r),f===r&&(f=Tt())===r&&(f=Ru()),f}function Bt(){var f;return t.substr(o,2)===">="?(f=">=",o+=2):(f=r,rt===0&&dr(Xp)),f===r&&(t.charCodeAt(o)===62?(f=">",o++):(f=r,rt===0&&dr(Qv)),f===r&&(t.substr(o,2)==="<="?(f="<=",o+=2):(f=r,rt===0&&dr(Vp)),f===r&&(t.substr(o,2)==="<>"?(f="<>",o+=2):(f=r,rt===0&&dr(dp)),f===r&&(t.charCodeAt(o)===60?(f="<",o++):(f=r,rt===0&&dr(Kp)),f===r&&(t.charCodeAt(o)===61?(f="=",o++):(f=r,rt===0&&dr(zn)),f===r&&(t.substr(o,2)==="!="?(f="!=",o+=2):(f=r,rt===0&&dr(ld)))))))),f}function Ut(){var f,y,S,W,vr,_r;return f=o,y=o,(S=Ea())!==r&&(W=fr())!==r&&(vr=$e())!==r?y=S=[S,W,vr]:(o=y,y=r),y!==r&&(Zt=f,y=(_r=y)[0]+" "+_r[2]),(f=y)===r&&(f=$e()),f}function pn(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=Hn())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=Cn())!==r&&($r=fr())!==r&&(at=Hn())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=Cn())!==r&&($r=fr())!==r&&(at=Hn())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=(function(St,Kt){if(Kt&&Kt.length&&St.type==="column_ref"&&St.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...wr()}));return tr(St,Kt)})(y,S))}else o=f,f=r;return f}function Cn(){var f;return t.charCodeAt(o)===43?(f="+",o++):(f=r,rt===0&&dr(ac)),f===r&&(t.charCodeAt(o)===45?(f="-",o++):(f=r,rt===0&&dr(Rb))),f}function Hn(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=qe())!==r){for(S=[],W=o,(vr=fr())===r?(o=W,W=r):((_r=qn())===r&&(_r=On()),_r!==r&&($r=fr())!==r&&(at=qe())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r));W!==r;)S.push(W),W=o,(vr=fr())===r?(o=W,W=r):((_r=qn())===r&&(_r=On()),_r!==r&&($r=fr())!==r&&(at=qe())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r));S===r?(o=f,f=r):(Zt=f,f=y=tr(y,S))}else o=f,f=r;return f}function qn(){var f;return t.charCodeAt(o)===42?(f="*",o++):(f=r,rt===0&&dr(Ff)),f===r&&(t.charCodeAt(o)===47?(f="/",o++):(f=r,rt===0&&dr(kp)),f===r&&(t.charCodeAt(o)===37?(f="%",o++):(f=r,rt===0&&dr(Mp)),f===r&&(t.substr(o,2)==="||"?(f="||",o+=2):(f=r,rt===0&&dr(rp))))),f}function Cs(){var f,y,S;return f=o,(y=Ru())!==r&&fr()!==r?((S=Ds())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(W,vr){return vr&&(W.array_index=vr),W})(y,S))):(o=f,f=r),f}function js(){var f,y,S,W,vr,_r;return(f=(function(){var $r=o,at,St,Kt,sn,Nn,Xn,Gn,fs;return(at=$b())!==r&&fr()!==r&&(St=q())!==r&&fr()!==r&&(Kt=J())!==r&&fr()!==r&&(sn=R())!==r&&fr()!==r&&(Nn=jn())!==r&&fr()!==r&&(Xn=rr())!==r?(Zt=$r,at=(function(Ts,Ms,Vs){return{type:"cast",keyword:Ts.toLowerCase(),expr:Ms,symbol:"as",target:[Vs]}})(at,Kt,Nn),$r=at):(o=$r,$r=r),$r===r&&($r=o,(at=$b())!==r&&fr()!==r&&(St=q())!==r&&fr()!==r&&(Kt=J())!==r&&fr()!==r&&(sn=R())!==r&&fr()!==r&&(Nn=ra())!==r&&fr()!==r&&(Xn=q())!==r&&fr()!==r&&(Gn=tc())!==r&&fr()!==r&&rr()!==r&&fr()!==r&&(fs=rr())!==r?(Zt=$r,at=(function(Ts,Ms,Vs){return{type:"cast",keyword:Ts.toLowerCase(),expr:Ms,symbol:"as",target:[{dataType:"DECIMAL("+Vs+")"}]}})(at,Kt,Gn),$r=at):(o=$r,$r=r),$r===r&&($r=o,(at=$b())!==r&&fr()!==r&&(St=q())!==r&&fr()!==r&&(Kt=J())!==r&&fr()!==r&&(sn=R())!==r&&fr()!==r&&(Nn=ra())!==r&&fr()!==r&&(Xn=q())!==r&&fr()!==r&&(Gn=tc())!==r&&fr()!==r&&L()!==r&&fr()!==r&&(fs=tc())!==r&&fr()!==r&&rr()!==r&&fr()!==r&&rr()!==r?(Zt=$r,at=(function(Ts,Ms,Vs,se){return{type:"cast",keyword:Ts.toLowerCase(),expr:Ms,symbol:"as",target:[{dataType:"DECIMAL("+Vs+", "+se+")"}]}})(at,Kt,Gn,fs),$r=at):(o=$r,$r=r),$r===r&&($r=o,(at=$b())!==r&&fr()!==r&&(St=q())!==r&&fr()!==r&&(Kt=J())!==r&&fr()!==r&&(sn=R())!==r&&fr()!==r&&(Nn=(function(){var Ts;return(Ts=(function(){var Ms=o,Vs,se,Re;return t.substr(o,6).toLowerCase()==="signed"?(Vs=t.substr(o,6),o+=6):(Vs=r,rt===0&&dr(ml)),Vs===r?(o=Ms,Ms=r):(se=o,rt++,Re=Ee(),rt--,Re===r?se=void 0:(o=se,se=r),se===r?(o=Ms,Ms=r):(Zt=Ms,Ms=Vs="SIGNED")),Ms})())===r&&(Ts=fd()),Ts})())!==r&&fr()!==r?((Xn=G())===r&&(Xn=null),Xn!==r&&fr()!==r&&(Gn=rr())!==r?(Zt=$r,at=(function(Ts,Ms,Vs,se){return{type:"cast",keyword:Ts.toLowerCase(),expr:Ms,symbol:"as",target:[{dataType:Vs+(se?" "+se:"")}]}})(at,Kt,Nn,Xn),$r=at):(o=$r,$r=r)):(o=$r,$r=r),$r===r&&($r=o,(at=q())!==r&&fr()!==r?((St=mr())===r&&(St=Cs())===r&&(St=Wa()),St!==r&&fr()!==r&&(Kt=rr())!==r&&fr()!==r?((sn=Du())===r&&(sn=null),sn===r?(o=$r,$r=r):(Zt=$r,at=(function(Ts,Ms){return Ts.parentheses=!0,Ms?{type:"cast",keyword:"cast",expr:Ts,...Ms}:Ts})(St,sn),$r=at)):(o=$r,$r=r)):(o=$r,$r=r),$r===r&&($r=o,(at=Je())===r&&(at=Hu())===r&&(at=Vn())===r&&(at=(function(){var Ts=o,Ms,Vs;(Ms=(function(){var oe=o,Ne,ze,to,Lo,wo,jo,Ku,za;return(Ne=(function(){var ci=o,uf,Iv,Ga;return t.substr(o,5).toLowerCase()==="count"?(uf=t.substr(o,5),o+=5):(uf=r,rt===0&&dr(Ye)),uf===r?(o=ci,ci=r):(Iv=o,rt++,Ga=Ee(),rt--,Ga===r?Iv=void 0:(o=Iv,Iv=r),Iv===r?(o=ci,ci=r):(Zt=ci,ci=uf="COUNT")),ci})())===r&&(Ne=(function(){var ci=o,uf,Iv,Ga;return t.substr(o,12).toLowerCase()==="group_concat"?(uf=t.substr(o,12),o+=12):(uf=r,rt===0&&dr(mf)),uf===r?(o=ci,ci=r):(Iv=o,rt++,Ga=Ee(),rt--,Ga===r?Iv=void 0:(o=Iv,Iv=r),Iv===r?(o=ci,ci=r):(Zt=ci,ci=uf="GROUP_CONCAT")),ci})()),Ne!==r&&fr()!==r&&q()!==r&&fr()!==r&&(ze=(function(){var ci=o,uf;return(uf=(function(){var Iv=o,Ga;return t.charCodeAt(o)===42?(Ga="*",o++):(Ga=r,rt===0&&dr(Ff)),Ga!==r&&(Zt=Iv,Ga={type:"star",value:"*"}),Iv=Ga})())!==r&&(Zt=ci,uf={expr:uf}),(ci=uf)===r&&(ci=hi()),ci})())!==r&&fr()!==r&&(to=rr())!==r&&fr()!==r?((Lo=Ev())===r&&(Lo=null),Lo===r?(o=oe,oe=r):(Zt=oe,Ne=(function(ci,uf,Iv){return{type:"aggr_func",name:ci,args:uf,over:Iv}})(Ne,ze,Lo),oe=Ne)):(o=oe,oe=r),oe===r&&(oe=o,t.substr(o,15).toLowerCase()==="percentile_cont"?(Ne=t.substr(o,15),o+=15):(Ne=r,rt===0&&dr(nd)),Ne===r&&(t.substr(o,15).toLowerCase()==="percentile_disc"?(Ne=t.substr(o,15),o+=15):(Ne=r,rt===0&&dr(Bp))),Ne!==r&&fr()!==r&&q()!==r&&fr()!==r?((ze=Ai())===r&&(ze=vl()),ze!==r&&fr()!==r&&(to=rr())!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="within"?(Lo=t.substr(o,6),o+=6):(Lo=r,rt===0&&dr(Hp)),Lo!==r&&fr()!==r&&hn()!==r&&fr()!==r&&(wo=q())!==r&&fr()!==r&&(jo=su())!==r&&fr()!==r&&(Ku=rr())!==r&&fr()!==r?((za=Ev())===r&&(za=null),za===r?(o=oe,oe=r):(Zt=oe,Ne=(function(ci,uf,Iv,Ga){return{type:"aggr_func",name:ci.toUpperCase(),args:{expr:uf},within_group_orderby:Iv,over:Ga}})(Ne,ze,jo,za),oe=Ne)):(o=oe,oe=r)):(o=oe,oe=r)):(o=oe,oe=r),oe===r&&(oe=o,t.substr(o,4).toLowerCase()==="mode"?(Ne=t.substr(o,4),o+=4):(Ne=r,rt===0&&dr(gp)),Ne!==r&&fr()!==r&&q()!==r&&fr()!==r&&(ze=rr())!==r&&fr()!==r?(t.substr(o,6).toLowerCase()==="within"?(to=t.substr(o,6),o+=6):(to=r,rt===0&&dr(Hp)),to!==r&&fr()!==r&&(Lo=hn())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(wo=su())!==r&&fr()!==r&&(jo=rr())!==r&&fr()!==r?((Ku=Ev())===r&&(Ku=null),Ku===r?(o=oe,oe=r):(Zt=oe,Ne=(function(ci,uf,Iv){return{type:"aggr_func",name:ci.toUpperCase(),args:{expr:{}},within_group_orderby:uf,over:Iv}})(Ne,wo,Ku),oe=Ne)):(o=oe,oe=r)):(o=oe,oe=r))),oe})())===r&&(Ms=(function(){var oe=o,Ne,ze,to;return(Ne=(function(){var Lo;return(Lo=(function(){var wo=o,jo,Ku,za;return t.substr(o,3).toLowerCase()==="sum"?(jo=t.substr(o,3),o+=3):(jo=r,rt===0&&dr(Su)),jo===r?(o=wo,wo=r):(Ku=o,rt++,za=Ee(),rt--,za===r?Ku=void 0:(o=Ku,Ku=r),Ku===r?(o=wo,wo=r):(Zt=wo,wo=jo="SUM")),wo})())===r&&(Lo=(function(){var wo=o,jo,Ku,za;return t.substr(o,3).toLowerCase()==="max"?(jo=t.substr(o,3),o+=3):(jo=r,rt===0&&dr(z0)),jo===r?(o=wo,wo=r):(Ku=o,rt++,za=Ee(),rt--,za===r?Ku=void 0:(o=Ku,Ku=r),Ku===r?(o=wo,wo=r):(Zt=wo,wo=jo="MAX")),wo})())===r&&(Lo=(function(){var wo=o,jo,Ku,za;return t.substr(o,3).toLowerCase()==="min"?(jo=t.substr(o,3),o+=3):(jo=r,rt===0&&dr(ub)),jo===r?(o=wo,wo=r):(Ku=o,rt++,za=Ee(),rt--,za===r?Ku=void 0:(o=Ku,Ku=r),Ku===r?(o=wo,wo=r):(Zt=wo,wo=jo="MIN")),wo})())===r&&(Lo=(function(){var wo=o,jo,Ku,za;return t.substr(o,3).toLowerCase()==="avg"?(jo=t.substr(o,3),o+=3):(jo=r,rt===0&&dr(Al)),jo===r?(o=wo,wo=r):(Ku=o,rt++,za=Ee(),rt--,za===r?Ku=void 0:(o=Ku,Ku=r),Ku===r?(o=wo,wo=r):(Zt=wo,wo=jo="AVG")),wo})()),Lo})())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(ze=pn())!==r&&fr()!==r&&rr()!==r&&fr()!==r?((to=Ev())===r&&(to=null),to===r?(o=oe,oe=r):(Zt=oe,Ne=(function(Lo,wo,jo){return{type:"aggr_func",name:Lo,args:{expr:wo},over:jo,...wr()}})(Ne,ze,to),oe=Ne)):(o=oe,oe=r),oe})())===r&&(Ms=(function(){var oe=o,Ne=o,ze,to,Lo,wo;return(ze=xe())!==r&&(to=fr())!==r&&(Lo=pi())!==r?Ne=ze=[ze,to,Lo]:(o=Ne,Ne=r),Ne===r&&(Ne=null),Ne!==r&&(ze=fr())!==r?((to=(function(){var jo=o,Ku,za,ci;return t.substr(o,9).toLowerCase()==="array_agg"?(Ku=t.substr(o,9),o+=9):(Ku=r,rt===0&&dr(w0)),Ku===r?(o=jo,jo=r):(za=o,rt++,ci=Ee(),rt--,ci===r?za=void 0:(o=za,za=r),za===r?(o=jo,jo=r):(Zt=jo,jo=Ku="ARRAY_AGG")),jo})())===r&&(to=(function(){var jo=o,Ku,za,ci;return t.substr(o,10).toLowerCase()==="string_agg"?(Ku=t.substr(o,10),o+=10):(Ku=r,rt===0&&dr(ul)),Ku===r?(o=jo,jo=r):(za=o,rt++,ci=Ee(),rt--,ci===r?za=void 0:(o=za,za=r),za===r?(o=jo,jo=r):(Zt=jo,jo=Ku="STRING_AGG")),jo})()),to!==r&&(Lo=fr())!==r&&q()!==r&&fr()!==r&&(wo=hi())!==r&&fr()!==r&&rr()!==r?(Zt=oe,Ne=(function(jo,Ku,za){return{type:"aggr_func",name:jo?`${jo[0]}.${Ku}`:Ku,args:za}})(Ne,to,wo),oe=Ne):(o=oe,oe=r)):(o=oe,oe=r),oe})()),Ms!==r&&fr()!==r?((Vs=(function(){var oe=o,Ne,ze;return t.substr(o,6).toLowerCase()==="filter"?(Ne=t.substr(o,6),o+=6):(Ne=r,rt===0&&dr(ql)),Ne!==r&&fr()!==r&&q()!==r&&fr()!==r&&(ze=fe())!==r&&fr()!==r&&rr()!==r?(Zt=oe,oe=Ne={keyword:"filter",parentheses:!0,where:ze}):(o=oe,oe=r),oe})())===r&&(Vs=null),Vs===r?(o=Ts,Ts=r):(Zt=Ts,se=Ms,(Re=Vs)&&(se.filter=Re),Ts=Ms=se)):(o=Ts,Ts=r);var se,Re;return Ts})())===r&&(at=(function(){var Ts;return(Ts=(function(){var Ms=o,Vs,se;return(Vs=(function(){var Re;return t.substr(o,10).toLowerCase()==="row_number"?(Re=t.substr(o,10),o+=10):(Re=r,rt===0&&dr(Qp)),Re===r&&(t.substr(o,10).toLowerCase()==="dense_rank"?(Re=t.substr(o,10),o+=10):(Re=r,rt===0&&dr(sp)),Re===r&&(t.substr(o,4).toLowerCase()==="rank"?(Re=t.substr(o,4),o+=4):(Re=r,rt===0&&dr(jv)))),Re})())!==r&&fr()!==r&&q()!==r&&fr()!==r&&rr()!==r&&fr()!==r&&(se=Ev())!==r?(Zt=Ms,Vs=(function(Re,oe){return{type:"window_func",name:Re,over:oe}})(Vs,se),Ms=Vs):(o=Ms,Ms=r),Ms})())===r&&(Ts=(function(){var Ms=o,Vs,se,Re,oe;return(Vs=(function(){var Ne;return t.substr(o,3).toLowerCase()==="lag"?(Ne=t.substr(o,3),o+=3):(Ne=r,rt===0&&dr(Tp)),Ne===r&&(t.substr(o,4).toLowerCase()==="lead"?(Ne=t.substr(o,4),o+=4):(Ne=r,rt===0&&dr(rd)),Ne===r&&(t.substr(o,9).toLowerCase()==="nth_value"?(Ne=t.substr(o,9),o+=9):(Ne=r,rt===0&&dr(jp)))),Ne})())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(se=gn())!==r&&fr()!==r&&rr()!==r&&fr()!==r?((Re=cb())===r&&(Re=null),Re!==r&&fr()!==r&&(oe=Ev())!==r?(Zt=Ms,Vs=(function(Ne,ze,to,Lo){return{type:"window_func",name:Ne,args:ze,over:Lo,consider_nulls:to}})(Vs,se,Re,oe),Ms=Vs):(o=Ms,Ms=r)):(o=Ms,Ms=r),Ms})())===r&&(Ts=(function(){var Ms=o,Vs,se,Re,oe;return(Vs=(function(){var Ne;return t.substr(o,11).toLowerCase()==="first_value"?(Ne=t.substr(o,11),o+=11):(Ne=r,rt===0&&dr(Ec)),Ne===r&&(t.substr(o,10).toLowerCase()==="last_value"?(Ne=t.substr(o,10),o+=10):(Ne=r,rt===0&&dr(Jp))),Ne})())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(se=J())!==r&&fr()!==r&&rr()!==r&&fr()!==r?((Re=cb())===r&&(Re=null),Re!==r&&fr()!==r&&(oe=Ev())!==r?(Zt=Ms,Vs=(function(Ne,ze,to,Lo){return{type:"window_func",name:Ne,args:{type:"expr_list",value:[ze]},over:Lo,consider_nulls:to}})(Vs,se,Re,oe),Ms=Vs):(o=Ms,Ms=r)):(o=Ms,Ms=r),Ms})()),Ts})())===r&&(at=bl())===r&&(at=(function(){var Ts,Ms,Vs,se,Re,oe,Ne,ze;return Ts=o,La()!==r&&fr()!==r&&(Ms=Jn())!==r&&fr()!==r?((Vs=Qs())===r&&(Vs=null),Vs!==r&&fr()!==r&&(se=Wo())!==r&&fr()!==r?((Re=La())===r&&(Re=null),Re===r?(o=Ts,Ts=r):(Zt=Ts,Ne=Ms,(ze=Vs)&&Ne.push(ze),Ts={type:"case",expr:null,args:Ne})):(o=Ts,Ts=r)):(o=Ts,Ts=r),Ts===r&&(Ts=o,La()!==r&&fr()!==r&&(Ms=J())!==r&&fr()!==r&&(Vs=Jn())!==r&&fr()!==r?((se=Qs())===r&&(se=null),se!==r&&fr()!==r&&(Re=Wo())!==r&&fr()!==r?((oe=La())===r&&(oe=null),oe===r?(o=Ts,Ts=r):(Zt=Ts,Ts=(function(to,Lo,wo){return wo&&Lo.push(wo),{type:"case",expr:to,args:Lo}})(Ms,Vs,se))):(o=Ts,Ts=r)):(o=Ts,Ts=r)),Ts})())===r&&(at=Cs())===r&&(at=Wa()),at!==r&&fr()!==r?((St=Du())===r&&(St=null),St===r?(o=$r,$r=r):(Zt=$r,at=(function(Ts,Ms){return Ms?{type:"cast",keyword:"cast",expr:Ts,...Ms}:Ts})(at,St),$r=at)):(o=$r,$r=r)))))),$r})())===r&&(f=o,q()!==r&&(y=fr())!==r&&(S=br())!==r&&(W=fr())!==r&&(vr=rr())!==r?(Zt=f,(_r=S).parentheses=!0,f=_r):(o=f,f=r),f===r&&(f=In())===r&&(f=o,fr()===r?(o=f,f=r):(t.charCodeAt(o)===36?(y="$",o++):(y=r,rt===0&&dr(yp)),y===r?(o=f,f=r):(t.charCodeAt(o)===60?(S="<",o++):(S=r,rt===0&&dr(Kp)),S!==r&&(W=Ai())!==r?(t.charCodeAt(o)===62?(vr=">",o++):(vr=r,rt===0&&dr(Qv)),vr===r?(o=f,f=r):(Zt=f,f={type:"origin",value:`$<${W.value}>`})):(o=f,f=r))))),f}function qe(){var f,y,S,W,vr;return(f=(function(){var _r,$r,at,St,Kt,sn,Nn,Xn;if(_r=o,($r=bo())!==r)if(fr()!==r){for(at=[],St=o,(Kt=fr())===r?(o=St,St=r):(t.substr(o,2)==="?|"?(sn="?|",o+=2):(sn=r,rt===0&&dr(hp)),sn===r&&(t.substr(o,2)==="?&"?(sn="?&",o+=2):(sn=r,rt===0&&dr(Ep)),sn===r&&(t.charCodeAt(o)===63?(sn="?",o++):(sn=r,rt===0&&dr(Nb)),sn===r&&(t.substr(o,2)==="#-"?(sn="#-",o+=2):(sn=r,rt===0&&dr(Qf)),sn===r&&(t.substr(o,3)==="#>>"?(sn="#>>",o+=3):(sn=r,rt===0&&dr(_b)),sn===r&&(t.substr(o,2)==="#>"?(sn="#>",o+=2):(sn=r,rt===0&&dr(Ap)),sn===r&&(sn=nn())===r&&(sn=Mt())===r&&(t.substr(o,2)==="@>"?(sn="@>",o+=2):(sn=r,rt===0&&dr(Dp)),sn===r&&(t.substr(o,2)==="<@"?(sn="<@",o+=2):(sn=r,rt===0&&dr($v))))))))),sn!==r&&(Nn=fr())!==r&&(Xn=bo())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r));St!==r;)at.push(St),St=o,(Kt=fr())===r?(o=St,St=r):(t.substr(o,2)==="?|"?(sn="?|",o+=2):(sn=r,rt===0&&dr(hp)),sn===r&&(t.substr(o,2)==="?&"?(sn="?&",o+=2):(sn=r,rt===0&&dr(Ep)),sn===r&&(t.charCodeAt(o)===63?(sn="?",o++):(sn=r,rt===0&&dr(Nb)),sn===r&&(t.substr(o,2)==="#-"?(sn="#-",o+=2):(sn=r,rt===0&&dr(Qf)),sn===r&&(t.substr(o,3)==="#>>"?(sn="#>>",o+=3):(sn=r,rt===0&&dr(_b)),sn===r&&(t.substr(o,2)==="#>"?(sn="#>",o+=2):(sn=r,rt===0&&dr(Ap)),sn===r&&(sn=nn())===r&&(sn=Mt())===r&&(t.substr(o,2)==="@>"?(sn="@>",o+=2):(sn=r,rt===0&&dr(Dp)),sn===r&&(t.substr(o,2)==="<@"?(sn="<@",o+=2):(sn=r,rt===0&&dr($v))))))))),sn!==r&&(Nn=fr())!==r&&(Xn=bo())!==r?St=Kt=[Kt,sn,Nn,Xn]:(o=St,St=r));at===r?(o=_r,_r=r):(Zt=_r,Gn=$r,$r=(fs=at)&&fs.length!==0?tr(Gn,fs):Gn,_r=$r)}else o=_r,_r=r;else o=_r,_r=r;var Gn,fs;return _r})())===r&&(f=o,(y=(function(){var _r;return t.charCodeAt(o)===33?(_r="!",o++):(_r=r,rt===0&&dr(Up)),_r===r&&(t.charCodeAt(o)===45?(_r="-",o++):(_r=r,rt===0&&dr(Rb)),_r===r&&(t.charCodeAt(o)===43?(_r="+",o++):(_r=r,rt===0&&dr(ac)),_r===r&&(t.charCodeAt(o)===126?(_r="~",o++):(_r=r,rt===0&&dr(gb))))),_r})())===r?(o=f,f=r):(S=o,(W=fr())!==r&&(vr=qe())!==r?S=W=[W,vr]:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y=i(y,S[1])))),f}function bo(){var f,y,S,W,vr;return f=o,(y=js())!==r&&fr()!==r?((S=Ds())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,W=y,(vr=S)&&(W.array_index=vr),f=y=W)):(o=f,f=r),f}function tu(){var f,y,S,W,vr,_r;if(f=o,t.substr(o,1).toLowerCase()==="e"?(y=t.charAt(o),o++):(y=r,rt===0&&dr($p)),y!==r)if(t.charCodeAt(o)===39?(S="'",o++):(S=r,rt===0&&dr(pa)),S!==r)if(fr()!==r){for(W=[],vr=_i();vr!==r;)W.push(vr),vr=_i();W!==r&&(vr=fr())!==r?(t.charCodeAt(o)===39?(_r="'",o++):(_r=r,rt===0&&dr(pa)),_r===r?(o=f,f=r):(Zt=f,f=y={type:"default",value:`E'${W.join("")}'`})):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;return f}function Ru(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn;if((f=tu())===r&&(f=o,y=o,(S=xe())!==r&&(W=fr())!==r&&(vr=pi())!==r?y=S=[S,W,vr]:(o=y,y=r),y===r&&(y=null),y!==r&&(S=fr())!==r&&(W=M())!==r?(Zt=f,f=y=(function(Xn){let Gn=Xn&&Xn[0]||null;return Gt.add(`select::${Gn}::(.*)`),{type:"column_ref",table:Gn,column:"*"}})(y)):(o=f,f=r),f===r)){if(f=o,(y=xe())!==r)if(S=o,(W=fr())!==r&&(vr=pi())!==r&&(_r=fr())!==r&&($r=xe())!==r?S=W=[W,vr,_r,$r]:(o=S,S=r),S!==r){if(W=[],vr=o,(_r=fr())!==r&&($r=pi())!==r&&(at=fr())!==r&&(St=Nu())!==r?vr=_r=[_r,$r,at,St]:(o=vr,vr=r),vr!==r)for(;vr!==r;)W.push(vr),vr=o,(_r=fr())!==r&&($r=pi())!==r&&(at=fr())!==r&&(St=Nu())!==r?vr=_r=[_r,$r,at,St]:(o=vr,vr=r);else W=r;W===r?(o=f,f=r):(vr=o,(_r=fr())!==r&&($r=_t())!==r?vr=_r=[_r,$r]:(o=vr,vr=r),vr===r&&(vr=null),vr===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn,fs,Ts){return fs.length===1?(Gt.add(`select::${Xn}.${Gn[3]}::${fs[0][3].value}`),{type:"column_ref",schema:Xn,table:Gn[3],column:fs[0][3],collate:Ts&&Ts[1]}):{type:"column_ref",column:{expr:tr(b(".",Xn,Gn[3]),fs)},collate:Ts&&Ts[1]}})(y,S,W,vr)))}else o=f,f=r;else o=f,f=r;f===r&&(f=o,(y=xe())!==r&&(S=fr())!==r&&(W=pi())!==r&&(vr=fr())!==r&&(_r=Nu())!==r?($r=o,(at=fr())!==r&&(St=_t())!==r?$r=at=[at,St]:(o=$r,$r=r),$r===r&&($r=null),$r===r?(o=f,f=r):(Zt=f,Kt=y,sn=_r,Nn=$r,Gt.add(`select::${Kt}::${sn.value}`),f=y={type:"column_ref",table:Kt,column:{expr:sn},collate:Nn&&Nn[1]})):(o=f,f=r),f===r&&(f=o,(y=Nu())===r?(o=f,f=r):(S=o,rt++,W=q(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(W=o,(vr=fr())!==r&&(_r=_t())!==r?W=vr=[vr,_r]:(o=W,W=r),W===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y=(function(Xn,Gn){return Gt.add("select::null::"+Xn.value),{type:"column_ref",table:null,column:{expr:Xn},collate:Gn&&Gn[1]}})(y,W))))))}return f}function Je(){var f,y,S;return f=o,(y=Rf())!==r&&(Zt=f,S=y,Gt.add("select::null::"+S.value),y={type:"column_ref",table:null,column:{expr:S}}),f=y}function hu(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=Nu())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Nu())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=Nu())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function Go(){var f,y;return f=o,(y=vu())!==r&&(Zt=f,y=Pp(y)),(f=y)===r&&(f=Ks()),f}function nu(){var f,y;return f=o,(y=vu())===r?(o=f,f=r):(Zt=o,(Pv(y)?r:void 0)===r?(o=f,f=r):(Zt=f,f=y=(function(S){return{type:"default",value:S}})(y))),f===r&&(f=Ks()),f}function xe(){var f,y;return f=o,(y=vu())===r?(o=f,f=r):(Zt=o,(Pv(y)?r:void 0)===r?(o=f,f=r):(Zt=f,f=y=y)),f===r&&(f=Vo()),f}function qs(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=xe())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=xe())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=xe())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function fo(){var f,y,S,W,vr,_r,$r,at,St;return f=o,(y=le())===r?(o=f,f=r):(Zt=o,((function(Kt){return lr[Kt.toUpperCase()]===!0})(y)?r:void 0)===r?(o=f,f=r):(S=o,(W=fr())!==r&&(vr=q())!==r&&(_r=fr())!==r&&($r=hu())!==r&&(at=fr())!==r&&(St=rr())!==r?S=W=[W,vr,_r,$r,at,St]:(o=S,S=r),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(Kt,sn){return sn?`${Kt}(${sn[3].map(Nn=>Nn.value).join(", ")})`:Kt})(y,S)))),f===r&&(f=o,(y=eu())!==r&&(Zt=f,y=(function(Kt){return Kt.value})(y)),f=y),f}function Ks(){var f;return(f=eu())===r&&(f=Jo())===r&&(f=Bu()),f}function Vo(){var f,y;return f=o,(y=eu())===r&&(y=Jo())===r&&(y=Bu()),y!==r&&(Zt=f,y=y.value),f=y}function eu(){var f,y,S,W;if(f=o,t.charCodeAt(o)===34?(y='"',o++):(y=r,rt===0&&dr(f0)),y!==r){if(S=[],Gp.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Fp)),W!==r)for(;W!==r;)S.push(W),Gp.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Fp));else S=r;S===r?(o=f,f=r):(t.charCodeAt(o)===34?(W='"',o++):(W=r,rt===0&&dr(f0)),W===r?(o=f,f=r):(Zt=f,f=y={type:"double_quote_string",value:S.join("")}))}else o=f,f=r;return f}function Jo(){var f,y,S,W;if(f=o,t.charCodeAt(o)===39?(y="'",o++):(y=r,rt===0&&dr(pa)),y!==r){if(S=[],mp.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(zp)),W!==r)for(;W!==r;)S.push(W),mp.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(zp));else S=r;S===r?(o=f,f=r):(t.charCodeAt(o)===39?(W="'",o++):(W=r,rt===0&&dr(pa)),W===r?(o=f,f=r):(Zt=f,f=y={type:"single_quote_string",value:S.join("")}))}else o=f,f=r;return f}function Bu(){var f,y,S,W;if(f=o,t.charCodeAt(o)===96?(y="`",o++):(y=r,rt===0&&dr(Zp)),y!==r){if(S=[],Gv.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(tp)),W!==r)for(;W!==r;)S.push(W),Gv.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(tp));else S=r;S===r?(o=f,f=r):(t.charCodeAt(o)===96?(W="`",o++):(W=r,rt===0&&dr(Zp)),W===r?(o=f,f=r):(Zt=f,f=y={type:"backticks_quote_string",value:S.join("")}))}else o=f,f=r;return f}function oa(){var f,y;return f=o,(y=le())!==r&&(Zt=f,y=Pp(y)),(f=y)===r&&(f=Ks()),f}function Nu(){var f,y;return f=o,(y=le())===r?(o=f,f=r):(Zt=o,(Pv(y)?r:void 0)===r?(o=f,f=r):(Zt=f,f=y=(function(S){return{type:"default",value:S}})(y))),f===r&&(f=Ks()),f}function cu(){var f,y;return f=o,(y=le())===r?(o=f,f=r):(Zt=o,(Pv(y)?r:void 0)===r?(o=f,f=r):(Zt=f,f=y=y)),f===r&&(f=Vo()),f}function le(){var f,y,S,W;if(f=o,(y=Ee())!==r){for(S=[],W=Rc();W!==r;)S.push(W),W=Rc();S===r?(o=f,f=r):(Zt=f,f=y+=S.join(""))}else o=f,f=r;return f}function vu(){var f,y,S,W;if(f=o,(y=Ee())!==r){for(S=[],W=yi();W!==r;)S.push(W),W=yi();S===r?(o=f,f=r):(Zt=f,f=y+=S.join(""))}else o=f,f=r;return f}function Ee(){var f;return Fv.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(yl)),f}function yi(){var f;return jc.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(fv)),f}function Rc(){var f;return Sl.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(Ol)),f}function Wa(){var f,y,S,W;return f=o,y=o,t.charCodeAt(o)===58?(S=":",o++):(S=r,rt===0&&dr(np)),S!==r&&(W=vu())!==r?y=S=[S,W]:(o=y,y=r),y!==r&&(Zt=f,y={type:"param",value:y[1]}),f=y}function vc(){var f,y,S;return f=o,Er()!==r&&fr()!==r&&Xc()!==r&&fr()!==r&&(y=ru())!==r&&fr()!==r&&q()!==r&&fr()!==r?((S=gn())===r&&(S=null),S!==r&&fr()!==r&&rr()!==r?(Zt=f,f={type:"on update",keyword:y,parentheses:!0,expr:S}):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,Er()!==r&&fr()!==r&&Xc()!==r&&fr()!==r&&(y=ru())!==r?(Zt=f,f=(function(W){return{type:"on update",keyword:W}})(y)):(o=f,f=r)),f}function Ev(){var f,y,S,W,vr;return f=o,t.substr(o,4).toLowerCase()==="over"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(bv)),y!==r&&fr()!==r&&(S=me())!==r?(Zt=f,f=y={type:"window",as_window_specification:S}):(o=f,f=r),f===r&&(f=o,t.substr(o,4).toLowerCase()==="over"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(bv)),y!==r&&fr()!==r&&(S=q())!==r&&fr()!==r?((W=Mu())===r&&(W=null),W!==r&&fr()!==r?((vr=su())===r&&(vr=null),vr!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y={partitionby:W,orderby:vr}):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f===r&&(f=vc())),f}function cb(){var f,y,S;return f=o,t.substr(o,6).toLowerCase()==="ignore"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Ip)),y===r&&(t.substr(o,7).toLowerCase()==="respect"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(td))),y!==r&&fr()!==r?(t.substr(o,5).toLowerCase()==="nulls"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(cf)),S===r?(o=f,f=r):(Zt=f,f=y=y.toUpperCase()+" NULLS")):(o=f,f=r),f}function ad(){var f,y;return f=o,L()!==r&&fr()!==r&&(y=Tt())!==r?(Zt=f,f={symbol:ke,delimiter:y}):(o=f,f=r),f}function hi(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn;if(f=o,(y=ie())===r&&(y=null),y!==r)if(fr()!==r)if((S=q())!==r)if(fr()!==r)if((W=J())!==r)if(fr()!==r)if((vr=rr())!==r)if(fr()!==r){for(_r=[],$r=o,(at=fr())===r?(o=$r,$r=r):((St=Do())===r&&(St=Ka()),St!==r&&(Kt=fr())!==r&&(sn=J())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r));$r!==r;)_r.push($r),$r=o,(at=fr())===r?(o=$r,$r=r):((St=Do())===r&&(St=Ka()),St!==r&&(Kt=fr())!==r&&(sn=J())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r));_r!==r&&($r=fr())!==r?((at=ad())===r&&(at=null),at!==r&&(St=fr())!==r?((Kt=su())===r&&(Kt=null),Kt===r?(o=f,f=r):(Zt=f,f=y=(function(Nn,Xn,Gn,fs,Ts){let Ms=Gn.length,Vs=Xn;Vs.parentheses=!0;for(let se=0;se<Ms;++se)Vs=b(Gn[se][1],Vs,Gn[se][3]);return{distinct:Nn,expr:Vs,orderby:Ts,separator:fs}})(y,W,_r,at,Kt))):(o=f,f=r)):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;return f===r&&(f=o,(y=ie())===r&&(y=null),y!==r&&fr()!==r&&(S=ks())!==r&&fr()!==r?((W=ad())===r&&(W=null),W!==r&&fr()!==r?((vr=su())===r&&(vr=null),vr===r?(o=f,f=r):(Zt=f,f=y=(function(Nn,Xn,Gn,fs){return{distinct:Nn,expr:Xn,orderby:fs,separator:Gn}})(y,S,W,vr))):(o=f,f=r)):(o=f,f=r)),f}function ap(){var f,y,S;return f=o,(y=(function(){var W;return t.substr(o,4).toLowerCase()==="both"?(W=t.substr(o,4),o+=4):(W=r,rt===0&&dr(sd)),W===r&&(t.substr(o,7).toLowerCase()==="leading"?(W=t.substr(o,7),o+=7):(W=r,rt===0&&dr(ed)),W===r&&(t.substr(o,8).toLowerCase()==="trailing"?(W=t.substr(o,8),o+=8):(W=r,rt===0&&dr(Yp)))),W})())===r&&(y=null),y!==r&&fr()!==r?((S=J())===r&&(S=null),S!==r&&fr()!==r&&ot()!==r?(Zt=f,f=y=(function(W,vr,_r){let $r=[];return W&&$r.push({type:"origin",value:W}),vr&&$r.push(vr),$r.push({type:"origin",value:"from"}),{type:"expr_list",value:$r}})(y,S)):(o=f,f=r)):(o=f,f=r),f}function A0(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="trim"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(od)),y!==r&&fr()!==r&&q()!==r&&fr()!==r?((S=ap())===r&&(S=null),S!==r&&fr()!==r&&(W=J())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y=(function(vr,_r){let $r=vr||{type:"expr_list",value:[]};return $r.value.push(_r),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:$r,...wr()}})(S,W)):(o=f,f=r)):(o=f,f=r),f}function fl(){var f,y,S,W,vr;return f=o,t.substr(o,8).toLowerCase()==="crosstab"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(ud)),y!==r&&fr()!==r&&q()!==r&&fr()!==r&&(S=gn())!==r&&fr()!==r&&rr()!==r&&fr()!==r&&R()!==r&&fr()!==r&&(W=vu())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(vr=ht())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y={type:"tablefunc",name:{name:[{type:"default",value:"crosstab"}]},args:S,as:{type:"function",name:{name:[{type:"default",value:W}]},args:{type:"expr_list",value:vr.map(_r=>({..._r,type:"column_definition"}))},...wr()},...wr()}):(o=f,f=r),f}function Av(){var f,y,S;return f=o,t.substr(o,8).toLowerCase()==="position"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(Rp)),y!==r&&fr()!==r&&q()!==r&&fr()!==r&&(S=(function(){var W,vr,_r,$r,at,St,Kt,sn;return W=o,(vr=Tt())!==r&&fr()!==r&&$e()!==r&&fr()!==r&&(_r=J())!==r?($r=o,(at=fr())!==r&&(St=ot())!==r&&(Kt=fr())!==r&&(sn=Ai())!==r?$r=at=[at,St,Kt,sn]:(o=$r,$r=r),$r===r&&($r=null),$r===r?(o=W,W=r):(Zt=W,W=vr=(function(Nn,Xn,Gn){let fs=[Nn,{type:"origin",value:"in"},Xn];return Gn&&(fs.push({type:"origin",value:"from"}),fs.push(Gn[3])),{type:"expr_list",value:fs}})(vr,_r,$r))):(o=W,W=r),W})())!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y={type:"function",name:{name:[{type:"origin",value:"position"}]},separator:" ",args:S,...wr()}):(o=f,f=r),f}function bl(){var f,y,S,W,vr,_r,$r;return(f=A0())===r&&(f=fl())===r&&(f=Av())===r&&(f=o,t.substr(o,3).toLowerCase()==="now"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(O)),y!==r&&fr()!==r&&(S=q())!==r&&fr()!==r?((W=gn())===r&&(W=null),W!==r&&fr()!==r&&rr()!==r&&fr()!==r?(t.substr(o,2).toLowerCase()==="at"?(vr=t.substr(o,2),o+=2):(vr=r,rt===0&&dr(ps)),vr!==r&&fr()!==r&&oo()!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="zone"?(_r=t.substr(o,4),o+=4):(_r=r,rt===0&&dr(Bv)),_r!==r&&fr()!==r&&($r=Tt())!==r?(Zt=f,f=y=(function(at,St,Kt){return Kt.prefix="at time zone",{type:"function",name:{name:[{type:"default",value:at}]},args:St||{type:"expr_list",value:[]},suffix:Kt,...wr()}})(y,W,$r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r)):(o=f,f=r),f===r&&(f=o,(y=(function(){var at;return(at=Xi())===r&&(at=Me())===r&&(at=(function(){var St=o,Kt,sn,Nn;return t.substr(o,4).toLowerCase()==="user"?(Kt=t.substr(o,4),o+=4):(Kt=r,rt===0&&dr(or)),Kt===r?(o=St,St=r):(sn=o,rt++,Nn=Ee(),rt--,Nn===r?sn=void 0:(o=sn,sn=r),sn===r?(o=St,St=r):(Zt=St,St=Kt="USER")),St})())===r&&(at=_u())===r&&(at=(function(){var St=o,Kt,sn,Nn;return t.substr(o,11).toLowerCase()==="system_user"?(Kt=t.substr(o,11),o+=11):(Kt=r,rt===0&&dr(Jl)),Kt===r?(o=St,St=r):(sn=o,rt++,Nn=Ee(),rt--,Nn===r?sn=void 0:(o=sn,sn=r),sn===r?(o=St,St=r):(Zt=St,St=Kt="SYSTEM_USER")),St})())===r&&(t.substr(o,5).toLowerCase()==="ntile"?(at=t.substr(o,5),o+=5):(at=r,rt===0&&dr(ys))),at})())!==r&&fr()!==r&&(S=q())!==r&&fr()!==r?((W=gn())===r&&(W=null),W!==r&&fr()!==r&&rr()!==r&&fr()!==r?((vr=Ev())===r&&(vr=null),vr===r?(o=f,f=r):(Zt=f,f=y=(function(at,St,Kt){return{type:"function",name:{name:[{type:"origin",value:at}]},args:St||{type:"expr_list",value:[]},over:Kt,...wr()}})(y,W,vr))):(o=f,f=r)):(o=f,f=r),f===r&&(f=(function(){var at=o,St,Kt,sn,Nn;(St=_f())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(Kt=gu())!==r&&fr()!==r&&ot()!==r&&fr()!==r?((sn=Bo())===r&&(sn=lu())===r&&(sn=oo())===r&&(sn=we()),sn===r&&(sn=null),sn!==r&&fr()!==r&&(Nn=J())!==r&&fr()!==r&&rr()!==r?(Zt=at,Xn=Kt,Gn=sn,fs=Nn,St={type:St.toLowerCase(),args:{field:Xn,cast_type:Gn,source:fs},...wr()},at=St):(o=at,at=r)):(o=at,at=r);var Xn,Gn,fs;return at===r&&(at=o,(St=_f())!==r&&fr()!==r&&q()!==r&&fr()!==r&&(Kt=gu())!==r&&fr()!==r&&ot()!==r&&fr()!==r&&(sn=J())!==r&&fr()!==r&&(Nn=rr())!==r?(Zt=at,St=(function(Ts,Ms,Vs){return{type:Ts.toLowerCase(),args:{field:Ms,source:Vs},...wr()}})(St,Kt,sn),at=St):(o=at,at=r)),at})())===r&&(f=o,(y=Xi())!==r&&fr()!==r?((S=vc())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y={type:"function",name:{name:[{type:"origin",value:y}]},over:S,...wr()})):(o=f,f=r),f===r&&(f=o,(y=Ct())!==r&&fr()!==r&&(S=q())!==r&&fr()!==r?((W=br())===r&&(W=null),W!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y=(function(at,St){return St&&St.type!=="expr_list"&&(St={type:"expr_list",value:[St]}),{type:"function",name:at,args:St||{type:"expr_list",value:[]},...wr()}})(y,W)):(o=f,f=r)):(o=f,f=r))))),f}function gu(){var f,y;return f=o,t.substr(o,7).toLowerCase()==="century"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Lf)),y===r&&(t.substr(o,3).toLowerCase()==="day"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(Hv)),y===r&&(t.substr(o,4).toLowerCase()==="date"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(on)),y===r&&(t.substr(o,6).toLowerCase()==="decade"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(zs)),y===r&&(t.substr(o,3).toLowerCase()==="dow"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(Bc)),y===r&&(t.substr(o,3).toLowerCase()==="doy"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(vv)),y===r&&(t.substr(o,5).toLowerCase()==="epoch"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(ep)),y===r&&(t.substr(o,4).toLowerCase()==="hour"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Rs)),y===r&&(t.substr(o,6).toLowerCase()==="isodow"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Np)),y===r&&(t.substr(o,7).toLowerCase()==="isoyear"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Wp)),y===r&&(t.substr(o,12).toLowerCase()==="microseconds"?(y=t.substr(o,12),o+=12):(y=r,rt===0&&dr(cd)),y===r&&(t.substr(o,10).toLowerCase()==="millennium"?(y=t.substr(o,10),o+=10):(y=r,rt===0&&dr(Vb)),y===r&&(t.substr(o,12).toLowerCase()==="milliseconds"?(y=t.substr(o,12),o+=12):(y=r,rt===0&&dr(_)),y===r&&(t.substr(o,6).toLowerCase()==="minute"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Ls)),y===r&&(t.substr(o,5).toLowerCase()==="month"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(pv)),y===r&&(t.substr(o,7).toLowerCase()==="quarter"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Cf)),y===r&&(t.substr(o,6).toLowerCase()==="second"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(dv)),y===r&&(t.substr(o,8).toLowerCase()==="timezone"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(Qt)),y===r&&(t.substr(o,13).toLowerCase()==="timezone_hour"?(y=t.substr(o,13),o+=13):(y=r,rt===0&&dr(Xs)),y===r&&(t.substr(o,15).toLowerCase()==="timezone_minute"?(y=t.substr(o,15),o+=15):(y=r,rt===0&&dr(ic)),y===r&&(t.substr(o,4).toLowerCase()==="week"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(op)),y===r&&(t.substr(o,4).toLowerCase()==="year"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Kb))))))))))))))))))))))),y!==r&&(Zt=f,y=y),f=y}function Xi(){var f;return(f=(function(){var y=o,S,W,vr;return t.substr(o,12).toLowerCase()==="current_date"?(S=t.substr(o,12),o+=12):(S=r,rt===0&&dr(Qu)),S===r?(o=y,y=r):(W=o,rt++,vr=Ee(),rt--,vr===r?W=void 0:(o=W,W=r),W===r?(o=y,y=r):(Zt=y,y=S="CURRENT_DATE")),y})())===r&&(f=(function(){var y=o,S,W,vr;return t.substr(o,12).toLowerCase()==="current_time"?(S=t.substr(o,12),o+=12):(S=r,rt===0&&dr(gc)),S===r?(o=y,y=r):(W=o,rt++,vr=Ee(),rt--,vr===r?W=void 0:(o=W,W=r),W===r?(o=y,y=r):(Zt=y,y=S="CURRENT_TIME")),y})())===r&&(f=ru()),f}function Du(){var f,y,S,W,vr,_r;if(f=o,y=[],S=o,(W=Fo())!==r&&(vr=fr())!==r&&(_r=jn())!==r?S=W=[W,vr,_r]:(o=S,S=r),S!==r)for(;S!==r;)y.push(S),S=o,(W=Fo())!==r&&(vr=fr())!==r&&(_r=jn())!==r?S=W=[W,vr,_r]:(o=S,S=r);else y=r;return y!==r&&(S=fr())!==r?((W=A())===r&&(W=null),W===r?(o=f,f=r):(Zt=f,f=y={as:W,symbol:"::",target:y.map($r=>$r[2])})):(o=f,f=r),f}function Hu(){var f;return(f=Tt())===r&&(f=Ai())===r&&(f=rv())===r&&(f=rc())===r&&(f=(function(){var y=o,S,W,vr,_r,$r;if((S=oo())===r&&(S=we())===r&&(S=Bo())===r&&(S=Pe()),S!==r)if(fr()!==r){if(W=o,t.charCodeAt(o)===39?(vr="'",o++):(vr=r,rt===0&&dr(pa)),vr!==r){for(_r=[],$r=_i();$r!==r;)_r.push($r),$r=_i();_r===r?(o=W,W=r):(t.charCodeAt(o)===39?($r="'",o++):($r=r,rt===0&&dr(pa)),$r===r?(o=W,W=r):W=vr=[vr,_r,$r])}else o=W,W=r;W===r?(o=y,y=r):(Zt=y,at=W,S={type:S.toLowerCase(),value:at[1].join("")},y=S)}else o=y,y=r;else o=y,y=r;var at;if(y===r)if(y=o,(S=oo())===r&&(S=we())===r&&(S=Bo())===r&&(S=Pe()),S!==r)if(fr()!==r){if(W=o,t.charCodeAt(o)===34?(vr='"',o++):(vr=r,rt===0&&dr(f0)),vr!==r){for(_r=[],$r=ga();$r!==r;)_r.push($r),$r=ga();_r===r?(o=W,W=r):(t.charCodeAt(o)===34?($r='"',o++):($r=r,rt===0&&dr(f0)),$r===r?(o=W,W=r):W=vr=[vr,_r,$r])}else o=W,W=r;W===r?(o=y,y=r):(Zt=y,S=(function(St,Kt){return{type:St.toLowerCase(),value:Kt[1].join("")}})(S,W),y=S)}else o=y,y=r;else o=y,y=r;return y})())===r&&(f=vl()),f}function vl(){var f,y;return f=o,dc()!==r&&fr()!==r&&Dr()!==r&&fr()!==r?((y=gn())===r&&(y=null),y!==r&&fr()!==r&&Xr()!==r?(Zt=f,f=(function(S,W){return{expr_list:W||{type:"origin",value:""},type:"array",keyword:"array",brackets:!0}})(0,y)):(o=f,f=r)):(o=f,f=r),f}function rc(){var f,y;return f=o,(y=_c())!==r&&(Zt=f,y={type:"null",value:null}),f=y}function Ei(){var f,y;return f=o,(y=(function(){var S=o,W,vr,_r;return t.substr(o,8).toLowerCase()==="not null"?(W=t.substr(o,8),o+=8):(W=r,rt===0&&dr(Zb)),W===r?(o=S,S=r):(vr=o,rt++,_r=Ee(),rt--,_r===r?vr=void 0:(o=vr,vr=r),vr===r?(o=S,S=r):S=W=[W,vr]),S})())!==r&&(Zt=f,y={type:"not null",value:"not null"}),f=y}function rv(){var f,y;return f=o,(y=(function(){var S=o,W,vr,_r;return t.substr(o,4).toLowerCase()==="true"?(W=t.substr(o,4),o+=4):(W=r,rt===0&&dr(yv)),W===r?(o=S,S=r):(vr=o,rt++,_r=Ee(),rt--,_r===r?vr=void 0:(o=vr,vr=r),vr===r?(o=S,S=r):S=W=[W,vr]),S})())!==r&&(Zt=f,y={type:"bool",value:!0}),(f=y)===r&&(f=o,(y=(function(){var S=o,W,vr,_r;return t.substr(o,5).toLowerCase()==="false"?(W=t.substr(o,5),o+=5):(W=r,rt===0&&dr(Jb)),W===r?(o=S,S=r):(vr=o,rt++,_r=Ee(),rt--,_r===r?vr=void 0:(o=vr,vr=r),vr===r?(o=S,S=r):S=W=[W,vr]),S})())!==r&&(Zt=f,y={type:"bool",value:!1}),f=y),f}function Tt(){var f,y,S,W,vr,_r,$r,at,St;if(f=o,y=o,t.charCodeAt(o)===39?(S="'",o++):(S=r,rt===0&&dr(pa)),S!==r){for(W=[],vr=_i();vr!==r;)W.push(vr),vr=_i();W===r?(o=y,y=r):(t.charCodeAt(o)===39?(vr="'",o++):(vr=r,rt===0&&dr(pa)),vr===r?(o=y,y=r):y=S=[S,W,vr])}else o=y,y=r;if(y!==r){if(S=[],_p.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Yv)),W!==r)for(;W!==r;)S.push(W),_p.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Yv));else S=r;if(S!==r)if((W=fr())!==r){if(vr=o,t.charCodeAt(o)===39?(_r="'",o++):(_r=r,rt===0&&dr(pa)),_r!==r){for($r=[],at=_i();at!==r;)$r.push(at),at=_i();$r===r?(o=vr,vr=r):(t.charCodeAt(o)===39?(at="'",o++):(at=r,rt===0&&dr(pa)),at===r?(o=vr,vr=r):vr=_r=[_r,$r,at])}else o=vr,vr=r;vr===r?(o=f,f=r):(Zt=f,St=vr,f=y={type:"single_quote_string",value:`${y[1].join("")}${St[1].join("")}`})}else o=f,f=r;else o=f,f=r}else o=f,f=r;if(f===r){if(f=o,y=o,t.charCodeAt(o)===39?(S="'",o++):(S=r,rt===0&&dr(pa)),S!==r){for(W=[],vr=_i();vr!==r;)W.push(vr),vr=_i();W===r?(o=y,y=r):(t.charCodeAt(o)===39?(vr="'",o++):(vr=r,rt===0&&dr(pa)),vr===r?(o=y,y=r):y=S=[S,W,vr])}else o=y,y=r;y!==r&&(Zt=f,y=(function(Kt){return{type:"single_quote_string",value:Kt[1].join("")}})(y)),(f=y)===r&&(f=Rf())}return f}function Rf(){var f,y,S,W,vr;if(f=o,y=o,t.charCodeAt(o)===34?(S='"',o++):(S=r,rt===0&&dr(f0)),S!==r){for(W=[],vr=ga();vr!==r;)W.push(vr),vr=ga();W===r?(o=y,y=r):(t.charCodeAt(o)===34?(vr='"',o++):(vr=r,rt===0&&dr(f0)),vr===r?(o=y,y=r):y=S=[S,W,vr])}else o=y,y=r;return y===r?(o=f,f=r):(S=o,rt++,W=pi(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y={type:"double_quote_string",value:y[1].join("")})),f}function ga(){var f;return Lv.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(Wv)),f===r&&(f=Nc()),f}function _i(){var f;return zb.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(wf)),f===r&&(f=Nc()),f}function Nc(){var f,y,S,W,vr,_r,$r,at,St,Kt;return f=o,t.substr(o,2)==="\\'"?(y="\\'",o+=2):(y=r,rt===0&&dr(qv)),y!==r&&(Zt=f,y="\\'"),(f=y)===r&&(f=o,t.substr(o,2)==='\\"'?(y='\\"',o+=2):(y=r,rt===0&&dr(Cv)),y!==r&&(Zt=f,y='\\"'),(f=y)===r&&(f=o,t.substr(o,2)==="\\\\"?(y="\\\\",o+=2):(y=r,rt===0&&dr(rb)),y!==r&&(Zt=f,y="\\\\"),(f=y)===r&&(f=o,t.substr(o,2)==="\\/"?(y="\\/",o+=2):(y=r,rt===0&&dr(tb)),y!==r&&(Zt=f,y="\\/"),(f=y)===r&&(f=o,t.substr(o,2)==="\\b"?(y="\\b",o+=2):(y=r,rt===0&&dr(I)),y!==r&&(Zt=f,y="\b"),(f=y)===r&&(f=o,t.substr(o,2)==="\\f"?(y="\\f",o+=2):(y=r,rt===0&&dr(us)),y!==r&&(Zt=f,y="\f"),(f=y)===r&&(f=o,t.substr(o,2)==="\\n"?(y="\\n",o+=2):(y=r,rt===0&&dr(Sb)),y!==r&&(Zt=f,y=` +`),(f=y)===r&&(f=o,t.substr(o,2)==="\\r"?(y="\\r",o+=2):(y=r,rt===0&&dr(xl)),y!==r&&(Zt=f,y="\r"),(f=y)===r&&(f=o,t.substr(o,2)==="\\t"?(y="\\t",o+=2):(y=r,rt===0&&dr(nb)),y!==r&&(Zt=f,y=" "),(f=y)===r&&(f=o,t.substr(o,2)==="\\u"?(y="\\u",o+=2):(y=r,rt===0&&dr(zt)),y!==r&&(S=Si())!==r&&(W=Si())!==r&&(vr=Si())!==r&&(_r=Si())!==r?(Zt=f,$r=S,at=W,St=vr,Kt=_r,f=y=String.fromCharCode(parseInt("0x"+$r+at+St+Kt))):(o=f,f=r),f===r&&(f=o,t.charCodeAt(o)===92?(y="\\",o++):(y=r,rt===0&&dr($s)),y!==r&&(Zt=f,y="\\"),(f=y)===r&&(f=o,t.substr(o,2)==="''"?(y="''",o+=2):(y=r,rt===0&&dr(ja)),y!==r&&(Zt=f,y="''"),f=y))))))))))),f}function Ai(){var f,y,S;return f=o,(y=(function(){var W=o,vr,_r,$r;return(vr=tc())===r&&(vr=null),vr!==r&&(_r=Yf())!==r&&($r=sf())!==r?(Zt=W,W=vr={type:"bigint",value:(vr||"")+_r+$r}):(o=W,W=r),W===r&&(W=o,(vr=tc())===r&&(vr=null),vr!==r&&(_r=Yf())!==r?(Zt=W,vr=(function(at,St){let Kt=(at||"")+St;return at&&m(at)?{type:"bigint",value:Kt}:parseFloat(Kt).toFixed(St.length-1)})(vr,_r),W=vr):(o=W,W=r),W===r&&(W=o,(vr=tc())!==r&&(_r=sf())!==r?(Zt=W,vr=(function(at,St){return{type:"bigint",value:at+St}})(vr,_r),W=vr):(o=W,W=r),W===r&&(W=o,(vr=tc())!==r&&(Zt=W,vr=(function(at){return m(at)?{type:"bigint",value:at}:parseFloat(at)})(vr)),W=vr))),W})())!==r&&(Zt=f,y=(S=y)&&S.type==="bigint"?S:{type:"number",value:S}),f=y}function tc(){var f,y,S;return(f=mv())===r&&(f=pc())===r&&(f=o,t.charCodeAt(o)===45?(y="-",o++):(y=r,rt===0&&dr(Rb)),y===r&&(t.charCodeAt(o)===43?(y="+",o++):(y=r,rt===0&&dr(ac))),y!==r&&(S=mv())!==r?(Zt=f,f=y+=S):(o=f,f=r),f===r&&(f=o,t.charCodeAt(o)===45?(y="-",o++):(y=r,rt===0&&dr(Rb)),y===r&&(t.charCodeAt(o)===43?(y="+",o++):(y=r,rt===0&&dr(ac))),y!==r&&(S=pc())!==r?(Zt=f,f=y=(function(W,vr){return W+vr})(y,S)):(o=f,f=r))),f}function Yf(){var f,y,S;return f=o,t.charCodeAt(o)===46?(y=".",o++):(y=r,rt===0&&dr(is)),y!==r&&(S=mv())!==r?(Zt=f,f=y="."+S):(o=f,f=r),f}function sf(){var f,y,S;return f=o,(y=(function(){var W=o,vr,_r;X0.test(t.charAt(o))?(vr=t.charAt(o),o++):(vr=r,rt===0&&dr(p0)),vr===r?(o=W,W=r):(up.test(t.charAt(o))?(_r=t.charAt(o),o++):(_r=r,rt===0&&dr(xb)),_r===r&&(_r=null),_r===r?(o=W,W=r):(Zt=W,W=vr+=($r=_r)===null?"":$r));var $r;return W})())!==r&&(S=mv())!==r?(Zt=f,f=y+=S):(o=f,f=r),f}function mv(){var f,y,S;if(f=o,y=[],(S=pc())!==r)for(;S!==r;)y.push(S),S=pc();else y=r;return y!==r&&(Zt=f,y=y.join("")),f=y}function pc(){var f;return el.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(Ti)),f}function Si(){var f;return wv.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(yf)),f}function _c(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="null"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Zc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Tv(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="default"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(yc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function ef(){var f,y,S,W;return f=o,t.substr(o,2).toLowerCase()==="to"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(r0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function ip(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="show"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(hv)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Uu(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="drop"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(h)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="DROP")),f}function Sc(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="alter"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Xl)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function of(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="select"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(d0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Xc(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="update"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Bf)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function qa(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="create"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(jt)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function qo(){var f,y,S,W;return f=o,t.substr(o,9).toLowerCase()==="temporary"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(Us)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Oc(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="temp"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(ol)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Yo(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="delete"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(sb)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Xo(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="insert"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(eb)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function $l(){var f,y,S,W;return f=o,t.substr(o,9).toLowerCase()==="recursive"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(p)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="RECURSIVE")),f}function m0(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="replace"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(ns)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function G0(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="rename"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Hc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function va(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="ignore"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Ip)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Nf(){var f,y,S,W;return f=o,t.substr(o,9).toLowerCase()==="partition"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(Ub)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="PARTITION")),f}function Xu(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="into"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Ft)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function ot(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="from"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(xs)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Xv(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="set"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(hb)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="SET")),f}function R(){var f,y,S,W;return f=o,t.substr(o,2).toLowerCase()==="as"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(Li)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function B(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="table"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Fc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="TABLE")),f}function cr(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="schema"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Ae)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="SCHEMA")),f}function Er(){var f,y,S,W;return f=o,t.substr(o,2).toLowerCase()==="on"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(nl)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function vt(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="join"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Kn)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function it(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="outer"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(zi)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Et(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="values"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(hs)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function $t(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="using"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Yi)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function en(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="with"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(oc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function hn(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="group"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(L0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function ds(){var f,y,S,W;return f=o,t.substr(o,2).toLowerCase()==="by"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(Bn)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Ns(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="order"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Qb)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Fs(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="asc"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(Wi)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="ASC")),f}function ue(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="desc"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(wa)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="DESC")),f}function ee(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="all"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(Oa)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="ALL")),f}function ie(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="distinct"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(ti)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="DISTINCT")),f}function ro(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="between"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(We)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="BETWEEN")),f}function $e(){var f,y,S,W;return f=o,t.substr(o,2).toLowerCase()==="in"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(Hb)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="IN")),f}function Gs(){var f,y,S,W;return f=o,t.substr(o,2).toLowerCase()==="is"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(ob)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="IS")),f}function iu(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="like"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(V0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="LIKE")),f}function Oo(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="ilike"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(hf)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="ILIKE")),f}function wu(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="exists"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Ef)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="EXISTS")),f}function Ea(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="not"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(zc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="NOT")),f}function Do(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="and"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(K0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="AND")),f}function Ka(){var f,y,S,W;return f=o,t.substr(o,2).toLowerCase()==="or"?(y=t.substr(o,2),o+=2):(y=r,rt===0&&dr(Af)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="OR")),f}function dc(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="array"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(El)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="ARRAY")),f}function _f(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="extract"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(D0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="EXTRACT")),f}function La(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="case"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(mc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Db(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="when"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Tc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Wf(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="else"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(y0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function Wo(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="end"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(ua)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):f=y=[y,S]),f}function $b(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="cast"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(bi)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="CAST")),f}function pu(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="char"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(lc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="CHAR")),f}function fu(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="varchar"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Ic)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="VARCHAR")),f}function Vu(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="numeric"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(ab)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="NUMERIC")),f}function ra(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="decimal"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(J0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="DECIMAL")),f}function fd(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="unsigned"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(Ul)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="UNSIGNED")),f}function w(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="int"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(aa)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="INT")),f}function G(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="integer"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(If)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="INTEGER")),f}function z(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="smallint"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(ib)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="SMALLINT")),f}function g(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="serial"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(fa)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="SERIAL")),f}function Gr(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="tinyint"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Zi)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="TINYINT")),f}function Vr(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="tinytext"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(rf)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="TINYTEXT")),f}function Qr(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="text"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Ii)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="TEXT")),f}function Pt(){var f,y,S,W;return f=o,t.substr(o,10).toLowerCase()==="mediumtext"?(y=t.substr(o,10),o+=10):(y=r,rt===0&&dr(Ge)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="MEDIUMTEXT")),f}function wn(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="longtext"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr($0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="LONGTEXT")),f}function Rn(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="bigint"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(gf)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="BIGINT")),f}function An(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="enum"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Zl)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="ENUM")),f}function Mn(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="float"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(Xa)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="FLOAT")),f}function as(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="double"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(cc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="DOUBLE")),f}function cs(){var f,y,S,W;return f=o,t.substr(o,9).toLowerCase()==="bigserial"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(h0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="BIGSERIAL")),f}function _s(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="real"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(n)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="REAL")),f}function we(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="date"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(on)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="DATE")),f}function Pe(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="datetime"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(st)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="DATETIME")),f}function jr(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="rows"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(Cl)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="ROWS")),f}function oo(){var f,y,S,W;return f=o,t.substr(o,4).toLowerCase()==="time"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(gi)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="TIME")),f}function Bo(){var f,y,S,W;return f=o,t.substr(o,9).toLowerCase()==="timestamp"?(y=t.substr(o,9),o+=9):(y=r,rt===0&&dr(xa)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="TIMESTAMP")),f}function No(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="truncate"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(Ra)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="TRUNCATE")),f}function lu(){var f,y,S,W;return f=o,t.substr(o,8).toLowerCase()==="interval"?(y=t.substr(o,8),o+=8):(y=r,rt===0&&dr(P0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="INTERVAL")),f}function ru(){var f,y,S,W;return f=o,t.substr(o,17).toLowerCase()==="current_timestamp"?(y=t.substr(o,17),o+=17):(y=r,rt===0&&dr(al)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="CURRENT_TIMESTAMP")),f}function Me(){var f,y,S,W;return f=o,t.substr(o,12).toLowerCase()==="current_user"?(y=t.substr(o,12),o+=12):(y=r,rt===0&&dr(H0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="CURRENT_USER")),f}function _u(){var f,y,S,W;return f=o,t.substr(o,12).toLowerCase()==="session_user"?(y=t.substr(o,12),o+=12):(y=r,rt===0&&dr(bf)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="SESSION_USER")),f}function mo(){var f;return t.charCodeAt(o)===36?(f="$",o++):(f=r,rt===0&&dr(yp)),f}function ho(){var f;return t.substr(o,2)==="$$"?(f="$$",o+=2):(f=r,rt===0&&dr(vi)),f}function Mo(){var f;return(f=(function(){var y;return t.substr(o,2)==="@@"?(y="@@",o+=2):(y=r,rt===0&&dr(Ql)),y})())===r&&(f=(function(){var y;return t.charCodeAt(o)===64?(y="@",o++):(y=r,rt===0&&dr(dn)),y})())===r&&(f=mo())===r&&(f=mo()),f}function Fo(){var f;return t.substr(o,2)==="::"?(f="::",o+=2):(f=r,rt===0&&dr(lt)),f}function Gu(){var f;return t.charCodeAt(o)===61?(f="=",o++):(f=r,rt===0&&dr(zn)),f}function Ko(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="add"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(Eu)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="ADD")),f}function Wr(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="column"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(fi)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="COLUMN")),f}function Aa(){var f,y,S,W;return f=o,t.substr(o,5).toLowerCase()==="index"?(y=t.substr(o,5),o+=5):(y=r,rt===0&&dr(ia)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="INDEX")),f}function Lc(){var f,y,S,W;return f=o,t.substr(o,3).toLowerCase()==="key"?(y=t.substr(o,3),o+=3):(y=r,rt===0&&dr(s0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="KEY")),f}function Fu(){var f,y,S,W;return f=o,t.substr(o,6).toLowerCase()==="unique"?(y=t.substr(o,6),o+=6):(y=r,rt===0&&dr(Dc)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="UNIQUE")),f}function Pi(){var f,y,S,W;return f=o,t.substr(o,7).toLowerCase()==="comment"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(nf)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="COMMENT")),f}function F0(){var f,y,S,W;return f=o,t.substr(o,10).toLowerCase()==="constraint"?(y=t.substr(o,10),o+=10):(y=r,rt===0&&dr(Wl)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="CONSTRAINT")),f}function Zu(){var f,y,S,W;return f=o,t.substr(o,12).toLowerCase()==="concurrently"?(y=t.substr(o,12),o+=12):(y=r,rt===0&&dr(E0)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="CONCURRENTLY")),f}function Hr(){var f,y,S,W;return f=o,t.substr(o,10).toLowerCase()==="references"?(y=t.substr(o,10),o+=10):(y=r,rt===0&&dr(kl)),y===r?(o=f,f=r):(S=o,rt++,W=Ee(),rt--,W===r?S=void 0:(o=S,S=r),S===r?(o=f,f=r):(Zt=f,f=y="REFERENCES")),f}function pi(){var f;return t.charCodeAt(o)===46?(f=".",o++):(f=r,rt===0&&dr(is)),f}function L(){var f;return t.charCodeAt(o)===44?(f=",",o++):(f=r,rt===0&&dr(zu)),f}function M(){var f;return t.charCodeAt(o)===42?(f="*",o++):(f=r,rt===0&&dr(Ff)),f}function q(){var f;return t.charCodeAt(o)===40?(f="(",o++):(f=r,rt===0&&dr(q0)),f}function rr(){var f;return t.charCodeAt(o)===41?(f=")",o++):(f=r,rt===0&&dr(df)),f}function Dr(){var f;return t.charCodeAt(o)===91?(f="[",o++):(f=r,rt===0&&dr(Yu)),f}function Xr(){var f;return t.charCodeAt(o)===93?(f="]",o++):(f=r,rt===0&&dr(lb)),f}function Jr(){var f;return t.charCodeAt(o)===59?(f=";",o++):(f=r,rt===0&&dr(c0)),f}function Mt(){var f;return t.substr(o,2)==="->"?(f="->",o+=2):(f=r,rt===0&&dr(Mi)),f}function nn(){var f;return t.substr(o,3)==="->>"?(f="->>",o+=3):(f=r,rt===0&&dr(ha)),f}function On(){var f;return(f=(function(){var y;return t.substr(o,2)==="||"?(y="||",o+=2):(y=r,rt===0&&dr(rp)),y})())===r&&(f=(function(){var y;return t.substr(o,2)==="&&"?(y="&&",o+=2):(y=r,rt===0&&dr(Ha)),y})()),f}function fr(){var f,y;for(f=[],(y=de())===r&&(y=Es());y!==r;)f.push(y),(y=de())===r&&(y=Es());return f}function os(){var f,y;if(f=[],(y=de())===r&&(y=Es()),y!==r)for(;y!==r;)f.push(y),(y=de())===r&&(y=Es());else f=r;return f}function Es(){var f;return(f=(function y(){var S=o,W,vr,_r,$r,at,St;if(t.substr(o,2)==="/*"?(W="/*",o+=2):(W=r,rt===0&&dr(ln)),W!==r){for(vr=[],_r=o,$r=o,rt++,t.substr(o,2)==="*/"?(at="*/",o+=2):(at=r,rt===0&&dr(Oe)),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=_r,_r=r):(at=o,rt++,t.substr(o,2)==="/*"?(St="/*",o+=2):(St=r,rt===0&&dr(ln)),rt--,St===r?at=void 0:(o=at,at=r),at!==r&&(St=ws())!==r?_r=$r=[$r,at,St]:(o=_r,_r=r)),_r===r&&(_r=y());_r!==r;)vr.push(_r),_r=o,$r=o,rt++,t.substr(o,2)==="*/"?(at="*/",o+=2):(at=r,rt===0&&dr(Oe)),rt--,at===r?$r=void 0:(o=$r,$r=r),$r===r?(o=_r,_r=r):(at=o,rt++,t.substr(o,2)==="/*"?(St="/*",o+=2):(St=r,rt===0&&dr(ln)),rt--,St===r?at=void 0:(o=at,at=r),at!==r&&(St=ws())!==r?_r=$r=[$r,at,St]:(o=_r,_r=r)),_r===r&&(_r=y());vr===r?(o=S,S=r):(t.substr(o,2)==="*/"?(_r="*/",o+=2):(_r=r,rt===0&&dr(Oe)),_r===r?(o=S,S=r):S=W=[W,vr,_r])}else o=S,S=r;return S})())===r&&(f=(function(){var y=o,S,W,vr,_r,$r;if(t.substr(o,2)==="--"?(S="--",o+=2):(S=r,rt===0&&dr(Di)),S!==r){for(W=[],vr=o,_r=o,rt++,$r=E(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r!==r&&($r=ws())!==r?vr=_r=[_r,$r]:(o=vr,vr=r);vr!==r;)W.push(vr),vr=o,_r=o,rt++,$r=E(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r!==r&&($r=ws())!==r?vr=_r=[_r,$r]:(o=vr,vr=r);W===r?(o=y,y=r):y=S=[S,W]}else o=y,y=r;return y})()),f}function ls(){var f,y,S,W;return f=o,(y=Pi())!==r&&fr()!==r?((S=Gu())===r&&(S=null),S!==r&&fr()!==r&&(W=Tt())!==r?(Zt=f,f=y=(function(vr,_r,$r){return{type:vr.toLowerCase(),keyword:vr.toLowerCase(),symbol:_r,value:$r}})(y,S,W)):(o=f,f=r)):(o=f,f=r),f}function ws(){var f;return t.length>o?(f=t.charAt(o),o++):(f=r,rt===0&&dr(Ya)),f}function de(){var f;return ni.test(t.charAt(o))?(f=t.charAt(o),o++):(f=r,rt===0&&dr(ui)),f}function E(){var f,y;if((f=(function(){var S=o,W;return rt++,t.length>o?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Ya)),rt--,W===r?S=void 0:(o=S,S=r),S})())===r)if(f=[],Ob.test(t.charAt(o))?(y=t.charAt(o),o++):(y=r,rt===0&&dr(jf)),y!==r)for(;y!==r;)f.push(y),Ob.test(t.charAt(o))?(y=t.charAt(o),o++):(y=r,rt===0&&dr(jf));else f=r;return f}function U(){var f,y;return f=o,Zt=o,Rt=[],r!==void 0&&fr()!==r?((y=Z())===r&&(y=(function(){var S=o,W;return(function(){var vr;return t.substr(o,6).toLowerCase()==="return"?(vr=t.substr(o,6),o+=6):(vr=r,rt===0&&dr(Va)),vr})()!==r&&fr()!==r&&(W=sr())!==r?(Zt=S,S={type:"return",expr:W}):(o=S,S=r),S})()),y===r?(o=f,f=r):(Zt=f,f={type:"proc",stmt:y,vars:Rt})):(o=f,f=r),f}function Z(){var f,y,S,W,vr,_r;return f=o,(y=In())===r&&(y=Tn()),y!==r&&fr()!==r?((S=(function(){var $r;return t.substr(o,2)===":="?($r=":=",o+=2):($r=r,rt===0&&dr(xc)),$r})())===r&&(S=Gu())===r&&(S=ef()),S!==r&&fr()!==r&&(W=sr())!==r?(Zt=f,vr=S,_r=W,f=y={type:"assign",left:y,symbol:Array.isArray(vr)?vr[0]:vr,right:_r}):(o=f,f=r)):(o=f,f=r),f}function sr(){var f;return(f=s())===r&&(f=(function(){var y=o,S,W,vr,_r;return(S=In())!==r&&fr()!==r&&(W=$n())!==r&&fr()!==r&&(vr=In())!==r&&fr()!==r&&(_r=Ws())!==r?(Zt=y,y=S={type:"join",ltable:S,rtable:vr,op:W,on:_r}):(o=y,y=r),y})())===r&&(f=xr())===r&&(f=(function(){var y=o,S;return Dr()!==r&&fr()!==r&&(S=Vt())!==r&&fr()!==r&&Xr()!==r?(Zt=y,y={type:"array",value:S}):(o=y,y=r),y})()),f}function xr(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=Sr())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=Cn())!==r&&($r=fr())!==r&&(at=Sr())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=Cn())!==r&&($r=fr())!==r&&(at=Sr())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=cv(y,S))}else o=f,f=r;return f}function Sr(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=tt())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=qn())!==r&&($r=fr())!==r&&(at=tt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=qn())!==r&&($r=fr())!==r&&(at=tt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=cv(y,S))}else o=f,f=r;return f}function tt(){var f,y,S,W,vr,_r,$r,at,St;return(f=Hu())===r&&(f=In())===r&&(f=Xt())===r&&(f=Wa())===r&&(f=o,(y=q())!==r&&(S=fr())!==r&&(W=xr())!==r&&(vr=fr())!==r&&(_r=rr())!==r?(Zt=f,(St=W).parentheses=!0,f=y=St):(o=f,f=r),f===r&&(f=o,(y=vu())===r?(o=f,f=r):(S=o,(W=pi())!==r&&(vr=fr())!==r&&(_r=vu())!==r?S=W=[W,vr,_r]:(o=S,S=r),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,$r=y,f=y=(at=S)?{type:"column_ref",table:$r,column:at[2]}:{type:"var",name:$r,prefix:null})))),f}function Ct(){var f,y,S,W,vr,_r,$r;return f=o,(y=Go())===r?(o=f,f=r):(S=o,(W=fr())!==r&&(vr=pi())!==r&&(_r=fr())!==r&&($r=Go())!==r?S=W=[W,vr,_r,$r]:(o=S,S=r),S===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(at,St){let Kt={name:[at]};return St!==null&&(Kt.schema=at,Kt.name=[St[3]]),Kt})(y,S))),f}function Xt(){var f,y,S;return f=o,(y=Ct())!==r&&fr()!==r&&q()!==r&&fr()!==r?((S=Vt())===r&&(S=null),S!==r&&fr()!==r&&rr()!==r?(Zt=f,f=y=(function(W,vr){return{type:"function",name:W,args:{type:"expr_list",value:vr},...wr()}})(y,S)):(o=f,f=r)):(o=f,f=r),f}function Vt(){var f,y,S,W,vr,_r,$r,at;if(f=o,(y=tt())!==r){for(S=[],W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=tt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);W!==r;)S.push(W),W=o,(vr=fr())!==r&&(_r=L())!==r&&($r=fr())!==r&&(at=tt())!==r?W=vr=[vr,_r,$r,at]:(o=W,W=r);S===r?(o=f,f=r):(Zt=f,f=y=x(y,S))}else o=f,f=r;return f}function In(){var f,y,S,W,vr,_r,$r;if(f=o,(y=ho())!==r){for(S=[],$i.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(ai));W!==r;)S.push(W),$i.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(ai));S!==r&&(W=ho())!==r?(Zt=f,f=y={type:"var",name:S.join(""),prefix:"$$",suffix:"$$"}):(o=f,f=r)}else o=f,f=r;if(f===r){if(f=o,(y=mo())!==r)if((S=cu())!==r)if((W=mo())!==r){for(vr=[],$i.test(t.charAt(o))?(_r=t.charAt(o),o++):(_r=r,rt===0&&dr(ai));_r!==r;)vr.push(_r),$i.test(t.charAt(o))?(_r=t.charAt(o),o++):(_r=r,rt===0&&dr(ai));vr!==r&&(_r=mo())!==r&&($r=cu())!==r?(Zt=o,((function(at,St,Kt){if(at!==Kt)return!0})(S,0,$r)?r:void 0)!==r&&mo()!==r?(Zt=f,f=y=(function(at,St,Kt){return{type:"var",name:St.join(""),prefix:`$${at}$`,suffix:`$${Kt}$`}})(S,vr,$r)):(o=f,f=r)):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;f===r&&(f=o,(y=Mo())!==r&&(S=Tn())!==r?(Zt=f,f=y=(function(at,St){return{type:"var",...St,prefix:at}})(y,S)):(o=f,f=r))}return f}function Tn(){var f,y,S,W,vr;return f=o,t.charCodeAt(o)===34?(y='"',o++):(y=r,rt===0&&dr(f0)),y===r&&(y=null),y!==r&&(S=vu())!==r&&(W=(function(){var _r=o,$r=[],at=o,St,Kt;for(t.charCodeAt(o)===46?(St=".",o++):(St=r,rt===0&&dr(is)),St!==r&&(Kt=vu())!==r?at=St=[St,Kt]:(o=at,at=r);at!==r;)$r.push(at),at=o,t.charCodeAt(o)===46?(St=".",o++):(St=r,rt===0&&dr(is)),St!==r&&(Kt=vu())!==r?at=St=[St,Kt]:(o=at,at=r);return $r!==r&&(Zt=_r,$r=(function(sn){let Nn=[];for(let Xn=0;Xn<sn.length;Xn++)Nn.push(sn[Xn][1]);return Nn})($r)),_r=$r})())!==r?(t.charCodeAt(o)===34?(vr='"',o++):(vr=r,rt===0&&dr(f0)),vr===r&&(vr=null),vr===r?(o=f,f=r):(Zt=f,f=y=(function(_r,$r,at,St){if(_r&&!St||!_r&&St)throw Error("double quoted not match");return Rt.push($r),{type:"var",name:$r,members:at,quoted:_r&&St?'"':null,prefix:null}})(y,S,W,vr))):(o=f,f=r),f===r&&(f=o,(y=Ai())!==r&&(Zt=f,y={type:"var",name:y.value,members:[],quoted:null,prefix:null}),f=y),f}function jn(){var f;return(f=(function(){var y=o,S,W;(S=H())===r&&(S=d()),S!==r&&fr()!==r&&Dr()!==r&&fr()!==r&&(W=Xr())!==r&&fr()!==r&&Dr()!==r&&fr()!==r&&Xr()!==r?(Zt=y,vr=S,S={...vr,array:{dimension:2}},y=S):(o=y,y=r);var vr;return y===r&&(y=o,(S=H())===r&&(S=d()),S!==r&&fr()!==r&&Dr()!==r&&fr()!==r?((W=Ai())===r&&(W=null),W!==r&&fr()!==r&&Xr()!==r?(Zt=y,S=(function(_r,$r){return{..._r,array:{dimension:1,length:[$r]}}})(S,W),y=S):(o=y,y=r)):(o=y,y=r),y===r&&(y=o,(S=H())===r&&(S=d()),S!==r&&fr()!==r&&dc()!==r?(Zt=y,S=(function(_r){return{..._r,array:{keyword:"array"}}})(S),y=S):(o=y,y=r))),y})())===r&&(f=d())===r&&(f=H())===r&&(f=(function(){var y=o,S,W,vr;if((S=we())===r&&(S=Pe()),S!==r)if(fr()!==r)if(q()!==r)if(fr()!==r){if(W=[],el.test(t.charAt(o))?(vr=t.charAt(o),o++):(vr=r,rt===0&&dr(Ti)),vr!==r)for(;vr!==r;)W.push(vr),el.test(t.charAt(o))?(vr=t.charAt(o),o++):(vr=r,rt===0&&dr(Ti));else W=r;W!==r&&(vr=fr())!==r&&rr()!==r?(Zt=y,S={dataType:S,length:parseInt(W.join(""),10),parentheses:!0},y=S):(o=y,y=r)}else o=y,y=r;else o=y,y=r;else o=y,y=r;else o=y,y=r;return y===r&&(y=o,(S=we())===r&&(S=Pe()),S!==r&&(Zt=y,S=ii(S)),(y=S)===r&&(y=(function(){var _r=o,$r,at,St,Kt,sn;if(($r=oo())===r&&($r=Bo()),$r!==r)if(fr()!==r)if((at=q())!==r)if(fr()!==r){if(St=[],el.test(t.charAt(o))?(Kt=t.charAt(o),o++):(Kt=r,rt===0&&dr(Ti)),Kt!==r)for(;Kt!==r;)St.push(Kt),el.test(t.charAt(o))?(Kt=t.charAt(o),o++):(Kt=r,rt===0&&dr(Ti));else St=r;St!==r&&(Kt=fr())!==r&&rr()!==r&&fr()!==r?((sn=X())===r&&(sn=null),sn===r?(o=_r,_r=r):(Zt=_r,$r=(function(Nn,Xn,Gn){return{dataType:Nn,length:parseInt(Xn.join(""),10),parentheses:!0,suffix:Gn}})($r,St,sn),_r=$r)):(o=_r,_r=r)}else o=_r,_r=r;else o=_r,_r=r;else o=_r,_r=r;else o=_r,_r=r;return _r===r&&(_r=o,($r=oo())===r&&($r=Bo()),$r!==r&&fr()!==r?((at=X())===r&&(at=null),at===r?(o=_r,_r=r):(Zt=_r,$r=(function(Nn,Xn){return{dataType:Nn,suffix:Xn}})($r,at),_r=$r)):(o=_r,_r=r)),_r})())),y})())===r&&(f=(function(){var y=o,S;return(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,4).toLowerCase()==="json"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(Tl)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="JSON")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,5).toLowerCase()==="jsonb"?(vr=t.substr(o,5),o+=5):(vr=r,rt===0&&dr(Ci)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="JSONB")),W})()),S!==r&&(Zt=y,S=ii(S)),y=S})())===r&&(f=(function(){var y=o,S;return(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,8).toLowerCase()==="geometry"?(vr=t.substr(o,8),o+=8):(vr=r,rt===0&&dr(Q0)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="GEOMETRY")),W})())!==r&&(Zt=y,S={dataType:S}),y=S})())===r&&(f=(function(){var y=o,S;return(S=Vr())===r&&(S=Qr())===r&&(S=Pt())===r&&(S=wn()),S!==r&&Dr()!==r&&fr()!==r&&Xr()!==r?(Zt=y,y=S={dataType:S+"[]"}):(o=y,y=r),y===r&&(y=o,(S=Vr())===r&&(S=Qr())===r&&(S=Pt())===r&&(S=wn()),S!==r&&(Zt=y,S=(function(W){return{dataType:W}})(S)),y=S),y})())===r&&(f=(function(){var y=o,S;return(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,4).toLowerCase()==="uuid"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(Nt)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="UUID")),W})())!==r&&(Zt=y,S={dataType:S}),y=S})())===r&&(f=(function(){var y=o,S;return(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,4).toLowerCase()==="bool"?(vr=t.substr(o,4),o+=4):(vr=r,rt===0&&dr(Yc)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="BOOL")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,7).toLowerCase()==="boolean"?(vr=t.substr(o,7),o+=7):(vr=r,rt===0&&dr(Z0)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="BOOLEAN")),W})()),S!==r&&(Zt=y,S=ll(S)),y=S})())===r&&(f=(function(){var y=o,S,W;(S=An())!==r&&fr()!==r&&(W=fn())!==r?(Zt=y,vr=S,(_r=W).parentheses=!0,y=S={dataType:vr,expr:_r}):(o=y,y=r);var vr,_r;return y})())===r&&(f=(function(){var y=o,S;return(S=g())===r&&(S=lu()),S!==r&&(Zt=y,S=ii(S)),y=S})())===r&&(f=(function(){var y=o,S;return t.substr(o,5).toLowerCase()==="bytea"?(S=t.substr(o,5),o+=5):(S=r,rt===0&&dr(cl)),S!==r&&(Zt=y,S={dataType:"BYTEA"}),y=S})())===r&&(f=(function(){var y=o,S;return(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,3).toLowerCase()==="oid"?(vr=t.substr(o,3),o+=3):(vr=r,rt===0&&dr(ju)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="OID")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,8).toLowerCase()==="regclass"?(vr=t.substr(o,8),o+=8):(vr=r,rt===0&&dr(Il)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGCLASS")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,12).toLowerCase()==="regcollation"?(vr=t.substr(o,12),o+=12):(vr=r,rt===0&&dr(Wc)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGCOLLATION")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,9).toLowerCase()==="regconfig"?(vr=t.substr(o,9),o+=9):(vr=r,rt===0&&dr(Kr)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGCONFIG")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,13).toLowerCase()==="regdictionary"?(vr=t.substr(o,13),o+=13):(vr=r,rt===0&&dr(Mb)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGDICTIONARY")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,12).toLowerCase()==="regnamespace"?(vr=t.substr(o,12),o+=12):(vr=r,rt===0&&dr(fc)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGNAMESPACE")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,7).toLowerCase()==="regoper"?(vr=t.substr(o,7),o+=7):(vr=r,rt===0&&dr(qi)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGOPER")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,11).toLowerCase()==="regoperator"?(vr=t.substr(o,11),o+=11):(vr=r,rt===0&&dr(Ji)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGOPERATOR")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,7).toLowerCase()==="regproc"?(vr=t.substr(o,7),o+=7):(vr=r,rt===0&&dr(Ri)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGPROC")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,12).toLowerCase()==="regprocedure"?(vr=t.substr(o,12),o+=12):(vr=r,rt===0&&dr(qu)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGPROCEDURE")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,7).toLowerCase()==="regrole"?(vr=t.substr(o,7),o+=7):(vr=r,rt===0&&dr(Se)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGROLE")),W})())===r&&(S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,7).toLowerCase()==="regtype"?(vr=t.substr(o,7),o+=7):(vr=r,rt===0&&dr(tf)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="REGTYPE")),W})()),S!==r&&(Zt=y,S=ll(S)),y=S})())===r&&(f=(function(){var y=o,S;return t.substr(o,6).toLowerCase()==="record"?(S=t.substr(o,6),o+=6):(S=r,rt===0&&dr(nt)),S!==r&&(Zt=y,S={dataType:"RECORD"}),y=S})())===r&&(f=(function(){var y=o,S;return(S=vu())===r?(o=y,y=r):(Zt=o,((function(W){return rn.has(W)})(S)?void 0:r)===r?(o=y,y=r):(Zt=y,S=(function(W){return{dataType:W}})(S),y=S)),y})()),f}function ts(){var f,y;return f=o,(function(){var S,W,vr,_r;return S=o,t.substr(o,9).toLowerCase()==="character"?(W=t.substr(o,9),o+=9):(W=r,rt===0&&dr(yb)),W===r?(o=S,S=r):(vr=o,rt++,_r=Ee(),rt--,_r===r?vr=void 0:(o=vr,vr=r),vr===r?(o=S,S=r):(Zt=S,S=W="CHARACTER")),S})()!==r&&fr()!==r?(t.substr(o,7).toLowerCase()==="varying"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(a)),y===r&&(y=null),y===r?(o=f,f=r):(Zt=f,f="CHARACTER VARYING")):(o=f,f=r),f}function d(){var f,y,S,W;if(f=o,(y=pu())===r&&(y=fu())===r&&(y=ts()),y!==r)if(fr()!==r)if(q()!==r)if(fr()!==r){if(S=[],el.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Ti)),W!==r)for(;W!==r;)S.push(W),el.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Ti));else S=r;S!==r&&(W=fr())!==r&&rr()!==r?(Zt=f,f=y={dataType:y,length:parseInt(S.join(""),10),parentheses:!0}):(o=f,f=r)}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;return f===r&&(f=o,(y=pu())===r&&(y=ts())===r&&(y=fu()),y!==r&&(Zt=f,y=(function(vr){return{dataType:vr}})(y)),f=y),f}function N(){var f,y,S;return f=o,(y=fd())===r&&(y=null),y!==r&&fr()!==r?((S=(function(){var W,vr,_r,$r;return W=o,t.substr(o,8).toLowerCase()==="zerofill"?(vr=t.substr(o,8),o+=8):(vr=r,rt===0&&dr(Tf)),vr===r?(o=W,W=r):(_r=o,rt++,$r=Ee(),rt--,$r===r?_r=void 0:(o=_r,_r=r),_r===r?(o=W,W=r):(Zt=W,W=vr="ZEROFILL")),W})())===r&&(S=null),S===r?(o=f,f=r):(Zt=f,f=y=(function(W,vr){let _r=[];return W&&_r.push(W),vr&&_r.push(vr),_r})(y,S))):(o=f,f=r),f}function H(){var f,y,S,W,vr,_r,$r,at,St,Kt,sn,Nn,Xn,Gn,fs,Ts;if(f=o,(y=Vu())===r&&(y=ra())===r&&(y=w())===r&&(y=G())===r&&(y=z())===r&&(y=Gr())===r&&(y=Rn())===r&&(y=Mn())===r&&(y=o,(S=as())!==r&&(W=fr())!==r?(t.substr(o,9).toLowerCase()==="precision"?(vr=t.substr(o,9),o+=9):(vr=r,rt===0&&dr(an)),vr===r?(o=y,y=r):y=S=[S,W,vr]):(o=y,y=r),y===r&&(y=as())===r&&(y=g())===r&&(y=cs())===r&&(y=_s())),y!==r)if((S=fr())!==r)if((W=q())!==r)if((vr=fr())!==r){if(_r=[],el.test(t.charAt(o))?($r=t.charAt(o),o++):($r=r,rt===0&&dr(Ti)),$r!==r)for(;$r!==r;)_r.push($r),el.test(t.charAt(o))?($r=t.charAt(o),o++):($r=r,rt===0&&dr(Ti));else _r=r;if(_r!==r)if(($r=fr())!==r){if(at=o,(St=L())!==r)if((Kt=fr())!==r){if(sn=[],el.test(t.charAt(o))?(Nn=t.charAt(o),o++):(Nn=r,rt===0&&dr(Ti)),Nn!==r)for(;Nn!==r;)sn.push(Nn),el.test(t.charAt(o))?(Nn=t.charAt(o),o++):(Nn=r,rt===0&&dr(Ti));else sn=r;sn===r?(o=at,at=r):at=St=[St,Kt,sn]}else o=at,at=r;else o=at,at=r;at===r&&(at=null),at!==r&&(St=fr())!==r&&(Kt=rr())!==r&&(sn=fr())!==r?((Nn=N())===r&&(Nn=null),Nn===r?(o=f,f=r):(Zt=f,Xn=y,Gn=_r,fs=at,Ts=Nn,f=y={dataType:Array.isArray(Xn)?`${Xn[0].toUpperCase()} ${Xn[2].toUpperCase()}`:Xn,length:parseInt(Gn.join(""),10),scale:fs&&parseInt(fs[2].join(""),10),parentheses:!0,suffix:Ts})):(o=f,f=r)}else o=f,f=r;else o=f,f=r}else o=f,f=r;else o=f,f=r;else o=f,f=r;else o=f,f=r;if(f===r){if(f=o,(y=Vu())===r&&(y=ra())===r&&(y=w())===r&&(y=G())===r&&(y=z())===r&&(y=Gr())===r&&(y=Rn())===r&&(y=Mn())===r&&(y=o,(S=as())!==r&&(W=fr())!==r?(t.substr(o,9).toLowerCase()==="precision"?(vr=t.substr(o,9),o+=9):(vr=r,rt===0&&dr(an)),vr===r?(o=y,y=r):y=S=[S,W,vr]):(o=y,y=r),y===r&&(y=as())===r&&(y=g())===r&&(y=cs())===r&&(y=_s())),y!==r){if(S=[],el.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Ti)),W!==r)for(;W!==r;)S.push(W),el.test(t.charAt(o))?(W=t.charAt(o),o++):(W=r,rt===0&&dr(Ti));else S=r;S!==r&&(W=fr())!==r?((vr=N())===r&&(vr=null),vr===r?(o=f,f=r):(Zt=f,f=y=(function(Ms,Vs,se){return{dataType:Array.isArray(Ms)?`${Ms[0].toUpperCase()} ${Ms[2].toUpperCase()}`:Ms,length:parseInt(Vs.join(""),10),suffix:se}})(y,S,vr))):(o=f,f=r)}else o=f,f=r;f===r&&(f=o,(y=Vu())===r&&(y=ra())===r&&(y=w())===r&&(y=G())===r&&(y=z())===r&&(y=Gr())===r&&(y=Rn())===r&&(y=Mn())===r&&(y=o,(S=as())!==r&&(W=fr())!==r?(t.substr(o,9).toLowerCase()==="precision"?(vr=t.substr(o,9),o+=9):(vr=r,rt===0&&dr(an)),vr===r?(o=y,y=r):y=S=[S,W,vr]):(o=y,y=r),y===r&&(y=as())===r&&(y=g())===r&&(y=cs())===r&&(y=_s())),y!==r&&(S=fr())!==r?((W=N())===r&&(W=null),W!==r&&(vr=fr())!==r?(Zt=f,f=y=(function(Ms,Vs){return{dataType:Array.isArray(Ms)?`${Ms[0].toUpperCase()} ${Ms[2].toUpperCase()}`:Ms,suffix:Vs}})(y,W)):(o=f,f=r)):(o=f,f=r))}return f}function X(){var f,y,S;return f=o,t.substr(o,7).toLowerCase()==="without"?(y=t.substr(o,7),o+=7):(y=r,rt===0&&dr(Ma)),y===r&&(t.substr(o,4).toLowerCase()==="with"?(y=t.substr(o,4),o+=4):(y=r,rt===0&&dr(oc))),y!==r&&fr()!==r&&oo()!==r&&fr()!==r?(t.substr(o,4).toLowerCase()==="zone"?(S=t.substr(o,4),o+=4):(S=r,rt===0&&dr(Da)),S===r?(o=f,f=r):(Zt=f,f=y=[y.toUpperCase(),"TIME","ZONE"])):(o=f,f=r),f}let lr={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,EXCEPT:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTERSECT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,LEFT:!0,LIKE:!0,LIMIT:!0,NOT:!0,NULL:!0,NULLS:!0,OFFSET:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,WITH:!0,WHEN:!0,WHERE:!0,WINDOW:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0};function wr(){return Ce.includeLocations?{loc:Fr(Zt,o)}:{}}function i(f,y){return{type:"unary_expr",operator:f,expr:y}}function b(f,y,S){return{type:"binary_expr",operator:f,left:y,right:S}}function m(f){let y=To(9007199254740991);return!(To(f)<y)}function x(f,y,S=3){let W=Array.isArray(f)?f:[f];for(let vr=0;vr<y.length;vr++)delete y[vr][S].tableList,delete y[vr][S].columnList,W.push(y[vr][S]);return W}function tr(f,y){let S=f;for(let W=0;W<y.length;W++)S=b(y[W][1],S,y[W][3]);return S}function Cr(f){return xn[f]||f||null}function gr(f){let y=new Set;for(let S of f.keys()){let W=S.split("::");if(!W){y.add(S);break}W&&W[1]&&(W[1]=Cr(W[1])),y.add(W.join("::"))}return Array.from(y)}function Yr(f){return typeof f=="string"?{type:"same",value:f}:f}let Rt=[],gt=new Set,Gt=new Set,rn=new Set,xn={};if((Ie=ge())!==r&&o===t.length)return Ie;throw Ie!==r&&o<t.length&&dr({type:"end"}),It(Ht,bu<t.length?t.charAt(bu):null,bu<t.length?Fr(bu,bu+1):Fr(bu,bu))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:Vl},ge=Vl,Dn=function(A,nr){return ir(A,nr,1)},Pn=Us("IF",!0),Ae=Us("if",!0),ou=Us("exists",!0),Hs=Us("TRIGGER",!0),Uo=Us("BEFORE",!0),Ps=Us("AFTER",!0),pe=Us("INSTEAD OF",!0),_o=Us("ON",!0),Gi=Us("OF",!0),mi=function(A,nr){return ir(A,nr)},Fi=Us("BEGIN",!0),T0=Us("END",!0),dl=Us("FOR",!0),Gl=Us("EACH",!0),Fl=Us("ROW",!0),nc=Us("STATEMENT",!0),xc=Us("LOCAL",!0),I0=Us("CHECK",!0),ji=function(A,nr){return ir(A,nr)},af=Us("AUTO_INCREMENT",!0),qf=Us("AUTOINCREMENT",!0),Uc=Us("UNIQUE",!0),wc=Us("KEY",!0),Ll=Us("PRIMARY",!0),jl=Us("COLUMN_FORMAT",!0),Oi=Us("FIXED",!0),bb=Us("DYNAMIC",!0),Vi=Us("DEFAULT",!0),zc=Us("STORAGE",!0),kc=Us("DISK",!0),vb=Us("MEMORY",!0),Zc=Us("first",!0),nl=Us("after",!0),Xf=Us("FOREIGN",!0),gl=Us("CHANGE",!0),lf=Us("ALGORITHM",!0),Jc=Us("INSTANT",!0),Qc=Us("INPLACE",!0),gv=Us("COPY",!0),g0=Us("LOCK",!0),Ki=Us("NONE",!0),Pb=Us("SHARED",!0),ei=Us("EXCLUSIVE",!0),pb=Us("NOT",!0),j0=Us("REPLICATION",!0),B0=Us("FOREIGN KEY",!0),Mc=Us("ENFORCED",!0),Cl=Us("MATCH FULL",!0),$u=Us("MATCH PARTIAL",!0),r0=Us("MATCH SIMPLE",!0),zn=Us("RESTRICT",!0),Ss=Us("CASCADE",!0),te=Us("SET NULL",!0),ce=Us("NO ACTION",!0),He=Us("SET DEFAULT",!0),Ue=Us("CHARACTER",!0),Qe=Us("SET",!0),uo=Us("CHARSET",!0),Ao=Us("COLLATE",!0),Pu=Us("AVG_ROW_LENGTH",!0),Ca=Us("KEY_BLOCK_SIZE",!0),ku=Us("MAX_ROWS",!0),ca=Us("MIN_ROWS",!0),na=Us("STATS_SAMPLE_PAGES",!0),Qa=Us("CONNECTION",!0),cf=Us("COMPRESSION",!0),ri=Us("'",!1),t0=Us("ZLIB",!0),n0=Us("LZ4",!0),Dc=Us("ENGINE",!0),s0=Us("WITHOUT",!0),Rv=Us("ROWID",!0),nv=Us("STRICT",!0),sv=Us("READ",!0),ev=Us("LOW_PRIORITY",!0),yc=Us("WRITE",!0),$c=function(A,nr){return ir(A,nr)},Sf=Us("BINARY",!0),R0=Us("MASTER",!0),Rl=Us("LOGS",!0),ff=Us("BINLOG",!0),Vf=Us("EVENTS",!0),Vv=Us("COLLATION",!0),db=Us("GRANTS",!0),Of=Us("(",!1),Pc=Us(")",!1),H0=Us("BTREE",!0),bf=Us("HASH",!0),Lb=Us("WITH",!0),Fa=Us("PARSER",!0),Kf=Us("VISIBLE",!0),Nv=Us("INVISIBLE",!0),Gb=function(A,nr){return nr.unshift(A),nr.forEach(yr=>{let{table:Ar,as:qr}=yr;Qo[Ar]=Ar,qr&&(Qo[qr]=Ar),(function(bt){let pr=vs(bt);bt.clear(),pr.forEach(xt=>bt.add(xt))})(De)}),nr},hc=Us("=",!1),Bl=Us("DUPLICATE",!0),sl=Us("ABORT",!0),sc=Us("FAIL",!0),Y0=Us("IGNORE",!0),N0=Us("REPLACE",!0),ov=Us("ROLLBACK",!0),Fb=function(A,nr){return Zr(A,nr)},e0=Us("!",!1),Cb=function(A){return A[0]+" "+A[2]},_0=Us(">=",!1),zf=Us(">",!1),je=Us("<=",!1),o0=Us("<>",!1),xi=Us("<",!1),xf=Us("==",!1),Zf=Us("!=",!1),W0=Us("ESCAPE",!0),jb=Us("glob",!0),Uf=Us("+",!1),u0=Us("-",!1),wb=Us("*",!1),Ui=Us("/",!1),uv=Us("%",!1),yb=Us("||",!1),hb=Us("?",!1),Kv=Us("~",!1),Gc=Us("?|",!1),_v=Us("?&",!1),kf=Us("#-",!1),vf=Us("#>>",!1),ki=Us("#>",!1),Hl=Us("@>",!1),Eb=Us("<@",!1),Bb=function(A){return s[A.toUpperCase()]===!0},pa=Us('"',!1),wl=/^[^"]/,Nl=ol(['"'],!0,!1),Sv=/^[^']/,Hb=ol(["'"],!0,!1),Jf=Us("`",!1),pf=/^[^`]/,Yb=ol(["`"],!0,!1),av=function(A,nr){return A+nr.join("")},iv=/^[A-Za-z_]/,a0=ol([["A","Z"],["a","z"],"_"],!1,!1),_l=/^[A-Za-z0-9_]/,Yl=ol([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),Ab=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,Mf=ol([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Wb=Us(":",!1),Df=Us("_binary",!0),mb=Us("X",!0),i0=/^[0-9A-Fa-f]/,ft=ol([["0","9"],["A","F"],["a","f"]],!1,!1),tn=Us("b",!0),_n=Us("0x",!1),En=function(A,nr){return{type:A.toLowerCase(),value:nr[1].join("")}},Os=/^[^"\\\0-\x1F\x7F]/,gs=ol(['"',"\\",["\0",""],"\x7F"],!0,!1),Ys=/^[^'\\]/,Te=ol(["'","\\"],!0,!1),ye=Us("\\'",!1),Be=Us('\\"',!1),io=Us("\\\\",!1),Ro=Us("\\/",!1),So=Us("\\b",!1),uu=Us("\\f",!1),ko=Us("\\n",!1),yu=Us("\\r",!1),au=Us("\\t",!1),Iu=Us("\\u",!1),mu=Us("\\",!1),Ju=Us("''",!1),ua=Us('""',!1),Sa=Us("``",!1),ma=/^[\n\r]/,Bi=ol([` +`,"\r"],!1,!1),sa=Us(".",!1),di=/^[0-9]/,Hi=ol([["0","9"]],!1,!1),S0=/^[0-9a-fA-F]/,l0=ol([["0","9"],["a","f"],["A","F"]],!1,!1),Ov=/^[eE]/,lv=ol(["e","E"],!1,!1),fi=/^[+\-]/,Wl=ol(["+","-"],!1,!1),ec=Us("ANALYZE",!0),Fc=Us("ATTACH",!0),xv=Us("NULL",!0),lp=Us("NOT NULL",!0),Uv=Us("TRUE",!0),$f=Us("TO",!0),Tb=Us("FALSE",!0),cp=Us("SHOW",!0),c0=Us("DROP",!0),q0=Us("USE",!0),df=Us("ALTER",!0),f0=Us("SELECT",!0),b0=Us("UPDATE",!0),Pf=Us("CREATE",!0),Sp=Us("TEMPORARY",!0),kv=Us("TEMP",!0),Op=Us("DELETE",!0),fp=Us("INSERT",!0),oc=Us("RECURSIVE",!0),uc=Us("RENAME",!0),qb=Us("RETURNING",!0),Gf=Us("PARTITION",!0),zv=Us("INTO",!0),Mv=Us("FROM",!0),Zv=Us("UNLOCK",!0),bp=Us("AS",!0),Ib=Us("TABLE",!0),Dv=Us("TABLES",!0),vp=Us("DATABASE",!0),Jv=Us("SCHEMA",!0),Xb=Us("LEFT",!0),pp=Us("INNER",!0),xp=Us("JOIN",!0),cv=Us("OUTER",!0),Up=Us("OVER",!0),Xp=Us("UNION",!0),Qv=Us("VALUES",!0),Vp=Us("USING",!0),dp=Us("WHERE",!0),Kp=Us("GROUP",!0),ld=Us("BY",!0),Lp=Us("ORDER",!0),Cp=Us("HAVING",!0),wp=Us("LIMIT",!0),gb=Us("OFFSET",!0),O0=Us("ASC",!0),v0=Us("DESC",!0),ac=Us("DESCRIBE",!0),Rb=Us("ALL",!0),Ff=Us("DISTINCT",!0),kp=Us("BETWEEN",!0),Mp=Us("IN",!0),rp=Us("IS",!0),yp=Us("LIKE",!0),hp=Us("RLIKE",!0),Ep=Us("REGEXP",!0),Nb=Us("EXISTS",!0),Qf=Us("AND",!0),_b=Us("OR",!0),Ap=Us("COUNT",!0),Dp=Us("GROUP_CONCAT",!0),$v=Us("MAX",!0),$p=Us("MIN",!0),Pp=Us("SUM",!0),Pv=Us("AVG",!0),Gp=Us("CALL",!0),Fp=Us("CASE",!0),mp=Us("WHEN",!0),zp=Us("THEN",!0),Zp=Us("ELSE",!0),Gv=Us("CAST",!0),tp=Us("BIT",!0),Fv=Us("CHAR",!0),yl=Us("VARCHAR",!0),jc=Us("NUMERIC",!0),fv=Us("DECIMAL",!0),Sl=Us("SIGNED",!0),Ol=Us("UNSIGNED",!0),np=Us("INT",!0),bv=Us("ZEROFILL",!0),ql=Us("INTEGER",!0),Ec=Us("JSON",!0),Jp=Us("SMALLINT",!0),Qp=Us("TINYINT",!0),sp=Us("TINYTEXT",!0),jv=Us("TEXT",!0),Tp=Us("MEDIUMTEXT",!0),rd=Us("LONGTEXT",!0),jp=Us("BIGINT",!0),Ip=Us("ENUM",!0),td=Us("FLOAT",!0),nd=Us("DOUBLE",!0),Bp=Us("REAL",!0),Hp=Us("DATE",!0),gp=Us("DATETIME",!0),sd=Us("TIME",!0),ed=Us("TIMESTAMP",!0),Yp=Us("TRUNCATE",!0),od=Us("USER",!0),ud=Us("CURRENT_DATE",!0),Rp=Us("INTERVAL",!0),O=Us("YEAR",!0),ps=Us("MONTH",!0),Bv=Us("DAY",!0),Lf=Us("HOUR",!0),Hv=Us("MINUTE",!0),on=Us("SECOND",!0),zs=Us("CURRENT_TIME",!0),Bc=Us("CURRENT_TIMESTAMP",!0),vv=Us("CURRENT_USER",!0),ep=Us("SESSION_USER",!0),Rs=Us("SYSTEM_USER",!0),Np=Us("GLOBAL",!0),Wp=Us("SESSION",!0),cd=Us("PERSIST",!0),Vb=Us("PERSIST_ONLY",!0),_=Us("VIEW",!0),Ls=Us("@",!1),pv=Us("@@",!1),Cf=Us("$",!1),dv=Us("return",!0),Qt=Us(":=",!1),Xs=Us("DUAL",!0),ic=Us("ADD",!0),op=Us("COLUMN",!0),Kb=Us("INDEX",!0),ys=Us("MODIFY",!0),_p=Us("FULLTEXT",!0),Yv=Us("SPATIAL",!0),Lv=Us("COMMENT",!0),Wv=Us("CONSTRAINT",!0),zb=Us("REFERENCES",!0),wf=Us("SQL_CALC_FOUND_ROWS",!0),qv=Us("SQL_CACHE",!0),Cv=Us("SQL_NO_CACHE",!0),rb=Us("SQL_SMALL_RESULT",!0),tb=Us("SQL_BIG_RESULT",!0),I=Us("SQL_BUFFER_RESULT",!0),us=Us(",",!1),Sb=Us("[",!1),xl=Us("]",!1),nb=Us(";",!1),zt=Us("->",!1),$s=Us("->>",!1),ja=Us("&&",!1),Ob=Us("/*",!1),jf=Us("*/",!1),is=Us("--",!1),el=Us("#",!1),Ti={type:"any"},wv=/^[ \t\n\r]/,yf=ol([" "," ",` +`,"\r"],!1,!1),X0=Us("blob",!0),p0=Us("tinyblob",!0),up=Us("mediumblob",!0),xb=Us("longblob",!0),Zb=Us("boolean",!0),yv=function(A){return{dataType:A}},Jb=/^[0-6]/,hv=ol([["0","6"]],!1,!1),h=0,ss=0,Xl=[{line:1,column:1}],d0=0,Bf=[],jt=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function Us(A,nr){return{type:"literal",text:A,ignoreCase:nr}}function ol(A,nr,yr){return{type:"class",parts:A,inverted:nr,ignoreCase:yr}}function sb(A){var nr,yr=Xl[A];if(yr)return yr;for(nr=A-1;!Xl[nr];)nr--;for(yr={line:(yr=Xl[nr]).line,column:yr.column};nr<A;)t.charCodeAt(nr)===10?(yr.line++,yr.column=1):yr.column++,nr++;return Xl[A]=yr,yr}function eb(A,nr){var yr=sb(A),Ar=sb(nr);return{start:{offset:A,line:yr.line,column:yr.column},end:{offset:nr,line:Ar.line,column:Ar.column}}}function p(A){h<d0||(h>d0&&(d0=h,Bf=[]),Bf.push(A))}function ns(A,nr,yr){return new go(go.buildMessage(A,nr),A,nr,yr)}function Vl(){var A,nr;return A=h,Wt()!==r&&(nr=Ft())!==r?(ss=A,A=nr):(h=A,A=r),A}function Hc(){var A;return(A=(function(){var nr=h,yr,Ar;(yr=(function(){var pr=h,xt,cn,mn;return t.substr(h,7).toLowerCase()==="analyze"?(xt=t.substr(h,7),h+=7):(xt=r,jt===0&&p(ec)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="ANALYZE")),pr})())!==r&&Wt()!==r&&(Ar=Su())!==r&&Wt()!==r?(ss=nr,qr=yr,bt=Ar,ut.add(`${qr}::${bt.db}::${bt.table}`),yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:qr.toLowerCase(),table:bt}},nr=yr):(h=nr,nr=r);var qr,bt;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr;(yr=(function(){var ks=h,Ws,fe,ne;return t.substr(h,6).toLowerCase()==="attach"?(Ws=t.substr(h,6),h+=6):(Ws=r,jt===0&&p(Fc)),Ws===r?(h=ks,ks=r):(fe=h,jt++,ne=Se(),jt--,ne===r?fe=void 0:(h=fe,fe=r),fe===r?(h=ks,ks=r):(ss=ks,ks=Ws="ATTACH")),ks})())!==r&&Wt()!==r&&(Ar=Oe())!==r&&Wt()!==r&&(qr=fa())!==r&&Wt()!==r&&(bt=ha())!==r&&Wt()!==r&&(pr=ju())!==r&&Wt()!==r?(ss=nr,xt=yr,cn=Ar,mn=qr,$n=bt,bs=pr,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:xt.toLowerCase(),database:cn,expr:mn,as:$n&&$n[0].toLowerCase(),schema:bs}},nr=yr):(h=nr,nr=r);var xt,cn,mn,$n,bs;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt;(yr=kl())!==r&&Wt()!==r&&(Ar=Ha())!==r&&Wt()!==r?((qr=x0())===r&&(qr=null),qr!==r&&Wt()!==r&&(bt=Ye())!==r?(ss=nr,cn=yr,mn=Ar,$n=qr,(bs=bt)&&bs.forEach(ks=>ut.add(`${cn}::${ks.db}::${ks.table}`)),yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:cn.toLowerCase(),keyword:mn.toLowerCase(),prefix:$n,name:bs}},nr=yr):(h=nr,nr=r)):(h=nr,nr=r);var cn,mn,$n,bs;return nr===r&&(nr=h,(yr=kl())!==r&&Wt()!==r&&(Ar=kn())!==r&&Wt()!==r?((qr=x0())===r&&(qr=null),qr!==r&&Wt()!==r&&(bt=Ye())!==r?(ss=nr,yr=(function(ks,Ws,fe,ne){return{tableList:Array.from(ut),columnList:vs(De),ast:{type:ks.toLowerCase(),keyword:Ws.toLowerCase(),prefix:fe,name:ne}}})(yr,Ar,qr,bt),nr=yr):(h=nr,nr=r)):(h=nr,nr=r),nr===r&&(nr=h,(yr=kl())!==r&&Wt()!==r&&(Ar=co())!==r&&Wt()!==r&&(qr=Ra())!==r&&Wt()!==r&&(bt=Di())!==r&&Wt()!==r&&(pr=Su())!==r&&Wt()!==r?((xt=(function(){var ks=h,Ws,fe,ne,Is,me;if((Ws=Ot())===r&&(Ws=hs()),Ws!==r){for(fe=[],ne=h,(Is=Wt())===r?(h=ne,ne=r):((me=Ot())===r&&(me=hs()),me===r?(h=ne,ne=r):ne=Is=[Is,me]);ne!==r;)fe.push(ne),ne=h,(Is=Wt())===r?(h=ne,ne=r):((me=Ot())===r&&(me=hs()),me===r?(h=ne,ne=r):ne=Is=[Is,me]);fe===r?(h=ks,ks=r):(ss=ks,Ws=Dn(Ws,fe),ks=Ws)}else h=ks,ks=r;return ks})())===r&&(xt=null),xt!==r&&Wt()!==r?(ss=nr,yr=(function(ks,Ws,fe,ne,Is){return{tableList:Array.from(ut),columnList:vs(De),ast:{type:ks.toLowerCase(),keyword:Ws.toLowerCase(),name:fe,table:ne,options:Is}}})(yr,Ar,qr,pr,xt),nr=yr):(h=nr,nr=r)):(h=nr,nr=r))),nr})())===r&&(A=(function(){var nr;return(nr=(function(){var yr=h,Ar,qr,bt,pr,xt,cn;(Ar=yn())!==r&&Wt()!==r?((qr=ka())===r&&(qr=Ua()),qr===r&&(qr=null),qr!==r&&Wt()!==r&&Ha()!==r&&Wt()!==r?((bt=Ta())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=Su())!==r&&Wt()!==r&&(xt=(function(){var fe,ne,Is,me,Xe,eo,so,$o,Mu;if(fe=h,(ne=lo())!==r)if(Wt()!==r)if((Is=U0())!==r){for(me=[],Xe=h,(eo=Wt())!==r&&(so=Ke())!==r&&($o=Wt())!==r&&(Mu=U0())!==r?Xe=eo=[eo,so,$o,Mu]:(h=Xe,Xe=r);Xe!==r;)me.push(Xe),Xe=h,(eo=Wt())!==r&&(so=Ke())!==r&&($o=Wt())!==r&&(Mu=U0())!==r?Xe=eo=[eo,so,$o,Mu]:(h=Xe,Xe=r);me!==r&&(Xe=Wt())!==r&&(eo=Co())!==r?(ss=fe,ne=ji(Is,me),fe=ne):(h=fe,fe=r)}else h=fe,fe=r;else h=fe,fe=r;else h=fe,fe=r;return fe})())!==r&&Wt()!==r?((cn=(function(){var fe,ne,Is,me,Xe,eo,so,$o;if(fe=h,(ne=k0())!==r){for(Is=[],me=h,(Xe=Wt())===r?(h=me,me=r):((eo=Ke())===r&&(eo=null),eo!==r&&(so=Wt())!==r&&($o=k0())!==r?me=Xe=[Xe,eo,so,$o]:(h=me,me=r));me!==r;)Is.push(me),me=h,(Xe=Wt())===r?(h=me,me=r):((eo=Ke())===r&&(eo=null),eo!==r&&(so=Wt())!==r&&($o=k0())!==r?me=Xe=[Xe,eo,so,$o]:(h=me,me=r));Is===r?(h=fe,fe=r):(ss=fe,ne=mi(ne,Is),fe=ne)}else h=fe,fe=r;return fe})())===r&&(cn=null),cn===r?(h=yr,yr=r):(ss=yr,Ar=(function(fe,ne,Is,me,Xe,eo){return me&&ut.add(`create::${me.db}::${me.table}`),{tableList:Array.from(ut),columnList:vs(De),ast:{type:fe[0].toLowerCase(),keyword:"table",temporary:ne&&ne[0].toLowerCase(),if_not_exists:Is,table:[me],create_definitions:Xe,table_options:eo}}})(Ar,qr,bt,pr,xt,cn),yr=Ar)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r),yr===r&&(yr=h,(Ar=yn())!==r&&Wt()!==r?((qr=ka())===r&&(qr=Ua()),qr===r&&(qr=null),qr!==r&&Wt()!==r&&Ha()!==r&&Wt()!==r?((bt=Ta())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=Su())!==r&&Wt()!==r&&(xt=ha())!==r&&Wt()!==r&&(cn=Wi())!==r?(ss=yr,mn=Ar,$n=qr,bs=bt,Ws=cn,(ks=pr)&&ut.add(`create::${ks.db}::${ks.table}`),Ar={tableList:Array.from(ut),columnList:vs(De),ast:{type:mn[0].toLowerCase(),keyword:"table",temporary:$n&&$n[0].toLowerCase(),if_not_exists:bs,table:[ks],as:"as",query_expr:Ws}},yr=Ar):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r));var mn,$n,bs,ks,Ws;return yr})())===r&&(nr=(function(){var yr=h,Ar,qr,bt,pr,xt;return(Ar=yn())!==r&&Wt()!==r?((qr=Oe())===r&&(qr=(function(){var cn=h,mn,$n,bs;return t.substr(h,6).toLowerCase()==="schema"?(mn=t.substr(h,6),h+=6):(mn=r,jt===0&&p(Jv)),mn===r?(h=cn,cn=r):($n=h,jt++,bs=Se(),jt--,bs===r?$n=void 0:(h=$n,$n=r),$n===r?(h=cn,cn=r):(ss=cn,cn=mn="SCHEMA")),cn})()),qr!==r&&Wt()!==r?((bt=Ta())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=bc())!==r&&Wt()!==r?((xt=(function(){var cn,mn,$n,bs,ks,Ws;if(cn=h,(mn=Hf())!==r){for($n=[],bs=h,(ks=Wt())!==r&&(Ws=Hf())!==r?bs=ks=[ks,Ws]:(h=bs,bs=r);bs!==r;)$n.push(bs),bs=h,(ks=Wt())!==r&&(Ws=Hf())!==r?bs=ks=[ks,Ws]:(h=bs,bs=r);$n===r?(h=cn,cn=r):(ss=cn,mn=Dn(mn,$n),cn=mn)}else h=cn,cn=r;return cn})())===r&&(xt=null),xt===r?(h=yr,yr=r):(ss=yr,Ar=(function(cn,mn,$n,bs,ks){let Ws=mn.toLowerCase();return{tableList:Array.from(ut),columnList:vs(De),ast:{type:cn[0].toLowerCase(),keyword:Ws,if_not_exists:$n,[Ws]:{db:bs.schema,schema:bs.name},create_definitions:ks}}})(Ar,qr,bt,pr,xt),yr=Ar)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r),yr})())===r&&(nr=(function(){var yr=h,Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks;(Ar=yn())!==r&&Wt()!==r?((qr=Eo())===r&&(qr=null),qr!==r&&Wt()!==r&&(bt=co())!==r&&Wt()!==r?((pr=Ta())===r&&(pr=null),pr!==r&&Wt()!==r&&(xt=Su())!==r&&Wt()!==r?((cn=El())===r&&(cn=null),cn!==r&&Wt()!==r&&(mn=Di())!==r&&Wt()!==r&&($n=Su())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(bs=(function(){var Mu,su,Po,Na,F,ar,Nr,Rr;if(Mu=h,(su=kb())!==r){for(Po=[],Na=h,(F=Wt())!==r&&(ar=Ke())!==r&&(Nr=Wt())!==r&&(Rr=kb())!==r?Na=F=[F,ar,Nr,Rr]:(h=Na,Na=r);Na!==r;)Po.push(Na),Na=h,(F=Wt())!==r&&(ar=Ke())!==r&&(Nr=Wt())!==r&&(Rr=kb())!==r?Na=F=[F,ar,Nr,Rr]:(h=Na,Na=r);Po===r?(h=Mu,Mu=r):(ss=Mu,su=mi(su,Po),Mu=su)}else h=Mu,Mu=r;return Mu})())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?((ks=Ac())===r&&(ks=null),ks===r?(h=yr,yr=r):(ss=yr,Ws=Ar,fe=qr,ne=bt,Is=pr,me=xt,Xe=mn,eo=$n,so=bs,$o=ks,Ar={tableList:Array.from(ut),columnList:vs(De),ast:{type:Ws[0].toLowerCase(),index_type:fe&&fe.toLowerCase(),keyword:ne.toLowerCase(),if_not_exists:Is,index:{schema:me.db,name:me.table},on_kw:Xe[0].toLowerCase(),table:eo,index_columns:so,where:$o}},yr=Ar)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r);var Ws,fe,ne,Is,me,Xe,eo,so,$o;return yr})())===r&&(nr=(function(){var yr=h,Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks,Ws,fe;return(Ar=yn())!==r&&Wt()!==r?((qr=ka())===r&&(qr=Ua()),qr===r&&(qr=null),qr!==r&&Wt()!==r?(t.substr(h,7).toLowerCase()==="trigger"?(bt=t.substr(h,7),h+=7):(bt=r,jt===0&&p(Hs)),bt!==r&&Wt()!==r?((pr=Ta())===r&&(pr=null),pr!==r&&Wt()!==r&&(xt=Su())!==r&&Wt()!==r?(t.substr(h,6).toLowerCase()==="before"?(cn=t.substr(h,6),h+=6):(cn=r,jt===0&&p(Uo)),cn===r&&(t.substr(h,5).toLowerCase()==="after"?(cn=t.substr(h,5),h+=5):(cn=r,jt===0&&p(Ps)),cn===r&&(t.substr(h,10).toLowerCase()==="instead of"?(cn=t.substr(h,10),h+=10):(cn=r,jt===0&&p(pe)))),cn===r&&(cn=null),cn!==r&&Wt()!==r&&(mn=(function(){var ne,Is,me,Xe,eo,so,$o,Mu;if(ne=h,(Is=Zn())!==r){for(me=[],Xe=h,(eo=Wt())!==r&&(so=bu())!==r&&($o=Wt())!==r&&(Mu=Zn())!==r?Xe=eo=[eo,so,$o,Mu]:(h=Xe,Xe=r);Xe!==r;)me.push(Xe),Xe=h,(eo=Wt())!==r&&(so=bu())!==r&&($o=Wt())!==r&&(Mu=Zn())!==r?Xe=eo=[eo,so,$o,Mu]:(h=Xe,Xe=r);me===r?(h=ne,ne=r):(ss=ne,Is=mi(Is,me),ne=Is)}else h=ne,ne=r;return ne})())!==r&&Wt()!==r?(t.substr(h,2).toLowerCase()==="on"?($n=t.substr(h,2),h+=2):($n=r,jt===0&&p(_o)),$n!==r&&Wt()!==r&&(bs=Su())!==r&&Wt()!==r?((ks=(function(){var ne=h,Is,me,Xe;t.substr(h,3).toLowerCase()==="for"?(Is=t.substr(h,3),h+=3):(Is=r,jt===0&&p(dl)),Is!==r&&Wt()!==r?(t.substr(h,4).toLowerCase()==="each"?(me=t.substr(h,4),h+=4):(me=r,jt===0&&p(Gl)),me===r&&(me=null),me!==r&&Wt()!==r?(t.substr(h,3).toLowerCase()==="row"?(Xe=t.substr(h,3),h+=3):(Xe=r,jt===0&&p(Fl)),Xe===r&&(t.substr(h,9).toLowerCase()==="statement"?(Xe=t.substr(h,9),h+=9):(Xe=r,jt===0&&p(nc))),Xe===r?(h=ne,ne=r):(ss=ne,eo=Is,$o=Xe,Is={keyword:(so=me)?`${eo.toLowerCase()} ${so.toLowerCase()}`:eo.toLowerCase(),args:$o.toLowerCase()},ne=Is)):(h=ne,ne=r)):(h=ne,ne=r);var eo,so,$o;return ne})())===r&&(ks=null),ks!==r&&Wt()!==r?((Ws=(function(){var ne=h,Is;return rt()!==r&&Wt()!==r&&(Is=fa())!==r?(ss=ne,ne={type:"when",cond:Is}):(h=ne,ne=r),ne})())===r&&(Ws=null),Ws!==r&&Wt()!==r&&(fe=(function(){var ne=h,Is,me,Xe;return t.substr(h,5).toLowerCase()==="begin"?(Is=t.substr(h,5),h+=5):(Is=r,jt===0&&p(Fi)),Is!==r&&Wt()!==r&&(me=Ft())!==r&&Wt()!==r?(t.substr(h,3).toLowerCase()==="end"?(Xe=t.substr(h,3),h+=3):(Xe=r,jt===0&&p(T0)),Xe===r?(h=ne,ne=r):(ss=ne,ne=Is={type:"multiple",prefix:Is,expr:me,suffix:Xe})):(h=ne,ne=r),ne})())!==r?(ss=yr,Ar=(function(ne,Is,me,Xe,eo,so,$o,Mu,su,Po,Na,F){return{type:"create",temporary:Is&&Is[0].toLowerCase(),time:so&&so.toLowerCase(),events:$o,trigger:eo,table:su,for_each:Po,if_not_exists:Xe,when:Na,execute:F,keyword:me&&me.toLowerCase()}})(0,qr,bt,pr,xt,cn,mn,0,bs,ks,Ws,fe),yr=Ar):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r),yr})())===r&&(nr=(function(){var yr=h,Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks;return(Ar=yn())!==r&&Wt()!==r?((qr=Ua())===r&&(qr=ka()),qr===r&&(qr=null),qr!==r&&Wt()!==r&&kn()!==r&&Wt()!==r?((bt=Ta())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=Su())!==r&&Wt()!==r?(xt=h,(cn=lo())!==r&&(mn=Wt())!==r&&($n=or())!==r&&(bs=Wt())!==r&&(ks=Co())!==r?xt=cn=[cn,mn,$n,bs,ks]:(h=xt,xt=r),xt===r&&(xt=null),xt!==r&&(cn=Wt())!==r&&(mn=ha())!==r&&($n=Wt())!==r&&(bs=We())!==r?(ss=yr,Ar=(function(Ws,fe,ne,Is,me,Xe){return Is.view=Is.table,delete Is.table,{tableList:Array.from(ut),columnList:vs(De),ast:{type:Ws[0].toLowerCase(),keyword:"view",if_not_exists:ne,temporary:fe&&fe[0].toLowerCase(),columns:me&&me[2],select:Xe,view:Is}}})(Ar,qr,bt,pr,xt,bs),yr=Ar):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r)):(h=yr,yr=r),yr})()),nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr;(yr=(function(){var cn=h,mn,$n,bs;return t.substr(h,8).toLowerCase()==="truncate"?(mn=t.substr(h,8),h+=8):(mn=r,jt===0&&p(Yp)),mn===r?(h=cn,cn=r):($n=h,jt++,bs=Se(),jt--,bs===r?$n=void 0:(h=$n,$n=r),$n===r?(h=cn,cn=r):(ss=cn,cn=mn="TRUNCATE")),cn})())!==r&&Wt()!==r?((Ar=Ha())===r&&(Ar=null),Ar!==r&&Wt()!==r&&(qr=Ye())!==r?(ss=nr,bt=yr,pr=Ar,(xt=qr)&&xt.forEach(cn=>ut.add(`${bt}::${cn.db}::${cn.table}`)),yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:bt.toLowerCase(),keyword:pr&&pr.toLowerCase()||"table",name:xt}},nr=yr):(h=nr,nr=r)):(h=nr,nr=r);var bt,pr,xt;return nr})())===r&&(A=(function(){var nr=h,yr,Ar;(yr=zu())!==r&&Wt()!==r&&Ha()!==r&&Wt()!==r&&(Ar=(function(){var bt,pr,xt,cn,mn,$n,bs,ks;if(bt=h,(pr=Af())!==r){for(xt=[],cn=h,(mn=Wt())!==r&&($n=Ke())!==r&&(bs=Wt())!==r&&(ks=Af())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r);cn!==r;)xt.push(cn),cn=h,(mn=Wt())!==r&&($n=Ke())!==r&&(bs=Wt())!==r&&(ks=Af())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r);xt===r?(h=bt,bt=r):(ss=bt,pr=ji(pr,xt),bt=pr)}else h=bt,bt=r;return bt})())!==r?(ss=nr,(qr=Ar).forEach(bt=>bt.forEach(pr=>pr.table&&ut.add(`rename::${pr.db}::${pr.table}`))),yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"rename",table:qr}},nr=yr):(h=nr,nr=r);var qr;return nr})())===r&&(A=(function(){var nr=h,yr,Ar;(yr=(function(){var bt=h,pr,xt,cn;return t.substr(h,4).toLowerCase()==="call"?(pr=t.substr(h,4),h+=4):(pr=r,jt===0&&p(Gp)),pr===r?(h=bt,bt=r):(xt=h,jt++,cn=Se(),jt--,cn===r?xt=void 0:(h=xt,xt=r),xt===r?(h=bt,bt=r):(ss=bt,bt=pr="CALL")),bt})())!==r&&Wt()!==r&&(Ar=Wu())!==r?(ss=nr,qr=Ar,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"call",expr:qr}},nr=yr):(h=nr,nr=r);var qr;return nr})())===r&&(A=(function(){var nr=h,yr,Ar;(yr=(function(){var bt=h,pr,xt,cn;return t.substr(h,3).toLowerCase()==="use"?(pr=t.substr(h,3),h+=3):(pr=r,jt===0&&p(q0)),pr===r?(h=bt,bt=r):(xt=h,jt++,cn=Se(),jt--,cn===r?xt=void 0:(h=xt,xt=r),xt===r?(h=bt,bt=r):bt=pr=[pr,xt]),bt})())!==r&&Wt()!==r&&(Ar=ju())!==r?(ss=nr,qr=Ar,ut.add(`use::${qr}::null`),yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"use",db:qr}},nr=yr):(h=nr,nr=r);var qr;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr;(yr=(function(){var xt=h,cn,mn,$n;return t.substr(h,5).toLowerCase()==="alter"?(cn=t.substr(h,5),h+=5):(cn=r,jt===0&&p(df)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):xt=cn=[cn,mn]),xt})())!==r&&Wt()!==r&&Ha()!==r&&Wt()!==r&&(Ar=Ye())!==r&&Wt()!==r&&(qr=(function(){var xt,cn,mn,$n,bs,ks,Ws,fe;if(xt=h,(cn=zl())!==r){for(mn=[],$n=h,(bs=Wt())!==r&&(ks=Ke())!==r&&(Ws=Wt())!==r&&(fe=zl())!==r?$n=bs=[bs,ks,Ws,fe]:(h=$n,$n=r);$n!==r;)mn.push($n),$n=h,(bs=Wt())!==r&&(ks=Ke())!==r&&(Ws=Wt())!==r&&(fe=zl())!==r?$n=bs=[bs,ks,Ws,fe]:(h=$n,$n=r);mn===r?(h=xt,xt=r):(ss=xt,cn=ji(cn,mn),xt=cn)}else h=xt,xt=r;return xt})())!==r?(ss=nr,pr=qr,(bt=Ar)&&bt.length>0&&bt.forEach(xt=>ut.add(`alter::${xt.db}::${xt.table}`)),yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"alter",table:bt,expr:pr}},nr=yr):(h=nr,nr=r);var bt,pr;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr;(yr=Mi())!==r&&Wt()!==r?((Ar=(function(){var xt=h,cn,mn,$n;return t.substr(h,6).toLowerCase()==="global"?(cn=t.substr(h,6),h+=6):(cn=r,jt===0&&p(Np)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):(ss=xt,xt=cn="GLOBAL")),xt})())===r&&(Ar=(function(){var xt=h,cn,mn,$n;return t.substr(h,7).toLowerCase()==="session"?(cn=t.substr(h,7),h+=7):(cn=r,jt===0&&p(Wp)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):(ss=xt,xt=cn="SESSION")),xt})())===r&&(Ar=(function(){var xt=h,cn,mn,$n;return t.substr(h,5).toLowerCase()==="local"?(cn=t.substr(h,5),h+=5):(cn=r,jt===0&&p(xc)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):(ss=xt,xt=cn="LOCAL")),xt})())===r&&(Ar=(function(){var xt=h,cn,mn,$n;return t.substr(h,7).toLowerCase()==="persist"?(cn=t.substr(h,7),h+=7):(cn=r,jt===0&&p(cd)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):(ss=xt,xt=cn="PERSIST")),xt})())===r&&(Ar=(function(){var xt=h,cn,mn,$n;return t.substr(h,12).toLowerCase()==="persist_only"?(cn=t.substr(h,12),h+=12):(cn=r,jt===0&&p(Vb)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):(ss=xt,xt=cn="PERSIST_ONLY")),xt})()),Ar===r&&(Ar=null),Ar!==r&&Wt()!==r&&(qr=(function(){var xt,cn,mn,$n,bs,ks,Ws,fe;if(xt=h,(cn=si())!==r){for(mn=[],$n=h,(bs=Wt())!==r&&(ks=Ke())!==r&&(Ws=Wt())!==r&&(fe=si())!==r?$n=bs=[bs,ks,Ws,fe]:(h=$n,$n=r);$n!==r;)mn.push($n),$n=h,(bs=Wt())!==r&&(ks=Ke())!==r&&(Ws=Wt())!==r&&(fe=si())!==r?$n=bs=[bs,ks,Ws,fe]:(h=$n,$n=r);mn===r?(h=xt,xt=r):(ss=xt,cn=$c(cn,mn),xt=cn)}else h=xt,xt=r;return xt})())!==r?(ss=nr,bt=Ar,(pr=qr).keyword=bt,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"set",keyword:bt,expr:pr}},nr=yr):(h=nr,nr=r)):(h=nr,nr=r);var bt,pr;return nr})())===r&&(A=(function(){var nr=h,yr,Ar;(yr=(function(){var bt=h,pr,xt,cn;return t.substr(h,4).toLowerCase()==="lock"?(pr=t.substr(h,4),h+=4):(pr=r,jt===0&&p(g0)),pr===r?(h=bt,bt=r):(xt=h,jt++,cn=Se(),jt--,cn===r?xt=void 0:(h=xt,xt=r),xt===r?(h=bt,bt=r):bt=pr=[pr,xt]),bt})())!==r&&Wt()!==r&&ln()!==r&&Wt()!==r&&(Ar=(function(){var bt,pr,xt,cn,mn,$n,bs,ks;if(bt=h,(pr=M0())!==r){for(xt=[],cn=h,(mn=Wt())!==r&&($n=Ke())!==r&&(bs=Wt())!==r&&(ks=M0())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r);cn!==r;)xt.push(cn),cn=h,(mn=Wt())!==r&&($n=Ke())!==r&&(bs=Wt())!==r&&(ks=M0())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r);xt===r?(h=bt,bt=r):(ss=bt,pr=$c(pr,xt),bt=pr)}else h=bt,bt=r;return bt})())!==r?(ss=nr,qr=Ar,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"lock",keyword:"tables",tables:qr}},nr=yr):(h=nr,nr=r);var qr;return nr})())===r&&(A=(function(){var nr=h,yr;return(yr=(function(){var Ar=h,qr,bt,pr;return t.substr(h,6).toLowerCase()==="unlock"?(qr=t.substr(h,6),h+=6):(qr=r,jt===0&&p(Zv)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):Ar=qr=[qr,bt]),Ar})())!==r&&Wt()!==r&&ln()!==r?(ss=nr,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"unlock",keyword:"tables"}},nr=yr):(h=nr,nr=r),nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn,mn;(yr=E0())!==r&&Wt()!==r?(t.substr(h,6).toLowerCase()==="binary"?(Ar=t.substr(h,6),h+=6):(Ar=r,jt===0&&p(Sf)),Ar===r&&(t.substr(h,6).toLowerCase()==="master"?(Ar=t.substr(h,6),h+=6):(Ar=r,jt===0&&p(R0))),Ar!==r&&(qr=Wt())!==r?(t.substr(h,4).toLowerCase()==="logs"?(bt=t.substr(h,4),h+=4):(bt=r,jt===0&&p(Rl)),bt===r?(h=nr,nr=r):(ss=nr,$n=Ar,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"show",suffix:"logs",keyword:$n.toLowerCase()}},nr=yr)):(h=nr,nr=r)):(h=nr,nr=r);var $n;nr===r&&(nr=h,(yr=E0())!==r&&Wt()!==r?(t.substr(h,6).toLowerCase()==="binlog"?(Ar=t.substr(h,6),h+=6):(Ar=r,jt===0&&p(ff)),Ar!==r&&(qr=Wt())!==r?(t.substr(h,6).toLowerCase()==="events"?(bt=t.substr(h,6),h+=6):(bt=r,jt===0&&p(Vf)),bt!==r&&(pr=Wt())!==r?((xt=Xa())===r&&(xt=null),xt!==r&&Wt()!==r?((cn=K0())===r&&(cn=null),cn!==r&&Wt()!==r?((mn=Yc())===r&&(mn=null),mn===r?(h=nr,nr=r):(ss=nr,bs=xt,ks=cn,Ws=mn,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"show",suffix:"events",keyword:"binlog",in:bs,from:ks,limit:Ws}},nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r),nr===r&&(nr=h,(yr=E0())!==r&&Wt()!==r?(Ar=h,t.substr(h,9).toLowerCase()==="character"?(qr=t.substr(h,9),h+=9):(qr=r,jt===0&&p(Ue)),qr!==r&&(bt=Wt())!==r?(t.substr(h,3).toLowerCase()==="set"?(pr=t.substr(h,3),h+=3):(pr=r,jt===0&&p(Qe)),pr===r?(h=Ar,Ar=r):Ar=qr=[qr,bt,pr]):(h=Ar,Ar=r),Ar===r&&(t.substr(h,9).toLowerCase()==="collation"?(Ar=t.substr(h,9),h+=9):(Ar=r,jt===0&&p(Vv))),Ar!==r&&(qr=Wt())!==r?((bt=Zl())===r&&(bt=Ac()),bt===r&&(bt=null),bt===r?(h=nr,nr=r):(ss=nr,yr=(function(fe,ne){let Is=Array.isArray(fe)&&fe||[fe];return{tableList:Array.from(ut),columnList:vs(De),ast:{type:"show",suffix:Is[2]&&Is[2].toLowerCase(),keyword:Is[0].toLowerCase(),expr:ne}}})(Ar,bt),nr=yr)):(h=nr,nr=r)):(h=nr,nr=r),nr===r&&(nr=(function(){var fe=h,ne,Is,me;(ne=E0())!==r&&Wt()!==r?(t.substr(h,6).toLowerCase()==="grants"?(Is=t.substr(h,6),h+=6):(Is=r,jt===0&&p(db)),Is!==r&&Wt()!==r?((me=(function(){var eo=h,so,$o,Mu,su,Po,Na;t.substr(h,3).toLowerCase()==="for"?(so=t.substr(h,3),h+=3):(so=r,jt===0&&p(dl)),so!==r&&Wt()!==r&&($o=ju())!==r&&Wt()!==r?(Mu=h,(su=Yn())!==r&&(Po=Wt())!==r&&(Na=ju())!==r?Mu=su=[su,Po,Na]:(h=Mu,Mu=r),Mu===r&&(Mu=null),Mu!==r&&(su=Wt())!==r?((Po=(function(){var Nr=h,Rr;return ui()!==r&&Wt()!==r&&(Rr=(function(){var ct,dt,Yt,vn,fn,gn,Vn,Jn;if(ct=h,(dt=ju())!==r){for(Yt=[],vn=h,(fn=Wt())!==r&&(gn=Ke())!==r&&(Vn=Wt())!==r&&(Jn=ju())!==r?vn=fn=[fn,gn,Vn,Jn]:(h=vn,vn=r);vn!==r;)Yt.push(vn),vn=h,(fn=Wt())!==r&&(gn=Ke())!==r&&(Vn=Wt())!==r&&(Jn=ju())!==r?vn=fn=[fn,gn,Vn,Jn]:(h=vn,vn=r);Yt===r?(h=ct,ct=r):(ss=ct,dt=$c(dt,Yt),ct=dt)}else h=ct,ct=r;return ct})())!==r?(ss=Nr,Nr=Rr):(h=Nr,Nr=r),Nr})())===r&&(Po=null),Po===r?(h=eo,eo=r):(ss=eo,ar=Po,so={user:$o,host:(F=Mu)&&F[2],role_list:ar},eo=so)):(h=eo,eo=r)):(h=eo,eo=r);var F,ar;return eo})())===r&&(me=null),me===r?(h=fe,fe=r):(ss=fe,Xe=me,ne={tableList:Array.from(ut),columnList:vs(De),ast:{type:"show",keyword:"grants",for:Xe}},fe=ne)):(h=fe,fe=r)):(h=fe,fe=r);var Xe;return fe})())));var bs,ks,Ws;return nr})())===r&&(A=(function(){var nr=h,yr,Ar;(yr=cl())===r&&(yr=(function(){var bt=h,pr,xt,cn;return t.substr(h,8).toLowerCase()==="describe"?(pr=t.substr(h,8),h+=8):(pr=r,jt===0&&p(ac)),pr===r?(h=bt,bt=r):(xt=h,jt++,cn=Se(),jt--,cn===r?xt=void 0:(h=xt,xt=r),xt===r?(h=bt,bt=r):(ss=bt,bt=pr="DESCRIBE")),bt})()),yr!==r&&Wt()!==r&&(Ar=ju())!==r?(ss=nr,qr=Ar,yr={tableList:Array.from(ut),columnList:vs(De),ast:{type:"desc",table:qr}},nr=yr):(h=nr,nr=r);var qr;return nr})()),A}function Ub(){var A;return(A=Li())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn;return(yr=oi())!==r&&Wt()!==r&&(Ar=Ye())!==r&&Wt()!==r&&Mi()!==r&&Wt()!==r&&(qr=Z0())!==r&&Wt()!==r?((bt=Ac())===r&&(bt=null),bt!==r&&Wt()!==r?((pr=Ic())===r&&(pr=null),pr!==r&&Wt()!==r?((xt=Tc())===r&&(xt=null),xt!==r&&Wt()!==r?((cn=Yc())===r&&(cn=null),cn===r?(h=nr,nr=r):(ss=nr,yr=(function(mn,$n,bs,ks,Ws,fe){let ne={};return mn&&mn.forEach(Is=>{let{server:me,db:Xe,schema:eo,as:so,table:$o,join:Mu}=Is,su=Mu?"select":"update",Po=[me,Xe,eo].filter(Boolean).join(".")||null;Xe&&(ne[$o]=Po),$o&&ut.add(`${su}::${Po}::${$o}`)}),$n&&$n.forEach(Is=>{if(Is.table){let me=rs(Is.table);ut.add(`update::${ne[me]||null}::${me}`)}De.add(`update::${Is.table}::${Is.column}`)}),{tableList:Array.from(ut),columnList:vs(De),ast:{type:"update",table:mn,set:$n,where:bs,returning:ks,orderby:Ws,limit:fe}}})(Ar,qr,bt,pr,xt,cn),nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r),nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn,mn;return(yr=Ul())!==r&&Wt()!==r?((Ar=lb())===r&&(Ar=null),Ar!==r&&Wt()!==r&&(qr=Su())!==r&&Wt()!==r?((bt=J0())===r&&(bt=null),bt!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(pr=or())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r&&(xt=ab())!==r&&Wt()!==r?((cn=ml())===r&&(cn=null),cn!==r&&Wt()!==r?((mn=Ic())===r&&(mn=null),mn===r?(h=nr,nr=r):(ss=nr,yr=(function($n,bs,ks,Ws,fe,ne,Is){if(bs&&(ut.add(`insert::${bs.db}::${bs.table}`),bs.as=null),Ws){let me=bs&&bs.table||null;Array.isArray(fe.values)&&fe.values.forEach((Xe,eo)=>{if(Xe.value.length!=Ws.length)throw Error("Error: column count doesn't match value count at row "+(eo+1))}),Ws.forEach(Xe=>De.add(`insert::${me}::${Xe}`))}return{tableList:Array.from(ut),columnList:vs(De),ast:{...$n,table:[bs],columns:Ws,values:fe,partition:ks,on_duplicate_update:ne,returning:Is}}})(yr,qr,bt,pr,xt,cn,mn),nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r),nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn;return(yr=Ul())!==r&&Wt()!==r?((Ar=(function(){var mn=h,$n,bs,ks;return t.substr(h,6).toLowerCase()==="ignore"?($n=t.substr(h,6),h+=6):($n=r,jt===0&&p(Y0)),$n===r?(h=mn,mn=r):(bs=h,jt++,ks=Se(),jt--,ks===r?bs=void 0:(h=bs,bs=r),bs===r?(h=mn,mn=r):mn=$n=[$n,bs]),mn})())===r&&(Ar=null),Ar!==r&&Wt()!==r?((qr=lb())===r&&(qr=null),qr!==r&&Wt()!==r&&(bt=Su())!==r&&Wt()!==r?((pr=J0())===r&&(pr=null),pr!==r&&Wt()!==r&&(xt=ab())!==r&&Wt()!==r?((cn=ml())===r&&(cn=null),cn===r?(h=nr,nr=r):(ss=nr,yr=(function(mn,$n,bs,ks,Ws,fe,ne){ks&&(ut.add(`insert::${ks.db}::${ks.table}`),De.add(`insert::${ks.table}::(.*)`),ks.as=null);let Is=[$n,bs].filter(me=>me).map(me=>me[0]&&me[0].toLowerCase()).join(" ");return{tableList:Array.from(ut),columnList:vs(De),ast:{...mn,table:[ks],columns:null,values:fe,partition:Ws,prefix:Is,on_duplicate_update:ne}}})(yr,Ar,qr,bt,pr,xt,cn),nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r),nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr;(yr=Ul())!==r&&Wt()!==r&&lb()!==r&&Wt()!==r&&(Ar=Su())!==r&&Wt()!==r?((qr=J0())===r&&(qr=null),qr!==r&&Wt()!==r&&Mi()!==r&&Wt()!==r&&(bt=Z0())!==r&&Wt()!==r?((pr=ml())===r&&(pr=null),pr===r?(h=nr,nr=r):(ss=nr,xt=yr,mn=qr,$n=bt,bs=pr,(cn=Ar)&&(ut.add(`insert::${cn.db}::${cn.table}`),De.add(`insert::${cn.table}::(.*)`),cn.as=null),yr={tableList:Array.from(ut),columnList:vs(De),ast:{...xt,table:[cn],columns:null,partition:mn,set:$n,on_duplicate_update:bs}},nr=yr)):(h=nr,nr=r)):(h=nr,nr=r);var xt,cn,mn,$n,bs;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn;return(yr=Ou())!==r&&Wt()!==r?((Ar=Ye())===r&&(Ar=null),Ar!==r&&Wt()!==r&&(qr=K0())!==r&&Wt()!==r?((bt=Ac())===r&&(bt=null),bt!==r&&Wt()!==r?((pr=Ic())===r&&(pr=null),pr!==r&&Wt()!==r?((xt=Tc())===r&&(xt=null),xt!==r&&Wt()!==r?((cn=Yc())===r&&(cn=null),cn===r?(h=nr,nr=r):(ss=nr,yr=(function(mn,$n,bs,ks,Ws,fe){if($n&&$n.forEach(ne=>{let{db:Is,as:me,table:Xe,join:eo}=ne,so=eo?"select":"delete";Xe&&ut.add(`${so}::${Is}::${Xe}`),eo||De.add(`delete::${Xe}::(.*)`)}),mn===null&&$n.length===1){let ne=$n[0];mn=[{db:ne.db,table:ne.table,as:ne.as,addition:!0}]}return{tableList:Array.from(ut),columnList:vs(De),ast:{type:"delete",table:mn,from:$n,where:bs,returning:ks,orderby:Ws,limit:fe}}})(Ar,qr,bt,pr,xt,cn),nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r),nr})())===r&&(A=Hc())===r&&(A=(function(){for(var nr=[],yr=xu();yr!==r;)nr.push(yr),yr=xu();return nr})()),A}function Ft(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=Ub())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Au())!==r&&(pr=Wt())!==r&&(xt=Ub())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Au())!==r&&(pr=Wt())!==r&&(xt=Ub())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){let $n=cn&&cn.ast||cn,bs=mn&&mn.length&&mn[0].length>=4?[$n]:$n;mn||(mn=[]);for(let ks=0;ks<mn.length;ks++)mn[ks][3]&&mn[ks][3].length!==0&&bs.push(mn[ks][3]&&mn[ks][3].ast||mn[ks][3]);return{tableList:Array.from(ut),columnList:vs(De),ast:bs}})(nr,yr))}else h=A,A=r;return A}function xs(){var A,nr,yr;return A=h,(function(){var Ar=h,qr,bt,pr;return t.substr(h,5).toLowerCase()==="union"?(qr=t.substr(h,5),h+=5):(qr=r,jt===0&&p(Xp)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):Ar=qr=[qr,bt]),Ar})()!==r&&Wt()!==r?((nr=a())===r&&(nr=an()),nr===r&&(nr=null),nr===r?(h=A,A=r):(ss=A,A=(yr=nr)?"union "+yr.toLowerCase():"union")):(h=A,A=r),A}function Li(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=Wi())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=xs())!==r&&(pr=Wt())!==r&&(xt=Wi())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=xs())!==r&&(pr=Wt())!==r&&(xt=Wi())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr!==r&&(Ar=Wt())!==r?((qr=Tc())===r&&(qr=null),qr!==r&&(bt=Wt())!==r?((pr=Yc())===r&&(pr=null),pr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn,$n,bs){let ks=cn;for(let Ws=0;Ws<mn.length;Ws++)ks._next=mn[Ws][3],ks.set_op=mn[Ws][1],ks=ks._next;return $n&&(cn._orderby=$n),bs&&(cn._limit=bs),{tableList:Array.from(ut),columnList:vs(De),ast:cn}})(nr,yr,qr,pr))):(h=A,A=r)):(h=A,A=r)}else h=A,A=r;return A}function Ta(){var A,nr;return A=h,t.substr(h,2).toLowerCase()==="if"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(Pn)),nr!==r&&Wt()!==r&&Zt()!==r&&Wt()!==r&&o()!==r?(ss=A,A=nr="IF NOT EXISTS"):(h=A,A=r),A}function x0(){var A,nr,yr;return A=h,t.substr(h,2).toLowerCase()==="if"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(Ae)),nr!==r&&Wt()!==r?(t.substr(h,6).toLowerCase()==="exists"?(yr=t.substr(h,6),h+=6):(yr=r,jt===0&&p(ou)),yr===r?(h=A,A=r):(ss=A,A=nr="if exists")):(h=A,A=r),A}function Zn(){var A,nr,yr,Ar,qr,bt;return A=h,(nr=il())===r&&(nr=Ou()),nr!==r&&(ss=A,nr={keyword:nr[0].toLowerCase()}),(A=nr)===r&&(A=h,(nr=oi())!==r&&Wt()!==r?(yr=h,t.substr(h,2).toLowerCase()==="of"?(Ar=t.substr(h,2),h+=2):(Ar=r,jt===0&&p(Gi)),Ar!==r&&(qr=Wt())!==r&&(bt=mc())!==r?yr=Ar=[Ar,qr,bt]:(h=yr,yr=r),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(pr,xt){return{keyword:pr[0].toLowerCase(),args:xt&&{keyword:xt[0],columns:xt[2]}||null}})(nr,yr))):(h=A,A=r)),A}function kb(){var A,nr,yr,Ar;return A=h,(nr=fa())!==r&&Wt()!==r?((yr=zi())===r&&(yr=null),yr!==r&&Wt()!==r?((Ar=ll())===r&&(Ar=cl()),Ar===r&&(Ar=null),Ar===r?(h=A,A=r):(ss=A,A=nr=(function(qr,bt,pr){return{collate:bt,...qr,order_by:pr&&pr.toLowerCase()}})(nr,yr,Ar))):(h=A,A=r)):(h=A,A=r),A===r&&(A=(function(){var qr=h,bt,pr;return(bt=Ra())!==r&&Wt()!==r?((pr=ll())===r&&(pr=cl()),pr===r&&(pr=null),pr===r?(h=qr,qr=r):(ss=qr,bt=(function(xt,cn){return{...xt,order_by:cn&&cn.toLowerCase()}})(bt,pr),qr=bt)):(h=qr,qr=r),qr})()),A}function U0(){var A;return(A=hl())===r&&(A=Kn())===r&&(A=Yi())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr;return(yr=(function(){var xt=h,cn,mn,$n;return t.substr(h,8).toLowerCase()==="fulltext"?(cn=t.substr(h,8),h+=8):(cn=r,jt===0&&p(_p)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):(ss=xt,xt=cn="FULLTEXT")),xt})())===r&&(yr=(function(){var xt=h,cn,mn,$n;return t.substr(h,7).toLowerCase()==="spatial"?(cn=t.substr(h,7),h+=7):(cn=r,jt===0&&p(Yv)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):(ss=xt,xt=cn="SPATIAL")),xt})()),yr!==r&&Wt()!==r?((Ar=co())===r&&(Ar=_t()),Ar===r&&(Ar=null),Ar!==r&&Wt()!==r?((qr=Ji())===r&&(qr=null),qr!==r&&Wt()!==r&&(bt=ti())!==r&&Wt()!==r?((pr=w0())===r&&(pr=null),pr!==r&&Wt()!==r?(ss=nr,yr=(function(xt,cn,mn,$n,bs){return{index:mn,definition:$n,keyword:cn&&`${xt.toLowerCase()} ${cn.toLowerCase()}`||xt.toLowerCase(),index_options:bs,resource:"index"}})(yr,Ar,qr,bt,pr),nr=yr):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r),nr})()),A}function C(){var A,nr,yr,Ar,qr;return A=h,(nr=(function(){var bt=h,pr;return(pr=(function(){var xt=h,cn,mn,$n;return t.substr(h,8).toLowerCase()==="not null"?(cn=t.substr(h,8),h+=8):(cn=r,jt===0&&p(lp)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):xt=cn=[cn,mn]),xt})())!==r&&(ss=bt,pr={type:"not null",value:"not null"}),bt=pr})())===r&&(nr=Qi()),nr!==r&&(ss=A,(qr=nr)&&!qr.value&&(qr.value="null"),nr={nullable:qr}),(A=nr)===r&&(A=h,(nr=(function(){var bt=h,pr;return Jt()!==r&&Wt()!==r&&(pr=fa())!==r?(ss=bt,bt={type:"default",value:pr}):(h=bt,bt=r),bt})())!==r&&(ss=A,nr={default_val:nr}),(A=nr)===r&&(A=h,t.substr(h,14).toLowerCase()==="auto_increment"?(nr=t.substr(h,14),h+=14):(nr=r,jt===0&&p(af)),nr===r&&(t.substr(h,13).toLowerCase()==="autoincrement"?(nr=t.substr(h,13),h+=13):(nr=r,jt===0&&p(qf))),nr!==r&&(ss=A,nr={auto_increment:nr.toLowerCase()}),(A=nr)===r&&(A=h,t.substr(h,6).toLowerCase()==="unique"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Uc)),nr!==r&&Wt()!==r?(t.substr(h,3).toLowerCase()==="key"?(yr=t.substr(h,3),h+=3):(yr=r,jt===0&&p(wc)),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(bt){let pr=["unique"];return bt&&pr.push(bt),{unique:pr.join(" ").toLowerCase("")}})(yr))):(h=A,A=r),A===r&&(A=h,t.substr(h,7).toLowerCase()==="primary"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Ll)),nr===r&&(nr=null),nr!==r&&Wt()!==r?(t.substr(h,3).toLowerCase()==="key"?(yr=t.substr(h,3),h+=3):(yr=r,jt===0&&p(wc)),yr===r?(h=A,A=r):(ss=A,A=nr=(function(bt){let pr=[];return bt&&pr.push("primary"),pr.push("key"),{primary_key:pr.join(" ").toLowerCase("")}})(nr))):(h=A,A=r),A===r&&(A=h,(nr=ea())!==r&&(ss=A,nr={comment:nr}),(A=nr)===r&&(A=h,(nr=zo())!==r&&Wt()!==r&&(yr=Nt())!==r?(ss=A,A=nr=(function(bt,pr){return{constraint:{keyword:bt.toLowerCase(),constraint:pr}}})(nr,yr)):(h=A,A=r),A===r&&(A=h,(nr=zi())!==r&&(ss=A,nr={collate:nr}),(A=nr)===r&&(A=h,(nr=(function(){var bt=h,pr,xt;return t.substr(h,13).toLowerCase()==="column_format"?(pr=t.substr(h,13),h+=13):(pr=r,jt===0&&p(jl)),pr!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="fixed"?(xt=t.substr(h,5),h+=5):(xt=r,jt===0&&p(Oi)),xt===r&&(t.substr(h,7).toLowerCase()==="dynamic"?(xt=t.substr(h,7),h+=7):(xt=r,jt===0&&p(bb)),xt===r&&(t.substr(h,7).toLowerCase()==="default"?(xt=t.substr(h,7),h+=7):(xt=r,jt===0&&p(Vi)))),xt===r?(h=bt,bt=r):(ss=bt,pr={type:"column_format",value:xt.toLowerCase()},bt=pr)):(h=bt,bt=r),bt})())!==r&&(ss=A,nr={column_format:nr}),(A=nr)===r&&(A=h,(nr=(function(){var bt=h,pr,xt;return t.substr(h,7).toLowerCase()==="storage"?(pr=t.substr(h,7),h+=7):(pr=r,jt===0&&p(zc)),pr!==r&&Wt()!==r?(t.substr(h,4).toLowerCase()==="disk"?(xt=t.substr(h,4),h+=4):(xt=r,jt===0&&p(kc)),xt===r&&(t.substr(h,6).toLowerCase()==="memory"?(xt=t.substr(h,6),h+=6):(xt=r,jt===0&&p(vb))),xt===r?(h=bt,bt=r):(ss=bt,pr={type:"storage",value:xt.toLowerCase()},bt=pr)):(h=bt,bt=r),bt})())!==r&&(ss=A,nr={storage:nr}),(A=nr)===r&&(A=h,(nr=Bn())!==r&&(ss=A,nr={reference_definition:nr}),(A=nr)===r&&(A=h,(nr=(function(){var bt=h,pr,xt,cn,mn,$n,bs,ks;return(pr=L0())===r&&(pr=null),pr!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="check"?(xt=t.substr(h,5),h+=5):(xt=r,jt===0&&p(I0)),xt!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(cn=Al())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?(mn=h,($n=Zt())===r&&($n=null),$n!==r&&(bs=Wt())!==r?(t.substr(h,8).toLowerCase()==="enforced"?(ks=t.substr(h,8),h+=8):(ks=r,jt===0&&p(Mc)),ks===r?(h=mn,mn=r):mn=$n=[$n,bs,ks]):(h=mn,mn=r),mn===r&&(mn=null),mn===r?(h=bt,bt=r):(ss=bt,pr=(function(Ws,fe,ne,Is){let me=[];return Is&&me.push(Is[0],Is[2]),{constraint_type:fe.toLowerCase(),keyword:Ws&&Ws.keyword,constraint:Ws&&Ws.constraint,definition:[ne],enforced:me.filter(Xe=>Xe).join(" ").toLowerCase(),resource:"constraint"}})(pr,xt,cn,mn),bt=pr)):(h=bt,bt=r)):(h=bt,bt=r),bt})())!==r&&(ss=A,nr={check:nr}),(A=nr)===r&&(A=h,(nr=C0())!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r&&(Ar=Nt())!==r?(ss=A,A=nr=(function(bt,pr,xt){return{character_set:{type:bt,value:xt,symbol:pr}}})(nr,yr,Ar)):(h=A,A=r)):(h=A,A=r))))))))))))),A}function Kn(){var A,nr,yr,Ar;return A=h,(nr=qi())!==r&&Wt()!==r?((yr=ur())===r&&(yr=null),yr!==r&&Wt()!==r?((Ar=(function(){var qr,bt,pr,xt,cn,mn;if(qr=h,(bt=C())!==r)if(Wt()!==r){for(pr=[],xt=h,(cn=Wt())!==r&&(mn=C())!==r?xt=cn=[cn,mn]:(h=xt,xt=r);xt!==r;)pr.push(xt),xt=h,(cn=Wt())!==r&&(mn=C())!==r?xt=cn=[cn,mn]:(h=xt,xt=r);pr===r?(h=qr,qr=r):(ss=qr,qr=bt=(function($n,bs){let ks=$n;for(let Ws=0;Ws<bs.length;Ws++)ks={...ks,...bs[Ws][1]};return ks})(bt,pr))}else h=qr,qr=r;else h=qr,qr=r;return qr})())===r&&(Ar=null),Ar===r?(h=A,A=r):(ss=A,A=nr=(function(qr,bt,pr){return De.add(`create::${qr.table}::${qr.value||qr}`),{column:{type:"column_ref",table:null,column:qr},definition:bt,resource:"column",...pr||{}}})(nr,yr,Ar))):(h=A,A=r)):(h=A,A=r),A}function zi(){var A,nr,yr;return A=h,(function(){var Ar=h,qr,bt,pr;return t.substr(h,7).toLowerCase()==="collate"?(qr=t.substr(h,7),h+=7):(qr=r,jt===0&&p(Ao)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="COLLATE")),Ar})()!==r&&Wt()!==r?((nr=kt())===r&&(nr=null),nr!==r&&Wt()!==r&&(yr=ju())!==r?(ss=A,A={type:"collate",keyword:"collate",collate:{name:yr,symbol:nr}}):(h=A,A=r)):(h=A,A=r),A}function Kl(){var A,nr,yr;return A=h,t.substr(h,5).toLowerCase()==="first"?(nr=t.substr(h,5),h+=5):(nr=r,jt===0&&p(Zc)),nr!==r&&(ss=A,nr={keyword:nr}),(A=nr)===r&&(A=h,t.substr(h,5).toLowerCase()==="after"?(nr=t.substr(h,5),h+=5):(nr=r,jt===0&&p(nl)),nr!==r&&Wt()!==r&&(yr=Ra())!==r?(ss=A,A=nr=(function(Ar,qr){return{keyword:Ar,expr:qr}})(nr,yr)):(h=A,A=r)),A}function zl(){var A,nr,yr;return(A=(function(){var Ar=h,qr,bt;return(qr=Js())!==r&&Wt()!==r&&(bt=hl())!==r?(ss=Ar,qr=(function(pr){return{action:"add",create_definitions:pr,resource:"constraint",type:"alter"}})(bt),Ar=qr):(h=Ar,Ar=r),Ar})())===r&&(A=(function(){var Ar=h,qr,bt,pr;return(qr=kl())!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="check"?(bt=t.substr(h,5),h+=5):(bt=r,jt===0&&p(I0)),bt!==r&&Wt()!==r&&(pr=qu())!==r?(ss=Ar,qr=(function(xt,cn){return{action:"drop",constraint:cn,keyword:xt.toLowerCase(),resource:"constraint",type:"alter"}})(bt,pr),Ar=qr):(h=Ar,Ar=r)):(h=Ar,Ar=r),Ar})())===r&&(A=(function(){var Ar=h,qr,bt,pr,xt,cn;return(qr=kl())!==r&&Wt()!==r?(t.substr(h,7).toLowerCase()==="primary"?(bt=t.substr(h,7),h+=7):(bt=r,jt===0&&p(Ll)),bt!==r&&(pr=Wt())!==r&&(xt=_t())!==r?(ss=Ar,Ar=qr={action:"drop",key:"",keyword:"primary key",resource:"key",type:"alter"}):(h=Ar,Ar=r)):(h=Ar,Ar=r),Ar===r&&(Ar=h,(qr=kl())!==r&&Wt()!==r?(bt=h,t.substr(h,7).toLowerCase()==="foreign"?(pr=t.substr(h,7),h+=7):(pr=r,jt===0&&p(Xf)),pr===r&&(pr=null),pr!==r&&(xt=Wt())!==r&&(cn=_t())!==r?bt=pr=[pr,xt,cn]:(h=bt,bt=r),bt===r&&(bt=co()),bt!==r&&(pr=Wt())!==r&&(xt=ju())!==r?(ss=Ar,qr=(function(mn,$n){let bs=Array.isArray(mn)?"key":"index";return{action:"drop",[bs]:$n,keyword:Array.isArray(mn)?""+[mn[0],mn[2]].filter(ks=>ks).join(" ").toLowerCase():mn.toLowerCase(),resource:bs,type:"alter"}})(bt,xt),Ar=qr):(h=Ar,Ar=r)):(h=Ar,Ar=r)),Ar})())===r&&(A=(function(){var Ar=h,qr,bt,pr;(qr=Js())!==r&&Wt()!==r?((bt=Ve())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=Kn())!==r?(ss=Ar,xt=bt,cn=pr,qr={action:"add",...cn,keyword:xt,resource:"column",type:"alter"},Ar=qr):(h=Ar,Ar=r)):(h=Ar,Ar=r);var xt,cn;return Ar})())===r&&(A=(function(){var Ar=h,qr,bt,pr;return(qr=kl())!==r&&Wt()!==r?((bt=Ve())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=Ra())!==r?(ss=Ar,qr=(function(xt,cn){return{action:"drop",column:cn,keyword:xt,resource:"column",type:"alter"}})(bt,pr),Ar=qr):(h=Ar,Ar=r)):(h=Ar,Ar=r),Ar})())===r&&(A=(function(){var Ar=h,qr,bt,pr,xt;(qr=(function(){var $n=h,bs,ks,Ws;return t.substr(h,6).toLowerCase()==="modify"?(bs=t.substr(h,6),h+=6):(bs=r,jt===0&&p(ys)),bs===r?(h=$n,$n=r):(ks=h,jt++,Ws=Se(),jt--,Ws===r?ks=void 0:(h=ks,ks=r),ks===r?(h=$n,$n=r):(ss=$n,$n=bs="MODIFY")),$n})())!==r&&Wt()!==r?((bt=Ve())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=Kn())!==r&&Wt()!==r?((xt=Kl())===r&&(xt=null),xt===r?(h=Ar,Ar=r):(ss=Ar,cn=pr,mn=xt,qr={action:"modify",keyword:bt,...cn,suffix:mn,resource:"column",type:"alter"},Ar=qr)):(h=Ar,Ar=r)):(h=Ar,Ar=r);var cn,mn;return Ar})())===r&&(A=(function(){var Ar=h,qr,bt;(qr=Js())!==r&&Wt()!==r&&(bt=Yi())!==r?(ss=Ar,pr=bt,qr={action:"add",type:"alter",...pr},Ar=qr):(h=Ar,Ar=r);var pr;return Ar})())===r&&(A=(function(){var Ar=h,qr,bt,pr,xt;return(qr=zu())!==r&&Wt()!==r&&Ve()!==r&&Wt()!==r&&(bt=Ra())!==r&&Wt()!==r?((pr=nf())===r&&(pr=ha()),pr===r&&(pr=null),pr!==r&&Wt()!==r&&(xt=Ra())!==r?(ss=Ar,qr=(function(cn,mn,$n){return{action:"rename",type:"alter",resource:"column",keyword:"column",old_column:cn,prefix:mn&&mn[0].toLowerCase(),column:$n}})(bt,pr,xt),Ar=qr):(h=Ar,Ar=r)):(h=Ar,Ar=r),Ar})())===r&&(A=(function(){var Ar=h,qr,bt,pr;(qr=zu())!==r&&Wt()!==r?((bt=nf())===r&&(bt=ha()),bt===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=ju())!==r?(ss=Ar,cn=pr,qr={action:"rename",type:"alter",resource:"table",keyword:(xt=bt)&&xt[0].toLowerCase(),table:cn},Ar=qr):(h=Ar,Ar=r)):(h=Ar,Ar=r);var xt,cn;return Ar})())===r&&(A=Ot())===r&&(A=hs())===r&&(A=(function(){var Ar=h,qr,bt,pr,xt,cn;t.substr(h,6).toLowerCase()==="change"?(qr=t.substr(h,6),h+=6):(qr=r,jt===0&&p(gl)),qr!==r&&Wt()!==r?((bt=Ve())===r&&(bt=null),bt!==r&&Wt()!==r&&(pr=Ra())!==r&&Wt()!==r&&(xt=Kn())!==r&&Wt()!==r?((cn=Kl())===r&&(cn=null),cn===r?(h=Ar,Ar=r):(ss=Ar,mn=bt,$n=xt,bs=cn,qr={action:"change",old_column:pr,...$n,keyword:mn,resource:"column",type:"alter",suffix:bs},Ar=qr)):(h=Ar,Ar=r)):(h=Ar,Ar=r);var mn,$n,bs;return Ar})())===r&&(A=h,(nr=k0())!==r&&(ss=A,(yr=nr).resource=yr.keyword,yr[yr.keyword]=yr.value,delete yr.value,nr={type:"alter",...yr}),A=nr),A}function Ot(){var A,nr,yr,Ar;return A=h,t.substr(h,9).toLowerCase()==="algorithm"?(nr=t.substr(h,9),h+=9):(nr=r,jt===0&&p(lf)),nr!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r?(t.substr(h,7).toLowerCase()==="default"?(Ar=t.substr(h,7),h+=7):(Ar=r,jt===0&&p(Vi)),Ar===r&&(t.substr(h,7).toLowerCase()==="instant"?(Ar=t.substr(h,7),h+=7):(Ar=r,jt===0&&p(Jc)),Ar===r&&(t.substr(h,7).toLowerCase()==="inplace"?(Ar=t.substr(h,7),h+=7):(Ar=r,jt===0&&p(Qc)),Ar===r&&(t.substr(h,4).toLowerCase()==="copy"?(Ar=t.substr(h,4),h+=4):(Ar=r,jt===0&&p(gv))))),Ar===r?(h=A,A=r):(ss=A,A=nr={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:yr,algorithm:Ar})):(h=A,A=r)):(h=A,A=r),A}function hs(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="lock"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(g0)),nr!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r?(t.substr(h,7).toLowerCase()==="default"?(Ar=t.substr(h,7),h+=7):(Ar=r,jt===0&&p(Vi)),Ar===r&&(t.substr(h,4).toLowerCase()==="none"?(Ar=t.substr(h,4),h+=4):(Ar=r,jt===0&&p(Ki)),Ar===r&&(t.substr(h,6).toLowerCase()==="shared"?(Ar=t.substr(h,6),h+=6):(Ar=r,jt===0&&p(Pb)),Ar===r&&(t.substr(h,9).toLowerCase()==="exclusive"?(Ar=t.substr(h,9),h+=9):(Ar=r,jt===0&&p(ei))))),Ar===r?(h=A,A=r):(ss=A,A=nr={type:"alter",keyword:"lock",resource:"lock",symbol:yr,lock:Ar})):(h=A,A=r)):(h=A,A=r),A}function Yi(){var A,nr,yr,Ar,qr,bt;return A=h,(nr=co())===r&&(nr=_t()),nr!==r&&Wt()!==r?((yr=Ji())===r&&(yr=null),yr!==r&&Wt()!==r?((Ar=El())===r&&(Ar=null),Ar!==r&&Wt()!==r&&(qr=ti())!==r&&Wt()!==r?((bt=w0())===r&&(bt=null),bt!==r&&Wt()!==r?(ss=A,A=nr=(function(pr,xt,cn,mn,$n){return{index:xt,definition:mn,keyword:pr.toLowerCase(),index_type:cn,resource:"index",index_options:$n}})(nr,yr,Ar,qr,bt)):(h=A,A=r)):(h=A,A=r)):(h=A,A=r)):(h=A,A=r),A}function hl(){var A;return(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn;(yr=L0())===r&&(yr=null),yr!==r&&Wt()!==r?(Ar=h,t.substr(h,7).toLowerCase()==="primary"?(qr=t.substr(h,7),h+=7):(qr=r,jt===0&&p(Ll)),qr!==r&&(bt=Wt())!==r?(t.substr(h,3).toLowerCase()==="key"?(pr=t.substr(h,3),h+=3):(pr=r,jt===0&&p(wc)),pr===r?(h=Ar,Ar=r):Ar=qr=[qr,bt,pr]):(h=Ar,Ar=r),Ar!==r&&(qr=Wt())!==r?((bt=El())===r&&(bt=null),bt!==r&&(pr=Wt())!==r&&(xt=ti())!==r&&Wt()!==r?((cn=w0())===r&&(cn=null),cn===r?(h=nr,nr=r):(ss=nr,$n=Ar,bs=bt,ks=xt,Ws=cn,yr={constraint:(mn=yr)&&mn.constraint,definition:ks,constraint_type:`${$n[0].toLowerCase()} ${$n[2].toLowerCase()}`,keyword:mn&&mn.keyword,index_type:bs,resource:"constraint",index_options:Ws},nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r);var mn,$n,bs,ks,Ws;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn;(yr=L0())===r&&(yr=null),yr!==r&&Wt()!==r&&(Ar=Eo())!==r&&Wt()!==r?((qr=co())===r&&(qr=_t()),qr===r&&(qr=null),qr!==r&&Wt()!==r?((bt=Ji())===r&&(bt=null),bt!==r&&Wt()!==r?((pr=El())===r&&(pr=null),pr!==r&&Wt()!==r&&(xt=ti())!==r&&Wt()!==r?((cn=w0())===r&&(cn=null),cn===r?(h=nr,nr=r):(ss=nr,$n=Ar,bs=qr,ks=bt,Ws=pr,fe=xt,ne=cn,yr={constraint:(mn=yr)&&mn.constraint,definition:fe,constraint_type:bs&&`${$n.toLowerCase()} ${bs.toLowerCase()}`||$n.toLowerCase(),keyword:mn&&mn.keyword,index_type:Ws,index:ks,resource:"constraint",index_options:ne},nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r);var mn,$n,bs,ks,Ws,fe,ne;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr;(yr=L0())===r&&(yr=null),yr!==r&&Wt()!==r?(t.substr(h,11).toLowerCase()==="foreign key"?(Ar=t.substr(h,11),h+=11):(Ar=r,jt===0&&p(B0)),Ar!==r&&Wt()!==r?((qr=Ji())===r&&(qr=null),qr!==r&&Wt()!==r&&(bt=ti())!==r&&Wt()!==r?((pr=Bn())===r&&(pr=null),pr===r?(h=nr,nr=r):(ss=nr,cn=Ar,mn=qr,$n=bt,bs=pr,yr={constraint:(xt=yr)&&xt.constraint,definition:$n,constraint_type:cn,keyword:xt&&xt.keyword,index:mn,resource:"constraint",reference_definition:bs},nr=yr)):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r);var xt,cn,mn,$n,bs;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn,mn,$n;return(yr=L0())===r&&(yr=null),yr!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="check"?(Ar=t.substr(h,5),h+=5):(Ar=r,jt===0&&p(I0)),Ar!==r&&Wt()!==r?(qr=h,t.substr(h,3).toLowerCase()==="not"?(bt=t.substr(h,3),h+=3):(bt=r,jt===0&&p(pb)),bt!==r&&(pr=Wt())!==r?(t.substr(h,3).toLowerCase()==="for"?(xt=t.substr(h,3),h+=3):(xt=r,jt===0&&p(dl)),xt!==r&&(cn=Wt())!==r?(t.substr(h,11).toLowerCase()==="replication"?(mn=t.substr(h,11),h+=11):(mn=r,jt===0&&p(j0)),mn!==r&&($n=Wt())!==r?qr=bt=[bt,pr,xt,cn,mn,$n]:(h=qr,qr=r)):(h=qr,qr=r)):(h=qr,qr=r),qr===r&&(qr=null),qr!==r&&(bt=lo())!==r&&(pr=Wt())!==r&&(xt=Al())!==r&&(cn=Wt())!==r&&(mn=Co())!==r?(ss=nr,yr=(function(bs,ks,Ws,fe){return{constraint_type:ks.toLowerCase(),keyword:bs&&bs.keyword,constraint:bs&&bs.constraint,index_type:Ws&&{keyword:"not for replication"},definition:[fe],resource:"constraint"}})(yr,Ar,qr,xt),nr=yr):(h=nr,nr=r)):(h=nr,nr=r)):(h=nr,nr=r),nr})()),A}function L0(){var A,nr,yr;return A=h,(nr=zo())!==r&&Wt()!==r?((yr=ju())===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(Ar,qr){return{keyword:Ar.toLowerCase(),constraint:qr}})(nr,yr))):(h=A,A=r),A}function Bn(){var A,nr,yr,Ar,qr,bt,pr,xt,cn,mn;return A=h,(nr=(function(){var $n=h,bs,ks,Ws;return t.substr(h,10).toLowerCase()==="references"?(bs=t.substr(h,10),h+=10):(bs=r,jt===0&&p(zb)),bs===r?(h=$n,$n=r):(ks=h,jt++,Ws=Se(),jt--,Ws===r?ks=void 0:(h=ks,ks=r),ks===r?(h=$n,$n=r):(ss=$n,$n=bs="REFERENCES")),$n})())!==r&&Wt()!==r&&(yr=Su())!==r&&Wt()!==r&&(Ar=ti())!==r&&Wt()!==r?(t.substr(h,10).toLowerCase()==="match full"?(qr=t.substr(h,10),h+=10):(qr=r,jt===0&&p(Cl)),qr===r&&(t.substr(h,13).toLowerCase()==="match partial"?(qr=t.substr(h,13),h+=13):(qr=r,jt===0&&p($u)),qr===r&&(t.substr(h,12).toLowerCase()==="match simple"?(qr=t.substr(h,12),h+=12):(qr=r,jt===0&&p(r0)))),qr===r&&(qr=null),qr!==r&&Wt()!==r?((bt=Qb())===r&&(bt=null),bt!==r&&Wt()!==r?((pr=Qb())===r&&(pr=null),pr===r?(h=A,A=r):(ss=A,xt=qr,cn=bt,mn=pr,A=nr={definition:Ar,table:[yr],keyword:nr.toLowerCase(),match:xt&&xt.toLowerCase(),on_action:[cn,mn].filter($n=>$n)})):(h=A,A=r)):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,(nr=Qb())!==r&&(ss=A,nr={on_action:[nr]}),A=nr),A}function Qb(){var A,nr,yr,Ar;return A=h,Di()!==r&&Wt()!==r?((nr=Ou())===r&&(nr=oi()),nr!==r&&Wt()!==r&&(yr=(function(){var qr=h,bt,pr;return(bt=Mr())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r?((pr=Tf())===r&&(pr=null),pr!==r&&Wt()!==r&&Co()!==r?(ss=qr,qr=bt={type:"function",name:{name:[{type:"origin",value:bt}]},args:pr}):(h=qr,qr=r)):(h=qr,qr=r),qr===r&&(qr=h,t.substr(h,8).toLowerCase()==="restrict"?(bt=t.substr(h,8),h+=8):(bt=r,jt===0&&p(zn)),bt===r&&(t.substr(h,7).toLowerCase()==="cascade"?(bt=t.substr(h,7),h+=7):(bt=r,jt===0&&p(Ss)),bt===r&&(t.substr(h,8).toLowerCase()==="set null"?(bt=t.substr(h,8),h+=8):(bt=r,jt===0&&p(te)),bt===r&&(t.substr(h,9).toLowerCase()==="no action"?(bt=t.substr(h,9),h+=9):(bt=r,jt===0&&p(ce)),bt===r&&(t.substr(h,11).toLowerCase()==="set default"?(bt=t.substr(h,11),h+=11):(bt=r,jt===0&&p(He)),bt===r&&(bt=Mr()))))),bt!==r&&(ss=qr,bt={type:"origin",value:bt.toLowerCase()}),qr=bt),qr})())!==r?(ss=A,Ar=yr,A={type:"on "+nr[0].toLowerCase(),value:Ar}):(h=A,A=r)):(h=A,A=r),A}function C0(){var A,nr,yr;return A=h,t.substr(h,9).toLowerCase()==="character"?(nr=t.substr(h,9),h+=9):(nr=r,jt===0&&p(Ue)),nr!==r&&Wt()!==r?(t.substr(h,3).toLowerCase()==="set"?(yr=t.substr(h,3),h+=3):(yr=r,jt===0&&p(Qe)),yr===r?(h=A,A=r):(ss=A,A=nr="CHARACTER SET")):(h=A,A=r),A}function Hf(){var A,nr,yr,Ar,qr,bt,pr,xt,cn;return A=h,(nr=Jt())===r&&(nr=null),nr!==r&&Wt()!==r?((yr=C0())===r&&(t.substr(h,7).toLowerCase()==="charset"?(yr=t.substr(h,7),h+=7):(yr=r,jt===0&&p(uo)),yr===r&&(t.substr(h,7).toLowerCase()==="collate"?(yr=t.substr(h,7),h+=7):(yr=r,jt===0&&p(Ao)))),yr!==r&&Wt()!==r?((Ar=kt())===r&&(Ar=null),Ar!==r&&Wt()!==r&&(qr=Nt())!==r?(ss=A,pr=yr,xt=Ar,cn=qr,A=nr={keyword:(bt=nr)&&`${bt[0].toLowerCase()} ${pr.toLowerCase()}`||pr.toLowerCase(),symbol:xt,value:cn}):(h=A,A=r)):(h=A,A=r)):(h=A,A=r),A}function k0(){var A,nr,yr,Ar,qr,bt,pr,xt,cn;return A=h,t.substr(h,14).toLowerCase()==="auto_increment"?(nr=t.substr(h,14),h+=14):(nr=r,jt===0&&p(af)),nr===r&&(t.substr(h,14).toLowerCase()==="avg_row_length"?(nr=t.substr(h,14),h+=14):(nr=r,jt===0&&p(Pu)),nr===r&&(t.substr(h,14).toLowerCase()==="key_block_size"?(nr=t.substr(h,14),h+=14):(nr=r,jt===0&&p(Ca)),nr===r&&(t.substr(h,8).toLowerCase()==="max_rows"?(nr=t.substr(h,8),h+=8):(nr=r,jt===0&&p(ku)),nr===r&&(t.substr(h,8).toLowerCase()==="min_rows"?(nr=t.substr(h,8),h+=8):(nr=r,jt===0&&p(ca)),nr===r&&(t.substr(h,18).toLowerCase()==="stats_sample_pages"?(nr=t.substr(h,18),h+=18):(nr=r,jt===0&&p(na))))))),nr!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r&&(Ar=vi())!==r?(ss=A,xt=yr,cn=Ar,A=nr={keyword:nr.toLowerCase(),symbol:xt,value:cn.value}):(h=A,A=r)):(h=A,A=r),A===r&&(A=Hf())===r&&(A=h,(nr=ao())===r&&(t.substr(h,10).toLowerCase()==="connection"?(nr=t.substr(h,10),h+=10):(nr=r,jt===0&&p(Qa))),nr!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r&&(Ar=ya())!==r?(ss=A,A=nr=(function(mn,$n,bs){return{keyword:mn.toLowerCase(),symbol:$n,value:`'${bs.value}'`}})(nr,yr,Ar)):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,t.substr(h,11).toLowerCase()==="compression"?(nr=t.substr(h,11),h+=11):(nr=r,jt===0&&p(cf)),nr!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r?(Ar=h,t.charCodeAt(h)===39?(qr="'",h++):(qr=r,jt===0&&p(ri)),qr===r?(h=Ar,Ar=r):(t.substr(h,4).toLowerCase()==="zlib"?(bt=t.substr(h,4),h+=4):(bt=r,jt===0&&p(t0)),bt===r&&(t.substr(h,3).toLowerCase()==="lz4"?(bt=t.substr(h,3),h+=3):(bt=r,jt===0&&p(n0)),bt===r&&(t.substr(h,4).toLowerCase()==="none"?(bt=t.substr(h,4),h+=4):(bt=r,jt===0&&p(Ki)))),bt===r?(h=Ar,Ar=r):(t.charCodeAt(h)===39?(pr="'",h++):(pr=r,jt===0&&p(ri)),pr===r?(h=Ar,Ar=r):Ar=qr=[qr,bt,pr])),Ar===r?(h=A,A=r):(ss=A,A=nr=(function(mn,$n,bs){return{keyword:mn.toLowerCase(),symbol:$n,value:bs.join("").toUpperCase()}})(nr,yr,Ar))):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,t.substr(h,6).toLowerCase()==="engine"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Dc)),nr!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r&&(Ar=qu())!==r?(ss=A,A=nr=(function(mn,$n,bs){return{keyword:mn.toLowerCase(),symbol:$n,value:bs.toUpperCase()}})(nr,yr,Ar)):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,t.substr(h,7).toLowerCase()==="without"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(s0)),nr!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="rowid"?(yr=t.substr(h,5),h+=5):(yr=r,jt===0&&p(Rv)),yr===r?(h=A,A=r):(ss=A,A=nr={keyword:"without rowid"})):(h=A,A=r),A===r&&(A=h,t.substr(h,6).toLowerCase()==="strict"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(nv)),nr!==r&&(ss=A,nr={keyword:"strict"}),A=nr))))),A}function M0(){var A,nr,yr,Ar,qr;return A=h,(nr=z0())!==r&&Wt()!==r&&(yr=(function(){var bt,pr,xt;return bt=h,t.substr(h,4).toLowerCase()==="read"?(pr=t.substr(h,4),h+=4):(pr=r,jt===0&&p(sv)),pr!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="local"?(xt=t.substr(h,5),h+=5):(xt=r,jt===0&&p(xc)),xt===r&&(xt=null),xt===r?(h=bt,bt=r):(ss=bt,bt=pr={type:"read",suffix:xt&&"local"})):(h=bt,bt=r),bt===r&&(bt=h,t.substr(h,12).toLowerCase()==="low_priority"?(pr=t.substr(h,12),h+=12):(pr=r,jt===0&&p(ev)),pr===r&&(pr=null),pr!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="write"?(xt=t.substr(h,5),h+=5):(xt=r,jt===0&&p(yc)),xt===r?(h=bt,bt=r):(ss=bt,bt=pr={type:"write",prefix:pr&&"low_priority"})):(h=bt,bt=r)),bt})())!==r?(ss=A,Ar=nr,qr=yr,ut.add(`lock::${Ar.db}::${Ar.table}`),A=nr={table:Ar,lock_type:qr}):(h=A,A=r),A}function Wi(){var A,nr,yr,Ar,qr,bt,pr;return(A=We())===r&&(A=h,nr=h,t.charCodeAt(h)===40?(yr="(",h++):(yr=r,jt===0&&p(Of)),yr!==r&&(Ar=Wt())!==r&&(qr=Wi())!==r&&(bt=Wt())!==r?(t.charCodeAt(h)===41?(pr=")",h++):(pr=r,jt===0&&p(Pc)),pr===r?(h=nr,nr=r):nr=yr=[yr,Ar,qr,bt,pr]):(h=nr,nr=r),nr!==r&&(ss=A,nr={...nr[2],parentheses_symbol:!0}),A=nr),A}function wa(){var A,nr,yr,Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks;if(A=h,$i()!==r)if(Wt()!==r)if((nr=Oa())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=Oa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=Oa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=ji(nr,yr))}else h=A,A=r;else h=A,A=r;else h=A,A=r;if(A===r)if(A=h,Wt()!==r)if($i()!==r)if((nr=Wt())!==r)if((yr=(function(){var Ws=h,fe,ne,Is;return t.substr(h,9).toLowerCase()==="recursive"?(fe=t.substr(h,9),h+=9):(fe=r,jt===0&&p(oc)),fe===r?(h=Ws,Ws=r):(ne=h,jt++,Is=Se(),jt--,Is===r?ne=void 0:(h=ne,ne=r),ne===r?(h=Ws,Ws=r):Ws=fe=[fe,ne]),Ws})())!==r)if((Ar=Wt())!==r)if((qr=Oa())!==r){for(bt=[],pr=h,(xt=Wt())!==r&&(cn=Ke())!==r&&(mn=Wt())!==r&&($n=Oa())!==r?pr=xt=[xt,cn,mn,$n]:(h=pr,pr=r);pr!==r;)bt.push(pr),pr=h,(xt=Wt())!==r&&(cn=Ke())!==r&&(mn=Wt())!==r&&($n=Oa())!==r?pr=xt=[xt,cn,mn,$n]:(h=pr,pr=r);bt===r?(h=A,A=r):(ss=A,ks=bt,(bs=qr).recursive=!0,A=ir(bs,ks))}else h=A,A=r;else h=A,A=r;else h=A,A=r;else h=A,A=r;else h=A,A=r;else h=A,A=r;return A}function Oa(){var A,nr,yr,Ar;return A=h,(nr=ya())===r&&(nr=qu())===r&&(nr=Su()),nr!==r&&Wt()!==r?((yr=ti())===r&&(yr=null),yr!==r&&Wt()!==r&&ha()!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(Ar=Li())!==r&&Wt()!==r&&Co()!==r?(ss=A,A=nr=(function(qr,bt,pr){return typeof qr=="string"&&(qr={type:"default",value:qr}),qr.table&&(qr={type:"default",value:qr.table}),{name:qr,stmt:pr,columns:bt}})(nr,yr,Ar)):(h=A,A=r)):(h=A,A=r),A}function ti(){var A,nr;return A=h,lo()!==r&&Wt()!==r&&(nr=(function(){var yr;return(yr=mc())===r&&(yr=(function(){var Ar,qr,bt,pr,xt,cn,mn,$n;if(Ar=h,(qr=Ba())!==r){for(bt=[],pr=h,(xt=Wt())!==r&&(cn=Ke())!==r&&(mn=Wt())!==r&&($n=Ba())!==r?pr=xt=[xt,cn,mn,$n]:(h=pr,pr=r);pr!==r;)bt.push(pr),pr=h,(xt=Wt())!==r&&(cn=Ke())!==r&&(mn=Wt())!==r&&($n=Ba())!==r?pr=xt=[xt,cn,mn,$n]:(h=pr,pr=r);bt===r?(h=Ar,Ar=r):(ss=Ar,qr=ji(qr,bt),Ar=qr)}else h=Ar,Ar=r;return Ar})()),yr})())!==r&&Wt()!==r&&Co()!==r?(ss=A,A=nr):(h=A,A=r),A}function We(){var A,nr,yr,Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks,Ws,fe;return A=h,Wt()===r?(h=A,A=r):((nr=wa())===r&&(nr=null),nr!==r&&Wt()!==r&&(function(){var ne=h,Is,me,Xe;return t.substr(h,6).toLowerCase()==="select"?(Is=t.substr(h,6),h+=6):(Is=r,jt===0&&p(f0)),Is===r?(h=ne,ne=r):(me=h,jt++,Xe=Se(),jt--,Xe===r?me=void 0:(h=me,me=r),me===r?(h=ne,ne=r):ne=Is=[Is,me]),ne})()!==r&&ta()!==r?((yr=(function(){var ne,Is,me,Xe,eo,so;if(ne=h,(Is=ob())!==r){for(me=[],Xe=h,(eo=Wt())!==r&&(so=ob())!==r?Xe=eo=[eo,so]:(h=Xe,Xe=r);Xe!==r;)me.push(Xe),Xe=h,(eo=Wt())!==r&&(so=ob())!==r?Xe=eo=[eo,so]:(h=Xe,Xe=r);me===r?(h=ne,ne=r):(ss=ne,Is=(function($o,Mu){let su=[$o];for(let Po=0,Na=Mu.length;Po<Na;++Po)su.push(Mu[Po][1]);return su})(Is,me),ne=Is)}else h=ne,ne=r;return ne})())===r&&(yr=null),yr!==r&&Wt()!==r?((Ar=an())===r&&(Ar=null),Ar!==r&&Wt()!==r&&(qr=V0())!==r&&Wt()!==r?((bt=K0())===r&&(bt=null),bt!==r&&Wt()!==r?((pr=Ac())===r&&(pr=null),pr!==r&&Wt()!==r?((xt=(function(){var ne=h,Is,me;return(Is=(function(){var Xe=h,eo,so,$o;return t.substr(h,5).toLowerCase()==="group"?(eo=t.substr(h,5),h+=5):(eo=r,jt===0&&p(Kp)),eo===r?(h=Xe,Xe=r):(so=h,jt++,$o=Se(),jt--,$o===r?so=void 0:(h=so,so=r),so===r?(h=Xe,Xe=r):Xe=eo=[eo,so]),Xe})())!==r&&Wt()!==r&&ai()!==r&&Wt()!==r&&(me=Tf())!==r?(ss=ne,Is={columns:me.value},ne=Is):(h=ne,ne=r),ne})())===r&&(xt=null),xt!==r&&Wt()!==r?((cn=(function(){var ne=h,Is;return(function(){var me=h,Xe,eo,so;return t.substr(h,6).toLowerCase()==="having"?(Xe=t.substr(h,6),h+=6):(Xe=r,jt===0&&p(Cp)),Xe===r?(h=me,me=r):(eo=h,jt++,so=Se(),jt--,so===r?eo=void 0:(h=eo,eo=r),eo===r?(h=me,me=r):me=Xe=[Xe,eo]),me})()!==r&&Wt()!==r&&(Is=Zi())!==r?(ss=ne,ne=Is):(h=ne,ne=r),ne})())===r&&(cn=null),cn!==r&&Wt()!==r?((mn=Tc())===r&&(mn=null),mn!==r&&Wt()!==r?(($n=Yc())===r&&($n=null),$n===r?(h=A,A=r):(bs=h,t.substr(h,3).toLowerCase()==="for"?(ks=t.substr(h,3),h+=3):(ks=r,jt===0&&p(dl)),ks!==r&&(Ws=Wt())!==r&&(fe=oi())!==r?bs=ks=[ks,Ws,fe]:(h=bs,bs=r),bs===r&&(bs=null),bs===r?(h=A,A=r):(ss=A,A=(function(ne,Is,me,Xe,eo,so,$o,Mu,su,Po,Na){return eo&&eo.forEach(F=>F.table&&ut.add(`select::${F.db}::${F.table}`)),{with:ne,type:"select",options:Is,distinct:me,columns:Xe,from:eo,where:so,groupby:$o,having:Mu,orderby:su,limit:Po,for_update:Na&&`${Na[0]} ${Na[2][0]}`}})(nr,yr,Ar,qr,bt,pr,xt,cn,mn,$n,bs)))):(h=A,A=r)):(h=A,A=r)):(h=A,A=r)):(h=A,A=r)):(h=A,A=r)):(h=A,A=r)):(h=A,A=r)):(h=A,A=r)),A}function ob(){var A,nr;return A=h,(nr=(function(){var yr;return t.substr(h,19).toLowerCase()==="sql_calc_found_rows"?(yr=t.substr(h,19),h+=19):(yr=r,jt===0&&p(wf)),yr})())===r&&((nr=(function(){var yr;return t.substr(h,9).toLowerCase()==="sql_cache"?(yr=t.substr(h,9),h+=9):(yr=r,jt===0&&p(qv)),yr})())===r&&(nr=(function(){var yr;return t.substr(h,12).toLowerCase()==="sql_no_cache"?(yr=t.substr(h,12),h+=12):(yr=r,jt===0&&p(Cv)),yr})()),nr===r&&(nr=(function(){var yr;return t.substr(h,14).toLowerCase()==="sql_big_result"?(yr=t.substr(h,14),h+=14):(yr=r,jt===0&&p(tb)),yr})())===r&&(nr=(function(){var yr;return t.substr(h,16).toLowerCase()==="sql_small_result"?(yr=t.substr(h,16),h+=16):(yr=r,jt===0&&p(rb)),yr})())===r&&(nr=(function(){var yr;return t.substr(h,17).toLowerCase()==="sql_buffer_result"?(yr=t.substr(h,17),h+=17):(yr=r,jt===0&&p(I)),yr})())),nr!==r&&(ss=A,nr=nr),A=nr}function V0(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=a())===r&&(nr=h,(yr=yo())===r?(h=nr,nr=r):(Ar=h,jt++,qr=Se(),jt--,qr===r?Ar=void 0:(h=Ar,Ar=r),Ar===r?(h=nr,nr=r):nr=yr=[yr,Ar]),nr===r&&(nr=yo())),nr!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=hf())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=hf())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){De.add("select::null::(.*)");let $n={expr:{type:"column_ref",table:null,column:"*"},as:null};return mn&&mn.length>0?ir($n,mn):[$n]})(0,yr))}else h=A,A=r;if(A===r)if(A=h,(nr=hf())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=hf())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=hf())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=ji(nr,yr))}else h=A,A=r;return A}function hf(){var A,nr,yr,Ar,qr,bt,pr;return A=h,nr=h,(yr=ju())!==r&&(Ar=Wt())!==r&&(qr=no())!==r?nr=yr=[yr,Ar,qr]:(h=nr,nr=r),nr===r&&(nr=null),nr!==r&&(yr=Wt())!==r&&(Ar=yo())!==r?(ss=A,A=nr=(function(xt){let cn=xt&&xt[0]||null;return De.add(`select::${cn}::(.*)`),{expr:{type:"column_ref",table:cn,column:"*"},as:null}})(nr)):(h=A,A=r),A===r&&(A=h,(nr=(function(){var xt,cn,mn,$n,bs,ks,Ws,fe;if(xt=h,(cn=fa())!==r){for(mn=[],$n=h,(bs=Wt())===r?(h=$n,$n=r):((ks=ba())===r&&(ks=bu())===r&&(ks=Ia()),ks!==r&&(Ws=Wt())!==r&&(fe=fa())!==r?$n=bs=[bs,ks,Ws,fe]:(h=$n,$n=r));$n!==r;)mn.push($n),$n=h,(bs=Wt())===r?(h=$n,$n=r):((ks=ba())===r&&(ks=bu())===r&&(ks=Ia()),ks!==r&&(Ws=Wt())!==r&&(fe=fa())!==r?$n=bs=[bs,ks,Ws,fe]:(h=$n,$n=r));mn===r?(h=xt,xt=r):(ss=xt,cn=(function(ne,Is){let me=ne.ast;if(me&&me.type==="select"&&(!(ne.parentheses_symbol||ne.parentheses||ne.ast.parentheses||ne.ast.parentheses_symbol)||me.columns.length!==1||me.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!Is||Is.length===0)return ne;let Xe=Is.length,eo=Is[Xe-1][3];for(let so=Xe-1;so>=0;so--){let $o=so===0?ne:Is[so-1][3];eo=mt(Is[so][1],$o,eo)}return eo})(cn,mn),xt=cn)}else h=xt,xt=r;return xt})())!==r&&(yr=Wt())!==r?((Ar=Ef())===r&&(Ar=null),Ar===r?(h=A,A=r):(ss=A,pr=Ar,(bt=nr).type!=="double_quote_string"&&bt.type!=="single_quote_string"||De.add("select::null::"+bt.value),A=nr={expr:bt,as:pr})):(h=A,A=r)),A}function Ef(){var A,nr,yr;return A=h,(nr=ha())!==r&&ta()!==r&&(yr=(function(){var Ar=h,qr;return(qr=qu())===r?(h=Ar,Ar=r):(ss=h,((function(bt){if(s[bt.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(bt)+" is a reserved word, can not as alias clause");return!1})(qr)?r:void 0)===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr=qr)),Ar===r&&(Ar=h,(qr=Wc())!==r&&(ss=Ar,qr=qr),Ar=qr),Ar})())!==r?(ss=A,A=nr=yr):(h=A,A=r),A===r&&(A=h,(nr=ha())===r&&(nr=null),nr!==r&&Wt()!==r&&(yr=ju())!==r?(ss=A,A=nr=yr):(h=A,A=r)),A}function K0(){var A,nr;return A=h,(function(){var yr=h,Ar,qr,bt;return t.substr(h,4).toLowerCase()==="from"?(Ar=t.substr(h,4),h+=4):(Ar=r,jt===0&&p(Mv)),Ar===r?(h=yr,yr=r):(qr=h,jt++,bt=Se(),jt--,bt===r?qr=void 0:(h=qr,qr=r),qr===r?(h=yr,yr=r):yr=Ar=[Ar,qr]),yr})()!==r&&Wt()!==r&&(nr=Ye())!==r?(ss=A,A=nr):(h=A,A=r),A}function Af(){var A,nr,yr;return A=h,(nr=Su())!==r&&Wt()!==r&&nf()!==r&&Wt()!==r&&(yr=Su())!==r?(ss=A,A=nr=[nr,yr]):(h=A,A=r),A}function El(){var A,nr;return A=h,ui()!==r&&Wt()!==r?(t.substr(h,5).toLowerCase()==="btree"?(nr=t.substr(h,5),h+=5):(nr=r,jt===0&&p(H0)),nr===r&&(t.substr(h,4).toLowerCase()==="hash"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(bf))),nr===r?(h=A,A=r):(ss=A,A={keyword:"using",type:nr.toLowerCase()})):(h=A,A=r),A}function w0(){var A,nr,yr,Ar,qr,bt;if(A=h,(nr=ul())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=ul())!==r?Ar=qr=[qr,bt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=ul())!==r?Ar=qr=[qr,bt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=(function(pr,xt){let cn=[pr];for(let mn=0;mn<xt.length;mn++)cn.push(xt[mn][1]);return cn})(nr,yr))}else h=A,A=r;return A}function ul(){var A,nr,yr,Ar,qr,bt;return A=h,(nr=(function(){var pr=h,xt,cn,mn;return t.substr(h,14).toLowerCase()==="key_block_size"?(xt=t.substr(h,14),h+=14):(xt=r,jt===0&&p(Ca)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="KEY_BLOCK_SIZE")),pr})())!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r&&(Ar=vi())!==r?(ss=A,qr=yr,bt=Ar,A=nr={type:nr.toLowerCase(),symbol:qr,expr:bt}):(h=A,A=r)):(h=A,A=r),A===r&&(A=El())===r&&(A=h,t.substr(h,4).toLowerCase()==="with"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(Lb)),nr!==r&&Wt()!==r?(t.substr(h,6).toLowerCase()==="parser"?(yr=t.substr(h,6),h+=6):(yr=r,jt===0&&p(Fa)),yr!==r&&Wt()!==r&&(Ar=qu())!==r?(ss=A,A=nr={type:"with parser",expr:Ar}):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,t.substr(h,7).toLowerCase()==="visible"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Kf)),nr===r&&(t.substr(h,9).toLowerCase()==="invisible"?(nr=t.substr(h,9),h+=9):(nr=r,jt===0&&p(Nv))),nr!==r&&(ss=A,nr=(function(pr){return{type:pr.toLowerCase(),expr:pr.toLowerCase()}})(nr)),(A=nr)===r&&(A=ea()))),A}function Ye(){var A,nr,yr,Ar;if(A=h,(nr=z0())!==r){for(yr=[],Ar=mf();Ar!==r;)yr.push(Ar),Ar=mf();yr===r?(h=A,A=r):(ss=A,A=nr=Gb(nr,yr))}else h=A,A=r;return A}function mf(){var A,nr,yr;return A=h,Wt()!==r&&(nr=Ke())!==r&&Wt()!==r&&(yr=z0())!==r?(ss=A,A=yr):(h=A,A=r),A===r&&(A=h,Wt()!==r&&(nr=(function(){var Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks,Ws;if(Ar=h,(qr=ub())!==r)if(Wt()!==r)if((bt=z0())!==r)if(Wt()!==r)if((pr=ui())!==r)if(Wt()!==r)if(lo()!==r)if(Wt()!==r)if((xt=Nt())!==r){for(cn=[],mn=h,($n=Wt())!==r&&(bs=Ke())!==r&&(ks=Wt())!==r&&(Ws=Nt())!==r?mn=$n=[$n,bs,ks,Ws]:(h=mn,mn=r);mn!==r;)cn.push(mn),mn=h,($n=Wt())!==r&&(bs=Ke())!==r&&(ks=Wt())!==r&&(Ws=Nt())!==r?mn=$n=[$n,bs,ks,Ws]:(h=mn,mn=r);cn!==r&&(mn=Wt())!==r&&($n=Co())!==r?(ss=Ar,fe=qr,Is=xt,me=cn,(ne=bt).join=fe,ne.using=ir(Is,me),Ar=qr=ne):(h=Ar,Ar=r)}else h=Ar,Ar=r;else h=Ar,Ar=r;else h=Ar,Ar=r;else h=Ar,Ar=r;else h=Ar,Ar=r;else h=Ar,Ar=r;else h=Ar,Ar=r;else h=Ar,Ar=r;else h=Ar,Ar=r;var fe,ne,Is,me;return Ar===r&&(Ar=h,(qr=ub())!==r&&Wt()!==r&&(bt=z0())!==r&&Wt()!==r?((pr=D0())===r&&(pr=null),pr===r?(h=Ar,Ar=r):(ss=Ar,qr=(function(Xe,eo,so){return eo.join=Xe,eo.on=so,eo})(qr,bt,pr),Ar=qr)):(h=Ar,Ar=r),Ar===r&&(Ar=h,(qr=ub())===r&&(qr=xs()),qr!==r&&Wt()!==r&&(bt=lo())!==r&&Wt()!==r&&(pr=Li())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?((xt=Ef())===r&&(xt=null),xt!==r&&(cn=Wt())!==r?((mn=D0())===r&&(mn=null),mn===r?(h=Ar,Ar=r):(ss=Ar,qr=(function(Xe,eo,so,$o){return eo.parentheses=!0,{expr:eo,as:so,join:Xe,on:$o}})(qr,pr,xt,mn),Ar=qr)):(h=Ar,Ar=r)):(h=Ar,Ar=r))),Ar})())!==r?(ss=A,A=nr):(h=A,A=r)),A}function z0(){var A,nr,yr,Ar,qr,bt,pr,xt;return A=h,(nr=(function(){var cn;return t.substr(h,4).toLowerCase()==="dual"?(cn=t.substr(h,4),h+=4):(cn=r,jt===0&&p(Xs)),cn})())!==r&&(ss=A,nr={type:"dual"}),(A=nr)===r&&(A=h,(nr=qu())!==r&&Wt()!==r&&(yr=lo())!==r&&Wt()!==r&&(Ar=Tf())!==r&&Wt()!==r&&(qr=Co())!==r&&Wt()!==r?((bt=Ef())===r&&(bt=null),bt===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn,$n){return{expr:{type:"function",name:{name:[{type:"default",value:cn}]},args:mn},as:$n}})(nr,Ar,bt))):(h=A,A=r),A===r&&(A=h,(nr=Su())!==r&&Wt()!==r?((yr=Ef())===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,xt=yr,A=nr=(pr=nr).type==="var"?(pr.as=xt,pr):{db:pr.db,table:pr.table,as:xt})):(h=A,A=r),A===r&&(A=h,(nr=lo())!==r&&Wt()!==r&&(yr=Li())!==r&&Wt()!==r&&(Ar=Co())!==r&&Wt()!==r?((qr=Ef())===r&&(qr=null),qr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){return cn.parentheses=!0,{expr:cn,as:mn}})(yr,qr))):(h=A,A=r)))),A}function ub(){var A,nr,yr,Ar;return A=h,(nr=(function(){var qr=h,bt,pr,xt;return t.substr(h,4).toLowerCase()==="left"?(bt=t.substr(h,4),h+=4):(bt=r,jt===0&&p(Xb)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):qr=bt=[bt,pr]),qr})())!==r&&(yr=Wt())!==r?((Ar=(function(){var qr=h,bt,pr,xt;return t.substr(h,5).toLowerCase()==="outer"?(bt=t.substr(h,5),h+=5):(bt=r,jt===0&&p(cv)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):qr=bt=[bt,pr]),qr})())===r&&(Ar=null),Ar!==r&&Wt()!==r&&Ya()!==r?(ss=A,A=nr="LEFT JOIN"):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,nr=h,(yr=(function(){var qr=h,bt,pr,xt;return t.substr(h,5).toLowerCase()==="inner"?(bt=t.substr(h,5),h+=5):(bt=r,jt===0&&p(pp)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):qr=bt=[bt,pr]),qr})())!==r&&(Ar=Wt())!==r?nr=yr=[yr,Ar]:(h=nr,nr=r),nr===r&&(nr=null),nr!==r&&(yr=Ya())!==r?(ss=A,A=nr="INNER JOIN"):(h=A,A=r)),A}function Su(){var A,nr,yr,Ar,qr,bt,pr,xt;return A=h,(nr=ju())===r?(h=A,A=r):(yr=h,(Ar=Wt())!==r&&(qr=no())!==r&&(bt=Wt())!==r&&(pr=ju())!==r?yr=Ar=[Ar,qr,bt,pr]:(h=yr,yr=r),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){let $n={db:null,table:cn};return mn!==null&&($n.db=cn,$n.table=mn[3]),$n})(nr,yr))),A===r&&(A=h,(nr=wi())!==r&&(ss=A,(xt=nr).db=null,xt.table=xt.name,nr=xt),A=nr),A}function Al(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=fa())!==r){for(yr=[],Ar=h,(qr=Wt())===r?(h=Ar,Ar=r):((bt=ba())===r&&(bt=bu()),bt!==r&&(pr=Wt())!==r&&(xt=fa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r));Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())===r?(h=Ar,Ar=r):((bt=ba())===r&&(bt=bu()),bt!==r&&(pr=Wt())!==r&&(xt=fa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r));yr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){let $n=mn.length,bs=cn;for(let ks=0;ks<$n;++ks)bs=mt(mn[ks][1],bs,mn[ks][3]);return bs})(nr,yr))}else h=A,A=r;return A}function D0(){var A,nr;return A=h,Di()!==r&&Wt()!==r&&(nr=Zi())!==r?(ss=A,A=nr):(h=A,A=r),A}function Ac(){var A,nr;return A=h,(function(){var yr=h,Ar,qr,bt;return t.substr(h,5).toLowerCase()==="where"?(Ar=t.substr(h,5),h+=5):(Ar=r,jt===0&&p(dp)),Ar===r?(h=yr,yr=r):(qr=h,jt++,bt=Se(),jt--,bt===r?qr=void 0:(h=qr,qr=r),qr===r?(h=yr,yr=r):yr=Ar=[Ar,qr]),yr})()!==r&&Wt()!==r&&(nr=Zi())!==r?(ss=A,A=nr):(h=A,A=r),A}function mc(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=Ra())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=Ra())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=Ra())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=ji(nr,yr))}else h=A,A=r;return A}function Tc(){var A,nr;return A=h,(function(){var yr=h,Ar,qr,bt;return t.substr(h,5).toLowerCase()==="order"?(Ar=t.substr(h,5),h+=5):(Ar=r,jt===0&&p(Lp)),Ar===r?(h=yr,yr=r):(qr=h,jt++,bt=Se(),jt--,bt===r?qr=void 0:(h=qr,qr=r),qr===r?(h=yr,yr=r):yr=Ar=[Ar,qr]),yr})()!==r&&Wt()!==r&&ai()!==r&&Wt()!==r&&(nr=(function(){var yr,Ar,qr,bt,pr,xt,cn,mn;if(yr=h,(Ar=y0())!==r){for(qr=[],bt=h,(pr=Wt())!==r&&(xt=Ke())!==r&&(cn=Wt())!==r&&(mn=y0())!==r?bt=pr=[pr,xt,cn,mn]:(h=bt,bt=r);bt!==r;)qr.push(bt),bt=h,(pr=Wt())!==r&&(xt=Ke())!==r&&(cn=Wt())!==r&&(mn=y0())!==r?bt=pr=[pr,xt,cn,mn]:(h=bt,bt=r);qr===r?(h=yr,yr=r):(ss=yr,Ar=ji(Ar,qr),yr=Ar)}else h=yr,yr=r;return yr})())!==r?(ss=A,A=nr):(h=A,A=r),A}function y0(){var A,nr,yr;return A=h,(nr=fa())!==r&&Wt()!==r?((yr=cl())===r&&(yr=ll()),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr={expr:nr,type:yr})):(h=A,A=r),A}function bi(){var A;return(A=vi())===r&&(A=P0()),A}function Yc(){var A,nr,yr,Ar,qr,bt;return A=h,(function(){var pr=h,xt,cn,mn;return t.substr(h,5).toLowerCase()==="limit"?(xt=t.substr(h,5),h+=5):(xt=r,jt===0&&p(wp)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):pr=xt=[xt,cn]),pr})()!==r&&Wt()!==r&&(nr=bi())!==r&&Wt()!==r?(yr=h,(Ar=Ke())===r&&(Ar=(function(){var pr=h,xt,cn,mn;return t.substr(h,6).toLowerCase()==="offset"?(xt=t.substr(h,6),h+=6):(xt=r,jt===0&&p(gb)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="OFFSET")),pr})()),Ar!==r&&(qr=Wt())!==r&&(bt=bi())!==r?yr=Ar=[Ar,qr,bt]:(h=yr,yr=r),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=(function(pr,xt){let cn=[pr];return xt&&cn.push(xt[2]),{seperator:xt&&xt[0]&&xt[0].toLowerCase()||"",value:cn}})(nr,yr))):(h=A,A=r),A}function Z0(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=lc())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=lc())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=lc())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=ji(nr,yr))}else h=A,A=r;return A}function lc(){var A,nr,yr,Ar,qr,bt,pr,xt;return A=h,nr=h,(yr=ju())!==r&&(Ar=Wt())!==r&&(qr=no())!==r?nr=yr=[yr,Ar,qr]:(h=nr,nr=r),nr===r&&(nr=null),nr!==r&&(yr=Wt())!==r&&(Ar=qi())!==r&&(qr=Wt())!==r?(t.charCodeAt(h)===61?(bt="=",h++):(bt=r,jt===0&&p(hc)),bt!==r&&Wt()!==r&&(pr=fa())!==r?(ss=A,A=nr=(function(cn,mn,$n){return{column:mn,value:$n,table:cn&&cn[0]}})(nr,Ar,pr)):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,nr=h,(yr=ju())!==r&&(Ar=Wt())!==r&&(qr=no())!==r?nr=yr=[yr,Ar,qr]:(h=nr,nr=r),nr===r&&(nr=null),nr!==r&&(yr=Wt())!==r&&(Ar=qi())!==r&&(qr=Wt())!==r?(t.charCodeAt(h)===61?(bt="=",h++):(bt=r,jt===0&&p(hc)),bt!==r&&Wt()!==r&&(pr=ni())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(xt=Ra())!==r&&Wt()!==r&&Co()!==r?(ss=A,A=nr=(function(cn,mn,$n){return{column:mn,value:$n,table:cn&&cn[0],keyword:"values"}})(nr,Ar,xt)):(h=A,A=r)):(h=A,A=r)),A}function Ic(){var A,nr,yr;return A=h,(nr=(function(){var Ar=h,qr,bt,pr;return t.substr(h,9).toLowerCase()==="returning"?(qr=t.substr(h,9),h+=9):(qr=r,jt===0&&p(qb)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="RETURNING")),Ar})())!==r&&Wt()!==r?((yr=V0())===r&&(yr=Wi()),yr===r?(h=A,A=r):(ss=A,A=nr=(function(Ar,qr){return{type:Ar&&Ar.toLowerCase()||"returning",columns:qr==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null}]||qr}})(nr,yr))):(h=A,A=r),A}function ab(){var A,nr;return(A=(function(){var yr=h,Ar;return ni()!==r&&Wt()!==r&&(Ar=(function(){var qr,bt,pr,xt,cn,mn,$n,bs;if(qr=h,(bt=aa())!==r){for(pr=[],xt=h,(cn=Wt())!==r&&(mn=Ke())!==r&&($n=Wt())!==r&&(bs=aa())!==r?xt=cn=[cn,mn,$n,bs]:(h=xt,xt=r);xt!==r;)pr.push(xt),xt=h,(cn=Wt())!==r&&(mn=Ke())!==r&&($n=Wt())!==r&&(bs=aa())!==r?xt=cn=[cn,mn,$n,bs]:(h=xt,xt=r);pr===r?(h=qr,qr=r):(ss=qr,bt=ji(bt,pr),qr=bt)}else h=qr,qr=r;return qr})())!==r?(ss=yr,yr={type:"values",values:Ar}):(h=yr,yr=r),yr})())===r&&(A=h,(nr=Li())!==r&&(ss=A,nr=nr.ast),A=nr),A}function J0(){var A,nr,yr,Ar,qr,bt,pr,xt,cn;if(A=h,Yu()!==r)if(Wt()!==r)if((nr=lo())!==r)if(Wt()!==r)if((yr=qu())!==r){for(Ar=[],qr=h,(bt=Wt())!==r&&(pr=Ke())!==r&&(xt=Wt())!==r&&(cn=qu())!==r?qr=bt=[bt,pr,xt,cn]:(h=qr,qr=r);qr!==r;)Ar.push(qr),qr=h,(bt=Wt())!==r&&(pr=Ke())!==r&&(xt=Wt())!==r&&(cn=qu())!==r?qr=bt=[bt,pr,xt,cn]:(h=qr,qr=r);Ar!==r&&(qr=Wt())!==r&&(bt=Co())!==r?(ss=A,A=ir(yr,Ar)):(h=A,A=r)}else h=A,A=r;else h=A,A=r;else h=A,A=r;else h=A,A=r;else h=A,A=r;return A===r&&(A=h,Yu()!==r&&Wt()!==r&&(nr=aa())!==r?(ss=A,A=nr):(h=A,A=r)),A}function ml(){var A,nr,yr;return A=h,Di()!==r&&Wt()!==r?(t.substr(h,9).toLowerCase()==="duplicate"?(nr=t.substr(h,9),h+=9):(nr=r,jt===0&&p(Bl)),nr!==r&&Wt()!==r&&_t()!==r&&Wt()!==r&&oi()!==r&&Wt()!==r&&(yr=Z0())!==r?(ss=A,A={keyword:"on duplicate key update",set:yr}):(h=A,A=r)):(h=A,A=r),A}function Ul(){var A,nr,yr,Ar,qr,bt,pr;return A=h,(nr=il())===r?(h=A,A=r):(yr=h,(Ar=Wt())!==r&&(qr=bu())!==r&&(bt=Wt())!==r?(t.substr(h,5).toLowerCase()==="abort"?(pr=t.substr(h,5),h+=5):(pr=r,jt===0&&p(sl)),pr===r&&(t.substr(h,4).toLowerCase()==="fail"?(pr=t.substr(h,4),h+=4):(pr=r,jt===0&&p(sc)),pr===r&&(t.substr(h,6).toLowerCase()==="ignore"?(pr=t.substr(h,6),h+=6):(pr=r,jt===0&&p(Y0)),pr===r&&(t.substr(h,7).toLowerCase()==="replace"?(pr=t.substr(h,7),h+=7):(pr=r,jt===0&&p(N0)),pr===r&&(t.substr(h,8).toLowerCase()==="rollback"?(pr=t.substr(h,8),h+=8):(pr=r,jt===0&&p(ov)))))),pr===r?(h=yr,yr=r):yr=Ar=[Ar,qr,bt,pr]):(h=yr,yr=r),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(xt){let cn={type:"insert"};return xt&&xt.length!==0&&(cn.or=[{type:"origin",value:"or"},{type:"origin",value:xt[3]}]),cn})(yr))),A===r&&(A=h,(nr=(function(){var xt=h,cn,mn,$n;return t.substr(h,7).toLowerCase()==="replace"?(cn=t.substr(h,7),h+=7):(cn=r,jt===0&&p(N0)),cn===r?(h=xt,xt=r):(mn=h,jt++,$n=Se(),jt--,$n===r?mn=void 0:(h=mn,mn=r),mn===r?(h=xt,xt=r):xt=cn=[cn,mn]),xt})())!==r&&(ss=A,nr={type:"replace"}),A=nr),A}function aa(){var A,nr;return A=h,lo()!==r&&Wt()!==r&&(nr=Tf())!==r&&Wt()!==r&&Co()!==r?(ss=A,A=nr):(h=A,A=r),A}function Tf(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=fa())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=fa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=fa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){let $n={type:"expr_list"};return $n.value=ir(cn,mn),$n})(nr,yr))}else h=A,A=r;return A}function If(){var A,nr,yr;return A=h,(function(){var Ar=h,qr,bt,pr;return t.substr(h,8).toLowerCase()==="interval"?(qr=t.substr(h,8),h+=8):(qr=r,jt===0&&p(Rp)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="INTERVAL")),Ar})()!==r&&Wt()!==r&&(nr=fa())!==r&&Wt()!==r&&(yr=(function(){var Ar;return(Ar=(function(){var qr=h,bt,pr,xt;return t.substr(h,4).toLowerCase()==="year"?(bt=t.substr(h,4),h+=4):(bt=r,jt===0&&p(O)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):(ss=qr,qr=bt="YEAR")),qr})())===r&&(Ar=(function(){var qr=h,bt,pr,xt;return t.substr(h,5).toLowerCase()==="month"?(bt=t.substr(h,5),h+=5):(bt=r,jt===0&&p(ps)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):(ss=qr,qr=bt="MONTH")),qr})())===r&&(Ar=(function(){var qr=h,bt,pr,xt;return t.substr(h,3).toLowerCase()==="day"?(bt=t.substr(h,3),h+=3):(bt=r,jt===0&&p(Bv)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):(ss=qr,qr=bt="DAY")),qr})())===r&&(Ar=(function(){var qr=h,bt,pr,xt;return t.substr(h,4).toLowerCase()==="hour"?(bt=t.substr(h,4),h+=4):(bt=r,jt===0&&p(Lf)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):(ss=qr,qr=bt="HOUR")),qr})())===r&&(Ar=(function(){var qr=h,bt,pr,xt;return t.substr(h,6).toLowerCase()==="minute"?(bt=t.substr(h,6),h+=6):(bt=r,jt===0&&p(Hv)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):(ss=qr,qr=bt="MINUTE")),qr})())===r&&(Ar=(function(){var qr=h,bt,pr,xt;return t.substr(h,6).toLowerCase()==="second"?(bt=t.substr(h,6),h+=6):(bt=r,jt===0&&p(on)),bt===r?(h=qr,qr=r):(pr=h,jt++,xt=Se(),jt--,xt===r?pr=void 0:(h=pr,pr=r),pr===r?(h=qr,qr=r):(ss=qr,qr=bt="SECOND")),qr})()),Ar})())!==r?(ss=A,A={type:"interval",expr:nr,unit:yr.toLowerCase()}):(h=A,A=r),A}function Tl(){var A,nr,yr,Ar,qr,bt;if(A=h,(nr=Ci())!==r)if(Wt()!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ci())!==r?Ar=qr=[qr,bt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ci())!==r?Ar=qr=[qr,bt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=Dn(nr,yr))}else h=A,A=r;else h=A,A=r;return A}function Ci(){var A,nr,yr;return A=h,rt()!==r&&Wt()!==r&&(nr=Zi())!==r&&Wt()!==r&&(function(){var Ar=h,qr,bt,pr;return t.substr(h,4).toLowerCase()==="then"?(qr=t.substr(h,4),h+=4):(qr=r,jt===0&&p(zp)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):Ar=qr=[qr,bt]),Ar})()!==r&&Wt()!==r&&(yr=fa())!==r?(ss=A,A={type:"when",cond:nr,result:yr}):(h=A,A=r),A}function Q0(){var A,nr;return A=h,(function(){var yr=h,Ar,qr,bt;return t.substr(h,4).toLowerCase()==="else"?(Ar=t.substr(h,4),h+=4):(Ar=r,jt===0&&p(Zp)),Ar===r?(h=yr,yr=r):(qr=h,jt++,bt=Se(),jt--,bt===r?qr=void 0:(h=qr,qr=r),qr===r?(h=yr,yr=r):yr=Ar=[Ar,qr]),yr})()!==r&&Wt()!==r&&(nr=fa())!==r?(ss=A,A={type:"else",result:nr}):(h=A,A=r),A}function ib(){var A;return(A=(function(){var nr,yr,Ar,qr,bt,pr,xt,cn;if(nr=h,(yr=rf())!==r){for(Ar=[],qr=h,(bt=ta())!==r&&(pr=bu())!==r&&(xt=Wt())!==r&&(cn=rf())!==r?qr=bt=[bt,pr,xt,cn]:(h=qr,qr=r);qr!==r;)Ar.push(qr),qr=h,(bt=ta())!==r&&(pr=bu())!==r&&(xt=Wt())!==r&&(cn=rf())!==r?qr=bt=[bt,pr,xt,cn]:(h=qr,qr=r);Ar===r?(h=nr,nr=r):(ss=nr,yr=Fb(yr,Ar),nr=yr)}else h=nr,nr=r;return nr})())===r&&(A=(function(){var nr,yr,Ar,qr,bt,pr;if(nr=h,(yr=h0())!==r){if(Ar=[],qr=h,(bt=Wt())!==r&&(pr=gi())!==r?qr=bt=[bt,pr]:(h=qr,qr=r),qr!==r)for(;qr!==r;)Ar.push(qr),qr=h,(bt=Wt())!==r&&(pr=gi())!==r?qr=bt=[bt,pr]:(h=qr,qr=r);else Ar=r;Ar===r?(h=nr,nr=r):(ss=nr,yr=Lt(yr,Ar[0][1]),nr=yr)}else h=nr,nr=r;return nr})()),A}function fa(){var A;return(A=ib())===r&&(A=Li()),A}function Zi(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=fa())!==r){for(yr=[],Ar=h,(qr=Wt())===r?(h=Ar,Ar=r):((bt=ba())===r&&(bt=bu())===r&&(bt=Ke()),bt!==r&&(pr=Wt())!==r&&(xt=fa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r));Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())===r?(h=Ar,Ar=r):((bt=ba())===r&&(bt=bu())===r&&(bt=Ke()),bt!==r&&(pr=Wt())!==r&&(xt=fa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r));yr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){let $n=mn.length,bs=cn,ks="";for(let Ws=0;Ws<$n;++Ws)mn[Ws][1]===","?(ks=",",Array.isArray(bs)||(bs=[bs]),bs.push(mn[Ws][3])):bs=mt(mn[Ws][1],bs,mn[Ws][3]);if(ks===","){let Ws={type:"expr_list"};return Ws.value=bs,Ws}return bs})(nr,yr))}else h=A,A=r;return A}function rf(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=Ii())!==r){for(yr=[],Ar=h,(qr=ta())!==r&&(bt=ba())!==r&&(pr=Wt())!==r&&(xt=Ii())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=ta())!==r&&(bt=ba())!==r&&(pr=Wt())!==r&&(xt=Ii())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=Fb(nr,yr))}else h=A,A=r;return A}function Ii(){var A,nr,yr,Ar,qr;return(A=Ge())===r&&(A=(function(){var bt=h,pr,xt;(pr=(function(){var $n=h,bs=h,ks,Ws,fe;return(ks=Zt())!==r&&(Ws=Wt())!==r&&(fe=o())!==r?bs=ks=[ks,Ws,fe]:(h=bs,bs=r),bs!==r&&(ss=$n,bs=Cb(bs)),($n=bs)===r&&($n=o()),$n})())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(xt=Li())!==r&&Wt()!==r&&Co()!==r?(ss=bt,cn=pr,(mn=xt).parentheses=!0,pr=Lt(cn,mn),bt=pr):(h=bt,bt=r);var cn,mn;return bt})())===r&&(A=h,(nr=Zt())===r&&(nr=h,t.charCodeAt(h)===33?(yr="!",h++):(yr=r,jt===0&&p(e0)),yr===r?(h=nr,nr=r):(Ar=h,jt++,t.charCodeAt(h)===61?(qr="=",h++):(qr=r,jt===0&&p(hc)),jt--,qr===r?Ar=void 0:(h=Ar,Ar=r),Ar===r?(h=nr,nr=r):nr=yr=[yr,Ar])),nr!==r&&(yr=Wt())!==r&&(Ar=Ii())!==r?(ss=A,A=nr=Lt("NOT",Ar)):(h=A,A=r)),A}function Ge(){var A,nr,yr,Ar,qr;return A=h,(nr=cc())!==r&&Wt()!==r?((yr=(function(){var bt;return(bt=(function(){var pr=h,xt=[],cn=h,mn,$n,bs,ks;if((mn=Wt())!==r&&($n=$0())!==r&&(bs=Wt())!==r&&(ks=cc())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r),cn!==r)for(;cn!==r;)xt.push(cn),cn=h,(mn=Wt())!==r&&($n=$0())!==r&&(bs=Wt())!==r&&(ks=cc())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r);else xt=r;return xt!==r&&(ss=pr,xt={type:"arithmetic",tail:xt}),pr=xt})())===r&&(bt=Xa())===r&&(bt=(function(){var pr=h,xt,cn,mn;return(xt=(function(){var $n=h,bs=h,ks,Ws,fe;return(ks=Zt())!==r&&(Ws=Wt())!==r&&(fe=Ma())!==r?bs=ks=[ks,Ws,fe]:(h=bs,bs=r),bs!==r&&(ss=$n,bs=Cb(bs)),($n=bs)===r&&($n=Ma()),$n})())!==r&&Wt()!==r&&(cn=cc())!==r&&Wt()!==r&&ba()!==r&&Wt()!==r&&(mn=cc())!==r?(ss=pr,pr=xt={op:xt,right:{type:"expr_list",value:[cn,mn]}}):(h=pr,pr=r),pr})())===r&&(bt=(function(){var pr=h,xt,cn,mn,$n;return(xt=ii())!==r&&(cn=Wt())!==r&&(mn=cc())!==r?(ss=pr,pr=xt={op:"IS",right:mn}):(h=pr,pr=r),pr===r&&(pr=h,xt=h,(cn=ii())!==r&&(mn=Wt())!==r&&($n=Zt())!==r?xt=cn=[cn,mn,$n]:(h=xt,xt=r),xt!==r&&(cn=Wt())!==r&&(mn=cc())!==r?(ss=pr,xt=(function(bs){return{op:"IS NOT",right:bs}})(mn),pr=xt):(h=pr,pr=r)),pr})())===r&&(bt=Zl())===r&&(bt=(function(){var pr=h,xt,cn,mn;(xt=(function(){var ks=h,Ws,fe;(Ws=Zt())===r&&(Ws=null),Ws!==r&&Wt()!==r?((fe=(function(){var me=h,Xe,eo,so;return t.substr(h,6).toLowerCase()==="regexp"?(Xe=t.substr(h,6),h+=6):(Xe=r,jt===0&&p(Ep)),Xe===r?(h=me,me=r):(eo=h,jt++,so=Se(),jt--,so===r?eo=void 0:(h=eo,eo=r),eo===r?(h=me,me=r):(ss=me,me=Xe="REGEXP")),me})())===r&&(fe=(function(){var me=h,Xe,eo,so;return t.substr(h,5).toLowerCase()==="rlike"?(Xe=t.substr(h,5),h+=5):(Xe=r,jt===0&&p(hp)),Xe===r?(h=me,me=r):(eo=h,jt++,so=Se(),jt--,so===r?eo=void 0:(h=eo,eo=r),eo===r?(h=me,me=r):(ss=me,me=Xe="RLIKE")),me})()),fe===r?(h=ks,ks=r):(ss=ks,Is=fe,ks=Ws=(ne=Ws)?`${ne} ${Is}`:Is)):(h=ks,ks=r);var ne,Is;return ks})())!==r&&Wt()!==r?(t.substr(h,6).toLowerCase()==="binary"?(cn=t.substr(h,6),h+=6):(cn=r,jt===0&&p(Sf)),cn===r&&(cn=null),cn!==r&&Wt()!==r?((mn=Jl())===r&&(mn=ya())===r&&(mn=Ra()),mn===r?(h=pr,pr=r):(ss=pr,$n=xt,pr=xt={op:(bs=cn)?`${$n} ${bs}`:$n,right:mn})):(h=pr,pr=r)):(h=pr,pr=r);var $n,bs;return pr===r&&(pr=h,t.substr(h,4).toLowerCase()==="glob"?(xt=t.substr(h,4),h+=4):(xt=r,jt===0&&p(jb)),xt!==r&&Wt()!==r&&(cn=ya())!==r?(ss=pr,xt=(function(ks){return{op:"GLOB",right:ks}})(cn),pr=xt):(h=pr,pr=r)),pr})()),bt})())===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,Ar=nr,A=nr=(qr=yr)===null?Ar:qr.type==="arithmetic"?Zr(Ar,qr.tail):mt(qr.op,Ar,qr.right))):(h=A,A=r),A===r&&(A=ya())===r&&(A=Ra()),A}function $0(){var A;return t.substr(h,2)===">="?(A=">=",h+=2):(A=r,jt===0&&p(_0)),A===r&&(t.charCodeAt(h)===62?(A=">",h++):(A=r,jt===0&&p(zf)),A===r&&(t.substr(h,2)==="<="?(A="<=",h+=2):(A=r,jt===0&&p(je)),A===r&&(t.substr(h,2)==="<>"?(A="<>",h+=2):(A=r,jt===0&&p(o0)),A===r&&(t.charCodeAt(h)===60?(A="<",h++):(A=r,jt===0&&p(xi)),A===r&&(t.substr(h,2)==="=="?(A="==",h+=2):(A=r,jt===0&&p(xf)),A===r&&(t.charCodeAt(h)===61?(A="=",h++):(A=r,jt===0&&p(hc)),A===r&&(t.substr(h,2)==="!="?(A="!=",h+=2):(A=r,jt===0&&p(Zf))))))))),A}function gf(){var A,nr,yr,Ar,qr;return A=h,nr=h,(yr=Zt())!==r&&(Ar=Wt())!==r&&(qr=Da())!==r?nr=yr=[yr,Ar,qr]:(h=nr,nr=r),nr!==r&&(ss=A,nr=Cb(nr)),(A=nr)===r&&(A=Da()),A}function Zl(){var A,nr,yr,Ar,qr,bt,pr;return A=h,(nr=(function(){var xt,cn,mn,$n,bs;return xt=h,cn=h,(mn=Zt())!==r&&($n=Wt())!==r&&(bs=nt())!==r?cn=mn=[mn,$n,bs]:(h=cn,cn=r),cn!==r&&(ss=xt,cn=Cb(cn)),(xt=cn)===r&&(xt=nt()),xt})())!==r&&Wt()!==r?((yr=Ge())===r&&(yr=Ba()),yr!==r&&Wt()!==r?((Ar=(function(){var xt,cn,mn;return xt=h,t.substr(h,6).toLowerCase()==="escape"?(cn=t.substr(h,6),h+=6):(cn=r,jt===0&&p(W0)),cn!==r&&Wt()!==r&&(mn=ya())!==r?(ss=xt,xt=cn=(function($n,bs){return{type:"ESCAPE",value:bs}})(0,mn)):(h=xt,xt=r),xt})())===r&&(Ar=null),Ar===r?(h=A,A=r):(ss=A,qr=nr,bt=yr,(pr=Ar)&&(bt.escape=pr),A=nr={op:qr,right:bt})):(h=A,A=r)):(h=A,A=r),A}function Xa(){var A,nr,yr,Ar;return A=h,(nr=gf())!==r&&Wt()!==r&&(yr=lo())!==r&&Wt()!==r&&(Ar=Tf())!==r&&Wt()!==r&&Co()!==r?(ss=A,A=nr={op:nr,right:Ar}):(h=A,A=r),A===r&&(A=h,(nr=gf())!==r&&Wt()!==r?((yr=wi())===r&&(yr=ya())===r&&(yr=Jl()),yr===r?(h=A,A=r):(ss=A,A=nr=(function(qr,bt){return{op:qr,right:bt}})(nr,yr))):(h=A,A=r)),A}function cc(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=n())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=h0())!==r&&(pr=Wt())!==r&&(xt=n())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=h0())!==r&&(pr=Wt())!==r&&(xt=n())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn){if(mn&&mn.length&&cn.type==="column_ref"&&cn.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...er()}));return Zr(cn,mn)})(nr,yr))}else h=A,A=r;return A}function h0(){var A;return t.charCodeAt(h)===43?(A="+",h++):(A=r,jt===0&&p(Uf)),A===r&&(t.charCodeAt(h)===45?(A="-",h++):(A=r,jt===0&&p(u0))),A}function n(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=xa())!==r){for(yr=[],Ar=h,(qr=Wt())===r?(h=Ar,Ar=r):((bt=st())===r&&(bt=Ia()),bt!==r&&(pr=Wt())!==r&&(xt=xa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r));Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())===r?(h=Ar,Ar=r):((bt=st())===r&&(bt=Ia()),bt!==r&&(pr=Wt())!==r&&(xt=xa())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r));yr===r?(h=A,A=r):(ss=A,A=nr=Zr(nr,yr))}else h=A,A=r;return A}function st(){var A;return t.charCodeAt(h)===42?(A="*",h++):(A=r,jt===0&&p(wb)),A===r&&(t.charCodeAt(h)===47?(A="/",h++):(A=r,jt===0&&p(Ui)),A===r&&(t.charCodeAt(h)===37?(A="%",h++):(A=r,jt===0&&p(uv)),A===r&&(t.substr(h,2)==="||"?(A="||",h+=2):(A=r,jt===0&&p(yb))))),A}function gi(){var A,nr,yr,Ar;return(A=(function(){var qr=h,bt,pr,xt,cn,mn,$n;return(bt=Lr())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(pr=fa())!==r&&Wt()!==r&&ha()!==r&&Wt()!==r&&(xt=ur())!==r&&Wt()!==r&&(cn=Co())!==r?(ss=qr,bt=(function(bs,ks,Ws){return{type:"cast",keyword:bs.toLowerCase(),expr:ks,symbol:"as",target:[Ws]}})(bt,pr,xt),qr=bt):(h=qr,qr=r),qr===r&&(qr=h,(bt=Lr())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(pr=fa())!==r&&Wt()!==r&&ha()!==r&&Wt()!==r&&(xt=It())!==r&&Wt()!==r&&(cn=lo())!==r&&Wt()!==r&&(mn=Va())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r&&($n=Co())!==r?(ss=qr,bt=(function(bs,ks,Ws){return{type:"cast",keyword:bs.toLowerCase(),expr:ks,symbol:"as",target:[{dataType:"DECIMAL("+Ws+")"}]}})(bt,pr,mn),qr=bt):(h=qr,qr=r),qr===r&&(qr=h,(bt=Lr())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(pr=fa())!==r&&Wt()!==r&&ha()!==r&&Wt()!==r&&(xt=It())!==r&&Wt()!==r&&(cn=lo())!==r&&Wt()!==r&&(mn=Va())!==r&&Wt()!==r&&Ke()!==r&&Wt()!==r&&($n=Va())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r&&Co()!==r?(ss=qr,bt=(function(bs,ks,Ws,fe){return{type:"cast",keyword:bs.toLowerCase(),expr:ks,symbol:"as",target:[{dataType:"DECIMAL("+Ws+", "+fe+")"}]}})(bt,pr,mn,$n),qr=bt):(h=qr,qr=r),qr===r&&(qr=h,(bt=Lr())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(pr=fa())!==r&&Wt()!==r&&ha()!==r&&Wt()!==r&&(xt=(function(){var bs;return(bs=(function(){var ks=h,Ws,fe,ne;return t.substr(h,6).toLowerCase()==="signed"?(Ws=t.substr(h,6),h+=6):(Ws=r,jt===0&&p(Sl)),Ws===r?(h=ks,ks=r):(fe=h,jt++,ne=Se(),jt--,ne===r?fe=void 0:(h=fe,fe=r),fe===r?(h=ks,ks=r):(ss=ks,ks=Ws="SIGNED")),ks})())===r&&(bs=Dt()),bs})())!==r&&Wt()!==r?((cn=Un())===r&&(cn=null),cn!==r&&Wt()!==r&&(mn=Co())!==r?(ss=qr,bt=(function(bs,ks,Ws,fe){return{type:"cast",keyword:bs.toLowerCase(),expr:ks,symbol:"as",target:[{dataType:Ws+(fe?" "+fe:"")}]}})(bt,pr,xt,cn),qr=bt):(h=qr,qr=r)):(h=qr,qr=r)))),qr})())===r&&(A=Ba())===r&&(A=If())===r&&(A=(function(){var qr;return(qr=(function(){var bt=h,pr,xt,cn;return(pr=(function(){var mn=h,$n,bs,ks;return t.substr(h,5).toLowerCase()==="count"?($n=t.substr(h,5),h+=5):($n=r,jt===0&&p(Ap)),$n===r?(h=mn,mn=r):(bs=h,jt++,ks=Se(),jt--,ks===r?bs=void 0:(h=bs,bs=r),bs===r?(h=mn,mn=r):(ss=mn,mn=$n="COUNT")),mn})())===r&&(pr=(function(){var mn=h,$n,bs,ks;return t.substr(h,12).toLowerCase()==="group_concat"?($n=t.substr(h,12),h+=12):($n=r,jt===0&&p(Dp)),$n===r?(h=mn,mn=r):(bs=h,jt++,ks=Se(),jt--,ks===r?bs=void 0:(h=bs,bs=r),bs===r?(h=mn,mn=r):(ss=mn,mn=$n="GROUP_CONCAT")),mn})()),pr!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(xt=(function(){var mn=h,$n,bs,ks,Ws,fe,ne,Is,me,Xe;if(($n=(function(){var eo=h,so;return t.charCodeAt(h)===42?(so="*",h++):(so=r,jt===0&&p(wb)),so!==r&&(ss=eo,so={type:"star",value:"*"}),eo=so})())!==r&&(ss=mn,$n={expr:$n}),(mn=$n)===r){if(mn=h,($n=an())===r&&($n=null),$n!==r)if(Wt()!==r)if((bs=lo())!==r)if(Wt()!==r)if((ks=fa())!==r)if(Wt()!==r)if(Co()!==r){for(Ws=[],fe=h,(ne=Wt())===r?(h=fe,fe=r):((Is=ba())===r&&(Is=bu()),Is!==r&&(me=Wt())!==r&&(Xe=fa())!==r?fe=ne=[ne,Is,me,Xe]:(h=fe,fe=r));fe!==r;)Ws.push(fe),fe=h,(ne=Wt())===r?(h=fe,fe=r):((Is=ba())===r&&(Is=bu()),Is!==r&&(me=Wt())!==r&&(Xe=fa())!==r?fe=ne=[ne,Is,me,Xe]:(h=fe,fe=r));Ws!==r&&(fe=Wt())!==r?((ne=Tc())===r&&(ne=null),ne===r?(h=mn,mn=r):(ss=mn,$n=(function(eo,so,$o,Mu){let su=$o.length,Po=so;Po.parentheses=!0;for(let Na=0;Na<su;++Na)Po=mt($o[Na][1],Po,$o[Na][3]);return{distinct:eo,expr:Po,orderby:Mu}})($n,ks,Ws,ne),mn=$n)):(h=mn,mn=r)}else h=mn,mn=r;else h=mn,mn=r;else h=mn,mn=r;else h=mn,mn=r;else h=mn,mn=r;else h=mn,mn=r;else h=mn,mn=r;mn===r&&(mn=h,($n=an())===r&&($n=null),$n!==r&&Wt()!==r&&(bs=Al())!==r&&Wt()!==r?((ks=Tc())===r&&(ks=null),ks===r?(h=mn,mn=r):(ss=mn,$n=(function(eo,so,$o){return{distinct:eo,expr:so,orderby:$o}})($n,bs,ks),mn=$n)):(h=mn,mn=r))}return mn})())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?((cn=al())===r&&(cn=null),cn===r?(h=bt,bt=r):(ss=bt,pr=(function(mn,$n,bs){return{type:"aggr_func",name:mn,args:$n,over:bs}})(pr,xt,cn),bt=pr)):(h=bt,bt=r),bt})())===r&&(qr=(function(){var bt=h,pr,xt,cn;return(pr=(function(){var mn;return(mn=(function(){var $n=h,bs,ks,Ws;return t.substr(h,3).toLowerCase()==="sum"?(bs=t.substr(h,3),h+=3):(bs=r,jt===0&&p(Pp)),bs===r?(h=$n,$n=r):(ks=h,jt++,Ws=Se(),jt--,Ws===r?ks=void 0:(h=ks,ks=r),ks===r?(h=$n,$n=r):(ss=$n,$n=bs="SUM")),$n})())===r&&(mn=(function(){var $n=h,bs,ks,Ws;return t.substr(h,3).toLowerCase()==="max"?(bs=t.substr(h,3),h+=3):(bs=r,jt===0&&p($v)),bs===r?(h=$n,$n=r):(ks=h,jt++,Ws=Se(),jt--,Ws===r?ks=void 0:(h=ks,ks=r),ks===r?(h=$n,$n=r):(ss=$n,$n=bs="MAX")),$n})())===r&&(mn=(function(){var $n=h,bs,ks,Ws;return t.substr(h,3).toLowerCase()==="min"?(bs=t.substr(h,3),h+=3):(bs=r,jt===0&&p($p)),bs===r?(h=$n,$n=r):(ks=h,jt++,Ws=Se(),jt--,Ws===r?ks=void 0:(h=ks,ks=r),ks===r?(h=$n,$n=r):(ss=$n,$n=bs="MIN")),$n})())===r&&(mn=(function(){var $n=h,bs,ks,Ws;return t.substr(h,3).toLowerCase()==="avg"?(bs=t.substr(h,3),h+=3):(bs=r,jt===0&&p(Pv)),bs===r?(h=$n,$n=r):(ks=h,jt++,Ws=Se(),jt--,Ws===r?ks=void 0:(h=ks,ks=r),ks===r?(h=$n,$n=r):(ss=$n,$n=bs="AVG")),$n})()),mn})())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&(xt=cc())!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?((cn=al())===r&&(cn=null),cn===r?(h=bt,bt=r):(ss=bt,pr=(function(mn,$n,bs){return{type:"aggr_func",name:mn,args:{expr:$n},over:bs,...er()}})(pr,xt,cn),bt=pr)):(h=bt,bt=r),bt})()),qr})())===r&&(A=Jl())===r&&(A=(function(){var qr,bt,pr,xt,cn,mn,$n,bs;return qr=h,Ht()!==r&&Wt()!==r&&(bt=Tl())!==r&&Wt()!==r?((pr=Q0())===r&&(pr=null),pr!==r&&Wt()!==r&&(xt=k())!==r&&Wt()!==r?((cn=Ht())===r&&(cn=null),cn===r?(h=qr,qr=r):(ss=qr,$n=bt,(bs=pr)&&$n.push(bs),qr={type:"case",expr:null,args:$n})):(h=qr,qr=r)):(h=qr,qr=r),qr===r&&(qr=h,Ht()!==r&&Wt()!==r&&(bt=fa())!==r&&Wt()!==r&&(pr=Tl())!==r&&Wt()!==r?((xt=Q0())===r&&(xt=null),xt!==r&&Wt()!==r&&(cn=k())!==r&&Wt()!==r?((mn=Ht())===r&&(mn=null),mn===r?(h=qr,qr=r):(ss=qr,qr=(function(ks,Ws,fe){return fe&&Ws.push(fe),{type:"case",expr:ks,args:Ws}})(bt,pr,xt))):(h=qr,qr=r)):(h=qr,qr=r)),qr})())===r&&(A=Ra())===r&&(A=P0())===r&&(A=h,lo()!==r&&(nr=Wt())!==r&&(yr=Zi())!==r&&Wt()!==r&&Co()!==r?(ss=A,(Ar=yr).parentheses=!0,A=Ar):(h=A,A=r),A===r&&(A=wi())===r&&(A=h,Wt()===r?(h=A,A=r):(t.charCodeAt(h)===63?(nr="?",h++):(nr=r,jt===0&&p(hb)),nr===r?(h=A,A=r):(ss=A,A={type:"origin",value:nr})))),A}function xa(){var A,nr,yr,Ar,qr;return(A=(function(){var bt,pr,xt,cn,mn,$n,bs,ks;if(bt=h,(pr=gi())!==r)if(Wt()!==r){for(xt=[],cn=h,(mn=Wt())===r?(h=cn,cn=r):(t.substr(h,2)==="?|"?($n="?|",h+=2):($n=r,jt===0&&p(Gc)),$n===r&&(t.substr(h,2)==="?&"?($n="?&",h+=2):($n=r,jt===0&&p(_v)),$n===r&&(t.charCodeAt(h)===63?($n="?",h++):($n=r,jt===0&&p(hb)),$n===r&&(t.substr(h,2)==="#-"?($n="#-",h+=2):($n=r,jt===0&&p(kf)),$n===r&&(t.substr(h,3)==="#>>"?($n="#>>",h+=3):($n=r,jt===0&&p(vf)),$n===r&&(t.substr(h,2)==="#>"?($n="#>",h+=2):($n=r,jt===0&&p(ki)),$n===r&&($n=da())===r&&($n=la())===r&&(t.substr(h,2)==="@>"?($n="@>",h+=2):($n=r,jt===0&&p(Hl)),$n===r&&(t.substr(h,2)==="<@"?($n="<@",h+=2):($n=r,jt===0&&p(Eb))))))))),$n!==r&&(bs=Wt())!==r&&(ks=gi())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r));cn!==r;)xt.push(cn),cn=h,(mn=Wt())===r?(h=cn,cn=r):(t.substr(h,2)==="?|"?($n="?|",h+=2):($n=r,jt===0&&p(Gc)),$n===r&&(t.substr(h,2)==="?&"?($n="?&",h+=2):($n=r,jt===0&&p(_v)),$n===r&&(t.charCodeAt(h)===63?($n="?",h++):($n=r,jt===0&&p(hb)),$n===r&&(t.substr(h,2)==="#-"?($n="#-",h+=2):($n=r,jt===0&&p(kf)),$n===r&&(t.substr(h,3)==="#>>"?($n="#>>",h+=3):($n=r,jt===0&&p(vf)),$n===r&&(t.substr(h,2)==="#>"?($n="#>",h+=2):($n=r,jt===0&&p(ki)),$n===r&&($n=da())===r&&($n=la())===r&&(t.substr(h,2)==="@>"?($n="@>",h+=2):($n=r,jt===0&&p(Hl)),$n===r&&(t.substr(h,2)==="<@"?($n="<@",h+=2):($n=r,jt===0&&p(Eb))))))))),$n!==r&&(bs=Wt())!==r&&(ks=gi())!==r?cn=mn=[mn,$n,bs,ks]:(h=cn,cn=r));xt===r?(h=bt,bt=r):(ss=bt,Ws=pr,pr=(fe=xt)&&fe.length!==0?Zr(Ws,fe):Ws,bt=pr)}else h=bt,bt=r;else h=bt,bt=r;var Ws,fe;return bt})())===r&&(A=h,(nr=(function(){var bt;return t.charCodeAt(h)===33?(bt="!",h++):(bt=r,jt===0&&p(e0)),bt===r&&(t.charCodeAt(h)===45?(bt="-",h++):(bt=r,jt===0&&p(u0)),bt===r&&(t.charCodeAt(h)===43?(bt="+",h++):(bt=r,jt===0&&p(Uf)),bt===r&&(t.charCodeAt(h)===126?(bt="~",h++):(bt=r,jt===0&&p(Kv))))),bt})())===r?(h=A,A=r):(yr=h,(Ar=Wt())!==r&&(qr=xa())!==r?yr=Ar=[Ar,qr]:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr=Lt(nr,yr[1])))),A}function Ra(){var A,nr,yr,Ar,qr,bt,pr,xt,cn,mn,$n,bs;return A=h,(nr=ju())!==r&&(yr=Wt())!==r&&(Ar=no())!==r&&(qr=Wt())!==r&&(bt=qi())!==r?(pr=h,(xt=Wt())!==r&&(cn=zi())!==r?pr=xt=[xt,cn]:(h=pr,pr=r),pr===r&&(pr=null),pr===r?(h=A,A=r):(ss=A,mn=nr,$n=bt,bs=pr,De.add(`select::${mn}::${$n}`),A=nr={type:"column_ref",table:mn,column:$n,collate:bs&&bs[1]})):(h=A,A=r),A===r&&(A=h,(nr=Ji())===r?(h=A,A=r):(yr=h,(Ar=Wt())!==r&&(qr=zi())!==r?yr=Ar=[Ar,qr]:(h=yr,yr=r),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(ks,Ws){return De.add("select::null::"+ks),{type:"column_ref",table:null,column:ks,collate:Ws&&Ws[1]}})(nr,yr)))),A}function or(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=Ji())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=Ji())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=Ji())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=ji(nr,yr))}else h=A,A=r;return A}function Nt(){var A,nr;return A=h,(nr=qu())!==r&&(ss=A,nr={type:"default",value:nr}),(A=nr)===r&&(A=Il()),A}function ju(){var A,nr;return A=h,(nr=qu())===r?(h=A,A=r):(ss=h,(Bb(nr)?r:void 0)===r?(h=A,A=r):(ss=A,A=nr=nr)),A===r&&(A=h,(nr=Wc())!==r&&(ss=A,nr=nr),A=nr),A}function Il(){var A;return(A=Kr())===r&&(A=Mb())===r&&(A=fc()),A}function Wc(){var A,nr;return A=h,(nr=Kr())===r&&(nr=Mb())===r&&(nr=fc()),nr!==r&&(ss=A,nr=nr.value),A=nr}function Kr(){var A,nr,yr,Ar;if(A=h,t.charCodeAt(h)===34?(nr='"',h++):(nr=r,jt===0&&p(pa)),nr!==r){if(yr=[],wl.test(t.charAt(h))?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(Nl)),Ar!==r)for(;Ar!==r;)yr.push(Ar),wl.test(t.charAt(h))?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(Nl));else yr=r;yr===r?(h=A,A=r):(t.charCodeAt(h)===34?(Ar='"',h++):(Ar=r,jt===0&&p(pa)),Ar===r?(h=A,A=r):(ss=A,A=nr={type:"double_quote_string",value:yr.join("")}))}else h=A,A=r;return A}function Mb(){var A,nr,yr,Ar;if(A=h,t.charCodeAt(h)===39?(nr="'",h++):(nr=r,jt===0&&p(ri)),nr!==r){if(yr=[],Sv.test(t.charAt(h))?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(Hb)),Ar!==r)for(;Ar!==r;)yr.push(Ar),Sv.test(t.charAt(h))?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(Hb));else yr=r;yr===r?(h=A,A=r):(t.charCodeAt(h)===39?(Ar="'",h++):(Ar=r,jt===0&&p(ri)),Ar===r?(h=A,A=r):(ss=A,A=nr={type:"single_quote_string",value:yr.join("")}))}else h=A,A=r;return A}function fc(){var A,nr,yr,Ar;if(A=h,t.charCodeAt(h)===96?(nr="`",h++):(nr=r,jt===0&&p(Jf)),nr!==r){if(yr=[],pf.test(t.charAt(h))?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(Yb)),Ar!==r)for(;Ar!==r;)yr.push(Ar),pf.test(t.charAt(h))?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(Yb));else yr=r;yr===r?(h=A,A=r):(t.charCodeAt(h)===96?(Ar="`",h++):(Ar=r,jt===0&&p(Jf)),Ar===r?(h=A,A=r):(ss=A,A=nr={type:"backticks_quote_string",value:yr.join("")}))}else h=A,A=r;return A}function qi(){var A,nr;return A=h,(nr=Ri())!==r&&(ss=A,nr=nr),(A=nr)===r&&(A=Wc()),A}function Ji(){var A,nr;return A=h,(nr=Ri())===r?(h=A,A=r):(ss=h,(Bb(nr)?r:void 0)===r?(h=A,A=r):(ss=A,A=nr=nr)),A===r&&(A=Wc()),A}function Ri(){var A,nr,yr,Ar;if(A=h,(nr=Se())!==r){for(yr=[],Ar=Qu();Ar!==r;)yr.push(Ar),Ar=Qu();yr===r?(h=A,A=r):(ss=A,A=nr=av(nr,yr))}else h=A,A=r;return A}function qu(){var A,nr,yr,Ar;if(A=h,(nr=Se())!==r){for(yr=[],Ar=tf();Ar!==r;)yr.push(Ar),Ar=tf();yr===r?(h=A,A=r):(ss=A,A=nr=av(nr,yr))}else h=A,A=r;return A}function Se(){var A;return iv.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(a0)),A}function tf(){var A;return _l.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(Yl)),A}function Qu(){var A;return Ab.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(Mf)),A}function P0(){var A,nr,yr,Ar;return A=h,nr=h,t.charCodeAt(h)===58?(yr=":",h++):(yr=r,jt===0&&p(Wb)),yr!==r&&(Ar=qu())!==r?nr=yr=[yr,Ar]:(h=nr,nr=r),nr!==r&&(ss=A,nr={type:"param",value:nr[1]}),A=nr}function gc(){var A,nr,yr;return A=h,Di()!==r&&Wt()!==r&&oi()!==r&&Wt()!==r&&(nr=Mr())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r?((yr=Tf())===r&&(yr=null),yr!==r&&Wt()!==r&&Co()!==r?(ss=A,A={type:"on update",keyword:nr,parentheses:!0,expr:yr}):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,Di()!==r&&Wt()!==r&&oi()!==r&&Wt()!==r&&(nr=Mr())!==r?(ss=A,A=(function(Ar){return{type:"on update",keyword:Ar}})(nr)):(h=A,A=r)),A}function al(){var A,nr,yr;return A=h,(function(){var Ar=h,qr,bt,pr;return t.substr(h,4).toLowerCase()==="over"?(qr=t.substr(h,4),h+=4):(qr=r,jt===0&&p(Up)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):Ar=qr=[qr,bt]),Ar})()!==r&&Wt()!==r&&lo()!==r&&Wt()!==r&&Yu()!==r&&Wt()!==r&&ai()!==r&&Wt()!==r&&(nr=V0())!==r&&Wt()!==r?((yr=Tc())===r&&(yr=null),yr!==r&&Wt()!==r&&Co()!==r?(ss=A,A={partitionby:nr,orderby:yr}):(h=A,A=r)):(h=A,A=r),A===r&&(A=gc()),A}function Jl(){var A,nr,yr,Ar,qr;return A=h,(nr=(function(){var bt;return(bt=qc())===r&&(bt=(function(){var pr=h,xt,cn,mn;return t.substr(h,12).toLowerCase()==="current_user"?(xt=t.substr(h,12),h+=12):(xt=r,jt===0&&p(vv)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="CURRENT_USER")),pr})())===r&&(bt=(function(){var pr=h,xt,cn,mn;return t.substr(h,4).toLowerCase()==="user"?(xt=t.substr(h,4),h+=4):(xt=r,jt===0&&p(od)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="USER")),pr})())===r&&(bt=(function(){var pr=h,xt,cn,mn;return t.substr(h,12).toLowerCase()==="session_user"?(xt=t.substr(h,12),h+=12):(xt=r,jt===0&&p(ep)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="SESSION_USER")),pr})())===r&&(bt=(function(){var pr=h,xt,cn,mn;return t.substr(h,11).toLowerCase()==="system_user"?(xt=t.substr(h,11),h+=11):(xt=r,jt===0&&p(Rs)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="SYSTEM_USER")),pr})()),bt})())!==r&&Wt()!==r&&(yr=lo())!==r&&Wt()!==r?((Ar=Tf())===r&&(Ar=null),Ar!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?((qr=al())===r&&(qr=null),qr===r?(h=A,A=r):(ss=A,A=nr=(function(bt,pr,xt){return{type:"function",name:{name:[{type:"default",value:bt}]},args:pr||{type:"expr_list",value:[]},over:xt,...er()}})(nr,Ar,qr))):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,(nr=qc())!==r&&Wt()!==r?((yr=gc())===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr={type:"function",name:{name:[{type:"origin",value:nr}]},over:yr,...er()})):(h=A,A=r),A===r&&(A=h,(nr=bc())!==r&&Wt()!==r&&(yr=lo())!==r&&Wt()!==r?((Ar=Zi())===r&&(Ar=null),Ar!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?((qr=al())===r&&(qr=null),qr===r?(h=A,A=r):(ss=A,A=nr=(function(bt,pr,xt){return pr&&pr.type!=="expr_list"&&(pr={type:"expr_list",value:[pr]}),{type:"function",name:bt,args:pr||{type:"expr_list",value:[]},over:xt,...er()}})(nr,Ar,qr))):(h=A,A=r)):(h=A,A=r))),A}function qc(){var A;return(A=(function(){var nr=h,yr,Ar,qr;return t.substr(h,12).toLowerCase()==="current_date"?(yr=t.substr(h,12),h+=12):(yr=r,jt===0&&p(ud)),yr===r?(h=nr,nr=r):(Ar=h,jt++,qr=Se(),jt--,qr===r?Ar=void 0:(h=Ar,Ar=r),Ar===r?(h=nr,nr=r):(ss=nr,nr=yr="CURRENT_DATE")),nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr;return t.substr(h,12).toLowerCase()==="current_time"?(yr=t.substr(h,12),h+=12):(yr=r,jt===0&&p(zs)),yr===r?(h=nr,nr=r):(Ar=h,jt++,qr=Se(),jt--,qr===r?Ar=void 0:(h=Ar,Ar=r),Ar===r?(h=nr,nr=r):(ss=nr,nr=yr="CURRENT_TIME")),nr})())===r&&(A=Mr()),A}function Ba(){var A,nr,yr,Ar,qr,bt,pr,xt,cn;return A=h,t.substr(h,6).toLowerCase()==="binary"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Sf)),nr===r&&(nr=null),nr!==r&&Wt()!==r&&(yr=ya())!==r?(Ar=h,(qr=Wt())!==r&&(bt=zi())!==r?Ar=qr=[qr,bt]:(h=Ar,Ar=r),Ar===r&&(Ar=null),Ar===r?(h=A,A=r):(ss=A,xt=yr,cn=Ar,(pr=nr)&&(xt.prefix=pr.toLowerCase()),cn&&(xt.suffix={collate:cn[1]}),A=nr=xt)):(h=A,A=r),A===r&&(A=vi())===r&&(A=(function(){var mn=h,$n;return($n=(function(){var bs=h,ks,Ws,fe;return t.substr(h,4).toLowerCase()==="true"?(ks=t.substr(h,4),h+=4):(ks=r,jt===0&&p(Uv)),ks===r?(h=bs,bs=r):(Ws=h,jt++,fe=Se(),jt--,fe===r?Ws=void 0:(h=Ws,Ws=r),Ws===r?(h=bs,bs=r):bs=ks=[ks,Ws]),bs})())!==r&&(ss=mn,$n={type:"bool",value:!0}),(mn=$n)===r&&(mn=h,($n=(function(){var bs=h,ks,Ws,fe;return t.substr(h,5).toLowerCase()==="false"?(ks=t.substr(h,5),h+=5):(ks=r,jt===0&&p(Tb)),ks===r?(h=bs,bs=r):(Ws=h,jt++,fe=Se(),jt--,fe===r?Ws=void 0:(h=Ws,Ws=r),Ws===r?(h=bs,bs=r):bs=ks=[ks,Ws]),bs})())!==r&&(ss=mn,$n={type:"bool",value:!1}),mn=$n),mn})())===r&&(A=Qi())===r&&(A=(function(){var mn=h,$n,bs,ks,Ws,fe;if(($n=e())===r&&($n=hr())===r&&($n=Pr())===r&&($n=ht()),$n!==r)if(Wt()!==r){if(bs=h,t.charCodeAt(h)===39?(ks="'",h++):(ks=r,jt===0&&p(ri)),ks!==r){for(Ws=[],fe=dn();fe!==r;)Ws.push(fe),fe=dn();Ws===r?(h=bs,bs=r):(t.charCodeAt(h)===39?(fe="'",h++):(fe=r,jt===0&&p(ri)),fe===r?(h=bs,bs=r):bs=ks=[ks,Ws,fe])}else h=bs,bs=r;bs===r?(h=mn,mn=r):(ss=mn,$n=En($n,bs),mn=$n)}else h=mn,mn=r;else h=mn,mn=r;if(mn===r)if(mn=h,($n=e())===r&&($n=hr())===r&&($n=Pr())===r&&($n=ht()),$n!==r)if(Wt()!==r){if(bs=h,t.charCodeAt(h)===34?(ks='"',h++):(ks=r,jt===0&&p(pa)),ks!==r){for(Ws=[],fe=l();fe!==r;)Ws.push(fe),fe=l();Ws===r?(h=bs,bs=r):(t.charCodeAt(h)===34?(fe='"',h++):(fe=r,jt===0&&p(pa)),fe===r?(h=bs,bs=r):bs=ks=[ks,Ws,fe])}else h=bs,bs=r;bs===r?(h=mn,mn=r):(ss=mn,$n=En($n,bs),mn=$n)}else h=mn,mn=r;else h=mn,mn=r;return mn})()),A}function Qi(){var A,nr;return A=h,(nr=(function(){var yr=h,Ar,qr,bt;return t.substr(h,4).toLowerCase()==="null"?(Ar=t.substr(h,4),h+=4):(Ar=r,jt===0&&p(xv)),Ar===r?(h=yr,yr=r):(qr=h,jt++,bt=Se(),jt--,bt===r?qr=void 0:(h=qr,qr=r),qr===r?(h=yr,yr=r):yr=Ar=[Ar,qr]),yr})())!==r&&(ss=A,nr={type:"null",value:null}),A=nr}function ya(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,t.substr(h,7).toLowerCase()==="_binary"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Df)),nr===r&&(nr=null),nr!==r)if((yr=Wt())!==r)if(t.substr(h,1).toLowerCase()==="x"?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(mb)),Ar!==r){if(qr=h,t.charCodeAt(h)===39?(bt="'",h++):(bt=r,jt===0&&p(ri)),bt!==r){for(pr=[],i0.test(t.charAt(h))?(xt=t.charAt(h),h++):(xt=r,jt===0&&p(ft));xt!==r;)pr.push(xt),i0.test(t.charAt(h))?(xt=t.charAt(h),h++):(xt=r,jt===0&&p(ft));pr===r?(h=qr,qr=r):(t.charCodeAt(h)===39?(xt="'",h++):(xt=r,jt===0&&p(ri)),xt===r?(h=qr,qr=r):qr=bt=[bt,pr,xt])}else h=qr,qr=r;qr===r?(h=A,A=r):(ss=A,A=nr={type:"hex_string",prefix:nr,value:qr[1].join("")})}else h=A,A=r;else h=A,A=r;else h=A,A=r;if(A===r){if(A=h,t.substr(h,7).toLowerCase()==="_binary"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Df)),nr===r&&(nr=null),nr!==r)if((yr=Wt())!==r)if(t.substr(h,1).toLowerCase()==="b"?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(tn)),Ar!==r){if(qr=h,t.charCodeAt(h)===39?(bt="'",h++):(bt=r,jt===0&&p(ri)),bt!==r){for(pr=[],i0.test(t.charAt(h))?(xt=t.charAt(h),h++):(xt=r,jt===0&&p(ft));xt!==r;)pr.push(xt),i0.test(t.charAt(h))?(xt=t.charAt(h),h++):(xt=r,jt===0&&p(ft));pr===r?(h=qr,qr=r):(t.charCodeAt(h)===39?(xt="'",h++):(xt=r,jt===0&&p(ri)),xt===r?(h=qr,qr=r):qr=bt=[bt,pr,xt])}else h=qr,qr=r;qr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn,$n){return{type:"bit_string",prefix:cn,value:$n[1].join("")}})(nr,0,qr))}else h=A,A=r;else h=A,A=r;else h=A,A=r;if(A===r){if(A=h,t.substr(h,7).toLowerCase()==="_binary"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Df)),nr===r&&(nr=null),nr!==r)if((yr=Wt())!==r)if(t.substr(h,2)==="0x"?(Ar="0x",h+=2):(Ar=r,jt===0&&p(_n)),Ar!==r){for(qr=[],i0.test(t.charAt(h))?(bt=t.charAt(h),h++):(bt=r,jt===0&&p(ft));bt!==r;)qr.push(bt),i0.test(t.charAt(h))?(bt=t.charAt(h),h++):(bt=r,jt===0&&p(ft));qr===r?(h=A,A=r):(ss=A,A=nr=(function(cn,mn,$n){return{type:"full_hex_string",prefix:cn,value:$n.join("")}})(nr,0,qr))}else h=A,A=r;else h=A,A=r;else h=A,A=r;if(A===r){if(A=h,nr=h,t.charCodeAt(h)===39?(yr="'",h++):(yr=r,jt===0&&p(ri)),yr!==r){for(Ar=[],qr=dn();qr!==r;)Ar.push(qr),qr=dn();Ar===r?(h=nr,nr=r):(t.charCodeAt(h)===39?(qr="'",h++):(qr=r,jt===0&&p(ri)),qr===r?(h=nr,nr=r):nr=yr=[yr,Ar,qr])}else h=nr,nr=r;if(nr!==r&&(yr=Wt())!==r?(Ar=h,jt++,(qr=no())===r&&(qr=lo()),jt--,qr===r?Ar=void 0:(h=Ar,Ar=r),Ar===r?(h=A,A=r):(ss=A,A=nr=(function(cn){return{type:"single_quote_string",value:cn[1].join("")}})(nr))):(h=A,A=r),A===r){if(A=h,nr=h,t.charCodeAt(h)===34?(yr='"',h++):(yr=r,jt===0&&p(pa)),yr!==r){for(Ar=[],qr=l();qr!==r;)Ar.push(qr),qr=l();Ar===r?(h=nr,nr=r):(t.charCodeAt(h)===34?(qr='"',h++):(qr=r,jt===0&&p(pa)),qr===r?(h=nr,nr=r):nr=yr=[yr,Ar,qr])}else h=nr,nr=r;nr!==r&&(yr=Wt())!==r?(Ar=h,jt++,(qr=no())===r&&(qr=lo()),jt--,qr===r?Ar=void 0:(h=Ar,Ar=r),Ar===r?(h=A,A=r):(ss=A,A=nr=(function(cn){return{type:"double_quote_string",value:cn[1].join("")}})(nr))):(h=A,A=r)}}}}return A}function l(){var A;return Os.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(gs)),A===r&&(A=Ql()),A}function dn(){var A;return Ys.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(Te)),A===r&&(A=Ql()),A}function Ql(){var A,nr,yr,Ar,qr,bt,pr,xt,cn,mn;return A=h,t.substr(h,2)==="\\'"?(nr="\\'",h+=2):(nr=r,jt===0&&p(ye)),nr!==r&&(ss=A,nr="\\'"),(A=nr)===r&&(A=h,t.substr(h,2)==='\\"'?(nr='\\"',h+=2):(nr=r,jt===0&&p(Be)),nr!==r&&(ss=A,nr='\\"'),(A=nr)===r&&(A=h,t.substr(h,2)==="\\\\"?(nr="\\\\",h+=2):(nr=r,jt===0&&p(io)),nr!==r&&(ss=A,nr="\\\\"),(A=nr)===r&&(A=h,t.substr(h,2)==="\\/"?(nr="\\/",h+=2):(nr=r,jt===0&&p(Ro)),nr!==r&&(ss=A,nr="\\/"),(A=nr)===r&&(A=h,t.substr(h,2)==="\\b"?(nr="\\b",h+=2):(nr=r,jt===0&&p(So)),nr!==r&&(ss=A,nr="\b"),(A=nr)===r&&(A=h,t.substr(h,2)==="\\f"?(nr="\\f",h+=2):(nr=r,jt===0&&p(uu)),nr!==r&&(ss=A,nr="\f"),(A=nr)===r&&(A=h,t.substr(h,2)==="\\n"?(nr="\\n",h+=2):(nr=r,jt===0&&p(ko)),nr!==r&&(ss=A,nr=` +`),(A=nr)===r&&(A=h,t.substr(h,2)==="\\r"?(nr="\\r",h+=2):(nr=r,jt===0&&p(yu)),nr!==r&&(ss=A,nr="\r"),(A=nr)===r&&(A=h,t.substr(h,2)==="\\t"?(nr="\\t",h+=2):(nr=r,jt===0&&p(au)),nr!==r&&(ss=A,nr=" "),(A=nr)===r&&(A=h,t.substr(h,2)==="\\u"?(nr="\\u",h+=2):(nr=r,jt===0&&p(Iu)),nr!==r&&(yr=ve())!==r&&(Ar=ve())!==r&&(qr=ve())!==r&&(bt=ve())!==r?(ss=A,pr=yr,xt=Ar,cn=qr,mn=bt,A=nr=String.fromCharCode(parseInt("0x"+pr+xt+cn+mn))):(h=A,A=r),A===r&&(A=h,t.charCodeAt(h)===92?(nr="\\",h++):(nr=r,jt===0&&p(mu)),nr!==r&&(ss=A,nr="\\"),(A=nr)===r&&(A=h,t.substr(h,2)==="''"?(nr="''",h+=2):(nr=r,jt===0&&p(Ju)),nr!==r&&(ss=A,nr="''"),(A=nr)===r&&(A=h,t.substr(h,2)==='""'?(nr='""',h+=2):(nr=r,jt===0&&p(ua)),nr!==r&&(ss=A,nr='""'),(A=nr)===r&&(A=h,t.substr(h,2)==="``"?(nr="``",h+=2):(nr=r,jt===0&&p(Sa)),nr!==r&&(ss=A,nr="``"),A=nr))))))))))))),A}function vi(){var A,nr,yr;return A=h,(nr=(function(){var Ar=h,qr,bt,pr;return(qr=Va())!==r&&(bt=lt())!==r&&(pr=Wn())!==r?(ss=Ar,Ar=qr={type:"bigint",value:qr+bt+pr}):(h=Ar,Ar=r),Ar===r&&(Ar=h,(qr=Va())!==r&&(bt=lt())!==r?(ss=Ar,qr=(function(xt,cn){let mn=xt+cn;if(bn(xt))return{type:"bigint",value:mn};let $n=cn.length>=1?cn.length-1:0;return parseFloat(mn).toFixed($n)})(qr,bt),Ar=qr):(h=Ar,Ar=r),Ar===r&&(Ar=h,(qr=Va())!==r&&(bt=Wn())!==r?(ss=Ar,qr=(function(xt,cn){return{type:"bigint",value:xt+cn}})(qr,bt),Ar=qr):(h=Ar,Ar=r),Ar===r&&(Ar=h,(qr=Va())!==r&&(ss=Ar,qr=(function(xt){return bn(xt)?{type:"bigint",value:xt}:parseFloat(xt)})(qr)),Ar=qr))),Ar})())!==r&&(ss=A,nr=(yr=nr)&&yr.type==="bigint"?yr:{type:"number",value:yr}),A=nr}function Va(){var A,nr,yr;return(A=Eu())===r&&(A=ia())===r&&(A=h,t.charCodeAt(h)===45?(nr="-",h++):(nr=r,jt===0&&p(u0)),nr===r&&(t.charCodeAt(h)===43?(nr="+",h++):(nr=r,jt===0&&p(Uf))),nr!==r&&(yr=Eu())!==r?(ss=A,A=nr+=yr):(h=A,A=r),A===r&&(A=h,t.charCodeAt(h)===45?(nr="-",h++):(nr=r,jt===0&&p(u0)),nr===r&&(t.charCodeAt(h)===43?(nr="+",h++):(nr=r,jt===0&&p(Uf))),nr!==r&&(yr=ia())!==r?(ss=A,A=nr=(function(Ar,qr){return Ar+qr})(nr,yr)):(h=A,A=r))),A}function lt(){var A,nr,yr,Ar;return A=h,t.charCodeAt(h)===46?(nr=".",h++):(nr=r,jt===0&&p(sa)),nr===r?(h=A,A=r):((yr=Eu())===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(Ar=yr)?"."+Ar:"")),A}function Wn(){var A,nr,yr;return A=h,(nr=(function(){var Ar=h,qr,bt;Ov.test(t.charAt(h))?(qr=t.charAt(h),h++):(qr=r,jt===0&&p(lv)),qr===r?(h=Ar,Ar=r):(fi.test(t.charAt(h))?(bt=t.charAt(h),h++):(bt=r,jt===0&&p(Wl)),bt===r&&(bt=null),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr+=(pr=bt)===null?"":pr));var pr;return Ar})())!==r&&(yr=Eu())!==r?(ss=A,A=nr+=yr):(h=A,A=r),A}function Eu(){var A,nr,yr;if(A=h,nr=[],(yr=ia())!==r)for(;yr!==r;)nr.push(yr),yr=ia();else nr=r;return nr!==r&&(ss=A,nr=nr.join("")),A=nr}function ia(){var A;return di.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(Hi)),A}function ve(){var A;return S0.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(l0)),A}function Jt(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="default"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Vi)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function nf(){var A,nr,yr,Ar;return A=h,t.substr(h,2).toLowerCase()==="to"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p($f)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function E0(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="show"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(cp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function kl(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="drop"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(c0)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DROP")),A}function oi(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="update"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(b0)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function yn(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="create"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Pf)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function ka(){var A,nr,yr,Ar;return A=h,t.substr(h,9).toLowerCase()==="temporary"?(nr=t.substr(h,9),h+=9):(nr=r,jt===0&&p(Sp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function Ua(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="temp"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(kv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function Ou(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="delete"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Op)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function il(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="insert"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(fp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function zu(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="rename"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(uc)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function Yu(){var A,nr,yr,Ar;return A=h,t.substr(h,9).toLowerCase()==="partition"?(nr=t.substr(h,9),h+=9):(nr=r,jt===0&&p(Gf)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="PARTITION")),A}function lb(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="into"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(zv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function Mi(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="set"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(Qe)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="SET")),A}function ha(){var A,nr,yr,Ar;return A=h,t.substr(h,2).toLowerCase()==="as"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(bp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function Ha(){var A,nr,yr,Ar;return A=h,t.substr(h,5).toLowerCase()==="table"?(nr=t.substr(h,5),h+=5):(nr=r,jt===0&&p(Ib)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="TABLE")),A}function ln(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="tables"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Dv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="TABLES")),A}function Oe(){var A,nr,yr,Ar;return A=h,t.substr(h,8).toLowerCase()==="database"?(nr=t.substr(h,8),h+=8):(nr=r,jt===0&&p(vp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DATABASE")),A}function Di(){var A,nr,yr,Ar;return A=h,t.substr(h,2).toLowerCase()==="on"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(_o)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function Ya(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="join"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(xp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function ni(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="values"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Qv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function ui(){var A,nr,yr,Ar;return A=h,t.substr(h,5).toLowerCase()==="using"?(nr=t.substr(h,5),h+=5):(nr=r,jt===0&&p(Vp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function $i(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="with"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(Lb)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function ai(){var A,nr,yr,Ar;return A=h,t.substr(h,2).toLowerCase()==="by"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(ld)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function ll(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="asc"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(O0)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="ASC")),A}function cl(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="desc"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(v0)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DESC")),A}function a(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="all"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(Rb)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="ALL")),A}function an(){var A,nr,yr,Ar;return A=h,t.substr(h,8).toLowerCase()==="distinct"?(nr=t.substr(h,8),h+=8):(nr=r,jt===0&&p(Ff)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DISTINCT")),A}function Ma(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="between"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(kp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="BETWEEN")),A}function Da(){var A,nr,yr,Ar;return A=h,t.substr(h,2).toLowerCase()==="in"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(Mp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="IN")),A}function ii(){var A,nr,yr,Ar;return A=h,t.substr(h,2).toLowerCase()==="is"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(rp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="IS")),A}function nt(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="like"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(yp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="LIKE")),A}function o(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="exists"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Nb)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="EXISTS")),A}function Zt(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="not"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(pb)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="NOT")),A}function ba(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="and"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(Qf)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="AND")),A}function bu(){var A,nr,yr,Ar;return A=h,t.substr(h,2).toLowerCase()==="or"?(nr=t.substr(h,2),h+=2):(nr=r,jt===0&&p(_b)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="OR")),A}function Ht(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="case"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(Fp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function rt(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="when"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(mp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function k(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="end"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(T0)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):A=nr=[nr,yr]),A}function Lr(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="cast"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(Gv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="CAST")),A}function Or(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="char"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(Fv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="CHAR")),A}function Fr(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="varchar"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(yl)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="VARCHAR")),A}function dr(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="numeric"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(jc)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="NUMERIC")),A}function It(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="decimal"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(fv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DECIMAL")),A}function Dt(){var A,nr,yr,Ar;return A=h,t.substr(h,8).toLowerCase()==="unsigned"?(nr=t.substr(h,8),h+=8):(nr=r,jt===0&&p(Ol)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="UNSIGNED")),A}function Ln(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="int"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(np)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="INT")),A}function Un(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="integer"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(ql)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="INTEGER")),A}function u(){var A,nr,yr,Ar;return A=h,t.substr(h,8).toLowerCase()==="smallint"?(nr=t.substr(h,8),h+=8):(nr=r,jt===0&&p(Jp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="SMALLINT")),A}function yt(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="tinyint"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Qp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="TINYINT")),A}function Y(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="bigint"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(jp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="BIGINT")),A}function Q(){var A,nr,yr,Ar;return A=h,t.substr(h,5).toLowerCase()==="float"?(nr=t.substr(h,5),h+=5):(nr=r,jt===0&&p(td)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="FLOAT")),A}function Tr(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="double"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(nd)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DOUBLE")),A}function P(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="real"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(Bp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="REAL")),A}function hr(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="date"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(Hp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DATE")),A}function ht(){var A,nr,yr,Ar;return A=h,t.substr(h,8).toLowerCase()==="datetime"?(nr=t.substr(h,8),h+=8):(nr=r,jt===0&&p(gp)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="DATETIME")),A}function e(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="time"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(sd)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="TIME")),A}function Pr(){var A,nr,yr,Ar;return A=h,t.substr(h,9).toLowerCase()==="timestamp"?(nr=t.substr(h,9),h+=9):(nr=r,jt===0&&p(ed)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="TIMESTAMP")),A}function Mr(){var A,nr,yr,Ar;return A=h,t.substr(h,17).toLowerCase()==="current_timestamp"?(nr=t.substr(h,17),h+=17):(nr=r,jt===0&&p(Bc)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="CURRENT_TIMESTAMP")),A}function kn(){var A,nr,yr,Ar;return A=h,t.substr(h,4).toLowerCase()==="view"?(nr=t.substr(h,4),h+=4):(nr=r,jt===0&&p(_)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="VIEW")),A}function Yn(){var A;return t.charCodeAt(h)===64?(A="@",h++):(A=r,jt===0&&p(Ls)),A}function K(){var A;return(A=(function(){var nr;return t.substr(h,2)==="@@"?(nr="@@",h+=2):(nr=r,jt===0&&p(pv)),nr})())===r&&(A=Yn())===r&&(A=(function(){var nr;return t.charCodeAt(h)===36?(nr="$",h++):(nr=r,jt===0&&p(Cf)),nr})()),A}function kt(){var A;return t.charCodeAt(h)===61?(A="=",h++):(A=r,jt===0&&p(hc)),A}function Js(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="add"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(ic)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="ADD")),A}function Ve(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="column"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(op)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="COLUMN")),A}function co(){var A,nr,yr,Ar;return A=h,t.substr(h,5).toLowerCase()==="index"?(nr=t.substr(h,5),h+=5):(nr=r,jt===0&&p(Kb)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="INDEX")),A}function _t(){var A,nr,yr,Ar;return A=h,t.substr(h,3).toLowerCase()==="key"?(nr=t.substr(h,3),h+=3):(nr=r,jt===0&&p(wc)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="KEY")),A}function Eo(){var A,nr,yr,Ar;return A=h,t.substr(h,6).toLowerCase()==="unique"?(nr=t.substr(h,6),h+=6):(nr=r,jt===0&&p(Uc)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="UNIQUE")),A}function ao(){var A,nr,yr,Ar;return A=h,t.substr(h,7).toLowerCase()==="comment"?(nr=t.substr(h,7),h+=7):(nr=r,jt===0&&p(Lv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="COMMENT")),A}function zo(){var A,nr,yr,Ar;return A=h,t.substr(h,10).toLowerCase()==="constraint"?(nr=t.substr(h,10),h+=10):(nr=r,jt===0&&p(Wv)),nr===r?(h=A,A=r):(yr=h,jt++,Ar=Se(),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr===r?(h=A,A=r):(ss=A,A=nr="CONSTRAINT")),A}function no(){var A;return t.charCodeAt(h)===46?(A=".",h++):(A=r,jt===0&&p(sa)),A}function Ke(){var A;return t.charCodeAt(h)===44?(A=",",h++):(A=r,jt===0&&p(us)),A}function yo(){var A;return t.charCodeAt(h)===42?(A="*",h++):(A=r,jt===0&&p(wb)),A}function lo(){var A;return t.charCodeAt(h)===40?(A="(",h++):(A=r,jt===0&&p(Of)),A}function Co(){var A;return t.charCodeAt(h)===41?(A=")",h++):(A=r,jt===0&&p(Pc)),A}function Au(){var A;return t.charCodeAt(h)===59?(A=";",h++):(A=r,jt===0&&p(nb)),A}function la(){var A;return t.substr(h,2)==="->"?(A="->",h+=2):(A=r,jt===0&&p(zt)),A}function da(){var A;return t.substr(h,3)==="->>"?(A="->>",h+=3):(A=r,jt===0&&p($s)),A}function Ia(){var A;return(A=(function(){var nr;return t.substr(h,2)==="||"?(nr="||",h+=2):(nr=r,jt===0&&p(yb)),nr})())===r&&(A=(function(){var nr;return t.substr(h,2)==="&&"?(nr="&&",h+=2):(nr=r,jt===0&&p(ja)),nr})()),A}function Wt(){var A,nr;for(A=[],(nr=Le())===r&&(nr=li());nr!==r;)A.push(nr),(nr=Le())===r&&(nr=li());return A}function ta(){var A,nr;if(A=[],(nr=Le())===r&&(nr=li()),nr!==r)for(;nr!==r;)A.push(nr),(nr=Le())===r&&(nr=li());else A=r;return A}function li(){var A;return(A=(function(){var nr=h,yr,Ar,qr,bt,pr;if(t.substr(h,2)==="/*"?(yr="/*",h+=2):(yr=r,jt===0&&p(Ob)),yr!==r){for(Ar=[],qr=h,bt=h,jt++,t.substr(h,2)==="*/"?(pr="*/",h+=2):(pr=r,jt===0&&p(jf)),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt!==r&&(pr=Ml())!==r?qr=bt=[bt,pr]:(h=qr,qr=r);qr!==r;)Ar.push(qr),qr=h,bt=h,jt++,t.substr(h,2)==="*/"?(pr="*/",h+=2):(pr=r,jt===0&&p(jf)),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt!==r&&(pr=Ml())!==r?qr=bt=[bt,pr]:(h=qr,qr=r);Ar===r?(h=nr,nr=r):(t.substr(h,2)==="*/"?(qr="*/",h+=2):(qr=r,jt===0&&p(jf)),qr===r?(h=nr,nr=r):nr=yr=[yr,Ar,qr])}else h=nr,nr=r;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr;if(t.substr(h,2)==="--"?(yr="--",h+=2):(yr=r,jt===0&&p(is)),yr!==r){for(Ar=[],qr=h,bt=h,jt++,pr=rl(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt!==r&&(pr=Ml())!==r?qr=bt=[bt,pr]:(h=qr,qr=r);qr!==r;)Ar.push(qr),qr=h,bt=h,jt++,pr=rl(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt!==r&&(pr=Ml())!==r?qr=bt=[bt,pr]:(h=qr,qr=r);Ar===r?(h=nr,nr=r):nr=yr=[yr,Ar]}else h=nr,nr=r;return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr;if(t.charCodeAt(h)===35?(yr="#",h++):(yr=r,jt===0&&p(el)),yr!==r){for(Ar=[],qr=h,bt=h,jt++,pr=rl(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt!==r&&(pr=Ml())!==r?qr=bt=[bt,pr]:(h=qr,qr=r);qr!==r;)Ar.push(qr),qr=h,bt=h,jt++,pr=rl(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt!==r&&(pr=Ml())!==r?qr=bt=[bt,pr]:(h=qr,qr=r);Ar===r?(h=nr,nr=r):nr=yr=[yr,Ar]}else h=nr,nr=r;return nr})()),A}function ea(){var A,nr,yr,Ar;return A=h,(nr=ao())!==r&&Wt()!==r?((yr=kt())===r&&(yr=null),yr!==r&&Wt()!==r&&(Ar=ya())!==r?(ss=A,A=nr=(function(qr,bt,pr){return{type:qr.toLowerCase(),keyword:qr.toLowerCase(),symbol:bt,value:pr}})(nr,yr,Ar)):(h=A,A=r)):(h=A,A=r),A}function Ml(){var A;return t.length>h?(A=t.charAt(h),h++):(A=r,jt===0&&p(Ti)),A}function Le(){var A;return wv.test(t.charAt(h))?(A=t.charAt(h),h++):(A=r,jt===0&&p(yf)),A}function rl(){var A,nr;if((A=(function(){var yr=h,Ar;return jt++,t.length>h?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(Ti)),jt--,Ar===r?yr=void 0:(h=yr,yr=r),yr})())===r)if(A=[],ma.test(t.charAt(h))?(nr=t.charAt(h),h++):(nr=r,jt===0&&p(Bi)),nr!==r)for(;nr!==r;)A.push(nr),ma.test(t.charAt(h))?(nr=t.charAt(h),h++):(nr=r,jt===0&&p(Bi));else A=r;return A}function xu(){var A,nr;return A=h,ss=h,Ds=[],r!==void 0&&Wt()!==r?((nr=si())===r&&(nr=(function(){var yr=h,Ar;return(function(){var qr;return t.substr(h,6).toLowerCase()==="return"?(qr=t.substr(h,6),h+=6):(qr=r,jt===0&&p(dv)),qr})()!==r&&Wt()!==r&&(Ar=Ni())!==r?(ss=yr,yr={type:"return",expr:Ar}):(h=yr,yr=r),yr})()),nr===r?(h=A,A=r):(ss=A,A={stmt:nr,vars:Ds})):(h=A,A=r),A}function si(){var A,nr,yr,Ar;return A=h,(nr=wi())===r&&(nr=j()),nr!==r&&Wt()!==r?((yr=(function(){var qr;return t.substr(h,2)===":="?(qr=":=",h+=2):(qr=r,jt===0&&p(Qt)),qr})())===r&&(yr=kt()),yr!==r&&Wt()!==r&&(Ar=Ni())!==r?(ss=A,A=nr={type:"assign",left:nr,symbol:yr,right:Ar}):(h=A,A=r)):(h=A,A=r),A}function Ni(){var A;return(A=Wi())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt;return(yr=wi())!==r&&Wt()!==r&&(Ar=ub())!==r&&Wt()!==r&&(qr=wi())!==r&&Wt()!==r&&(bt=D0())!==r?(ss=nr,nr=yr={type:"join",ltable:yr,rtable:qr,op:Ar,on:bt}):(h=nr,nr=r),nr})())===r&&(A=tl())===r&&(A=(function(){var nr=h,yr;return(function(){var Ar;return t.charCodeAt(h)===91?(Ar="[",h++):(Ar=r,jt===0&&p(Sb)),Ar})()!==r&&Wt()!==r&&(yr=Zo())!==r&&Wt()!==r&&(function(){var Ar;return t.charCodeAt(h)===93?(Ar="]",h++):(Ar=r,jt===0&&p(xl)),Ar})()!==r?(ss=nr,nr={type:"array",value:yr}):(h=nr,nr=r),nr})()),A}function tl(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=Dl())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=h0())!==r&&(pr=Wt())!==r&&(xt=Dl())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=h0())!==r&&(pr=Wt())!==r&&(xt=Dl())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=Fb(nr,yr))}else h=A,A=r;return A}function Dl(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=$a())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=st())!==r&&(pr=Wt())!==r&&(xt=$a())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=st())!==r&&(pr=Wt())!==r&&(xt=$a())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=Fb(nr,yr))}else h=A,A=r;return A}function $a(){var A,nr,yr;return(A=Ba())===r&&(A=wi())===r&&(A=Wu())===r&&(A=P0())===r&&(A=h,lo()!==r&&Wt()!==r&&(nr=tl())!==r&&Wt()!==r&&Co()!==r?(ss=A,(yr=nr).parentheses=!0,A=yr):(h=A,A=r)),A}function bc(){var A,nr,yr,Ar,qr,bt,pr;return A=h,(nr=Nt())===r?(h=A,A=r):(yr=h,(Ar=Wt())!==r&&(qr=no())!==r&&(bt=Wt())!==r&&(pr=Nt())!==r?yr=Ar=[Ar,qr,bt,pr]:(h=yr,yr=r),yr===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(xt,cn){let mn={name:[xt]};return cn!==null&&(mn.schema=xt,mn.name=[cn[3]]),mn})(nr,yr))),A}function Wu(){var A,nr,yr;return A=h,(nr=bc())!==r&&Wt()!==r&&lo()!==r&&Wt()!==r?((yr=Zo())===r&&(yr=null),yr!==r&&Wt()!==r&&Co()!==r?(ss=A,A=nr=(function(Ar,qr){return{type:"function",name:Ar,args:{type:"expr_list",value:qr},...er()}})(nr,yr)):(h=A,A=r)):(h=A,A=r),A===r&&(A=h,(nr=bc())!==r&&(ss=A,nr=(function(Ar){return{type:"function",name:Ar,args:null,...er()}})(nr)),A=nr),A}function Zo(){var A,nr,yr,Ar,qr,bt,pr,xt;if(A=h,(nr=$a())!==r){for(yr=[],Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=$a())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);Ar!==r;)yr.push(Ar),Ar=h,(qr=Wt())!==r&&(bt=Ke())!==r&&(pr=Wt())!==r&&(xt=$a())!==r?Ar=qr=[qr,bt,pr,xt]:(h=Ar,Ar=r);yr===r?(h=A,A=r):(ss=A,A=nr=ji(nr,yr))}else h=A,A=r;return A}function wi(){var A,nr,yr,Ar,qr;return A=h,(nr=K())!==r&&(yr=j())!==r?(ss=A,Ar=nr,qr=yr,A=nr={type:"var",...qr,prefix:Ar}):(h=A,A=r),A}function j(){var A,nr,yr;return A=h,(nr=qu())!==r&&(yr=(function(){var Ar=h,qr=[],bt=h,pr,xt;for(t.charCodeAt(h)===46?(pr=".",h++):(pr=r,jt===0&&p(sa)),pr!==r&&(xt=qu())!==r?bt=pr=[pr,xt]:(h=bt,bt=r);bt!==r;)qr.push(bt),bt=h,t.charCodeAt(h)===46?(pr=".",h++):(pr=r,jt===0&&p(sa)),pr!==r&&(xt=qu())!==r?bt=pr=[pr,xt]:(h=bt,bt=r);return qr!==r&&(ss=Ar,qr=(function(cn){let mn=[];for(let $n=0;$n<cn.length;$n++)mn.push(cn[$n][1]);return mn})(qr)),Ar=qr})())!==r?(ss=A,A=nr=(function(Ar,qr){return Ds.push(Ar),{type:"var",name:Ar,members:qr,prefix:null}})(nr,yr)):(h=A,A=r),A===r&&(A=h,(nr=vi())!==r&&(ss=A,nr={type:"var",name:nr.value,members:[],quoted:null,prefix:null}),A=nr),A}function ur(){var A;return(A=(function(){var nr=h,yr,Ar,qr;if((yr=Or())===r&&(yr=Fr()),yr!==r)if(Wt()!==r)if(lo()!==r)if(Wt()!==r){if(Ar=[],di.test(t.charAt(h))?(qr=t.charAt(h),h++):(qr=r,jt===0&&p(Hi)),qr!==r)for(;qr!==r;)Ar.push(qr),di.test(t.charAt(h))?(qr=t.charAt(h),h++):(qr=r,jt===0&&p(Hi));else Ar=r;Ar!==r&&(qr=Wt())!==r&&Co()!==r?(ss=nr,yr={dataType:yr,length:parseInt(Ar.join(""),10),parentheses:!0},nr=yr):(h=nr,nr=r)}else h=nr,nr=r;else h=nr,nr=r;else h=nr,nr=r;else h=nr,nr=r;return nr===r&&(nr=h,(yr=Or())!==r&&(ss=nr,yr=yv(yr)),(nr=yr)===r&&(nr=h,(yr=Fr())!==r&&(ss=nr,yr=yv(yr)),nr=yr)),nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr,bt,pr,xt,cn,mn,$n,bs,ks;if((yr=dr())===r&&(yr=It())===r&&(yr=Ln())===r&&(yr=Un())===r&&(yr=u())===r&&(yr=yt())===r&&(yr=Y())===r&&(yr=Q())===r&&(yr=Tr())===r&&(yr=(function(){var ne,Is,me,Xe;return ne=h,t.substr(h,3).toLowerCase()==="bit"?(Is=t.substr(h,3),h+=3):(Is=r,jt===0&&p(tp)),Is===r?(h=ne,ne=r):(me=h,jt++,Xe=Se(),jt--,Xe===r?me=void 0:(h=me,me=r),me===r?(h=ne,ne=r):(ss=ne,ne=Is="BIT")),ne})())===r&&(yr=P()),yr!==r)if((Ar=Wt())!==r)if((qr=lo())!==r)if((bt=Wt())!==r){if(pr=[],di.test(t.charAt(h))?(xt=t.charAt(h),h++):(xt=r,jt===0&&p(Hi)),xt!==r)for(;xt!==r;)pr.push(xt),di.test(t.charAt(h))?(xt=t.charAt(h),h++):(xt=r,jt===0&&p(Hi));else pr=r;if(pr!==r)if((xt=Wt())!==r){if(cn=h,(mn=Ke())!==r)if(($n=Wt())!==r){if(bs=[],di.test(t.charAt(h))?(ks=t.charAt(h),h++):(ks=r,jt===0&&p(Hi)),ks!==r)for(;ks!==r;)bs.push(ks),di.test(t.charAt(h))?(ks=t.charAt(h),h++):(ks=r,jt===0&&p(Hi));else bs=r;bs===r?(h=cn,cn=r):cn=mn=[mn,$n,bs]}else h=cn,cn=r;else h=cn,cn=r;cn===r&&(cn=null),cn!==r&&(mn=Wt())!==r&&($n=Co())!==r&&(bs=Wt())!==r?((ks=Ir())===r&&(ks=null),ks===r?(h=nr,nr=r):(ss=nr,Ws=cn,fe=ks,yr={dataType:yr,length:parseInt(pr.join(""),10),scale:Ws&&parseInt(Ws[2].join(""),10),parentheses:!0,suffix:fe},nr=yr)):(h=nr,nr=r)}else h=nr,nr=r;else h=nr,nr=r}else h=nr,nr=r;else h=nr,nr=r;else h=nr,nr=r;else h=nr,nr=r;var Ws,fe;if(nr===r){if(nr=h,(yr=dr())===r&&(yr=It())===r&&(yr=Ln())===r&&(yr=Un())===r&&(yr=u())===r&&(yr=yt())===r&&(yr=Y())===r&&(yr=Q())===r&&(yr=Tr())===r&&(yr=P()),yr!==r){if(Ar=[],di.test(t.charAt(h))?(qr=t.charAt(h),h++):(qr=r,jt===0&&p(Hi)),qr!==r)for(;qr!==r;)Ar.push(qr),di.test(t.charAt(h))?(qr=t.charAt(h),h++):(qr=r,jt===0&&p(Hi));else Ar=r;Ar!==r&&(qr=Wt())!==r?((bt=Ir())===r&&(bt=null),bt===r?(h=nr,nr=r):(ss=nr,yr=(function(ne,Is,me){return{dataType:ne,length:parseInt(Is.join(""),10),suffix:me}})(yr,Ar,bt),nr=yr)):(h=nr,nr=r)}else h=nr,nr=r;nr===r&&(nr=h,(yr=dr())===r&&(yr=It())===r&&(yr=Ln())===r&&(yr=Un())===r&&(yr=u())===r&&(yr=yt())===r&&(yr=Y())===r&&(yr=Q())===r&&(yr=Tr())===r&&(yr=P()),yr!==r&&(Ar=Wt())!==r?((qr=Ir())===r&&(qr=null),qr!==r&&(bt=Wt())!==r?(ss=nr,yr=(function(ne,Is){return{dataType:ne,suffix:Is}})(yr,qr),nr=yr):(h=nr,nr=r)):(h=nr,nr=r))}return nr})())===r&&(A=(function(){var nr=h,yr,Ar,qr;return(yr=hr())===r&&(yr=ht())===r&&(yr=e())===r&&(yr=Pr()),yr!==r&&Wt()!==r&&lo()!==r&&Wt()!==r?(Jb.test(t.charAt(h))?(Ar=t.charAt(h),h++):(Ar=r,jt===0&&p(hv)),Ar!==r&&Wt()!==r&&Co()!==r&&Wt()!==r?((qr=Ir())===r&&(qr=null),qr===r?(h=nr,nr=r):(ss=nr,yr={dataType:yr,length:parseInt(Ar,10),parentheses:!0},nr=yr)):(h=nr,nr=r)):(h=nr,nr=r),nr===r&&(nr=h,(yr=hr())===r&&(yr=ht())===r&&(yr=e())===r&&(yr=Pr()),yr!==r&&(ss=nr,yr=yv(yr)),nr=yr),nr})())===r&&(A=(function(){var nr=h,yr;return(yr=(function(){var Ar,qr,bt,pr;return Ar=h,t.substr(h,4).toLowerCase()==="json"?(qr=t.substr(h,4),h+=4):(qr=r,jt===0&&p(Ec)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="JSON")),Ar})())!==r&&(ss=nr,yr=yv(yr)),nr=yr})())===r&&(A=(function(){var nr=h,yr;return(yr=(function(){var Ar,qr,bt,pr;return Ar=h,t.substr(h,8).toLowerCase()==="tinytext"?(qr=t.substr(h,8),h+=8):(qr=r,jt===0&&p(sp)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="TINYTEXT")),Ar})())===r&&(yr=(function(){var Ar,qr,bt,pr;return Ar=h,t.substr(h,4).toLowerCase()==="text"?(qr=t.substr(h,4),h+=4):(qr=r,jt===0&&p(jv)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="TEXT")),Ar})())===r&&(yr=(function(){var Ar,qr,bt,pr;return Ar=h,t.substr(h,10).toLowerCase()==="mediumtext"?(qr=t.substr(h,10),h+=10):(qr=r,jt===0&&p(Tp)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="MEDIUMTEXT")),Ar})())===r&&(yr=(function(){var Ar,qr,bt,pr;return Ar=h,t.substr(h,8).toLowerCase()==="longtext"?(qr=t.substr(h,8),h+=8):(qr=r,jt===0&&p(rd)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="LONGTEXT")),Ar})()),yr!==r&&(ss=nr,yr={dataType:yr}),nr=yr})())===r&&(A=(function(){var nr=h,yr,Ar;(yr=(function(){var pr,xt,cn,mn;return pr=h,t.substr(h,4).toLowerCase()==="enum"?(xt=t.substr(h,4),h+=4):(xt=r,jt===0&&p(Ip)),xt===r?(h=pr,pr=r):(cn=h,jt++,mn=Se(),jt--,mn===r?cn=void 0:(h=cn,cn=r),cn===r?(h=pr,pr=r):(ss=pr,pr=xt="ENUM")),pr})())!==r&&Wt()!==r&&(Ar=aa())!==r?(ss=nr,qr=yr,(bt=Ar).parentheses=!0,nr=yr={dataType:qr,expr:bt}):(h=nr,nr=r);var qr,bt;return nr})())===r&&(A=(function(){var nr=h,yr;return t.substr(h,7).toLowerCase()==="boolean"?(yr=t.substr(h,7),h+=7):(yr=r,jt===0&&p(Zb)),yr!==r&&(ss=nr,yr={dataType:"BOOLEAN"}),nr=yr})())===r&&(A=(function(){var nr=h,yr;return t.substr(h,4).toLowerCase()==="blob"?(yr=t.substr(h,4),h+=4):(yr=r,jt===0&&p(X0)),yr===r&&(t.substr(h,8).toLowerCase()==="tinyblob"?(yr=t.substr(h,8),h+=8):(yr=r,jt===0&&p(p0)),yr===r&&(t.substr(h,10).toLowerCase()==="mediumblob"?(yr=t.substr(h,10),h+=10):(yr=r,jt===0&&p(up)),yr===r&&(t.substr(h,8).toLowerCase()==="longblob"?(yr=t.substr(h,8),h+=8):(yr=r,jt===0&&p(xb))))),yr!==r&&(ss=nr,yr={dataType:yr.toUpperCase()}),nr=yr})()),A}function Ir(){var A,nr,yr;return A=h,(nr=Dt())===r&&(nr=null),nr!==r&&Wt()!==r?((yr=(function(){var Ar,qr,bt,pr;return Ar=h,t.substr(h,8).toLowerCase()==="zerofill"?(qr=t.substr(h,8),h+=8):(qr=r,jt===0&&p(bv)),qr===r?(h=Ar,Ar=r):(bt=h,jt++,pr=Se(),jt--,pr===r?bt=void 0:(h=bt,bt=r),bt===r?(h=Ar,Ar=r):(ss=Ar,Ar=qr="ZEROFILL")),Ar})())===r&&(yr=null),yr===r?(h=A,A=r):(ss=A,A=nr=(function(Ar,qr){let bt=[];return Ar&&bt.push(Ar),qr&&bt.push(qr),bt})(nr,yr))):(h=A,A=r),A}let s={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CONTAINS:!0,COUNT:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTO:!0,IS:!0,JOIN:!0,LEFT:!0,LIKE:!0,LIMIT:!0,LOW_PRIORITY:!0,NOT:!0,NULL:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,READ:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,VALUES:!0,WITH:!0,WHEN:!0,WHERE:!0,WRITE:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0};function er(){return Ce.includeLocations?{loc:eb(ss,h)}:{}}function Lt(A,nr){return{type:"unary_expr",operator:A,expr:nr}}function mt(A,nr,yr){return{type:"binary_expr",operator:A,left:nr,right:yr}}function bn(A){let nr=To(9007199254740991);return!(To(A)<nr)}function ir(A,nr,yr=3){let Ar=[A];for(let qr=0;qr<nr.length;qr++)delete nr[qr][yr].tableList,delete nr[qr][yr].columnList,Ar.push(nr[qr][yr]);return Ar}function Zr(A,nr){let yr=A;for(let Ar=0;Ar<nr.length;Ar++)yr=mt(nr[Ar][1],yr,nr[Ar][3]);return yr}function rs(A){return Qo[A]||A||null}function vs(A){let nr=new Set;for(let yr of A.keys()){let Ar=yr.split("::");if(!Ar){nr.add(yr);break}Ar&&Ar[1]&&(Ar[1]=rs(Ar[1])),nr.add(Ar.join("::"))}return Array.from(nr)}let Ds=[],ut=new Set,De=new Set,Qo={};if((Ie=ge())!==r&&h===t.length)return Ie;throw Ie!==r&&h<t.length&&p({type:"end"}),ns(Bf,d0<t.length?t.charAt(d0):null,d0<t.length?eb(d0,d0+1):eb(d0,d0))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:fc},ge=fc,Dn=function(R,B){return $l(R,B)},Pn=function(R,B){return{...R,order_by:B.toLowerCase()}},Ae=Nt("INCLUDE",!0),ou=Nt("FILESTREAM_ON",!0),Hs=function(R,B){return $l(R,B,1)},Uo=Nt("IF",!0),Ps=function(R,B){return $l(R,B)},pe=Nt("UNIQUE",!0),_o=Nt("KEY",!0),Gi=Nt("PRIMARY",!0),mi=Nt("IDENTITY",!0),Fi=Nt("COLUMN_FORMAT",!0),T0=Nt("FIXED",!0),dl=Nt("DYNAMIC",!0),Gl=Nt("DEFAULT",!0),Fl=Nt("STORAGE",!0),nc=Nt("DISK",!0),xc=Nt("MEMORY",!0),I0=Nt("CURSOR",!0),ji=Nt("EXECUTE",!0),af=Nt("EXEC",!0),qf=Nt("@",!1),Uc=Nt("if",!0),wc=Nt("exists",!0),Ll=Nt("PROCEDURE",!0),jl=Nt("ENCRYPTION",!0),Oi=Nt("SCHEMABINDING",!0),bb=Nt("VIEW_METADATA",!0),Vi=Nt("CHECK",!0),zc=Nt("OPTION",!0),kc=Nt("ALGORITHM",!0),vb=Nt("INSTANT",!0),Zc=Nt("INPLACE",!0),nl=Nt("COPY",!0),Xf=Nt("LOCK",!0),gl=Nt("NONE",!0),lf=Nt("SHARED",!0),Jc=Nt("EXCLUSIVE",!0),Qc=Nt("NOCHECK",!0),gv=Nt("PRIMARY KEY",!0),g0=Nt("NOT",!0),Ki=Nt("FOR",!0),Pb=Nt("REPLICATION",!0),ei=Nt("FOREIGN KEY",!0),pb=Nt("MATCH FULL",!0),j0=Nt("MATCH PARTIAL",!0),B0=Nt("MATCH SIMPLE",!0),Mc=Nt("RESTRICT",!0),Cl=Nt("CASCADE",!0),$u=Nt("SET NULL",!0),r0=Nt("NO ACTION",!0),zn=Nt("SET DEFAULT",!0),Ss=Nt("CHARACTER",!0),te=Nt("SET",!0),ce=Nt("CHARSET",!0),He=Nt("COLLATE",!0),Ue=Nt("AUTO_INCREMENT",!0),Qe=Nt("AVG_ROW_LENGTH",!0),uo=Nt("KEY_BLOCK_SIZE",!0),Ao=Nt("MAX_ROWS",!0),Pu=Nt("MIN_ROWS",!0),Ca=Nt("STATS_SAMPLE_PAGES",!0),ku=Nt("CONNECTION",!0),ca=Nt("COMPRESSION",!0),na=Nt("'",!1),Qa=Nt("ZLIB",!0),cf=Nt("LZ4",!0),ri=Nt("ENGINE",!0),t0=Nt("TEXTIMAGE_ON",!0),n0=Nt("result",!0),Dc=Nt("caching",!0),s0=Nt("statistics",!0),Rv=Nt("io",!0),nv=Nt("xml",!0),sv=Nt("profile",!0),ev=Nt("time",!0),yc=Nt("datefirst",!0),$c=Nt("dateformat",!0),Sf=Nt("deadlock_priority",!0),R0=Nt("lock_timeout",!0),Rl=Nt("concat_null_yields_null",!0),ff=Nt("cursor_close_on_commit",!0),Vf=Nt("fips_flagger",!0),Vv=Nt("identity_insert",!0),db=Nt("language",!0),Of=Nt("offsets",!0),Pc=Nt("quoted_identifier",!0),H0=Nt("arithabort",!0),bf=Nt("arithignore",!0),Lb=Nt("fmtonly",!0),Fa=Nt("nocount",!0),Kf=Nt("noexec",!0),Nv=Nt("numberic_roundabort",!0),Gb=Nt("parseonly",!0),hc=Nt("query_governor_cost_limit",!0),Bl=Nt("rowcount",!0),sl=Nt("textsize",!0),sc=Nt("ansi_defaults",!0),Y0=Nt("ansi_null_dflt_off",!0),N0=Nt("ansi_null_dflt_on",!0),ov=Nt("ansi_nulls",!0),Fb=Nt("ansi_padding",!0),e0=Nt("ansi_warnings",!0),Cb=Nt("forceplan",!0),_0=Nt("showplan_all",!0),zf=Nt("showplan_text",!0),je=Nt("showplan_xml",!0),o0=Nt("implicit_transactions",!0),xi=Nt("remote_proc_transactions",!0),xf=Nt("xact_abort",!0),Zf=function(R){return{type:"origin",value:R.toLowerCase()}},W0=Nt("read",!0),jb=Nt("uncommitted",!0),Uf=Nt("committed",!0),u0=Nt("REPEATABLE",!0),wb=Nt("snapshot",!0),Ui=Nt("serializable",!0),uv=Nt("transaction",!0),yb=Nt("isolation",!0),hb=Nt("level",!0),Kv=Nt("READ",!0),Gc=Nt("LOCAL",!0),_v=Nt("LOW_PRIORITY",!0),kf=Nt("WRITE",!0),vf=function(R,B){return $l(R,B)},ki=Nt("(",!1),Hl=Nt(")",!1),Eb=Nt("PERCENT",!0),Bb=Nt("SYSTEM_TIME",!0),pa=Nt("OF",!0),wl=Nt("CONTAINED",!0),Nl=Nt("BTREE",!0),Sv=Nt("HASH",!0),Hb=Nt("PARTITIONS",!0),Jf=function(R,B,cr){return{type:R.toLowerCase(),symbol:B,expr:cr}},pf=Nt("FILLFACTOR",!0),Yb=Nt("MAX_DURATION",!0),av=Nt("MAXDOP",!0),iv=Nt("WITH",!0),a0=Nt("PARSER",!0),_l=Nt("VISIBLE",!0),Yl=Nt("INVISIBLE",!0),Ab=Nt("PAD_INDEX",!0),Mf=Nt("SORT_IN_TEMPDB",!0),Wb=Nt("IGNORE_DUP_KEY",!0),Df=Nt("STATISTICS_NORECOMPUTE",!0),mb=Nt("STATISTICS_INCREMENTAL",!0),i0=Nt("DROP_EXISTING",!0),ft=Nt("ONLINE",!0),tn=Nt("RESUMABLE",!0),_n=Nt("ALLOW_ROW_LOCKS",!0),En=Nt("ALLOW_PAGE_LOCKS",!0),Os=Nt("OPTIMIZE_FOR_SEQUENTIAL_KEY",!0),gs=Nt("DATA_COMPRESSION",!0),Ys=Nt("ROW",!0),Te=Nt("PAGE",!1),ye=function(R,B){return B.unshift(R),B.forEach(cr=>{let{table:Er,as:vt}=cr;Xv[Er]=Er,vt&&(Xv[vt]=Er),(function(it){let Et=va(it);it.clear(),Et.forEach($t=>it.add($t))})(ot)}),B},Be=Nt("FORCESEEK",!0),io=Nt("SPATIAL_WINDOW_MAX_CELLS",!0),Ro=Nt("NOEXPAND",!0),So=Nt("FORCESCAN",!0),uu=Nt("HOLDLOCK",!0),ko=Nt("NOLOCK",!0),yu=Nt("NOWAIT",!0),au=Nt("PAGLOCK",!0),Iu=Nt("READCOMMITTED",!0),mu=Nt("READCOMMITTEDLOCK",!0),Ju=Nt("READPAST",!0),ua=Nt("READUNCOMMITTED",!0),Sa=Nt("REPEATABLEREAD ",!0),ma=Nt("ROWLOCK",!0),Bi=Nt("SERIALIZABLE",!0),sa=Nt("SNAPSHOT",!0),di=Nt("TABLOCK",!0),Hi=Nt("TABLOCKX",!0),S0=Nt("UPDLOCK",!0),l0=Nt("XLOCK",!0),Ov=Nt("##",!1),lv=Nt("#",!1),fi=Nt("FIRST",!0),Wl=Nt("ROWS",!0),ec=Nt("ONLY",!0),Fc=Nt("NEXT",!0),xv=Nt("RAW",!0),lp=Nt("AUTO",!0),Uv=Nt("EXPLICIT",!0),$f=function(R){return{keyword:R}},Tb=Nt("PATH",!0),cp=Nt("XML",!0),c0=Nt("JSON",!0),q0=Nt("=",!1),df=function(R,B){return m0(R,B)},f0=Nt("!",!1),b0=function(R){return R[0]+" "+R[2]},Pf=Nt(">=",!1),Sp=Nt(">",!1),kv=Nt("<=",!1),Op=Nt("<>",!1),fp=Nt("<",!1),oc=Nt("!=",!1),uc=Nt("+",!1),qb=Nt("-",!1),Gf=Nt("*",!1),zv=Nt("/",!1),Mv=Nt("%",!1),Zv=Nt("~",!1),bp=function(R){return qa[R.toUpperCase()]===!0},Ib=Nt('"',!1),Dv=/^[^"]/,vp=ju(['"'],!0,!1),Jv=/^[^']/,Xb=ju(["'"],!0,!1),pp=Nt("`",!1),xp=/^[^`]/,cv=ju(["`"],!0,!1),Up=Nt("[",!1),Xp=/^[^\]]/,Qv=ju(["]"],!0,!1),Vp=Nt("]",!1),dp=function(R,B){return R+B.join("")},Kp=/^[A-Za-z_@#\u4E00-\u9FA5]/,ld=ju([["A","Z"],["a","z"],"_","@","#",["\u4E00","\u9FA5"]],!1,!1),Lp=/^[A-Za-z0-9_\-@$$\u4E00-\u9FA5\xC0-\u017F]/,Cp=ju([["A","Z"],["a","z"],["0","9"],"_","-","@","$","$",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),wp=/^[A-Za-z0-9_:\u4E00-\u9FA5\xC0-\u017F]/,gb=ju([["A","Z"],["a","z"],["0","9"],"_",":",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),O0=Nt(":",!1),v0=Nt("OVER",!0),ac=Nt("FOLLOWING",!0),Rb=Nt("PRECEDING",!0),Ff=Nt("CURRENT",!0),kp=Nt("UNBOUNDED",!0),Mp=Nt("WITHIN",!0),rp=Nt("N",!0),yp=Nt("_binary",!0),hp=Nt("_latin1",!0),Ep=Nt("0x",!0),Nb=/^[0-9A-Fa-f]/,Qf=ju([["0","9"],["A","F"],["a","f"]],!1,!1),_b=function(R,B){return{type:R.toLowerCase(),value:B[1].join("")}},Ap=/^[^"\\\0-\x1F\x7F]/,Dp=ju(['"',"\\",["\0",""],"\x7F"],!0,!1),$v=/^[^'\\]/,$p=ju(["'","\\"],!0,!1),Pp=Nt("\\'",!1),Pv=Nt('\\"',!1),Gp=Nt("\\\\",!1),Fp=Nt("\\/",!1),mp=Nt("\\b",!1),zp=Nt("\\f",!1),Zp=Nt("\\n",!1),Gv=Nt("\\r",!1),tp=Nt("\\t",!1),Fv=Nt("\\u",!1),yl=Nt("\\",!1),jc=Nt("''",!1),fv=Nt('""',!1),Sl=Nt("``",!1),Ol=/^[\n\r]/,np=ju([` +`,"\r"],!1,!1),bv=Nt(".",!1),ql=/^[0-9]/,Ec=ju([["0","9"]],!1,!1),Jp=/^[0-9a-fA-F]/,Qp=ju([["0","9"],["a","f"],["A","F"]],!1,!1),sp=/^[eE]/,jv=ju(["e","E"],!1,!1),Tp=/^[+\-]/,rd=ju(["+","-"],!1,!1),jp=Nt("NULL",!0),Ip=Nt("NOT NULL",!0),td=Nt("TRUE",!0),nd=Nt("TO",!0),Bp=Nt("TOP",!0),Hp=Nt("FALSE",!0),gp=Nt("DROP",!0),sd=Nt("DECLARE",!0),ed=Nt("USE",!0),Yp=Nt("ALTER",!0),od=Nt("SELECT",!0),ud=Nt("UPDATE",!0),Rp=Nt("CREATE",!0),O=Nt("TEMPORARY",!0),ps=Nt("DELETE",!0),Bv=Nt("INSERT",!0),Lf=Nt("RECURSIVE",!0),Hv=Nt("REPLACE",!0),on=Nt("RENAME",!0),zs=Nt("IGNORE",!0),Bc=Nt("PARTITION",!0),vv=Nt("INTO",!0),ep=Nt("FROM",!0),Rs=Nt("UNLOCK",!0),Np=Nt("AS",!0),Wp=Nt("TABLE",!0),cd=Nt("VIEW",!0),Vb=Nt("DATABASE",!0),_=Nt("SCHEMA",!0),Ls=Nt("TABLES",!0),pv=Nt("ON",!0),Cf=Nt("OFF",!0),dv=Nt("LEFT",!0),Qt=Nt("RIGHT",!0),Xs=Nt("FULL",!0),ic=Nt("INNER",!0),op=Nt("CROSS",!0),Kb=Nt("JOIN",!0),ys=Nt("APPLY",!0),_p=Nt("OUTER",!0),Yv=Nt("UNION",!0),Lv=Nt("VALUES",!0),Wv=Nt("USING",!0),zb=Nt("WHERE",!0),wf=Nt("GO",!0),qv=Nt("GROUP",!0),Cv=Nt("BY",!0),rb=Nt("ORDER",!0),tb=Nt("HAVING",!0),I=Nt("LIMIT",!0),us=Nt("OFFSET",!0),Sb=Nt("FETCH",!0),xl=Nt("ASC",!0),nb=Nt("DESC",!0),zt=Nt("ALL",!0),$s=Nt("DISTINCT",!0),ja=Nt("BETWEEN",!0),Ob=Nt("IN",!0),jf=Nt("IS",!0),is=Nt("LIKE",!0),el=Nt("EXISTS",!0),Ti=Nt("AND",!0),wv=Nt("OR",!0),yf=Nt("ARRAY_AGG",!0),X0=Nt("STRING_AGG",!0),p0=Nt("COUNT",!0),up=Nt("MAX",!0),xb=Nt("MIN",!0),Zb=Nt("SUM",!0),yv=Nt("AVG",!0),Jb=Nt("CALL",!0),hv=Nt("CASE",!0),h=Nt("WHEN",!0),ss=Nt("THEN",!0),Xl=Nt("ELSE",!0),d0=Nt("END",!0),Bf=Nt("CAST",!0),jt=Nt("BIT",!0),Us=Nt("MONEY",!0),ol=Nt("SMALLMONEY",!0),sb=Nt("CHAR",!0),eb=Nt("VARCHAR",!0),p=Nt("BINARY",!0),ns=Nt("VARBINARY",!0),Vl=Nt("NCHAR",!0),Hc=Nt("NVARCHAR",!0),Ub=Nt("NUMERIC",!0),Ft=Nt("DECIMAL",!0),xs=Nt("SIGNED",!0),Li=Nt("UNSIGNED",!0),Ta=Nt("INT",!0),x0=Nt("ZEROFILL",!0),Zn=Nt("INTEGER",!0),kb=Nt("SMALLINT",!0),U0=Nt("TINYINT",!0),C=Nt("TINYTEXT",!0),Kn=Nt("TEXT",!0),zi=Nt("NTEXT",!0),Kl=Nt("MEDIUMTEXT",!0),zl=Nt("LONGTEXT",!0),Ot=Nt("BIGINT",!0),hs=Nt("FLOAT",!0),Yi=Nt("REAL",!0),hl=Nt("DOUBLE",!0),L0=Nt("DATE",!0),Bn=Nt("SMALLDATETIME",!0),Qb=Nt("DATETIME",!0),C0=Nt("DATETIME2",!0),Hf=Nt("DATETIMEOFFSET",!0),k0=Nt("TIME",!0),M0=Nt("TIMESTAMP",!0),Wi=Nt("TRUNCATE",!0),wa=Nt("UNIQUEIDENTIFIER",!0),Oa=Nt("USER",!0),ti=Nt("CURRENT_DATE",!0),We=Nt("INTERVAL",!0),ob=Nt("YEAR",!0),V0=Nt("MONTH",!0),hf=Nt("DAY",!0),Ef=Nt("HOUR",!0),K0=Nt("MINUTE",!0),Af=Nt("SECOND",!0),El=Nt("CURRENT_TIME",!0),w0=Nt("CURRENT_TIMESTAMP",!0),ul=Nt("CURRENT_USER",!0),Ye=Nt("SESSION_USER",!0),mf=Nt("SYSTEM_USER",!0),z0=Nt("PIVOT",!0),ub=Nt("UNPIVOT",!0),Su=Nt("@@",!1),Al=Nt("$",!1),D0=Nt("return",!0),Ac=Nt(":=",!1),mc=Nt("DUAL",!0),Tc=Nt("ADD",!0),y0=Nt("COLUMN",!0),bi=Nt("INDEX",!0),Yc=Nt("FULLTEXT",!0),Z0=Nt("SPATIAL",!0),lc=Nt("CLUSTERED",!0),Ic=Nt("NONCLUSTERED",!0),ab=Nt("COMMENT",!0),J0=Nt("CONSTRAINT",!0),ml=Nt("REFERENCES",!0),Ul=Nt("SQL_CALC_FOUND_ROWS",!0),aa=Nt("SQL_CACHE",!0),Tf=Nt("SQL_NO_CACHE",!0),If=Nt("SQL_SMALL_RESULT",!0),Tl=Nt("SQL_BIG_RESULT",!0),Ci=Nt("SQL_BUFFER_RESULT",!0),Q0=Nt(",",!1),ib=Nt(";",!1),fa=Nt("||",!1),Zi=Nt("&&",!1),rf=Nt("/*",!1),Ii=Nt("*/",!1),Ge=Nt("--",!1),$0={type:"any"},gf=/^[ \t\n\r]/,Zl=ju([" "," ",` +`,"\r"],!1,!1),Xa=function(R,B,cr){return R&&!cr||!R&&cr},cc=function(R,B,cr){return{dataType:B}},h0=function(R,B,cr){return{dataType:B}},n=0,st=0,gi=[{line:1,column:1}],xa=0,Ra=[],or=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function Nt(R,B){return{type:"literal",text:R,ignoreCase:B}}function ju(R,B,cr){return{type:"class",parts:R,inverted:B,ignoreCase:cr}}function Il(R){var B,cr=gi[R];if(cr)return cr;for(B=R-1;!gi[B];)B--;for(cr={line:(cr=gi[B]).line,column:cr.column};B<R;)t.charCodeAt(B)===10?(cr.line++,cr.column=1):cr.column++,B++;return gi[R]=cr,cr}function Wc(R,B){var cr=Il(R),Er=Il(B);return{start:{offset:R,line:cr.line,column:cr.column},end:{offset:B,line:Er.line,column:Er.column}}}function Kr(R){n<xa||(n>xa&&(xa=n,Ra=[]),Ra.push(R))}function Mb(R,B,cr){return new go(go.buildMessage(R,B),R,B,cr)}function fc(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=qi())!==r)if(Tt()!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=Yt())!==r&&(Et=Tt())!==r?(($t=qi())===r&&($t=null),$t===r?(n=Er,Er=r):Er=vt=[vt,it,Et,$t]):(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=Yt())!==r&&(Et=Tt())!==r?(($t=qi())===r&&($t=null),$t===r?(n=Er,Er=r):Er=vt=[vt,it,Et,$t]):(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=(function(en,hn){if(!hn||hn.length===0)return en;delete en.tableList,delete en.columnList;let ds=en;for(let Ns=0;Ns<hn.length;Ns++){let Fs=hn[Ns][3]||[];delete Fs.tableList,delete Fs.columnList,ds.go_next=Fs,ds.go="go",ds=ds.go_next}return{tableList:Array.from(Xu),columnList:va(ot),ast:en}})(B,cr))}else n=R,R=r;else n=R,R=r;return R}function qi(){var R,B,cr;return R=n,Tt()!==r&&(B=(function(){var Er,vt,it,Et,$t,en,hn,ds;if(Er=n,(vt=Ri())!==r){for(it=[],Et=n,($t=Tt())!==r&&(en=Ei())!==r&&(hn=Tt())!==r&&(ds=Ri())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r);Et!==r;)it.push(Et),Et=n,($t=Tt())!==r&&(en=Ei())!==r&&(hn=Tt())!==r&&(ds=Ri())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r);it===r?(n=Er,Er=r):(st=Er,vt=(function(Ns,Fs){let ue=Ns&&Ns.ast||Ns,ee=Fs&&Fs.length&&Fs[0].length>=4?[ue]:ue;for(let ie=0;ie<Fs.length;ie++)Fs[ie][3]&&Fs[ie][3].length!==0&&ee.push(Fs[ie][3]&&Fs[ie][3].ast||Fs[ie][3]);return{tableList:Array.from(Xu),columnList:va(ot),ast:ee}})(vt,it),Er=vt)}else n=Er,Er=r;return Er})())!==r&&Tt()!==r?((cr=Ei())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B)):(n=R,R=r),R}function Ji(){var R;return(R=(function(){var B=n,cr,Er,vt,it,Et,$t;(cr=pr())!==r&&Tt()!==r&&(Er=$o())!==r&&Tt()!==r?((vt=l())===r&&(vt=null),vt!==r&&Tt()!==r&&(it=a())!==r?(st=B,en=cr,hn=Er,ds=vt,(Ns=it)&&Ns.forEach(Fs=>Xu.add(`${en}::${[Fs.server,Fs.db,Fs.schema].filter(Boolean).join(".")||null}::${Fs.table}`)),cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:en.toLowerCase(),keyword:hn.toLowerCase(),prefix:ds,name:Ns}},B=cr):(n=B,B=r)):(n=B,B=r);var en,hn,ds,Ns;return B===r&&(B=n,(cr=pr())!==r&&Tt()!==r?(t.substr(n,9).toLowerCase()==="procedure"?(Er=t.substr(n,9),n+=9):(Er=r,or===0&&Kr(Ll)),Er!==r&&Tt()!==r&&(vt=yo())!==r?(st=B,cr=(function(Fs,ue,ee){return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:Fs.toLowerCase(),keyword:ue.toLowerCase(),name:ee}}})(cr,Er,vt),B=cr):(n=B,B=r)):(n=B,B=r),B===r&&(B=n,(cr=pr())!==r&&Tt()!==r&&(Er=cb())!==r&&Tt()!==r&&(vt=zo())!==r&&Tt()!==r&&(it=Po())!==r&&Tt()!==r&&(Et=o())!==r&&Tt()!==r?(($t=(function(){var Fs=n,ue,ee,ie,ro,$e;if((ue=vi())===r&&(ue=Va()),ue!==r){for(ee=[],ie=n,(ro=Tt())===r?(n=ie,ie=r):(($e=vi())===r&&($e=Va()),$e===r?(n=ie,ie=r):ie=ro=[ro,$e]);ie!==r;)ee.push(ie),ie=n,(ro=Tt())===r?(n=ie,ie=r):(($e=vi())===r&&($e=Va()),$e===r?(n=ie,ie=r):ie=ro=[ro,$e]);ee===r?(n=Fs,Fs=r):(st=Fs,ue=Hs(ue,ee),Fs=ue)}else n=Fs,Fs=r;return Fs})())===r&&($t=null),$t!==r&&Tt()!==r?(st=B,cr=(function(Fs,ue,ee,ie,ro){return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:Fs.toLowerCase(),keyword:ue.toLowerCase(),name:ee,table:ie,options:ro}}})(cr,Er,vt,Et,$t),B=cr):(n=B,B=r)):(n=B,B=r),B===r&&(B=n,(cr=pr())!==r&&Tt()!==r&&(Er=Mu())!==r&&Tt()!==r?((vt=l())===r&&(vt=null),vt!==r&&Tt()!==r&&(it=a())!==r?(st=B,cr=(function(Fs,ue,ee,ie){return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:Fs.toLowerCase(),keyword:ue.toLowerCase(),prefix:ee,name:ie}}})(cr,Er,vt,it),B=cr):(n=B,B=r)):(n=B,B=r)))),B})())===r&&(R=(function(){var B;return(B=(function(){var cr=n,Er,vt,it,Et,$t,en,hn,ds,Ns;(Er=$n())!==r&&Tt()!==r?((vt=bs())===r&&(vt=null),vt!==r&&Tt()!==r&&$o()!==r&&Tt()!==r?((it=P0())===r&&(it=null),it!==r&&Tt()!==r&&(Et=a())!==r&&Tt()!==r&&($t=gc())!==r&&Tt()!==r?((en=(function(){var $e,Gs,iu,Oo,wu,Ea,Do,Ka;if($e=n,(Gs=oi())!==r){for(iu=[],Oo=n,(wu=Tt())===r?(n=Oo,Oo=r):((Ea=gu())===r&&(Ea=null),Ea!==r&&(Do=Tt())!==r&&(Ka=oi())!==r?Oo=wu=[wu,Ea,Do,Ka]:(n=Oo,Oo=r));Oo!==r;)iu.push(Oo),Oo=n,(wu=Tt())===r?(n=Oo,Oo=r):((Ea=gu())===r&&(Ea=null),Ea!==r&&(Do=Tt())!==r&&(Ka=oi())!==r?Oo=wu=[wu,Ea,Do,Ka]:(n=Oo,Oo=r));iu===r?(n=$e,$e=r):(st=$e,Gs=Dn(Gs,iu),$e=Gs)}else n=$e,$e=r;return $e})())===r&&(en=null),en!==r&&Tt()!==r?((hn=ne())===r&&(hn=Ws()),hn===r&&(hn=null),hn!==r&&Tt()!==r?((ds=so())===r&&(ds=null),ds!==r&&Tt()!==r?((Ns=Se())===r&&(Ns=null),Ns===r?(n=cr,cr=r):(st=cr,Er=(function($e,Gs,iu,Oo,wu,Ea,Do,Ka,dc){return Oo&&Oo.forEach(_f=>Xu.add(`create::${[_f.server,_f.db,_f.schema].filter(Boolean).join(".")||null}::${_f.table}`)),{tableList:Array.from(Xu),columnList:va(ot),ast:{type:$e[0].toLowerCase(),keyword:"table",temporary:Gs&&Gs[0].toLowerCase(),if_not_exists:iu,table:Oo,ignore_replace:Do&&Do[0].toLowerCase(),as:Ka&&Ka[0].toLowerCase(),query_expr:dc&&dc.ast,create_definitions:wu,table_options:Ea}}})(Er,vt,it,Et,$t,en,hn,ds,Ns),cr=Er)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r),cr===r&&(cr=n,(Er=$n())!==r&&Tt()!==r?((vt=bs())===r&&(vt=null),vt!==r&&Tt()!==r&&$o()!==r&&Tt()!==r?((it=P0())===r&&(it=null),it!==r&&Tt()!==r&&(Et=a())!==r&&Tt()!==r&&($t=(function $e(){var Gs,iu;(Gs=(function(){var wu=n,Ea;return et()!==r&&Tt()!==r&&(Ea=a())!==r?(st=wu,wu={type:"like",table:Ea}):(n=wu,wu=r),wu})())===r&&(Gs=n,Du()!==r&&Tt()!==r&&(iu=$e())!==r&&Tt()!==r&&Hu()!==r?(st=Gs,(Oo=iu).parentheses=!0,Gs=Oo):(n=Gs,Gs=r));var Oo;return Gs})())!==r?(st=cr,Fs=Er,ue=vt,ee=it,ro=$t,(ie=Et)&&ie.forEach($e=>Xu.add(`create::${[$e.server,$e.db,$e.schema].filter(Boolean).join(".")||null}::${$e.table}`)),Er={tableList:Array.from(Xu),columnList:va(ot),ast:{type:Fs[0].toLowerCase(),keyword:"table",temporary:ue&&ue[0].toLowerCase(),if_not_exists:ee,table:ie,like:ro}},cr=Er):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r));var Fs,ue,ee,ie,ro;return cr})())===r&&(B=(function(){var cr=n,Er,vt,it,Et,$t,en,hn,ds,Ns,Fs,ue,ee,ie,ro,$e,Gs,iu;(Er=$n())!==r&&Tt()!==r?((vt=hi())===r&&(vt=ap())===r&&(vt=A0()),vt===r&&(vt=null),vt!==r&&Tt()!==r&&(it=cb())!==r&&Tt()!==r&&(Et=yo())!==r&&Tt()!==r&&($t=Po())!==r&&Tt()!==r&&(en=o())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(hn=tf())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?((ds=(function(){var pu=n,fu,Vu;return t.substr(n,7).toLowerCase()==="include"?(fu=t.substr(n,7),n+=7):(fu=r,or===0&&Kr(Ae)),fu!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(Vu=no())!==r&&Tt()!==r&&Hu()!==r?(st=pu,fu=(function(ra,fd){return{type:ra.toLowerCase(),keyword:ra.toLowerCase(),columns:fd}})(fu,Vu),pu=fu):(n=pu,pu=r),pu})())===r&&(ds=null),ds!==r&&Tt()!==r?((Ns=bu())===r&&(Ns=null),Ns!==r&&Tt()!==r?(Fs=n,(ue=dt())!==r&&(ee=Tt())!==r&&(ie=Du())!==r&&(ro=Tt())!==r&&($e=ui())!==r&&(Gs=Tt())!==r&&(iu=Hu())!==r?Fs=ue=[ue,ee,ie,ro,$e,Gs,iu]:(n=Fs,Fs=r),Fs===r&&(Fs=null),Fs!==r&&(ue=Tt())!==r?((ee=ba())===r&&(ee=null),ee!==r&&(ie=Tt())!==r?(ro=n,t.substr(n,13).toLowerCase()==="filestream_on"?($e=t.substr(n,13),n+=13):($e=r,or===0&&Kr(ou)),$e!==r&&(Gs=Tt())!==r&&(iu=yo())!==r?ro=$e=[$e,Gs,iu]:(n=ro,ro=r),ro===r&&(ro=null),ro===r?(n=cr,cr=r):(st=cr,Oo=Er,wu=vt,Ea=it,Do=Et,Ka=$t,dc=en,_f=hn,La=ds,Db=Ns,Wf=Fs,Wo=ee,$b=ro,Er={tableList:Array.from(Xu),columnList:va(ot),ast:{type:Oo[0].toLowerCase(),index_type:wu&&wu.toLowerCase(),keyword:Ea.toLowerCase(),index:Do,on_kw:Ka[0].toLowerCase(),table:dc,index_columns:_f,include:La,where:Db,with:Wf&&Wf[4],on:Wo,filestream_on:$b&&{value:$b[2]}}},cr=Er)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r);var Oo,wu,Ea,Do,Ka,dc,_f,La,Db,Wf,Wo,$b;return cr})())===r&&(B=(function(){var cr=n,Er,vt,it,Et,$t;return(Er=$n())!==r&&Tt()!==r?((vt=(function(){var en=n,hn,ds,Ns;return t.substr(n,8).toLowerCase()==="database"?(hn=t.substr(n,8),n+=8):(hn=r,or===0&&Kr(Vb)),hn===r?(n=en,en=r):(ds=n,or++,Ns=Le(),or--,Ns===r?ds=void 0:(n=ds,ds=r),ds===r?(n=en,en=r):(st=en,en=hn="DATABASE")),en})())===r&&(vt=(function(){var en=n,hn,ds,Ns;return t.substr(n,6).toLowerCase()==="schema"?(hn=t.substr(n,6),n+=6):(hn=r,or===0&&Kr(_)),hn===r?(n=en,en=r):(ds=n,or++,Ns=Le(),or--,Ns===r?ds=void 0:(n=ds,ds=r),ds===r?(n=en,en=r):(st=en,en=hn="SCHEMA")),en})()),vt!==r&&Tt()!==r?((it=P0())===r&&(it=null),it!==r&&Tt()!==r&&(Et=Tv())!==r&&Tt()!==r?(($t=(function(){var en,hn,ds,Ns,Fs,ue;if(en=n,(hn=kl())!==r){for(ds=[],Ns=n,(Fs=Tt())!==r&&(ue=kl())!==r?Ns=Fs=[Fs,ue]:(n=Ns,Ns=r);Ns!==r;)ds.push(Ns),Ns=n,(Fs=Tt())!==r&&(ue=kl())!==r?Ns=Fs=[Fs,ue]:(n=Ns,Ns=r);ds===r?(n=en,en=r):(st=en,hn=Hs(hn,ds),en=hn)}else n=en,en=r;return en})())===r&&($t=null),$t===r?(n=cr,cr=r):(st=cr,Er=(function(en,hn,ds,Ns,Fs){let ue=hn.toLowerCase();return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:en[0].toLowerCase(),keyword:ue,if_not_exists:ds,[ue]:{db:Ns.schema,schema:Ns.name},create_definitions:Fs}}})(Er,vt,it,Et,$t),cr=Er)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r),cr})()),B})())===r&&(R=(function(){var B=n,cr,Er,vt;(cr=(function(){var en=n,hn,ds,Ns;return t.substr(n,8).toLowerCase()==="truncate"?(hn=t.substr(n,8),n+=8):(hn=r,or===0&&Kr(Wi)),hn===r?(n=en,en=r):(ds=n,or++,Ns=Le(),or--,Ns===r?ds=void 0:(n=ds,ds=r),ds===r?(n=en,en=r):(st=en,en=hn="TRUNCATE")),en})())!==r&&Tt()!==r?((Er=$o())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=a())!==r?(st=B,it=cr,Et=Er,($t=vt)&&$t.forEach(en=>Xu.add(`${it}::${[en.server,en.db,en.schema].filter(Boolean).join(".")||null}::${en.table}`)),cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:it.toLowerCase(),keyword:Et&&Et.toLowerCase()||"table",name:$t}},B=cr):(n=B,B=r)):(n=B,B=r);var it,Et,$t;return B})())===r&&(R=(function(){var B=n,cr,Er;(cr=fe())!==r&&Tt()!==r&&$o()!==r&&Tt()!==r&&(Er=(function(){var it,Et,$t,en,hn,ds,Ns,Fs;if(it=n,(Et=Ya())!==r){for($t=[],en=n,(hn=Tt())!==r&&(ds=gu())!==r&&(Ns=Tt())!==r&&(Fs=Ya())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r);en!==r;)$t.push(en),en=n,(hn=Tt())!==r&&(ds=gu())!==r&&(Ns=Tt())!==r&&(Fs=Ya())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r);$t===r?(n=it,it=r):(st=it,Et=Ps(Et,$t),it=Et)}else n=it,it=r;return it})())!==r?(st=B,(vt=Er).forEach(it=>it.forEach(Et=>Et.table&&Xu.add(`rename::${[Et.server,Et.db,Et.schema].filter(Boolean).join(".")||null}::${Et.table}`))),cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"rename",table:vt}},B=cr):(n=B,B=r);var vt;return B})())===r&&(R=(function(){var B=n,cr,Er;(cr=(function(){var it=n,Et,$t,en;return t.substr(n,4).toLowerCase()==="call"?(Et=t.substr(n,4),n+=4):(Et=r,or===0&&Kr(Jb)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="CALL")),it})())!==r&&Tt()!==r&&(Er=ef())!==r?(st=B,vt=Er,cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"call",expr:vt}},B=cr):(n=B,B=r);var vt;return B})())===r&&(R=(function(){var B=n,cr,Er;(cr=(function(){var it=n,Et,$t,en;return t.substr(n,3).toLowerCase()==="use"?(Et=t.substr(n,3),n+=3):(Et=r,or===0&&Kr(ed)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):it=Et=[Et,$t]),it})())!==r&&Tt()!==r&&(Er=yo())!==r?(st=B,vt=Er,Xu.add(`use::${vt}::null`),cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"use",db:vt}},B=cr):(n=B,B=r);var vt;return B})())===r&&(R=(function(){var B;return(B=(function(){var cr=n,Er,vt,it;(Er=cn())!==r&&Tt()!==r&&$o()!==r&&Tt()!==r&&(vt=a())!==r&&Tt()!==r&&(it=(function(){var en,hn,ds,Ns,Fs,ue,ee,ie;if(en=n,(hn=Ql())!==r){for(ds=[],Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=Ql())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);Ns!==r;)ds.push(Ns),Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=Ql())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);ds===r?(n=en,en=r):(st=en,hn=Ps(hn,ds),en=hn)}else n=en,en=r;return en})())!==r?(st=cr,$t=it,(Et=vt)&&Et.length>0&&Et.forEach(en=>Xu.add(`alter::${[en.server,en.db,en.schema].filter(Boolean).join(".")||null}::${en.table}`)),Er={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"alter",keyword:"table",table:Et,expr:$t}},cr=Er):(n=cr,cr=r);var Et,$t;return cr})())===r&&(B=(function(){var cr=n,Er,vt,it,Et,$t,en,hn,ds,Ns,Fs;return(Er=cn())!==r&&Tt()!==r&&Mu()!==r&&Tt()!==r&&(vt=o())!==r&&Tt()!==r?(it=n,(Et=Du())!==r&&($t=Tt())!==r&&(en=(function(){var ue,ee,ie,ro,$e,Gs,iu,Oo;if(ue=n,(ee=zo())!==r){for(ie=[],ro=n,($e=Tt())!==r&&(Gs=gu())!==r&&(iu=Tt())!==r&&(Oo=zo())!==r?ro=$e=[$e,Gs,iu,Oo]:(n=ro,ro=r);ro!==r;)ie.push(ro),ro=n,($e=Tt())!==r&&(Gs=gu())!==r&&(iu=Tt())!==r&&(Oo=zo())!==r?ro=$e=[$e,Gs,iu,Oo]:(n=ro,ro=r);ie===r?(n=ue,ue=r):(st=ue,ee=Ps(ee,ie),ue=ee)}else n=ue,ue=r;return ue})())!==r&&(hn=Tt())!==r&&(ds=Hu())!==r?it=Et=[Et,$t,en,hn,ds]:(n=it,it=r),it===r&&(it=null),it!==r&&(Et=Tt())!==r?($t=n,(en=dt())!==r&&(hn=Tt())!==r&&(ds=(function(){var ue,ee,ie,ro,$e,Gs,iu,Oo;if(ue=n,(ee=dn())!==r){for(ie=[],ro=n,($e=Tt())!==r&&(Gs=gu())!==r&&(iu=Tt())!==r&&(Oo=dn())!==r?ro=$e=[$e,Gs,iu,Oo]:(n=ro,ro=r);ro!==r;)ie.push(ro),ro=n,($e=Tt())!==r&&(Gs=gu())!==r&&(iu=Tt())!==r&&(Oo=dn())!==r?ro=$e=[$e,Gs,iu,Oo]:(n=ro,ro=r);ie===r?(n=ue,ue=r):(st=ue,ee=Dn(ee,ie),ue=ee)}else n=ue,ue=r;return ue})())!==r?$t=en=[en,hn,ds]:(n=$t,$t=r),$t===r&&($t=null),$t!==r&&(en=Tt())!==r&&(hn=so())!==r&&(ds=Tt())!==r&&(Ns=zu())!==r&&Tt()!==r?((Fs=(function(){var ue=n,ee,ie;return dt()!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="check"?(ee=t.substr(n,5),n+=5):(ee=r,or===0&&Kr(Vi)),ee!==r&&Tt()!==r?(t.substr(n,6).toLowerCase()==="option"?(ie=t.substr(n,6),n+=6):(ie=r,or===0&&Kr(zc)),ie===r?(n=ue,ue=r):(st=ue,ue="with check option")):(n=ue,ue=r)):(n=ue,ue=r),ue})())===r&&(Fs=null),Fs===r?(n=cr,cr=r):(st=cr,Er=(function(ue,ee,ie,ro,$e){return ue&&ue.length>0&&ue.forEach(Gs=>Xu.add(`alter::${[Gs.server,Gs.db,Gs.schema].filter(Boolean).join(".")||null}::${Gs.table}`)),{tableList:Array.from(Xu),columnList:va(ot),ast:{type:"alter",keyword:"view",view:ue,columns:ee&&ee[2],attributes:ie&&ie[2],select:ro,with:$e}}})(vt,it,$t,Ns,Fs),cr=Er)):(n=cr,cr=r)):(n=cr,cr=r)):(n=cr,cr=r),cr})()),B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et;(cr=eo())!==r&&Tt()!==r?(t.substr(n,11).toLowerCase()==="transaction"?(Er=t.substr(n,11),n+=11):(Er=r,or===0&&Kr(uv)),Er!==r&&Tt()!==r?(t.substr(n,9).toLowerCase()==="isolation"?(vt=t.substr(n,9),n+=9):(vt=r,or===0&&Kr(yb)),vt!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="level"?(it=t.substr(n,5),n+=5):(it=r,or===0&&Kr(hb)),it!==r&&Tt()!==r&&(Et=(function(){var en=n,hn,ds;return t.substr(n,4).toLowerCase()==="read"?(hn=t.substr(n,4),n+=4):(hn=r,or===0&&Kr(W0)),hn!==r&&Tt()!==r?(t.substr(n,11).toLowerCase()==="uncommitted"?(ds=t.substr(n,11),n+=11):(ds=r,or===0&&Kr(jb)),ds===r&&(t.substr(n,9).toLowerCase()==="committed"?(ds=t.substr(n,9),n+=9):(ds=r,or===0&&Kr(Uf))),ds===r?(n=en,en=r):(st=en,hn={type:"origin",value:"read "+ds.toLowerCase()},en=hn)):(n=en,en=r),en===r&&(en=n,t.substr(n,10).toLowerCase()==="repeatable"?(hn=t.substr(n,10),n+=10):(hn=r,or===0&&Kr(u0)),hn!==r&&Tt()!==r?(t.substr(n,4).toLowerCase()==="read"?(ds=t.substr(n,4),n+=4):(ds=r,or===0&&Kr(W0)),ds===r?(n=en,en=r):(st=en,en=hn={type:"origin",value:"repeatable read"})):(n=en,en=r),en===r&&(en=n,t.substr(n,8).toLowerCase()==="snapshot"?(hn=t.substr(n,8),n+=8):(hn=r,or===0&&Kr(wb)),hn===r&&(t.substr(n,12).toLowerCase()==="serializable"?(hn=t.substr(n,12),n+=12):(hn=r,or===0&&Kr(Ui))),hn!==r&&(st=en,hn=Zf(hn)),en=hn)),en})())!==r?(st=B,$t=Et,cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"set",expr:[{type:"assign",left:{type:"origin",value:"transaction isolation level"},right:$t}]}},B=cr):(n=B,B=r)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r);var $t;return B===r&&(B=n,(cr=eo())!==r&&Tt()!==r?((Er=(function(){var en=n,hn,ds,Ns;return t.substr(n,6).toLowerCase()==="result"?(hn=t.substr(n,6),n+=6):(hn=r,or===0&&Kr(n0)),hn!==r&&Tt()!==r&&(ds=eo())!==r&&Tt()!==r?(t.substr(n,7).toLowerCase()==="caching"?(Ns=t.substr(n,7),n+=7):(Ns=r,or===0&&Kr(Dc)),Ns===r?(n=en,en=r):(st=en,en=hn={type:"origin",value:"result set caching"})):(n=en,en=r),en===r&&(en=n,t.substr(n,10).toLowerCase()==="statistics"?(hn=t.substr(n,10),n+=10):(hn=r,or===0&&Kr(s0)),hn!==r&&Tt()!==r?(t.substr(n,2).toLowerCase()==="io"?(ds=t.substr(n,2),n+=2):(ds=r,or===0&&Kr(Rv)),ds===r&&(t.substr(n,3).toLowerCase()==="xml"?(ds=t.substr(n,3),n+=3):(ds=r,or===0&&Kr(nv)),ds===r&&(t.substr(n,7).toLowerCase()==="profile"?(ds=t.substr(n,7),n+=7):(ds=r,or===0&&Kr(sv)),ds===r&&(t.substr(n,4).toLowerCase()==="time"?(ds=t.substr(n,4),n+=4):(ds=r,or===0&&Kr(ev))))),ds===r?(n=en,en=r):(st=en,hn={type:"origin",value:"statistics "+ds.toLowerCase()},en=hn)):(n=en,en=r)),en})())===r&&(Er=(function(){var en=n,hn,ds,Ns;return t.substr(n,9).toLowerCase()==="datefirst"?(hn=t.substr(n,9),n+=9):(hn=r,or===0&&Kr(yc)),hn===r&&(t.substr(n,10).toLowerCase()==="dateformat"?(hn=t.substr(n,10),n+=10):(hn=r,or===0&&Kr($c)),hn===r&&(t.substr(n,17).toLowerCase()==="deadlock_priority"?(hn=t.substr(n,17),n+=17):(hn=r,or===0&&Kr(Sf)),hn===r&&(t.substr(n,12).toLowerCase()==="lock_timeout"?(hn=t.substr(n,12),n+=12):(hn=r,or===0&&Kr(R0)),hn===r&&(t.substr(n,23).toLowerCase()==="concat_null_yields_null"?(hn=t.substr(n,23),n+=23):(hn=r,or===0&&Kr(Rl)),hn===r&&(t.substr(n,22).toLowerCase()==="cursor_close_on_commit"?(hn=t.substr(n,22),n+=22):(hn=r,or===0&&Kr(ff)),hn===r&&(t.substr(n,12).toLowerCase()==="fips_flagger"?(hn=t.substr(n,12),n+=12):(hn=r,or===0&&Kr(Vf)),hn===r&&(t.substr(n,15).toLowerCase()==="identity_insert"?(hn=t.substr(n,15),n+=15):(hn=r,or===0&&Kr(Vv)),hn===r&&(t.substr(n,8).toLowerCase()==="language"?(hn=t.substr(n,8),n+=8):(hn=r,or===0&&Kr(db)),hn===r&&(t.substr(n,7).toLowerCase()==="offsets"?(hn=t.substr(n,7),n+=7):(hn=r,or===0&&Kr(Of)),hn===r&&(t.substr(n,17).toLowerCase()==="quoted_identifier"?(hn=t.substr(n,17),n+=17):(hn=r,or===0&&Kr(Pc)),hn===r&&(t.substr(n,10).toLowerCase()==="arithabort"?(hn=t.substr(n,10),n+=10):(hn=r,or===0&&Kr(H0)),hn===r&&(t.substr(n,11).toLowerCase()==="arithignore"?(hn=t.substr(n,11),n+=11):(hn=r,or===0&&Kr(bf)),hn===r&&(t.substr(n,7).toLowerCase()==="fmtonly"?(hn=t.substr(n,7),n+=7):(hn=r,or===0&&Kr(Lb)),hn===r&&(t.substr(n,7).toLowerCase()==="nocount"?(hn=t.substr(n,7),n+=7):(hn=r,or===0&&Kr(Fa)),hn===r&&(t.substr(n,6).toLowerCase()==="noexec"?(hn=t.substr(n,6),n+=6):(hn=r,or===0&&Kr(Kf)),hn===r&&(t.substr(n,19).toLowerCase()==="numberic_roundabort"?(hn=t.substr(n,19),n+=19):(hn=r,or===0&&Kr(Nv)),hn===r&&(t.substr(n,9).toLowerCase()==="parseonly"?(hn=t.substr(n,9),n+=9):(hn=r,or===0&&Kr(Gb)),hn===r&&(t.substr(n,25).toLowerCase()==="query_governor_cost_limit"?(hn=t.substr(n,25),n+=25):(hn=r,or===0&&Kr(hc)),hn===r&&(t.substr(n,8).toLowerCase()==="rowcount"?(hn=t.substr(n,8),n+=8):(hn=r,or===0&&Kr(Bl)),hn===r&&(t.substr(n,8).toLowerCase()==="textsize"?(hn=t.substr(n,8),n+=8):(hn=r,or===0&&Kr(sl)),hn===r&&(hn=n,t.substr(n,13).toLowerCase()==="ansi_defaults"?(ds=t.substr(n,13),n+=13):(ds=r,or===0&&Kr(sc)),ds===r?(n=hn,hn=r):(t.substr(n,18).toLowerCase()==="ansi_null_dflt_off"?(Ns=t.substr(n,18),n+=18):(Ns=r,or===0&&Kr(Y0)),Ns===r?(n=hn,hn=r):hn=ds=[ds,Ns]),hn===r&&(t.substr(n,17).toLowerCase()==="ansi_null_dflt_on"?(hn=t.substr(n,17),n+=17):(hn=r,or===0&&Kr(N0)),hn===r&&(t.substr(n,10).toLowerCase()==="ansi_nulls"?(hn=t.substr(n,10),n+=10):(hn=r,or===0&&Kr(ov)),hn===r&&(t.substr(n,12).toLowerCase()==="ansi_padding"?(hn=t.substr(n,12),n+=12):(hn=r,or===0&&Kr(Fb)),hn===r&&(t.substr(n,13).toLowerCase()==="ansi_warnings"?(hn=t.substr(n,13),n+=13):(hn=r,or===0&&Kr(e0)),hn===r&&(t.substr(n,9).toLowerCase()==="forceplan"?(hn=t.substr(n,9),n+=9):(hn=r,or===0&&Kr(Cb)),hn===r&&(t.substr(n,12).toLowerCase()==="showplan_all"?(hn=t.substr(n,12),n+=12):(hn=r,or===0&&Kr(_0)),hn===r&&(t.substr(n,13).toLowerCase()==="showplan_text"?(hn=t.substr(n,13),n+=13):(hn=r,or===0&&Kr(zf)),hn===r&&(t.substr(n,12).toLowerCase()==="showplan_xml"?(hn=t.substr(n,12),n+=12):(hn=r,or===0&&Kr(je)),hn===r&&(t.substr(n,21).toLowerCase()==="implicit_transactions"?(hn=t.substr(n,21),n+=21):(hn=r,or===0&&Kr(o0)),hn===r&&(t.substr(n,24).toLowerCase()==="remote_proc_transactions"?(hn=t.substr(n,24),n+=24):(hn=r,or===0&&Kr(xi)),hn===r&&(t.substr(n,10).toLowerCase()==="xact_abort"?(hn=t.substr(n,10),n+=10):(hn=r,or===0&&Kr(xf)))))))))))))))))))))))))))))))))),hn!==r&&(st=en,hn=Zf(hn)),en=hn})()),Er!==r&&Tt()!==r&&(vt=mv())!==r?(st=B,cr=(function(en,hn){return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:"set",expr:[{type:"assign",left:en,right:hn}]}}})(Er,vt),B=cr):(n=B,B=r)):(n=B,B=r)),B})())===r&&(R=(function(){var B=n,cr,Er;(cr=(function(){var it=n,Et,$t,en;return t.substr(n,4).toLowerCase()==="lock"?(Et=t.substr(n,4),n+=4):(Et=r,or===0&&Kr(Xf)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):it=Et=[Et,$t]),it})())!==r&&Tt()!==r&&su()!==r&&Tt()!==r&&(Er=(function(){var it,Et,$t,en,hn,ds,Ns,Fs;if(it=n,(Et=yn())!==r){for($t=[],en=n,(hn=Tt())!==r&&(ds=gu())!==r&&(Ns=Tt())!==r&&(Fs=yn())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r);en!==r;)$t.push(en),en=n,(hn=Tt())!==r&&(ds=gu())!==r&&(Ns=Tt())!==r&&(Fs=yn())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r);$t===r?(n=it,it=r):(st=it,Et=vf(Et,$t),it=Et)}else n=it,it=r;return it})())!==r?(st=B,vt=Er,cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"lock",keyword:"tables",tables:vt}},B=cr):(n=B,B=r);var vt;return B})())===r&&(R=(function(){var B=n,cr;return(cr=(function(){var Er=n,vt,it,Et;return t.substr(n,6).toLowerCase()==="unlock"?(vt=t.substr(n,6),n+=6):(vt=r,or===0&&Kr(Rs)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):Er=vt=[vt,it]),Er})())!==r&&Tt()!==r&&su()!==r?(st=B,cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"unlock",keyword:"tables"}},B=cr):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et;(cr=xt())!==r&&Tt()!==r&&(Er=(function(){var en,hn,ds,Ns,Fs,ue,ee,ie;if(en=n,(hn=Qi())!==r){for(ds=[],Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=Qi())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);Ns!==r;)ds.push(Ns),Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=Qi())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);ds===r?(n=en,en=r):(st=en,hn=Ps(hn,ds),en=hn)}else n=en,en=r;return en})())!==r?(st=B,$t=Er,cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"declare",declare:$t,symbol:","}},B=cr):(n=B,B=r);var $t;return B===r&&(B=n,(cr=xt())!==r&&Tt()!==r&&(Er=yi())!==r&&Tt()!==r&&(vt=ea())!==r&&Tt()!==r?((it=so())===r&&(it=null),it!==r&&Tt()!==r&&$o()!==r&&Tt()!==r&&(Et=gc())!==r?(st=B,cr=(function(en,hn,ds,Ns,Fs){return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:"declare",declare:[{at:"@",name:ds,as:Ns&&Ns[0].toLowerCase(),keyword:"table",prefix:"table",definition:Fs}]}}})(0,0,vt,it,Et),B=cr):(n=B,B=r)):(n=B,B=r)),B})())===r&&(R=(function(){var B=n,cr,Er,vt;t.substr(n,7).toLowerCase()==="execute"?(cr=t.substr(n,7),n+=7):(cr=r,or===0&&Kr(ji)),cr===r&&(t.substr(n,4).toLowerCase()==="exec"?(cr=t.substr(n,4),n+=4):(cr=r,or===0&&Kr(af))),cr!==r&&Tt()!==r&&(Er=o())!==r&&Tt()!==r?((vt=(function(){var en,hn,ds,Ns,Fs,ue,ee,ie;if(en=n,(hn=ya())!==r){for(ds=[],Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=ya())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);Ns!==r;)ds.push(Ns),Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=ya())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);ds===r?(n=en,en=r):(st=en,hn=$l(hn,ds),en=hn)}else n=en,en=r;return en})())===r&&(vt=null),vt===r?(n=B,B=r):(st=B,it=cr,Et=Er,$t=vt,cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"exec",keyword:it,module:Et,parameters:$t}},B=cr)):(n=B,B=r);var it,Et,$t;return B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t,en,hn,ds;t.substr(n,2).toLowerCase()==="if"?(cr=t.substr(n,2),n+=2):(cr=r,or===0&&Kr(Uc)),cr!==r&&Tt()!==r&&(Er=ht())!==r&&Tt()!==r&&(vt=Ri())!==r&&Tt()!==r?((it=Ei())===r&&(it=null),it!==r&&Tt()!==r?((Et=Yt())===r&&(Et=null),Et!==r&&Tt()!==r?($t=n,(en=Cn())!==r&&(hn=Tt())!==r&&(ds=Ri())!==r?$t=en=[en,hn,ds]:(n=$t,$t=r),$t===r&&($t=null),$t!==r&&(en=Tt())!==r?((hn=Ei())===r&&(hn=null),hn===r?(n=B,B=r):(st=B,Ns=Er,Fs=vt,ue=it,ee=Et,ie=$t,ro=hn,cr={tableList:Array.from(Xu),columnList:va(ot),ast:{type:"if",keyword:"if",boolean_expr:Ns,semicolons:[ue||"",ro||""],go:ee,if_expr:Fs,else_expr:ie&&ie[2]}},B=cr)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r);var Ns,Fs,ue,ee,ie,ro;return B})()),R}function Ri(){var R;return(R=Se())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t;return(cr=Tt())===r?(n=B,B=r):((Er=Ua())===r&&(Er=null),Er!==r&&Tt()!==r&&mn()!==r&&Tt()!==r&&(vt=a())!==r&&Tt()!==r&&eo()!==r&&Tt()!==r&&(it=(function(){var en,hn,ds,Ns,Fs,ue,ee,ie;if(en=n,(hn=dr())!==r){for(ds=[],Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=dr())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);Ns!==r;)ds.push(Ns),Ns=n,(Fs=Tt())!==r&&(ue=gu())!==r&&(ee=Tt())!==r&&(ie=dr())!==r?Ns=Fs=[Fs,ue,ee,ie]:(n=Ns,Ns=r);ds===r?(n=en,en=r):(st=en,hn=Ps(hn,ds),en=hn)}else n=en,en=r;return en})())!==r&&Tt()!==r?((Et=ln())===r&&(Et=null),Et!==r&&Tt()!==r?(($t=bu())===r&&($t=null),$t===r?(n=B,B=r):(st=B,cr=(function(en,hn,ds,Ns,Fs){let ue={},ee=ie=>{let{server:ro,db:$e,schema:Gs,as:iu,table:Oo,join:wu}=ie,Ea=wu?"select":"update",Do=[ro,$e,Gs].filter(Boolean).join(".")||null;$e&&(ue[Oo]=Do),Oo&&Xu.add(`${Ea}::${Do}::${Oo}`)};return hn&&hn.forEach(ee),Ns&&Ns.forEach(ee),ds&&ds.forEach(ie=>{if(ie.table){let ro=G0(ie.table);Xu.add(`update::${ue[ro]||null}::${ro}`)}ot.add(`update::${ie.table}::${ie.column}`)}),{tableList:Array.from(Xu),columnList:va(ot),ast:{with:en,type:"update",table:hn,set:ds,from:Ns,where:Fs}}})(Er,vt,it,Et,$t),B=cr)):(n=B,B=r)):(n=B,B=r)),B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t;return(cr=Ln())!==r&&Tt()!==r?((Er=me())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=o())!==r&&Tt()!==r?((it=Dt())===r&&(it=null),it!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(Et=no())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r&&($t=It())!==r?(st=B,cr=(function(en,hn,ds,Ns,Fs){if(hn&&(Xu.add(`insert::${[hn.server,hn.db,hn.schema].filter(Boolean).join(".")||null}::${hn.table}`),hn.as=null),Ns){let ue=hn&&hn.table||null;Array.isArray(Fs.values)&&Fs.values.forEach((ee,ie)=>{if(ee.value.length!=Ns.length)throw Error("Error: column count doesn't match value count at row "+(ie+1))}),Ns.forEach(ee=>ot.add(`insert::${ue}::${ee}`))}return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:en,table:[hn],columns:Ns,values:Fs,partition:ds}}})(cr,vt,it,Et,$t),B=cr):(n=B,B=r)):(n=B,B=r)):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t;return(cr=Ln())!==r&&Tt()!==r?((Er=ne())===r&&(Er=null),Er!==r&&Tt()!==r?((vt=me())===r&&(vt=null),vt!==r&&Tt()!==r&&(it=o())!==r&&Tt()!==r?((Et=Dt())===r&&(Et=null),Et!==r&&Tt()!==r&&($t=It())!==r?(st=B,cr=(function(en,hn,ds,Ns,Fs,ue){Ns&&(Xu.add(`insert::${[Ns.server,Ns.db,Ns.schema].filter(Boolean).join(".")||null}::${Ns.table}`),ot.add(`insert::${Ns.table}::(.*)`),Ns.as=null);let ee=[hn,ds].filter(ie=>ie).map(ie=>ie[0]&&ie[0].toLowerCase()).join(" ");return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:en,table:[Ns],columns:null,values:ue,partition:Fs,prefix:ee}}})(cr,Er,vt,it,Et,$t),B=cr):(n=B,B=r)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt,it;return(cr=ks())!==r&&Tt()!==r?((Er=a())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=ln())!==r&&Tt()!==r?((it=bu())===r&&(it=null),it===r?(n=B,B=r):(st=B,cr=(function(Et,$t,en){if($t&&$t.forEach(hn=>{let{server:ds,db:Ns,schema:Fs,as:ue,table:ee,join:ie}=hn,ro=ie?"select":"delete",$e=[ds,Ns,Fs].filter(Boolean).join(".")||null;ee&&Xu.add(`${ro}::${$e}::${ee}`),ie||ot.add(`delete::${ee}::(.*)`)}),Et===null&&$t.length===1){let hn=$t[0];Et=[{db:hn.db,schema:hn.schema,table:hn.table,as:hn.as,addition:!0}]}return{tableList:Array.from(Xu),columnList:va(ot),ast:{type:"delete",table:Et,from:$t,where:en}}})(Er,vt,it),B=cr)):(n=B,B=r)):(n=B,B=r),B})())===r&&(R=Ji())===r&&(R=(function(){var B,cr;if(B=[],(cr=Yf())!==r)for(;cr!==r;)B.push(cr),cr=Yf();else B=r;return B})()),R}function qu(){var R,B;return R=n,(B=Nr())!==r&&Tt()!==r&&Qs()!==r?(st=R,R=B="union all"):(n=R,R=r),R===r&&(R=n,(B=Nr())!==r&&(st=R,B="union"),R=B),R}function Se(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=ka())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=qu())!==r&&(Et=Tt())!==r&&($t=ka())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=qu())!==r&&(Et=Tt())!==r&&($t=ka())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr!==r&&(Er=Tt())!==r?((vt=k())===r&&(vt=null),vt!==r&&(it=Tt())!==r?((Et=Fr())===r&&(Et=null),Et===r?(n=R,R=r):(st=R,R=B=(function(en,hn,ds,Ns){let Fs=en;for(let ue=0;ue<hn.length;ue++)Fs._next=hn[ue][3],Fs.set_op=hn[ue][1],Fs=Fs._next;return ds&&(en._orderby=ds),Ns&&(en._limit=Ns),{tableList:Array.from(Xu),columnList:va(ot),ast:en}})(B,cr,vt,Et))):(n=R,R=r)):(n=R,R=r)}else n=R,R=r;return R}function tf(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=Qu())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Qu())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Qu())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=Dn(B,cr))}else n=R,R=r;return R}function Qu(){var R,B,cr;return R=n,vl()!==r&&Tt()!==r&&(B=zo())!==r&&Tt()!==r&&rc()!==r&&Tt()!==r?((cr=Jn())===r&&(cr=ms()),cr===r?(n=R,R=r):(st=R,R=Pn(B,cr))):(n=R,R=r),R===r&&(R=n,vl()!==r&&Tt()!==r&&(B=zo())!==r&&Tt()!==r&&rc()!==r&&Tt()!==r?(st=R,R=B):(n=R,R=r),R===r&&(R=(function(){var Er=n,vt,it;return(vt=zo())!==r&&Tt()!==r?((it=Jn())===r&&(it=ms()),it===r?(n=Er,Er=r):(st=Er,vt=Pn(vt,it),Er=vt)):(n=Er,Er=r),Er===r&&(Er=zo()),Er})())),R}function P0(){var R,B;return R=n,t.substr(n,2).toLowerCase()==="if"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(Uo)),B!==r&&Tt()!==r&&At()!==r&&Tt()!==r&&pt()!==r?(st=R,R=B="IF NOT EXISTS"):(n=R,R=r),R}function gc(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,Du()!==r)if(Tt()!==r)if((B=al())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=al())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=al())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr!==r&&(Er=Tt())!==r?((vt=gu())===r&&(vt=null),vt!==r&&(it=Tt())!==r&&(Et=Hu())!==r?(st=R,R=Ps(B,cr)):(n=R,R=r)):(n=R,R=r)}else n=R,R=r;else n=R,R=r;else n=R,R=r;return R}function al(){var R;return(R=Eu())===r&&(R=qc())===r&&(R=lt())===r&&(R=Wn()),R}function Jl(){var R,B,cr,Er,vt;return R=n,(B=(function(){var it=n,Et;return(Et=(function(){var $t=n,en,hn,ds;return t.substr(n,8).toLowerCase()==="not null"?(en=t.substr(n,8),n+=8):(en=r,or===0&&Kr(Ip)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):$t=en=[en,hn]),$t})())!==r&&(st=it,Et={type:"not null",value:"not null"}),it=Et})())===r&&(B=mt()),B!==r&&(st=R,(vt=B)&&!vt.value&&(vt.value="null"),B={nullable:vt}),(R=B)===r&&(R=n,(B=(function(){var it=n,Et;return Ar()!==r&&Tt()!==r&&(Et=ht())!==r?(st=it,it={type:"default",value:Et}):(n=it,it=r),it})())!==r&&(st=R,B={default_val:B}),(R=B)===r&&(R=n,(B=ve())!==r&&(st=R,B={check:B}),(R=B)===r&&(R=n,t.substr(n,6).toLowerCase()==="unique"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(pe)),B!==r&&Tt()!==r?(t.substr(n,3).toLowerCase()==="key"?(cr=t.substr(n,3),n+=3):(cr=r,or===0&&Kr(_o)),cr===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B=(function(it){let Et=["unique"];return it&&Et.push(it),{unique:Et.join(" ").toLowerCase("")}})(cr))):(n=R,R=r),R===r&&(R=n,t.substr(n,7).toLowerCase()==="primary"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(Gi)),B===r&&(B=null),B!==r&&Tt()!==r?(t.substr(n,3).toLowerCase()==="key"?(cr=t.substr(n,3),n+=3):(cr=r,or===0&&Kr(_o)),cr===r?(n=R,R=r):(st=R,R=B=(function(it){let Et=[];return it&&Et.push("primary"),Et.push("key"),{primary_key:Et.join(" ").toLowerCase("")}})(B))):(n=R,R=r),R===r&&(R=n,(B=(function(){var it=n,Et,$t,en,hn,ds,Ns,Fs,ue,ee,ie,ro;return t.substr(n,8).toLowerCase()==="identity"?(Et=t.substr(n,8),n+=8):(Et=r,or===0&&Kr(mi)),Et!==r&&Tt()!==r?($t=n,(en=Du())!==r&&(hn=Tt())!==r&&(ds=vs())!==r&&(Ns=Tt())!==r&&(Fs=gu())!==r&&(ue=Tt())!==r&&(ee=vs())!==r&&(ie=Tt())!==r&&(ro=Hu())!==r?$t=en=[en,hn,ds,Ns,Fs,ue,ee,ie,ro]:(n=$t,$t=r),$t===r&&($t=null),$t===r?(n=it,it=r):(st=it,Et=(function($e){return{keyword:"identity",seed:$e&&$e[2],increment:$e&&$e[6],parentheses:!!$e}})($t),it=Et)):(n=it,it=r),it})())!==r&&(st=R,B={auto_increment:B}),(R=B)===r&&(R=n,(B=_i())!==r&&(st=R,B={comment:B}),(R=B)===r&&(R=n,(B=Ba())!==r&&(st=R,B={collate:B}),(R=B)===r&&(R=n,(B=(function(){var it=n,Et,$t;return t.substr(n,13).toLowerCase()==="column_format"?(Et=t.substr(n,13),n+=13):(Et=r,or===0&&Kr(Fi)),Et!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="fixed"?($t=t.substr(n,5),n+=5):($t=r,or===0&&Kr(T0)),$t===r&&(t.substr(n,7).toLowerCase()==="dynamic"?($t=t.substr(n,7),n+=7):($t=r,or===0&&Kr(dl)),$t===r&&(t.substr(n,7).toLowerCase()==="default"?($t=t.substr(n,7),n+=7):($t=r,or===0&&Kr(Gl)))),$t===r?(n=it,it=r):(st=it,Et={type:"column_format",value:$t.toLowerCase()},it=Et)):(n=it,it=r),it})())!==r&&(st=R,B={column_format:B}),(R=B)===r&&(R=n,(B=(function(){var it=n,Et,$t;return t.substr(n,7).toLowerCase()==="storage"?(Et=t.substr(n,7),n+=7):(Et=r,or===0&&Kr(Fl)),Et!==r&&Tt()!==r?(t.substr(n,4).toLowerCase()==="disk"?($t=t.substr(n,4),n+=4):($t=r,or===0&&Kr(nc)),$t===r&&(t.substr(n,6).toLowerCase()==="memory"?($t=t.substr(n,6),n+=6):($t=r,or===0&&Kr(xc))),$t===r?(n=it,it=r):(st=it,Et={type:"storage",value:$t.toLowerCase()},it=Et)):(n=it,it=r),it})())!==r&&(st=R,B={storage:B}),(R=B)===r&&(R=n,(B=Jt())!==r&&(st=R,B={reference_definition:B}),(R=B)===r&&(R=n,(B=E0())!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=Ke())!==r?(st=R,R=B=(function(it,Et,$t){return{character_set:{type:it,value:$t,symbol:Et}}})(B,cr,Er)):(n=R,R=r)):(n=R,R=r)))))))))))),R}function qc(){var R,B,cr,Er,vt,it;return R=n,(B=zo())!==r&&Tt()!==r&&(cr=of())!==r&&(Er=Tt())!==r?((vt=(function(){var Et,$t,en,hn,ds,Ns;if(Et=n,($t=Jl())!==r)if(Tt()!==r){for(en=[],hn=n,(ds=Tt())!==r&&(Ns=Jl())!==r?hn=ds=[ds,Ns]:(n=hn,hn=r);hn!==r;)en.push(hn),hn=n,(ds=Tt())!==r&&(Ns=Jl())!==r?hn=ds=[ds,Ns]:(n=hn,hn=r);en===r?(n=Et,Et=r):(st=Et,Et=$t=(function(Fs,ue){let ee=Fs;for(let ie=0;ie<ue.length;ie++)ee={...ee,...ue[ie][1]};return ee})($t,en))}else n=Et,Et=r;else n=Et,Et=r;return Et})())===r&&(vt=null),vt===r?(n=R,R=r):(st=R,R=B=(function(Et,$t,en){return ot.add(`create::${Et.table}::${Et.column}`),{column:Et,definition:$t,resource:"column",...en||{}}})(B,cr,vt))):(n=R,R=r),R===r&&(R=n,(B=zo())!==r&&Tt()!==r?(cr=n,(Er=so())!==r&&(vt=Tt())!==r&&(it=ht())!==r?cr=Er=[Er,vt,it]:(n=cr,cr=r),cr===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B=(function(Et,$t){return $t&&(Et.as=$t[2]),{column:Et,resource:"column"}})(B,cr))):(n=R,R=r)),R}function Ba(){var R,B,cr;return R=n,(function(){var Er=n,vt,it,Et;return t.substr(n,7).toLowerCase()==="collate"?(vt=t.substr(n,7),n+=7):(vt=r,or===0&&Kr(He)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):(st=Er,Er=vt="COLLATE")),Er})()!==r&&Tt()!==r?((B=Wa())===r&&(B=null),B!==r&&Tt()!==r&&(cr=yo())!==r?(st=R,R={type:"collate",keyword:"collate",collate:{name:cr,symbol:B}}):(n=R,R=r)):(n=R,R=r),R}function Qi(){var R,B,cr,Er,vt,it,Et,$t;return R=n,yi()!==r&&Tt()!==r&&(B=ea())!==r&&Tt()!==r?((cr=so())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=of())!==r&&Tt()!==r?(vt=n,(it=Wa())!==r&&(Et=Tt())!==r&&($t=ht())!==r?vt=it=[it,Et,$t]:(n=vt,vt=r),vt===r&&(vt=null),vt===r?(n=R,R=r):(st=R,R=(function(en,hn,ds,Ns,Fs){return{at:"@",name:hn,as:ds&&ds[0].toLowerCase(),datatype:Ns,keyword:"variable",definition:Fs&&{type:"default",keyword:Fs[0],value:Fs[2]}}})(0,B,cr,Er,vt))):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,yi()!==r&&Tt()!==r&&(B=ea())!==r&&Tt()!==r?(t.substr(n,6).toLowerCase()==="cursor"?(cr=t.substr(n,6),n+=6):(cr=r,or===0&&Kr(I0)),cr===r?(n=R,R=r):(st=R,R=(function(en,hn){return{at:"@",name:hn,keyword:"cursor",prefix:"cursor"}})(0,B))):(n=R,R=r)),R}function ya(){var R,B,cr,Er;return R=n,t.charCodeAt(n)===64?(B="@",n++):(B=r,or===0&&Kr(qf)),B!==r&&(cr=yo())!==r&&Tt()!==r&&Wa()!==r&&Tt()!==r&&(Er=ht())!==r?(st=R,R=B={type:"variable",name:cr,value:Er}):(n=R,R=r),R}function l(){var R,B,cr;return R=n,t.substr(n,2).toLowerCase()==="if"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(Uc)),B!==r&&Tt()!==r?(t.substr(n,6).toLowerCase()==="exists"?(cr=t.substr(n,6),n+=6):(cr=r,or===0&&Kr(wc)),cr===r?(n=R,R=r):(st=R,R=B="if exists")):(n=R,R=r),R}function dn(){var R;return t.substr(n,10).toLowerCase()==="encryption"?(R=t.substr(n,10),n+=10):(R=r,or===0&&Kr(jl)),R===r&&(t.substr(n,13).toLowerCase()==="schemabinding"?(R=t.substr(n,13),n+=13):(R=r,or===0&&Kr(Oi)),R===r&&(t.substr(n,13).toLowerCase()==="view_metadata"?(R=t.substr(n,13),n+=13):(R=r,or===0&&Kr(bb)))),R}function Ql(){var R;return(R=(function(){var B=n,cr,Er;return(cr=vc())!==r&&Tt()!==r&&(Er=Eu())!==r?(st=B,cr=(function(vt){return{action:"add",create_definitions:vt,resource:"constraint",type:"alter"}})(Er),B=cr):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt;return(cr=pr())!==r&&Tt()!==r&&(Er=Av())!==r&&Tt()!==r&&(vt=ea())!==r?(st=B,cr=(function(it,Et){return{action:"drop",constraint:Et,keyword:it.toLowerCase(),resource:"constraint",type:"alter"}})(Er,vt),B=cr):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt,it;return(cr=dt())!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="check"?(Er=t.substr(n,5),n+=5):(Er=r,or===0&&Kr(Vi)),Er!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="check"?(vt=t.substr(n,5),n+=5):(vt=r,or===0&&Kr(Vi)),vt!==r&&Tt()!==r&&Av()!==r&&Tt()!==r&&(it=ea())!==r?(st=B,cr=(function(Et){return{action:"with",constraint:Et,keyword:"check check constraint",resource:"constraint",type:"alter"}})(it),B=cr):(n=B,B=r)):(n=B,B=r)):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er;return t.substr(n,7).toLowerCase()==="nocheck"?(cr=t.substr(n,7),n+=7):(cr=r,or===0&&Kr(Qc)),cr!==r&&Tt()!==r&&Av()!==r&&Tt()!==r&&(Er=ea())!==r?(st=B,cr=(function(vt){return{action:"nocheck",keyword:"constraint",constraint:vt,resource:"constraint",type:"alter"}})(Er),B=cr):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt;(cr=vc())===r&&(cr=cn()),cr!==r&&Tt()!==r?((Er=Ev())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=qc())!==r?(st=B,it=Er,Et=vt,cr={action:cr.toLowerCase(),...Et,keyword:it,resource:"column",type:"alter"},B=cr):(n=B,B=r)):(n=B,B=r);var it,Et;return B})())===r&&(R=(function(){var B=n,cr,Er,vt;return(cr=pr())!==r&&Tt()!==r?((Er=Ev())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=zo())!==r?(st=B,cr=(function(it,Et){return{action:"drop",column:Et,keyword:it,resource:"column",type:"alter"}})(Er,vt),B=cr):(n=B,B=r)):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er;(cr=vc())!==r&&Tt()!==r&&(Er=lt())!==r?(st=B,vt=Er,cr={action:"add",type:"alter",...vt},B=cr):(n=B,B=r);var vt;return B})())===r&&(R=(function(){var B=n,cr,Er;(cr=vc())!==r&&Tt()!==r&&(Er=Wn())!==r?(st=B,vt=Er,cr={action:"add",type:"alter",...vt},B=cr):(n=B,B=r);var vt;return B})())===r&&(R=(function(){var B=n,cr,Er,vt;(cr=fe())!==r&&Tt()!==r?((Er=qr())===r&&(Er=so()),Er===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=yo())!==r?(st=B,Et=vt,cr={action:"rename",type:"alter",resource:"table",keyword:(it=Er)&&it[0].toLowerCase(),table:Et},B=cr):(n=B,B=r)):(n=B,B=r);var it,Et;return B})())===r&&(R=vi())===r&&(R=Va()),R}function vi(){var R,B,cr,Er;return R=n,t.substr(n,9).toLowerCase()==="algorithm"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(kc)),B!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r?(t.substr(n,7).toLowerCase()==="default"?(Er=t.substr(n,7),n+=7):(Er=r,or===0&&Kr(Gl)),Er===r&&(t.substr(n,7).toLowerCase()==="instant"?(Er=t.substr(n,7),n+=7):(Er=r,or===0&&Kr(vb)),Er===r&&(t.substr(n,7).toLowerCase()==="inplace"?(Er=t.substr(n,7),n+=7):(Er=r,or===0&&Kr(Zc)),Er===r&&(t.substr(n,4).toLowerCase()==="copy"?(Er=t.substr(n,4),n+=4):(Er=r,or===0&&Kr(nl))))),Er===r?(n=R,R=r):(st=R,R=B={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:cr,algorithm:Er})):(n=R,R=r)):(n=R,R=r),R}function Va(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="lock"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(Xf)),B!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r?(t.substr(n,7).toLowerCase()==="default"?(Er=t.substr(n,7),n+=7):(Er=r,or===0&&Kr(Gl)),Er===r&&(t.substr(n,4).toLowerCase()==="none"?(Er=t.substr(n,4),n+=4):(Er=r,or===0&&Kr(gl)),Er===r&&(t.substr(n,6).toLowerCase()==="shared"?(Er=t.substr(n,6),n+=6):(Er=r,or===0&&Kr(lf)),Er===r&&(t.substr(n,9).toLowerCase()==="exclusive"?(Er=t.substr(n,9),n+=9):(Er=r,or===0&&Kr(Jc))))),Er===r?(n=R,R=r):(st=R,R=B={type:"alter",keyword:"lock",resource:"lock",symbol:cr,lock:Er})):(n=R,R=r)):(n=R,R=r),R}function lt(){var R,B,cr,Er,vt,it;return R=n,(B=cb())===r&&(B=ad()),B!==r&&Tt()!==r?((cr=ta())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=ni())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=il())!==r&&Tt()!==r?((it=$i())===r&&(it=null),it!==r&&Tt()!==r?(st=R,R=B=(function(Et,$t,en,hn,ds){return{index:$t,definition:hn,keyword:Et.toLowerCase(),index_type:en,resource:"index",index_options:ds}})(B,cr,Er,vt,it)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R}function Wn(){var R,B,cr,Er,vt,it;return R=n,(B=(function(){var Et=n,$t,en,hn;return t.substr(n,8).toLowerCase()==="fulltext"?($t=t.substr(n,8),n+=8):($t=r,or===0&&Kr(Yc)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):(st=Et,Et=$t="FULLTEXT")),Et})())===r&&(B=(function(){var Et=n,$t,en,hn;return t.substr(n,7).toLowerCase()==="spatial"?($t=t.substr(n,7),n+=7):($t=r,or===0&&Kr(Z0)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):(st=Et,Et=$t="SPATIAL")),Et})()),B!==r&&Tt()!==r?((cr=cb())===r&&(cr=ad()),cr===r&&(cr=null),cr!==r&&Tt()!==r?((Er=ta())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=il())!==r&&Tt()!==r?((it=$i())===r&&(it=null),it!==r&&Tt()!==r?(st=R,R=B=(function(Et,$t,en,hn,ds){return{index:en,definition:hn,keyword:$t&&`${Et.toLowerCase()} ${$t.toLowerCase()}`||Et.toLowerCase(),index_options:ds,resource:"index"}})(B,cr,Er,vt,it)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R}function Eu(){var R;return(R=(function(){var B=n,cr,Er,vt,it,Et;(cr=ia())===r&&(cr=null),cr!==r&&Tt()!==r?(t.substr(n,11).toLowerCase()==="primary key"?(Er=t.substr(n,11),n+=11):(Er=r,or===0&&Kr(gv)),Er!==r&&Tt()!==r?((vt=ni())===r&&(vt=null),vt!==r&&Tt()!==r&&(it=il())!==r&&Tt()!==r?((Et=(function(){var Fs=n,ue,ee,ie;return(ue=dt())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(ee=ui())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r&&Po()!==r&&Tt()!==r&&vl()!==r&&Tt()!==r&&(ie=ea())!==r&&Tt()!==r&&rc()!==r?(st=Fs,Fs=ue={with:ee,on:ie}):(n=Fs,Fs=r),Fs===r&&(Fs=n,(ue=$i())===r&&(ue=ui()),ue!==r&&(st=Fs,ue=(function(ro){return{index_options:ro}})(ue)),Fs=ue),Fs})())===r&&(Et=null),Et===r?(n=B,B=r):(st=B,en=Er,hn=vt,ds=it,Ns=Et,cr={constraint:($t=cr)&&$t.constraint,definition:ds,constraint_type:en.toLowerCase(),keyword:$t&&$t.keyword,index_type:hn,resource:"constraint",...Ns},B=cr)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r);var $t,en,hn,ds,Ns;return B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t,en;(cr=ia())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=hi())!==r&&Tt()!==r?((vt=cb())===r&&(vt=ad()),vt===r&&(vt=null),vt!==r&&Tt()!==r?((it=ta())===r&&(it=null),it!==r&&Tt()!==r?((Et=ni())===r&&(Et=null),Et!==r&&Tt()!==r&&($t=il())!==r&&Tt()!==r?((en=$i())===r&&(en=null),en===r?(n=B,B=r):(st=B,ds=Er,Ns=vt,Fs=it,ue=Et,ee=$t,ie=en,cr={constraint:(hn=cr)&&hn.constraint,definition:ee,constraint_type:Ns&&`${ds.toLowerCase()} ${Ns.toLowerCase()}`||ds.toLowerCase(),keyword:hn&&hn.keyword,index_type:ue,index:Fs,resource:"constraint",index_options:ie},B=cr)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r);var hn,ds,Ns,Fs,ue,ee,ie;return B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et;(cr=ia())===r&&(cr=null),cr!==r&&Tt()!==r?(t.substr(n,11).toLowerCase()==="foreign key"?(Er=t.substr(n,11),n+=11):(Er=r,or===0&&Kr(ei)),Er!==r&&Tt()!==r?((vt=ta())===r&&(vt=null),vt!==r&&Tt()!==r&&(it=il())!==r&&Tt()!==r?((Et=Jt())===r&&(Et=null),Et===r?(n=B,B=r):(st=B,en=Er,hn=vt,ds=it,Ns=Et,cr={constraint:($t=cr)&&$t.constraint,definition:ds,constraint_type:en,keyword:$t&&$t.keyword,index:hn,resource:"constraint",reference_definition:Ns},B=cr)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r);var $t,en,hn,ds,Ns;return B})())===r&&(R=ve())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t,en,hn,ds;return(cr=ia())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=Ar())!==r&&Tt()!==r&&(vt=e())!==r&&Tt()!==r?(t.substr(n,3).toLowerCase()==="for"?(it=t.substr(n,3),n+=3):(it=r,or===0&&Kr(Ki)),it!==r&&Tt()!==r?((Et=ta())===r&&(Et=null),Et!==r&&Tt()!==r?($t=n,(en=dt())!==r&&(hn=Tt())!==r&&(ds=Rr())!==r?$t=en=[en,hn,ds]:(n=$t,$t=r),$t===r&&($t=null),$t===r?(n=B,B=r):(st=B,cr=(function(Ns,Fs,ue,ee,ie){return{constraint_type:Fs[0].toLowerCase(),keyword:Ns&&Ns.keyword,constraint:Ns&&Ns.constraint,definition:[ue],resource:"constraint",for:ee,with_values:ie&&{type:"origin",value:"with values"}}})(cr,Er,vt,Et,$t),B=cr)):(n=B,B=r)):(n=B,B=r)):(n=B,B=r),B})()),R}function ia(){var R,B,cr;return R=n,(B=Av())!==r&&Tt()!==r?((cr=yo())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B=(function(Er,vt){return{keyword:Er.toLowerCase(),constraint:vt}})(B,cr))):(n=R,R=r),R}function ve(){var R,B,cr,Er,vt,it,Et,$t,en,hn;return R=n,(B=ia())===r&&(B=null),B!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="check"?(cr=t.substr(n,5),n+=5):(cr=r,or===0&&Kr(Vi)),cr!==r&&Tt()!==r?(Er=n,t.substr(n,3).toLowerCase()==="not"?(vt=t.substr(n,3),n+=3):(vt=r,or===0&&Kr(g0)),vt!==r&&(it=Tt())!==r?(t.substr(n,3).toLowerCase()==="for"?(Et=t.substr(n,3),n+=3):(Et=r,or===0&&Kr(Ki)),Et!==r&&($t=Tt())!==r?(t.substr(n,11).toLowerCase()==="replication"?(en=t.substr(n,11),n+=11):(en=r,or===0&&Kr(Pb)),en!==r&&(hn=Tt())!==r?Er=vt=[vt,it,Et,$t,en,hn]:(n=Er,Er=r)):(n=Er,Er=r)):(n=Er,Er=r),Er===r&&(Er=null),Er!==r&&(vt=Du())!==r&&(it=Tt())!==r&&(Et=e())!==r&&($t=Tt())!==r&&(en=Hu())!==r?(st=R,R=B=(function(ds,Ns,Fs,ue){return{constraint_type:Ns.toLowerCase(),keyword:ds&&ds.keyword,constraint:ds&&ds.constraint,index_type:Fs&&{keyword:"not for replication",type:""},definition:[ue],resource:"constraint"}})(B,cr,Er,Et)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R}function Jt(){var R,B,cr,Er,vt,it,Et,$t,en,hn;return R=n,(B=(function(){var ds=n,Ns,Fs,ue;return t.substr(n,10).toLowerCase()==="references"?(Ns=t.substr(n,10),n+=10):(Ns=r,or===0&&Kr(ml)),Ns===r?(n=ds,ds=r):(Fs=n,or++,ue=Le(),or--,ue===r?Fs=void 0:(n=Fs,Fs=r),Fs===r?(n=ds,ds=r):(st=ds,ds=Ns="REFERENCES")),ds})())!==r&&Tt()!==r&&(cr=a())!==r&&Tt()!==r&&(Er=il())!==r&&Tt()!==r?(t.substr(n,10).toLowerCase()==="match full"?(vt=t.substr(n,10),n+=10):(vt=r,or===0&&Kr(pb)),vt===r&&(t.substr(n,13).toLowerCase()==="match partial"?(vt=t.substr(n,13),n+=13):(vt=r,or===0&&Kr(j0)),vt===r&&(t.substr(n,12).toLowerCase()==="match simple"?(vt=t.substr(n,12),n+=12):(vt=r,or===0&&Kr(B0)))),vt===r&&(vt=null),vt!==r&&Tt()!==r?((it=nf())===r&&(it=null),it!==r&&Tt()!==r?((Et=nf())===r&&(Et=null),Et===r?(n=R,R=r):(st=R,$t=vt,en=it,hn=Et,R=B={definition:Er,table:cr,keyword:B.toLowerCase(),match:$t&&$t.toLowerCase(),on_action:[en,hn].filter(ds=>ds)})):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,(B=nf())!==r&&(st=R,B={on_action:[B]}),R=B),R}function nf(){var R,B,cr,Er;return R=n,Po()!==r&&Tt()!==r?((B=ks())===r&&(B=mn()),B!==r&&Tt()!==r&&(cr=(function(){var vt=n,it,Et;return(it=Ee())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r?((Et=yt())===r&&(Et=null),Et!==r&&Tt()!==r&&Hu()!==r?(st=vt,vt=it={type:"function",name:{name:[{type:"origin",value:it}]},args:Et}):(n=vt,vt=r)):(n=vt,vt=r),vt===r&&(vt=n,t.substr(n,8).toLowerCase()==="restrict"?(it=t.substr(n,8),n+=8):(it=r,or===0&&Kr(Mc)),it===r&&(t.substr(n,7).toLowerCase()==="cascade"?(it=t.substr(n,7),n+=7):(it=r,or===0&&Kr(Cl)),it===r&&(t.substr(n,8).toLowerCase()==="set null"?(it=t.substr(n,8),n+=8):(it=r,or===0&&Kr($u)),it===r&&(t.substr(n,9).toLowerCase()==="no action"?(it=t.substr(n,9),n+=9):(it=r,or===0&&Kr(r0)),it===r&&(t.substr(n,11).toLowerCase()==="set default"?(it=t.substr(n,11),n+=11):(it=r,or===0&&Kr(zn)),it===r&&(it=Ee()))))),it!==r&&(st=vt,it={type:"origin",value:it.toLowerCase()}),vt=it),vt})())!==r?(st=R,Er=cr,R={type:"on "+B[0].toLowerCase(),value:Er}):(n=R,R=r)):(n=R,R=r),R}function E0(){var R,B,cr;return R=n,t.substr(n,9).toLowerCase()==="character"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(Ss)),B!==r&&Tt()!==r?(t.substr(n,3).toLowerCase()==="set"?(cr=t.substr(n,3),n+=3):(cr=r,or===0&&Kr(te)),cr===r?(n=R,R=r):(st=R,R=B="CHARACTER SET")):(n=R,R=r),R}function kl(){var R,B,cr,Er,vt,it,Et,$t,en;return R=n,(B=Ar())===r&&(B=null),B!==r&&Tt()!==r?((cr=E0())===r&&(t.substr(n,7).toLowerCase()==="charset"?(cr=t.substr(n,7),n+=7):(cr=r,or===0&&Kr(ce)),cr===r&&(t.substr(n,7).toLowerCase()==="collate"?(cr=t.substr(n,7),n+=7):(cr=r,or===0&&Kr(He)))),cr!==r&&Tt()!==r?((Er=Wa())===r&&(Er=null),Er!==r&&Tt()!==r&&(vt=Ke())!==r?(st=R,Et=cr,$t=Er,en=vt,R=B={keyword:(it=B)&&`${it[0].toLowerCase()} ${Et.toLowerCase()}`||Et.toLowerCase(),symbol:$t,value:en}):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R}function oi(){var R,B,cr,Er,vt,it,Et,$t,en;return R=n,t.substr(n,14).toLowerCase()==="auto_increment"?(B=t.substr(n,14),n+=14):(B=r,or===0&&Kr(Ue)),B===r&&(t.substr(n,14).toLowerCase()==="avg_row_length"?(B=t.substr(n,14),n+=14):(B=r,or===0&&Kr(Qe)),B===r&&(t.substr(n,14).toLowerCase()==="key_block_size"?(B=t.substr(n,14),n+=14):(B=r,or===0&&Kr(uo)),B===r&&(t.substr(n,8).toLowerCase()==="max_rows"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Ao)),B===r&&(t.substr(n,8).toLowerCase()==="min_rows"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Pu)),B===r&&(t.substr(n,18).toLowerCase()==="stats_sample_pages"?(B=t.substr(n,18),n+=18):(B=r,or===0&&Kr(Ca))))))),B!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=vs())!==r?(st=R,$t=cr,en=Er,R=B={keyword:B.toLowerCase(),symbol:$t,value:en.value}):(n=R,R=r)):(n=R,R=r),R===r&&(R=kl())===r&&(R=n,(B=fl())===r&&(t.substr(n,10).toLowerCase()==="connection"?(B=t.substr(n,10),n+=10):(B=r,or===0&&Kr(ku))),B!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=bn())!==r?(st=R,R=B=(function(hn,ds,Ns){return{keyword:hn.toLowerCase(),symbol:ds,value:`'${Ns.value}'`}})(B,cr,Er)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,t.substr(n,11).toLowerCase()==="compression"?(B=t.substr(n,11),n+=11):(B=r,or===0&&Kr(ca)),B!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r?(Er=n,t.charCodeAt(n)===39?(vt="'",n++):(vt=r,or===0&&Kr(na)),vt===r?(n=Er,Er=r):(t.substr(n,4).toLowerCase()==="zlib"?(it=t.substr(n,4),n+=4):(it=r,or===0&&Kr(Qa)),it===r&&(t.substr(n,3).toLowerCase()==="lz4"?(it=t.substr(n,3),n+=3):(it=r,or===0&&Kr(cf)),it===r&&(t.substr(n,4).toLowerCase()==="none"?(it=t.substr(n,4),n+=4):(it=r,or===0&&Kr(gl)))),it===r?(n=Er,Er=r):(t.charCodeAt(n)===39?(Et="'",n++):(Et=r,or===0&&Kr(na)),Et===r?(n=Er,Er=r):Er=vt=[vt,it,Et])),Er===r?(n=R,R=r):(st=R,R=B=(function(hn,ds,Ns){return{keyword:hn.toLowerCase(),symbol:ds,value:Ns.join("").toUpperCase()}})(B,cr,Er))):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,t.substr(n,6).toLowerCase()==="engine"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(ri)),B!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=ea())!==r?(st=R,R=B=(function(hn,ds,Ns){return{keyword:hn.toLowerCase(),symbol:ds,value:Ns.toUpperCase()}})(B,cr,Er)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,(B=Po())!==r&&Tt()!==r&&(cr=vl())!==r&&Tt()!==r&&(Er=ea())!==r&&(vt=Tt())!==r&&(it=rc())!==r?(st=R,R=B={keyword:"on",value:`[${Er}]`}):(n=R,R=r),R===r&&(R=n,t.substr(n,12).toLowerCase()==="textimage_on"?(B=t.substr(n,12),n+=12):(B=r,or===0&&Kr(t0)),B!==r&&Tt()!==r&&(cr=vl())!==r&&Tt()!==r&&(Er=ea())!==r&&(vt=Tt())!==r&&(it=rc())!==r?(st=R,R=B={keyword:"textimage_on",value:`[${Er}]`}):(n=R,R=r)))))),R}function yn(){var R,B,cr,Er,vt;return R=n,(B=ii())!==r&&Tt()!==r&&(cr=(function(){var it,Et,$t;return it=n,t.substr(n,4).toLowerCase()==="read"?(Et=t.substr(n,4),n+=4):(Et=r,or===0&&Kr(Kv)),Et!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="local"?($t=t.substr(n,5),n+=5):($t=r,or===0&&Kr(Gc)),$t===r&&($t=null),$t===r?(n=it,it=r):(st=it,it=Et={type:"read",suffix:$t&&"local"})):(n=it,it=r),it===r&&(it=n,t.substr(n,12).toLowerCase()==="low_priority"?(Et=t.substr(n,12),n+=12):(Et=r,or===0&&Kr(_v)),Et===r&&(Et=null),Et!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="write"?($t=t.substr(n,5),n+=5):($t=r,or===0&&Kr(kf)),$t===r?(n=it,it=r):(st=it,it=Et={type:"write",prefix:Et&&"low_priority"})):(n=it,it=r)),it})())!==r?(st=R,Er=B,vt=cr,Xu.add(`lock::${[Er.server,Er.db,Er.schema].filter(Boolean).join(".")||null}::${Er.table}`),R=B={table:Er,lock_type:vt}):(n=R,R=r),R}function ka(){var R,B,cr,Er,vt,it,Et;return(R=zu())===r&&(R=n,B=n,t.charCodeAt(n)===40?(cr="(",n++):(cr=r,or===0&&Kr(ki)),cr!==r&&(Er=Tt())!==r&&(vt=ka())!==r&&(it=Tt())!==r?(t.charCodeAt(n)===41?(Et=")",n++):(Et=r,or===0&&Kr(Hl)),Et===r?(n=B,B=r):B=cr=[cr,Er,vt,it,Et]):(n=B,B=r),B!==r&&(st=R,B={...B[2],parentheses_symbol:!0}),R=B),R}function Ua(){var R,B,cr,Er,vt,it,Et,$t,en,hn,ds,Ns,Fs;if(R=n,dt()!==r)if(Tt()!==r)if((B=Ou())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Ou())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Ou())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=Ps(B,cr))}else n=R,R=r;else n=R,R=r;else n=R,R=r;if(R===r)if(R=n,Tt()!==r)if(dt()!==r)if((B=Tt())!==r)if((cr=(function(){var ue=n,ee,ie,ro;return t.substr(n,9).toLowerCase()==="recursive"?(ee=t.substr(n,9),n+=9):(ee=r,or===0&&Kr(Lf)),ee===r?(n=ue,ue=r):(ie=n,or++,ro=Le(),or--,ro===r?ie=void 0:(n=ie,ie=r),ie===r?(n=ue,ue=r):ue=ee=[ee,ie]),ue})())!==r)if((Er=Tt())!==r)if((vt=Ou())!==r){for(it=[],Et=n,($t=Tt())!==r&&(en=gu())!==r&&(hn=Tt())!==r&&(ds=Ou())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r);Et!==r;)it.push(Et),Et=n,($t=Tt())!==r&&(en=gu())!==r&&(hn=Tt())!==r&&(ds=Ou())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r);it===r?(n=R,R=r):(st=R,Fs=it,(Ns=vt).recursive=!0,R=$l(Ns,Fs))}else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;return R}function Ou(){var R,B,cr,Er;return R=n,(B=bn())===r&&(B=ea()),B!==r&&Tt()!==r?((cr=il())===r&&(cr=null),cr!==r&&Tt()!==r&&so()!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(Er=Se())!==r&&Tt()!==r&&Hu()!==r?(st=R,R=B=(function(vt,it,Et){return typeof vt=="string"&&(vt={type:"default",value:vt}),{name:vt,stmt:Et,columns:it}})(B,cr,Er)):(n=R,R=r)):(n=R,R=r),R}function il(){var R,B;return R=n,Du()!==r&&Tt()!==r&&(B=Ht())!==r&&Tt()!==r&&Hu()!==r?(st=R,R=B):(n=R,R=r),R}function zu(){var R,B,cr,Er,vt,it,Et,$t,en,hn,ds,Ns,Fs,ue;return R=n,Tt()===r?(n=R,R=r):((B=Ua())===r&&(B=null),B!==r&&Tt()!==r&&(function(){var ee=n,ie,ro,$e;return t.substr(n,6).toLowerCase()==="select"?(ie=t.substr(n,6),n+=6):(ie=r,or===0&&Kr(od)),ie===r?(n=ee,ee=r):(ro=n,or++,$e=Le(),or--,$e===r?ro=void 0:(n=ro,ro=r),ro===r?(n=ee,ee=r):ee=ie=[ie,ro]),ee})()!==r&&Rf()!==r?((cr=(function(){var ee,ie,ro,$e,Gs,iu;if(ee=n,(ie=Yu())!==r){for(ro=[],$e=n,(Gs=Tt())!==r&&(iu=Yu())!==r?$e=Gs=[Gs,iu]:(n=$e,$e=r);$e!==r;)ro.push($e),$e=n,(Gs=Tt())!==r&&(iu=Yu())!==r?$e=Gs=[Gs,iu]:(n=$e,$e=r);ro===r?(n=ee,ee=r):(st=ee,ie=(function(Oo,wu){let Ea=[Oo];for(let Do=0,Ka=wu.length;Do<Ka;++Do)Ea.push(wu[Do][1]);return Ea})(ie,ro),ee=ie)}else n=ee,ee=r;return ee})())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=$())===r&&(Er=null),Er!==r&&Tt()!==r?((vt=(function(){var ee=n,ie,ro,$e,Gs;(ie=bt())!==r&&Tt()!==r&&(ro=Du())!==r&&Tt()!==r&&($e=Ds())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?(t.substr(n,7).toLowerCase()==="percent"?(Gs=t.substr(n,7),n+=7):(Gs=r,or===0&&Kr(Eb)),Gs===r&&(Gs=null),Gs===r?(n=ee,ee=r):(st=ee,ie={value:$e,percent:(iu=Gs)&&iu.toLowerCase(),parentheses:!0},ee=ie)):(n=ee,ee=r);var iu;return ee===r&&(ee=n,(ie=bt())!==r&&Tt()!==r&&(ro=Ds())!==r&&Tt()!==r?(t.substr(n,7).toLowerCase()==="percent"?($e=t.substr(n,7),n+=7):($e=r,or===0&&Kr(Eb)),$e===r&&($e=null),$e===r?(n=ee,ee=r):(st=ee,ie=(function(Oo,wu){return{value:Oo,percent:wu&&wu.toLowerCase()}})(ro,$e),ee=ie)):(n=ee,ee=r)),ee})())===r&&(vt=null),vt!==r&&Tt()!==r&&(it=lb())!==r&&Tt()!==r?((Et=(function(){var ee=n,ie;return me()!==r&&Tt()!==r&&(ie=yo())!==r?(st=ee,ee={type:"into",expr:ie}):(n=ee,ee=r),ee})())===r&&(Et=null),Et!==r&&Tt()!==r?(($t=ln())===r&&($t=null),$t!==r&&Tt()!==r?((en=bu())===r&&(en=null),en!==r&&Tt()!==r?((hn=(function(){var ee=n,ie,ro;return(ie=vn())!==r&&Tt()!==r&&fn()!==r&&Tt()!==r&&(ro=yt())!==r?(st=ee,ie={columns:ro.value},ee=ie):(n=ee,ee=r),ee})())===r&&(hn=null),hn!==r&&Tt()!==r?((ds=(function(){var ee=n,ie;return(function(){var ro=n,$e,Gs,iu;return t.substr(n,6).toLowerCase()==="having"?($e=t.substr(n,6),n+=6):($e=r,or===0&&Kr(tb)),$e===r?(n=ro,ro=r):(Gs=n,or++,iu=Le(),or--,iu===r?Gs=void 0:(n=Gs,Gs=r),Gs===r?(n=ro,ro=r):ro=$e=[$e,Gs]),ro})()!==r&&Tt()!==r&&(ie=e())!==r?(st=ee,ee=ie):(n=ee,ee=r),ee})())===r&&(ds=null),ds!==r&&Tt()!==r?((Ns=k())===r&&(Ns=null),Ns!==r&&Tt()!==r?((Fs=Fr())===r&&(Fs=null),Fs!==r&&Tt()!==r?((ue=(function(){var ee;return(ee=(function(){var ie=n,ro,$e,Gs;t.substr(n,3).toLowerCase()==="for"?(ro=t.substr(n,3),n+=3):(ro=r,or===0&&Kr(Ki)),ro!==r&&Tt()!==r?(t.substr(n,4).toLowerCase()==="json"?($e=t.substr(n,4),n+=4):($e=r,or===0&&Kr(c0)),$e!==r&&Tt()!==r&&(Gs=(function(){var Oo=n,wu;return t.substr(n,4).toLowerCase()==="path"?(wu=t.substr(n,4),n+=4):(wu=r,or===0&&Kr(Tb)),wu!==r&&(st=Oo,wu=$f(wu)),Oo=wu})())!==r?(st=ie,iu=Gs,ro={type:"for json",...iu},ie=ro):(n=ie,ie=r)):(n=ie,ie=r);var iu;return ie})())===r&&(ee=(function(){var ie=n,ro,$e,Gs;t.substr(n,3).toLowerCase()==="for"?(ro=t.substr(n,3),n+=3):(ro=r,or===0&&Kr(Ki)),ro!==r&&Tt()!==r?(t.substr(n,3).toLowerCase()==="xml"?($e=t.substr(n,3),n+=3):($e=r,or===0&&Kr(cp)),$e!==r&&Tt()!==r&&(Gs=(function(){var Oo=n,wu,Ea,Do,Ka,dc,_f,La;t.substr(n,3).toLowerCase()==="raw"?(wu=t.substr(n,3),n+=3):(wu=r,or===0&&Kr(xv)),wu===r&&(t.substr(n,4).toLowerCase()==="auto"?(wu=t.substr(n,4),n+=4):(wu=r,or===0&&Kr(lp)),wu===r&&(t.substr(n,8).toLowerCase()==="explicit"?(wu=t.substr(n,8),n+=8):(wu=r,or===0&&Kr(Uv)))),wu!==r&&(st=Oo,wu=$f(wu)),(Oo=wu)===r&&(Oo=n,t.substr(n,4).toLowerCase()==="path"?(wu=t.substr(n,4),n+=4):(wu=r,or===0&&Kr(Tb)),wu!==r&&Tt()!==r?(Ea=n,(Do=Du())!==r&&(Ka=Tt())!==r?((dc=zo())===r&&(dc=bn()),dc===r&&(dc=null),dc!==r&&(_f=Tt())!==r&&(La=Hu())!==r?Ea=Do=[Do,Ka,dc,_f,La]:(n=Ea,Ea=r)):(n=Ea,Ea=r),Ea===r&&(Ea=null),Ea===r?(n=Oo,Oo=r):(st=Oo,wu={keyword:wu,expr:(Db=Ea)&&Db[2]},Oo=wu)):(n=Oo,Oo=r));var Db;return Oo})())!==r?(st=ie,iu=Gs,ro={type:"for xml",...iu},ie=ro):(n=ie,ie=r)):(n=ie,ie=r);var iu;return ie})()),ee})())===r&&(ue=null),ue===r?(n=R,R=r):(st=R,R=(function(ee,ie,ro,$e,Gs,iu,Oo,wu,Ea,Do,Ka,dc,_f){return Oo&&Oo.forEach(La=>La.table&&Xu.add(`select::${[La.server,La.db,La.schema].filter(Boolean).join(".")||null}::${La.table}`)),{with:ee,type:"select",options:ie,distinct:ro,columns:Gs,into:{...iu||{},position:iu&&"column"},from:Oo,for:_f,where:wu,groupby:Ea,having:Do,top:$e,orderby:Ka,limit:dc}})(B,cr,Er,vt,it,Et,$t,en,hn,ds,Ns,Fs,ue))):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)),R}function Yu(){var R,B;return R=n,(B=(function(){var cr;return t.substr(n,19).toLowerCase()==="sql_calc_found_rows"?(cr=t.substr(n,19),n+=19):(cr=r,or===0&&Kr(Ul)),cr})())===r&&((B=(function(){var cr;return t.substr(n,9).toLowerCase()==="sql_cache"?(cr=t.substr(n,9),n+=9):(cr=r,or===0&&Kr(aa)),cr})())===r&&(B=(function(){var cr;return t.substr(n,12).toLowerCase()==="sql_no_cache"?(cr=t.substr(n,12),n+=12):(cr=r,or===0&&Kr(Tf)),cr})()),B===r&&(B=(function(){var cr;return t.substr(n,14).toLowerCase()==="sql_big_result"?(cr=t.substr(n,14),n+=14):(cr=r,or===0&&Kr(Tl)),cr})())===r&&(B=(function(){var cr;return t.substr(n,16).toLowerCase()==="sql_small_result"?(cr=t.substr(n,16),n+=16):(cr=r,or===0&&Kr(If)),cr})())===r&&(B=(function(){var cr;return t.substr(n,17).toLowerCase()==="sql_buffer_result"?(cr=t.substr(n,17),n+=17):(cr=r,or===0&&Kr(Ci)),cr})())),B!==r&&(st=R,B=B),R=B}function lb(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=Qs())===r&&(B=n,(cr=Xi())===r?(n=B,B=r):(Er=n,or++,vt=Le(),or--,vt===r?Er=void 0:(n=Er,Er=r),Er===r?(n=B,B=r):B=cr=[cr,Er]),B===r&&(B=Xi())),B!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Mi())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Mi())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=(function(en,hn){ot.add("select::null::(.*)");let ds={expr:{type:"column_ref",table:null,column:"*"},as:null};return hn&&hn.length>0?$l(ds,hn):[ds]})(0,cr))}else n=R,R=r;if(R===r)if(R=n,(B=Mi())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Mi())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=Mi())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=Ps(B,cr))}else n=R,R=r;return R}function Mi(){var R,B,cr,Er,vt,it,Et;return R=n,B=n,(cr=yo())!==r&&(Er=Tt())!==r&&(vt=bl())!==r?B=cr=[cr,Er,vt]:(n=B,B=r),B===r&&(B=null),B!==r&&(cr=Tt())!==r&&(Er=Xi())!==r?(st=R,R=B=(function($t){let en=$t&&$t[0]||null;return ot.add(`select::${en}::(.*)`),{expr:{type:"column_ref",table:en,column:"*"},as:null}})(B)):(n=R,R=r),R===r&&(R=n,(B=(function(){var $t,en,hn,ds,Ns,Fs,ue,ee;if($t=n,(en=ht())!==r){for(hn=[],ds=n,(Ns=Tt())===r?(n=ds,ds=r):((Fs=Bt())===r&&(Fs=Ut())===r&&(Fs=rv()),Fs!==r&&(ue=Tt())!==r&&(ee=ht())!==r?ds=Ns=[Ns,Fs,ue,ee]:(n=ds,ds=r));ds!==r;)hn.push(ds),ds=n,(Ns=Tt())===r?(n=ds,ds=r):((Fs=Bt())===r&&(Fs=Ut())===r&&(Fs=rv()),Fs!==r&&(ue=Tt())!==r&&(ee=ht())!==r?ds=Ns=[Ns,Fs,ue,ee]:(n=ds,ds=r));hn===r?(n=$t,$t=r):(st=$t,en=(function(ie,ro){let $e=ie.ast;if($e&&$e.type==="select"&&(!(ie.parentheses_symbol||ie.parentheses||ie.ast.parentheses||ie.ast.parentheses_symbol)||$e.columns.length!==1||$e.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!ro||ro.length===0)return ie;let Gs=ro.length,iu=ro[Gs-1][3];for(let Oo=Gs-1;Oo>=0;Oo--){let wu=Oo===0?ie:ro[Oo-1][3];iu=Yo(ro[Oo][1],wu,iu)}return iu})(en,hn),$t=en)}else n=$t,$t=r;return $t})())!==r&&(cr=Tt())!==r?((Er=Ha())===r&&(Er=null),Er===r?(n=R,R=r):(st=R,Et=Er,(it=B).type!=="double_quote_string"&&it.type!=="single_quote_string"||ot.add("select::null::"+it.value),R=B={expr:it,as:Et})):(n=R,R=r)),R}function ha(){var R,B,cr,Er,vt,it,Et,$t,en,hn;return R=n,(B=so())===r&&(B=null),B!==r&&Tt()!==r&&(cr=yo())!==r?(Er=n,(vt=Tt())!==r&&(it=Du())!==r&&(Et=Tt())!==r&&($t=no())!==r&&(en=Tt())!==r&&(hn=Hu())!==r?Er=vt=[vt,it,Et,$t,en,hn]:(n=Er,Er=r),Er===r&&(Er=null),Er===r?(n=R,R=r):(st=R,R=B=(function(ds,Ns){return Ns?`${ds}(${Ns[3].join(", ")})`:ds})(cr,Er))):(n=R,R=r),R}function Ha(){var R,B,cr;return R=n,(B=so())!==r&&Tt()!==r&&(cr=(function(){var Er=n,vt;return(vt=ea())===r?(n=Er,Er=r):(st=n,((function(it){if(qa[it.toUpperCase()]===!0)throw Error("Error: "+JSON.stringify(it)+" is a reserved word, can not as alias clause");return!1})(vt)?r:void 0)===r?(n=Er,Er=r):(st=Er,Er=vt=vt)),Er===r&&(Er=n,(vt=Co())!==r&&(st=Er,vt=vt),Er=vt),Er})())!==r?(st=R,R=B=cr):(n=R,R=r),R===r&&(R=n,(B=so())===r&&(B=null),B!==r&&Tt()!==r&&(cr=yo())!==r?(st=R,R=B=cr):(n=R,R=r)),R}function ln(){var R,B,cr,Er,vt;return R=n,Xe()!==r&&Tt()!==r&&(B=a())!==r&&Tt()!==r?((cr=(function(){var it=n,Et,$t,en,hn;(Et=(function(){var Fs=n,ue,ee,ie;return t.substr(n,5).toLowerCase()==="pivot"?(ue=t.substr(n,5),n+=5):(ue=r,or===0&&Kr(z0)),ue===r?(n=Fs,Fs=r):(ee=n,or++,ie=Le(),or--,ie===r?ee=void 0:(n=ee,ee=r),ee===r?(n=Fs,Fs=r):(st=Fs,Fs=ue="PIVOT")),Fs})())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&($t=Ni())!==r&&Tt()!==r&&(en=Di())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?((hn=Ha())===r&&(hn=null),hn===r?(n=it,it=r):(st=it,ds=en,Ns=hn,Et={type:"pivot",expr:$t,...ds,as:Ns},it=Et)):(n=it,it=r);var ds,Ns;return it===r&&(it=n,(Et=(function(){var Fs=n,ue,ee,ie;return t.substr(n,7).toLowerCase()==="unpivot"?(ue=t.substr(n,7),n+=7):(ue=r,or===0&&Kr(ub)),ue===r?(n=Fs,Fs=r):(ee=n,or++,ie=Le(),or--,ie===r?ee=void 0:(n=ee,ee=r),ee===r?(n=Fs,Fs=r):(st=Fs,Fs=ue="UNPIVOT")),Fs})())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&($t=zo())!==r&&Tt()!==r&&(en=Di())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?((hn=Ha())===r&&(hn=null),hn===r?(n=it,it=r):(st=it,Et=(function(Fs,ue,ee){return{type:"unpivot",expr:Fs,...ue,as:ee}})($t,en,hn),it=Et)):(n=it,it=r)),it})())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,vt=cr,(Er=B)[0]&&(Er[0].operator=vt),R=Er)):(n=R,R=r),R}function Oe(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="for"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(Ki)),B!==r&&Tt()!==r?(t.substr(n,11).toLowerCase()==="system_time"?(cr=t.substr(n,11),n+=11):(cr=r,or===0&&Kr(Bb)),cr!==r&&Tt()!==r&&(Er=(function(){var vt=n,it,Et,$t,en;return(it=so())!==r&&Tt()!==r?(t.substr(n,2).toLowerCase()==="of"?(Et=t.substr(n,2),n+=2):(Et=r,or===0&&Kr(pa)),Et!==r&&Tt()!==r&&($t=ht())!==r?(st=vt,vt=it={type:"temporal_table_option",keyword:"as",of:$t}):(n=vt,vt=r)):(n=vt,vt=r),vt===r&&(vt=n,(it=Xe())!==r&&Tt()!==r&&(Et=ht())!==r&&Tt()!==r&&($t=qr())!==r&&Tt()!==r&&(en=ht())!==r?(st=vt,it=(function(hn,ds){return{type:"temporal_table_option",keyword:"from_to",from:hn,to:ds}})(Et,en),vt=it):(n=vt,vt=r),vt===r&&(vt=n,(it=J())!==r&&Tt()!==r&&(Et=ht())!==r&&Tt()!==r&&($t=Bt())!==r&&Tt()!==r&&(en=ht())!==r?(st=vt,vt=it={type:"temporal_table_option",keyword:"between_and",between:Et,and:en}):(n=vt,vt=r),vt===r&&(vt=n,t.substr(n,9).toLowerCase()==="contained"?(it=t.substr(n,9),n+=9):(it=r,or===0&&Kr(wl)),it!==r&&Tt()!==r&&(Et=br())!==r&&Tt()!==r&&($t=Du())!==r&&Tt()!==r&&(en=yt())!==r&&Tt()!==r&&Hu()!==r?(st=vt,it=(function(hn){return hn.parentheses=!0,{type:"temporal_table_option",keyword:"contained",in:hn}})(en),vt=it):(n=vt,vt=r)))),vt})())!==r?(st=R,R=B={keyword:"for system_time",expr:Er}):(n=R,R=r)):(n=R,R=r),R}function Di(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="for"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(Ki)),B!==r&&Tt()!==r&&(cr=zo())!==r&&Tt()!==r&&(Er=kt())!==r?(st=R,R=B=(function(vt,it){return{column:vt,in_expr:it}})(cr,Er)):(n=R,R=r),R}function Ya(){var R,B,cr;return R=n,(B=o())!==r&&Tt()!==r&&qr()!==r&&Tt()!==r&&(cr=o())!==r?(st=R,R=B=[B,cr]):(n=R,R=r),R}function ni(){var R,B,cr;return R=n,(B=ct())!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="btree"?(cr=t.substr(n,5),n+=5):(cr=r,or===0&&Kr(Nl)),cr===r&&(t.substr(n,4).toLowerCase()==="hash"?(cr=t.substr(n,4),n+=4):(cr=r,or===0&&Kr(Sv))),cr===r?(n=R,R=r):(st=R,R=B={keyword:"using",type:cr.toLowerCase()})):(n=R,R=r),R===r&&(R=n,(B=ap())===r&&(B=A0()),B!==r&&(st=R,B={keyword:B.toLowerCase()}),R=B),R}function ui(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=cl())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=cl())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=cl())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=Dn(B,cr))}else n=R,R=r;return R}function $i(){var R,B,cr,Er,vt,it;if(R=n,(B=cl())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=cl())!==r?Er=vt=[vt,it]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=cl())!==r?Er=vt=[vt,it]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=(function(Et,$t){let en=[Et];for(let hn=0;hn<$t.length;hn++)en.push($t[hn][1]);return en})(B,cr))}else n=R,R=r;return R}function ai(){var R,B,cr,Er;return R=n,(B=vs())!==r&&Tt()!==r&&(cr=qr())!==r&&Tt()!==r&&vs()!==r?(st=R,Er=B,R=B={type:"range",symbol:cr[0],start:Er,end:Er}):(n=R,R=r),R===r&&(R=vs()),R}function ll(){var R,B,cr;return R=n,Po()!==r&&Tt()!==r?(t.substr(n,10).toLowerCase()==="partitions"?(B=t.substr(n,10),n+=10):(B=r,or===0&&Kr(Hb)),B!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(cr=(function(){var Er,vt,it,Et,$t,en,hn,ds;if(Er=n,(vt=ai())!==r){for(it=[],Et=n,($t=Tt())!==r&&(en=gu())!==r&&(hn=Tt())!==r&&(ds=ai())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r);Et!==r;)it.push(Et),Et=n,($t=Tt())!==r&&(en=gu())!==r&&(hn=Tt())!==r&&(ds=ai())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r);it===r?(n=Er,Er=r):(st=Er,Er=vt=Dn(vt,it))}else n=Er,Er=r;return Er})())!==r&&Tt()!==r&&Hu()!==r?(st=R,R={type:"on partitions",partitions:cr}):(n=R,R=r)):(n=R,R=r),R}function cl(){var R,B,cr,Er,vt,it;return R=n,(B=(function(){var Et=n,$t,en,hn;return t.substr(n,14).toLowerCase()==="key_block_size"?($t=t.substr(n,14),n+=14):($t=r,or===0&&Kr(uo)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):(st=Et,Et=$t="KEY_BLOCK_SIZE")),Et})())!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=vs())!==r?(st=R,R=B=Jf(B,cr,Er)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,t.substr(n,10).toLowerCase()==="fillfactor"?(B=t.substr(n,10),n+=10):(B=r,or===0&&Kr(pf)),B===r&&(t.substr(n,12).toLowerCase()==="max_duration"?(B=t.substr(n,12),n+=12):(B=r,or===0&&Kr(Yb)),B===r&&(t.substr(n,6).toLowerCase()==="maxdop"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(av)))),B!==r&&Tt()!==r&&(cr=Wa())!==r&&Tt()!==r&&(Er=vs())!==r?(st=R,R=B=Jf(B,cr,Er)):(n=R,R=r),R===r&&(R=ni())===r&&(R=n,t.substr(n,4).toLowerCase()==="with"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(iv)),B!==r&&Tt()!==r?(t.substr(n,6).toLowerCase()==="parser"?(cr=t.substr(n,6),n+=6):(cr=r,or===0&&Kr(a0)),cr!==r&&Tt()!==r&&(Er=ea())!==r?(st=R,R=B={type:"with parser",expr:Er}):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,t.substr(n,7).toLowerCase()==="visible"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(_l)),B===r&&(t.substr(n,9).toLowerCase()==="invisible"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(Yl))),B!==r&&(st=R,B={type:(it=B).toLowerCase(),expr:it.toLowerCase()}),(R=B)===r&&(R=n,t.substr(n,9).toLowerCase()==="pad_index"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(Ab)),B===r&&(t.substr(n,14).toLowerCase()==="sort_in_tempdb"?(B=t.substr(n,14),n+=14):(B=r,or===0&&Kr(Mf)),B===r&&(t.substr(n,14).toLowerCase()==="ignore_dup_key"?(B=t.substr(n,14),n+=14):(B=r,or===0&&Kr(Wb)),B===r&&(t.substr(n,22).toLowerCase()==="statistics_norecompute"?(B=t.substr(n,22),n+=22):(B=r,or===0&&Kr(Df)),B===r&&(t.substr(n,22).toLowerCase()==="statistics_incremental"?(B=t.substr(n,22),n+=22):(B=r,or===0&&Kr(mb)),B===r&&(t.substr(n,13).toLowerCase()==="drop_existing"?(B=t.substr(n,13),n+=13):(B=r,or===0&&Kr(i0)),B===r&&(t.substr(n,6).toLowerCase()==="online"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(ft)),B===r&&(t.substr(n,9).toLowerCase()==="resumable"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(tn)),B===r&&(t.substr(n,15).toLowerCase()==="allow_row_locks"?(B=t.substr(n,15),n+=15):(B=r,or===0&&Kr(_n)),B===r&&(t.substr(n,16).toLowerCase()==="allow_page_locks"?(B=t.substr(n,16),n+=16):(B=r,or===0&&Kr(En)),B===r&&(t.substr(n,27).toLowerCase()==="optimize_for_sequential_key"?(B=t.substr(n,27),n+=27):(B=r,or===0&&Kr(Os)))))))))))),B!==r&&Tt()!==r&&(cr=Wa())!==r&&Tt()!==r?((Er=Po())===r&&(Er=(function(){var Et=n,$t,en,hn;return t.substr(n,3).toLowerCase()==="off"?($t=t.substr(n,3),n+=3):($t=r,or===0&&Kr(Cf)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):Et=$t=[$t,en]),Et})()),Er===r?(n=R,R=r):(st=R,R=B=(function(Et,$t,en){return{type:Et.toLowerCase(),symbol:$t,expr:{type:"origin",value:en[0]}}})(B,cr,Er))):(n=R,R=r),R===r&&(R=n,t.substr(n,16).toLowerCase()==="data_compression"?(B=t.substr(n,16),n+=16):(B=r,or===0&&Kr(gs)),B!==r&&Tt()!==r&&(cr=Wa())!==r&&Tt()!==r?(t.substr(n,4).toLowerCase()==="none"?(Er=t.substr(n,4),n+=4):(Er=r,or===0&&Kr(gl)),Er===r&&(t.substr(n,3).toLowerCase()==="row"?(Er=t.substr(n,3),n+=3):(Er=r,or===0&&Kr(Ys)),Er===r&&(t.substr(n,4)==="PAGE"?(Er="PAGE",n+=4):(Er=r,or===0&&Kr(Te)))),Er!==r&&Tt()!==r?((vt=ll())===r&&(vt=null),vt===r?(n=R,R=r):(st=R,R=B=(function(Et,$t,en,hn){return{type:Et.toLowerCase(),symbol:$t,expr:{value:en,on:hn}}})(B,cr,Er,vt))):(n=R,R=r)):(n=R,R=r),R===r&&(R=_i())))))),R}function a(){var R,B,cr,Er;if(R=n,(B=ii())!==r){for(cr=[],Er=an();Er!==r;)cr.push(Er),Er=an();cr===r?(n=R,R=r):(st=R,R=B=ye(B,cr))}else n=R,R=r;return R}function an(){var R,B,cr;return R=n,Tt()!==r&&(B=gu())!==r&&Tt()!==r&&(cr=ii())!==r?(st=R,R=cr):(n=R,R=r),R===r&&(R=n,Tt()!==r&&(B=(function(){var Er=n,vt,it,Et,$t,en;(vt=nt())!==r&&Tt()!==r&&(it=ii())!==r&&Tt()!==r&&(Et=ct())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&($t=Ml())!==r&&Tt()!==r&&(en=Hu())!==r?(st=Er,hn=vt,Ns=$t,(ds=it).join=hn,ds.using=Ns,Er=vt=ds):(n=Er,Er=r);var hn,ds,Ns;return Er===r&&(Er=n,(vt=nt())!==r&&Tt()!==r&&(it=ii())!==r&&Tt()!==r?((Et=ba())===r&&(Et=null),Et===r?(n=Er,Er=r):(st=Er,vt=(function(Fs,ue,ee){return ue.join=Fs,ue.on=ee,ue})(vt,it,Et),Er=vt)):(n=Er,Er=r),Er===r&&(Er=n,(vt=nt())===r&&(vt=qu()),vt!==r&&Tt()!==r&&(it=Du())!==r&&Tt()!==r&&(Et=Se())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?(($t=Ha())===r&&($t=null),$t!==r&&Tt()!==r?((en=ba())===r&&(en=null),en===r?(n=Er,Er=r):(st=Er,vt=(function(Fs,ue,ee,ie){return ue.parentheses=!0,{expr:ue,as:ee,join:Fs,on:ie}})(vt,Et,$t,en),Er=vt)):(n=Er,Er=r)):(n=Er,Er=r))),Er})())!==r?(st=R,R=B):(n=R,R=r)),R}function Ma(){var R,B,cr,Er,vt,it;return R=n,t.substr(n,9).toLowerCase()==="forceseek"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(Be)),B!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(cr=yo())!==r&&Tt()!==r&&(Er=Du())!==r&&Tt()!==r&&(vt=Ht())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r&&Hu()!==r?(st=R,R=B={keyword:"forceseek",index:cr,index_columns:vt,parentheses:!0}):(n=R,R=r),R===r&&(R=n,t.substr(n,24).toLowerCase()==="spatial_window_max_cells"?(B=t.substr(n,24),n+=24):(B=r,or===0&&Kr(io)),B!==r&&Tt()!==r&&Wa()!==r&&Tt()!==r&&(cr=vs())!==r?(st=R,R=B={keyword:"spatial_window_max_cells",expr:cr}):(n=R,R=r),R===r&&(R=n,t.substr(n,8).toLowerCase()==="noexpand"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Ro)),B===r&&(B=null),B!==r&&Tt()!==r&&cb()!==r&&Tt()!==r&&(cr=Du())!==r&&Tt()!==r&&(Er=Ml())!==r&&Tt()!==r&&(vt=Hu())!==r?(st=R,R=B={keyword:"index",expr:Er,parentheses:!0,prefix:(it=B)&&it.toLowerCase()}):(n=R,R=r),R===r&&(R=n,t.substr(n,8).toLowerCase()==="noexpand"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Ro)),B===r&&(B=null),B!==r&&Tt()!==r&&cb()!==r&&Tt()!==r&&(cr=Wa())!==r&&Tt()!==r&&(Er=yo())!==r?(st=R,R=B=(function(Et,$t){return{keyword:"index",expr:$t,prefix:Et&&Et.toLowerCase()}})(B,Er)):(n=R,R=r),R===r&&(R=n,t.substr(n,8).toLowerCase()==="noexpand"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Ro)),B===r&&(t.substr(n,9).toLowerCase()==="forcescan"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(So)),B===r&&(t.substr(n,9).toLowerCase()==="forceseek"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(Be)),B===r&&(t.substr(n,8).toLowerCase()==="holdlock"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(uu)),B===r&&(t.substr(n,6).toLowerCase()==="nolock"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(ko)),B===r&&(t.substr(n,6).toLowerCase()==="nowait"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(yu)),B===r&&(t.substr(n,7).toLowerCase()==="paglock"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(au)),B===r&&(t.substr(n,13).toLowerCase()==="readcommitted"?(B=t.substr(n,13),n+=13):(B=r,or===0&&Kr(Iu)),B===r&&(t.substr(n,17).toLowerCase()==="readcommittedlock"?(B=t.substr(n,17),n+=17):(B=r,or===0&&Kr(mu)),B===r&&(t.substr(n,8).toLowerCase()==="readpast"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Ju)),B===r&&(t.substr(n,15).toLowerCase()==="readuncommitted"?(B=t.substr(n,15),n+=15):(B=r,or===0&&Kr(ua)),B===r&&(t.substr(n,15).toLowerCase()==="repeatableread "?(B=t.substr(n,15),n+=15):(B=r,or===0&&Kr(Sa)),B===r&&(t.substr(n,7).toLowerCase()==="rowlock"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(ma)),B===r&&(t.substr(n,12).toLowerCase()==="serializable"?(B=t.substr(n,12),n+=12):(B=r,or===0&&Kr(Bi)),B===r&&(t.substr(n,8).toLowerCase()==="snapshot"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(sa)),B===r&&(t.substr(n,7).toLowerCase()==="tablock"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(di)),B===r&&(t.substr(n,8).toLowerCase()==="tablockx"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Hi)),B===r&&(t.substr(n,7).toLowerCase()==="updlock"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(S0)),B===r&&(t.substr(n,5).toLowerCase()==="xlock"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(l0)))))))))))))))))))),B!==r&&(st=R,B=(function(Et){return{keyword:"literal_string",expr:{type:"origin",value:Et}}})(B)),R=B)))),R}function Da(){var R,B,cr,Er,vt;return R=n,(B=dt())===r&&(B=null),B!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(cr=(function(){var it,Et,$t,en,hn,ds,Ns,Fs;if(it=n,(Et=Ma())!==r){for($t=[],en=n,(hn=Tt())!==r&&(ds=gu())!==r&&(Ns=Tt())!==r&&(Fs=Ma())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r);en!==r;)$t.push(en),en=n,(hn=Tt())!==r&&(ds=gu())!==r&&(Ns=Tt())!==r&&(Fs=Ma())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r);$t===r?(n=it,it=r):(st=it,it=Et=Dn(Et,$t))}else n=it,it=r;return it})())!==r&&Tt()!==r&&Hu()!==r?(st=R,vt=cr,R=B={keyword:(Er=B)&&Er[0].toLowerCase(),expr:vt,parentheses:!0}):(n=R,R=r),R}function ii(){var R,B,cr,Er,vt;return R=n,(B=(function(){var it;return t.substr(n,4).toLowerCase()==="dual"?(it=t.substr(n,4),n+=4):(it=r,or===0&&Kr(mc)),it})())!==r&&(st=R,B={type:"dual"}),(R=B)===r&&(R=n,(B=s())!==r&&Tt()!==r?((cr=Ha())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B={type:"expr",expr:B,as:cr})):(n=R,R=r),R===r&&(R=n,(B=o())!==r&&Tt()!==r?((cr=Oe())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=Ha())===r&&(Er=null),Er!==r&&Tt()!==r?((vt=Da())===r&&(vt=null),vt===r?(n=R,R=r):(st=R,R=B=(function(it,Et,$t,en){return it.as=$t,it.table_hint=en,it.temporal_table=Et,it})(B,cr,Er,vt))):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,(B=Un())!==r&&Tt()!==r?((cr=ha())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B=(function(it,Et){return{expr:it,as:Et}})(B,cr))):(n=R,R=r),R===r&&(R=n,(B=Du())!==r&&Tt()!==r?((cr=Se())===r&&(cr=Un()),cr!==r&&Tt()!==r&&(Er=Hu())!==r&&Tt()!==r?((vt=ha())===r&&(vt=null),vt===r?(n=R,R=r):(st=R,R=B=(function(it,Et){return it.parentheses=!0,{expr:it,as:Et}})(cr,vt))):(n=R,R=r)):(n=R,R=r))))),R}function nt(){var R,B,cr,Er;return R=n,(B=(function(){var vt=n,it,Et,$t;return t.substr(n,4).toLowerCase()==="left"?(it=t.substr(n,4),n+=4):(it=r,or===0&&Kr(dv)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):vt=it=[it,Et]),vt})())===r&&(B=(function(){var vt=n,it,Et,$t;return t.substr(n,5).toLowerCase()==="right"?(it=t.substr(n,5),n+=5):(it=r,or===0&&Kr(Qt)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):vt=it=[it,Et]),vt})())===r&&(B=(function(){var vt=n,it,Et,$t;return t.substr(n,4).toLowerCase()==="full"?(it=t.substr(n,4),n+=4):(it=r,or===0&&Kr(Xs)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):vt=it=[it,Et]),vt})()),B!==r&&Tt()!==r?((cr=ar())===r&&(cr=null),cr!==r&&Tt()!==r&&Na()!==r?(st=R,Er=cr,R=B=[B[0].toUpperCase(),Er&&Er[0],"JOIN"].filter(vt=>vt).join(" ")):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,(B=(function(){var vt=n,it,Et,$t;return t.substr(n,5).toLowerCase()==="cross"?(it=t.substr(n,5),n+=5):(it=r,or===0&&Kr(op)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):vt=it=[it,Et]),vt})())!==r&&Tt()!==r?((cr=Na())===r&&(cr=F()),cr===r?(n=R,R=r):(st=R,R=B="CROSS "+cr[0].toUpperCase())):(n=R,R=r),R===r&&(R=n,(B=ar())!==r&&Tt()!==r&&(cr=F())!==r?(st=R,R=B="OUTER APPLY"):(n=R,R=r),R===r&&(R=n,(B=(function(){var vt=n,it,Et,$t;return t.substr(n,5).toLowerCase()==="inner"?(it=t.substr(n,5),n+=5):(it=r,or===0&&Kr(ic)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):vt=it=[it,Et]),vt})())===r&&(B=null),B!==r&&Tt()!==r&&(cr=Na())!==r?(st=R,R=B=(function(vt){return vt?"INNER JOIN":"JOIN"})(B)):(n=R,R=r)))),R}function o(){var R,B,cr,Er,vt,it,Et,$t,en,hn;return R=n,(B=yo())!==r&&(cr=Tt())!==r&&(Er=bl())!==r&&(vt=Tt())!==r&&(it=yo())!==r&&(Et=Tt())!==r&&bl()!==r&&Tt()!==r&&($t=yo())!==r&&Tt()!==r&&bl()!==r&&Tt()!==r&&(en=yo())!==r?(st=R,R=B={server:B,db:it,schema:$t,table:en}):(n=R,R=r),R===r&&(R=n,(B=yo())!==r&&(cr=Tt())!==r&&(Er=bl())!==r&&(vt=Tt())!==r&&(it=yo())!==r&&(Et=Tt())!==r&&bl()!==r&&Tt()!==r&&($t=yo())!==r?(st=R,R=B=(function(ds,Ns,Fs){return{db:ds,schema:Ns,table:Fs}})(B,it,$t)):(n=R,R=r),R===r&&(R=n,(B=yo())===r?(n=R,R=r):(cr=n,(Er=Tt())!==r&&(vt=bl())!==r&&(it=Tt())!==r&&(Et=yo())!==r?cr=Er=[Er,vt,it,Et]:(n=cr,cr=r),cr===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B=(function(ds,Ns){let Fs={db:null,table:ds};return Ns!==null&&(Fs.db=ds,Fs.table=Ns[3]),Fs})(B,cr))),R===r&&(R=n,(B=Uu())!==r&&(st=R,(hn=B).db=null,hn.table=hn.name,B=hn),(R=B)===r&&(R=n,t.substr(n,2)==="##"?(B="##",n+=2):(B=r,or===0&&Kr(Ov)),B===r&&(t.charCodeAt(n)===35?(B="#",n++):(B=r,or===0&&Kr(lv))),B!==r&&(cr=yo())!==r?(st=R,R=B={db:null,table:`${B}${cr}`}):(n=R,R=r))))),R}function Zt(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=ht())!==r){for(cr=[],Er=n,(vt=Tt())===r?(n=Er,Er=r):((it=Bt())===r&&(it=Ut()),it!==r&&(Et=Tt())!==r&&($t=ht())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r));Er!==r;)cr.push(Er),Er=n,(vt=Tt())===r?(n=Er,Er=r):((it=Bt())===r&&(it=Ut()),it!==r&&(Et=Tt())!==r&&($t=ht())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r));cr===r?(n=R,R=r):(st=R,R=B=(function(en,hn){let ds=hn.length,Ns=en;for(let Fs=0;Fs<ds;++Fs)Ns=Yo(hn[Fs][1],Ns,hn[Fs][3]);return Ns})(B,cr))}else n=R,R=r;return R}function ba(){var R,B;return R=n,Po()!==r&&Tt()!==r&&(B=e())!==r?(st=R,R=B):(n=R,R=r),R}function bu(){var R,B;return R=n,(function(){var cr=n,Er,vt,it;return t.substr(n,5).toLowerCase()==="where"?(Er=t.substr(n,5),n+=5):(Er=r,or===0&&Kr(zb)),Er===r?(n=cr,cr=r):(vt=n,or++,it=Le(),or--,it===r?vt=void 0:(n=vt,vt=r),vt===r?(n=cr,cr=r):cr=Er=[Er,vt]),cr})()!==r&&Tt()!==r&&(B=e())!==r?(st=R,R=B):(n=R,R=r),R}function Ht(){var R;return(R=tf())===r&&(R=(function(){var B,cr,Er,vt,it,Et,$t,en;if(B=n,(cr=Lt())!==r){for(Er=[],vt=n,(it=Tt())!==r&&(Et=gu())!==r&&($t=Tt())!==r&&(en=Lt())!==r?vt=it=[it,Et,$t,en]:(n=vt,vt=r);vt!==r;)Er.push(vt),vt=n,(it=Tt())!==r&&(Et=gu())!==r&&($t=Tt())!==r&&(en=Lt())!==r?vt=it=[it,Et,$t,en]:(n=vt,vt=r);Er===r?(n=B,B=r):(st=B,cr=Ps(cr,Er),B=cr)}else n=B,B=r;return B})()),R}function rt(){var R,B;return R=n,Is()!==r&&Tt()!==r&&fn()!==r&&Tt()!==r&&(B=lb())!==r?(st=R,R=B):(n=R,R=r),R}function k(){var R,B;return R=n,(function(){var cr=n,Er,vt,it;return t.substr(n,5).toLowerCase()==="order"?(Er=t.substr(n,5),n+=5):(Er=r,or===0&&Kr(rb)),Er===r?(n=cr,cr=r):(vt=n,or++,it=Le(),or--,it===r?vt=void 0:(n=vt,vt=r),vt===r?(n=cr,cr=r):cr=Er=[Er,vt]),cr})()!==r&&Tt()!==r&&fn()!==r&&Tt()!==r&&(B=(function(){var cr,Er,vt,it,Et,$t,en,hn;if(cr=n,(Er=Lr())!==r){for(vt=[],it=n,(Et=Tt())!==r&&($t=gu())!==r&&(en=Tt())!==r&&(hn=Lr())!==r?it=Et=[Et,$t,en,hn]:(n=it,it=r);it!==r;)vt.push(it),it=n,(Et=Tt())!==r&&($t=gu())!==r&&(en=Tt())!==r&&(hn=Lr())!==r?it=Et=[Et,$t,en,hn]:(n=it,it=r);vt===r?(n=cr,cr=r):(st=cr,Er=Ps(Er,vt),cr=Er)}else n=cr,cr=r;return cr})())!==r?(st=R,R=B):(n=R,R=r),R}function Lr(){var R,B,cr;return R=n,(B=ht())!==r&&Tt()!==r?((cr=ms())===r&&(cr=Jn()),cr===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B={expr:B,type:cr})):(n=R,R=r),R}function Or(){var R;return(R=vs())===r&&(R=si()),R}function Fr(){var R,B,cr,Er,vt,it,Et,$t,en,hn;return R=n,(function(){var ds=n,Ns,Fs,ue;return t.substr(n,5).toLowerCase()==="limit"?(Ns=t.substr(n,5),n+=5):(Ns=r,or===0&&Kr(I)),Ns===r?(n=ds,ds=r):(Fs=n,or++,ue=Le(),or--,ue===r?Fs=void 0:(n=Fs,Fs=r),Fs===r?(n=ds,ds=r):ds=Ns=[Ns,Fs]),ds})()!==r&&Tt()!==r&&(B=Or())!==r&&Tt()!==r?(cr=n,(Er=gu())===r&&(Er=gn()),Er!==r&&(vt=Tt())!==r&&(it=Or())!==r?cr=Er=[Er,vt,it]:(n=cr,cr=r),cr===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=(function(ds,Ns){let Fs=[ds];return Ns&&Fs.push(Ns[2]),{seperator:Ns&&Ns[0]&&Ns[0].toLowerCase()||"",value:Fs}})(B,cr))):(n=R,R=r),R===r&&(R=n,Vn()!==r&&Tt()!==r?(t.substr(n,5).toLowerCase()==="first"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(fi)),B!==r&&Tt()!==r&&(cr=Or())!==r&&(Er=Tt())!==r?(t.substr(n,4).toLowerCase()==="rows"?(vt=t.substr(n,4),n+=4):(vt=r,or===0&&Kr(Wl)),vt===r&&(t.substr(n,3).toLowerCase()==="row"?(vt=t.substr(n,3),n+=3):(vt=r,or===0&&Kr(Ys))),vt!==r&&(it=Tt())!==r?(t.substr(n,4).toLowerCase()==="only"?(Et=t.substr(n,4),n+=4):(Et=r,or===0&&Kr(ec)),Et===r?(n=R,R=r):(st=R,R={fetch:{prefix:[{type:"origin",value:"fetch"},{type:"origin",value:"first"}],value:cr,suffix:[{type:"origin",value:vt},{type:"origin",value:"only"}]}})):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,gn()!==r&&Tt()!==r&&(B=Or())!==r&&Tt()!==r?(t.substr(n,4).toLowerCase()==="rows"?(cr=t.substr(n,4),n+=4):(cr=r,or===0&&Kr(Wl)),cr!==r&&(Er=Tt())!==r&&(vt=Vn())!==r&&(it=Tt())!==r?(t.substr(n,4).toLowerCase()==="next"?(Et=t.substr(n,4),n+=4):(Et=r,or===0&&Kr(Fc)),Et!==r&&Tt()!==r&&($t=Or())!==r&&Tt()!==r?(t.substr(n,4).toLowerCase()==="rows"?(en=t.substr(n,4),n+=4):(en=r,or===0&&Kr(Wl)),en===r&&(t.substr(n,3).toLowerCase()==="row"?(en=t.substr(n,3),n+=3):(en=r,or===0&&Kr(Ys))),en!==r&&Tt()!==r?(t.substr(n,4).toLowerCase()==="only"?(hn=t.substr(n,4),n+=4):(hn=r,or===0&&Kr(ec)),hn===r?(n=R,R=r):(st=R,R=(function(ds,Ns,Fs){return{offset:{prefix:[{type:"origin",value:"offset"}],value:ds,suffix:[{type:"origin",value:"rows"}]},fetch:{prefix:[{type:"origin",value:"fetch"},{type:"origin",value:"next"}],value:Ns,suffix:[{type:"origin",value:Fs},{type:"origin",value:"only"}]}}})(B,$t,en))):(n=R,R=r)):(n=R,R=r)):(n=R,R=r)):(n=R,R=r))),R}function dr(){var R,B,cr,Er,vt,it,Et,$t;return R=n,B=n,(cr=yo())!==r&&(Er=Tt())!==r&&(vt=bl())!==r?B=cr=[cr,Er,vt]:(n=B,B=r),B===r&&(B=null),B!==r&&(cr=Tt())!==r&&(Er=Wt())!==r&&(vt=Tt())!==r?(t.charCodeAt(n)===61?(it="=",n++):(it=r,or===0&&Kr(q0)),it!==r&&Tt()!==r&&(Et=ht())!==r?(st=R,R=B=(function(en,hn,ds){return{column:hn,value:ds,table:en&&en[0]}})(B,Er,Et)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,B=n,(cr=yo())!==r&&(Er=Tt())!==r&&(vt=bl())!==r?B=cr=[cr,Er,vt]:(n=B,B=r),B===r&&(B=null),B!==r&&(cr=Tt())!==r&&(Er=Wt())!==r&&(vt=Tt())!==r?(t.charCodeAt(n)===61?(it="=",n++):(it=r,or===0&&Kr(q0)),it!==r&&Tt()!==r&&(Et=Rr())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&($t=zo())!==r&&Tt()!==r&&Hu()!==r?(st=R,R=B=(function(en,hn,ds){return{column:hn,value:ds,table:en&&en[0],keyword:"values"}})(B,Er,$t)):(n=R,R=r)):(n=R,R=r)),R}function It(){var R,B;return(R=Un())===r&&(R=n,(B=Se())!==r&&(st=R,B=B.ast),R=B),R}function Dt(){var R,B,cr;return R=n,Is()!==r&&Tt()!==r&&(B=Du())!==r&&Tt()!==r&&(cr=Ml())!==r&&Tt()!==r&&Hu()!==r?(st=R,R=cr):(n=R,R=r),R===r&&(R=n,Is()!==r&&Tt()!==r&&(B=u())!==r?(st=R,R=B):(n=R,R=r)),R}function Ln(){var R,B;return R=n,(B=(function(){var cr=n,Er,vt,it;return t.substr(n,6).toLowerCase()==="insert"?(Er=t.substr(n,6),n+=6):(Er=r,or===0&&Kr(Bv)),Er===r?(n=cr,cr=r):(vt=n,or++,it=Le(),or--,it===r?vt=void 0:(n=vt,vt=r),vt===r?(n=cr,cr=r):cr=Er=[Er,vt]),cr})())!==r&&(st=R,B="insert"),(R=B)===r&&(R=n,(B=Ws())!==r&&(st=R,B="replace"),R=B),R}function Un(){var R,B;return R=n,Rr()!==r&&Tt()!==r&&(B=(function(){var cr,Er,vt,it,Et,$t,en,hn;if(cr=n,(Er=u())!==r){for(vt=[],it=n,(Et=Tt())!==r&&($t=gu())!==r&&(en=Tt())!==r&&(hn=u())!==r?it=Et=[Et,$t,en,hn]:(n=it,it=r);it!==r;)vt.push(it),it=n,(Et=Tt())!==r&&($t=gu())!==r&&(en=Tt())!==r&&(hn=u())!==r?it=Et=[Et,$t,en,hn]:(n=it,it=r);vt===r?(n=cr,cr=r):(st=cr,Er=Ps(Er,vt),cr=Er)}else n=cr,cr=r;return cr})())!==r?(st=R,R={type:"values",values:B}):(n=R,R=r),R}function u(){var R,B;return R=n,Du()!==r&&Tt()!==r&&(B=yt())!==r&&Tt()!==r&&Hu()!==r?(st=R,R=B):(n=R,R=r),R}function yt(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=ht())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=ht())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=ht())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=(function(en,hn){let ds={type:"expr_list"};return ds.value=$l(en,hn),ds})(B,cr))}else n=R,R=r;return R}function Y(){var R,B,cr;return R=n,(function(){var Er=n,vt,it,Et;return t.substr(n,8).toLowerCase()==="interval"?(vt=t.substr(n,8),n+=8):(vt=r,or===0&&Kr(We)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):(st=Er,Er=vt="INTERVAL")),Er})()!==r&&Tt()!==r&&(B=ht())!==r&&Tt()!==r&&(cr=(function(){var Er;return(Er=(function(){var vt=n,it,Et,$t;return t.substr(n,4).toLowerCase()==="year"?(it=t.substr(n,4),n+=4):(it=r,or===0&&Kr(ob)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):(st=vt,vt=it="YEAR")),vt})())===r&&(Er=(function(){var vt=n,it,Et,$t;return t.substr(n,5).toLowerCase()==="month"?(it=t.substr(n,5),n+=5):(it=r,or===0&&Kr(V0)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):(st=vt,vt=it="MONTH")),vt})())===r&&(Er=(function(){var vt=n,it,Et,$t;return t.substr(n,3).toLowerCase()==="day"?(it=t.substr(n,3),n+=3):(it=r,or===0&&Kr(hf)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):(st=vt,vt=it="DAY")),vt})())===r&&(Er=(function(){var vt=n,it,Et,$t;return t.substr(n,4).toLowerCase()==="hour"?(it=t.substr(n,4),n+=4):(it=r,or===0&&Kr(Ef)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):(st=vt,vt=it="HOUR")),vt})())===r&&(Er=(function(){var vt=n,it,Et,$t;return t.substr(n,6).toLowerCase()==="minute"?(it=t.substr(n,6),n+=6):(it=r,or===0&&Kr(K0)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):(st=vt,vt=it="MINUTE")),vt})())===r&&(Er=(function(){var vt=n,it,Et,$t;return t.substr(n,6).toLowerCase()==="second"?(it=t.substr(n,6),n+=6):(it=r,or===0&&Kr(Af)),it===r?(n=vt,vt=r):(Et=n,or++,$t=Le(),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=vt,vt=r):(st=vt,vt=it="SECOND")),vt})()),Er})())!==r?(st=R,R={type:"interval",expr:B,unit:cr.toLowerCase()}):(n=R,R=r),R}function Q(){var R,B,cr,Er,vt,it;if(R=n,(B=Tr())!==r)if(Tt()!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=Tr())!==r?Er=vt=[vt,it]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=Tr())!==r?Er=vt=[vt,it]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=Hs(B,cr))}else n=R,R=r;else n=R,R=r;return R}function Tr(){var R,B,cr;return R=n,(function(){var Er=n,vt,it,Et;return t.substr(n,4).toLowerCase()==="when"?(vt=t.substr(n,4),n+=4):(vt=r,or===0&&Kr(h)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):Er=vt=[vt,it]),Er})()!==r&&Tt()!==r&&(B=e())!==r&&Tt()!==r&&(function(){var Er=n,vt,it,Et;return t.substr(n,4).toLowerCase()==="then"?(vt=t.substr(n,4),n+=4):(vt=r,or===0&&Kr(ss)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):Er=vt=[vt,it]),Er})()!==r&&Tt()!==r&&(cr=ht())!==r?(st=R,R={type:"when",cond:B,result:cr}):(n=R,R=r),R}function P(){var R,B;return R=n,Cn()!==r&&Tt()!==r&&(B=ht())!==r?(st=R,R={type:"else",result:B}):(n=R,R=r),R}function hr(){var R;return(R=(function(){var B,cr,Er,vt,it,Et,$t,en;if(B=n,(cr=Pr())!==r){for(Er=[],vt=n,(it=Rf())!==r&&(Et=Ut())!==r&&($t=Tt())!==r&&(en=Pr())!==r?vt=it=[it,Et,$t,en]:(n=vt,vt=r);vt!==r;)Er.push(vt),vt=n,(it=Rf())!==r&&(Et=Ut())!==r&&($t=Tt())!==r&&(en=Pr())!==r?vt=it=[it,Et,$t,en]:(n=vt,vt=r);Er===r?(n=B,B=r):(st=B,cr=df(cr,Er),B=cr)}else n=B,B=r;return B})())===r&&(R=(function(){var B,cr,Er,vt,it,Et;if(B=n,(cr=Ve())!==r){if(Er=[],vt=n,(it=Tt())!==r&&(Et=Eo())!==r?vt=it=[it,Et]:(n=vt,vt=r),vt!==r)for(;vt!==r;)Er.push(vt),vt=n,(it=Tt())!==r&&(Et=Eo())!==r?vt=it=[it,Et]:(n=vt,vt=r);else Er=r;Er===r?(n=B,B=r):(st=B,cr=Oc(cr,Er[0][1]),B=cr)}else n=B,B=r;return B})()),R}function ht(){var R;return(R=hr())===r&&(R=Se()),R}function e(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=ht())!==r){for(cr=[],Er=n,(vt=Tt())===r?(n=Er,Er=r):((it=Bt())===r&&(it=Ut())===r&&(it=gu()),it!==r&&(Et=Tt())!==r&&($t=ht())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r));Er!==r;)cr.push(Er),Er=n,(vt=Tt())===r?(n=Er,Er=r):((it=Bt())===r&&(it=Ut())===r&&(it=gu()),it!==r&&(Et=Tt())!==r&&($t=ht())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r));cr===r?(n=R,R=r):(st=R,R=B=(function(en,hn){let ds=hn.length,Ns=en,Fs="";for(let ue=0;ue<ds;++ue)hn[ue][1]===","?(Fs=",",Array.isArray(Ns)||(Ns=[Ns]),Ns.push(hn[ue][3])):Ns=Yo(hn[ue][1],Ns,hn[ue][3]);if(Fs===","){let ue={type:"expr_list"};return ue.value=Ns,ue}return Ns})(B,cr))}else n=R,R=r;return R}function Pr(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=Mr())!==r){for(cr=[],Er=n,(vt=Rf())!==r&&(it=Bt())!==r&&(Et=Tt())!==r&&($t=Mr())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Rf())!==r&&(it=Bt())!==r&&(Et=Tt())!==r&&($t=Mr())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=df(B,cr))}else n=R,R=r;return R}function Mr(){var R,B,cr,Er,vt;return(R=kn())===r&&(R=(function(){var it=n,Et,$t;(Et=(function(){var ds=n,Ns=n,Fs,ue,ee;return(Fs=At())!==r&&(ue=Tt())!==r&&(ee=pt())!==r?Ns=Fs=[Fs,ue,ee]:(n=Ns,Ns=r),Ns!==r&&(st=ds,Ns=b0(Ns)),(ds=Ns)===r&&(ds=pt()),ds})())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&($t=Se())!==r&&Tt()!==r&&Hu()!==r?(st=it,en=Et,(hn=$t).parentheses=!0,Et=Oc(en,hn),it=Et):(n=it,it=r);var en,hn;return it})())===r&&(R=n,(B=At())===r&&(B=n,t.charCodeAt(n)===33?(cr="!",n++):(cr=r,or===0&&Kr(f0)),cr===r?(n=B,B=r):(Er=n,or++,t.charCodeAt(n)===61?(vt="=",n++):(vt=r,or===0&&Kr(q0)),or--,vt===r?Er=void 0:(n=Er,Er=r),Er===r?(n=B,B=r):B=cr=[cr,Er])),B!==r&&(cr=Tt())!==r&&(Er=Mr())!==r?(st=R,R=B=Oc("NOT",Er)):(n=R,R=r)),R}function kn(){var R,B,cr,Er,vt;return R=n,(B=Js())!==r&&Tt()!==r?((cr=(function(){var it;return(it=(function(){var Et=n,$t=[],en=n,hn,ds,Ns,Fs;if((hn=Tt())!==r&&(ds=Yn())!==r&&(Ns=Tt())!==r&&(Fs=Js())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r),en!==r)for(;en!==r;)$t.push(en),en=n,(hn=Tt())!==r&&(ds=Yn())!==r&&(Ns=Tt())!==r&&(Fs=Js())!==r?en=hn=[hn,ds,Ns,Fs]:(n=en,en=r);else $t=r;return $t!==r&&(st=Et,$t={type:"arithmetic",tail:$t}),Et=$t})())===r&&(it=kt())===r&&(it=(function(){var Et=n,$t,en,hn;return($t=(function(){var ds=n,Ns=n,Fs,ue,ee;return(Fs=At())!==r&&(ue=Tt())!==r&&(ee=J())!==r?Ns=Fs=[Fs,ue,ee]:(n=Ns,Ns=r),Ns!==r&&(st=ds,Ns=b0(Ns)),(ds=Ns)===r&&(ds=J()),ds})())!==r&&Tt()!==r&&(en=Js())!==r&&Tt()!==r&&Bt()!==r&&Tt()!==r&&(hn=Js())!==r?(st=Et,Et=$t={op:$t,right:{type:"expr_list",value:[en,hn]}}):(n=Et,Et=r),Et})())===r&&(it=(function(){var Et=n,$t,en,hn,ds;return($t=mr())!==r&&(en=Tt())!==r&&(hn=Js())!==r?(st=Et,Et=$t={op:"IS",right:hn}):(n=Et,Et=r),Et===r&&(Et=n,$t=n,(en=mr())!==r&&(hn=Tt())!==r&&(ds=At())!==r?$t=en=[en,hn,ds]:(n=$t,$t=r),$t!==r&&(en=Tt())!==r&&(hn=Js())!==r?(st=Et,$t=(function(Ns){return{op:"IS NOT",right:Ns}})(hn),Et=$t):(n=Et,Et=r)),Et})())===r&&(it=(function(){var Et=n,$t,en;return($t=(function(){var hn=n,ds=n,Ns,Fs,ue;return(Ns=At())!==r&&(Fs=Tt())!==r&&(ue=et())!==r?ds=Ns=[Ns,Fs,ue]:(n=ds,ds=r),ds!==r&&(st=hn,ds=b0(ds)),(hn=ds)===r&&(hn=et()),hn})())!==r&&Tt()!==r?((en=Lt())===r&&(en=kn()),en===r?(n=Et,Et=r):(st=Et,Et=$t={op:$t,right:en})):(n=Et,Et=r),Et})()),it})())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,Er=B,R=B=(vt=cr)===null?Er:vt.type==="arithmetic"?m0(Er,vt.tail):Yo(vt.op,Er,vt.right))):(n=R,R=r),R===r&&(R=bn())===r&&(R=zo()),R}function Yn(){var R;return t.substr(n,2)===">="?(R=">=",n+=2):(R=r,or===0&&Kr(Pf)),R===r&&(t.charCodeAt(n)===62?(R=">",n++):(R=r,or===0&&Kr(Sp)),R===r&&(t.substr(n,2)==="<="?(R="<=",n+=2):(R=r,or===0&&Kr(kv)),R===r&&(t.substr(n,2)==="<>"?(R="<>",n+=2):(R=r,or===0&&Kr(Op)),R===r&&(t.charCodeAt(n)===60?(R="<",n++):(R=r,or===0&&Kr(fp)),R===r&&(t.charCodeAt(n)===61?(R="=",n++):(R=r,or===0&&Kr(q0)),R===r&&(t.substr(n,2)==="!="?(R="!=",n+=2):(R=r,or===0&&Kr(oc)))))))),R}function K(){var R,B,cr,Er,vt;return R=n,B=n,(cr=At())!==r&&(Er=Tt())!==r&&(vt=br())!==r?B=cr=[cr,Er,vt]:(n=B,B=r),B!==r&&(st=R,B=b0(B)),(R=B)===r&&(R=br()),R}function kt(){var R,B,cr,Er;return R=n,(B=K())!==r&&Tt()!==r&&(cr=Du())!==r&&Tt()!==r&&(Er=yt())!==r&&Tt()!==r&&Hu()!==r?(st=R,R=B={op:B,right:Er}):(n=R,R=r),R===r&&(R=n,(B=K())!==r&&Tt()!==r?((cr=Uu())===r&&(cr=bn())===r&&(cr=s()),cr===r?(n=R,R=r):(st=R,R=B=(function(vt,it){return{op:vt,right:it}})(B,cr))):(n=R,R=r)),R}function Js(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=co())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=Ve())!==r&&(Et=Tt())!==r&&($t=co())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=Ve())!==r&&(Et=Tt())!==r&&($t=co())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=(function(en,hn){if(hn&&hn.length&&en.type==="column_ref"&&en.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...qo()}));return m0(en,hn)})(B,cr))}else n=R,R=r;return R}function Ve(){var R;return t.charCodeAt(n)===43?(R="+",n++):(R=r,or===0&&Kr(uc)),R===r&&(t.charCodeAt(n)===45?(R="-",n++):(R=r,or===0&&Kr(qb))),R}function co(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=ao())!==r){for(cr=[],Er=n,(vt=Tt())===r?(n=Er,Er=r):((it=_t())===r&&(it=rv()),it!==r&&(Et=Tt())!==r&&($t=ao())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r));Er!==r;)cr.push(Er),Er=n,(vt=Tt())===r?(n=Er,Er=r):((it=_t())===r&&(it=rv()),it!==r&&(Et=Tt())!==r&&($t=ao())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r));cr===r?(n=R,R=r):(st=R,R=B=m0(B,cr))}else n=R,R=r;return R}function _t(){var R;return t.charCodeAt(n)===42?(R="*",n++):(R=r,or===0&&Kr(Gf)),R===r&&(t.charCodeAt(n)===47?(R="/",n++):(R=r,or===0&&Kr(zv)),R===r&&(t.charCodeAt(n)===37?(R="%",n++):(R=r,or===0&&Kr(Mv)))),R}function Eo(){var R,B,cr;return(R=Y())===r&&(R=Ni())===r&&(R=s())===r&&(R=(function(){var Er=n,vt,it,Et,$t,en,hn;return(vt=qn())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(it=ht())!==r&&Tt()!==r&&so()!==r&&Tt()!==r&&(Et=of())!==r&&Tt()!==r&&($t=Hu())!==r?(st=Er,vt=(function(ds,Ns,Fs){return{type:"cast",keyword:ds.toLowerCase(),expr:Ns,symbol:"as",target:[Fs]}})(vt,it,Et),Er=vt):(n=Er,Er=r),Er===r&&(Er=n,(vt=qn())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(it=ht())!==r&&Tt()!==r&&so()!==r&&Tt()!==r&&(Et=Je())!==r&&Tt()!==r&&($t=Du())!==r&&Tt()!==r&&(en=ut())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r&&(hn=Hu())!==r?(st=Er,vt=(function(ds,Ns,Fs){return{type:"cast",keyword:ds.toLowerCase(),expr:Ns,symbol:"as",target:[{dataType:"DECIMAL("+Fs+")"}]}})(vt,it,en),Er=vt):(n=Er,Er=r),Er===r&&(Er=n,(vt=qn())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(it=ht())!==r&&Tt()!==r&&so()!==r&&Tt()!==r&&(Et=Je())!==r&&Tt()!==r&&($t=Du())!==r&&Tt()!==r&&(en=ut())!==r&&Tt()!==r&&gu()!==r&&Tt()!==r&&(hn=ut())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r&&Hu()!==r?(st=Er,vt=(function(ds,Ns,Fs,ue){return{type:"cast",keyword:ds.toLowerCase(),expr:Ns,symbol:"as",target:[{dataType:"DECIMAL("+Fs+", "+ue+")"}]}})(vt,it,en,hn),Er=vt):(n=Er,Er=r),Er===r&&(Er=n,(vt=qn())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(it=ht())!==r&&Tt()!==r&&so()!==r&&Tt()!==r&&(Et=(function(){var ds;return(ds=(function(){var Ns=n,Fs,ue,ee;return t.substr(n,6).toLowerCase()==="signed"?(Fs=t.substr(n,6),n+=6):(Fs=r,or===0&&Kr(xs)),Fs===r?(n=Ns,Ns=r):(ue=n,or++,ee=Le(),or--,ee===r?ue=void 0:(n=ue,ue=r),ue===r?(n=Ns,Ns=r):(st=Ns,Ns=Fs="SIGNED")),Ns})())===r&&(ds=hu()),ds})())!==r&&Tt()!==r?(($t=nu())===r&&($t=null),$t!==r&&Tt()!==r&&(en=Hu())!==r?(st=Er,vt=(function(ds,Ns,Fs,ue){return{type:"cast",keyword:ds.toLowerCase(),expr:Ns,symbol:"as",target:[{dataType:Fs+(ue?" "+ue:"")}]}})(vt,it,Et,$t),Er=vt):(n=Er,Er=r)):(n=Er,Er=r)))),Er})())===r&&(R=(function(){var Er,vt,it,Et,$t,en,hn,ds;return Er=n,pn()!==r&&Tt()!==r&&(vt=Q())!==r&&Tt()!==r?((it=P())===r&&(it=null),it!==r&&Tt()!==r&&(Et=Hn())!==r&&Tt()!==r?(($t=pn())===r&&($t=null),$t===r?(n=Er,Er=r):(st=Er,hn=vt,(ds=it)&&hn.push(ds),Er={type:"case",expr:null,args:hn})):(n=Er,Er=r)):(n=Er,Er=r),Er===r&&(Er=n,pn()!==r&&Tt()!==r&&(vt=ht())!==r&&Tt()!==r&&(it=Q())!==r&&Tt()!==r?((Et=P())===r&&(Et=null),Et!==r&&Tt()!==r&&($t=Hn())!==r&&Tt()!==r?((en=pn())===r&&(en=null),en===r?(n=Er,Er=r):(st=Er,Er=(function(Ns,Fs,ue){return ue&&Fs.push(ue),{type:"case",expr:Ns,args:Fs}})(vt,it,Et))):(n=Er,Er=r)):(n=Er,Er=r)),Er})())===r&&(R=Lt())===r&&(R=zo())===r&&(R=si())===r&&(R=n,Du()!==r&&Tt()!==r&&(B=e())!==r&&Tt()!==r&&Hu()!==r?(st=R,(cr=B).parentheses=!0,R=cr):(n=R,R=r),R===r&&(R=Uu())),R}function ao(){var R,B,cr,Er,vt;return(R=Eo())===r&&(R=n,(B=(function(){var it;return t.charCodeAt(n)===33?(it="!",n++):(it=r,or===0&&Kr(f0)),it===r&&(t.charCodeAt(n)===45?(it="-",n++):(it=r,or===0&&Kr(qb)),it===r&&(t.charCodeAt(n)===43?(it="+",n++):(it=r,or===0&&Kr(uc)),it===r&&(t.charCodeAt(n)===126?(it="~",n++):(it=r,or===0&&Kr(Zv))))),it})())===r?(n=R,R=r):(cr=n,(Er=Tt())!==r&&(vt=ao())!==r?cr=Er=[Er,vt]:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B=Oc(B,cr[1])))),R}function zo(){var R,B,cr,Er,vt,it,Et,$t,en,hn,ds;return R=n,B=n,(cr=yo())!==r&&(Er=Tt())!==r&&(vt=bl())!==r?B=cr=[cr,Er,vt]:(n=B,B=r),B===r&&(B=null),B!==r&&(cr=Tt())!==r?(Er=n,(vt=yo())!==r&&(it=Tt())!==r&&(Et=bl())!==r?Er=vt=[vt,it,Et]:(n=Er,Er=r),Er===r&&(Er=null),Er!==r&&(vt=Tt())!==r?(it=n,(Et=yo())!==r&&($t=Tt())!==r&&(en=bl())!==r?it=Et=[Et,$t,en]:(n=it,it=r),it===r&&(it=null),it!==r&&(Et=Tt())!==r&&($t=ta())!==r?(en=n,(hn=Tt())!==r&&(ds=Ba())!==r?en=hn=[hn,ds]:(n=en,en=r),en===r&&(en=null),en===r?(n=R,R=r):(st=R,R=B=(function(Ns,Fs,ue,ee,ie){let ro={table:null,db:null,schema:null};Ns!==null&&(ro.table=Ns[0]),Fs!==null&&(ro.table=Fs[0],ro.schema=Ns[0]),ue!==null&&(ro.table=ue[0],ro.db=Ns[0],ro.schema=Fs[0]);let $e=[ro.db,ro.schema,ro.table].filter(Boolean).join(".")||"null";return ot.add(`select::${$e}::${ee}`),{type:"column_ref",...ro,column:ee,collate:ie&&ie[1]}})(B,Er,it,$t,en))):(n=R,R=r)):(n=R,R=r)):(n=R,R=r),R}function no(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=ta())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=ta())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=ta())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=Ps(B,cr))}else n=R,R=r;return R}function Ke(){var R,B;return R=n,(B=ea())!==r&&(st=R,B={type:"default",value:B}),(R=B)===r&&(R=lo()),R}function yo(){var R,B;return R=n,(B=ea())===r?(n=R,R=r):(st=n,(bp(B)?r:void 0)===r?(n=R,R=r):(st=R,R=B=B)),R===r&&(R=n,(B=Co())!==r&&(st=R,B=B),R=B),R}function lo(){var R;return(R=Au())===r&&(R=la())===r&&(R=da())===r&&(R=Ia()),R}function Co(){var R,B;return R=n,(B=Au())===r&&(B=la())===r&&(B=da())===r&&(B=Ia()),B!==r&&(st=R,B=B.value),R=B}function Au(){var R,B,cr,Er;if(R=n,t.charCodeAt(n)===34?(B='"',n++):(B=r,or===0&&Kr(Ib)),B!==r){if(cr=[],Dv.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(vp)),Er!==r)for(;Er!==r;)cr.push(Er),Dv.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(vp));else cr=r;cr===r?(n=R,R=r):(t.charCodeAt(n)===34?(Er='"',n++):(Er=r,or===0&&Kr(Ib)),Er===r?(n=R,R=r):(st=R,R=B={type:"double_quote_string",value:cr.join("")}))}else n=R,R=r;return R}function la(){var R,B,cr,Er;if(R=n,t.charCodeAt(n)===39?(B="'",n++):(B=r,or===0&&Kr(na)),B!==r){if(cr=[],Jv.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(Xb)),Er!==r)for(;Er!==r;)cr.push(Er),Jv.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(Xb));else cr=r;cr===r?(n=R,R=r):(t.charCodeAt(n)===39?(Er="'",n++):(Er=r,or===0&&Kr(na)),Er===r?(n=R,R=r):(st=R,R=B={type:"single_quote_string",value:cr.join("")}))}else n=R,R=r;return R}function da(){var R,B,cr,Er;if(R=n,t.charCodeAt(n)===96?(B="`",n++):(B=r,or===0&&Kr(pp)),B!==r){if(cr=[],xp.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(cv)),Er!==r)for(;Er!==r;)cr.push(Er),xp.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(cv));else cr=r;cr===r?(n=R,R=r):(t.charCodeAt(n)===96?(Er="`",n++):(Er=r,or===0&&Kr(pp)),Er===r?(n=R,R=r):(st=R,R=B={type:"backticks_quote_string",value:cr.join("")}))}else n=R,R=r;return R}function Ia(){var R,B,cr,Er;if(R=n,t.charCodeAt(n)===91?(B="[",n++):(B=r,or===0&&Kr(Up)),B!==r){if(cr=[],Xp.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(Qv)),Er!==r)for(;Er!==r;)cr.push(Er),Xp.test(t.charAt(n))?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr(Qv));else cr=r;cr===r?(n=R,R=r):(t.charCodeAt(n)===93?(Er="]",n++):(Er=r,or===0&&Kr(Vp)),Er===r?(n=R,R=r):(st=R,R=B={type:"brackets_quote_string",value:cr.join("")}))}else n=R,R=r;return R}function Wt(){var R,B;return R=n,(B=li())!==r&&(st=R,B=B),(R=B)===r&&(R=Co()),R}function ta(){var R,B;return R=n,(B=li())===r?(n=R,R=r):(st=n,(bp(B)?r:void 0)===r?(n=R,R=r):(st=R,R=B=B)),R===r&&(R=Co()),R}function li(){var R,B,cr,Er;if(R=n,(B=Le())!==r){for(cr=[],Er=xu();Er!==r;)cr.push(Er),Er=xu();cr===r?(n=R,R=r):(st=R,R=B=dp(B,cr))}else n=R,R=r;return R}function ea(){var R,B,cr,Er;if(R=n,(B=Le())!==r){for(cr=[],Er=rl();Er!==r;)cr.push(Er),Er=rl();cr===r?(n=R,R=r):(st=R,R=B=dp(B,cr))}else n=R,R=r;return R}function Ml(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=ea())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=ea())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=ea())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=Dn(B,cr))}else n=R,R=r;return R}function Le(){var R;return Kp.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr(ld)),R}function rl(){var R;return Lp.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr(Cp)),R}function xu(){var R;return wp.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr(gb)),R}function si(){var R,B,cr,Er;return R=n,B=n,t.charCodeAt(n)===58?(cr=":",n++):(cr=r,or===0&&Kr(O0)),cr!==r&&(Er=ea())!==r?B=cr=[cr,Er]:(n=B,B=r),B!==r&&(st=R,B={type:"param",value:B[1]}),R=B}function Ni(){var R;return(R=(function(){var B=n,cr,Er,vt;return(cr=(function(){var it=n,Et,$t,en;return t.substr(n,5).toLowerCase()==="count"?(Et=t.substr(n,5),n+=5):(Et=r,or===0&&Kr(p0)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="COUNT")),it})())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(Er=(function(){var it=n,Et;return(Et=(function(){var $t=n,en;return t.charCodeAt(n)===42?(en="*",n++):(en=r,or===0&&Kr(Gf)),en!==r&&(st=$t,en={type:"star",value:"*"}),$t=en})())!==r&&(st=it,Et={expr:Et}),(it=Et)===r&&(it=Ir()),it})())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?((vt=Dl())===r&&(vt=null),vt===r?(n=B,B=r):(st=B,cr=(function(it,Et,$t){return{type:"aggr_func",name:it,args:Et,over:$t}})(cr,Er,vt),B=cr)):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt;return(cr=(function(){var it;return(it=(function(){var Et=n,$t,en,hn;return t.substr(n,3).toLowerCase()==="sum"?($t=t.substr(n,3),n+=3):($t=r,or===0&&Kr(Zb)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):(st=Et,Et=$t="SUM")),Et})())===r&&(it=(function(){var Et=n,$t,en,hn;return t.substr(n,3).toLowerCase()==="max"?($t=t.substr(n,3),n+=3):($t=r,or===0&&Kr(up)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):(st=Et,Et=$t="MAX")),Et})())===r&&(it=(function(){var Et=n,$t,en,hn;return t.substr(n,3).toLowerCase()==="min"?($t=t.substr(n,3),n+=3):($t=r,or===0&&Kr(xb)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):(st=Et,Et=$t="MIN")),Et})())===r&&(it=(function(){var Et=n,$t,en,hn;return t.substr(n,3).toLowerCase()==="avg"?($t=t.substr(n,3),n+=3):($t=r,or===0&&Kr(yv)),$t===r?(n=Et,Et=r):(en=n,or++,hn=Le(),or--,hn===r?en=void 0:(n=en,en=r),en===r?(n=Et,Et=r):(st=Et,Et=$t="AVG")),Et})()),it})())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(Er=Js())!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?((vt=Dl())===r&&(vt=null),vt===r?(n=B,B=r):(st=B,cr=(function(it,Et,$t){return{type:"aggr_func",name:it,args:{expr:Et},over:$t,...qo()}})(cr,Er,vt),B=cr)):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr=n,Er,vt,it,Et;return(Er=yo())!==r&&(vt=Tt())!==r&&(it=bl())!==r?cr=Er=[Er,vt,it]:(n=cr,cr=r),cr===r&&(cr=null),cr!==r&&(Er=Tt())!==r?((vt=(function(){var $t=n,en,hn,ds;return t.substr(n,9).toLowerCase()==="array_agg"?(en=t.substr(n,9),n+=9):(en=r,or===0&&Kr(yf)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):(st=$t,$t=en="ARRAY_AGG")),$t})())===r&&(vt=(function(){var $t=n,en,hn,ds;return t.substr(n,10).toLowerCase()==="string_agg"?(en=t.substr(n,10),n+=10):(en=r,or===0&&Kr(X0)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):(st=$t,$t=en="STRING_AGG")),$t})()),vt!==r&&(it=Tt())!==r&&Du()!==r&&Tt()!==r&&(Et=Ir())!==r&&Tt()!==r&&Hu()!==r?(st=B,cr=(function($t,en,hn){return{type:"aggr_func",name:$t?`${$t[0]}.${en}`:en,args:hn}})(cr,vt,Et),B=cr):(n=B,B=r)):(n=B,B=r),B})()),R}function tl(){var R,B,cr;return R=n,Po()!==r&&Tt()!==r&&mn()!==r&&Tt()!==r&&(B=Ee())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r?((cr=yt())===r&&(cr=null),cr!==r&&Tt()!==r&&Hu()!==r?(st=R,R={type:"on update",keyword:B,parentheses:!0,expr:cr}):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,Po()!==r&&Tt()!==r&&mn()!==r&&Tt()!==r&&(B=Ee())!==r?(st=R,R=(function(Er){return{type:"on update",keyword:Er}})(B)):(n=R,R=r)),R}function Dl(){var R,B,cr;return R=n,t.substr(n,4).toLowerCase()==="over"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(v0)),B!==r&&Tt()!==r&&(cr=$a())!==r?(st=R,R=B={type:"window",as_window_specification:cr}):(n=R,R=r),R===r&&(R=tl()),R}function $a(){var R,B;return(R=ea())===r&&(R=n,Du()!==r&&Tt()!==r?((B=(function(){var cr=n,Er,vt,it;return(Er=rt())===r&&(Er=null),Er!==r&&Tt()!==r?((vt=k())===r&&(vt=null),vt!==r&&Tt()!==r?((it=(function(){var Et=n,$t,en,hn,ds;return($t=cu())!==r&&Tt()!==r?((en=Wu())===r&&(en=Zo()),en===r?(n=Et,Et=r):(st=Et,Et=$t={type:"rows",expr:en})):(n=Et,Et=r),Et===r&&(Et=n,($t=cu())!==r&&Tt()!==r&&(en=J())!==r&&Tt()!==r&&(hn=bc())!==r&&Tt()!==r&&Bt()!==r&&Tt()!==r&&(ds=bc())!==r?(st=Et,$t=Yo(en,{type:"origin",value:"rows"},{type:"expr_list",value:[hn,ds]}),Et=$t):(n=Et,Et=r)),Et})())===r&&(it=null),it===r?(n=cr,cr=r):(st=cr,cr=Er={name:null,partitionby:Er,orderby:vt,window_frame_clause:it})):(n=cr,cr=r)):(n=cr,cr=r),cr})())===r&&(B=null),B!==r&&Tt()!==r&&Hu()!==r?(st=R,R={window_specification:B||{},parentheses:!0}):(n=R,R=r)):(n=R,R=r)),R}function bc(){var R;return(R=Zo())===r&&(R=Wu()),R}function Wu(){var R,B,cr,Er;return R=n,(B=j())!==r&&Tt()!==r?(t.substr(n,9).toLowerCase()==="following"?(cr=t.substr(n,9),n+=9):(cr=r,or===0&&Kr(ac)),cr===r?(n=R,R=r):(st=R,(Er=B).value+=" FOLLOWING",R=B=Er)):(n=R,R=r),R===r&&(R=wi()),R}function Zo(){var R,B,cr,Er,vt;return R=n,(B=j())!==r&&Tt()!==r?(t.substr(n,9).toLowerCase()==="preceding"?(cr=t.substr(n,9),n+=9):(cr=r,or===0&&Kr(Rb)),cr===r&&(t.substr(n,9).toLowerCase()==="following"?(cr=t.substr(n,9),n+=9):(cr=r,or===0&&Kr(ac))),cr===r?(n=R,R=r):(st=R,vt=cr,(Er=B).value+=" "+vt.toUpperCase(),R=B=Er)):(n=R,R=r),R===r&&(R=wi()),R}function wi(){var R,B,cr;return R=n,t.substr(n,7).toLowerCase()==="current"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(Ff)),B!==r&&Tt()!==r?(t.substr(n,3).toLowerCase()==="row"?(cr=t.substr(n,3),n+=3):(cr=r,or===0&&Kr(Ys)),cr===r?(n=R,R=r):(st=R,R=B={type:"origin",value:"current row"})):(n=R,R=r),R}function j(){var R,B;return R=n,t.substr(n,9).toLowerCase()==="unbounded"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(kp)),B!==r&&(st=R,B={type:"origin",value:B.toUpperCase()}),(R=B)===r&&(R=vs()),R}function ur(){var R,B,cr;return R=n,(B=gu())!==r&&Tt()!==r&&(cr=bn())!==r?(st=R,R=B={symbol:B,delimiter:cr}):(n=R,R=r),R}function Ir(){var R,B,cr,Er,vt,it,Et,$t,en,hn,ds;if(R=n,(B=$())===r&&(B=null),B!==r)if(Tt()!==r)if((cr=Du())!==r)if(Tt()!==r)if((Er=ht())!==r)if(Tt()!==r)if((vt=Hu())!==r)if(Tt()!==r){for(it=[],Et=n,($t=Tt())===r?(n=Et,Et=r):((en=Bt())===r&&(en=Ut()),en!==r&&(hn=Tt())!==r&&(ds=ht())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r));Et!==r;)it.push(Et),Et=n,($t=Tt())===r?(n=Et,Et=r):((en=Bt())===r&&(en=Ut()),en!==r&&(hn=Tt())!==r&&(ds=ht())!==r?Et=$t=[$t,en,hn,ds]:(n=Et,Et=r));it!==r&&(Et=Tt())!==r?(($t=ur())===r&&($t=null),$t!==r&&(en=Tt())!==r?((hn=k())===r&&(hn=null),hn===r?(n=R,R=r):(st=R,R=B=(function(Ns,Fs,ue,ee,ie){let ro=ue.length,$e=Fs;$e.parentheses=!0;for(let Gs=0;Gs<ro;++Gs)$e=Yo(ue[Gs][1],$e,ue[Gs][3]);return{distinct:Ns,expr:$e,orderby:ie,separator:ee}})(B,Er,it,$t,hn))):(n=R,R=r)):(n=R,R=r)}else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;else n=R,R=r;return R===r&&(R=n,(B=$())===r&&(B=null),B!==r&&Tt()!==r&&(cr=Zt())!==r&&Tt()!==r?((Er=ur())===r&&(Er=null),Er!==r&&Tt()!==r?((vt=k())===r&&(vt=null),vt===r?(n=R,R=r):(st=R,R=B=(function(Ns,Fs,ue,ee){return{distinct:Ns,expr:Fs,orderby:ee,separator:ue}})(B,cr,Er,vt))):(n=R,R=r)):(n=R,R=r)),R}function s(){var R,B,cr,Er,vt,it;return R=n,(B=(function(){var Et;return(Et=er())===r&&(Et=(function(){var $t=n,en,hn,ds;return t.substr(n,12).toLowerCase()==="current_user"?(en=t.substr(n,12),n+=12):(en=r,or===0&&Kr(ul)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):(st=$t,$t=en="CURRENT_USER")),$t})())===r&&(Et=(function(){var $t=n,en,hn,ds;return t.substr(n,4).toLowerCase()==="user"?(en=t.substr(n,4),n+=4):(en=r,or===0&&Kr(Oa)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):(st=$t,$t=en="USER")),$t})())===r&&(Et=(function(){var $t=n,en,hn,ds;return t.substr(n,12).toLowerCase()==="session_user"?(en=t.substr(n,12),n+=12):(en=r,or===0&&Kr(Ye)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):(st=$t,$t=en="SESSION_USER")),$t})())===r&&(Et=(function(){var $t=n,en,hn,ds;return t.substr(n,11).toLowerCase()==="system_user"?(en=t.substr(n,11),n+=11):(en=r,or===0&&Kr(mf)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):(st=$t,$t=en="SYSTEM_USER")),$t})()),Et})())!==r&&Tt()!==r&&(cr=Du())!==r&&Tt()!==r?((Er=yt())===r&&(Er=null),Er!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?((vt=Dl())===r&&(vt=null),vt===r?(n=R,R=r):(st=R,R=B=(function(Et,$t,en){return{type:"function",name:{name:[{type:"default",value:Et}]},args:$t||{type:"expr_list",value:[]},over:en,...qo()}})(B,Er,vt))):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,(B=er())!==r&&Tt()!==r?((cr=tl())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B={type:"function",name:{name:[{type:"origin",value:B}]},over:cr,...qo()})):(n=R,R=r),R===r&&(R=n,(B=Tv())!==r&&Tt()!==r&&(cr=Du())!==r&&Tt()!==r?((Er=e())===r&&(Er=null),Er!==r&&Tt()!==r&&Hu()!==r&&Tt()!==r?((vt=(function(){var Et,$t,en;return Et=n,t.substr(n,6).toLowerCase()==="within"?($t=t.substr(n,6),n+=6):($t=r,or===0&&Kr(Mp)),$t!==r&&Tt()!==r&&vn()!==r&&Tt()!==r&&Du()!==r&&Tt()!==r&&(en=k())!==r&&Tt()!==r&&Hu()!==r?(st=Et,Et=$t={type:"within",keyword:"group",orderby:en}):(n=Et,Et=r),Et})())===r&&(vt=null),vt!==r&&Tt()!==r?((it=Dl())===r&&(it=null),it===r?(n=R,R=r):(st=R,R=B=(function(Et,$t,en,hn){return $t&&$t.type!=="expr_list"&&($t={type:"expr_list",value:[$t]}),{type:"function",name:Et,args:$t||{type:"expr_list",value:[]},within_group:en,over:hn,...qo()}})(B,Er,vt,it))):(n=R,R=r)):(n=R,R=r)):(n=R,R=r))),R}function er(){var R;return(R=(function(){var B=n,cr,Er,vt;return t.substr(n,12).toLowerCase()==="current_date"?(cr=t.substr(n,12),n+=12):(cr=r,or===0&&Kr(ti)),cr===r?(n=B,B=r):(Er=n,or++,vt=Le(),or--,vt===r?Er=void 0:(n=Er,Er=r),Er===r?(n=B,B=r):(st=B,B=cr="CURRENT_DATE")),B})())===r&&(R=(function(){var B=n,cr,Er,vt;return t.substr(n,12).toLowerCase()==="current_time"?(cr=t.substr(n,12),n+=12):(cr=r,or===0&&Kr(El)),cr===r?(n=B,B=r):(Er=n,or++,vt=Le(),or--,vt===r?Er=void 0:(n=Er,Er=r),Er===r?(n=B,B=r):(st=B,B=cr="CURRENT_TIME")),B})())===r&&(R=Ee()),R}function Lt(){var R;return(R=bn())===r&&(R=vs())===r&&(R=(function(){var B=n,cr;return(cr=(function(){var Er=n,vt,it,Et;return t.substr(n,4).toLowerCase()==="true"?(vt=t.substr(n,4),n+=4):(vt=r,or===0&&Kr(td)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):Er=vt=[vt,it]),Er})())!==r&&(st=B,cr={type:"bool",value:!0}),(B=cr)===r&&(B=n,(cr=(function(){var Er=n,vt,it,Et;return t.substr(n,5).toLowerCase()==="false"?(vt=t.substr(n,5),n+=5):(vt=r,or===0&&Kr(Hp)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):Er=vt=[vt,it]),Er})())!==r&&(st=B,cr={type:"bool",value:!1}),B=cr),B})())===r&&(R=mt())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et;if((cr=le())===r&&(cr=Jo())===r&&(cr=vu())===r&&(cr=Bu()),cr!==r)if(Tt()!==r){if(Er=n,t.charCodeAt(n)===39?(vt="'",n++):(vt=r,or===0&&Kr(na)),vt!==r){for(it=[],Et=Zr();Et!==r;)it.push(Et),Et=Zr();it===r?(n=Er,Er=r):(t.charCodeAt(n)===39?(Et="'",n++):(Et=r,or===0&&Kr(na)),Et===r?(n=Er,Er=r):Er=vt=[vt,it,Et])}else n=Er,Er=r;Er===r?(n=B,B=r):(st=B,cr=_b(cr,Er),B=cr)}else n=B,B=r;else n=B,B=r;if(B===r)if(B=n,(cr=le())===r&&(cr=Jo())===r&&(cr=vu())===r&&(cr=Bu()),cr!==r)if(Tt()!==r){if(Er=n,t.charCodeAt(n)===34?(vt='"',n++):(vt=r,or===0&&Kr(Ib)),vt!==r){for(it=[],Et=ir();Et!==r;)it.push(Et),Et=ir();it===r?(n=Er,Er=r):(t.charCodeAt(n)===34?(Et='"',n++):(Et=r,or===0&&Kr(Ib)),Et===r?(n=Er,Er=r):Er=vt=[vt,it,Et])}else n=Er,Er=r;Er===r?(n=B,B=r):(st=B,cr=_b(cr,Er),B=cr)}else n=B,B=r;else n=B,B=r;return B})()),R}function mt(){var R,B;return R=n,(B=(function(){var cr=n,Er,vt,it;return t.substr(n,4).toLowerCase()==="null"?(Er=t.substr(n,4),n+=4):(Er=r,or===0&&Kr(jp)),Er===r?(n=cr,cr=r):(vt=n,or++,it=Le(),or--,it===r?vt=void 0:(n=vt,vt=r),vt===r?(n=cr,cr=r):cr=Er=[Er,vt]),cr})())!==r&&(st=R,B={type:"null",value:null}),R=B}function bn(){var R,B,cr,Er,vt,it;if(R=n,t.substr(n,1).toLowerCase()==="n"?(B=t.charAt(n),n++):(B=r,or===0&&Kr(rp)),B===r&&(B=null),B!==r){if(cr=n,t.charCodeAt(n)===39?(Er="'",n++):(Er=r,or===0&&Kr(na)),Er!==r){for(vt=[],it=Zr();it!==r;)vt.push(it),it=Zr();vt===r?(n=cr,cr=r):(t.charCodeAt(n)===39?(it="'",n++):(it=r,or===0&&Kr(na)),it===r?(n=cr,cr=r):cr=Er=[Er,vt,it])}else n=cr,cr=r;cr===r?(n=R,R=r):(st=R,R=B={type:B?"var_string":"single_quote_string",value:cr[1].join("")})}else n=R,R=r;if(R===r){if(R=n,B=n,t.charCodeAt(n)===34?(cr='"',n++):(cr=r,or===0&&Kr(Ib)),cr!==r){for(Er=[],vt=ir();vt!==r;)Er.push(vt),vt=ir();Er===r?(n=B,B=r):(t.charCodeAt(n)===34?(vt='"',n++):(vt=r,or===0&&Kr(Ib)),vt===r?(n=B,B=r):B=cr=[cr,Er,vt])}else n=B,B=r;if(B===r?(n=R,R=r):(cr=n,or++,Er=bl(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B=(function(Et){return{type:"double_quote_string",value:Et[1].join("")}})(B))),R===r)if(R=n,t.substr(n,7).toLowerCase()==="_binary"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(yp)),B===r&&(t.substr(n,7).toLowerCase()==="_latin1"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(hp))),B===r&&(B=null),B!==r)if((cr=Tt())!==r)if(t.substr(n,2).toLowerCase()==="0x"?(Er=t.substr(n,2),n+=2):(Er=r,or===0&&Kr(Ep)),Er!==r){for(vt=[],Nb.test(t.charAt(n))?(it=t.charAt(n),n++):(it=r,or===0&&Kr(Qf));it!==r;)vt.push(it),Nb.test(t.charAt(n))?(it=t.charAt(n),n++):(it=r,or===0&&Kr(Qf));vt===r?(n=R,R=r):(st=R,R=B=(function(Et,$t,en){return{type:"full_hex_string",prefix:Et,value:en.join("")}})(B,0,vt))}else n=R,R=r;else n=R,R=r;else n=R,R=r}return R}function ir(){var R;return Ap.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr(Dp)),R===r&&(R=rs()),R}function Zr(){var R;return $v.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr($p)),R===r&&(R=rs()),R}function rs(){var R,B,cr,Er,vt,it,Et,$t,en,hn;return R=n,t.substr(n,2)==="\\'"?(B="\\'",n+=2):(B=r,or===0&&Kr(Pp)),B!==r&&(st=R,B="\\'"),(R=B)===r&&(R=n,t.substr(n,2)==='\\"'?(B='\\"',n+=2):(B=r,or===0&&Kr(Pv)),B!==r&&(st=R,B='\\"'),(R=B)===r&&(R=n,t.substr(n,2)==="\\\\"?(B="\\\\",n+=2):(B=r,or===0&&Kr(Gp)),B!==r&&(st=R,B="\\\\"),(R=B)===r&&(R=n,t.substr(n,2)==="\\/"?(B="\\/",n+=2):(B=r,or===0&&Kr(Fp)),B!==r&&(st=R,B="\\/"),(R=B)===r&&(R=n,t.substr(n,2)==="\\b"?(B="\\b",n+=2):(B=r,or===0&&Kr(mp)),B!==r&&(st=R,B="\b"),(R=B)===r&&(R=n,t.substr(n,2)==="\\f"?(B="\\f",n+=2):(B=r,or===0&&Kr(zp)),B!==r&&(st=R,B="\f"),(R=B)===r&&(R=n,t.substr(n,2)==="\\n"?(B="\\n",n+=2):(B=r,or===0&&Kr(Zp)),B!==r&&(st=R,B=` +`),(R=B)===r&&(R=n,t.substr(n,2)==="\\r"?(B="\\r",n+=2):(B=r,or===0&&Kr(Gv)),B!==r&&(st=R,B="\r"),(R=B)===r&&(R=n,t.substr(n,2)==="\\t"?(B="\\t",n+=2):(B=r,or===0&&Kr(tp)),B!==r&&(st=R,B=" "),(R=B)===r&&(R=n,t.substr(n,2)==="\\u"?(B="\\u",n+=2):(B=r,or===0&&Kr(Fv)),B!==r&&(cr=yr())!==r&&(Er=yr())!==r&&(vt=yr())!==r&&(it=yr())!==r?(st=R,Et=cr,$t=Er,en=vt,hn=it,R=B=String.fromCharCode(parseInt("0x"+Et+$t+en+hn))):(n=R,R=r),R===r&&(R=n,t.charCodeAt(n)===92?(B="\\",n++):(B=r,or===0&&Kr(yl)),B!==r&&(st=R,B="\\"),(R=B)===r&&(R=n,t.substr(n,2)==="''"?(B="''",n+=2):(B=r,or===0&&Kr(jc)),B!==r&&(st=R,B="''"),(R=B)===r&&(R=n,t.substr(n,2)==='""'?(B='""',n+=2):(B=r,or===0&&Kr(fv)),B!==r&&(st=R,B='""'),(R=B)===r&&(R=n,t.substr(n,2)==="``"?(B="``",n+=2):(B=r,or===0&&Kr(Sl)),B!==r&&(st=R,B="``"),R=B))))))))))))),R}function vs(){var R,B,cr;return R=n,(B=Ds())!==r&&(st=R,B=(cr=B)&&cr.type==="bigint"?cr:{type:"number",value:cr}),R=B}function Ds(){var R,B,cr,Er;return R=n,(B=ut())!==r&&(cr=De())!==r&&(Er=Qo())!==r?(st=R,R=B={type:"bigint",value:B+cr+Er}):(n=R,R=r),R===r&&(R=n,(B=ut())!==r&&(cr=De())!==r?(st=R,R=B=(function(vt,it){let Et=vt+it;return Xo(vt)?{type:"bigint",value:Et}:parseFloat(Et).toFixed(it.length-1)})(B,cr)):(n=R,R=r),R===r&&(R=n,(B=ut())!==r&&(cr=Qo())!==r?(st=R,R=B=(function(vt,it){return{type:"bigint",value:vt+it}})(B,cr)):(n=R,R=r),R===r&&(R=n,(B=ut())!==r&&(st=R,B=(function(vt){return Xo(vt)?{type:"bigint",value:vt}:parseFloat(vt)})(B)),R=B))),R}function ut(){var R,B,cr;return(R=A())===r&&(R=nr())===r&&(R=n,t.charCodeAt(n)===45?(B="-",n++):(B=r,or===0&&Kr(qb)),B===r&&(t.charCodeAt(n)===43?(B="+",n++):(B=r,or===0&&Kr(uc))),B!==r&&(cr=A())!==r?(st=R,R=B+=cr):(n=R,R=r),R===r&&(R=n,t.charCodeAt(n)===45?(B="-",n++):(B=r,or===0&&Kr(qb)),B===r&&(t.charCodeAt(n)===43?(B="+",n++):(B=r,or===0&&Kr(uc))),B!==r&&(cr=nr())!==r?(st=R,R=B=(function(Er,vt){return Er+vt})(B,cr)):(n=R,R=r))),R}function De(){var R,B,cr;return R=n,t.charCodeAt(n)===46?(B=".",n++):(B=r,or===0&&Kr(bv)),B!==r&&(cr=A())!==r?(st=R,R=B="."+cr):(n=R,R=r),R}function Qo(){var R,B,cr;return R=n,(B=(function(){var Er=n,vt,it;sp.test(t.charAt(n))?(vt=t.charAt(n),n++):(vt=r,or===0&&Kr(jv)),vt===r?(n=Er,Er=r):(Tp.test(t.charAt(n))?(it=t.charAt(n),n++):(it=r,or===0&&Kr(rd)),it===r&&(it=null),it===r?(n=Er,Er=r):(st=Er,Er=vt+=(Et=it)===null?"":Et));var Et;return Er})())!==r&&(cr=A())!==r?(st=R,R=B+=cr):(n=R,R=r),R}function A(){var R,B,cr;if(R=n,B=[],(cr=nr())!==r)for(;cr!==r;)B.push(cr),cr=nr();else B=r;return B!==r&&(st=R,B=B.join("")),R=B}function nr(){var R;return ql.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr(Ec)),R}function yr(){var R;return Jp.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr(Qp)),R}function Ar(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="default"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(Gl)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function qr(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="to"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(nd)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function bt(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="top"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(Bp)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function pr(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="drop"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(gp)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DROP")),R}function xt(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="declare"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(sd)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DECLARE")),R}function cn(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="alter"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(Yp)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="ALTER")),R}function mn(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="update"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(ud)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function $n(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="create"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(Rp)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function bs(){var R,B,cr,Er;return R=n,t.substr(n,9).toLowerCase()==="temporary"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(O)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function ks(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="delete"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(ps)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Ws(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="replace"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(Hv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function fe(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="rename"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(on)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function ne(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="ignore"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(zs)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Is(){var R,B,cr,Er;return R=n,t.substr(n,9).toLowerCase()==="partition"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(Bc)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="PARTITION")),R}function me(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="into"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(vv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Xe(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="from"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(ep)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function eo(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="set"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(te)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="SET")),R}function so(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="as"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(Np)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function $o(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="table"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(Wp)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="TABLE")),R}function Mu(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="view"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(cd)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="VIEW")),R}function su(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="tables"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(Ls)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="TABLES")),R}function Po(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="on"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(pv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Na(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="join"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(Kb)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function F(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="apply"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(ys)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function ar(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="outer"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(_p)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Nr(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="union"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(Yv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Rr(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="values"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(Lv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function ct(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="using"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(Wv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function dt(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="with"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(iv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Yt(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="go"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(wf)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="GO")),R}function vn(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="group"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(qv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function fn(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="by"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(Cv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function gn(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="offset"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(us)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="OFFSET")),R}function Vn(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="fetch"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(Sb)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="FETCH")),R}function Jn(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="asc"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(xl)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="ASC")),R}function ms(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="desc"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(nb)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DESC")),R}function Qs(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="all"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(zt)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="ALL")),R}function $(){var R,B,cr,Er;return R=n,t.substr(n,8).toLowerCase()==="distinct"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr($s)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DISTINCT")),R}function J(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="between"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(ja)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="BETWEEN")),R}function br(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="in"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(Ob)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="IN")),R}function mr(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="is"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(jf)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="IS")),R}function et(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="like"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(is)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="LIKE")),R}function pt(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="exists"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(el)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="EXISTS")),R}function At(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="not"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(g0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="NOT")),R}function Bt(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="and"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(Ti)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="AND")),R}function Ut(){var R,B,cr,Er;return R=n,t.substr(n,2).toLowerCase()==="or"?(B=t.substr(n,2),n+=2):(B=r,or===0&&Kr(wv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="OR")),R}function pn(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="case"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(hv)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Cn(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="else"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(Xl)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function Hn(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="end"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(d0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):R=B=[B,cr]),R}function qn(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="cast"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(Bf)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="CAST")),R}function Cs(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="char"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(sb)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="CHAR")),R}function js(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="varchar"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(eb)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="VARCHAR")),R}function qe(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="binary"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(p)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="BINARY")),R}function bo(){var R,B,cr,Er;return R=n,t.substr(n,9).toLowerCase()==="varbinary"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(ns)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="VARBINARY")),R}function tu(){var R,B,cr,Er;return R=n,t.substr(n,8).toLowerCase()==="nvarchar"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Hc)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="NVARCHAR")),R}function Ru(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="numeric"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(Ub)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="NUMERIC")),R}function Je(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="decimal"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(Ft)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DECIMAL")),R}function hu(){var R,B,cr,Er;return R=n,t.substr(n,8).toLowerCase()==="unsigned"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Li)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="UNSIGNED")),R}function Go(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="int"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(Ta)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="INT")),R}function nu(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="integer"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(Zn)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="INTEGER")),R}function xe(){var R,B,cr,Er;return R=n,t.substr(n,8).toLowerCase()==="smallint"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(kb)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="SMALLINT")),R}function qs(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="tinyint"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(U0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="TINYINT")),R}function fo(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="bigint"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(Ot)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="BIGINT")),R}function Ks(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="float"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(hs)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="FLOAT")),R}function Vo(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="real"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(Yi)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="REAL")),R}function eu(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="double"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(hl)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DOUBLE")),R}function Jo(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="date"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(L0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DATE")),R}function Bu(){var R,B,cr,Er;return R=n,t.substr(n,8).toLowerCase()==="datetime"?(B=t.substr(n,8),n+=8):(B=r,or===0&&Kr(Qb)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DATETIME")),R}function oa(){var R,B,cr,Er;return R=n,t.substr(n,9).toLowerCase()==="datetime2"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(C0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DATETIME2")),R}function Nu(){var R,B,cr,Er;return R=n,t.substr(n,14).toLowerCase()==="datetimeoffset"?(B=t.substr(n,14),n+=14):(B=r,or===0&&Kr(Hf)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="DATETIMEOFFSET")),R}function cu(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="rows"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(Wl)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="ROWS")),R}function le(){var R,B,cr,Er;return R=n,t.substr(n,4).toLowerCase()==="time"?(B=t.substr(n,4),n+=4):(B=r,or===0&&Kr(k0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="TIME")),R}function vu(){var R,B,cr,Er;return R=n,t.substr(n,9).toLowerCase()==="timestamp"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(M0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="TIMESTAMP")),R}function Ee(){var R,B,cr,Er;return R=n,t.substr(n,17).toLowerCase()==="current_timestamp"?(B=t.substr(n,17),n+=17):(B=r,or===0&&Kr(w0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="CURRENT_TIMESTAMP")),R}function yi(){var R;return t.charCodeAt(n)===64?(R="@",n++):(R=r,or===0&&Kr(qf)),R}function Rc(){var R;return(R=(function(){var B;return t.substr(n,2)==="@@"?(B="@@",n+=2):(B=r,or===0&&Kr(Su)),B})())===r&&(R=yi())===r&&(R=(function(){var B;return t.charCodeAt(n)===36?(B="$",n++):(B=r,or===0&&Kr(Al)),B})()),R}function Wa(){var R;return t.charCodeAt(n)===61?(R="=",n++):(R=r,or===0&&Kr(q0)),R}function vc(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="add"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(Tc)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="ADD")),R}function Ev(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="column"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(y0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="COLUMN")),R}function cb(){var R,B,cr,Er;return R=n,t.substr(n,5).toLowerCase()==="index"?(B=t.substr(n,5),n+=5):(B=r,or===0&&Kr(bi)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="INDEX")),R}function ad(){var R,B,cr,Er;return R=n,t.substr(n,3).toLowerCase()==="key"?(B=t.substr(n,3),n+=3):(B=r,or===0&&Kr(_o)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="KEY")),R}function hi(){var R,B,cr,Er;return R=n,t.substr(n,6).toLowerCase()==="unique"?(B=t.substr(n,6),n+=6):(B=r,or===0&&Kr(pe)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="UNIQUE")),R}function ap(){var R,B,cr,Er;return R=n,t.substr(n,9).toLowerCase()==="clustered"?(B=t.substr(n,9),n+=9):(B=r,or===0&&Kr(lc)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="CLUSTERED")),R}function A0(){var R,B,cr,Er;return R=n,t.substr(n,12).toLowerCase()==="nonclustered"?(B=t.substr(n,12),n+=12):(B=r,or===0&&Kr(Ic)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="NONCLUSTERED")),R}function fl(){var R,B,cr,Er;return R=n,t.substr(n,7).toLowerCase()==="comment"?(B=t.substr(n,7),n+=7):(B=r,or===0&&Kr(ab)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="COMMENT")),R}function Av(){var R,B,cr,Er;return R=n,t.substr(n,10).toLowerCase()==="constraint"?(B=t.substr(n,10),n+=10):(B=r,or===0&&Kr(J0)),B===r?(n=R,R=r):(cr=n,or++,Er=Le(),or--,Er===r?cr=void 0:(n=cr,cr=r),cr===r?(n=R,R=r):(st=R,R=B="CONSTRAINT")),R}function bl(){var R;return t.charCodeAt(n)===46?(R=".",n++):(R=r,or===0&&Kr(bv)),R}function gu(){var R;return t.charCodeAt(n)===44?(R=",",n++):(R=r,or===0&&Kr(Q0)),R}function Xi(){var R;return t.charCodeAt(n)===42?(R="*",n++):(R=r,or===0&&Kr(Gf)),R}function Du(){var R;return t.charCodeAt(n)===40?(R="(",n++):(R=r,or===0&&Kr(ki)),R}function Hu(){var R;return t.charCodeAt(n)===41?(R=")",n++):(R=r,or===0&&Kr(Hl)),R}function vl(){var R;return t.charCodeAt(n)===91?(R="[",n++):(R=r,or===0&&Kr(Up)),R}function rc(){var R;return t.charCodeAt(n)===93?(R="]",n++):(R=r,or===0&&Kr(Vp)),R}function Ei(){var R;return t.charCodeAt(n)===59?(R=";",n++):(R=r,or===0&&Kr(ib)),R}function rv(){var R;return(R=(function(){var B;return t.substr(n,2)==="||"?(B="||",n+=2):(B=r,or===0&&Kr(fa)),B})())===r&&(R=(function(){var B;return t.substr(n,2)==="&&"?(B="&&",n+=2):(B=r,or===0&&Kr(Zi)),B})()),R}function Tt(){var R,B;for(R=[],(B=Ai())===r&&(B=ga());B!==r;)R.push(B),(B=Ai())===r&&(B=ga());return R}function Rf(){var R,B;if(R=[],(B=Ai())===r&&(B=ga()),B!==r)for(;B!==r;)R.push(B),(B=Ai())===r&&(B=ga());else R=r;return R}function ga(){var R;return(R=(function B(){var cr=n,Er,vt,it,Et,$t,en;if(t.substr(n,2)==="/*"?(Er="/*",n+=2):(Er=r,or===0&&Kr(rf)),Er!==r){for(vt=[],it=n,Et=n,or++,t.substr(n,2)==="*/"?($t="*/",n+=2):($t=r,or===0&&Kr(Ii)),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=it,it=r):($t=n,or++,t.substr(n,2)==="/*"?(en="/*",n+=2):(en=r,or===0&&Kr(rf)),or--,en===r?$t=void 0:(n=$t,$t=r),$t!==r&&(en=Nc())!==r?it=Et=[Et,$t,en]:(n=it,it=r)),it===r&&(it=B());it!==r;)vt.push(it),it=n,Et=n,or++,t.substr(n,2)==="*/"?($t="*/",n+=2):($t=r,or===0&&Kr(Ii)),or--,$t===r?Et=void 0:(n=Et,Et=r),Et===r?(n=it,it=r):($t=n,or++,t.substr(n,2)==="/*"?(en="/*",n+=2):(en=r,or===0&&Kr(rf)),or--,en===r?$t=void 0:(n=$t,$t=r),$t!==r&&(en=Nc())!==r?it=Et=[Et,$t,en]:(n=it,it=r)),it===r&&(it=B());vt===r?(n=cr,cr=r):(t.substr(n,2)==="*/"?(it="*/",n+=2):(it=r,or===0&&Kr(Ii)),it===r?(n=cr,cr=r):cr=Er=[Er,vt,it])}else n=cr,cr=r;return cr})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et;if(t.substr(n,2)==="--"?(cr="--",n+=2):(cr=r,or===0&&Kr(Ge)),cr!==r){for(Er=[],vt=n,it=n,or++,Et=tc(),or--,Et===r?it=void 0:(n=it,it=r),it!==r&&(Et=Nc())!==r?vt=it=[it,Et]:(n=vt,vt=r);vt!==r;)Er.push(vt),vt=n,it=n,or++,Et=tc(),or--,Et===r?it=void 0:(n=it,it=r),it!==r&&(Et=Nc())!==r?vt=it=[it,Et]:(n=vt,vt=r);Er===r?(n=B,B=r):B=cr=[cr,Er]}else n=B,B=r;return B})()),R}function _i(){var R,B,cr,Er;return R=n,(B=fl())!==r&&Tt()!==r?((cr=Wa())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=bn())!==r?(st=R,R=B=(function(vt,it,Et){return{type:vt.toLowerCase(),keyword:vt.toLowerCase(),symbol:it,value:Et}})(B,cr,Er)):(n=R,R=r)):(n=R,R=r),R}function Nc(){var R;return t.length>n?(R=t.charAt(n),n++):(R=r,or===0&&Kr($0)),R}function Ai(){var R;return gf.test(t.charAt(n))?(R=t.charAt(n),n++):(R=r,or===0&&Kr(Zl)),R}function tc(){var R,B;if((R=(function(){var cr=n,Er;return or++,t.length>n?(Er=t.charAt(n),n++):(Er=r,or===0&&Kr($0)),or--,Er===r?cr=void 0:(n=cr,cr=r),cr})())===r)if(R=[],Ol.test(t.charAt(n))?(B=t.charAt(n),n++):(B=r,or===0&&Kr(np)),B!==r)for(;B!==r;)R.push(B),Ol.test(t.charAt(n))?(B=t.charAt(n),n++):(B=r,or===0&&Kr(np));else R=r;return R}function Yf(){var R,B;return R=n,st=n,Nf=[],r!==void 0&&Tt()!==r?((B=sf())===r&&(B=(function(){var cr=n,Er;return(function(){var vt;return t.substr(n,6).toLowerCase()==="return"?(vt=t.substr(n,6),n+=6):(vt=r,or===0&&Kr(D0)),vt})()!==r&&Tt()!==r&&(Er=mv())!==r?(st=cr,cr={type:"return",expr:Er}):(n=cr,cr=r),cr})()),B===r?(n=R,R=r):(st=R,R={stmt:B,vars:Nf})):(n=R,R=r),R}function sf(){var R,B,cr,Er;return R=n,(B=Uu())===r&&(B=Sc()),B!==r&&Tt()!==r?((cr=(function(){var vt;return t.substr(n,2)===":="?(vt=":=",n+=2):(vt=r,or===0&&Kr(Ac)),vt})())===r&&(cr=Wa()),cr===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=mv())!==r?(st=R,R=B={type:"assign",left:B,symbol:cr,right:Er}):(n=R,R=r)):(n=R,R=r),R}function mv(){var R;return(R=ka())===r&&(R=(function(){var B=n,cr,Er,vt,it;return(cr=Uu())!==r&&Tt()!==r&&(Er=nt())!==r&&Tt()!==r&&(vt=Uu())!==r&&Tt()!==r&&(it=ba())!==r?(st=B,B=cr={type:"join",ltable:cr,rtable:vt,op:Er,on:it}):(n=B,B=r),B})())===r&&(R=pc())===r&&(R=(function(){var B=n,cr;return vl()!==r&&Tt()!==r&&(cr=ip())!==r&&Tt()!==r&&rc()!==r?(st=B,B={type:"array",value:cr}):(n=B,B=r),B})()),R}function pc(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=Si())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=Ve())!==r&&(Et=Tt())!==r&&($t=Si())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=Ve())!==r&&(Et=Tt())!==r&&($t=Si())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=df(B,cr))}else n=R,R=r;return R}function Si(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=_c())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=_t())!==r&&(Et=Tt())!==r&&($t=_c())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=_t())!==r&&(Et=Tt())!==r&&($t=_c())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=df(B,cr))}else n=R,R=r;return R}function _c(){var R,B,cr;return(R=Lt())===r&&(R=Uu())===r&&(R=ef())===r&&(R=si())===r&&(R=n,Du()!==r&&Tt()!==r&&(B=pc())!==r&&Tt()!==r&&Hu()!==r?(st=R,(cr=B).parentheses=!0,R=cr):(n=R,R=r)),R}function Tv(){var R,B,cr,Er,vt,it,Et;return R=n,(B=Ke())===r?(n=R,R=r):(cr=n,(Er=Tt())!==r&&(vt=bl())!==r&&(it=Tt())!==r&&(Et=Ke())!==r?cr=Er=[Er,vt,it,Et]:(n=cr,cr=r),cr===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B=(function($t,en){let hn={name:[$t]};return en!==null&&(hn.schema=$t,hn.name=[en[3]]),hn})(B,cr))),R}function ef(){var R,B,cr;return R=n,(B=Tv())!==r&&Tt()!==r&&Du()!==r&&Tt()!==r?((cr=ip())===r&&(cr=null),cr!==r&&Tt()!==r&&Hu()!==r?(st=R,R=B=(function(Er,vt){return{type:"function",name:Er,args:{type:"expr_list",value:vt},...qo()}})(B,cr)):(n=R,R=r)):(n=R,R=r),R===r&&(R=n,(B=Tv())!==r&&(st=R,B=(function(Er){return{type:"function",name:Er,args:null,...qo()}})(B)),R=B),R}function ip(){var R,B,cr,Er,vt,it,Et,$t;if(R=n,(B=_c())!==r){for(cr=[],Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=_c())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);Er!==r;)cr.push(Er),Er=n,(vt=Tt())!==r&&(it=gu())!==r&&(Et=Tt())!==r&&($t=_c())!==r?Er=vt=[vt,it,Et,$t]:(n=Er,Er=r);cr===r?(n=R,R=r):(st=R,R=B=Ps(B,cr))}else n=R,R=r;return R}function Uu(){var R,B,cr,Er,vt;return R=n,(B=Rc())!==r&&(cr=Sc())!==r?(st=R,Er=B,vt=cr,R=B={type:"var",...vt,prefix:Er}):(n=R,R=r),R}function Sc(){var R,B,cr;return R=n,(B=ea())!==r&&(cr=(function(){var Er=n,vt=[],it=n,Et,$t;for(t.charCodeAt(n)===46?(Et=".",n++):(Et=r,or===0&&Kr(bv)),Et!==r&&($t=ea())!==r?it=Et=[Et,$t]:(n=it,it=r);it!==r;)vt.push(it),it=n,t.charCodeAt(n)===46?(Et=".",n++):(Et=r,or===0&&Kr(bv)),Et!==r&&($t=ea())!==r?it=Et=[Et,$t]:(n=it,it=r);return vt!==r&&(st=Er,vt=(function(en){let hn=[];for(let ds=0;ds<en.length;ds++)hn.push(en[ds][1]);return hn})(vt)),Er=vt})())!==r?(st=R,R=B=(function(Er,vt){return Nf.push(Er),{type:"var",name:Er,members:vt,prefix:null}})(B,cr)):(n=R,R=r),R===r&&(R=n,(B=vs())!==r&&(st=R,B={type:"var",name:B.value,members:[],quoted:null,prefix:null}),R=B),R}function of(){var R;return(R=(function(){var B=n,cr,Er,vt,it,Et;if((cr=vl())===r&&(cr=null),cr!==r)if(Tt()!==r)if((Er=Cs())===r&&(Er=js())===r&&(Er=(function(){var $t,en,hn,ds;return $t=n,t.substr(n,5).toLowerCase()==="nchar"?(en=t.substr(n,5),n+=5):(en=r,or===0&&Kr(Vl)),en===r?(n=$t,$t=r):(hn=n,or++,ds=Le(),or--,ds===r?hn=void 0:(n=hn,hn=r),hn===r?(n=$t,$t=r):(st=$t,$t=en="NCHAR")),$t})())===r&&(Er=tu())===r&&(Er=qe())===r&&(Er=bo()),Er!==r)if(Tt()!==r)if((vt=rc())===r&&(vt=null),vt!==r)if(st=n,(Xa(cr,0,vt)?r:void 0)!==r)if(Tt()!==r)if(Du()!==r)if(Tt()!==r){if(it=[],ql.test(t.charAt(n))?(Et=t.charAt(n),n++):(Et=r,or===0&&Kr(Ec)),Et!==r)for(;Et!==r;)it.push(Et),ql.test(t.charAt(n))?(Et=t.charAt(n),n++):(Et=r,or===0&&Kr(Ec));else it=r;it!==r&&(Et=Tt())!==r&&Hu()!==r?(st=B,cr={dataType:Er,length:parseInt(it.join(""),10),parentheses:!0},B=cr):(n=B,B=r)}else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;return B===r&&(B=n,(cr=vl())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=tu())===r&&(Er=js())===r&&(Er=bo()),Er!==r&&Tt()!==r?((vt=rc())===r&&(vt=null),vt===r?(n=B,B=r):(st=n,(Xa(cr,0,vt)?r:void 0)!==r&&Tt()!==r&&Du()!==r&&Tt()!==r?(t.substr(n,3).toLowerCase()==="max"?(it=t.substr(n,3),n+=3):(it=r,or===0&&Kr(up)),it!==r&&(Et=Tt())!==r&&Hu()!==r?(st=B,cr=(function($t,en,hn,ds){return{dataType:en,length:"max"}})(0,Er),B=cr):(n=B,B=r)):(n=B,B=r))):(n=B,B=r)):(n=B,B=r),B===r&&(B=n,(cr=vl())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=Cs())===r&&(Er=js())===r&&(Er=qe())===r&&(Er=bo()),Er!==r&&Tt()!==r?((vt=rc())===r&&(vt=null),vt===r?(n=B,B=r):(st=n,(Xa(cr,0,vt)?r:void 0)===r?(n=B,B=r):(st=B,cr=cc(0,Er),B=cr))):(n=B,B=r)):(n=B,B=r))),B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t,en,hn,ds,Ns,Fs,ue,ee,ie;if((cr=vl())===r&&(cr=null),cr!==r)if(Tt()!==r)if((Er=Ru())===r&&(Er=Je())===r&&(Er=Go())===r&&(Er=nu())===r&&(Er=xe())===r&&(Er=qs())===r&&(Er=fo())===r&&(Er=Ks())===r&&(Er=Vo())===r&&(Er=eu()),Er!==r)if((vt=Tt())!==r)if((it=rc())===r&&(it=null),it!==r)if(st=n,(Xa(cr,0,it)?r:void 0)!==r)if((Et=Tt())!==r)if(($t=Du())!==r)if((en=Tt())!==r){if(hn=[],ql.test(t.charAt(n))?(ds=t.charAt(n),n++):(ds=r,or===0&&Kr(Ec)),ds!==r)for(;ds!==r;)hn.push(ds),ql.test(t.charAt(n))?(ds=t.charAt(n),n++):(ds=r,or===0&&Kr(Ec));else hn=r;if(hn!==r)if((ds=Tt())!==r){if(Ns=n,(Fs=gu())!==r)if((ue=Tt())!==r){if(ee=[],ql.test(t.charAt(n))?(ie=t.charAt(n),n++):(ie=r,or===0&&Kr(Ec)),ie!==r)for(;ie!==r;)ee.push(ie),ql.test(t.charAt(n))?(ie=t.charAt(n),n++):(ie=r,or===0&&Kr(Ec));else ee=r;ee===r?(n=Ns,Ns=r):Ns=Fs=[Fs,ue,ee]}else n=Ns,Ns=r;else n=Ns,Ns=r;Ns===r&&(Ns=null),Ns!==r&&(Fs=Tt())!==r&&(ue=Hu())!==r&&(ee=Tt())!==r?((ie=Xc())===r&&(ie=null),ie===r?(n=B,B=r):(st=B,ro=Ns,$e=ie,cr={dataType:Er,length:parseInt(hn.join(""),10),scale:ro&&parseInt(ro[2].join(""),10),parentheses:!0,suffix:$e},B=cr)):(n=B,B=r)}else n=B,B=r;else n=B,B=r}else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;var ro,$e;if(B===r){if(B=n,(cr=vl())===r&&(cr=null),cr!==r)if(Tt()!==r)if((Er=Ru())===r&&(Er=Je())===r&&(Er=Go())===r&&(Er=nu())===r&&(Er=xe())===r&&(Er=qs())===r&&(Er=fo())===r&&(Er=Ks())===r&&(Er=Vo())===r&&(Er=eu()),Er!==r)if((vt=rc())===r&&(vt=null),vt!==r)if(st=n,(it=(it=Xa(cr,0,vt))?r:void 0)!==r)if(Tt()!==r){if(Et=[],ql.test(t.charAt(n))?($t=t.charAt(n),n++):($t=r,or===0&&Kr(Ec)),$t!==r)for(;$t!==r;)Et.push($t),ql.test(t.charAt(n))?($t=t.charAt(n),n++):($t=r,or===0&&Kr(Ec));else Et=r;Et!==r&&($t=Tt())!==r?((en=Xc())===r&&(en=null),en===r?(n=B,B=r):(st=B,cr=(function(Gs,iu,Oo,wu,Ea){return{dataType:iu,length:parseInt(wu.join(""),10),suffix:Ea}})(0,Er,0,Et,en),B=cr)):(n=B,B=r)}else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;B===r&&(B=n,(cr=vl())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=Ru())===r&&(Er=Je())===r&&(Er=Go())===r&&(Er=nu())===r&&(Er=xe())===r&&(Er=qs())===r&&(Er=fo())===r&&(Er=Ks())===r&&(Er=Vo())===r&&(Er=eu())===r&&(Er=(function(){var Gs,iu,Oo,wu;return Gs=n,t.substr(n,3).toLowerCase()==="bit"?(iu=t.substr(n,3),n+=3):(iu=r,or===0&&Kr(jt)),iu===r?(n=Gs,Gs=r):(Oo=n,or++,wu=Le(),or--,wu===r?Oo=void 0:(n=Oo,Oo=r),Oo===r?(n=Gs,Gs=r):(st=Gs,Gs=iu="BIT")),Gs})())===r&&(Er=(function(){var Gs,iu,Oo,wu;return Gs=n,t.substr(n,5).toLowerCase()==="money"?(iu=t.substr(n,5),n+=5):(iu=r,or===0&&Kr(Us)),iu===r?(n=Gs,Gs=r):(Oo=n,or++,wu=Le(),or--,wu===r?Oo=void 0:(n=Oo,Oo=r),Oo===r?(n=Gs,Gs=r):(st=Gs,Gs=iu="MONEY")),Gs})())===r&&(Er=(function(){var Gs,iu,Oo,wu;return Gs=n,t.substr(n,10).toLowerCase()==="smallmoney"?(iu=t.substr(n,10),n+=10):(iu=r,or===0&&Kr(ol)),iu===r?(n=Gs,Gs=r):(Oo=n,or++,wu=Le(),or--,wu===r?Oo=void 0:(n=Oo,Oo=r),Oo===r?(n=Gs,Gs=r):(st=Gs,Gs=iu="SMALLMONEY")),Gs})()),Er!==r&&(vt=Tt())!==r?((it=rc())===r&&(it=null),it===r?(n=B,B=r):(st=n,(Xa(cr,0,it)?r:void 0)!==r&&(Et=Tt())!==r?(($t=Xc())===r&&($t=null),$t!==r&&(en=Tt())!==r?(st=B,cr=(function(Gs,iu,Oo,wu){return{dataType:iu,suffix:wu}})(0,Er,0,$t),B=cr):(n=B,B=r)):(n=B,B=r))):(n=B,B=r)):(n=B,B=r))}return B})())===r&&(R=(function(){var B=n,cr,Er,vt,it,Et,$t,en,hn,ds,Ns;if((cr=vl())===r&&(cr=null),cr!==r)if(Tt()!==r)if((Er=oa())===r&&(Er=Nu())===r&&(Er=le()),Er!==r)if(Tt()!==r)if((vt=rc())===r&&(vt=null),vt!==r)if(st=n,(Xa(cr,0,vt)?r:void 0)!==r)if(Du()!==r)if(Tt()!==r){if(it=[],ql.test(t.charAt(n))?(Et=t.charAt(n),n++):(Et=r,or===0&&Kr(Ec)),Et!==r)for(;Et!==r;)it.push(Et),ql.test(t.charAt(n))?(Et=t.charAt(n),n++):(Et=r,or===0&&Kr(Ec));else it=r;if(it!==r)if((Et=Tt())!==r){if($t=n,(en=gu())!==r)if((hn=Tt())!==r){if(ds=[],ql.test(t.charAt(n))?(Ns=t.charAt(n),n++):(Ns=r,or===0&&Kr(Ec)),Ns!==r)for(;Ns!==r;)ds.push(Ns),ql.test(t.charAt(n))?(Ns=t.charAt(n),n++):(Ns=r,or===0&&Kr(Ec));else ds=r;ds===r?(n=$t,$t=r):$t=en=[en,hn,ds]}else n=$t,$t=r;else n=$t,$t=r;$t===r&&($t=null),$t!==r&&(en=Tt())!==r&&(hn=Hu())!==r?(st=B,cr={dataType:Er,length:parseInt(it.join(""),10),parentheses:!0},B=cr):(n=B,B=r)}else n=B,B=r;else n=B,B=r}else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;else n=B,B=r;return B===r&&(B=n,(cr=vl())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=Jo())===r&&(Er=(function(){var Fs,ue,ee,ie;return Fs=n,t.substr(n,13).toLowerCase()==="smalldatetime"?(ue=t.substr(n,13),n+=13):(ue=r,or===0&&Kr(Bn)),ue===r?(n=Fs,Fs=r):(ee=n,or++,ie=Le(),or--,ie===r?ee=void 0:(n=ee,ee=r),ee===r?(n=Fs,Fs=r):(st=Fs,Fs=ue="SMALLDATETIME")),Fs})())===r&&(Er=oa())===r&&(Er=Bu())===r&&(Er=Nu())===r&&(Er=le())===r&&(Er=vu()),Er!==r&&Tt()!==r?((vt=rc())===r&&(vt=null),vt===r?(n=B,B=r):(st=n,(Xa(cr,0,vt)?r:void 0)===r?(n=B,B=r):(st=B,cr=cc(0,Er),B=cr))):(n=B,B=r)):(n=B,B=r)),B})())===r&&(R=(function(){var B=n,cr,Er,vt;return(cr=vl())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=(function(){var it,Et,$t,en;return it=n,t.substr(n,4).toLowerCase()==="json"?(Et=t.substr(n,4),n+=4):(Et=r,or===0&&Kr(c0)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="JSON")),it})())!==r&&Tt()!==r?((vt=rc())===r&&(vt=null),vt===r?(n=B,B=r):(st=n,(Xa(cr,0,vt)?r:void 0)===r?(n=B,B=r):(st=B,cr=cc(0,Er),B=cr))):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt;return(cr=vl())===r&&(cr=null),cr!==r&&Tt()!==r?((Er=(function(){var it,Et,$t,en;return it=n,t.substr(n,8).toLowerCase()==="tinytext"?(Et=t.substr(n,8),n+=8):(Et=r,or===0&&Kr(C)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="TINYTEXT")),it})())===r&&(Er=(function(){var it,Et,$t,en;return it=n,t.substr(n,4).toLowerCase()==="text"?(Et=t.substr(n,4),n+=4):(Et=r,or===0&&Kr(Kn)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="TEXT")),it})())===r&&(Er=(function(){var it,Et,$t,en;return it=n,t.substr(n,5).toLowerCase()==="ntext"?(Et=t.substr(n,5),n+=5):(Et=r,or===0&&Kr(zi)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="NTEXT")),it})())===r&&(Er=(function(){var it,Et,$t,en;return it=n,t.substr(n,10).toLowerCase()==="mediumtext"?(Et=t.substr(n,10),n+=10):(Et=r,or===0&&Kr(Kl)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="MEDIUMTEXT")),it})())===r&&(Er=(function(){var it,Et,$t,en;return it=n,t.substr(n,8).toLowerCase()==="longtext"?(Et=t.substr(n,8),n+=8):(Et=r,or===0&&Kr(zl)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="LONGTEXT")),it})()),Er!==r&&Tt()!==r?((vt=rc())===r&&(vt=null),vt===r?(n=B,B=r):(st=n,(Xa(cr,0,vt)?r:void 0)===r?(n=B,B=r):(st=B,cr=h0(0,Er),B=cr))):(n=B,B=r)):(n=B,B=r),B})())===r&&(R=(function(){var B=n,cr,Er,vt;return(cr=vl())===r&&(cr=null),cr!==r&&Tt()!==r&&(Er=(function(){var it,Et,$t,en;return it=n,t.substr(n,16).toLowerCase()==="uniqueidentifier"?(Et=t.substr(n,16),n+=16):(Et=r,or===0&&Kr(wa)),Et===r?(n=it,it=r):($t=n,or++,en=Le(),or--,en===r?$t=void 0:(n=$t,$t=r),$t===r?(n=it,it=r):(st=it,it=Et="UNIQUEIDENTIFIER")),it})())!==r&&Tt()!==r?((vt=rc())===r&&(vt=null),vt===r?(n=B,B=r):(st=n,(Xa(cr,0,vt)?r:void 0)===r?(n=B,B=r):(st=B,cr=h0(0,Er),B=cr))):(n=B,B=r),B})()),R}function Xc(){var R,B,cr;return R=n,(B=hu())===r&&(B=null),B!==r&&Tt()!==r?((cr=(function(){var Er,vt,it,Et;return Er=n,t.substr(n,8).toLowerCase()==="zerofill"?(vt=t.substr(n,8),n+=8):(vt=r,or===0&&Kr(x0)),vt===r?(n=Er,Er=r):(it=n,or++,Et=Le(),or--,Et===r?it=void 0:(n=it,it=r),it===r?(n=Er,Er=r):(st=Er,Er=vt="ZEROFILL")),Er})())===r&&(cr=null),cr===r?(n=R,R=r):(st=R,R=B=(function(Er,vt){let it=[];return Er&&it.push(Er),vt&&it.push(vt),it})(B,cr))):(n=R,R=r),R}let qa={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CROSS:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,FALSE:!0,FROM:!0,FULL:!0,FOR:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,KEY:!0,LEFT:!0,LIKE:!0,LIMIT:!0,LOW_PRIORITY:!0,NOT:!0,NULL:!0,NOCHECK:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,READ:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,VALUES:!0,WITH:!0,WHEN:!0,WHERE:!0,WRITE:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0,PIVOT:!0,UNPIVOT:!0};function qo(){return Ce.includeLocations?{loc:Wc(st,n)}:{}}function Oc(R,B){return{type:"unary_expr",operator:R,expr:B}}function Yo(R,B,cr){return{type:"binary_expr",operator:R,left:B,right:cr}}function Xo(R){let B=To(9007199254740991);return!(To(R)<B)}function $l(R,B,cr=3){let Er=[R];for(let vt=0;vt<B.length;vt++)delete B[vt][cr].tableList,delete B[vt][cr].columnList,Er.push(B[vt][cr]);return Er}function m0(R,B){let cr=R;for(let Er=0;Er<B.length;Er++)cr=Yo(B[Er][1],cr,B[Er][3]);return cr}function G0(R){return Xv[R]||R||null}function va(R){let B=new Set;for(let cr of R.keys()){let Er=cr.split("::");if(!Er){B.add(cr);break}Er&&Er[1]&&(Er[1]=G0(Er[1])),B.add(Er.join("::"))}return Array.from(B)}let Nf=[],Xu=new Set,ot=new Set,Xv={};if((Ie=ge())!==r&&n===t.length)return Ie;throw Ie!==r&&n<t.length&&Kr({type:"end"}),Mb(Ra,xa<t.length?t.charAt(xa):null,xa<t.length?Wc(xa,xa+1):Wc(xa,xa))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:E0},ge=E0,Dn=Wn("IF",!0),Pn=Wn("EXTENSION",!0),Ae=Wn("SCHEMA",!0),ou=Wn("VERSION",!0),Hs=Wn("CASCADED",!0),Uo=Wn("LOCAL",!0),Ps=Wn("CHECK",!0),pe=Wn("OPTION",!1),_o=Wn("check_option",!0),Gi=Wn("security_barrier",!0),mi=Wn("security_invoker",!0),Fi=Wn("TYPE",!0),T0=Wn("DOMAIN",!0),dl=Wn("INCREMENT",!0),Gl=Wn("MINVALUE",!0),Fl=function(L,M){return{resource:"sequence",prefix:L.toLowerCase(),value:M}},nc=Wn("NO",!0),xc=Wn("MAXVALUE",!0),I0=Wn("START",!0),ji=Wn("CACHE",!0),af=Wn("CYCLE",!0),qf=Wn("OWNED",!0),Uc=Wn("NONE",!0),wc=Wn("NULLS",!0),Ll=Wn("FIRST",!0),jl=Wn("LAST",!0),Oi=Wn("AUTO_INCREMENT",!0),bb=Wn("UNIQUE",!0),Vi=Wn("KEY",!0),zc=Wn("PRIMARY",!0),kc=Wn("COLUMN_FORMAT",!0),vb=Wn("FIXED",!0),Zc=Wn("DYNAMIC",!0),nl=Wn("DEFAULT",!0),Xf=Wn("STORAGE",!0),gl=Wn("DISK",!0),lf=Wn("MEMORY",!0),Jc=Wn("CASCADE",!0),Qc=Wn("RESTRICT",!0),gv=Wn("OUT",!0),g0=Wn("VARIADIC",!0),Ki=Wn("INOUT",!0),Pb=Wn("AGGREGATE",!0),ei=Wn("FUNCTION",!0),pb=Wn("OWNER",!0),j0=Wn("CURRENT_ROLE",!0),B0=Wn("CURRENT_USER",!0),Mc=Wn("SESSION_USER",!0),Cl=Wn("ALGORITHM",!0),$u=Wn("INSTANT",!0),r0=Wn("INPLACE",!0),zn=Wn("COPY",!0),Ss=Wn("LOCK",!0),te=Wn("SHARED",!0),ce=Wn("EXCLUSIVE",!0),He=Wn("PRIMARY KEY",!0),Ue=Wn("FOREIGN KEY",!0),Qe=Wn("MATCH FULL",!0),uo=Wn("MATCH PARTIAL",!0),Ao=Wn("MATCH SIMPLE",!0),Pu=Wn("SET NULL",!0),Ca=Wn("NO ACTION",!0),ku=Wn("SET DEFAULT",!0),ca=Wn("TRIGGER",!0),na=Wn("BEFORE",!0),Qa=Wn("AFTER",!0),cf=Wn("INSTEAD OF",!0),ri=Wn("ON",!0),t0=Wn("EXECUTE",!0),n0=Wn("PROCEDURE",!0),Dc=Wn("OF",!0),s0=Wn("NOT",!0),Rv=Wn("DEFERRABLE",!0),nv=Wn("INITIALLY IMMEDIATE",!0),sv=Wn("INITIALLY DEFERRED",!0),ev=Wn("FOR",!0),yc=Wn("EACH",!0),$c=Wn("ROW",!0),Sf=Wn("STATEMENT",!0),R0=Wn("CHARACTER",!0),Rl=Wn("SET",!0),ff=Wn("CHARSET",!0),Vf=Wn("COLLATE",!0),Vv=Wn("AVG_ROW_LENGTH",!0),db=Wn("KEY_BLOCK_SIZE",!0),Of=Wn("MAX_ROWS",!0),Pc=Wn("MIN_ROWS",!0),H0=Wn("STATS_SAMPLE_PAGES",!0),bf=Wn("CONNECTION",!0),Lb=Wn("COMPRESSION",!0),Fa=Wn("'",!1),Kf=Wn("ZLIB",!0),Nv=Wn("LZ4",!0),Gb=Wn("ENGINE",!0),hc=Wn("IN",!0),Bl=Wn("ACCESS SHARE",!0),sl=Wn("ROW SHARE",!0),sc=Wn("ROW EXCLUSIVE",!0),Y0=Wn("SHARE UPDATE EXCLUSIVE",!0),N0=Wn("SHARE ROW EXCLUSIVE",!0),ov=Wn("ACCESS EXCLUSIVE",!0),Fb=Wn("SHARE",!0),e0=Wn("MODE",!0),Cb=Wn("NOWAIT",!0),_0=Wn("TABLES",!0),zf=Wn("PREPARE",!0),je=Wn(";",!1),o0=Wn("(",!1),xi=Wn(")",!1),xf=Wn("PERCENT",!0),Zf=Wn("exclude",!0),W0=Wn("OUTFILE",!0),jb=Wn("DUMPFILE",!0),Uf=Wn("BTREE",!0),u0=Wn("HASH",!0),wb=Wn("GIST",!0),Ui=Wn("GIN",!0),uv=Wn("WITH",!0),yb=Wn("PARSER",!0),hb=Wn("VISIBLE",!0),Kv=Wn("INVISIBLE",!0),Gc=function(L,M){return M.unshift(L),M.forEach(q=>{let{table:rr,as:Dr}=q;pi[rr]=rr,Dr&&(pi[Dr]=rr),(function(Xr){let Jr=Fu(Xr);Xr.clear(),Jr.forEach(Mt=>Xr.add(Mt))})(Hr)}),M},_v=Wn("ROWCOUNT",!0),kf=Wn("TIMELIMIT",!0),vf=Wn("=>",!1),ki=Wn("GENERATOR",!0),Hl=Wn("LATERAL",!0),Eb=Wn("TABLESAMPLE",!0),Bb=Wn("REPEATABLE",!0),pa=Wn("CROSS",!0),wl=Wn("PRECEDING",!0),Nl=Wn("RANGE",!0),Sv=Wn("FOLLOWING",!0),Hb=Wn("CURRENT",!0),Jf=Wn("UNBOUNDED",!0),pf=Wn("=",!1),Yb=Wn("DO",!0),av=Wn("NOTHING",!0),iv=Wn("CONFLICT",!0),a0=function(L,M){return Aa(L,M)},_l=Wn("!",!1),Yl=Wn(">=",!1),Ab=Wn(">",!1),Mf=Wn("<=",!1),Wb=Wn("<>",!1),Df=Wn("<",!1),mb=Wn("!=",!1),i0=Wn("SIMILAR",!0),ft=Wn("ESCAPE",!0),tn=Wn("+",!1),_n=Wn("-",!1),En=Wn("*",!1),Os=Wn("/",!1),gs=Wn("%",!1),Ys=Wn("||",!1),Te=Wn("$",!1),ye=Wn("~",!1),Be=Wn("?|",!1),io=Wn("?&",!1),Ro=Wn("?",!1),So=Wn("#-",!1),uu=Wn("#>>",!1),ko=Wn("#>",!1),yu=Wn("@>",!1),au=Wn("<@",!1),Iu=Wn("E",!0),mu=function(L){return{type:"default",value:L}},Ju=function(L){return ho[L.toUpperCase()]===!0},ua=Wn('"',!1),Sa=/^[^"]/,ma=Eu(['"'],!0,!1),Bi=/^[^']/,sa=Eu(["'"],!0,!1),di=Wn("`",!1),Hi=/^[^`]/,S0=Eu(["`"],!0,!1),l0=/^[A-Za-z0-9_\u4E00-\u9FA5]/,Ov=Eu([["A","Z"],["a","z"],["0","9"],"_",["\u4E00","\u9FA5"]],!1,!1),lv=/^[A-Za-z0-9_\-$\u4E00-\u9FA5]/,fi=Eu([["A","Z"],["a","z"],["0","9"],"_","-","$",["\u4E00","\u9FA5"]],!1,!1),Wl=Wn(":",!1),ec=Wn("OVER",!0),Fc=Wn("FILTER",!0),xv=Wn("FIRST_VALUE",!0),lp=Wn("LAST_VALUE",!0),Uv=Wn("ROW_NUMBER",!0),$f=Wn("DENSE_RANK",!0),Tb=Wn("RANK",!0),cp=Wn("LAG",!0),c0=Wn("LEAD",!0),q0=Wn("NTH_VALUE",!0),df=Wn("IGNORE",!0),f0=Wn("RESPECT",!0),b0=Wn("LISTAGG",!0),Pf=Wn("percentile_cont",!0),Sp=Wn("percentile_disc",!0),kv=Wn("within",!0),Op=Wn("mode",!0),fp=Wn("BOTH",!0),oc=Wn("LEADING",!0),uc=Wn("TRAILING",!0),qb=Wn("trim",!0),Gf=Wn("INPUT",!0),zv=Wn("PATH",!0),Mv=Wn("OUTER",!0),Zv=Wn("RECURSIVE",!0),bp=Wn("POSITION",!0),Ib=Wn("now",!0),Dv=Wn("at",!0),vp=Wn("zone",!0),Jv=Wn("FLATTEN",!0),Xb=Wn("parse_json",!0),pp=Wn("CENTURY",!0),xp=Wn("DAY",!0),cv=Wn("DATE",!0),Up=Wn("DECADE",!0),Xp=Wn("DOW",!0),Qv=Wn("DOY",!0),Vp=Wn("EPOCH",!0),dp=Wn("HOUR",!0),Kp=Wn("ISODOW",!0),ld=Wn("ISOYEAR",!0),Lp=Wn("MICROSECONDS",!0),Cp=Wn("MILLENNIUM",!0),wp=Wn("MILLISECONDS",!0),gb=Wn("MINUTE",!0),O0=Wn("MONTH",!0),v0=Wn("QUARTER",!0),ac=Wn("SECOND",!0),Rb=Wn("TIMEZONE",!0),Ff=Wn("TIMEZONE_HOUR",!0),kp=Wn("TIMEZONE_MINUTE",!0),Mp=Wn("WEEK",!0),rp=Wn("YEAR",!0),yp=Wn("NTILE",!0),hp=/^[\n]/,Ep=Eu([` +`],!1,!1),Nb=/^[^"\\\0-\x1F\x7F]/,Qf=Eu(['"',"\\",["\0",""],"\x7F"],!0,!1),_b=/^[^'\\]/,Ap=Eu(["'","\\"],!0,!1),Dp=Wn("\\'",!1),$v=Wn('\\"',!1),$p=Wn("\\\\",!1),Pp=Wn("\\/",!1),Pv=Wn("\\b",!1),Gp=Wn("\\f",!1),Fp=Wn("\\n",!1),mp=Wn("\\r",!1),zp=Wn("\\t",!1),Zp=Wn("\\u",!1),Gv=Wn("\\",!1),tp=Wn("''",!1),Fv=Wn('""',!1),yl=/^[\n\r]/,jc=Eu([` +`,"\r"],!1,!1),fv=Wn(".",!1),Sl=/^[0-9]/,Ol=Eu([["0","9"]],!1,!1),np=/^[0-9a-fA-F]/,bv=Eu([["0","9"],["a","f"],["A","F"]],!1,!1),ql=/^[eE]/,Ec=Eu(["e","E"],!1,!1),Jp=/^[+\-]/,Qp=Eu(["+","-"],!1,!1),sp=Wn("NULL",!0),jv=Wn("NOT NULL",!0),Tp=Wn("TRUE",!0),rd=Wn("TO",!0),jp=Wn("TOP",!0),Ip=Wn("FALSE",!0),td=Wn("SHOW",!0),nd=Wn("DROP",!0),Bp=Wn("USE",!0),Hp=Wn("ALTER",!0),gp=Wn("SELECT",!0),sd=Wn("UPDATE",!0),ed=Wn("CREATE",!0),Yp=Wn("TEMPORARY",!0),od=Wn("TEMP",!0),ud=Wn("DELETE",!0),Rp=Wn("INSERT",!0),O=Wn("REPLACE",!0),ps=Wn("RETURNING",!0),Bv=Wn("RENAME",!0),Lf=Wn("PARTITION",!0),Hv=Wn("INTO",!0),on=Wn("FROM",!0),zs=Wn("AS",!0),Bc=Wn("TABLE",!0),vv=Wn("DATABASE",!0),ep=Wn("SEQUENCE",!0),Rs=Wn("TABLESPACE",!0),Np=Wn("DEALLOCATE",!0),Wp=Wn("LEFT",!0),cd=Wn("RIGHT",!0),Vb=Wn("FULL",!0),_=Wn("INNER",!0),Ls=Wn("JOIN",!0),pv=Wn("UNION",!0),Cf=Wn("VALUES",!0),dv=Wn("USING",!0),Qt=Wn("WHERE",!0),Xs=Wn("GROUP",!0),ic=Wn("BY",!0),op=Wn("ORDER",!0),Kb=Wn("HAVING",!0),ys=Wn("QUALIFY",!0),_p=Wn("WINDOW",!0),Yv=Wn("LIMIT",!0),Lv=Wn("OFFSET",!0),Wv=Wn("ASC",!0),zb=Wn("DESC",!0),wf=Wn("ALL",!0),qv=Wn("DISTINCT",!0),Cv=Wn("BETWEEN",!0),rb=Wn("IS",!0),tb=Wn("LIKE",!0),I=Wn("ILIKE",!0),us=Wn("EXISTS",!0),Sb=Wn("REGEXP",!0),xl=Wn("AND",!0),nb=Wn("OR",!0),zt=Wn("ARRAY",!0),$s=Wn("ARRAY_AGG",!0),ja=Wn("STRING_AGG",!0),Ob=Wn("COUNT",!0),jf=Wn("GROUP_CONCAT",!0),is=Wn("MAX",!0),el=Wn("MIN",!0),Ti=Wn("SUM",!0),wv=Wn("AVG",!0),yf=Wn("EXTRACT",!0),X0=Wn("CALL",!0),p0=Wn("CASE",!0),up=Wn("WHEN",!0),xb=Wn("THEN",!0),Zb=Wn("ELSE",!0),yv=Wn("END",!0),Jb=Wn("CAST",!0),hv=Wn("TRY_CAST",!0),h=Wn("BINARY",!0),ss=Wn("VARBINARY",!0),Xl=Wn("BOOL",!0),d0=Wn("BOOLEAN",!0),Bf=Wn("CHAR",!0),jt=Wn("VARCHAR",!0),Us=Wn("NUMBER",!0),ol=Wn("NUMERIC",!0),sb=Wn("DECIMAL",!0),eb=Wn("STRING",!0),p=Wn("SIGNED",!0),ns=Wn("UNSIGNED",!0),Vl=Wn("INT",!0),Hc=Wn("BYTEINT",!0),Ub=Wn("ZEROFILL",!0),Ft=Wn("INTEGER",!0),xs=Wn("JSON",!0),Li=Wn("JSONB",!0),Ta=Wn("GEOMETRY",!0),x0=Wn("GEOGRAPHY",!0),Zn=Wn("SMALLINT",!0),kb=Wn("SERIAL",!0),U0=Wn("TINYINT",!0),C=Wn("TINYTEXT",!0),Kn=Wn("TEXT",!0),zi=Wn("MEDIUMTEXT",!0),Kl=Wn("LONGTEXT",!0),zl=Wn("BIGINT",!0),Ot=Wn("ENUM",!0),hs=Wn("FLOAT",!0),Yi=Wn("FLOAT4",!0),hl=Wn("FLOAT8",!0),L0=Wn("DOUBLE",!0),Bn=Wn("BIGSERIAL",!0),Qb=Wn("REAL",!0),C0=Wn("DATETIME",!0),Hf=Wn("ROWS",!0),k0=Wn("TIME",!0),M0=Wn("TIMESTAMP",!0),Wi=Wn("TIMESTAMP_TZ",!0),wa=Wn("TIMESTAMP_NTZ",!0),Oa=Wn("TRUNCATE",!0),ti=Wn("USER",!0),We=Wn("UUID",!0),ob=Wn("OID",!0),V0=Wn("REGCLASS",!0),hf=Wn("REGCOLLATION",!0),Ef=Wn("REGCONFIG",!0),K0=Wn("REGDICTIONARY",!0),Af=Wn("REGNAMESPACE",!0),El=Wn("REGOPER",!0),w0=Wn("REGOPERATOR",!0),ul=Wn("REGPROC",!0),Ye=Wn("REGPROCEDURE",!0),mf=Wn("REGROLE",!0),z0=Wn("REGTYPE",!0),ub=Wn("CURRENT_DATE",!0),Su=Wn("INTERVAL",!0),Al=Wn("MM",!0),D0=Wn("MON",!0),Ac=Wn("MONS",!0),mc=Wn("MONTHS",!0),Tc=Wn("W",!0),y0=Wn("WK",!0),bi=Wn("WEEKOFYEAR",!0),Yc=Wn("WOY",!0),Z0=Wn("WY",!0),lc=Wn("WEEKS",!0),Ic=Wn("CURRENT_TIME",!0),ab=Wn("CURRENT_TIMESTAMP",!0),J0=Wn("SYSTEM_USER",!0),ml=Wn("GLOBAL",!0),Ul=Wn("SESSION",!0),aa=Wn("PERSIST",!0),Tf=Wn("PERSIST_ONLY",!0),If=Wn("PIVOT",!0),Tl=Wn("UNPIVOT",!0),Ci=Wn("VIEW",!0),Q0=Wn("@",!1),ib=Wn("@@",!1),fa=Wn("$$",!1),Zi=Wn("return",!0),rf=Wn(":=",!1),Ii=Wn("::",!1),Ge=Wn("DUAL",!0),$0=Wn("ADD",!0),gf=Wn("COLUMN",!0),Zl=Wn("INDEX",!0),Xa=Wn("FULLTEXT",!0),cc=Wn("SPATIAL",!0),h0=Wn("COMMENT",!0),n=Wn("CONSTRAINT",!0),st=Wn("CONCURRENTLY",!0),gi=Wn("REFERENCES",!0),xa=Wn("SQL_CALC_FOUND_ROWS",!0),Ra=Wn("SQL_CACHE",!0),or=Wn("SQL_NO_CACHE",!0),Nt=Wn("SQL_SMALL_RESULT",!0),ju=Wn("SQL_BIG_RESULT",!0),Il=Wn("SQL_BUFFER_RESULT",!0),Wc=Wn(",",!1),Kr=Wn("[",!1),Mb=Wn("]",!1),fc=Wn("->",!1),qi=Wn("->>",!1),Ji=Wn("&&",!1),Ri=Wn("/*",!1),qu=Wn("*/",!1),Se=Wn("--",!1),tf=Wn("//",!1),Qu={type:"any"},P0=/^[ \t\n\r]/,gc=Eu([" "," ",` +`,"\r"],!1,!1),al=/^[^$]/,Jl=Eu(["$"],!0,!1),qc=function(L){return{dataType:L}},Ba=Wn("WITHOUT",!0),Qi=Wn("ZONE",!0),ya=function(L){return{dataType:L}},l=0,dn=0,Ql=[{line:1,column:1}],vi=0,Va=[],lt=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function Wn(L,M){return{type:"literal",text:L,ignoreCase:M}}function Eu(L,M,q){return{type:"class",parts:L,inverted:M,ignoreCase:q}}function ia(L){var M,q=Ql[L];if(q)return q;for(M=L-1;!Ql[M];)M--;for(q={line:(q=Ql[M]).line,column:q.column};M<L;)t.charCodeAt(M)===10?(q.line++,q.column=1):q.column++,M++;return Ql[L]=q,q}function ve(L,M){var q=ia(L),rr=ia(M);return{start:{offset:L,line:q.line,column:q.column},end:{offset:M,line:rr.line,column:rr.column}}}function Jt(L){l<vi||(l>vi&&(vi=l,Va=[]),Va.push(L))}function nf(L,M,q){return new go(go.buildMessage(L,M),L,M,q)}function E0(){var L,M;return L=l,g()!==r&&(M=(function(){var q,rr,Dr,Xr,Jr,Mt,nn,On;if(q=l,(rr=oi())!==r){for(Dr=[],Xr=l,(Jr=g())!==r&&(Mt=fd())!==r&&(nn=g())!==r&&(On=oi())!==r?Xr=Jr=[Jr,Mt,nn,On]:(l=Xr,Xr=r);Xr!==r;)Dr.push(Xr),Xr=l,(Jr=g())!==r&&(Mt=fd())!==r&&(nn=g())!==r&&(On=oi())!==r?Xr=Jr=[Jr,Mt,nn,On]:(l=Xr,Xr=r);Dr===r?(l=q,q=r):(dn=q,rr=(function(fr,os){let Es=fr&&fr.ast||fr,ls=os&&os.length&&os[0].length>=4?[Es]:Es;for(let ws=0;ws<os.length;ws++)os[ws][3]&&os[ws][3].length!==0&&ls.push(os[ws][3]&&os[ws][3].ast||os[ws][3]);return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:ls}})(rr,Dr),q=rr)}else l=q,q=r;return q})())!==r?(dn=L,L=M):(l=L,L=r),L}function kl(){var L;return(L=(function(){var M=l,q,rr,Dr,Xr,Jr,Mt,nn,On;(q=hu())!==r&&g()!==r&&(rr=Rc())!==r&&g()!==r&&(Dr=Pr())!==r?(dn=M,fr=q,os=rr,(Es=Dr)&&Es.forEach(ls=>Zu.add(`${fr}::${[ls.db,ls.schema].filter(Boolean).join(".")||null}::${ls.table}`)),q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:fr.toLowerCase(),keyword:os.toLowerCase(),name:Es}},M=q):(l=M,M=r);var fr,os,Es;return M===r&&(M=l,(q=hu())!==r&&g()!==r&&(rr=Do())!==r&&g()!==r?((Dr=Db())===r&&(Dr=null),Dr!==r&&g()!==r?(Xr=l,t.substr(l,2).toLowerCase()==="if"?(Jr=t.substr(l,2),l+=2):(Jr=r,lt===0&&Jt(Dn)),Jr!==r&&(Mt=g())!==r&&(nn=Tt())!==r?Xr=Jr=[Jr,Mt,nn]:(l=Xr,Xr=r),Xr===r&&(Xr=null),Xr!==r&&(Jr=g())!==r&&(Mt=nr())!==r&&(nn=g())!==r?(t.substr(l,7).toLowerCase()==="cascade"?(On=t.substr(l,7),l+=7):(On=r,lt===0&&Jt(Jc)),On===r&&(t.substr(l,8).toLowerCase()==="restrict"?(On=t.substr(l,8),l+=8):(On=r,lt===0&&Jt(Qc))),On===r&&(On=null),On===r?(l=M,M=r):(dn=M,q=(function(ls,ws,de,E,U,Z){return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:ls.toLowerCase(),keyword:ws.toLowerCase(),prefix:de,name:U,options:Z&&[{type:"origin",value:Z}]}}})(q,rr,Dr,0,Mt,On),M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r)),M})())===r&&(L=(function(){var M;return(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es,ls,ws;(rr=qs())!==r&&g()!==r?(Dr=l,(Xr=Nc())!==r&&(Jr=g())!==r&&(Mt=Bu())!==r?Dr=Xr=[Xr,Jr,Mt]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr!==r&&(Xr=g())!==r?((Jr=fo())===r&&(Jr=null),Jr!==r&&(Mt=g())!==r&&Rc()!==r&&g()!==r?((nn=Ua())===r&&(nn=null),nn!==r&&g()!==r&&(On=kt())!==r&&g()!==r?((fr=(function(){var Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts;if(Sr=l,(tt=pu())!==r)if(g()!==r)if((Ct=Yu())!==r){for(Xt=[],Vt=l,(In=g())!==r&&(Tn=Wo())!==r&&(jn=g())!==r&&(ts=Yu())!==r?Vt=In=[In,Tn,jn,ts]:(l=Vt,Vt=r);Vt!==r;)Xt.push(Vt),Vt=l,(In=g())!==r&&(Tn=Wo())!==r&&(jn=g())!==r&&(ts=Yu())!==r?Vt=In=[In,Tn,jn,ts]:(l=Vt,Vt=r);Xt!==r&&(Vt=g())!==r&&(In=fu())!==r?(dn=Sr,tt=Wr(Ct,Xt),Sr=tt):(l=Sr,Sr=r)}else l=Sr,Sr=r;else l=Sr,Sr=r;else l=Sr,Sr=r;return Sr})())===r&&(fr=null),fr!==r&&g()!==r?((os=(function(){var Sr,tt,Ct,Xt,Vt,In,Tn,jn;if(Sr=l,(tt=bu())!==r){for(Ct=[],Xt=l,(Vt=g())===r?(l=Xt,Xt=r):((In=Wo())===r&&(In=null),In!==r&&(Tn=g())!==r&&(jn=bu())!==r?Xt=Vt=[Vt,In,Tn,jn]:(l=Xt,Xt=r));Xt!==r;)Ct.push(Xt),Xt=l,(Vt=g())===r?(l=Xt,Xt=r):((In=Wo())===r&&(In=null),In!==r&&(Tn=g())!==r&&(jn=bu())!==r?Xt=Vt=[Vt,In,Tn,jn]:(l=Xt,Xt=r));Ct===r?(l=Sr,Sr=r):(dn=Sr,tt=Wr(tt,Ct),Sr=tt)}else l=Sr,Sr=r;return Sr})())===r&&(os=null),os!==r&&g()!==r?((Es=Nu())===r&&(Es=Bu()),Es===r&&(Es=null),Es!==r&&g()!==r?((ls=yi())===r&&(ls=null),ls!==r&&g()!==r?((ws=ka())===r&&(ws=null),ws===r?(l=q,q=r):(dn=q,rr=(function(Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts,d){return Zu.add(`create::${[Vt.db,Vt.schema].filter(Boolean).join(".")||null}::${Vt.table}`),{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:Sr[0].toLowerCase(),keyword:"table",temporary:Ct&&Ct[0].toLowerCase(),if_not_exists:Xt,table:[Vt],replace:tt&&"or replace",ignore_replace:jn&&jn[0].toLowerCase(),as:ts&&ts[0].toLowerCase(),query_expr:d&&d.ast,create_definitions:In,table_options:Tn},...Mo()}})(rr,Dr,Jr,nn,On,fr,os,Es,ls,ws),q=rr)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r),q===r&&(q=l,(rr=qs())!==r&&g()!==r?(Dr=l,(Xr=Nc())!==r&&(Jr=g())!==r&&(Mt=Bu())!==r?Dr=Xr=[Xr,Jr,Mt]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr!==r&&(Xr=g())!==r?((Jr=fo())===r&&(Jr=null),Jr!==r&&(Mt=g())!==r&&Rc()!==r&&g()!==r?((nn=Ua())===r&&(nn=null),nn!==r&&g()!==r&&(On=Pr())!==r&&g()!==r&&(fr=(function Sr(){var tt,Ct;(tt=(function(){var Vt=l,In;return Ei()!==r&&g()!==r&&(In=Pr())!==r?(dn=Vt,Vt={type:"like",table:In}):(l=Vt,Vt=r),Vt})())===r&&(tt=l,pu()!==r&&g()!==r&&(Ct=Sr())!==r&&g()!==r&&fu()!==r?(dn=tt,(Xt=Ct).parentheses=!0,tt=Xt):(l=tt,tt=r));var Xt;return tt})())!==r?(dn=q,de=rr,E=Dr,U=Jr,Z=nn,xr=fr,(sr=On)&&sr.forEach(Sr=>Zu.add(`create::${[Sr.db,Sr.schema].filter(Boolean).join(".")||null}::${Sr.table}`)),rr={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:de[0].toLowerCase(),keyword:"table",temporary:U&&U[0].toLowerCase(),if_not_exists:Z,replace:E&&(E[0]+" "+E[2][0]).toUpperCase(),table:sr,like:xr}},q=rr):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r));var de,E,U,Z,sr,xr;return q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es,ls,ws,de,E,U,Z,sr,xr,Sr,tt;return(rr=qs())!==r&&g()!==r?(Dr=l,(Xr=Nc())!==r&&(Jr=g())!==r&&(Mt=Bu())!==r?Dr=Xr=[Xr,Jr,Mt]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr!==r&&(Xr=g())!==r?((Jr=La())===r&&(Jr=null),Jr!==r&&(Mt=g())!==r?(t.substr(l,7).toLowerCase()==="trigger"?(nn=t.substr(l,7),l+=7):(nn=r,lt===0&&Jt(ca)),nn!==r&&g()!==r&&(On=ne())!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="before"?(fr=t.substr(l,6),l+=6):(fr=r,lt===0&&Jt(na)),fr===r&&(t.substr(l,5).toLowerCase()==="after"?(fr=t.substr(l,5),l+=5):(fr=r,lt===0&&Jt(Qa)),fr===r&&(t.substr(l,10).toLowerCase()==="instead of"?(fr=t.substr(l,10),l+=10):(fr=r,lt===0&&Jt(cf)))),fr!==r&&g()!==r&&(os=(function(){var Ct,Xt,Vt,In,Tn,jn,ts,d;if(Ct=l,(Xt=o())!==r){for(Vt=[],In=l,(Tn=g())!==r&&(jn=Nc())!==r&&(ts=g())!==r&&(d=o())!==r?In=Tn=[Tn,jn,ts,d]:(l=In,In=r);In!==r;)Vt.push(In),In=l,(Tn=g())!==r&&(jn=Nc())!==r&&(ts=g())!==r&&(d=o())!==r?In=Tn=[Tn,jn,ts,d]:(l=In,In=r);Vt===r?(l=Ct,Ct=r):(dn=Ct,Xt=Wr(Xt,Vt),Ct=Xt)}else l=Ct,Ct=r;return Ct})())!==r&&g()!==r?(t.substr(l,2).toLowerCase()==="on"?(Es=t.substr(l,2),l+=2):(Es=r,lt===0&&Jt(ri)),Es!==r&&g()!==r&&(ls=kt())!==r&&g()!==r?(ws=l,(de=vu())!==r&&(E=g())!==r&&(U=kt())!==r?ws=de=[de,E,U]:(l=ws,ws=r),ws===r&&(ws=null),ws!==r&&(de=g())!==r?((E=(function(){var Ct=l,Xt=l,Vt,In,Tn;t.substr(l,3).toLowerCase()==="not"?(Vt=t.substr(l,3),l+=3):(Vt=r,lt===0&&Jt(s0)),Vt===r&&(Vt=null),Vt!==r&&(In=g())!==r?(t.substr(l,10).toLowerCase()==="deferrable"?(Tn=t.substr(l,10),l+=10):(Tn=r,lt===0&&Jt(Rv)),Tn===r?(l=Xt,Xt=r):Xt=Vt=[Vt,In,Tn]):(l=Xt,Xt=r),Xt!==r&&(Vt=g())!==r?(t.substr(l,19).toLowerCase()==="initially immediate"?(In=t.substr(l,19),l+=19):(In=r,lt===0&&Jt(nv)),In===r&&(t.substr(l,18).toLowerCase()==="initially deferred"?(In=t.substr(l,18),l+=18):(In=r,lt===0&&Jt(sv))),In===r?(l=Ct,Ct=r):(dn=Ct,ts=In,Xt={keyword:(jn=Xt)&&jn[0]?jn[0].toLowerCase()+" deferrable":"deferrable",args:ts&&ts.toLowerCase()},Ct=Xt)):(l=Ct,Ct=r);var jn,ts;return Ct})())===r&&(E=null),E!==r&&(U=g())!==r?((Z=(function(){var Ct=l,Xt,Vt,In;t.substr(l,3).toLowerCase()==="for"?(Xt=t.substr(l,3),l+=3):(Xt=r,lt===0&&Jt(ev)),Xt!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="each"?(Vt=t.substr(l,4),l+=4):(Vt=r,lt===0&&Jt(yc)),Vt===r&&(Vt=null),Vt!==r&&g()!==r?(t.substr(l,3).toLowerCase()==="row"?(In=t.substr(l,3),l+=3):(In=r,lt===0&&Jt($c)),In===r&&(t.substr(l,9).toLowerCase()==="statement"?(In=t.substr(l,9),l+=9):(In=r,lt===0&&Jt(Sf))),In===r?(l=Ct,Ct=r):(dn=Ct,Tn=Xt,ts=In,Xt={keyword:(jn=Vt)?`${Tn.toLowerCase()} ${jn.toLowerCase()}`:Tn.toLowerCase(),args:ts.toLowerCase()},Ct=Xt)):(l=Ct,Ct=r)):(l=Ct,Ct=r);var Tn,jn,ts;return Ct})())===r&&(Z=null),Z!==r&&g()!==r?((sr=(function(){var Ct=l,Xt;return sf()!==r&&g()!==r&&pu()!==r&&g()!==r&&(Xt=Zo())!==r&&g()!==r&&fu()!==r?(dn=Ct,Ct={type:"when",cond:Xt,parentheses:!0}):(l=Ct,Ct=r),Ct})())===r&&(sr=null),sr!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="execute"?(xr=t.substr(l,7),l+=7):(xr=r,lt===0&&Jt(t0)),xr!==r&&g()!==r?(t.substr(l,9).toLowerCase()==="procedure"?(Sr=t.substr(l,9),l+=9):(Sr=r,lt===0&&Jt(n0)),Sr===r&&(t.substr(l,8).toLowerCase()==="function"?(Sr=t.substr(l,8),l+=8):(Sr=r,lt===0&&Jt(ei))),Sr!==r&&g()!==r&&(tt=jr())!==r?(dn=q,rr=(function(Ct,Xt,Vt,In,Tn,jn,ts,d,N,H,X,lr,wr,i,b,m){return{type:"create",replace:Xt&&"or replace",constraint:Tn,location:jn&&jn.toLowerCase(),events:ts,table:N,from:H&&H[2],deferrable:X,for_each:lr,when:wr,execute:{keyword:"execute "+b.toLowerCase(),expr:m},constraint_type:In&&In.toLowerCase(),keyword:In&&In.toLowerCase(),constraint_kw:Vt&&Vt.toLowerCase(),resource:"constraint"}})(0,Dr,Jr,nn,On,fr,os,0,ls,ws,E,Z,sr,0,Sr,tt),q=rr):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es,ls,ws,de;(rr=qs())!==r&&g()!==r?(t.substr(l,9).toLowerCase()==="extension"?(Dr=t.substr(l,9),l+=9):(Dr=r,lt===0&&Jt(Pn)),Dr!==r&&g()!==r?((Xr=Ua())===r&&(Xr=null),Xr!==r&&g()!==r?((Jr=ne())===r&&(Jr=et()),Jr!==r&&g()!==r?((Mt=ap())===r&&(Mt=null),Mt!==r&&g()!==r?(nn=l,t.substr(l,6).toLowerCase()==="schema"?(On=t.substr(l,6),l+=6):(On=r,lt===0&&Jt(Ae)),On!==r&&(fr=g())!==r&&(os=ne())!==r?nn=On=[On,fr,os]:(l=nn,nn=r),nn===r&&(nn=et()),nn===r&&(nn=null),nn!==r&&(On=g())!==r?(fr=l,t.substr(l,7).toLowerCase()==="version"?(os=t.substr(l,7),l+=7):(os=r,lt===0&&Jt(ou)),os!==r&&(Es=g())!==r?((ls=ne())===r&&(ls=et()),ls===r?(l=fr,fr=r):fr=os=[os,Es,ls]):(l=fr,fr=r),fr===r&&(fr=null),fr!==r&&(os=g())!==r?(Es=l,(ls=vu())!==r&&(ws=g())!==r?((de=ne())===r&&(de=et()),de===r?(l=Es,Es=r):Es=ls=[ls,ws,de]):(l=Es,Es=r),Es===r&&(Es=null),Es===r?(l=q,q=r):(dn=q,E=Xr,U=Jr,Z=Mt,sr=nn,xr=fr,Sr=Es,rr={type:"create",keyword:Dr.toLowerCase(),if_not_exists:E,extension:Pi(U),with:Z&&Z[0].toLowerCase(),schema:Pi(sr&&sr[2].toLowerCase()),version:Pi(xr&&xr[2]),from:Pi(Sr&&Sr[2])},q=rr)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r);var E,U,Z,sr,xr,Sr;return q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es,ls,ws,de,E,U,Z,sr;(rr=qs())!==r&&g()!==r?((Dr=dc())===r&&(Dr=null),Dr!==r&&g()!==r&&(Xr=Do())!==r&&g()!==r?((Jr=Db())===r&&(Jr=null),Jr!==r&&g()!==r?((Mt=qr())===r&&(Mt=null),Mt!==r&&g()!==r&&(nn=vc())!==r&&g()!==r&&(On=kt())!==r&&g()!==r?((fr=hr())===r&&(fr=null),fr!==r&&g()!==r&&pu()!==r&&g()!==r&&(os=(function(){var H,X,lr,wr,i,b,m,x;if(H=l,(X=zu())!==r){for(lr=[],wr=l,(i=g())!==r&&(b=Wo())!==r&&(m=g())!==r&&(x=zu())!==r?wr=i=[i,b,m,x]:(l=wr,wr=r);wr!==r;)lr.push(wr),wr=l,(i=g())!==r&&(b=Wo())!==r&&(m=g())!==r&&(x=zu())!==r?wr=i=[i,b,m,x]:(l=wr,wr=r);lr===r?(l=H,H=r):(dn=H,X=Wr(X,lr),H=X)}else l=H,H=r;return H})())!==r&&g()!==r&&fu()!==r&&g()!==r?(Es=l,(ls=ap())!==r&&(ws=g())!==r&&(de=pu())!==r&&(E=g())!==r&&(U=(function(){var H,X,lr,wr,i,b,m,x;if(H=l,(X=e())!==r){for(lr=[],wr=l,(i=g())!==r&&(b=Wo())!==r&&(m=g())!==r&&(x=e())!==r?wr=i=[i,b,m,x]:(l=wr,wr=r);wr!==r;)lr.push(wr),wr=l,(i=g())!==r&&(b=Wo())!==r&&(m=g())!==r&&(x=e())!==r?wr=i=[i,b,m,x]:(l=wr,wr=r);lr===r?(l=H,H=r):(dn=H,X=Wr(X,lr),H=X)}else l=H,H=r;return H})())!==r&&(Z=g())!==r&&(sr=fu())!==r?Es=ls=[ls,ws,de,E,U,Z,sr]:(l=Es,Es=r),Es===r&&(Es=null),Es!==r&&(ls=g())!==r?(ws=l,(de=(function(){var H=l,X,lr,wr;return t.substr(l,10).toLowerCase()==="tablespace"?(X=t.substr(l,10),l+=10):(X=r,lt===0&&Jt(Rs)),X===r?(l=H,H=r):(lr=l,lt++,wr=Is(),lt--,wr===r?lr=void 0:(l=lr,lr=r),lr===r?(l=H,H=r):(dn=H,H=X="TABLESPACE")),H})())!==r&&(E=g())!==r&&(U=ne())!==r?ws=de=[de,E,U]:(l=ws,ws=r),ws===r&&(ws=null),ws!==r&&(de=g())!==r?((E=co())===r&&(E=null),E!==r&&(U=g())!==r?(dn=q,xr=rr,Sr=Dr,tt=Xr,Ct=Jr,Xt=Mt,Vt=nn,In=On,Tn=fr,jn=os,ts=Es,d=ws,N=E,rr={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:xr[0].toLowerCase(),index_type:Sr&&Sr.toLowerCase(),keyword:tt.toLowerCase(),concurrently:Ct&&Ct.toLowerCase(),index:Xt,on_kw:Vt[0].toLowerCase(),table:In,index_using:Tn,index_columns:jn,with:ts&&ts[4],with_before_where:!0,tablespace:d&&{type:"origin",value:d[2]},where:N}},q=rr):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r);var xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn,ts,d,N;return q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr;return(rr=qs())!==r&&g()!==r?((Dr=fo())===r&&(Dr=Ks()),Dr===r&&(Dr=null),Dr!==r&&g()!==r&&(function(){var os=l,Es,ls,ws;return t.substr(l,8).toLowerCase()==="sequence"?(Es=t.substr(l,8),l+=8):(Es=r,lt===0&&Jt(ep)),Es===r?(l=os,os=r):(ls=l,lt++,ws=Is(),lt--,ws===r?ls=void 0:(l=ls,ls=r),ls===r?(l=os,os=r):(dn=os,os=Es="SEQUENCE")),os})()!==r&&g()!==r?((Xr=Ua())===r&&(Xr=null),Xr!==r&&g()!==r&&(Jr=kt())!==r&&g()!==r?(Mt=l,(nn=yi())!==r&&(On=g())!==r&&(fr=bt())!==r?Mt=nn=[nn,On,fr]:(l=Mt,Mt=r),Mt===r&&(Mt=null),Mt!==r&&(nn=g())!==r?((On=(function(){var os,Es,ls,ws,de,E;if(os=l,(Es=il())!==r){for(ls=[],ws=l,(de=g())!==r&&(E=il())!==r?ws=de=[de,E]:(l=ws,ws=r);ws!==r;)ls.push(ws),ws=l,(de=g())!==r&&(E=il())!==r?ws=de=[de,E]:(l=ws,ws=r);ls===r?(l=os,os=r):(dn=os,Es=Wr(Es,ls,1),os=Es)}else l=os,os=r;return os})())===r&&(On=null),On===r?(l=q,q=r):(dn=q,rr=(function(os,Es,ls,ws,de,E){return ws.as=de&&de[2],{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:os[0].toLowerCase(),keyword:"sequence",temporary:Es&&Es[0].toLowerCase(),if_not_exists:ls,sequence:[ws],create_definitions:E}}})(rr,Dr,Xr,Jr,Mt,On),q=rr)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr;return(rr=qs())!==r&&g()!==r?(Dr=l,(Xr=Nc())!==r&&(Jr=g())!==r&&(Mt=Bu())!==r?Dr=Xr=[Xr,Jr,Mt]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr!==r&&(Xr=g())!==r?((Jr=(function(){var os=l,Es,ls,ws;return t.substr(l,8).toLowerCase()==="database"?(Es=t.substr(l,8),l+=8):(Es=r,lt===0&&Jt(vv)),Es===r?(l=os,os=r):(ls=l,lt++,ws=Is(),lt--,ws===r?ls=void 0:(l=ls,ls=r),ls===r?(l=os,os=r):(dn=os,os=Es="DATABASE")),os})())===r&&(Jr=Wa()),Jr!==r&&(Mt=g())!==r?((nn=Ua())===r&&(nn=null),nn!==r&&g()!==r&&(On=Pe())!==r&&g()!==r?((fr=(function(){var os,Es,ls,ws,de,E;if(os=l,(Es=ba())!==r){for(ls=[],ws=l,(de=g())!==r&&(E=ba())!==r?ws=de=[de,E]:(l=ws,ws=r);ws!==r;)ls.push(ws),ws=l,(de=g())!==r&&(E=ba())!==r?ws=de=[de,E]:(l=ws,ws=r);ls===r?(l=os,os=r):(dn=os,Es=Wr(Es,ls,1),os=Es)}else l=os,os=r;return os})())===r&&(fr=null),fr===r?(l=q,q=r):(dn=q,rr=(function(os,Es,ls,ws,de,E){let U=ls.toLowerCase();return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:os[0].toLowerCase(),keyword:U,if_not_exists:ws,replace:Es&&"or replace",[U]:{db:de.schema,schema:de.name},create_definitions:E}}})(rr,Dr,Jr,nn,On,fr),q=rr)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr;return(rr=qs())!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="domain"?(Dr=t.substr(l,6),l+=6):(Dr=r,lt===0&&Jt(T0)),Dr!==r&&g()!==r&&(Xr=kt())!==r&&g()!==r?((Jr=yi())===r&&(Jr=null),Jr!==r&&g()!==r&&(Mt=lu())!==r&&g()!==r?((nn=ha())===r&&(nn=null),nn!==r&&g()!==r?((On=Ha())===r&&(On=null),On!==r&&g()!==r?((fr=Da())===r&&(fr=null),fr===r?(l=q,q=r):(dn=q,rr=(function(os,Es,ls,ws,de,E,U,Z){Z&&(Z.type="constraint");let sr=[E,U,Z].filter(xr=>xr);return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:os[0].toLowerCase(),keyword:Es.toLowerCase(),domain:{schema:ls.db,name:ls.table},as:ws&&ws[0]&&ws[0].toLowerCase(),target:de,create_definitions:sr},...Mo()}})(rr,Dr,Xr,Jr,Mt,nn,On,fr),q=rr)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn;(rr=qs())!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="type"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(Fi)),Dr!==r&&g()!==r&&(Xr=kt())!==r&&g()!==r&&(Jr=yi())!==r&&g()!==r&&(Mt=ot())!==r&&g()!==r&&pu()!==r&&g()!==r?((nn=si())===r&&(nn=null),nn!==r&&g()!==r&&fu()!==r?(dn=q,On=rr,fr=Dr,os=Xr,Es=Jr,ls=Mt,(ws=nn).parentheses=!0,rr={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:On[0].toLowerCase(),keyword:fr.toLowerCase(),name:{schema:os.db,name:os.table},as:Es&&Es[0]&&Es[0].toLowerCase(),resource:ls.toLowerCase(),create_definitions:ws},...Mo()},q=rr):(l=q,q=r)):(l=q,q=r)):(l=q,q=r);var On,fr,os,Es,ls,ws;return q===r&&(q=l,(rr=qs())!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="type"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(Fi)),Dr!==r&&g()!==r&&(Xr=kt())!==r?(dn=q,rr=(function(de,E,U){return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:de[0].toLowerCase(),keyword:E.toLowerCase(),name:{schema:U.db,name:U.table}}}})(rr,Dr,Xr),q=rr):(l=q,q=r)):(l=q,q=r)),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es,ls,ws,de,E,U,Z,sr;return(rr=qs())!==r&&g()!==r?(Dr=l,(Xr=Nc())!==r&&(Jr=g())!==r&&(Mt=Bu())!==r?Dr=Xr=[Xr,Jr,Mt]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr!==r&&(Xr=g())!==r?((Jr=Ks())===r&&(Jr=fo()),Jr===r&&(Jr=null),Jr!==r&&(Mt=g())!==r?((nn=Jo())===r&&(nn=null),nn!==r&&g()!==r&&(function(){var xr=l,Sr,tt,Ct;return t.substr(l,4).toLowerCase()==="view"?(Sr=t.substr(l,4),l+=4):(Sr=r,lt===0&&Jt(Ci)),Sr===r?(l=xr,xr=r):(tt=l,lt++,Ct=Is(),lt--,Ct===r?tt=void 0:(l=tt,tt=r),tt===r?(l=xr,xr=r):(dn=xr,xr=Sr="VIEW")),xr})()!==r&&g()!==r&&(On=kt())!==r&&g()!==r?(fr=l,(os=pu())!==r&&(Es=g())!==r&&(ls=yr())!==r&&(ws=g())!==r&&(de=fu())!==r?fr=os=[os,Es,ls,ws,de]:(l=fr,fr=r),fr===r&&(fr=null),fr!==r&&(os=g())!==r?(Es=l,(ls=ap())!==r&&(ws=g())!==r&&(de=pu())!==r&&(E=g())!==r&&(U=(function(){var xr,Sr,tt,Ct,Xt,Vt,In,Tn;if(xr=l,(Sr=Ou())!==r){for(tt=[],Ct=l,(Xt=g())!==r&&(Vt=Wo())!==r&&(In=g())!==r&&(Tn=Ou())!==r?Ct=Xt=[Xt,Vt,In,Tn]:(l=Ct,Ct=r);Ct!==r;)tt.push(Ct),Ct=l,(Xt=g())!==r&&(Vt=Wo())!==r&&(In=g())!==r&&(Tn=Ou())!==r?Ct=Xt=[Xt,Vt,In,Tn]:(l=Ct,Ct=r);tt===r?(l=xr,xr=r):(dn=xr,Sr=Wr(Sr,tt),xr=Sr)}else l=xr,xr=r;return xr})())!==r&&(Z=g())!==r&&(sr=fu())!==r?Es=ls=[ls,ws,de,E,U,Z,sr]:(l=Es,Es=r),Es===r&&(Es=null),Es!==r&&(ls=g())!==r&&(ws=yi())!==r&&(de=g())!==r&&(E=Ht())!==r&&(U=g())!==r?((Z=(function(){var xr=l,Sr,tt,Ct,Xt;return(Sr=ap())!==r&&g()!==r?(t.substr(l,8).toLowerCase()==="cascaded"?(tt=t.substr(l,8),l+=8):(tt=r,lt===0&&Jt(Hs)),tt===r&&(t.substr(l,5).toLowerCase()==="local"?(tt=t.substr(l,5),l+=5):(tt=r,lt===0&&Jt(Uo))),tt!==r&&g()!==r?(t.substr(l,5).toLowerCase()==="check"?(Ct=t.substr(l,5),l+=5):(Ct=r,lt===0&&Jt(Ps)),Ct!==r&&g()!==r?(t.substr(l,6)==="OPTION"?(Xt="OPTION",l+=6):(Xt=r,lt===0&&Jt(pe)),Xt===r?(l=xr,xr=r):(dn=xr,Sr=(function(Vt){return`with ${Vt.toLowerCase()} check option`})(tt),xr=Sr)):(l=xr,xr=r)):(l=xr,xr=r)):(l=xr,xr=r),xr===r&&(xr=l,(Sr=ap())!==r&&g()!==r?(t.substr(l,5).toLowerCase()==="check"?(tt=t.substr(l,5),l+=5):(tt=r,lt===0&&Jt(Ps)),tt!==r&&g()!==r?(t.substr(l,6)==="OPTION"?(Ct="OPTION",l+=6):(Ct=r,lt===0&&Jt(pe)),Ct===r?(l=xr,xr=r):(dn=xr,xr=Sr="with check option")):(l=xr,xr=r)):(l=xr,xr=r)),xr})())===r&&(Z=null),Z===r?(l=q,q=r):(dn=q,rr=(function(xr,Sr,tt,Ct,Xt,Vt,In,Tn,jn){return Xt.view=Xt.table,delete Xt.table,{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:xr[0].toLowerCase(),keyword:"view",replace:Sr&&"or replace",temporary:tt&&tt[0].toLowerCase(),recursive:Ct&&Ct.toLowerCase(),columns:Vt&&Vt[2],select:Tn,view:Xt,with_options:In&&In[4],with:jn}}})(rr,Dr,Jr,nn,On,fr,Es,E,Z),q=rr)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r),q})()),M})())===r&&(L=(function(){var M=l,q,rr,Dr;(q=Fs())!==r&&g()!==r?((rr=Rc())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Pr())!==r?(dn=M,Xr=q,Jr=rr,(Mt=Dr)&&Mt.forEach(nn=>Zu.add(`${Xr}::${[nn.db,nn.schema].filter(Boolean).join(".")||null}::${nn.table}`)),q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:Xr.toLowerCase(),keyword:Jr&&Jr.toLowerCase()||"table",name:Mt}},M=q):(l=M,M=r)):(l=M,M=r);var Xr,Jr,Mt;return M})())===r&&(L=(function(){var M=l,q,rr;(q=oa())!==r&&g()!==r&&Rc()!==r&&g()!==r&&(rr=(function(){var Xr,Jr,Mt,nn,On,fr,os,Es;if(Xr=l,(Jr=P())!==r){for(Mt=[],nn=l,(On=g())!==r&&(fr=Wo())!==r&&(os=g())!==r&&(Es=P())!==r?nn=On=[On,fr,os,Es]:(l=nn,nn=r);nn!==r;)Mt.push(nn),nn=l,(On=g())!==r&&(fr=Wo())!==r&&(os=g())!==r&&(Es=P())!==r?nn=On=[On,fr,os,Es]:(l=nn,nn=r);Mt===r?(l=Xr,Xr=r):(dn=Xr,Jr=Wr(Jr,Mt),Xr=Jr)}else l=Xr,Xr=r;return Xr})())!==r?(dn=M,(Dr=rr).forEach(Xr=>Xr.forEach(Jr=>Jr.table&&Zu.add(`rename::${[Jr.db,Jr.schema].filter(Boolean).join(".")||null}::${Jr.table}`))),q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"rename",table:Dr}},M=q):(l=M,M=r);var Dr;return M})())===r&&(L=(function(){var M=l,q,rr;(q=(function(){var Xr=l,Jr,Mt,nn;return t.substr(l,4).toLowerCase()==="call"?(Jr=t.substr(l,4),l+=4):(Jr=r,lt===0&&Jt(X0)),Jr===r?(l=Xr,Xr=r):(Mt=l,lt++,nn=Is(),lt--,nn===r?Mt=void 0:(l=Mt,Mt=r),Mt===r?(l=Xr,Xr=r):(dn=Xr,Xr=Jr="CALL")),Xr})())!==r&&g()!==r&&(rr=jr())!==r?(dn=M,Dr=rr,q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"call",expr:Dr}},M=q):(l=M,M=r);var Dr;return M})())===r&&(L=(function(){var M=l,q,rr;(q=(function(){var Xr=l,Jr,Mt,nn;return t.substr(l,3).toLowerCase()==="use"?(Jr=t.substr(l,3),l+=3):(Jr=r,lt===0&&Jt(Bp)),Jr===r?(l=Xr,Xr=r):(Mt=l,lt++,nn=Is(),lt--,nn===r?Mt=void 0:(l=Mt,Mt=r),Mt===r?(l=Xr,Xr=r):Xr=Jr=[Jr,Mt]),Xr})())!==r&&g()!==r&&(rr=qr())!==r?(dn=M,Dr=rr,Zu.add(`use::${Dr}::null`),q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"use",db:Dr,...Mo()}},M=q):(l=M,M=r);var Dr;return M})())===r&&(L=(function(){var M;return(M=(function(){var q=l,rr,Dr,Xr;(rr=Go())!==r&&g()!==r&&Rc()!==r&&g()!==r&&(Dr=Pr())!==r&&g()!==r&&(Xr=(function(){var nn,On,fr,os,Es,ls,ws,de;if(nn=l,(On=Ya())!==r){for(fr=[],os=l,(Es=g())!==r&&(ls=Wo())!==r&&(ws=g())!==r&&(de=Ya())!==r?os=Es=[Es,ls,ws,de]:(l=os,os=r);os!==r;)fr.push(os),os=l,(Es=g())!==r&&(ls=Wo())!==r&&(ws=g())!==r&&(de=Ya())!==r?os=Es=[Es,ls,ws,de]:(l=os,os=r);fr===r?(l=nn,nn=r):(dn=nn,On=Wr(On,fr),nn=On)}else l=nn,nn=r;return nn})())!==r?(dn=q,Mt=Xr,(Jr=Dr)&&Jr.length>0&&Jr.forEach(nn=>Zu.add(`alter::${[nn.db,nn.schema].filter(Boolean).join(".")||null}::${nn.table}`)),rr={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"alter",table:Jr,expr:Mt}},q=rr):(l=q,q=r);var Jr,Mt;return q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr;return(rr=Go())!==r&&g()!==r&&(Dr=Wa())!==r&&g()!==r&&(Xr=ne())!==r&&g()!==r?((Jr=ni())===r&&(Jr=ui())===r&&(Jr=$i()),Jr===r?(l=q,q=r):(dn=q,rr=(function(Mt,nn,On){let fr=Mt.toLowerCase();return On.resource=fr,On[fr]=On.table,delete On.table,{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"alter",keyword:fr,schema:nn,expr:On}}})(Dr,Xr,Jr),q=rr)):(l=q,q=r),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr;return(rr=Go())!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="domain"?(Dr=t.substr(l,6),l+=6):(Dr=r,lt===0&&Jt(T0)),Dr===r&&(t.substr(l,4).toLowerCase()==="type"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(Fi))),Dr!==r&&g()!==r&&(Xr=kt())!==r&&g()!==r?((Jr=ni())===r&&(Jr=ui())===r&&(Jr=$i()),Jr===r?(l=q,q=r):(dn=q,rr=(function(Mt,nn,On){let fr=Mt.toLowerCase();return On.resource=fr,On[fr]=On.table,delete On.table,{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"alter",keyword:fr,name:{schema:nn.db,name:nn.table},expr:On}}})(Dr,Xr,Jr),q=rr)):(l=q,q=r)):(l=q,q=r),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt,nn,On,fr,os;return(rr=Go())!==r&&g()!==r?(t.substr(l,8).toLowerCase()==="function"?(Dr=t.substr(l,8),l+=8):(Dr=r,lt===0&&Jt(ei)),Dr!==r&&g()!==r&&(Xr=kt())!==r&&g()!==r?(Jr=l,(Mt=pu())!==r&&(nn=g())!==r?((On=Di())===r&&(On=null),On!==r&&(fr=g())!==r&&(os=fu())!==r?Jr=Mt=[Mt,nn,On,fr,os]:(l=Jr,Jr=r)):(l=Jr,Jr=r),Jr===r&&(Jr=null),Jr!==r&&(Mt=g())!==r?((nn=ni())===r&&(nn=ui())===r&&(nn=$i()),nn===r?(l=q,q=r):(dn=q,rr=(function(Es,ls,ws,de){let E=Es.toLowerCase();de.resource=E,de[E]=de.table,delete de.table;let U={};return ws&&ws[0]&&(U.parentheses=!0),U.expr=ws&&ws[2],{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"alter",keyword:E,name:{schema:ls.db,name:ls.table},args:U,expr:de}}})(Dr,Xr,Jr,nn),q=rr)):(l=q,q=r)):(l=q,q=r)):(l=q,q=r),q})())===r&&(M=(function(){var q=l,rr,Dr,Xr,Jr,Mt;return(rr=Go())!==r&&g()!==r?(t.substr(l,9).toLowerCase()==="aggregate"?(Dr=t.substr(l,9),l+=9):(Dr=r,lt===0&&Jt(Pb)),Dr!==r&&g()!==r&&(Xr=kt())!==r&&g()!==r&&pu()!==r&&g()!==r&&(Jr=(function(){var nn=l,On,fr;return(On=$b())!==r&&(dn=nn,On=[{name:"*"}]),(nn=On)===r&&(nn=l,(On=Di())===r&&(On=null),On!==r&&g()!==r&&Av()!==r&&g()!==r&&fl()!==r&&g()!==r&&(fr=Di())!==r?(dn=nn,On=(function(os,Es){let ls=os||[];return ls.orderby=Es,ls})(On,fr),nn=On):(l=nn,nn=r),nn===r&&(nn=Di())),nn})())!==r&&g()!==r&&fu()!==r&&g()!==r?((Mt=ni())===r&&(Mt=ui())===r&&(Mt=$i()),Mt===r?(l=q,q=r):(dn=q,rr=(function(nn,On,fr,os){let Es=nn.toLowerCase();return os.resource=Es,os[Es]=os.table,delete os.table,{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"alter",keyword:Es,name:{schema:On.db,name:On.table},args:{parentheses:!0,expr:fr,orderby:fr.orderby},expr:os},...Mo()}})(Dr,Xr,Jr,Mt),q=rr)):(l=q,q=r)):(l=q,q=r),q})()),M})())===r&&(L=(function(){var M=l,q,rr,Dr;(q=Ee())!==r&&g()!==r?((rr=(function(){var Mt=l,nn,On,fr;return t.substr(l,6).toLowerCase()==="global"?(nn=t.substr(l,6),l+=6):(nn=r,lt===0&&Jt(ml)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):(dn=Mt,Mt=nn="GLOBAL")),Mt})())===r&&(rr=(function(){var Mt=l,nn,On,fr;return t.substr(l,7).toLowerCase()==="session"?(nn=t.substr(l,7),l+=7):(nn=r,lt===0&&Jt(Ul)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):(dn=Mt,Mt=nn="SESSION")),Mt})())===r&&(rr=(function(){var Mt=l,nn,On,fr;return t.substr(l,5).toLowerCase()==="local"?(nn=t.substr(l,5),l+=5):(nn=r,lt===0&&Jt(Uo)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):(dn=Mt,Mt=nn="LOCAL")),Mt})())===r&&(rr=(function(){var Mt=l,nn,On,fr;return t.substr(l,7).toLowerCase()==="persist"?(nn=t.substr(l,7),l+=7):(nn=r,lt===0&&Jt(aa)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):(dn=Mt,Mt=nn="PERSIST")),Mt})())===r&&(rr=(function(){var Mt=l,nn,On,fr;return t.substr(l,12).toLowerCase()==="persist_only"?(nn=t.substr(l,12),l+=12):(nn=r,lt===0&&Jt(Tf)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):(dn=Mt,Mt=nn="PERSIST_ONLY")),Mt})()),rr===r&&(rr=null),rr!==r&&g()!==r&&(Dr=(function(){var Mt,nn,On,fr,os,Es,ls,ws;if(Mt=l,(nn=Mn())!==r){for(On=[],fr=l,(os=g())!==r&&(Es=Wo())!==r&&(ls=g())!==r&&(ws=Mn())!==r?fr=os=[os,Es,ls,ws]:(l=fr,fr=r);fr!==r;)On.push(fr),fr=l,(os=g())!==r&&(Es=Wo())!==r&&(ls=g())!==r&&(ws=Mn())!==r?fr=os=[os,Es,ls,ws]:(l=fr,fr=r);On===r?(l=Mt,Mt=r):(dn=Mt,nn=Wr(nn,On),Mt=nn)}else l=Mt,Mt=r;return Mt})())!==r?(dn=M,Xr=rr,(Jr=Dr).keyword=Xr,q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"set",keyword:Xr,expr:Jr}},M=q):(l=M,M=r)):(l=M,M=r);var Xr,Jr;return M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr;(q=(function(){var os=l,Es,ls,ws;return t.substr(l,4).toLowerCase()==="lock"?(Es=t.substr(l,4),l+=4):(Es=r,lt===0&&Jt(Ss)),Es===r?(l=os,os=r):(ls=l,lt++,ws=Is(),lt--,ws===r?ls=void 0:(l=ls,ls=r),ls===r?(l=os,os=r):os=Es=[Es,ls]),os})())!==r&&g()!==r?((rr=Rc())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Pr())!==r&&g()!==r?((Xr=(function(){var os=l,Es,ls,ws;return t.substr(l,2).toLowerCase()==="in"?(Es=t.substr(l,2),l+=2):(Es=r,lt===0&&Jt(hc)),Es!==r&&g()!==r?(t.substr(l,12).toLowerCase()==="access share"?(ls=t.substr(l,12),l+=12):(ls=r,lt===0&&Jt(Bl)),ls===r&&(t.substr(l,9).toLowerCase()==="row share"?(ls=t.substr(l,9),l+=9):(ls=r,lt===0&&Jt(sl)),ls===r&&(t.substr(l,13).toLowerCase()==="row exclusive"?(ls=t.substr(l,13),l+=13):(ls=r,lt===0&&Jt(sc)),ls===r&&(t.substr(l,22).toLowerCase()==="share update exclusive"?(ls=t.substr(l,22),l+=22):(ls=r,lt===0&&Jt(Y0)),ls===r&&(t.substr(l,19).toLowerCase()==="share row exclusive"?(ls=t.substr(l,19),l+=19):(ls=r,lt===0&&Jt(N0)),ls===r&&(t.substr(l,9).toLowerCase()==="exclusive"?(ls=t.substr(l,9),l+=9):(ls=r,lt===0&&Jt(ce)),ls===r&&(t.substr(l,16).toLowerCase()==="access exclusive"?(ls=t.substr(l,16),l+=16):(ls=r,lt===0&&Jt(ov)),ls===r&&(t.substr(l,5).toLowerCase()==="share"?(ls=t.substr(l,5),l+=5):(ls=r,lt===0&&Jt(Fb))))))))),ls!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="mode"?(ws=t.substr(l,4),l+=4):(ws=r,lt===0&&Jt(e0)),ws===r?(l=os,os=r):(dn=os,Es={mode:`in ${ls.toLowerCase()} mode`},os=Es)):(l=os,os=r)):(l=os,os=r),os})())===r&&(Xr=null),Xr!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="nowait"?(Jr=t.substr(l,6),l+=6):(Jr=r,lt===0&&Jt(Cb)),Jr===r&&(Jr=null),Jr===r?(l=M,M=r):(dn=M,Mt=rr,On=Xr,fr=Jr,(nn=Dr)&&nn.forEach(os=>Zu.add(`lock::${[os.db,os.schema].filter(Boolean).join(".")||null}::${os.table}`)),q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"lock",keyword:Mt&&Mt.toLowerCase(),tables:nn.map(os=>({table:os})),lock_mode:On,nowait:fr}},M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r);var Mt,nn,On,fr;return M})())===r&&(L=(function(){var M=l,q,rr;return(q=Je())!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="tables"?(rr=t.substr(l,6),l+=6):(rr=r,lt===0&&Jt(_0)),rr===r?(l=M,M=r):(dn=M,q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"show",keyword:"tables"}},M=q)):(l=M,M=r),M===r&&(M=l,(q=Je())!==r&&g()!==r&&(rr=No())!==r?(dn=M,q=(function(Dr){return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"show",keyword:"var",var:Dr}}})(rr),M=q):(l=M,M=r)),M})())===r&&(L=(function(){var M=l,q,rr,Dr;(q=(function(){var Mt=l,nn,On,fr;return t.substr(l,10).toLowerCase()==="deallocate"?(nn=t.substr(l,10),l+=10):(nn=r,lt===0&&Jt(Np)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):(dn=Mt,Mt=nn="DEALLOCATE")),Mt})())!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="prepare"?(rr=t.substr(l,7),l+=7):(rr=r,lt===0&&Jt(zf)),rr===r&&(rr=null),rr!==r&&g()!==r?((Dr=ne())===r&&(Dr=Xi()),Dr===r?(l=M,M=r):(dn=M,Xr=rr,Jr=Dr,q={tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"deallocate",keyword:Xr,expr:{type:"default",value:Jr}}},M=q)):(l=M,M=r)):(l=M,M=r);var Xr,Jr;return M})()),L}function oi(){var L;return(L=ka())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr,Mt,nn;return(q=g())===r?(l=M,M=r):((rr=rt())===r&&(rr=null),rr!==r&&g()!==r&&xe()!==r&&g()!==r&&(Dr=Pr())!==r&&g()!==r&&Ee()!==r&&g()!==r&&(Xr=Wt())!==r&&g()!==r?((Jr=Q())===r&&(Jr=null),Jr!==r&&g()!==r?((Mt=co())===r&&(Mt=null),Mt!==r&&g()!==r?((nn=li())===r&&(nn=null),nn===r?(l=M,M=r):(dn=M,q=(function(On,fr,os,Es,ls,ws){let de={},E=U=>{let{server:Z,db:sr,schema:xr,as:Sr,table:tt,join:Ct}=U,Xt=Ct?"select":"update",Vt=[Z,sr,xr].filter(Boolean).join(".")||null;sr&&(de[tt]=Vt),tt&&Zu.add(`${Xt}::${Vt}::${tt}`)};return fr&&fr.forEach(E),Es&&Es.forEach(E),os&&os.forEach(U=>{if(U.table){let Z=Lc(U.table);Zu.add(`update::${de[Z]||null}::${Z}`)}Hr.add(`update::${U.table}::${U.column}`)}),{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{with:On,type:"update",table:fr,set:os,from:Es,where:ls,returning:ws}}})(rr,Dr,Xr,Jr,Mt,nn),M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r)),M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr,Mt,nn,On;return(q=Le())!==r&&g()!==r?((rr=le())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=kt())!==r&&g()!==r?((Xr=Ml())===r&&(Xr=null),Xr!==r&&g()!==r&&pu()!==r&&g()!==r&&(Jr=yr())!==r&&g()!==r&&fu()!==r&&g()!==r&&(Mt=ea())!==r&&g()!==r?((nn=(function(){var fr=l,os,Es,ls;return vc()!==r&&g()!==r?(t.substr(l,8).toLowerCase()==="conflict"?(os=t.substr(l,8),l+=8):(os=r,lt===0&&Jt(iv)),os!==r&&g()!==r?((Es=(function(){var ws=l,de,E;return(de=pu())!==r&&g()!==r&&(E=_t())!==r&&g()!==r&&fu()!==r?(dn=ws,de=(function(U){return{type:"column",expr:U,parentheses:!0}})(E),ws=de):(l=ws,ws=r),ws})())===r&&(Es=null),Es!==r&&g()!==r&&(ls=(function(){var ws=l,de,E,U,Z;return t.substr(l,2).toLowerCase()==="do"?(de=t.substr(l,2),l+=2):(de=r,lt===0&&Jt(Yb)),de!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="nothing"?(E=t.substr(l,7),l+=7):(E=r,lt===0&&Jt(av)),E===r?(l=ws,ws=r):(dn=ws,ws=de={keyword:"do",expr:{type:"origin",value:"nothing"}})):(l=ws,ws=r),ws===r&&(ws=l,t.substr(l,2).toLowerCase()==="do"?(de=t.substr(l,2),l+=2):(de=r,lt===0&&Jt(Yb)),de!==r&&g()!==r&&(E=xe())!==r&&g()!==r&&Ee()!==r&&g()!==r&&(U=Wt())!==r&&g()!==r?((Z=co())===r&&(Z=null),Z===r?(l=ws,ws=r):(dn=ws,ws=de={keyword:"do",expr:{type:"update",set:U,where:Z}})):(l=ws,ws=r)),ws})())!==r?(dn=fr,fr={type:"conflict",keyword:"on",target:Es,action:ls}):(l=fr,fr=r)):(l=fr,fr=r)):(l=fr,fr=r),fr})())===r&&(nn=null),nn!==r&&g()!==r?((On=li())===r&&(On=null),On===r?(l=M,M=r):(dn=M,q=(function(fr,os,Es,ls,ws,de,E){if(os&&(Zu.add(`insert::${[os.db,os.schema].filter(Boolean).join(".")||null}::${os.table}`),os.as=null),ls){let U=os&&os.table||null;Array.isArray(ws.values)&&ws.values.forEach((Z,sr)=>{if(Z.value.length!=ls.length)throw Error("Error: column count doesn't match value count at row "+(sr+1))}),ls.forEach(Z=>Hr.add(`insert::${U}::${Z}`))}return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:fr,table:[os],columns:ls,values:ws,partition:Es,conflict:de,returning:E}}})(q,Dr,Xr,Jr,Mt,nn,On),M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r),M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr,Mt,nn;return(q=Le())!==r&&g()!==r?((rr=Nu())===r&&(rr=null),rr!==r&&g()!==r?((Dr=le())===r&&(Dr=null),Dr!==r&&g()!==r&&(Xr=kt())!==r&&g()!==r?((Jr=Ml())===r&&(Jr=null),Jr!==r&&g()!==r&&(Mt=ea())!==r&&g()!==r?((nn=li())===r&&(nn=null),nn===r?(l=M,M=r):(dn=M,q=(function(On,fr,os,Es,ls,ws,de){Es&&(Zu.add(`insert::${[Es.db,Es.schema].filter(Boolean).join(".")||null}::${Es.table}`),Hr.add(`insert::${Es.table}::(.*)`),Es.as=null);let E=[fr,os].filter(U=>U).map(U=>U[0]&&U[0].toLowerCase()).join(" ");return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:On,table:[Es],columns:null,values:ws,partition:ls,prefix:E,returning:de}}})(q,rr,Dr,Xr,Jr,Mt,nn),M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r),M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr;return(q=Vo())!==r&&g()!==r?((rr=Pr())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Q())!==r&&g()!==r?((Xr=co())===r&&(Xr=null),Xr===r?(l=M,M=r):(dn=M,q=(function(Jr,Mt,nn){if(Mt&&Mt.forEach(On=>{let{db:fr,as:os,schema:Es,table:ls,join:ws}=On,de=ws?"select":"delete",E=[fr,Es].filter(Boolean).join(".")||null;ls&&Zu.add(`${de}::${E}::${ls}`),ws||Hr.add(`delete::${ls}::(.*)`)}),Jr===null&&Mt.length===1){let On=Mt[0];Jr=[{db:On.db,schema:On.schema,table:On.table,as:On.as,addition:!0,...Mo()}]}return{tableList:Array.from(Zu),columnList:Fu(Hr),ast:{type:"delete",table:Jr,from:Mt,where:nn}}})(rr,Dr,Xr),M=q)):(l=M,M=r)):(l=M,M=r),M})())===r&&(L=kl())===r&&(L=(function(){for(var M=[],q=An();q!==r;)M.push(q),q=An();return M})()),L}function yn(){var L,M;return L=l,(function(){var q=l,rr,Dr,Xr;return t.substr(l,5).toLowerCase()==="union"?(rr=t.substr(l,5),l+=5):(rr=r,lt===0&&Jt(pv)),rr===r?(l=q,q=r):(Dr=l,lt++,Xr=Is(),lt--,Xr===r?Dr=void 0:(l=Dr,Dr=r),Dr===r?(l=q,q=r):q=rr=[rr,Dr]),q})()!==r&&g()!==r?((M=Xi())===r&&(M=null),M===r?(l=L,L=r):(dn=L,L=M?"union all":"union")):(l=L,L=r),L}function ka(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Ht())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=yn())!==r&&(Jr=g())!==r&&(Mt=Ht())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=yn())!==r&&(Jr=g())!==r&&(Mt=Ht())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q!==r&&(rr=g())!==r?((Dr=Au())===r&&(Dr=null),Dr!==r&&(Xr=g())!==r?((Jr=Ia())===r&&(Jr=null),Jr===r?(l=L,L=r):(dn=L,L=M=(function(nn,On,fr,os){let Es=nn;for(let ls=0;ls<On.length;ls++)Es._next=On[ls][3],Es.set_op=On[ls][1],Es=Es._next;return fr&&(nn._orderby=fr),os&&os.value&&os.value.length>0&&(nn._limit=os),{tableList:Array.from(Zu),columnList:Fu(Hr),ast:nn}})(M,q,Dr,Jr))):(l=L,L=r)):(l=L,L=r)}else l=L,L=r;return L}function Ua(){var L,M;return L=l,t.substr(l,2).toLowerCase()==="if"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(Dn)),M!==r&&g()!==r&&ga()!==r&&g()!==r&&Tt()!==r?(dn=L,L=M="IF NOT EXISTS"):(l=L,L=r),L}function Ou(){var L,M,q;return L=l,t.substr(l,12).toLowerCase()==="check_option"?(M=t.substr(l,12),l+=12):(M=r,lt===0&&Jt(_o)),M!==r&&g()!==r&&Oo()!==r&&g()!==r?(t.substr(l,8).toLowerCase()==="cascaded"?(q=t.substr(l,8),l+=8):(q=r,lt===0&&Jt(Hs)),q===r&&(t.substr(l,5).toLowerCase()==="local"?(q=t.substr(l,5),l+=5):(q=r,lt===0&&Jt(Uo))),q===r?(l=L,L=r):(dn=L,L=M={type:"check_option",value:q,symbol:"="})):(l=L,L=r),L===r&&(L=l,t.substr(l,16).toLowerCase()==="security_barrier"?(M=t.substr(l,16),l+=16):(M=r,lt===0&&Jt(Gi)),M===r&&(t.substr(l,16).toLowerCase()==="security_invoker"?(M=t.substr(l,16),l+=16):(M=r,lt===0&&Jt(mi))),M!==r&&g()!==r&&Oo()!==r&&g()!==r&&(q=mr())!==r?(dn=L,L=M=(function(rr,Dr){return{type:rr.toLowerCase(),value:Dr.value?"true":"false",symbol:"="}})(M,q)):(l=L,L=r)),L}function il(){var L;return(L=(function(){var M,q,rr,Dr,Xr,Jr;return M=l,t.substr(l,9).toLowerCase()==="increment"?(q=t.substr(l,9),l+=9):(q=r,lt===0&&Jt(dl)),q!==r&&g()!==r?((rr=fl())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Ut())!==r?(dn=M,Xr=q,Jr=Dr,M=q={resource:"sequence",prefix:rr?Xr.toLowerCase()+" by":Xr.toLowerCase(),value:Jr}):(l=M,M=r)):(l=M,M=r),M})())===r&&(L=(function(){var M,q,rr;return M=l,t.substr(l,8).toLowerCase()==="minvalue"?(q=t.substr(l,8),l+=8):(q=r,lt===0&&Jt(Gl)),q!==r&&g()!==r&&(rr=Ut())!==r?(dn=M,M=q=Fl(q,rr)):(l=M,M=r),M===r&&(M=l,t.substr(l,2).toLowerCase()==="no"?(q=t.substr(l,2),l+=2):(q=r,lt===0&&Jt(nc)),q!==r&&g()!==r?(t.substr(l,8).toLowerCase()==="minvalue"?(rr=t.substr(l,8),l+=8):(rr=r,lt===0&&Jt(Gl)),rr===r?(l=M,M=r):(dn=M,M=q={resource:"sequence",value:{type:"origin",value:"no minvalue"}})):(l=M,M=r)),M})())===r&&(L=(function(){var M,q,rr;return M=l,t.substr(l,8).toLowerCase()==="maxvalue"?(q=t.substr(l,8),l+=8):(q=r,lt===0&&Jt(xc)),q!==r&&g()!==r&&(rr=Ut())!==r?(dn=M,M=q=Fl(q,rr)):(l=M,M=r),M===r&&(M=l,t.substr(l,2).toLowerCase()==="no"?(q=t.substr(l,2),l+=2):(q=r,lt===0&&Jt(nc)),q!==r&&g()!==r?(t.substr(l,8).toLowerCase()==="maxvalue"?(rr=t.substr(l,8),l+=8):(rr=r,lt===0&&Jt(xc)),rr===r?(l=M,M=r):(dn=M,M=q={resource:"sequence",value:{type:"origin",value:"no maxvalue"}})):(l=M,M=r)),M})())===r&&(L=(function(){var M,q,rr,Dr,Xr,Jr;return M=l,t.substr(l,5).toLowerCase()==="start"?(q=t.substr(l,5),l+=5):(q=r,lt===0&&Jt(I0)),q!==r&&g()!==r?((rr=ap())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Ut())!==r?(dn=M,Xr=q,Jr=Dr,M=q={resource:"sequence",prefix:rr?Xr.toLowerCase()+" with":Xr.toLowerCase(),value:Jr}):(l=M,M=r)):(l=M,M=r),M})())===r&&(L=(function(){var M,q,rr;return M=l,t.substr(l,5).toLowerCase()==="cache"?(q=t.substr(l,5),l+=5):(q=r,lt===0&&Jt(ji)),q!==r&&g()!==r&&(rr=Ut())!==r?(dn=M,M=q=Fl(q,rr)):(l=M,M=r),M})())===r&&(L=(function(){var M,q,rr;return M=l,t.substr(l,2).toLowerCase()==="no"?(q=t.substr(l,2),l+=2):(q=r,lt===0&&Jt(nc)),q===r&&(q=null),q!==r&&g()!==r?(t.substr(l,5).toLowerCase()==="cycle"?(rr=t.substr(l,5),l+=5):(rr=r,lt===0&&Jt(af)),rr===r?(l=M,M=r):(dn=M,M=q={resource:"sequence",value:{type:"origin",value:q?"no cycle":"cycle"}})):(l=M,M=r),M})())===r&&(L=(function(){var M,q,rr;return M=l,t.substr(l,5).toLowerCase()==="owned"?(q=t.substr(l,5),l+=5):(q=r,lt===0&&Jt(qf)),q!==r&&g()!==r&&fl()!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="none"?(rr=t.substr(l,4),l+=4):(rr=r,lt===0&&Jt(Uc)),rr===r?(l=M,M=r):(dn=M,M=q={resource:"sequence",prefix:"owned by",value:{type:"origin",value:"none"}})):(l=M,M=r),M===r&&(M=l,t.substr(l,5).toLowerCase()==="owned"?(q=t.substr(l,5),l+=5):(q=r,lt===0&&Jt(qf)),q!==r&&g()!==r&&fl()!==r&&g()!==r&&(rr=nr())!==r?(dn=M,M=q={resource:"sequence",prefix:"owned by",value:rr}):(l=M,M=r)),M})()),L}function zu(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn;return L=l,(M=Zo())!==r&&g()!==r?((q=ha())===r&&(q=null),q!==r&&g()!==r?((rr=qr())===r&&(rr=null),rr!==r&&g()!==r?((Dr=bl())===r&&(Dr=gu()),Dr===r&&(Dr=null),Dr!==r&&g()!==r?(Xr=l,t.substr(l,5).toLowerCase()==="nulls"?(Jr=t.substr(l,5),l+=5):(Jr=r,lt===0&&Jt(wc)),Jr!==r&&(Mt=g())!==r?(t.substr(l,5).toLowerCase()==="first"?(nn=t.substr(l,5),l+=5):(nn=r,lt===0&&Jt(Ll)),nn===r&&(t.substr(l,4).toLowerCase()==="last"?(nn=t.substr(l,4),l+=4):(nn=r,lt===0&&Jt(jl))),nn===r?(l=Xr,Xr=r):Xr=Jr=[Jr,Mt,nn]):(l=Xr,Xr=r),Xr===r&&(Xr=null),Xr===r?(l=L,L=r):(dn=L,L=M=(function(On,fr,os,Es,ls){return{...On,collate:fr,opclass:os,order_by:Es&&Es.toLowerCase(),nulls:ls&&`${ls[0].toLowerCase()} ${ls[2].toLowerCase()}`}})(M,q,rr,Dr,Xr))):(l=L,L=r)):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L}function Yu(){var L;return(L=Mi())===r&&(L=cl())===r&&(L=a())===r&&(L=an()),L}function lb(){var L,M,q,rr;return(L=(function(){var Dr=l,Xr,Jr;(Xr=br())===r&&(Xr=J()),Xr!==r&&g()!==r?((Jr=Ha())===r&&(Jr=null),Jr===r?(l=Dr,Dr=r):(dn=Dr,nn=Jr,(Mt=Xr)&&!Mt.value&&(Mt.value="null"),Dr=Xr={default_val:nn,nullable:Mt})):(l=Dr,Dr=r);var Mt,nn;return Dr===r&&(Dr=l,(Xr=Ha())!==r&&g()!==r?((Jr=br())===r&&(Jr=J()),Jr===r&&(Jr=null),Jr===r?(l=Dr,Dr=r):(dn=Dr,Xr=(function(On,fr){return fr&&!fr.value&&(fr.value="null"),{default_val:On,nullable:fr}})(Xr,Jr),Dr=Xr)):(l=Dr,Dr=r)),Dr})())===r&&(L=l,t.substr(l,14).toLowerCase()==="auto_increment"?(M=t.substr(l,14),l+=14):(M=r,lt===0&&Jt(Oi)),M!==r&&(dn=L,M={auto_increment:M.toLowerCase()}),(L=M)===r&&(L=l,t.substr(l,6).toLowerCase()==="unique"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(bb)),M!==r&&g()!==r?(t.substr(l,3).toLowerCase()==="key"?(q=t.substr(l,3),l+=3):(q=r,lt===0&&Jt(Vi)),q===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(Dr){let Xr=["unique"];return Dr&&Xr.push(Dr),{unique:Xr.join(" ").toLowerCase("")}})(q))):(l=L,L=r),L===r&&(L=l,t.substr(l,7).toLowerCase()==="primary"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(zc)),M===r&&(M=null),M!==r&&g()!==r?(t.substr(l,3).toLowerCase()==="key"?(q=t.substr(l,3),l+=3):(q=r,lt===0&&Jt(Vi)),q===r?(l=L,L=r):(dn=L,L=M=(function(Dr){let Xr=[];return Dr&&Xr.push("primary"),Xr.push("key"),{primary_key:Xr.join(" ").toLowerCase("")}})(M))):(l=L,L=r),L===r&&(L=l,(M=Qr())!==r&&(dn=L,M={comment:M}),(L=M)===r&&(L=l,(M=ha())!==r&&(dn=L,M={collate:M}),(L=M)===r&&(L=l,(M=(function(){var Dr=l,Xr,Jr;return t.substr(l,13).toLowerCase()==="column_format"?(Xr=t.substr(l,13),l+=13):(Xr=r,lt===0&&Jt(kc)),Xr!==r&&g()!==r?(t.substr(l,5).toLowerCase()==="fixed"?(Jr=t.substr(l,5),l+=5):(Jr=r,lt===0&&Jt(vb)),Jr===r&&(t.substr(l,7).toLowerCase()==="dynamic"?(Jr=t.substr(l,7),l+=7):(Jr=r,lt===0&&Jt(Zc)),Jr===r&&(t.substr(l,7).toLowerCase()==="default"?(Jr=t.substr(l,7),l+=7):(Jr=r,lt===0&&Jt(nl)))),Jr===r?(l=Dr,Dr=r):(dn=Dr,Xr={type:"column_format",value:Jr.toLowerCase()},Dr=Xr)):(l=Dr,Dr=r),Dr})())!==r&&(dn=L,M={column_format:M}),(L=M)===r&&(L=l,(M=(function(){var Dr=l,Xr,Jr;return t.substr(l,7).toLowerCase()==="storage"?(Xr=t.substr(l,7),l+=7):(Xr=r,lt===0&&Jt(Xf)),Xr!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="disk"?(Jr=t.substr(l,4),l+=4):(Jr=r,lt===0&&Jt(gl)),Jr===r&&(t.substr(l,6).toLowerCase()==="memory"?(Jr=t.substr(l,6),l+=6):(Jr=r,lt===0&&Jt(lf))),Jr===r?(l=Dr,Dr=r):(dn=Dr,Xr={type:"storage",value:Jr.toLowerCase()},Dr=Xr)):(l=Dr,Dr=r),Dr})())!==r&&(dn=L,M={storage:M}),(L=M)===r&&(L=l,(M=ii())!==r&&(dn=L,M={reference_definition:M}),(L=M)===r&&(L=l,(M=Zt())!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r&&(rr=Ar())!==r?(dn=L,L=M=(function(Dr,Xr,Jr){return{character_set:{type:Dr,value:Jr,symbol:Xr}}})(M,q,rr)):(l=L,L=r)):(l=L,L=r)))))))))),L}function Mi(){var L,M,q,rr;return L=l,(M=nr())!==r&&g()!==r&&(q=lu())!==r&&g()!==r?((rr=(function(){var Dr,Xr,Jr,Mt,nn,On;if(Dr=l,(Xr=lb())!==r)if(g()!==r){for(Jr=[],Mt=l,(nn=g())!==r&&(On=lb())!==r?Mt=nn=[nn,On]:(l=Mt,Mt=r);Mt!==r;)Jr.push(Mt),Mt=l,(nn=g())!==r&&(On=lb())!==r?Mt=nn=[nn,On]:(l=Mt,Mt=r);Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr=(function(fr,os){let Es=fr;for(let ls=0;ls<os.length;ls++)Es={...Es,...os[ls][1]};return Es})(Xr,Jr))}else l=Dr,Dr=r;else l=Dr,Dr=r;return Dr})())===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,L=M=(function(Dr,Xr,Jr){return Hr.add(`create::${Dr.table}::${Dr.column}`),{column:Dr,definition:Xr,resource:"column",...Jr||{}}})(M,q,rr))):(l=L,L=r),L}function ha(){var L,M,q;return L=l,(function(){var rr=l,Dr,Xr,Jr;return t.substr(l,7).toLowerCase()==="collate"?(Dr=t.substr(l,7),l+=7):(Dr=r,lt===0&&Jt(Vf)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="COLLATE")),rr})()!==r&&g()!==r?((M=Oo())===r&&(M=null),M!==r&&g()!==r&&(q=qr())!==r?(dn=L,L={type:"collate",keyword:"collate",collate:{name:q,symbol:M}}):(l=L,L=r)):(l=L,L=r),L}function Ha(){var L,M;return L=l,bo()!==r&&g()!==r&&(M=Zo())!==r?(dn=L,L={type:"default",value:M}):(l=L,L=r),L}function ln(){var L,M;return L=l,(M=vl())===r&&(t.substr(l,3).toLowerCase()==="out"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(gv)),M===r&&(t.substr(l,8).toLowerCase()==="variadic"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(g0)),M===r&&(t.substr(l,5).toLowerCase()==="inout"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Ki))))),M!==r&&(dn=L,M=M.toUpperCase()),L=M}function Oe(){var L,M,q,rr;return L=l,(M=ln())===r&&(M=null),M!==r&&g()!==r&&(q=lu())!==r?(dn=L,L=M={mode:M,type:q}):(l=L,L=r),L===r&&(L=l,(M=ln())===r&&(M=null),M!==r&&g()!==r&&(q=ne())!==r&&g()!==r&&(rr=lu())!==r?(dn=L,L=M=(function(Dr,Xr,Jr){return{mode:Dr,name:Xr,type:Jr}})(M,q,rr)):(l=L,L=r)),L}function Di(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Oe())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Oe())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Oe())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q))}else l=L,L=r;return L}function Ya(){var L;return(L=(function(){var M=l,q,rr,Dr;(q=wu())!==r&&g()!==r?((rr=Ea())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Mi())!==r?(dn=M,Xr=rr,Jr=Dr,q={action:"add",...Jr,keyword:Xr,resource:"column",type:"alter"},M=q):(l=M,M=r)):(l=M,M=r);var Xr,Jr;return M})())===r&&(L=(function(){var M=l,q,rr;return(q=wu())!==r&&g()!==r&&(rr=an())!==r?(dn=M,q=(function(Dr){return{action:"add",create_definitions:Dr,resource:"constraint",type:"alter"}})(rr),M=q):(l=M,M=r),M})())===r&&(L=(function(){var M=l,q,rr,Dr;return(q=hu())!==r&&g()!==r?((rr=Ea())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=nr())!==r?(dn=M,q=(function(Xr,Jr){return{action:"drop",column:Jr,keyword:Xr,resource:"column",type:"alter"}})(rr,Dr),M=q):(l=M,M=r)):(l=M,M=r),M})())===r&&(L=(function(){var M=l,q,rr;(q=wu())!==r&&g()!==r&&(rr=cl())!==r?(dn=M,Dr=rr,q={action:"add",type:"alter",...Dr},M=q):(l=M,M=r);var Dr;return M})())===r&&(L=(function(){var M=l,q,rr;(q=wu())!==r&&g()!==r&&(rr=a())!==r?(dn=M,Dr=rr,q={action:"add",type:"alter",...Dr},M=q):(l=M,M=r);var Dr;return M})())===r&&(L=ni())===r&&(L=ai())===r&&(L=ll()),L}function ni(){var L,M,q,rr,Dr;return L=l,oa()!==r&&g()!==r?((M=tu())===r&&(M=yi()),M===r&&(M=null),M!==r&&g()!==r&&(q=qr())!==r?(dn=L,Dr=q,L={action:"rename",type:"alter",resource:"table",keyword:(rr=M)&&rr[0].toLowerCase(),table:Dr}):(l=L,L=r)):(l=L,L=r),L}function ui(){var L,M,q;return L=l,t.substr(l,5).toLowerCase()==="owner"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(pb)),M!==r&&g()!==r&&tu()!==r&&g()!==r?((q=qr())===r&&(t.substr(l,12).toLowerCase()==="current_role"?(q=t.substr(l,12),l+=12):(q=r,lt===0&&Jt(j0)),q===r&&(t.substr(l,12).toLowerCase()==="current_user"?(q=t.substr(l,12),l+=12):(q=r,lt===0&&Jt(B0)),q===r&&(t.substr(l,12).toLowerCase()==="session_user"?(q=t.substr(l,12),l+=12):(q=r,lt===0&&Jt(Mc))))),q===r?(l=L,L=r):(dn=L,L=M={action:"owner",type:"alter",resource:"table",keyword:"to",table:q})):(l=L,L=r),L}function $i(){var L,M;return L=l,Ee()!==r&&g()!==r&&Wa()!==r&&g()!==r&&(M=qr())!==r?(dn=L,L={action:"set",type:"alter",resource:"table",keyword:"schema",table:M}):(l=L,L=r),L}function ai(){var L,M,q,rr;return L=l,t.substr(l,9).toLowerCase()==="algorithm"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(Cl)),M!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="default"?(rr=t.substr(l,7),l+=7):(rr=r,lt===0&&Jt(nl)),rr===r&&(t.substr(l,7).toLowerCase()==="instant"?(rr=t.substr(l,7),l+=7):(rr=r,lt===0&&Jt($u)),rr===r&&(t.substr(l,7).toLowerCase()==="inplace"?(rr=t.substr(l,7),l+=7):(rr=r,lt===0&&Jt(r0)),rr===r&&(t.substr(l,4).toLowerCase()==="copy"?(rr=t.substr(l,4),l+=4):(rr=r,lt===0&&Jt(zn))))),rr===r?(l=L,L=r):(dn=L,L=M={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:q,algorithm:rr})):(l=L,L=r)):(l=L,L=r),L}function ll(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="lock"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Ss)),M!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="default"?(rr=t.substr(l,7),l+=7):(rr=r,lt===0&&Jt(nl)),rr===r&&(t.substr(l,4).toLowerCase()==="none"?(rr=t.substr(l,4),l+=4):(rr=r,lt===0&&Jt(Uc)),rr===r&&(t.substr(l,6).toLowerCase()==="shared"?(rr=t.substr(l,6),l+=6):(rr=r,lt===0&&Jt(te)),rr===r&&(t.substr(l,9).toLowerCase()==="exclusive"?(rr=t.substr(l,9),l+=9):(rr=r,lt===0&&Jt(ce))))),rr===r?(l=L,L=r):(dn=L,L=M={type:"alter",keyword:"lock",resource:"lock",symbol:q,lock:rr})):(l=L,L=r)):(l=L,L=r),L}function cl(){var L,M,q,rr,Dr,Xr;return L=l,(M=Do())===r&&(M=Ka()),M!==r&&g()!==r?((q=Ws())===r&&(q=null),q!==r&&g()!==r?((rr=hr())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Lr())!==r&&g()!==r?((Xr=ht())===r&&(Xr=null),Xr!==r&&g()!==r?(dn=L,L=M=(function(Jr,Mt,nn,On,fr){return{index:Mt,definition:On,keyword:Jr.toLowerCase(),index_type:nn,resource:"index",index_options:fr}})(M,q,rr,Dr,Xr)):(l=L,L=r)):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L}function a(){var L,M,q,rr,Dr,Xr;return L=l,(M=(function(){var Jr=l,Mt,nn,On;return t.substr(l,8).toLowerCase()==="fulltext"?(Mt=t.substr(l,8),l+=8):(Mt=r,lt===0&&Jt(Xa)),Mt===r?(l=Jr,Jr=r):(nn=l,lt++,On=Is(),lt--,On===r?nn=void 0:(l=nn,nn=r),nn===r?(l=Jr,Jr=r):(dn=Jr,Jr=Mt="FULLTEXT")),Jr})())===r&&(M=(function(){var Jr=l,Mt,nn,On;return t.substr(l,7).toLowerCase()==="spatial"?(Mt=t.substr(l,7),l+=7):(Mt=r,lt===0&&Jt(cc)),Mt===r?(l=Jr,Jr=r):(nn=l,lt++,On=Is(),lt--,On===r?nn=void 0:(l=nn,nn=r),nn===r?(l=Jr,Jr=r):(dn=Jr,Jr=Mt="SPATIAL")),Jr})()),M!==r&&g()!==r?((q=Do())===r&&(q=Ka()),q===r&&(q=null),q!==r&&g()!==r?((rr=Ws())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Lr())!==r&&g()!==r?((Xr=ht())===r&&(Xr=null),Xr!==r&&g()!==r?(dn=L,L=M=(function(Jr,Mt,nn,On,fr){return{index:nn,definition:On,keyword:Mt&&`${Jr.toLowerCase()} ${Mt.toLowerCase()}`||Jr.toLowerCase(),index_options:fr,resource:"index"}})(M,q,rr,Dr,Xr)):(l=L,L=r)):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L}function an(){var L;return(L=(function(){var M=l,q,rr,Dr,Xr,Jr;(q=Ma())===r&&(q=null),q!==r&&g()!==r?(t.substr(l,11).toLowerCase()==="primary key"?(rr=t.substr(l,11),l+=11):(rr=r,lt===0&&Jt(He)),rr!==r&&g()!==r?((Dr=hr())===r&&(Dr=null),Dr!==r&&g()!==r&&(Xr=Lr())!==r&&g()!==r?((Jr=ht())===r&&(Jr=null),Jr===r?(l=M,M=r):(dn=M,nn=rr,On=Dr,fr=Xr,os=Jr,q={constraint:(Mt=q)&&Mt.constraint,definition:fr,constraint_type:nn.toLowerCase(),keyword:Mt&&Mt.keyword,index_type:On,resource:"constraint",index_options:os},M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r);var Mt,nn,On,fr,os;return M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr,Mt,nn;(q=Ma())===r&&(q=null),q!==r&&g()!==r&&(rr=dc())!==r&&g()!==r?((Dr=Do())===r&&(Dr=Ka()),Dr===r&&(Dr=null),Dr!==r&&g()!==r?((Xr=Ws())===r&&(Xr=null),Xr!==r&&g()!==r?((Jr=hr())===r&&(Jr=null),Jr!==r&&g()!==r&&(Mt=Lr())!==r&&g()!==r?((nn=ht())===r&&(nn=null),nn===r?(l=M,M=r):(dn=M,fr=rr,os=Dr,Es=Xr,ls=Jr,ws=Mt,de=nn,q={constraint:(On=q)&&On.constraint,definition:ws,constraint_type:os&&`${fr.toLowerCase()} ${os.toLowerCase()}`||fr.toLowerCase(),keyword:On&&On.keyword,index_type:ls,index:Es,resource:"constraint",index_options:de},M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r);var On,fr,os,Es,ls,ws,de;return M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr;(q=Ma())===r&&(q=null),q!==r&&g()!==r?(t.substr(l,11).toLowerCase()==="foreign key"?(rr=t.substr(l,11),l+=11):(rr=r,lt===0&&Jt(Ue)),rr!==r&&g()!==r?((Dr=Ws())===r&&(Dr=null),Dr!==r&&g()!==r&&(Xr=Lr())!==r&&g()!==r?((Jr=ii())===r&&(Jr=null),Jr===r?(l=M,M=r):(dn=M,nn=rr,On=Dr,fr=Xr,os=Jr,q={constraint:(Mt=q)&&Mt.constraint,definition:fr,constraint_type:nn,keyword:Mt&&Mt.keyword,index:On,resource:"constraint",reference_definition:os},M=q)):(l=M,M=r)):(l=M,M=r)):(l=M,M=r);var Mt,nn,On,fr,os;return M})())===r&&(L=Da()),L}function Ma(){var L,M,q;return L=l,(M=La())!==r&&g()!==r?((q=qr())===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(rr,Dr){return{keyword:rr.toLowerCase(),constraint:Dr}})(M,q))):(l=L,L=r),L}function Da(){var L,M,q,rr,Dr,Xr,Jr;return L=l,(M=Ma())===r&&(M=null),M!==r&&g()!==r?(t.substr(l,5).toLowerCase()==="check"?(q=t.substr(l,5),l+=5):(q=r,lt===0&&Jt(Ps)),q!==r&&g()!==r&&pu()!==r&&g()!==r&&(rr=wi())!==r&&g()!==r&&fu()!==r?(dn=L,Xr=q,Jr=rr,L=M={constraint:(Dr=M)&&Dr.constraint,definition:[Jr],constraint_type:Xr.toLowerCase(),keyword:Dr&&Dr.keyword,resource:"constraint"}):(l=L,L=r)):(l=L,L=r),L}function ii(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On;return L=l,(M=(function(){var fr=l,os,Es,ls;return t.substr(l,10).toLowerCase()==="references"?(os=t.substr(l,10),l+=10):(os=r,lt===0&&Jt(gi)),os===r?(l=fr,fr=r):(Es=l,lt++,ls=Is(),lt--,ls===r?Es=void 0:(l=Es,Es=r),Es===r?(l=fr,fr=r):(dn=fr,fr=os="REFERENCES")),fr})())!==r&&g()!==r&&(q=kt())!==r&&g()!==r&&(rr=Lr())!==r&&g()!==r?(t.substr(l,10).toLowerCase()==="match full"?(Dr=t.substr(l,10),l+=10):(Dr=r,lt===0&&Jt(Qe)),Dr===r&&(t.substr(l,13).toLowerCase()==="match partial"?(Dr=t.substr(l,13),l+=13):(Dr=r,lt===0&&Jt(uo)),Dr===r&&(t.substr(l,12).toLowerCase()==="match simple"?(Dr=t.substr(l,12),l+=12):(Dr=r,lt===0&&Jt(Ao)))),Dr===r&&(Dr=null),Dr!==r&&g()!==r?((Xr=nt())===r&&(Xr=null),Xr!==r&&g()!==r?((Jr=nt())===r&&(Jr=null),Jr===r?(l=L,L=r):(dn=L,Mt=Dr,nn=Xr,On=Jr,L=M={definition:rr,table:[q],keyword:M.toLowerCase(),match:Mt&&Mt.toLowerCase(),on_action:[nn,On].filter(fr=>fr)})):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=nt())!==r&&(dn=L,M={on_action:[M]}),L=M),L}function nt(){var L,M,q,rr;return L=l,vc()!==r&&g()!==r?((M=Vo())===r&&(M=xe()),M!==r&&g()!==r&&(q=(function(){var Dr=l,Xr,Jr;return(Xr=ee())!==r&&g()!==r&&pu()!==r&&g()!==r?((Jr=si())===r&&(Jr=null),Jr!==r&&g()!==r&&fu()!==r?(dn=Dr,Dr=Xr={type:"function",name:{name:[{type:"origin",value:Xr}]},args:Jr}):(l=Dr,Dr=r)):(l=Dr,Dr=r),Dr===r&&(Dr=l,t.substr(l,8).toLowerCase()==="restrict"?(Xr=t.substr(l,8),l+=8):(Xr=r,lt===0&&Jt(Qc)),Xr===r&&(t.substr(l,7).toLowerCase()==="cascade"?(Xr=t.substr(l,7),l+=7):(Xr=r,lt===0&&Jt(Jc)),Xr===r&&(t.substr(l,8).toLowerCase()==="set null"?(Xr=t.substr(l,8),l+=8):(Xr=r,lt===0&&Jt(Pu)),Xr===r&&(t.substr(l,9).toLowerCase()==="no action"?(Xr=t.substr(l,9),l+=9):(Xr=r,lt===0&&Jt(Ca)),Xr===r&&(t.substr(l,11).toLowerCase()==="set default"?(Xr=t.substr(l,11),l+=11):(Xr=r,lt===0&&Jt(ku)),Xr===r&&(Xr=ee()))))),Xr!==r&&(dn=Dr,Xr={type:"origin",value:Xr.toLowerCase()}),Dr=Xr),Dr})())!==r?(dn=L,rr=q,L={type:"on "+M[0].toLowerCase(),value:rr}):(l=L,L=r)):(l=L,L=r),L}function o(){var L,M,q,rr,Dr,Xr,Jr;return L=l,(M=eu())===r&&(M=Vo())===r&&(M=Fs()),M!==r&&(dn=L,Jr=M,M={keyword:Array.isArray(Jr)?Jr[0].toLowerCase():Jr.toLowerCase()}),(L=M)===r&&(L=l,(M=xe())!==r&&g()!==r?(q=l,t.substr(l,2).toLowerCase()==="of"?(rr=t.substr(l,2),l+=2):(rr=r,lt===0&&Jt(Dc)),rr!==r&&(Dr=g())!==r&&(Xr=_t())!==r?q=rr=[rr,Dr,Xr]:(l=q,q=r),q===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(Mt,nn){return{keyword:Mt&&Mt[0]&&Mt[0].toLowerCase(),args:nn&&{keyword:nn[0],columns:nn[2]}||null}})(M,q))):(l=L,L=r)),L}function Zt(){var L,M,q;return L=l,t.substr(l,9).toLowerCase()==="character"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(R0)),M!==r&&g()!==r?(t.substr(l,3).toLowerCase()==="set"?(q=t.substr(l,3),l+=3):(q=r,lt===0&&Jt(Rl)),q===r?(l=L,L=r):(dn=L,L=M="CHARACTER SET")):(l=L,L=r),L}function ba(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn;return L=l,(M=bo())===r&&(M=null),M!==r&&g()!==r?((q=Zt())===r&&(t.substr(l,7).toLowerCase()==="charset"?(q=t.substr(l,7),l+=7):(q=r,lt===0&&Jt(ff)),q===r&&(t.substr(l,7).toLowerCase()==="collate"?(q=t.substr(l,7),l+=7):(q=r,lt===0&&Jt(Vf)))),q!==r&&g()!==r?((rr=Oo())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=Ar())!==r?(dn=L,Jr=q,Mt=rr,nn=Dr,L=M={keyword:(Xr=M)&&`${Xr[0].toLowerCase()} ${Jr.toLowerCase()}`||Jr.toLowerCase(),symbol:Mt,value:nn}):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L}function bu(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn;return L=l,t.substr(l,14).toLowerCase()==="auto_increment"?(M=t.substr(l,14),l+=14):(M=r,lt===0&&Jt(Oi)),M===r&&(t.substr(l,14).toLowerCase()==="avg_row_length"?(M=t.substr(l,14),l+=14):(M=r,lt===0&&Jt(Vv)),M===r&&(t.substr(l,14).toLowerCase()==="key_block_size"?(M=t.substr(l,14),l+=14):(M=r,lt===0&&Jt(db)),M===r&&(t.substr(l,8).toLowerCase()==="max_rows"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(Of)),M===r&&(t.substr(l,8).toLowerCase()==="min_rows"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(Pc)),M===r&&(t.substr(l,18).toLowerCase()==="stats_sample_pages"?(M=t.substr(l,18),l+=18):(M=r,lt===0&&Jt(H0))))))),M!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r&&(rr=Ut())!==r?(dn=L,Mt=q,nn=rr,L=M={keyword:M.toLowerCase(),symbol:Mt,value:nn.value}):(l=L,L=r)):(l=L,L=r),L===r&&(L=ba())===r&&(L=l,(M=_f())===r&&(t.substr(l,10).toLowerCase()==="connection"?(M=t.substr(l,10),l+=10):(M=r,lt===0&&Jt(bf))),M!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r&&(rr=et())!==r?(dn=L,L=M=(function(On,fr,os){return{keyword:On.toLowerCase(),symbol:fr,value:`'${os.value}'`}})(M,q,rr)):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,t.substr(l,11).toLowerCase()==="compression"?(M=t.substr(l,11),l+=11):(M=r,lt===0&&Jt(Lb)),M!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r?(rr=l,t.charCodeAt(l)===39?(Dr="'",l++):(Dr=r,lt===0&&Jt(Fa)),Dr===r?(l=rr,rr=r):(t.substr(l,4).toLowerCase()==="zlib"?(Xr=t.substr(l,4),l+=4):(Xr=r,lt===0&&Jt(Kf)),Xr===r&&(t.substr(l,3).toLowerCase()==="lz4"?(Xr=t.substr(l,3),l+=3):(Xr=r,lt===0&&Jt(Nv)),Xr===r&&(t.substr(l,4).toLowerCase()==="none"?(Xr=t.substr(l,4),l+=4):(Xr=r,lt===0&&Jt(Uc)))),Xr===r?(l=rr,rr=r):(t.charCodeAt(l)===39?(Jr="'",l++):(Jr=r,lt===0&&Jt(Fa)),Jr===r?(l=rr,rr=r):rr=Dr=[Dr,Xr,Jr])),rr===r?(l=L,L=r):(dn=L,L=M=(function(On,fr,os){return{keyword:On.toLowerCase(),symbol:fr,value:os.join("").toUpperCase()}})(M,q,rr))):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,t.substr(l,6).toLowerCase()==="engine"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Gb)),M!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r&&(rr=ne())!==r?(dn=L,L=M=(function(On,fr,os){return{keyword:On.toLowerCase(),symbol:fr,value:os.toUpperCase()}})(M,q,rr)):(l=L,L=r)):(l=L,L=r)))),L}function Ht(){var L,M,q,rr,Dr,Xr,Jr;return L=l,(M=nu())!==r&&(q=g())!==r?(t.charCodeAt(l)===59?(rr=";",l++):(rr=r,lt===0&&Jt(je)),rr===r?(l=L,L=r):(dn=L,L=M={type:"select",...Mo()})):(l=L,L=r),L===r&&(L=(function(){var Mt=l,nn,On,fr,os,Es,ls,ws,de,E,U,Z,sr,xr,Sr,tt,Ct,Xt;return(nn=g())===r?(l=Mt,Mt=r):((On=rt())===r&&(On=null),On!==r&&g()!==r&&nu()!==r&&Gr()!==r?((fr=(function(){var Vt,In,Tn,jn,ts,d;if(Vt=l,(In=Or())!==r){for(Tn=[],jn=l,(ts=g())!==r&&(d=Or())!==r?jn=ts=[ts,d]:(l=jn,jn=r);jn!==r;)Tn.push(jn),jn=l,(ts=g())!==r&&(d=Or())!==r?jn=ts=[ts,d]:(l=jn,jn=r);Tn===r?(l=Vt,Vt=r):(dn=Vt,In=(function(N,H){let X=[N];for(let lr=0,wr=H.length;lr<wr;++lr)X.push(H[lr][1]);return X})(In,Tn),Vt=In)}else l=Vt,Vt=r;return Vt})())===r&&(fr=null),fr!==r&&g()!==r?((os=(function(){var Vt=l,In,Tn;return(In=Du())!==r&&g()!==r&&vc()!==r&&g()!==r&&pu()!==r&&g()!==r&&(Tn=_t())!==r&&g()!==r&&fu()!==r?(dn=Vt,In=(function(jn,ts,d){return console.lo,{type:jn+" ON",columns:d}})(In,0,Tn),Vt=In):(l=Vt,Vt=r),Vt===r&&(Vt=l,(In=Du())===r&&(In=null),In!==r&&(dn=Vt,In={type:In}),Vt=In),Vt})())===r&&(os=null),os!==r&&g()!==r?((Es=(function(){var Vt=l,In,Tn,jn,ts;(In=Ru())!==r&&g()!==r&&(Tn=pu())!==r&&g()!==r&&(jn=pn())!==r&&g()!==r&&fu()!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="percent"?(ts=t.substr(l,7),l+=7):(ts=r,lt===0&&Jt(xf)),ts===r&&(ts=null),ts===r?(l=Vt,Vt=r):(dn=Vt,In={value:jn,percent:(d=ts)&&d.toLowerCase(),parentheses:!0},Vt=In)):(l=Vt,Vt=r);var d;return Vt===r&&(Vt=l,(In=Ru())!==r&&g()!==r&&(Tn=pn())!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="percent"?(jn=t.substr(l,7),l+=7):(jn=r,lt===0&&Jt(xf)),jn===r&&(jn=null),jn===r?(l=Vt,Vt=r):(dn=Vt,In=(function(N,H){return{value:N,percent:H&&H.toLowerCase()}})(Tn,jn),Vt=In)):(l=Vt,Vt=r)),Vt})())===r&&(Es=null),Es!==r&&g()!==r&&(ls=dr())!==r&&g()!==r?((ws=Y())===r&&(ws=null),ws!==r&&g()!==r?((de=Q())===r&&(de=null),de!==r&&g()!==r?((E=Y())===r&&(E=null),E!==r&&g()!==r?((U=co())===r&&(U=null),U!==r&&g()!==r?((Z=(function(){var Vt=l,In,Tn;(In=A0())!==r&&g()!==r&&fl()!==r&&g()!==r?((Tn=Xi())===r&&(Tn=si()),Tn===r?(l=Vt,Vt=r):(dn=Vt,In={columns:(jn=Tn)==="ALL"?[{type:"origin",value:"all"}]:jn.value},Vt=In)):(l=Vt,Vt=r);var jn;return Vt})())===r&&(Z=null),Z!==r&&g()!==r?((sr=(function(){var Vt=l,In;return(function(){var Tn=l,jn,ts,d;return t.substr(l,6).toLowerCase()==="having"?(jn=t.substr(l,6),l+=6):(jn=r,lt===0&&Jt(Kb)),jn===r?(l=Tn,Tn=r):(ts=l,lt++,d=Is(),lt--,d===r?ts=void 0:(l=ts,ts=r),ts===r?(l=Tn,Tn=r):Tn=jn=[jn,ts]),Tn})()!==r&&g()!==r&&(In=wi())!==r?(dn=Vt,Vt=In):(l=Vt,Vt=r),Vt})())===r&&(sr=null),sr!==r&&g()!==r?((xr=(function(){var Vt=l,In;return(function(){var Tn=l,jn,ts,d;return t.substr(l,7).toLowerCase()==="qualify"?(jn=t.substr(l,7),l+=7):(jn=r,lt===0&&Jt(ys)),jn===r?(l=Tn,Tn=r):(ts=l,lt++,d=Is(),lt--,d===r?ts=void 0:(l=ts,ts=r),ts===r?(l=Tn,Tn=r):Tn=jn=[jn,ts]),Tn})()!==r&&g()!==r&&(In=wi())!==r?(dn=Vt,Vt=In):(l=Vt,Vt=r),Vt})())===r&&(xr=null),xr!==r&&g()!==r?((Sr=Au())===r&&(Sr=null),Sr!==r&&g()!==r?((tt=Ia())===r&&(tt=null),tt!==r&&g()!==r?((Ct=(function(){var Vt=l,In;return(function(){var Tn=l,jn,ts,d;return t.substr(l,6).toLowerCase()==="window"?(jn=t.substr(l,6),l+=6):(jn=r,lt===0&&Jt(_p)),jn===r?(l=Tn,Tn=r):(ts=l,lt++,d=Is(),lt--,d===r?ts=void 0:(l=ts,ts=r),ts===r?(l=Tn,Tn=r):Tn=jn=[jn,ts]),Tn})()!==r&&g()!==r&&(In=(function(){var Tn,jn,ts,d,N,H,X,lr;if(Tn=l,(jn=Eo())!==r){for(ts=[],d=l,(N=g())!==r&&(H=Wo())!==r&&(X=g())!==r&&(lr=Eo())!==r?d=N=[N,H,X,lr]:(l=d,d=r);d!==r;)ts.push(d),d=l,(N=g())!==r&&(H=Wo())!==r&&(X=g())!==r&&(lr=Eo())!==r?d=N=[N,H,X,lr]:(l=d,d=r);ts===r?(l=Tn,Tn=r):(dn=Tn,jn=Wr(jn,ts),Tn=jn)}else l=Tn,Tn=r;return Tn})())!==r?(dn=Vt,Vt={keyword:"window",type:"window",expr:In}):(l=Vt,Vt=r),Vt})())===r&&(Ct=null),Ct!==r&&g()!==r?((Xt=Y())===r&&(Xt=null),Xt===r?(l=Mt,Mt=r):(dn=Mt,nn=(function(Vt,In,Tn,jn,ts,d,N,H,X,lr,wr,i,b,m,x,tr){if(d&&H||d&&tr||H&&tr||d&&H&&tr)throw Error("A given SQL statement can contain at most one INTO clause");return N&&N.forEach(Cr=>Cr.table&&Zu.add(`select::${[Cr.db,Cr.schema].filter(Boolean).join(".")||null}::${Cr.table}`)),{with:Vt,type:"select",options:In,distinct:Tn,columns:ts,into:{...d||H||tr||{},position:(d?"column":H&&"from")||tr&&"end"},from:N,where:X,groupby:lr,having:wr,qualify:i,orderby:b,top:jn,limit:m,window:x,...Mo()}})(On,fr,os,Es,ls,ws,de,E,U,Z,sr,xr,Sr,tt,Ct,Xt),Mt=nn)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)):(l=Mt,Mt=r)),Mt})())===r&&(L=l,M=l,t.charCodeAt(l)===40?(q="(",l++):(q=r,lt===0&&Jt(o0)),q!==r&&(rr=g())!==r&&(Dr=Ht())!==r&&(Xr=g())!==r?(t.charCodeAt(l)===41?(Jr=")",l++):(Jr=r,lt===0&&Jt(xi)),Jr===r?(l=M,M=r):M=q=[q,rr,Dr,Xr,Jr]):(l=M,M=r),M!==r&&(dn=L,M={...M[2],parentheses_symbol:!0}),L=M),L}function rt(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On,fr;if(L=l,ap()!==r)if(g()!==r)if((M=k())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=k())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=k())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=Wr(M,q))}else l=L,L=r;else l=L,L=r;else l=L,L=r;if(L===r)if(L=l,g()!==r)if(ap()!==r)if((M=g())!==r)if((q=Jo())!==r)if((rr=g())!==r)if((Dr=k())!==r){for(Xr=[],Jr=l,(Mt=g())!==r&&(nn=Wo())!==r&&(On=g())!==r&&(fr=k())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r);Jr!==r;)Xr.push(Jr),Jr=l,(Mt=g())!==r&&(nn=Wo())!==r&&(On=g())!==r&&(fr=k())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r);Xr===r?(l=L,L=r):(dn=L,L=(function(os,Es){return os.recursive=!0,Wr(os,Es)})(Dr,Xr))}else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;return L}function k(){var L,M,q,rr;return L=l,(M=et())===r&&(M=ne()),M!==r&&g()!==r?((q=Lr())===r&&(q=null),q!==r&&g()!==r&&yi()!==r&&g()!==r&&pu()!==r&&g()!==r&&(rr=oi())!==r&&g()!==r&&fu()!==r?(dn=L,L=M=(function(Dr,Xr,Jr){return typeof Dr=="string"&&(Dr={type:"default",value:Dr}),{name:Dr,stmt:Jr,columns:Xr,...Mo()}})(M,q,rr)):(l=L,L=r)):(l=L,L=r),L}function Lr(){var L,M;return L=l,pu()!==r&&g()!==r&&(M=_t())!==r&&g()!==r&&fu()!==r?(dn=L,L=M):(l=L,L=r),L}function Or(){var L,M;return L=l,(M=(function(){var q;return t.substr(l,19).toLowerCase()==="sql_calc_found_rows"?(q=t.substr(l,19),l+=19):(q=r,lt===0&&Jt(xa)),q})())===r&&((M=(function(){var q;return t.substr(l,9).toLowerCase()==="sql_cache"?(q=t.substr(l,9),l+=9):(q=r,lt===0&&Jt(Ra)),q})())===r&&(M=(function(){var q;return t.substr(l,12).toLowerCase()==="sql_no_cache"?(q=t.substr(l,12),l+=12):(q=r,lt===0&&Jt(or)),q})()),M===r&&(M=(function(){var q;return t.substr(l,14).toLowerCase()==="sql_big_result"?(q=t.substr(l,14),l+=14):(q=r,lt===0&&Jt(ju)),q})())===r&&(M=(function(){var q;return t.substr(l,16).toLowerCase()==="sql_small_result"?(q=t.substr(l,16),l+=16):(q=r,lt===0&&Jt(Nt)),q})())===r&&(M=(function(){var q;return t.substr(l,17).toLowerCase()==="sql_buffer_result"?(q=t.substr(l,17),l+=17):(q=r,lt===0&&Jt(Il)),q})())),M!==r&&(dn=L,M=M),L=M}function Fr(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="exclude"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Zf)),M!==r&&g()!==r&&(q=pu())!==r&&g()!==r&&(rr=si())!==r&&g()!==r&&fu()!==r?(dn=L,L=M={type:"function",name:{name:[{type:"origin",value:"exclude"}]},args:rr}):(l=L,L=r),L===r&&(L=l,t.substr(l,7).toLowerCase()==="exclude"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Zf)),M!==r&&g()!==r&&(q=nr())!==r?(dn=L,L=M=(function(Dr){return{type:"function",name:{name:[{type:"origin",value:"exclude"}]},args:{type:"expr_list",value:[Dr]},args_parentheses:!1}})(q)):(l=L,L=r)),L}function dr(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Un())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Un())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Un())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q))}else l=L,L=r;return L}function It(){var L,M,q;return L=l,(M=Vu())!==r&&g()!==r?((q=Ut())===r&&(q=et()),q!==r&&g()!==r&&ra()!==r?(dn=L,L=M={brackets:!0,index:q}):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=Wf())!==r&&g()!==r&&(q=qr())!==r?(dn=L,L=M=(function(rr,Dr){return{notation:rr,index:{type:"default",value:Dr}}})(M,q)):(l=L,L=r)),L}function Dt(){var L,M,q,rr,Dr,Xr;if(L=l,(M=It())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=It())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=It())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q,1))}else l=L,L=r;return L}function Ln(){var L,M,q,rr,Dr;return L=l,(M=(function(){var Xr,Jr,Mt,nn,On,fr,os,Es;if(Xr=l,(Jr=Zo())!==r){for(Mt=[],nn=l,(On=g())===r?(l=nn,nn=r):((fr=_i())===r&&(fr=Nc())===r&&(fr=z()),fr!==r&&(os=g())!==r&&(Es=Zo())!==r?nn=On=[On,fr,os,Es]:(l=nn,nn=r));nn!==r;)Mt.push(nn),nn=l,(On=g())===r?(l=nn,nn=r):((fr=_i())===r&&(fr=Nc())===r&&(fr=z()),fr!==r&&(os=g())!==r&&(Es=Zo())!==r?nn=On=[On,fr,os,Es]:(l=nn,nn=r));Mt===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(ls,ws){let de=ls.ast;if(de&&de.type==="select"&&(!(ls.parentheses_symbol||ls.parentheses||ls.ast.parentheses||ls.ast.parentheses_symbol)||de.columns.length!==1||de.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!ws||ws.length===0)return ls;let E=ws.length,U=ws[E-1][3];for(let Z=E-1;Z>=0;Z--){let sr=Z===0?ls:ws[Z-1][3];U=Gu(ws[Z][1],sr,U)}return U})(Jr,Mt),Xr=Jr)}else l=Xr,Xr=r;return Xr})())!==r&&g()!==r?((q=Dt())===r&&(q=null),q===r?(l=L,L=r):(dn=L,rr=M,(Dr=q)&&(rr.array_index=Dr),L=M=rr)):(l=L,L=r),L}function Un(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es;if(L=l,(M=Xi())===r&&(M=$b()),M!==r&&(q=g())!==r?((rr=Fr())===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws){return Hr.add("select::null::(.*)"),{expr:{type:"column_ref",table:null,column:"*",suffix:ws},as:null,...Mo()}})(0,rr))):(l=L,L=r),L===r&&(L=l,(M=Qo())!==r&&(dn=L,M=(function(ls){return{expr:ls,as:null,...Mo()}})(M)),(L=M)===r)){if(L=l,(M=Ln())!==r)if((q=g())!==r)if((rr=ms())!==r)if((Dr=g())!==r){for(Xr=[],Jr=l,(Mt=g())===r?(l=Jr,Jr=r):((nn=ir())===r&&(nn=rs()),nn!==r&&(On=g())!==r&&(fr=Ln())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r));Jr!==r;)Xr.push(Jr),Jr=l,(Mt=g())===r?(l=Jr,Jr=r):((nn=ir())===r&&(nn=rs()),nn!==r&&(On=g())!==r&&(fr=Ln())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r));Xr!==r&&(Jr=g())!==r?((Mt=yt())===r&&(Mt=null),Mt===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws,de,E){return{...ws,as:E,type:"cast",expr:ls,tail:de&&de[0]&&{operator:de[0][1],expr:de[0][3]},...Mo()}})(M,rr,Xr,Mt))):(l=L,L=r)}else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;L===r&&(L=l,M=l,(q=qr())!==r&&(rr=g())!==r&&(Dr=Wf())!==r?M=q=[q,rr,Dr]:(l=M,M=r),M===r&&(M=null),M===r?(l=L,L=r):(q=l,(rr=qr())!==r&&(Dr=g())!==r&&(Xr=Wf())!==r?q=rr=[rr,Dr,Xr]:(l=q,q=r),q===r&&(q=null),q!==r&&(rr=g())!==r?((Dr=Xi())===r&&(Dr=$b()),Dr!==r&&(Xr=g())!==r?((Jr=Fr())===r&&(Jr=null),Jr===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws,de){let E,U;return ls&&(E=null,U=ls[0]),ws&&(E=ls[0],U=ws[0]),Hr.add(`select::${U}::(.*)`),{expr:{type:"column_ref",table:U,schema:E,column:"*",suffix:de},as:null,...Mo()}})(M,q,Jr))):(l=L,L=r)):(l=L,L=r)),L===r&&(L=l,(M=Ln())!==r&&(q=g())!==r?((rr=yt())===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,Es=rr,(os=M).type!=="double_quote_string"&&os.type!=="single_quote_string"||Hr.add("select::null::"+os.value),L=M={type:"expr",expr:os,as:Es,...Mo()})):(l=L,L=r)))}return L}function u(){var L,M,q;return L=l,(M=yi())===r&&(M=null),M!==r&&g()!==r&&(q=bt())!==r?(dn=L,L=M=q):(l=L,L=r),L}function yt(){var L,M,q;return L=l,(M=yi())!==r&&g()!==r&&(q=bs())!==r?(dn=L,L=M=q):(l=L,L=r),L===r&&(L=l,(M=yi())===r&&(M=null),M!==r&&g()!==r&&(q=Ws())!==r?(dn=L,L=M=q):(l=L,L=r)),L}function Y(){var L,M,q;return L=l,le()!==r&&g()!==r&&(M=(function(){var rr,Dr,Xr,Jr,Mt,nn,On,fr;if(rr=l,(Dr=Bo())!==r){for(Xr=[],Jr=l,(Mt=g())!==r&&(nn=Wo())!==r&&(On=g())!==r&&(fr=Bo())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r);Jr!==r;)Xr.push(Jr),Jr=l,(Mt=g())!==r&&(nn=Wo())!==r&&(On=g())!==r&&(fr=Bo())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r);Xr===r?(l=rr,rr=r):(dn=rr,Dr=Wr(Dr,Xr),rr=Dr)}else l=rr,rr=r;return rr})())!==r?(dn=L,L={keyword:"var",type:"into",expr:M}):(l=L,L=r),L===r&&(L=l,le()!==r&&g()!==r?(t.substr(l,7).toLowerCase()==="outfile"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(W0)),M===r&&(t.substr(l,8).toLowerCase()==="dumpfile"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(jb))),M===r&&(M=null),M!==r&&g()!==r?((q=et())===r&&(q=qr()),q===r?(l=L,L=r):(dn=L,L={keyword:M,type:"into",expr:q})):(l=L,L=r)):(l=L,L=r)),L}function Q(){var L,M,q,rr,Dr;return L=l,vu()!==r&&g()!==r&&(M=Pr())!==r&&g()!==r?((q=(function(){var Xr=l,Jr,Mt,nn,On;(Jr=(function(){var Es=l,ls,ws,de;return t.substr(l,5).toLowerCase()==="pivot"?(ls=t.substr(l,5),l+=5):(ls=r,lt===0&&Jt(If)),ls===r?(l=Es,Es=r):(ws=l,lt++,de=Is(),lt--,de===r?ws=void 0:(l=ws,ws=r),ws===r?(l=Es,Es=r):(dn=Es,Es=ls="PIVOT")),Es})())!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=Mu())!==r&&g()!==r&&(nn=Tr())!==r&&g()!==r&&fu()!==r&&g()!==r?((On=yt())===r&&(On=null),On===r?(l=Xr,Xr=r):(dn=Xr,fr=nn,os=On,Jr={type:"pivot",expr:Mt,...fr,as:os},Xr=Jr)):(l=Xr,Xr=r);var fr,os;return Xr===r&&(Xr=l,(Jr=(function(){var Es=l,ls,ws,de;return t.substr(l,7).toLowerCase()==="unpivot"?(ls=t.substr(l,7),l+=7):(ls=r,lt===0&&Jt(Tl)),ls===r?(l=Es,Es=r):(ws=l,lt++,de=Is(),lt--,de===r?ws=void 0:(l=ws,ws=r),ws===r?(l=Es,Es=r):(dn=Es,Es=ls="UNPIVOT")),Es})())!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=nr())!==r&&g()!==r&&(nn=Tr())!==r&&g()!==r&&fu()!==r&&g()!==r?((On=yt())===r&&(On=null),On===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(Es,ls,ws){return{type:"unpivot",expr:Es,...ls,as:ws}})(Mt,nn,On),Xr=Jr)):(l=Xr,Xr=r)),Xr})())===r&&(q=null),q===r?(l=L,L=r):(dn=L,Dr=q,(rr=M)[0]&&(rr[0].operator=Dr),L=rr)):(l=L,L=r),L}function Tr(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="for"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(ev)),M!==r&&g()!==r&&(q=nr())!==r&&g()!==r&&(rr=mt())!==r?(dn=L,L=M=(function(Dr,Xr){return{column:Dr,in_expr:Xr}})(q,rr)):(l=L,L=r),L}function P(){var L,M,q;return L=l,(M=kt())!==r&&g()!==r&&tu()!==r&&g()!==r&&(q=kt())!==r?(dn=L,L=M=[M,q]):(l=L,L=r),L}function hr(){var L,M;return L=l,hi()!==r&&g()!==r?(t.substr(l,5).toLowerCase()==="btree"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Uf)),M===r&&(t.substr(l,4).toLowerCase()==="hash"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(u0)),M===r&&(t.substr(l,4).toLowerCase()==="gist"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(wb)),M===r&&(t.substr(l,3).toLowerCase()==="gin"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Ui))))),M===r?(l=L,L=r):(dn=L,L={keyword:"using",type:M.toLowerCase()})):(l=L,L=r),L}function ht(){var L,M,q,rr,Dr,Xr;if(L=l,(M=e())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=e())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=e())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=(function(Jr,Mt){let nn=[Jr];for(let On=0;On<Mt.length;On++)nn.push(Mt[On][1]);return nn})(M,q))}else l=L,L=r;return L}function e(){var L,M,q,rr,Dr,Xr;return L=l,(M=(function(){var Jr=l,Mt,nn,On;return t.substr(l,14).toLowerCase()==="key_block_size"?(Mt=t.substr(l,14),l+=14):(Mt=r,lt===0&&Jt(db)),Mt===r?(l=Jr,Jr=r):(nn=l,lt++,On=Is(),lt--,On===r?nn=void 0:(l=nn,nn=r),nn===r?(l=Jr,Jr=r):(dn=Jr,Jr=Mt="KEY_BLOCK_SIZE")),Jr})())!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r&&(rr=Ut())!==r?(dn=L,Dr=q,Xr=rr,L=M={type:M.toLowerCase(),symbol:Dr,expr:Xr}):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=ne())!==r&&g()!==r&&(q=Oo())!==r&&g()!==r?((rr=Ut())===r&&(rr=qr()),rr===r?(l=L,L=r):(dn=L,L=M=(function(Jr,Mt,nn){return{type:Jr.toLowerCase(),symbol:Mt,expr:typeof nn=="string"&&{type:"origin",value:nn}||nn}})(M,q,rr))):(l=L,L=r),L===r&&(L=hr())===r&&(L=l,t.substr(l,4).toLowerCase()==="with"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(uv)),M!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="parser"?(q=t.substr(l,6),l+=6):(q=r,lt===0&&Jt(yb)),q!==r&&g()!==r&&(rr=ne())!==r?(dn=L,L=M={type:"with parser",expr:rr}):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,t.substr(l,7).toLowerCase()==="visible"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(hb)),M===r&&(t.substr(l,9).toLowerCase()==="invisible"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(Kv))),M!==r&&(dn=L,M=(function(Jr){return{type:Jr.toLowerCase(),expr:Jr.toLowerCase()}})(M)),(L=M)===r&&(L=Qr())))),L}function Pr(){var L,M,q,rr;if(L=l,(M=Yn())!==r){for(q=[],rr=Mr();rr!==r;)q.push(rr),rr=Mr();q===r?(l=L,L=r):(dn=L,L=M=Gc(M,q))}else l=L,L=r;return L}function Mr(){var L,M,q;return L=l,g()!==r&&(M=Wo())!==r&&g()!==r&&(q=Yn())!==r?(dn=L,L=q):(l=L,L=r),L===r&&(L=l,g()!==r&&(M=(function(){var rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es,ls;if(rr=l,(Dr=K())!==r)if(g()!==r)if((Xr=Yn())!==r)if(g()!==r)if((Jr=hi())!==r)if(g()!==r)if(pu()!==r)if(g()!==r)if((Mt=Ar())!==r){for(nn=[],On=l,(fr=g())!==r&&(os=Wo())!==r&&(Es=g())!==r&&(ls=Ar())!==r?On=fr=[fr,os,Es,ls]:(l=On,On=r);On!==r;)nn.push(On),On=l,(fr=g())!==r&&(os=Wo())!==r&&(Es=g())!==r&&(ls=Ar())!==r?On=fr=[fr,os,Es,ls]:(l=On,On=r);nn!==r&&(On=g())!==r&&(fr=fu())!==r?(dn=rr,ws=Dr,E=Mt,U=nn,(de=Xr).join=ws,de.using=Wr(E,U),rr=Dr=de):(l=rr,rr=r)}else l=rr,rr=r;else l=rr,rr=r;else l=rr,rr=r;else l=rr,rr=r;else l=rr,rr=r;else l=rr,rr=r;else l=rr,rr=r;else l=rr,rr=r;else l=rr,rr=r;var ws,de,E,U;return rr===r&&(rr=l,(Dr=K())!==r&&g()!==r&&(Xr=Yn())!==r&&g()!==r?((Jr=Ve())===r&&(Jr=null),Jr===r?(l=rr,rr=r):(dn=rr,Dr=(function(Z,sr,xr){return sr.join=Z,sr.on=xr,sr})(Dr,Xr,Jr),rr=Dr)):(l=rr,rr=r),rr===r&&(rr=l,(Dr=K())===r&&(Dr=yn()),Dr!==r&&g()!==r&&(Xr=pu())!==r&&g()!==r?((Jr=ka())===r&&(Jr=Pr()),Jr!==r&&g()!==r&&fu()!==r&&g()!==r?((Mt=yt())===r&&(Mt=null),Mt!==r&&(nn=g())!==r?((On=Ve())===r&&(On=null),On===r?(l=rr,rr=r):(dn=rr,Dr=(function(Z,sr,xr,Sr){return Array.isArray(sr)&&(sr={type:"tables",expr:sr}),sr.parentheses=!0,{expr:sr,as:xr,join:Z,on:Sr,...Mo()}})(Dr,Jr,Mt,On),rr=Dr)):(l=rr,rr=r)):(l=rr,rr=r)):(l=rr,rr=r))),rr})())!==r?(dn=L,L=M):(l=L,L=r)),L}function kn(){var L,M,q,rr,Dr;return L=l,t.substr(l,8).toLowerCase()==="rowcount"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(_v)),M===r&&(t.substr(l,9).toLowerCase()==="timelimit"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(kf))),M!==r&&g()!==r?(t.substr(l,2)==="=>"?(q="=>",l+=2):(q=r,lt===0&&Jt(vf)),q!==r&&g()!==r&&(rr=Ut())!==r?(dn=L,Dr=rr,L=M={type:M.toLowerCase(),symbol:"=>",value:Dr}):(l=L,L=r)):(l=L,L=r),L}function Yn(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es;if(L=l,(M=(function(){var ls;return t.substr(l,4).toLowerCase()==="dual"?(ls=t.substr(l,4),l+=4):(ls=r,lt===0&&Jt(Ge)),ls})())!==r&&(dn=L,M={type:"dual"}),(L=M)===r&&(L=l,(M=rl())!==r&&g()!==r?((q=u())===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M={expr:M,as:q,...Mo()})):(l=L,L=r),L===r)){if(L=l,(M=Rc())!==r)if(g()!==r)if((q=pu())!==r)if(g()!==r)if(t.substr(l,9).toLowerCase()==="generator"?(rr=t.substr(l,9),l+=9):(rr=r,lt===0&&Jt(ki)),rr!==r)if(g()!==r)if((Dr=pu())!==r)if((Xr=g())!==r){for(Jr=[],Mt=kn();Mt!==r;)Jr.push(Mt),Mt=kn();Jr!==r&&(Mt=g())!==r&&(nn=fu())!==r&&(On=g())!==r&&(fr=fu())!==r&&(os=g())!==r?((Es=u())===r&&(Es=null),Es===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws){return{expr:{keyword:"table",type:"generator",generators:ls},as:ws,...Mo()}})(Jr,Es))):(l=L,L=r)}else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;L===r&&(L=l,t.substr(l,7).toLowerCase()==="lateral"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Hl)),M===r&&(M=null),M!==r&&g()!==r&&(q=pu())!==r&&g()!==r?((rr=ka())===r&&(rr=rl()),rr!==r&&g()!==r&&(Dr=fu())!==r&&(Xr=g())!==r?((Jr=u())===r&&(Jr=null),Jr===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws,de){return ws.parentheses=!0,{prefix:ls,expr:ws,as:de,...Mo()}})(M,rr,Jr))):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,t.substr(l,7).toLowerCase()==="lateral"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Hl)),M===r&&(M=null),M!==r&&g()!==r&&(q=pu())!==r&&g()!==r&&(rr=Pr())!==r&&g()!==r&&(Dr=fu())!==r&&(Xr=g())!==r?((Jr=u())===r&&(Jr=null),Jr===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws,de){return{prefix:ls,expr:ws={type:"tables",expr:ws,parentheses:!0},as:de,...Mo()}})(M,rr,Jr))):(l=L,L=r),L===r&&(L=l,t.substr(l,7).toLowerCase()==="lateral"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Hl)),M===r&&(M=null),M!==r&&g()!==r&&(q=fn())!==r&&g()!==r?((rr=yt())===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws,de){return{prefix:ls,type:"expr",expr:ws,as:de}})(M,q,rr))):(l=L,L=r),L===r&&(L=l,(M=kt())!==r&&g()!==r?(t.substr(l,11).toLowerCase()==="tablesample"?(q=t.substr(l,11),l+=11):(q=r,lt===0&&Jt(Eb)),q!==r&&g()!==r&&(rr=fn())!==r&&g()!==r?(Dr=l,t.substr(l,10).toLowerCase()==="repeatable"?(Xr=t.substr(l,10),l+=10):(Xr=r,lt===0&&Jt(Bb)),Xr!==r&&(Jr=g())!==r&&(Mt=pu())!==r&&(nn=g())!==r&&(On=Ut())!==r&&(fr=g())!==r&&(os=fu())!==r?Dr=Xr=[Xr,Jr,Mt,nn,On,fr,os]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr!==r&&(Xr=g())!==r?((Jr=yt())===r&&(Jr=null),Jr===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws,de,E){return{...ls,as:E,tablesample:{expr:ws,repeatable:de&&de[4]},...Mo()}})(M,rr,Dr,Jr))):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=kt())!==r&&g()!==r?((q=yt())===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws){return ls.type==="var"?(ls.as=ws,ls={...ls,...Mo()}):{...ls,as:ws,...Mo()}})(M,q))):(l=L,L=r))))))}return L}function K(){var L,M,q,rr;return L=l,(M=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,4).toLowerCase()==="left"?(Xr=t.substr(l,4),l+=4):(Xr=r,lt===0&&Jt(Wp)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):Dr=Xr=[Xr,Jr]),Dr})())!==r&&(q=g())!==r?((rr=cb())===r&&(rr=null),rr!==r&&g()!==r&&Ev()!==r?(dn=L,L=M="LEFT JOIN"):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,5).toLowerCase()==="right"?(Xr=t.substr(l,5),l+=5):(Xr=r,lt===0&&Jt(cd)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):Dr=Xr=[Xr,Jr]),Dr})())!==r&&(q=g())!==r?((rr=cb())===r&&(rr=null),rr!==r&&g()!==r&&Ev()!==r?(dn=L,L=M="RIGHT JOIN"):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,4).toLowerCase()==="full"?(Xr=t.substr(l,4),l+=4):(Xr=r,lt===0&&Jt(Vb)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):Dr=Xr=[Xr,Jr]),Dr})())!==r&&(q=g())!==r?((rr=cb())===r&&(rr=null),rr!==r&&g()!==r&&Ev()!==r?(dn=L,L=M="FULL JOIN"):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,t.substr(l,5).toLowerCase()==="cross"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(pa)),M!==r&&(q=g())!==r&&(rr=Ev())!==r?(dn=L,L=M="CROSS JOIN"):(l=L,L=r),L===r&&(L=l,M=l,(q=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,5).toLowerCase()==="inner"?(Xr=t.substr(l,5),l+=5):(Xr=r,lt===0&&Jt(_)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):Dr=Xr=[Xr,Jr]),Dr})())!==r&&(rr=g())!==r?M=q=[q,rr]:(l=M,M=r),M===r&&(M=null),M!==r&&(q=Ev())!==r?(dn=L,L=M="INNER JOIN"):(l=L,L=r))))),L}function kt(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn;return L=l,(M=qr())===r?(l=L,L=r):(q=l,(rr=g())!==r&&(Dr=Wf())!==r&&(Xr=g())!==r&&(Jr=qr())!==r?q=rr=[rr,Dr,Xr,Jr]:(l=q,q=r),q===r?(l=L,L=r):(rr=l,(Dr=g())!==r&&(Xr=Wf())!==r&&(Jr=g())!==r&&(Mt=qr())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r),rr===r?(l=L,L=r):(dn=L,L=M=(function(On,fr,os){let Es={db:null,table:On,...Mo()};return os!==null&&(Es.db=On,Es.schema=fr[3],Es.table=os[3]),Es})(M,q,rr)))),L===r&&(L=l,(M=qr())!==r&&(q=g())!==r&&(rr=Wf())!==r&&(Dr=g())!==r&&(Xr=$b())!==r?(dn=L,L=M={db:M,table:"*",...Mo()}):(l=L,L=r),L===r&&(L=l,(M=qr())===r?(l=L,L=r):(q=l,(rr=g())!==r&&(Dr=Wf())!==r&&(Xr=g())!==r&&(Jr=qr())!==r?q=rr=[rr,Dr,Xr,Jr]:(l=q,q=r),q===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(On,fr){let os={db:null,table:On,...Mo()};return fr!==null&&(os.db=On,os.table=fr[3]),os})(M,q))),L===r&&(L=l,(M=Bo())!==r&&(dn=L,(nn=M).db=null,nn.table=nn.name,M=nn),L=M))),L}function Js(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Zo())!==r){for(q=[],rr=l,(Dr=g())===r?(l=rr,rr=r):((Xr=_i())===r&&(Xr=Nc()),Xr!==r&&(Jr=g())!==r&&(Mt=Zo())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r));rr!==r;)q.push(rr),rr=l,(Dr=g())===r?(l=rr,rr=r):((Xr=_i())===r&&(Xr=Nc()),Xr!==r&&(Jr=g())!==r&&(Mt=Zo())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r));q===r?(l=L,L=r):(dn=L,L=M=(function(nn,On){let fr=On.length,os=nn;for(let Es=0;Es<fr;++Es)os=Gu(On[Es][1],os,On[Es][3]);return os})(M,q))}else l=L,L=r;return L}function Ve(){var L,M;return L=l,vc()!==r&&g()!==r&&(M=wi())!==r?(dn=L,L=M):(l=L,L=r),L}function co(){var L,M;return L=l,(function(){var q=l,rr,Dr,Xr;return t.substr(l,5).toLowerCase()==="where"?(rr=t.substr(l,5),l+=5):(rr=r,lt===0&&Jt(Qt)),rr===r?(l=q,q=r):(Dr=l,lt++,Xr=Is(),lt--,Xr===r?Dr=void 0:(l=Dr,Dr=r),Dr===r?(l=q,q=r):q=rr=[rr,Dr]),q})()!==r&&g()!==r&&(M=wi())!==r?(dn=L,L=M):(l=L,L=r),L}function _t(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=nr())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=nr())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=nr())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q))}else l=L,L=r;return L}function Eo(){var L,M,q;return L=l,(M=ne())!==r&&g()!==r&&yi()!==r&&g()!==r&&(q=ao())!==r?(dn=L,L=M={name:M,as_window_specification:q}):(l=L,L=r),L}function ao(){var L,M;return(L=ne())===r&&(L=l,pu()!==r&&g()!==r?((M=(function(){var q=l,rr,Dr,Xr;return(rr=Co())===r&&(rr=null),rr!==r&&g()!==r?((Dr=Au())===r&&(Dr=null),Dr!==r&&g()!==r?((Xr=(function(){var Jr=l,Mt,nn,On,fr;return(Mt=$t())!==r&&g()!==r?((nn=no())===r&&(nn=Ke()),nn===r?(l=Jr,Jr=r):(dn=Jr,Jr=Mt={type:"rows",expr:nn})):(l=Jr,Jr=r),Jr===r&&(Jr=l,(Mt=$t())!==r&&g()!==r&&(nn=Hu())!==r&&g()!==r&&(On=Ke())!==r&&g()!==r&&_i()!==r&&g()!==r&&(fr=no())!==r?(dn=Jr,Mt=Gu(nn,{type:"origin",value:"rows"},{type:"expr_list",value:[On,fr]}),Jr=Mt):(l=Jr,Jr=r),Jr===r&&(Jr=l,t.substr(l,5).toLowerCase()==="range"?(Mt=t.substr(l,5),l+=5):(Mt=r,lt===0&&Jt(Nl)),Mt!==r&&g()!==r&&(nn=Hu())!==r&&g()!==r&&(On=zo())!==r&&g()!==r&&_i()!==r&&g()!==r?((fr=zo())===r&&(fr=yo()),fr===r?(l=Jr,Jr=r):(dn=Jr,Mt=(function(os,Es,ls){return Gu(os,{type:"origin",value:"range"},{type:"expr_list",value:[Es,ls]})})(nn,On,fr),Jr=Mt)):(l=Jr,Jr=r))),Jr})())===r&&(Xr=null),Xr===r?(l=q,q=r):(dn=q,q=rr={name:null,partitionby:rr,orderby:Dr,window_frame_clause:Xr})):(l=q,q=r)):(l=q,q=r),q})())===r&&(M=null),M!==r&&g()!==r&&fu()!==r?(dn=L,L={window_specification:M||{},parentheses:!0}):(l=L,L=r)):(l=L,L=r)),L}function zo(){var L,M,q,rr;return L=l,(M=Ni())!==r&&g()!==r?(t.substr(l,9).toLowerCase()==="preceding"?(q=t.substr(l,9),l+=9):(q=r,lt===0&&Jt(wl)),q===r?(l=L,L=r):(dn=L,(rr=M).suffix={type:"origin",value:"preceding"},L=M=rr)):(l=L,L=r),L}function no(){var L,M,q,rr;return L=l,(M=lo())!==r&&g()!==r?(t.substr(l,9).toLowerCase()==="following"?(q=t.substr(l,9),l+=9):(q=r,lt===0&&Jt(Sv)),q===r?(l=L,L=r):(dn=L,(rr=M).value+=" FOLLOWING",L=M=rr)):(l=L,L=r),L===r&&(L=yo()),L}function Ke(){var L,M,q,rr,Dr;return L=l,(M=lo())!==r&&g()!==r?(t.substr(l,9).toLowerCase()==="preceding"?(q=t.substr(l,9),l+=9):(q=r,lt===0&&Jt(wl)),q===r&&(t.substr(l,9).toLowerCase()==="following"?(q=t.substr(l,9),l+=9):(q=r,lt===0&&Jt(Sv))),q===r?(l=L,L=r):(dn=L,Dr=q,(rr=M).value+=" "+Dr.toUpperCase(),L=M=rr)):(l=L,L=r),L===r&&(L=yo()),L}function yo(){var L,M,q;return L=l,t.substr(l,7).toLowerCase()==="current"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Hb)),M!==r&&g()!==r?(t.substr(l,3).toLowerCase()==="row"?(q=t.substr(l,3),l+=3):(q=r,lt===0&&Jt($c)),q===r?(l=L,L=r):(dn=L,L=M={type:"origin",value:"current row",...Mo()})):(l=L,L=r),L}function lo(){var L,M;return L=l,t.substr(l,9).toLowerCase()==="unbounded"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(Jf)),M!==r&&(dn=L,M={type:"origin",value:M.toUpperCase(),...Mo()}),(L=M)===r&&(L=Ut()),L}function Co(){var L,M;return L=l,cu()!==r&&g()!==r&&fl()!==r&&g()!==r&&(M=dr())!==r?(dn=L,L=M):(l=L,L=r),L}function Au(){var L,M;return L=l,Av()!==r&&g()!==r&&fl()!==r&&g()!==r&&(M=(function(){var q,rr,Dr,Xr,Jr,Mt,nn,On;if(q=l,(rr=la())!==r){for(Dr=[],Xr=l,(Jr=g())!==r&&(Mt=Wo())!==r&&(nn=g())!==r&&(On=la())!==r?Xr=Jr=[Jr,Mt,nn,On]:(l=Xr,Xr=r);Xr!==r;)Dr.push(Xr),Xr=l,(Jr=g())!==r&&(Mt=Wo())!==r&&(nn=g())!==r&&(On=la())!==r?Xr=Jr=[Jr,Mt,nn,On]:(l=Xr,Xr=r);Dr===r?(l=q,q=r):(dn=q,rr=Wr(rr,Dr),q=rr)}else l=q,q=r;return q})())!==r?(dn=L,L=M):(l=L,L=r),L}function la(){var L,M,q,rr,Dr,Xr,Jr;return L=l,(M=Zo())!==r&&g()!==r?((q=gu())===r&&(q=bl()),q===r&&(q=null),q!==r&&g()!==r?(rr=l,t.substr(l,5).toLowerCase()==="nulls"?(Dr=t.substr(l,5),l+=5):(Dr=r,lt===0&&Jt(wc)),Dr!==r&&(Xr=g())!==r?(t.substr(l,5).toLowerCase()==="first"?(Jr=t.substr(l,5),l+=5):(Jr=r,lt===0&&Jt(Ll)),Jr===r&&(t.substr(l,4).toLowerCase()==="last"?(Jr=t.substr(l,4),l+=4):(Jr=r,lt===0&&Jt(jl))),Jr===r&&(Jr=null),Jr===r?(l=rr,rr=r):rr=Dr=[Dr,Xr,Jr]):(l=rr,rr=r),rr===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,L=M=(function(Mt,nn,On){let fr={expr:Mt,type:nn};return fr.nulls=On&&[On[0],On[2]].filter(os=>os).join(" "),fr})(M,q,rr))):(l=L,L=r)):(l=L,L=r),L}function da(){var L;return(L=Ut())===r&&(L=Bo())===r&&(L=eo()),L}function Ia(){var L,M,q,rr,Dr,Xr,Jr;return L=l,M=l,(q=(function(){var Mt=l,nn,On,fr;return t.substr(l,5).toLowerCase()==="limit"?(nn=t.substr(l,5),l+=5):(nn=r,lt===0&&Jt(Yv)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):Mt=nn=[nn,On]),Mt})())!==r&&(rr=g())!==r?((Dr=da())===r&&(Dr=Xi()),Dr===r?(l=M,M=r):M=q=[q,rr,Dr]):(l=M,M=r),M===r&&(M=null),M!==r&&(q=g())!==r?(rr=l,(Dr=(function(){var Mt=l,nn,On,fr;return t.substr(l,6).toLowerCase()==="offset"?(nn=t.substr(l,6),l+=6):(nn=r,lt===0&&Jt(Lv)),nn===r?(l=Mt,Mt=r):(On=l,lt++,fr=Is(),lt--,fr===r?On=void 0:(l=On,On=r),On===r?(l=Mt,Mt=r):(dn=Mt,Mt=nn="OFFSET")),Mt})())!==r&&(Xr=g())!==r&&(Jr=da())!==r?rr=Dr=[Dr,Xr,Jr]:(l=rr,rr=r),rr===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,L=M=(function(Mt,nn){let On=[];return Mt&&On.push(typeof Mt[2]=="string"?{type:"origin",value:"all"}:Mt[2]),nn&&On.push(nn[2]),{seperator:nn&&nn[0]&&nn[0].toLowerCase()||"",value:On,...Mo()}})(M,rr))):(l=L,L=r),L}function Wt(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=ta())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=ta())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=ta())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q))}else l=L,L=r;return L}function ta(){var L,M,q,rr,Dr,Xr,Jr,Mt;return L=l,M=l,(q=qr())!==r&&(rr=g())!==r&&(Dr=Wf())!==r?M=q=[q,rr,Dr]:(l=M,M=r),M===r&&(M=null),M!==r&&(q=g())!==r&&(rr=bs())!==r&&(Dr=g())!==r?(t.charCodeAt(l)===61?(Xr="=",l++):(Xr=r,lt===0&&Jt(pf)),Xr!==r&&g()!==r&&(Jr=Zo())!==r?(dn=L,L=M=(function(nn,On,fr){return{column:On,value:fr,table:nn&&nn[0]}})(M,rr,Jr)):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,M=l,(q=qr())!==r&&(rr=g())!==r&&(Dr=Wf())!==r?M=q=[q,rr,Dr]:(l=M,M=r),M===r&&(M=null),M!==r&&(q=g())!==r&&(rr=bs())!==r&&(Dr=g())!==r?(t.charCodeAt(l)===61?(Xr="=",l++):(Xr=r,lt===0&&Jt(pf)),Xr!==r&&g()!==r&&(Jr=ad())!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=nr())!==r&&g()!==r&&fu()!==r?(dn=L,L=M=(function(nn,On,fr){return{column:On,value:fr,table:nn&&nn[0],keyword:"values"}})(M,rr,Mt)):(l=L,L=r)):(l=L,L=r)),L}function li(){var L,M,q;return L=l,(M=(function(){var rr=l,Dr,Xr,Jr;return t.substr(l,9).toLowerCase()==="returning"?(Dr=t.substr(l,9),l+=9):(Dr=r,lt===0&&Jt(ps)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="RETURNING")),rr})())!==r&&g()!==r?((q=dr())===r&&(q=Ht()),q===r?(l=L,L=r):(dn=L,L=M=(function(rr,Dr){return{type:rr&&rr.toLowerCase()||"returning",columns:Dr==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null,...Mo()}]||Dr}})(M,q))):(l=L,L=r),L}function ea(){var L,M;return(L=rl())===r&&(L=l,(M=ka())!==r&&(dn=L,M=M.ast),L=M),L}function Ml(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn;if(L=l,cu()!==r)if(g()!==r)if((M=pu())!==r)if(g()!==r)if((q=ne())!==r){for(rr=[],Dr=l,(Xr=g())!==r&&(Jr=Wo())!==r&&(Mt=g())!==r&&(nn=ne())!==r?Dr=Xr=[Xr,Jr,Mt,nn]:(l=Dr,Dr=r);Dr!==r;)rr.push(Dr),Dr=l,(Xr=g())!==r&&(Jr=Wo())!==r&&(Mt=g())!==r&&(nn=ne())!==r?Dr=Xr=[Xr,Jr,Mt,nn]:(l=Dr,Dr=r);rr!==r&&(Dr=g())!==r&&(Xr=fu())!==r?(dn=L,L=Wr(q,rr)):(l=L,L=r)}else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;return L===r&&(L=l,cu()!==r&&g()!==r&&(M=xu())!==r?(dn=L,L=M):(l=L,L=r)),L}function Le(){var L,M;return L=l,(M=eu())!==r&&(dn=L,M="insert"),(L=M)===r&&(L=l,(M=Bu())!==r&&(dn=L,M="replace"),L=M),L}function rl(){var L,M;return L=l,ad()!==r&&g()!==r&&(M=(function(){var q,rr,Dr,Xr,Jr,Mt,nn,On;if(q=l,(rr=xu())!==r){for(Dr=[],Xr=l,(Jr=g())!==r&&(Mt=Wo())!==r&&(nn=g())!==r&&(On=xu())!==r?Xr=Jr=[Jr,Mt,nn,On]:(l=Xr,Xr=r);Xr!==r;)Dr.push(Xr),Xr=l,(Jr=g())!==r&&(Mt=Wo())!==r&&(nn=g())!==r&&(On=xu())!==r?Xr=Jr=[Jr,Mt,nn,On]:(l=Xr,Xr=r);Dr===r?(l=q,q=r):(dn=q,rr=Wr(rr,Dr),q=rr)}else l=q,q=r;return q})())!==r?(dn=L,L={type:"values",values:M}):(l=L,L=r),L}function xu(){var L,M;return L=l,pu()!==r&&g()!==r&&(M=si())!==r&&g()!==r&&fu()!==r?(dn=L,L=M):(l=L,L=r),L}function si(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Zo())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Zo())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Zo())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=(function(nn,On){let fr={type:"expr_list"};return fr.value=Wr(nn,On),fr})(M,q))}else l=L,L=r;return L}function Ni(){var L,M,q;return L=l,ue()!==r&&g()!==r&&(M=Zo())!==r&&g()!==r&&(q=(function(){var rr;return(rr=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,4).toLowerCase()==="year"?(Xr=t.substr(l,4),l+=4):(Xr=r,lt===0&&Jt(rp)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="YEAR")),Dr})())===r&&(rr=(function(){var Dr,Xr,Jr,Mt;return t.substr(l,5).toLowerCase()==="month"?(Dr=t.substr(l,5),l+=5):(Dr=r,lt===0&&Jt(O0)),Dr===r&&(t.substr(l,2).toLowerCase()==="mm"?(Dr=t.substr(l,2),l+=2):(Dr=r,lt===0&&Jt(Al)),Dr===r&&(t.substr(l,3).toLowerCase()==="mon"?(Dr=t.substr(l,3),l+=3):(Dr=r,lt===0&&Jt(D0)),Dr===r&&(t.substr(l,4).toLowerCase()==="mons"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(Ac)),Dr===r&&(Dr=l,t.substr(l,6).toLowerCase()==="months"?(Xr=t.substr(l,6),l+=6):(Xr=r,lt===0&&Jt(mc)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="MONTH")))))),Dr})())===r&&(rr=(function(){var Dr,Xr,Jr,Mt;return t.substr(l,4).toLowerCase()==="week"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(Mp)),Dr===r&&(t.substr(l,1).toLowerCase()==="w"?(Dr=t.charAt(l),l++):(Dr=r,lt===0&&Jt(Tc)),Dr===r&&(t.substr(l,2).toLowerCase()==="wk"?(Dr=t.substr(l,2),l+=2):(Dr=r,lt===0&&Jt(y0)),Dr===r&&(t.substr(l,10).toLowerCase()==="weekofyear"?(Dr=t.substr(l,10),l+=10):(Dr=r,lt===0&&Jt(bi)),Dr===r&&(t.substr(l,3).toLowerCase()==="woy"?(Dr=t.substr(l,3),l+=3):(Dr=r,lt===0&&Jt(Yc)),Dr===r&&(t.substr(l,2).toLowerCase()==="wy"?(Dr=t.substr(l,2),l+=2):(Dr=r,lt===0&&Jt(Z0)),Dr===r&&(Dr=l,t.substr(l,5).toLowerCase()==="weeks"?(Xr=t.substr(l,5),l+=5):(Xr=r,lt===0&&Jt(lc)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="WEEK")))))))),Dr})())===r&&(rr=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,3).toLowerCase()==="day"?(Xr=t.substr(l,3),l+=3):(Xr=r,lt===0&&Jt(xp)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="DAY")),Dr})())===r&&(rr=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,4).toLowerCase()==="hour"?(Xr=t.substr(l,4),l+=4):(Xr=r,lt===0&&Jt(dp)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="HOUR")),Dr})())===r&&(rr=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,6).toLowerCase()==="minute"?(Xr=t.substr(l,6),l+=6):(Xr=r,lt===0&&Jt(gb)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="MINUTE")),Dr})())===r&&(rr=(function(){var Dr=l,Xr,Jr,Mt;return t.substr(l,6).toLowerCase()==="second"?(Xr=t.substr(l,6),l+=6):(Xr=r,lt===0&&Jt(ac)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="SECOND")),Dr})()),rr})())!==r?(dn=L,L={type:"interval",expr:M,unit:q.toLowerCase()}):(l=L,L=r),L===r&&(L=l,ue()!==r&&g()!==r&&(M=et())!==r?(dn=L,L=(function(rr){return{type:"interval",expr:rr,unit:""}})(M)):(l=L,L=r)),L}function tl(){var L,M,q,rr,Dr,Xr,Jr,Mt;return L=l,Yf()!==r&&g()!==r&&(M=Dl())!==r&&g()!==r?((q=bc())===r&&(q=null),q!==r&&g()!==r&&(rr=mv())!==r&&g()!==r?((Dr=Yf())===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,Jr=M,(Mt=q)&&Jr.push(Mt),L={type:"case",expr:null,args:Jr})):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,Yf()!==r&&g()!==r&&(M=Zo())!==r&&g()!==r&&(q=Dl())!==r&&g()!==r?((rr=bc())===r&&(rr=null),rr!==r&&g()!==r&&(Dr=mv())!==r&&g()!==r?((Xr=Yf())===r&&(Xr=null),Xr===r?(l=L,L=r):(dn=L,L=(function(nn,On,fr){return fr&&On.push(fr),{type:"case",expr:nn,args:On}})(M,q,rr))):(l=L,L=r)):(l=L,L=r)),L}function Dl(){var L,M,q,rr,Dr,Xr;if(L=l,(M=$a())!==r)if(g()!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=$a())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=$a())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q,1))}else l=L,L=r;else l=L,L=r;return L}function $a(){var L,M,q;return L=l,sf()!==r&&g()!==r&&(M=wi())!==r&&g()!==r&&(function(){var rr=l,Dr,Xr,Jr;return t.substr(l,4).toLowerCase()==="then"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(xb)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):rr=Dr=[Dr,Xr]),rr})()!==r&&g()!==r&&(q=Ln())!==r?(dn=L,L={type:"when",cond:M,result:q}):(l=L,L=r),L}function bc(){var L,M;return L=l,(function(){var q=l,rr,Dr,Xr;return t.substr(l,4).toLowerCase()==="else"?(rr=t.substr(l,4),l+=4):(rr=r,lt===0&&Jt(Zb)),rr===r?(l=q,q=r):(Dr=l,lt++,Xr=Is(),lt--,Xr===r?Dr=void 0:(l=Dr,Dr=r),Dr===r?(l=q,q=r):q=rr=[rr,Dr]),q})()!==r&&g()!==r&&(M=Zo())!==r?(dn=L,L={type:"else",result:M}):(l=L,L=r),L}function Wu(){var L;return(L=(function(){var M,q,rr,Dr,Xr,Jr,Mt,nn;if(M=l,(q=j())!==r){for(rr=[],Dr=l,(Xr=Gr())!==r&&(Jr=Nc())!==r&&(Mt=g())!==r&&(nn=j())!==r?Dr=Xr=[Xr,Jr,Mt,nn]:(l=Dr,Dr=r);Dr!==r;)rr.push(Dr),Dr=l,(Xr=Gr())!==r&&(Jr=Nc())!==r&&(Mt=g())!==r&&(nn=j())!==r?Dr=Xr=[Xr,Jr,Mt,nn]:(l=Dr,Dr=r);rr===r?(l=M,M=r):(dn=M,q=a0(q,rr),M=q)}else l=M,M=r;return M})())===r&&(L=(function(){var M,q,rr,Dr,Xr,Jr;if(M=l,(q=ir())!==r){if(rr=[],Dr=l,(Xr=g())!==r&&(Jr=Ds())!==r?Dr=Xr=[Xr,Jr]:(l=Dr,Dr=r),Dr!==r)for(;Dr!==r;)rr.push(Dr),Dr=l,(Xr=g())!==r&&(Jr=Ds())!==r?Dr=Xr=[Xr,Jr]:(l=Dr,Dr=r);else rr=r;rr===r?(l=M,M=r):(dn=M,q=Fo(q,rr[0][1]),M=q)}else l=M,M=r;return M})()),L}function Zo(){var L;return(L=Wu())===r&&(L=ka()),L}function wi(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Zo())!==r){for(q=[],rr=l,(Dr=g())===r?(l=rr,rr=r):((Xr=_i())===r&&(Xr=Nc())===r&&(Xr=Wo()),Xr!==r&&(Jr=g())!==r&&(Mt=Zo())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r));rr!==r;)q.push(rr),rr=l,(Dr=g())===r?(l=rr,rr=r):((Xr=_i())===r&&(Xr=Nc())===r&&(Xr=Wo()),Xr!==r&&(Jr=g())!==r&&(Mt=Zo())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r));q===r?(l=L,L=r):(dn=L,L=M=(function(nn,On){let fr=On.length,os=nn,Es="";for(let ls=0;ls<fr;++ls)On[ls][1]===","?(Es=",",Array.isArray(os)||(os=[os]),os.push(On[ls][3])):os=Gu(On[ls][1],os,On[ls][3]);if(Es===","){let ls={type:"expr_list"};return ls.value=os,ls}return os})(M,q))}else l=L,L=r;return L}function j(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=ur())!==r){for(q=[],rr=l,(Dr=Gr())!==r&&(Xr=_i())!==r&&(Jr=g())!==r&&(Mt=ur())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=Gr())!==r&&(Xr=_i())!==r&&(Jr=g())!==r&&(Mt=ur())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=a0(M,q))}else l=L,L=r;return L}function ur(){var L,M,q,rr,Dr;return(L=Ir())===r&&(L=(function(){var Xr=l,Jr,Mt;(Jr=(function(){var fr=l,os=l,Es,ls,ws;(Es=ga())!==r&&(ls=g())!==r&&(ws=Tt())!==r?os=Es=[Es,ls,ws]:(l=os,os=r),os!==r&&(dn=fr,os=(de=os)[0]+" "+de[2]);var de;return(fr=os)===r&&(fr=Tt()),fr})())!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=ka())!==r&&g()!==r&&fu()!==r?(dn=Xr,nn=Jr,(On=Mt).parentheses=!0,Jr=Fo(nn,On),Xr=Jr):(l=Xr,Xr=r);var nn,On;return Xr})())===r&&(L=l,(M=ga())===r&&(M=l,t.charCodeAt(l)===33?(q="!",l++):(q=r,lt===0&&Jt(_l)),q===r?(l=M,M=r):(rr=l,lt++,t.charCodeAt(l)===61?(Dr="=",l++):(Dr=r,lt===0&&Jt(pf)),lt--,Dr===r?rr=void 0:(l=rr,rr=r),rr===r?(l=M,M=r):M=q=[q,rr])),M!==r&&(q=g())!==r&&(rr=ur())!==r?(dn=L,L=M=Fo("NOT",rr)):(l=L,L=r)),L}function Ir(){var L,M,q,rr,Dr;return L=l,(M=bn())!==r&&g()!==r?((q=(function(){var Xr;return(Xr=(function(){var Jr=l,Mt=[],nn=l,On,fr,os,Es;if((On=g())!==r&&(fr=s())!==r&&(os=g())!==r?((Es=bn())===r&&(Es=ks()),Es===r?(l=nn,nn=r):nn=On=[On,fr,os,Es]):(l=nn,nn=r),nn!==r)for(;nn!==r;)Mt.push(nn),nn=l,(On=g())!==r&&(fr=s())!==r&&(os=g())!==r?((Es=bn())===r&&(Es=ks()),Es===r?(l=nn,nn=r):nn=On=[On,fr,os,Es]):(l=nn,nn=r);else Mt=r;return Mt!==r&&(dn=Jr,Mt={type:"arithmetic",tail:Mt}),Jr=Mt})())===r&&(Xr=mt())===r&&(Xr=(function(){var Jr=l,Mt,nn,On;return(Mt=(function(){var fr=l,os=l,Es,ls,ws;(Es=ga())!==r&&(ls=g())!==r&&(ws=Hu())!==r?os=Es=[Es,ls,ws]:(l=os,os=r),os!==r&&(dn=fr,os=(de=os)[0]+" "+de[2]);var de;return(fr=os)===r&&(fr=Hu()),fr})())!==r&&g()!==r&&(nn=bn())!==r&&g()!==r&&_i()!==r&&g()!==r&&(On=bn())!==r?(dn=Jr,Jr=Mt={op:Mt,right:{type:"expr_list",value:[nn,On]}}):(l=Jr,Jr=r),Jr})())===r&&(Xr=(function(){var Jr=l,Mt,nn,On,fr,os,Es,ls,ws;return(Mt=rc())!==r&&(nn=g())!==r&&(On=bn())!==r?(dn=Jr,Jr=Mt={op:"IS",right:On}):(l=Jr,Jr=r),Jr===r&&(Jr=l,(Mt=rc())!==r&&(nn=g())!==r?(On=l,(fr=Du())!==r&&(os=g())!==r&&(Es=vu())!==r&&(ls=g())!==r&&(ws=kt())!==r?On=fr=[fr,os,Es,ls,ws]:(l=On,On=r),On===r?(l=Jr,Jr=r):(dn=Jr,Mt=(function(de){let{db:E,table:U}=de.pop(),Z=U==="*"?"*":`"${U}"`;return{op:"IS",right:{type:"default",value:"DISTINCT FROM "+(E?`"${E}".${Z}`:Z)}}})(On),Jr=Mt)):(l=Jr,Jr=r),Jr===r&&(Jr=l,Mt=l,(nn=rc())!==r&&(On=g())!==r&&(fr=ga())!==r?Mt=nn=[nn,On,fr]:(l=Mt,Mt=r),Mt!==r&&(nn=g())!==r&&(On=bn())!==r?(dn=Jr,Mt=(function(de){return{op:"IS NOT",right:de}})(On),Jr=Mt):(l=Jr,Jr=r))),Jr})())===r&&(Xr=(function(){var Jr=l,Mt,nn,On;(Mt=(function(){var ls=l,ws=l,de,E,U;(de=ga())!==r&&(E=g())!==r?((U=Ei())===r&&(U=rv()),U===r?(l=ws,ws=r):ws=de=[de,E,U]):(l=ws,ws=r),ws!==r&&(dn=ls,ws=(Z=ws)[0]+" "+Z[2]);var Z;return(ls=ws)===r&&(ls=Ei())===r&&(ls=rv())===r&&(ls=l,t.substr(l,7).toLowerCase()==="similar"?(ws=t.substr(l,7),l+=7):(ws=r,lt===0&&Jt(i0)),ws!==r&&(de=g())!==r&&(E=tu())!==r?(dn=ls,ls=ws="SIMILAR TO"):(l=ls,ls=r),ls===r&&(ls=l,(ws=ga())!==r&&(de=g())!==r?(t.substr(l,7).toLowerCase()==="similar"?(E=t.substr(l,7),l+=7):(E=r,lt===0&&Jt(i0)),E!==r&&(U=g())!==r&&tu()!==r?(dn=ls,ls=ws="NOT SIMILAR TO"):(l=ls,ls=r)):(l=ls,ls=r))),ls})())!==r&&g()!==r?((nn=Qs())===r&&(nn=Ir()),nn!==r&&g()!==r?((On=er())===r&&(On=null),On===r?(l=Jr,Jr=r):(dn=Jr,fr=Mt,os=nn,(Es=On)&&(os.escape=Es),Jr=Mt={op:fr,right:os})):(l=Jr,Jr=r)):(l=Jr,Jr=r);var fr,os,Es;return Jr})())===r&&(Xr=(function(){var Jr=l,Mt,nn,On;(Mt=(function(){var ls=l,ws=l,de,E,U;(de=ga())!==r&&(E=g())!==r&&(U=Rf())!==r?ws=de=[de,E,U]:(l=ws,ws=r),ws!==r&&(dn=ls,ws=(Z=ws)[0]+" "+Z[2]);var Z;return(ls=ws)===r&&(ls=Rf()),ls})())!==r&&g()!==r?((nn=Qs())===r&&(nn=Ir()),nn!==r&&g()!==r?((On=er())===r&&(On=null),On===r?(l=Jr,Jr=r):(dn=Jr,fr=Mt,os=nn,(Es=On)&&(os.escape=Es),Jr=Mt={op:fr,right:os})):(l=Jr,Jr=r)):(l=Jr,Jr=r);var fr,os,Es;return Jr})()),Xr})())===r&&(q=null),q===r?(l=L,L=r):(dn=L,rr=M,L=M=(Dr=q)===null?rr:Dr.type==="arithmetic"?Aa(rr,Dr.tail):Gu(Dr.op,rr,Dr.right))):(l=L,L=r),L===r&&(L=et())===r&&(L=nr()),L}function s(){var L;return t.substr(l,2)===">="?(L=">=",l+=2):(L=r,lt===0&&Jt(Yl)),L===r&&(t.charCodeAt(l)===62?(L=">",l++):(L=r,lt===0&&Jt(Ab)),L===r&&(t.substr(l,2)==="<="?(L="<=",l+=2):(L=r,lt===0&&Jt(Mf)),L===r&&(t.substr(l,2)==="<>"?(L="<>",l+=2):(L=r,lt===0&&Jt(Wb)),L===r&&(t.charCodeAt(l)===60?(L="<",l++):(L=r,lt===0&&Jt(Df)),L===r&&(t.charCodeAt(l)===61?(L="=",l++):(L=r,lt===0&&Jt(pf)),L===r&&(t.substr(l,2)==="!="?(L="!=",l+=2):(L=r,lt===0&&Jt(mb)))))))),L}function er(){var L,M,q;return L=l,t.substr(l,6).toLowerCase()==="escape"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(ft)),M!==r&&g()!==r&&(q=et())!==r?(dn=L,L=M=(function(rr,Dr){return{type:"ESCAPE",value:Dr}})(0,q)):(l=L,L=r),L}function Lt(){var L,M,q,rr,Dr,Xr;return L=l,M=l,(q=ga())!==r&&(rr=g())!==r&&(Dr=vl())!==r?M=q=[q,rr,Dr]:(l=M,M=r),M!==r&&(dn=L,M=(Xr=M)[0]+" "+Xr[2]),(L=M)===r&&(L=vl()),L}function mt(){var L,M,q,rr;return L=l,(M=Lt())!==r&&g()!==r&&(q=pu())!==r&&g()!==r&&(rr=si())!==r&&g()!==r&&fu()!==r?(dn=L,L=M={op:M,right:rr}):(l=L,L=r),L===r&&(L=l,(M=Lt())!==r&&g()!==r?((q=Bo())===r&&(q=et())===r&&(q=fn()),q===r?(l=L,L=r):(dn=L,L=M=(function(Dr,Xr){return{op:Dr,right:Xr}})(M,q))):(l=L,L=r)),L}function bn(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Zr())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=ir())!==r&&(Jr=g())!==r&&(Mt=Zr())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=ir())!==r&&(Jr=g())!==r&&(Mt=Zr())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=(function(nn,On){if(On&&On.length&&nn.type==="column_ref"&&nn.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...Mo()}));return Aa(nn,On)})(M,q))}else l=L,L=r;return L}function ir(){var L;return t.charCodeAt(l)===43?(L="+",l++):(L=r,lt===0&&Jt(tn)),L===r&&(t.charCodeAt(l)===45?(L="-",l++):(L=r,lt===0&&Jt(_n))),L}function Zr(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=ut())!==r){for(q=[],rr=l,(Dr=g())===r?(l=rr,rr=r):((Xr=rs())===r&&(Xr=z()),Xr!==r&&(Jr=g())!==r&&(Mt=ut())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r));rr!==r;)q.push(rr),rr=l,(Dr=g())===r?(l=rr,rr=r):((Xr=rs())===r&&(Xr=z()),Xr!==r&&(Jr=g())!==r&&(Mt=ut())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r));q===r?(l=L,L=r):(dn=L,L=M=Aa(M,q))}else l=L,L=r;return L}function rs(){var L;return t.charCodeAt(l)===42?(L="*",l++):(L=r,lt===0&&Jt(En)),L===r&&(t.charCodeAt(l)===47?(L="/",l++):(L=r,lt===0&&Jt(Os)),L===r&&(t.charCodeAt(l)===37?(L="%",l++):(L=r,lt===0&&Jt(gs)),L===r&&(t.substr(l,2)==="||"?(L="||",l+=2):(L=r,lt===0&&Jt(Ys))))),L}function vs(){var L,M,q;return L=l,(M=nr())!==r&&g()!==r?((q=Dt())===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(rr,Dr){return Dr&&(rr.array_index=Dr),rr})(M,q))):(l=L,L=r),L}function Ds(){var L,M,q,rr,Dr,Xr;return(L=(function(){var Jr=l,Mt,nn,On,fr,os,Es,ls,ws;return(Mt=pc())===r&&(Mt=Si()),Mt!==r&&g()!==r&&(nn=pu())!==r&&g()!==r&&(On=Zo())!==r&&g()!==r&&(fr=yi())!==r&&g()!==r&&(os=lu())!==r&&g()!==r&&(Es=fu())!==r?(dn=Jr,Mt=(function(de,E,U){return{type:"cast",keyword:de.toLowerCase(),expr:E,symbol:"as",target:[U]}})(Mt,On,os),Jr=Mt):(l=Jr,Jr=r),Jr===r&&(Jr=l,(Mt=pc())===r&&(Mt=Si()),Mt!==r&&g()!==r&&(nn=pu())!==r&&g()!==r&&(On=Zo())!==r&&g()!==r&&(fr=yi())!==r&&g()!==r&&(os=of())!==r&&g()!==r&&(Es=pu())!==r&&g()!==r&&(ls=Cn())!==r&&g()!==r&&fu()!==r&&g()!==r&&(ws=fu())!==r?(dn=Jr,Mt=(function(de,E,U){return{type:"cast",keyword:de.toLowerCase(),expr:E,symbol:"as",target:[{dataType:"DECIMAL("+U+")"}]}})(Mt,On,ls),Jr=Mt):(l=Jr,Jr=r),Jr===r&&(Jr=l,(Mt=pc())===r&&(Mt=Si()),Mt!==r&&g()!==r&&(nn=pu())!==r&&g()!==r&&(On=Zo())!==r&&g()!==r&&(fr=yi())!==r&&g()!==r&&(os=of())!==r&&g()!==r&&(Es=pu())!==r&&g()!==r&&(ls=Cn())!==r&&g()!==r&&Wo()!==r&&g()!==r&&(ws=Cn())!==r&&g()!==r&&fu()!==r&&g()!==r&&fu()!==r?(dn=Jr,Mt=(function(de,E,U,Z){return{type:"cast",keyword:de.toLowerCase(),expr:E,symbol:"as",target:[{dataType:"DECIMAL("+U+", "+Z+")"}]}})(Mt,On,ls,ws),Jr=Mt):(l=Jr,Jr=r),Jr===r&&(Jr=l,(Mt=pc())===r&&(Mt=Si()),Mt!==r&&g()!==r&&(nn=pu())!==r&&g()!==r&&(On=Zo())!==r&&g()!==r&&(fr=yi())!==r&&g()!==r&&(os=(function(){var de;return(de=(function(){var E=l,U,Z,sr;return t.substr(l,6).toLowerCase()==="signed"?(U=t.substr(l,6),l+=6):(U=r,lt===0&&Jt(p)),U===r?(l=E,E=r):(Z=l,lt++,sr=Is(),lt--,sr===r?Z=void 0:(l=Z,Z=r),Z===r?(l=E,E=r):(dn=E,E=U="SIGNED")),E})())===r&&(de=Xc()),de})())!==r&&g()!==r?((Es=Oc())===r&&(Es=null),Es!==r&&g()!==r&&(ls=fu())!==r?(dn=Jr,Mt=(function(de,E,U,Z){return{type:"cast",keyword:de.toLowerCase(),expr:E,symbol:"as",target:[{dataType:U+(Z?" "+Z:"")}]}})(Mt,On,os,Es),Jr=Mt):(l=Jr,Jr=r)):(l=Jr,Jr=r),Jr===r&&(Jr=l,(Mt=pu())!==r&&g()!==r?((nn=Qs())===r&&(nn=Ni())===r&&(nn=Mu())===r&&(nn=su())===r&&(nn=fn())===r&&(nn=tl())===r&&(nn=vs())===r&&(nn=eo()),nn!==r&&g()!==r&&(On=fu())!==r&&g()!==r?((fr=ms())===r&&(fr=null),fr===r?(l=Jr,Jr=r):(dn=Jr,Mt=(function(de,E){return de.parentheses=!0,E?{type:"cast",keyword:"cast",expr:de,...E}:de})(nn,fr),Jr=Mt)):(l=Jr,Jr=r)):(l=Jr,Jr=r),Jr===r&&(Jr=l,(Mt=Qs())===r&&(Mt=Mu())===r&&(Mt=su())===r&&(Mt=fn())===r&&(Mt=tl())===r&&(Mt=Ni())===r&&(Mt=vs())===r&&(Mt=eo()),Mt!==r&&g()!==r?((nn=ms())===r&&(nn=null),nn===r?(l=Jr,Jr=r):(dn=Jr,Mt=(function(de,E){return E?{type:"cast",keyword:"cast",expr:de,...E}:de})(Mt,nn),Jr=Mt)):(l=Jr,Jr=r)))))),Jr})())===r&&(L=l,pu()!==r&&(M=g())!==r&&(q=wi())!==r&&(rr=g())!==r&&(Dr=fu())!==r?(dn=L,(Xr=q).parentheses=!0,L=Xr):(l=L,L=r),L===r&&(L=Bo())===r&&(L=l,g()===r?(l=L,L=r):(t.charCodeAt(l)===36?(M="$",l++):(M=r,lt===0&&Jt(Te)),M===r?(l=L,L=r):(t.charCodeAt(l)===60?(q="<",l++):(q=r,lt===0&&Jt(Df)),q!==r&&(rr=Ut())!==r?(t.charCodeAt(l)===62?(Dr=">",l++):(Dr=r,lt===0&&Jt(Ab)),Dr===r?(l=L,L=r):(dn=L,L={type:"origin",value:`$<${rr.value}>`})):(l=L,L=r))))),L}function ut(){var L,M,q,rr,Dr;return(L=(function(){var Xr,Jr,Mt,nn,On,fr,os,Es;if(Xr=l,(Jr=De())!==r)if(g()!==r){for(Mt=[],nn=l,(On=g())===r?(l=nn,nn=r):(t.substr(l,2)==="?|"?(fr="?|",l+=2):(fr=r,lt===0&&Jt(Be)),fr===r&&(t.substr(l,2)==="?&"?(fr="?&",l+=2):(fr=r,lt===0&&Jt(io)),fr===r&&(t.charCodeAt(l)===63?(fr="?",l++):(fr=r,lt===0&&Jt(Ro)),fr===r&&(t.substr(l,2)==="#-"?(fr="#-",l+=2):(fr=r,lt===0&&Jt(So)),fr===r&&(t.substr(l,3)==="#>>"?(fr="#>>",l+=3):(fr=r,lt===0&&Jt(uu)),fr===r&&(t.substr(l,2)==="#>"?(fr="#>",l+=2):(fr=r,lt===0&&Jt(ko)),fr===r&&(fr=G())===r&&(fr=w())===r&&(t.substr(l,2)==="@>"?(fr="@>",l+=2):(fr=r,lt===0&&Jt(yu)),fr===r&&(t.substr(l,2)==="<@"?(fr="<@",l+=2):(fr=r,lt===0&&Jt(au))))))))),fr!==r&&(os=g())!==r&&(Es=De())!==r?nn=On=[On,fr,os,Es]:(l=nn,nn=r));nn!==r;)Mt.push(nn),nn=l,(On=g())===r?(l=nn,nn=r):(t.substr(l,2)==="?|"?(fr="?|",l+=2):(fr=r,lt===0&&Jt(Be)),fr===r&&(t.substr(l,2)==="?&"?(fr="?&",l+=2):(fr=r,lt===0&&Jt(io)),fr===r&&(t.charCodeAt(l)===63?(fr="?",l++):(fr=r,lt===0&&Jt(Ro)),fr===r&&(t.substr(l,2)==="#-"?(fr="#-",l+=2):(fr=r,lt===0&&Jt(So)),fr===r&&(t.substr(l,3)==="#>>"?(fr="#>>",l+=3):(fr=r,lt===0&&Jt(uu)),fr===r&&(t.substr(l,2)==="#>"?(fr="#>",l+=2):(fr=r,lt===0&&Jt(ko)),fr===r&&(fr=G())===r&&(fr=w())===r&&(t.substr(l,2)==="@>"?(fr="@>",l+=2):(fr=r,lt===0&&Jt(yu)),fr===r&&(t.substr(l,2)==="<@"?(fr="<@",l+=2):(fr=r,lt===0&&Jt(au))))))))),fr!==r&&(os=g())!==r&&(Es=De())!==r?nn=On=[On,fr,os,Es]:(l=nn,nn=r));Mt===r?(l=Xr,Xr=r):(dn=Xr,ls=Jr,Jr=(ws=Mt)&&ws.length!==0?Aa(ls,ws):ls,Xr=Jr)}else l=Xr,Xr=r;else l=Xr,Xr=r;var ls,ws;return Xr})())===r&&(L=l,(M=(function(){var Xr;return t.charCodeAt(l)===33?(Xr="!",l++):(Xr=r,lt===0&&Jt(_l)),Xr===r&&(t.charCodeAt(l)===45?(Xr="-",l++):(Xr=r,lt===0&&Jt(_n)),Xr===r&&(t.charCodeAt(l)===43?(Xr="+",l++):(Xr=r,lt===0&&Jt(tn)),Xr===r&&(t.charCodeAt(l)===126?(Xr="~",l++):(Xr=r,lt===0&&Jt(ye))))),Xr})())===r?(l=L,L=r):(q=l,(rr=g())!==r&&(Dr=ut())!==r?q=rr=[rr,Dr]:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M=Fo(M,q[1])))),L}function De(){var L,M,q,rr,Dr;return L=l,(M=Ds())!==r&&g()!==r?((q=Dt())===r&&(q=null),q===r?(l=L,L=r):(dn=L,rr=M,(Dr=q)&&(rr.array_index=Dr),L=M=rr)):(l=L,L=r),L}function Qo(){var L,M,q,rr,Dr,Xr;if(L=l,t.substr(l,1).toLowerCase()==="e"?(M=t.charAt(l),l++):(M=r,lt===0&&Jt(Iu)),M!==r)if(t.charCodeAt(l)===39?(q="'",l++):(q=r,lt===0&&Jt(Fa)),q!==r)if(g()!==r){for(rr=[],Dr=At();Dr!==r;)rr.push(Dr),Dr=At();rr!==r&&(Dr=g())!==r?(t.charCodeAt(l)===39?(Xr="'",l++):(Xr=r,lt===0&&Jt(Fa)),Xr===r?(l=L,L=r):(dn=L,L=M={type:"default",value:`E'${rr.join("")}'`})):(l=L,L=r)}else l=L,L=r;else l=L,L=r;else l=L,L=r;return L}function A(){var L;return(L=Wf())===r&&(L=iu()),L}function nr(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es;if((L=Qo())===r&&(L=l,M=l,(q=qr())!==r&&(rr=g())!==r&&(Dr=Wf())!==r?M=q=[q,rr,Dr]:(l=M,M=r),M===r&&(M=null),M!==r&&(q=g())!==r&&(rr=$b())!==r?(dn=L,L=M=(function(ls){let ws=ls&&ls[0]||null;return Hr.add(`select::${ws}::(.*)`),{type:"column_ref",table:ws,column:"*",...Mo()}})(M)):(l=L,L=r),L===r)){if(L=l,(M=qr())!==r)if(q=l,(rr=g())!==r&&(Dr=A())!==r&&(Xr=g())!==r&&(Jr=(function(){var ls;return(ls=ne())===r&&(ls=xt()),ls})())!==r?q=rr=[rr,Dr,Xr,Jr]:(l=q,q=r),q!==r){if(rr=[],Dr=l,(Xr=g())!==r&&(Jr=A())!==r&&(Mt=g())!==r&&(nn=bs())!==r?Dr=Xr=[Xr,Jr,Mt,nn]:(l=Dr,Dr=r),Dr!==r)for(;Dr!==r;)rr.push(Dr),Dr=l,(Xr=g())!==r&&(Jr=A())!==r&&(Mt=g())!==r&&(nn=bs())!==r?Dr=Xr=[Xr,Jr,Mt,nn]:(l=Dr,Dr=r);else rr=r;rr===r?(l=L,L=r):(Dr=l,(Xr=g())!==r&&(Jr=ha())!==r?Dr=Xr=[Xr,Jr]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws,de,E){return de.length===1?(Hr.add(`select::${ls}.${ws[3]}::${de[0][3]}`),{type:"column_ref",schema:ls,notations:[ws[1],de[0][1]],table:ws[3],column:de[0][3],collate:E&&E[1],...Mo()}):{type:"column_ref",column:{expr:Aa(Gu(column_symbol,ls,ws[3]),de)},collate:E&&E[1],...Mo()}})(M,q,rr,Dr)))}else l=L,L=r;else l=L,L=r;L===r&&(L=l,(M=qr())!==r&&(q=g())!==r&&(rr=A())!==r&&(Dr=g())!==r&&(Xr=bs())!==r?(Jr=l,(Mt=g())!==r&&(nn=ha())!==r?Jr=Mt=[Mt,nn]:(l=Jr,Jr=r),Jr===r&&(Jr=null),Jr===r?(l=L,L=r):(dn=L,On=M,fr=rr,os=Xr,Es=Jr,Hr.add(`select::${On}::${os}`),L=M={type:"column_ref",table:On,notations:[fr],column:os,collate:Es&&Es[1],...Mo()})):(l=L,L=r),L===r&&(L=l,(M=Ws())===r?(l=L,L=r):(q=l,(rr=g())!==r&&(Dr=ha())!==r?q=rr=[rr,Dr]:(l=q,q=r),q===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(ls,ws){return Hr.add("select::null::"+ls),{type:"column_ref",table:null,column:ls,collate:ws&&ws[1],...Mo()}})(M,q)))))}return L}function yr(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=Ws())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Ws())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=Ws())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q))}else l=L,L=r;return L}function Ar(){var L,M;return L=l,(M=ne())!==r&&(dn=L,M=mu(M)),(L=M)===r&&(L=pr()),L}function qr(){var L,M;return L=l,(M=ne())===r?(l=L,L=r):(dn=l,(Ju(M)?r:void 0)===r?(l=L,L=r):(dn=L,L=M=M)),L===r&&(L=l,(M=xt())!==r&&(dn=L,M=M),L=M),L}function bt(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn;return L=l,(M=ne())===r?(l=L,L=r):(dn=l,((function(On){return ho[On.toUpperCase()]===!0})(M)?r:void 0)===r?(l=L,L=r):(q=l,(rr=g())!==r&&(Dr=pu())!==r&&(Xr=g())!==r&&(Jr=yr())!==r&&(Mt=g())!==r&&(nn=fu())!==r?q=rr=[rr,Dr,Xr,Jr,Mt,nn]:(l=q,q=r),q===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(On,fr){return fr?`${On}(${fr[3].join(", ")})`:On})(M,q)))),L===r&&(L=l,(M=xt())!==r&&(dn=L,M=M),L=M),L}function pr(){var L;return(L=cn())===r&&(L=mn())===r&&(L=$n()),L}function xt(){var L,M;return L=l,(M=cn())===r&&(M=mn())===r&&(M=$n()),M!==r&&(dn=L,M=M.value),L=M}function cn(){var L,M,q,rr;if(L=l,t.charCodeAt(l)===34?(M='"',l++):(M=r,lt===0&&Jt(ua)),M!==r){if(q=[],Sa.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(ma)),rr!==r)for(;rr!==r;)q.push(rr),Sa.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(ma));else q=r;q===r?(l=L,L=r):(t.charCodeAt(l)===34?(rr='"',l++):(rr=r,lt===0&&Jt(ua)),rr===r?(l=L,L=r):(dn=L,L=M={type:"double_quote_string",value:q.join("")}))}else l=L,L=r;return L}function mn(){var L,M,q,rr;if(L=l,t.charCodeAt(l)===39?(M="'",l++):(M=r,lt===0&&Jt(Fa)),M!==r){if(q=[],Bi.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(sa)),rr!==r)for(;rr!==r;)q.push(rr),Bi.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(sa));else q=r;q===r?(l=L,L=r):(t.charCodeAt(l)===39?(rr="'",l++):(rr=r,lt===0&&Jt(Fa)),rr===r?(l=L,L=r):(dn=L,L=M={type:"single_quote_string",value:q.join("")}))}else l=L,L=r;return L}function $n(){var L,M,q,rr;if(L=l,t.charCodeAt(l)===96?(M="`",l++):(M=r,lt===0&&Jt(di)),M!==r){if(q=[],Hi.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(S0)),rr!==r)for(;rr!==r;)q.push(rr),Hi.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(S0));else q=r;q===r?(l=L,L=r):(t.charCodeAt(l)===96?(rr="`",l++):(rr=r,lt===0&&Jt(di)),rr===r?(l=L,L=r):(dn=L,L=M={type:"backticks_quote_string",value:q.join("")}))}else l=L,L=r;return L}function bs(){var L,M;return L=l,(M=fe())!==r&&(dn=L,M=M),(L=M)===r&&(L=xt()),L}function ks(){var L,M;return L=l,(M=fe())!==r&&(dn=L,M=mu(M)),(L=M)===r&&(L=pr()),L}function Ws(){var L,M;return L=l,(M=fe())===r?(l=L,L=r):(dn=l,(Ju(M)?r:void 0)===r?(l=L,L=r):(dn=L,L=M=M)),L===r&&(L=xt()),L}function fe(){var L,M,q,rr;if(L=l,(M=Is())!==r){for(q=[],rr=Xe();rr!==r;)q.push(rr),rr=Xe();q===r?(l=L,L=r):(dn=L,L=M+=q.join(""))}else l=L,L=r;return L}function ne(){var L,M,q,rr;if(L=l,(M=Is())!==r){for(q=[],rr=me();rr!==r;)q.push(rr),rr=me();q===r?(l=L,L=r):(dn=L,L=M+=q.join(""))}else l=L,L=r;return L}function Is(){var L;return l0.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(Ov)),L}function me(){var L;return lv.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(fi)),L}function Xe(){var L;return l0.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(Ov)),L}function eo(){var L,M,q,rr;return L=l,M=l,t.charCodeAt(l)===58?(q=":",l++):(q=r,lt===0&&Jt(Wl)),q!==r&&(rr=ne())!==r?M=q=[q,rr]:(l=M,M=r),M!==r&&(dn=L,M={type:"param",value:M[1]}),L=M}function so(){var L,M,q;return L=l,vc()!==r&&g()!==r&&xe()!==r&&g()!==r&&(M=ee())!==r&&g()!==r&&pu()!==r&&g()!==r?((q=si())===r&&(q=null),q!==r&&g()!==r&&fu()!==r?(dn=L,L={type:"on update",keyword:M,parentheses:!0,expr:q}):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,vc()!==r&&g()!==r&&xe()!==r&&g()!==r&&(M=ee())!==r?(dn=L,L=(function(rr){return{type:"on update",keyword:rr}})(M)):(l=L,L=r)),L}function $o(){var L,M,q,rr,Dr;return L=l,t.substr(l,4).toLowerCase()==="over"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(ec)),M!==r&&g()!==r&&(q=ao())!==r?(dn=L,L=M={type:"window",as_window_specification:q}):(l=L,L=r),L===r&&(L=l,t.substr(l,4).toLowerCase()==="over"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(ec)),M!==r&&g()!==r&&(q=pu())!==r&&g()!==r?((rr=Co())===r&&(rr=null),rr!==r&&g()!==r?((Dr=Au())===r&&(Dr=null),Dr!==r&&g()!==r&&fu()!==r?(dn=L,L=M={partitionby:rr,orderby:Dr}):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L===r&&(L=so())),L}function Mu(){var L,M,q,rr,Dr;return L=l,(M=(function(){var Xr=l,Jr,Mt,nn,On,fr,os,Es,ls;return(Jr=(function(){var ws=l,de,E,U;return t.substr(l,5).toLowerCase()==="count"?(de=t.substr(l,5),l+=5):(de=r,lt===0&&Jt(Ob)),de===r?(l=ws,ws=r):(E=l,lt++,U=Is(),lt--,U===r?E=void 0:(l=E,E=r),E===r?(l=ws,ws=r):(dn=ws,ws=de="COUNT")),ws})())===r&&(Jr=(function(){var ws=l,de,E,U;return t.substr(l,12).toLowerCase()==="group_concat"?(de=t.substr(l,12),l+=12):(de=r,lt===0&&Jt(jf)),de===r?(l=ws,ws=r):(E=l,lt++,U=Is(),lt--,U===r?E=void 0:(l=E,E=r),E===r?(l=ws,ws=r):(dn=ws,ws=de="GROUP_CONCAT")),ws})())===r&&(t.substr(l,7).toLowerCase()==="listagg"?(Jr=t.substr(l,7),l+=7):(Jr=r,lt===0&&Jt(b0))),Jr!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=(function(){var ws=l,de;return(de=(function(){var E=l,U;return t.charCodeAt(l)===42?(U="*",l++):(U=r,lt===0&&Jt(En)),U!==r&&(dn=E,U={type:"star",value:"*"}),E=U})())!==r&&(dn=ws,de={expr:de}),(ws=de)===r&&(ws=F()),ws})())!==r&&g()!==r&&(nn=fu())!==r&&g()!==r?((On=$o())===r&&(On=null),On===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(ws,de,E){return{type:"aggr_func",name:ws,args:de,over:E}})(Jr,Mt,On),Xr=Jr)):(l=Xr,Xr=r),Xr===r&&(Xr=l,t.substr(l,15).toLowerCase()==="percentile_cont"?(Jr=t.substr(l,15),l+=15):(Jr=r,lt===0&&Jt(Pf)),Jr===r&&(t.substr(l,15).toLowerCase()==="percentile_disc"?(Jr=t.substr(l,15),l+=15):(Jr=r,lt===0&&Jt(Sp))),Jr!==r&&g()!==r&&pu()!==r&&g()!==r?((Mt=Ut())===r&&(Mt=$()),Mt!==r&&g()!==r&&(nn=fu())!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="within"?(On=t.substr(l,6),l+=6):(On=r,lt===0&&Jt(kv)),On!==r&&g()!==r&&A0()!==r&&g()!==r&&(fr=pu())!==r&&g()!==r&&(os=Au())!==r&&g()!==r&&(Es=fu())!==r&&g()!==r?((ls=$o())===r&&(ls=null),ls===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(ws,de,E,U){return{type:"aggr_func",name:ws.toUpperCase(),args:{expr:de},within_group_orderby:E,over:U}})(Jr,Mt,os,ls),Xr=Jr)):(l=Xr,Xr=r)):(l=Xr,Xr=r)):(l=Xr,Xr=r),Xr===r&&(Xr=l,t.substr(l,4).toLowerCase()==="mode"?(Jr=t.substr(l,4),l+=4):(Jr=r,lt===0&&Jt(Op)),Jr!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=fu())!==r&&g()!==r?(t.substr(l,6).toLowerCase()==="within"?(nn=t.substr(l,6),l+=6):(nn=r,lt===0&&Jt(kv)),nn!==r&&g()!==r&&(On=A0())!==r&&g()!==r&&pu()!==r&&g()!==r&&(fr=Au())!==r&&g()!==r&&(os=fu())!==r&&g()!==r?((Es=$o())===r&&(Es=null),Es===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(ws,de,E){return{type:"aggr_func",name:ws.toUpperCase(),args:{expr:{}},within_group_orderby:de,over:E}})(Jr,fr,Es),Xr=Jr)):(l=Xr,Xr=r)):(l=Xr,Xr=r))),Xr})())===r&&(M=(function(){var Xr=l,Jr,Mt,nn;return(Jr=(function(){var On;return(On=(function(){var fr=l,os,Es,ls;return t.substr(l,3).toLowerCase()==="sum"?(os=t.substr(l,3),l+=3):(os=r,lt===0&&Jt(Ti)),os===r?(l=fr,fr=r):(Es=l,lt++,ls=Is(),lt--,ls===r?Es=void 0:(l=Es,Es=r),Es===r?(l=fr,fr=r):(dn=fr,fr=os="SUM")),fr})())===r&&(On=(function(){var fr=l,os,Es,ls;return t.substr(l,3).toLowerCase()==="max"?(os=t.substr(l,3),l+=3):(os=r,lt===0&&Jt(is)),os===r?(l=fr,fr=r):(Es=l,lt++,ls=Is(),lt--,ls===r?Es=void 0:(l=Es,Es=r),Es===r?(l=fr,fr=r):(dn=fr,fr=os="MAX")),fr})())===r&&(On=(function(){var fr=l,os,Es,ls;return t.substr(l,3).toLowerCase()==="min"?(os=t.substr(l,3),l+=3):(os=r,lt===0&&Jt(el)),os===r?(l=fr,fr=r):(Es=l,lt++,ls=Is(),lt--,ls===r?Es=void 0:(l=Es,Es=r),Es===r?(l=fr,fr=r):(dn=fr,fr=os="MIN")),fr})())===r&&(On=(function(){var fr=l,os,Es,ls;return t.substr(l,3).toLowerCase()==="avg"?(os=t.substr(l,3),l+=3):(os=r,lt===0&&Jt(wv)),os===r?(l=fr,fr=r):(Es=l,lt++,ls=Is(),lt--,ls===r?Es=void 0:(l=Es,Es=r),Es===r?(l=fr,fr=r):(dn=fr,fr=os="AVG")),fr})()),On})())!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=bn())!==r&&g()!==r&&fu()!==r&&g()!==r?((nn=$o())===r&&(nn=null),nn===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(On,fr,os){return{type:"aggr_func",name:On,args:{expr:fr},over:os,...Mo()}})(Jr,Mt,nn),Xr=Jr)):(l=Xr,Xr=r),Xr})())===r&&(M=(function(){var Xr=l,Jr=l,Mt,nn,On,fr;return(Mt=qr())!==r&&(nn=g())!==r&&(On=Wf())!==r?Jr=Mt=[Mt,nn,On]:(l=Jr,Jr=r),Jr===r&&(Jr=null),Jr!==r&&(Mt=g())!==r?((nn=(function(){var os=l,Es,ls,ws;return t.substr(l,9).toLowerCase()==="array_agg"?(Es=t.substr(l,9),l+=9):(Es=r,lt===0&&Jt($s)),Es===r?(l=os,os=r):(ls=l,lt++,ws=Is(),lt--,ws===r?ls=void 0:(l=ls,ls=r),ls===r?(l=os,os=r):(dn=os,os=Es="ARRAY_AGG")),os})())===r&&(nn=(function(){var os=l,Es,ls,ws;return t.substr(l,10).toLowerCase()==="string_agg"?(Es=t.substr(l,10),l+=10):(Es=r,lt===0&&Jt(ja)),Es===r?(l=os,os=r):(ls=l,lt++,ws=Is(),lt--,ws===r?ls=void 0:(l=ls,ls=r),ls===r?(l=os,os=r):(dn=os,os=Es="STRING_AGG")),os})()),nn!==r&&(On=g())!==r&&pu()!==r&&g()!==r&&(fr=F())!==r&&g()!==r&&fu()!==r?(dn=Xr,Jr=(function(os,Es,ls){return{type:"aggr_func",name:os?`${os[0]}.${Es}`:Es,args:ls}})(Jr,nn,fr),Xr=Jr):(l=Xr,Xr=r)):(l=Xr,Xr=r),Xr})()),M!==r&&g()!==r?((q=(function(){var Xr,Jr,Mt;return Xr=l,t.substr(l,6).toLowerCase()==="filter"?(Jr=t.substr(l,6),l+=6):(Jr=r,lt===0&&Jt(Fc)),Jr!==r&&g()!==r&&pu()!==r&&g()!==r&&(Mt=co())!==r&&g()!==r&&fu()!==r?(dn=Xr,Xr=Jr={keyword:"filter",parentheses:!0,where:Mt}):(l=Xr,Xr=r),Xr})())===r&&(q=null),q===r?(l=L,L=r):(dn=L,rr=M,(Dr=q)&&(rr.filter=Dr),L=M=rr)):(l=L,L=r),L}function su(){var L;return(L=(function(){var M=l,q,rr;return(q=(function(){var Dr;return t.substr(l,10).toLowerCase()==="row_number"?(Dr=t.substr(l,10),l+=10):(Dr=r,lt===0&&Jt(Uv)),Dr===r&&(t.substr(l,10).toLowerCase()==="dense_rank"?(Dr=t.substr(l,10),l+=10):(Dr=r,lt===0&&Jt($f)),Dr===r&&(t.substr(l,4).toLowerCase()==="rank"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(Tb)))),Dr})())!==r&&g()!==r&&pu()!==r&&g()!==r&&fu()!==r&&g()!==r&&(rr=$o())!==r?(dn=M,q=(function(Dr,Xr){return{type:"window_func",name:Dr,over:Xr}})(q,rr),M=q):(l=M,M=r),M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr;return(q=(function(){var Jr;return t.substr(l,3).toLowerCase()==="lag"?(Jr=t.substr(l,3),l+=3):(Jr=r,lt===0&&Jt(cp)),Jr===r&&(t.substr(l,4).toLowerCase()==="lead"?(Jr=t.substr(l,4),l+=4):(Jr=r,lt===0&&Jt(c0)),Jr===r&&(t.substr(l,9).toLowerCase()==="nth_value"?(Jr=t.substr(l,9),l+=9):(Jr=r,lt===0&&Jt(q0)))),Jr})())!==r&&g()!==r&&pu()!==r&&g()!==r&&(rr=si())!==r&&g()!==r&&fu()!==r&&g()!==r?((Dr=Po())===r&&(Dr=null),Dr!==r&&g()!==r&&(Xr=$o())!==r?(dn=M,q=(function(Jr,Mt,nn,On){return{type:"window_func",name:Jr,args:Mt,over:On,consider_nulls:nn}})(q,rr,Dr,Xr),M=q):(l=M,M=r)):(l=M,M=r),M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr;return(q=(function(){var Jr;return t.substr(l,11).toLowerCase()==="first_value"?(Jr=t.substr(l,11),l+=11):(Jr=r,lt===0&&Jt(xv)),Jr===r&&(t.substr(l,10).toLowerCase()==="last_value"?(Jr=t.substr(l,10),l+=10):(Jr=r,lt===0&&Jt(lp))),Jr})())!==r&&g()!==r&&pu()!==r&&g()!==r&&(rr=Zo())!==r&&g()!==r&&fu()!==r&&g()!==r?((Dr=Po())===r&&(Dr=null),Dr!==r&&g()!==r&&(Xr=$o())!==r?(dn=M,q=(function(Jr,Mt,nn,On){return{type:"window_func",name:Jr,args:{type:"expr_list",value:[Mt]},over:On,consider_nulls:nn}})(q,rr,Dr,Xr),M=q):(l=M,M=r)):(l=M,M=r),M})()),L}function Po(){var L,M,q;return L=l,t.substr(l,6).toLowerCase()==="ignore"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(df)),M===r&&(t.substr(l,7).toLowerCase()==="respect"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(f0))),M!==r&&g()!==r?(t.substr(l,5).toLowerCase()==="nulls"?(q=t.substr(l,5),l+=5):(q=r,lt===0&&Jt(wc)),q===r?(l=L,L=r):(dn=L,L=M=M.toUpperCase()+" NULLS")):(l=L,L=r),L}function Na(){var L,M,q;return L=l,(M=Wo())!==r&&g()!==r&&(q=et())!==r?(dn=L,L=M={symbol:M,delimiter:q}):(l=L,L=r),L}function F(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On,fr;if(L=l,(M=Du())===r&&(M=null),M!==r)if(g()!==r)if((q=pu())!==r)if(g()!==r)if((rr=Zo())!==r)if(g()!==r)if((Dr=fu())!==r)if(g()!==r){for(Xr=[],Jr=l,(Mt=g())===r?(l=Jr,Jr=r):((nn=_i())===r&&(nn=Nc()),nn!==r&&(On=g())!==r&&(fr=Zo())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r));Jr!==r;)Xr.push(Jr),Jr=l,(Mt=g())===r?(l=Jr,Jr=r):((nn=_i())===r&&(nn=Nc()),nn!==r&&(On=g())!==r&&(fr=Zo())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r));Xr!==r&&(Jr=g())!==r?((Mt=Na())===r&&(Mt=null),Mt!==r&&(nn=g())!==r?((On=Au())===r&&(On=null),On===r?(l=L,L=r):(dn=L,L=M=(function(os,Es,ls,ws,de){let E=ls.length,U=Es;U.parentheses=!0;for(let Z=0;Z<E;++Z)U=Gu(ls[Z][1],U,ls[Z][3]);return{distinct:os,expr:U,orderby:de,separator:ws}})(M,rr,Xr,Mt,On))):(l=L,L=r)):(l=L,L=r)}else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;return L===r&&(L=l,(M=Du())===r&&(M=null),M!==r&&g()!==r&&(q=Js())!==r&&g()!==r?((rr=Na())===r&&(rr=null),rr!==r&&g()!==r?((Dr=Au())===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,L=M=(function(os,Es,ls,ws){return{distinct:os,expr:Es,orderby:ws,separator:ls}})(M,q,rr,Dr))):(l=L,L=r)):(l=L,L=r)),L}function ar(){var L,M,q;return L=l,(M=(function(){var rr;return t.substr(l,4).toLowerCase()==="both"?(rr=t.substr(l,4),l+=4):(rr=r,lt===0&&Jt(fp)),rr===r&&(t.substr(l,7).toLowerCase()==="leading"?(rr=t.substr(l,7),l+=7):(rr=r,lt===0&&Jt(oc)),rr===r&&(t.substr(l,8).toLowerCase()==="trailing"?(rr=t.substr(l,8),l+=8):(rr=r,lt===0&&Jt(uc)))),rr})())===r&&(M=null),M!==r&&g()!==r?((q=Zo())===r&&(q=null),q!==r&&g()!==r&&vu()!==r?(dn=L,L=M=(function(rr,Dr,Xr){let Jr=[];return rr&&Jr.push({type:"origin",value:rr}),Dr&&Jr.push(Dr),Jr.push({type:"origin",value:"from"}),{type:"expr_list",value:Jr}})(M,q)):(l=L,L=r)):(l=L,L=r),L}function Nr(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="trim"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(qb)),M!==r&&g()!==r&&pu()!==r&&g()!==r?((q=ar())===r&&(q=null),q!==r&&g()!==r&&(rr=Zo())!==r&&g()!==r&&fu()!==r?(dn=L,L=M=(function(Dr,Xr){let Jr=Dr||{type:"expr_list",value:[]};return Jr.value.push(Xr),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:Jr,...Mo()}})(q,rr)):(l=L,L=r)):(l=L,L=r),L}function Rr(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="mode"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(e0)),M!==r&&g()!==r?(t.substr(l,2)==="=>"?(q="=>",l+=2):(q=r,lt===0&&Jt(vf)),q!==r&&g()!==r&&(rr=et())!==r?(dn=L,L=M=(function(Dr){let Xr=new Set(["object","array","both"]);if(!Dr.value||!Xr.has(Dr.value.toLowerCase()))throw Error((Dr&&Dr.value)+" is not valid mode in object, array and both");return Dr.value=Dr.value.toUpperCase(),{type:"mode",symbol:"=>",value:Dr}})(rr)):(l=L,L=r)):(l=L,L=r),L}function ct(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On;return L=l,(M=(function(){var fr,os,Es,ls;return fr=l,t.substr(l,5).toLowerCase()==="input"?(os=t.substr(l,5),l+=5):(os=r,lt===0&&Jt(Gf)),os!==r&&g()!==r?(t.substr(l,2)==="=>"?(Es="=>",l+=2):(Es=r,lt===0&&Jt(vf)),Es!==r&&g()!==r&&(ls=Zo())!==r?(dn=fr,fr=os={type:"input",symbol:"=>",value:ls}):(l=fr,fr=r)):(l=fr,fr=r),fr})())===r?(l=L,L=r):(q=l,(rr=g())!==r&&(Dr=Wo())!==r&&(Xr=g())!==r&&(Jr=(function(){var fr,os,Es,ls;return fr=l,t.substr(l,4).toLowerCase()==="path"?(os=t.substr(l,4),l+=4):(os=r,lt===0&&Jt(zv)),os!==r&&g()!==r?(t.substr(l,2)==="=>"?(Es="=>",l+=2):(Es=r,lt===0&&Jt(vf)),Es!==r&&g()!==r&&(ls=et())!==r?(dn=fr,fr=os={type:"path",symbol:"=>",value:ls}):(l=fr,fr=r)):(l=fr,fr=r),fr})())!==r?q=rr=[rr,Dr,Xr,Jr]:(l=q,q=r),q===r&&(q=null),q===r?(l=L,L=r):(rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=(function(){var fr,os,Es,ls;return fr=l,t.substr(l,5).toLowerCase()==="outer"?(os=t.substr(l,5),l+=5):(os=r,lt===0&&Jt(Mv)),os!==r&&g()!==r?(t.substr(l,2)==="=>"?(Es="=>",l+=2):(Es=r,lt===0&&Jt(vf)),Es!==r&&g()!==r&&(ls=mr())!==r?(dn=fr,fr=os={type:"outer",symbol:"=>",value:ls}):(l=fr,fr=r)):(l=fr,fr=r),fr})())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r),rr===r&&(rr=null),rr===r?(l=L,L=r):(Dr=l,(Xr=g())!==r&&(Jr=Wo())!==r&&(Mt=g())!==r&&(nn=(function(){var fr,os,Es,ls;return fr=l,t.substr(l,9).toLowerCase()==="recursive"?(os=t.substr(l,9),l+=9):(os=r,lt===0&&Jt(Zv)),os!==r&&g()!==r?(t.substr(l,2)==="=>"?(Es="=>",l+=2):(Es=r,lt===0&&Jt(vf)),Es!==r&&g()!==r&&(ls=mr())!==r?(dn=fr,fr=os={type:"recursive",symbol:"=>",value:ls}):(l=fr,fr=r)):(l=fr,fr=r),fr})())!==r?Dr=Xr=[Xr,Jr,Mt,nn]:(l=Dr,Dr=r),Dr===r&&(Dr=null),Dr===r?(l=L,L=r):(Xr=l,(Jr=g())!==r&&(Mt=Wo())!==r&&(nn=g())!==r&&(On=Rr())!==r?Xr=Jr=[Jr,Mt,nn,On]:(l=Xr,Xr=r),Xr===r&&(Xr=null),Xr===r?(l=L,L=r):(dn=L,L=M=(function(fr,os,Es,ls,ws){return{type:"flattern",input:fr,path:os&&os[3],outer:Es&&Es[3],recursive:ls&&ls[3],mode:ws&&ws[3]}})(M,q,rr,Dr,Xr)))))),L}function dt(){var L,M;return L=l,iu()!==r&&g()!==r&&(M=Ar())!==r?(dn=L,L={type:"json_visitor",symbol:":",expr:M}):(l=L,L=r),L}function Yt(){var L,M,q,rr,Dr,Xr;if(L=l,(M=dt())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=dt())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=dt())!==r?rr=Dr=[Dr,Xr]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M={type:"expr_list",value:Wr(M,q,1)})}else l=L,L=r;return L}function vn(){var L,M,q;return L=l,t.substr(l,8).toLowerCase()==="position"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(bp)),M!==r&&g()!==r&&pu()!==r&&g()!==r&&(q=(function(){var rr,Dr,Xr,Jr,Mt,nn,On,fr;return rr=l,(Dr=et())!==r&&g()!==r&&vl()!==r&&g()!==r&&(Xr=Zo())!==r?(Jr=l,(Mt=g())!==r&&(nn=vu())!==r&&(On=g())!==r&&(fr=Ut())!==r?Jr=Mt=[Mt,nn,On,fr]:(l=Jr,Jr=r),Jr===r&&(Jr=null),Jr===r?(l=rr,rr=r):(dn=rr,rr=Dr=(function(os,Es,ls){let ws=[os,{type:"origin",value:"in"},Es];return ls&&(ws.push({type:"origin",value:"from"}),ws.push(ls[3])),{type:"expr_list",value:ws}})(Dr,Xr,Jr))):(l=rr,rr=r),rr})())!==r&&g()!==r&&fu()!==r?(dn=L,L=M={type:"function",name:{name:[{type:"origin",value:"position"}]},separator:" ",args:q,...Mo()}):(l=L,L=r),L}function fn(){var L,M,q,rr,Dr,Xr,Jr;return(L=Nr())===r&&(L=vn())===r&&(L=l,t.substr(l,3).toLowerCase()==="now"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Ib)),M!==r&&g()!==r&&(q=pu())!==r&&g()!==r?((rr=si())===r&&(rr=null),rr!==r&&g()!==r&&fu()!==r&&g()!==r?(t.substr(l,2).toLowerCase()==="at"?(Dr=t.substr(l,2),l+=2):(Dr=r,lt===0&&Jt(Dv)),Dr!==r&&g()!==r&&en()!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="zone"?(Xr=t.substr(l,4),l+=4):(Xr=r,lt===0&&Jt(vp)),Xr!==r&&g()!==r&&(Jr=et())!==r?(dn=L,L=M=(function(Mt,nn,On){return On.prefix="at time zone",{type:"function",name:{name:[{type:"default",value:Mt}]},args:nn||{type:"expr_list",value:[]},suffix:On,...Mo()}})(M,rr,Jr)):(l=L,L=r)):(l=L,L=r)):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,t.substr(l,7).toLowerCase()==="flatten"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Jv)),M!==r&&g()!==r&&(q=pu())!==r&&g()!==r&&(rr=ct())!==r&&g()!==r&&fu()!==r?(dn=L,L=M=(function(Mt,nn){return{type:"flatten",name:{name:[{type:"default",value:Mt}]},args:nn,...Mo()}})(M,rr)):(l=L,L=r),L===r&&(L=l,(M=(function(){var Mt;return(Mt=Vn())===r&&(Mt=(function(){var nn=l,On,fr,os;return t.substr(l,12).toLowerCase()==="current_user"?(On=t.substr(l,12),l+=12):(On=r,lt===0&&Jt(B0)),On===r?(l=nn,nn=r):(fr=l,lt++,os=Is(),lt--,os===r?fr=void 0:(l=fr,fr=r),fr===r?(l=nn,nn=r):(dn=nn,nn=On="CURRENT_USER")),nn})())===r&&(Mt=(function(){var nn=l,On,fr,os;return t.substr(l,4).toLowerCase()==="user"?(On=t.substr(l,4),l+=4):(On=r,lt===0&&Jt(ti)),On===r?(l=nn,nn=r):(fr=l,lt++,os=Is(),lt--,os===r?fr=void 0:(l=fr,fr=r),fr===r?(l=nn,nn=r):(dn=nn,nn=On="USER")),nn})())===r&&(Mt=(function(){var nn=l,On,fr,os;return t.substr(l,12).toLowerCase()==="session_user"?(On=t.substr(l,12),l+=12):(On=r,lt===0&&Jt(Mc)),On===r?(l=nn,nn=r):(fr=l,lt++,os=Is(),lt--,os===r?fr=void 0:(l=fr,fr=r),fr===r?(l=nn,nn=r):(dn=nn,nn=On="SESSION_USER")),nn})())===r&&(Mt=(function(){var nn=l,On,fr,os;return t.substr(l,11).toLowerCase()==="system_user"?(On=t.substr(l,11),l+=11):(On=r,lt===0&&Jt(J0)),On===r?(l=nn,nn=r):(fr=l,lt++,os=Is(),lt--,os===r?fr=void 0:(l=fr,fr=r),fr===r?(l=nn,nn=r):(dn=nn,nn=On="SYSTEM_USER")),nn})())===r&&(t.substr(l,5).toLowerCase()==="ntile"?(Mt=t.substr(l,5),l+=5):(Mt=r,lt===0&&Jt(yp))),Mt})())!==r&&g()!==r&&(q=pu())!==r&&g()!==r?((rr=si())===r&&(rr=null),rr!==r&&g()!==r&&fu()!==r&&g()!==r?((Dr=$o())===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,L=M=(function(Mt,nn,On){return{type:"function",name:{name:[{type:"default",value:Mt}]},args:nn||{type:"expr_list",value:[]},over:On,...Mo()}})(M,rr,Dr))):(l=L,L=r)):(l=L,L=r),L===r&&(L=(function(){var Mt=l,nn,On,fr,os;(nn=tc())!==r&&g()!==r&&pu()!==r&&g()!==r&&(On=gn())!==r&&g()!==r&&vu()!==r&&g()!==r?((fr=hn())===r&&(fr=ue())===r&&(fr=en())===r&&(fr=it()),fr===r&&(fr=null),fr!==r&&g()!==r&&(os=Zo())!==r&&g()!==r&&fu()!==r?(dn=Mt,Es=On,ls=fr,ws=os,nn={type:nn.toLowerCase(),args:{field:Es,cast_type:ls,source:ws},...Mo()},Mt=nn):(l=Mt,Mt=r)):(l=Mt,Mt=r);var Es,ls,ws;return Mt===r&&(Mt=l,(nn=tc())!==r&&g()!==r&&pu()!==r&&g()!==r&&(On=gn())!==r&&g()!==r&&vu()!==r&&g()!==r&&(fr=Zo())!==r&&g()!==r&&(os=fu())!==r?(dn=Mt,nn=(function(de,E,U){return{type:de.toLowerCase(),args:{field:E,source:U},...Mo()}})(nn,On,fr),Mt=nn):(l=Mt,Mt=r)),Mt})())===r&&(L=l,(M=Vn())!==r&&g()!==r?((q=so())===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M={type:"function",name:{name:[{type:"origin",value:M}]},over:q,...Mo()})):(l=L,L=r),L===r&&(L=l,t.substr(l,10).toLowerCase()==="parse_json"?(M=t.substr(l,10),l+=10):(M=r,lt===0&&Jt(Xb)),M!==r&&g()!==r&&(q=pu())!==r&&g()!==r?((rr=wi())===r&&(rr=null),rr!==r&&g()!==r&&fu()!==r&&g()!==r?((Dr=Yt())===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,L=M=(function(Mt,nn,On){return nn&&nn.type!=="expr_list"&&(nn={type:"expr_list",value:[nn]}),{type:"function",name:{name:[{type:"default",value:Mt}]},args:nn||{type:"expr_list",value:[]},suffix:On,...Mo()}})(M,rr,Dr))):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=Pe())!==r&&g()!==r&&(q=pu())!==r&&g()!==r?((rr=wi())===r&&(rr=null),rr!==r&&g()!==r&&fu()!==r&&g()!==r?((Dr=$o())===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,L=M=(function(Mt,nn,On){return nn&&nn.type!=="expr_list"&&(nn={type:"expr_list",value:[nn]}),{type:"function",name:Mt,args:nn||{type:"expr_list",value:[]},over:On,...Mo()}})(M,rr,Dr))):(l=L,L=r)):(l=L,L=r))))))),L}function gn(){var L,M;return L=l,t.substr(l,7).toLowerCase()==="century"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(pp)),M===r&&(t.substr(l,3).toLowerCase()==="day"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(xp)),M===r&&(t.substr(l,4).toLowerCase()==="date"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(cv)),M===r&&(t.substr(l,6).toLowerCase()==="decade"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Up)),M===r&&(t.substr(l,3).toLowerCase()==="dow"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Xp)),M===r&&(t.substr(l,3).toLowerCase()==="doy"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Qv)),M===r&&(t.substr(l,5).toLowerCase()==="epoch"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Vp)),M===r&&(t.substr(l,4).toLowerCase()==="hour"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(dp)),M===r&&(t.substr(l,6).toLowerCase()==="isodow"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Kp)),M===r&&(t.substr(l,7).toLowerCase()==="isoyear"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(ld)),M===r&&(t.substr(l,12).toLowerCase()==="microseconds"?(M=t.substr(l,12),l+=12):(M=r,lt===0&&Jt(Lp)),M===r&&(t.substr(l,10).toLowerCase()==="millennium"?(M=t.substr(l,10),l+=10):(M=r,lt===0&&Jt(Cp)),M===r&&(t.substr(l,12).toLowerCase()==="milliseconds"?(M=t.substr(l,12),l+=12):(M=r,lt===0&&Jt(wp)),M===r&&(t.substr(l,6).toLowerCase()==="minute"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(gb)),M===r&&(t.substr(l,5).toLowerCase()==="month"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(O0)),M===r&&(t.substr(l,7).toLowerCase()==="quarter"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(v0)),M===r&&(t.substr(l,6).toLowerCase()==="second"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(ac)),M===r&&(t.substr(l,8).toLowerCase()==="timezone"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(Rb)),M===r&&(t.substr(l,13).toLowerCase()==="timezone_hour"?(M=t.substr(l,13),l+=13):(M=r,lt===0&&Jt(Ff)),M===r&&(t.substr(l,15).toLowerCase()==="timezone_minute"?(M=t.substr(l,15),l+=15):(M=r,lt===0&&Jt(kp)),M===r&&(t.substr(l,4).toLowerCase()==="week"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Mp)),M===r&&(t.substr(l,4).toLowerCase()==="year"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(rp))))))))))))))))))))))),M!==r&&(dn=L,M=M),L=M}function Vn(){var L;return(L=(function(){var M=l,q,rr,Dr;return t.substr(l,12).toLowerCase()==="current_date"?(q=t.substr(l,12),l+=12):(q=r,lt===0&&Jt(ub)),q===r?(l=M,M=r):(rr=l,lt++,Dr=Is(),lt--,Dr===r?rr=void 0:(l=rr,rr=r),rr===r?(l=M,M=r):(dn=M,M=q="CURRENT_DATE")),M})())===r&&(L=(function(){var M=l,q,rr,Dr;return t.substr(l,12).toLowerCase()==="current_time"?(q=t.substr(l,12),l+=12):(q=r,lt===0&&Jt(Ic)),q===r?(l=M,M=r):(rr=l,lt++,Dr=Is(),lt--,Dr===r?rr=void 0:(l=rr,rr=r),rr===r?(l=M,M=r):(dn=M,M=q="CURRENT_TIME")),M})())===r&&(L=ee()),L}function Jn(){var L,M,q,rr;return L=l,t.charCodeAt(l)===34?(M='"',l++):(M=r,lt===0&&Jt(ua)),M===r&&(M=null),M!==r&&(q=lu())!==r?(t.charCodeAt(l)===34?(rr='"',l++):(rr=r,lt===0&&Jt(ua)),rr===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,L=M=(function(Dr,Xr,Jr){if(Dr&&!Jr||!Dr&&Jr)throw Error("double quoted not match");return Dr&&Jr&&(Xr.quoted='"'),Xr})(M,q,rr))):(l=L,L=r),L}function ms(){var L,M,q,rr,Dr,Xr;if(L=l,M=[],q=l,(rr=Gs())!==r&&(Dr=g())!==r&&(Xr=Jn())!==r?q=rr=[rr,Dr,Xr]:(l=q,q=r),q!==r)for(;q!==r;)M.push(q),q=l,(rr=Gs())!==r&&(Dr=g())!==r&&(Xr=Jn())!==r?q=rr=[rr,Dr,Xr]:(l=q,q=r);else M=r;return M!==r&&(q=g())!==r?((rr=yt())===r&&(rr=null),rr===r?(l=L,L=r):(dn=L,L=M={as:rr,symbol:"::",target:M.map(Jr=>Jr[2])})):(l=L,L=r),L}function Qs(){var L;return(L=et())===r&&(L=Ut())===r&&(L=mr())===r&&(L=J())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr;if((q=en())===r&&(q=it())===r&&(q=hn())===r&&(q=Et()),q!==r)if(g()!==r){if(rr=l,t.charCodeAt(l)===39?(Dr="'",l++):(Dr=r,lt===0&&Jt(Fa)),Dr!==r){for(Xr=[],Jr=At();Jr!==r;)Xr.push(Jr),Jr=At();Xr===r?(l=rr,rr=r):(t.charCodeAt(l)===39?(Jr="'",l++):(Jr=r,lt===0&&Jt(Fa)),Jr===r?(l=rr,rr=r):rr=Dr=[Dr,Xr,Jr])}else l=rr,rr=r;rr===r?(l=M,M=r):(dn=M,Mt=rr,q={type:q.toLowerCase(),value:Mt[1].join("")},M=q)}else l=M,M=r;else l=M,M=r;var Mt;if(M===r)if(M=l,(q=en())===r&&(q=it())===r&&(q=hn())===r&&(q=Et()),q!==r)if(g()!==r){if(rr=l,t.charCodeAt(l)===34?(Dr='"',l++):(Dr=r,lt===0&&Jt(ua)),Dr!==r){for(Xr=[],Jr=pt();Jr!==r;)Xr.push(Jr),Jr=pt();Xr===r?(l=rr,rr=r):(t.charCodeAt(l)===34?(Jr='"',l++):(Jr=r,lt===0&&Jt(ua)),Jr===r?(l=rr,rr=r):rr=Dr=[Dr,Xr,Jr])}else l=rr,rr=r;rr===r?(l=M,M=r):(dn=M,q=(function(nn,On){return{type:nn.toLowerCase(),value:On[1].join("")}})(q,rr),M=q)}else l=M,M=r;else l=M,M=r;return M})())===r&&(L=$()),L}function $(){var L,M;return L=l,Ai()!==r&&g()!==r&&Vu()!==r&&g()!==r?((M=si())===r&&(M=null),M!==r&&g()!==r&&ra()!==r?(dn=L,L=(function(q,rr){return{expr_list:rr||{type:"origin",value:""},type:"array",keyword:"array",brackets:!0}})(0,M)):(l=L,L=r)):(l=L,L=r),L}function J(){var L,M;return L=l,(M=(function(){var q=l,rr,Dr,Xr;return t.substr(l,4).toLowerCase()==="null"?(rr=t.substr(l,4),l+=4):(rr=r,lt===0&&Jt(sp)),rr===r?(l=q,q=r):(Dr=l,lt++,Xr=Is(),lt--,Xr===r?Dr=void 0:(l=Dr,Dr=r),Dr===r?(l=q,q=r):q=rr=[rr,Dr]),q})())!==r&&(dn=L,M={type:"null",value:null}),L=M}function br(){var L,M;return L=l,(M=(function(){var q=l,rr,Dr,Xr;return t.substr(l,8).toLowerCase()==="not null"?(rr=t.substr(l,8),l+=8):(rr=r,lt===0&&Jt(jv)),rr===r?(l=q,q=r):(Dr=l,lt++,Xr=Is(),lt--,Xr===r?Dr=void 0:(l=Dr,Dr=r),Dr===r?(l=q,q=r):q=rr=[rr,Dr]),q})())!==r&&(dn=L,M={type:"not null",value:"not null"}),L=M}function mr(){var L,M;return L=l,(M=(function(){var q=l,rr,Dr,Xr;return t.substr(l,4).toLowerCase()==="true"?(rr=t.substr(l,4),l+=4):(rr=r,lt===0&&Jt(Tp)),rr===r?(l=q,q=r):(Dr=l,lt++,Xr=Is(),lt--,Xr===r?Dr=void 0:(l=Dr,Dr=r),Dr===r?(l=q,q=r):q=rr=[rr,Dr]),q})())!==r&&(dn=L,M={type:"bool",value:!0}),(L=M)===r&&(L=l,(M=(function(){var q=l,rr,Dr,Xr;return t.substr(l,5).toLowerCase()==="false"?(rr=t.substr(l,5),l+=5):(rr=r,lt===0&&Jt(Ip)),rr===r?(l=q,q=r):(Dr=l,lt++,Xr=Is(),lt--,Xr===r?Dr=void 0:(l=Dr,Dr=r),Dr===r?(l=q,q=r):q=rr=[rr,Dr]),q})())!==r&&(dn=L,M={type:"bool",value:!1}),L=M),L}function et(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn;if(L=l,M=l,t.charCodeAt(l)===39?(q="'",l++):(q=r,lt===0&&Jt(Fa)),q!==r){for(rr=[],Dr=At();Dr!==r;)rr.push(Dr),Dr=At();rr===r?(l=M,M=r):(t.charCodeAt(l)===39?(Dr="'",l++):(Dr=r,lt===0&&Jt(Fa)),Dr===r?(l=M,M=r):M=q=[q,rr,Dr])}else l=M,M=r;if(M!==r){if(q=[],hp.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Ep)),rr!==r)for(;rr!==r;)q.push(rr),hp.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Ep));else q=r;if(q!==r)if((rr=g())!==r){if(Dr=l,t.charCodeAt(l)===39?(Xr="'",l++):(Xr=r,lt===0&&Jt(Fa)),Xr!==r){for(Jr=[],Mt=At();Mt!==r;)Jr.push(Mt),Mt=At();Jr===r?(l=Dr,Dr=r):(t.charCodeAt(l)===39?(Mt="'",l++):(Mt=r,lt===0&&Jt(Fa)),Mt===r?(l=Dr,Dr=r):Dr=Xr=[Xr,Jr,Mt])}else l=Dr,Dr=r;Dr===r?(l=L,L=r):(dn=L,nn=Dr,L=M={type:"single_quote_string",value:`${M[1].join("")}${nn[1].join("")}`,...Mo()})}else l=L,L=r;else l=L,L=r}else l=L,L=r;if(L===r){if(L=l,M=l,t.charCodeAt(l)===39?(q="'",l++):(q=r,lt===0&&Jt(Fa)),q!==r){for(rr=[],Dr=At();Dr!==r;)rr.push(Dr),Dr=At();rr===r?(l=M,M=r):(t.charCodeAt(l)===39?(Dr="'",l++):(Dr=r,lt===0&&Jt(Fa)),Dr===r?(l=M,M=r):M=q=[q,rr,Dr])}else l=M,M=r;if(M!==r&&(dn=L,M=(function(On){return{type:"single_quote_string",value:On[1].join(""),...Mo()}})(M)),(L=M)===r){if(L=l,M=l,t.charCodeAt(l)===34?(q='"',l++):(q=r,lt===0&&Jt(ua)),q!==r){for(rr=[],Dr=pt();Dr!==r;)rr.push(Dr),Dr=pt();rr===r?(l=M,M=r):(t.charCodeAt(l)===34?(Dr='"',l++):(Dr=r,lt===0&&Jt(ua)),Dr===r?(l=M,M=r):M=q=[q,rr,Dr])}else l=M,M=r;M===r?(l=L,L=r):(q=l,lt++,rr=Wf(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M=(function(On){return{type:"double_quote_string",value:On[1].join("")}})(M)))}}return L}function pt(){var L;return Nb.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(Qf)),L===r&&(L=Bt()),L}function At(){var L;return _b.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(Ap)),L===r&&(L=Bt()),L}function Bt(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On;return L=l,t.substr(l,2)==="\\'"?(M="\\'",l+=2):(M=r,lt===0&&Jt(Dp)),M!==r&&(dn=L,M="\\'"),(L=M)===r&&(L=l,t.substr(l,2)==='\\"'?(M='\\"',l+=2):(M=r,lt===0&&Jt($v)),M!==r&&(dn=L,M='\\"'),(L=M)===r&&(L=l,t.substr(l,2)==="\\\\"?(M="\\\\",l+=2):(M=r,lt===0&&Jt($p)),M!==r&&(dn=L,M="\\\\"),(L=M)===r&&(L=l,t.substr(l,2)==="\\/"?(M="\\/",l+=2):(M=r,lt===0&&Jt(Pp)),M!==r&&(dn=L,M="\\/"),(L=M)===r&&(L=l,t.substr(l,2)==="\\b"?(M="\\b",l+=2):(M=r,lt===0&&Jt(Pv)),M!==r&&(dn=L,M="\b"),(L=M)===r&&(L=l,t.substr(l,2)==="\\f"?(M="\\f",l+=2):(M=r,lt===0&&Jt(Gp)),M!==r&&(dn=L,M="\f"),(L=M)===r&&(L=l,t.substr(l,2)==="\\n"?(M="\\n",l+=2):(M=r,lt===0&&Jt(Fp)),M!==r&&(dn=L,M=` +`),(L=M)===r&&(L=l,t.substr(l,2)==="\\r"?(M="\\r",l+=2):(M=r,lt===0&&Jt(mp)),M!==r&&(dn=L,M="\r"),(L=M)===r&&(L=l,t.substr(l,2)==="\\t"?(M="\\t",l+=2):(M=r,lt===0&&Jt(zp)),M!==r&&(dn=L,M=" "),(L=M)===r&&(L=l,t.substr(l,2)==="\\u"?(M="\\u",l+=2):(M=r,lt===0&&Jt(Zp)),M!==r&&(q=qe())!==r&&(rr=qe())!==r&&(Dr=qe())!==r&&(Xr=qe())!==r?(dn=L,Jr=q,Mt=rr,nn=Dr,On=Xr,L=M=String.fromCharCode(parseInt("0x"+Jr+Mt+nn+On))):(l=L,L=r),L===r&&(L=l,t.charCodeAt(l)===92?(M="\\",l++):(M=r,lt===0&&Jt(Gv)),M!==r&&(dn=L,M="\\"),(L=M)===r&&(L=l,t.substr(l,2)==="''"?(M="''",l+=2):(M=r,lt===0&&Jt(tp)),M!==r&&(dn=L,M="''"),(L=M)===r&&(L=l,t.substr(l,2)==='""'?(M='""',l+=2):(M=r,lt===0&&Jt(Fv)),M!==r&&(dn=L,M='""'),L=M)))))))))))),L}function Ut(){var L,M,q;return L=l,(M=pn())!==r&&(dn=L,M=(q=M)&&q.type==="bigint"?q:{type:"number",value:q}),L=M}function pn(){var L,M,q,rr;return L=l,(M=Cn())===r&&(M=null),M!==r&&(q=Hn())!==r&&(rr=qn())!==r?(dn=L,L=M={type:"bigint",value:(M||"")+q+rr}):(l=L,L=r),L===r&&(L=l,(M=Cn())===r&&(M=null),M!==r&&(q=Hn())!==r?(dn=L,L=M=(function(Dr,Xr){let Jr=(Dr||"")+Xr;return Dr&&Ko(Dr)?{type:"bigint",value:Jr}:parseFloat(Jr).toFixed(Xr.length-1)})(M,q)):(l=L,L=r),L===r&&(L=l,(M=Cn())!==r&&(q=qn())!==r?(dn=L,L=M=(function(Dr,Xr){return{type:"bigint",value:Dr+Xr}})(M,q)):(l=L,L=r),L===r&&(L=l,(M=Cn())!==r&&(dn=L,M=(function(Dr){return Ko(Dr)?{type:"bigint",value:Dr}:parseFloat(Dr)})(M)),L=M))),L}function Cn(){var L,M,q;return(L=Cs())===r&&(L=js())===r&&(L=l,t.charCodeAt(l)===45?(M="-",l++):(M=r,lt===0&&Jt(_n)),M===r&&(t.charCodeAt(l)===43?(M="+",l++):(M=r,lt===0&&Jt(tn))),M!==r&&(q=Cs())!==r?(dn=L,L=M+=q):(l=L,L=r),L===r&&(L=l,t.charCodeAt(l)===45?(M="-",l++):(M=r,lt===0&&Jt(_n)),M===r&&(t.charCodeAt(l)===43?(M="+",l++):(M=r,lt===0&&Jt(tn))),M!==r&&(q=js())!==r?(dn=L,L=M=(function(rr,Dr){return rr+Dr})(M,q)):(l=L,L=r))),L}function Hn(){var L,M,q;return L=l,t.charCodeAt(l)===46?(M=".",l++):(M=r,lt===0&&Jt(fv)),M!==r&&(q=Cs())!==r?(dn=L,L=M="."+q):(l=L,L=r),L}function qn(){var L,M,q;return L=l,(M=(function(){var rr=l,Dr,Xr;ql.test(t.charAt(l))?(Dr=t.charAt(l),l++):(Dr=r,lt===0&&Jt(Ec)),Dr===r?(l=rr,rr=r):(Jp.test(t.charAt(l))?(Xr=t.charAt(l),l++):(Xr=r,lt===0&&Jt(Qp)),Xr===r&&(Xr=null),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr+=(Jr=Xr)===null?"":Jr));var Jr;return rr})())!==r&&(q=Cs())!==r?(dn=L,L=M+=q):(l=L,L=r),L}function Cs(){var L,M,q;if(L=l,M=[],(q=js())!==r)for(;q!==r;)M.push(q),q=js();else M=r;return M!==r&&(dn=L,M=M.join("")),L=M}function js(){var L;return Sl.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(Ol)),L}function qe(){var L;return np.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(bv)),L}function bo(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="default"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(nl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function tu(){var L,M,q,rr;return L=l,t.substr(l,2).toLowerCase()==="to"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(rd)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Ru(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="top"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(jp)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Je(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="show"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(td)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function hu(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="drop"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(nd)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="DROP")),L}function Go(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="alter"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Hp)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function nu(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="select"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(gp)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function xe(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="update"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(sd)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function qs(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="create"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(ed)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function fo(){var L,M,q,rr;return L=l,t.substr(l,9).toLowerCase()==="temporary"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(Yp)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Ks(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="temp"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(od)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Vo(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="delete"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(ud)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function eu(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="insert"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Rp)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Jo(){var L,M,q,rr;return L=l,t.substr(l,9).toLowerCase()==="recursive"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(Zv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="RECURSIVE")),L}function Bu(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="replace"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(O)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function oa(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="rename"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Bv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Nu(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="ignore"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(df)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function cu(){var L,M,q,rr;return L=l,t.substr(l,9).toLowerCase()==="partition"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(Lf)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="PARTITION")),L}function le(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="into"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Hv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function vu(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="from"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(on)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Ee(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="set"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Rl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="SET")),L}function yi(){var L,M,q,rr;return L=l,t.substr(l,2).toLowerCase()==="as"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(zs)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Rc(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="table"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Bc)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TABLE")),L}function Wa(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="schema"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Ae)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="SCHEMA")),L}function vc(){var L,M,q,rr;return L=l,t.substr(l,2).toLowerCase()==="on"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(ri)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Ev(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="join"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Ls)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function cb(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="outer"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Mv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function ad(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="values"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Cf)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function hi(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="using"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(dv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function ap(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="with"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(uv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function A0(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="group"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Xs)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function fl(){var L,M,q,rr;return L=l,t.substr(l,2).toLowerCase()==="by"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(ic)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function Av(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="order"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(op)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function bl(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="asc"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Wv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="ASC")),L}function gu(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="desc"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(zb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="DESC")),L}function Xi(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="all"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(wf)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="ALL")),L}function Du(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="distinct"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(qv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="DISTINCT")),L}function Hu(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="between"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Cv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="BETWEEN")),L}function vl(){var L,M,q,rr;return L=l,t.substr(l,2).toLowerCase()==="in"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(hc)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="IN")),L}function rc(){var L,M,q,rr;return L=l,t.substr(l,2).toLowerCase()==="is"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(rb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="IS")),L}function Ei(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="like"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(tb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="LIKE")),L}function rv(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="ilike"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(I)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="ILIKE")),L}function Tt(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="exists"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(us)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="EXISTS")),L}function Rf(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="regexp"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Sb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="REGEXP")),L}function ga(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="not"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(s0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="NOT")),L}function _i(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="and"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(xl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="AND")),L}function Nc(){var L,M,q,rr;return L=l,t.substr(l,2).toLowerCase()==="or"?(M=t.substr(l,2),l+=2):(M=r,lt===0&&Jt(nb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="OR")),L}function Ai(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="array"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(zt)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="ARRAY")),L}function tc(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="extract"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(yf)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="EXTRACT")),L}function Yf(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="case"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(p0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function sf(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="when"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(up)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function mv(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="end"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(yv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):L=M=[M,q]),L}function pc(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="cast"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Jb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="CAST")),L}function Si(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="try_cast"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(hv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TRY_CAST")),L}function _c(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="binary"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(h)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="BINARY")),L}function Tv(){var L,M,q,rr;return L=l,t.substr(l,9).toLowerCase()==="varbinary"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(ss)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="VARBINARY")),L}function ef(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="char"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Bf)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="CHAR")),L}function ip(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="varchar"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(jt)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="VARCHAR")),L}function Uu(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="number"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Us)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="NUMBER")),L}function Sc(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="numeric"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(ol)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="NUMERIC")),L}function of(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="decimal"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(sb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="DECIMAL")),L}function Xc(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="unsigned"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(ns)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="UNSIGNED")),L}function qa(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="int"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Vl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="INT")),L}function qo(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="byteint"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Hc)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="BYTEINT")),L}function Oc(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="integer"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Ft)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="INTEGER")),L}function Yo(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="smallint"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(Zn)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="SMALLINT")),L}function Xo(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="serial"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(kb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="SERIAL")),L}function $l(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="tinyint"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(U0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TINYINT")),L}function m0(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="tinytext"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(C)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TINYTEXT")),L}function G0(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="text"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Kn)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TEXT")),L}function va(){var L,M,q,rr;return L=l,t.substr(l,10).toLowerCase()==="mediumtext"?(M=t.substr(l,10),l+=10):(M=r,lt===0&&Jt(zi)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="MEDIUMTEXT")),L}function Nf(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="longtext"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(Kl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="LONGTEXT")),L}function Xu(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="bigint"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(zl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="BIGINT")),L}function ot(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="enum"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Ot)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="ENUM")),L}function Xv(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="float"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(hs)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="FLOAT")),L}function R(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="float4"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(Yi)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="FLOAT4")),L}function B(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="float8"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(hl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="FLOAT8")),L}function cr(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="double"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(L0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="DOUBLE")),L}function Er(){var L,M,q,rr;return L=l,t.substr(l,9).toLowerCase()==="bigserial"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(Bn)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="BIGSERIAL")),L}function vt(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="real"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Qb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="REAL")),L}function it(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="date"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(cv)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="DATE")),L}function Et(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="datetime"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(C0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="DATETIME")),L}function $t(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="rows"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(Hf)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="ROWS")),L}function en(){var L,M,q,rr;return L=l,t.substr(l,4).toLowerCase()==="time"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(k0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TIME")),L}function hn(){var L,M,q,rr;return L=l,t.substr(l,9).toLowerCase()==="timestamp"?(M=t.substr(l,9),l+=9):(M=r,lt===0&&Jt(M0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TIMESTAMP")),L}function ds(){var L,M,q,rr;return L=l,t.substr(l,12).toLowerCase()==="timestamp_tz"?(M=t.substr(l,12),l+=12):(M=r,lt===0&&Jt(Wi)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TIMESTAMP_TZ")),L}function Ns(){var L,M,q,rr;return L=l,t.substr(l,13).toLowerCase()==="timestamp_ntz"?(M=t.substr(l,13),l+=13):(M=r,lt===0&&Jt(wa)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TIMESTAMP_NTZ")),L}function Fs(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="truncate"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(Oa)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="TRUNCATE")),L}function ue(){var L,M,q,rr;return L=l,t.substr(l,8).toLowerCase()==="interval"?(M=t.substr(l,8),l+=8):(M=r,lt===0&&Jt(Su)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="INTERVAL")),L}function ee(){var L,M,q,rr;return L=l,t.substr(l,17).toLowerCase()==="current_timestamp"?(M=t.substr(l,17),l+=17):(M=r,lt===0&&Jt(ab)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="CURRENT_TIMESTAMP")),L}function ie(){var L;return t.charCodeAt(l)===36?(L="$",l++):(L=r,lt===0&&Jt(Te)),L}function ro(){var L;return t.substr(l,2)==="$$"?(L="$$",l+=2):(L=r,lt===0&&Jt(fa)),L}function $e(){var L;return(L=(function(){var M;return t.substr(l,2)==="@@"?(M="@@",l+=2):(M=r,lt===0&&Jt(ib)),M})())===r&&(L=(function(){var M;return t.charCodeAt(l)===64?(M="@",l++):(M=r,lt===0&&Jt(Q0)),M})())===r&&(L=ie())===r&&(L=ie()),L}function Gs(){var L;return t.substr(l,2)==="::"?(L="::",l+=2):(L=r,lt===0&&Jt(Ii)),L}function iu(){var L;return t.charCodeAt(l)===58?(L=":",l++):(L=r,lt===0&&Jt(Wl)),L}function Oo(){var L;return t.charCodeAt(l)===61?(L="=",l++):(L=r,lt===0&&Jt(pf)),L}function wu(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="add"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt($0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="ADD")),L}function Ea(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="column"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(gf)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="COLUMN")),L}function Do(){var L,M,q,rr;return L=l,t.substr(l,5).toLowerCase()==="index"?(M=t.substr(l,5),l+=5):(M=r,lt===0&&Jt(Zl)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="INDEX")),L}function Ka(){var L,M,q,rr;return L=l,t.substr(l,3).toLowerCase()==="key"?(M=t.substr(l,3),l+=3):(M=r,lt===0&&Jt(Vi)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="KEY")),L}function dc(){var L,M,q,rr;return L=l,t.substr(l,6).toLowerCase()==="unique"?(M=t.substr(l,6),l+=6):(M=r,lt===0&&Jt(bb)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="UNIQUE")),L}function _f(){var L,M,q,rr;return L=l,t.substr(l,7).toLowerCase()==="comment"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(h0)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="COMMENT")),L}function La(){var L,M,q,rr;return L=l,t.substr(l,10).toLowerCase()==="constraint"?(M=t.substr(l,10),l+=10):(M=r,lt===0&&Jt(n)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="CONSTRAINT")),L}function Db(){var L,M,q,rr;return L=l,t.substr(l,12).toLowerCase()==="concurrently"?(M=t.substr(l,12),l+=12):(M=r,lt===0&&Jt(st)),M===r?(l=L,L=r):(q=l,lt++,rr=Is(),lt--,rr===r?q=void 0:(l=q,q=r),q===r?(l=L,L=r):(dn=L,L=M="CONCURRENTLY")),L}function Wf(){var L;return t.charCodeAt(l)===46?(L=".",l++):(L=r,lt===0&&Jt(fv)),L}function Wo(){var L;return t.charCodeAt(l)===44?(L=",",l++):(L=r,lt===0&&Jt(Wc)),L}function $b(){var L;return t.charCodeAt(l)===42?(L="*",l++):(L=r,lt===0&&Jt(En)),L}function pu(){var L;return t.charCodeAt(l)===40?(L="(",l++):(L=r,lt===0&&Jt(o0)),L}function fu(){var L;return t.charCodeAt(l)===41?(L=")",l++):(L=r,lt===0&&Jt(xi)),L}function Vu(){var L;return t.charCodeAt(l)===91?(L="[",l++):(L=r,lt===0&&Jt(Kr)),L}function ra(){var L;return t.charCodeAt(l)===93?(L="]",l++):(L=r,lt===0&&Jt(Mb)),L}function fd(){var L;return t.charCodeAt(l)===59?(L=";",l++):(L=r,lt===0&&Jt(je)),L}function w(){var L;return t.substr(l,2)==="->"?(L="->",l+=2):(L=r,lt===0&&Jt(fc)),L}function G(){var L;return t.substr(l,3)==="->>"?(L="->>",l+=3):(L=r,lt===0&&Jt(qi)),L}function z(){var L;return(L=(function(){var M;return t.substr(l,2)==="||"?(M="||",l+=2):(M=r,lt===0&&Jt(Ys)),M})())===r&&(L=(function(){var M;return t.substr(l,2)==="&&"?(M="&&",l+=2):(M=r,lt===0&&Jt(Ji)),M})()),L}function g(){var L,M;for(L=[],(M=wn())===r&&(M=Vr());M!==r;)L.push(M),(M=wn())===r&&(M=Vr());return L}function Gr(){var L,M;if(L=[],(M=wn())===r&&(M=Vr()),M!==r)for(;M!==r;)L.push(M),(M=wn())===r&&(M=Vr());else L=r;return L}function Vr(){var L;return(L=(function M(){var q=l,rr,Dr,Xr,Jr,Mt,nn;if(t.substr(l,2)==="/*"?(rr="/*",l+=2):(rr=r,lt===0&&Jt(Ri)),rr!==r){for(Dr=[],Xr=l,Jr=l,lt++,t.substr(l,2)==="*/"?(Mt="*/",l+=2):(Mt=r,lt===0&&Jt(qu)),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Xr,Xr=r):(Mt=l,lt++,t.substr(l,2)==="/*"?(nn="/*",l+=2):(nn=r,lt===0&&Jt(Ri)),lt--,nn===r?Mt=void 0:(l=Mt,Mt=r),Mt!==r&&(nn=Pt())!==r?Xr=Jr=[Jr,Mt,nn]:(l=Xr,Xr=r)),Xr===r&&(Xr=M());Xr!==r;)Dr.push(Xr),Xr=l,Jr=l,lt++,t.substr(l,2)==="*/"?(Mt="*/",l+=2):(Mt=r,lt===0&&Jt(qu)),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Xr,Xr=r):(Mt=l,lt++,t.substr(l,2)==="/*"?(nn="/*",l+=2):(nn=r,lt===0&&Jt(Ri)),lt--,nn===r?Mt=void 0:(l=Mt,Mt=r),Mt!==r&&(nn=Pt())!==r?Xr=Jr=[Jr,Mt,nn]:(l=Xr,Xr=r)),Xr===r&&(Xr=M());Dr===r?(l=q,q=r):(t.substr(l,2)==="*/"?(Xr="*/",l+=2):(Xr=r,lt===0&&Jt(qu)),Xr===r?(l=q,q=r):q=rr=[rr,Dr,Xr])}else l=q,q=r;return q})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr;if(t.substr(l,2)==="--"?(q="--",l+=2):(q=r,lt===0&&Jt(Se)),q!==r){for(rr=[],Dr=l,Xr=l,lt++,Jr=Rn(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr!==r&&(Jr=Pt())!==r?Dr=Xr=[Xr,Jr]:(l=Dr,Dr=r);Dr!==r;)rr.push(Dr),Dr=l,Xr=l,lt++,Jr=Rn(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr!==r&&(Jr=Pt())!==r?Dr=Xr=[Xr,Jr]:(l=Dr,Dr=r);rr===r?(l=M,M=r):M=q=[q,rr]}else l=M,M=r;return M})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr;if(t.substr(l,2)==="//"?(q="//",l+=2):(q=r,lt===0&&Jt(tf)),q!==r){for(rr=[],Dr=l,Xr=l,lt++,Jr=Rn(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr!==r&&(Jr=Pt())!==r?Dr=Xr=[Xr,Jr]:(l=Dr,Dr=r);Dr!==r;)rr.push(Dr),Dr=l,Xr=l,lt++,Jr=Rn(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr!==r&&(Jr=Pt())!==r?Dr=Xr=[Xr,Jr]:(l=Dr,Dr=r);rr===r?(l=M,M=r):M=q=[q,rr]}else l=M,M=r;return M})()),L}function Qr(){var L,M,q,rr;return L=l,(M=_f())!==r&&g()!==r?((q=Oo())===r&&(q=null),q!==r&&g()!==r&&(rr=et())!==r?(dn=L,L=M=(function(Dr,Xr,Jr){return{type:Dr.toLowerCase(),keyword:Dr.toLowerCase(),symbol:Xr,value:Jr}})(M,q,rr)):(l=L,L=r)):(l=L,L=r),L}function Pt(){var L;return t.length>l?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(Qu)),L}function wn(){var L;return P0.test(t.charAt(l))?(L=t.charAt(l),l++):(L=r,lt===0&&Jt(gc)),L}function Rn(){var L,M;if((L=(function(){var q=l,rr;return lt++,t.length>l?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Qu)),lt--,rr===r?q=void 0:(l=q,q=r),q})())===r)if(L=[],yl.test(t.charAt(l))?(M=t.charAt(l),l++):(M=r,lt===0&&Jt(jc)),M!==r)for(;M!==r;)L.push(M),yl.test(t.charAt(l))?(M=t.charAt(l),l++):(M=r,lt===0&&Jt(jc));else L=r;return L}function An(){var L,M;return L=l,dn=l,F0=[],r!==void 0&&g()!==r?((M=Mn())===r&&(M=(function(){var q=l,rr;return(function(){var Dr;return t.substr(l,6).toLowerCase()==="return"?(Dr=t.substr(l,6),l+=6):(Dr=r,lt===0&&Jt(Zi)),Dr})()!==r&&g()!==r&&(rr=as())!==r?(dn=q,q={type:"return",expr:rr}):(l=q,q=r),q})()),M===r?(l=L,L=r):(dn=L,L={type:"proc",stmt:M,vars:F0})):(l=L,L=r),L}function Mn(){var L,M,q,rr;return L=l,(M=Bo())===r&&(M=No()),M!==r&&g()!==r?((q=(function(){var Dr;return t.substr(l,2)===":="?(Dr=":=",l+=2):(Dr=r,lt===0&&Jt(rf)),Dr})())===r&&(q=Oo()),q!==r&&g()!==r&&(rr=as())!==r?(dn=L,L=M={type:"assign",left:M,symbol:q,right:rr}):(l=L,L=r)):(l=L,L=r),L}function as(){var L;return(L=Ht())===r&&(L=(function(){var M=l,q,rr,Dr,Xr;return(q=Bo())!==r&&g()!==r&&(rr=K())!==r&&g()!==r&&(Dr=Bo())!==r&&g()!==r&&(Xr=Ve())!==r?(dn=M,M=q={type:"join",ltable:q,rtable:Dr,op:rr,on:Xr}):(l=M,M=r),M})())===r&&(L=cs())===r&&(L=(function(){var M=l,q;return Vu()!==r&&g()!==r&&(q=oo())!==r&&g()!==r&&ra()!==r?(dn=M,M={type:"array",value:q}):(l=M,M=r),M})()),L}function cs(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=_s())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=ir())!==r&&(Jr=g())!==r&&(Mt=_s())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=ir())!==r&&(Jr=g())!==r&&(Mt=_s())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=a0(M,q))}else l=L,L=r;return L}function _s(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=we())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=rs())!==r&&(Jr=g())!==r&&(Mt=we())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=rs())!==r&&(Jr=g())!==r&&(Mt=we())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=a0(M,q))}else l=L,L=r;return L}function we(){var L,M,q;return(L=Qs())===r&&(L=Bo())===r&&(L=jr())===r&&(L=eo())===r&&(L=l,pu()!==r&&g()!==r&&(M=cs())!==r&&g()!==r&&fu()!==r?(dn=L,(q=M).parentheses=!0,L=q):(l=L,L=r)),L}function Pe(){var L,M,q,rr,Dr,Xr,Jr;return L=l,(M=Ar())===r?(l=L,L=r):(q=l,(rr=g())!==r&&(Dr=Wf())!==r&&(Xr=g())!==r&&(Jr=Ar())!==r?q=rr=[rr,Dr,Xr,Jr]:(l=q,q=r),q===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(Mt,nn){let On={name:[Mt]};return nn!==null&&(On.schema=Mt,On.name=[nn[3]]),On})(M,q))),L}function jr(){var L,M,q;return L=l,(M=Pe())!==r&&g()!==r&&pu()!==r&&g()!==r?((q=oo())===r&&(q=null),q!==r&&g()!==r&&fu()!==r?(dn=L,L=M=(function(rr,Dr){return{type:"function",name:rr,args:{type:"expr_list",value:Dr},...Mo()}})(M,q)):(l=L,L=r)):(l=L,L=r),L===r&&(L=l,(M=Pe())!==r&&(dn=L,M=(function(rr){return{type:"function",name:rr,args:null,...Mo()}})(M)),L=M),L}function oo(){var L,M,q,rr,Dr,Xr,Jr,Mt;if(L=l,(M=we())!==r){for(q=[],rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=we())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);rr!==r;)q.push(rr),rr=l,(Dr=g())!==r&&(Xr=Wo())!==r&&(Jr=g())!==r&&(Mt=we())!==r?rr=Dr=[Dr,Xr,Jr,Mt]:(l=rr,rr=r);q===r?(l=L,L=r):(dn=L,L=M=Wr(M,q))}else l=L,L=r;return L}function Bo(){var L,M,q,rr,Dr,Xr,Jr;if(L=l,(M=ro())!==r){for(q=[],al.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Jl));rr!==r;)q.push(rr),al.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Jl));q!==r&&(rr=ro())!==r?(dn=L,L=M={type:"var",name:q.join(""),prefix:"$$",suffix:"$$"}):(l=L,L=r)}else l=L,L=r;if(L===r){if(L=l,(M=ie())!==r)if((q=Ws())!==r)if((rr=ie())!==r){for(Dr=[],al.test(t.charAt(l))?(Xr=t.charAt(l),l++):(Xr=r,lt===0&&Jt(Jl));Xr!==r;)Dr.push(Xr),al.test(t.charAt(l))?(Xr=t.charAt(l),l++):(Xr=r,lt===0&&Jt(Jl));Dr!==r&&(Xr=ie())!==r&&(Jr=Ws())!==r?(dn=l,((function(Mt,nn,On){if(Mt!==On)return!0})(q,0,Jr)?r:void 0)!==r&&ie()!==r?(dn=L,L=M=(function(Mt,nn,On){return{type:"var",name:nn.join(""),prefix:`$${Mt}$`,suffix:`$${On}$`}})(q,Dr,Jr)):(l=L,L=r)):(l=L,L=r)}else l=L,L=r;else l=L,L=r;else l=L,L=r;L===r&&(L=l,(M=$e())!==r&&(q=No())!==r?(dn=L,L=M=(function(Mt,nn){return{type:"var",...nn,prefix:Mt}})(M,q)):(l=L,L=r))}return L}function No(){var L,M,q,rr,Dr;return L=l,t.charCodeAt(l)===34?(M='"',l++):(M=r,lt===0&&Jt(ua)),M===r&&(M=null),M!==r&&(q=ne())!==r&&(rr=(function(){var Xr=l,Jr=[],Mt=l,nn,On;for(t.charCodeAt(l)===46?(nn=".",l++):(nn=r,lt===0&&Jt(fv)),nn!==r&&(On=ne())!==r?Mt=nn=[nn,On]:(l=Mt,Mt=r);Mt!==r;)Jr.push(Mt),Mt=l,t.charCodeAt(l)===46?(nn=".",l++):(nn=r,lt===0&&Jt(fv)),nn!==r&&(On=ne())!==r?Mt=nn=[nn,On]:(l=Mt,Mt=r);return Jr!==r&&(dn=Xr,Jr=(function(fr){let os=[];for(let Es=0;Es<fr.length;Es++)os.push(fr[Es][1]);return os})(Jr)),Xr=Jr})())!==r?(t.charCodeAt(l)===34?(Dr='"',l++):(Dr=r,lt===0&&Jt(ua)),Dr===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,L=M=(function(Xr,Jr,Mt,nn){if(Xr&&!nn||!Xr&&nn)throw Error("double quoted not match");return F0.push(Jr),{type:"var",name:Jr,members:Mt,quoted:Xr&&nn?'"':null,prefix:null}})(M,q,rr,Dr))):(l=L,L=r),L===r&&(L=l,(M=Ut())!==r&&(dn=L,M={type:"var",name:M.value,members:[],quoted:null,prefix:null}),L=M),L}function lu(){var L;return(L=(function(){var M=l,q,rr;(q=_u())===r&&(q=ru()),q!==r&&g()!==r&&Vu()!==r&&g()!==r&&(rr=ra())!==r&&g()!==r&&Vu()!==r&&g()!==r&&ra()!==r?(dn=M,Dr=q,q={...Dr,array:{dimension:2}},M=q):(l=M,M=r);var Dr;return M===r&&(M=l,(q=_u())===r&&(q=ru()),q!==r&&g()!==r&&Vu()!==r&&g()!==r?((rr=Ut())===r&&(rr=null),rr!==r&&g()!==r&&ra()!==r?(dn=M,q=(function(Xr,Jr){return{...Xr,array:{dimension:1,length:[Jr]}}})(q,rr),M=q):(l=M,M=r)):(l=M,M=r),M===r&&(M=l,(q=_u())===r&&(q=ru()),q!==r&&g()!==r&&Ai()!==r?(dn=M,q=(function(Xr){return{...Xr,array:{keyword:"array"}}})(q),M=q):(l=M,M=r))),M})())===r&&(L=ru())===r&&(L=_u())===r&&(L=(function(){var M=l,q,rr,Dr;if((q=it())===r&&(q=Et())===r&&(q=ds())===r&&(q=Ns()),q!==r)if(g()!==r)if(pu()!==r)if(g()!==r){if(rr=[],Sl.test(t.charAt(l))?(Dr=t.charAt(l),l++):(Dr=r,lt===0&&Jt(Ol)),Dr!==r)for(;Dr!==r;)rr.push(Dr),Sl.test(t.charAt(l))?(Dr=t.charAt(l),l++):(Dr=r,lt===0&&Jt(Ol));else rr=r;rr!==r&&(Dr=g())!==r&&fu()!==r?(dn=M,q={dataType:q,length:parseInt(rr.join(""),10),parentheses:!0},M=q):(l=M,M=r)}else l=M,M=r;else l=M,M=r;else l=M,M=r;else l=M,M=r;return M===r&&(M=l,(q=it())===r&&(q=Et())===r&&(q=ds())===r&&(q=Ns()),q!==r&&(dn=M,q=ya(q)),(M=q)===r&&(M=(function(){var Xr=l,Jr,Mt,nn,On,fr;if((Jr=en())===r&&(Jr=hn()),Jr!==r)if(g()!==r)if((Mt=pu())!==r)if(g()!==r){if(nn=[],Sl.test(t.charAt(l))?(On=t.charAt(l),l++):(On=r,lt===0&&Jt(Ol)),On!==r)for(;On!==r;)nn.push(On),Sl.test(t.charAt(l))?(On=t.charAt(l),l++):(On=r,lt===0&&Jt(Ol));else nn=r;nn!==r&&(On=g())!==r&&fu()!==r&&g()!==r?((fr=mo())===r&&(fr=null),fr===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(os,Es,ls){return{dataType:os,length:parseInt(Es.join(""),10),parentheses:!0,suffix:ls}})(Jr,nn,fr),Xr=Jr)):(l=Xr,Xr=r)}else l=Xr,Xr=r;else l=Xr,Xr=r;else l=Xr,Xr=r;else l=Xr,Xr=r;return Xr===r&&(Xr=l,(Jr=en())===r&&(Jr=hn()),Jr!==r&&g()!==r?((Mt=mo())===r&&(Mt=null),Mt===r?(l=Xr,Xr=r):(dn=Xr,Jr=(function(os,Es){return{dataType:os,suffix:Es}})(Jr,Mt),Xr=Jr)):(l=Xr,Xr=r)),Xr})())),M})())===r&&(L=(function(){var M=l,q;return(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,4).toLowerCase()==="json"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(xs)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="JSON")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,5).toLowerCase()==="jsonb"?(Dr=t.substr(l,5),l+=5):(Dr=r,lt===0&&Jt(Li)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="JSONB")),rr})()),q!==r&&(dn=M,q=ya(q)),M=q})())===r&&(L=(function(){var M=l,q;return(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,8).toLowerCase()==="geometry"?(Dr=t.substr(l,8),l+=8):(Dr=r,lt===0&&Jt(Ta)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="GEOMETRY")),rr})())!==r&&(dn=M,q={dataType:q}),M=q})())===r&&(L=(function(){var M=l,q;return(q=m0())===r&&(q=G0())===r&&(q=va())===r&&(q=Nf()),q!==r&&Vu()!==r&&g()!==r&&ra()!==r?(dn=M,M=q={dataType:q+"[]"}):(l=M,M=r),M===r&&(M=l,(q=m0())===r&&(q=G0())===r&&(q=va())===r&&(q=Nf()),q!==r&&(dn=M,q=(function(rr){return{dataType:rr}})(q)),M=q),M})())===r&&(L=(function(){var M=l,q;return(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,4).toLowerCase()==="uuid"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(We)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="UUID")),rr})())!==r&&(dn=M,q={dataType:q}),M=q})())===r&&(L=(function(){var M=l,q;return(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,4).toLowerCase()==="bool"?(Dr=t.substr(l,4),l+=4):(Dr=r,lt===0&&Jt(Xl)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="BOOL")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,7).toLowerCase()==="boolean"?(Dr=t.substr(l,7),l+=7):(Dr=r,lt===0&&Jt(d0)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="BOOLEAN")),rr})()),q!==r&&(dn=M,q=qc(q)),M=q})())===r&&(L=(function(){var M=l,q,rr;(q=ot())!==r&&g()!==r&&(rr=xu())!==r?(dn=M,Dr=q,(Xr=rr).parentheses=!0,M=q={dataType:Dr,expr:Xr}):(l=M,M=r);var Dr,Xr;return M})())===r&&(L=(function(){var M=l,q;return(q=Xo())===r&&(q=ue()),q!==r&&(dn=M,q=ya(q)),M=q})())===r&&(L=(function(){var M=l,q,rr,Dr,Xr,Jr,Mt,nn,On;if((q=_c())===r&&(q=Tv()),q!==r)if(g()!==r)if(pu()!==r)if(g()!==r){if(rr=[],Sl.test(t.charAt(l))?(Dr=t.charAt(l),l++):(Dr=r,lt===0&&Jt(Ol)),Dr!==r)for(;Dr!==r;)rr.push(Dr),Sl.test(t.charAt(l))?(Dr=t.charAt(l),l++):(Dr=r,lt===0&&Jt(Ol));else rr=r;if(rr!==r)if((Dr=g())!==r){if(Xr=l,(Jr=Wo())!==r)if((Mt=g())!==r){if(nn=[],Sl.test(t.charAt(l))?(On=t.charAt(l),l++):(On=r,lt===0&&Jt(Ol)),On!==r)for(;On!==r;)nn.push(On),Sl.test(t.charAt(l))?(On=t.charAt(l),l++):(On=r,lt===0&&Jt(Ol));else nn=r;nn===r?(l=Xr,Xr=r):Xr=Jr=[Jr,Mt,nn]}else l=Xr,Xr=r;else l=Xr,Xr=r;Xr===r&&(Xr=null),Xr!==r&&(Jr=g())!==r&&(Mt=fu())!==r&&(nn=g())!==r?((On=Me())===r&&(On=null),On===r?(l=M,M=r):(dn=M,fr=Xr,os=On,q={dataType:q,length:parseInt(rr.join(""),10),scale:fr&&parseInt(fr[2].join(""),10),parentheses:!0,suffix:os},M=q)):(l=M,M=r)}else l=M,M=r;else l=M,M=r}else l=M,M=r;else l=M,M=r;else l=M,M=r;else l=M,M=r;var fr,os;return M===r&&(M=l,(q=_c())===r&&(q=Tv()),q!==r&&(dn=M,q=(function(Es){return{dataType:Es}})(q)),M=q),M})())===r&&(L=(function(){var M=l,q;return(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,9).toLowerCase()==="geography"?(Dr=t.substr(l,9),l+=9):(Dr=r,lt===0&&Jt(x0)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="GEOGRAPHY")),rr})())!==r&&(dn=M,q={dataType:q}),M=q})())===r&&(L=(function(){var M=l,q;return(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,3).toLowerCase()==="oid"?(Dr=t.substr(l,3),l+=3):(Dr=r,lt===0&&Jt(ob)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="OID")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,8).toLowerCase()==="regclass"?(Dr=t.substr(l,8),l+=8):(Dr=r,lt===0&&Jt(V0)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGCLASS")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,12).toLowerCase()==="regcollation"?(Dr=t.substr(l,12),l+=12):(Dr=r,lt===0&&Jt(hf)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGCOLLATION")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,9).toLowerCase()==="regconfig"?(Dr=t.substr(l,9),l+=9):(Dr=r,lt===0&&Jt(Ef)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGCONFIG")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,13).toLowerCase()==="regdictionary"?(Dr=t.substr(l,13),l+=13):(Dr=r,lt===0&&Jt(K0)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGDICTIONARY")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,12).toLowerCase()==="regnamespace"?(Dr=t.substr(l,12),l+=12):(Dr=r,lt===0&&Jt(Af)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGNAMESPACE")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,7).toLowerCase()==="regoper"?(Dr=t.substr(l,7),l+=7):(Dr=r,lt===0&&Jt(El)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGOPER")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,11).toLowerCase()==="regoperator"?(Dr=t.substr(l,11),l+=11):(Dr=r,lt===0&&Jt(w0)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGOPERATOR")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,7).toLowerCase()==="regproc"?(Dr=t.substr(l,7),l+=7):(Dr=r,lt===0&&Jt(ul)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGPROC")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,12).toLowerCase()==="regprocedure"?(Dr=t.substr(l,12),l+=12):(Dr=r,lt===0&&Jt(Ye)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGPROCEDURE")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,7).toLowerCase()==="regrole"?(Dr=t.substr(l,7),l+=7):(Dr=r,lt===0&&Jt(mf)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGROLE")),rr})())===r&&(q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,7).toLowerCase()==="regtype"?(Dr=t.substr(l,7),l+=7):(Dr=r,lt===0&&Jt(z0)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="REGTYPE")),rr})()),q!==r&&(dn=M,q=qc(q)),M=q})()),L}function ru(){var L,M,q,rr;if(L=l,(M=ef())===r&&(M=ip()),M!==r)if(g()!==r)if(pu()!==r)if(g()!==r){if(q=[],Sl.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Ol)),rr!==r)for(;rr!==r;)q.push(rr),Sl.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Ol));else q=r;q!==r&&(rr=g())!==r&&fu()!==r?(dn=L,L=M={dataType:M,length:parseInt(q.join(""),10),parentheses:!0}):(l=L,L=r)}else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;return L===r&&(L=l,(M=ef())===r&&(M=(function(){var Dr,Xr,Jr,Mt;return Dr=l,t.substr(l,9).toLowerCase()==="character"?(Xr=t.substr(l,9),l+=9):(Xr=r,lt===0&&Jt(R0)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="CHARACTER")),Dr})())===r&&(M=ip())===r&&(M=(function(){var Dr,Xr,Jr,Mt;return Dr=l,t.substr(l,6).toLowerCase()==="string"?(Xr=t.substr(l,6),l+=6):(Xr=r,lt===0&&Jt(eb)),Xr===r?(l=Dr,Dr=r):(Jr=l,lt++,Mt=Is(),lt--,Mt===r?Jr=void 0:(l=Jr,Jr=r),Jr===r?(l=Dr,Dr=r):(dn=Dr,Dr=Xr="STRING")),Dr})()),M!==r&&(dn=L,M=(function(Dr){return{dataType:Dr}})(M)),L=M),L}function Me(){var L,M,q;return L=l,(M=Xc())===r&&(M=null),M!==r&&g()!==r?((q=(function(){var rr,Dr,Xr,Jr;return rr=l,t.substr(l,8).toLowerCase()==="zerofill"?(Dr=t.substr(l,8),l+=8):(Dr=r,lt===0&&Jt(Ub)),Dr===r?(l=rr,rr=r):(Xr=l,lt++,Jr=Is(),lt--,Jr===r?Xr=void 0:(l=Xr,Xr=r),Xr===r?(l=rr,rr=r):(dn=rr,rr=Dr="ZEROFILL")),rr})())===r&&(q=null),q===r?(l=L,L=r):(dn=L,L=M=(function(rr,Dr){let Xr=[];return rr&&Xr.push(rr),Dr&&Xr.push(Dr),Xr})(M,q))):(l=L,L=r),L}function _u(){var L,M,q,rr,Dr,Xr,Jr,Mt,nn,On,fr,os,Es,ls;if(L=l,(M=Uu())===r&&(M=of())===r&&(M=qa())===r&&(M=qo())===r&&(M=Oc())===r&&(M=Sc())===r&&(M=Yo())===r&&(M=$l())===r&&(M=Xu())===r&&(M=Xv())===r&&(M=R())===r&&(M=B())===r&&(M=cr())===r&&(M=Xo())===r&&(M=Er())===r&&(M=vt()),M!==r)if((q=g())!==r)if((rr=pu())!==r)if((Dr=g())!==r){if(Xr=[],Sl.test(t.charAt(l))?(Jr=t.charAt(l),l++):(Jr=r,lt===0&&Jt(Ol)),Jr!==r)for(;Jr!==r;)Xr.push(Jr),Sl.test(t.charAt(l))?(Jr=t.charAt(l),l++):(Jr=r,lt===0&&Jt(Ol));else Xr=r;if(Xr!==r)if((Jr=g())!==r){if(Mt=l,(nn=Wo())!==r)if((On=g())!==r){if(fr=[],Sl.test(t.charAt(l))?(os=t.charAt(l),l++):(os=r,lt===0&&Jt(Ol)),os!==r)for(;os!==r;)fr.push(os),Sl.test(t.charAt(l))?(os=t.charAt(l),l++):(os=r,lt===0&&Jt(Ol));else fr=r;fr===r?(l=Mt,Mt=r):Mt=nn=[nn,On,fr]}else l=Mt,Mt=r;else l=Mt,Mt=r;Mt===r&&(Mt=null),Mt!==r&&(nn=g())!==r&&(On=fu())!==r&&(fr=g())!==r?((os=Me())===r&&(os=null),os===r?(l=L,L=r):(dn=L,Es=Mt,ls=os,L=M={dataType:M,length:parseInt(Xr.join(""),10),scale:Es&&parseInt(Es[2].join(""),10),parentheses:!0,suffix:ls})):(l=L,L=r)}else l=L,L=r;else l=L,L=r}else l=L,L=r;else l=L,L=r;else l=L,L=r;else l=L,L=r;if(L===r){if(L=l,(M=Uu())===r&&(M=of())===r&&(M=qa())===r&&(M=qo())===r&&(M=Oc())===r&&(M=Sc())===r&&(M=Yo())===r&&(M=$l())===r&&(M=Xu())===r&&(M=Xv())===r&&(M=R())===r&&(M=B())===r&&(M=cr())===r&&(M=Xo())===r&&(M=Er())===r&&(M=vt()),M!==r){if(q=[],Sl.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Ol)),rr!==r)for(;rr!==r;)q.push(rr),Sl.test(t.charAt(l))?(rr=t.charAt(l),l++):(rr=r,lt===0&&Jt(Ol));else q=r;q!==r&&(rr=g())!==r?((Dr=Me())===r&&(Dr=null),Dr===r?(l=L,L=r):(dn=L,L=M=(function(ws,de,E){return{dataType:ws,length:parseInt(de.join(""),10),suffix:E}})(M,q,Dr))):(l=L,L=r)}else l=L,L=r;L===r&&(L=l,(M=Uu())===r&&(M=of())===r&&(M=qa())===r&&(M=qo())===r&&(M=Oc())===r&&(M=Sc())===r&&(M=Yo())===r&&(M=$l())===r&&(M=Xu())===r&&(M=Xv())===r&&(M=R())===r&&(M=B())===r&&(M=cr())===r&&(M=Xo())===r&&(M=Er())===r&&(M=vt()),M!==r&&(q=g())!==r?((rr=Me())===r&&(rr=null),rr!==r&&(Dr=g())!==r?(dn=L,L=M=(function(ws,de){return{dataType:ws,suffix:de}})(M,rr)):(l=L,L=r)):(l=L,L=r))}return L}function mo(){var L,M,q;return L=l,t.substr(l,7).toLowerCase()==="without"?(M=t.substr(l,7),l+=7):(M=r,lt===0&&Jt(Ba)),M===r&&(t.substr(l,4).toLowerCase()==="with"?(M=t.substr(l,4),l+=4):(M=r,lt===0&&Jt(uv))),M!==r&&g()!==r&&en()!==r&&g()!==r?(t.substr(l,4).toLowerCase()==="zone"?(q=t.substr(l,4),l+=4):(q=r,lt===0&&Jt(Qi)),q===r?(l=L,L=r):(dn=L,L=M=[M.toUpperCase(),"TIME","ZONE"])):(l=L,L=r),L}let ho={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,LEFT:!0,LIKE:!0,LIMIT:!0,NOT:!0,NULL:!0,NULLS:!0,OFFSET:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,QUALIFY:!0,RECURSIVE:!0,RENAME:!0,RIGHT:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,WITH:!0,WHEN:!0,WHERE:!0,WINDOW:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0,PIVOT:!0,UNPIVOT:!0};function Mo(){return Ce.includeLocations?{loc:ve(dn,l)}:{}}function Fo(L,M){return{type:"unary_expr",operator:L,expr:M}}function Gu(L,M,q){return{type:"binary_expr",operator:L,left:M,right:q,...Mo()}}function Ko(L){let M=To(9007199254740991);return!(To(L)<M)}function Wr(L,M,q=3){let rr=[L];for(let Dr=0;Dr<M.length;Dr++)delete M[Dr][q].tableList,delete M[Dr][q].columnList,rr.push(M[Dr][q]);return rr}function Aa(L,M){let q=L;for(let rr=0;rr<M.length;rr++)q=Gu(M[rr][1],q,M[rr][3]);return q}function Lc(L){return pi[L]||L||null}function Fu(L){let M=new Set;for(let q of L.keys()){let rr=q.split("::");if(!rr){M.add(q);break}rr&&rr[1]&&(rr[1]=Lc(rr[1])),M.add(rr.join("::"))}return Array.from(M)}function Pi(L){return typeof L=="string"?{type:"same",value:L}:L}let F0=[],Zu=new Set,Hr=new Set,pi={};if((Ie=ge())!==r&&l===t.length)return Ie;throw Ie!==r&&l<t.length&&Jt({type:"end"}),nf(Va,vi<t.length?t.charAt(vi):null,vi<t.length?ve(vi,vi+1):ve(vi,vi))}}},function(Kc,pl,Cu){var To=Cu(0);function go(t,Ce,Ie,r){this.message=t,this.expected=Ce,this.found=Ie,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,go)}(function(t,Ce){function Ie(){this.constructor=t}Ie.prototype=Ce.prototype,t.prototype=new Ie})(go,Error),go.buildMessage=function(t,Ce){var Ie={literal:function(Dn){return'"'+po(Dn.text)+'"'},class:function(Dn){var Pn,Ae="";for(Pn=0;Pn<Dn.parts.length;Pn++)Ae+=Dn.parts[Pn]instanceof Array?ge(Dn.parts[Pn][0])+"-"+ge(Dn.parts[Pn][1]):ge(Dn.parts[Pn]);return"["+(Dn.inverted?"^":"")+Ae+"]"},any:function(Dn){return"any character"},end:function(Dn){return"end of input"},other:function(Dn){return Dn.description}};function r(Dn){return Dn.charCodeAt(0).toString(16).toUpperCase()}function po(Dn){return Dn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}function ge(Dn){return Dn.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(Pn){return"\\x0"+r(Pn)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(Pn){return"\\x"+r(Pn)}))}return"Expected "+(function(Dn){var Pn,Ae,ou,Hs=Array(Dn.length);for(Pn=0;Pn<Dn.length;Pn++)Hs[Pn]=(ou=Dn[Pn],Ie[ou.type](ou));if(Hs.sort(),Hs.length>0){for(Pn=1,Ae=1;Pn<Hs.length;Pn++)Hs[Pn-1]!==Hs[Pn]&&(Hs[Ae]=Hs[Pn],Ae++);Hs.length=Ae}switch(Hs.length){case 1:return Hs[0];case 2:return Hs[0]+" or "+Hs[1];default:return Hs.slice(0,-1).join(", ")+", or "+Hs[Hs.length-1]}})(t)+" but "+(function(Dn){return Dn?'"'+po(Dn)+'"':"end of input"})(Ce)+" found."},Kc.exports={SyntaxError:go,parse:function(t,Ce){Ce=Ce===void 0?{}:Ce;var Ie,r={},po={start:fc},ge=fc,Dn=Nt("IF",!0),Pn=Nt("EXTENSION",!0),Ae=Nt("SCHEMA",!0),ou=Nt("VERSION",!0),Hs=Nt("CASCADED",!0),Uo=Nt("LOCAL",!0),Ps=Nt("CHECK",!0),pe=Nt("OPTION",!1),_o=Nt("check_option",!0),Gi=Nt("security_barrier",!0),mi=Nt("security_invoker",!0),Fi=Nt("TYPE",!0),T0=Nt("DOMAIN",!0),dl=Nt("INCREMENT",!0),Gl=Nt("MINVALUE",!0),Fl=function(w,G){return{resource:"sequence",prefix:w.toLowerCase(),value:G}},nc=Nt("NO",!0),xc=Nt("MAXVALUE",!0),I0=Nt("START",!0),ji=Nt("CACHE",!0),af=Nt("CYCLE",!0),qf=Nt("OWNED",!0),Uc=Nt("NONE",!0),wc=Nt("NULLS",!0),Ll=Nt("FIRST",!0),jl=Nt("LAST",!0),Oi=Nt("AUTO_INCREMENT",!0),bb=Nt("UNIQUE",!0),Vi=Nt("KEY",!0),zc=Nt("PRIMARY",!0),kc=Nt("COLUMN_FORMAT",!0),vb=Nt("FIXED",!0),Zc=Nt("DYNAMIC",!0),nl=Nt("DEFAULT",!0),Xf=Nt("STORAGE",!0),gl=Nt("DISK",!0),lf=Nt("MEMORY",!0),Jc=Nt("CASCADE",!0),Qc=Nt("RESTRICT",!0),gv=Nt("OUT",!0),g0=Nt("VARIADIC",!0),Ki=Nt("INOUT",!0),Pb=Nt("AGGREGATE",!0),ei=Nt("FUNCTION",!0),pb=Nt("OWNER",!0),j0=Nt("CURRENT_ROLE",!0),B0=Nt("CURRENT_USER",!0),Mc=Nt("SESSION_USER",!0),Cl=Nt("ALGORITHM",!0),$u=Nt("INSTANT",!0),r0=Nt("INPLACE",!0),zn=Nt("COPY",!0),Ss=Nt("LOCK",!0),te=Nt("SHARED",!0),ce=Nt("EXCLUSIVE",!0),He=Nt("PRIMARY KEY",!0),Ue=Nt("FOREIGN KEY",!0),Qe=Nt("MATCH FULL",!0),uo=Nt("MATCH PARTIAL",!0),Ao=Nt("MATCH SIMPLE",!0),Pu=Nt("SET NULL",!0),Ca=Nt("NO ACTION",!0),ku=Nt("SET DEFAULT",!0),ca=Nt("TRIGGER",!0),na=Nt("BEFORE",!0),Qa=Nt("AFTER",!0),cf=Nt("INSTEAD OF",!0),ri=Nt("ON",!0),t0=Nt("EXECUTE",!0),n0=Nt("PROCEDURE",!0),Dc=Nt("OF",!0),s0=Nt("NOT",!0),Rv=Nt("DEFERRABLE",!0),nv=Nt("INITIALLY IMMEDIATE",!0),sv=Nt("INITIALLY DEFERRED",!0),ev=Nt("FOR",!0),yc=Nt("EACH",!0),$c=Nt("ROW",!0),Sf=Nt("STATEMENT",!0),R0=Nt("CHARACTER",!0),Rl=Nt("SET",!0),ff=Nt("CHARSET",!0),Vf=Nt("COLLATE",!0),Vv=Nt("AVG_ROW_LENGTH",!0),db=Nt("KEY_BLOCK_SIZE",!0),Of=Nt("MAX_ROWS",!0),Pc=Nt("MIN_ROWS",!0),H0=Nt("STATS_SAMPLE_PAGES",!0),bf=Nt("CONNECTION",!0),Lb=Nt("COMPRESSION",!0),Fa=Nt("'",!1),Kf=Nt("ZLIB",!0),Nv=Nt("LZ4",!0),Gb=Nt("ENGINE",!0),hc=Nt("IN",!0),Bl=Nt("ACCESS SHARE",!0),sl=Nt("ROW SHARE",!0),sc=Nt("ROW EXCLUSIVE",!0),Y0=Nt("SHARE UPDATE EXCLUSIVE",!0),N0=Nt("SHARE ROW EXCLUSIVE",!0),ov=Nt("ACCESS EXCLUSIVE",!0),Fb=Nt("SHARE",!0),e0=Nt("MODE",!0),Cb=Nt("NOWAIT",!0),_0=Nt("TABLES",!0),zf=Nt("PREPARE",!0),je=Nt(";",!1),o0=Nt("(",!1),xi=Nt(")",!1),xf=function(w,G){return{with:w,...G}},Zf=Nt("OUTFILE",!0),W0=Nt("DUMPFILE",!0),jb=Nt("BTREE",!0),Uf=Nt("HASH",!0),u0=Nt("GIST",!0),wb=Nt("GIN",!0),Ui=Nt("WITH",!0),uv=Nt("PARSER",!0),yb=Nt("VISIBLE",!0),hb=Nt("INVISIBLE",!0),Kv=function(w,G){return G.unshift(w),G.forEach(z=>{let{table:g,as:Gr}=z;fd[g]=g,Gr&&(fd[Gr]=g),(function(Vr){let Qr=Wo(Vr);Vr.clear(),Qr.forEach(Pt=>Vr.add(Pt))})(ra)}),G},Gc=Nt("LATERAL",!0),_v=Nt("TABLESAMPLE",!0),kf=Nt("REPEATABLE",!0),vf=Nt("CROSS",!0),ki=Nt("FOLLOWING",!0),Hl=Nt("PRECEDING",!0),Eb=Nt("CURRENT",!0),Bb=Nt("UNBOUNDED",!0),pa=Nt("=",!1),wl=Nt("DO",!0),Nl=Nt("NOTHING",!0),Sv=Nt("CONFLICT",!0),Hb=Nt("->",!1),Jf=function(w,G){return Db(w,G)},pf=Nt("!",!1),Yb=Nt(">=",!1),av=Nt(">",!1),iv=Nt("<=",!1),a0=Nt("<>",!1),_l=Nt("<",!1),Yl=Nt("!=",!1),Ab=Nt("SIMILAR",!0),Mf=Nt("!~*",!1),Wb=Nt("~*",!1),Df=Nt("~",!1),mb=Nt("!~",!1),i0=Nt("ESCAPE",!0),ft=Nt("+",!1),tn=Nt("-",!1),_n=Nt("*",!1),En=Nt("/",!1),Os=Nt("%",!1),gs=Nt("||",!1),Ys=Nt("$",!1),Te=Nt("?",!1),ye=Nt("?|",!1),Be=Nt("?&",!1),io=Nt("#-",!1),Ro=Nt("#>>",!1),So=Nt("#>",!1),uu=Nt("@>",!1),ko=Nt("<@",!1),yu=Nt("E",!0),au=function(w){return wu[w.toUpperCase()]===!0},Iu=Nt('"',!1),mu=/^[^"]/,Ju=ju(['"'],!0,!1),ua=/^[^']/,Sa=ju(["'"],!0,!1),ma=Nt("`",!1),Bi=/^[^`]/,sa=ju(["`"],!0,!1),di=function(w){return{type:"default",value:w}},Hi=/^[A-Za-z_\u4E00-\u9FA5\xC0-\u017F]/,S0=ju([["A","Z"],["a","z"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),l0=/^[A-Za-z0-9_$\x80-\uFFFF]/,Ov=ju([["A","Z"],["a","z"],["0","9"],"_","$",["\x80","\uFFFF"]],!1,!1),lv=/^[A-Za-z0-9_\u4E00-\u9FA5\xC0-\u017F]/,fi=ju([["A","Z"],["a","z"],["0","9"],"_",["\u4E00","\u9FA5"],["\xC0","\u017F"]],!1,!1),Wl=Nt(":",!1),ec=Nt("OVER",!0),Fc=Nt("FILTER",!0),xv=Nt("FIRST_VALUE",!0),lp=Nt("LAST_VALUE",!0),Uv=Nt("ROW_NUMBER",!0),$f=Nt("DENSE_RANK",!0),Tb=Nt("RANK",!0),cp=Nt("LAG",!0),c0=Nt("LEAD",!0),q0=Nt("NTH_VALUE",!0),df=Nt("IGNORE",!0),f0=Nt("RESPECT",!0),b0=Nt("percentile_cont",!0),Pf=Nt("percentile_disc",!0),Sp=Nt("within",!0),kv=Nt("mode",!0),Op=Nt("BOTH",!0),fp=Nt("LEADING",!0),oc=Nt("TRAILING",!0),uc=Nt("trim",!0),qb=Nt("INPUT",!0),Gf=Nt("=>",!1),zv=Nt("PATH",!0),Mv=Nt("OUTER",!0),Zv=Nt("RECURSIVE",!0),bp=Nt("now",!0),Ib=Nt("at",!0),Dv=Nt("zone",!0),vp=Nt("FLATTEN",!0),Jv=Nt("CENTURY",!0),Xb=Nt("DAY",!0),pp=Nt("DATE",!0),xp=Nt("DECADE",!0),cv=Nt("DOW",!0),Up=Nt("DOY",!0),Xp=Nt("EPOCH",!0),Qv=Nt("HOUR",!0),Vp=Nt("ISODOW",!0),dp=Nt("ISOYEAR",!0),Kp=Nt("MICROSECONDS",!0),ld=Nt("MILLENNIUM",!0),Lp=Nt("MILLISECONDS",!0),Cp=Nt("MINUTE",!0),wp=Nt("MONTH",!0),gb=Nt("QUARTER",!0),O0=Nt("SECOND",!0),v0=Nt("TIMEZONE",!0),ac=Nt("TIMEZONE_HOUR",!0),Rb=Nt("TIMEZONE_MINUTE",!0),Ff=Nt("WEEK",!0),kp=Nt("YEAR",!0),Mp=Nt("NTILE",!0),rp=/^[\n]/,yp=ju([` +`],!1,!1),hp=/^[^"\\\0-\x1F\x7F]/,Ep=ju(['"',"\\",["\0",""],"\x7F"],!0,!1),Nb=/^[^'\\]/,Qf=ju(["'","\\"],!0,!1),_b=Nt("\\'",!1),Ap=Nt('\\"',!1),Dp=Nt("\\\\",!1),$v=Nt("\\/",!1),$p=Nt("\\b",!1),Pp=Nt("\\f",!1),Pv=Nt("\\n",!1),Gp=Nt("\\r",!1),Fp=Nt("\\t",!1),mp=Nt("\\u",!1),zp=Nt("\\",!1),Zp=Nt("''",!1),Gv=/^[\n\r]/,tp=ju([` +`,"\r"],!1,!1),Fv=Nt(".",!1),yl=/^[0-9]/,jc=ju([["0","9"]],!1,!1),fv=/^[0-9a-fA-F]/,Sl=ju([["0","9"],["a","f"],["A","F"]],!1,!1),Ol=/^[eE]/,np=ju(["e","E"],!1,!1),bv=/^[+\-]/,ql=ju(["+","-"],!1,!1),Ec=Nt("NULL",!0),Jp=Nt("NOT NULL",!0),Qp=Nt("TRUE",!0),sp=Nt("TO",!0),jv=Nt("FALSE",!0),Tp=Nt("SHOW",!0),rd=Nt("DROP",!0),jp=Nt("USE",!0),Ip=Nt("ALTER",!0),td=Nt("SELECT",!0),nd=Nt("UPDATE",!0),Bp=Nt("CREATE",!0),Hp=Nt("TEMPORARY",!0),gp=Nt("TEMP",!0),sd=Nt("DELETE",!0),ed=Nt("INSERT",!0),Yp=Nt("REPLACE",!0),od=Nt("RETURNING",!0),ud=Nt("RENAME",!0),Rp=Nt("PARTITION",!0),O=Nt("INTO",!0),ps=Nt("FROM",!0),Bv=Nt("AS",!0),Lf=Nt("TABLE",!0),Hv=Nt("DATABASE",!0),on=Nt("SEQUENCE",!0),zs=Nt("TABLESPACE",!0),Bc=Nt("DEALLOCATE",!0),vv=Nt("LEFT",!0),ep=Nt("RIGHT",!0),Rs=Nt("FULL",!0),Np=Nt("INNER",!0),Wp=Nt("JOIN",!0),cd=Nt("UNION",!0),Vb=Nt("VALUES",!0),_=Nt("USING",!0),Ls=Nt("WHERE",!0),pv=Nt("GROUP",!0),Cf=Nt("BY",!0),dv=Nt("ORDER",!0),Qt=Nt("HAVING",!0),Xs=Nt("WINDOW",!0),ic=Nt("LIMIT",!0),op=Nt("OFFSET",!0),Kb=Nt("ASC",!0),ys=Nt("DESC",!0),_p=Nt("ALL",!0),Yv=Nt("DISTINCT",!0),Lv=Nt("BETWEEN",!0),Wv=Nt("IS",!0),zb=Nt("LIKE",!0),wf=Nt("ILIKE",!0),qv=Nt("EXISTS",!0),Cv=Nt("AND",!0),rb=Nt("OR",!0),tb=Nt("ARRAY",!0),I=Nt("ARRAY_AGG",!0),us=Nt("STRING_AGG",!0),Sb=Nt("COUNT",!0),xl=Nt("GROUP_CONCAT",!0),nb=Nt("MAX",!0),zt=Nt("MIN",!0),$s=Nt("SUM",!0),ja=Nt("AVG",!0),Ob=Nt("EXTRACT",!0),jf=Nt("CALL",!0),is=Nt("CASE",!0),el=Nt("WHEN",!0),Ti=Nt("THEN",!0),wv=Nt("ELSE",!0),yf=Nt("END",!0),X0=Nt("CAST",!0),p0=Nt("TRY_CAST",!0),up=Nt("BOOL",!0),xb=Nt("BOOLEAN",!0),Zb=Nt("CHAR",!0),yv=Nt("VARCHAR",!0),Jb=Nt("NUMBER",!0),hv=Nt("DECIMAL",!0),h=Nt("SIGNED",!0),ss=Nt("UNSIGNED",!0),Xl=Nt("INT",!0),d0=Nt("ZEROFILL",!0),Bf=Nt("INTEGER",!0),jt=Nt("JSON",!0),Us=Nt("JSONB",!0),ol=Nt("GEOMETRY",!0),sb=Nt("SMALLINT",!0),eb=Nt("SERIAL",!0),p=Nt("TINYINT",!0),ns=Nt("TINYTEXT",!0),Vl=Nt("TEXT",!0),Hc=Nt("MEDIUMTEXT",!0),Ub=Nt("LONGTEXT",!0),Ft=Nt("BIGINT",!0),xs=Nt("ENUM",!0),Li=Nt("FLOAT",!0),Ta=Nt("DOUBLE",!0),x0=Nt("BIGSERIAL",!0),Zn=Nt("REAL",!0),kb=Nt("DATETIME",!0),U0=Nt("ROWS",!0),C=Nt("TIME",!0),Kn=Nt("TIMESTAMP",!0),zi=Nt("TRUNCATE",!0),Kl=Nt("USER",!0),zl=Nt("UUID",!0),Ot=Nt("OID",!0),hs=Nt("REGCLASS",!0),Yi=Nt("REGCOLLATION",!0),hl=Nt("REGCONFIG",!0),L0=Nt("REGDICTIONARY",!0),Bn=Nt("REGNAMESPACE",!0),Qb=Nt("REGOPER",!0),C0=Nt("REGOPERATOR",!0),Hf=Nt("REGPROC",!0),k0=Nt("REGPROCEDURE",!0),M0=Nt("REGROLE",!0),Wi=Nt("REGTYPE",!0),wa=Nt("CURRENT_DATE",!0),Oa=Nt("INTERVAL",!0),ti=Nt("CURRENT_TIME",!0),We=Nt("CURRENT_TIMESTAMP",!0),ob=Nt("SYSTEM_USER",!0),V0=Nt("GLOBAL",!0),hf=Nt("SESSION",!0),Ef=Nt("PERSIST",!0),K0=Nt("PERSIST_ONLY",!0),Af=Nt("VIEW",!0),El=Nt("@",!1),w0=Nt("@@",!1),ul=Nt("$$",!1),Ye=Nt("return",!0),mf=Nt(":=",!1),z0=Nt("::",!1),ub=Nt("DUAL",!0),Su=Nt("ADD",!0),Al=Nt("COLUMN",!0),D0=Nt("INDEX",!0),Ac=Nt("FULLTEXT",!0),mc=Nt("SPATIAL",!0),Tc=Nt("COMMENT",!0),y0=Nt("CONSTRAINT",!0),bi=Nt("CONCURRENTLY",!0),Yc=Nt("REFERENCES",!0),Z0=Nt("SQL_CALC_FOUND_ROWS",!0),lc=Nt("SQL_CACHE",!0),Ic=Nt("SQL_NO_CACHE",!0),ab=Nt("SQL_SMALL_RESULT",!0),J0=Nt("SQL_BIG_RESULT",!0),ml=Nt("SQL_BUFFER_RESULT",!0),Ul=Nt(",",!1),aa=Nt("[",!1),Tf=Nt("]",!1),If=Nt("->>",!1),Tl=Nt("&&",!1),Ci=Nt("/*",!1),Q0=Nt("*/",!1),ib=Nt("--",!1),fa=Nt("//",!1),Zi={type:"any"},rf=/^[ \t\n\r]/,Ii=ju([" "," ",` +`,"\r"],!1,!1),Ge=/^[^$]/,$0=ju(["$"],!0,!1),gf=function(w){return{dataType:w}},Zl=Nt("bytea",!0),Xa=function(w){return{dataType:w}},cc=Nt("WITHOUT",!0),h0=Nt("ZONE",!0),n=0,st=0,gi=[{line:1,column:1}],xa=0,Ra=[],or=0;if("startRule"in Ce){if(!(Ce.startRule in po))throw Error(`Can't start parsing from rule "`+Ce.startRule+'".');ge=po[Ce.startRule]}function Nt(w,G){return{type:"literal",text:w,ignoreCase:G}}function ju(w,G,z){return{type:"class",parts:w,inverted:G,ignoreCase:z}}function Il(w){var G,z=gi[w];if(z)return z;for(G=w-1;!gi[G];)G--;for(z={line:(z=gi[G]).line,column:z.column};G<w;)t.charCodeAt(G)===10?(z.line++,z.column=1):z.column++,G++;return gi[w]=z,z}function Wc(w,G){var z=Il(w),g=Il(G);return{start:{offset:w,line:z.line,column:z.column},end:{offset:G,line:g.line,column:g.column}}}function Kr(w){n<xa||(n>xa&&(xa=n,Ra=[]),Ra.push(w))}function Mb(w,G,z){return new go(go.buildMessage(w,G),w,G,z)}function fc(){var w,G;return w=n,ot()!==r&&(G=(function(){var z,g,Gr,Vr,Qr,Pt,wn,Rn;if(z=n,(g=Ji())!==r){for(Gr=[],Vr=n,(Qr=ot())!==r&&(Pt=G0())!==r&&(wn=ot())!==r&&(Rn=Ji())!==r?Vr=Qr=[Qr,Pt,wn,Rn]:(n=Vr,Vr=r);Vr!==r;)Gr.push(Vr),Vr=n,(Qr=ot())!==r&&(Pt=G0())!==r&&(wn=ot())!==r&&(Rn=Ji())!==r?Vr=Qr=[Qr,Pt,wn,Rn]:(n=Vr,Vr=r);Gr===r?(n=z,z=r):(st=z,g=(function(An,Mn){let as=An&&An.ast||An,cs=Mn&&Mn.length&&Mn[0].length>=4?[as]:as;for(let _s=0;_s<Mn.length;_s++)Mn[_s][3]&&Mn[_s][3].length!==0&&cs.push(Mn[_s][3]&&Mn[_s][3].ast||Mn[_s][3]);return{tableList:Array.from(Vu),columnList:Wo(ra),ast:cs}})(g,Gr),z=g)}else n=z,z=r;return z})())!==r?(st=w,w=G):(n=w,w=r),w}function qi(){var w;return(w=(function(){var G=n,z,g,Gr,Vr,Qr,Pt,wn,Rn;(z=ar())!==r&&ot()!==r&&(g=pt())!==r&&ot()!==r&&(Gr=Da())!==r?(st=G,An=z,Mn=g,(as=Gr)&&as.forEach(cs=>Vu.add(`${An}::${[cs.db,cs.schema].filter(Boolean).join(".")||null}::${cs.table}`)),z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:An.toLowerCase(),keyword:Mn.toLowerCase(),name:as}},G=z):(n=G,G=r);var An,Mn,as;return G===r&&(G=n,(z=ar())!==r&&ot()!==r&&(g=ef())!==r&&ot()!==r?((Gr=Xc())===r&&(Gr=null),Gr!==r&&ot()!==r?(Vr=n,t.substr(n,2).toLowerCase()==="if"?(Qr=t.substr(n,2),n+=2):(Qr=r,or===0&&Kr(Dn)),Qr!==r&&(Pt=ot())!==r&&(wn=fo())!==r?Vr=Qr=[Qr,Pt,wn]:(n=Vr,Vr=r),Vr===r&&(Vr=null),Vr!==r&&(Qr=ot())!==r&&(Pt=Le())!==r&&(wn=ot())!==r?(t.substr(n,7).toLowerCase()==="cascade"?(Rn=t.substr(n,7),n+=7):(Rn=r,or===0&&Kr(Jc)),Rn===r&&(t.substr(n,8).toLowerCase()==="restrict"?(Rn=t.substr(n,8),n+=8):(Rn=r,or===0&&Kr(Qc))),Rn===r&&(Rn=null),Rn===r?(n=G,G=r):(st=G,z=(function(cs,_s,we,Pe,jr,oo){return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:cs.toLowerCase(),keyword:_s.toLowerCase(),prefix:we,name:jr,options:oo&&[{type:"origin",value:oo}]}}})(z,g,Gr,0,Pt,Rn),G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r)),G})())===r&&(w=(function(){var G;return(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn;(g=dt())!==r&&ot()!==r?((Gr=Yt())===r&&(Gr=null),Gr!==r&&ot()!==r&&pt()!==r&&ot()!==r?((Vr=Se())===r&&(Vr=null),Vr!==r&&ot()!==r&&(Qr=Da())!==r&&ot()!==r&&(Pt=(function(){var jr,oo,Bo,No,lu,ru,Me,_u,mo;if(jr=n,(oo=Yo())!==r)if(ot()!==r)if((Bo=gc())!==r){for(No=[],lu=n,(ru=ot())!==r&&(Me=qo())!==r&&(_u=ot())!==r&&(mo=gc())!==r?lu=ru=[ru,Me,_u,mo]:(n=lu,lu=r);lu!==r;)No.push(lu),lu=n,(ru=ot())!==r&&(Me=qo())!==r&&(_u=ot())!==r&&(mo=gc())!==r?lu=ru=[ru,Me,_u,mo]:(n=lu,lu=r);No!==r&&(lu=ot())!==r&&(ru=Xo())!==r?(st=jr,oo=La(Bo,No),jr=oo):(n=jr,jr=r)}else n=jr,jr=r;else n=jr,jr=r;else n=jr,jr=r;return jr})())!==r&&ot()!==r?((wn=(function(){var jr,oo,Bo,No,lu,ru,Me,_u;if(jr=n,(oo=Ua())!==r){for(Bo=[],No=n,(lu=ot())===r?(n=No,No=r):((ru=qo())===r&&(ru=null),ru!==r&&(Me=ot())!==r&&(_u=Ua())!==r?No=lu=[lu,ru,Me,_u]:(n=No,No=r));No!==r;)Bo.push(No),No=n,(lu=ot())===r?(n=No,No=r):((ru=qo())===r&&(ru=null),ru!==r&&(Me=ot())!==r&&(_u=Ua())!==r?No=lu=[lu,ru,Me,_u]:(n=No,No=r));Bo===r?(n=jr,jr=r):(st=jr,oo=La(oo,Bo),jr=oo)}else n=jr,jr=r;return jr})())===r&&(wn=null),wn!==r&&ot()!==r?((Rn=Qs())===r&&(Rn=Jn()),Rn===r&&(Rn=null),Rn!==r&&ot()!==r?((An=et())===r&&(An=null),An!==r&&ot()!==r?((Mn=qu())===r&&(Mn=null),Mn===r?(n=z,z=r):(st=z,g=(function(jr,oo,Bo,No,lu,ru,Me,_u,mo){return No&&No.forEach(ho=>Vu.add(`create::${[ho.db,ho.schema].filter(Boolean).join(".")||null}::${ho.table}`)),{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:jr[0].toLowerCase(),keyword:"table",temporary:oo&&oo[0].toLowerCase(),if_not_exists:Bo,table:No,ignore_replace:Me&&Me[0].toLowerCase(),as:_u&&_u[0].toLowerCase(),query_expr:mo&&mo.ast,create_definitions:lu,table_options:ru},...Do()}})(g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn),z=g)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r),z===r&&(z=n,(g=dt())!==r&&ot()!==r?((Gr=Yt())===r&&(Gr=null),Gr!==r&&ot()!==r&&pt()!==r&&ot()!==r?((Vr=Se())===r&&(Vr=null),Vr!==r&&ot()!==r&&(Qr=Da())!==r&&ot()!==r&&(Pt=(function jr(){var oo,Bo;(oo=(function(){var lu=n,ru;return xe()!==r&&ot()!==r&&(ru=Da())!==r?(st=lu,lu={type:"like",table:ru}):(n=lu,lu=r),lu})())===r&&(oo=n,Yo()!==r&&ot()!==r&&(Bo=jr())!==r&&ot()!==r&&Xo()!==r?(st=oo,(No=Bo).parentheses=!0,oo=No):(n=oo,oo=r));var No;return oo})())!==r?(st=z,as=g,cs=Gr,_s=Vr,Pe=Pt,(we=Qr)&&we.forEach(jr=>Vu.add(`create::${[jr.db,jr.schema].filter(Boolean).join(".")||null}::${jr.table}`)),g={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:as[0].toLowerCase(),keyword:"table",temporary:cs&&cs[0].toLowerCase(),if_not_exists:_s,table:we,like:Pe}},z=g):(n=z,z=r)):(n=z,z=r)):(n=z,z=r));var as,cs,_s,we,Pe;return z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs,_s,we,Pe,jr,oo,Bo,No,lu,ru;return(g=dt())!==r&&ot()!==r?(Gr=n,(Vr=eu())!==r&&(Qr=ot())!==r&&(Pt=Jn())!==r?Gr=Vr=[Vr,Qr,Pt]:(n=Gr,Gr=r),Gr===r&&(Gr=null),Gr!==r&&(Vr=ot())!==r?((Qr=of())===r&&(Qr=null),Qr!==r&&(Pt=ot())!==r?(t.substr(n,7).toLowerCase()==="trigger"?(wn=t.substr(n,7),n+=7):(wn=r,or===0&&Kr(ca)),wn!==r&&ot()!==r&&(Rn=s())!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="before"?(An=t.substr(n,6),n+=6):(An=r,or===0&&Kr(na)),An===r&&(t.substr(n,5).toLowerCase()==="after"?(An=t.substr(n,5),n+=5):(An=r,or===0&&Kr(Qa)),An===r&&(t.substr(n,10).toLowerCase()==="instead of"?(An=t.substr(n,10),n+=10):(An=r,or===0&&Kr(cf)))),An!==r&&ot()!==r&&(Mn=(function(){var Me,_u,mo,ho,Mo,Fo,Gu,Ko;if(Me=n,(_u=oi())!==r){for(mo=[],ho=n,(Mo=ot())!==r&&(Fo=eu())!==r&&(Gu=ot())!==r&&(Ko=oi())!==r?ho=Mo=[Mo,Fo,Gu,Ko]:(n=ho,ho=r);ho!==r;)mo.push(ho),ho=n,(Mo=ot())!==r&&(Fo=eu())!==r&&(Gu=ot())!==r&&(Ko=oi())!==r?ho=Mo=[Mo,Fo,Gu,Ko]:(n=ho,ho=r);mo===r?(n=Me,Me=r):(st=Me,_u=La(_u,mo),Me=_u)}else n=Me,Me=r;return Me})())!==r&&ot()!==r?(t.substr(n,2).toLowerCase()==="on"?(as=t.substr(n,2),n+=2):(as=r,or===0&&Kr(ri)),as!==r&&ot()!==r&&(cs=Zt())!==r&&ot()!==r?(_s=n,(we=br())!==r&&(Pe=ot())!==r&&(jr=Zt())!==r?_s=we=[we,Pe,jr]:(n=_s,_s=r),_s===r&&(_s=null),_s!==r&&(we=ot())!==r?((Pe=(function(){var Me=n,_u=n,mo,ho,Mo;t.substr(n,3).toLowerCase()==="not"?(mo=t.substr(n,3),n+=3):(mo=r,or===0&&Kr(s0)),mo===r&&(mo=null),mo!==r&&(ho=ot())!==r?(t.substr(n,10).toLowerCase()==="deferrable"?(Mo=t.substr(n,10),n+=10):(Mo=r,or===0&&Kr(Rv)),Mo===r?(n=_u,_u=r):_u=mo=[mo,ho,Mo]):(n=_u,_u=r),_u!==r&&(mo=ot())!==r?(t.substr(n,19).toLowerCase()==="initially immediate"?(ho=t.substr(n,19),n+=19):(ho=r,or===0&&Kr(nv)),ho===r&&(t.substr(n,18).toLowerCase()==="initially deferred"?(ho=t.substr(n,18),n+=18):(ho=r,or===0&&Kr(sv))),ho===r?(n=Me,Me=r):(st=Me,Gu=ho,_u={keyword:(Fo=_u)&&Fo[0]?Fo[0].toLowerCase()+" deferrable":"deferrable",args:Gu&&Gu.toLowerCase()},Me=_u)):(n=Me,Me=r);var Fo,Gu;return Me})())===r&&(Pe=null),Pe!==r&&(jr=ot())!==r?((oo=(function(){var Me=n,_u,mo,ho;t.substr(n,3).toLowerCase()==="for"?(_u=t.substr(n,3),n+=3):(_u=r,or===0&&Kr(ev)),_u!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="each"?(mo=t.substr(n,4),n+=4):(mo=r,or===0&&Kr(yc)),mo===r&&(mo=null),mo!==r&&ot()!==r?(t.substr(n,3).toLowerCase()==="row"?(ho=t.substr(n,3),n+=3):(ho=r,or===0&&Kr($c)),ho===r&&(t.substr(n,9).toLowerCase()==="statement"?(ho=t.substr(n,9),n+=9):(ho=r,or===0&&Kr(Sf))),ho===r?(n=Me,Me=r):(st=Me,Mo=_u,Gu=ho,_u={keyword:(Fo=mo)?`${Mo.toLowerCase()} ${Fo.toLowerCase()}`:Mo.toLowerCase(),args:Gu.toLowerCase()},Me=_u)):(n=Me,Me=r)):(n=Me,Me=r);var Mo,Fo,Gu;return Me})())===r&&(oo=null),oo!==r&&ot()!==r?((Bo=(function(){var Me=n,_u;return cu()!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(_u=ao())!==r&&ot()!==r&&Xo()!==r?(st=Me,Me={type:"when",cond:_u,parentheses:!0}):(n=Me,Me=r),Me})())===r&&(Bo=null),Bo!==r&&ot()!==r?(t.substr(n,7).toLowerCase()==="execute"?(No=t.substr(n,7),n+=7):(No=r,or===0&&Kr(t0)),No!==r&&ot()!==r?(t.substr(n,9).toLowerCase()==="procedure"?(lu=t.substr(n,9),n+=9):(lu=r,or===0&&Kr(n0)),lu===r&&(t.substr(n,8).toLowerCase()==="function"?(lu=t.substr(n,8),n+=8):(lu=r,or===0&&Kr(ei))),lu!==r&&ot()!==r&&(ru=Fs())!==r?(st=z,g=(function(Me,_u,mo,ho,Mo,Fo,Gu,Ko,Wr,Aa,Lc,Fu,Pi,F0,Zu,Hr){return{type:"create",replace:_u&&"or replace",constraint:Mo,location:Fo&&Fo.toLowerCase(),events:Gu,table:Wr,from:Aa&&Aa[2],deferrable:Lc,for_each:Fu,when:Pi,execute:{keyword:"execute "+Zu.toLowerCase(),expr:Hr},constraint_type:ho&&ho.toLowerCase(),keyword:ho&&ho.toLowerCase(),constraint_kw:mo&&mo.toLowerCase(),resource:"constraint"}})(0,Gr,Qr,wn,Rn,An,Mn,0,cs,_s,Pe,oo,Bo,0,lu,ru),z=g):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs,_s,we;(g=dt())!==r&&ot()!==r?(t.substr(n,9).toLowerCase()==="extension"?(Gr=t.substr(n,9),n+=9):(Gr=r,or===0&&Kr(Pn)),Gr!==r&&ot()!==r?((Vr=Se())===r&&(Vr=null),Vr!==r&&ot()!==r?((Qr=s())===r&&(Qr=Ws()),Qr!==r&&ot()!==r?((Pt=qn())===r&&(Pt=null),Pt!==r&&ot()!==r?(wn=n,t.substr(n,6).toLowerCase()==="schema"?(Rn=t.substr(n,6),n+=6):(Rn=r,or===0&&Kr(Ae)),Rn!==r&&(An=ot())!==r&&(Mn=s())!==r?wn=Rn=[Rn,An,Mn]:(n=wn,wn=r),wn===r&&(wn=Ws()),wn===r&&(wn=null),wn!==r&&(Rn=ot())!==r?(An=n,t.substr(n,7).toLowerCase()==="version"?(Mn=t.substr(n,7),n+=7):(Mn=r,or===0&&Kr(ou)),Mn!==r&&(as=ot())!==r?((cs=s())===r&&(cs=Ws()),cs===r?(n=An,An=r):An=Mn=[Mn,as,cs]):(n=An,An=r),An===r&&(An=null),An!==r&&(Mn=ot())!==r?(as=n,(cs=br())!==r&&(_s=ot())!==r?((we=s())===r&&(we=Ws()),we===r?(n=as,as=r):as=cs=[cs,_s,we]):(n=as,as=r),as===r&&(as=null),as===r?(n=z,z=r):(st=z,Pe=Vr,jr=Qr,oo=Pt,Bo=wn,No=An,lu=as,g={type:"create",keyword:Gr.toLowerCase(),if_not_exists:Pe,extension:$b(jr),with:oo&&oo[0].toLowerCase(),schema:$b(Bo&&Bo[2].toLowerCase()),version:$b(No&&No[2]),from:$b(lu&&lu[2])},z=g)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r);var Pe,jr,oo,Bo,No,lu;return z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs,_s,we,Pe,jr,oo,Bo;(g=dt())!==r&&ot()!==r?((Gr=Uu())===r&&(Gr=null),Gr!==r&&ot()!==r&&(Vr=ef())!==r&&ot()!==r?((Qr=Xc())===r&&(Qr=null),Qr!==r&&ot()!==r?((Pt=xu())===r&&(Pt=null),Pt!==r&&ot()!==r&&(wn=Bt())!==r&&ot()!==r&&(Rn=Zt())!==r&&ot()!==r?((An=a())===r&&(An=null),An!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Mn=(function(){var Aa,Lc,Fu,Pi,F0,Zu,Hr,pi;if(Aa=n,(Lc=P0())!==r){for(Fu=[],Pi=n,(F0=ot())!==r&&(Zu=qo())!==r&&(Hr=ot())!==r&&(pi=P0())!==r?Pi=F0=[F0,Zu,Hr,pi]:(n=Pi,Pi=r);Pi!==r;)Fu.push(Pi),Pi=n,(F0=ot())!==r&&(Zu=qo())!==r&&(Hr=ot())!==r&&(pi=P0())!==r?Pi=F0=[F0,Zu,Hr,pi]:(n=Pi,Pi=r);Fu===r?(n=Aa,Aa=r):(st=Aa,Lc=La(Lc,Fu),Aa=Lc)}else n=Aa,Aa=r;return Aa})())!==r&&ot()!==r&&Xo()!==r&&ot()!==r?(as=n,(cs=qn())!==r&&(_s=ot())!==r&&(we=Yo())!==r&&(Pe=ot())!==r&&(jr=(function(){var Aa,Lc,Fu,Pi,F0,Zu,Hr,pi;if(Aa=n,(Lc=Ma())!==r){for(Fu=[],Pi=n,(F0=ot())!==r&&(Zu=qo())!==r&&(Hr=ot())!==r&&(pi=Ma())!==r?Pi=F0=[F0,Zu,Hr,pi]:(n=Pi,Pi=r);Pi!==r;)Fu.push(Pi),Pi=n,(F0=ot())!==r&&(Zu=qo())!==r&&(Hr=ot())!==r&&(pi=Ma())!==r?Pi=F0=[F0,Zu,Hr,pi]:(n=Pi,Pi=r);Fu===r?(n=Aa,Aa=r):(st=Aa,Lc=La(Lc,Fu),Aa=Lc)}else n=Aa,Aa=r;return Aa})())!==r&&(oo=ot())!==r&&(Bo=Xo())!==r?as=cs=[cs,_s,we,Pe,jr,oo,Bo]:(n=as,as=r),as===r&&(as=null),as!==r&&(cs=ot())!==r?(_s=n,(we=(function(){var Aa=n,Lc,Fu,Pi;return t.substr(n,10).toLowerCase()==="tablespace"?(Lc=t.substr(n,10),n+=10):(Lc=r,or===0&&Kr(zs)),Lc===r?(n=Aa,Aa=r):(Fu=n,or++,Pi=er(),or--,Pi===r?Fu=void 0:(n=Fu,Fu=r),Fu===r?(n=Aa,Aa=r):(st=Aa,Aa=Lc="TABLESPACE")),Aa})())!==r&&(Pe=ot())!==r&&(jr=s())!==r?_s=we=[we,Pe,jr]:(n=_s,_s=r),_s===r&&(_s=null),_s!==r&&(we=ot())!==r?((Pe=Ht())===r&&(Pe=null),Pe!==r&&(jr=ot())!==r?(st=z,No=g,lu=Gr,ru=Vr,Me=Qr,_u=Pt,mo=wn,ho=Rn,Mo=An,Fo=Mn,Gu=as,Ko=_s,Wr=Pe,g={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:No[0].toLowerCase(),index_type:lu&&lu.toLowerCase(),keyword:ru.toLowerCase(),concurrently:Me&&Me.toLowerCase(),index:_u,on_kw:mo[0].toLowerCase(),table:ho,index_using:Mo,index_columns:Fo,with:Gu&&Gu[4],with_before_where:!0,tablespace:Ko&&{type:"origin",value:Ko[2]},where:Wr}},z=g):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r);var No,lu,ru,Me,_u,mo,ho,Mo,Fo,Gu,Ko,Wr;return z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An;return(g=dt())!==r&&ot()!==r?((Gr=Yt())===r&&(Gr=vn()),Gr===r&&(Gr=null),Gr!==r&&ot()!==r&&(function(){var Mn=n,as,cs,_s;return t.substr(n,8).toLowerCase()==="sequence"?(as=t.substr(n,8),n+=8):(as=r,or===0&&Kr(on)),as===r?(n=Mn,Mn=r):(cs=n,or++,_s=er(),or--,_s===r?cs=void 0:(n=cs,cs=r),cs===r?(n=Mn,Mn=r):(st=Mn,Mn=as="SEQUENCE")),Mn})()!==r&&ot()!==r?((Vr=Se())===r&&(Vr=null),Vr!==r&&ot()!==r&&(Qr=Zt())!==r&&ot()!==r?(Pt=n,(wn=et())!==r&&(Rn=ot())!==r&&(An=si())!==r?Pt=wn=[wn,Rn,An]:(n=Pt,Pt=r),Pt===r&&(Pt=null),Pt!==r&&(wn=ot())!==r?((Rn=(function(){var Mn,as,cs,_s,we,Pe;if(Mn=n,(as=Qu())!==r){for(cs=[],_s=n,(we=ot())!==r&&(Pe=Qu())!==r?_s=we=[we,Pe]:(n=_s,_s=r);_s!==r;)cs.push(_s),_s=n,(we=ot())!==r&&(Pe=Qu())!==r?_s=we=[we,Pe]:(n=_s,_s=r);cs===r?(n=Mn,Mn=r):(st=Mn,as=La(as,cs,1),Mn=as)}else n=Mn,Mn=r;return Mn})())===r&&(Rn=null),Rn===r?(n=z,z=r):(st=z,g=(function(Mn,as,cs,_s,we,Pe){return _s.as=we&&we[2],{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:Mn[0].toLowerCase(),keyword:"sequence",temporary:as&&as[0].toLowerCase(),if_not_exists:cs,sequence:[_s],create_definitions:Pe}}})(g,Gr,Vr,Qr,Pt,Rn),z=g)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt;return(g=dt())!==r&&ot()!==r?((Gr=(function(){var wn=n,Rn,An,Mn;return t.substr(n,8).toLowerCase()==="database"?(Rn=t.substr(n,8),n+=8):(Rn=r,or===0&&Kr(Hv)),Rn===r?(n=wn,wn=r):(An=n,or++,Mn=er(),or--,Mn===r?An=void 0:(n=An,An=r),An===r?(n=wn,wn=r):(st=wn,wn=Rn="DATABASE")),wn})())===r&&(Gr=At()),Gr!==r&&ot()!==r?((Vr=Se())===r&&(Vr=null),Vr!==r&&ot()!==r&&(Qr=Ns())!==r&&ot()!==r?((Pt=(function(){var wn,Rn,An,Mn,as,cs;if(wn=n,(Rn=ka())!==r){for(An=[],Mn=n,(as=ot())!==r&&(cs=ka())!==r?Mn=as=[as,cs]:(n=Mn,Mn=r);Mn!==r;)An.push(Mn),Mn=n,(as=ot())!==r&&(cs=ka())!==r?Mn=as=[as,cs]:(n=Mn,Mn=r);An===r?(n=wn,wn=r):(st=wn,Rn=La(Rn,An,1),wn=Rn)}else n=wn,wn=r;return wn})())===r&&(Pt=null),Pt===r?(n=z,z=r):(st=z,g=(function(wn,Rn,An,Mn,as){let cs=Rn.toLowerCase();return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:wn[0].toLowerCase(),keyword:cs,if_not_exists:An,[cs]:{db:Mn.schema,schema:Mn.name},create_definitions:as}}})(g,Gr,Vr,Qr,Pt),z=g)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An;return(g=dt())!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="domain"?(Gr=t.substr(n,6),n+=6):(Gr=r,or===0&&Kr(T0)),Gr!==r&&ot()!==r&&(Vr=Zt())!==r&&ot()!==r?((Qr=et())===r&&(Qr=null),Qr!==r&&ot()!==r&&(Pt=ro())!==r&&ot()!==r?((wn=qc())===r&&(wn=null),wn!==r&&ot()!==r?((Rn=Ba())===r&&(Rn=null),Rn!==r&&ot()!==r?((An=nf())===r&&(An=null),An===r?(n=z,z=r):(st=z,g=(function(Mn,as,cs,_s,we,Pe,jr,oo){oo&&(oo.type="constraint");let Bo=[Pe,jr,oo].filter(No=>No);return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:Mn[0].toLowerCase(),keyword:as.toLowerCase(),domain:{schema:cs.db,name:cs.table},as:_s&&_s[0]&&_s[0].toLowerCase(),target:we,create_definitions:Bo},...Do()}})(g,Gr,Vr,Qr,Pt,wn,Rn,An),z=g)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn;(g=dt())!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="type"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(Fi)),Gr!==r&&ot()!==r&&(Vr=Zt())!==r&&ot()!==r&&(Qr=et())!==r&&ot()!==r&&(Pt=Du())!==r&&ot()!==r&&Yo()!==r&&ot()!==r?((wn=Mr())===r&&(wn=null),wn!==r&&ot()!==r&&Xo()!==r?(st=z,Rn=g,An=Gr,Mn=Vr,as=Qr,cs=Pt,(_s=wn).parentheses=!0,g={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:Rn[0].toLowerCase(),keyword:An.toLowerCase(),name:{schema:Mn.db,name:Mn.table},as:as&&as[0]&&as[0].toLowerCase(),resource:cs.toLowerCase(),create_definitions:_s},...Do()},z=g):(n=z,z=r)):(n=z,z=r)):(n=z,z=r);var Rn,An,Mn,as,cs,_s;return z===r&&(z=n,(g=dt())!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="type"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(Fi)),Gr!==r&&ot()!==r&&(Vr=Zt())!==r?(st=z,g=(function(we,Pe,jr){return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:we[0].toLowerCase(),keyword:Pe.toLowerCase(),name:{schema:jr.db,name:jr.table}}}})(g,Gr,Vr),z=g):(n=z,z=r)):(n=z,z=r)),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs,_s,we,Pe,jr,oo,Bo;return(g=dt())!==r&&ot()!==r?(Gr=n,(Vr=eu())!==r&&(Qr=ot())!==r&&(Pt=Jn())!==r?Gr=Vr=[Vr,Qr,Pt]:(n=Gr,Gr=r),Gr===r&&(Gr=null),Gr!==r&&(Vr=ot())!==r?((Qr=vn())===r&&(Qr=Yt()),Qr===r&&(Qr=null),Qr!==r&&(Pt=ot())!==r?((wn=Vn())===r&&(wn=null),wn!==r&&ot()!==r&&(function(){var No=n,lu,ru,Me;return t.substr(n,4).toLowerCase()==="view"?(lu=t.substr(n,4),n+=4):(lu=r,or===0&&Kr(Af)),lu===r?(n=No,No=r):(ru=n,or++,Me=er(),or--,Me===r?ru=void 0:(n=ru,ru=r),ru===r?(n=No,No=r):(st=No,No=lu="VIEW")),No})()!==r&&ot()!==r&&(Rn=Zt())!==r&&ot()!==r?(An=n,(Mn=Yo())!==r&&(as=ot())!==r&&(cs=rl())!==r&&(_s=ot())!==r&&(we=Xo())!==r?An=Mn=[Mn,as,cs,_s,we]:(n=An,An=r),An===r&&(An=null),An!==r&&(Mn=ot())!==r?(as=n,(cs=qn())!==r&&(_s=ot())!==r&&(we=Yo())!==r&&(Pe=ot())!==r&&(jr=(function(){var No,lu,ru,Me,_u,mo,ho,Mo;if(No=n,(lu=tf())!==r){for(ru=[],Me=n,(_u=ot())!==r&&(mo=qo())!==r&&(ho=ot())!==r&&(Mo=tf())!==r?Me=_u=[_u,mo,ho,Mo]:(n=Me,Me=r);Me!==r;)ru.push(Me),Me=n,(_u=ot())!==r&&(mo=qo())!==r&&(ho=ot())!==r&&(Mo=tf())!==r?Me=_u=[_u,mo,ho,Mo]:(n=Me,Me=r);ru===r?(n=No,No=r):(st=No,lu=La(lu,ru),No=lu)}else n=No,No=r;return No})())!==r&&(oo=ot())!==r&&(Bo=Xo())!==r?as=cs=[cs,_s,we,Pe,jr,oo,Bo]:(n=as,as=r),as===r&&(as=null),as!==r&&(cs=ot())!==r&&(_s=et())!==r&&(we=ot())!==r&&(Pe=ha())!==r&&(jr=ot())!==r?((oo=(function(){var No=n,lu,ru,Me,_u;return(lu=qn())!==r&&ot()!==r?(t.substr(n,8).toLowerCase()==="cascaded"?(ru=t.substr(n,8),n+=8):(ru=r,or===0&&Kr(Hs)),ru===r&&(t.substr(n,5).toLowerCase()==="local"?(ru=t.substr(n,5),n+=5):(ru=r,or===0&&Kr(Uo))),ru!==r&&ot()!==r?(t.substr(n,5).toLowerCase()==="check"?(Me=t.substr(n,5),n+=5):(Me=r,or===0&&Kr(Ps)),Me!==r&&ot()!==r?(t.substr(n,6)==="OPTION"?(_u="OPTION",n+=6):(_u=r,or===0&&Kr(pe)),_u===r?(n=No,No=r):(st=No,lu=(function(mo){return`with ${mo.toLowerCase()} check option`})(ru),No=lu)):(n=No,No=r)):(n=No,No=r)):(n=No,No=r),No===r&&(No=n,(lu=qn())!==r&&ot()!==r?(t.substr(n,5).toLowerCase()==="check"?(ru=t.substr(n,5),n+=5):(ru=r,or===0&&Kr(Ps)),ru!==r&&ot()!==r?(t.substr(n,6)==="OPTION"?(Me="OPTION",n+=6):(Me=r,or===0&&Kr(pe)),Me===r?(n=No,No=r):(st=No,No=lu="with check option")):(n=No,No=r)):(n=No,No=r)),No})())===r&&(oo=null),oo===r?(n=z,z=r):(st=z,g=(function(No,lu,ru,Me,_u,mo,ho,Mo,Fo){return _u.view=_u.table,delete _u.table,{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:No[0].toLowerCase(),keyword:"view",replace:lu&&"or replace",temporary:ru&&ru[0].toLowerCase(),recursive:Me&&Me.toLowerCase(),columns:mo&&mo[2],select:Mo,view:_u,with_options:ho&&ho[4],with:Fo}}})(g,Gr,Qr,wn,Rn,An,as,Pe,oo),z=g)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r),z})()),G})())===r&&(w=(function(){var G=n,z,g,Gr;(z=Nc())!==r&&ot()!==r?((g=pt())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Da())!==r?(st=G,Vr=z,Qr=g,(Pt=Gr)&&Pt.forEach(wn=>Vu.add(`${Vr}::${[wn.db,wn.schema].filter(Boolean).join(".")||null}::${wn.table}`)),z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:Vr.toLowerCase(),keyword:Qr&&Qr.toLowerCase()||"table",name:Pt}},G=z):(n=G,G=r)):(n=G,G=r);var Vr,Qr,Pt;return G})())===r&&(w=(function(){var G=n,z,g;(z=ms())!==r&&ot()!==r&&pt()!==r&&ot()!==r&&(g=(function(){var Vr,Qr,Pt,wn,Rn,An,Mn,as;if(Vr=n,(Qr=cl())!==r){for(Pt=[],wn=n,(Rn=ot())!==r&&(An=qo())!==r&&(Mn=ot())!==r&&(as=cl())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r);wn!==r;)Pt.push(wn),wn=n,(Rn=ot())!==r&&(An=qo())!==r&&(Mn=ot())!==r&&(as=cl())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r);Pt===r?(n=Vr,Vr=r):(st=Vr,Qr=La(Qr,Pt),Vr=Qr)}else n=Vr,Vr=r;return Vr})())!==r?(st=G,(Gr=g).forEach(Vr=>Vr.forEach(Qr=>Qr.table&&Vu.add(`rename::${[Qr.db,Qr.schema].filter(Boolean).join(".")||null}::${Qr.table}`))),z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"rename",table:Gr}},G=z):(n=G,G=r);var Gr;return G})())===r&&(w=(function(){var G=n,z,g;(z=(function(){var Vr=n,Qr,Pt,wn;return t.substr(n,4).toLowerCase()==="call"?(Qr=t.substr(n,4),n+=4):(Qr=r,or===0&&Kr(jf)),Qr===r?(n=Vr,Vr=r):(Pt=n,or++,wn=er(),or--,wn===r?Pt=void 0:(n=Pt,Pt=r),Pt===r?(n=Vr,Vr=r):(st=Vr,Vr=Qr="CALL")),Vr})())!==r&&ot()!==r&&(g=Fs())!==r?(st=G,Gr=g,z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"call",expr:Gr}},G=z):(n=G,G=r);var Gr;return G})())===r&&(w=(function(){var G=n,z,g;(z=(function(){var Vr=n,Qr,Pt,wn;return t.substr(n,3).toLowerCase()==="use"?(Qr=t.substr(n,3),n+=3):(Qr=r,or===0&&Kr(jp)),Qr===r?(n=Vr,Vr=r):(Pt=n,or++,wn=er(),or--,wn===r?Pt=void 0:(n=Pt,Pt=r),Pt===r?(n=Vr,Vr=r):Vr=Qr=[Qr,Pt]),Vr})())!==r&&ot()!==r&&(g=xu())!==r?(st=G,Gr=g,Vu.add(`use::${Gr}::null`),z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"use",db:Gr,...Do()}},G=z):(n=G,G=r);var Gr;return G})())===r&&(w=(function(){var G;return(G=(function(){var z=n,g,Gr,Vr;(g=Nr())!==r&&ot()!==r&&pt()!==r&&ot()!==r&&(Gr=Da())!==r&&ot()!==r&&(Vr=(function(){var wn,Rn,An,Mn,as,cs,_s,we;if(wn=n,(Rn=dn())!==r){for(An=[],Mn=n,(as=ot())!==r&&(cs=qo())!==r&&(_s=ot())!==r&&(we=dn())!==r?Mn=as=[as,cs,_s,we]:(n=Mn,Mn=r);Mn!==r;)An.push(Mn),Mn=n,(as=ot())!==r&&(cs=qo())!==r&&(_s=ot())!==r&&(we=dn())!==r?Mn=as=[as,cs,_s,we]:(n=Mn,Mn=r);An===r?(n=wn,wn=r):(st=wn,Rn=La(Rn,An),wn=Rn)}else n=wn,wn=r;return wn})())!==r?(st=z,Pt=Vr,(Qr=Gr)&&Qr.length>0&&Qr.forEach(wn=>Vu.add(`alter::${[wn.db,wn.schema].filter(Boolean).join(".")||null}::${wn.table}`)),g={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"alter",table:Qr,expr:Pt}},z=g):(n=z,z=r);var Qr,Pt;return z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr;return(g=Nr())!==r&&ot()!==r&&(Gr=At())!==r&&ot()!==r&&(Vr=s())!==r&&ot()!==r?((Qr=Ql())===r&&(Qr=vi())===r&&(Qr=Va()),Qr===r?(n=z,z=r):(st=z,g=(function(Pt,wn,Rn){let An=Pt.toLowerCase();return Rn.resource=An,Rn[An]=Rn.table,delete Rn.table,{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"alter",keyword:An,schema:wn,expr:Rn}}})(Gr,Vr,Qr),z=g)):(n=z,z=r),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr;return(g=Nr())!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="domain"?(Gr=t.substr(n,6),n+=6):(Gr=r,or===0&&Kr(T0)),Gr===r&&(t.substr(n,4).toLowerCase()==="type"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(Fi))),Gr!==r&&ot()!==r&&(Vr=Zt())!==r&&ot()!==r?((Qr=Ql())===r&&(Qr=vi())===r&&(Qr=Va()),Qr===r?(n=z,z=r):(st=z,g=(function(Pt,wn,Rn){let An=Pt.toLowerCase();return Rn.resource=An,Rn[An]=Rn.table,delete Rn.table,{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"alter",keyword:An,name:{schema:wn.db,name:wn.table},expr:Rn}}})(Gr,Vr,Qr),z=g)):(n=z,z=r)):(n=z,z=r),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn;return(g=Nr())!==r&&ot()!==r?(t.substr(n,8).toLowerCase()==="function"?(Gr=t.substr(n,8),n+=8):(Gr=r,or===0&&Kr(ei)),Gr!==r&&ot()!==r&&(Vr=Zt())!==r&&ot()!==r?(Qr=n,(Pt=Yo())!==r&&(wn=ot())!==r?((Rn=l())===r&&(Rn=null),Rn!==r&&(An=ot())!==r&&(Mn=Xo())!==r?Qr=Pt=[Pt,wn,Rn,An,Mn]:(n=Qr,Qr=r)):(n=Qr,Qr=r),Qr===r&&(Qr=null),Qr!==r&&(Pt=ot())!==r?((wn=Ql())===r&&(wn=vi())===r&&(wn=Va()),wn===r?(n=z,z=r):(st=z,g=(function(as,cs,_s,we){let Pe=as.toLowerCase();we.resource=Pe,we[Pe]=we.table,delete we.table;let jr={};return _s&&_s[0]&&(jr.parentheses=!0),jr.expr=_s&&_s[2],{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"alter",keyword:Pe,name:{schema:cs.db,name:cs.table},args:jr,expr:we}}})(Gr,Vr,Qr,wn),z=g)):(n=z,z=r)):(n=z,z=r)):(n=z,z=r),z})())===r&&(G=(function(){var z=n,g,Gr,Vr,Qr,Pt;return(g=Nr())!==r&&ot()!==r?(t.substr(n,9).toLowerCase()==="aggregate"?(Gr=t.substr(n,9),n+=9):(Gr=r,or===0&&Kr(Pb)),Gr!==r&&ot()!==r&&(Vr=Zt())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Qr=(function(){var wn=n,Rn,An;return(Rn=Oc())!==r&&(st=wn,Rn=[{name:"*"}]),(wn=Rn)===r&&(wn=n,(Rn=l())===r&&(Rn=null),Rn!==r&&ot()!==r&&qe()!==r&&ot()!==r&&js()!==r&&ot()!==r&&(An=l())!==r?(st=wn,Rn=(function(Mn,as){let cs=Mn||[];return cs.orderby=as,cs})(Rn,An),wn=Rn):(n=wn,wn=r),wn===r&&(wn=l())),wn})())!==r&&ot()!==r&&Xo()!==r&&ot()!==r?((Pt=Ql())===r&&(Pt=vi())===r&&(Pt=Va()),Pt===r?(n=z,z=r):(st=z,g=(function(wn,Rn,An,Mn){let as=wn.toLowerCase();return Mn.resource=as,Mn[as]=Mn.table,delete Mn.table,{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"alter",keyword:as,name:{schema:Rn.db,name:Rn.table},args:{parentheses:!0,expr:An,orderby:An.orderby},expr:Mn},...Do()}})(Gr,Vr,Qr,Pt),z=g)):(n=z,z=r)):(n=z,z=r),z})()),G})())===r&&(w=(function(){var G=n,z,g,Gr;(z=mr())!==r&&ot()!==r?((g=(function(){var Pt=n,wn,Rn,An;return t.substr(n,6).toLowerCase()==="global"?(wn=t.substr(n,6),n+=6):(wn=r,or===0&&Kr(V0)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):(st=Pt,Pt=wn="GLOBAL")),Pt})())===r&&(g=(function(){var Pt=n,wn,Rn,An;return t.substr(n,7).toLowerCase()==="session"?(wn=t.substr(n,7),n+=7):(wn=r,or===0&&Kr(hf)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):(st=Pt,Pt=wn="SESSION")),Pt})())===r&&(g=(function(){var Pt=n,wn,Rn,An;return t.substr(n,5).toLowerCase()==="local"?(wn=t.substr(n,5),n+=5):(wn=r,or===0&&Kr(Uo)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):(st=Pt,Pt=wn="LOCAL")),Pt})())===r&&(g=(function(){var Pt=n,wn,Rn,An;return t.substr(n,7).toLowerCase()==="persist"?(wn=t.substr(n,7),n+=7):(wn=r,or===0&&Kr(Ef)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):(st=Pt,Pt=wn="PERSIST")),Pt})())===r&&(g=(function(){var Pt=n,wn,Rn,An;return t.substr(n,12).toLowerCase()==="persist_only"?(wn=t.substr(n,12),n+=12):(wn=r,or===0&&Kr(K0)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):(st=Pt,Pt=wn="PERSIST_ONLY")),Pt})()),g===r&&(g=null),g!==r&&ot()!==r&&(Gr=(function(){var Pt,wn,Rn,An,Mn,as,cs,_s;if(Pt=n,(wn=Et())!==r){for(Rn=[],An=n,(Mn=ot())!==r&&(as=qo())!==r&&(cs=ot())!==r&&(_s=Et())!==r?An=Mn=[Mn,as,cs,_s]:(n=An,An=r);An!==r;)Rn.push(An),An=n,(Mn=ot())!==r&&(as=qo())!==r&&(cs=ot())!==r&&(_s=Et())!==r?An=Mn=[Mn,as,cs,_s]:(n=An,An=r);Rn===r?(n=Pt,Pt=r):(st=Pt,wn=La(wn,Rn),Pt=wn)}else n=Pt,Pt=r;return Pt})())!==r?(st=G,Vr=g,(Qr=Gr).keyword=Vr,z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"set",keyword:Vr,expr:Qr}},G=z):(n=G,G=r)):(n=G,G=r);var Vr,Qr;return G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr;(z=(function(){var Mn=n,as,cs,_s;return t.substr(n,4).toLowerCase()==="lock"?(as=t.substr(n,4),n+=4):(as=r,or===0&&Kr(Ss)),as===r?(n=Mn,Mn=r):(cs=n,or++,_s=er(),or--,_s===r?cs=void 0:(n=cs,cs=r),cs===r?(n=Mn,Mn=r):Mn=as=[as,cs]),Mn})())!==r&&ot()!==r?((g=pt())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Da())!==r&&ot()!==r?((Vr=(function(){var Mn=n,as,cs,_s;return t.substr(n,2).toLowerCase()==="in"?(as=t.substr(n,2),n+=2):(as=r,or===0&&Kr(hc)),as!==r&&ot()!==r?(t.substr(n,12).toLowerCase()==="access share"?(cs=t.substr(n,12),n+=12):(cs=r,or===0&&Kr(Bl)),cs===r&&(t.substr(n,9).toLowerCase()==="row share"?(cs=t.substr(n,9),n+=9):(cs=r,or===0&&Kr(sl)),cs===r&&(t.substr(n,13).toLowerCase()==="row exclusive"?(cs=t.substr(n,13),n+=13):(cs=r,or===0&&Kr(sc)),cs===r&&(t.substr(n,22).toLowerCase()==="share update exclusive"?(cs=t.substr(n,22),n+=22):(cs=r,or===0&&Kr(Y0)),cs===r&&(t.substr(n,19).toLowerCase()==="share row exclusive"?(cs=t.substr(n,19),n+=19):(cs=r,or===0&&Kr(N0)),cs===r&&(t.substr(n,9).toLowerCase()==="exclusive"?(cs=t.substr(n,9),n+=9):(cs=r,or===0&&Kr(ce)),cs===r&&(t.substr(n,16).toLowerCase()==="access exclusive"?(cs=t.substr(n,16),n+=16):(cs=r,or===0&&Kr(ov)),cs===r&&(t.substr(n,5).toLowerCase()==="share"?(cs=t.substr(n,5),n+=5):(cs=r,or===0&&Kr(Fb))))))))),cs!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="mode"?(_s=t.substr(n,4),n+=4):(_s=r,or===0&&Kr(e0)),_s===r?(n=Mn,Mn=r):(st=Mn,as={mode:`in ${cs.toLowerCase()} mode`},Mn=as)):(n=Mn,Mn=r)):(n=Mn,Mn=r),Mn})())===r&&(Vr=null),Vr!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="nowait"?(Qr=t.substr(n,6),n+=6):(Qr=r,or===0&&Kr(Cb)),Qr===r&&(Qr=null),Qr===r?(n=G,G=r):(st=G,Pt=g,Rn=Vr,An=Qr,(wn=Gr)&&wn.forEach(Mn=>Vu.add(`lock::${[Mn.db,Mn.schema].filter(Boolean).join(".")||null}::${Mn.table}`)),z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"lock",keyword:Pt&&Pt.toLowerCase(),tables:wn.map(Mn=>({table:Mn})),lock_mode:Rn,nowait:An}},G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r);var Pt,wn,Rn,An;return G})())===r&&(w=(function(){var G=n,z,g;return(z=F())!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="tables"?(g=t.substr(n,6),n+=6):(g=r,or===0&&Kr(_0)),g===r?(n=G,G=r):(st=G,z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"show",keyword:"tables"}},G=z)):(n=G,G=r),G===r&&(G=n,(z=F())!==r&&ot()!==r&&(g=ie())!==r?(st=G,z=(function(Gr){return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"show",keyword:"var",var:Gr}}})(g),G=z):(n=G,G=r)),G})())===r&&(w=(function(){var G=n,z,g,Gr;(z=(function(){var Pt=n,wn,Rn,An;return t.substr(n,10).toLowerCase()==="deallocate"?(wn=t.substr(n,10),n+=10):(wn=r,or===0&&Kr(Bc)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):(st=Pt,Pt=wn="DEALLOCATE")),Pt})())!==r&&ot()!==r?(t.substr(n,7).toLowerCase()==="prepare"?(g=t.substr(n,7),n+=7):(g=r,or===0&&Kr(zf)),g===r&&(g=null),g!==r&&ot()!==r?((Gr=s())===r&&(Gr=Ru()),Gr===r?(n=G,G=r):(st=G,Vr=g,Qr=Gr,z={tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"deallocate",keyword:Vr,expr:{type:"default",value:Qr}}},G=z)):(n=G,G=r)):(n=G,G=r);var Vr,Qr;return G})()),w}function Ji(){var w;return(w=qu())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr,Pt,wn;return(z=ot())===r?(n=G,G=r):((g=il())===r&&(g=null),g!==r&&ot()!==r&&ct()!==r&&ot()!==r&&(Gr=Da())!==r&&ot()!==r&&mr()!==r&&ot()!==r&&(Vr=Y())!==r&&ot()!==r?((Qr=ll())===r&&(Qr=null),Qr!==r&&ot()!==r?((Pt=Ht())===r&&(Pt=null),Pt!==r&&ot()!==r?((wn=Tr())===r&&(wn=null),wn===r?(n=G,G=r):(st=G,z=(function(Rn,An,Mn,as,cs,_s){let we={},Pe=jr=>{let{server:oo,db:Bo,schema:No,as:lu,table:ru,join:Me}=jr,_u=Me?"select":"update",mo=[oo,Bo,No].filter(Boolean).join(".")||null;Bo&&(we[ru]=mo),ru&&Vu.add(`${_u}::${mo}::${ru}`)};return An&&An.forEach(Pe),as&&as.forEach(Pe),Mn&&Mn.forEach(jr=>{if(jr.table){let oo=Wf(jr.table);Vu.add(`update::${we[oo]||null}::${oo}`)}ra.add(`update::${jr.table}::${jr.column}`)}),{tableList:Array.from(Vu),columnList:Wo(ra),ast:{with:Rn,type:"update",table:An,set:Mn,from:as,where:cs,returning:_s}}})(g,Gr,Vr,Qr,Pt,wn),G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r)),G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr,Pt,wn,Rn;return(z=ht())!==r&&ot()!==r?((g=J())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Zt())!==r&&ot()!==r?((Vr=hr())===r&&(Vr=null),Vr!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Qr=rl())!==r&&ot()!==r&&Xo()!==r&&ot()!==r&&(Pt=P())!==r&&ot()!==r?((wn=(function(){var An=n,Mn,as,cs;return Bt()!==r&&ot()!==r?(t.substr(n,8).toLowerCase()==="conflict"?(Mn=t.substr(n,8),n+=8):(Mn=r,or===0&&Kr(Sv)),Mn!==r&&ot()!==r?((as=(function(){var _s=n,we,Pe;return(we=Yo())!==r&&ot()!==r&&(Pe=rt())!==r&&ot()!==r&&Xo()!==r?(st=_s,we=(function(jr){return{type:"column",expr:jr,parentheses:!0}})(Pe),_s=we):(n=_s,_s=r),_s})())===r&&(as=null),as!==r&&ot()!==r&&(cs=(function(){var _s=n,we,Pe,jr,oo;return t.substr(n,2).toLowerCase()==="do"?(we=t.substr(n,2),n+=2):(we=r,or===0&&Kr(wl)),we!==r&&ot()!==r?(t.substr(n,7).toLowerCase()==="nothing"?(Pe=t.substr(n,7),n+=7):(Pe=r,or===0&&Kr(Nl)),Pe===r?(n=_s,_s=r):(st=_s,_s=we={keyword:"do",expr:{type:"origin",value:"nothing"}})):(n=_s,_s=r),_s===r&&(_s=n,t.substr(n,2).toLowerCase()==="do"?(we=t.substr(n,2),n+=2):(we=r,or===0&&Kr(wl)),we!==r&&ot()!==r&&(Pe=ct())!==r&&ot()!==r&&mr()!==r&&ot()!==r&&(jr=Y())!==r&&ot()!==r?((oo=Ht())===r&&(oo=null),oo===r?(n=_s,_s=r):(st=_s,_s=we={keyword:"do",expr:{type:"update",set:jr,where:oo}})):(n=_s,_s=r)),_s})())!==r?(st=An,An={type:"conflict",keyword:"on",target:as,action:cs}):(n=An,An=r)):(n=An,An=r)):(n=An,An=r),An})())===r&&(wn=null),wn!==r&&ot()!==r?((Rn=Tr())===r&&(Rn=null),Rn===r?(n=G,G=r):(st=G,z=(function(An,Mn,as,cs,_s,we,Pe){if(Mn&&(Vu.add(`insert::${[Mn.db,Mn.schema].filter(Boolean).join(".")||null}::${Mn.table}`),Mn.as=null),cs){let jr=Mn&&Mn.table||null;Array.isArray(_s.values)&&_s.values.forEach((oo,Bo)=>{if(oo.value.length!=cs.length)throw Error("Error: column count doesn't match value count at row "+(Bo+1))}),cs.forEach(oo=>ra.add(`insert::${jr}::${oo}`))}return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:An,table:[Mn],columns:cs,values:_s,partition:as,conflict:we,returning:Pe}}})(z,Gr,Vr,Qr,Pt,wn,Rn),G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r),G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr,Pt,wn;return(z=ht())!==r&&ot()!==r?((g=Qs())===r&&(g=null),g!==r&&ot()!==r?((Gr=J())===r&&(Gr=null),Gr!==r&&ot()!==r&&(Vr=Zt())!==r&&ot()!==r?((Qr=hr())===r&&(Qr=null),Qr!==r&&ot()!==r&&(Pt=P())!==r&&ot()!==r?((wn=Tr())===r&&(wn=null),wn===r?(n=G,G=r):(st=G,z=(function(Rn,An,Mn,as,cs,_s,we){as&&(Vu.add(`insert::${[as.db,as.schema].filter(Boolean).join(".")||null}::${as.table}`),ra.add(`insert::${as.table}::(.*)`),as.as=null);let Pe=[An,Mn].filter(jr=>jr).map(jr=>jr[0]&&jr[0].toLowerCase()).join(" ");return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:Rn,table:[as],columns:null,values:_s,partition:cs,prefix:Pe,returning:we}}})(z,g,Gr,Vr,Qr,Pt,wn),G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r),G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr;return(z=fn())!==r&&ot()!==r?((g=Da())===r&&(g=null),g!==r&&ot()!==r&&(Gr=ll())!==r&&ot()!==r?((Vr=Ht())===r&&(Vr=null),Vr===r?(n=G,G=r):(st=G,z=(function(Qr,Pt,wn){if(Pt&&Pt.forEach(Rn=>{let{db:An,schema:Mn,as,table:cs,join:_s}=Rn,we=_s?"select":"delete",Pe=[An,Mn].filter(Boolean).join(".")||null;cs&&Vu.add(`${we}::${Pe}::${cs}`),_s||ra.add(`delete::${cs}::(.*)`)}),Qr===null&&Pt.length===1){let Rn=Pt[0];Qr=[{db:Rn.db,schema:Rn.schema,table:Rn.table,as:Rn.as,addition:!0,...Do()}]}return{tableList:Array.from(Vu),columnList:Wo(ra),ast:{type:"delete",table:Qr,from:Pt,where:wn}}})(g,Gr,Vr),G=z)):(n=G,G=r)):(n=G,G=r),G})())===r&&(w=qi())===r&&(w=(function(){for(var G=[],z=it();z!==r;)G.push(z),z=it();return G})()),w}function Ri(){var w,G;return w=n,(function(){var z=n,g,Gr,Vr;return t.substr(n,5).toLowerCase()==="union"?(g=t.substr(n,5),n+=5):(g=r,or===0&&Kr(cd)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):z=g=[g,Gr]),z})()!==r&&ot()!==r?((G=Ru())===r&&(G=null),G===r?(n=w,w=r):(st=w,w=G?"union all":"union")):(n=w,w=r),w}function qu(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=Ou())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=Ri())!==r&&(Qr=ot())!==r&&(Pt=Ou())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=Ri())!==r&&(Qr=ot())!==r&&(Pt=Ou())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z!==r&&(g=ot())!==r?((Gr=Ln())===r&&(Gr=null),Gr!==r&&(Vr=ot())!==r?((Qr=yt())===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,w=G=(function(wn,Rn,An,Mn){let as=wn;for(let cs=0;cs<Rn.length;cs++)as._next=Rn[cs][3],as.set_op=Rn[cs][1],as=as._next;return An&&(wn._orderby=An),Mn&&Mn.value&&Mn.value.length>0&&(wn._limit=Mn),{tableList:Array.from(Vu),columnList:Wo(ra),ast:wn}})(G,z,Gr,Qr))):(n=w,w=r)):(n=w,w=r)}else n=w,w=r;return w}function Se(){var w,G;return w=n,t.substr(n,2).toLowerCase()==="if"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(Dn)),G!==r&&ot()!==r&&Ks()!==r&&ot()!==r&&fo()!==r?(st=w,w=G="IF NOT EXISTS"):(n=w,w=r),w}function tf(){var w,G,z;return w=n,t.substr(n,12).toLowerCase()==="check_option"?(G=t.substr(n,12),n+=12):(G=r,or===0&&Kr(_o)),G!==r&&ot()!==r&&Si()!==r&&ot()!==r?(t.substr(n,8).toLowerCase()==="cascaded"?(z=t.substr(n,8),n+=8):(z=r,or===0&&Kr(Hs)),z===r&&(t.substr(n,5).toLowerCase()==="local"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(Uo))),z===r?(n=w,w=r):(st=w,w=G={type:"check_option",value:z,symbol:"="})):(n=w,w=r),w===r&&(w=n,t.substr(n,16).toLowerCase()==="security_barrier"?(G=t.substr(n,16),n+=16):(G=r,or===0&&Kr(Gi)),G===r&&(t.substr(n,16).toLowerCase()==="security_invoker"?(G=t.substr(n,16),n+=16):(G=r,or===0&&Kr(mi))),G!==r&&ot()!==r&&Si()!==r&&ot()!==r&&(z=ks())!==r?(st=w,w=G=(function(g,Gr){return{type:g.toLowerCase(),value:Gr.value?"true":"false",symbol:"="}})(G,z)):(n=w,w=r)),w}function Qu(){var w;return(w=(function(){var G,z,g,Gr,Vr,Qr;return G=n,t.substr(n,9).toLowerCase()==="increment"?(z=t.substr(n,9),n+=9):(z=r,or===0&&Kr(dl)),z!==r&&ot()!==r?((g=js())===r&&(g=null),g!==r&&ot()!==r&&(Gr=me())!==r?(st=G,Vr=z,Qr=Gr,G=z={resource:"sequence",prefix:g?Vr.toLowerCase()+" by":Vr.toLowerCase(),value:Qr}):(n=G,G=r)):(n=G,G=r),G})())===r&&(w=(function(){var G,z,g;return G=n,t.substr(n,8).toLowerCase()==="minvalue"?(z=t.substr(n,8),n+=8):(z=r,or===0&&Kr(Gl)),z!==r&&ot()!==r&&(g=me())!==r?(st=G,G=z=Fl(z,g)):(n=G,G=r),G===r&&(G=n,t.substr(n,2).toLowerCase()==="no"?(z=t.substr(n,2),n+=2):(z=r,or===0&&Kr(nc)),z!==r&&ot()!==r?(t.substr(n,8).toLowerCase()==="minvalue"?(g=t.substr(n,8),n+=8):(g=r,or===0&&Kr(Gl)),g===r?(n=G,G=r):(st=G,G=z={resource:"sequence",value:{type:"origin",value:"no minvalue"}})):(n=G,G=r)),G})())===r&&(w=(function(){var G,z,g;return G=n,t.substr(n,8).toLowerCase()==="maxvalue"?(z=t.substr(n,8),n+=8):(z=r,or===0&&Kr(xc)),z!==r&&ot()!==r&&(g=me())!==r?(st=G,G=z=Fl(z,g)):(n=G,G=r),G===r&&(G=n,t.substr(n,2).toLowerCase()==="no"?(z=t.substr(n,2),n+=2):(z=r,or===0&&Kr(nc)),z!==r&&ot()!==r?(t.substr(n,8).toLowerCase()==="maxvalue"?(g=t.substr(n,8),n+=8):(g=r,or===0&&Kr(xc)),g===r?(n=G,G=r):(st=G,G=z={resource:"sequence",value:{type:"origin",value:"no maxvalue"}})):(n=G,G=r)),G})())===r&&(w=(function(){var G,z,g,Gr,Vr,Qr;return G=n,t.substr(n,5).toLowerCase()==="start"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(I0)),z!==r&&ot()!==r?((g=qn())===r&&(g=null),g!==r&&ot()!==r&&(Gr=me())!==r?(st=G,Vr=z,Qr=Gr,G=z={resource:"sequence",prefix:g?Vr.toLowerCase()+" with":Vr.toLowerCase(),value:Qr}):(n=G,G=r)):(n=G,G=r),G})())===r&&(w=(function(){var G,z,g;return G=n,t.substr(n,5).toLowerCase()==="cache"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(ji)),z!==r&&ot()!==r&&(g=me())!==r?(st=G,G=z=Fl(z,g)):(n=G,G=r),G})())===r&&(w=(function(){var G,z,g;return G=n,t.substr(n,2).toLowerCase()==="no"?(z=t.substr(n,2),n+=2):(z=r,or===0&&Kr(nc)),z===r&&(z=null),z!==r&&ot()!==r?(t.substr(n,5).toLowerCase()==="cycle"?(g=t.substr(n,5),n+=5):(g=r,or===0&&Kr(af)),g===r?(n=G,G=r):(st=G,G=z={resource:"sequence",value:{type:"origin",value:z?"no cycle":"cycle"}})):(n=G,G=r),G})())===r&&(w=(function(){var G,z,g;return G=n,t.substr(n,5).toLowerCase()==="owned"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(qf)),z!==r&&ot()!==r&&js()!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="none"?(g=t.substr(n,4),n+=4):(g=r,or===0&&Kr(Uc)),g===r?(n=G,G=r):(st=G,G=z={resource:"sequence",prefix:"owned by",value:{type:"origin",value:"none"}})):(n=G,G=r),G===r&&(G=n,t.substr(n,5).toLowerCase()==="owned"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(qf)),z!==r&&ot()!==r&&js()!==r&&ot()!==r&&(g=Le())!==r?(st=G,G=z={resource:"sequence",prefix:"owned by",value:g}):(n=G,G=r)),G})()),w}function P0(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;return w=n,(G=ao())!==r&&ot()!==r?((z=qc())===r&&(z=null),z!==r&&ot()!==r?((g=xu())===r&&(g=null),g!==r&&ot()!==r?((Gr=bo())===r&&(Gr=tu()),Gr===r&&(Gr=null),Gr!==r&&ot()!==r?(Vr=n,t.substr(n,5).toLowerCase()==="nulls"?(Qr=t.substr(n,5),n+=5):(Qr=r,or===0&&Kr(wc)),Qr!==r&&(Pt=ot())!==r?(t.substr(n,5).toLowerCase()==="first"?(wn=t.substr(n,5),n+=5):(wn=r,or===0&&Kr(Ll)),wn===r&&(t.substr(n,4).toLowerCase()==="last"?(wn=t.substr(n,4),n+=4):(wn=r,or===0&&Kr(jl))),wn===r?(n=Vr,Vr=r):Vr=Qr=[Qr,Pt,wn]):(n=Vr,Vr=r),Vr===r&&(Vr=null),Vr===r?(n=w,w=r):(st=w,w=G=(function(Rn,An,Mn,as,cs){return{...Rn,collate:An,opclass:Mn,order_by:as&&as.toLowerCase(),nulls:cs&&`${cs[0].toLowerCase()} ${cs[2].toLowerCase()}`}})(G,z,g,Gr,Vr))):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w}function gc(){var w;return(w=Jl())===r&&(w=Eu())===r&&(w=ia())===r&&(w=ve()),w}function al(){var w,G,z,g;return(w=(function(){var Gr=n,Vr,Qr;(Vr=bs())===r&&(Vr=$n()),Vr!==r&&ot()!==r?((Qr=Ba())===r&&(Qr=null),Qr===r?(n=Gr,Gr=r):(st=Gr,wn=Qr,(Pt=Vr)&&!Pt.value&&(Pt.value="null"),Gr=Vr={default_val:wn,nullable:Pt})):(n=Gr,Gr=r);var Pt,wn;return Gr===r&&(Gr=n,(Vr=Ba())!==r&&ot()!==r?((Qr=bs())===r&&(Qr=$n()),Qr===r&&(Qr=null),Qr===r?(n=Gr,Gr=r):(st=Gr,Vr=(function(Rn,An){return An&&!An.value&&(An.value="null"),{default_val:Rn,nullable:An}})(Vr,Qr),Gr=Vr)):(n=Gr,Gr=r)),Gr})())===r&&(w=n,t.substr(n,14).toLowerCase()==="auto_increment"?(G=t.substr(n,14),n+=14):(G=r,or===0&&Kr(Oi)),G!==r&&(st=w,G={auto_increment:G.toLowerCase()}),(w=G)===r&&(w=n,t.substr(n,6).toLowerCase()==="unique"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(bb)),G!==r&&ot()!==r?(t.substr(n,3).toLowerCase()==="key"?(z=t.substr(n,3),n+=3):(z=r,or===0&&Kr(Vi)),z===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(Gr){let Vr=["unique"];return Gr&&Vr.push(Gr),{unique:Vr.join(" ").toLowerCase("")}})(z))):(n=w,w=r),w===r&&(w=n,t.substr(n,7).toLowerCase()==="primary"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(zc)),G===r&&(G=null),G!==r&&ot()!==r?(t.substr(n,3).toLowerCase()==="key"?(z=t.substr(n,3),n+=3):(z=r,or===0&&Kr(Vi)),z===r?(n=w,w=r):(st=w,w=G=(function(Gr){let Vr=[];return Gr&&Vr.push("primary"),Vr.push("key"),{primary_key:Vr.join(" ").toLowerCase("")}})(G))):(n=w,w=r),w===r&&(w=n,(G=B())!==r&&(st=w,G={comment:G}),(w=G)===r&&(w=n,(G=qc())!==r&&(st=w,G={collate:G}),(w=G)===r&&(w=n,(G=(function(){var Gr=n,Vr,Qr;return t.substr(n,13).toLowerCase()==="column_format"?(Vr=t.substr(n,13),n+=13):(Vr=r,or===0&&Kr(kc)),Vr!==r&&ot()!==r?(t.substr(n,5).toLowerCase()==="fixed"?(Qr=t.substr(n,5),n+=5):(Qr=r,or===0&&Kr(vb)),Qr===r&&(t.substr(n,7).toLowerCase()==="dynamic"?(Qr=t.substr(n,7),n+=7):(Qr=r,or===0&&Kr(Zc)),Qr===r&&(t.substr(n,7).toLowerCase()==="default"?(Qr=t.substr(n,7),n+=7):(Qr=r,or===0&&Kr(nl)))),Qr===r?(n=Gr,Gr=r):(st=Gr,Vr={type:"column_format",value:Qr.toLowerCase()},Gr=Vr)):(n=Gr,Gr=r),Gr})())!==r&&(st=w,G={column_format:G}),(w=G)===r&&(w=n,(G=(function(){var Gr=n,Vr,Qr;return t.substr(n,7).toLowerCase()==="storage"?(Vr=t.substr(n,7),n+=7):(Vr=r,or===0&&Kr(Xf)),Vr!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="disk"?(Qr=t.substr(n,4),n+=4):(Qr=r,or===0&&Kr(gl)),Qr===r&&(t.substr(n,6).toLowerCase()==="memory"?(Qr=t.substr(n,6),n+=6):(Qr=r,or===0&&Kr(lf))),Qr===r?(n=Gr,Gr=r):(st=Gr,Vr={type:"storage",value:Qr.toLowerCase()},Gr=Vr)):(n=Gr,Gr=r),Gr})())!==r&&(st=w,G={storage:G}),(w=G)===r&&(w=n,(G=E0())!==r&&(st=w,G={reference_definition:G}),(w=G)===r&&(w=n,(G=yn())!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r&&(g=Wu())!==r?(st=w,w=G=(function(Gr,Vr,Qr){return{character_set:{type:Gr,value:Qr,symbol:Vr}}})(G,z,g)):(n=w,w=r)):(n=w,w=r)))))))))),w}function Jl(){var w,G,z,g;return w=n,(G=Le())!==r&&ot()!==r&&(z=ro())!==r&&ot()!==r?((g=(function(){var Gr,Vr,Qr,Pt,wn,Rn;if(Gr=n,(Vr=al())!==r)if(ot()!==r){for(Qr=[],Pt=n,(wn=ot())!==r&&(Rn=al())!==r?Pt=wn=[wn,Rn]:(n=Pt,Pt=r);Pt!==r;)Qr.push(Pt),Pt=n,(wn=ot())!==r&&(Rn=al())!==r?Pt=wn=[wn,Rn]:(n=Pt,Pt=r);Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr=(function(An,Mn){let as=An;for(let cs=0;cs<Mn.length;cs++)as={...as,...Mn[cs][1]};return as})(Vr,Qr))}else n=Gr,Gr=r;else n=Gr,Gr=r;return Gr})())===r&&(g=null),g===r?(n=w,w=r):(st=w,w=G=(function(Gr,Vr,Qr){return ra.add(`create::${Gr.table}::${Gr.column}`),{column:Gr,definition:Vr,resource:"column",...Qr||{}}})(G,z,g))):(n=w,w=r),w}function qc(){var w,G,z;return w=n,(function(){var g=n,Gr,Vr,Qr;return t.substr(n,7).toLowerCase()==="collate"?(Gr=t.substr(n,7),n+=7):(Gr=r,or===0&&Kr(Vf)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="COLLATE")),g})()!==r&&ot()!==r?((G=Si())===r&&(G=null),G!==r&&ot()!==r&&(z=xu())!==r?(st=w,w={type:"collate",keyword:"collate",collate:{name:z,symbol:G}}):(n=w,w=r)):(n=w,w=r),w}function Ba(){var w,G;return w=n,Po()!==r&&ot()!==r&&(G=ao())!==r?(st=w,w={type:"default",value:G}):(n=w,w=r),w}function Qi(){var w,G;return w=n,(G=Go())===r&&(t.substr(n,3).toLowerCase()==="out"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(gv)),G===r&&(t.substr(n,8).toLowerCase()==="variadic"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(g0)),G===r&&(t.substr(n,5).toLowerCase()==="inout"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(Ki))))),G!==r&&(st=w,G=G.toUpperCase()),w=G}function ya(){var w,G,z,g;return w=n,(G=Qi())===r&&(G=null),G!==r&&ot()!==r&&(z=ro())!==r?(st=w,w=G={mode:G,type:z}):(n=w,w=r),w===r&&(w=n,(G=Qi())===r&&(G=null),G!==r&&ot()!==r&&(z=s())!==r&&ot()!==r&&(g=ro())!==r?(st=w,w=G=(function(Gr,Vr,Qr){return{mode:Gr,name:Vr,type:Qr}})(G,z,g)):(n=w,w=r)),w}function l(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=ya())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ya())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ya())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z))}else n=w,w=r;return w}function dn(){var w;return(w=(function(){var G=n,z,g,Gr;(z=_c())!==r&&ot()!==r?((g=Tv())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Jl())!==r?(st=G,Vr=g,Qr=Gr,z={action:"add",...Qr,keyword:Vr,resource:"column",type:"alter"},G=z):(n=G,G=r)):(n=G,G=r);var Vr,Qr;return G})())===r&&(w=(function(){var G=n,z,g;return(z=_c())!==r&&ot()!==r&&(g=ve())!==r?(st=G,z=(function(Gr){return{action:"add",create_definitions:Gr,resource:"constraint",type:"alter"}})(g),G=z):(n=G,G=r),G})())===r&&(w=(function(){var G=n,z,g,Gr;return(z=ar())!==r&&ot()!==r?((g=Tv())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Le())!==r?(st=G,z=(function(Vr,Qr){return{action:"drop",column:Qr,keyword:Vr,resource:"column",type:"alter"}})(g,Gr),G=z):(n=G,G=r)):(n=G,G=r),G})())===r&&(w=(function(){var G=n,z,g;(z=_c())!==r&&ot()!==r&&(g=Eu())!==r?(st=G,Gr=g,z={action:"add",type:"alter",...Gr},G=z):(n=G,G=r);var Gr;return G})())===r&&(w=(function(){var G=n,z,g;(z=_c())!==r&&ot()!==r&&(g=ia())!==r?(st=G,Gr=g,z={action:"add",type:"alter",...Gr},G=z):(n=G,G=r);var Gr;return G})())===r&&(w=Ql())===r&&(w=lt())===r&&(w=Wn()),w}function Ql(){var w,G,z,g,Gr;return w=n,ms()!==r&&ot()!==r?((G=Na())===r&&(G=et()),G===r&&(G=null),G!==r&&ot()!==r&&(z=xu())!==r?(st=w,Gr=z,w={action:"rename",type:"alter",resource:"table",keyword:(g=G)&&g[0].toLowerCase(),table:Gr}):(n=w,w=r)):(n=w,w=r),w}function vi(){var w,G,z;return w=n,t.substr(n,5).toLowerCase()==="owner"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(pb)),G!==r&&ot()!==r&&Na()!==r&&ot()!==r?((z=xu())===r&&(t.substr(n,12).toLowerCase()==="current_role"?(z=t.substr(n,12),n+=12):(z=r,or===0&&Kr(j0)),z===r&&(t.substr(n,12).toLowerCase()==="current_user"?(z=t.substr(n,12),n+=12):(z=r,or===0&&Kr(B0)),z===r&&(t.substr(n,12).toLowerCase()==="session_user"?(z=t.substr(n,12),n+=12):(z=r,or===0&&Kr(Mc))))),z===r?(n=w,w=r):(st=w,w=G={action:"owner",type:"alter",resource:"table",keyword:"to",table:z})):(n=w,w=r),w}function Va(){var w,G;return w=n,mr()!==r&&ot()!==r&&At()!==r&&ot()!==r&&(G=xu())!==r?(st=w,w={action:"set",type:"alter",resource:"table",keyword:"schema",table:G}):(n=w,w=r),w}function lt(){var w,G,z,g;return w=n,t.substr(n,9).toLowerCase()==="algorithm"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(Cl)),G!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r?(t.substr(n,7).toLowerCase()==="default"?(g=t.substr(n,7),n+=7):(g=r,or===0&&Kr(nl)),g===r&&(t.substr(n,7).toLowerCase()==="instant"?(g=t.substr(n,7),n+=7):(g=r,or===0&&Kr($u)),g===r&&(t.substr(n,7).toLowerCase()==="inplace"?(g=t.substr(n,7),n+=7):(g=r,or===0&&Kr(r0)),g===r&&(t.substr(n,4).toLowerCase()==="copy"?(g=t.substr(n,4),n+=4):(g=r,or===0&&Kr(zn))))),g===r?(n=w,w=r):(st=w,w=G={type:"alter",keyword:"algorithm",resource:"algorithm",symbol:z,algorithm:g})):(n=w,w=r)):(n=w,w=r),w}function Wn(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="lock"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Ss)),G!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r?(t.substr(n,7).toLowerCase()==="default"?(g=t.substr(n,7),n+=7):(g=r,or===0&&Kr(nl)),g===r&&(t.substr(n,4).toLowerCase()==="none"?(g=t.substr(n,4),n+=4):(g=r,or===0&&Kr(Uc)),g===r&&(t.substr(n,6).toLowerCase()==="shared"?(g=t.substr(n,6),n+=6):(g=r,or===0&&Kr(te)),g===r&&(t.substr(n,9).toLowerCase()==="exclusive"?(g=t.substr(n,9),n+=9):(g=r,or===0&&Kr(ce))))),g===r?(n=w,w=r):(st=w,w=G={type:"alter",keyword:"lock",resource:"lock",symbol:z,lock:g})):(n=w,w=r)):(n=w,w=r),w}function Eu(){var w,G,z,g,Gr,Vr;return w=n,(G=ef())===r&&(G=ip()),G!==r&&ot()!==r?((z=ur())===r&&(z=null),z!==r&&ot()!==r?((g=a())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Yu())!==r&&ot()!==r?((Vr=an())===r&&(Vr=null),Vr!==r&&ot()!==r?(st=w,w=G=(function(Qr,Pt,wn,Rn,An){return{index:Pt,definition:Rn,keyword:Qr.toLowerCase(),index_type:wn,resource:"index",index_options:An}})(G,z,g,Gr,Vr)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w}function ia(){var w,G,z,g,Gr,Vr;return w=n,(G=(function(){var Qr=n,Pt,wn,Rn;return t.substr(n,8).toLowerCase()==="fulltext"?(Pt=t.substr(n,8),n+=8):(Pt=r,or===0&&Kr(Ac)),Pt===r?(n=Qr,Qr=r):(wn=n,or++,Rn=er(),or--,Rn===r?wn=void 0:(n=wn,wn=r),wn===r?(n=Qr,Qr=r):(st=Qr,Qr=Pt="FULLTEXT")),Qr})())===r&&(G=(function(){var Qr=n,Pt,wn,Rn;return t.substr(n,7).toLowerCase()==="spatial"?(Pt=t.substr(n,7),n+=7):(Pt=r,or===0&&Kr(mc)),Pt===r?(n=Qr,Qr=r):(wn=n,or++,Rn=er(),or--,Rn===r?wn=void 0:(n=wn,wn=r),wn===r?(n=Qr,Qr=r):(st=Qr,Qr=Pt="SPATIAL")),Qr})()),G!==r&&ot()!==r?((z=ef())===r&&(z=ip()),z===r&&(z=null),z!==r&&ot()!==r?((g=ur())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Yu())!==r&&ot()!==r?((Vr=an())===r&&(Vr=null),Vr!==r&&ot()!==r?(st=w,w=G=(function(Qr,Pt,wn,Rn,An){return{index:wn,definition:Rn,keyword:Pt&&`${Qr.toLowerCase()} ${Pt.toLowerCase()}`||Qr.toLowerCase(),index_options:An,resource:"index"}})(G,z,g,Gr,Vr)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w}function ve(){var w;return(w=(function(){var G=n,z,g,Gr,Vr,Qr;(z=Jt())===r&&(z=null),z!==r&&ot()!==r?(t.substr(n,11).toLowerCase()==="primary key"?(g=t.substr(n,11),n+=11):(g=r,or===0&&Kr(He)),g!==r&&ot()!==r?((Gr=a())===r&&(Gr=null),Gr!==r&&ot()!==r&&(Vr=Yu())!==r&&ot()!==r?((Qr=an())===r&&(Qr=null),Qr===r?(n=G,G=r):(st=G,wn=g,Rn=Gr,An=Vr,Mn=Qr,z={constraint:(Pt=z)&&Pt.constraint,definition:An,constraint_type:wn.toLowerCase(),keyword:Pt&&Pt.keyword,index_type:Rn,resource:"constraint",index_options:Mn},G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r);var Pt,wn,Rn,An,Mn;return G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr,Pt,wn;(z=Jt())===r&&(z=null),z!==r&&ot()!==r&&(g=Uu())!==r&&ot()!==r?((Gr=ef())===r&&(Gr=ip()),Gr===r&&(Gr=null),Gr!==r&&ot()!==r?((Vr=ur())===r&&(Vr=null),Vr!==r&&ot()!==r?((Qr=a())===r&&(Qr=null),Qr!==r&&ot()!==r&&(Pt=Yu())!==r&&ot()!==r?((wn=an())===r&&(wn=null),wn===r?(n=G,G=r):(st=G,An=g,Mn=Gr,as=Vr,cs=Qr,_s=Pt,we=wn,z={constraint:(Rn=z)&&Rn.constraint,definition:_s,constraint_type:Mn&&`${An.toLowerCase()} ${Mn.toLowerCase()}`||An.toLowerCase(),keyword:Rn&&Rn.keyword,index_type:cs,index:as,resource:"constraint",index_options:we},G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r);var Rn,An,Mn,as,cs,_s,we;return G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr;(z=Jt())===r&&(z=null),z!==r&&ot()!==r?(t.substr(n,11).toLowerCase()==="foreign key"?(g=t.substr(n,11),n+=11):(g=r,or===0&&Kr(Ue)),g!==r&&ot()!==r?((Gr=ur())===r&&(Gr=null),Gr!==r&&ot()!==r&&(Vr=Yu())!==r&&ot()!==r?((Qr=E0())===r&&(Qr=null),Qr===r?(n=G,G=r):(st=G,wn=g,Rn=Gr,An=Vr,Mn=Qr,z={constraint:(Pt=z)&&Pt.constraint,definition:An,constraint_type:wn,keyword:Pt&&Pt.keyword,index:Rn,resource:"constraint",reference_definition:Mn},G=z)):(n=G,G=r)):(n=G,G=r)):(n=G,G=r);var Pt,wn,Rn,An,Mn;return G})())===r&&(w=nf()),w}function Jt(){var w,G,z;return w=n,(G=of())!==r&&ot()!==r?((z=xu())===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(g,Gr){return{keyword:g.toLowerCase(),constraint:Gr}})(G,z))):(n=w,w=r),w}function nf(){var w,G,z,g,Gr,Vr,Qr;return w=n,(G=Jt())===r&&(G=null),G!==r&&ot()!==r?(t.substr(n,5).toLowerCase()==="check"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(Ps)),z!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(g=zo())!==r&&ot()!==r&&Xo()!==r?(st=w,Vr=z,Qr=g,w=G={constraint:(Gr=G)&&Gr.constraint,definition:[Qr],constraint_type:Vr.toLowerCase(),keyword:Gr&&Gr.keyword,resource:"constraint"}):(n=w,w=r)):(n=w,w=r),w}function E0(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn;return w=n,(G=(function(){var An=n,Mn,as,cs;return t.substr(n,10).toLowerCase()==="references"?(Mn=t.substr(n,10),n+=10):(Mn=r,or===0&&Kr(Yc)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="REFERENCES")),An})())!==r&&ot()!==r&&(z=Zt())!==r&&ot()!==r&&(g=Yu())!==r&&ot()!==r?(t.substr(n,10).toLowerCase()==="match full"?(Gr=t.substr(n,10),n+=10):(Gr=r,or===0&&Kr(Qe)),Gr===r&&(t.substr(n,13).toLowerCase()==="match partial"?(Gr=t.substr(n,13),n+=13):(Gr=r,or===0&&Kr(uo)),Gr===r&&(t.substr(n,12).toLowerCase()==="match simple"?(Gr=t.substr(n,12),n+=12):(Gr=r,or===0&&Kr(Ao)))),Gr===r&&(Gr=null),Gr!==r&&ot()!==r?((Vr=kl())===r&&(Vr=null),Vr!==r&&ot()!==r?((Qr=kl())===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,Pt=Gr,wn=Vr,Rn=Qr,w=G={definition:g,table:[z],keyword:G.toLowerCase(),match:Pt&&Pt.toLowerCase(),on_action:[wn,Rn].filter(An=>An)})):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,(G=kl())!==r&&(st=w,G={on_action:[G]}),w=G),w}function kl(){var w,G,z,g;return w=n,Bt()!==r&&ot()!==r?((G=fn())===r&&(G=ct()),G!==r&&ot()!==r&&(z=(function(){var Gr=n,Vr,Qr;return(Vr=tc())!==r&&ot()!==r&&Yo()!==r&&ot()!==r?((Qr=Mr())===r&&(Qr=null),Qr!==r&&ot()!==r&&Xo()!==r?(st=Gr,Gr=Vr={type:"function",name:{name:[{type:"origin",value:Vr}]},args:Qr}):(n=Gr,Gr=r)):(n=Gr,Gr=r),Gr===r&&(Gr=n,t.substr(n,8).toLowerCase()==="restrict"?(Vr=t.substr(n,8),n+=8):(Vr=r,or===0&&Kr(Qc)),Vr===r&&(t.substr(n,7).toLowerCase()==="cascade"?(Vr=t.substr(n,7),n+=7):(Vr=r,or===0&&Kr(Jc)),Vr===r&&(t.substr(n,8).toLowerCase()==="set null"?(Vr=t.substr(n,8),n+=8):(Vr=r,or===0&&Kr(Pu)),Vr===r&&(t.substr(n,9).toLowerCase()==="no action"?(Vr=t.substr(n,9),n+=9):(Vr=r,or===0&&Kr(Ca)),Vr===r&&(t.substr(n,11).toLowerCase()==="set default"?(Vr=t.substr(n,11),n+=11):(Vr=r,or===0&&Kr(ku)),Vr===r&&(Vr=tc()))))),Vr!==r&&(st=Gr,Vr={type:"origin",value:Vr.toLowerCase()}),Gr=Vr),Gr})())!==r?(st=w,g=z,w={type:"on "+G[0].toLowerCase(),value:g}):(n=w,w=r)):(n=w,w=r),w}function oi(){var w,G,z,g,Gr,Vr,Qr;return w=n,(G=gn())===r&&(G=fn())===r&&(G=Nc()),G!==r&&(st=w,Qr=G,G={keyword:Array.isArray(Qr)?Qr[0].toLowerCase():Qr.toLowerCase()}),(w=G)===r&&(w=n,(G=ct())!==r&&ot()!==r?(z=n,t.substr(n,2).toLowerCase()==="of"?(g=t.substr(n,2),n+=2):(g=r,or===0&&Kr(Dc)),g!==r&&(Gr=ot())!==r&&(Vr=rt())!==r?z=g=[g,Gr,Vr]:(n=z,z=r),z===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(Pt,wn){return{keyword:Pt&&Pt[0]&&Pt[0].toLowerCase(),args:wn&&{keyword:wn[0],columns:wn[2]}||null}})(G,z))):(n=w,w=r)),w}function yn(){var w,G,z;return w=n,t.substr(n,9).toLowerCase()==="character"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(R0)),G!==r&&ot()!==r?(t.substr(n,3).toLowerCase()==="set"?(z=t.substr(n,3),n+=3):(z=r,or===0&&Kr(Rl)),z===r?(n=w,w=r):(st=w,w=G="CHARACTER SET")):(n=w,w=r),w}function ka(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;return w=n,(G=Po())===r&&(G=null),G!==r&&ot()!==r?((z=yn())===r&&(t.substr(n,7).toLowerCase()==="charset"?(z=t.substr(n,7),n+=7):(z=r,or===0&&Kr(ff)),z===r&&(t.substr(n,7).toLowerCase()==="collate"?(z=t.substr(n,7),n+=7):(z=r,or===0&&Kr(Vf)))),z!==r&&ot()!==r?((g=Si())===r&&(g=null),g!==r&&ot()!==r&&(Gr=Wu())!==r?(st=w,Qr=z,Pt=g,wn=Gr,w=G={keyword:(Vr=G)&&`${Vr[0].toLowerCase()} ${Qr.toLowerCase()}`||Qr.toLowerCase(),symbol:Pt,value:wn}):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w}function Ua(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;return w=n,t.substr(n,14).toLowerCase()==="auto_increment"?(G=t.substr(n,14),n+=14):(G=r,or===0&&Kr(Oi)),G===r&&(t.substr(n,14).toLowerCase()==="avg_row_length"?(G=t.substr(n,14),n+=14):(G=r,or===0&&Kr(Vv)),G===r&&(t.substr(n,14).toLowerCase()==="key_block_size"?(G=t.substr(n,14),n+=14):(G=r,or===0&&Kr(db)),G===r&&(t.substr(n,8).toLowerCase()==="max_rows"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(Of)),G===r&&(t.substr(n,8).toLowerCase()==="min_rows"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(Pc)),G===r&&(t.substr(n,18).toLowerCase()==="stats_sample_pages"?(G=t.substr(n,18),n+=18):(G=r,or===0&&Kr(H0))))))),G!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r&&(g=me())!==r?(st=w,Pt=z,wn=g,w=G={keyword:G.toLowerCase(),symbol:Pt,value:wn.value}):(n=w,w=r)):(n=w,w=r),w===r&&(w=ka())===r&&(w=n,(G=Sc())===r&&(t.substr(n,10).toLowerCase()==="connection"?(G=t.substr(n,10),n+=10):(G=r,or===0&&Kr(bf))),G!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r&&(g=Ws())!==r?(st=w,w=G=(function(Rn,An,Mn){return{keyword:Rn.toLowerCase(),symbol:An,value:`'${Mn.value}'`}})(G,z,g)):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,t.substr(n,11).toLowerCase()==="compression"?(G=t.substr(n,11),n+=11):(G=r,or===0&&Kr(Lb)),G!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r?(g=n,t.charCodeAt(n)===39?(Gr="'",n++):(Gr=r,or===0&&Kr(Fa)),Gr===r?(n=g,g=r):(t.substr(n,4).toLowerCase()==="zlib"?(Vr=t.substr(n,4),n+=4):(Vr=r,or===0&&Kr(Kf)),Vr===r&&(t.substr(n,3).toLowerCase()==="lz4"?(Vr=t.substr(n,3),n+=3):(Vr=r,or===0&&Kr(Nv)),Vr===r&&(t.substr(n,4).toLowerCase()==="none"?(Vr=t.substr(n,4),n+=4):(Vr=r,or===0&&Kr(Uc)))),Vr===r?(n=g,g=r):(t.charCodeAt(n)===39?(Qr="'",n++):(Qr=r,or===0&&Kr(Fa)),Qr===r?(n=g,g=r):g=Gr=[Gr,Vr,Qr])),g===r?(n=w,w=r):(st=w,w=G=(function(Rn,An,Mn){return{keyword:Rn.toLowerCase(),symbol:An,value:Mn.join("").toUpperCase()}})(G,z,g))):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,t.substr(n,6).toLowerCase()==="engine"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Gb)),G!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r&&(g=s())!==r?(st=w,w=G=(function(Rn,An,Mn){return{keyword:Rn.toLowerCase(),symbol:An,value:Mn.toUpperCase()}})(G,z,g)):(n=w,w=r)):(n=w,w=r)))),w}function Ou(){var w,G,z,g,Gr,Vr,Qr;return w=n,(G=Rr())!==r&&(z=ot())!==r?(t.charCodeAt(n)===59?(g=";",n++):(g=r,or===0&&Kr(je)),g===r?(n=w,w=r):(st=w,w=G={type:"select",...Do()})):(n=w,w=r),w===r&&(w=ha())===r&&(w=n,G=n,t.charCodeAt(n)===40?(z="(",n++):(z=r,or===0&&Kr(o0)),z!==r&&(g=ot())!==r&&(Gr=Ou())!==r&&(Vr=ot())!==r?(t.charCodeAt(n)===41?(Qr=")",n++):(Qr=r,or===0&&Kr(xi)),Qr===r?(n=G,G=r):G=z=[z,g,Gr,Vr,Qr]):(n=G,G=r),G!==r&&(st=w,G={...G[2],parentheses_symbol:!0}),w=G),w}function il(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An;if(w=n,qn()!==r)if(ot()!==r)if((G=zu())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=zu())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=zu())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=La(G,z))}else n=w,w=r;else n=w,w=r;else n=w,w=r;if(w===r)if(w=n,ot()!==r)if(qn()!==r)if((G=ot())!==r)if((z=Vn())!==r)if((g=ot())!==r)if((Gr=zu())!==r){for(Vr=[],Qr=n,(Pt=ot())!==r&&(wn=qo())!==r&&(Rn=ot())!==r&&(An=zu())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r);Qr!==r;)Vr.push(Qr),Qr=n,(Pt=ot())!==r&&(wn=qo())!==r&&(Rn=ot())!==r&&(An=zu())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r);Vr===r?(n=w,w=r):(st=w,w=(function(Mn,as){return Mn.recursive=!0,La(Mn,as)})(Gr,Vr))}else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;return w}function zu(){var w,G,z,g;return w=n,(G=Ws())===r&&(G=s()),G!==r&&ot()!==r?((z=Yu())===r&&(z=null),z!==r&&ot()!==r&&et()!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(g=Ji())!==r&&ot()!==r&&Xo()!==r?(st=w,w=G=(function(Gr,Vr,Qr){return typeof Gr=="string"&&(Gr={type:"default",value:Gr}),{name:Gr,stmt:Qr,columns:Vr,...Do()}})(G,z,g)):(n=w,w=r)):(n=w,w=r),w}function Yu(){var w,G;return w=n,Yo()!==r&&ot()!==r&&(G=rt())!==r&&ot()!==r&&Xo()!==r?(st=w,w=G):(n=w,w=r),w}function lb(){var w,G,z;return w=n,(G=Je())!==r&&ot()!==r&&Bt()!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(z=rt())!==r&&ot()!==r&&Xo()!==r?(st=w,w=G=(function(g,Gr,Vr){return console.lo,{type:g+" ON",columns:Vr}})(G,0,z)):(n=w,w=r),w===r&&(w=n,(G=Je())===r&&(G=null),G!==r&&(st=w,G={type:G}),w=G),w}function Mi(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs;return w=n,ot()!==r&&Rr()!==r&&Xv()!==r?((G=(function(){var _s,we,Pe,jr,oo,Bo;if(_s=n,(we=Ha())!==r){for(Pe=[],jr=n,(oo=ot())!==r&&(Bo=Ha())!==r?jr=oo=[oo,Bo]:(n=jr,jr=r);jr!==r;)Pe.push(jr),jr=n,(oo=ot())!==r&&(Bo=Ha())!==r?jr=oo=[oo,Bo]:(n=jr,jr=r);Pe===r?(n=_s,_s=r):(st=_s,we=(function(No,lu){let ru=[No];for(let Me=0,_u=lu.length;Me<_u;++Me)ru.push(lu[Me][1]);return ru})(we,Pe),_s=we)}else n=_s,_s=r;return _s})())===r&&(G=null),G!==r&&ot()!==r?((z=lb())===r&&(z=null),z!==r&&ot()!==r&&(g=ln())!==r&&ot()!==r?((Gr=ai())===r&&(Gr=null),Gr!==r&&ot()!==r?((Vr=ll())===r&&(Vr=null),Vr!==r&&ot()!==r?((Qr=ai())===r&&(Qr=null),Qr!==r&&ot()!==r?((Pt=Ht())===r&&(Pt=null),Pt!==r&&ot()!==r?((wn=(function(){var _s=n,we,Pe;return(we=Cs())!==r&&ot()!==r&&js()!==r&&ot()!==r&&(Pe=Mr())!==r?(st=_s,we={columns:Pe.value},_s=we):(n=_s,_s=r),_s})())===r&&(wn=null),wn!==r&&ot()!==r?((Rn=(function(){var _s=n,we;return(function(){var Pe=n,jr,oo,Bo;return t.substr(n,6).toLowerCase()==="having"?(jr=t.substr(n,6),n+=6):(jr=r,or===0&&Kr(Qt)),jr===r?(n=Pe,Pe=r):(oo=n,or++,Bo=er(),or--,Bo===r?oo=void 0:(n=oo,oo=r),oo===r?(n=Pe,Pe=r):Pe=jr=[jr,oo]),Pe})()!==r&&ot()!==r&&(we=zo())!==r?(st=_s,_s=we):(n=_s,_s=r),_s})())===r&&(Rn=null),Rn!==r&&ot()!==r?((An=Ln())===r&&(An=null),An!==r&&ot()!==r?((Mn=yt())===r&&(Mn=null),Mn!==r&&ot()!==r?((as=(function(){var _s=n,we;return(function(){var Pe=n,jr,oo,Bo;return t.substr(n,6).toLowerCase()==="window"?(jr=t.substr(n,6),n+=6):(jr=r,or===0&&Kr(Xs)),jr===r?(n=Pe,Pe=r):(oo=n,or++,Bo=er(),or--,Bo===r?oo=void 0:(n=oo,oo=r),oo===r?(n=Pe,Pe=r):Pe=jr=[jr,oo]),Pe})()!==r&&ot()!==r&&(we=(function(){var Pe,jr,oo,Bo,No,lu,ru,Me;if(Pe=n,(jr=k())!==r){for(oo=[],Bo=n,(No=ot())!==r&&(lu=qo())!==r&&(ru=ot())!==r&&(Me=k())!==r?Bo=No=[No,lu,ru,Me]:(n=Bo,Bo=r);Bo!==r;)oo.push(Bo),Bo=n,(No=ot())!==r&&(lu=qo())!==r&&(ru=ot())!==r&&(Me=k())!==r?Bo=No=[No,lu,ru,Me]:(n=Bo,Bo=r);oo===r?(n=Pe,Pe=r):(st=Pe,jr=La(jr,oo),Pe=jr)}else n=Pe,Pe=r;return Pe})())!==r?(st=_s,_s={keyword:"window",type:"window",expr:we}):(n=_s,_s=r),_s})())===r&&(as=null),as!==r&&ot()!==r?((cs=ai())===r&&(cs=null),cs===r?(n=w,w=r):(st=w,w=(function(_s,we,Pe,jr,oo,Bo,No,lu,ru,Me,_u,mo,ho){if(jr&&Bo||jr&&ho||Bo&&ho||jr&&Bo&&ho)throw Error("A given SQL statement can contain at most one INTO clause");return oo&&oo.forEach(Mo=>Mo.table&&Vu.add(`select::${[Mo.db,Mo.schema].filter(Boolean).join(".")||null}::${Mo.table}`)),{type:"select",options:_s,distinct:we,columns:Pe,into:{...jr||Bo||ho||{},position:(jr?"column":Bo&&"from")||ho&&"end"},from:oo,where:No,groupby:lu,having:ru,orderby:Me,limit:_u,window:mo,...Do()}})(G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs))):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w}function ha(){var w,G,z,g,Gr,Vr;return w=n,ot()===r?(n=w,w=r):((G=il())===r&&(G=null),G!==r&&(z=Mi())!==r?(st=w,w=xf(G,z)):(n=w,w=r)),w===r&&(w=n,ot()===r?(n=w,w=r):((G=il())===r&&(G=null),G!==r&&(z=ot())!==r?(t.charCodeAt(n)===40?(g="(",n++):(g=r,or===0&&Kr(o0)),g===r&&(g=null),g!==r&&(Gr=Mi())!==r&&ot()!==r?(t.charCodeAt(n)===41?(Vr=")",n++):(Vr=r,or===0&&Kr(xi)),Vr===r&&(Vr=null),Vr===r?(n=w,w=r):(st=w,w=xf(G,Gr))):(n=w,w=r)):(n=w,w=r))),w}function Ha(){var w,G;return w=n,(G=(function(){var z;return t.substr(n,19).toLowerCase()==="sql_calc_found_rows"?(z=t.substr(n,19),n+=19):(z=r,or===0&&Kr(Z0)),z})())===r&&((G=(function(){var z;return t.substr(n,9).toLowerCase()==="sql_cache"?(z=t.substr(n,9),n+=9):(z=r,or===0&&Kr(lc)),z})())===r&&(G=(function(){var z;return t.substr(n,12).toLowerCase()==="sql_no_cache"?(z=t.substr(n,12),n+=12):(z=r,or===0&&Kr(Ic)),z})()),G===r&&(G=(function(){var z;return t.substr(n,14).toLowerCase()==="sql_big_result"?(z=t.substr(n,14),n+=14):(z=r,or===0&&Kr(J0)),z})())===r&&(G=(function(){var z;return t.substr(n,16).toLowerCase()==="sql_small_result"?(z=t.substr(n,16),n+=16):(z=r,or===0&&Kr(ab)),z})())===r&&(G=(function(){var z;return t.substr(n,17).toLowerCase()==="sql_buffer_result"?(z=t.substr(n,17),n+=17):(z=r,or===0&&Kr(ml)),z})())),G!==r&&(st=w,G=G),w=G}function ln(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=Ru())===r&&(G=n,(z=Oc())===r?(n=G,G=r):(g=n,or++,Gr=er(),or--,Gr===r?g=void 0:(n=g,g=r),g===r?(n=G,G=r):G=z=[z,g]),G===r&&(G=Oc())),G!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ni())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ni())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=(function(wn,Rn){ra.add("select::null::(.*)");let An={expr:{type:"column_ref",table:null,column:"*"},as:null,...Do()};return Rn&&Rn.length>0?La(An,Rn):[An]})(0,z))}else n=w,w=r;if(w===r)if(w=n,(G=ni())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ni())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ni())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z))}else n=w,w=r;return w}function Oe(){var w,G;return w=n,$l()!==r&&ot()!==r?((G=me())===r&&(G=Ws()),G!==r&&ot()!==r&&m0()!==r?(st=w,w={brackets:!0,index:G}):(n=w,w=r)):(n=w,w=r),w}function Di(){var w,G,z,g,Gr,Vr;if(w=n,(G=Oe())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=Oe())!==r?g=Gr=[Gr,Vr]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=Oe())!==r?g=Gr=[Gr,Vr]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z,1))}else n=w,w=r;return w}function Ya(){var w,G,z,g,Gr;return w=n,(G=(function(){var Vr,Qr,Pt,wn,Rn,An,Mn,as;if(Vr=n,(Qr=ao())!==r){for(Pt=[],wn=n,(Rn=ot())===r?(n=wn,wn=r):((An=Vo())===r&&(An=eu())===r&&(An=Xu()),An!==r&&(Mn=ot())!==r&&(as=ao())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r));wn!==r;)Pt.push(wn),wn=n,(Rn=ot())===r?(n=wn,wn=r):((An=Vo())===r&&(An=eu())===r&&(An=Xu()),An!==r&&(Mn=ot())!==r&&(as=ao())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r));Pt===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(cs,_s){let we=cs.ast;if(we&&we.type==="select"&&(!(cs.parentheses_symbol||cs.parentheses||cs.ast.parentheses||cs.ast.parentheses_symbol)||we.columns.length!==1||we.columns[0].expr.column==="*"))throw Error("invalid column clause with select statement");if(!_s||_s.length===0)return cs;let Pe=_s.length,jr=_s[Pe-1][3];for(let oo=Pe-1;oo>=0;oo--){let Bo=oo===0?cs:_s[oo-1][3];jr=dc(_s[oo][1],Bo,jr)}return jr})(Qr,Pt),Vr=Qr)}else n=Vr,Vr=r;return Vr})())!==r&&ot()!==r?((z=Di())===r&&(z=null),z===r?(n=w,w=r):(st=w,g=G,(Gr=z)&&(g.array_index=Gr),w=G=g)):(n=w,w=r),w}function ni(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as;if(w=n,(G=Ml())!==r&&(st=w,G=(function(cs){return{expr:cs,as:null,...Do()}})(G)),(w=G)===r){if(w=n,(G=Ya())!==r)if((z=ot())!==r)if((g=xt())!==r)if((Gr=ot())!==r){for(Vr=[],Qr=n,(Pt=ot())===r?(n=Qr,Qr=r):((wn=la())===r&&(wn=Ia()),wn!==r&&(Rn=ot())!==r&&(An=Ya())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r));Qr!==r;)Vr.push(Qr),Qr=n,(Pt=ot())===r?(n=Qr,Qr=r):((wn=la())===r&&(wn=Ia()),wn!==r&&(Rn=ot())!==r&&(An=Ya())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r));Vr!==r&&(Qr=ot())!==r?((Pt=$i())===r&&(Pt=null),Pt===r?(n=w,w=r):(st=w,w=G=(function(cs,_s,we,Pe){return{..._s,as:Pe,type:"cast",expr:cs,tail:we&&we[0]&&{operator:we[0][1],expr:we[0][3]},...Do()}})(G,g,Vr,Pt))):(n=w,w=r)}else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;w===r&&(w=n,(G=Zo())!==r&&(z=ot())!==r&&(g=qa())!==r?(Gr=n,(Vr=Zo())!==r&&(Qr=ot())!==r&&(Pt=qa())!==r?Gr=Vr=[Vr,Qr,Pt]:(n=Gr,Gr=r),Gr===r&&(Gr=null),Gr!==r&&(Vr=ot())!==r&&(Qr=Oc())!==r?(st=w,w=G=(function(cs,_s){let we=_s&&_s[0],Pe;return we&&(Pe=cs,cs=we),ra.add(`select::${cs?cs.value:null}::(.*)`),{expr:{type:"column_ref",table:cs,schema:Pe,column:"*"},as:null,...Do()}})(G,Gr)):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,G=n,(z=Zo())!==r&&(g=ot())!==r&&(Gr=qa())!==r?G=z=[z,g,Gr]:(n=G,G=r),G===r&&(G=null),G!==r&&(z=ot())!==r&&(g=Oc())!==r?(st=w,w=G=(function(cs){let _s=cs&&cs[0]||null;return ra.add(`select::${_s?_s.value:null}::(.*)`),{expr:{type:"column_ref",table:_s,column:"*"},as:null,...Do()}})(G)):(n=w,w=r),w===r&&(w=n,(G=Dl())!==r&&(z=ot())!==r?((g=qa())===r&&(g=null),g===r?(n=w,w=r):(st=n,(Gr=(Gr=(function(cs,_s){if(_s)return!0})(0,g))?r:void 0)!==r&&(Vr=ot())!==r?((Qr=$i())===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,w=G=(function(cs,_s,we){return ra.add("select::null::"+cs.value),{type:"expr",expr:{type:"column_ref",table:null,column:{expr:cs}},as:we,...Do()}})(G,0,Qr))):(n=w,w=r))):(n=w,w=r),w===r&&(w=n,(G=Ya())!==r&&(z=ot())!==r?((g=$i())===r&&(g=null),g===r?(n=w,w=r):(st=w,as=g,(Mn=G).type!=="double_quote_string"&&Mn.type!=="single_quote_string"||ra.add("select::null::"+Mn.value),w=G={type:"expr",expr:Mn,as,...Do()})):(n=w,w=r)))))}return w}function ui(){var w,G,z;return w=n,(G=et())===r&&(G=null),G!==r&&ot()!==r&&(z=si())!==r?(st=w,w=G=z):(n=w,w=r),w}function $i(){var w,G,z;return w=n,(G=et())!==r&&ot()!==r&&(z=si())!==r?(st=w,w=G=z):(n=w,w=r),w===r&&(w=n,(G=et())===r&&(G=null),G!==r&&ot()!==r&&(z=xu())!==r?(st=w,w=G=z):(n=w,w=r)),w}function ai(){var w,G,z;return w=n,J()!==r&&ot()!==r&&(G=(function(){var g,Gr,Vr,Qr,Pt,wn,Rn,An;if(g=n,(Gr=ee())!==r){for(Vr=[],Qr=n,(Pt=ot())!==r&&(wn=qo())!==r&&(Rn=ot())!==r&&(An=ee())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r);Qr!==r;)Vr.push(Qr),Qr=n,(Pt=ot())!==r&&(wn=qo())!==r&&(Rn=ot())!==r&&(An=ee())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r);Vr===r?(n=g,g=r):(st=g,Gr=La(Gr,Vr),g=Gr)}else n=g,g=r;return g})())!==r?(st=w,w={keyword:"var",type:"into",expr:G}):(n=w,w=r),w===r&&(w=n,J()!==r&&ot()!==r?(t.substr(n,7).toLowerCase()==="outfile"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Zf)),G===r&&(t.substr(n,8).toLowerCase()==="dumpfile"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(W0))),G===r&&(G=null),G!==r&&ot()!==r?((z=Ws())===r&&(z=xu()),z===r?(n=w,w=r):(st=w,w={keyword:G,type:"into",expr:z})):(n=w,w=r)):(n=w,w=r)),w}function ll(){var w,G;return w=n,br()!==r&&ot()!==r&&(G=Da())!==r?(st=w,w=G):(n=w,w=r),w}function cl(){var w,G,z;return w=n,(G=Zt())!==r&&ot()!==r&&Na()!==r&&ot()!==r&&(z=Zt())!==r?(st=w,w=G=[G,z]):(n=w,w=r),w}function a(){var w,G;return w=n,Hn()!==r&&ot()!==r?(t.substr(n,5).toLowerCase()==="btree"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(jb)),G===r&&(t.substr(n,4).toLowerCase()==="hash"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Uf)),G===r&&(t.substr(n,4).toLowerCase()==="gist"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(u0)),G===r&&(t.substr(n,3).toLowerCase()==="gin"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(wb))))),G===r?(n=w,w=r):(st=w,w={keyword:"using",type:G.toLowerCase()})):(n=w,w=r),w}function an(){var w,G,z,g,Gr,Vr;if(w=n,(G=Ma())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=Ma())!==r?g=Gr=[Gr,Vr]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=Ma())!==r?g=Gr=[Gr,Vr]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=(function(Qr,Pt){let wn=[Qr];for(let Rn=0;Rn<Pt.length;Rn++)wn.push(Pt[Rn][1]);return wn})(G,z))}else n=w,w=r;return w}function Ma(){var w,G,z,g,Gr,Vr;return w=n,(G=(function(){var Qr=n,Pt,wn,Rn;return t.substr(n,14).toLowerCase()==="key_block_size"?(Pt=t.substr(n,14),n+=14):(Pt=r,or===0&&Kr(db)),Pt===r?(n=Qr,Qr=r):(wn=n,or++,Rn=er(),or--,Rn===r?wn=void 0:(n=wn,wn=r),wn===r?(n=Qr,Qr=r):(st=Qr,Qr=Pt="KEY_BLOCK_SIZE")),Qr})())!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r&&(g=me())!==r?(st=w,Gr=z,Vr=g,w=G={type:G.toLowerCase(),symbol:Gr,expr:Vr}):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,(G=s())!==r&&ot()!==r&&(z=Si())!==r&&ot()!==r?((g=me())===r&&(g=xu()),g===r?(n=w,w=r):(st=w,w=G=(function(Qr,Pt,wn){return{type:Qr.toLowerCase(),symbol:Pt,expr:typeof wn=="string"&&{type:"origin",value:wn}||wn}})(G,z,g))):(n=w,w=r),w===r&&(w=a())===r&&(w=n,t.substr(n,4).toLowerCase()==="with"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Ui)),G!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="parser"?(z=t.substr(n,6),n+=6):(z=r,or===0&&Kr(uv)),z!==r&&ot()!==r&&(g=s())!==r?(st=w,w=G={type:"with parser",expr:g}):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,t.substr(n,7).toLowerCase()==="visible"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(yb)),G===r&&(t.substr(n,9).toLowerCase()==="invisible"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(hb))),G!==r&&(st=w,G=(function(Qr){return{type:Qr.toLowerCase(),expr:Qr.toLowerCase()}})(G)),(w=G)===r&&(w=B())))),w}function Da(){var w,G,z,g;if(w=n,(G=nt())!==r){for(z=[],g=ii();g!==r;)z.push(g),g=ii();z===r?(n=w,w=r):(st=w,w=G=Kv(G,z))}else n=w,w=r;return w}function ii(){var w,G,z;return w=n,ot()!==r&&(G=qo())!==r&&ot()!==r&&(z=nt())!==r?(st=w,w=z):(n=w,w=r),w===r&&(w=n,ot()!==r&&(G=(function(){var g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs;if(g=n,(Gr=o())!==r)if(ot()!==r)if((Vr=nt())!==r)if(ot()!==r)if((Qr=Hn())!==r)if(ot()!==r)if(Yo()!==r)if(ot()!==r)if((Pt=Wu())!==r){for(wn=[],Rn=n,(An=ot())!==r&&(Mn=qo())!==r&&(as=ot())!==r&&(cs=Wu())!==r?Rn=An=[An,Mn,as,cs]:(n=Rn,Rn=r);Rn!==r;)wn.push(Rn),Rn=n,(An=ot())!==r&&(Mn=qo())!==r&&(as=ot())!==r&&(cs=Wu())!==r?Rn=An=[An,Mn,as,cs]:(n=Rn,Rn=r);wn!==r&&(Rn=ot())!==r&&(An=Xo())!==r?(st=g,_s=Gr,Pe=Pt,jr=wn,(we=Vr).join=_s,we.using=La(Pe,jr),g=Gr=we):(n=g,g=r)}else n=g,g=r;else n=g,g=r;else n=g,g=r;else n=g,g=r;else n=g,g=r;else n=g,g=r;else n=g,g=r;else n=g,g=r;else n=g,g=r;var _s,we,Pe,jr;return g===r&&(g=n,(Gr=o())!==r&&ot()!==r&&(Vr=nt())!==r&&ot()!==r?((Qr=bu())===r&&(Qr=null),Qr===r?(n=g,g=r):(st=g,Gr=(function(oo,Bo,No){return Bo.join=oo,Bo.on=No,Bo})(Gr,Vr,Qr),g=Gr)):(n=g,g=r),g===r&&(g=n,(Gr=o())===r&&(Gr=Ri()),Gr!==r&&ot()!==r&&(Vr=Yo())!==r&&ot()!==r?((Qr=qu())===r&&(Qr=Da()),Qr!==r&&ot()!==r&&Xo()!==r&&ot()!==r?((Pt=$i())===r&&(Pt=null),Pt!==r&&(wn=ot())!==r?((Rn=bu())===r&&(Rn=null),Rn===r?(n=g,g=r):(st=g,Gr=(function(oo,Bo,No,lu){return Array.isArray(Bo)&&(Bo={type:"tables",expr:Bo}),Bo.parentheses=!0,{expr:Bo,as:No,join:oo,on:lu,...Do()}})(Gr,Qr,Pt,Rn),g=Gr)):(n=g,g=r)):(n=g,g=r)):(n=g,g=r))),g})())!==r?(st=w,w=G):(n=w,w=r)),w}function nt(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn;return w=n,(G=(function(){var as;return t.substr(n,4).toLowerCase()==="dual"?(as=t.substr(n,4),n+=4):(as=r,or===0&&Kr(ub)),as})())!==r&&(st=w,G={type:"dual"}),(w=G)===r&&(w=n,(G=e())!==r&&ot()!==r?((z=ui())===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G={expr:G,as:z,...Do()})):(n=w,w=r),w===r&&(w=n,t.substr(n,7).toLowerCase()==="lateral"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Gc)),G===r&&(G=null),G!==r&&ot()!==r&&(z=Yo())!==r&&ot()!==r?((g=qu())===r&&(g=e()),g!==r&&ot()!==r&&(Gr=Xo())!==r&&(Vr=ot())!==r?((Qr=ui())===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,w=G=(function(as,cs,_s){return cs.parentheses=!0,{prefix:as,expr:cs,as:_s,...Do()}})(G,g,Qr))):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,t.substr(n,7).toLowerCase()==="lateral"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Gc)),G===r&&(G=null),G!==r&&ot()!==r&&(z=Yo())!==r&&ot()!==r&&(g=Da())!==r&&ot()!==r&&(Gr=Xo())!==r&&(Vr=ot())!==r?((Qr=ui())===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,w=G=(function(as,cs,_s){return{prefix:as,expr:cs={type:"tables",expr:cs,parentheses:!0},as:_s,...Do()}})(G,g,Qr))):(n=w,w=r),w===r&&(w=n,t.substr(n,7).toLowerCase()==="lateral"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Gc)),G===r&&(G=null),G!==r&&ot()!==r&&(z=Ar())!==r&&ot()!==r?((g=$i())===r&&(g=null),g===r?(n=w,w=r):(st=w,w=G=(function(as,cs,_s){return{prefix:as,type:"expr",expr:cs,as:_s}})(G,z,g))):(n=w,w=r),w===r&&(w=n,(G=Zt())!==r&&ot()!==r?(t.substr(n,11).toLowerCase()==="tablesample"?(z=t.substr(n,11),n+=11):(z=r,or===0&&Kr(_v)),z!==r&&ot()!==r&&(g=Ar())!==r&&ot()!==r?(Gr=n,t.substr(n,10).toLowerCase()==="repeatable"?(Vr=t.substr(n,10),n+=10):(Vr=r,or===0&&Kr(kf)),Vr!==r&&(Qr=ot())!==r&&(Pt=Yo())!==r&&(wn=ot())!==r&&(Rn=me())!==r&&(An=ot())!==r&&(Mn=Xo())!==r?Gr=Vr=[Vr,Qr,Pt,wn,Rn,An,Mn]:(n=Gr,Gr=r),Gr===r&&(Gr=null),Gr!==r&&(Vr=ot())!==r?((Qr=$i())===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,w=G=(function(as,cs,_s,we){return{...as,as:we,tablesample:{expr:cs,repeatable:_s&&_s[4]},...Do()}})(G,g,Gr,Qr))):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,(G=Zt())!==r&&ot()!==r?((z=$i())===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(as,cs){return as.type==="var"?(as.as=cs,as={...as,...Do()}):{...as,as:cs,...Do()}})(G,z))):(n=w,w=r))))))),w}function o(){var w,G,z,g;return w=n,(G=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,4).toLowerCase()==="left"?(Vr=t.substr(n,4),n+=4):(Vr=r,or===0&&Kr(vv)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):Gr=Vr=[Vr,Qr]),Gr})())!==r&&(z=ot())!==r?((g=pn())===r&&(g=null),g!==r&&ot()!==r&&Ut()!==r?(st=w,w=G="LEFT JOIN"):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,(G=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,5).toLowerCase()==="right"?(Vr=t.substr(n,5),n+=5):(Vr=r,or===0&&Kr(ep)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):Gr=Vr=[Vr,Qr]),Gr})())!==r&&(z=ot())!==r?((g=pn())===r&&(g=null),g!==r&&ot()!==r&&Ut()!==r?(st=w,w=G="RIGHT JOIN"):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,(G=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,4).toLowerCase()==="full"?(Vr=t.substr(n,4),n+=4):(Vr=r,or===0&&Kr(Rs)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):Gr=Vr=[Vr,Qr]),Gr})())!==r&&(z=ot())!==r?((g=pn())===r&&(g=null),g!==r&&ot()!==r&&Ut()!==r?(st=w,w=G="FULL JOIN"):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,t.substr(n,5).toLowerCase()==="cross"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(vf)),G!==r&&(z=ot())!==r&&(g=Ut())!==r?(st=w,w=G="CROSS JOIN"):(n=w,w=r),w===r&&(w=n,G=n,(z=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,5).toLowerCase()==="inner"?(Vr=t.substr(n,5),n+=5):(Vr=r,or===0&&Kr(Np)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):Gr=Vr=[Vr,Qr]),Gr})())!==r&&(g=ot())!==r?G=z=[z,g]:(n=G,G=r),G===r&&(G=null),G!==r&&(z=Ut())!==r?(st=w,w=G="INNER JOIN"):(n=w,w=r))))),w}function Zt(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;return w=n,(G=xu())===r?(n=w,w=r):(z=n,(g=ot())!==r&&(Gr=qa())!==r&&(Vr=ot())!==r&&(Qr=xu())!==r?z=g=[g,Gr,Vr,Qr]:(n=z,z=r),z===r?(n=w,w=r):(g=n,(Gr=ot())!==r&&(Vr=qa())!==r&&(Qr=ot())!==r&&(Pt=xu())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r),g===r?(n=w,w=r):(st=w,w=G=(function(Rn,An,Mn){let as={db:null,table:Rn,...Do()};return Mn!==null&&(as.db=Rn,as.schema=An[3],as.table=Mn[3]),as})(G,z,g)))),w===r&&(w=n,(G=xu())!==r&&(z=ot())!==r&&(g=qa())!==r&&(Gr=ot())!==r&&(Vr=Oc())!==r?(st=w,w=G={db:G,table:"*",...Do()}):(n=w,w=r),w===r&&(w=n,(G=xu())===r?(n=w,w=r):(z=n,(g=ot())!==r&&(Gr=qa())!==r&&(Vr=ot())!==r&&(Qr=xu())!==r?z=g=[g,Gr,Vr,Qr]:(n=z,z=r),z===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(Rn,An){let Mn={db:null,table:Rn,...Do()};return An!==null&&(Mn.db=Rn,Mn.table=An[3]),Mn})(G,z))),w===r&&(w=n,(G=ee())!==r&&(st=w,(wn=G).db=null,wn.table=wn.name,G=wn),w=G))),w}function ba(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=ao())!==r){for(z=[],g=n,(Gr=ot())===r?(n=g,g=r):((Vr=Vo())===r&&(Vr=eu()),Vr!==r&&(Qr=ot())!==r&&(Pt=ao())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r));g!==r;)z.push(g),g=n,(Gr=ot())===r?(n=g,g=r):((Vr=Vo())===r&&(Vr=eu()),Vr!==r&&(Qr=ot())!==r&&(Pt=ao())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r));z===r?(n=w,w=r):(st=w,w=G=(function(wn,Rn){let An=Rn.length,Mn=wn;for(let as=0;as<An;++as)Mn=dc(Rn[as][1],Mn,Rn[as][3]);return Mn})(G,z))}else n=w,w=r;return w}function bu(){var w,G;return w=n,Bt()!==r&&ot()!==r&&(G=zo())!==r?(st=w,w=G):(n=w,w=r),w}function Ht(){var w,G;return w=n,(function(){var z=n,g,Gr,Vr;return t.substr(n,5).toLowerCase()==="where"?(g=t.substr(n,5),n+=5):(g=r,or===0&&Kr(Ls)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):z=g=[g,Gr]),z})()!==r&&ot()!==r&&(G=zo())!==r?(st=w,w=G):(n=w,w=r),w}function rt(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=Le())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=Le())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=Le())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z))}else n=w,w=r;return w}function k(){var w,G,z;return w=n,(G=s())!==r&&ot()!==r&&et()!==r&&ot()!==r&&(z=Lr())!==r?(st=w,w=G={name:G,as_window_specification:z}):(n=w,w=r),w}function Lr(){var w,G;return(w=s())===r&&(w=n,Yo()!==r&&ot()!==r?((G=(function(){var z=n,g,Gr,Vr;return(g=Dt())===r&&(g=null),g!==r&&ot()!==r?((Gr=Ln())===r&&(Gr=null),Gr!==r&&ot()!==r?((Vr=(function(){var Qr=n,Pt,wn,Rn,An;return(Pt=Rf())!==r&&ot()!==r?((wn=Or())===r&&(wn=Fr()),wn===r?(n=Qr,Qr=r):(st=Qr,Qr=Pt={type:"rows",expr:wn})):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=Rf())!==r&&ot()!==r&&(wn=hu())!==r&&ot()!==r&&(Rn=Fr())!==r&&ot()!==r&&Vo()!==r&&ot()!==r&&(An=Or())!==r?(st=Qr,Pt=dc(wn,{type:"origin",value:"rows"},{type:"expr_list",value:[Rn,An]}),Qr=Pt):(n=Qr,Qr=r)),Qr})())===r&&(Vr=null),Vr===r?(n=z,z=r):(st=z,z=g={name:null,partitionby:g,orderby:Gr,window_frame_clause:Vr})):(n=z,z=r)):(n=z,z=r),z})())===r&&(G=null),G!==r&&ot()!==r&&Xo()!==r?(st=w,w={window_specification:G||{},parentheses:!0}):(n=w,w=r)):(n=w,w=r)),w}function Or(){var w,G,z,g;return w=n,(G=It())!==r&&ot()!==r?(t.substr(n,9).toLowerCase()==="following"?(z=t.substr(n,9),n+=9):(z=r,or===0&&Kr(ki)),z===r?(n=w,w=r):(st=w,(g=G).value+=" FOLLOWING",w=G=g)):(n=w,w=r),w===r&&(w=dr()),w}function Fr(){var w,G,z,g,Gr;return w=n,(G=It())!==r&&ot()!==r?(t.substr(n,9).toLowerCase()==="preceding"?(z=t.substr(n,9),n+=9):(z=r,or===0&&Kr(Hl)),z===r&&(t.substr(n,9).toLowerCase()==="following"?(z=t.substr(n,9),n+=9):(z=r,or===0&&Kr(ki))),z===r?(n=w,w=r):(st=w,Gr=z,(g=G).value+=" "+Gr.toUpperCase(),w=G=g)):(n=w,w=r),w===r&&(w=dr()),w}function dr(){var w,G,z;return w=n,t.substr(n,7).toLowerCase()==="current"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Eb)),G!==r&&ot()!==r?(t.substr(n,3).toLowerCase()==="row"?(z=t.substr(n,3),n+=3):(z=r,or===0&&Kr($c)),z===r?(n=w,w=r):(st=w,w=G={type:"origin",value:"current row",...Do()})):(n=w,w=r),w}function It(){var w,G;return w=n,t.substr(n,9).toLowerCase()==="unbounded"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(Bb)),G!==r&&(st=w,G={type:"origin",value:G.toUpperCase(),...Do()}),(w=G)===r&&(w=me()),w}function Dt(){var w,G;return w=n,$()!==r&&ot()!==r&&js()!==r&&ot()!==r&&(G=rt())!==r?(st=w,w=G.map(z=>({type:"expr",expr:z}))):(n=w,w=r),w}function Ln(){var w,G;return w=n,qe()!==r&&ot()!==r&&js()!==r&&ot()!==r&&(G=(function(){var z,g,Gr,Vr,Qr,Pt,wn,Rn;if(z=n,(g=Un())!==r){for(Gr=[],Vr=n,(Qr=ot())!==r&&(Pt=qo())!==r&&(wn=ot())!==r&&(Rn=Un())!==r?Vr=Qr=[Qr,Pt,wn,Rn]:(n=Vr,Vr=r);Vr!==r;)Gr.push(Vr),Vr=n,(Qr=ot())!==r&&(Pt=qo())!==r&&(wn=ot())!==r&&(Rn=Un())!==r?Vr=Qr=[Qr,Pt,wn,Rn]:(n=Vr,Vr=r);Gr===r?(n=z,z=r):(st=z,g=La(g,Gr),z=g)}else n=z,z=r;return z})())!==r?(st=w,w=G):(n=w,w=r),w}function Un(){var w,G,z,g,Gr,Vr,Qr;return w=n,(G=ao())!==r&&ot()!==r?((z=tu())===r&&(z=bo()),z===r&&(z=null),z!==r&&ot()!==r?(g=n,t.substr(n,5).toLowerCase()==="nulls"?(Gr=t.substr(n,5),n+=5):(Gr=r,or===0&&Kr(wc)),Gr!==r&&(Vr=ot())!==r?(t.substr(n,5).toLowerCase()==="first"?(Qr=t.substr(n,5),n+=5):(Qr=r,or===0&&Kr(Ll)),Qr===r&&(t.substr(n,4).toLowerCase()==="last"?(Qr=t.substr(n,4),n+=4):(Qr=r,or===0&&Kr(jl))),Qr===r&&(Qr=null),Qr===r?(n=g,g=r):g=Gr=[Gr,Vr,Qr]):(n=g,g=r),g===r&&(g=null),g===r?(n=w,w=r):(st=w,w=G=(function(Pt,wn,Rn){let An={expr:Pt,type:wn};return An.nulls=Rn&&[Rn[0],Rn[2]].filter(Mn=>Mn).join(" "),An})(G,z,g))):(n=w,w=r)):(n=w,w=r),w}function u(){var w;return(w=me())===r&&(w=ee())===r&&(w=bn()),w}function yt(){var w,G,z,g,Gr,Vr,Qr;return w=n,G=n,(z=(function(){var Pt=n,wn,Rn,An;return t.substr(n,5).toLowerCase()==="limit"?(wn=t.substr(n,5),n+=5):(wn=r,or===0&&Kr(ic)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):Pt=wn=[wn,Rn]),Pt})())!==r&&(g=ot())!==r?((Gr=u())===r&&(Gr=Ru()),Gr===r?(n=G,G=r):G=z=[z,g,Gr]):(n=G,G=r),G===r&&(G=null),G!==r&&(z=ot())!==r?(g=n,(Gr=(function(){var Pt=n,wn,Rn,An;return t.substr(n,6).toLowerCase()==="offset"?(wn=t.substr(n,6),n+=6):(wn=r,or===0&&Kr(op)),wn===r?(n=Pt,Pt=r):(Rn=n,or++,An=er(),or--,An===r?Rn=void 0:(n=Rn,Rn=r),Rn===r?(n=Pt,Pt=r):(st=Pt,Pt=wn="OFFSET")),Pt})())!==r&&(Vr=ot())!==r&&(Qr=u())!==r?g=Gr=[Gr,Vr,Qr]:(n=g,g=r),g===r&&(g=null),g===r?(n=w,w=r):(st=w,w=G=(function(Pt,wn){let Rn=[];return Pt&&Rn.push(typeof Pt[2]=="string"?{type:"origin",value:"all"}:Pt[2]),wn&&Rn.push(wn[2]),{seperator:wn&&wn[0]&&wn[0].toLowerCase()||"",value:Rn,...Do()}})(G,g))):(n=w,w=r),w}function Y(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=Q())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=Q())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=Q())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z))}else n=w,w=r;return w}function Q(){var w,G,z,g,Gr,Vr,Qr,Pt;return w=n,G=n,(z=xu())!==r&&(g=ot())!==r&&(Gr=qa())!==r?G=z=[z,g,Gr]:(n=G,G=r),G===r&&(G=null),G!==r&&(z=ot())!==r&&(g=wi())!==r&&(Gr=ot())!==r?(t.charCodeAt(n)===61?(Vr="=",n++):(Vr=r,or===0&&Kr(pa)),Vr!==r&&ot()!==r&&(Qr=ao())!==r?(st=w,w=G=(function(wn,Rn,An){return{column:{expr:Rn},value:An,table:wn&&wn[0]}})(G,g,Qr)):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,G=n,(z=xu())!==r&&(g=ot())!==r&&(Gr=qa())!==r?G=z=[z,g,Gr]:(n=G,G=r),G===r&&(G=null),G!==r&&(z=ot())!==r&&(g=wi())!==r&&(Gr=ot())!==r?(t.charCodeAt(n)===61?(Vr="=",n++):(Vr=r,or===0&&Kr(pa)),Vr!==r&&ot()!==r&&(Qr=Cn())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Pt=Le())!==r&&ot()!==r&&Xo()!==r?(st=w,w=G=(function(wn,Rn,An){return{column:{expr:Rn},value:An,table:wn&&wn[0],keyword:"values"}})(G,g,Pt)):(n=w,w=r)):(n=w,w=r)),w}function Tr(){var w,G,z;return w=n,(G=(function(){var g=n,Gr,Vr,Qr;return t.substr(n,9).toLowerCase()==="returning"?(Gr=t.substr(n,9),n+=9):(Gr=r,or===0&&Kr(od)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="RETURNING")),g})())!==r&&ot()!==r?((z=ln())===r&&(z=Ou()),z===r?(n=w,w=r):(st=w,w=G=(function(g,Gr){return{type:g&&g.toLowerCase()||"returning",columns:Gr==="*"&&[{type:"expr",expr:{type:"column_ref",table:null,column:"*"},as:null,...Do()}]||Gr}})(G,z))):(n=w,w=r),w}function P(){var w,G;return(w=e())===r&&(w=n,(G=qu())!==r&&(st=w,G=G.ast),w=G),w}function hr(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;if(w=n,$()!==r)if(ot()!==r)if((G=Yo())!==r)if(ot()!==r)if((z=s())!==r){for(g=[],Gr=n,(Vr=ot())!==r&&(Qr=qo())!==r&&(Pt=ot())!==r&&(wn=s())!==r?Gr=Vr=[Vr,Qr,Pt,wn]:(n=Gr,Gr=r);Gr!==r;)g.push(Gr),Gr=n,(Vr=ot())!==r&&(Qr=qo())!==r&&(Pt=ot())!==r&&(wn=s())!==r?Gr=Vr=[Vr,Qr,Pt,wn]:(n=Gr,Gr=r);g!==r&&(Gr=ot())!==r&&(Vr=Xo())!==r?(st=w,w=La(z,g)):(n=w,w=r)}else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;return w===r&&(w=n,$()!==r&&ot()!==r&&(G=Pr())!==r?(st=w,w=G):(n=w,w=r)),w}function ht(){var w,G;return w=n,(G=gn())!==r&&(st=w,G="insert"),(w=G)===r&&(w=n,(G=Jn())!==r&&(st=w,G="replace"),w=G),w}function e(){var w,G;return w=n,Cn()!==r&&ot()!==r&&(G=(function(){var z,g,Gr,Vr,Qr,Pt,wn,Rn;if(z=n,(g=Pr())!==r){for(Gr=[],Vr=n,(Qr=ot())!==r&&(Pt=qo())!==r&&(wn=ot())!==r&&(Rn=Pr())!==r?Vr=Qr=[Qr,Pt,wn,Rn]:(n=Vr,Vr=r);Vr!==r;)Gr.push(Vr),Vr=n,(Qr=ot())!==r&&(Pt=qo())!==r&&(wn=ot())!==r&&(Rn=Pr())!==r?Vr=Qr=[Qr,Pt,wn,Rn]:(n=Vr,Vr=r);Gr===r?(n=z,z=r):(st=z,g=La(g,Gr),z=g)}else n=z,z=r;return z})())!==r?(st=w,w={type:"values",values:G}):(n=w,w=r),w}function Pr(){var w,G;return w=n,Yo()!==r&&ot()!==r&&(G=Mr())!==r&&ot()!==r&&Xo()!==r?(st=w,w=G):(n=w,w=r),w}function Mr(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=ao())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ao())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ao())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=(function(wn,Rn){let An={type:"expr_list"};return An.value=La(wn,Rn),An})(G,z))}else n=w,w=r;return w}function kn(){var w,G,z;return w=n,Ai()!==r&&ot()!==r&&(G=ao())!==r&&ot()!==r&&(z=(function(){var g;return(g=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,4).toLowerCase()==="year"?(Vr=t.substr(n,4),n+=4):(Vr=r,or===0&&Kr(kp)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="YEAR")),Gr})())===r&&(g=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,5).toLowerCase()==="month"?(Vr=t.substr(n,5),n+=5):(Vr=r,or===0&&Kr(wp)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="MONTH")),Gr})())===r&&(g=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,4).toLowerCase()==="week"?(Vr=t.substr(n,4),n+=4):(Vr=r,or===0&&Kr(Ff)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="WEEK")),Gr})())===r&&(g=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,3).toLowerCase()==="day"?(Vr=t.substr(n,3),n+=3):(Vr=r,or===0&&Kr(Xb)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="DAY")),Gr})())===r&&(g=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,4).toLowerCase()==="hour"?(Vr=t.substr(n,4),n+=4):(Vr=r,or===0&&Kr(Qv)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="HOUR")),Gr})())===r&&(g=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,6).toLowerCase()==="minute"?(Vr=t.substr(n,6),n+=6):(Vr=r,or===0&&Kr(Cp)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="MINUTE")),Gr})())===r&&(g=(function(){var Gr=n,Vr,Qr,Pt;return t.substr(n,6).toLowerCase()==="second"?(Vr=t.substr(n,6),n+=6):(Vr=r,or===0&&Kr(O0)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="SECOND")),Gr})()),g})())!==r?(st=w,w={type:"interval",expr:G,unit:z.toLowerCase()}):(n=w,w=r),w===r&&(w=n,Ai()!==r&&ot()!==r&&(G=Ws())!==r?(st=w,w=(function(g){return{type:"interval",expr:g,unit:""}})(G)):(n=w,w=r)),w}function Yn(){var w,G,z,g,Gr,Vr,Qr,Pt;return w=n,Nu()!==r&&ot()!==r&&(G=K())!==r&&ot()!==r?((z=Js())===r&&(z=null),z!==r&&ot()!==r&&(g=le())!==r&&ot()!==r?((Gr=Nu())===r&&(Gr=null),Gr===r?(n=w,w=r):(st=w,Qr=G,(Pt=z)&&Qr.push(Pt),w={type:"case",expr:null,args:Qr})):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,Nu()!==r&&ot()!==r&&(G=ao())!==r&&ot()!==r&&(z=K())!==r&&ot()!==r?((g=Js())===r&&(g=null),g!==r&&ot()!==r&&(Gr=le())!==r&&ot()!==r?((Vr=Nu())===r&&(Vr=null),Vr===r?(n=w,w=r):(st=w,w=(function(wn,Rn,An){return An&&Rn.push(An),{type:"case",expr:wn,args:Rn}})(G,z,g))):(n=w,w=r)):(n=w,w=r)),w}function K(){var w,G,z,g,Gr,Vr;if(w=n,(G=kt())!==r)if(ot()!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=kt())!==r?g=Gr=[Gr,Vr]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=kt())!==r?g=Gr=[Gr,Vr]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z,1))}else n=w,w=r;else n=w,w=r;return w}function kt(){var w,G,z;return w=n,cu()!==r&&ot()!==r&&(G=zo())!==r&&ot()!==r&&(function(){var g=n,Gr,Vr,Qr;return t.substr(n,4).toLowerCase()==="then"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(Ti)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):g=Gr=[Gr,Vr]),g})()!==r&&ot()!==r&&(z=ao())!==r?(st=w,w={type:"when",cond:G,result:z}):(n=w,w=r),w}function Js(){var w,G;return w=n,(function(){var z=n,g,Gr,Vr;return t.substr(n,4).toLowerCase()==="else"?(g=t.substr(n,4),n+=4):(g=r,or===0&&Kr(wv)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):z=g=[g,Gr]),z})()!==r&&ot()!==r&&(G=ao())!==r?(st=w,w={type:"else",result:G}):(n=w,w=r),w}function Ve(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=ni())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ni())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ni())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z))}else n=w,w=r;return w}function co(){var w,G;return w=n,(function(){var z=n,g,Gr,Vr;return t.substr(n,3).toLowerCase()==="row"?(g=t.substr(n,3),n+=3):(g=r,or===0&&Kr($c)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):(st=z,z=g="ROW")),z})()!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(G=Ve())!==r&&ot()!==r&&Xo()!==r?(st=w,w={type:"struct",keyword:"row",expr_list:G}):(n=w,w=r),w}function _t(){var w;return(w=(function(){var G,z,g,Gr,Vr,Qr,Pt,wn;if(G=n,(z=no())!==r){for(g=[],Gr=n,(Vr=Xv())!==r&&(Qr=eu())!==r&&(Pt=ot())!==r&&(wn=no())!==r?Gr=Vr=[Vr,Qr,Pt,wn]:(n=Gr,Gr=r);Gr!==r;)g.push(Gr),Gr=n,(Vr=Xv())!==r&&(Qr=eu())!==r&&(Pt=ot())!==r&&(wn=no())!==r?Gr=Vr=[Vr,Qr,Pt,wn]:(n=Gr,Gr=r);g===r?(n=G,G=r):(st=G,z=Jf(z,g),G=z)}else n=G,G=r;return G})())===r&&(w=(function(){var G,z,g,Gr,Vr,Qr;if(G=n,(z=la())!==r){if(g=[],Gr=n,(Vr=ot())!==r&&(Qr=ta())!==r?Gr=Vr=[Vr,Qr]:(n=Gr,Gr=r),Gr!==r)for(;Gr!==r;)g.push(Gr),Gr=n,(Vr=ot())!==r&&(Qr=ta())!==r?Gr=Vr=[Vr,Qr]:(n=Gr,Gr=r);else g=r;g===r?(n=G,G=r):(st=G,z=Ka(z,g[0][1]),G=z)}else n=G,G=r;return G})()),w}function Eo(){var w,G,z,g,Gr,Vr;return w=n,(G=Zo())!==r&&ot()!==r?(t.substr(n,2)==="->"?(z="->",n+=2):(z=r,or===0&&Kr(Hb)),z!==r&&ot()!==r&&(g=_t())!==r?(st=n,(pu(g)?void 0:r)===r?(n=w,w=r):(st=w,w=G=(function(Qr,Pt){return{type:"lambda",args:{value:[Qr]},expr:Pt}})(G,g))):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,(G=Yo())!==r&&ot()!==r&&(z=(function(){var Qr,Pt,wn,Rn,An,Mn,as,cs;if(Qr=n,(Pt=Wu())!==r){for(wn=[],Rn=n,(An=ot())!==r&&(Mn=qo())!==r&&(as=ot())!==r&&(cs=Wu())!==r?Rn=An=[An,Mn,as,cs]:(n=Rn,Rn=r);Rn!==r;)wn.push(Rn),Rn=n,(An=ot())!==r&&(Mn=qo())!==r&&(as=ot())!==r&&(cs=Wu())!==r?Rn=An=[An,Mn,as,cs]:(n=Rn,Rn=r);wn===r?(n=Qr,Qr=r):(st=Qr,Pt=La(Pt,wn),Qr=Pt)}else n=Qr,Qr=r;return Qr})())!==r&&ot()!==r&&(g=Xo())!==r&&ot()!==r?(t.substr(n,2)==="->"?(Gr="->",n+=2):(Gr=r,or===0&&Kr(Hb)),Gr!==r&&ot()!==r&&(Vr=_t())!==r?(st=n,((function(Qr,Pt){return pu(Pt)})(0,Vr)?void 0:r)===r?(n=w,w=r):(st=w,w=G=(function(Qr,Pt){return{type:"lambda",args:{value:Qr,parentheses:!0},expr:Pt}})(z,Vr))):(n=w,w=r)):(n=w,w=r)),w}function ao(){var w;return(w=Eo())===r&&(w=_t())===r&&(w=qu()),w}function zo(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=Ya())!==r){for(z=[],g=n,(Gr=ot())===r?(n=g,g=r):((Vr=Vo())===r&&(Vr=eu())===r&&(Vr=qo()),Vr!==r&&(Qr=ot())!==r&&(Pt=Ya())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r));g!==r;)z.push(g),g=n,(Gr=ot())===r?(n=g,g=r):((Vr=Vo())===r&&(Vr=eu())===r&&(Vr=qo()),Vr!==r&&(Qr=ot())!==r&&(Pt=Ya())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r));z===r?(n=w,w=r):(st=w,w=G=(function(wn,Rn){let An=Rn.length,Mn=wn,as="";for(let cs=0;cs<An;++cs)Rn[cs][1]===","?(as=",",Array.isArray(Mn)||(Mn=[Mn]),Mn.push(Rn[cs][3])):Mn=dc(Rn[cs][1],Mn,Rn[cs][3]);if(as===","){let cs={type:"expr_list"};return cs.value=Mn,cs}return Mn})(G,z))}else n=w,w=r;return w}function no(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=Ke())!==r){for(z=[],g=n,(Gr=Xv())!==r&&(Vr=Vo())!==r&&(Qr=ot())!==r&&(Pt=Ke())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=Xv())!==r&&(Vr=Vo())!==r&&(Qr=ot())!==r&&(Pt=Ke())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=Jf(G,z))}else n=w,w=r;return w}function Ke(){var w,G,z,g,Gr;return(w=yo())===r&&(w=(function(){var Vr=n,Qr,Pt;(Qr=(function(){var An=n,Mn=n,as,cs,_s;(as=Ks())!==r&&(cs=ot())!==r&&(_s=fo())!==r?Mn=as=[as,cs,_s]:(n=Mn,Mn=r),Mn!==r&&(st=An,Mn=(we=Mn)[0]+" "+we[2]);var we;return(An=Mn)===r&&(An=fo()),An})())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Pt=qu())!==r&&ot()!==r&&Xo()!==r?(st=Vr,wn=Qr,(Rn=Pt).parentheses=!0,Qr=Ka(wn,Rn),Vr=Qr):(n=Vr,Vr=r);var wn,Rn;return Vr})())===r&&(w=n,(G=Ks())===r&&(G=n,t.charCodeAt(n)===33?(z="!",n++):(z=r,or===0&&Kr(pf)),z===r?(n=G,G=r):(g=n,or++,t.charCodeAt(n)===61?(Gr="=",n++):(Gr=r,or===0&&Kr(pa)),or--,Gr===r?g=void 0:(n=g,g=r),g===r?(n=G,G=r):G=z=[z,g])),G!==r&&(z=ot())!==r&&(g=Ke())!==r?(st=w,w=G=Ka("NOT",g)):(n=w,w=r)),w}function yo(){var w,G,z,g,Gr;return w=n,(G=Au())!==r&&ot()!==r?((z=(function(){var Vr;return(Vr=(function(){var Qr=n,Pt=[],wn=n,Rn,An,Mn,as;if((Rn=ot())!==r&&(An=lo())!==r&&(Mn=ot())!==r&&(as=Au())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r),wn!==r)for(;wn!==r;)Pt.push(wn),wn=n,(Rn=ot())!==r&&(An=lo())!==r&&(Mn=ot())!==r&&(as=Au())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r);else Pt=r;return Pt!==r&&(st=Qr,Pt={type:"arithmetic",tail:Pt}),Qr=Pt})())===r&&(Vr=(function(){var Qr=n,Pt,wn,Rn;return(Pt=Co())!==r&&ot()!==r&&(wn=Yo())!==r&&ot()!==r&&(Rn=Mr())!==r&&ot()!==r&&Xo()!==r?(st=Qr,Qr=Pt={op:Pt,right:Rn}):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=Co())!==r&&ot()!==r?((wn=ee())===r&&(wn=Ws())===r&&(wn=Ar()),wn===r?(n=Qr,Qr=r):(st=Qr,Pt=(function(An,Mn){return{op:An,right:Mn}})(Pt,wn),Qr=Pt)):(n=Qr,Qr=r)),Qr})())===r&&(Vr=(function(){var Qr=n,Pt,wn,Rn;return(Pt=(function(){var An=n,Mn=n,as,cs,_s;(as=Ks())!==r&&(cs=ot())!==r&&(_s=hu())!==r?Mn=as=[as,cs,_s]:(n=Mn,Mn=r),Mn!==r&&(st=An,Mn=(we=Mn)[0]+" "+we[2]);var we;return(An=Mn)===r&&(An=hu()),An})())!==r&&ot()!==r&&(wn=Au())!==r&&ot()!==r&&Vo()!==r&&ot()!==r&&(Rn=Au())!==r?(st=Qr,Qr=Pt={op:Pt,right:{type:"expr_list",value:[wn,Rn]}}):(n=Qr,Qr=r),Qr})())===r&&(Vr=(function(){var Qr=n,Pt,wn,Rn,An,Mn,as,cs,_s;return(Pt=nu())!==r&&(wn=ot())!==r&&(Rn=Au())!==r?(st=Qr,Qr=Pt={op:"IS",right:Rn}):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=nu())!==r&&(wn=ot())!==r?(Rn=n,(An=Je())!==r&&(Mn=ot())!==r&&(as=br())!==r&&(cs=ot())!==r&&(_s=Zt())!==r?Rn=An=[An,Mn,as,cs,_s]:(n=Rn,Rn=r),Rn===r?(n=Qr,Qr=r):(st=Qr,Pt=(function(we){let{db:Pe,table:jr}=we.pop(),oo=jr==="*"?"*":`"${jr}"`;return{op:"IS",right:{type:"default",value:"DISTINCT FROM "+(Pe?`"${Pe}".${oo}`:oo)}}})(Rn),Qr=Pt)):(n=Qr,Qr=r),Qr===r&&(Qr=n,Pt=n,(wn=nu())!==r&&(Rn=ot())!==r&&(An=Ks())!==r?Pt=wn=[wn,Rn,An]:(n=Pt,Pt=r),Pt!==r&&(wn=ot())!==r&&(Rn=Au())!==r?(st=Qr,Pt=(function(we){return{op:"IS NOT",right:we}})(Rn),Qr=Pt):(n=Qr,Qr=r))),Qr})())===r&&(Vr=(function(){var Qr=n,Pt,wn,Rn;(Pt=(function(){var cs=n,_s=n,we,Pe,jr;(we=Ks())!==r&&(Pe=ot())!==r?((jr=xe())===r&&(jr=qs()),jr===r?(n=_s,_s=r):_s=we=[we,Pe,jr]):(n=_s,_s=r),_s!==r&&(st=cs,_s=(oo=_s)[0]+" "+oo[2]);var oo;return(cs=_s)===r&&(cs=xe())===r&&(cs=qs())===r&&(cs=n,t.substr(n,7).toLowerCase()==="similar"?(_s=t.substr(n,7),n+=7):(_s=r,or===0&&Kr(Ab)),_s!==r&&(we=ot())!==r&&(Pe=Na())!==r?(st=cs,cs=_s="SIMILAR TO"):(n=cs,cs=r),cs===r&&(cs=n,(_s=Ks())!==r&&(we=ot())!==r?(t.substr(n,7).toLowerCase()==="similar"?(Pe=t.substr(n,7),n+=7):(Pe=r,or===0&&Kr(Ab)),Pe!==r&&(jr=ot())!==r&&Na()!==r?(st=cs,cs=_s="NOT SIMILAR TO"):(n=cs,cs=r)):(n=cs,cs=r))),cs})())!==r&&ot()!==r?((wn=cn())===r&&(wn=yo()),wn!==r&&ot()!==r?((Rn=(function(){var cs=n,_s,we;return t.substr(n,6).toLowerCase()==="escape"?(_s=t.substr(n,6),n+=6):(_s=r,or===0&&Kr(i0)),_s!==r&&ot()!==r&&(we=Ws())!==r?(st=cs,_s=(function(Pe,jr){return{type:"ESCAPE",value:jr}})(0,we),cs=_s):(n=cs,cs=r),cs})())===r&&(Rn=null),Rn===r?(n=Qr,Qr=r):(st=Qr,An=Pt,Mn=wn,(as=Rn)&&(Mn.escape=as),Qr=Pt={op:An,right:Mn})):(n=Qr,Qr=r)):(n=Qr,Qr=r);var An,Mn,as;return Qr})())===r&&(Vr=(function(){var Qr=n,Pt,wn;return(Pt=(function(){var Rn;return t.substr(n,3)==="!~*"?(Rn="!~*",n+=3):(Rn=r,or===0&&Kr(Mf)),Rn===r&&(t.substr(n,2)==="~*"?(Rn="~*",n+=2):(Rn=r,or===0&&Kr(Wb)),Rn===r&&(t.charCodeAt(n)===126?(Rn="~",n++):(Rn=r,or===0&&Kr(Df)),Rn===r&&(t.substr(n,2)==="!~"?(Rn="!~",n+=2):(Rn=r,or===0&&Kr(mb))))),Rn})())!==r&&ot()!==r?((wn=cn())===r&&(wn=yo()),wn===r?(n=Qr,Qr=r):(st=Qr,Qr=Pt={op:Pt,right:wn})):(n=Qr,Qr=r),Qr})()),Vr})())===r&&(z=null),z===r?(n=w,w=r):(st=w,g=G,w=G=(Gr=z)===null?g:Gr.type==="arithmetic"?Db(g,Gr.tail):dc(Gr.op,g,Gr.right))):(n=w,w=r),w===r&&(w=Ws())===r&&(w=Le()),w}function lo(){var w;return t.substr(n,2)===">="?(w=">=",n+=2):(w=r,or===0&&Kr(Yb)),w===r&&(t.charCodeAt(n)===62?(w=">",n++):(w=r,or===0&&Kr(av)),w===r&&(t.substr(n,2)==="<="?(w="<=",n+=2):(w=r,or===0&&Kr(iv)),w===r&&(t.substr(n,2)==="<>"?(w="<>",n+=2):(w=r,or===0&&Kr(a0)),w===r&&(t.charCodeAt(n)===60?(w="<",n++):(w=r,or===0&&Kr(_l)),w===r&&(t.charCodeAt(n)===61?(w="=",n++):(w=r,or===0&&Kr(pa)),w===r&&(t.substr(n,2)==="!="?(w="!=",n+=2):(w=r,or===0&&Kr(Yl)))))))),w}function Co(){var w,G,z,g,Gr,Vr;return w=n,G=n,(z=Ks())!==r&&(g=ot())!==r&&(Gr=Go())!==r?G=z=[z,g,Gr]:(n=G,G=r),G!==r&&(st=w,G=(Vr=G)[0]+" "+Vr[2]),(w=G)===r&&(w=Go()),w}function Au(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=da())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=la())!==r&&(Qr=ot())!==r&&(Pt=da())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=la())!==r&&(Qr=ot())!==r&&(Pt=da())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=(function(wn,Rn){if(Rn&&Rn.length&&wn.type==="column_ref"&&wn.column==="*")throw Error(JSON.stringify({message:"args could not be star column in additive expr",...Do()}));return Db(wn,Rn)})(G,z))}else n=w,w=r;return w}function la(){var w;return t.charCodeAt(n)===43?(w="+",n++):(w=r,or===0&&Kr(ft)),w===r&&(t.charCodeAt(n)===45?(w="-",n++):(w=r,or===0&&Kr(tn))),w}function da(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=li())!==r){for(z=[],g=n,(Gr=ot())===r?(n=g,g=r):((Vr=Ia())===r&&(Vr=Xu()),Vr!==r&&(Qr=ot())!==r&&(Pt=li())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r));g!==r;)z.push(g),g=n,(Gr=ot())===r?(n=g,g=r):((Vr=Ia())===r&&(Vr=Xu()),Vr!==r&&(Qr=ot())!==r&&(Pt=li())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r));z===r?(n=w,w=r):(st=w,w=G=Db(G,z))}else n=w,w=r;return w}function Ia(){var w;return t.charCodeAt(n)===42?(w="*",n++):(w=r,or===0&&Kr(_n)),w===r&&(t.charCodeAt(n)===47?(w="/",n++):(w=r,or===0&&Kr(En)),w===r&&(t.charCodeAt(n)===37?(w="%",n++):(w=r,or===0&&Kr(Os)),w===r&&(t.substr(n,2)==="||"?(w="||",n+=2):(w=r,or===0&&Kr(gs))))),w}function Wt(){var w,G,z;return w=n,(G=Le())!==r&&ot()!==r?((z=Di())===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(g,Gr){return Gr&&(g.array_index=Gr),g})(G,z))):(n=w,w=r),w}function ta(){var w,G,z,g,Gr,Vr;return(w=(function(){var Qr=n,Pt,wn,Rn,An,Mn,as,cs,_s;return(Pt=vu())===r&&(Pt=Ee()),Pt!==r&&ot()!==r&&(wn=Yo())!==r&&ot()!==r&&(Rn=ao())!==r&&ot()!==r&&(An=et())!==r&&ot()!==r&&(Mn=ro())!==r&&ot()!==r&&(as=Xo())!==r?(st=Qr,Pt=(function(we,Pe,jr){return{type:"cast",keyword:we.toLowerCase(),expr:Pe,symbol:"as",target:[jr]}})(Pt,Rn,Mn),Qr=Pt):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=vu())===r&&(Pt=Ee()),Pt!==r&&ot()!==r&&(wn=Yo())!==r&&ot()!==r&&(Rn=ao())!==r&&ot()!==r&&(An=et())!==r&&ot()!==r&&(Mn=vc())!==r&&ot()!==r&&(as=Yo())!==r&&ot()!==r&&(cs=Xe())!==r&&ot()!==r&&Xo()!==r&&ot()!==r&&(_s=Xo())!==r?(st=Qr,Pt=(function(we,Pe,jr){return{type:"cast",keyword:we.toLowerCase(),expr:Pe,symbol:"as",target:[{dataType:"DECIMAL("+jr+")"}]}})(Pt,Rn,cs),Qr=Pt):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=vu())===r&&(Pt=Ee()),Pt!==r&&ot()!==r&&(wn=Yo())!==r&&ot()!==r&&(Rn=ao())!==r&&ot()!==r&&(An=et())!==r&&ot()!==r&&(Mn=vc())!==r&&ot()!==r&&(as=Yo())!==r&&ot()!==r&&(cs=Xe())!==r&&ot()!==r&&qo()!==r&&ot()!==r&&(_s=Xe())!==r&&ot()!==r&&Xo()!==r&&ot()!==r&&Xo()!==r?(st=Qr,Pt=(function(we,Pe,jr,oo){return{type:"cast",keyword:we.toLowerCase(),expr:Pe,symbol:"as",target:[{dataType:"DECIMAL("+jr+", "+oo+")"}]}})(Pt,Rn,cs,_s),Qr=Pt):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=vu())===r&&(Pt=Ee()),Pt!==r&&ot()!==r&&(wn=Yo())!==r&&ot()!==r&&(Rn=ao())!==r&&ot()!==r&&(An=et())!==r&&ot()!==r&&(Mn=(function(){var we;return(we=(function(){var Pe=n,jr,oo,Bo;return t.substr(n,6).toLowerCase()==="signed"?(jr=t.substr(n,6),n+=6):(jr=r,or===0&&Kr(h)),jr===r?(n=Pe,Pe=r):(oo=n,or++,Bo=er(),or--,Bo===r?oo=void 0:(n=oo,oo=r),oo===r?(n=Pe,Pe=r):(st=Pe,Pe=jr="SIGNED")),Pe})())===r&&(we=Ev()),we})())!==r&&ot()!==r?((as=ad())===r&&(as=null),as!==r&&ot()!==r&&(cs=Xo())!==r?(st=Qr,Pt=(function(we,Pe,jr,oo){return{type:"cast",keyword:we.toLowerCase(),expr:Pe,symbol:"as",target:[{dataType:jr+(oo?" "+oo:"")}]}})(Pt,Rn,Mn,as),Qr=Pt):(n=Qr,Qr=r)):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=Yo())!==r&&ot()!==r?((wn=kn())===r&&(wn=Ar())===r&&(wn=rs())===r&&(wn=vs())===r&&(wn=Yn())===r&&(wn=cn())===r&&(wn=Wt())===r&&(wn=bn()),wn!==r&&ot()!==r&&(Rn=Xo())!==r&&ot()!==r?((An=xt())===r&&(An=null),An===r?(n=Qr,Qr=r):(st=Qr,Pt=(function(we,Pe){return we.parentheses=!0,Pe?{type:"cast",keyword:"cast",expr:we,...Pe}:we})(wn,An),Qr=Pt)):(n=Qr,Qr=r)):(n=Qr,Qr=r),Qr===r&&(Qr=n,(Pt=kn())===r&&(Pt=Ar())===r&&(Pt=rs())===r&&(Pt=vs())===r&&(Pt=Yn())===r&&(Pt=cn())===r&&(Pt=Wt())===r&&(Pt=bn()),Pt!==r&&ot()!==r?((wn=xt())===r&&(wn=null),wn===r?(n=Qr,Qr=r):(st=Qr,Pt=(function(we,Pe){return Pe?{type:"cast",keyword:"cast",expr:we,...Pe}:we})(Pt,wn),Qr=Pt)):(n=Qr,Qr=r)))))),Qr})())===r&&(w=co())===r&&(w=n,Yo()!==r&&(G=ot())!==r&&(z=zo())!==r&&(g=ot())!==r&&(Gr=Xo())!==r?(st=w,(Vr=z).parentheses=!0,w=Vr):(n=w,w=r),w===r&&(w=ee())===r&&(w=n,ot()===r?(n=w,w=r):(t.charCodeAt(n)===36?(G="$",n++):(G=r,or===0&&Kr(Ys)),G===r?(n=w,w=r):(t.charCodeAt(n)===60?(z="<",n++):(z=r,or===0&&Kr(_l)),z!==r&&(g=me())!==r?(t.charCodeAt(n)===62?(Gr=">",n++):(Gr=r,or===0&&Kr(av)),Gr===r?(n=w,w=r):(st=w,w={type:"origin",value:`$<${g.value}>`})):(n=w,w=r))),w===r&&(w=n,ot()===r?(n=w,w=r):(t.charCodeAt(n)===63?(G="?",n++):(G=r,or===0&&Kr(Te)),G===r?(n=w,w=r):(st=w,w={type:"origin",value:G}))))),w}function li(){var w,G,z,g,Gr;return(w=(function(){var Vr,Qr,Pt,wn,Rn,An,Mn,as;if(Vr=n,(Qr=ea())!==r)if(ot()!==r){for(Pt=[],wn=n,(Rn=ot())===r?(n=wn,wn=r):(t.substr(n,2)==="?|"?(An="?|",n+=2):(An=r,or===0&&Kr(ye)),An===r&&(t.substr(n,2)==="?&"?(An="?&",n+=2):(An=r,or===0&&Kr(Be)),An===r&&(t.charCodeAt(n)===63?(An="?",n++):(An=r,or===0&&Kr(Te)),An===r&&(t.substr(n,2)==="#-"?(An="#-",n+=2):(An=r,or===0&&Kr(io)),An===r&&(t.substr(n,3)==="#>>"?(An="#>>",n+=3):(An=r,or===0&&Kr(Ro)),An===r&&(t.substr(n,2)==="#>"?(An="#>",n+=2):(An=r,or===0&&Kr(So)),An===r&&(An=Nf())===r&&(An=va())===r&&(t.substr(n,2)==="@>"?(An="@>",n+=2):(An=r,or===0&&Kr(uu)),An===r&&(t.substr(n,2)==="<@"?(An="<@",n+=2):(An=r,or===0&&Kr(ko))))))))),An!==r&&(Mn=ot())!==r&&(as=ea())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r));wn!==r;)Pt.push(wn),wn=n,(Rn=ot())===r?(n=wn,wn=r):(t.substr(n,2)==="?|"?(An="?|",n+=2):(An=r,or===0&&Kr(ye)),An===r&&(t.substr(n,2)==="?&"?(An="?&",n+=2):(An=r,or===0&&Kr(Be)),An===r&&(t.charCodeAt(n)===63?(An="?",n++):(An=r,or===0&&Kr(Te)),An===r&&(t.substr(n,2)==="#-"?(An="#-",n+=2):(An=r,or===0&&Kr(io)),An===r&&(t.substr(n,3)==="#>>"?(An="#>>",n+=3):(An=r,or===0&&Kr(Ro)),An===r&&(t.substr(n,2)==="#>"?(An="#>",n+=2):(An=r,or===0&&Kr(So)),An===r&&(An=Nf())===r&&(An=va())===r&&(t.substr(n,2)==="@>"?(An="@>",n+=2):(An=r,or===0&&Kr(uu)),An===r&&(t.substr(n,2)==="<@"?(An="<@",n+=2):(An=r,or===0&&Kr(ko))))))))),An!==r&&(Mn=ot())!==r&&(as=ea())!==r?wn=Rn=[Rn,An,Mn,as]:(n=wn,wn=r));Pt===r?(n=Vr,Vr=r):(st=Vr,cs=Qr,Qr=(_s=Pt)&&_s.length!==0?Db(cs,_s):cs,Vr=Qr)}else n=Vr,Vr=r;else n=Vr,Vr=r;var cs,_s;return Vr})())===r&&(w=n,(G=(function(){var Vr;return t.charCodeAt(n)===33?(Vr="!",n++):(Vr=r,or===0&&Kr(pf)),Vr===r&&(t.charCodeAt(n)===45?(Vr="-",n++):(Vr=r,or===0&&Kr(tn)),Vr===r&&(t.charCodeAt(n)===43?(Vr="+",n++):(Vr=r,or===0&&Kr(ft)),Vr===r&&(t.charCodeAt(n)===126?(Vr="~",n++):(Vr=r,or===0&&Kr(Df))))),Vr})())===r?(n=w,w=r):(z=n,(g=ot())!==r&&(Gr=li())!==r?z=g=[g,Gr]:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G=Ka(G,z[1])))),w}function ea(){var w,G,z,g,Gr;return w=n,(G=ta())!==r&&ot()!==r?((z=Di())===r&&(z=null),z===r?(n=w,w=r):(st=w,g=G,(Gr=z)&&(g.array_index=Gr),w=G=g)):(n=w,w=r),w}function Ml(){var w,G,z,g,Gr,Vr;if(w=n,t.substr(n,1).toLowerCase()==="e"?(G=t.charAt(n),n++):(G=r,or===0&&Kr(yu)),G!==r)if(t.charCodeAt(n)===39?(z="'",n++):(z=r,or===0&&Kr(Fa)),z!==r)if(ot()!==r){for(g=[],Gr=ne();Gr!==r;)g.push(Gr),Gr=ne();g!==r&&(Gr=ot())!==r?(t.charCodeAt(n)===39?(Vr="'",n++):(Vr=r,or===0&&Kr(Fa)),Vr===r?(n=w,w=r):(st=w,w=G={type:"default",value:`E'${g.join("")}'`})):(n=w,w=r)}else n=w,w=r;else n=w,w=r;else n=w,w=r;return w}function Le(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn;if((w=Ml())===r&&(w=n,G=n,(z=xu())!==r&&(g=ot())!==r&&(Gr=qa())!==r?G=z=[z,g,Gr]:(n=G,G=r),G===r&&(G=null),G!==r&&(z=ot())!==r&&(g=Oc())!==r?(st=w,w=G=(function(as){let cs=as&&as[0]||null;return ra.add(`select::${cs}::(.*)`),{type:"column_ref",table:cs,column:"*",...Do()}})(G)):(n=w,w=r),w===r)){if(w=n,(G=xu())!==r)if(z=n,(g=ot())!==r&&(Gr=qa())!==r&&(Vr=ot())!==r&&(Qr=xu())!==r?z=g=[g,Gr,Vr,Qr]:(n=z,z=r),z!==r){if(g=[],Gr=n,(Vr=ot())!==r&&(Qr=qa())!==r&&(Pt=ot())!==r&&(wn=j())!==r?Gr=Vr=[Vr,Qr,Pt,wn]:(n=Gr,Gr=r),Gr!==r)for(;Gr!==r;)g.push(Gr),Gr=n,(Vr=ot())!==r&&(Qr=qa())!==r&&(Pt=ot())!==r&&(wn=j())!==r?Gr=Vr=[Vr,Qr,Pt,wn]:(n=Gr,Gr=r);else g=r;g===r?(n=w,w=r):(Gr=n,(Vr=ot())!==r&&(Qr=qc())!==r?Gr=Vr=[Vr,Qr]:(n=Gr,Gr=r),Gr===r&&(Gr=null),Gr===r?(n=w,w=r):(st=w,w=G=(function(as,cs,_s,we){return _s.length===1?(ra.add(`select::${as}.${cs[3]}::${_s[0][3].value}`),{type:"column_ref",schema:as,table:cs[3],column:_s[0][3],collate:we&&we[1]}):{type:"column_ref",column:{expr:Db(dc(".",as,cs[3]),_s)},collate:we&&we[1]}})(G,z,g,Gr)))}else n=w,w=r;else n=w,w=r;w===r&&(w=n,(G=xu())!==r&&(z=ot())!==r&&(g=qa())!==r&&(Gr=ot())!==r&&(Vr=j())!==r?(Qr=n,(Pt=ot())!==r&&(wn=qc())!==r?Qr=Pt=[Pt,wn]:(n=Qr,Qr=r),Qr===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,Rn=G,An=Vr,Mn=Qr,ra.add(`select::${Rn}::${An.value}`),w=G={type:"column_ref",table:Rn,column:{expr:An},collate:Mn&&Mn[1],...Do()})):(n=w,w=r),w===r&&(w=n,(G=j())===r?(n=w,w=r):(z=n,or++,g=Yo(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(g=n,(Gr=ot())!==r&&(Vr=qc())!==r?g=Gr=[Gr,Vr]:(n=g,g=r),g===r&&(g=null),g===r?(n=w,w=r):(st=w,w=G=(function(as,cs){return ra.add("select::null::"+as.value),{type:"column_ref",table:null,column:{expr:as},collate:cs&&cs[1],...Do()}})(G,g))))))}return w}function rl(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=j())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=j())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=j())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z))}else n=w,w=r;return w}function xu(){var w,G;return w=n,(G=s())===r?(n=w,w=r):(st=n,(au(G)?r:void 0)===r?(n=w,w=r):(st=w,w=G=G)),w===r&&(w=n,(G=tl())!==r&&(st=w,G=G),w=G),w}function si(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;return w=n,(G=s())===r?(n=w,w=r):(st=n,((function(Rn){return wu[Rn.toUpperCase()]===!0})(G)?r:void 0)===r?(n=w,w=r):(z=n,(g=ot())!==r&&(Gr=Yo())!==r&&(Vr=ot())!==r&&(Qr=rl())!==r&&(Pt=ot())!==r&&(wn=Xo())!==r?z=g=[g,Gr,Vr,Qr,Pt,wn]:(n=z,z=r),z===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(Rn,An){return An?`${Rn}(${An[3].map(Mn=>Mn.value).join(", ")})`:Rn})(G,z)))),w===r&&(w=n,(G=tl())!==r&&(st=w,G=G),w=G),w}function Ni(){var w;return(w=Dl())===r&&(w=$a())===r&&(w=bc()),w}function tl(){var w,G;return w=n,(G=Dl())===r&&(G=$a())===r&&(G=bc()),G!==r&&(st=w,G=G.value),w=G}function Dl(){var w,G,z,g;if(w=n,t.charCodeAt(n)===34?(G='"',n++):(G=r,or===0&&Kr(Iu)),G!==r){if(z=[],mu.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(Ju)),g!==r)for(;g!==r;)z.push(g),mu.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(Ju));else z=r;z===r?(n=w,w=r):(t.charCodeAt(n)===34?(g='"',n++):(g=r,or===0&&Kr(Iu)),g===r?(n=w,w=r):(st=w,w=G={type:"double_quote_string",value:z.join("")}))}else n=w,w=r;return w}function $a(){var w,G,z,g;if(w=n,t.charCodeAt(n)===39?(G="'",n++):(G=r,or===0&&Kr(Fa)),G!==r){if(z=[],ua.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(Sa)),g!==r)for(;g!==r;)z.push(g),ua.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(Sa));else z=r;z===r?(n=w,w=r):(t.charCodeAt(n)===39?(g="'",n++):(g=r,or===0&&Kr(Fa)),g===r?(n=w,w=r):(st=w,w=G={type:"single_quote_string",value:z.join("")}))}else n=w,w=r;return w}function bc(){var w,G,z,g;if(w=n,t.charCodeAt(n)===96?(G="`",n++):(G=r,or===0&&Kr(ma)),G!==r){if(z=[],Bi.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(sa)),g!==r)for(;g!==r;)z.push(g),Bi.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(sa));else z=r;z===r?(n=w,w=r):(t.charCodeAt(n)===96?(g="`",n++):(g=r,or===0&&Kr(ma)),g===r?(n=w,w=r):(st=w,w=G={type:"backticks_quote_string",value:z.join("")}))}else n=w,w=r;return w}function Wu(){var w,G;return w=n,(G=s())!==r&&(st=w,G=di(G)),(w=G)===r&&(w=Ni()),w}function Zo(){var w,G;return w=n,(G=s())===r?(n=w,w=r):(st=n,(au(G)?r:void 0)===r?(n=w,w=r):(st=w,w=G=(function(z){return{type:"default",value:z}})(G))),w===r&&(w=Ni()),w}function wi(){var w,G;return w=n,(G=Ir())!==r&&(st=w,G=di(G)),(w=G)===r&&(w=Ni()),w}function j(){var w,G;return w=n,(G=Ir())===r?(n=w,w=r):(st=n,(au(G)?r:void 0)===r?(n=w,w=r):(st=w,w=G=(function(z){return{type:"default",value:z}})(G))),w===r&&(w=Ni()),w}function ur(){var w,G;return w=n,(G=Ir())===r?(n=w,w=r):(st=n,(au(G)?r:void 0)===r?(n=w,w=r):(st=w,w=G=G)),w===r&&(w=tl()),w}function Ir(){var w,G,z,g;if(w=n,(G=er())!==r){for(z=[],g=mt();g!==r;)z.push(g),g=mt();z===r?(n=w,w=r):(st=w,w=G+=z.join(""))}else n=w,w=r;return w}function s(){var w,G,z,g;if(w=n,(G=er())!==r){for(z=[],g=Lt();g!==r;)z.push(g),g=Lt();z===r?(n=w,w=r):(st=w,w=G+=z.join(""))}else n=w,w=r;return w}function er(){var w;return Hi.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(S0)),w}function Lt(){var w;return l0.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(Ov)),w}function mt(){var w;return lv.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(fi)),w}function bn(){var w,G,z,g;return w=n,G=n,t.charCodeAt(n)===58?(z=":",n++):(z=r,or===0&&Kr(Wl)),z!==r&&(g=s())!==r?G=z=[z,g]:(n=G,G=r),G!==r&&(st=w,G={type:"param",value:G[1]}),w=G}function ir(){var w,G,z;return w=n,Bt()!==r&&ot()!==r&&ct()!==r&&ot()!==r&&(G=tc())!==r&&ot()!==r&&Yo()!==r&&ot()!==r?((z=Mr())===r&&(z=null),z!==r&&ot()!==r&&Xo()!==r?(st=w,w={type:"on update",keyword:G,parentheses:!0,expr:z}):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,Bt()!==r&&ot()!==r&&ct()!==r&&ot()!==r&&(G=tc())!==r?(st=w,w=(function(g){return{type:"on update",keyword:g}})(G)):(n=w,w=r)),w}function Zr(){var w,G,z,g,Gr;return w=n,t.substr(n,4).toLowerCase()==="over"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(ec)),G!==r&&ot()!==r&&(z=Lr())!==r?(st=w,w=G={type:"window",as_window_specification:z}):(n=w,w=r),w===r&&(w=n,t.substr(n,4).toLowerCase()==="over"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(ec)),G!==r&&ot()!==r&&(z=Yo())!==r&&ot()!==r?((g=Dt())===r&&(g=null),g!==r&&ot()!==r?((Gr=Ln())===r&&(Gr=null),Gr!==r&&ot()!==r&&Xo()!==r?(st=w,w=G={partitionby:g,orderby:Gr}):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w===r&&(w=ir())),w}function rs(){var w,G,z,g,Gr;return w=n,(G=(function(){var Vr=n,Qr,Pt,wn,Rn,An,Mn,as,cs;return(Qr=Bu())===r&&(Qr=(function(){var _s=n,we,Pe,jr;return t.substr(n,12).toLowerCase()==="group_concat"?(we=t.substr(n,12),n+=12):(we=r,or===0&&Kr(xl)),we===r?(n=_s,_s=r):(Pe=n,or++,jr=er(),or--,jr===r?Pe=void 0:(n=Pe,Pe=r),Pe===r?(n=_s,_s=r):(st=_s,_s=we="GROUP_CONCAT")),_s})()),Qr!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Pt=(function(){var _s=n,we;return(we=(function(){var Pe=n,jr;return t.charCodeAt(n)===42?(jr="*",n++):(jr=r,or===0&&Kr(_n)),jr!==r&&(st=Pe,jr={type:"star",value:"*"}),Pe=jr})())!==r&&(st=_s,we={expr:we}),(_s=we)===r&&(_s=De()),_s})())!==r&&ot()!==r&&(wn=Xo())!==r&&ot()!==r?((Rn=Zr())===r&&(Rn=null),Rn===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(_s,we,Pe){return{type:"aggr_func",name:_s,args:we,over:Pe}})(Qr,Pt,Rn),Vr=Qr)):(n=Vr,Vr=r),Vr===r&&(Vr=n,(Qr=Bu())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Pt=Xo())!==r&&ot()!==r?((wn=Zr())===r&&(wn=null),wn===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(_s,we){return{type:"aggr_func",name:_s,args:{expr:{type:"star",value:""}},over:we}})(Qr,wn),Vr=Qr)):(n=Vr,Vr=r),Vr===r&&(Vr=n,t.substr(n,15).toLowerCase()==="percentile_cont"?(Qr=t.substr(n,15),n+=15):(Qr=r,or===0&&Kr(b0)),Qr===r&&(t.substr(n,15).toLowerCase()==="percentile_disc"?(Qr=t.substr(n,15),n+=15):(Qr=r,or===0&&Kr(Pf))),Qr!==r&&ot()!==r&&Yo()!==r&&ot()!==r?((Pt=me())===r&&(Pt=mn()),Pt!==r&&ot()!==r&&(wn=Xo())!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="within"?(Rn=t.substr(n,6),n+=6):(Rn=r,or===0&&Kr(Sp)),Rn!==r&&ot()!==r&&Cs()!==r&&ot()!==r&&(An=Yo())!==r&&ot()!==r&&(Mn=Ln())!==r&&ot()!==r&&(as=Xo())!==r&&ot()!==r?((cs=Zr())===r&&(cs=null),cs===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(_s,we,Pe,jr){return{type:"aggr_func",name:_s.toUpperCase(),args:{expr:we},within_group_orderby:Pe,over:jr}})(Qr,Pt,Mn,cs),Vr=Qr)):(n=Vr,Vr=r)):(n=Vr,Vr=r)):(n=Vr,Vr=r),Vr===r&&(Vr=n,t.substr(n,4).toLowerCase()==="mode"?(Qr=t.substr(n,4),n+=4):(Qr=r,or===0&&Kr(kv)),Qr!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Pt=Xo())!==r&&ot()!==r?(t.substr(n,6).toLowerCase()==="within"?(wn=t.substr(n,6),n+=6):(wn=r,or===0&&Kr(Sp)),wn!==r&&ot()!==r&&(Rn=Cs())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(An=Ln())!==r&&ot()!==r&&(Mn=Xo())!==r&&ot()!==r?((as=Zr())===r&&(as=null),as===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(_s,we,Pe){return{type:"aggr_func",name:_s.toUpperCase(),args:{expr:{}},within_group_orderby:we,over:Pe}})(Qr,An,as),Vr=Qr)):(n=Vr,Vr=r)):(n=Vr,Vr=r)))),Vr})())===r&&(G=(function(){var Vr=n,Qr,Pt,wn;return(Qr=(function(){var Rn;return(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,3).toLowerCase()==="sum"?(Mn=t.substr(n,3),n+=3):(Mn=r,or===0&&Kr($s)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="SUM")),An})())===r&&(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,3).toLowerCase()==="max"?(Mn=t.substr(n,3),n+=3):(Mn=r,or===0&&Kr(nb)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="MAX")),An})())===r&&(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,3).toLowerCase()==="min"?(Mn=t.substr(n,3),n+=3):(Mn=r,or===0&&Kr(zt)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="MIN")),An})())===r&&(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,3).toLowerCase()==="avg"?(Mn=t.substr(n,3),n+=3):(Mn=r,or===0&&Kr(ja)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="AVG")),An})()),Rn})())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Pt=Au())!==r&&ot()!==r&&Xo()!==r&&ot()!==r?((wn=Zr())===r&&(wn=null),wn===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(Rn,An,Mn){return{type:"aggr_func",name:Rn,args:{expr:An},over:Mn,...Do()}})(Qr,Pt,wn),Vr=Qr)):(n=Vr,Vr=r),Vr})())===r&&(G=(function(){var Vr=n,Qr=n,Pt,wn,Rn,An;return(Pt=xu())!==r&&(wn=ot())!==r&&(Rn=qa())!==r?Qr=Pt=[Pt,wn,Rn]:(n=Qr,Qr=r),Qr===r&&(Qr=null),Qr!==r&&(Pt=ot())!==r?((wn=(function(){var Mn=n,as,cs,_s;return t.substr(n,9).toLowerCase()==="array_agg"?(as=t.substr(n,9),n+=9):(as=r,or===0&&Kr(I)),as===r?(n=Mn,Mn=r):(cs=n,or++,_s=er(),or--,_s===r?cs=void 0:(n=cs,cs=r),cs===r?(n=Mn,Mn=r):(st=Mn,Mn=as="ARRAY_AGG")),Mn})())===r&&(wn=(function(){var Mn=n,as,cs,_s;return t.substr(n,10).toLowerCase()==="string_agg"?(as=t.substr(n,10),n+=10):(as=r,or===0&&Kr(us)),as===r?(n=Mn,Mn=r):(cs=n,or++,_s=er(),or--,_s===r?cs=void 0:(n=cs,cs=r),cs===r?(n=Mn,Mn=r):(st=Mn,Mn=as="STRING_AGG")),Mn})()),wn!==r&&(Rn=ot())!==r&&Yo()!==r&&ot()!==r&&(An=De())!==r&&ot()!==r&&Xo()!==r?(st=Vr,Qr=(function(Mn,as,cs){return{type:"aggr_func",name:Mn?`${Mn[0]}.${as}`:as,args:cs}})(Qr,wn,An),Vr=Qr):(n=Vr,Vr=r)):(n=Vr,Vr=r),Vr})()),G!==r&&ot()!==r?((z=(function(){var Vr,Qr,Pt;return Vr=n,t.substr(n,6).toLowerCase()==="filter"?(Qr=t.substr(n,6),n+=6):(Qr=r,or===0&&Kr(Fc)),Qr!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Pt=Ht())!==r&&ot()!==r&&Xo()!==r?(st=Vr,Vr=Qr={keyword:"filter",parentheses:!0,where:Pt}):(n=Vr,Vr=r),Vr})())===r&&(z=null),z===r?(n=w,w=r):(st=w,g=G,(Gr=z)&&(g.filter=Gr),w=G=g)):(n=w,w=r),w}function vs(){var w;return(w=(function(){var G=n,z,g;return(z=(function(){var Gr;return t.substr(n,10).toLowerCase()==="row_number"?(Gr=t.substr(n,10),n+=10):(Gr=r,or===0&&Kr(Uv)),Gr===r&&(t.substr(n,10).toLowerCase()==="dense_rank"?(Gr=t.substr(n,10),n+=10):(Gr=r,or===0&&Kr($f)),Gr===r&&(t.substr(n,4).toLowerCase()==="rank"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(Tb)))),Gr})())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&Xo()!==r&&ot()!==r&&(g=Zr())!==r?(st=G,z=(function(Gr,Vr){return{type:"window_func",name:Gr,over:Vr}})(z,g),G=z):(n=G,G=r),G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr;return(z=(function(){var Qr;return t.substr(n,3).toLowerCase()==="lag"?(Qr=t.substr(n,3),n+=3):(Qr=r,or===0&&Kr(cp)),Qr===r&&(t.substr(n,4).toLowerCase()==="lead"?(Qr=t.substr(n,4),n+=4):(Qr=r,or===0&&Kr(c0)),Qr===r&&(t.substr(n,9).toLowerCase()==="nth_value"?(Qr=t.substr(n,9),n+=9):(Qr=r,or===0&&Kr(q0)))),Qr})())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(g=Mr())!==r&&ot()!==r&&Xo()!==r&&ot()!==r?((Gr=Ds())===r&&(Gr=null),Gr!==r&&ot()!==r&&(Vr=Zr())!==r?(st=G,z=(function(Qr,Pt,wn,Rn){return{type:"window_func",name:Qr,args:Pt,over:Rn,consider_nulls:wn}})(z,g,Gr,Vr),G=z):(n=G,G=r)):(n=G,G=r),G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr;return(z=(function(){var Qr;return t.substr(n,11).toLowerCase()==="first_value"?(Qr=t.substr(n,11),n+=11):(Qr=r,or===0&&Kr(xv)),Qr===r&&(t.substr(n,10).toLowerCase()==="last_value"?(Qr=t.substr(n,10),n+=10):(Qr=r,or===0&&Kr(lp))),Qr})())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(g=ao())!==r&&ot()!==r&&Xo()!==r&&ot()!==r?((Gr=Ds())===r&&(Gr=null),Gr!==r&&ot()!==r&&(Vr=Zr())!==r?(st=G,z=(function(Qr,Pt,wn,Rn){return{type:"window_func",name:Qr,args:{type:"expr_list",value:[Pt]},over:Rn,consider_nulls:wn}})(z,g,Gr,Vr),G=z):(n=G,G=r)):(n=G,G=r),G})()),w}function Ds(){var w,G,z;return w=n,t.substr(n,6).toLowerCase()==="ignore"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(df)),G===r&&(t.substr(n,7).toLowerCase()==="respect"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(f0))),G!==r&&ot()!==r?(t.substr(n,5).toLowerCase()==="nulls"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(wc)),z===r?(n=w,w=r):(st=w,w=G=G.toUpperCase()+" NULLS")):(n=w,w=r),w}function ut(){var w,G;return w=n,qo()!==r&&ot()!==r&&(G=Ws())!==r?(st=w,w={symbol:ke,delimiter:G}):(n=w,w=r),w}function De(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An;if(w=n,(G=Je())===r&&(G=null),G!==r)if(ot()!==r)if((z=Yo())!==r)if(ot()!==r)if((g=ao())!==r)if(ot()!==r)if((Gr=Xo())!==r)if(ot()!==r){for(Vr=[],Qr=n,(Pt=ot())===r?(n=Qr,Qr=r):((wn=Vo())===r&&(wn=eu()),wn!==r&&(Rn=ot())!==r&&(An=ao())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r));Qr!==r;)Vr.push(Qr),Qr=n,(Pt=ot())===r?(n=Qr,Qr=r):((wn=Vo())===r&&(wn=eu()),wn!==r&&(Rn=ot())!==r&&(An=ao())!==r?Qr=Pt=[Pt,wn,Rn,An]:(n=Qr,Qr=r));Vr!==r&&(Qr=ot())!==r?((Pt=ut())===r&&(Pt=null),Pt!==r&&(wn=ot())!==r?((Rn=Ln())===r&&(Rn=null),Rn===r?(n=w,w=r):(st=w,w=G=(function(Mn,as,cs,_s,we){let Pe=cs.length,jr=as;jr.parentheses=!0;for(let oo=0;oo<Pe;++oo)jr=dc(cs[oo][1],jr,cs[oo][3]);return{distinct:Mn,expr:jr,orderby:we,separator:_s}})(G,g,Vr,Pt,Rn))):(n=w,w=r)):(n=w,w=r)}else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;return w===r&&(w=n,(G=Je())===r&&(G=null),G!==r&&ot()!==r&&(z=ba())!==r&&ot()!==r?((g=ut())===r&&(g=null),g!==r&&ot()!==r?((Gr=Ln())===r&&(Gr=null),Gr===r?(n=w,w=r):(st=w,w=G=(function(Mn,as,cs,_s){return{distinct:Mn,expr:as,orderby:_s,separator:cs}})(G,z,g,Gr))):(n=w,w=r)):(n=w,w=r)),w}function Qo(){var w,G,z;return w=n,(G=(function(){var g;return t.substr(n,4).toLowerCase()==="both"?(g=t.substr(n,4),n+=4):(g=r,or===0&&Kr(Op)),g===r&&(t.substr(n,7).toLowerCase()==="leading"?(g=t.substr(n,7),n+=7):(g=r,or===0&&Kr(fp)),g===r&&(t.substr(n,8).toLowerCase()==="trailing"?(g=t.substr(n,8),n+=8):(g=r,or===0&&Kr(oc)))),g})())===r&&(G=null),G!==r&&ot()!==r?((z=ao())===r&&(z=null),z!==r&&ot()!==r&&br()!==r?(st=w,w=G=(function(g,Gr,Vr){let Qr=[];return g&&Qr.push({type:"origin",value:g}),Gr&&Qr.push(Gr),Qr.push({type:"origin",value:"from"}),{type:"expr_list",value:Qr}})(G,z)):(n=w,w=r)):(n=w,w=r),w}function A(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="trim"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(uc)),G!==r&&ot()!==r&&Yo()!==r&&ot()!==r?((z=Qo())===r&&(z=null),z!==r&&ot()!==r&&(g=ao())!==r&&ot()!==r&&Xo()!==r?(st=w,w=G=(function(Gr,Vr){let Qr=Gr||{type:"expr_list",value:[]};return Qr.value.push(Vr),{type:"function",name:{name:[{type:"origin",value:"trim"}]},args:Qr,...Do()}})(z,g)):(n=w,w=r)):(n=w,w=r),w}function nr(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="mode"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(e0)),G!==r&&ot()!==r?(t.substr(n,2)==="=>"?(z="=>",n+=2):(z=r,or===0&&Kr(Gf)),z!==r&&ot()!==r&&(g=Ws())!==r?(st=w,w=G=(function(Gr){let Vr=new Set(["object","array","both"]);if(!Gr.value||!Vr.has(Gr.value.toLowerCase()))throw Error((Gr&&Gr.value)+" is not valid mode in object, array and both");return Gr.value=Gr.value.toUpperCase(),{type:"mode",symbol:"=>",value:Gr}})(g)):(n=w,w=r)):(n=w,w=r),w}function yr(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn;return w=n,(G=(function(){var An,Mn,as,cs;return An=n,t.substr(n,5).toLowerCase()==="input"?(Mn=t.substr(n,5),n+=5):(Mn=r,or===0&&Kr(qb)),Mn!==r&&ot()!==r?(t.substr(n,2)==="=>"?(as="=>",n+=2):(as=r,or===0&&Kr(Gf)),as!==r&&ot()!==r&&(cs=ao())!==r?(st=An,An=Mn={type:"input",symbol:"=>",value:cs}):(n=An,An=r)):(n=An,An=r),An})())===r?(n=w,w=r):(z=n,(g=ot())!==r&&(Gr=qo())!==r&&(Vr=ot())!==r&&(Qr=(function(){var An,Mn,as,cs;return An=n,t.substr(n,4).toLowerCase()==="path"?(Mn=t.substr(n,4),n+=4):(Mn=r,or===0&&Kr(zv)),Mn!==r&&ot()!==r?(t.substr(n,2)==="=>"?(as="=>",n+=2):(as=r,or===0&&Kr(Gf)),as!==r&&ot()!==r&&(cs=Ws())!==r?(st=An,An=Mn={type:"path",symbol:"=>",value:cs}):(n=An,An=r)):(n=An,An=r),An})())!==r?z=g=[g,Gr,Vr,Qr]:(n=z,z=r),z===r&&(z=null),z===r?(n=w,w=r):(g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=(function(){var An,Mn,as,cs;return An=n,t.substr(n,5).toLowerCase()==="outer"?(Mn=t.substr(n,5),n+=5):(Mn=r,or===0&&Kr(Mv)),Mn!==r&&ot()!==r?(t.substr(n,2)==="=>"?(as="=>",n+=2):(as=r,or===0&&Kr(Gf)),as!==r&&ot()!==r&&(cs=ks())!==r?(st=An,An=Mn={type:"outer",symbol:"=>",value:cs}):(n=An,An=r)):(n=An,An=r),An})())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r),g===r&&(g=null),g===r?(n=w,w=r):(Gr=n,(Vr=ot())!==r&&(Qr=qo())!==r&&(Pt=ot())!==r&&(wn=(function(){var An,Mn,as,cs;return An=n,t.substr(n,9).toLowerCase()==="recursive"?(Mn=t.substr(n,9),n+=9):(Mn=r,or===0&&Kr(Zv)),Mn!==r&&ot()!==r?(t.substr(n,2)==="=>"?(as="=>",n+=2):(as=r,or===0&&Kr(Gf)),as!==r&&ot()!==r&&(cs=ks())!==r?(st=An,An=Mn={type:"recursive",symbol:"=>",value:cs}):(n=An,An=r)):(n=An,An=r),An})())!==r?Gr=Vr=[Vr,Qr,Pt,wn]:(n=Gr,Gr=r),Gr===r&&(Gr=null),Gr===r?(n=w,w=r):(Vr=n,(Qr=ot())!==r&&(Pt=qo())!==r&&(wn=ot())!==r&&(Rn=nr())!==r?Vr=Qr=[Qr,Pt,wn,Rn]:(n=Vr,Vr=r),Vr===r&&(Vr=null),Vr===r?(n=w,w=r):(st=w,w=G=(function(An,Mn,as,cs,_s){return{type:"flattern",input:An,path:Mn&&Mn[3],outer:as&&as[3],recursive:cs&&cs[3],mode:_s&&_s[3]}})(G,z,g,Gr,Vr)))))),w}function Ar(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;return(w=A())===r&&(w=n,t.substr(n,3).toLowerCase()==="now"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(bp)),G!==r&&ot()!==r&&(z=Yo())!==r&&ot()!==r?((g=Mr())===r&&(g=null),g!==r&&(Gr=ot())!==r&&Xo()!==r&&ot()!==r?(t.substr(n,2).toLowerCase()==="at"?(Vr=t.substr(n,2),n+=2):(Vr=r,or===0&&Kr(Ib)),Vr!==r&&(Qr=ot())!==r&&ga()!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="zone"?(Pt=t.substr(n,4),n+=4):(Pt=r,or===0&&Kr(Dv)),Pt!==r&&ot()!==r&&(wn=Ws())!==r?(st=w,w=G=(function(Rn,An,Mn){return Mn.prefix="at time zone",{type:"function",name:{name:[{type:"default",value:Rn}]},args:An||{type:"expr_list",value:[]},suffix:Mn,...Do()}})(G,g,wn)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,t.substr(n,7).toLowerCase()==="flatten"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(vp)),G!==r&&ot()!==r&&(z=Yo())!==r&&ot()!==r&&(g=yr())!==r&&(Gr=ot())!==r&&Xo()!==r?(st=w,w=G=(function(Rn,An){return{type:"flatten",name:{name:[{type:"default",value:Rn}]},args:An,...Do()}})(G,g)):(n=w,w=r),w===r&&(w=n,(G=(function(){var Rn;return(Rn=bt())===r&&(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,12).toLowerCase()==="current_user"?(Mn=t.substr(n,12),n+=12):(Mn=r,or===0&&Kr(B0)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="CURRENT_USER")),An})())===r&&(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,4).toLowerCase()==="user"?(Mn=t.substr(n,4),n+=4):(Mn=r,or===0&&Kr(Kl)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="USER")),An})())===r&&(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,12).toLowerCase()==="session_user"?(Mn=t.substr(n,12),n+=12):(Mn=r,or===0&&Kr(Mc)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="SESSION_USER")),An})())===r&&(Rn=(function(){var An=n,Mn,as,cs;return t.substr(n,11).toLowerCase()==="system_user"?(Mn=t.substr(n,11),n+=11):(Mn=r,or===0&&Kr(ob)),Mn===r?(n=An,An=r):(as=n,or++,cs=er(),or--,cs===r?as=void 0:(n=as,as=r),as===r?(n=An,An=r):(st=An,An=Mn="SYSTEM_USER")),An})())===r&&(t.substr(n,5).toLowerCase()==="ntile"?(Rn=t.substr(n,5),n+=5):(Rn=r,or===0&&Kr(Mp))),Rn})())!==r&&ot()!==r&&(z=Yo())!==r&&ot()!==r?((g=Mr())===r&&(g=null),g!==r&&(Gr=ot())!==r&&Xo()!==r&&ot()!==r?((Vr=Zr())===r&&(Vr=null),Vr===r?(n=w,w=r):(st=w,w=G=(function(Rn,An,Mn){return{type:"function",name:{name:[{type:"default",value:Rn}]},args:An||{type:"expr_list",value:[]},over:Mn,...Do()}})(G,g,Vr))):(n=w,w=r)):(n=w,w=r),w===r&&(w=(function(){var Rn=n,An,Mn,as,cs;(An=oa())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Mn=qr())!==r&&ot()!==r&&br()!==r&&ot()!==r?((as=_i())===r&&(as=Ai())===r&&(as=ga())===r&&(as=rv()),as===r&&(as=null),as!==r&&ot()!==r&&(cs=ao())!==r&&ot()!==r&&Xo()!==r?(st=Rn,_s=Mn,we=as,Pe=cs,An={type:An.toLowerCase(),args:{field:_s,cast_type:we,source:Pe},...Do()},Rn=An):(n=Rn,Rn=r)):(n=Rn,Rn=r);var _s,we,Pe;return Rn===r&&(Rn=n,(An=oa())!==r&&ot()!==r&&Yo()!==r&&ot()!==r&&(Mn=qr())!==r&&ot()!==r&&br()!==r&&ot()!==r&&(as=ao())!==r&&ot()!==r&&(cs=Xo())!==r?(st=Rn,An=(function(jr,oo,Bo){return{type:jr.toLowerCase(),args:{field:oo,source:Bo},...Do()}})(An,Mn,as),Rn=An):(n=Rn,Rn=r)),Rn})())===r&&(w=n,(G=bt())!==r&&ot()!==r?((z=ir())===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G={type:"function",name:{name:[{type:"origin",value:G}]},over:z,...Do()})):(n=w,w=r),w===r&&(w=n,(G=Ns())===r?(n=w,w=r):(st=n,((function(Rn){return!Ea[Rn.name[0]&&Rn.name[0].value.toLowerCase()]})(G)?void 0:r)!==r&&(z=ot())!==r&&Yo()!==r&&(g=ot())!==r?((Gr=zo())===r&&(Gr=null),Gr!==r&&ot()!==r&&Xo()!==r&&(Vr=ot())!==r?((Qr=Zr())===r&&(Qr=null),Qr===r?(n=w,w=r):(st=w,w=G=(function(Rn,An,Mn){return An&&An.type!=="expr_list"&&(An={type:"expr_list",value:[An]}),(Rn.name[0]&&Rn.name[0].value.toUpperCase()==="TIMESTAMPDIFF"||Rn.name[0]&&Rn.name[0].value.toUpperCase()==="TIMESTAMPADD")&&An.value&&An.value[0]&&(An.value[0]={type:"origin",value:An.value[0].column}),{type:"function",name:Rn,args:An||{type:"expr_list",value:[]},over:Mn,...Do()}})(G,Gr,Qr))):(n=w,w=r)):(n=w,w=r))))))),w}function qr(){var w,G;return w=n,t.substr(n,7).toLowerCase()==="century"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Jv)),G===r&&(t.substr(n,3).toLowerCase()==="day"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Xb)),G===r&&(t.substr(n,4).toLowerCase()==="date"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(pp)),G===r&&(t.substr(n,6).toLowerCase()==="decade"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(xp)),G===r&&(t.substr(n,3).toLowerCase()==="dow"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(cv)),G===r&&(t.substr(n,3).toLowerCase()==="doy"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Up)),G===r&&(t.substr(n,5).toLowerCase()==="epoch"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(Xp)),G===r&&(t.substr(n,4).toLowerCase()==="hour"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Qv)),G===r&&(t.substr(n,6).toLowerCase()==="isodow"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Vp)),G===r&&(t.substr(n,7).toLowerCase()==="isoyear"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(dp)),G===r&&(t.substr(n,12).toLowerCase()==="microseconds"?(G=t.substr(n,12),n+=12):(G=r,or===0&&Kr(Kp)),G===r&&(t.substr(n,10).toLowerCase()==="millennium"?(G=t.substr(n,10),n+=10):(G=r,or===0&&Kr(ld)),G===r&&(t.substr(n,12).toLowerCase()==="milliseconds"?(G=t.substr(n,12),n+=12):(G=r,or===0&&Kr(Lp)),G===r&&(t.substr(n,6).toLowerCase()==="minute"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Cp)),G===r&&(t.substr(n,5).toLowerCase()==="month"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(wp)),G===r&&(t.substr(n,7).toLowerCase()==="quarter"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(gb)),G===r&&(t.substr(n,6).toLowerCase()==="second"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(O0)),G===r&&(t.substr(n,8).toLowerCase()==="timezone"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(v0)),G===r&&(t.substr(n,13).toLowerCase()==="timezone_hour"?(G=t.substr(n,13),n+=13):(G=r,or===0&&Kr(ac)),G===r&&(t.substr(n,15).toLowerCase()==="timezone_minute"?(G=t.substr(n,15),n+=15):(G=r,or===0&&Kr(Rb)),G===r&&(t.substr(n,4).toLowerCase()==="week"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Ff)),G===r&&(t.substr(n,4).toLowerCase()==="year"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(kp))))))))))))))))))))))),G!==r&&(st=w,G=G),w=G}function bt(){var w;return(w=(function(){var G=n,z,g,Gr;return t.substr(n,12).toLowerCase()==="current_date"?(z=t.substr(n,12),n+=12):(z=r,or===0&&Kr(wa)),z===r?(n=G,G=r):(g=n,or++,Gr=er(),or--,Gr===r?g=void 0:(n=g,g=r),g===r?(n=G,G=r):(st=G,G=z="CURRENT_DATE")),G})())===r&&(w=(function(){var G=n,z,g,Gr;return t.substr(n,12).toLowerCase()==="current_time"?(z=t.substr(n,12),n+=12):(z=r,or===0&&Kr(ti)),z===r?(n=G,G=r):(g=n,or++,Gr=er(),or--,Gr===r?g=void 0:(n=g,g=r),g===r?(n=G,G=r):(st=G,G=z="CURRENT_TIME")),G})())===r&&(w=tc()),w}function pr(){var w,G,z,g;return w=n,t.charCodeAt(n)===34?(G='"',n++):(G=r,or===0&&Kr(Iu)),G===r&&(G=null),G!==r&&(z=ro())!==r?(t.charCodeAt(n)===34?(g='"',n++):(g=r,or===0&&Kr(Iu)),g===r&&(g=null),g===r?(n=w,w=r):(st=w,w=G=(function(Gr,Vr,Qr){if(Gr&&!Qr||!Gr&&Qr)throw Error("double quoted not match");return Gr&&Qr&&(Vr.quoted='"'),Vr})(G,z,g))):(n=w,w=r),w}function xt(){var w,G,z,g,Gr,Vr;if(w=n,G=[],z=n,(g=pc())!==r&&(Gr=ot())!==r&&(Vr=pr())!==r?z=g=[g,Gr,Vr]:(n=z,z=r),z!==r)for(;z!==r;)G.push(z),z=n,(g=pc())!==r&&(Gr=ot())!==r&&(Vr=pr())!==r?z=g=[g,Gr,Vr]:(n=z,z=r);else G=r;return G!==r&&(z=ot())!==r?((g=$i())===r&&(g=null),g===r?(n=w,w=r):(st=w,w=G={as:g,symbol:"::",target:G.map(Qr=>Qr[2])})):(n=w,w=r),w}function cn(){var w;return(w=Ws())===r&&(w=me())===r&&(w=ks())===r&&(w=$n())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr;if((z=ga())===r&&(z=rv())===r&&(z=_i())===r&&(z=Tt()),z!==r)if(ot()!==r){if(g=n,t.charCodeAt(n)===39?(Gr="'",n++):(Gr=r,or===0&&Kr(Fa)),Gr!==r){for(Vr=[],Qr=ne();Qr!==r;)Vr.push(Qr),Qr=ne();Vr===r?(n=g,g=r):(t.charCodeAt(n)===39?(Qr="'",n++):(Qr=r,or===0&&Kr(Fa)),Qr===r?(n=g,g=r):g=Gr=[Gr,Vr,Qr])}else n=g,g=r;g===r?(n=G,G=r):(st=G,Pt=g,z={type:z.toLowerCase(),value:Pt[1].join("")},G=z)}else n=G,G=r;else n=G,G=r;var Pt;if(G===r)if(G=n,(z=ga())===r&&(z=rv())===r&&(z=_i())===r&&(z=Tt()),z!==r)if(ot()!==r){if(g=n,t.charCodeAt(n)===34?(Gr='"',n++):(Gr=r,or===0&&Kr(Iu)),Gr!==r){for(Vr=[],Qr=fe();Qr!==r;)Vr.push(Qr),Qr=fe();Vr===r?(n=g,g=r):(t.charCodeAt(n)===34?(Qr='"',n++):(Qr=r,or===0&&Kr(Iu)),Qr===r?(n=g,g=r):g=Gr=[Gr,Vr,Qr])}else n=g,g=r;g===r?(n=G,G=r):(st=G,z=(function(wn,Rn){return{type:wn.toLowerCase(),value:Rn[1].join("")}})(z,g),G=z)}else n=G,G=r;else n=G,G=r;return G})())===r&&(w=mn()),w}function mn(){var w,G;return w=n,Jo()!==r&&ot()!==r&&$l()!==r&&ot()!==r?((G=Mr())===r&&(G=null),G!==r&&ot()!==r&&m0()!==r?(st=w,w=(function(z,g){return{expr_list:g||{type:"origin",value:""},type:"array",keyword:"array",brackets:!0}})(0,G)):(n=w,w=r)):(n=w,w=r),w}function $n(){var w,G;return w=n,(G=(function(){var z=n,g,Gr,Vr;return t.substr(n,4).toLowerCase()==="null"?(g=t.substr(n,4),n+=4):(g=r,or===0&&Kr(Ec)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):z=g=[g,Gr]),z})())!==r&&(st=w,G={type:"null",value:null}),w=G}function bs(){var w,G;return w=n,(G=(function(){var z=n,g,Gr,Vr;return t.substr(n,8).toLowerCase()==="not null"?(g=t.substr(n,8),n+=8):(g=r,or===0&&Kr(Jp)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):z=g=[g,Gr]),z})())!==r&&(st=w,G={type:"not null",value:"not null"}),w=G}function ks(){var w,G;return w=n,(G=(function(){var z=n,g,Gr,Vr;return t.substr(n,4).toLowerCase()==="true"?(g=t.substr(n,4),n+=4):(g=r,or===0&&Kr(Qp)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):z=g=[g,Gr]),z})())!==r&&(st=w,G={type:"bool",value:!0}),(w=G)===r&&(w=n,(G=(function(){var z=n,g,Gr,Vr;return t.substr(n,5).toLowerCase()==="false"?(g=t.substr(n,5),n+=5):(g=r,or===0&&Kr(jv)),g===r?(n=z,z=r):(Gr=n,or++,Vr=er(),or--,Vr===r?Gr=void 0:(n=Gr,Gr=r),Gr===r?(n=z,z=r):z=g=[g,Gr]),z})())!==r&&(st=w,G={type:"bool",value:!1}),w=G),w}function Ws(){var w,G,z,g,Gr,Vr,Qr,Pt,wn;if(w=n,G=n,t.charCodeAt(n)===39?(z="'",n++):(z=r,or===0&&Kr(Fa)),z!==r){for(g=[],Gr=ne();Gr!==r;)g.push(Gr),Gr=ne();g===r?(n=G,G=r):(t.charCodeAt(n)===39?(Gr="'",n++):(Gr=r,or===0&&Kr(Fa)),Gr===r?(n=G,G=r):G=z=[z,g,Gr])}else n=G,G=r;if(G!==r){if(z=[],rp.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(yp)),g!==r)for(;g!==r;)z.push(g),rp.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(yp));else z=r;if(z!==r)if((g=ot())!==r){if(Gr=n,t.charCodeAt(n)===39?(Vr="'",n++):(Vr=r,or===0&&Kr(Fa)),Vr!==r){for(Qr=[],Pt=ne();Pt!==r;)Qr.push(Pt),Pt=ne();Qr===r?(n=Gr,Gr=r):(t.charCodeAt(n)===39?(Pt="'",n++):(Pt=r,or===0&&Kr(Fa)),Pt===r?(n=Gr,Gr=r):Gr=Vr=[Vr,Qr,Pt])}else n=Gr,Gr=r;Gr===r?(n=w,w=r):(st=w,wn=Gr,w=G={type:"single_quote_string",value:`${G[1].join("")}${wn[1].join("")}`,...Do()})}else n=w,w=r;else n=w,w=r}else n=w,w=r;if(w===r){if(w=n,G=n,t.charCodeAt(n)===39?(z="'",n++):(z=r,or===0&&Kr(Fa)),z!==r){for(g=[],Gr=ne();Gr!==r;)g.push(Gr),Gr=ne();g===r?(n=G,G=r):(t.charCodeAt(n)===39?(Gr="'",n++):(Gr=r,or===0&&Kr(Fa)),Gr===r?(n=G,G=r):G=z=[z,g,Gr])}else n=G,G=r;if(G!==r&&(st=w,G=(function(Rn){return{type:"single_quote_string",value:Rn[1].join(""),...Do()}})(G)),(w=G)===r){if(w=n,G=n,t.charCodeAt(n)===34?(z='"',n++):(z=r,or===0&&Kr(Iu)),z!==r){for(g=[],Gr=fe();Gr!==r;)g.push(Gr),Gr=fe();g===r?(n=G,G=r):(t.charCodeAt(n)===34?(Gr='"',n++):(Gr=r,or===0&&Kr(Iu)),Gr===r?(n=G,G=r):G=z=[z,g,Gr])}else n=G,G=r;G===r?(n=w,w=r):(z=n,or++,g=qa(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G=(function(Rn){return{type:"double_quote_string",value:Rn[1].join("")}})(G)))}}return w}function fe(){var w;return hp.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(Ep)),w===r&&(w=Is()),w}function ne(){var w;return Nb.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(Qf)),w===r&&(w=Is()),w}function Is(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn;return w=n,t.substr(n,2)==="\\'"?(G="\\'",n+=2):(G=r,or===0&&Kr(_b)),G!==r&&(st=w,G="\\'"),(w=G)===r&&(w=n,t.substr(n,2)==='\\"'?(G='\\"',n+=2):(G=r,or===0&&Kr(Ap)),G!==r&&(st=w,G='\\"'),(w=G)===r&&(w=n,t.substr(n,2)==="\\\\"?(G="\\\\",n+=2):(G=r,or===0&&Kr(Dp)),G!==r&&(st=w,G="\\\\"),(w=G)===r&&(w=n,t.substr(n,2)==="\\/"?(G="\\/",n+=2):(G=r,or===0&&Kr($v)),G!==r&&(st=w,G="\\/"),(w=G)===r&&(w=n,t.substr(n,2)==="\\b"?(G="\\b",n+=2):(G=r,or===0&&Kr($p)),G!==r&&(st=w,G="\b"),(w=G)===r&&(w=n,t.substr(n,2)==="\\f"?(G="\\f",n+=2):(G=r,or===0&&Kr(Pp)),G!==r&&(st=w,G="\f"),(w=G)===r&&(w=n,t.substr(n,2)==="\\n"?(G="\\n",n+=2):(G=r,or===0&&Kr(Pv)),G!==r&&(st=w,G=` +`),(w=G)===r&&(w=n,t.substr(n,2)==="\\r"?(G="\\r",n+=2):(G=r,or===0&&Kr(Gp)),G!==r&&(st=w,G="\r"),(w=G)===r&&(w=n,t.substr(n,2)==="\\t"?(G="\\t",n+=2):(G=r,or===0&&Kr(Fp)),G!==r&&(st=w,G=" "),(w=G)===r&&(w=n,t.substr(n,2)==="\\u"?(G="\\u",n+=2):(G=r,or===0&&Kr(mp)),G!==r&&(z=su())!==r&&(g=su())!==r&&(Gr=su())!==r&&(Vr=su())!==r?(st=w,Qr=z,Pt=g,wn=Gr,Rn=Vr,w=G=String.fromCharCode(parseInt("0x"+Qr+Pt+wn+Rn))):(n=w,w=r),w===r&&(w=n,t.charCodeAt(n)===92?(G="\\",n++):(G=r,or===0&&Kr(zp)),G!==r&&(st=w,G="\\"),(w=G)===r&&(w=n,t.substr(n,2)==="''"?(G="''",n+=2):(G=r,or===0&&Kr(Zp)),G!==r&&(st=w,G="''"),w=G))))))))))),w}function me(){var w,G,z;return w=n,(G=(function(){var g=n,Gr,Vr,Qr;return(Gr=Xe())===r&&(Gr=null),Gr!==r&&(Vr=eo())!==r&&(Qr=so())!==r?(st=g,g=Gr={type:"bigint",value:(Gr||"")+Vr+Qr}):(n=g,g=r),g===r&&(g=n,(Gr=Xe())===r&&(Gr=null),Gr!==r&&(Vr=eo())!==r?(st=g,Gr=(function(Pt,wn){let Rn=(Pt||"")+wn;return Pt&&_f(Pt)?{type:"bigint",value:Rn}:parseFloat(Rn).toFixed(wn.length-1)})(Gr,Vr),g=Gr):(n=g,g=r),g===r&&(g=n,(Gr=Xe())!==r&&(Vr=so())!==r?(st=g,Gr=(function(Pt,wn){return{type:"bigint",value:Pt+wn}})(Gr,Vr),g=Gr):(n=g,g=r),g===r&&(g=n,(Gr=Xe())!==r&&(st=g,Gr=(function(Pt){return _f(Pt)?{type:"bigint",value:Pt}:parseFloat(Pt)})(Gr)),g=Gr))),g})())!==r&&(st=w,G=(z=G)&&z.type==="bigint"?z:{type:"number",value:z}),w=G}function Xe(){var w,G,z;return(w=$o())===r&&(w=Mu())===r&&(w=n,t.charCodeAt(n)===45?(G="-",n++):(G=r,or===0&&Kr(tn)),G===r&&(t.charCodeAt(n)===43?(G="+",n++):(G=r,or===0&&Kr(ft))),G!==r&&(z=$o())!==r?(st=w,w=G+=z):(n=w,w=r),w===r&&(w=n,t.charCodeAt(n)===45?(G="-",n++):(G=r,or===0&&Kr(tn)),G===r&&(t.charCodeAt(n)===43?(G="+",n++):(G=r,or===0&&Kr(ft))),G!==r&&(z=Mu())!==r?(st=w,w=G=(function(g,Gr){return g+Gr})(G,z)):(n=w,w=r))),w}function eo(){var w,G,z;return w=n,t.charCodeAt(n)===46?(G=".",n++):(G=r,or===0&&Kr(Fv)),G!==r&&(z=$o())!==r?(st=w,w=G="."+z):(n=w,w=r),w}function so(){var w,G,z;return w=n,(G=(function(){var g=n,Gr,Vr;Ol.test(t.charAt(n))?(Gr=t.charAt(n),n++):(Gr=r,or===0&&Kr(np)),Gr===r?(n=g,g=r):(bv.test(t.charAt(n))?(Vr=t.charAt(n),n++):(Vr=r,or===0&&Kr(ql)),Vr===r&&(Vr=null),Vr===r?(n=g,g=r):(st=g,g=Gr+=(Qr=Vr)===null?"":Qr));var Qr;return g})())!==r&&(z=$o())!==r?(st=w,w=G+=z):(n=w,w=r),w}function $o(){var w,G,z;if(w=n,G=[],(z=Mu())!==r)for(;z!==r;)G.push(z),z=Mu();else G=r;return G!==r&&(st=w,G=G.join("")),w=G}function Mu(){var w;return yl.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(jc)),w}function su(){var w;return fv.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(Sl)),w}function Po(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="default"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(nl)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Na(){var w,G,z,g;return w=n,t.substr(n,2).toLowerCase()==="to"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(sp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function F(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="show"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Tp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function ar(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="drop"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(rd)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="DROP")),w}function Nr(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="alter"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(Ip)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Rr(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="select"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(td)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function ct(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="update"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(nd)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function dt(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="create"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Bp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Yt(){var w,G,z,g;return w=n,t.substr(n,9).toLowerCase()==="temporary"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(Hp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function vn(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="temp"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(gp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function fn(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="delete"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(sd)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function gn(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="insert"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(ed)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Vn(){var w,G,z,g;return w=n,t.substr(n,9).toLowerCase()==="recursive"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(Zv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="RECURSIVE")),w}function Jn(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="replace"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Yp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function ms(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="rename"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(ud)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Qs(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="ignore"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(df)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function $(){var w,G,z,g;return w=n,t.substr(n,9).toLowerCase()==="partition"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(Rp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="PARTITION")),w}function J(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="into"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(O)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function br(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="from"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(ps)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function mr(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="set"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Rl)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="SET")),w}function et(){var w,G,z,g;return w=n,t.substr(n,2).toLowerCase()==="as"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(Bv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function pt(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="table"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(Lf)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TABLE")),w}function At(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="schema"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Ae)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="SCHEMA")),w}function Bt(){var w,G,z,g;return w=n,t.substr(n,2).toLowerCase()==="on"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(ri)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Ut(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="join"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Wp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function pn(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="outer"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(Mv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Cn(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="values"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Vb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Hn(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="using"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(_)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function qn(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="with"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Ui)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function Cs(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="group"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(pv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function js(){var w,G,z,g;return w=n,t.substr(n,2).toLowerCase()==="by"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(Cf)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function qe(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="order"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(dv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function bo(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="asc"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Kb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="ASC")),w}function tu(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="desc"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(ys)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="DESC")),w}function Ru(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="all"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(_p)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="ALL")),w}function Je(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="distinct"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(Yv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="DISTINCT")),w}function hu(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="between"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Lv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="BETWEEN")),w}function Go(){var w,G,z,g;return w=n,t.substr(n,2).toLowerCase()==="in"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(hc)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="IN")),w}function nu(){var w,G,z,g;return w=n,t.substr(n,2).toLowerCase()==="is"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(Wv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="IS")),w}function xe(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="like"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(zb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="LIKE")),w}function qs(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="ilike"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(wf)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="ILIKE")),w}function fo(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="exists"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(qv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="EXISTS")),w}function Ks(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="not"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(s0)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="NOT")),w}function Vo(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="and"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Cv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="AND")),w}function eu(){var w,G,z,g;return w=n,t.substr(n,2).toLowerCase()==="or"?(G=t.substr(n,2),n+=2):(G=r,or===0&&Kr(rb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="OR")),w}function Jo(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="array"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(tb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="ARRAY")),w}function Bu(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="count"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(Sb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="COUNT")),w}function oa(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="extract"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Ob)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="EXTRACT")),w}function Nu(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="case"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(is)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function cu(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="when"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(el)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function le(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="end"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(yf)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):w=G=[G,z]),w}function vu(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="cast"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(X0)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="CAST")),w}function Ee(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="try_cast"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(p0)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TRY_CAST")),w}function yi(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="char"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Zb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="CHAR")),w}function Rc(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="varchar"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(yv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="VARCHAR")),w}function Wa(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="number"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Jb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="NUMBER")),w}function vc(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="decimal"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(hv)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="DECIMAL")),w}function Ev(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="unsigned"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(ss)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="UNSIGNED")),w}function cb(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="int"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Xl)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="INT")),w}function ad(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="integer"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Bf)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="INTEGER")),w}function hi(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="smallint"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(sb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="SMALLINT")),w}function ap(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="serial"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(eb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="SERIAL")),w}function A0(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="tinyint"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(p)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TINYINT")),w}function fl(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="tinytext"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(ns)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TINYTEXT")),w}function Av(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="text"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Vl)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TEXT")),w}function bl(){var w,G,z,g;return w=n,t.substr(n,10).toLowerCase()==="mediumtext"?(G=t.substr(n,10),n+=10):(G=r,or===0&&Kr(Hc)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="MEDIUMTEXT")),w}function gu(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="longtext"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(Ub)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="LONGTEXT")),w}function Xi(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="bigint"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Ft)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="BIGINT")),w}function Du(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="enum"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(xs)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="ENUM")),w}function Hu(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="float"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(Li)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="FLOAT")),w}function vl(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="double"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Ta)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="DOUBLE")),w}function rc(){var w,G,z,g;return w=n,t.substr(n,9).toLowerCase()==="bigserial"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(x0)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="BIGSERIAL")),w}function Ei(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="real"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Zn)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="REAL")),w}function rv(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="date"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(pp)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="DATE")),w}function Tt(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="datetime"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(kb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="DATETIME")),w}function Rf(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="rows"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(U0)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="ROWS")),w}function ga(){var w,G,z,g;return w=n,t.substr(n,4).toLowerCase()==="time"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(C)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TIME")),w}function _i(){var w,G,z,g;return w=n,t.substr(n,9).toLowerCase()==="timestamp"?(G=t.substr(n,9),n+=9):(G=r,or===0&&Kr(Kn)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TIMESTAMP")),w}function Nc(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="truncate"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(zi)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="TRUNCATE")),w}function Ai(){var w,G,z,g;return w=n,t.substr(n,8).toLowerCase()==="interval"?(G=t.substr(n,8),n+=8):(G=r,or===0&&Kr(Oa)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="INTERVAL")),w}function tc(){var w,G,z,g;return w=n,t.substr(n,17).toLowerCase()==="current_timestamp"?(G=t.substr(n,17),n+=17):(G=r,or===0&&Kr(We)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="CURRENT_TIMESTAMP")),w}function Yf(){var w;return t.charCodeAt(n)===36?(w="$",n++):(w=r,or===0&&Kr(Ys)),w}function sf(){var w;return t.substr(n,2)==="$$"?(w="$$",n+=2):(w=r,or===0&&Kr(ul)),w}function mv(){var w;return(w=(function(){var G;return t.substr(n,2)==="@@"?(G="@@",n+=2):(G=r,or===0&&Kr(w0)),G})())===r&&(w=(function(){var G;return t.charCodeAt(n)===64?(G="@",n++):(G=r,or===0&&Kr(El)),G})())===r&&(w=Yf())===r&&(w=Yf()),w}function pc(){var w;return t.substr(n,2)==="::"?(w="::",n+=2):(w=r,or===0&&Kr(z0)),w}function Si(){var w;return t.charCodeAt(n)===61?(w="=",n++):(w=r,or===0&&Kr(pa)),w}function _c(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="add"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Su)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="ADD")),w}function Tv(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="column"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(Al)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="COLUMN")),w}function ef(){var w,G,z,g;return w=n,t.substr(n,5).toLowerCase()==="index"?(G=t.substr(n,5),n+=5):(G=r,or===0&&Kr(D0)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="INDEX")),w}function ip(){var w,G,z,g;return w=n,t.substr(n,3).toLowerCase()==="key"?(G=t.substr(n,3),n+=3):(G=r,or===0&&Kr(Vi)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="KEY")),w}function Uu(){var w,G,z,g;return w=n,t.substr(n,6).toLowerCase()==="unique"?(G=t.substr(n,6),n+=6):(G=r,or===0&&Kr(bb)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="UNIQUE")),w}function Sc(){var w,G,z,g;return w=n,t.substr(n,7).toLowerCase()==="comment"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(Tc)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="COMMENT")),w}function of(){var w,G,z,g;return w=n,t.substr(n,10).toLowerCase()==="constraint"?(G=t.substr(n,10),n+=10):(G=r,or===0&&Kr(y0)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="CONSTRAINT")),w}function Xc(){var w,G,z,g;return w=n,t.substr(n,12).toLowerCase()==="concurrently"?(G=t.substr(n,12),n+=12):(G=r,or===0&&Kr(bi)),G===r?(n=w,w=r):(z=n,or++,g=er(),or--,g===r?z=void 0:(n=z,z=r),z===r?(n=w,w=r):(st=w,w=G="CONCURRENTLY")),w}function qa(){var w;return t.charCodeAt(n)===46?(w=".",n++):(w=r,or===0&&Kr(Fv)),w}function qo(){var w;return t.charCodeAt(n)===44?(w=",",n++):(w=r,or===0&&Kr(Ul)),w}function Oc(){var w;return t.charCodeAt(n)===42?(w="*",n++):(w=r,or===0&&Kr(_n)),w}function Yo(){var w;return t.charCodeAt(n)===40?(w="(",n++):(w=r,or===0&&Kr(o0)),w}function Xo(){var w;return t.charCodeAt(n)===41?(w=")",n++):(w=r,or===0&&Kr(xi)),w}function $l(){var w;return t.charCodeAt(n)===91?(w="[",n++):(w=r,or===0&&Kr(aa)),w}function m0(){var w;return t.charCodeAt(n)===93?(w="]",n++):(w=r,or===0&&Kr(Tf)),w}function G0(){var w;return t.charCodeAt(n)===59?(w=";",n++):(w=r,or===0&&Kr(je)),w}function va(){var w;return t.substr(n,2)==="->"?(w="->",n+=2):(w=r,or===0&&Kr(Hb)),w}function Nf(){var w;return t.substr(n,3)==="->>"?(w="->>",n+=3):(w=r,or===0&&Kr(If)),w}function Xu(){var w;return(w=(function(){var G;return t.substr(n,2)==="||"?(G="||",n+=2):(G=r,or===0&&Kr(gs)),G})())===r&&(w=(function(){var G;return t.substr(n,2)==="&&"?(G="&&",n+=2):(G=r,or===0&&Kr(Tl)),G})()),w}function ot(){var w,G;for(w=[],(G=Er())===r&&(G=R());G!==r;)w.push(G),(G=Er())===r&&(G=R());return w}function Xv(){var w,G;if(w=[],(G=Er())===r&&(G=R()),G!==r)for(;G!==r;)w.push(G),(G=Er())===r&&(G=R());else w=r;return w}function R(){var w;return(w=(function G(){var z=n,g,Gr,Vr,Qr,Pt,wn;if(t.substr(n,2)==="/*"?(g="/*",n+=2):(g=r,or===0&&Kr(Ci)),g!==r){for(Gr=[],Vr=n,Qr=n,or++,t.substr(n,2)==="*/"?(Pt="*/",n+=2):(Pt=r,or===0&&Kr(Q0)),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Vr,Vr=r):(Pt=n,or++,t.substr(n,2)==="/*"?(wn="/*",n+=2):(wn=r,or===0&&Kr(Ci)),or--,wn===r?Pt=void 0:(n=Pt,Pt=r),Pt!==r&&(wn=cr())!==r?Vr=Qr=[Qr,Pt,wn]:(n=Vr,Vr=r)),Vr===r&&(Vr=G());Vr!==r;)Gr.push(Vr),Vr=n,Qr=n,or++,t.substr(n,2)==="*/"?(Pt="*/",n+=2):(Pt=r,or===0&&Kr(Q0)),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Vr,Vr=r):(Pt=n,or++,t.substr(n,2)==="/*"?(wn="/*",n+=2):(wn=r,or===0&&Kr(Ci)),or--,wn===r?Pt=void 0:(n=Pt,Pt=r),Pt!==r&&(wn=cr())!==r?Vr=Qr=[Qr,Pt,wn]:(n=Vr,Vr=r)),Vr===r&&(Vr=G());Gr===r?(n=z,z=r):(t.substr(n,2)==="*/"?(Vr="*/",n+=2):(Vr=r,or===0&&Kr(Q0)),Vr===r?(n=z,z=r):z=g=[g,Gr,Vr])}else n=z,z=r;return z})())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr;if(t.substr(n,2)==="--"?(z="--",n+=2):(z=r,or===0&&Kr(ib)),z!==r){for(g=[],Gr=n,Vr=n,or++,Qr=vt(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr!==r&&(Qr=cr())!==r?Gr=Vr=[Vr,Qr]:(n=Gr,Gr=r);Gr!==r;)g.push(Gr),Gr=n,Vr=n,or++,Qr=vt(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr!==r&&(Qr=cr())!==r?Gr=Vr=[Vr,Qr]:(n=Gr,Gr=r);g===r?(n=G,G=r):G=z=[z,g]}else n=G,G=r;return G})())===r&&(w=(function(){var G=n,z,g,Gr,Vr,Qr;if(t.substr(n,2)==="//"?(z="//",n+=2):(z=r,or===0&&Kr(fa)),z!==r){for(g=[],Gr=n,Vr=n,or++,Qr=vt(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr!==r&&(Qr=cr())!==r?Gr=Vr=[Vr,Qr]:(n=Gr,Gr=r);Gr!==r;)g.push(Gr),Gr=n,Vr=n,or++,Qr=vt(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr!==r&&(Qr=cr())!==r?Gr=Vr=[Vr,Qr]:(n=Gr,Gr=r);g===r?(n=G,G=r):G=z=[z,g]}else n=G,G=r;return G})()),w}function B(){var w,G,z,g;return w=n,(G=Sc())!==r&&ot()!==r?((z=Si())===r&&(z=null),z!==r&&ot()!==r&&(g=Ws())!==r?(st=w,w=G=(function(Gr,Vr,Qr){return{type:Gr.toLowerCase(),keyword:Gr.toLowerCase(),symbol:Vr,value:Qr}})(G,z,g)):(n=w,w=r)):(n=w,w=r),w}function cr(){var w;return t.length>n?(w=t.charAt(n),n++):(w=r,or===0&&Kr(Zi)),w}function Er(){var w;return rf.test(t.charAt(n))?(w=t.charAt(n),n++):(w=r,or===0&&Kr(Ii)),w}function vt(){var w,G;if((w=(function(){var z=n,g;return or++,t.length>n?(g=t.charAt(n),n++):(g=r,or===0&&Kr(Zi)),or--,g===r?z=void 0:(n=z,z=r),z})())===r)if(w=[],Gv.test(t.charAt(n))?(G=t.charAt(n),n++):(G=r,or===0&&Kr(tp)),G!==r)for(;G!==r;)w.push(G),Gv.test(t.charAt(n))?(G=t.charAt(n),n++):(G=r,or===0&&Kr(tp));else w=r;return w}function it(){var w,G;return w=n,st=n,fu=[],r!==void 0&&ot()!==r?((G=Et())===r&&(G=(function(){var z=n,g;return(function(){var Gr;return t.substr(n,6).toLowerCase()==="return"?(Gr=t.substr(n,6),n+=6):(Gr=r,or===0&&Kr(Ye)),Gr})()!==r&&ot()!==r&&(g=$t())!==r?(st=z,z={type:"return",expr:g}):(n=z,z=r),z})()),G===r?(n=w,w=r):(st=w,w={type:"proc",stmt:G,vars:fu})):(n=w,w=r),w}function Et(){var w,G,z,g;return w=n,(G=ee())===r&&(G=ie()),G!==r&&ot()!==r?((z=(function(){var Gr;return t.substr(n,2)===":="?(Gr=":=",n+=2):(Gr=r,or===0&&Kr(mf)),Gr})())===r&&(z=Si()),z!==r&&ot()!==r&&(g=$t())!==r?(st=w,w=G={type:"assign",left:G,symbol:z,right:g}):(n=w,w=r)):(n=w,w=r),w}function $t(){var w;return(w=Ou())===r&&(w=(function(){var G=n,z,g,Gr,Vr;return(z=ee())!==r&&ot()!==r&&(g=o())!==r&&ot()!==r&&(Gr=ee())!==r&&ot()!==r&&(Vr=bu())!==r?(st=G,G=z={type:"join",ltable:z,rtable:Gr,op:g,on:Vr}):(n=G,G=r),G})())===r&&(w=en())===r&&(w=(function(){var G=n,z;return $l()!==r&&ot()!==r&&(z=ue())!==r&&ot()!==r&&m0()!==r?(st=G,G={type:"array",value:z}):(n=G,G=r),G})()),w}function en(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=hn())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=la())!==r&&(Qr=ot())!==r&&(Pt=hn())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=la())!==r&&(Qr=ot())!==r&&(Pt=hn())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=Jf(G,z))}else n=w,w=r;return w}function hn(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=ds())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=Ia())!==r&&(Qr=ot())!==r&&(Pt=ds())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=Ia())!==r&&(Qr=ot())!==r&&(Pt=ds())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=Jf(G,z))}else n=w,w=r;return w}function ds(){var w,G,z;return(w=cn())===r&&(w=ee())===r&&(w=Fs())===r&&(w=bn())===r&&(w=n,Yo()!==r&&ot()!==r&&(G=en())!==r&&ot()!==r&&Xo()!==r?(st=w,(z=G).parentheses=!0,w=z):(n=w,w=r)),w}function Ns(){var w,G,z,g,Gr,Vr,Qr;return w=n,(G=Wu())===r?(n=w,w=r):(z=n,(g=ot())!==r&&(Gr=qa())!==r&&(Vr=ot())!==r&&(Qr=Wu())!==r?z=g=[g,Gr,Vr,Qr]:(n=z,z=r),z===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(Pt,wn){let Rn={name:[Pt]};return wn!==null&&(Rn.schema=Pt,Rn.name=wn[3]),Rn})(G,z))),w}function Fs(){var w,G,z;return w=n,(G=Ns())!==r&&ot()!==r&&Yo()!==r&&ot()!==r?((z=ue())===r&&(z=null),z!==r&&ot()!==r&&Xo()!==r?(st=w,w=G=(function(g,Gr){return{type:"function",name:g,args:{type:"expr_list",value:Gr},...Do()}})(G,z)):(n=w,w=r)):(n=w,w=r),w===r&&(w=n,(G=Ns())!==r&&(st=w,G=(function(g){return{type:"function",name:g,args:null,...Do()}})(G)),w=G),w}function ue(){var w,G,z,g,Gr,Vr,Qr,Pt;if(w=n,(G=ds())!==r){for(z=[],g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ds())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);g!==r;)z.push(g),g=n,(Gr=ot())!==r&&(Vr=qo())!==r&&(Qr=ot())!==r&&(Pt=ds())!==r?g=Gr=[Gr,Vr,Qr,Pt]:(n=g,g=r);z===r?(n=w,w=r):(st=w,w=G=La(G,z))}else n=w,w=r;return w}function ee(){var w,G,z,g,Gr,Vr,Qr;if(w=n,(G=sf())!==r){for(z=[],Ge.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr($0));g!==r;)z.push(g),Ge.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr($0));z!==r&&(g=sf())!==r?(st=w,w=G={type:"var",name:z.join(""),prefix:"$$",suffix:"$$"}):(n=w,w=r)}else n=w,w=r;if(w===r){if(w=n,(G=Yf())!==r)if((z=ur())!==r)if((g=Yf())!==r){for(Gr=[],Ge.test(t.charAt(n))?(Vr=t.charAt(n),n++):(Vr=r,or===0&&Kr($0));Vr!==r;)Gr.push(Vr),Ge.test(t.charAt(n))?(Vr=t.charAt(n),n++):(Vr=r,or===0&&Kr($0));Gr!==r&&(Vr=Yf())!==r&&(Qr=ur())!==r?(st=n,((function(Pt,wn,Rn){if(Pt!==Rn)return!0})(z,0,Qr)?r:void 0)!==r&&Yf()!==r?(st=w,w=G=(function(Pt,wn,Rn){return{type:"var",name:wn.join(""),prefix:`$${Pt}$`,suffix:`$${Rn}$`}})(z,Gr,Qr)):(n=w,w=r)):(n=w,w=r)}else n=w,w=r;else n=w,w=r;else n=w,w=r;w===r&&(w=n,(G=mv())!==r&&(z=ie())!==r?(st=w,w=G=(function(Pt,wn){return{type:"var",...wn,prefix:Pt}})(G,z)):(n=w,w=r))}return w}function ie(){var w,G,z,g,Gr;return w=n,t.charCodeAt(n)===34?(G='"',n++):(G=r,or===0&&Kr(Iu)),G===r&&(G=null),G!==r&&(z=s())!==r&&(g=(function(){var Vr=n,Qr=[],Pt=n,wn,Rn;for(t.charCodeAt(n)===46?(wn=".",n++):(wn=r,or===0&&Kr(Fv)),wn!==r&&(Rn=s())!==r?Pt=wn=[wn,Rn]:(n=Pt,Pt=r);Pt!==r;)Qr.push(Pt),Pt=n,t.charCodeAt(n)===46?(wn=".",n++):(wn=r,or===0&&Kr(Fv)),wn!==r&&(Rn=s())!==r?Pt=wn=[wn,Rn]:(n=Pt,Pt=r);return Qr!==r&&(st=Vr,Qr=(function(An){let Mn=[];for(let as=0;as<An.length;as++)Mn.push(An[as][1]);return Mn})(Qr)),Vr=Qr})())!==r?(t.charCodeAt(n)===34?(Gr='"',n++):(Gr=r,or===0&&Kr(Iu)),Gr===r&&(Gr=null),Gr===r?(n=w,w=r):(st=w,w=G=(function(Vr,Qr,Pt,wn){if(Vr&&!wn||!Vr&&wn)throw Error("double quoted not match");return fu.push(Qr),{type:"var",name:Qr,members:Pt,quoted:Vr&&wn?'"':null,prefix:null}})(G,z,g,Gr))):(n=w,w=r),w===r&&(w=n,(G=me())!==r&&(st=w,G={type:"var",name:G.value,members:[],quoted:null,prefix:null}),w=G),w}function ro(){var w;return(w=(function(){var G=n,z,g;(z=iu())===r&&(z=$e()),z!==r&&ot()!==r&&$l()!==r&&ot()!==r&&(g=m0())!==r&&ot()!==r&&$l()!==r&&ot()!==r&&m0()!==r?(st=G,Gr=z,z={...Gr,array:{dimension:2}},G=z):(n=G,G=r);var Gr;return G===r&&(G=n,(z=iu())===r&&(z=$e()),z!==r&&ot()!==r&&$l()!==r&&ot()!==r?((g=me())===r&&(g=null),g!==r&&ot()!==r&&m0()!==r?(st=G,z=(function(Vr,Qr){return{...Vr,array:{dimension:1,length:[Qr]}}})(z,g),G=z):(n=G,G=r)):(n=G,G=r),G===r&&(G=n,(z=iu())===r&&(z=$e()),z!==r&&ot()!==r&&Jo()!==r?(st=G,z=(function(Vr){return{...Vr,array:{keyword:"array"}}})(z),G=z):(n=G,G=r))),G})())===r&&(w=$e())===r&&(w=iu())===r&&(w=(function(){var G=n,z,g,Gr;if((z=rv())===r&&(z=Tt()),z!==r)if(ot()!==r)if(Yo()!==r)if(ot()!==r){if(g=[],yl.test(t.charAt(n))?(Gr=t.charAt(n),n++):(Gr=r,or===0&&Kr(jc)),Gr!==r)for(;Gr!==r;)g.push(Gr),yl.test(t.charAt(n))?(Gr=t.charAt(n),n++):(Gr=r,or===0&&Kr(jc));else g=r;g!==r&&(Gr=ot())!==r&&Xo()!==r?(st=G,z={dataType:z,length:parseInt(g.join(""),10),parentheses:!0},G=z):(n=G,G=r)}else n=G,G=r;else n=G,G=r;else n=G,G=r;else n=G,G=r;return G===r&&(G=n,(z=rv())===r&&(z=Tt()),z!==r&&(st=G,z=Xa(z)),(G=z)===r&&(G=(function(){var Vr=n,Qr,Pt,wn,Rn,An;if((Qr=ga())===r&&(Qr=_i()),Qr!==r)if(ot()!==r)if((Pt=Yo())!==r)if(ot()!==r){if(wn=[],yl.test(t.charAt(n))?(Rn=t.charAt(n),n++):(Rn=r,or===0&&Kr(jc)),Rn!==r)for(;Rn!==r;)wn.push(Rn),yl.test(t.charAt(n))?(Rn=t.charAt(n),n++):(Rn=r,or===0&&Kr(jc));else wn=r;wn!==r&&(Rn=ot())!==r&&Xo()!==r&&ot()!==r?((An=Oo())===r&&(An=null),An===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(Mn,as,cs){return{dataType:Mn,length:parseInt(as.join(""),10),parentheses:!0,suffix:cs}})(Qr,wn,An),Vr=Qr)):(n=Vr,Vr=r)}else n=Vr,Vr=r;else n=Vr,Vr=r;else n=Vr,Vr=r;else n=Vr,Vr=r;return Vr===r&&(Vr=n,(Qr=ga())===r&&(Qr=_i()),Qr!==r&&ot()!==r?((Pt=Oo())===r&&(Pt=null),Pt===r?(n=Vr,Vr=r):(st=Vr,Qr=(function(Mn,as){return{dataType:Mn,suffix:as}})(Qr,Pt),Vr=Qr)):(n=Vr,Vr=r)),Vr})())),G})())===r&&(w=(function(){var G=n,z;return(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,4).toLowerCase()==="json"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(jt)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="JSON")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,5).toLowerCase()==="jsonb"?(Gr=t.substr(n,5),n+=5):(Gr=r,or===0&&Kr(Us)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="JSONB")),g})()),z!==r&&(st=G,z=Xa(z)),G=z})())===r&&(w=(function(){var G=n,z;return(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,8).toLowerCase()==="geometry"?(Gr=t.substr(n,8),n+=8):(Gr=r,or===0&&Kr(ol)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="GEOMETRY")),g})())!==r&&(st=G,z={dataType:z}),G=z})())===r&&(w=(function(){var G=n,z;return(z=fl())===r&&(z=Av())===r&&(z=bl())===r&&(z=gu()),z!==r&&$l()!==r&&ot()!==r&&m0()!==r?(st=G,G=z={dataType:z+"[]"}):(n=G,G=r),G===r&&(G=n,(z=fl())===r&&(z=Av())===r&&(z=bl())===r&&(z=gu()),z!==r&&(st=G,z=(function(g){return{dataType:g}})(z)),G=z),G})())===r&&(w=(function(){var G=n,z;return(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,4).toLowerCase()==="uuid"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(zl)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="UUID")),g})())!==r&&(st=G,z={dataType:z}),G=z})())===r&&(w=(function(){var G=n,z;return(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,4).toLowerCase()==="bool"?(Gr=t.substr(n,4),n+=4):(Gr=r,or===0&&Kr(up)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="BOOL")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,7).toLowerCase()==="boolean"?(Gr=t.substr(n,7),n+=7):(Gr=r,or===0&&Kr(xb)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="BOOLEAN")),g})()),z!==r&&(st=G,z=gf(z)),G=z})())===r&&(w=(function(){var G=n,z,g;(z=Du())!==r&&ot()!==r&&(g=Pr())!==r?(st=G,Gr=z,(Vr=g).parentheses=!0,G=z={dataType:Gr,expr:Vr}):(n=G,G=r);var Gr,Vr;return G})())===r&&(w=(function(){var G=n,z;return(z=ap())===r&&(z=Ai()),z!==r&&(st=G,z=Xa(z)),G=z})())===r&&(w=(function(){var G=n,z;return t.substr(n,5).toLowerCase()==="bytea"?(z=t.substr(n,5),n+=5):(z=r,or===0&&Kr(Zl)),z!==r&&(st=G,z={dataType:"BYTEA"}),G=z})())===r&&(w=(function(){var G=n,z;return(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,3).toLowerCase()==="oid"?(Gr=t.substr(n,3),n+=3):(Gr=r,or===0&&Kr(Ot)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="OID")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,8).toLowerCase()==="regclass"?(Gr=t.substr(n,8),n+=8):(Gr=r,or===0&&Kr(hs)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGCLASS")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,12).toLowerCase()==="regcollation"?(Gr=t.substr(n,12),n+=12):(Gr=r,or===0&&Kr(Yi)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGCOLLATION")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,9).toLowerCase()==="regconfig"?(Gr=t.substr(n,9),n+=9):(Gr=r,or===0&&Kr(hl)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGCONFIG")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,13).toLowerCase()==="regdictionary"?(Gr=t.substr(n,13),n+=13):(Gr=r,or===0&&Kr(L0)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGDICTIONARY")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,12).toLowerCase()==="regnamespace"?(Gr=t.substr(n,12),n+=12):(Gr=r,or===0&&Kr(Bn)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGNAMESPACE")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,7).toLowerCase()==="regoper"?(Gr=t.substr(n,7),n+=7):(Gr=r,or===0&&Kr(Qb)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGOPER")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,11).toLowerCase()==="regoperator"?(Gr=t.substr(n,11),n+=11):(Gr=r,or===0&&Kr(C0)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGOPERATOR")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,7).toLowerCase()==="regproc"?(Gr=t.substr(n,7),n+=7):(Gr=r,or===0&&Kr(Hf)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGPROC")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,12).toLowerCase()==="regprocedure"?(Gr=t.substr(n,12),n+=12):(Gr=r,or===0&&Kr(k0)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGPROCEDURE")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,7).toLowerCase()==="regrole"?(Gr=t.substr(n,7),n+=7):(Gr=r,or===0&&Kr(M0)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGROLE")),g})())===r&&(z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,7).toLowerCase()==="regtype"?(Gr=t.substr(n,7),n+=7):(Gr=r,or===0&&Kr(Wi)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="REGTYPE")),g})()),z!==r&&(st=G,z=gf(z)),G=z})()),w}function $e(){var w,G,z,g;if(w=n,(G=yi())===r&&(G=Rc()),G!==r)if(ot()!==r)if(Yo()!==r)if(ot()!==r){if(z=[],yl.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(jc)),g!==r)for(;g!==r;)z.push(g),yl.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(jc));else z=r;z!==r&&(g=ot())!==r&&Xo()!==r?(st=w,w=G={dataType:G,length:parseInt(z.join(""),10),parentheses:!0}):(n=w,w=r)}else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;return w===r&&(w=n,(G=yi())===r&&(G=(function(){var Gr,Vr,Qr,Pt;return Gr=n,t.substr(n,9).toLowerCase()==="character"?(Vr=t.substr(n,9),n+=9):(Vr=r,or===0&&Kr(R0)),Vr===r?(n=Gr,Gr=r):(Qr=n,or++,Pt=er(),or--,Pt===r?Qr=void 0:(n=Qr,Qr=r),Qr===r?(n=Gr,Gr=r):(st=Gr,Gr=Vr="CHARACTER")),Gr})()),G!==r&&(st=w,G=(function(Gr){return{dataType:Gr}})(G)),(w=G)===r&&(w=n,(G=Rc())!==r&&(st=w,G=Xa(G)),w=G)),w}function Gs(){var w,G,z;return w=n,(G=Ev())===r&&(G=null),G!==r&&ot()!==r?((z=(function(){var g,Gr,Vr,Qr;return g=n,t.substr(n,8).toLowerCase()==="zerofill"?(Gr=t.substr(n,8),n+=8):(Gr=r,or===0&&Kr(d0)),Gr===r?(n=g,g=r):(Vr=n,or++,Qr=er(),or--,Qr===r?Vr=void 0:(n=Vr,Vr=r),Vr===r?(n=g,g=r):(st=g,g=Gr="ZEROFILL")),g})())===r&&(z=null),z===r?(n=w,w=r):(st=w,w=G=(function(g,Gr){let Vr=[];return g&&Vr.push(g),Gr&&Vr.push(Gr),Vr})(G,z))):(n=w,w=r),w}function iu(){var w,G,z,g,Gr,Vr,Qr,Pt,wn,Rn,An,Mn,as,cs;if(w=n,(G=Wa())===r&&(G=vc())===r&&(G=cb())===r&&(G=ad())===r&&(G=hi())===r&&(G=A0())===r&&(G=Xi())===r&&(G=Hu())===r&&(G=vl())===r&&(G=ap())===r&&(G=rc())===r&&(G=Ei()),G!==r)if((z=ot())!==r)if((g=Yo())!==r)if((Gr=ot())!==r){if(Vr=[],yl.test(t.charAt(n))?(Qr=t.charAt(n),n++):(Qr=r,or===0&&Kr(jc)),Qr!==r)for(;Qr!==r;)Vr.push(Qr),yl.test(t.charAt(n))?(Qr=t.charAt(n),n++):(Qr=r,or===0&&Kr(jc));else Vr=r;if(Vr!==r)if((Qr=ot())!==r){if(Pt=n,(wn=qo())!==r)if((Rn=ot())!==r){if(An=[],yl.test(t.charAt(n))?(Mn=t.charAt(n),n++):(Mn=r,or===0&&Kr(jc)),Mn!==r)for(;Mn!==r;)An.push(Mn),yl.test(t.charAt(n))?(Mn=t.charAt(n),n++):(Mn=r,or===0&&Kr(jc));else An=r;An===r?(n=Pt,Pt=r):Pt=wn=[wn,Rn,An]}else n=Pt,Pt=r;else n=Pt,Pt=r;Pt===r&&(Pt=null),Pt!==r&&(wn=ot())!==r&&(Rn=Xo())!==r&&(An=ot())!==r?((Mn=Gs())===r&&(Mn=null),Mn===r?(n=w,w=r):(st=w,as=Pt,cs=Mn,w=G={dataType:G,length:parseInt(Vr.join(""),10),scale:as&&parseInt(as[2].join(""),10),parentheses:!0,suffix:cs})):(n=w,w=r)}else n=w,w=r;else n=w,w=r}else n=w,w=r;else n=w,w=r;else n=w,w=r;else n=w,w=r;if(w===r){if(w=n,(G=Wa())===r&&(G=vc())===r&&(G=cb())===r&&(G=ad())===r&&(G=hi())===r&&(G=A0())===r&&(G=Xi())===r&&(G=Hu())===r&&(G=vl())===r&&(G=ap())===r&&(G=rc())===r&&(G=Ei()),G!==r){if(z=[],yl.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(jc)),g!==r)for(;g!==r;)z.push(g),yl.test(t.charAt(n))?(g=t.charAt(n),n++):(g=r,or===0&&Kr(jc));else z=r;z!==r&&(g=ot())!==r?((Gr=Gs())===r&&(Gr=null),Gr===r?(n=w,w=r):(st=w,w=G=(function(_s,we,Pe){return{dataType:_s,length:parseInt(we.join(""),10),suffix:Pe}})(G,z,Gr))):(n=w,w=r)}else n=w,w=r;w===r&&(w=n,(G=Wa())===r&&(G=vc())===r&&(G=cb())===r&&(G=ad())===r&&(G=hi())===r&&(G=A0())===r&&(G=Xi())===r&&(G=Hu())===r&&(G=vl())===r&&(G=ap())===r&&(G=rc())===r&&(G=Ei()),G!==r&&(z=ot())!==r?((g=Gs())===r&&(g=null),g!==r&&(Gr=ot())!==r?(st=w,w=G=(function(_s,we){return{dataType:_s,suffix:we}})(G,g)):(n=w,w=r)):(n=w,w=r))}return w}function Oo(){var w,G,z;return w=n,t.substr(n,7).toLowerCase()==="without"?(G=t.substr(n,7),n+=7):(G=r,or===0&&Kr(cc)),G===r&&(t.substr(n,4).toLowerCase()==="with"?(G=t.substr(n,4),n+=4):(G=r,or===0&&Kr(Ui))),G!==r&&ot()!==r&&ga()!==r&&ot()!==r?(t.substr(n,4).toLowerCase()==="zone"?(z=t.substr(n,4),n+=4):(z=r,or===0&&Kr(h0)),z===r?(n=w,w=r):(st=w,w=G=[G.toUpperCase(),"TIME","ZONE"])):(n=w,w=r),w}let wu={ALTER:!0,ALL:!0,ADD:!0,AND:!0,AS:!0,ASC:!0,BETWEEN:!0,BY:!0,CALL:!0,CASE:!0,CREATE:!0,CONTAINS:!0,CURRENT_DATE:!0,CURRENT_TIME:!0,CURRENT_TIMESTAMP:!0,CURRENT_USER:!0,DELETE:!0,DESC:!0,DISTINCT:!0,DROP:!0,ELSE:!0,END:!0,EXISTS:!0,EXPLAIN:!0,FALSE:!0,FROM:!0,FULL:!0,GROUP:!0,HAVING:!0,IN:!0,INNER:!0,INSERT:!0,INTO:!0,IS:!0,JOIN:!0,JSON:!0,LEFT:!0,LIKE:!0,LIMIT:!0,NOT:!0,NULL:!0,NULLS:!0,OFFSET:!0,ON:!0,OR:!0,ORDER:!0,OUTER:!0,RECURSIVE:!0,RENAME:!0,RIGHT:!0,ROW:!0,ROWS:!0,SELECT:!0,SESSION_USER:!0,SET:!0,SHOW:!0,SYSTEM_USER:!0,TABLE:!0,THEN:!0,TRUE:!0,TRUNCATE:!0,UNION:!0,UPDATE:!0,USING:!0,WITH:!0,WHEN:!0,WHERE:!0,WINDOW:!0,GLOBAL:!0,SESSION:!0,LOCAL:!0,PERSIST:!0,PERSIST_ONLY:!0},Ea={avg:!0,sum:!0,count:!0,max:!0,min:!0,group_concat:!0,std:!0,variance:!0,current_date:!0,current_time:!0,current_timestamp:!0,current_user:!0,user:!0,session_user:!0,system_user:!0};function Do(){return Ce.includeLocations?{loc:Wc(st,n)}:{}}function Ka(w,G){return{type:"unary_expr",operator:w,expr:G}}function dc(w,G,z){return{type:"binary_expr",operator:w,left:G,right:z,...Do()}}function _f(w){let G=To(9007199254740991);return!(To(w)<G)}function La(w,G,z=3){let g=[w];for(let Gr=0;Gr<G.length;Gr++)delete G[Gr][z].tableList,delete G[Gr][z].columnList,g.push(G[Gr][z]);return g}function Db(w,G){let z=w;for(let g=0;g<G.length;g++)z=dc(G[g][1],z,G[g][3]);return z}function Wf(w){return fd[w]||w||null}function Wo(w){let G=new Set;for(let z of w.keys()){let g=z.split("::");if(!g){G.add(z);break}g&&g[1]&&(g[1]=Wf(g[1])),G.add(g.join("::"))}return Array.from(G)}function $b(w){return typeof w=="string"?{type:"same",value:w}:w}function pu(w){let G=w.type||w.ast&&w.ast.type;if(G==="aggr_func")throw Error("Aggregations are not supported in lambda expressions");if(G==="select")throw Error("Subqueries are not supported in lambda expressions");return G==="binary_expr"&&(pu(w.left),pu(w.right)),!0}let fu=[],Vu=new Set,ra=new Set,fd={};if((Ie=ge())!==r&&n===t.length)return Ie;throw Ie!==r&&n<t.length&&Kr({type:"end"}),Mb(Ra,xa<t.length?t.charAt(xa):null,xa<t.length?Wc(xa,xa+1):Wc(xa,xa))}}},function(Kc,pl,Cu){Kc.exports=Cu(16)},function(Kc,pl,Cu){Cu.r(pl),Cu.d(pl,"Parser",(function(){return mb})),Cu.d(pl,"util",(function(){return To}));var To={};function go(ft){return(go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tn){return typeof tn}:function(tn){return tn&&typeof Symbol=="function"&&tn.constructor===Symbol&&tn!==Symbol.prototype?"symbol":typeof tn})(ft)}Cu.r(To),Cu.d(To,"arrayStructTypeToSQL",(function(){return dl})),Cu.d(To,"autoIncrementToSQL",(function(){return I0})),Cu.d(To,"columnOrderListToSQL",(function(){return ji})),Cu.d(To,"commonKeywordArgsToSQL",(function(){return xc})),Cu.d(To,"commonOptionConnector",(function(){return Ie})),Cu.d(To,"connector",(function(){return r})),Cu.d(To,"commonTypeValue",(function(){return Gi})),Cu.d(To,"commentToSQL",(function(){return Gl})),Cu.d(To,"createBinaryExpr",(function(){return ge})),Cu.d(To,"createValueExpr",(function(){return po})),Cu.d(To,"dataTypeToSQL",(function(){return T0})),Cu.d(To,"DEFAULT_OPT",(function(){return t})),Cu.d(To,"escape",(function(){return Dn})),Cu.d(To,"literalToSQL",(function(){return _o})),Cu.d(To,"columnIdentifierToSql",(function(){return Hs})),Cu.d(To,"getParserOpt",(function(){return Pn})),Cu.d(To,"identifierToSql",(function(){return Uo})),Cu.d(To,"onPartitionsToSQL",(function(){return Fi})),Cu.d(To,"replaceParams",(function(){return mi})),Cu.d(To,"returningToSQL",(function(){return nc})),Cu.d(To,"hasVal",(function(){return pe})),Cu.d(To,"setParserOpt",(function(){return Ae})),Cu.d(To,"toUpper",(function(){return Ps})),Cu.d(To,"topToSQL",(function(){return ou})),Cu.d(To,"triggerEventToSQL",(function(){return Fl}));var t={database:"mysql",type:"table",trimQuery:!0,parseOptions:{includeLocations:!1}},Ce=t;function Ie(ft,tn,_n){if(_n)return ft?`${ft.toUpperCase()} ${tn(_n)}`:tn(_n)}function r(ft,tn){if(tn)return`${ft.toUpperCase()} ${tn}`}function po(ft){var tn=go(ft);if(Array.isArray(ft))return{type:"expr_list",value:ft.map(po)};if(ft===null)return{type:"null",value:null};switch(tn){case"boolean":return{type:"bool",value:ft};case"string":return{type:"string",value:ft};case"number":return{type:"number",value:ft};default:throw Error(`Cannot convert value "${tn}" to SQL`)}}function ge(ft,tn,_n){var En={operator:ft,type:"binary_expr"};return En.left=tn.type?tn:po(tn),ft==="BETWEEN"||ft==="NOT BETWEEN"?(En.right={type:"expr_list",value:[po(_n[0]),po(_n[1])]},En):(En.right=_n.type?_n:po(_n),En)}function Dn(ft){return ft}function Pn(){return Ce}function Ae(ft){Ce=ft}function ou(ft){if(ft){var tn=ft.value,_n=ft.percent,En=`TOP ${ft.parentheses?`(${tn})`:tn}`;return _n?`${En} ${_n.toUpperCase()}`:En}}function Hs(ft){var tn=Pn().database;if(ft)switch(tn&&tn.toLowerCase()){case"athena":case"db2":case"postgresql":case"redshift":case"snowflake":case"noql":case"trino":case"sqlite":return`"${ft}"`;case"transactsql":return`[${ft}]`;default:return`\`${ft}\``}}function Uo(ft,tn,_n){if(tn===!0)return`'${ft}'`;if(ft){if(ft==="*")return ft;if(_n)return`${_n}${ft}${_n}`;var En=Pn().database;switch(En&&En.toLowerCase()){case"mysql":case"mariadb":return`\`${ft}\``;case"athena":case"postgresql":case"redshift":case"snowflake":case"trino":case"noql":case"sqlite":return`"${ft}"`;case"transactsql":return`[${ft}]`;case"bigquery":case"db2":return ft;default:return`\`${ft}\``}}}function Ps(ft){if(ft)return ft.toUpperCase()}function pe(ft){return ft}function _o(ft){if(ft){var tn=ft.prefix,_n=ft.type,En=ft.parentheses,Os=ft.suffix,gs=ft.value,Ys=go(ft)==="object"?gs:ft;switch(_n){case"backticks_quote_string":Ys=`\`${gs}\``;break;case"string":Ys=`'${gs}'`;break;case"regex_string":Ys=`r"${gs}"`;break;case"hex_string":Ys=`X'${gs}'`;break;case"full_hex_string":Ys=`0x${gs}`;break;case"natural_string":Ys=`N'${gs}'`;break;case"bit_string":Ys=`b'${gs}'`;break;case"double_quote_string":Ys=`"${gs}"`;break;case"single_quote_string":Ys=`'${gs}'`;break;case"boolean":case"bool":Ys=gs?"TRUE":"FALSE";break;case"null":Ys="NULL";break;case"star":Ys="*";break;case"param":Ys=`${tn||":"}${gs}`,tn=null;break;case"origin":Ys=gs.toUpperCase();break;case"date":case"datetime":case"time":case"timestamp":Ys=`${_n.toUpperCase()} '${gs}'`;break;case"var_string":Ys=`N'${gs}'`;break;case"unicode_string":Ys=`U&'${gs}'`}var Te=[];return tn&&Te.push(Ps(tn)),Te.push(Ys),Os&&(typeof Os=="string"&&Te.push(Os),go(Os)==="object"&&(Os.collate?Te.push(xf(Os.collate)):Te.push(_o(Os)))),Ys=Te.join(" "),En?`(${Ys})`:Ys}}function Gi(ft){if(!ft)return[];var tn=ft.type,_n=ft.symbol,En=ft.value;return[tn.toUpperCase(),_n,typeof En=="string"?En.toUpperCase():_o(En)].filter(pe)}function mi(ft,tn){return(function _n(En,Os){return Object.keys(En).filter((function(gs){var Ys=En[gs];return Array.isArray(Ys)||go(Ys)==="object"&&Ys!==null})).forEach((function(gs){var Ys=En[gs];if(go(Ys)!=="object"||Ys.type!=="param")return _n(Ys,Os);if(Os[Ys.value]===void 0)throw Error(`no value for parameter :${Ys.value} found`);return En[gs]=po(Os[Ys.value]),null})),En})(JSON.parse(JSON.stringify(ft)),tn)}function Fi(ft){var tn=ft.type,_n=ft.partitions;return[Ps(tn),`(${_n.map((function(En){if(En.type!=="range")return _o(En);var Os=En.start,gs=En.end,Ys=En.symbol;return`${_o(Os)} ${Ps(Ys)} ${_o(gs)}`})).join(", ")})`].join(" ")}function T0(ft){var tn=ft.schema,_n=ft.dataType,En=ft.length,Os=ft.parentheses,gs=ft.scale,Ys=ft.suffix,Te="";return En!=null&&(Te=gs?`${En}, ${gs}`:En),Os&&(Te=`(${Te})`),Ys&&Ys.length&&(Te+=` ${Ys.join(" ")}`),`${tn?`${tn}.`:""}${_n}${Te}`}function dl(ft){if(ft){var tn=ft.dataType,_n=ft.definition,En=ft.anglebracket,Os=Ps(tn);if(Os!=="ARRAY"&&Os!=="STRUCT")return Os;var gs=_n&&_n.map((function(Ys){return[Ys.field_name,dl(Ys.field_type)].filter(pe).join(" ")})).join(", ");return En?`${Os}<${gs}>`:`${Os} ${gs}`}}function Gl(ft){if(ft){var tn=[],_n=ft.keyword,En=ft.symbol,Os=ft.value;return tn.push(_n.toUpperCase()),En&&tn.push(En),tn.push(_o(Os)),tn.join(" ")}}function Fl(ft){return ft.map((function(tn){var _n=tn.keyword,En=tn.args,Os=[Ps(_n)];if(En){var gs=En.keyword,Ys=En.columns;Os.push(Ps(gs),Ys.map(Ui).join(", "))}return Os.join(" ")})).join(" OR ")}function nc(ft){return ft?["RETURNING",ft.columns.map(kf).filter(pe).join(", ")].join(" "):""}function xc(ft){return ft?[Ps(ft.keyword),Ps(ft.args)]:[]}function I0(ft){if(ft){if(typeof ft=="string"){var tn=Pn().database;return(tn&&tn.toLowerCase())==="sqlite"?"AUTOINCREMENT":"AUTO_INCREMENT"}var _n=ft.keyword,En=ft.seed,Os=ft.increment,gs=ft.parentheses,Ys=Ps(_n);return gs&&(Ys+=`(${_o(En)}, ${_o(Os)})`),Ys}}function ji(ft){if(ft)return ft.map(Kv).filter(pe).join(", ")}function af(ft){return(function(tn){if(Array.isArray(tn))return qf(tn)})(ft)||(function(tn){if(typeof Symbol<"u"&&tn[Symbol.iterator]!=null||tn["@@iterator"]!=null)return Array.from(tn)})(ft)||(function(tn,_n){if(tn){if(typeof tn=="string")return qf(tn,_n);var En={}.toString.call(tn).slice(8,-1);return En==="Object"&&tn.constructor&&(En=tn.constructor.name),En==="Map"||En==="Set"?Array.from(tn):En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En)?qf(tn,_n):void 0}})(ft)||(function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function qf(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function Uc(ft){if(!ft)return[];var tn=ft.keyword,_n=ft.type;return[tn.toUpperCase(),Ps(_n)]}function wc(ft){if(ft){var tn=ft.type,_n=ft.expr,En=ft.symbol,Os=tn.toUpperCase(),gs=[];switch(gs.push(Os),Os){case"KEY_BLOCK_SIZE":En&&gs.push(En),gs.push(_o(_n));break;case"BTREE":case"HASH":gs.length=0,gs.push.apply(gs,af(Uc(ft)));break;case"WITH PARSER":gs.push(_n);break;case"VISIBLE":case"INVISIBLE":break;case"COMMENT":gs.shift(),gs.push(Gl(ft));break;case"DATA_COMPRESSION":gs.push(En,Ps(_n.value),Fi(_n.on));break;default:gs.push(En,_o(_n))}return gs.filter(pe).join(" ")}}function Ll(ft){return ft?ft.map(wc):[]}function jl(ft){var tn=ft.constraint_type,_n=ft.index_type,En=ft.index_options,Os=En===void 0?[]:En,gs=ft.definition,Ys=ft.on,Te=ft.with,ye=[];if(ye.push.apply(ye,af(Uc(_n))),gs&&gs.length){var Be=Ps(tn)==="CHECK"?`(${je(gs[0])})`:`(${gs.map((function(io){return je(io)})).join(", ")})`;ye.push(Be)}return ye.push(Ll(Os).join(" ")),Te&&ye.push(`WITH (${Ll(Te).join(", ")})`),Ys&&ye.push(`ON [${Ys}]`),ye}function Oi(ft){var tn=ft.operator||ft.op,_n=je(ft.right),En=!1;if(Array.isArray(_n)){switch(tn){case"=":tn="IN";break;case"!=":tn="NOT IN";break;case"BETWEEN":case"NOT BETWEEN":En=!0,_n=`${_n[0]} AND ${_n[1]}`}En||(_n=`(${_n.join(", ")})`)}var Os=ft.right.escape||{},gs=[Array.isArray(ft.left)?ft.left.map(je).join(", "):je(ft.left),tn,_n,Ps(Os.type),je(Os.value)].filter(pe).join(tn==="."?"":" ");return[ft.parentheses?`(${gs})`:gs].join(" ")}function bb(ft){var tn=ft.name,_n=ft.type;switch(_n){case"table":case"view":var En=[Uo(tn.db),Uo(tn.table)].filter(pe).join(".");return`${Ps(_n)} ${En}`;case"column":return`COLUMN ${Ui(tn)}`;default:return`${Ps(_n)} ${_o(tn)}`}}function Vi(ft){var tn=ft.keyword,_n=ft.expr;return[Ps(tn),_o(_n)].filter(pe).join(" ")}function zc(ft){return(function(tn){if(Array.isArray(tn))return kc(tn)})(ft)||(function(tn){if(typeof Symbol<"u"&&tn[Symbol.iterator]!=null||tn["@@iterator"]!=null)return Array.from(tn)})(ft)||(function(tn,_n){if(tn){if(typeof tn=="string")return kc(tn,_n);var En={}.toString.call(tn).slice(8,-1);return En==="Object"&&tn.constructor&&(En=tn.constructor.name),En==="Map"||En==="Set"?Array.from(tn):En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En)?kc(tn,_n):void 0}})(ft)||(function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function kc(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function vb(ft){return ft?[ft.prefix.map(_o).join(" "),je(ft.value),ft.suffix.map(_o).join(" ")]:[]}function Zc(ft){return ft?ft.fetch||ft.offset?(_n=(tn=ft).fetch,En=tn.offset,[].concat(zc(vb(En)),zc(vb(_n))).filter(pe).join(" ")):(function(Os){var gs=Os.seperator,Ys=Os.value;return Ys.length===1&&gs==="offset"?r("OFFSET",je(Ys[0])):r("LIMIT",Ys.map(je).join(`${gs==="offset"?" ":""}${Ps(gs)} `))})(ft):"";var tn,_n,En}function nl(ft){if(ft&&ft.length!==0)return`WITH ${ft[0].recursive?"RECURSIVE ":""}${ft.map((function(tn){var _n=tn.name,En=tn.stmt,Os=tn.columns,gs=Array.isArray(Os)?`(${Os.map(Ui).join(", ")})`:"",Ys=Ie(En.type==="values"?"VALUES":"",je,En);return`${_n.type==="default"?Uo(_n.value):_o(_n)}${gs} AS (${Ys})`})).join(", ")}`}function Xf(ft){if(ft&&ft.position){var tn=ft.keyword,_n=ft.expr,En=[],Os=Ps(tn);return Os==="VAR"?En.push(_n.map(zf).join(", ")):En.push(Os,typeof _n=="string"?Uo(_n):je(_n)),En.filter(pe).join(" ")}}function gl(ft){var tn=ft.as_struct_val,_n=ft.columns,En=ft.collate,Os=ft.distinct,gs=ft.for,Ys=ft.from,Te=ft.for_sys_time_as_of,ye=Te===void 0?{}:Te,Be=ft.locking_read,io=ft.groupby,Ro=ft.having,So=ft.into,uu=So===void 0?{}:So,ko=ft.isolation,yu=ft.limit,au=ft.options,Iu=ft.orderby,mu=ft.parentheses_symbol,Ju=ft.qualify,ua=ft.top,Sa=ft.window,ma=ft.with,Bi=ft.where,sa=[nl(ma),"SELECT",Ps(tn)];Array.isArray(au)&&sa.push(au.join(" ")),sa.push((function(fi){if(fi){if(typeof fi=="string")return fi;var Wl=fi.type,ec=fi.columns,Fc=[Ps(Wl)];return ec&&Fc.push(`(${ec.map(je).join(", ")})`),Fc.filter(pe).join(" ")}})(Os),ou(ua),ki(_n,Ys));var di=uu.position,Hi="";di&&(Hi=Ie("INTO",Xf,uu)),di==="column"&&sa.push(Hi),sa.push(Ie("FROM",na,Ys)),di==="from"&&sa.push(Hi);var S0=ye||{},l0=S0.keyword,Ov=S0.expr;sa.push(Ie(l0,je,Ov)),sa.push(Ie("WHERE",je,Bi)),io&&(sa.push(r("GROUP BY",o0(io.columns).join(", "))),sa.push(o0(io.modifiers).join(", "))),sa.push(Ie("HAVING",je,Ro)),sa.push(Ie("QUALIFY",je,Ju)),sa.push(Ie("WINDOW",je,Sa)),sa.push(xi(Iu,"order by")),sa.push(xf(En)),sa.push(Zc(yu)),ko&&sa.push(Ie(ko.keyword,_o,ko.expr)),sa.push(Ps(Be)),di==="end"&&sa.push(Hi),sa.push((function(fi){if(fi){var Wl=fi.expr,ec=fi.keyword,Fc=[Ps(fi.type),Ps(ec)];return Wl?`${Fc.join(" ")}(${je(Wl)})`:Fc.join(" ")}})(gs));var lv=sa.filter(pe).join(" ");return mu?`(${lv})`:lv}function lf(ft,tn){var _n=typeof Symbol<"u"&&ft[Symbol.iterator]||ft["@@iterator"];if(!_n){if(Array.isArray(ft)||(_n=(function(ye,Be){if(ye){if(typeof ye=="string")return Jc(ye,Be);var io={}.toString.call(ye).slice(8,-1);return io==="Object"&&ye.constructor&&(io=ye.constructor.name),io==="Map"||io==="Set"?Array.from(ye):io==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(io)?Jc(ye,Be):void 0}})(ft))||tn&&ft&&typeof ft.length=="number"){_n&&(ft=_n);var En=0,Os=function(){};return{s:Os,n:function(){return En>=ft.length?{done:!0}:{done:!1,value:ft[En++]}},e:function(ye){throw ye},f:Os}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gs,Ys=!0,Te=!1;return{s:function(){_n=_n.call(ft)},n:function(){var ye=_n.next();return Ys=ye.done,ye},e:function(ye){Te=!0,gs=ye},f:function(){try{Ys||_n.return==null||_n.return()}finally{if(Te)throw gs}}}}function Jc(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function Qc(ft){if(!ft||ft.length===0)return"";var tn,_n=[],En=lf(ft);try{for(En.s();!(tn=En.n()).done;){var Os=tn.value,gs={},Ys=Os.value;for(var Te in Os)Te!=="value"&&Te!=="keyword"&&(gs[Te]=Os[Te]);var ye=[Ui(gs)],Be="";Ys&&(Be=je(Ys),ye.push("=",Be)),_n.push(ye.filter(pe).join(" "))}}catch(io){En.e(io)}finally{En.f()}return _n.join(", ")}function gv(ft){var tn=ft.name,_n=ft.value;return[`@${tn}`,"=",je(_n)].filter(pe).join(" ")}function g0(ft){if(!ft)return"";var tn=ft.keyword,_n=ft.terminated,En=ft.enclosed,Os=ft.escaped;return[Ps(tn),_o(_n),_o(En),_o(Os)].filter(pe).join(" ")}function Ki(ft){if(!ft)return"";var tn=ft.keyword,_n=ft.starting,En=ft.terminated;return[Ps(tn),_o(_n),_o(En)].filter(pe).join(" ")}function Pb(ft){if(!ft)return"";var tn=ft.count,_n=ft.suffix;return["IGNORE",_o(tn),_n].filter(pe).join(" ")}function ei(ft){if(!ft)return"";var tn=ft.mode,_n=ft.local,En=ft.file,Os=ft.replace_ignore,gs=ft.table,Ys=ft.partition,Te=ft.character_set,ye=ft.column,Be=ft.fields,io=ft.lines,Ro=ft.set,So=ft.ignore;return["LOAD DATA",Ps(tn),Ps(_n),"INFILE",_o(En),Ps(Os),"INTO TABLE",ca(gs),r0(Ys),Ie("CHARACTER SET",_o,Te),g0(Be),Ki(io),Pb(So),ki(ye),Ie("SET",Qc,Ro)].filter(pe).join(" ")}function pb(ft){var tn=ft.left,_n=ft.right,En=ft.symbol;tn.keyword=ft.keyword;var Os=je(tn),gs=je(_n);return[Os,Ps(En),gs].filter(pe).join(" ")}function j0(ft){var tn,_n,En,Os,gs=ft.keyword,Ys=ft.suffix,Te="";switch(Ps(gs)){case"BINLOG":_n=(tn=ft).in,En=tn.from,Os=tn.limit,Te=[Ie("IN",_o,_n&&_n.right),Ie("FROM",na,En),Zc(Os)].filter(pe).join(" ");break;case"CHARACTER":case"COLLATION":Te=(function(ye){var Be=ye.expr;if(Be)return Ps(Be.op)==="LIKE"?Ie("LIKE",_o,Be.right):Ie("WHERE",je,Be)})(ft);break;case"COLUMNS":case"INDEXES":case"INDEX":Te=Ie("FROM",na,ft.from);break;case"GRANTS":Te=(function(ye){var Be=ye.for;if(Be){var io=Be.user,Ro=Be.host,So=Be.role_list,uu=`'${io}'`;return Ro&&(uu+=`@'${Ro}'`),["FOR",uu,So&&"USING",So&&So.map((function(ko){return`'${ko}'`})).join(", ")].filter(pe).join(" ")}})(ft);break;case"CREATE":Te=Ie("",ca,ft[Ys]);break;case"VAR":Te=zf(ft.var),gs=""}return["SHOW",Ps(gs),Ps(Ys),Te].filter(pe).join(" ")}var B0={alter:function(ft){var tn=ft.keyword;switch(tn===void 0?"table":tn){case"aggregate":return(function(_n){var En=_n.args,Os=_n.expr,gs=_n.keyword,Ys=_n.name,Te=_n.type,ye=En.expr,Be=En.orderby;return[Ps(Te),Ps(gs),[[Uo(Ys.schema),Uo(Ys.name)].filter(pe).join("."),`(${ye.map(N0).join(", ")}${Be?[" ORDER","BY",Be.map(N0).join(", ")].join(" "):""})`].filter(pe).join(""),Y0(Os)].filter(pe).join(" ")})(ft);case"table":return(function(_n){var En=_n.type,Os=_n.table,gs=_n.if_exists,Ys=_n.prefix,Te=_n.expr,ye=Te===void 0?[]:Te,Be=Ps(En),io=na(Os),Ro=ye.map(je);return[Be,"TABLE",Ps(gs),_o(Ys),io,Ro.join(", ")].filter(pe).join(" ")})(ft);case"schema":return(function(_n){var En=_n.expr,Os=_n.keyword,gs=_n.schema;return[Ps(_n.type),Ps(Os),Uo(gs),Y0(En)].filter(pe).join(" ")})(ft);case"sequence":return(function(_n){var En=_n.type,Os=_n.keyword,gs=_n.sequence,Ys=_n.if_exists,Te=_n.expr,ye=Te===void 0?[]:Te,Be=Ps(En),io=na(gs),Ro=ye.map(Kf);return[Be,Ps(Os),Ps(Ys),io,Ro.join(", ")].filter(pe).join(" ")})(ft);case"domain":case"type":return(function(_n){var En=_n.expr,Os=_n.keyword,gs=_n.name;return[Ps(_n.type),Ps(Os),[Uo(gs.schema),Uo(gs.name)].filter(pe).join("."),Y0(En)].filter(pe).join(" ")})(ft);case"function":return(function(_n){var En=_n.args,Os=_n.expr,gs=_n.keyword,Ys=_n.name;return[Ps(_n.type),Ps(gs),[[Uo(Ys.schema),Uo(Ys.name)].filter(pe).join("."),En&&`(${En.expr?En.expr.map(N0).join(", "):""})`].filter(pe).join(""),Y0(Os)].filter(pe).join(" ")})(ft);case"view":return(function(_n){var En=_n.type,Os=_n.columns,gs=_n.attributes,Ys=_n.select,Te=_n.view,ye=_n.with,Be=[Ps(En),"VIEW",ca(Te)];return Os&&Be.push(`(${Os.map(Ui).join(", ")})`),gs&&Be.push(`WITH ${gs.map(Ps).join(", ")}`),Be.push("AS",gl(Ys)),ye&&Be.push(Ps(ye)),Be.filter(pe).join(" ")})(ft)}},analyze:function(ft){var tn=ft.type,_n=ft.table;return[Ps(tn),ca(_n)].join(" ")},attach:function(ft){var tn=ft.type,_n=ft.database,En=ft.expr,Os=ft.as,gs=ft.schema;return[Ps(tn),Ps(_n),je(En),Ps(Os),Uo(gs)].filter(pe).join(" ")},create:function(ft){var tn=ft.keyword,_n="";switch(tn.toLowerCase()){case"aggregate":_n=(function(En){var Os=En.type,gs=En.replace,Ys=En.keyword,Te=En.name,ye=En.args,Be=En.options,io=[Ps(Os),Ps(gs),Ps(Ys)],Ro=[Uo(Te.schema),Te.name].filter(pe).join("."),So=`${ye.expr.map(N0).join(", ")}${ye.orderby?[" ORDER","BY",ye.orderby.map(N0).join(", ")].join(" "):""}`;return io.push(`${Ro}(${So})`,`(${Be.map(sl).join(", ")})`),io.filter(pe).join(" ")})(ft);break;case"table":_n=(function(En){var Os=En.type,gs=En.keyword,Ys=En.table,Te=En.like,ye=En.as,Be=En.temporary,io=En.if_not_exists,Ro=En.create_definitions,So=En.table_options,uu=En.ignore_replace,ko=En.replace,yu=En.partition_of,au=En.query_expr,Iu=En.unlogged,mu=En.with,Ju=[Ps(Os),Ps(ko),Ps(Be),Ps(Iu),Ps(gs),Ps(io),na(Ys)];if(Te){var ua=Te.type,Sa=na(Te.table);return Ju.push(Ps(ua),Sa),Ju.filter(pe).join(" ")}if(yu)return Ju.concat([Gb(yu)]).filter(pe).join(" ");if(Ro&&Ju.push(`(${Ro.map(Kf).join(", ")})`),So){var ma=Pn().database,Bi=ma&&ma.toLowerCase()==="sqlite"?", ":" ";Ju.push(So.map(Qa).join(Bi))}if(mu){var sa=mu.map((function(di){return[_o(di.keyword),Ps(di.symbol),_o(di.value)].join(" ")})).join(", ");Ju.push(`WITH (${sa})`)}return Ju.push(Ps(uu),Ps(ye)),au&&Ju.push(Mc(au)),Ju.filter(pe).join(" ")})(ft);break;case"trigger":_n=ft.resource==="constraint"?(function(En){var Os=En.constraint,gs=En.constraint_kw,Ys=En.deferrable,Te=En.events,ye=En.execute,Be=En.for_each,io=En.from,Ro=En.location,So=En.keyword,uu=En.or,ko=En.type,yu=En.table,au=En.when,Iu=[Ps(ko),Ps(uu),Ps(gs),Ps(So),Uo(Os),Ps(Ro)],mu=Fl(Te);return Iu.push(mu,"ON",ca(yu)),io&&Iu.push("FROM",ca(io)),Iu.push.apply(Iu,bf(xc(Ys)).concat(bf(xc(Be)))),au&&Iu.push(Ps(au.type),je(au.cond)),Iu.push(Ps(ye.keyword),H0(ye.expr)),Iu.filter(pe).join(" ")})(ft):(function(En){var Os=En.definer,gs=En.for_each,Ys=En.keyword,Te=En.execute,ye=En.type,Be=En.table,io=En.if_not_exists,Ro=En.temporary,So=En.trigger,uu=En.events,ko=En.order,yu=En.time,au=En.when,Iu=[Ps(ye),Ps(Ro),je(Os),Ps(Ys),Ps(io),ca(So),Ps(yu),uu.map((function(mu){var Ju=[Ps(mu.keyword)],ua=mu.args;return ua&&Ju.push(Ps(ua.keyword),ua.columns.map(Ui).join(", ")),Ju.join(" ")})),"ON",ca(Be),Ps(gs&&gs.keyword),Ps(gs&&gs.args),ko&&`${Ps(ko.keyword)} ${Uo(ko.trigger)}`,Ie("WHEN",je,au),Ps(Te.prefix)];switch(Te.type){case"set":Iu.push(Ie("SET",Qc,Te.expr));break;case"multiple":Iu.push(Cl(Te.expr.ast))}return Iu.push(Ps(Te.suffix)),Iu.filter(pe).join(" ")})(ft);break;case"extension":_n=(function(En){var Os=En.extension,gs=En.from,Ys=En.if_not_exists,Te=En.keyword,ye=En.schema,Be=En.type,io=En.with,Ro=En.version;return[Ps(Be),Ps(Te),Ps(Ys),_o(Os),Ps(io),Ie("SCHEMA",_o,ye),Ie("VERSION",_o,Ro),Ie("FROM",_o,gs)].filter(pe).join(" ")})(ft);break;case"function":_n=(function(En){var Os=En.type,gs=En.replace,Ys=En.keyword,Te=En.name,ye=En.args,Be=En.returns,io=En.options,Ro=En.last,So=[Ps(Os),Ps(gs),Ps(Ys)],uu=[_o(Te.schema),Te.name.map(_o).join(".")].filter(pe).join("."),ko=ye.map(N0).filter(pe).join(", ");return So.push(`${uu}(${ko})`,(function(yu){var au=yu.type,Iu=yu.keyword,mu=yu.expr;return[Ps(au),Ps(Iu),Array.isArray(mu)?`(${mu.map(Gc).join(", ")})`:hc(mu)].filter(pe).join(" ")})(Be),io.map(Bl).join(" "),Ro),So.filter(pe).join(" ")})(ft);break;case"index":_n=(function(En){var Os=En.concurrently,gs=En.filestream_on,Ys=En.keyword,Te=En.if_not_exists,ye=En.include,Be=En.index_columns,io=En.index_type,Ro=En.index_using,So=En.index,uu=En.on,ko=En.index_options,yu=En.algorithm_option,au=En.lock_option,Iu=En.on_kw,mu=En.table,Ju=En.tablespace,ua=En.type,Sa=En.where,ma=En.with,Bi=En.with_before_where,sa=ma&&`WITH (${Ll(ma).join(", ")})`,di=ye&&`${Ps(ye.keyword)} (${ye.columns.map((function(l0){return typeof l0=="string"?Uo(l0):je(l0)})).join(", ")})`,Hi=So;So&&(Hi=typeof So=="string"?Uo(So):[Uo(So.schema),Uo(So.name)].filter(pe).join("."));var S0=[Ps(ua),Ps(io),Ps(Ys),Ps(Te),Ps(Os),Hi,Ps(Iu),ca(mu)].concat(bf(Uc(Ro)),[`(${ji(Be)})`,di,Ll(ko).join(" "),Y0(yu),Y0(au),Ie("TABLESPACE",_o,Ju)]);return Bi?S0.push(sa,Ie("WHERE",je,Sa)):S0.push(Ie("WHERE",je,Sa),sa),S0.push(Ie("ON",je,uu),Ie("FILESTREAM_ON",_o,gs)),S0.filter(pe).join(" ")})(ft);break;case"sequence":_n=(function(En){var Os=En.type,gs=En.keyword,Ys=En.sequence,Te=En.temporary,ye=En.if_not_exists,Be=En.create_definitions,io=[Ps(Os),Ps(Te),Ps(gs),Ps(ye),na(Ys)];return Be&&io.push(Be.map(Kf).join(" ")),io.filter(pe).join(" ")})(ft);break;case"database":case"schema":_n=(function(En){var Os=En.type,gs=En.keyword,Ys=En.replace,Te=En.if_not_exists,ye=En.create_definitions,Be=En[gs],io=Be.db,Ro=Be.schema,So=[_o(io),Ro.map(_o).join(".")].filter(pe).join("."),uu=[Ps(Os),Ps(Ys),Ps(gs),Ps(Te),So];return ye&&uu.push(ye.map(Qa).join(" ")),uu.filter(pe).join(" ")})(ft);break;case"view":_n=(function(En){var Os=En.algorithm,gs=En.columns,Ys=En.definer,Te=En.if_not_exists,ye=En.keyword,Be=En.recursive,io=En.replace,Ro=En.select,So=En.sql_security,uu=En.temporary,ko=En.type,yu=En.view,au=En.with,Iu=En.with_options,mu=yu.db,Ju=yu.schema,ua=yu.view,Sa=[Uo(mu),Uo(Ju),Uo(ua)].filter(pe).join(".");return[Ps(ko),Ps(io),Ps(uu),Ps(Be),Os&&`ALGORITHM = ${Ps(Os)}`,je(Ys),So&&`SQL SECURITY ${Ps(So)}`,Ps(ye),Ps(Te),Sa,gs&&`(${gs.map(Hs).join(", ")})`,Iu&&["WITH",`(${Iu.map((function(ma){return Gi(ma).join(" ")})).join(", ")})`].join(" "),"AS",Mc(Ro),Ps(au)].filter(pe).join(" ")})(ft);break;case"domain":_n=(function(En){var Os=En.as,gs=En.domain,Ys=En.type,Te=En.keyword,ye=En.target,Be=En.create_definitions,io=[Ps(Ys),Ps(Te),[Uo(gs.schema),Uo(gs.name)].filter(pe).join("."),Ps(Os),T0(ye)];if(Be&&Be.length>0){var Ro,So=[],uu=(function(au,Iu){var mu=typeof Symbol<"u"&&au[Symbol.iterator]||au["@@iterator"];if(!mu){if(Array.isArray(au)||(mu=Lb(au))||Iu&&au&&typeof au.length=="number"){mu&&(au=mu);var Ju=0,ua=function(){};return{s:ua,n:function(){return Ju>=au.length?{done:!0}:{done:!1,value:au[Ju++]}},e:function(sa){throw sa},f:ua}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Sa,ma=!0,Bi=!1;return{s:function(){mu=mu.call(au)},n:function(){var sa=mu.next();return ma=sa.done,sa},e:function(sa){Bi=!0,Sa=sa},f:function(){try{ma||mu.return==null||mu.return()}finally{if(Bi)throw Sa}}}})(Be);try{for(uu.s();!(Ro=uu.n()).done;){var ko=Ro.value,yu=ko.type;switch(yu){case"collate":So.push(je(ko));break;case"default":So.push(Ps(yu),je(ko.value));break;case"constraint":So.push(Rl(ko))}}}catch(au){uu.e(au)}finally{uu.f()}io.push(So.filter(pe).join(" "))}return io.filter(pe).join(" ")})(ft);break;case"type":_n=(function(En){var Os=En.as,gs=En.create_definitions,Ys=En.keyword,Te=En.name,ye=En.resource,Be=[Ps(En.type),Ps(Ys),[Uo(Te.schema),Uo(Te.name)].filter(pe).join("."),Ps(Os),Ps(ye)];if(gs){var io=[];switch(ye){case"enum":case"range":io.push(je(gs));break;default:io.push(`(${gs.map(Kf).join(", ")})`)}Be.push(io.filter(pe).join(" "))}return Be.filter(pe).join(" ")})(ft);break;case"user":_n=(function(En){var Os=En.attribute,gs=En.comment,Ys=En.default_role,Te=En.if_not_exists,ye=En.keyword,Be=En.lock_option,io=En.password_options,Ro=En.require,So=En.resource_options,uu=En.type,ko=En.user.map((function(au){var Iu=au.user,mu=au.auth_option,Ju=[yc(Iu)];return mu&&Ju.push(Ps(mu.keyword),mu.auth_plugin,_o(mu.value)),Ju.filter(pe).join(" ")})).join(", "),yu=[Ps(uu),Ps(ye),Ps(Te),ko];return Ys&&yu.push(Ps(Ys.keyword),Ys.value.map(yc).join(", ")),yu.push(Ie(Ro&&Ro.keyword,je,Ro&&Ro.value)),So&&yu.push(Ps(So.keyword),So.value.map((function(au){return je(au)})).join(" ")),io&&io.forEach((function(au){return yu.push(Ie(au.keyword,je,au.value))})),yu.push(_o(Be),Gl(gs),_o(Os)),yu.filter(pe).join(" ")})(ft);break;default:throw Error(`unknown create resource ${tn}`)}return _n},comment:function(ft){var tn=ft.expr,_n=ft.keyword,En=ft.target;return[Ps(ft.type),Ps(_n),bb(En),Vi(tn)].filter(pe).join(" ")},select:gl,deallocate:function(ft){var tn=ft.type,_n=ft.keyword,En=ft.expr;return[Ps(tn),Ps(_n),je(En)].filter(pe).join(" ")},delete:function(ft){var tn=ft.columns,_n=ft.from,En=ft.table,Os=ft.where,gs=ft.orderby,Ys=ft.with,Te=ft.limit,ye=ft.returning,Be=[nl(Ys),"DELETE"],io=ki(tn,_n);return Be.push(io),Array.isArray(En)&&(En.length===1&&En[0].addition===!0||Be.push(na(En))),Be.push(Ie("FROM",na,_n)),Be.push(Ie("WHERE",je,Os)),Be.push(xi(gs,"order by")),Be.push(Zc(Te)),Be.push(nc(ye)),Be.filter(pe).join(" ")},exec:function(ft){var tn=ft.keyword,_n=ft.module,En=ft.parameters;return[Ps(tn),ca(_n),(En||[]).map(gv).filter(pe).join(", ")].filter(pe).join(" ")},execute:function(ft){var tn=ft.type,_n=ft.name,En=ft.args,Os=[Ps(tn)],gs=[_n];return En&&gs.push(`(${je(En).join(", ")})`),Os.push(gs.join("")),Os.filter(pe).join(" ")},explain:function(ft){var tn=ft.type,_n=ft.expr;return[Ps(tn),gl(_n)].join(" ")},for:function(ft){var tn=ft.type,_n=ft.label,En=ft.target,Os=ft.query,gs=ft.stmts;return[_n,Ps(tn),En,"IN",Cl([Os]),"LOOP",Cl(gs),"END LOOP",_n].filter(pe).join(" ")},update:function(ft){var tn=ft.from,_n=ft.table,En=ft.set,Os=ft.where,gs=ft.orderby,Ys=ft.with,Te=ft.limit,ye=ft.returning;return[nl(Ys),"UPDATE",na(_n),Ie("SET",Qc,En),Ie("FROM",na,tn),Ie("WHERE",je,Os),xi(gs,"order by"),Zc(Te),nc(ye)].filter(pe).join(" ")},if:function(ft){var tn=ft.boolean_expr,_n=ft.else_expr,En=ft.elseif_expr,Os=ft.if_expr,gs=ft.prefix,Ys=ft.go,Te=ft.semicolons,ye=ft.suffix,Be=[Ps(ft.type),je(tn),_o(gs),`${n0(Os.ast||Os)}${Te[0]}`,Ps(Ys)];return En&&Be.push(En.map((function(io){return[Ps(io.type),je(io.boolean_expr),"THEN",n0(io.then.ast||io.then),io.semicolon].filter(pe).join(" ")})).join(" ")),_n&&Be.push("ELSE",`${n0(_n.ast||_n)}${Te[1]}`),Be.push(_o(ye)),Be.filter(pe).join(" ")},insert:ce,load_data:ei,drop:sv,truncate:sv,replace:ce,declare:function(ft){var tn=ft.type,_n=ft.declare,En=ft.symbol,Os=[Ps(tn)],gs=_n.map((function(Ys){var Te=Ys.at,ye=Ys.name,Be=Ys.as,io=Ys.constant,Ro=Ys.datatype,So=Ys.not_null,uu=Ys.prefix,ko=Ys.definition,yu=Ys.keyword,au=[[Te,ye].filter(pe).join(""),Ps(Be),Ps(io)];switch(yu){case"variable":au.push(uv(Ro),je(Ys.collate),Ps(So)),ko&&au.push(Ps(ko.keyword),je(ko.value));break;case"cursor":au.push(Ps(uu));break;case"table":au.push(Ps(uu),`(${ko.map(Kf).join(", ")})`)}return au.filter(pe).join(" ")})).join(`${En} `);return Os.push(gs),Os.join(" ")},use:function(ft){var tn=ft.type,_n=ft.db;return`${Ps(tn)} ${Uo(_n)}`},rename:function(ft){var tn=ft.type,_n=ft.table,En=[],Os=`${tn&&tn.toUpperCase()} TABLE`;if(_n){var gs,Ys=Dc(_n);try{for(Ys.s();!(gs=Ys.n()).done;){var Te=gs.value.map(ca);En.push(Te.join(" TO "))}}catch(ye){Ys.e(ye)}finally{Ys.f()}}return`${Os} ${En.join(", ")}`},call:function(ft){return`CALL ${je(ft.expr)}`},desc:function(ft){var tn=ft.type,_n=ft.table;return`${Ps(tn)} ${Uo(_n)}`},set:function(ft){var tn=ft.type,_n=ft.expr,En=ft.keyword,Os=Ps(tn),gs=_n.map(je).join(", ");return[Os,Ps(En),gs].filter(pe).join(" ")},lock:ev,unlock:ev,show:j0,grant:$c,revoke:$c,proc:function(ft){var tn=ft.stmt;switch(tn.type){case"assign":return pb(tn);case"return":return(function(_n){var En=_n.type,Os=_n.expr;return[Ps(En),je(Os)].join(" ")})(tn)}},raise:function(ft){var tn=ft.type,_n=ft.level,En=ft.raise,Os=ft.using,gs=[Ps(tn),Ps(_n)];return En&&gs.push([_o(En.keyword),En.type==="format"&&En.expr.length>0&&","].filter(pe).join(""),En.expr.map((function(Ys){return je(Ys)})).join(", ")),Os&&gs.push(Ps(Os.type),Ps(Os.option),Os.symbol,Os.expr.map((function(Ys){return je(Ys)})).join(", ")),gs.filter(pe).join(" ")},transaction:function(ft){var tn=ft.expr,_n=tn.action,En=tn.keyword,Os=tn.modes,gs=[_o(_n),Ps(En)];return Os&&gs.push(Os.map(_o).join(", ")),gs.filter(pe).join(" ")}};function Mc(ft){if(!ft)return"";for(var tn=B0[ft.type],_n=ft,En=_n._parentheses,Os=_n._orderby,gs=_n._limit,Ys=[En&&"(",tn(ft)];ft._next;){var Te=B0[ft._next.type],ye=Ps(ft.set_op);Ys.push(ye,Te(ft._next)),ft=ft._next}return Ys.push(En&&")",xi(Os,"order by"),Zc(gs)),Ys.filter(pe).join(" ")}function Cl(ft){for(var tn=[],_n=0,En=ft.length;_n<En;++_n){var Os=ft[_n]&&ft[_n].ast?ft[_n].ast:ft[_n],gs=Mc(Os);_n===En-1&&Os.type==="transaction"&&(gs=`${gs} ;`),tn.push(gs)}return tn.join(" ; ")}function $u(ft){var tn=ft.type;return tn==="select"?Mc(ft):(tn==="values"?ft.values:ft).map((function(_n){var En=je(_n);return[Ps(_n.prefix),`(${En})`].filter(pe).join("")})).join(", ")}function r0(ft){if(!ft)return"";var tn=["PARTITION","("];if(Array.isArray(ft))tn.push(ft.map((function(En){return Uo(En)})).join(", "));else{var _n=ft.value;tn.push(_n.map(je).join(", "))}return tn.push(")"),tn.filter(pe).join("")}function zn(ft){if(!ft)return"";if(ft.type==="column")return`(${ft.expr.map(Ui).join(", ")})`}function Ss(ft){var tn=ft.expr,_n=ft.keyword,En=tn.type,Os=[Ps(_n)];switch(En){case"origin":Os.push(_o(tn));break;case"update":Os.push("UPDATE",Ie("SET",Qc,tn.set),Ie("WHERE",je,tn.where))}return Os.filter(pe).join(" ")}function te(ft){if(!ft)return"";var tn=ft.action;return[zn(ft.target),Ss(tn)].filter(pe).join(" ")}function ce(ft){var tn=ft.table,_n=ft.type,En=ft.or,Os=En===void 0?[]:En,gs=ft.prefix,Ys=gs===void 0?"into":gs,Te=ft.columns,ye=ft.conflict,Be=ft.values,io=ft.where,Ro=ft.on_duplicate_update,So=ft.partition,uu=ft.returning,ko=ft.set,yu=Ro||{},au=yu.keyword,Iu=yu.set,mu=[Ps(_n),Os.map(_o).join(" "),Ps(Ys),na(tn),r0(So)];return Array.isArray(Te)&&mu.push(`(${Te.map(_o).join(", ")})`),mu.push(Ie(Be&&Be.type==="values"?"VALUES":"",$u,Be)),mu.push(Ie("ON CONFLICT",te,ye)),mu.push(Ie("SET",Qc,ko)),mu.push(Ie("WHERE",je,io)),mu.push(Ie(au,Qc,Iu)),mu.push(nc(uu)),mu.filter(pe).join(" ")}function He(ft){var tn=ft.expr,_n=ft.unit,En=ft.suffix;return["INTERVAL",je(tn),Ps(_n),je(En)].filter(pe).join(" ")}function Ue(ft){return(function(tn){if(Array.isArray(tn))return Qe(tn)})(ft)||(function(tn){if(typeof Symbol<"u"&&tn[Symbol.iterator]!=null||tn["@@iterator"]!=null)return Array.from(tn)})(ft)||(function(tn,_n){if(tn){if(typeof tn=="string")return Qe(tn,_n);var En={}.toString.call(tn).slice(8,-1);return En==="Object"&&tn.constructor&&(En=tn.constructor.name),En==="Map"||En==="Set"?Array.from(tn):En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En)?Qe(tn,_n):void 0}})(ft)||(function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Qe(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function uo(ft){var tn=ft.type,_n=ft.as,En=ft.expr,Os=ft.with_offset;return[`${Ps(tn)}(${En&&je(En)||""})`,Ie("AS",typeof _n=="string"?Uo:je,_n),Ie(Ps(Os&&Os.keyword),Uo,Os&&Os.as)].filter(pe).join(" ")}function Ao(ft){if(ft)switch(ft.type){case"pivot":case"unpivot":return(function(tn){var _n=tn.as,En=tn.column,Os=tn.expr,gs=tn.in_expr,Ys=tn.type,Te=[je(Os),"FOR",Ui(En),Oi(gs)],ye=[`${Ps(Ys)}(${Te.join(" ")})`];return _n&&ye.push("AS",Uo(_n)),ye.join(" ")})(ft);default:return""}}function Pu(ft){if(ft){var tn=ft.keyword,_n=ft.expr,En=ft.index,Os=ft.index_columns,gs=ft.parentheses,Ys=ft.prefix,Te=[];switch(tn.toLowerCase()){case"forceseek":Te.push(Ps(tn),`(${Uo(En)}`,`(${Os.map(je).filter(pe).join(", ")}))`);break;case"spatial_window_max_cells":Te.push(Ps(tn),"=",je(_n));break;case"index":Te.push(Ps(Ys),Ps(tn),gs?`(${_n.map((function(ye){return Uo(ye)})).join(", ")})`:`= ${Uo(_n)}`);break;default:Te.push(je(_n))}return Te.filter(pe).join(" ")}}function Ca(ft,tn){var _n=ft.name,En=ft.symbol;return[Ps(_n),En,tn].filter(pe).join(" ")}function ku(ft){var tn=[];switch(ft.keyword){case"as":tn.push("AS","OF",je(ft.of));break;case"from_to":tn.push("FROM",je(ft.from),"TO",je(ft.to));break;case"between_and":tn.push("BETWEEN",je(ft.between),"AND",je(ft.and));break;case"contained":tn.push("CONTAINED","IN",je(ft.in))}return tn.filter(pe).join(" ")}function ca(ft){if(Ps(ft.type)==="UNNEST")return uo(ft);var tn,_n,En,Os,gs=ft.table,Ys=ft.db,Te=ft.as,ye=ft.expr,Be=ft.operator,io=ft.prefix,Ro=ft.schema,So=ft.server,uu=ft.suffix,ko=ft.tablesample,yu=ft.temporal_table,au=ft.table_hint,Iu=ft.surround,mu=Iu===void 0?{}:Iu,Ju=Uo(So,!1,mu.server),ua=Uo(Ys,!1,mu.db),Sa=Uo(Ro,!1,mu.schema),ma=gs&&Uo(gs,!1,mu.table);if(ye)switch(ye.type){case"values":var Bi=ye.parentheses,sa=ye.values,di=ye.prefix,Hi=[Bi&&"(","",Bi&&")"],S0=$u(sa);di&&(S0=S0.split("(").slice(1).map((function(fi){return`${Ps(di)}(${fi}`})).join("")),Hi[1]=`VALUES ${S0}`,ma=Hi.filter(pe).join("");break;case"tumble":ma=(function(fi){if(!fi)return"";var Wl=fi.data,ec=fi.timecol,Fc=fi.offset,xv=fi.size,lp=[Uo(Wl.expr.db),Uo(Wl.expr.schema),Uo(Wl.expr.table)].filter(pe).join("."),Uv=`DESCRIPTOR(${Ui(ec.expr)})`,$f=[`TABLE(TUMBLE(TABLE ${Ca(Wl,lp)}`,Ca(ec,Uv)],Tb=Ca(xv,He(xv.expr));return Fc&&Fc.expr?$f.push(Tb,`${Ca(Fc,He(Fc.expr))}))`):$f.push(`${Tb}))`),$f.filter(pe).join(", ")})(ye);break;case"generator":_n=(tn=ye).keyword,En=tn.type,Os=tn.generators.map((function(fi){return Gi(fi).join(" ")})).join(", "),ma=`${Ps(_n)}(${Ps(En)}(${Os}))`;break;default:ma=je(ye)}var l0=[[Ju,ua,Sa,ma=[Ps(io),ma,Ps(uu)].filter(pe).join(" ")].filter(pe).join(".")];if(ko){var Ov=["TABLESAMPLE",je(ko.expr),_o(ko.repeatable)].filter(pe).join(" ");l0.push(Ov)}l0.push((function(fi){if(fi){var Wl=fi.keyword,ec=fi.expr;return[Ps(Wl),ku(ec)].filter(pe).join(" ")}})(yu),Ie("AS",typeof Te=="string"?Uo:je,Te),Ao(Be)),au&&l0.push(Ps(au.keyword),`(${au.expr.map(Pu).filter(pe).join(", ")})`);var lv=l0.filter(pe).join(" ");return ft.parentheses?`(${lv})`:lv}function na(ft){if(!ft)return"";if(!Array.isArray(ft)){var tn=ft.expr,_n=ft.parentheses,En=ft.joins,Os=na(tn);if(_n){for(var gs=[],Ys=[],Te=_n===!0?1:_n.length,ye=0;ye++<Te;)gs.push("("),Ys.push(")");var Be=En&&En.length>0?na([""].concat(Ue(En))):"";return gs.join("")+Os+Ys.join("")+Be}return Os}var io=ft[0],Ro=[];if(io.type==="dual")return"DUAL";Ro.push(ca(io));for(var So=1;So<ft.length;++So){var uu=ft[So],ko=uu.on,yu=uu.using,au=uu.join,Iu=[],mu=Array.isArray(uu)||Object.hasOwnProperty.call(uu,"joins");Iu.push(au?` ${Ps(au)}`:","),Iu.push(mu?na(uu):ca(uu)),Iu.push(Ie("ON",je,ko)),yu&&Iu.push(`USING (${yu.map(_o).join(", ")})`),Ro.push(Iu.filter(pe).join(" "))}return Ro.filter(pe).join("")}function Qa(ft){var tn=ft.keyword,_n=ft.symbol,En=ft.value,Os=[tn.toUpperCase()];_n&&Os.push(_n);var gs=_o(En);switch(tn){case"partition by":case"default collate":gs=je(En);break;case"options":gs=`(${En.map((function(Ys){return[Ys.keyword,Ys.symbol,je(Ys.value)].join(" ")})).join(", ")})`;break;case"cluster by":gs=En.map(je).join(", ")}return Os.push(gs),Os.filter(pe).join(" ")}var cf="analyze.attach.select.deallocate.delete.exec.update.insert.drop.rename.truncate.call.desc.use.alter.set.create.lock.unlock.declare.show.replace.if.grant.revoke.proc.raise.execute.transaction.explain.comment.load_data".split(".");function ri(ft){var tn=ft&&ft.ast?ft.ast:ft;if(!cf.includes(tn.type))throw Error(`${tn.type} statements not supported at the moment`)}function t0(ft){return Array.isArray(ft)?(ft.forEach(ri),Cl(ft)):(ri(ft),Mc(ft))}function n0(ft){return ft.go==="go"?(function tn(_n){if(!_n||_n.length===0)return"";var En=[t0(_n.ast)];return _n.go_next&&En.push(_n.go.toUpperCase(),tn(_n.go_next)),En.filter((function(Os){return Os})).join(" ")})(ft):t0(ft)}function Dc(ft,tn){var _n=typeof Symbol<"u"&&ft[Symbol.iterator]||ft["@@iterator"];if(!_n){if(Array.isArray(ft)||(_n=Rv(ft))||tn&&ft&&typeof ft.length=="number"){_n&&(ft=_n);var En=0,Os=function(){};return{s:Os,n:function(){return En>=ft.length?{done:!0}:{done:!1,value:ft[En++]}},e:function(ye){throw ye},f:Os}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gs,Ys=!0,Te=!1;return{s:function(){_n=_n.call(ft)},n:function(){var ye=_n.next();return Ys=ye.done,ye},e:function(ye){Te=!0,gs=ye},f:function(){try{Ys||_n.return==null||_n.return()}finally{if(Te)throw gs}}}}function s0(ft){return(function(tn){if(Array.isArray(tn))return nv(tn)})(ft)||(function(tn){if(typeof Symbol<"u"&&tn[Symbol.iterator]!=null||tn["@@iterator"]!=null)return Array.from(tn)})(ft)||Rv(ft)||(function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Rv(ft,tn){if(ft){if(typeof ft=="string")return nv(ft,tn);var _n={}.toString.call(ft).slice(8,-1);return _n==="Object"&&ft.constructor&&(_n=ft.constructor.name),_n==="Map"||_n==="Set"?Array.from(ft):_n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_n)?nv(ft,tn):void 0}}function nv(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function sv(ft){var tn=ft.type,_n=ft.keyword,En=ft.name,Os=ft.prefix,gs=ft.suffix,Ys=[Ps(tn),Ps(_n),Ps(Os)];switch(_n){case"table":Ys.push(na(En));break;case"trigger":Ys.push([En[0].schema?`${Uo(En[0].schema)}.`:"",Uo(En[0].trigger)].filter(pe).join(""));break;case"database":case"schema":case"procedure":Ys.push(Uo(En));break;case"view":Ys.push(na(En),ft.options&&ft.options.map(je).filter(pe).join(" "));break;case"index":Ys.push.apply(Ys,[Ui(En)].concat(s0(ft.table?["ON",ca(ft.table)]:[]),[ft.options&&ft.options.map(je).filter(pe).join(" ")]));break;case"type":Ys.push(En.map(Ui).join(", "),ft.options&&ft.options.map(je).filter(pe).join(" "))}return gs&&Ys.push(gs.map(je).filter(pe).join(" ")),Ys.filter(pe).join(" ")}function ev(ft){var tn=ft.type,_n=ft.keyword,En=ft.tables,Os=[tn.toUpperCase(),Ps(_n)];if(tn.toUpperCase()==="UNLOCK")return Os.join(" ");var gs,Ys=[],Te=Dc(En);try{var ye=function(){var Be=gs.value,io=Be.table,Ro=Be.lock_type,So=[ca(io)];Ro&&So.push(["prefix","type","suffix"].map((function(uu){return Ps(Ro[uu])})).filter(pe).join(" ")),Ys.push(So.join(" "))};for(Te.s();!(gs=Te.n()).done;)ye()}catch(Be){Te.e(Be)}finally{Te.f()}return Os.push.apply(Os,[Ys.join(", ")].concat(s0((function(Be){var io=Be.lock_mode,Ro=Be.nowait,So=[];if(io){var uu=io.mode;So.push(uu.toUpperCase())}return Ro&&So.push(Ro.toUpperCase()),So})(ft)))),Os.filter(pe).join(" ")}function yc(ft){var tn=ft.name,_n=ft.host,En=[_o(tn)];return _n&&En.push("@",_o(_n)),En.join("")}function $c(ft){var tn=ft.type,_n=ft.grant_option_for,En=ft.keyword,Os=ft.objects,gs=ft.on,Ys=ft.to_from,Te=ft.user_or_roles,ye=ft.with,Be=[Ps(tn),_o(_n)],io=Os.map((function(Ro){var So=Ro.priv,uu=Ro.columns,ko=[je(So)];return uu&&ko.push(`(${uu.map(Ui).join(", ")})`),ko.join(" ")})).join(", ");if(Be.push(io),gs)switch(Be.push("ON"),En){case"priv":Be.push(_o(gs.object_type),gs.priv_level.map((function(Ro){return[Uo(Ro.prefix),Uo(Ro.name)].filter(pe).join(".")})).join(", "));break;case"proxy":Be.push(yc(gs))}return Be.push(Ps(Ys),Te.map(yc).join(", ")),Be.push(_o(ye)),Be.filter(pe).join(" ")}function Sf(ft){return(function(tn){if(Array.isArray(tn))return R0(tn)})(ft)||(function(tn){if(typeof Symbol<"u"&&tn[Symbol.iterator]!=null||tn["@@iterator"]!=null)return Array.from(tn)})(ft)||(function(tn,_n){if(tn){if(typeof tn=="string")return R0(tn,_n);var En={}.toString.call(tn).slice(8,-1);return En==="Object"&&tn.constructor&&(En=tn.constructor.name),En==="Map"||En==="Set"?Array.from(tn):En==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(En)?R0(tn,_n):void 0}})(ft)||(function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function R0(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function Rl(ft){if(ft){var tn=ft.constraint,_n=ft.constraint_type,En=ft.enforced,Os=ft.index,gs=ft.keyword,Ys=ft.reference_definition,Te=ft.for,ye=ft.with_values,Be=[],io=Pn().database;Be.push(Ps(gs)),Be.push(Uo(tn));var Ro=Ps(_n);return io.toLowerCase()==="sqlite"&&Ro==="UNIQUE KEY"&&(Ro="UNIQUE"),Be.push(Ro),Be.push(io.toLowerCase()!=="sqlite"&&Uo(Os)),Be.push.apply(Be,Sf(jl(ft))),Be.push.apply(Be,Sf(yb(Ys))),Be.push(Ps(En)),Be.push(Ie("FOR",Uo,Te)),Be.push(_o(ye)),Be.filter(pe).join(" ")}}function ff(ft){if(ft){var tn=ft.type;return tn==="rows"?[Ps(tn),je(ft.expr)].filter(pe).join(" "):je(ft)}}function Vf(ft){return typeof ft=="string"?ft:`(${(function(tn){var _n=tn.name,En=tn.partitionby,Os=tn.orderby,gs=tn.window_frame_clause;return[_n,xi(En,"partition by"),xi(Os,"order by"),ff(gs)].filter(pe).join(" ")})(ft.window_specification)})`}function Vv(ft){var tn=ft.name,_n=ft.as_window_specification;return`${tn} AS ${Vf(_n)}`}function db(ft){if(ft){var tn=ft.as_window_specification,_n=ft.expr,En=ft.keyword,Os=ft.type,gs=ft.parentheses,Ys=Ps(Os);if(Ys==="WINDOW")return`OVER ${Vf(tn)}`;if(Ys==="ON UPDATE"){var Te=`${Ps(Os)} ${Ps(En)}`,ye=je(_n)||[];return gs&&(Te=`${Te}(${ye.join(", ")})`),Te}if(ft.partitionby)return["OVER",`(${xi(ft.partitionby,"partition by")}`,`${xi(ft.orderby,"order by")})`].filter(pe).join(" ");throw Error("unknown over type")}}function Of(ft){if(!ft||!ft.array)return"";var tn=ft.array.keyword;if(tn)return Ps(tn);for(var _n=ft.array,En=_n.dimension,Os=_n.length,gs=[],Ys=0;Ys<En;Ys++)gs.push("["),Os&&Os[Ys]&&gs.push(_o(Os[Ys])),gs.push("]");return gs.join("")}function Pc(ft){for(var tn=ft.target,_n=ft.expr,En=ft.keyword,Os=ft.symbol,gs=ft.as,Ys=ft.offset,Te=ft.parentheses,ye=u0({expr:_n,offset:Ys}),Be=[],io=0,Ro=tn.length;io<Ro;++io){var So=tn[io],uu=So.angle_brackets,ko=So.length,yu=So.dataType,au=So.parentheses,Iu=So.quoted,mu=So.scale,Ju=So.suffix,ua=So.expr,Sa=ua?je(ua):"";ko!=null&&(Sa=mu?`${ko}, ${mu}`:ko),au&&(Sa=`(${Sa})`),uu&&(Sa=`<${Sa}>`),Ju&&Ju.length&&(Sa+=` ${Ju.map(_o).join(" ")}`);var ma="::",Bi="",sa=[];Os==="as"&&(io===0&&(ye=`${Ps(En)}(${ye}`),Bi=")",ma=` ${Os.toUpperCase()} `),io===0&&sa.push(ye);var di=Of(So);sa.push(ma,Iu,yu,Iu,di,Sa,Bi),Be.push(sa.filter(pe).join(""))}gs&&Be.push(` AS ${Uo(gs)}`);var Hi=Be.filter(pe).join("");return Te?`(${Hi})`:Hi}function H0(ft){var tn=ft.args,_n=ft.array_index,En=ft.name,Os=ft.args_parentheses,gs=ft.parentheses,Ys=ft.within_group,Te=ft.over,ye=ft.suffix,Be=db(Te),io=(function(Ju){if(!Ju)return"";var ua=Ju.type,Sa=Ju.keyword,ma=Ju.orderby;return[Ps(ua),Ps(Sa),`(${xi(ma,"order by")})`].filter(pe).join(" ")})(Ys),Ro=je(ye),So=[_o(En.schema),En.name.map(_o).join(".")].filter(pe).join(".");if(!tn)return[So,io,Be].filter(pe).join(" ");var uu=ft.separator||", ";Ps(So)==="TRIM"&&(uu=" ");var ko=[So];ko.push(Os===!1?" ":"(");var yu=je(tn);if(Array.isArray(uu)){for(var au=yu[0],Iu=1,mu=yu.length;Iu<mu;++Iu)au=[au,yu[Iu]].join(` ${je(uu[Iu-1])} `);ko.push(au)}else ko.push(yu.join(uu));return Os!==!1&&ko.push(")"),ko.push(wb(_n)),ko=[ko.join(""),Ro].filter(pe).join(" "),[gs?`(${ko})`:ko,io,Be].filter(pe).join(" ")}function bf(ft){return(function(tn){if(Array.isArray(tn))return Fa(tn)})(ft)||(function(tn){if(typeof Symbol<"u"&&tn[Symbol.iterator]!=null||tn["@@iterator"]!=null)return Array.from(tn)})(ft)||Lb(ft)||(function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Lb(ft,tn){if(ft){if(typeof ft=="string")return Fa(ft,tn);var _n={}.toString.call(ft).slice(8,-1);return _n==="Object"&&ft.constructor&&(_n=ft.constructor.name),_n==="Map"||_n==="Set"?Array.from(ft):_n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_n)?Fa(ft,tn):void 0}}function Fa(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function Kf(ft){if(!ft)return[];var tn,_n,En,Os,gs=ft.resource;switch(gs){case"column":return Gc(ft);case"index":return _n=[],En=(tn=ft).keyword,Os=tn.index,_n.push(Ps(En)),_n.push(Os),_n.push.apply(_n,af(jl(tn))),_n.filter(pe).join(" ");case"constraint":return Rl(ft);case"sequence":return[Ps(ft.prefix),je(ft.value)].filter(pe).join(" ");default:throw Error(`unknown resource = ${gs} type`)}}function Nv(ft){var tn=[];switch(ft.keyword){case"from":tn.push("FROM",`(${_o(ft.from)})`,"TO",`(${_o(ft.to)})`);break;case"in":tn.push("IN",`(${je(ft.in)})`);break;case"with":tn.push("WITH",`(MODULUS ${_o(ft.modulus)}, REMAINDER ${_o(ft.remainder)})`)}return tn.filter(pe).join(" ")}function Gb(ft){var tn=ft.keyword,_n=ft.table,En=ft.for_values,Os=ft.tablespace,gs=[Ps(tn),ca(_n),Ps(En.keyword),Nv(En.expr)];return Os&&gs.push("TABLESPACE",_o(Os)),gs.filter(pe).join(" ")}function hc(ft){return ft.dataType?T0(ft):[Uo(ft.db),Uo(ft.schema),Uo(ft.table)].filter(pe).join(".")}function Bl(ft){var tn=ft.type;switch(tn){case"as":return[Ps(tn),ft.symbol,Mc(ft.declare),Ps(ft.begin),Cl(ft.expr),Ps(ft.end),ft.symbol].filter(pe).join(" ");case"set":return[Ps(tn),ft.parameter,Ps(ft.value&&ft.value.prefix),ft.value&&ft.value.expr.map(je).join(", ")].filter(pe).join(" ");case"return":return[Ps(tn),je(ft.expr)].filter(pe).join(" ");default:return je(ft)}}function sl(ft){var tn=ft.type,_n=ft.symbol,En=ft.value,Os=[Ps(tn),_n];switch(Ps(tn)){case"SFUNC":Os.push([Uo(En.schema),En.name].filter(pe).join("."));break;case"STYPE":case"MSTYPE":Os.push(T0(En));break;default:Os.push(je(En))}return Os.filter(pe).join(" ")}function sc(ft,tn){return ft==="add"?`(${tn.map((function(_n){var En=_n.name,Os=_n.value;return["PARTITION",_o(En),"VALUES",Ps(Os.type),`(${_o(Os.expr)})`].join(" ")})).join(", ")})`:ki(tn)}function Y0(ft){if(!ft)return"";var tn=ft.action,_n=ft.create_definitions,En=ft.if_not_exists,Os=ft.keyword,gs=ft.if_exists,Ys=ft.old_column,Te=ft.prefix,ye=ft.resource,Be=ft.symbol,io=ft.suffix,Ro="",So=[];switch(ye){case"column":So=[Gc(ft)];break;case"index":So=jl(ft),Ro=ft[ye];break;case"table":case"schema":Ro=Uo(ft[ye]);break;case"aggregate":case"function":case"domain":case"type":Ro=Uo(ft[ye]);break;case"algorithm":case"lock":case"table-option":Ro=[Be,Ps(ft[ye])].filter(pe).join(" ");break;case"constraint":Ro=Uo(ft[ye]),So=[Kf(_n)];break;case"partition":So=[sc(tn,ft.partitions)];break;case"key":Ro=Uo(ft[ye]);break;default:Ro=[Be,ft[ye]].filter((function(ko){return ko!==null})).join(" ")}var uu=[Ps(tn),Ps(Os),Ps(En),Ps(gs),Ys&&Ui(Ys),Ps(Te),Ro&&Ro.trim(),So.filter(pe).join(" ")];return io&&uu.push(Ps(io.keyword),io.expr&&Ui(io.expr)),uu.filter(pe).join(" ")}function N0(ft){var tn=ft.default&&[Ps(ft.default.keyword),je(ft.default.value)].join(" ");return[Ps(ft.mode),ft.name,T0(ft.type),tn].filter(pe).join(" ")}function ov(ft){return(ov=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tn){return typeof tn}:function(tn){return tn&&typeof Symbol=="function"&&tn.constructor===Symbol&&tn!==Symbol.prototype?"symbol":typeof tn})(ft)}function Fb(ft){var tn=ft.expr_list;switch(Ps(ft.type)){case"STRUCT":case"ROW":return`(${ki(tn)})`;case"ARRAY":return(function(_n){var En=_n.array_path,Os=_n.brackets,gs=_n.expr_list,Ys=_n.parentheses;if(!gs)return`[${ki(En)}]`;var Te=Array.isArray(gs)?gs.map((function(ye){return`(${ki(ye)})`})).filter(pe).join(", "):je(gs);return Os?`[${Te}]`:Ys?`(${Te})`:Te})(ft);default:return""}}function e0(ft){var tn=ft.definition,_n=[Ps(ft.keyword)];return tn&&ov(tn)==="object"&&(_n.length=0,_n.push(dl(tn))),_n.push(Fb(ft)),_n.filter(pe).join("")}function Cb(ft){return(Cb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tn){return typeof tn}:function(tn){return tn&&typeof Symbol=="function"&&tn.constructor===Symbol&&tn!==Symbol.prototype?"symbol":typeof tn})(ft)}var _0={alter:Y0,aggr_func:function(ft){var tn=ft.args,_n=ft.filter,En=ft.over,Os=ft.within_group_orderby,gs=je(tn.expr);gs=Array.isArray(gs)?gs.join(", "):gs;var Ys=ft.name,Te=db(En);tn.distinct&&(gs=["DISTINCT",gs].join(" ")),tn.separator&&tn.separator.delimiter&&(gs=[gs,_o(tn.separator.delimiter)].join(`${tn.separator.symbol} `)),tn.separator&&tn.separator.expr&&(gs=[gs,je(tn.separator.expr)].join(" ")),tn.orderby&&(gs=[gs,xi(tn.orderby,"order by")].join(" ")),tn.separator&&tn.separator.value&&(gs=[gs,Ps(tn.separator.keyword),_o(tn.separator.value)].filter(pe).join(" "));var ye=Os?`WITHIN GROUP (${xi(Os,"order by")})`:"",Be=_n?`FILTER (WHERE ${je(_n.where)})`:"";return[`${Ys}(${gs})`,ye,Te,Be].filter(pe).join(" ")},any_value:function(ft){var tn=ft.args,_n=ft.type,En=ft.over,Os=tn.expr,gs=tn.having,Ys=`${Ps(_n)}(${je(Os)}`;return gs&&(Ys=`${Ys} HAVING ${Ps(gs.prefix)} ${je(gs.expr)}`),[Ys=`${Ys})`,db(En)].filter(pe).join(" ")},window_func:function(ft){var tn=ft.over;return[(function(_n){var En=_n.args,Os=_n.name,gs=_n.consider_nulls,Ys=gs===void 0?"":gs,Te=_n.separator,ye=Te===void 0?", ":Te;return[Os,"(",En?je(En).join(ye):"",")",Ys&&" ",Ys].filter(pe).join("")})(ft),db(tn)].filter(pe).join(" ")},array:e0,assign:pb,binary_expr:Oi,case:function(ft){var tn=["CASE"],_n=ft.args,En=ft.expr,Os=ft.parentheses;En&&tn.push(je(En));for(var gs=0,Ys=_n.length;gs<Ys;++gs)tn.push(_n[gs].type.toUpperCase()),_n[gs].cond&&(tn.push(je(_n[gs].cond)),tn.push("THEN")),tn.push(je(_n[gs].result));return tn.push("END"),Os?`(${tn.join(" ")})`:tn.join(" ")},cast:Pc,collate:xf,column_ref:Ui,column_definition:Gc,datatype:T0,extract:function(ft){var tn=ft.args,_n=ft.type,En=tn.field,Os=tn.cast_type,gs=tn.source;return`${[`${Ps(_n)}(${Ps(En)}`,"FROM",Ps(Os),je(gs)].filter(pe).join(" ")})`},flatten:function(ft){var tn=ft.args,_n=ft.type,En=["input","path","outer","recursive","mode"].map((function(Os){return(function(gs){if(!gs)return"";var Ys=gs.type,Te=gs.symbol,ye=gs.value;return[Ps(Ys),Te,je(ye)].filter(pe).join(" ")})(tn[Os])})).filter(pe).join(", ");return`${Ps(_n)}(${En})`},fulltext_search:function(ft){var tn=ft.against,_n=ft.as,En=ft.columns,Os=ft.match,gs=ft.mode;return[[Ps(Os),`(${En.map((function(Ys){return Ui(Ys)})).join(", ")})`].join(" "),[Ps(tn),["(",je(ft.expr),gs&&` ${_o(gs)}`,")"].filter(pe).join("")].join(" "),_v(_n)].filter(pe).join(" ")},function:H0,lambda:function(ft){var tn=ft.args,_n=ft.expr,En=tn.value,Os=tn.parentheses,gs=En.map(je).join(", ");return[Os?`(${gs})`:gs,"->",je(_n)].join(" ")},load_data:ei,insert:Mc,interval:He,json:function(ft){var tn=ft.keyword,_n=ft.expr_list;return[Ps(tn),_n.map((function(En){return je(En)})).join(", ")].join(" ")},json_object_arg:function(ft){var tn=ft.expr,_n=tn.key,En=tn.value,Os=tn.on,gs=[je(_n),"VALUE",je(En)];return Os&&gs.push("ON","NULL",je(Os)),gs.filter(pe).join(" ")},json_visitor:function(ft){return[ft.symbol,je(ft.expr)].join("")},func_arg:function(ft){var tn=ft.value;return[tn.name,tn.symbol,je(tn.expr)].filter(pe).join(" ")},show:j0,struct:e0,tablefunc:function(ft){var tn=ft.as,_n=ft.name,En=ft.args;return[`${[_o(_n.schema),_n.name.map(_o).join(".")].filter(pe).join(".")}(${je(En).join(", ")})`,"AS",H0(tn)].join(" ")},tables:na,unnest:uo,values:$u,window:function(ft){return ft.expr.map(Vv).join(", ")}};function zf(ft){var tn=ft.prefix,_n=tn===void 0?"@":tn,En=ft.name,Os=ft.members,gs=ft.quoted,Ys=ft.suffix,Te=[],ye=Os&&Os.length>0?`${En}.${Os.join(".")}`:En,Be=`${_n||""}${ye}`;return Ys&&(Be+=Ys),Te.push(Be),[gs,Te.join(" "),gs].filter(pe).join("")}function je(ft){if(ft){var tn=ft;if(ft.ast){var _n=tn.ast;Reflect.deleteProperty(tn,_n);for(var En=0,Os=Object.keys(_n);En<Os.length;En++){var gs=Os[En];tn[gs]=_n[gs]}}var Ys=tn.type;return Ys==="expr"?je(tn.expr):_0[Ys]?_0[Ys](tn):_o(tn)}}function o0(ft){return ft?(Array.isArray(ft)||(ft=[ft]),ft.map(je)):[]}function xi(ft,tn){if(!Array.isArray(ft))return"";var _n=[],En=Ps(tn);return En==="ORDER BY"?_n=ft.map((function(Os){return[je(Os.expr),Os.type||"ASC",Ps(Os.nulls)].filter(pe).join(" ")})):_n=ft.map((function(Os){return je(Os.expr)})),r(En,_n.join(", "))}function xf(ft){if(ft){var tn=ft.keyword,_n=ft.collate,En=_n.name,Os=_n.symbol,gs=_n.value,Ys=[Ps(tn)];return gs||Ys.push(Os),Ys.push(Array.isArray(En)?En.map(_o).join("."):_o(En)),gs&&Ys.push(Os),Ys.push(je(gs)),Ys.filter(pe).join(" ")}}function Zf(ft){return(Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tn){return typeof tn}:function(tn){return tn&&typeof Symbol=="function"&&tn.constructor===Symbol&&tn!==Symbol.prototype?"symbol":typeof tn})(ft)}function W0(ft){return(function(tn){if(Array.isArray(tn))return Uf(tn)})(ft)||(function(tn){if(typeof Symbol<"u"&&tn[Symbol.iterator]!=null||tn["@@iterator"]!=null)return Array.from(tn)})(ft)||jb(ft)||(function(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function jb(ft,tn){if(ft){if(typeof ft=="string")return Uf(ft,tn);var _n={}.toString.call(ft).slice(8,-1);return _n==="Object"&&ft.constructor&&(_n=ft.constructor.name),_n==="Map"||_n==="Set"?Array.from(ft):_n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_n)?Uf(ft,tn):void 0}}function Uf(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function u0(ft,tn){if(typeof ft=="string")return Uo(ft,tn);var _n=ft.expr,En=ft.offset,Os=ft.suffix,gs=En&&En.map((function(Ys){return["[",Ys.name,`${Ys.name?"(":""}`,_o(Ys.value),`${Ys.name?")":""}`,"]"].filter(pe).join("")})).join("");return[je(_n),gs,Os].filter(pe).join("")}function wb(ft){if(!ft||ft.length===0)return"";var tn,_n=[],En=(function(Ys,Te){var ye=typeof Symbol<"u"&&Ys[Symbol.iterator]||Ys["@@iterator"];if(!ye){if(Array.isArray(Ys)||(ye=jb(Ys))||Te&&Ys&&typeof Ys.length=="number"){ye&&(Ys=ye);var Be=0,io=function(){};return{s:io,n:function(){return Be>=Ys.length?{done:!0}:{done:!1,value:Ys[Be++]}},e:function(ko){throw ko},f:io}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ro,So=!0,uu=!1;return{s:function(){ye=ye.call(Ys)},n:function(){var ko=ye.next();return So=ko.done,ko},e:function(ko){uu=!0,Ro=ko},f:function(){try{So||ye.return==null||ye.return()}finally{if(uu)throw Ro}}}})(ft);try{for(En.s();!(tn=En.n()).done;){var Os=tn.value,gs=Os.brackets?`[${je(Os.index)}]`:`${Os.notation}${je(Os.index)}`;Os.property&&(gs=`${gs}.${_o(Os.property)}`),_n.push(gs)}}catch(Ys){En.e(Ys)}finally{En.f()}return _n.join("")}function Ui(ft){var tn=ft.array_index,_n=ft.as,En=ft.column,Os=ft.collate,gs=ft.db,Ys=ft.isDual,Te=ft.notations,ye=Te===void 0?[]:Te,Be=ft.options,io=ft.schema,Ro=ft.table,So=ft.parentheses,uu=ft.suffix,ko=ft.order_by,yu=ft.subFields,au=yu===void 0?[]:yu,Iu=En==="*"?"*":u0(En,Ys),mu=[gs,io,Ro].filter(pe).map((function(Bi){return`${typeof Bi=="string"?Uo(Bi):je(Bi)}`})),Ju=mu[0];if(Ju){for(var ua=1;ua<mu.length;++ua)Ju=`${Ju}${ye[ua]||"."}${mu[ua]}`;Iu=`${Ju}${ye[ua]||"."}${Iu}`}var Sa=[Iu=[`${Iu}${wb(tn)}`].concat(W0(au)).join("."),xf(Os),je(Be),Ie("AS",je,_n)];Sa.push(typeof uu=="string"?Ps(uu):je(uu)),Sa.push(Ps(ko));var ma=Sa.filter(pe).join(" ");return So?`(${ma})`:ma}function uv(ft){if(ft){var tn=ft.schema,_n=ft.dataType,En=ft.length,Os=ft.suffix,gs=ft.scale,Ys=ft.expr,Te=T0({schema:tn,dataType:_n,length:En,suffix:Os,scale:gs,parentheses:En!=null});if(Ys&&(Te+=je(Ys)),ft.array){var ye=Of(ft);Te+=[/^\[.*\]$/.test(ye)?"":" ",ye].join("")}return Te}}function yb(ft){var tn=[];if(!ft)return tn;var _n=ft.definition,En=ft.keyword,Os=ft.match,gs=ft.table,Ys=ft.on_action;return tn.push(Ps(En)),tn.push(na(gs)),tn.push(_n&&`(${_n.map((function(Te){return je(Te)})).join(", ")})`),tn.push(Ps(Os)),Ys.map((function(Te){return tn.push(Ps(Te.type),je(Te.value))})),tn.filter(pe)}function hb(ft){var tn=[],_n=ft.nullable,En=ft.character_set,Os=ft.check,gs=ft.comment,Ys=ft.constraint,Te=ft.collate,ye=ft.storage,Be=ft.using,io=ft.default_val,Ro=ft.generated,So=ft.auto_increment,uu=ft.unique,ko=ft.primary_key,yu=ft.column_format,au=ft.reference_definition,Iu=ft.generated_by_default,mu=[Ps(_n&&_n.action),Ps(_n&&_n.value)].filter(pe).join(" ");if(Ro||tn.push(mu),io){var Ju=io.type,ua=io.value;tn.push(Ju.toUpperCase(),je(ua))}var Sa=Pn().database;return Ys&&tn.push(Ps(Ys.keyword),_o(Ys.constraint)),tn.push(Rl(Os)),tn.push((function(ma){if(ma)return[Ps(ma.value),`(${je(ma.expr)})`,Ps(ma.storage_type)].filter(pe).join(" ")})(Ro)),Ro&&tn.push(mu),tn.push(I0(So),Ps(ko),Ps(uu),_o(Iu),Gl(gs)),tn.push.apply(tn,W0(Gi(En))),Sa.toLowerCase()!=="sqlite"&&tn.push(je(Te)),tn.push.apply(tn,W0(Gi(yu))),tn.push.apply(tn,W0(Gi(ye))),tn.push.apply(tn,W0(yb(au))),tn.push(Ie("USING",je,Be)),tn.filter(pe).join(" ")}function Kv(ft){var tn=ft.column,_n=ft.collate,En=ft.nulls,Os=ft.opclass,gs=ft.order_by,Ys=typeof tn=="string"?{type:"column_ref",table:ft.table,column:tn}:ft;return Ys.collate=null,[je(Ys),je(_n),Os,Ps(gs),Ps(En)].filter(pe).join(" ")}function Gc(ft){var tn=[],_n=Ui(ft.column),En=uv(ft.definition);return tn.push(_n),tn.push(En),tn.push(hb(ft)),tn.filter(pe).join(" ")}function _v(ft){return ft?Zf(ft)==="object"?["AS",je(ft)].join(" "):["AS",/^(`?)[a-z_][0-9a-z_]*(`?)$/i.test(ft)?Uo(ft):Hs(ft)].join(" "):""}function kf(ft,tn){var _n=ft.expr,En=ft.type;if(En==="cast")return Pc(ft);tn&&(_n.isDual=tn);var Os=je(_n),gs=ft.expr_list;if(gs){var Ys=[Os],Te=gs.map((function(ye){return kf(ye,tn)})).join(", ");return Ys.push([Ps(En),En&&"(",Te,En&&")"].filter(pe).join("")),Ys.filter(pe).join(" ")}return _n.parentheses&&Reflect.has(_n,"array_index")&&_n.type!=="cast"&&(Os=`(${Os})`),_n.array_index&&_n.type!=="column_ref"&&_n.type!=="function"&&(Os=`${Os}${wb(_n.array_index)}`),[Os,_v(ft.as)].filter(pe).join(" ")}function vf(ft){var tn=Array.isArray(ft)&&ft[0];return!(!tn||tn.type!=="dual")}function ki(ft,tn){if(!ft||ft==="*")return ft;var _n=vf(tn);return ft.map((function(En){return kf(En,_n)})).join(", ")}_0.var=zf,_0.expr_list=function(ft){var tn=o0(ft.value),_n=ft.parentheses,En=ft.separator;if(!_n&&!En)return tn;var Os=En||", ",gs=tn.join(Os);return _n?`(${gs})`:gs},_0.select=function(ft){var tn=Cb(ft._next)==="object"?Mc(ft):gl(ft);return ft.parentheses?`(${tn})`:tn},_0.unary_expr=function(ft){var tn=ft.operator,_n=ft.parentheses,En=ft.expr,Os=`${tn}${tn==="-"||tn==="+"||tn==="~"||tn==="!"?"":" "}${je(En)}`;return _n?`(${Os})`:Os},_0.map_object=function(ft){var tn=ft.keyword,_n=ft.expr.map((function(En){return[_o(En.key),_o(En.value)].join(", ")})).join(", ");return[Ps(tn),`[${_n}]`].join("")};var Hl=Cu(1),Eb=Cu(2),Bb=Cu(3),pa=Cu(4),wl=Cu(5),Nl=Cu(6),Sv=Cu(7),Hb=Cu(8),Jf=Cu(9),pf=Cu(10),Yb=Cu(11),av=Cu(12),iv=Cu(13),a0=Cu(14),_l={athena:Hl.parse,bigquery:Eb.parse,db2:Bb.parse,flinksql:pa.parse,hive:wl.parse,mysql:Nl.parse,mariadb:Sv.parse,noql:Hb.parse,postgresql:Jf.parse,redshift:pf.parse,snowflake:iv.parse,sqlite:Yb.parse,transactsql:av.parse,trino:a0.parse};function Yl(ft){return(Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tn){return typeof tn}:function(tn){return tn&&typeof Symbol=="function"&&tn.constructor===Symbol&&tn!==Symbol.prototype?"symbol":typeof tn})(ft)}function Ab(ft,tn){var _n=typeof Symbol<"u"&&ft[Symbol.iterator]||ft["@@iterator"];if(!_n){if(Array.isArray(ft)||(_n=(function(ye,Be){if(ye){if(typeof ye=="string")return Mf(ye,Be);var io={}.toString.call(ye).slice(8,-1);return io==="Object"&&ye.constructor&&(io=ye.constructor.name),io==="Map"||io==="Set"?Array.from(ye):io==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(io)?Mf(ye,Be):void 0}})(ft))||tn&&ft&&typeof ft.length=="number"){_n&&(ft=_n);var En=0,Os=function(){};return{s:Os,n:function(){return En>=ft.length?{done:!0}:{done:!1,value:ft[En++]}},e:function(ye){throw ye},f:Os}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gs,Ys=!0,Te=!1;return{s:function(){_n=_n.call(ft)},n:function(){var ye=_n.next();return Ys=ye.done,ye},e:function(ye){Te=!0,gs=ye},f:function(){try{Ys||_n.return==null||_n.return()}finally{if(Te)throw gs}}}}function Mf(ft,tn){(tn==null||tn>ft.length)&&(tn=ft.length);for(var _n=0,En=Array(tn);_n<tn;_n++)En[_n]=ft[_n];return En}function Wb(ft,tn){for(var _n=0;_n<tn.length;_n++){var En=tn[_n];En.enumerable=En.enumerable||!1,En.configurable=!0,"value"in En&&(En.writable=!0),Object.defineProperty(ft,Df(En.key),En)}}function Df(ft){var tn=(function(_n,En){if(Yl(_n)!="object"||!_n)return _n;var Os=_n[Symbol.toPrimitive];if(Os!==void 0){var gs=Os.call(_n,En||"default");if(Yl(gs)!="object")return gs;throw TypeError("@@toPrimitive must return a primitive value.")}return(En==="string"?String:Number)(_n)})(ft,"string");return Yl(tn)=="symbol"?tn:tn+""}var mb=(function(){return ft=function En(){(function(Os,gs){if(!(Os instanceof gs))throw TypeError("Cannot call a class as a function")})(this,En)},(tn=[{key:"astify",value:function(En){var Os=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,gs=this.parse(En,Os);return gs&&gs.ast}},{key:"sqlify",value:function(En){return Ae(arguments.length>1&&arguments[1]!==void 0?arguments[1]:t),n0(En)}},{key:"exprToSQL",value:function(En){return Ae(arguments.length>1&&arguments[1]!==void 0?arguments[1]:t),je(En)}},{key:"columnsToSQL",value:function(En,Os){if(Ae(arguments.length>2&&arguments[2]!==void 0?arguments[2]:t),!En||En==="*")return[];var gs=vf(Os);return En.map((function(Ys){return kf(Ys,gs)}))}},{key:"parse",value:function(En){var Os=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,gs=Os.database,Ys=gs===void 0?"mysql":gs;Ae(Os);var Te=Ys.toLowerCase();if(_l[Te])return _l[Te](Os.trimQuery===!1?En:En.trim(),Os.parseOptions||t.parseOptions);throw Error(`${Ys} is not supported currently`)}},{key:"whiteListCheck",value:function(En,Os){var gs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;if(Os&&Os.length!==0){var Ys=gs.type,Te=Ys===void 0?"table":Ys;if(!this[`${Te}List`]||typeof this[`${Te}List`]!="function")throw Error(`${Te} is not valid check mode`);var ye,Be=this[`${Te}List`].bind(this)(En,gs),io=!0,Ro="",So=Ab(Be);try{for(So.s();!(ye=So.n()).done;){var uu,ko=ye.value,yu=!1,au=Ab(Os);try{for(au.s();!(uu=au.n()).done;){var Iu=uu.value;if(RegExp(`^${Iu}$`,"i").test(ko)){yu=!0;break}}}catch(mu){au.e(mu)}finally{au.f()}if(!yu){Ro=ko,io=!1;break}}}catch(mu){So.e(mu)}finally{So.f()}if(!io)throw Error(`authority = '${Ro}' is required in ${Te} whiteList to execute SQL = '${En}'`)}}},{key:"tableList",value:function(En,Os){var gs=this.parse(En,Os);return gs&&gs.tableList}},{key:"columnList",value:function(En,Os){var gs=this.parse(En,Os);return gs&&gs.columnList}}])&&Wb(ft.prototype,tn),_n&&Wb(ft,_n),Object.defineProperty(ft,"prototype",{writable:!1}),ft;var ft,tn,_n})();function i0(ft){return(i0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tn){return typeof tn}:function(tn){return tn&&typeof Symbol=="function"&&tn.constructor===Symbol&&tn!==Symbol.prototype?"symbol":typeof tn})(ft)}(typeof self>"u"?"undefined":i0(self))==="object"&&self&&(self.NodeSQLParser={Parser:mb,util:To}),typeof global>"u"&&(typeof window>"u"?"undefined":i0(window))==="object"&&window&&(window.global=window),(typeof global>"u"?"undefined":i0(global))==="object"&&global&&global.window&&(global.window.NodeSQLParser={Parser:mb,util:To})}]))})),dL=vL();export{dL as default}; diff --git a/docs/assets/nord-Fs2BoKYD.js b/docs/assets/nord-Fs2BoKYD.js new file mode 100644 index 0000000..0c33235 --- /dev/null +++ b/docs/assets/nord-Fs2BoKYD.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBackground":"#3b4252","activityBar.activeBorder":"#88c0d0","activityBar.background":"#2e3440","activityBar.dropBackground":"#3b4252","activityBar.foreground":"#d8dee9","activityBarBadge.background":"#88c0d0","activityBarBadge.foreground":"#2e3440","badge.background":"#88c0d0","badge.foreground":"#2e3440","button.background":"#88c0d0ee","button.foreground":"#2e3440","button.hoverBackground":"#88c0d0","button.secondaryBackground":"#434c5e","button.secondaryForeground":"#d8dee9","button.secondaryHoverBackground":"#4c566a","charts.blue":"#81a1c1","charts.foreground":"#d8dee9","charts.green":"#a3be8c","charts.lines":"#88c0d0","charts.orange":"#d08770","charts.purple":"#b48ead","charts.red":"#bf616a","charts.yellow":"#ebcb8b","debugConsole.errorForeground":"#bf616a","debugConsole.infoForeground":"#88c0d0","debugConsole.sourceForeground":"#616e88","debugConsole.warningForeground":"#ebcb8b","debugConsoleInputIcon.foreground":"#81a1c1","debugExceptionWidget.background":"#4c566a","debugExceptionWidget.border":"#2e3440","debugToolBar.background":"#3b4252","descriptionForeground":"#d8dee9e6","diffEditor.insertedTextBackground":"#81a1c133","diffEditor.removedTextBackground":"#bf616a4d","dropdown.background":"#3b4252","dropdown.border":"#3b4252","dropdown.foreground":"#d8dee9","editor.background":"#2e3440","editor.findMatchBackground":"#88c0d066","editor.findMatchHighlightBackground":"#88c0d033","editor.findRangeHighlightBackground":"#88c0d033","editor.focusedStackFrameHighlightBackground":"#5e81ac","editor.foreground":"#d8dee9","editor.hoverHighlightBackground":"#3b4252","editor.inactiveSelectionBackground":"#434c5ecc","editor.inlineValuesBackground":"#4c566a","editor.inlineValuesForeground":"#eceff4","editor.lineHighlightBackground":"#3b4252","editor.lineHighlightBorder":"#3b4252","editor.rangeHighlightBackground":"#434c5e52","editor.selectionBackground":"#434c5ecc","editor.selectionHighlightBackground":"#434c5ecc","editor.stackFrameHighlightBackground":"#5e81ac","editor.wordHighlightBackground":"#81a1c166","editor.wordHighlightStrongBackground":"#81a1c199","editorActiveLineNumber.foreground":"#d8dee9cc","editorBracketHighlight.foreground1":"#8fbcbb","editorBracketHighlight.foreground2":"#88c0d0","editorBracketHighlight.foreground3":"#81a1c1","editorBracketHighlight.foreground4":"#5e81ac","editorBracketHighlight.foreground5":"#8fbcbb","editorBracketHighlight.foreground6":"#88c0d0","editorBracketHighlight.unexpectedBracket.foreground":"#bf616a","editorBracketMatch.background":"#2e344000","editorBracketMatch.border":"#88c0d0","editorCodeLens.foreground":"#4c566a","editorCursor.foreground":"#d8dee9","editorError.border":"#bf616a00","editorError.foreground":"#bf616a","editorGroup.background":"#2e3440","editorGroup.border":"#3b425201","editorGroup.dropBackground":"#3b425299","editorGroupHeader.border":"#3b425200","editorGroupHeader.noTabsBackground":"#2e3440","editorGroupHeader.tabsBackground":"#2e3440","editorGroupHeader.tabsBorder":"#3b425200","editorGutter.addedBackground":"#a3be8c","editorGutter.background":"#2e3440","editorGutter.deletedBackground":"#bf616a","editorGutter.modifiedBackground":"#ebcb8b","editorHint.border":"#ebcb8b00","editorHint.foreground":"#ebcb8b","editorHoverWidget.background":"#3b4252","editorHoverWidget.border":"#3b4252","editorIndentGuide.activeBackground":"#4c566a","editorIndentGuide.background":"#434c5eb3","editorInlayHint.background":"#434c5e","editorInlayHint.foreground":"#d8dee9","editorLineNumber.activeForeground":"#d8dee9","editorLineNumber.foreground":"#4c566a","editorLink.activeForeground":"#88c0d0","editorMarkerNavigation.background":"#5e81acc0","editorMarkerNavigationError.background":"#bf616ac0","editorMarkerNavigationWarning.background":"#ebcb8bc0","editorOverviewRuler.addedForeground":"#a3be8c","editorOverviewRuler.border":"#3b4252","editorOverviewRuler.currentContentForeground":"#3b4252","editorOverviewRuler.deletedForeground":"#bf616a","editorOverviewRuler.errorForeground":"#bf616a","editorOverviewRuler.findMatchForeground":"#88c0d066","editorOverviewRuler.incomingContentForeground":"#3b4252","editorOverviewRuler.infoForeground":"#81a1c1","editorOverviewRuler.modifiedForeground":"#ebcb8b","editorOverviewRuler.rangeHighlightForeground":"#88c0d066","editorOverviewRuler.selectionHighlightForeground":"#88c0d066","editorOverviewRuler.warningForeground":"#ebcb8b","editorOverviewRuler.wordHighlightForeground":"#88c0d066","editorOverviewRuler.wordHighlightStrongForeground":"#88c0d066","editorRuler.foreground":"#434c5e","editorSuggestWidget.background":"#2e3440","editorSuggestWidget.border":"#3b4252","editorSuggestWidget.focusHighlightForeground":"#88c0d0","editorSuggestWidget.foreground":"#d8dee9","editorSuggestWidget.highlightForeground":"#88c0d0","editorSuggestWidget.selectedBackground":"#434c5e","editorSuggestWidget.selectedForeground":"#d8dee9","editorWarning.border":"#ebcb8b00","editorWarning.foreground":"#ebcb8b","editorWhitespace.foreground":"#4c566ab3","editorWidget.background":"#2e3440","editorWidget.border":"#3b4252","errorForeground":"#bf616a","extensionButton.prominentBackground":"#434c5e","extensionButton.prominentForeground":"#d8dee9","extensionButton.prominentHoverBackground":"#4c566a","focusBorder":"#3b4252","foreground":"#d8dee9","gitDecoration.conflictingResourceForeground":"#5e81ac","gitDecoration.deletedResourceForeground":"#bf616a","gitDecoration.ignoredResourceForeground":"#d8dee966","gitDecoration.modifiedResourceForeground":"#ebcb8b","gitDecoration.stageDeletedResourceForeground":"#bf616a","gitDecoration.stageModifiedResourceForeground":"#ebcb8b","gitDecoration.submoduleResourceForeground":"#8fbcbb","gitDecoration.untrackedResourceForeground":"#a3be8c","input.background":"#3b4252","input.border":"#3b4252","input.foreground":"#d8dee9","input.placeholderForeground":"#d8dee999","inputOption.activeBackground":"#5e81ac","inputOption.activeBorder":"#5e81ac","inputOption.activeForeground":"#eceff4","inputValidation.errorBackground":"#bf616a","inputValidation.errorBorder":"#bf616a","inputValidation.infoBackground":"#81a1c1","inputValidation.infoBorder":"#81a1c1","inputValidation.warningBackground":"#d08770","inputValidation.warningBorder":"#d08770","keybindingLabel.background":"#4c566a","keybindingLabel.border":"#4c566a","keybindingLabel.bottomBorder":"#4c566a","keybindingLabel.foreground":"#d8dee9","list.activeSelectionBackground":"#88c0d0","list.activeSelectionForeground":"#2e3440","list.dropBackground":"#88c0d099","list.errorForeground":"#bf616a","list.focusBackground":"#88c0d099","list.focusForeground":"#d8dee9","list.focusHighlightForeground":"#eceff4","list.highlightForeground":"#88c0d0","list.hoverBackground":"#3b4252","list.hoverForeground":"#eceff4","list.inactiveFocusBackground":"#434c5ecc","list.inactiveSelectionBackground":"#434c5e","list.inactiveSelectionForeground":"#d8dee9","list.warningForeground":"#ebcb8b","merge.border":"#3b425200","merge.currentContentBackground":"#81a1c14d","merge.currentHeaderBackground":"#81a1c166","merge.incomingContentBackground":"#8fbcbb4d","merge.incomingHeaderBackground":"#8fbcbb66","minimap.background":"#2e3440","minimap.errorHighlight":"#bf616acc","minimap.findMatchHighlight":"#88c0d0","minimap.selectionHighlight":"#88c0d0cc","minimap.warningHighlight":"#ebcb8bcc","minimapGutter.addedBackground":"#a3be8c","minimapGutter.deletedBackground":"#bf616a","minimapGutter.modifiedBackground":"#ebcb8b","minimapSlider.activeBackground":"#434c5eaa","minimapSlider.background":"#434c5e99","minimapSlider.hoverBackground":"#434c5eaa","notification.background":"#3b4252","notification.buttonBackground":"#434c5e","notification.buttonForeground":"#d8dee9","notification.buttonHoverBackground":"#4c566a","notification.errorBackground":"#bf616a","notification.errorForeground":"#2e3440","notification.foreground":"#d8dee9","notification.infoBackground":"#88c0d0","notification.infoForeground":"#2e3440","notification.warningBackground":"#ebcb8b","notification.warningForeground":"#2e3440","notificationCenter.border":"#3b425200","notificationCenterHeader.background":"#2e3440","notificationCenterHeader.foreground":"#88c0d0","notificationLink.foreground":"#88c0d0","notificationToast.border":"#3b425200","notifications.background":"#3b4252","notifications.border":"#2e3440","notifications.foreground":"#d8dee9","panel.background":"#2e3440","panel.border":"#3b4252","panelTitle.activeBorder":"#88c0d000","panelTitle.activeForeground":"#88c0d0","panelTitle.inactiveForeground":"#d8dee9","peekView.border":"#4c566a","peekViewEditor.background":"#2e3440","peekViewEditor.matchHighlightBackground":"#88c0d04d","peekViewEditorGutter.background":"#2e3440","peekViewResult.background":"#2e3440","peekViewResult.fileForeground":"#88c0d0","peekViewResult.lineForeground":"#d8dee966","peekViewResult.matchHighlightBackground":"#88c0d0cc","peekViewResult.selectionBackground":"#434c5e","peekViewResult.selectionForeground":"#d8dee9","peekViewTitle.background":"#3b4252","peekViewTitleDescription.foreground":"#d8dee9","peekViewTitleLabel.foreground":"#88c0d0","pickerGroup.border":"#3b4252","pickerGroup.foreground":"#88c0d0","progressBar.background":"#88c0d0","quickInputList.focusBackground":"#88c0d0","quickInputList.focusForeground":"#2e3440","sash.hoverBorder":"#88c0d0","scrollbar.shadow":"#00000066","scrollbarSlider.activeBackground":"#434c5eaa","scrollbarSlider.background":"#434c5e99","scrollbarSlider.hoverBackground":"#434c5eaa","selection.background":"#88c0d099","sideBar.background":"#2e3440","sideBar.border":"#3b4252","sideBar.foreground":"#d8dee9","sideBarSectionHeader.background":"#3b4252","sideBarSectionHeader.foreground":"#d8dee9","sideBarTitle.foreground":"#d8dee9","statusBar.background":"#3b4252","statusBar.border":"#3b425200","statusBar.debuggingBackground":"#5e81ac","statusBar.debuggingForeground":"#d8dee9","statusBar.foreground":"#d8dee9","statusBar.noFolderBackground":"#3b4252","statusBar.noFolderForeground":"#d8dee9","statusBarItem.activeBackground":"#4c566a","statusBarItem.errorBackground":"#3b4252","statusBarItem.errorForeground":"#bf616a","statusBarItem.hoverBackground":"#434c5e","statusBarItem.prominentBackground":"#3b4252","statusBarItem.prominentHoverBackground":"#434c5e","statusBarItem.warningBackground":"#ebcb8b","statusBarItem.warningForeground":"#2e3440","tab.activeBackground":"#3b4252","tab.activeBorder":"#88c0d000","tab.activeBorderTop":"#88c0d000","tab.activeForeground":"#d8dee9","tab.border":"#3b425200","tab.hoverBackground":"#3b4252cc","tab.hoverBorder":"#88c0d000","tab.inactiveBackground":"#2e3440","tab.inactiveForeground":"#d8dee966","tab.lastPinnedBorder":"#4c566a","tab.unfocusedActiveBorder":"#88c0d000","tab.unfocusedActiveBorderTop":"#88c0d000","tab.unfocusedActiveForeground":"#d8dee999","tab.unfocusedHoverBackground":"#3b4252b3","tab.unfocusedHoverBorder":"#88c0d000","tab.unfocusedInactiveForeground":"#d8dee966","terminal.ansiBlack":"#3b4252","terminal.ansiBlue":"#81a1c1","terminal.ansiBrightBlack":"#4c566a","terminal.ansiBrightBlue":"#81a1c1","terminal.ansiBrightCyan":"#8fbcbb","terminal.ansiBrightGreen":"#a3be8c","terminal.ansiBrightMagenta":"#b48ead","terminal.ansiBrightRed":"#bf616a","terminal.ansiBrightWhite":"#eceff4","terminal.ansiBrightYellow":"#ebcb8b","terminal.ansiCyan":"#88c0d0","terminal.ansiGreen":"#a3be8c","terminal.ansiMagenta":"#b48ead","terminal.ansiRed":"#bf616a","terminal.ansiWhite":"#e5e9f0","terminal.ansiYellow":"#ebcb8b","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.tab.activeBorder":"#88c0d0","textBlockQuote.background":"#3b4252","textBlockQuote.border":"#81a1c1","textCodeBlock.background":"#4c566a","textLink.activeForeground":"#88c0d0","textLink.foreground":"#88c0d0","textPreformat.foreground":"#8fbcbb","textSeparator.foreground":"#eceff4","titleBar.activeBackground":"#2e3440","titleBar.activeForeground":"#d8dee9","titleBar.border":"#2e344000","titleBar.inactiveBackground":"#2e3440","titleBar.inactiveForeground":"#d8dee966","tree.indentGuidesStroke":"#616e88","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonBackground":"#434c5e","welcomePage.buttonHoverBackground":"#4c566a","widget.shadow":"#00000066"},"displayName":"Nord","name":"nord","semanticHighlighting":true,"tokenColors":[{"settings":{"background":"#2e3440ff","foreground":"#d8dee9ff"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"comment","settings":{"foreground":"#616E88"}},{"scope":"constant.character","settings":{"foreground":"#EBCB8B"}},{"scope":"constant.character.escape","settings":{"foreground":"#EBCB8B"}},{"scope":"constant.language","settings":{"foreground":"#81A1C1"}},{"scope":"constant.numeric","settings":{"foreground":"#B48EAD"}},{"scope":"constant.regexp","settings":{"foreground":"#EBCB8B"}},{"scope":["entity.name.class","entity.name.type.class"],"settings":{"foreground":"#8FBCBB"}},{"scope":"entity.name.function","settings":{"foreground":"#88C0D0"}},{"scope":"entity.name.tag","settings":{"foreground":"#81A1C1"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#8FBCBB"}},{"scope":"entity.other.inherited-class","settings":{"fontStyle":"bold","foreground":"#8FBCBB"}},{"scope":"invalid.deprecated","settings":{"background":"#EBCB8B","foreground":"#D8DEE9"}},{"scope":"invalid.illegal","settings":{"background":"#BF616A","foreground":"#D8DEE9"}},{"scope":"keyword","settings":{"foreground":"#81A1C1"}},{"scope":"keyword.operator","settings":{"foreground":"#81A1C1"}},{"scope":"keyword.other.new","settings":{"foreground":"#81A1C1"}},{"scope":"markup.bold","settings":{"fontStyle":"bold"}},{"scope":"markup.changed","settings":{"foreground":"#EBCB8B"}},{"scope":"markup.deleted","settings":{"foreground":"#BF616A"}},{"scope":"markup.inserted","settings":{"foreground":"#A3BE8C"}},{"scope":"meta.preprocessor","settings":{"foreground":"#5E81AC"}},{"scope":"punctuation","settings":{"foreground":"#ECEFF4"}},{"scope":["punctuation.definition.method-parameters","punctuation.definition.function-parameters","punctuation.definition.parameters"],"settings":{"foreground":"#ECEFF4"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#81A1C1"}},{"scope":["punctuation.definition.comment","punctuation.end.definition.comment","punctuation.start.definition.comment"],"settings":{"foreground":"#616E88"}},{"scope":"punctuation.section","settings":{"foreground":"#ECEFF4"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#81A1C1"}},{"scope":"punctuation.terminator","settings":{"foreground":"#81A1C1"}},{"scope":"punctuation.definition.variable","settings":{"foreground":"#81A1C1"}},{"scope":"storage","settings":{"foreground":"#81A1C1"}},{"scope":"string","settings":{"foreground":"#A3BE8C"}},{"scope":"string.regexp","settings":{"foreground":"#EBCB8B"}},{"scope":"support.class","settings":{"foreground":"#8FBCBB"}},{"scope":"support.constant","settings":{"foreground":"#81A1C1"}},{"scope":"support.function","settings":{"foreground":"#88C0D0"}},{"scope":"support.function.construct","settings":{"foreground":"#81A1C1"}},{"scope":"support.type","settings":{"foreground":"#8FBCBB"}},{"scope":"support.type.exception","settings":{"foreground":"#8FBCBB"}},{"scope":"token.debug-token","settings":{"foreground":"#b48ead"}},{"scope":"token.error-token","settings":{"foreground":"#bf616a"}},{"scope":"token.info-token","settings":{"foreground":"#88c0d0"}},{"scope":"token.warn-token","settings":{"foreground":"#ebcb8b"}},{"scope":"variable.other","settings":{"foreground":"#D8DEE9"}},{"scope":"variable.language","settings":{"foreground":"#81A1C1"}},{"scope":"variable.parameter","settings":{"foreground":"#D8DEE9"}},{"scope":"punctuation.separator.pointer-access.c","settings":{"foreground":"#81A1C1"}},{"scope":["source.c meta.preprocessor.include","source.c string.quoted.other.lt-gt.include"],"settings":{"foreground":"#8FBCBB"}},{"scope":["source.cpp keyword.control.directive.conditional","source.cpp punctuation.definition.directive","source.c keyword.control.directive.conditional","source.c punctuation.definition.directive"],"settings":{"fontStyle":"bold","foreground":"#5E81AC"}},{"scope":"source.css constant.other.color.rgb-value","settings":{"foreground":"#B48EAD"}},{"scope":"source.css meta.property-value","settings":{"foreground":"#88C0D0"}},{"scope":["source.css keyword.control.at-rule.media","source.css keyword.control.at-rule.media punctuation.definition.keyword"],"settings":{"foreground":"#D08770"}},{"scope":"source.css punctuation.definition.keyword","settings":{"foreground":"#81A1C1"}},{"scope":"source.css support.type.property-name","settings":{"foreground":"#D8DEE9"}},{"scope":"source.diff meta.diff.range.context","settings":{"foreground":"#8FBCBB"}},{"scope":"source.diff meta.diff.header.from-file","settings":{"foreground":"#8FBCBB"}},{"scope":"source.diff punctuation.definition.from-file","settings":{"foreground":"#8FBCBB"}},{"scope":"source.diff punctuation.definition.range","settings":{"foreground":"#8FBCBB"}},{"scope":"source.diff punctuation.definition.separator","settings":{"foreground":"#81A1C1"}},{"scope":"entity.name.type.module.elixir","settings":{"foreground":"#8FBCBB"}},{"scope":"variable.other.readwrite.module.elixir","settings":{"fontStyle":"bold","foreground":"#D8DEE9"}},{"scope":"constant.other.symbol.elixir","settings":{"fontStyle":"bold","foreground":"#D8DEE9"}},{"scope":"variable.other.constant.elixir","settings":{"foreground":"#8FBCBB"}},{"scope":"source.go constant.other.placeholder.go","settings":{"foreground":"#EBCB8B"}},{"scope":"source.java comment.block.documentation.javadoc punctuation.definition.entity.html","settings":{"foreground":"#81A1C1"}},{"scope":"source.java constant.other","settings":{"foreground":"#D8DEE9"}},{"scope":"source.java keyword.other.documentation","settings":{"foreground":"#8FBCBB"}},{"scope":"source.java keyword.other.documentation.author.javadoc","settings":{"foreground":"#8FBCBB"}},{"scope":["source.java keyword.other.documentation.directive","source.java keyword.other.documentation.custom"],"settings":{"foreground":"#8FBCBB"}},{"scope":"source.java keyword.other.documentation.see.javadoc","settings":{"foreground":"#8FBCBB"}},{"scope":"source.java meta.method-call meta.method","settings":{"foreground":"#88C0D0"}},{"scope":["source.java meta.tag.template.link.javadoc","source.java string.other.link.title.javadoc"],"settings":{"foreground":"#8FBCBB"}},{"scope":"source.java meta.tag.template.value.javadoc","settings":{"foreground":"#88C0D0"}},{"scope":"source.java punctuation.definition.keyword.javadoc","settings":{"foreground":"#8FBCBB"}},{"scope":["source.java punctuation.definition.tag.begin.javadoc","source.java punctuation.definition.tag.end.javadoc"],"settings":{"foreground":"#616E88"}},{"scope":"source.java storage.modifier.import","settings":{"foreground":"#8FBCBB"}},{"scope":"source.java storage.modifier.package","settings":{"foreground":"#8FBCBB"}},{"scope":"source.java storage.type","settings":{"foreground":"#8FBCBB"}},{"scope":"source.java storage.type.annotation","settings":{"foreground":"#D08770"}},{"scope":"source.java storage.type.generic","settings":{"foreground":"#8FBCBB"}},{"scope":"source.java storage.type.primitive","settings":{"foreground":"#81A1C1"}},{"scope":["source.js punctuation.decorator","source.js meta.decorator variable.other.readwrite","source.js meta.decorator entity.name.function"],"settings":{"foreground":"#D08770"}},{"scope":"source.js meta.object-literal.key","settings":{"foreground":"#88C0D0"}},{"scope":"source.js storage.type.class.jsdoc","settings":{"foreground":"#8FBCBB"}},{"scope":["source.js string.quoted.template punctuation.quasi.element.begin","source.js string.quoted.template punctuation.quasi.element.end","source.js string.template punctuation.definition.template-expression"],"settings":{"foreground":"#81A1C1"}},{"scope":"source.js string.quoted.template meta.method-call.with-arguments","settings":{"foreground":"#ECEFF4"}},{"scope":["source.js string.template meta.template.expression support.variable.property","source.js string.template meta.template.expression variable.other.object"],"settings":{"foreground":"#D8DEE9"}},{"scope":"source.js support.type.primitive","settings":{"foreground":"#81A1C1"}},{"scope":"source.js variable.other.object","settings":{"foreground":"#D8DEE9"}},{"scope":"source.js variable.other.readwrite.alias","settings":{"foreground":"#8FBCBB"}},{"scope":["source.js meta.embedded.line meta.brace.square","source.js meta.embedded.line meta.brace.round","source.js string.quoted.template meta.brace.square","source.js string.quoted.template meta.brace.round"],"settings":{"foreground":"#ECEFF4"}},{"scope":"text.html.basic constant.character.entity.html","settings":{"foreground":"#EBCB8B"}},{"scope":"text.html.basic constant.other.inline-data","settings":{"fontStyle":"italic","foreground":"#D08770"}},{"scope":"text.html.basic meta.tag.sgml.doctype","settings":{"foreground":"#5E81AC"}},{"scope":"text.html.basic punctuation.definition.entity","settings":{"foreground":"#81A1C1"}},{"scope":"source.properties entity.name.section.group-title.ini","settings":{"foreground":"#88C0D0"}},{"scope":"source.properties punctuation.separator.key-value.ini","settings":{"foreground":"#81A1C1"}},{"scope":["text.html.markdown markup.fenced_code.block","text.html.markdown markup.fenced_code.block punctuation.definition"],"settings":{"foreground":"#8FBCBB"}},{"scope":"markup.heading","settings":{"foreground":"#88C0D0"}},{"scope":["text.html.markdown markup.inline.raw","text.html.markdown markup.inline.raw punctuation.definition.raw"],"settings":{"foreground":"#8FBCBB"}},{"scope":"text.html.markdown markup.italic","settings":{"fontStyle":"italic"}},{"scope":"text.html.markdown markup.underline.link","settings":{"fontStyle":"underline"}},{"scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#81A1C1"}},{"scope":"text.html.markdown beginning.punctuation.definition.quote","settings":{"foreground":"#8FBCBB"}},{"scope":"text.html.markdown markup.quote","settings":{"foreground":"#616E88"}},{"scope":"text.html.markdown constant.character.math.tex","settings":{"foreground":"#81A1C1"}},{"scope":["text.html.markdown punctuation.definition.math.begin","text.html.markdown punctuation.definition.math.end"],"settings":{"foreground":"#5E81AC"}},{"scope":"text.html.markdown punctuation.definition.function.math.tex","settings":{"foreground":"#88C0D0"}},{"scope":"text.html.markdown punctuation.math.operator.latex","settings":{"foreground":"#81A1C1"}},{"scope":"text.html.markdown punctuation.definition.heading","settings":{"foreground":"#81A1C1"}},{"scope":["text.html.markdown punctuation.definition.constant","text.html.markdown punctuation.definition.string"],"settings":{"foreground":"#81A1C1"}},{"scope":["text.html.markdown constant.other.reference.link","text.html.markdown string.other.link.description","text.html.markdown string.other.link.title"],"settings":{"foreground":"#88C0D0"}},{"scope":"source.perl punctuation.definition.variable","settings":{"foreground":"#D8DEE9"}},{"scope":["source.php meta.function-call","source.php meta.function-call.object"],"settings":{"foreground":"#88C0D0"}},{"scope":["source.python entity.name.function.decorator","source.python meta.function.decorator support.type"],"settings":{"foreground":"#D08770"}},{"scope":"source.python meta.function-call.generic","settings":{"foreground":"#88C0D0"}},{"scope":"source.python support.type","settings":{"foreground":"#88C0D0"}},{"scope":["source.python variable.parameter.function.language"],"settings":{"foreground":"#D8DEE9"}},{"scope":["source.python meta.function.parameters variable.parameter.function.language.special.self"],"settings":{"foreground":"#81A1C1"}},{"scope":"source.rust entity.name.type","settings":{"foreground":"#8FBCBB"}},{"scope":"source.rust meta.macro entity.name.function","settings":{"fontStyle":"bold","foreground":"#88C0D0"}},{"scope":["source.rust meta.attribute","source.rust meta.attribute punctuation","source.rust meta.attribute keyword.operator"],"settings":{"foreground":"#5E81AC"}},{"scope":"source.rust entity.name.type.trait","settings":{"fontStyle":"bold"}},{"scope":"source.rust punctuation.definition.interpolation","settings":{"foreground":"#EBCB8B"}},{"scope":["source.css.scss punctuation.definition.interpolation.begin.bracket.curly","source.css.scss punctuation.definition.interpolation.end.bracket.curly"],"settings":{"foreground":"#81A1C1"}},{"scope":"source.css.scss variable.interpolation","settings":{"fontStyle":"italic","foreground":"#D8DEE9"}},{"scope":["source.ts punctuation.decorator","source.ts meta.decorator variable.other.readwrite","source.ts meta.decorator entity.name.function","source.tsx punctuation.decorator","source.tsx meta.decorator variable.other.readwrite","source.tsx meta.decorator entity.name.function"],"settings":{"foreground":"#D08770"}},{"scope":["source.ts meta.object-literal.key","source.tsx meta.object-literal.key"],"settings":{"foreground":"#D8DEE9"}},{"scope":["source.ts meta.object-literal.key entity.name.function","source.tsx meta.object-literal.key entity.name.function"],"settings":{"foreground":"#88C0D0"}},{"scope":["source.ts support.class","source.ts support.type","source.ts entity.name.type","source.ts entity.name.class","source.tsx support.class","source.tsx support.type","source.tsx entity.name.type","source.tsx entity.name.class"],"settings":{"foreground":"#8FBCBB"}},{"scope":["source.ts support.constant.math","source.ts support.constant.dom","source.ts support.constant.json","source.tsx support.constant.math","source.tsx support.constant.dom","source.tsx support.constant.json"],"settings":{"foreground":"#8FBCBB"}},{"scope":["source.ts support.variable","source.tsx support.variable"],"settings":{"foreground":"#D8DEE9"}},{"scope":["source.ts meta.embedded.line meta.brace.square","source.ts meta.embedded.line meta.brace.round","source.tsx meta.embedded.line meta.brace.square","source.tsx meta.embedded.line meta.brace.round"],"settings":{"foreground":"#ECEFF4"}},{"scope":"text.xml entity.name.tag.namespace","settings":{"foreground":"#8FBCBB"}},{"scope":"text.xml keyword.other.doctype","settings":{"foreground":"#5E81AC"}},{"scope":"text.xml meta.tag.preprocessor entity.name.tag","settings":{"foreground":"#5E81AC"}},{"scope":["text.xml string.unquoted.cdata","text.xml string.unquoted.cdata punctuation.definition.string"],"settings":{"fontStyle":"italic","foreground":"#D08770"}},{"scope":"source.yaml entity.name.tag","settings":{"foreground":"#8FBCBB"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/now-6sUe0ZdD.js b/docs/assets/now-6sUe0ZdD.js new file mode 100644 index 0000000..64fd991 --- /dev/null +++ b/docs/assets/now-6sUe0ZdD.js @@ -0,0 +1 @@ +import{E as i,x as a}from"./_Uint8Array-BGESiCQL.js";import{t as o}from"./isSymbol-BGkTcW3U.js";var s=/\s/;function u(t){for(var r=t.length;r--&&s.test(t.charAt(r)););return r}var c=u,p=/^\s+/;function v(t){return t&&t.slice(0,c(t)+1).replace(p,"")}var l=v,f=NaN,m=/^[-+]0x[0-9a-f]+$/i,e=/^0b[01]+$/i,g=/^0o[0-7]+$/i,h=parseInt;function x(t){if(typeof t=="number")return t;if(o(t))return f;if(a(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=a(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=l(t);var n=e.test(t);return n||g.test(t)?h(t.slice(2),n?2:8):m.test(t)?f:+t}var y=x,$=function(){return i.Date.now()};export{y as n,$ as t}; diff --git a/docs/assets/nsis-C1g8DTeO.js b/docs/assets/nsis-C1g8DTeO.js new file mode 100644 index 0000000..eeb6232 --- /dev/null +++ b/docs/assets/nsis-C1g8DTeO.js @@ -0,0 +1 @@ +import{t as s}from"./nsis-C5Oj2cBc.js";export{s as nsis}; diff --git a/docs/assets/nsis-C5Oj2cBc.js b/docs/assets/nsis-C5Oj2cBc.js new file mode 100644 index 0000000..0f3b962 --- /dev/null +++ b/docs/assets/nsis-C5Oj2cBc.js @@ -0,0 +1 @@ +import{t as e}from"./simple-mode-B3UD3n_i.js";const t=e({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}});export{t}; diff --git a/docs/assets/ntriples-D6VU4eew.js b/docs/assets/ntriples-D6VU4eew.js new file mode 100644 index 0000000..65803e8 --- /dev/null +++ b/docs/assets/ntriples-D6VU4eew.js @@ -0,0 +1 @@ +var R={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function T(t,I){var _=t.location;t.location=_==R.PRE_SUBJECT&&I=="<"?R.WRITING_SUB_URI:_==R.PRE_SUBJECT&&I=="_"?R.WRITING_BNODE_URI:_==R.PRE_PRED&&I=="<"?R.WRITING_PRED_URI:_==R.PRE_OBJ&&I=="<"?R.WRITING_OBJ_URI:_==R.PRE_OBJ&&I=="_"?R.WRITING_OBJ_BNODE:_==R.PRE_OBJ&&I=='"'?R.WRITING_OBJ_LITERAL:_==R.WRITING_SUB_URI&&I==">"||_==R.WRITING_BNODE_URI&&I==" "?R.PRE_PRED:_==R.WRITING_PRED_URI&&I==">"?R.PRE_OBJ:_==R.WRITING_OBJ_URI&&I==">"||_==R.WRITING_OBJ_BNODE&&I==" "||_==R.WRITING_OBJ_LITERAL&&I=='"'||_==R.WRITING_LIT_LANG&&I==" "||_==R.WRITING_LIT_TYPE&&I==">"?R.POST_OBJ:_==R.WRITING_OBJ_LITERAL&&I=="@"?R.WRITING_LIT_LANG:_==R.WRITING_OBJ_LITERAL&&I=="^"?R.WRITING_LIT_TYPE:I==" "&&(_==R.PRE_SUBJECT||_==R.PRE_PRED||_==R.PRE_OBJ||_==R.POST_OBJ)?_:_==R.POST_OBJ&&I=="."?R.PRE_SUBJECT:R.ERROR}const O={name:"ntriples",startState:function(){return{location:R.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(t,I){var _=t.next();if(_=="<"){T(I,_);var E="";return t.eatWhile(function(r){return r!="#"&&r!=">"?(E+=r,!0):!1}),I.uris.push(E),t.match("#",!1)||(t.next(),T(I,">")),"variable"}if(_=="#"){var i="";return t.eatWhile(function(r){return r!=">"&&r!=" "?(i+=r,!0):!1}),I.anchors.push(i),"url"}if(_==">")return T(I,">"),"variable";if(_=="_"){T(I,_);var B="";return t.eatWhile(function(r){return r==" "?!1:(B+=r,!0)}),I.bnodes.push(B),t.next(),T(I," "),"builtin"}if(_=='"')return T(I,_),t.eatWhile(function(r){return r!='"'}),t.next(),t.peek()!="@"&&t.peek()!="^"&&T(I,'"'),"string";if(_=="@"){T(I,"@");var N="";return t.eatWhile(function(r){return r==" "?!1:(N+=r,!0)}),I.langs.push(N),t.next(),T(I," "),"string.special"}if(_=="^"){t.next(),T(I,"^");var a="";return t.eatWhile(function(r){return r==">"?!1:(a+=r,!0)}),I.types.push(a),t.next(),T(I,">"),"variable"}_==" "&&T(I,_),_=="."&&T(I,_)}};export{O as t}; diff --git a/docs/assets/ntriples-DTMBUZ7F.js b/docs/assets/ntriples-DTMBUZ7F.js new file mode 100644 index 0000000..4805e1b --- /dev/null +++ b/docs/assets/ntriples-DTMBUZ7F.js @@ -0,0 +1 @@ +import{t as r}from"./ntriples-D6VU4eew.js";export{r as ntriples}; diff --git a/docs/assets/number-overlay-editor-CKxhKINF.js b/docs/assets/number-overlay-editor-CKxhKINF.js new file mode 100644 index 0000000..9acbb0b --- /dev/null +++ b/docs/assets/number-overlay-editor-CKxhKINF.js @@ -0,0 +1,9 @@ +import{s as It}from"./chunk-LvLJmgfZ.js";import{t as Tt}from"./react-BGmjiNul.js";import{t as Ct}from"./dist-B-NVryHt.js";var D=It(Tt());const jt=Ct("div")({name:"NumberOverlayEditorStyle",class:"gdg-n15fjm3e",propsAsIs:!1});function it(t,r){var e={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(e[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(e[a[n]]=t[a[n]]);return e}var tt;(function(t){t.event="event",t.props="prop"})(tt||(tt={}));function q(){}function Rt(t){var r,e=void 0;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];return r&&a.length===r.length&&a.every(function(u,l){return u===r[l]})||(r=a,e=t.apply(void 0,a)),e}}function Y(t){return!!(t||"").match(/\d/)}function X(t){return t==null}function Ft(t){return typeof t=="number"&&isNaN(t)}function lt(t){return X(t)||Ft(t)||typeof t=="number"&&!isFinite(t)}function ct(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Bt(t){switch(t){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Mt(t,r,e){var a=Bt(e),n=t.search(/[1-9]/);return n=n===-1?t.length:n,t.substring(0,n)+t.substring(n,t.length).replace(a,"$1"+r)}function kt(t){var r=(0,D.useRef)(t);return r.current=t,(0,D.useRef)(function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return r.current.apply(r,e)}).current}function nt(t,r){r===void 0&&(r=!0);var e=t[0]==="-",a=e&&r;t=t.replace("-","");var n=t.split(".");return{beforeDecimal:n[0],afterDecimal:n[1]||"",hasNegation:e,addNegation:a}}function Lt(t){if(!t)return t;var r=t[0]==="-";r&&(t=t.substring(1,t.length));var e=t.split("."),a=e[0].replace(/^0+/,"")||"0",n=e[1]||"";return(r?"-":"")+a+(n?"."+n:"")}function st(t,r,e){for(var a="",n=e?"0":"",u=0;u<=r-1;u++)a+=t[u]||n;return a}function ft(t,r){return Array(r+1).join(t)}function vt(t){var r=t+"",e=r[0]==="-"?"-":"";e&&(r=r.substring(1));var a=r.split(/[eE]/g),n=a[0],u=a[1];if(u=Number(u),!u)return e+n;n=n.replace(".","");var l=1+u,m=n.length;return l<0?n="0."+ft("0",Math.abs(l))+n:l>=m?n+=ft("0",l-m):n=(n.substring(0,l)||"0")+"."+n.substring(l),e+n}function dt(t,r,e){if(["","-"].indexOf(t)!==-1)return t;var a=(t.indexOf(".")!==-1||e)&&r,n=nt(t),u=n.beforeDecimal,l=n.afterDecimal,m=n.hasNegation,b=parseFloat("0."+(l||"0")),p=(l.length<=r?"0."+l:b.toFixed(r)).split("."),h=u;u&&Number(p[0])&&(h=u.split("").reverse().reduce(function(c,A,v){return c.length>v?(Number(c[0])+Number(A)).toString()+c.substring(1,c.length):A+c},p[0]));var f=st(p[1]||"",r,e),S=m?"-":"",y=a?".":"";return""+S+h+y+f}function Q(t,r){if(t.value=t.value,t!==null){if(t.createTextRange){var e=t.createTextRange();return e.move("character",r),e.select(),!0}return t.selectionStart||t.selectionStart===0?(t.focus(),t.setSelectionRange(r,r),!0):(t.focus(),!1)}}var gt=Rt(function(t,r){for(var e=0,a=0,n=t.length,u=r.length;t[e]===r[e]&&e<n;)e++;for(;t[n-1-a]===r[u-1-a]&&u-a>e&&n-a>e;)a++;return{from:{start:e,end:n-a},to:{start:e,end:u-a}}}),Wt=function(t,r){var e=Math.min(t.selectionStart,r);return{from:{start:e,end:t.selectionEnd},to:{start:e,end:r}}};function Pt(t,r,e){return Math.min(Math.max(t,r),e)}function ut(t){return Math.max(t.selectionStart,t.selectionEnd)}function Kt(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Gt(t){return{from:{start:0,end:0},to:{start:0,end:t.length},lastValue:""}}function Ut(t){var r=t.currentValue,e=t.formattedValue,a=t.currentValueIndex,n=t.formattedValueIndex;return r[a]===e[n]}function _t(t,r,e,a,n,u,l){l===void 0&&(l=Ut);var m=n.findIndex(function(B){return B}),b=t.slice(0,m);!r&&!e.startsWith(b)&&(r=b,e=b+e,a+=b.length);for(var p=e.length,h=t.length,f={},S=Array(p),y=0;y<p;y++){S[y]=-1;for(var c=0,A=h;c<A;c++)if(l({currentValue:e,lastValue:r,formattedValue:t,currentValueIndex:y,formattedValueIndex:c})&&f[c]!==!0){S[y]=c,f[c]=!0;break}}for(var v=a;v<p&&(S[v]===-1||!u(e[v]));)v++;var E=v===p||S[v]===-1?h:S[v];for(v=a-1;v>0&&S[v]===-1;)v--;var j=v===-1||S[v]===-1?0:S[v]+1;return j>E?E:a-j<E-a?j:E}function mt(t,r,e,a){var n=t.length;if(r=Pt(r,0,n),a==="left"){for(;r>=0&&!e[r];)r--;r===-1&&(r=e.indexOf(!0))}else{for(;r<=n&&!e[r];)r++;r>n&&(r=e.lastIndexOf(!0))}return r===-1&&(r=n),r}function $t(t){for(var r=Array.from({length:t.length+1}).map(function(){return!0}),e=0,a=r.length;e<a;e++)r[e]=!!(Y(t[e])||Y(t[e-1]));return r}function pt(t,r,e,a,n,u){u===void 0&&(u=q);var l=kt(function(c,A){var v,E;return lt(c)?(E="",v=""):typeof c=="number"||A?(E=typeof c=="number"?vt(c):c,v=a(E)):(E=n(c,void 0),v=a(E)),{formattedValue:v,numAsString:E}}),m=(0,D.useState)(function(){return l(X(t)?r:t,e)}),b=m[0],p=m[1],h=function(c,A){c.formattedValue!==b.formattedValue&&p({formattedValue:c.formattedValue,numAsString:c.value}),u(c,A)},f=t,S=e;X(t)&&(f=b.numAsString,S=!0);var y=l(f,S);return(0,D.useMemo)(function(){p(y)},[y.formattedValue]),[b,h]}function qt(t){return t.replace(/[^0-9]/g,"")}function Zt(t){return t}function zt(t){var r=t.type;r===void 0&&(r="text");var e=t.displayType;e===void 0&&(e="input");var a=t.customInput,n=t.renderText,u=t.getInputRef,l=t.format;l===void 0&&(l=Zt);var m=t.removeFormatting;m===void 0&&(m=qt);var b=t.defaultValue,p=t.valueIsNumericString,h=t.onValueChange,f=t.isAllowed,S=t.onChange;S===void 0&&(S=q);var y=t.onKeyDown;y===void 0&&(y=q);var c=t.onMouseUp;c===void 0&&(c=q);var A=t.onFocus;A===void 0&&(A=q);var v=t.onBlur;v===void 0&&(v=q);var E=t.value,j=t.getCaretBoundary;j===void 0&&(j=$t);var B=t.isValidInputCharacter;B===void 0&&(B=Y);var Z=t.isCharacterSame,P=it(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),z=pt(E,b,!!p,l,m,h),G=z[0],x=G.formattedValue,k=G.numAsString,H=z[1],K=(0,D.useRef)(),s=(0,D.useRef)({formattedValue:x,numAsString:k}),g=function(o,i){s.current={formattedValue:o.formattedValue,numAsString:o.value},H(o,i)},C=(0,D.useState)(!1),I=C[0],W=C[1],w=(0,D.useRef)(null),T=(0,D.useRef)({setCaretTimeout:null,focusTimeout:null});(0,D.useEffect)(function(){return W(!0),function(){clearTimeout(T.current.setCaretTimeout),clearTimeout(T.current.focusTimeout)}},[]);var J=l,R=function(o,i){var d=parseFloat(i);return{formattedValue:o,value:i,floatValue:isNaN(d)?void 0:d}},L=function(o,i,d){o.selectionStart===0&&o.selectionEnd===o.value.length||(Q(o,i),T.current.setCaretTimeout=setTimeout(function(){o.value===d&&o.selectionStart!==i&&Q(o,i)},0))},M=function(o,i,d){return mt(o,i,j(o),d)},et=function(o,i,d){var O=j(i),F=_t(i,x,o,d,O,B,Z);return F=mt(i,F,O),F},bt=function(o){var i=o.formattedValue;i===void 0&&(i="");var d=o.input,O=o.source,F=o.event,N=o.numAsString,V;if(d){var U=o.inputValue||d.value,_=ut(d);d.value=i,V=et(U,i,_),V!==void 0&&L(d,V,i)}i!==x&&g(R(i,N),{event:F,source:O})};(0,D.useEffect)(function(){var o=s.current,i=o.formattedValue,d=o.numAsString;(x!==i||k!==d)&&g(R(x,k),{event:void 0,source:tt.props})},[x,k]);var yt=w.current?ut(w.current):void 0;(typeof window<"u"?D.useLayoutEffect:D.useEffect)(function(){var o=w.current;if(x!==s.current.formattedValue&&o){var i=et(s.current.formattedValue,x,yt);o.value=x,L(o,i,x)}},[x]);var Vt=function(o,i,d){var O=i.target,F=K.current?Wt(K.current,O.selectionEnd):gt(x,o),N=Object.assign(Object.assign({},F),{lastValue:x}),V=m(o,N),U=J(V);if(V=m(U,void 0),f&&!f(R(U,V))){var _=i.target,$=et(o,x,ut(_));return _.value=x,L(_,$,x),!1}return bt({formattedValue:U,numAsString:V,inputValue:o,event:i,source:d,input:i.target}),!0},at=function(o,i){i===void 0&&(i=0),K.current={selectionStart:o.selectionStart,selectionEnd:o.selectionEnd+i}},xt=function(o){var i=o.target.value;Vt(i,o,tt.event)&&S(o),K.current=void 0},wt=function(o){var i=o.target,d=o.key,O=i.selectionStart,F=i.selectionEnd,N=i.value;N===void 0&&(N="");var V;d==="ArrowLeft"||d==="Backspace"?V=Math.max(O-1,0):d==="ArrowRight"?V=Math.min(O+1,N.length):d==="Delete"&&(V=O);var U=0;d==="Delete"&&O===F&&(U=1);var _=d==="ArrowLeft"||d==="ArrowRight";if(V===void 0||O!==F&&!_){y(o),at(i,U);return}var $=V;_?($=M(N,V,d==="ArrowLeft"?"left":"right"),$!==V&&o.preventDefault()):d==="Delete"&&!B(N[V])?$=M(N,V,"right"):d==="Backspace"&&!B(N[V])&&($=M(N,V,"left")),$!==V&&L(i,$,N),y(o),at(i,U)},Nt=function(o){var i=o.target,d=function(){var O=i.selectionStart,F=i.selectionEnd,N=i.value;if(N===void 0&&(N=""),O===F){var V=M(N,O);V!==O&&L(i,V,N)}};d(),requestAnimationFrame(function(){d()}),c(o),at(i)},Dt=function(o){o.persist&&o.persist();var i=o.target,d=o.currentTarget;w.current=i,T.current.focusTimeout=setTimeout(function(){var O=i.selectionStart,F=i.selectionEnd,N=i.value;N===void 0&&(N="");var V=M(N,O);V!==O&&!(O===0&&F===N.length)&&L(i,V,N),A(Object.assign(Object.assign({},o),{currentTarget:d}))},0)},Et=function(o){w.current=null,clearTimeout(T.current.focusTimeout),clearTimeout(T.current.setCaretTimeout),v(o)},Ot=I&&Kt()?"numeric":void 0,ot=Object.assign({inputMode:Ot},P,{type:r,value:x,onChange:xt,onKeyDown:wt,onMouseUp:Nt,onFocus:Dt,onBlur:Et});if(e==="text")return n?D.createElement(D.Fragment,null,n(x,P)||null):D.createElement("span",Object.assign({},P,{ref:u}),x);if(a){var At=a;return D.createElement(At,Object.assign({},ot,{ref:u}))}return D.createElement("input",Object.assign({},ot,{ref:u}))}function ht(t,r){var e=r.decimalScale,a=r.fixedDecimalScale,n=r.prefix;n===void 0&&(n="");var u=r.suffix;u===void 0&&(u="");var l=r.allowNegative,m=r.thousandsGroupStyle;if(m===void 0&&(m="thousand"),t===""||t==="-")return t;var b=rt(r),p=b.thousandSeparator,h=b.decimalSeparator,f=e!==0&&t.indexOf(".")!==-1||e&&a,S=nt(t,l),y=S.beforeDecimal,c=S.afterDecimal,A=S.addNegation;return e!==void 0&&(c=st(c,e,!!a)),p&&(y=Mt(y,p,m)),n&&(y=n+y),u&&(c+=u),A&&(y="-"+y),t=y+(f&&h||"")+c,t}function rt(t){var r=t.decimalSeparator;r===void 0&&(r=".");var e=t.thousandSeparator,a=t.allowedDecimalSeparators;return e===!0&&(e=","),a||(a=[r,"."]),{decimalSeparator:r,thousandSeparator:e,allowedDecimalSeparators:a}}function Ht(t,r){t===void 0&&(t="");var e=RegExp("(-)"),a=RegExp("(-)(.)*(-)"),n=e.test(t),u=a.test(t);return t=t.replace(/-/g,""),n&&!u&&r&&(t="-"+t),t}function Jt(t,r){return RegExp("(^-)|[0-9]|"+ct(t),r?"g":void 0)}function Qt(t,r,e){return t===""?!0:!(r!=null&&r.match(/\d/))&&!(e!=null&&e.match(/\d/))&&typeof t=="string"&&!isNaN(Number(t))}function Xt(t,r,e){var a;r===void 0&&(r=Gt(t));var n=e.allowNegative,u=e.prefix;u===void 0&&(u="");var l=e.suffix;l===void 0&&(l="");var m=e.decimalScale,b=r.from,p=r.to,h=p.start,f=p.end,S=rt(e),y=S.allowedDecimalSeparators,c=S.decimalSeparator,A=t[f]===c;if(Y(t)&&(t===u||t===l)&&r.lastValue==="")return t;if(f-h===1&&y.indexOf(t[h])!==-1){var v=m===0?"":c;t=t.substring(0,h)+v+t.substring(h+1,t.length)}var E=function(w,T,J){var R=!1,L=!1;u.startsWith("-")?R=!1:w.startsWith("--")?(R=!1,L=!0):l.startsWith("-")&&w.length===l.length?R=!1:w[0]==="-"&&(R=!0);var M=R?1:0;return L&&(M=2),M&&(w=w.substring(M),T-=M,J-=M),{value:w,start:T,end:J,hasNegation:R}},j=E(t,h,f),B=j.hasNegation;a=j,t=a.value,h=a.start,f=a.end;var Z=E(r.lastValue,b.start,b.end),P=Z.start,z=Z.end,G=Z.value,x=t.substring(h,f);t.length&&G.length&&(P>G.length-l.length||z<u.length)&&!(x&&l.startsWith(x))&&(t=G);var k=0;t.startsWith(u)?k+=u.length:h<u.length&&(k=h),t=t.substring(k),f-=k;var H=t.length,K=t.length-l.length;t.endsWith(l)?H=K:(f>K||f>t.length-l.length)&&(H=f),t=t.substring(0,H),t=Ht(B?"-"+t:t,n),t=(t.match(Jt(c,!0))||[]).join("");var s=t.indexOf(c);t=t.replace(new RegExp(ct(c),"g"),function(w,T){return T===s?".":""});var g=nt(t,n),C=g.beforeDecimal,I=g.afterDecimal,W=g.addNegation;return p.end-p.start<b.end-b.start&&C===""&&A&&!parseFloat(I)&&(t=W?"-":""),t}function Yt(t,r){var e=r.prefix;e===void 0&&(e="");var a=r.suffix;a===void 0&&(a="");var n=Array.from({length:t.length+1}).map(function(){return!0}),u=t[0]==="-";n.fill(!1,0,e.length+(u?1:0));var l=t.length;return n.fill(!1,l-a.length+1,l+1),n}function tr(t){var r=rt(t),e=r.thousandSeparator,a=r.decimalSeparator,n=t.prefix;n===void 0&&(n="");var u=t.allowNegative;if(u===void 0&&(u=!0),e===a)throw Error(` + Decimal separator can't be same as thousand separator. + thousandSeparator: `+e+` (thousandSeparator = {true} is same as thousandSeparator = ",") + decimalSeparator: `+a+` (default value for decimalSeparator is .) + `);return n.startsWith("-")&&u&&(console.error(` + Prefix can't start with '-' when allowNegative is true. + prefix: `+n+` + allowNegative: `+u+` + `),u=!1),Object.assign(Object.assign({},t),{allowNegative:u})}function rr(t){t=tr(t),t.decimalSeparator,t.allowedDecimalSeparators,t.thousandsGroupStyle;var r=t.suffix,e=t.allowNegative,a=t.allowLeadingZeros,n=t.onKeyDown;n===void 0&&(n=q);var u=t.onBlur;u===void 0&&(u=q);var l=t.thousandSeparator,m=t.decimalScale,b=t.fixedDecimalScale,p=t.prefix;p===void 0&&(p="");var h=t.defaultValue,f=t.value,S=t.valueIsNumericString,y=t.onValueChange,c=it(t,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),A=rt(t),v=A.decimalSeparator,E=A.allowedDecimalSeparators,j=function(s){return ht(s,t)},B=function(s,g){return Xt(s,g,t)},Z=X(f)?h:f,P=S??Qt(Z,p,r);X(f)?X(h)||P||(P=typeof h=="number"):P||(P=typeof f=="number");var z=function(s){return lt(s)?s:(typeof s=="number"&&(s=vt(s)),P&&typeof m=="number"?dt(s,m,!!b):s)},G=pt(z(f),z(h),!!P,j,B,y),x=G[0],k=x.numAsString,H=x.formattedValue,K=G[1];return Object.assign(Object.assign({},c),{value:H,valueIsNumericString:!1,isValidInputCharacter:function(s){return s===v?!0:Y(s)},isCharacterSame:function(s){var g=s.currentValue,C=s.lastValue,I=s.formattedValue,W=s.currentValueIndex,w=s.formattedValueIndex,T=g[W],J=I[w],R=gt(C,g).to,L=function(M){return B(M).indexOf(".")+p.length};return f===0&&b&&m&&g[R.start]===v&&L(g)<W&&L(I)>w?!1:W>=R.start&&W<R.end&&E&&E.includes(T)&&J===v?!0:T===J},onValueChange:K,format:j,removeFormatting:B,getCaretBoundary:function(s){return Yt(s,t)},onKeyDown:function(s){var g=s.target,C=s.key,I=g.selectionStart,W=g.selectionEnd,w=g.value;if(w===void 0&&(w=""),(C==="Backspace"||C==="Delete")&&W<p.length){s.preventDefault();return}if(I!==W){n(s);return}C==="Backspace"&&w[0]==="-"&&I===p.length+1&&e&&Q(g,1),m&&b&&(C==="Backspace"&&w[I-1]===v?(Q(g,I-1),s.preventDefault()):C==="Delete"&&w[I]===v&&s.preventDefault()),E!=null&&E.includes(C)&&w[I]===v&&Q(g,I+1);var T=l===!0?",":l;C==="Backspace"&&w[I-1]===T&&Q(g,I-1),C==="Delete"&&w[I]===T&&Q(g,I+1),n(s)},onBlur:function(s){var g=k;g.match(/\d/g)||(g=""),a||(g=Lt(g)),b&&m&&(g=dt(g,m,b)),g!==k&&K({formattedValue:ht(g,t),value:g,floatValue:parseFloat(g)},{event:s,source:tt.event}),u(s)}})}function er(t){var r=rr(t);return D.createElement(zt,Object.assign({},r))}function St(){var t,r,e;return((e=(r=(t=Intl.NumberFormat())==null?void 0:t.formatToParts(1.1))==null?void 0:r.find(a=>a.type==="decimal"))==null?void 0:e.value)??"."}function ar(){return St()==="."?",":"."}var nr=t=>{let{value:r,onChange:e,disabled:a,highlight:n,validatedSelection:u,fixedDecimals:l,allowNegative:m,thousandSeparator:b,decimalSeparator:p}=t,h=D.useRef();return D.useLayoutEffect(()=>{var f;if(u!==void 0){let S=typeof u=="number"?[u,null]:u;(f=h.current)==null||f.setSelectionRange(S[0],S[1])}},[u]),D.createElement(jt,null,D.createElement(er,{autoFocus:!0,getInputRef:h,className:"gdg-input",onFocus:f=>f.target.setSelectionRange(n?0:f.target.value.length,f.target.value.length),disabled:a===!0,decimalScale:l,allowNegative:m,thousandSeparator:b??ar(),decimalSeparator:p??St(),value:Object.is(r,-0)?"-":r??"",onValueChange:e}))};export{nr as default}; diff --git a/docs/assets/numbers-C9_R_vlY.js b/docs/assets/numbers-C9_R_vlY.js new file mode 100644 index 0000000..b89483b --- /dev/null +++ b/docs/assets/numbers-C9_R_vlY.js @@ -0,0 +1 @@ +import{d as l}from"./hotkeys-uKX61F1_.js";import{t as s}from"./once-CTiSlR1m.js";const a=s(i=>{for(let t of[100,20,2,0])try{return new Intl.NumberFormat(i,{minimumFractionDigits:0,maximumFractionDigits:t}).format(1),t}catch(n){l.error(n)}return 0});function c(i,t){return i==null?"":Array.isArray(i)?String(i):typeof i=="string"?i:typeof i=="boolean"?String(i):typeof i=="number"||typeof i=="bigint"?i.toLocaleString(t,{minimumFractionDigits:0,maximumFractionDigits:2}):String(i)}function u(i){return i===0?"0":Number.isNaN(i)?"NaN":Number.isFinite(i)?null:i>0?"Infinity":"-Infinity"}function f(i,t){let n=u(i);if(n!==null)return n;let r=Math.abs(i);if(r<.01||r>=1e6)return new Intl.NumberFormat(t.locale,{minimumFractionDigits:1,maximumFractionDigits:1,notation:"scientific"}).format(i).toLowerCase();let{shouldRound:m,locale:o}=t;return m?new Intl.NumberFormat(o,{minimumFractionDigits:0,maximumFractionDigits:2}).format(i):i.toLocaleString(o,{minimumFractionDigits:0,maximumFractionDigits:a(o)})}var e={24:"Y",21:"Z",18:"E",15:"P",12:"T",9:"G",6:"M",3:"k",0:"","-3":"m","-6":"\xB5","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"};function g(i,t){let n=u(i);if(n!==null)return n;let[r,m]=new Intl.NumberFormat(t,{notation:"engineering",maximumSignificantDigits:3}).format(i).split("E");return m in e?r+e[m]:`${r}E${m}`}export{f as i,g as n,c as r,a as t}; diff --git a/docs/assets/nushell-greG_J0C.js b/docs/assets/nushell-greG_J0C.js new file mode 100644 index 0000000..63b2992 --- /dev/null +++ b/docs/assets/nushell-greG_J0C.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"nushell","name":"nushell","patterns":[{"include":"#define-variable"},{"include":"#define-alias"},{"include":"#function"},{"include":"#extern"},{"include":"#module"},{"include":"#use-module"},{"include":"#expression"},{"include":"#comment"}],"repository":{"binary":{"begin":"\\\\b(0x)(\\\\[)","beginCaptures":{"1":{"name":"constant.numeric.nushell"},"2":{"name":"meta.brace.square.begin.nushell"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.begin.nushell"}},"name":"constant.binary.nushell","patterns":[{"match":"\\\\h{2}","name":"constant.numeric.nushell"}]},"braced-expression":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.nushell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.nushell"}},"name":"meta.expression.braced.nushell","patterns":[{"begin":"(?<=\\\\{)\\\\s*\\\\|","end":"\\\\|","name":"meta.closure.parameters.nushell","patterns":[{"include":"#function-parameter"}]},{"captures":{"1":{"name":"variable.other.nushell"},"2":{"name":"keyword.control.nushell"}},"match":"(\\\\w+)\\\\s*(:)\\\\s*"},{"captures":{"1":{"name":"variable.other.nushell"},"2":{"name":"variable.other.nushell","patterns":[{"include":"#paren-expression"}]},"3":{"name":"keyword.control.nushell"}},"match":"(\\\\$\\"((?:[^\\"\\\\\\\\]|\\\\\\\\.)*)\\")\\\\s*(:)\\\\s*","name":"meta.record-entry.nushell"},{"captures":{"1":{"name":"variable.other.nushell"},"2":{"name":"keyword.control.nushell"}},"match":"(\\"(?:[^\\"\\\\\\\\]|\\\\\\\\.)*\\")\\\\s*(:)\\\\s*","name":"meta.record-entry.nushell"},{"captures":{"1":{"name":"variable.other.nushell"},"2":{"name":"variable.other.nushell","patterns":[{"include":"#paren-expression"}]},"3":{"name":"keyword.control.nushell"}},"match":"(\\\\$'([^']*)')\\\\s*(:)\\\\s*","name":"meta.record-entry.nushell"},{"captures":{"1":{"name":"variable.other.nushell"},"2":{"name":"keyword.control.nushell"}},"match":"('[^']*')\\\\s*(:)\\\\s*","name":"meta.record-entry.nushell"},{"include":"#spread"},{"include":"source.nushell"}]},"command":{"begin":"(?<!\\\\w)(?:(\\\\^)|(?![$0-9]))([!.\\\\w]+(?: (?!-)[-!.\\\\w]+(?:(?=[ )])|$)|[-!.\\\\w]+)*|(?<=\\\\^)\\\\$?(?:\\"[^\\"]+\\"|'[^']+'))","beginCaptures":{"1":{"name":"keyword.operator.nushell"},"2":{"patterns":[{"include":"#control-keywords"},{"captures":{"0":{"name":"keyword.other.builtin.nushell"}},"match":"(?:ansi|char) \\\\w+"},{"captures":{"1":{"name":"keyword.other.builtin.nushell"},"2":{"patterns":[{"include":"#value"}]}},"match":"(a(?:l(?:ias|l)|n(?:si(?: (?:gradient|link|strip))?|y)|ppend|st)|b(?:g|its(?: (?:and|not|or|ro[lr]|sh[lr]|xor))?|reak|ytes(?: (?:a(?:dd|t)|build|collect|ends-with|index-of|length|re(?:move|place|verse)|starts-with))?)|c(?:al|d|h(?:ar|unks)|lear|o(?:l(?:lect|umns)|m(?:mandline(?: (?:edit|get-cursor|set-cursor))?|p(?:act|lete))|n(?:fig(?: (?:env|nu|reset))?|st|tinue))|p)|d(?:ate(?: (?:format|humanize|list-timezone|now|to-(?:record|t(?:able|imezone))))?|e(?:bug(?: (?:info|profile))?|code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|f(?:ault)?|scribe|tect columns)|o|rop(?: (?:column|nth))?|t(?: (?:add|diff|format|now|part|to|utcnow))?|u)|e(?:ach(?: while)?|cho|moji|n(?:code(?: (?:base(?:32(?:hex)?|64)|hex|new-base64))?|umerate)|rror make|very|x(?:ec|it|p(?:l(?:ain|ore)|ort(?: (?:alias|const|def|extern|module|use)|-env)?)|tern))|f(?:i(?:l(?:[el]|ter)|nd|rst)|latten|mt|or(?:mat(?: (?:d(?:ate|uration)|filesize|pattern))?)?|rom(?: (?:csv|eml|i(?:cs|ni)|json|msgpackz?|nuon|ods|p(?:arquet|list)|ssv|t(?:oml|sv)|url|vcf|x(?:lsx|ml)|ya?ml))?)|g(?:e(?:nerate|t)|lob|r(?:id|oup(?:-by)?)|stat)|h(?:ash(?: (?:md5|sha256))?|e(?:aders|lp(?: (?:aliases|commands|e(?:scapes|xterns)|modules|operators))?)|i(?:de(?:-env)?|sto(?:gram|ry(?: session)?))|ttp(?: (?:delete|get|head|options|p(?:atch|ost|ut)))?)|i(?:f|gnore|n(?:c|put(?: list(?:en)?)?|s(?:ert|pect)|t(?:erleave|o(?: (?:b(?:i(?:nary|ts)|ool)|cell-path|d(?:atetime|uration)|f(?:ilesize|loat)|glob|int|record|s(?:qlite|tring)|value))?))|s-(?:admin|empty|not-empty|terminal)|tems)|j(?:oin|son path|walk)|k(?:eybindings(?: (?:default|list(?:en)?))?|ill)|l(?:ast|e(?:ngth|t(?:-env)?)|ines|o(?:ad-env|op)|s)|m(?:at(?:ch|h(?: (?:a(?:bs|rc(?:cosh?|sinh?|tanh?)|vg)|c(?:eil|osh?)|exp|floor|l(?:n|og)|m(?:ax|edian|in|ode)|product|round|s(?:inh?|qrt|tddev|um)|tanh?|variance))?)|d|e(?:rge|tadata(?: (?:access|set))?)|k(?:dir|temp)|o(?:dule|ve)|ut|v)|nu-(?:check|highlight)|o(?:pen|verlay(?: (?:hide|list|new|use))?)|p(?:a(?:nic|r(?:-each|se)|th(?: (?:basename|dirname|ex(?:ists|pand)|join|parse|relative-to|split|type))?)|lugin(?: (?:add|list|rm|stop|use))?|net|o(?:lars(?: (?:a(?:gg(?:-groups)?|ll-(?:false|true)|ppend|rg-(?:m(?:ax|in)|sort|true|unique|where)|s(?:-date(?:time)?)?)|c(?:a(?:che|st)|o(?:l(?:lect|umns)?|n(?:cat(?:-str)?|tains)|unt(?:-null)?)|umulative)|d(?:atepart|ecimal|rop(?:-(?:duplicates|nulls))?|ummies)|exp(?:lode|r-not)|f(?:etch|i(?:l(?:l-n(?:an|ull)|ter(?:-with)?)|rst)|latten)|g(?:et(?:-(?:day|hour|m(?:inute|onth)|nanosecond|ordinal|second|week(?:day)?|year))?|roup-by)|i(?:mplode|nt(?:eger|o-(?:df|lazy|nu))|s-(?:duplicated|in|n(?:ot-n|)ull|unique))|join|l(?:ast|it|owercase)|m(?:ax|e(?:an|dian)|in)|n(?:-unique|ot)|o(?:pen|therwise)|p(?:ivot|rofile)|qu(?:antile|ery)|r(?:e(?:name|place(?:-all)?|verse)|olling)|s(?:a(?:mple|ve)|chema|e(?:lect|t(?:-with-idx)?)|h(?:ape|ift)|lice|ort-by|t(?:d|ore-(?:get|ls|rm)|r(?:-(?:join|lengths|slice)|ftime))|um(?:mary)?)|take|u(?:n(?:ique|pivot)|ppercase)|va(?:lue-counts|r)|w(?:hen|ith-column)))?|rt)|r(?:epend|int)|s)|query(?: (?:db|git|json|web(?:page-info)?|xml))?|r(?:an(?:dom(?: (?:b(?:inary|ool)|chars|dice|float|int|uuid))?|ge)|e(?:duce|g(?:ex|istry query)|ject|name|turn|verse)|m|o(?:ll(?: (?:down|left|right|up))?|tate)|un-external)|s(?:ave|c(?:hema|ope(?: (?:aliases|commands|e(?:ngine-stats|xterns)|modules|variables))?)|e(?:lect|q(?: (?:char|date))?)|huffle|kip(?: (?:until|while))?|leep|o(?:rt(?:-by)?|urce(?:-env)?)|plit(?: (?:c(?:ell-path|hars|olumn)|list|row|words)|-by)?|t(?:art|or(?: (?:create|delete|export|i(?:mport|nsert)|open|reset|update))?|r(?: (?:c(?:a(?:mel-case|pitalize)|ontains)|d(?:istance|owncase)|e(?:nds-with|xpand)|index-of|join|kebab-case|length|pascal-case|re(?:place|verse)|s(?:creaming-snake-case|imilarity|nake-case|ta(?:rts-with|ts)|ubstring)|t(?:itle-case|rim)|upcase)|ess_internals)?)|ys(?: (?:cpu|disks|host|mem|net|temp|users))?)|t(?:a(?:ble|ke(?: (?:until|while))?)|e(?:e|rm size)|imeit|o(?: (?:csv|html|json|m(?:d|sgpackz?)|nuon|p(?:arquet|list)|t(?:ext|oml|sv)|xml|yaml)|uch)?|r(?:anspose|y)|utor)|u(?:limit|n(?:ame|iq(?:-by)?)|p(?:date(?: cells)?|sert)|rl(?: (?:build-query|decode|encode|join|parse))?|se)|v(?:alues|ersion|iew(?: (?:files|ir|s(?:ource|pan)))?)|w(?:atch|h(?:ere|i(?:ch|le)|oami)|i(?:ndow|th-env)|rap)|zip)(?![-\\\\w])( (.*))?"},{"captures":{"1":{"patterns":[{"include":"#paren-expression"}]}},"match":"(?<=\\\\^)(?:\\\\$(\\"[^\\"]+\\"|'[^']+')|\\"[^\\"]+\\"|'[^']+')","name":"entity.name.type.external.nushell"},{"captures":{"1":{"name":"entity.name.type.external.nushell"},"2":{"patterns":[{"include":"#value"}]}},"match":"([.\\\\w]+(?:-[!.\\\\w]+)*)(?: (.*))?"},{"include":"#value"}]}},"end":"(?=[);|}])|$","name":"meta.command.nushell","patterns":[{"include":"#parameters"},{"include":"#spread"},{"include":"#value"}]},"comment":{"match":"(#.*)$","name":"comment.nushell"},"constant-keywords":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.nushell"},"constant-value":{"patterns":[{"include":"#constant-keywords"},{"include":"#datetime"},{"include":"#numbers"},{"include":"#numbers-hexa"},{"include":"#numbers-octal"},{"include":"#numbers-binary"},{"include":"#binary"}]},"control-keywords":{"match":"(?<![\\\\--:A-Z\\\\\\\\_a-z])(?:break|continue|else(?: if)?|for|if|loop|mut|return|try|while)(?![\\\\--:A-Z\\\\\\\\_a-z])","name":"keyword.control.nushell"},"datetime":{"match":"\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}(?:T\\\\d{2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d+)?(?:\\\\+\\\\d{2}:?\\\\d{2}|Z)?)?\\\\b","name":"constant.numeric.nushell"},"define-alias":{"captures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.type.nushell"},"3":{"patterns":[{"include":"#operators"}]}},"match":"((?:export )?alias)\\\\s+([-!\\\\w]+)\\\\s*(=)"},"define-variable":{"captures":{"1":{"name":"keyword.other.nushell"},"2":{"name":"variable.other.nushell"},"3":{"patterns":[{"include":"#operators"}]}},"match":"(let|mut|(?:export\\\\s+)?const)\\\\s+(\\\\w+)\\\\s+(=)"},"expression":{"patterns":[{"include":"#pre-command"},{"include":"#for-loop"},{"include":"#operators"},{"match":"\\\\|","name":"keyword.control.nushell"},{"include":"#control-keywords"},{"include":"#constant-value"},{"include":"#string-raw"},{"include":"#command"},{"include":"#value"}]},"extern":{"begin":"((?:export\\\\s+)?extern)\\\\s+([-\\\\w]+|\\"[- \\\\w]+\\")","beginCaptures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.type.nushell"}},"end":"(?<=])","endCaptures":{"0":{"name":"punctuation.definition.function.end.nushell"}},"patterns":[{"include":"#function-parameters"}]},"for-loop":{"begin":"(for)\\\\s+(\\\\$?\\\\w+)\\\\s+(in)\\\\s+(.+)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.other.nushell"},"2":{"name":"variable.other.nushell"},"3":{"name":"keyword.other.nushell"},"4":{"patterns":[{"include":"#value"}]},"5":{"name":"punctuation.section.block.begin.bracket.curly.nushell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.nushell"}},"name":"meta.for-loop.nushell","patterns":[{"include":"source.nushell"}]},"function":{"begin":"((?:export\\\\s+)?def(?:\\\\s+--\\\\w+)*)\\\\s+([-\\\\w]+|\\"[- \\\\w]+\\"|'[- \\\\w]+'|\`[- \\\\w]+\`)(\\\\s+--\\\\w+)*","beginCaptures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.type.nushell"},"3":{"name":"entity.name.function.nushell"}},"end":"(?<=})","patterns":[{"include":"#function-parameters"},{"include":"#function-body"},{"include":"#function-inout"}]},"function-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.function.begin.nushell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.function.end.nushell"}},"name":"meta.function.body.nushell","patterns":[{"include":"source.nushell"}]},"function-inout":{"patterns":[{"include":"#types"},{"match":"->","name":"keyword.operator.nushell"},{"include":"#function-multiple-inout"}]},"function-multiple-inout":{"begin":"(?<=]\\\\s*)(:)\\\\s+(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.in-out.nushell"},"2":{"name":"meta.brace.square.begin.nushell"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.end.nushell"}},"patterns":[{"include":"#types"},{"captures":{"1":{"name":"punctuation.separator.nushell"}},"match":"\\\\s*(,)\\\\s*"},{"captures":{"1":{"name":"keyword.operator.nushell"}},"match":"\\\\s+(->)\\\\s+"}]},"function-parameter":{"patterns":[{"captures":{"1":{"name":"keyword.control.nushell"}},"match":"(-{0,2}|\\\\.{3})[-\\\\w]+(?:\\\\((-[?\\\\w])\\\\))?","name":"variable.parameter.nushell"},{"begin":"\\\\??:\\\\s*","end":"(?=\\\\s+(?:-{0,2}|\\\\.{3})[-\\\\w]+|\\\\s*(?:[]#,=@|]|$))","patterns":[{"include":"#types"}]},{"begin":"@(?=[\\"'])","end":"(?<=[\\"'])","patterns":[{"include":"#string"}]},{"begin":"=\\\\s*","end":"(?=\\\\s+-{0,2}[-\\\\w]+|\\\\s*(?:[]#,|]|$))","name":"default.value.nushell","patterns":[{"include":"#value"}]}]},"function-parameters":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.begin.nushell"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.end.nushell"}},"name":"meta.function.parameters.nushell","patterns":[{"include":"#function-parameter"},{"include":"#comment"}]},"internal-variables":{"match":"\\\\$(?:nu|env)\\\\b","name":"variable.language.nushell"},"keyword":{"match":"def(?:-env)?","name":"keyword.other.nushell"},"module":{"begin":"((?:export\\\\s+)?module)\\\\s+([-\\\\w]+)\\\\s*\\\\{","beginCaptures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.namespace.nushell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.module.end.nushell"}},"name":"meta.module.nushell","patterns":[{"include":"source.nushell"}]},"numbers":{"match":"(?<![-\\\\w])_*+[-+]?_*+(?:(?i:NaN|infinity|inf)_*+|(?:\\\\d[_\\\\d]*+\\\\.?|\\\\._*+\\\\d)[_\\\\d]*+(?i:E_*+[-+]?_*+\\\\d[_\\\\d]*+)?)(?i:ns|us|\xB5s|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![.\\\\w])|(?=\\\\.\\\\.))","name":"constant.numeric.nushell"},"numbers-binary":{"match":"(?<![-\\\\w])_*+0_*+b_*+[01][01_]*+(?![.\\\\w])","name":"constant.numeric.nushell"},"numbers-hexa":{"match":"(?<![-\\\\w])_*+0_*+x_*+\\\\h[_\\\\h]*+(?![.\\\\w])","name":"constant.numeric.nushell"},"numbers-octal":{"match":"(?<![-\\\\w])_*+0_*+o_*+[0-7][0-7_]*+(?![.\\\\w])","name":"constant.numeric.nushell"},"operators":{"patterns":[{"include":"#operators-word"},{"include":"#operators-symbols"},{"include":"#ranges"}]},"operators-symbols":{"match":"(?<= )(?:[-*+/]=?|//|\\\\*\\\\*|!=|[<=>]=?|[!=]~|\\\\+\\\\+=?)(?= |$)","name":"keyword.control.nushell"},"operators-word":{"match":"(?<=[ (])(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?=[ )]|$)","name":"keyword.control.nushell"},"parameters":{"captures":{"1":{"name":"keyword.control.nushell"}},"match":"(?<=\\\\s)(-{1,2})[-\\\\w]+","name":"variable.parameter.nushell"},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.begin.nushell"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.end.nushell"}},"name":"meta.expression.parenthesis.nushell","patterns":[{"include":"#expression"}]},"pre-command":{"begin":"(\\\\w+)(=)","beginCaptures":{"1":{"name":"variable.other.nushell"},"2":{"patterns":[{"include":"#operators"}]}},"end":"(?=\\\\s+)","patterns":[{"include":"#value"}]},"ranges":{"match":"\\\\.\\\\.<?","name":"keyword.control.nushell"},"spread":{"match":"\\\\.\\\\.\\\\.(?=[^]}\\\\s])","name":"keyword.control.nushell"},"string":{"patterns":[{"include":"#string-single-quote"},{"include":"#string-backtick"},{"include":"#string-double-quote"},{"include":"#string-interpolated-double"},{"include":"#string-interpolated-single"},{"include":"#string-raw"},{"include":"#string-bare"}]},"string-backtick":{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}},"name":"string.quoted.single.nushell"},"string-bare":{"match":"[^\\"#$'(,;\\\\[{|\\\\s][^]\\"'(),;\\\\[{|}\\\\s]*","name":"string.bare.nushell"},"string-double-quote":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}},"name":"string.quoted.double.nushell","patterns":[{"match":"\\\\w+"},{"include":"#string-escape"}]},"string-escape":{"match":"\\\\\\\\(?:[\\"'/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.nushell"},"string-interpolated-double":{"begin":"\\\\$\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}},"name":"string.interpolated.double.nushell","patterns":[{"match":"\\\\\\\\[()]","name":"constant.character.escape.nushell"},{"include":"#string-escape"},{"include":"#paren-expression"}]},"string-interpolated-single":{"begin":"\\\\$'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}},"name":"string.interpolated.single.nushell","patterns":[{"include":"#paren-expression"}]},"string-raw":{"begin":"r(#+)'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"end":"'\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}},"name":"string.raw.nushell"},"string-single-quote":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.nushell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.nushell"}},"name":"string.quoted.single.nushell"},"table":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.begin.nushell"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.end.nushell"}},"name":"meta.table.nushell","patterns":[{"include":"#spread"},{"include":"#value"},{"match":",","name":"punctuation.separator.nushell"}]},"types":{"patterns":[{"begin":"\\\\b(list)\\\\s*<","beginCaptures":{"1":{"name":"entity.name.type.nushell"}},"end":">","name":"meta.list.nushell","patterns":[{"include":"#types"}]},{"begin":"\\\\b(record)\\\\s*<","beginCaptures":{"1":{"name":"entity.name.type.nushell"}},"end":">","name":"meta.record.nushell","patterns":[{"captures":{"1":{"name":"variable.parameter.nushell"}},"match":"([-\\\\w]+|\\"[- \\\\w]+\\"|'[^']+')\\\\s*:\\\\s*"},{"include":"#types"}]},{"match":"\\\\b(\\\\w+)\\\\b","name":"entity.name.type.nushell"}]},"use-module":{"patterns":[{"captures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.namespace.nushell"},"3":{"name":"keyword.other.nushell"}},"match":"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\"[- \\\\w]+\\"|'[- \\\\w]+')(?:\\\\s+([-\\\\w]+|\\"[- \\\\w]+\\"|'[- \\\\w]+'|\\\\*))?\\\\s*;?$"},{"begin":"^\\\\s*((?:export )?use)\\\\s+([-\\\\w]+|\\"[- \\\\w]+\\"|'[- \\\\w]+')\\\\s*\\\\[","beginCaptures":{"1":{"name":"entity.name.function.nushell"},"2":{"name":"entity.name.namespace.nushell"}},"end":"(])\\\\s*;?\\\\s*$","endCaptures":{"1":{"name":"meta.brace.square.end.nushell"}},"patterns":[{"captures":{"1":{"name":"keyword.other.nushell"}},"match":"([-\\\\w]+|\\"[- \\\\w]+\\"|'[- \\\\w]+'|\\\\*),?"},{"include":"#comment"}]},{"captures":{"2":{"name":"entity.name.function.nushell"},"3":{"name":"string.bare.nushell","patterns":[{"captures":{"1":{"name":"entity.name.namespace.nushell"}},"match":"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\"'])"}]},"4":{"name":"keyword.other.nushell"}},"match":"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\"\\\\g<path>\\"|'\\\\g<path>'|(?![\\"'])\\\\g<path>)(?:\\\\s+([-\\\\w]+|\\"[- \\\\w]+\\"|'[^']+'|\\\\*))?\\\\s*;?$"},{"begin":"(?<path>(?:[/\\\\\\\\]|~[/\\\\\\\\]|\\\\.\\\\.?[/\\\\\\\\])?(?:[^/\\\\\\\\]+[/\\\\\\\\])*[- \\\\w]+(?:\\\\.nu)?){0}^\\\\s*((?:export )?use)\\\\s+(\\"\\\\g<path>\\"|'\\\\g<path>'|(?![\\"'])\\\\g<path>)\\\\s+\\\\[","beginCaptures":{"2":{"name":"entity.name.function.nushell"},"3":{"name":"string.bare.nushell","patterns":[{"captures":{"1":{"name":"entity.name.namespace.nushell"}},"match":"([- \\\\w]+)(?:\\\\.nu)?(?=$|[\\"'])"}]}},"end":"(])\\\\s*;?\\\\s*$","endCaptures":{"1":{"name":"meta.brace.square.end.nushell"}},"patterns":[{"captures":{"0":{"name":"keyword.other.nushell"}},"match":"([-\\\\w]+|\\"[- \\\\w]+\\"|'[- \\\\w]+'|\\\\*),?"},{"include":"#comment"}]},{"captures":{"0":{"name":"entity.name.function.nushell"}},"match":"^\\\\s*(?:export )?use\\\\b"}]},"value":{"patterns":[{"include":"#variables"},{"include":"#variable-fields"},{"include":"#control-keywords"},{"include":"#constant-value"},{"include":"#table"},{"include":"#operators"},{"include":"#paren-expression"},{"include":"#braced-expression"},{"include":"#string"},{"include":"#comment"}]},"variable-fields":{"match":"(?<=[])}])(?:\\\\.(?:[-\\\\w]+|\\"[- \\\\w]+\\"))+","name":"variable.other.nushell"},"variables":{"captures":{"1":{"patterns":[{"include":"#internal-variables"},{"match":"\\\\$.+","name":"variable.other.nushell"}]},"2":{"name":"variable.other.nushell"}},"match":"(\\\\$[0-9A-Z_a-z]+)((?:\\\\.(?:[-\\\\w]+|\\"[- \\\\w]+\\"))*)"}},"scopeName":"source.nushell","aliases":["nu"]}`))];export{e as default}; diff --git a/docs/assets/objectWithoutPropertiesLoose-CboCOq4o.js b/docs/assets/objectWithoutPropertiesLoose-CboCOq4o.js new file mode 100644 index 0000000..ad725cb --- /dev/null +++ b/docs/assets/objectWithoutPropertiesLoose-CboCOq4o.js @@ -0,0 +1 @@ +function f(n,t){if(n==null)return{};var r={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(t.indexOf(i)!==-1)continue;r[i]=n[i]}return r}export{f as t}; diff --git a/docs/assets/objective-c-2UNO56gW.js b/docs/assets/objective-c-2UNO56gW.js new file mode 100644 index 0000000..b187952 --- /dev/null +++ b/docs/assets/objective-c-2UNO56gW.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Objective-C","name":"objective-c","patterns":[{"include":"#anonymous_pattern_1"},{"include":"#anonymous_pattern_2"},{"include":"#anonymous_pattern_3"},{"include":"#anonymous_pattern_4"},{"include":"#anonymous_pattern_5"},{"include":"#apple_foundation_functional_macros"},{"include":"#anonymous_pattern_7"},{"include":"#anonymous_pattern_8"},{"include":"#anonymous_pattern_9"},{"include":"#anonymous_pattern_10"},{"include":"#anonymous_pattern_11"},{"include":"#anonymous_pattern_12"},{"include":"#anonymous_pattern_13"},{"include":"#anonymous_pattern_14"},{"include":"#anonymous_pattern_15"},{"include":"#anonymous_pattern_16"},{"include":"#anonymous_pattern_17"},{"include":"#anonymous_pattern_18"},{"include":"#anonymous_pattern_19"},{"include":"#anonymous_pattern_20"},{"include":"#anonymous_pattern_21"},{"include":"#anonymous_pattern_22"},{"include":"#anonymous_pattern_23"},{"include":"#anonymous_pattern_24"},{"include":"#anonymous_pattern_25"},{"include":"#anonymous_pattern_26"},{"include":"#anonymous_pattern_27"},{"include":"#anonymous_pattern_28"},{"include":"#anonymous_pattern_29"},{"include":"#anonymous_pattern_30"},{"include":"#bracketed_content"},{"include":"#c_lang"}],"repository":{"anonymous_pattern_1":{"begin":"((@)(interface|protocol))(?!.+;)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*((:)\\\\s*([A-Za-z][0-9A-Za-z]*))?([\\\\n\\\\s])?","captures":{"1":{"name":"storage.type.objc"},"2":{"name":"punctuation.definition.storage.type.objc"},"4":{"name":"entity.name.type.objc"},"6":{"name":"punctuation.definition.entity.other.inherited-class.objc"},"7":{"name":"entity.other.inherited-class.objc"},"8":{"name":"meta.divider.objc"},"9":{"name":"meta.inherited-class.objc"}},"contentName":"meta.scope.interface.objc","end":"((@)end)\\\\b","name":"meta.interface-or-protocol.objc","patterns":[{"include":"#interface_innards"}]},"anonymous_pattern_10":{"captures":{"1":{"name":"punctuation.definition.keyword.objc"}},"match":"(@)(defs|encode)\\\\b","name":"keyword.other.objc"},"anonymous_pattern_11":{"match":"\\\\bid\\\\b","name":"storage.type.id.objc"},"anonymous_pattern_12":{"match":"\\\\b(IBOutlet|IBAction|BOOL|SEL|id|unichar|IMP|Class|instancetype)\\\\b","name":"storage.type.objc"},"anonymous_pattern_13":{"captures":{"1":{"name":"punctuation.definition.storage.type.objc"}},"match":"(@)(class|protocol)\\\\b","name":"storage.type.objc"},"anonymous_pattern_14":{"begin":"((@)selector)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.objc"},"2":{"name":"punctuation.definition.storage.type.objc"},"3":{"name":"punctuation.definition.storage.type.objc"}},"contentName":"meta.selector.method-name.objc","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.storage.type.objc"}},"name":"meta.selector.objc","patterns":[{"captures":{"1":{"name":"punctuation.separator.arguments.objc"}},"match":"\\\\b(?:[:A-Z_a-z]\\\\w*)+","name":"support.function.any-method.name-of-parameter.objc"}]},"anonymous_pattern_15":{"captures":{"1":{"name":"punctuation.definition.storage.modifier.objc"}},"match":"(@)(synchronized|public|package|private|protected)\\\\b","name":"storage.modifier.objc"},"anonymous_pattern_16":{"match":"\\\\b(YES|NO|Nil|nil)\\\\b","name":"constant.language.objc"},"anonymous_pattern_17":{"match":"\\\\bNSApp\\\\b","name":"support.variable.foundation.objc"},"anonymous_pattern_18":{"captures":{"1":{"name":"punctuation.whitespace.support.function.cocoa.leopard.objc"},"2":{"name":"support.function.cocoa.leopard.objc"}},"match":"(\\\\s*)\\\\b(NS(Rect((?:To|From)CGRect)|MakeCollectable|S(tringFromProtocol|ize((?:To|From)CGSize))|Draw((?:Nin|Thre)ePartImage)|P(oint((?:To|From)CGPoint)|rotocolFromString)|EventMaskFromType|Value))\\\\b"},"anonymous_pattern_19":{"captures":{"1":{"name":"punctuation.whitespace.support.function.leading.cocoa.objc"},"2":{"name":"support.function.cocoa.objc"}},"match":"(\\\\s*)\\\\b(NS(R(ound((?:Down|Up)ToMultipleOfPageSize)|un(CriticalAlertPanel(RelativeToWindow)?|InformationalAlertPanel(RelativeToWindow)?|AlertPanel(RelativeToWindow)?)|e(set((?:Map|Hash)Table)|c(ycleZone|t(Clip(List)?|F(ill(UsingOperation|List(UsingOperation|With(Grays|Colors(UsingOperation)?))?)?|romString))|ordAllocationEvent)|turnAddress|leaseAlertPanel|a(dPixel|l((?:MemoryAvail|locateCollect)able))|gisterServicesProvider)|angeFromString)|Get(SizeAndAlignment|CriticalAlertPanel|InformationalAlertPanel|UncaughtExceptionHandler|FileType(s)?|WindowServerMemory|AlertPanel)|M(i(n([XY])|d([XY]))|ouseInRect|a(p(Remove|Get|Member|Insert((?:If|Known)Absent)?)|ke(R(ect|ange)|Size|Point)|x(Range|[XY])))|B(itsPer((?:Sample|Pixel)FromDepth)|e(stDepth|ep|gin((?:Critical|Informational|)AlertSheet)))|S(ho(uldRetainWithZone|w(sServicesMenuItem|AnimationEffect))|tringFrom(R(ect|ange)|MapTable|S(ize|elector)|HashTable|Class|Point)|izeFromString|e(t(ShowsServicesMenuItem|ZoneName|UncaughtExceptionHandler|FocusRingStyle)|lectorFromString|archPathForDirectoriesInDomains)|wap(Big(ShortToHost|IntToHost|DoubleToHost|FloatToHost|Long((?:|Long)ToHost))|Short|Host(ShortTo(Big|Little)|IntTo(Big|Little)|DoubleTo(Big|Little)|FloatTo(Big|Little)|Long(To(Big|Little)|LongTo(Big|Little)))|Int|Double|Float|L(ittle(ShortToHost|IntToHost|DoubleToHost|FloatToHost|Long((?:|Long)ToHost))|ong(Long)?)))|H(ighlightRect|o(stByteOrder|meDirectory(ForUser)?)|eight|ash(Remove|Get|Insert((?:If|Known)Absent)?)|FSType(CodeFromFileType|OfFile))|N(umberOfColorComponents|ext(MapEnumeratorPair|HashEnumeratorItem))|C(o(n(tainsRect|vert(GlyphsToPackedGlyphs|Swapped((?:Double|Float)ToHost)|Host((?:Double|Float)ToSwapped)))|unt(MapTable|HashTable|Frames|Windows(ForContext)?)|py(M(emoryPages|apTableWithZone)|Bits|HashTableWithZone|Object)|lorSpaceFromDepth|mpare((?:Map|Hash)Tables))|lassFromString|reate(MapTable(WithZone)?|HashTable(WithZone)?|Zone|File((?:name|Contents)PboardType)))|TemporaryDirectory|I(s(ControllerMarker|EmptyRect|FreedObject)|n(setRect|crementExtraRefCount|te(r(sect(sRect|ionR(ect|ange))|faceStyleForKey)|gralRect)))|Zone(Realloc|Malloc|Name|Calloc|Fr(omPointer|ee))|O(penStepRootDirectory|ffsetRect)|D(i(sableScreenUpdates|videRect)|ottedFrameRect|e(c(imal(Round|Multiply|S(tring|ubtract)|Normalize|Co(py|mpa(ct|re))|IsNotANumber|Divide|Power|Add)|rementExtraRefCountWasZero)|faultMallocZone|allocate(MemoryPages|Object))|raw(Gr(oove|ayBezel)|B(itmap|utton)|ColorTiledRects|TiledRects|DarkBezel|W(hiteBezel|indowBackground)|LightBezel))|U(serName|n(ionR(ect|ange)|registerServicesProvider)|pdateDynamicServices)|Java(Bundle(Setup|Cleanup)|Setup(VirtualMachine)?|Needs(ToLoadClasses|VirtualMachine)|ClassesF(orBundle|romPath)|ObjectNamedInPath|ProvidesClasses)|P(oint(InRect|FromString)|erformService|lanarFromDepth|ageSize)|E(n(d((?:Map|Hash)TableEnumeration)|umerate((?:Map|Hash)Table)|ableScreenUpdates)|qual(R(ects|anges)|Sizes|Points)|raseRect|xtraRefCount)|F(ileTypeForHFSTypeCode|ullUserName|r(ee((?:Map|Hash)Table)|ame(Rect(WithWidth(UsingOperation)?)?|Address)))|Wi(ndowList(ForContext)?|dth)|Lo(cationInRange|g(v|PageSize)?)|A(ccessibility(R(oleDescription(ForUIElement)?|aiseBadArgumentException)|Unignored(Children(ForOnlyChild)?|Descendant|Ancestor)|PostNotification|ActionDescription)|pplication(Main|Load)|vailableWindowDepths|ll(MapTable(Values|Keys)|HashTableObjects|ocate(MemoryPages|Collectable|Object)))))\\\\b"},"anonymous_pattern_2":{"begin":"((@)(implementation))\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(?::\\\\s*([A-Za-z][0-9A-Za-z]*))?","captures":{"1":{"name":"storage.type.objc"},"2":{"name":"punctuation.definition.storage.type.objc"},"4":{"name":"entity.name.type.objc"},"5":{"name":"entity.other.inherited-class.objc"}},"contentName":"meta.scope.implementation.objc","end":"((@)end)\\\\b","name":"meta.implementation.objc","patterns":[{"include":"#implementation_innards"}]},"anonymous_pattern_20":{"match":"\\\\bNS(RuleEditor|G(arbageCollector|radient)|MapTable|HashTable|Co(ndition|llectionView(Item)?)|T(oolbarItemGroup|extInputClient|r(eeNode|ackingArea))|InvocationOperation|Operation(Queue)?|D(ictionaryController|ockTile)|P(ointer(Functions|Array)|athC(o(ntrol(Delegate)?|mponentCell)|ell(Delegate)?)|r(intPanelAccessorizing|edicateEditor(RowTemplate)?))|ViewController|FastEnumeration|Animat(ionContext|ablePropertyContainer))\\\\b","name":"support.class.cocoa.leopard.objc"},"anonymous_pattern_21":{"match":"\\\\bNS(R(u(nLoop|ler(Marker|View))|e(sponder|cursiveLock|lativeSpecifier)|an((?:dom|ge)Specifier))|G(etCommand|lyph(Generator|Storage|Info)|raphicsContext)|XML(Node|D(ocument|TD(Node)?)|Parser|Element)|M(iddleSpecifier|ov(ie(View)?|eCommand)|utable(S(tring|et)|C(haracterSet|opying)|IndexSet|D(ictionary|ata)|URLRequest|ParagraphStyle|A(ttributedString|rray))|e(ssagePort(NameServer)?|nu(Item(Cell)?|View)?|t(hodSignature|adata(Item|Query(ResultGroup|AttributeValueTuple)?)))|a(ch(BootstrapServer|Port)|trix))|B(itmapImageRep|ox|u(ndle|tton(Cell)?)|ezierPath|rowser(Cell)?)|S(hadow|c(anner|r(ipt(SuiteRegistry|C(o(ercionHandler|mmand(Description)?)|lassDescription)|ObjectSpecifier|ExecutionContext|WhoseTest)|oll(er|View)|een))|t(epper(Cell)?|atus(Bar|Item)|r(ing|eam))|imple(HorizontalTypesetter|CString)|o(cketPort(NameServer)?|und|rtDescriptor)|p(e(cifierTest|ech((?:Recogn|Synthes)izer)|ll(Server|Checker))|litView)|e(cureTextField(Cell)?|t(Command)?|archField(Cell)?|rializer|gmentedC(ontrol|ell))|lider(Cell)?|avePanel)|H(ost|TTP(Cookie(Storage)?|URLResponse)|elpManager)|N(ib(Con((?:|trolCon)nector)|OutletConnector)?|otification(Center|Queue)?|u(ll|mber(Formatter)?)|etService(Browser)?|ameSpecifier)|C(ha(ngeSpelling|racterSet)|o(n(stantString|nection|trol(ler)?|ditionLock)|d(ing|er)|unt(Command|edSet)|pying|lor(Space|P(ick(ing(Custom|Default)|er)|anel)|Well|List)?|m(p((?:ound|arison)Predicate)|boBox(Cell)?))|u(stomImageRep|rsor)|IImageRep|ell|l(ipView|o([ns]eCommand)|assDescription)|a(ched(ImageRep|URLResponse)|lendar(Date)?)|reateCommand)|T(hread|ypesetter|ime(Zone|r)|o(olbar(Item(Validations)?)?|kenField(Cell)?)|ext(Block|Storage|Container|Tab(le(Block)?)?|Input|View|Field(Cell)?|List|Attachment(Cell)?)?|a(sk|b(le(Header(Cell|View)|Column|View)|View(Item)?))|reeController)|I(n(dex(S(pecifier|et)|Path)|put(Manager|S(tream|erv(iceProvider|er(MouseTracker)?)))|vocation)|gnoreMisspelledWords|mage(Rep|Cell|View)?)|O(ut(putStream|lineView)|pen(GL(Context|Pixel(Buffer|Format)|View)|Panel)|bj(CTypeSerializationCallBack|ect(Controller)?))|D(i(st(antObject(Request)?|ributed(NotificationCenter|Lock))|ctionary|rectoryEnumerator)|ocument(Controller)?|e(serializer|cimalNumber(Behaviors|Handler)?|leteCommand)|at(e(Components|Picker(Cell)?|Formatter)?|a)|ra(wer|ggingInfo))|U(ser(InterfaceValidations|Defaults(Controller)?)|RL(Re(sponse|quest)|Handle(Client)?|C(onnection|ache|redential(Storage)?)|Download(Delegate)?|Prot(ocol(Client)?|ectionSpace)|AuthenticationChallenge(Sender)?)?|n((?:iqueIDSpecifi|doManag|archiv)er))|P(ipe|o(sitionalSpecifier|pUpButton(Cell)?|rt(Message|NameServer|Coder)?)|ICTImageRep|ersistentDocument|DFImageRep|a(steboard|nel|ragraphStyle|geLayout)|r(int(Info|er|Operation|Panel)|o(cessInfo|tocolChecker|perty(Specifier|ListSerialization)|gressIndicator|xy)|edicate))|E(numerator|vent|PSImageRep|rror|x(ception|istsCommand|pression))|V(iew(Animation)?|al(idated((?:Toobar|UserInterface)Item)|ue(Transformer)?))|Keyed((?:Una|A)rchiver)|Qui(ckDrawView|tCommand)|F(ile(Manager|Handle|Wrapper)|o(nt(Manager|Descriptor|Panel)?|rm(Cell|atter)))|W(hoseSpecifier|indow(Controller)?|orkspace)|L(o(c(k(ing)?|ale)|gicalTest)|evelIndicator(Cell)?|ayoutManager)|A(ssertionHandler|nimation|ctionCell|ttributedString|utoreleasePool|TSTypesetter|ppl(ication|e(Script|Event(Manager|Descriptor)))|ffineTransform|lert|r(chiver|ray(Controller)?)))\\\\b","name":"support.class.cocoa.objc"},"anonymous_pattern_22":{"match":"\\\\bNS(R(oundingMode|ule(Editor(RowType|NestingMode)|rOrientation)|e(questUserAttentionType|lativePosition))|G(lyphInscription|radientDrawingOptions)|XML(NodeKind|D((?:ocumentContent|TDNode)Kind)|ParserError)|M(ultibyteGlyphPacking|apTableOptions)|B(itmapFormat|oxType|ezierPathElement|ackgroundStyle|rowserDropOperation)|S(tr(ing((?:Compare|Drawing|EncodingConversion)Options)|eam(Status|Event))|p(eechBoundary|litViewDividerStyle)|e(archPathD(irectory|omainMask)|gmentS(tyle|witchTracking))|liderType|aveOptions)|H(TTPCookieAcceptPolicy|ashTableOptions)|N(otification(SuspensionBehavior|Coalescing)|umberFormatter(RoundingMode|Behavior|Style|PadPosition)|etService(sError|Options))|C(haracterCollection|o(lor(RenderingIntent|SpaceModel|PanelMode)|mp(oundPredicateType|arisonPredicateModifier))|ellStateValue|al(culationError|endarUnit))|T(ypesetterControlCharacterAction|imeZoneNameStyle|e(stComparisonOperation|xt(Block(Dimension|V(erticalAlignment|alueType)|Layer)|TableLayoutAlgorithm|FieldBezelStyle))|ableView((?:SelectionHighlight|ColumnAutoresizing)Style)|rackingAreaOptions)|I(n(sertionPosition|te(rfaceStyle|ger))|mage(RepLoadStatus|Scaling|CacheMode|FrameStyle|LoadStatus|Alignment))|Ope(nGLPixelFormatAttribute|rationQueuePriority)|Date(Picker(Mode|Style)|Formatter(Behavior|Style))|U(RL(RequestCachePolicy|HandleStatus|C(acheStoragePolicy|redentialPersistence))|Integer)|P(o(stingStyle|int(ingDeviceType|erFunctionsOptions)|pUpArrowPosition)|athStyle|r(int(ing(Orientation|PaginationMode)|erTableStatus|PanelOptions)|opertyList(MutabilityOptions|Format)|edicateOperatorType))|ExpressionType|KeyValue(SetMutationKind|Change)|QTMovieLoopMode|F(indPanel(SubstringMatchType|Action)|o(nt(RenderingMode|FamilyClass)|cusRingPlacement))|W(hoseSubelementIdentifier|ind(ingRule|ow(B(utton|ackingLocation)|SharingType|CollectionBehavior)))|L(ine(MovementDirection|SweepDirection|CapStyle|JoinStyle)|evelIndicatorStyle)|Animation(BlockingMode|Curve))\\\\b","name":"support.type.cocoa.leopard.objc"},"anonymous_pattern_23":{"match":"\\\\bC(I(Sampler|Co(ntext|lor)|Image(Accumulator)?|PlugIn(Registration)?|Vector|Kernel|Filter(Generator|Shape)?)|A(Renderer|MediaTiming(Function)?|BasicAnimation|ScrollLayer|Constraint(LayoutManager)?|T(iledLayer|extLayer|rans((?:i|ac)tion))|OpenGLLayer|PropertyAnimation|KeyframeAnimation|Layer|A(nimation(Group)?|ction)))\\\\b","name":"support.class.quartz.objc"},"anonymous_pattern_24":{"match":"\\\\bC(G(Float|Point|Size|Rect)|IFormat|AConstraintAttribute)\\\\b","name":"support.type.quartz.objc"},"anonymous_pattern_25":{"match":"\\\\bNS(R(ect(Edge)?|ange)|G(lyph(Relation|LayoutMode)?|radientType)|M(odalSession|a(trixMode|p(Table|Enumerator)))|B((?:itmapImageFileTyp|orderTyp|uttonTyp|ezelStyl|ackingStoreTyp|rowserColumnResizingTyp)e)|S(cr(oll(er(Part|Arrow)|ArrowPosition)|eenAuxiliaryOpaque)|tringEncoding|ize|ocketNativeHandle|election(Granularity|Direction|Affinity)|wapped(Double|Float)|aveOperationType)|Ha(sh(Table|Enumerator)|ndler(2)?)|C(o(ntrol(Size|Tint)|mp(ositingOperation|arisonResult))|ell(State|Type|ImagePosition|Attribute))|T(hreadPrivate|ypesetterGlyphInfo|i(ckMarkPosition|tlePosition|meInterval)|o(ol(TipTag|bar((?:Size|Display)Mode))|kenStyle)|IFFCompression|ext(TabType|Alignment)|ab(State|leViewDropOperation|ViewType)|rackingRectTag)|ImageInterpolation|Zone|OpenGL((?:Contex|PixelForma)tAuxiliary)|D(ocumentChangeType|atePickerElementFlags|ra(werState|gOperation))|UsableScrollerParts|P(oint|r(intingPageOrder|ogressIndicator(Style|Th(ickness|readInfo))))|EventType|KeyValueObservingOptions|Fo(nt(SymbolicTraits|TraitMask|Action)|cusRingType)|W(indow(OrderingMode|Depth)|orkspace((?:IconCreation|Launch)Options)|ritingDirection)|L(ineBreakMode|ayout(Status|Direction))|A(nimation(Progress|Effect)|ppl(ication((?:Terminate|Delegate|Print)Reply)|eEventManagerSuspensionID)|ffineTransformStruct|lertStyle))\\\\b","name":"support.type.cocoa.objc"},"anonymous_pattern_26":{"match":"\\\\bNS(NotFound|Ordered(Ascending|Descending|Same))\\\\b","name":"support.constant.cocoa.objc"},"anonymous_pattern_27":{"match":"\\\\bNS(MenuDidBeginTracking|ViewDidUpdateTrackingAreas)?Notification\\\\b","name":"support.constant.notification.cocoa.leopard.objc"},"anonymous_pattern_28":{"match":"\\\\bNS(Menu(Did(RemoveItem|SendAction|ChangeItem|EndTracking|AddItem)|WillSendAction)|S(ystemColorsDidChange|plitView((?:Did|Will)ResizeSubviews))|C(o(nt(extHelpModeDid((?:Dea|A)ctivate)|rolT(intDidChange|extDid(BeginEditing|Change|EndEditing)))|lor((?:PanelColor|List)DidChange)|mboBox(Selection(IsChanging|DidChange)|Will(Dismiss|PopUp)))|lassDescriptionNeededForClass)|T(oolbar((?:DidRemove|WillAdd)Item)|ext(Storage((?:Did|Will)ProcessEditing)|Did(BeginEditing|Change|EndEditing)|View(DidChange(Selection|TypingAttributes)|WillChangeNotifyingTextView))|ableView(Selection(IsChanging|DidChange)|ColumnDid(Resize|Move)))|ImageRepRegistryDidChange|OutlineView(Selection(IsChanging|DidChange)|ColumnDid(Resize|Move)|Item(Did(Collapse|Expand)|Will(Collapse|Expand)))|Drawer(Did(Close|Open)|Will(Close|Open))|PopUpButton((?:Cell|)WillPopUp)|View(GlobalFrameDidChange|BoundsDidChange|F((?:ocus|rame)DidChange))|FontSetChanged|W(indow(Did(Resi(ze|gn(Main|Key))|M(iniaturize|ove)|Become(Main|Key)|ChangeScreen(|Profile)|Deminiaturize|Update|E(ndSheet|xpose))|Will(M(iniaturize|ove)|BeginSheet|Close))|orkspace(SessionDid((?:Resign|Become)Active)|Did(Mount|TerminateApplication|Unmount|PerformFileOperation|Wake|LaunchApplication)|Will(Sleep|Unmount|PowerOff|LaunchApplication)))|A(ntialiasThresholdChanged|ppl(ication(Did(ResignActive|BecomeActive|Hide|ChangeScreenParameters|U(nhide|pdate)|FinishLaunching)|Will(ResignActive|BecomeActive|Hide|Terminate|U(nhide|pdate)|FinishLaunching))|eEventManagerWillProcessFirstEvent)))Notification\\\\b","name":"support.constant.notification.cocoa.objc"},"anonymous_pattern_29":{"match":"\\\\bNS(RuleEditor(RowType(Simple|Compound)|NestingMode(Si(ngle|mple)|Compound|List))|GradientDraws((?:BeforeStart|AfterEnd)ingLocation)|M(inusSetExpressionType|a(chPortDeallocate(ReceiveRight|SendRight|None)|pTable(StrongMemory|CopyIn|ZeroingWeakMemory|ObjectPointerPersonality)))|B(oxCustom|undleExecutableArchitecture(X86|I386|PPC(64)?)|etweenPredicateOperatorType|ackgroundStyle(Raised|Dark|L(ight|owered)))|S(tring(DrawingTruncatesLastVisibleLine|EncodingConversion(ExternalRepresentation|AllowLossy))|ubqueryExpressionType|p(e(ech((?:Sentence|Immediate|Word)Boundary)|llingState((?:Grammar|Spelling)Flag))|litViewDividerStyleThi(n|ck))|e(rvice(RequestTimedOutError|M((?:iscellaneous|alformedServiceDictionary)Error)|InvalidPasteboardDataError|ErrorM((?:in|ax)imum)|Application((?:NotFoun|LaunchFaile)dError))|gmentStyle(Round(Rect|ed)|SmallSquare|Capsule|Textured(Rounded|Square)|Automatic)))|H(UDWindowMask|ashTable(StrongMemory|CopyIn|ZeroingWeakMemory|ObjectPointerPersonality))|N(oModeColorPanel|etServiceNoAutoRename)|C(hangeRedone|o(ntainsPredicateOperatorType|l(orRenderingIntent(RelativeColorimetric|Saturation|Default|Perceptual|AbsoluteColorimetric)|lectorDisabledOption))|ellHit(None|ContentArea|TrackableArea|EditableTextArea))|T(imeZoneNameStyle(S(hort(Standard|DaylightSaving)|tandard)|DaylightSaving)|extFieldDatePickerStyle|ableViewSelectionHighlightStyle(Regular|SourceList)|racking(Mouse(Moved|EnteredAndExited)|CursorUpdate|InVisibleRect|EnabledDuringMouseDrag|A(ssumeInside|ctive(In(KeyWindow|ActiveApp)|WhenFirstResponder|Always))))|I(n(tersectSetExpressionType|dexedColorSpaceModel)|mageScale(None|Proportionally((?:|UpOr)Down)|AxesIndependently))|Ope(nGLPFAAllowOfflineRenderers|rationQueue(DefaultMaxConcurrentOperationCount|Priority(High|Normal|Very(High|Low)|Low)))|D(iacriticInsensitiveSearch|ownloadsDirectory)|U(nionSetExpressionType|TF(16((?:BigEndian||LittleEndian)StringEncoding)|32((?:BigEndian||LittleEndian)StringEncoding)))|P(ointerFunctions(Ma((?:chVirtual|lloc)Memory)|Str(ongMemory|uctPersonality)|C(StringPersonality|opyIn)|IntegerPersonality|ZeroingWeakMemory|O(paque(Memory|Personality)|bjectP((?:ointerP|)ersonality)))|at(hStyle(Standard|NavigationBar|PopUp)|ternColorSpaceModel)|rintPanelShows(Scaling|Copies|Orientation|P(a(perSize|ge(Range|SetupAccessory))|review)))|Executable(RuntimeMismatchError|NotLoadableError|ErrorM((?:in|ax)imum)|L((?:ink|oad)Error)|ArchitectureMismatchError)|KeyValueObservingOption(Initial|Prior)|F(i(ndPanelSubstringMatchType(StartsWith|Contains|EndsWith|FullWord)|leRead((?:TooLarge|UnknownStringEncoding)Error))|orcedOrderingSearch)|Wi(ndow(BackingLocation(MainMemory|Default|VideoMemory)|Sharing(Read(Only|Write)|None)|CollectionBehavior(MoveToActiveSpace|CanJoinAllSpaces|Default))|dthInsensitiveSearch)|AggregateExpressionType)\\\\b","name":"support.constant.cocoa.leopard.objc"},"anonymous_pattern_3":{"begin":"@\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.double.objc","patterns":[{"include":"#string_escaped_char"},{"match":"%(\\\\d+\\\\$)?[- #'+0]*((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?@","name":"constant.other.placeholder.objc"},{"include":"#string_placeholder"}]},"anonymous_pattern_30":{"match":"\\\\bNS(R(GB(ModeColorPanel|ColorSpaceModel)|ight(Mouse(D(own(Mask)?|ragged(Mask)?)|Up(Mask)?)|T(ext((?:Move|Align)ment)|ab(sBezelBorder|StopType))|ArrowFunctionKey)|ound(RectBezelStyle|Bankers|ed((?:Bezel|Token|DisclosureBezel)Style)|Down|Up|Plain|Line((?:Cap|Join)Style))|un((?:Stopped|Continues|Aborted)Response)|e(s(izableWindowMask|et(CursorRectsRunLoopOrdering|FunctionKey))|ce(ssedBezelStyle|iver((?:sCantHandleCommand|Evaluation)ScriptError))|turnTextMovement|doFunctionKey|quiredArgumentsMissingScriptError|l(evancyLevelIndicatorStyle|ative(Before|After))|gular(SquareBezelStyle|ControlSize)|moveTraitFontAction)|a(n(domSubelement|geDateMode)|tingLevelIndicatorStyle|dio(ModeMatrix|Button)))|G(IFFileType|lyph(Below|Inscribe(B(elow|ase)|Over(strike|Below)|Above)|Layout(WithPrevious|A((?:|gains)tAPoint))|A(ttribute(BidiLevel|Soft|Inscribe|Elastic)|bove))|r(ooveBorder|eaterThan(Comparison|OrEqualTo(Comparison|PredicateOperatorType)|PredicateOperatorType)|a(y(ModeColorPanel|ColorSpaceModel)|dient(None|Con(cave(Strong|Weak)|vex(Strong|Weak)))|phiteControlTint)))|XML(N(o(tationDeclarationKind|de(CompactEmptyElement|IsCDATA|OptionsNone|Use((?:Sing|Doub)leQuotes)|Pre(serve(NamespaceOrder|C(haracterReferences|DATA)|DTD|Prefixes|E(ntities|mptyElements)|Quotes|Whitespace|A(ttributeOrder|ll))|ttyPrint)|ExpandEmptyElement))|amespaceKind)|CommentKind|TextKind|InvalidKind|D(ocument(X(MLKind|HTMLKind|Include)|HTMLKind|T(idy(XML|HTML)|extKind)|IncludeContentTypeDeclaration|Validate|Kind)|TDKind)|P(arser(GTRequiredError|XMLDeclNot((?:Start|Finish)edError)|Mi(splaced((?:XMLDeclaration|CDATAEndString)Error)|xedContentDeclNot((?:Start|Finish)edError))|S(t(andaloneValueError|ringNot((?:Start|Clos)edError))|paceRequiredError|eparatorRequiredError)|N(MTOKENRequiredError|o(t(ationNot((?:Start|Finish)edError)|WellBalancedError)|DTDError)|amespaceDeclarationError|AMERequiredError)|C(haracterRef(In((?:DTD|Prolog|Epilog)Error)|AtEOFError)|o(nditionalSectionNot((?:Start|Finish)edError)|mment((?:NotFinished|ContainsDoubleHyphen)Error))|DATANotFinishedError)|TagNameMismatchError|In(ternalError|valid(HexCharacterRefError|C(haracter((?:Ref|InEntity|)Error)|onditionalSectionError)|DecimalCharacterRefError|URIError|Encoding((?:Name|)Error)))|OutOfMemoryError|D((?:ocumentStart|elegateAbortedParse|OCTYPEDeclNotFinished)Error)|U(RI((?:Required|Fragment)Error)|n((?:declaredEntity|parsedEntity|knownEncoding|finishedTag)Error))|P(CDATARequiredError|ublicIdentifierRequiredError|arsedEntityRef(MissingSemiError|NoNameError|In(Internal((?:Subset|)Error)|PrologError|EpilogError)|AtEOFError)|r(ocessingInstructionNot((?:Start|Finish)edError)|ematureDocumentEndError))|E(n(codingNotSupportedError|tity(Ref(In((?:DTD|Prolog|Epilog)Error)|erence((?:MissingSemi|WithoutName)Error)|LoopError|AtEOFError)|BoundaryError|Not((?:Start|Finish)edError)|Is((?:Parameter|External)Error)|ValueRequiredError))|qualExpectedError|lementContentDeclNot((?:Start|Finish)edError)|xt(ernalS((?:tandaloneEntity|ubsetNotFinished)Error)|raContentError)|mptyDocumentError)|L(iteralNot((?:Start|Finish)edError)|T((?:|Slash)RequiredError)|essThanSymbolInAttributeError)|Attribute(RedefinedError|HasNoValueError|Not((?:Start|Finish)edError)|ListNot((?:Start|Finish)edError)))|rocessingInstructionKind)|E(ntity(GeneralKind|DeclarationKind|UnparsedKind|P(ar((?:sed|ameter)Kind)|redefined))|lement(Declaration(MixedKind|UndefinedKind|E((?:lement|mpty)Kind)|Kind|AnyKind)|Kind))|Attribute(N(MToken(s?Kind)|otationKind)|CDATAKind|ID(Ref(s?Kind)|Kind)|DeclarationKind|En(tit((?:y|ies)Kind)|umerationKind)|Kind))|M(i(n(XEdge|iaturizableWindowMask|YEdge|uteCalendarUnit)|terLineJoinStyle|ddleSubelement|xedState)|o(nthCalendarUnit|deSwitchFunctionKey|use(Moved(Mask)?|E(ntered(Mask)?|ventSubtype|xited(Mask)?))|veToBezierPathElement|mentary(ChangeButton|Push((?:|In)Button)|Light(Button)?))|enuFunctionKey|a(c(intoshInterfaceStyle|OSRomanStringEncoding)|tchesPredicateOperatorType|ppedRead|x([XY]Edge))|ACHOperatingSystem)|B(MPFileType|o(ttomTabsBezelBorder|ldFontMask|rderlessWindowMask|x(Se(condary|parator)|OldStyle|Primary))|uttLineCapStyle|e(zelBorder|velLineJoinStyle|low(Bottom|Top)|gin(sWith(Comparison|PredicateOperatorType)|FunctionKey))|lueControlTint|ack(spaceCharacter|tabTextMovement|ingStore((?:Retain|Buffer|Nonretain)ed)|TabCharacter|wardsSearch|groundTab)|r(owser((?:No|User|Auto)ColumnResizing)|eakFunctionKey))|S(h(ift(JISStringEncoding|KeyMask)|ow((?:Control|Invisible)Glyphs)|adowlessSquareBezelStyle)|y(s(ReqFunctionKey|tem(D(omainMask|efined(Mask)?)|FunctionKey))|mbolStringEncoding)|c(a(nnedOption|le(None|ToFit|Proportionally))|r(oll(er(NoPart|Increment(Page|Line|Arrow)|Decrement(Page|Line|Arrow)|Knob(Slot)?|Arrows(M((?:in|ax)End)|None|DefaultSetting))|Wheel(Mask)?|LockFunctionKey)|eenChangedEventType))|t(opFunctionKey|r(ingDrawing(OneShot|DisableScreenFontSubstitution|Uses(DeviceMetrics|FontLeading|LineFragmentOrigin))|eam(Status(Reading|NotOpen|Closed|Open(ing)?|Error|Writing|AtEnd)|Event(Has((?:Bytes|Space)Available)|None|OpenCompleted|E((?:ndEncounte|rrorOccur)red)))))|i(ngle(DateMode|UnderlineStyle)|ze((?:Down|Up)FontAction))|olarisOperatingSystem|unOSOperatingSystem|pecialPageOrder|e(condCalendarUnit|lect(By(Character|Paragraph|Word)|i(ng(Next|Previous)|onAffinity((?:Down|Up)stream))|edTab|FunctionKey)|gmentSwitchTracking(Momentary|Select(One|Any)))|quareLineCapStyle|witchButton|ave(ToOperation|Op(tions(Yes|No|Ask)|eration)|AsOperation)|mall(SquareBezelStyle|C(ontrolSize|apsFontMask)|IconButtonBezelStyle))|H(ighlightModeMatrix|SBModeColorPanel|o(ur(Minute((?:Second|)DatePickerElementFlag)|CalendarUnit)|rizontalRuler|meFunctionKey)|TTPCookieAcceptPolicy(Never|OnlyFromMainDocumentDomain|Always)|e(lp(ButtonBezelStyle|KeyMask|FunctionKey)|avierFontAction)|PUXOperatingSystem)|Year(MonthDa((?:yDa|)tePickerElementFlag)|CalendarUnit)|N(o(n(StandardCharacterSetFontMask|ZeroWindingRule|activatingPanelMask|LossyASCIIStringEncoding)|Border|t(ification(SuspensionBehavior(Hold|Coalesce|D(eliverImmediately|rop))|NoCoalescing|CoalescingOn(Sender|Name)|DeliverImmediately|PostToAllSessions)|PredicateType|EqualToPredicateOperatorType)|S(cr(iptError|ollerParts)|ubelement|pecifierError)|CellMask|T(itle|opLevelContainersSpecifierError|abs((?:Bezel|No|Line)Border))|I(nterfaceStyle|mage)|UnderlineStyle|FontChangeAction)|u(ll(Glyph|CellType)|m(eric(Search|PadKeyMask)|berFormatter(Round(Half(Down|Up|Even)|Ceiling|Down|Up|Floor)|Behavior(10|Default)|S((?:cientific|pellOut)Style)|NoStyle|CurrencyStyle|DecimalStyle|P(ercentStyle|ad(Before((?:Suf|Pre)fix)|After((?:Suf|Pre)fix))))))|e(t(Services(BadArgumentError|NotFoundError|C((?:ollision|ancelled)Error)|TimeoutError|InvalidError|UnknownError|ActivityInProgress)|workDomainMask)|wlineCharacter|xt(StepInterfaceStyle|FunctionKey))|EXTSTEPStringEncoding|a(t(iveShortGlyphPacking|uralTextAlignment)|rrowFontMask))|C(hange(ReadOtherContents|GrayCell(Mask)?|BackgroundCell(Mask)?|Cleared|Done|Undone|Autosaved)|MYK(ModeColorPanel|ColorSpaceModel)|ircular(BezelStyle|Slider)|o(n(stantValueExpressionType|t(inuousCapacityLevelIndicatorStyle|entsCellMask|ain(sComparison|erSpecifierError)|rol(Glyph|KeyMask))|densedFontMask)|lor(Panel(RGBModeMask|GrayModeMask|HSBModeMask|C((?:MYK|olorList|ustomPalette|rayon)ModeMask)|WheelModeMask|AllModesMask)|ListModeColorPanel)|reServiceDirectory|m(p(osite(XOR|Source(In|O(ut|ver)|Atop)|Highlight|C(opy|lear)|Destination(In|O(ut|ver)|Atop)|Plus(Darker|Lighter))|ressedFontMask)|mandKeyMask))|u(stom(SelectorPredicateOperatorType|PaletteModeColorPanel)|r(sor(Update(Mask)?|PointingDevice)|veToBezierPathElement))|e(nterT(extAlignment|abStopType)|ll(State|H(ighlighted|as(Image(Horizontal|OnLeftOrBottom)|OverlappingImage))|ChangesContents|Is(Bordered|InsetButton)|Disabled|Editable|LightsBy(Gray|Background|Contents)|AllowsMixedState))|l(ipPagination|o(s(ePathBezierPathElement|ableWindowMask)|ckAndCalendarDatePickerStyle)|ear(ControlTint|DisplayFunctionKey|LineFunctionKey))|a(seInsensitive(Search|PredicateOption)|n(notCreateScriptCommandError|cel(Button|TextMovement))|chesDirectory|lculation(NoError|Overflow|DivideByZero|Underflow|LossOfPrecision)|rriageReturnCharacter)|r(itical(Request|AlertStyle)|ayonModeColorPanel))|T(hick((?:|er)SquareBezelStyle)|ypesetter(Behavior|HorizontalTabAction|ContainerBreakAction|ZeroAdvancementAction|OriginalBehavior|ParagraphBreakAction|WhitespaceAction|L(ineBreakAction|atestBehavior))|i(ckMark(Right|Below|Left|Above)|tledWindowMask|meZoneDatePickerElementFlag)|o(olbarItemVisibilityPriority(Standard|High|User|Low)|pTabsBezelBorder|ggleButton)|IFF(Compression(N(one|EXT)|CCITTFAX([34])|OldJPEG|JPEG|PackBits|LZW)|FileType)|e(rminate(Now|Cancel|Later)|xt(Read(InapplicableDocumentTypeError|WriteErrorM((?:in|ax)imum))|Block(M(i(nimum(Height|Width)|ddleAlignment)|a(rgin|ximum(Height|Width)))|B(o(ttomAlignment|rder)|aselineAlignment)|Height|TopAlignment|P(ercentageValueType|adding)|Width|AbsoluteValueType)|StorageEdited(Characters|Attributes)|CellType|ured(RoundedBezelStyle|BackgroundWindowMask|SquareBezelStyle)|Table((?:Fixed|Automatic)LayoutAlgorithm)|Field(RoundedBezel|SquareBezel|AndStepperDatePickerStyle)|WriteInapplicableDocumentTypeError|ListPrependEnclosingMarker))|woByteGlyphPacking|ab(Character|TextMovement|le(tP(oint(Mask|EventSubtype)?|roximity(Mask|EventSubtype)?)|Column(NoResizing|UserResizingMask|AutoresizingMask)|View(ReverseSequentialColumnAutoresizingStyle|GridNone|S(olid((?:Horizont|Vertic)alGridLineMask)|equentialColumnAutoresizingStyle)|NoColumnAutoresizing|UniformColumnAutoresizingStyle|FirstColumnOnlyAutoresizingStyle|LastColumnOnlyAutoresizingStyle)))|rackModeMatrix)|I(n(sert((?:Char||Line)FunctionKey)|t(Type|ernalS((?:cript|pecifier)Error))|dexSubelement|validIndexSpecifierError|formational(Request|AlertStyle)|PredicateOperatorType)|talicFontMask|SO(2022JPStringEncoding|Latin([12]StringEncoding))|dentityMappingCharacterCollection|llegalTextMovement|mage(R(ight|ep(MatchesDevice|LoadStatus(ReadingHeader|Completed|InvalidData|Un(expectedEOF|knownType)|WillNeedAllData)))|Below|C(ellType|ache(BySize|Never|Default|Always))|Interpolation(High|None|Default|Low)|O(nly|verlaps)|Frame(Gr(oove|ayBezel)|Button|None|Photo)|L(oadStatus(ReadError|C(ompleted|ancelled)|InvalidData|UnexpectedEOF)|eft)|A(lign(Right|Bottom(Right|Left)?|Center|Top(Right|Left)?|Left)|bove)))|O(n(State|eByteGlyphPacking|OffButton|lyScrollerArrows)|ther(Mouse(D(own(Mask)?|ragged(Mask)?)|Up(Mask)?)|TextMovement)|SF1OperatingSystem|pe(n(GL(GO(Re(setLibrary|tainRenderers)|ClearFormatCache|FormatCacheSize)|PFA(R(obust|endererID)|M(inimumPolicy|ulti(sample|Screen)|PSafe|aximumPolicy)|BackingStore|S(creenMask|te(ncilSize|reo)|ingleRenderer|upersample|ample(s|Buffers|Alpha))|NoRecovery|C(o(lor(Size|Float)|mpliant)|losestPolicy)|OffScreen|D(oubleBuffer|epthSize)|PixelBuffer|VirtualScreenCount|FullScreen|Window|A(cc(umSize|elerated)|ux(Buffers|DepthStencil)|l(phaSize|lRenderers))))|StepUnicodeReservedBase)|rationNotSupportedForKeyS((?:cript|pecifier)Error))|ffState|KButton|rPredicateType|bjC(B(itfield|oolType)|S(hortType|tr((?:ing|uct)Type)|electorType)|NoType|CharType|ObjectType|DoubleType|UnionType|PointerType|VoidType|FloatType|Long((?:|long)Type)|ArrayType))|D(i(s(c((?:losureBezel|reteCapacityLevelIndicator)Style)|playWindowRunLoopOrdering)|acriticInsensitivePredicateOption|rect(Selection|PredicateModifier))|o(c(ModalWindowMask|ument((?:|ation)Directory))|ubleType|wn(TextMovement|ArrowFunctionKey))|e(s(cendingPageOrder|ktopDirectory)|cimalTabStopType|v(ice(NColorSpaceModel|IndependentModifierFlagsMask)|eloper((?:|Application)Directory))|fault(ControlTint|TokenStyle)|lete(Char(acter|FunctionKey)|FunctionKey|LineFunctionKey)|moApplicationDirectory)|a(yCalendarUnit|teFormatter(MediumStyle|Behavior(10|Default)|ShortStyle|NoStyle|FullStyle|LongStyle))|ra(wer(Clos((?:ing|ed)State)|Open((?:ing|)State))|gOperation(Generic|Move|None|Copy|Delete|Private|Every|Link|All)))|U(ser(CancelledError|D(irectory|omainMask)|FunctionKey)|RL(Handle(NotLoaded|Load(Succeeded|InProgress|Failed))|CredentialPersistence(None|Permanent|ForSession))|n(scaledWindowMask|cachedRead|i(codeStringEncoding|talicFontMask|fiedTitleAndToolbarWindowMask)|d(o(CloseGroupingRunLoopOrdering|FunctionKey)|e(finedDateComponent|rline(Style(Single|None|Thick|Double)|Pattern(Solid|D(ot|ash(Dot(Dot)?)?)))))|known(ColorSpaceModel|P(ointingDevice|ageOrder)|KeyS((?:cript|pecifier)Error))|boldFontMask)|tilityWindowMask|TF8StringEncoding|p(dateWindowsRunLoopOrdering|TextMovement|ArrowFunctionKey))|J(ustifiedTextAlignment|PEG((?:2000|)FileType)|apaneseEUC((?:GlyphPack|StringEncod)ing))|P(o(s(t(Now|erFontMask|WhenIdle|ASAP)|iti(on(Replace|Be(fore|ginning)|End|After)|ve((?:Int|Double|Float)Type)))|pUp(NoArrow|ArrowAt(Bottom|Center))|werOffEventType|rtraitOrientation)|NGFileType|ush(InCell(Mask)?|OnPushOffButton)|e(n(TipMask|UpperSideMask|PointingDevice|LowerSideMask)|riodic(Mask)?)|P(S(caleField|tatus(Title|Field)|aveButton)|N(ote(Title|Field)|ame(Title|Field))|CopiesField|TitleField|ImageButton|OptionsButton|P(a(perFeedButton|ge(Range(To|From)|ChoiceMatrix))|reviewButton)|LayoutButton)|lainTextTokenStyle|a(useFunctionKey|ragraphSeparatorCharacter|ge((?:Down|Up)FunctionKey))|r(int(ing(ReplyLater|Success|Cancelled|Failure)|ScreenFunctionKey|erTable(NotFound|OK|Error)|FunctionKey)|o(p(ertyList(XMLFormat|MutableContainers(AndLeaves)?|BinaryFormat|Immutable|OpenStepFormat)|rietaryStringEncoding)|gressIndicator(BarStyle|SpinningStyle|Preferred((?:Small||Large|Aqua)Thickness)))|e(ssedTab|vFunctionKey))|L(HeightForm|CancelButton|TitleField|ImageButton|O(KButton|rientationMatrix)|UnitsButton|PaperNameButton|WidthForm))|E(n(terCharacter|d(sWith(Comparison|PredicateOperatorType)|FunctionKey))|v(e(nOddWindingRule|rySubelement)|aluatedObjectExpressionType)|qualTo(Comparison|PredicateOperatorType)|ra(serPointingDevice|CalendarUnit|DatePickerElementFlag)|x(clude(10|QuickDrawElementsIconCreationOption)|pandedFontMask|ecuteFunctionKey))|V(i(ew(M(in([XY]Margin)|ax([XY]Margin))|HeightSizable|NotSizable|WidthSizable)|aPanelFontAction)|erticalRuler|a(lidationErrorM((?:in|ax)imum)|riableExpressionType))|Key(SpecifierEvaluationScriptError|Down(Mask)?|Up(Mask)?|PathExpressionType|Value(MinusSetMutation|SetSetMutation|Change(Re(placement|moval)|Setting|Insertion)|IntersectSetMutation|ObservingOption(New|Old)|UnionSetMutation|ValidationError))|QTMovie(NormalPlayback|Looping((?:BackAndForth|)Playback))|F(1((?:[1-4789]|5?|[06])FunctionKey)|7FunctionKey|i(nd(PanelAction(Replace(A(ndFind|ll(InSelection)?))?|S(howFindPanel|e(tFindString|lectAll(InSelection)?))|Next|Previous)|FunctionKey)|tPagination|le(Read(No((?:SuchFile|Permission)Error)|CorruptFileError|In((?:validFileName|applicableStringEncoding)Error)|Un((?:supportedScheme|known)Error))|HandlingPanel((?:Cancel|OK)Button)|NoSuchFileError|ErrorM((?:in|ax)imum)|Write(NoPermissionError|In((?:validFileName|applicableStringEncoding)Error)|OutOfSpaceError|Un((?:supportedScheme|known)Error))|LockingError)|xedPitchFontMask)|2((?:[1-4789]|5?|[06])FunctionKey)|o(nt(Mo(noSpaceTrait|dernSerifsClass)|BoldTrait|S((?:ymbolic|cripts|labSerifs|ansSerif)Class)|C(o(ndensedTrait|llectionApplicationOnlyMask)|larendonSerifsClass)|TransitionalSerifsClass|I(ntegerAdvancementsRenderingMode|talicTrait)|O((?:ldStyleSerif|rnamental)sClass)|DefaultRenderingMode|U(nknownClass|IOptimizedTrait)|Panel(S(hadowEffectModeMask|t((?:andardModes|rikethroughEffectMode)Mask)|izeModeMask)|CollectionModeMask|TextColorEffectModeMask|DocumentColorEffectModeMask|UnderlineEffectModeMask|FaceModeMask|All((?:Modes|EffectsMode)Mask))|ExpandedTrait|VerticalTrait|F(amilyClassMask|reeformSerifsClass)|Antialiased((?:|IntegerAdvancements)RenderingMode))|cusRing(Below|Type(None|Default|Exterior)|Only|Above)|urByteGlyphPacking|rm(attingError(M((?:in|ax)imum))?|FeedCharacter))|8FunctionKey|unction(ExpressionType|KeyMask)|3((?:[1-4]|5?|0)FunctionKey)|9FunctionKey|4FunctionKey|P(RevertButton|S(ize(Title|Field)|etButton)|CurrentField|Preview(Button|Field))|l(oat(ingPointSamplesBitmapFormat|Type)|agsChanged(Mask)?)|axButton|5FunctionKey|6FunctionKey)|W(heelModeColorPanel|indow(s(NTOperatingSystem|CP125([0-4]StringEncoding)|95(InterfaceStyle|OperatingSystem))|M(iniaturizeButton|ovedEventType)|Below|CloseButton|ToolbarButton|ZoomButton|Out|DocumentIconButton|ExposedEventType|Above)|orkspaceLaunch(NewInstance|InhibitingBackgroundOnly|Default|PreferringClassic|WithoutA(ctivation|ddingToRecents)|A(sync|nd(Hide(Others)?|Print)|llowingClassicStartup))|eek(day((?:|Ordinal)CalendarUnit)|CalendarUnit)|a(ntsBidiLevels|rningAlertStyle)|r(itingDirection(RightToLeft|Natural|LeftToRight)|apCalendarComponents))|L(i(stModeMatrix|ne(Moves(Right|Down|Up|Left)|B(order|reakBy(C((?:harWra|li)pping)|Truncating(Middle|Head|Tail)|WordWrapping))|S(eparatorCharacter|weep(Right|Down|Up|Left))|ToBezierPathElement|DoesntMove|arSlider)|teralSearch|kePredicateOperatorType|ghterFontAction|braryDirectory)|ocalDomainMask|e(ssThan(Comparison|OrEqualTo(Comparison|PredicateOperatorType)|PredicateOperatorType)|ft(Mouse(D(own(Mask)?|ragged(Mask)?)|Up(Mask)?)|T(ext((?:Move|Align)ment)|ab(sBezelBorder|StopType))|ArrowFunctionKey))|a(yout(RightToLeft|NotDone|CantFit|OutOfGlyphs|Done|LeftToRight)|ndscapeOrientation)|ABColorSpaceModel)|A(sc(iiWithDoubleByteEUCGlyphPacking|endingPageOrder)|n(y(Type|PredicateModifier|EventMask)|choredSearch|imation(Blocking|Nonblocking(Threaded)?|E(ffect(DisappearingItemDefault|Poof)|ase(In(Out)?|Out))|Linear)|dPredicateType)|t(Bottom|tachmentCharacter|omicWrite|Top)|SCIIStringEncoding|d(obe(GB1CharacterCollection|CNS1CharacterCollection|Japan([12]CharacterCollection)|Korea1CharacterCollection)|dTraitFontAction|minApplicationDirectory)|uto((?:saveOper|Pagin)ation)|pp(lication(SupportDirectory|D(irectory|e(fined(Mask)?|legateReply(Success|Cancel|Failure)|activatedEventType))|ActivatedEventType)|KitDefined(Mask)?)|l(ternateKeyMask|pha(ShiftKeyMask|NonpremultipliedBitmapFormat|FirstBitmapFormat)|ert((?:SecondButton|ThirdButton|Other|Default|Error|FirstButton|Alternate)Return)|l(ScrollerParts|DomainsMask|PredicateModifier|LibrariesDirectory|ApplicationsDirectory))|rgument((?:sWrong|Evaluation)ScriptError)|bove(Bottom|Top)|WTEventType))\\\\b","name":"support.constant.cocoa.objc"},"anonymous_pattern_4":{"begin":"\\\\b(id)\\\\s*(?=<)","beginCaptures":{"1":{"name":"storage.type.objc"}},"end":"(?<=>)","name":"meta.id-with-protocol.objc","patterns":[{"include":"#protocol_list"}]},"anonymous_pattern_5":{"match":"\\\\b(NS_(?:DURING|HANDLER|ENDHANDLER))\\\\b","name":"keyword.control.macro.objc"},"anonymous_pattern_7":{"captures":{"1":{"name":"punctuation.definition.keyword.objc"}},"match":"(@)(try|catch|finally|throw)\\\\b","name":"keyword.control.exception.objc"},"anonymous_pattern_8":{"captures":{"1":{"name":"punctuation.definition.keyword.objc"}},"match":"(@)(synchronized)\\\\b","name":"keyword.control.synchronize.objc"},"anonymous_pattern_9":{"captures":{"1":{"name":"punctuation.definition.keyword.objc"}},"match":"(@)(required|optional)\\\\b","name":"keyword.control.protocol-specification.objc"},"apple_foundation_functional_macros":{"begin":"\\\\b(API_AVAILABLE|API_DEPRECATED|API_UNAVAILABLE|NS_AVAILABLE|NS_AVAILABLE_MAC|NS_AVAILABLE_IOS|NS_DEPRECATED|NS_DEPRECATED_MAC|NS_DEPRECATED_IOS|NS_SWIFT_NAME)\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.preprocessor.apple-foundation.objc"},"2":{"name":"punctuation.section.macro.arguments.begin.bracket.round.apple-foundation.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.macro.arguments.end.bracket.round.apple-foundation.objc"}},"name":"meta.preprocessor.macro.callable.apple-foundation.objc","patterns":[{"include":"#c_lang"}]},"bracketed_content":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.objc"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.scope.end.objc"}},"name":"meta.bracketed.objc","patterns":[{"begin":"(?=predicateWithFormat:)(?<=NSPredicate )(predicateWithFormat:)","beginCaptures":{"1":{"name":"support.function.any-method.objc"},"2":{"name":"punctuation.separator.arguments.objc"}},"end":"(?=])","name":"meta.function-call.predicate.objc","patterns":[{"captures":{"1":{"name":"punctuation.separator.arguments.objc"}},"match":"\\\\bargument(Array|s)(:)","name":"support.function.any-method.name-of-parameter.objc"},{"captures":{"1":{"name":"punctuation.separator.arguments.objc"}},"match":"\\\\b\\\\w+(:)","name":"invalid.illegal.unknown-method.objc"},{"begin":"@\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.double.objc","patterns":[{"match":"\\\\b(AND|OR|NOT|IN)\\\\b","name":"keyword.operator.logical.predicate.cocoa.objc"},{"match":"\\\\b(ALL|ANY|SOME|NONE)\\\\b","name":"constant.language.predicate.cocoa.objc"},{"match":"\\\\b(NULL|NIL|SELF|TRUE|YES|FALSE|NO|FIRST|LAST|SIZE)\\\\b","name":"constant.language.predicate.cocoa.objc"},{"match":"\\\\b(MATCHES|CONTAINS|BEGINSWITH|ENDSWITH|BETWEEN)\\\\b","name":"keyword.operator.comparison.predicate.cocoa.objc"},{"match":"\\\\bC(ASEINSENSITIVE|I)\\\\b","name":"keyword.other.modifier.predicate.cocoa.objc"},{"match":"\\\\b(ANYKEY|SUBQUERY|CAST|TRUEPREDICATE|FALSEPREDICATE)\\\\b","name":"keyword.other.predicate.cocoa.objc"},{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnrtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x[0-9A-Za-z]+)","name":"constant.character.escape.objc"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.objc"}]},{"include":"#special_variables"},{"include":"#c_functions"},{"include":"$base"}]},{"begin":"(?=\\\\w)(?<=[]\\")\\\\w] )(\\\\w+(?:(:)|(?=])))","beginCaptures":{"1":{"name":"support.function.any-method.objc"},"2":{"name":"punctuation.separator.arguments.objc"}},"end":"(?=])","name":"meta.function-call.objc","patterns":[{"captures":{"1":{"name":"punctuation.separator.arguments.objc"}},"match":"\\\\b\\\\w+(:)","name":"support.function.any-method.name-of-parameter.objc"},{"include":"#special_variables"},{"include":"#c_functions"},{"include":"$base"}]},{"include":"#special_variables"},{"include":"#c_functions"},{"include":"$self"}]},"c_functions":{"patterns":[{"captures":{"1":{"name":"punctuation.whitespace.support.function.leading.objc"},"2":{"name":"support.function.C99.objc"}},"match":"(\\\\s*)\\\\b(hypot([fl])?|s(scanf|ystem|nprintf|ca(nf|lb(n([fl])?|ln([fl])?))|i(n(h([fl])?|[fl])?|gn(al|bit))|tr(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|[fk]|l([dl])?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(jmp|vbuf|locale|buf)|qrt([fl])?|w(scanf|printf)|rand)|n(e(arbyint([fl])?|xt(toward([fl])?|after([fl])?))|an([fl])?)|c(s(in(h([fl])?|[fl])?|qrt([fl])?)|cos(h(f)?|[fl])?|imag([fl])?|t(ime|an(h([fl])?|[fl])?)|o(s(h([fl])?|[fl])?|nj([fl])?|pysign([fl])?)|p(ow([fl])?|roj([fl])?)|e(il([fl])?|xp([fl])?)|l(o(ck|g([fl])?)|earerr)|a(sin(h([fl])?|[fl])?|cos(h([fl])?|[fl])?|tan(h([fl])?|[fl])?|lloc|rg([fl])?|bs([fl])?)|real([fl])?|brt([fl])?)|t(ime|o(upper|lower)|an(h([fl])?|[fl])?|runc([fl])?|gamma([fl])?|mp(nam|file))|i(s(space|n(ormal|an)|cntrl|inf|digit|u(nordered|pper)|p(unct|rint)|finite|w(space|c(ntrl|type)|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit|blank)|l(ower|ess(equal|greater)?)|al(num|pha)|gr(eater(equal)?|aph)|xdigit|blank)|logb([fl])?|max(div|abs))|di(v|fftime)|_Exit|unget(w??c)|p(ow([fl])?|ut(s|c(har)?|wc(har)?)|error|rintf)|e(rf(c([fl])?|[fl])?|x(it|p(2([fl])?|[fl]|m1([fl])?)?))|v(s(scanf|nprintf|canf|printf|w(scanf|printf))|printf|f(scanf|printf|w(scanf|printf))|w(scanf|printf)|a_(start|copy|end|arg))|qsort|f(s(canf|e(tpos|ek))|close|tell|open|dim([fl])?|p(classify|ut([cs]|w([cs]))|rintf)|e(holdexcept|set(e(nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(aiseexcept|ror)|get(e(nv|xceptflag)|round))|flush|w(scanf|ide|printf|rite)|loor([fl])?|abs([fl])?|get([cs]|pos|w([cs]))|re(open|e|ad|xp([fl])?)|m(in([fl])?|od([fl])?|a([fl]|x([fl])?)?))|l(d(iv|exp([fl])?)|o(ngjmp|cal(time|econv)|g(1(p([fl])?|0([fl])?)|2([fl])?|[fl]|b([fl])?)?)|abs|l(div|abs|r(int([fl])?|ound([fl])?))|r(int([fl])?|ound([fl])?)|gamma([fl])?)|w(scanf|c(s(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|[fk]|l([dl])?|mbs)|pbrk|ftime|len|r(chr|tombs)|xfrm)|to(m??b)|rtomb)|printf|mem(set|c(hr|py|mp)|move))|a(s(sert|ctime|in(h([fl])?|[fl])?)|cos(h([fl])?|[fl])?|t(o([fi]|l(l)?)|exit|an(h([fl])?|2([fl])?|[fl])?)|b(s|ort))|g(et(s|c(har)?|env|wc(har)?)|mtime)|r(int([fl])?|ound([fl])?|e(name|alloc|wind|m(ove|quo([fl])?|ainder([fl])?))|a(nd|ise))|b(search|towc)|m(odf([fl])?|em(set|c(hr|py|mp)|move)|ktime|alloc|b(s(init|towcs|rtowcs)|towc|len|r(towc|len))))\\\\b"},{"captures":{"1":{"name":"punctuation.whitespace.function-call.leading.objc"},"2":{"name":"support.function.any-method.objc"},"3":{"name":"punctuation.definition.parameters.objc"}},"match":"(?:(?=\\\\s)(?:(?<=else|new|return)|(?<!\\\\w))(\\\\s+))?\\\\b((?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\\\s*\\\\()(?:(?!NS)[A-Z_a-z][0-9A-Z_a-z]*+\\\\b|::)++)\\\\s*(\\\\()","name":"meta.function-call.objc"}]},"c_lang":{"patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-conditional"},{"include":"#comments"},{"include":"#switch_statement"},{"match":"\\\\b(break|continue|do|else|for|goto|if|_Pragma|return|while)\\\\b","name":"keyword.control.objc"},{"include":"#storage_types"},{"match":"typedef","name":"keyword.other.typedef.objc"},{"match":"\\\\bin\\\\b","name":"keyword.other.in.objc"},{"match":"\\\\b(const|extern|register|restrict|static|volatile|inline|__block)\\\\b","name":"storage.modifier.objc"},{"match":"\\\\bk[A-Z]\\\\w*\\\\b","name":"constant.other.variable.mac-classic.objc"},{"match":"\\\\bg[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.global.mac-classic.objc"},{"match":"\\\\bs[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.static.mac-classic.objc"},{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.objc"},{"include":"#operators"},{"include":"#numbers"},{"include":"#strings"},{"include":"#special_variables"},{"begin":"^\\\\s*((#)\\\\s*define)\\\\s+((?<id>[$A-Z_a-z][$\\\\w]*))(?:(\\\\()(\\\\s*\\\\g<id>\\\\s*((,)\\\\s*\\\\g<id>\\\\s*)*(?:\\\\.\\\\.\\\\.)?)(\\\\)))?","beginCaptures":{"1":{"name":"keyword.control.directive.define.objc"},"2":{"name":"punctuation.definition.directive.objc"},"3":{"name":"entity.name.function.preprocessor.objc"},"5":{"name":"punctuation.definition.parameters.begin.objc"},"6":{"name":"variable.parameter.preprocessor.objc"},"8":{"name":"punctuation.separator.parameters.objc"},"9":{"name":"punctuation.definition.parameters.end.objc"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.macro.objc","patterns":[{"include":"#preprocessor-rule-define-line-contents"}]},{"begin":"^\\\\s*((#)\\\\s*(error|warning))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.diagnostic.$3.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.diagnostic.objc","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.double.objc","patterns":[{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.single.objc","patterns":[{"include":"#line_continuation_character"}]},{"begin":"[^\\"']","end":"(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"string.unquoted.single.objc","patterns":[{"include":"#line_continuation_character"},{"include":"#comments"}]}]},{"begin":"^\\\\s*((#)\\\\s*(i(?:nclude(?:_next)?|mport)))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.$3.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.include.objc","patterns":[{"include":"#line_continuation_character"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.double.include.objc"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.other.lt-gt.include.objc"}]},{"include":"#pragma-mark"},{"begin":"^\\\\s*((#)\\\\s*line)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.line.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},{"begin":"^\\\\s*((#)\\\\s*undef)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.undef.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.objc"},{"include":"#line_continuation_character"}]},{"begin":"^\\\\s*((#)\\\\s*pragma)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.pragma.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.pragma.objc","patterns":[{"include":"#strings"},{"match":"[$A-Z_a-z][-$\\\\w]*","name":"entity.other.attribute-name.pragma.preprocessor.objc"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},{"match":"\\\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\\\b","name":"support.type.sys-types.objc"},{"match":"\\\\b(pthread_(?:attr_|cond_|condattr_|mutex_|mutexattr_|once_|rwlock_|rwlockattr_||key_)t)\\\\b","name":"support.type.pthread.objc"},{"match":"\\\\b((?:int8|int16|int32|int64|uint8|uint16|uint32|uint64|int_least8|int_least16|int_least32|int_least64|uint_least8|uint_least16|uint_least32|uint_least64|int_fast8|int_fast16|int_fast32|int_fast64|uint_fast8|uint_fast16|uint_fast32|uint_fast64|intptr|uintptr|intmax|uintmax)_t)\\\\b","name":"support.type.stdint.objc"},{"match":"\\\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\\\b","name":"support.constant.mac-classic.objc"},{"match":"\\\\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\\\\b","name":"support.type.mac-classic.objc"},{"match":"\\\\b([0-9A-Z_a-z]+_t)\\\\b","name":"support.type.posix-reserved.objc"},{"include":"#block"},{"include":"#parens"},{"begin":"(?<!\\\\w)(?!\\\\s*(?:not|compl|sizeof|not_eq|bitand|xor|bitor|and|or|and_eq|xor_eq|or_eq|alignof|alignas|_Alignof|_Alignas|while|for|do|if|else|goto|switch|return|break|case|continue|default|void|char|short|int|signed|unsigned|long|float|double|bool|_Bool|_Complex|_Imaginary|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|NULL|true|false|memory_order|atomic_bool|atomic_char|atomic_schar|atomic_uchar|atomic_short|atomic_ushort|atomic_int|atomic_uint|atomic_long|atomic_ulong|atomic_llong|atomic_ullong|atomic_char16_t|atomic_char32_t|atomic_wchar_t|atomic_int_least8_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_least16_t|atomic_int_least32_t|atomic_uint_least32_t|atomic_int_least64_t|atomic_uint_least64_t|atomic_int_fast8_t|atomic_uint_fast8_t|atomic_int_fast16_t|atomic_uint_fast16_t|atomic_int_fast32_t|atomic_uint_fast32_t|atomic_int_fast64_t|atomic_uint_fast64_t|atomic_intptr_t|atomic_uintptr_t|atomic_size_t|atomic_ptrdiff_t|atomic_intmax_t|atomic_uintmax_t|struct|union|enum|typedef|auto|register|static|extern|thread_local|inline|_Noreturn|const|volatile|restrict|_Atomic)\\\\s*\\\\()(?=[A-Z_a-z]\\\\w*\\\\s*\\\\()","end":"(?<=\\\\))","name":"meta.function.objc","patterns":[{"include":"#function-innards"}]},{"include":"#line_continuation_character"},{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))?(\\\\[)(?!])","beginCaptures":{"1":{"name":"variable.object.objc"},"2":{"name":"punctuation.definition.begin.bracket.square.objc"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.objc"}},"name":"meta.bracket.square.access.objc","patterns":[{"include":"#function-call-innards"}]},{"match":"\\\\[\\\\s*]","name":"storage.modifier.array.bracket.square.objc"},{"match":";","name":"punctuation.terminator.statement.objc"},{"match":",","name":"punctuation.separator.delimiter.objc"}],"repository":{"access-method":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))\\\\s*(?:(\\\\.)|(->))((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(?:\\\\.|->))*)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(\\\\()","beginCaptures":{"1":{"name":"variable.object.objc"},"2":{"name":"punctuation.separator.dot-access.objc"},"3":{"name":"punctuation.separator.pointer-access.objc"},"4":{"patterns":[{"match":"\\\\.","name":"punctuation.separator.dot-access.objc"},{"match":"->","name":"punctuation.separator.pointer-access.objc"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.object.objc"},{"match":".+","name":"everything.else.objc"}]},"5":{"name":"entity.name.function.member.objc"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.member.objc"}},"name":"meta.function-call.member.objc","patterns":[{"include":"#function-call-innards"}]},"block":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objc"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objc"}},"name":"meta.block.objc","patterns":[{"include":"#block_innards"}]}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-conditional-block"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#c_function_call"},{"begin":"(?=\\\\s)(?<!else|new|return)(?<=\\\\w)\\\\s+(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.objc"},"2":{"name":"punctuation.section.parens.begin.bracket.round.initialization.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.initialization.objc"}},"name":"meta.initialization.objc","patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objc"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objc"}},"patterns":[{"include":"#block_innards"}]},{"include":"#parens-block"},{"include":"$base"}]},"c_function_call":{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)","name":"meta.function-call.objc","patterns":[{"include":"#function-call-innards"}]},"case_statement":{"begin":"((?<!\\\\w)case(?!\\\\w))","beginCaptures":{"1":{"name":"keyword.control.case.objc"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.case.objc"}},"name":"meta.conditional.case.objc","patterns":[{"include":"#conditional_context"}]},"comments":{"patterns":[{"captures":{"1":{"name":"meta.toc-list.banner.block.objc"}},"match":"^/\\\\* =(\\\\s*.*?)\\\\s*= \\\\*/$\\\\n?","name":"comment.block.objc"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.objc"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.objc"}},"name":"comment.block.objc"},{"captures":{"1":{"name":"meta.toc-list.banner.line.objc"}},"match":"^// =(\\\\s*.*?)\\\\s*=\\\\s*$\\\\n?","name":"comment.line.banner.objc"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.objc"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.objc"}},"end":"(?=\\\\n)","name":"comment.line.double-slash.objc","patterns":[{"include":"#line_continuation_character"}]}]}]},"conditional_context":{"patterns":[{"include":"$base"},{"include":"#block_innards"}]},"default_statement":{"begin":"((?<!\\\\w)default(?!\\\\w))","beginCaptures":{"1":{"name":"keyword.control.default.objc"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.case.default.objc"}},"name":"meta.conditional.case.objc","patterns":[{"include":"#conditional_context"}]},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"function-call-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objc"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.objc"}},"patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objc"}},"patterns":[{"include":"#function-call-innards"}]},{"include":"#block_innards"}]},"function-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#operators"},{"include":"#vararg_ellipses"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objc"},"2":{"name":"punctuation.section.parameters.begin.bracket.round.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.objc"}},"name":"meta.function.definition.parameters.objc","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objc"}},"patterns":[{"include":"#function-innards"}]},{"include":"$base"}]},"line_continuation_character":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.line-continuation.objc"}},"match":"(\\\\\\\\)\\\\n"}]},"member_access":{"captures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objc"}]},"2":{"name":"punctuation.separator.dot-access.objc"},"3":{"name":"punctuation.separator.pointer-access.objc"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objc"}]},"2":{"name":"punctuation.separator.dot-access.objc"},"3":{"name":"punctuation.separator.pointer-access.objc"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"variable.other.member.objc"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?-im:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*\\\\b((?!void|char|short|int|signed|unsigned|long|float|double|bool|_Bool|_Complex|_Imaginary|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|memory_order|atomic_bool|atomic_char|atomic_schar|atomic_uchar|atomic_short|atomic_ushort|atomic_int|atomic_uint|atomic_long|atomic_ulong|atomic_llong|atomic_ullong|atomic_char16_t|atomic_char32_t|atomic_wchar_t|atomic_int_least8_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_least16_t|atomic_int_least32_t|atomic_uint_least32_t|atomic_int_least64_t|atomic_uint_least64_t|atomic_int_fast8_t|atomic_uint_fast8_t|atomic_int_fast16_t|atomic_uint_fast16_t|atomic_int_fast32_t|atomic_uint_fast32_t|atomic_int_fast64_t|atomic_uint_fast64_t|atomic_intptr_t|atomic_uintptr_t|atomic_size_t|atomic_ptrdiff_t|atomic_intmax_t|atomic_uintmax_t)[A-Z_a-z]\\\\w*\\\\b(?!\\\\())"},"method_access":{"begin":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?-im:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*([A-Z_a-z]\\\\w*)(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objc"}]},"2":{"name":"punctuation.separator.dot-access.objc"},"3":{"name":"punctuation.separator.pointer-access.objc"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objc"}]},"2":{"name":"punctuation.separator.dot-access.objc"},"3":{"name":"punctuation.separator.pointer-access.objc"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"entity.name.function.member.objc"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.objc"}},"contentName":"meta.function-call.member.objc","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.function.member.objc"}},"patterns":[{"include":"#function-call-innards"}]},"numbers":{"begin":"(?<!\\\\w)(?=\\\\.??\\\\d)","end":"(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])","patterns":[{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.objc"},"2":{"name":"constant.numeric.hexadecimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"3":{"name":"punctuation.separator.constant.numeric.objc"},"4":{"name":"constant.numeric.hexadecimal.objc"},"5":{"name":"constant.numeric.hexadecimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"6":{"name":"punctuation.separator.constant.numeric.objc"},"8":{"name":"keyword.other.unit.exponent.hexadecimal.objc"},"9":{"name":"keyword.operator.plus.exponent.hexadecimal.objc"},"10":{"name":"keyword.operator.minus.exponent.hexadecimal.objc"},"11":{"name":"constant.numeric.exponent.hexadecimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.objc"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Pp])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?([FLfl](?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"2":{"name":"constant.numeric.decimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"3":{"name":"punctuation.separator.constant.numeric.objc"},"4":{"name":"constant.numeric.decimal.point.objc"},"5":{"name":"constant.numeric.decimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"6":{"name":"punctuation.separator.constant.numeric.objc"},"8":{"name":"keyword.other.unit.exponent.decimal.objc"},"9":{"name":"keyword.operator.plus.exponent.decimal.objc"},"10":{"name":"keyword.operator.minus.exponent.decimal.objc"},"11":{"name":"constant.numeric.exponent.decimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.objc"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Ee])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?([FLfl](?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"1":{"name":"keyword.other.unit.binary.objc"},"2":{"name":"constant.numeric.binary.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"3":{"name":"punctuation.separator.constant.numeric.objc"},"4":{"name":"keyword.other.unit.suffix.integer.objc"}},"match":"\\\\G(0[Bb])([01](?:[01]|((?<=\\\\h)'(?=\\\\h)))*)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"1":{"name":"keyword.other.unit.octal.objc"},"2":{"name":"constant.numeric.octal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"3":{"name":"punctuation.separator.constant.numeric.objc"},"4":{"name":"keyword.other.unit.suffix.integer.objc"}},"match":"\\\\G(0)((?:[0-7]|((?<=\\\\h)'(?=\\\\h)))+)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.objc"},"2":{"name":"constant.numeric.hexadecimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"3":{"name":"punctuation.separator.constant.numeric.objc"},"5":{"name":"keyword.other.unit.exponent.hexadecimal.objc"},"6":{"name":"keyword.operator.plus.exponent.hexadecimal.objc"},"7":{"name":"keyword.operator.minus.exponent.hexadecimal.objc"},"8":{"name":"constant.numeric.exponent.hexadecimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"9":{"name":"keyword.other.unit.suffix.integer.objc"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Pp])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"2":{"name":"constant.numeric.decimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"3":{"name":"punctuation.separator.constant.numeric.objc"},"5":{"name":"keyword.other.unit.exponent.decimal.objc"},"6":{"name":"keyword.operator.plus.exponent.decimal.objc"},"7":{"name":"keyword.operator.minus.exponent.decimal.objc"},"8":{"name":"constant.numeric.exponent.decimal.objc","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objc"}]},"9":{"name":"keyword.other.unit.suffix.integer.objc"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Ee])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"match":"(?:['.0-9A-Z_a-z]|(?<=[EPep])[-+])+","name":"invalid.illegal.constant.numeric.objc"}]},"operators":{"patterns":[{"match":"(?<![$\\\\w])(sizeof)(?![$\\\\w])","name":"keyword.operator.sizeof.objc"},{"match":"--","name":"keyword.operator.decrement.objc"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.objc"},{"match":"(?:[-%*+]|(?<!\\\\()/)=","name":"keyword.operator.assignment.compound.objc"},{"match":"(?:[\\\\&^]|<<|>>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.objc"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.objc"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.objc"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.objc"},{"match":"[\\\\&^|~]","name":"keyword.operator.objc"},{"match":"=","name":"keyword.operator.assignment.objc"},{"match":"[-%*+/]","name":"keyword.operator.objc"},{"begin":"(\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.objc"}},"end":"(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.objc"}},"patterns":[{"include":"#function-call-innards"},{"include":"$base"}]}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objc"}},"name":"meta.parens.objc","patterns":[{"include":"$base"}]},"parens-block":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objc"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objc"}},"name":"meta.parens.block.objc","patterns":[{"include":"#block_innards"},{"match":"(?-im:(?<!:):(?!:))","name":"punctuation.range-based.objc"}]},"pragma-mark":{"captures":{"1":{"name":"meta.preprocessor.pragma.objc"},"2":{"name":"keyword.control.directive.pragma.pragma-mark.objc"},"3":{"name":"punctuation.definition.directive.objc"},"4":{"name":"entity.name.tag.pragma-mark.objc"}},"match":"^\\\\s*(((#)\\\\s*pragma\\\\s+mark)\\\\s+(.*))","name":"meta.section.objc"},"preprocessor-rule-conditional":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$base"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.objc"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.objc"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-line":{"patterns":[{"match":"\\\\bdefined\\\\b(?:\\\\s*$|(?=\\\\s*\\\\(*\\\\s*(?!defined\\\\b)[$A-Z_a-z][$\\\\w]*\\\\b\\\\s*\\\\)*\\\\s*(?:\\\\n|//|/\\\\*|[:?]|&&|\\\\|\\\\||\\\\\\\\\\\\s*\\\\n)))","name":"keyword.control.directive.conditional.objc"},{"match":"\\\\bdefined\\\\b","name":"invalid.illegal.macro-name.objc"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.objc"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.objc"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#operators"},{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.objc"},{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.objc"},{"include":"#line_continuation_character"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objc"}},"end":"\\\\)|(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objc"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]}]},"preprocessor-rule-define-line-blocks":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objc"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objc"}},"patterns":[{"include":"#preprocessor-rule-define-line-blocks"},{"include":"#preprocessor-rule-define-line-contents"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-define-line-contents":{"patterns":[{"include":"#vararg_ellipses"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objc"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objc"}},"name":"meta.block.objc","patterns":[{"include":"#preprocessor-rule-define-line-blocks"}]},{"match":"\\\\(","name":"punctuation.section.parens.begin.bracket.round.objc"},{"match":"\\\\)","name":"punctuation.section.parens.end.bracket.round.objc"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"meta.function.objc","patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.double.objc","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.single.objc","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]},{"include":"#method_access"},{"include":"#member_access"},{"include":"$base"}]},"preprocessor-rule-define-line-functions":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#vararg_ellipses"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objc"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.objc"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.objc"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objc"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.objc"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-disabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$base"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.objc","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.in-block.objc","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","contentName":"comment.block.preprocessor.elif-branch.objc","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-enabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"},"3":{"name":"constant.numeric.preprocessor.objc"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.else-branch.objc","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.if-branch.objc","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"$base"}]}]}]},"preprocessor-rule-enabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.else-branch.in-block.objc","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.if-branch.in-block.objc","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#block_innards"}]}]}]},"preprocessor-rule-enabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.elif-branch.objc","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.elif-branch.objc","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"$base"}]}]},"preprocessor-rule-enabled-elif-block":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objc","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.elif-branch.in-block.objc","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"contentName":"comment.block.preprocessor.elif-branch.objc","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"#block_innards"}]}]},"preprocessor-rule-enabled-else":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"$base"}]},"preprocessor-rule-enabled-else-block":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objc"},"1":{"name":"keyword.control.directive.conditional.objc"},"2":{"name":"punctuation.definition.directive.objc"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#block_innards"}]},"probably_a_parameter":{"captures":{"1":{"name":"variable.parameter.probably.objc"}},"match":"(?<=[0-9A-Z_a-z] |[]\\\\&)*>])\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(?:\\\\[]\\\\s*)?[),])"},"static_assert":{"begin":"((?:s|_S)tatic_assert)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.static_assert.objc"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.objc"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.objc"}},"patterns":[{"begin":"(,)\\\\s*(?=(?:L|u8?|U\\\\s*\\")?)","beginCaptures":{"1":{"name":"punctuation.separator.delimiter.objc"}},"end":"(?=\\\\))","name":"meta.static_assert.message.objc","patterns":[{"include":"#string_context"},{"include":"#string_context_c"}]},{"include":"#function_call_context"}]},"storage_types":{"patterns":[{"match":"(?-im:(?<!\\\\w)(?:void|char|short|int|signed|unsigned|long|float|double|bool|_Bool)(?!\\\\w))","name":"storage.type.built-in.primitive.objc"},{"match":"(?-im:(?<!\\\\w)(?:_Complex|_Imaginary|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|memory_order|atomic_bool|atomic_char|atomic_schar|atomic_uchar|atomic_short|atomic_ushort|atomic_int|atomic_uint|atomic_long|atomic_ulong|atomic_llong|atomic_ullong|atomic_char16_t|atomic_char32_t|atomic_wchar_t|atomic_int_least8_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_least16_t|atomic_int_least32_t|atomic_uint_least32_t|atomic_int_least64_t|atomic_uint_least64_t|atomic_int_fast8_t|atomic_uint_fast8_t|atomic_int_fast16_t|atomic_uint_fast16_t|atomic_int_fast32_t|atomic_uint_fast32_t|atomic_int_fast64_t|atomic_uint_fast64_t|atomic_intptr_t|atomic_uintptr_t|atomic_size_t|atomic_ptrdiff_t|atomic_intmax_t|atomic_uintmax_t)(?!\\\\w))","name":"storage.type.built-in.objc"},{"match":"(?-im:\\\\b(asm|__asm__|enum|struct|union)\\\\b)","name":"storage.type.$1.objc"}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.objc"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.objc"}]},"string_placeholder":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.objc"},{"captures":{"1":{"name":"invalid.illegal.placeholder.objc"}},"match":"(%)(?!\\"\\\\s*(PRI|SCN))"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.double.objc","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objc"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.objc"}},"name":"string.quoted.single.objc","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]}]},"switch_conditional_parentheses":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.conditional.switch.objc"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.conditional.switch.objc"}},"name":"meta.conditional.switch.objc","patterns":[{"include":"#conditional_context"}]},"switch_statement":{"begin":"(((?<!\\\\w)switch(?!\\\\w)))","beginCaptures":{"1":{"name":"meta.head.switch.objc"},"2":{"name":"keyword.control.switch.objc"}},"end":"(?<=})|(?=[];=>\\\\[])","name":"meta.block.switch.objc","patterns":[{"begin":"\\\\G ?","end":"(\\\\{|(?=;))","endCaptures":{"1":{"name":"punctuation.section.block.begin.bracket.curly.switch.objc"}},"name":"meta.head.switch.objc","patterns":[{"include":"#switch_conditional_parentheses"},{"include":"$base"}]},{"begin":"(?<=\\\\{)","end":"(})","endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.switch.objc"}},"name":"meta.body.switch.objc","patterns":[{"include":"#default_statement"},{"include":"#case_statement"},{"include":"$base"},{"include":"#block_innards"}]},{"begin":"(?<=})[\\\\n\\\\s]*","end":"[\\\\n\\\\s]*(?=;)","name":"meta.tail.switch.objc","patterns":[{"include":"$base"}]}]},"vararg_ellipses":{"match":"(?<!\\\\.)\\\\.\\\\.\\\\.(?!\\\\.)","name":"punctuation.vararg-ellipses.objc"}}},"comment":{"patterns":[{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.objc"}},"end":"\\\\*/","name":"comment.block.objc"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.objc"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.objc"}},"end":"\\\\n","name":"comment.line.double-slash.objc","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.objc"}]}]}]},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b.*$","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"implementation_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-implementation"},{"include":"#preprocessor-rule-disabled-implementation"},{"include":"#preprocessor-rule-other-implementation"},{"include":"#property_directive"},{"include":"#method_super"},{"include":"$base"}]},"interface_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-interface"},{"include":"#preprocessor-rule-disabled-interface"},{"include":"#preprocessor-rule-other-interface"},{"include":"#properties"},{"include":"#protocol_list"},{"include":"#method"},{"include":"$base"}]},"method":{"begin":"^([-+])\\\\s*","end":"(?=[#{])|;","name":"meta.function.objc","patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.type.begin.objc"}},"end":"(\\\\))\\\\s*(\\\\w+)\\\\b","endCaptures":{"1":{"name":"punctuation.definition.type.end.objc"},"2":{"name":"entity.name.function.objc"}},"name":"meta.return-type.objc","patterns":[{"include":"#protocol_list"},{"include":"#protocol_type_qualifier"},{"include":"$base"}]},{"match":"\\\\b\\\\w+(?=:)","name":"entity.name.function.name-of-parameter.objc"},{"begin":"((:))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.name-of-parameter.objc"},"2":{"name":"punctuation.separator.arguments.objc"},"3":{"name":"punctuation.definition.type.begin.objc"}},"end":"(\\\\))\\\\s*(\\\\w+\\\\b)?","endCaptures":{"1":{"name":"punctuation.definition.type.end.objc"},"2":{"name":"variable.parameter.function.objc"}},"name":"meta.argument-type.objc","patterns":[{"include":"#protocol_list"},{"include":"#protocol_type_qualifier"},{"include":"$base"}]},{"include":"#comment"}]},"method_super":{"begin":"^(?=[-+])","end":"(?<=})|(?=#)","name":"meta.function-with-body.objc","patterns":[{"include":"#method"},{"include":"$base"}]},"pragma-mark":{"captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.pragma.objc"},"3":{"name":"meta.toc-list.pragma-mark.objc"}},"match":"^\\\\s*(#\\\\s*(pragma\\\\s+mark)\\\\s+(.*))","name":"meta.section.objc"},"preprocessor-rule-disabled-implementation":{"begin":"^\\\\s*(#(if)\\\\s+(0))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.if.objc"},"3":{"name":"constant.numeric.preprocessor.objc"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.else.objc"}},"end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#interface_innards"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","name":"comment.block.preprocessor.if-branch.objc","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-disabled-interface":{"begin":"^\\\\s*(#(if)\\\\s+(0))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.if.objc"},"3":{"name":"constant.numeric.preprocessor.objc"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.else.objc"}},"end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#interface_innards"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","name":"comment.block.preprocessor.if-branch.objc","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-enabled-implementation":{"begin":"^\\\\s*(#(if)\\\\s+(0*1))\\\\b","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.if.objc"},"3":{"name":"constant.numeric.preprocessor.objc"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.else.objc"}},"contentName":"comment.block.preprocessor.else-branch.objc","end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#implementation_innards"}]}]},"preprocessor-rule-enabled-interface":{"begin":"^\\\\s*(#(if)\\\\s+(0*1))\\\\b","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.if.objc"},"3":{"name":"constant.numeric.preprocessor.objc"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.else.objc"}},"contentName":"comment.block.preprocessor.else-branch.objc","end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#interface_innards"}]}]},"preprocessor-rule-other-implementation":{"begin":"^\\\\s*(#\\\\s*(if(n?def)?)\\\\b.*?(?:(?=/[*/])|$))","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.objc"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b.*?(?:(?=/[*/])|$)","patterns":[{"include":"#implementation_innards"}]},"preprocessor-rule-other-interface":{"begin":"^\\\\s*(#\\\\s*(if(n?def)?)\\\\b.*?(?:(?=/[*/])|$))","captures":{"1":{"name":"meta.preprocessor.objc"},"2":{"name":"keyword.control.import.objc"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b.*?(?:(?=/[*/])|$)","patterns":[{"include":"#interface_innards"}]},"properties":{"patterns":[{"begin":"((@)property)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.property.objc"},"2":{"name":"punctuation.definition.keyword.objc"},"3":{"name":"punctuation.section.scope.begin.objc"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.scope.end.objc"}},"name":"meta.property-with-attributes.objc","patterns":[{"match":"\\\\b(getter|setter|readonly|readwrite|assign|retain|copy|nonatomic|atomic|strong|weak|nonnull|nullable|null_resettable|null_unspecified|class|direct)\\\\b","name":"keyword.other.property.attribute.objc"}]},{"captures":{"1":{"name":"keyword.other.property.objc"},"2":{"name":"punctuation.definition.keyword.objc"}},"match":"((@)property)\\\\b","name":"meta.property.objc"}]},"property_directive":{"captures":{"1":{"name":"punctuation.definition.keyword.objc"}},"match":"(@)(dynamic|synthesize)\\\\b","name":"keyword.other.property.directive.objc"},"protocol_list":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.section.scope.begin.objc"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.section.scope.end.objc"}},"name":"meta.protocol-list.objc","patterns":[{"match":"\\\\bNS(GlyphStorage|M(utableCopying|enuItem)|C(hangeSpelling|o(ding|pying|lorPicking(Custom|Default)))|T(oolbarItemValidations|ext(Input|AttachmentCell))|I(nputServ(iceProvider|erMouseTracker)|gnoreMisspelledWords)|Obj(CTypeSerializationCallBack|ect)|D(ecimalNumberBehaviors|raggingInfo)|U(serInterfaceValidations|RL(HandleClient|DownloadDelegate|ProtocolClient|AuthenticationChallengeSender))|Validated((?:Toobar|UserInterface)Item)|Locking)\\\\b","name":"support.other.protocol.objc"}]},"protocol_type_qualifier":{"match":"\\\\b(in|out|inout|oneway|bycopy|byref|nonnull|nullable|_Nonnull|_Nullable|_Null_unspecified)\\\\b","name":"storage.modifier.protocol.objc"},"special_variables":{"patterns":[{"match":"\\\\b_cmd\\\\b","name":"variable.other.selector.objc"},{"match":"\\\\b(s(?:elf|uper))\\\\b","name":"variable.language.objc"}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.objc"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.objc"}]},"string_placeholder":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.objc"},{"captures":{"1":{"name":"invalid.illegal.placeholder.objc"}},"match":"(%)(?!\\"\\\\s*(PRI|SCN))"}]}},"scopeName":"source.objc","aliases":["objc"]}`))];export{e as default}; diff --git a/docs/assets/objective-cpp-Dkuvmhfa.js b/docs/assets/objective-cpp-Dkuvmhfa.js new file mode 100644 index 0000000..08bfa7d --- /dev/null +++ b/docs/assets/objective-cpp-Dkuvmhfa.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Objective-C++","name":"objective-cpp","patterns":[{"include":"#cpp_lang"},{"include":"#anonymous_pattern_1"},{"include":"#anonymous_pattern_2"},{"include":"#anonymous_pattern_3"},{"include":"#anonymous_pattern_4"},{"include":"#anonymous_pattern_5"},{"include":"#apple_foundation_functional_macros"},{"include":"#anonymous_pattern_7"},{"include":"#anonymous_pattern_8"},{"include":"#anonymous_pattern_9"},{"include":"#anonymous_pattern_10"},{"include":"#anonymous_pattern_11"},{"include":"#anonymous_pattern_12"},{"include":"#anonymous_pattern_13"},{"include":"#anonymous_pattern_14"},{"include":"#anonymous_pattern_15"},{"include":"#anonymous_pattern_16"},{"include":"#anonymous_pattern_17"},{"include":"#anonymous_pattern_18"},{"include":"#anonymous_pattern_19"},{"include":"#anonymous_pattern_20"},{"include":"#anonymous_pattern_21"},{"include":"#anonymous_pattern_22"},{"include":"#anonymous_pattern_23"},{"include":"#anonymous_pattern_24"},{"include":"#anonymous_pattern_25"},{"include":"#anonymous_pattern_26"},{"include":"#anonymous_pattern_27"},{"include":"#anonymous_pattern_28"},{"include":"#anonymous_pattern_29"},{"include":"#anonymous_pattern_30"},{"include":"#bracketed_content"},{"include":"#c_lang"}],"repository":{"anonymous_pattern_1":{"begin":"((@)(interface|protocol))(?!.+;)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*((:)\\\\s*([A-Za-z][0-9A-Za-z]*))?([\\\\n\\\\s])?","captures":{"1":{"name":"storage.type.objcpp"},"2":{"name":"punctuation.definition.storage.type.objcpp"},"4":{"name":"entity.name.type.objcpp"},"6":{"name":"punctuation.definition.entity.other.inherited-class.objcpp"},"7":{"name":"entity.other.inherited-class.objcpp"},"8":{"name":"meta.divider.objcpp"},"9":{"name":"meta.inherited-class.objcpp"}},"contentName":"meta.scope.interface.objcpp","end":"((@)end)\\\\b","name":"meta.interface-or-protocol.objcpp","patterns":[{"include":"#interface_innards"}]},"anonymous_pattern_10":{"captures":{"1":{"name":"punctuation.definition.keyword.objcpp"}},"match":"(@)(defs|encode)\\\\b","name":"keyword.other.objcpp"},"anonymous_pattern_11":{"match":"\\\\bid\\\\b","name":"storage.type.id.objcpp"},"anonymous_pattern_12":{"match":"\\\\b(IBOutlet|IBAction|BOOL|SEL|id|unichar|IMP|Class|instancetype)\\\\b","name":"storage.type.objcpp"},"anonymous_pattern_13":{"captures":{"1":{"name":"punctuation.definition.storage.type.objcpp"}},"match":"(@)(class|protocol)\\\\b","name":"storage.type.objcpp"},"anonymous_pattern_14":{"begin":"((@)selector)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.objcpp"},"2":{"name":"punctuation.definition.storage.type.objcpp"},"3":{"name":"punctuation.definition.storage.type.objcpp"}},"contentName":"meta.selector.method-name.objcpp","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.storage.type.objcpp"}},"name":"meta.selector.objcpp","patterns":[{"captures":{"1":{"name":"punctuation.separator.arguments.objcpp"}},"match":"\\\\b(?:[:A-Z_a-z]\\\\w*)+","name":"support.function.any-method.name-of-parameter.objcpp"}]},"anonymous_pattern_15":{"captures":{"1":{"name":"punctuation.definition.storage.modifier.objcpp"}},"match":"(@)(synchronized|public|package|private|protected)\\\\b","name":"storage.modifier.objcpp"},"anonymous_pattern_16":{"match":"\\\\b(YES|NO|Nil|nil)\\\\b","name":"constant.language.objcpp"},"anonymous_pattern_17":{"match":"\\\\bNSApp\\\\b","name":"support.variable.foundation.objcpp"},"anonymous_pattern_18":{"captures":{"1":{"name":"punctuation.whitespace.support.function.cocoa.leopard.objcpp"},"2":{"name":"support.function.cocoa.leopard.objcpp"}},"match":"(\\\\s*)\\\\b(NS(Rect((?:To|From)CGRect)|MakeCollectable|S(tringFromProtocol|ize((?:To|From)CGSize))|Draw((?:Nin|Thre)ePartImage)|P(oint((?:To|From)CGPoint)|rotocolFromString)|EventMaskFromType|Value))\\\\b"},"anonymous_pattern_19":{"captures":{"1":{"name":"punctuation.whitespace.support.function.leading.cocoa.objcpp"},"2":{"name":"support.function.cocoa.objcpp"}},"match":"(\\\\s*)\\\\b(NS(R(ound((?:Down|Up)ToMultipleOfPageSize)|un(CriticalAlertPanel(RelativeToWindow)?|InformationalAlertPanel(RelativeToWindow)?|AlertPanel(RelativeToWindow)?)|e(set((?:Map|Hash)Table)|c(ycleZone|t(Clip(List)?|F(ill(UsingOperation|List(UsingOperation|With(Grays|Colors(UsingOperation)?))?)?|romString))|ordAllocationEvent)|turnAddress|leaseAlertPanel|a(dPixel|l((?:MemoryAvail|locateCollect)able))|gisterServicesProvider)|angeFromString)|Get(SizeAndAlignment|CriticalAlertPanel|InformationalAlertPanel|UncaughtExceptionHandler|FileType(s)?|WindowServerMemory|AlertPanel)|M(i(n([XY])|d([XY]))|ouseInRect|a(p(Remove|Get|Member|Insert((?:If|Known)Absent)?)|ke(R(ect|ange)|Size|Point)|x(Range|[XY])))|B(itsPer((?:Sample|Pixel)FromDepth)|e(stDepth|ep|gin((?:Critical|Informational|)AlertSheet)))|S(ho(uldRetainWithZone|w(sServicesMenuItem|AnimationEffect))|tringFrom(R(ect|ange)|MapTable|S(ize|elector)|HashTable|Class|Point)|izeFromString|e(t(ShowsServicesMenuItem|ZoneName|UncaughtExceptionHandler|FocusRingStyle)|lectorFromString|archPathForDirectoriesInDomains)|wap(Big(ShortToHost|IntToHost|DoubleToHost|FloatToHost|Long((?:|Long)ToHost))|Short|Host(ShortTo(Big|Little)|IntTo(Big|Little)|DoubleTo(Big|Little)|FloatTo(Big|Little)|Long(To(Big|Little)|LongTo(Big|Little)))|Int|Double|Float|L(ittle(ShortToHost|IntToHost|DoubleToHost|FloatToHost|Long((?:|Long)ToHost))|ong(Long)?)))|H(ighlightRect|o(stByteOrder|meDirectory(ForUser)?)|eight|ash(Remove|Get|Insert((?:If|Known)Absent)?)|FSType(CodeFromFileType|OfFile))|N(umberOfColorComponents|ext(MapEnumeratorPair|HashEnumeratorItem))|C(o(n(tainsRect|vert(GlyphsToPackedGlyphs|Swapped((?:Double|Float)ToHost)|Host((?:Double|Float)ToSwapped)))|unt(MapTable|HashTable|Frames|Windows(ForContext)?)|py(M(emoryPages|apTableWithZone)|Bits|HashTableWithZone|Object)|lorSpaceFromDepth|mpare((?:Map|Hash)Tables))|lassFromString|reate(MapTable(WithZone)?|HashTable(WithZone)?|Zone|File((?:name|Contents)PboardType)))|TemporaryDirectory|I(s(ControllerMarker|EmptyRect|FreedObject)|n(setRect|crementExtraRefCount|te(r(sect(sRect|ionR(ect|ange))|faceStyleForKey)|gralRect)))|Zone(Realloc|Malloc|Name|Calloc|Fr(omPointer|ee))|O(penStepRootDirectory|ffsetRect)|D(i(sableScreenUpdates|videRect)|ottedFrameRect|e(c(imal(Round|Multiply|S(tring|ubtract)|Normalize|Co(py|mpa(ct|re))|IsNotANumber|Divide|Power|Add)|rementExtraRefCountWasZero)|faultMallocZone|allocate(MemoryPages|Object))|raw(Gr(oove|ayBezel)|B(itmap|utton)|ColorTiledRects|TiledRects|DarkBezel|W(hiteBezel|indowBackground)|LightBezel))|U(serName|n(ionR(ect|ange)|registerServicesProvider)|pdateDynamicServices)|Java(Bundle(Setup|Cleanup)|Setup(VirtualMachine)?|Needs(ToLoadClasses|VirtualMachine)|ClassesF(orBundle|romPath)|ObjectNamedInPath|ProvidesClasses)|P(oint(InRect|FromString)|erformService|lanarFromDepth|ageSize)|E(n(d((?:Map|Hash)TableEnumeration)|umerate((?:Map|Hash)Table)|ableScreenUpdates)|qual(R(ects|anges)|Sizes|Points)|raseRect|xtraRefCount)|F(ileTypeForHFSTypeCode|ullUserName|r(ee((?:Map|Hash)Table)|ame(Rect(WithWidth(UsingOperation)?)?|Address)))|Wi(ndowList(ForContext)?|dth)|Lo(cationInRange|g(v|PageSize)?)|A(ccessibility(R(oleDescription(ForUIElement)?|aiseBadArgumentException)|Unignored(Children(ForOnlyChild)?|Descendant|Ancestor)|PostNotification|ActionDescription)|pplication(Main|Load)|vailableWindowDepths|ll(MapTable(Values|Keys)|HashTableObjects|ocate(MemoryPages|Collectable|Object)))))\\\\b"},"anonymous_pattern_2":{"begin":"((@)(implementation))\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(?::\\\\s*([A-Za-z][0-9A-Za-z]*))?","captures":{"1":{"name":"storage.type.objcpp"},"2":{"name":"punctuation.definition.storage.type.objcpp"},"4":{"name":"entity.name.type.objcpp"},"5":{"name":"entity.other.inherited-class.objcpp"}},"contentName":"meta.scope.implementation.objcpp","end":"((@)end)\\\\b","name":"meta.implementation.objcpp","patterns":[{"include":"#implementation_innards"}]},"anonymous_pattern_20":{"match":"\\\\bNS(RuleEditor|G(arbageCollector|radient)|MapTable|HashTable|Co(ndition|llectionView(Item)?)|T(oolbarItemGroup|extInputClient|r(eeNode|ackingArea))|InvocationOperation|Operation(Queue)?|D(ictionaryController|ockTile)|P(ointer(Functions|Array)|athC(o(ntrol(Delegate)?|mponentCell)|ell(Delegate)?)|r(intPanelAccessorizing|edicateEditor(RowTemplate)?))|ViewController|FastEnumeration|Animat(ionContext|ablePropertyContainer))\\\\b","name":"support.class.cocoa.leopard.objcpp"},"anonymous_pattern_21":{"match":"\\\\bNS(R(u(nLoop|ler(Marker|View))|e(sponder|cursiveLock|lativeSpecifier)|an((?:dom|ge)Specifier))|G(etCommand|lyph(Generator|Storage|Info)|raphicsContext)|XML(Node|D(ocument|TD(Node)?)|Parser|Element)|M(iddleSpecifier|ov(ie(View)?|eCommand)|utable(S(tring|et)|C(haracterSet|opying)|IndexSet|D(ictionary|ata)|URLRequest|ParagraphStyle|A(ttributedString|rray))|e(ssagePort(NameServer)?|nu(Item(Cell)?|View)?|t(hodSignature|adata(Item|Query(ResultGroup|AttributeValueTuple)?)))|a(ch(BootstrapServer|Port)|trix))|B(itmapImageRep|ox|u(ndle|tton(Cell)?)|ezierPath|rowser(Cell)?)|S(hadow|c(anner|r(ipt(SuiteRegistry|C(o(ercionHandler|mmand(Description)?)|lassDescription)|ObjectSpecifier|ExecutionContext|WhoseTest)|oll(er|View)|een))|t(epper(Cell)?|atus(Bar|Item)|r(ing|eam))|imple(HorizontalTypesetter|CString)|o(cketPort(NameServer)?|und|rtDescriptor)|p(e(cifierTest|ech((?:Recogn|Synthes)izer)|ll(Server|Checker))|litView)|e(cureTextField(Cell)?|t(Command)?|archField(Cell)?|rializer|gmentedC(ontrol|ell))|lider(Cell)?|avePanel)|H(ost|TTP(Cookie(Storage)?|URLResponse)|elpManager)|N(ib(Con((?:|trolCon)nector)|OutletConnector)?|otification(Center|Queue)?|u(ll|mber(Formatter)?)|etService(Browser)?|ameSpecifier)|C(ha(ngeSpelling|racterSet)|o(n(stantString|nection|trol(ler)?|ditionLock)|d(ing|er)|unt(Command|edSet)|pying|lor(Space|P(ick(ing(Custom|Default)|er)|anel)|Well|List)?|m(p((?:ound|arison)Predicate)|boBox(Cell)?))|u(stomImageRep|rsor)|IImageRep|ell|l(ipView|o([ns]eCommand)|assDescription)|a(ched(ImageRep|URLResponse)|lendar(Date)?)|reateCommand)|T(hread|ypesetter|ime(Zone|r)|o(olbar(Item(Validations)?)?|kenField(Cell)?)|ext(Block|Storage|Container|Tab(le(Block)?)?|Input|View|Field(Cell)?|List|Attachment(Cell)?)?|a(sk|b(le(Header(Cell|View)|Column|View)|View(Item)?))|reeController)|I(n(dex(S(pecifier|et)|Path)|put(Manager|S(tream|erv(iceProvider|er(MouseTracker)?)))|vocation)|gnoreMisspelledWords|mage(Rep|Cell|View)?)|O(ut(putStream|lineView)|pen(GL(Context|Pixel(Buffer|Format)|View)|Panel)|bj(CTypeSerializationCallBack|ect(Controller)?))|D(i(st(antObject(Request)?|ributed(NotificationCenter|Lock))|ctionary|rectoryEnumerator)|ocument(Controller)?|e(serializer|cimalNumber(Behaviors|Handler)?|leteCommand)|at(e(Components|Picker(Cell)?|Formatter)?|a)|ra(wer|ggingInfo))|U(ser(InterfaceValidations|Defaults(Controller)?)|RL(Re(sponse|quest)|Handle(Client)?|C(onnection|ache|redential(Storage)?)|Download(Delegate)?|Prot(ocol(Client)?|ectionSpace)|AuthenticationChallenge(Sender)?)?|n((?:iqueIDSpecifi|doManag|archiv)er))|P(ipe|o(sitionalSpecifier|pUpButton(Cell)?|rt(Message|NameServer|Coder)?)|ICTImageRep|ersistentDocument|DFImageRep|a(steboard|nel|ragraphStyle|geLayout)|r(int(Info|er|Operation|Panel)|o(cessInfo|tocolChecker|perty(Specifier|ListSerialization)|gressIndicator|xy)|edicate))|E(numerator|vent|PSImageRep|rror|x(ception|istsCommand|pression))|V(iew(Animation)?|al(idated((?:Toobar|UserInterface)Item)|ue(Transformer)?))|Keyed((?:Una|A)rchiver)|Qui(ckDrawView|tCommand)|F(ile(Manager|Handle|Wrapper)|o(nt(Manager|Descriptor|Panel)?|rm(Cell|atter)))|W(hoseSpecifier|indow(Controller)?|orkspace)|L(o(c(k(ing)?|ale)|gicalTest)|evelIndicator(Cell)?|ayoutManager)|A(ssertionHandler|nimation|ctionCell|ttributedString|utoreleasePool|TSTypesetter|ppl(ication|e(Script|Event(Manager|Descriptor)))|ffineTransform|lert|r(chiver|ray(Controller)?)))\\\\b","name":"support.class.cocoa.objcpp"},"anonymous_pattern_22":{"match":"\\\\bNS(R(oundingMode|ule(Editor(RowType|NestingMode)|rOrientation)|e(questUserAttentionType|lativePosition))|G(lyphInscription|radientDrawingOptions)|XML(NodeKind|D((?:ocumentContent|TDNode)Kind)|ParserError)|M(ultibyteGlyphPacking|apTableOptions)|B(itmapFormat|oxType|ezierPathElement|ackgroundStyle|rowserDropOperation)|S(tr(ing((?:Compare|Drawing|EncodingConversion)Options)|eam(Status|Event))|p(eechBoundary|litViewDividerStyle)|e(archPathD(irectory|omainMask)|gmentS(tyle|witchTracking))|liderType|aveOptions)|H(TTPCookieAcceptPolicy|ashTableOptions)|N(otification(SuspensionBehavior|Coalescing)|umberFormatter(RoundingMode|Behavior|Style|PadPosition)|etService(sError|Options))|C(haracterCollection|o(lor(RenderingIntent|SpaceModel|PanelMode)|mp(oundPredicateType|arisonPredicateModifier))|ellStateValue|al(culationError|endarUnit))|T(ypesetterControlCharacterAction|imeZoneNameStyle|e(stComparisonOperation|xt(Block(Dimension|V(erticalAlignment|alueType)|Layer)|TableLayoutAlgorithm|FieldBezelStyle))|ableView((?:SelectionHighlight|ColumnAutoresizing)Style)|rackingAreaOptions)|I(n(sertionPosition|te(rfaceStyle|ger))|mage(RepLoadStatus|Scaling|CacheMode|FrameStyle|LoadStatus|Alignment))|Ope(nGLPixelFormatAttribute|rationQueuePriority)|Date(Picker(Mode|Style)|Formatter(Behavior|Style))|U(RL(RequestCachePolicy|HandleStatus|C(acheStoragePolicy|redentialPersistence))|Integer)|P(o(stingStyle|int(ingDeviceType|erFunctionsOptions)|pUpArrowPosition)|athStyle|r(int(ing(Orientation|PaginationMode)|erTableStatus|PanelOptions)|opertyList(MutabilityOptions|Format)|edicateOperatorType))|ExpressionType|KeyValue(SetMutationKind|Change)|QTMovieLoopMode|F(indPanel(SubstringMatchType|Action)|o(nt(RenderingMode|FamilyClass)|cusRingPlacement))|W(hoseSubelementIdentifier|ind(ingRule|ow(B(utton|ackingLocation)|SharingType|CollectionBehavior)))|L(ine(MovementDirection|SweepDirection|CapStyle|JoinStyle)|evelIndicatorStyle)|Animation(BlockingMode|Curve))\\\\b","name":"support.type.cocoa.leopard.objcpp"},"anonymous_pattern_23":{"match":"\\\\bC(I(Sampler|Co(ntext|lor)|Image(Accumulator)?|PlugIn(Registration)?|Vector|Kernel|Filter(Generator|Shape)?)|A(Renderer|MediaTiming(Function)?|BasicAnimation|ScrollLayer|Constraint(LayoutManager)?|T(iledLayer|extLayer|rans((?:i|ac)tion))|OpenGLLayer|PropertyAnimation|KeyframeAnimation|Layer|A(nimation(Group)?|ction)))\\\\b","name":"support.class.quartz.objcpp"},"anonymous_pattern_24":{"match":"\\\\bC(G(Float|Point|Size|Rect)|IFormat|AConstraintAttribute)\\\\b","name":"support.type.quartz.objcpp"},"anonymous_pattern_25":{"match":"\\\\bNS(R(ect(Edge)?|ange)|G(lyph(Relation|LayoutMode)?|radientType)|M(odalSession|a(trixMode|p(Table|Enumerator)))|B((?:itmapImageFileTyp|orderTyp|uttonTyp|ezelStyl|ackingStoreTyp|rowserColumnResizingTyp)e)|S(cr(oll(er(Part|Arrow)|ArrowPosition)|eenAuxiliaryOpaque)|tringEncoding|ize|ocketNativeHandle|election(Granularity|Direction|Affinity)|wapped(Double|Float)|aveOperationType)|Ha(sh(Table|Enumerator)|ndler(2)?)|C(o(ntrol(Size|Tint)|mp(ositingOperation|arisonResult))|ell(State|Type|ImagePosition|Attribute))|T(hreadPrivate|ypesetterGlyphInfo|i(ckMarkPosition|tlePosition|meInterval)|o(ol(TipTag|bar((?:Size|Display)Mode))|kenStyle)|IFFCompression|ext(TabType|Alignment)|ab(State|leViewDropOperation|ViewType)|rackingRectTag)|ImageInterpolation|Zone|OpenGL((?:Contex|PixelForma)tAuxiliary)|D(ocumentChangeType|atePickerElementFlags|ra(werState|gOperation))|UsableScrollerParts|P(oint|r(intingPageOrder|ogressIndicator(Style|Th(ickness|readInfo))))|EventType|KeyValueObservingOptions|Fo(nt(SymbolicTraits|TraitMask|Action)|cusRingType)|W(indow(OrderingMode|Depth)|orkspace((?:IconCreation|Launch)Options)|ritingDirection)|L(ineBreakMode|ayout(Status|Direction))|A(nimation(Progress|Effect)|ppl(ication((?:Terminate|Delegate|Print)Reply)|eEventManagerSuspensionID)|ffineTransformStruct|lertStyle))\\\\b","name":"support.type.cocoa.objcpp"},"anonymous_pattern_26":{"match":"\\\\bNS(NotFound|Ordered(Ascending|Descending|Same))\\\\b","name":"support.constant.cocoa.objcpp"},"anonymous_pattern_27":{"match":"\\\\bNS(MenuDidBeginTracking|ViewDidUpdateTrackingAreas)?Notification\\\\b","name":"support.constant.notification.cocoa.leopard.objcpp"},"anonymous_pattern_28":{"match":"\\\\bNS(Menu(Did(RemoveItem|SendAction|ChangeItem|EndTracking|AddItem)|WillSendAction)|S(ystemColorsDidChange|plitView((?:Did|Will)ResizeSubviews))|C(o(nt(extHelpModeDid((?:Dea|A)ctivate)|rolT(intDidChange|extDid(BeginEditing|Change|EndEditing)))|lor((?:PanelColor|List)DidChange)|mboBox(Selection(IsChanging|DidChange)|Will(Dismiss|PopUp)))|lassDescriptionNeededForClass)|T(oolbar((?:DidRemove|WillAdd)Item)|ext(Storage((?:Did|Will)ProcessEditing)|Did(BeginEditing|Change|EndEditing)|View(DidChange(Selection|TypingAttributes)|WillChangeNotifyingTextView))|ableView(Selection(IsChanging|DidChange)|ColumnDid(Resize|Move)))|ImageRepRegistryDidChange|OutlineView(Selection(IsChanging|DidChange)|ColumnDid(Resize|Move)|Item(Did(Collapse|Expand)|Will(Collapse|Expand)))|Drawer(Did(Close|Open)|Will(Close|Open))|PopUpButton((?:Cell|)WillPopUp)|View(GlobalFrameDidChange|BoundsDidChange|F((?:ocus|rame)DidChange))|FontSetChanged|W(indow(Did(Resi(ze|gn(Main|Key))|M(iniaturize|ove)|Become(Main|Key)|ChangeScreen(|Profile)|Deminiaturize|Update|E(ndSheet|xpose))|Will(M(iniaturize|ove)|BeginSheet|Close))|orkspace(SessionDid((?:Resign|Become)Active)|Did(Mount|TerminateApplication|Unmount|PerformFileOperation|Wake|LaunchApplication)|Will(Sleep|Unmount|PowerOff|LaunchApplication)))|A(ntialiasThresholdChanged|ppl(ication(Did(ResignActive|BecomeActive|Hide|ChangeScreenParameters|U(nhide|pdate)|FinishLaunching)|Will(ResignActive|BecomeActive|Hide|Terminate|U(nhide|pdate)|FinishLaunching))|eEventManagerWillProcessFirstEvent)))Notification\\\\b","name":"support.constant.notification.cocoa.objcpp"},"anonymous_pattern_29":{"match":"\\\\bNS(RuleEditor(RowType(Simple|Compound)|NestingMode(Si(ngle|mple)|Compound|List))|GradientDraws((?:BeforeStart|AfterEnd)ingLocation)|M(inusSetExpressionType|a(chPortDeallocate(ReceiveRight|SendRight|None)|pTable(StrongMemory|CopyIn|ZeroingWeakMemory|ObjectPointerPersonality)))|B(oxCustom|undleExecutableArchitecture(X86|I386|PPC(64)?)|etweenPredicateOperatorType|ackgroundStyle(Raised|Dark|L(ight|owered)))|S(tring(DrawingTruncatesLastVisibleLine|EncodingConversion(ExternalRepresentation|AllowLossy))|ubqueryExpressionType|p(e(ech((?:Sentence|Immediate|Word)Boundary)|llingState((?:Grammar|Spelling)Flag))|litViewDividerStyleThi(n|ck))|e(rvice(RequestTimedOutError|M((?:iscellaneous|alformedServiceDictionary)Error)|InvalidPasteboardDataError|ErrorM((?:in|ax)imum)|Application((?:NotFoun|LaunchFaile)dError))|gmentStyle(Round(Rect|ed)|SmallSquare|Capsule|Textured(Rounded|Square)|Automatic)))|H(UDWindowMask|ashTable(StrongMemory|CopyIn|ZeroingWeakMemory|ObjectPointerPersonality))|N(oModeColorPanel|etServiceNoAutoRename)|C(hangeRedone|o(ntainsPredicateOperatorType|l(orRenderingIntent(RelativeColorimetric|Saturation|Default|Perceptual|AbsoluteColorimetric)|lectorDisabledOption))|ellHit(None|ContentArea|TrackableArea|EditableTextArea))|T(imeZoneNameStyle(S(hort(Standard|DaylightSaving)|tandard)|DaylightSaving)|extFieldDatePickerStyle|ableViewSelectionHighlightStyle(Regular|SourceList)|racking(Mouse(Moved|EnteredAndExited)|CursorUpdate|InVisibleRect|EnabledDuringMouseDrag|A(ssumeInside|ctive(In(KeyWindow|ActiveApp)|WhenFirstResponder|Always))))|I(n(tersectSetExpressionType|dexedColorSpaceModel)|mageScale(None|Proportionally((?:|UpOr)Down)|AxesIndependently))|Ope(nGLPFAAllowOfflineRenderers|rationQueue(DefaultMaxConcurrentOperationCount|Priority(High|Normal|Very(High|Low)|Low)))|D(iacriticInsensitiveSearch|ownloadsDirectory)|U(nionSetExpressionType|TF(16((?:BigEndian||LittleEndian)StringEncoding)|32((?:BigEndian||LittleEndian)StringEncoding)))|P(ointerFunctions(Ma((?:chVirtual|lloc)Memory)|Str(ongMemory|uctPersonality)|C(StringPersonality|opyIn)|IntegerPersonality|ZeroingWeakMemory|O(paque(Memory|Personality)|bjectP((?:ointerP|)ersonality)))|at(hStyle(Standard|NavigationBar|PopUp)|ternColorSpaceModel)|rintPanelShows(Scaling|Copies|Orientation|P(a(perSize|ge(Range|SetupAccessory))|review)))|Executable(RuntimeMismatchError|NotLoadableError|ErrorM((?:in|ax)imum)|L((?:ink|oad)Error)|ArchitectureMismatchError)|KeyValueObservingOption(Initial|Prior)|F(i(ndPanelSubstringMatchType(StartsWith|Contains|EndsWith|FullWord)|leRead((?:TooLarge|UnknownStringEncoding)Error))|orcedOrderingSearch)|Wi(ndow(BackingLocation(MainMemory|Default|VideoMemory)|Sharing(Read(Only|Write)|None)|CollectionBehavior(MoveToActiveSpace|CanJoinAllSpaces|Default))|dthInsensitiveSearch)|AggregateExpressionType)\\\\b","name":"support.constant.cocoa.leopard.objcpp"},"anonymous_pattern_3":{"begin":"@\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"include":"#string_escaped_char"},{"match":"%(\\\\d+\\\\$)?[- #'+0]*((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?@","name":"constant.other.placeholder.objcpp"},{"include":"#string_placeholder"}]},"anonymous_pattern_30":{"match":"\\\\bNS(R(GB(ModeColorPanel|ColorSpaceModel)|ight(Mouse(D(own(Mask)?|ragged(Mask)?)|Up(Mask)?)|T(ext((?:Move|Align)ment)|ab(sBezelBorder|StopType))|ArrowFunctionKey)|ound(RectBezelStyle|Bankers|ed((?:Bezel|Token|DisclosureBezel)Style)|Down|Up|Plain|Line((?:Cap|Join)Style))|un((?:Stopped|Continues|Aborted)Response)|e(s(izableWindowMask|et(CursorRectsRunLoopOrdering|FunctionKey))|ce(ssedBezelStyle|iver((?:sCantHandleCommand|Evaluation)ScriptError))|turnTextMovement|doFunctionKey|quiredArgumentsMissingScriptError|l(evancyLevelIndicatorStyle|ative(Before|After))|gular(SquareBezelStyle|ControlSize)|moveTraitFontAction)|a(n(domSubelement|geDateMode)|tingLevelIndicatorStyle|dio(ModeMatrix|Button)))|G(IFFileType|lyph(Below|Inscribe(B(elow|ase)|Over(strike|Below)|Above)|Layout(WithPrevious|A((?:|gains)tAPoint))|A(ttribute(BidiLevel|Soft|Inscribe|Elastic)|bove))|r(ooveBorder|eaterThan(Comparison|OrEqualTo(Comparison|PredicateOperatorType)|PredicateOperatorType)|a(y(ModeColorPanel|ColorSpaceModel)|dient(None|Con(cave(Strong|Weak)|vex(Strong|Weak)))|phiteControlTint)))|XML(N(o(tationDeclarationKind|de(CompactEmptyElement|IsCDATA|OptionsNone|Use((?:Sing|Doub)leQuotes)|Pre(serve(NamespaceOrder|C(haracterReferences|DATA)|DTD|Prefixes|E(ntities|mptyElements)|Quotes|Whitespace|A(ttributeOrder|ll))|ttyPrint)|ExpandEmptyElement))|amespaceKind)|CommentKind|TextKind|InvalidKind|D(ocument(X(MLKind|HTMLKind|Include)|HTMLKind|T(idy(XML|HTML)|extKind)|IncludeContentTypeDeclaration|Validate|Kind)|TDKind)|P(arser(GTRequiredError|XMLDeclNot((?:Start|Finish)edError)|Mi(splaced((?:XMLDeclaration|CDATAEndString)Error)|xedContentDeclNot((?:Start|Finish)edError))|S(t(andaloneValueError|ringNot((?:Start|Clos)edError))|paceRequiredError|eparatorRequiredError)|N(MTOKENRequiredError|o(t(ationNot((?:Start|Finish)edError)|WellBalancedError)|DTDError)|amespaceDeclarationError|AMERequiredError)|C(haracterRef(In((?:DTD|Prolog|Epilog)Error)|AtEOFError)|o(nditionalSectionNot((?:Start|Finish)edError)|mment((?:NotFinished|ContainsDoubleHyphen)Error))|DATANotFinishedError)|TagNameMismatchError|In(ternalError|valid(HexCharacterRefError|C(haracter((?:Ref|InEntity|)Error)|onditionalSectionError)|DecimalCharacterRefError|URIError|Encoding((?:Name|)Error)))|OutOfMemoryError|D((?:ocumentStart|elegateAbortedParse|OCTYPEDeclNotFinished)Error)|U(RI((?:Required|Fragment)Error)|n((?:declaredEntity|parsedEntity|knownEncoding|finishedTag)Error))|P(CDATARequiredError|ublicIdentifierRequiredError|arsedEntityRef(MissingSemiError|NoNameError|In(Internal((?:Subset|)Error)|PrologError|EpilogError)|AtEOFError)|r(ocessingInstructionNot((?:Start|Finish)edError)|ematureDocumentEndError))|E(n(codingNotSupportedError|tity(Ref(In((?:DTD|Prolog|Epilog)Error)|erence((?:MissingSemi|WithoutName)Error)|LoopError|AtEOFError)|BoundaryError|Not((?:Start|Finish)edError)|Is((?:Parameter|External)Error)|ValueRequiredError))|qualExpectedError|lementContentDeclNot((?:Start|Finish)edError)|xt(ernalS((?:tandaloneEntity|ubsetNotFinished)Error)|raContentError)|mptyDocumentError)|L(iteralNot((?:Start|Finish)edError)|T((?:|Slash)RequiredError)|essThanSymbolInAttributeError)|Attribute(RedefinedError|HasNoValueError|Not((?:Start|Finish)edError)|ListNot((?:Start|Finish)edError)))|rocessingInstructionKind)|E(ntity(GeneralKind|DeclarationKind|UnparsedKind|P(ar((?:sed|ameter)Kind)|redefined))|lement(Declaration(MixedKind|UndefinedKind|E((?:lement|mpty)Kind)|Kind|AnyKind)|Kind))|Attribute(N(MToken(s?Kind)|otationKind)|CDATAKind|ID(Ref(s?Kind)|Kind)|DeclarationKind|En(tit((?:y|ies)Kind)|umerationKind)|Kind))|M(i(n(XEdge|iaturizableWindowMask|YEdge|uteCalendarUnit)|terLineJoinStyle|ddleSubelement|xedState)|o(nthCalendarUnit|deSwitchFunctionKey|use(Moved(Mask)?|E(ntered(Mask)?|ventSubtype|xited(Mask)?))|veToBezierPathElement|mentary(ChangeButton|Push((?:|In)Button)|Light(Button)?))|enuFunctionKey|a(c(intoshInterfaceStyle|OSRomanStringEncoding)|tchesPredicateOperatorType|ppedRead|x([XY]Edge))|ACHOperatingSystem)|B(MPFileType|o(ttomTabsBezelBorder|ldFontMask|rderlessWindowMask|x(Se(condary|parator)|OldStyle|Primary))|uttLineCapStyle|e(zelBorder|velLineJoinStyle|low(Bottom|Top)|gin(sWith(Comparison|PredicateOperatorType)|FunctionKey))|lueControlTint|ack(spaceCharacter|tabTextMovement|ingStore((?:Retain|Buffer|Nonretain)ed)|TabCharacter|wardsSearch|groundTab)|r(owser((?:No|User|Auto)ColumnResizing)|eakFunctionKey))|S(h(ift(JISStringEncoding|KeyMask)|ow((?:Control|Invisible)Glyphs)|adowlessSquareBezelStyle)|y(s(ReqFunctionKey|tem(D(omainMask|efined(Mask)?)|FunctionKey))|mbolStringEncoding)|c(a(nnedOption|le(None|ToFit|Proportionally))|r(oll(er(NoPart|Increment(Page|Line|Arrow)|Decrement(Page|Line|Arrow)|Knob(Slot)?|Arrows(M((?:in|ax)End)|None|DefaultSetting))|Wheel(Mask)?|LockFunctionKey)|eenChangedEventType))|t(opFunctionKey|r(ingDrawing(OneShot|DisableScreenFontSubstitution|Uses(DeviceMetrics|FontLeading|LineFragmentOrigin))|eam(Status(Reading|NotOpen|Closed|Open(ing)?|Error|Writing|AtEnd)|Event(Has((?:Bytes|Space)Available)|None|OpenCompleted|E((?:ndEncounte|rrorOccur)red)))))|i(ngle(DateMode|UnderlineStyle)|ze((?:Down|Up)FontAction))|olarisOperatingSystem|unOSOperatingSystem|pecialPageOrder|e(condCalendarUnit|lect(By(Character|Paragraph|Word)|i(ng(Next|Previous)|onAffinity((?:Down|Up)stream))|edTab|FunctionKey)|gmentSwitchTracking(Momentary|Select(One|Any)))|quareLineCapStyle|witchButton|ave(ToOperation|Op(tions(Yes|No|Ask)|eration)|AsOperation)|mall(SquareBezelStyle|C(ontrolSize|apsFontMask)|IconButtonBezelStyle))|H(ighlightModeMatrix|SBModeColorPanel|o(ur(Minute((?:Second|)DatePickerElementFlag)|CalendarUnit)|rizontalRuler|meFunctionKey)|TTPCookieAcceptPolicy(Never|OnlyFromMainDocumentDomain|Always)|e(lp(ButtonBezelStyle|KeyMask|FunctionKey)|avierFontAction)|PUXOperatingSystem)|Year(MonthDa((?:yDa|)tePickerElementFlag)|CalendarUnit)|N(o(n(StandardCharacterSetFontMask|ZeroWindingRule|activatingPanelMask|LossyASCIIStringEncoding)|Border|t(ification(SuspensionBehavior(Hold|Coalesce|D(eliverImmediately|rop))|NoCoalescing|CoalescingOn(Sender|Name)|DeliverImmediately|PostToAllSessions)|PredicateType|EqualToPredicateOperatorType)|S(cr(iptError|ollerParts)|ubelement|pecifierError)|CellMask|T(itle|opLevelContainersSpecifierError|abs((?:Bezel|No|Line)Border))|I(nterfaceStyle|mage)|UnderlineStyle|FontChangeAction)|u(ll(Glyph|CellType)|m(eric(Search|PadKeyMask)|berFormatter(Round(Half(Down|Up|Even)|Ceiling|Down|Up|Floor)|Behavior(10|Default)|S((?:cientific|pellOut)Style)|NoStyle|CurrencyStyle|DecimalStyle|P(ercentStyle|ad(Before((?:Suf|Pre)fix)|After((?:Suf|Pre)fix))))))|e(t(Services(BadArgumentError|NotFoundError|C((?:ollision|ancelled)Error)|TimeoutError|InvalidError|UnknownError|ActivityInProgress)|workDomainMask)|wlineCharacter|xt(StepInterfaceStyle|FunctionKey))|EXTSTEPStringEncoding|a(t(iveShortGlyphPacking|uralTextAlignment)|rrowFontMask))|C(hange(ReadOtherContents|GrayCell(Mask)?|BackgroundCell(Mask)?|Cleared|Done|Undone|Autosaved)|MYK(ModeColorPanel|ColorSpaceModel)|ircular(BezelStyle|Slider)|o(n(stantValueExpressionType|t(inuousCapacityLevelIndicatorStyle|entsCellMask|ain(sComparison|erSpecifierError)|rol(Glyph|KeyMask))|densedFontMask)|lor(Panel(RGBModeMask|GrayModeMask|HSBModeMask|C((?:MYK|olorList|ustomPalette|rayon)ModeMask)|WheelModeMask|AllModesMask)|ListModeColorPanel)|reServiceDirectory|m(p(osite(XOR|Source(In|O(ut|ver)|Atop)|Highlight|C(opy|lear)|Destination(In|O(ut|ver)|Atop)|Plus(Darker|Lighter))|ressedFontMask)|mandKeyMask))|u(stom(SelectorPredicateOperatorType|PaletteModeColorPanel)|r(sor(Update(Mask)?|PointingDevice)|veToBezierPathElement))|e(nterT(extAlignment|abStopType)|ll(State|H(ighlighted|as(Image(Horizontal|OnLeftOrBottom)|OverlappingImage))|ChangesContents|Is(Bordered|InsetButton)|Disabled|Editable|LightsBy(Gray|Background|Contents)|AllowsMixedState))|l(ipPagination|o(s(ePathBezierPathElement|ableWindowMask)|ckAndCalendarDatePickerStyle)|ear(ControlTint|DisplayFunctionKey|LineFunctionKey))|a(seInsensitive(Search|PredicateOption)|n(notCreateScriptCommandError|cel(Button|TextMovement))|chesDirectory|lculation(NoError|Overflow|DivideByZero|Underflow|LossOfPrecision)|rriageReturnCharacter)|r(itical(Request|AlertStyle)|ayonModeColorPanel))|T(hick((?:|er)SquareBezelStyle)|ypesetter(Behavior|HorizontalTabAction|ContainerBreakAction|ZeroAdvancementAction|OriginalBehavior|ParagraphBreakAction|WhitespaceAction|L(ineBreakAction|atestBehavior))|i(ckMark(Right|Below|Left|Above)|tledWindowMask|meZoneDatePickerElementFlag)|o(olbarItemVisibilityPriority(Standard|High|User|Low)|pTabsBezelBorder|ggleButton)|IFF(Compression(N(one|EXT)|CCITTFAX([34])|OldJPEG|JPEG|PackBits|LZW)|FileType)|e(rminate(Now|Cancel|Later)|xt(Read(InapplicableDocumentTypeError|WriteErrorM((?:in|ax)imum))|Block(M(i(nimum(Height|Width)|ddleAlignment)|a(rgin|ximum(Height|Width)))|B(o(ttomAlignment|rder)|aselineAlignment)|Height|TopAlignment|P(ercentageValueType|adding)|Width|AbsoluteValueType)|StorageEdited(Characters|Attributes)|CellType|ured(RoundedBezelStyle|BackgroundWindowMask|SquareBezelStyle)|Table((?:Fixed|Automatic)LayoutAlgorithm)|Field(RoundedBezel|SquareBezel|AndStepperDatePickerStyle)|WriteInapplicableDocumentTypeError|ListPrependEnclosingMarker))|woByteGlyphPacking|ab(Character|TextMovement|le(tP(oint(Mask|EventSubtype)?|roximity(Mask|EventSubtype)?)|Column(NoResizing|UserResizingMask|AutoresizingMask)|View(ReverseSequentialColumnAutoresizingStyle|GridNone|S(olid((?:Horizont|Vertic)alGridLineMask)|equentialColumnAutoresizingStyle)|NoColumnAutoresizing|UniformColumnAutoresizingStyle|FirstColumnOnlyAutoresizingStyle|LastColumnOnlyAutoresizingStyle)))|rackModeMatrix)|I(n(sert((?:Char||Line)FunctionKey)|t(Type|ernalS((?:cript|pecifier)Error))|dexSubelement|validIndexSpecifierError|formational(Request|AlertStyle)|PredicateOperatorType)|talicFontMask|SO(2022JPStringEncoding|Latin([12]StringEncoding))|dentityMappingCharacterCollection|llegalTextMovement|mage(R(ight|ep(MatchesDevice|LoadStatus(ReadingHeader|Completed|InvalidData|Un(expectedEOF|knownType)|WillNeedAllData)))|Below|C(ellType|ache(BySize|Never|Default|Always))|Interpolation(High|None|Default|Low)|O(nly|verlaps)|Frame(Gr(oove|ayBezel)|Button|None|Photo)|L(oadStatus(ReadError|C(ompleted|ancelled)|InvalidData|UnexpectedEOF)|eft)|A(lign(Right|Bottom(Right|Left)?|Center|Top(Right|Left)?|Left)|bove)))|O(n(State|eByteGlyphPacking|OffButton|lyScrollerArrows)|ther(Mouse(D(own(Mask)?|ragged(Mask)?)|Up(Mask)?)|TextMovement)|SF1OperatingSystem|pe(n(GL(GO(Re(setLibrary|tainRenderers)|ClearFormatCache|FormatCacheSize)|PFA(R(obust|endererID)|M(inimumPolicy|ulti(sample|Screen)|PSafe|aximumPolicy)|BackingStore|S(creenMask|te(ncilSize|reo)|ingleRenderer|upersample|ample(s|Buffers|Alpha))|NoRecovery|C(o(lor(Size|Float)|mpliant)|losestPolicy)|OffScreen|D(oubleBuffer|epthSize)|PixelBuffer|VirtualScreenCount|FullScreen|Window|A(cc(umSize|elerated)|ux(Buffers|DepthStencil)|l(phaSize|lRenderers))))|StepUnicodeReservedBase)|rationNotSupportedForKeyS((?:cript|pecifier)Error))|ffState|KButton|rPredicateType|bjC(B(itfield|oolType)|S(hortType|tr((?:ing|uct)Type)|electorType)|NoType|CharType|ObjectType|DoubleType|UnionType|PointerType|VoidType|FloatType|Long((?:|long)Type)|ArrayType))|D(i(s(c((?:losureBezel|reteCapacityLevelIndicator)Style)|playWindowRunLoopOrdering)|acriticInsensitivePredicateOption|rect(Selection|PredicateModifier))|o(c(ModalWindowMask|ument((?:|ation)Directory))|ubleType|wn(TextMovement|ArrowFunctionKey))|e(s(cendingPageOrder|ktopDirectory)|cimalTabStopType|v(ice(NColorSpaceModel|IndependentModifierFlagsMask)|eloper((?:|Application)Directory))|fault(ControlTint|TokenStyle)|lete(Char(acter|FunctionKey)|FunctionKey|LineFunctionKey)|moApplicationDirectory)|a(yCalendarUnit|teFormatter(MediumStyle|Behavior(10|Default)|ShortStyle|NoStyle|FullStyle|LongStyle))|ra(wer(Clos((?:ing|ed)State)|Open((?:ing|)State))|gOperation(Generic|Move|None|Copy|Delete|Private|Every|Link|All)))|U(ser(CancelledError|D(irectory|omainMask)|FunctionKey)|RL(Handle(NotLoaded|Load(Succeeded|InProgress|Failed))|CredentialPersistence(None|Permanent|ForSession))|n(scaledWindowMask|cachedRead|i(codeStringEncoding|talicFontMask|fiedTitleAndToolbarWindowMask)|d(o(CloseGroupingRunLoopOrdering|FunctionKey)|e(finedDateComponent|rline(Style(Single|None|Thick|Double)|Pattern(Solid|D(ot|ash(Dot(Dot)?)?)))))|known(ColorSpaceModel|P(ointingDevice|ageOrder)|KeyS((?:cript|pecifier)Error))|boldFontMask)|tilityWindowMask|TF8StringEncoding|p(dateWindowsRunLoopOrdering|TextMovement|ArrowFunctionKey))|J(ustifiedTextAlignment|PEG((?:2000|)FileType)|apaneseEUC((?:GlyphPack|StringEncod)ing))|P(o(s(t(Now|erFontMask|WhenIdle|ASAP)|iti(on(Replace|Be(fore|ginning)|End|After)|ve((?:Int|Double|Float)Type)))|pUp(NoArrow|ArrowAt(Bottom|Center))|werOffEventType|rtraitOrientation)|NGFileType|ush(InCell(Mask)?|OnPushOffButton)|e(n(TipMask|UpperSideMask|PointingDevice|LowerSideMask)|riodic(Mask)?)|P(S(caleField|tatus(Title|Field)|aveButton)|N(ote(Title|Field)|ame(Title|Field))|CopiesField|TitleField|ImageButton|OptionsButton|P(a(perFeedButton|ge(Range(To|From)|ChoiceMatrix))|reviewButton)|LayoutButton)|lainTextTokenStyle|a(useFunctionKey|ragraphSeparatorCharacter|ge((?:Down|Up)FunctionKey))|r(int(ing(ReplyLater|Success|Cancelled|Failure)|ScreenFunctionKey|erTable(NotFound|OK|Error)|FunctionKey)|o(p(ertyList(XMLFormat|MutableContainers(AndLeaves)?|BinaryFormat|Immutable|OpenStepFormat)|rietaryStringEncoding)|gressIndicator(BarStyle|SpinningStyle|Preferred((?:Small||Large|Aqua)Thickness)))|e(ssedTab|vFunctionKey))|L(HeightForm|CancelButton|TitleField|ImageButton|O(KButton|rientationMatrix)|UnitsButton|PaperNameButton|WidthForm))|E(n(terCharacter|d(sWith(Comparison|PredicateOperatorType)|FunctionKey))|v(e(nOddWindingRule|rySubelement)|aluatedObjectExpressionType)|qualTo(Comparison|PredicateOperatorType)|ra(serPointingDevice|CalendarUnit|DatePickerElementFlag)|x(clude(10|QuickDrawElementsIconCreationOption)|pandedFontMask|ecuteFunctionKey))|V(i(ew(M(in([XY]Margin)|ax([XY]Margin))|HeightSizable|NotSizable|WidthSizable)|aPanelFontAction)|erticalRuler|a(lidationErrorM((?:in|ax)imum)|riableExpressionType))|Key(SpecifierEvaluationScriptError|Down(Mask)?|Up(Mask)?|PathExpressionType|Value(MinusSetMutation|SetSetMutation|Change(Re(placement|moval)|Setting|Insertion)|IntersectSetMutation|ObservingOption(New|Old)|UnionSetMutation|ValidationError))|QTMovie(NormalPlayback|Looping((?:BackAndForth|)Playback))|F(1((?:[1-4789]|5?|[06])FunctionKey)|7FunctionKey|i(nd(PanelAction(Replace(A(ndFind|ll(InSelection)?))?|S(howFindPanel|e(tFindString|lectAll(InSelection)?))|Next|Previous)|FunctionKey)|tPagination|le(Read(No((?:SuchFile|Permission)Error)|CorruptFileError|In((?:validFileName|applicableStringEncoding)Error)|Un((?:supportedScheme|known)Error))|HandlingPanel((?:Cancel|OK)Button)|NoSuchFileError|ErrorM((?:in|ax)imum)|Write(NoPermissionError|In((?:validFileName|applicableStringEncoding)Error)|OutOfSpaceError|Un((?:supportedScheme|known)Error))|LockingError)|xedPitchFontMask)|2((?:[1-4789]|5?|[06])FunctionKey)|o(nt(Mo(noSpaceTrait|dernSerifsClass)|BoldTrait|S((?:ymbolic|cripts|labSerifs|ansSerif)Class)|C(o(ndensedTrait|llectionApplicationOnlyMask)|larendonSerifsClass)|TransitionalSerifsClass|I(ntegerAdvancementsRenderingMode|talicTrait)|O((?:ldStyleSerif|rnamental)sClass)|DefaultRenderingMode|U(nknownClass|IOptimizedTrait)|Panel(S(hadowEffectModeMask|t((?:andardModes|rikethroughEffectMode)Mask)|izeModeMask)|CollectionModeMask|TextColorEffectModeMask|DocumentColorEffectModeMask|UnderlineEffectModeMask|FaceModeMask|All((?:Modes|EffectsMode)Mask))|ExpandedTrait|VerticalTrait|F(amilyClassMask|reeformSerifsClass)|Antialiased((?:|IntegerAdvancements)RenderingMode))|cusRing(Below|Type(None|Default|Exterior)|Only|Above)|urByteGlyphPacking|rm(attingError(M((?:in|ax)imum))?|FeedCharacter))|8FunctionKey|unction(ExpressionType|KeyMask)|3((?:[1-4]|5?|0)FunctionKey)|9FunctionKey|4FunctionKey|P(RevertButton|S(ize(Title|Field)|etButton)|CurrentField|Preview(Button|Field))|l(oat(ingPointSamplesBitmapFormat|Type)|agsChanged(Mask)?)|axButton|5FunctionKey|6FunctionKey)|W(heelModeColorPanel|indow(s(NTOperatingSystem|CP125([0-4]StringEncoding)|95(InterfaceStyle|OperatingSystem))|M(iniaturizeButton|ovedEventType)|Below|CloseButton|ToolbarButton|ZoomButton|Out|DocumentIconButton|ExposedEventType|Above)|orkspaceLaunch(NewInstance|InhibitingBackgroundOnly|Default|PreferringClassic|WithoutA(ctivation|ddingToRecents)|A(sync|nd(Hide(Others)?|Print)|llowingClassicStartup))|eek(day((?:|Ordinal)CalendarUnit)|CalendarUnit)|a(ntsBidiLevels|rningAlertStyle)|r(itingDirection(RightToLeft|Natural|LeftToRight)|apCalendarComponents))|L(i(stModeMatrix|ne(Moves(Right|Down|Up|Left)|B(order|reakBy(C((?:harWra|li)pping)|Truncating(Middle|Head|Tail)|WordWrapping))|S(eparatorCharacter|weep(Right|Down|Up|Left))|ToBezierPathElement|DoesntMove|arSlider)|teralSearch|kePredicateOperatorType|ghterFontAction|braryDirectory)|ocalDomainMask|e(ssThan(Comparison|OrEqualTo(Comparison|PredicateOperatorType)|PredicateOperatorType)|ft(Mouse(D(own(Mask)?|ragged(Mask)?)|Up(Mask)?)|T(ext((?:Move|Align)ment)|ab(sBezelBorder|StopType))|ArrowFunctionKey))|a(yout(RightToLeft|NotDone|CantFit|OutOfGlyphs|Done|LeftToRight)|ndscapeOrientation)|ABColorSpaceModel)|A(sc(iiWithDoubleByteEUCGlyphPacking|endingPageOrder)|n(y(Type|PredicateModifier|EventMask)|choredSearch|imation(Blocking|Nonblocking(Threaded)?|E(ffect(DisappearingItemDefault|Poof)|ase(In(Out)?|Out))|Linear)|dPredicateType)|t(Bottom|tachmentCharacter|omicWrite|Top)|SCIIStringEncoding|d(obe(GB1CharacterCollection|CNS1CharacterCollection|Japan([12]CharacterCollection)|Korea1CharacterCollection)|dTraitFontAction|minApplicationDirectory)|uto((?:saveOper|Pagin)ation)|pp(lication(SupportDirectory|D(irectory|e(fined(Mask)?|legateReply(Success|Cancel|Failure)|activatedEventType))|ActivatedEventType)|KitDefined(Mask)?)|l(ternateKeyMask|pha(ShiftKeyMask|NonpremultipliedBitmapFormat|FirstBitmapFormat)|ert((?:SecondButton|ThirdButton|Other|Default|Error|FirstButton|Alternate)Return)|l(ScrollerParts|DomainsMask|PredicateModifier|LibrariesDirectory|ApplicationsDirectory))|rgument((?:sWrong|Evaluation)ScriptError)|bove(Bottom|Top)|WTEventType))\\\\b","name":"support.constant.cocoa.objcpp"},"anonymous_pattern_4":{"begin":"\\\\b(id)\\\\s*(?=<)","beginCaptures":{"1":{"name":"storage.type.objcpp"}},"end":"(?<=>)","name":"meta.id-with-protocol.objcpp","patterns":[{"include":"#protocol_list"}]},"anonymous_pattern_5":{"match":"\\\\b(NS_(?:DURING|HANDLER|ENDHANDLER))\\\\b","name":"keyword.control.macro.objcpp"},"anonymous_pattern_7":{"captures":{"1":{"name":"punctuation.definition.keyword.objcpp"}},"match":"(@)(try|catch|finally|throw)\\\\b","name":"keyword.control.exception.objcpp"},"anonymous_pattern_8":{"captures":{"1":{"name":"punctuation.definition.keyword.objcpp"}},"match":"(@)(synchronized)\\\\b","name":"keyword.control.synchronize.objcpp"},"anonymous_pattern_9":{"captures":{"1":{"name":"punctuation.definition.keyword.objcpp"}},"match":"(@)(required|optional)\\\\b","name":"keyword.control.protocol-specification.objcpp"},"apple_foundation_functional_macros":{"begin":"\\\\b(API_AVAILABLE|API_DEPRECATED|API_UNAVAILABLE|NS_AVAILABLE|NS_AVAILABLE_MAC|NS_AVAILABLE_IOS|NS_DEPRECATED|NS_DEPRECATED_MAC|NS_DEPRECATED_IOS|NS_SWIFT_NAME)\\\\s+{0,1}(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.preprocessor.apple-foundation.objcpp"},"2":{"name":"punctuation.section.macro.arguments.begin.bracket.round.apple-foundation.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.macro.arguments.end.bracket.round.apple-foundation.objcpp"}},"name":"meta.preprocessor.macro.callable.apple-foundation.objcpp","patterns":[{"include":"#c_lang"}]},"bracketed_content":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.objcpp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.scope.end.objcpp"}},"name":"meta.bracketed.objcpp","patterns":[{"begin":"(?=predicateWithFormat:)(?<=NSPredicate )(predicateWithFormat:)","beginCaptures":{"1":{"name":"support.function.any-method.objcpp"},"2":{"name":"punctuation.separator.arguments.objcpp"}},"end":"(?=])","name":"meta.function-call.predicate.objcpp","patterns":[{"captures":{"1":{"name":"punctuation.separator.arguments.objcpp"}},"match":"\\\\bargument(Array|s)(:)","name":"support.function.any-method.name-of-parameter.objcpp"},{"captures":{"1":{"name":"punctuation.separator.arguments.objcpp"}},"match":"\\\\b\\\\w+(:)","name":"invalid.illegal.unknown-method.objcpp"},{"begin":"@\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"match":"\\\\b(AND|OR|NOT|IN)\\\\b","name":"keyword.operator.logical.predicate.cocoa.objcpp"},{"match":"\\\\b(ALL|ANY|SOME|NONE)\\\\b","name":"constant.language.predicate.cocoa.objcpp"},{"match":"\\\\b(NULL|NIL|SELF|TRUE|YES|FALSE|NO|FIRST|LAST|SIZE)\\\\b","name":"constant.language.predicate.cocoa.objcpp"},{"match":"\\\\b(MATCHES|CONTAINS|BEGINSWITH|ENDSWITH|BETWEEN)\\\\b","name":"keyword.operator.comparison.predicate.cocoa.objcpp"},{"match":"\\\\bC(ASEINSENSITIVE|I)\\\\b","name":"keyword.other.modifier.predicate.cocoa.objcpp"},{"match":"\\\\b(ANYKEY|SUBQUERY|CAST|TRUEPREDICATE|FALSEPREDICATE)\\\\b","name":"keyword.other.predicate.cocoa.objcpp"},{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnrtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x[0-9A-Za-z]+)","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.objcpp"}]},{"include":"#special_variables"},{"include":"#c_functions"},{"include":"$base"}]},{"begin":"(?=\\\\w)(?<=[]\\")\\\\w] )(\\\\w+(?:(:)|(?=])))","beginCaptures":{"1":{"name":"support.function.any-method.objcpp"},"2":{"name":"punctuation.separator.arguments.objcpp"}},"end":"(?=])","name":"meta.function-call.objcpp","patterns":[{"captures":{"1":{"name":"punctuation.separator.arguments.objcpp"}},"match":"\\\\b\\\\w+(:)","name":"support.function.any-method.name-of-parameter.objcpp"},{"include":"#special_variables"},{"include":"#c_functions"},{"include":"$base"}]},{"include":"#special_variables"},{"include":"#c_functions"},{"include":"$self"}]},"c_functions":{"patterns":[{"captures":{"1":{"name":"punctuation.whitespace.support.function.leading.objcpp"},"2":{"name":"support.function.C99.objcpp"}},"match":"(\\\\s*)\\\\b(hypot([fl])?|s(scanf|ystem|nprintf|ca(nf|lb(n([fl])?|ln([fl])?))|i(n(h([fl])?|[fl])?|gn(al|bit))|tr(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|[fk]|l([dl])?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(jmp|vbuf|locale|buf)|qrt([fl])?|w(scanf|printf)|rand)|n(e(arbyint([fl])?|xt(toward([fl])?|after([fl])?))|an([fl])?)|c(s(in(h([fl])?|[fl])?|qrt([fl])?)|cos(h(f)?|[fl])?|imag([fl])?|t(ime|an(h([fl])?|[fl])?)|o(s(h([fl])?|[fl])?|nj([fl])?|pysign([fl])?)|p(ow([fl])?|roj([fl])?)|e(il([fl])?|xp([fl])?)|l(o(ck|g([fl])?)|earerr)|a(sin(h([fl])?|[fl])?|cos(h([fl])?|[fl])?|tan(h([fl])?|[fl])?|lloc|rg([fl])?|bs([fl])?)|real([fl])?|brt([fl])?)|t(ime|o(upper|lower)|an(h([fl])?|[fl])?|runc([fl])?|gamma([fl])?|mp(nam|file))|i(s(space|n(ormal|an)|cntrl|inf|digit|u(nordered|pper)|p(unct|rint)|finite|w(space|c(ntrl|type)|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit|blank)|l(ower|ess(equal|greater)?)|al(num|pha)|gr(eater(equal)?|aph)|xdigit|blank)|logb([fl])?|max(div|abs))|di(v|fftime)|_Exit|unget(w??c)|p(ow([fl])?|ut(s|c(har)?|wc(har)?)|error|rintf)|e(rf(c([fl])?|[fl])?|x(it|p(2([fl])?|[fl]|m1([fl])?)?))|v(s(scanf|nprintf|canf|printf|w(scanf|printf))|printf|f(scanf|printf|w(scanf|printf))|w(scanf|printf)|a_(start|copy|end|arg))|qsort|f(s(canf|e(tpos|ek))|close|tell|open|dim([fl])?|p(classify|ut([cs]|w([cs]))|rintf)|e(holdexcept|set(e(nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(aiseexcept|ror)|get(e(nv|xceptflag)|round))|flush|w(scanf|ide|printf|rite)|loor([fl])?|abs([fl])?|get([cs]|pos|w([cs]))|re(open|e|ad|xp([fl])?)|m(in([fl])?|od([fl])?|a([fl]|x([fl])?)?))|l(d(iv|exp([fl])?)|o(ngjmp|cal(time|econv)|g(1(p([fl])?|0([fl])?)|2([fl])?|[fl]|b([fl])?)?)|abs|l(div|abs|r(int([fl])?|ound([fl])?))|r(int([fl])?|ound([fl])?)|gamma([fl])?)|w(scanf|c(s(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|[fk]|l([dl])?|mbs)|pbrk|ftime|len|r(chr|tombs)|xfrm)|to(m??b)|rtomb)|printf|mem(set|c(hr|py|mp)|move))|a(s(sert|ctime|in(h([fl])?|[fl])?)|cos(h([fl])?|[fl])?|t(o([fi]|l(l)?)|exit|an(h([fl])?|2([fl])?|[fl])?)|b(s|ort))|g(et(s|c(har)?|env|wc(har)?)|mtime)|r(int([fl])?|ound([fl])?|e(name|alloc|wind|m(ove|quo([fl])?|ainder([fl])?))|a(nd|ise))|b(search|towc)|m(odf([fl])?|em(set|c(hr|py|mp)|move)|ktime|alloc|b(s(init|towcs|rtowcs)|towc|len|r(towc|len))))\\\\b"},{"captures":{"1":{"name":"punctuation.whitespace.function-call.leading.objcpp"},"2":{"name":"support.function.any-method.objcpp"},"3":{"name":"punctuation.definition.parameters.objcpp"}},"match":"(?:(?=\\\\s)(?:(?<=else|new|return)|(?<!\\\\w))(\\\\s+))?\\\\b((?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\\\s*\\\\()(?:(?!NS)[A-Z_a-z][0-9A-Z_a-z]*+\\\\b|::)++)\\\\s*(\\\\()","name":"meta.function-call.objcpp"}]},"c_lang":{"patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-conditional"},{"include":"#comments"},{"include":"#switch_statement"},{"match":"\\\\b(break|continue|do|else|for|goto|if|_Pragma|return|while)\\\\b","name":"keyword.control.objcpp"},{"include":"#storage_types"},{"match":"typedef","name":"keyword.other.typedef.objcpp"},{"match":"\\\\bin\\\\b","name":"keyword.other.in.objcpp"},{"match":"\\\\b(const|extern|register|restrict|static|volatile|inline|__block)\\\\b","name":"storage.modifier.objcpp"},{"match":"\\\\bk[A-Z]\\\\w*\\\\b","name":"constant.other.variable.mac-classic.objcpp"},{"match":"\\\\bg[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.global.mac-classic.objcpp"},{"match":"\\\\bs[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.static.mac-classic.objcpp"},{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.objcpp"},{"include":"#operators"},{"include":"#numbers"},{"include":"#strings"},{"include":"#special_variables"},{"begin":"^\\\\s*((#)\\\\s*define)\\\\s+((?<id>[$A-Z_a-z][$\\\\w]*))(?:(\\\\()(\\\\s*\\\\g<id>\\\\s*((,)\\\\s*\\\\g<id>\\\\s*)*(?:\\\\.\\\\.\\\\.)?)(\\\\)))?","beginCaptures":{"1":{"name":"keyword.control.directive.define.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"},"3":{"name":"entity.name.function.preprocessor.objcpp"},"5":{"name":"punctuation.definition.parameters.begin.objcpp"},"6":{"name":"variable.parameter.preprocessor.objcpp"},"8":{"name":"punctuation.separator.parameters.objcpp"},"9":{"name":"punctuation.definition.parameters.end.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.macro.objcpp","patterns":[{"include":"#preprocessor-rule-define-line-contents"}]},{"begin":"^\\\\s*((#)\\\\s*(error|warning))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.diagnostic.$3.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.diagnostic.objcpp","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.single.objcpp","patterns":[{"include":"#line_continuation_character"}]},{"begin":"[^\\"']","end":"(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"string.unquoted.single.objcpp","patterns":[{"include":"#line_continuation_character"},{"include":"#comments"}]}]},{"begin":"^\\\\s*((#)\\\\s*(i(?:nclude(?:_next)?|mport)))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.$3.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.include.objcpp","patterns":[{"include":"#line_continuation_character"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.include.objcpp"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.other.lt-gt.include.objcpp"}]},{"include":"#pragma-mark"},{"begin":"^\\\\s*((#)\\\\s*line)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.line.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},{"begin":"^\\\\s*((#)\\\\s*undef)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.undef.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.objcpp"},{"include":"#line_continuation_character"}]},{"begin":"^\\\\s*((#)\\\\s*pragma)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.pragma.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.pragma.objcpp","patterns":[{"include":"#strings"},{"match":"[$A-Z_a-z][-$\\\\w]*","name":"entity.other.attribute-name.pragma.preprocessor.objcpp"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},{"match":"\\\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\\\b","name":"support.type.sys-types.objcpp"},{"match":"\\\\b(pthread_(?:attr_|cond_|condattr_|mutex_|mutexattr_|once_|rwlock_|rwlockattr_||key_)t)\\\\b","name":"support.type.pthread.objcpp"},{"match":"\\\\b((?:int8|int16|int32|int64|uint8|uint16|uint32|uint64|int_least8|int_least16|int_least32|int_least64|uint_least8|uint_least16|uint_least32|uint_least64|int_fast8|int_fast16|int_fast32|int_fast64|uint_fast8|uint_fast16|uint_fast32|uint_fast64|intptr|uintptr|intmax|uintmax)_t)\\\\b","name":"support.type.stdint.objcpp"},{"match":"\\\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\\\b","name":"support.constant.mac-classic.objcpp"},{"match":"\\\\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\\\\b","name":"support.type.mac-classic.objcpp"},{"match":"\\\\b([0-9A-Z_a-z]+_t)\\\\b","name":"support.type.posix-reserved.objcpp"},{"include":"#block"},{"include":"#parens"},{"begin":"(?<!\\\\w)(?!\\\\s*(?:not|compl|sizeof|not_eq|bitand|xor|bitor|and|or|and_eq|xor_eq|or_eq|alignof|alignas|_Alignof|_Alignas|while|for|do|if|else|goto|switch|return|break|case|continue|default|void|char|short|int|signed|unsigned|long|float|double|bool|_Bool|_Complex|_Imaginary|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|NULL|true|false|memory_order|atomic_bool|atomic_char|atomic_schar|atomic_uchar|atomic_short|atomic_ushort|atomic_int|atomic_uint|atomic_long|atomic_ulong|atomic_llong|atomic_ullong|atomic_char16_t|atomic_char32_t|atomic_wchar_t|atomic_int_least8_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_least16_t|atomic_int_least32_t|atomic_uint_least32_t|atomic_int_least64_t|atomic_uint_least64_t|atomic_int_fast8_t|atomic_uint_fast8_t|atomic_int_fast16_t|atomic_uint_fast16_t|atomic_int_fast32_t|atomic_uint_fast32_t|atomic_int_fast64_t|atomic_uint_fast64_t|atomic_intptr_t|atomic_uintptr_t|atomic_size_t|atomic_ptrdiff_t|atomic_intmax_t|atomic_uintmax_t|struct|union|enum|typedef|auto|register|static|extern|thread_local|inline|_Noreturn|const|volatile|restrict|_Atomic)\\\\s*\\\\()(?=[A-Z_a-z]\\\\w*\\\\s*\\\\()","end":"(?<=\\\\))","name":"meta.function.objcpp","patterns":[{"include":"#function-innards"}]},{"include":"#line_continuation_character"},{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))?(\\\\[)(?!])","beginCaptures":{"1":{"name":"variable.object.objcpp"},"2":{"name":"punctuation.definition.begin.bracket.square.objcpp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.objcpp"}},"name":"meta.bracket.square.access.objcpp","patterns":[{"include":"#function-call-innards"}]},{"match":"\\\\[\\\\s*]","name":"storage.modifier.array.bracket.square.objcpp"},{"match":";","name":"punctuation.terminator.statement.objcpp"},{"match":",","name":"punctuation.separator.delimiter.objcpp"}],"repository":{"access-method":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))\\\\s*(?:(\\\\.)|(->))((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(?:\\\\.|->))*)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(\\\\()","beginCaptures":{"1":{"name":"variable.object.objcpp"},"2":{"name":"punctuation.separator.dot-access.objcpp"},"3":{"name":"punctuation.separator.pointer-access.objcpp"},"4":{"patterns":[{"match":"\\\\.","name":"punctuation.separator.dot-access.objcpp"},{"match":"->","name":"punctuation.separator.pointer-access.objcpp"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.object.objcpp"},{"match":".+","name":"everything.else.objcpp"}]},"5":{"name":"entity.name.function.member.objcpp"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.member.objcpp"}},"name":"meta.function-call.member.objcpp","patterns":[{"include":"#function-call-innards"}]},"block":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"name":"meta.block.objcpp","patterns":[{"include":"#block_innards"}]}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-conditional-block"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#c_function_call"},{"begin":"(?=\\\\s)(?<!else|new|return)(?<=\\\\w)\\\\s+(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.objcpp"},"2":{"name":"punctuation.section.parens.begin.bracket.round.initialization.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.initialization.objcpp"}},"name":"meta.initialization.objcpp","patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"patterns":[{"include":"#block_innards"}]},{"include":"#parens-block"},{"include":"$base"}]},"c_function_call":{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)","name":"meta.function-call.objcpp","patterns":[{"include":"#function-call-innards"}]},"case_statement":{"begin":"((?<!\\\\w)case(?!\\\\w))","beginCaptures":{"1":{"name":"keyword.control.case.objcpp"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.case.objcpp"}},"name":"meta.conditional.case.objcpp","patterns":[{"include":"#conditional_context"}]},"comments":{"patterns":[{"captures":{"1":{"name":"meta.toc-list.banner.block.objcpp"}},"match":"^/\\\\* =(\\\\s*.*?)\\\\s*= \\\\*/$\\\\n?","name":"comment.block.objcpp"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.objcpp"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.objcpp"}},"name":"comment.block.objcpp"},{"captures":{"1":{"name":"meta.toc-list.banner.line.objcpp"}},"match":"^// =(\\\\s*.*?)\\\\s*=\\\\s*$\\\\n?","name":"comment.line.banner.objcpp"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.objcpp"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.objcpp"}},"end":"(?=\\\\n)","name":"comment.line.double-slash.objcpp","patterns":[{"include":"#line_continuation_character"}]}]}]},"conditional_context":{"patterns":[{"include":"$base"},{"include":"#block_innards"}]},"default_statement":{"begin":"((?<!\\\\w)default(?!\\\\w))","beginCaptures":{"1":{"name":"keyword.control.default.objcpp"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.case.default.objcpp"}},"name":"meta.conditional.case.objcpp","patterns":[{"include":"#conditional_context"}]},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"function-call-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.objcpp"}},"patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#function-call-innards"}]},{"include":"#block_innards"}]},"function-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#operators"},{"include":"#vararg_ellipses"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.section.parameters.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.objcpp"}},"name":"meta.function.definition.parameters.objcpp","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#function-innards"}]},{"include":"$base"}]},"line_continuation_character":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.line-continuation.objcpp"}},"match":"(\\\\\\\\)\\\\n"}]},"member_access":{"captures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objcpp"}]},"2":{"name":"punctuation.separator.dot-access.objcpp"},"3":{"name":"punctuation.separator.pointer-access.objcpp"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objcpp"}]},"2":{"name":"punctuation.separator.dot-access.objcpp"},"3":{"name":"punctuation.separator.pointer-access.objcpp"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"variable.other.member.objcpp"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?-im:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*\\\\b((?!void|char|short|int|signed|unsigned|long|float|double|bool|_Bool|_Complex|_Imaginary|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|memory_order|atomic_bool|atomic_char|atomic_schar|atomic_uchar|atomic_short|atomic_ushort|atomic_int|atomic_uint|atomic_long|atomic_ulong|atomic_llong|atomic_ullong|atomic_char16_t|atomic_char32_t|atomic_wchar_t|atomic_int_least8_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_least16_t|atomic_int_least32_t|atomic_uint_least32_t|atomic_int_least64_t|atomic_uint_least64_t|atomic_int_fast8_t|atomic_uint_fast8_t|atomic_int_fast16_t|atomic_uint_fast16_t|atomic_int_fast32_t|atomic_uint_fast32_t|atomic_int_fast64_t|atomic_uint_fast64_t|atomic_intptr_t|atomic_uintptr_t|atomic_size_t|atomic_ptrdiff_t|atomic_intmax_t|atomic_uintmax_t)[A-Z_a-z]\\\\w*\\\\b(?!\\\\())"},"method_access":{"begin":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?-im:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*([A-Z_a-z]\\\\w*)(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objcpp"}]},"2":{"name":"punctuation.separator.dot-access.objcpp"},"3":{"name":"punctuation.separator.pointer-access.objcpp"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"patterns":[{"include":"#special_variables"},{"match":"(.+)","name":"variable.other.object.access.objcpp"}]},"2":{"name":"punctuation.separator.dot-access.objcpp"},"3":{"name":"punctuation.separator.pointer-access.objcpp"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"entity.name.function.member.objcpp"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.objcpp"}},"contentName":"meta.function-call.member.objcpp","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.function.member.objcpp"}},"patterns":[{"include":"#function-call-innards"}]},"numbers":{"begin":"(?<!\\\\w)(?=\\\\.??\\\\d)","end":"(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])","patterns":[{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.objcpp"},"2":{"name":"constant.numeric.hexadecimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"3":{"name":"punctuation.separator.constant.numeric.objcpp"},"4":{"name":"constant.numeric.hexadecimal.objcpp"},"5":{"name":"constant.numeric.hexadecimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"6":{"name":"punctuation.separator.constant.numeric.objcpp"},"8":{"name":"keyword.other.unit.exponent.hexadecimal.objcpp"},"9":{"name":"keyword.operator.plus.exponent.hexadecimal.objcpp"},"10":{"name":"keyword.operator.minus.exponent.hexadecimal.objcpp"},"11":{"name":"constant.numeric.exponent.hexadecimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.objcpp"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Pp])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?([FLfl](?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"2":{"name":"constant.numeric.decimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"3":{"name":"punctuation.separator.constant.numeric.objcpp"},"4":{"name":"constant.numeric.decimal.point.objcpp"},"5":{"name":"constant.numeric.decimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"6":{"name":"punctuation.separator.constant.numeric.objcpp"},"8":{"name":"keyword.other.unit.exponent.decimal.objcpp"},"9":{"name":"keyword.operator.plus.exponent.decimal.objcpp"},"10":{"name":"keyword.operator.minus.exponent.decimal.objcpp"},"11":{"name":"constant.numeric.exponent.decimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.objcpp"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Ee])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?([FLfl](?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"1":{"name":"keyword.other.unit.binary.objcpp"},"2":{"name":"constant.numeric.binary.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"3":{"name":"punctuation.separator.constant.numeric.objcpp"},"4":{"name":"keyword.other.unit.suffix.integer.objcpp"}},"match":"\\\\G(0[Bb])([01](?:[01]|((?<=\\\\h)'(?=\\\\h)))*)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"1":{"name":"keyword.other.unit.octal.objcpp"},"2":{"name":"constant.numeric.octal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"3":{"name":"punctuation.separator.constant.numeric.objcpp"},"4":{"name":"keyword.other.unit.suffix.integer.objcpp"}},"match":"\\\\G(0)((?:[0-7]|((?<=\\\\h)'(?=\\\\h)))+)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.objcpp"},"2":{"name":"constant.numeric.hexadecimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"3":{"name":"punctuation.separator.constant.numeric.objcpp"},"5":{"name":"keyword.other.unit.exponent.hexadecimal.objcpp"},"6":{"name":"keyword.operator.plus.exponent.hexadecimal.objcpp"},"7":{"name":"keyword.operator.minus.exponent.hexadecimal.objcpp"},"8":{"name":"constant.numeric.exponent.hexadecimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"9":{"name":"keyword.other.unit.suffix.integer.objcpp"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Pp])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"captures":{"2":{"name":"constant.numeric.decimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"3":{"name":"punctuation.separator.constant.numeric.objcpp"},"5":{"name":"keyword.other.unit.exponent.decimal.objcpp"},"6":{"name":"keyword.operator.plus.exponent.decimal.objcpp"},"7":{"name":"keyword.operator.minus.exponent.decimal.objcpp"},"8":{"name":"constant.numeric.exponent.decimal.objcpp","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric.objcpp"}]},"9":{"name":"keyword.other.unit.suffix.integer.objcpp"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Ee])(\\\\+)?(-)?((?-im:[0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*)))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?(?!['.0-9A-Z_a-z]|(?<=[EPep])[-+])"},{"match":"(?:['.0-9A-Z_a-z]|(?<=[EPep])[-+])+","name":"invalid.illegal.constant.numeric.objcpp"}]},"operators":{"patterns":[{"match":"(?<![$\\\\w])(sizeof)(?![$\\\\w])","name":"keyword.operator.sizeof.objcpp"},{"match":"--","name":"keyword.operator.decrement.objcpp"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.objcpp"},{"match":"(?:[-%*+]|(?<!\\\\()/)=","name":"keyword.operator.assignment.compound.objcpp"},{"match":"(?:[\\\\&^]|<<|>>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.objcpp"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.objcpp"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.objcpp"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.objcpp"},{"match":"[\\\\&^|~]","name":"keyword.operator.objcpp"},{"match":"=","name":"keyword.operator.assignment.objcpp"},{"match":"[-%*+/]","name":"keyword.operator.objcpp"},{"begin":"(\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.objcpp"}},"end":"(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.objcpp"}},"patterns":[{"include":"#function-call-innards"},{"include":"$base"}]}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"name":"meta.parens.objcpp","patterns":[{"include":"$base"}]},"parens-block":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"name":"meta.parens.block.objcpp","patterns":[{"include":"#block_innards"},{"match":"(?-im:(?<!:):(?!:))","name":"punctuation.range-based.objcpp"}]},"pragma-mark":{"captures":{"1":{"name":"meta.preprocessor.pragma.objcpp"},"2":{"name":"keyword.control.directive.pragma.pragma-mark.objcpp"},"3":{"name":"punctuation.definition.directive.objcpp"},"4":{"name":"entity.name.tag.pragma-mark.objcpp"}},"match":"^\\\\s*(((#)\\\\s*pragma\\\\s+mark)\\\\s+(.*))","name":"meta.section.objcpp"},"preprocessor-rule-conditional":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$base"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.objcpp"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.objcpp"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-line":{"patterns":[{"match":"\\\\bdefined\\\\b(?:\\\\s*$|(?=\\\\s*\\\\(*\\\\s*(?!defined\\\\b)[$A-Z_a-z][$\\\\w]*\\\\b\\\\s*\\\\)*\\\\s*(?:\\\\n|//|/\\\\*|[:?]|&&|\\\\|\\\\||\\\\\\\\\\\\s*\\\\n)))","name":"keyword.control.directive.conditional.objcpp"},{"match":"\\\\bdefined\\\\b","name":"invalid.illegal.macro-name.objcpp"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.objcpp"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.objcpp"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#operators"},{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.objcpp"},{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.objcpp"},{"include":"#line_continuation_character"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)|(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]}]},"preprocessor-rule-define-line-blocks":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"patterns":[{"include":"#preprocessor-rule-define-line-blocks"},{"include":"#preprocessor-rule-define-line-contents"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-define-line-contents":{"patterns":[{"include":"#vararg_ellipses"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"name":"meta.block.objcpp","patterns":[{"include":"#preprocessor-rule-define-line-blocks"}]},{"match":"\\\\(","name":"punctuation.section.parens.begin.bracket.round.objcpp"},{"match":"\\\\)","name":"punctuation.section.parens.end.bracket.round.objcpp"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"meta.function.objcpp","patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.single.objcpp","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]},{"include":"#method_access"},{"include":"#member_access"},{"include":"$base"}]},"preprocessor-rule-define-line-functions":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#vararg_ellipses"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.objcpp"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.objcpp"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-disabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$base"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-enabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"},"3":{"name":"constant.numeric.preprocessor.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.else-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.if-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"$base"}]}]}]},"preprocessor-rule-enabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.else-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.if-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#block_innards"}]}]}]},"preprocessor-rule-enabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"$base"}]}]},"preprocessor-rule-enabled-elif-block":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"#block_innards"}]}]},"preprocessor-rule-enabled-else":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"$base"}]},"preprocessor-rule-enabled-else-block":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#block_innards"}]},"probably_a_parameter":{"captures":{"1":{"name":"variable.parameter.probably.objcpp"}},"match":"(?<=[0-9A-Z_a-z] |[]\\\\&)*>])\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(?:\\\\[]\\\\s*)?[),])"},"static_assert":{"begin":"((?:s|_S)tatic_assert)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.static_assert.objcpp"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.objcpp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.objcpp"}},"patterns":[{"begin":"(,)\\\\s*(?=(?:L|u8?|U\\\\s*\\")?)","beginCaptures":{"1":{"name":"punctuation.separator.delimiter.objcpp"}},"end":"(?=\\\\))","name":"meta.static_assert.message.objcpp","patterns":[{"include":"#string_context"},{"include":"#string_context_c"}]},{"include":"#function_call_context"}]},"storage_types":{"patterns":[{"match":"(?-im:(?<!\\\\w)(?:void|char|short|int|signed|unsigned|long|float|double|bool|_Bool)(?!\\\\w))","name":"storage.type.built-in.primitive.objcpp"},{"match":"(?-im:(?<!\\\\w)(?:_Complex|_Imaginary|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|memory_order|atomic_bool|atomic_char|atomic_schar|atomic_uchar|atomic_short|atomic_ushort|atomic_int|atomic_uint|atomic_long|atomic_ulong|atomic_llong|atomic_ullong|atomic_char16_t|atomic_char32_t|atomic_wchar_t|atomic_int_least8_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_least16_t|atomic_int_least32_t|atomic_uint_least32_t|atomic_int_least64_t|atomic_uint_least64_t|atomic_int_fast8_t|atomic_uint_fast8_t|atomic_int_fast16_t|atomic_uint_fast16_t|atomic_int_fast32_t|atomic_uint_fast32_t|atomic_int_fast64_t|atomic_uint_fast64_t|atomic_intptr_t|atomic_uintptr_t|atomic_size_t|atomic_ptrdiff_t|atomic_intmax_t|atomic_uintmax_t)(?!\\\\w))","name":"storage.type.built-in.objcpp"},{"match":"(?-im:\\\\b(asm|__asm__|enum|struct|union)\\\\b)","name":"storage.type.$1.objcpp"}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.objcpp"}]},"string_placeholder":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.objcpp"},{"captures":{"1":{"name":"invalid.illegal.placeholder.objcpp"}},"match":"(%)(?!\\"\\\\s*(PRI|SCN))"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.single.objcpp","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]}]},"switch_conditional_parentheses":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.conditional.switch.objcpp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.conditional.switch.objcpp"}},"name":"meta.conditional.switch.objcpp","patterns":[{"include":"#conditional_context"}]},"switch_statement":{"begin":"(((?<!\\\\w)switch(?!\\\\w)))","beginCaptures":{"1":{"name":"meta.head.switch.objcpp"},"2":{"name":"keyword.control.switch.objcpp"}},"end":"(?<=})|(?=[];=>\\\\[])","name":"meta.block.switch.objcpp","patterns":[{"begin":"\\\\G ?","end":"(\\\\{|(?=;))","endCaptures":{"1":{"name":"punctuation.section.block.begin.bracket.curly.switch.objcpp"}},"name":"meta.head.switch.objcpp","patterns":[{"include":"#switch_conditional_parentheses"},{"include":"$base"}]},{"begin":"(?<=\\\\{)","end":"(})","endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.switch.objcpp"}},"name":"meta.body.switch.objcpp","patterns":[{"include":"#default_statement"},{"include":"#case_statement"},{"include":"$base"},{"include":"#block_innards"}]},{"begin":"(?<=})[\\\\n\\\\s]*","end":"[\\\\n\\\\s]*(?=;)","name":"meta.tail.switch.objcpp","patterns":[{"include":"$base"}]}]},"vararg_ellipses":{"match":"(?<!\\\\.)\\\\.\\\\.\\\\.(?!\\\\.)","name":"punctuation.vararg-ellipses.objcpp"}}},"comment":{"patterns":[{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.objcpp"}},"end":"\\\\*/","name":"comment.block.objcpp"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.objcpp"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.objcpp"}},"end":"\\\\n","name":"comment.line.double-slash.objcpp","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.objcpp"}]}]}]},"cpp_lang":{"patterns":[{"include":"#special_block"},{"include":"#strings"},{"match":"\\\\b(friend|explicit|virtual|override|final|noexcept)\\\\b","name":"storage.modifier.objcpp"},{"match":"\\\\b(p(?:rivate:|rotected:|ublic:))","name":"storage.type.modifier.access.objcpp"},{"match":"\\\\b(catch|try|throw|using)\\\\b","name":"keyword.control.objcpp"},{"match":"\\\\b(?:delete\\\\b(\\\\s*\\\\[])?|new\\\\b(?!]))","name":"keyword.control.objcpp"},{"match":"\\\\b([fm])[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.member.objcpp"},{"match":"\\\\bthis\\\\b","name":"variable.language.this.objcpp"},{"match":"\\\\bnullptr\\\\b","name":"constant.language.objcpp"},{"include":"#template_definition"},{"match":"\\\\btemplate\\\\b\\\\s*","name":"storage.type.template.objcpp"},{"match":"\\\\b((?:const|dynamic|reinterpret|static)_cast)\\\\b\\\\s*","name":"keyword.operator.cast.objcpp"},{"captures":{"1":{"name":"entity.scope.objcpp"},"2":{"name":"entity.scope.name.objcpp"},"3":{"name":"punctuation.separator.namespace.access.objcpp"}},"match":"((?:[A-Z_a-z][0-9A-Z_a-z]*::)*)([A-Z_a-z][0-9A-Z_a-z]*)(::)","name":"punctuation.separator.namespace.access.objcpp"},{"match":"\\\\b(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\b","name":"keyword.operator.objcpp"},{"match":"\\\\b(decltype|wchar_t|char16_t|char32_t)\\\\b","name":"storage.type.objcpp"},{"match":"\\\\b(constexpr|export|mutable|typename|thread_local)\\\\b","name":"storage.modifier.objcpp"},{"begin":"(?:^|(?<!else|new|=))((?:[A-Z_a-z][0-9A-Z_a-z]*::)*+~[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.definition.parameters.begin.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.objcpp"}},"name":"meta.function.destructor.objcpp","patterns":[{"include":"$base"}]},{"begin":"(?:^|(?<!else|new|=))((?:[A-Z_a-z][0-9A-Z_a-z]*::)*+~[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.definition.parameters.begin.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.objcpp"}},"name":"meta.function.destructor.prototype.objcpp","patterns":[{"include":"$base"}]},{"include":"#c_lang"}],"repository":{"angle_brackets":{"begin":"<","end":">","name":"meta.angle-brackets.objcpp","patterns":[{"include":"#angle_brackets"},{"include":"$base"}]},"block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"name":"meta.block.objcpp","patterns":[{"captures":{"1":{"name":"support.function.any-method.objcpp"},"2":{"name":"punctuation.definition.parameters.objcpp"}},"match":"((?!while|for|do|if|else|switch|catch|enumerate|return|r?iterate)(?:\\\\b[A-Z_a-z][0-9A-Z_a-z]*+\\\\b|::)*+)\\\\s*(\\\\()","name":"meta.function-call.objcpp"},{"include":"$base"}]},"constructor":{"patterns":[{"begin":"^\\\\s*((?!while|for|do|if|else|switch|catch|enumerate|r?iterate)[A-Z_a-z][0-:A-Z_a-z]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.constructor.objcpp"},"2":{"name":"punctuation.definition.parameters.begin.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.objcpp"}},"name":"meta.function.constructor.objcpp","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards"}]},{"begin":"(:)((?=\\\\s*[A-Z_a-z][0-:A-Z_a-z]*\\\\s*(\\\\()))","beginCaptures":{"1":{"name":"punctuation.definition.parameters.objcpp"}},"end":"(?=\\\\{)","name":"meta.function.constructor.initializer-list.objcpp","patterns":[{"include":"$base"}]}]},"special_block":{"patterns":[{"begin":"\\\\b(using)\\\\b\\\\s*(namespace)\\\\b\\\\s*((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\b(::)?)*)","beginCaptures":{"1":{"name":"keyword.control.objcpp"},"2":{"name":"storage.type.namespace.objcpp"},"3":{"name":"entity.name.type.objcpp"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.objcpp"}},"name":"meta.using-namespace-declaration.objcpp"},{"begin":"\\\\b(namespace)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*\\\\b)?+","beginCaptures":{"1":{"name":"storage.type.namespace.objcpp"},"2":{"name":"entity.name.type.objcpp"}},"captures":{"1":{"name":"keyword.control.namespace.$2.objcpp"}},"end":"(?<=})|(?=([](),;=>\\\\[]))","name":"meta.namespace-block.objcpp","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.scope.objcpp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.scope.objcpp"}},"patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}]},{"include":"$base"}]},{"begin":"\\\\b(?:(class)|(struct))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*\\\\b)?+(\\\\s*:\\\\s*(p(?:ublic|rotected|rivate))\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\b((\\\\s*,\\\\s*(p(?:ublic|rotected|rivate))\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\b)*))?","beginCaptures":{"1":{"name":"storage.type.class.objcpp"},"2":{"name":"storage.type.struct.objcpp"},"3":{"name":"entity.name.type.objcpp"},"5":{"name":"storage.type.modifier.access.objcpp"},"6":{"name":"entity.name.type.inherited.objcpp"},"7":{"patterns":[{"match":"(p(?:ublic|rotected|rivate))","name":"storage.type.modifier.access.objcpp"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"entity.name.type.inherited.objcpp"}]}},"end":"(?<=})|(?=([]();=>\\\\[]))","name":"meta.class-struct-block.objcpp","patterns":[{"include":"#angle_brackets"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"(})(\\\\s*\\\\n)?","endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.objcpp"},"2":{"name":"invalid.illegal.you-forgot-semicolon.objcpp"}},"patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}]},{"include":"$base"}]},{"begin":"\\\\b(extern)(?=\\\\s*\\")","beginCaptures":{"1":{"name":"storage.modifier.objcpp"}},"end":"(?<=})|(?=\\\\w)|(?=\\\\s*#\\\\s*endif\\\\b)","name":"meta.extern-block.objcpp","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*endif\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"patterns":[{"include":"#special_block"},{"include":"$base"}]},{"include":"$base"}]}]},"strings":{"patterns":[{"begin":"(u8??|[LU])?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"},"1":{"name":"meta.encoding.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"match":"\\\\\\\\(?:u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\[\\"'?\\\\\\\\abfnrtv]","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\[0-7]{1,3}","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\x\\\\h+","name":"constant.character.escape.objcpp"},{"include":"#string_placeholder"}]},{"begin":"(u8??|[LU])?R\\"(?:([^\\\\t ()\\\\\\\\]{0,16})|([^\\\\t ()\\\\\\\\]*))\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"},"1":{"name":"meta.encoding.objcpp"},"3":{"name":"invalid.illegal.delimiter-too-long.objcpp"}},"end":"\\\\)\\\\2(\\\\3)\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"},"1":{"name":"invalid.illegal.delimiter-too-long.objcpp"}},"name":"string.quoted.double.raw.objcpp"}]},"template_definition":{"begin":"\\\\b(template)\\\\s*(<)\\\\s*","beginCaptures":{"1":{"name":"storage.type.template.objcpp"},"2":{"name":"meta.template.angle-brackets.start.objcpp"}},"end":">","endCaptures":{"0":{"name":"meta.template.angle-brackets.end.objcpp"}},"name":"template.definition.objcpp","patterns":[{"include":"#template_definition_argument"}]},"template_definition_argument":{"captures":{"1":{"name":"storage.type.template.objcpp"},"2":{"name":"storage.type.template.objcpp"},"3":{"name":"entity.name.type.template.objcpp"},"4":{"name":"storage.type.template.objcpp"},"5":{"name":"meta.template.operator.ellipsis.objcpp"},"6":{"name":"entity.name.type.template.objcpp"},"7":{"name":"storage.type.template.objcpp"},"8":{"name":"entity.name.type.template.objcpp"},"9":{"name":"keyword.operator.assignment.objcpp"},"10":{"name":"constant.language.objcpp"},"11":{"name":"meta.template.operator.comma.objcpp"}},"match":"\\\\s*(?:([A-Z_a-z][0-9A-Z_a-z]*\\\\s*)|((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s+)*)([A-Z_a-z][0-9A-Z_a-z]*)|([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(\\\\.\\\\.\\\\.)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)|((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s+)*)([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(=)\\\\s*(\\\\w+))(,|(?=>))"}}},"cpp_lang_newish":{"patterns":[{"include":"#special_block"},{"match":"(?-im:##[A-Z_a-z]\\\\w*(?!\\\\w))","name":"variable.other.macro.argument.objcpp"},{"include":"#strings"},{"match":"(?<!\\\\w)(inline|constexpr|mutable|friend|explicit|virtual)(?!\\\\w)","name":"storage.modifier.specificer.functional.pre-parameters.$1.objcpp"},{"match":"(?<!\\\\w)(final|override|volatile|const|noexcept)(?!\\\\w)(?=\\\\s*[\\\\n\\\\r;{])","name":"storage.modifier.specifier.functional.post-parameters.$1.objcpp"},{"match":"(?<!\\\\w)(const|static|volatile|register|restrict|extern)(?!\\\\w)","name":"storage.modifier.specifier.$1.objcpp"},{"match":"(?<!\\\\w)(p(?:rivate|rotected|ublic)) *:","name":"storage.type.modifier.access.control.$1.objcpp"},{"match":"(?<!\\\\w)(?:throw|try|catch)(?!\\\\w)","name":"keyword.control.exception.$1.objcpp"},{"match":"(?<!\\\\w)(using|typedef)(?!\\\\w)","name":"keyword.other.$1.objcpp"},{"include":"#memory_operators"},{"match":"\\\\bthis\\\\b","name":"variable.language.this.objcpp"},{"include":"#constants"},{"include":"#template_definition"},{"match":"\\\\btemplate\\\\b\\\\s*","name":"storage.type.template.objcpp"},{"match":"\\\\b((?:const|dynamic|reinterpret|static)_cast)\\\\b\\\\s*","name":"keyword.operator.cast.$1.objcpp"},{"include":"#scope_resolution"},{"match":"\\\\b(decltype|wchar_t|char16_t|char32_t)\\\\b","name":"storage.type.objcpp"},{"match":"\\\\b(constexpr|export|mutable|typename|thread_local)\\\\b","name":"storage.modifier.objcpp"},{"begin":"(?:^|(?<!else|new|=))((?:[A-Z_a-z][0-9A-Z_a-z]*::)*+~[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.destructor.objcpp"},"2":{"name":"punctuation.definition.parameters.begin.destructor.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.destructor.objcpp"}},"name":"meta.function.destructor.objcpp","patterns":[{"include":"$base"}]},{"begin":"(?:^|(?<!else|new|=))((?:[A-Z_a-z][0-9A-Z_a-z]*::)*+~[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.definition.parameters.begin.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.objcpp"}},"name":"meta.function.destructor.prototype.objcpp","patterns":[{"include":"$base"}]},{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-conditional"},{"include":"#comments-c"},{"match":"\\\\b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\\\\b","name":"keyword.control.$1.objcpp"},{"include":"#storage_types_c"},{"match":"\\\\b(const|extern|register|restrict|static|volatile|inline)\\\\b","name":"storage.modifier.objcpp"},{"include":"#operators"},{"include":"#operator_overload"},{"include":"#number_literal"},{"include":"#strings-c"},{"begin":"^\\\\s*((#)\\\\s*define)\\\\s+((?<id>[$A-Z_a-z][$\\\\w]*))(?:(\\\\()(\\\\s*\\\\g<id>\\\\s*((,)\\\\s*\\\\g<id>\\\\s*)*(?:\\\\.\\\\.\\\\.)?)(\\\\)))?","beginCaptures":{"1":{"name":"keyword.control.directive.define.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"},"3":{"name":"entity.name.function.preprocessor.objcpp"},"5":{"name":"punctuation.definition.parameters.begin.objcpp"},"6":{"name":"variable.parameter.preprocessor.objcpp"},"8":{"name":"punctuation.separator.parameters.objcpp"},"9":{"name":"punctuation.definition.parameters.end.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.macro.objcpp","patterns":[{"include":"#preprocessor-rule-define-line-contents"}]},{"begin":"^\\\\s*((#)\\\\s*(error|warning))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.diagnostic.$3.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.diagnostic.objcpp","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.single.objcpp","patterns":[{"include":"#line_continuation_character"}]},{"begin":"[^\\"']","end":"(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"string.unquoted.single.objcpp","patterns":[{"include":"#line_continuation_character"},{"include":"#comments-c"}]}]},{"begin":"^\\\\s*((#)\\\\s*(i(?:nclude(?:_next)?|mport)))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.$3.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.include.objcpp","patterns":[{"include":"#line_continuation_character"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.include.objcpp"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.other.lt-gt.include.objcpp"}]},{"include":"#pragma-mark"},{"begin":"^\\\\s*((#)\\\\s*line)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.line.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#strings-c"},{"include":"#number_literal"},{"include":"#line_continuation_character"}]},{"begin":"^\\\\s*((#)\\\\s*undef)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.undef.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.objcpp"},{"include":"#line_continuation_character"}]},{"begin":"^\\\\s*((#)\\\\s*pragma)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.pragma.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.pragma.objcpp","patterns":[{"include":"#strings-c"},{"match":"[$A-Z_a-z][-$\\\\w]*","name":"entity.other.attribute-name.pragma.preprocessor.objcpp"},{"include":"#number_literal"},{"include":"#line_continuation_character"}]},{"match":"\\\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\\\b","name":"support.type.sys-types.objcpp"},{"match":"\\\\b(pthread_(?:attr_|cond_|condattr_|mutex_|mutexattr_|once_|rwlock_|rwlockattr_||key_)t)\\\\b","name":"support.type.pthread.objcpp"},{"match":"\\\\b((?:int8|int16|int32|int64|uint8|uint16|uint32|uint64|int_least8|int_least16|int_least32|int_least64|uint_least8|uint_least16|uint_least32|uint_least64|int_fast8|int_fast16|int_fast32|int_fast64|uint_fast8|uint_fast16|uint_fast32|uint_fast64|intptr|uintptr|intmax|uintmax)_t)\\\\b","name":"support.type.stdint.objcpp"},{"match":"(?<!\\\\w)[A-Z_a-z]\\\\w*_t(?!\\\\w)","name":"support.type.posix-reserved.objcpp"},{"include":"#block-c"},{"include":"#parens-c"},{"begin":"(?<!\\\\w)(?!\\\\s*(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|auto|void|char|short|int|signed|unsigned|long|float|double|bool|wchar_t|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|NULL|true|false|nullptr|class|struct|union|enum|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized)\\\\s*\\\\()(?=[A-Z_a-z]\\\\w*\\\\s*\\\\()","end":"(?<=\\\\))","name":"meta.function.definition.objcpp","patterns":[{"include":"#function-innards-c"}]},{"include":"#line_continuation_character"},{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))?(\\\\[)(?!])","beginCaptures":{"1":{"name":"variable.other.object.objcpp"},"2":{"name":"punctuation.definition.begin.bracket.square.objcpp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.objcpp"}},"name":"meta.bracket.square.access.objcpp","patterns":[{"include":"#function-call-innards-c"}]},{"match":"(?-im:(?<!delete))\\\\\\\\[*\\\\\\\\s]","name":"storage.modifier.array.bracket.square.objcpp"},{"match":";","name":"punctuation.terminator.statement.objcpp"},{"match":",","name":"punctuation.separator.delimiter.objcpp"}],"repository":{"access-member":{"captures":{"1":{"name":"variable.other.object.objcpp"},"2":{"name":"punctuation.separator.dot-access.objcpp"},"3":{"name":"punctuation.separator.pointer-access.objcpp"},"4":{"patterns":[{"match":"\\\\.","name":"punctuation.separator.dot-access.objcpp"},{"match":"->","name":"punctuation.separator.pointer-access.objcpp"},{"match":"[A-Z_a-z]\\\\w*","name":"variable.other.object.objcpp"},{"match":".+","name":"everything.else.objcpp"}]},"5":{"name":"variable.other.member.objcpp"}},"match":"(?:([A-Z_a-z]\\\\w*)|(?<=[])]))\\\\s*(?:(\\\\.\\\\*??)|(->\\\\*??))\\\\s*((?:[A-Z_a-z]\\\\w*\\\\s*(?:\\\\.|->)\\\\s*)*)\\\\b(?!auto|void|char|short|int|signed|unsigned|long|float|double|bool|wchar_t|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t)([A-Z_a-z]\\\\w*)\\\\b(?!\\\\()","name":"variable.other.object.access.objcpp"},"access-method":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))\\\\s*(?:(\\\\.)|(->))((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(?:\\\\.|->))*)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(\\\\()","beginCaptures":{"1":{"name":"variable.other.object.objcpp"},"2":{"name":"punctuation.separator.dot-access.objcpp"},"3":{"name":"punctuation.separator.pointer-access.objcpp"},"4":{"patterns":[{"match":"\\\\.","name":"punctuation.separator.dot-access.objcpp"},{"match":"->","name":"punctuation.separator.pointer-access.objcpp"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.other.object.objcpp"},{"match":".+","name":"everything.else.objcpp"}]},"5":{"name":"entity.name.function.member.objcpp"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.member.objcpp"}},"name":"meta.function-call.member.objcpp","patterns":[{"include":"#function-call-innards-c"}]},"angle_brackets":{"begin":"<","end":">","name":"meta.angle-brackets.objcpp","patterns":[{"include":"#angle_brackets"},{"include":"$base"}]},"block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"name":"meta.block.objcpp","patterns":[{"captures":{"1":{"name":"support.function.any-method.objcpp"},"2":{"name":"punctuation.definition.parameters.objcpp"}},"match":"((?!while|for|do|if|else|switch|catch|return)(?:\\\\b[A-Z_a-z][0-9A-Z_a-z]*+\\\\b|::)*+)\\\\s*(\\\\()","name":"meta.function-call.objcpp"},{"include":"$base"}]},"block-c":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"name":"meta.block.objcpp","patterns":[{"include":"#block_innards-c"}]}]},"block_innards-c":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-conditional-block"},{"include":"#access-method"},{"include":"#access-member"},{"include":"#c_function_call"},{"begin":"(?=\\\\s)(?<!else|new|return)(?<=\\\\w)\\\\s+(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.objcpp"},"2":{"name":"punctuation.section.parens.begin.bracket.round.initialization.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.initialization.objcpp"}},"name":"meta.initialization.objcpp","patterns":[{"include":"#function-call-innards-c"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"patterns":[{"include":"#block_innards-c"}]},{"include":"#parens-block-c"},{"include":"$base"}]},"c_function_call":{"begin":"(?!(?:while|for|do|if|else|switch|catch|return|typeid|alignof|alignas|sizeof|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*(?:<[,<>\\\\s\\\\w]*>\\\\s*)?\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)","name":"meta.function-call.objcpp","patterns":[{"include":"#function-call-innards-c"}]},"comments-c":{"patterns":[{"captures":{"1":{"name":"meta.toc-list.banner.block.objcpp"}},"match":"^/\\\\* =(\\\\s*.*?)\\\\s*= \\\\*/$\\\\n?","name":"comment.block.objcpp"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.objcpp"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.objcpp"}},"name":"comment.block.objcpp"},{"captures":{"1":{"name":"meta.toc-list.banner.line.objcpp"}},"match":"^// =(\\\\s*.*?)\\\\s*=\\\\s*$\\\\n?","name":"comment.line.banner.objcpp"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.objcpp"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.objcpp"}},"end":"(?=\\\\n)","name":"comment.line.double-slash.objcpp","patterns":[{"include":"#line_continuation_character"}]}]}]},"constants":{"match":"(?<!\\\\w)(?:NULL|true|false|nullptr)(?!\\\\w)","name":"constant.language.objcpp"},"constructor":{"patterns":[{"begin":"^\\\\s*((?!while|for|do|if|else|switch|catch)[A-Z_a-z][0-:A-Z_a-z]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.constructor.objcpp"},"2":{"name":"punctuation.definition.parameters.begin.constructor.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.constructor.objcpp"}},"name":"meta.function.constructor.objcpp","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards-c"}]},{"begin":"(:)((?=\\\\s*[A-Z_a-z][0-:A-Z_a-z]*\\\\s*(\\\\()))","beginCaptures":{"1":{"name":"punctuation.definition.initializer-list.parameters.objcpp"}},"end":"(?=\\\\{)","name":"meta.function.constructor.initializer-list.objcpp","patterns":[{"include":"$base"}]}]},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"function-call-innards-c":{"patterns":[{"include":"#comments-c"},{"include":"#storage_types_c"},{"include":"#access-method"},{"include":"#access-member"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|return|typeid|alignof|alignas|sizeof|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()(new\\\\s*((?:<[,<>\\\\s\\\\w]*>\\\\s*)?)|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.memory.new.objcpp"},"2":{"patterns":[{"include":"#template_call_innards"}]},"3":{"name":"punctuation.section.arguments.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.objcpp"}},"patterns":[{"include":"#function-call-innards-c"}]},{"begin":"(?<!\\\\w)(?!\\\\s*(?:not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|throw|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept|static_cast|dynamic_cast|const_cast|reinterpret_cast|while|for|do|if|else|goto|switch|try|catch|return|break|case|continue|default|auto|void|char|short|int|signed|unsigned|long|float|double|bool|wchar_t|u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t|NULL|true|false|nullptr|class|struct|union|enum|const|static|volatile|register|restrict|extern|inline|constexpr|mutable|friend|explicit|virtual|volatile|const|noexcept|constexpr|mutable|constexpr|consteval|private|protected|public|this|template|namespace|using|operator|typedef|decltype|typename|asm|__asm__|concept|requires|export|thread_local|atomic_cancel|atomic_commit|atomic_noexcept|co_await|co_return|co_yield|import|module|reflexpr|synchronized)\\\\s*\\\\()((?:[A-Z_a-z]\\\\w*\\\\s*(?:<[,<>\\\\s\\\\w]*>\\\\s*)?::)*)\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(<[,<>\\\\s\\\\w]*>\\\\s*)?(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#scope_resolution"}]},"2":{"name":"entity.name.function.call.objcpp"},"3":{"patterns":[{"include":"#template_call_innards"}]},"4":{"name":"punctuation.section.arguments.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.objcpp"}},"patterns":[{"include":"#function-call-innards-c"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#function-call-innards-c"}]},{"include":"#block_innards-c"}]},"function-innards-c":{"patterns":[{"include":"#comments-c"},{"include":"#storage_types_c"},{"include":"#operators"},{"include":"#vararg_ellipses-c"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|return|typeid|alignof|alignas|sizeof|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.section.parameters.begin.bracket.round.objcpp"}},"end":"[):]","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.objcpp"}},"name":"meta.function.definition.parameters.objcpp","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards-c"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#function-innards-c"}]},{"include":"$base"}]},"line_continuation_character":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.line-continuation.objcpp"}},"match":"(\\\\\\\\)\\\\n"}]},"literal_numeric_seperator":{"match":"(?<!')'(?!')","name":"punctuation.separator.constant.numeric.objcpp"},"memory_operators":{"captures":{"1":{"name":"keyword.operator.memory.delete.array.objcpp"},"2":{"name":"keyword.operator.memory.delete.array.bracket.objcpp"},"3":{"name":"keyword.operator.memory.delete.objcpp"},"4":{"name":"keyword.operator.memory.new.objcpp"}},"match":"(?<!\\\\w)(?:(?:(delete)\\\\s*(\\\\[])|(delete))|(new))(?!\\\\w)","name":"keyword.operator.memory.objcpp"},"number_literal":{"captures":{"2":{"name":"keyword.other.unit.hexadecimal.objcpp"},"3":{"name":"constant.numeric.hexadecimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"4":{"name":"punctuation.separator.constant.numeric.objcpp"},"5":{"name":"constant.numeric.hexadecimal.objcpp"},"6":{"name":"constant.numeric.hexadecimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"7":{"name":"punctuation.separator.constant.numeric.objcpp"},"8":{"name":"keyword.other.unit.exponent.hexadecimal.objcpp"},"9":{"name":"keyword.operator.plus.exponent.hexadecimal.objcpp"},"10":{"name":"keyword.operator.minus.exponent.hexadecimal.objcpp"},"11":{"name":"constant.numeric.exponent.hexadecimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"12":{"name":"constant.numeric.decimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"13":{"name":"punctuation.separator.constant.numeric.objcpp"},"14":{"name":"constant.numeric.decimal.point.objcpp"},"15":{"name":"constant.numeric.decimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"16":{"name":"punctuation.separator.constant.numeric.objcpp"},"17":{"name":"keyword.other.unit.exponent.decimal.objcpp"},"18":{"name":"keyword.operator.plus.exponent.decimal.objcpp"},"19":{"name":"keyword.operator.minus.exponent.decimal.objcpp"},"20":{"name":"constant.numeric.exponent.decimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"21":{"name":"keyword.other.unit.suffix.floating-point.objcpp"},"22":{"name":"keyword.other.unit.binary.objcpp"},"23":{"name":"constant.numeric.binary.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"24":{"name":"punctuation.separator.constant.numeric.objcpp"},"25":{"name":"keyword.other.unit.octal.objcpp"},"26":{"name":"constant.numeric.octal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"27":{"name":"punctuation.separator.constant.numeric.objcpp"},"28":{"name":"keyword.other.unit.hexadecimal.objcpp"},"29":{"name":"constant.numeric.hexadecimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"30":{"name":"punctuation.separator.constant.numeric.objcpp"},"31":{"name":"keyword.other.unit.exponent.hexadecimal.objcpp"},"32":{"name":"keyword.operator.plus.exponent.hexadecimal.objcpp"},"33":{"name":"keyword.operator.minus.exponent.hexadecimal.objcpp"},"34":{"name":"constant.numeric.exponent.hexadecimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"35":{"name":"constant.numeric.decimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"36":{"name":"punctuation.separator.constant.numeric.objcpp"},"37":{"name":"keyword.other.unit.exponent.decimal.objcpp"},"38":{"name":"keyword.operator.plus.exponent.decimal.objcpp"},"39":{"name":"keyword.operator.minus.exponent.decimal.objcpp"},"40":{"name":"constant.numeric.exponent.decimal.objcpp","patterns":[{"include":"#literal_numeric_seperator"}]},"41":{"name":"keyword.other.unit.suffix.integer.objcpp"},"42":{"name":"keyword.other.unit.user-defined.objcpp"}},"match":"((?<!\\\\w)(?:(?:(0[Xx])(\\\\h(?:\\\\h|((?<!')'(?!')))*)?((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<!')'(?!')))*)?(?:([Pp])(\\\\+)?(-)?([0-9](?:[0-9]|(?<!')'(?!'))*))?|([0-9](?:[0-9]|((?<!')'(?!')))*)?((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<!')'(?!')))*)?(?:([Ee])(\\\\+)?(-)?([0-9](?:[0-9]|(?<!')'(?!'))*))?)([FLfl](?!\\\\w))?|(?:(?:(?:(0[Bb])((?:[01]|((?<!')'(?!')))+)|(0)((?:[0-7]|((?<!')'(?!')))+))|(0[Xx])(\\\\h(?:\\\\h|((?<!')'(?!')))*)(?:([Pp])(\\\\+)?(-)?([0-9](?:[0-9]|(?<!')'(?!'))*))?)|([0-9](?:[0-9]|((?<!')'(?!')))*)(?:([Ee])(\\\\+)?(-)?([0-9](?:[0-9]|(?<!')'(?!'))*))?)((?:(?:(?:(?:(?:(?:LL[Uu]|ll[Uu])|[Uu]LL)|[Uu]ll)|ll)|LL)|[LUlu])(?!\\\\w))?)(\\\\w*))"},"operator_overload":{"begin":"((?:[A-Z_a-z]\\\\w*\\\\s*(?:<[,<>\\\\s\\\\w]*>\\\\s*)?::)*)\\\\s*(operator)(\\\\s*(?:\\\\+\\\\+|--|\\\\(\\\\)|\\\\[]|->|\\\\+\\\\+|--|[-!\\\\&*+~]|->\\\\*|[-%*+/]|<<|>>|<=>|<=??|>=??|==|!=|[\\\\&^|]|&&|\\\\|\\\\||=|\\\\+=|-=|\\\\*=|/=|%=|<<=|>>=|&=|\\\\^=|\\\\|=|,)|\\\\s+(?:(?:new|new\\\\[]|delete|delete\\\\[])|(?:[A-Z_a-z]\\\\w*\\\\s*(?:<[,<>\\\\s\\\\w]*>\\\\s*)?::)*[A-Z_a-z]\\\\w*\\\\s*&?))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.scope.objcpp"},"2":{"name":"keyword.other.operator.overload.objcpp"},"3":{"name":"entity.name.operator.overloadee.objcpp"},"4":{"name":"punctuation.section.parameters.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.objcpp"}},"name":"meta.function.definition.parameters.operator-overload.objcpp","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards-c"}]},"operators":{"patterns":[{"match":"(?-im:(?<!\\\\w)(not|compl|sizeof|new|delete|not_eq|bitand|xor|bitor|and|or|and_eq|xor_eq|or_eq|alignof|alignas|typeid|noexcept)(?!\\\\w))","name":"keyword.operator.$1.objcpp"},{"match":"--","name":"keyword.operator.decrement.objcpp"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.objcpp"},{"match":"(?:[-%*+]|(?<!\\\\()/)=","name":"keyword.operator.assignment.compound.objcpp"},{"match":"(?:[\\\\&^]|<<|>>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.objcpp"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.objcpp"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.objcpp"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.objcpp"},{"match":"[\\\\&^|~]","name":"keyword.operator.objcpp"},{"match":"=","name":"keyword.operator.assignment.objcpp"},{"match":"[-%*+/]","name":"keyword.operator.objcpp"},{"applyEndPatternLast":true,"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.objcpp"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.objcpp"}},"patterns":[{"include":"#access-method"},{"include":"#access-member"},{"include":"#c_function_call"},{"include":"$base"}]}]},"parens-block-c":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"name":"meta.block.parens.objcpp","patterns":[{"include":"#block_innards-c"},{"match":"(?<!:):(?!:)","name":"punctuation.range-based.objcpp"}]},"parens-c":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"name":"punctuation.section.parens-c\\b.objcpp","patterns":[{"include":"$base"}]},"pragma-mark":{"captures":{"1":{"name":"meta.preprocessor.pragma.objcpp"},"2":{"name":"keyword.control.directive.pragma.pragma-mark.objcpp"},"3":{"name":"punctuation.definition.directive.objcpp"},"4":{"name":"entity.name.tag.pragma-mark.objcpp"}},"match":"^\\\\s*(((#)\\\\s*pragma\\\\s+mark)\\\\s+(.*))","name":"meta.section.objcpp"},"preprocessor-rule-conditional":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$base"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.objcpp"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards-c"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.objcpp"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-line":{"patterns":[{"match":"\\\\bdefined\\\\b(?:\\\\s*$|(?=\\\\s*\\\\(*\\\\s*(?!defined\\\\b)[$A-Z_a-z][$\\\\w]*\\\\b\\\\s*\\\\)*\\\\s*(?:\\\\n|//|/\\\\*|[:?]|&&|\\\\|\\\\||\\\\\\\\\\\\s*\\\\n)))","name":"keyword.control.directive.conditional.objcpp"},{"match":"\\\\bdefined\\\\b","name":"invalid.illegal.macro-name.objcpp"},{"include":"#comments-c"},{"include":"#strings-c"},{"include":"#number_literal"},{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.objcpp"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.objcpp"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#operators"},{"include":"#constants"},{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.objcpp"},{"include":"#line_continuation_character"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"\\\\)|(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]}]},"preprocessor-rule-define-line-blocks":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"patterns":[{"include":"#preprocessor-rule-define-line-blocks"},{"include":"#preprocessor-rule-define-line-contents"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-define-line-contents":{"patterns":[{"include":"#vararg_ellipses-c"},{"match":"(?-im:##?[A-Z_a-z]\\\\w*(?!\\\\w))","name":"variable.other.macro.argument.objcpp"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"name":"meta.block.objcpp","patterns":[{"include":"#preprocessor-rule-define-line-blocks"}]},{"match":"\\\\(","name":"punctuation.section.parens.begin.bracket.round.objcpp"},{"match":"\\\\)","name":"punctuation.section.parens.end.bracket.round.objcpp"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|return|typeid|alignof|alignas|sizeof|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"meta.function.objcpp","patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"include":"#string_escaped_char-c"},{"include":"#string_placeholder-c"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.single.objcpp","patterns":[{"include":"#string_escaped_char-c"},{"include":"#line_continuation_character"}]},{"include":"#access-method"},{"include":"#access-member"},{"include":"$base"}]},"preprocessor-rule-define-line-functions":{"patterns":[{"include":"#comments-c"},{"include":"#storage_types_c"},{"include":"#vararg_ellipses-c"},{"include":"#access-method"},{"include":"#access-member"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|return|typeid|alignof|alignas|sizeof|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.objcpp"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.objcpp"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.objcpp"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.objcpp"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.objcpp"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-disabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments-c"},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$base"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments-c"},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards-c"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments-c"},{"begin":"\\\\n","contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-enabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"},"3":{"name":"constant.numeric.preprocessor.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments-c"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.else-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.if-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"$base"}]}]}]},"preprocessor-rule-enabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments-c"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.else-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.if-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#block_innards-c"}]}]}]},"preprocessor-rule-enabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments-c"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"$base"}]}]},"preprocessor-rule-enabled-elif-block":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.objcpp","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments-c"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.in-block.objcpp","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"contentName":"comment.block.preprocessor.elif-branch.objcpp","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"#block_innards-c"}]}]},"preprocessor-rule-enabled-else":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"$base"}]},"preprocessor-rule-enabled-else-block":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.objcpp"},"1":{"name":"keyword.control.directive.conditional.objcpp"},"2":{"name":"punctuation.definition.directive.objcpp"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#block_innards-c"}]},"probably_a_parameter":{"captures":{"1":{"name":"variable.parameter.probably.defaulted.objcpp"},"2":{"name":"variable.parameter.probably.objcpp"}},"match":"([A-Z_a-z]\\\\w*)\\\\s*(?==)|(?<=\\\\w\\\\s|\\\\*/|[]\\\\&)*>])\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(?:\\\\[]\\\\s*)?[),])"},"scope_resolution":{"captures":{"1":{"patterns":[{"include":"#scope_resolution"}]},"2":{"name":"entity.name.namespace.scope-resolution.objcpp"},"3":{"patterns":[{"include":"#template_call_innards"}]},"4":{"name":"punctuation.separator.namespace.access.objcpp"}},"match":"((?:[A-Z_a-z]\\\\w*\\\\s*(?:<[,<>\\\\s\\\\w]*>\\\\s*)?::)*\\\\s*)([A-Z_a-z]\\\\w*)\\\\s*(<[,<>\\\\s\\\\w]*>\\\\s*)?(::)","name":"meta.scope-resolution.objcpp"},"special_block":{"patterns":[{"begin":"\\\\b(using)\\\\s+(namespace)\\\\s+(?:((?:[A-Z_a-z]\\\\w*\\\\s*(?:<[,<>\\\\s\\\\w]*>\\\\s*)?::)*)\\\\s*)?((?<!\\\\w)[A-Z_a-z]\\\\w*(?!\\\\w))(?=[\\\\n;])","beginCaptures":{"1":{"name":"keyword.other.using.directive.objcpp"},"2":{"name":"keyword.other.namespace.directive.objcpp storage.type.namespace.directive.objcpp"},"3":{"patterns":[{"include":"#scope_resolution"}]},"4":{"name":"entity.name.namespace.objcpp"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.objcpp"}},"name":"meta.using-namespace-declaration.objcpp"},{"begin":"(?<!\\\\w)(namespace)\\\\s+(?:((?:[A-Z_a-z]\\\\w*\\\\s*(?:<[,<>\\\\s\\\\w]*>\\\\s*)?::)*[A-Z_a-z]\\\\w*)|(?=\\\\{))","beginCaptures":{"1":{"name":"keyword.other.namespace.definition.objcpp storage.type.namespace.definition.objcpp"},"2":{"patterns":[{"match":"(?-im:(?<!\\\\w)[A-Z_a-z]\\\\w*(?!\\\\w))","name":"entity.name.type.objcpp"},{"match":"::","name":"punctuation.separator.namespace.access.objcpp"}]}},"end":"(?<=})|(?=([](),;=>\\\\[]))","name":"meta.namespace-block.objcpp","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.scope.objcpp"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.scope.objcpp"}},"patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}]},{"include":"$base"}]},{"begin":"\\\\b(?:(class)|(struct))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*\\\\b)?+(\\\\s*:\\\\s*(p(?:ublic|rotected|rivate))\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\b((\\\\s*,\\\\s*(p(?:ublic|rotected|rivate))\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\b)*))?","beginCaptures":{"1":{"name":"storage.type.class.objcpp"},"2":{"name":"storage.type.struct.objcpp"},"3":{"name":"entity.name.type.objcpp"},"5":{"name":"storage.type.modifier.access.objcpp"},"6":{"name":"entity.name.type.inherited.objcpp"},"7":{"patterns":[{"match":"(p(?:ublic|rotected|rivate))","name":"storage.type.modifier.access.objcpp"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"entity.name.type.inherited.objcpp"}]}},"end":"(?<=})|(;)|(?=([]()=>\\\\[]))","endCaptures":{"1":{"name":"punctuation.terminator.statement.objcpp"}},"name":"meta.class-struct-block.objcpp","patterns":[{"include":"#angle_brackets"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"(})(\\\\s*\\\\n)?","endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.objcpp"},"2":{"name":"invalid.illegal.you-forgot-semicolon.objcpp"}},"patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}]},{"include":"$base"}]},{"begin":"\\\\b(extern)(?=\\\\s*\\")","beginCaptures":{"1":{"name":"storage.modifier.objcpp"}},"end":"(?<=})|(?=\\\\w)|(?=\\\\s*#\\\\s*endif\\\\b)","name":"meta.extern-block.objcpp","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.objcpp"}},"end":"}|(?=\\\\s*#\\\\s*endif\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.objcpp"}},"patterns":[{"include":"#special_block"},{"include":"$base"}]},{"include":"$base"}]}]},"storage_types_c":{"patterns":[{"match":"(?<!\\\\w)(?:auto|void|char|short|int|signed|unsigned|long|float|double|bool|wchar_t)(?!\\\\w)","name":"storage.type.primitive.objcpp"},{"match":"(?<!\\\\w)(?:u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t|pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|uintmax_t)(?!\\\\w)","name":"storage.type.objcpp"},{"match":"(?<!\\\\w)(asm|__asm__|enum|union|struct)(?!\\\\w)","name":"storage.type.$1.objcpp"}]},"string_escaped_char-c":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.objcpp"}]},"string_placeholder-c":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.objcpp"}]},"strings":{"patterns":[{"begin":"(u8??|[LU])?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"},"1":{"name":"meta.encoding.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"match":"\\\\\\\\(?:u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\[\\"'?\\\\\\\\abfnrtv]","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\[0-7]{1,3}","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\x\\\\h+","name":"constant.character.escape.objcpp"},{"include":"#string_placeholder-c"}]},{"begin":"(u8??|[LU])?R\\"(?:([^\\\\t ()\\\\\\\\]{0,16})|([^\\\\t ()\\\\\\\\]*))\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"},"1":{"name":"meta.encoding.objcpp"},"3":{"name":"invalid.illegal.delimiter-too-long.objcpp"}},"end":"\\\\)\\\\2(\\\\3)\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"},"1":{"name":"invalid.illegal.delimiter-too-long.objcpp"}},"name":"string.quoted.double.raw.objcpp"}]},"strings-c":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.double.objcpp","patterns":[{"include":"#string_escaped_char-c"},{"include":"#string_placeholder-c"},{"include":"#line_continuation_character"}]},{"begin":"(?-im:(?<![A-Fa-f\\\\d])')","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.objcpp"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.objcpp"}},"name":"string.quoted.single.objcpp","patterns":[{"include":"#string_escaped_char-c"},{"include":"#line_continuation_character"}]}]},"template_call_innards":{"captures":{"0":{"name":"meta.template.call.objcpp","patterns":[{"include":"#storage_types_c"},{"include":"#constants"},{"include":"#scope_resolution"},{"match":"(?<!\\\\w)[A-Z_a-z]\\\\w*(?!\\\\w)","name":"storage.type.user-defined.objcpp"},{"include":"#operators"},{"include":"#number_literal"},{"include":"#strings"},{"match":",","name":"punctuation.separator.comma.template.argument.objcpp"}]}},"match":"<[,<>\\\\s\\\\w]*>\\\\s*"},"template_definition":{"begin":"(?-im:(?<!\\\\w)(template)\\\\s*(<))","beginCaptures":{"1":{"name":"storage.type.template.objcpp"},"2":{"name":"punctuation.section.angle-brackets.start.template.definition.objcpp"}},"end":"(?-im:(>))","endCaptures":{"1":{"name":"punctuation.section.angle-brackets.end.template.definition.objcpp"}},"name":"meta.template.definition.objcpp","patterns":[{"include":"#scope_resolution"},{"include":"#template_definition_argument"},{"include":"#template_call_innards"}]},"template_definition_argument":{"captures":{"2":{"name":"storage.type.template.argument.$1.objcpp"},"3":{"name":"storage.type.template.argument.$2.objcpp"},"4":{"name":"entity.name.type.template.objcpp"},"5":{"name":"storage.type.template.objcpp"},"6":{"name":"keyword.operator.ellipsis.template.definition.objcpp"},"7":{"name":"entity.name.type.template.objcpp"},"8":{"name":"storage.type.template.objcpp"},"9":{"name":"entity.name.type.template.objcpp"},"10":{"name":"keyword.operator.assignment.objcpp"},"11":{"name":"constant.other.objcpp"},"12":{"name":"punctuation.separator.comma.template.argument.objcpp"}},"match":"((?:(?:(?:\\\\s*([A-Z_a-z]\\\\w*)|((?:[A-Z_a-z]\\\\w*\\\\s+)+)([A-Z_a-z]\\\\w*))|([A-Z_a-z]\\\\w*)\\\\s*(\\\\.\\\\.\\\\.)\\\\s*([A-Z_a-z]\\\\w*))|((?:[A-Z_a-z]\\\\w*\\\\s+)*)([A-Z_a-z]\\\\w*)\\\\s*(=)\\\\s*(\\\\w+))\\\\s*(?:(,)|(?=>)))"},"vararg_ellipses-c":{"match":"(?<!\\\\.)\\\\.\\\\.\\\\.(?!\\\\.)","name":"punctuation.vararg-ellipses.objcpp"}}},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b.*$","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"implementation_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-implementation"},{"include":"#preprocessor-rule-disabled-implementation"},{"include":"#preprocessor-rule-other-implementation"},{"include":"#property_directive"},{"include":"#method_super"},{"include":"$base"}]},"interface_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-interface"},{"include":"#preprocessor-rule-disabled-interface"},{"include":"#preprocessor-rule-other-interface"},{"include":"#properties"},{"include":"#protocol_list"},{"include":"#method"},{"include":"$base"}]},"method":{"begin":"^([-+])\\\\s*","end":"(?=[#{])|;","name":"meta.function.objcpp","patterns":[{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.type.begin.objcpp"}},"end":"(\\\\))\\\\s*(\\\\w+)\\\\b","endCaptures":{"1":{"name":"punctuation.definition.type.end.objcpp"},"2":{"name":"entity.name.function.objcpp"}},"name":"meta.return-type.objcpp","patterns":[{"include":"#protocol_list"},{"include":"#protocol_type_qualifier"},{"include":"$base"}]},{"match":"\\\\b\\\\w+(?=:)","name":"entity.name.function.name-of-parameter.objcpp"},{"begin":"((:))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.name-of-parameter.objcpp"},"2":{"name":"punctuation.separator.arguments.objcpp"},"3":{"name":"punctuation.definition.type.begin.objcpp"}},"end":"(\\\\))\\\\s*(\\\\w+\\\\b)?","endCaptures":{"1":{"name":"punctuation.definition.type.end.objcpp"},"2":{"name":"variable.parameter.function.objcpp"}},"name":"meta.argument-type.objcpp","patterns":[{"include":"#protocol_list"},{"include":"#protocol_type_qualifier"},{"include":"$base"}]},{"include":"#comment"}]},"method_super":{"begin":"^(?=[-+])","end":"(?<=})|(?=#)","name":"meta.function-with-body.objcpp","patterns":[{"include":"#method"},{"include":"$base"}]},"pragma-mark":{"captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.pragma.objcpp"},"3":{"name":"meta.toc-list.pragma-mark.objcpp"}},"match":"^\\\\s*(#\\\\s*(pragma\\\\s+mark)\\\\s+(.*))","name":"meta.section.objcpp"},"preprocessor-rule-disabled-implementation":{"begin":"^\\\\s*(#(if)\\\\s+(0))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.if.objcpp"},"3":{"name":"constant.numeric.preprocessor.objcpp"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.else.objcpp"}},"end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#interface_innards"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","name":"comment.block.preprocessor.if-branch.objcpp","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-disabled-interface":{"begin":"^\\\\s*(#(if)\\\\s+(0))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.if.objcpp"},"3":{"name":"constant.numeric.preprocessor.objcpp"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.else.objcpp"}},"end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#interface_innards"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","name":"comment.block.preprocessor.if-branch.objcpp","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-enabled-implementation":{"begin":"^\\\\s*(#(if)\\\\s+(0*1))\\\\b","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.if.objcpp"},"3":{"name":"constant.numeric.preprocessor.objcpp"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.else.objcpp"}},"contentName":"comment.block.preprocessor.else-branch.objcpp","end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#implementation_innards"}]}]},"preprocessor-rule-enabled-interface":{"begin":"^\\\\s*(#(if)\\\\s+(0*1))\\\\b","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.if.objcpp"},"3":{"name":"constant.numeric.preprocessor.objcpp"}},"end":"^\\\\s*(#\\\\s*(endif)\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"begin":"^\\\\s*(#\\\\s*(else))\\\\b.*","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.else.objcpp"}},"contentName":"comment.block.preprocessor.else-branch.objcpp","end":"(?=^\\\\s*#\\\\s*endif\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"","end":"(?=^\\\\s*#\\\\s*(e(?:lse|ndif))\\\\b.*?(?:(?=/[*/])|$))","patterns":[{"include":"#interface_innards"}]}]},"preprocessor-rule-other-implementation":{"begin":"^\\\\s*(#\\\\s*(if(n?def)?)\\\\b.*?(?:(?=/[*/])|$))","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.objcpp"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b.*?(?:(?=/[*/])|$)","patterns":[{"include":"#implementation_innards"}]},"preprocessor-rule-other-interface":{"begin":"^\\\\s*(#\\\\s*(if(n?def)?)\\\\b.*?(?:(?=/[*/])|$))","captures":{"1":{"name":"meta.preprocessor.objcpp"},"2":{"name":"keyword.control.import.objcpp"}},"end":"^\\\\s*(#\\\\s*(endif))\\\\b.*?(?:(?=/[*/])|$)","patterns":[{"include":"#interface_innards"}]},"properties":{"patterns":[{"begin":"((@)property)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.property.objcpp"},"2":{"name":"punctuation.definition.keyword.objcpp"},"3":{"name":"punctuation.section.scope.begin.objcpp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.scope.end.objcpp"}},"name":"meta.property-with-attributes.objcpp","patterns":[{"match":"\\\\b(getter|setter|readonly|readwrite|assign|retain|copy|nonatomic|atomic|strong|weak|nonnull|nullable|null_resettable|null_unspecified|class|direct)\\\\b","name":"keyword.other.property.attribute.objcpp"}]},{"captures":{"1":{"name":"keyword.other.property.objcpp"},"2":{"name":"punctuation.definition.keyword.objcpp"}},"match":"((@)property)\\\\b","name":"meta.property.objcpp"}]},"property_directive":{"captures":{"1":{"name":"punctuation.definition.keyword.objcpp"}},"match":"(@)(dynamic|synthesize)\\\\b","name":"keyword.other.property.directive.objcpp"},"protocol_list":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.section.scope.begin.objcpp"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.section.scope.end.objcpp"}},"name":"meta.protocol-list.objcpp","patterns":[{"match":"\\\\bNS(GlyphStorage|M(utableCopying|enuItem)|C(hangeSpelling|o(ding|pying|lorPicking(Custom|Default)))|T(oolbarItemValidations|ext(Input|AttachmentCell))|I(nputServ(iceProvider|erMouseTracker)|gnoreMisspelledWords)|Obj(CTypeSerializationCallBack|ect)|D(ecimalNumberBehaviors|raggingInfo)|U(serInterfaceValidations|RL(HandleClient|DownloadDelegate|ProtocolClient|AuthenticationChallengeSender))|Validated((?:Toobar|UserInterface)Item)|Locking)\\\\b","name":"support.other.protocol.objcpp"}]},"protocol_type_qualifier":{"match":"\\\\b(in|out|inout|oneway|bycopy|byref|nonnull|nullable|_Nonnull|_Nullable|_Null_unspecified)\\\\b","name":"storage.modifier.protocol.objcpp"},"special_variables":{"patterns":[{"match":"\\\\b_cmd\\\\b","name":"variable.other.selector.objcpp"},{"match":"\\\\b(s(?:elf|uper))\\\\b","name":"variable.language.objcpp"}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.objcpp"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.objcpp"}]},"string_placeholder":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.objcpp"},{"captures":{"1":{"name":"invalid.illegal.placeholder.objcpp"}},"match":"(%)(?!\\"\\\\s*(PRI|SCN))"}]}},"scopeName":"source.objcpp"}`))];export{e as default}; diff --git a/docs/assets/ocaml-DOYhgXv0.js b/docs/assets/ocaml-DOYhgXv0.js new file mode 100644 index 0000000..55bda71 --- /dev/null +++ b/docs/assets/ocaml-DOYhgXv0.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"OCaml","fileTypes":[".ml",".mli"],"name":"ocaml","patterns":[{"include":"#comment"},{"include":"#pragma"},{"include":"#decl"}],"repository":{"attribute":{"begin":"(\\\\[)\\\\s*((?<![-!#-\\\\&*+./:<-@^|~])@{1,3}(?![-!#-\\\\&*+./:<-@^|~]))","beginCaptures":{"1":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"},"2":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":"]","endCaptures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}},"patterns":[{"include":"#attributePayload"}]},"attributeIdentifier":{"captures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"punctuation.definition.tag"}},"match":"((?<![-!#-\\\\&*+./:<-@^|~])%(?![-!#-\\\\&*+./:<-@^|~]))((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)"},"attributePayload":{"patterns":[{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)%)(?![-!#-\\\\&*+./:<-@^|~])","end":"((?<![-!#-\\\\&*+./:<-@^|~])[:?](?![-!#-\\\\&*+./:<-@^|~]))|(?<=\\\\s)|(?=])","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#pathModuleExtended"},{"include":"#pathRecord"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?=])","patterns":[{"include":"#signature"},{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)\\\\?)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?=])","patterns":[{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)\\\\?)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?=])|\\\\bwhen\\\\b","endCaptures":{"1":{}},"patterns":[{"include":"#pattern"}]},{"begin":"(?<=(?:\\\\P{word}|^)when)(?!\\\\p{word})","end":"(?=])","patterns":[{"include":"#term"}]}]},{"include":"#term"}]},"bindClassTerm":{"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)(?:and|class|type))(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])(:)|(=)(?![-!#-\\\\&*+./:<-@^|~])|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"}},"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)(?:and|class|type))(?!\\\\p{word})","end":"(?=(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*\\\\s*,|[^%\\\\s[:lower:]])|(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*|(?=\\\\btype\\\\b)","endCaptures":{"0":{"name":"entity.name.function strong emphasis"}},"patterns":[{"include":"#attributeIdentifier"}]},{"begin":"\\\\[","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"]","patterns":[{"include":"#type"}]},{"include":"#bindTermArgs"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?<![-!#-\\\\&*+./:<-@^|~])=(?![-!#-\\\\&*+./:<-@^|~])|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|val)\\\\b)","endCaptures":{"0":{"name":"support.type strong"}},"patterns":[{"include":"#literalClassType"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\band\\\\b|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"}},"patterns":[{"include":"#term"}]}]},"bindClassType":{"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)(?:and|class|type))(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])(:)|(=)(?![-!#-\\\\&*+./:<-@^|~])|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"}},"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)(?:and|class|type))(?!\\\\p{word})","end":"(?=(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*\\\\s*,|[^%\\\\s[:lower:]])|(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*|(?=\\\\btype\\\\b)","endCaptures":{"0":{"name":"entity.name.function strong emphasis"}},"patterns":[{"include":"#attributeIdentifier"}]},{"begin":"\\\\[","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"]","patterns":[{"include":"#type"}]},{"include":"#bindTermArgs"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?<![-!#-\\\\&*+./:<-@^|~])=(?![-!#-\\\\&*+./:<-@^|~])|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|val)\\\\b)","endCaptures":{"0":{"name":"support.type strong"}},"patterns":[{"include":"#literalClassType"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\band\\\\b|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"}},"patterns":[{"include":"#literalClassType"}]}]},"bindConstructor":{"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)exception)(?!\\\\p{word})|(?<=[^-!#-\\\\&*+./:<-@^|~]\\\\+=|^\\\\+=|[^-!#-\\\\&*+./:<-@^|~]=|^=|[^-!#-\\\\&*+./:<-@^|~]\\\\||^\\\\|)(?![-!#-\\\\&*+./:<-@^|~])","end":"(:)|\\\\b(of)\\\\b|((?<![-!#-\\\\&*+./:<-@^|~])\\\\|(?![-!#-\\\\&*+./:<-@^|~]))|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"punctuation.definition.tag"},"3":{"name":"support.type strong"}},"patterns":[{"include":"#attributeIdentifier"},{"match":"\\\\.\\\\.","name":"variable.other.class.js message.error variable.interpolation string.regexp"},{"match":"\\\\b\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*\\\\b(?!\\\\s*(?:\\\\.|\\\\([^*]))","name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"},{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])|(?<=(?:\\\\P{word}|^)of)(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])\\\\|(?![-!#-\\\\&*+./:<-@^|~])|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"support.type strong"}},"patterns":[{"include":"#type"}]}]},"bindSignature":{"patterns":[{"include":"#comment"},{"begin":"(?<=(?:\\\\P{word}|^)type)(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])=(?![-!#-\\\\&*+./:<-@^|~])","endCaptures":{"0":{"name":"support.type strong"}},"patterns":[{"include":"#comment"},{"include":"#pathModuleExtended"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\band\\\\b|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"}},"patterns":[{"include":"#signature"}]}]},"bindStructure":{"patterns":[{"include":"#comment"},{"begin":"(?<=(?:\\\\P{word}|^)and)(?!\\\\p{word})|(?=\\\\p{upper})","end":"(?<![-!#-\\\\&*+./:<-@^|~])(:(?!=))|(:?=)(?![-!#-\\\\&*+./:<-@^|~])|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|open|type|val)\\\\b)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#comment"},{"match":"\\\\bmodule\\\\b","name":"markup.inserted constant.language support.constant.property-value entity.name.filename"},{"match":"\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*","name":"entity.name.function strong emphasis"},{"begin":"\\\\((?!\\\\))","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\)","patterns":[{"include":"#comment"},{"begin":"(?<![-!#-\\\\&*+./:<-@^|~]):(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"}},"end":"(?=\\\\))","patterns":[{"include":"#signature"}]},{"include":"#variableModule"}]},{"include":"#literalUnit"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\b(and)\\\\b|((?<![-!#-\\\\&*+./:<-@^|~])=(?![-!#-\\\\&*+./:<-@^|~]))|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#signature"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]:|^:|[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\b(?:(and)|(with))\\\\b|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"},"2":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"}},"patterns":[{"include":"#structure"}]}]},"bindTerm":{"patterns":[{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)!)(?![-!#-\\\\&*+./:<-@^|~])|(?<=(?:\\\\P{word}|^)(?:and|external|let|method|val))(?!\\\\p{word})","end":"\\\\b(module)\\\\b|\\\\b(open)\\\\b|(?<![-!#-\\\\&*+./:<-@^|~])(:)|((?<![-!#-\\\\&*+./:<-@^|~])=(?![-!#-\\\\&*+./:<-@^|~]))(?![-!#-\\\\&*+./:<-@^|~])|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"},"2":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"4":{"name":"support.type strong"}},"patterns":[{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)!)(?![-!#-\\\\&*+./:<-@^|~])|(?<=(?:\\\\P{word}|^)(?:and|external|let|method|val))(?!\\\\p{word})","end":"(?=\\\\b(?:module|open)\\\\b)|(?=(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*\\\\s*,|[^%\\\\s[:lower:]])|\\\\b(rec)\\\\b|((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"2":{"name":"entity.name.function strong emphasis"}},"patterns":[{"include":"#attributeIdentifier"},{"include":"#comment"}]},{"begin":"(?<=(?:\\\\P{word}|^)rec)(?!\\\\p{word})","end":"((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)|(?=[^\\\\s[:alpha:]])","endCaptures":{"0":{"name":"entity.name.function strong emphasis"}},"patterns":[{"include":"#bindTermArgs"}]},{"include":"#bindTermArgs"}]},{"begin":"(?<=(?:\\\\P{word}|^)module)(?!\\\\p{word})","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#declModule"}]},{"begin":"(?<=(?:\\\\P{word}|^)open)(?!\\\\p{word})","end":"(?=\\\\bin\\\\b)|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#pathModuleSimple"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?<![-!#-\\\\&*+./:<-@^|~])=(?![-!#-\\\\&*+./:<-@^|~])|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"support.type strong"}},"patterns":[{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\btype\\\\b|(?=\\\\S)","endCaptures":{"0":{"name":"keyword.control"}}},{"begin":"(?<=(?:\\\\P{word}|^)type)(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])\\\\.(?![-!#-\\\\&*+./:<-@^|~])","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#pattern"}]},{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\band\\\\b|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"}},"patterns":[{"include":"#term"}]}]},"bindTermArgs":{"patterns":[{"applyEndPatternLast":true,"begin":"[?~]","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":":|(?=\\\\S)","endCaptures":{"0":{"name":"keyword"}},"patterns":[{"begin":"(?<=[^-!#-\\\\&*+./:<-@^|~]~|^~|[^-!#-\\\\&*+./:<-@^|~]\\\\?|^\\\\?)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*|(?<=\\\\))","endCaptures":{"0":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"}},"patterns":[{"include":"#comment"},{"begin":"\\\\((?!\\\\*)","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\)","patterns":[{"begin":"(?<=\\\\()","end":"[:=]","endCaptures":{"0":{"name":"keyword"}},"patterns":[{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename"}]},{"begin":"(?<=:)","end":"=|(?=\\\\))","endCaptures":{"0":{"name":"keyword"}},"patterns":[{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?=\\\\))","patterns":[{"include":"#term"}]}]}]}]},{"include":"#pattern"}]},"bindType":{"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)(?:and|type))(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])\\\\+=|=(?![-!#-\\\\&*+./:<-@^|~])|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"support.type strong"}},"patterns":[{"include":"#attributeIdentifier"},{"include":"#pathType"},{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"entity.name.function strong"},{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]\\\\+|^\\\\+|[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\band\\\\b|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"}},"patterns":[{"include":"#bindConstructor"}]}]},"comment":{"patterns":[{"include":"#attribute"},{"include":"#extension"},{"include":"#commentBlock"},{"include":"#commentDoc"}]},"commentBlock":{"begin":"\\\\(\\\\*(?!\\\\*[^)])","contentName":"emphasis","end":"\\\\*\\\\)","name":"comment constant.regexp meta.separator.markdown","patterns":[{"include":"#commentBlock"},{"include":"#commentDoc"}]},"commentDoc":{"begin":"\\\\(\\\\*\\\\*","end":"\\\\*\\\\)","name":"comment constant.regexp meta.separator.markdown","patterns":[{"match":"\\\\*"},{"include":"#comment"}]},"decl":{"patterns":[{"include":"#declClass"},{"include":"#declException"},{"include":"#declInclude"},{"include":"#declModule"},{"include":"#declOpen"},{"include":"#declTerm"},{"include":"#declType"}]},"declClass":{"begin":"\\\\bclass\\\\b","beginCaptures":{"0":{"name":"entity.name.class constant.numeric markup.underline"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#comment"},{"include":"#pragma"},{"begin":"(?<=(?:\\\\P{word}|^)class)(?!\\\\p{word})","beginCaptures":{"0":{"name":"entity.name.class constant.numeric markup.underline"}},"end":"\\\\btype\\\\b|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|val)\\\\b)","endCaptures":{"0":{"name":"keyword"}},"patterns":[{"include":"#bindClassTerm"}]},{"begin":"(?<=(?:\\\\P{word}|^)type)(?!\\\\p{word})","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#bindClassType"}]}]},"declException":{"begin":"\\\\bexception\\\\b","beginCaptures":{"0":{"name":"keyword markup.underline"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#attributeIdentifier"},{"include":"#comment"},{"include":"#pragma"},{"include":"#bindConstructor"}]},"declInclude":{"begin":"\\\\binclude\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#attributeIdentifier"},{"include":"#comment"},{"include":"#pragma"},{"include":"#signature"}]},"declModule":{"begin":"(?<=(?:\\\\P{word}|^)module)(?!\\\\p{word})|\\\\bmodule\\\\b","beginCaptures":{"0":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename markup.underline"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#comment"},{"include":"#pragma"},{"begin":"(?<=(?:\\\\P{word}|^)module)(?!\\\\p{word})","end":"\\\\b(type)\\\\b|(?=\\\\p{upper})","endCaptures":{"0":{"name":"keyword"}},"patterns":[{"include":"#attributeIdentifier"},{"include":"#comment"},{"match":"\\\\brec\\\\b","name":"variable.other.class.js message.error variable.interpolation string.regexp"}]},{"begin":"(?<=(?:\\\\P{word}|^)type)(?!\\\\p{word})","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#bindSignature"}]},{"begin":"(?=\\\\p{upper})","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#bindStructure"}]}]},"declOpen":{"begin":"\\\\bopen\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#attributeIdentifier"},{"include":"#comment"},{"include":"#pragma"},{"include":"#pathModuleExtended"}]},"declTerm":{"begin":"\\\\b(?:(external|val)|(method)|(let))\\\\b(!?)","beginCaptures":{"1":{"name":"support.type markup.underline"},"2":{"name":"storage.type markup.underline"},"3":{"name":"keyword.control markup.underline"},"4":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#comment"},{"include":"#pragma"},{"include":"#bindTerm"}]},"declType":{"begin":"(?<=(?:\\\\P{word}|^)type)(?!\\\\p{word})|\\\\btype\\\\b","beginCaptures":{"0":{"name":"keyword markup.underline"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#comment"},{"include":"#pragma"},{"include":"#bindType"}]},"extension":{"begin":"(\\\\[)((?<![-!#-\\\\&*+./:<-@^|~])%{1,3}(?![-!#-\\\\&*+./:<-@^|~]))","beginCaptures":{"1":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"},"2":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":"]","endCaptures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}},"patterns":[{"include":"#attributePayload"}]},"literal":{"patterns":[{"include":"#termConstructor"},{"include":"#literalArray"},{"include":"#literalBoolean"},{"include":"#literalCharacter"},{"include":"#literalList"},{"include":"#literalNumber"},{"include":"#literalObjectTerm"},{"include":"#literalString"},{"include":"#literalRecord"},{"include":"#literalUnit"}]},"literalArray":{"begin":"\\\\[\\\\|","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}},"end":"\\\\|]","patterns":[{"include":"#term"}]},"literalBoolean":{"match":"\\\\bfalse|true\\\\b","name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"},"literalCharacter":{"begin":"(?<!\\\\p{word})'","end":"'","name":"markup.punctuation.quote.beginning","patterns":[{"include":"#literalCharacterEscape"}]},"literalCharacterEscape":{"match":"\\\\\\\\(?:[\\"'\\\\\\\\bnrt]|\\\\d\\\\d\\\\d|x\\\\h\\\\h|o[0-3][0-7][0-7])"},"literalClassType":{"patterns":[{"include":"#comment"},{"begin":"\\\\bobject\\\\b","captures":{"0":{"name":"punctuation.definition.tag emphasis"}},"end":"\\\\bend\\\\b","patterns":[{"begin":"\\\\binherit\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"begin":"\\\\bas\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#variablePattern"}]},{"include":"#type"}]},{"include":"#pattern"},{"include":"#declTerm"}]},{"begin":"\\\\[","end":"]"}]},"literalList":{"patterns":[{"begin":"\\\\[","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}},"end":"]","patterns":[{"include":"#term"}]}]},"literalNumber":{"match":"(?<!\\\\p{alpha})\\\\d\\\\d*(\\\\.\\\\d\\\\d*)?","name":"constant.numeric"},"literalObjectTerm":{"patterns":[{"include":"#comment"},{"begin":"\\\\bobject\\\\b","captures":{"0":{"name":"punctuation.definition.tag emphasis"}},"end":"\\\\bend\\\\b","patterns":[{"begin":"\\\\binherit\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"begin":"\\\\bas\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":";;|(?=[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#variablePattern"}]},{"include":"#term"}]},{"include":"#pattern"},{"include":"#declTerm"}]},{"begin":"\\\\[","end":"]"}]},"literalRecord":{"begin":"\\\\{","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong strong"}},"end":"}","patterns":[{"begin":"(?<=[;{])","end":"(:)|(=)|(;)|(with)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"4":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#comment"},{"include":"#pathModulePrefixSimple"},{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"}]},{"begin":"(?<=(?:\\\\P{word}|^)with)(?!\\\\p{word})","end":"(:)|(=)|(;)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(;)|(=)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":";|(?=})","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#term"}]}]},"literalString":{"patterns":[{"begin":"\\"","end":"\\"","name":"string beginning.punctuation.definition.quote.markdown","patterns":[{"include":"#literalStringEscape"}]},{"begin":"(\\\\{)([_[:lower:]]*?)(\\\\|)","end":"(\\\\|)(\\\\2)(})","name":"string beginning.punctuation.definition.quote.markdown","patterns":[{"include":"#literalStringEscape"}]}]},"literalStringEscape":{"match":"\\\\\\\\(?:[\\"\\\\\\\\bnrt]|\\\\d\\\\d\\\\d|x\\\\h\\\\h|o[0-3][0-7][0-7])"},"literalUnit":{"match":"\\\\(\\\\)","name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"},"pathModuleExtended":{"patterns":[{"include":"#pathModulePrefixExtended"},{"match":"\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*","name":"entity.name.class constant.numeric"}]},"pathModulePrefixExtended":{"begin":"\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*\\\\.|$|\\\\()","beginCaptures":{"0":{"name":"entity.name.class constant.numeric"}},"end":"(?![.\\\\s]|$|\\\\()","patterns":[{"include":"#comment"},{"begin":"\\\\(","captures":{"0":{"name":"keyword.control"}},"end":"\\\\)","patterns":[{"match":"\\\\b((?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*\\\\)))","name":"string.other.link variable.language variable.parameter emphasis"},{"include":"#structure"}]},{"begin":"(?<![-!#-\\\\&*+./:<-@^|~])\\\\.(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"keyword strong"}},"end":"\\\\b((?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*\\\\.|$))|\\\\b((?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*(?:$|\\\\()))|\\\\b((?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*\\\\)))|(?![.\\\\s[:upper:]]|$|\\\\()","endCaptures":{"1":{"name":"entity.name.class constant.numeric"},"2":{"name":"entity.name.function strong"},"3":{"name":"string.other.link variable.language variable.parameter emphasis"}}}]},"pathModulePrefixExtendedParens":{"begin":"\\\\(","captures":{"0":{"name":"keyword.control"}},"end":"\\\\)","patterns":[{"match":"\\\\b((?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*\\\\)))","name":"string.other.link variable.language variable.parameter emphasis"},{"include":"#structure"}]},"pathModulePrefixSimple":{"begin":"\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*\\\\.)","beginCaptures":{"0":{"name":"entity.name.class constant.numeric"}},"end":"(?![.\\\\s])","patterns":[{"include":"#comment"},{"begin":"(?<![-!#-\\\\&*+./:<-@^|~])\\\\.(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"keyword strong"}},"end":"\\\\b((?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*\\\\.))|\\\\b((?=\\\\p{upper})[_[:alpha:]]['[:word:]]*(?=\\\\s*))|(?![.\\\\s[:upper:]])","endCaptures":{"1":{"name":"entity.name.class constant.numeric"},"2":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}}}]},"pathModuleSimple":{"patterns":[{"include":"#pathModulePrefixSimple"},{"match":"\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*","name":"entity.name.class constant.numeric"}]},"pathRecord":{"patterns":[{"begin":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","end":"(?=[^.\\\\s])(?!\\\\(\\\\*)","patterns":[{"include":"#comment"},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)\\\\.)(?![-!#-\\\\&*+./:<-@^|~])|(?<![-!#-\\\\&*+./:<-@^|~])\\\\.(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"keyword strong"}},"end":"((?<![-!#-\\\\&*+./:<-@^|~])\\\\.(?![-!#-\\\\&*+./:<-@^|~]))|((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|mutable|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)|(?<=\\\\))|(?<=])","endCaptures":{"1":{"name":"keyword strong"},"2":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"}},"patterns":[{"include":"#comment"},{"include":"#pathModulePrefixSimple"},{"begin":"\\\\((?!\\\\*)","captures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":"\\\\)","patterns":[{"include":"#term"}]},{"begin":"\\\\[","captures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":"]","patterns":[{"include":"#pattern"}]}]}]}]},"pattern":{"patterns":[{"include":"#comment"},{"include":"#patternArray"},{"include":"#patternLazy"},{"include":"#patternList"},{"include":"#patternMisc"},{"include":"#patternModule"},{"include":"#patternRecord"},{"include":"#literal"},{"include":"#patternParens"},{"include":"#patternType"},{"include":"#variablePattern"},{"include":"#termOperator"}]},"patternArray":{"begin":"\\\\[\\\\|","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}},"end":"\\\\|]","patterns":[{"include":"#pattern"}]},"patternLazy":{"match":"lazy","name":"variable.other.class.js message.error variable.interpolation string.regexp"},"patternList":{"begin":"\\\\[","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}},"end":"]","patterns":[{"include":"#pattern"}]},"patternMisc":{"captures":{"1":{"name":"string.regexp strong"},"2":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"match":"((?<![-!#-\\\\&*+./:<-@^|~]),(?![-!#-\\\\&*+./:<-@^|~]))|([-!#-\\\\&*+./:<-@^|~]+)|\\\\b(as)\\\\b"},"patternModule":{"begin":"\\\\bmodule\\\\b","beginCaptures":{"0":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"}},"end":"(?=\\\\))","patterns":[{"include":"#declModule"}]},"patternParens":{"begin":"\\\\((?!\\\\))","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\)","patterns":[{"include":"#comment"},{"begin":"(?<![-!#-\\\\&*+./:<-@^|~]):(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"}},"end":"(?=\\\\))","patterns":[{"include":"#type"}]},{"include":"#pattern"}]},"patternRecord":{"begin":"\\\\{","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong strong"}},"end":"}","patterns":[{"begin":"(?<=[;{])","end":"(:)|(=)|(;)|(with)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"4":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#comment"},{"include":"#pathModulePrefixSimple"},{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"}]},{"begin":"(?<=(?:\\\\P{word}|^)with)(?!\\\\p{word})","end":"(:)|(=)|(;)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(;)|(=)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":";|(?=})","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#pattern"}]}]},"patternType":{"begin":"\\\\btype\\\\b","beginCaptures":{"0":{"name":"keyword"}},"end":"(?=\\\\))","patterns":[{"include":"#declType"}]},"pragma":{"begin":"(?<![-!#-\\\\&*+./:<-@^|~])#(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#comment"},{"include":"#literalNumber"},{"include":"#literalString"}]},"signature":{"patterns":[{"include":"#comment"},{"include":"#signatureLiteral"},{"include":"#signatureFunctor"},{"include":"#pathModuleExtended"},{"include":"#signatureParens"},{"include":"#signatureRecovered"},{"include":"#signatureConstraints"}]},"signatureConstraints":{"begin":"\\\\bwith\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"}},"end":"(?=\\\\))|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"begin":"(?<=(?:\\\\P{word}|^)with)(?!\\\\p{word})","end":"\\\\b(?:(module)|(type))\\\\b","endCaptures":{"1":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"},"2":{"name":"keyword"}}},{"include":"#declModule"},{"include":"#declType"}]},"signatureFunctor":{"patterns":[{"begin":"\\\\bfunctor\\\\b","beginCaptures":{"0":{"name":"keyword"}},"end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"begin":"(?<=(?:\\\\P{word}|^)functor)(?!\\\\p{word})","end":"(\\\\(\\\\))|(\\\\((?!\\\\)))","endCaptures":{"1":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"},"2":{"name":"punctuation.definition.tag"}}},{"begin":"(?<=\\\\()","end":"(:)|(\\\\))","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#variableModule"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#signature"}]},{"begin":"(?<=\\\\))","end":"(\\\\()|((?<![-!#-\\\\&*+./:<-@^|~])->(?![-!#-\\\\&*+./:<-@^|~]))","endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"support.type strong"}}},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)->)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#signature"}]}]},{"match":"(?<![-!#-\\\\&*+./:<-@^|~])->(?![-!#-\\\\&*+./:<-@^|~])","name":"support.type strong"}]},"signatureLiteral":{"begin":"\\\\bsig\\\\b","captures":{"0":{"name":"punctuation.definition.tag emphasis"}},"end":"\\\\bend\\\\b","patterns":[{"include":"#comment"},{"include":"#pragma"},{"include":"#decl"}]},"signatureParens":{"begin":"\\\\((?!\\\\))","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\)","patterns":[{"include":"#comment"},{"begin":"(?<![-!#-\\\\&*+./:<-@^|~]):(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"}},"end":"(?=\\\\))","patterns":[{"include":"#signature"}]},{"include":"#signature"}]},"signatureRecovered":{"patterns":[{"begin":"\\\\(|(?<=[^-!#-\\\\&*+./:<-@^|~]:|^:|[^-!#-\\\\&*+./:<-@^|~]->|^->)(?![-!#-\\\\&*+./:<-@^|~])|(?<=(?:\\\\P{word}|^)(?:include|open))(?!\\\\p{word})","end":"\\\\bmodule\\\\b|(?!$|\\\\s|\\\\bmodule\\\\b)","endCaptures":{"0":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"}}},{"begin":"(?<=(?:\\\\P{word}|^)module)(?!\\\\p{word})","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"begin":"(?<=(?:\\\\P{word}|^)module)(?!\\\\p{word})","end":"\\\\btype\\\\b","endCaptures":{"0":{"name":"keyword"}}},{"begin":"(?<=(?:\\\\P{word}|^)type)(?!\\\\p{word})","end":"\\\\bof\\\\b","endCaptures":{"0":{"name":"punctuation.definition.tag"}}},{"begin":"(?<=(?:\\\\P{word}|^)of)(?!\\\\p{word})","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#signature"}]}]}]},"structure":{"patterns":[{"include":"#comment"},{"include":"#structureLiteral"},{"include":"#structureFunctor"},{"include":"#pathModuleExtended"},{"include":"#structureParens"}]},"structureFunctor":{"patterns":[{"begin":"\\\\bfunctor\\\\b","beginCaptures":{"0":{"name":"keyword"}},"end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"begin":"(?<=(?:\\\\P{word}|^)functor)(?!\\\\p{word})","end":"(\\\\(\\\\))|(\\\\((?!\\\\)))","endCaptures":{"1":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"},"2":{"name":"punctuation.definition.tag"}}},{"begin":"(?<=\\\\()","end":"(:)|(\\\\))","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#variableModule"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.tag"}},"patterns":[{"include":"#signature"}]},{"begin":"(?<=\\\\))","end":"(\\\\()|((?<![-!#-\\\\&*+./:<-@^|~])->(?![-!#-\\\\&*+./:<-@^|~]))","endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"support.type strong"}}},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)->)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","patterns":[{"include":"#structure"}]}]},{"match":"(?<![-!#-\\\\&*+./:<-@^|~])->(?![-!#-\\\\&*+./:<-@^|~])","name":"support.type strong"}]},"structureLiteral":{"begin":"\\\\bstruct\\\\b","captures":{"0":{"name":"punctuation.definition.tag emphasis"}},"end":"\\\\bend\\\\b","patterns":[{"include":"#comment"},{"include":"#pragma"},{"include":"#decl"}]},"structureParens":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\)","patterns":[{"include":"#structureUnpack"},{"include":"#structure"}]},"structureUnpack":{"begin":"\\\\bval\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":"(?=\\\\))"},"term":{"patterns":[{"include":"#termLet"},{"include":"#termAtomic"}]},"termAtomic":{"patterns":[{"include":"#comment"},{"include":"#termConditional"},{"include":"#termConstructor"},{"include":"#termDelim"},{"include":"#termFor"},{"include":"#termFunction"},{"include":"#literal"},{"include":"#termMatch"},{"include":"#termMatchRule"},{"include":"#termPun"},{"include":"#termOperator"},{"include":"#termTry"},{"include":"#termWhile"},{"include":"#pathRecord"}]},"termConditional":{"match":"\\\\b(?:if|then|else)\\\\b","name":"keyword.control"},"termConstructor":{"patterns":[{"include":"#pathModulePrefixSimple"},{"match":"\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*","name":"constant.language constant.numeric entity.other.attribute-name.id.css strong"}]},"termDelim":{"patterns":[{"begin":"\\\\((?!\\\\))","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\)","patterns":[{"include":"#term"}]},{"begin":"\\\\bbegin\\\\b","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\bend\\\\b","patterns":[{"include":"#attributeIdentifier"},{"include":"#term"}]}]},"termFor":{"patterns":[{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control"}},"end":"\\\\bdone\\\\b","endCaptures":{"0":{"name":"keyword.control"}},"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)for)(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])=(?![-!#-\\\\&*+./:<-@^|~])","endCaptures":{"0":{"name":"support.type strong"}},"patterns":[{"include":"#pattern"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":"\\\\b(?:downto|to)\\\\b","endCaptures":{"0":{"name":"keyword.control"}},"patterns":[{"include":"#term"}]},{"begin":"(?<=(?:\\\\P{word}|^)to)(?!\\\\p{word})","end":"\\\\bdo\\\\b","endCaptures":{"0":{"name":"keyword.control"}},"patterns":[{"include":"#term"}]},{"begin":"(?<=(?:\\\\P{word}|^)do)(?!\\\\p{word})","end":"(?=\\\\bdone\\\\b)","patterns":[{"include":"#term"}]}]}]},"termFunction":{"captures":{"1":{"name":"storage.type"},"2":{"name":"storage.type"}},"match":"\\\\b(?:(fun)|(function))\\\\b"},"termLet":{"patterns":[{"begin":"(?:(?<=[^-!#-\\\\&*+./:<-@^|~]=|^=|[^-!#-\\\\&*+./:<-@^|~]->|^->)(?![-!#-\\\\&*+./:<-@^|~])|(?<=[(;]))(?=\\\\s|\\\\blet\\\\b)|(?<=(?:\\\\P{word}|^)(?:begin|do|else|in|struct|then|try))(?!\\\\p{word})|(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)@@)(?![-!#-\\\\&*+./:<-@^|~])\\\\s+","end":"\\\\b(?:(and)|(let))\\\\b|(?=\\\\S)(?!\\\\(\\\\*)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"},"2":{"name":"storage.type markup.underline"}},"patterns":[{"include":"#comment"}]},{"begin":"(?<=(?:\\\\P{word}|^)(?:and|let))(?!\\\\p{word})|(let)","beginCaptures":{"1":{"name":"storage.type markup.underline"}},"end":"\\\\b(?:(and)|(in))\\\\b|(?=[])}]|\\\\b(?:end|class|exception|external|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp markup.underline"},"2":{"name":"storage.type markup.underline"}},"patterns":[{"include":"#bindTerm"}]}]},"termMatch":{"begin":"\\\\bmatch\\\\b","captures":{"0":{"name":"keyword.control"}},"end":"\\\\bwith\\\\b","patterns":[{"include":"#term"}]},"termMatchRule":{"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)(?:fun|function|with))(?!\\\\p{word})","end":"(?<![-!#-\\\\&*+./:<-@^|~])(\\\\|)|(->)(?![-!#-\\\\&*+./:<-@^|~])","endCaptures":{"1":{"name":"support.type strong"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#comment"},{"include":"#attributeIdentifier"},{"include":"#pattern"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@\\\\[^|~]|^)\\\\|)(?![-!#-\\\\&*+./:<-@^|~])|(?<![-!#-\\\\&*+./:<-@^|~])\\\\|(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"support.type strong"}},"end":"(?<![-!#-\\\\&*+./:<-@^|~])(\\\\|)|(->)(?![-!#-\\\\&*+./:<-@^|~])","endCaptures":{"1":{"name":"support.type strong"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#pattern"},{"begin":"\\\\bwhen\\\\b","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":"(?=(?<![-!#-\\\\&*+./:<-@^|~])->(?![-!#-\\\\&*+./:<-@^|~]))","patterns":[{"include":"#term"}]}]}]},"termOperator":{"patterns":[{"begin":"(?<![-!#-\\\\&*+./:<-@^|~])#(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"keyword"}},"end":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","endCaptures":{"0":{"name":"entity.name.function"}}},{"captures":{"0":{"name":"keyword.control strong"}},"match":"<-"},{"captures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"2":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"match":"(,|[-!#-\\\\&*+./:<-@^|~]+)|(;)"},{"match":"\\\\b(?:and|assert|asr|land|lazy|lsr|lxor|mod|new|or)\\\\b","name":"variable.other.class.js message.error variable.interpolation string.regexp"}]},"termPun":{"applyEndPatternLast":true,"begin":"(?<![-!#-\\\\&*+./:<-@^|~])\\\\?|~(?![-!#-\\\\&*+./:<-@^|~])","beginCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"end":":|(?=[^:\\\\s])","endCaptures":{"0":{"name":"keyword"}},"patterns":[{"begin":"(?<=[^-!#-\\\\&*+./:<-@^|~]\\\\?|^\\\\?|[^-!#-\\\\&*+./:<-@^|~]~|^~)(?![-!#-\\\\&*+./:<-@^|~])","end":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","endCaptures":{"0":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"}}}]},"termTry":{"begin":"\\\\btry\\\\b","captures":{"0":{"name":"keyword.control"}},"end":"\\\\bwith\\\\b","patterns":[{"include":"#term"}]},"termWhile":{"patterns":[{"begin":"\\\\bwhile\\\\b","beginCaptures":{"0":{"name":"keyword.control"}},"end":"\\\\bdone\\\\b","endCaptures":{"0":{"name":"keyword.control"}},"patterns":[{"begin":"(?<=(?:\\\\P{word}|^)while)(?!\\\\p{word})","end":"\\\\bdo\\\\b","endCaptures":{"0":{"name":"keyword.control"}},"patterns":[{"include":"#term"}]},{"begin":"(?<=(?:\\\\P{word}|^)do)(?!\\\\p{word})","end":"(?=\\\\bdone\\\\b)","patterns":[{"include":"#term"}]}]}]},"type":{"patterns":[{"include":"#comment"},{"match":"\\\\bnonrec\\\\b","name":"variable.other.class.js message.error variable.interpolation string.regexp"},{"include":"#pathModulePrefixExtended"},{"include":"#typeLabel"},{"include":"#typeObject"},{"include":"#typeOperator"},{"include":"#typeParens"},{"include":"#typePolymorphicVariant"},{"include":"#typeRecord"},{"include":"#typeConstructor"}]},"typeConstructor":{"patterns":[{"begin":"(_)|((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)|(')((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)|(?<=[^*]\\\\)|])","beginCaptures":{"1":{"name":"comment constant.regexp meta.separator.markdown"},"3":{"name":"string.other.link variable.language variable.parameter emphasis strong emphasis"},"4":{"name":"keyword.control emphasis"}},"end":"(?=\\\\((?!\\\\*)|[])-.:;=>\\\\[{|}])|((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)[:aceps]*(?!\\\\(\\\\*|\\\\p{word})|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)","endCaptures":{"1":{"name":"entity.name.function strong"}},"patterns":[{"include":"#comment"},{"include":"#pathModulePrefixExtended"}]}]},"typeLabel":{"patterns":[{"begin":"(\\\\??)((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)\\\\s*((?<![-!#-\\\\&*+./:<-@^|~]):(?![-!#-\\\\&*+./:<-@^|~]))","captures":{"1":{"name":"keyword strong emphasis"},"2":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"},"3":{"name":"keyword"}},"end":"(?=(?<![-!#-\\\\&*+./:<-@^|~])->(?![-!#-\\\\&*+./:<-@^|~]))","patterns":[{"include":"#type"}]}]},"typeModule":{"begin":"\\\\bmodule\\\\b","beginCaptures":{"0":{"name":"markup.inserted constant.language support.constant.property-value entity.name.filename"}},"end":"(?=\\\\))","patterns":[{"include":"#pathModuleExtended"},{"include":"#signatureConstraints"}]},"typeObject":{"begin":"<","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong strong"}},"end":">","patterns":[{"begin":"(?<=[;<])","end":"(:)|(?=>)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"4":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#comment"},{"include":"#pathModulePrefixSimple"},{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(;)|(?=>)","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#type"}]}]},"typeOperator":{"patterns":[{"match":"[,;]|[-!#-\\\\&*+./:<-@^|~]+","name":"variable.other.class.js message.error variable.interpolation string.regexp strong"}]},"typeParens":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.tag"}},"end":"\\\\)","patterns":[{"match":",","name":"variable.other.class.js message.error variable.interpolation string.regexp"},{"include":"#typeModule"},{"include":"#type"}]},"typePolymorphicVariant":{"begin":"\\\\[","end":"]","patterns":[]},"typeRecord":{"begin":"\\\\{","captures":{"0":{"name":"constant.language constant.numeric entity.other.attribute-name.id.css strong strong"}},"end":"}","patterns":[{"begin":"(?<=[;{])","end":"(:)|(=)|(;)|(with)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"4":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#comment"},{"include":"#pathModulePrefixSimple"},{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"}]},{"begin":"(?<=(?:\\\\P{word}|^)with)(?!\\\\p{word})","end":"(:)|(=)|(;)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp strong"},"2":{"name":"support.type strong"},"3":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"match":"(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*","name":"markup.inserted constant.language support.constant.property-value entity.name.filename emphasis"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])","end":"(;)|(=)|(?=})","endCaptures":{"1":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"},"2":{"name":"support.type strong"}},"patterns":[{"include":"#type"}]},{"begin":"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)=)(?![-!#-\\\\&*+./:<-@^|~])","end":";|(?=})","endCaptures":{"0":{"name":"variable.other.class.js message.error variable.interpolation string.regexp"}},"patterns":[{"include":"#type"}]}]},"variableModule":{"captures":{"0":{"name":"string.other.link variable.language variable.parameter emphasis"}},"match":"\\\\b(?=\\\\p{upper})[_[:alpha:]]['[:word:]]*"},"variablePattern":{"captures":{"1":{"name":"comment constant.regexp meta.separator.markdown"},"2":{"name":"string.other.link variable.language variable.parameter emphasis"}},"match":"\\\\b(_)\\\\b|((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)"}},"scopeName":"source.ocaml"}`))];export{e as default}; diff --git a/docs/assets/octave-BwfNaTxP.js b/docs/assets/octave-BwfNaTxP.js new file mode 100644 index 0000000..a20f7c5 --- /dev/null +++ b/docs/assets/octave-BwfNaTxP.js @@ -0,0 +1 @@ +import{t as o}from"./octave-xff1drIF.js";export{o as octave}; diff --git a/docs/assets/octave-xff1drIF.js b/docs/assets/octave-xff1drIF.js new file mode 100644 index 0000000..71ead8a --- /dev/null +++ b/docs/assets/octave-xff1drIF.js @@ -0,0 +1 @@ +function i(e){return RegExp("^(("+e.join(")|(")+"))\\b")}var o=RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),c=RegExp("^[\\(\\[\\{\\},:=;\\.]"),s=RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),m=RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=RegExp("^((>>=)|(<<=))"),u=RegExp("^[\\]\\)]"),f=RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*"),d=i("error.eval.function.abs.acos.atan.asin.cos.cosh.exp.log.prod.sum.log10.max.min.sign.sin.sinh.sqrt.tan.reshape.break.zeros.default.margin.round.ones.rand.syn.ceil.floor.size.clear.zeros.eye.mean.std.cov.det.eig.inv.norm.rank.trace.expm.logm.sqrtm.linspace.plot.title.xlabel.ylabel.legend.text.grid.meshgrid.mesh.num2str.fft.ifft.arrayfun.cellfun.input.fliplr.flipud.ismember".split(".")),h=i("return.case.switch.else.elseif.end.endif.endfunction.if.otherwise.do.for.while.try.catch.classdef.properties.events.methods.global.persistent.endfor.endwhile.printf.sprintf.disp.until.continue.pkg".split("."));function a(e,n){return!e.sol()&&e.peek()==="'"?(e.next(),n.tokenize=r,"operator"):(n.tokenize=r,r(e,n))}function g(e,n){return e.match(/^.*%}/)?(n.tokenize=r,"comment"):(e.skipToEnd(),"comment")}function r(e,n){if(e.eatSpace())return null;if(e.match("%{"))return n.tokenize=g,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=r,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(i(["nan","NaN","inf","Inf"])))return"number";var t=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return t?t[1]?"string":"error":e.match(h)?"keyword":e.match(d)?"builtin":e.match(f)?"variable":e.match(o)||e.match(s)?"operator":e.match(c)||e.match(m)||e.match(l)?null:e.match(u)?(n.tokenize=a,null):(e.next(),"error")}const k={name:"octave",startState:function(){return{tokenize:r}},token:function(e,n){var t=n.tokenize(e,n);return(t==="number"||t==="variable")&&(n.tokenize=a),t},languageData:{commentTokens:{line:"%"}}};export{k as t}; diff --git a/docs/assets/once-CTiSlR1m.js b/docs/assets/once-CTiSlR1m.js new file mode 100644 index 0000000..9c5430e --- /dev/null +++ b/docs/assets/once-CTiSlR1m.js @@ -0,0 +1 @@ +import{t as o}from"./invariant-C6yE60hi.js";function l(n,t,r){return Math.min(Math.max(n,t),r)}function a(n,t){let r=[...n];return r.splice(t,1),r}function c(n,t,r){t=l(t,0,n.length);let e=[...n];return e.splice(t,0,r),e}function p(n,t,r){let e=[...n],[i]=e.splice(t,1);return e.splice(r,0,i),e}function h(n,t,r){if(n.length===0)return r;t=l(t,0,n.length);let e=[...n];return e.splice(t,0,...r),e}function s(n,t){if(n===t)return!0;if(n.length!==t.length)return!1;for(let r=0,e=n.length;r<e;r++)if(n[r]!==t[r])return!1;return!0}const g={EMPTY:[],zip:(n,t)=>(o(n.length===t.length,"Arrays must be the same length"),n.map((r,e)=>[r,t[e]]))};function d(n,t){if(!n)return[t];let r=n.indexOf(t);if(r===-1)return[...n,t];let e=[...n];return e.splice(r,1),e}function m(n,t){let r=[],e=new Set;for(let i of n){let u=t(i);e.has(u)||(e.add(u),r.push(i))}return r}function y(n,t){let r=new Map;for(let e of n){let i=t(e);r.set(i,e)}return[...r.values()]}function M(n,t,r){return t===0?0:n===null?r==="up"?0:t-1:r==="up"?(n+1)%t:(n-1+t)%t}function v(n){let t,r=!1;return function(...e){return r||(r=!0,t=n.apply(this,e)),t}}function w(n){let t,r,e,i=!1;return function(...u){if(r===void 0||!s(u,r)){try{t=n.apply(this,u),i=!1,e=void 0}catch(f){i=!0,e=f}r=u}if(i)throw e;return t}}export{c as a,s as c,m as d,y as f,a as i,d as l,v as n,h as o,l as p,g as r,p as s,w as t,M as u}; diff --git a/docs/assets/one-dark-pro-CtR45KYl.js b/docs/assets/one-dark-pro-CtR45KYl.js new file mode 100644 index 0000000..30e7892 --- /dev/null +++ b/docs/assets/one-dark-pro-CtR45KYl.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#525761","activityBar.background":"#282c34","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#282c34","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#21252b","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#21252b","dropdown.border":"#21252b","editor.background":"#282c34","editor.findMatchBackground":"#d19a6644","editor.findMatchBorder":"#ffffff5a","editor.findMatchHighlightBackground":"#ffffff22","editor.foreground":"#abb2bf","editor.lineHighlightBackground":"#2c313c","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffd33d44","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#21252b","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorHoverWidget.background":"#21252b","editorHoverWidget.border":"#181a1f","editorHoverWidget.highlightForeground":"#61afef","editorIndentGuide.activeBackground1":"#c8c8c859","editorIndentGuide.background1":"#3b4048","editorInlayHint.background":"#2c313c","editorInlayHint.foreground":"#abb2bf","editorLineNumber.activeForeground":"#abb2bf","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#21252b","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#21252b","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","multiDiffEditor.headerBackground":"#21252b","panel.border":"#3e4452","panelSectionHeader.background":"#21252b","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#282c34","settings.headerForeground":"#fff","sideBar.background":"#21252b","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#282c34","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#21252b","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#21252b","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#282c34","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#21252b","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#282c34","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#282c34","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#282c34","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"},"displayName":"One Dark Pro","name":"one-dark-pro","semanticHighlighting":true,"semanticTokenColors":{"annotation:dart":{"foreground":"#d19a66"},"enumMember":{"foreground":"#56b6c2"},"macro":{"foreground":"#d19a66"},"memberOperatorOverload":{"foreground":"#c678dd"},"parameter.label:dart":{"foreground":"#abb2bf"},"property:dart":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"scope":"source.java","settings":{"foreground":"#e06c75"}},{"scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"scope":"keyword","settings":{"foreground":"#c678dd"}},{"scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"scope":"variable","settings":{"foreground":"#e06c75"}},{"scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"scope":"token.package","settings":{"foreground":"#abb2bf"}},{"scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"scope":"storage","settings":{"foreground":"#c678dd"}},{"scope":"token.storage","settings":{"foreground":"#c678dd"}},{"scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"scope":"support.function","settings":{"foreground":"#56b6c2"}},{"scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"scope":"string","settings":{"foreground":"#98c379"}},{"scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"scope":"constant","settings":{"foreground":"#d19a66"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"scope":["keyword.operator.arithmetic.c","keyword.operator.arithmetic.cpp"],"settings":{"foreground":"#c678dd"}},{"scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"scope":"comment, punctuation.definition.comment","settings":{"fontStyle":"italic","foreground":"#7f848e"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"scope":["variable.parameter.function.latex"],"settings":{"foreground":"#e06c75"}},{"scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}},{"scope":["log.info"],"settings":{"foreground":"#98c379"}},{"scope":["log.warning"],"settings":{"foreground":"#e5c07b"}},{"scope":["log.error"],"settings":{"foreground":"#e06c75"}},{"scope":"keyword.operator.expression.is","settings":{"foreground":"#c678dd"}},{"scope":"entity.name.label","settings":{"foreground":"#e06c75"}},{"scope":["support.class.math.block.environment.latex","constant.other.general.math.tex"],"settings":{"foreground":"#61afef"}},{"scope":["constant.character.math.tex"],"settings":{"foreground":"#98c379"}},{"scope":"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super","settings":{"fontStyle":"italic"}},{"scope":"comment.line.double-slash,comment.block.documentation","settings":{"fontStyle":"italic"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/one-light-BM-Ra5gf.js b/docs/assets/one-light-BM-Ra5gf.js new file mode 100644 index 0000000..5f6ed41 --- /dev/null +++ b/docs/assets/one-light-BM-Ra5gf.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#FAFAFA","activityBar.foreground":"#121417","activityBarBadge.background":"#526FFF","activityBarBadge.foreground":"#FFFFFF","badge.background":"#526FFF","badge.foreground":"#FFFFFF","button.background":"#5871EF","button.foreground":"#FFFFFF","button.hoverBackground":"#6B83ED","diffEditor.insertedTextBackground":"#00809B33","dropdown.background":"#FFFFFF","dropdown.border":"#DBDBDC","editor.background":"#FAFAFA","editor.findMatchHighlightBackground":"#526FFF33","editor.foreground":"#383A42","editor.lineHighlightBackground":"#383A420C","editor.selectionBackground":"#E5E5E6","editorCursor.foreground":"#526FFF","editorGroup.background":"#EAEAEB","editorGroup.border":"#DBDBDC","editorGroupHeader.tabsBackground":"#EAEAEB","editorHoverWidget.background":"#EAEAEB","editorHoverWidget.border":"#DBDBDC","editorIndentGuide.activeBackground":"#626772","editorIndentGuide.background":"#383A4233","editorInlayHint.background":"#F5F5F5","editorInlayHint.foreground":"#AFB2BB","editorLineNumber.activeForeground":"#383A42","editorLineNumber.foreground":"#9D9D9F","editorRuler.foreground":"#383A4233","editorSuggestWidget.background":"#EAEAEB","editorSuggestWidget.border":"#DBDBDC","editorSuggestWidget.selectedBackground":"#FFFFFF","editorWhitespace.foreground":"#383A4233","editorWidget.background":"#EAEAEB","editorWidget.border":"#E5E5E6","extensionButton.prominentBackground":"#3BBA54","extensionButton.prominentHoverBackground":"#4CC263","focusBorder":"#526FFF","input.background":"#FFFFFF","input.border":"#DBDBDC","list.activeSelectionBackground":"#DBDBDC","list.activeSelectionForeground":"#232324","list.focusBackground":"#DBDBDC","list.highlightForeground":"#121417","list.hoverBackground":"#DBDBDC66","list.inactiveSelectionBackground":"#DBDBDC","list.inactiveSelectionForeground":"#232324","notebook.cellEditorBackground":"#F5F5F5","notification.background":"#333333","peekView.border":"#526FFF","peekViewEditor.background":"#FFFFFF","peekViewResult.background":"#EAEAEB","peekViewResult.selectionBackground":"#DBDBDC","peekViewTitle.background":"#FFFFFF","pickerGroup.border":"#526FFF","scrollbarSlider.activeBackground":"#747D9180","scrollbarSlider.background":"#4E566680","scrollbarSlider.hoverBackground":"#5A637580","sideBar.background":"#EAEAEB","sideBarSectionHeader.background":"#FAFAFA","statusBar.background":"#EAEAEB","statusBar.debuggingForeground":"#FFFFFF","statusBar.foreground":"#424243","statusBar.noFolderBackground":"#EAEAEB","statusBarItem.hoverBackground":"#DBDBDC","tab.activeBackground":"#FAFAFA","tab.activeForeground":"#121417","tab.border":"#DBDBDC","tab.inactiveBackground":"#EAEAEB","titleBar.activeBackground":"#EAEAEB","titleBar.activeForeground":"#424243","titleBar.inactiveBackground":"#EAEAEB","titleBar.inactiveForeground":"#424243"},"displayName":"One Light","name":"one-light","tokenColors":[{"scope":["comment"],"settings":{"fontStyle":"italic","foreground":"#A0A1A7"}},{"scope":["comment markup.link"],"settings":{"foreground":"#A0A1A7"}},{"scope":["entity.name.type"],"settings":{"foreground":"#C18401"}},{"scope":["entity.other.inherited-class"],"settings":{"foreground":"#C18401"}},{"scope":["keyword"],"settings":{"foreground":"#A626A4"}},{"scope":["keyword.control"],"settings":{"foreground":"#A626A4"}},{"scope":["keyword.operator"],"settings":{"foreground":"#383A42"}},{"scope":["keyword.other.special-method"],"settings":{"foreground":"#4078F2"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#986801"}},{"scope":["storage"],"settings":{"foreground":"#A626A4"}},{"scope":["storage.type.annotation","storage.type.primitive"],"settings":{"foreground":"#A626A4"}},{"scope":["storage.modifier.package","storage.modifier.import"],"settings":{"foreground":"#383A42"}},{"scope":["constant"],"settings":{"foreground":"#986801"}},{"scope":["constant.variable"],"settings":{"foreground":"#986801"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#0184BC"}},{"scope":["constant.numeric"],"settings":{"foreground":"#986801"}},{"scope":["constant.other.color"],"settings":{"foreground":"#0184BC"}},{"scope":["constant.other.symbol"],"settings":{"foreground":"#0184BC"}},{"scope":["variable"],"settings":{"foreground":"#E45649"}},{"scope":["variable.interpolation"],"settings":{"foreground":"#CA1243"}},{"scope":["variable.parameter"],"settings":{"foreground":"#383A42"}},{"scope":["string"],"settings":{"foreground":"#50A14F"}},{"scope":["string > source","string embedded"],"settings":{"foreground":"#383A42"}},{"scope":["string.regexp"],"settings":{"foreground":"#0184BC"}},{"scope":["string.regexp source.ruby.embedded"],"settings":{"foreground":"#C18401"}},{"scope":["string.other.link"],"settings":{"foreground":"#E45649"}},{"scope":["punctuation.definition.comment"],"settings":{"foreground":"#A0A1A7"}},{"scope":["punctuation.definition.method-parameters","punctuation.definition.function-parameters","punctuation.definition.parameters","punctuation.definition.separator","punctuation.definition.seperator","punctuation.definition.array"],"settings":{"foreground":"#383A42"}},{"scope":["punctuation.definition.heading","punctuation.definition.identity"],"settings":{"foreground":"#4078F2"}},{"scope":["punctuation.definition.bold"],"settings":{"fontStyle":"bold","foreground":"#C18401"}},{"scope":["punctuation.definition.italic"],"settings":{"fontStyle":"italic","foreground":"#A626A4"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#CA1243"}},{"scope":["punctuation.section.method","punctuation.section.class","punctuation.section.inner-class"],"settings":{"foreground":"#383A42"}},{"scope":["support.class"],"settings":{"foreground":"#C18401"}},{"scope":["support.type"],"settings":{"foreground":"#0184BC"}},{"scope":["support.function"],"settings":{"foreground":"#0184BC"}},{"scope":["support.function.any-method"],"settings":{"foreground":"#4078F2"}},{"scope":["entity.name.function"],"settings":{"foreground":"#4078F2"}},{"scope":["entity.name.class","entity.name.type.class"],"settings":{"foreground":"#C18401"}},{"scope":["entity.name.section"],"settings":{"foreground":"#4078F2"}},{"scope":["entity.name.tag"],"settings":{"foreground":"#E45649"}},{"scope":["entity.other.attribute-name"],"settings":{"foreground":"#986801"}},{"scope":["entity.other.attribute-name.id"],"settings":{"foreground":"#4078F2"}},{"scope":["meta.class"],"settings":{"foreground":"#C18401"}},{"scope":["meta.class.body"],"settings":{"foreground":"#383A42"}},{"scope":["meta.method-call","meta.method"],"settings":{"foreground":"#383A42"}},{"scope":["meta.definition.variable"],"settings":{"foreground":"#E45649"}},{"scope":["meta.link"],"settings":{"foreground":"#986801"}},{"scope":["meta.require"],"settings":{"foreground":"#4078F2"}},{"scope":["meta.selector"],"settings":{"foreground":"#A626A4"}},{"scope":["meta.separator"],"settings":{"foreground":"#383A42"}},{"scope":["meta.tag"],"settings":{"foreground":"#383A42"}},{"scope":["underline"],"settings":{"text-decoration":"underline"}},{"scope":["none"],"settings":{"foreground":"#383A42"}},{"scope":["invalid.deprecated"],"settings":{"background":"#F2A60D","foreground":"#000000"}},{"scope":["invalid.illegal"],"settings":{"background":"#FF1414","foreground":"white"}},{"scope":["markup.bold"],"settings":{"fontStyle":"bold","foreground":"#986801"}},{"scope":["markup.changed"],"settings":{"foreground":"#A626A4"}},{"scope":["markup.deleted"],"settings":{"foreground":"#E45649"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#A626A4"}},{"scope":["markup.heading"],"settings":{"foreground":"#E45649"}},{"scope":["markup.heading punctuation.definition.heading"],"settings":{"foreground":"#4078F2"}},{"scope":["markup.link"],"settings":{"foreground":"#0184BC"}},{"scope":["markup.inserted"],"settings":{"foreground":"#50A14F"}},{"scope":["markup.quote"],"settings":{"foreground":"#986801"}},{"scope":["markup.raw"],"settings":{"foreground":"#50A14F"}},{"scope":["source.c keyword.operator"],"settings":{"foreground":"#A626A4"}},{"scope":["source.cpp keyword.operator"],"settings":{"foreground":"#A626A4"}},{"scope":["source.cs keyword.operator"],"settings":{"foreground":"#A626A4"}},{"scope":["source.css property-name","source.css property-value"],"settings":{"foreground":"#696C77"}},{"scope":["source.css property-name.support","source.css property-value.support"],"settings":{"foreground":"#383A42"}},{"scope":["source.elixir source.embedded.source"],"settings":{"foreground":"#383A42"}},{"scope":["source.elixir constant.language","source.elixir constant.numeric","source.elixir constant.definition"],"settings":{"foreground":"#4078F2"}},{"scope":["source.elixir variable.definition","source.elixir variable.anonymous"],"settings":{"foreground":"#A626A4"}},{"scope":["source.elixir parameter.variable.function"],"settings":{"fontStyle":"italic","foreground":"#986801"}},{"scope":["source.elixir quoted"],"settings":{"foreground":"#50A14F"}},{"scope":["source.elixir keyword.special-method","source.elixir embedded.section","source.elixir embedded.source.empty"],"settings":{"foreground":"#E45649"}},{"scope":["source.elixir readwrite.module punctuation"],"settings":{"foreground":"#E45649"}},{"scope":["source.elixir regexp.section","source.elixir regexp.string"],"settings":{"foreground":"#CA1243"}},{"scope":["source.elixir separator","source.elixir keyword.operator"],"settings":{"foreground":"#986801"}},{"scope":["source.elixir variable.constant"],"settings":{"foreground":"#C18401"}},{"scope":["source.elixir array","source.elixir scope","source.elixir section"],"settings":{"foreground":"#696C77"}},{"scope":["source.gfm markup"],"settings":{"-webkit-font-smoothing":"auto"}},{"scope":["source.gfm link entity"],"settings":{"foreground":"#4078F2"}},{"scope":["source.go storage.type.string"],"settings":{"foreground":"#A626A4"}},{"scope":["source.ini keyword.other.definition.ini"],"settings":{"foreground":"#E45649"}},{"scope":["source.java storage.modifier.import"],"settings":{"foreground":"#C18401"}},{"scope":["source.java storage.type"],"settings":{"foreground":"#C18401"}},{"scope":["source.java keyword.operator.instanceof"],"settings":{"foreground":"#A626A4"}},{"scope":["source.java-properties meta.key-pair"],"settings":{"foreground":"#E45649"}},{"scope":["source.java-properties meta.key-pair > punctuation"],"settings":{"foreground":"#383A42"}},{"scope":["source.js keyword.operator"],"settings":{"foreground":"#0184BC"}},{"scope":["source.js keyword.operator.delete","source.js keyword.operator.in","source.js keyword.operator.of","source.js keyword.operator.instanceof","source.js keyword.operator.new","source.js keyword.operator.typeof","source.js keyword.operator.void"],"settings":{"foreground":"#A626A4"}},{"scope":["source.ts keyword.operator"],"settings":{"foreground":"#0184BC"}},{"scope":["source.flow keyword.operator"],"settings":{"foreground":"#0184BC"}},{"scope":["source.json meta.structure.dictionary.json > string.quoted.json"],"settings":{"foreground":"#E45649"}},{"scope":["source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string"],"settings":{"foreground":"#E45649"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#50A14F"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#0184BC"}},{"scope":["ng.interpolation"],"settings":{"foreground":"#E45649"}},{"scope":["ng.interpolation.begin","ng.interpolation.end"],"settings":{"foreground":"#4078F2"}},{"scope":["ng.interpolation function"],"settings":{"foreground":"#E45649"}},{"scope":["ng.interpolation function.begin","ng.interpolation function.end"],"settings":{"foreground":"#4078F2"}},{"scope":["ng.interpolation bool"],"settings":{"foreground":"#986801"}},{"scope":["ng.interpolation bracket"],"settings":{"foreground":"#383A42"}},{"scope":["ng.pipe","ng.operator"],"settings":{"foreground":"#383A42"}},{"scope":["ng.tag"],"settings":{"foreground":"#0184BC"}},{"scope":["ng.attribute-with-value attribute-name"],"settings":{"foreground":"#C18401"}},{"scope":["ng.attribute-with-value string"],"settings":{"foreground":"#A626A4"}},{"scope":["ng.attribute-with-value string.begin","ng.attribute-with-value string.end"],"settings":{"foreground":"#383A42"}},{"scope":["source.ruby constant.other.symbol > punctuation"],"settings":{"foreground":"inherit"}},{"scope":["source.php class.bracket"],"settings":{"foreground":"#383A42"}},{"scope":["source.python keyword.operator.logical.python"],"settings":{"foreground":"#A626A4"}},{"scope":["source.python variable.parameter"],"settings":{"foreground":"#986801"}},{"scope":"customrule","settings":{"foreground":"#383A42"}},{"scope":"support.type.property-name","settings":{"foreground":"#383A42"}},{"scope":"string.quoted.double punctuation","settings":{"foreground":"#50A14F"}},{"scope":"support.constant","settings":{"foreground":"#986801"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#E45649"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#E45649"}},{"scope":["punctuation.separator.key-value.ts","punctuation.separator.key-value.js","punctuation.separator.key-value.tsx"],"settings":{"foreground":"#0184BC"}},{"scope":["source.js.embedded.html keyword.operator","source.ts.embedded.html keyword.operator"],"settings":{"foreground":"#0184BC"}},{"scope":["variable.other.readwrite.js","variable.other.readwrite.ts","variable.other.readwrite.tsx"],"settings":{"foreground":"#383A42"}},{"scope":["support.variable.dom.js","support.variable.dom.ts"],"settings":{"foreground":"#E45649"}},{"scope":["support.variable.property.dom.js","support.variable.property.dom.ts"],"settings":{"foreground":"#E45649"}},{"scope":["meta.template.expression.js punctuation.definition","meta.template.expression.ts punctuation.definition"],"settings":{"foreground":"#CA1243"}},{"scope":["source.ts punctuation.definition.typeparameters","source.js punctuation.definition.typeparameters","source.tsx punctuation.definition.typeparameters"],"settings":{"foreground":"#383A42"}},{"scope":["source.ts punctuation.definition.block","source.js punctuation.definition.block","source.tsx punctuation.definition.block"],"settings":{"foreground":"#383A42"}},{"scope":["source.ts punctuation.separator.comma","source.js punctuation.separator.comma","source.tsx punctuation.separator.comma"],"settings":{"foreground":"#383A42"}},{"scope":["support.variable.property.js","support.variable.property.ts","support.variable.property.tsx"],"settings":{"foreground":"#E45649"}},{"scope":["keyword.control.default.js","keyword.control.default.ts","keyword.control.default.tsx"],"settings":{"foreground":"#E45649"}},{"scope":["keyword.operator.expression.instanceof.js","keyword.operator.expression.instanceof.ts","keyword.operator.expression.instanceof.tsx"],"settings":{"foreground":"#A626A4"}},{"scope":["keyword.operator.expression.of.js","keyword.operator.expression.of.ts","keyword.operator.expression.of.tsx"],"settings":{"foreground":"#A626A4"}},{"scope":["meta.brace.round.js","meta.array-binding-pattern-variable.js","meta.brace.square.js","meta.brace.round.ts","meta.array-binding-pattern-variable.ts","meta.brace.square.ts","meta.brace.round.tsx","meta.array-binding-pattern-variable.tsx","meta.brace.square.tsx"],"settings":{"foreground":"#383A42"}},{"scope":["source.js punctuation.accessor","source.ts punctuation.accessor","source.tsx punctuation.accessor"],"settings":{"foreground":"#383A42"}},{"scope":["punctuation.terminator.statement.js","punctuation.terminator.statement.ts","punctuation.terminator.statement.tsx"],"settings":{"foreground":"#383A42"}},{"scope":["meta.array-binding-pattern-variable.js variable.other.readwrite.js","meta.array-binding-pattern-variable.ts variable.other.readwrite.ts","meta.array-binding-pattern-variable.tsx variable.other.readwrite.tsx"],"settings":{"foreground":"#986801"}},{"scope":["source.js support.variable","source.ts support.variable","source.tsx support.variable"],"settings":{"foreground":"#E45649"}},{"scope":["variable.other.constant.property.js","variable.other.constant.property.ts","variable.other.constant.property.tsx"],"settings":{"foreground":"#986801"}},{"scope":["keyword.operator.new.ts","keyword.operator.new.j","keyword.operator.new.tsx"],"settings":{"foreground":"#A626A4"}},{"scope":["source.ts keyword.operator","source.tsx keyword.operator"],"settings":{"foreground":"#0184BC"}},{"scope":["punctuation.separator.parameter.js","punctuation.separator.parameter.ts","punctuation.separator.parameter.tsx "],"settings":{"foreground":"#383A42"}},{"scope":["constant.language.import-export-all.js","constant.language.import-export-all.ts"],"settings":{"foreground":"#E45649"}},{"scope":["constant.language.import-export-all.jsx","constant.language.import-export-all.tsx"],"settings":{"foreground":"#0184BC"}},{"scope":["keyword.control.as.js","keyword.control.as.ts","keyword.control.as.jsx","keyword.control.as.tsx"],"settings":{"foreground":"#383A42"}},{"scope":["variable.other.readwrite.alias.js","variable.other.readwrite.alias.ts","variable.other.readwrite.alias.jsx","variable.other.readwrite.alias.tsx"],"settings":{"foreground":"#E45649"}},{"scope":["variable.other.constant.js","variable.other.constant.ts","variable.other.constant.jsx","variable.other.constant.tsx"],"settings":{"foreground":"#986801"}},{"scope":["meta.export.default.js variable.other.readwrite.js","meta.export.default.ts variable.other.readwrite.ts"],"settings":{"foreground":"#E45649"}},{"scope":["source.js meta.template.expression.js punctuation.accessor","source.ts meta.template.expression.ts punctuation.accessor","source.tsx meta.template.expression.tsx punctuation.accessor"],"settings":{"foreground":"#50A14F"}},{"scope":["source.js meta.import-equals.external.js keyword.operator","source.jsx meta.import-equals.external.jsx keyword.operator","source.ts meta.import-equals.external.ts keyword.operator","source.tsx meta.import-equals.external.tsx keyword.operator"],"settings":{"foreground":"#383A42"}},{"scope":"entity.name.type.module.js,entity.name.type.module.ts,entity.name.type.module.jsx,entity.name.type.module.tsx","settings":{"foreground":"#50A14F"}},{"scope":"meta.class.js,meta.class.ts,meta.class.jsx,meta.class.tsx","settings":{"foreground":"#383A42"}},{"scope":["meta.definition.property.js variable","meta.definition.property.ts variable","meta.definition.property.jsx variable","meta.definition.property.tsx variable"],"settings":{"foreground":"#383A42"}},{"scope":["meta.type.parameters.js support.type","meta.type.parameters.jsx support.type","meta.type.parameters.ts support.type","meta.type.parameters.tsx support.type"],"settings":{"foreground":"#383A42"}},{"scope":["source.js meta.tag.js keyword.operator","source.jsx meta.tag.jsx keyword.operator","source.ts meta.tag.ts keyword.operator","source.tsx meta.tag.tsx keyword.operator"],"settings":{"foreground":"#383A42"}},{"scope":["meta.tag.js punctuation.section.embedded","meta.tag.jsx punctuation.section.embedded","meta.tag.ts punctuation.section.embedded","meta.tag.tsx punctuation.section.embedded"],"settings":{"foreground":"#383A42"}},{"scope":["meta.array.literal.js variable","meta.array.literal.jsx variable","meta.array.literal.ts variable","meta.array.literal.tsx variable"],"settings":{"foreground":"#C18401"}},{"scope":["support.type.object.module.js","support.type.object.module.jsx","support.type.object.module.ts","support.type.object.module.tsx"],"settings":{"foreground":"#E45649"}},{"scope":["constant.language.json"],"settings":{"foreground":"#0184BC"}},{"scope":["variable.other.constant.object.js","variable.other.constant.object.jsx","variable.other.constant.object.ts","variable.other.constant.object.tsx"],"settings":{"foreground":"#986801"}},{"scope":["storage.type.property.js","storage.type.property.jsx","storage.type.property.ts","storage.type.property.tsx"],"settings":{"foreground":"#0184BC"}},{"scope":["meta.template.expression.js string.quoted punctuation.definition","meta.template.expression.jsx string.quoted punctuation.definition","meta.template.expression.ts string.quoted punctuation.definition","meta.template.expression.tsx string.quoted punctuation.definition"],"settings":{"foreground":"#50A14F"}},{"scope":["meta.template.expression.js string.template punctuation.definition.string.template","meta.template.expression.jsx string.template punctuation.definition.string.template","meta.template.expression.ts string.template punctuation.definition.string.template","meta.template.expression.tsx string.template punctuation.definition.string.template"],"settings":{"foreground":"#50A14F"}},{"scope":["keyword.operator.expression.in.js","keyword.operator.expression.in.jsx","keyword.operator.expression.in.ts","keyword.operator.expression.in.tsx"],"settings":{"foreground":"#A626A4"}},{"scope":["variable.other.object.js","variable.other.object.ts"],"settings":{"foreground":"#383A42"}},{"scope":["meta.object-literal.key.js","meta.object-literal.key.ts"],"settings":{"foreground":"#E45649"}},{"scope":"source.python constant.other","settings":{"foreground":"#383A42"}},{"scope":"source.python constant","settings":{"foreground":"#986801"}},{"scope":"constant.character.format.placeholder.other.python storage","settings":{"foreground":"#986801"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#E45649"}},{"scope":"meta.function.parameters.python","settings":{"foreground":"#986801"}},{"scope":"punctuation.separator.annotation.python","settings":{"foreground":"#383A42"}},{"scope":"punctuation.separator.parameters.python","settings":{"foreground":"#383A42"}},{"scope":"entity.name.variable.field.cs","settings":{"foreground":"#E45649"}},{"scope":"source.cs keyword.operator","settings":{"foreground":"#383A42"}},{"scope":"variable.other.readwrite.cs","settings":{"foreground":"#383A42"}},{"scope":"variable.other.object.cs","settings":{"foreground":"#383A42"}},{"scope":"variable.other.object.property.cs","settings":{"foreground":"#383A42"}},{"scope":"entity.name.variable.property.cs","settings":{"foreground":"#4078F2"}},{"scope":"storage.type.cs","settings":{"foreground":"#C18401"}},{"scope":"keyword.other.unsafe.rust","settings":{"foreground":"#A626A4"}},{"scope":"entity.name.type.rust","settings":{"foreground":"#0184BC"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#383A42"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#986801"}},{"scope":"storage.type.core.rust","settings":{"foreground":"#0184BC"}},{"scope":"meta.attribute.rust","settings":{"foreground":"#986801"}},{"scope":"storage.class.std.rust","settings":{"foreground":"#0184BC"}},{"scope":"markup.raw.block.markdown","settings":{"foreground":"#383A42"}},{"scope":"punctuation.definition.variable.shell","settings":{"foreground":"#E45649"}},{"scope":"support.constant.property-value.css","settings":{"foreground":"#383A42"}},{"scope":"punctuation.definition.constant.css","settings":{"foreground":"#986801"}},{"scope":"punctuation.separator.key-value.scss","settings":{"foreground":"#E45649"}},{"scope":"punctuation.definition.constant.scss","settings":{"foreground":"#986801"}},{"scope":"meta.property-list.scss punctuation.separator.key-value.scss","settings":{"foreground":"#383A42"}},{"scope":"storage.type.primitive.array.java","settings":{"foreground":"#C18401"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#E45649"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#E45649"}},{"scope":"markup.heading.setext","settings":{"foreground":"#383A42"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#986801"}},{"scope":"markup.inline.raw.markdown","settings":{"foreground":"#50A14F"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#E45649"}},{"scope":"markup.quote.markdown","settings":{"fontStyle":"italic","foreground":"#A0A1A7"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#383A42"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#A626A4"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#A626A4"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#4078F2"}},{"scope":"punctuation.separator.variable.ruby","settings":{"foreground":"#E45649"}},{"scope":"variable.other.constant.ruby","settings":{"foreground":"#986801"}},{"scope":"keyword.operator.other.ruby","settings":{"foreground":"#50A14F"}},{"scope":"punctuation.definition.variable.php","settings":{"foreground":"#E45649"}},{"scope":"meta.class.php","settings":{"foreground":"#383A42"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/ordinal-_nQ2r1qQ.js b/docs/assets/ordinal-_nQ2r1qQ.js new file mode 100644 index 0000000..e5e3fbc --- /dev/null +++ b/docs/assets/ordinal-_nQ2r1qQ.js @@ -0,0 +1 @@ +import{n as d}from"./init-DsZRk2YA.js";var l=class extends Map{constructor(t,n=h){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(a(this,t))}has(t){return super.has(a(this,t))}set(t,n){return super.set(f(this,t),n)}delete(t){return super.delete(c(this,t))}},g=class extends Set{constructor(t,n=h){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(let e of t)this.add(e)}has(t){return super.has(a(this,t))}add(t){return super.add(f(this,t))}delete(t){return super.delete(c(this,t))}};function a({_intern:t,_key:n},e){let r=n(e);return t.has(r)?t.get(r):e}function f({_intern:t,_key:n},e){let r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function c({_intern:t,_key:n},e){let r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function h(t){return typeof t=="object"&&t?t.valueOf():t}const o=Symbol("implicit");function p(){var t=new l,n=[],e=[],r=o;function s(u){let i=t.get(u);if(i===void 0){if(r!==o)return r;t.set(u,i=n.push(u)-1)}return e[i%e.length]}return s.domain=function(u){if(!arguments.length)return n.slice();n=[],t=new l;for(let i of u)t.has(i)||t.set(i,n.push(i)-1);return s},s.range=function(u){return arguments.length?(e=Array.from(u),s):e.slice()},s.unknown=function(u){return arguments.length?(r=u,s):r},s.copy=function(){return p(n,e).unknown(r)},d.apply(s,arguments),s}export{p as n,g as r,o as t}; diff --git a/docs/assets/outline-panel-Hazc5lot.js b/docs/assets/outline-panel-Hazc5lot.js new file mode 100644 index 0000000..f9b6160 --- /dev/null +++ b/docs/assets/outline-panel-Hazc5lot.js @@ -0,0 +1 @@ +import{s}from"./chunk-LvLJmgfZ.js";import{u as n}from"./useEvent-DlWF5OMa.js";import{t as c}from"./react-BGmjiNul.js";import{Ln as f,x as d}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as l}from"./compiler-runtime-DeeZ7FnK.js";import"./config-CENq_7Pd.js";import{t as u}from"./jsx-runtime-DN_bIXfG.js";import"./dist-CAcX026F.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import"./Combination-D1TsGrBC.js";import{i as v,n as x,r as h}from"./floating-outline-DqdzWKrn.js";import{t as j}from"./empty-state-H6r25Wek.js";var b=l();c();var p=s(u(),1),g=()=>{let t=(0,b.c)(7),{items:r}=n(d),o;t[0]===r?o=t[1]:(o=h(r),t[0]=r,t[1]=o);let{activeHeaderId:m,activeOccurrences:a}=v(o);if(r.length===0){let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,p.jsx)(j,{title:"No outline found",description:"Add markdown headings to your notebook to create an outline.",icon:(0,p.jsx)(f,{})}),t[2]=i):i=t[2],i}let e;return t[3]!==m||t[4]!==a||t[5]!==r?(e=(0,p.jsx)(x,{items:r,activeHeaderId:m,activeOccurrences:a}),t[3]=m,t[4]=a,t[5]=r,t[6]=e):e=t[6],e};export{g as default}; diff --git a/docs/assets/outline-panel-w43V587L.css b/docs/assets/outline-panel-w43V587L.css new file mode 100644 index 0000000..ea4e53c --- /dev/null +++ b/docs/assets/outline-panel-w43V587L.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +.outline-item-highlight{text-decoration:underline;-webkit-text-decoration-color:var(--primary);text-decoration-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.outline-item-highlight{-webkit-text-decoration-color:color-mix(in srgb,var(--primary),transparent 0%);text-decoration-color:color-mix(in srgb,var(--primary),transparent 0%)}} diff --git a/docs/assets/oz-6BWZLab7.js b/docs/assets/oz-6BWZLab7.js new file mode 100644 index 0000000..4ff4952 --- /dev/null +++ b/docs/assets/oz-6BWZLab7.js @@ -0,0 +1 @@ +import{t as o}from"./oz-CRz8coQc.js";export{o as oz}; diff --git a/docs/assets/oz-CRz8coQc.js b/docs/assets/oz-CRz8coQc.js new file mode 100644 index 0000000..33da58f --- /dev/null +++ b/docs/assets/oz-CRz8coQc.js @@ -0,0 +1 @@ +function o(e){return RegExp("^(("+e.join(")|(")+"))\\b")}var h=/[\^@!\|<>#~\.\*\-\+\\/,=]/,m=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,k=/(:::)|(\.\.\.)|(=<:)|(>=:)/,i=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],s=["end"],p=o(["true","false","nil","unit"]),z=o(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),g=o(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),f=o(i),l=o(s);function a(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(k)||e.match(m))return"operator";if(e.match(p))return"atom";var r=e.match(g);if(r)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,r[0]=="proc"||r[0]=="fun"?t.tokenize=v:r[0]=="class"?t.tokenize=x:r[0]=="meth"&&(t.tokenize=I),"keyword";if(e.match(f)||e.match(z))return"keyword";if(e.match(l))return t.currentIndent--,"keyword";var n=e.next();if(n=='"'||n=="'")return t.tokenize=S(n),t.tokenize(e,t);if(/[~\d]/.test(n)){if(n=="~")if(/^[0-9]/.test(e.peek())){if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}else return null;return n=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return n=="%"?(e.skipToEnd(),"comment"):n=="/"&&e.eat("*")?(t.tokenize=d,d(e,t)):h.test(n)?"operator":(e.eatWhile(/\w/),"variable")}function x(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=a,"type")}function I(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=a,"def")}function v(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=a,"def"):(t.tokenize=a,null)}function d(e,t){for(var r=!1,n;n=e.next();){if(n=="/"&&r){t.tokenize=a;break}r=n=="*"}return"comment"}function S(e){return function(t,r){for(var n=!1,c,u=!1;(c=t.next())!=null;){if(c==e&&!n){u=!0;break}n=!n&&c=="\\"}return(u||!n)&&(r.tokenize=a),"string"}}function b(){var e=i.concat(s);return RegExp("[\\[\\]]|("+e.join("|")+")$")}const y={name:"oz",startState:function(){return{tokenize:a,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,r){var n=t.replace(/^\s+|\s+$/g,"");return n.match(l)||n.match(f)||n.match(/(\[])/)?r.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*r.unit},languageData:{indentOnInut:b(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};export{y as t}; diff --git a/docs/assets/packages-panel-B193htcT.js b/docs/assets/packages-panel-B193htcT.js new file mode 100644 index 0000000..ad85372 --- /dev/null +++ b/docs/assets/packages-panel-B193htcT.js @@ -0,0 +1 @@ +import{s as H}from"./chunk-LvLJmgfZ.js";import{d as ae,u as oe}from"./useEvent-DlWF5OMa.js";import{t as le}from"./react-BGmjiNul.js";import{Zn as V}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as ie}from"./compiler-runtime-DeeZ7FnK.js";import{y as ce}from"./utils-Czt8B2GX.js";import{j as de}from"./config-CENq_7Pd.js";import{t as me}from"./jsx-runtime-DN_bIXfG.js";import{r as xe}from"./button-B8cGZzP5.js";import{t as K}from"./cn-C1rgT0yh.js";import"./dist-CAcX026F.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as W}from"./requests-C0HaHO6a.js";import{_ as pe}from"./select-D9lTzMzP.js";import{t as ue}from"./chevron-right-CqEd11Di.js";import{u as fe}from"./toDate-5JckKRQn.js";import{n as ge}from"./state-BphSR6sx.js";import{t as R}from"./spinner-C1czjtp7.js";import{a as he}from"./input-Bkl2Yfmh.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{t as ve}from"./use-toast-Bzf3rpev.js";import"./Combination-D1TsGrBC.js";import{t as J}from"./tooltip-CvjcEpZC.js";import"./popover-DtnzNVk-.js";import{t as je}from"./copy-DRhpWiOq.js";import{i as be,n as Z,r as F,s as Q,t as ke}from"./useInstallPackage-RldLPyJs.js";import{n as X}from"./error-banner-Cq4Yn1WZ.js";import{n as ye}from"./useAsyncData-Dj1oqsrZ.js";import{a as Ne,i as q,n as we,o as Y,r as B,t as Se}from"./table-BatLo2vd.js";import{t as ee}from"./empty-state-H6r25Wek.js";var G=ie(),I=H(le(),1);function _e(t){let e=t.trim();for(let r of["pip install","pip3 install","uv add","uv pip install","poetry add","conda install","pipenv install"])if(e.toLowerCase().startsWith(r.toLowerCase()))return e.slice(r.length).trim();return e}var s=H(me(),1),te=t=>{let e=(0,G.c)(9),{onClick:r,loading:n,children:l,className:x}=t;if(n){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(R,{size:"small",className:"h-4 w-4 shrink-0 opacity-50"}),e[0]=c):c=e[0],c}let d;e[1]===x?d=e[2]:(d=K("px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible",x),e[1]=x,e[2]=d);let a;e[3]===r?a=e[4]:(a=xe.stopPropagation(r),e[3]=r,e[4]=a);let o;return e[5]!==l||e[6]!==d||e[7]!==a?(o=(0,s.jsx)("button",{type:"button",className:d,onClick:a,children:l}),e[5]=l,e[6]=d,e[7]=a,e[8]=o):o=e[8],o},Ce=()=>{var w,S;let t=(0,G.c)(30),[e]=ce(),r=e.package_management.manager,{getDependencyTree:n,getPackageList:l}=W(),[x,d]=I.useState(null),a;t[0]!==n||t[1]!==l?(a=async()=>{let[u,C]=await Promise.all([l(),n()]);return{list:u.packages,tree:C.tree}},t[0]=n,t[1]=l,t[2]=a):a=t[2];let o;t[3]===r?o=t[4]:(o=[r],t[3]=r,t[4]=o);let{data:c,error:m,refetch:j,isPending:g}=ye(a,o);if(g){let u;return t[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(R,{size:"medium",centered:!0}),t[5]=u):u=t[5],u}if(m){let u;return t[6]===m?u=t[7]:(u=(0,s.jsx)(X,{error:m}),t[6]=m,t[7]=u),u}let h=c.tree!=null,i;t[8]!==h||t[9]!==x?(i=De(x,h),t[8]=h,t[9]=x,t[10]=i):i=t[10];let f=i,p=(w=c.tree)==null?void 0:w.name,P=(S=c==null?void 0:c.tree)==null?void 0:S.version,y=p==="<root>",k;t[11]!==r||t[12]!==j?(k=(0,s.jsx)(Pe,{packageManager:r,onSuccess:j}),t[11]=r,t[12]=j,t[13]=k):k=t[13];let b;t[14]!==y||t[15]!==h||t[16]!==p||t[17]!==P||t[18]!==f?(b=h&&(0,s.jsxs)("div",{className:"flex items-center justify-between px-2 py-1 border-b",children:[(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)("button",{type:"button",className:K("px-2 py-1 text-xs rounded",f==="list"?"bg-accent text-accent-foreground":"text-muted-foreground hover:text-foreground"),onClick:()=>d("list"),children:"List"}),(0,s.jsx)("button",{type:"button",className:K("px-2 py-1 text-xs rounded",f==="tree"?"bg-accent text-accent-foreground":"text-muted-foreground hover:text-foreground"),onClick:()=>d("tree"),children:"Tree"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium",title:y?"sandbox":"project",children:y?"sandbox":"project"}),p&&!y&&(0,s.jsxs)("span",{className:"text-xs text-muted-foreground",children:[p,P&&` v${P}`]})]})]}),t[14]=y,t[15]=h,t[16]=p,t[17]=P,t[18]=f,t[19]=b):b=t[19];let v;t[20]!==c.list||t[21]!==c.tree||t[22]!==m||t[23]!==j||t[24]!==f?(v=f==="list"?(0,s.jsx)(Ee,{packages:c.list,onSuccess:j}):(0,s.jsx)($e,{tree:c.tree,error:m,onSuccess:j}),t[20]=c.list,t[21]=c.tree,t[22]=m,t[23]=j,t[24]=f,t[25]=v):v=t[25];let _;return t[26]!==k||t[27]!==b||t[28]!==v?(_=(0,s.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden",children:[k,b,v]}),t[26]=k,t[27]=b,t[28]=v,t[29]=_):_=t[29],_},Pe=t=>{let e=(0,G.c)(40),{onSuccess:r,packageManager:n}=t,[l,x]=I.useState(""),{handleClick:d}=ge(),a=oe(Q),o=ae(Q),c,m;e[0]!==a||e[1]!==o?(c=()=>{a&&(x(a),o(null))},m=[a,o],e[0]=a,e[1]=o,e[2]=c,e[3]=m):(c=e[2],m=e[3]),I.useEffect(c,m);let{loading:j,handleInstallPackages:g}=ke(),h;e[4]===r?h=e[5]:(h=()=>{r(),x("")},e[4]=r,e[5]=h);let i=h,f;e[6]!==g||e[7]!==l||e[8]!==i?(f=()=>{g([_e(l)],i)},e[6]=g,e[7]=l,e[8]=i,e[9]=f):f=e[9];let p=f,P=`Install packages with ${n}...`,y;e[10]!==j||e[11]!==d?(y=j?(0,s.jsx)(R,{size:"small",className:"mr-2 h-4 w-4 shrink-0 opacity-50"}):(0,s.jsx)(J,{content:"Change package manager",children:(0,s.jsx)(V,{onClick:()=>d("packageManagementAndData"),className:"mr-2 h-4 w-4 shrink-0 opacity-50 hover:opacity-80 cursor-pointer"})}),e[10]=j,e[11]=d,e[12]=y):y=e[12];let k;e[13]===p?k=e[14]:(k=U=>{U.key==="Enter"&&(U.preventDefault(),p())},e[13]=p,e[14]=k);let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=U=>x(U.target.value),e[15]=b):b=e[15];let v;e[16]!==l||e[17]!==P||e[18]!==y||e[19]!==k?(v=(0,s.jsx)(he,{placeholder:P,id:be,icon:y,rootClassName:"flex-1 border-none",value:l,onKeyDown:k,onChange:b}),e[16]=l,e[17]=P,e[18]=y,e[19]=k,e[20]=v):v=e[20];let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=(0,s.jsx)("span",{className:"font-bold tracking-wide",children:"Package name:"}),e[21]=_):_=e[21];let w,S;e[22]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsxs)("div",{children:[_," A package name; this will install the latest version.",(0,s.jsx)("div",{className:"text-muted-foreground",children:"Example: httpx"})]}),S=(0,s.jsx)("span",{className:"font-bold tracking-wide",children:"Package and version:"}),e[22]=w,e[23]=S):(w=e[22],S=e[23]);let u,C;e[24]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)("div",{children:[S," ","A package with a specific version or version range.",(0,s.jsx)("div",{className:"text-muted-foreground",children:"Examples: httpx==0.27.0, httpx>=0.27.0"})]}),C=(0,s.jsx)("span",{className:"font-bold tracking-wide",children:"Git:"}),e[24]=u,e[25]=C):(u=e[24],C=e[25]);let E,$;e[26]===Symbol.for("react.memo_cache_sentinel")?(E=(0,s.jsxs)("div",{children:[C," A Git repository",(0,s.jsx)("div",{className:"text-muted-foreground",children:"Example: git+https://github.com/encode/httpx"})]}),$=(0,s.jsx)("span",{className:"font-bold tracking-wide",children:"URL:"}),e[26]=E,e[27]=$):(E=e[26],$=e[27]);let D,T;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=(0,s.jsxs)("div",{children:[$," A remote wheel or source distribution.",(0,s.jsx)("div",{className:"text-muted-foreground",children:"Example: https://example.com/httpx-0.27.0.tar.gz"})]}),T=(0,s.jsx)("span",{className:"font-bold tracking-wide",children:"Path:"}),e[28]=D,e[29]=T):(D=e[28],T=e[29]);let A;e[30]===Symbol.for("react.memo_cache_sentinel")?(A=(0,s.jsx)(J,{delayDuration:300,side:"left",align:"start",content:(0,s.jsxs)("div",{className:"text-sm flex flex-col w-full max-w-[360px]",children:["Packages are installed using the package manager specified in your user configuration. Depending on your package manager, you can install packages with various formats:",(0,s.jsxs)("div",{className:"flex flex-col gap-2 mt-2",children:[w,u,E,D,(0,s.jsxs)("div",{children:[T," A local wheel, source distribution, or project directory.",(0,s.jsx)("div",{className:"text-muted-foreground",children:"Example: /example/foo-0.1.0-py3-none-any.whl"})]})]})]}),children:(0,s.jsx)(fe,{className:"h-4 w-4 cursor-help text-muted-foreground hover:text-foreground bg-transparent"})}),e[30]=A):A=e[30];let L=l&&"bg-accent text-accent-foreground",N;e[31]===L?N=e[32]:(N=K("float-right px-2 m-0 h-full text-sm text-secondary-foreground ml-2",L,"disabled:cursor-not-allowed disabled:opacity-50"),e[31]=L,e[32]=N);let z=!l,M;e[33]!==p||e[34]!==N||e[35]!==z?(M=(0,s.jsx)("button",{type:"button",className:N,onClick:p,disabled:z,children:"Add"}),e[33]=p,e[34]=N,e[35]=z,e[36]=M):M=e[36];let O;return e[37]!==M||e[38]!==v?(O=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[v,A,M]}),e[37]=M,e[38]=v,e[39]=O):O=e[39],O},Ee=t=>{let e=(0,G.c)(9),{onSuccess:r,packages:n}=t;if(n.length===0){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(ee,{title:"No packages",description:"No packages are installed in this environment.",icon:(0,s.jsx)(V,{})}),e[0]=a):a=e[0],a}let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Ne,{children:(0,s.jsxs)(Y,{children:[(0,s.jsx)(q,{children:"Name"}),(0,s.jsx)(q,{children:"Version"}),(0,s.jsx)(q,{})]})}),e[1]=l):l=e[1];let x;if(e[2]!==r||e[3]!==n){let a;e[5]===r?a=e[6]:(a=o=>(0,s.jsxs)(Y,{className:"group",onClick:async()=>{await je(`${o.name}==${o.version}`),ve({title:"Copied to clipboard"})},children:[(0,s.jsx)(B,{children:o.name}),(0,s.jsx)(B,{children:o.version}),(0,s.jsxs)(B,{className:"flex justify-end",children:[(0,s.jsx)(se,{packageName:o.name,onSuccess:r}),(0,s.jsx)(re,{packageName:o.name,onSuccess:r})]})]},o.name),e[5]=r,e[6]=a),x=n.map(a),e[2]=r,e[3]=n,e[4]=x}else x=e[4];let d;return e[7]===x?d=e[8]:(d=(0,s.jsxs)(Se,{className:"overflow-auto flex-1",children:[l,(0,s.jsx)(we,{children:x})]}),e[7]=x,e[8]=d),d},se=({packageName:t,onSuccess:e})=>{let[r,n]=I.useState(!1),{addPackage:l}=W();return de()?null:(0,s.jsx)(te,{onClick:async()=>{try{n(!0);let x=await l({package:t,upgrade:!0});x.success?(e(),F(t)):F(t,x.error)}finally{n(!1)}},loading:r,children:"Upgrade"})},re=({packageName:t,tags:e,onSuccess:r})=>{let[n,l]=I.useState(!1),{removePackage:x}=W();return(0,s.jsx)(te,{onClick:async()=>{try{l(!0);let d=e==null?void 0:e.some(o=>o.kind==="group"&&o.value==="dev"),a=await x({package:t,dev:d});a.success?(r(),Z(t)):Z(t,a.error)}finally{l(!1)}},loading:n,children:"Remove"})},$e=t=>{let e=(0,G.c)(18),{tree:r,error:n,onSuccess:l}=t,x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=new Set,e[0]=x):x=e[0];let[d,a]=I.useState(x),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{a(new Set)},e[1]=o):o=e[1];let c;if(e[2]===r?c=e[3]:(c=[r],e[2]=r,e[3]=c),I.useEffect(o,c),n){let i;return e[4]===n?i=e[5]:(i=(0,s.jsx)(X,{error:n}),e[4]=n,e[5]=i),i}if(!r){let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(R,{size:"medium",centered:!0}),e[6]=i):i=e[6],i}if(r.dependencies.length===0){let i;return e[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(ee,{title:"No dependencies",description:"No package dependencies found in this environment.",icon:(0,s.jsx)(V,{})}),e[7]=i):i=e[7],i}let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=i=>{a(f=>{let p=new Set(f);return p.has(i)?p.delete(i):p.add(i),p})},e[8]=m):m=e[8];let j=m,g;if(e[9]!==d||e[10]!==l||e[11]!==r.dependencies){let i;e[13]!==d||e[14]!==l?(i=(f,p)=>(0,s.jsx)("div",{className:"border-b",children:(0,s.jsx)(ne,{nodeId:`root-${p}`,node:f,level:0,isTopLevel:!0,expandedNodes:d,onToggle:j,onSuccess:l})},`${f.name}-${p}`),e[13]=d,e[14]=l,e[15]=i):i=e[15],g=r.dependencies.map(i),e[9]=d,e[10]=l,e[11]=r.dependencies,e[12]=g}else g=e[12];let h;return e[16]===g?h=e[17]:(h=(0,s.jsx)("div",{className:"flex-1 overflow-auto",children:(0,s.jsx)("div",{children:g})}),e[16]=g,e[17]=h),h},ne=t=>{let e=(0,G.c)(58),{nodeId:r,node:n,level:l,isTopLevel:x,expandedNodes:d,onToggle:a,onSuccess:o}=t,c=x===void 0?!1:x,m=n.dependencies.length>0,j;e[0]!==d||e[1]!==r?(j=d.has(r),e[0]=d,e[1]=r,e[2]=j):j=e[2];let g=j,h=c?0:16+l*16,i;e[3]!==m||e[4]!==r||e[5]!==a?(i=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),m&&a(r))},e[3]=m,e[4]=r,e[5]=a,e[6]=i):i=e[6];let f=i,p;e[7]!==m||e[8]!==r||e[9]!==a?(p=N=>{N.stopPropagation(),m&&a(r)},e[7]=m,e[8]=r,e[9]=a,e[10]=p):p=e[10];let P=p,y=m&&"select-none",k=c?"px-2 py-0.5":"",b;e[11]!==y||e[12]!==k?(b=K("flex items-center group cursor-pointer text-sm whitespace-nowrap","hover:bg-(--slate-2) focus:bg-(--slate-2) focus:outline-hidden",y,k),e[11]=y,e[12]=k,e[13]=b):b=e[13];let v;e[14]!==h||e[15]!==c?(v=c?{}:{paddingLeft:`${h}px`},e[14]=h,e[15]=c,e[16]=v):v=e[16];let _=m?g:void 0,w;e[17]!==m||e[18]!==g?(w=m?g?(0,s.jsx)(pe,{className:"w-4 h-4 mr-2 shrink-0"}):(0,s.jsx)(ue,{className:"w-4 h-4 mr-2 shrink-0"}):(0,s.jsx)("div",{className:"w-4 mr-2 shrink-0"}),e[17]=m,e[18]=g,e[19]=w):w=e[19];let S;e[20]===n.name?S=e[21]:(S=(0,s.jsx)("span",{className:"font-medium truncate",children:n.name}),e[20]=n.name,e[21]=S);let u;e[22]===n.version?u=e[23]:(u=n.version&&(0,s.jsxs)("span",{className:"text-muted-foreground text-xs",children:["v",n.version]}),e[22]=n.version,e[23]=u);let C;e[24]!==S||e[25]!==u?(C=(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0 py-1.5",children:[S,u]}),e[24]=S,e[25]=u,e[26]=C):C=e[26];let E;e[27]===n.tags?E=e[28]:(E=n.tags.map(Te),e[27]=n.tags,e[28]=E);let $;e[29]===E?$=e[30]:($=(0,s.jsx)("div",{className:"flex items-center gap-1 ml-2",children:E}),e[29]=E,e[30]=$);let D;e[31]!==c||e[32]!==n.name||e[33]!==n.tags||e[34]!==o?(D=c&&(0,s.jsxs)("div",{className:"flex gap-1 invisible group-hover:visible",children:[(0,s.jsx)(se,{packageName:n.name,onSuccess:o}),(0,s.jsx)(re,{packageName:n.name,tags:n.tags,onSuccess:o})]}),e[31]=c,e[32]=n.name,e[33]=n.tags,e[34]=o,e[35]=D):D=e[35];let T;e[36]!==P||e[37]!==f||e[38]!==w||e[39]!==C||e[40]!==$||e[41]!==D||e[42]!==b||e[43]!==v||e[44]!==_?(T=(0,s.jsxs)("div",{className:b,style:v,onClick:P,onKeyDown:f,tabIndex:0,role:"treeitem","aria-selected":!1,"aria-expanded":_,children:[w,C,$,D]}),e[36]=P,e[37]=f,e[38]=w,e[39]=C,e[40]=$,e[41]=D,e[42]=b,e[43]=v,e[44]=_,e[45]=T):T=e[45];let A;e[46]!==d||e[47]!==m||e[48]!==g||e[49]!==l||e[50]!==n.dependencies||e[51]!==r||e[52]!==o||e[53]!==a?(A=m&&g&&(0,s.jsx)("div",{role:"group",children:n.dependencies.map((N,z)=>(0,s.jsx)(ne,{nodeId:`${r}-${z}`,node:N,level:l+1,isTopLevel:!1,expandedNodes:d,onToggle:a,onSuccess:o},`${N.name}-${z}`))}),e[46]=d,e[47]=m,e[48]=g,e[49]=l,e[50]=n.dependencies,e[51]=r,e[52]=o,e[53]=a,e[54]=A):A=e[54];let L;return e[55]!==T||e[56]!==A?(L=(0,s.jsxs)("div",{children:[T,A]}),e[55]=T,e[56]=A,e[57]=L):L=e[57],L};function De(t,e){return t==="list"?"list":e?t||"tree":"list"}function Te(t,e){return t.kind==="cycle"?(0,s.jsx)("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-orange-300 dark:border-orange-700 text-orange-700 dark:text-orange-300",title:"cycle",children:"cycle"},e):t.kind==="extra"?(0,s.jsx)("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-blue-300 dark:border-blue-700 text-blue-700 dark:text-blue-300",title:t.value,children:t.value},e):t.kind==="group"?(0,s.jsx)("div",{className:"items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-green-300 dark:border-green-700 text-green-700 dark:text-green-300",title:t.value,children:t.value},e):null}export{Ce as default}; diff --git a/docs/assets/packet-BFZMPI3H-Eng5_GUo.js b/docs/assets/packet-BFZMPI3H-Eng5_GUo.js new file mode 100644 index 0000000..61d8ee3 --- /dev/null +++ b/docs/assets/packet-BFZMPI3H-Eng5_GUo.js @@ -0,0 +1 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import{n as e}from"./chunk-76Q3JFCE-COngPFoW.js";export{e as createPacketServices}; diff --git a/docs/assets/panels-B4E3DsXP.css b/docs/assets/panels-B4E3DsXP.css new file mode 100644 index 0000000..c012aef --- /dev/null +++ b/docs/assets/panels-B4E3DsXP.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +.app-sidebar .markdown{padding-inline:calc(var(--spacing,.25rem)*5);display:block}.app-sidebar{container:app-sidebar/inline-size}@container app-sidebar (width<=230px){.app-sidebar[data-expanded=false] .markdown{display:none}} diff --git a/docs/assets/panels-wPsRwJLC.js b/docs/assets/panels-wPsRwJLC.js new file mode 100644 index 0000000..cdb21ec --- /dev/null +++ b/docs/assets/panels-wPsRwJLC.js @@ -0,0 +1 @@ +var KA=Object.defineProperty;var HA=(a,A,e)=>A in a?KA(a,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[A]=e;var GA=(a,A,e)=>HA(a,typeof A!="symbol"?A+"":A,e);import{s as dA}from"./chunk-LvLJmgfZ.js";import{d as _,i as BA,l as uA,u as j}from"./useEvent-DlWF5OMa.js";import{t as UA}from"./react-BGmjiNul.js";import{D as VA,Dt as XA,Et as WA,F as JA,L as qA,N as zA,Ot as $A,ar as Ae,l as ee,m as mA,oi as ae,on as te,tn as Ge,ui as oe,ur as YA,w as se,y as re,yn as ne}from"./cells-CmJW_FeD.js";import{t as B}from"./compiler-runtime-DeeZ7FnK.js";import{i as ke}from"./useLifecycle-CmDXEyIC.js";import{$ as Re,B as ie,F as le,H as Ze,M as ce,P as ge,Q as he,S as de,V as Be,W as S,X as ue,ct as me,dt as Ye,it as fA,nt as fe,ot as pe,q as pA,rt as xe,tt as we,ut as De,z as ve}from"./utilities.esm-CqQATX3k.js";import{a as xA,d as D}from"./hotkeys-uKX61F1_.js";import{C as Ee,b as ye}from"./utils-Czt8B2GX.js";import{r as oA}from"./constants-Bkp4R3bQ.js";import{A as x,_ as Ce,j as sA,k as F,o as be,u as Me,w as Ne}from"./config-CENq_7Pd.js";import{a as _e,l as je}from"./switch-C5jvDmuG.js";import{n as Se}from"./ErrorBoundary-C7JBxSzd.js";import{t as Fe}from"./useEventListener-COkmyg1v.js";import{t as Qe}from"./jsx-runtime-DN_bIXfG.js";import{t as rA}from"./button-B8cGZzP5.js";import{n as Pe,t as f}from"./cn-C1rgT0yh.js";import{Y as wA}from"./JsonOutput-DlwRx3jE.js";import{t as Le}from"./createReducer-DDa-hVe3.js";import{t as Oe}from"./requests-C0HaHO6a.js";import{t as W}from"./createLucideIcon-CW2xpJ57.js";import{a as Te,f as DA,i as vA,n as Ie,o as Ke,s as He}from"./layout-CBI2c778.js";import{d as Ue}from"./download-C_slsU-7.js";import{c as Ve}from"./maps-s2pQkyf5.js";import{c as Xe}from"./markdown-renderer-DjqhqmES.js";import{n as We}from"./spinner-C1czjtp7.js";import{n as Je}from"./readonly-python-code-Dr5fAkba.js";import{t as qe}from"./uuid-ClFZlR7U.js";import{t as nA}from"./use-toast-Bzf3rpev.js";import{s as ze,u as $e}from"./Combination-D1TsGrBC.js";import{t as kA}from"./tooltip-CvjcEpZC.js";import{a as Aa,r as EA,t as ea}from"./mode-CXc0VeQq.js";import{_ as aa,f as ta,g as Ga,h as yA,m as CA,p as bA,v as MA,y as oa}from"./alert-dialog-jcHA5geR.js";import{r as NA}from"./share-CXQVxivL.js";import{r as _A}from"./errors-z7WpYca5.js";import{t as sa}from"./RenderHTML-B4Nb8r0D.js";import{i as ra}from"./cell-link-D7bPw7Fz.js";import{t as na}from"./error-banner-Cq4Yn1WZ.js";import{n as ka}from"./useAsyncData-Dj1oqsrZ.js";import{t as Ra}from"./requests-bNszE-ju.js";import{t as ia}from"./ws-Sb1KIggW.js";import{t as la}from"./request-registry-CxxnIU-g.js";import{n as Za}from"./types-DBNA0l6L.js";import{n as ca}from"./runs-DGUGtjQH.js";var ga=W("hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]),jA=W("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),ha=W("square-arrow-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]),da=W("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]),Ba=B(),r=dA(Qe(),1);const ua=a=>{let A=(0,Ba.c)(10),{reason:e,canTakeover:t}=a,o=t===void 0?!1:t,G=ma;if(o){let n;A[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("div",{className:"flex justify-between",children:(0,r.jsx)("span",{className:"font-bold text-xl flex items-center mb-2",children:"Notebook already connected"})}),A[0]=n):n=A[0];let k;A[1]===e?k=A[2]:(k=(0,r.jsx)("span",{children:e}),A[1]=e,A[2]=k);let R;A[3]===o?R=A[4]:(R=o&&(0,r.jsxs)(rA,{onClick:G,variant:"outline","data-testid":"takeover-button",className:"shrink-0",children:[(0,r.jsx)(ha,{className:"w-4 h-4 mr-2"}),"Take over session"]}),A[3]=o,A[4]=R);let i;return A[5]!==k||A[6]!==R?(i=(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsxs)(na,{kind:"info",className:"mt-10 flex flex-col rounded p-3 max-w-[800px] mx-4",children:[n,(0,r.jsxs)("div",{className:"flex justify-between items-end text-base gap-20",children:[k,R]})]})}),A[5]=k,A[6]=R,A[7]=i):i=A[7],i}let s;return A[8]===e?s=A[9]:(s=(0,r.jsx)("div",{className:"font-mono text-center text-base text-(--red-11)",children:(0,r.jsx)("p",{children:e})}),A[8]=e,A[9]=s),s};async function ma(){try{let a=new URL(window.location.href).searchParams;await _e.post(`/kernel/takeover?${a.toString()}`,{}),NA()}catch(a){nA({title:"Failed to take over session",description:_A(a),variant:"danger"})}}var Ya=B(),u=dA(UA(),1);const fa=a=>{let A=(0,Ya.c)(8),{connection:e,className:t,children:o}=a,G;A[0]!==e.canTakeover||A[1]!==e.reason||A[2]!==e.state?(G=e.state===x.CLOSED&&(0,r.jsx)(ua,{reason:e.reason,canTakeover:e.canTakeover}),A[0]=e.canTakeover,A[1]=e.reason,A[2]=e.state,A[3]=G):G=A[3];let s;return A[4]!==o||A[5]!==t||A[6]!==G?(s=(0,r.jsxs)("div",{className:t,children:[o,G]}),A[4]=o,A[5]=t,A[6]=G,A[7]=s):s=A[7],s};var pa=B();const xa=a=>{let A=(0,pa.c)(10),{title:e}=a,[t,o]=(0,u.useState)(e),[G,s]=(0,u.useState)(!0),n,k;A[0]!==t||A[1]!==e?(n=()=>{if(e!==t){s(!1);let g=setTimeout(()=>{o(e),s(!0)},300);return()=>clearTimeout(g)}},k=[e,t],A[0]=t,A[1]=e,A[2]=n,A[3]=k):(n=A[2],k=A[3]),(0,u.useEffect)(n,k);let R;A[4]===Symbol.for("react.memo_cache_sentinel")?(R=(0,r.jsx)(We,{className:"size-20 animate-spin text-primary","data-testid":"large-spinner",strokeWidth:1}),A[4]=R):R=A[4];let i=G?"opacity-100":"opacity-0",Z;A[5]===i?Z=A[6]:(Z=f("mt-2 text-muted-foreground font-semibold text-lg transition-opacity duration-300",i),A[5]=i,A[6]=Z);let c;return A[7]!==t||A[8]!==Z?(c=(0,r.jsxs)("div",{className:"flex flex-col h-full flex-1 items-center justify-center p-4",children:[R,(0,r.jsx)("div",{className:Z,children:t})]}),A[7]=t,A[8]=Z,A[9]=c):c=A[9],c};var RA=B();const wa=a=>{let A=(0,RA.c)(2),{children:e}=a;if(!sA())return e;let t;return A[0]===e?t=A[1]:(t=(0,r.jsx)(Da,{children:e}),A[0]=e,A[1]=t),t};var Da=a=>{let A=(0,RA.c)(3),{children:e}=a,t;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],A[0]=t):t=A[0];let{isPending:o,error:G}=ka(Ea,t),s=j(we);if(o){let n;return A[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(SA,{}),A[1]=n):n=A[1],n}if(!s&&ea()==="read"&&va()){let n;return A[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(SA,{}),A[2]=n):n=A[2],n}if(G)throw G;return e};function va(){return Me(oA.showCode,"false")||!BA.get(je)}const SA=a=>{let A=(0,RA.c)(2),e=j(fe),t;return A[0]===e?t=A[1]:(t=(0,r.jsx)(xa,{title:e}),A[0]=e,A[1]=t),t};async function Ea(){return await he.INSTANCE.initialized.promise,!0}var ya={idle:"./favicon.ico",success:"data:image/x-icon;base64,AAABAAEAMDAAAAEACACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAAAkAAAAAAAAAAAAAAAEAAAABAAAAAAAAXXQAAFd3AwBWeAQAVngEAFd4AwBXeAQAVnkEAFh3AwBXdwQAVXcGAFd4BQBXeAQAWHgEAFd6AwBXeAMAVnkEAFZ5AwBXdwQAV3cFAFd4BABYeAQAV3gEAFh4BABXeAQA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgMEBQYYGAYFBAMCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgcYGBgYGBgYGBgYGBgYGAcCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJGBgYGBgYGBgYGBgYGBgYGBgYCQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKBBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgECgAAAAAAAAAAAAAAAAAAAAAAAAAAAAsYGBgYGBgYDA0OChkZGRkKDg0MGBgYGBgYGAsAAAAAAAAAAAAAAAAAAAAAAAAAAxgYGBgYGA8QGRkZGRkZGRkZGRkZEA8YGBgYGBgDAAAAAAAAAAAAAAAAAAAAAAARGBgYGBgSChkZGRkZGRkZGRkZGRkZGRkKEhgYGBgYEQAAAAAAAAAAAAAAAAAAAAMYGBgYGBMZGRkZGRkZGRkZGRkZGRkZGRkZGRMYGBgYGAMAAAAAAAAAAAAAAAAACxgYGBgUEBkZGRkZGRkZGRkZGRkZGRkZGRkZGRkQFBgYGBgLAAAAAAAAAAAAAAAKGBgYGBQKGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZChQYGBgYCgAAAAAAAAAAAAAEGBgYGBAZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRAYGBgYBAAAAAAAAAAAAAgYGBgYExkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkTGBgYGAgAAAAAAAAAAAkYGBgSGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZEhgYGAkAAAAAAAAAAhgYGBgKGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZChgYGBgCAAAAAAAABxgYGA8ZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGQ8YGBgHAAAAAAABGBgYGBAZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRAYGBgYAQAAAAACGBgYDBkZGRkZGRkZGRkZGRkXFhYVGRkZGRkZGRkZGRkZGRkZGRkMGBgYAgAAAAADGBgYDRkZGRkZGRkZGRkZGRcYGBgYFxkZGRkZGRkZGRkZGRkZGRkNGBgYAwAAAAAEGBgYDhkZGRkZGRkZGRkZFxgYGBgYGBcZGRkZGRkZGRkZGRkZGRkOGBgYBAAAAAAFGBgYChkZGRkZGRkZGRkXGBgYGBgYGBgXGRkZGRkZGRkZGRkZGRkKGBgYBQAAAAAGGBgYGRkZGRkZGRkZGRUYGBgYGBgYGBgYFxkZGRkZGRkZGRkZGRkZGBgYBgAAAAAYGBgYGRkZGRkZGRkZGRYYGBgYFxcYGBgYGBcZGRkZGRkZGRkZGRkZGBgYGAAAAAAYGBgYGRkZGRkZGRkZGRYYGBgXGRkXGBgYGBgXGRkZGRkZGRkZGRkZGBgYGAAAAAAGGBgYGRkZGRkZGRkZGRUWFhcZGRkZFxgYGBgYFxkZGRkZGRkZGRkZGBgYBgAAAAAFGBgYChkZGRkZGRkZGRkZGRkZGRkZGRcYGBgYGBcZGRkZGRkZGRkKGBgYBQAAAAAEGBgYDhkZGRkZGRkZGRkZGRkZGRkZGRkXGBgYGBYZGRkZGRkZGRkOGBgYBAAAAAADGBgYDRkZGRkZGRkZGRkZGRkZGRkZGRkZFxgYGBYZGRkZGRkZGRkNGBgYAwAAAAACGBgYDBkZGRkZGRkZGRkZGRkZGRkZGRkZGRUWFhUZGRkZGRkZGRkMGBgYAgAAAAABGBgYGBAZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRAYGBgYAQAAAAAABxgYGA8ZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGQ8YGBgHAAAAAAAAAhgYGBgKGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZChgYGBgCAAAAAAAAAAkYGBgSGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZEhgYGAkAAAAAAAAAAAgYGBgYExkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkTGBgYGAgAAAAAAAAAAAAEGBgYGBAZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRAYGBgYBAAAAAAAAAAAAAAKGBgYGBQKGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZChQYGBgYCgAAAAAAAAAAAAAACxgYGBgUEBkZGRkZGRkZGRkZGRkZGRkZGRkZGRkQFBgYGBgLAAAAAAAAAAAAAAAAAAMYGBgYGBMZGRkZGRkZGRkZGRkZGRkZGRkZGRMYGBgYGAMAAAAAAAAAAAAAAAAAAAARGBgYGBgSChkZGRkZGRkZGRkZGRkZGRkKEhgYGBgYEQAAAAAAAAAAAAAAAAAAAAAAAxgYGBgYGA8QGRkZGRkZGRkZGRkZEA8YGBgYGBgDAAAAAAAAAAAAAAAAAAAAAAAAAAsYGBgYGBgYDA0OChkZGRkKDg0MGBgYGBgYGAsAAAAAAAAAAAAAAAAAAAAAAAAAAAAKBBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgECgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJGBgYGBgYGBgYGBgYGBgYGBgYCQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgcYGBgYGBgYGBgYGBgYGAcCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgMEBQYYGAYFBAMCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP//gAH//wAA//4AAH//AAD/+AAAH/8AAP/gAAAH/wAA/8AAAAP/AAD/gAAAAf8AAP8AAAAA/wAA/gAAAAB/AAD8AAAAAD8AAPgAAAAAHwAA+AAAAAAfAADwAAAAAA8AAPAAAAAADwAA4AAAAAAHAADgAAAAAAcAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADgAAAAAAcAAOAAAAAABwAA8AAAAAAPAADwAAAAAA8AAPgAAAAAHwAA+AAAAAAfAAD8AAAAAD8AAP4AAAAAfwAA/wAAAAD/AAD/gAAAAf8AAP/AAAAD/wAA/+AAAAf/AAD/+AAAH/8AAP/+AAB//wAA//+AAf//AAD///////8AAP///////wAA",running:"data:image/x-icon;base64,AAABAAEAMDAAAAEACACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAAAkAAAAAAAAAAAAAAAEAAAABAAAAAAAA0YsAAMWEAwDHgwIAx4QBAMeEAgDGhAIAyIUBAMaFAwDGhAIAxoIAAMaFAgDHhAIAx4QCAMiFAwDHhAIAx4YAAMaFAgDHhQEAxoMCAMeEAgDHgwQAx4QDAMeDAgDHhAIA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgMEBQYYGAYFBAMCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgcYGBgYGBgYGBgYGBgYGAcCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJGBgYGBgYGBgYGBgYGBgYGBgYCQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKBBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgECgAAAAAAAAAAAAAAAAAAAAAAAAAAAAsYGBgYGBgYDA0OChkZGRkKDg0MGBgYGBgYGAsAAAAAAAAAAAAAAAAAAAAAAAAAAxgYGBgYGA8QGRkZGRkZGRkZGRkZEA8YGBgYGBgDAAAAAAAAAAAAAAAAAAAAAAARGBgYGBgSChkZGRkZGRkZGRkZGRkZGRkKEhgYGBgYEQAAAAAAAAAAAAAAAAAAAAMYGBgYGBMZGRkZGRkZGRkZGRkZGRkZGRkZGRMYGBgYGAMAAAAAAAAAAAAAAAAACxgYGBgUEBkZGRkZGRkZGRkZGRkZGRkZGRkZGRkQFBgYGBgLAAAAAAAAAAAAAAAKGBgYGBQKGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZChQYGBgYCgAAAAAAAAAAAAAEGBgYGBAZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRAYGBgYBAAAAAAAAAAAAAgYGBgYExkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkTGBgYGAgAAAAAAAAAAAkYGBgSGRkZGRkZGRkZFRgWFxkZGRkZGRkZGRkZGRkZGRkZEhgYGAkAAAAAAAAAAhgYGBgKGRkZGRkZGRkZFhgYGBYVGRkZGRkZGRkZGRkZGRkZChgYGBgCAAAAAAAABxgYGA8ZGRkZGRkZGRkZGBgYGBgYFxkZGRkZGRkZGRkZGRkZGQ8YGBgHAAAAAAABGBgYGBAZGRkZGRkZGRkZGBgYGBgYGBYVGRkZGRkZGRkZGRkZGRAYGBgYAQAAAAACGBgYDBkZGRkZGRkZGRkZGBgYGBgYGBgYFxkZGRkZGRkZGRkZGRkMGBgYAgAAAAADGBgYDRkZGRkZGRkZGRkZGBgYGBgYGBgYGBYVGRkZGRkZGRkZGRkNGBgYAwAAAAAEGBgYDhkZGRkZGRkZGRkZGBgYGBUWGBgYGBgYFxkZGRkZGRkZGRkOGBgYBAAAAAAFGBgYChkZGRkZGRkZGRkZGBgYGBkZFxgYGBgYGBYVGRkZGRkZGRkKGBgYBQAAAAAGGBgYGRkZGRkZGRkZGRkZGBgYGBkZGRUWGBgYGBgYFxkZGRkZGRkZGBgYBgAAAAAYGBgYGRkZGRkZGRkZGRkZGBgYGBkZGRkZFxgYGBgYFxkZGRkZGRkZGBgYGAAAAAAYGBgYGRkZGRkZGRkZGRkZGBgYGBkZGRkZFxgYGBgYFhkZGRkZGRkZGBgYGAAAAAAGGBgYGRkZGRkZGRkZGRkZGBgYGBkZGRkXGBgYGBgYFRkZGRkZGRkZGBgYBgAAAAAFGBgYChkZGRkZGRkZGRkZGBgYGBkZFxgYGBgYGBcZGRkZGRkZGRkKGBgYBQAAAAAEGBgYDhkZGRkZGRkZGRkZGBgYGBkXGBgYGBgYFxkZGRkZGRkZGRkOGBgYBAAAAAADGBgYDRkZGRkZGRkZGRkZGBgYGBgYGBgYGBcZGRkZGRkZGRkZGRkNGBgYAwAAAAACGBgYDBkZGRkZGRkZGRkZGBgYGBgYGBgYFxkZGRkZGRkZGRkZGRkMGBgYAgAAAAABGBgYGBAZGRkZGRkZGRkZGBgYGBgYGBcZGRkZGRkZGRkZGRkZGRAYGBgYAQAAAAAABxgYGA8ZGRkZGRkZGRkZGBgYGBgYFxkZGRkZGRkZGRkZGRkZGQ8YGBgHAAAAAAAAAhgYGBgKGRkZGRkZGRkZFhgYGBcZGRkZGRkZGRkZGRkZGRkZChgYGBgCAAAAAAAAAAkYGBgSGRkZGRkZGRkZFRYWFxkZGRkZGRkZGRkZGRkZGRkZEhgYGAkAAAAAAAAAAAgYGBgYExkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkTGBgYGAgAAAAAAAAAAAAEGBgYGBAZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRAYGBgYBAAAAAAAAAAAAAAKGBgYGBQKGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZChQYGBgYCgAAAAAAAAAAAAAACxgYGBgUEBkZGRkZGRkZGRkZGRkZGRkZGRkZGRkQFBgYGBgLAAAAAAAAAAAAAAAAAAMYGBgYGBMZGRkZGRkZGRkZGRkZGRkZGRkZGRMYGBgYGAMAAAAAAAAAAAAAAAAAAAARGBgYGBgSChkZGRkZGRkZGRkZGRkZGRkKEhgYGBgYEQAAAAAAAAAAAAAAAAAAAAAAAxgYGBgYGA8QGRkZGRkZGRkZGRkZEA8YGBgYGBgDAAAAAAAAAAAAAAAAAAAAAAAAAAsYGBgYGBgYDA0OChkZGRkKDg0MGBgYGBgYGAsAAAAAAAAAAAAAAAAAAAAAAAAAAAAKBBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgECgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJGBgYGBgYGBgYGBgYGBgYGBgYCQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgcYGBgYGBgYGBgYGBgYGAcCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgMEBQYYGAYFBAMCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP//gAH//wAA//4AAH//AAD/+AAAH/8AAP/gAAAH/wAA/8AAAAP/AAD/gAAAAf8AAP8AAAAA/wAA/gAAAAB/AAD8AAAAAD8AAPgAAAAAHwAA+AAAAAAfAADwAAAAAA8AAPAAAAAADwAA4AAAAAAHAADgAAAAAAcAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADgAAAAAAcAAOAAAAAABwAA8AAAAAAPAADwAAAAAA8AAPgAAAAAHwAA+AAAAAAfAAD8AAAAAD8AAP4AAAAAfwAA/wAAAAD/AAD/gAAAAf8AAP/AAAAD/wAA/+AAAAf/AAD/+AAAH/8AAP/+AAB//wAA//+AAf//AAD///////8AAP///////wAA",error:"data:image/x-icon;base64,AAABAAEAMDAAAAEACACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAAAkAAAAAAAAAAAAAAAEAAAABAAAAAAAALi7oACcn2wAlJdsAJibcACYm3AAmJtsAJyfdACUl3QAmJtsAKCjdACUl3AAmJtwAJyfcACYm3AAoKNcAJibcACcn3AAmJt0AJibcACUl3AAmJtwAKCjbACcn3AAmJtsAJibcAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgMEBQYZGQYFBAMCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgcZGRkZGRkZGRkZGRkZGQcCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJGRkZGRkZGRkZGRkZGRkZGRkZCQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKBBkZGRkZGRkZGRkZGRkZGRkZGRkZGRkECgAAAAAAAAAAAAAAAAAAAAAAAAAAAAsZGRkZGRkZDA0ODxoaGhoPDg0MGRkZGRkZGQsAAAAAAAAAAAAAAAAAAAAAAAAAAxkZGRkZGRARGhoaGhoaGhoaGhoaERAZGRkZGRkDAAAAAAAAAAAAAAAAAAAAAAASGRkZGRkTDxoaGhoaGhoaGhoaGhoaGhoPExkZGRkZEgAAAAAAAAAAAAAAAAAAAAMZGRkZGRQaGhoaGhoaGhoaGhoaGhoaGhoaGhQZGRkZGQMAAAAAAAAAAAAAAAAACxkZGRkVERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoRFRkZGRkLAAAAAAAAAAAAAAAKGRkZGRUPGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaDxUZGRkZCgAAAAAAAAAAAAAEGRkZGREaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhEZGRkZBAAAAAAAAAAAAAgZGRkZFBoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoUGRkZGQgAAAAAAAAAAAkZGRkTGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaExkZGQkAAAAAAAAAAhkZGRkPGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaDxkZGRkCAAAAAAAABxkZGRAaGhoaGhoaGhYXFxYaGhoaGhoaGhgXFxYaGhoaGhoaGhAZGRkHAAAAAAABGRkZGREaGhoaGhoaGhcZGRkYGhoaGhoaGBkZGRcaGhoaGhoaGhEZGRkZAQAAAAACGRkZDBoaGhoaGhoaGhcZGRkZGBoaGhoYGRkZGRcaGhoaGhoaGhoMGRkZAgAAAAADGRkZDRoaGhoaGhoaGhgZGRkZGRgaGhgZGRkZGRYaGhoaGhoaGhoNGRkZAwAAAAAEGRkZDhoaGhoaGhoaGhoYGRkZGRkYGBkZGRkZGBoaGhoaGhoaGhoOGRkZBAAAAAAFGRkZDxoaGhoaGhoaGhoaGBkZGRkZGRkZGRkYGhoaGhoaGhoaGhoPGRkZBQAAAAAGGRkZGhoaGhoaGhoaGhoaGhgZGRkZGRkZGRgaGhoaGhoaGhoaGhoaGRkZBgAAAAAZGRkZGhoaGhoaGhoaGhoaGhoYGRkZGRkZGBoaGhoaGhoaGhoaGhoaGRkZGQAAAAAZGRkZGhoaGhoaGhoaGhoaGhoYGRkZGRkZGBoaGhoaGhoaGhoaGhoaGRkZGQAAAAAGGRkZGhoaGhoaGhoaGhoaGhgZGRkZGRkZGRgaGhoaGhoaGhoaGhoaGRkZBgAAAAAFGRkZDxoaGhoaGhoaGhoaGBkZGRkZGRkZGRkYGhoaGhoaGhoaGhoPGRkZBQAAAAAEGRkZDhoaGhoaGhoaGhoYGRkZGRkYGBkZGRkZGBoaGhoaGhoaGhoOGRkZBAAAAAADGRkZDRoaGhoaGhoaGhYZGRkZGRgaGhgZGRkZGRgaGhoaGhoaGhoNGRkZAwAAAAACGRkZDBoaGhoaGhoaGhcZGRkZGBoaGhoYGRkZGRcaGhoaGhoaGhoMGRkZAgAAAAABGRkZGREaGhoaGhoaGhcZGRkYGhoaGhoaGBkZGRcaGhoaGhoaGhEZGRkZAQAAAAAABxkZGRAaGhoaGhoaGhYXFxgaGhoaGhoaGhYXFxYaGhoaGhoaGhAZGRkHAAAAAAAAAhkZGRkPGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaDxkZGRkCAAAAAAAAAAkZGRkTGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaExkZGQkAAAAAAAAAAAgZGRkZFBoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoUGRkZGQgAAAAAAAAAAAAEGRkZGREaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhEZGRkZBAAAAAAAAAAAAAAKGRkZGRUPGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaDxUZGRkZCgAAAAAAAAAAAAAACxkZGRkVERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoRFRkZGRkLAAAAAAAAAAAAAAAAAAMZGRkZGRQaGhoaGhoaGhoaGhoaGhoaGhoaGhQZGRkZGQMAAAAAAAAAAAAAAAAAAAASGRkZGRkTDxoaGhoaGhoaGhoaGhoaGhoPExkZGRkZEgAAAAAAAAAAAAAAAAAAAAAAAxkZGRkZGRARGhoaGhoaGhoaGhoaERAZGRkZGRkDAAAAAAAAAAAAAAAAAAAAAAAAAAsZGRkZGRkZDA0ODxoaGhoPDg0MGRkZGRkZGQsAAAAAAAAAAAAAAAAAAAAAAAAAAAAKBBkZGRkZGRkZGRkZGRkZGRkZGRkZGRkECgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJGRkZGRkZGRkZGRkZGRkZGRkZCQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgcZGRkZGRkZGRkZGRkZGQcCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgMEBQYZGQYFBAMCAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP//gAH//wAA//4AAH//AAD/+AAAH/8AAP/gAAAH/wAA/8AAAAP/AAD/gAAAAf8AAP8AAAAA/wAA/gAAAAB/AAD8AAAAAD8AAPgAAAAAHwAA+AAAAAAfAADwAAAAAA8AAPAAAAAADwAA4AAAAAAHAADgAAAAAAcAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADgAAAAAAcAAOAAAAAABwAA8AAAAAAPAADwAAAAAA8AAPgAAAAAHwAA+AAAAAAfAAD8AAAAAD8AAP4AAAAAfwAA/wAAAAD/AAD/gAAAAf8AAP/AAAAD/wAA/+AAAAf/AAD/+AAAH/8AAP/+AAB//wAA//+AAf//AAD///////8AAP///////wAA"};async function Q(a){return ya[a]}function Ca(a){if(document.visibilityState==="visible")return;let A=async()=>{a===0?new Notification("Execution completed",{body:"Your notebook run completed successfully.",icon:await Q("success")}):new Notification("Execution failed",{body:`Your notebook run encountered ${a} error(s).`,icon:await Q("error")})};!("Notification"in window)||Notification.permission==="denied"||(Notification.permission==="granted"?A():Notification.permission==="default"&&Notification.requestPermission().then(e=>{e==="granted"&&A()}))}const ba=a=>{let{isRunning:A}=a,e=VA(),t=document.querySelector("link[rel~='icon']");t||(t=document.createElement("link"),t.rel="icon",document.getElementsByTagName("head")[0].append(t)),(0,u.useEffect)(()=>{!A&&t.href.includes("favicon")||(async()=>{let G;if(G=A?"running":e.length===0?"success":"error",t.href=await Q(G),!document.hasFocus())return;let s=setTimeout(async()=>{t.href=await Q("idle")},3e3);return()=>clearTimeout(s)})()},[A,e,t]);let o=de(A)??A;return(0,u.useEffect)(()=>{o&&!A&&Ca(e.length)},[e,o,A]),Fe(window,"focus",async G=>{A||(t.href=await Q("idle"))}),null};function Ma(){let{cellRuntime:a}=BA.get(re),A=xA.entries(a).find(([e,t])=>t.status==="running");A&&ra(A[0],"focus")}var P=B();const Na=a=>{let A=(0,P.c)(22),{connection:e,isRunning:t}=a,{mode:o}=j(Aa),G=e.state===x.CLOSED,s=e.state===x.OPEN,n;A[0]!==e.canTakeover||A[1]!==G?(n=G&&!e.canTakeover&&(0,r.jsx)(Fa,{}),A[0]=e.canTakeover,A[1]=G,A[2]=n):n=A[2];let k=o==="read"?"fixed":"absolute",R;A[3]===k?R=A[4]:(R=f("z-50 top-4 left-4",k),A[3]=k,A[4]=R);let i;A[5]!==s||A[6]!==t?(i=s&&t&&(0,r.jsx)(Sa,{}),A[5]=s,A[6]=t,A[7]=i):i=A[7];let Z;A[8]!==e.canTakeover||A[9]!==G?(Z=G&&!e.canTakeover&&(0,r.jsx)(_a,{}),A[8]=e.canTakeover,A[9]=G,A[10]=Z):Z=A[10];let c;A[11]!==e.canTakeover||A[12]!==G?(c=G&&e.canTakeover&&(0,r.jsx)(ja,{}),A[11]=e.canTakeover,A[12]=G,A[13]=c):c=A[13];let g;A[14]!==R||A[15]!==i||A[16]!==Z||A[17]!==c?(g=(0,r.jsxs)("div",{className:R,children:[i,Z,c]}),A[14]=R,A[15]=i,A[16]=Z,A[17]=c,A[18]=g):g=A[18];let h;return A[19]!==n||A[20]!==g?(h=(0,r.jsxs)(r.Fragment,{children:[n,g]}),A[19]=n,A[20]=g,A[21]=h):h=A[21],h};var iA="no-print pointer-events-auto hover:cursor-pointer",_a=()=>{let a=(0,P.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsx)(kA,{content:"App disconnected",children:(0,r.jsx)("div",{className:iA,children:(0,r.jsx)(da,{className:"w-[25px] h-[25px] text-(--red-11)"})})}),a[0]=A):A=a[0],A},ja=()=>{let a=(0,P.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsx)(kA,{content:"Notebook locked",children:(0,r.jsx)("div",{className:iA,children:(0,r.jsx)(Je,{className:"w-[25px] h-[25px] text-(--blue-11)"})})}),a[0]=A):A=a[0],A},Sa=()=>{let a=(0,P.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsx)(kA,{content:"Jump to running cell",side:"right",children:(0,r.jsx)("div",{className:iA,"data-testid":"loading-indicator",onClick:Ma,children:(0,r.jsx)(ga,{className:"running-app-icon",size:30,strokeWidth:1})})}),a[0]=A):A=a[0],A},Fa=()=>{let a=(0,P.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"noise"}),(0,r.jsx)("div",{className:"disconnected-gradient"})]}),a[0]=A):A=a[0],A},C=B(),Qa=aa,Pa=oa,La=ze(Ga),FA=u.forwardRef((a,A)=>{let e=(0,C.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,r.jsx)(yA,{className:G,...o,ref:A}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});FA.displayName=yA.displayName;var Oa=Pe("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),QA=u.forwardRef((a,A)=>{let e=(0,C.c)(15),t,o,G,s;e[0]===a?(t=e[1],o=e[2],G=e[3],s=e[4]):({side:s,className:o,children:t,...G}=a,e[0]=a,e[1]=t,e[2]=o,e[3]=G,e[4]=s);let n=s===void 0?"right":s,k;e[5]===Symbol.for("react.memo_cache_sentinel")?(k=(0,r.jsx)(FA,{}),e[5]=k):k=e[5];let R;e[6]!==o||e[7]!==n?(R=f(Oa({side:n}),o),e[6]=o,e[7]=n,e[8]=R):R=e[8];let i;e[9]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsxs)(ta,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,r.jsx)(Ve,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]}),e[9]=i):i=e[9];let Z;return e[10]!==t||e[11]!==G||e[12]!==A||e[13]!==R?(Z=(0,r.jsx)(La,{children:(0,r.jsxs)($e,{children:[k,(0,r.jsxs)(bA,{ref:A,className:R,...G,children:[t,i]})]})}),e[10]=t,e[11]=G,e[12]=A,e[13]=R,e[14]=Z):Z=e[14],Z});QA.displayName=bA.displayName;var Ta=a=>{let A=(0,C.c)(8),e,t;A[0]===a?(e=A[1],t=A[2]):({className:e,...t}=a,A[0]=a,A[1]=e,A[2]=t);let o;A[3]===e?o=A[4]:(o=f("flex flex-col space-y-2 text-center sm:text-left",e),A[3]=e,A[4]=o);let G;return A[5]!==t||A[6]!==o?(G=(0,r.jsx)("div",{className:o,...t}),A[5]=t,A[6]=o,A[7]=G):G=A[7],G};Ta.displayName="SheetHeader";var Ia=a=>{let A=(0,C.c)(8),e,t;A[0]===a?(e=A[1],t=A[2]):({className:e,...t}=a,A[0]=a,A[1]=e,A[2]=t);let o;A[3]===e?o=A[4]:(o=f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),A[3]=e,A[4]=o);let G;return A[5]!==t||A[6]!==o?(G=(0,r.jsx)("div",{className:o,...t}),A[5]=t,A[6]=o,A[7]=G):G=A[7],G};Ia.displayName="SheetFooter";var Ka=u.forwardRef((a,A)=>{let e=(0,C.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=f("text-lg font-semibold text-foreground",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,r.jsx)(MA,{ref:A,className:G,...o}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});Ka.displayName=MA.displayName;var Ha=u.forwardRef((a,A)=>{let e=(0,C.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=f("text-sm text-muted-foreground",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,r.jsx)(CA,{ref:A,className:G,...o}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});Ha.displayName=CA.displayName;var Ua=B();const lA=(0,u.memo)(()=>{let a=(0,Ua.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsx)(De,{name:fA.SIDEBAR}),a[0]=A):A=a[0],A});lA.displayName="SidebarSlot";var Va=B();const Xa=a=>{let A=(0,Va.c)(6),{openWidth:e}=a,t;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)(Pa,{className:"lg:hidden",asChild:!0,children:(0,r.jsx)(rA,{variant:"ghost",className:"bg-background",children:(0,r.jsx)(jA,{className:"w-5 h-5"})})}),A[0]=t):t=A[0];let o;A[1]===e?o=A[2]:(o={maxWidth:e},A[1]=e,A[2]=o);let G;A[3]===Symbol.for("react.memo_cache_sentinel")?(G=(0,r.jsx)(lA,{}),A[3]=G):G=A[3];let s;return A[4]===o?s=A[5]:(s=(0,r.jsxs)(Qa,{children:[t,(0,r.jsx)(QA,{className:"w-full px-3 h-full flex flex-col overflow-y-auto",style:o,side:"left",children:G})]}),A[4]=o,A[5]=s),s};var Wa=B();const Ja=a=>{let A=(0,Wa.c)(7),{isOpen:e,toggle:t}=a,o=e?"rotate-0":"rotate-180",G;A[0]===o?G=A[1]:(G=f("h-5 w-5 transition-transform ease-in-out duration-700",o),A[0]=o,A[1]=G);let s;A[2]===G?s=A[3]:(s=(0,r.jsx)(Ue,{className:G}),A[2]=G,A[3]=s);let n;return A[4]!==s||A[5]!==t?(n=(0,r.jsx)("div",{className:"invisible lg:visible absolute top-[12px] right-[16px] z-20",children:(0,r.jsx)(rA,{onClick:t,className:"w-10 h-8",variant:"ghost",size:"icon",children:s})}),A[4]=s,A[5]=t,A[6]=n):n=A[6],n};var qa=B();const za=a=>{let A=(0,qa.c)(11),{isOpen:e,toggle:t,width:o}=a,G=e?o:ve,s;A[0]===G?s=A[1]:(s={width:G},A[0]=G,A[1]=s);let n;A[2]===Symbol.for("react.memo_cache_sentinel")?(n=f("app-sidebar auto-collapse-nav","top-0 left-0 z-20 h-full hidden lg:block relative transition-[width] ease-in-out duration-300"),A[2]=n):n=A[2];let k;A[3]!==e||A[4]!==t?(k=(0,r.jsx)(Ja,{isOpen:e,toggle:t}),A[3]=e,A[4]=t,A[5]=k):k=A[5];let R;A[6]===Symbol.for("react.memo_cache_sentinel")?(R=(0,r.jsx)("div",{className:"relative h-full flex flex-col px-3 pb-16 pt-14 overflow-y-auto shadow-sm border-l",children:(0,r.jsx)(lA,{})}),A[6]=R):R=A[6];let i;return A[7]!==e||A[8]!==s||A[9]!==k?(i=(0,r.jsxs)("aside",{"data-expanded":e,style:s,className:n,children:[k,R]}),A[7]=e,A[8]=s,A[9]=k,A[10]=i):i=A[10],i};var $a=B();const At=a=>{let A=(0,$a.c)(15),{children:e}=a,[t,o]=uA(Be),{isOpen:G,width:s}=t;if(Ye(fA.SIDEBAR).length===0)return e;let n;A[0]===s?n=A[1]:(n=ie(s),A[0]=s,A[1]=n);let k=n,R;A[2]!==o||A[3]!==G?(R=()=>o({type:"toggle",isOpen:!G}),A[2]=o,A[3]=G,A[4]=R):R=A[4];let i;A[5]!==G||A[6]!==k||A[7]!==R?(i=(0,r.jsx)(za,{isOpen:G,width:k,toggle:R}),A[5]=G,A[6]=k,A[7]=R,A[8]=i):i=A[8];let Z;A[9]===k?Z=A[10]:(Z=(0,r.jsx)("div",{className:"absolute top-3 left-4 flex items-center z-50",children:(0,r.jsx)(Xa,{openWidth:k})}),A[9]=k,A[10]=Z);let c;return A[11]!==e||A[12]!==i||A[13]!==Z?(c=(0,r.jsxs)("div",{className:"inset-0 absolute flex",children:[i,Z,e]}),A[11]=e,A[12]=i,A[13]=Z,A[14]=c):c=A[14],c};var et=B();const at=a=>{let A=(0,et.c)(17),{width:e,connection:t,isRunning:o,children:G}=a,s=t.state,n;A[0]===o?n=A[1]:(n=(0,r.jsx)(ba,{isRunning:o}),A[0]=o,A[1]=n);let k;A[2]!==t||A[3]!==o?(k=(0,r.jsx)(Na,{connection:t,isRunning:o}),A[2]=t,A[3]=o,A[4]=k):k=A[4];let R;A[5]!==s||A[6]!==e?(R=f("mathjax_ignore",Ce(s)&&"disconnected","bg-background w-full h-full text-textColor","flex flex-col overflow-y-auto",e==="full"&&"config-width-full",e==="columns"?"overflow-x-auto":"overflow-x-hidden","print:height-fit"),A[5]=s,A[6]=e,A[7]=R):R=A[7];let i;A[8]!==G||A[9]!==s||A[10]!==R||A[11]!==e?(i=(0,r.jsx)(wa,{children:(0,r.jsx)(At,{children:(0,r.jsx)("div",{id:"App","data-config-width":e,"data-connection-state":s,className:R,children:G})})}),A[8]=G,A[9]=s,A[10]=R,A[11]=e,A[12]=i):i=A[12];let Z;return A[13]!==n||A[14]!==k||A[15]!==i?(Z=(0,r.jsxs)(r.Fragment,{children:[n,k,i]}),A[13]=n,A[14]=k,A[15]=i,A[16]=Z):Z=A[16],Z};function tt(a){return a.kind==="missing"}function PA(a){return a.kind==="installing"}var{valueAtom:Gt,useActions:ot}=Le(()=>({packageAlert:null,startupLogsAlert:null,packageLogs:{}}),{addPackageAlert:(a,A)=>{var o;let e={...a.packageLogs};if(PA(A)&&A.logs&&A.log_status)for(let[G,s]of Object.entries(A.logs))switch(A.log_status){case"start":e[G]=s;break;case"append":e[G]=(e[G]||"")+s;break;case"done":e[G]=(e[G]||"")+s;break}let t=((o=a.packageAlert)==null?void 0:o.id)||qe();return{...a,packageAlert:{id:t,...A},packageLogs:e}},clearPackageAlert:(a,A)=>a.packageAlert!==null&&a.packageAlert.id===A?{...a,packageAlert:null,packageLogs:{}}:a,addStartupLog:(a,A)=>{var t;let e=((t=a.startupLogsAlert)==null?void 0:t.content)||"";return{...a,startupLogsAlert:{...a.startupLogsAlert,content:e+A.content,status:A.status}}},clearStartupLogsAlert:a=>({...a,startupLogsAlert:null})});const st=()=>j(Gt);function LA(){return ot()}var OA=B();const TA=(0,u.memo)(a=>{let A=(0,OA.c)(11),{appConfig:e,mode:t,children:o}=a,{selectedLayout:G,layoutData:s}=Te(),n=j(EA);if(t==="edit"&&!n)return o;let k;if(A[0]!==t||A[1]!==G){k=G;let c=new URLSearchParams(window.location.search);if(t==="read"&&c.has(oA.viewAs)){let g=c.get(oA.viewAs);Za.includes(g)&&(k=g)}A[0]=t,A[1]=G,A[2]=k}else k=A[2];let R;A[3]===k?R=A[4]:(R=Ke.find(c=>c.type===k),A[3]=k,A[4]=R);let i=R;if(!i)return o;let Z;return A[5]!==e||A[6]!==k||A[7]!==s||A[8]!==t||A[9]!==i?(Z=(0,r.jsx)(rt,{appConfig:e,mode:t,plugin:i,layoutData:s,finalLayout:k}),A[5]=e,A[6]=k,A[7]=s,A[8]=t,A[9]=i,A[10]=Z):Z=A[10],Z});TA.displayName="CellsRenderer";const rt=a=>{let A=(0,OA.c)(18),{appConfig:e,mode:t,plugin:o,layoutData:G,finalLayout:s}=a,n=zA(),{setCurrentLayoutData:k}=vA(),R,i,Z,c,g;if(A[0]!==e||A[1]!==s||A[2]!==G||A[3]!==t||A[4]!==n||A[5]!==o){let w=ee(n);R=o.Component,i=e,Z=t,c=w,g=G[s]||o.getInitialLayout(w),A[0]=e,A[1]=s,A[2]=G,A[3]=t,A[4]=n,A[5]=o,A[6]=R,A[7]=i,A[8]=Z,A[9]=c,A[10]=g}else R=A[6],i=A[7],Z=A[8],c=A[9],g=A[10];let h;return A[11]!==R||A[12]!==k||A[13]!==i||A[14]!==Z||A[15]!==c||A[16]!==g?(h=(0,r.jsx)(R,{appConfig:i,mode:Z,cells:c,layout:g,setLayout:k}),A[11]=R,A[12]=k,A[13]=i,A[14]=Z,A[15]=c,A[16]=g,A[17]=h):h=A[17],h};var nt=class IA{constructor(A){GA(this,"hasStarted",!1);GA(this,"handleReadyEvent",A=>{let e=A.detail.objectId;if(!this.uiElementRegistry.has(e))return;let t=this.uiElementRegistry.lookupValue(e);t!==void 0&&this.sendComponentValues({objectIds:[e],values:[t]}).catch(o=>{D.warn(o)})});this.uiElementRegistry=A}static get INSTANCE(){let A="_marimo_private_RuntimeState";return window[A]||(window[A]=new IA(S)),window[A]}get sendComponentValues(){if(!this._sendComponentValues)throw Error("sendComponentValues is not set");return this._sendComponentValues}start(A){if(this.hasStarted){D.warn("RuntimeState already started");return}this._sendComponentValues=A,document.addEventListener(pA.TYPE,this.handleReadyEvent),this.hasStarted=!0}stop(){if(!this.hasStarted){D.warn("RuntimeState already stopped");return}document.removeEventListener(pA.TYPE,this.handleReadyEvent),this.hasStarted=!1}};function kt(a){if(a.static)return xe.empty();if(sA())return Re();let A=a.url;return new ia(A,void 0,{maxRetries:10,debug:!1,startClosed:!0,connectionTimeout:1e4})}function Rt(a){let{onOpen:A,onMessage:e,onClose:t,onError:o,waitToConnect:G}=a,[s]=(0,u.useState)(()=>{let n=kt(a);return n.addEventListener("open",A),n.addEventListener("close",t),n.addEventListener("error",o),n.addEventListener("message",e),n});return(0,u.useEffect)(()=>(s.readyState===WebSocket.CLOSED&&G().then(()=>s.reconnect()).catch(n=>{D.error("Healthy connection never made",n),s.close()}),()=>{D.warn("useConnectionTransport is unmounting. This likely means there is a bug."),s.close(),s.removeEventListener("open",A),s.removeEventListener("close",t),s.removeEventListener("error",o),s.removeEventListener("message",e)}),[s]),s}function it(a){let{codes:A,names:e,configs:t,cell_ids:o,last_executed_code:G,last_execution_time:s}=a,n=G||{},k=s||{};return A.map((R,i)=>{let Z=o[i],c=n[Z];return JA({id:Z,code:R,edited:c?c!==R:!1,name:e[i],lastCodeRun:n[Z]??null,lastExecutionTime:k[Z]??null,config:t[i]})})}function lt(a,A,e){let t=Ie(),{layout:o}=a;if(o){let G=o.type,s=He({type:G,data:o.data,cells:A});t.selectedLayout=G,t.layoutData[G]=s,e({layoutView:G,data:s})}return t}function Zt(){let a=[],A=[];return S.entries.forEach((e,t)=>{a.push(t),A.push(e.value)}),{objectIds:a,values:A}}function ct(a,A){let{existingCells:e,autoInstantiate:t,setCells:o,setLayoutData:G,setAppConfig:s,setCapabilities:n,setKernelState:k,onError:R}=A,{resumed:i,ui_values:Z,app_config:c,capabilities:g,auto_instantiated:h}=a,w=e&&e.length>0,y=w&&!i?e:it(a);o(y,lt(a,y,G));let v=Ee.safeParse(c);if(v.success?s(v.data):D.error("Failed to parse app config",v.error),n(g),h)return;if(i){for(let[m,Y]of xA.entries(Z||{}))S.set(m,Y);return}let{objectIds:b,values:M}=Zt(),N=w?Object.fromEntries(e.map(m=>[m.id,m.code])):void 0;Oe().sendInstantiate({objectIds:b,values:M,autoRun:t,codes:N}).then(()=>{k({isInstantiated:!0,error:null})}).catch(m=>{k({isInstantiated:!1,error:m}),R(Error("Failed to instantiate",{cause:m}))})}function gt(a){let A=a.cell_id;S.removeElementsByCell(A),DA.INSTANCE.removeForCellId(A)}function ht(a,A){A(a),DA.INSTANCE.track(a)}const J={append:a=>{let A=new URL(window.location.href);A.searchParams.append(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},set:a=>{let A=new URL(window.location.href);Array.isArray(a.value)?(A.searchParams.delete(a.key),a.value.forEach(e=>A.searchParams.append(a.key,e))):A.searchParams.set(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},delete:a=>{let A=new URL(window.location.href);a.value==null?A.searchParams.delete(a.key):A.searchParams.delete(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},clear:()=>{let a=new URL(window.location.href);a.search="",window.history.pushState({},"",`${a.pathname}${a.search}`)}};var dt=B();function Bt(){return Object.values(mA().cellData).filter(a=>a.id!==ae)}function ut(a){let A=(0,dt.c)(37),e=(0,u.useRef)(!0),{autoInstantiate:t,sessionId:o,setCells:G}=a,{showBoundary:s}=Se(),{handleCellMessage:n,setCellCodes:k,setCellIds:R}=se(),{addCellNotification:i}=ca(),Z=_(ue),c=ye(),{setVariables:g,setMetadata:h}=ne(),{addColumnPreview:w}=YA(),{addDatasets:y,filterDatasetsFromVariables:v}=YA(),{addDataSourceConnection:b,filterDataSourcesFromVariables:M}=Ae(),{setLayoutData:N}=vA(),[m,Y]=uA(Ne),{addBanner:q}=me(),{addPackageAlert:L,addStartupLog:z}=LA(),$=_(EA),AA=_(te),E=be(),eA=_(Ra),aA=_(pe),O;A[0]!==q||A[1]!==i||A[2]!==w||A[3]!==b||A[4]!==y||A[5]!==L||A[6]!==z||A[7]!==t||A[8]!==M||A[9]!==v||A[10]!==n||A[11]!==c||A[12]!==eA||A[13]!==AA||A[14]!==k||A[15]!==R||A[16]!==G||A[17]!==aA||A[18]!==Z||A[19]!==$||A[20]!==N||A[21]!==h||A[22]!==g||A[23]!==s?(O=d=>{let l=oe(d.data);switch(l.data.op){case"reload":NA();return;case"kernel-ready":{let p=Bt();ct(l.data,{autoInstantiate:t,setCells:G,setLayoutData:N,setAppConfig:c,setCapabilities:AA,setKernelState:Z,onError:s,existingCells:p}),$(l.data.kiosk);return}case"completed-run":return;case"interrupted":return;case"kernel-startup-error":aA(l.data.error);return;case"send-ui-element-message":{let p=l.data.model_id,cA=l.data.ui_element,gA=l.data.message,hA=Xe(l.data);p&&le(gA)&&ge({modelId:p,msg:gA,buffers:hA,modelManager:ce}),cA&&S.broadcastMessage(cA,l.data.message,hA);return}case"remove-ui-elements":gt(l.data);return;case"completion-result":Ge.resolve(l.data.completion_id,l.data);return;case"function-call-result":Ze.resolve(l.data.function_call_id,l.data);return;case"cell-op":{ht(l.data,n);let p=mA().cellData[l.data.cell_id];if(!p)return;i({cellNotification:l.data,code:p.code});return}case"variables":g(l.data.variables.map(xt)),v(l.data.variables.map(pt)),M(l.data.variables.map(ft));return;case"variable-values":h(l.data.variables.map(Yt));return;case"alert":nA({title:l.data.title,description:sa({html:l.data.description}),variant:l.data.variant});return;case"banner":q(l.data);return;case"missing-package-alert":L({...l.data,kind:"missing"});return;case"installing-package-alert":L({...l.data,kind:"installing"});return;case"startup-logs":z({content:l.data.content,status:l.data.status});return;case"query-params-append":J.append(l.data);return;case"query-params-set":J.set(l.data);return;case"query-params-delete":J.delete(l.data);return;case"query-params-clear":J.clear();return;case"datasets":y(l.data);return;case"data-column-preview":w(l.data);return;case"sql-table-preview":WA.resolve(l.data.request_id,l.data);return;case"sql-table-list-preview":XA.resolve(l.data.request_id,l.data);return;case"validate-sql-result":$A.resolve(l.data.request_id,l.data);return;case"secret-keys-result":la.resolve(l.data.request_id,l.data);return;case"cache-info":eA(l.data);return;case"cache-cleared":return;case"data-source-connections":b({connections:l.data.connections.map(mt)});return;case"reconnected":return;case"focus-cell":qA(l.data.cell_id);return;case"update-cell-codes":k({codes:l.data.codes,ids:l.data.cell_ids,codeIsStale:l.data.code_is_stale});return;case"update-cell-ids":R({cellIds:l.data.cell_ids});return;default:ke(l.data)}},A[0]=q,A[1]=i,A[2]=w,A[3]=b,A[4]=y,A[5]=L,A[6]=z,A[7]=t,A[8]=M,A[9]=v,A[10]=n,A[11]=c,A[12]=eA,A[13]=AA,A[14]=k,A[15]=R,A[16]=G,A[17]=aA,A[18]=Z,A[19]=$,A[20]=N,A[21]=h,A[22]=g,A[23]=s,A[24]=O):O=A[24];let tA=O,ZA=(d,l)=>{e.current&&(e.current=!1,V.reconnect(d,l))},T;A[25]===Symbol.for("react.memo_cache_sentinel")?(T=wA(),A[25]=T):T=A[25];let I;A[26]!==E||A[27]!==o?(I=()=>E.getWsURL(o).toString(),A[26]=E,A[27]=o,A[28]=I):I=A[28];let K;A[29]===Y?K=A[30]:(K=async()=>{e.current=!0,Y({state:x.OPEN})},A[29]=Y,A[30]=K);let H;A[31]===E?H=A[32]:(H=async()=>{wA()||sA()||E.isSameOrigin||await E.waitForHealthy()},A[31]=E,A[32]=H);let U;A[33]===tA?U=A[34]:(U=d=>{try{tA(d)}catch(l){let p=l;D.error("Failed to handle message",d.data,p),nA({title:"Failed to handle message",description:_A(p),variant:"danger"})}},A[33]=tA,A[34]=U);let V=Rt({static:T,url:I,onOpen:K,waitToConnect:H,onMessage:U,onClose:d=>{switch(D.warn("WebSocket closed",d.code,d.reason),d.reason){case"MARIMO_ALREADY_CONNECTED":Y({state:x.CLOSED,code:F.ALREADY_RUNNING,reason:"another browser tab is already connected to the kernel",canTakeover:!0}),V.close();return;case"MARIMO_WRONG_KERNEL_ID":case"MARIMO_NO_FILE_KEY":case"MARIMO_NO_SESSION_ID":case"MARIMO_NO_SESSION":case"MARIMO_SHUTDOWN":Y({state:x.CLOSED,code:F.KERNEL_DISCONNECTED,reason:"kernel not found"}),V.close();return;case"MARIMO_MALFORMED_QUERY":Y({state:x.CLOSED,code:F.MALFORMED_QUERY,reason:"the kernel did not recognize a request; please file a bug with marimo"});return;default:if(d.reason==="MARIMO_KERNEL_STARTUP_ERROR"){Y({state:x.CLOSED,code:F.KERNEL_STARTUP_ERROR,reason:"Failed to start kernel sandbox"}),V.close();return}Y({state:x.CONNECTING}),ZA(d.code,d.reason)}},onError:d=>{D.warn("WebSocket error",d),Y({state:x.CLOSED,code:F.KERNEL_DISCONNECTED,reason:"kernel not found"}),ZA()}}),X;return A[35]===m?X=A[36]:(X={connection:m},A[35]=m,A[36]=X),X}function mt(a){return{...a,name:a.name}}function Yt(a){return{name:a.name,dataType:a.datatype,value:a.value}}function ft(a){return a.name}function pt(a){return a.name}function xt(a){return{name:a.name,declaredBy:a.declared_by,usedBy:a.used_by}}var wt=B();const Dt=a=>{let A=(0,wt.c)(2),{children:e}=a,t;return A[0]===e?t=A[1]:(t=(0,r.jsx)("div",{className:"flex flex-col flex-1 overflow-hidden absolute inset-0 print:relative",children:e}),A[0]=e,A[1]=t),t};export{PA as a,st as c,jA as d,TA as i,at as l,ut as n,tt as o,nt as r,LA as s,Dt as t,fa as u}; diff --git a/docs/assets/pascal-64fygDAy.js b/docs/assets/pascal-64fygDAy.js new file mode 100644 index 0000000..816d706 --- /dev/null +++ b/docs/assets/pascal-64fygDAy.js @@ -0,0 +1 @@ +import{t as a}from"./pascal-DZhgfws7.js";export{a as pascal}; diff --git a/docs/assets/pascal-CZJGM8La.js b/docs/assets/pascal-CZJGM8La.js new file mode 100644 index 0000000..fd54483 --- /dev/null +++ b/docs/assets/pascal-CZJGM8La.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Pascal","fileTypes":["pas","p","pp","dfm","fmx","dpr","dpk","lfm","lpr","ppr"],"name":"pascal","patterns":[{"match":"\\\\b(?i:(absolute|abstract|add|all|and_then|array|asc??|asm|assembler|async|attribute|autoreleasepool|await|begin|bindable|block|by|case|cdecl|class|concat|const|constref|copy|cppdecl|contains|default|delegate|deprecated|desc|distinct|div|each|else|empty|end|ensure|enum|equals|event|except|exports??|extension|external|far|file|finalization|finalizer|finally|flags|forward|from|future|generic|goto|group|has|helper|if|implements|implies|import|in|index|inherited|initialization|inline|interrupt|into|invariants|is|iterator|label|library|join|lazy|lifetimestrategy|locked|locking|loop|mapped|matching|message|method|mod|module|name|namespace|near|nested|new|nostackframe|not|notify|nullable|object|of|old|oldfpccall|on|only|operator|optional|or_else|order|otherwise|out|override|package|packed|parallel|params|partial|pascal|pinned|platform|pow|private|program|protected|public|published|interface|implementation|qualified|queryable|raises|read|readonly|record|reference|register|remove|resident|requires??|resourcestring|restricted|result|reverse|safecall|sealed|segment|select|selector|sequence|set|shl|shr|skip|specialize|soft|static|stored|stdcall|step|strict|strong|take|then|threadvar|to|try|tuple|type|unconstrained|unit|unmanaged|unretained|unsafe|uses|using|var|view|virtual|volatile|weak|dynamic|overload|reintroduce|where|with|write|xor|yield))\\\\b","name":"keyword.pascal"},{"captures":{"1":{"name":"storage.type.prototype.pascal"},"2":{"name":"entity.name.function.prototype.pascal"}},"match":"\\\\b(?i:(function|procedure|constructor|destructor))\\\\b\\\\s+(\\\\w+(\\\\.\\\\w+)?)(\\\\(.*?\\\\))?;\\\\s*(?=(?i:attribute|forward|external))","name":"meta.function.prototype.pascal"},{"captures":{"1":{"name":"storage.type.function.pascal"},"2":{"name":"entity.name.function.pascal"}},"match":"\\\\b(?i:(function|procedure|constructor|destructor|property|read|write))\\\\b\\\\s+(\\\\w+(\\\\.\\\\w+)?)","name":"meta.function.pascal"},{"match":"\\\\b(?i:(self|result))\\\\b","name":"token.variable"},{"match":"\\\\b(?i:(and|or))\\\\b","name":"keyword.operator.pascal"},{"match":"\\\\b(?i:(break|continue|exit|abort|while|do|downto|for|raise|repeat|until))\\\\b","name":"keyword.control.pascal"},{"begin":"\\\\{\\\\$","captures":{"0":{"name":"string.regexp"}},"end":"}","name":"string.regexp"},{"match":"\\\\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int8|int16|int32|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint8|uint16|uint32|uint64|variant|widechar|widestring|word|wordbool|uintptr|intptr))\\\\b","name":"storage.support.type.pascal"},{"match":"\\\\b(\\\\d+)|(\\\\d*\\\\.\\\\d+([Ee][-+]?\\\\d+)?)\\\\b","name":"constant.numeric.pascal"},{"match":"\\\\$\\\\h{1,16}\\\\b","name":"constant.numeric.hex.pascal"},{"match":"\\\\b(?i:(true|false|nil))\\\\b","name":"constant.language.pascal"},{"match":"\\\\b(?i:(Assert))\\\\b","name":"keyword.control"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.pascal"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.pascal"}},"end":"\\\\n","name":"comment.line.double-slash.pascal.two"}]},{"begin":"\\\\(\\\\*","captures":{"0":{"name":"punctuation.definition.comment.pascal"}},"end":"\\\\*\\\\)","name":"comment.block.pascal.one"},{"begin":"\\\\{(?!\\\\$)","captures":{"0":{"name":"punctuation.definition.comment.pascal"}},"end":"}","name":"comment.block.pascal.two"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.pascal"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.pascal"}},"name":"string.quoted.single.pascal","patterns":[{"match":"''","name":"constant.character.escape.apostrophe.pascal"}]},{"match":"#\\\\d+","name":"string.other.pascal"}],"scopeName":"source.pascal"}`))];export{e as default}; diff --git a/docs/assets/pascal-DZhgfws7.js b/docs/assets/pascal-DZhgfws7.js new file mode 100644 index 0000000..2b71b5c --- /dev/null +++ b/docs/assets/pascal-DZhgfws7.js @@ -0,0 +1 @@ +function c(e){for(var r={},t=e.split(" "),n=0;n<t.length;++n)r[t[n]]=!0;return r}var u=c("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),f={null:!0},i=/[+\-*&%=<>!?|\/]/;function p(e,r){var t=e.next();if(t=="#"&&r.startOfLine)return e.skipToEnd(),"meta";if(t=='"'||t=="'")return r.tokenize=d(t),r.tokenize(e,r);if(t=="("&&e.eat("*"))return r.tokenize=l,l(e,r);if(t=="{")return r.tokenize=s,s(e,r);if(/[\[\]\(\),;\:\.]/.test(t))return null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(t=="/"&&e.eat("/"))return e.skipToEnd(),"comment";if(i.test(t))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_]/);var n=e.current().toLowerCase();return u.propertyIsEnumerable(n)?"keyword":f.propertyIsEnumerable(n)?"atom":"variable"}function d(e){return function(r,t){for(var n=!1,a,o=!1;(a=r.next())!=null;){if(a==e&&!n){o=!0;break}n=!n&&a=="\\"}return(o||!n)&&(t.tokenize=null),"string"}}function l(e,r){for(var t=!1,n;n=e.next();){if(n==")"&&t){r.tokenize=null;break}t=n=="*"}return"comment"}function s(e,r){for(var t;t=e.next();)if(t=="}"){r.tokenize=null;break}return"comment"}const m={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,r){return e.eatSpace()?null:(r.tokenize||p)(e,r)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}};export{m as t}; diff --git a/docs/assets/path-DvTahePH.js b/docs/assets/path-DvTahePH.js new file mode 100644 index 0000000..0bc07e9 --- /dev/null +++ b/docs/assets/path-DvTahePH.js @@ -0,0 +1 @@ +function E(t){return function(){return t}}var o=Math.PI,y=2*o,u=1e-6,L=y-u;function w(t){this._+=t[0];for(let i=1,h=t.length;i<h;++i)this._+=arguments[i]+t[i]}function q(t){let i=Math.floor(t);if(!(i>=0))throw Error(`invalid digits: ${t}`);if(i>15)return w;let h=10**i;return function(s){this._+=s[0];for(let r=1,_=s.length;r<_;++r)this._+=Math.round(arguments[r]*h)/h+s[r]}}var M=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?w:q(t)}moveTo(t,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,i){this._append`L${this._x1=+t},${this._y1=+i}`}quadraticCurveTo(t,i,h,s){this._append`Q${+t},${+i},${this._x1=+h},${this._y1=+s}`}bezierCurveTo(t,i,h,s,r,_){this._append`C${+t},${+i},${+h},${+s},${this._x1=+r},${this._y1=+_}`}arcTo(t,i,h,s,r){if(t=+t,i=+i,h=+h,s=+s,r=+r,r<0)throw Error(`negative radius: ${r}`);let _=this._x1,l=this._y1,p=h-t,a=s-i,n=_-t,e=l-i,$=n*n+e*e;if(this._x1===null)this._append`M${this._x1=t},${this._y1=i}`;else if($>u)if(!(Math.abs(e*p-a*n)>u)||!r)this._append`L${this._x1=t},${this._y1=i}`;else{let d=h-_,f=s-l,c=p*p+a*a,A=d*d+f*f,g=Math.sqrt(c),v=Math.sqrt($),b=r*Math.tan((o-Math.acos((c+$-A)/(2*g*v)))/2),x=b/v,m=b/g;Math.abs(x-1)>u&&this._append`L${t+x*n},${i+x*e}`,this._append`A${r},${r},0,0,${+(e*d>n*f)},${this._x1=t+m*p},${this._y1=i+m*a}`}}arc(t,i,h,s,r,_){if(t=+t,i=+i,h=+h,_=!!_,h<0)throw Error(`negative radius: ${h}`);let l=h*Math.cos(s),p=h*Math.sin(s),a=t+l,n=i+p,e=1^_,$=_?s-r:r-s;this._x1===null?this._append`M${a},${n}`:(Math.abs(this._x1-a)>u||Math.abs(this._y1-n)>u)&&this._append`L${a},${n}`,h&&($<0&&($=$%y+y),$>L?this._append`A${h},${h},0,1,${e},${t-l},${i-p}A${h},${h},0,1,${e},${this._x1=a},${this._y1=n}`:$>u&&this._append`A${h},${h},0,${+($>=o)},${e},${this._x1=t+h*Math.cos(r)},${this._y1=i+h*Math.sin(r)}`)}rect(t,i,h,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+i}h${h=+h}v${+s}h${-h}Z`}toString(){return this._}};function T(){return new M}T.prototype=M.prototype;function C(t){let i=3;return t.digits=function(h){if(!arguments.length)return i;if(h==null)i=null;else{let s=Math.floor(h);if(!(s>=0))throw RangeError(`invalid digits: ${h}`);i=s}return t},()=>new M(i)}export{T as n,E as r,C as t}; diff --git a/docs/assets/perl-BKXEkch3.js b/docs/assets/perl-BKXEkch3.js new file mode 100644 index 0000000..c695eba --- /dev/null +++ b/docs/assets/perl-BKXEkch3.js @@ -0,0 +1 @@ +function f(e,r){return e.string.charAt(e.pos+(r||0))}function g(e,r){if(r){var i=e.pos-r;return e.string.substr(i>=0?i:0,r)}else return e.string.substr(0,e.pos-1)}function u(e,r){var i=e.string.length,$=i-e.pos+1;return e.string.substr(e.pos,r&&r<i?r:$)}function o(e,r){var i=e.pos+r,$;i<=0?e.pos=0:i>=($=e.string.length-1)?e.pos=$:e.pos=i}var _={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},s="string.special",a=/[goseximacplud]/;function n(e,r,i,$,E){return r.chain=null,r.style=null,r.tail=null,r.tokenize=function(t,R){for(var A=!1,c,p=0;c=t.next();){if(c===i[p]&&!A)return i[++p]===void 0?E&&t.eatWhile(E):(R.chain=i[p],R.style=$,R.tail=E),R.tokenize=T,$;A=!A&&c=="\\"}return $},r.tokenize(e,r)}function d(e,r,i){return r.tokenize=function($,E){return $.string==i&&(E.tokenize=T),$.skipToEnd(),"string"},r.tokenize(e,r)}function T(e,r){if(e.eatSpace())return null;if(r.chain)return n(e,r,r.chain,r.style,r.tail);if(e.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=[_a-zA-Z])/))return e.eatWhile(/\w/),d(e,r,e.current().substr(2));if(e.sol()&&e.match(/^\=item(?!\w)/))return d(e,r,"=cut");var i=e.next();if(i=='"'||i=="'"){if(g(e,3)=="<<"+i){var $=e.pos;e.eatWhile(/\w/);var E=e.current().substr(1);if(E&&e.eat(i))return d(e,r,E);e.pos=$}return n(e,r,[i],"string")}if(i=="q"){var t=f(e,-2);if(!(t&&/\w/.test(t))){if(t=f(e,0),t=="x"){if(t=f(e,1),t=="(")return o(e,2),n(e,r,[")"],s,a);if(t=="[")return o(e,2),n(e,r,["]"],s,a);if(t=="{")return o(e,2),n(e,r,["}"],s,a);if(t=="<")return o(e,2),n(e,r,[">"],s,a);if(/[\^'"!~\/]/.test(t))return o(e,1),n(e,r,[e.eat(t)],s,a)}else if(t=="q"){if(t=f(e,1),t=="(")return o(e,2),n(e,r,[")"],"string");if(t=="[")return o(e,2),n(e,r,["]"],"string");if(t=="{")return o(e,2),n(e,r,["}"],"string");if(t=="<")return o(e,2),n(e,r,[">"],"string");if(/[\^'"!~\/]/.test(t))return o(e,1),n(e,r,[e.eat(t)],"string")}else if(t=="w"){if(t=f(e,1),t=="(")return o(e,2),n(e,r,[")"],"bracket");if(t=="[")return o(e,2),n(e,r,["]"],"bracket");if(t=="{")return o(e,2),n(e,r,["}"],"bracket");if(t=="<")return o(e,2),n(e,r,[">"],"bracket");if(/[\^'"!~\/]/.test(t))return o(e,1),n(e,r,[e.eat(t)],"bracket")}else if(t=="r"){if(t=f(e,1),t=="(")return o(e,2),n(e,r,[")"],s,a);if(t=="[")return o(e,2),n(e,r,["]"],s,a);if(t=="{")return o(e,2),n(e,r,["}"],s,a);if(t=="<")return o(e,2),n(e,r,[">"],s,a);if(/[\^'"!~\/]/.test(t))return o(e,1),n(e,r,[e.eat(t)],s,a)}else if(/[\^'"!~\/(\[{<]/.test(t)){if(t=="(")return o(e,1),n(e,r,[")"],"string");if(t=="[")return o(e,1),n(e,r,["]"],"string");if(t=="{")return o(e,1),n(e,r,["}"],"string");if(t=="<")return o(e,1),n(e,r,[">"],"string");if(/[\^'"!~\/]/.test(t))return n(e,r,[e.eat(t)],"string")}}}if(i=="m"){var t=f(e,-2);if(!(t&&/\w/.test(t))&&(t=e.eat(/[(\[{<\^'"!~\/]/),t)){if(/[\^'"!~\/]/.test(t))return n(e,r,[t],s,a);if(t=="(")return n(e,r,[")"],s,a);if(t=="[")return n(e,r,["]"],s,a);if(t=="{")return n(e,r,["}"],s,a);if(t=="<")return n(e,r,[">"],s,a)}}if(i=="s"){var t=/[\/>\]})\w]/.test(f(e,-2));if(!t&&(t=e.eat(/[(\[{<\^'"!~\/]/),t))return t=="["?n(e,r,["]","]"],s,a):t=="{"?n(e,r,["}","}"],s,a):t=="<"?n(e,r,[">",">"],s,a):t=="("?n(e,r,[")",")"],s,a):n(e,r,[t,t],s,a)}if(i=="y"){var t=/[\/>\]})\w]/.test(f(e,-2));if(!t&&(t=e.eat(/[(\[{<\^'"!~\/]/),t))return t=="["?n(e,r,["]","]"],s,a):t=="{"?n(e,r,["}","}"],s,a):t=="<"?n(e,r,[">",">"],s,a):t=="("?n(e,r,[")",")"],s,a):n(e,r,[t,t],s,a)}if(i=="t"){var t=/[\/>\]})\w]/.test(f(e,-2));if(!t&&(t=e.eat("r"),t&&(t=e.eat(/[(\[{<\^'"!~\/]/),t)))return t=="["?n(e,r,["]","]"],s,a):t=="{"?n(e,r,["}","}"],s,a):t=="<"?n(e,r,[">",">"],s,a):t=="("?n(e,r,[")",")"],s,a):n(e,r,[t,t],s,a)}if(i=="`")return n(e,r,[i],"builtin");if(i=="/")return/~\s*$/.test(g(e))?n(e,r,[i],s,a):"operator";if(i=="$"){var $=e.pos;if(e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"builtin";e.pos=$}if(/[$@%]/.test(i)){var $=e.pos;if(e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(f(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var t=e.current();if(_[t])return"builtin"}e.pos=$}if(/[$@%&]/.test(i)&&(e.eatWhile(/[\w$]/)||e.eat("{")&&e.eatWhile(/[\w$]/)&&e.eat("}"))){var t=e.current();return _[t]?"builtin":"variable"}if(i=="#"&&f(e,-2)!="$")return e.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(i)){var $=e.pos;if(e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),_[e.current()])return"operator";e.pos=$}if(i=="_"&&e.pos==1){if(u(e,6)=="_END__")return n(e,r,["\0"],"comment");if(u(e,7)=="_DATA__")return n(e,r,["\0"],"builtin");if(u(e,7)=="_C__")return n(e,r,["\0"],"string")}if(/\w/.test(i)){var $=e.pos;if(f(e,-2)=="{"&&(f(e,0)=="}"||e.eatWhile(/\w/)&&f(e,0)=="}"))return"string";e.pos=$}if(/[A-Z]/.test(i)){var R=f(e,-2),$=e.pos;if(e.eatWhile(/[A-Z_]/),/[\da-z]/.test(f(e,0)))e.pos=$;else{var t=_[e.current()];return t?(t[1]&&(t=t[0]),R==":"?"meta":t==1?"keyword":t==2?"def":t==3?"atom":t==4?"operator":t==5?"builtin":"meta"):"meta"}}if(/[a-zA-Z_]/.test(i)){var R=f(e,-2);e.eatWhile(/\w/);var t=_[e.current()];return t?(t[1]&&(t=t[0]),R==":"?"meta":t==1?"keyword":t==2?"def":t==3?"atom":t==4?"operator":t==5?"builtin":"meta"):"meta"}return null}const S={name:"perl",startState:function(){return{tokenize:T,chain:null,style:null,tail:null}},token:function(e,r){return(r.tokenize||T)(e,r)},languageData:{commentTokens:{line:"#"},wordChars:"$"}};export{S as t}; diff --git a/docs/assets/perl-BMO4-Wia.js b/docs/assets/perl-BMO4-Wia.js new file mode 100644 index 0000000..5cbf092 --- /dev/null +++ b/docs/assets/perl-BMO4-Wia.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./css-xi2XX7Oh.js";import{t}from"./html-Bz1QLM72.js";import{t as i}from"./xml-CmKMNcqy.js";import{t as r}from"./sql-HYiT1H9d.js";var a=Object.freeze(JSON.parse(`{"displayName":"Perl","name":"perl","patterns":[{"include":"#line_comment"},{"begin":"^(?==[A-Za-z]+)","end":"^(=cut\\\\b.*)$","endCaptures":{"1":{"patterns":[{"include":"#pod"}]}},"name":"comment.block.documentation.perl","patterns":[{"include":"#pod"}]},{"include":"#variable"},{"applyEndPatternLast":1,"begin":"\\\\b(?=qr\\\\s*[^\\\\s\\\\w])","end":"((([acdegil-prsux]*)))(?=(\\\\s+\\\\S|\\\\s*[#),;{}]|\\\\s*$))","endCaptures":{"1":{"name":"string.regexp.compile.perl"},"2":{"name":"punctuation.definition.string.perl"},"3":{"name":"keyword.control.regexp-option.perl"}},"patterns":[{"begin":"(qr)\\\\s*\\\\{","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"}","name":"string.regexp.compile.nested_braces.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_braces_interpolated"}]},{"begin":"(qr)\\\\s*\\\\[","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"]","name":"string.regexp.compile.nested_brackets.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_brackets_interpolated"}]},{"begin":"(qr)\\\\s*<","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":">","name":"string.regexp.compile.nested_ltgt.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_ltgt_interpolated"}]},{"begin":"(qr)\\\\s*\\\\(","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"\\\\)","name":"string.regexp.compile.nested_parens.perl","patterns":[{"match":"\\\\$(?=[^'(<\\\\[\\\\\\\\{\\\\s\\\\w])"},{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_parens_interpolated"}]},{"begin":"(qr)\\\\s*'","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"'","name":"string.regexp.compile.single-quote.perl","patterns":[{"include":"#escaped_char"}]},{"begin":"(qr)\\\\s*([^'(<\\\\[{\\\\s\\\\w])","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"\\\\2","name":"string.regexp.compile.simple-delimiter.perl","patterns":[{"match":"\\\\$(?=[^'(<\\\\[{\\\\s\\\\w])","name":"keyword.control.anchor.perl"},{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_parens_interpolated"}]}]},{"applyEndPatternLast":1,"begin":"(?<![-+{])\\\\b(?=m\\\\s*[^0-9A-Za-z\\\\s])","end":"((([acdegil-prsux]*)))(?=(\\\\s+\\\\S|\\\\s*[#),;{}]|\\\\s*$))","endCaptures":{"1":{"name":"string.regexp.find-m.perl"},"2":{"name":"punctuation.definition.string.perl"},"3":{"name":"keyword.control.regexp-option.perl"}},"patterns":[{"begin":"(m)\\\\s*\\\\{","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"}","name":"string.regexp.find-m.nested_braces.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_braces_interpolated"}]},{"begin":"(m)\\\\s*\\\\[","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"]","name":"string.regexp.find-m.nested_brackets.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_brackets_interpolated"}]},{"begin":"(m)\\\\s*<","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":">","name":"string.regexp.find-m.nested_ltgt.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_ltgt_interpolated"}]},{"begin":"(m)\\\\s*\\\\(","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"\\\\)","name":"string.regexp.find-m.nested_parens.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_parens_interpolated"}]},{"begin":"(m)\\\\s*'","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"'","name":"string.regexp.find-m.single-quote.perl","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\G(?<![-+{])(m)(?!_)\\\\s*([^'(0-9<A-\\\\[a-{\\\\s])","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"\\\\2","name":"string.regexp.find-m.simple-delimiter.perl","patterns":[{"match":"\\\\$(?=[^'(0-9<A-\\\\[a-{\\\\s])","name":"keyword.control.anchor.perl"},{"include":"#escaped_char"},{"include":"#variable"},{"begin":"\\\\[","beginCaptures":{"1":{"name":"punctuation.definition.character-class.begin.perl"}},"end":"]","endCaptures":{"1":{"name":"punctuation.definition.character-class.end.perl"}},"name":"constant.other.character-class.set.perl","patterns":[{"match":"\\\\$(?=[^'(<\\\\[{\\\\s\\\\w])","name":"keyword.control.anchor.perl"},{"include":"#escaped_char"}]},{"include":"#nested_parens_interpolated"}]}]},{"applyEndPatternLast":1,"begin":"\\\\b(?=(?<!&)(s)(\\\\s+\\\\S|\\\\s*[(),;<\\\\[{}]|$))","end":"((([acdegil-prsux]*)))(?=(\\\\s+\\\\S|\\\\s*[]),;>{}]|\\\\s*$))","endCaptures":{"1":{"name":"string.regexp.replace.perl"},"2":{"name":"punctuation.definition.string.perl"},"3":{"name":"keyword.control.regexp-option.perl"}},"patterns":[{"begin":"(s)\\\\s*\\\\{","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"}","name":"string.regexp.nested_braces.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_braces"}]},{"begin":"(s)\\\\s*\\\\[","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"]","name":"string.regexp.nested_brackets.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_brackets"}]},{"begin":"(s)\\\\s*<","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":">","name":"string.regexp.nested_ltgt.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_ltgt"}]},{"begin":"(s)\\\\s*\\\\(","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"\\\\)","name":"string.regexp.nested_parens.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_parens"}]},{"begin":"\\\\{","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"}","name":"string.regexp.format.nested_braces.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_braces_interpolated"}]},{"begin":"\\\\[","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"]","name":"string.regexp.format.nested_brackets.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_brackets_interpolated"}]},{"begin":"<","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":">","name":"string.regexp.format.nested_ltgt.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_ltgt_interpolated"}]},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"\\\\)","name":"string.regexp.format.nested_parens.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_parens_interpolated"}]},{"begin":"'","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"'","name":"string.regexp.format.single_quote.perl","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.perl"}]},{"begin":"([^(;<\\\\[{\\\\s\\\\w])","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"\\\\1","name":"string.regexp.format.simple_delimiter.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"}]},{"match":"\\\\s+"}]},{"begin":"\\\\b(?=s([^(0-9<A-\\\\[a-{\\\\s]).*\\\\1([acdegil-prsux]*)([),;}]|\\\\s+))","end":"((([acdegil-prsux]*)))(?=([),;}]|\\\\s+|\\\\s*$))","endCaptures":{"1":{"name":"string.regexp.replace.perl"},"2":{"name":"punctuation.definition.string.perl"},"3":{"name":"keyword.control.regexp-option.perl"}},"patterns":[{"begin":"(s\\\\s*)([^(0-9<A-\\\\[a-{\\\\s])","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"(?=\\\\2)","name":"string.regexp.replaceXXX.simple_delimiter.perl","patterns":[{"include":"#escaped_char"}]},{"begin":"'","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"'","name":"string.regexp.replaceXXX.format.single_quote.perl","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.perl.perl"}]},{"begin":"([^(0-9<A-\\\\[a-{\\\\s])","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"\\\\1","name":"string.regexp.replaceXXX.format.simple_delimiter.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"}]}]},{"begin":"\\\\b(?=(?<!\\\\\\\\)s\\\\s*([^(<>\\\\[{\\\\s\\\\w]))","end":"((([acdegilmoprsu]*x[acdegilmoprsu]*)))\\\\b","endCaptures":{"1":{"name":"string.regexp.replace.perl"},"2":{"name":"punctuation.definition.string.perl"},"3":{"name":"keyword.control.regexp-option.perl"}},"patterns":[{"begin":"(s)\\\\s*(.)","captures":{"0":{"name":"punctuation.definition.string.perl"},"1":{"name":"support.function.perl"}},"end":"(?=\\\\2)","name":"string.regexp.replace.extended.simple_delimiter.perl","patterns":[{"include":"#escaped_char"}]},{"begin":"'","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"'(?=[acdegilmoprsu]*x[acdegilmoprsu]*)\\\\b","name":"string.regexp.replace.extended.simple_delimiter.perl","patterns":[{"include":"#escaped_char"}]},{"begin":"(.)","captures":{"0":{"name":"punctuation.definition.string.perl"}},"end":"\\\\1(?=[acdegilmoprsu]*x[acdegilmoprsu]*)\\\\b","name":"string.regexp.replace.extended.simple_delimiter.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"}]}]},{"begin":"(?<=[\\\\&({|~]|if|unless|^)\\\\s*((/))","beginCaptures":{"1":{"name":"string.regexp.find.perl"},"2":{"name":"punctuation.definition.string.perl"}},"contentName":"string.regexp.find.perl","end":"((\\\\1([acdegil-prsux]*)))(?=(\\\\s+\\\\S|\\\\s*[#),;{}]|\\\\s*$))","endCaptures":{"1":{"name":"string.regexp.find.perl"},"2":{"name":"punctuation.definition.string.perl"},"3":{"name":"keyword.control.regexp-option.perl"}},"patterns":[{"match":"\\\\$(?=/)","name":"keyword.control.anchor.perl"},{"include":"#escaped_char"},{"include":"#variable"}]},{"captures":{"1":{"name":"constant.other.key.perl"}},"match":"\\\\b(\\\\w+)\\\\s*(?==>)"},{"match":"(?<=\\\\{)\\\\s*\\\\w+\\\\s*(?=})","name":"constant.other.bareword.perl"},{"captures":{"1":{"name":"keyword.control.perl"},"2":{"name":"entity.name.type.class.perl"}},"match":"^\\\\s*(package)\\\\s+([^;\\\\s]+)","name":"meta.class.perl"},{"captures":{"1":{"name":"storage.type.sub.perl"},"2":{"name":"entity.name.function.perl"},"3":{"name":"storage.type.method.perl"}},"match":"\\\\b(sub)(?:\\\\s+([-0-9A-Z_a-z]+))?\\\\s*(?:\\\\([$*;@]*\\\\))?[^{\\\\w]","name":"meta.function.perl"},{"captures":{"1":{"name":"entity.name.function.perl"},"2":{"name":"punctuation.definition.parameters.perl"},"3":{"name":"variable.parameter.function.perl"}},"match":"^\\\\s*(BEGIN|UNITCHECK|CHECK|INIT|END|DESTROY)\\\\b","name":"meta.function.perl"},{"begin":"^(?=(\\\\t| {4}))","end":"(?=[^\\\\t\\\\s])","name":"meta.leading-tabs","patterns":[{"captures":{"1":{"name":"meta.odd-tab"},"2":{"name":"meta.even-tab"}},"match":"(\\\\t| {4})(\\\\t| {4})?"}]},{"captures":{"1":{"name":"support.function.perl"},"2":{"name":"punctuation.definition.string.perl"},"5":{"name":"punctuation.definition.string.perl"},"8":{"name":"punctuation.definition.string.perl"}},"match":"\\\\b(tr|y)\\\\s*([^0-9A-Za-z\\\\s])(.*?)(?<!\\\\\\\\)(\\\\\\\\{2})*(\\\\2)(.*?)(?<!\\\\\\\\)(\\\\\\\\{2})*(\\\\2)","name":"string.regexp.replace.perl"},{"match":"\\\\b(__(?:FILE|LINE|PACKAGE|SUB)__)\\\\b","name":"constant.language.perl"},{"begin":"\\\\b(__(?:DATA__|END__))\\\\n?","beginCaptures":{"1":{"name":"constant.language.perl"}},"contentName":"comment.block.documentation.perl","end":"\\\\z","patterns":[{"include":"#pod"}]},{"match":"(?<!->)\\\\b(continue|default|die|do|else|elsif|exit|for|foreach|given|goto|if|last|next|redo|return|select|unless|until|wait|when|while|switch|case|require|use|eval)\\\\b","name":"keyword.control.perl"},{"match":"\\\\b(my|our|local)\\\\b","name":"storage.modifier.perl"},{"match":"(?<!\\\\w)-[ABCMORSTWXb-gklopr-uwxz]\\\\b","name":"keyword.operator.filetest.perl"},{"match":"\\\\b(and|or|xor|as|not)\\\\b","name":"keyword.operator.logical.perl"},{"match":"((?:<=|[-=])>)","name":"keyword.operator.comparison.perl"},{"include":"#heredoc"},{"begin":"\\\\bqq\\\\s*([^(<\\\\[{\\\\w\\\\s])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.qq.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"}]},{"begin":"\\\\bqx\\\\s*([^'(<\\\\[{\\\\w\\\\s])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.interpolated.qx.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"}]},{"begin":"\\\\bqx\\\\s*'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.interpolated.qx.single-quote.perl","patterns":[{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.double.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"}]},{"begin":"(?<!->)\\\\bqw?\\\\s*([^(<\\\\[{\\\\w\\\\s])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.q.perl"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.single.perl","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.perl"}]},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.interpolated.perl","patterns":[{"include":"#escaped_char"},{"include":"#variable"}]},{"begin":"(?<!->)\\\\bqq\\\\s*\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.qq-paren.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_parens_interpolated"},{"include":"#variable"}]},{"begin":"\\\\bqq\\\\s*\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.qq-brace.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_braces_interpolated"},{"include":"#variable"}]},{"begin":"\\\\bqq\\\\s*\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.qq-bracket.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_brackets_interpolated"},{"include":"#variable"}]},{"begin":"\\\\bqq\\\\s*<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.qq-ltgt.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_ltgt_interpolated"},{"include":"#variable"}]},{"begin":"(?<!->)\\\\bqx\\\\s*\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.interpolated.qx-paren.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_parens_interpolated"},{"include":"#variable"}]},{"begin":"\\\\bqx\\\\s*\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.interpolated.qx-brace.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_braces_interpolated"},{"include":"#variable"}]},{"begin":"\\\\bqx\\\\s*\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.interpolated.qx-bracket.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_brackets_interpolated"},{"include":"#variable"}]},{"begin":"\\\\bqx\\\\s*<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.interpolated.qx-ltgt.perl","patterns":[{"include":"#escaped_char"},{"include":"#nested_ltgt_interpolated"},{"include":"#variable"}]},{"begin":"(?<!->)\\\\bqw?\\\\s*\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.q-paren.perl","patterns":[{"include":"#nested_parens"}]},{"begin":"\\\\bqw?\\\\s*\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.q-brace.perl","patterns":[{"include":"#nested_braces"}]},{"begin":"\\\\bqw?\\\\s*\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.q-bracket.perl","patterns":[{"include":"#nested_brackets"}]},{"begin":"\\\\bqw?\\\\s*<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.other.q-ltgt.perl","patterns":[{"include":"#nested_ltgt"}]},{"begin":"^__\\\\w+__","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"$","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.unquoted.program-block.perl"},{"begin":"\\\\b(format)\\\\s+(\\\\w+)\\\\s*=","beginCaptures":{"1":{"name":"support.function.perl"},"2":{"name":"entity.name.function.format.perl"}},"end":"^\\\\.\\\\s*$","name":"meta.format.perl","patterns":[{"include":"#line_comment"},{"include":"#variable"}]},{"captures":{"1":{"name":"support.function.perl"},"2":{"name":"entity.name.function.perl"}},"match":"\\\\b(x)\\\\s*(\\\\d+)\\\\b"},{"match":"\\\\b(ARGV|DATA|ENV|SIG|STDERR|STDIN|STDOUT|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|cmp|connect|cos|crypt|dbmclose|dbmopen|defined|delete|dump|each|endgrent|endhostent|endnetent|endprotoent|endpwent|endservent|eof|eq|eval|exec|exists|exp|fcntl|fileno|flock|fork|formline|ge|getc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|grep|gt|hex|import|index|int|ioctl|join|keys|kill|lc|lcfirst|le|length|link|listen|local|localtime|log|lstat|lt|m|map|mkdir|msgctl|msgget|msgrcv|msgsnd|ne|no|oct|open|opendir|ord|pack|pipe|pop|pos|printf??|push|quotemeta|rand|read|readdir|readlink|recv|ref|rename|reset|reverse|rewinddir|rindex|rmdir|s|say|scalar|seek|seekdir|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|study|substr|symlink|syscall|sysopen|sysread|system|syswrite|tell|telldir|tied??|times??|tr|truncate|uc|ucfirst|umask|undef|unlink|unpack|unshift|untie|utime|values|vec|waitpid|wantarray|warn|write|y)\\\\b","name":"support.function.perl"},{"captures":{"1":{"name":"punctuation.section.scope.begin.perl"},"2":{"name":"punctuation.section.scope.end.perl"}},"match":"(\\\\{)(})"},{"captures":{"1":{"name":"punctuation.section.scope.begin.perl"},"2":{"name":"punctuation.section.scope.end.perl"}},"match":"(\\\\()(\\\\))"}],"repository":{"escaped_char":{"patterns":[{"match":"\\\\\\\\\\\\d+","name":"constant.character.escape.perl"},{"match":"\\\\\\\\c[^\\\\\\\\\\\\s]","name":"constant.character.escape.perl"},{"match":"\\\\\\\\g(?:\\\\{(?:\\\\w*|-\\\\d+)}|\\\\d+)","name":"constant.character.escape.perl"},{"match":"\\\\\\\\k(?:\\\\{\\\\w*}|<\\\\w*>|'\\\\w*')","name":"constant.character.escape.perl"},{"match":"\\\\\\\\N\\\\{[^}]*}","name":"constant.character.escape.perl"},{"match":"\\\\\\\\o\\\\{\\\\d*}","name":"constant.character.escape.perl"},{"match":"\\\\\\\\[Pp](?:\\\\{\\\\w*}|P)","name":"constant.character.escape.perl"},{"match":"\\\\\\\\x(?:[0-9A-Za-z]{2}|\\\\{\\\\w*})?","name":"constant.character.escape.perl"},{"match":"\\\\\\\\.","name":"constant.character.escape.perl"}]},"heredoc":{"patterns":[{"begin":"((((<<(~)?) *')(HTML)(')))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.html","patterns":[{"begin":"^","end":"\\\\n","name":"text.html.basic","patterns":[{"include":"text.html.basic"}]}]},{"begin":"((((<<(~)?) *')(XML)(')))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.xml","patterns":[{"begin":"^","end":"\\\\n","name":"text.xml","patterns":[{"include":"text.xml"}]}]},{"begin":"((((<<(~)?) *')(CSS)(')))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.css","patterns":[{"begin":"^","end":"\\\\n","name":"source.css","patterns":[{"include":"source.css"}]}]},{"begin":"((((<<(~)?) *')(JAVASCRIPT)(')))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.js","patterns":[{"begin":"^","end":"\\\\n","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"((((<<(~)?) *')(SQL)(')))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.sql","patterns":[{"begin":"^","end":"\\\\n","name":"source.sql","patterns":[{"include":"source.sql"}]}]},{"begin":"((((<<(~)?) *')(POSTSCRIPT)(')))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.postscript","patterns":[{"begin":"^","end":"\\\\n","name":"source.postscript","patterns":[{"include":"source.postscript"}]}]},{"begin":"((((<<(~)?) *')([^']*)(')))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}}},{"begin":"((((<<(~)?) *\\\\\\\\)((?![ $(=\\\\d])[^\\"'),;\`\\\\s]*)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.raw.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.raw.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.raw.perl"},"3":{"name":"punctuation.definition.string.end.perl"}}},{"begin":"((((<<(~)?) *\\")(HTML)(\\")))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.html","patterns":[{"begin":"^","end":"\\\\n","name":"text.html.basic","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"text.html.basic"}]}]},{"begin":"((((<<(~)?) *\\")(XML)(\\")))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.xml","patterns":[{"begin":"^","end":"\\\\n","name":"text.xml","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"text.xml"}]}]},{"begin":"((((<<(~)?) *\\")(CSS)(\\")))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.css","patterns":[{"begin":"^","end":"\\\\n","name":"source.css","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.css"}]}]},{"begin":"((((<<(~)?) *\\")(JAVASCRIPT)(\\")))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.js","patterns":[{"begin":"^","end":"\\\\n","name":"source.js","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.js"}]}]},{"begin":"((((<<(~)?) *\\")(SQL)(\\")))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.sql","patterns":[{"begin":"^","end":"\\\\n","name":"source.sql","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.sql"}]}]},{"begin":"((((<<(~)?) *\\")(POSTSCRIPT)(\\")))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.postscript","patterns":[{"begin":"^","end":"\\\\n","name":"source.postscript","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.postscript"}]}]},{"begin":"((((<<(~)?) *\\")([^\\"]*)(\\")))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"patterns":[{"include":"#escaped_char"},{"include":"#variable"}]},{"begin":"((((<<(~)?) *)(HTML)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.html","patterns":[{"begin":"^","end":"\\\\n","name":"text.html.basic","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"text.html.basic"}]}]},{"begin":"((((<<(~)?) *)(XML)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.xml","patterns":[{"begin":"^","end":"\\\\n","name":"text.xml","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"text.xml"}]}]},{"begin":"((((<<(~)?) *)(CSS)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.css","patterns":[{"begin":"^","end":"\\\\n","name":"source.css","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.css"}]}]},{"begin":"((((<<(~)?) *)(JAVASCRIPT)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.js","patterns":[{"begin":"^","end":"\\\\n","name":"source.js","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.js"}]}]},{"begin":"((((<<(~)?) *)(SQL)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.sql","patterns":[{"begin":"^","end":"\\\\n","name":"source.sql","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.sql"}]}]},{"begin":"((((<<(~)?) *)(POSTSCRIPT)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"name":"meta.embedded.block.postscript","patterns":[{"begin":"^","end":"\\\\n","name":"source.postscript","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"source.postscript"}]}]},{"begin":"((((<<(~)?) *)((?![ $(=\\\\d])[^\\"'),;\`\\\\s]*)()))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.interpolated.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"patterns":[{"include":"#escaped_char"},{"include":"#variable"}]},{"begin":"((((<<(~)?) *\`)([^\`]*)(\`)))(.*)\\\\n?","beginCaptures":{"1":{"name":"string.unquoted.heredoc.interpolated.perl"},"2":{"name":"punctuation.definition.string.begin.perl"},"3":{"name":"punctuation.definition.delimiter.begin.perl"},"7":{"name":"punctuation.definition.delimiter.end.perl"},"8":{"patterns":[{"include":"$self"}]}},"contentName":"string.unquoted.heredoc.shell.perl","end":"^((?!\\\\5)\\\\s+)?((\\\\6))$","endCaptures":{"2":{"name":"string.unquoted.heredoc.interpolated.perl"},"3":{"name":"punctuation.definition.string.end.perl"}},"patterns":[{"include":"#escaped_char"},{"include":"#variable"}]}]},"line_comment":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.perl"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.perl"}},"end":"\\\\n","name":"comment.line.number-sign.perl"}]}]},"nested_braces":{"begin":"\\\\{","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":"}","patterns":[{"include":"#escaped_char"},{"include":"#nested_braces"}]},"nested_braces_interpolated":{"begin":"\\\\{","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":"}","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_braces_interpolated"}]},"nested_brackets":{"begin":"\\\\[","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":"]","patterns":[{"include":"#escaped_char"},{"include":"#nested_brackets"}]},"nested_brackets_interpolated":{"begin":"\\\\[","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":"]","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_brackets_interpolated"}]},"nested_ltgt":{"begin":"<","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":">","patterns":[{"include":"#nested_ltgt"}]},"nested_ltgt_interpolated":{"begin":"<","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":">","patterns":[{"include":"#variable"},{"include":"#nested_ltgt_interpolated"}]},"nested_parens":{"begin":"\\\\(","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":"\\\\)","patterns":[{"include":"#escaped_char"},{"include":"#nested_parens"}]},"nested_parens_interpolated":{"begin":"\\\\(","captures":{"1":{"name":"punctuation.section.scope.perl"}},"end":"\\\\)","patterns":[{"match":"\\\\$(?=[^'(<\\\\[{\\\\s\\\\w])","name":"keyword.control.anchor.perl"},{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_parens_interpolated"}]},"pod":{"patterns":[{"match":"^=(pod|back|cut)\\\\b","name":"storage.type.class.pod.perl"},{"begin":"^(=begin)\\\\s+(html)\\\\s*$","beginCaptures":{"1":{"name":"storage.type.class.pod.perl"},"2":{"name":"variable.other.pod.perl"}},"contentName":"text.embedded.html.basic","end":"^(?:(=end)\\\\s+(html)|(?==cut))","endCaptures":{"1":{"name":"storage.type.class.pod.perl"},"2":{"name":"variable.other.pod.perl"}},"name":"meta.embedded.pod.perl","patterns":[{"include":"text.html.basic"}]},{"captures":{"1":{"name":"storage.type.class.pod.perl"},"2":{"name":"variable.other.pod.perl","patterns":[{"include":"#pod-formatting"}]}},"match":"^(=(?:head[1-4]|item|over|encoding|begin|end|for))\\\\b\\\\s*(.*)"},{"include":"#pod-formatting"}]},"pod-formatting":{"patterns":[{"captures":{"1":{"name":"markup.italic.pod.perl"},"2":{"name":"markup.italic.pod.perl"}},"match":"I(?:<([^<>]+)>|<+(\\\\s+(?:(?<!\\\\s)>|[^>])+\\\\s+)>+)","name":"entity.name.type.instance.pod.perl"},{"captures":{"1":{"name":"markup.bold.pod.perl"},"2":{"name":"markup.bold.pod.perl"}},"match":"B(?:<([^<>]+)>|<+(\\\\s+(?:(?<!\\\\s)>|[^>])+\\\\s+)>+)","name":"entity.name.type.instance.pod.perl"},{"captures":{"1":{"name":"markup.raw.pod.perl"},"2":{"name":"markup.raw.pod.perl"}},"match":"C(?:<([^<>]+)>|<+(\\\\\\\\s+(?:(?<!\\\\\\\\s)>|[^>])+\\\\\\\\s+)>+)","name":"entity.name.type.instance.pod.perl"},{"captures":{"1":{"name":"markup.underline.link.hyperlink.pod.perl"}},"match":"L<([^>]+)>","name":"entity.name.type.instance.pod.perl"},{"match":"[EFSXZ]<[^>]*>","name":"entity.name.type.instance.pod.perl"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)&(?![0-9A-Z_a-z])","name":"variable.other.regexp.match.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)\`(?![0-9A-Z_a-z])","name":"variable.other.regexp.pre-match.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)'(?![0-9A-Z_a-z])","name":"variable.other.regexp.post-match.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)\\\\+(?![0-9A-Z_a-z])","name":"variable.other.regexp.last-paren-match.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)\\"(?![0-9A-Z_a-z])","name":"variable.other.readwrite.list-separator.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)0(?![0-9A-Z_a-z])","name":"variable.other.predefined.program-name.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)[!#$%()*,-/:-@\\\\[-_ab|~](?![0-9A-Z_a-z])","name":"variable.other.predefined.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$)[0-9]+(?![0-9A-Z_a-z])","name":"variable.other.subpattern.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"([$%@](#)?)([$7A-Za-z]|::)([$0-9A-Z_a-z]|::)*\\\\b","name":"variable.other.readwrite.global.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"},"2":{"name":"punctuation.definition.variable.perl"}},"match":"(\\\\$\\\\{)(?:[$7A-Za-z]|::)(?:[$0-9A-Z_a-z]|::)*(})","name":"variable.other.readwrite.global.perl"},{"captures":{"1":{"name":"punctuation.definition.variable.perl"}},"match":"([$%@](#)?)[0-9_]\\\\b","name":"variable.other.readwrite.global.special.perl"}]}},"scopeName":"source.perl","embeddedLangs":["html","xml","css","javascript","sql"]}`)),p=[...t,...i,...n,...e,...r,a];export{p as default}; diff --git a/docs/assets/perl-CC5X3ewy.js b/docs/assets/perl-CC5X3ewy.js new file mode 100644 index 0000000..5b39b31 --- /dev/null +++ b/docs/assets/perl-CC5X3ewy.js @@ -0,0 +1 @@ +import{t as r}from"./perl-BKXEkch3.js";export{r as perl}; diff --git a/docs/assets/php-NuTACPfp.js b/docs/assets/php-NuTACPfp.js new file mode 100644 index 0000000..f6826fb --- /dev/null +++ b/docs/assets/php-NuTACPfp.js @@ -0,0 +1 @@ +import{t}from"./php-dabBNyWz.js";export{t as default}; diff --git a/docs/assets/php-dabBNyWz.js b/docs/assets/php-dabBNyWz.js new file mode 100644 index 0000000..ab48fe1 --- /dev/null +++ b/docs/assets/php-dabBNyWz.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t}from"./css-xi2XX7Oh.js";import{t as n}from"./html-Bz1QLM72.js";import{t as a}from"./xml-CmKMNcqy.js";import{t as r}from"./json-CdDqxu0N.js";import{t as i}from"./sql-HYiT1H9d.js";var p=Object.freeze(JSON.parse(`{"displayName":"PHP","name":"php","patterns":[{"include":"#attribute"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.namespace.php"},"2":{"name":"entity.name.type.namespace.php","patterns":[{"match":"\\\\\\\\","name":"punctuation.separator.inheritance.php"}]}},"match":"(?i)(?:^|(?<=<\\\\?php))\\\\s*(namespace)\\\\s+([0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)(?=\\\\s*;)","name":"meta.namespace.php"},{"begin":"(?i)(?:^|(?<=<\\\\?php))\\\\s*(namespace)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.namespace.php"}},"end":"(?<=})|(?=\\\\?>)","name":"meta.namespace.php","patterns":[{"include":"#comments"},{"captures":{"0":{"patterns":[{"match":"\\\\\\\\","name":"punctuation.separator.inheritance.php"}]}},"match":"(?i)[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+","name":"entity.name.type.namespace.php"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.namespace.begin.bracket.curly.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.namespace.end.bracket.curly.php"}},"patterns":[{"include":"$self"}]},{"match":"\\\\S+","name":"invalid.illegal.identifier.php"}]},{"match":"\\\\s+(?=use\\\\b)"},{"begin":"(?i)\\\\buse\\\\b","beginCaptures":{"0":{"name":"keyword.other.use.php"}},"end":"(?<=})|(?=;)|(?=\\\\?>)","name":"meta.use.php","patterns":[{"match":"\\\\b(const|function)\\\\b","name":"storage.type.\${1:/downcase}.php"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.use.begin.bracket.curly.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.use.end.bracket.curly.php"}},"patterns":[{"include":"#scope-resolution"},{"captures":{"1":{"name":"keyword.other.use-as.php"},"2":{"name":"storage.modifier.php"},"3":{"name":"entity.other.alias.php"}},"match":"(?i)\\\\b(as)\\\\s+(final|abstract|public|private|protected|static)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)"},{"captures":{"1":{"name":"keyword.other.use-as.php"},"2":{"patterns":[{"match":"^(?:final|abstract|public|private|protected|static)$","name":"storage.modifier.php"},{"match":".+","name":"entity.other.alias.php"}]}},"match":"(?i)\\\\b(as)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)"},{"captures":{"1":{"name":"keyword.other.use-insteadof.php"},"2":{"name":"support.class.php"}},"match":"(?i)\\\\b(insteadof)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)"},{"match":";","name":"punctuation.terminator.expression.php"},{"include":"#use-inner"}]},{"include":"#use-inner"}]},{"begin":"(?i)\\\\b(trait)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)","beginCaptures":{"1":{"name":"storage.type.trait.php"},"2":{"name":"entity.name.type.trait.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.trait.end.bracket.curly.php"}},"name":"meta.trait.php","patterns":[{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.trait.begin.bracket.curly.php"}},"contentName":"meta.trait.body.php","end":"(?=}|\\\\?>)","patterns":[{"include":"$self"}]}]},{"begin":"(?i)\\\\b(interface)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)","beginCaptures":{"1":{"name":"storage.type.interface.php"},"2":{"name":"entity.name.type.interface.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.interface.end.bracket.curly.php"}},"name":"meta.interface.php","patterns":[{"include":"#comments"},{"include":"#interface-extends"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.interface.begin.bracket.curly.php"}},"contentName":"meta.interface.body.php","end":"(?=}|\\\\?>)","patterns":[{"include":"#class-constant"},{"include":"$self"}]}]},{"begin":"(?i)\\\\b(enum)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(?:\\\\s*(:)\\\\s*(int|string)\\\\b)?","beginCaptures":{"1":{"name":"storage.type.enum.php"},"2":{"name":"entity.name.type.enum.php"},"3":{"name":"keyword.operator.return-value.php"},"4":{"name":"keyword.other.type.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.enum.end.bracket.curly.php"}},"name":"meta.enum.php","patterns":[{"include":"#comments"},{"include":"#class-implements"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.enum.begin.bracket.curly.php"}},"contentName":"meta.enum.body.php","end":"(?=}|\\\\?>)","patterns":[{"captures":{"1":{"name":"storage.modifier.php"},"2":{"name":"constant.enum.php"}},"match":"(?i)\\\\b(case)\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)"},{"include":"#class-constant"},{"include":"$self"}]}]},{"begin":"(?i)\\\\b(?:((?:(?:final|abstract|readonly)\\\\s+)*)(class)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)|(new)\\\\b\\\\s*(#\\\\[.*])?\\\\s*(?:(readonly)\\\\s+)?\\\\b(class)\\\\b)","beginCaptures":{"1":{"patterns":[{"match":"final|abstract","name":"storage.modifier.\${0:/downcase}.php"},{"match":"readonly","name":"storage.modifier.php"}]},"2":{"name":"storage.type.class.php"},"3":{"name":"entity.name.type.class.php"},"4":{"name":"keyword.other.new.php"},"5":{"patterns":[{"include":"#attribute"}]},"6":{"name":"storage.modifier.php"},"7":{"name":"storage.type.class.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.class.end.bracket.curly.php"}},"name":"meta.class.php","patterns":[{"begin":"(?<=class)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.function-call.php","patterns":[{"include":"#named-arguments"},{"include":"$self"}]},{"include":"#comments"},{"include":"#class-extends"},{"include":"#class-implements"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.class.begin.bracket.curly.php"}},"contentName":"meta.class.body.php","end":"(?=}|\\\\?>)","patterns":[{"include":"#class-constant"},{"include":"$self"}]}]},{"include":"#match_statement"},{"include":"#switch_statement"},{"captures":{"1":{"name":"keyword.control.yield-from.php"}},"match":"\\\\s*\\\\b(yield\\\\s+from)\\\\b"},{"captures":{"1":{"name":"keyword.control.\${1:/downcase}.php"}},"match":"\\\\b(break|case|continue|declare|default|die|do|else(if)?|end(declare|for(each)?|if|switch|while)|exit|for(each)?|if|return|switch|use|while|yield)\\\\b"},{"begin":"(?i)\\\\b((?:require|include)(?:_once)?)(\\\\s+|(?=\\\\())","beginCaptures":{"1":{"name":"keyword.control.import.include.php"}},"end":"(?=[;\\\\s]|$|\\\\?>)","name":"meta.include.php","patterns":[{"include":"$self"}]},{"begin":"\\\\b(catch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.exception.catch.php"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.php"}},"name":"meta.catch.php","patterns":[{"captures":{"1":{"patterns":[{"match":"\\\\|","name":"punctuation.separator.delimiter.php"},{"begin":"(?i)(?=[\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","end":"(?i)([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(?![0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"support.class.exception.php"}},"patterns":[{"include":"#namespace"}]}]},"2":{"name":"variable.other.php"},"3":{"name":"punctuation.definition.variable.php"}},"match":"(?i)([0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*\\\\|\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)*)\\\\s*((\\\\$+)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?"}]},{"match":"\\\\b(catch|try|throw|exception|finally)\\\\b","name":"keyword.control.exception.php"},{"begin":"(?i)\\\\b(function)\\\\s*(?=&?\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.php"}},"end":"(?=\\\\s*\\\\{)","name":"meta.function.closure.php","patterns":[{"include":"#comments"},{"begin":"(&)?\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.reference.php"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"contentName":"meta.function.parameters.php","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.php"}},"patterns":[{"include":"#function-parameters"}]},{"begin":"(?i)(use)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.function.use.php"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.php"}},"name":"meta.function.closure.use.php","patterns":[{"match":",","name":"punctuation.separator.delimiter.php"},{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((?:(&)\\\\s*)?(\\\\$+)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)\\\\s*(?=[),])"}]},{"captures":{"1":{"name":"keyword.operator.return-value.php"},"2":{"patterns":[{"include":"#php-types"}]}},"match":"(?i)(:)\\\\s*((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+)(?=\\\\s*(?:\\\\{|/[*/]|#|$))"}]},{"begin":"(?i)\\\\b(fn)\\\\s*(?=&?\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.php"}},"end":"=>","endCaptures":{"0":{"name":"punctuation.definition.arrow.php"}},"name":"meta.function.closure.php","patterns":[{"begin":"(?:(&)\\\\s*)?(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.reference.php"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"contentName":"meta.function.parameters.php","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.php"}},"patterns":[{"include":"#function-parameters"}]},{"captures":{"1":{"name":"keyword.operator.return-value.php"},"2":{"patterns":[{"include":"#php-types"}]}},"match":"(?i)(:)\\\\s*((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+)(?=\\\\s*(?:=>|/[*/]|#|$))"}]},{"begin":"((?:(?:final|abstract|public|private|protected)\\\\s+)*)(function)\\\\s+(__construct)\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"match":"final|abstract|public|private|protected","name":"storage.modifier.php"}]},"2":{"name":"storage.type.function.php"},"3":{"name":"support.function.constructor.php"},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"contentName":"meta.function.parameters.php","end":"(?i)(\\\\))\\\\s*(:\\\\s*(?:\\\\?\\\\s*)?(?!\\\\s)[\\\\&()0-9\\\\\\\\_a-z|\\\\x7F-\\\\x{10FFFF}\\\\s]+(?<!\\\\s))?(?=\\\\s*(?:\\\\{|/[*/]|#|$|;))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.bracket.round.php"},"2":{"name":"invalid.illegal.return-type.php"}},"name":"meta.function.php","patterns":[{"include":"#comments"},{"match":",","name":"punctuation.separator.delimiter.php"},{"begin":"(?i)((?:(?:p(?:ublic|rivate|rotected)(?:\\\\(set\\\\))?|readonly)(?:\\\\s+|(?=\\\\?)))++)(?:((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+)\\\\s+)?((?:(&)\\\\s*)?(\\\\$)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)","beginCaptures":{"1":{"patterns":[{"match":"p(?:ublic|rivate|rotected)(?:\\\\(set\\\\))?|readonly","name":"storage.modifier.php"}]},"2":{"patterns":[{"include":"#php-types"}]},"3":{"name":"variable.other.php"},"4":{"name":"storage.modifier.reference.php"},"5":{"name":"punctuation.definition.variable.php"}},"end":"(?=\\\\s*(?:[),]|/[*/]|#))","name":"meta.function.parameter.promoted-property.php","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.php"}},"end":"(?=\\\\s*(?:[),]|/[*/]|#))","patterns":[{"include":"#parameter-default-types"}]}]},{"include":"#function-parameters"}]},{"begin":"((?:(?:final|abstract|public|private|protected|static)\\\\s+)*)(function)\\\\s+(?i:(__(?:call|construct|debugInfo|destruct|get|set|isset|unset|toString|clone|set_state|sleep|wakeup|autoload|invoke|callStatic|serialize|unserialize))|(&)?\\\\s*([A-Z_a-z\\\\x7F-\\\\x{10FFFF}][0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}]*))\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"match":"final|abstract|public|private|protected|static","name":"storage.modifier.php"}]},"2":{"name":"storage.type.function.php"},"3":{"name":"support.function.magic.php"},"4":{"name":"storage.modifier.reference.php"},"5":{"name":"entity.name.function.php"},"6":{"name":"punctuation.definition.parameters.begin.bracket.round.php"}},"contentName":"meta.function.parameters.php","end":"(?i)(\\\\))(?:\\\\s*(:)\\\\s*((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+))?(?=\\\\s*(?:\\\\{|/[*/]|#|$|;))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.bracket.round.php"},"2":{"name":"keyword.operator.return-value.php"},"3":{"patterns":[{"match":"\\\\b(static)\\\\b","name":"storage.type.php"},{"match":"\\\\b(never)\\\\b","name":"keyword.other.type.never.php"},{"include":"#php-types"}]}},"name":"meta.function.php","patterns":[{"include":"#function-parameters"}]},{"captures":{"1":{"patterns":[{"match":"p(?:ublic|rivate|rotected)(?:\\\\(set\\\\))?|static|readonly","name":"storage.modifier.php"}]},"2":{"patterns":[{"include":"#php-types"}]},"3":{"name":"variable.other.php"},"4":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((?:(?:p(?:ublic|rivate|rotected)(?:\\\\(set\\\\))?|static|readonly)(?:\\\\s+|(?=\\\\?)))++)((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+)?\\\\s+((\\\\$)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)"},{"include":"#invoke-call"},{"include":"#scope-resolution"},{"include":"#variables"},{"include":"#strings"},{"captures":{"1":{"name":"support.function.construct.php"},"2":{"name":"punctuation.definition.array.begin.bracket.round.php"},"3":{"name":"punctuation.definition.array.end.bracket.round.php"}},"match":"(array)(\\\\()(\\\\))","name":"meta.array.empty.php"},{"begin":"(array)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.construct.php"},"2":{"name":"punctuation.definition.array.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.php"}},"name":"meta.array.php","patterns":[{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.storage-type.begin.bracket.round.php"},"2":{"name":"storage.type.php"},"3":{"name":"punctuation.definition.storage-type.end.bracket.round.php"}},"match":"(?i)(\\\\()\\\\s*(array|real|double|float|int(?:eger)?|bool(?:ean)?|string|object|binary|unset)\\\\s*(\\\\))"},{"match":"(?i)\\\\b(array|real|double|float|int(eger)?|bool(ean)?|string|class|var|function|interface|trait|parent|self|object|mixed)\\\\b","name":"storage.type.php"},{"match":"(?i)\\\\bconst\\\\b","name":"storage.type.const.php"},{"match":"(?i)\\\\b(global|abstract|final|private|protected|public|static)\\\\b","name":"storage.modifier.php"},{"include":"#object"},{"match":";","name":"punctuation.terminator.expression.php"},{"match":":","name":"punctuation.terminator.statement.php"},{"include":"#heredoc"},{"include":"#numbers"},{"match":"(?i)\\\\bclone\\\\b","name":"keyword.other.clone.php"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.php"},{"match":"\\\\.=?","name":"keyword.operator.string.php"},{"match":"=>","name":"keyword.operator.key.php"},{"captures":{"1":{"name":"keyword.operator.assignment.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"storage.modifier.reference.php"}},"match":"(?i)(=)(&)|(&)(?=[$_a-z])"},{"match":"@","name":"keyword.operator.error-control.php"},{"match":"===?|!==?|<>","name":"keyword.operator.comparison.php"},{"match":"(?:|[-+]|\\\\*\\\\*?|[%\\\\&/^|]|<<|>>|\\\\?\\\\?)=","name":"keyword.operator.assignment.php"},{"match":"<=>?|>=|[<>]","name":"keyword.operator.comparison.php"},{"match":"--|\\\\+\\\\+","name":"keyword.operator.increment-decrement.php"},{"match":"[-+]|\\\\*\\\\*?|[%/]","name":"keyword.operator.arithmetic.php"},{"match":"(?i)(!|&&|\\\\|\\\\|)|\\\\b(and|or|xor|as)\\\\b","name":"keyword.operator.logical.php"},{"include":"#function-call"},{"match":"<<|>>|[\\\\&^|~]","name":"keyword.operator.bitwise.php"},{"begin":"(?i)\\\\b(instanceof)\\\\s+(?=[$\\\\\\\\_a-z])","beginCaptures":{"1":{"name":"keyword.operator.type.php"}},"end":"(?i)(?=[^$0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","patterns":[{"include":"#class-name"},{"include":"#variable-name"}]},{"include":"#instantiation"},{"captures":{"1":{"name":"keyword.control.goto.php"},"2":{"name":"support.other.php"}},"match":"(?i)(goto)\\\\s+([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)"},{"captures":{"1":{"name":"entity.name.goto-label.php"}},"match":"(?i)^\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*(?<!default|else))\\\\s*:(?!:)"},{"include":"#string-backtick"},{"include":"#ternary_shorthand"},{"include":"#null_coalescing"},{"include":"#ternary_expression"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.curly.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.php"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.php"}},"end":"]|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.section.array.end.php"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.php"}},"patterns":[{"include":"$self"}]},{"include":"#constants"},{"match":",","name":"punctuation.separator.delimiter.php"}],"repository":{"attribute":{"begin":"#\\\\[","end":"]","name":"meta.attribute.php","patterns":[{"match":",","name":"punctuation.separator.delimiter.php"},{"begin":"([0-9A-Z\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#attribute-name"}]},"2":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"patterns":[{"include":"#named-arguments"},{"include":"$self"}]},{"include":"#attribute-name"}]},"attribute-name":{"patterns":[{"begin":"(?i)(?=\\\\\\\\?[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*\\\\\\\\)","end":"(?i)([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?(?![0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"support.attribute.php"}},"patterns":[{"include":"#namespace"}]},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(?i)(\\\\\\\\)?\\\\b(Attribute|SensitiveParameter|AllowDynamicProperties|ReturnTypeWillChange|Override|Deprecated)\\\\b","name":"support.attribute.builtin.php"},{"begin":"(?i)(?=[\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","end":"(?i)([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?(?![0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"support.attribute.php"}},"patterns":[{"include":"#namespace"}]}]},"class-builtin":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(?i)(\\\\\\\\)?\\\\b(Attribute|(A(?:PC|ppend))Iterator|Array(Access|Iterator|Object)|Bad(Function|Method)CallException|(Ca(?:ching|llbackFilter))Iterator|Collator|Collectable|Cond|Countable|CURLFile|Date(Interval|Period|Time(Interface|Immutable|Zone)?)?|Directory(Iterator)?|DomainException|DOM(Attr|CdataSection|CharacterData|Comment|Document(Fragment)?|Element|EntityReference|Implementation|NamedNodeMap|Node(list)?|ProcessingInstruction|Text|XPath)|(Error)?Exception|EmptyIterator|finfo|Ev(Check|Child|Embed|Fork|Idle|Io|Loop|Periodic|Prepare|Signal|Stat|Timer|Watcher)?|Event(Base|Buffer(Event)?|SslContext|Http(Request|Connection)?|Config|DnsBase|Util|Listener)?|FANNConnection|(Fil(?:ter|esystem))Iterator|Gender\\\\\\\\Gender|GlobIterator|Gmagick(Draw|Pixel)?|Haru(Annotation|Destination|Doc|Encoder|Font|Image|Outline|Page)|Http(((?:In|De)flate)?Stream|Message|Request(Pool)?|Response|QueryString)|HRTime\\\\\\\\(PerformanceCounter|StopWatch)|Intl(Calendar|((CodePoint|RuleBased)?Break|Parts)?Iterator|DateFormatter|TimeZone)|Imagick(Draw|Pixel(Iterator)?)?|InfiniteIterator|InvalidArgumentException|Iterator(Aggregate|Iterator)?|JsonSerializable|KTaglib_(MPEG_(File|AudioProperties)|Tag|ID3v2_(Tag|(AttachedPicture)?Frame))|Lapack|(L(?:ength|ocale|ogic))Exception|LimitIterator|Lua(Closure)?|Mongo(BinData|Client|Code|Collection|CommandCursor|Cursor(Exception)?|Date|DB(Ref)?|DeleteBatch|Grid(FS(Cursor|File)?)|Id|InsertBatch|Int(32|64)|Log|Pool|Regex|ResultException|Timestamp|UpdateBatch|Write(Batch|ConcernException))?|Memcache(d)?|MessageFormatter|MultipleIterator|Mutex|mysqli(_(driver|stmt|warning|result))?|MysqlndUh(Connection|PreparedStatement)|NoRewindIterator|Normalizer|NumberFormatter|OCI-(Collection|Lob)|OuterIterator|(O(?:utOf(Bounds|Range)|verflow))Exception|ParentIterator|PDO(Statement)?|Phar(Data|FileInfo)?|php_user_filter|Pool|QuickHash(Int(S(?:et|tringHash))|StringIntHash)|Recursive(Array|Caching|Directory|Fallback|Filter|Iterator|Regex|Tree)?Iterator|Reflection(Attribute|Class(Constant)?|Constant|Enum((?:Unit|Backed)Case)?|Fiber|Function(Abstract)?|Generator|(Named|Union|Intersection)?Type|Method|Object|Parameter|Property|Reference|(Zend)?Extension)?|RangeException|Reflector|RegexIterator|ResourceBundle|RuntimeException|RRD(Creator|Graph|Updater)|SAM(Connection|Message)|SCA(_((?:Soap|Local)Proxy))?|SDO_(DAS_(ChangeSummary|Data(Factory|Object)|Relational|Setting|XML(_Document)?)|Data(Factory|Object)|Exception|List|Model_(Property|ReflectionDataObject|Type)|Sequence)|SeekableIterator|Serializable|SessionHandler(Interface)?|SimpleXML(Iterator|Element)|SNMP|Soap(Client|Fault|Header|Param|Server|Var)|SphinxClient|Spoofchecker|Spl(DoublyLinkedList|Enum|File(Info|Object)|FixedArray|(M(?:ax|in))?Heap|Observer|ObjectStorage|(Priority)?Queue|Stack|Subject|Type|TempFileObject)|SQLite(3(Result|Stmt)?|Database|Result|Unbuffered)|stdClass|streamWrapper|SVM(Model)?|Swish(Result(s)?|Search)?|Sync(Event|Mutex|ReaderWriter|Semaphore)|Thread(ed)?|tidy(Node)?|TokyoTyrant(Table|Iterator|Query)?|Transliterator|Traversable|UConverter|(Un(?:derflow|expectedValue))Exception|V8Js(Exception)?|Varnish(Admin|Log|Stat)|Worker|Weak(Map|Ref)|XML(Diff\\\\\\\\(Base|DOM|File|Memory)|Reader|Writer)|XsltProcessor|Yaf_(Route_(Interface|Map|Regex|Rewrite|Simple|Supervar)|Action_Abstract|Application|Config_(Simple|Ini|Abstract)|Controller_Abstract|Dispatcher|Exception|Loader|Plugin_Abstract|Registry|Request_(Abstract|Simple|Http)|Response_Abstract|Router|Session|View_(Simple|Interface))|Yar_(Client(_Exception)?|Concurrent_Client|Server(_Exception)?)|ZipArchive|ZMQ(Context|Device|Poll|Socket)?)\\\\b","name":"support.class.builtin.php"}]},"class-constant":{"patterns":[{"captures":{"1":{"name":"storage.type.const.php"},"2":{"patterns":[{"include":"#php-types"}]},"3":{"name":"constant.other.php"}},"match":"(?i)\\\\b(const)\\\\s+(?:((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+)\\\\s+)?([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)"}]},"class-extends":{"patterns":[{"begin":"(?i)(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.extends.php"}},"end":"(?i)(?=[^0-9A-Z\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","patterns":[{"include":"#comments"},{"include":"#inheritance-single"}]}]},"class-implements":{"patterns":[{"begin":"(?i)(implements)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.implements.php"}},"end":"(?i)(?=\\\\{)","patterns":[{"include":"#comments"},{"match":",","name":"punctuation.separator.classes.php"},{"include":"#inheritance-single"}]}]},"class-name":{"patterns":[{"begin":"(?i)(?=\\\\\\\\?[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*\\\\\\\\)","end":"(?i)([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?(?![0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"support.class.php"}},"patterns":[{"include":"#namespace"}]},{"include":"#class-builtin"},{"begin":"(?i)(?=[\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","end":"(?i)([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?(?![0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"support.class.php"}},"patterns":[{"include":"#namespace"}]}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?=\\\\s)","beginCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"name":"comment.block.documentation.phpdoc.php","patterns":[{"include":"#php_doc"}]},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.php"}},"end":"\\\\*/","name":"comment.block.php"},{"begin":"(^\\\\s+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.php"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"end":"\\\\n|(?=\\\\?>)","name":"comment.line.double-slash.php"}]},{"begin":"(^\\\\s+)?(?=#)(?!#\\\\[)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.php"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"end":"\\\\n|(?=\\\\?>)","name":"comment.line.number-sign.php"}]}]},"constants":{"patterns":[{"match":"(?i)\\\\b(TRUE|FALSE|NULL|__(FILE|DIR|FUNCTION|CLASS|METHOD|LINE|NAMESPACE)__|ON|OFF|YES|NO|NL|BR|TAB)\\\\b","name":"constant.language.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(DEFAULT_INCLUDE_PATH|EAR_(INSTALL|EXTENSION)_DIR|E_(ALL|COMPILE_(ERROR|WARNING)|CORE_(ERROR|WARNING)|DEPRECATED|ERROR|NOTICE|PARSE|RECOVERABLE_ERROR|STRICT|USER_(DEPRECATED|ERROR|NOTICE|WARNING)|WARNING)|PHP_(ROUND_HALF_(DOWN|EVEN|ODD|UP)|(MAJOR|MINOR|RELEASE)_VERSION|MAXPATHLEN|BINDIR|SHLIB_SUFFIX|SYSCONFDIR|SAPI|CONFIG_FILE_(PATH|SCAN_DIR)|INT_(MAX|SIZE)|ZTS|OS|OUTPUT_HANDLER_(START|CONT|END)|DEBUG|DATADIR|URL_(SCHEME|HOST|USER|PORT|PASS|PATH|QUERY|FRAGMENT)|PREFIX|EXTRA_VERSION|EXTENSION_DIR|EOL|VERSION(_ID)?|WINDOWS_(NT_(SERVER|DOMAIN_CONTROLLER|WORKSTATION)|VERSION_(M(?:AJOR|INOR))|BUILD|SUITEMASK|SP_(M(?:AJOR|INOR))|PRODUCTTYPE|PLATFORM)|LIBDIR|LOCALSTATEDIR)|STD(ERR|IN|OUT)|ZEND_(DEBUG_BUILD|THREAD_SAFE))\\\\b","name":"support.constant.core.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(__COMPILER_HALT_OFFSET__|AB(MON_([1-9]|10|11|12)|DAY[1-7])|AM_STR|ASSERT_(ACTIVE|BAIL|CALLBACK_QUIET_EVAL|WARNING)|ALT_DIGITS|CASE_(UPPER|LOWER)|CHAR_MAX|CONNECTION_(ABORTED|NORMAL|TIMEOUT)|CODESET|COUNT_(NORMAL|RECURSIVE)|CREDITS_(ALL|DOCS|FULLPAGE|GENERAL|GROUP|MODULES|QA|SAPI)|CRYPT_(BLOWFISH|EXT_DES|MD5|SHA(256|512)|SALT_LENGTH|STD_DES)|CURRENCY_SYMBOL|D_(T_)?FMT|DATE_(ATOM|COOKIE|ISO8601|RFC(822|850|1036|1123|2822|3339)|RSS|W3C)|DAY_[1-7]|DECIMAL_POINT|DIRECTORY_SEPARATOR|ENT_(COMPAT|IGNORE|(NO)?QUOTES)|EXTR_(IF_EXISTS|OVERWRITE|PREFIX_(ALL|IF_EXISTS|INVALID|SAME)|REFS|SKIP)|ERA(_(D_(T_)?FMT)|T_FMT|YEAR)?|FRAC_DIGITS|GROUPING|HASH_HMAC|HTML_(ENTITIES|SPECIALCHARS)|INF|INFO_(ALL|CREDITS|CONFIGURATION|ENVIRONMENT|GENERAL|LICENSEMODULES|VARIABLES)|INI_(ALL|CANNER_(NORMAL|RAW)|PERDIR|SYSTEM|USER)|INT_(CURR_SYMBOL|FRAC_DIGITS)|LC_(ALL|COLLATE|CTYPE|MESSAGES|MONETARY|NUMERIC|TIME)|LOCK_(EX|NB|SH|UN)|LOG_(ALERT|AUTH(PRIV)?|CRIT|CRON|CONS|DAEMON|DEBUG|EMERG|ERR|INFO|LOCAL[1-7]|LPR|KERN|MAIL|NEWS|NODELAY|NOTICE|NOWAIT|ODELAY|PID|PERROR|WARNING|SYSLOG|UCP|USER)|M_(1_PI|SQRT(1_2|[23]|PI)|2_(SQRT)?PI|PI(_([24]))?|E(ULER)?|LN(10|2|PI)|LOG(10|2)E)|MON_([1-9]|10|11|12|DECIMAL_POINT|GROUPING|THOUSANDS_SEP)|N_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|NAN|NEGATIVE_SIGN|NO(EXPR|STR)|P_(CS_PRECEDES|SEP_BY_SPACE|SIGN_POSN)|PM_STR|POSITIVE_SIGN|PATH(_SEPARATOR|INFO_(EXTENSION|(BASE|DIR|FILE)NAME))|RADIXCHAR|SEEK_(CUR|END|SET)|SORT_(ASC|DESC|LOCALE_STRING|REGULAR|STRING)|STR_PAD_(BOTH|LEFT|RIGHT)|T_FMT(_AMPM)?|THOUSEP|THOUSANDS_SEP|UPLOAD_ERR_(CANT_WRITE|EXTENSION|(FORM|INI)_SIZE|NO_(FILE|TMP_DIR)|OK|PARTIAL)|YES(EXPR|STR))\\\\b","name":"support.constant.std.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(GLOB_(MARK|BRACE|NO(SORT|CHECK|ESCAPE)|ONLYDIR|ERR|AVAILABLE_FLAGS)|XML_(SAX_IMPL|(DTD|DOCUMENT(_(FRAG|TYPE))?|HTML_DOCUMENT|NOTATION|NAMESPACE_DECL|PI|COMMENT|DATA_SECTION|TEXT)_NODE|OPTION_(SKIP_(TAGSTART|WHITE)|CASE_FOLDING|TARGET_ENCODING)|ERROR_((BAD_CHAR|(ATTRIBUTE_EXTERNAL|BINARY|PARAM|RECURSIVE)_ENTITY)_REF|MISPLACED_XML_PI|SYNTAX|NONE|NO_(MEMORY|ELEMENTS)|TAG_MISMATCH|INCORRECT_ENCODING|INVALID_TOKEN|DUPLICATE_ATTRIBUTE|UNCLOSED_(CDATA_SECTION|TOKEN)|UNDEFINED_ENTITY|UNKNOWN_ENCODING|JUNK_AFTER_DOC_ELEMENT|PARTIAL_CHAR|EXTERNAL_ENTITY_HANDLING|ASYNC_ENTITY)|ENTITY_(((REF|DECL)_)?NODE)|ELEMENT(_DECL)?_NODE|LOCAL_NAMESPACE|ATTRIBUTE_(N(?:MTOKEN(S)?|OTATION|ODE))|CDATA|ID(REF(S)?)?|DECL_NODE|ENTITY|ENUMERATION)|MHASH_(RIPEMD(128|160|256|320)|GOST|MD([245])|SHA(1|224|256|384|512)|SNEFRU256|HAVAL(128|160|192|224|256)|CRC23(B)?|TIGER(1(?:28|60))?|WHIRLPOOL|ADLER32)|MYSQL_(BOTH|NUM|CLIENT_(SSL|COMPRESS|IGNORE_SPACE|INTERACTIVE|ASSOC))|MYSQLI_(REPORT_(STRICT|INDEX|OFF|ERROR|ALL)|REFRESH_(GRANT|MASTER|BACKUP_LOG|STATUS|SLAVE|HOSTS|THREADS|TABLES|LOG)|READ_DEFAULT_(FILE|GROUP)|(GROUP|MULTIPLE_KEY|BINARY|BLOB)_FLAG|BOTH|STMT_ATTR_(CURSOR_TYPE|UPDATE_MAX_LENGTH|PREFETCH_ROWS)|STORE_RESULT|SERVER_QUERY_(NO_((GOOD_)?INDEX_USED)|WAS_SLOW)|SET_(CHARSET_NAME|FLAG)|NO_(D(?:EFAULT_VALUE_FLAG|ATA))|NOT_NULL_FLAG|NUM(_FLAG)?|CURSOR_TYPE_(READ_ONLY|SCROLLABLE|NO_CURSOR|FOR_UPDATE)|CLIENT_(SSL|NO_SCHEMA|COMPRESS|IGNORE_SPACE|INTERACTIVE|FOUND_ROWS)|TYPE_(GEOMETRY|((MEDIUM|LONG|TINY)_)?BLOB|BIT|SHORT|STRING|SET|YEAR|NULL|NEWDECIMAL|NEWDATE|CHAR|TIME(STAMP)?|TINY|INT24|INTERVAL|DOUBLE|DECIMAL|DATE(TIME)?|ENUM|VAR_STRING|FLOAT|LONG(LONG)?)|TIME_STAMP_FLAG|INIT_COMMAND|ZEROFILL_FLAG|ON_UPDATE_NOW_FLAG|OPT_(NET_((CMD|READ)_BUFFER_SIZE)|CONNECT_TIMEOUT|INT_AND_FLOAT_NATIVE|LOCAL_INFILE)|DEBUG_TRACE_ENABLED|DATA_TRUNCATED|USE_RESULT|(ENUM|(PART|PRI|UNIQUE)_KEY|UNSIGNED)_FLAG|ASSOC|ASYNC|AUTO_INCREMENT_FLAG)|MCRYPT_(RC([26])|RIJNDAEL_(128|192|256)|RAND|GOST|XTEA|MODE_(STREAM|NOFB|CBC|CFB|OFB|ECB)|MARS|BLOWFISH(_COMPAT)?|SERPENT|SKIPJACK|SAFER(64|128|PLUS)|CRYPT|CAST_(128|256)|TRIPLEDES|THREEWAY|TWOFISH|IDEA|(3)?DES|DECRYPT|DEV_(U)?RANDOM|PANAMA|ENCRYPT|ENIGNA|WAKE|LOKI97|ARCFOUR(_IV)?)|STREAM_(REPORT_ERRORS|MUST_SEEK|MKDIR_RECURSIVE|BUFFER_(NONE|FULL|LINE)|SHUT_(RD)?WR|SOCK_(RDM|RAW|STREAM|SEQPACKET|DGRAM)|SERVER_(BIND|LISTEN)|NOTIFY_(REDIRECTED|RESOLVE|MIME_TYPE_IS|SEVERITY_(INFO|ERR|WARN)|COMPLETED|CONNECT|PROGRESS|FILE_SIZE_IS|FAILURE|AUTH_(RE(?:QUIRED|SULT)))|CRYPTO_METHOD_((SSLv2(3)?|SSLv3|TLS)_(CLIENT|SERVER))|CLIENT_((ASYNC_)?CONNECT|PERSISTENT)|CAST_(AS_STREAM|FOR_SELECT)|(I(?:GNORE|S))_URL|IPPROTO_(RAW|TCP|ICMP|IP|UDP)|OOB|OPTION_(READ_(BUFFER|TIMEOUT)|BLOCKING|WRITE_BUFFER)|URL_STAT_(LINK|QUIET)|USE_PATH|PEEK|PF_(INET(6)?|UNIX)|ENFORCE_SAFE_MODE|FILTER_(ALL|READ|WRITE))|SUNFUNCS_RET_(DOUBLE|STRING|TIMESTAMP)|SQLITE_(READONLY|ROW|MISMATCH|MISUSE|BOTH|BUSY|SCHEMA|NOMEM|NOTFOUND|NOTADB|NOLFS|NUM|CORRUPT|CONSTRAINT|CANTOPEN|TOOBIG|INTERRUPT|INTERNAL|IOERR|OK|DONE|PROTOCOL|PERM|ERROR|EMPTY|FORMAT|FULL|LOCKED|ABORT|ASSOC|AUTH)|SQLITE3_(BOTH|BLOB|NUM|NULL|TEXT|INTEGER|OPEN_(READ(ONLY|WRITE)|CREATE)|FLOAT_ASSOC)|CURL(M_(BAD_((EASY)?HANDLE)|CALL_MULTI_PERFORM|INTERNAL_ERROR|OUT_OF_MEMORY|OK)|MSG_DONE|SSH_AUTH_(HOST|NONE|DEFAULT|PUBLICKEY|PASSWORD|KEYBOARD)|CLOSEPOLICY_(SLOWEST|CALLBACK|OLDEST|LEAST_(RECENTLY_USED|TRAFFIC)|INFO_(REDIRECT_(COUNT|TIME)|REQUEST_SIZE|SSL_VERIFYRESULT|STARTTRANSFER_TIME|(S(?:IZE|PEED))_((?:DOWN|UP)LOAD)|HTTP_CODE|HEADER_(OUT|SIZE)|NAMELOOKUP_TIME|CONNECT_TIME|CONTENT_(TYPE|LENGTH_((?:DOWN|UP)LOAD))|CERTINFO|TOTAL_TIME|PRIVATE|PRETRANSFER_TIME|EFFECTIVE_URL|FILETIME)|OPT_(RESUME_FROM|RETURNTRANSFER|REDIR_PROTOCOLS|REFERER|READ(DATA|FUNCTION)|RANGE|RANDOM_FILE|MAX(CONNECTS|REDIRS)|BINARYTRANSFER|BUFFERSIZE|SSH_(HOST_PUBLIC_KEY_MD5|(P(?:RIVATE|UBLIC))_KEYFILE)|AUTH_TYPES)|SSL(CERT(TYPE|PASSWD)?|ENGINE(_DEFAULT)?|VERSION|KEY(TYPE|PASSWD)?)|SSL_(CIPHER_LIST|VERIFY(HOST|PEER))|STDERR|HTTP(GET|HEADER|200ALIASES|_VERSION|PROXYTUNNEL|AUTH)|HEADER(FUNCTION)?|NO(BODY|SIGNAL|PROGRESS)|NETRC|CRLF|CONNECTTIMEOUT(_MS)?|COOKIE(SESSION|JAR|FILE)?|CUSTOMREQUEST|CERTINFO|CLOSEPOLICY|CA(INFO|PATH)|TRANSFERTEXT|TCP_NODELAY|TIME(CONDITION|OUT(_MS)?|VALUE)|INTERFACE|INFILE(SIZE)?|IPRESOLVE|DNS_(CACHE_TIMEOUT|USE_GLOBAL_CACHE)|URL|USER(AGENT|PWD)|UNRESTRICTED_AUTH|UPLOAD|PRIVATE|PROGRESSFUNCTION|PROXY(TYPE|USERPWD|PORT|AUTH)?|PROTOCOLS|PORT|POST(REDIR|QUOTE|FIELDS)?|PUT|EGDSOCKET|ENCODING|VERBOSE|KRB4LEVEL|KEYPASSWD|QUOTE|FRESH_CONNECT|FTP(APPEND|LISTONLY|PORT|SSLAUTH)|FTP_(SSL|SKIP_PASV_IP|CREATE_MISSING_DIRS|USE_EP(RT|SV)|FILEMETHOD)|FILE(TIME)?|FORBID_REUSE|FOLLOWLOCATION|FAILONERROR|WRITE(FUNCTION|HEADER)|LOW_SPEED_(LIMIT|TIME)|AUTOREFERER)|PROXY_(HTTP|SOCKS([45]))|PROTO_(SCP|SFTP|HTTP(S)?|TELNET|TFTP|DICT|FTP(S)?|FILE|LDAP(S)?|ALL)|E_((RE(?:CV|AD))_ERROR|GOT_NOTHING|MALFORMAT_USER|BAD_(CONTENT_ENCODING|CALLING_ORDER|PASSWORD_ENTERED|FUNCTION_ARGUMENT)|SSH|SSL_(CIPHER|CONNECT_ERROR|CERTPROBLEM|CACERT|PEER_CERTIFICATE|ENGINE_(NOTFOUND|SETFAILED))|SHARE_IN_USE|SEND_ERROR|HTTP_(RANGE_ERROR|NOT_FOUND|PORT_FAILED|POST_ERROR)|COULDNT_(RESOLVE_(HOST|PROXY)|CONNECT)|TOO_MANY_REDIRECTS|TELNET_OPTION_SYNTAX|OBSOLETE|OUT_OF_MEMORY|OPERATION|TIMEOUTED|OK|URL_MALFORMAT(_USER)?|UNSUPPORTED_PROTOCOL|UNKNOWN_TELNET_OPTION|PARTIAL_FILE|FTP_(BAD_DOWNLOAD_RESUME|SSL_FAILED|COULDNT_(RETR_FILE|GET_SIZE|STOR_FILE|SET_(BINARY|ASCII)|USE_REST)|CANT_(GET_HOST|RECONNECT)|USER_PASSWORD_INCORRECT|PORT_FAILED|QUOTE_ERROR|WRITE_ERROR|WEIRD_((PASS|PASV|SERVER|USER)_REPLY|227_FORMAT)|ACCESS_DENIED)|FILESIZE_EXCEEDED|FILE_COULDNT_READ_FILE|FUNCTION_NOT_FOUND|FAILED_INIT|WRITE_ERROR|LIBRARY_NOT_FOUND|LDAP_(SEARCH_FAILED|CANNOT_BIND|INVALID_URL)|ABORTED_BY_CALLBACK)|VERSION_NOW|FTP(METHOD_(MULTI|SINGLE|NO)CWD|SSL_(ALL|NONE|CONTROL|TRY)|AUTH_(DEFAULT|SSL|TLS))|AUTH_(ANY(SAFE)?|BASIC|DIGEST|GSSNEGOTIATE|NTLM))|CURL_(HTTP_VERSION_(1_([01])|NONE)|NETRC_(REQUIRED|IGNORED|OPTIONAL)|TIMECOND_(IF(UN)?MODSINCE|LASTMOD)|IPRESOLVE_(V([46])|WHATEVER)|VERSION_(SSL|IPV6|KERBEROS4|LIBZ))|IMAGETYPE_(GIF|XBM|BMP|SWF|COUNT|TIFF_(MM|II)|ICO|IFF|UNKNOWN|JB2|JPX|JP2|JPC|JPEG(2000)?|PSD|PNG|WBMP)|INPUT_(REQUEST|GET|SERVER|SESSION|COOKIE|POST|ENV)|ICONV_(MIME_DECODE_(STRICT|CONTINUE_ON_ERROR)|IMPL|VERSION)|DNS_(MX|SRV|SOA|HINFO|NS|NAPTR|CNAME|TXT|PTR|ANY|ALL|AAAA|A(6)?)|DOM(STRING_SIZE_ERR)|DOM_((SYNTAX|HIERARCHY_REQUEST|NO_((?:MODIFICATION|DATA)_ALLOWED)|NOT_(FOUND|SUPPORTED)|NAMESPACE|INDEX_SIZE|USE_ATTRIBUTE|VALID_(MODIFICATION|STATE|CHARACTER|ACCESS)|PHP|VALIDATION|WRONG_DOCUMENT)_ERR)|JSON_(HEX_(TAG|QUOT|AMP|APOS)|NUMERIC_CHECK|ERROR_(SYNTAX|STATE_MISMATCH|NONE|CTRL_CHAR|DEPTH|UTF8)|FORCE_OBJECT)|PREG_((D_UTF8(_OFFSET)?|NO|INTERNAL|(BACKTRACK|RECURSION)_LIMIT)_ERROR|GREP_INVERT|SPLIT_(NO_EMPTY|(DELIM|OFFSET)_CAPTURE)|SET_ORDER|OFFSET_CAPTURE|PATTERN_ORDER)|PSFS_(PASS_ON|ERR_FATAL|FEED_ME|FLAG_(NORMAL|FLUSH_(CLOSE|INC)))|PCRE_VERSION|POSIX_(([FRWX])_OK|S_IF(REG|BLK|SOCK|CHR|IFO))|FNM_(NOESCAPE|CASEFOLD|PERIOD|PATHNAME)|FILTER_(REQUIRE_(SCALAR|ARRAY)|NULL_ON_FAILURE|CALLBACK|DEFAULT|UNSAFE_RAW|SANITIZE_(MAGIC_QUOTES|STRING|STRIPPED|SPECIAL_CHARS|NUMBER_(INT|FLOAT)|URL|EMAIL|ENCODED|FULL_SPCIAL_CHARS)|VALIDATE_(REGEXP|BOOLEAN|INT|IP|URL|EMAIL|FLOAT)|FORCE_ARRAY|FLAG_(SCHEME_REQUIRED|STRIP_(BACKTICK|HIGH|LOW)|HOST_REQUIRED|NONE|NO_(RES|PRIV)_RANGE|ENCODE_QUOTES|IPV([46])|PATH_REQUIRED|EMPTY_STRING_NULL|ENCODE_(HIGH|LOW|AMP)|QUERY_REQUIRED|ALLOW_(SCIENTIFIC|HEX|THOUSAND|OCTAL|FRACTION)))|FILE_(BINARY|SKIP_EMPTY_LINES|NO_DEFAULT_CONTEXT|TEXT|IGNORE_NEW_LINES|USE_INCLUDE_PATH|APPEND)|FILEINFO_(RAW|MIME(_(ENCODING|TYPE))?|SYMLINK|NONE|CONTINUE|DEVICES|PRESERVE_ATIME)|FORCE_(DEFLATE|GZIP)|LIBXML_(XINCLUDE|NSCLEAN|NO(XMLDECL|BLANKS|NET|CDATA|ERROR|EMPTYTAG|ENT|WARNING)|COMPACT|DTD(VALID|LOAD|ATTR)|((DOTTED|LOADED)_)?VERSION|PARSEHUGE|ERR_(NONE|ERROR|FATAL|WARNING)))\\\\b","name":"support.constant.ext.php"},{"captures":{"1":{"name":"punctuation.separator.inheritance.php"}},"match":"(\\\\\\\\)?\\\\b(T_(RETURN|REQUIRE(_ONCE)?|GOTO|GLOBAL|(MINUS|MOD|MUL|XOR)_EQUAL|METHOD_C|ML_COMMENT|BREAK|BOOL_CAST|BOOLEAN_(AND|OR)|BAD_CHARACTER|SR(_EQUAL)?|STRING(_CAST|VARNAME)?|START_HEREDOC|STATIC|SWITCH|SL(_EQUAL)?|HALT_COMPILER|NS_(C|SEPARATOR)|NUM_STRING|NEW|NAMESPACE|CHARACTER|COMMENT|CONSTANT(_ENCAPSED_STRING)?|CONCAT_EQUAL|CONTINUE|CURLY_OPEN|CLOSE_TAG|CLONE|CLASS(_C)?|CASE|CATCH|TRY|THROW|IMPLEMENTS|ISSET|IS_((GREATER|SMALLER)_OR_EQUAL|(NOT_)?(IDENTICAL|EQUAL))|INSTANCEOF|INCLUDE(_ONCE)?|INC|INT_CAST|INTERFACE|INLINE_HTML|IF|OR_EQUAL|OBJECT_(CAST|OPERATOR)|OPEN_TAG(_WITH_ECHO)?|OLD_FUNCTION|DNUMBER|DIR|DIV_EQUAL|DOC_COMMENT|DOUBLE_(ARROW|CAST|COLON)|DOLLAR_OPEN_CURLY_BRACES|DO|DEC|DECLARE|DEFAULT|USE|UNSET(_CAST)?|PRINT|PRIVATE|PROTECTED|PUBLIC|PLUS_EQUAL|PAAMAYIM_NEKUDOTAYIM|EXTENDS|EXIT|EMPTY|ENCAPSED_AND_WHITESPACE|END(SWITCH|IF|DECLARE|FOR(EACH)?|WHILE)|END_HEREDOC|ECHO|EVAL|ELSE(IF)?|VAR(IABLE)?|FINAL|FILE|FOR(EACH)?|FUNC_C|FUNCTION|WHITESPACE|WHILE|LNUMBER|LIST|LINE|LOGICAL_(AND|OR|XOR)|ARRAY_(CAST)?|ABSTRACT|AS|AND_EQUAL))\\\\b","name":"support.constant.parser-token.php"},{"match":"(?i)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*","name":"constant.other.php"}]},"function-call":{"patterns":[{"begin":"(\\\\\\\\?(?<![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])[A-Z_a-z\\\\x7F-\\\\x{10FFFF}][0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}]*(?:\\\\\\\\[A-Z_a-z\\\\x7F-\\\\x{10FFFF}][0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}]*)+)\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#namespace"},{"match":"(?i)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*","name":"entity.name.function.php"}]},"2":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.function-call.php","patterns":[{"include":"#named-arguments"},{"include":"$self"}]},{"begin":"(\\\\\\\\)?(?<![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])([A-Z_a-z\\\\x7F-\\\\x{10FFFF}][0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}]*)\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#namespace"}]},"2":{"patterns":[{"include":"#support"},{"match":"(?i)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*","name":"entity.name.function.php"}]},"3":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.function-call.php","patterns":[{"include":"#named-arguments"},{"include":"$self"}]},{"match":"(?i)\\\\b(print|echo)\\\\b","name":"support.function.construct.output.php"}]},"function-parameters":{"patterns":[{"include":"#attribute"},{"include":"#comments"},{"match":",","name":"punctuation.separator.delimiter.php"},{"captures":{"1":{"patterns":[{"include":"#php-types"}]},"2":{"name":"variable.other.php"},"3":{"name":"storage.modifier.reference.php"},"4":{"name":"keyword.operator.variadic.php"},"5":{"name":"punctuation.definition.variable.php"}},"match":"(?i)(?:((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+)\\\\s+)?((?:(&)\\\\s*)?(\\\\.\\\\.\\\\.)(\\\\$)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(?=\\\\s*(?:[),]|/[*/]|#|$))","name":"meta.function.parameter.variadic.php"},{"begin":"(?i)((?:\\\\?\\\\s*)?[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\))(?:\\\\s*[\\\\&|]\\\\s*(?:[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+|\\\\(\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(?:\\\\s*&\\\\s*[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)+\\\\s*\\\\)))+)\\\\s+((?:(&)\\\\s*)?(\\\\$)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)","beginCaptures":{"1":{"patterns":[{"include":"#php-types"}]},"2":{"name":"variable.other.php"},"3":{"name":"storage.modifier.reference.php"},"4":{"name":"punctuation.definition.variable.php"}},"end":"(?=\\\\s*(?:[),]|/[*/]|#))","name":"meta.function.parameter.typehinted.php","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.php"}},"end":"(?=\\\\s*(?:[),]|/[*/]|#))","patterns":[{"include":"#parameter-default-types"}]}]},{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((?:(&)\\\\s*)?(\\\\$)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(?=\\\\s*(?:[),]|/[*/]|#|$))","name":"meta.function.parameter.no-default.php"},{"begin":"(?i)((?:(&)\\\\s*)?(\\\\$)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)\\\\s*(=)\\\\s*","beginCaptures":{"1":{"name":"variable.other.php"},"2":{"name":"storage.modifier.reference.php"},"3":{"name":"punctuation.definition.variable.php"},"4":{"name":"keyword.operator.assignment.php"}},"end":"(?=\\\\s*(?:[),]|/[*/]|#))","name":"meta.function.parameter.default.php","patterns":[{"include":"#parameter-default-types"}]}]},"heredoc":{"patterns":[{"begin":"(?i)(?=<<<\\\\s*(\\"?)([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(\\\\1)\\\\s*$)","end":"(?!\\\\G)","name":"string.unquoted.heredoc.php","patterns":[{"include":"#heredoc_interior"}]},{"begin":"(?=<<<\\\\s*'([A-Z_a-z]+[0-9A-Z_a-z]*)'\\\\s*$)","end":"(?!\\\\G)","name":"string.unquoted.nowdoc.php","patterns":[{"include":"#nowdoc_interior"}]}]},"heredoc_interior":{"patterns":[{"begin":"(<<<)\\\\s*(\\"?)(HTML)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.html","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.html","patterns":[{"include":"#interpolation"},{"include":"text.html.basic"}]},{"begin":"(<<<)\\\\s*(\\"?)(XML)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.xml","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.xml","patterns":[{"include":"#interpolation"},{"include":"text.xml"}]},{"begin":"(<<<)\\\\s*(\\"?)([DS]QL)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.sql","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.sql","patterns":[{"include":"#interpolation"},{"include":"source.sql"}]},{"begin":"(<<<)\\\\s*(\\"?)(J(?:AVASCRIPT|S))(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.js","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.js","patterns":[{"include":"#interpolation"},{"include":"source.js"}]},{"begin":"(<<<)\\\\s*(\\"?)(JSON)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.json","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.json","patterns":[{"include":"#interpolation"},{"include":"source.json"}]},{"begin":"(<<<)\\\\s*(\\"?)(CSS)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.css","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.css","patterns":[{"include":"#interpolation"},{"include":"source.css"}]},{"begin":"(<<<)\\\\s*(\\"?)(REGEXP?)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"string.regexp.heredoc.php","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"patterns":[{"include":"#interpolation"},{"match":"(\\\\\\\\){1,2}[]$.\\\\[^{}]","name":"constant.character.escape.regex.php"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repitition.php"},"3":{"name":"punctuation.definition.arbitrary-repitition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repitition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php","patterns":[{"match":"\\\\\\\\[]'\\\\[\\\\\\\\]","name":"constant.character.escape.php"}]},{"match":"[$*+^]","name":"keyword.operator.regexp.php"},{"begin":"(?i)(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?_a-z\\\\x7F-\\\\x{10FFFF}[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.php"}},"end":"$","endCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"name":"comment.line.number-sign.php"}]},{"begin":"(<<<)\\\\s*(\\"?)(BLADE)(\\\\2)(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.html.php.blade","end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.heredoc.php"}},"name":"meta.embedded.php.blade","patterns":[{"include":"#interpolation"}]},{"begin":"(?i)(<<<)\\\\s*(\\"?)([_a-z\\\\x7F-\\\\x{10FFFF}]+[0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(\\\\2)(\\\\s*)","beginCaptures":{"1":{"name":"punctuation.definition.string.php"},"3":{"name":"keyword.operator.heredoc.php"},"5":{"name":"invalid.illegal.trailing-whitespace.php"}},"end":"^\\\\s*(\\\\3)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"keyword.operator.heredoc.php"}},"patterns":[{"include":"#interpolation"}]}]},"inheritance-single":{"patterns":[{"begin":"(?i)(?=\\\\\\\\?[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*\\\\\\\\)","end":"(?i)([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?(?=[^0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"entity.other.inherited-class.php"}},"patterns":[{"include":"#namespace"}]},{"include":"#class-builtin"},{"include":"#namespace"},{"match":"(?i)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*","name":"entity.other.inherited-class.php"}]},"instantiation":{"patterns":[{"captures":{"1":{"name":"keyword.other.new.php"},"2":{"patterns":[{"match":"(?i)(parent|static|self)(?![0-9_a-z\\\\x7F-\\\\x{10FFFF}])","name":"storage.type.php"},{"include":"#class-name"},{"include":"#variable-name"}]}},"match":"(?i)(new)\\\\s+(?!class\\\\b)([$0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)(?![(0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])"},{"begin":"(?i)(new)\\\\s+(?!class\\\\b)([$0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.new.php"},"2":{"patterns":[{"match":"(?i)(parent|static|self)(?![0-9_a-z\\\\x7F-\\\\x{10FFFF}])","name":"storage.type.php"},{"include":"#class-name"},{"include":"#variable-name"}]},"3":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"contentName":"meta.function-call.php","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"patterns":[{"include":"#named-arguments"},{"include":"$self"}]}]},"interface-extends":{"patterns":[{"begin":"(?i)(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.extends.php"}},"end":"(?i)(?=\\\\{)","patterns":[{"include":"#comments"},{"match":",","name":"punctuation.separator.classes.php"},{"include":"#inheritance-single"}]}]},"interpolation":{"patterns":[{"match":"\\\\\\\\[0-7]{1,3}","name":"constant.character.escape.octal.php"},{"match":"\\\\\\\\x\\\\h{1,2}","name":"constant.character.escape.hex.php"},{"match":"\\\\\\\\u\\\\{\\\\h+}","name":"constant.character.escape.unicode.php"},{"match":"\\\\\\\\[$\\\\\\\\efnrtv]","name":"constant.character.escape.php"},{"begin":"\\\\{(?=\\\\$.*?})","beginCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"patterns":[{"include":"$self"}]},{"include":"#variable-name"}]},"interpolation_double_quoted":{"patterns":[{"match":"\\\\\\\\\\"","name":"constant.character.escape.php"},{"include":"#interpolation"}]},"invoke-call":{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((\\\\$+)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(?=\\\\s*\\\\()","name":"meta.function-call.invoke.php"},"match_statement":{"patterns":[{"match":"\\\\s+(?=match\\\\b)"},{"begin":"\\\\bmatch\\\\b","beginCaptures":{"0":{"name":"keyword.control.match.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.section.match-block.end.bracket.curly.php"}},"name":"meta.match-statement.php","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.match-expression.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.match-expression.end.bracket.round.php"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.section.match-block.begin.bracket.curly.php"}},"end":"(?=}|\\\\?>)","patterns":[{"match":"=>","name":"keyword.definition.arrow.php"},{"include":"$self"}]}]}]},"named-arguments":{"captures":{"1":{"name":"entity.name.variable.parameter.php"},"2":{"name":"punctuation.separator.colon.php"}},"match":"(?i)(?<=^|[(,])\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)\\\\s*(:)(?!:)"},"namespace":{"begin":"(?i)(?:(namespace)|[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?(\\\\\\\\)","beginCaptures":{"1":{"name":"variable.language.namespace.php"},"2":{"name":"punctuation.separator.inheritance.php"}},"end":"(?i)(?![0-9_a-z\\\\x7F-\\\\x{10FFFF}]*\\\\\\\\)","name":"support.other.namespace.php","patterns":[{"match":"\\\\\\\\","name":"punctuation.separator.inheritance.php"}]},"nowdoc_interior":{"patterns":[{"begin":"(<<<)\\\\s*'(HTML)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.html","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.html","patterns":[{"include":"text.html.basic"}]},{"begin":"(<<<)\\\\s*'(XML)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.xml","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.xml","patterns":[{"include":"text.xml"}]},{"begin":"(<<<)\\\\s*'([DS]QL)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.sql","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.sql","patterns":[{"include":"source.sql"}]},{"begin":"(<<<)\\\\s*'(J(?:AVASCRIPT|S))'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.js","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.js","patterns":[{"include":"source.js"}]},{"begin":"(<<<)\\\\s*'(JSON)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.json","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.json","patterns":[{"include":"source.json"}]},{"begin":"(<<<)\\\\s*'(CSS)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"source.css","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.css","patterns":[{"include":"source.css"}]},{"begin":"(<<<)\\\\s*'(REGEXP?)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"string.regexp.nowdoc.php","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"patterns":[{"match":"(\\\\\\\\){1,2}[]$.\\\\[^{}]","name":"constant.character.escape.regex.php"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repitition.php"},"3":{"name":"punctuation.definition.arbitrary-repitition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repitition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php","patterns":[{"match":"\\\\\\\\[]'\\\\[\\\\\\\\]","name":"constant.character.escape.php"}]},{"match":"[$*+^]","name":"keyword.operator.regexp.php"},{"begin":"(?i)(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?_a-z\\\\x7F-\\\\x{10FFFF}[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.php"}},"end":"$","endCaptures":{"0":{"name":"punctuation.definition.comment.php"}},"name":"comment.line.number-sign.php"}]},{"begin":"(<<<)\\\\s*'(BLADE)'(\\\\s*)$","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.php"},"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"contentName":"text.html.php.blade","end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"0":{"name":"punctuation.section.embedded.end.php"},"1":{"name":"keyword.operator.nowdoc.php"}},"name":"meta.embedded.php.blade"},{"begin":"(?i)(<<<)\\\\s*'([_a-z\\\\x7F-\\\\x{10FFFF}]+[0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)'(\\\\s*)","beginCaptures":{"1":{"name":"punctuation.definition.string.php"},"2":{"name":"keyword.operator.nowdoc.php"},"3":{"name":"invalid.illegal.trailing-whitespace.php"}},"end":"^\\\\s*(\\\\2)(?![0-9A-Z_a-z\\\\x7F-\\\\x{10FFFF}])","endCaptures":{"1":{"name":"keyword.operator.nowdoc.php"}}}]},"null_coalescing":{"match":"\\\\?\\\\?","name":"keyword.operator.null-coalescing.php"},"numbers":{"patterns":[{"match":"0[Xx]\\\\h+(?:_\\\\h+)*","name":"constant.numeric.hex.php"},{"match":"0[Bb][01]+(?:_[01]+)*","name":"constant.numeric.binary.php"},{"match":"0[Oo][0-7]+(?:_[0-7]+)*","name":"constant.numeric.octal.php"},{"match":"0(?:_?[0-7]+)+","name":"constant.numeric.octal.php"},{"captures":{"1":{"name":"punctuation.separator.decimal.period.php"},"2":{"name":"punctuation.separator.decimal.period.php"}},"match":"(?:[0-9]+(?:_[0-9]+)*)?(\\\\.)[0-9]+(?:_[0-9]+)*(?:[Ee][-+]?[0-9]+(?:_[0-9]+)*)?|[0-9]+(?:_[0-9]+)*(\\\\.)(?:[0-9]+(?:_[0-9]+)*)?(?:[Ee][-+]?[0-9]+(?:_[0-9]+)*)?|[0-9]+(?:_[0-9]+)*[Ee][-+]?[0-9]+(?:_[0-9]+)*","name":"constant.numeric.decimal.php"},{"match":"0|[1-9](?:_?[0-9]+)*","name":"constant.numeric.decimal.php"}]},"object":{"patterns":[{"begin":"(\\\\??->)\\\\s*(\\\\$?\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"punctuation.definition.variable.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"patterns":[{"include":"$self"}]},{"begin":"(?i)(\\\\??->)\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"entity.name.function.php"},"3":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.method-call.php","patterns":[{"include":"#named-arguments"},{"include":"$self"}]},{"captures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"variable.other.property.php"},"3":{"name":"punctuation.definition.variable.php"}},"match":"(?i)(\\\\??->)\\\\s*((\\\\$+)?[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?"}]},"parameter-default-types":{"patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#string-backtick"},{"include":"#variables"},{"match":"=>","name":"keyword.operator.key.php"},{"match":"=","name":"keyword.operator.assignment.php"},{"match":"&(?=\\\\s*\\\\$)","name":"storage.modifier.reference.php"},{"begin":"(array)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.construct.php"},"2":{"name":"punctuation.definition.array.begin.bracket.round.php"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.php"}},"name":"meta.array.php","patterns":[{"include":"#parameter-default-types"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.php"}},"end":"]|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.section.array.end.php"}},"patterns":[{"include":"$self"}]},{"include":"#instantiation"},{"begin":"(?i)(?=[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+(::)\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?)","end":"(?i)(::)\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)?","endCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"constant.other.class.php"}},"patterns":[{"include":"#class-name"}]},{"include":"#constants"}]},"php-types":{"patterns":[{"match":"\\\\?","name":"keyword.operator.nullable-type.php"},{"match":"[\\\\&|]","name":"punctuation.separator.delimiter.php"},{"match":"(?i)\\\\b(null|int|float|bool|string|array|object|callable|iterable|true|false|mixed|void)\\\\b","name":"keyword.other.type.php"},{"match":"(?i)\\\\b(parent|self)\\\\b","name":"storage.type.php"},{"match":"\\\\(","name":"punctuation.definition.type.begin.bracket.round.php"},{"match":"\\\\)","name":"punctuation.definition.type.end.bracket.round.php"},{"include":"#class-name"}]},"php_doc":{"patterns":[{"match":"^(?!\\\\s*\\\\*).*?(?:(?=\\\\*/)|$\\\\n?)","name":"invalid.illegal.missing-asterisk.phpdoc.php"},{"captures":{"1":{"name":"keyword.other.phpdoc.php"},"3":{"name":"storage.modifier.php"},"4":{"name":"invalid.illegal.wrong-access-type.phpdoc.php"}},"match":"^\\\\s*\\\\*\\\\s*(@access)\\\\s+((p(?:ublic|rivate|rotected))|(.+))\\\\s*$"},{"captures":{"1":{"name":"keyword.other.phpdoc.php"},"2":{"name":"markup.underline.link.php"}},"match":"(@xlink)\\\\s+(.+)\\\\s*$"},{"begin":"(@(?:global|param|property(-(read|write))?|return|throws|var))\\\\s+(?=[(?A-Z\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}])","beginCaptures":{"1":{"name":"keyword.other.phpdoc.php"}},"contentName":"meta.other.type.phpdoc.php","end":"(?=\\\\s|\\\\*/)","patterns":[{"include":"#php_doc_types_array_multiple"},{"include":"#php_doc_types_array_single"},{"include":"#php_doc_types"},{"match":"[\\\\&|]","name":"punctuation.separator.delimiter.php"}]},{"match":"@(api|abstract|author|category|copyright|example|global|inherit[Dd]oc|internal|license|link|method|property(-(read|write))?|package|param|return|see|since|source|static|subpackage|throws|todo|var|version|uses|deprecated|final|ignore)\\\\b","name":"keyword.other.phpdoc.php"},{"captures":{"1":{"name":"keyword.other.phpdoc.php"}},"match":"\\\\{(@(link|inherit[Dd]oc)).+?}","name":"meta.tag.inline.phpdoc.php"}]},"php_doc_types":{"captures":{"0":{"patterns":[{"match":"\\\\?","name":"keyword.operator.nullable-type.php"},{"match":"\\\\b(string|integer|int|boolean|bool|float|double|object|mixed|array|resource|void|null|callback|false|true|self|static)\\\\b","name":"keyword.other.type.php"},{"include":"#class-name"},{"match":"[\\\\&|]","name":"punctuation.separator.delimiter.php"}]}},"match":"(?i)\\\\??[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+([\\\\&|]\\\\??[0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)*"},"php_doc_types_array_multiple":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.bracket.round.phpdoc.php"}},"end":"(\\\\))(\\\\[])?|(?=\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.type.end.bracket.round.phpdoc.php"},"2":{"name":"keyword.other.array.phpdoc.php"}},"patterns":[{"include":"#php_doc_types_array_multiple"},{"include":"#php_doc_types_array_single"},{"include":"#php_doc_types"},{"match":"[\\\\&|]","name":"punctuation.separator.delimiter.php"}]},"php_doc_types_array_single":{"captures":{"1":{"patterns":[{"include":"#php_doc_types"}]},"2":{"name":"keyword.other.array.phpdoc.php"}},"match":"(?i)([0-9\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]+)(\\\\[])"},"regex-double-quoted":{"begin":"\\"/(?=(\\\\\\\\.|[^\\"/])++/[ADSUXeimsux]*\\")","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"(/)([ADSUXeimsux]*)(\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.regexp.double-quoted.php","patterns":[{"match":"(\\\\\\\\){1,2}[]$.\\\\[^{}]","name":"constant.character.escape.regex.php"},{"include":"#interpolation_double_quoted"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.php"},"3":{"name":"punctuation.definition.arbitrary-repetition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php","patterns":[{"include":"#interpolation_double_quoted"}]},{"match":"[$*+^]","name":"keyword.operator.regexp.php"}]},"regex-single-quoted":{"begin":"'/(?=(\\\\\\\\(?:\\\\\\\\(?:\\\\\\\\['\\\\\\\\]?|[^'])|.)|[^'/])++/[ADSUXeimsux]*')","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"(/)([ADSUXeimsux]*)(')","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.regexp.single-quoted.php","patterns":[{"include":"#single_quote_regex_escape"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.php"},"3":{"name":"punctuation.definition.arbitrary-repetition.php"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.php"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.php"}},"end":"]","name":"string.regexp.character-class.php"},{"match":"[$*+^]","name":"keyword.operator.regexp.php"}]},"scope-resolution":{"patterns":[{"captures":{"1":{"patterns":[{"match":"\\\\b(self|static|parent)\\\\b","name":"storage.type.php"},{"include":"#class-name"},{"include":"#variable-name"}]}},"match":"([A-Z\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}][0-9A-Z\\\\\\\\_a-z\\\\x7F-\\\\x{10FFFF}]*)(?=\\\\s*::)"},{"begin":"(?i)(::)\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"entity.name.function.php"},"3":{"name":"punctuation.definition.arguments.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.bracket.round.php"}},"name":"meta.method-call.static.php","patterns":[{"include":"#named-arguments"},{"include":"$self"}]},{"captures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"keyword.other.class.php"}},"match":"(?i)(::)\\\\s*(class)\\\\b"},{"captures":{"1":{"name":"keyword.operator.class.php"},"2":{"name":"variable.other.class.php"},"3":{"name":"punctuation.definition.variable.php"},"4":{"name":"constant.other.class.php"}},"match":"(?i)(::)\\\\s*(?:((\\\\$+)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)|([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*))?"}]},"single_quote_regex_escape":{"match":"\\\\\\\\(?:\\\\\\\\(?:\\\\\\\\['\\\\\\\\]?|[^'])|.)","name":"constant.character.escape.php"},"sql-string-double-quoted":{"begin":"\\"\\\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\\\b)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"contentName":"source.sql.embedded.php","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.double.sql.php","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(#)(\\\\\\\\\\"|[^\\"])*(?=\\"|$)","name":"comment.line.number-sign.sql"},{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(--)(\\\\\\\\\\"|[^\\"])*(?=\\"|$)","name":"comment.line.double-dash.sql"},{"match":"\\\\\\\\[\\"'\\\\\\\\\`]","name":"constant.character.escape.php"},{"match":"'(?=((\\\\\\\\')|[^\\"'])*(\\"|$))","name":"string.quoted.single.unclosed.sql"},{"match":"\`(?=((\\\\\\\\\`)|[^\\"\`])*(\\"|$))","name":"string.quoted.other.backtick.unclosed.sql"},{"begin":"'","end":"'","name":"string.quoted.single.sql","patterns":[{"include":"#interpolation_double_quoted"}]},{"begin":"\`","end":"\`","name":"string.quoted.other.backtick.sql","patterns":[{"include":"#interpolation_double_quoted"}]},{"include":"#interpolation_double_quoted"},{"include":"source.sql"}]},"sql-string-single-quoted":{"begin":"'\\\\s*(?=(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|AND|WITH)\\\\b)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"contentName":"source.sql.embedded.php","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.single.sql.php","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(#)(\\\\\\\\'|[^'])*(?='|$)","name":"comment.line.number-sign.sql"},{"captures":{"1":{"name":"punctuation.definition.comment.sql"}},"match":"(--)(\\\\\\\\'|[^'])*(?='|$)","name":"comment.line.double-dash.sql"},{"match":"\\\\\\\\[\\"'\\\\\\\\\`]","name":"constant.character.escape.php"},{"match":"\`(?=((\\\\\\\\\`)|[^'\`])*('|$))","name":"string.quoted.other.backtick.unclosed.sql"},{"match":"\\"(?=((\\\\\\\\\\")|[^\\"'])*('|$))","name":"string.quoted.double.unclosed.sql"},{"include":"source.sql"}]},"string-backtick":{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.interpolated.php","patterns":[{"match":"\\\\\\\\\`","name":"constant.character.escape.php"},{"include":"#interpolation"}]},"string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.double.php","patterns":[{"include":"#interpolation_double_quoted"}]},"string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.php"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.php"}},"name":"string.quoted.single.php","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.php"}]},"strings":{"patterns":[{"include":"#regex-double-quoted"},{"include":"#sql-string-double-quoted"},{"include":"#string-double-quoted"},{"include":"#regex-single-quoted"},{"include":"#sql-string-single-quoted"},{"include":"#string-single-quoted"}]},"support":{"patterns":[{"match":"(?i)\\\\bapc_(store|sma_info|compile_file|clear_cache|cas|cache_info|inc|dec|define_constants|delete(_file)?|exists|fetch|load_constants|add|bin_(dump|load)(file)?)\\\\b","name":"support.function.apc.php"},{"match":"(?i)\\\\b(compact|count|current|end|extract|in_array|key(_exists)?|list|nat(case)?sort|next|pos|prev|range|reset|shuffle|sizeof|[ak]?r?sort|u[ak]?sort|array_(all|any|change_key_case|chunk|column|combine|count_values|fill(_keys)?|filter|find(_key)?|flip|is_list|key_(exists|first|last)|keys|map|multisort|pad|pop|product|push|rand|reduce|reverse|search|shift|slice|splice|sum|unique|unshift|values|u?(diff|intersect)(_u?(key|assoc))?|(walk|replace|merge)(_recursive)?))\\\\b","name":"support.function.array.php"},{"match":"(?i)\\\\b(connection_(aborted|status)|constant|defined?|die|eval|exit|get_browser|__halt_compiler|highlight_(file|string)|hrtime|ignore_user_abort|pack|php_strip_whitespace|show_source|u?sleep|sys_getloadavg|time_(nanosleep|sleep_until)|uniqid|unpack)\\\\b","name":"support.function.basic_functions.php"},{"match":"(?i)\\\\bbc(add|ceil|comp|(div|pow)(mod)?|floor|mod|mul|round|scale|sqrt|sub)\\\\b","name":"support.function.bcmath.php"},{"match":"(?i)\\\\bblenc_encrypt\\\\b","name":"support.function.blenc.php"},{"match":"(?i)\\\\bbz(compress|close|open|decompress|errstr|errno|error|flush|write|read)\\\\b","name":"support.function.bz2.php"},{"match":"(?i)\\\\b((French|Gregorian|Jewish|Julian)ToJD|cal_(to_jd|info|days_in_month|from_jd)|unixtojd|jdto(unix|jewish)|easter_(da(?:te|ys))|JD(MonthName|To(Gregorian|Julian|French)|DayOfWeek))\\\\b","name":"support.function.calendar.php"},{"match":"(?i)\\\\b(__autoload|class_alias|(class|interface|method|property|trait|enum)_exists|is_(a|subclass_of)|get_(class(_(vars|methods))?|(called|parent)_class|(mangled_)?object_vars|declared_(classes|interfaces|traits)))\\\\b","name":"support.function.classobj.php"},{"match":"(?i)\\\\b(com_(create_guid|print_typeinfo|event_sink|load_typelib|get_active_object|message_pump)|variant_(sub|set(_type)?|not|neg|cast|cat|cmp|int|idiv|imp|or|div|date_(from|to)_timestamp|pow|eqv|fix|and|add|abs|round|get_type|xor|mod|mul))\\\\b","name":"support.function.com.php"},{"match":"(?i)\\\\b(isset|unset|eval|empty|list)\\\\b","name":"support.function.construct.php"},{"match":"(?i)\\\\b(print|echo)\\\\b","name":"support.function.construct.output.php"},{"match":"(?i)\\\\bctype_(space|cntrl|digit|upper|punct|print|lower|alnum|alpha|graph|xdigit)\\\\b","name":"support.function.ctype.php"},{"match":"(?i)\\\\bcurl_(close|copy_handle|errno|error|escape|exec|getinfo|init|pause|reset|setopt(_array)?|strerror|unescape|upkeep|version|multi_((add|remove)_handle|close|errno|exec|getcontent|info_read|init|select|setopt|strerror)|share_(close|errno|init(_persistent)?|setopt|strerror))\\\\b","name":"support.function.curl.php"},{"match":"(?i)\\\\b(strtotime|str[fp]time|checkdate|time|timezone_name_(from_abbr|get)|idate|timezone_((location|offset|transitions|version)_get|(abbreviations|identifiers)_list|open)|date(_(sun(rise|set)|sun_info|sub|create(_immutable)?(_from_format)?|timestamp_[gs]et|timezone_[gs]et|time_set|isodate_set|interval_(create_from_date_string|format)|offset_get|diff|default_timezone_[gs]et|date_set|parse(_from_format)?|format|add|get_last_errors|modify))?|localtime|get(date|timeofday)|gm(strftime|date|mktime)|microtime|mktime)\\\\b","name":"support.function.datetime.php"},{"match":"(?i)\\\\bdba_(sync|handlers|nextkey|close|insert|optimize|open|delete|popen|exists|key_split|firstkey|fetch|list|replace)\\\\b","name":"support.function.dba.php"},{"match":"(?i)\\\\bdbx_(sort|connect|compare|close|escape_string|error|query|fetch_row)\\\\b","name":"support.function.dbx.php"},{"match":"(?i)\\\\b(scandir|chdir|chroot|closedir|opendir|dir|rewinddir|readdir|getcwd)\\\\b","name":"support.function.dir.php"},{"match":"(?i)\\\\beio_(sync(fs)?|sync_file_range|symlink|stat(vfs)?|sendfile|set_min_parallel|set_max_(idle|poll_(reqs|time)|parallel)|seek|n(threads|op|pending|reqs|ready)|chown|chmod|custom|close|cancel|truncate|init|open|dup2|unlink|utime|poll|event_loop|f(sync|stat(vfs)?|chown|chmod|truncate|datasync|utime|allocate)|write|lstat|link|rename|realpath|read(ahead|dir|link)?|rmdir|get_(event_stream|last_error)|grp(_(add|cancel|limit))?|mknod|mkdir|busy)\\\\b","name":"support.function.eio.php"},{"match":"(?i)\\\\benchant_(dict_(store_replacement|suggest|check|is_in_session|describe|quick_check|add_to_(personal|session)|get_error)|broker_(set_ordering|init|dict_exists|describe|free(_dict)?|list_dicts|request_(pwl_)?dict|get_error))\\\\b","name":"support.function.enchant.php"},{"match":"(?i)\\\\b(split(i)?|sql_regcase|ereg(i)?(_replace)?)\\\\b","name":"support.function.ereg.php"},{"match":"(?i)\\\\b((restore|set)_(e(?:rror|xception))_handler|trigger_error|debug_(print_)?backtrace|user_error|error_(log|reporting|(clear|get)_last))\\\\b","name":"support.function.errorfunc.php"},{"match":"(?i)\\\\b(shell_exec|system|passthru|proc_(nice|close|terminate|open|get_status)|escapeshell(arg|cmd)|exec)\\\\b","name":"support.function.exec.php"},{"match":"(?i)\\\\b(exif_(thumbnail|tagname|imagetype|read_data)|read_exif_data)\\\\b","name":"support.function.exif.php"},{"match":"(?i)\\\\bfann_((duplicate|length|merge|shuffle|subset)_train_data|scale_(train(_data)?|((?:in|out)put)(_train_data)?)|set_(scaling_params|sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|cascade_(num_candidate_groups|candidate_(change_fraction|limit|stagnation_epochs)|output_(change_fraction|stagnation_epochs)|weight_multiplier|activation_(functions|steepnesses)|(m(?:ax|in))_(cand|out)_epochs)|callback|training_algorithm|train_(error|stop)_function|((?:in|out)put)_scaling_params|error_log|quickprop_(decay|mu)|weight(_array)?|learning_(momentum|rate)|bit_fail_limit|activation_(function|steepness)(_(hidden|layer|output))?|rprop_(((?:de|in)crease)_factor|delta_(max|min|zero)))|save(_train)?|num_((?:in|out)put)_train_data|copy|clear_scaling_params|cascadetrain_on_(file|data)|create_((s(?:parse|hortcut|tandard))(_array)?|train(_from_callback)?|from_file)|test(_data)?|train(_(on_(file|data)|epoch))?|init_weights|descale_(input|output|train)|destroy(_train)?|print_error|run|reset_(MSE|err(no|str))|read_train_from_file|randomize_weights|get_(sarprop_(step_error_(shift|threshold_factor)|temperature|weight_decay_shift)|num_(input|output|layers)|network_type|MSE|connection_(array|rate)|bias_array|bit_fail(_limit)?|cascade_(num_(candidate(?:s|_groups))|(candidate|output)_(change_fraction|limit|stagnation_epochs)|weight_multiplier|activation_(functions|steepnesses)(_count)?|(m(?:ax|in))_(cand|out)_epochs)|total_((?:connecti|neur)ons)|training_algorithm|train_(error|stop)_function|err(no|str)|quickprop_(decay|mu)|learning_(momentum|rate)|layer_array|activation_(function|steepness)|rprop_(((?:de|in)crease)_factor|delta_(max|min|zero))))\\\\b","name":"support.function.fann.php"},{"match":"(?i)\\\\b(symlink|stat|set_file_buffer|chown|chgrp|chmod|copy|clearstatcache|touch|tempnam|tmpfile|is_(dir|(uploaded_)?file|executable|link|readable|writ(e)?able)|disk_(free|total)_space|diskfreespace|dirname|delete|unlink|umask|pclose|popen|pathinfo|parse_ini_(file|string)|fscanf|fstat|fseek|fnmatch|fclose|ftell|ftruncate|file(size|[acm]time|type|inode|owner|perms|group)?|file_(exists|(get|put)_contents)|f(open|puts|putcsv|passthru|eof|flush|write|lock|read|gets(s)?|getc(sv)?)|lstat|lchown|lchgrp|link(info)?|rename|rewind|read(file|link)|realpath(_cache_(get|size))?|rmdir|glob|move_uploaded_file|mkdir|basename|f(data)?sync)\\\\b","name":"support.function.file.php"},{"match":"(?i)\\\\b(finfo_(set_flags|close|open|file|buffer)|mime_content_type)\\\\b","name":"support.function.fileinfo.php"},{"match":"(?i)\\\\bfilter_(has_var|input(_array)?|id|var(_array)?|list)\\\\b","name":"support.function.filter.php"},{"match":"(?i)\\\\b(f(?:astcgi_finish_request|pm_get_status))\\\\b","name":"support.function.fpm.php"},{"match":"(?i)\\\\b(call_user_(func|method)(_array)?|create_function|unregister_tick_function|forward_static_call(_array)?|function_exists|func_(num_args|get_arg(s)?)|register_(shutdown|tick)_function|get_defined_functions)\\\\b","name":"support.function.funchand.php"},{"match":"(?i)\\\\b((n)?gettext|textdomain|d((?:(n)?|c(n)?)gettext)|bind(textdomain|_textdomain_codeset))\\\\b","name":"support.function.gettext.php"},{"match":"(?i)\\\\bgmp_(scan[01]|strval|sign|sub|setbit|sqrt(rem)?|hamdist|neg|nextprime|com|clrbit|cmp|testbit|intval|init|invert|import|or|div(exact)?|div_(qr??|r)|jacobi|popcount|pow(m)?|perfect_(square|power)|prob_prime|export|fact|legendre|and|add|abs|root(rem)?|random(_(bits|range|seed))?|gcd(ext)?|xor|mod|mul|binomial|kronecker|lcm)\\\\b","name":"support.function.gmp.php"},{"match":"(?i)\\\\bhash(_(algos|copy|equals|file|final|hkdf|hmac(_(file|algos)?)?|init|pbkdf2|update(_(file|stream))?))?\\\\b","name":"support.function.hash.php"},{"match":"(?i)\\\\b(http_(support|send_(status|stream|content_(disposition|type)|data|file|last_modified)|head|negotiate_(charset|content_type|language)|chunked_decode|cache_(etag|last_modified)|throttle|inflate|deflate|date|post_(data|fields)|put_(data|file|stream)|persistent_handles_(count|clean|ident)|parse_(cookie|headers|message|params)|redirect|request(_(method_(exists|name|(un)?register)|body_encode))?|get(_request_(headers|body(_stream)?))?|match_(etag|modified|request_header)|build_(cookie|str|url))|ob_(etag|deflate|inflate)handler)\\\\b","name":"support.function.http.php"},{"match":"(?i)\\\\b(iconv(_(str(pos|len|rpos)|substr|[gs]et_encoding|mime_(decode(_headers)?|encode)))?|ob_iconv_handler)\\\\b","name":"support.function.iconv.php"},{"match":"(?i)\\\\biis_((st(?:art|op))_(serv(?:ice|er))|set_(script_map|server_rights|dir_security|app_settings)|(add|remove)_server|get_(script_map|service_state|server_(rights|by_(comment|path))|dir_security))\\\\b","name":"support.function.iisfunc.php"},{"match":"(?i)\\\\b(iptc(embed|parse)|(jpeg|png)2wbmp|gd_info|getimagesize(fromstring)?|image(s[xy]|scale|(char|string)(up)?|set(clip|style|thickness|tile|interpolation|pixel|brush)|savealpha|convolution|copy(resampled|resized|merge(gray)?)?|colors(forindex|total)|color(set|closest(alpha|hwb)?|transparent|deallocate|(allocate|exact|resolve)(alpha)?|at|match)|crop(auto)?|create(truecolor|from(avif|bmp|string|jpeg|png|wbmp|webp|gif|gd(2(part)?)?|tga|xpm|xbm))?|types|ttf(bbox|text)|truecolortopalette|istruecolor|interlace|2wbmp|destroy|dashedline|jpeg|_type_to_(extension|mime_type)|ps(slantfont|text|(encode|extend|free|load)font|bbox)|png|polygon|palette(copy|totruecolor)|ellipse|ft(text|bbox)|filter|fill|filltoborder|filled(arc|ellipse|polygon|rectangle)|font(height|width)|flip|webp|wbmp|line|loadfont|layereffect|antialias|affine(matrix(concat|get))?|alphablending|arc|rotate|rectangle|gif|gd2?|gammacorrect|grab(screen|window)|xbm|resolution|openpolygon|get(clip|interpolation)|avif|bmp))\\\\b","name":"support.function.image.php"},{"match":"(?i)\\\\b(sys_get_temp_dir|set_(time_limit|include_path|magic_quotes_runtime)|cli_[gs]et_process_title|ini_(alter|get(_all)?|restore|set)|zend_(thread_id|version|logo_guid)|dl|php(credits|info|version)|php_(sapi_name|ini_(scanned_files|loaded_file)|uname|logo_guid)|putenv|extension_loaded|version_compare|assert(_options)?|restore_include_path|gc_(collect_cycles|disable|enable(d)?)|getopt|get_(cfg_var|current_user|defined_constants|extension_funcs|include_path|included_files|loaded_extensions|magic_quotes_(gpc|runtime)|required_files|resources)|get(env|lastmod|rusage|my(inode|[gpu]id))|memory_get_(peak_)?usage|main|magic_quotes_runtime)\\\\b","name":"support.function.info.php"},{"match":"(?i)\\\\bibase_(set_event_handler|service_((?:at|de)tach)|server_info|num_(fields|params)|name_result|connect|commit(_ret)?|close|trans|delete_user|drop_db|db_info|pconnect|param_info|prepare|err(code|msg)|execute|query|field_info|fetch_(assoc|object|row)|free_(event_handler|query|result)|wait_event|add_user|affected_rows|rollback(_ret)?|restore|gen_id|modify_user|maintain_db|backup|blob_(cancel|close|create|import|info|open|echo|add|get))\\\\b","name":"support.function.interbase.php"},{"match":"(?i)\\\\b(normalizer_(normalize|is_normalized)|idn_to_(unicode|utf8|ascii)|numfmt_(set_(symbol|(text_)?attribute|pattern)|create|(parse|format)(_currency)?|get_(symbol|(text_)?attribute|pattern|error_(code|message)|locale))|collator_(sort(_with_sort_keys)?|set_(attribute|strength)|compare|create|asort|get_(strength|sort_key|error_(code|message)|locale|attribute))|transliterator_(create(_(inverse|from_rules))?|transliterate|list_ids|get_error_(code|message))|intl(cal|tz)_get_error_(code|message)|intl_(is_failure|error_name|get_error_(code|message))|datefmt_(set_(calendar|lenient|pattern|timezone(_id)?)|create|is_lenient|parse|format(_object)?|localtime|get_(calendar(_object)?|time(type|zone(_id)?)|datetype|pattern|error_(code|message)|locale))|locale_(set_default|compose|canonicalize|parse|filter_matches|lookup|accept_from_http|get_(script|display_(script|name|variant|language|region)|default|primary_language|keywords|all_variants|region))|resourcebundle_(create|count|locales|get(_(error_(code|message)))?)|grapheme_(str(i?str|r?i?pos|len|_split)|substr|extract)|msgfmt_(set_pattern|create|(format|parse)(_message)?|get_(pattern|error_(code|message)|locale)))\\\\b","name":"support.function.intl.php"},{"match":"(?i)\\\\bjson_(decode|encode|last_error(_msg)?|validate)\\\\b","name":"support.function.json.php"},{"match":"(?i)\\\\bldap_(start|tls|sort|search|sasl_bind|set_(option|rebind_proc)|(first|next)_(attribute|entry|reference)|connect|control_paged_result(_response)?|count_entries|compare|close|t61_to_8859|8859_to_t61|dn2ufn|delete|unbind|parse_(re(?:ference|sult))|escape|errno|err2str|error|explode_dn|bind|free_result|list|add|rename|read|get_(option|dn|entries|values(_len)?|attributes)|modify(_batch)?|mod_(add|del|replace))\\\\b","name":"support.function.ldap.php"},{"match":"(?i)\\\\blibxml_(set_(streams_context|external_entity_loader)|clear_errors|disable_entity_loader|use_internal_errors|get_(errors|last_error))\\\\b","name":"support.function.libxml.php"},{"match":"(?i)\\\\b(ezmlm_hash|mail)\\\\b","name":"support.function.mail.php"},{"match":"(?i)\\\\b(a?(cos|sin|tan)h?|sqrt|srand|hypot|hexdec|ceil|is_(nan|(in)?finite)|octdec|dec(hex|oct|bin)|deg2rad|pi|pow|exp(m1)?|floor|f(div|mod|pow)|lcg_value|log(1[0p])?|atan2|abs|round|rand|rad2deg|getrandmax|mt_(srand|rand|getrandmax)|max|min|bindec|base_convert|intdiv)\\\\b","name":"support.function.math.php"},{"match":"(?i)\\\\bmb_(str(cut|str|to(lower|upper)|istr|ipos|imwidth|pos|width|len|rchr|richr|ripos|rpos|_pad|_split)|substitute_character|substr(_count)?|split|send_mail|http_((?:in|out)put)|check_encoding|convert_(case|encoding|kana|variables)|internal_encoding|output_handler|decode_(numericentity|mimeheader)|detect_(encoding|order)|parse_str|preferred_mime_name|encoding_aliases|encode_(numericentity|mimeheader)|ereg(i(_replace)?)?|ereg_(search(_(get(pos|regs)|init|regs|(set)?pos))?|replace(_callback)?|match)|list_encodings|language|regex_(set_options|encoding)|get_info|[lr]?trim|[lu]cfirst|ord|chr|scrub)\\\\b","name":"support.function.mbstring.php"},{"match":"(?i)\\\\b(m(?:crypt_(cfb|create_iv|cbc|ofb|decrypt|encrypt|ecb|list_(algorithms|modes)|generic(_((de)?init|end))?|enc_(self_test|is_block_(algorithm|algorithm_mode|mode)|get_(supported_key_sizes|(block|iv|key)_size|(algorithms|modes)_name))|get_(cipher_name|(block|iv|key)_size)|module_(close|self_test|is_block_(algorithm|algorithm_mode|mode)|open|get_(supported_key_sizes|algo_(block|key)_size)))|decrypt_generic))\\\\b","name":"support.function.mcrypt.php"},{"match":"(?i)\\\\bmemcache_debug\\\\b","name":"support.function.memcache.php"},{"match":"(?i)\\\\bmhash(_(count|keygen_s2k|get_(hash_name|block_size)))?\\\\b","name":"support.function.mhash.php"},{"match":"(?i)\\\\b(log_(cmd_(insert|delete|update)|killcursor|write_batch|reply|getmore)|bson_((?:de|en)code))\\\\b","name":"support.function.mongo.php"},{"match":"(?i)\\\\bmysql_(stat|set_charset|select_db|num_(fields|rows)|connect|client_encoding|close|create_db|escape_string|thread_id|tablename|insert_id|info|data_seek|drop_db|db_(name|query)|unbuffered_query|pconnect|ping|errno|error|query|field_(seek|name|type|table|flags|len)|fetch_(object|field|lengths|assoc|array|row)|free_result|list_(tables|dbs|processes|fields)|affected_rows|result|real_escape_string|get_(client|host|proto|server)_info)\\\\b","name":"support.function.mysql.php"},{"match":"(?i)\\\\bmysqli_(ssl_set|store_result|stat|send_(query|long_data)|set_(charset|opt|local_infile_(default|handler))|stmt_(store_result|send_long_data|next_result|close|init|data_seek|prepare|execute|fetch|free_result|attr_[gs]et|result_metadata|reset|get_(result|warnings)|more_results|bind_(param|result))|select_db|slave_query|savepoint|next_result|change_user|character_set_name|connect|commit|client_encoding|close|thread_safe|init|options|((?:en|dis)able)_(r(?:eads_from_master|pl_parse))|dump_debug_info|debug|data_seek|use_result|ping|poll|param_count|prepare|escape_string|execute|embedded_server_(start|end)|kill|query|field_seek|free_result|autocommit|rollback|report|refresh|fetch(_(object|fields|field(_direct)?|assoc|all|array|row))?|rpl_(parse_enabled|probe|query_type)|release_savepoint|reap_async_query|real_(connect|escape_string|query)|more_results|multi_query|get_(charset|connection_stats|client_(stats|info|version)|cache_stats|warnings|links_stats|metadata)|master_query|bind_(param|result)|begin_transaction)\\\\b","name":"support.function.mysqli.php"},{"match":"(?i)\\\\bmysqlnd_memcache_(set|get_config)\\\\b","name":"support.function.mysqlnd-memcache.php"},{"match":"(?i)\\\\bmysqlnd_ms_(set_(user_pick_server|qos)|dump_servers|query_is_select|fabric_select_(shard|global)|get_(stats|last_(used_connection|gtid))|xa_(commit|rollback|gc|begin)|match_wild)\\\\b","name":"support.function.mysqlnd-ms.php"},{"match":"(?i)\\\\bmysqlnd_qc_(set_(storage_handler|cache_condition|is_select|user_handlers)|clear_cache|get_(normalized_query_trace_log|core_stats|cache_info|query_trace_log|available_handlers))\\\\b","name":"support.function.mysqlnd-qc.php"},{"match":"(?i)\\\\bmysqlnd_uh_(set_(statement|connection)_proxy|convert_to_mysqlnd)\\\\b","name":"support.function.mysqlnd-uh.php"},{"match":"(?i)\\\\b(syslog|socket_(set_(blocking|timeout)|get_status)|set(raw)?cookie|http_response_code|openlog|headers_(list|sent)|header(_(re(?:gister_callback|move)))?|checkdnsrr|closelog|inet_(ntop|pton)|ip2long|openlog|dns_(check_record|get_(record|mx))|define_syslog_variables|(p)?fsockopen|long2ip|get(servby(name|port)|host(name|by(name(l)?|addr))|protoby(n(?:ame|umber))|mxrr)|http_(clear|get)_last_response_headers|net_get_interfaces|request_parse_body)\\\\b","name":"support.function.network.php"},{"match":"(?i)\\\\bnsapi_(virtual|response_headers|request_headers)\\\\b","name":"support.function.nsapi.php"},{"match":"(?i)\\\\b(oci(?:(statementtype|setprefetch|serverversion|savelob(file)?|numcols|new(collection|cursor|descriptor)|nlogon|column(scale|size|name|type(raw)?|isnull|precision)|coll(size|trim|assign(elem)?|append|getelem|max)|commit|closelob|cancel|internaldebug|definebyname|plogon|parse|error|execute|fetch(statement|into)?|free(statement|collection|cursor|desc)|write(temporarylob|lobtofile)|loadlob|log(o(?:n|ff))|rowcount|rollback|result|bindbyname)|_(statement_type|set_(client_(i(?:nfo|dentifier))|prefetch|edition|action|module_name)|server_version|num_(fields|rows)|new_(connect|collection|cursor|descriptor)|connect|commit|client_version|close|cancel|internal_debug|define_by_name|pconnect|password_change|parse|error|execute|bind_(array_)?by_name|field_(scale|size|name|type(_raw)?|is_null|precision)|fetch(_(object|assoc|all|array|row))?|free_(statement|descriptor)|lob_(copy|is_equal)|rollback|result|get_implicit_resultset)))\\\\b","name":"support.function.oci8.php"},{"match":"(?i)\\\\bopcache_(compile_file|invalidate|is_script_cached|reset|get_(status|configuration))\\\\b","name":"support.function.opcache.php"},{"match":"(?i)\\\\bopenssl_(sign|spki_(new|export(_challenge)?|verify)|seal|csr_(sign|new|export(_to_file)?|get_(subject|public_key))|cipher_(iv|key)_length|open|dh_compute_key|digest|decrypt|public_((?:de|en)crypt)|encrypt|error_string|pkcs12_(export(_to_file)?|read)|(cms|pkcs7)_(sign|decrypt|encrypt|verify|read)|verify|free_key|random_pseudo_bytes|pkey_(derive|new|export(_to_file)?|free|get_(details|public|private))|private_((?:de|en)crypt)|pbkdf2|get_((cipher|md)_methods|cert_locations|curve_names|(p(?:ublic|rivate))key)|x509_(check_private_key|checkpurpose|parse|export(_to_file)?|fingerprint|free|read|verify))\\\\b","name":"support.function.openssl.php"},{"match":"(?i)\\\\b(output_(add_rewrite_var|reset_rewrite_vars)|flush|ob_(start|clean|implicit_flush|end_(clean|flush)|flush|list_handlers|gzhandler|get_(status|contents|clean|flush|length|level)))\\\\b","name":"support.function.output.php"},{"match":"(?i)\\\\bpassword_(algos|hash|needs_rehash|verify|get_info)\\\\b","name":"support.function.password.php"},{"match":"(?i)\\\\bpcntl_(alarm|async_signals|errno|exec|r?fork|get_last_error|[gs]et((?:cpuaffin|prior)ity)|signal(_(dispatch|get_handler))?|sig(procmask|timedwait|waitinfo)|strerror|unshare|wait(p?id)?|wexitstatus|wif((?:exit|signal|stopp)ed)|w(stop|term)sig)\\\\b","name":"support.function.pcntl.php"},{"match":"(?i)\\\\bpg_(socket|send_(prepare|execute|query(_params)?)|set_(client_encoding|error_verbosity)|select|host|num_(fields|rows)|consume_input|connection_(status|reset|busy)|connect(_poll)?|convert|copy_(from|to)|client_encoding|close|cancel_query|tty|transaction_status|trace|insert|options|delete|dbname|untrace|unescape_bytea|update|pconnect|ping|port|put_line|parameter_status|prepare|version|query(_params)?|escape_(string|identifier|literal|bytea)|end_copy|execute|flush|free_result|last_(notice|error|oid)|field_(size|num|name|type(_oid)?|table|is_null|prtlen)|affected_rows|result_(status|seek|error(_field)?)|fetch_(object|assoc|all(_columns)?|array|row|result)|get_(notify|pid|result)|meta_data|lo_(seek|close|create|tell|truncate|import|open|unlink|export|write|read(_all)?)|)\\\\b","name":"support.function.pgsql.php"},{"match":"(?i)\\\\b(virtual|getallheaders|apache_([gs]etenv|note|child_terminate|lookup_uri|response_headers|reset_timeout|request_headers|get_(version|modules)))\\\\b","name":"support.function.php_apache.php"},{"match":"(?i)\\\\bdom_import_simplexml\\\\b","name":"support.function.php_dom.php"},{"match":"(?i)\\\\bftp_(ssl_connect|systype|site|size|set_option|nlist|nb_(continue|f?(put|get))|ch(dir|mod)|connect|cdup|close|delete|put|pwd|pasv|exec|quit|f(put|get)|login|alloc|rename|raw(list)?|rmdir|get(_option)?|mdtm|mkdir)\\\\b","name":"support.function.php_ftp.php"},{"match":"(?i)\\\\bimap_((create|delete|list|rename|scan)(mailbox)?|status|sort|subscribe|set_quota|set(flag_full|acl)|search|savebody|num_(recent|msg)|check|close|clearflag_full|thread|timeout|open|header(info)?|headers|append|alerts|reopen|8bit|unsubscribe|undelete|utf7_((?:de|en)code)|utf8|uid|ping|errors|expunge|qprint|gc|fetch(structure|header|text|mime|body)|fetch_overview|lsub|list(s(?:can|ubscribed))|last_error|rfc822_(parse_(headers|adrlist)|write_address)|get(subscribed|acl|mailboxes)|get_quota(root)?|msgno|mime_header_decode|mail_(copy|compose|move)|mail|mailboxmsginfo|binary|body(struct)?|base64)\\\\b","name":"support.function.php_imap.php"},{"match":"(?i)\\\\bmssql_(select_db|num_(fields|rows)|next_result|connect|close|init|data_seek|pconnect|execute|query|field_(seek|name|type|length)|fetch_(object|field|assoc|array|row|batch)|free_(statement|result)|rows_affected|result|guid_string|get_last_message|min_(error|message)_severity|bind)\\\\b","name":"support.function.php_mssql.php"},{"match":"(?i)\\\\bodbc_(statistics|specialcolumns|setoption|num_(fields|rows)|next_result|connect|columns|columnprivileges|commit|cursor|close(_all)?|tables|tableprivileges|do|data_source|pconnect|primarykeys|procedures|procedurecolumns|prepare|error(msg)?|exec(ute)?|field_(scale|num|name|type|precision|len)|foreignkeys|free_result|fetch_(into|object|array|row)|longreadlen|autocommit|rollback|result(_all)?|gettypeinfo|binmode)\\\\b","name":"support.function.php_odbc.php"},{"match":"(?i)\\\\bpreg_(split|quote|filter|last_error(_msg)?|replace(_callback(_array)?)?|grep|match(_all)?)\\\\b","name":"support.function.php_pcre.php"},{"match":"(?i)\\\\b(spl_(classes|object_hash|autoload(_(call|unregister|extensions|functions|register))?)|class_(implements|uses|parents)|iterator_(count|to_array|apply))\\\\b","name":"support.function.php_spl.php"},{"match":"(?i)\\\\bzip_(close|open|entry_(name|compressionmethod|compressedsize|close|open|filesize|read)|read)\\\\b","name":"support.function.php_zip.php"},{"match":"(?i)\\\\bposix_(strerror|set(s|e?u|[ep]?g)id|ctermid|ttyname|times|isatty|initgroups|uname|errno|kill|e?access|get(sid|cwd|uid|pid|ppid|pwnam|pwuid|pgid|pgrp|euid|egid|login|rlimit|gid|grnam|groups|grgid)|get_last_error|mknod|mkfifo|(sys|f?path)conf|setrlimit)\\\\b","name":"support.function.posix.php"},{"match":"(?i)\\\\bset(thread|proc)title\\\\b","name":"support.function.proctitle.php"},{"match":"(?i)\\\\bpspell_(store_replacement|suggest|save_wordlist|new(_(config|personal))?|check|clear_session|config_(save_repl|create|ignore|(d(?:ata|ict))_dir|personal|runtogether|repl|mode)|add_to_(session|personal))\\\\b","name":"support.function.pspell.php"},{"match":"(?i)\\\\breadline(_(completion_function|clear_history|callback_(handler_(install|remove)|read_char)|info|on_new_line|write_history|list_history|add_history|redisplay|read_history))?\\\\b","name":"support.function.readline.php"},{"match":"(?i)\\\\brecode(_(string|file))?\\\\b","name":"support.function.recode.php"},{"match":"(?i)\\\\brrd(c_disconnect|_(create|tune|info|update|error|version|first|fetch|last(update)?|restore|graph|xport))\\\\b","name":"support.function.rrd.php"},{"match":"(?i)\\\\b(shm_((get|has|remove|put)_var|detach|attach|remove)|sem_(acquire|release|remove|get)|ftok|msg_((get|remove|set|stat)_queue|send|queue_exists|receive))\\\\b","name":"support.function.sem.php"},{"match":"(?i)\\\\bsession_(status|start|set_(save_handler|cookie_params)|save_path|name|commit|cache_(expire|limiter)|is_registered|id|destroy|decode|unset|unregister|encode|write_close|abort|reset|register(_shutdown)?|((?:regener|cre)ate)_id|get_cookie_params|module_name|gc)\\\\b","name":"support.function.session.php"},{"match":"(?i)\\\\bshmop_(size|close|open|delete|write|read)\\\\b","name":"support.function.shmop.php"},{"match":"(?i)\\\\bsimplexml_(import_dom|load_(string|file))\\\\b","name":"support.function.simplexml.php"},{"match":"(?i)\\\\b(snmp(?:(walk(oid)?|realwalk|get(next)?|set)|_(set_(valueretrieval|quick_print|enum_print|oid_(numeric_print|output_format))|read_mib|get_(valueretrieval|quick_print))|[23]_(set|walk|real_walk|get(next)?)))\\\\b","name":"support.function.snmp.php"},{"match":"(?i)\\\\b(is_soap_fault|use_soap_error_handler)\\\\b","name":"support.function.soap.php"},{"match":"(?i)\\\\bsocket_(accept|addrinfo_(bind|connect|explain|lookup)|atmark|bind|(clear|last)_error|close|cmsg_space|connect|create(_(listen|pair))?|(ex|im)port_stream|[gs]et_option|[gs]etopt|get(peer|sock)name|listen|read|recv(from|msg)?|select|send(msg|to)?|set_(non)?block|shutdown|strerror|write|wsaprotocol_info_(export|import|release))\\\\b","name":"support.function.sockets.php"},{"match":"(?i)\\\\bsqlite_(single_query|seek|has_(more|prev)|num_(fields|rows)|next|changes|column|current|close|create_(aggregate|function)|open|unbuffered_query|udf_((?:de|en)code)_binary|popen|prev|escape_string|error_string|exec|valid|key|query|field_name|factory|fetch_(string|single|column_types|object|all|array)|lib(encoding|version)|last_(insert_rowid|error)|array_query|rewind|busy_timeout)\\\\b","name":"support.function.sqlite.php"},{"match":"(?i)\\\\bsqlsrv_(send_stream_data|server_info|has_rows|num_(fields|rows)|next_result|connect|configure|commit|client_info|close|cancel|prepare|errors|execute|query|field_metadata|fetch(_(array|object))?|free_stmt|rows_affected|rollback|get_(config|field)|begin_transaction)\\\\b","name":"support.function.sqlsrv.php"},{"match":"(?i)\\\\bstats_(harmonic_mean|covariance|standard_deviation|skew|cdf_(noncentral_(chisquare|f)|negative_binomial|chisquare|cauchy|t|uniform|poisson|exponential|f|weibull|logistic|laplace|gamma|binomial|beta)|stat_(noncentral_t|correlation|innerproduct|independent_t|powersum|percentile|paired_t|gennch|binomial_coef)|dens_(normal|negative_binomial|chisquare|cauchy|t|pmf_(hypergeometric|poisson|binomial)|exponential|f|weibull|logistic|laplace|gamma|beta)|den_uniform|variance|kurtosis|absolute_deviation|rand_(setall|phrase_to_seeds|ranf|get_seeds|gen_(noncentral_[ft]|noncenral_chisquare|normal|chisquare|t|int|i(uniform|poisson|binomial(_negative)?)|exponential|f(uniform)?|gamma|beta)))\\\\b","name":"support.function.stats.php"},{"match":"(?i)\\\\bstream_(bucket_(new|prepend|append|make_writeable)|context_(create|[gs]et_(options?|default|params))|copy_to_stream|filter_((ap|pre)pend|register|remove)|get_(contents|filters|line|meta_data|transports|wrappers)|is(atty|_local)|notification_callback|register_wrapper|resolve_include_path|select|set_(blocking|chunk_size|(read|write)_buffer|timeout)|socket_(accept|client|enable_crypto|get_name|pair|recvfrom|sendto|server|shutdown)|supports_lock|wrapper_((un)?register|restore))\\\\b","name":"support.function.streamsfuncs.php"},{"match":"(?i)\\\\b(money_format|md5(_file)?|metaphone|bin2hex|sscanf|sha1(_file)?|str(str|c?spn|n(at)?(case)?cmp|chr|coll|(case)?cmp|to(upper|lower)|tok|tr|istr|pos|pbrk|len|rchr|ri?pos|rev)|str_(getcsv|i?replace|pad|repeat|rot13|shuffle|split|word_count|contains|(starts|ends)_with|(in|de)crement)|strip(c?slashes|os)|strip_tags|similar_text|soundex|substr(_(count|compare|replace))?|setlocale|html(specialchars(_decode)?|entities)|html_entity_decode|hex2bin|hebrev(c)?|number_format|nl2br|nl_langinfo|chop|chunk_split|chr|convert_(cyr_string|uu((?:de|en)code))|count_chars|crypt|crc32|trim|implode|ord|uc(first|words)|join|parse_str|print(f)?|echo|explode|v?[fs]?printf|quoted_printable_((?:de|en)code)|quotemeta|wordwrap|lcfirst|[lr]trim|localeconv|levenshtein|addc?slashes|get_html_translation_table)\\\\b","name":"support.function.string.php"},{"match":"(?i)\\\\bsybase_(set_message_handler|select_db|num_(fields|rows)|connect|close|deadlock_retry_count|data_seek|unbuffered_query|pconnect|query|field_seek|fetch_(object|field|assoc|array|row)|free_result|affected_rows|result|get_last_message|min_(client|error|message|server)_severity)\\\\b","name":"support.function.sybase.php"},{"match":"(?i)\\\\b(taint|is_tainted|untaint)\\\\b","name":"support.function.taint.php"},{"match":"(?i)\\\\b(tidy_([gs]etopt|set_encoding|save_config|config_count|clean_repair|is_(x(?:html|ml))|diagnose|(access|error|warning)_count|load_config|reset_config|(parse|repair)_(string|file)|get_(status|html(_ver)?|head|config|output|opt_doc|root|release|body))|ob_tidyhandler)\\\\b","name":"support.function.tidy.php"},{"match":"(?i)\\\\btoken_(name|get_all)\\\\b","name":"support.function.tokenizer.php"},{"match":"(?i)\\\\btrader_(stoch([fr]|rsi)?|stddev|sin(h)?|sum|sub|set_(compat|unstable_period)|sqrt|sar(ext)?|sma|ht_(sine|trend(line|mode)|dc(p(?:eriod|hase))|phasor)|natr|cci|cos(h)?|correl|cdl(shootingstar|shortline|sticksandwich|stalledpattern|spinningtop|separatinglines|hikkake(mod)?|highwave|homingpigeon|hangingman|harami(cross)?|hammer|concealbabyswall|counterattack|closingmarubozu|thrusting|tasukigap|takuri|tristar|inneck|invertedhammer|identical3crows|2crows|onneck|doji(star)?|darkcloudcover|dragonflydoji|unique3river|upsidegap2crows|3(starsinsouth|inside|outside|whitesoldiers|linestrike|blackcrows)|piercing|engulfing|evening(doji)?star|kicking(bylength)?|longline|longleggeddoji|ladderbottom|advanceblock|abandonedbaby|risefall3methods|rickshawman|gapsidesidewhite|gravestonedoji|xsidegap3methods|morning(doji)?star|mathold|matchinglow|marubozu|belthold|breakaway)|ceil|cmo|tsf|typprice|t3|tema|tan(h)?|trix|trima|trange|obv|div|dema|dx|ultosc|ppo|plus_d[im]|errno|exp|ema|var|kama|floor|wclprice|willr|wma|ln|log10|bop|beta|bbands|linearreg(_(slope|intercept|angle))?|asin|acos|atan|atr|adosc|add??|adx(r)?|apo|avgprice|aroon(osc)?|rsi|rocp??|rocr(100)?|get_(compat|unstable_period)|min(index)?|minus_d[im]|minmax(index)?|mid(p(?:oint|rice))|mom|mult|medprice|mfi|macd(ext|fix)?|mavp|max(index)?|ma(ma)?)\\\\b","name":"support.function.trader.php"},{"match":"(?i)\\\\buopz_(copy|compose|implement|overload|delete|undefine|extend|function|flags|restore|rename|redefine|backup)\\\\b","name":"support.function.uopz.php"},{"match":"(?i)\\\\b(http_build_query|(raw)?url((?:de|en)code)|parse_url|get_(headers|meta_tags)|base64_((?:de|en)code))\\\\b","name":"support.function.url.php"},{"match":"(?i)\\\\b((bool|double|float|int|str)val|debug_zval_dump|empty|get_(debug_type|defined_vars|resource_(id|type))|[gs]ettype|is_(array|bool|callable|countable|double|float|int(eger)?|iterable|long|null|numeric|object|real|resource|scalar|string)|isset|print_r|(un)?serialize|unset|var_(dump|export))\\\\b","name":"support.function.var.php"},{"match":"(?i)\\\\bwddx_(serialize_(va(?:lue|rs))|deserialize|packet_(start|end)|add_vars)\\\\b","name":"support.function.wddx.php"},{"match":"(?i)\\\\bxhprof_(sample_)?((?:dis|en)able)\\\\b","name":"support.function.xhprof.php"},{"match":"(?i)\\\\b(utf8_((?:de|en)code)|xml_(set_((notation|(end|start)_namespace|unparsed_entity)_decl_handler|(character_data|default|element|external_entity_ref|processing_instruction)_handler|object)|parse(_into_struct)?|parser_([gs]et_option|create(_ns)?|free)|error_string|get_(current_((column|line)_number|byte_index)|error_code)))\\\\b","name":"support.function.xml.php"},{"match":"(?i)\\\\bxmlrpc_(server_(call_method|create|destroy|add_introspection_data|register_(introspection_callback|method))|is_fault|decode(_request)?|parse_method_descriptions|encode(_request)?|[gs]et_type)\\\\b","name":"support.function.xmlrpc.php"},{"match":"(?i)\\\\bxmlwriter_((end|start|write)_(comment|cdata|dtd(_(attlist|entity|element))?|document|pi|attribute|element)|(start|write)_(attribute|element)_ns|write_raw|set_indent(_string)?|text|output_memory|open_(memory|uri)|full_end_element|flush|)\\\\b","name":"support.function.xmlwriter.php"},{"match":"(?i)\\\\b(zlib_(decode|encode|get_coding_type)|readgzfile|gz(seek|compress|close|tell|inflate|open|decode|deflate|uncompress|puts|passthru|encode|eof|file|write|rewind|read|getc|getss?)|deflate_(add|init)|inflate_(add|get_(read_len|status)|init))\\\\b","name":"support.function.zlib.php"}]},"switch_statement":{"patterns":[{"match":"\\\\s+(?=switch\\\\b)"},{"begin":"\\\\bswitch\\\\b(?!\\\\s*\\\\(.*\\\\)\\\\s*:)","beginCaptures":{"0":{"name":"keyword.control.switch.php"}},"end":"}|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.section.switch-block.end.bracket.curly.php"}},"name":"meta.switch-statement.php","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.switch-expression.begin.bracket.round.php"}},"end":"\\\\)|(?=\\\\?>)","endCaptures":{"0":{"name":"punctuation.definition.switch-expression.end.bracket.round.php"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.section.switch-block.begin.bracket.curly.php"}},"end":"(?=}|\\\\?>)","patterns":[{"include":"$self"}]}]}]},"ternary_expression":{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.php"}},"end":"(?<!:):(?!:)","endCaptures":{"0":{"name":"keyword.operator.ternary.php"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"$self"}]}},"match":"(?i)^\\\\s*([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)\\\\s*(?=:(?!:))"},{"include":"$self"}]},"ternary_shorthand":{"match":"\\\\?:","name":"keyword.operator.ternary.php"},"use-inner":{"patterns":[{"include":"#comments"},{"begin":"(?i)\\\\b(as)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.use-as.php"}},"end":"(?i)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*","endCaptures":{"0":{"name":"entity.other.alias.php"}}},{"include":"#class-name"},{"match":",","name":"punctuation.separator.delimiter.php"}]},"var_basic":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(?i)(\\\\$+)[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*","name":"variable.other.php"}]},"var_global":{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(\\\\$)((_(COOKIE|FILES|GET|POST|REQUEST))|arg([cv]))\\\\b","name":"variable.other.global.php"},"var_global_safer":{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(\\\\$)((GLOBALS|_(ENV|SERVER|SESSION)))","name":"variable.other.global.safer.php"},"var_language":{"captures":{"1":{"name":"punctuation.definition.variable.php"}},"match":"(\\\\$)this\\\\b","name":"variable.language.this.php"},"variable-name":{"patterns":[{"include":"#var_global"},{"include":"#var_global_safer"},{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"punctuation.definition.variable.php"},"4":{"name":"keyword.operator.class.php"},"5":{"name":"variable.other.property.php"},"6":{"name":"punctuation.section.array.begin.php"},"7":{"name":"constant.numeric.index.php"},"8":{"name":"variable.other.index.php"},"9":{"name":"punctuation.definition.variable.php"},"10":{"name":"string.unquoted.index.php"},"11":{"name":"punctuation.section.array.end.php"}},"match":"(?i)((\\\\$)(?<name>[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*))\\\\s*(?:(\\\\??->)\\\\s*(\\\\g<name>)|(\\\\[)(?:(\\\\d+)|((\\\\$)\\\\g<name>)|([_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*))(]))?"},{"captures":{"1":{"name":"variable.other.php"},"2":{"name":"punctuation.definition.variable.php"},"4":{"name":"punctuation.definition.variable.php"}},"match":"(?i)((\\\\$\\\\{)(?<name>[_a-z\\\\x7F-\\\\x{10FFFF}][0-9_a-z\\\\x7F-\\\\x{10FFFF}]*)(}))"}]},"variables":{"patterns":[{"include":"#var_language"},{"include":"#var_global"},{"include":"#var_global_safer"},{"include":"#var_basic"},{"begin":"\\\\$\\\\{(?=.*?})","beginCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.variable.php"}},"patterns":[{"include":"$self"}]}]}},"scopeName":"source.php","embeddedLangs":["html","xml","sql","javascript","json","css"]}`)),s=[...n,...a,...i,...e,...r,...t,p];export{s as t}; diff --git a/docs/assets/pick-DeQioq0G.js b/docs/assets/pick-DeQioq0G.js new file mode 100644 index 0000000..5d65793 --- /dev/null +++ b/docs/assets/pick-DeQioq0G.js @@ -0,0 +1 @@ +import{d as m,h as s}from"./merge-BBX6ug-N.js";import{i as p,n as v}from"./get-CyLJYAfP.js";import{t as c}from"./flatten-Buk63LQO.js";import{t as e}from"./hasIn-DydgU7lx.js";import{t as d}from"./_baseSet-6FYvpjrm.js";function h(r){return s(m(r,void 0,c),r+"")}var l=h;function g(r,t,a){for(var o=-1,u=t.length,i={};++o<u;){var n=t[o],f=v(r,n);a(f,n)&&d(i,p(n,r),f)}return i}var x=g;function b(r,t){return x(r,t,function(a,o){return e(r,o)})}var j=b,k=l(function(r,t){return r==null?{}:j(r,t)});export{k as t}; diff --git a/docs/assets/pie-7BOR55EZ-C4VA6Hl_.js b/docs/assets/pie-7BOR55EZ-C4VA6Hl_.js new file mode 100644 index 0000000..fa4db33 --- /dev/null +++ b/docs/assets/pie-7BOR55EZ-C4VA6Hl_.js @@ -0,0 +1 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import{n as e}from"./chunk-T53DSG4Q-B6Z3zF7Z.js";export{e as createPieServices}; diff --git a/docs/assets/pieDiagram-ADFJNKIX-CdLCqSiS.js b/docs/assets/pieDiagram-ADFJNKIX-CdLCqSiS.js new file mode 100644 index 0000000..22477e9 --- /dev/null +++ b/docs/assets/pieDiagram-ADFJNKIX-CdLCqSiS.js @@ -0,0 +1,30 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import{n as W}from"./ordinal-_nQ2r1qQ.js";import"./purify.es-N-2faAGj.js";import"./src-Bp_72rVO.js";import{r as h}from"./path-DvTahePH.js";import{p as k}from"./math-B-ZqhQTL.js";import{t as F}from"./arc-CWuN1tfc.js";import{t as _}from"./array-CC7vZNGO.js";import{i as B,p as P}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as p,r as M}from"./src-faGJHwXX.js";import{B as L,C as V,U as j,_ as U,a as q,b as G,c as H,d as I,v as J,z as K}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as Q}from"./chunk-EXTU4WIE-GbJyzeBy.js";import"./dist-BA8xhrl2.js";import"./chunk-O7ZBX7Z2-CYcfcXcp.js";import"./chunk-S6J4BHB3-D3MBXPxT.js";import"./chunk-LBM3YZW2-CQVIMcAR.js";import"./chunk-76Q3JFCE-COngPFoW.js";import"./chunk-T53DSG4Q-B6Z3zF7Z.js";import"./chunk-LHMN2FUI-DW2iokr2.js";import"./chunk-FWNWRKHM-XgKeqUvn.js";import{t as X}from"./chunk-4BX2VUAB-B5-8Pez8.js";import{t as Y}from"./mermaid-parser.core-wRO0EX_C.js";function Z(t,a){return a<t?-1:a>t?1:a>=t?0:NaN}function tt(t){return t}function et(){var t=tt,a=Z,d=null,o=h(0),s=h(k),x=h(0);function n(e){var l,i=(e=_(e)).length,m,b,$=0,y=Array(i),u=Array(i),v=+o.apply(this,arguments),A=Math.min(k,Math.max(-k,s.apply(this,arguments)-v)),f,T=Math.min(Math.abs(A)/i,x.apply(this,arguments)),w=T*(A<0?-1:1),c;for(l=0;l<i;++l)(c=u[y[l]=l]=+t(e[l],l,e))>0&&($+=c);for(a==null?d!=null&&y.sort(function(g,S){return d(e[g],e[S])}):y.sort(function(g,S){return a(u[g],u[S])}),l=0,b=$?(A-i*w)/$:0;l<i;++l,v=f)m=y[l],c=u[m],f=v+(c>0?c*b:0)+w,u[m]={data:e[m],index:l,value:c,startAngle:v,endAngle:f,padAngle:T};return u}return n.value=function(e){return arguments.length?(t=typeof e=="function"?e:h(+e),n):t},n.sortValues=function(e){return arguments.length?(a=e,d=null,n):a},n.sort=function(e){return arguments.length?(d=e,a=null,n):d},n.startAngle=function(e){return arguments.length?(o=typeof e=="function"?e:h(+e),n):o},n.endAngle=function(e){return arguments.length?(s=typeof e=="function"?e:h(+e),n):s},n.padAngle=function(e){return arguments.length?(x=typeof e=="function"?e:h(+e),n):x},n}var R=I.pie,O={sections:new Map,showData:!1,config:R},C=O.sections,z=O.showData,at=structuredClone(R),E={getConfig:p(()=>structuredClone(at),"getConfig"),clear:p(()=>{C=new Map,z=O.showData,q()},"clear"),setDiagramTitle:j,getDiagramTitle:V,setAccTitle:L,getAccTitle:J,setAccDescription:K,getAccDescription:U,addSection:p(({label:t,value:a})=>{if(a<0)throw Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);C.has(t)||(C.set(t,a),M.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),getSections:p(()=>C,"getSections"),setShowData:p(t=>{z=t},"setShowData"),getShowData:p(()=>z,"getShowData")},rt=p((t,a)=>{X(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),it={parse:p(async t=>{let a=await Y("pie",t);M.debug(a),rt(a,E)},"parse")},lt=p(t=>` + .pieCircle{ + stroke: ${t.pieStrokeColor}; + stroke-width : ${t.pieStrokeWidth}; + opacity : ${t.pieOpacity}; + } + .pieOuterCircle{ + stroke: ${t.pieOuterStrokeColor}; + stroke-width: ${t.pieOuterStrokeWidth}; + fill: none; + } + .pieTitleText { + text-anchor: middle; + font-size: ${t.pieTitleTextSize}; + fill: ${t.pieTitleTextColor}; + font-family: ${t.fontFamily}; + } + .slice { + font-family: ${t.fontFamily}; + fill: ${t.pieSectionTextColor}; + font-size:${t.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${t.pieLegendTextColor}; + font-family: ${t.fontFamily}; + font-size: ${t.pieLegendTextSize}; + } +`,"getStyles"),nt=p(t=>{let a=[...t.values()].reduce((o,s)=>o+s,0),d=[...t.entries()].map(([o,s])=>({label:o,value:s})).filter(o=>o.value/a*100>=1).sort((o,s)=>s.value-o.value);return et().value(o=>o.value)(d)},"createPieArcs"),ot={parser:it,db:E,renderer:{draw:p((t,a,d,o)=>{M.debug(`rendering pie chart +`+t);let s=o.db,x=G(),n=B(s.getConfig(),x.pie),e=Q(a),l=e.append("g");l.attr("transform","translate(225,225)");let{themeVariables:i}=x,[m]=P(i.pieOuterStrokeWidth);m??(m=2);let b=n.textPosition,$=F().innerRadius(0).outerRadius(185),y=F().innerRadius(185*b).outerRadius(185*b);l.append("circle").attr("cx",0).attr("cy",0).attr("r",185+m/2).attr("class","pieOuterCircle");let u=s.getSections(),v=nt(u),A=[i.pie1,i.pie2,i.pie3,i.pie4,i.pie5,i.pie6,i.pie7,i.pie8,i.pie9,i.pie10,i.pie11,i.pie12],f=0;u.forEach(r=>{f+=r});let T=v.filter(r=>(r.data.value/f*100).toFixed(0)!=="0"),w=W(A);l.selectAll("mySlices").data(T).enter().append("path").attr("d",$).attr("fill",r=>w(r.data.label)).attr("class","pieCircle"),l.selectAll("mySlices").data(T).enter().append("text").text(r=>(r.data.value/f*100).toFixed(0)+"%").attr("transform",r=>"translate("+y.centroid(r)+")").style("text-anchor","middle").attr("class","slice"),l.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");let c=[...u.entries()].map(([r,D])=>({label:r,value:D})),g=l.selectAll(".legend").data(c).enter().append("g").attr("class","legend").attr("transform",(r,D)=>{let N=22*c.length/2;return"translate(216,"+(D*22-N)+")"});g.append("rect").attr("width",18).attr("height",18).style("fill",r=>w(r.label)).style("stroke",r=>w(r.label)),g.append("text").attr("x",22).attr("y",14).text(r=>s.getShowData()?`${r.label} [${r.value}]`:r.label);let S=512+Math.max(...g.selectAll("text").nodes().map(r=>(r==null?void 0:r.getBoundingClientRect().width)??0));e.attr("viewBox",`0 0 ${S} 450`),H(e,450,S,n.useMaxWidth)},"draw")},styles:lt};export{ot as diagram}; diff --git a/docs/assets/pig-DP6pbekb.js b/docs/assets/pig-DP6pbekb.js new file mode 100644 index 0000000..c5485ca --- /dev/null +++ b/docs/assets/pig-DP6pbekb.js @@ -0,0 +1 @@ +import{t as o}from"./pig-rvFhLOOE.js";export{o as pig}; diff --git a/docs/assets/pig-rvFhLOOE.js b/docs/assets/pig-rvFhLOOE.js new file mode 100644 index 0000000..c6da946 --- /dev/null +++ b/docs/assets/pig-rvFhLOOE.js @@ -0,0 +1 @@ +function R(O){for(var E={},T=O.split(" "),I=0;I<T.length;++I)E[T[I]]=!0;return E}var e="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",L="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",r="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",n=R(e),U=R(L),C=R(r),N=/[*+\-%<>=&?:\/!|]/;function G(O,E,T){return E.tokenize=T,T(O,E)}function a(O,E){for(var T=!1,I;I=O.next();){if(I=="/"&&T){E.tokenize=S;break}T=I=="*"}return"comment"}function o(O){return function(E,T){for(var I=!1,A,t=!1;(A=E.next())!=null;){if(A==O&&!I){t=!0;break}I=!I&&A=="\\"}return(t||!I)&&(T.tokenize=S),"error"}}function S(O,E){var T=O.next();return T=='"'||T=="'"?G(O,E,o(T)):/[\[\]{}\(\),;\.]/.test(T)?null:/\d/.test(T)?(O.eatWhile(/[\w\.]/),"number"):T=="/"?O.eat("*")?G(O,E,a):(O.eatWhile(N),"operator"):T=="-"?O.eat("-")?(O.skipToEnd(),"comment"):(O.eatWhile(N),"operator"):N.test(T)?(O.eatWhile(N),"operator"):(O.eatWhile(/[\w\$_]/),U&&U.propertyIsEnumerable(O.current().toUpperCase())&&!O.eat(")")&&!O.eat(".")?"keyword":n&&n.propertyIsEnumerable(O.current().toUpperCase())?"builtin":C&&C.propertyIsEnumerable(O.current().toUpperCase())?"type":"variable")}const M={name:"pig",startState:function(){return{tokenize:S,startOfLine:!0}},token:function(O,E){return O.eatSpace()?null:E.tokenize(O,E)},languageData:{autocomplete:(e+r+L).split(" ")}};export{M as t}; diff --git a/docs/assets/plastic-J2wPiZqV.js b/docs/assets/plastic-J2wPiZqV.js new file mode 100644 index 0000000..11b4e9c --- /dev/null +++ b/docs/assets/plastic-J2wPiZqV.js @@ -0,0 +1 @@ +var r=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1085FF","activityBar.background":"#21252B","activityBar.border":"#0D1117","activityBar.foreground":"#C6CCD7","activityBar.inactiveForeground":"#5F6672","activityBarBadge.background":"#E06C75","activityBarBadge.foreground":"#ffffff","breadcrumb.focusForeground":"#C6CCD7","breadcrumb.foreground":"#5F6672","button.background":"#E06C75","button.foreground":"#ffffff","button.hoverBackground":"#E48189","button.secondaryBackground":"#0D1117","button.secondaryForeground":"#ffffff","checkbox.background":"#61AFEF","checkbox.foreground":"#ffffff","contrastBorder":"#0D1117","debugToolBar.background":"#181A1F","diffEditor.border":"#0D1117","diffEditor.diagonalFill":"#0D1117","diffEditor.insertedLineBackground":"#CBF6AC0D","diffEditor.insertedTextBackground":"#CBF6AC1A","diffEditor.removedLineBackground":"#FF9FA80D","diffEditor.removedTextBackground":"#FF9FA81A","dropdown.background":"#181A1F","dropdown.border":"#0D1117","editor.background":"#21252B","editor.findMatchBackground":"#00000000","editor.findMatchBorder":"#1085FF","editor.findMatchHighlightBackground":"#00000000","editor.findMatchHighlightBorder":"#C6CCD7","editor.foreground":"#A9B2C3","editor.lineHighlightBackground":"#A9B2C31A","editor.lineHighlightBorder":"#00000000","editor.linkedEditingBackground":"#0D1117","editor.rangeHighlightBorder":"#C6CCD7","editor.selectionBackground":"#A9B2C333","editor.selectionHighlightBackground":"#A9B2C31A","editor.selectionHighlightBorder":"#C6CCD7","editor.wordHighlightBackground":"#00000000","editor.wordHighlightBorder":"#1085FF","editor.wordHighlightStrongBackground":"#00000000","editor.wordHighlightStrongBorder":"#1085FF","editorBracketHighlight.foreground1":"#A9B2C3","editorBracketHighlight.foreground2":"#61AFEF","editorBracketHighlight.foreground3":"#E5C07B","editorBracketHighlight.foreground4":"#E06C75","editorBracketHighlight.foreground5":"#98C379","editorBracketHighlight.foreground6":"#B57EDC","editorBracketHighlight.unexpectedBracket.foreground":"#D74E42","editorBracketMatch.background":"#00000000","editorBracketMatch.border":"#1085FF","editorCursor.foreground":"#A9B2C3","editorError.foreground":"#D74E42","editorGroup.border":"#0D1117","editorGroup.emptyBackground":"#181A1F","editorGroupHeader.tabsBackground":"#181A1F","editorGutter.addedBackground":"#98C379","editorGutter.deletedBackground":"#E06C75","editorGutter.modifiedBackground":"#D19A66","editorHoverWidget.background":"#181A1F","editorHoverWidget.border":"#1085FF","editorIndentGuide.activeBackground":"#A9B2C333","editorIndentGuide.background":"#0D1117","editorInfo.foreground":"#1085FF","editorInlayHint.background":"#00000000","editorInlayHint.foreground":"#5F6672","editorLightBulb.foreground":"#E9D16C","editorLightBulbAutoFix.foreground":"#1085FF","editorLineNumber.activeForeground":"#C6CCD7","editorLineNumber.foreground":"#5F6672","editorOverviewRuler.addedForeground":"#98C379","editorOverviewRuler.border":"#0D1117","editorOverviewRuler.deletedForeground":"#E06C75","editorOverviewRuler.errorForeground":"#D74E42","editorOverviewRuler.findMatchForeground":"#1085FF","editorOverviewRuler.infoForeground":"#1085FF","editorOverviewRuler.modifiedForeground":"#D19A66","editorOverviewRuler.warningForeground":"#E9D16C","editorRuler.foreground":"#0D1117","editorStickyScroll.background":"#181A1F","editorStickyScrollHover.background":"#21252B","editorSuggestWidget.background":"#181A1F","editorSuggestWidget.border":"#1085FF","editorSuggestWidget.selectedBackground":"#A9B2C31A","editorWarning.foreground":"#E9D16C","editorWhitespace.foreground":"#A9B2C31A","editorWidget.background":"#181A1F","errorForeground":"#D74E42","focusBorder":"#1085FF","gitDecoration.deletedResourceForeground":"#E06C75","gitDecoration.ignoredResourceForeground":"#5F6672","gitDecoration.modifiedResourceForeground":"#D19A66","gitDecoration.untrackedResourceForeground":"#98C379","input.background":"#0D1117","inputOption.activeBorder":"#1085FF","inputValidation.errorBackground":"#D74E42","inputValidation.errorBorder":"#D74E42","inputValidation.infoBackground":"#1085FF","inputValidation.infoBorder":"#1085FF","inputValidation.infoForeground":"#0D1117","inputValidation.warningBackground":"#E9D16C","inputValidation.warningBorder":"#E9D16C","inputValidation.warningForeground":"#0D1117","list.activeSelectionBackground":"#A9B2C333","list.activeSelectionForeground":"#ffffff","list.errorForeground":"#D74E42","list.focusBackground":"#A9B2C333","list.hoverBackground":"#A9B2C31A","list.inactiveFocusOutline":"#5F6672","list.inactiveSelectionBackground":"#A9B2C333","list.inactiveSelectionForeground":"#C6CCD7","list.warningForeground":"#E9D16C","minimap.findMatchHighlight":"#1085FF","minimap.selectionHighlight":"#C6CCD7","minimapGutter.addedBackground":"#98C379","minimapGutter.deletedBackground":"#E06C75","minimapGutter.modifiedBackground":"#D19A66","notificationCenter.border":"#0D1117","notificationCenterHeader.background":"#181A1F","notificationToast.border":"#0D1117","notifications.background":"#181A1F","notifications.border":"#0D1117","panel.background":"#181A1F","panel.border":"#0D1117","panelTitle.inactiveForeground":"#5F6672","peekView.border":"#1085FF","peekViewEditor.background":"#181A1F","peekViewEditor.matchHighlightBackground":"#A9B2C333","peekViewResult.background":"#181A1F","peekViewResult.matchHighlightBackground":"#A9B2C333","peekViewResult.selectionBackground":"#A9B2C31A","peekViewResult.selectionForeground":"#C6CCD7","peekViewTitle.background":"#181A1F","sash.hoverBorder":"#A9B2C333","scrollbar.shadow":"#00000000","scrollbarSlider.activeBackground":"#A9B2C333","scrollbarSlider.background":"#A9B2C31A","scrollbarSlider.hoverBackground":"#A9B2C333","sideBar.background":"#181A1F","sideBar.border":"#0D1117","sideBar.foreground":"#C6CCD7","sideBarSectionHeader.background":"#21252B","statusBar.background":"#21252B","statusBar.border":"#0D1117","statusBar.debuggingBackground":"#21252B","statusBar.debuggingBorder":"#56B6C2","statusBar.debuggingForeground":"#A9B2C3","statusBar.focusBorder":"#A9B2C3","statusBar.foreground":"#A9B2C3","statusBar.noFolderBackground":"#181A1F","statusBarItem.activeBackground":"#0D1117","statusBarItem.errorBackground":"#21252B","statusBarItem.errorForeground":"#D74E42","statusBarItem.focusBorder":"#A9B2C3","statusBarItem.hoverBackground":"#181A1F","statusBarItem.hoverForeground":"#A9B2C3","statusBarItem.remoteBackground":"#21252B","statusBarItem.remoteForeground":"#B57EDC","statusBarItem.warningBackground":"#21252B","statusBarItem.warningForeground":"#E9D16C","tab.activeBackground":"#21252B","tab.activeBorderTop":"#1085FF","tab.activeForeground":"#C6CCD7","tab.border":"#0D1117","tab.inactiveBackground":"#181A1F","tab.inactiveForeground":"#5F6672","tab.lastPinnedBorder":"#A9B2C333","terminal.ansiBlack":"#5F6672","terminal.ansiBlue":"#61AFEF","terminal.ansiBrightBlack":"#5F6672","terminal.ansiBrightBlue":"#61AFEF","terminal.ansiBrightCyan":"#56B6C2","terminal.ansiBrightGreen":"#98C379","terminal.ansiBrightMagenta":"#B57EDC","terminal.ansiBrightRed":"#E06C75","terminal.ansiBrightWhite":"#A9B2C3","terminal.ansiBrightYellow":"#E5C07B","terminal.ansiCyan":"#56B6C2","terminal.ansiGreen":"#98C379","terminal.ansiMagenta":"#B57EDC","terminal.ansiRed":"#E06C75","terminal.ansiWhite":"#A9B2C3","terminal.ansiYellow":"#E5C07B","terminal.foreground":"#A9B2C3","titleBar.activeBackground":"#21252B","titleBar.activeForeground":"#C6CCD7","titleBar.border":"#0D1117","titleBar.inactiveBackground":"#21252B","titleBar.inactiveForeground":"#5F6672","toolbar.hoverBackground":"#A9B2C333","widget.shadow":"#00000000"},"displayName":"Plastic","name":"plastic","semanticHighlighting":true,"semanticTokenColors":{},"tokenColors":[{"scope":["comment","punctuation.definition.comment","source.diff"],"settings":{"foreground":"#5F6672"}},{"scope":["entity.name.function","support.function","meta.diff.range","punctuation.definition.range.diff"],"settings":{"foreground":"#B57EDC"}},{"scope":["keyword","punctuation.definition.keyword","variable.language","markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted","punctuation.definition.from-file.diff"],"settings":{"foreground":"#E06C75"}},{"scope":["constant","support.constant"],"settings":{"foreground":"#56B6C2"}},{"scope":["storage","support.class","entity.name.namespace","meta.diff.header"],"settings":{"foreground":"#61AFEF"}},{"scope":["markup.inline.raw.string","string","markup.inserted","punctuation.definition.inserted","meta.diff.header.to-file","punctuation.definition.to-file.diff"],"settings":{"foreground":"#98C379"}},{"scope":["entity.name.section","entity.name.tag","entity.name.type","support.type"],"settings":{"foreground":"#E5C07B"}},{"scope":["support.type.property-name","support.variable","variable"],"settings":{"foreground":"#C6CCD7"}},{"scope":["entity.other","punctuation.definition.entity","support.other"],"settings":{"foreground":"#D19A66"}},{"scope":["meta.brace","punctuation"],"settings":{"foreground":"#A9B2C3"}},{"scope":["markup.bold","punctuation.definition.bold","entity.other.attribute-name.id"],"settings":{"fontStyle":"bold"}},{"scope":["comment","markup.italic","punctuation.definition.italic"],"settings":{"fontStyle":"italic"}}],"type":"dark"}'));export{r as default}; diff --git a/docs/assets/play-BJDBXApx.js b/docs/assets/play-BJDBXApx.js new file mode 100644 index 0000000..501f81c --- /dev/null +++ b/docs/assets/play-BJDBXApx.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),e=a("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);export{t as n,e as t}; diff --git a/docs/assets/plsql-kUpHrBht.js b/docs/assets/plsql-kUpHrBht.js new file mode 100644 index 0000000..5fabc52 --- /dev/null +++ b/docs/assets/plsql-kUpHrBht.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"PL/SQL","fileTypes":["sql","ddl","dml","pkh","pks","pkb","pck","pls","plb"],"foldingStartMarker":"(?i)^\\\\s*(begin|if|loop)\\\\b","foldingStopMarker":"(?i)^\\\\s*(end)\\\\b","name":"plsql","patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.oracle"},{"match":"--.*$","name":"comment.line.double-dash.oracle"},{"match":"(?i)^\\\\s*rem\\\\s+.*$","name":"comment.line.sqlplus.oracle"},{"match":"(?i)^\\\\s*prompt\\\\s+.*$","name":"comment.line.sqlplus-prompt.oracle"},{"captures":{"1":{"name":"keyword.other.oracle"},"2":{"name":"keyword.other.oracle"}},"match":"(?i)^\\\\s*(create)(\\\\s+or\\\\s+replace)?\\\\s+","name":"meta.create.oracle"},{"captures":{"1":{"name":"keyword.other.oracle"},"2":{"name":"keyword.other.oracle"},"3":{"name":"entity.name.type.oracle"}},"match":"(?i)\\\\b(package)(\\\\s+body)?\\\\s+(\\\\S+)","name":"meta.package.oracle"},{"captures":{"1":{"name":"keyword.other.oracle"},"2":{"name":"entity.name.type.oracle"}},"match":"(?i)\\\\b(type)\\\\s+\\"([^\\"]+)\\"","name":"meta.type.oracle"},{"captures":{"1":{"name":"keyword.other.oracle"},"2":{"name":"entity.name.function.oracle"}},"match":"(?i)^\\\\s*(function|procedure)\\\\s+\\"?([-0-9_a-z]+)\\"?","name":"meta.procedure.oracle"},{"match":"[!:<>]?=|<>|[+<>]|(?<!\\\\.)\\\\*|-|(?<!^)/|\\\\|\\\\|","name":"keyword.operator.oracle"},{"match":"(?i)\\\\b(true|false|null|is\\\\s+(not\\\\s+)?null)\\\\b","name":"constant.language.oracle"},{"match":"\\\\b\\\\d+(\\\\.\\\\d+)?\\\\b","name":"constant.numeric.oracle"},{"match":"(?i)\\\\b(if|elsif|else|end\\\\s+if|loop|end\\\\s+loop|for|while|case|end\\\\s+case|continue|return|goto)\\\\b","name":"keyword.control.oracle"},{"match":"(?i)\\\\b(or|and|not|like)\\\\b","name":"keyword.other.oracle"},{"match":"(?i)\\\\b(%(isopen|found|notfound|rowcount)|commit|rollback|sqlerrm)\\\\b","name":"support.function.oracle"},{"match":"(?i)\\\\b(sql(?:|code))\\\\b","name":"variable.language.oracle"},{"match":"(?i)\\\\b(ascii|asciistr|chr|compose|concat|convert|decompose|dump|initcap|instrb??|instrc|instr2|instr4|unistr|lengthb??|lengthc|length2|length4|lower|lpad|ltrim|nchr|replace|rpad|rtrim|soundex|substr|translate|trim|upper|vsize)\\\\b","name":"support.function.builtin.char.oracle"},{"match":"(?i)\\\\b(add_months|current_date|current_timestamp|dbtimezone|last_day|localtimestamp|months_between|new_time|next_day|round|sessiontimezone|sysdate|tz_offset|systimestamp)\\\\b","name":"support.function.builtin.date.oracle"},{"match":"(?i)\\\\b(avg|count|sum|max|min|median|corr|corr_\\\\w+|covar_(pop|samp)|cume_dist|dense_rank|first|group_id|grouping|grouping_id|last|percentile_cont|percentile_disc|percent_rank|rank|regr_\\\\w+|row_number|stats_binomial_test|stats_crosstab|stats_f_test|stats_ks_test|stats_mode|stats_mw_test|stats_one_way_anova|stats_t_test_\\\\w+|stats_wsr_test|stddev|stddev_pop|stddev_samp|var_pop|var_samp|variance)\\\\b","name":"support.function.builtin.aggregate.oracle"},{"match":"(?i)\\\\b(bfilename|cardinality|coalesce|decode|empty_([bc]lob)|lag|lead|listagg|lnnvl|nanvl|nullif|nvl2??|sys_(context|guid|typeid|connect_by_path|extract_utc)|uid|(current\\\\s+)?user|userenv|cardinality|(bulk\\\\s+)?collect|powermultiset(_by_cardinality)?|ora_hash|standard_hash|execute\\\\s+immediate|alter\\\\s+session)\\\\b","name":"support.function.builtin.advanced.oracle"},{"match":"(?i)\\\\b(bin_to_num|cast|chartorowid|from_tz|hextoraw|numtodsinterval|numtoyminterval|rawtohex|rawtonhex|to_char|to_clob|to_date|to_dsinterval|to_lob|to_multi_byte|to_nclob|to_number|to_single_byte|to_timestamp|to_timestamp_tz|to_yminterval|scn_to_timestamp|timestamp_to_scn|rowidtochar|rowidtonchar|to_binary_double|to_binary_float|to_blob|to_nchar|con_dbid_to_id|con_guid_to_id|con_name_to_id|con_uid_to_id)\\\\b","name":"support.function.builtin.convert.oracle"},{"match":"(?i)\\\\b(abs|acos|asin|atan2??|bit_(and|or|xor)|ceil|cosh??|exp|extract|floor|greatest|least|ln|log|mod|power|remainder|round|sign|sinh??|sqrt|tanh??|trunc)\\\\b","name":"support.function.builtin.math.oracle"},{"match":"(?i)\\\\b(\\\\.(count|delete|exists|extend|first|last|limit|next|prior|trim|reverse))\\\\b","name":"support.function.builtin.collection.oracle"},{"match":"(?i)\\\\b(cluster_details|cluster_distance|cluster_id|cluster_probability|cluster_set|feature_details|feature_id|feature_set|feature_value|prediction|prediction_bounds|prediction_cost|prediction_details|prediction_probability|prediction_set)\\\\b","name":"support.function.builtin.data_mining.oracle"},{"match":"(?i)\\\\b(appendchildxml|deletexml|depth|extract|existsnode|extractvalue|insertchildxml|insertxmlbefore|xmlcast|xmldiff|xmlelement|xmlexists|xmlisvalid|insertchildxmlafter|insertchildxmlbefore|path|sys_dburigen|sys_xmlagg|sys_xmlgen|updatexml|xmlagg|xmlcdata|xmlcolattval|xmlcomment|xmlconcat|xmlforest|xmlparse|xmlpi|xmlquery|xmlroot|xmlsequence|xmlserialize|xmltable|xmltransform)\\\\b","name":"support.function.builtin.xml.oracle"},{"match":"(?i)\\\\b(pragma\\\\s+(autonomous_transaction|serially_reusable|restrict_references|exception_init|inline))\\\\b","name":"keyword.other.pragma.oracle"},{"match":"(?i)\\\\b(p([io]|io)_[-0-9_a-z]+)\\\\b","name":"variable.parameter.oracle"},{"match":"(?i)\\\\b(l_[-0-9_a-z]+)\\\\b","name":"variable.other.oracle"},{"match":"(?i):\\\\b(new|old)\\\\b","name":"variable.trigger.oracle"},{"match":"(?i)\\\\b(connect\\\\s+by\\\\s+(nocycle\\\\s+)?(prior|level)|connect_by_(root|icycle)|level|start\\\\s+with)\\\\b","name":"keyword.hierarchical.sql.oracle"},{"match":"(?i)\\\\b(language|name|java|c)\\\\b","name":"keyword.wrapper.oracle"},{"match":"(?i)\\\\b(end|then|deterministic|exception|when|declare|begin|in|out|nocopy|is|as|exit|open|fetch|into|close|subtype|type|rowtype|default|exclusive|mode|lock|record|index\\\\s+by|result_cache|constant|comment|\\\\.((?:next|curr)val))\\\\b","name":"keyword.other.oracle"},{"match":"(?i)\\\\b(grant|revoke|alter|drop|force|add|check|constraint|primary\\\\s+key|foreign\\\\s+key|references|unique(\\\\s+index)?|column|sequence|increment\\\\s+by|cache|(materialized\\\\s+)?view|trigger|storage|tablespace|pct(free|used)|(init|max)trans|logging)\\\\b","name":"keyword.other.ddl.oracle"},{"match":"(?i)\\\\b(with|select|from|where|order\\\\s+(siblings\\\\s+)?by|group\\\\s+by|rollup|cube|((left|right|cross|natural)\\\\s+(outer\\\\s+)?)?join|on|asc|desc|update|set|insert|into|values|delete|distinct|union|minus|intersect|having|limit|table|between|like|of|row|(r(?:ange|ows))\\\\s+between|nulls\\\\s+first|nulls\\\\s+last|before|after|all|any|exists|rownum|cursor|returning|over|partition\\\\s+by|merge|using|matched|pivot|unpivot)\\\\b","name":"keyword.other.sql.oracle"},{"match":"(?i)\\\\b(define|whenever\\\\s+sqlerror|exec|timing\\\\s+start|timing\\\\s+stop)\\\\b","name":"keyword.other.sqlplus.oracle"},{"match":"(?i)\\\\b(access_into_null|case_not_found|collection_is_null|cursor_already_open|dup_val_on_index|invalid_cursor|invalid_number|login_denied|no_data_found|not_logged_on|program_error|rowtype_mismatch|self_is_null|storage_error|subscript_beyond_count|subscript_outside_limit|sys_invalid_rowid|timeout_on_resource|too_many_rows|value_error|zero_divide|others)\\\\b","name":"support.type.exception.oracle"},{"captures":{"3":{"name":"support.class.oracle"}},"match":"(?i)\\\\b((dbms|utl|owa|apex)_\\\\w+\\\\.(\\\\w+))\\\\b","name":"support.function.oracle"},{"captures":{"3":{"name":"support.class.oracle"}},"match":"(?i)\\\\b((ht[fp])\\\\.(\\\\w+))\\\\b","name":"support.function.oracle"},{"captures":{"3":{"name":"support.class.user-defined.oracle"}},"match":"(?i)\\\\b((\\\\w+_pkg|pkg_\\\\w+)\\\\.(\\\\w+))\\\\b","name":"support.function.user-defined.oracle"},{"match":"(?i)\\\\b(raise(?:|_application_error))\\\\b","name":"support.function.oracle"},{"begin":"'","end":"'","name":"string.quoted.single.oracle"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.oracle"},{"match":"(?i)\\\\b(char|varchar2??|nchar|nvarchar2|boolean|date|timestamp(\\\\s+with(\\\\s+local)?\\\\s+time\\\\s+zone)?|interval\\\\s*day(\\\\(\\\\d*\\\\))?\\\\s*to\\\\s*month|interval\\\\s*year(\\\\(\\\\d*\\\\))?\\\\s*to\\\\s*second(\\\\(\\\\d*\\\\))?|xmltype|blob|clob|nclob|bfile|long|long\\\\s+raw|raw|number|integer|decimal|smallint|float|binary_(float|double|integer)|pls_(float|double|integer)|rowid|urowid|vararray|naturaln??|positiven??|signtype|simple_(float|double|integer))\\\\b","name":"storage.type.oracle"}],"scopeName":"source.plsql.oracle"}`))];export{e as default}; diff --git a/docs/assets/plug-Bp1OpH-w.js b/docs/assets/plug-Bp1OpH-w.js new file mode 100644 index 0000000..8a29600 --- /dev/null +++ b/docs/assets/plug-Bp1OpH-w.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);export{t}; diff --git a/docs/assets/plus-CHesBJpY.js b/docs/assets/plus-CHesBJpY.js new file mode 100644 index 0000000..98407a8 --- /dev/null +++ b/docs/assets/plus-CHesBJpY.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var a=t("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);export{a as t}; diff --git a/docs/assets/po-BS5thvpC.js b/docs/assets/po-BS5thvpC.js new file mode 100644 index 0000000..ea48b97 --- /dev/null +++ b/docs/assets/po-BS5thvpC.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Gettext PO","fileTypes":["po","pot","potx"],"name":"po","patterns":[{"begin":"^(?:(?=(msg(?:id(_plural)?|ctxt))\\\\s*\\"[^\\"])|\\\\s*$)","end":"\\\\z","patterns":[{"include":"#body"}]},{"include":"#comments"},{"match":"^msg(id|str)\\\\s+\\"\\"\\\\s*$\\\\n?","name":"comment.line.number-sign.po"},{"captures":{"1":{"name":"constant.language.po"},"2":{"name":"punctuation.separator.key-value.po"},"3":{"name":"string.other.po"}},"match":"^\\"(?:([^:\\\\s]+)(:)\\\\s+)?([^\\"]*)\\"\\\\s*$\\\\n?","name":"meta.header.po"}],"repository":{"body":{"patterns":[{"begin":"^(msgid(_plural)?)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.msgid.po"}},"end":"^(?!\\")","name":"meta.scope.msgid.po","patterns":[{"begin":"(\\\\G|^)\\"","end":"\\"","name":"string.quoted.double.po","patterns":[{"match":"\\\\\\\\[\\"\\\\\\\\]","name":"constant.character.escape.po"}]}]},{"begin":"^(msgstr)(?:(\\\\[)(\\\\d+)(]))?\\\\s+","beginCaptures":{"1":{"name":"keyword.control.msgstr.po"},"2":{"name":"keyword.control.msgstr.po"},"3":{"name":"constant.numeric.po"},"4":{"name":"keyword.control.msgstr.po"}},"end":"^(?!\\")","name":"meta.scope.msgstr.po","patterns":[{"begin":"(\\\\G|^)\\"","end":"\\"","name":"string.quoted.double.po","patterns":[{"match":"\\\\\\\\[\\"\\\\\\\\]","name":"constant.character.escape.po"}]}]},{"begin":"^(msgctxt)(?:(\\\\[)(\\\\d+)(]))?\\\\s+","beginCaptures":{"1":{"name":"keyword.control.msgctxt.po"},"2":{"name":"keyword.control.msgctxt.po"},"3":{"name":"constant.numeric.po"},"4":{"name":"keyword.control.msgctxt.po"}},"end":"^(?!\\")","name":"meta.scope.msgctxt.po","patterns":[{"begin":"(\\\\G|^)\\"","end":"\\"","name":"string.quoted.double.po","patterns":[{"match":"\\\\\\\\[\\"\\\\\\\\]","name":"constant.character.escape.po"}]}]},{"captures":{"1":{"name":"punctuation.definition.comment.po"}},"match":"^(#~).*$\\\\n?","name":"comment.line.number-sign.obsolete.po"},{"include":"#comments"},{"match":"^(?!\\\\s*$)[^\\"#].*$\\\\n?","name":"invalid.illegal.po"}]},"comments":{"patterns":[{"begin":"^(?=#)","end":"(?!\\\\G)","patterns":[{"begin":"(#,)\\\\s+","beginCaptures":{"1":{"name":"punctuation.definition.comment.po"}},"end":"\\\\n","name":"comment.line.number-sign.flag.po","patterns":[{"captures":{"1":{"name":"entity.name.type.flag.po"}},"match":"(?:\\\\G|,\\\\s*)(fuzzy|(?:no-)?(?:c|objc|sh|lisp|elisp|librep|scheme|smalltalk|java|csharp|awk|object-pascal|ycp|tcl|perl|perl-brace|php|gcc-internal|qt|boost)-format)"}]},{"begin":"#\\\\.","beginCaptures":{"0":{"name":"punctuation.definition.comment.po"}},"end":"\\\\n","name":"comment.line.number-sign.extracted.po"},{"begin":"(#:)[\\\\t ]*","beginCaptures":{"1":{"name":"punctuation.definition.comment.po"}},"end":"\\\\n","name":"comment.line.number-sign.reference.po","patterns":[{"match":"(\\\\S+:)([;\\\\d]*)","name":"storage.type.class.po"}]},{"begin":"#\\\\|","beginCaptures":{"0":{"name":"punctuation.definition.comment.po"}},"end":"\\\\n","name":"comment.line.number-sign.previous.po"},{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.po"}},"end":"\\\\n","name":"comment.line.number-sign.po"}]}]}},"scopeName":"source.po","aliases":["pot","potx"]}'))];export{e as default}; diff --git a/docs/assets/poimandres-CzQWEKLd.js b/docs/assets/poimandres-CzQWEKLd.js new file mode 100644 index 0000000..f5cb92d --- /dev/null +++ b/docs/assets/poimandres-CzQWEKLd.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#a6accd","activityBar.background":"#1b1e28","activityBar.dropBorder":"#a6accd","activityBar.foreground":"#a6accd","activityBar.inactiveForeground":"#a6accd66","activityBarBadge.background":"#303340","activityBarBadge.foreground":"#e4f0fb","badge.background":"#303340","badge.foreground":"#e4f0fb","breadcrumb.activeSelectionForeground":"#e4f0fb","breadcrumb.background":"#00000000","breadcrumb.focusForeground":"#e4f0fb","breadcrumb.foreground":"#767c9dcc","breadcrumbPicker.background":"#1b1e28","button.background":"#303340","button.foreground":"#ffffff","button.hoverBackground":"#50647750","button.secondaryBackground":"#a6accd","button.secondaryForeground":"#ffffff","button.secondaryHoverBackground":"#a6accd","charts.blue":"#ADD7FF","charts.foreground":"#a6accd","charts.green":"#5DE4c7","charts.lines":"#a6accd80","charts.orange":"#89ddff","charts.purple":"#f087bd","charts.red":"#d0679d","charts.yellow":"#fffac2","checkbox.background":"#1b1e28","checkbox.border":"#ffffff10","checkbox.foreground":"#e4f0fb","debugConsole.errorForeground":"#d0679d","debugConsole.infoForeground":"#ADD7FF","debugConsole.sourceForeground":"#a6accd","debugConsole.warningForeground":"#fffac2","debugConsoleInputIcon.foreground":"#a6accd","debugExceptionWidget.background":"#d0679d","debugExceptionWidget.border":"#d0679d","debugIcon.breakpointCurrentStackframeForeground":"#fffac2","debugIcon.breakpointDisabledForeground":"#7390AA","debugIcon.breakpointForeground":"#d0679d","debugIcon.breakpointStackframeForeground":"#5fb3a1","debugIcon.breakpointUnverifiedForeground":"#7390AA","debugIcon.continueForeground":"#ADD7FF","debugIcon.disconnectForeground":"#d0679d","debugIcon.pauseForeground":"#ADD7FF","debugIcon.restartForeground":"#5fb3a1","debugIcon.startForeground":"#5fb3a1","debugIcon.stepBackForeground":"#ADD7FF","debugIcon.stepIntoForeground":"#ADD7FF","debugIcon.stepOutForeground":"#ADD7FF","debugIcon.stepOverForeground":"#ADD7FF","debugIcon.stopForeground":"#d0679d","debugTokenExpression.boolean":"#89ddff","debugTokenExpression.error":"#d0679d","debugTokenExpression.name":"#e4f0fb","debugTokenExpression.number":"#5fb3a1","debugTokenExpression.string":"#89ddff","debugTokenExpression.value":"#a6accd99","debugToolBar.background":"#303340","debugView.exceptionLabelBackground":"#d0679d","debugView.exceptionLabelForeground":"#e4f0fb","debugView.stateLabelBackground":"#303340","debugView.stateLabelForeground":"#a6accd","debugView.valueChangedHighlight":"#89ddff","descriptionForeground":"#a6accdb3","diffEditor.diagonalFill":"#a6accd33","diffEditor.insertedTextBackground":"#50647715","diffEditor.removedTextBackground":"#d0679d20","dropdown.background":"#1b1e28","dropdown.border":"#ffffff10","dropdown.foreground":"#e4f0fb","editor.background":"#1b1e28","editor.findMatchBackground":"#ADD7FF40","editor.findMatchBorder":"#ADD7FF","editor.findMatchHighlightBackground":"#ADD7FF40","editor.findRangeHighlightBackground":"#ADD7FF40","editor.focusedStackFrameHighlightBackground":"#7abd7a4d","editor.foldBackground":"#717cb40b","editor.foreground":"#a6accd","editor.hoverHighlightBackground":"#264f7840","editor.inactiveSelectionBackground":"#717cb425","editor.lineHighlightBackground":"#717cb425","editor.lineHighlightBorder":"#00000000","editor.linkedEditingBackground":"#d0679d4d","editor.rangeHighlightBackground":"#ffffff0b","editor.selectionBackground":"#717cb425","editor.selectionHighlightBackground":"#00000000","editor.selectionHighlightBorder":"#ADD7FF80","editor.snippetFinalTabstopHighlightBorder":"#525252","editor.snippetTabstopHighlightBackground":"#7c7c7c4d","editor.stackFrameHighlightBackground":"#ffff0033","editor.symbolHighlightBackground":"#89ddff60","editor.wordHighlightBackground":"#ADD7FF20","editor.wordHighlightStrongBackground":"#ADD7FF40","editorBracketMatch.background":"#00000000","editorBracketMatch.border":"#e4f0fb40","editorCodeLens.foreground":"#a6accd","editorCursor.foreground":"#a6accd","editorError.foreground":"#d0679d","editorGroup.border":"#00000030","editorGroup.dropBackground":"#7390AA80","editorGroupHeader.noTabsBackground":"#1b1e28","editorGroupHeader.tabsBackground":"#1b1e28","editorGutter.addedBackground":"#5fb3a140","editorGutter.background":"#1b1e28","editorGutter.commentRangeForeground":"#a6accd","editorGutter.deletedBackground":"#d0679d40","editorGutter.foldingControlForeground":"#a6accd","editorGutter.modifiedBackground":"#ADD7FF20","editorHint.foreground":"#7390AAb3","editorHoverWidget.background":"#1b1e28","editorHoverWidget.border":"#ffffff10","editorHoverWidget.foreground":"#a6accd","editorHoverWidget.statusBarBackground":"#202430","editorIndentGuide.activeBackground":"#e3e4e229","editorIndentGuide.background":"#303340","editorInfo.foreground":"#ADD7FF","editorInlineHint.background":"#a6accd","editorInlineHint.foreground":"#1b1e28","editorLightBulb.foreground":"#fffac2","editorLightBulbAutoFix.foreground":"#ADD7FF","editorLineNumber.activeForeground":"#a6accd","editorLineNumber.foreground":"#767c9d50","editorLink.activeForeground":"#ADD7FF","editorMarkerNavigation.background":"#2d2d30","editorMarkerNavigationError.background":"#d0679d","editorMarkerNavigationInfo.background":"#ADD7FF","editorMarkerNavigationWarning.background":"#fffac2","editorOverviewRuler.addedForeground":"#5fb3a199","editorOverviewRuler.border":"#00000000","editorOverviewRuler.bracketMatchForeground":"#a0a0a0","editorOverviewRuler.commonContentForeground":"#a6accd66","editorOverviewRuler.currentContentForeground":"#5fb3a180","editorOverviewRuler.deletedForeground":"#d0679d99","editorOverviewRuler.errorForeground":"#d0679db3","editorOverviewRuler.findMatchForeground":"#e4f0fb20","editorOverviewRuler.incomingContentForeground":"#89ddff80","editorOverviewRuler.infoForeground":"#ADD7FF","editorOverviewRuler.modifiedForeground":"#89ddff99","editorOverviewRuler.rangeHighlightForeground":"#89ddff99","editorOverviewRuler.selectionHighlightForeground":"#a0a0a0cc","editorOverviewRuler.warningForeground":"#fffac2","editorOverviewRuler.wordHighlightForeground":"#a0a0a0cc","editorOverviewRuler.wordHighlightStrongForeground":"#89ddffcc","editorPane.background":"#1b1e28","editorRuler.foreground":"#e4f0fb10","editorSuggestWidget.background":"#1b1e28","editorSuggestWidget.border":"#ffffff10","editorSuggestWidget.foreground":"#a6accd","editorSuggestWidget.highlightForeground":"#5DE4c7","editorSuggestWidget.selectedBackground":"#00000050","editorUnnecessaryCode.opacity":"#000000aa","editorWarning.foreground":"#fffac2","editorWhitespace.foreground":"#303340","editorWidget.background":"#1b1e28","editorWidget.border":"#a6accd","editorWidget.foreground":"#a6accd","errorForeground":"#d0679d","extensionBadge.remoteBackground":"#303340","extensionBadge.remoteForeground":"#e4f0fb","extensionButton.prominentBackground":"#30334090","extensionButton.prominentForeground":"#ffffff","extensionButton.prominentHoverBackground":"#303340","extensionIcon.starForeground":"#fffac2","focusBorder":"#00000000","foreground":"#a6accd","gitDecoration.addedResourceForeground":"#5fb3a1","gitDecoration.conflictingResourceForeground":"#d0679d","gitDecoration.deletedResourceForeground":"#d0679d","gitDecoration.ignoredResourceForeground":"#767c9d70","gitDecoration.modifiedResourceForeground":"#ADD7FF","gitDecoration.renamedResourceForeground":"#5DE4c7","gitDecoration.stageDeletedResourceForeground":"#d0679d","gitDecoration.stageModifiedResourceForeground":"#ADD7FF","gitDecoration.submoduleResourceForeground":"#89ddff","gitDecoration.untrackedResourceForeground":"#5DE4c7","icon.foreground":"#a6accd","imagePreview.border":"#303340","input.background":"#ffffff05","input.border":"#ffffff10","input.foreground":"#e4f0fb","input.placeholderForeground":"#a6accd60","inputOption.activeBackground":"#00000000","inputOption.activeBorder":"#00000000","inputOption.activeForeground":"#ffffff","inputValidation.errorBackground":"#1b1e28","inputValidation.errorBorder":"#d0679d","inputValidation.errorForeground":"#d0679d","inputValidation.infoBackground":"#506477","inputValidation.infoBorder":"#89ddff","inputValidation.warningBackground":"#506477","inputValidation.warningBorder":"#fffac2","list.activeSelectionBackground":"#30334080","list.activeSelectionForeground":"#e4f0fb","list.deemphasizedForeground":"#767c9d","list.dropBackground":"#506477","list.errorForeground":"#d0679d","list.filterMatchBackground":"#89ddff60","list.focusBackground":"#30334080","list.focusForeground":"#a6accd","list.focusOutline":"#00000000","list.highlightForeground":"#5fb3a1","list.hoverBackground":"#30334080","list.hoverForeground":"#e4f0fb","list.inactiveSelectionBackground":"#30334080","list.inactiveSelectionForeground":"#e4f0fb","list.invalidItemForeground":"#fffac2","list.warningForeground":"#fffac2","listFilterWidget.background":"#303340","listFilterWidget.noMatchesOutline":"#d0679d","listFilterWidget.outline":"#00000000","menu.background":"#1b1e28","menu.foreground":"#e4f0fb","menu.selectionBackground":"#303340","menu.selectionForeground":"#7390AA","menu.separatorBackground":"#767c9d","menubar.selectionBackground":"#717cb425","menubar.selectionForeground":"#a6accd","merge.commonContentBackground":"#a6accd29","merge.commonHeaderBackground":"#a6accd66","merge.currentContentBackground":"#5fb3a133","merge.currentHeaderBackground":"#5fb3a180","merge.incomingContentBackground":"#89ddff33","merge.incomingHeaderBackground":"#89ddff80","minimap.errorHighlight":"#d0679d","minimap.findMatchHighlight":"#ADD7FF","minimap.selectionHighlight":"#e4f0fb40","minimap.warningHighlight":"#fffac2","minimapGutter.addedBackground":"#5fb3a180","minimapGutter.deletedBackground":"#d0679d80","minimapGutter.modifiedBackground":"#ADD7FF80","minimapSlider.activeBackground":"#a6accd30","minimapSlider.background":"#a6accd20","minimapSlider.hoverBackground":"#a6accd30","notebook.cellBorderColor":"#1b1e28","notebook.cellInsertionIndicator":"#00000000","notebook.cellStatusBarItemHoverBackground":"#ffffff26","notebook.cellToolbarSeparator":"#303340","notebook.focusedCellBorder":"#00000000","notebook.focusedEditorBorder":"#00000000","notebook.focusedRowBorder":"#00000000","notebook.inactiveFocusedCellBorder":"#00000000","notebook.outputContainerBackgroundColor":"#1b1e28","notebook.rowHoverBackground":"#30334000","notebook.selectedCellBackground":"#303340","notebook.selectedCellBorder":"#1b1e28","notebook.symbolHighlightBackground":"#ffffff0b","notebookScrollbarSlider.activeBackground":"#a6accd25","notebookScrollbarSlider.background":"#00000050","notebookScrollbarSlider.hoverBackground":"#a6accd25","notebookStatusErrorIcon.foreground":"#d0679d","notebookStatusRunningIcon.foreground":"#a6accd","notebookStatusSuccessIcon.foreground":"#5fb3a1","notificationCenterHeader.background":"#303340","notificationLink.foreground":"#ADD7FF","notifications.background":"#1b1e28","notifications.border":"#303340","notifications.foreground":"#e4f0fb","notificationsErrorIcon.foreground":"#d0679d","notificationsInfoIcon.foreground":"#ADD7FF","notificationsWarningIcon.foreground":"#fffac2","panel.background":"#1b1e28","panel.border":"#00000030","panel.dropBorder":"#a6accd","panelSection.border":"#1b1e28","panelSection.dropBackground":"#7390AA80","panelSectionHeader.background":"#303340","panelTitle.activeBorder":"#a6accd","panelTitle.activeForeground":"#a6accd","panelTitle.inactiveForeground":"#a6accd99","peekView.border":"#00000030","peekViewEditor.background":"#a6accd05","peekViewEditor.matchHighlightBackground":"#303340","peekViewEditorGutter.background":"#a6accd05","peekViewResult.background":"#a6accd05","peekViewResult.fileForeground":"#ffffff","peekViewResult.lineForeground":"#a6accd","peekViewResult.matchHighlightBackground":"#303340","peekViewResult.selectionBackground":"#717cb425","peekViewResult.selectionForeground":"#ffffff","peekViewTitle.background":"#a6accd05","peekViewTitleDescription.foreground":"#a6accd60","peekViewTitleLabel.foreground":"#ffffff","pickerGroup.border":"#a6accd","pickerGroup.foreground":"#89ddff","problemsErrorIcon.foreground":"#d0679d","problemsInfoIcon.foreground":"#ADD7FF","problemsWarningIcon.foreground":"#fffac2","progressBar.background":"#89ddff","quickInput.background":"#1b1e28","quickInput.foreground":"#a6accd","quickInputList.focusBackground":"#a6accd10","quickInputTitle.background":"#ffffff1b","sash.hoverBorder":"#00000000","scm.providerBorder":"#e4f0fb10","scrollbar.shadow":"#00000000","scrollbarSlider.activeBackground":"#a6accd25","scrollbarSlider.background":"#00000080","scrollbarSlider.hoverBackground":"#a6accd25","searchEditor.findMatchBackground":"#ADD7FF50","searchEditor.textInputBorder":"#ffffff10","selection.background":"#a6accd","settings.checkboxBackground":"#1b1e28","settings.checkboxBorder":"#ffffff10","settings.checkboxForeground":"#e4f0fb","settings.dropdownBackground":"#1b1e28","settings.dropdownBorder":"#ffffff10","settings.dropdownForeground":"#e4f0fb","settings.dropdownListBorder":"#e4f0fb10","settings.focusedRowBackground":"#00000000","settings.headerForeground":"#e4f0fb","settings.modifiedItemIndicator":"#ADD7FF","settings.numberInputBackground":"#ffffff05","settings.numberInputBorder":"#ffffff10","settings.numberInputForeground":"#e4f0fb","settings.textInputBackground":"#ffffff05","settings.textInputBorder":"#ffffff10","settings.textInputForeground":"#e4f0fb","sideBar.background":"#1b1e28","sideBar.dropBackground":"#7390AA80","sideBar.foreground":"#767c9d","sideBarSectionHeader.background":"#1b1e28","sideBarSectionHeader.foreground":"#a6accd","sideBarTitle.foreground":"#a6accd","statusBar.background":"#1b1e28","statusBar.debuggingBackground":"#303340","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#a6accd","statusBar.noFolderBackground":"#1b1e28","statusBar.noFolderForeground":"#a6accd","statusBarItem.activeBackground":"#ffffff2e","statusBarItem.errorBackground":"#d0679d","statusBarItem.errorForeground":"#ffffff","statusBarItem.hoverBackground":"#ffffff1f","statusBarItem.prominentBackground":"#00000080","statusBarItem.prominentForeground":"#a6accd","statusBarItem.prominentHoverBackground":"#0000004d","statusBarItem.remoteBackground":"#303340","statusBarItem.remoteForeground":"#e4f0fb","symbolIcon.arrayForeground":"#a6accd","symbolIcon.booleanForeground":"#a6accd","symbolIcon.classForeground":"#fffac2","symbolIcon.colorForeground":"#a6accd","symbolIcon.constantForeground":"#a6accd","symbolIcon.constructorForeground":"#f087bd","symbolIcon.enumeratorForeground":"#fffac2","symbolIcon.enumeratorMemberForeground":"#ADD7FF","symbolIcon.eventForeground":"#fffac2","symbolIcon.fieldForeground":"#ADD7FF","symbolIcon.fileForeground":"#a6accd","symbolIcon.folderForeground":"#a6accd","symbolIcon.functionForeground":"#f087bd","symbolIcon.interfaceForeground":"#ADD7FF","symbolIcon.keyForeground":"#a6accd","symbolIcon.keywordForeground":"#a6accd","symbolIcon.methodForeground":"#f087bd","symbolIcon.moduleForeground":"#a6accd","symbolIcon.namespaceForeground":"#a6accd","symbolIcon.nullForeground":"#a6accd","symbolIcon.numberForeground":"#a6accd","symbolIcon.objectForeground":"#a6accd","symbolIcon.operatorForeground":"#a6accd","symbolIcon.packageForeground":"#a6accd","symbolIcon.propertyForeground":"#a6accd","symbolIcon.referenceForeground":"#a6accd","symbolIcon.snippetForeground":"#a6accd","symbolIcon.stringForeground":"#a6accd","symbolIcon.structForeground":"#a6accd","symbolIcon.textForeground":"#a6accd","symbolIcon.typeParameterForeground":"#a6accd","symbolIcon.unitForeground":"#a6accd","symbolIcon.variableForeground":"#ADD7FF","tab.activeBackground":"#30334080","tab.activeForeground":"#e4f0fb","tab.activeModifiedBorder":"#ADD7FF","tab.border":"#00000000","tab.inactiveBackground":"#1b1e28","tab.inactiveForeground":"#767c9d","tab.inactiveModifiedBorder":"#ADD7FF80","tab.lastPinnedBorder":"#00000000","tab.unfocusedActiveBackground":"#1b1e28","tab.unfocusedActiveForeground":"#a6accd","tab.unfocusedActiveModifiedBorder":"#ADD7FF40","tab.unfocusedInactiveBackground":"#1b1e28","tab.unfocusedInactiveForeground":"#a6accd80","tab.unfocusedInactiveModifiedBorder":"#ADD7FF40","terminal.ansiBlack":"#1b1e28","terminal.ansiBlue":"#89ddff","terminal.ansiBrightBlack":"#a6accd","terminal.ansiBrightBlue":"#ADD7FF","terminal.ansiBrightCyan":"#ADD7FF","terminal.ansiBrightGreen":"#5DE4c7","terminal.ansiBrightMagenta":"#f087bd","terminal.ansiBrightRed":"#d0679d","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#fffac2","terminal.ansiCyan":"#89ddff","terminal.ansiGreen":"#5DE4c7","terminal.ansiMagenta":"#f087bd","terminal.ansiRed":"#d0679d","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#fffac2","terminal.border":"#00000000","terminal.foreground":"#a6accd","terminal.selectionBackground":"#717cb425","terminalCommandDecoration.defaultBackground":"#767c9d","terminalCommandDecoration.errorBackground":"#d0679d","terminalCommandDecoration.successBackground":"#5DE4c7","testing.iconErrored":"#d0679d","testing.iconFailed":"#d0679d","testing.iconPassed":"#5DE4c7","testing.iconQueued":"#fffac2","testing.iconSkipped":"#7390AA","testing.iconUnset":"#7390AA","testing.message.error.decorationForeground":"#d0679d","testing.message.error.lineBackground":"#d0679d33","testing.message.hint.decorationForeground":"#7390AAb3","testing.message.info.decorationForeground":"#ADD7FF","testing.message.info.lineBackground":"#89ddff33","testing.message.warning.decorationForeground":"#fffac2","testing.message.warning.lineBackground":"#fffac233","testing.peekBorder":"#d0679d","testing.runAction":"#5DE4c7","textBlockQuote.background":"#7390AA1a","textBlockQuote.border":"#89ddff80","textCodeBlock.background":"#00000050","textLink.activeForeground":"#ADD7FF","textLink.foreground":"#ADD7FF","textPreformat.foreground":"#e4f0fb","textSeparator.foreground":"#ffffff2e","titleBar.activeBackground":"#1b1e28","titleBar.activeForeground":"#a6accd","titleBar.inactiveBackground":"#1b1e28","titleBar.inactiveForeground":"#767c9d","tree.indentGuidesStroke":"#303340","tree.tableColumnsBorder":"#a6accd20","welcomePage.progress.background":"#ffffff05","welcomePage.progress.foreground":"#5fb3a1","welcomePage.tileBackground":"#1b1e28","welcomePage.tileHoverBackground":"#303340","widget.shadow":"#00000030"},"displayName":"Poimandres","name":"poimandres","tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"fontStyle":"italic","foreground":"#767c9dB0"}},{"scope":"meta.parameters comment.block","settings":{"fontStyle":"italic","foreground":"#a6accd"}},{"scope":["variable.other.constant.object","variable.other.readwrite.alias","meta.import variable.other.readwrite"],"settings":{"foreground":"#ADD7FF"}},{"scope":["variable.other","support.type.object"],"settings":{"foreground":"#e4f0fb"}},{"scope":["variable.other.object.property","variable.other.property","support.variable.property"],"settings":{"foreground":"#e4f0fb"}},{"scope":["entity.name.function.method","string.unquoted","meta.object.member"],"settings":{"foreground":"#ADD7FF"}},{"scope":["variable - meta.import","constant.other.placeholder","meta.object-literal.key-meta.object.member"],"settings":{"foreground":"#e4f0fb"}},{"scope":["keyword.control.flow"],"settings":{"foreground":"#5DE4c7c0"}},{"scope":["keyword.operator.new","keyword.control.new"],"settings":{"foreground":"#5DE4c7"}},{"scope":["variable.language.this","storage.modifier.async","storage.modifier","variable.language.super"],"settings":{"foreground":"#5DE4c7"}},{"scope":["support.class.error","keyword.control.trycatch","keyword.operator.expression.delete","keyword.operator.expression.void","keyword.operator.void","keyword.operator.delete","constant.language.null","constant.language.boolean.false","constant.language.undefined"],"settings":{"foreground":"#d0679d"}},{"scope":["variable.parameter","variable.other.readwrite.js","meta.definition.variable variable.other.constant","meta.definition.variable variable.other.readwrite"],"settings":{"foreground":"#e4f0fb"}},{"scope":["constant.other.color"],"settings":{"foreground":"#ffffff"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#d0679d"}},{"scope":["invalid.deprecated"],"settings":{"foreground":"#d0679d"}},{"scope":["keyword.control","keyword"],"settings":{"foreground":"#a6accd"}},{"scope":["keyword.operator","storage.type"],"settings":{"foreground":"#91B4D5"}},{"scope":["keyword.control.module","keyword.control.import","keyword.control.export","keyword.control.default","meta.import","meta.export"],"settings":{"foreground":"#5DE4c7"}},{"scope":["Keyword","Storage"],"settings":{"fontStyle":"italic"}},{"scope":["keyword-meta.export"],"settings":{"foreground":"#ADD7FF"}},{"scope":["meta.brace","punctuation","keyword.operator.existential"],"settings":{"foreground":"#a6accd"}},{"scope":["constant.other.color","meta.tag","punctuation.definition.tag","punctuation.separator.inheritance.php","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html","punctuation.section.embedded","keyword.other.template","keyword.other.substitution","meta.objectliteral"],"settings":{"foreground":"#e4f0fb"}},{"scope":["support.class.component"],"settings":{"foreground":"#5DE4c7"}},{"scope":["entity.name.tag","entity.name.tag","meta.tag.sgml","markup.deleted.git_gutter"],"settings":{"foreground":"#5DE4c7"}},{"scope":"variable.function, source meta.function-call entity.name.function, source meta.function-call entity.name.function, source meta.method-call entity.name.function, meta.class meta.group.braces.curly meta.function-call variable.function, meta.class meta.field.declaration meta.function-call entity.name.function, variable.function.constructor, meta.block meta.var.expr meta.function-call entity.name.function, support.function.console, meta.function-call support.function, meta.property.class variable.other.class, punctuation.definition.entity.css","settings":{"foreground":"#e4f0fbd0"}},{"scope":"entity.name.function, meta.class entity.name.class, meta.class entity.name.type.class, meta.class meta.function-call variable.function, keyword.other.important","settings":{"foreground":"#ADD7FF"}},{"scope":["source.cpp meta.block variable.other"],"settings":{"foreground":"#ADD7FF"}},{"scope":["support.other.variable","string.other.link"],"settings":{"foreground":"#5DE4c7"}},{"scope":["constant.numeric","support.constant","constant.character","constant.escape","keyword.other.unit","keyword.other","string","constant.language","constant.other.symbol","constant.other.key","markup.heading","markup.inserted.git_gutter","meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js","text.html.derivative"],"settings":{"foreground":"#5DE4c7"}},{"scope":["entity.other.inherited-class"],"settings":{"foreground":"#ADD7FF"}},{"scope":["meta.type.declaration"],"settings":{"foreground":"#ADD7FF"}},{"scope":["entity.name.type.alias"],"settings":{"foreground":"#a6accd"}},{"scope":["keyword.control.as","entity.name.type","support.type"],"settings":{"foreground":"#a6accdC0"}},{"scope":["entity.name","support.orther.namespace.use.php","meta.use.php","support.other.namespace.php","markup.changed.git_gutter","support.type.sys-types"],"settings":{"foreground":"#91B4D5"}},{"scope":["support.class","support.constant","variable.other.constant.object"],"settings":{"foreground":"#ADD7FF"}},{"scope":["source.css support.type.property-name","source.sass support.type.property-name","source.scss support.type.property-name","source.less support.type.property-name","source.stylus support.type.property-name","source.postcss support.type.property-name"],"settings":{"foreground":"#ADD7FF"}},{"scope":["entity.name.module.js","variable.import.parameter.js","variable.other.class.js"],"settings":{"foreground":"#e4f0fb"}},{"scope":["variable.language"],"settings":{"fontStyle":"italic","foreground":"#ADD7FF"}},{"scope":["entity.name.method.js"],"settings":{"fontStyle":"italic","foreground":"#91B4D5"}},{"scope":["meta.class-method.js entity.name.function.js","variable.function.constructor"],"settings":{"foreground":"#91B4D5"}},{"scope":["entity.other.attribute-name"],"settings":{"fontStyle":"italic","foreground":"#91B4D5"}},{"scope":["text.html.basic entity.other.attribute-name.html","text.html.basic entity.other.attribute-name"],"settings":{"fontStyle":"italic","foreground":"#5fb3a1"}},{"scope":["entity.other.attribute-name.class"],"settings":{"foreground":"#5fb3a1"}},{"scope":["source.sass keyword.control"],"settings":{"foreground":"#42675A"}},{"scope":["markup.inserted"],"settings":{"foreground":"#ADD7FF"}},{"scope":["markup.deleted"],"settings":{"foreground":"#506477"}},{"scope":["markup.changed"],"settings":{"foreground":"#91B4D5"}},{"scope":["string.regexp"],"settings":{"foreground":"#5fb3a1"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#5fb3a1"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline","foreground":"#ADD7FF"}},{"scope":["tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js"],"settings":{"fontStyle":"italic","foreground":"#42675A"}},{"scope":["source.js constant.other.object.key.js string.unquoted.label.js"],"settings":{"fontStyle":"italic","foreground":"#5fb3a1"}},{"scope":["source.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#e4f0fb"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ADD7FF"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#91B4D5"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#7390AA"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#e4f0fb"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ADD7FF"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#91B4D5"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#7390AA"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#e4f0fb"}},{"scope":["text.html.markdown","punctuation.definition.list_item.markdown"],"settings":{"foreground":"#e4f0fb"}},{"scope":["text.html.markdown markup.inline.raw.markdown"],"settings":{"foreground":"#ADD7FF"}},{"scope":["text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown"],"settings":{"foreground":"#91B4D5"}},{"scope":["markdown.heading","markup.heading | markup.heading entity.name","markup.heading.markdown punctuation.definition.heading.markdown"],"settings":{"foreground":"#e4f0fb"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#7390AA"}},{"scope":["markup.bold","markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#7390AA"}},{"scope":["markup.bold markup.italic","markup.italic markup.bold","markup.quote markup.bold","markup.bold markup.italic string","markup.italic markup.bold string","markup.quote markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#7390AA"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline","foreground":"#7390AA"}},{"scope":["markup.strike"],"settings":{"fontStyle":"italic"}},{"scope":["markup.quote punctuation.definition.blockquote.markdown"],"settings":{"foreground":"#5DE4c7"}},{"scope":["markup.quote"],"settings":{"fontStyle":"italic"}},{"scope":["string.other.link.title.markdown"],"settings":{"foreground":"#ADD7FF"}},{"scope":["string.other.link.description.title.markdown"],"settings":{"foreground":"#ADD7FF"}},{"scope":["constant.other.reference.link.markdown"],"settings":{"foreground":"#ADD7FF"}},{"scope":["markup.raw.block"],"settings":{"foreground":"#ADD7FF"}},{"scope":["markup.raw.block.fenced.markdown"],"settings":{"foreground":"#50647750"}},{"scope":["punctuation.definition.fenced.markdown"],"settings":{"foreground":"#50647750"}},{"scope":["markup.raw.block.fenced.markdown","variable.language.fenced.markdown","punctuation.section.class.end"],"settings":{"foreground":"#91B4D5"}},{"scope":["variable.language.fenced.markdown"],"settings":{"foreground":"#91B4D5"}},{"scope":["meta.separator"],"settings":{"fontStyle":"bold","foreground":"#7390AA"}},{"scope":["markup.table"],"settings":{"foreground":"#ADD7FF"}},{"scope":"token.info-token","settings":{"foreground":"#89ddff"}},{"scope":"token.warn-token","settings":{"foreground":"#fffac2"}},{"scope":"token.error-token","settings":{"foreground":"#d0679d"}},{"scope":"token.debug-token","settings":{"foreground":"#e4f0fb"}},{"scope":["entity.name.section.markdown","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"fontStyle":"bold","foreground":"#e4f0fb"}},{"scope":"meta.paragraph.markdown","settings":{"foreground":"#e4f0fbd0"}},{"scope":["punctuation.definition.from-file.diff","meta.diff.header.from-file"],"settings":{"foreground":"#506477"}},{"scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#7390AA"}},{"scope":"meta.separator.markdown","settings":{"foreground":"#767c9d"}},{"scope":"markup.bold.markdown","settings":{"fontStyle":"bold"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["beginning.punctuation.definition.list.markdown","punctuation.definition.list.begin.markdown","markup.list.unnumbered.markdown"],"settings":{"foreground":"#ADD7FF"}},{"scope":["string.other.link.description.title.markdown punctuation.definition.string.markdown","meta.link.inline.markdown string.other.link.description.title.markdown","string.other.link.description.title.markdown punctuation.definition.string.begin.markdown","string.other.link.description.title.markdown punctuation.definition.string.end.markdown","meta.image.inline.markdown string.other.link.description.title.markdown"],"settings":{"fontStyle":"","foreground":"#ADD7FF"}},{"scope":["meta.link.inline.markdown string.other.link.title.markdown","meta.link.reference.markdown string.other.link.title.markdown","meta.link.reference.def.markdown markup.underline.link.markdown"],"settings":{"fontStyle":"underline","foreground":"#ADD7FF"}},{"scope":["markup.underline.link.markdown","string.other.link.description.title.markdown"],"settings":{"foreground":"#5DE4c7"}},{"scope":["fenced_code.block.language","markup.inline.raw.markdown"],"settings":{"foreground":"#ADD7FF"}},{"scope":["punctuation.definition.markdown","punctuation.definition.raw.markdown","punctuation.definition.heading.markdown","punctuation.definition.bold.markdown","punctuation.definition.italic.markdown"],"settings":{"foreground":"#ADD7FF"}},{"scope":["source.ignore","log.error","log.exception"],"settings":{"foreground":"#d0679d"}},{"scope":["log.verbose"],"settings":{"foreground":"#a6accd"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/polar-DwGf_0dn.js b/docs/assets/polar-DwGf_0dn.js new file mode 100644 index 0000000..fcdcf23 --- /dev/null +++ b/docs/assets/polar-DwGf_0dn.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Polar","name":"polar","patterns":[{"include":"#comment"},{"include":"#rule"},{"include":"#rule-type"},{"include":"#inline-query"},{"include":"#resource-block"},{"include":"#test-block"},{"include":"#fixture"}],"repository":{"boolean":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean"},"comment":{"match":"#.*","name":"comment.line.number-sign"},"fixture":{"patterns":[{"match":"\\\\bfixture\\\\b","name":"keyword.control"},{"begin":"\\\\btest\\\\b","beginCaptures":{"0":{"name":"keyword.control"}},"end":"\\\\bfixture\\\\b","endCaptures":{"0":{"name":"keyword.control"}}}]},"inline-query":{"begin":"\\\\?=","beginCaptures":{"0":{"name":"keyword.control"}},"end":";","name":"meta.inline-query","patterns":[{"include":"#term"}]},"keyword":{"patterns":[{"match":"\\\\b(cut|or|debug|print|in|forall|if|and|of|not|matches|type|on|global)\\\\b","name":"constant.character"}]},"number":{"patterns":[{"match":"\\\\b[-+]?\\\\d+(?:(\\\\.)\\\\d+(?:e[-+]?\\\\d+)?|e[-+]?\\\\d+)\\\\b","name":"constant.numeric.float"},{"match":"\\\\b([-+])\\\\d+\\\\b","name":"constant.numeric.integer"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.natural"}]},"object-literal":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*(?:::[0-9A-Z_a-z]+)*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"entity.name.type.resource"}},"end":"}","name":"constant.other.object-literal","patterns":[{"include":"#string"},{"include":"#number"},{"include":"#boolean"}]},"operator":{"captures":{"1":{"name":"keyword.control"}},"match":"([-!*+/<=>])"},"resource-block":{"begin":"(?<resourceType>[A-Z_a-z][0-9A-Z_a-z]*(?:::[0-9A-Z_a-z]+)*){0}((resource|actor)\\\\s+(\\\\g<resourceType>)(?:\\\\s+(extends)\\\\s+(\\\\g<resourceType>(?:\\\\s*,\\\\s*\\\\g<resourceType>)*)\\\\s*,?\\\\s*)?|(global))\\\\s*\\\\{","beginCaptures":{"3":{"name":"keyword.control"},"4":{"name":"entity.name.type"},"5":{"name":"keyword.control"},"6":{"patterns":[{"match":"([A-Z_a-z][0-9A-Z_a-z]*(?:::[0-9A-Z_a-z]+)*)","name":"entity.name.type"}]},"7":{"name":"keyword.control"}},"end":"}","name":"meta.resource-block","patterns":[{"match":";","name":"punctuation.separator.sequence.declarations"},{"begin":"\\\\{","end":"}","name":"meta.relation-declaration","patterns":[{"include":"#specializer"},{"include":"#comment"},{"match":",","name":"punctuation.separator.sequence.dict"}]},{"include":"#term"}]},"rule":{"name":"meta.rule","patterns":[{"include":"#rule-functor"},{"begin":"\\\\bif\\\\b","beginCaptures":{"0":{"name":"keyword.control.if"}},"end":";","patterns":[{"include":"#term"}]},{"match":";"}]},"rule-functor":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*(?:::[0-9A-Z_a-z]+)*)\\\\s*\\\\(","beginCaptures":{"1":{"name":"support.function.rule"}},"end":"\\\\)","patterns":[{"include":"#specializer"},{"match":",","name":"punctuation.separator.sequence.list"},{"include":"#term"}]},"rule-type":{"begin":"\\\\btype\\\\b","beginCaptures":{"0":{"name":"keyword.other.type-decl"}},"end":";","name":"meta.rule-type","patterns":[{"include":"#rule-functor"}]},"specializer":{"captures":{"1":{"name":"entity.name.type.resource"}},"match":"[A-Z_a-z][0-9A-Z_a-z]*(?:::[0-9A-Z_a-z]+)*\\\\s*:\\\\s*([A-Z_a-z][0-9A-Z_a-z]*(?:::[0-9A-Z_a-z]+)*)"},"string":{"begin":"\\"","end":"\\"","name":"string.quoted.double","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape"}]},"term":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#number"},{"include":"#keyword"},{"include":"#operator"},{"include":"#boolean"},{"include":"#object-literal"},{"begin":"\\\\[","end":"]","name":"meta.bracket.list","patterns":[{"include":"#term"},{"match":",","name":"punctuation.separator.sequence.list"}]},{"begin":"\\\\{","end":"}","name":"meta.bracket.dict","patterns":[{"include":"#term"},{"match":",","name":"punctuation.separator.sequence.dict"}]},{"begin":"\\\\(","end":"\\\\)","name":"meta.parens","patterns":[{"include":"#term"}]}]},"test-block":{"begin":"(test)\\\\s+(\\"[^\\"]*\\")\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control"},"2":{"name":"string.quoted.double"}},"end":"}","name":"meta.test-block","patterns":[{"begin":"(setup)\\\\s*\\\\{","beginCaptures":{"1":{"name":"keyword.control"}},"end":"}","name":"meta.test-setup","patterns":[{"include":"#rule"},{"include":"#comment"},{"include":"#fixture"}]},{"include":"#rule"},{"match":"\\\\b(assert(?:|_not))\\\\b","name":"keyword.other"},{"include":"#comment"},{"name":"meta.iff-rule","patterns":[{"include":"#rule-functor"},{"begin":"\\\\biff\\\\b","beginCaptures":{"0":{"name":"keyword.control"}},"end":";","patterns":[{"include":"#term"}]},{"match":";"}]}]}},"scopeName":"source.polar"}'))];export{e as default}; diff --git a/docs/assets/popover-DtnzNVk-.js b/docs/assets/popover-DtnzNVk-.js new file mode 100644 index 0000000..ffadc50 --- /dev/null +++ b/docs/assets/popover-DtnzNVk-.js @@ -0,0 +1 @@ +import{s as E,t as F}from"./chunk-LvLJmgfZ.js";import{t as D}from"./react-BGmjiNul.js";import{t as Q}from"./compiler-runtime-DeeZ7FnK.js";import{r as S}from"./useEventListener-COkmyg1v.js";import{t as W}from"./jsx-runtime-DN_bIXfG.js";import{t as X}from"./cn-C1rgT0yh.js";import{E as Y,S as ee,_ as N,a as oe,c as re,d as te,f as ne,i as ae,m as se,o as ie,r as le,s as ue,t as de,u as ce,w as C,x as k,y as pe}from"./Combination-D1TsGrBC.js";import{a as fe,c as I,i as M,o as ve,s as he}from"./dist-CBrDuocE.js";var me=F((o=>{var t=D();function e(l,d){return l===d&&(l!==0||1/l==1/d)||l!==l&&d!==d}var a=typeof Object.is=="function"?Object.is:e,r=t.useState,n=t.useEffect,s=t.useLayoutEffect,i=t.useDebugValue;function p(l,d){var v=d(),w=r({inst:{value:v,getSnapshot:d}}),f=w[0].inst,x=w[1];return s(function(){f.value=v,f.getSnapshot=d,h(f)&&x({inst:f})},[l,v,d]),n(function(){return h(f)&&x({inst:f}),l(function(){h(f)&&x({inst:f})})},[l]),i(v),v}function h(l){var d=l.getSnapshot;l=l.value;try{var v=d();return!a(l,v)}catch{return!0}}function m(l,d){return d()}var g=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?m:p;o.useSyncExternalStore=t.useSyncExternalStore===void 0?g:t.useSyncExternalStore})),ge=F(((o,t)=>{t.exports=me()})),c=E(D(),1),u=E(W(),1),_="Popover",[K,Ze]=Y(_,[I]),O=I(),[xe,P]=K(_),T=o=>{let{__scopePopover:t,children:e,open:a,defaultOpen:r,onOpenChange:n,modal:s=!1}=o,i=O(t),p=c.useRef(null),[h,m]=c.useState(!1),[g,l]=ee({prop:a,defaultProp:r??!1,onChange:n,caller:_});return(0,u.jsx)(he,{...i,children:(0,u.jsx)(xe,{scope:t,contentId:ne(),triggerRef:p,open:g,onOpenChange:l,onOpenToggle:c.useCallback(()=>l(d=>!d),[l]),hasCustomAnchor:h,onCustomAnchorAdd:c.useCallback(()=>m(!0),[]),onCustomAnchorRemove:c.useCallback(()=>m(!1),[]),modal:s,children:e})})};T.displayName=_;var z="PopoverAnchor",H=c.forwardRef((o,t)=>{let{__scopePopover:e,...a}=o,r=P(z,e),n=O(e),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=r;return c.useEffect(()=>(s(),()=>i()),[s,i]),(0,u.jsx)(M,{...n,...a,ref:t})});H.displayName=z;var L="PopoverTrigger",U=c.forwardRef((o,t)=>{let{__scopePopover:e,...a}=o,r=P(L,e),n=O(e),s=S(t,r.triggerRef),i=(0,u.jsx)(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":B(r.open),...a,ref:s,onClick:C(o.onClick,r.onOpenToggle)});return r.hasCustomAnchor?i:(0,u.jsx)(M,{asChild:!0,...n,children:i})});U.displayName=L;var R="PopoverPortal",[Pe,we]=K(R,{forceMount:void 0}),V=o=>{let{__scopePopover:t,forceMount:e,children:a,container:r}=o,n=P(R,t);return(0,u.jsx)(Pe,{scope:t,forceMount:e,children:(0,u.jsx)(k,{present:e||n.open,children:(0,u.jsx)(te,{asChild:!0,container:r,children:a})})})};V.displayName=R;var y="PopoverContent",Z=c.forwardRef((o,t)=>{let e=we(y,o.__scopePopover),{forceMount:a=e.forceMount,...r}=o,n=P(y,o.__scopePopover);return(0,u.jsx)(k,{present:a||n.open,children:n.modal?(0,u.jsx)(Ce,{...r,ref:t}):(0,u.jsx)(Oe,{...r,ref:t})})});Z.displayName=y;var ye=pe("PopoverContent.RemoveScroll"),Ce=c.forwardRef((o,t)=>{let e=P(y,o.__scopePopover),a=c.useRef(null),r=S(t,a),n=c.useRef(!1);return c.useEffect(()=>{let s=a.current;if(s)return le(s)},[]),(0,u.jsx)(de,{as:ye,allowPinchZoom:!0,children:(0,u.jsx)($,{...o,ref:r,trapFocus:e.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:C(o.onCloseAutoFocus,s=>{var i;s.preventDefault(),n.current||((i=e.triggerRef.current)==null||i.focus())}),onPointerDownOutside:C(o.onPointerDownOutside,s=>{let i=s.detail.originalEvent,p=i.button===0&&i.ctrlKey===!0;n.current=i.button===2||p},{checkForDefaultPrevented:!1}),onFocusOutside:C(o.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Oe=c.forwardRef((o,t)=>{let e=P(y,o.__scopePopover),a=c.useRef(!1),r=c.useRef(!1);return(0,u.jsx)($,{...o,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var s,i;(s=o.onCloseAutoFocus)==null||s.call(o,n),n.defaultPrevented||(a.current||((i=e.triggerRef.current)==null||i.focus()),n.preventDefault()),a.current=!1,r.current=!1},onInteractOutside:n=>{var i,p;(i=o.onInteractOutside)==null||i.call(o,n),n.defaultPrevented||(a.current=!0,n.detail.originalEvent.type==="pointerdown"&&(r.current=!0));let s=n.target;(p=e.triggerRef.current)!=null&&p.contains(s)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&r.current&&n.preventDefault()}})}),$=c.forwardRef((o,t)=>{let{__scopePopover:e,trapFocus:a,onOpenAutoFocus:r,onCloseAutoFocus:n,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:p,onFocusOutside:h,onInteractOutside:m,...g}=o,l=P(y,e),d=O(e);return oe(),(0,u.jsx)(ae,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:r,onUnmountAutoFocus:n,children:(0,u.jsx)(se,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:m,onEscapeKeyDown:i,onPointerDownOutside:p,onFocusOutside:h,onDismiss:()=>l.onOpenChange(!1),children:(0,u.jsx)(ve,{"data-state":B(l.open),role:"dialog",id:l.contentId,...d,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),q="PopoverClose",A=c.forwardRef((o,t)=>{let{__scopePopover:e,...a}=o,r=P(q,e);return(0,u.jsx)(N.button,{type:"button",...a,ref:t,onClick:C(o.onClick,()=>r.onOpenChange(!1))})});A.displayName=q;var be="PopoverArrow",je=c.forwardRef((o,t)=>{let{__scopePopover:e,...a}=o,r=O(e);return(0,u.jsx)(fe,{...r,...a,ref:t})});je.displayName=be;function B(o){return o?"open":"closed"}var _e=T,Re=U,Ae=V,G=Z,Ee=A,Fe=Q(),De=_e,Se=Re,Ne=ue(Ae),ke=Ee,Ie=re(G),J=c.forwardRef((o,t)=>{let e=(0,Fe.c)(22),a,r,n,s,i,p;e[0]===o?(a=e[1],r=e[2],n=e[3],s=e[4],i=e[5],p=e[6]):({className:a,align:n,sideOffset:s,portal:i,scrollable:p,...r}=o,e[0]=o,e[1]=a,e[2]=r,e[3]=n,e[4]=s,e[5]=i,e[6]=p);let h=n===void 0?"center":n,m=s===void 0?4:s,g=i===void 0?!0:i,l=p===void 0?!1:p,d=l&&"overflow-auto",v;e[7]!==a||e[8]!==d?(v=X("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a,d),e[7]=a,e[8]=d,e[9]=v):v=e[9];let w=l?`calc(var(--radix-popover-content-available-height) - ${ie}px)`:void 0,f;e[10]!==r.style||e[11]!==w?(f={...r.style,maxHeight:w},e[10]=r.style,e[11]=w,e[12]=f):f=e[12];let x;e[13]!==h||e[14]!==r||e[15]!==t||e[16]!==m||e[17]!==v||e[18]!==f?(x=(0,u.jsx)(ce,{children:(0,u.jsx)(Ie,{ref:t,align:h,sideOffset:m,className:v,style:f,...r})}),e[13]=h,e[14]=r,e[15]=t,e[16]=m,e[17]=v,e[18]=f,e[19]=x):x=e[19];let b=x;if(g){let j;return e[20]===b?j=e[21]:(j=(0,u.jsx)(Ne,{children:b}),e[20]=b,e[21]=j),j}return b});J.displayName=G.displayName;export{H as a,Se as i,ke as n,A as o,J as r,ge as s,De as t}; diff --git a/docs/assets/postcss-Bdp-ioMS.js b/docs/assets/postcss-Bdp-ioMS.js new file mode 100644 index 0000000..9859809 --- /dev/null +++ b/docs/assets/postcss-Bdp-ioMS.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"PostCSS","fileTypes":["pcss","postcss"],"foldingStartMarker":"/\\\\*|^#|^\\\\*|^\\\\b|^\\\\.","foldingStopMarker":"\\\\*/|^\\\\s*$","name":"postcss","patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.postcss","patterns":[{"include":"#comment-tag"}]},{"include":"#double-slash"},{"include":"#double-quoted"},{"include":"#single-quoted"},{"include":"#interpolation"},{"include":"#placeholder-selector"},{"include":"#variable"},{"include":"#variable-root-css"},{"include":"#numeric"},{"include":"#unit"},{"include":"#flag"},{"include":"#dotdotdot"},{"begin":"@include","captures":{"0":{"name":"keyword.control.at-rule.css.postcss"}},"end":"(?=[\\\\n(;{])","name":"support.function.name.postcss.library"},{"begin":"@(?:mixin|function)","captures":{"0":{"name":"keyword.control.at-rule.css.postcss"}},"end":"$\\\\n?|(?=[({])","name":"support.function.name.postcss.no-completions","patterns":[{"match":"[-\\\\w]+","name":"entity.name.function"}]},{"match":"(?<=@import)\\\\s[-*./\\\\w]+","name":"string.quoted.double.css.postcss"},{"begin":"@","end":"$\\\\n?|\\\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)([,\\\\s]))|(?=;)","name":"keyword.control.at-rule.css.postcss"},{"begin":"#","end":"$\\\\n?|(?=[(),.;>\\\\[{\\\\s])","name":"entity.other.attribute-name.id.css.postcss","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\.|(?<=&)([-_])","end":"$\\\\n?|(?=[(),;>\\\\[{\\\\s])","name":"entity.other.attribute-name.class.css.postcss","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\[","end":"]","name":"entity.other.attribute-selector.postcss","patterns":[{"include":"#double-quoted"},{"include":"#single-quoted"},{"match":"[$*^~]","name":"keyword.other.regex.postcss"}]},{"match":"(?<=[])]|not\\\\(|[*>]|>\\\\s):[-:a-z]+|(:[-:])[-:a-z]+","name":"entity.other.attribute-name.pseudo-class.css.postcss"},{"begin":":","end":"$\\\\n?|(?=;|\\\\s\\\\(|and\\\\(|[{}]|\\\\),)","name":"meta.property-list.css.postcss","patterns":[{"include":"#double-slash"},{"include":"#double-quoted"},{"include":"#single-quoted"},{"include":"#interpolation"},{"include":"#variable"},{"include":"#rgb-value"},{"include":"#numeric"},{"include":"#unit"},{"include":"#flag"},{"include":"#function"},{"include":"#function-content"},{"include":"#function-content-var"},{"include":"#operator"},{"include":"#parent-selector"},{"include":"#property-value"}]},{"include":"#rgb-value"},{"include":"#function"},{"include":"#function-content"},{"begin":"(?<![-(])\\\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|[ux])\\\\b(?![-)]|:\\\\s)|&","end":"(?=[-(),.;>\\\\[_{\\\\s])","name":"entity.name.tag.css.postcss.symbol","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"include":"#operator"},{"match":"[-a-z]+((?=:|#\\\\{))","name":"support.type.property-name.css.postcss"},{"include":"#reserved-words"},{"include":"#property-value"}],"repository":{"comment-tag":{"begin":"\\\\{\\\\{","end":"}}","name":"comment.tags.postcss","patterns":[{"match":"[-\\\\w]+","name":"comment.tag.postcss"}]},"dotdotdot":{"match":"\\\\.{3}","name":"variable.other"},"double-quoted":{"begin":"\\"","end":"\\"","name":"string.quoted.double.css.postcss","patterns":[{"include":"#quoted-interpolation"}]},"double-slash":{"begin":"//","end":"$","name":"comment.line.postcss","patterns":[{"include":"#comment-tag"}]},"flag":{"match":"!(important|default|optional|global)","name":"keyword.other.important.css.postcss"},"function":{"match":"(?<=[(,:|\\\\s])(?!url|format|attr)[-\\\\w][-\\\\w]*(?=\\\\()","name":"support.function.name.postcss"},"function-content":{"match":"(?<=url\\\\(|format\\\\(|attr\\\\().+?(?=\\\\))","name":"string.quoted.double.css.postcss"},"function-content-var":{"match":"(?<=var\\\\()[-\\\\w]+(?=\\\\))","name":"variable.parameter.postcss"},"interpolation":{"begin":"#\\\\{","end":"}","name":"support.function.interpolation.postcss","patterns":[{"include":"#variable"},{"include":"#numeric"},{"include":"#operator"},{"include":"#unit"},{"include":"#double-quoted"},{"include":"#single-quoted"}]},"numeric":{"match":"([-.])?[0-9]+(\\\\.[0-9]+)?","name":"constant.numeric.css.postcss"},"operator":{"match":"\\\\+|\\\\s-\\\\s|\\\\s-(?=\\\\$)|(?<=\\\\()-(?=\\\\$)|\\\\s-(?=\\\\()|[!%*/<=>~]","name":"keyword.operator.postcss"},"parent-selector":{"match":"&","name":"entity.name.tag.css.postcss"},"placeholder-selector":{"begin":"(?<!\\\\d)%(?!\\\\d)","end":"$\\\\n?|\\\\s|(?=[;{])","name":"entity.other.attribute-name.placeholder-selector.postcss"},"property-value":{"match":"[-\\\\w]+","name":"meta.property-value.css.postcss, support.constant.property-value.css.postcss"},"pseudo-class":{"match":":[-:a-z]+","name":"entity.other.attribute-name.pseudo-class.css.postcss"},"quoted-interpolation":{"begin":"#\\\\{","end":"}","name":"support.function.interpolation.postcss","patterns":[{"include":"#variable"},{"include":"#numeric"},{"include":"#operator"},{"include":"#unit"}]},"reserved-words":{"match":"\\\\b(false|from|in|not|null|through|to|true)\\\\b","name":"support.type.property-name.css.postcss"},"rgb-value":{"match":"(#)(\\\\h{3}|\\\\h{6})\\\\b","name":"constant.other.color.rgb-value.css.postcss"},"single-quoted":{"begin":"'","end":"'","name":"string.quoted.single.css.postcss","patterns":[{"include":"#quoted-interpolation"}]},"unit":{"match":"(?<=[}\\\\d])(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|%)","name":"keyword.other.unit.css.postcss"},"variable":{"match":"\\\\$[-\\\\w]+","name":"variable.parameter.postcss"},"variable-root-css":{"match":"(?<!&)--[-\\\\w]+","name":"variable.parameter.postcss"}},"scopeName":"source.css.postcss"}`))];export{e as t}; diff --git a/docs/assets/postcss-DjoFGpXH.js b/docs/assets/postcss-DjoFGpXH.js new file mode 100644 index 0000000..6bae0b7 --- /dev/null +++ b/docs/assets/postcss-DjoFGpXH.js @@ -0,0 +1 @@ +import{t}from"./postcss-Bdp-ioMS.js";export{t as default}; diff --git a/docs/assets/powerquery-DwfWEfGM.js b/docs/assets/powerquery-DwfWEfGM.js new file mode 100644 index 0000000..fa86ad9 --- /dev/null +++ b/docs/assets/powerquery-DwfWEfGM.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"PowerQuery","fileTypes":["pq","pqm"],"name":"powerquery","patterns":[{"include":"#Noise"},{"include":"#LiteralExpression"},{"include":"#Keywords"},{"include":"#ImplicitVariable"},{"include":"#IntrinsicVariable"},{"include":"#Operators"},{"include":"#DotOperators"},{"include":"#TypeName"},{"include":"#RecordExpression"},{"include":"#Punctuation"},{"include":"#QuotedIdentifier"},{"include":"#Identifier"}],"repository":{"BlockComment":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.powerquery"},"DecimalNumber":{"match":"(?<![\\\\d\\\\w])(\\\\d*\\\\.\\\\d+)\\\\b","name":"constant.numeric.decimal.powerquery"},"DotOperators":{"captures":{"1":{"name":"keyword.operator.ellipsis.powerquery"},"2":{"name":"keyword.operator.list.powerquery"}},"match":"(?<!\\\\.)(?:(\\\\.\\\\.\\\\.)|(\\\\.\\\\.))(?!\\\\.)"},"EscapeSequence":{"begin":"#\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.escapesequence.begin.powerquery"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.escapesequence.end.powerquery"}},"name":"constant.character.escapesequence.powerquery","patterns":[{"match":"(#|\\\\h{4}|\\\\h{8}|cr|lf|tab)(?:,(#|\\\\h{4}|\\\\h{8}|cr|lf|tab))*"},{"match":"[^)]","name":"invalid.illegal.escapesequence.powerquery"}]},"FloatNumber":{"match":"(\\\\d*\\\\.)?\\\\d+([Ee])([-+])?\\\\d+","name":"constant.numeric.float.powerquery"},"HexNumber":{"match":"0([Xx])\\\\h+","name":"constant.numeric.integer.hexadecimal.powerquery"},"Identifier":{"captures":{"1":{"name":"keyword.operator.inclusiveidentifier.powerquery"},"2":{"name":"entity.name.powerquery"}},"match":"(?<![._\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\d\\\\p{Pc}\\\\p{Mn}\\\\p{Mc}\\\\p{Cf}])(@?)([_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}][_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\d\\\\p{Pc}\\\\p{Mn}\\\\p{Mc}\\\\p{Cf}]*(?:\\\\.[_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}][_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\d\\\\p{Pc}\\\\p{Mn}\\\\p{Mc}\\\\p{Cf}])*)\\\\b"},"ImplicitVariable":{"match":"\\\\b_\\\\b","name":"keyword.operator.implicitvariable.powerquery"},"InclusiveIdentifier":{"captures":{"0":{"name":"inclusiveidentifier.powerquery"}},"match":"@"},"IntNumber":{"captures":{"1":{"name":"constant.numeric.integer.powerquery"}},"match":"\\\\b(\\\\d+)\\\\b"},"IntrinsicVariable":{"captures":{"1":{"name":"constant.language.intrinsicvariable.powerquery"}},"match":"(?<![\\\\d\\\\w])(#s(?:ections|hared))\\\\b"},"Keywords":{"captures":{"1":{"name":"keyword.operator.word.logical.powerquery"},"2":{"name":"keyword.control.conditional.powerquery"},"3":{"name":"keyword.control.exception.powerquery"},"4":{"name":"keyword.other.powerquery"},"5":{"name":"keyword.powerquery"}},"match":"\\\\b(?:(and|or|not)|(if|then|else)|(try|otherwise)|(as|each|in|is|let|meta|type|error)|(s(?:ection|hared)))\\\\b"},"LineComment":{"match":"//.*","name":"comment.line.double-slash.powerquery"},"LiteralExpression":{"patterns":[{"include":"#String"},{"include":"#NumericConstant"},{"include":"#LogicalConstant"},{"include":"#NullConstant"},{"include":"#FloatNumber"},{"include":"#DecimalNumber"},{"include":"#HexNumber"},{"include":"#IntNumber"}]},"LogicalConstant":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.logical.powerquery"},"Noise":{"patterns":[{"include":"#BlockComment"},{"include":"#LineComment"},{"include":"#Whitespace"}]},"NullConstant":{"match":"\\\\b(null)\\\\b","name":"constant.language.null.powerquery"},"NumericConstant":{"captures":{"1":{"name":"constant.language.numeric.float.powerquery"}},"match":"(?<![\\\\d\\\\w])(#(?:infinity|nan))\\\\b"},"Operators":{"captures":{"1":{"name":"keyword.operator.function.powerquery"},"2":{"name":"keyword.operator.assignment-or-comparison.powerquery"},"3":{"name":"keyword.operator.comparison.powerquery"},"4":{"name":"keyword.operator.combination.powerquery"},"5":{"name":"keyword.operator.arithmetic.powerquery"},"6":{"name":"keyword.operator.sectionaccess.powerquery"},"7":{"name":"keyword.operator.optional.powerquery"}},"match":"(=>)|(=)|(<>|[<>]|<=|>=)|(&)|([-*+/])|(!)|(\\\\?)"},"Punctuation":{"captures":{"1":{"name":"punctuation.separator.powerquery"},"2":{"name":"punctuation.section.parens.begin.powerquery"},"3":{"name":"punctuation.section.parens.end.powerquery"},"4":{"name":"punctuation.section.braces.begin.powerquery"},"5":{"name":"punctuation.section.braces.end.powerquery"}},"match":"(,)|(\\\\()|(\\\\))|(\\\\{)|(})"},"QuotedIdentifier":{"begin":"#\\"","beginCaptures":{"0":{"name":"punctuation.definition.quotedidentifier.begin.powerquery"}},"end":"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.definition.quotedidentifier.end.powerquery"}},"name":"entity.name.powerquery","patterns":[{"match":"\\"\\"","name":"constant.character.escape.quote.powerquery"},{"include":"#EscapeSequence"}]},"RecordExpression":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.powerquery"}},"contentName":"meta.recordexpression.powerquery","end":"]","endCaptures":{"0":{"name":"punctuation.section.brackets.end.powerquery"}},"patterns":[{"include":"$self"}]},"String":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powerquery"}},"end":"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.powerquery"}},"name":"string.quoted.double.powerquery","patterns":[{"match":"\\"\\"","name":"constant.character.escape.quote.powerquery"},{"include":"#EscapeSequence"}]},"TypeName":{"captures":{"1":{"name":"storage.modifier.powerquery"},"2":{"name":"storage.type.powerquery"}},"match":"\\\\b(?:(optional|nullable)|(action|any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|null|number|record|table|text|type))\\\\b"},"Whitespace":{"match":"\\\\s+"}},"scopeName":"source.powerquery"}'))];export{e as default}; diff --git a/docs/assets/powershell-BTseEwiJ.js b/docs/assets/powershell-BTseEwiJ.js new file mode 100644 index 0000000..431125b --- /dev/null +++ b/docs/assets/powershell-BTseEwiJ.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"PowerShell","name":"powershell","patterns":[{"begin":"<#","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.powershell"}},"end":"#>","endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.powershell"}},"name":"comment.block.powershell","patterns":[{"include":"#commentEmbeddedDocs"}]},{"match":"[2-6]>&1|>>?|<<|[<>]|>\\\\||[1-6]>|[1-6]>>","name":"keyword.operator.redirection.powershell"},{"include":"#commands"},{"include":"#commentLine"},{"include":"#variable"},{"include":"#subexpression"},{"include":"#function"},{"include":"#attribute"},{"include":"#UsingDirective"},{"include":"#type"},{"include":"#hashtable"},{"include":"#doubleQuotedString"},{"include":"#scriptblock"},{"include":"#doubleQuotedStringEscapes"},{"applyEndPatternLast":true,"begin":"[\'\u2018-\u201B]","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"end":"[\'\u2018-\u201B]","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.single.powershell","patterns":[{"match":"[\'\u2018-\u201B]{2}","name":"constant.character.escape.powershell"}]},{"begin":"(@[\\"\u201C\u201D\u201E])\\\\s*$","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"end":"^[\\"\u201C\u201D\u201E]@","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.double.heredoc.powershell","patterns":[{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"include":"#interpolation"}]},{"begin":"(@[\'\u2018-\u201B])\\\\s*$","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"end":"^[\'\u2018-\u201B]@","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.single.heredoc.powershell"},{"include":"#numericConstant"},{"begin":"(@)(\\\\()","beginCaptures":{"1":{"name":"keyword.other.array.begin.powershell"},"2":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"name":"meta.group.array-expression.powershell","patterns":[{"include":"$self"}]},{"begin":"((\\\\$))(\\\\()","beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.subexpression.powershell"},"3":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"name":"meta.group.complex.subexpression.powershell","patterns":[{"include":"$self"}]},{"match":"\\\\b((([-.0-9A-Z_a-z]+)\\\\.(?i:exe|com|cmd|bat)))\\\\b","name":"support.function.powershell"},{"match":"(?<![-.\\\\w])((?i:begin|break|catch|clean|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|[%?])(?!\\\\w)","name":"keyword.control.powershell"},{"match":"(?<![-\\\\w]|[^)]\\\\.)((?i:(foreach|where)(?!-object))|[%?])(?!\\\\w)","name":"keyword.control.powershell"},{"begin":"(?<!\\\\w)(--%)(?!\\\\w)","beginCaptures":{"1":{"name":"keyword.control.powershell"}},"end":"$","patterns":[{"match":".+","name":"string.unquoted.powershell"}]},{"match":"(?<!\\\\w)((?i:hidden|static))(?!\\\\w)","name":"storage.modifier.powershell"},{"captures":{"1":{"name":"storage.type.powershell"},"2":{"name":"entity.name.function"}},"match":"(?<![-\\\\w])((?i:class)|[%?])\\\\s+([-_\\\\p{L}\\\\d]?{1,})\\\\b"},{"match":"(?<!\\\\w)-(?i:is(?:not)?|as)\\\\b","name":"keyword.operator.comparison.powershell"},{"match":"(?<!\\\\w)-(?i:[ci]?(?:eq|ne|[gl][et]|(?:not)?(?:like|match|contains|in)|replace))(?!\\\\p{L})","name":"keyword.operator.comparison.powershell"},{"match":"(?<!\\\\w)-(?i:join|split)(?!\\\\p{L})|!","name":"keyword.operator.unary.powershell"},{"match":"(?<!\\\\w)-(?i:and|or|not|xor)(?!\\\\p{L})|!","name":"keyword.operator.logical.powershell"},{"match":"(?<!\\\\w)-(?i:band|bor|bnot|bxor|shl|shr)(?!\\\\p{L})","name":"keyword.operator.bitwise.powershell"},{"match":"(?<!\\\\w)-(?i:f)(?!\\\\p{L})","name":"keyword.operator.string-format.powershell"},{"match":"[-%*+/]?=|[-%*+/]","name":"keyword.operator.assignment.powershell"},{"match":"\\\\|{2}|&{2}|;","name":"punctuation.terminator.statement.powershell"},{"match":"&|(?<!\\\\w)\\\\.(?= )|[,`|]","name":"keyword.operator.other.powershell"},{"match":"(?<!\\\\s|^)\\\\.\\\\.(?=-?\\\\d|[$(])","name":"keyword.operator.range.powershell"}],"repository":{"RequiresDirective":{"begin":"(?<=#)(?i:(requires))\\\\s","beginCaptures":{"0":{"name":"keyword.control.requires.powershell"}},"end":"$","name":"meta.requires.powershell","patterns":[{"match":"-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version|Assembly|PSEdition)","name":"keyword.other.powershell"},{"match":"(?<!-)\\\\b\\\\p{L}+|\\\\d+(?:\\\\.\\\\d+)*","name":"variable.parameter.powershell"},{"include":"#hashtable"}]},"UsingDirective":{"captures":{"1":{"name":"keyword.control.using.powershell"},"2":{"name":"keyword.other.powershell"},"3":{"name":"variable.parameter.powershell"}},"match":"(?<!\\\\w)(?i:(using))\\\\s+(?i:(namespace|module))\\\\s+(?i:((?:\\\\w+\\\\.?)+))"},"attribute":{"begin":"(\\\\[)\\\\s*\\\\b(?i)(cmdletbinding|alias|outputtype|parameter|validatenotnull|validatenotnullorempty|validatecount|validateset|allownull|allowemptycollection|allowemptystring|validatescript|validaterange|validatepattern|validatelength|supportswildcards)\\\\b","beginCaptures":{"1":{"name":"punctuation.section.bracket.begin.powershell"},"2":{"name":"support.function.attribute.powershell"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.section.bracket.end.powershell"}},"name":"meta.attribute.powershell","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"patterns":[{"include":"$self"},{"captures":{"1":{"name":"variable.parameter.attribute.powershell"},"2":{"name":"keyword.operator.assignment.powershell"}},"match":"(?i)\\\\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\\\\b\\\\s+{0,1}(=)?"}]}]},"commands":{"patterns":[{"match":"(?:([-:\\\\\\\\_\\\\p{L}\\\\d])*\\\\\\\\)?\\\\b(?i:Add|Approve|Assert|Backup|Block|Build|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Deploy|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Mount|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Write)-.+?(?:\\\\.(?i:exe|cmd|bat|ps1))?\\\\b","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:foreach-object)(?!\\\\w)","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:where-object)(?!\\\\w)","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:sort-object)(?!\\\\w)","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:tee-object)(?!\\\\w)","name":"support.function.powershell"}]},"commentEmbeddedDocs":{"patterns":[{"captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"}},"match":"(?:^|\\\\G)(?i:\\\\s*(\\\\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\\\\s*$","name":"comment.documentation.embedded.powershell"},{"captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"},"3":{"name":"keyword.operator.documentation.powershell"}},"match":"(?:^|\\\\G)(?i:\\\\s*(\\\\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE))\\\\s+(.+?)\\\\s*$","name":"comment.documentation.embedded.powershell"}]},"commentLine":{"begin":"(?<![-\\\\\\\\`])(#)#*","captures":{"1":{"name":"punctuation.definition.comment.powershell"}},"end":"$\\\\n?","name":"comment.line.powershell","patterns":[{"include":"#commentEmbeddedDocs"},{"include":"#RequiresDirective"}]},"doubleQuotedString":{"applyEndPatternLast":true,"begin":"[\\"\u201C\u201D\u201E]","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"end":"[\\"\u201C\u201D\u201E]","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.double.powershell","patterns":[{"match":"(?i)\\\\b[-%+.0-9A-Z_]+@[-.0-9A-Z]+\\\\.[A-Z]{2,64}\\\\b"},{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"match":"[\\"\u201C\u201D\u201E]{2}","name":"constant.character.escape.powershell"},{"include":"#interpolation"},{"match":"`\\\\s*$","name":"keyword.other.powershell"}]},"doubleQuotedStringEscapes":{"patterns":[{"match":"`[\\"$\'0`abefnrtv\u2018-\u201E]","name":"constant.character.escape.powershell"},{"include":"#unicodeEscape"}]},"function":{"begin":"^\\\\s*+(?i)(function|filter|configuration|workflow)\\\\s+(?:(global|local|script|private):)?([-._\\\\p{L}\\\\d]+)","beginCaptures":{"0":{"name":"meta.function.powershell"},"1":{"name":"storage.type.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"3":{"name":"entity.name.function.powershell"}},"end":"(?=[({])","patterns":[{"include":"#commentLine"}]},"hashtable":{"begin":"(@)(\\\\{)","beginCaptures":{"1":{"name":"keyword.other.hashtable.begin.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.braces.end.powershell"}},"name":"meta.hashtable.powershell","patterns":[{"captures":{"1":{"name":"punctuation.definition.string.begin.powershell"},"2":{"name":"variable.other.readwrite.powershell"},"3":{"name":"punctuation.definition.string.end.powershell"},"4":{"name":"keyword.operator.assignment.powershell"}},"match":"\\\\b([\\"\']?)(\\\\w+)([\\"\']?)\\\\s+{0,1}(=)\\\\s+{0,1}","name":"meta.hashtable.assignment.powershell"},{"include":"#scriptblock"},{"include":"$self"}]},"interpolation":{"begin":"(((\\\\$)))((\\\\())","beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.substatement.powershell"},"3":{"name":"punctuation.section.embedded.substatement.begin.powershell"},"4":{"name":"punctuation.section.group.begin.powershell"},"5":{"name":"punctuation.section.embedded.substatement.begin.powershell"}},"contentName":"interpolated.complex.source.powershell","end":"(\\\\))","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"},"1":{"name":"punctuation.section.embedded.substatement.end.powershell"}},"name":"meta.embedded.substatement.powershell","patterns":[{"include":"$self"}]},"numericConstant":{"patterns":[{"captures":{"1":{"name":"constant.numeric.hex.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?0[Xx][_\\\\h]+(?:[LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+{0,1}\\\\.[0-9_]+(?:[Ee][0-9]+)?[DFMdfm]?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.octal.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?0[Bb][01_]+(?:[LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+[Ee][0-9_]?+[DFMdfm]?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+\\\\.[Ee][0-9_]?+[DFMdfm]?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+\\\\.?[DFMdfm])((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+\\\\.?(?:[LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[gkmpt]b)?)\\\\b"}]},"scriptblock":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.braces.begin.powershell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.braces.end.powershell"}},"name":"meta.scriptblock.powershell","patterns":[{"include":"$self"}]},"subexpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"name":"meta.group.simple.subexpression.powershell","patterns":[{"include":"$self"}]},"type":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.bracket.begin.powershell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.bracket.end.powershell"}},"patterns":[{"match":"(?!\\\\d+|\\\\.)[.\\\\p{L}\\\\p{N}]+","name":"storage.type.powershell"},{"include":"$self"}]},"unicodeEscape":{"patterns":[{"match":"`u\\\\{(?:(?:10)?(\\\\h){1,4}|0?\\\\g<1>{1,5})}","name":"constant.character.escape.powershell"},{"match":"`u(?:\\\\{\\\\h{0,6}.)?","name":"invalid.character.escape.powershell"}]},"variable":{"patterns":[{"captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}},"match":"(\\\\$)(?i:(False|Null|True))\\\\b"},{"captures":{"0":{"name":"support.constant.variable.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?\\\\b"},{"captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)([$?^]|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\\\b)((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?\\\\b"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:([$@])(global|local|private|script|using|workflow):([_\\\\p{L}\\\\d]+))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"storage.modifier.scope.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(\\\\{)(global|local|private|script|using|workflow):([^}]*[^`}])(}))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:([$@])([_\\\\p{L}\\\\d]+:)?([_\\\\p{L}\\\\d]+))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(\\\\{)([_\\\\p{L}\\\\d]+:)?([^}]*[^`}])(}))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"}]},"variableNoProperty":{"patterns":[{"captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}},"match":"(\\\\$)(?i:(False|Null|True))\\\\b"},{"captures":{"0":{"name":"support.constant.variable.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\\\\b"},{"captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)([$?^]|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\\\b)"},{"captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))\\\\b"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(global|local|private|script|using|workflow):([_\\\\p{L}\\\\d]+))"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"keyword.other.powershell"},"5":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(\\\\{)(global|local|private|script|using|workflow):([^}]*[^`}])(}))"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)([_\\\\p{L}\\\\d]+:)?([_\\\\p{L}\\\\d]+))"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end"}},"match":"(?i:(\\\\$)(\\\\{)([_\\\\p{L}\\\\d]+:)?([^}]*[^`}])(}))"}]}},"scopeName":"source.powershell","aliases":["ps","ps1"]}'))];export{e as default}; diff --git a/docs/assets/powershell-Db7zgjV-.js b/docs/assets/powershell-Db7zgjV-.js new file mode 100644 index 0000000..851ec27 --- /dev/null +++ b/docs/assets/powershell-Db7zgjV-.js @@ -0,0 +1 @@ +function a(e,r){r||(r={});for(var t=r.prefix===void 0?"^":r.prefix,o=r.suffix===void 0?"\\b":r.suffix,n=0;n<e.length;n++)e[n]instanceof RegExp?e[n]=e[n].source:e[n]=e[n].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return RegExp(t+"("+e.join("|")+")"+o,"i")}var p="(?=[^A-Za-z\\d\\-_]|$)",u=/[\w\-:]/,m={keyword:a([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:p}),number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:a([a(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),builtin:a([/[A-Z]:|%|\?/i,a([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),a([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""})],{suffix:p}),punctuation:/[\[\]{},;`\\\.]|@[({]/,variable:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function i(e,r){var t=r.returnStack[r.returnStack.length-1];if(t&&t.shouldReturnFrom(r))return r.tokenize=t.tokenize,r.returnStack.pop(),r.tokenize(e,r);if(e.eatSpace())return null;if(e.eat("("))return r.bracketNesting+=1,"punctuation";if(e.eat(")"))return--r.bracketNesting,"punctuation";for(var o in m)if(e.match(m[o]))return o;var n=e.next();if(n==="'")return d(e,r);if(n==="$")return c(e,r);if(n==='"')return S(e,r);if(n==="<"&&e.eat("#"))return r.tokenize=P,P(e,r);if(n==="#")return e.skipToEnd(),"comment";if(n==="@"){var l=e.eat(/["']/);if(l&&e.eol())return r.tokenize=s,r.startQuote=l[0],s(e,r);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(u))return c(e,r)}return"error"}function d(e,r){for(var t;(t=e.peek())!=null;)if(e.next(),t==="'"&&!e.eat("'"))return r.tokenize=i,"string";return"error"}function S(e,r){for(var t;(t=e.peek())!=null;){if(t==="$")return r.tokenize=v,"string";if(e.next(),t==="`"){e.next();continue}if(t==='"'&&!e.eat('"'))return r.tokenize=i,"string"}return"error"}function v(e,r){return f(e,r,S)}function b(e,r){return r.tokenize=s,r.startQuote='"',s(e,r)}function C(e,r){return f(e,r,b)}function f(e,r,t){if(e.match("$(")){var o=r.bracketNesting;return r.returnStack.push({shouldReturnFrom:function(n){return n.bracketNesting===o},tokenize:t}),r.tokenize=i,r.bracketNesting+=1,"punctuation"}else return e.next(),r.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:t}),r.tokenize=c,r.tokenize(e,r)}function P(e,r){for(var t=!1,o;(o=e.next())!=null;){if(t&&o==">"){r.tokenize=i;break}t=o==="#"}return"comment"}function c(e,r){var t=e.peek();return e.eat("{")?(r.tokenize=g,g(e,r)):t!=null&&t.match(u)?(e.eatWhile(u),r.tokenize=i,"variable"):(r.tokenize=i,"error")}function g(e,r){for(var t;(t=e.next())!=null;)if(t==="}"){r.tokenize=i;break}return"variable"}function s(e,r){var t=r.startQuote;if(e.sol()&&e.match(RegExp(t+"@")))r.tokenize=i;else if(t==='"')for(;!e.eol();){var o=e.peek();if(o==="$")return r.tokenize=C,"string";e.next(),o==="`"&&e.next()}else e.skipToEnd();return"string"}const k={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:i}},token:function(e,r){return r.tokenize(e,r)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}};export{k as t}; diff --git a/docs/assets/powershell-WtGE4kBw.js b/docs/assets/powershell-WtGE4kBw.js new file mode 100644 index 0000000..2252bbe --- /dev/null +++ b/docs/assets/powershell-WtGE4kBw.js @@ -0,0 +1 @@ +import{t as e}from"./powershell-Db7zgjV-.js";export{e as powerShell}; diff --git a/docs/assets/precisionRound-Cl9k9ZmS.js b/docs/assets/precisionRound-Cl9k9ZmS.js new file mode 100644 index 0000000..73483e4 --- /dev/null +++ b/docs/assets/precisionRound-Cl9k9ZmS.js @@ -0,0 +1 @@ +import{a as c}from"./defaultLocale-BLUna9fQ.js";function e(r,t){return r==null||t==null?NaN:r<t?-1:r>t?1:r>=t?0:NaN}function N(r,t){return r==null||t==null?NaN:t<r?-1:t>r?1:t>=r?0:NaN}function g(r){let t,l,f;r.length===2?(t=r===e||r===N?r:x,l=r,f=r):(t=e,l=(n,u)=>e(r(n),u),f=(n,u)=>r(n)-u);function o(n,u,a=0,h=n.length){if(a<h){if(t(u,u)!==0)return h;do{let i=a+h>>>1;l(n[i],u)<0?a=i+1:h=i}while(a<h)}return a}function M(n,u,a=0,h=n.length){if(a<h){if(t(u,u)!==0)return h;do{let i=a+h>>>1;l(n[i],u)<=0?a=i+1:h=i}while(a<h)}return a}function s(n,u,a=0,h=n.length){let i=o(n,u,a,h-1);return i>a&&f(n[i-1],u)>-f(n[i],u)?i-1:i}return{left:o,center:s,right:M}}function x(){return 0}var b=Math.sqrt(50),p=Math.sqrt(10),q=Math.sqrt(2);function m(r,t,l){let f=(t-r)/Math.max(0,l),o=Math.floor(Math.log10(f)),M=f/10**o,s=M>=b?10:M>=p?5:M>=q?2:1,n,u,a;return o<0?(a=10**-o/s,n=Math.round(r*a),u=Math.round(t*a),n/a<r&&++n,u/a>t&&--u,a=-a):(a=10**o*s,n=Math.round(r/a),u=Math.round(t/a),n*a<r&&++n,u*a>t&&--u),u<n&&.5<=l&&l<2?m(r,t,l*2):[n,u,a]}function w(r,t,l){if(t=+t,r=+r,l=+l,!(l>0))return[];if(r===t)return[r];let f=t<r,[o,M,s]=f?m(t,r,l):m(r,t,l);if(!(M>=o))return[];let n=M-o+1,u=Array(n);if(f)if(s<0)for(let a=0;a<n;++a)u[a]=(M-a)/-s;else for(let a=0;a<n;++a)u[a]=(M-a)*s;else if(s<0)for(let a=0;a<n;++a)u[a]=(o+a)/-s;else for(let a=0;a<n;++a)u[a]=(o+a)*s;return u}function d(r,t,l){return t=+t,r=+r,l=+l,m(r,t,l)[2]}function v(r,t,l){t=+t,r=+r,l=+l;let f=t<r,o=f?d(t,r,l):d(r,t,l);return(f?-1:1)*(o<0?1/-o:o)}function y(r){return Math.max(0,-c(Math.abs(r)))}function A(r,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(c(t)/3)))*3-c(Math.abs(r)))}function j(r,t){return r=Math.abs(r),t=Math.abs(t)-r,Math.max(0,c(t)-c(r))+1}export{v as a,e as c,d as i,A as n,w as o,y as r,g as s,j as t}; diff --git a/docs/assets/preload-helper-BW0IMuFq.js b/docs/assets/preload-helper-BW0IMuFq.js new file mode 100644 index 0000000..9777209 --- /dev/null +++ b/docs/assets/preload-helper-BW0IMuFq.js @@ -0,0 +1 @@ +var v="modulepreload",y=function(u,o){return new URL(u,o).href},m={};const E=function(u,o,d){let f=Promise.resolve();if(o&&o.length>0){let p=function(t){return Promise.all(t.map(l=>Promise.resolve(l).then(s=>({status:"fulfilled",value:s}),s=>({status:"rejected",reason:s}))))},n=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),h=(e==null?void 0:e.nonce)||(e==null?void 0:e.getAttribute("nonce"));f=p(o.map(t=>{if(t=y(t,d),t in m)return;m[t]=!0;let l=t.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(d)for(let a=n.length-1;a>=0;a--){let c=n[a];if(c.href===t&&(!l||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${s}`))return;let r=document.createElement("link");if(r.rel=l?"stylesheet":v,l||(r.as="script"),r.crossOrigin="",r.href=t,h&&r.setAttribute("nonce",h),document.head.appendChild(r),l)return new Promise((a,c)=>{r.addEventListener("load",a),r.addEventListener("error",()=>c(Error(`Unable to preload CSS for ${t}`)))})}))}function i(n){let e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=n,window.dispatchEvent(e),!e.defaultPrevented)throw n}return f.then(n=>{for(let e of n||[])e.status==="rejected"&&i(e.reason);return u().catch(i)})};export{E as t}; diff --git a/docs/assets/prisma-CTx95L0F.js b/docs/assets/prisma-CTx95L0F.js new file mode 100644 index 0000000..1471981 --- /dev/null +++ b/docs/assets/prisma-CTx95L0F.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Prisma","fileTypes":["prisma"],"name":"prisma","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#model_block_definition"},{"include":"#config_block_definition"},{"include":"#enum_block_definition"},{"include":"#type_definition"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}},"end":"]","endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}},"name":"source.prisma.array","patterns":[{"include":"#value"}]},"assignment":{"patterns":[{"begin":"^\\\\s*(\\\\w+)\\\\s*(=)\\\\s*","beginCaptures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"keyword.operator.terraform"}},"end":"\\\\n","patterns":[{"include":"#value"},{"include":"#double_comment_inline"}]}]},"attribute":{"captures":{"1":{"name":"entity.name.function.attribute.prisma"}},"match":"(@@?[.\\\\w]+)","name":"source.prisma.attribute"},"attribute_with_arguments":{"begin":"(@@?[.\\\\w]+)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.attribute.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}},"name":"source.prisma.attribute.with_arguments","patterns":[{"include":"#named_argument"},{"include":"#value"}]},"boolean":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.prisma"},"config_block_definition":{"begin":"^\\\\s*(generator|datasource)\\\\s+([A-Za-z]\\\\w*)\\\\s+(\\\\{)","beginCaptures":{"1":{"name":"storage.type.config.prisma"},"2":{"name":"entity.name.type.config.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"end":"\\\\s*}","endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}},"name":"source.prisma.embedded.source","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#assignment"}]},"double_comment":{"begin":"//","end":"$\\\\n?","name":"comment.prisma"},"double_comment_inline":{"match":"//[^\\\\n]*","name":"comment.prisma"},"double_quoted_string":{"begin":"\\"","beginCaptures":{"0":{"name":"string.quoted.double.start.prisma"}},"end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.end.prisma"}},"name":"unnamed","patterns":[{"include":"#string_interpolation"},{"match":"([-%./:=?@\\\\\\\\_\\\\w]+)","name":"string.quoted.double.prisma"}]},"enum_block_definition":{"begin":"^\\\\s*(enum)\\\\s+([A-Za-z]\\\\w*)\\\\s+(\\\\{)","beginCaptures":{"1":{"name":"storage.type.enum.prisma"},"2":{"name":"entity.name.type.enum.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"end":"\\\\s*}","endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}},"name":"source.prisma.embedded.source","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#enum_value_definition"}]},"enum_value_definition":{"patterns":[{"captures":{"1":{"name":"variable.other.assignment.prisma"}},"match":"^\\\\s*(\\\\w+)\\\\s*"},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"field_definition":{"name":"scalar.field","patterns":[{"captures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"invalid.illegal.colon.prisma"},"3":{"name":"variable.language.relations.prisma"},"4":{"name":"support.type.primitive.prisma"},"5":{"name":"keyword.operator.list_type.prisma"},"6":{"name":"keyword.operator.optional_type.prisma"},"7":{"name":"invalid.illegal.required_type.prisma"}},"match":"^\\\\s*(\\\\w+)(\\\\s*:)?\\\\s+((?!(?:Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)\\\\b)\\\\b\\\\w+)?(Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)?(\\\\[])?(\\\\?)?(!)?"},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"functional":{"begin":"(\\\\w+)(\\\\()","beginCaptures":{"1":{"name":"support.function.functional.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}},"name":"source.prisma.functional","patterns":[{"include":"#value"}]},"identifier":{"patterns":[{"match":"\\\\b(\\\\w)+\\\\b","name":"support.constant.constant.prisma"}]},"literal":{"name":"source.prisma.literal","patterns":[{"include":"#boolean"},{"include":"#number"},{"include":"#double_quoted_string"},{"include":"#identifier"}]},"map_key":{"name":"source.prisma.key","patterns":[{"captures":{"1":{"name":"variable.parameter.key.prisma"},"2":{"name":"punctuation.definition.separator.key-value.prisma"}},"match":"(\\\\w+)\\\\s*(:)\\\\s*"}]},"model_block_definition":{"begin":"^\\\\s*(model|type|view)\\\\s+([A-Za-z]\\\\w*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"storage.type.model.prisma"},"2":{"name":"entity.name.type.model.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"end":"\\\\s*}","endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}},"name":"source.prisma.embedded.source","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#field_definition"}]},"multi_line_comment":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.prisma"},"named_argument":{"name":"source.prisma.named_argument","patterns":[{"include":"#map_key"},{"include":"#value"}]},"number":{"match":"((0([Xx])\\\\h*)|([-+])?\\\\b(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([DFLUdfglu]|UL|ul)?\\\\b","name":"constant.numeric.prisma"},"string_interpolation":{"patterns":[{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"keyword.control.interpolation.start.prisma"}},"end":"\\\\s*}","endCaptures":{"0":{"name":"keyword.control.interpolation.end.prisma"}},"name":"source.tag.embedded.source.prisma","patterns":[{"include":"#value"}]}]},"triple_comment":{"begin":"///","end":"$\\\\n?","name":"comment.prisma"},"type_definition":{"patterns":[{"captures":{"1":{"name":"storage.type.type.prisma"},"2":{"name":"entity.name.type.type.prisma"},"3":{"name":"support.type.primitive.prisma"}},"match":"^\\\\s*(type)\\\\s+(\\\\w+)\\\\s*=\\\\s*(\\\\w+)"},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"value":{"name":"source.prisma.value","patterns":[{"include":"#array"},{"include":"#functional"},{"include":"#literal"}]}},"scopeName":"source.prisma"}'))];export{e as default}; diff --git a/docs/assets/process-output-DN66BQYe.js b/docs/assets/process-output-DN66BQYe.js new file mode 100644 index 0000000..aab1103 --- /dev/null +++ b/docs/assets/process-output-DN66BQYe.js @@ -0,0 +1 @@ +import{G as a,K as i,q as m}from"./cells-CmJW_FeD.js";function e(t){return t.mimetype.startsWith("application/vnd.marimo")||t.mimetype==="text/html"?m(a.asString(t.data)):i(a.asString(t.data))}export{e as t}; diff --git a/docs/assets/prolog-DLhZTRQY.js b/docs/assets/prolog-DLhZTRQY.js new file mode 100644 index 0000000..df8125b --- /dev/null +++ b/docs/assets/prolog-DLhZTRQY.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Prolog","fileTypes":["pl","pro"],"name":"prolog","patterns":[{"include":"#comments"},{"begin":"(?<=:-)\\\\s*","end":"(\\\\.)","endCaptures":{"1":{"name":"keyword.control.clause.bodyend.prolog"}},"name":"meta.clause.body.prolog","patterns":[{"include":"#comments"},{"include":"#builtin"},{"include":"#controlandkeywords"},{"include":"#atom"},{"include":"#variable"},{"include":"#constants"},{"match":".","name":"meta.clause.body.prolog"}]},{"begin":"^\\\\s*([a-z][0-9A-Z_a-z]*)(\\\\(?)(?=.*:-.*)","beginCaptures":{"1":{"name":"entity.name.function.clause.prolog"},"2":{"name":"punctuation.definition.parameters.begin"}},"end":"((\\\\)?))\\\\s*(:-)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end"},"3":{"name":"keyword.control.clause.bodybegin.prolog"}},"name":"meta.clause.head.prolog","patterns":[{"include":"#atom"},{"include":"#variable"},{"include":"#constants"}]},{"begin":"^\\\\s*([a-z][0-9A-Z_a-z]*)(\\\\(?)(?=.*-->.*)","beginCaptures":{"1":{"name":"entity.name.function.dcg.prolog"},"2":{"name":"punctuation.definition.parameters.begin"}},"end":"((\\\\)?))\\\\s*(-->)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end"},"3":{"name":"keyword.control.dcg.bodybegin.prolog"}},"name":"meta.dcg.head.prolog","patterns":[{"include":"#atom"},{"include":"#variable"},{"include":"#constants"}]},{"begin":"(?<=-->)\\\\s*","end":"(\\\\.)","endCaptures":{"1":{"name":"keyword.control.dcg.bodyend.prolog"}},"name":"meta.dcg.body.prolog","patterns":[{"include":"#comments"},{"include":"#controlandkeywords"},{"include":"#atom"},{"include":"#variable"},{"include":"#constants"},{"match":".","name":"meta.dcg.body.prolog"}]},{"begin":"^\\\\s*([A-Za-z][0-9A-Z_a-z]*)(\\\\(?)(?!.*(:-|-->).*)","beginCaptures":{"1":{"name":"entity.name.function.fact.prolog"},"2":{"name":"punctuation.definition.parameters.begin"}},"end":"((\\\\)?))\\\\s*(\\\\.)(?!\\\\d+)","endCaptures":{"1":{"name":"punctuation.definition.parameters.end"},"3":{"name":"keyword.control.fact.end.prolog"}},"name":"meta.fact.prolog","patterns":[{"include":"#comments"},{"include":"#atom"},{"include":"#variable"},{"include":"#constants"}]}],"repository":{"atom":{"patterns":[{"match":"(?<![0-9A-Z_a-z])[a-z][0-9A-Z_a-z]*(?!\\\\s*\\\\(|[0-9A-Z_a-z])","name":"constant.other.atom.simple.prolog"},{"match":"'.*?'","name":"constant.other.atom.quoted.prolog"},{"match":"\\\\[]","name":"constant.other.atom.emptylist.prolog"}]},"builtin":{"patterns":[{"match":"\\\\b(op|nl|fail|dynamic|discontiguous|initialization|meta_predicate|module_transparent|multifile|public|thread_local|thread_initialization|volatile)\\\\b","name":"keyword.other"},{"match":"\\\\b(abolish|abort|abs|absolute_file_name|access_file|acosh??|acyclic_term|add_import_module|append|apropos|arg|asinh??|asserta??|assertz|at_end_of_stream|at_halt|atanh??|atom|atom_chars|atom_codes|atom_concat|atom_length|atom_number|atom_prefix|atom_string|atom_to_stem_list|atom_to_term|atomic|atomic_concat|atomic_list_concat|atomics_to_string|attach_packs|attr_portray_hook|attr_unify_hook|attribute_goals|attvar|autoload|autoload_path|b_getval|b_set_dict|b_setval|bagof|begin_tests|between|blob|break|byte_count|call_dcg|call_residue_vars|callable|cancel_halt|catch|ceil|ceiling|char_code|char_conversion|char_type|character_count|chdir|chr_leash|chr_notrace|chr_show_store|chr_trace|clause|clause_property|close|close_dde_conversation|close_table|code_type|collation_key|compare|compare_strings|compile_aux_clauses|compile_predicates|compiling|compound|compound_name_arguments|compound_name_arity|consult|context_module|copy_predicate_clauses|copy_stream_data|copy_term|copy_term_nat|copysign|cosh??|cputime|create_prolog_flag|current_arithmetic_function|current_atom|current_blob|current_char_conversion|current_engine|current_flag|current_format_predicate|current_functor|current_input|current_key|current_locale|current_module|current_op|current_output|current_predicate|current_prolog_flag|current_signal|current_stream|current_trie|cyclic_term|date_time_stamp|date_time_value|day_of_the_week|dcg_translate_rule|dde_current_connection|dde_current_service|dde_execute|dde_poke|dde_register_service|dde_request|dde_unregister_service|debug|debugging|default_module|del_attrs??|del_dict|delete_directory|delete_file|delete_import_module|deterministic|dict_create|dict_pairs|dif|directory_files|divmod|doc_browser|doc_collect|doc_load_library|doc_server|double_metaphone|downcase_atom|dtd|dtd_property|duplicate_term|dwim_match|dwim_predicate|e|edit|encoding|engine_create|engine_fetch|engine_next|engine_next_reified|engine_post|engine_self|engine_yield|ensure_loaded|epsilon|erase|erfc??|eval|exception|exists_directory|exists_file|exists_source|exp|expand_answer|expand_file_name|expand_file_search_path|expand_goal|expand_query|expand_term|explain|fast_read|fast_term_serialized|fast_write|file_base_name|file_directory_name|file_name_extension|file_search_path|fill_buffer|find_chr_constraint|findall|findnsols|flag|float|float_fractional_part|float_integer_part|floor|flush_output|forall|format|format_predicate|format_time|free_dtd|free_sgml_parser|free_table|freeze|frozen|functor|garbage_collect|garbage_collect_atoms|garbage_collect_clauses|gdebug|get|get_attrs??|get_byte|get_char|get_code|get_dict|get_flag|get_sgml_parser|get_single_char|get_string_code|get_table_attribute|get_time|getbit|getenv|goal_expansion|ground|gspy|gtrace|guitracer|gxref|gzopen|halt|help|import_module|in_pce_thread|in_pce_thread_sync|in_table|include|inf|instance|integer|iri_xml_namespace|is_absolute_file_name|is_dict|is_engine|is_list|is_stream|is_thread|keysort|known_licenses|leash|length|lgamma|library_directory|license|line_count|line_position|list_strings|listing|load_dtd|load_files|load_html|load_rdf|load_sgml|load_structure|load_test_files|load_xml|locale_create|locale_destroy|locale_property|locale_sort|log|lsb|make|make_directory|make_library_index|max|memberchk|message_hook|message_property|message_queue_create|message_queue_destroy|message_queue_property|message_to_string|min|module|module_property|msb|msort|mutex_create|mutex_destroy|mutex_lock|mutex_property|mutex_statistics|mutex_trylock|mutex_unlock|name|nan|nb_current|nb_delete|nb_getval|nb_link_dict|nb_linkarg|nb_linkval|nb_set_dict|nb_setarg|nb_setval|new_dtd|new_order_table|new_sgml_parser|new_table|nl|nodebug|noguitracer|nonvar|noprotocol|normalize_space|nospy|nospyall|notrace|nth_clause|nth_integer_root_and_remainder|number|number_chars|number_codes|number_string|numbervars|odbc_close_statement|odbc_connect|odbc_current_connection|odbc_current_table|odbc_data_source|odbc_debug|odbc_disconnect|odbc_driver_connect|odbc_end_transaction|odbc_execute|odbc_fetch|odbc_free_statement|odbc_get_connection|odbc_prepare|odbc_query|odbc_set_connection|odbc_statistics|odbc_table_column|odbc_table_foreign_key|odbc_table_primary_key|odbc_type|on_signal|op|open|open_dde_conversation|open_dtd|open_null_stream|open_resource|open_string|open_table|order_table_mapping|parse_time|passed|pce_dispatch|pdt_install_console|peek_byte|peek_char|peek_code|peek_string|phrase|plus|popcount|porter_stem|portray|portray_clause|powm|predicate_property|predsort|prefix_string|print|print_message|print_message_lines|process_rdf|profiler??|project_attributes|prolog|prolog_choice_attribute|prolog_current_choice|prolog_current_frame|prolog_cut_to|prolog_debug|prolog_exception_hook|prolog_file_type|prolog_frame_attribute|prolog_ide|prolog_list_goal|prolog_load_context|prolog_load_file|prolog_nodebug|prolog_skip_frame|prolog_skip_level|prolog_stack_property|prolog_to_os_filename|prolog_trace_interception|prompt|protocola??|protocolling|put|put_attrs??|put_byte|put_char|put_code|put_dict|qcompile|qsave_program|random|random_float|random_property|rational|rationalize|rdf_write_xml|read|read_clause|read_history|read_link|read_pending_chars|read_pending_codes|read_string|read_table_fields|read_table_record|read_table_record_data|read_term|read_term_from_atom|recorda|recorded|recordz|redefine_system_predicate|reexport|reload_library_index|rename_file|require|reset|reset_profiler|resource|retract|retractall|round|run_tests|running_tests|same_file|same_term|see|seeing|seek|seen|select_dict|set_end_of_stream|set_flag|set_input|set_locale|set_module|set_output|set_prolog_IO|set_prolog_flag|set_prolog_stack|set_random|set_sgml_parser|set_stream|set_stream_position|set_test_options|setarg|setenv|setlocale|setof|sgml_parse|shell|shift|show_coverage|show_profile|sign|sinh??|size_file|skip|sleep|sort|source_exports|source_file|source_file_property|source_location|split_string|spy|sqrt|stamp_date_time|statistics|stream_pair|stream_position_data|stream_property|string|string_chars|string_codes??|string_concat|string_length|string_lower|string_upper|strip_module|style_check|sub_atom|sub_atom_icasechk|sub_string|subsumes_term|succ|suite|swritef|tab|table_previous_record|table_start_of_record|table_version|table_window|tanh??|tell|telling|term_attvars|term_expansion|term_hash|term_string|term_subsumer|term_to_atom|term_variables|test|test_report|text_to_string|thread_at_exit|thread_create|thread_detach|thread_exit|thread_get_message|thread_join|thread_message_hook|thread_peek_message|thread_property|thread_self|thread_send_message|thread_setconcurrency|thread_signal|thread_statistics|throw|time|time_file|tmp_file|tmp_file_stream|tokenize_atom|told|trace|tracing|trie_destroy|trie_gen|trie_insert|trie_insert_new|trie_lookup|trie_new|trie_property|trie_term|trim_stacks|truncate|tty_get_capability|tty_goto|tty_put|tty_size|ttyflush|unaccent_atom|unifiable|unify_with_occurs_check|unix|unknown|unload_file|unsetenv|upcase_atom|use_module|var|var_number|var_property|variant_hash|version|visible|wait_for_input|when|wildcard_match|win_add_dll_directory|win_exec|win_folder|win_has_menu|win_insert_menu|win_insert_menu_item|win_registry_get_value|win_remove_dll_directory|win_shell|win_window_pos|window_title|with_mutex|with_output_to|working_directory|write|write_canonical|write_length|write_term|writef|writeln|writeq|xml_is_dom|xml_to_rdf|zopen)\\\\b","name":"support.function.builtin.prolog"}]},"comments":{"patterns":[{"match":"%.*","name":"comment.line.percent-sign.prolog"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.prolog"}},"end":"\\\\*/","name":"comment.block.prolog"}]},"constants":{"patterns":[{"match":"(?<![/A-Za-z])(\\\\d+|(\\\\d+\\\\.\\\\d+))","name":"constant.numeric.integer.prolog"},{"match":"\\".*?\\"","name":"string.quoted.double.prolog"}]},"controlandkeywords":{"patterns":[{"begin":"(->)","beginCaptures":{"1":{"name":"keyword.control.if.prolog"}},"end":"(;)","endCaptures":{"1":{"name":"keyword.control.else.prolog"}},"name":"meta.if.prolog","patterns":[{"include":"$self"},{"include":"#builtin"},{"include":"#comments"},{"include":"#atom"},{"include":"#variable"},{"match":".","name":"meta.if.body.prolog"}]},{"match":"!","name":"keyword.control.cut.prolog"},{"match":"(\\\\s(is)\\\\s)|=:=|=\\\\.\\\\.|=?\\\\\\\\?=|\\\\\\\\\\\\+|@?>|@?=?<|[-*+]","name":"keyword.operator.prolog"}]},"variable":{"patterns":[{"match":"(?<![0-9A-Z_a-z])[A-Z][0-9A-Z_a-z]*","name":"variable.parameter.uppercase.prolog"},{"match":"(?<!\\\\w)_","name":"variable.language.anonymous.prolog"}]}},"scopeName":"source.prolog"}`))];export{e as default}; diff --git a/docs/assets/prop-types-C638SUfx.js b/docs/assets/prop-types-C638SUfx.js new file mode 100644 index 0000000..664984c --- /dev/null +++ b/docs/assets/prop-types-C638SUfx.js @@ -0,0 +1 @@ +import{t as o}from"./chunk-LvLJmgfZ.js";var f=o(((a,t)=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"})),u=o(((a,t)=>{var c=f();function p(){}function i(){}i.resetWarningCache=p,t.exports=function(){function e(h,m,T,O,_,y){if(y!==c){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function r(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:p};return n.PropTypes=n,n}})),l=o(((a,t)=>{t.exports=u()()}));export{l as t}; diff --git a/docs/assets/properties-BF6anRzc.js b/docs/assets/properties-BF6anRzc.js new file mode 100644 index 0000000..e8d7be4 --- /dev/null +++ b/docs/assets/properties-BF6anRzc.js @@ -0,0 +1 @@ +const l={name:"properties",token:function(n,i){var o=n.sol()||i.afterSection,t=n.eol();if(i.afterSection=!1,o&&(i.nextMultiline?(i.inMultiline=!0,i.nextMultiline=!1):i.position="def"),t&&!i.nextMultiline&&(i.inMultiline=!1,i.position="def"),o)for(;n.eatSpace(););var e=n.next();return o&&(e==="#"||e==="!"||e===";")?(i.position="comment",n.skipToEnd(),"comment"):o&&e==="["?(i.afterSection=!0,n.skipTo("]"),n.eat("]"),"header"):e==="="||e===":"?(i.position="quote",null):(e==="\\"&&i.position==="quote"&&n.eol()&&(i.nextMultiline=!0),i.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}};export{l as t}; diff --git a/docs/assets/properties-CRoDUVbK.js b/docs/assets/properties-CRoDUVbK.js new file mode 100644 index 0000000..ee596ea --- /dev/null +++ b/docs/assets/properties-CRoDUVbK.js @@ -0,0 +1 @@ +import{t as r}from"./properties-BF6anRzc.js";export{r as properties}; diff --git a/docs/assets/proto-wHGv56wX.js b/docs/assets/proto-wHGv56wX.js new file mode 100644 index 0000000..658c1d4 --- /dev/null +++ b/docs/assets/proto-wHGv56wX.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Protocol Buffer 3","fileTypes":["proto"],"name":"proto","patterns":[{"include":"#comments"},{"include":"#syntax"},{"include":"#package"},{"include":"#import"},{"include":"#optionStmt"},{"include":"#message"},{"include":"#enum"},{"include":"#service"}],"repository":{"comments":{"patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.proto"},{"begin":"//","end":"$\\\\n?","name":"comment.line.double-slash.proto"}]},"constants":{"match":"\\\\b(true|false|max|[A-Z_]+)\\\\b","name":"constant.language.proto"},"enum":{"begin":"(enum)(\\\\s+)([A-Za-z][0-9A-Z_a-z]*)(\\\\s*)(\\\\{)?","beginCaptures":{"1":{"name":"keyword.other.proto"},"3":{"name":"entity.name.class.proto"}},"end":"}","patterns":[{"include":"#reserved"},{"include":"#optionStmt"},{"include":"#comments"},{"begin":"([A-Za-z][0-9A-Z_a-z]*)\\\\s*(=)\\\\s*(0[Xx]\\\\h+|[0-9]+)","beginCaptures":{"1":{"name":"variable.other.proto"},"2":{"name":"keyword.operator.assignment.proto"},"3":{"name":"constant.numeric.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#fieldOptions"}]}]},"field":{"begin":"\\\\s*(optional|repeated|required)?\\\\s*\\\\b([.\\\\w]+)\\\\s+(\\\\w+)\\\\s*(=)\\\\s*(0[Xx]\\\\h+|[0-9]+)","beginCaptures":{"1":{"name":"storage.modifier.proto"},"2":{"name":"storage.type.proto"},"3":{"name":"variable.other.proto"},"4":{"name":"keyword.operator.assignment.proto"},"5":{"name":"constant.numeric.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#fieldOptions"}]},"fieldOptions":{"begin":"\\\\[","end":"]","patterns":[{"include":"#constants"},{"include":"#number"},{"include":"#string"},{"include":"#subMsgOption"},{"include":"#optionName"}]},"ident":{"match":"[A-Za-z][0-9A-Z_a-z]*","name":"entity.name.class.proto"},"import":{"captures":{"1":{"name":"keyword.other.proto"},"2":{"name":"keyword.other.proto"},"3":{"name":"string.quoted.double.proto.import"},"4":{"name":"punctuation.terminator.proto"}},"match":"\\\\s*(import)\\\\s+(weak|public)?\\\\s*(\\"[^\\"]+\\")\\\\s*(;)"},"kv":{"begin":"(\\\\w+)\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"punctuation.separator.key-value.proto"}},"end":"(;)|,|(?=[/A-Z_a-z}])","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#constants"},{"include":"#number"},{"include":"#string"},{"include":"#subMsgOption"}]},"mapfield":{"begin":"\\\\s*(map)\\\\s*(<)\\\\s*([.\\\\w]+)\\\\s*,\\\\s*([.\\\\w]+)\\\\s*(>)\\\\s+(\\\\w+)\\\\s*(=)\\\\s*(\\\\d+)","beginCaptures":{"1":{"name":"storage.type.proto"},"2":{"name":"punctuation.definition.typeparameters.begin.proto"},"3":{"name":"storage.type.proto"},"4":{"name":"storage.type.proto"},"5":{"name":"punctuation.definition.typeparameters.end.proto"},"6":{"name":"variable.other.proto"},"7":{"name":"keyword.operator.assignment.proto"},"8":{"name":"constant.numeric.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#fieldOptions"}]},"message":{"begin":"(message|extend)(\\\\s+)([A-Z_a-z][.0-9A-Z_a-z]*)(\\\\s*)(\\\\{)?","beginCaptures":{"1":{"name":"keyword.other.proto"},"3":{"name":"entity.name.class.message.proto"}},"end":"}","patterns":[{"include":"#reserved"},{"include":"$self"},{"include":"#enum"},{"include":"#optionStmt"},{"include":"#comments"},{"include":"#oneof"},{"include":"#field"},{"include":"#mapfield"}]},"method":{"begin":"(rpc)\\\\s+([A-Za-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"entity.name.function"}},"end":"}|(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#comments"},{"include":"#optionStmt"},{"include":"#rpcKeywords"},{"include":"#ident"}]},"number":{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)\\\\b","name":"constant.numeric.proto"},"oneof":{"begin":"(oneof)\\\\s+([A-Za-z][0-9A-Z_a-z]*)\\\\s*\\\\{?","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"variable.other.proto"}},"end":"}","patterns":[{"include":"#optionStmt"},{"include":"#comments"},{"include":"#field"}]},"optionName":{"captures":{"1":{"name":"support.other.proto"},"2":{"name":"support.other.proto"},"3":{"name":"support.other.proto"}},"match":"(\\\\w+|\\\\(\\\\w+(\\\\.\\\\w+)*\\\\))(\\\\.\\\\w+)*"},"optionStmt":{"begin":"(option)\\\\s+(\\\\w+|\\\\(\\\\w+(\\\\.\\\\w+)*\\\\))(\\\\.\\\\w+)*\\\\s*(=)","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"support.other.proto"},"3":{"name":"support.other.proto"},"4":{"name":"support.other.proto"},"5":{"name":"keyword.operator.assignment.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#constants"},{"include":"#number"},{"include":"#string"},{"include":"#subMsgOption"}]},"package":{"captures":{"1":{"name":"keyword.other.proto"},"2":{"name":"string.unquoted.proto.package"},"3":{"name":"punctuation.terminator.proto"}},"match":"\\\\s*(package)\\\\s+([.\\\\w]+)\\\\s*(;)"},"reserved":{"begin":"(reserved)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"captures":{"1":{"name":"constant.numeric.proto"},"3":{"name":"keyword.other.proto"},"4":{"name":"constant.numeric.proto"}},"match":"(\\\\d+)(\\\\s+(to)\\\\s+(\\\\d+))?"},{"include":"#string"}]},"rpcKeywords":{"match":"\\\\b(stream|returns)\\\\b","name":"keyword.other.proto"},"service":{"begin":"(service)\\\\s+([A-Za-z][.0-9A-Z_a-z]*)\\\\s*\\\\{?","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"entity.name.class.message.proto"}},"end":"}","patterns":[{"include":"#comments"},{"include":"#optionStmt"},{"include":"#method"}]},"storagetypes":{"match":"\\\\b(double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\\\\b","name":"storage.type.proto"},"string":{"match":"('(['[^']])*')|(\\"([\\"[^\\"]])*\\")","name":"string.quoted.double.proto"},"subMsgOption":{"begin":"\\\\{","end":"}","patterns":[{"include":"#kv"},{"include":"#comments"}]},"syntax":{"captures":{"1":{"name":"keyword.other.proto"},"2":{"name":"keyword.operator.assignment.proto"},"3":{"name":"string.quoted.double.proto.syntax"},"4":{"name":"punctuation.terminator.proto"}},"match":"\\\\s*(syntax)\\\\s*(=)\\\\s*(\\"proto[23]\\")\\\\s*(;)"}},"scopeName":"source.proto","aliases":["protobuf"]}`))];export{e as default}; diff --git a/docs/assets/protobuf-BS6gEp_x.js b/docs/assets/protobuf-BS6gEp_x.js new file mode 100644 index 0000000..4eec170 --- /dev/null +++ b/docs/assets/protobuf-BS6gEp_x.js @@ -0,0 +1 @@ +import{t as o}from"./protobuf-De4giNfG.js";export{o as protobuf}; diff --git a/docs/assets/protobuf-De4giNfG.js b/docs/assets/protobuf-De4giNfG.js new file mode 100644 index 0000000..81fbc05 --- /dev/null +++ b/docs/assets/protobuf-De4giNfG.js @@ -0,0 +1 @@ +function e(t){return RegExp("^(("+t.join(")|(")+"))\\b","i")}var a="package.message.import.syntax.required.optional.repeated.reserved.default.extensions.packed.bool.bytes.double.enum.float.string.int32.int64.uint32.uint64.sint32.sint64.fixed32.fixed64.sfixed32.sfixed64.option.service.rpc.returns".split("."),n=e(a),i=RegExp("^[_A-Za-z\xA1-\uFFFF][_A-Za-z0-9\xA1-\uFFFF]*");function o(t){return t.eatSpace()?null:t.match("//")?(t.skipToEnd(),"comment"):t.match(/^[0-9\.+-]/,!1)&&(t.match(/^[+-]?0x[0-9a-fA-F]+/)||t.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||t.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":t.match(/^"([^"]|(""))*"/)||t.match(/^'([^']|(''))*'/)?"string":t.match(n)?"keyword":t.match(i)?"variable":(t.next(),null)}const r={name:"protobuf",token:o,languageData:{autocomplete:a}};export{r as t}; diff --git a/docs/assets/pug-CzQlD5xP.js b/docs/assets/pug-CzQlD5xP.js new file mode 100644 index 0000000..20ec5f0 --- /dev/null +++ b/docs/assets/pug-CzQlD5xP.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-Czx24F5X.js";var s={"{":"}","(":")","[":"]"};function p(i){if(typeof i!="object")return i;let t={};for(let n in i){let r=i[n];t[n]=r instanceof Array?r.slice():r}return t}var l=class f{constructor(t){this.indentUnit=t,this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=e.startState(t),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken=""}copy(){var t=new f(this.indentUnit);return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=(e.copyState||p)(this.jsState),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t}};function h(i,t){if(i.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&i.peek()===":"){t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1;return}var n=e.token(i,t.jsState);return i.eol()&&(t.javaScriptLine=!1),n||!0}}function m(i,t){if(t.javaScriptArguments){if(t.javaScriptArgumentsDepth===0&&i.peek()!=="("){t.javaScriptArguments=!1;return}if(i.peek()==="("?t.javaScriptArgumentsDepth++:i.peek()===")"&&t.javaScriptArgumentsDepth--,t.javaScriptArgumentsDepth===0){t.javaScriptArguments=!1;return}return e.token(i,t.jsState)||!0}}function d(i){if(i.match(/^yield\b/))return"keyword"}function v(i){if(i.match(/^(?:doctype) *([^\n]+)?/))return"meta"}function c(i,t){if(i.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function S(i,t){if(t.isInterpolating){if(i.peek()==="}"){if(t.interpolationNesting--,t.interpolationNesting<0)return i.next(),t.isInterpolating=!1,"punctuation"}else i.peek()==="{"&&t.interpolationNesting++;return e.token(i,t.jsState)||!0}}function j(i,t){if(i.match(/^case\b/))return t.javaScriptLine=!0,"keyword"}function g(i,t){if(i.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,"keyword"}function k(i){if(i.match(/^default\b/))return"keyword"}function b(i,t){if(i.match(/^extends?\b/))return t.restOfLine="string","keyword"}function A(i,t){if(i.match(/^append\b/))return t.restOfLine="variable","keyword"}function L(i,t){if(i.match(/^prepend\b/))return t.restOfLine="variable","keyword"}function y(i,t){if(i.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable","keyword"}function w(i,t){if(i.match(/^include\b/))return t.restOfLine="string","keyword"}function N(i,t){if(i.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&i.match("include"))return t.isIncludeFiltered=!0,"keyword"}function x(i,t){if(t.isIncludeFiltered){var n=u(i,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}function T(i,t){if(i.match(/^mixin\b/))return t.javaScriptLine=!0,"keyword"}function I(i,t){if(i.match(/^\+([-\w]+)/))return i.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable";if(i.match("+#{",!1))return i.next(),t.mixinCallAfter=!0,c(i,t)}function O(i,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,i.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}function E(i,t){if(i.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,"keyword"}function C(i,t){if(i.match(/^(- *)?(each|for)\b/))return t.isEach=!0,"keyword"}function D(i,t){if(t.isEach){if(i.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,"keyword";if(i.sol()||i.eol())t.isEach=!1;else if(i.next()){for(;!i.match(/^ in\b/,!1)&&i.next(););return"variable"}}}function F(i,t){if(i.match(/^while\b/))return t.javaScriptLine=!0,"keyword"}function V(i,t){var n;if(n=i.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=n[1].toLowerCase(),"tag"}function u(i,t){if(i.match(/^:([\w\-]+)/))return a(i,t),"atom"}function U(i,t){if(i.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}function z(i){if(i.match(/^#([\w-]+)/))return"builtin"}function B(i){if(i.match(/^\.([\w-]+)/))return"className"}function G(i,t){if(i.peek()=="(")return i.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}function o(i,t){if(t.isAttrs){if(s[i.peek()]&&t.attrsNest.push(s[i.peek()]),t.attrsNest[t.attrsNest.length-1]===i.peek())t.attrsNest.pop();else if(i.eat(")"))return t.isAttrs=!1,"punctuation";if(t.inAttributeName&&i.match(/^[^=,\)!]+/))return(i.peek()==="="||i.peek()==="!")&&(t.inAttributeName=!1,t.jsState=e.startState(2),t.lastTag==="script"&&i.current().trim().toLowerCase()==="type"?t.attributeIsType=!0:t.attributeIsType=!1),"attribute";var n=e.token(i,t.jsState);if(t.attrsNest.length===0&&(n==="string"||n==="variable"||n==="keyword"))try{return Function("","var x "+t.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),t.inAttributeName=!0,t.attrValue="",i.backUp(i.current().length),o(i,t)}catch{}return t.attrValue+=i.current(),n||!0}}function H(i,t){if(i.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}function K(i){if(i.sol()&&i.eatSpace())return"indent"}function M(i,t){if(i.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=i.indentation(),t.indentToken="comment","comment"}function P(i){if(i.match(/^: */))return"colon"}function R(i,t){if(i.match(/^(?:\| ?| )([^\n]+)/))return"string";if(i.match(/^(<[^\n]*)/,!1))return a(i,t),i.skipToEnd(),t.indentToken}function W(i,t){if(i.eat("."))return a(i,t),"dot"}function Z(i){return i.next(),null}function a(i,t){t.indentOf=i.indentation(),t.indentToken="string"}function $(i,t){if(i.sol()&&(t.restOfLine=""),t.restOfLine){i.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}function q(i){return new l(i)}function J(i){return i.copy()}function Q(i,t){var n=$(i,t)||S(i,t)||x(i,t)||D(i,t)||o(i,t)||h(i,t)||m(i,t)||O(i,t)||d(i)||v(i)||c(i,t)||j(i,t)||g(i,t)||k(i)||b(i,t)||A(i,t)||L(i,t)||y(i,t)||w(i,t)||N(i,t)||T(i,t)||I(i,t)||E(i,t)||C(i,t)||F(i,t)||V(i,t)||u(i,t)||U(i,t)||z(i)||B(i)||G(i,t)||H(i,t)||K(i)||R(i,t)||M(i,t)||P(i)||W(i,t)||Z(i);return n===!0?null:n}const X={startState:q,copyState:J,token:Q};export{X as t}; diff --git a/docs/assets/pug-STAEJHPq.js b/docs/assets/pug-STAEJHPq.js new file mode 100644 index 0000000..07930f2 --- /dev/null +++ b/docs/assets/pug-STAEJHPq.js @@ -0,0 +1 @@ +import{t as o}from"./pug-CzQlD5xP.js";export{o as pug}; diff --git a/docs/assets/pug-w6c6UB24.js b/docs/assets/pug-w6c6UB24.js new file mode 100644 index 0000000..3812bb9 --- /dev/null +++ b/docs/assets/pug-w6c6UB24.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./css-xi2XX7Oh.js";import{t}from"./html-Bz1QLM72.js";var a=Object.freeze(JSON.parse(`{"displayName":"Pug","name":"pug","patterns":[{"match":"^(!!!|doctype)(\\\\s*[-0-9A-Z_a-z]+)?","name":"meta.tag.sgml.doctype.html"},{"begin":"^(\\\\s*)//-","end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"comment.unbuffered.block.pug"},{"begin":"^(\\\\s*)//","end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"string.comment.buffered.block.pug","patterns":[{"captures":{"1":{"name":"invalid.illegal.comment.comment.block.pug"}},"match":"^\\\\s*(//)(?!-)","name":"string.comment.buffered.block.pug"}]},{"begin":"<!--","end":"--\\\\s*>","name":"comment.unbuffered.block.pug","patterns":[{"match":"--","name":"invalid.illegal.comment.comment.block.pug"}]},{"begin":"^(\\\\s*)-$","end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"source.js","patterns":[{"include":"source.js"}]},{"begin":"^(\\\\s*)(script)((\\\\.)$|(?=[^\\\\n]*((text|application)/javascript|module).*\\\\.$))","beginCaptures":{"2":{"name":"entity.name.tag.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"meta.tag.other","patterns":[{"begin":"\\\\G(?=\\\\()","end":"$","patterns":[{"include":"#tag_attributes"}]},{"begin":"\\\\G(?=[#.])","end":"$","patterns":[{"include":"#complete_tag"}]},{"include":"source.js"}]},{"begin":"^(\\\\s*)(style)((\\\\.)$|(?=[#(.].*\\\\.$))","beginCaptures":{"2":{"name":"entity.name.tag.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"meta.tag.other","patterns":[{"begin":"\\\\G(?=\\\\()","end":"$","patterns":[{"include":"#tag_attributes"}]},{"begin":"\\\\G(?=[#.])","end":"$","patterns":[{"include":"#complete_tag"}]},{"include":"source.css"}]},{"begin":"^(\\\\s*):(sass)(?=\\\\(|$)","beginCaptures":{"2":{"name":"constant.language.name.sass.filter.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"source.sass.filter.pug","patterns":[{"include":"#tag_attributes"},{"include":"source.sass"}]},{"begin":"^(\\\\s*):(scss)(?=\\\\(|$)","beginCaptures":{"2":{"name":"constant.language.name.scss.filter.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"source.css.scss.filter.pug","patterns":[{"include":"#tag_attributes"},{"include":"source.css.scss"}]},{"begin":"^(\\\\s*):(less)(?=\\\\(|$)","beginCaptures":{"2":{"name":"constant.language.name.less.filter.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"source.less.filter.pug","patterns":[{"include":"#tag_attributes"},{"include":"source.less"}]},{"begin":"^(\\\\s*):(stylus)(?=\\\\(|$)","beginCaptures":{"2":{"name":"constant.language.name.stylus.filter.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","patterns":[{"include":"#tag_attributes"},{"include":"source.stylus"}]},{"begin":"^(\\\\s*):(coffee(-?script)?)(?=\\\\(|$)","beginCaptures":{"2":{"name":"constant.language.name.coffeescript.filter.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"source.coffeescript.filter.pug","patterns":[{"include":"#tag_attributes"},{"include":"source.coffee"}]},{"begin":"^(\\\\s*):(uglify-js)(?=\\\\(|$)","beginCaptures":{"2":{"name":"constant.language.name.js.filter.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","name":"source.js.filter.pug","patterns":[{"include":"#tag_attributes"},{"include":"source.js"}]},{"begin":"^(\\\\s*)((:(?=.))|(:)$)","beginCaptures":{"4":{"name":"invalid.illegal.empty.generic.filter.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","patterns":[{"begin":"\\\\G(?<=:)(?=.)","end":"$","name":"name.generic.filter.pug","patterns":[{"match":"\\\\G\\\\(","name":"invalid.illegal.name.generic.filter.pug"},{"match":"[-\\\\w]","name":"constant.language.name.generic.filter.pug"},{"include":"#tag_attributes"},{"match":"\\\\W","name":"invalid.illegal.name.generic.filter.pug"}]}]},{"begin":"^(\\\\s*)(?:(?=\\\\.$)|(?=[#.\\\\w].*?\\\\.$)(?=(?:(?:#[-\\\\w]+|\\\\.[-\\\\w]+)|(?:[!#]\\\\{[^}]*}|\\\\w(?:[-:\\\\w]+[-\\\\w]|[-\\\\w]*)))(?:#[-\\\\w]+|\\\\.[-\\\\w]+|(?:\\\\((?:[^\\"'()]*(?:'(?:[^']|(?<!\\\\\\\\)\\\\\\\\')*'|\\"(?:[^\\"]|(?<!\\\\\\\\)\\\\\\\\\\")*\\"))*[^()]*\\\\))*)*(?:(?::\\\\s+|(?<=\\\\)))(?:(?:#[-\\\\w]+|\\\\.[-\\\\w]+)|(?:[!#]\\\\{[^}]*}|\\\\w(?:[-:\\\\w]+[-\\\\w]|[-\\\\w]*)))(?:#[-\\\\w]+|\\\\.[-\\\\w]+|(?:\\\\((?:[^\\"'()]*(?:'(?:[^']|(?<!\\\\\\\\)\\\\\\\\')*'|\\"(?:[^\\"]|(?<!\\\\\\\\)\\\\\\\\\\")*\\"))*[^()]*\\\\))*)*)*\\\\.$)(?:(?:(#[-\\\\w]+)|(\\\\.[-\\\\w]+))|([!#]\\\\{[^}]*}|\\\\w(?:[-:\\\\w]+[-\\\\w]|[-\\\\w]*))))","beginCaptures":{"2":{"name":"meta.selector.css entity.other.attribute-name.id.css.pug"},"3":{"name":"meta.selector.css entity.other.attribute-name.class.css.pug"},"4":{"name":"meta.tag.other entity.name.tag.pug"}},"end":"^(?!(\\\\1\\\\s)|\\\\s*$)","patterns":[{"match":"\\\\.$","name":"storage.type.function.pug.dot-block-dot"},{"include":"#tag_attributes"},{"include":"#complete_tag"},{"begin":"^(?=.)","end":"$","name":"text.block.pug","patterns":[{"include":"#inline_pug"},{"include":"#embedded_html"},{"include":"#html_entity"},{"include":"#interpolated_value"},{"include":"#interpolated_error"}]}]},{"begin":"^\\\\s*","end":"$","patterns":[{"include":"#inline_pug"},{"include":"#blocks_and_includes"},{"include":"#unbuffered_code"},{"include":"#mixin_definition"},{"include":"#mixin_call"},{"include":"#flow_control"},{"include":"#flow_control_each"},{"include":"#case_conds"},{"begin":"\\\\|","end":"$","name":"text.block.pipe.pug","patterns":[{"include":"#inline_pug"},{"include":"#embedded_html"},{"include":"#html_entity"},{"include":"#interpolated_value"},{"include":"#interpolated_error"}]},{"include":"#printed_expression"},{"begin":"\\\\G(?=(#[^-{\\\\w])|[^#.\\\\w])","end":"$","patterns":[{"begin":"</?(?=[!#])","end":">|$","patterns":[{"include":"#inline_pug"},{"include":"#interpolated_value"},{"include":"#interpolated_error"}]},{"include":"#inline_pug"},{"include":"#embedded_html"},{"include":"#html_entity"},{"include":"#interpolated_value"},{"include":"#interpolated_error"}]},{"include":"#complete_tag"}]}],"repository":{"babel_parens":{"begin":"\\\\(","end":"\\\\)|((\\\\{\\\\s*)?)$","patterns":[{"include":"#babel_parens"},{"include":"source.js"}]},"blocks_and_includes":{"captures":{"1":{"name":"storage.type.import.include.pug"},"4":{"name":"variable.control.import.include.pug"}},"match":"(extends|include|yield|append|prepend|block( ((?:ap|pre)pend))?)\\\\s+(.*)$","name":"meta.first-class.pug"},"case_conds":{"begin":"(default|when)((\\\\s+|(?=:))|$)","captures":{"1":{"name":"storage.type.function.pug"}},"end":"$","name":"meta.control.flow.pug","patterns":[{"begin":"\\\\G(?!:)","end":"(?=:\\\\s+)|$","name":"js.embedded.control.flow.pug","patterns":[{"include":"#case_when_paren"},{"include":"source.js"}]},{"begin":":\\\\s+","end":"$","name":"tag.case.control.flow.pug","patterns":[{"include":"#complete_tag"}]}]},"case_when_paren":{"begin":"\\\\(","end":"\\\\)","name":"js.when.control.flow.pug","patterns":[{"include":"#case_when_paren"},{"match":":","name":"invalid.illegal.name.tag.pug"},{"include":"source.js"}]},"complete_tag":{"begin":"(?=[#.\\\\w])|(:\\\\s*)","end":"(\\\\.?)$|(?=:.)","endCaptures":{"1":{"name":"storage.type.function.pug.dot-block-dot"}},"patterns":[{"include":"#blocks_and_includes"},{"include":"#unbuffered_code"},{"include":"#mixin_call"},{"include":"#flow_control"},{"include":"#flow_control_each"},{"match":"(?<=:)\\\\w.*$","name":"invalid.illegal.name.tag.pug"},{"include":"#tag_name"},{"include":"#tag_id"},{"include":"#tag_classes"},{"include":"#tag_attributes"},{"include":"#tag_mixin_attributes"},{"captures":{"2":{"name":"invalid.illegal.end.tag.pug"},"4":{"name":"invalid.illegal.end.tag.pug"}},"match":"(?:((\\\\.)\\\\s+)|((:)\\\\s*))$"},{"include":"#printed_expression"},{"include":"#tag_text"}]},"embedded_html":{"begin":"(?=<[^>]*>)","end":"$|(?=>)","name":"html","patterns":[{"include":"text.html.basic"},{"include":"#interpolated_value"},{"include":"#interpolated_error"}]},"flow_control":{"begin":"(for|if|else if|else|until|while|unless|case)(\\\\s+|$)","captures":{"1":{"name":"storage.type.function.pug"}},"end":"$","name":"meta.control.flow.pug","patterns":[{"begin":"","end":"$","name":"js.embedded.control.flow.pug","patterns":[{"include":"source.js"}]}]},"flow_control_each":{"begin":"(each)(\\\\s+|$)","captures":{"1":{"name":"storage.type.function.pug"}},"end":"$","name":"meta.control.flow.pug.each","patterns":[{"match":"([$_\\\\w]+)(?:\\\\s*,\\\\s*([$_\\\\w]+))?","name":"variable.other.pug.each-var"},{"begin":"","end":"$","name":"js.embedded.control.flow.pug","patterns":[{"include":"source.js"}]}]},"html_entity":{"patterns":[{"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.html.text.pug"},{"match":"[\\\\&<>]","name":"invalid.illegal.html_entity.text.pug"}]},"inline_pug":{"begin":"(?<!\\\\\\\\)(#\\\\[)","captures":{"1":{"name":"entity.name.function.pug"},"2":{"name":"entity.name.function.pug"}},"end":"(])","name":"inline.pug","patterns":[{"include":"#inline_pug"},{"include":"#mixin_call"},{"begin":"(?<!])(?=[#.\\\\w])|(:\\\\s*)","end":"(?=]|(:.)|[=\\\\s])","name":"tag.inline.pug","patterns":[{"include":"#tag_name"},{"include":"#tag_id"},{"include":"#tag_classes"},{"include":"#tag_attributes"},{"include":"#tag_mixin_attributes"},{"include":"#inline_pug"},{"match":"\\\\[","name":"invalid.illegal.tag.pug"}]},{"include":"#unbuffered_code"},{"include":"#printed_expression"},{"match":"\\\\[","name":"invalid.illegal.tag.pug"},{"include":"#inline_pug_text"}]},"inline_pug_text":{"begin":"","end":"(?=])","patterns":[{"begin":"\\\\[","end":"]","patterns":[{"include":"#inline_pug_text"}]},{"include":"#inline_pug"},{"include":"#embedded_html"},{"include":"#html_entity"},{"include":"#interpolated_value"},{"include":"#interpolated_error"}]},"interpolated_error":{"match":"(?<!\\\\\\\\)[!#]\\\\{(?=[^}]*$)","name":"invalid.illegal.tag.pug"},"interpolated_value":{"begin":"(?<!\\\\\\\\)[!#]\\\\{(?=.*?})","end":"}","name":"string.interpolated.pug","patterns":[{"match":"\\\\{","name":"invalid.illegal.tag.pug"},{"include":"source.js"}]},"js_braces":{"begin":"\\\\{","end":"}","patterns":[{"include":"#js_braces"},{"include":"source.js"}]},"js_brackets":{"begin":"\\\\[","end":"]","patterns":[{"include":"#js_brackets"},{"include":"source.js"}]},"js_parens":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#js_parens"},{"include":"source.js"}]},"mixin_call":{"begin":"(mixin\\\\s+|\\\\+)([-\\\\w]+)","beginCaptures":{"1":{"name":"storage.type.function.pug"},"2":{"name":"meta.tag.other entity.name.function.pug"}},"end":"(?!\\\\()|$","patterns":[{"begin":"(?<!\\\\))\\\\(","end":"\\\\)","name":"args.mixin.pug","patterns":[{"include":"#js_parens"},{"captures":{"1":{"name":"meta.tag.other entity.other.attribute-name.tag.pug"}},"match":"([^(),/=\\\\s]+)\\\\s*=\\\\s*"},{"include":"source.js"}]},{"include":"#tag_attributes"}]},"mixin_definition":{"captures":{"1":{"name":"storage.type.function.pug"},"2":{"name":"meta.tag.other entity.name.function.pug"},"3":{"name":"punctuation.definition.parameters.begin.js"},"4":{"name":"variable.parameter.function.js"},"5":{"name":"punctuation.definition.parameters.begin.js"}},"match":"(mixin\\\\s+)([-\\\\w]+)(?:(\\\\()\\\\s*([A-Z_a-z]\\\\w*\\\\s*(?:,\\\\s*[A-Z_a-z]\\\\w*\\\\s*)*)(\\\\)))?$"},"printed_expression":{"begin":"(!?=)\\\\s*","captures":{"1":{"name":"constant"}},"end":"(?=])|$","name":"source.js","patterns":[{"include":"#js_brackets"},{"include":"source.js"}]},"tag_attribute_name":{"captures":{"1":{"name":"entity.other.attribute-name.tag.pug"}},"match":"([^!(),/=\\\\s]+)\\\\s*"},"tag_attribute_name_paren":{"begin":"\\\\(\\\\s*","end":"\\\\)","name":"entity.other.attribute-name.tag.pug","patterns":[{"include":"#tag_attribute_name_paren"},{"include":"#tag_attribute_name"}]},"tag_attributes":{"begin":"(\\\\(\\\\s*)","captures":{"1":{"name":"constant.name.attribute.tag.pug"}},"end":"(\\\\))","name":"meta.tag.other","patterns":[{"include":"#tag_attribute_name_paren"},{"include":"#tag_attribute_name"},{"match":"!(?!=)","name":"invalid.illegal.tag.pug"},{"begin":"=\\\\s*","end":"$|(?=,|\\\\s+[^-!%\\\\&*+/<>?|~]|\\\\))","name":"attribute_value","patterns":[{"include":"#js_parens"},{"include":"#js_brackets"},{"include":"#js_braces"},{"include":"source.js"}]},{"begin":"(?<=[-%\\\\&*+/:<>?|~])\\\\s+","end":"$|(?=,|\\\\s+[^-!%\\\\&*+/<>?|~]|\\\\))","name":"attribute_value2","patterns":[{"include":"#js_parens"},{"include":"#js_brackets"},{"include":"#js_braces"},{"include":"source.js"}]}]},"tag_classes":{"captures":{"1":{"name":"invalid.illegal.tag.pug"}},"match":"\\\\.([^-\\\\w])?[-\\\\w]*","name":"meta.selector.css entity.other.attribute-name.class.css.pug"},"tag_id":{"match":"#[-\\\\w]+","name":"meta.selector.css entity.other.attribute-name.id.css.pug"},"tag_mixin_attributes":{"begin":"(&attributes\\\\()","captures":{"1":{"name":"entity.name.function.pug"}},"end":"(\\\\))","name":"meta.tag.other","patterns":[{"match":"attributes(?=\\\\))","name":"storage.type.keyword.pug"},{"include":"source.js"}]},"tag_name":{"begin":"([!#]\\\\{(?=.*?}))|(\\\\w(([-:\\\\w]+[-\\\\w])|([-\\\\w]*)))","end":"\\\\G((?<!\\\\5[^-\\\\w]))|}|$","name":"meta.tag.other entity.name.tag.pug","patterns":[{"begin":"\\\\G(?<=\\\\{)","end":"(?=})","name":"meta.tag.other entity.name.tag.pug","patterns":[{"match":"\\\\{","name":"invalid.illegal.tag.pug"},{"include":"source.js"}]}]},"tag_text":{"begin":"(?=.)","end":"$","patterns":[{"include":"#inline_pug"},{"include":"#embedded_html"},{"include":"#html_entity"},{"include":"#interpolated_value"},{"include":"#interpolated_error"}]},"unbuffered_code":{"begin":"(-|(([0-9A-Z_a-z]+)\\\\s+=))","beginCaptures":{"3":{"name":"variable.parameter.javascript.embedded.pug"}},"end":"(?=])|((\\\\{\\\\s*)?)$","name":"source.js","patterns":[{"include":"#js_brackets"},{"include":"#babel_parens"},{"include":"source.js"}]}},"scopeName":"text.pug","embeddedLangs":["javascript","css","html"],"aliases":["jade"],"embeddedLangsLazy":["sass","scss","stylus","coffee"]}`)),i=[...e,...n,...t,a];export{i as default}; diff --git a/docs/assets/puppet-BV74Hcdf.js b/docs/assets/puppet-BV74Hcdf.js new file mode 100644 index 0000000..d258ab0 --- /dev/null +++ b/docs/assets/puppet-BV74Hcdf.js @@ -0,0 +1 @@ +import{t as p}from"./puppet-CMgcPW4L.js";export{p as puppet}; diff --git a/docs/assets/puppet-CEaveFBF.js b/docs/assets/puppet-CEaveFBF.js new file mode 100644 index 0000000..3037e37 --- /dev/null +++ b/docs/assets/puppet-CEaveFBF.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Puppet","fileTypes":["pp"],"foldingStartMarker":"(^\\\\s*/\\\\*|([(\\\\[{])\\\\s*$)","foldingStopMarker":"(\\\\*/|^\\\\s*([])}]))","name":"puppet","patterns":[{"include":"#line_comment"},{"include":"#constants"},{"begin":"^\\\\s*/\\\\*","end":"\\\\*/","name":"comment.block.puppet"},{"begin":"\\\\b(node)\\\\b","captures":{"1":{"name":"storage.type.puppet"},"2":{"name":"entity.name.type.class.puppet"}},"end":"(?=\\\\{)","name":"meta.definition.class.puppet","patterns":[{"match":"\\\\bdefault\\\\b","name":"keyword.puppet"},{"include":"#strings"},{"include":"#regex-literal"}]},{"begin":"\\\\b(class)\\\\s+((?:[a-z][0-9_a-z]*)?(?:::[a-z][0-9_a-z]*)+|[a-z][0-9_a-z]*)\\\\s*","captures":{"1":{"name":"storage.type.puppet"},"2":{"name":"entity.name.type.class.puppet"}},"end":"(?=\\\\{)","name":"meta.definition.class.puppet","patterns":[{"begin":"\\\\b(inherits)\\\\b\\\\s+","captures":{"1":{"name":"storage.modifier.puppet"}},"end":"(?=[({])","name":"meta.definition.class.inherits.puppet","patterns":[{"match":"\\\\b((?:[-\\".0-9A-Z_a-z]+::)*[-\\".0-9A-Z_a-z]+)\\\\b","name":"support.type.puppet"}]},{"include":"#line_comment"},{"include":"#resource-parameters"},{"include":"#parameter-default-types"}]},{"begin":"^\\\\s*(plan)\\\\s+((?:[a-z][0-9_a-z]*)?(?:::[a-z][0-9_a-z]*)+|[a-z][0-9_a-z]*)\\\\s*","captures":{"1":{"name":"storage.type.puppet"},"2":{"name":"entity.name.type.plan.puppet"}},"end":"(?=\\\\{)","name":"meta.definition.plan.puppet","patterns":[{"include":"#line_comment"},{"include":"#resource-parameters"},{"include":"#parameter-default-types"}]},{"begin":"^\\\\s*(define|function)\\\\s+([a-z][0-9_a-z]*|(?:[a-z][0-9_a-z]*)?(?:::[a-z][0-9_a-z]*)+)\\\\s*(\\\\()","captures":{"1":{"name":"storage.type.function.puppet"},"2":{"name":"entity.name.function.puppet"}},"end":"(?=\\\\{)","name":"meta.function.puppet","patterns":[{"include":"#line_comment"},{"include":"#resource-parameters"},{"include":"#parameter-default-types"}]},{"captures":{"1":{"name":"keyword.control.puppet"}},"match":"\\\\b(case|else|elsif|if|unless)(?!::)\\\\b"},{"include":"#keywords"},{"include":"#resource-definition"},{"include":"#heredoc"},{"include":"#strings"},{"include":"#puppet-datatypes"},{"include":"#array"},{"match":"((\\\\$?)\\"?[A-Z_a-z\\\\x7F-\xFF][0-9A-Z_a-z\\\\x7F-\xFF]*\\"?):(?=\\\\s+|$)","name":"entity.name.section.puppet"},{"include":"#numbers"},{"include":"#variable"},{"begin":"\\\\b(import|include|contain|require)\\\\s+(?!.*=>)","beginCaptures":{"1":{"name":"keyword.control.import.include.puppet"}},"contentName":"variable.parameter.include.puppet","end":"(?=\\\\s|$)","name":"meta.include.puppet"},{"match":"\\\\b\\\\w+\\\\s*(?==>)\\\\s*","name":"constant.other.key.puppet"},{"match":"(?<=\\\\{)\\\\s*\\\\w+\\\\s*(?=})","name":"constant.other.bareword.puppet"},{"match":"\\\\b(alert|crit|debug|defined|emerg|err|escape|fail|failed|file|generate|gsub|info|notice|package|realize|search|tag|tagged|template|warning)\\\\b(?!.*\\\\{)","name":"support.function.puppet"},{"match":"=>","name":"punctuation.separator.key-value.puppet"},{"match":"->","name":"keyword.control.orderarrow.puppet"},{"match":"~>","name":"keyword.control.notifyarrow.puppet"},{"include":"#regex-literal"}],"repository":{"array":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.array.begin.puppet"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.puppet"}},"name":"meta.array.puppet","patterns":[{"match":"\\\\s*,\\\\s*"},{"include":"#parameter-default-types"},{"include":"#line_comment"}]},"constants":{"patterns":[{"match":"\\\\b(absent|directory|false|file|present|running|stopped|true)\\\\b(?!.*\\\\{)","name":"constant.language.puppet"}]},"double-quoted-string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.puppet"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.puppet"}},"name":"string.quoted.double.interpolated.puppet","patterns":[{"include":"#escaped_char"},{"include":"#interpolated_puppet"}]},"escaped_char":{"match":"\\\\\\\\.","name":"constant.character.escape.puppet"},"function_call":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*)(\\\\()","end":"\\\\)","name":"meta.function-call.puppet","patterns":[{"include":"#parameter-default-types"},{"match":",","name":"punctuation.separator.parameters.puppet"}]},"hash":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.hash.begin.puppet"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.hash.end.puppet"}},"name":"meta.hash.puppet","patterns":[{"match":"\\\\b\\\\w+\\\\s*(?==>)\\\\s*","name":"constant.other.key.puppet"},{"include":"#parameter-default-types"},{"include":"#line_comment"}]},"heredoc":{"patterns":[{"begin":"@\\\\(\\\\p{blank}*\\"([^\\\\t )/:]+)\\"\\\\p{blank}*(:\\\\p{blank}*[a-z][+0-9A-Z_a-z]*\\\\p{blank}*)?(/\\\\p{blank}*[$Lnrst]*)?\\\\p{blank}*\\\\)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.puppet"}},"end":"^\\\\p{blank}*(\\\\|\\\\p{blank}*-|[-|])?\\\\p{blank}*\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.puppet"}},"name":"string.interpolated.heredoc.puppet","patterns":[{"include":"#escaped_char"},{"include":"#interpolated_puppet"}]},{"begin":"@\\\\(\\\\p{blank}*([^\\\\t )/:]+)\\\\p{blank}*(:\\\\p{blank}*[a-z][+0-9A-Z_a-z]*\\\\p{blank}*)?(/\\\\p{blank}*[$Lnrst]*)?\\\\p{blank}*\\\\)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.puppet"}},"end":"^\\\\p{blank}*(\\\\|\\\\p{blank}*-|[-|])?\\\\p{blank}*\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.puppet"}},"name":"string.unquoted.heredoc.puppet"}]},"interpolated_puppet":{"patterns":[{"begin":"(\\\\$\\\\{)(\\\\d+)","beginCaptures":{"1":{"name":"punctuation.section.embedded.begin.puppet"},"2":{"name":"source.puppet variable.other.readwrite.global.pre-defined.puppet"}},"contentName":"source.puppet","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.puppet"}},"name":"meta.embedded.line.puppet","patterns":[{"include":"$self"}]},{"begin":"(\\\\$\\\\{)(_[0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"punctuation.section.embedded.begin.puppet"},"2":{"name":"source.puppet variable.other.readwrite.global.puppet"}},"contentName":"source.puppet","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.puppet"}},"name":"meta.embedded.line.puppet","patterns":[{"include":"$self"}]},{"begin":"(\\\\$\\\\{)(([a-z][0-9_a-z]*)?(?:::[a-z][0-9_a-z]*)*)","beginCaptures":{"1":{"name":"punctuation.section.embedded.begin.puppet"},"2":{"name":"source.puppet variable.other.readwrite.global.puppet"}},"contentName":"source.puppet","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.puppet"}},"name":"meta.embedded.line.puppet","patterns":[{"include":"$self"}]},{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.puppet"}},"contentName":"source.puppet","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.puppet"}},"name":"meta.embedded.line.puppet","patterns":[{"include":"$self"}]}]},"keywords":{"captures":{"1":{"name":"keyword.puppet"}},"match":"\\\\b(undef)\\\\b"},"line_comment":{"patterns":[{"captures":{"1":{"name":"comment.line.number-sign.puppet"},"2":{"name":"punctuation.definition.comment.puppet"}},"match":"^((#).*$\\\\n?)","name":"meta.comment.full-line.puppet"},{"captures":{"1":{"name":"punctuation.definition.comment.puppet"}},"match":"(#).*$\\\\n?","name":"comment.line.number-sign.puppet"}]},"nested_braces":{"begin":"\\\\{","captures":{"1":{"name":"punctuation.section.scope.puppet"}},"end":"}","patterns":[{"include":"#escaped_char"},{"include":"#nested_braces"}]},"nested_braces_interpolated":{"begin":"\\\\{","captures":{"1":{"name":"punctuation.section.scope.puppet"}},"end":"}","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_braces_interpolated"}]},"nested_brackets":{"begin":"\\\\[","captures":{"1":{"name":"punctuation.section.scope.puppet"}},"end":"]","patterns":[{"include":"#escaped_char"},{"include":"#nested_brackets"}]},"nested_brackets_interpolated":{"begin":"\\\\[","captures":{"1":{"name":"punctuation.section.scope.puppet"}},"end":"]","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_brackets_interpolated"}]},"nested_parens":{"begin":"\\\\(","captures":{"1":{"name":"punctuation.section.scope.puppet"}},"end":"\\\\)","patterns":[{"include":"#escaped_char"},{"include":"#nested_parens"}]},"nested_parens_interpolated":{"begin":"\\\\(","captures":{"1":{"name":"punctuation.section.scope.puppet"}},"end":"\\\\)","patterns":[{"include":"#escaped_char"},{"include":"#variable"},{"include":"#nested_parens_interpolated"}]},"numbers":{"patterns":[{"match":"(?<![\\\\w\\\\d])([-+]?)(?i:0x)(?i:[0-9a-f])+(?![\\\\w\\\\d])","name":"constant.numeric.hexadecimal.puppet"},{"match":"(?<![.\\\\w])([-+]?)(?<!\\\\d)\\\\d+(?i:e([-+])?\\\\d+)?(?![.\\\\w\\\\d])","name":"constant.numeric.integer.puppet"},{"match":"(?<!\\\\w)([-+]?)\\\\d+\\\\.\\\\d+(?i:e([-+])?\\\\d+)?(?![\\\\w\\\\d])","name":"constant.numeric.integer.puppet"}]},"parameter-default-types":{"patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#variable"},{"include":"#hash"},{"include":"#array"},{"include":"#function_call"},{"include":"#constants"},{"include":"#puppet-datatypes"}]},"puppet-datatypes":{"patterns":[{"match":"(?<![$A-Za-z])([A-Z][0-9A-Z_a-z]*)(?![0-9A-Z_a-z])","name":"storage.type.puppet"}]},"regex-literal":{"match":"(/)(.+?)[^\\\\\\\\]/","name":"string.regexp.literal.puppet"},"resource-definition":{"begin":"(?:^|\\\\b)(::[a-z][0-9_a-z]*|[a-z][0-9_a-z]*|(?:[a-z][0-9_a-z]*)?(?:::[a-z][0-9_a-z]*)+)\\\\s*(\\\\{)\\\\s*","beginCaptures":{"1":{"name":"meta.definition.resource.puppet storage.type.puppet"}},"contentName":"entity.name.section.puppet","end":":","patterns":[{"include":"#strings"},{"include":"#variable"},{"include":"#array"}]},"resource-parameters":{"patterns":[{"captures":{"1":{"name":"variable.other.puppet"},"2":{"name":"punctuation.definition.variable.puppet"}},"match":"((\\\\$+)[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(?=[),])","name":"meta.function.argument.puppet"},{"begin":"((\\\\$+)[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(=)\\\\s*\\\\s*","captures":{"1":{"name":"variable.other.puppet"},"2":{"name":"punctuation.definition.variable.puppet"},"3":{"name":"keyword.operator.assignment.puppet"}},"end":"(?=[),])","name":"meta.function.argument.puppet","patterns":[{"include":"#parameter-default-types"}]}]},"single-quoted-string":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.puppet"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.puppet"}},"name":"string.quoted.single.puppet","patterns":[{"include":"#escaped_char"}]},"strings":{"patterns":[{"include":"#double-quoted-string"},{"include":"#single-quoted-string"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.puppet"}},"match":"(\\\\$)(\\\\d+)","name":"variable.other.readwrite.global.pre-defined.puppet"},{"captures":{"1":{"name":"punctuation.definition.variable.puppet"}},"match":"(\\\\$)_[0-9A-Z_a-z]*","name":"variable.other.readwrite.global.puppet"},{"captures":{"1":{"name":"punctuation.definition.variable.puppet"}},"match":"(\\\\$)(([a-z][0-9A-Z_a-z]*)?(?:::[a-z][0-9A-Z_a-z]*)*)","name":"variable.other.readwrite.global.puppet"}]}},"scopeName":"source.puppet"}`))];export{e as default}; diff --git a/docs/assets/puppet-CMgcPW4L.js b/docs/assets/puppet-CMgcPW4L.js new file mode 100644 index 0000000..b110717 --- /dev/null +++ b/docs/assets/puppet-CMgcPW4L.js @@ -0,0 +1 @@ +var c={},l=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function s(e,t){for(var a=t.split(" "),n=0;n<a.length;n++)c[a[n]]=e}s("keyword","class define site node include import inherits"),s("keyword","case if else in and elsif default or"),s("atom","false true running present absent file directory undef"),s("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");function r(e,t){for(var a,n,o=!1;!e.eol()&&(a=e.next())!=t.pending;){if(a==="$"&&n!="\\"&&t.pending=='"'){o=!0;break}n=a}return o&&e.backUp(1),a==t.pending?t.continueString=!1:t.continueString=!0,"string"}function p(e,t){var a=e.match(/[\w]+/,!1),n=e.match(/(\s+)?\w+\s+=>.*/,!1),o=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),u=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),i=e.next();if(i==="$")return e.match(l)?t.continueString?"variableName.special":"variable":"error";if(t.continueString)return e.backUp(1),r(e,t);if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),t.inDefinition=!1}return t.inInclude?(e.match(/(\s+)?\S+(\s+)?/),t.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):n?(e.match(/(\s+)?\w+/),"tag"):a&&c.hasOwnProperty(a)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(t.inDefinition=!0),a=="include"&&(t.inInclude=!0),c[a]):/(^|\s+)[A-Z][\w:_]+/.test(a)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):o?(e.match(/(\s+)?[\w:_]+/),"def"):u?(e.match(/(\s+)?[@]{1,2}/),"atom"):i=="#"?(e.skipToEnd(),"comment"):i=="'"||i=='"'?(t.pending=i,r(e,t)):i=="{"||i=="}"?"bracket":i=="/"?(e.match(/^[^\/]*\//),"string.special"):i.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):i=="="?(e.peek()==">"&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}const d={name:"puppet",startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,t){return e.eatSpace()?null:p(e,t)}};export{d as t}; diff --git a/docs/assets/purescript-2gpsnJmf.js b/docs/assets/purescript-2gpsnJmf.js new file mode 100644 index 0000000..88e1e2d --- /dev/null +++ b/docs/assets/purescript-2gpsnJmf.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"PureScript","fileTypes":["purs"],"name":"purescript","patterns":[{"include":"#module_declaration"},{"include":"#module_import"},{"include":"#type_synonym_declaration"},{"include":"#data_type_declaration"},{"include":"#typeclass_declaration"},{"include":"#instance_declaration"},{"include":"#derive_declaration"},{"include":"#infix_op_declaration"},{"include":"#foreign_import_data"},{"include":"#foreign_import"},{"include":"#function_type_declaration"},{"include":"#function_type_declaration_arrow_first"},{"include":"#typed_hole"},{"include":"#keywords_orphan"},{"include":"#control_keywords"},{"include":"#function_infix"},{"include":"#data_ctor"},{"include":"#infix_op"},{"include":"#constants_numeric_decimal"},{"include":"#constant_numeric"},{"include":"#constant_boolean"},{"include":"#string_triple_quoted"},{"include":"#string_single_quoted"},{"include":"#string_double_quoted"},{"include":"#markup_newline"},{"include":"#string_double_colon_parens"},{"include":"#double_colon_parens"},{"include":"#double_colon_inlined"},{"include":"#comments"},{"match":"<-|->","name":"keyword.other.arrow.purescript"},{"match":"[[\\\\p{S}\\\\p{P}]&&[^]\\"'(),;\\\\[_\`{}]]+","name":"keyword.operator.purescript"},{"match":",","name":"punctuation.separator.comma.purescript"}],"repository":{"block_comment":{"patterns":[{"applyEndPatternLast":1,"begin":"\\\\{-\\\\s*\\\\|","beginCaptures":{"0":{"name":"punctuation.definition.comment.documentation.purescript"}},"end":"-}","endCaptures":{"0":{"name":"punctuation.definition.comment.documentation.purescript"}},"name":"comment.block.documentation.purescript","patterns":[{"include":"#block_comment"}]},{"applyEndPatternLast":1,"begin":"\\\\{-","beginCaptures":{"0":{"name":"punctuation.definition.comment.purescript"}},"end":"-}","name":"comment.block.purescript","patterns":[{"include":"#block_comment"}]}]},"characters":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.purescript"},"2":{"name":"constant.character.escape.octal.purescript"},"3":{"name":"constant.character.escape.hexadecimal.purescript"},"4":{"name":"constant.character.escape.control.purescript"}},"match":"[ -\\\\[\\\\]-~]|(\\\\\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[\\"\\\\&'\\\\\\\\abfnrtv]))|(\\\\\\\\o[0-7]+)|(\\\\\\\\x\\\\h+)|(\\\\^[@-_])"}]},"class_constraint":{"patterns":[{"captures":{"1":{"patterns":[{"match":"\\\\b[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*","name":"entity.name.type.purescript"}]},"2":{"patterns":[{"include":"#type_name"},{"include":"#generic_type"}]}},"match":"([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*)\\\\s+(?<classConstraint>(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)(?:\\\\s*\\\\s+\\\\s*(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*))*)","name":"meta.class-constraint.purescript"}]},"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--+)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.purescript"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.purescript"}},"end":"\\\\n","name":"comment.line.double-dash.purescript"}]},{"include":"#block_comment"}]},"constant_boolean":{"patterns":[{"match":"\\\\b(true|false)(?!')\\\\b","name":"constant.language.boolean.purescript"}]},"constant_numeric":{"patterns":[{"match":"\\\\b(([0-9]+_?)*[0-9]+|0([Xx]\\\\h+|[Oo][0-7]+))\\\\b","name":"constant.numeric.purescript"}]},"constants_numeric_decimal":{"patterns":[{"captures":{"0":{"name":"constant.numeric.decimal.purescript"},"1":{"name":"meta.delimiter.decimal.period.purescript"},"2":{"name":"meta.delimiter.decimal.period.purescript"},"3":{"name":"meta.delimiter.decimal.period.purescript"},"4":{"name":"meta.delimiter.decimal.period.purescript"},"5":{"name":"meta.delimiter.decimal.period.purescript"},"6":{"name":"meta.delimiter.decimal.period.purescript"}},"match":"(?<!\\\\$)\\\\b(?:[0-9]+(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|[0-9]+[Ee][-+]?[0-9]+\\\\b|[0-9]+(\\\\.)[0-9]+\\\\b|[0-9]+\\\\b(?!\\\\.))(?!\\\\$)","name":"constant.numeric.decimal.purescript"}]},"control_keywords":{"patterns":[{"match":"\\\\b(do|ado|if|then|else|case|of|let|in)(?!('|\\\\s*([:=])))\\\\b","name":"keyword.control.purescript"}]},"data_ctor":{"patterns":[{"match":"\\\\b[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*","name":"entity.name.tag.purescript"}]},"data_type_declaration":{"patterns":[{"begin":"^(\\\\s)*(data|newtype)\\\\s+(.+?)\\\\s*(?==|$)","beginCaptures":{"2":{"name":"storage.type.data.purescript"},"3":{"name":"meta.type-signature.purescript","patterns":[{"include":"#type_signature"}]}},"end":"^(?!\\\\1[\\\\t ]|[\\\\t ]*$)","name":"meta.declaration.type.data.purescript","patterns":[{"include":"#comments"},{"captures":{"2":{"patterns":[{"include":"#data_ctor"}]}},"match":"(?<=([=|])\\\\s*)([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)"},{"captures":{"0":{"name":"keyword.operator.pipe.purescript"}},"match":"\\\\|"},{"include":"#record_types"},{"include":"#type_signature"}]}]},"derive_declaration":{"patterns":[{"begin":"^\\\\s*\\\\b(derive)(\\\\s+newtype)?(\\\\s+instance)?(?!')\\\\b","beginCaptures":{"1":{"name":"keyword.other.purescript"},"2":{"name":"keyword.other.purescript"},"3":{"name":"keyword.other.purescript"},"4":{"name":"keyword.other.purescript"}},"contentName":"meta.type-signature.purescript","end":"^(?=\\\\S)","endCaptures":{"1":{"name":"keyword.other.purescript"}},"name":"meta.declaration.derive.purescript","patterns":[{"include":"#type_signature"}]}]},"double_colon":{"patterns":[{"match":"::|\u2237","name":"keyword.other.double-colon.purescript"}]},"double_colon_inlined":{"patterns":[{"patterns":[{"captures":{"1":{"name":"keyword.other.double-colon.purescript"},"2":{"name":"meta.type-signature.purescript","patterns":[{"include":"#type_signature"}]}},"match":"(::|\u2237)(.*?)(?=<-| \\"\\"\\")"}]},{"patterns":[{"begin":"(::|\u2237)","beginCaptures":{"1":{"name":"keyword.other.double-colon.purescript"}},"end":"(?=^([\\\\s\\\\S]))","patterns":[{"include":"#type_signature"}]}]}]},"double_colon_orphan":{"patterns":[{"begin":"(\\\\s*)(::|\u2237)(\\\\s*)$","beginCaptures":{"2":{"name":"keyword.other.double-colon.purescript"}},"end":"^(?!\\\\1[\\\\t ]*|[\\\\t ]*$)","patterns":[{"include":"#type_signature"}]}]},"double_colon_parens":{"patterns":[{"captures":{"1":{"patterns":[{"include":"$self"}]},"2":{"name":"keyword.other.double-colon.purescript"},"3":{"name":"meta.type-signature.purescript","patterns":[{"include":"#type_signature"}]}},"match":"\\\\((?<paren>(?:[^()]|\\\\(\\\\g<paren>\\\\))*)(::|\u2237)(?<paren2>(?:[^()}]|\\\\(\\\\g<paren2>\\\\))*)\\\\)"}]},"foreign_import":{"patterns":[{"begin":"^(\\\\s*)(foreign)\\\\s+(import)\\\\s+([_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)","beginCaptures":{"2":{"name":"keyword.other.purescript"},"3":{"name":"keyword.other.purescript"},"4":{"name":"entity.name.function.purescript"}},"contentName":"meta.type-signature.purescript","end":"^(?!\\\\1[\\\\t ]|[\\\\t ]*$)","name":"meta.foreign.purescript","patterns":[{"include":"#double_colon"},{"include":"#type_signature"},{"include":"#record_types"}]}]},"foreign_import_data":{"patterns":[{"begin":"^(\\\\s*)(foreign)\\\\s+(import)\\\\s+(data)\\\\s(?:\\\\s+([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\\\s*(::|\u2237))?","beginCaptures":{"2":{"name":"keyword.other.purescript"},"3":{"name":"keyword.other.purescript"},"4":{"name":"keyword.other.purescript"},"5":{"name":"entity.name.type.purescript"},"6":{"name":"keyword.other.double-colon.purescript"}},"contentName":"meta.kind-signature.purescript","end":"^(?!\\\\1[\\\\t ]|[\\\\t ]*$)","name":"meta.foreign.data.purescript","patterns":[{"include":"#comments"},{"include":"#type_signature"},{"include":"#record_types"}]}]},"function_infix":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.purescript"},"2":{"name":"punctuation.definition.entity.purescript"}},"match":"(\`)(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*.*(\`)","name":"keyword.operator.function.infix.purescript"}]},"function_type_declaration":{"patterns":[{"begin":"^(\\\\s*)([_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\\\s*(::|\u2237)(?!.*<-)","beginCaptures":{"2":{"name":"entity.name.function.purescript"},"3":{"name":"keyword.other.double-colon.purescript"}},"contentName":"meta.type-signature.purescript","end":"^(?!\\\\1[\\\\t ]|[\\\\t ]*$)","name":"meta.function.type-declaration.purescript","patterns":[{"include":"#double_colon"},{"include":"#type_signature"},{"include":"#record_types"},{"include":"#row_types"}]}]},"function_type_declaration_arrow_first":{"patterns":[{"begin":"^(\\\\s*)\\\\s(::|\u2237)(?!.*<-)","beginCaptures":{"2":{"name":"keyword.other.double-colon.purescript"}},"contentName":"meta.type-signature.purescript","end":"^(?!\\\\1[\\\\t ]|[\\\\t ]*$)","name":"meta.function.type-declaration.purescript","patterns":[{"include":"#double_colon"},{"include":"#type_signature"},{"include":"#record_types"},{"include":"#row_types"}]}]},"generic_type":{"patterns":[{"match":"\\\\b(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*","name":"variable.other.generic-type.purescript"}]},"infix_op":{"patterns":[{"match":"\\\\((?!--+\\\\))[[\\\\p{S}\\\\p{P}]&&[^]\\"'(),;\\\\[_\`{}]]+\\\\)","name":"entity.name.function.infix.purescript"}]},"infix_op_declaration":{"patterns":[{"begin":"^\\\\b(infix[lr|]?)(?!')\\\\b","beginCaptures":{"1":{"name":"keyword.other.purescript"}},"end":"$()","name":"meta.infix.declaration.purescript","patterns":[{"include":"#comments"},{"include":"#data_ctor"},{"match":" \\\\d+ ","name":"constant.numeric.purescript"},{"captures":{"1":{"name":"keyword.other.purescript"}},"match":"([[\\\\p{S}\\\\p{P}]&&[^]\\"'(),;\\\\[_\`{}]]+)"},{"captures":{"1":{"name":"keyword.other.purescript"},"2":{"name":"entity.name.type.purescript"}},"match":"\\\\b(type)\\\\s+([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*)\\\\b"},{"captures":{"1":{"name":"keyword.other.purescript"}},"match":"\\\\b(as|type)\\\\b"}]}]},"instance_declaration":{"patterns":[{"begin":"^\\\\s*\\\\b(else\\\\s+)?(newtype\\\\s+)?(instance)(?!')\\\\b","beginCaptures":{"1":{"name":"keyword.other.purescript"},"2":{"name":"keyword.other.purescript"},"3":{"name":"keyword.other.purescript"},"4":{"name":"keyword.other.purescript"}},"contentName":"meta.type-signature.purescript","end":"(\\\\bwhere\\\\b|(?=^\\\\S))","endCaptures":{"1":{"name":"keyword.other.purescript"}},"name":"meta.declaration.instance.purescript","patterns":[{"include":"#type_signature"}]}]},"keywords_orphan":{"patterns":[{"match":"^\\\\s*\\\\b(derive|where|data|type|newtype|foreign(\\\\s+import)?(\\\\s+data)?)(?!')\\\\b","name":"keyword.other.purescript"}]},"kind_signature":{"patterns":[{"match":"\\\\*","name":"keyword.other.star.purescript"},{"match":"!","name":"keyword.other.exclaimation-point.purescript"},{"match":"#","name":"keyword.other.pound-sign.purescript"},{"match":"->|\u2192","name":"keyword.other.arrow.purescript"}]},"markup_newline":{"patterns":[{"match":"\\\\\\\\$","name":"markup.other.escape.newline.purescript"}]},"module_declaration":{"patterns":[{"begin":"^\\\\s*\\\\b(module)(?!')\\\\b","beginCaptures":{"1":{"name":"keyword.other.purescript"}},"end":"\\\\b(where)\\\\b","endCaptures":{"1":{"name":"keyword.other.purescript"}},"name":"meta.declaration.module.purescript","patterns":[{"include":"#comments"},{"include":"#module_name"},{"include":"#module_exports"},{"match":"[a-z]+","name":"invalid.purescript"}]}]},"module_exports":{"patterns":[{"begin":"\\\\(","end":"\\\\)","name":"meta.declaration.exports.purescript","patterns":[{"include":"#comments"},{"match":"\\\\b(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*","name":"entity.name.function.purescript"},{"include":"#type_name"},{"match":",","name":"punctuation.separator.comma.purescript"},{"include":"#infix_op"},{"match":"\\\\(.*?\\\\)","name":"meta.other.constructor-list.purescript"}]}]},"module_import":{"patterns":[{"begin":"^\\\\s*\\\\b(import)(?!')\\\\b","beginCaptures":{"1":{"name":"keyword.other.purescript"}},"end":"^(?=\\\\S)","name":"meta.import.purescript","patterns":[{"include":"#module_name"},{"include":"#string_double_quoted"},{"include":"#comments"},{"include":"#module_exports"},{"captures":{"1":{"name":"keyword.other.purescript"}},"match":"\\\\b(as|hiding)\\\\b"}]}]},"module_name":{"patterns":[{"match":"(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)*[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.?","name":"support.other.module.purescript"}]},"record_field_declaration":{"patterns":[{"begin":"([ ,]\\"(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\"|[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\\\s*(::|\u2237)","beginCaptures":{"1":{"patterns":[{"match":"(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*","name":"entity.other.attribute-name.purescript"},{"match":"\\"([_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*|[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\"","name":"string.quoted.double.purescript"}]},"2":{"name":"keyword.other.double-colon.purescript"}},"contentName":"meta.type-signature.purescript","end":"(?=([ ,]\\"(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\"|[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\\\s*(::|\u2237)|}| \\\\)|^(?!\\\\1[\\\\t ]|[\\\\t ]*$))","name":"meta.record-field.type-declaration.purescript","patterns":[{"include":"#record_types"},{"include":"#type_signature"},{"include":"#comments"}]}]},"record_types":{"patterns":[{"begin":"\\\\{(?!-)","beginCaptures":{"0":{"name":"keyword.operator.type.record.begin.purescript"}},"end":"}","endCaptures":{"0":{"name":"keyword.operator.type.record.end.purescript"}},"name":"meta.type.record.purescript","patterns":[{"match":",","name":"punctuation.separator.comma.purescript"},{"include":"#comments"},{"include":"#record_field_declaration"},{"include":"#type_signature"}]}]},"row_types":{"patterns":[{"begin":"\\\\((?=\\\\s*([_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*|\\"[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*\\"|\\"[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*\\")\\\\s*(::|\u2237))","end":"(?=^\\\\S)","name":"meta.type.row.purescript","patterns":[{"match":",","name":"punctuation.separator.comma.purescript"},{"include":"#comments"},{"include":"#record_field_declaration"},{"include":"#type_signature"}]}]},"string_double_colon_parens":{"patterns":[{"captures":{"1":{"patterns":[{"include":"$self"}]},"2":{"patterns":[{"include":"$self"}]}},"match":"\\\\((.*?)(\\"(?:[ -\\\\[\\\\]-~]|(\\\\\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[\\"\\\\&'\\\\\\\\abfnrtv]))|(\\\\\\\\o[0-7]+)|(\\\\\\\\x\\\\h+)|(\\\\^[@-_]))*(::|\u2237)([ -\\\\[\\\\]-~]|(\\\\\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[\\"\\\\&'\\\\\\\\abfnrtv]))|(\\\\\\\\o[0-7]+)|(\\\\\\\\x\\\\h+)|(\\\\^[@-_]))*\\")"}]},"string_double_quoted":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.purescript"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.purescript"}},"name":"string.quoted.double.purescript","patterns":[{"include":"#characters"},{"begin":"\\\\\\\\\\\\s","beginCaptures":{"0":{"name":"markup.other.escape.newline.begin.purescript"}},"end":"\\\\\\\\","endCaptures":{"0":{"name":"markup.other.escape.newline.end.purescript"}},"patterns":[{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.purescript"}]}]}]},"string_single_quoted":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.string.begin.purescript"},"2":{"patterns":[{"include":"#characters"}]},"7":{"name":"punctuation.definition.string.end.purescript"}},"match":"(')([ -\\\\[\\\\]-~]|(\\\\\\\\(?:NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[\\"\\\\&'\\\\\\\\abfnrtv]))|(\\\\\\\\o[0-7]+)|(\\\\\\\\x\\\\h+)|(\\\\^[@-_]))(')","name":"string.quoted.single.purescript"}]},"string_triple_quoted":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.purescript"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.purescript"}},"name":"string.quoted.triple.purescript"}]},"type_kind_signature":{"patterns":[{"begin":"^(data|newtype)\\\\s+([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)\\\\s*(::|\u2237)","beginCaptures":{"1":{"name":"storage.type.data.purescript"},"2":{"name":"meta.type-signature.purescript","patterns":[{"include":"#type_signature"}]},"3":{"name":"keyword.other.double-colon.purescript"}},"end":"(?=^\\\\S)","name":"meta.declaration.type.data.signature.purescript","patterns":[{"include":"#type_signature"},{"captures":{"0":{"name":"keyword.operator.assignment.purescript"}},"match":"="},{"captures":{"1":{"patterns":[{"include":"#data_ctor"}]},"2":{"name":"meta.type-signature.purescript","patterns":[{"include":"#type_signature"}]}},"match":"\\\\b([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*)\\\\s+(?<ctorArgs>(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*|(?:(?:[]'(),\\\\[\u2192\u21D2\\\\w]|->|=>)+\\\\s*)+)(?:\\\\s*\\\\s+\\\\s*(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*|(?:(?:[]'(),\\\\[\u2192\u21D2\\\\w]|->|=>)+\\\\s*)+))*)?"},{"captures":{"0":{"name":"keyword.operator.pipe.purescript"}},"match":"\\\\|"},{"include":"#record_types"}]}]},"type_name":{"patterns":[{"match":"\\\\b[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*","name":"entity.name.type.purescript"}]},"type_signature":{"patterns":[{"include":"#record_types"},{"captures":{"1":{"patterns":[{"include":"#class_constraint"}]},"6":{"name":"keyword.other.big-arrow.purescript"}},"match":"\\\\((?<classConstraints>([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*)\\\\s+(?<classConstraint>(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)(?:\\\\s*\\\\s+\\\\s*(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*))*)(?:\\\\s*,\\\\s*([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*)\\\\s+(?<classConstraint>(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)(?:\\\\s*\\\\s+\\\\s*(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*))*))*)\\\\)\\\\s*(=>|<=|[\u21D0\u21D2])","name":"meta.class-constraints.purescript"},{"captures":{"1":{"patterns":[{"include":"#class_constraint"}]},"4":{"name":"keyword.other.big-arrow.purescript"}},"match":"(([\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*)\\\\s+(?<classConstraint>(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)(?:\\\\s*\\\\s+\\\\s*(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*|(?:[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*(?:\\\\.[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)*\\\\.)?[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*))*))\\\\s*(=>|<=|[\u21D0\u21D2])","name":"meta.class-constraints.purescript"},{"match":"(?<![[\\\\p{S}\\\\p{P}]&&[^]\\"'(),;\\\\[_\`{}]])(->|\u2192)","name":"keyword.other.arrow.purescript"},{"match":"(?<![[\\\\p{S}\\\\p{P}]&&[^]\\"'(),;\\\\[_\`{}]])(=>|\u21D2)","name":"keyword.other.big-arrow.purescript"},{"match":"<=|\u21D0","name":"keyword.other.big-arrow-left.purescript"},{"match":"forall|\u2200","name":"keyword.other.forall.purescript"},{"include":"#string_double_quoted"},{"include":"#generic_type"},{"include":"#type_name"},{"include":"#comments"},{"match":"[[\\\\p{S}\\\\p{P}]&&[^]\\"'(),;\\\\[_\`{}]]+","name":"keyword.other.purescript"}]},"type_synonym_declaration":{"patterns":[{"begin":"^(\\\\s)*(type)\\\\s+(.+?)\\\\s*(?==|$)","beginCaptures":{"2":{"name":"storage.type.data.purescript"},"3":{"name":"meta.type-signature.purescript","patterns":[{"include":"#type_signature"}]}},"contentName":"meta.type-signature.purescript","end":"^(?!\\\\1[\\\\t ]|[\\\\t ]*$)","name":"meta.declaration.type.type.purescript","patterns":[{"captures":{"0":{"name":"keyword.operator.assignment.purescript"}},"match":"="},{"include":"#type_signature"},{"include":"#record_types"},{"include":"#row_types"},{"include":"#comments"}]}]},"typeclass_declaration":{"patterns":[{"begin":"^\\\\s*\\\\b(class)(?!')\\\\b","beginCaptures":{"1":{"name":"storage.type.class.purescript"}},"end":"(\\\\bwhere\\\\b|(?=^\\\\S))","endCaptures":{"1":{"name":"keyword.other.purescript"}},"name":"meta.declaration.typeclass.purescript","patterns":[{"include":"#type_signature"}]}]},"typed_hole":{"patterns":[{"match":"\\\\?(?:[_\\\\p{Ll}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*|[\\\\p{Lu}\\\\p{Lt}]['_\\\\p{Ll}\\\\p{Lu}\\\\p{Lt}\\\\d]*)","name":"entity.name.function.typed-hole.purescript"}]}},"scopeName":"source.purescript"}`))];export{e as default}; diff --git a/docs/assets/purify.es-N-2faAGj.js b/docs/assets/purify.es-N-2faAGj.js new file mode 100644 index 0000000..55863ba --- /dev/null +++ b/docs/assets/purify.es-N-2faAGj.js @@ -0,0 +1,2 @@ +var{entries:rt,setPrototypeOf:ot,isFrozen:Ht,getPrototypeOf:Bt,getOwnPropertyDescriptor:Gt}=Object,{freeze:_,seal:b,create:De}=Object,{apply:at,construct:it}=typeof Reflect<"u"&&Reflect;_||(_=function(o){return o}),b||(b=function(o){return o}),at||(at=function(o,r){var c=[...arguments].slice(2);return o.apply(r,c)}),it||(it=function(o){return new o(...[...arguments].slice(1))});var le=A(Array.prototype.forEach),Wt=A(Array.prototype.lastIndexOf),lt=A(Array.prototype.pop),q=A(Array.prototype.push),Yt=A(Array.prototype.splice),ce=A(String.prototype.toLowerCase),Ce=A(String.prototype.toString),we=A(String.prototype.match),$=A(String.prototype.replace),jt=A(String.prototype.indexOf),Xt=A(String.prototype.trim),N=A(Object.prototype.hasOwnProperty),E=A(RegExp.prototype.test),K=qt(TypeError);function A(o){return function(r){r instanceof RegExp&&(r.lastIndex=0);var c=[...arguments].slice(1);return at(o,r,c)}}function qt(o){return function(){return it(o,[...arguments])}}function a(o,r){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;ot&&ot(o,null);let s=r.length;for(;s--;){let S=r[s];if(typeof S=="string"){let R=c(S);R!==S&&(Ht(r)||(r[s]=R),S=R)}o[S]=!0}return o}function $t(o){for(let r=0;r<o.length;r++)N(o,r)||(o[r]=null);return o}function C(o){let r=De(null);for(let[c,s]of rt(o))N(o,c)&&(Array.isArray(s)?r[c]=$t(s):s&&typeof s=="object"&&s.constructor===Object?r[c]=C(s):r[c]=s);return r}function V(o,r){for(;o!==null;){let s=Gt(o,r);if(s){if(s.get)return A(s.get);if(typeof s.value=="function")return A(s.value)}o=Bt(o)}function c(){return null}return c}var ct=_("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),ve=_("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),Oe=_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Kt=_(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ke=_("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),Vt=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),st=_(["#text"]),ut=_("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")),Le=_("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),mt=_("accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),se=_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zt=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jt=b(/<%[\w\W]*|[\w\W]*%>/gm),Qt=b(/\$\{[\w\W]*/gm),en=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),tn=b(/^aria-[\-\w]+$/),pt=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nn=b(/^(?:\w+script|data):/i),rn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ft=b(/^html$/i),on=b(/^[a-z][.\w]*(-[.\w]+)+$/i),dt=Object.freeze({__proto__:null,ARIA_ATTR:tn,ATTR_WHITESPACE:rn,CUSTOM_ELEMENT:on,DATA_ATTR:en,DOCTYPE_NAME:ft,ERB_EXPR:Jt,IS_ALLOWED_URI:pt,IS_SCRIPT_OR_DATA:nn,MUSTACHE_EXPR:Zt,TMPLIT_EXPR:Qt}),Z={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},an=function(){return typeof window>"u"?null:window},ln=function(o,r){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let c=null,s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(c=r.getAttribute(s));let S="dompurify"+(c?"#"+c:"");try{return o.createPolicy(S,{createHTML(R){return R},createScriptURL(R){return R}})}catch{return console.warn("TrustedTypes policy "+S+" could not be created."),null}},gt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an(),r=e=>ht(e);if(r.version="3.3.1",r.removed=[],!o||!o.document||o.document.nodeType!==Z.document||!o.Element)return r.isSupported=!1,r;let{document:c}=o,s=c,S=s.currentScript,{DocumentFragment:R,HTMLTemplateElement:Tt,Node:ue,Element:xe,NodeFilter:B,NamedNodeMap:yt=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:Et,DOMParser:At,trustedTypes:J}=o,G=xe.prototype,_t=V(G,"cloneNode"),bt=V(G,"remove"),Nt=V(G,"nextSibling"),St=V(G,"childNodes"),Q=V(G,"parentNode");if(typeof Tt=="function"){let e=c.createElement("template");e.content&&e.content.ownerDocument&&(c=e.content.ownerDocument)}let h,W="",{implementation:me,createNodeIterator:Rt,createDocumentFragment:Dt,getElementsByTagName:Ct}=c,{importNode:wt}=s,T=gt();r.isSupported=typeof rt=="function"&&typeof Q=="function"&&me&&me.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:pe,ERB_EXPR:fe,TMPLIT_EXPR:de,DATA_ATTR:vt,ARIA_ATTR:Ot,IS_SCRIPT_OR_DATA:kt,ATTR_WHITESPACE:Ie,CUSTOM_ELEMENT:Lt}=dt,{IS_ALLOWED_URI:Me}=dt,p=null,Ue=a({},[...ct,...ve,...Oe,...ke,...st]),f=null,Pe=a({},[...ut,...Le,...mt,...se]),u=Object.seal(De(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,ge=null,M=Object.seal(De(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Fe=!0,he=!0,ze=!1,He=!0,U=!1,ee=!0,k=!1,Te=!1,ye=!1,P=!1,te=!1,ne=!1,Be=!0,Ge=!1,Ee=!0,j=!1,F={},D=null,Ae=a({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ye=a({},["audio","video","img","source","image","track"]),_e=null,je=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml",z=w,be=!1,Ne=null,xt=a({},[re,oe,w],Ce),ae=a({},["mi","mo","mn","ms","mtext"]),ie=a({},["annotation-xml"]),It=a({},["title","style","font","a","script"]),X=null,Mt=["application/xhtml+xml","text/html"],m=null,H=null,Ut=c.createElement("form"),Xe=function(e){return e instanceof RegExp||e instanceof Function},Se=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===e)){if((!e||typeof e!="object")&&(e={}),e=C(e),X=Mt.indexOf(e.PARSER_MEDIA_TYPE)===-1?"text/html":e.PARSER_MEDIA_TYPE,m=X==="application/xhtml+xml"?Ce:ce,p=N(e,"ALLOWED_TAGS")?a({},e.ALLOWED_TAGS,m):Ue,f=N(e,"ALLOWED_ATTR")?a({},e.ALLOWED_ATTR,m):Pe,Ne=N(e,"ALLOWED_NAMESPACES")?a({},e.ALLOWED_NAMESPACES,Ce):xt,_e=N(e,"ADD_URI_SAFE_ATTR")?a(C(je),e.ADD_URI_SAFE_ATTR,m):je,We=N(e,"ADD_DATA_URI_TAGS")?a(C(Ye),e.ADD_DATA_URI_TAGS,m):Ye,D=N(e,"FORBID_CONTENTS")?a({},e.FORBID_CONTENTS,m):Ae,Y=N(e,"FORBID_TAGS")?a({},e.FORBID_TAGS,m):C({}),ge=N(e,"FORBID_ATTR")?a({},e.FORBID_ATTR,m):C({}),F=N(e,"USE_PROFILES")?e.USE_PROFILES:!1,Fe=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,He=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=e.SAFE_FOR_TEMPLATES||!1,ee=e.SAFE_FOR_XML!==!1,k=e.WHOLE_DOCUMENT||!1,P=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,ye=e.FORCE_BODY||!1,Be=e.SANITIZE_DOM!==!1,Ge=e.SANITIZE_NAMED_PROPS||!1,Ee=e.KEEP_CONTENT!==!1,j=e.IN_PLACE||!1,Me=e.ALLOWED_URI_REGEXP||pt,z=e.NAMESPACE||w,ae=e.MATHML_TEXT_INTEGRATION_POINTS||ae,ie=e.HTML_INTEGRATION_POINTS||ie,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Xe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Xe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(he=!1),te&&(P=!0),F&&(p=a({},st),f=[],F.html===!0&&(a(p,ct),a(f,ut)),F.svg===!0&&(a(p,ve),a(f,Le),a(f,se)),F.svgFilters===!0&&(a(p,Oe),a(f,Le),a(f,se)),F.mathMl===!0&&(a(p,ke),a(f,mt),a(f,se))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?M.tagCheck=e.ADD_TAGS:(p===Ue&&(p=C(p)),a(p,e.ADD_TAGS,m))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?M.attributeCheck=e.ADD_ATTR:(f===Pe&&(f=C(f)),a(f,e.ADD_ATTR,m))),e.ADD_URI_SAFE_ATTR&&a(_e,e.ADD_URI_SAFE_ATTR,m),e.FORBID_CONTENTS&&(D===Ae&&(D=C(D)),a(D,e.FORBID_CONTENTS,m)),e.ADD_FORBID_CONTENTS&&(D===Ae&&(D=C(D)),a(D,e.ADD_FORBID_CONTENTS,m)),Ee&&(p["#text"]=!0),k&&a(p,["html","head","body"]),p.table&&(a(p,["tbody"]),delete Y.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');h=e.TRUSTED_TYPES_POLICY,W=h.createHTML("")}else h===void 0&&(h=ln(J,S)),h!==null&&typeof W=="string"&&(W=h.createHTML(""));_&&_(e),H=e}},qe=a({},[...ve,...Oe,...Kt]),$e=a({},[...ke,...Vt]),Pt=function(e){let n=Q(e);(!n||!n.tagName)&&(n={namespaceURI:z,tagName:"template"});let t=ce(e.tagName),i=ce(n.tagName);return Ne[e.namespaceURI]?e.namespaceURI===oe?n.namespaceURI===w?t==="svg":n.namespaceURI===re?t==="svg"&&(i==="annotation-xml"||ae[i]):!!qe[t]:e.namespaceURI===re?n.namespaceURI===w?t==="math":n.namespaceURI===oe?t==="math"&&ie[i]:!!$e[t]:e.namespaceURI===w?n.namespaceURI===oe&&!ie[i]||n.namespaceURI===re&&!ae[i]?!1:!$e[t]&&(It[t]||!qe[t]):!!(X==="application/xhtml+xml"&&Ne[e.namespaceURI]):!1},L=function(e){q(r.removed,{element:e});try{Q(e).removeChild(e)}catch{bt(e)}},x=function(e,n){try{q(r.removed,{attribute:n.getAttributeNode(e),from:n})}catch{q(r.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is")if(P||te)try{L(n)}catch{}else try{n.setAttribute(e,"")}catch{}},Ke=function(e){let n=null,t=null;if(ye)e="<remove></remove>"+e;else{let y=we(e,/^[\r\n\t ]+/);t=y&&y[0]}X==="application/xhtml+xml"&&z===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=h?h.createHTML(e):e;if(z===w)try{n=new At().parseFromString(i,X)}catch{}if(!n||!n.documentElement){n=me.createDocument(z,"template",null);try{n.documentElement.innerHTML=be?W:i}catch{}}let l=n.body||n.documentElement;return e&&t&&l.insertBefore(c.createTextNode(t),l.childNodes[0]||null),z===w?Ct.call(n,k?"html":"body")[0]:k?n.documentElement:l},Ve=function(e){return Rt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Re=function(e){return e instanceof Et&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof yt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Ze=function(e){return typeof ue=="function"&&e instanceof ue};function v(e,n,t){le(e,i=>{i.call(r,n,t,H)})}let Je=function(e){let n=null;if(v(T.beforeSanitizeElements,e,null),Re(e))return L(e),!0;let t=m(e.nodeName);if(v(T.uponSanitizeElement,e,{tagName:t,allowedTags:p}),ee&&e.hasChildNodes()&&!Ze(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent)||e.nodeType===Z.progressingInstruction||ee&&e.nodeType===Z.comment&&E(/<[/\w]/g,e.data))return L(e),!0;if(!(M.tagCheck instanceof Function&&M.tagCheck(t))&&(!p[t]||Y[t])){if(!Y[t]&&et(t)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t)))return!1;if(Ee&&!D[t]){let i=Q(e)||e.parentNode,l=St(e)||e.childNodes;if(l&&i){let y=l.length;for(let I=y-1;I>=0;--I){let g=_t(l[I],!0);g.__removalCount=(e.__removalCount||0)+1,i.insertBefore(g,Nt(e))}}}return L(e),!0}return e instanceof xe&&!Pt(e)||(t==="noscript"||t==="noembed"||t==="noframes")&&E(/<\/no(script|embed|frames)/i,e.innerHTML)?(L(e),!0):(U&&e.nodeType===Z.text&&(n=e.textContent,le([pe,fe,de],i=>{n=$(n,i," ")}),e.textContent!==n&&(q(r.removed,{element:e.cloneNode()}),e.textContent=n)),v(T.afterSanitizeElements,e,null),!1)},Qe=function(e,n,t){if(Be&&(n==="id"||n==="name")&&(t in c||t in Ut))return!1;if(!(he&&!ge[n]&&E(vt,n))&&!(Fe&&E(Ot,n))&&!(M.attributeCheck instanceof Function&&M.attributeCheck(n,e))){if(!f[n]||ge[n]){if(!(et(e)&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&E(u.attributeNameCheck,n)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(n,e))||n==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&E(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t))))return!1}else if(!_e[n]&&!E(Me,$(t,Ie,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&jt(t,"data:")===0&&We[e])&&!(ze&&!E(kt,$(t,Ie,"")))&&t)return!1}return!0},et=function(e){return e!=="annotation-xml"&&we(e,Lt)},tt=function(e){v(T.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Re(e))return;let t={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:l,namespaceURI:y,value:I}=n[i],g=m(l),O=I,d=l==="value"?O:Xt(O);if(t.attrName=g,t.attrValue=d,t.keepAttr=!0,t.forceKeepAttr=void 0,v(T.uponSanitizeAttribute,e,t),d=t.attrValue,Ge&&(g==="id"||g==="name")&&(x(l,e),d="user-content-"+d),ee&&E(/((--!?|])>)|<\/(style|title|textarea)/i,d)){x(l,e);continue}if(g==="attributename"&&we(d,"href")){x(l,e);continue}if(t.forceKeepAttr)continue;if(!t.keepAttr){x(l,e);continue}if(!He&&E(/\/>/i,d)){x(l,e);continue}U&&le([pe,fe,de],zt=>{d=$(d,zt," ")});let nt=m(e.nodeName);if(!Qe(nt,g,d)){x(l,e);continue}if(h&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!y)switch(J.getAttributeType(nt,g)){case"TrustedHTML":d=h.createHTML(d);break;case"TrustedScriptURL":d=h.createScriptURL(d);break}if(d!==O)try{y?e.setAttributeNS(y,l,d):e.setAttribute(l,d),Re(e)?L(e):lt(r.removed)}catch{x(l,e)}}v(T.afterSanitizeAttributes,e,null)},Ft=function e(n){let t=null,i=Ve(n);for(v(T.beforeSanitizeShadowDOM,n,null);t=i.nextNode();)v(T.uponSanitizeShadowNode,t,null),Je(t),tt(t),t.content instanceof R&&e(t.content);v(T.afterSanitizeShadowDOM,n,null)};return r.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,i=null,l=null,y=null;if(be=!e,be&&(e="<!-->"),typeof e!="string"&&!Ze(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw K("dirty is not a string, aborting")}else throw K("toString is not a function");if(!r.isSupported)return e;if(Te||Se(n),r.removed=[],typeof e=="string"&&(j=!1),j){if(e.nodeName){let O=m(e.nodeName);if(!p[O]||Y[O])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof ue)t=Ke("<!---->"),i=t.ownerDocument.importNode(e,!0),i.nodeType===Z.element&&i.nodeName==="BODY"||i.nodeName==="HTML"?t=i:t.appendChild(i);else{if(!P&&!U&&!k&&e.indexOf("<")===-1)return h&&ne?h.createHTML(e):e;if(t=Ke(e),!t)return P?null:ne?W:""}t&&ye&&L(t.firstChild);let I=Ve(j?e:t);for(;l=I.nextNode();)Je(l),tt(l),l.content instanceof R&&Ft(l.content);if(j)return e;if(P){if(te)for(y=Dt.call(t.ownerDocument);t.firstChild;)y.appendChild(t.firstChild);else y=t;return(f.shadowroot||f.shadowrootmode)&&(y=wt.call(s,y,!0)),y}let g=k?t.outerHTML:t.innerHTML;return k&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&E(ft,t.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+t.ownerDocument.doctype.name+`> +`+g),U&&le([pe,fe,de],O=>{g=$(g,O," ")}),h&&ne?h.createHTML(g):g},r.setConfig=function(){Se(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Te=!0},r.clearConfig=function(){H=null,Te=!1},r.isValidAttribute=function(e,n,t){return H||Se({}),Qe(m(e),m(n),t)},r.addHook=function(e,n){typeof n=="function"&&q(T[e],n)},r.removeHook=function(e,n){if(n!==void 0){let t=Wt(T[e],n);return t===-1?void 0:Yt(T[e],t,1)[0]}return lt(T[e])},r.removeHooks=function(e){T[e]=[]},r.removeAllHooks=function(){T=gt()},r}var cn=ht();export{cn as t}; diff --git a/docs/assets/python-4yue3pyq.js b/docs/assets/python-4yue3pyq.js new file mode 100644 index 0000000..bc48dd0 --- /dev/null +++ b/docs/assets/python-4yue3pyq.js @@ -0,0 +1 @@ +import{n as t,r as a,t as o}from"./python-DOZzlkV_.js";export{o as cython,t as mkPython,a as python}; diff --git a/docs/assets/python-CNXv2KWA.js b/docs/assets/python-CNXv2KWA.js new file mode 100644 index 0000000..5259547 --- /dev/null +++ b/docs/assets/python-CNXv2KWA.js @@ -0,0 +1 @@ +import{t}from"./python-GH_mL2fV.js";export{t as default}; diff --git a/docs/assets/python-DOZzlkV_.js b/docs/assets/python-DOZzlkV_.js new file mode 100644 index 0000000..52bb4ad --- /dev/null +++ b/docs/assets/python-DOZzlkV_.js @@ -0,0 +1 @@ +function k(i){return RegExp("^(("+i.join(")|(")+"))\\b")}var Z=k(["and","or","not","is"]),L="as.assert.break.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.lambda.pass.raise.return.try.while.with.yield.in.False.True".split("."),O="abs.all.any.bin.bool.bytearray.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip.__import__.NotImplemented.Ellipsis.__debug__".split(".");function s(i){return i.scopes[i.scopes.length-1]}function v(i){for(var u="error",S=i.delimiters||i.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,d=[i.singleOperators,i.doubleOperators,i.doubleDelimiters,i.tripleDelimiters,i.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],m=0;m<d.length;m++)d[m]||d.splice(m--,1);var g=i.hangingIndent,f=L,p=O;i.extra_keywords!=null&&(f=f.concat(i.extra_keywords)),i.extra_builtins!=null&&(p=p.concat(i.extra_builtins));var x=!(i.version&&Number(i.version)<3);if(x){var h=i.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;f=f.concat(["nonlocal","None","aiter","anext","async","await","breakpoint","match","case"]),p=p.concat(["ascii","bytes","exec","print"]);var _=RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var h=i.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;f=f.concat(["exec","print"]),p=p.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","None"]);var _=RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var E=k(f),A=k(p);function z(e,n){var r=e.sol()&&n.lastToken!="\\";if(r&&(n.indent=e.indentation()),r&&s(n).type=="py"){var t=s(n).offset;if(e.eatSpace()){var o=e.indentation();return o>t?w(e,n):o<t&&T(e,n)&&e.peek()!="#"&&(n.errorToken=!0),null}else{var l=y(e,n);return t>0&&T(e,n)&&(l+=" "+u),l}}return y(e,n)}function y(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var t=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(t=!0),e.match(/^[\d_]+\.\d*/)&&(t=!0),e.match(/^\.\d+/)&&(t=!0),t)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(o=!0),e.match(/^0b[01_]+/i)&&(o=!0),e.match(/^0o[0-7_]+/i)&&(o=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}if(e.match(_))return e.current().toLowerCase().indexOf("f")===-1?(n.tokenize=I(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=D(e.current(),n.tokenize),n.tokenize(e,n));for(var l=0;l<d.length;l++)if(e.match(d[l]))return"operator";return e.match(S)?"punctuation":n.lastToken=="."&&e.match(h)?"property":e.match(E)||e.match(Z)?"keyword":e.match(A)?"builtin":e.match(/^(self|cls)\b/)?"self":e.match(h)?n.lastToken=="def"||n.lastToken=="class"?"def":"variable":(e.next(),r?null:u)}function D(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,t="string";function o(a){return function(c,b){var F=y(c,b,!0);return F=="punctuation"&&(c.current()=="{"?b.tokenize=o(a+1):c.current()=="}"&&(a>1?b.tokenize=o(a-1):b.tokenize=l)),F}}function l(a,c){for(;!a.eol();)if(a.eatWhile(/[^'"\{\}\\]/),a.eat("\\")){if(a.next(),r&&a.eol())return t}else{if(a.match(e))return c.tokenize=n,t;if(a.match("{{"))return t;if(a.match("{",!1))return c.tokenize=o(0),a.current()?t:c.tokenize(a,c);if(a.match("}}"))return t;if(a.match("}"))return u;a.eat(/['"]/)}if(r){if(i.singleLineStringErrors)return u;c.tokenize=n}return t}return l.isString=!0,l}function I(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,t="string";function o(l,a){for(;!l.eol();)if(l.eatWhile(/[^'"\\]/),l.eat("\\")){if(l.next(),r&&l.eol())return t}else{if(l.match(e))return a.tokenize=n,t;l.eat(/['"]/)}if(r){if(i.singleLineStringErrors)return u;a.tokenize=n}return t}return o.isString=!0,o}function w(e,n){for(;s(n).type!="py";)n.scopes.pop();n.scopes.push({offset:s(n).offset+e.indentUnit,type:"py",align:null})}function C(e,n,r){var t=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;n.scopes.push({offset:n.indent+(g||e.indentUnit),type:r,align:t})}function T(e,n){for(var r=e.indentation();n.scopes.length>1&&s(n).offset>r;){if(s(n).type!="py")return!0;n.scopes.pop()}return s(n).offset!=r}function N(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),t=e.current();if(n.beginningOfLine&&t=="@")return e.match(h,!1)?"meta":x?"operator":u;if(/\S/.test(t)&&(n.beginningOfLine=!1),(r=="variable"||r=="builtin")&&n.lastToken=="meta"&&(r="meta"),(t=="pass"||t=="return")&&(n.dedent=!0),t=="lambda"&&(n.lambda=!0),t==":"&&!n.lambda&&s(n).type=="py"&&e.match(/^\s*(?:#|$)/,!1)&&w(e,n),t.length==1&&!/string|comment/.test(r)){var o="[({".indexOf(t);if(o!=-1&&C(e,n,"])}".slice(o,o+1)),o="])}".indexOf(t),o!=-1)if(s(n).type==t)n.indent=n.scopes.pop().offset-(g||e.indentUnit);else return u}return n.dedent&&e.eol()&&s(n).type=="py"&&n.scopes.length>1&&n.scopes.pop(),r}return{name:"python",startState:function(){return{tokenize:z,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var t=N(e,n);return t&&t!="comment"&&(n.lastToken=t=="keyword"||t=="punctuation"?e.current():t),t=="punctuation"&&(t=null),e.eol()&&n.lambda&&(n.lambda=!1),r?u:t},indent:function(e,n,r){if(e.tokenize!=z)return e.tokenize.isString?null:0;var t=s(e),o=t.type==n.charAt(0)||t.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(n);return t.align==null?t.offset-(o?g||r.unit:0):t.align-(o?1:0)},languageData:{autocomplete:L.concat(O).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}var R=function(i){return i.split(" ")};const U=v({}),$=v({extra_keywords:R("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")});export{v as n,U as r,$ as t}; diff --git a/docs/assets/python-GH_mL2fV.js b/docs/assets/python-GH_mL2fV.js new file mode 100644 index 0000000..753891b --- /dev/null +++ b/docs/assets/python-GH_mL2fV.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Python","name":"python","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated-parameter":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"}]},"assignment-operator":{"match":"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)","name":"keyword.operator.assignment.python"},"backticks":{"begin":"\`","end":"\`|(?<!\\\\\\\\)(\\\\n)","name":"invalid.deprecated.backtick.python","patterns":[{"include":"#expression"}]},"builtin-callables":{"patterns":[{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#builtin-exceptions"},{"include":"#builtin-functions"},{"include":"#builtin-types"}]},"builtin-exceptions":{"match":"(?<!\\\\.)\\\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\\\b","name":"support.type.exception.python"},"builtin-functions":{"patterns":[{"match":"(?<!\\\\.)\\\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\\\b","name":"support.function.builtin.python"},{"match":"(?<!\\\\.)\\\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\\\b","name":"variable.legacy.builtin.python"}]},"builtin-possible-callables":{"patterns":[{"include":"#builtin-callables"},{"include":"#magic-names"}]},"builtin-types":{"match":"(?<!\\\\.)\\\\b(bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\\\b","name":"support.type.python"},"call-wrapper-inheritance":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#inheritance-name"},{"include":"#function-arguments"}]},"class-declaration":{"patterns":[{"begin":"\\\\s*(class)\\\\s+(?=[_[:alpha:]]\\\\w*\\\\s*([(:]))","beginCaptures":{"1":{"name":"storage.type.class.python"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.section.class.begin.python"}},"name":"meta.class.python","patterns":[{"include":"#class-name"},{"include":"#class-inheritance"}]}]},"class-inheritance":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.inheritance.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.inheritance.end.python"}},"name":"meta.class.inheritance.python","patterns":[{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.arguments.python"},{"match":",","name":"punctuation.separator.inheritance.python"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"match":"\\\\bmetaclass\\\\b","name":"support.type.metaclass.python"},{"include":"#illegal-names"},{"include":"#class-kwarg"},{"include":"#call-wrapper-inheritance"},{"include":"#expression-base"},{"include":"#member-access-class"},{"include":"#inheritance-identifier"}]},"class-kwarg":{"captures":{"1":{"name":"entity.other.inherited-class.python variable.parameter.class.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},"class-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.type.class.python"}]},"codetags":{"captures":{"1":{"name":"keyword.codetag.notation.python"}},"match":"\\\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\\\b"},"comments":{"patterns":[{"begin":"#\\\\s*(type:)\\\\s*+(?!$|#)","beginCaptures":{"0":{"name":"meta.typehint.comment.python"},"1":{"name":"comment.typehint.directive.notation.python"}},"contentName":"meta.typehint.comment.python","end":"$|(?=#)","name":"comment.line.number-sign.python","patterns":[{"match":"\\\\Gignore(?=\\\\s*(?:$|#))","name":"comment.typehint.ignore.notation.python"},{"match":"(?<!\\\\.)\\\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\\\b","name":"comment.typehint.type.notation.python"},{"match":"([]()*,.=\\\\[]|(->))","name":"comment.typehint.punctuation.notation.python"},{"match":"([_[:alpha:]]\\\\w*)","name":"comment.typehint.variable.notation.python"}]},{"include":"#comments-base"}]},"comments-base":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"$()","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-double-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\\"\\"\\"))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-single-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?='''))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"curly-braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.python"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.python"}},"patterns":[{"match":":","name":"punctuation.separator.dict.python"},{"include":"#expression"}]},"decorator":{"begin":"^\\\\s*((@))\\\\s*(?=[_[:alpha:]]\\\\w*)","beginCaptures":{"1":{"name":"entity.name.function.decorator.python"},"2":{"name":"punctuation.definition.decorator.python"}},"end":"(\\\\))(.*?)(?=\\\\s*(?:#|$))|(?=[\\\\n#])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"invalid.illegal.decorator.python"}},"name":"meta.function.decorator.python","patterns":[{"include":"#decorator-name"},{"include":"#function-arguments"}]},"decorator-name":{"patterns":[{"include":"#builtin-callables"},{"include":"#illegal-object-name"},{"captures":{"2":{"name":"punctuation.separator.period.python"}},"match":"([_[:alpha:]]\\\\w*)|(\\\\.)","name":"entity.name.function.decorator.python"},{"include":"#line-continuation"},{"captures":{"1":{"name":"invalid.illegal.decorator.python"}},"match":"\\\\s*([^#(.\\\\\\\\_[:alpha:]\\\\s].*?)(?=#|$)","name":"invalid.illegal.decorator.python"}]},"docstring":{"patterns":[{"begin":"('''|\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.multi.python","patterns":[{"include":"#docstring-prompt"},{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.raw.multi.python","patterns":[{"include":"#string-consume-escape"},{"include":"#docstring-prompt"},{"include":"#codetags"}]},{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.single.python","patterns":[{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])([\\"'])","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.raw.single.python","patterns":[{"include":"#string-consume-escape"},{"include":"#codetags"}]}]},"docstring-guts-unicode":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"docstring-prompt":{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"(?:^|\\\\G)\\\\s*((?:>>>|\\\\.\\\\.\\\\.)\\\\s)(?=\\\\s*\\\\S)"},"docstring-statement":{"begin":"^(?=\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","end":"((?<=\\\\1)|^)(?!\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","patterns":[{"include":"#docstring"}]},"double-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-one-regexp-character-set"},{"include":"#double-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-one-regexp-lookahead"},{"include":"#double-one-regexp-lookahead-negative"},{"include":"#double-one-regexp-lookbehind"},{"include":"#double-one-regexp-lookbehind-negative"},{"include":"#double-one-regexp-conditional"},{"include":"#double-one-regexp-parentheses-non-capturing"},{"include":"#double-one-regexp-parentheses"}]},"double-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-three-regexp-character-set"},{"include":"#double-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-three-regexp-lookahead"},{"include":"#double-three-regexp-lookahead-negative"},{"include":"#double-three-regexp-lookbehind"},{"include":"#double-three-regexp-lookbehind-negative"},{"include":"#double-three-regexp-conditional"},{"include":"#double-three-regexp-parentheses-non-capturing"},{"include":"#double-three-regexp-parentheses"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"ellipsis":{"match":"\\\\.\\\\.\\\\.","name":"constant.other.ellipsis.python"},"escape-sequence":{"match":"\\\\\\\\(x\\\\h{2}|[0-7]{1,3}|[\\"'\\\\\\\\abfnrtv])","name":"constant.character.escape.python"},"escape-sequence-unicode":{"patterns":[{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8}|N\\\\{[\\\\w\\\\s]+?})","name":"constant.character.escape.python"}]},"expression":{"patterns":[{"include":"#expression-base"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"expression-bare":{"patterns":[{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#literal"},{"include":"#regexp"},{"include":"#string"},{"include":"#lambda"},{"include":"#generator"},{"include":"#illegal-operator"},{"include":"#operator"},{"include":"#curly-braces"},{"include":"#item-access"},{"include":"#list"},{"include":"#odd-function-call"},{"include":"#round-braces"},{"include":"#function-call"},{"include":"#builtin-functions"},{"include":"#builtin-types"},{"include":"#builtin-exceptions"},{"include":"#magic-names"},{"include":"#special-names"},{"include":"#illegal-names"},{"include":"#special-variables"},{"include":"#ellipsis"},{"include":"#punctuation"},{"include":"#line-continuation"}]},"expression-base":{"patterns":[{"include":"#comments"},{"include":"#expression-bare"},{"include":"#line-continuation"}]},"f-expression":{"patterns":[{"include":"#expression-bare"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"fregexp-base-expression":{"patterns":[{"include":"#fregexp-quantifier"},{"include":"#fstring-formatting-braces"},{"match":"\\\\{.*?}"},{"include":"#regexp-base-common"}]},"fregexp-quantifier":{"match":"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}}","name":"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{"begin":"\\\\b([Ff])([BUbu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{"begin":"\\\\b([Ff])([BUbu])?(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-formatting":{"patterns":[{"include":"#fstring-formatting-braces"},{"include":"#fstring-formatting-singe-brace"}]},"fstring-formatting-braces":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"2":{"name":"invalid.illegal.brace.python"},"3":{"name":"constant.character.format.placeholder.other.python"}},"match":"(\\\\{)(\\\\s*?)(})"},{"match":"(\\\\{\\\\{|}})","name":"constant.character.escape.python"}]},"fstring-formatting-singe-brace":{"match":"(}(?!}))","name":"invalid.illegal.brace.python"},"fstring-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#fstring-formatting"}]},"fstring-illegal-multi-brace":{"patterns":[{"include":"#impossible"}]},"fstring-illegal-single-brace":{"begin":"(\\\\{)(?=[^\\\\n}]*$\\\\n?)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-multi-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-multi"},{"include":"#f-expression"}]},"fstring-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.multi.python"},"fstring-normf-quoted-multi-line":{"begin":"\\\\b([BUbu])([Ff])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-normf-quoted-single-line":{"begin":"\\\\b([BUbu])([Ff])(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#fstring-formatting"}]},"fstring-raw-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.raw.multi.python"},"fstring-raw-quoted-multi-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.multi.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-raw-multi-core"}]},"fstring-raw-quoted-single-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.single.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.single.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-raw-single-core"}]},"fstring-raw-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.raw.single.python"},"fstring-single-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.single.python"},"fstring-terminator-multi":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})","patterns":[{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"fstring-terminator-single":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})|(?=\\\\n)","patterns":[{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"function-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.function-call.arguments.python","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.python"},{"captures":{"1":{"name":"keyword.operator.unpacking.arguments.python"}},"match":"(?:(?<=[(,])|^)\\\\s*(\\\\*{1,2})"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function-call.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"include":"#expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"punctuation.definition.arguments.begin.python"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"}]},"function-call":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#special-variables"},{"include":"#function-name"},{"include":"#function-arguments"}]},"function-declaration":{"begin":"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def)\\\\s+(?=[_[:alpha:]]\\\\p{word}*\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.async.python"},"2":{"name":"storage.type.function.python"}},"end":"(:|(?=[\\\\n\\"#']))","endCaptures":{"1":{"name":"punctuation.section.function.begin.python"}},"name":"meta.function.python","patterns":[{"include":"#function-def-name"},{"include":"#parameters"},{"include":"#line-continuation"},{"include":"#return-annotation"}]},"function-def-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.function.python"}]},"function-name":{"patterns":[{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.function-call.generic.python"}]},"generator":{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.python"}},"end":"\\\\bin\\\\b","endCaptures":{"0":{"name":"keyword.control.flow.python"}},"patterns":[{"include":"#expression"}]},"illegal-anno":{"match":"->","name":"invalid.illegal.annotation.python"},"illegal-names":{"captures":{"1":{"name":"keyword.control.flow.python"},"2":{"name":"keyword.control.import.python"}},"match":"\\\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\\\b"},"illegal-object-name":{"match":"\\\\b(True|False|None)\\\\b","name":"keyword.illegal.name.python"},"illegal-operator":{"patterns":[{"match":"&&|\\\\|\\\\||--|\\\\+\\\\+","name":"invalid.illegal.operator.python"},{"match":"[$?]","name":"invalid.illegal.operator.python"},{"match":"!\\\\b","name":"invalid.illegal.operator.python"}]},"import":{"patterns":[{"begin":"\\\\b(?<!\\\\.)(from)\\\\b(?=.+import)","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$|(?=import)","patterns":[{"match":"\\\\.+","name":"punctuation.separator.period.python"},{"include":"#expression"}]},{"begin":"\\\\b(?<!\\\\.)(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$","patterns":[{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"include":"#expression"}]}]},"impossible":{"match":"$.^"},"inheritance-identifier":{"captures":{"1":{"name":"entity.other.inherited-class.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"},"inheritance-name":{"patterns":[{"include":"#lambda-incomplete"},{"include":"#builtin-possible-callables"},{"include":"#inheritance-identifier"}]},"item-access":{"patterns":[{"begin":"\\\\b(?=[_[:alpha:]]\\\\w*\\\\s*\\\\[)","end":"(])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.item-access.python","patterns":[{"include":"#item-name"},{"include":"#item-index"},{"include":"#expression"}]}]},"item-index":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.item-access.arguments.python","end":"(?=])","patterns":[{"match":":","name":"punctuation.separator.slice.python"},{"include":"#expression"}]},"item-name":{"patterns":[{"include":"#special-variables"},{"include":"#builtin-functions"},{"include":"#special-names"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.indexed-name.python"}]},"lambda":{"patterns":[{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"((?<=\\\\.)lambda|lambda(?=\\\\s*[.=]))"},{"captures":{"1":{"name":"storage.type.function.lambda.python"}},"match":"\\\\b(lambda)\\\\s*?(?=[\\\\n,]|$)"},{"begin":"\\\\b(lambda)\\\\b","beginCaptures":{"1":{"name":"storage.type.function.lambda.python"}},"contentName":"meta.function.lambda.parameters.python","end":"(:)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.section.function.lambda.begin.python"}},"name":"meta.lambda-function.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-nested-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=:|$))"},{"include":"#comments"},{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#lambda-parameter-with-default"},{"include":"#line-continuation"},{"include":"#illegal-operator"}]}]},"lambda-incomplete":{"match":"\\\\blambda(?=\\\\s*[),])","name":"storage.type.function.lambda.python"},"lambda-nested-incomplete":{"match":"\\\\blambda(?=\\\\s*[),:])","name":"storage.type.function.lambda.python"},"lambda-parameter-with-default":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"keyword.operator.python"}},"end":"(,)|(?=:|$)","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"line-continuation":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.continuation.line.python"},"2":{"name":"invalid.illegal.line.continuation.python"}},"match":"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)"},{"begin":"(\\\\\\\\)\\\\s*$\\\\n?","beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.python"}},"end":"(?=^\\\\s*$)|(?!(\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))|\\\\G()$)","patterns":[{"include":"#regexp"},{"include":"#string"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.begin.python"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.end.python"}},"patterns":[{"include":"#expression"}]},"literal":{"patterns":[{"match":"\\\\b(True|False|None|NotImplemented|Ellipsis)\\\\b","name":"constant.language.python"},{"include":"#number"}]},"loose-default":{"begin":"(=)","beginCaptures":{"1":{"name":"keyword.operator.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"magic-function-names":{"captures":{"1":{"name":"support.function.magic.python"}},"match":"\\\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|get??|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|len??|long|lshift|lt|missing|mod|mul|neg??|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\\\b"},"magic-names":{"patterns":[{"include":"#magic-function-names"},{"include":"#magic-variable-names"}]},"magic-variable-names":{"captures":{"1":{"name":"support.variable.magic.python"}},"match":"\\\\b(__(?:all|annotations|bases|builtins|class|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\\\b"},"member-access":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|(^|(?<=\\\\s))(?=[^\\\\\\\\\\\\w\\\\s])|$","name":"meta.member.access.python","patterns":[{"include":"#function-call"},{"include":"#member-access-base"},{"include":"#member-access-attribute"}]},"member-access-attribute":{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.attribute.python"},"member-access-base":{"patterns":[{"include":"#magic-names"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#special-names"},{"include":"#line-continuation"},{"include":"#item-access"}]},"member-access-class":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|$","name":"meta.member.access.python","patterns":[{"include":"#call-wrapper-inheritance"},{"include":"#member-access-base"},{"include":"#inheritance-identifier"}]},"number":{"name":"constant.numeric.python","patterns":[{"include":"#number-float"},{"include":"#number-dec"},{"include":"#number-hex"},{"include":"#number-oct"},{"include":"#number-bin"},{"include":"#number-long"},{"match":"\\\\b[0-9]+\\\\w+","name":"invalid.illegal.name.python"}]},"number-bin":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Bb])(_?[01])+\\\\b","name":"constant.numeric.bin.python"},"number-dec":{"captures":{"1":{"name":"storage.type.imaginary.number.python"},"2":{"name":"invalid.illegal.dec.python"}},"match":"(?<![.\\\\w])(?:[1-9](?:_?[0-9])*|0+|[0-9](?:_?[0-9])*([Jj])|0([0-9]+)(?![.Ee]))\\\\b","name":"constant.numeric.dec.python"},"number-float":{"captures":{"1":{"name":"storage.type.imaginary.number.python"}},"match":"(?<!\\\\w)(?:(?:\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.)(?:[Ee][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[Ee][-+]?[0-9](?:_?[0-9])*)([Jj])?\\\\b","name":"constant.numeric.float.python"},"number-hex":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Xx])(_?\\\\h)+\\\\b","name":"constant.numeric.hex.python"},"number-long":{"captures":{"2":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])([1-9][0-9]*|0)([Ll])\\\\b","name":"constant.numeric.bin.python"},"number-oct":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Oo])(_?[0-7])+\\\\b","name":"constant.numeric.oct.python"},"odd-function-call":{"begin":"(?<=[])])\\\\s*(?=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"patterns":[{"include":"#function-arguments"}]},"operator":{"captures":{"1":{"name":"keyword.operator.logical.python"},"2":{"name":"keyword.control.flow.python"},"3":{"name":"keyword.operator.bitwise.python"},"4":{"name":"keyword.operator.arithmetic.python"},"5":{"name":"keyword.operator.comparison.python"},"6":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b(?<!\\\\.)(?:(and|or|not|in|is)|(for|if|else|await|yield(?:\\\\s+from)?))(?!\\\\s*:)\\\\b|(<<|>>|[\\\\&^|~])|(\\\\*\\\\*|[-%*+]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"},"parameter-special":{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"variable.parameter.function.language.special.self.python"},"3":{"name":"variable.parameter.function.language.special.cls.python"},"4":{"name":"punctuation.separator.parameters.python"}},"match":"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))"},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#parameter-special"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comments"},{"include":"#loose-default"},{"include":"#annotated-parameter"}]},"punctuation":{"patterns":[{"match":":","name":"punctuation.separator.colon.python"},{"match":",","name":"punctuation.separator.element.python"}]},"regexp":{"patterns":[{"include":"#regexp-single-three-line"},{"include":"#regexp-double-three-line"},{"include":"#regexp-single-one-line"},{"include":"#regexp-double-one-line"}]},"regexp-backreference":{"captures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},"2":{"name":"entity.name.tag.named.backreference.regexp"},"3":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},"match":"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+\\\\p{alnum}+)?)(\\\\))","name":"meta.backreference.named.regexp"},"regexp-backreference-number":{"captures":{"1":{"name":"entity.name.tag.backreference.regexp"}},"match":"(\\\\\\\\[1-9]\\\\d?)","name":"meta.backreference.regexp"},"regexp-base-common":{"patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"[*+?]\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.disjunction.regexp"},{"include":"#regexp-escape-sequence"}]},"regexp-base-expression":{"patterns":[{"include":"#regexp-quantifier"},{"include":"#regexp-base-common"}]},"regexp-charecter-set-escapes":{"patterns":[{"match":"\\\\\\\\[\\\\\\\\abfnrtv]","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-special"},{"match":"\\\\\\\\([0-7]{1,3})","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-escape-catchall"}]},"regexp-double-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\")|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#double-one-regexp-expression"}]},"regexp-double-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#double-three-regexp-expression"}]},"regexp-escape-catchall":{"match":"\\\\\\\\(.|\\\\n)","name":"constant.character.escape.regexp"},"regexp-escape-character":{"match":"\\\\\\\\(x\\\\h{2}|0[0-7]{1,2}|[0-7]{3})","name":"constant.character.escape.regexp"},"regexp-escape-sequence":{"patterns":[{"include":"#regexp-escape-special"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-backreference-number"},{"include":"#regexp-escape-catchall"}]},"regexp-escape-special":{"match":"\\\\\\\\([ABDSWZbdsw])","name":"support.other.escape.special.regexp"},"regexp-escape-unicode":{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8})","name":"constant.character.unicode.regexp"},"regexp-flags":{"match":"\\\\(\\\\?[Laimsux]+\\\\)","name":"storage.modifier.flag.regexp"},"regexp-quantifier":{"match":"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}","name":"keyword.operator.quantifier.regexp"},"regexp-single-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(')|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#single-one-regexp-expression"}]},"regexp-single-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(''')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(''')","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#single-three-regexp-expression"}]},"return-annotation":{"begin":"(->)","beginCaptures":{"1":{"name":"punctuation.separator.annotation.result.python"}},"end":"(?=:)","patterns":[{"include":"#expression"}]},"round-braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.python"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.python"}},"patterns":[{"include":"#expression"}]},"semicolon":{"patterns":[{"match":";$","name":"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-one-regexp-character-set"},{"include":"#single-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-one-regexp-lookahead"},{"include":"#single-one-regexp-lookahead-negative"},{"include":"#single-one-regexp-lookbehind"},{"include":"#single-one-regexp-lookbehind-negative"},{"include":"#single-one-regexp-conditional"},{"include":"#single-one-regexp-parentheses-non-capturing"},{"include":"#single-one-regexp-parentheses"}]},"single-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='''))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-three-regexp-character-set"},{"include":"#single-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-three-regexp-lookahead"},{"include":"#single-three-regexp-lookahead-negative"},{"include":"#single-three-regexp-lookbehind"},{"include":"#single-three-regexp-lookbehind-negative"},{"include":"#single-three-regexp-conditional"},{"include":"#single-three-regexp-parentheses-non-capturing"},{"include":"#single-three-regexp-parentheses"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"special-names":{"match":"\\\\b(_*\\\\p{upper}[_\\\\d]*\\\\p{upper})[[:upper:]\\\\d]*(_\\\\w*)?\\\\b","name":"constant.other.caps.python"},"special-variables":{"captures":{"1":{"name":"variable.language.special.self.python"},"2":{"name":"variable.language.special.cls.python"}},"match":"\\\\b(?<!\\\\.)(?:(self)|(cls))\\\\b"},"statement":{"patterns":[{"include":"#import"},{"include":"#class-declaration"},{"include":"#function-declaration"},{"include":"#generator"},{"include":"#statement-keyword"},{"include":"#assignment-operator"},{"include":"#decorator"},{"include":"#docstring-statement"},{"include":"#semicolon"}]},"statement-keyword":{"patterns":[{"match":"\\\\b((async\\\\s+)?\\\\s*def)\\\\b","name":"storage.type.function.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b(?=.*[:\\\\\\\\])","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"match":"\\\\b(?<!\\\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\\\b","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)(global|nonlocal)\\\\b","name":"storage.modifier.declaration.python"},{"match":"\\\\b(?<!\\\\.)(class)\\\\b","name":"storage.type.class.python"},{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"^\\\\s*(case|match)(?=\\\\s*([-\\"#'(+:\\\\[{\\\\w\\\\d]|$))\\\\b"}]},"string":{"patterns":[{"include":"#string-quoted-multi-line"},{"include":"#string-quoted-single-line"},{"include":"#string-bin-quoted-multi-line"},{"include":"#string-bin-quoted-single-line"},{"include":"#string-raw-quoted-multi-line"},{"include":"#string-raw-quoted-single-line"},{"include":"#string-raw-bin-quoted-multi-line"},{"include":"#string-raw-bin-quoted-single-line"},{"include":"#fstring-fnorm-quoted-multi-line"},{"include":"#fstring-fnorm-quoted-single-line"},{"include":"#fstring-normf-quoted-multi-line"},{"include":"#fstring-normf-quoted-single-line"},{"include":"#fstring-raw-quoted-multi-line"},{"include":"#fstring-raw-quoted-single-line"}]},"string-bin-quoted-multi-line":{"begin":"\\\\b([Bb])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.multi.python","patterns":[{"include":"#string-entity"}]},"string-bin-quoted-single-line":{"begin":"\\\\b([Bb])(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.single.python","patterns":[{"include":"#string-entity"}]},"string-brace-formatting":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\{|}}|\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.python"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:)[^\\\\n\\"'{}]*(?:\\\\{[^\\\\n\\"'}]*?}[^\\\\n\\"'{}]*)*})","name":"meta.format.brace.python"}]},"string-consume-escape":{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\]"},"string-entity":{"patterns":[{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#string-formatting"}]},"string-formatting":{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.python"},"string-line-continuation":{"match":"\\\\\\\\$","name":"constant.language.python"},"string-multi-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-quoted-multi-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-unicode"},{"include":"#string-multi-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-quoted-single-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-unicode"},{"include":"#string-single-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-raw-bin-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-raw-bin-quoted-multi-line":{"begin":"\\\\b(R[Bb]|[Bb]R)('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.multi.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-bin-quoted-single-line":{"begin":"\\\\b(R[Bb]|[Bb]R)(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.single.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"},{"include":"#string-brace-formatting"}]},"string-raw-quoted-multi-line":{"begin":"\\\\b(([Uu]R)|(R))('''|\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-raw"},{"include":"#string-multi-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-raw-quoted-single-line":{"begin":"\\\\b(([Uu]R)|(R))(([\\"']))","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-raw"},{"include":"#string-single-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-single-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"}]},"string-single-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-single-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-single-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-unicode-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"},{"include":"#string-brace-formatting"}]}},"scopeName":"source.python","aliases":["py"]}`))];export{e as t}; diff --git a/docs/assets/q-8XMigH-s.js b/docs/assets/q-8XMigH-s.js new file mode 100644 index 0000000..db9e120 --- /dev/null +++ b/docs/assets/q-8XMigH-s.js @@ -0,0 +1 @@ +var s,u=d("abs.acos.aj.aj0.all.and.any.asc.asin.asof.atan.attr.avg.avgs.bin.by.ceiling.cols.cor.cos.count.cov.cross.csv.cut.delete.deltas.desc.dev.differ.distinct.div.do.each.ej.enlist.eval.except.exec.exit.exp.fby.fills.first.fkeys.flip.floor.from.get.getenv.group.gtime.hclose.hcount.hdel.hopen.hsym.iasc.idesc.if.ij.in.insert.inter.inv.key.keys.last.like.list.lj.load.log.lower.lsq.ltime.ltrim.mavg.max.maxs.mcount.md5.mdev.med.meta.min.mins.mmax.mmin.mmu.mod.msum.neg.next.not.null.or.over.parse.peach.pj.plist.prd.prds.prev.prior.rand.rank.ratios.raze.read0.read1.reciprocal.reverse.rload.rotate.rsave.rtrim.save.scan.select.set.setenv.show.signum.sin.sqrt.ss.ssr.string.sublist.sum.sums.sv.system.tables.tan.til.trim.txf.type.uj.ungroup.union.update.upper.upsert.value.var.view.views.vs.wavg.where.where.while.within.wj.wj1.wsum.xasc.xbar.xcol.xcols.xdesc.xexp.xgroup.xkey.xlog.xprev.xrank".split(".")),m=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function d(t){return RegExp("^("+t.join("|")+")$")}function a(t,e){var i=t.sol(),o=t.next();if(s=null,i){if(o=="/")return(e.tokenize=p)(t,e);if(o=="\\")return t.eol()||/\s/.test(t.peek())?(t.skipToEnd(),/^\\\s*$/.test(t.current())?(e.tokenize=f)(t):e.tokenize=a,"comment"):(e.tokenize=a,"builtin")}if(/\s/.test(o))return t.peek()=="/"?(t.skipToEnd(),"comment"):"null";if(o=='"')return(e.tokenize=v)(t,e);if(o=="`")return t.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if(o=="."&&/\d/.test(t.peek())||/\d/.test(o)){var n=null;return t.backUp(1),t.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||t.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||t.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||t.match(/^\d+[ptuv]{1}/)?n="temporal":(t.match(/^0[NwW]{1}/)||t.match(/^0x[\da-fA-F]*/)||t.match(/^[01]+[b]{1}/)||t.match(/^\d+[chijn]{1}/)||t.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(n="number"),n&&(!(o=t.peek())||m.test(o))?n:(t.next(),"error")}return/[A-Za-z]|\./.test(o)?(t.eatWhile(/[A-Za-z._\d]/),u.test(t.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(o)||/[{}\(\[\]\)]/.test(o)?null:"error"}function p(t,e){return t.skipToEnd(),/^\/\s*$/.test(t.current())?(e.tokenize=x)(t,e):e.tokenize=a,"comment"}function x(t,e){var i=t.sol()&&t.peek()=="\\";return t.skipToEnd(),i&&/^\\\s*$/.test(t.current())&&(e.tokenize=a),"comment"}function f(t){return t.skipToEnd(),"comment"}function v(t,e){for(var i=!1,o,n=!1;o=t.next();){if(o=='"'&&!i){n=!0;break}i=!i&&o=="\\"}return n&&(e.tokenize=a),"string"}function c(t,e,i){t.context={prev:t.context,indent:t.indent,col:i,type:e}}function r(t){t.indent=t.context.indent,t.context=t.context.prev}const k={name:"q",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(t,e){t.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=t.indentation());var i=e.tokenize(t,e);if(i!="comment"&&e.context&&e.context.align==null&&e.context.type!="pattern"&&(e.context.align=!0),s=="(")c(e,")",t.column());else if(s=="[")c(e,"]",t.column());else if(s=="{")c(e,"}",t.column());else if(/[\]\}\)]/.test(s)){for(;e.context&&e.context.type=="pattern";)r(e);e.context&&s==e.context.type&&r(e)}else s=="."&&e.context&&e.context.type=="pattern"?r(e):/atom|string|variable/.test(i)&&e.context&&(/[\}\]]/.test(e.context.type)?c(e,"pattern",t.column()):e.context.type=="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=t.column()));return i},indent:function(t,e,i){var o=e&&e.charAt(0),n=t.context;if(/[\]\}]/.test(o))for(;n&&n.type=="pattern";)n=n.prev;var l=n&&o==n.type;return n?n.type=="pattern"?n.col:n.align?n.col+(l?0:1):n.indent+(l?0:i.unit):0},languageData:{commentTokens:{line:"/"}}};export{k as t}; diff --git a/docs/assets/q-SorAikmF.js b/docs/assets/q-SorAikmF.js new file mode 100644 index 0000000..58738fe --- /dev/null +++ b/docs/assets/q-SorAikmF.js @@ -0,0 +1 @@ +import{t as o}from"./q-8XMigH-s.js";export{o as q}; diff --git a/docs/assets/qml-DrwtSjfx.js b/docs/assets/qml-DrwtSjfx.js new file mode 100644 index 0000000..91640ad --- /dev/null +++ b/docs/assets/qml-DrwtSjfx.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";var t=Object.freeze(JSON.parse(`{"displayName":"QML","name":"qml","patterns":[{"match":"\\\\bpragma\\\\s+Singleton\\\\b","name":"constant.language.qml"},{"include":"#import-statements"},{"include":"#object"},{"include":"#comment"}],"repository":{"attributes-dictionary":{"patterns":[{"include":"#typename"},{"include":"#keywords"},{"include":"#identifier"},{"include":"#attributes-value"},{"include":"#comment"}]},"attributes-value":{"patterns":[{"begin":"(?<=\\\\w)\\\\s*:\\\\s*(?=[A-Z]\\\\w*\\\\s*\\\\{)","description":"A QML object as value.","end":"(?<=})","patterns":[{"include":"#object"}]},{"begin":"(?<=\\\\w)\\\\s*:\\\\s*\\\\[","description":"A list as value.","end":"](.*)$","endCaptures":{"0":{"patterns":[{"include":"source.js"}]}},"patterns":[{"include":"#object"},{"include":"source.js"}]},{"begin":"(?<=\\\\w)\\\\s*:(?=\\\\s*\\\\{?\\\\s*$)","description":"A block of JavaScript code as value.","end":"(?<=})","patterns":[{"begin":"\\\\{","contentName":"meta.embedded.block.js","end":"}","patterns":[{"include":"source.js"}]}]},{"begin":"(?<=\\\\w)\\\\s*:","contentName":"meta.embedded.line.js","description":"A JavaScript expression as value.","end":";|$|(?=})","patterns":[{"include":"source.js"}]}]},"comment":{"patterns":[{"begin":"(//:)","beginCaptures":{"1":{"name":"storage.type.class.qml.tr"}},"end":"$","patterns":[{"include":"#comment-contents"}]},{"begin":"(//[=|~])\\\\s*([$A-Z_a-z][]$.\\\\[\\\\w]*)","beginCaptures":{"1":{"name":"storage.type.class.qml.tr"},"2":{"name":"variable.other.qml.tr"}},"end":"$","patterns":[{"include":"#comment-contents"}]},{"begin":"(//)","beginCaptures":{"1":{"name":"comment.line.double-slash.qml"}},"end":"$","patterns":[{"include":"#comment-contents"}]},{"begin":"(/\\\\*)","beginCaptures":{"1":{"name":"comment.line.double-slash.qml"}},"end":"(\\\\*/)","endCaptures":{"1":{"name":"comment.line.double-slash.qml"}},"patterns":[{"include":"#comment-contents"}]}]},"comment-contents":{"patterns":[{"match":"\\\\b(TODO|DEBUG|XXX)\\\\b","name":"constant.language.qml"},{"match":"\\\\b(BUG|FIXME)\\\\b","name":"invalid"},{"match":".","name":"comment.line.double-slash.qml"}]},"data-types":{"patterns":[{"description":"QML basic data types.","match":"\\\\b(bool|double|enum|int|list|real|string|url|variant|var)\\\\b","name":"storage.type.qml"},{"description":"QML modules basic data types.","match":"\\\\b(date|point|rect|size)\\\\b","name":"support.type.qml"}]},"group-attributes":{"patterns":[{"begin":"\\\\b([A-Z_a-z]\\\\w*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"variable.parameter.qml"}},"end":"}","patterns":[{"include":"$self"},{"include":"#comment"},{"include":"#attributes-dictionary"}]}]},"identifier":{"description":"The name of variable, key, signal and etc.","patterns":[{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"variable.parameter.qml"}]},"import-statements":{"patterns":[{"begin":"\\\\b(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import.qml"}},"end":"$","patterns":[{"match":"\\\\bas\\\\b","name":"keyword.control.as.qml"},{"include":"#string"},{"description":"<Version.Number>","match":"\\\\b\\\\d+\\\\.\\\\d+\\\\b","name":"constant.numeric.qml"},{"description":"as <Namespace>","match":"(?<=as)\\\\s+[A-Z]\\\\w*\\\\b","name":"entity.name.type.qml"},{"include":"#identifier"},{"include":"#comment"}]}]},"keywords":{"patterns":[{"include":"#data-types"},{"include":"#reserved-words"}]},"method-attributes":{"patterns":[{"begin":"\\\\b(function)\\\\b","beginCaptures":{"1":{"name":"storage.type.qml"}},"end":"(?<=})","patterns":[{"begin":"([A-Z_a-z]\\\\w*)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.qml"}},"end":"\\\\)","patterns":[{"include":"#identifier"}]},{"begin":"\\\\{","contentName":"meta.embedded.block.js","end":"}","patterns":[{"include":"source.js"}]}]}]},"object":{"patterns":[{"begin":"\\\\b([A-Z]\\\\w*)\\\\s*\\\\{","beginCaptures":{"1":{"name":"entity.name.type.qml"}},"end":"}","patterns":[{"include":"$self"},{"include":"#group-attributes"},{"include":"#method-attributes"},{"include":"#signal-attributes"},{"include":"#comment"},{"include":"#attributes-dictionary"}]}]},"reserved-words":{"patterns":[{"description":"Attribute modifier.","match":"\\\\b(default|alias|readonly|required)\\\\b","name":"storage.modifier.qml"},{"match":"\\\\b(property|id|on)\\\\b","name":"keyword.other.qml"},{"description":"Special words for signal handlers including property change.","match":"\\\\b(on[A-Z]\\\\w*(Changed)?)\\\\b","name":"keyword.control.qml"}]},"signal-attributes":{"patterns":[{"begin":"\\\\b(signal)\\\\b","beginCaptures":{"1":{"name":"storage.type.qml"}},"end":"$","patterns":[{"begin":"([A-Z_a-z]\\\\w*)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.qml"}},"end":"\\\\)","patterns":[{"include":"#keywords"},{"include":"#identifier"}]},{"include":"#identifier"},{"include":"#comment"}]}]},"string":{"description":"String literal with double or signle quote.","patterns":[{"begin":"'","end":"'","name":"string.quoted.single.qml"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.qml"}]},"typename":{"description":"The name of type. First letter must be uppercase.","patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.qml"}]}},"scopeName":"source.qml","embeddedLangs":["javascript"]}`)),n=[...e,t];export{n as default}; diff --git a/docs/assets/qmldir-DmEgJGvK.js b/docs/assets/qmldir-DmEgJGvK.js new file mode 100644 index 0000000..43d135d --- /dev/null +++ b/docs/assets/qmldir-DmEgJGvK.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"QML Directory","name":"qmldir","patterns":[{"include":"#comment"},{"include":"#keywords"},{"include":"#version"},{"include":"#names"}],"repository":{"comment":{"patterns":[{"begin":"#","end":"$","name":"comment.line.number-sign.qmldir"}]},"file-name":{"patterns":[{"match":"\\\\b\\\\w+\\\\.(qmltypes|qml|js)\\\\b","name":"string.unquoted.qmldir"}]},"identifier":{"patterns":[{"match":"\\\\b\\\\w+\\\\b","name":"variable.parameter.qmldir"}]},"keywords":{"patterns":[{"match":"\\\\b(module|singleton|internal|plugin|classname|typeinfo|depends|designersupported)\\\\b","name":"keyword.other.qmldir"}]},"module-name":{"patterns":[{"match":"\\\\b[A-Z]\\\\w*\\\\b","name":"entity.name.type.qmldir"}]},"names":{"patterns":[{"include":"#file-name"},{"include":"#module-name"},{"include":"#identifier"}]},"version":{"patterns":[{"match":"\\\\b\\\\d+\\\\.\\\\d+\\\\b","name":"constant.numeric.qml"}]}},"scopeName":"source.qmldir"}'))];export{e as default}; diff --git a/docs/assets/qss-DYQb8ZuJ.js b/docs/assets/qss-DYQb8ZuJ.js new file mode 100644 index 0000000..a222eb7 --- /dev/null +++ b/docs/assets/qss-DYQb8ZuJ.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Qt Style Sheets","name":"qss","patterns":[{"include":"#comment-block"},{"include":"#rule-list"},{"include":"#selector"}],"repository":{"color":{"patterns":[{"begin":"\\\\b(rgba??|hsva??|hsla??)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.qss"}},"description":"Color Type","end":"\\\\)","patterns":[{"include":"#comment-block"},{"include":"#number"}]},{"match":"\\\\b(white|black|red|darkred|green|darkgreen|blue|darkblue|cyan|darkcyan|magenta|darkmagenta|yellow|darkyellow|gray|darkgray|lightgray|transparent|color0|color1)\\\\b","name":"support.constant.property-value.named-color.qss"},{"match":"#(\\\\h{3}|\\\\h{6}|\\\\h{8})\\\\b","name":"support.constant.property-value.color.qss"}]},"comment-block":{"patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.qss"}]},"icon-properties":{"patterns":[{"match":"\\\\b((?:backward|cd|computer|desktop|dialog-apply|dialog-cancel|dialog-close|dialog-discard|dialog-help|dialog-no|dialog-ok|dialog-open|dialog-reset|dialog-save|dialog-yes|directory-closed|directory|directory-link|directory-open|dockwidget-close|downarrow|dvd|file|file-link|filedialog-contentsview|filedialog-detailedview|filedialog-end|filedialog-infoview|filedialog-listview|filedialog-new-directory|filedialog-parent-directory|filedialog-start|floppy|forward|harddisk|home|leftarrow|messagebox-critical|messagebox-information|messagebox-question|messagebox-warning|network|rightarrow|titlebar-contexthelp|titlebar-maximize|titlebar-menu|titlebar-minimize|titlebar-normal|titlebar-close|titlebar-shade|titlebar-unshade|trash|uparrow)-icon)\\\\b","name":"support.type.property-name.qss"}]},"id-selector":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.qss"},"2":{"name":"entity.name.tag.qss"}},"match":"(#)([A-Za-z][-0-9A-Z_a-z]*)"}]},"number":{"patterns":[{"description":"floating number","match":"\\\\b(\\\\d+)?\\\\.(\\\\d+)\\\\b","name":"constant.numeric.qss"},{"description":"percentage","match":"\\\\b(\\\\d+)%","name":"constant.numeric.qss"},{"description":"length","match":"\\\\b(\\\\d+)(px|pt|em|ex)?\\\\b","name":"constant.numeric.qss"},{"description":"integer","match":"\\\\b(\\\\d+)\\\\b","name":"constant.numeric.qss"}]},"properties":{"patterns":[{"include":"#property-values"},{"match":"\\\\b(paint-alternating-row-colors-for-empty-area|dialogbuttonbox-buttons-have-icons|titlebar-show-tooltips-on-buttons|messagebox-text-interaction-flags|lineedit-password-mask-delay|outline-bottom-right-radius|lineedit-password-character|selection-background-color|outline-bottom-left-radius|border-bottom-right-radius|alternate-background-color|widget-animation-duration|border-bottom-left-radius|show-decoration-selected|outline-top-right-radius|outline-top-left-radius|border-top-right-radius|border-top-left-radius|background-attachment|subcontrol-position|border-bottom-width|border-bottom-style|border-bottom-color|background-position|border-right-width|border-right-style|border-right-color|subcontrol-origin|border-left-width|border-left-style|border-left-color|background-origin|background-repeat|border-top-width|border-top-style|border-top-color|background-image|background-color|text-decoration|selection-color|background-clip|padding-bottom|outline-radius|outline-offset|image-position|gridline-color|padding-right|outline-style|outline-color|margin-bottom|button-layout|border-radius|border-bottom|padding-left|margin-right|border-width|border-style|border-image|border-color|border-right|padding-top|margin-left|font-weight|font-family|border-left|text-align|min-height|max-height|margin-top|font-style|border-top|background|min-width|max-width|icon-size|font-size|position|spacing|padding|outline|opacity|margin|height|bottom|border|width|right|image|color|left|font|top)\\\\b","name":"support.type.property-name.qss"},{"include":"#icon-properties"}]},"property-selector":{"patterns":[{"begin":"\\\\[","end":"]","patterns":[{"include":"#comment-block"},{"include":"#string"},{"match":"\\\\b[A-Z_a-z]\\\\w*\\\\b","name":"variable.parameter.qml"}]}]},"property-values":{"patterns":[{"begin":":","end":";|(?=})","patterns":[{"include":"#comment-block"},{"include":"#color"},{"begin":"\\\\b(q(?:linear|radial|conical)gradient)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.qss"}},"description":"Gradient Type","end":"\\\\)","patterns":[{"include":"#comment-block"},{"match":"\\\\b(x1|y1|x2|y2|stop|angle|radius|cx|cy|fx|fy)\\\\b","name":"variable.parameter.qss"},{"include":"#color"},{"include":"#number"}]},{"begin":"\\\\b(url)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function.qss"}},"contentName":"string.unquoted.qss","description":"URL Type","end":"\\\\)"},{"match":"\\\\bpalette\\\\s*(?=\\\\()\\\\b","name":"entity.name.function.qss"},{"match":"\\\\b(highlighted-text|alternate-base|line-through|link-visited|dot-dot-dash|window-text|button-text|bright-text|underline|no-repeat|highlight|overline|absolute|relative|repeat-y|repeat-x|midlight|selected|disabled|dot-dash|content|padding|oblique|stretch|repeat|window|shadow|button|border|margin|active|italic|normal|outset|groove|double|dotted|dashed|repeat|scroll|center|bottom|light|solid|ridge|inset|fixed|right|text|link|dark|base|bold|none|left|mid|off|top|on)\\\\b","name":"support.constant.property-value.qss"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.qss"},{"include":"#string"},{"include":"#number"}]}]},"pseudo-states":{"patterns":[{"match":"\\\\b(active|adjoins-item|alternate|bottom|checked|closable|closed|default|disabled|editable|edit-focus|enabled|exclusive|first|flat|floatable|focus|has-children|has-siblings|horizontal|hover|indeterminate|last|left|maximized|middle|minimized|movable|no-frame|non-exclusive|off|on|only-one|open|next-selected|pressed|previous-selected|read-only|right|selected|top|unchecked|vertical|window)\\\\b","name":"keyword.control.qss"}]},"rule-list":{"patterns":[{"begin":"\\\\{","end":"}","patterns":[{"include":"#comment-block"},{"include":"#properties"},{"include":"#icon-properties"}]}]},"selector":{"patterns":[{"include":"#stylable-widgets"},{"include":"#sub-controls"},{"include":"#pseudo-states"},{"include":"#property-selector"},{"include":"#id-selector"}]},"string":{"description":"String literal with double or signle quote.","patterns":[{"begin":"'","end":"'","name":"string.quoted.single.qml"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.qml"}]},"stylable-widgets":{"patterns":[{"match":"\\\\b(Q(?:AbstractScrollArea|AbstractItemView|CheckBox|ColumnView|ComboBox|DateEdit|DateTimeEdit|Dialog|DialogButtonBox|DockWidget|DoubleSpinBox|Frame|GroupBox|HeaderView|Label|LineEdit|ListView|ListWidget|MainWindow|Menu|MenuBar|MessageBox|ProgressBar|PlainTextEdit|PushButton|RadioButton|ScrollBar|SizeGrip|Slider|SpinBox|Splitter|StatusBar|TabBar|TabWidget|TableView|TableWidget|TextEdit|TimeEdit|ToolBar|ToolButton|ToolBox|ToolTip|TreeView|TreeWidget|Widget))\\\\b","name":"entity.name.type.qss"}]},"sub-controls":{"patterns":[{"match":"\\\\b(add-line|add-page|branch|chunk|close-button|corner|down-arrow|down-button|drop-down|float-button|groove|indicator|handle|icon|item|left-arrow|left-corner|menu-arrow|menu-button|menu-indicator|right-arrow|pane|right-corner|scroller|section|separator|sub-line|sub-page|tab|tab-bar|tear|tearoff|text|title|up-arrow|up-button)\\\\b","name":"entity.other.inherited-class.qss"}]}},"scopeName":"source.qss"}`))];export{e as default}; diff --git a/docs/assets/quadrantDiagram-AYHSOK5B-FJc1d940.js b/docs/assets/quadrantDiagram-AYHSOK5B-FJc1d940.js new file mode 100644 index 0000000..7ec3bde --- /dev/null +++ b/docs/assets/quadrantDiagram-AYHSOK5B-FJc1d940.js @@ -0,0 +1,7 @@ +var lt,ht;import{t as ee}from"./linear-AjjmB_kQ.js";import"./defaultLocale-BLUna9fQ.js";import"./purify.es-N-2faAGj.js";import{u as ie}from"./src-Bp_72rVO.js";import{n as r,r as At}from"./src-faGJHwXX.js";import{B as _e,C as ae,I as Se,T as ke,U as Fe,_ as Pe,a as Ce,b as vt,c as Le,d as z,v as ve,z as Ee}from"./chunk-ABZYJK2D-DAD3GlgM.js";var Et=(function(){var t=r(function(n,b,g,h){for(g||(g={}),h=n.length;h--;g[n[h]]=b);return g},"o"),o=[1,3],u=[1,4],c=[1,5],l=[1,6],x=[1,7],f=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],m=[2,36],p=[1,37],y=[1,36],q=[1,38],T=[1,35],d=[1,43],A=[1,41],M=[1,14],Y=[1,23],j=[1,18],pt=[1,19],ct=[1,20],dt=[1,21],ut=[1,22],xt=[1,24],ft=[1,25],i=[1,26],Dt=[1,27],It=[1,28],Nt=[1,29],$=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],C=[1,42],L=[1,44],X=[1,62],H=[1,61],v=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],wt=[1,65],Bt=[1,66],Wt=[1,67],Rt=[1,68],$t=[1,69],Ut=[1,70],Qt=[1,71],Xt=[1,72],Ht=[1,73],Ot=[1,74],Mt=[1,75],Yt=[1,76],N=[4,5,6,7,8,9,10,11,12,13,14,15,18],V=[1,90],Z=[1,91],J=[1,92],tt=[1,99],et=[1,93],it=[1,96],at=[1,94],nt=[1,95],st=[1,97],rt=[1,98],St=[1,102],jt=[10,55,56,57],B=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:r(function(n,b,g,h,S,e,gt){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],h.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),h.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),h.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),h.setAccDescription(this.$);break;case 46:h.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:h.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:h.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:h.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:h.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:h.setXAxisLeftText(e[s-2]),h.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" \u27F6 ",h.setXAxisLeftText(e[s-1]);break;case 53:h.setXAxisLeftText(e[s]);break;case 54:h.setYAxisBottomText(e[s-2]),h.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" \u27F6 ",h.setYAxisBottomText(e[s-1]);break;case 56:h.setYAxisBottomText(e[s]);break;case 57:h.setQuadrant1Text(e[s]);break;case 58:h.setQuadrant2Text(e[s]);break;case 59:h.setQuadrant3Text(e[s]);break;case 60:h.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:o,26:1,27:2,28:u,55:c,56:l,57:x},{1:[3]},{18:o,26:8,27:2,28:u,55:c,56:l,57:x},{18:o,26:9,27:2,28:u,55:c,56:l,57:x},t(f,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,m,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:p,5:y,10:q,12:T,13:d,14:A,18:M,25:Y,35:j,37:pt,39:ct,41:dt,42:ut,48:xt,50:ft,51:i,52:Dt,53:It,54:Nt,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),t(f,[2,34]),{27:45,55:c,56:l,57:x},t(a,[2,37]),t(a,m,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:p,5:y,10:q,12:T,13:d,14:A,18:M,25:Y,35:j,37:pt,39:ct,41:dt,42:ut,48:xt,50:ft,51:i,52:Dt,53:It,54:Nt,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:p,5:y,10:q,12:T,13:d,14:A,43:51,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:d,14:A,43:52,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:d,14:A,43:53,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:d,14:A,43:54,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:d,14:A,43:55,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,10:q,12:T,13:d,14:A,43:56,58:31,60:$,61:U,63:k,64:F,65:P,66:C,67:L},{4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:C,67:L},t(v,[2,64]),t(v,[2,66]),t(v,[2,67]),t(v,[2,70]),t(v,[2,71]),t(v,[2,72]),t(v,[2,73]),t(v,[2,74]),t(v,[2,75]),t(v,[2,76]),t(v,[2,77]),t(v,[2,78]),t(v,[2,79]),t(v,[2,80]),t(f,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:wt,5:Bt,6:Wt,7:Rt,8:$t,9:Ut,10:Qt,11:Xt,12:Ht,13:Ot,14:Mt,15:Yt,21:63},t(a,[2,53],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,49:[1,77],63:k,64:F,65:P,66:C,67:L}),t(a,[2,56],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,49:[1,78],63:k,64:F,65:P,66:C,67:L}),t(a,[2,57],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,63:k,64:F,65:P,66:C,67:L}),t(a,[2,58],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,63:k,64:F,65:P,66:C,67:L}),t(a,[2,59],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,63:k,64:F,65:P,66:C,67:L}),t(a,[2,60],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,63:k,64:F,65:P,66:C,67:L}),{45:[1,79]},{44:[1,80]},t(v,[2,65]),t(v,[2,81]),t(v,[2,82]),t(v,[2,83]),{3:82,4:wt,5:Bt,6:Wt,7:Rt,8:$t,9:Ut,10:Qt,11:Xt,12:Ht,13:Ot,14:Mt,15:Yt,18:[1,81]},t(N,[2,23]),t(N,[2,1]),t(N,[2,2]),t(N,[2,3]),t(N,[2,4]),t(N,[2,5]),t(N,[2,6]),t(N,[2,7]),t(N,[2,8]),t(N,[2,9]),t(N,[2,10]),t(N,[2,11]),t(N,[2,12]),t(a,[2,52],{58:31,43:83,4:p,5:y,10:q,12:T,13:d,14:A,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),t(a,[2,55],{58:31,43:84,4:p,5:y,10:q,12:T,13:d,14:A,60:$,61:U,63:k,64:F,65:P,66:C,67:L}),{46:[1,85]},{45:[1,86]},{4:V,5:Z,6:J,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:88,23:87},t(N,[2,24]),t(a,[2,51],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,63:k,64:F,65:P,66:C,67:L}),t(a,[2,54],{59:59,58:60,4:p,5:y,8:X,10:q,12:T,13:d,14:A,18:H,63:k,64:F,65:P,66:C,67:L}),t(a,[2,47],{22:88,16:89,23:100,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,101]},t(a,[2,29],{10:St}),t(jt,[2,27],{16:103,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t(B,[2,25]),t(B,[2,13]),t(B,[2,14]),t(B,[2,15]),t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),t(B,[2,19]),t(B,[2,20]),t(B,[2,21]),t(B,[2,22]),t(a,[2,49],{10:St}),t(a,[2,48],{22:88,16:89,23:104,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:V,5:Z,6:J,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:105},t(B,[2,26]),t(a,[2,50],{10:St}),t(jt,[2,28],{16:103,4:V,5:Z,6:J,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:r(function(n,b){if(b.recoverable)this.trace(n);else{var g=Error(n);throw g.hash=b,g}},"parseError"),parse:r(function(n){var b=this,g=[0],h=[],S=[null],e=[],gt=this.table,s="",mt=0,Gt=0,Kt=0,Te=2,Vt=1,qe=e.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(G.yy[Ft]=this.yy[Ft]);E.setInput(n,G.yy),G.yy.lexer=E,G.yy.parser=this,E.yylloc===void 0&&(E.yylloc={});var Pt=E.yylloc;e.push(Pt);var Ae=E.options&&E.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function be(R){g.length-=2*R,S.length-=R,e.length-=R}r(be,"popStack");function Zt(){var R=h.pop()||E.lex()||Vt;return typeof R!="number"&&(R instanceof Array&&(h=R,R=h.pop()),R=b.symbols_[R]||R),R}r(Zt,"lex");for(var w,Ct,K,W,Lt,ot={},Tt,O,Jt,qt;;){if(K=g[g.length-1],this.defaultActions[K]?W=this.defaultActions[K]:(w??(w=Zt()),W=gt[K]&>[K][w]),W===void 0||!W.length||!W[0]){var te="";for(Tt in qt=[],gt[K])this.terminals_[Tt]&&Tt>Te&&qt.push("'"+this.terminals_[Tt]+"'");te=E.showPosition?"Parse error on line "+(mt+1)+`: +`+E.showPosition()+` +Expecting `+qt.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(mt+1)+": Unexpected "+(w==Vt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(te,{text:E.match,token:this.terminals_[w]||w,line:E.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw Error("Parse Error: multiple actions possible at state: "+K+", token: "+w);switch(W[0]){case 1:g.push(w),S.push(E.yytext),e.push(E.yylloc),g.push(W[1]),w=null,Ct?(w=Ct,Ct=null):(Gt=E.yyleng,s=E.yytext,mt=E.yylineno,Pt=E.yylloc,Kt>0&&Kt--);break;case 2:if(O=this.productions_[W[1]][1],ot.$=S[S.length-O],ot._$={first_line:e[e.length-(O||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(O||1)].first_column,last_column:e[e.length-1].last_column},Ae&&(ot._$.range=[e[e.length-(O||1)].range[0],e[e.length-1].range[1]]),Lt=this.performAction.apply(ot,[s,Gt,mt,G.yy,W[1],S,e].concat(qe)),Lt!==void 0)return Lt;O&&(g=g.slice(0,-1*O*2),S=S.slice(0,-1*O),e=e.slice(0,-1*O)),g.push(this.productions_[W[1]][0]),S.push(ot.$),e.push(ot._$),Jt=gt[g[g.length-2]][g[g.length-1]],g.push(Jt);break;case 3:return!0}}return!0},"parse")};kt.lexer=(function(){return{EOF:1,parseError:r(function(n,b){if(this.yy.parser)this.yy.parser.parseError(n,b);else throw Error(n)},"parseError"),setInput:r(function(n,b){return this.yy=b||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var n=this._input[0];return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,n.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:r(function(n){var b=n.length,g=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===h.length?this.yylloc.first_column:0)+h[h.length-g.length].length-g[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(n){this.unput(this.match.slice(n))},"less"),pastInput:r(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var n=this.pastInput(),b=Array(n.length+1).join("-");return n+this.upcomingInput()+` +`+b+"^"},"showPosition"),test_match:r(function(n,b){var g,h,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),h=n[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],g=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},"test_match"),next:r(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,b,g,h;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(g=this._input.match(this.rules[S[e]]),g&&(!b||g[0].length>b[0].length)){if(b=g,h=e,this.options.backtrack_lexer){if(n=this.test_match(g,S[e]),n!==!1)return n;if(this._backtrack){b=!1;continue}else return!1}else if(!this.options.flex)break}return b?(n=this.test_match(b,S[h]),n===!1?!1:n):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r(function(){return this.next()||this.lex()},"lex"),begin:r(function(n){this.conditionStack.push(n)},"begin"),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:r(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:r(function(n){this.begin(n)},"pushState"),stateStackSize:r(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r(function(n,b,g,h){switch(g){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}}})();function yt(){this.yy={}}return r(yt,"Parser"),yt.prototype=kt,kt.Parser=yt,new yt})();Et.parser=Et;var ze=Et,I=ke(),De=(lt=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var o,u,c,l,x,f,_,a,m,p,y,q,T,d,A,M,Y,j;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((o=z.quadrantChart)==null?void 0:o.chartWidth)||500,chartWidth:((u=z.quadrantChart)==null?void 0:u.chartHeight)||500,titlePadding:((c=z.quadrantChart)==null?void 0:c.titlePadding)||10,titleFontSize:((l=z.quadrantChart)==null?void 0:l.titleFontSize)||20,quadrantPadding:((x=z.quadrantChart)==null?void 0:x.quadrantPadding)||5,xAxisLabelPadding:((f=z.quadrantChart)==null?void 0:f.xAxisLabelPadding)||5,yAxisLabelPadding:((_=z.quadrantChart)==null?void 0:_.yAxisLabelPadding)||5,xAxisLabelFontSize:((a=z.quadrantChart)==null?void 0:a.xAxisLabelFontSize)||16,yAxisLabelFontSize:((m=z.quadrantChart)==null?void 0:m.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=z.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((y=z.quadrantChart)==null?void 0:y.quadrantTextTopPadding)||5,pointTextPadding:((q=z.quadrantChart)==null?void 0:q.pointTextPadding)||5,pointLabelFontSize:((T=z.quadrantChart)==null?void 0:T.pointLabelFontSize)||12,pointRadius:((d=z.quadrantChart)==null?void 0:d.pointRadius)||5,xAxisPosition:((A=z.quadrantChart)==null?void 0:A.xAxisPosition)||"top",yAxisPosition:((M=z.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((Y=z.quadrantChart)==null?void 0:Y.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((j=z.quadrantChart)==null?void 0:j.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:I.quadrant1Fill,quadrant2Fill:I.quadrant2Fill,quadrant3Fill:I.quadrant3Fill,quadrant4Fill:I.quadrant4Fill,quadrant1TextFill:I.quadrant1TextFill,quadrant2TextFill:I.quadrant2TextFill,quadrant3TextFill:I.quadrant3TextFill,quadrant4TextFill:I.quadrant4TextFill,quadrantPointFill:I.quadrantPointFill,quadrantPointTextFill:I.quadrantPointTextFill,quadrantXAxisTextFill:I.quadrantXAxisTextFill,quadrantYAxisTextFill:I.quadrantYAxisTextFill,quadrantTitleFill:I.quadrantTitleFill,quadrantInternalBorderStrokeFill:I.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:I.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,At.info("clear called")}setData(o){this.data={...this.data,...o}}addPoints(o){this.data.points=[...o,...this.data.points]}addClass(o,u){this.classes.set(o,u)}setConfig(o){At.trace("setConfig called with: ",o),this.config={...this.config,...o}}setThemeConfig(o){At.trace("setThemeConfig called with: ",o),this.themeConfig={...this.themeConfig,...o}}calculateSpace(o,u,c,l){let x=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,f={top:o==="top"&&u?x:0,bottom:o==="bottom"&&u?x:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,a={left:this.config.yAxisPosition==="left"&&c?_:0,right:this.config.yAxisPosition==="right"&&c?_:0},m=this.config.titleFontSize+this.config.titlePadding*2,p={top:l?m:0},y=this.config.quadrantPadding+a.left,q=this.config.quadrantPadding+f.top+p.top,T=this.config.chartWidth-this.config.quadrantPadding*2-a.left-a.right,d=this.config.chartHeight-this.config.quadrantPadding*2-f.top-f.bottom-p.top;return{xAxisSpace:f,yAxisSpace:a,titleSpace:p,quadrantSpace:{quadrantLeft:y,quadrantTop:q,quadrantWidth:T,quadrantHalfWidth:T/2,quadrantHeight:d,quadrantHalfHeight:d/2}}}getAxisLabels(o,u,c,l){let{quadrantSpace:x,titleSpace:f}=l,{quadrantHalfHeight:_,quadrantHeight:a,quadrantLeft:m,quadrantHalfWidth:p,quadrantTop:y,quadrantWidth:q}=x,T=!!this.data.xAxisRightText,d=!!this.data.yAxisTopText,A=[];return this.data.xAxisLeftText&&u&&A.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:m+(T?p/2:0),y:o==="top"?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+y+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&u&&A.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:m+p+(T?p/2:0),y:o==="top"?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+y+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&c&&A.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+m+q+this.config.quadrantPadding,y:y+a-(d?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&c&&A.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+m+q+this.config.quadrantPadding,y:y+_-(d?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),A}getQuadrants(o){let{quadrantSpace:u}=o,{quadrantHalfHeight:c,quadrantLeft:l,quadrantHalfWidth:x,quadrantTop:f}=u,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l+x,y:f,width:x,height:c,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l,y:f,width:x,height:c,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l,y:f+c,width:x,height:c,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:l+x,y:f+c,width:x,height:c,fill:this.themeConfig.quadrant4Fill}];for(let a of _)a.text.x=a.x+a.width/2,this.data.points.length===0?(a.text.y=a.y+a.height/2,a.text.horizontalPos="middle"):(a.text.y=a.y+this.config.quadrantTextTopPadding,a.text.horizontalPos="top");return _}getQuadrantPoints(o){let{quadrantSpace:u}=o,{quadrantHeight:c,quadrantLeft:l,quadrantTop:x,quadrantWidth:f}=u,_=ee().domain([0,1]).range([l,f+l]),a=ee().domain([0,1]).range([c+x,x]);return this.data.points.map(m=>{let p=this.classes.get(m.className);return p&&(m={...p,...m}),{x:_(m.x),y:a(m.y),fill:m.color??this.themeConfig.quadrantPointFill,radius:m.radius??this.config.pointRadius,text:{text:m.text,fill:this.themeConfig.quadrantPointTextFill,x:_(m.x),y:a(m.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:m.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:m.strokeWidth??"0px"}})}getBorders(o){let u=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:c}=o,{quadrantHalfHeight:l,quadrantHeight:x,quadrantLeft:f,quadrantHalfWidth:_,quadrantTop:a,quadrantWidth:m}=c;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-u,y1:a,x2:f+m+u,y2:a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f+m,y1:a+u,x2:f+m,y2:a+x-u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-u,y1:a+x,x2:f+m+u,y2:a+x},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f,y1:a+u,x2:f,y2:a+x-u},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+_,y1:a+u,x2:f+_,y2:a+x-u},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+u,y1:a+l,x2:f+m-u,y2:a+l}]}getTitle(o){if(o)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let o=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),u=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),c=this.config.showTitle&&!!this.data.titleText,l=this.data.points.length>0?"bottom":this.config.xAxisPosition,x=this.calculateSpace(l,o,u,c);return{points:this.getQuadrantPoints(x),quadrants:this.getQuadrants(x),axisLabels:this.getAxisLabels(l,o,u,x),borderLines:this.getBorders(x),title:this.getTitle(c)}}},r(lt,"QuadrantBuilder"),lt),bt=(ht=class extends Error{constructor(o,u,c){super(`value for ${o} ${u} is invalid, please use a valid ${c}`),this.name="InvalidStyleError"}},r(ht,"InvalidStyleError"),ht);function zt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}r(zt,"validateHexCode");function ne(t){return!/^\d+$/.test(t)}r(ne,"validateNumber");function se(t){return!/^\d+px$/.test(t)}r(se,"validateSizeInPixels");var Ie=vt();function Q(t){return Se(t.trim(),Ie)}r(Q,"textSanitizer");var D=new De;function re(t){D.setData({quadrant1Text:Q(t.text)})}r(re,"setQuadrant1Text");function oe(t){D.setData({quadrant2Text:Q(t.text)})}r(oe,"setQuadrant2Text");function le(t){D.setData({quadrant3Text:Q(t.text)})}r(le,"setQuadrant3Text");function he(t){D.setData({quadrant4Text:Q(t.text)})}r(he,"setQuadrant4Text");function ce(t){D.setData({xAxisLeftText:Q(t.text)})}r(ce,"setXAxisLeftText");function de(t){D.setData({xAxisRightText:Q(t.text)})}r(de,"setXAxisRightText");function ue(t){D.setData({yAxisTopText:Q(t.text)})}r(ue,"setYAxisTopText");function xe(t){D.setData({yAxisBottomText:Q(t.text)})}r(xe,"setYAxisBottomText");function _t(t){let o={};for(let u of t){let[c,l]=u.trim().split(/\s*:\s*/);if(c==="radius"){if(ne(l))throw new bt(c,l,"number");o.radius=parseInt(l)}else if(c==="color"){if(zt(l))throw new bt(c,l,"hex code");o.color=l}else if(c==="stroke-color"){if(zt(l))throw new bt(c,l,"hex code");o.strokeColor=l}else if(c==="stroke-width"){if(se(l))throw new bt(c,l,"number of pixels (eg. 10px)");o.strokeWidth=l}else throw Error(`style named ${c} is not supported.`)}return o}r(_t,"parseStyles");function fe(t,o,u,c,l){let x=_t(l);D.addPoints([{x:u,y:c,text:Q(t.text),className:o,...x}])}r(fe,"addPoint");function ge(t,o){D.addClass(t,_t(o))}r(ge,"addClass");function pe(t){D.setConfig({chartWidth:t})}r(pe,"setWidth");function ye(t){D.setConfig({chartHeight:t})}r(ye,"setHeight");function me(){let{themeVariables:t,quadrantChart:o}=vt();return o&&D.setConfig(o),D.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),D.setData({titleText:ae()}),D.build()}r(me,"getQuadrantData");var Ne={parser:ze,db:{setWidth:pe,setHeight:ye,setQuadrant1Text:re,setQuadrant2Text:oe,setQuadrant3Text:le,setQuadrant4Text:he,setXAxisLeftText:ce,setXAxisRightText:de,setYAxisTopText:ue,setYAxisBottomText:xe,parseStyles:_t,addPoint:fe,addClass:ge,getQuadrantData:me,clear:r(function(){D.clear(),Ce()},"clear"),setAccTitle:_e,getAccTitle:ve,setDiagramTitle:Fe,getDiagramTitle:ae,getAccDescription:Pe,setAccDescription:Ee},renderer:{draw:r((t,o,u,c)=>{var ut,xt,ft;function l(i){return i==="top"?"hanging":"middle"}r(l,"getDominantBaseLine");function x(i){return i==="left"?"start":"middle"}r(x,"getTextAnchor");function f(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}r(f,"getTransformation");let _=vt();At.debug(`Rendering quadrant chart +`+t);let a=_.securityLevel,m;a==="sandbox"&&(m=ie("#i"+o));let p=ie(a==="sandbox"?m.nodes()[0].contentDocument.body:"body").select(`[id="${o}"]`),y=p.append("g").attr("class","main"),q=((ut=_.quadrantChart)==null?void 0:ut.chartWidth)??500,T=((xt=_.quadrantChart)==null?void 0:xt.chartHeight)??500;Le(p,T,q,((ft=_.quadrantChart)==null?void 0:ft.useMaxWidth)??!0),p.attr("viewBox","0 0 "+q+" "+T),c.db.setHeight(T),c.db.setWidth(q);let d=c.db.getQuadrantData(),A=y.append("g").attr("class","quadrants"),M=y.append("g").attr("class","border"),Y=y.append("g").attr("class","data-points"),j=y.append("g").attr("class","labels"),pt=y.append("g").attr("class","title");d.title&&pt.append("text").attr("x",0).attr("y",0).attr("fill",d.title.fill).attr("font-size",d.title.fontSize).attr("dominant-baseline",l(d.title.horizontalPos)).attr("text-anchor",x(d.title.verticalPos)).attr("transform",f(d.title)).text(d.title.text),d.borderLines&&M.selectAll("line").data(d.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);let ct=A.selectAll("g.quadrant").data(d.quadrants).enter().append("g").attr("class","quadrant");ct.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ct.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>l(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>f(i.text)).text(i=>i.text.text),j.selectAll("g.label").data(d.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>l(i.horizontalPos)).attr("text-anchor",i=>x(i.verticalPos)).attr("transform",i=>f(i));let dt=Y.selectAll("g.data-point").data(d.points).enter().append("g").attr("class","data-point");dt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),dt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>l(i.text.horizontalPos)).attr("text-anchor",i=>x(i.text.verticalPos)).attr("transform",i=>f(i.text))},"draw")},styles:r(()=>"","styles")};export{Ne as diagram}; diff --git a/docs/assets/r-BuEncdBJ.js b/docs/assets/r-BuEncdBJ.js new file mode 100644 index 0000000..c5f9d8f --- /dev/null +++ b/docs/assets/r-BuEncdBJ.js @@ -0,0 +1 @@ +function c(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}var m=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],d=["list","quote","bquote","eval","return","call","parse","deparse"],x=["if","else","repeat","while","function","for","in","next","break"],h=["if","else","repeat","while","function","for"],v=c(m),y=c(d),N=c(x),_=c(h),k=/[+\-*\/^<>=!&|~$:]/,i;function l(e,t){i=null;var n=e.next();if(n=="#")return e.skipToEnd(),"comment";if(n=="0"&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if(n=="."&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(n))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if(n=="'"||n=='"')return t.tokenize=A(n),"string";if(n=="`")return e.match(/[^`]+`/),"string.special";if(n=="."&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(n)){e.eatWhile(/[\w\.]/);var r=e.current();return v.propertyIsEnumerable(r)?"atom":N.propertyIsEnumerable(r)?(_.propertyIsEnumerable(r)&&!e.match(/\s*if(\s+|$)/,!1)&&(i="block"),"keyword"):y.propertyIsEnumerable(r)?"builtin":"variable"}else return n=="%"?(e.skipTo("%")&&e.next(),"variableName.special"):n=="<"&&e.eat("-")||n=="<"&&e.match("<-")||n=="-"&&e.match(/>>?/)||n=="="&&t.ctx.argList?"operator":k.test(n)?(n=="$"||e.eatWhile(k),"operator"):/[\(\){}\[\];]/.test(n)?(i=n,n==";"?"punctuation":null):null}function A(e){return function(t,n){if(t.eat("\\")){var r=t.next();return r=="x"?t.match(/^[a-f0-9]{2}/i):(r=="u"||r=="U")&&t.eat("{")&&t.skipTo("}")?t.next():r=="u"?t.match(/^[a-f0-9]{4}/i):r=="U"?t.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&t.match(/^[0-7]{1,2}/),"string.special"}else{for(var a;(a=t.next())!=null;){if(a==e){n.tokenize=l;break}if(a=="\\"){t.backUp(1);break}}return"string"}}}var b=1,u=2,f=4;function o(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function g(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function s(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}const I={name:"r",startState:function(e){return{tokenize:l,ctx:{type:"top",indent:-e,flags:u},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(t.ctx.flags&3||(t.ctx.flags|=u),t.ctx.flags&f&&s(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return n!="comment"&&(t.ctx.flags&u)==0&&g(t,b),(i==";"||i=="{"||i=="}")&&t.ctx.type=="block"&&s(t),i=="{"?o(t,"}",e):i=="("?(o(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):i=="["?o(t,"]",e):i=="block"?o(t,"block",e):i==t.ctx.type?s(t):t.ctx.type=="block"&&n!="comment"&&g(t,f),t.afterIdent=n=="variable"||n=="keyword",n},indent:function(e,t,n){if(e.tokenize!=l)return 0;var r=t&&t.charAt(0),a=e.ctx,p=r==a.type;return a.flags&f&&(a=a.prev),a.type=="block"?a.indent+(r=="{"?0:n.unit):a.flags&b?a.column+(p?0:1):a.indent+(p?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:m.concat(d,x)}};export{I as t}; diff --git a/docs/assets/r-CpeNqXZC.js b/docs/assets/r-CpeNqXZC.js new file mode 100644 index 0000000..a2dfe29 --- /dev/null +++ b/docs/assets/r-CpeNqXZC.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"R","name":"r","patterns":[{"include":"#roxygen"},{"include":"#comments"},{"include":"#constants"},{"include":"#accessor"},{"include":"#operators"},{"include":"#keywords"},{"include":"#storage-type"},{"include":"#strings"},{"include":"#brackets"},{"include":"#function-declarations"},{"include":"#lambda-functions"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"match":"[.A-Z_a-z][.\\\\w]*|`[^`]+`"}],"repository":{"accessor":{"patterns":[{"begin":"(\\\\$)(?=[.A-Z_a-z][.\\\\w]*|`[^`]+`)","beginCaptures":{"1":{"name":"keyword.accessor.dollar.r"}},"end":"(?!\\\\G)","patterns":[{"include":"#function-calls"}]},{"begin":"(:::?)(?=[.A-Z_a-z][.\\\\w]*|`[^`]+`)","beginCaptures":{"1":{"name":"punctuation.accessor.colons.r"}},"end":"(?!\\\\G)","patterns":[{"include":"#function-calls"}]}]},"brackets":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parameters.begin.bracket.round.r"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.r"}},"patterns":[{"include":"source.r"}]},{"begin":"\\\\[(?!\\\\[)","beginCaptures":{"0":{"name":"punctuation.section.brackets.single.begin.r"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.brackets.single.end.r"}},"patterns":[{"include":"source.r"}]},{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.section.brackets.double.begin.r"}},"contentName":"meta.item-access.arguments.r","end":"]]","endCaptures":{"0":{"name":"punctuation.section.brackets.double.end.r"}},"patterns":[{"include":"source.r"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.r"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.r"}},"patterns":[{"include":"source.r"}]}]},"builtin-functions":{"patterns":[{"begin":"\\\\b(?:(base)(::))?(abbreviate|abs|acosh??|activeBindingFunction|addNA|addTaskCallback|agrepl??|alist|all|all\\\\.equal|all\\\\.equal\\\\.character|all\\\\.equal\\\\.default|all\\\\.equal\\\\.environment|all\\\\.equal\\\\.envRefClass|all\\\\.equal\\\\.factor|all\\\\.equal\\\\.formula|all\\\\.equal\\\\.function|all\\\\.equal\\\\.language|all\\\\.equal\\\\.list|all\\\\.equal\\\\.numeric|all\\\\.equal\\\\.POSIXt|all\\\\.equal\\\\.raw|all\\\\.names|all\\\\.vars|allowInterrupts|any|anyDuplicated|anyDuplicated\\\\.array|anyDuplicated\\\\.data\\\\.frame|anyDuplicated\\\\.default|anyDuplicated\\\\.matrix|anyNA|anyNA\\\\.data\\\\.frame|anyNA\\\\.numeric_version|anyNA\\\\.POSIXlt|aperm|aperm\\\\.default|aperm\\\\.table|append|apply|Arg|args|array|array2DF|arrayInd|as\\\\.array|as\\\\.array\\\\.default|as\\\\.call|as\\\\.character|as\\\\.character\\\\.condition|as\\\\.character\\\\.Date|as\\\\.character\\\\.default|as\\\\.character\\\\.error|as\\\\.character\\\\.factor|as\\\\.character\\\\.hexmode|as\\\\.character\\\\.numeric_version|as\\\\.character\\\\.octmode|as\\\\.character\\\\.POSIXt|as\\\\.character\\\\.srcref|as\\\\.complex|as\\\\.data\\\\.frame|as\\\\.data\\\\.frame\\\\.array|as\\\\.data\\\\.frame\\\\.AsIs|as\\\\.data\\\\.frame\\\\.character|as\\\\.data\\\\.frame\\\\.complex|as\\\\.data\\\\.frame\\\\.data\\\\.frame|as\\\\.data\\\\.frame\\\\.Date|as\\\\.data\\\\.frame\\\\.default|as\\\\.data\\\\.frame\\\\.difftime|as\\\\.data\\\\.frame\\\\.factor|as\\\\.data\\\\.frame\\\\.integer|as\\\\.data\\\\.frame\\\\.list|as\\\\.data\\\\.frame\\\\.logical|as\\\\.data\\\\.frame\\\\.matrix|as\\\\.data\\\\.frame\\\\.model\\\\.matrix|as\\\\.data\\\\.frame\\\\.noquote|as\\\\.data\\\\.frame\\\\.numeric|as\\\\.data\\\\.frame\\\\.numeric_version|as\\\\.data\\\\.frame\\\\.ordered|as\\\\.data\\\\.frame\\\\.POSIXct|as\\\\.data\\\\.frame\\\\.POSIXlt|as\\\\.data\\\\.frame\\\\.raw|as\\\\.data\\\\.frame\\\\.table|as\\\\.data\\\\.frame\\\\.ts|as\\\\.data\\\\.frame\\\\.vector|as\\\\.Date|as\\\\.Date\\\\.character|as\\\\.Date\\\\.default|as\\\\.Date\\\\.factor|as\\\\.Date\\\\.numeric|as\\\\.Date\\\\.POSIXct|as\\\\.Date\\\\.POSIXlt|as\\\\.difftime|as\\\\.double|as\\\\.double\\\\.difftime|as\\\\.double\\\\.POSIXlt|as\\\\.environment|as\\\\.expression|as\\\\.expression\\\\.default|as\\\\.factor|as\\\\.function|as\\\\.function\\\\.default|as\\\\.hexmode|as\\\\.integer|as\\\\.list|as\\\\.list\\\\.data\\\\.frame|as\\\\.list\\\\.Date|as\\\\.list\\\\.default|as\\\\.list\\\\.difftime|as\\\\.list\\\\.environment|as\\\\.list\\\\.factor|as\\\\.list\\\\.function|as\\\\.list\\\\.numeric_version|as\\\\.list\\\\.POSIXct|as\\\\.list\\\\.POSIXlt|as\\\\.logical|as\\\\.logical\\\\.factor|as\\\\.matrix|as\\\\.matrix\\\\.data\\\\.frame|as\\\\.matrix\\\\.default|as\\\\.matrix\\\\.noquote|as\\\\.matrix\\\\.POSIXlt|as\\\\.name|as\\\\.null|as\\\\.null\\\\.default|as\\\\.numeric|as\\\\.numeric_version|as\\\\.octmode|as\\\\.ordered|as\\\\.package_version|as\\\\.pairlist|as\\\\.POSIXct|as\\\\.POSIXct\\\\.Date|as\\\\.POSIXct\\\\.default|as\\\\.POSIXct\\\\.numeric|as\\\\.POSIXct\\\\.POSIXlt|as\\\\.POSIXlt|as\\\\.POSIXlt\\\\.character|as\\\\.POSIXlt\\\\.Date|as\\\\.POSIXlt\\\\.default|as\\\\.POSIXlt\\\\.factor|as\\\\.POSIXlt\\\\.numeric|as\\\\.POSIXlt\\\\.POSIXct|as\\\\.qr|as\\\\.raw|as\\\\.single|as\\\\.single\\\\.default|as\\\\.symbol|as\\\\.table|as\\\\.table\\\\.default|as\\\\.vector|as\\\\.vector\\\\.data\\\\.frame|as\\\\.vector\\\\.factor|as\\\\.vector\\\\.POSIXlt|asinh??|asNamespace|asplit|asS3|asS4|assign|atan2??|atanh|attach|attachNamespace|attr|attr\\\\.all\\\\.equal|attributes|autoload|autoloader|backsolve|balancePOSIXlt|baseenv|basename|besselI|besselJ|besselK|besselY|beta|bindingIsActive|bindingIsLocked|bindtextdomain|bitwAnd|bitwNot|bitwOr|bitwShiftL|bitwShiftR|bitwXor|body|bquote|break|browser|browserCondition|browserSetDebug|browserText|builtins|by|by\\\\.data\\\\.frame|by\\\\.default|bzfile|c|c\\\\.Date|c\\\\.difftime|c\\\\.factor|c\\\\.noquote|c\\\\.numeric_version|c\\\\.POSIXct|c\\\\.POSIXlt|c\\\\.warnings|call|callCC|capabilities|casefold|cat|cbind|cbind\\\\.data\\\\.frame|ceiling|char\\\\.expand|character|charmatch|charToRaw|chartr|chkDots|chol|chol\\\\.default|chol2inv|choose|chooseOpsMethod|chooseOpsMethod\\\\.default|class|clearPushBack|close|close\\\\.connection|close\\\\.srcfile|close\\\\.srcfilealias|closeAllConnections|col|colMeans|colnames|colSums|commandArgs|comment|complex|computeRestarts|conditionCall|conditionCall\\\\.condition|conditionMessage|conditionMessage\\\\.condition|conflictRules|conflicts|Conj|contributors|cosh??|cospi|crossprod|Cstack_info|cummax|cummin|cumprod|cumsum|curlGetHeaders|cut|cut\\\\.Date|cut\\\\.default|cut\\\\.POSIXt|data\\\\.class|data\\\\.frame|data\\\\.matrix|date|debug|debuggingState|debugonce|declare|default\\\\.stringsAsFactors|delayedAssign|deparse1??|det|detach|determinant|determinant\\\\.matrix|dget|diag|diff|diff\\\\.Date|diff\\\\.default|diff\\\\.difftime|diff\\\\.POSIXt|difftime|digamma|dim|dim\\\\.data\\\\.frame|dimnames|dimnames\\\\.data\\\\.frame|dir|dir\\\\.create|dir\\\\.exists|dirname|do\\\\.call|dontCheck|double|dput|dQuote|drop|droplevels|droplevels\\\\.data\\\\.frame|droplevels\\\\.factor|dump|duplicated|duplicated\\\\.array|duplicated\\\\.data\\\\.frame|duplicated\\\\.default|duplicated\\\\.matrix|duplicated\\\\.numeric_version|duplicated\\\\.POSIXlt|duplicated\\\\.warnings|dyn\\\\.load|dyn\\\\.unload|dynGet|eapply|eigen|emptyenv|enc2native|enc2utf8|encodeString|Encoding|endsWith|enquote|env\\\\.profile|environment|environmentIsLocked|environmentName|errorCondition|eval|eval\\\\.parent|evalq|Exec|exists|exp|expand\\\\.grid|expm1|expression|extSoftVersion|factor|factorial|fifo|file|file\\\\.access|file\\\\.append|file\\\\.choose|file\\\\.copy|file\\\\.create|file\\\\.exists|file\\\\.info|file\\\\.link|file\\\\.mode|file\\\\.mtime|file\\\\.path|file\\\\.remove|file\\\\.rename|file\\\\.show|file\\\\.size|file\\\\.symlink|Filter|Find|find\\\\.package|findInterval|findPackageEnv|findRestart|floor|flush|flush\\\\.connection|for|force|forceAndCall|formals|format|format\\\\.AsIs|format\\\\.data\\\\.frame|format\\\\.Date|format\\\\.default|format\\\\.difftime|format\\\\.factor|format\\\\.hexmode|format\\\\.info|format\\\\.libraryIQR|format\\\\.numeric_version|format\\\\.octmode|format\\\\.packageInfo|format\\\\.POSIXct|format\\\\.POSIXlt|format\\\\.pval|format\\\\.summaryDefault|formatC|formatDL|forwardsolve|function|gamma|gc|gc\\\\.time|gcinfo|gctorture2??|get0??|getAllConnections|getCallingDLLe??|getConnection|getDLLRegisteredRoutines|getDLLRegisteredRoutines\\\\.character|getDLLRegisteredRoutines\\\\.DLLInfo|getElement|geterrmessage|getExportedValue|getHook|getLoadedDLLs|getNamespace|getNamespaceExports|getNamespaceImports|getNamespaceInfo|getNamespaceName|getNamespaceUsers|getNamespaceVersion|getNativeSymbolInfo|getOption|getRversion|getSrcLines|getTaskCallbackNames|gettextf??|getwd|gl|globalCallingHandlers|globalenv|gregexec|gregexpr|grepl??|grepRaw|grepv|grouping|gsub|gzcon|gzfile|I|iconv|iconvlist|icuGetCollate|icuSetCollate|identical|identity|if|ifelse|Im|importIntoEnv|infoRDS|inherits|integer|interaction|interactive|intersect|intToBits|intToUtf8|inverse\\\\.rle|invisible|invokeRestart|invokeRestartInteractively|is\\\\.array|is\\\\.atomic|is\\\\.call|is\\\\.character|is\\\\.complex|is\\\\.data\\\\.frame|is\\\\.double|is\\\\.element|is\\\\.environment|is\\\\.expression|is\\\\.factor|is\\\\.finite|is\\\\.finite\\\\.POSIXlt|is\\\\.function|is\\\\.infinite|is\\\\.infinite\\\\.POSIXlt|is\\\\.integer|is\\\\.language|is\\\\.list|is\\\\.loaded|is\\\\.logical|is\\\\.matrix|is\\\\.na|is\\\\.na\\\\.data\\\\.frame|is\\\\.na\\\\.numeric_version|is\\\\.na\\\\.POSIXlt|is\\\\.name|is\\\\.nan|is\\\\.nan\\\\.POSIXlt|is\\\\.null|is\\\\.numeric|is\\\\.numeric_version|is\\\\.numeric\\\\.Date|is\\\\.numeric\\\\.difftime|is\\\\.numeric\\\\.POSIXt|is\\\\.object|is\\\\.ordered|is\\\\.package_version|is\\\\.pairlist|is\\\\.primitive|is\\\\.qr|is\\\\.R|is\\\\.raw|is\\\\.recursive|is\\\\.single|is\\\\.symbol|is\\\\.table|is\\\\.unsorted|is\\\\.vector|isa|isatty|isBaseNamespace|isdebugged|isFALSE|isIncomplete|isNamespace|isNamespaceLoaded|ISOdate|ISOdatetime|isOpen|isRestart|isS4|isSeekable|isSymmetric|isSymmetric\\\\.matrix|isTRUE|jitter|julian|julian\\\\.Date|julian\\\\.POSIXt|kappa|kappa\\\\.default|kappa\\\\.lm|kappa\\\\.qr|kronecker|l10n_info|La_library|La_version|La\\\\.svd|labels|labels\\\\.default|lapply|lazyLoad|lazyLoadDBexec|lazyLoadDBfetch|lbeta|lchoose|length|length\\\\.POSIXlt|lengths|levels|levels\\\\.default|lfactorial|lgamma|libcurlVersion|library|library\\\\.dynam|library\\\\.dynam\\\\.unload|licence|license|list|list\\\\.dirs|list\\\\.files|list2DF|list2env|load|loadedNamespaces|loadingNamespaceInfo|loadNamespace|local|lockBinding|lockEnvironment|log|log10|log1p|log2|logb|logical|lower\\\\.tri|ls|make\\\\.names|make\\\\.unique|makeActiveBinding|Map|mapply|margin\\\\.table|marginSums|mat\\\\.or\\\\.vec|match|match\\\\.arg|match\\\\.call|match\\\\.fun|Math\\\\.data\\\\.frame|Math\\\\.Date|Math\\\\.difftime|Math\\\\.factor|Math\\\\.POSIXt|matrix|max|max\\\\.col|mean|mean\\\\.Date|mean\\\\.default|mean\\\\.difftime|mean\\\\.POSIXct|mean\\\\.POSIXlt|mem\\\\.maxNSize|mem\\\\.maxVSize|memCompress|memDecompress|memory\\\\.profile|merge|merge\\\\.data\\\\.frame|merge\\\\.default|message|mget|min|missing|Mod|mode|months|months\\\\.Date|months\\\\.POSIXt|mtfrm|mtfrm\\\\.default|mtfrm\\\\.POSIXct|mtfrm\\\\.POSIXlt|nameOfClass|nameOfClass\\\\.default|names|names\\\\.POSIXlt|namespaceExport|namespaceImport|namespaceImportClasses|namespaceImportFrom|namespaceImportMethods|nargs|nchar|ncol|NCOL|Negate|new\\\\.env|next|NextMethod|ngettext|nlevels|noquote|norm|normalizePath|nrow|NROW|nullfile|numeric|numeric_version|numToBits|numToInts|nzchar|objects|oldClass|OlsonNames|on\\\\.exit|open|open\\\\.connection|open\\\\.srcfile|open\\\\.srcfilealias|open\\\\.srcfilecopy|Ops\\\\.data\\\\.frame|Ops\\\\.Date|Ops\\\\.difftime|Ops\\\\.factor|Ops\\\\.numeric_version|Ops\\\\.ordered|Ops\\\\.POSIXt|options|order|ordered|outer|package_version|packageEvent|packageHasNamespace|packageNotFoundError|packageStartupMessage|packBits|pairlist|parent\\\\.env|parent\\\\.frame|parse|parseNamespaceFile|paste0??|path\\\\.expand|path\\\\.package|pcre_config|pipe|plot|pmatch|pmax|pmax\\\\.int|pmin|pmin\\\\.int|polyroot|pos\\\\.to\\\\.env|Position|pretty|pretty\\\\.default|prettyNum|print|print\\\\.AsIs|print\\\\.by|print\\\\.condition|print\\\\.connection|print\\\\.data\\\\.frame|print\\\\.Date|print\\\\.default|print\\\\.difftime|print\\\\.Dlist|print\\\\.DLLInfo|print\\\\.DLLInfoList|print\\\\.DLLRegisteredRoutines|print\\\\.eigen|print\\\\.factor|print\\\\.function|print\\\\.hexmode|print\\\\.libraryIQR|print\\\\.listof|print\\\\.NativeRoutineList|print\\\\.noquote|print\\\\.numeric_version|print\\\\.octmode|print\\\\.packageInfo|print\\\\.POSIXct|print\\\\.POSIXlt|print\\\\.proc_time|print\\\\.restart|print\\\\.rle|print\\\\.simple\\\\.list|print\\\\.srcfile|print\\\\.srcref|print\\\\.summary\\\\.table|print\\\\.summary\\\\.warnings|print\\\\.summaryDefault|print\\\\.table|print\\\\.warnings|prmatrix|proc\\\\.time|prod|prop\\\\.table|proportions|provideDimnames|psigamma|pushBack|pushBackLength|qr??|qr\\\\.coef|qr\\\\.default|qr\\\\.fitted|qr\\\\.Q|qr\\\\.qty|qr\\\\.qy|qr\\\\.R|qr\\\\.resid|qr\\\\.solve|qr\\\\.X|quarters|quarters\\\\.Date|quarters\\\\.POSIXt|quit|quote|R_compiled_by|R_system_version|R\\\\.home|R\\\\.Version|range|range\\\\.Date|range\\\\.default|range\\\\.POSIXct|rank|rapply|raw|rawConnection|rawConnectionValue|rawShift|rawToBits|rawToChar|rbind|rbind\\\\.data\\\\.frame|rcond|Re|read\\\\.dcf|readBin|readChar|readline|readLines|readRDS|readRenviron|Recall|Reduce|reg\\\\.finalizer|regexec|regexpr|registerS3methods??|regmatches|remove|removeTaskCallback|rep|rep_len|rep\\\\.Date|rep\\\\.difftime|rep\\\\.factor|rep\\\\.int|rep\\\\.numeric_version|rep\\\\.POSIXct|rep\\\\.POSIXlt|repeat|replace|replicate|require|requireNamespace|restartDescription|restartFormals|retracemem|return|returnValue|rev|rev\\\\.default|rle|rm|RNGkind|RNGversion|round|round\\\\.Date|round\\\\.POSIXt|row|row\\\\.names|row\\\\.names\\\\.data\\\\.frame|row\\\\.names\\\\.default|rowMeans|rownames|rowsum|rowsum\\\\.data\\\\.frame|rowsum\\\\.default|rowSums|sample|sample\\\\.int|sapply|save|save\\\\.image|saveRDS|scale|scale\\\\.default|scan|search|searchpaths|seek|seek\\\\.connection|seq|seq_along|seq_len|seq\\\\.Date|seq\\\\.default|seq\\\\.int|seq\\\\.POSIXt|sequence|sequence\\\\.default|serialize|serverSocket|set\\\\.seed|setdiff|setequal|setHook|setNamespaceInfo|setSessionTimeLimit|setTimeLimit|setwd|showConnections|shQuote|sign|signalCondition|signif|simpleCondition|simpleError|simpleMessage|simpleWarning|simplify2array|sin|single|sinh|sink|sink\\\\.number|sinpi|slice\\\\.index|socketAccept|socketConnection|socketSelect|socketTimeout|solve|solve\\\\.default|solve\\\\.qr|sort|sort_by|sort_by\\\\.data\\\\.frame|sort_by\\\\.default|sort\\\\.default|sort\\\\.int|sort\\\\.list|sort\\\\.POSIXlt|source|split|split\\\\.data\\\\.frame|split\\\\.Date|split\\\\.default|split\\\\.POSIXct|sprintf|sqrt|sQuote|srcfile|srcfilealias|srcfilecopy|srcref|standardGeneric|startsWith|stderr|stdin|stdout|stop|stopifnot|storage\\\\.mode|str2expression|str2lang|strftime|strptime|strrep|strsplit|strtoi|strtrim|structure|strwrap|sub|subset|subset\\\\.data\\\\.frame|subset\\\\.default|subset\\\\.matrix|substitute|substr|substring|sum|summary|summary\\\\.connection|summary\\\\.data\\\\.frame|Summary\\\\.data\\\\.frame|summary\\\\.Date|Summary\\\\.Date|summary\\\\.default|summary\\\\.difftime|Summary\\\\.difftime|summary\\\\.factor|Summary\\\\.factor|summary\\\\.matrix|Summary\\\\.numeric_version|Summary\\\\.ordered|summary\\\\.POSIXct|Summary\\\\.POSIXct|summary\\\\.POSIXlt|Summary\\\\.POSIXlt|summary\\\\.proc_time|summary\\\\.srcfile|summary\\\\.srcref|summary\\\\.table|summary\\\\.warnings|suppressMessages|suppressPackageStartupMessages|suppressWarnings|suspendInterrupts|svd|sweep|switch|sys\\\\.calls??|Sys\\\\.chmod|Sys\\\\.Date|sys\\\\.frames??|sys\\\\.function|Sys\\\\.getenv|Sys\\\\.getlocale|Sys\\\\.getpid|Sys\\\\.glob|Sys\\\\.info|sys\\\\.load\\\\.image|Sys\\\\.localeconv|sys\\\\.nframe|sys\\\\.on\\\\.exit|sys\\\\.parents??|Sys\\\\.readlink|sys\\\\.save\\\\.image|Sys\\\\.setenv|Sys\\\\.setFileTime|Sys\\\\.setLanguage|Sys\\\\.setlocale|Sys\\\\.sleep|sys\\\\.source|sys\\\\.status|Sys\\\\.time|Sys\\\\.timezone|Sys\\\\.umask|Sys\\\\.unsetenv|Sys\\\\.which|system|system\\\\.file|system\\\\.time|system2|t|t\\\\.data\\\\.frame|t\\\\.default|table|tabulate|Tailcall|tanh??|tanpi|tapply|taskCallbackManager|tcrossprod|tempdir|tempfile|textConnection|textConnectionValue|tolower|topenv|toString|toString\\\\.default|toupper|trace|traceback|tracemem|tracingState|transform|transform\\\\.data\\\\.frame|transform\\\\.default|trigamma|trimws|trunc|trunc\\\\.Date|trunc\\\\.POSIXt|truncate|truncate\\\\.connection|try|tryCatch|tryInvokeRestart|typeof|unCfillPOSIXlt|unclass|undebug|union|unique|unique\\\\.array|unique\\\\.data\\\\.frame|unique\\\\.default|unique\\\\.matrix|unique\\\\.numeric_version|unique\\\\.POSIXlt|unique\\\\.warnings|units|units\\\\.difftime|unix\\\\.time|unlink|unlist|unloadNamespace|unlockBinding|unname|unserialize|unsplit|untrace|untracemem|unz|upper\\\\.tri|url|use|UseMethod|utf8ToInt|validEnc|validUTF8|vapply|vector|Vectorize|warning|warningCondition|warnings|weekdays|weekdays\\\\.Date|weekdays\\\\.POSIXt|which|which\\\\.max|which\\\\.min|while|with|with\\\\.default|withAutoprint|withCallingHandlers|within|within\\\\.data\\\\.frame|within\\\\.list|withRestarts|withVisible|write|write\\\\.dcf|writeBin|writeChar|writeLines|xor|xpdrows\\\\.data\\\\.frame|xtfrm|xtfrm\\\\.AsIs|xtfrm\\\\.data\\\\.frame|xtfrm\\\\.Date|xtfrm\\\\.default|xtfrm\\\\.difftime|xtfrm\\\\.factor|xtfrm\\\\.numeric_version|xtfrm\\\\.POSIXct|xtfrm\\\\.POSIXlt|xzfile|zapsmall|zstdfile)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.namespace.r"},"2":{"name":"punctuation.accessor.colons.r"},"3":{"name":"support.function.r"},"4":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]},{"begin":"\\\\b(?:(graphics)(::))?(abline|arrows|assocplot|axis|Axis|axis\\\\.Date|Axis\\\\.Date|Axis\\\\.default|axis\\\\.POSIXct|Axis\\\\.POSIXt|Axis\\\\.table|axTicks|barplot|barplot\\\\.default|barplot\\\\.formula|box|boxplot|boxplot\\\\.default|boxplot\\\\.formula|boxplot\\\\.matrix|bxp|cdplot|cdplot\\\\.default|cdplot\\\\.formula|clip|close\\\\.screen|co\\\\.intervals|contour|contour\\\\.default|coplot|curve|dotchart|erase\\\\.screen|extendDateTimeFormat|filled\\\\.contour|fourfoldplot|frame|grconvertX|grconvertY|grid|hist|hist\\\\.Date|hist\\\\.default|hist\\\\.POSIXt|identify|identify\\\\.default|image|image\\\\.default|layout|layout\\\\.show|lcm|legend|lines|lines\\\\.default|lines\\\\.formula|lines\\\\.histogram|lines\\\\.table|locator|matlines|matplot|matpoints|mosaicplot|mosaicplot\\\\.default|mosaicplot\\\\.formula|mtext|pairs|pairs\\\\.default|pairs\\\\.formula|panel\\\\.smooth|par|persp|persp\\\\.default|pie|piechart|plot\\\\.data\\\\.frame|plot\\\\.default|plot\\\\.design|plot\\\\.factor|plot\\\\.formula|plot\\\\.function|plot\\\\.histogram|plot\\\\.new|plot\\\\.raster|plot\\\\.table|plot\\\\.window|plot\\\\.xy|plotHclust|points|points\\\\.default|points\\\\.formula|points\\\\.table|polygon|polypath|rasterImage|rect|rug|screen|segments|smoothScatter|spineplot|spineplot\\\\.default|spineplot\\\\.formula|split\\\\.screen|stars|stem|strheight|stripchart|stripchart\\\\.default|stripchart\\\\.formula|strwidth|sunflowerplot|sunflowerplot\\\\.default|sunflowerplot\\\\.formula|symbols|text|text\\\\.default|text\\\\.formula|title|xinch|xspline|xyinch|yinch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.namespace.r"},"2":{"name":"punctuation.accessor.colons.r"},"3":{"name":"support.function.r"},"4":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]},{"begin":"\\\\b(?:(grDevices)(::))?(adjustcolor|anyNA\\\\.raster|as\\\\.graphicsAnnot|as\\\\.matrix\\\\.raster|as\\\\.raster|as\\\\.raster\\\\.array|as\\\\.raster\\\\.character|as\\\\.raster\\\\.logical|as\\\\.raster\\\\.matrix|as\\\\.raster\\\\.numeric|as\\\\.raster\\\\.raster|as\\\\.raster\\\\.raw|axisTicks|bitmap|bmp|boxplot\\\\.stats|c2to3|cairo_pdf|cairo_ps|cairoFT|cairoSymbolFont|cairoVersion|check_gs_type|check\\\\.options|checkFont|checkFont\\\\.CIDFont|checkFont\\\\.default|checkFont\\\\.Type1Font|checkFontInUse|checkIntFormat|checkQuartzFont|checkSymbolFont|checkX11Font|chromaticAdaptation|chull|CIDFont|cm|cm\\\\.colors|col2rgb|colorConverter|colorRamp|colorRampPalette|colors|colours|comparePangoVersion|contourLines|convertColor|densCols|dev\\\\.capabilities|dev\\\\.capture|dev\\\\.control|dev\\\\.copy|dev\\\\.copy2eps|dev\\\\.copy2pdf|dev\\\\.cur|dev\\\\.displaylist|dev\\\\.flush|dev\\\\.hold|dev\\\\.interactive|dev\\\\.list|dev\\\\.new|dev\\\\.next|dev\\\\.off|dev\\\\.prev|dev\\\\.print|dev\\\\.set|dev\\\\.size|dev2bitmap|devAskNewPage|deviceIsInteractive|embedFonts|embedGlyphs|extendrange|getGraphicsEvent|getGraphicsEventEnv|glyphAnchor|glyphFont|glyphFontList|glyphHeight|glyphHeightBottom|glyphInfo|glyphJust|glyphJust\\\\.character|glyphJust\\\\.GlyphJust|glyphJust\\\\.numeric|glyphWidth|glyphWidthLeft|graphics\\\\.off|gray|gray\\\\.colors|grey|grey\\\\.colors|grSoftVersion|guessEncoding|hcl|hcl\\\\.colors|hcl\\\\.pals|heat\\\\.colors|hsv|initPSandPDFfonts|invertStyle|is\\\\.na\\\\.raster|is\\\\.raster|isPDF|jpeg|make\\\\.rgb|mapCharWeight|mapStyle|mapWeight|matchEncoding|matchEncoding\\\\.CIDFont|matchEncoding\\\\.Type1Font|matchFont|n2mfrow|nclass\\\\.FD|nclass\\\\.scott|nclass\\\\.Sturges|Ops\\\\.raster|optionSymbolFont|palette|palette\\\\.colors|palette\\\\.match|palette\\\\.pals|pangoVersion|pattern|pdf|pdf\\\\.options|pdfFonts|pictex|png|postscript|postscriptFonts|pow3|prettyDate|print\\\\.colorConverter|print\\\\.raster|print\\\\.recordedplot|print\\\\.RGBcolorConverter|print\\\\.RGlyphFont|printFont|printFont\\\\.CIDFont|printFont\\\\.Type1Font|printFonts|ps\\\\.options|quartz|quartz\\\\.options|quartz\\\\.save|quartzFonts??|rainbow|recordGraphics|recordPalette|recordPlot|replayPlot|restoreRecordedPlot|rgb|rgb2hsv|RGBcolorConverter|savePlot|seqDtime|setEPS|setFonts|setGraphicsEventEnv|setGraphicsEventHandlers|setPS|setQuartzFonts|setX11Fonts|svg|symbolfamilyDefault|symbolType1support|terrain\\\\.colors|tiff|topo\\\\.colors|trans3d|trunc_POSIXt|Type1Font|vectorizeConverter|warnLogCoords|x11|X11|X11\\\\.options|X11Font|X11FontError|X11Fonts|xfig|xy\\\\.coords|xyTable|xyz\\\\.coords)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.namespace.r"},"2":{"name":"punctuation.accessor.colons.r"},"3":{"name":"support.function.r"},"4":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]},{"begin":"\\\\b(?:(methods)(::))?(addNextMethod|allNames|Arith|as|asMethodDefinition|assignClassDef|assignMethodsMetaData|balanceMethodsList|bind_activation|cacheGenericsMetaData|cacheMetaData|cacheMethod|cacheOnAssign|callGeneric|callNextMethod|canCoerce|cbind2??|checkAtAssignment|checkSlotAssignment|classesToAM|classGeneratorFunction|classLabel|classMetaName|className|coerce|Compare|completeClassDefinition|completeExtends|completeSubclasses|Complex|conformMethod|defaultDumpName|defaultPrototype|dispatchIsInternal|doPrimitiveMethod|dumpMethods??|el|elNamed|empty\\\\.dump|emptyMethodsList|envRefInferField|envRefSetField|evalOnLoad|evalqOnLoad|evalSource|existsFunction|existsMethod|extends|externalRefMethod|finalDefaultMethod|findClass|findFunction|findMethods??|findMethodSignatures|findUnique|fixPre1\\\\.8|formalArgs|fromNextMethod|functionBody|generic\\\\.skeleton|genericForBasic|getAllSuperClasses|getClass|getClassDef|getClasses|getDataPart|getFunction|getGeneric|getGenericFromCall|getGenerics|getGroup|getGroupMembers|getLoadActions|getMethods??|getMethodsAndAccessors|getMethodsForDispatch|getMethodsMetaData|getPackageName|getRefClass|getRefSuperClasses|getSlots|getValidity|hasArg|hasLoadAction|hasMethods??|implicitGeneric|inBasicFuns|inferProperties|inheritedSlotNames|inheritedSubMethodLists|initFieldArgs|initialize|initMethodDispatch|initRefFields|insertClassMethods|insertMethod|insertMethodInEmptyList|insertSource|installClassMethod|is|isBaseFun|isClass|isClassDef|isClassUnion|isGeneric|isGrammarSymbol|isGroup|isMixin|isRematched|isS3Generic|isSealedClass|isSealedMethod|isVirtualClass|isXS3Class|kronecker|languageEl|listFromMethods|loadMethod|Logic|makeClassMethod|makeClassRepresentation|makeEnvRefMethods|makeExtends|makeGeneric|makeMethodsList|makePrototypeFromClassDef|makeStandardGeneric|matchDefaults|matchSignature|Math2??|matrixOps|mergeMethods|metaNameUndo|method\\\\.skeleton|MethodAddCoerce|methodSignatureMatrix|MethodsList|MethodsListSelect|methodsPackageMetaName|missingArg|multipleClasses|new|newBasic|newClassRepresentation|newEmptyObject|Ops|outerLabels|packageSlot|possibleExtends|printClassRepresentation|printPropertiesList|prohibitGeneric|promptClass|promptMethods|prototype|Quote|rbind2??|reconcilePropertiesAndPrototype|refClassFields|refClassInformation|refClassMethods|refClassPrompt|refObjectClass|registerImplicitGenerics|rematchDefinition|removeClass|removeGeneric|removeMethods??|representation|requireMethods|resetClass|resetGeneric|S3Class|S3forS4Methods|S3Part|sealClass|selectMethod|selectSuperClasses|setAs|setCacheOnAssign|setClass|setClassUnion|setDataPart|setGeneric|setGenericImplicit|setGroupGeneric|setIs|setLoadActions??|setMethod|setNames|setOldClass|setPackageName|setPackageSlot|setPrimitiveMethods|setRefClass|setReplaceMethod|setValidity|show|showClass|showClassMethod|showDefault|showExtends|showExtraSlots|showMethods|showRefClassDef|signature|SignatureMethod|sigToEnv|slot|slotNames|slotsFromS3|substituteDirect|substituteFunctionArgs|Summary|superClassDepth|superClassMethodName|tableNames|testInheritedMethods|testVirtual|tryNew|unRematchDefinition|useMTable|validObject|validSlotNames)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.namespace.r"},"2":{"name":"punctuation.accessor.colons.r"},"3":{"name":"support.function.r"},"4":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]},{"begin":"\\\\b(?:(stats)(::))?(acf|acf2AR|add\\\\.scope|add1|add1\\\\.default|add1\\\\.glm|add1\\\\.lm|add1\\\\.mlm|addmargins|aggregate|aggregate\\\\.data\\\\.frame|aggregate\\\\.default|aggregate\\\\.formula|aggregate\\\\.ts|AIC|AIC\\\\.default|AIC\\\\.logLik|alias|alias\\\\.formula|alias\\\\.lm|anova|anova\\\\.glm|anova\\\\.glmlist|anova\\\\.lm|anova\\\\.lmlist|anova\\\\.loess|anova\\\\.mlm|anova\\\\.mlmlist|anova\\\\.nls|anovalist\\\\.nls|ansari\\\\.test|ansari\\\\.test\\\\.default|ansari\\\\.test\\\\.formula|aov|approx|approxfun|ar|ar\\\\.burg|ar\\\\.burg\\\\.default|ar\\\\.burg\\\\.mts|ar\\\\.mle|ar\\\\.ols|ar\\\\.yw|ar\\\\.yw\\\\.default|ar\\\\.yw\\\\.mts|arima|arima\\\\.sim|arima0|arima0\\\\.diag|ARMAacf|ARMAtoMA|as\\\\.data\\\\.frame\\\\.aovproj|as\\\\.data\\\\.frame\\\\.ftable|as\\\\.data\\\\.frame\\\\.logLik|as\\\\.dendrogram|as\\\\.dendrogram\\\\.dendrogram|as\\\\.dendrogram\\\\.hclust|as\\\\.dist|as\\\\.dist\\\\.default|as\\\\.formula|as\\\\.hclust|as\\\\.hclust\\\\.default|as\\\\.hclust\\\\.dendrogram|as\\\\.hclust\\\\.twins|as\\\\.matrix\\\\.dist|as\\\\.matrix\\\\.ftable|as\\\\.stepfun|as\\\\.stepfun\\\\.default|as\\\\.stepfun\\\\.isoreg|as\\\\.table\\\\.ftable|as\\\\.ts|as\\\\.ts\\\\.default|asOneSidedFormula|assert_NULL_or_prob|ave|bandwidth\\\\.kernel|bartlett\\\\.test|bartlett\\\\.test\\\\.default|bartlett\\\\.test\\\\.formula|BIC|BIC\\\\.default|BIC\\\\.logLik|binom\\\\.test|binomial|binomInitialize|biplot|biplot\\\\.default|biplot\\\\.prcomp|biplot\\\\.princomp|Box\\\\.test|bw_pair_cnts|bw\\\\.bcv|bw\\\\.nrd0??|bw\\\\.SJ|bw\\\\.ucv|C|cancor|case\\\\.names|case\\\\.names\\\\.default|case\\\\.names\\\\.lm|cbind\\\\.ts|ccf|check_exact|chisq\\\\.test|cmdscale|coef|coef\\\\.aov|coef\\\\.Arima|coef\\\\.default|coef\\\\.listof|coef\\\\.maov|coef\\\\.nls|coefficients|complete\\\\.cases|confint|confint\\\\.default|confint\\\\.glm|confint\\\\.lm|confint\\\\.nls|confint\\\\.profile\\\\.glm|confint\\\\.profile\\\\.nls|constrOptim|contr\\\\.helmert|contr\\\\.poly|contr\\\\.SAS|contr\\\\.sum|contr\\\\.treatment|contrasts|convolve|cooks\\\\.distance|cooks\\\\.distance\\\\.glm|cooks\\\\.distance\\\\.lm|cophenetic|cophenetic\\\\.default|cophenetic\\\\.dendrogram|cor|cor\\\\.test|cor\\\\.test\\\\.default|cor\\\\.test\\\\.formula|cov|cov\\\\.wt|cov2cor|covratio|cpgram|cut\\\\.dendrogram|cutree|cycle|cycle\\\\.default|cycle\\\\.ts|D|dbeta|dbinom|dcauchy|dchisq|decompose|delete\\\\.response|deltat|deltat\\\\.default|dendrapply|density|density\\\\.default|deparse2|deriv|deriv\\\\.default|deriv\\\\.formula|deriv3|deriv3\\\\.default|deriv3\\\\.formula|deviance|deviance\\\\.default|deviance\\\\.glm|deviance\\\\.lm|deviance\\\\.mlm|deviance\\\\.nls|dexp|df|df\\\\.kernel|df\\\\.residual|df\\\\.residual\\\\.default|df\\\\.residual\\\\.nls|DF2formula|dfbeta|dfbeta\\\\.lm|dfbetas|dfbetas\\\\.lm|dffits|dgamma|dgeom|dhyper|diff\\\\.ts|diffinv|diffinv\\\\.default|diffinv\\\\.ts|diffinv\\\\.vector|dist|dlnorm|dlogis|dmultinom|dnbinom|dnorm|dpois|drop\\\\.scope|drop\\\\.terms|drop1|drop1\\\\.default|drop1\\\\.glm|drop1\\\\.lm|drop1\\\\.mlm|dsignrank|dt|dummy\\\\.coef|dummy\\\\.coef\\\\.aovlist|dummy\\\\.coef\\\\.lm|dunif|dweibull|dwilcox|ecdf|eff\\\\.aovlist|effects|effects\\\\.glm|effects\\\\.lm|embed|end|end\\\\.default|estVar|estVar\\\\.mlm|estVar\\\\.SSD|expand\\\\.model\\\\.frame|extractAIC|extractAIC\\\\.aov|extractAIC\\\\.coxph|extractAIC\\\\.glm|extractAIC\\\\.lm|extractAIC\\\\.negbin|extractAIC\\\\.survreg|factanal|factanal\\\\.fit\\\\.mle|factor\\\\.scope|family|family\\\\.glm|family\\\\.lm|fft|filter|fisher\\\\.test|fitted|fitted\\\\.default|fitted\\\\.isoreg|fitted\\\\.kmeans|fitted\\\\.nls|fitted\\\\.smooth\\\\.spline|fitted\\\\.values|fivenum|fligner\\\\.test|fligner\\\\.test\\\\.default|fligner\\\\.test\\\\.formula|format_perc|format\\\\.dist|format\\\\.ftable|formula|formula\\\\.character|formula\\\\.data\\\\.frame|formula\\\\.default|formula\\\\.formula|formula\\\\.glm|formula\\\\.lm|formula\\\\.nls|formula\\\\.terms|frequency|frequency\\\\.default|friedman\\\\.test|friedman\\\\.test\\\\.default|friedman\\\\.test\\\\.formula|ftable|ftable\\\\.default|ftable\\\\.formula|Gamma|gaussian|get_all_vars|getCall|getCall\\\\.default|getInitial|getInitial\\\\.default|getInitial\\\\.formula|getInitial\\\\.selfStart|glm|glm\\\\.control|glm\\\\.fit|hasTsp|hat|hatvalues|hatvalues\\\\.lm|hatvalues\\\\.smooth\\\\.spline|hclust|head\\\\.ts|heatmap|HL|HoltWinters|hyman_filter|identify\\\\.hclust|influence|influence\\\\.glm|influence\\\\.lm|influence\\\\.measures|integrate|interaction\\\\.plot|inverse\\\\.gaussian|IQR|is\\\\.empty\\\\.model|is\\\\.leaf|is\\\\.mts|is\\\\.stepfun|is\\\\.ts|is\\\\.tskernel|isoreg|KalmanForecast|KalmanLike|KalmanRun|KalmanSmooth|kernapply|kernapply\\\\.default|kernapply\\\\.ts|kernapply\\\\.tskernel|kernapply\\\\.vector|kernel|kmeans|knots|knots\\\\.stepfun|kruskal\\\\.test|kruskal\\\\.test\\\\.default|kruskal\\\\.test\\\\.formula|ks\\\\.test|ks\\\\.test\\\\.default|ks\\\\.test\\\\.formula|ksmooth|labels\\\\.dendrogram|labels\\\\.dist|labels\\\\.lm|labels\\\\.terms|lag|lag\\\\.default|lag\\\\.plot|line|lines\\\\.isoreg|lines\\\\.stepfun|lines\\\\.ts|lm|lm\\\\.fit|lm\\\\.influence|lm\\\\.wfit|loadings|loess|loess\\\\.control|loess\\\\.smooth|logLik|logLik\\\\.Arima|logLik\\\\.glm|logLik\\\\.lm|logLik\\\\.logLik|logLik\\\\.nls|loglin|lowess|ls\\\\.diag|ls\\\\.print|lsfit|mad|mahalanobis|make\\\\.link|make\\\\.tables\\\\.aovproj|make\\\\.tables\\\\.aovprojlist|makeARIMA|makepredictcall|makepredictcall\\\\.default|makepredictcall\\\\.poly|manova|mantelhaen\\\\.test|mauchly\\\\.test|mauchly\\\\.test\\\\.mlm|mauchly\\\\.test\\\\.SSD|mcnemar\\\\.test|median|median\\\\.default|medpolish|merge\\\\.dendrogram|midcache\\\\.dendrogram|model\\\\.extract|model\\\\.frame|model\\\\.frame\\\\.aovlist|model\\\\.frame\\\\.default|model\\\\.frame\\\\.glm|model\\\\.frame\\\\.lm|model\\\\.matrix|model\\\\.matrix\\\\.default|model\\\\.matrix\\\\.lm|model\\\\.offset|model\\\\.response|model\\\\.tables|model\\\\.tables\\\\.aov|model\\\\.tables\\\\.aovlist|model\\\\.weights|monthplot|monthplot\\\\.default|monthplot\\\\.stl|monthplot\\\\.StructTS|monthplot\\\\.ts|mood\\\\.test|mood\\\\.test\\\\.default|mood\\\\.test\\\\.formula|mvfft|na\\\\.action|na\\\\.action\\\\.default|na\\\\.contiguous|na\\\\.contiguous\\\\.default|na\\\\.exclude|na\\\\.exclude\\\\.data\\\\.frame|na\\\\.exclude\\\\.default|na\\\\.fail|na\\\\.fail\\\\.default|na\\\\.omit|na\\\\.omit\\\\.data\\\\.frame|na\\\\.omit\\\\.default|na\\\\.omit\\\\.ts|na\\\\.pass|napredict|napredict\\\\.default|napredict\\\\.exclude|naprint|naprint\\\\.default|naprint\\\\.exclude|naprint\\\\.omit|naresid|naresid\\\\.default|naresid\\\\.exclude|nextn|nleaves|nlm|nlminb|nls|nls_port_fit|nls\\\\.control|nlsModel|nlsModel\\\\.plinear|NLSstAsymptotic|NLSstAsymptotic\\\\.sortedXyData|NLSstClosestX|NLSstClosestX\\\\.sortedXyData|NLSstLfAsymptote|NLSstLfAsymptote\\\\.sortedXyData|NLSstRtAsymptote|NLSstRtAsymptote\\\\.sortedXyData|nobs|nobs\\\\.default|nobs\\\\.dendrogram|nobs\\\\.glm|nobs\\\\.lm|nobs\\\\.logLik|nobs\\\\.nls|numericDeriv|offset|oneway\\\\.test|Ops\\\\.ts|optim|optimHess|optimise|optimize|order\\\\.dendrogram|p\\\\.adjust|pacf|pacf\\\\.default|Pair|pairs\\\\.profile|pairwise\\\\.prop\\\\.test|pairwise\\\\.t\\\\.test|pairwise\\\\.table|pairwise\\\\.wilcox\\\\.test|pbeta|pbinom|pbirthday|pcauchy|pchisq|pexp|pf|pgamma|pgeom|phyper|Pillai|pkolmogorov|pkolmogorov_one_asymp|pkolmogorov_one_exact|pkolmogorov_two_asymp|pkolmogorov_two_exact|plclust|plnorm|plogis|plot\\\\.acf|plot\\\\.decomposed\\\\.ts|plot\\\\.dendrogram|plot\\\\.density|plot\\\\.ecdf|plot\\\\.hclust|plot\\\\.HoltWinters|plot\\\\.isoreg|plot\\\\.lm|plot\\\\.medpolish|plot\\\\.mlm|plot\\\\.ppr|plot\\\\.prcomp|plot\\\\.princomp|plot\\\\.profile|plot\\\\.profile\\\\.nls|plot\\\\.spec|plot\\\\.spec\\\\.coherency|plot\\\\.spec\\\\.phase|plot\\\\.stepfun|plot\\\\.stl|plot\\\\.ts|plot\\\\.tskernel|plot\\\\.TukeyHSD|plotNode|plotNodeLimit|pnbinom|pnorm|pointwise|poisson|poisson\\\\.test|polym??|port_get_named_v|port_msg|power|power\\\\.anova\\\\.test|power\\\\.prop\\\\.test|power\\\\.t\\\\.test|PP\\\\.test|ppoints|ppois|ppr|ppr\\\\.default|ppr\\\\.formula|prcomp|prcomp\\\\.default|prcomp\\\\.formula|predict|predict\\\\.ar|predict\\\\.Arima|predict\\\\.arima0|predict\\\\.glm|predict\\\\.HoltWinters|predict\\\\.lm|predict\\\\.loess|predict\\\\.mlm|predict\\\\.nls|predict\\\\.poly|predict\\\\.ppr|predict\\\\.prcomp|predict\\\\.princomp|predict\\\\.smooth\\\\.spline|predict\\\\.smooth\\\\.spline\\\\.fit|predict\\\\.StructTS|predLoess|preplot|princomp|princomp\\\\.default|princomp\\\\.formula|print\\\\.acf|print\\\\.anova|print\\\\.aov|print\\\\.aovlist|print\\\\.ar|print\\\\.Arima|print\\\\.arima0|print\\\\.dendrogram|print\\\\.density|print\\\\.dist|print\\\\.dummy_coef|print\\\\.dummy_coef_list|print\\\\.ecdf|print\\\\.factanal|print\\\\.family|print\\\\.formula|print\\\\.ftable|print\\\\.glm|print\\\\.hclust|print\\\\.HoltWinters|print\\\\.htest|print\\\\.infl|print\\\\.integrate|print\\\\.isoreg|print\\\\.kmeans|print\\\\.lm|print\\\\.loadings|print\\\\.loess|print\\\\.logLik|print\\\\.medpolish|print\\\\.mtable|print\\\\.nls|print\\\\.pairwise\\\\.htest|print\\\\.power\\\\.htest|print\\\\.ppr|print\\\\.prcomp|print\\\\.princomp|print\\\\.smooth\\\\.spline|print\\\\.stepfun|print\\\\.stl|print\\\\.StructTS|print\\\\.summary\\\\.aov|print\\\\.summary\\\\.aovlist|print\\\\.summary\\\\.ecdf|print\\\\.summary\\\\.glm|print\\\\.summary\\\\.lm|print\\\\.summary\\\\.loess|print\\\\.summary\\\\.manova|print\\\\.summary\\\\.nls|print\\\\.summary\\\\.ppr|print\\\\.summary\\\\.prcomp|print\\\\.summary\\\\.princomp|print\\\\.tables_aov|print\\\\.terms|print\\\\.ts|print\\\\.tskernel|print\\\\.TukeyHSD|print\\\\.tukeyline|print\\\\.tukeysmooth|print\\\\.xtabs|printCoefmat|profile|profile\\\\.glm|profile\\\\.nls|profiler|profiler\\\\.nls|proj|Proj|proj\\\\.aov|proj\\\\.aovlist|proj\\\\.default|proj\\\\.lm|promax|prop\\\\.test|prop\\\\.trend\\\\.test|psignrank|psmirnov|psmirnov_asymp|psmirnov_exact|psmirnov_simul|pt|ptukey|punif|pweibull|pwilcox|qbeta|qbinom|qbirthday|qcauchy|qchisq|qexp|qf|qgamma|qgeom|qhyper|qlnorm|qlogis|qnbinom|qnorm|qpois|qqline|qqnorm|qqnorm\\\\.default|qqplot|qr\\\\.influence|qr\\\\.lm|qsignrank|qsmirnov|qt|qtukey|quade\\\\.test|quade\\\\.test\\\\.default|quade\\\\.test\\\\.formula|quantile|quantile\\\\.default|quantile\\\\.ecdf|quantile\\\\.POSIXt|quasi|quasibinomial|quasipoisson|qunif|qweibull|qwilcox|r2dtable|Rank|rbeta|rbinom|rcauchy|rchisq|read\\\\.ftable|rect\\\\.hclust|reformulate|regularize\\\\.values|relevel|relevel\\\\.default|relevel\\\\.factor|relevel\\\\.ordered|reorder|reorder\\\\.default|reorder\\\\.dendrogram|replications|reshape|resid|residuals|residuals\\\\.default|residuals\\\\.glm|residuals\\\\.HoltWinters|residuals\\\\.isoreg|residuals\\\\.lm|residuals\\\\.nls|residuals\\\\.smooth\\\\.spline|residuals\\\\.tukeyline|rev\\\\.dendrogram|rexp|rf|rgamma|rgeom|rhyper|rlnorm|rlogis|rmultinom|rnbinom|rnorm|Roy|rpois|rsignrank|rsmirnov|rstandard|rstandard\\\\.glm|rstandard\\\\.lm|rstudent|rstudent\\\\.glm|rstudent\\\\.lm|rt|runif|runmed|rweibull|rwilcox|rWishart|safe_pchisq|safe_pf|scatter\\\\.smooth|screeplot|screeplot\\\\.default|sd|se\\\\.aov|se\\\\.aovlist|se\\\\.contrast|se\\\\.contrast\\\\.aov|se\\\\.contrast\\\\.aovlist|selfStart|selfStart\\\\.default|selfStart\\\\.formula|setNames|shapiro\\\\.test|sigma|sigma\\\\.default|sigma\\\\.glm|sigma\\\\.mlm|simpleLoess|simulate|simulate\\\\.lm|smooth|smooth\\\\.spline|smoothEnds|sortedXyData|sortedXyData\\\\.default|spec\\\\.ar|spec\\\\.pgram|spec\\\\.taper|spectrum|sphericity|spl_coef_conv|spline|splinefunH??|splinefunH0|SSasymp|SSasympOff|SSasympOrig|SSbiexp|SSD|SSD\\\\.mlm|SSfol|SSfpl|SSgompertz|SSlogis|SSmicmen|SSweibull|start|start\\\\.default|stat\\\\.anova|step|stepfun|stl|str\\\\.dendrogram|str\\\\.logLik|StructTS|summary\\\\.aov|summary\\\\.aovlist|summary\\\\.ecdf|summary\\\\.glm|summary\\\\.infl|summary\\\\.lm|summary\\\\.loess|summary\\\\.manova|summary\\\\.mlm|summary\\\\.nls|summary\\\\.ppr|summary\\\\.prcomp|summary\\\\.princomp|summary\\\\.stepfun|summary\\\\.stl|summary\\\\.tukeysmooth|supsmu|symnum|t\\\\.test|t\\\\.test\\\\.default|t\\\\.test\\\\.formula|t\\\\.ts|tail\\\\.ts|termplot|terms|terms\\\\.aovlist|terms\\\\.default|terms\\\\.formula|terms\\\\.terms|Thin\\\\.col|Thin\\\\.row|time|time\\\\.default|time\\\\.ts|toeplitz2??|Tr|ts|ts\\\\.intersect|ts\\\\.plot|ts\\\\.union|tsdiag|tsdiag\\\\.Arima|tsdiag\\\\.arima0|tsdiag\\\\.StructTS|tsp|tsSmooth|tsSmooth\\\\.StructTS|TukeyHSD|TukeyHSD\\\\.aov|uniroot|update|update\\\\.default|update\\\\.formula|update\\\\.packageStatus|var|var\\\\.test|var\\\\.test\\\\.default|var\\\\.test\\\\.formula|variable\\\\.names|variable\\\\.names\\\\.default|variable\\\\.names\\\\.lm|varimax|vcov|vcov\\\\.aov|vcov\\\\.Arima|vcov\\\\.glm|vcov\\\\.lm|vcov\\\\.mlm|vcov\\\\.nls|vcov\\\\.summary\\\\.glm|vcov\\\\.summary\\\\.lm|weighted\\\\.mean|weighted\\\\.mean\\\\.Date|weighted\\\\.mean\\\\.default|weighted\\\\.mean\\\\.difftime|weighted\\\\.mean\\\\.POSIXct|weighted\\\\.mean\\\\.POSIXlt|weighted\\\\.residuals|weights|weights\\\\.default|weights\\\\.glm|weights\\\\.nls|wilcox\\\\.test|wilcox\\\\.test\\\\.default|wilcox\\\\.test\\\\.formula|Wilks|window|window\\\\.default|window\\\\.ts|write\\\\.ftable|xtabs)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.namespace.r"},"2":{"name":"punctuation.accessor.colons.r"},"3":{"name":"support.function.r"},"4":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]},{"begin":"\\\\b(?:(utils)(::))?(adist|alarm|apropos|aregexec|argNames|argsAnywhere|as\\\\.bibentry|as\\\\.bibentry\\\\.bibentry|as\\\\.bibentry\\\\.citation|as\\\\.character\\\\.person|as\\\\.character\\\\.roman|as\\\\.data\\\\.frame\\\\.bibentry|as\\\\.data\\\\.frame\\\\.citation|as\\\\.data\\\\.frame\\\\.person|as\\\\.environment\\\\.hashtab|as\\\\.person|as\\\\.person\\\\.default|as\\\\.personList|as\\\\.personList\\\\.default|as\\\\.personList\\\\.person|as\\\\.relistable|as\\\\.roman|asDateBuilt|askYesNo|aspell|aspell_filter_LaTeX_commands_from_Aspell_tex_filter_info|aspell_filter_LaTeX_worker|aspell_find_dictionaries|aspell_find_program|aspell_inspect_context|aspell_package|aspell_package_C_files|aspell_package_description|aspell_package_pot_files|aspell_package_R_files|aspell_package_Rd_files|aspell_package_vignettes|aspell_query_wiktionary_categories|aspell_R_C_files|aspell_R_manuals|aspell_R_R_files|aspell_R_Rd_files|aspell_R_vignettes|aspell_update_dictionary|aspell_write_personal_dictionary_file|assignInMyNamespace|assignInNamespace|attachedPackageCompletions|available\\\\.packages|bibentry|blank_out_character_ranges|blank_out_ignores_in_lines|blank_out_regexp_matches|browseEnv|browseURL|browseVignettes|bug\\\\.report|bug\\\\.report\\\\.info|c\\\\.bibentry|c\\\\.person|capture\\\\.output|changedFiles|charClass|check_for_XQuartz|check_screen_device|checkCRAN|checkHT|chooseBioCmirror|chooseCRANmirror|citation|cite|citeNatbib|citEntry|citFooter|citHeader|close\\\\.socket|close\\\\.txtProgressBar|clrhash|combn|compareVersion|conformToProto|contrib\\\\.url|correctFilenameToken|count\\\\.fields|create\\\\.post|data|data\\\\.entry|dataentry|de|de\\\\.ncols|de\\\\.restore|de\\\\.setup|debugcall|debugger|defaultUserAgent|demo|download\\\\.file|download\\\\.packages|dump\\\\.frames|edit|edit\\\\.data\\\\.frame|edit\\\\.default|edit\\\\.matrix|edit\\\\.vignette|emacs|example|expr2token|file_test|file\\\\.edit|fileCompletionPreferred|fileCompletions|fileSnapshot|filter_packages_by_depends_predicates|find|find_files_in_directories|findCRANmirror|findExactMatches|findFuzzyMatches|findGeneric|findLineNum|findMatches|fix|fixInNamespace|flush\\\\.console|fnLineNum|format\\\\.aspell|format\\\\.aspell_inspect_context|format\\\\.bibentry|format\\\\.citation|format\\\\.hashtab|format\\\\.MethodsFunction|format\\\\.news_db|format\\\\.object_size|format\\\\.person|format\\\\.roman|formatOL|formatUL|functionArgs|fuzzyApropos|get_parse_data_for_message_strings|getAnywhere|getCRANmirrors|getDependencies|getFromNamespace|gethash|getIsFirstArg|getKnownS3generics|getParseData|getParseText|getRcode|getRcode\\\\.vignette|getS3method|getSrcByte|getSrcDirectory|getSrcfile|getSrcFilename|getSrcLocation|getSrcref|getTxtProgressBar|glob2rx|globalVariables|hashtab|hasName|head|head\\\\.array|head\\\\.default|head\\\\.ftable|head\\\\.function|head\\\\.matrix|help|help\\\\.request|help\\\\.search|help\\\\.start|helpCompletions|history|hsearch_db|hsearch_db_concepts|hsearch_db_keywords|index\\\\.search|inFunction|install\\\\.packages|installed\\\\.packages|is\\\\.hashtab|is\\\\.relistable|isBasePkg|isInsideQuotes|isS3method|isS3stdGeneric|keywordCompletions|length\\\\.hashtab|limitedLabels|loadedPackageCompletions|loadhistory|localeToCharset|ls\\\\.str|lsf\\\\.str|macDynLoads|maintainer|make_sysdata_rda|make\\\\.packages\\\\.html|make\\\\.socket|makeRegexpSafe|makeRweaveLatexCodeRunner|makeUserAgent|maphash|matchAvailableTopics|memory\\\\.limit|memory\\\\.size|menu|merge_demo_index|merge_vignette_index|methods|mirror2html|modifyList|new\\\\.packages|news|normalCompletions|nsl|numhash|object\\\\.size|offline_help_helper|old\\\\.packages|Ops\\\\.roman|package\\\\.skeleton|packageDate|packageDescription|packageName|packageStatus|packageVersion|page|person|personList|pico|print\\\\.aspell|print\\\\.aspell_inspect_context|print\\\\.bibentry|print\\\\.Bibtex|print\\\\.browseVignettes|print\\\\.changedFiles|print\\\\.citation|print\\\\.fileSnapshot|print\\\\.findLineNumResult|print\\\\.getAnywhere|print\\\\.hashtab|print\\\\.help_files_with_topic|print\\\\.hsearch|print\\\\.hsearch_db|print\\\\.Latex|print\\\\.ls_str|print\\\\.MethodsFunction|print\\\\.news_db|print\\\\.object_size|print\\\\.packageDescription|print\\\\.packageIQR|print\\\\.packageStatus|print\\\\.person|print\\\\.roman|print\\\\.sessionInfo|print\\\\.socket|print\\\\.summary\\\\.packageStatus|print\\\\.vignette|printhsearchInternal|process\\\\.events|prompt|prompt\\\\.data\\\\.frame|prompt\\\\.default|promptData|promptImport|promptPackage|rc\\\\.getOption|rc\\\\.options|rc\\\\.settings|rc\\\\.status|read\\\\.csv2??|read\\\\.delim2??|read\\\\.DIF|read\\\\.fortran|read\\\\.fwf|read\\\\.socket|read\\\\.table|readCitationFile|recover|registerNames|regquote|relist|relist\\\\.default|relist\\\\.factor|relist\\\\.list|relist\\\\.matrix|remhash|remove\\\\.packages|removeSource|rep\\\\.bibentry|rep\\\\.person|rep\\\\.roman|resolvePkgType|Rprof|Rprof_memory_summary|Rprofmem|RShowDoc|RSiteSearch|rtags|rtags\\\\.file|Rtangle|RtangleFinish|RtangleRuncode|RtangleSetup|RtangleWritedoc|RweaveChunkPrefix|RweaveEvalWithOpt|RweaveLatex|RweaveLatexFinish|RweaveLatexOptions|RweaveLatexRuncode|RweaveLatexSetup|RweaveLatexWritedoc|RweaveTryStop|savehistory|select\\\\.list|sessionInfo|setBreakpoint|sethash|setIsFirstArg|setRepositories|setTxtProgressBar|shorten\\\\.to\\\\.string|simplifyRepos|sort\\\\.bibentry|specialCompletions|specialFunctionArgs|specialOpCompletionsHelper|specialOpLocs|stack|stack\\\\.data\\\\.frame|stack\\\\.default|Stangle|str|str\\\\.data\\\\.frame|str\\\\.Date|str\\\\.default|str\\\\.hashtab|str\\\\.POSIXt|str2logical|strcapture|strextract|strOptions|strslice|subset\\\\.news_db|substr_with_tabs|summary\\\\.aspell|summary\\\\.packageStatus|Summary\\\\.roman|summaryRprof|suppressForeignCheck|Sweave|SweaveGetSyntax|SweaveHooks|SweaveParseOptions|SweaveReadFile|SweaveSyntConv|tail|tail\\\\.array|tail\\\\.default|tail\\\\.ftable|tail\\\\.function|tail\\\\.matrix|tar|timestamp|toBibtex|toBibtex\\\\.bibentry|toBibtex\\\\.person|toLatex|toLatex\\\\.sessionInfo|toLatexPDlist|topicName|transform\\\\.bibentry|txtProgressBar|type\\\\.convert|type\\\\.convert\\\\.data\\\\.frame|type\\\\.convert\\\\.default|type\\\\.convert\\\\.list|typhash|undebugcall|unique\\\\.bibentry|unique\\\\.person|unlist\\\\.relistable|unstack|unstack\\\\.data\\\\.frame|unstack\\\\.default|untar2??|unzip|update\\\\.packages|update\\\\.packageStatus|upgrade|upgrade\\\\.packageStatus|url\\\\.show|URLdecode|URLencode|vi|View|vignette|warnErrList|write\\\\.csv2??|write\\\\.ctags|write\\\\.etags|write\\\\.socket|write\\\\.table|wsbrowser|xedit|xemacs|zip)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.namespace.r"},"2":{"name":"punctuation.accessor.colons.r"},"3":{"name":"support.function.r"},"4":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]}]},"comments":{"patterns":[{"captures":{"1":{"name":"comment.line.pragma.r"},"2":{"name":"entity.name.pragma.name.r"}},"match":"^(#pragma[\\\\t ]+mark)[\\\\t ](.*)","name":"comment.line.pragma-mark.r"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.r"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.r"}},"end":"\\\\n","name":"comment.line.number-sign.r"}]}]},"constants":{"patterns":[{"match":"\\\\b(pi|letters|LETTERS|month\\\\.abb|month\\\\.name)\\\\b","name":"support.constant.misc.r"},{"match":"\\\\b(TRUE|FALSE|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_|Inf|NaN)\\\\b","name":"constant.language.r"},{"match":"\\\\b0([Xx])\\\\h+i\\\\b","name":"constant.numeric.imaginary.hexadecimal.r"},{"match":"\\\\b[0-9]+\\\\.?[0-9]*(?:([Ee])([-+])?[0-9]+)?i\\\\b","name":"constant.numeric.imaginary.decimal.r"},{"match":"\\\\.[0-9]+(?:([Ee])([-+])?[0-9]+)?i\\\\b","name":"constant.numeric.imaginary.decimal.r"},{"match":"\\\\b0([Xx])\\\\h+L\\\\b","name":"constant.numeric.integer.hexadecimal.r"},{"match":"\\\\b[0-9]+\\\\.?[0-9]*(?:([Ee])([-+])?[0-9]+)?L\\\\b","name":"constant.numeric.integer.decimal.r"},{"match":"\\\\b0([Xx])\\\\h+\\\\b","name":"constant.numeric.float.hexadecimal.r"},{"match":"\\\\b[0-9]+\\\\.?[0-9]*(?:([Ee])([-+])?[0-9]+)?\\\\b","name":"constant.numeric.float.decimal.r"},{"match":"\\\\.[0-9]+(?:([Ee])([-+])?[0-9]+)?\\\\b","name":"constant.numeric.float.decimal.r"}]},"function-call-arguments":{"patterns":[{"match":"(?:[.A-Z_a-z][.\\\\w]*|`[^`]+`)(?=\\\\s*=[^=])","name":"variable.parameter.function-call.r"},{"begin":"(?==)","end":"(?=[),])","patterns":[{"include":"source.r"}]},{"match":",","name":"punctuation.separator.parameters.r"},{"include":"source.r"}]},"function-calls":{"begin":"(?:[.A-Z_a-z][.\\\\w]*|`[^`]+`)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]},"function-declarations":{"patterns":[{"begin":"([.A-Z_a-z][.\\\\w]*|`[^`]+`)\\\\s*(<?<-|=(?!=))\\\\s*\\\\b(function)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.r"},"2":{"name":"keyword.operator.assignment.r"},"3":{"name":"keyword.control.r"},"4":{"name":"punctuation.definition.parameters.begin.r"}},"contentName":"meta.function.parameters.r","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.r"}},"name":"meta.function.r","patterns":[{"include":"#comments"},{"match":"[.A-Z_a-z][.\\\\w]*|`[^`]+`","name":"variable.parameter.function.language.r"},{"begin":"(?==)","end":"(?=[),])","patterns":[{"include":"source.r"}]},{"match":",","name":"punctuation.separator.parameters.r"}]}]},"keywords":{"patterns":[{"match":"\\\\bif\\\\b(?=\\\\s*\\\\()","name":"keyword.control.conditional.if.r"},{"match":"\\\\belse\\\\b","name":"keyword.control.conditional.else.r"},{"match":"\\\\bbreak\\\\b","name":"keyword.control.flow.break.r"},{"match":"\\\\bnext\\\\b","name":"keyword.control.flow.continue.r"},{"match":"\\\\breturn(?=\\\\s*\\\\()","name":"keyword.control.flow.return.r"},{"match":"\\\\brepeat\\\\b","name":"keyword.control.loop.repeat.r"},{"match":"\\\\bfor\\\\b(?=\\\\s*\\\\()","name":"keyword.control.loop.for.r"},{"match":"\\\\bwhile\\\\b(?=\\\\s*\\\\()","name":"keyword.control.loop.while.r"},{"match":"\\\\bin\\\\b","name":"keyword.operator.word.r"}]},"lambda-functions":{"patterns":[{"begin":"\\\\b(function)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.r"},"2":{"name":"punctuation.definition.parameters.begin.r"}},"contentName":"meta.function.parameters.r","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.r"}},"name":"meta.function.r","patterns":[{"include":"#comments"},{"match":"[.A-Z_a-z][.\\\\w]*|`[^`]+`","name":"variable.parameter.function.language.r"},{"begin":"(?==)","end":"(?=[),])","patterns":[{"include":"source.r"}]},{"match":",","name":"punctuation.separator.parameters.r"}]}]},"operators":{"patterns":[{"match":"%[*/ox]%","name":"keyword.operator.arithmetic.r"},{"match":"(<<-|->>)","name":"keyword.operator.assignment.r"},{"match":"%(between|chin|do|dopar|in|like|\\\\+replace|[+:]|T>|<>|[$>])%","name":"keyword.operator.other.r"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.other.r"},{"match":":::?","name":"punctuation.accessor.colons.r"},{"match":"(%%|\\\\*\\\\*)","name":"keyword.operator.arithmetic.r"},{"match":"(<-|->)","name":"keyword.operator.assignment.r"},{"match":"\\\\|>","name":"keyword.operator.pipe.r"},{"match":"(==|!=|<>|<=?|>=?)","name":"keyword.operator.comparison.r"},{"match":"(&&?|\\\\|\\\\|?)","name":"keyword.operator.logical.r"},{"match":":=","name":"keyword.operator.other.r"},{"match":"[-*+/^]","name":"keyword.operator.arithmetic.r"},{"match":"=","name":"keyword.operator.assignment.r"},{"match":"!","name":"keyword.operator.logical.r"},{"match":"[:@~]","name":"keyword.other.r"},{"match":";","name":"punctuation.terminator.semicolon.r"}]},"roxygen":{"patterns":[{"begin":"^\\\\s*(#\')\\\\s*","beginCaptures":{"1":{"name":"punctuation.definition.comment.r"}},"end":"$\\\\n?","name":"comment.line.roxygen.r","patterns":[{"captures":{"1":{"name":"keyword.other.r"},"2":{"name":"variable.parameter.r"}},"match":"(@param)\\\\s*([.A-Z_a-z][.\\\\w]*|`[^`]+`)"},{"match":"@[0-9A-Za-z]+","name":"keyword.other.r"}]}]},"storage-type":{"patterns":[{"begin":"\\\\b(character|complex|double|expression|integer|list|logical|numeric|single|raw|pairlist)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.r"},"2":{"name":"punctuation.definition.arguments.begin.r"}},"contentName":"meta.function-call.arguments.r","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.r"}},"name":"meta.function-call.r","patterns":[{"include":"#function-call-arguments"}]}]},"strings":{"patterns":[{"begin":"[Rr]\\"(-*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.raw.begin.r"}},"end":"]\\\\1\\"","endCaptures":{"0":{"name":"punctuation.definition.string.raw.end.r"}},"name":"string.quoted.double.raw.r"},{"begin":"[Rr]\'(-*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.raw.begin.r"}},"end":"]\\\\1\'","endCaptures":{"0":{"name":"punctuation.definition.string.raw.end.r"}},"name":"string.quoted.single.raw.r"},{"begin":"[Rr]\\"(-*)\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.raw.begin.r"}},"end":"}\\\\1\\"","endCaptures":{"0":{"name":"punctuation.definition.string.raw.end.r"}},"name":"string.quoted.double.raw.r"},{"begin":"[Rr]\'(-*)\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.raw.begin.r"}},"end":"}\\\\1\'","endCaptures":{"0":{"name":"punctuation.definition.string.raw.end.r"}},"name":"string.quoted.single.raw.r"},{"begin":"[Rr]\\"(-*)\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.raw.begin.r"}},"end":"\\\\)\\\\1\\"","endCaptures":{"0":{"name":"punctuation.definition.string.raw.end.r"}},"name":"string.quoted.double.raw.r"},{"begin":"[Rr]\'(-*)\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.raw.begin.r"}},"end":"\\\\)\\\\1\'","endCaptures":{"0":{"name":"punctuation.definition.string.raw.end.r"}},"name":"string.quoted.single.raw.r"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.r"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.r"}},"name":"string.quoted.double.r","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.r"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.r"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.r"}},"name":"string.quoted.single.r","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.r"}]}]}},"scopeName":"source.r"}'))];export{e as t}; diff --git a/docs/assets/r-D6Z0BB-w.js b/docs/assets/r-D6Z0BB-w.js new file mode 100644 index 0000000..da04ac1 --- /dev/null +++ b/docs/assets/r-D6Z0BB-w.js @@ -0,0 +1 @@ +import{t}from"./r-CpeNqXZC.js";export{t as default}; diff --git a/docs/assets/r-Dc7847Lm.js b/docs/assets/r-Dc7847Lm.js new file mode 100644 index 0000000..ac67b4a --- /dev/null +++ b/docs/assets/r-Dc7847Lm.js @@ -0,0 +1 @@ +import{t as r}from"./r-BuEncdBJ.js";export{r}; diff --git a/docs/assets/racket-ZMtNHQDx.js b/docs/assets/racket-ZMtNHQDx.js new file mode 100644 index 0000000..20bff3b --- /dev/null +++ b/docs/assets/racket-ZMtNHQDx.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Racket","name":"racket","patterns":[{"include":"#comment"},{"include":"#not-atom"},{"include":"#atom"},{"include":"#quote"},{"match":"^#lang","name":"keyword.other.racket"}],"repository":{"args":{"patterns":[{"include":"#keyword"},{"include":"#comment"},{"include":"#default-args"},{"match":"[^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*","name":"variable.parameter.racket"}]},"argument":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(\\\\|)","beginCaptures":{"1":{"name":"punctuation.verbatim.begin.racket"}},"contentName":"variable.parameter.racket","end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"}},{"begin":"(?<=[(\\\\[{])\\\\s*(#%|\\\\\\\\ |[^]\\"#'(),;\\\\[\`{}\\\\s])","beginCaptures":{"1":{"name":"variable.parameter.racket"}},"contentName":"variable.parameter.racket","end":"(?=[]\\"'(),;\\\\[\`{}\\\\s])","patterns":[{"match":"\\\\\\\\ "},{"begin":"\\\\|","beginCaptures":{"0":"punctuation.verbatim.begin.racket"},"end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"}}]}]},"argument-struct":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(\\\\|)","beginCaptures":{"1":{"name":"punctuation.verbatim.begin.racket"}},"contentName":"variable.other.member.racket","end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"}},{"begin":"(?<=[(\\\\[{])\\\\s*(#%|\\\\\\\\ |[^]\\"#'(),;\\\\[\`{}\\\\s])","beginCaptures":{"1":{"name":"variable.other.member.racket"}},"contentName":"variable.other.member.racket","end":"(?=[]\\"'(),;\\\\[\`{}\\\\s])","patterns":[{"match":"\\\\\\\\ "},{"begin":"\\\\|","beginCaptures":{"0":"punctuation.verbatim.begin.racket"},"end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"}}]}]},"atom":{"patterns":[{"include":"#bool"},{"include":"#number"},{"include":"#string"},{"include":"#keyword"},{"include":"#character"},{"include":"#symbol"},{"include":"#variable"}]},"base-string":{"patterns":[{"begin":"\\"","beginCaptures":{"0":[{"name":"punctuation.definition.string.begin.racket"}]},"end":"\\"","endCaptures":{"0":[{"name":"punctuation.definition.string.end.racket"}]},"name":"string.quoted.double.racket","patterns":[{"include":"#escape-char"}]}]},"binding":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(\\\\|)","beginCaptures":{"1":{"name":"punctuation.verbatim.begin.racket"}},"contentName":"entity.name.constant","end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"}},{"begin":"(?<=[(\\\\[{])\\\\s*(#%|\\\\\\\\ |[^]\\"#'(),;\\\\[\`{}\\\\s])","beginCaptures":{"1":{"name":"entity.name.constant"}},"contentName":"entity.name.constant","end":"(?=[]\\"'(),;\\\\[\`{}\\\\s])","patterns":[{"match":"\\\\\\\\ "},{"begin":"\\\\|","beginCaptures":{"0":"punctuation.verbatim.begin.racket"},"end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"}}]}]},"bool":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])#(?:[Tt](?:rue)?|[Ff](?:alse)?)(?=[]\\"'(),;\\\\[\`{}\\\\s])","name":"constant.language.racket"}]},"builtin-functions":{"patterns":[{"include":"#format"},{"include":"#define"},{"include":"#lambda"},{"include":"#struct"},{"captures":{"1":{"name":"support.function.racket"}},"match":"(?<=$|[]\\"'(),;\\\\[\`{}\\\\s])(\\\\.\\\\.\\\\.|_|syntax-id-rules|syntax-rules|#%app|#%datum|#%declare|#%expression|#%module-begin|#%plain-app|#%plain-lambda|#%plain-module-begin|#%printing-module-begin|#%provide|#%require|#%stratified-body|#%top|#%top-interaction|#%variable-reference|\\\\.\\\\.\\\\.|:do-in|=>|_|all-defined-out|all-from-out|and|apply|arity-at-least|begin|begin-for-syntax|begin0|call-with-input-file\\\\*??|call-with-output-file\\\\*??|case|case-lambda|combine-in|combine-out|cond|date\\\\*??|define|define-for-syntax|define-logger|define-namespace-anchor|define-sequence-syntax|define-struct|define-struct/derived|define-syntax|define-syntax-rule|define-syntaxes|define-values|define-values-for-syntax|do|else|except-in|except-out|exn|exn:break|exn:break:hang-up|exn:break:terminate|exn:fail|exn:fail:contract|exn:fail:contract:arity|exn:fail:contract:continuation|exn:fail:contract:divide-by-zero|exn:fail:contract:non-fixnum-result|exn:fail:contract:variable|exn:fail:filesystem|exn:fail:filesystem:errno|exn:fail:filesystem:exists|exn:fail:filesystem:missing-module|exn:fail:filesystem:version|exn:fail:network|exn:fail:network:errno|exn:fail:out-of-memory|exn:fail:read|exn:fail:read:eof|exn:fail:read:non-char|exn:fail:syntax|exn:fail:syntax:missing-module|exn:fail:syntax:unbound|exn:fail:unsupported|exn:fail:user|file|for\\\\*??|for\\\\*/and|for\\\\*/first|for\\\\*/fold|for\\\\*/fold/derived|for\\\\*/hash|for\\\\*/hasheqv??|for\\\\*/last|for\\\\*/lists??|for\\\\*/or|for\\\\*/product|for\\\\*/sum|for\\\\*/vector|for-label|for-meta|for-syntax|for-template|for/and|for/first|for/fold|for/fold/derived|for/hash|for/hasheqv??|for/last|for/lists??|for/or|for/product|for/sum|for/vector|gen:custom-write|gen:equal\\\\+hash|if|in-bytes|in-bytes-lines|in-directory|in-hash|in-hash-keys|in-hash-pairs|in-hash-values|in-immutable-hash|in-immutable-hash-keys|in-immutable-hash-pairs|in-immutable-hash-values|in-indexed|in-input-port-bytes|in-input-port-chars|in-lines|in-list|in-mlist|in-mutable-hash|in-mutable-hash-keys|in-mutable-hash-pairs|in-mutable-hash-values|in-naturals|in-port|in-producer|in-range|in-string|in-value|in-vector|in-weak-hash|in-weak-hash-keys|in-weak-hash-pairs|in-weak-hash-values|lambda|let\\\\*??|let\\\\*-values|let-syntax|let-syntaxes|let-values|let/cc|let/ec|letrec|letrec-syntax|letrec-syntaxes|letrec-syntaxes\\\\+values|letrec-values|lib|local-require|log-debug|log-error|log-fatal|log-info|log-warning|module\\\\*??|module\\\\+|only-in|only-meta-in|open-input-file|open-input-output-file|open-output-file|or|parameterize\\\\*??|parameterize-break|planet|prefix-in|prefix-out|protect-out|provide|quasiquote|quasisyntax|quasisyntax/loc|quote|quote-syntax|quote-syntax/prune|regexp-match\\\\*|regexp-match-peek-positions\\\\*|regexp-match-positions\\\\*|relative-in|rename-in|rename-out|require|set!|set!-values|sort|srcloc|struct|struct-copy|struct-field-index|struct-out|submod|syntax|syntax-case\\\\*??|syntax-id-rules|syntax-rules|syntax/loc|time|unless|unquote|unquote-splicing|unsyntax|unsyntax-splicing|when|with-continuation-mark|with-handlers\\\\*??|with-input-from-file|with-output-to-file|with-syntax|\u03BB|#%app|#%datum|#%declare|#%expression|#%module-begin|#%plain-app|#%plain-lambda|#%plain-module-begin|#%printing-module-begin|#%provide|#%require|#%stratified-body|#%top|#%top-interaction|#%variable-reference|->\\\\*??|->\\\\*m|->dm??|->i|->m|\\\\.\\\\.\\\\.|:do-in|<=/c|=/c|==|=>|>=/c|_|absent|abstract|add-between|all-defined-out|all-from-out|and|and/c|any|any/c|apply|arity-at-least|arrow-contract-info|augment\\\\*??|augment-final\\\\*??|augride\\\\*??|bad-number-of-results|begin|begin-for-syntax|begin0|between/c|blame-add-context|box-immutable/c|box/c|call-with-atomic-output-file|call-with-file-lock/timeout|call-with-input-file\\\\*??|call-with-output-file\\\\*??|case|case->m??|case-lambda|channel/c|char-in/c|check-duplicates|class\\\\*??|class-field-accessor|class-field-mutator|class/c|class/derived|combine-in|combine-out|command-line|compound-unit|compound-unit/infer|cond|cons/c|cons/dc|continuation-mark-key/c|contract|contract-exercise|contract-out|contract-struct|contracted|copy-directory/files|current-contract-region|date\\\\*??|define|define-compound-unit|define-compound-unit/infer|define-contract-struct|define-custom-hash-types|define-custom-set-types|define-for-syntax|define-local-member-name|define-logger|define-match-expander|define-member-name|define-module-boundary-contract|define-namespace-anchor|define-opt/c|define-sequence-syntax|define-serializable-class\\\\*??|define-signature|define-signature-form|define-struct|define-struct/contract|define-struct/derived|define-syntax|define-syntax-rule|define-syntaxes|define-unit|define-unit-binding|define-unit-from-context|define-unit/contract|define-unit/new-import-export|define-unit/s|define-values|define-values-for-export|define-values-for-syntax|define-values/invoke-unit|define-values/invoke-unit/infer|define/augment|define/augment-final|define/augride|define/contract|define/final-prop|define/match|define/overment|define/override|define/override-final|define/private|define/public|define/public-final|define/pubment|define/subexpression-pos-prop|define/subexpression-pos-prop/name|delay|delay/idle|delay/name|delay/strict|delay/sync|delay/thread|delete-directory/files|dict->list|dict-can-functional-set\\\\?|dict-can-remove-keys\\\\?|dict-clear!??|dict-copy|dict-count|dict-empty\\\\?|dict-for-each|dict-has-key\\\\?|dict-implements/c|dict-implements\\\\?|dict-iterate-first|dict-iterate-key|dict-iterate-next|dict-iterate-value|dict-keys|dict-map|dict-mutable\\\\?|dict-ref!??|dict-remove!??|dict-set!??|dict-set\\\\*!??|dict-update!??|dict-values|dict\\\\?|display-lines|display-lines-to-file|display-to-file|do|dynamic->\\\\*|dynamic-place\\\\*??|else|eof-evt|except|except-in|except-out|exn|exn:break|exn:break:hang-up|exn:break:terminate|exn:fail|exn:fail:contract|exn:fail:contract:arity|exn:fail:contract:blame|exn:fail:contract:continuation|exn:fail:contract:divide-by-zero|exn:fail:contract:non-fixnum-result|exn:fail:contract:variable|exn:fail:filesystem|exn:fail:filesystem:errno|exn:fail:filesystem:exists|exn:fail:filesystem:missing-module|exn:fail:filesystem:version|exn:fail:network|exn:fail:network:errno|exn:fail:object|exn:fail:out-of-memory|exn:fail:read|exn:fail:read:eof|exn:fail:read:non-char|exn:fail:syntax|exn:fail:syntax:missing-module|exn:fail:syntax:unbound|exn:fail:unsupported|exn:fail:user|export|extends|failure-cont|field|field-bound\\\\?|file|file->bytes|file->bytes-lines|file->lines|file->list|file->string|file->value|find-files|find-relative-path|first-or/c|flat-contract-with-explanation|flat-murec-contract|flat-rec-contract|for\\\\*??|for\\\\*/and|for\\\\*/async|for\\\\*/first|for\\\\*/fold|for\\\\*/fold/derived|for\\\\*/hash|for\\\\*/hasheqv??|for\\\\*/last|for\\\\*/lists??|for\\\\*/mutable-set|for\\\\*/mutable-seteqv??|for\\\\*/or|for\\\\*/product|for\\\\*/set|for\\\\*/seteqv??|for\\\\*/stream|for\\\\*/sum|for\\\\*/vector|for\\\\*/weak-set|for\\\\*/weak-seteqv??|for-label|for-meta|for-syntax|for-template|for/and|for/async|for/first|for/fold|for/fold/derived|for/hash|for/hasheqv??|for/last|for/lists??|for/mutable-set|for/mutable-seteqv??|for/or|for/product|for/set|for/seteqv??|for/stream|for/sum|for/vector|for/weak-set|for/weak-seteqv??|gen:custom-write|gen:dict|gen:equal\\\\+hash|gen:set|gen:stream|generic|get-field|get-preference|hash/c|hash/dc|if|implies|import|in-bytes|in-bytes-lines|in-dict|in-dict-keys|in-dict-values|in-directory|in-hash|in-hash-keys|in-hash-pairs|in-hash-values|in-immutable-hash|in-immutable-hash-keys|in-immutable-hash-pairs|in-immutable-hash-values|in-immutable-set|in-indexed|in-input-port-bytes|in-input-port-chars|in-lines|in-list|in-mlist|in-mutable-hash|in-mutable-hash-keys|in-mutable-hash-pairs|in-mutable-hash-values|in-mutable-set|in-naturals|in-port|in-producer|in-range|in-set|in-slice|in-stream|in-string|in-syntax|in-value|in-vector|in-weak-hash|in-weak-hash-keys|in-weak-hash-pairs|in-weak-hash-values|in-weak-set|include|include-at/relative-to|include-at/relative-to/reader|include/reader|inherit|inherit-field|inherit/inner|inherit/super|init|init-depend|init-field|init-rest|inner|inspect|instantiate|integer-in|interface\\\\*??|invariant-assertion|invoke-unit|invoke-unit/infer|lambda|lazy|let\\\\*??|let\\\\*-values|let-syntax|let-syntaxes|let-values|let/cc|let/ec|letrec|letrec-syntax|letrec-syntaxes|letrec-syntaxes\\\\+values|letrec-values|lib|link|list\\\\*of|list/c|listof|local|local-require|log-debug|log-error|log-fatal|log-info|log-warning|make-custom-hash|make-custom-hash-types|make-custom-set|make-custom-set-types|make-handle-get-preference-locked|make-immutable-custom-hash|make-mutable-custom-set|make-object|make-temporary-file|make-weak-custom-hash|make-weak-custom-set|match\\\\*??|match\\\\*/derived|match-define|match-define-values|match-lambda\\\\*??|match-lambda\\\\*\\\\*|match-let\\\\*??|match-let\\\\*-values|match-let-values|match-letrec|match-letrec-values|match/derived|match/values|member-name-key|mixin|module\\\\*??|module\\\\+|nand|new|new-\u2200/c|new-\u2203/c|non-empty-listof|none/c|nor|not/c|object-contract|object/c|one-of/c|only|only-in|only-meta-in|open|open-input-file|open-input-output-file|open-output-file|opt/c|or|or/c|overment\\\\*??|override\\\\*??|override-final\\\\*??|parameter/c|parameterize\\\\*??|parameterize-break|parametric->/c|pathlist-closure|peek-bytes!-evt|peek-bytes-avail!-evt|peek-bytes-evt|peek-string!-evt|peek-string-evt|peeking-input-port|place\\\\*??|place/context|planet|port->bytes|port->bytes-lines|port->lines|port->string|prefix|prefix-in|prefix-out|pretty-format|private\\\\*??|procedure-arity-includes/c|process\\\\*??|process\\\\*/ports|process/ports|promise/c|prompt-tag/c|prop:dict/contract|protect-out|provide|provide-signature-elements|provide/contract|public\\\\*??|public-final\\\\*??|pubment\\\\*??|quasiquote|quasisyntax|quasisyntax/loc|quote|quote-syntax|quote-syntax/prune|raise-blame-error|raise-not-cons-blame-error|range|read-bytes!-evt|read-bytes-avail!-evt|read-bytes-evt|read-bytes-line-evt|read-line-evt|read-string!-evt|read-string-evt|real-in|recontract-out|recursive-contract|regexp-match\\\\*|regexp-match-evt|regexp-match-peek-positions\\\\*|regexp-match-positions\\\\*|relative-in|relocate-input-port|relocate-output-port|remove-duplicates|rename|rename-in|rename-inner|rename-out|rename-super|require|send\\\\*??|send\\\\+|send-generic|send/apply|send/keyword-apply|sequence/c|set!|set!-values|set-field!|set/c|shared|sort|srcloc|stream\\\\*??|stream-cons|string-join|string-len/c|string-normalize-spaces|string-replace|string-split|string-trim|struct\\\\*??|struct-copy|struct-field-index|struct-out|struct/c|struct/ctc|struct/dc|submod|super|super-instantiate|super-make-object|super-new|symbols|syntax|syntax-case\\\\*??|syntax-id-rules|syntax-rules|syntax/c|syntax/loc|system\\\\*??|system\\\\*/exit-code|system/exit-code|tag|this%??|thunk\\\\*??|time|transplant-input-port|transplant-output-port|unconstrained-domain->|unit|unit-from-context|unit/c|unit/new-import-export|unit/s|unless|unquote|unquote-splicing|unsyntax|unsyntax-splicing|values/drop|vector-immutable/c|vector-immutableof|vector-sort!??|vector/c|vectorof|when|with-continuation-mark|with-contract|with-contract-continuation-mark|with-handlers\\\\*??|with-input-from-file|with-method|with-output-to-file|with-syntax|wrapped-extra-arg-arrow|write-to-file|~\\\\.a|~\\\\.s|~\\\\.v|~a|~e|~r|~s|~v|\u03BB|expand-for-clause|for-clause-syntax-protect|syntax-pattern-variable\\\\?|[-*+/<]|<=|[=>]|>=|abort-current-continuation|abs|absolute-path\\\\?|acos|add1|alarm-evt|always-evt|andmap|angle|append|arithmetic-shift|arity-at-least-value|arity-at-least\\\\?|asin|assf|assoc|assq|assv|atan|banner|bitwise-and|bitwise-bit-field|bitwise-bit-set\\\\?|bitwise-ior|bitwise-not|bitwise-xor|boolean\\\\?|bound-identifier=\\\\?|box|box-cas!|box-immutable|box\\\\?|break-enabled|break-parameterization\\\\?|break-thread|build-list|build-path|build-path/convention-type|build-string|build-vector|byte-pregexp\\\\???|byte-ready\\\\?|byte-regexp\\\\???|byte\\\\?|bytes|bytes->immutable-bytes|bytes->list|bytes->path|bytes->path-element|bytes->string/latin-1|bytes->string/locale|bytes->string/utf-8|bytes-append|bytes-close-converter|bytes-convert|bytes-convert-end|bytes-converter\\\\?|bytes-copy!??|bytes-environment-variable-name\\\\?|bytes-fill!|bytes-length|bytes-open-converter|bytes-ref|bytes-set!|bytes-utf-8-index|bytes-utf-8-length|bytes-utf-8-ref|bytes<\\\\?|bytes=\\\\?|bytes>\\\\?|bytes\\\\?|caaaar|caaadr|caaar|caadar|caaddr|caadr|caar|cadaar|cadadr|cadar|caddar|cadddr|caddr|cadr|call-in-nested-thread|call-with-break-parameterization|call-with-composable-continuation|call-with-continuation-barrier|call-with-continuation-prompt|call-with-current-continuation|call-with-default-reading-parameterization|call-with-escape-continuation|call-with-exception-handler|call-with-immediate-continuation-mark|call-with-parameterization|call-with-semaphore|call-with-semaphore/enable-break|call-with-values|call/cc|call/ec|car|cdaaar|cdaadr|cdaar|cdadar|cdaddr|cdadr|cdar|cddaar|cddadr|cddar|cdddar|cddddr|cdddr|cddr|cdr|ceiling|channel-get|channel-put|channel-put-evt\\\\???|channel-try-get|channel\\\\?|chaperone-box|chaperone-channel|chaperone-continuation-mark-key|chaperone-evt|chaperone-hash|chaperone-of\\\\?|chaperone-procedure\\\\*??|chaperone-prompt-tag|chaperone-struct|chaperone-struct-type|chaperone-vector\\\\*??|chaperone\\\\?|char->integer|char-alphabetic\\\\?|char-blank\\\\?|char-ci<=\\\\?|char-ci<\\\\?|char-ci=\\\\?|char-ci>=\\\\?|char-ci>\\\\?|char-downcase|char-foldcase|char-general-category|char-graphic\\\\?|char-iso-control\\\\?|char-lower-case\\\\?|char-numeric\\\\?|char-punctuation\\\\?|char-ready\\\\?|char-symbolic\\\\?|char-title-case\\\\?|char-titlecase|char-upcase|char-upper-case\\\\?|char-utf-8-length|char-whitespace\\\\?|char<=\\\\?|char<\\\\?|char=\\\\?|char>=\\\\?|char>\\\\?|char\\\\?|check-duplicate-identifier|check-tail-contract|checked-procedure-check-and-extract|choice-evt|cleanse-path|close-input-port|close-output-port|collect-garbage|collection-file-path|collection-path|compile|compile-allow-set!-undefined|compile-context-preservation-enabled|compile-enforce-module-constants|compile-syntax|compiled-expression-recompile|compiled-expression\\\\?|compiled-module-expression\\\\?|complete-path\\\\?|complex\\\\?|compose1??|cons|continuation-mark-key\\\\?|continuation-mark-set->context|continuation-mark-set->list\\\\*??|continuation-mark-set-first|continuation-mark-set\\\\?|continuation-marks|continuation-prompt-available\\\\?|continuation-prompt-tag\\\\?|continuation\\\\?|copy-file|cos|current-break-parameterization|current-code-inspector|current-command-line-arguments|current-compile|current-compiled-file-roots|current-continuation-marks|current-custodian|current-directory|current-directory-for-user|current-drive|current-environment-variables|current-error-port|current-eval|current-evt-pseudo-random-generator|current-force-delete-permissions|current-gc-milliseconds|current-get-interaction-input-port|current-inexact-milliseconds|current-input-port|current-inspector|current-library-collection-links|current-library-collection-paths|current-load|current-load-extension|current-load-relative-directory|current-load/use-compiled|current-locale|current-logger|current-memory-use|current-milliseconds|current-module-declare-name|current-module-declare-source|current-module-name-resolver|current-module-path-for-load|current-namespace|current-output-port|current-parameterization|current-plumber|current-preserved-thread-cell-values|current-print|current-process-milliseconds|current-prompt-read|current-pseudo-random-generator|current-read-interaction|current-reader-guard|current-readtable|current-seconds|current-security-guard|current-subprocess-custodian-mode|current-thread|current-thread-group|current-thread-initial-stack-size|current-write-relative-directory|custodian-box-value|custodian-box\\\\?|custodian-limit-memory|custodian-managed-list|custodian-memory-accounting-available\\\\?|custodian-require-memory|custodian-shut-down\\\\?|custodian-shutdown-all|custodian\\\\?|custom-print-quotable-accessor|custom-print-quotable\\\\?|custom-write-accessor|custom-write\\\\?|date\\\\*-nanosecond|date\\\\*-time-zone-name|date\\\\*\\\\?|date-day|date-dst\\\\?|date-hour|date-minute|date-month|date-second|date-time-zone-offset|date-week-day|date-year|date-year-day|date\\\\?|datum->syntax|datum-intern-literal|default-continuation-prompt-tag|delete-directory|delete-file|denominator|directory-exists\\\\?|directory-list|display|displayln|double-flonum\\\\?|dump-memory-stats|dynamic-require|dynamic-require-for-syntax|dynamic-wind|environment-variables-copy|environment-variables-names|environment-variables-ref|environment-variables-set!|environment-variables\\\\?|eof|eof-object\\\\?|ephemeron-value|ephemeron\\\\?|eprintf|eq-hash-code|eq\\\\?|equal-hash-code|equal-secondary-hash-code|equal\\\\?|equal\\\\?/recur|eqv-hash-code|eqv\\\\?|error|error-display-handler|error-escape-handler|error-print-context-length|error-print-source-location|error-print-width|error-value->string-handler|eval|eval-jit-enabled|eval-syntax|even\\\\?|evt\\\\?|exact->inexact|exact-integer\\\\?|exact-nonnegative-integer\\\\?|exact-positive-integer\\\\?|exact\\\\?|executable-yield-handler|exit|exit-handler|exn-continuation-marks|exn-message|exn:break-continuation|exn:break:hang-up\\\\?|exn:break:terminate\\\\?|exn:break\\\\?|exn:fail:contract:arity\\\\?|exn:fail:contract:continuation\\\\?|exn:fail:contract:divide-by-zero\\\\?|exn:fail:contract:non-fixnum-result\\\\?|exn:fail:contract:variable-id|exn:fail:contract:variable\\\\?|exn:fail:contract\\\\?|exn:fail:filesystem:errno-errno|exn:fail:filesystem:errno\\\\?|exn:fail:filesystem:exists\\\\?|exn:fail:filesystem:missing-module-path|exn:fail:filesystem:missing-module\\\\?|exn:fail:filesystem:version\\\\?|exn:fail:filesystem\\\\?|exn:fail:network:errno-errno|exn:fail:network:errno\\\\?|exn:fail:network\\\\?|exn:fail:out-of-memory\\\\?|exn:fail:read-srclocs|exn:fail:read:eof\\\\?|exn:fail:read:non-char\\\\?|exn:fail:read\\\\?|exn:fail:syntax-exprs|exn:fail:syntax:missing-module-path|exn:fail:syntax:missing-module\\\\?|exn:fail:syntax:unbound\\\\?|exn:fail:syntax\\\\?|exn:fail:unsupported\\\\?|exn:fail:user\\\\?|exn:fail\\\\?|exn:missing-module-accessor|exn:missing-module\\\\?|exn:srclocs-accessor|exn:srclocs\\\\?|exn\\\\?|exp|expand|expand-for-clause|expand-once|expand-syntax|expand-syntax-once|expand-syntax-to-top-form|expand-to-top-form|expand-user-path|explode-path|expt|file-exists\\\\?|file-or-directory-identity|file-or-directory-modify-seconds|file-or-directory-permissions|file-position\\\\*??|file-size|file-stream-buffer-mode|file-stream-port\\\\?|file-truncate|filesystem-change-evt|filesystem-change-evt-cancel|filesystem-change-evt\\\\?|filesystem-root-list|filter|find-executable-path|find-library-collection-links|find-library-collection-paths|find-system-path|findf|fixnum\\\\?|floating-point-bytes->real|flonum\\\\?|floor|flush-output|foldl|foldr|for-clause-syntax-protect|for-each|format|fprintf|free-identifier=\\\\?|free-label-identifier=\\\\?|free-template-identifier=\\\\?|free-transformer-identifier=\\\\?|gcd|generate-temporaries|gensym|get-output-bytes|get-output-string|getenv|global-port-print-handler|guard-evt|handle-evt\\\\???|hash|hash->list|hash-clear!??|hash-copy|hash-copy-clear|hash-count|hash-empty\\\\?|hash-eq\\\\?|hash-equal\\\\?|hash-eqv\\\\?|hash-for-each|hash-has-key\\\\?|hash-iterate-first|hash-iterate-key|hash-iterate-key\\\\+value|hash-iterate-next|hash-iterate-pair|hash-iterate-value|hash-keys|hash-keys-subset\\\\?|hash-map|hash-placeholder\\\\?|hash-ref!??|hash-remove!??|hash-set!??|hash-set\\\\*!??|hash-update!??|hash-values|hash-weak\\\\?|hash\\\\?|hasheqv??|identifier-binding|identifier-binding-symbol|identifier-label-binding|identifier-prune-lexical-context|identifier-prune-to-source-module|identifier-remove-from-definition-context|identifier-template-binding|identifier-transformer-binding|identifier\\\\?|imag-part|immutable\\\\?|impersonate-box|impersonate-channel|impersonate-continuation-mark-key|impersonate-hash|impersonate-procedure\\\\*??|impersonate-prompt-tag|impersonate-struct|impersonate-vector\\\\*??|impersonator-ephemeron|impersonator-of\\\\?|impersonator-prop:application-mark|impersonator-property-accessor-procedure\\\\?|impersonator-property\\\\?|impersonator\\\\?|in-cycle|in-parallel|in-sequences|in-values\\\\*-sequence|in-values-sequence|inexact->exact|inexact-real\\\\?|inexact\\\\?|input-port\\\\?|inspector-superior\\\\?|inspector\\\\?|integer->char|integer->integer-bytes|integer-bytes->integer|integer-length|integer-sqrt|integer-sqrt/remainder|integer\\\\?|internal-definition-context-binding-identifiers|internal-definition-context-introduce|internal-definition-context-seal|internal-definition-context\\\\?|keyword->string|keyword-apply|keyword<\\\\?|keyword\\\\?|kill-thread|lcm|legacy-match-expander\\\\?|length|liberal-define-context\\\\?|link-exists\\\\?|list\\\\*??|list->bytes|list->string|list->vector|list-ref|list-tail|list\\\\?|load|load-extension|load-on-demand-enabled|load-relative|load-relative-extension|load/cd|load/use-compiled|local-expand|local-expand/capture-lifts|local-transformer-expand|local-transformer-expand/capture-lifts|locale-string-encoding|log|log-all-levels|log-level-evt|log-level\\\\?|log-max-level|log-message|log-receiver\\\\?|logger-name|logger\\\\?|magnitude|make-arity-at-least|make-base-empty-namespace|make-base-namespace|make-bytes|make-channel|make-continuation-mark-key|make-continuation-prompt-tag|make-custodian|make-custodian-box|make-date\\\\*??|make-derived-parameter|make-directory|make-do-sequence|make-empty-namespace|make-environment-variables|make-ephemeron|make-exn|make-exn:break|make-exn:break:hang-up|make-exn:break:terminate|make-exn:fail|make-exn:fail:contract|make-exn:fail:contract:arity|make-exn:fail:contract:continuation|make-exn:fail:contract:divide-by-zero|make-exn:fail:contract:non-fixnum-result|make-exn:fail:contract:variable|make-exn:fail:filesystem|make-exn:fail:filesystem:errno|make-exn:fail:filesystem:exists|make-exn:fail:filesystem:missing-module|make-exn:fail:filesystem:version|make-exn:fail:network|make-exn:fail:network:errno|make-exn:fail:out-of-memory|make-exn:fail:read|make-exn:fail:read:eof|make-exn:fail:read:non-char|make-exn:fail:syntax|make-exn:fail:syntax:missing-module|make-exn:fail:syntax:unbound|make-exn:fail:unsupported|make-exn:fail:user|make-file-or-directory-link|make-hash|make-hash-placeholder|make-hasheq|make-hasheq-placeholder|make-hasheqv|make-hasheqv-placeholder|make-immutable-hash|make-immutable-hasheqv??|make-impersonator-property|make-input-port|make-inspector|make-keyword-procedure|make-known-char-range-list|make-log-receiver|make-logger|make-output-port|make-parameter|make-phantom-bytes|make-pipe|make-placeholder|make-plumber|make-polar|make-prefab-struct|make-pseudo-random-generator|make-reader-graph|make-readtable|make-rectangular|make-rename-transformer|make-resolved-module-path|make-security-guard|make-semaphore|make-set!-transformer|make-shared-bytes|make-sibling-inspector|make-special-comment|make-srcloc|make-string|make-struct-field-accessor|make-struct-field-mutator|make-struct-type|make-struct-type-property|make-syntax-delta-introducer|make-syntax-introducer|make-thread-cell|make-thread-group|make-vector|make-weak-box|make-weak-hash|make-weak-hasheqv??|make-will-executor|map|match-\\\\.\\\\.\\\\.-nesting|match-expander\\\\?|max|mcar|mcdr|mcons|member|memf|memq|memv|min|module->exports|module->imports|module->indirect-exports|module->language-info|module->namespace|module-compiled-cross-phase-persistent\\\\?|module-compiled-exports|module-compiled-imports|module-compiled-indirect-exports|module-compiled-language-info|module-compiled-name|module-compiled-submodules|module-declared\\\\?|module-path-index-join|module-path-index-resolve|module-path-index-split|module-path-index-submodule|module-path-index\\\\?|module-path\\\\?|module-predefined\\\\?|module-provide-protected\\\\?|modulo|mpair\\\\?|nack-guard-evt|namespace-anchor->empty-namespace|namespace-anchor->namespace|namespace-anchor\\\\?|namespace-attach-module|namespace-attach-module-declaration|namespace-base-phase|namespace-mapped-symbols|namespace-module-identifier|namespace-module-registry|namespace-require|namespace-require/constant|namespace-require/copy|namespace-require/expansion-time|namespace-set-variable-value!|namespace-symbol->identifier|namespace-syntax-introduce|namespace-undefine-variable!|namespace-unprotect-module|namespace-variable-value|namespace\\\\?|negative\\\\?|never-evt|newline|normal-case-path|not|null\\\\???|number->string|number\\\\?|numerator|object-name|odd\\\\?|open-input-bytes|open-input-string|open-output-bytes|open-output-string|ormap|output-port\\\\?|pair\\\\?|parameter-procedure=\\\\?|parameter\\\\?|parameterization\\\\?|parse-leftover->\\\\*|path->bytes|path->complete-path|path->directory-path|path->string|path-add-extension|path-add-suffix|path-convention-type|path-element->bytes|path-element->string|path-for-some-system\\\\?|path-list-string->path-list|path-replace-extension|path-replace-suffix|path-string\\\\?|path<\\\\?|path\\\\?|peek-byte|peek-byte-or-special|peek-bytes!??|peek-bytes-avail!\\\\*??|peek-bytes-avail!/enable-break|peek-char|peek-char-or-special|peek-string!??|phantom-bytes\\\\?|pipe-content-length|placeholder-get|placeholder-set!|placeholder\\\\?|plumber-add-flush!|plumber-flush-all|plumber-flush-handle-remove!|plumber-flush-handle\\\\?|plumber\\\\?|poll-guard-evt|port-closed-evt|port-closed\\\\?|port-commit-peeked|port-count-lines!|port-count-lines-enabled|port-counts-lines\\\\?|port-display-handler|port-file-identity|port-file-unlock|port-next-location|port-print-handler|port-progress-evt|port-provides-progress-evts\\\\?|port-read-handler|port-try-file-lock\\\\?|port-write-handler|port-writes-atomic\\\\?|port-writes-special\\\\?|port\\\\?|positive\\\\?|prefab-key->struct-type|prefab-key\\\\?|prefab-struct-key|pregexp\\\\???|primitive-closure\\\\?|primitive-result-arity|primitive\\\\?|print|print-as-expression|print-boolean-long-form|print-box|print-graph|print-hash-table|print-mpair-curly-braces|print-pair-curly-braces|print-reader-abbreviations|print-struct|print-syntax-width|print-unreadable|print-vector-length|printf|println|procedure->method|procedure-arity|procedure-arity-includes\\\\?|procedure-arity\\\\?|procedure-closure-contents-eq\\\\?|procedure-extract-target|procedure-impersonator\\\\*\\\\?|procedure-keywords|procedure-reduce-arity|procedure-reduce-keyword-arity|procedure-rename|procedure-result-arity|procedure-specialize|procedure-struct-type\\\\?|procedure\\\\?|progress-evt\\\\?|prop:arity-string|prop:authentic|prop:checked-procedure|prop:custom-print-quotable|prop:custom-write|prop:equal\\\\+hash|prop:evt|prop:exn:missing-module|prop:exn:srclocs|prop:expansion-contexts|prop:impersonator-of|prop:input-port|prop:legacy-match-expander|prop:liberal-define-context|prop:match-expander|prop:object-name|prop:output-port|prop:procedure|prop:rename-transformer|prop:sequence|prop:set!-transformer|pseudo-random-generator->vector|pseudo-random-generator-vector\\\\?|pseudo-random-generator\\\\?|putenv|quotient|quotient/remainder|raise|raise-argument-error|raise-arguments-error|raise-arity-error|raise-mismatch-error|raise-range-error|raise-result-error|raise-syntax-error|raise-type-error|raise-user-error|random|random-seed|rational\\\\?|rationalize|read|read-accept-bar-quote|read-accept-box|read-accept-compiled|read-accept-dot|read-accept-graph|read-accept-infix-dot|read-accept-lang|read-accept-quasiquote|read-accept-reader|read-byte|read-byte-or-special|read-bytes!??|read-bytes-avail!\\\\*??|read-bytes-avail!/enable-break|read-bytes-line|read-case-sensitive|read-cdot|read-char|read-char-or-special|read-curly-brace-as-paren|read-curly-brace-with-tag|read-decimal-as-inexact|read-eval-print-loop|read-language|read-line|read-on-demand-source|read-square-bracket-as-paren|read-square-bracket-with-tag|read-string!??|read-syntax|read-syntax/recursive|read/recursive|readtable-mapping|readtable\\\\?|real->decimal-string|real->double-flonum|real->floating-point-bytes|real->single-flonum|real-part|real\\\\?|regexp|regexp-match|regexp-match-exact\\\\?|regexp-match-peek|regexp-match-peek-immediate|regexp-match-peek-positions|regexp-match-peek-positions-immediate|regexp-match-peek-positions-immediate/end|regexp-match-peek-positions/end|regexp-match-positions|regexp-match-positions/end|regexp-match/end|regexp-match\\\\?|regexp-max-lookbehind|regexp-quote|regexp-replace\\\\*??|regexp-replace-quote|regexp-replaces|regexp-split|regexp-try-match|regexp\\\\?|relative-path\\\\?|remainder|remove\\\\*??|remq\\\\*??|remv\\\\*??|rename-file-or-directory|rename-transformer-target|rename-transformer\\\\?|replace-evt|reroot-path|resolve-path|resolved-module-path-name|resolved-module-path\\\\?|reverse|round|seconds->date|security-guard\\\\?|semaphore-peek-evt\\\\???|semaphore-post|semaphore-try-wait\\\\?|semaphore-wait|semaphore-wait/enable-break|semaphore\\\\?|sequence->stream|sequence-generate\\\\*??|sequence\\\\?|set!-transformer-procedure|set!-transformer\\\\?|set-box!|set-mcar!|set-mcdr!|set-phantom-bytes!|set-port-next-location!|shared-bytes|shell-execute|simplify-path|sin|single-flonum\\\\?|sleep|special-comment-value|special-comment\\\\?|split-path|sqrt|srcloc->string|srcloc-column|srcloc-line|srcloc-position|srcloc-source|srcloc-span|srcloc\\\\?|stop-after|stop-before|string|string->bytes/latin-1|string->bytes/locale|string->bytes/utf-8|string->immutable-string|string->keyword|string->list|string->number|string->path|string->path-element|string->symbol|string->uninterned-symbol|string->unreadable-symbol|string-append|string-ci<=\\\\?|string-ci<\\\\?|string-ci=\\\\?|string-ci>=\\\\?|string-ci>\\\\?|string-copy!??|string-downcase|string-environment-variable-name\\\\?|string-fill!|string-foldcase|string-length|string-locale-ci<\\\\?|string-locale-ci=\\\\?|string-locale-ci>\\\\?|string-locale-downcase|string-locale-upcase|string-locale<\\\\?|string-locale=\\\\?|string-locale>\\\\?|string-normalize-nfc|string-normalize-nfd|string-normalize-nfkc|string-normalize-nfkd|string-port\\\\?|string-ref|string-set!|string-titlecase|string-upcase|string-utf-8-length|string<=\\\\?|string<\\\\?|string=\\\\?|string>=\\\\?|string>\\\\?|string\\\\?|struct->vector|struct-accessor-procedure\\\\?|struct-constructor-procedure\\\\?|struct-info|struct-mutator-procedure\\\\?|struct-predicate-procedure\\\\?|struct-type-info|struct-type-make-constructor|struct-type-make-predicate|struct-type-property-accessor-procedure\\\\?|struct-type-property\\\\?|struct-type\\\\?|struct:arity-at-least|struct:date\\\\*??|struct:exn|struct:exn:break|struct:exn:break:hang-up|struct:exn:break:terminate|struct:exn:fail|struct:exn:fail:contract|struct:exn:fail:contract:arity|struct:exn:fail:contract:continuation|struct:exn:fail:contract:divide-by-zero|struct:exn:fail:contract:non-fixnum-result|struct:exn:fail:contract:variable|struct:exn:fail:filesystem|struct:exn:fail:filesystem:errno|struct:exn:fail:filesystem:exists|struct:exn:fail:filesystem:missing-module|struct:exn:fail:filesystem:version|struct:exn:fail:network|struct:exn:fail:network:errno|struct:exn:fail:out-of-memory|struct:exn:fail:read|struct:exn:fail:read:eof|struct:exn:fail:read:non-char|struct:exn:fail:syntax|struct:exn:fail:syntax:missing-module|struct:exn:fail:syntax:unbound|struct:exn:fail:unsupported|struct:exn:fail:user|struct:srcloc|struct\\\\?|sub1|subbytes|subprocess|subprocess-group-enabled|subprocess-kill|subprocess-pid|subprocess-status|subprocess-wait|subprocess\\\\?|substring|symbol->string|symbol-interned\\\\?|symbol-unreadable\\\\?|symbol<\\\\?|symbol\\\\?|sync|sync/enable-break|sync/timeout|sync/timeout/enable-break|syntax->datum|syntax->list|syntax-arm|syntax-column|syntax-debug-info|syntax-disarm|syntax-e|syntax-line|syntax-local-bind-syntaxes|syntax-local-certifier|syntax-local-context|syntax-local-expand-expression|syntax-local-get-shadower|syntax-local-identifier-as-binding|syntax-local-introduce|syntax-local-lift-context|syntax-local-lift-expression|syntax-local-lift-module|syntax-local-lift-module-end-declaration|syntax-local-lift-provide|syntax-local-lift-require|syntax-local-lift-values-expression|syntax-local-make-definition-context|syntax-local-make-delta-introducer|syntax-local-match-introduce|syntax-local-module-defined-identifiers|syntax-local-module-exports|syntax-local-module-required-identifiers|syntax-local-name|syntax-local-phase-level|syntax-local-submodules|syntax-local-transforming-module-provides\\\\?|syntax-local-value|syntax-local-value/immediate|syntax-original\\\\?|syntax-pattern-variable\\\\?|syntax-position|syntax-property|syntax-property-preserved\\\\?|syntax-property-symbol-keys|syntax-protect|syntax-rearm|syntax-recertify|syntax-shift-phase-level|syntax-source|syntax-source-module|syntax-span|syntax-taint|syntax-tainted\\\\?|syntax-track-origin|syntax-transforming-module-expression\\\\?|syntax-transforming-with-lifts\\\\?|syntax-transforming\\\\?|syntax\\\\?|system-big-endian\\\\?|system-idle-evt|system-language\\\\+country|system-library-subpath|system-path-convention-type|system-type|tan|terminal-port\\\\?|thread|thread-cell-ref|thread-cell-set!|thread-cell-values\\\\?|thread-cell\\\\?|thread-dead-evt|thread-dead\\\\?|thread-group\\\\?|thread-receive|thread-receive-evt|thread-resume|thread-resume-evt|thread-rewind-receive|thread-running\\\\?|thread-send|thread-suspend|thread-suspend-evt|thread-try-receive|thread-wait|thread/suspend-to-kill|thread\\\\?|time-apply|truncate|unbox|uncaught-exception-handler|unquoted-printing-string|unquoted-printing-string-value|unquoted-printing-string\\\\?|use-collection-link-paths|use-compiled-file-check|use-compiled-file-paths|use-user-specific-search-paths|values|variable-reference->empty-namespace|variable-reference->module-base-phase|variable-reference->module-declaration-inspector|variable-reference->module-path-index|variable-reference->module-source|variable-reference->namespace|variable-reference->phase|variable-reference->resolved-module-path|variable-reference-constant\\\\?|variable-reference\\\\?|vector|vector->immutable-vector|vector->list|vector->pseudo-random-generator!??|vector->values|vector-cas!|vector-copy!|vector-fill!|vector-immutable|vector-length|vector-ref|vector-set!|vector-set-performance-stats!|vector\\\\?|version|void\\\\???|weak-box-value|weak-box\\\\?|will-execute|will-executor\\\\?|will-register|will-try-execute|wrap-evt|write|write-bytes??|write-bytes-avail\\\\*??|write-bytes-avail-evt|write-bytes-avail/enable-break|write-char|write-special|write-special-avail\\\\*|write-special-evt|write-string|writeln|zero\\\\?|\\\\*|\\\\*list/c|[-+/<]|</c|<=|[=>]|>/c|>=|abort-current-continuation|abs|absolute-path\\\\?|acos|add1|alarm-evt|always-evt|andmap|angle|append\\\\*??|append-map|argmax|argmin|arithmetic-shift|arity-at-least-value|arity-at-least\\\\?|arity-checking-wrapper|arity-includes\\\\?|arity=\\\\?|arrow-contract-info-accepts-arglist|arrow-contract-info-chaperone-procedure|arrow-contract-info-check-first-order|arrow-contract-info\\\\?|asin|assf|assoc|assq|assv|atan|banner|base->-doms/c|base->-rngs/c|base->\\\\?|bitwise-and|bitwise-bit-field|bitwise-bit-set\\\\?|bitwise-ior|bitwise-not|bitwise-xor|blame-add-car-context|blame-add-cdr-context|blame-add-missing-party|blame-add-nth-arg-context|blame-add-range-context|blame-add-unknown-context|blame-context|blame-contract|blame-fmt->-string|blame-missing-party\\\\?|blame-negative|blame-original\\\\?|blame-positive|blame-replace-negative|blame-source|blame-swap|blame-swapped\\\\?|blame-update|blame-value|blame\\\\?|boolean=\\\\?|boolean\\\\?|bound-identifier=\\\\?|box|box-cas!|box-immutable|box\\\\?|break-enabled|break-parameterization\\\\?|break-thread|build-chaperone-contract-property|build-compound-type-name|build-contract-property|build-flat-contract-property|build-list|build-path|build-path/convention-type|build-string|build-vector|byte-pregexp\\\\???|byte-ready\\\\?|byte-regexp\\\\???|byte\\\\?|bytes|bytes->immutable-bytes|bytes->list|bytes->path|bytes->path-element|bytes->string/latin-1|bytes->string/locale|bytes->string/utf-8|bytes-append\\\\*??|bytes-close-converter|bytes-convert|bytes-convert-end|bytes-converter\\\\?|bytes-copy!??|bytes-environment-variable-name\\\\?|bytes-fill!|bytes-join|bytes-length|bytes-no-nuls\\\\?|bytes-open-converter|bytes-ref|bytes-set!|bytes-utf-8-index|bytes-utf-8-length|bytes-utf-8-ref|bytes<\\\\?|bytes=\\\\?|bytes>\\\\?|bytes\\\\?|caaaar|caaadr|caaar|caadar|caaddr|caadr|caar|cadaar|cadadr|cadar|caddar|cadddr|caddr|cadr|call-in-nested-thread|call-with-break-parameterization|call-with-composable-continuation|call-with-continuation-barrier|call-with-continuation-prompt|call-with-current-continuation|call-with-default-reading-parameterization|call-with-escape-continuation|call-with-exception-handler|call-with-immediate-continuation-mark|call-with-input-bytes|call-with-input-string|call-with-output-bytes|call-with-output-string|call-with-parameterization|call-with-semaphore|call-with-semaphore/enable-break|call-with-values|call/cc|call/ec|car|cartesian-product|cdaaar|cdaadr|cdaar|cdadar|cdaddr|cdadr|cdar|cddaar|cddadr|cddar|cdddar|cddddr|cdddr|cddr|cdr|ceiling|channel-get|channel-put|channel-put-evt\\\\???|channel-try-get|channel\\\\?|chaperone-box|chaperone-channel|chaperone-continuation-mark-key|chaperone-contract-property\\\\?|chaperone-contract\\\\?|chaperone-evt|chaperone-hash|chaperone-hash-set|chaperone-of\\\\?|chaperone-procedure\\\\*??|chaperone-prompt-tag|chaperone-struct|chaperone-struct-type|chaperone-vector\\\\*??|chaperone\\\\?|char->integer|char-alphabetic\\\\?|char-blank\\\\?|char-ci<=\\\\?|char-ci<\\\\?|char-ci=\\\\?|char-ci>=\\\\?|char-ci>\\\\?|char-downcase|char-foldcase|char-general-category|char-graphic\\\\?|char-in|char-iso-control\\\\?|char-lower-case\\\\?|char-numeric\\\\?|char-punctuation\\\\?|char-ready\\\\?|char-symbolic\\\\?|char-title-case\\\\?|char-titlecase|char-upcase|char-upper-case\\\\?|char-utf-8-length|char-whitespace\\\\?|char<=\\\\?|char<\\\\?|char=\\\\?|char>=\\\\?|char>\\\\?|char\\\\?|check-duplicate-identifier|checked-procedure-check-and-extract|choice-evt|class->interface|class-info|class-seal|class-unseal|class\\\\?|cleanse-path|close-input-port|close-output-port|coerce-chaperone-contracts??|coerce-contract|coerce-contract/f|coerce-contracts|coerce-flat-contracts??|collect-garbage|collection-file-path|collection-path|combinations|compile|compile-allow-set!-undefined|compile-context-preservation-enabled|compile-enforce-module-constants|compile-syntax|compiled-expression-recompile|compiled-expression\\\\?|compiled-module-expression\\\\?|complete-path\\\\?|complex\\\\?|compose1??|conjoin|conjugate|cons\\\\???|const|continuation-mark-key\\\\?|continuation-mark-set->context|continuation-mark-set->list\\\\*??|continuation-mark-set-first|continuation-mark-set\\\\?|continuation-marks|continuation-prompt-available\\\\?|continuation-prompt-tag\\\\?|continuation\\\\?|contract-continuation-mark-key|contract-custom-write-property-proc|contract-first-order|contract-first-order-passes\\\\?|contract-late-neg-projection|contract-name|contract-proc|contract-projection|contract-property\\\\?|contract-random-generate|contract-random-generate-fail\\\\???|contract-random-generate-get-current-environment|contract-random-generate-stash|contract-random-generate/choose|contract-stronger\\\\?|contract-struct-exercise|contract-struct-generate|contract-struct-late-neg-projection|contract-struct-list-contract\\\\?|contract-val-first-projection|contract\\\\?|convert-stream|copy-file|copy-port|cosh??|count|current-blame-format|current-break-parameterization|current-code-inspector|current-command-line-arguments|current-compile|current-compiled-file-roots|current-continuation-marks|current-custodian|current-directory|current-directory-for-user|current-drive|current-environment-variables|current-error-port|current-eval|current-evt-pseudo-random-generator|current-force-delete-permissions|current-future|current-gc-milliseconds|current-get-interaction-input-port|current-inexact-milliseconds|current-input-port|current-inspector|current-library-collection-links|current-library-collection-paths|current-load|current-load-extension|current-load-relative-directory|current-load/use-compiled|current-locale|current-logger|current-memory-use|current-milliseconds|current-module-declare-name|current-module-declare-source|current-module-name-resolver|current-module-path-for-load|current-namespace|current-output-port|current-parameterization|current-plumber|current-preserved-thread-cell-values|current-print|current-process-milliseconds|current-prompt-read|current-pseudo-random-generator|current-read-interaction|current-reader-guard|current-readtable|current-seconds|current-security-guard|current-subprocess-custodian-mode|current-thread|current-thread-group|current-thread-initial-stack-size|current-write-relative-directory|curryr??|custodian-box-value|custodian-box\\\\?|custodian-limit-memory|custodian-managed-list|custodian-memory-accounting-available\\\\?|custodian-require-memory|custodian-shut-down\\\\?|custodian-shutdown-all|custodian\\\\?|custom-print-quotable-accessor|custom-print-quotable\\\\?|custom-write-accessor|custom-write-property-proc|custom-write\\\\?|date\\\\*-nanosecond|date\\\\*-time-zone-name|date\\\\*\\\\?|date-day|date-dst\\\\?|date-hour|date-minute|date-month|date-second|date-time-zone-offset|date-week-day|date-year|date-year-day|date\\\\?|datum->syntax|datum-intern-literal|default-continuation-prompt-tag|degrees->radians|delete-directory|delete-file|denominator|dict-iter-contract|dict-key-contract|dict-value-contract|directory-exists\\\\?|directory-list|disjoin|display|displayln|double-flonum\\\\?|drop|drop-common-prefix|drop-right|dropf|dropf-right|dump-memory-stats|dup-input-port|dup-output-port|dynamic-get-field|dynamic-object/c|dynamic-require|dynamic-require-for-syntax|dynamic-send|dynamic-set-field!|dynamic-wind|eighth|empty|empty-sequence|empty-stream|empty\\\\?|environment-variables-copy|environment-variables-names|environment-variables-ref|environment-variables-set!|environment-variables\\\\?|eof|eof-object\\\\?|ephemeron-value|ephemeron\\\\?|eprintf|eq-contract-val|eq-contract\\\\?|eq-hash-code|eq\\\\?|equal-contract-val|equal-contract\\\\?|equal-hash-code|equal-secondary-hash-code|equal<%>|equal\\\\?|equal\\\\?/recur|eqv-hash-code|eqv\\\\?|error|error-display-handler|error-escape-handler|error-print-context-length|error-print-source-location|error-print-width|error-value->string-handler|eval|eval-jit-enabled|eval-syntax|even\\\\?|evt/c|evt\\\\?|exact->inexact|exact-ceiling|exact-floor|exact-integer\\\\?|exact-nonnegative-integer\\\\?|exact-positive-integer\\\\?|exact-round|exact-truncate|exact\\\\?|executable-yield-handler|exit|exit-handler|exn-continuation-marks|exn-message|exn:break-continuation|exn:break:hang-up\\\\?|exn:break:terminate\\\\?|exn:break\\\\?|exn:fail:contract:arity\\\\?|exn:fail:contract:blame-object|exn:fail:contract:blame\\\\?|exn:fail:contract:continuation\\\\?|exn:fail:contract:divide-by-zero\\\\?|exn:fail:contract:non-fixnum-result\\\\?|exn:fail:contract:variable-id|exn:fail:contract:variable\\\\?|exn:fail:contract\\\\?|exn:fail:filesystem:errno-errno|exn:fail:filesystem:errno\\\\?|exn:fail:filesystem:exists\\\\?|exn:fail:filesystem:missing-module-path|exn:fail:filesystem:missing-module\\\\?|exn:fail:filesystem:version\\\\?|exn:fail:filesystem\\\\?|exn:fail:network:errno-errno|exn:fail:network:errno\\\\?|exn:fail:network\\\\?|exn:fail:object\\\\?|exn:fail:out-of-memory\\\\?|exn:fail:read-srclocs|exn:fail:read:eof\\\\?|exn:fail:read:non-char\\\\?|exn:fail:read\\\\?|exn:fail:syntax-exprs|exn:fail:syntax:missing-module-path|exn:fail:syntax:missing-module\\\\?|exn:fail:syntax:unbound\\\\?|exn:fail:syntax\\\\?|exn:fail:unsupported\\\\?|exn:fail:user\\\\?|exn:fail\\\\?|exn:misc:match\\\\?|exn:missing-module-accessor|exn:missing-module\\\\?|exn:srclocs-accessor|exn:srclocs\\\\?|exn\\\\?|exp|expand|expand-once|expand-syntax|expand-syntax-once|expand-syntax-to-top-form|expand-to-top-form|expand-user-path|explode-path|expt|externalizable<%>|failure-result/c|false|false/c|false\\\\?|field-names|fifth|file-exists\\\\?|file-name-from-path|file-or-directory-identity|file-or-directory-modify-seconds|file-or-directory-permissions|file-position\\\\*??|file-size|file-stream-buffer-mode|file-stream-port\\\\?|file-truncate|filename-extension|filesystem-change-evt|filesystem-change-evt-cancel|filesystem-change-evt\\\\?|filesystem-root-list|filter|filter-map|filter-not|filter-read-input-port|find-executable-path|find-library-collection-links|find-library-collection-paths|find-system-path|findf|first|fixnum\\\\?|flat-contract|flat-contract-predicate|flat-contract-property\\\\?|flat-contract\\\\?|flat-named-contract|flatten|floating-point-bytes->real|flonum\\\\?|floor|flush-output|fold-files|foldl|foldr|for-each|force|format|fourth|fprintf|free-identifier=\\\\?|free-label-identifier=\\\\?|free-template-identifier=\\\\?|free-transformer-identifier=\\\\?|fsemaphore-count|fsemaphore-post|fsemaphore-try-wait\\\\?|fsemaphore-wait|fsemaphore\\\\?|future\\\\???|futures-enabled\\\\?|gcd|generate-member-key|generate-temporaries|generic-set\\\\?|generic\\\\?|gensym|get-output-bytes|get-output-string|get/build-late-neg-projection|get/build-val-first-projection|getenv|global-port-print-handler|group-by|group-execute-bit|group-read-bit|group-write-bit|guard-evt|handle-evt\\\\???|has-blame\\\\?|has-contract\\\\?|hash|hash->list|hash-clear!??|hash-copy|hash-copy-clear|hash-count|hash-empty\\\\?|hash-eq\\\\?|hash-equal\\\\?|hash-eqv\\\\?|hash-for-each|hash-has-key\\\\?|hash-iterate-first|hash-iterate-key|hash-iterate-key\\\\+value|hash-iterate-next|hash-iterate-pair|hash-iterate-value|hash-keys|hash-keys-subset\\\\?|hash-map|hash-placeholder\\\\?|hash-ref!??|hash-remove!??|hash-set!??|hash-set\\\\*!??|hash-update!??|hash-values|hash-weak\\\\?|hash\\\\?|hasheqv??|identifier-binding|identifier-binding-symbol|identifier-label-binding|identifier-prune-lexical-context|identifier-prune-to-source-module|identifier-remove-from-definition-context|identifier-template-binding|identifier-transformer-binding|identifier\\\\?|identity|if/c|imag-part|immutable\\\\?|impersonate-box|impersonate-channel|impersonate-continuation-mark-key|impersonate-hash|impersonate-hash-set|impersonate-procedure\\\\*??|impersonate-prompt-tag|impersonate-struct|impersonate-vector\\\\*??|impersonator-contract\\\\?|impersonator-ephemeron|impersonator-of\\\\?|impersonator-prop:application-mark|impersonator-prop:blame|impersonator-prop:contracted|impersonator-property-accessor-procedure\\\\?|impersonator-property\\\\?|impersonator\\\\?|implementation\\\\?|implementation\\\\?/c|in-combinations|in-cycle|in-dict-pairs|in-parallel|in-permutations|in-sequences|in-values\\\\*-sequence|in-values-sequence|index-of|index-where|indexes-of|indexes-where|inexact->exact|inexact-real\\\\?|inexact\\\\?|infinite\\\\?|input-port-append|input-port\\\\?|inspector-superior\\\\?|inspector\\\\?|instanceof/c|integer->char|integer->integer-bytes|integer-bytes->integer|integer-length|integer-sqrt|integer-sqrt/remainder|integer\\\\?|interface->method-names|interface-extension\\\\?|interface\\\\?|internal-definition-context-binding-identifiers|internal-definition-context-introduce|internal-definition-context-seal|internal-definition-context\\\\?|is-a\\\\?|is-a\\\\?/c|keyword->string|keyword-apply|keyword<\\\\?|keyword\\\\?|keywords-match|kill-thread|last|last-pair|lcm|length|liberal-define-context\\\\?|link-exists\\\\?|list\\\\*??|list->bytes|list->mutable-set|list->mutable-seteqv??|list->set|list->seteqv??|list->string|list->vector|list->weak-set|list->weak-seteqv??|list-contract\\\\?|list-prefix\\\\?|list-ref|list-set|list-tail|list-update|list\\\\?|listen-port-number\\\\?|load|load-extension|load-on-demand-enabled|load-relative|load-relative-extension|load/cd|load/use-compiled|local-expand|local-expand/capture-lifts|local-transformer-expand|local-transformer-expand/capture-lifts|locale-string-encoding|log|log-all-levels|log-level-evt|log-level\\\\?|log-max-level|log-message|log-receiver\\\\?|logger-name|logger\\\\?|magnitude|make-arity-at-least|make-base-empty-namespace|make-base-namespace|make-bytes|make-channel|make-chaperone-contract|make-continuation-mark-key|make-continuation-prompt-tag|make-contract|make-custodian|make-custodian-box|make-date\\\\*??|make-derived-parameter|make-directory\\\\*??|make-do-sequence|make-empty-namespace|make-environment-variables|make-ephemeron|make-exn|make-exn:break|make-exn:break:hang-up|make-exn:break:terminate|make-exn:fail|make-exn:fail:contract|make-exn:fail:contract:arity|make-exn:fail:contract:blame|make-exn:fail:contract:continuation|make-exn:fail:contract:divide-by-zero|make-exn:fail:contract:non-fixnum-result|make-exn:fail:contract:variable|make-exn:fail:filesystem|make-exn:fail:filesystem:errno|make-exn:fail:filesystem:exists|make-exn:fail:filesystem:missing-module|make-exn:fail:filesystem:version|make-exn:fail:network|make-exn:fail:network:errno|make-exn:fail:object|make-exn:fail:out-of-memory|make-exn:fail:read|make-exn:fail:read:eof|make-exn:fail:read:non-char|make-exn:fail:syntax|make-exn:fail:syntax:missing-module|make-exn:fail:syntax:unbound|make-exn:fail:unsupported|make-exn:fail:user|make-file-or-directory-link|make-flat-contract|make-fsemaphore|make-generic|make-hash|make-hash-placeholder|make-hasheq|make-hasheq-placeholder|make-hasheqv|make-hasheqv-placeholder|make-immutable-hash|make-immutable-hasheqv??|make-impersonator-property|make-input-port|make-input-port/read-to-peek|make-inspector|make-keyword-procedure|make-known-char-range-list|make-limited-input-port|make-list|make-lock-file-name|make-log-receiver|make-logger|make-mixin-contract|make-none/c|make-output-port|make-parameter|make-parent-directory\\\\*|make-phantom-bytes|make-pipe|make-pipe-with-specials|make-placeholder|make-plumber|make-polar|make-prefab-struct|make-primitive-class|make-proj-contract|make-pseudo-random-generator|make-reader-graph|make-readtable|make-rectangular|make-rename-transformer|make-resolved-module-path|make-security-guard|make-semaphore|make-set!-transformer|make-shared-bytes|make-sibling-inspector|make-special-comment|make-srcloc|make-string|make-struct-field-accessor|make-struct-field-mutator|make-struct-type|make-struct-type-property|make-syntax-delta-introducer|make-syntax-introducer|make-tentative-pretty-print-output-port|make-thread-cell|make-thread-group|make-vector|make-weak-box|make-weak-hash|make-weak-hasheqv??|make-will-executor|map|match-equality-test|matches-arity-exactly\\\\?|max|mcar|mcdr|mcons|member|member-name-key-hash-code|member-name-key=\\\\?|member-name-key\\\\?|memf|memq|memv|merge-input|method-in-interface\\\\?|min|mixin-contract|module->exports|module->imports|module->indirect-exports|module->language-info|module->namespace|module-compiled-cross-phase-persistent\\\\?|module-compiled-exports|module-compiled-imports|module-compiled-indirect-exports|module-compiled-language-info|module-compiled-name|module-compiled-submodules|module-declared\\\\?|module-path-index-join|module-path-index-resolve|module-path-index-split|module-path-index-submodule|module-path-index\\\\?|module-path\\\\?|module-predefined\\\\?|module-provide-protected\\\\?|modulo|mpair\\\\?|mutable-set|mutable-seteqv??|n->th|nack-guard-evt|namespace-anchor->empty-namespace|namespace-anchor->namespace|namespace-anchor\\\\?|namespace-attach-module|namespace-attach-module-declaration|namespace-base-phase|namespace-mapped-symbols|namespace-module-identifier|namespace-module-registry|namespace-require|namespace-require/constant|namespace-require/copy|namespace-require/expansion-time|namespace-set-variable-value!|namespace-symbol->identifier|namespace-syntax-introduce|namespace-undefine-variable!|namespace-unprotect-module|namespace-variable-value|namespace\\\\?|nan\\\\?|natural-number/c|natural\\\\?|negate|negative-integer\\\\?|negative\\\\?|never-evt|newline|ninth|non-empty-string\\\\?|nonnegative-integer\\\\?|nonpositive-integer\\\\?|normal-case-path|normalize-arity|normalize-path|normalized-arity\\\\?|not|null\\\\???|number->string|number\\\\?|numerator|object%|object->vector|object-info|object-interface|object-method-arity-includes\\\\?|object-name|object-or-false=\\\\?|object=\\\\?|object\\\\?|odd\\\\?|open-input-bytes|open-input-string|open-output-bytes|open-output-nowhere|open-output-string|order-of-magnitude|ormap|other-execute-bit|other-read-bit|other-write-bit|output-port\\\\?|pair\\\\?|parameter-procedure=\\\\?|parameter\\\\?|parameterization\\\\?|parse-command-line|partition|path->bytes|path->complete-path|path->directory-path|path->string|path-add-extension|path-add-suffix|path-convention-type|path-element->bytes|path-element->string|path-element\\\\?|path-for-some-system\\\\?|path-get-extension|path-has-extension\\\\?|path-list-string->path-list|path-only|path-replace-extension|path-replace-suffix|path-string\\\\?|path<\\\\?|path\\\\?|peek-byte|peek-byte-or-special|peek-bytes!??|peek-bytes-avail!\\\\*??|peek-bytes-avail!/enable-break|peek-char|peek-char-or-special|peek-string!??|permutations|phantom-bytes\\\\?|pi|pi\\\\.f|pipe-content-length|place-break|place-channel|place-channel-get|place-channel-put|place-channel-put/get|place-channel\\\\?|place-dead-evt|place-enabled\\\\?|place-kill|place-location\\\\?|place-message-allowed\\\\?|place-sleep|place-wait|place\\\\?|placeholder-get|placeholder-set!|placeholder\\\\?|plumber-add-flush!|plumber-flush-all|plumber-flush-handle-remove!|plumber-flush-handle\\\\?|plumber\\\\?|poll-guard-evt|port->list|port-closed-evt|port-closed\\\\?|port-commit-peeked|port-count-lines!|port-count-lines-enabled|port-counts-lines\\\\?|port-display-handler|port-file-identity|port-file-unlock|port-next-location|port-number\\\\?|port-print-handler|port-progress-evt|port-provides-progress-evts\\\\?|port-read-handler|port-try-file-lock\\\\?|port-write-handler|port-writes-atomic\\\\?|port-writes-special\\\\?|port\\\\?|positive-integer\\\\?|positive\\\\?|predicate/c|prefab-key->struct-type|prefab-key\\\\?|prefab-struct-key|preferences-lock-file-mode|pregexp\\\\???|pretty-display|pretty-print|pretty-print-\\\\.-symbol-without-bars|pretty-print-abbreviate-read-macros|pretty-print-columns|pretty-print-current-style-table|pretty-print-depth|pretty-print-exact-as-decimal|pretty-print-extend-style-table|pretty-print-handler|pretty-print-newline|pretty-print-post-print-hook|pretty-print-pre-print-hook|pretty-print-print-hook|pretty-print-print-line|pretty-print-remap-stylable|pretty-print-show-inexactness|pretty-print-size-hook|pretty-print-style-table\\\\?|pretty-printing|pretty-write|primitive-closure\\\\?|primitive-result-arity|primitive\\\\?|print|print-as-expression|print-boolean-long-form|print-box|print-graph|print-hash-table|print-mpair-curly-braces|print-pair-curly-braces|print-reader-abbreviations|print-struct|print-syntax-width|print-unreadable|print-vector-length|printable/c|printable<%>|printf|println|procedure->method|procedure-arity|procedure-arity-includes\\\\?|procedure-arity\\\\?|procedure-closure-contents-eq\\\\?|procedure-extract-target|procedure-impersonator\\\\*\\\\?|procedure-keywords|procedure-reduce-arity|procedure-reduce-keyword-arity|procedure-rename|procedure-result-arity|procedure-specialize|procedure-struct-type\\\\?|procedure\\\\?|processor-count|progress-evt\\\\?|promise-forced\\\\?|promise-running\\\\?|promise/name\\\\?|promise\\\\?|prop:arity-string|prop:arrow-contract|prop:arrow-contract-get-info|prop:arrow-contract\\\\?|prop:authentic|prop:blame|prop:chaperone-contract|prop:checked-procedure|prop:contract|prop:contracted|prop:custom-print-quotable|prop:custom-write|prop:dict|prop:equal\\\\+hash|prop:evt|prop:exn:missing-module|prop:exn:srclocs|prop:expansion-contexts|prop:flat-contract|prop:impersonator-of|prop:input-port|prop:liberal-define-context|prop:object-name|prop:opt-chaperone-contract|prop:opt-chaperone-contract-get-test|prop:opt-chaperone-contract\\\\?|prop:orc-contract|prop:orc-contract-get-subcontracts|prop:orc-contract\\\\?|prop:output-port|prop:place-location|prop:procedure|prop:recursive-contract|prop:recursive-contract-unroll|prop:recursive-contract\\\\?|prop:rename-transformer|prop:sequence|prop:set!-transformer|prop:stream|proper-subset\\\\?|pseudo-random-generator->vector|pseudo-random-generator-vector\\\\?|pseudo-random-generator\\\\?|put-preferences|putenv|quotient|quotient/remainder|radians->degrees|raise|raise-argument-error|raise-arguments-error|raise-arity-error|raise-contract-error|raise-mismatch-error|raise-range-error|raise-result-error|raise-syntax-error|raise-type-error|raise-user-error|random|random-seed|rational\\\\?|rationalize|read|read-accept-bar-quote|read-accept-box|read-accept-compiled|read-accept-dot|read-accept-graph|read-accept-infix-dot|read-accept-lang|read-accept-quasiquote|read-accept-reader|read-byte|read-byte-or-special|read-bytes!??|read-bytes-avail!\\\\*??|read-bytes-avail!/enable-break|read-bytes-line|read-case-sensitive|read-cdot|read-char|read-char-or-special|read-curly-brace-as-paren|read-curly-brace-with-tag|read-decimal-as-inexact|read-eval-print-loop|read-language|read-line|read-on-demand-source|read-square-bracket-as-paren|read-square-bracket-with-tag|read-string!??|read-syntax|read-syntax/recursive|read/recursive|readtable-mapping|readtable\\\\?|real->decimal-string|real->double-flonum|real->floating-point-bytes|real->single-flonum|real-part|real\\\\?|reencode-input-port|reencode-output-port|regexp|regexp-match|regexp-match-exact\\\\?|regexp-match-peek|regexp-match-peek-immediate|regexp-match-peek-positions|regexp-match-peek-positions-immediate|regexp-match-peek-positions-immediate/end|regexp-match-peek-positions/end|regexp-match-positions|regexp-match-positions/end|regexp-match/end|regexp-match\\\\?|regexp-max-lookbehind|regexp-quote|regexp-replace\\\\*??|regexp-replace-quote|regexp-replaces|regexp-split|regexp-try-match|regexp\\\\?|relative-path\\\\?|remainder|remf\\\\*??|remove\\\\*??|remq\\\\*??|remv\\\\*??|rename-contract|rename-file-or-directory|rename-transformer-target|rename-transformer\\\\?|replace-evt|reroot-path|resolve-path|resolved-module-path-name|resolved-module-path\\\\?|rest|reverse|round|second|seconds->date|security-guard\\\\?|semaphore-peek-evt\\\\???|semaphore-post|semaphore-try-wait\\\\?|semaphore-wait|semaphore-wait/enable-break|semaphore\\\\?|sequence->list|sequence->stream|sequence-add-between|sequence-andmap|sequence-append|sequence-count|sequence-filter|sequence-fold|sequence-for-each|sequence-generate\\\\*??|sequence-length|sequence-map|sequence-ormap|sequence-ref|sequence-tail|sequence\\\\?|set|set!-transformer-procedure|set!-transformer\\\\?|set->list|set->stream|set-add!??|set-box!|set-clear!??|set-copy|set-copy-clear|set-count|set-empty\\\\?|set-eq\\\\?|set-equal\\\\?|set-eqv\\\\?|set-first|set-for-each|set-implements/c|set-implements\\\\?|set-intersect!??|set-map|set-mcar!|set-mcdr!|set-member\\\\?|set-mutable\\\\?|set-phantom-bytes!|set-port-next-location!|set-remove!??|set-rest|set-subtract!??|set-symmetric-difference!??|set-union!??|set-weak\\\\?|set=\\\\?|set\\\\?|seteqv??|seventh|sgn|shared-bytes|shell-execute|shrink-path-wrt|shuffle|simple-form-path|simplify-path|sin|single-flonum\\\\?|sinh|sixth|skip-projection-wrapper\\\\?|sleep|some-system-path->string|special-comment-value|special-comment\\\\?|special-filter-input-port|split-at|split-at-right|split-common-prefix|split-path|splitf-at|splitf-at-right|sqrt??|srcloc->string|srcloc-column|srcloc-line|srcloc-position|srcloc-source|srcloc-span|srcloc\\\\?|stop-after|stop-before|stream->list|stream-add-between|stream-andmap|stream-append|stream-count|stream-empty\\\\?|stream-filter|stream-first|stream-fold|stream-for-each|stream-length|stream-map|stream-ormap|stream-ref|stream-rest|stream-tail|stream/c|stream\\\\?|string|string->bytes/latin-1|string->bytes/locale|string->bytes/utf-8|string->immutable-string|string->keyword|string->list|string->number|string->path|string->path-element|string->some-system-path|string->symbol|string->uninterned-symbol|string->unreadable-symbol|string-append\\\\*??|string-ci<=\\\\?|string-ci<\\\\?|string-ci=\\\\?|string-ci>=\\\\?|string-ci>\\\\?|string-contains\\\\?|string-copy!??|string-downcase|string-environment-variable-name\\\\?|string-fill!|string-foldcase|string-length|string-locale-ci<\\\\?|string-locale-ci=\\\\?|string-locale-ci>\\\\?|string-locale-downcase|string-locale-upcase|string-locale<\\\\?|string-locale=\\\\?|string-locale>\\\\?|string-no-nuls\\\\?|string-normalize-nfc|string-normalize-nfd|string-normalize-nfkc|string-normalize-nfkd|string-port\\\\?|string-prefix\\\\?|string-ref|string-set!|string-suffix\\\\?|string-titlecase|string-upcase|string-utf-8-length|string<=\\\\?|string<\\\\?|string=\\\\?|string>=\\\\?|string>\\\\?|string\\\\?|struct->vector|struct-accessor-procedure\\\\?|struct-constructor-procedure\\\\?|struct-info|struct-mutator-procedure\\\\?|struct-predicate-procedure\\\\?|struct-type-info|struct-type-make-constructor|struct-type-make-predicate|struct-type-property-accessor-procedure\\\\?|struct-type-property/c|struct-type-property\\\\?|struct-type\\\\?|struct:arity-at-least|struct:arrow-contract-info|struct:date\\\\*??|struct:exn|struct:exn:break|struct:exn:break:hang-up|struct:exn:break:terminate|struct:exn:fail|struct:exn:fail:contract|struct:exn:fail:contract:arity|struct:exn:fail:contract:blame|struct:exn:fail:contract:continuation|struct:exn:fail:contract:divide-by-zero|struct:exn:fail:contract:non-fixnum-result|struct:exn:fail:contract:variable|struct:exn:fail:filesystem|struct:exn:fail:filesystem:errno|struct:exn:fail:filesystem:exists|struct:exn:fail:filesystem:missing-module|struct:exn:fail:filesystem:version|struct:exn:fail:network|struct:exn:fail:network:errno|struct:exn:fail:object|struct:exn:fail:out-of-memory|struct:exn:fail:read|struct:exn:fail:read:eof|struct:exn:fail:read:non-char|struct:exn:fail:syntax|struct:exn:fail:syntax:missing-module|struct:exn:fail:syntax:unbound|struct:exn:fail:unsupported|struct:exn:fail:user|struct:srcloc|struct:wrapped-extra-arg-arrow|struct\\\\?|sub1|subbytes|subclass\\\\?|subclass\\\\?/c|subprocess|subprocess-group-enabled|subprocess-kill|subprocess-pid|subprocess-status|subprocess-wait|subprocess\\\\?|subset\\\\?|substring|suggest/c|symbol->string|symbol-interned\\\\?|symbol-unreadable\\\\?|symbol<\\\\?|symbol=\\\\?|symbol\\\\?|sync|sync/enable-break|sync/timeout|sync/timeout/enable-break|syntax->datum|syntax->list|syntax-arm|syntax-column|syntax-debug-info|syntax-disarm|syntax-e|syntax-line|syntax-local-bind-syntaxes|syntax-local-certifier|syntax-local-context|syntax-local-expand-expression|syntax-local-get-shadower|syntax-local-identifier-as-binding|syntax-local-introduce|syntax-local-lift-context|syntax-local-lift-expression|syntax-local-lift-module|syntax-local-lift-module-end-declaration|syntax-local-lift-provide|syntax-local-lift-require|syntax-local-lift-values-expression|syntax-local-make-definition-context|syntax-local-make-delta-introducer|syntax-local-module-defined-identifiers|syntax-local-module-exports|syntax-local-module-required-identifiers|syntax-local-name|syntax-local-phase-level|syntax-local-submodules|syntax-local-transforming-module-provides\\\\?|syntax-local-value|syntax-local-value/immediate|syntax-original\\\\?|syntax-position|syntax-property|syntax-property-preserved\\\\?|syntax-property-symbol-keys|syntax-protect|syntax-rearm|syntax-recertify|syntax-shift-phase-level|syntax-source|syntax-source-module|syntax-span|syntax-taint|syntax-tainted\\\\?|syntax-track-origin|syntax-transforming-module-expression\\\\?|syntax-transforming-with-lifts\\\\?|syntax-transforming\\\\?|syntax\\\\?|system-big-endian\\\\?|system-idle-evt|system-language\\\\+country|system-library-subpath|system-path-convention-type|system-type|tail-marks-match\\\\?|take|take-common-prefix|take-right|takef|takef-right|tanh??|tcp-abandon-port|tcp-accept|tcp-accept-evt|tcp-accept-ready\\\\?|tcp-accept/enable-break|tcp-addresses|tcp-close|tcp-connect|tcp-connect/enable-break|tcp-listen|tcp-listener\\\\?|tcp-port\\\\?|tentative-pretty-print-port-cancel|tentative-pretty-print-port-transfer|tenth|terminal-port\\\\?|the-unsupplied-arg|third|thread|thread-cell-ref|thread-cell-set!|thread-cell-values\\\\?|thread-cell\\\\?|thread-dead-evt|thread-dead\\\\?|thread-group\\\\?|thread-receive|thread-receive-evt|thread-resume|thread-resume-evt|thread-rewind-receive|thread-running\\\\?|thread-send|thread-suspend|thread-suspend-evt|thread-try-receive|thread-wait|thread/suspend-to-kill|thread\\\\?|time-apply|touch|true|truncate|udp-addresses|udp-bind!|udp-bound\\\\?|udp-close|udp-connect!|udp-connected\\\\?|udp-multicast-interface|udp-multicast-join-group!|udp-multicast-leave-group!|udp-multicast-loopback\\\\?|udp-multicast-set-interface!|udp-multicast-set-loopback!|udp-multicast-set-ttl!|udp-multicast-ttl|udp-open-socket|udp-receive!\\\\*??|udp-receive!-evt|udp-receive!/enable-break|udp-receive-ready-evt|udp-send\\\\*??|udp-send-evt|udp-send-ready-evt|udp-send-to\\\\*??|udp-send-to-evt|udp-send-to/enable-break|udp-send/enable-break|udp\\\\?|unbox|uncaught-exception-handler|unit\\\\?|unquoted-printing-string|unquoted-printing-string-value|unquoted-printing-string\\\\?|unspecified-dom|unsupplied-arg\\\\?|use-collection-link-paths|use-compiled-file-check|use-compiled-file-paths|use-user-specific-search-paths|user-execute-bit|user-read-bit|user-write-bit|value-blame|value-contract|values|variable-reference->empty-namespace|variable-reference->module-base-phase|variable-reference->module-declaration-inspector|variable-reference->module-path-index|variable-reference->module-source|variable-reference->namespace|variable-reference->phase|variable-reference->resolved-module-path|variable-reference-constant\\\\?|variable-reference\\\\?|vector|vector->immutable-vector|vector->list|vector->pseudo-random-generator!??|vector->values|vector-append|vector-argmax|vector-argmin|vector-cas!|vector-copy!??|vector-count|vector-drop|vector-drop-right|vector-fill!|vector-filter|vector-filter-not|vector-immutable|vector-length|vector-map!??|vector-member|vector-memq|vector-memv|vector-ref|vector-set!|vector-set\\\\*!|vector-set-performance-stats!|vector-split-at|vector-split-at-right|vector-take|vector-take-right|vector\\\\?|version|void\\\\???|weak-box-value|weak-box\\\\?|weak-set|weak-seteqv??|will-execute|will-executor\\\\?|will-register|will-try-execute|with-input-from-bytes|with-input-from-string|with-output-to-bytes|with-output-to-string|would-be-future|wrap-evt|wrapped-extra-arg-arrow-extra-neg-party-argument|wrapped-extra-arg-arrow-real-func|wrapped-extra-arg-arrow\\\\?|writable<%>|write|write-bytes??|write-bytes-avail\\\\*??|write-bytes-avail-evt|write-bytes-avail/enable-break|write-char|write-special|write-special-avail\\\\*|write-special-evt|write-string|writeln|xor|zero\\\\?)(?=$|[]\\"'(),;\\\\[\`{}\\\\s])"}]},"byte-string":{"patterns":[{"begin":"#\\"","beginCaptures":{"0":[{"name":"punctuation.definition.string.begin.racket"}]},"end":"\\"","endCaptures":{"0":[{"name":"punctuation.definition.string.end.racket"}]},"name":"string.byte.racket","patterns":[{"include":"#escape-char-base"}]}]},"character":{"patterns":[{"match":"#\\\\\\\\(?:[0-7]{3}|u\\\\h{1,4}|U\\\\h{1,6}|(?:null?|newline|linefeed|backspace|v?tab|page|return|space|rubout|[[^\\\\w\\\\s]\\\\d])(?![A-Za-z])|(?:[^\\\\W\\\\d](?=[\\\\W\\\\d])|\\\\W))","name":"string.quoted.single.racket"}]},"comment":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#comment-sexp"}]},"comment-block":{"patterns":[{"begin":"#\\\\|","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.racket"}},"end":"\\\\|#","endCaptures":{"0":{"name":"punctuation.definition.comment.end.racket"}},"name":"comment.block.racket","patterns":[{"include":"#comment-block"}]}]},"comment-line":{"patterns":[{"beginCaptures":{"1":{"name":"punctuation.definition.comment.racket"}},"match":"(#!)[ /].*$","name":"comment.line.unix.racket"},{"captures":{"1":{"name":"punctuation.definition.comment.racket"}},"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(;).*$","name":"comment.line.semicolon.racket"}]},"comment-sexp":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])#;","name":"comment.sexp.racket"}]},"default-args":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#default-args-content"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#default-args-content"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#default-args-content"}]}]},"default-args-content":{"patterns":[{"include":"#comment"},{"include":"#argument"},{"include":"$base"}]},"default-args-struct":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#default-args-struct-content"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#default-args-struct-content"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#default-args-struct-content"}]}]},"default-args-struct-content":{"patterns":[{"include":"#comment"},{"include":"#argument-struct"},{"include":"$base"}]},"define":{"patterns":[{"include":"#define-func"},{"include":"#define-vals"},{"include":"#define-val"}]},"define-func":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(define(?:(?:-for)?-syntax)?)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.lambda.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#func-args"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(define(?:(?:-for)?-syntax)?)\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"storage.type.lambda.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#func-args"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(define(?:(?:-for)?-syntax)?)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"storage.type.lambda.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"include":"#func-args"}]}]},"define-val":{"patterns":[{"captures":{"1":{"name":"storage.type.racket"},"2":{"name":"entity.name.constant.racket"}},"match":"(?<=[(\\\\[{])\\\\s*(define(?:(?:-for)?-syntax)?)\\\\s+([^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)"}]},"define-vals":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(define-(?:values(?:-for-syntax)?|syntaxes)?)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.type.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"match":"[^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*","name":"entity.name.constant"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(define-(?:values(?:-for-syntax)?|syntaxes)?)\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"storage.type.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"match":"[^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*","name":"entity.name.constant"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(define-(?:values(?:-for-syntax)?|syntaxes)?)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"storage.type.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"patterns":[{"match":"[^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*","name":"entity.name.constant"}]}]},"dot":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])\\\\.(?=$|[]\\"'(),;\\\\[\`{}\\\\s])","name":"punctuation.accessor.racket"}]},"escape-char":{"patterns":[{"include":"#escape-char-base"},{"match":"\\\\\\\\(?:u[A-Fa-f\\\\d]{1,4}|U[A-Fa-f\\\\d]{1,8})","name":"constant.character.escape.racket"},{"include":"#escape-char-error"}]},"escape-char-base":{"patterns":[{"match":"\\\\\\\\(?:[\\"'\\\\\\\\abefnrtv]|[0-7]{1,3}|x[A-Fa-f\\\\d]{1,2})","name":"constant.character.escape.racket"}]},"escape-char-error":{"patterns":[{"match":"\\\\\\\\.","name":"invalid.illegal.escape.racket"}]},"format":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(e?printf|format)\\\\s*(\\")","beginCaptures":{"1":{"name":"support.function.racket"},"2":{"name":"string.quoted.double.racket"}},"contentName":"string.quoted.double.racket","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.racket"}},"patterns":[{"include":"#format-string"},{"include":"#escape-char"}]}]},"format-string":{"patterns":[{"match":"~(?:\\\\.?[%ASVansv]|[BCOXbcox~\\\\s])","name":"constant.other.placeholder.racket"}]},"func-args":{"patterns":[{"include":"#function-name"},{"include":"#dot"},{"include":"#comment"},{"include":"#args"}]},"function-name":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(\\\\|)","beginCaptures":{"1":{"name":"punctuation.verbatim.begin.racket"}},"contentName":"entity.name.function.racket","end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"},"name":"entity.name.function.racket"},{"begin":"(?<=[(\\\\[{])\\\\s*(#%|\\\\\\\\ |[^]\\"#'(),;\\\\[\`{}\\\\s])","beginCaptures":{"1":{"name":"entity.name.function.racket"}},"contentName":"entity.name.function.racket","end":"(?=[]\\"'(),;\\\\[\`{}\\\\s])","patterns":[{"match":"\\\\\\\\ "},{"begin":"\\\\|","beginCaptures":{"0":"punctuation.verbatim.begin.racket"},"end":"\\\\|","endCaptures":{"0":"punctuation.verbatim.end.racket"}}]}]},"hash":{"patterns":[{"begin":"#hash(?:eqv?)?\\\\(","beginCaptures":{"0":{"name":"punctuation.section.hash.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.hash.end.racket"}},"name":"meta.hash.racket","patterns":[{"include":"#hash-content"}]},{"begin":"#hash(?:eqv?)?\\\\[","beginCaptures":{"0":{"name":"punctuation.section.hash.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.hash.end.racket"}},"name":"meta.hash.racket","patterns":[{"include":"#hash-content"}]},{"begin":"#hash(?:eqv?)?\\\\{","beginCaptures":{"0":{"name":"punctuation.section.hash.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.hash.end.racket"}},"name":"meta.hash.racket","patterns":[{"include":"#hash-content"}]}]},"hash-content":{"patterns":[{"include":"#comment"},{"include":"#pairing"}]},"here-string":{"patterns":[{"begin":"#<<(.*)$","end":"^\\\\1$","name":"string.here.racket"}]},"keyword":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])#:[^]\\"'(),;\\\\[\`{}\\\\s]+","name":"keyword.other.racket"}]},"lambda":{"patterns":[{"include":"#lambda-onearg"},{"include":"#lambda-args"}]},"lambda-args":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(lambda|\u03BB)\\\\s+(\\\\()","beginCaptures":{"1":{"name":"storage.type.lambda.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"name":"meta.lambda.racket","patterns":[{"include":"#args"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(lambda|\u03BB)\\\\s+(\\\\{)","beginCaptures":{"1":{"name":"storage.type.lambda.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"name":"meta.lambda.racket","patterns":[{"include":"#args"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(lambda|\u03BB)\\\\s+(\\\\[)","beginCaptures":{"1":{"name":"storage.type.lambda.racket"},"2":{"name":"punctuation.section.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.end.racket"}},"name":"meta.lambda.racket","patterns":[{"include":"#args"}]}]},"lambda-onearg":[{"captures":{"1":{"name":"storage.type.lambda.racket"},"2":{"name":"variable.parameter.racket"}},"match":"(?<=[(\\\\[{])\\\\s*(lambda|\u03BB)\\\\s+([^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)","name":"meta.lambda.racket"}],"list":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.list.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.list.end.racket"}},"name":"meta.list.racket","patterns":[{"include":"#list-content"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.list.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.list.end.racket"}},"name":"meta.list.racket","patterns":[{"include":"#list-content"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.list.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.list.end.racket"}},"name":"meta.list.racket","patterns":[{"include":"#list-content"}]}]},"list-content":{"patterns":[{"include":"#builtin-functions"},{"include":"#dot"},{"include":"$base"}]},"not-atom":{"patterns":[{"include":"#vector"},{"include":"#hash"},{"include":"#prefab-struct"},{"include":"#list"},{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])#(?:[Cc][Ii]|[Cc][Ss])(?=\\\\s)","name":"keyword.control.racket"},{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])#&","name":"support.function.racket"}]},"number":{"patterns":[{"include":"#number-dec"},{"include":"#number-oct"},{"include":"#number-bin"},{"include":"#number-hex"}]},"number-bin":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(?:#[Bb](?:#[EIei])?|(?:#[EIei])?#[Bb])(?:(?:(?:[-+]?[01]+#*/[01]+#*|[-+]?[01]+\\\\.[01]+#*|[-+]?[01]+#*\\\\.#*|[-+]?[01]+#*)(?:[DEFLSdefls][-+]?[01]+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))@(?:(?:[-+]?[01]+#*/[01]+#*|[-+]?[01]+\\\\.[01]+#*|[-+]?[01]+#*\\\\.#*|[-+]?[01]+#*)(?:[DEFLSdefls][-+]?[01]+)?|(?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))|(?:(?:[-+]?[01]+#*/[01]+#*|[-+]?[01]+\\\\.[01]+#*|[-+]?[01]+#*\\\\.#*|[-+]?[01]+#*)(?:[DEFLSdefls][-+]?[01]+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))?[-+](?:(?:[-+]?[01]+#*/[01]+#*|[-+]?[01]+\\\\.[01]+#*|[-+]?[01]+#*\\\\.#*|[-+]?[01]+#*)(?:[DEFLSdefls][-+]?[01]+)?|(?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])?)i|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])|(?:[-+]?[01]+#*/[01]+#*|[-+]?[01]*\\\\.[01]+#*|[-+]?[01]+#*\\\\.#*|[-+]?[01]+#*)(?:[DEFLSdefls][-+]?[01]+)?)(?=$|[]\\"'(),;\\\\[\`{}\\\\s])","name":"constant.numeric.bin.racket"}]},"number-dec":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(?:(?:#[Dd])?(?:#[EIei])?|(?:#[EIei])?(?:#[Dd])?)(?:(?:(?:[-+]?\\\\d+#*/\\\\d+#*|[-+]?\\\\d+\\\\.\\\\d+#*|[-+]?\\\\d+#*\\\\.#*|[-+]?\\\\d+#*)(?:[DEFLSdefls][-+]?\\\\d+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))@(?:(?:[-+]?\\\\d+#*/\\\\d+#*|[-+]?\\\\d+\\\\.\\\\d+#*|[-+]?\\\\d+#*\\\\.#*|[-+]?\\\\d+#*)(?:[DEFLSdefls][-+]?\\\\d+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))|(?:(?:[-+]?\\\\d+#*/\\\\d+#*|[-+]?\\\\d+\\\\.\\\\d+#*|[-+]?\\\\d+#*\\\\.#*|[-+]?\\\\d+#*)(?:[DEFLSdefls][-+]?\\\\d+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))?[-+](?:(?:[-+]?\\\\d+#*/\\\\d+#*|[-+]?\\\\d+\\\\.\\\\d+#*|[-+]?\\\\d+#*\\\\.#*|[-+]?\\\\d+#*)(?:[DEFLSdefls][-+]?\\\\d+)?|(?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])?)i|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])|(?:[-+]?\\\\d+#*/\\\\d+#*|[-+]?\\\\d*\\\\.\\\\d+#*|[-+]?\\\\d+#*\\\\.#*|[-+]?\\\\d+#*)(?:[DEFLSdefls][-+]?\\\\d+)?)(?=$|[]\\"'(),;\\\\[\`{}\\\\s])","name":"constant.numeric.racket"}]},"number-hex":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(?:#[Xx](?:#[EIei])?|(?:#[EIei])?#[Xx])(?:(?:(?:[-+]?\\\\h+#*/\\\\h+#*|[-+]?\\\\h\\\\.\\\\h+#*|[-+]?\\\\h+#*\\\\.#*|[-+]?\\\\h+#*)(?:[LSls][-+]?\\\\h+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))@(?:(?:[-+]?\\\\h+#*/\\\\h+#*|[-+]?\\\\h+\\\\.\\\\h+#*|[-+]?\\\\h+#*\\\\.#*|[-+]?\\\\h+#*)(?:[LSls][-+]?\\\\h+)?|(?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))|(?:(?:[-+]?\\\\h+#*/\\\\h+#*|[-+]?\\\\h+\\\\.\\\\h+#*|[-+]?\\\\h+#*\\\\.#*|[-+]?\\\\h+#*)(?:[LSls][-+]?\\\\h+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))?[-+](?:(?:[-+]?\\\\h+#*/\\\\h+#*|[-+]?\\\\h+\\\\.\\\\h+#*|[-+]?\\\\h+#*\\\\.#*|[-+]?\\\\h+#*)(?:[LSls][-+]?\\\\h+)?|(?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])?)i|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])|(?:[-+]?\\\\h+#*/\\\\h+#*|[-+]?\\\\h*\\\\.\\\\h+#*|[-+]?\\\\h+#*\\\\.#*|[-+]?\\\\h+#*)(?:[LSls][-+]?\\\\h+)?)(?=$|[]\\"'(),;\\\\[\`{}\\\\s])","name":"constant.numeric.hex.racket"}]},"number-oct":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(?:#[Oo](?:#[EIei])?|(?:#[EIei])?#[Oo])(?:(?:(?:[-+]?[0-7]+#*/[0-7]+#*|[-+]?[0-7]+\\\\.[0-7]+#*|[-+]?[0-7]+#*\\\\.#*|[-+]?[0-7]+#*)(?:[DEFLSdefls][-+]?[0-7]+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))@(?:(?:[-+]?[0-7]+#*/[0-7]+#*|[-+]?[0-7]+\\\\.[0-7]+#*|[-+]?[0-7]+#*\\\\.#*|[-+]?[0-7]+#*)(?:[DEFLSdefls][-+]?[0-7]+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))|(?:(?:[-+]?[0-7]+#*/[0-7]+#*|[-+]?[0-7]+\\\\.[0-7]+#*|[-+]?[0-7]+#*\\\\.#*|[-+]?[0-7]+#*)(?:[DEFLSdefls][-+]?[0-7]+)?|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f]))?[-+](?:(?:[-+]?[0-7]+#*/[0-7]+#*|[-+]?[0-7]+\\\\.[0-7]+#*|[-+]?[0-7]+#*\\\\.#*|[-+]?[0-7]+#*)(?:[DEFLSdefls][-+]?[0-7]+)?|(?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])?)i|[-+](?:[Ii][Nn][Ff]\\\\.[0f]|[Nn][Aa][Nn]\\\\.[0f])|(?:[-+]?[0-7]+#*/[0-7]+#*|[-+]?[0-7]*\\\\.[0-7]+#*|[-+]?[0-7]+#*\\\\.#*|[-+]?[0-7]+#*)(?:[DEFLSdefls][-+]?[0-7]+)?)(?=$|[]\\"'(),;\\\\[\`{}\\\\s])","name":"constant.numeric.octal.racket"}]},"pair-content":{"patterns":[{"include":"#dot"},{"include":"#comment"},{"include":"#atom"}]},"pairing":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.pair.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.pair.end.racket"}},"name":"meta.list.racket","patterns":[{"include":"#pair-content"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.pair.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.pair.end.racket"}},"name":"meta.list.racket","patterns":[{"include":"#pair-content"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.pair.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.pair.end.racket"}},"name":"meta.list.racket","patterns":[{"include":"#pair-content"}]}]},"prefab-struct":{"patterns":[{"begin":"#s\\\\(","beginCaptures":{"0":{"name":"punctuation.section.prefab-struct.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.prefab-struct.end.racket"}},"name":"meta.prefab-struct.racket","patterns":[{"include":"$base"}]},{"begin":"#s\\\\[","beginCaptures":{"0":{"name":"punctuation.section.prefab-struct.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.prefab-struct.end.racket"}},"name":"meta.prefab-struct.racket","patterns":[{"include":"$base"}]},{"begin":"#s\\\\{","beginCaptures":{"0":{"name":"punctuation.section.prefab-struct.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.prefab-struct.end.racket"}},"name":"meta.prefab-struct.racket","patterns":[{"include":"$base"}]}]},"quote":{"patterns":[{"match":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(?:,@|[',\`]|#'|#\`|#,|#~|#,@)+(?=[]\\"'(),;\\\\[\`{}\\\\s]|#[^%]|[^]\\"'(),;\\\\[\`{}\\\\s])","name":"support.function.racket"}]},"regexp-byte-string":{"patterns":[{"begin":"#([pr])x#\\"","beginCaptures":{"0":[{"name":"punctuation.definition.string.begin.racket"}]},"end":"\\"","endCaptures":{"0":[{"name":"punctuation.definition.string.end.racket"}]},"name":"string.regexp.byte.racket","patterns":[{"include":"#escape-char-base"}]}]},"regexp-string":{"patterns":[{"begin":"#([pr])x\\"","beginCaptures":{"0":[{"name":"punctuation.definition.string.begin.racket"}]},"end":"\\"","endCaptures":{"0":[{"name":"punctuation.definition.string.end.racket"}]},"name":"string.regexp.racket","patterns":[{"include":"#escape-char-base"}]}]},"string":{"patterns":[{"include":"#byte-string"},{"include":"#regexp-byte-string"},{"include":"#regexp-string"},{"include":"#base-string"},{"include":"#here-string"}]},"struct":{"patterns":[{"begin":"(?<=[(\\\\[{])\\\\s*(struct)\\\\s+([^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)(?:\\\\s+[^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)?\\\\s*(\\\\()","beginCaptures":{"1":{"name":"storage.struct.racket"},"2":{"name":"entity.name.struct.racket"},"3":{"name":"punctuation.section.fields.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.fields.end.racket"}},"name":"meta.struct.fields.racket","patterns":[{"include":"#comment"},{"include":"#default-args-struct"},{"include":"#struct-field"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(struct)\\\\s+([^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)(?:\\\\s+[^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)?\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"storage.struct.racket"},"2":{"name":"entity.name.struct.racket"},"3":{"name":"punctuation.section.fields.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.fields.end.racket"}},"name":"meta.struct.fields.racket","patterns":[{"include":"#default-args-struct"},{"include":"#struct-field"}]},{"begin":"(?<=[(\\\\[{])\\\\s*(struct)\\\\s+([^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)(?:\\\\s+[^]\\"#'(),;\\\\[\`{}\\\\s][^]\\"'(),;\\\\[\`{}\\\\s]*)?\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"storage.struct.racket"},"2":{"name":"entity.name.struct.racket"},"3":{"name":"punctuation.section.fields.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.fields.end.racket"}},"name":"meta.struct.fields.racket","patterns":[{"include":"#default-args-struct"},{"include":"#struct-field"}]}]},"struct-field":{"patterns":[{"begin":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(\\\\|)","beginCaptures":{"1":{"name":"punctuation.verbatim.begin.racket"}},"contentName":"variable.other.member.racket","end":"\\\\|","endCaptures":{"0":{"name":"punctuation.verbatim.end.racket"}}},{"begin":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(#%|\\\\\\\\ |[^]\\"#'(),;\\\\[\`{}\\\\s])","beginCaptures":{"1":{"name":"variable.other.member.racket"}},"contentName":"variable.other.member.racket","end":"(?=[]\\"'(),;\\\\[\`{}\\\\s])","patterns":[{"match":"\\\\\\\\ "},{"begin":"\\\\|","beginCaptures":{"0":{"name":"punctuation.verbatim.begin.racket"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.verbatim.end.racket"}}}]}]},"symbol":{"patterns":[{"begin":"(?<=^|[]\\"(),;\\\\[{}\\\\s])['\`]+(\\\\|)","beginCaptures":{"1":{"name":"punctuation.verbatim.begin.racket"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.verbatim.end.racket"}},"name":"string.quoted.single.racket"},{"begin":"(?<=^|[]\\"(),;\\\\[{}\\\\s])['\`]+(?:#%|\\\\\\\\ |[^]\\"#'(),;\\\\[\`{}\\\\s])","end":"(?=[]\\"'(),;\\\\[\`{}\\\\s])","name":"string.quoted.single.racket","patterns":[{"match":"\\\\\\\\ "},{"begin":"\\\\|","beginCaptures":{"0":{"name":"punctuation.verbatim.begin.racket"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.verbatim.end.racket"}}}]}]},"variable":{"patterns":[{"begin":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(\\\\|)","beginCaptures":{"1":{"name":"punctuation.verbatim.begin.racket"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.verbatim.end.racket"}}},{"begin":"(?<=^|[]\\"'(),;\\\\[\`{}\\\\s])(?:#%|\\\\\\\\ |[^]\\"#'(),;\\\\[\`{}\\\\s])","end":"(?=[]\\"'(),;\\\\[\`{}\\\\s])","patterns":[{"match":"\\\\\\\\ "},{"begin":"\\\\|","beginCaptures":{"0":{"name":"punctuation.verbatim.begin.racket"}},"end":"\\\\|","endCaptures":{"0":{"name":"punctuation.verbatim.end.racket"}}}]}]},"vector":{"patterns":[{"begin":"#(?:[Ff][lx])?[0-9]*\\\\(","beginCaptures":{"0":{"name":"punctuation.section.vector.begin.racket"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.vector.end.racket"}},"name":"meta.vector.racket","patterns":[{"include":"$base"}]},{"begin":"#(?:[Ff][lx])?[0-9]*\\\\[","beginCaptures":{"0":{"name":"punctuation.section.vector.begin.racket"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.vector.end.racket"}},"name":"meta.vector.racket","patterns":[{"include":"$base"}]},{"begin":"#(?:[Ff][lx])?[0-9]*\\\\{","beginCaptures":{"0":{"name":"punctuation.section.vector.begin.racket"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.vector.end.racket"}},"name":"meta.vector.racket","patterns":[{"include":"$base"}]}]}},"scopeName":"source.racket"}`))];export{e as default}; diff --git a/docs/assets/radar-NHE76QYJ-BCFJj-oD.js b/docs/assets/radar-NHE76QYJ-BCFJj-oD.js new file mode 100644 index 0000000..5f68f46 --- /dev/null +++ b/docs/assets/radar-NHE76QYJ-BCFJj-oD.js @@ -0,0 +1 @@ +import"./chunk-FPAJGGOC-C0XAW5Os.js";import"./main-CwSdzVhm.js";import{n as r}from"./chunk-LHMN2FUI-DW2iokr2.js";export{r as createRadarServices}; diff --git a/docs/assets/raku-D5hi73-p.js b/docs/assets/raku-D5hi73-p.js new file mode 100644 index 0000000..68abaf9 --- /dev/null +++ b/docs/assets/raku-D5hi73-p.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Raku","name":"raku","patterns":[{"begin":"^=begin","end":"^=end","name":"comment.block.perl"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.perl"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.perl"}},"end":"\\\\n","name":"comment.line.number-sign.perl"}]},{"captures":{"1":{"name":"storage.type.class.perl.6"},"3":{"name":"entity.name.type.class.perl.6"}},"match":"(class|enum|grammar|knowhow|module|package|role|slang|subset)(\\\\s+)(((?:::|')?([$A-Z_a-z\xC0-\xFF])([$0-9A-Z\\\\\\\\_a-z\xC0-\xFF]|[-'][$0-9A-Z_a-z\xC0-\xFF])*)+)","name":"meta.class.perl.6"},{"begin":"(?<=\\\\s)'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.single.perl","patterns":[{"match":"\\\\\\\\['\\\\\\\\]","name":"constant.character.escape.perl"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.perl"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.perl"}},"name":"string.quoted.double.perl","patterns":[{"match":"\\\\\\\\[\\"\\\\\\\\abefnrt]","name":"constant.character.escape.perl"}]},{"begin":"q(q|to|heredoc)*\\\\s*:?(q|to|heredoc)*\\\\s*/(.+)/","end":"\\\\3","name":"string.quoted.single.heredoc.perl"},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\{\\\\{","end":"}}","name":"string.quoted.double.heredoc.brace.perl","patterns":[{"include":"#qq_brace_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\(\\\\(","end":"\\\\)\\\\)","name":"string.quoted.double.heredoc.paren.perl","patterns":[{"include":"#qq_paren_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\[\\\\[","end":"]]","name":"string.quoted.double.heredoc.bracket.perl","patterns":[{"include":"#qq_bracket_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\{","end":"}","name":"string.quoted.single.heredoc.brace.perl","patterns":[{"include":"#qq_brace_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*/","end":"/","name":"string.quoted.single.heredoc.slash.perl","patterns":[{"include":"#qq_slash_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\(","end":"\\\\)","name":"string.quoted.single.heredoc.paren.perl","patterns":[{"include":"#qq_paren_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\\\[","end":"]","name":"string.quoted.single.heredoc.bracket.perl","patterns":[{"include":"#qq_bracket_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*'","end":"'","name":"string.quoted.single.heredoc.single.perl","patterns":[{"include":"#qq_single_string_content"}]},{"begin":"([Qq])(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*:?(x|exec|w|words|ww|quotewords|v|val|q|single|qq|double|s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash|regexp|substr|trans|codes|p|path)*\\\\s*\\"","end":"\\"","name":"string.quoted.single.heredoc.double.perl","patterns":[{"include":"#qq_double_string_content"}]},{"match":"\\\\b\\\\$\\\\w+\\\\b","name":"variable.other.perl"},{"match":"\\\\b(macro|sub|submethod|method|multi|proto|only|rule|token|regex|category)\\\\b","name":"storage.type.declare.routine.perl"},{"match":"\\\\b(self)\\\\b","name":"variable.language.perl"},{"match":"\\\\b(use|require)\\\\b","name":"keyword.other.include.perl"},{"match":"\\\\b(if|else|elsif|unless)\\\\b","name":"keyword.control.conditional.perl"},{"match":"\\\\b(let|my|our|state|temp|has|constant)\\\\b","name":"storage.type.variable.perl"},{"match":"\\\\b(for|loop|repeat|while|until|gather|given)\\\\b","name":"keyword.control.repeat.perl"},{"match":"\\\\b(take|do|when|next|last|redo|return|contend|maybe|defer|default|exit|make|continue|break|goto|leave|async|lift)\\\\b","name":"keyword.control.flowcontrol.perl"},{"match":"\\\\b(is|as|but|trusts|of|returns|handles|where|augment|supersede)\\\\b","name":"storage.modifier.type.constraints.perl"},{"match":"\\\\b(BEGIN|CHECK|INIT|START|FIRST|ENTER|LEAVE|KEEP|UNDO|NEXT|LAST|PRE|POST|END|CATCH|CONTROL|TEMP)\\\\b","name":"meta.function.perl"},{"match":"\\\\b(die|fail|try|warn)\\\\b","name":"keyword.control.control-handlers.perl"},{"match":"\\\\b(prec|irs|ofs|ors|export|deep|binary|unary|reparsed|rw|parsed|cached|readonly|defequiv|will|ref|copy|inline|tighter|looser|equiv|assoc|required)\\\\b","name":"storage.modifier.perl"},{"match":"\\\\b(NaN|Inf)\\\\b","name":"constant.numeric.perl"},{"match":"\\\\b(oo|fatal)\\\\b","name":"keyword.other.pragma.perl"},{"match":"\\\\b(Object|Any|Junction|Whatever|Capture|MatchSignature|Proxy|Matcher|Package|Module|ClassGrammar|Scalar|Array|Hash|KeyHash|KeySet|KeyBagPair|List|Seq|Range|Set|Bag|Mapping|Void|UndefFailure|Exception|Code|Block|Routine|Sub|MacroMethod|Submethod|Regex|Str|str|Blob|Char|ByteCodepoint|Grapheme|StrPos|StrLen|Version|NumComplex|num|complex|Bit|bit|bool|True|FalseIncreasing|Decreasing|Ordered|Callable|AnyCharPositional|Associative|Ordering|KeyExtractorComparator|OrderingPair|IO|KitchenSink|RoleInt|int1??|int2|int4|int8|int16|int32|int64Rat|rat1??|rat2|rat4|rat8|rat16|rat32|rat64Buf|buf1??|buf2|buf4|buf8|buf16|buf32|buf64UInt|uint1??|uint2|uint4|uint8|uint16|uint32uint64|Abstraction|utf8|utf16|utf32)\\\\b","name":"support.type.perl6"},{"match":"\\\\b(div|xx?|mod|also|leg|cmp|before|after|eq|ne|le|lt|not|gt|ge|eqv|fff??|and|andthen|or|xor|orelse|extra|lcm|gcd)\\\\b","name":"keyword.operator.perl"},{"match":"([$%\\\\&@])([!*:=?^~]|(<(?=.+>)))?([$A-Z_a-z\xC0-\xFF])([$0-9A-Z_a-z\xC0-\xFF]|[-'][$0-9A-Z_a-z\xC0-\xFF])*","name":"variable.other.identifier.perl.6"},{"match":"\\\\b(eager|hyper|substr|index|rindex|grep|map|sort|join|lines|hints|chmod|split|reduce|min|max|reverse|truncate|zip|cat|roundrobin|classify|first|sum|keys|values|pairs|defined|delete|exists|elems|end|kv|any|all|one|wrap|shape|key|value|name|pop|push|shift|splice|unshift|floor|ceiling|abs|exp|log|log10|rand|sign|sqrt|sin|cos|tan|round|strand|roots|cis|unpolar|polar|atan2|pick|chop|p5chop|chomp|p5chomp|lc|lcfirst|uc|ucfirst|capitalize|normalize|pack|unpack|quotemeta|comb|samecase|sameaccent|chars|nfd|nfc|nfkd|nfkc|printf|sprintf|caller|evalfile|run|runinstead|nothing|want|bless|chr|ord|gmtime|time|eof|localtime|gethost|getpw|chroot|getlogin|getpeername|kill|fork|wait|perl|graphs|codes|bytes|clone|print|open|read|write|readline|say|seek|close|opendir|readdir|slurp|spurt|shell|run|pos|fmt|vec|link|unlink|symlink|uniq|pair|asin|atan|sec|cosec|cotan|asec|acosec|acotan|sinh|cosh|tanh|asinh|done|acosh??|atanh|sech|cosech|cotanh|sech|acosech|acotanh|asech|ok|nok|plan_ok|dies_ok|lives_ok|skip|todo|pass|flunk|force_todo|use_ok|isa_ok|diag|is_deeply|isnt|like|skip_rest|unlike|cmp_ok|eval_dies_ok|nok_error|eval_lives_ok|approx|is_approx|throws_ok|version_lt|plan|EVAL|succ|pred|times|nonce|once|signature|new|connect|operator|undef|undefine|sleep|from|to|infix|postfix|prefix|circumfix|postcircumfix|minmax|lazy|count|unwrap|getc|pi|e|context|void|quasi|body|each|contains|rewinddir|subst|can|isa|flush|arity|assuming|rewind|callwith|callsame|nextwith|nextsame|attr|eval_elsewhere|none|srand|trim|trim_start|trim_end|lastcall|WHAT|WHERE|HOW|WHICH|VAR|WHO|WHENCE|ACCEPTS|REJECTS|not|true|iterator|by|re|im|invert|flip|gist|flat|tree|is-prime|throws_like|trans)\\\\b","name":"support.function.perl"}],"repository":{"qq_brace_string_content":{"begin":"\\\\{","end":"}","patterns":[{"include":"#qq_brace_string_content"}]},"qq_bracket_string_content":{"begin":"\\\\[","end":"]","patterns":[{"include":"#qq_bracket_string_content"}]},"qq_double_string_content":{"begin":"\\"","end":"\\"","patterns":[{"include":"#qq_double_string_content"}]},"qq_paren_string_content":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#qq_paren_string_content"}]},"qq_single_string_content":{"begin":"'","end":"'","patterns":[{"include":"#qq_single_string_content"}]},"qq_slash_string_content":{"begin":"\\\\\\\\/","end":"\\\\\\\\/","patterns":[{"include":"#qq_slash_string_content"}]}},"scopeName":"source.perl.6","aliases":["perl6"]}`))];export{e as default}; diff --git a/docs/assets/range-gMGfxVwZ.js b/docs/assets/range-gMGfxVwZ.js new file mode 100644 index 0000000..e12fe5e --- /dev/null +++ b/docs/assets/range-gMGfxVwZ.js @@ -0,0 +1 @@ +function c(a,r,t){a=+a,r=+r,t=(h=arguments.length)<2?(r=a,a=0,1):h<3?1:+t;for(var o=-1,h=Math.max(0,Math.ceil((r-a)/t))|0,u=Array(h);++o<h;)u[o]=a+o*t;return u}export{c as t}; diff --git a/docs/assets/range-sshwVRcP.js b/docs/assets/range-sshwVRcP.js new file mode 100644 index 0000000..1b40213 --- /dev/null +++ b/docs/assets/range-sshwVRcP.js @@ -0,0 +1 @@ +import{n as o}from"./toInteger-CDcO32Gx.js";import{l as e}from"./merge-BBX6ug-N.js";var m=Math.ceil,p=Math.max;function c(n,a,r,t){for(var v=-1,f=p(m((a-n)/(r||1)),0),u=Array(f);f--;)u[t?f:++v]=n,n+=r;return u}var d=c;function h(n){return function(a,r,t){return t&&typeof t!="number"&&e(a,r,t)&&(r=t=void 0),a=o(a),r===void 0?(r=a,a=0):r=o(r),t=t===void 0?a<r?1:-1:o(t),d(a,r,t,n)}}var i=h();export{i as t}; diff --git a/docs/assets/razor-B4wA7jBD.js b/docs/assets/razor-B4wA7jBD.js new file mode 100644 index 0000000..cbbad9a --- /dev/null +++ b/docs/assets/razor-B4wA7jBD.js @@ -0,0 +1 @@ +import{t as e}from"./html-Bz1QLM72.js";import{t}from"./csharp-5LNI6iDS.js";var n=Object.freeze(JSON.parse(`{"displayName":"ASP.NET Razor","fileTypes":["razor","cshtml"],"injections":{"string.quoted.double.html":{"patterns":[{"include":"#explicit-razor-expression"},{"include":"#implicit-expression"}]},"string.quoted.single.html":{"patterns":[{"include":"#explicit-razor-expression"},{"include":"#implicit-expression"}]}},"name":"razor","patterns":[{"include":"#razor-control-structures"},{"include":"text.html.basic"}],"repository":{"addTagHelper-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.addTagHelper"},"3":{"patterns":[{"include":"#tagHelper-directive-argument"}]}},"match":"(@)(addTagHelper)\\\\s+([^$]+)?","name":"meta.directive"},"attribute-directive":{"begin":"(@)(attribute)\\\\b\\\\s+","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.attribute"}},"end":"(?<=])|$","name":"meta.directive","patterns":[{"include":"source.cs#attribute-section"}]},"await-prefix":{"match":"(await)\\\\s+","name":"keyword.other.await.cs"},"balanced-brackets-csharp":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.squarebracket.open.cs"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.squarebracket.close.cs"}},"name":"razor.test.balanced.brackets","patterns":[{"include":"source.cs"}]},"balanced-parenthesis-csharp":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.parenthesis.open.cs"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parenthesis.close.cs"}},"name":"razor.test.balanced.parenthesis","patterns":[{"include":"source.cs"}]},"catch-clause":{"begin":"(?:^|(?<=}))\\\\s*(catch)\\\\b\\\\s*?(?=[\\\\n({])","beginCaptures":{"1":{"name":"keyword.control.try.catch.cs"}},"end":"(?<=})","name":"meta.statement.catch.razor","patterns":[{"include":"#catch-condition"},{"include":"source.cs#when-clause"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"catch-condition":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"source.cs#type"}]},"6":{"name":"entity.name.variable.local.cs"}},"match":"(?<type-name>(?:(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name-and-type-args>\\\\g<identifier>\\\\s*(?<type-args>\\\\s*<(?:[^<>]|\\\\g<type-args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name-and-type-args>)*|(?<tuple>\\\\s*\\\\((?:[^()]|\\\\g<tuple>)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*)\\\\s*(?:(\\\\g<identifier>)\\\\b)?"}]},"code-directive":{"begin":"(@)(code)((?=\\\\{)|\\\\s+)","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.code"}},"end":"(?<=})|\\\\s","patterns":[{"include":"#directive-codeblock"}]},"csharp-code-block":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.curlybrace.open.cs"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.curlybrace.close.cs"}},"name":"meta.structure.razor.csharp.codeblock","patterns":[{"include":"#razor-codeblock-body"}]},"csharp-condition":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.parenthesis.open.cs"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"include":"source.cs#local-variable-declaration"},{"include":"source.cs#expression"},{"include":"source.cs#punctuation-comma"},{"include":"source.cs#punctuation-semicolon"}]},"directive-codeblock":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.razor.directive.codeblock.open"}},"contentName":"source.cs","end":"(})","endCaptures":{"1":{"name":"keyword.control.razor.directive.codeblock.close"}},"name":"meta.structure.razor.directive.codeblock","patterns":[{"include":"source.cs#class-or-struct-members"}]},"directive-markupblock":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.razor.directive.codeblock.open"}},"end":"(})","endCaptures":{"1":{"name":"keyword.control.razor.directive.codeblock.close"}},"name":"meta.structure.razor.directive.markblock","patterns":[{"include":"$self"}]},"directives":{"patterns":[{"include":"#code-directive"},{"include":"#functions-directive"},{"include":"#page-directive"},{"include":"#addTagHelper-directive"},{"include":"#removeTagHelper-directive"},{"include":"#tagHelperPrefix-directive"},{"include":"#model-directive"},{"include":"#inherits-directive"},{"include":"#implements-directive"},{"include":"#namespace-directive"},{"include":"#inject-directive"},{"include":"#attribute-directive"},{"include":"#section-directive"},{"include":"#layout-directive"},{"include":"#using-directive"},{"include":"#rendermode-directive"},{"include":"#preservewhitespace-directive"},{"include":"#typeparam-directive"}]},"do-statement":{"begin":"(@)(do)\\\\b\\\\s","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.loop.do.cs"}},"end":"(?<=})","name":"meta.statement.do.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"do-statement-with-optional-transition":{"begin":"(?:^\\\\s*|(@))(do)\\\\b\\\\s","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.loop.do.cs"}},"end":"(?<=})","name":"meta.statement.do.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"else-part":{"begin":"(?:^|(?<=}))\\\\s*(else)\\\\b\\\\s*?(?: (if))?\\\\s*?(?=[\\\\n({])","beginCaptures":{"1":{"name":"keyword.control.conditional.else.cs"},"2":{"name":"keyword.control.conditional.if.cs"}},"end":"(?<=})","name":"meta.statement.else.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"escaped-transition":{"match":"@@","name":"constant.character.escape.razor.transition"},"explicit-razor-expression":{"begin":"(@)\\\\(","beginCaptures":{"0":{"name":"keyword.control.cshtml"},"1":{"patterns":[{"include":"#transition"}]}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.control.cshtml"}},"name":"meta.expression.explicit.cshtml","patterns":[{"include":"source.cs#expression"}]},"finally-clause":{"begin":"(?:^|(?<=}))\\\\s*(finally)\\\\b\\\\s*?(?=[\\\\n{])","beginCaptures":{"1":{"name":"keyword.control.try.finally.cs"}},"end":"(?<=})","name":"meta.statement.finally.razor","patterns":[{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"for-statement":{"begin":"(@)(for)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.loop.for.cs"}},"end":"(?<=})","name":"meta.statement.for.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"for-statement-with-optional-transition":{"begin":"(?:^\\\\s*|(@))(for)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.loop.for.cs"}},"end":"(?<=})","name":"meta.statement.for.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"foreach-condition":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.open.cs"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.close.cs"}},"patterns":[{"captures":{"1":{"name":"keyword.other.var.cs"},"2":{"patterns":[{"include":"source.cs#type"}]},"7":{"name":"entity.name.variable.local.cs"},"8":{"name":"keyword.control.loop.in.cs"}},"match":"(?:\\\\b(var)\\\\b|(?<type-name>(?:(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\\\s*::\\\\s*)?(?<name-and-type-args>\\\\g<identifier>\\\\s*(?<type-args>\\\\s*<(?:[^<>]|\\\\g<type-args>)+>\\\\s*)?)(?:\\\\s*\\\\.\\\\s*\\\\g<name-and-type-args>)*|(?<tuple>\\\\s*\\\\((?:[^()]|\\\\g<tuple>)+\\\\)))(?:\\\\s*\\\\?\\\\s*)?(?:\\\\s*\\\\[(?:\\\\s*,\\\\s*)*]\\\\s*)*))\\\\s+(\\\\g<identifier>)\\\\s+\\\\b(in)\\\\b"},{"captures":{"1":{"name":"keyword.other.var.cs"},"2":{"patterns":[{"include":"source.cs#tuple-declaration-deconstruction-element-list"}]},"3":{"name":"keyword.control.loop.in.cs"}},"match":"(?:\\\\b(var)\\\\b\\\\s*)?(?<tuple>\\\\((?:[^()]|\\\\g<tuple>)+\\\\))\\\\s+\\\\b(in)\\\\b"},{"include":"source.cs#expression"}]},"foreach-statement":{"begin":"(@)(await\\\\s+)?(foreach)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"patterns":[{"include":"#await-prefix"}]},"3":{"name":"keyword.control.loop.foreach.cs"}},"end":"(?<=})","name":"meta.statement.foreach.razor","patterns":[{"include":"#foreach-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"foreach-statement-with-optional-transition":{"begin":"(?:^\\\\s*|(@)(await\\\\s+)?)(foreach)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"patterns":[{"include":"#await-prefix"}]},"3":{"name":"keyword.control.loop.foreach.cs"}},"end":"(?<=})","name":"meta.statement.foreach.razor","patterns":[{"include":"#foreach-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"functions-directive":{"begin":"(@)(functions)((?=\\\\{)|\\\\s+)","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.functions"}},"end":"(?<=})|\\\\s","patterns":[{"include":"#directive-codeblock"}]},"if-statement":{"begin":"(@)(if)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.conditional.if.cs"}},"end":"(?<=})","name":"meta.statement.if.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"if-statement-with-optional-transition":{"begin":"(?:^\\\\s*|(@))(if)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.conditional.if.cs"}},"end":"(?<=})","name":"meta.statement.if.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"implements-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.implements"},"3":{"patterns":[{"include":"source.cs#type"}]}},"match":"(@)(implements)\\\\s+([^$]+)?","name":"meta.directive"},"implicit-expression":{"begin":"(?<![[:alpha:][:alnum:]])(@)","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]}},"contentName":"source.cs","end":"(?=[]\\"')<>{}\\\\s])","name":"meta.expression.implicit.cshtml","patterns":[{"include":"#await-prefix"},{"include":"#implicit-expression-body"}]},"implicit-expression-accessor":{"match":"(?<=\\\\.)[_[:alpha:]][_[:alnum:]]*","name":"variable.other.object.property.cs"},"implicit-expression-accessor-start":{"begin":"([_[:alpha:]][_[:alnum:]]*)","beginCaptures":{"1":{"name":"variable.other.object.cs"}},"end":"(?=[]\\"')<>{}\\\\s])","patterns":[{"include":"#implicit-expression-continuation"}]},"implicit-expression-body":{"end":"(?=[]\\"')<>{}\\\\s])","patterns":[{"include":"#implicit-expression-invocation-start"},{"include":"#implicit-expression-accessor-start"}]},"implicit-expression-continuation":{"end":"(?=[]\\"')<>{}\\\\s])","patterns":[{"include":"#balanced-parenthesis-csharp"},{"include":"#balanced-brackets-csharp"},{"include":"#implicit-expression-invocation"},{"include":"#implicit-expression-accessor"},{"include":"#implicit-expression-extension"}]},"implicit-expression-dot-operator":{"captures":{"1":{"name":"punctuation.accessor.cs"}},"match":"(\\\\.)(?=[_[:alpha:]][_[:alnum:]]*)"},"implicit-expression-invocation":{"match":"(?<=\\\\.)[_[:alpha:]][_[:alnum:]]*(?=\\\\()","name":"entity.name.function.cs"},"implicit-expression-invocation-start":{"begin":"([_[:alpha:]][_[:alnum:]]*)(?=\\\\()","beginCaptures":{"1":{"name":"entity.name.function.cs"}},"end":"(?=[]\\"')<>{}\\\\s])","patterns":[{"include":"#implicit-expression-continuation"}]},"implicit-expression-null-conditional-operator":{"captures":{"1":{"name":"keyword.operator.null-conditional.cs"}},"match":"(\\\\?)(?=[.\\\\[])"},"implicit-expression-null-forgiveness-operator":{"captures":{"1":{"name":"keyword.operator.logical.cs"}},"match":"(!)(?=\\\\.[_[:alpha:]][_[:alnum:]]*|[(?\\\\[])"},"implicit-expression-operator":{"patterns":[{"include":"#implicit-expression-dot-operator"},{"include":"#implicit-expression-null-conditional-operator"},{"include":"#implicit-expression-null-forgiveness-operator"}]},"inherits-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.inherits"},"3":{"patterns":[{"include":"source.cs#type"}]}},"match":"(@)(inherits)\\\\s+([^$]+)?","name":"meta.directive"},"inject-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.inject"},"3":{"patterns":[{"include":"source.cs#type"}]},"4":{"name":"entity.name.variable.property.cs"}},"match":"(@)(inject)\\\\s*([\\\\S\\\\s]+?)?\\\\s*([_[:alpha:]][_[:alnum:]]*)?\\\\s*(?=$)","name":"meta.directive"},"layout-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.layout"},"3":{"patterns":[{"include":"source.cs#type"}]}},"match":"(@)(layout)\\\\s+([^$]+)?","name":"meta.directive"},"lock-statement":{"begin":"(@)(lock)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.other.lock.cs"}},"end":"(?<=})","name":"meta.statement.lock.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"lock-statement-with-optional-transition":{"begin":"(?:^\\\\s*|(@))(lock)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.other.lock.cs"}},"end":"(?<=})","name":"meta.statement.lock.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"model-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.model"},"3":{"patterns":[{"include":"source.cs#type"}]}},"match":"(@)(model)\\\\s+([^$]+)?","name":"meta.directive"},"namespace-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.namespace"},"3":{"patterns":[{"include":"#namespace-directive-argument"}]}},"match":"(@)(namespace)\\\\s+(\\\\S+)?","name":"meta.directive"},"namespace-directive-argument":{"captures":{"1":{"name":"entity.name.type.namespace.cs"},"2":{"name":"punctuation.accessor.cs"}},"match":"([_[:alpha:]][_[:alnum:]]*)(\\\\.)?"},"non-void-tag":{"begin":"(?=<(!)?([^/>\\\\s]+)(\\\\s|/?>))","end":"(</)(\\\\2)\\\\s*(>)|(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"patterns":[{"begin":"(<)(!)?([^/>\\\\s]+)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"constant.character.escape.razor.tagHelperOptOut"},"3":{"name":"entity.name.tag.html"}},"end":"(?=/?>)","patterns":[{"include":"#razor-control-structures"},{"include":"text.html.basic#attribute"}]},{"begin":">","beginCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"end":"(?=</)","patterns":[{"include":"#wellformed-html"},{"include":"$self"}]}]},"optionally-transitioned-csharp-control-structures":{"patterns":[{"include":"#using-statement-with-optional-transition"},{"include":"#if-statement-with-optional-transition"},{"include":"#else-part"},{"include":"#foreach-statement-with-optional-transition"},{"include":"#for-statement-with-optional-transition"},{"include":"#while-statement"},{"include":"#switch-statement-with-optional-transition"},{"include":"#lock-statement-with-optional-transition"},{"include":"#do-statement-with-optional-transition"},{"include":"#try-statement-with-optional-transition"}]},"optionally-transitioned-razor-control-structures":{"patterns":[{"include":"#razor-comment"},{"include":"#razor-codeblock"},{"include":"#explicit-razor-expression"},{"include":"#escaped-transition"},{"include":"#directives"},{"include":"#optionally-transitioned-csharp-control-structures"},{"include":"#implicit-expression"}]},"page-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.page"},"3":{"patterns":[{"include":"source.cs#string-literal"}]}},"match":"(@)(page)\\\\s+([^$]+)?","name":"meta.directive"},"preservewhitespace-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.preservewhitespace"},"3":{"patterns":[{"include":"source.cs#boolean-literal"}]}},"match":"(@)(preservewhitespace)\\\\s+([^$]+)?","name":"meta.directive"},"razor-codeblock":{"begin":"(@)(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.codeblock.open"}},"contentName":"source.cs","end":"(})","endCaptures":{"1":{"name":"keyword.control.razor.directive.codeblock.close"}},"name":"meta.structure.razor.codeblock","patterns":[{"include":"#razor-codeblock-body"}]},"razor-codeblock-body":{"patterns":[{"include":"#text-tag"},{"include":"#wellformed-html"},{"include":"#razor-single-line-markup"},{"include":"#optionally-transitioned-razor-control-structures"},{"include":"source.cs"}]},"razor-comment":{"begin":"(@)(\\\\*)","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.comment.star"}},"contentName":"comment.block.razor","end":"(\\\\*)(@)","endCaptures":{"1":{"name":"keyword.control.razor.comment.star"},"2":{"patterns":[{"include":"#transition"}]}},"name":"meta.comment.razor"},"razor-control-structures":{"patterns":[{"include":"#razor-comment"},{"include":"#razor-codeblock"},{"include":"#explicit-razor-expression"},{"include":"#escaped-transition"},{"include":"#directives"},{"include":"#transitioned-csharp-control-structures"},{"include":"#implicit-expression"}]},"razor-single-line-markup":{"captures":{"1":{"name":"keyword.control.razor.singleLineMarkup"},"2":{"patterns":[{"include":"#razor-control-structures"},{"include":"text.html.basic"}]}},"match":"(@:)([^$]*)$"},"removeTagHelper-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.removeTagHelper"},"3":{"patterns":[{"include":"#tagHelper-directive-argument"}]}},"match":"(@)(removeTagHelper)\\\\s+([^$]+)?","name":"meta.directive"},"rendermode-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.rendermode"},"3":{"patterns":[{"include":"source.cs#type"}]}},"match":"(@)(rendermode)\\\\s+([^$]+)?","name":"meta.directive"},"section-directive":{"begin":"(@)(section)\\\\b\\\\s+([_[:alpha:]][_[:alnum:]]*)?","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.section"},"3":{"name":"variable.other.razor.directive.sectionName"}},"end":"(?<=})","name":"meta.directive.block","patterns":[{"include":"#directive-markupblock"}]},"switch-code-block":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.curlybrace.open.cs"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.curlybrace.close.cs"}},"name":"meta.structure.razor.csharp.codeblock.switch","patterns":[{"include":"source.cs#switch-label"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"switch-statement":{"begin":"(@)(switch)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.switch.cs"}},"end":"(?<=})","name":"meta.statement.switch.razor","patterns":[{"include":"#csharp-condition"},{"include":"#switch-code-block"},{"include":"#razor-codeblock-body"}]},"switch-statement-with-optional-transition":{"begin":"(?:^\\\\s*|(@))(switch)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.switch.cs"}},"end":"(?<=})","name":"meta.statement.switch.razor","patterns":[{"include":"#csharp-condition"},{"include":"#switch-code-block"},{"include":"#razor-codeblock-body"}]},"tagHelper-directive-argument":{"patterns":[{"include":"source.cs#string-literal"},{"include":"#unquoted-string-argument"}]},"tagHelperPrefix-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.tagHelperPrefix"},"3":{"patterns":[{"include":"#tagHelper-directive-argument"}]}},"match":"(@)(tagHelperPrefix)\\\\s+([^$]+)?","name":"meta.directive"},"text-tag":{"begin":"(<text\\\\s*>)","beginCaptures":{"1":{"name":"keyword.control.cshtml.transition.textTag.open"}},"end":"(</text>)","endCaptures":{"1":{"name":"keyword.control.cshtml.transition.textTag.close"}},"patterns":[{"include":"#wellformed-html"},{"include":"$self"}]},"transition":{"match":"@","name":"keyword.control.cshtml.transition"},"transitioned-csharp-control-structures":{"patterns":[{"include":"#using-statement"},{"include":"#if-statement"},{"include":"#else-part"},{"include":"#foreach-statement"},{"include":"#for-statement"},{"include":"#while-statement"},{"include":"#switch-statement"},{"include":"#lock-statement"},{"include":"#do-statement"},{"include":"#try-statement"}]},"try-block":{"begin":"(@)(try)\\\\b\\\\s*","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.try.cs"}},"end":"(?<=})","name":"meta.statement.try.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"try-block-with-optional-transition":{"begin":"(?:^\\\\s*|(@))(try)\\\\b\\\\s*","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.try.cs"}},"end":"(?<=})","name":"meta.statement.try.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"try-statement":{"patterns":[{"include":"#try-block"},{"include":"#catch-clause"},{"include":"#finally-clause"}]},"try-statement-with-optional-transition":{"patterns":[{"include":"#try-block-with-optional-transition"},{"include":"#catch-clause"},{"include":"#finally-clause"}]},"typeparam-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.razor.directive.typeparam"},"3":{"patterns":[{"include":"source.cs#type"}]}},"match":"(@)(typeparam)\\\\s+([^$]+)?","name":"meta.directive"},"unquoted-string-argument":{"match":"[^$]+","name":"string.quoted.double.cs"},"using-alias-directive":{"captures":{"1":{"name":"entity.name.type.alias.cs"},"2":{"name":"keyword.operator.assignment.cs"},"3":{"patterns":[{"include":"source.cs#type"}]}},"match":"([_[:alpha:]][_[:alnum:]]*)\\\\b\\\\s*(=)\\\\s*(.+)\\\\s*"},"using-directive":{"captures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.other.using.cs"},"3":{"patterns":[{"include":"#using-static-directive"},{"include":"#using-alias-directive"},{"include":"#using-standard-directive"}]},"4":{"name":"keyword.control.razor.optionalSemicolon"}},"match":"(@)(using)\\\\b\\\\s+(?![(\\\\s])(.+?)?(;)?$","name":"meta.directive"},"using-standard-directive":{"captures":{"1":{"name":"entity.name.type.namespace.cs"}},"match":"([_[:alpha:]][_[:alnum:]]*)\\\\s*"},"using-statement":{"begin":"(@)(using)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.other.using.cs"}},"end":"(?<=})","name":"meta.statement.using.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"using-statement-with-optional-transition":{"begin":"(?:^\\\\s*|(@))(using)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.other.using.cs"}},"end":"(?<=})","name":"meta.statement.using.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]},"using-static-directive":{"captures":{"1":{"name":"keyword.other.static.cs"},"2":{"patterns":[{"include":"source.cs#type"}]}},"match":"(static)\\\\b\\\\s+(.+)"},"void-tag":{"begin":"(?i)(<)(!)?(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"constant.character.escape.razor.tagHelperOptOut"},"3":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$3.void.html","patterns":[{"include":"text.html.basic#attribute"}]},"wellformed-html":{"patterns":[{"include":"#void-tag"},{"include":"#non-void-tag"}]},"while-statement":{"begin":"(?:(@)|^\\\\s*|(?<=})\\\\s*)(while)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.loop.while.cs"}},"end":"(?<=})|(;)","endCaptures":{"1":{"name":"punctuation.terminator.statement.cs"}},"name":"meta.statement.while.razor","patterns":[{"include":"#csharp-condition"},{"include":"#csharp-code-block"},{"include":"#razor-codeblock-body"}]}},"scopeName":"text.aspnetcorerazor","embeddedLangs":["html","csharp"]}`)),i=[...e,...t,n];export{i as default}; diff --git a/docs/assets/react-BGmjiNul.js b/docs/assets/react-BGmjiNul.js new file mode 100644 index 0000000..240e249 --- /dev/null +++ b/docs/assets/react-BGmjiNul.js @@ -0,0 +1 @@ +import{t as T}from"./chunk-LvLJmgfZ.js";var J=T((e=>{var y=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),M=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),L=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),g=Symbol.iterator;function q(t){return typeof t!="object"||!t?null:(t=g&&t[g]||t["@@iterator"],typeof t=="function"?t:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,H={};function l(t,n,u){this.props=t,this.context=n,this.refs=H,this.updater=u||w}l.prototype.isReactComponent={},l.prototype.setState=function(t,n){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,n,"setState")},l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function k(){}k.prototype=l.prototype;function h(t,n,u){this.props=t,this.context=n,this.refs=H,this.updater=u||w}var m=h.prototype=new k;m.constructor=h,j(m,l.prototype),m.isPureReactComponent=!0;var R=Array.isArray;function _(){}var s={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function v(t,n,u){var r=u.ref;return{$$typeof:y,type:t,key:n,ref:r===void 0?null:r,props:u}}function F(t,n){return v(t.type,n,t.props)}function b(t){return typeof t=="object"&&!!t&&t.$$typeof===y}function z(t){var n={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(u){return n[u]})}var $=/\/+/g;function S(t,n){return typeof t=="object"&&t&&t.key!=null?z(""+t.key):n.toString(36)}function G(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(_,_):(t.status="pending",t.then(function(n){t.status==="pending"&&(t.status="fulfilled",t.value=n)},function(n){t.status==="pending"&&(t.status="rejected",t.reason=n)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,n,u,r,o){var c=typeof t;(c==="undefined"||c==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(c){case"bigint":case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case y:case A:i=!0;break;case E:return i=t._init,p(i(t._payload),n,u,r,o)}}if(i)return o=o(t),i=r===""?"."+S(t,0):r,R(o)?(u="",i!=null&&(u=i.replace($,"$&/")+"/"),p(o,n,u,"",function(B){return B})):o!=null&&(b(o)&&(o=F(o,u+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace($,"$&/")+"/")+i)),n.push(o)),1;i=0;var f=r===""?".":r+":";if(R(t))for(var a=0;a<t.length;a++)r=t[a],c=f+S(r,a),i+=p(r,n,u,c,o);else if(a=q(t),typeof a=="function")for(t=a.call(t),a=0;!(r=t.next()).done;)r=r.value,c=f+S(r,a++),i+=p(r,n,u,c,o);else if(c==="object"){if(typeof t.then=="function")return p(G(t),n,u,r,o);throw n=String(t),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return i}function d(t,n,u){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(c){return n.call(u,c,o++)}),r}function W(t){if(t._status===-1){var n=t._result;n=n(),n.then(function(u){(t._status===0||t._status===-1)&&(t._status=1,t._result=u)},function(u){(t._status===0||t._status===-1)&&(t._status=2,t._result=u)}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return t._result.default;throw t._result}var x=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Y={map:d,forEach:function(t,n,u){d(t,function(){n.apply(this,arguments)},u)},count:function(t){var n=0;return d(t,function(){n++}),n},toArray:function(t){return d(t,function(n){return n})||[]},only:function(t){if(!b(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};e.Activity=V,e.Children=Y,e.Component=l,e.Fragment=O,e.Profiler=P,e.PureComponent=h,e.StrictMode=I,e.Suspense=D,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,e.__COMPILER_RUNTIME={__proto__:null,c:function(t){return s.H.useMemoCache(t)}},e.cache=function(t){return function(){return t.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(t,n,u){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var r=j({},t.props),o=t.key;if(n!=null)for(c in n.key!==void 0&&(o=""+n.key),n)!C.call(n,c)||c==="key"||c==="__self"||c==="__source"||c==="ref"&&n.ref===void 0||(r[c]=n[c]);var c=arguments.length-2;if(c===1)r.children=u;else if(1<c){for(var i=Array(c),f=0;f<c;f++)i[f]=arguments[f+2];r.children=i}return v(t.type,o,r)},e.createContext=function(t){return t={$$typeof:M,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:N,_context:t},t},e.createElement=function(t,n,u){var r,o={},c=null;if(n!=null)for(r in n.key!==void 0&&(c=""+n.key),n)C.call(n,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=n[r]);var i=arguments.length-2;if(i===1)o.children=u;else if(1<i){for(var f=Array(i),a=0;a<i;a++)f[a]=arguments[a+2];o.children=f}if(t&&t.defaultProps)for(r in i=t.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return v(t,c,o)},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:U,render:t}},e.isValidElement=b,e.lazy=function(t){return{$$typeof:E,_payload:{_status:-1,_result:t},_init:W}},e.memo=function(t,n){return{$$typeof:L,type:t,compare:n===void 0?null:n}},e.startTransition=function(t){var n=s.T,u={};s.T=u;try{var r=t(),o=s.S;o!==null&&o(u,r),typeof r=="object"&&r&&typeof r.then=="function"&&r.then(_,x)}catch(c){x(c)}finally{n!==null&&u.types!==null&&(n.types=u.types),s.T=n}},e.unstable_useCacheRefresh=function(){return s.H.useCacheRefresh()},e.use=function(t){return s.H.use(t)},e.useActionState=function(t,n,u){return s.H.useActionState(t,n,u)},e.useCallback=function(t,n){return s.H.useCallback(t,n)},e.useContext=function(t){return s.H.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t,n){return s.H.useDeferredValue(t,n)},e.useEffect=function(t,n){return s.H.useEffect(t,n)},e.useEffectEvent=function(t){return s.H.useEffectEvent(t)},e.useId=function(){return s.H.useId()},e.useImperativeHandle=function(t,n,u){return s.H.useImperativeHandle(t,n,u)},e.useInsertionEffect=function(t,n){return s.H.useInsertionEffect(t,n)},e.useLayoutEffect=function(t,n){return s.H.useLayoutEffect(t,n)},e.useMemo=function(t,n){return s.H.useMemo(t,n)},e.useOptimistic=function(t,n){return s.H.useOptimistic(t,n)},e.useReducer=function(t,n,u){return s.H.useReducer(t,n,u)},e.useRef=function(t){return s.H.useRef(t)},e.useState=function(t){return s.H.useState(t)},e.useSyncExternalStore=function(t,n,u){return s.H.useSyncExternalStore(t,n,u)},e.useTransition=function(){return s.H.useTransition()},e.version="19.2.3"})),K=T(((e,y)=>{y.exports=J()}));export{K as t}; diff --git a/docs/assets/react-dom-C9fstfnp.js b/docs/assets/react-dom-C9fstfnp.js new file mode 100644 index 0000000..5fc4270 --- /dev/null +++ b/docs/assets/react-dom-C9fstfnp.js @@ -0,0 +1 @@ +import{t as p}from"./chunk-LvLJmgfZ.js";import{t as _}from"./react-BGmjiNul.js";var m=p((e=>{var g=_();function f(i){var r="https://react.dev/errors/"+i;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+i+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var o={d:{f:t,r:function(){throw Error(f(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},d=Symbol.for("react.portal");function l(i,r,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:s==null?null:""+s,children:i,containerInfo:r,implementation:n}}var c=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(i,r){if(i==="font")return"";if(typeof r=="string")return r==="use-credentials"?r:""}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,e.createPortal=function(i,r){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(f(299));return l(i,r,null,n)},e.flushSync=function(i){var r=c.T,n=o.p;try{if(c.T=null,o.p=2,i)return i()}finally{c.T=r,o.p=n,o.d.f()}},e.preconnect=function(i,r){typeof i=="string"&&(r?(r=r.crossOrigin,r=typeof r=="string"?r==="use-credentials"?r:"":void 0):r=null,o.d.C(i,r))},e.prefetchDNS=function(i){typeof i=="string"&&o.d.D(i)},e.preinit=function(i,r){if(typeof i=="string"&&r&&typeof r.as=="string"){var n=r.as,s=a(n,r.crossOrigin),y=typeof r.integrity=="string"?r.integrity:void 0,u=typeof r.fetchPriority=="string"?r.fetchPriority:void 0;n==="style"?o.d.S(i,typeof r.precedence=="string"?r.precedence:void 0,{crossOrigin:s,integrity:y,fetchPriority:u}):n==="script"&&o.d.X(i,{crossOrigin:s,integrity:y,fetchPriority:u,nonce:typeof r.nonce=="string"?r.nonce:void 0})}},e.preinitModule=function(i,r){if(typeof i=="string")if(typeof r=="object"&&r){if(r.as==null||r.as==="script"){var n=a(r.as,r.crossOrigin);o.d.M(i,{crossOrigin:n,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0})}}else r??o.d.M(i)},e.preload=function(i,r){if(typeof i=="string"&&typeof r=="object"&&r&&typeof r.as=="string"){var n=r.as,s=a(n,r.crossOrigin);o.d.L(i,n,{crossOrigin:s,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0,type:typeof r.type=="string"?r.type:void 0,fetchPriority:typeof r.fetchPriority=="string"?r.fetchPriority:void 0,referrerPolicy:typeof r.referrerPolicy=="string"?r.referrerPolicy:void 0,imageSrcSet:typeof r.imageSrcSet=="string"?r.imageSrcSet:void 0,imageSizes:typeof r.imageSizes=="string"?r.imageSizes:void 0,media:typeof r.media=="string"?r.media:void 0})}},e.preloadModule=function(i,r){if(typeof i=="string")if(r){var n=a(r.as,r.crossOrigin);o.d.m(i,{as:typeof r.as=="string"&&r.as!=="script"?r.as:void 0,crossOrigin:n,integrity:typeof r.integrity=="string"?r.integrity:void 0})}else o.d.m(i)},e.requestFormReset=function(i){o.d.r(i)},e.unstable_batchedUpdates=function(i,r){return i(r)},e.useFormState=function(i,r,n){return c.H.useFormState(i,r,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version="19.2.3"})),v=p(((e,g)=>{function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(t){console.error(t)}}f(),g.exports=m()}));export{v as t}; diff --git a/docs/assets/react-plotly-DErqWDjh.js b/docs/assets/react-plotly-DErqWDjh.js new file mode 100644 index 0000000..e41efec --- /dev/null +++ b/docs/assets/react-plotly-DErqWDjh.js @@ -0,0 +1,4030 @@ +import{t as Qm}from"./chunk-LvLJmgfZ.js";import{t as ug}from"./react-BGmjiNul.js";import{t as cg}from"./prop-types-C638SUfx.js";var hg=Qm((Dh=>{function Wh(m){"@babel/helpers - typeof";return Wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},Wh(m)}Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.default=n;var Yh=G(ug()),ms=Al(cg());function Al(m){return m&&m.__esModule?m:{default:m}}function tt(m){if(typeof WeakMap!="function")return null;var x=new WeakMap,f=new WeakMap;return(tt=function(v){return v?f:x})(m)}function G(m,x){if(!x&&m&&m.__esModule)return m;if(m===null||Wh(m)!=="object"&&typeof m!="function")return{default:m};var f=tt(x);if(f&&f.has(m))return f.get(m);var v={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in m)if(h!=="default"&&Object.prototype.hasOwnProperty.call(m,h)){var d=l?Object.getOwnPropertyDescriptor(m,h):null;d&&(d.get||d.set)?Object.defineProperty(v,h,d):v[h]=m[h]}return v.default=m,f&&f.set(m,v),v}function e(m,x){if(!(m instanceof x))throw TypeError("Cannot call a class as a function")}function S(m,x){for(var f=0;f<x.length;f++){var v=x[f];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}function A(m,x,f){return x&&S(m.prototype,x),f&&S(m,f),Object.defineProperty(m,"prototype",{writable:!1}),m}function t(m,x){if(typeof x!="function"&&x!==null)throw TypeError("Super expression must either be null or a function");m.prototype=Object.create(x&&x.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),x&&E(m,x)}function E(m,x){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,v){return f.__proto__=v,f},E(m,x)}function w(m){var x=i();return function(){var f=r(m),v;if(x){var l=r(this).constructor;v=Reflect.construct(f,arguments,l)}else v=f.apply(this,arguments);return p(this,v)}}function p(m,x){if(x&&(Wh(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw TypeError("Derived constructors may only return object or undefined");return c(m)}function c(m){if(m===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function r(m){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},r(m)}var o="AfterExport.AfterPlot.Animated.AnimatingFrame.AnimationInterrupted.AutoSize.BeforeExport.BeforeHover.ButtonClicked.Click.ClickAnnotation.Deselect.DoubleClick.Framework.Hover.LegendClick.LegendDoubleClick.Relayout.Relayouting.Restyle.Redraw.Selected.Selecting.SliderChange.SliderEnd.SliderStart.SunburstClick.TreemapClick.Transitioning.TransitionInterrupted.Unhover.WebGlContextLost".split("."),a=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick","plotly_treemapclick"],s=typeof window<"u";function n(m){var x=(function(f){t(l,f);var v=w(l);function l(h){var d;return e(this,l),d=v.call(this,h),d.p=Promise.resolve(),d.resizeHandler=null,d.handlers={},d.syncWindowResize=d.syncWindowResize.bind(c(d)),d.syncEventHandlers=d.syncEventHandlers.bind(c(d)),d.attachUpdateEvents=d.attachUpdateEvents.bind(c(d)),d.getRef=d.getRef.bind(c(d)),d.handleUpdate=d.handleUpdate.bind(c(d)),d.figureCallback=d.figureCallback.bind(c(d)),d.updatePlotly=d.updatePlotly.bind(c(d)),d}return A(l,[{key:"updatePlotly",value:function(h,d,b){var M=this;this.p=this.p.then(function(){if(!M.unmounting){if(!M.el)throw Error("Missing element reference");return m.react(M.el,{data:M.props.data,layout:M.props.layout,config:M.props.config,frames:M.props.frames})}}).then(function(){M.unmounting||(M.syncWindowResize(h),M.syncEventHandlers(),M.figureCallback(d),b&&M.attachUpdateEvents())}).catch(function(g){M.props.onError&&M.props.onError(g)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(h){this.unmounting=!1;var d=h.frames&&h.frames.length?h.frames.length:0,b=this.props.frames&&this.props.frames.length?this.props.frames.length:0,M=!(h.layout===this.props.layout&&h.data===this.props.data&&h.config===this.props.config&&b===d),g=h.revision!==void 0,k=h.revision!==this.props.revision;!M&&(!g||g&&!k)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&s&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),m.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var h=this;!this.el||!this.el.removeListener||a.forEach(function(d){h.el.on(d,h.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var h=this;!this.el||!this.el.removeListener||a.forEach(function(d){h.el.removeListener(d,h.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(h){if(typeof h=="function"){var d=this.el;h({data:d.data,layout:d.layout,frames:this.el._transitionData?this.el._transitionData._frames:null},this.el)}}},{key:"syncWindowResize",value:function(h){var d=this;s&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return m.Plots.resize(d.el)},window.addEventListener("resize",this.resizeHandler),h&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(h){this.el=h,this.props.debug&&s&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var h=this;o.forEach(function(d){var b=h.props["on"+d],M=h.handlers[d],g=!!M;b&&!g?h.addEventHandler(d,b):!b&&g?h.removeEventHandler(d):b&&g&&b!==M&&(h.removeEventHandler(d),h.addEventHandler(d,b))})}},{key:"addEventHandler",value:function(h,d){this.handlers[h]=d,this.el.on(this.getPlotlyEventName(h),this.handlers[h])}},{key:"removeEventHandler",value:function(h){this.el.removeListener(this.getPlotlyEventName(h),this.handlers[h]),delete this.handlers[h]}},{key:"getPlotlyEventName",value:function(h){return"plotly_"+h.toLowerCase()}},{key:"render",value:function(){return Yh.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),l})(Yh.Component);return x.propTypes={data:ms.default.arrayOf(ms.default.object),config:ms.default.object,layout:ms.default.object,frames:ms.default.arrayOf(ms.default.object),revision:ms.default.number,onInitialized:ms.default.func,onPurge:ms.default.func,onError:ms.default.func,onUpdate:ms.default.func,debug:ms.default.bool,style:ms.default.object,className:ms.default.string,useResizeHandler:ms.default.bool,divId:ms.default.string},o.forEach(function(f){x.propTypes["on"+f]=ms.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})),fg=Qm(((Dh,Wh)=>{(function(Yh,ms){typeof Dh=="object"&&typeof Wh=="object"?Wh.exports=ms():typeof define=="function"&&define.amd?define([],ms):typeof Dh=="object"?Dh.Plotly=ms():Yh.Plotly=ms()})(self,function(){return(function(){var Yh={6713:(function(tt,G,e){var S=e(34809),A={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var t in A){var E=t.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");S.addStyleRule(E,A[t])}}),14187:(function(tt,G,e){tt.exports=e(47908)}),20273:(function(tt,G,e){tt.exports=e(58218)}),6457:(function(tt,G,e){tt.exports=e(89362)}),15849:(function(tt,G,e){tt.exports=e(53794)}),38847:(function(tt,G,e){tt.exports=e(29698)}),7659:(function(tt,G,e){tt.exports=e(51252)}),60089:(function(tt,G,e){tt.exports=e(48050)}),22084:(function(tt,G,e){tt.exports=e(58075)}),35892:(function(tt,G,e){tt.exports=e(9419)}),81204:(function(tt,G,e){tt.exports=e(28128)}),55857:(function(tt,G,e){tt.exports=e(47050)}),12862:(function(tt,G,e){tt.exports=e(91405)}),97629:(function(tt,G,e){tt.exports=e(34406)}),67549:(function(tt,G,e){tt.exports=e(17430)}),2660:(function(tt,G,e){tt.exports=e(91995)}),86071:(function(tt,G,e){tt.exports=e(81264)}),66200:(function(tt,G,e){tt.exports=e(42849)}),53446:(function(tt,G,e){tt.exports=e(52213)}),86899:(function(tt,G,e){tt.exports=e(91132)}),13430:(function(tt,G,e){tt.exports=e(50453)}),21548:(function(tt,G,e){tt.exports=e(29251)}),53939:(function(tt,G,e){tt.exports=e(72892)}),1902:(function(tt,G,e){tt.exports=e(74461)}),29096:(function(tt,G,e){tt.exports=e(66143)}),23820:(function(tt,G,e){tt.exports=e(81955)}),82017:(function(tt,G,e){tt.exports=e(36858)}),113:(function(tt,G,e){tt.exports=e(92106)}),20260:(function(tt,G,e){var S=e(67549);S.register([e(20273),e(15849),e(21548),e(1902),e(29096),e(23820),e(12862),e(1639),e(10067),e(53446),e(31014),e(113),e(78170),e(8202),e(92382),e(82017),e(86899),e(54357),e(66903),e(90594),e(71680),e(7412),e(55857),e(784),e(74221),e(22084),e(44001),e(97281),e(12345),e(53939),e(29117),e(5410),e(5057),e(81204),e(86071),e(14226),e(35892),e(2660),e(96599),e(28573),e(76832),e(60089),e(51469),e(97629),e(27700),e(7659),e(11780),e(27195),e(6457),e(84639),e(14187),e(66200),e(13430),e(90590),e(38847)]),tt.exports=S}),28573:(function(tt,G,e){tt.exports=e(25638)}),90594:(function(tt,G,e){tt.exports=e(75297)}),7412:(function(tt,G,e){tt.exports=e(58859)}),27700:(function(tt,G,e){tt.exports=e(12683)}),5410:(function(tt,G,e){tt.exports=e(6305)}),29117:(function(tt,G,e){tt.exports=e(83910)}),78170:(function(tt,G,e){tt.exports=e(49913)}),12345:(function(tt,G,e){tt.exports=e(15186)}),96599:(function(tt,G,e){tt.exports=e(71760)}),54357:(function(tt,G,e){tt.exports=e(17822)}),51469:(function(tt,G,e){tt.exports=e(56534)}),74221:(function(tt,G,e){tt.exports=e(18070)}),44001:(function(tt,G,e){tt.exports=e(52378)}),14226:(function(tt,G,e){tt.exports=e(30929)}),5057:(function(tt,G,e){tt.exports=e(83866)}),11780:(function(tt,G,e){tt.exports=e(66939)}),27195:(function(tt,G,e){tt.exports=e(23748)}),84639:(function(tt,G,e){tt.exports=e(73304)}),1639:(function(tt,G,e){tt.exports=e(12864)}),90590:(function(tt,G,e){tt.exports=e(99855)}),97281:(function(tt,G,e){tt.exports=e(91450)}),784:(function(tt,G,e){tt.exports=e(51943)}),8202:(function(tt,G,e){tt.exports=e(80809)}),66903:(function(tt,G,e){tt.exports=e(95984)}),76832:(function(tt,G,e){tt.exports=e(51671)}),92382:(function(tt,G,e){tt.exports=e(47181)}),10067:(function(tt,G,e){tt.exports=e(37276)}),71680:(function(tt,G,e){tt.exports=e(75703)}),31014:(function(tt,G,e){tt.exports=e(38261)}),11645:(function(tt){tt.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]}),50222:(function(tt,G,e){var S=e(11645),A=e(80337),t=e(54826),E=e(78032).templatedArray;e(35081),tt.exports=E("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:A({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:S.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:S.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",t.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",t.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",t.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",t.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:A({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})}),60317:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(3377).draw;tt.exports=function(p){var c=p._fullLayout;if(S.filterVisible(c.annotations).length&&p._fullData.length)return S.syncOrAsync([t,E],p)};function E(p){var c=p._fullLayout;S.filterVisible(c.annotations).forEach(function(i){var r=A.getFromId(p,i.xref),o=A.getFromId(p,i.yref),a=A.getRefType(i.xref),s=A.getRefType(i.yref);i._extremes={},a==="range"&&w(i,r),s==="range"&&w(i,o)})}function w(p,c){var i=c._id,r=i.charAt(0),o=p[r],a=p["a"+r],s=p[r+"ref"],n=p["a"+r+"ref"],m=p["_"+r+"padplus"],x=p["_"+r+"padminus"],f={x:1,y:-1}[r]*p[r+"shift"],v=3*p.arrowsize*p.arrowwidth||0,l=v+f,h=v-f,d=3*p.startarrowsize*p.arrowwidth||0,b=d+f,M=d-f,g;if(n===s){var k=A.findExtremes(c,[c.r2c(o)],{ppadplus:l,ppadminus:h}),L=A.findExtremes(c,[c.r2c(a)],{ppadplus:Math.max(m,b),ppadminus:Math.max(x,M)});g={min:[k.min[0],L.min[0]],max:[k.max[0],L.max[0]]}}else b=a?b+a:b,M=a?M-a:M,g=A.findExtremes(c,[c.r2c(o)],{ppadplus:Math.max(m,l,b),ppadminus:Math.max(x,h,M)});p._extremes[i]=g}}),6035:(function(tt,G,e){var S=e(34809),A=e(33626),t=e(78032).arrayEditor;tt.exports={hasClickToShow:E,onClick:w};function E(i,r){var o=p(i,r);return o.on.length>0||o.explicitOff.length>0}function w(i,r){var o=p(i,r),a=o.on,s=o.off.concat(o.explicitOff),n={},m=i._fullLayout.annotations,x,f;if(a.length||s.length){for(x=0;x<a.length;x++)f=t(i.layout,"annotations",m[a[x]]),f.modifyItem("visible",!0),S.extendFlat(n,f.getUpdateObj());for(x=0;x<s.length;x++)f=t(i.layout,"annotations",m[s[x]]),f.modifyItem("visible",!1),S.extendFlat(n,f.getUpdateObj());return A.call("update",i,{},n)}}function p(i,r){var o=i._fullLayout.annotations,a=[],s=[],n=[],m=(r||[]).length,x,f,v,l,h,d,b,M;for(x=0;x<o.length;x++)if(v=o[x],l=v.clicktoshow,l){for(f=0;f<m;f++)if(h=r[f],d=h.xaxis,b=h.yaxis,d._id===v.xref&&b._id===v.yref&&d.d2r(h.x)===c(v._xclick,d)&&b.d2r(h.y)===c(v._yclick,b)){M=v.visible?l==="onout"?s:n:a,M.push(x);break}f===m&&v.visible&&l==="onout"&&s.push(x)}return{on:a,off:s,explicitOff:n}}function c(i,r){return r.type==="log"?r.l2r(i):r.d2r(i)}}),53271:(function(tt,G,e){var S=e(34809),A=e(78766);tt.exports=function(t,E,w,p){p("opacity");var c=p("bgcolor"),i=p("bordercolor"),r=A.opacity(i);p("borderpad");var o=p("borderwidth"),a=p("showarrow");if(p("text",a?" ":w._dfltTitle.annotation),p("textangle"),S.coerceFont(p,"font",w.font),p("width"),p("align"),p("height")&&p("valign"),a){var s=p("arrowside"),n,m;s.indexOf("end")!==-1&&(n=p("arrowhead"),m=p("arrowsize")),s.indexOf("start")!==-1&&(p("startarrowhead",n),p("startarrowsize",m)),p("arrowcolor",r?E.bordercolor:A.defaultLine),p("arrowwidth",(r&&o||1)*2),p("standoff"),p("startstandoff")}var x=p("hovertext"),f=w.hoverlabel||{};if(x){var v=p("hoverlabel.bgcolor",f.bgcolor||(A.opacity(c)?A.rgb(c):A.defaultLine)),l=p("hoverlabel.bordercolor",f.bordercolor||A.contrast(v)),h=S.extendFlat({},f.font);h.color||(h.color=l),S.coerceFont(p,"hoverlabel.font",h)}p("captureevents",!!x)}}),59741:(function(tt,G,e){var S=e(10721),A=e(8083);tt.exports=function(t,E,w,p){E||(E={});var c=w==="log"&&E.type==="linear",i=w==="linear"&&E.type==="log";if(!(c||i))return;var r=t._fullLayout.annotations,o=E._id.charAt(0),a,s;function n(x){var f=a[x],v=null;v=c?A(f,E.range):10**f,S(v)||(v=null),p(s+x,v)}for(var m=0;m<r.length;m++)a=r[m],s="annotations["+m+"].",a[o+"ref"]===E._id&&n(o),a["a"+o+"ref"]===E._id&&n("a"+o)}}),63737:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(59008),E=e(53271),w=e(50222);tt.exports=function(c,i){t(c,i,{name:"annotations",handleItemDefaults:p})};function p(c,i,r){function o(L,u){return S.coerce(c,i,w,L,u)}var a=o("visible"),s=o("clicktoshow");if(a||s){E(c,i,r,o);for(var n=i.showarrow,m=["x","y"],x=[-10,-30],f={_fullLayout:r},v=0;v<2;v++){var l=m[v],h=A.coerceRef(c,i,f,l,"","paper");if(h!=="paper"&&A.getFromId(f,h)._annIndices.push(i._index),A.coercePosition(i,f,o,h,l,.5),n){var d="a"+l,b=A.coerceRef(c,i,f,d,"pixel",["pixel","paper"]);b!=="pixel"&&b!==h&&(b=i[d]="pixel");var M=b==="pixel"?x[v]:.4;A.coercePosition(i,f,o,b,d,M)}o(l+"anchor"),o(l+"shift")}if(S.noneOrAll(c,i,["x","y"]),n&&S.noneOrAll(c,i,["ax","ay"]),s){var g=o("xclick"),k=o("yclick");i._xclick=g===void 0?i.x:A.cleanPosition(g,f,i.xref),i._yclick=k===void 0?i.y:A.cleanPosition(k,f,i.yref)}}}}),3377:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(44122),E=e(34809),w=E.strTranslate,p=e(29714),c=e(78766),i=e(62203),r=e(32141),o=e(30635),a=e(27983),s=e(14751),n=e(78032).arrayEditor,m=e(23768);tt.exports={draw:x,drawOne:f,drawRaw:l};function x(h){var d=h._fullLayout;d._infolayer.selectAll(".annotation").remove();for(var b=0;b<d.annotations.length;b++)d.annotations[b].visible&&f(h,b);return t.previousPromises(h)}function f(h,d){var b=h._fullLayout.annotations[d]||{},M=p.getFromId(h,b.xref),g=p.getFromId(h,b.yref);M&&M.setScale(),g&&g.setScale(),l(h,b,d,!1,M,g)}function v(h,d,b,M,g){var k=g[b],L=g[b+"ref"],u=b.indexOf("y")!==-1,T=p.getRefType(L)==="domain",C=u?M.h:M.w;return h?T?k+(u?-d:d)/h._length:h.p2r(h.r2p(k)+d):k+(u?-d:d)/C}function l(h,d,b,M,g,k){var L=h._fullLayout,u=h._fullLayout._size,T=h._context.edits,C,_;M?(C="annotation-"+M,_=M+".annotations"):(C="annotation",_="annotations");var F=n(h.layout,_,d),O=F.modifyBase,j=F.modifyItem,B=F.getUpdateObj;L._infolayer.selectAll("."+C+'[data-index="'+b+'"]').remove();var U="clip"+L._uid+"_ann"+b;if(!d._input||d.visible===!1){S.selectAll("#"+U).remove();return}var P={x:{},y:{}},N=+d.textangle||0,V=L._infolayer.append("g").classed(C,!0).attr("data-index",String(b)).style("opacity",d.opacity),Y=V.append("g").classed("annotation-text-g",!0),K=T[d.showarrow?"annotationTail":"annotationPosition"],nt=d.captureevents||T.annotationText||K;function ft(yt){var kt={index:b,annotation:d._input,fullAnnotation:d,event:yt};return M&&(kt.subplotId=M),kt}var ct=Y.append("g").style("pointer-events",nt?"all":null).call(a,"pointer").on("click",function(){h._dragging=!1,h.emit("plotly_clickannotation",ft(S.event))});d.hovertext&&ct.on("mouseover",function(){var yt=d.hoverlabel,kt=yt.font,Lt=this.getBoundingClientRect(),St=h.getBoundingClientRect();r.loneHover({x0:Lt.left-St.left,x1:Lt.right-St.left,y:(Lt.top+Lt.bottom)/2-St.top,text:d.hovertext,color:yt.bgcolor,borderColor:yt.bordercolor,fontFamily:kt.family,fontSize:kt.size,fontColor:kt.color,fontWeight:kt.weight,fontStyle:kt.style,fontVariant:kt.variant,fontShadow:kt.fontShadow,fontLineposition:kt.fontLineposition,fontTextcase:kt.fontTextcase},{container:L._hoverlayer.node(),outerContainer:L._paper.node(),gd:h})}).on("mouseout",function(){r.loneUnhover(L._hoverlayer.node())});var J=d.borderwidth,et=J+d.borderpad,Q=ct.append("rect").attr("class","bg").style("stroke-width",J+"px").call(c.stroke,d.bordercolor).call(c.fill,d.bgcolor),Z=d.width||d.height,st=L._topclips.selectAll("#"+U).data(Z?[0]:[]);st.enter().append("clipPath").classed("annclip",!0).attr("id",U).append("rect"),st.exit().remove();var ot=d.font,rt=L._meta?E.templateString(d.text,L._meta):d.text,X=ct.append("text").classed("annotation-text",!0).text(rt);function ut(yt){return yt.call(i.font,ot).attr({"text-anchor":{left:"start",right:"end"}[d.align]||"middle"}),o.convertToTspans(yt,h,lt),yt}function lt(){var yt=X.selectAll("a");yt.size()===1&&yt.text()===X.text()&&ct.insert("a",":first-child").attr({"xlink:xlink:href":yt.attr("xlink:href"),"xlink:xlink:show":yt.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(Q.node());var kt=ct.select(".annotation-text-math-group"),Lt=!kt.empty(),St=i.bBox((Lt?kt:X).node()),Ot=St.width,Ht=St.height,Kt=d.width||Ot,Gt=d.height||Ht,Et=Math.round(Kt+2*et),At=Math.round(Gt+2*et);function qt(He,or){return or==="auto"&&(or=He<.3333333333333333?"left":He>.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[or]}for(var jt=!1,de=["x","y"],Xt=0;Xt<de.length;Xt++){var ye=de[Xt],Le=d[ye+"ref"]||ye,ve=d["a"+ye+"ref"],ke={x:g,y:k}[ye],Pe=(N+(ye==="x"?0:-90))*Math.PI/180,me=Et*Math.cos(Pe),be=At*Math.sin(Pe),je=Math.abs(me)+Math.abs(be),nr=d[ye+"anchor"],Vt=d[ye+"shift"]*(ye==="x"?1:-1),Qt=P[ye],te,ee,Bt,Wt,$t,Tt=p.getRefType(Le);if(ke&&Tt!=="domain"){var _t=ke.r2fraction(d[ye]);(_t<0||_t>1)&&(ve===Le?(_t=ke.r2fraction(d["a"+ye]),(_t<0||_t>1)&&(jt=!0)):jt=!0),te=ke._offset+ke.r2p(d[ye]),Wt=.5}else{var It=Tt==="domain";ye==="x"?(Bt=d[ye],te=It?ke._offset+ke._length*Bt:te=u.l+u.w*Bt):(Bt=1-d[ye],te=It?ke._offset+ke._length*Bt:te=u.t+u.h*Bt),Wt=d.showarrow?.5:Bt}if(d.showarrow){Qt.head=te;var Mt=d["a"+ye];if($t=me*qt(.5,d.xanchor)-be*qt(.5,d.yanchor),ve===Le){var Ct=p.getRefType(ve);Ct==="domain"?(ye==="y"&&(Mt=1-Mt),Qt.tail=ke._offset+ke._length*Mt):Ct==="paper"?ye==="y"?(Mt=1-Mt,Qt.tail=u.t+u.h*Mt):Qt.tail=u.l+u.w*Mt:Qt.tail=ke._offset+ke.r2p(Mt),ee=$t}else Qt.tail=te+Mt,ee=$t+Mt;Qt.text=Qt.tail+$t;var Ut=L[ye==="x"?"width":"height"];if(Le==="paper"&&(Qt.head=E.constrain(Qt.head,1,Ut-1)),ve==="pixel"){var Zt=-Math.max(Qt.tail-3,Qt.text),Me=Math.min(Qt.tail+3,Qt.text)-Ut;Zt>0?(Qt.tail+=Zt,Qt.text+=Zt):Me>0&&(Qt.tail-=Me,Qt.text-=Me)}Qt.tail+=Vt,Qt.head+=Vt}else $t=je*qt(Wt,nr),ee=$t,Qt.text=te+$t;Qt.text+=Vt,$t+=Vt,ee+=Vt,d["_"+ye+"padplus"]=je/2+ee,d["_"+ye+"padminus"]=je/2-ee,d["_"+ye+"size"]=je,d["_"+ye+"shift"]=$t}if(jt){ct.remove();return}var Be=0,ge=0;if(d.align!=="left"&&(Be=(Kt-Ot)*(d.align==="center"?.5:1)),d.valign!=="top"&&(ge=(Gt-Ht)*(d.valign==="middle"?.5:1)),Lt)kt.select("svg").attr({x:et+Be-1,y:et+ge}).call(i.setClipUrl,Z?U:null,h);else{var Ee=et+ge-St.top,Ne=et+Be-St.left;X.call(o.positionText,Ne,Ee).call(i.setClipUrl,Z?U:null,h)}st.select("rect").call(i.setRect,et,et,Kt,Gt),Q.call(i.setRect,J/2,J/2,Et-J,At-J),ct.call(i.setTranslate,Math.round(P.x.text-Et/2),Math.round(P.y.text-At/2)),Y.attr({transform:"rotate("+N+","+P.x.text+","+P.y.text+")"});var sr=function(He,or){V.selectAll(".annotation-arrow-g").remove();var Pr=P.x.head,br=P.y.head,ue=P.x.tail+He,we=P.y.tail+or,Ce=P.x.text+He,Ge=P.y.text+or,Ke=E.rotationXYMatrix(N,Ce,Ge),ar=E.apply2DTransform(Ke),We=E.apply2DTransform2(Ke),$e=+Q.attr("width"),yr=+Q.attr("height"),Cr=Ce-.5*$e,Sr=Cr+$e,Dr=Ge-.5*yr,Or=Dr+yr,ei=[[Cr,Dr,Cr,Or],[Cr,Or,Sr,Or],[Sr,Or,Sr,Dr],[Sr,Dr,Cr,Dr]].map(We);if(!ei.reduce(function(Br,$r){return Br^!!E.segmentsIntersect(Pr,br,Pr+1e6,br+1e6,$r[0],$r[1],$r[2],$r[3])},!1)){ei.forEach(function(Br){var $r=E.segmentsIntersect(ue,we,Pr,br,Br[0],Br[1],Br[2],Br[3]);$r&&(ue=$r.x,we=$r.y)});var Nr=d.arrowwidth,re=d.arrowcolor,ae=d.arrowside,wr=V.append("g").style({opacity:c.opacity(re)}).classed("annotation-arrow-g",!0),_r=wr.append("path").attr("d","M"+ue+","+we+"L"+Pr+","+br).style("stroke-width",Nr+"px").call(c.stroke,c.rgb(re));if(m(_r,ae,d),T.annotationPosition&&_r.node().parentNode&&!M){var lr=Pr,qe=br;if(d.standoff){var pr=Math.sqrt((Pr-ue)**2+(br-we)**2);lr+=d.standoff*(ue-Pr)/pr,qe+=d.standoff*(we-br)/pr}var xr=wr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ue-lr)+","+(we-qe),transform:w(lr,qe)}).style("stroke-width",Nr+6+"px").call(c.stroke,"rgba(0,0,0,0)").call(c.fill,"rgba(0,0,0,0)"),fr,ur;s.init({element:xr.node(),gd:h,prepFn:function(){var Br=i.getTranslate(ct);fr=Br.x,ur=Br.y,g&&g.autorange&&O(g._name+".autorange",!0),k&&k.autorange&&O(k._name+".autorange",!0)},moveFn:function(Br,$r){var Jr=ar(fr,ur),Zi=Jr[0]+Br,mi=Jr[1]+$r;ct.call(i.setTranslate,Zi,mi),j("x",v(g,Br,"x",u,d)),j("y",v(k,$r,"y",u,d)),d.axref===d.xref&&j("ax",v(g,Br,"ax",u,d)),d.ayref===d.yref&&j("ay",v(k,$r,"ay",u,d)),wr.attr("transform",w(Br,$r)),Y.attr({transform:"rotate("+N+","+Zi+","+mi+")"})},doneFn:function(){A.call("_guiRelayout",h,B());var Br=document.querySelector(".js-notes-box-panel");Br&&Br.redraw(Br.selectedObj)}})}}};if(d.showarrow&&sr(0,0),K){var _e;s.init({element:ct.node(),gd:h,prepFn:function(){_e=Y.attr("transform")},moveFn:function(He,or){var Pr="pointer";if(d.showarrow)d.axref===d.xref?j("ax",v(g,He,"ax",u,d)):j("ax",d.ax+He),d.ayref===d.yref?j("ay",v(k,or,"ay",u.w,d)):j("ay",d.ay+or),sr(He,or);else{if(M)return;var br,ue;if(g)br=v(g,He,"x",u,d);else{var we=d._xsize/u.w,Ce=d.x+(d._xshift-d.xshift)/u.w-we/2;br=s.align(Ce+He/u.w,we,0,1,d.xanchor)}if(k)ue=v(k,or,"y",u,d);else{var Ge=d._ysize/u.h,Ke=d.y-(d._yshift+d.yshift)/u.h-Ge/2;ue=s.align(Ke-or/u.h,Ge,0,1,d.yanchor)}j("x",br),j("y",ue),(!g||!k)&&(Pr=s.getCursor(g?.5:br,k?.5:ue,d.xanchor,d.yanchor))}Y.attr({transform:w(He,or)+_e}),a(ct,Pr)},clickFn:function(He,or){d.captureevents&&h.emit("plotly_clickannotation",ft(or))},doneFn:function(){a(ct),A.call("_guiRelayout",h,B());var He=document.querySelector(".js-notes-box-panel");He&&He.redraw(He.selectedObj)}})}}T.annotationText?X.call(o.makeEditable,{delegate:ct,gd:h}).call(ut).on("edit",function(yt){d.text=yt,this.call(ut),j("text",yt),g&&g.autorange&&O(g._name+".autorange",!0),k&&k.autorange&&O(k._name+".autorange",!0),A.call("_guiRelayout",h,B())}):X.call(ut)}}),23768:(function(tt,G,e){var S=e(45568),A=e(78766),t=e(11645),E=e(34809),w=E.strScale,p=E.strRotate,c=E.strTranslate;tt.exports=function(i,r,o){var a=i.node(),s=t[o.arrowhead||0],n=t[o.startarrowhead||0],m=(o.arrowwidth||1)*(o.arrowsize||1),x=(o.arrowwidth||1)*(o.startarrowsize||1),f=r.indexOf("start")>=0,v=r.indexOf("end")>=0,l=s.backoff*m+o.standoff,h=n.backoff*x+o.startstandoff,d,b,M,g;if(a.nodeName==="line"){d={x:+i.attr("x1"),y:+i.attr("y1")},b={x:+i.attr("x2"),y:+i.attr("y2")};var k=d.x-b.x,L=d.y-b.y;if(M=Math.atan2(L,k),g=M+Math.PI,l&&h&&l+h>Math.sqrt(k*k+L*L)){V();return}if(l){if(l*l>k*k+L*L){V();return}var u=l*Math.cos(M),T=l*Math.sin(M);b.x+=u,b.y+=T,i.attr({x2:b.x,y2:b.y})}if(h){if(h*h>k*k+L*L){V();return}var C=h*Math.cos(M),_=h*Math.sin(M);d.x-=C,d.y-=_,i.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var F=a.getTotalLength(),O="";if(F<l+h){V();return}var j=a.getPointAtLength(0),B=a.getPointAtLength(.1);M=Math.atan2(j.y-B.y,j.x-B.x),d=a.getPointAtLength(Math.min(h,F)),O="0px,"+h+"px,";var U=a.getPointAtLength(F),P=a.getPointAtLength(F-.1);g=Math.atan2(U.y-P.y,U.x-P.x),b=a.getPointAtLength(Math.max(0,F-l));var N=O?h+l:l;O+=F-N+"px,"+F+"px",i.style("stroke-dasharray",O)}function V(){i.style("stroke-dasharray","0px,100px")}function Y(K,nt,ft,ct){K.path&&(K.noRotate&&(ft=0),S.select(a.parentNode).append("path").attr({class:i.attr("class"),d:K.path,transform:c(nt.x,nt.y)+p(ft*180/Math.PI)+w(ct)}).style({fill:A.rgb(o.arrowcolor),"stroke-width":0}))}f&&Y(n,d,M,x),v&&Y(s,b,g,m)}}),3599:(function(tt,G,e){var S=e(3377),A=e(6035);tt.exports={moduleType:"component",name:"annotations",layoutAttributes:e(50222),supplyLayoutDefaults:e(63737),includeBasePlot:e(20706)("annotations"),calcAutorange:e(60317),draw:S.draw,drawOne:S.drawOne,drawRaw:S.drawRaw,hasClickToShow:A.hasClickToShow,onClick:A.onClick,convertCoords:e(59741)}}),38239:(function(tt,G,e){var S=e(50222),A=e(13582).overrideAll,t=e(78032).templatedArray;tt.exports=A(t("annotation",{visible:S.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:S.xanchor,xshift:S.xshift,yanchor:S.yanchor,yshift:S.yshift,text:S.text,textangle:S.textangle,font:S.font,width:S.width,height:S.height,opacity:S.opacity,align:S.align,valign:S.valign,bgcolor:S.bgcolor,bordercolor:S.bordercolor,borderpad:S.borderpad,borderwidth:S.borderwidth,showarrow:S.showarrow,arrowcolor:S.arrowcolor,arrowhead:S.arrowhead,startarrowhead:S.startarrowhead,arrowside:S.arrowside,arrowsize:S.arrowsize,startarrowsize:S.startarrowsize,arrowwidth:S.arrowwidth,standoff:S.standoff,startstandoff:S.startstandoff,hovertext:S.hovertext,hoverlabel:S.hoverlabel,captureevents:S.captureevents}),"calc","from-root")}),47979:(function(tt,G,e){var S=e(34809),A=e(29714);tt.exports=function(E){for(var w=E.fullSceneLayout.annotations,p=0;p<w.length;p++)t(w[p],E);E.fullLayout._infolayer.selectAll(".annotation-"+E.id).remove()};function t(E,w){var p=w.fullSceneLayout.domain,c=w.fullLayout._size,i={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};E._xa={},S.extendFlat(E._xa,i),A.setConvert(E._xa),E._xa._offset=c.l+p.x[0]*c.w,E._xa.l2p=function(){return .5*(1+E._pdata[0]/E._pdata[3])*c.w*(p.x[1]-p.x[0])},E._ya={},S.extendFlat(E._ya,i),A.setConvert(E._ya),E._ya._offset=c.t+(1-p.y[1])*c.h,E._ya.l2p=function(){return .5*(1-E._pdata[1]/E._pdata[3])*c.h*(p.y[1]-p.y[0])}}}),34232:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(59008),E=e(53271),w=e(38239);tt.exports=function(c,i,r){t(c,i,{name:"annotations",handleItemDefaults:p,fullLayout:r.fullLayout})};function p(c,i,r,o){function a(n,m){return S.coerce(c,i,w,n,m)}function s(n){var m=n+"axis",x={_fullLayout:{}};return x._fullLayout[m]=r[m],A.coercePosition(i,x,a,n,n,.5)}a("visible")&&(E(c,i,o.fullLayout,a),s("x"),s("y"),s("z"),S.noneOrAll(c,i,["x","y","z"]),i.xref="x",i.yref="y",i.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),i.showarrow&&(i.axref="pixel",i.ayref="pixel",a("ax",-10),a("ay",-30),S.noneOrAll(c,i,["ax","ay"])))}}),9756:(function(tt,G,e){var S=e(3377).drawRaw,A=e(25802),t=["x","y","z"];tt.exports=function(E){for(var w=E.fullSceneLayout,p=E.dataScale,c=w.annotations,i=0;i<c.length;i++){for(var r=c[i],o=!1,a=0;a<3;a++){var s=t[a],n=r[s],m=w[s+"axis"].r2fraction(n);if(m<0||m>1){o=!0;break}}o?E.fullLayout._infolayer.select(".annotation-"+E.id+'[data-index="'+i+'"]').remove():(r._pdata=A(E.glplot.cameraParams,[w.xaxis.r2l(r.x)*p[0],w.yaxis.r2l(r.y)*p[1],w.zaxis.r2l(r.z)*p[2]]),S(E.graphDiv,r,i,E.id,r._xa,r._ya))}}}),83348:(function(tt,G,e){var S=e(33626),A=e(34809);tt.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(38239)}}},layoutAttributes:e(38239),handleDefaults:e(34232),includeBasePlot:t,convert:e(47979),draw:e(9756)};function t(E,w){var p=S.subplotsRegistry.gl3d;if(p)for(var c=p.attrRegex,i=Object.keys(E),r=0;r<i.length;r++){var o=i[r];c.test(o)&&(E[o].annotations||[]).length&&(A.pushUnique(w._basePlotModules,p),A.pushUnique(w._subplots.gl3d,o))}}}),37177:(function(tt,G,e){tt.exports=e(24453),e(23428),e(1401),e(72210),e(28569),e(81133),e(78295),e(25512),e(42645),e(62324),e(91662),e(66445),e(50506),e(84756),e(41858),e(57985)}),29698:(function(tt,G,e){var S=e(37177),A=e(34809),t=e(63821),E=t.EPOCHJD,w=t.ONEDAY,p={valType:"enumerated",values:A.sortObjectKeys(S.calendars),editType:"calc",dflt:"gregorian"},c=function(g,k,L,u){var T={};return T[L]=p,A.coerce(g,k,T,L,u)},i=function(g,k,L,u){for(var T=0;T<L.length;T++)c(g,k,L[T]+"calendar",u.calendar)},r={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},o={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},a={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},s="##",n={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:s,w:s,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function m(g,k,L){for(var u=Math.floor((k+.05)/w)+E,T=f(L).fromJD(u),C=0,_,F,O,j,B;(C=g.indexOf("%",C))!==-1;)_=g.charAt(C+1),_==="0"||_==="-"||_==="_"?(O=3,F=g.charAt(C+2),_==="_"&&(_="-")):(F=_,_="0",O=2),j=n[F],j?(B=j===s?s:T.formatDate(j[_]),g=g.substr(0,C)+B+g.substr(C+O),C+=B.length):C+=O;return g}var x={};function f(g){var k=x[g];return k||(k=x[g]=S.instance(g),k)}function v(g){return A.extendFlat({},p,{description:g})}function l(g){return"Sets the calendar system to use with `"+g+"` date data."}var h={xcalendar:v(l("x"))},d=A.extendFlat({},h,{ycalendar:v(l("y"))}),b=A.extendFlat({},d,{zcalendar:v(l("z"))}),M=v(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));tt.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:d,bar:d,box:d,heatmap:d,contour:d,histogram:d,histogram2d:d,histogram2dcontour:d,scatter3d:b,surface:b,mesh3d:b,scattergl:d,ohlc:h,candlestick:h},layout:{calendar:v(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:M},yaxis:{calendar:M},scene:{xaxis:{calendar:M},yaxis:{calendar:M},zaxis:{calendar:M}},polar:{radialaxis:{calendar:M}}},transforms:{filter:{valuecalendar:v(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:v(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:p,handleDefaults:c,handleTraceDefaults:i,CANONICAL_SUNDAY:o,CANONICAL_TICK:r,DFLTRANGE:a,getCal:f,worldCalFmt:m}}),10229:(function(tt,G){G.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],G.defaultLine="#444",G.lightLine="#eee",G.background="#fff",G.borderLine="#BEC8D9",G.lightFraction=90.9090909090909}),78766:(function(tt,G,e){var S=e(65657),A=e(10721),t=e(87800).isTypedArray,E=tt.exports={},w=e(10229);E.defaults=w.defaults;var p=E.defaultLine=w.defaultLine;E.lightLine=w.lightLine;var c=E.background=w.background;E.tinyRGB=function(r){var o=r.toRgb();return"rgb("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+")"},E.rgb=function(r){return E.tinyRGB(S(r))},E.opacity=function(r){return r?S(r).getAlpha():0},E.addOpacity=function(r,o){var a=S(r).toRgb();return"rgba("+Math.round(a.r)+", "+Math.round(a.g)+", "+Math.round(a.b)+", "+o+")"},E.combine=function(r,o){var a=S(r).toRgb();if(a.a===1)return S(r).toRgbString();var s=S(o||c).toRgb(),n=s.a===1?s:{r:255*(1-s.a)+s.r*s.a,g:255*(1-s.a)+s.g*s.a,b:255*(1-s.a)+s.b*s.a};return S({r:n.r*(1-a.a)+a.r*a.a,g:n.g*(1-a.a)+a.g*a.a,b:n.b*(1-a.a)+a.b*a.a}).toRgbString()},E.interpolate=function(r,o,a){var s=S(r).toRgb(),n=S(o).toRgb();return S({r:a*s.r+(1-a)*n.r,g:a*s.g+(1-a)*n.g,b:a*s.b+(1-a)*n.b}).toRgbString()},E.contrast=function(r,o,a){var s=S(r);return s.getAlpha()!==1&&(s=S(E.combine(r,c))),(s.isDark()?o?s.lighten(o):c:a?s.darken(a):p).toString()},E.stroke=function(r,o){var a=S(o);r.style({stroke:E.tinyRGB(a),"stroke-opacity":a.getAlpha()})},E.fill=function(r,o){var a=S(o);r.style({fill:E.tinyRGB(a),"fill-opacity":a.getAlpha()})},E.clean=function(r){if(!(!r||typeof r!="object")){var o=Object.keys(r),a,s,n,m;for(a=0;a<o.length;a++)if(n=o[a],m=r[n],n.substr(n.length-5)==="color")if(Array.isArray(m))for(s=0;s<m.length;s++)m[s]=i(m[s]);else r[n]=i(m);else if(n.substr(n.length-10)==="colorscale"&&Array.isArray(m))for(s=0;s<m.length;s++)Array.isArray(m[s])&&(m[s][1]=i(m[s][1]));else if(Array.isArray(m)){var x=m[0];if(!Array.isArray(x)&&x&&typeof x=="object")for(s=0;s<m.length;s++)E.clean(m[s])}else m&&typeof m=="object"&&!t(m)&&E.clean(m)}};function i(r){if(A(r)||typeof r!="string")return r;var o=r.trim();if(o.substr(0,3)!=="rgb")return r;var a=o.match(/^rgba?\s*\(([^()]*)\)$/);if(!a)return r;var s=a[1].trim().split(/\s*[\s,]\s*/),n=o.charAt(3)==="a"&&s.length===4;if(!n&&s.length!==3)return r;for(var m=0;m<s.length;m++){if(!s[m].length||(s[m]=Number(s[m]),!(s[m]>=0)))return r;if(m===3)s[m]>1&&(s[m]=1);else if(s[m]>=1)return r}var x=Math.round(s[0]*255)+", "+Math.round(s[1]*255)+", "+Math.round(s[2]*255);return n?"rgba("+x+", "+s[3]+")":"rgb("+x+")"}}),25158:(function(tt,G,e){var S=e(25829),A=e(80337),t=e(93049).extendFlat,E=e(13582).overrideAll;tt.exports=E({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:S.linecolor,outlinewidth:S.linewidth,bordercolor:S.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:S.minor.tickmode,nticks:S.nticks,tick0:S.tick0,dtick:S.dtick,tickvals:S.tickvals,ticktext:S.ticktext,ticks:t({},S.ticks,{dflt:""}),ticklabeloverflow:t({},S.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:S.ticklen,tickwidth:S.tickwidth,tickcolor:S.tickcolor,ticklabelstep:S.ticklabelstep,showticklabels:S.showticklabels,labelalias:S.labelalias,tickfont:A({}),tickangle:S.tickangle,tickformat:S.tickformat,tickformatstops:S.tickformatstops,tickprefix:S.tickprefix,showtickprefix:S.showtickprefix,ticksuffix:S.ticksuffix,showticksuffix:S.showticksuffix,separatethousands:S.separatethousands,exponentformat:S.exponentformat,minexponent:S.minexponent,showexponent:S.showexponent,title:{text:{valType:"string"},font:A({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:A({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")}),34554:(function(tt){tt.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}}),42097:(function(tt,G,e){var S=e(34809),A=e(78032),t=e(22777),E=e(87433),w=e(12036),p=e(54616),c=e(25158);tt.exports=function(i,r,o){var a=A.newContainer(r,"colorbar"),s=i.colorbar||{};function n(O,j){return S.coerce(s,a,c,O,j)}var m=o.margin||{t:0,b:0,l:0,r:0},x=o.width-m.l-m.r,f=o.height-m.t-m.b,v=n("orientation")==="v";n("thickness",n("thicknessmode")==="fraction"?30/(v?x:f):30),n("len",n("lenmode")==="fraction"?1:v?f:x);var l=n("yref"),h=n("xref"),d=l==="paper",b=h==="paper",M,g,k,L="left";v?(k="middle",L=b?"left":"right",M=b?1.02:1,g=.5):(k=d?"bottom":"top",L="center",M=.5,g=d?1.02:1),S.coerce(s,a,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:M}},"x"),S.coerce(s,a,{y:{valType:"number",min:d?-2:0,max:d?3:1,dflt:g}},"y"),n("xanchor",L),n("xpad"),n("yanchor",k),n("ypad"),S.noneOrAll(s,a,["x","y"]),n("outlinecolor"),n("outlinewidth"),n("bordercolor"),n("borderwidth"),n("bgcolor");var u=S.coerce(s,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");n("ticklabeloverflow",u.indexOf("inside")===-1?"hide past div":"hide past domain"),t(s,a,n,"linear");var T=o.font,C={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:T};u.indexOf("inside")!==-1&&(C.bgColor="black"),p(s,a,n,"linear",C),w(s,a,n,"linear",C),E(s,a,n,"linear",C),n("title.text",o._dfltTitle.colorbar);var _=a.showticklabels?a.tickfont:T,F=S.extendFlat({},T,{family:_.family,size:S.bigFont(_.size)});S.coerceFont(n,"title.font",F),n("title.side",v?"top":"right")}}),5881:(function(tt,G,e){var S=e(45568),A=e(65657),t=e(44122),E=e(33626),w=e(29714),p=e(14751),c=e(34809),i=c.strTranslate,r=e(93049).extendFlat,o=e(27983),a=e(62203),s=e(78766),n=e(17240),m=e(30635),x=e(65477).flipScale,f=e(97655),v=e(40957),l=e(25829),h=e(4530),d=h.LINE_SPACING,b=h.FROM_TL,M=h.FROM_BR,g=e(34554).cn;function k(F){var O=F._fullLayout._infolayer.selectAll("g."+g.colorbar).data(L(F),function(j){return j._id});O.enter().append("g").attr("class",function(j){return j._id}).classed(g.colorbar,!0),O.each(function(j){var B=S.select(this);c.ensureSingle(B,"rect",g.cbbg),c.ensureSingle(B,"g",g.cbfills),c.ensureSingle(B,"g",g.cblines),c.ensureSingle(B,"g",g.cbaxis,function(P){P.classed(g.crisp,!0)}),c.ensureSingle(B,"g",g.cbtitleunshift,function(P){P.append("g").classed(g.cbtitle,!0)}),c.ensureSingle(B,"rect",g.cboutline);var U=u(B,j,F);U&&U.then&&(F._promises||[]).push(U),F._context.edits.colorbarPosition&&T(B,j,F)}),O.exit().each(function(j){t.autoMargin(F,j._id)}).remove(),O.order()}function L(F){var O=F._fullLayout,j=F.calcdata,B=[],U,P,N,V;function Y(ot){return r(ot,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function K(){typeof V.calc=="function"?V.calc(F,N,U):(U._fillgradient=P.reversescale?x(P.colorscale):P.colorscale,U._zrange=[P[V.min],P[V.max]])}for(var nt=0;nt<j.length;nt++)if(N=j[nt][0].trace,N._module){var ft=N._module.colorbar;if(N.visible===!0&&ft)for(var ct=Array.isArray(ft),J=ct?ft:[ft],et=0;et<J.length;et++){V=J[et];var Q=V.container;P=Q?N[Q]:N,P&&P.showscale&&(U=Y(P.colorbar),U._id="cb"+N.uid+(ct&&Q?"-"+Q:""),U._traceIndex=N.index,U._propPrefix=(Q?Q+".":"")+"colorbar.",U._meta=N._meta,K(),B.push(U))}}for(var Z in O._colorAxes)if(P=O[Z],P.showscale){var st=O._colorAxes[Z];U=Y(P.colorbar),U._id="cb"+Z,U._propPrefix=Z+".colorbar.",U._meta=O._meta,V={min:"cmin",max:"cmax"},st[0]!=="heatmap"&&(N=st[1],V.calc=N._module.colorbar.calc),K(),B.push(U)}return B}function u(F,O,j){var B=O.orientation==="v",U=O.len,P=O.lenmode,N=O.thickness,V=O.thicknessmode,Y=O.outlinewidth,K=O.borderwidth,nt=O.bgcolor,ft=O.xanchor,ct=O.yanchor,J=O.xpad,et=O.ypad,Q=O.x,Z=B?O.y:1-O.y,st=O.yref==="paper",ot=O.xref==="paper",rt=j._fullLayout,X=rt._size,ut=O._fillcolor,lt=O._line,yt=O.title,kt=yt.side,Lt=O._zrange||S.extent((typeof ut=="function"?ut:lt.color).domain()),St=typeof lt.color=="function"?lt.color:function(){return lt.color},Ot=typeof ut=="function"?ut:function(){return ut},Ht=O._levels,Kt=C(j,O,Lt),Gt=Kt.fill,Et=Kt.line,At=Math.round(N*(V==="fraction"?B?X.w:X.h:1)),qt=At/(B?X.w:X.h),jt=Math.round(U*(P==="fraction"?B?X.h:X.w:1)),de=jt/(B?X.h:X.w),Xt=ot?X.w:j._fullLayout.width,ye=st?X.h:j._fullLayout.height,Le=Math.round(B?Q*Xt+J:Z*ye+et),ve={center:.5,right:1}[ft]||0,ke={top:1,middle:.5}[ct]||0,Pe=B?Q-ve*qt:Z-ke*qt,me=B?Z-ke*de:Q-ve*de,be=Math.round(B?ye*(1-me):Xt*me);O._lenFrac=de,O._thickFrac=qt,O._uFrac=Pe,O._vFrac=me;var je=O._axis=_(j,O,Lt);je.position=qt+(B?Q+J/X.w:Z+et/X.h);var nr=["top","bottom"].indexOf(kt)!==-1;if(B&&nr&&(je.title.side=kt,je.titlex=Q+J/X.w,je.titley=me+(yt.side==="top"?de-et/X.h:et/X.h)),!B&&!nr&&(je.title.side=kt,je.titley=Z+et/X.h,je.titlex=me+J/X.w),lt.color&&O.tickmode==="auto"){je.tickmode="linear",je.tick0=Ht.start;var Vt=Ht.size,Qt=c.constrain(jt/50,4,15)+1,te=(Lt[1]-Lt[0])/((O.nticks||Qt)*Vt);if(te>1){var ee=10**Math.floor(Math.log(te)/Math.LN10);Vt*=ee*c.roundUp(te/ee,[2,5,10]),(Math.abs(Ht.start)/Ht.size+1e-6)%1<2e-6&&(je.tick0=0)}je.dtick=Vt}je.domain=B?[me+et/X.h,me+de-et/X.h]:[me+J/X.w,me+de-J/X.w],je.setScale(),F.attr("transform",i(Math.round(X.l),Math.round(X.t)));var Bt=F.select("."+g.cbtitleunshift).attr("transform",i(-Math.round(X.l),-Math.round(X.t))),Wt=je.ticklabelposition,$t=je.title.font.size,Tt=F.select("."+g.cbaxis),_t,It=0,Mt=0;function Ct(ge,Ee){var Ne={propContainer:je,propName:O._propPrefix+"title",traceIndex:O._traceIndex,_meta:O._meta,placeholder:rt._dfltTitle.colorbar,containerGroup:F.select("."+g.cbtitle)},sr=ge.charAt(0)==="h"?ge.substr(1):"h"+ge;F.selectAll("."+sr+",."+sr+"-math-group").remove(),n.draw(j,ge,r(Ne,Ee||{}))}function Ut(){if(B&&nr||!B&&!nr){var ge,Ee;kt==="top"&&(ge=J+X.l+Xt*Q,Ee=et+X.t+ye*(1-me-de)+3+$t*.75),kt==="bottom"&&(ge=J+X.l+Xt*Q,Ee=et+X.t+ye*(1-me)-3-$t*.25),kt==="right"&&(Ee=et+X.t+ye*Z+3+$t*.75,ge=J+X.l+Xt*me),Ct(je._id+"title",{attributes:{x:ge,y:Ee,"text-anchor":B?"start":"middle"}})}}function Zt(){if(B&&!nr||!B&&nr){var ge=je.position||0,Ee=je._offset+je._length/2,Ne,sr;if(kt==="right")sr=Ee,Ne=X.l+Xt*ge+10+$t*(je.showticklabels?1:.5);else if(Ne=Ee,kt==="bottom"&&(sr=X.t+ye*ge+10+(Wt.indexOf("inside")===-1?je.tickfont.size:0)+(je.ticks==="intside"?0:O.ticklen||0)),kt==="top"){var _e=yt.text.split("<br>").length;sr=X.t+ye*ge+10-At-d*$t*_e}Ct((B?"h":"v")+je._id+"title",{avoid:{selection:S.select(j).selectAll("g."+je._id+"tick"),side:kt,offsetTop:B?0:X.t,offsetLeft:B?X.l:0,maxShift:B?rt.width:rt.height},attributes:{x:Ne,y:sr,"text-anchor":"middle"},transform:{rotate:B?-90:0,offset:0}})}}function Me(){if(!B&&!nr||B&&nr){var ge=F.select("."+g.cbtitle),Ee=ge.select("text"),Ne=[-Y/2,Y/2],sr=ge.select(".h"+je._id+"title-math-group").node(),_e=15.6;Ee.node()&&(_e=parseInt(Ee.node().style.fontSize,10)*d);var He;if(sr?(He=a.bBox(sr),Mt=He.width,It=He.height,It>_e&&(Ne[1]-=(It-_e)/2)):Ee.node()&&!Ee.classed(g.jsPlaceholder)&&(He=a.bBox(Ee.node()),Mt=He.width,It=He.height),B){if(It){if(It+=5,kt==="top")je.domain[1]-=It/X.h,Ne[1]*=-1;else{je.domain[0]+=It/X.h;var or=m.lineCount(Ee);Ne[1]+=(1-or)*_e}ge.attr("transform",i(Ne[0],Ne[1])),je.setScale()}}else Mt&&(kt==="right"&&(je.domain[0]+=(Mt+$t/2)/X.w),ge.attr("transform",i(Ne[0],Ne[1])),je.setScale())}F.selectAll("."+g.cbfills+",."+g.cblines).attr("transform",B?i(0,Math.round(X.h*(1-je.domain[1]))):i(Math.round(X.w*je.domain[0]),0)),Tt.attr("transform",B?i(0,Math.round(-X.t)):i(Math.round(-X.l),0));var Pr=F.select("."+g.cbfills).selectAll("rect."+g.cbfill).attr("style","").data(Gt);Pr.enter().append("rect").classed(g.cbfill,!0).attr("style",""),Pr.exit().remove();var br=Lt.map(je.c2p).map(Math.round).sort(function(Ke,ar){return Ke-ar});Pr.each(function(Ke,ar){var We=[ar===0?Lt[0]:(Gt[ar]+Gt[ar-1])/2,ar===Gt.length-1?Lt[1]:(Gt[ar]+Gt[ar+1])/2].map(je.c2p).map(Math.round);B&&(We[1]=c.constrain(We[1]+(We[1]>We[0])?1:-1,br[0],br[1]));var $e=S.select(this).attr(B?"x":"y",Le).attr(B?"y":"x",S.min(We)).attr(B?"width":"height",Math.max(At,2)).attr(B?"height":"width",Math.max(S.max(We)-S.min(We),2));if(O._fillgradient)a.gradient($e,j,O._id,B?"vertical":"horizontalreversed",O._fillgradient,"fill");else{var yr=Ot(Ke).replace("e-","");$e.attr("fill",A(yr).toHexString())}});var ue=F.select("."+g.cblines).selectAll("path."+g.cbline).data(lt.color&<.width?Et:[]);ue.enter().append("path").classed(g.cbline,!0),ue.exit().remove(),ue.each(function(Ke){var ar=Le,We=Math.round(je.c2p(Ke))+lt.width/2%1;S.select(this).attr("d","M"+(B?ar+","+We:We+","+ar)+(B?"h":"v")+At).call(a.lineGroupStyle,lt.width,St(Ke),lt.dash)}),Tt.selectAll("g."+je._id+"tick,path").remove();var we=Le+At+(Y||0)/2-(O.ticks==="outside"?1:0),Ce=w.calcTicks(je),Ge=w.getTickSigns(je)[2];return w.drawTicks(j,je,{vals:je.ticks==="inside"?w.clipEnds(je,Ce):Ce,layer:Tt,path:w.makeTickPath(je,we,Ge),transFn:w.makeTransTickFn(je)}),w.drawLabels(j,je,{vals:Ce,layer:Tt,transFn:w.makeTransTickLabelFn(je),labelFns:w.makeLabelFns(je,we)})}function Be(){var ge,Ee=At+Y/2;Wt.indexOf("inside")===-1&&(ge=a.bBox(Tt.node()),Ee+=B?ge.width:ge.height),_t=Bt.select("text");var Ne=0,sr=B&&kt==="top",_e=!B&&kt==="right",He=0;if(_t.node()&&!_t.classed(g.jsPlaceholder)){var or,Pr=Bt.select(".h"+je._id+"title-math-group").node();Pr&&(B&&nr||!B&&!nr)?(ge=a.bBox(Pr),Ne=ge.width,or=ge.height):(ge=a.bBox(Bt.node()),Ne=ge.right-X.l-(B?Le:be),or=ge.bottom-X.t-(B?be:Le),!B&&kt==="top"&&(Ee+=ge.height,He=ge.height)),_e&&(_t.attr("transform",i(Ne/2+$t/2,0)),Ne*=2),Ee=Math.max(Ee,B?Ne:or)}var br=(B?J:et)*2+Ee+K+Y/2,ue=0;!B&&yt.text&&ct==="bottom"&&Z<=0&&(ue=br/2,br+=ue,He+=ue),rt._hColorbarMoveTitle=ue,rt._hColorbarMoveCBTitle=He;var we=K+Y,Ce=(B?Le:be)-we/2-(B?J:0),Ge=(B?be:Le)-(B?jt:et+He-ue);F.select("."+g.cbbg).attr("x",Ce).attr("y",Ge).attr(B?"width":"height",Math.max(br-ue,2)).attr(B?"height":"width",Math.max(jt+we,2)).call(s.fill,nt).call(s.stroke,O.bordercolor).style("stroke-width",K);var Ke=_e?Math.max(Ne-10,0):0;F.selectAll("."+g.cboutline).attr("x",(B?Le:be+J)+Ke).attr("y",(B?be+et-jt:Le)+(sr?It:0)).attr(B?"width":"height",Math.max(At,2)).attr(B?"height":"width",Math.max(jt-(B?2*et+It:2*J+Ke),2)).call(s.stroke,O.outlinecolor).style({fill:"none","stroke-width":Y});var ar=B?ve*br:0,We=B?0:(1-ke)*br-He;if(ar=ot?X.l-ar:-ar,We=st?X.t-We:-We,F.attr("transform",i(ar,We)),!B&&(K||A(nt).getAlpha()&&!A.equals(rt.paper_bgcolor,nt))){var $e=Tt.selectAll("text"),yr=$e[0].length,Cr=F.select("."+g.cbbg).node(),Sr=a.bBox(Cr),Dr=a.getTranslate(F),Or=2;$e.each(function(xr,fr){var ur=0,Br=yr-1;if(fr===ur||fr===Br){var $r=a.bBox(this),Jr=a.getTranslate(this),Zi;if(fr===Br){var mi=$r.right+Jr.x;Zi=Sr.right+Dr.x+be-K-Or+Q-mi,Zi>0&&(Zi=0)}else if(fr===ur){var Ei=$r.left+Jr.x;Zi=Sr.left+Dr.x+be+K+Or-Ei,Zi<0&&(Zi=0)}Zi&&(yr<3?this.setAttribute("transform","translate("+Zi+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ei={},Nr=b[ft],re=M[ft],ae=b[ct],wr=M[ct],_r=br-At;B?(P==="pixels"?(ei.y=Z,ei.t=jt*ae,ei.b=jt*wr):(ei.t=ei.b=0,ei.yt=Z+U*ae,ei.yb=Z-U*wr),V==="pixels"?(ei.x=Q,ei.l=br*Nr,ei.r=br*re):(ei.l=_r*Nr,ei.r=_r*re,ei.xl=Q-N*Nr,ei.xr=Q+N*re)):(P==="pixels"?(ei.x=Q,ei.l=jt*Nr,ei.r=jt*re):(ei.l=ei.r=0,ei.xl=Q+U*Nr,ei.xr=Q-U*re),V==="pixels"?(ei.y=1-Z,ei.t=br*ae,ei.b=br*wr):(ei.t=_r*ae,ei.b=_r*wr,ei.yt=Z-N*ae,ei.yb=Z+N*wr));var lr=O.y<.5?"b":"t",qe=O.x<.5?"l":"r";j._fullLayout._reservedMargin[O._id]={};var pr={r:rt.width-Ce-ar,l:Ce+ei.r,b:rt.height-Ge-We,t:Ge+ei.b};ot&&st?t.autoMargin(j,O._id,ei):ot?j._fullLayout._reservedMargin[O._id][lr]=pr[lr]:st||B?j._fullLayout._reservedMargin[O._id][qe]=pr[qe]:j._fullLayout._reservedMargin[O._id][lr]=pr[lr]}return c.syncOrAsync([t.previousPromises,Ut,Me,Zt,t.previousPromises,Be],j)}function T(F,O,j){var B=O.orientation==="v",U=j._fullLayout._size,P,N,V;p.init({element:F.node(),gd:j,prepFn:function(){P=F.attr("transform"),o(F)},moveFn:function(Y,K){F.attr("transform",P+i(Y,K)),N=p.align((B?O._uFrac:O._vFrac)+Y/U.w,B?O._thickFrac:O._lenFrac,0,1,O.xanchor),V=p.align((B?O._vFrac:1-O._uFrac)-K/U.h,B?O._lenFrac:O._thickFrac,0,1,O.yanchor),o(F,p.getCursor(N,V,O.xanchor,O.yanchor))},doneFn:function(){if(o(F),N!==void 0&&V!==void 0){var Y={};Y[O._propPrefix+"x"]=N,Y[O._propPrefix+"y"]=V,O._traceIndex===void 0?E.call("_guiRelayout",j,Y):E.call("_guiRestyle",j,Y,O._traceIndex)}}})}function C(F,O,j){var B=O._levels,U=[],P=[],N,V,Y=B.end+B.size/100,K=B.size,nt=1.001*j[0]-.001*j[1],ft=1.001*j[1]-.001*j[0];for(V=0;V<1e5&&(N=B.start+V*K,!(K>0?N>=Y:N<=Y));V++)N>nt&&N<ft&&U.push(N);if(O._fillgradient)P=[0];else if(typeof O._fillcolor=="function"){var ct=O._filllevels;if(ct)for(Y=ct.end+ct.size/100,K=ct.size,V=0;V<1e5&&(N=ct.start+V*K,!(K>0?N>=Y:N<=Y));V++)N>j[0]&&N<j[1]&&P.push(N);else P=U.map(function(J){return J-B.size/2}),P.push(P[P.length-1]+B.size)}else O._fillcolor&&typeof O._fillcolor=="string"&&(P=[0]);return B.size<0&&(U.reverse(),P.reverse()),{line:U,fill:P}}function _(F,O,j){var B=F._fullLayout,U=O.orientation==="v",P={type:"linear",range:j,tickmode:O.tickmode,nticks:O.nticks,tick0:O.tick0,dtick:O.dtick,tickvals:O.tickvals,ticktext:O.ticktext,ticks:O.ticks,ticklen:O.ticklen,tickwidth:O.tickwidth,tickcolor:O.tickcolor,showticklabels:O.showticklabels,labelalias:O.labelalias,ticklabelposition:O.ticklabelposition,ticklabeloverflow:O.ticklabeloverflow,ticklabelstep:O.ticklabelstep,tickfont:O.tickfont,tickangle:O.tickangle,tickformat:O.tickformat,exponentformat:O.exponentformat,minexponent:O.minexponent,separatethousands:O.separatethousands,showexponent:O.showexponent,showtickprefix:O.showtickprefix,tickprefix:O.tickprefix,showticksuffix:O.showticksuffix,ticksuffix:O.ticksuffix,title:O.title,showline:!0,anchor:"free",side:U?"right":"bottom",position:1},N=U?"y":"x",V={type:"linear",_id:N+O._id},Y={letter:N,font:B.font,noAutotickangles:N==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:B.calendar};function K(nt,ft){return c.coerce(P,V,l,nt,ft)}return f(P,V,K,Y,B),v(P,V,K,Y),V}tt.exports={draw:k}}),91362:(function(tt,G,e){var S=e(34809);tt.exports=function(A){return S.isPlainObject(A.colorbar)}}),96919:(function(tt,G,e){tt.exports={moduleType:"component",name:"colorbar",attributes:e(25158),supplyDefaults:e(42097),draw:e(5881).draw,hasColorbar:e(91362)}}),87163:(function(tt,G,e){var S=e(25158),A=e(90694).counter,t=e(62994),E=e(19017).scales;t(E);function w(p){return"`"+p+"`"}tt.exports=function(p,c){p||(p=""),c||(c={});var i=c.cLetter||"c",r="onlyIfNumerical"in c?c.onlyIfNumerical:!!p,o="noScale"in c?c.noScale:p==="marker.line",a="showScaleDflt"in c?c.showScaleDflt:i==="z",s=typeof c.colorscaleDflt=="string"?E[c.colorscaleDflt]:null,n=c.editTypeOverride||"",m=p?p+".":"",x,f;"colorAttr"in c?(x=c.colorAttr,f=c.colorAttr):(x={z:"z",c:"color"}[i],f="in "+w(m+x)),r&&""+f;var v=i+"auto",l=i+"min",h=i+"max",d=i+"mid";w(m+v);var b=w(m+l),M=w(m+h);b+""+M;var g={};g[l]=g[h]=void 0;var k={};k[v]=!1;var L={};return x==="color"&&(L.color={valType:"color",arrayOk:!0,editType:n||"style"},c.anim&&(L.color.anim=!0)),L[v]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:g},L[l]={valType:"number",dflt:null,editType:n||"plot",impliedEdits:k},L[h]={valType:"number",dflt:null,editType:n||"plot",impliedEdits:k},L[d]={valType:"number",dflt:null,editType:"calc",impliedEdits:g},L.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},L.autocolorscale={valType:"boolean",dflt:c.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},L.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(L.showscale={valType:"boolean",dflt:a,editType:"calc"},L.colorbar=S),c.noColorAxis||(L.coloraxis={valType:"subplotid",regex:A("coloraxis"),dflt:null,editType:"calc"}),L}}),28379:(function(tt,G,e){var S=e(10721),A=e(34809),t=e(65477).extractOpts;tt.exports=function(E,w,p){var c=E._fullLayout,i=p.vals,r=p.containerStr,o=r?A.nestedProperty(w,r).get():w,a=t(o),s=a.auto!==!1,n=a.min,m=a.max,x=a.mid,f=function(){return A.aggNums(Math.min,null,i)},v=function(){return A.aggNums(Math.max,null,i)};if(n===void 0?n=f():s&&(n=o._colorAx&&S(n)?Math.min(n,f()):f()),m===void 0?m=v():s&&(m=o._colorAx&&S(m)?Math.max(m,v()):v()),s&&x!==void 0&&(m-x>x-n?n=x-(m-x):m-x<x-n&&(m=x+(x-n))),n===m&&(n-=.5,m+=.5),a._sync("min",n),a._sync("max",m),a.autocolorscale){var l=n*m<0?c.colorscale.diverging:n>=0?c.colorscale.sequential:c.colorscale.sequentialminus;a._sync("colorscale",l)}}}),67623:(function(tt,G,e){var S=e(34809),A=e(65477).hasColorscale,t=e(65477).extractOpts;tt.exports=function(E,w){function p(n,m){var x=n["_"+m];x!==void 0&&(n[m]=x)}function c(n,m){var x=m.container?S.nestedProperty(n,m.container).get():n;if(x)if(x.coloraxis)x._colorAx=w[x.coloraxis];else{var f=t(x),v=f.auto;(v||f.min===void 0)&&p(x,m.min),(v||f.max===void 0)&&p(x,m.max),f.autocolorscale&&p(x,"colorscale")}}for(var i=0;i<E.length;i++){var r=E[i],o=r._module.colorbar;if(o)if(Array.isArray(o))for(var a=0;a<o.length;a++)c(r,o[a]);else c(r,o);A(r,"marker.line")&&c(r,{container:"marker.line",min:"cmin",max:"cmax"})}for(var s in w._colorAxes)c(w[s],{min:"cmin",max:"cmax"})}}),39356:(function(tt,G,e){var S=e(10721),A=e(34809),t=e(91362),E=e(42097),w=e(19017).isValid,p=e(33626).traceIs;function c(i,r){var o=r.slice(0,r.length-1);return r?A.nestedProperty(i,o).get()||{}:i}tt.exports=function i(r,o,a,s,n){var m=n.prefix,x=n.cLetter,f="_module"in o,v=c(r,m),l=c(o,m),h=c(o._template||{},m)||{},d=function(){return delete r.coloraxis,delete o.coloraxis,i(r,o,a,s,n)};if(f){var b=a._colorAxes||{},M=s(m+"coloraxis");if(M){var g=p(o,"contour")&&A.nestedProperty(o,"contours.coloring").get()||"heatmap",k=b[M];k?(k[2].push(d),k[0]!==g&&(k[0]=!1,A.warn(["Ignoring coloraxis:",M,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[M]=[g,o,[d]];return}}var L=v[x+"min"],u=v[x+"max"],T=S(L)&&S(u)&&L<u;s(m+x+"auto",!T)?s(m+x+"mid"):(s(m+x+"min"),s(m+x+"max"));var C=v.colorscale,_=h.colorscale,F;if(C!==void 0&&(F=!w(C)),_!==void 0&&(F=!w(_)),s(m+"autocolorscale",F),s(m+"colorscale"),s(m+"reversescale"),m!=="marker.line."){var O;m&&f&&(O=t(v)),s(m+"showscale",O)&&(m&&h&&(l._template=h),E(v,l,a))}}}),65477:(function(tt,G,e){var S=e(45568),A=e(65657),t=e(10721),E=e(34809),w=e(78766),p=e(19017).isValid;function c(f,v,l){var h=v?E.nestedProperty(f,v).get()||{}:f,d=h[l||"color"];d&&d._inputArray&&(d=d._inputArray);var b=!1;if(E.isArrayOrTypedArray(d)){for(var M=0;M<d.length;M++)if(t(d[M])){b=!0;break}}return E.isPlainObject(h)&&(b||h.showscale===!0||t(h.cmin)&&t(h.cmax)||p(h.colorscale)||E.isPlainObject(h.colorbar))}var i=["showscale","autocolorscale","colorscale","reversescale","colorbar"],r=["min","max","mid","auto"];function o(f){var v=f._colorAx,l=v||f,h={},d,b,M;for(b=0;b<i.length;b++)M=i[b],h[M]=l[M];if(v)for(d="c",b=0;b<r.length;b++)M=r[b],h[M]=l["c"+M];else{var g;for(b=0;b<r.length;b++){if(M=r[b],g="c"+M,g in l){h[M]=l[g];continue}g="z"+M,g in l&&(h[M]=l[g])}d=g.charAt(0)}return h._sync=function(k,L){var u=r.indexOf(k)===-1?k:d+k;l[u]=l["_"+u]=L},h}function a(f){for(var v=o(f),l=v.min,h=v.max,d=v.reversescale?s(v.colorscale):v.colorscale,b=d.length,M=Array(b),g=Array(b),k=0;k<b;k++){var L=d[k];M[k]=l+L[0]*(h-l),g[k]=L[1]}return{domain:M,range:g}}function s(f){for(var v=f.length,l=Array(v),h=v-1,d=0;h>=0;h--,d++){var b=f[h];l[d]=[1-b[0],b[1]]}return l}function n(f,v){v||(v={});for(var l=f.domain,h=f.range,d=h.length,b=Array(d),M=0;M<d;M++){var g=A(h[M]).toRgb();b[M]=[g.r,g.g,g.b,g.a]}var k=S.scale.linear().domain(l).range(b).clamp(!0),L=v.noNumericCheck,u=v.returnArray,T=L&&u?k:L?function(C){return x(k(C))}:u?function(C){return t(C)?k(C):A(C).isValid()?C:w.defaultLine}:function(C){return t(C)?x(k(C)):A(C).isValid()?C:w.defaultLine};return T.domain=k.domain,T.range=function(){return h},T}function m(f,v){return n(a(f),v)}function x(f){return A({r:f[0],g:f[1],b:f[2],a:f[3]}).toRgbString()}tt.exports={hasColorscale:c,extractOpts:o,extractScale:a,flipScale:s,makeColorScaleFunc:n,makeColorScaleFuncFromTrace:m}}),88856:(function(tt,G,e){var S=e(19017),A=e(65477);tt.exports={moduleType:"component",name:"colorscale",attributes:e(87163),layoutAttributes:e(56978),supplyLayoutDefaults:e(64613),handleDefaults:e(39356),crossTraceDefaults:e(67623),calc:e(28379),scales:S.scales,defaultScale:S.defaultScale,getScale:S.get,isValidScale:S.isValid,hasColorscale:A.hasColorscale,extractOpts:A.extractOpts,extractScale:A.extractScale,flipScale:A.flipScale,makeColorScaleFunc:A.makeColorScaleFunc,makeColorScaleFuncFromTrace:A.makeColorScaleFuncFromTrace}}),56978:(function(tt,G,e){var S=e(93049).extendFlat,A=e(87163),t=e(19017).scales;tt.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:t.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:t.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:t.RdBu,editType:"calc"}},coloraxis:S({_isSubplotObj:!0,editType:"calc"},A("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}}),64613:(function(tt,G,e){var S=e(34809),A=e(78032),t=e(56978),E=e(39356);tt.exports=function(w,p){function c(x,f){return S.coerce(w,p,t,x,f)}c("colorscale.sequential"),c("colorscale.sequentialminus"),c("colorscale.diverging");var i=p._colorAxes,r,o;function a(x,f){return S.coerce(r,o,t.coloraxis,x,f)}for(var s in i){var n=i[s];if(n[0])r=w[s]||{},o=A.newContainer(p,s,"coloraxis"),o._name=s,E(r,o,p,a,{prefix:"",cLetter:"c"});else{for(var m=0;m<n[2].length;m++)n[2][m]();delete p._colorAxes[s]}}}}),19017:(function(tt,G,e){var S=e(65657),A={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},t=A.RdBu;function E(c,i){if(i||(i=t),!c)return i;function r(){try{c=A[c]||JSON.parse(c)}catch{c=i}}return typeof c=="string"&&(r(),typeof c=="string"&&r()),w(c)?c:i}function w(c){var i=0;if(!Array.isArray(c)||c.length<2||!c[0]||!c[c.length-1]||+c[0][0]!=0||+c[c.length-1][0]!=1)return!1;for(var r=0;r<c.length;r++){var o=c[r];if(o.length!==2||+o[0]<i||!S(o[1]).isValid())return!1;i=+o[0]}return!0}function p(c){return A[c]===void 0?w(c):!0}tt.exports={scales:A,defaultScale:t,get:E,isValid:p}}),53770:(function(tt){tt.exports=function(G,e,S,A,t){var E=(G-S)/(A-S),w=E+e/(A-S),p=(E+w)/2;return t==="left"||t==="bottom"?E:t==="center"||t==="middle"?p:t==="right"||t==="top"?w:E<.6666666666666666-p?E:w>1.3333333333333333-p?w:p}}),4001:(function(tt,G,e){var S=e(34809),A=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];tt.exports=function(t,E,w,p){return t=w==="left"?0:w==="center"?1:w==="right"?2:S.constrain(Math.floor(t*3),0,2),E=p==="bottom"?0:p==="middle"?1:p==="top"?2:S.constrain(Math.floor(E*3),0,2),A[E][t]}}),70414:(function(tt,G){G.selectMode=function(e){return e==="lasso"||e==="select"},G.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},G.openMode=function(e){return e==="drawline"||e==="drawopenpath"},G.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},G.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},G.selectingOrDrawing=function(e){return G.freeMode(e)||G.rectMode(e)}}),14751:(function(tt,G,e){var S=e(44039),A=e(39784),t=e(74043),E=e(34809).removeElement,w=e(54826),p=tt.exports={};p.align=e(53770),p.getCursor=e(4001);var c=e(60148);p.unhover=c.wrapped,p.unhoverRaw=c.raw,p.init=function(o){var a=o.gd,s=1,n=a._context.doubleClickDelay,m=o.element,x,f,v,l,h,d,b,M;a._mouseDownTime||(a._mouseDownTime=0),m.style.pointerEvents="all",m.onmousedown=L,t?(m._ontouchstart&&m.removeEventListener("touchstart",m._ontouchstart),m._ontouchstart=L,m.addEventListener("touchstart",L,{passive:!1})):m.ontouchstart=L;function g(C,_,F){return Math.abs(C)<F&&(C=0),Math.abs(_)<F&&(_=0),[C,_]}var k=o.clampFn||g;function L(C){a._dragged=!1,a._dragging=!0;var _=r(C);x=_[0],f=_[1],b=C.target,d=C,M=C.buttons===2||C.ctrlKey,C.clientX===void 0&&C.clientY===void 0&&(C.clientX=x,C.clientY=f),v=new Date().getTime(),v-a._mouseDownTime<n?s+=1:(s=1,a._mouseDownTime=v),o.prepFn&&o.prepFn(C,x,f),A&&!M?(h=i(),h.style.cursor=window.getComputedStyle(m).cursor):A||(h=document,l=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(m).cursor),document.addEventListener("mouseup",T),document.addEventListener("touchend",T),o.dragmode!==!1&&(C.preventDefault(),document.addEventListener("mousemove",u),document.addEventListener("touchmove",u,{passive:!1}))}function u(C){C.preventDefault();var _=r(C),F=o.minDrag||w.MINDRAG,O=k(_[0]-x,_[1]-f,F),j=O[0],B=O[1];(j||B)&&(a._dragged=!0,p.unhover(a,C)),a._dragged&&o.moveFn&&!M&&(a._dragdata={element:m,dx:j,dy:B},o.moveFn(j,B))}function T(C){if(delete a._dragdata,o.dragmode!==!1&&(C.preventDefault(),document.removeEventListener("mousemove",u),document.removeEventListener("touchmove",u)),document.removeEventListener("mouseup",T),document.removeEventListener("touchend",T),A?E(h):l&&(l=(h.documentElement.style.cursor=l,null)),!a._dragging){a._dragged=!1;return}if(a._dragging=!1,new Date().getTime()-a._mouseDownTime>n&&(s=Math.max(s-1,1)),a._dragged)o.doneFn&&o.doneFn();else if(o.clickFn&&o.clickFn(s,d),!M){var _;try{_=new MouseEvent("click",C)}catch{var F=r(C);_=document.createEvent("MouseEvents"),_.initMouseEvent("click",C.bubbles,C.cancelable,C.view,C.detail,C.screenX,C.screenY,F[0],F[1],C.ctrlKey,C.altKey,C.shiftKey,C.metaKey,C.button,C.relatedTarget)}b.dispatchEvent(_)}a._dragging=!1,a._dragged=!1}};function i(){var o=document.createElement("div");o.className="dragcover";var a=o.style;return a.position="fixed",a.left=0,a.right=0,a.top=0,a.bottom=0,a.zIndex=999999999,a.background="none",document.body.appendChild(o),o}p.coverSlip=i;function r(o){return S(o.changedTouches?o.changedTouches[0]:o,document.body)}}),60148:(function(tt,G,e){var S=e(68596),A=e(64025),t=e(95425).getGraphDiv,E=e(85988),w=tt.exports={};w.wrapped=function(p,c,i){p=t(p),p._fullLayout&&A.clear(p._fullLayout._uid+E.HOVERID),w.raw(p,c,i)},w.raw=function(p,c){var i=p._fullLayout,r=p._hoverdata;c||(c={}),!(c.target&&!p._dragged&&S.triggerHandler(p,"plotly_beforehover",c)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,c.target&&r&&p.emit("plotly_unhover",{event:c,points:r}))}}),94850:(function(tt,G){G.T={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},G.k={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}}),62203:(function(tt,G,e){var S=e(45568),A=e(34809),t=A.numberFormat,E=e(10721),w=e(65657),p=e(33626),c=e(78766),i=e(88856),r=A.strTranslate,o=e(30635),a=e(62972),s=e(4530).LINE_SPACING,n=e(20438).DESELECTDIM,m=e(64726),x=e(92527),f=e(36040).appendArrayPointValue,v=tt.exports={};v.font=function(Et,At){var qt=At.variant,jt=At.style,de=At.weight,Xt=At.color,ye=At.size,Le=At.family,ve=At.shadow,ke=At.lineposition,Pe=At.textcase;Le&&Et.style("font-family",Le),ye+1&&Et.style("font-size",ye+"px"),Xt&&Et.call(c.fill,Xt),de&&Et.style("font-weight",de),jt&&Et.style("font-style",jt),qt&&Et.style("font-variant",qt),Pe&&Et.style("text-transform",l(d(Pe))),ve&&Et.style("text-shadow",ve==="auto"?o.makeTextShadow(c.contrast(Xt)):l(ve)),ke&&Et.style("text-decoration-line",l(b(ke)))};function l(Et){return Et==="none"?void 0:Et}var h={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function d(Et){return h[Et]}function b(Et){return Et.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}v.setPosition=function(Et,At,qt){Et.attr("x",At).attr("y",qt)},v.setSize=function(Et,At,qt){Et.attr("width",At).attr("height",qt)},v.setRect=function(Et,At,qt,jt,de){Et.call(v.setPosition,At,qt).call(v.setSize,jt,de)},v.translatePoint=function(Et,At,qt,jt){var de=qt.c2p(Et.x),Xt=jt.c2p(Et.y);if(E(de)&&E(Xt)&&At.node())At.node().nodeName==="text"?At.attr("x",de).attr("y",Xt):At.attr("transform",r(de,Xt));else return!1;return!0},v.translatePoints=function(Et,At,qt){Et.each(function(jt){var de=S.select(this);v.translatePoint(jt,de,At,qt)})},v.hideOutsideRangePoint=function(Et,At,qt,jt,de,Xt){At.attr("display",qt.isPtWithinRange(Et,de)&&jt.isPtWithinRange(Et,Xt)?null:"none")},v.hideOutsideRangePoints=function(Et,At){if(At._hasClipOnAxisFalse){var qt=At.xaxis,jt=At.yaxis;Et.each(function(de){var Xt=de[0].trace,ye=Xt.xcalendar,Le=Xt.ycalendar,ve=p.traceIs(Xt,"bar-like")?".bartext":".point,.textpoint";Et.selectAll(ve).each(function(ke){v.hideOutsideRangePoint(ke,S.select(this),qt,jt,ye,Le)})})}},v.crispRound=function(Et,At,qt){return!At||!E(At)?qt||0:Et._context.staticPlot?At:At<1?1:Math.round(At)},v.singleLineStyle=function(Et,At,qt,jt,de){At.style("fill","none");var Xt=(((Et||[])[0]||{}).trace||{}).line||{},ye=qt||Xt.width||0,Le=de||Xt.dash||"";c.stroke(At,jt||Xt.color),v.dashLine(At,Le,ye)},v.lineGroupStyle=function(Et,At,qt,jt){Et.style("fill","none").each(function(de){var Xt=(((de||[])[0]||{}).trace||{}).line||{},ye=At||Xt.width||0,Le=jt||Xt.dash||"";S.select(this).call(c.stroke,qt||Xt.color).call(v.dashLine,Le,ye)})},v.dashLine=function(Et,At,qt){qt=+qt||0,At=v.dashStyle(At,qt),Et.style({"stroke-dasharray":At,"stroke-width":qt+"px"})},v.dashStyle=function(Et,At){At=+At||1;var qt=Math.max(At,3);return Et==="solid"?Et="":Et==="dot"?Et=qt+"px,"+qt+"px":Et==="dash"?Et=3*qt+"px,"+3*qt+"px":Et==="longdash"?Et=5*qt+"px,"+5*qt+"px":Et==="dashdot"?Et=3*qt+"px,"+qt+"px,"+qt+"px,"+qt+"px":Et==="longdashdot"&&(Et=5*qt+"px,"+2*qt+"px,"+qt+"px,"+2*qt+"px"),Et};function M(Et,At,qt,jt){var de=At.fillpattern,Xt=At.fillgradient,ye=de&&v.getPatternAttr(de.shape,0,"");if(ye){var Le=v.getPatternAttr(de.bgcolor,0,null),ve=v.getPatternAttr(de.fgcolor,0,null),ke=de.fgopacity,Pe=v.getPatternAttr(de.size,0,8),me=v.getPatternAttr(de.solidity,0,.3),be=At.uid;v.pattern(Et,"point",qt,be,ye,Pe,me,void 0,de.fillmode,Le,ve,ke)}else if(Xt&&Xt.type!=="none"){var je=Xt.type,nr="scatterfill-"+At.uid;if(jt&&(nr="legendfill-"+At.uid),!jt&&(Xt.start!==void 0||Xt.stop!==void 0)){var Vt,Qt;je==="horizontal"?(Vt={x:Xt.start,y:0},Qt={x:Xt.stop,y:0}):je==="vertical"&&(Vt={x:0,y:Xt.start},Qt={x:0,y:Xt.stop}),Vt.x=At._xA.c2p(Vt.x===void 0?At._extremes.x.min[0].val:Vt.x,!0),Vt.y=At._yA.c2p(Vt.y===void 0?At._extremes.y.min[0].val:Vt.y,!0),Qt.x=At._xA.c2p(Qt.x===void 0?At._extremes.x.max[0].val:Qt.x,!0),Qt.y=At._yA.c2p(Qt.y===void 0?At._extremes.y.max[0].val:Qt.y,!0),Et.call(_,qt,nr,"linear",Xt.colorscale,"fill",Vt,Qt,!0,!1)}else je==="horizontal"&&(je+="reversed"),Et.call(v.gradient,qt,nr,je,Xt.colorscale,"fill")}else At.fillcolor&&Et.call(c.fill,At.fillcolor)}v.singleFillStyle=function(Et,At){M(Et,((S.select(Et.node()).data()[0]||[])[0]||{}).trace||{},At,!1)},v.fillGroupStyle=function(Et,At,qt){Et.style("stroke-width",0).each(function(jt){var de=S.select(this);jt[0].trace&&M(de,jt[0].trace,At,qt)})};var g=e(38882);v.symbolNames=[],v.symbolFuncs=[],v.symbolBackOffs=[],v.symbolNeedLines={},v.symbolNoDot={},v.symbolNoFill={},v.symbolList=[],Object.keys(g).forEach(function(Et){var At=g[Et],qt=At.n;v.symbolList.push(qt,String(qt),Et,qt+100,String(qt+100),Et+"-open"),v.symbolNames[qt]=Et,v.symbolFuncs[qt]=At.f,v.symbolBackOffs[qt]=At.backoff||0,At.needLine&&(v.symbolNeedLines[qt]=!0),At.noDot?v.symbolNoDot[qt]=!0:v.symbolList.push(qt+200,String(qt+200),Et+"-dot",qt+300,String(qt+300),Et+"-open-dot"),At.noFill&&(v.symbolNoFill[qt]=!0)});var k=v.symbolNames.length,L="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";v.symbolNumber=function(Et){if(E(Et))Et=+Et;else if(typeof Et=="string"){var At=0;Et.indexOf("-open")>0&&(At=100,Et=Et.replace("-open","")),Et.indexOf("-dot")>0&&(At+=200,Et=Et.replace("-dot","")),Et=v.symbolNames.indexOf(Et),Et>=0&&(Et+=At)}return Et%100>=k||Et>=400?0:Math.floor(Math.max(Et,0))};function u(Et,At,qt,jt){var de=Et%100;return v.symbolFuncs[de](At,qt,jt)+(Et>=200?L:"")}var T=t("~f"),C={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};v.gradient=function(Et,At,qt,jt,de,Xt){var ye=C[jt];return _(Et,At,qt,ye.type,de,Xt,ye.start,ye.stop,!1,ye.reversed)};function _(Et,At,qt,jt,de,Xt,ye,Le,ve,ke){var Pe=de.length,me;jt==="linear"?me={node:"linearGradient",attrs:{x1:ye.x,y1:ye.y,x2:Le.x,y2:Le.y,gradientUnits:ve?"userSpaceOnUse":"objectBoundingBox"},reversed:ke}:jt==="radial"&&(me={node:"radialGradient",reversed:ke});for(var be=Array(Pe),je=0;je<Pe;je++)me.reversed?be[Pe-1-je]=[T((1-de[je][0])*100),de[je][1]]:be[je]=[T(de[je][0]*100),de[je][1]];var nr=At._fullLayout,Vt="g"+nr._uid+"-"+qt,Qt=nr._defs.select(".gradients").selectAll("#"+Vt).data([jt+be.join(";")],A.identity);Qt.exit().remove(),Qt.enter().append(me.node).each(function(){var te=S.select(this);me.attrs&&te.attr(me.attrs),te.attr("id",Vt);var ee=te.selectAll("stop").data(be);ee.exit().remove(),ee.enter().append("stop"),ee.each(function(Bt){var Wt=w(Bt[1]);S.select(this).attr({offset:Bt[0]+"%","stop-color":c.tinyRGB(Wt),"stop-opacity":Wt.getAlpha()})})}),Et.style(Xt,Z(Vt,At)).style(Xt+"-opacity",null),Et.classed("gradient_filled",!0)}v.pattern=function(Et,At,qt,jt,de,Xt,ye,Le,ve,ke,Pe,me){var be=At==="legend";Le&&(ve==="overlay"?(ke=Le,Pe=c.contrast(ke)):(ke=void 0,Pe=Le));var je=qt._fullLayout,nr="p"+je._uid+"-"+jt,Vt,Qt,te=function(Zt,Me,Be,ge,Ee){return ge+(Ee-ge)*(Zt-Me)/(Be-Me)},ee,Bt,Wt,$t,Tt={},_t=w(Pe),It=c.tinyRGB(_t),Mt=me*_t.getAlpha();switch(de){case"/":Vt=Xt*Math.sqrt(2),Qt=Xt*Math.sqrt(2),ee="M-"+Vt/4+","+Qt/4+"l"+Vt/2+",-"+Qt/2+"M0,"+Qt+"L"+Vt+",0M"+Vt/4*3+","+Qt/4*5+"l"+Vt/2+",-"+Qt/2,Bt=ye*Xt,$t="path",Tt={d:ee,opacity:Mt,stroke:It,"stroke-width":Bt+"px"};break;case"\\":Vt=Xt*Math.sqrt(2),Qt=Xt*Math.sqrt(2),ee="M"+Vt/4*3+",-"+Qt/4+"l"+Vt/2+","+Qt/2+"M0,0L"+Vt+","+Qt+"M-"+Vt/4+","+Qt/4*3+"l"+Vt/2+","+Qt/2,Bt=ye*Xt,$t="path",Tt={d:ee,opacity:Mt,stroke:It,"stroke-width":Bt+"px"};break;case"x":Vt=Xt*Math.sqrt(2),Qt=Xt*Math.sqrt(2),ee="M-"+Vt/4+","+Qt/4+"l"+Vt/2+",-"+Qt/2+"M0,"+Qt+"L"+Vt+",0M"+Vt/4*3+","+Qt/4*5+"l"+Vt/2+",-"+Qt/2+"M"+Vt/4*3+",-"+Qt/4+"l"+Vt/2+","+Qt/2+"M0,0L"+Vt+","+Qt+"M-"+Vt/4+","+Qt/4*3+"l"+Vt/2+","+Qt/2,Bt=Xt-Xt*Math.sqrt(1-ye),$t="path",Tt={d:ee,opacity:Mt,stroke:It,"stroke-width":Bt+"px"};break;case"|":Vt=Xt,Qt=Xt,$t="path",ee="M"+Vt/2+",0L"+Vt/2+","+Qt,Bt=ye*Xt,$t="path",Tt={d:ee,opacity:Mt,stroke:It,"stroke-width":Bt+"px"};break;case"-":Vt=Xt,Qt=Xt,$t="path",ee="M0,"+Qt/2+"L"+Vt+","+Qt/2,Bt=ye*Xt,$t="path",Tt={d:ee,opacity:Mt,stroke:It,"stroke-width":Bt+"px"};break;case"+":Vt=Xt,Qt=Xt,$t="path",ee="M"+Vt/2+",0L"+Vt/2+","+Qt+"M0,"+Qt/2+"L"+Vt+","+Qt/2,Bt=Xt-Xt*Math.sqrt(1-ye),$t="path",Tt={d:ee,opacity:Mt,stroke:It,"stroke-width":Bt+"px"};break;case".":Vt=Xt,Qt=Xt,Wt=ye<Math.PI/4?Math.sqrt(ye*Xt*Xt/Math.PI):te(ye,Math.PI/4,1,Xt/2,Xt/Math.sqrt(2)),$t="circle",Tt={cx:Vt/2,cy:Qt/2,r:Wt,opacity:Mt,fill:It};break}var Ct=[de||"noSh",ke||"noBg",Pe||"noFg",Xt,ye].join(";"),Ut=je._defs.select(".patterns").selectAll("#"+nr).data([Ct],A.identity);Ut.exit().remove(),Ut.enter().append("pattern").each(function(){var Zt=S.select(this);if(Zt.attr({id:nr,width:Vt+"px",height:Qt+"px",patternUnits:"userSpaceOnUse",patternTransform:be?"scale(0.8)":""}),ke){var Me=w(ke),Be=c.tinyRGB(Me),ge=Me.getAlpha(),Ee=Zt.selectAll("rect").data([0]);Ee.exit().remove(),Ee.enter().append("rect").attr({width:Vt+"px",height:Qt+"px",fill:Be,"fill-opacity":ge})}var Ne=Zt.selectAll($t).data([0]);Ne.exit().remove(),Ne.enter().append($t).attr(Tt)}),Et.style("fill",Z(nr,qt)).style("fill-opacity",null),Et.classed("pattern_filled",!0)},v.initGradients=function(Et){var At=Et._fullLayout;A.ensureSingle(At._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),S.select(Et).selectAll(".gradient_filled").classed("gradient_filled",!1)},v.initPatterns=function(Et){var At=Et._fullLayout;A.ensureSingle(At._defs,"g","patterns").selectAll("pattern").remove(),S.select(Et).selectAll(".pattern_filled").classed("pattern_filled",!1)},v.getPatternAttr=function(Et,At,qt){return Et&&A.isArrayOrTypedArray(Et)?At<Et.length?Et[At]:qt:Et},v.pointStyle=function(Et,At,qt,jt){if(Et.size()){var de=v.makePointStyleFns(At);Et.each(function(Xt){v.singlePointStyle(Xt,S.select(this),At,de,qt,jt)})}},v.singlePointStyle=function(Et,At,qt,jt,de,Xt){var ye=qt.marker,Le=ye.line;if(Xt&&Xt.i>=0&&Et.i===void 0&&(Et.i=Xt.i),At.style("opacity",jt.selectedOpacityFn?jt.selectedOpacityFn(Et):Et.mo===void 0?ye.opacity:Et.mo),jt.ms2mrc){var ve=Et.ms==="various"||ye.size==="various"?3:jt.ms2mrc(Et.ms);Et.mrc=ve,jt.selectedSizeFn&&(ve=Et.mrc=jt.selectedSizeFn(Et));var ke=v.symbolNumber(Et.mx||ye.symbol)||0;Et.om=ke%200>=100;var Pe=Gt(Et,qt),me=rt(Et,qt);At.attr("d",u(ke,ve,Pe,me))}var be=!1,je,nr,Vt;if(Et.so)Vt=Le.outlierwidth,nr=Le.outliercolor,je=ye.outliercolor;else{var Qt=(Le||{}).width;Vt=(Et.mlw+1||Qt+1||(Et.trace?(Et.trace.marker.line||{}).width:0)+1)-1||0,nr="mlc"in Et?Et.mlcc=jt.lineScale(Et.mlc):A.isArrayOrTypedArray(Le.color)?c.defaultLine:Le.color,A.isArrayOrTypedArray(ye.color)&&(je=c.defaultLine,be=!0),je="mc"in Et?Et.mcc=jt.markerScale(Et.mc):ye.color||ye.colors||"rgba(0,0,0,0)",jt.selectedColorFn&&(je=jt.selectedColorFn(Et))}if(Et.om)At.call(c.stroke,je).style({"stroke-width":(Vt||1)+"px",fill:"none"});else{At.style("stroke-width",(Et.isBlank?0:Vt)+"px");var te=ye.gradient,ee=Et.mgt;ee?be=!0:ee=te&&te.type,A.isArrayOrTypedArray(ee)&&(ee=ee[0],C[ee]||(ee=0));var Bt=ye.pattern,Wt=Bt&&v.getPatternAttr(Bt.shape,Et.i,"");if(ee&&ee!=="none"){var $t=Et.mgc;$t?be=!0:$t=te.color;var Tt=qt.uid;be&&(Tt+="-"+Et.i),v.gradient(At,de,Tt,ee,[[0,$t],[1,je]],"fill")}else if(Wt){var _t=!1,It=Bt.fgcolor;!It&&Xt&&Xt.color&&(It=Xt.color,_t=!0);var Mt=v.getPatternAttr(It,Et.i,Xt&&Xt.color||null),Ct=v.getPatternAttr(Bt.bgcolor,Et.i,null),Ut=Bt.fgopacity,Zt=v.getPatternAttr(Bt.size,Et.i,8),Me=v.getPatternAttr(Bt.solidity,Et.i,.3);_t=_t||Et.mcc||A.isArrayOrTypedArray(Bt.shape)||A.isArrayOrTypedArray(Bt.bgcolor)||A.isArrayOrTypedArray(Bt.fgcolor)||A.isArrayOrTypedArray(Bt.size)||A.isArrayOrTypedArray(Bt.solidity);var Be=qt.uid;_t&&(Be+="-"+Et.i),v.pattern(At,"point",de,Be,Wt,Zt,Me,Et.mcc,Bt.fillmode,Ct,Mt,Ut)}else A.isArrayOrTypedArray(je)?c.fill(At,je[Et.i]):c.fill(At,je);Vt&&c.stroke(At,nr)}},v.makePointStyleFns=function(Et){var At={},qt=Et.marker;return At.markerScale=v.tryColorscale(qt,""),At.lineScale=v.tryColorscale(qt,"line"),p.traceIs(Et,"symbols")&&(At.ms2mrc=m.isBubble(Et)?x(Et):function(){return(qt.size||6)/2}),Et.selectedpoints&&A.extendFlat(At,v.makeSelectedPointStyleFns(Et)),At},v.makeSelectedPointStyleFns=function(Et){var At={},qt=Et.selected||{},jt=Et.unselected||{},de=Et.marker||{},Xt=qt.marker||{},ye=jt.marker||{},Le=de.opacity,ve=Xt.opacity,ke=ye.opacity,Pe=ve!==void 0,me=ke!==void 0;(A.isArrayOrTypedArray(Le)||Pe||me)&&(At.selectedOpacityFn=function(Wt){var $t=Wt.mo===void 0?de.opacity:Wt.mo;return Wt.selected?Pe?ve:$t:me?ke:n*$t});var be=de.color,je=Xt.color,nr=ye.color;(je||nr)&&(At.selectedColorFn=function(Wt){var $t=Wt.mcc||be;return Wt.selected?je||$t:nr||$t});var Vt=de.size,Qt=Xt.size,te=ye.size,ee=Qt!==void 0,Bt=te!==void 0;return p.traceIs(Et,"symbols")&&(ee||Bt)&&(At.selectedSizeFn=function(Wt){var $t=Wt.mrc||Vt/2;return Wt.selected?ee?Qt/2:$t:Bt?te/2:$t}),At},v.makeSelectedTextStyleFns=function(Et){var At={},qt=Et.selected||{},jt=Et.unselected||{},de=Et.textfont||{},Xt=qt.textfont||{},ye=jt.textfont||{},Le=de.color,ve=Xt.color,ke=ye.color;return At.selectedTextColorFn=function(Pe){var me=Pe.tc||Le;return Pe.selected?ve||me:ke||(ve?me:c.addOpacity(me,n))},At},v.selectedPointStyle=function(Et,At){if(!(!Et.size()||!At.selectedpoints)){var qt=v.makeSelectedPointStyleFns(At),jt=At.marker||{},de=[];qt.selectedOpacityFn&&de.push(function(Xt,ye){Xt.style("opacity",qt.selectedOpacityFn(ye))}),qt.selectedColorFn&&de.push(function(Xt,ye){c.fill(Xt,qt.selectedColorFn(ye))}),qt.selectedSizeFn&&de.push(function(Xt,ye){var Le=ye.mx||jt.symbol||0,ve=qt.selectedSizeFn(ye);Xt.attr("d",u(v.symbolNumber(Le),ve,Gt(ye,At),rt(ye,At))),ye.mrc2=ve}),de.length&&Et.each(function(Xt){for(var ye=S.select(this),Le=0;Le<de.length;Le++)de[Le](ye,Xt)})}},v.tryColorscale=function(Et,At){var qt=At?A.nestedProperty(Et,At).get():Et;if(qt){var jt=qt.color;if((qt.colorscale||qt._colorAx)&&A.isArrayOrTypedArray(jt))return i.makeColorScaleFuncFromTrace(qt)}return A.identity};var F={start:1,end:-1,middle:0,bottom:1,top:-1};function O(Et,At,qt,jt,de){var Xt=S.select(Et.node().parentNode),ye=At.indexOf("top")===-1?At.indexOf("bottom")===-1?"middle":"bottom":"top",Le=At.indexOf("left")===-1?At.indexOf("right")===-1?"middle":"start":"end",ve=jt?jt/.8+1:0,ke=(o.lineCount(Et)-1)*s+1,Pe=F[Le]*ve,me=qt*.75+F[ye]*ve+(F[ye]-1)*ke*qt/2;Et.attr("text-anchor",Le),de||Xt.attr("transform",r(Pe,me))}function j(Et,At){var qt=Et.ts||At.textfont.size;return E(qt)&&qt>0?qt:0}v.textPointStyle=function(Et,At,qt){if(Et.size()){var jt;At.selectedpoints&&(jt=v.makeSelectedTextStyleFns(At).selectedTextColorFn);var de=At.texttemplate,Xt=qt._fullLayout;Et.each(function(ye){var Le=S.select(this),ve=de?A.extractOption(ye,At,"txt","texttemplate"):A.extractOption(ye,At,"tx","text");if(!ve&&ve!==0){Le.remove();return}if(de){var ke=At._module.formatLabels,Pe=ke?ke(ye,At,Xt):{},me={};f(me,At,ye.i);var be=At._meta||{};ve=A.texttemplateString(ve,Pe,Xt._d3locale,me,ye,be)}var je=ye.tp||At.textposition,nr=j(ye,At),Vt=jt?jt(ye):ye.tc||At.textfont.color;Le.call(v.font,{family:ye.tf||At.textfont.family,weight:ye.tw||At.textfont.weight,style:ye.ty||At.textfont.style,variant:ye.tv||At.textfont.variant,textcase:ye.tC||At.textfont.textcase,lineposition:ye.tE||At.textfont.lineposition,shadow:ye.tS||At.textfont.shadow,size:nr,color:Vt}).text(ve).call(o.convertToTspans,qt).call(O,je,nr,ye.mrc)})}},v.selectedTextStyle=function(Et,At){if(!(!Et.size()||!At.selectedpoints)){var qt=v.makeSelectedTextStyleFns(At);Et.each(function(jt){var de=S.select(this),Xt=qt.selectedTextColorFn(jt),ye=jt.tp||At.textposition,Le=j(jt,At);c.fill(de,Xt);var ve=p.traceIs(At,"bar-like");O(de,ye,Le,jt.mrc2||jt.mrc,ve)})}};var B=.5;v.smoothopen=function(Et,At){if(Et.length<3)return"M"+Et.join("L");var qt="M"+Et[0],jt=[],de;for(de=1;de<Et.length-1;de++)jt.push(K(Et[de-1],Et[de],Et[de+1],At));for(qt+="Q"+jt[0][0]+" "+Et[1],de=2;de<Et.length-1;de++)qt+="C"+jt[de-2][1]+" "+jt[de-1][0]+" "+Et[de];return qt+="Q"+jt[Et.length-3][1]+" "+Et[Et.length-1],qt},v.smoothclosed=function(Et,At){if(Et.length<3)return"M"+Et.join("L")+"Z";var qt="M"+Et[0],jt=Et.length-1,de=[K(Et[jt],Et[0],Et[1],At)],Xt;for(Xt=1;Xt<jt;Xt++)de.push(K(Et[Xt-1],Et[Xt],Et[Xt+1],At));for(de.push(K(Et[jt-1],Et[jt],Et[0],At)),Xt=1;Xt<=jt;Xt++)qt+="C"+de[Xt-1][1]+" "+de[Xt][0]+" "+Et[Xt];return qt+="C"+de[jt][1]+" "+de[0][0]+" "+Et[0]+"Z",qt};var U,P;function N(Et,At,qt){return qt&&(Et=ct(Et)),At?Y(Et[1]):V(Et[0])}function V(Et){var At=S.round(Et,2);return U=At,At}function Y(Et){var At=S.round(Et,2);return P=At,At}function K(Et,At,qt,jt){var de=Et[0]-At[0],Xt=Et[1]-At[1],ye=qt[0]-At[0],Le=qt[1]-At[1],ve=(de*de+Xt*Xt)**(B/2),ke=(ye*ye+Le*Le)**(B/2),Pe=(ke*ke*de-ve*ve*ye)*jt,me=(ke*ke*Xt-ve*ve*Le)*jt,be=3*ke*(ve+ke),je=3*ve*(ve+ke);return[[V(At[0]+(be&&Pe/be)),Y(At[1]+(be&&me/be))],[V(At[0]-(je&&Pe/je)),Y(At[1]-(je&&me/je))]]}var nt={hv:function(Et,At,qt){return"H"+V(At[0])+"V"+N(At,1,qt)},vh:function(Et,At,qt){return"V"+Y(At[1])+"H"+N(At,0,qt)},hvh:function(Et,At,qt){return"H"+V((Et[0]+At[0])/2)+"V"+Y(At[1])+"H"+N(At,0,qt)},vhv:function(Et,At,qt){return"V"+Y((Et[1]+At[1])/2)+"H"+V(At[0])+"V"+N(At,1,qt)}},ft=function(Et,At,qt){return"L"+N(At,0,qt)+","+N(At,1,qt)};v.steps=function(Et){var At=nt[Et]||ft;return function(qt){for(var jt="M"+V(qt[0][0])+","+Y(qt[0][1]),de=qt.length,Xt=1;Xt<de;Xt++)jt+=At(qt[Xt-1],qt[Xt],Xt===de-1);return jt}};function ct(Et,At){var qt=Et.backoff,jt=Et.trace,de=Et.d,Xt=Et.i;if(qt&&jt&&jt.marker&&jt.marker.angle%360==0&&jt.line&&jt.line.shape!=="spline"){var ye=A.isArrayOrTypedArray(qt),Le=Et,ve=At?At[0]:U||0,ke=At?At[1]:P||0,Pe=Le[0],me=Le[1],be=Pe-ve,je=me-ke,nr=Math.atan2(je,be),Vt=ye?qt[Xt]:qt;if(Vt==="auto"){var Qt=Le.i;jt.type==="scatter"&&Qt--;var te=Le.marker,ee=te.symbol;A.isArrayOrTypedArray(ee)&&(ee=ee[Qt]);var Bt=te.size;A.isArrayOrTypedArray(Bt)&&(Bt=Bt[Qt]),Vt=te?v.symbolBackOffs[v.symbolNumber(ee)]*Bt:0,Vt+=v.getMarkerStandoff(de[Qt],jt)||0}var Wt=Pe-Vt*Math.cos(nr),$t=me-Vt*Math.sin(nr);(Wt<=Pe&&Wt>=ve||Wt>=Pe&&Wt<=ve)&&($t<=me&&$t>=ke||$t>=me&&$t<=ke)&&(Et=[Wt,$t])}return Et}v.applyBackoff=ct,v.makeTester=function(){var Et=A.ensureSingleById(S.select("body"),"svg","js-plotly-tester",function(qt){qt.attr(a.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),At=A.ensureSingle(Et,"path","js-reference-point",function(qt){qt.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});v.tester=Et,v.testref=At},v.savedBBoxes={};var J=0,et=1e4;v.bBox=function(Et,At,qt){qt||(qt=Q(Et));var jt;if(qt){if(jt=v.savedBBoxes[qt],jt)return A.extendFlat({},jt)}else if(Et.childNodes.length===1){var de=Et.childNodes[0];if(qt=Q(de),qt){var Xt=+de.getAttribute("x")||0,ye=+de.getAttribute("y")||0,Le=de.getAttribute("transform");if(!Le){var ve=v.bBox(de,!1,qt);return Xt&&(ve.left+=Xt,ve.right+=Xt),ye&&(ve.top+=ye,ve.bottom+=ye),ve}if(qt+="~"+Xt+"~"+ye+"~"+Le,jt=v.savedBBoxes[qt],jt)return A.extendFlat({},jt)}}var ke,Pe;At?ke=Et:(Pe=v.tester.node(),ke=Et.cloneNode(!0),Pe.appendChild(ke)),S.select(ke).attr("transform",null).call(o.positionText,0,0);var me=ke.getBoundingClientRect(),be=v.testref.node().getBoundingClientRect();At||Pe.removeChild(ke);var je={height:me.height,width:me.width,left:me.left-be.left,top:me.top-be.top,right:me.right-be.left,bottom:me.bottom-be.top};return J>=et&&(v.savedBBoxes={},J=0),qt&&(v.savedBBoxes[qt]=je),J++,A.extendFlat({},je)};function Q(Et){var At=Et.getAttribute("data-unformatted");if(At!==null)return At+Et.getAttribute("data-math")+Et.getAttribute("text-anchor")+Et.getAttribute("style")}v.setClipUrl=function(Et,At,qt){Et.attr("clip-path",Z(At,qt))};function Z(Et,At){if(!Et)return null;var qt=At._context,jt=qt._exportedPlot?"":qt._baseUrl||"";return jt?"url('"+jt+"#"+Et+"')":"url(#"+Et+")"}v.getTranslate=function(Et){var At=(Et[Et.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(qt,jt,de){return[jt,de].join(" ")}).split(" ");return{x:+At[0]||0,y:+At[1]||0}},v.setTranslate=function(Et,At,qt){var jt=/(\btranslate\(.*?\);?)/,de=Et.attr?"attr":"getAttribute",Xt=Et.attr?"attr":"setAttribute",ye=Et[de]("transform")||"";return At||(At=0),qt||(qt=0),ye=ye.replace(jt,"").trim(),ye+=r(At,qt),ye=ye.trim(),Et[Xt]("transform",ye),ye},v.getScale=function(Et){var At=(Et[Et.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(qt,jt,de){return[jt,de].join(" ")}).split(" ");return{x:+At[0]||1,y:+At[1]||1}},v.setScale=function(Et,At,qt){var jt=/(\bscale\(.*?\);?)/,de=Et.attr?"attr":"getAttribute",Xt=Et.attr?"attr":"setAttribute",ye=Et[de]("transform")||"";return At||(At=1),qt||(qt=1),ye=ye.replace(jt,"").trim(),ye+="scale("+At+","+qt+")",ye=ye.trim(),Et[Xt]("transform",ye),ye};var st=/\s*sc.*/;v.setPointGroupScale=function(Et,At,qt){if(At||(At=1),qt||(qt=1),Et){var jt=At===1&&qt===1?"":"scale("+At+","+qt+")";Et.each(function(){var de=(this.getAttribute("transform")||"").replace(st,"");de+=jt,de=de.trim(),this.setAttribute("transform",de)})}};var ot=/translate\([^)]*\)\s*$/;v.setTextPointsScale=function(Et,At,qt){Et&&Et.each(function(){var jt,de=S.select(this),Xt=de.select("text");if(Xt.node()){var ye=parseFloat(Xt.attr("x")||0),Le=parseFloat(Xt.attr("y")||0),ve=(de.attr("transform")||"").match(ot);jt=At===1&&qt===1?[]:[r(ye,Le),"scale("+At+","+qt+")",r(-ye,-Le)],ve&&jt.push(ve),de.attr("transform",jt.join(""))}})};function rt(Et,At){var qt;return Et&&(qt=Et.mf),qt===void 0&&(qt=At.marker&&At.marker.standoff||0),!At._geo&&!At._xA?-qt:qt}v.getMarkerStandoff=rt;var X=Math.atan2,ut=Math.cos,lt=Math.sin;function yt(Et,At){var qt=At[0],jt=At[1];return[qt*ut(Et)-jt*lt(Et),qt*lt(Et)+jt*ut(Et)]}var kt,Lt,St,Ot,Ht,Kt;function Gt(Et,At){var qt=Et.ma;qt===void 0&&(qt=At.marker.angle,(!qt||A.isArrayOrTypedArray(qt))&&(qt=0));var jt,de,Xt=At.marker.angleref;if(Xt==="previous"||Xt==="north"){if(At._geo){var ye=At._geo.project(Et.lonlat);jt=ye[0],de=ye[1]}else{var Le=At._xA,ve=At._yA;if(Le&&ve)jt=Le.c2p(Et.x),de=ve.c2p(Et.y);else return 90}if(At._geo){var ke=Et.lonlat[0],Pe=Et.lonlat[1],me=At._geo.project([ke,Pe+1e-5]),be=At._geo.project([ke+1e-5,Pe]),je=X(be[1]-de,be[0]-jt),nr=X(me[1]-de,me[0]-jt),Vt;if(Xt==="north")Vt=qt/180*Math.PI;else if(Xt==="previous"){var Qt=ke/180*Math.PI,te=Pe/180*Math.PI,ee=kt/180*Math.PI,Bt=Lt/180*Math.PI,Wt=ee-Qt;Vt=-X(ut(Bt)*lt(Wt),lt(Bt)*ut(te)-ut(Bt)*lt(te)*ut(Wt))-Math.PI,kt=ke,Lt=Pe}var $t=yt(je,[ut(Vt),0]),Tt=yt(nr,[lt(Vt),0]);qt=X($t[1]+Tt[1],$t[0]+Tt[0])/Math.PI*180,Xt==="previous"&&!(Kt===At.uid&&Et.i===Ht+1)&&(qt=null)}if(Xt==="previous"&&!At._geo)if(Kt===At.uid&&Et.i===Ht+1&&E(jt)&&E(de)){var _t=jt-St,It=de-Ot,Mt=At.line&&At.line.shape||"",Ct=Mt.slice(Mt.length-1);Ct==="h"&&(It=0),Ct==="v"&&(_t=0),qt+=X(It,_t)/Math.PI*180+90}else qt=null}return St=jt,Ot=de,Ht=Et.i,Kt=At.uid,qt}v.getMarkerAngle=Gt}),38882:(function(tt,G,e){var S=e(26953),A=e(45568).round,t="M0,0Z",E=Math.sqrt(2),w=Math.sqrt(3),p=Math.PI,c=Math.cos,i=Math.sin;tt.exports={circle:{n:0,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h="M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z";return v?m(f,v,h):h}},square:{n:1,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")}},diamond:{n:2,f:function(x,f,v){if(r(f))return t;var l=A(x*1.3,2);return m(f,v,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"Z")}},cross:{n:3,f:function(x,f,v){if(r(f))return t;var l=A(x*.4,2),h=A(x*1.2,2);return m(f,v,"M"+h+","+l+"H"+l+"V"+h+"H-"+l+"V"+l+"H-"+h+"V-"+l+"H-"+l+"V-"+h+"H"+l+"V-"+l+"H"+h+"Z")}},x:{n:4,f:function(x,f,v){if(r(f))return t;var l=A(x*.8/E,2),h="l"+l+","+l,d="l"+l+",-"+l,b="l-"+l+",-"+l,M="l-"+l+","+l;return m(f,v,"M0,"+l+h+d+b+d+b+M+b+M+h+M+h+"Z")}},"triangle-up":{n:5,f:function(x,f,v){if(r(f))return t;var l=A(x*2/w,2),h=A(x/2,2),d=A(x,2);return m(f,v,"M-"+l+","+h+"H"+l+"L0,-"+d+"Z")}},"triangle-down":{n:6,f:function(x,f,v){if(r(f))return t;var l=A(x*2/w,2),h=A(x/2,2),d=A(x,2);return m(f,v,"M-"+l+",-"+h+"H"+l+"L0,"+d+"Z")}},"triangle-left":{n:7,f:function(x,f,v){if(r(f))return t;var l=A(x*2/w,2),h=A(x/2,2),d=A(x,2);return m(f,v,"M"+h+",-"+l+"V"+l+"L-"+d+",0Z")}},"triangle-right":{n:8,f:function(x,f,v){if(r(f))return t;var l=A(x*2/w,2),h=A(x/2,2),d=A(x,2);return m(f,v,"M-"+h+",-"+l+"V"+l+"L"+d+",0Z")}},"triangle-ne":{n:9,f:function(x,f,v){if(r(f))return t;var l=A(x*.6,2),h=A(x*1.2,2);return m(f,v,"M-"+h+",-"+l+"H"+l+"V"+h+"Z")}},"triangle-se":{n:10,f:function(x,f,v){if(r(f))return t;var l=A(x*.6,2),h=A(x*1.2,2);return m(f,v,"M"+l+",-"+h+"V"+l+"H-"+h+"Z")}},"triangle-sw":{n:11,f:function(x,f,v){if(r(f))return t;var l=A(x*.6,2),h=A(x*1.2,2);return m(f,v,"M"+h+","+l+"H-"+l+"V-"+h+"Z")}},"triangle-nw":{n:12,f:function(x,f,v){if(r(f))return t;var l=A(x*.6,2),h=A(x*1.2,2);return m(f,v,"M-"+l+","+h+"V-"+l+"H"+h+"Z")}},pentagon:{n:13,f:function(x,f,v){if(r(f))return t;var l=A(x*.951,2),h=A(x*.588,2),d=A(-x,2),b=A(x*-.309,2),M=A(x*.809,2);return m(f,v,"M"+l+","+b+"L"+h+","+M+"H-"+h+"L-"+l+","+b+"L0,"+d+"Z")}},hexagon:{n:14,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h=A(x/2,2),d=A(x*w/2,2);return m(f,v,"M"+d+",-"+h+"V"+h+"L0,"+l+"L-"+d+","+h+"V-"+h+"L0,-"+l+"Z")}},hexagon2:{n:15,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h=A(x/2,2),d=A(x*w/2,2);return m(f,v,"M-"+h+","+d+"H"+h+"L"+l+",0L"+h+",-"+d+"H-"+h+"L-"+l+",0Z")}},octagon:{n:16,f:function(x,f,v){if(r(f))return t;var l=A(x*.924,2),h=A(x*.383,2);return m(f,v,"M-"+h+",-"+l+"H"+h+"L"+l+",-"+h+"V"+h+"L"+h+","+l+"H-"+h+"L-"+l+","+h+"V-"+h+"Z")}},star:{n:17,f:function(x,f,v){if(r(f))return t;var l=x*1.4,h=A(l*.225,2),d=A(l*.951,2),b=A(l*.363,2),M=A(l*.588,2),g=A(-l,2),k=A(l*-.309,2),L=A(l*.118,2),u=A(l*.809,2),T=A(l*.382,2);return m(f,v,"M"+h+","+k+"H"+d+"L"+b+","+L+"L"+M+","+u+"L0,"+T+"L-"+M+","+u+"L-"+b+","+L+"L-"+d+","+k+"H-"+h+"L0,"+g+"Z")}},hexagram:{n:18,f:function(x,f,v){if(r(f))return t;var l=A(x*.66,2),h=A(x*.38,2),d=A(x*.76,2);return m(f,v,"M-"+d+",0l-"+h+",-"+l+"h"+d+"l"+h+",-"+l+"l"+h+","+l+"h"+d+"l-"+h+","+l+"l"+h+","+l+"h-"+d+"l-"+h+","+l+"l-"+h+",-"+l+"h-"+d+"Z")}},"star-triangle-up":{n:19,f:function(x,f,v){if(r(f))return t;var l=A(x*w*.8,2),h=A(x*.8,2),d=A(x*1.6,2),b=A(x*4,2),M="A "+b+","+b+" 0 0 1 ";return m(f,v,"M-"+l+","+h+M+l+","+h+M+"0,-"+d+M+"-"+l+","+h+"Z")}},"star-triangle-down":{n:20,f:function(x,f,v){if(r(f))return t;var l=A(x*w*.8,2),h=A(x*.8,2),d=A(x*1.6,2),b=A(x*4,2),M="A "+b+","+b+" 0 0 1 ";return m(f,v,"M"+l+",-"+h+M+"-"+l+",-"+h+M+"0,"+d+M+l+",-"+h+"Z")}},"star-square":{n:21,f:function(x,f,v){if(r(f))return t;var l=A(x*1.1,2),h=A(x*2,2),d="A "+h+","+h+" 0 0 1 ";return m(f,v,"M-"+l+",-"+l+d+"-"+l+","+l+d+l+","+l+d+l+",-"+l+d+"-"+l+",-"+l+"Z")}},"star-diamond":{n:22,f:function(x,f,v){if(r(f))return t;var l=A(x*1.4,2),h=A(x*1.9,2),d="A "+h+","+h+" 0 0 1 ";return m(f,v,"M-"+l+",0"+d+"0,"+l+d+l+",0"+d+"0,-"+l+d+"-"+l+",0Z")}},"diamond-tall":{n:23,f:function(x,f,v){if(r(f))return t;var l=A(x*.7,2),h=A(x*1.4,2);return m(f,v,"M0,"+h+"L"+l+",0L0,-"+h+"L-"+l+",0Z")}},"diamond-wide":{n:24,f:function(x,f,v){if(r(f))return t;var l=A(x*1.4,2),h=A(x*.7,2);return m(f,v,"M0,"+h+"L"+l+",0L0,-"+h+"L-"+l+",0Z")}},hourglass:{n:25,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M"+l+","+l+"H-"+l+"L"+l+",-"+l+"H-"+l+"Z")},noDot:!0},bowtie:{n:26,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M"+l+","+l+"V-"+l+"L-"+l+","+l+"V-"+l+"Z")},noDot:!0},"circle-cross":{n:27,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h=A(x/E,2);return m(f,v,"M"+h+","+h+"L-"+h+",-"+h+"M"+h+",-"+h+"L-"+h+","+h+"M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l+"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(x,f,v){if(r(f))return t;var l=A(x*1.3,2);return m(f,v,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"ZM0,-"+l+"V"+l+"M-"+l+",0H"+l)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(x,f,v){if(r(f))return t;var l=A(x*1.3,2),h=A(x*.65,2);return m(f,v,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"ZM-"+h+",-"+h+"L"+h+","+h+"M-"+h+","+h+"L"+h+",-"+h)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(x,f,v){if(r(f))return t;var l=A(x*1.4,2);return m(f,v,"M0,"+l+"V-"+l+"M"+l+",0H-"+l)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(x,f,v){if(r(f))return t;var l=A(x*1.2,2),h=A(x*.85,2);return m(f,v,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+h+","+h+"L-"+h+",-"+h+"M"+h+",-"+h+"L-"+h+","+h)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(x,f,v){if(r(f))return t;var l=A(x/2,2),h=A(x,2);return m(f,v,"M"+l+","+h+"V-"+h+"M"+(l-h)+",-"+h+"V"+h+"M"+h+","+l+"H-"+h+"M-"+h+","+(l-h)+"H"+h)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(x,f,v){if(r(f))return t;var l=A(x*1.2,2),h=A(x*1.6,2),d=A(x*.8,2);return m(f,v,"M-"+l+","+d+"L0,0M"+l+","+d+"L0,0M0,-"+h+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(x,f,v){if(r(f))return t;var l=A(x*1.2,2),h=A(x*1.6,2),d=A(x*.8,2);return m(f,v,"M-"+l+",-"+d+"L0,0M"+l+",-"+d+"L0,0M0,"+h+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(x,f,v){if(r(f))return t;var l=A(x*1.2,2),h=A(x*1.6,2),d=A(x*.8,2);return m(f,v,"M"+d+","+l+"L0,0M"+d+",-"+l+"L0,0M-"+h+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(x,f,v){if(r(f))return t;var l=A(x*1.2,2),h=A(x*1.6,2),d=A(x*.8,2);return m(f,v,"M-"+d+","+l+"L0,0M-"+d+",-"+l+"L0,0M"+h+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(x,f,v){if(r(f))return t;var l=A(x*1.4,2);return m(f,v,"M"+l+",0H-"+l)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(x,f,v){if(r(f))return t;var l=A(x*1.4,2);return m(f,v,"M0,"+l+"V-"+l)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M"+l+",-"+l+"L-"+l+","+l)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(x,f,v){if(r(f))return t;var l=A(x,2);return m(f,v,"M"+l+","+l+"L-"+l+",-"+l)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h=A(x*2,2);return m(f,v,"M0,0L-"+l+","+h+"H"+l+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h=A(x*2,2);return m(f,v,"M0,0L-"+l+",-"+h+"H"+l+"Z")},noDot:!0},"arrow-left":{n:47,f:function(x,f,v){if(r(f))return t;var l=A(x*2,2),h=A(x,2);return m(f,v,"M0,0L"+l+",-"+h+"V"+h+"Z")},noDot:!0},"arrow-right":{n:48,f:function(x,f,v){if(r(f))return t;var l=A(x*2,2),h=A(x,2);return m(f,v,"M0,0L-"+l+",-"+h+"V"+h+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h=A(x*2,2);return m(f,v,"M-"+l+",0H"+l+"M0,0L-"+l+","+h+"H"+l+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(x,f,v){if(r(f))return t;var l=A(x,2),h=A(x*2,2);return m(f,v,"M-"+l+",0H"+l+"M0,0L-"+l+",-"+h+"H"+l+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(x,f,v){if(r(f))return t;var l=A(x*2,2),h=A(x,2);return m(f,v,"M0,-"+h+"V"+h+"M0,0L"+l+",-"+h+"V"+h+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(x,f,v){if(r(f))return t;var l=A(x*2,2),h=A(x,2);return m(f,v,"M0,-"+h+"V"+h+"M0,0L-"+l+",-"+h+"V"+h+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(x,f,v){if(r(f))return t;var l=p/2.5,h=2*x*c(l),d=2*x*i(l);return m(f,v,"M0,0L"+-h+","+d+"L"+h+","+d+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(x,f,v){if(r(f))return t;var l=p/4,h=2*x*c(l),d=2*x*i(l);return m(f,v,"M0,0L"+-h+","+d+"A "+2*x+","+2*x+" 0 0 1 "+h+","+d+"Z")},backoff:.4,noDot:!0}};function r(x){return x===null}var o,a,s,n;function m(x,f,v){if((!x||x%360==0)&&!f)return v;if(s===x&&n===f&&o===v)return a;s=x,n=f,o=v;function l(O,j){var B=c(O),U=i(O),P=j[0],N=j[1]+(f||0);return[P*B-N*U,P*U+N*B]}for(var h=x/180*p,d=0,b=0,M=S(v),g="",k=0;k<M.length;k++){var L=M[k],u=L[0],T=d,C=b;if(u==="M"||u==="L")d=+L[1],b=+L[2];else if(u==="m"||u==="l")d+=+L[1],b+=+L[2];else if(u==="H")d=+L[1];else if(u==="h")d+=+L[1];else if(u==="V")b=+L[1];else if(u==="v")b+=+L[1];else if(u==="A"){d=+L[1],b=+L[2];var _=l(h,[+L[6],+L[7]]);L[6]=_[0],L[7]=_[1],L[3]=+L[3]+x}(u==="H"||u==="V")&&(u="L"),(u==="h"||u==="v")&&(u="l"),(u==="m"||u==="l")&&(d-=T,b-=C);var F=l(h,[d,b]);(u==="H"||u==="V")&&(u="L"),(u==="M"||u==="L"||u==="m"||u==="l")&&(L[1]=F[0],L[2]=F[1]),L[0]=u,g+=L[0]+L.slice(1).join(",")}return a=g,g}}),75568:(function(tt){tt.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}}),352:(function(tt,G,e){var S=e(10721),A=e(33626),t=e(29714),E=e(34809),w=e(25589);tt.exports=function(c){for(var i=c.calcdata,r=0;r<i.length;r++){var o=i[r],a=o[0].trace;if(a.visible===!0&&A.traceIs(a,"errorBarsOK")){var s=t.getFromId(c,a.xaxis),n=t.getFromId(c,a.yaxis);p(o,a,s,"x"),p(o,a,n,"y")}}};function p(c,i,r,o){var a=i["error_"+o]||{},s=a.visible&&["linear","log"].indexOf(r.type)!==-1,n=[];if(s){for(var m=w(a),x=0;x<c.length;x++){var f=c[x],v=f.i;if(v===void 0)v=x;else if(v===null)continue;var l=f[o];if(S(r.c2l(l))){var h=m(l,v);if(S(h[0])&&S(h[1])){var d=f[o+"s"]=l-h[0],b=f[o+"h"]=l+h[1];n.push(d,b)}}}var M=r._id,g=i._extremes[M],k=t.findExtremes(r,n,E.extendFlat({tozero:g.opts.tozero},{padded:!0}));g.min=g.min.concat(k.min),g.max=g.max.concat(k.max)}}}),25589:(function(tt){tt.exports=function(e){var S=e.type,A=e.symmetric;if(S==="data"){var t=e.array||[];if(A)return function(c,i){var r=+t[i];return[r,r]};var E=e.arrayminus||[];return function(c,i){var r=+t[i],o=+E[i];return!isNaN(r)||!isNaN(o)?[o||0,r||0]:[NaN,NaN]}}else{var w=G(S,e.value),p=G(S,e.valueminus);return A||e.valueminus===void 0?function(c){var i=w(c);return[i,i]}:function(c){return[p(c),w(c)]}}};function G(e,S){if(e==="percent")return function(A){return Math.abs(A*S/100)};if(e==="constant")return function(){return Math.abs(S)};if(e==="sqrt")return function(A){return Math.sqrt(Math.abs(A))}}}),5543:(function(tt,G,e){var S=e(10721),A=e(33626),t=e(34809),E=e(78032),w=e(75568);tt.exports=function(p,c,i,r){var o="error_"+r.axis,a=E.newContainer(c,o),s=p[o]||{};function n(v,l){return t.coerce(s,a,w,v,l)}if(n("visible",s.array!==void 0||s.value!==void 0||s.type==="sqrt")!==!1){var m=n("type","array"in s?"data":"percent"),x=!0;m!=="sqrt"&&(x=n("symmetric",!((m==="data"?"arrayminus":"valueminus")in s))),m==="data"?(n("array"),n("traceref"),x||(n("arrayminus"),n("tracerefminus"))):(m==="percent"||m==="constant")&&(n("value"),x||n("valueminus"));var f="copy_"+r.inherit+"style";r.inherit&&(c["error_"+r.inherit]||{}).visible&&n(f,!(s.color||S(s.thickness)||S(s.width))),(!r.inherit||!a[f])&&(n("color",i),n("thickness"),n("width",A.traceIs(c,"gl3d")?0:4))}}}),77901:(function(tt,G,e){var S=e(34809),A=e(13582).overrideAll,t=e(75568),E={error_x:S.extendFlat({},t),error_y:S.extendFlat({},t)};delete E.error_x.copy_zstyle,delete E.error_y.copy_zstyle,delete E.error_y.copy_ystyle;var w={error_x:S.extendFlat({},t),error_y:S.extendFlat({},t),error_z:S.extendFlat({},t)};delete w.error_x.copy_ystyle,delete w.error_y.copy_ystyle,delete w.error_z.copy_ystyle,delete w.error_z.copy_zstyle,tt.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:E,bar:E,histogram:E,scatter3d:A(w,"calc","nested"),scattergl:A(E,"calc","nested")}},supplyDefaults:e(5543),calc:e(352),makeComputeError:e(25589),plot:e(42130),style:e(22800),hoverInfo:p};function p(c,i,r){(i.error_y||{}).visible&&(r.yerr=c.yh-c.y,i.error_y.symmetric||(r.yerrneg=c.y-c.ys)),(i.error_x||{}).visible&&(r.xerr=c.xh-c.x,i.error_x.symmetric||(r.xerrneg=c.x-c.xs))}}),42130:(function(tt,G,e){var S=e(45568),A=e(10721),t=e(62203),E=e(64726);tt.exports=function(p,c,i,r){var o,a=i.xaxis,s=i.yaxis,n=r&&r.duration>0,m=p._context.staticPlot;c.each(function(x){var f=x[0].trace,v=f.error_x||{},l=f.error_y||{},h;f.ids&&(h=function(g){return g.id});var d=E.hasMarkers(f)&&f.marker.maxdisplayed>0;!l.visible&&!v.visible&&(x=[]);var b=S.select(this).selectAll("g.errorbar").data(x,h);if(b.exit().remove(),x.length){v.visible||b.selectAll("path.xerror").remove(),l.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var M=b.enter().append("g").classed("errorbar",!0);n&&M.style("opacity",0).transition().duration(r.duration).style("opacity",1),t.setClipUrl(b,i.layerClipId,p),b.each(function(g){var k=S.select(this),L=w(g,a,s);if(!(d&&!g.vis)){var u,T=k.select("path.yerror");if(l.visible&&A(L.x)&&A(L.yh)&&A(L.ys)){var C=l.width;u="M"+(L.x-C)+","+L.yh+"h"+2*C+"m-"+C+",0V"+L.ys,L.noYS||(u+="m-"+C+",0h"+2*C),o=!T.size(),o?T=k.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("yerror",!0):n&&(T=T.transition().duration(r.duration).ease(r.easing)),T.attr("d",u)}else T.remove();var _=k.select("path.xerror");if(v.visible&&A(L.y)&&A(L.xh)&&A(L.xs)){var F=(v.copy_ystyle?l:v).width;u="M"+L.xh+","+(L.y-F)+"v"+2*F+"m0,-"+F+"H"+L.xs,L.noXS||(u+="m0,-"+F+"v"+2*F),o=!_.size(),o?_=k.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("xerror",!0):n&&(_=_.transition().duration(r.duration).ease(r.easing)),_.attr("d",u)}else _.remove()}})}})};function w(p,c,i){var r={x:c.c2p(p.x),y:i.c2p(p.y)};return p.yh!==void 0&&(r.yh=i.c2p(p.yh),r.ys=i.c2p(p.ys),A(r.ys)||(r.noYS=!0,r.ys=i.c2p(p.ys,!0))),p.xh!==void 0&&(r.xh=c.c2p(p.xh),r.xs=c.c2p(p.xs),A(r.xs)||(r.noXS=!0,r.xs=c.c2p(p.xs,!0))),r}}),22800:(function(tt,G,e){var S=e(45568),A=e(78766);tt.exports=function(t){t.each(function(E){var w=E[0].trace,p=w.error_y||{},c=w.error_x||{},i=S.select(this);i.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(A.stroke,p.color),c.copy_ystyle&&(c=p),i.selectAll("path.xerror").style("stroke-width",c.thickness+"px").call(A.stroke,c.color)})}}),70192:(function(tt,G,e){var S=e(80337),A=e(6811).hoverlabel,t=e(93049).extendFlat;tt.exports={hoverlabel:{bgcolor:t({},A.bgcolor,{arrayOk:!0}),bordercolor:t({},A.bordercolor,{arrayOk:!0}),font:S({arrayOk:!0,editType:"none"}),align:t({},A.align,{arrayOk:!0}),namelength:t({},A.namelength,{arrayOk:!0}),editType:"none"}}}),83552:(function(tt,G,e){var S=e(34809),A=e(33626);tt.exports=function(E){var w=E.calcdata,p=E._fullLayout;function c(s){return function(n){return S.coerceHoverinfo({hoverinfo:n},{_module:s._module},p)}}for(var i=0;i<w.length;i++){var r=w[i],o=r[0].trace;if(!A.traceIs(o,"pie-like")){var a=A.traceIs(o,"2dMap")?t:S.fillArray;a(o.hoverinfo,r,"hi",c(o)),o.hovertemplate&&a(o.hovertemplate,r,"ht"),o.hoverlabel&&(a(o.hoverlabel.bgcolor,r,"hbg"),a(o.hoverlabel.bordercolor,r,"hbc"),a(o.hoverlabel.font.size,r,"hts"),a(o.hoverlabel.font.color,r,"htc"),a(o.hoverlabel.font.family,r,"htf"),a(o.hoverlabel.font.weight,r,"htw"),a(o.hoverlabel.font.style,r,"hty"),a(o.hoverlabel.font.variant,r,"htv"),a(o.hoverlabel.namelength,r,"hnl"),a(o.hoverlabel.align,r,"hta"))}}};function t(E,w,p,c){c||(c=S.identity),Array.isArray(E)&&(w[0][p]=c(E))}}),94225:(function(tt,G,e){var S=e(33626),A=e(38103).hover;tt.exports=function(t,E,w){var p=S.getComponentMethod("annotations","onClick")(t,t._hoverdata);w!==void 0&&A(t,E,w,!0);function c(){t.emit("plotly_click",{points:t._hoverdata,event:E})}t._hoverdata&&E&&E.target&&(p&&p.then?p.then(c):c(),E.stopImmediatePropagation&&E.stopImmediatePropagation())}}),85988:(function(tt){tt.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}}),3239:(function(tt,G,e){var S=e(34809),A=e(70192),t=e(26430);tt.exports=function(E,w,p,c){function i(o,a){return S.coerce(E,w,A,o,a)}var r=S.extendFlat({},c.hoverlabel);w.hovertemplate&&(r.namelength=-1),t(E,w,i,r)}}),36040:(function(tt,G,e){var S=e(34809);G.getSubplot=function(c){return c.subplot||c.xaxis+c.yaxis||c.geo},G.isTraceInSubplots=function(c,i){if(c.type==="splom"){for(var r=c.xaxes||[],o=c.yaxes||[],a=0;a<r.length;a++)for(var s=0;s<o.length;s++)if(i.indexOf(r[a]+o[s])!==-1)return!0;return!1}return i.indexOf(G.getSubplot(c))!==-1},G.flat=function(c,i){for(var r=Array(c.length),o=0;o<c.length;o++)r[o]=i;return r},G.p2c=function(c,i){for(var r=Array(c.length),o=0;o<c.length;o++)r[o]=c[o].p2c(i);return r},G.getDistanceFunction=function(c,i,r,o){return c==="closest"?o||G.quadrature(i,r):c.charAt(0)==="x"?i:r},G.getClosest=function(c,i,r){if(r.index!==!1)r.index>=0&&r.index<c.length?r.distance=0:r.index=!1;else for(var o=0;o<c.length;o++){var a=i(c[o]);a<=r.distance&&(r.index=o,r.distance=a)}return r},G.inbox=function(c,i,r){return c*i<0||c===0?r:1/0},G.quadrature=function(c,i){return function(r){var o=c(r),a=i(r);return Math.sqrt(o*o+a*a)}},G.makeEventData=function(c,i,r){var o="index"in c?c.index:c.pointNumber,a={data:i._input,fullData:i,curveNumber:i.index,pointNumber:o};if(i._indexToPoints){var s=i._indexToPoints[o];s.length===1?a.pointIndex=s[0]:a.pointIndices=s}else a.pointIndex=o;return i._module.eventData?a=i._module.eventData(a,c,i,r,o):("xVal"in c?a.x=c.xVal:"x"in c&&(a.x=c.x),"yVal"in c?a.y=c.yVal:"y"in c&&(a.y=c.y),c.xa&&(a.xaxis=c.xa),c.ya&&(a.yaxis=c.ya),c.zLabelVal!==void 0&&(a.z=c.zLabelVal)),G.appendArrayPointValue(a,i,o),a},G.appendArrayPointValue=function(c,i,r){var o=i._arrayAttrs;if(o)for(var a=0;a<o.length;a++){var s=o[a],n=t(s);if(c[n]===void 0){var m=E(S.nestedProperty(i,s).get(),r);m!==void 0&&(c[n]=m)}}},G.appendArrayMultiPointValues=function(c,i,r){var o=i._arrayAttrs;if(o)for(var a=0;a<o.length;a++){var s=o[a],n=t(s);if(c[n]===void 0){for(var m=S.nestedProperty(i,s).get(),x=Array(r.length),f=0;f<r.length;f++)x[f]=E(m,r[f]);c[n]=x}}};var A={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function t(c){return A[c]||c}function E(c,i){if(Array.isArray(i)){if(Array.isArray(c)&&Array.isArray(c[i[0]]))return c[i[0]][i[1]]}else return c[i]}var w={x:!0,y:!0},p={"x unified":!0,"y unified":!0};G.isUnifiedHover=function(c){return typeof c=="string"?!!p[c]:!1},G.isXYhover=function(c){return typeof c=="string"?!!w[c]:!1}}),38103:(function(tt,G,e){var S=e(45568),A=e(10721),t=e(65657),E=e(34809),w=E.pushUnique,p=E.strTranslate,c=E.strRotate,i=e(68596),r=e(30635),o=e(93134),a=e(62203),s=e(78766),n=e(14751),m=e(29714),x=e(54826).zindexSeparator,f=e(33626),v=e(36040),l=e(85988),h=e(73970),d=e(6134),b=l.YANGLE,M=Math.PI*b/180,g=1/Math.sin(M),k=Math.cos(M),L=Math.sin(M),u=l.HOVERARROWSIZE,T=l.HOVERTEXTPAD,C={box:!0,ohlc:!0,violin:!0,candlestick:!0},_={scatter:!0,scattergl:!0,splom:!0};function F(X,ut){return X.distance-ut.distance}G.hover=function(X,ut,lt,yt){X=E.getGraphDiv(X);var kt=ut.target;E.throttle(X._fullLayout._uid+l.HOVERID,l.HOVERMINTIME,function(){O(X,ut,lt,yt,kt)})},G.loneHover=function(X,ut){var lt=!0;Array.isArray(X)||(lt=!1,X=[X]);var yt=ut.gd,kt=st(yt),Lt=ot(yt),St=X.map(function(jt){var de=jt._x0||jt.x0||jt.x||0,Xt=jt._x1||jt.x1||jt.x||0,ye=jt._y0||jt.y0||jt.y||0,Le=jt._y1||jt.y1||jt.y||0,ve=jt.eventData;if(ve){var ke=Math.min(de,Xt),Pe=Math.max(de,Xt),me=Math.min(ye,Le),be=Math.max(ye,Le),je=jt.trace;if(f.traceIs(je,"gl3d")){var nr=yt._fullLayout[je.scene]._scene.container,Vt=nr.offsetLeft,Qt=nr.offsetTop;ke+=Vt,Pe+=Vt,me+=Qt,be+=Qt}ve.bbox={x0:ke+Lt,x1:Pe+Lt,y0:me+kt,y1:be+kt},ut.inOut_bbox&&ut.inOut_bbox.push(ve.bbox)}else ve=!1;return{color:jt.color||s.defaultLine,x0:jt.x0||jt.x||0,x1:jt.x1||jt.x||0,y0:jt.y0||jt.y||0,y1:jt.y1||jt.y||0,xLabel:jt.xLabel,yLabel:jt.yLabel,zLabel:jt.zLabel,text:jt.text,name:jt.name,idealAlign:jt.idealAlign,borderColor:jt.borderColor,fontFamily:jt.fontFamily,fontSize:jt.fontSize,fontColor:jt.fontColor,fontWeight:jt.fontWeight,fontStyle:jt.fontStyle,fontVariant:jt.fontVariant,nameLength:jt.nameLength,textAlign:jt.textAlign,trace:jt.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:jt.hovertemplate||!1,hovertemplateLabels:jt.hovertemplateLabels||!1,eventData:ve}}),Ot=!1,Ht=U(St,{gd:yt,hovermode:"closest",rotateLabels:Ot,bgColor:ut.bgColor||s.background,container:S.select(ut.container),outerContainer:ut.outerContainer||ut.container}).hoverLabels,Kt=5,Gt=0,Et=0;Ht.sort(function(jt,de){return jt.y0-de.y0}).each(function(jt,de){var Xt=jt.y0-jt.by/2;Xt-Kt<Gt?jt.offset=Gt-Xt+Kt:jt.offset=0,Gt=Xt+jt.by+jt.offset,de===ut.anchorIndex&&(Et=jt.offset)}).each(function(jt){jt.offset-=Et});var At=yt._fullLayout._invScaleX,qt=yt._fullLayout._invScaleY;return K(Ht,Ot,At,qt),lt?Ht:Ht.node()};function O(X,ut,lt,yt,kt){lt||(lt="xy"),typeof lt=="string"&&(lt=lt.split(x)[0]);var Lt=Array.isArray(lt)?lt:[lt],St,Ot=X._fullLayout,Ht=Ot.hoversubplots,Kt=Ot._plots||[],Gt=Kt[lt],Et=Ot._has("cartesian"),At=ut.hovermode||Ot.hovermode,qt=(At||"").charAt(0)==="x",jt=(At||"").charAt(0)==="y",de,Xt;if(Et&&(qt||jt)&&Ht==="axis"){for(var ye=Lt.length,Le=0;Le<ye;Le++)if(St=Lt[Le],Kt[St]){de=m.getFromId(X,St,"x"),Xt=m.getFromId(X,St,"y");var ve=(qt?de:Xt)._subplotsWith;if(ve&&ve.length)for(var ke=0;ke<ve.length;ke++)w(Lt,ve[ke])}}if(Gt&&Ht!=="single"){var Pe=Gt.overlays.map(function(wi){return wi.id});Lt=Lt.concat(Pe)}for(var me=Lt.length,be=Array(me),je=Array(me),nr=!1,Vt=0;Vt<me;Vt++)if(St=Lt[Vt],Kt[St])nr=!0,be[Vt]=Kt[St].xaxis,je[Vt]=Kt[St].yaxis;else if(Ot[St]&&Ot[St]._subplot){var Qt=Ot[St]._subplot;be[Vt]=Qt.xaxis,je[Vt]=Qt.yaxis}else{E.warn("Unrecognized subplot: "+St);return}if(At&&!nr&&(At="closest"),["x","y","closest","x unified","y unified"].indexOf(At)===-1||!X.calcdata||X.querySelector(".zoombox")||X._dragging)return n.unhoverRaw(X,ut);var te=Ot.hoverdistance;te===-1&&(te=1/0);var ee=Ot.spikedistance;ee===-1&&(ee=1/0);var Bt=[],Wt=[],$t,Tt,_t,It,Mt,Ct,Ut,Zt,Me,Be,ge,Ee,Ne,sr={hLinePoint:null,vLinePoint:null},_e=!1;if(Array.isArray(ut))for(At="array",_t=0;_t<ut.length;_t++)Mt=X.calcdata[ut[_t].curveNumber||0],Mt&&(Ct=Mt[0].trace,Mt[0].trace.hoverinfo!=="skip"&&(Wt.push(Mt),Ct.orientation==="h"&&(_e=!0)));else{var He=X.calcdata.slice();for(He.sort(function(wi,ma){return(wi[0].trace.zorder||0)-(ma[0].trace.zorder||0)}),It=0;It<He.length;It++)Mt=He[It],Ct=Mt[0].trace,Ct.hoverinfo!=="skip"&&v.isTraceInSubplots(Ct,Lt)&&(Wt.push(Mt),Ct.orientation==="h"&&(_e=!0));var or=!kt,Pr,br;if(or)Pr="xpx"in ut?ut.xpx:be[0]._length/2,br="ypx"in ut?ut.ypx:je[0]._length/2;else{if(i.triggerHandler(X,"plotly_beforehover",ut)===!1)return;var ue=kt.getBoundingClientRect();Pr=ut.clientX-ue.left,br=ut.clientY-ue.top,Ot._calcInverseTransform(X);var we=E.apply3DTransform(Ot._invTransform)(Pr,br);if(Pr=we[0],br=we[1],Pr<0||Pr>be[0]._length||br<0||br>je[0]._length)return n.unhoverRaw(X,ut)}if(ut.pointerX=Pr+be[0]._offset,ut.pointerY=br+je[0]._offset,$t="xval"in ut?v.flat(Lt,ut.xval):v.p2c(be,Pr),Tt="yval"in ut?v.flat(Lt,ut.yval):v.p2c(je,br),!A($t[0])||!A(Tt[0]))return E.warn("Fx.hover failed",ut,X),n.unhoverRaw(X,ut)}var Ce=1/0;function Ge(wi,ma){for(It=0;It<Wt.length;It++)if(Mt=Wt[It],!(!Mt||!Mt[0]||!Mt[0].trace)&&(Ct=Mt[0].trace,!(Ct.visible!==!0||Ct._length===0)&&["carpet","contourcarpet"].indexOf(Ct._module.name)===-1)){if(Me=At,v.isUnifiedHover(Me)&&(Me=Me.charAt(0)),Ct.type==="splom"?(Zt=0,Ut=Lt[Zt]):(Ut=v.getSubplot(Ct),Zt=Lt.indexOf(Ut)),Ee={cd:Mt,trace:Ct,xa:be[Zt],ya:je[Zt],maxHoverDistance:te,maxSpikeDistance:ee,index:!1,distance:Math.min(Ce,te),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:s.defaultLine,name:Ct.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},Ot[Ut]&&(Ee.subplot=Ot[Ut]._subplot),Ot._splomScenes&&Ot._splomScenes[Ct.uid]&&(Ee.scene=Ot._splomScenes[Ct.uid]),Me==="array"){var Ha=ut[It];"pointNumber"in Ha?(Ee.index=Ha.pointNumber,Me="closest"):(Me="","xval"in Ha&&(Be=Ha.xval,Me="x"),"yval"in Ha&&(ge=Ha.yval,Me=Me?"closest":"y"))}else wi!==void 0&&ma!==void 0?(Be=wi,ge=ma):(Be=$t[Zt],ge=Tt[Zt]);if(Ne=Bt.length,te!==0)if(Ct._module&&Ct._module.hoverPoints){var ya=Ct._module.hoverPoints(Ee,Be,ge,Me,{finiteRange:!0,hoverLayer:Ot._hoverlayer,hoversubplots:Ht,gd:X});if(ya)for(var Ga,Ea=0;Ea<ya.length;Ea++)Ga=ya[Ea],A(Ga.x0)&&A(Ga.y0)&&Bt.push(nt(Ga,At))}else E.log("Unrecognized trace type in hover:",Ct);if(At==="closest"&&Bt.length>Ne&&(Bt.splice(0,Ne),Ce=Bt[0].distance),Et&&ee!==0&&Bt.length===0){Ee.distance=ee,Ee.index=!1;var Fa=Ct._module.hoverPoints(Ee,Be,ge,"closest",{hoverLayer:Ot._hoverlayer});if(Fa&&(Fa=Fa.filter(function(Ji){return Ji.spikeDistance<=ee})),Fa&&Fa.length){var Xr,ji=Fa.filter(function(Ji){return Ji.xa.showspikes&&Ji.xa.spikesnap!=="hovered data"});if(ji.length){var Li=ji[0];A(Li.x0)&&A(Li.y0)&&(Xr=ar(Li),(!sr.vLinePoint||sr.vLinePoint.spikeDistance>Xr.spikeDistance)&&(sr.vLinePoint=Xr))}var Si=Fa.filter(function(Ji){return Ji.ya.showspikes&&Ji.ya.spikesnap!=="hovered data"});if(Si.length){var aa=Si[0];A(aa.x0)&&A(aa.y0)&&(Xr=ar(aa),(!sr.hLinePoint||sr.hLinePoint.spikeDistance>Xr.spikeDistance)&&(sr.hLinePoint=Xr))}}}}}Ge();function Ke(wi,ma,Ha){for(var ya=null,Ga=1/0,Ea,Fa=0;Fa<wi.length;Fa++)de&&de._id!==wi[Fa].xa._id||Xt&&Xt._id!==wi[Fa].ya._id||(Ea=wi[Fa].spikeDistance,Ha&&Fa===0&&(Ea=-1/0),Ea<=Ga&&Ea<=ma&&(ya=wi[Fa],Ga=Ea));return ya}function ar(wi){return wi?{xa:wi.xa,ya:wi.ya,x:wi.xSpike===void 0?(wi.x0+wi.x1)/2:wi.xSpike,y:wi.ySpike===void 0?(wi.y0+wi.y1)/2:wi.ySpike,distance:wi.distance,spikeDistance:wi.spikeDistance,curveNumber:wi.trace.index,color:wi.color,pointNumber:wi.index}:null}var We={fullLayout:Ot,container:Ot._hoverlayer,event:ut},$e=X._spikepoints;X._spikepoints={vLinePoint:sr.vLinePoint,hLinePoint:sr.hLinePoint};var yr=function(){var wi=Bt.filter(function(Ha){return de&&de._id===Ha.xa._id&&Xt&&Xt._id===Ha.ya._id}),ma=Bt.filter(function(Ha){return!(de&&de._id===Ha.xa._id&&Xt&&Xt._id===Ha.ya._id)});wi.sort(F),ma.sort(F),Bt=wi.concat(ma),Bt=Q(Bt,At)};yr();var Cr=At.charAt(0),Sr=(Cr==="x"||Cr==="y")&&Bt[0]&&_[Bt[0].trace.type];if(Et&&ee!==0&&Bt.length!==0&&(sr.hLinePoint=ar(Ke(Bt.filter(function(wi){return wi.ya.showspikes}),ee,Sr)),sr.vLinePoint=ar(Ke(Bt.filter(function(wi){return wi.xa.showspikes}),ee,Sr))),Bt.length===0){var Dr=n.unhoverRaw(X,ut);return Et&&(sr.hLinePoint!==null||sr.vLinePoint!==null)&&J($e)&&ft(X,sr,We),Dr}if(Et&&J($e)&&ft(X,sr,We),v.isXYhover(Me)&&Bt[0].length!==0&&Bt[0].trace.type!=="splom"){var Or=Bt[0];Bt=C[Or.trace.type]?Bt.filter(function(wi){return wi.trace.index===Or.trace.index}):[Or];var ei=Bt.length;Ge(Z("x",Or,Ot),Z("y",Or,Ot));var Nr=[],re={},ae=0,wr=function(wi){var ma=C[wi.trace.type]?j(wi):wi.trace.index;if(!re[ma])ae++,re[ma]=ae,Nr.push(wi);else{var Ha=re[ma]-1,ya=Nr[Ha];Ha>0&&Math.abs(wi.distance)<Math.abs(ya.distance)&&(Nr[Ha]=wi)}},_r;for(_r=0;_r<ei;_r++)wr(Bt[_r]);for(_r=Bt.length-1;_r>ei-1;_r--)wr(Bt[_r]);Bt=Nr,yr()}var lr=X._hoverdata,qe=[],pr=st(X),xr=ot(X);for(_t=0;_t<Bt.length;_t++){var fr=Bt[_t],ur=v.makeEventData(fr,fr.trace,fr.cd);if(fr.hovertemplate!==!1){var Br=!1;fr.cd[fr.index]&&fr.cd[fr.index].ht&&(Br=fr.cd[fr.index].ht),fr.hovertemplate=Br||fr.trace.hovertemplate||!1}if(fr.xa&&fr.ya){var $r=fr.x0+fr.xa._offset,Jr=fr.x1+fr.xa._offset,Zi=fr.y0+fr.ya._offset,mi=fr.y1+fr.ya._offset,Ei=Math.min($r,Jr),Di=Math.max($r,Jr),Tr=Math.min(Zi,mi),Vr=Math.max(Zi,mi);ur.bbox={x0:Ei+xr,x1:Di+xr,y0:Tr+pr,y1:Vr+pr}}fr.eventData=[ur],qe.push(ur)}X._hoverdata=qe;var li=At==="y"&&(Wt.length>1||Bt.length>1)||At==="closest"&&_e&&Bt.length>1,ci=s.combine(Ot.plot_bgcolor||s.background,Ot.paper_bgcolor),Ni=U(Bt,{gd:X,hovermode:At,rotateLabels:li,bgColor:ci,container:Ot._hoverlayer,outerContainer:Ot._paper.node(),commonLabelOpts:Ot.hoverlabel,hoverdistance:Ot.hoverdistance}),si=Ni.hoverLabels;if(v.isUnifiedHover(At)||(N(si,li,Ot,Ni.commonLabelBoundingBox),K(si,li,Ot._invScaleX,Ot._invScaleY)),kt&&kt.tagName){var Ci=f.getComponentMethod("annotations","hasClickToShow")(X,qe);o(S.select(kt),Ci?"pointer":"")}!kt||yt||!ct(X,ut,lr)||(lr&&X.emit("plotly_unhover",{event:ut,points:lr}),X.emit("plotly_hover",{event:ut,points:X._hoverdata,xaxes:be,yaxes:je,xvals:$t,yvals:Tt}))}function j(X){return[X.trace.index,X.index,X.x0,X.y0,X.name,X.attr,X.xa?X.xa._id:"",X.ya?X.ya._id:""].join(",")}var B=/<extra>([\s\S]*)<\/extra>/;function U(X,ut){var lt=ut.gd,yt=lt._fullLayout,kt=ut.hovermode,Lt=ut.rotateLabels,St=ut.bgColor,Ot=ut.container,Ht=ut.outerContainer,Kt=ut.commonLabelOpts||{};if(X.length===0)return[[]];var Gt=ut.fontFamily||l.HOVERFONT,Et=ut.fontSize||l.HOVERFONTSIZE,At=ut.fontWeight||yt.font.weight,qt=ut.fontStyle||yt.font.style,jt=ut.fontVariant||yt.font.variant,de=ut.fontTextcase||yt.font.textcase,Xt=ut.fontLineposition||yt.font.lineposition,ye=ut.fontShadow||yt.font.shadow,Le=X[0],ve=Le.xa,ke=Le.ya,Pe=kt.charAt(0),me=Pe+"Label",be=Le[me];if(be===void 0&&ve.type==="multicategory")for(var je=0;je<X.length&&(be=X[je][me],be===void 0);je++);var nr=rt(lt,Ht),Vt=nr.top,Qt=nr.width,te=nr.height,ee=be!==void 0&&Le.distance<=ut.hoverdistance&&(kt==="x"||kt==="y");if(ee){var Bt=!0,Wt,$t;for(Wt=0;Wt<X.length;Wt++)if(Bt&&X[Wt].zLabel===void 0&&(Bt=!1),$t=X[Wt].hoverinfo||X[Wt].trace.hoverinfo,$t){var Tt=Array.isArray($t)?$t:$t.split("+");if(Tt.indexOf("all")===-1&&Tt.indexOf(kt)===-1){ee=!1;break}}Bt&&(ee=!1)}var _t=Ot.selectAll("g.axistext").data(ee?[0]:[]);_t.enter().append("g").classed("axistext",!0),_t.exit().remove();var It={minX:0,maxX:0,minY:0,maxY:0};if(_t.each(function(){var Nr=S.select(this),re=E.ensureSingle(Nr,"path","",function(si){si.style({"stroke-width":"1px"})}),ae=E.ensureSingle(Nr,"text","",function(si){si.attr("data-notex",1)}),wr=Kt.bgcolor||s.defaultLine,_r=Kt.bordercolor||s.contrast(wr),lr=s.contrast(wr),qe=Kt.font,pr={weight:qe.weight||At,style:qe.style||qt,variant:qe.variant||jt,textcase:qe.textcase||de,lineposition:qe.lineposition||Xt,shadow:qe.shadow||ye,family:qe.family||Gt,size:qe.size||Et,color:qe.color||lr};re.style({fill:wr,stroke:_r}),ae.text(be).call(a.font,pr).call(r.positionText,0,0).call(r.convertToTspans,lt),Nr.attr("transform","");var xr=rt(lt,ae.node()),fr,ur;if(kt==="x"){var Br=ve.side==="top"?"-":"";ae.attr("text-anchor","middle").call(r.positionText,0,ve.side==="top"?Vt-xr.bottom-u-T:Vt-xr.top+u+T),fr=ve._offset+(Le.x0+Le.x1)/2,ur=ke._offset+(ve.side==="top"?0:ke._length);var $r=xr.width/2+T,Jr=fr;fr<$r?Jr=$r:fr>yt.width-$r&&(Jr=yt.width-$r),re.attr("d","M"+(fr-Jr)+",0L"+(fr-Jr+u)+","+Br+u+"H"+$r+"v"+Br+(T*2+xr.height)+"H"+-$r+"V"+Br+u+"H"+(fr-Jr-u)+"Z"),fr=Jr,It.minX=fr-$r,It.maxX=fr+$r,ve.side==="top"?(It.minY=ur-(T*2+xr.height),It.maxY=ur-T):(It.minY=ur+T,It.maxY=ur+(T*2+xr.height))}else{var Zi,mi,Ei;ke.side==="right"?(Zi="start",mi=1,Ei="",fr=ve._offset+ve._length):(Zi="end",mi=-1,Ei="-",fr=ve._offset),ur=ke._offset+(Le.y0+Le.y1)/2,ae.attr("text-anchor",Zi),re.attr("d","M0,0L"+Ei+u+","+u+"V"+(T+xr.height/2)+"h"+Ei+(T*2+xr.width)+"V-"+(T+xr.height/2)+"H"+Ei+u+"V-"+u+"Z"),It.minY=ur-(T+xr.height/2),It.maxY=ur+(T+xr.height/2),ke.side==="right"?(It.minX=fr+u,It.maxX=fr+u+(T*2+xr.width)):(It.minX=fr-u-(T*2+xr.width),It.maxX=fr-u);var Di=xr.height/2,Tr=Vt-xr.top-Di,Vr="clip"+yt._uid+"commonlabel"+ke._id,li;if(fr<xr.width+2*T+u){li="M-"+(u+T)+"-"+Di+"h-"+(xr.width-T)+"V"+Di+"h"+(xr.width-T)+"Z";var ci=xr.width-fr+T;r.positionText(ae,ci,Tr),Zi==="end"&&ae.selectAll("tspan").each(function(){var si=S.select(this),Ci=a.tester.append("text").text(si.text()).call(a.font,pr),wi=rt(lt,Ci.node());Math.round(wi.width)<Math.round(xr.width)&&si.attr("x",ci-wi.width),Ci.remove()})}else r.positionText(ae,mi*(T+u),Tr),li=null;var Ni=yt._topclips.selectAll("#"+Vr).data(li?[0]:[]);Ni.enter().append("clipPath").attr("id",Vr).append("path"),Ni.exit().remove(),Ni.select("path").attr("d",li),a.setClipUrl(ae,li?Vr:null,lt)}Nr.attr("transform",p(fr,ur))}),v.isUnifiedHover(kt)){Ot.selectAll("g.hovertext").remove();var Mt=X.filter(function(Nr){return Nr.hoverinfo!=="none"});if(Mt.length===0)return[];var Ct=yt.hoverlabel,Ut=Ct.font,Zt={showlegend:!0,legend:{title:{text:be,font:Ut},font:Ut,bgcolor:Ct.bgcolor,bordercolor:Ct.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:yt.legend?yt.legend.traceorder:void 0,orientation:"v"}},Me={font:Ut};h(Zt,Me,lt._fullData);var Be=Me.legend;Be.entries=[];for(var ge=0;ge<Mt.length;ge++){var Ee=Mt[ge];if(Ee.hoverinfo!=="none"){var Ne=P(Ee,!0,kt,yt,be),sr=Ne[0],_e=Ne[1];Ee.name=_e,_e===""?Ee.text=sr:Ee.text=_e+" : "+sr;var He=Ee.cd[Ee.index];He&&(He.mc&&(Ee.mc=He.mc),He.mcc&&(Ee.mc=He.mcc),He.mlc&&(Ee.mlc=He.mlc),He.mlcc&&(Ee.mlc=He.mlcc),He.mlw&&(Ee.mlw=He.mlw),He.mrc&&(Ee.mrc=He.mrc),He.dir&&(Ee.dir=He.dir)),Ee._distinct=!0,Be.entries.push([Ee])}}Be.entries.sort(function(Nr,re){return Nr[0].trace.index-re[0].trace.index}),Be.layer=Ot,Be._inHover=!0,Be._groupTitleFont=Ct.grouptitlefont,d(lt,Be);var or=Ot.select("g.legend"),Pr=rt(lt,or.node()),br=Pr.width+2*T,ue=Pr.height+2*T,we=Mt[0],Ce=(we.x0+we.x1)/2,Ge=(we.y0+we.y1)/2,Ke=!(f.traceIs(we.trace,"bar-like")||f.traceIs(we.trace,"box-violin")),ar,We;Pe==="y"?Ke?(We=Ge-T,ar=Ge+T):(We=Math.min.apply(null,Mt.map(function(Nr){return Math.min(Nr.y0,Nr.y1)})),ar=Math.max.apply(null,Mt.map(function(Nr){return Math.max(Nr.y0,Nr.y1)}))):We=ar=E.mean(Mt.map(function(Nr){return(Nr.y0+Nr.y1)/2}))-ue/2;var $e,yr;Pe==="x"?Ke?($e=Ce+T,yr=Ce-T):($e=Math.max.apply(null,Mt.map(function(Nr){return Math.max(Nr.x0,Nr.x1)})),yr=Math.min.apply(null,Mt.map(function(Nr){return Math.min(Nr.x0,Nr.x1)}))):$e=yr=E.mean(Mt.map(function(Nr){return(Nr.x0+Nr.x1)/2}))-br/2;var Cr=ve._offset,Sr=ke._offset;ar+=Sr,$e+=Cr,yr+=Cr-br,We+=Sr-ue;var Dr=$e+br<Qt&&$e>=0?$e:yr+br<Qt&&yr>=0?yr:Cr+br<Qt?Cr:$e-Ce<Ce-yr+br?Qt-br:0,Or;return Dr+=T,Or=ar+ue<te&&ar>=0?ar:We+ue<te&&We>=0?We:Sr+ue<te?Sr:ar-Ge<Ge-We+ue?te-ue:0,Or+=T,or.attr("transform",p(Dr-1,Or-1)),or}var ei=Ot.selectAll("g.hovertext").data(X,function(Nr){return j(Nr)});return ei.enter().append("g").classed("hovertext",!0).each(function(){var Nr=S.select(this);Nr.append("rect").call(s.fill,s.addOpacity(St,.8)),Nr.append("text").classed("name",!0),Nr.append("path").style("stroke-width","1px"),Nr.append("text").classed("nums",!0).call(a.font,{weight:At,style:qt,variant:jt,textcase:de,lineposition:Xt,shadow:ye,family:Gt,size:Et})}),ei.exit().remove(),ei.each(function(Nr){var re=S.select(this).attr("transform",""),ae=Nr.color;Array.isArray(ae)&&(ae=ae[Nr.eventData[0].pointNumber]);var wr=Nr.bgcolor||ae,_r=s.combine(s.opacity(wr)?wr:s.defaultLine,St),lr=s.combine(s.opacity(ae)?ae:s.defaultLine,St),qe=Nr.borderColor||s.contrast(_r),pr=P(Nr,ee,kt,yt,be,re),xr=pr[0],fr=pr[1],ur=re.select("text.nums").call(a.font,{family:Nr.fontFamily||Gt,size:Nr.fontSize||Et,color:Nr.fontColor||qe,weight:Nr.fontWeight||At,style:Nr.fontStyle||qt,variant:Nr.fontVariant||jt,textcase:Nr.fontTextcase||de,lineposition:Nr.fontLineposition||Xt,shadow:Nr.fontShadow||ye}).text(xr).attr("data-notex",1).call(r.positionText,0,0).call(r.convertToTspans,lt),Br=re.select("text.name"),$r=0,Jr=0;if(fr&&fr!==xr){Br.call(a.font,{family:Nr.fontFamily||Gt,size:Nr.fontSize||Et,color:lr,weight:Nr.fontWeight||At,style:Nr.fontStyle||qt,variant:Nr.fontVariant||jt,textcase:Nr.fontTextcase||de,lineposition:Nr.fontLineposition||Xt,shadow:Nr.fontShadow||ye}).text(fr).attr("data-notex",1).call(r.positionText,0,0).call(r.convertToTspans,lt);var Zi=rt(lt,Br.node());$r=Zi.width+2*T,Jr=Zi.height+2*T}else Br.remove(),re.select("rect").remove();re.select("path").style({fill:_r,stroke:qe});var mi=Nr.xa._offset+(Nr.x0+Nr.x1)/2,Ei=Nr.ya._offset+(Nr.y0+Nr.y1)/2,Di=Math.abs(Nr.x1-Nr.x0),Tr=Math.abs(Nr.y1-Nr.y0),Vr=rt(lt,ur.node()),li=Vr.width/yt._invScaleX,ci=Vr.height/yt._invScaleY;Nr.ty0=(Vt-Vr.top)/yt._invScaleY,Nr.bx=li+2*T,Nr.by=Math.max(ci+2*T,Jr),Nr.anchor="start",Nr.txwidth=li,Nr.tx2width=$r,Nr.offset=0;var Ni=(li+u+T+$r)*yt._invScaleX,si,Ci;if(Lt)Nr.pos=mi,si=Ei+Tr/2+Ni<=te,Ci=Ei-Tr/2-Ni>=0,(Nr.idealAlign==="top"||!si)&&Ci?(Ei-=Tr/2,Nr.anchor="end"):si?(Ei+=Tr/2,Nr.anchor="start"):Nr.anchor="middle",Nr.crossPos=Ei;else{if(Nr.pos=Ei,si=mi+Di/2+Ni<=Qt,Ci=mi-Di/2-Ni>=0,(Nr.idealAlign==="left"||!si)&&Ci)mi-=Di/2,Nr.anchor="end";else if(si)mi+=Di/2,Nr.anchor="start";else{Nr.anchor="middle";var wi=Ni/2,ma=mi+wi-Qt,Ha=mi-wi;ma>0&&(mi-=ma),Ha<0&&(mi+=-Ha)}Nr.crossPos=mi}ur.attr("text-anchor",Nr.anchor),$r&&Br.attr("text-anchor",Nr.anchor),re.attr("transform",p(mi,Ei)+(Lt?c(b):""))}),{hoverLabels:ei,commonLabelBoundingBox:It}}function P(X,ut,lt,yt,kt,Lt){var St="",Ot="";X.nameOverride!==void 0&&(X.name=X.nameOverride),X.name&&(X.trace._meta&&(X.name=E.templateString(X.name,X.trace._meta)),St=et(X.name,X.nameLength));var Ht=lt.charAt(0),Kt=Ht==="x"?"y":"x";X.zLabel===void 0?ut&&X[Ht+"Label"]===kt?Ot=X[Kt+"Label"]||"":X.xLabel===void 0?X.yLabel!==void 0&&X.trace.type!=="scattercarpet"&&(Ot=X.yLabel):Ot=X.yLabel===void 0?X.xLabel:"("+X.xLabel+", "+X.yLabel+")":(X.xLabel!==void 0&&(Ot+="x: "+X.xLabel+"<br>"),X.yLabel!==void 0&&(Ot+="y: "+X.yLabel+"<br>"),X.trace.type!=="choropleth"&&X.trace.type!=="choroplethmapbox"&&X.trace.type!=="choroplethmap"&&(Ot+=(Ot?"z: ":"")+X.zLabel)),(X.text||X.text===0)&&!Array.isArray(X.text)&&(Ot+=(Ot?"<br>":"")+X.text),X.extraText!==void 0&&(Ot+=(Ot?"<br>":"")+X.extraText),Lt&&Ot===""&&!X.hovertemplate&&(St===""&&Lt.remove(),Ot=St);var Gt=X.hovertemplate||!1;if(Gt){var Et=X.hovertemplateLabels||X;X[Ht+"Label"]!==kt&&(Et[Ht+"other"]=Et[Ht+"Val"],Et[Ht+"otherLabel"]=Et[Ht+"Label"]),Ot=E.hovertemplateString(Gt,Et,yt._d3locale,X.eventData[0]||{},X.trace._meta),Ot=Ot.replace(B,function(At,qt){return St=et(qt,X.nameLength),""})}return[Ot,St]}function N(X,ut,lt,yt){var kt=ut?"xa":"ya",Lt=ut?"ya":"xa",St=0,Ot=1,Ht=X.size(),Kt=Array(Ht),Gt=0,Et=yt.minX,At=yt.maxX,qt=yt.minY,jt=yt.maxY,de=function($t){return $t*lt._invScaleX},Xt=function($t){return $t*lt._invScaleY};X.each(function($t){var Tt=$t[kt],_t=$t[Lt],It=Tt._id.charAt(0)==="x",Mt=Tt.range;Gt===0&&Mt&&Mt[0]>Mt[1]!==It&&(Ot=-1);var Ct=0,Ut=It?lt.width:lt.height;if(lt.hovermode==="x"||lt.hovermode==="y"){var Zt=V($t,ut),Me=$t.anchor,Be=Me==="end"?-1:1,ge,Ee;if(Me==="middle")ge=$t.crossPos+(It?Xt(Zt.y-$t.by/2):de($t.bx/2+$t.tx2width/2)),Ee=ge+(It?Xt($t.by):de($t.bx));else if(It)ge=$t.crossPos+Xt(u+Zt.y)-Xt($t.by/2-u),Ee=ge+Xt($t.by);else{var Ne=de(Be*u+Zt.x),sr=Ne+de(Be*$t.bx);ge=$t.crossPos+Math.min(Ne,sr),Ee=$t.crossPos+Math.max(Ne,sr)}It?qt!==void 0&&jt!==void 0&&Math.min(Ee,jt)-Math.max(ge,qt)>1&&(_t.side==="left"?(Ct=_t._mainLinePosition,Ut=lt.width):Ut=_t._mainLinePosition):Et!==void 0&&At!==void 0&&Math.min(Ee,At)-Math.max(ge,Et)>1&&(_t.side==="top"?(Ct=_t._mainLinePosition,Ut=lt.height):Ut=_t._mainLinePosition)}Kt[Gt++]=[{datum:$t,traceIndex:$t.trace.index,dp:0,pos:$t.pos,posref:$t.posref,size:$t.by*(It?g:1)/2,pmin:Ct,pmax:Ut}]}),Kt.sort(function($t,Tt){return $t[0].posref-Tt[0].posref||Ot*(Tt[0].traceIndex-$t[0].traceIndex)});var ye,Le,ve,ke,Pe,me,be;function je($t){var Tt=$t[0],_t=$t[$t.length-1];if(Le=Tt.pmin-Tt.pos-Tt.dp+Tt.size,ve=_t.pos+_t.dp+_t.size-Tt.pmax,Le>.01){for(Pe=$t.length-1;Pe>=0;Pe--)$t[Pe].dp+=Le;ye=!1}if(!(ve<.01)){if(Le<-.01){for(Pe=$t.length-1;Pe>=0;Pe--)$t[Pe].dp-=ve;ye=!1}if(ye){var It=0;for(ke=0;ke<$t.length;ke++)me=$t[ke],me.pos+me.dp+me.size>Tt.pmax&&It++;for(ke=$t.length-1;ke>=0&&!(It<=0);ke--)me=$t[ke],me.pos>Tt.pmax-1&&(me.del=!0,It--);for(ke=0;ke<$t.length&&!(It<=0);ke++)if(me=$t[ke],me.pos<Tt.pmin+1)for(me.del=!0,It--,ve=me.size*2,Pe=$t.length-1;Pe>=0;Pe--)$t[Pe].dp-=ve;for(ke=$t.length-1;ke>=0&&!(It<=0);ke--)me=$t[ke],me.pos+me.dp+me.size>Tt.pmax&&(me.del=!0,It--)}}}for(;!ye&&St<=Ht;){for(St++,ye=!0,ke=0;ke<Kt.length-1;){var nr=Kt[ke],Vt=Kt[ke+1],Qt=nr[nr.length-1],te=Vt[0];if(Le=Qt.pos+Qt.dp+Qt.size-te.pos-te.dp+te.size,Le>.01){for(Pe=Vt.length-1;Pe>=0;Pe--)Vt[Pe].dp+=Le;for(nr.push.apply(nr,Vt),Kt.splice(ke+1,1),be=0,Pe=nr.length-1;Pe>=0;Pe--)be+=nr[Pe].dp;for(ve=be/nr.length,Pe=nr.length-1;Pe>=0;Pe--)nr[Pe].dp-=ve;ye=!1}else ke++}Kt.forEach(je)}for(ke=Kt.length-1;ke>=0;ke--){var ee=Kt[ke];for(Pe=ee.length-1;Pe>=0;Pe--){var Bt=ee[Pe],Wt=Bt.datum;Wt.offset=Bt.dp,Wt.del=Bt.del}}}function V(X,ut){var lt=0,yt=X.offset;return ut&&(yt*=-L,lt=X.offset*k),{x:lt,y:yt}}function Y(X){var ut={start:1,end:-1,middle:0}[X.anchor],lt=ut*(u+T),yt=lt+ut*(X.txwidth+T);return X.anchor==="middle"&&(lt-=X.tx2width/2,yt+=X.txwidth/2+T),{alignShift:ut,textShiftX:lt,text2ShiftX:yt}}function K(X,ut,lt,yt){var kt=function(St){return St*lt},Lt=function(St){return St*yt};X.each(function(St){var Ot=S.select(this);if(St.del)return Ot.remove();var Ht=Ot.select("text.nums"),Kt=St.anchor,Gt=Kt==="end"?-1:1,Et=Y(St),At=V(St,ut),qt=At.x,jt=At.y,de=Kt==="middle";Ot.select("path").attr("d",de?"M-"+kt(St.bx/2+St.tx2width/2)+","+Lt(jt-St.by/2)+"h"+kt(St.bx)+"v"+Lt(St.by)+"h-"+kt(St.bx)+"Z":"M0,0L"+kt(Gt*u+qt)+","+Lt(u+jt)+"v"+Lt(St.by/2-u)+"h"+kt(Gt*St.bx)+"v-"+Lt(St.by)+"H"+kt(Gt*u+qt)+"V"+Lt(jt-u)+"Z");var Xt=qt+Et.textShiftX,ye=jt+St.ty0-St.by/2+T,Le=St.textAlign||"auto";Le!=="auto"&&(Le==="left"&&Kt!=="start"?(Ht.attr("text-anchor","start"),Xt=de?-St.bx/2-St.tx2width/2+T:-St.bx-T):Le==="right"&&Kt!=="end"&&(Ht.attr("text-anchor","end"),Xt=de?St.bx/2-St.tx2width/2-T:St.bx+T)),Ht.call(r.positionText,kt(Xt),Lt(ye)),St.tx2width&&(Ot.select("text.name").call(r.positionText,kt(Et.text2ShiftX+Et.alignShift*T+qt),Lt(jt+St.ty0-St.by/2+T)),Ot.select("rect").call(a.setRect,kt(Et.text2ShiftX+(Et.alignShift-1)*St.tx2width/2+qt),Lt(jt-St.by/2-1),kt(St.tx2width),Lt(St.by+2)))})}function nt(X,ut){var lt=X.index,yt=X.trace||{},kt=X.cd[0],Lt=X.cd[lt]||{};function St(At){return At||A(At)&&At===0}var Ot=Array.isArray(lt)?function(At,qt){var jt=E.castOption(kt,lt,At);return St(jt)?jt:E.extractOption({},yt,"",qt)}:function(At,qt){return E.extractOption(Lt,yt,At,qt)};function Ht(At,qt,jt){var de=Ot(qt,jt);St(de)&&(X[At]=de)}if(Ht("hoverinfo","hi","hoverinfo"),Ht("bgcolor","hbg","hoverlabel.bgcolor"),Ht("borderColor","hbc","hoverlabel.bordercolor"),Ht("fontFamily","htf","hoverlabel.font.family"),Ht("fontSize","hts","hoverlabel.font.size"),Ht("fontColor","htc","hoverlabel.font.color"),Ht("fontWeight","htw","hoverlabel.font.weight"),Ht("fontStyle","hty","hoverlabel.font.style"),Ht("fontVariant","htv","hoverlabel.font.variant"),Ht("nameLength","hnl","hoverlabel.namelength"),Ht("textAlign","hta","hoverlabel.align"),X.posref=ut==="y"||ut==="closest"&&yt.orientation==="h"?X.xa._offset+(X.x0+X.x1)/2:X.ya._offset+(X.y0+X.y1)/2,X.x0=E.constrain(X.x0,0,X.xa._length),X.x1=E.constrain(X.x1,0,X.xa._length),X.y0=E.constrain(X.y0,0,X.ya._length),X.y1=E.constrain(X.y1,0,X.ya._length),X.xLabelVal!==void 0&&(X.xLabel="xLabel"in X?X.xLabel:m.hoverLabelText(X.xa,X.xLabelVal,yt.xhoverformat),X.xVal=X.xa.c2d(X.xLabelVal)),X.yLabelVal!==void 0&&(X.yLabel="yLabel"in X?X.yLabel:m.hoverLabelText(X.ya,X.yLabelVal,yt.yhoverformat),X.yVal=X.ya.c2d(X.yLabelVal)),X.zLabelVal!==void 0&&X.zLabel===void 0&&(X.zLabel=String(X.zLabelVal)),!isNaN(X.xerr)&&!(X.xa.type==="log"&&X.xerr<=0)){var Kt=m.tickText(X.xa,X.xa.c2l(X.xerr),"hover").text;X.xerrneg===void 0?X.xLabel+=" \xB1 "+Kt:X.xLabel+=" +"+Kt+" / -"+m.tickText(X.xa,X.xa.c2l(X.xerrneg),"hover").text,ut==="x"&&(X.distance+=1)}if(!isNaN(X.yerr)&&!(X.ya.type==="log"&&X.yerr<=0)){var Gt=m.tickText(X.ya,X.ya.c2l(X.yerr),"hover").text;X.yerrneg===void 0?X.yLabel+=" \xB1 "+Gt:X.yLabel+=" +"+Gt+" / -"+m.tickText(X.ya,X.ya.c2l(X.yerrneg),"hover").text,ut==="y"&&(X.distance+=1)}var Et=X.hoverinfo||X.trace.hoverinfo;return Et&&Et!=="all"&&(Et=Array.isArray(Et)?Et:Et.split("+"),Et.indexOf("x")===-1&&(X.xLabel=void 0),Et.indexOf("y")===-1&&(X.yLabel=void 0),Et.indexOf("z")===-1&&(X.zLabel=void 0),Et.indexOf("text")===-1&&(X.text=void 0),Et.indexOf("name")===-1&&(X.name=void 0)),X}function ft(X,ut,lt){var yt=lt.container,kt=lt.fullLayout,Lt=kt._size,St=lt.event,Ot=!!ut.hLinePoint,Ht=!!ut.vLinePoint,Kt,Gt;if(yt.selectAll(".spikeline").remove(),Ht||Ot){var Et=s.combine(kt.plot_bgcolor,kt.paper_bgcolor);if(Ot){var At=ut.hLinePoint,qt,jt;Kt=At&&At.xa,Gt=At&&At.ya,Gt.spikesnap==="cursor"?(qt=St.pointerX,jt=St.pointerY):(qt=Kt._offset+At.x,jt=Gt._offset+At.y);var de=t.readability(At.color,Et)<1.5?s.contrast(Et):At.color,Xt=Gt.spikemode,ye=Gt.spikethickness,Le=Gt.spikecolor||de,ve=m.getPxPosition(X,Gt),ke,Pe;if(Xt.indexOf("toaxis")!==-1||Xt.indexOf("across")!==-1){if(Xt.indexOf("toaxis")!==-1&&(ke=ve,Pe=qt),Xt.indexOf("across")!==-1){var me=Gt._counterDomainMin,be=Gt._counterDomainMax;Gt.anchor==="free"&&(me=Math.min(me,Gt.position),be=Math.max(be,Gt.position)),ke=Lt.l+me*Lt.w,Pe=Lt.l+be*Lt.w}yt.insert("line",":first-child").attr({x1:ke,x2:Pe,y1:jt,y2:jt,"stroke-width":ye,stroke:Le,"stroke-dasharray":a.dashStyle(Gt.spikedash,ye)}).classed("spikeline",!0).classed("crisp",!0),yt.insert("line",":first-child").attr({x1:ke,x2:Pe,y1:jt,y2:jt,"stroke-width":ye+2,stroke:Et}).classed("spikeline",!0).classed("crisp",!0)}Xt.indexOf("marker")!==-1&&yt.insert("circle",":first-child").attr({cx:ve+(Gt.side==="right"?-ye:ye),cy:jt,r:ye,fill:Le}).classed("spikeline",!0)}if(Ht){var je=ut.vLinePoint,nr,Vt;Kt=je&&je.xa,Gt=je&&je.ya,Kt.spikesnap==="cursor"?(nr=St.pointerX,Vt=St.pointerY):(nr=Kt._offset+je.x,Vt=Gt._offset+je.y);var Qt=t.readability(je.color,Et)<1.5?s.contrast(Et):je.color,te=Kt.spikemode,ee=Kt.spikethickness,Bt=Kt.spikecolor||Qt,Wt=m.getPxPosition(X,Kt),$t,Tt;if(te.indexOf("toaxis")!==-1||te.indexOf("across")!==-1){if(te.indexOf("toaxis")!==-1&&($t=Wt,Tt=Vt),te.indexOf("across")!==-1){var _t=Kt._counterDomainMin,It=Kt._counterDomainMax;Kt.anchor==="free"&&(_t=Math.min(_t,Kt.position),It=Math.max(It,Kt.position)),$t=Lt.t+(1-It)*Lt.h,Tt=Lt.t+(1-_t)*Lt.h}yt.insert("line",":first-child").attr({x1:nr,x2:nr,y1:$t,y2:Tt,"stroke-width":ee,stroke:Bt,"stroke-dasharray":a.dashStyle(Kt.spikedash,ee)}).classed("spikeline",!0).classed("crisp",!0),yt.insert("line",":first-child").attr({x1:nr,x2:nr,y1:$t,y2:Tt,"stroke-width":ee+2,stroke:Et}).classed("spikeline",!0).classed("crisp",!0)}te.indexOf("marker")!==-1&&yt.insert("circle",":first-child").attr({cx:nr,cy:Wt-(Kt.side==="top"?-ee:ee),r:ee,fill:Bt}).classed("spikeline",!0)}}}function ct(X,ut,lt){if(!lt||lt.length!==X._hoverdata.length)return!0;for(var yt=lt.length-1;yt>=0;yt--){var kt=lt[yt],Lt=X._hoverdata[yt];if(kt.curveNumber!==Lt.curveNumber||String(kt.pointNumber)!==String(Lt.pointNumber)||String(kt.pointNumbers)!==String(Lt.pointNumbers))return!0}return!1}function J(X,ut){return!ut||ut.vLinePoint!==X._spikepoints.vLinePoint||ut.hLinePoint!==X._spikepoints.hLinePoint}function et(X,ut){return r.plainText(X||"",{len:ut,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Q(X,ut){for(var lt=ut.charAt(0),yt=[],kt=[],Lt=[],St=0;St<X.length;St++){var Ot=X[St];f.traceIs(Ot.trace,"bar-like")||f.traceIs(Ot.trace,"box-violin")?Lt.push(Ot):Ot.trace[lt+"period"]?kt.push(Ot):yt.push(Ot)}return yt.concat(kt).concat(Lt)}function Z(X,ut,lt){var yt=ut[X+"a"],kt=ut[X+"Val"],Lt=ut.cd[0];if(yt.type==="category"||yt.type==="multicategory")kt=yt._categoriesMap[kt];else if(yt.type==="date"){var St=ut.trace[X+"periodalignment"];if(St){var Ot=ut.cd[ut.index],Ht=Ot[X+"Start"];Ht===void 0&&(Ht=Ot[X]);var Kt=Ot[X+"End"];Kt===void 0&&(Kt=Ot[X]);var Gt=Kt-Ht;St==="end"?kt+=Gt:St==="middle"&&(kt+=Gt/2)}kt=yt.d2c(kt)}return Lt&&Lt.t&&Lt.t.posLetter===yt._id&&(lt.boxmode==="group"||lt.violinmode==="group")&&(kt+=Lt.t.dPos),kt}function st(X){return X.offsetTop+X.clientTop}function ot(X){return X.offsetLeft+X.clientLeft}function rt(X,ut){var lt=X._fullLayout,yt=ut.getBoundingClientRect(),kt=yt.left,Lt=yt.top,St=kt+yt.width,Ot=Lt+yt.height,Ht=E.apply3DTransform(lt._invTransform)(kt,Lt),Kt=E.apply3DTransform(lt._invTransform)(St,Ot),Gt=Ht[0],Et=Ht[1],At=Kt[0],qt=Kt[1];return{x:Gt,y:Et,width:At-Gt,height:qt-Et,top:Math.min(Et,qt),left:Math.min(Gt,At),right:Math.max(Gt,At),bottom:Math.max(Et,qt)}}}),26430:(function(tt,G,e){var S=e(34809),A=e(78766),t=e(36040).isUnifiedHover;tt.exports=function(E,w,p,c){c||(c={});var i=w.legend;function r(o){c.font[o]||(c.font[o]=i?w.legend.font[o]:w.font[o])}w&&t(w.hovermode)&&(c.font||(c.font={}),r("size"),r("family"),r("color"),r("weight"),r("style"),r("variant"),i?(c.bgcolor||(c.bgcolor=A.combine(w.legend.bgcolor,w.paper_bgcolor)),c.bordercolor||(c.bordercolor=w.legend.bordercolor)):c.bgcolor||(c.bgcolor=w.paper_bgcolor)),p("hoverlabel.bgcolor",c.bgcolor),p("hoverlabel.bordercolor",c.bordercolor),p("hoverlabel.namelength",c.namelength),S.coerceFont(p,"hoverlabel.font",c.font),p("hoverlabel.align",c.align)}}),45265:(function(tt,G,e){var S=e(34809),A=e(6811);tt.exports=function(t,E){function w(p,c){return E[p]===void 0?S.coerce(t,E,A,p,c):E[p]}return w("clickmode"),w("hoversubplots"),w("hovermode")}}),32141:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(14751),E=e(36040),w=e(6811),p=e(38103);tt.exports={moduleType:"component",name:"fx",constants:e(85988),schema:{layout:w},attributes:e(70192),layoutAttributes:w,supplyLayoutGlobalDefaults:e(5358),supplyDefaults:e(3239),supplyLayoutDefaults:e(8412),calc:e(83552),getDistanceFunction:E.getDistanceFunction,getClosest:E.getClosest,inbox:E.inbox,quadrature:E.quadrature,appendArrayPointValue:E.appendArrayPointValue,castHoverOption:i,castHoverinfo:r,hover:p.hover,unhover:t.unhover,loneHover:p.loneHover,loneUnhover:c,click:e(94225)};function c(o){var a=A.isD3Selection(o)?o:S.select(o);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()}function i(o,a,s){return A.castOption(o,a,"hoverlabel."+s)}function r(o,a,s){function n(m){return A.coerceHoverinfo({hoverinfo:m},{_module:o._module},a)}return A.castOption(o,s,"hoverinfo",n)}}),6811:(function(tt,G,e){var S=e(85988),A=e(80337),t=A({editType:"none"});t.family.dflt=S.HOVERFONT,t.size.dflt=S.HOVERFONTSIZE,tt.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:t,grouptitlefont:A({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}}),8412:(function(tt,G,e){var S=e(34809),A=e(6811),t=e(45265),E=e(26430);tt.exports=function(w,p){function c(s,n){return S.coerce(w,p,A,s,n)}t(w,p)&&(c("hoverdistance"),c("spikedistance")),c("dragmode")==="select"&&c("selectdirection");var i=p._has("mapbox"),r=p._has("map"),o=p._has("geo"),a=p._basePlotModules.length;p.dragmode==="zoom"&&((i||r||o)&&a===1||(i||r)&&o&&a===2)&&(p.dragmode="pan"),E(w,p,c),S.coerceFont(c,"hoverlabel.grouptitlefont",p.hoverlabel.font)}}),5358:(function(tt,G,e){var S=e(34809),A=e(26430),t=e(6811);tt.exports=function(E,w){function p(c,i){return S.coerce(E,w,t,c,i)}A(E,w,p)}}),83595:(function(tt,G,e){var S=e(34809),A=e(90694).counter,t=e(13792).u,E=e(54826).idRegex,w=e(78032),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[A("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:t({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function c(s,n,m){var x=n[m+"axes"],f=Object.keys((s._splomAxes||{})[m]||{});if(Array.isArray(x))return x;if(f.length)return f}function i(s,n){var m=s.grid||{},x=c(n,m,"x"),f=c(n,m,"y");if(!s.grid&&!x&&!f)return;var v=Array.isArray(m.subplots)&&Array.isArray(m.subplots[0]),l=Array.isArray(x),h=Array.isArray(f),d=l&&x!==m.xaxes&&h&&f!==m.yaxes,b,M;v?(b=m.subplots.length,M=m.subplots[0].length):(h&&(b=f.length),l&&(M=x.length));var g=w.newContainer(n,"grid");function k(j,B){return S.coerce(m,g,p,j,B)}var L=k("rows",b),u=k("columns",M);if(!(L*u>1)){delete n.grid;return}!v&&!l&&!h&&k("pattern")==="independent"&&(v=!0),g._hasSubplotGrid=v;var T=k("roworder")==="top to bottom",C=v?.2:.1,_=v?.3:.1,F,O;d&&n._splomGridDflt&&(F=n._splomGridDflt.xside,O=n._splomGridDflt.yside),g._domains={x:r("x",k,C,F,u),y:r("y",k,_,O,L,T)}}function r(s,n,m,x,f,v){var l=n(s+"gap",m),h=n("domain."+s);n(s+"side",x);for(var d=Array(f),b=h[0],M=(h[1]-b)/(f-l),g=M*(1-l),k=0;k<f;k++){var L=b+M*k;d[v?f-1-k:k]=[L,L+g]}return d}function o(s,n){var m=n.grid;if(!(!m||!m._domains)){var x=s.grid||{},f=n._subplots,v=m._hasSubplotGrid,l=m.rows,h=m.columns,d=m.pattern==="independent",b,M,g,k,L,u,T,C=m._axisMap={};if(v){var _=x.subplots||[];u=m.subplots=Array(l);var F=1;for(b=0;b<l;b++){var O=u[b]=Array(h),j=_[b]||[];for(M=0;M<h;M++)if(d?(L=F===1?"xy":"x"+F+"y"+F,F++):L=j[M],O[M]="",f.cartesian.indexOf(L)!==-1){if(T=L.indexOf("y"),g=L.slice(0,T),k=L.slice(T),C[g]!==void 0&&C[g]!==M||C[k]!==void 0&&C[k]!==b)continue;O[M]=L,C[g]=M,C[k]=b}}}else{var B=c(n,x,"x"),U=c(n,x,"y");m.xaxes=a(B,f.xaxis,h,C,"x"),m.yaxes=a(U,f.yaxis,l,C,"y")}var P=m._anchors={},N=m.roworder==="top to bottom";for(var V in C){var Y=V.charAt(0),K=m[Y+"side"],nt,ft,ct;if(K.length<8)P[V]="free";else if(Y==="x"){if(K.charAt(0)==="t"===N?(nt=0,ft=1,ct=l):(nt=l-1,ft=-1,ct=-1),v){var J=C[V];for(b=nt;b!==ct;b+=ft)if(L=u[b][J],L&&(T=L.indexOf("y"),L.slice(0,T)===V)){P[V]=L.slice(T);break}}else for(b=nt;b!==ct;b+=ft)if(k=m.yaxes[b],f.cartesian.indexOf(V+k)!==-1){P[V]=k;break}}else if(K.charAt(0)==="l"?(nt=0,ft=1,ct=h):(nt=h-1,ft=-1,ct=-1),v){var et=C[V];for(b=nt;b!==ct;b+=ft)if(L=u[et][b],L&&(T=L.indexOf("y"),L.slice(T)===V)){P[V]=L.slice(0,T);break}}else for(b=nt;b!==ct;b+=ft)if(g=m.xaxes[b],f.cartesian.indexOf(g+V)!==-1){P[V]=g;break}}}}function a(s,n,m,x,f){var v=Array(m),l;function h(d,b){n.indexOf(b)!==-1&&x[b]===void 0?(v[d]=b,x[b]=d):v[d]=""}if(Array.isArray(s))for(l=0;l<m;l++)h(l,s[l]);else for(h(0,f),l=1;l<m;l++)h(l,f+(l+1));return v}tt.exports={moduleType:"component",name:"grid",schema:{layout:{grid:p}},layoutAttributes:p,sizeDefaults:i,contentDefaults:o}}),37260:(function(tt,G,e){var S=e(54826),A=e(78032).templatedArray;e(35081),tt.exports=A("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",S.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",S.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})}),89443:(function(tt,G,e){var S=e(10721),A=e(8083);tt.exports=function(t,E,w,p){E||(E={});var c=w==="log"&&E.type==="linear",i=w==="linear"&&E.type==="log";if(c||i){for(var r=t._fullLayout.images,o=E._id.charAt(0),a,s,n=0;n<r.length;n++)if(a=r[n],s="images["+n+"].",a[o+"ref"]===E._id){var m=a[o],x=a["size"+o],f=null,v=null;if(c){f=A(m,E.range);var l=x/10**f/2;v=2*Math.log(l+Math.sqrt(1+l*l))/Math.LN10}else f=10**m,v=f*(10**(x/2)-10**(-x/2));S(f)?S(v)||(v=null):(f=null,v=null),p(s+o,f),p(s+"size"+o,v)}}}}),507:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(59008),E=e(37260),w="images";tt.exports=function(c,i){t(c,i,{name:w,handleItemDefaults:p})};function p(c,i,r){function o(f,v){return S.coerce(c,i,E,f,v)}if(!o("visible",!!o("source")))return i;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var a={_fullLayout:r},s=["x","y"],n=0;n<2;n++){var m=s[n],x=A.coerceRef(c,i,a,m,"paper",void 0);x!=="paper"&&A.getFromId(a,x)._imgIndices.push(i._index),A.coercePosition(i,a,o,x,m,0)}return i}}),32211:(function(tt,G,e){var S=e(45568),A=e(62203),t=e(29714),E=e(5975),w=e(62972);tt.exports=function(p){var c=p._fullLayout,i=[],r={},o=[],a,s;for(s=0;s<c.images.length;s++){var n=c.images[s];if(n.visible)if(n.layer==="below"&&n.xref!=="paper"&&n.yref!=="paper"){a=E.ref2id(n.xref)+E.ref2id(n.yref);var m=c._plots[a];if(!m){o.push(n);continue}m.mainplot&&(a=m.mainplot.id),r[a]||(r[a]=[]),r[a].push(n)}else n.layer==="above"?i.push(n):o.push(n)}var x={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function f(g){var k=S.select(this);if(this._imgSrc!==g.source)if(k.attr("xmlns",w.svg),g.source&&g.source.slice(0,5)==="data:")k.attr("xlink:href",g.source),this._imgSrc=g.source;else{var L=new Promise((function(u){var T=new Image;this.img=T,T.setAttribute("crossOrigin","anonymous"),T.onerror=C,T.onload=function(){var _=document.createElement("canvas");_.width=this.width,_.height=this.height,_.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var F=_.toDataURL("image/png");k.attr("xlink:href",F),u()},k.on("error",C),T.src=g.source,this._imgSrc=g.source;function C(){k.remove(),u()}}).bind(this));p._promises.push(L)}}function v(g){var k=S.select(this),L=t.getFromId(p,g.xref),u=t.getFromId(p,g.yref),T=t.getRefType(g.xref)==="domain",C=t.getRefType(g.yref)==="domain",_=c._size,F=L===void 0?g.sizex*_.w:typeof g.xref=="string"&&T?L._length*g.sizex:Math.abs(L.l2p(g.sizex)-L.l2p(0)),O=u===void 0?g.sizey*_.h:typeof g.yref=="string"&&C?u._length*g.sizey:Math.abs(u.l2p(g.sizey)-u.l2p(0)),j=F*x.x[g.xanchor].offset,B=O*x.y[g.yanchor].offset,U=x.x[g.xanchor].sizing+x.y[g.yanchor].sizing,P=L===void 0?g.x*_.w+_.l:typeof g.xref=="string"&&T?L._length*g.x+L._offset:L.r2p(g.x)+L._offset,N;switch(P+=j,N=u===void 0?_.h-g.y*_.h+_.t:typeof g.yref=="string"&&C?u._length*(1-g.y)+u._offset:u.r2p(g.y)+u._offset,N+=B,g.sizing){case"fill":U+=" slice";break;case"stretch":U="none";break}k.attr({x:P,y:N,width:F,height:O,preserveAspectRatio:U,opacity:g.opacity});var V=(L&&t.getRefType(g.xref)!=="domain"?L._id:"")+(u&&t.getRefType(g.yref)!=="domain"?u._id:"");A.setClipUrl(k,V?"clip"+c._uid+V:null,p)}var l=c._imageLowerLayer.selectAll("image").data(o),h=c._imageUpperLayer.selectAll("image").data(i);l.enter().append("image"),h.enter().append("image"),l.exit().remove(),h.exit().remove(),l.each(function(g){f.bind(this)(g),v.bind(this)(g)}),h.each(function(g){f.bind(this)(g),v.bind(this)(g)});var d=Object.keys(c._plots);for(s=0;s<d.length;s++){a=d[s];var b=c._plots[a];if(b.imagelayer){var M=b.imagelayer.selectAll("image").data(r[a]||[]);M.enter().append("image"),M.exit().remove(),M.each(function(g){f.bind(this)(g),v.bind(this)(g)})}}}}),15553:(function(tt,G,e){tt.exports={moduleType:"component",name:"images",layoutAttributes:e(37260),supplyLayoutDefaults:e(507),includeBasePlot:e(20706)("images"),draw:e(32211),convertCoords:e(89443)}}),86405:(function(tt,G,e){var S=e(80337);tt.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:e(10229).defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:S({editType:"legend"}),grouptitlefont:S({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:S({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}}),72783:(function(tt){tt.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}}),73970:(function(tt,G,e){var S=e(33626),A=e(34809),t=e(78032),E=e(9829),w=e(86405),p=e(6704),c=e(57599);function i(r,o,a,s){var n=o[r]||{},m=t.newContainer(a,r);function x(nt,ft){return A.coerce(n,m,w,nt,ft)}var f=A.coerceFont(x,"font",a.font);if(x("bgcolor",a.paper_bgcolor),x("bordercolor"),x("visible")){for(var v,l=function(nt,ft){var ct=v._input,J=v;return A.coerce(ct,J,E,nt,ft)},h=a.font||{},d=A.coerceFont(x,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),b=0,M=!1,g="normal",k=(a.shapes||[]).filter(function(nt){return nt.showlegend}),L=s.concat(k).filter(function(nt){return r===(nt.legend||"legend")}),u=0;u<L.length;u++)if(v=L[u],v.visible){var T=v._isShape;(v.showlegend||v._dfltShowLegend&&!(v._module&&v._module.attributes&&v._module.attributes.showlegend&&v._module.attributes.showlegend.dflt===!1))&&(b++,v.showlegend&&(M=!0,(!T&&S.traceIs(v,"pie-like")||v._input.showlegend===!0)&&b++),A.coerceFont(l,"legendgrouptitle.font",d)),(!T&&S.traceIs(v,"bar")&&a.barmode==="stack"||["tonextx","tonexty"].indexOf(v.fill)!==-1)&&(g=c.isGrouped({traceorder:g})?"grouped+reversed":"reversed"),v.legendgroup!==void 0&&v.legendgroup!==""&&(g=c.isReversed({traceorder:g})?"reversed+grouped":"grouped")}var C=A.coerce(o,a,p,"showlegend",M&&b>(r==="legend"?1:0));if(C===!1&&(a[r]=void 0),!(C===!1&&!n.uirevision)&&(x("uirevision",a.uirevision),C!==!1)){x("borderwidth");var _=x("orientation"),F=x("yref"),O=x("xref"),j=_==="h",B=F==="paper",U=O==="paper",P,N,V,Y="left";if(j?(P=0,S.getComponentMethod("rangeslider","isVisible")(o.xaxis)?B?(N=1.1,V="bottom"):(N=1,V="top"):B?(N=-.1,V="top"):(N=0,V="bottom")):(N=1,V="auto",U?P=1.02:(P=1,Y="right")),A.coerce(n,m,{x:{valType:"number",editType:"legend",min:U?-2:0,max:U?3:1,dflt:P}},"x"),A.coerce(n,m,{y:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:N}},"y"),x("traceorder",g),c.isGrouped(a[r])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("indentation"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",Y),x("yanchor",V),x("valign"),A.noneOrAll(n,m,["x","y"]),x("title.text")){x("title.side",j?"left":"top");var K=A.extendFlat({},f,{size:A.bigFont(f.size)});A.coerceFont(x,"title.font",K)}}}}tt.exports=function(r,o,a){var s,n=a.slice(),m=o.shapes;if(m)for(s=0;s<m.length;s++){var x=m[s];if(x.showlegend){var f={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};n.push(f)}}var v=["legend"];for(s=0;s<n.length;s++)A.pushUnique(v,n[s].legend);for(o._legends=[],s=0;s<v.length;s++){var l=v[s];i(l,r,o,n),o[l]&&o[l].visible&&(o[l]._id=l),o._legends.push(l)}}}),6134:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(44122),E=e(33626),w=e(68596),p=e(14751),c=e(62203),i=e(78766),r=e(30635),o=e(22165),a=e(72783),s=e(4530),n=s.LINE_SPACING,m=s.FROM_TL,x=s.FROM_BR,f=e(851),v=e(14375),l=e(57599),h=1,d=/^legend[0-9]*$/;tt.exports=function(N,V){if(V)M(N,V);else{var Y=N._fullLayout,K=Y._legends;Y._infolayer.selectAll('[class^="legend"]').each(function(){var J=S.select(this),et=J.attr("class").split(" ")[0];et.match(d)&&K.indexOf(et)===-1&&J.remove()});for(var nt=0;nt<K.length;nt++){var ft=K[nt],ct=N._fullLayout[ft];M(N,ct)}}};function b(N,V,Y){if(!(V.title.side!=="top center"&&V.title.side!=="top right")){var K=V.title.font.size*n,nt=0,ft=N.node(),ct=c.bBox(ft).width;V.title.side==="top center"?nt=.5*(V._width-2*Y-2*a.titlePad-ct):V.title.side==="top right"&&(nt=V._width-2*Y-2*a.titlePad-ct),r.positionText(N,Y+a.titlePad+nt,Y+K)}}function M(N,V){var Y=V||{},K=N._fullLayout,nt=P(Y),ft,ct,J=Y._inHover;if(J?(ct=Y.layer,ft="hover"):(ct=K._infolayer,ft=nt),ct){ft+=K._uid,N._legendMouseDownTime||(N._legendMouseDownTime=0);var et;if(J){if(!Y.entries)return;et=f(Y.entries,Y)}else{for(var Q=(N.calcdata||[]).slice(),Z=K.shapes,st=0;st<Z.length;st++){var ot=Z[st];if(ot.showlegend){var rt={_isShape:!0,_fullInput:ot,index:ot._index,name:ot.name||ot.label.text||"shape "+ot._index,legend:ot.legend,legendgroup:ot.legendgroup,legendgrouptitle:ot.legendgrouptitle,legendrank:ot.legendrank,legendwidth:ot.legendwidth,showlegend:ot.showlegend,visible:ot.visible,opacity:ot.opacity,mode:ot.type==="line"?"lines":"markers",line:ot.line,marker:{line:ot.line,color:ot.fillcolor,size:12,symbol:ot.type==="rect"?"square":ot.type==="circle"?"circle":"hexagon2"}};Q.push([{trace:rt}])}}et=K.showlegend&&f(Q,Y,K._legends.length>1)}var X=K.hiddenlabels||[];if(!J&&(!K.showlegend||!et.length))return ct.selectAll("."+nt).remove(),K._topdefs.select("#"+ft).remove(),t.autoMargin(N,nt);var ut=A.ensureSingle(ct,"g",nt,function(Gt){J||Gt.attr("pointer-events","all")}),lt=A.ensureSingleById(K._topdefs,"clipPath",ft,function(Gt){Gt.append("rect")}),yt=A.ensureSingle(ut,"rect","bg",function(Gt){Gt.attr("shape-rendering","crispEdges")});yt.call(i.stroke,Y.bordercolor).call(i.fill,Y.bgcolor).style("stroke-width",Y.borderwidth+"px");var kt=A.ensureSingle(ut,"g","scrollbox"),Lt=Y.title;Y._titleWidth=0,Y._titleHeight=0;var St;Lt.text?(St=A.ensureSingle(kt,"text",nt+"titletext"),St.attr("text-anchor","start").call(c.font,Lt.font).text(Lt.text),C(St,kt,N,Y,h)):kt.selectAll("."+nt+"titletext").remove();var Ot=A.ensureSingle(ut,"rect","scrollbar",function(Gt){Gt.attr(a.scrollBarEnterAttrs).call(i.fill,a.scrollBarColor)}),Ht=kt.selectAll("g.groups").data(et);Ht.enter().append("g").attr("class","groups"),Ht.exit().remove();var Kt=Ht.selectAll("g.traces").data(A.identity);Kt.enter().append("g").attr("class","traces"),Kt.exit().remove(),Kt.style("opacity",function(Gt){var Et=Gt[0].trace;return E.traceIs(Et,"pie-like")?X.indexOf(Gt[0].label)===-1?1:.5:Et.visible==="legendonly"?.5:1}).each(function(){S.select(this).call(L,N,Y)}).call(v,N,Y).each(function(){J||S.select(this).call(T,N,nt)}),A.syncOrAsync([t.previousPromises,function(){return O(N,Ht,Kt,Y)},function(){var Gt=K._size,Et=Y.borderwidth,At=Y.xref==="paper",qt=Y.yref==="paper";if(Lt.text&&b(St,Y,Et),!J){var jt=At?Gt.l+Gt.w*Y.x-m[B(Y)]*Y._width:K.width*Y.x-m[B(Y)]*Y._width,de=qt?Gt.t+Gt.h*(1-Y.y)-m[U(Y)]*Y._effHeight:K.height*(1-Y.y)-m[U(Y)]*Y._effHeight;if(j(N,nt,jt,de))return;if(K.margin.autoexpand){var Xt=jt,ye=de;jt=At?A.constrain(jt,0,K.width-Y._width):Xt,de=qt?A.constrain(de,0,K.height-Y._effHeight):ye,jt!==Xt&&A.log("Constrain "+nt+".x to make legend fit inside graph"),de!==ye&&A.log("Constrain "+nt+".y to make legend fit inside graph")}c.setTranslate(ut,jt,de)}if(Ot.on(".drag",null),ut.on("wheel",null),J||Y._height<=Y._maxHeight||N._context.staticPlot){var Le=Y._effHeight;J&&(Le=Y._height),yt.attr({width:Y._width-Et,height:Le-Et,x:Et/2,y:Et/2}),c.setTranslate(kt,0,0),lt.select("rect").attr({width:Y._width-2*Et,height:Le-2*Et,x:Et,y:Et}),c.setClipUrl(kt,ft,N),c.setRect(Ot,0,0,0,0),delete Y._scrollY}else{var ve=Math.max(a.scrollBarMinHeight,Y._effHeight*Y._effHeight/Y._height),ke=Y._effHeight-ve-2*a.scrollBarMargin,Pe=Y._height-Y._effHeight,me=ke/Pe,be=Math.min(Y._scrollY||0,Pe);yt.attr({width:Y._width-2*Et+a.scrollBarWidth+a.scrollBarMargin,height:Y._effHeight-Et,x:Et/2,y:Et/2}),lt.select("rect").attr({width:Y._width-2*Et+a.scrollBarWidth+a.scrollBarMargin,height:Y._effHeight-2*Et,x:Et,y:Et+be}),c.setClipUrl(kt,ft,N),Wt(be,ve,me),ut.on("wheel",function(){be=A.constrain(Y._scrollY+S.event.deltaY/ke*Pe,0,Pe),Wt(be,ve,me),be!==0&&be!==Pe&&S.event.preventDefault()});var je,nr,Vt,Qt=function(Mt,Ct,Ut){var Zt=(Ut-Ct)/me+Mt;return A.constrain(Zt,0,Pe)},te=function(Mt,Ct,Ut){var Zt=(Ct-Ut)/me+Mt;return A.constrain(Zt,0,Pe)},ee=S.behavior.drag().on("dragstart",function(){var Mt=S.event.sourceEvent;je=Mt.type==="touchstart"?Mt.changedTouches[0].clientY:Mt.clientY,Vt=be}).on("drag",function(){var Mt=S.event.sourceEvent;Mt.buttons===2||Mt.ctrlKey||(nr=Mt.type==="touchmove"?Mt.changedTouches[0].clientY:Mt.clientY,be=Qt(Vt,je,nr),Wt(be,ve,me))});Ot.call(ee);var Bt=S.behavior.drag().on("dragstart",function(){var Mt=S.event.sourceEvent;Mt.type==="touchstart"&&(je=Mt.changedTouches[0].clientY,Vt=be)}).on("drag",function(){var Mt=S.event.sourceEvent;Mt.type==="touchmove"&&(nr=Mt.changedTouches[0].clientY,be=te(Vt,je,nr),Wt(be,ve,me))});kt.call(Bt)}function Wt(Mt,Ct,Ut){Y._scrollY=N._fullLayout[nt]._scrollY=Mt,c.setTranslate(kt,0,-Mt),c.setRect(Ot,Y._width,a.scrollBarMargin+Mt*Ut,a.scrollBarWidth,Ct),lt.select("rect").attr("y",Et+Mt)}if(N._context.edits.legendPosition){var $t,Tt,_t,It;ut.classed("cursor-move",!0),p.init({element:ut.node(),gd:N,prepFn:function(Mt){if(Mt.target!==Ot.node()){var Ct=c.getTranslate(ut);_t=Ct.x,It=Ct.y}},moveFn:function(Mt,Ct){if(_t!==void 0&&It!==void 0){var Ut=_t+Mt,Zt=It+Ct;c.setTranslate(ut,Ut,Zt),$t=p.align(Ut,Y._width,Gt.l,Gt.l+Gt.w,Y.xanchor),Tt=p.align(Zt+Y._height,-Y._height,Gt.t+Gt.h,Gt.t,Y.yanchor)}},doneFn:function(){if($t!==void 0&&Tt!==void 0){var Mt={};Mt[nt+".x"]=$t,Mt[nt+".y"]=Tt,E.call("_guiRelayout",N,Mt)}},clickFn:function(Mt,Ct){var Ut=ct.selectAll("g.traces").filter(function(){var Zt=this.getBoundingClientRect();return Ct.clientX>=Zt.left&&Ct.clientX<=Zt.right&&Ct.clientY>=Zt.top&&Ct.clientY<=Zt.bottom});Ut.size()>0&&k(N,ut,Ut,Mt,Ct)}})}}],N)}}function g(N,V,Y){var K=N[0],nt=K.width,ft=V.entrywidthmode,ct=K.trace.legendwidth||V.entrywidth;return ft==="fraction"?V._maxWidth*ct:Y+(ct||nt)}function k(N,V,Y,K,nt){var ft=Y.data()[0][0].trace,ct={event:nt,node:Y.node(),curveNumber:ft.index,expandedIndex:ft._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};ft._group&&(ct.group=ft._group),E.traceIs(ft,"pie-like")&&(ct.label=Y.datum()[0].label);var J=w.triggerHandler(N,"plotly_legendclick",ct);if(K===1){if(J===!1)return;V._clickTimeout=setTimeout(function(){N._fullLayout&&o(Y,N,K)},N._context.doubleClickDelay)}else K===2&&(V._clickTimeout&&clearTimeout(V._clickTimeout),N._legendMouseDownTime=0,w.triggerHandler(N,"plotly_legenddoubleclick",ct)!==!1&&J!==!1&&o(Y,N,K))}function L(N,V,Y){var K=P(Y),nt=N.data()[0][0],ft=nt.trace,ct=E.traceIs(ft,"pie-like"),J=!Y._inHover&&V._context.edits.legendText&&!ct,et=Y._maxNameLength,Q,Z;nt.groupTitle?(Q=nt.groupTitle.text,Z=nt.groupTitle.font):(Z=Y.font,Y.entries?Q=nt.text:(Q=ct?nt.label:ft.name,ft._meta&&(Q=A.templateString(Q,ft._meta))));var st=A.ensureSingle(N,"text",K+"text");st.attr("text-anchor","start").call(c.font,Z).text(J?u(Q,et):Q);var ot=Y.indentation+Y.itemwidth+a.itemGap*2;r.positionText(st,ot,0),J?st.call(r.makeEditable,{gd:V,text:Q}).call(C,N,V,Y).on("edit",function(rt){this.text(u(rt,et)).call(C,N,V,Y);var X=nt.trace._fullInput||{},ut={};if(E.hasTransform(X,"groupby")){var lt=E.getTransformIndices(X,"groupby"),yt=lt[lt.length-1],kt=A.keyedContainer(X,"transforms["+yt+"].styles","target","value.name");kt.set(nt.trace._group,rt),ut=kt.constructUpdate()}else ut.name=rt;return X._isShape?E.call("_guiRelayout",V,"shapes["+ft.index+"].name",ut.name):E.call("_guiRestyle",V,ut,ft.index)}):C(st,N,V,Y)}function u(N,V){var Y=Math.max(4,V);if(N&&N.trim().length>=Y/2)return N;N||(N="");for(var K=Y-N.length;K>0;K--)N+=" ";return N}function T(N,V,Y){var K=V._context.doubleClickDelay,nt,ft=1,ct=A.ensureSingle(N,"rect",Y+"toggle",function(J){V._context.staticPlot||J.style("cursor","pointer").attr("pointer-events","all"),J.call(i.fill,"rgba(0,0,0,0)")});V._context.staticPlot||(ct.on("mousedown",function(){nt=new Date().getTime(),nt-V._legendMouseDownTime<K?ft+=1:(ft=1,V._legendMouseDownTime=nt)}),ct.on("mouseup",function(){if(!(V._dragged||V._editing)){var J=V._fullLayout[Y];new Date().getTime()-V._legendMouseDownTime>K&&(ft=Math.max(ft-1,1)),k(V,J,N,ft,S.event)}}))}function C(N,V,Y,K,nt){K._inHover&&N.attr("data-notex",!0),r.convertToTspans(N,Y,function(){_(V,Y,K,nt)})}function _(N,V,Y,K){var nt=N.data()[0][0];if(!Y._inHover&&nt&&!nt.trace.showlegend){N.remove();return}var ft=N.select("g[class*=math-group]"),ct=ft.node(),J=P(Y);Y||(Y=V._fullLayout[J]);var et=Y.borderwidth,Q=(K===h?Y.title.font:nt.groupTitle?nt.groupTitle.font:Y.font).size*n,Z,st;if(ct){var ot=c.bBox(ct);Z=ot.height,st=ot.width,K===h?c.setTranslate(ft,et,et+Z*.75):c.setTranslate(ft,0,Z*.25)}else{var rt="."+J+(K===h?"title":"")+"text",X=N.select(rt),ut=r.lineCount(X),lt=X.node();if(Z=Q*ut,st=lt?c.bBox(lt).width:0,K===h)Y.title.side==="left"&&(st+=a.itemGap*2),r.positionText(X,et+a.titlePad,et+Q);else{var yt=a.itemGap*2+Y.indentation+Y.itemwidth;nt.groupTitle&&(yt=a.itemGap,st-=Y.indentation+Y.itemwidth),r.positionText(X,yt,-Q*((ut-1)/2-.3))}}K===h?(Y._titleWidth=st,Y._titleHeight=Z):(nt.lineHeight=Q,nt.height=Math.max(Z,16)+3,nt.width=st)}function F(N){var V=0,Y=0,K=N.title.side;return K&&(K.indexOf("left")!==-1&&(V=N._titleWidth),K.indexOf("top")!==-1&&(Y=N._titleHeight)),[V,Y]}function O(N,V,Y,K){var nt=N._fullLayout,ft=P(K);K||(K=nt[ft]);var ct=nt._size,J=l.isVertical(K),et=l.isGrouped(K),Q=K.entrywidthmode==="fraction",Z=K.borderwidth,st=2*Z,ot=a.itemGap,rt=K.indentation+K.itemwidth+ot*2,X=2*(Z+ot),ut=U(K),lt=K.y<0||K.y===0&&ut==="top",yt=K.y>1||K.y===1&&ut==="bottom",kt=K.tracegroupgap,Lt={};K._maxHeight=Math.max(lt||yt?nt.height/2:ct.h,30);var St=0;K._width=0,K._height=0;var Ot=F(K);if(J)Y.each(function(Qt){var te=Qt[0].height;c.setTranslate(this,Z+Ot[0],Z+Ot[1]+K._height+te/2+ot),K._height+=te,K._width=Math.max(K._width,Qt[0].width)}),St=rt+K._width,K._width+=ot+rt+st,K._height+=X,et&&(V.each(function(Qt,te){c.setTranslate(this,0,te*K.tracegroupgap)}),K._height+=(K._lgroupsLength-1)*K.tracegroupgap);else{var Ht=B(K),Kt=K.x<0||K.x===0&&Ht==="right",Gt=K.x>1||K.x===1&&Ht==="left",Et=yt||lt,At=nt.width/2;K._maxWidth=Math.max(Kt?Et&&Ht==="left"?ct.l+ct.w:At:Gt?Et&&Ht==="right"?ct.r+ct.w:At:ct.w,2*rt);var qt=0,jt=0;Y.each(function(Qt){var te=g(Qt,K,rt);qt=Math.max(qt,te),jt+=te}),St=null;var de=0;if(et){var Xt=0,ye=0,Le=0;V.each(function(){var Qt=0,te=0;S.select(this).selectAll("g.traces").each(function(Bt){var Wt=g(Bt,K,rt),$t=Bt[0].height;c.setTranslate(this,Ot[0],Ot[1]+Z+ot+$t/2+te),te+=$t,Qt=Math.max(Qt,Wt),Lt[Bt[0].trace.legendgroup]=Qt});var ee=Qt+ot;ye>0&&ee+Z+ye>K._maxWidth?(de=Math.max(de,ye),ye=0,Le+=Xt+kt,Xt=te):Xt=Math.max(Xt,te),c.setTranslate(this,ye,Le),ye+=ee}),K._width=Math.max(de,ye)+Z,K._height=Le+Xt+X}else{var ve=Y.size(),ke=jt+st+(ve-1)*ot<K._maxWidth,Pe=0,me=0,be=0,je=0;Y.each(function(Qt){var te=Qt[0].height,ee=g(Qt,K,rt,et),Bt=ke?ee:qt;Q||(Bt+=ot),Bt+Z+me-ot>=K._maxWidth&&(de=Math.max(de,je),me=0,be+=Pe,K._height+=Pe,Pe=0),c.setTranslate(this,Ot[0]+Z+me,Ot[1]+Z+be+te/2+ot),je=me+ee+ot,me+=Bt,Pe=Math.max(Pe,te)}),ke?(K._width=me+st,K._height=Pe+X):(K._width=Math.max(de,je)+st,K._height+=Pe+X)}}K._width=Math.ceil(Math.max(K._width+Ot[0],K._titleWidth+2*(Z+a.titlePad))),K._height=Math.ceil(Math.max(K._height+Ot[1],K._titleHeight+2*(Z+a.itemGap))),K._effHeight=Math.min(K._height,K._maxHeight);var nr=N._context.edits,Vt=nr.legendText||nr.legendPosition;Y.each(function(Qt){var te=S.select(this).select("."+ft+"toggle"),ee=Qt[0].height,Bt=Qt[0].trace.legendgroup,Wt=g(Qt,K,rt);et&&Bt!==""&&(Wt=Lt[Bt]);var $t=Vt?rt:St||Wt;!J&&!Q&&($t+=ot/2),c.setRect(te,0,-ee/2,$t,ee)})}function j(N,V,Y,K){var nt=N._fullLayout,ft=nt[V],ct=B(ft),J=U(ft),et=ft.xref==="paper",Q=ft.yref==="paper";N._fullLayout._reservedMargin[V]={};var Z=ft.y<.5?"b":"t",st=ft.x<.5?"l":"r",ot={r:nt.width-Y,l:Y+ft._width,b:nt.height-K,t:K+ft._effHeight};if(et&&Q)return t.autoMargin(N,V,{x:ft.x,y:ft.y,l:ft._width*m[ct],r:ft._width*x[ct],b:ft._effHeight*x[J],t:ft._effHeight*m[J]});et?N._fullLayout._reservedMargin[V][Z]=ot[Z]:Q||ft.orientation==="v"?N._fullLayout._reservedMargin[V][st]=ot[st]:N._fullLayout._reservedMargin[V][Z]=ot[Z]}function B(N){return A.isRightAnchor(N)?"right":A.isCenterAnchor(N)?"center":"left"}function U(N){return A.isBottomAnchor(N)?"bottom":A.isMiddleAnchor(N)?"middle":"top"}function P(N){return N._id||"legend"}}),851:(function(tt,G,e){var S=e(33626),A=e(57599);tt.exports=function(t,E,w){var p=E._inHover,c=A.isGrouped(E),i=A.isReversed(E),r={},o=[],a=!1,s={},n=0,m=0,x,f;function v(P,N,V){if(E.visible!==!1&&!(w&&P!==E._id))if(N===""||!A.isGrouped(E)){var Y="~~i"+n;o.push(Y),r[Y]=[V],n++}else o.indexOf(N)===-1?(o.push(N),a=!0,r[N]=[V]):r[N].push(V)}for(x=0;x<t.length;x++){var l=t[x],h=l[0],d=h.trace,b=d.legend,M=d.legendgroup;if(!(!p&&(!d.visible||!d.showlegend)))if(S.traceIs(d,"pie-like"))for(s[M]||(s[M]={}),f=0;f<l.length;f++){var g=l[f].label;s[M][g]||(v(b,M,{label:g,color:l[f].color,i:l[f].i,trace:d,pts:l[f].pts}),s[M][g]=!0,m=Math.max(m,(g||"").length))}else v(b,M,h),m=Math.max(m,(d.name||"").length)}if(!o.length)return[];var k=!a||!c,L=[];for(x=0;x<o.length;x++){var u=r[o[x]];k?L.push(u[0]):L.push(u)}for(k&&(L=[L]),x=0;x<L.length;x++){var T=1/0;for(f=0;f<L[x].length;f++){var C=L[x][f].trace.legendrank;T>C&&(T=C)}L[x][0]._groupMinRank=T,L[x][0]._preGroupSort=x}var _=function(P,N){return P[0]._groupMinRank-N[0]._groupMinRank||P[0]._preGroupSort-N[0]._preGroupSort},F=function(P,N){return P.trace.legendrank-N.trace.legendrank||P._preSort-N._preSort};for(L.forEach(function(P,N){P[0]._preGroupSort=N}),L.sort(_),x=0;x<L.length;x++){L[x].forEach(function(P,N){P._preSort=N}),L[x].sort(F);var O=L[x][0].trace,j=null;for(f=0;f<L[x].length;f++){var B=L[x][f].trace.legendgrouptitle;if(B&&B.text){j=B,p&&(B.font=E._groupTitleFont);break}}if(i&&L[x].reverse(),j){var U=!1;for(f=0;f<L[x].length;f++)if(S.traceIs(L[x][f].trace,"pie-like")){U=!0;break}L[x].unshift({i:-1,groupTitle:j,noClick:U,trace:{showlegend:O.showlegend,legendgroup:O.legendgroup,visible:E.groupclick==="toggleitem"?!0:O.visible}})}for(f=0;f<L[x].length;f++)L[x][f]=[L[x][f]]}return E._lgroupsLength=L.length,E._maxNameLength=m,L}}),22165:(function(tt,G,e){var S=e(33626),A=e(34809),t=A.pushUnique,E=!0;tt.exports=function(w,p,c){var i=p._fullLayout;if(p._dragged||p._editing)return;var r=i.legend.itemclick,o=i.legend.itemdoubleclick,a=i.legend.groupclick;c===1&&r==="toggle"&&o==="toggleothers"&&E&&p.data&&p._context.showTips&&A.notifier(A._(p,"Double-click on legend to isolate one trace"),"long"),E=!1;var s;if(c===1?s=r:c===2&&(s=o),!s)return;var n=a==="togglegroup",m=i.hiddenlabels?i.hiddenlabels.slice():[],x=w.data()[0][0];if(x.groupTitle&&x.noClick)return;var f=p._fullData,v=(i.shapes||[]).filter(function(Kt){return Kt.showlegend}),l=f.concat(v),h=x.trace;h._isShape&&(h=h._fullInput);var d=h.legendgroup,b,M,g,k,L,u,T={},C=[],_=[],F=[];function O(Kt,Gt){var Et=C.indexOf(Kt),At=T.visible;return At||(At=T.visible=[]),C.indexOf(Kt)===-1&&(C.push(Kt),Et=C.length-1),At[Et]=Gt,Et}var j=(i.shapes||[]).map(function(Kt){return Kt._input}),B=!1;function U(Kt,Gt){j[Kt].visible=Gt,B=!0}function P(Kt,Gt){if(!(x.groupTitle&&!n)){var Et=Kt._fullInput||Kt,At=Et._isShape,qt=Et.index;if(qt===void 0&&(qt=Et._index),S.hasTransform(Et,"groupby")){var jt=_[qt];if(!jt){var de=S.getTransformIndices(Et,"groupby"),Xt=de[de.length-1];jt=A.keyedContainer(Et,"transforms["+Xt+"].styles","target","value.visible"),_[qt]=jt}var ye=jt.get(Kt._group);ye===void 0&&(ye=!0),ye!==!1&&jt.set(Kt._group,Gt),F[qt]=O(qt,Et.visible!==!1)}else{var Le=Et.visible===!1?!1:Gt;At?U(qt,Le):O(qt,Le)}}}var N=h.legend,V=h._fullInput;if(!(V&&V._isShape)&&S.traceIs(h,"pie-like")){var Y=x.label,K=m.indexOf(Y);if(s==="toggle")K===-1?m.push(Y):m.splice(K,1);else if(s==="toggleothers"){var nt=K!==-1,ft=[];for(b=0;b<p.calcdata.length;b++){var ct=p.calcdata[b];for(M=0;M<ct.length;M++){var J=ct[M].label;N===ct[0].trace.legend&&Y!==J&&(m.indexOf(J)===-1&&(nt=!0),t(m,J),ft.push(J))}}if(!nt)for(var et=0;et<ft.length;et++){var Q=m.indexOf(ft[et]);Q!==-1&&m.splice(Q,1)}}S.call("_guiRelayout",p,"hiddenlabels",m)}else{var Z=d&&d.length,st=[],ot;if(Z)for(b=0;b<l.length;b++)ot=l[b],ot.visible&&ot.legendgroup===d&&st.push(b);if(s==="toggle"){var rt;switch(h.visible){case!0:rt="legendonly";break;case!1:rt=!1;break;case"legendonly":rt=!0;break}if(Z)if(n)for(b=0;b<l.length;b++){var X=l[b];X.visible!==!1&&X.legendgroup===d&&P(X,rt)}else P(h,rt);else P(h,rt)}else if(s==="toggleothers"){var ut,lt,yt,kt,Lt,St=!0;for(b=0;b<l.length;b++)if(Lt=l[b],ut=Lt===h,yt=Lt.showlegend!==!0,!(ut||yt)&&(lt=Z&&Lt.legendgroup===d,!lt&&Lt.legend===N&&Lt.visible===!0&&!S.traceIs(Lt,"notLegendIsolatable"))){St=!1;break}for(b=0;b<l.length;b++)if(Lt=l[b],!(Lt.visible===!1||Lt.legend!==N)&&!S.traceIs(Lt,"notLegendIsolatable"))switch(h.visible){case"legendonly":P(Lt,!0);break;case!0:kt=St?!0:"legendonly",ut=Lt===h,yt=Lt.showlegend!==!0&&!Lt.legendgroup,lt=ut||Z&&Lt.legendgroup===d,P(Lt,lt||yt?!0:kt);break}}for(b=0;b<_.length;b++)if(g=_[b],g){var Ot=g.constructUpdate(),Ht=Object.keys(Ot);for(M=0;M<Ht.length;M++)k=Ht[M],u=T[k]=T[k]||[],u[F[b]]=Ot[k]}for(L=Object.keys(T),b=0;b<L.length;b++)for(k=L[b],M=0;M<C.length;M++)T[k].hasOwnProperty(M)||(T[k][M]=void 0);B?S.call("_guiUpdate",p,T,{shapes:j},C):S.call("_guiRestyle",p,T,C)}}}),57599:(function(tt,G){G.isGrouped=function(e){return(e.traceorder||"").indexOf("grouped")!==-1},G.isVertical=function(e){return e.orientation!=="h"},G.isReversed=function(e){return(e.traceorder||"").indexOf("reversed")!==-1}}),82494:(function(tt,G,e){tt.exports={moduleType:"component",name:"legend",layoutAttributes:e(86405),supplyLayoutDefaults:e(73970),draw:e(6134),style:e(14375)}}),14375:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(34809),E=t.strTranslate,w=e(62203),p=e(78766),c=e(65477).extractOpts,i=e(64726),r=e(32891),o=e(37252).castOption,a=e(72783),s=12,n=5,m=2,x=10,f=5;tt.exports=function(d,b,M){var g=b._fullLayout;M||(M=g.legend);var k=M.itemsizing==="constant",L=M.itemwidth,u=E((L+a.itemGap*2)/2,0),T=function(ft,ct,J,et){var Q;if(ft+1)Q=ft;else if(ct&&ct.width>0)Q=ct.width;else return 0;return k?et:Math.min(Q,J)};d.each(function(ft){var ct=S.select(this),J=t.ensureSingle(ct,"g","layers");J.style("opacity",ft[0].trace.opacity);var et=M.indentation,Q=M.valign,Z=ft[0].lineHeight,st=ft[0].height;if(Q==="middle"&&et===0||!Z||!st)J.attr("transform",null);else{var ot={top:1,bottom:-1}[Q]*(.5*(Z-st+3))||0,rt=M.indentation;J.attr("transform",E(rt,ot))}J.selectAll("g.legendfill").data([ft]).enter().append("g").classed("legendfill",!0),J.selectAll("g.legendlines").data([ft]).enter().append("g").classed("legendlines",!0);var X=J.selectAll("g.legendsymbols").data([ft]);X.enter().append("g").classed("legendsymbols",!0),X.selectAll("g.legendpoints").data([ft]).enter().append("g").classed("legendpoints",!0)}).each(nt).each(F).each(j).each(O).each(U).each(Y).each(V).each(C).each(_).each(P).each(N);function C(ft){var ct=l(ft),J=ct.showFill,et=ct.showLine,Q=ct.showGradientLine,Z=ct.showGradientFill,st=ct.anyFill,ot=ct.anyLine,rt=ft[0],X=rt.trace,ut,lt,yt=c(X),kt=yt.colorscale,Lt=yt.reversescale,St=function(qt){if(qt.size())if(J)w.fillGroupStyle(qt,b,!0);else{var jt="legendfill-"+X.uid;w.gradient(qt,b,jt,v(Lt),kt,"fill")}},Ot=function(qt){if(qt.size()){var jt="legendline-"+X.uid;w.lineGroupStyle(qt),w.gradient(qt,b,jt,v(Lt),kt,"stroke")}},Ht=i.hasMarkers(X)||!st?"M5,0":ot?"M5,-2":"M5,-3",Kt=S.select(this),Gt=Kt.select(".legendfill").selectAll("path").data(J||Z?[ft]:[]);if(Gt.enter().append("path").classed("js-fill",!0),Gt.exit().remove(),Gt.attr("d",Ht+"h"+L+"v6h-"+L+"z").call(St),et||Q){var Et=T(void 0,X.line,x,n);lt=t.minExtend(X,{line:{width:Et}}),ut=[t.minExtend(rt,{trace:lt})]}var At=Kt.select(".legendlines").selectAll("path").data(et||Q?[ut]:[]);At.enter().append("path").classed("js-line",!0),At.exit().remove(),At.attr("d",Ht+(Q?"l"+L+",0.0001":"h"+L)).call(et?w.lineGroupStyle:Ot)}function _(ft){var ct=l(ft),J=ct.anyFill,et=ct.anyLine,Q=ct.showLine,Z=ct.showMarker,st=ft[0],ot=st.trace,rt=!Z&&!et&&!J&&i.hasText(ot),X,ut;function lt(Gt,Et,At,qt){var jt=t.nestedProperty(ot,Gt).get(),de=t.isArrayOrTypedArray(jt)&&Et?Et(jt):jt;if(k&&de&&qt!==void 0&&(de=qt),At){if(de<At[0])return At[0];if(de>At[1])return At[1]}return de}function yt(Gt){return st._distinct&&st.index&&Gt[st.index]?Gt[st.index]:Gt[0]}if(Z||rt||Q){var kt={},Lt={};if(Z){kt.mc=lt("marker.color",yt),kt.mx=lt("marker.symbol",yt),kt.mo=lt("marker.opacity",t.mean,[.2,1]),kt.mlc=lt("marker.line.color",yt),kt.mlw=lt("marker.line.width",t.mean,[0,5],m),Lt.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var St=lt("marker.size",t.mean,[2,16],s);kt.ms=St,Lt.marker.size=St}Q&&(Lt.line={width:lt("line.width",yt,[0,10],n)}),rt&&(kt.tx="Aa",kt.tp=lt("textposition",yt),kt.ts=10,kt.tc=lt("textfont.color",yt),kt.tf=lt("textfont.family",yt),kt.tw=lt("textfont.weight",yt),kt.ty=lt("textfont.style",yt),kt.tv=lt("textfont.variant",yt),kt.tC=lt("textfont.textcase",yt),kt.tE=lt("textfont.lineposition",yt),kt.tS=lt("textfont.shadow",yt)),X=[t.minExtend(st,kt)],ut=t.minExtend(ot,Lt),ut.selectedpoints=null,ut.texttemplate=null}var Ot=S.select(this).select("g.legendpoints"),Ht=Ot.selectAll("path.scatterpts").data(Z?X:[]);Ht.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ht.exit().remove(),Ht.call(w.pointStyle,ut,b),Z&&(X[0].mrc=3);var Kt=Ot.selectAll("g.pointtext").data(rt?X:[]);Kt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Kt.exit().remove(),Kt.selectAll("text").call(w.textPointStyle,ut,b)}function F(ft){var ct=ft[0].trace,J=ct.type==="waterfall";if(ft[0]._distinct&&J){var et=ft[0].trace[ft[0].dir].marker;return ft[0].mc=et.color,ft[0].mlw=et.line.width,ft[0].mlc=et.line.color,B(ft,this,"waterfall")}var Q=[];ct.visible&&J&&(Q=ft[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var Z=S.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(Q);Z.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),Z.exit().remove(),Z.each(function(st){var ot=S.select(this),rt=ct[st[0]].marker,X=T(void 0,rt.line,f,m);ot.attr("d",st[1]).style("stroke-width",X+"px").call(p.fill,rt.color),X&&ot.call(p.stroke,rt.line.color)})}function O(ft){B(ft,this)}function j(ft){B(ft,this,"funnel")}function B(ft,ct,J){var et=ft[0].trace,Q=et.marker||{},Z=Q.line||{},st=Q.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",ot=J?et.visible&&et.type===J:A.traceIs(et,"bar"),rt=S.select(ct).select("g.legendpoints").selectAll("path.legend"+J).data(ot?[ft]:[]);rt.enter().append("path").classed("legend"+J,!0).attr("d",st).attr("transform",u),rt.exit().remove(),rt.each(function(X){var ut=S.select(this),lt=X[0],yt=T(lt.mlw,Q.line,f,m);ut.style("stroke-width",yt+"px");var kt=lt.mcc;if(!M._inHover&&"mc"in lt){var Lt=c(Q),St=Lt.mid;St===void 0&&(St=(Lt.max+Lt.min)/2),kt=w.tryColorscale(Q,"")(St)}var Ot=kt||lt.mc||Q.color,Ht=Q.pattern,Kt=Ht&&w.getPatternAttr(Ht.shape,0,"");if(Kt){var Gt=w.getPatternAttr(Ht.bgcolor,0,null),Et=w.getPatternAttr(Ht.fgcolor,0,null),At=Ht.fgopacity,qt=h(Ht.size,8,10),jt=h(Ht.solidity,.5,1),de="legend-"+et.uid;ut.call(w.pattern,"legend",b,de,Kt,qt,jt,kt,Ht.fillmode,Gt,Et,At)}else ut.call(p.fill,Ot);yt&&p.stroke(ut,lt.mlc||Z.color)})}function U(ft){var ct=ft[0].trace,J=S.select(this).select("g.legendpoints").selectAll("path.legendbox").data(ct.visible&&A.traceIs(ct,"box-violin")?[ft]:[]);J.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),J.exit().remove(),J.each(function(){var et=S.select(this);if((ct.boxpoints==="all"||ct.points==="all")&&p.opacity(ct.fillcolor)===0&&p.opacity((ct.line||{}).color)===0){var Q=t.minExtend(ct,{marker:{size:k?s:t.constrain(ct.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});J.call(w.pointStyle,Q,b)}else{var Z=T(void 0,ct.line,f,m);et.style("stroke-width",Z+"px").call(p.fill,ct.fillcolor),Z&&p.stroke(et,ct.line.color)}})}function P(ft){var ct=ft[0].trace,J=S.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(ct.visible&&ct.type==="candlestick"?[ft,ft]:[]);J.enter().append("path").classed("legendcandle",!0).attr("d",function(et,Q){return Q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(et,Q){var Z=S.select(this),st=ct[Q?"increasing":"decreasing"],ot=T(void 0,st.line,f,m);Z.style("stroke-width",ot+"px").call(p.fill,st.fillcolor),ot&&p.stroke(Z,st.line.color)})}function N(ft){var ct=ft[0].trace,J=S.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(ct.visible&&ct.type==="ohlc"?[ft,ft]:[]);J.enter().append("path").classed("legendohlc",!0).attr("d",function(et,Q){return Q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(et,Q){var Z=S.select(this),st=ct[Q?"increasing":"decreasing"],ot=T(void 0,st.line,f,m);Z.style("fill","none").call(w.dashLine,st.line.dash,ot),ot&&p.stroke(Z,st.line.color)})}function V(ft){K(ft,this,"pie")}function Y(ft){K(ft,this,"funnelarea")}function K(ft,ct,J){var et=ft[0],Q=et.trace,Z=J?Q.visible&&Q.type===J:A.traceIs(Q,J),st=S.select(ct).select("g.legendpoints").selectAll("path.legend"+J).data(Z?[ft]:[]);if(st.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),st.exit().remove(),st.size()){var ot=Q.marker||{},rt=T(o(ot.line.width,et.pts),ot.line,f,m),X="pieLike",ut=t.minExtend(Q,{marker:{line:{width:rt}}},X);r(st,t.minExtend(et,{trace:ut},X),ut,b)}}function nt(ft){var ct=ft[0].trace,J,et=[];if(ct.visible)switch(ct.type){case"histogram2d":case"heatmap":et=[["M-15,-2V4H15V-2Z"]],J=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":et=[["M-6,-6V6H6V-6Z"]],J=!0;break;case"densitymapbox":case"densitymap":et=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],J="radial";break;case"cone":et=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],J=!1;break;case"streamtube":et=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],J=!1;break;case"surface":et=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],J=!0;break;case"mesh3d":et=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!1;break;case"volume":et=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!0;break;case"isosurface":et=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],J=!1;break}var Q=S.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(et);Q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(Z,st){var ot=S.select(this),rt=c(ct),X=rt.colorscale,ut=rt.reversescale,lt=function(St){if(St.size()){var Ot="legendfill-"+ct.uid;w.gradient(St,b,Ot,v(ut,J==="radial"),X,"fill")}},yt;if(X){if(!J){var kt=X.length;yt=st===0?X[ut?kt-1:0][1]:st===1?X[ut?0:kt-1][1]:X[Math.floor((kt-1)/2)][1]}}else{var Lt=ct.vertexcolor||ct.facecolor||ct.color;yt=t.isArrayOrTypedArray(Lt)?Lt[st]||Lt[0]:Lt}ot.attr("d",Z[0]),yt?ot.call(p.fill,yt):ot.call(lt)})}};function v(d,b){return(b?"radial":"horizontal")+(d?"":"reversed")}function l(d){var b=d[0].trace,M=b.contours,g=i.hasLines(b),k=i.hasMarkers(b),L=b.visible&&b.fill&&b.fill!=="none",u=!1,T=!1;if(M){var C=M.coloring;C==="lines"?u=!0:g=C==="none"||C==="heatmap"||M.showlines,M.type==="constraint"?L=M._operation!=="=":(C==="fill"||C==="heatmap")&&(T=!0)}return{showMarker:k,showLine:g,showFill:L,showGradientLine:u,showGradientFill:T,anyLine:g||u,anyFill:L||T}}function h(d,b,M){return d&&t.isArrayOrTypedArray(d)?b:d>M?M:d}}),50308:(function(tt,G,e){e(87632),tt.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}}),5832:(function(tt,G,e){var S=e(33626),A=e(44122),t=e(5975),E=e(35188),w=e(28231).eraseActiveShape,p=e(34809),c=p._,i=tt.exports={};i.toImage={name:"toImage",title:function(M){return((M._context.toImageButtonOptions||{}).format||"png")==="png"?c(M,"Download plot as a png"):c(M,"Download plot")},icon:E.camera,click:function(M){var g=M._context.toImageButtonOptions,k={format:g.format||"png"};p.notifier(c(M,"Taking snapshot - this may take a few seconds"),"long"),k.format!=="svg"&&p.isIE()&&(p.notifier(c(M,"IE only supports svg. Changing format to svg."),"long"),k.format="svg"),["filename","width","height","scale"].forEach(function(L){L in g&&(k[L]=g[L])}),S.call("downloadImage",M,k).then(function(L){p.notifier(c(M,"Snapshot succeeded")+" - "+L,"long")}).catch(function(){p.notifier(c(M,"Sorry, there was a problem downloading your snapshot!"),"long")})}},i.sendDataToCloud={name:"sendDataToCloud",title:function(M){return c(M,"Edit in Chart Studio")},icon:E.disk,click:function(M){A.sendDataToCloud(M)}},i.editInChartStudio={name:"editInChartStudio",title:function(M){return c(M,"Edit in Chart Studio")},icon:E.pencil,click:function(M){A.sendDataToCloud(M)}},i.zoom2d={name:"zoom2d",_cat:"zoom",title:function(M){return c(M,"Zoom")},attr:"dragmode",val:"zoom",icon:E.zoombox,click:r},i.pan2d={name:"pan2d",_cat:"pan",title:function(M){return c(M,"Pan")},attr:"dragmode",val:"pan",icon:E.pan,click:r},i.select2d={name:"select2d",_cat:"select",title:function(M){return c(M,"Box Select")},attr:"dragmode",val:"select",icon:E.selectbox,click:r},i.lasso2d={name:"lasso2d",_cat:"lasso",title:function(M){return c(M,"Lasso Select")},attr:"dragmode",val:"lasso",icon:E.lasso,click:r},i.drawclosedpath={name:"drawclosedpath",title:function(M){return c(M,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:E.drawclosedpath,click:r},i.drawopenpath={name:"drawopenpath",title:function(M){return c(M,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:E.drawopenpath,click:r},i.drawline={name:"drawline",title:function(M){return c(M,"Draw line")},attr:"dragmode",val:"drawline",icon:E.drawline,click:r},i.drawrect={name:"drawrect",title:function(M){return c(M,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:E.drawrect,click:r},i.drawcircle={name:"drawcircle",title:function(M){return c(M,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:E.drawcircle,click:r},i.eraseshape={name:"eraseshape",title:function(M){return c(M,"Erase active shape")},icon:E.eraseshape,click:w},i.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(M){return c(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:r},i.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(M){return c(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:r},i.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(M){return c(M,"Autoscale")},attr:"zoom",val:"auto",icon:E.autoscale,click:r},i.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(M){return c(M,"Reset axes")},attr:"zoom",val:"reset",icon:E.home,click:r},i.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(M){return c(M,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:E.tooltip_basic,gravity:"ne",click:r},i.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(M){return c(M,"Compare data on hover")},attr:"hovermode",val:function(M){return M._fullLayout._isHoriz?"y":"x"},icon:E.tooltip_compare,gravity:"ne",click:r};function r(M,g){var k=g.currentTarget,L=k.getAttribute("data-attr"),u=k.getAttribute("data-val")||!0,T=M._fullLayout,C={},_=t.list(M,null,!0),F=T._cartesianSpikesEnabled,O,j;if(L==="zoom"){var B=u==="in"?.5:2,U=(1+B)/2,P=(1-B)/2,N;for(j=0;j<_.length;j++)if(O=_[j],!O.fixedrange)if(N=O._name,u==="auto")C[N+".autorange"]=!0;else if(u==="reset")O._rangeInitial0===void 0&&O._rangeInitial1===void 0?C[N+".autorange"]=!0:O._rangeInitial0===void 0?(C[N+".autorange"]=O._autorangeInitial,C[N+".range"]=[null,O._rangeInitial1]):O._rangeInitial1===void 0?(C[N+".range"]=[O._rangeInitial0,null],C[N+".autorange"]=O._autorangeInitial):C[N+".range"]=[O._rangeInitial0,O._rangeInitial1],O._showSpikeInitial!==void 0&&(C[N+".showspikes"]=O._showSpikeInitial,F==="on"&&!O._showSpikeInitial&&(F="off"));else{var V=[O.r2l(O.range[0]),O.r2l(O.range[1])],Y=[U*V[0]+P*V[1],U*V[1]+P*V[0]];C[N+".range[0]"]=O.l2r(Y[0]),C[N+".range[1]"]=O.l2r(Y[1])}}else L==="hovermode"&&(u==="x"||u==="y")&&(u=T._isHoriz?"y":"x",k.setAttribute("data-val",u)),C[L]=u;T._cartesianSpikesEnabled=F,S.call("_guiRelayout",M,C)}i.zoom3d={name:"zoom3d",_cat:"zoom",title:function(M){return c(M,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:E.zoombox,click:o},i.pan3d={name:"pan3d",_cat:"pan",title:function(M){return c(M,"Pan")},attr:"scene.dragmode",val:"pan",icon:E.pan,click:o},i.orbitRotation={name:"orbitRotation",title:function(M){return c(M,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:E["3d_rotate"],click:o},i.tableRotation={name:"tableRotation",title:function(M){return c(M,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:E["z-axis"],click:o};function o(M,g){for(var k=g.currentTarget,L=k.getAttribute("data-attr"),u=k.getAttribute("data-val")||!0,T=M._fullLayout._subplots.gl3d||[],C={},_=L.split("."),F=0;F<T.length;F++)C[T[F]+"."+_[1]]=u;C.dragmode=u==="pan"?u:"zoom",S.call("_guiRelayout",M,C)}i.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(M){return c(M,"Reset camera to default")},attr:"resetDefault",icon:E.home,click:a},i.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(M){return c(M,"Reset camera to last save")},attr:"resetLastSave",icon:E.movie,click:a};function a(M,g){for(var k=g.currentTarget.getAttribute("data-attr"),L=k==="resetLastSave",u=k==="resetDefault",T=M._fullLayout,C=T._subplots.gl3d||[],_={},F=0;F<C.length;F++){var O=C[F],j=O+".camera",B=O+".aspectratio",U=O+".aspectmode",P=T[O]._scene,N;L?(_[j+".up"]=P.viewInitial.up,_[j+".eye"]=P.viewInitial.eye,_[j+".center"]=P.viewInitial.center,N=!0):u&&(_[j+".up"]=null,_[j+".eye"]=null,_[j+".center"]=null,N=!0),N&&(_[B+".x"]=P.viewInitial.aspectratio.x,_[B+".y"]=P.viewInitial.aspectratio.y,_[B+".z"]=P.viewInitial.aspectratio.z,_[U]=P.viewInitial.aspectmode)}S.call("_guiRelayout",M,_)}i.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(M){return c(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:n};function s(M,g){var k=g.currentTarget,L=k._previousVal,u=M._fullLayout,T=u._subplots.gl3d||[],C=["xaxis","yaxis","zaxis"],_={},F={};if(L)F=L,k._previousVal=null;else{for(var O=0;O<T.length;O++){var j=T[O],B=u[j],U=j+".hovermode";_[U]=B.hovermode,F[U]=!1;for(var P=0;P<3;P++){var N=C[P],V=j+"."+N+".showspikes";F[V]=!1,_[V]=B[N].showspikes}}k._previousVal=_}return F}function n(M,g){var k=s(M,g);S.call("_guiRelayout",M,k)}i.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(M){return c(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:m},i.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(M){return c(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:m},i.resetGeo={name:"resetGeo",_cat:"reset",title:function(M){return c(M,"Reset")},attr:"reset",val:null,icon:E.autoscale,click:m},i.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(M){return c(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:f};function m(M,g){for(var k=g.currentTarget,L=k.getAttribute("data-attr"),u=k.getAttribute("data-val")||!0,T=M._fullLayout,C=T._subplots.geo||[],_=0;_<C.length;_++){var F=C[_],O=T[F];if(L==="zoom"){var j=O.projection.scale,B=u==="in"?2*j:.5*j;S.call("_guiRelayout",M,F+".projection.scale",B)}}L==="reset"&&b(M,"geo")}i.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(M){return c(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:f},i.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(M){return c(M,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:E.tooltip_basic,gravity:"ne",click:f};function x(M){var g=M._fullLayout;return g.hovermode?!1:g._has("cartesian")?g._isHoriz?"y":"x":"closest"}function f(M){var g=x(M);S.call("_guiRelayout",M,"hovermode",g)}i.resetViewSankey={name:"resetSankeyGroup",title:function(M){return c(M,"Reset view")},icon:E.home,click:function(M){for(var g={"node.groups":[],"node.x":[],"node.y":[]},k=0;k<M._fullData.length;k++){var L=M._fullData[k]._viewInitial;g["node.groups"].push(L.node.groups.slice()),g["node.x"].push(L.node.x.slice()),g["node.y"].push(L.node.y.slice())}S.call("restyle",M,g)}},i.toggleHover={name:"toggleHover",title:function(M){return c(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:function(M,g){var k=s(M,g);k.hovermode=x(M),S.call("_guiRelayout",M,k)}},i.resetViews={name:"resetViews",title:function(M){return c(M,"Reset views")},icon:E.home,click:function(M,g){var k=g.currentTarget;k.setAttribute("data-attr","zoom"),k.setAttribute("data-val","reset"),r(M,g),k.setAttribute("data-attr","resetLastSave"),a(M,g),b(M,"geo"),b(M,"mapbox"),b(M,"map")}},i.toggleSpikelines={name:"toggleSpikelines",title:function(M){return c(M,"Toggle Spike Lines")},icon:E.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(M){var g=M._fullLayout;g._cartesianSpikesEnabled=g._cartesianSpikesEnabled==="on"?"off":"on",S.call("_guiRelayout",M,v(M))}};function v(M){for(var g=M._fullLayout._cartesianSpikesEnabled==="on",k=t.list(M,null,!0),L={},u=0;u<k.length;u++){var T=k[u];L[T._name+".showspikes"]=g?!0:T._showSpikeInitial}return L}i.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(M){return c(M,"Reset view")},attr:"reset",icon:E.home,click:function(M){b(M,"mapbox")}},i.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(M){return c(M,"Reset view")},attr:"reset",icon:E.home,click:function(M){b(M,"map")}},i.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(M){return c(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:l},i.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(M){return c(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:h},i.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(M){return c(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:l},i.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(M){return c(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:h};function l(M,g){d(M,g,"mapbox")}function h(M,g){d(M,g,"map")}function d(M,g,k){for(var L=g.currentTarget.getAttribute("data-val"),u=M._fullLayout,T=u._subplots[k]||[],C=1.05,_={},F=0;F<T.length;F++){var O=T[F],j=u[O].zoom,B=L==="in"?C*j:j/C;_[O+".zoom"]=B}S.call("_guiRelayout",M,_)}function b(M,g){for(var k=M._fullLayout,L=k._subplots[g]||[],u={},T=0;T<L.length;T++)for(var C=L[T],_=k[C]._subplot.viewInitial,F=Object.keys(_),O=0;O<F.length;O++){var j=F[O];u[C+"."+j]=_[j]}S.call("_guiRelayout",M,u)}}),87632:(function(tt,G,e){var S=e(5832),A=Object.keys(S),t=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],E=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(t),w=[],p=function(c){if(E.indexOf(c._cat||c.name)===-1){var i=c.name,r=(c._cat||c.name).toLowerCase();w.indexOf(i)===-1&&w.push(i),w.indexOf(r)===-1&&w.push(r)}};A.forEach(function(c){p(S[c])}),w.sort(),tt.exports={DRAW_MODES:t,backButtons:E,foreButtons:w}}),17683:(function(tt,G,e){var S=e(34809),A=e(78766),t=e(78032),E=e(50308);tt.exports=function(w,p){var c=w.modebar||{},i=t.newContainer(p,"modebar");function r(a,s){return S.coerce(c,i,E,a,s)}r("orientation"),r("bgcolor",A.addOpacity(p.paper_bgcolor,.5));var o=A.contrast(A.rgb(p.modebar.bgcolor));r("color",A.addOpacity(o,.3)),r("activecolor",A.addOpacity(o,.7)),r("uirevision",p.uirevision),r("add"),r("remove")}}),95433:(function(tt,G,e){tt.exports={moduleType:"component",name:"modebar",layoutAttributes:e(50308),supplyLayoutDefaults:e(17683),manage:e(75442)}}),75442:(function(tt,G,e){var S=e(5975),A=e(64726),t=e(33626),E=e(36040).isUnifiedHover,w=e(85393),p=e(5832),c=e(87632).DRAW_MODES,i=e(34809).extendDeep;tt.exports=function(x){var f=x._fullLayout,v=x._context,l=f._modeBar;if(!v.displayModeBar&&!v.watermark){l&&(l.destroy(),delete f._modeBar);return}if(!Array.isArray(v.modeBarButtonsToRemove))throw Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(v.modeBarButtonsToAdd))throw Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var h=v.modeBarButtons,d=Array.isArray(h)&&h.length?m(h):!v.displayModeBar&&v.watermark?[]:r(x);l?l.update(x,d):f._modeBar=w(x,d)};function r(x){var f=x._fullLayout,v=x._fullData,l=x._context;function h(X,ut){if(typeof ut=="string"){if(ut.toLowerCase()===X.toLowerCase())return!0}else{var lt=ut.name,yt=ut._cat||ut.name;if(lt===X||yt===X.toLowerCase())return!0}return!1}var d=f.modebar.add;typeof d=="string"&&(d=[d]);var b=f.modebar.remove;typeof b=="string"&&(b=[b]);var M=l.modeBarButtonsToAdd.concat(d.filter(function(X){for(var ut=0;ut<l.modeBarButtonsToRemove.length;ut++)if(h(X,l.modeBarButtonsToRemove[ut]))return!1;return!0})),g=l.modeBarButtonsToRemove.concat(b.filter(function(X){for(var ut=0;ut<l.modeBarButtonsToAdd.length;ut++)if(h(X,l.modeBarButtonsToAdd[ut]))return!1;return!0})),k=f._has("cartesian"),L=f._has("gl3d"),u=f._has("geo"),T=f._has("pie"),C=f._has("funnelarea"),_=f._has("gl2d"),F=f._has("ternary"),O=f._has("mapbox"),j=f._has("map"),B=f._has("polar"),U=f._has("smith"),P=f._has("sankey"),N=o(f),V=E(f.hovermode),Y=[];function K(X){if(X.length){for(var ut=[],lt=0;lt<X.length;lt++){for(var yt=X[lt],kt=p[yt],Lt=kt.name.toLowerCase(),St=(kt._cat||kt.name).toLowerCase(),Ot=!1,Ht=0;Ht<g.length;Ht++){var Kt=g[Ht].toLowerCase();if(Kt===Lt||Kt===St){Ot=!0;break}}Ot||ut.push(p[yt])}Y.push(ut)}}var nt=["toImage"];l.showEditInChartStudio?nt.push("editInChartStudio"):l.showSendToCloud&&nt.push("sendDataToCloud"),K(nt);var ft=[],ct=[],J=[],et=[];(k||_||T||C||F)+u+L+O+j+B+U>1?(ct=["toggleHover"],J=["resetViews"]):u?(ft=["zoomInGeo","zoomOutGeo"],ct=["hoverClosestGeo"],J=["resetGeo"]):L?(ct=["hoverClosest3d"],J=["resetCameraDefault3d","resetCameraLastSave3d"]):O?(ft=["zoomInMapbox","zoomOutMapbox"],ct=["toggleHover"],J=["resetViewMapbox"]):j?(ft=["zoomInMap","zoomOutMap"],ct=["toggleHover"],J=["resetViewMap"]):_?ct=["hoverClosestGl2d"]:T?ct=["hoverClosestPie"]:P?(ct=["hoverClosestCartesian","hoverCompareCartesian"],J=["resetViewSankey"]):ct=["toggleHover"],k&&ct.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(s(v)||V)&&(ct=[]),(k||_)&&!N&&(ft=["zoomIn2d","zoomOut2d","autoScale2d"],J[0]!=="resetViews"&&(J=["resetScale2d"])),L?et=["zoom3d","pan3d","orbitRotation","tableRotation"]:(k||_)&&!N||F?et=["zoom2d","pan2d"]:O||j||u?et=["pan2d"]:B&&(et=["zoom2d"]),a(v)&&et.push("select2d","lasso2d");var Q=[],Z=function(X){Q.indexOf(X)===-1&&ct.indexOf(X)!==-1&&Q.push(X)};if(Array.isArray(M)){for(var st=[],ot=0;ot<M.length;ot++){var rt=M[ot];typeof rt=="string"?(rt=rt.toLowerCase(),c.indexOf(rt)===-1?rt==="togglespikelines"?Z("toggleSpikelines"):rt==="togglehover"?Z("toggleHover"):rt==="hovercompare"?Z("hoverCompareCartesian"):rt==="hoverclosest"?(Z("hoverClosestCartesian"),Z("hoverClosestGeo"),Z("hoverClosest3d"),Z("hoverClosestGl2d"),Z("hoverClosestPie")):rt==="v1hovermode"&&(Z("hoverClosestCartesian"),Z("hoverCompareCartesian"),Z("hoverClosestGeo"),Z("hoverClosest3d"),Z("hoverClosestGl2d"),Z("hoverClosestPie")):(f._has("mapbox")||f._has("map")||f._has("cartesian"))&&et.push(rt)):st.push(rt)}M=st}return K(et),K(ft.concat(J)),K(Q),n(Y,M)}function o(x){for(var f=S.list({_fullLayout:x},null,!0),v=0;v<f.length;v++)if(!f[v].fixedrange)return!1;return!0}function a(x){for(var f=!1,v=0;v<x.length&&!f;v++){var l=x[v];!l._module||!l._module.selectPoints||(t.traceIs(l,"scatter-like")?(A.hasMarkers(l)||A.hasText(l))&&(f=!0):t.traceIs(l,"box-violin")?(l.boxpoints==="all"||l.points==="all")&&(f=!0):f=!0)}return f}function s(x){for(var f=0;f<x.length;f++)if(!t.traceIs(x[f],"noHover"))return!1;return!0}function n(x,f){if(f.length)if(Array.isArray(f[0]))for(var v=0;v<f.length;v++)x.push(f[v]);else x.push(f);return x}function m(x){for(var f=i([],x),v=0;v<f.length;v++)for(var l=f[v],h=0;h<l.length;h++){var d=l[h];if(typeof d=="string")if(p[d]!==void 0)f[v][h]=p[d];else throw Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return f}}),85393:(function(tt,G,e){var S=e(45568),A=e(10721),t=e(34809),E=e(35188),w=e(29697).version,p=new DOMParser;function c(a){this.container=a.container,this.element=document.createElement("div"),this.update(a.graphInfo,a.buttons),this.container.appendChild(this.element)}var i=c.prototype;i.update=function(a,s){this.graphInfo=a;var n=this.graphInfo._context,m=this.graphInfo._fullLayout,x="modebar-"+m._uid;this.element.setAttribute("id",x),this._uid=x,this.element.className="modebar",n.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),m.modebar.orientation==="v"&&(this.element.className+=" vertical",s=s.reverse());var f=m.modebar,v=n.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";t.deleteRelatedStyleRule(x),t.addRelatedStyleRule(x,v+"#"+x+" .modebar-group","background-color: "+f.bgcolor),t.addRelatedStyleRule(x,"#"+x+" .modebar-btn .icon path","fill: "+f.color),t.addRelatedStyleRule(x,"#"+x+" .modebar-btn:hover .icon path","fill: "+f.activecolor),t.addRelatedStyleRule(x,"#"+x+" .modebar-btn.active .icon path","fill: "+f.activecolor);var l=!this.hasButtons(s),h=this.hasLogo!==n.displaylogo,d=this.locale!==n.locale;if(this.locale=n.locale,(l||h||d)&&(this.removeAllButtons(),this.updateButtons(s),n.watermark||n.displaylogo)){var b=this.getLogo();n.watermark&&(b.className+=" watermark"),m.modebar.orientation==="v"?this.element.insertBefore(b,this.element.childNodes[0]):this.element.appendChild(b),this.hasLogo=!0}this.updateActiveButton()},i.updateButtons=function(a){var s=this;this.buttons=a,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(n){var m=s.createGroup();n.forEach(function(x){var f=x.name;if(!f)throw Error("must provide button 'name' in button config");if(s.buttonsNames.indexOf(f)!==-1)throw Error("button name '"+f+"' is taken");s.buttonsNames.push(f);var v=s.createButton(x);s.buttonElements.push(v),m.appendChild(v)}),s.element.appendChild(m)})},i.createGroup=function(){var a=document.createElement("div");return a.className="modebar-group",a},i.createButton=function(a){var s=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var m=a.title;m===void 0?m=a.name:typeof m=="function"&&(m=m(this.graphInfo)),(m||m===0)&&n.setAttribute("data-title",m),a.attr!==void 0&&n.setAttribute("data-attr",a.attr);var x=a.val;if(x!==void 0&&(typeof x=="function"&&(x=x(this.graphInfo)),n.setAttribute("data-val",x)),typeof a.click!="function")throw Error("must provide button 'click' function in button config");n.addEventListener("click",function(v){a.click(s.graphInfo,v),s.updateActiveButton(v.currentTarget)}),n.setAttribute("data-toggle",a.toggle||!1),a.toggle&&S.select(n).classed("active",!0);var f=a.icon;return typeof f=="function"?n.appendChild(f()):n.appendChild(this.createIcon(f||E.question)),n.setAttribute("data-gravity",a.gravity||"n"),n},i.createIcon=function(a){var s=A(a.height)?Number(a.height):a.ascent-a.descent,n="http://www.w3.org/2000/svg",m;if(a.path){m=document.createElementNS(n,"svg"),m.setAttribute("viewBox",[0,0,a.width,s].join(" ")),m.setAttribute("class","icon");var x=document.createElementNS(n,"path");x.setAttribute("d",a.path),a.transform?x.setAttribute("transform",a.transform):a.ascent!==void 0&&x.setAttribute("transform","matrix(1 0 0 -1 0 "+a.ascent+")"),m.appendChild(x)}return a.svg&&(m=p.parseFromString(a.svg,"application/xml").childNodes[0]),m.setAttribute("height","1em"),m.setAttribute("width","1em"),m},i.updateActiveButton=function(a){var s=this.graphInfo._fullLayout,n=a===void 0?null:a.getAttribute("data-attr");this.buttonElements.forEach(function(m){var x=m.getAttribute("data-val")||!0,f=m.getAttribute("data-attr"),v=m.getAttribute("data-toggle")==="true",l=S.select(m);if(v)f===n&&l.classed("active",!l.classed("active"));else{var h=f===null?f:t.nestedProperty(s,f).get();l.classed("active",h===x)}})},i.hasButtons=function(a){var s=this.buttons;if(!s||a.length!==s.length)return!1;for(var n=0;n<a.length;++n){if(a[n].length!==s[n].length)return!1;for(var m=0;m<a[n].length;m++)if(a[n][m].name!==s[n][m].name)return!1}return!0};function r(a){return a+" (v"+w+")"}i.getLogo=function(){var a=this.createGroup(),s=document.createElement("a");return s.href="https://plotly.com/",s.target="_blank",s.setAttribute("data-title",r(t._(this.graphInfo,"Produced with Plotly.js"))),s.className="modebar-btn plotlyjsicon modebar-btn--logo",s.appendChild(this.createIcon(E.newplotlylogo)),a.appendChild(s),a},i.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},i.destroy=function(){t.removeElement(this.container.querySelector(".modebar")),t.deleteRelatedStyleRule(this._uid)};function o(a,s){var n=a._fullLayout,m=new c({graphInfo:a,container:n._modebardiv.node(),buttons:s});return n._privateplot&&S.select(m.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),m}tt.exports=o}),91032:(function(tt,G,e){var S=e(80337),A=e(10229),t=e(78032).templatedArray;tt.exports={visible:{valType:"boolean",editType:"plot"},buttons:t("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"}),x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:S({editType:"plot"}),bgcolor:{valType:"color",dflt:A.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:A.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}}),68508:(function(tt){tt.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}}),86255:(function(tt,G,e){var S=e(34809),A=e(78766),t=e(78032),E=e(59008),w=e(91032),p=e(68508);tt.exports=function(r,o,a,s,n){var m=r.rangeselector||{},x=t.newContainer(o,"rangeselector");function f(h,d){return S.coerce(m,x,w,h,d)}if(f("visible",E(m,x,{name:"buttons",handleItemDefaults:c,calendar:n}).length>0)){var v=i(o,a,s);f("x",v[0]),f("y",v[1]),S.noneOrAll(r,o,["x","y"]),f("xanchor"),f("yanchor"),S.coerceFont(f,"font",a.font);var l=f("bgcolor");f("activecolor",A.contrast(l,p.lightAmount,p.darkAmount)),f("bordercolor"),f("borderwidth")}};function c(r,o,a,s){var n=s.calendar;function m(f,v){return S.coerce(r,o,w.buttons,f,v)}if(m("visible")){var x=m("step");x!=="all"&&(n&&n!=="gregorian"&&(x==="month"||x==="year")?o.stepmode="backward":m("stepmode"),m("count")),m("label")}}function i(r,o,a){for(var s=a.filter(function(f){return o[f].anchor===r._id}),n=0,m=0;m<s.length;m++){var x=o[s[m]].domain;x&&(n=Math.max(x[1],n))}return[r.domain[0],n+p.yPad]}}),45431:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(44122),E=e(78766),w=e(62203),p=e(34809),c=p.strTranslate,i=e(30635),r=e(5975),o=e(4530),a=o.LINE_SPACING,s=o.FROM_TL,n=o.FROM_BR,m=e(68508),x=e(16383);tt.exports=function(k){var L=k._fullLayout._infolayer.selectAll(".rangeselector").data(f(k),v);L.enter().append("g").classed("rangeselector",!0),L.exit().remove(),L.style({cursor:"pointer","pointer-events":"all"}),L.each(function(u){var T=S.select(this),C=u,_=C.rangeselector,F=T.selectAll("g.button").data(p.filterVisible(_.buttons));F.enter().append("g").classed("button",!0),F.exit().remove(),F.each(function(O){var j=S.select(this),B=x(C,O);O._isActive=l(C,O,B),j.call(h,_,O),j.call(b,_,O,k),j.on("click",function(){k._dragged||A.call("_guiRelayout",k,B)}),j.on("mouseover",function(){O._isHovered=!0,j.call(h,_,O)}),j.on("mouseout",function(){O._isHovered=!1,j.call(h,_,O)})}),g(k,F,_,C._name,T)})};function f(k){for(var L=r.list(k,"x",!0),u=[],T=0;T<L.length;T++){var C=L[T];C.rangeselector&&C.rangeselector.visible&&u.push(C)}return u}function v(k){return k._id}function l(k,L,u){if(L.step==="all")return k.autorange===!0;var T=Object.keys(u);return k.range[0]===u[T[0]]&&k.range[1]===u[T[1]]}function h(k,L,u){var T=p.ensureSingle(k,"rect","selector-rect",function(C){C.attr("shape-rendering","crispEdges")});T.attr({rx:m.rx,ry:m.ry}),T.call(E.stroke,L.bordercolor).call(E.fill,d(L,u)).style("stroke-width",L.borderwidth+"px")}function d(k,L){return L._isActive||L._isHovered?k.activecolor:k.bgcolor}function b(k,L,u,T){function C(_){i.convertToTspans(_,T)}p.ensureSingle(k,"text","selector-text",function(_){_.attr("text-anchor","middle")}).call(w.font,L.font).text(M(u,T._fullLayout._meta)).call(C)}function M(k,L){return k.label?L?p.templateString(k.label,L):k.label:k.step==="all"?"all":k.count+k.step.charAt(0)}function g(k,L,u,T,C){var _=0,F=0,O=u.borderwidth;L.each(function(){var V=S.select(this).select(".selector-text"),Y=u.font.size*a,K=Math.max(Y*i.lineCount(V),16)+3;F=Math.max(F,K)}),L.each(function(){var V=S.select(this),Y=V.select(".selector-rect"),K=V.select(".selector-text"),nt=K.node()&&w.bBox(K.node()).width,ft=u.font.size*a,ct=i.lineCount(K),J=Math.max(nt+10,m.minButtonWidth);V.attr("transform",c(O+_,O)),Y.attr({x:0,y:0,width:J,height:F}),i.positionText(K,J/2,F/2-(ct-1)*ft/2+3),_+=J+5});var j=k._fullLayout._size,B=j.l+j.w*u.x,U=j.t+j.h*(1-u.y),P="left";p.isRightAnchor(u)&&(B-=_,P="right"),p.isCenterAnchor(u)&&(B-=_/2,P="center");var N="top";p.isBottomAnchor(u)&&(U-=F,N="bottom"),p.isMiddleAnchor(u)&&(U-=F/2,N="middle"),_=Math.ceil(_),F=Math.ceil(F),B=Math.round(B),U=Math.round(U),t.autoMargin(k,T+"-range-selector",{x:u.x,y:u.y,l:_*s[P],r:_*n[P],b:F*n[N],t:F*s[N]}),C.attr("transform",c(B,U))}}),16383:(function(tt,G,e){var S=e(50936),A=e(34809).titleCase;tt.exports=function(E,w){var p=E._name,c={};if(w.step==="all")c[p+".autorange"]=!0;else{var i=t(E,w);c[p+".range[0]"]=i[0],c[p+".range[1]"]=i[1]}return c};function t(E,w){var p=E.range,c=new Date(E.r2l(p[1])),i=w.step,r=S["utc"+A(i)],o=w.count,a;switch(w.stepmode){case"backward":a=E.l2r(+r.offset(c,-o));break;case"todate":var s=r.offset(c,-o);a=E.l2r(+r.ceil(s));break}var n=p[1];return[a,n]}}),44453:(function(tt,G,e){tt.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e(91032)}}},layoutAttributes:e(91032),handleDefaults:e(86255),draw:e(45431)}}),63608:(function(tt,G,e){var S=e(10229);tt.exports={bgcolor:{valType:"color",dflt:S.background,editType:"plot"},bordercolor:{valType:"color",dflt:S.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}}),46223:(function(tt,G,e){var S=e(5975).list,A=e(32919).getAutoRange,t=e(20604);tt.exports=function(E){for(var w=S(E,"x",!0),p=0;p<w.length;p++){var c=w[p],i=c[t.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=A(E,c))}}}),20604:(function(tt){tt.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}}),41295:(function(tt,G,e){var S=e(34809),A=e(78032),t=e(5975),E=e(63608),w=e(66249);tt.exports=function(p,c,i){var r=p[i],o=c[i];if(!(r.rangeslider||c._requestRangeslider[o._id]))return;S.isPlainObject(r.rangeslider)||(r.rangeslider={});var a=r.rangeslider,s=A.newContainer(o,"rangeslider");function n(k,L){return S.coerce(a,s,E,k,L)}var m,x;function f(k,L){return S.coerce(m,x,w,k,L)}if(n("visible")){n("bgcolor",c.plot_bgcolor),n("bordercolor"),n("borderwidth"),n("thickness"),n("autorange",!o.isValidRange(a.range)),n("range");var v=c._subplots;if(v)for(var l=v.cartesian.filter(function(k){return k.substr(0,k.indexOf("y"))===t.name2id(i)}).map(function(k){return k.substr(k.indexOf("y"),k.length)}),h=S.simpleMap(l,t.id2name),d=0;d<h.length;d++){var b=h[d];m=a[b]||{},x=A.newContainer(s,b,"yaxis");var M=c[b],g;m.range&&M.isValidRange(m.range)&&(g="fixed"),f("rangemode",g)!=="match"&&f("range",M.range.slice())}s._input=a}}}),88887:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(44122),E=e(34809),w=E.strTranslate,p=e(62203),c=e(78766),i=e(17240),r=e(37703),o=e(5975),a=e(14751),s=e(27983),n=e(20604);tt.exports=function(L){for(var u=L._fullLayout,T=u._rangeSliderData,C=0;C<T.length;C++){var _=T[C][n.name];_._clipId=_._id+"-"+u._uid}function F(j){return j._name}var O=u._infolayer.selectAll("g."+n.containerClassName).data(T,F);O.exit().each(function(j){var B=j[n.name];u._topdefs.select("#"+B._clipId).remove()}).remove(),T.length!==0&&(O.enter().append("g").classed(n.containerClassName,!0).attr("pointer-events","all"),O.each(function(j){var B=S.select(this),U=j[n.name],P=u[o.id2name(j.anchor)],N=U[o.id2name(j.anchor)];if(U.range){var V=E.simpleMap(U.range,j.r2l),Y=E.simpleMap(j.range,j.r2l),K=Y[0]<Y[1]?[Math.min(V[0],Y[0]),Math.max(V[1],Y[1])]:[Math.max(V[0],Y[0]),Math.min(V[1],Y[1])];U.range=U._input.range=E.simpleMap(K,j.l2r)}j.cleanRange("rangeslider.range");var nt=u._size,ft=j.domain;U._width=nt.w*(ft[1]-ft[0]);var ct=Math.round(nt.l+nt.w*ft[0]),J=Math.round(nt.t+nt.h*(1-j._counterDomainMin)+(j.side==="bottom"?j._depth:0)+U._offsetShift+n.extraPad);B.attr("transform",w(ct,J)),U._rl=E.simpleMap(U.range,j.r2l);var et=U._rl[0],Q=U._rl[1],Z=Q-et;if(U.p2d=function(Lt){return Lt/U._width*Z+et},U.d2p=function(Lt){return(Lt-et)/Z*U._width},j.rangebreaks){var st=j.locateBreaks(et,Q);if(st.length){var ot,rt,X=0;for(ot=0;ot<st.length;ot++)rt=st[ot],X+=rt.max-rt.min;var ut=U._width/(Q-et-X),lt=[-ut*et];for(ot=0;ot<st.length;ot++)rt=st[ot],lt.push(lt[lt.length-1]-ut*(rt.max-rt.min));for(U.d2p=function(Lt){for(var St=lt[0],Ot=0;Ot<st.length;Ot++){var Ht=st[Ot];if(Lt>=Ht.max)St=lt[Ot+1];else if(Lt<Ht.min)break}return St+ut*Lt},ot=0;ot<st.length;ot++)rt=st[ot],rt.pmin=U.d2p(rt.min),rt.pmax=U.d2p(rt.max);U.p2d=function(Lt){for(var St=lt[0],Ot=0;Ot<st.length;Ot++){var Ht=st[Ot];if(Lt>=Ht.pmax)St=lt[Ot+1];else if(Lt<Ht.pmin)break}return(Lt-St)/ut}}}if(N.rangemode!=="match"){var yt=P.r2l(N.range[0]),kt=P.r2l(N.range[1])-yt;U.d2pOppAxis=function(Lt){return(Lt-yt)/kt*U._height}}B.call(l,L,j,U).call(h,L,j,U).call(d,L,j,U).call(M,L,j,U,N).call(g,L,j,U).call(k,L,j,U),x(B,L,j,U),v(B,L,j,U,P,N),j.side==="bottom"&&i.draw(L,j._id+"title",{propContainer:j,propName:j._name+".title",placeholder:u._dfltTitle.x,attributes:{x:j._offset+j._length/2,y:J+U._height+U._offsetShift+10+1.5*j.title.font.size,"text-anchor":"middle"}})}))};function m(L){return typeof L.clientX=="number"?L.clientX:L.touches&&L.touches.length>0?L.touches[0].clientX:0}function x(L,u,T,C){if(u._context.staticPlot)return;var _=L.select("rect."+n.slideBoxClassName).node(),F=L.select("rect."+n.grabAreaMinClassName).node(),O=L.select("rect."+n.grabAreaMaxClassName).node();function j(){var B=S.event,U=B.target,P=m(B),N=P-L.node().getBoundingClientRect().left,V=C.d2p(T._rl[0]),Y=C.d2p(T._rl[1]),K=a.coverSlip();this.addEventListener("touchmove",nt),this.addEventListener("touchend",ft),K.addEventListener("mousemove",nt),K.addEventListener("mouseup",ft);function nt(ct){var J=+m(ct)-P,et,Q,Z;switch(U){case _:if(Z="ew-resize",V+J>T._length||Y+J<0)return;et=V+J,Q=Y+J;break;case F:if(Z="col-resize",V+J>T._length)return;et=V+J,Q=Y;break;case O:if(Z="col-resize",Y+J<0)return;et=V,Q=Y+J;break;default:Z="ew-resize",et=N,Q=N+J;break}if(Q<et){var st=Q;Q=et,et=st}C._pixelMin=et,C._pixelMax=Q,s(S.select(K),Z),f(L,u,T,C)}function ft(){K.removeEventListener("mousemove",nt),K.removeEventListener("mouseup",ft),this.removeEventListener("touchmove",nt),this.removeEventListener("touchend",ft),E.removeElement(K)}}L.on("mousedown",j),L.on("touchstart",j)}function f(L,u,T,C){function _(j){return T.l2r(E.constrain(j,C._rl[0],C._rl[1]))}var F=_(C.p2d(C._pixelMin)),O=_(C.p2d(C._pixelMax));window.requestAnimationFrame(function(){A.call("_guiRelayout",u,T._name+".range",[F,O])})}function v(L,u,T,C,_,F){var O=n.handleWidth/2;function j(ct){return E.constrain(ct,0,C._width)}function B(ct){return E.constrain(ct,0,C._height)}function U(ct){return E.constrain(ct,-O,C._width+O)}var P=j(C.d2p(T._rl[0])),N=j(C.d2p(T._rl[1]));if(L.select("rect."+n.slideBoxClassName).attr("x",P).attr("width",N-P),L.select("rect."+n.maskMinClassName).attr("width",P),L.select("rect."+n.maskMaxClassName).attr("x",N).attr("width",C._width-N),F.rangemode!=="match"){var V=C._height-B(C.d2pOppAxis(_._rl[1])),Y=C._height-B(C.d2pOppAxis(_._rl[0]));L.select("rect."+n.maskMinOppAxisClassName).attr("x",P).attr("height",V).attr("width",N-P),L.select("rect."+n.maskMaxOppAxisClassName).attr("x",P).attr("y",Y).attr("height",C._height-Y).attr("width",N-P),L.select("rect."+n.slideBoxClassName).attr("y",V).attr("height",Y-V)}var K=.5,nt=Math.round(U(P-O))-K,ft=Math.round(U(N-O))+K;L.select("g."+n.grabberMinClassName).attr("transform",w(nt,K)),L.select("g."+n.grabberMaxClassName).attr("transform",w(ft,K))}function l(L,u,T,C){var _=E.ensureSingle(L,"rect",n.bgClassName,function(B){B.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),F=C.borderwidth%2==0?C.borderwidth:C.borderwidth-1,O=-C._offsetShift,j=p.crispRound(u,C.borderwidth);_.attr({width:C._width+F,height:C._height+F,transform:w(O,O),"stroke-width":j}).call(c.stroke,C.bordercolor).call(c.fill,C.bgcolor)}function h(L,u,T,C){var _=u._fullLayout;E.ensureSingleById(_._topdefs,"clipPath",C._clipId,function(F){F.append("rect").attr({x:0,y:0})}).select("rect").attr({width:C._width,height:C._height})}function d(L,u,T,C){var _=u.calcdata,F=L.selectAll("g."+n.rangePlotClassName).data(T._subplotsWith,E.identity);F.enter().append("g").attr("class",function(j){return n.rangePlotClassName+" "+j}).call(p.setClipUrl,C._clipId,u),F.order(),F.exit().remove();var O;F.each(function(j,B){var U=S.select(this),P=B===0,N=o.getFromId(u,j,"y"),V=N._name,Y=C[V],K={data:[],layout:{xaxis:{type:T.type,domain:[0,1],range:C.range.slice(),calendar:T.calendar},width:C._width,height:C._height,margin:{t:0,b:0,l:0,r:0}},_context:u._context};T.rangebreaks&&(K.layout.xaxis.rangebreaks=T.rangebreaks),K.layout[V]={type:N.type,domain:[0,1],range:Y.rangemode==="match"?N.range.slice():Y.range.slice(),calendar:N.calendar},N.rangebreaks&&(K.layout[V].rangebreaks=N.rangebreaks),t.supplyDefaults(K);var nt=K._fullLayout.xaxis,ft=K._fullLayout[V];nt.clearCalc(),nt.setScale(),ft.clearCalc(),ft.setScale();var ct={id:j,plotgroup:U,xaxis:nt,yaxis:ft,isRangePlot:!0};P?O=ct:(ct.mainplot="xy",ct.mainplotinfo=O),r.rangePlot(u,ct,b(_,j))})}function b(L,u){for(var T=[],C=0;C<L.length;C++){var _=L[C],F=_[0].trace;F.xaxis+F.yaxis===u&&T.push(_)}return T}function M(L,u,T,C,_){E.ensureSingle(L,"rect",n.maskMinClassName,function(F){F.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",C._height).call(c.fill,n.maskColor),E.ensureSingle(L,"rect",n.maskMaxClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",C._height).call(c.fill,n.maskColor),_.rangemode!=="match"&&(E.ensureSingle(L,"rect",n.maskMinOppAxisClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",C._width).call(c.fill,n.maskOppAxisColor),E.ensureSingle(L,"rect",n.maskMaxOppAxisClassName,function(F){F.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",C._width).style("border-top",n.maskOppBorder).call(c.fill,n.maskOppAxisColor))}function g(L,u,T,C){u._context.staticPlot||E.ensureSingle(L,"rect",n.slideBoxClassName,function(_){_.attr({y:0,cursor:n.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:C._height,fill:n.slideBoxFill})}function k(L,u,T,C){var _=E.ensureSingle(L,"g",n.grabberMinClassName),F=E.ensureSingle(L,"g",n.grabberMaxClassName),O={x:0,width:n.handleWidth,rx:n.handleRadius,fill:c.background,stroke:c.defaultLine,"stroke-width":n.handleStrokeWidth,"shape-rendering":"crispEdges"},j={y:Math.round(C._height/4),height:Math.round(C._height/2)};E.ensureSingle(_,"rect",n.handleMinClassName,function(U){U.attr(O)}).attr(j),E.ensureSingle(F,"rect",n.handleMaxClassName,function(U){U.attr(O)}).attr(j);var B={width:n.grabAreaWidth,x:0,y:0,fill:n.grabAreaFill,cursor:u._context.staticPlot?void 0:n.grabAreaCursor};E.ensureSingle(_,"rect",n.grabAreaMinClassName,function(U){U.attr(B)}).attr("height",C._height),E.ensureSingle(F,"rect",n.grabAreaMaxClassName,function(U){U.attr(B)}).attr("height",C._height)}}),80400:(function(tt,G,e){var S=e(5975),A=e(30635),t=e(20604),E=e(4530).LINE_SPACING,w=t.name;function p(c){var i=c&&c[w];return i&&i.visible}G.isVisible=p,G.makeData=function(c){var i=S.list({_fullLayout:c},"x",!0),r=c.margin,o=[];if(!c._has("gl2d"))for(var a=0;a<i.length;a++){var s=i[a];if(p(s)){o.push(s);var n=s[w];n._id=w+s._id,n._height=(c.height-r.b-r.t)*n.thickness,n._offsetShift=Math.floor(n.borderwidth/2)}}c._rangeSliderData=o},G.autoMarginOpts=function(c,i){var r=c._fullLayout,o=i[w],a=i._id.charAt(0),s=0,n=0;if(i.side==="bottom"&&(s=i._depth,i.title.text!==r._dfltTitle[a])){n=1.5*i.title.font.size+10+o._offsetShift;var m=(i.title.text.match(A.BR_TAG_ALL)||[]).length;n+=m*i.title.font.size*E}return{x:0,y:i._counterDomainMin,l:0,r:0,t:0,b:o._height+s+Math.max(r.margin.b,n),pad:t.extraPad+o._offsetShift*2}}}),55429:(function(tt,G,e){var S=e(34809),A=e(63608),t=e(66249),E=e(80400);tt.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:S.extendFlat({},A,{yaxis:t})}}},layoutAttributes:e(63608),handleDefaults:e(41295),calcAutorange:e(46223),draw:e(88887),isVisible:E.isVisible,makeData:E.makeData,autoMarginOpts:E.autoMarginOpts}}),66249:(function(tt){tt.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}}),4327:(function(tt,G,e){var S=e(50222),A=e(36640).line,t=e(94850).T,E=e(93049).extendFlat,w=e(13582).overrideAll,p=e(78032).templatedArray;e(35081),tt.exports=w(p("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:E({},S.xref,{}),yref:E({},S.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:A.color,width:E({},A.width,{min:1,dflt:1}),dash:E({},t,{dflt:"dot"})}}),"arraydraw","from-root")}),78865:(function(tt){tt.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}}),2272:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(59008),E=e(4327),w=e(49728);tt.exports=function(c,i){t(c,i,{name:"selections",handleItemDefaults:p});for(var r=i.selections,o=0;o<r.length;o++){var a=r[o];a&&a.path===void 0&&(a.x0===void 0||a.x1===void 0||a.y0===void 0||a.y1===void 0)&&(i.selections[o]=null)}};function p(c,i,r){function o(u,T){return S.coerce(c,i,E,u,T)}var a=o("type",o("path")?"path":"rect")!=="path";a&&delete i.path,o("opacity"),o("line.color"),o("line.width"),o("line.dash");for(var s=["x","y"],n=0;n<2;n++){var m=s[n],x={_fullLayout:r},f,v,l,h=A.coerceRef(c,i,x,m);if(f=A.getFromId(x,h),f._selectionIndices.push(i._index),l=w.rangeToShapePosition(f),v=w.shapePositionToRange(f),a){var d=m+"0",b=m+"1",M=c[d],g=c[b];c[d]=v(c[d],!0),c[b]=v(c[b],!0),A.coercePosition(i,x,o,h,d),A.coercePosition(i,x,o,h,b);var k=i[d],L=i[b];k!==void 0&&L!==void 0&&(i[d]=l(k),i[b]=l(L),c[d]=M,c[b]=g)}}a&&S.noneOrAll(c,i,["x0","x1","y0","y1"])}}),7028:(function(tt,G,e){var S=e(81055).readPaths,A=e(561),t=e(78534).clearOutlineControllers,E=e(78766),w=e(62203),p=e(78032).arrayEditor,c=e(49728),i=c.getPathString;tt.exports={draw:r,drawOne:a,activateLastSelection:m};function r(f){var v=f._fullLayout;for(var l in t(f),v._selectionLayer.selectAll("path").remove(),v._plots){var h=v._plots[l].selectionLayer;h&&h.selectAll("path").remove()}for(var d=0;d<v.selections.length;d++)a(f,d)}function o(f){return f._context.editSelection}function a(f,v){f._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+v+'"]').remove();var l=c.makeSelectionsOptionsAndPlotinfo(f,v),h=l.options,d=l.plotinfo;if(!h._input)return;b(f._fullLayout._selectionLayer);function b(M){var g=i(f,h),k={"data-index":v,"fill-rule":"evenodd",d:g},L=h.opacity,u="rgba(0,0,0,0)",T=h.line.color||E.contrast(f._fullLayout.plot_bgcolor),C=h.line.width,_=h.line.dash;C||(C=5,_="solid");var F=o(f)&&f._fullLayout._activeSelectionIndex===v;F&&(u=f._fullLayout.activeselection.fillcolor,L=f._fullLayout.activeselection.opacity);for(var O=[],j=1;j>=0;j--){var B=M.append("path").attr(k).style("opacity",j?.1:L).call(E.stroke,T).call(E.fill,u).call(w.dashLine,j?"solid":_,j?4+C:C);if(s(B,f,h),F){var U=p(f.layout,"selections",h);B.style({cursor:"move"});var P={element:B.node(),plotinfo:d,gd:f,editHelpers:U,isActiveSelection:!0};A(S(g,f),B,P)}else B.style("pointer-events",j?"all":"none");O[j]=B}var N=O[0];O[1].node().addEventListener("click",function(){return n(f,N)})}}function s(f,v,l){var h=l.xref+l.yref;w.setClipUrl(f,"clip"+v._fullLayout._uid+h,v)}function n(f,v){if(o(f)){var l=+v.node().getAttribute("data-index");if(l>=0){if(l===f._fullLayout._activeSelectionIndex){x(f);return}f._fullLayout._activeSelectionIndex=l,f._fullLayout._deactivateSelection=x,r(f)}}}function m(f){if(o(f)){var v=f._fullLayout.selections.length-1;f._fullLayout._activeSelectionIndex=v,f._fullLayout._deactivateSelection=x,r(f)}}function x(f){o(f)&&f._fullLayout._activeSelectionIndex>=0&&(t(f),delete f._fullLayout._activeSelectionIndex,r(f))}}),52307:(function(tt,G,e){var S=e(94850).T,A=e(93049).extendFlat;tt.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:A({},S,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}}),43028:(function(tt){tt.exports=function(G,e,S){S("newselection.mode"),S("newselection.line.width")&&(S("newselection.line.color"),S("newselection.line.dash")),S("activeselection.fillcolor"),S("activeselection.opacity")}}),51817:(function(tt,G,e){var S=e(70414).selectMode,A=e(78534).clearOutline,t=e(81055),E=t.readPaths,w=t.writePaths,p=t.fixDatesForPaths;tt.exports=function(c,i){if(c.length){var r=c[0][0];if(r){var o=r.getAttribute("d"),a=i.gd,s=a._fullLayout.newselection,n=i.plotinfo,m=n.xaxis,x=n.yaxis,f=i.isActiveSelection,v=i.dragmode,l=(a.layout||{}).selections||[];if(!S(v)&&f!==void 0){var h=a._fullLayout._activeSelectionIndex;if(h<l.length)switch(a._fullLayout.selections[h].type){case"rect":v="select";break;case"path":v="lasso";break}}var d=E(o,a,n,f),b={xref:m._id,yref:x._id,opacity:s.opacity,line:{color:s.line.color,width:s.line.width,dash:s.line.dash}},M;d.length===1&&(M=d[0]),M&&M.length===5&&v==="select"?(b.type="rect",b.x0=M[0][1],b.y0=M[0][2],b.x1=M[2][1],b.y1=M[2][2]):(b.type="path",m&&x&&p(d,m,x),b.path=w(d),M=null),A(a);for(var g=i.editHelpers,k=(g||{}).modifyItem,L=[],u=0;u<l.length;u++){var T=a._fullLayout.selections[u];if(!T){L[u]=T;continue}if(L[u]=T._input,f!==void 0&&u===a._fullLayout._activeSelectionIndex){var C=b;switch(T.type){case"rect":k("x0",C.x0),k("x1",C.x1),k("y0",C.y0),k("y1",C.y1);break;case"path":k("path",C.path);break}}}return f===void 0?(L.push(b),L):g?g.getUpdateObj():{}}}}}),49801:(function(tt,G,e){var S=e(34809).strTranslate;function A(p,c){switch(p.type){case"log":return p.p2d(c);case"date":return p.p2r(c,0,p.calendar);default:return p.p2r(c)}}function t(p,c){switch(p.type){case"log":return p.d2p(c);case"date":return p.r2p(c,0,p.calendar);default:return p.r2p(c)}}function E(p){var c=p._id.charAt(0)==="y"?1:0;return function(i){return A(p,i[c])}}function w(p){return S(p.xaxis._offset,p.yaxis._offset)}tt.exports={p2r:A,r2p:t,axValue:E,getTransform:w}}),44844:(function(tt,G,e){var S=e(7028),A=e(88666);tt.exports={moduleType:"component",name:"selections",layoutAttributes:e(4327),supplyLayoutDefaults:e(2272),supplyDrawNewSelectionDefaults:e(43028),includeBasePlot:e(20706)("selections"),draw:S.draw,drawOne:S.drawOne,reselect:A.reselect,prepSelect:A.prepSelect,clearOutline:A.clearOutline,clearSelectionsCache:A.clearSelectionsCache,selectOnClick:A.selectOnClick}}),88666:(function(tt,G,e){var S=e(11516),A=e(52773),t=e(33626),E=e(62203).dashStyle,w=e(78766),p=e(32141),c=e(36040).makeEventData,i=e(70414),r=i.freeMode,o=i.rectMode,a=i.drawMode,s=i.openMode,n=i.selectMode,m=e(49728),x=e(2956),f=e(561),v=e(78534).clearOutline,l=e(81055),h=l.handleEllipse,d=l.readPaths,b=e(87562).newShapes,M=e(51817),g=e(7028).activateLastSelection,k=e(34809),L=k.sorterAsc,u=e(80899),T=e(64025),C=e(5975).getFromId,_=e(34823),F=e(71817).redrawReglTraces,O=e(78865),j=O.MINSELECT,B=u.filter,U=u.tester,P=e(49801),N=P.p2r,V=P.axValue,Y=P.getTransform;function K(ee){return ee.subplot!==void 0}function nt(ee,Bt,Wt,$t,Tt){var _t=!K($t),It=r(Tt),Mt=o(Tt),Ct=s(Tt),Ut=a(Tt),Zt=n(Tt),Me=Tt==="drawline",Be=Tt==="drawcircle",ge=Me||Be,Ee=$t.gd,Ne=Ee._fullLayout,sr=Zt&&Ne.newselection.mode==="immediate"&&_t,_e=Ne._zoomlayer,He=$t.element.getBoundingClientRect(),or=$t.plotinfo,Pr=Y(or),br=Bt-He.left,ue=Wt-He.top;Ne._calcInverseTransform(Ee);var we=k.apply3DTransform(Ne._invTransform)(br,ue);br=we[0],ue=we[1];var Ce=Ne._invScaleX,Ge=Ne._invScaleY,Ke=br,ar=ue,We="M"+br+","+ue,$e=$t.xaxes[0],yr=$t.yaxes[0],Cr=$e._length,Sr=yr._length,Dr=ee.altKey&&!(a(Tt)&&Ct),Or,ei,Nr,re,ae,wr,_r;Z(ee,Ee,$t),It&&(Or=B([[br,ue]],O.BENDPX));var lr=_e.selectAll("path.select-outline-"+or.id).data([1]),qe=Ut?Ne.newshape:Ne.newselection;Ut&&($t.hasText=qe.label.text||qe.label.texttemplate);var pr=Ut&&!Ct?qe.fillcolor:"rgba(0,0,0,0)",xr=qe.line.color||(_t?w.contrast(Ee._fullLayout.plot_bgcolor):"#7f7f7f");lr.enter().append("path").attr("class","select-outline select-outline-"+or.id).style({opacity:Ut?qe.opacity/2:1,"stroke-dasharray":E(qe.line.dash,qe.line.width),"stroke-width":qe.line.width+"px","shape-rendering":"crispEdges"}).call(w.stroke,xr).call(w.fill,pr).attr("fill-rule","evenodd").classed("cursor-move",!!Ut).attr("transform",Pr).attr("d",We+"Z");var fr=_e.append("path").attr("class","zoombox-corners").style({fill:w.background,stroke:w.defaultLine,"stroke-width":1}).attr("transform",Pr).attr("d","M0,0Z");if(Ut&&$t.hasText){var ur=_e.select(".label-temp");ur.empty()&&(ur=_e.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Br=Ne._uid+O.SELECTID,$r=[],Jr=ut(Ee,$t.xaxes,$t.yaxes,$t.subplot);sr&&!ee.shiftKey&&($t._clearSubplotSelections=function(){if(_t){var mi=$e._id,Ei=yr._id;ye(Ee,mi,Ei,Jr);for(var Di=(Ee.layout||{}).selections||[],Tr=[],Vr=!1,li=0;li<Di.length;li++){var ci=Ne.selections[li];ci.xref!==mi||ci.yref!==Ei?Tr.push(Di[li]):Vr=!0}Vr&&(Ee._fullLayout._noEmitSelectedAtStart=!0,t.call("_guiRelayout",Ee,{selections:Tr}))}});var Zi=nr($t);$t.moveFn=function(mi,Ei){$t._clearSubplotSelections&&($t._clearSubplotSelections=($t._clearSubplotSelections(),void 0)),Ke=Math.max(0,Math.min(Cr,Ce*mi+br)),ar=Math.max(0,Math.min(Sr,Ge*Ei+ue));var Di=Math.abs(Ke-br),Tr=Math.abs(ar-ue);if(Mt){var Vr,li,ci;if(Zt){var Ni=Ne.selectdirection;switch(Vr=Ni==="any"?Tr<Math.min(Di*.6,j)?"h":Di<Math.min(Tr*.6,j)?"v":"d":Ni,Vr){case"h":li=Be?Sr/2:0,ci=Sr;break;case"v":li=Be?Cr/2:0,ci=Cr;break}}if(Ut)switch(Ne.newshape.drawdirection){case"vertical":Vr="h",li=Be?Sr/2:0,ci=Sr;break;case"horizontal":Vr="v",li=Be?Cr/2:0,ci=Cr;break;case"ortho":Di<Tr?(Vr="h",li=ue,ci=ar):(Vr="v",li=br,ci=Ke);break;default:Vr="d"}Vr==="h"?(re=ge?h(Be,[Ke,li],[Ke,ci]):[[br,li],[br,ci],[Ke,ci],[Ke,li]],re.xmin=ge?Ke:Math.min(br,Ke),re.xmax=ge?Ke:Math.max(br,Ke),re.ymin=Math.min(li,ci),re.ymax=Math.max(li,ci),fr.attr("d","M"+re.xmin+","+(ue-j)+"h-4v"+2*j+"h4ZM"+(re.xmax-1)+","+(ue-j)+"h4v"+2*j+"h-4Z")):Vr==="v"?(re=ge?h(Be,[li,ar],[ci,ar]):[[li,ue],[li,ar],[ci,ar],[ci,ue]],re.xmin=Math.min(li,ci),re.xmax=Math.max(li,ci),re.ymin=ge?ar:Math.min(ue,ar),re.ymax=ge?ar:Math.max(ue,ar),fr.attr("d","M"+(br-j)+","+re.ymin+"v-4h"+2*j+"v4ZM"+(br-j)+","+(re.ymax-1)+"v4h"+2*j+"v-4Z")):Vr==="d"&&(re=ge?h(Be,[br,ue],[Ke,ar]):[[br,ue],[br,ar],[Ke,ar],[Ke,ue]],re.xmin=Math.min(br,Ke),re.xmax=Math.max(br,Ke),re.ymin=Math.min(ue,ar),re.ymax=Math.max(ue,ar),fr.attr("d","M0,0Z"))}else It&&(Or.addPt([Ke,ar]),re=Or.filtered);if($t.selectionDefs&&$t.selectionDefs.length?(Nr=Gt($t.mergedPolygons,re,Dr),re.subtract=Dr,ei=Q($t.selectionDefs.concat([re]))):(Nr=[re],ei=U(re)),f(At(Nr,Ct),lr,$t),Zt){var si=jt(Ee,!1),Ci=si.eventData?si.eventData.points.slice():[];si=jt(Ee,!1,ei,Jr,$t),ei=si.selectionTesters,_r=si.eventData;var wi=Or?Or.filtered:me(Nr);T.throttle(Br,O.SELECTDELAY,function(){$r=qt(ei,Jr);for(var ma=$r.slice(),Ha=0;Ha<Ci.length;Ha++){for(var ya=Ci[Ha],Ga=!1,Ea=0;Ea<ma.length;Ea++)if(ma[Ea].curveNumber===ya.curveNumber&&ma[Ea].pointNumber===ya.pointNumber){Ga=!0;break}Ga||ma.push(ya)}ma.length&&(_r||(_r={}),_r.points=ma),Zi(_r,wi),Vt(Ee,_r)})}},$t.clickFn=function(mi,Ei){if(fr.remove(),Ee._fullLayout._activeShapeIndex>=0){Ee._fullLayout._deactivateShape(Ee);return}if(!Ut){var Di=Ne.clickmode;T.done(Br).then(function(){if(T.clear(Br),mi===2){for(lr.remove(),ae=0;ae<Jr.length;ae++)wr=Jr[ae],wr._module.selectPoints(wr,!1);if(Ht(Ee,Jr),rt($t),te(Ee),Jr.length){var Tr=Jr[0].xaxis,Vr=Jr[0].yaxis;if(Tr&&Vr){for(var li=[],ci=Ee._fullLayout.selections,Ni=0;Ni<ci.length;Ni++){var si=ci[Ni];si&&(si.xref!==Tr._id||si.yref!==Vr._id)&&li.push(si)}li.length<ci.length&&(Ee._fullLayout._noEmitSelectedAtStart=!0,t.call("_guiRelayout",Ee,{selections:li}))}}}else Di.indexOf("select")>-1&&ft(Ei,Ee,$t.xaxes,$t.yaxes,$t.subplot,$t,lr),Di==="event"&&Qt(Ee,void 0);p.click(Ee,Ei,or.id)}).catch(k.error)}},$t.doneFn=function(){fr.remove(),T.done(Br).then(function(){T.clear(Br),!sr&&re&&$t.selectionDefs&&(re.subtract=Dr,$t.selectionDefs.push(re),$t.mergedPolygons.length=0,[].push.apply($t.mergedPolygons,Nr)),(sr||Ut)&&rt($t,sr),$t.doneFnCompleted&&$t.doneFnCompleted($r),Zt&&Qt(Ee,_r)}).catch(k.error)}}function ft(ee,Bt,Wt,$t,Tt,_t,It){var Mt=Bt._hoverdata,Ct=Bt._fullLayout.clickmode.indexOf("event")>-1,Ut=[],Zt,Me,Be,ge,Ee,Ne,sr,_e,He,or;if(yt(Mt)){Z(ee,Bt,_t),Zt=ut(Bt,Wt,$t,Tt);var Pr=kt(Mt,Zt);if(Pr.pointNumbers.length>0?St(Zt,Pr):Ot(Zt)&&(sr=Lt(Pr))){for(It&&It.remove(),or=0;or<Zt.length;or++)Me=Zt[or],Me._module.selectPoints(Me,!1);Ht(Bt,Zt),rt(_t),Ct&&te(Bt)}else{for(_e=ee.shiftKey&&(sr===void 0?Lt(Pr):sr),Be=ct(Pr.pointNumber,Pr.searchInfo,_e),ge=Q(_t.selectionDefs.concat([Be]),ge),or=0;or<Zt.length;or++)if(Ee=Zt[or]._module.selectPoints(Zt[or],ge),Ne=Et(Ee,Zt[or]),Ut.length)for(var br=0;br<Ne.length;br++)Ut.push(Ne[br]);else Ut=Ne;if(He={points:Ut},Ht(Bt,Zt,He),Be&&_t&&_t.selectionDefs.push(Be),It){var ue=_t.mergedPolygons;f(At(ue,s(_t.dragmode)),It,_t)}Ct&&Qt(Bt,He)}}}function ct(ee,Bt,Wt){return{pointNumber:ee,searchInfo:Bt,subtract:!!Wt}}function J(ee){return"pointNumber"in ee&&"searchInfo"in ee}function et(ee){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(Bt,Wt,$t,Tt){var _t=ee.searchInfo.cd[0].trace._expandedIndex;return Tt.cd[0].trace._expandedIndex===_t&&$t===ee.pointNumber},isRect:!1,degenerate:!1,subtract:!!ee.subtract}}function Q(ee){if(!ee.length)return;for(var Bt=[],Wt=J(ee[0])?0:ee[0][0][0],$t=Wt,Tt=J(ee[0])?0:ee[0][0][1],_t=Tt,It=0;It<ee.length;It++)if(J(ee[It]))Bt.push(et(ee[It]));else{var Mt=U(ee[It]);Mt.subtract=!!ee[It].subtract,Bt.push(Mt),Wt=Math.min(Wt,Mt.xmin),$t=Math.max($t,Mt.xmax),Tt=Math.min(Tt,Mt.ymin),_t=Math.max(_t,Mt.ymax)}function Ct(Ut,Zt,Me,Be){for(var ge=!1,Ee=0;Ee<Bt.length;Ee++)Bt[Ee].contains(Ut,Zt,Me,Be)&&(ge=!Bt[Ee].subtract);return ge}return{xmin:Wt,xmax:$t,ymin:Tt,ymax:_t,pts:[],contains:Ct,isRect:!1,degenerate:!1}}function Z(ee,Bt,Wt){var $t=Bt._fullLayout,Tt=Wt.plotinfo,_t=Wt.dragmode,It=$t._lastSelectedSubplot&&$t._lastSelectedSubplot===Tt.id,Mt=(ee.shiftKey||ee.altKey)&&!(a(_t)&&s(_t));It&&Mt&&Tt.selection&&Tt.selection.selectionDefs&&!Wt.selectionDefs?(Wt.selectionDefs=Tt.selection.selectionDefs,Wt.mergedPolygons=Tt.selection.mergedPolygons):(!Mt||!Tt.selection)&&rt(Wt),It||(v(Bt),$t._lastSelectedSubplot=Tt.id)}function st(ee){return ee._fullLayout._activeShapeIndex>=0}function ot(ee){return ee._fullLayout._activeSelectionIndex>=0}function rt(ee,Bt){var Wt=ee.dragmode,$t=ee.plotinfo,Tt=ee.gd;st(Tt)&&Tt._fullLayout._deactivateShape(Tt),ot(Tt)&&Tt._fullLayout._deactivateSelection(Tt);var _t=Tt._fullLayout._zoomlayer,It=a(Wt),Mt=n(Wt);if(It||Mt){var Ct=_t.selectAll(".select-outline-"+$t.id);if(Ct&&Tt._fullLayout._outlining){var Ut;It&&(Ut=b(Ct,ee)),Ut&&t.call("_guiRelayout",Tt,{shapes:Ut});var Zt;Mt&&!K(ee)&&(Zt=M(Ct,ee)),Zt&&(Tt._fullLayout._noEmitSelectedAtStart=!0,t.call("_guiRelayout",Tt,{selections:Zt}).then(function(){Bt&&g(Tt)})),Tt._fullLayout._outlining=!1}}$t.selection={},$t.selection.selectionDefs=ee.selectionDefs=[],$t.selection.mergedPolygons=ee.mergedPolygons=[]}function X(ee){return ee._id}function ut(ee,Bt,Wt,$t){if(!ee.calcdata)return[];var Tt=[],_t=Bt.map(X),It=Wt.map(X),Mt,Ct,Ut;for(Ut=0;Ut<ee.calcdata.length;Ut++)if(Mt=ee.calcdata[Ut],Ct=Mt[0].trace,!(Ct.visible!==!0||!Ct._module||!Ct._module.selectPoints))if(K({subplot:$t})&&(Ct.subplot===$t||Ct.geo===$t))Tt.push(lt(Ct._module,Mt,Bt[0],Wt[0]));else if(Ct.type==="splom"){if(Ct._xaxes[_t[0]]&&Ct._yaxes[It[0]]){var Zt=lt(Ct._module,Mt,Bt[0],Wt[0]);Zt.scene=ee._fullLayout._splomScenes[Ct.uid],Tt.push(Zt)}}else if(Ct.type==="sankey"){var Me=lt(Ct._module,Mt,Bt[0],Wt[0]);Tt.push(Me)}else{if(_t.indexOf(Ct.xaxis)===-1&&(!Ct._xA||!Ct._xA.overlaying)||It.indexOf(Ct.yaxis)===-1&&(!Ct._yA||!Ct._yA.overlaying))continue;Tt.push(lt(Ct._module,Mt,C(ee,Ct.xaxis),C(ee,Ct.yaxis)))}return Tt}function lt(ee,Bt,Wt,$t){return{_module:ee,cd:Bt,xaxis:Wt,yaxis:$t}}function yt(ee){return ee&&Array.isArray(ee)&&ee[0].hoverOnBox!==!0}function kt(ee,Bt){var Wt=ee[0],$t=-1,Tt=[],_t,It;for(It=0;It<Bt.length;It++)if(_t=Bt[It],Wt.fullData._expandedIndex===_t.cd[0].trace._expandedIndex){if(Wt.hoverOnBox===!0)break;Wt.pointNumber===void 0?Wt.binNumber!==void 0&&($t=Wt.binNumber,Tt=Wt.pointNumbers):$t=Wt.pointNumber;break}return{pointNumber:$t,pointNumbers:Tt,searchInfo:_t}}function Lt(ee){var Bt=ee.searchInfo.cd[0].trace,Wt=ee.pointNumber,$t=ee.pointNumbers,Tt=$t.length>0?$t[0]:Wt;return Bt.selectedpoints?Bt.selectedpoints.indexOf(Tt)>-1:!1}function St(ee,Bt){var Wt=[],$t,Tt,_t,It;for(It=0;It<ee.length;It++)$t=ee[It],$t.cd[0].trace.selectedpoints&&$t.cd[0].trace.selectedpoints.length>0&&Wt.push($t);if(Wt.length===1&&(_t=Wt[0]===Bt.searchInfo,_t&&(Tt=Bt.searchInfo.cd[0].trace,Tt.selectedpoints.length===Bt.pointNumbers.length))){for(It=0;It<Bt.pointNumbers.length;It++)if(Tt.selectedpoints.indexOf(Bt.pointNumbers[It])<0)return!1;return!0}return!1}function Ot(ee){var Bt=0,Wt,$t,Tt;for(Tt=0;Tt<ee.length;Tt++)if(Wt=ee[Tt],$t=Wt.cd[0].trace,$t.selectedpoints&&($t.selectedpoints.length>1||(Bt+=$t.selectedpoints.length,Bt>1)))return!1;return Bt===1}function Ht(ee,Bt,Wt){var $t;for($t=0;$t<Bt.length;$t++){var Tt=Bt[$t].cd[0].trace._fullInput,_t=ee._fullLayout._tracePreGUI[Tt.uid]||{};_t.selectedpoints===void 0&&(_t.selectedpoints=Tt._input.selectedpoints||null)}var It;if(Wt){var Mt=Wt.points||[];for($t=0;$t<Bt.length;$t++)It=Bt[$t].cd[0].trace,It._input.selectedpoints=It._fullInput.selectedpoints=[],It._fullInput!==It&&(It.selectedpoints=[]);for(var Ct=0;Ct<Mt.length;Ct++){var Ut=Mt[Ct],Zt=Ut.data,Me=Ut.fullData,Be=Ut.pointIndex,ge=Ut.pointIndices;ge?([].push.apply(Zt.selectedpoints,ge),It._fullInput!==It&&[].push.apply(Me.selectedpoints,ge)):(Zt.selectedpoints.push(Be),It._fullInput!==It&&Me.selectedpoints.push(Be))}}else for($t=0;$t<Bt.length;$t++)It=Bt[$t].cd[0].trace,delete It.selectedpoints,delete It._input.selectedpoints,It._fullInput!==It&&delete It._fullInput.selectedpoints;Kt(ee,Bt)}function Kt(ee,Bt){for(var Wt=!1,$t=0;$t<Bt.length;$t++){var Tt=Bt[$t],_t=Tt.cd;t.traceIs(_t[0].trace,"regl")&&(Wt=!0);var It=Tt._module,Mt=It.styleOnSelect||It.style;Mt&&(Mt(ee,_t,_t[0].node3),_t[0].nodeRangePlot3&&Mt(ee,_t,_t[0].nodeRangePlot3))}Wt&&(_(ee),F(ee))}function Gt(ee,Bt,Wt){for(var $t=(Wt?S.difference:S.union)({regions:ee},{regions:[Bt]}).regions.reverse(),Tt=0;Tt<$t.length;Tt++){var _t=$t[Tt];_t.subtract=ke(_t,$t.slice(0,Tt))}return $t}function Et(ee,Bt){if(Array.isArray(ee))for(var Wt=Bt.cd,$t=Bt.cd[0].trace,Tt=0;Tt<ee.length;Tt++)ee[Tt]=c(ee[Tt],$t,Wt);return ee}function At(ee,Bt){for(var Wt=[],$t=0;$t<ee.length;$t++){Wt[$t]=[];for(var Tt=0;Tt<ee[$t].length;Tt++){Wt[$t][Tt]=[],Wt[$t][Tt][0]=Tt?"L":"M";for(var _t=0;_t<ee[$t][Tt].length;_t++)Wt[$t][Tt].push(ee[$t][Tt][_t])}Bt||Wt[$t].push(["Z",Wt[$t][0][1],Wt[$t][0][2]])}return Wt}function qt(ee,Bt){for(var Wt=[],$t,Tt=[],_t,It=0;It<Bt.length;It++){var Mt=Bt[It];_t=Mt._module.selectPoints(Mt,ee),Tt.push(_t),$t=Et(_t,Mt),Wt=Wt.concat($t)}return Wt}function jt(ee,Bt,Wt,$t,Tt){var _t=!!$t,It,Mt,Ct;Tt&&(It=Tt.plotinfo,Mt=Tt.xaxes[0]._id,Ct=Tt.yaxes[0]._id);var Ut=[],Zt=[],Me=ve(ee),Be=ee._fullLayout;if(It){var ge=Be._zoomlayer,Ee=Be.dragmode,Ne=a(Ee),sr=n(Ee);if(Ne||sr){var _e=C(ee,Mt,"x"),He=C(ee,Ct,"y");if(_e&&He){var or=ge.selectAll(".select-outline-"+It.id);if(or&&ee._fullLayout._outlining&&or.length){for(var Pr=d(or[0][0].getAttribute("d"),ee,It),br=[],ue=0;ue<Pr.length;ue++){for(var we=Pr[ue],Ce=[],Ge=0;Ge<we.length;Ge++)Ce.push([Pe(_e,we[Ge][1]),Pe(He,we[Ge][2])]);Ce.xref=Mt,Ce.yref=Ct,Ce.subtract=ke(Ce,br),br.push(Ce)}Me=Me.concat(br)}}}}var Ke=Mt&&Ct?[Mt+Ct]:Be._subplots.cartesian;de(ee);for(var ar={},We=0;We<Ke.length;We++){var $e=Ke[We],yr=$e.indexOf("y"),Cr=$e.slice(0,yr),Sr=$e.slice(yr),Dr=Mt&&Ct?Wt:void 0;if(Dr=Le(Me,Cr,Sr,Dr),Dr){var Or=$t;if(!_t){var ei=C(ee,Cr,"x"),Nr=C(ee,Sr,"y");Or=ut(ee,[ei],[Nr],$e);for(var re=0;re<Or.length;re++){var ae=Or[re],wr=ae.cd[0],_r=wr.trace;if(ae._module.name==="scattergl"&&!wr.t.xpx){var lr=_r.x,qe=_r.y,pr=_r._length;wr.t.xpx=[],wr.t.ypx=[];for(var xr=0;xr<pr;xr++)wr.t.xpx[xr]=ei.c2p(lr[xr]),wr.t.ypx[xr]=Nr.c2p(qe[xr])}ae._module.name==="splom"&&(ar[_r.uid]||(ar[_r.uid]=!0))}}var fr=qt(Dr,Or);Ut=Ut.concat(fr),Zt=Zt.concat(Or)}}var ur={points:Ut};Ht(ee,Zt,ur);var Br=Be.clickmode.indexOf("event")>-1&&Bt;if(!It&&Bt){var $r=ve(ee,!0);if($r.length){var Jr=$r[0].xref,Zi=$r[0].yref;if(Jr&&Zi){var mi=me($r);je([C(ee,Jr,"x"),C(ee,Zi,"y")])(ur,mi)}}ee._fullLayout._noEmitSelectedAtStart?ee._fullLayout._noEmitSelectedAtStart=!1:Br&&Qt(ee,ur),Be._reselect=!1}if(!It&&Be._deselect){var Ei=Be._deselect;Mt=Ei.xref,Ct=Ei.yref,Xt(Mt,Ct,Zt)||ye(ee,Mt,Ct,$t),Br&&(ur.points.length?Qt(ee,ur):te(ee)),Be._deselect=!1}return{eventData:ur,selectionTesters:Wt}}function de(ee){var Bt=ee.calcdata;if(Bt)for(var Wt=0;Wt<Bt.length;Wt++){var $t=Bt[Wt][0].trace,Tt=ee._fullLayout._splomScenes;if(Tt){var _t=Tt[$t.uid];_t&&(_t.selectBatch=[])}}}function Xt(ee,Bt,Wt){for(var $t=0;$t<Wt.length;$t++){var Tt=Wt[$t];if(Tt.xaxis&&Tt.xaxis._id===ee&&Tt.yaxis&&Tt.yaxis._id===Bt)return!0}return!1}function ye(ee,Bt,Wt,$t){$t=ut(ee,[C(ee,Bt,"x")],[C(ee,Wt,"y")],Bt+Wt);for(var Tt=0;Tt<$t.length;Tt++){var _t=$t[Tt];_t._module.selectPoints(_t,!1)}Ht(ee,$t)}function Le(ee,Bt,Wt,$t){for(var Tt,_t=0;_t<ee.length;_t++){var It=ee[_t];if(!(Bt!==It.xref||Wt!==It.yref))if(Tt){var Mt=!!It.subtract;Tt=Gt(Tt,It,Mt),$t=Q(Tt)}else Tt=[It],$t=U(It)}return $t}function ve(ee,Bt){for(var Wt=[],$t=ee._fullLayout,Tt=$t.selections,_t=Tt.length,It=0;It<_t;It++)if(!(Bt&&It!==$t._activeSelectionIndex)){var Mt=Tt[It];if(Mt){var Ct=Mt.xref,Ut=Mt.yref,Zt=C(ee,Ct,"x"),Me=C(ee,Ut,"y"),Be,ge,Ee,Ne,sr;if(Mt.type==="rect"){sr=[];var _e=Pe(Zt,Mt.x0),He=Pe(Zt,Mt.x1),or=Pe(Me,Mt.y0),Pr=Pe(Me,Mt.y1);sr=[[_e,or],[_e,Pr],[He,Pr],[He,or]],Be=Math.min(_e,He),ge=Math.max(_e,He),Ee=Math.min(or,Pr),Ne=Math.max(or,Pr),sr.xmin=Be,sr.xmax=ge,sr.ymin=Ee,sr.ymax=Ne,sr.xref=Ct,sr.yref=Ut,sr.subtract=!1,sr.isRect=!0,Wt.push(sr)}else if(Mt.type==="path")for(var br=Mt.path.split("Z"),ue=[],we=0;we<br.length;we++){var Ce=br[we];if(Ce){Ce+="Z";var Ge=m.extractPathCoords(Ce,x.paramIsX,"raw"),Ke=m.extractPathCoords(Ce,x.paramIsY,"raw");Be=1/0,ge=-1/0,Ee=1/0,Ne=-1/0,sr=[];for(var ar=0;ar<Ge.length;ar++){var We=Pe(Zt,Ge[ar]),$e=Pe(Me,Ke[ar]);sr.push([We,$e]),Be=Math.min(We,Be),ge=Math.max(We,ge),Ee=Math.min($e,Ee),Ne=Math.max($e,Ne)}sr.xmin=Be,sr.xmax=ge,sr.ymin=Ee,sr.ymax=Ne,sr.xref=Ct,sr.yref=Ut,sr.subtract=ke(sr,ue),ue.push(sr),Wt.push(sr)}}}}return Wt}function ke(ee,Bt){for(var Wt=!1,$t=0;$t<Bt.length;$t++)for(var Tt=Bt[$t],_t=0;_t<ee.length;_t++)if(A(ee[_t],Tt)){Wt=!Wt;break}return Wt}function Pe(ee,Bt){return ee.type==="date"&&(Bt=Bt.replace("_"," ")),ee.type==="log"?ee.c2p(Bt):ee.r2p(Bt,null,ee.calendar)}function me(ee){for(var Bt=ee.length,Wt=[],$t=0;$t<Bt;$t++){var Tt=ee[$t];Wt=Wt.concat(Tt),Wt=Wt.concat([Tt[0]])}return be(Wt)}function be(ee){return ee.isRect=ee.length===5&&ee[0][0]===ee[4][0]&&ee[0][1]===ee[4][1]&&ee[0][0]===ee[1][0]&&ee[2][0]===ee[3][0]&&ee[0][1]===ee[3][1]&&ee[1][1]===ee[2][1]||ee[0][1]===ee[1][1]&&ee[2][1]===ee[3][1]&&ee[0][0]===ee[3][0]&&ee[1][0]===ee[2][0],ee.isRect&&(ee.xmin=Math.min(ee[0][0],ee[2][0]),ee.xmax=Math.max(ee[0][0],ee[2][0]),ee.ymin=Math.min(ee[0][1],ee[2][1]),ee.ymax=Math.max(ee[0][1],ee[2][1])),ee}function je(ee){return function(Bt,Wt){for(var $t,Tt,_t=0;_t<ee.length;_t++){var It=ee[_t],Mt=It._id,Ct=Mt.charAt(0);if(Wt.isRect){$t||($t={});var Ut=Wt[Ct+"min"],Zt=Wt[Ct+"max"];Ut!==void 0&&Zt!==void 0&&($t[Mt]=[N(It,Ut),N(It,Zt)].sort(L))}else Tt||(Tt={}),Tt[Mt]=Wt.map(V(It))}$t&&(Bt.range=$t),Tt&&(Bt.lassoPoints=Tt)}}function nr(ee){return ee.plotinfo.fillRangeItems||je(ee.xaxes.concat(ee.yaxes))}function Vt(ee,Bt){ee.emit("plotly_selecting",Bt)}function Qt(ee,Bt){Bt&&(Bt.selections=(ee.layout||{}).selections||[]),ee.emit("plotly_selected",Bt)}function te(ee){ee.emit("plotly_deselect",null)}tt.exports={reselect:jt,prepSelect:nt,clearOutline:v,clearSelectionsCache:rt,selectOnClick:ft}}),43144:(function(tt,G,e){var S=e(50222),A=e(80337),t=e(36640).line,E=e(94850).T,w=e(93049).extendFlat,p=e(78032).templatedArray;e(35081);var c=e(9829),i=e(3208).LF,r=e(41235);tt.exports=p("shape",{visible:w({},c.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:w({},c.legend,{editType:"calc+arraydraw"}),legendgroup:w({},c.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:w({},c.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:A({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:w({},c.legendrank,{editType:"calc+arraydraw"}),legendwidth:w({},c.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:w({},S.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:w({},S.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:w({},t.color,{editType:"arraydraw"}),width:w({},t.width,{editType:"calc+arraydraw"}),dash:w({},E,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:i({},{keys:Object.keys(r)}),font:A({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})}),44959:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(2956),E=e(49728);tt.exports=function(r){var o=r._fullLayout,a=S.filterVisible(o.shapes);if(!(!a.length||!r._fullData.length))for(var s=0;s<a.length;s++){var n=a[s];n._extremes={};var m,x,f=A.getRefType(n.xref),v=A.getRefType(n.yref);n.xref!=="paper"&&f!=="domain"&&(m=A.getFromId(r,n.xref),x=i(m,n,t.paramIsX),x&&(n._extremes[m._id]=A.findExtremes(m,x,w(n)))),n.yref!=="paper"&&v!=="domain"&&(m=A.getFromId(r,n.yref),x=i(m,n,t.paramIsY),x&&(n._extremes[m._id]=A.findExtremes(m,x,p(n))))}};function w(r){return c(r.line.width,r.xsizemode,r.x0,r.x1,r.path,!1)}function p(r){return c(r.line.width,r.ysizemode,r.y0,r.y1,r.path,!0)}function c(r,o,a,s,n,m){var x=r/2,f=m;if(o==="pixel"){var v=n?E.extractPathCoords(n,m?t.paramIsY:t.paramIsX):[a,s],l=S.aggNums(Math.max,null,v),h=S.aggNums(Math.min,null,v),d=h<0?Math.abs(h)+x:x,b=l>0?l+x:x;return{ppad:x,ppadplus:f?d:b,ppadminus:f?b:d}}else return{ppad:x}}function i(r,o,a){var s=r._id.charAt(0)==="x"?"x":"y",n=r.type==="category"||r.type==="multicategory",m,x,f=0,v=0,l=n?r.r2c:r.d2c;if(o[s+"sizemode"]==="scaled"?(m=o[s+"0"],x=o[s+"1"],n&&(f=o[s+"0shift"],v=o[s+"1shift"])):(m=o[s+"anchor"],x=o[s+"anchor"]),m!==void 0)return[l(m)+f,l(x)+v];if(o.path){var h=1/0,d=-1/0,b=o.path.match(t.segmentRE),M,g,k,L,u;for(r.type==="date"&&(l=E.decodeDate(l)),M=0;M<b.length;M++)g=b[M],k=a[g.charAt(0)].drawn,k!==void 0&&(L=b[M].substr(1).match(t.paramRE),!(!L||L.length<k)&&(u=l(L[k]),u<h&&(h=u),u>d&&(d=u)));if(d>=h)return[h,d]}}}),2956:(function(tt){tt.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}}),74367:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(59008),E=e(43144),w=e(49728);tt.exports=function(i,r){t(i,r,{name:"shapes",handleItemDefaults:c})};function p(i,r){return i?"bottom":r.indexOf("top")===-1?r.indexOf("bottom")===-1?"middle":"bottom":"top"}function c(i,r,o){function a(V,Y){return S.coerce(i,r,E,V,Y)}if(r._isShape=!0,a("visible")){a("showlegend")&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),S.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var s=a("type",a("path")?"path":"rect"),n=s!=="path";n&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule"),a("line.width")&&(a("line.color"),a("line.dash"));for(var m=a("xsizemode"),x=a("ysizemode"),f=["x","y"],v=0;v<2;v++){var l=f[v],h=l+"anchor",d=l==="x"?m:x,b={_fullLayout:o},M,g,k,L=A.coerceRef(i,r,b,l,void 0,"paper");if(A.getRefType(L)==="range"?(M=A.getFromId(b,L),M._shapeIndices.push(r._index),k=w.rangeToShapePosition(M),g=w.shapePositionToRange(M),(M.type==="category"||M.type==="multicategory")&&(a(l+"0shift"),a(l+"1shift"))):g=k=S.identity,n){var u=.25,T=.75,C=l+"0",_=l+"1",F=i[C],O=i[_];i[C]=g(i[C],!0),i[_]=g(i[_],!0),d==="pixel"?(a(C,0),a(_,10)):(A.coercePosition(r,b,a,L,C,u),A.coercePosition(r,b,a,L,_,T)),r[C]=k(r[C]),r[_]=k(r[_]),i[C]=F,i[_]=O}if(d==="pixel"){var j=i[h];i[h]=g(i[h],!0),A.coercePosition(r,b,a,L,h,.25),r[h]=k(r[h]),i[h]=j}}n&&S.noneOrAll(i,r,["x0","x1","y0","y1"]);var B=s==="line",U,P;if(n&&(U=a("label.texttemplate")),U||(P=a("label.text")),P||U){a("label.textangle");var N=a("label.textposition",B?"middle":"middle center");a("label.xanchor"),a("label.yanchor",p(B,N)),a("label.padding"),S.coerceFont(a,"label.font",o.font)}}}}),44433:(function(tt,G,e){var S=e(34809),A=e(29714),t=e(30635),E=e(62203),w=e(81055).readPaths,p=e(49728),c=p.getPathString,i=e(41235),r=e(4530).FROM_TL;tt.exports=function(s,n,m,x){if(x.selectAll(".shape-label").remove(),m.label.text||m.label.texttemplate){var f;if(m.label.texttemplate){var v={};if(m.type!=="path"){var l=A.getFromId(s,m.xref),h=A.getFromId(s,m.yref);for(var d in i){var b=i[d](m,l,h);b!==void 0&&(v[d]=b)}}f=S.texttemplateStringForShapes(m.label.texttemplate,{},s._fullLayout._d3locale,v)}else f=m.label.text;var M={"data-index":n},g=m.label.font,k=x.append("g").attr(M).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(f),L,u,T,C;if(m.path){var _=w(c(s,m),s);L=1/0,T=1/0,u=-1/0,C=-1/0;for(var F=0;F<_.length;F++)for(var O=0;O<_[F].length;O++)for(var j=_[F][O],B=1;B<j.length;B+=2){var U=j[B],P=j[B+1];L=Math.min(L,U),u=Math.max(u,U),T=Math.min(T,P),C=Math.max(C,P)}}else{var N=A.getFromId(s,m.xref),V=m.x0shift,Y=m.x1shift,K=A.getRefType(m.xref),nt=A.getFromId(s,m.yref),ft=m.y0shift,ct=m.y1shift,J=A.getRefType(m.yref),et=function(lt,yt){return p.getDataToPixel(s,N,yt,!1,K)(lt)},Q=function(lt,yt){return p.getDataToPixel(s,nt,yt,!0,J)(lt)};L=et(m.x0,V),u=et(m.x1,Y),T=Q(m.y0,ft),C=Q(m.y1,ct)}var Z=m.label.textangle;Z==="auto"&&(Z=m.type==="line"?o(L,T,u,C):0),k.call(function(lt){return lt.call(E.font,g).attr({}),t.convertToTspans(lt,s),lt});var st=E.bBox(k.node()),ot=a(L,T,u,C,m,Z,st),rt=ot.textx,X=ot.texty,ut=ot.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ut],y:X,x:rt,transform:"rotate("+Z+","+rt+","+X+")"}).call(t.positionText,rt,X)}};function o(s,n,m,x){var f,v=Math.abs(m-s);return f=m>=s?n-x:x-n,-180/Math.PI*Math.atan2(f,v)}function a(s,n,m,x,f,v,l){var h=f.label.textposition,d=f.label.textangle,b=f.label.padding,M=f.type,g=Math.PI/180*v,k=Math.sin(g),L=Math.cos(g),u=f.label.xanchor,T=f.label.yanchor,C,_,F,O;if(M==="line"){h==="start"?(C=s,_=n):h==="end"?(C=m,_=x):(C=(s+m)/2,_=(n+x)/2),u==="auto"&&(u=h==="start"?d==="auto"?m>s?"left":m<s?"right":"center":m>s?"right":m<s?"left":"center":h==="end"?d==="auto"?m>s?"right":m<s?"left":"center":m>s?"left":m<s?"right":"center":"center");var j={left:1,center:0,right:-1},B={bottom:-1,middle:0,top:1};if(d==="auto"){var U=B[T];F=-b*k*U,O=b*L*U}else{var P=j[u],N=B[T];F=b*P,O=b*N}C+=F,_+=O}else F=b+3,h.indexOf("right")===-1?h.indexOf("left")===-1?(C=(s+m)/2,u==="auto"&&(u="center")):(C=Math.min(s,m)+F,u==="auto"&&(u="left")):(C=Math.max(s,m)-F,u==="auto"&&(u="right")),_=h.indexOf("top")===-1?h.indexOf("bottom")===-1?(n+x)/2:Math.max(n,x):Math.min(n,x),O=b,T==="bottom"?_-=O:T==="top"&&(_+=O);var V=r[T],Y=f.label.font.size,K=l.height,nt=(K*V-Y)*k,ft=-(K*V-Y)*L;return{textx:C+nt,texty:_+ft,xanchor:u}}}),561:(function(tt,G,e){var S=e(34809).strTranslate,A=e(14751),t=e(70414),E=t.drawMode,w=t.selectMode,p=e(33626),c=e(78766),i=e(93391),r=i.i000,o=i.i090,a=i.i180,s=i.i270,n=e(78534).clearOutlineControllers,m=e(81055),x=m.pointsOnRectangle,f=m.pointsOnEllipse,v=m.writePaths,l=e(87562).newShapes,h=e(87562).createShapeObj,d=e(51817),b=e(44433);tt.exports=function L(u,T,C,_){_||(_=0);var F=C.gd;function O(){L(u,T,C,_++),(f(u[0])||C.hasText)&&j({redrawing:!0})}function j(Lt){var St={};C.isActiveShape!==void 0&&(C.isActiveShape=!1,St=l(T,C)),C.isActiveSelection!==void 0&&(C.isActiveSelection=!1,St=d(T,C),F._fullLayout._reselect=!0),Object.keys(St).length&&p.call((Lt||{}).redrawing?"relayout":"_guiRelayout",F,St)}var B=F._fullLayout._zoomlayer,U=C.dragmode,P=E(U),N=w(U);(P||N)&&(F._fullLayout._outlining=!0),n(F),T.attr("d",v(u));var V,Y,K,nt,ft;if(!_&&(C.isActiveShape||C.isActiveSelection)&&(ft=M([],u),ot(B.append("g").attr("class","outline-controllers")),kt()),P&&C.hasText){var ct=B.select(".label-temp");b(F,"label-temp",h(T,C,C.dragmode),ct)}function J(Lt){K=+Lt.srcElement.getAttribute("data-i"),nt=+Lt.srcElement.getAttribute("data-j"),V[K][nt].moveFn=et}function et(Lt,St){if(u.length){var Ot=ft[K][nt][1],Ht=ft[K][nt][2],Kt=u[K],Gt=Kt.length;if(x(Kt)){var Et=Lt,At=St;C.isActiveSelection&&(g(Kt,nt)[1]===Kt[nt][1]?At=0:Et=0);for(var qt=0;qt<Gt;qt++)if(qt!==nt){var jt=Kt[qt];jt[1]===Kt[nt][1]&&(jt[1]=Ot+Et),jt[2]===Kt[nt][2]&&(jt[2]=Ht+At)}if(Kt[nt][1]=Ot+Et,Kt[nt][2]=Ht+At,!x(Kt))for(var de=0;de<Gt;de++)for(var Xt=0;Xt<Kt[de].length;Xt++)Kt[de][Xt]=ft[K][de][Xt]}else Kt[nt][1]=Ot+Lt,Kt[nt][2]=Ht+St;O()}}function Q(){j()}function Z(){if(u.length&&u[K]&&u[K].length){for(var Lt=[],St=0;St<u[K].length;St++)St!==nt&&Lt.push(u[K][St]);Lt.length>1&&!(Lt.length===2&&Lt[1][0]==="Z")&&(nt===0&&(Lt[0][0]="M"),u[K]=Lt,O(),j())}}function st(Lt,St){if(Lt===2){K=+St.srcElement.getAttribute("data-i"),nt=+St.srcElement.getAttribute("data-j");var Ot=u[K];!x(Ot)&&!f(Ot)&&Z()}}function ot(Lt){V=[];for(var St=0;St<u.length;St++){var Ot=u[St],Ht=x(Ot),Kt=!Ht&&f(Ot);V[St]=[];for(var Gt=Ot.length,Et=0;Et<Gt;Et++)if(Ot[Et][0]!=="Z"&&!(Kt&&Et!==r&&Et!==o&&Et!==a&&Et!==s)){var At=Ht&&C.isActiveSelection,qt;At&&(qt=g(Ot,Et));var jt=Ot[Et][1],de=Ot[Et][2],Xt=Lt.append(At?"rect":"circle").attr("data-i",St).attr("data-j",Et).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(At){var ye=qt[1]-jt,Le=qt[2]-de,ve=Le?5:Math.max(Math.min(25,Math.abs(ye)-5),5),ke=ye?5:Math.max(Math.min(25,Math.abs(Le)-5),5);Xt.classed(Le?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",ve).attr("height",ke).attr("x",jt-ve/2).attr("y",de-ke/2).attr("transform",S(ye/2,Le/2))}else Xt.classed("cursor-grab",!0).attr("r",5).attr("cx",jt).attr("cy",de);V[St][Et]={element:Xt.node(),gd:F,prepFn:J,doneFn:Q,clickFn:st},A.init(V[St][Et])}}}function rt(Lt,St){if(u.length)for(var Ot=0;Ot<u.length;Ot++)for(var Ht=0;Ht<u[Ot].length;Ht++)for(var Kt=0;Kt+2<u[Ot][Ht].length;Kt+=2)u[Ot][Ht][Kt+1]=ft[Ot][Ht][Kt+1]+Lt,u[Ot][Ht][Kt+2]=ft[Ot][Ht][Kt+2]+St}function X(Lt,St){rt(Lt,St),O()}function ut(Lt){K=+Lt.srcElement.getAttribute("data-i"),K||(K=0),Y[K].moveFn=X}function lt(){j()}function yt(Lt){Lt===2&&k(F)}function kt(){if(Y=[],u.length){var Lt=0;Y[Lt]={element:T[0][0],gd:F,prepFn:ut,doneFn:lt,clickFn:yt},A.init(Y[Lt])}}};function M(L,u){for(var T=0;T<u.length;T++){var C=u[T];L[T]=[];for(var _=0;_<C.length;_++){L[T][_]=[];for(var F=0;F<C[_].length;F++)L[T][_][F]=C[_][F]}}return L}function g(L,u){var T=L[u][1],C=L[u][2],_=L.length,F=(u+1)%_,O=L[F][1],j=L[F][2];return O===T&&j===C&&(F=(u+2)%_,O=L[F][1],j=L[F][2]),[F,O,j]}function k(L){if(w(L._fullLayout.dragmode)){n(L);var u=L._fullLayout._activeSelectionIndex,T=(L.layout||{}).selections||[];if(u<T.length){for(var C=[],_=0;_<T.length;_++)_!==u&&C.push(T[_]);delete L._fullLayout._activeSelectionIndex;var F=L._fullLayout.selections[u];L._fullLayout._deselect={xref:F.xref,yref:F.yref},p.call("_guiRelayout",L,{selections:C})}}}}),28231:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(34809),E=e(29714),w=e(81055).readPaths,p=e(561),c=e(44433),i=e(78534).clearOutlineControllers,r=e(78766),o=e(62203),a=e(78032).arrayEditor,s=e(14751),n=e(27983),m=e(2956),x=e(49728),f=x.getPathString;tt.exports={draw:v,drawOne:d,eraseActiveShape:u,drawLabel:c};function v(T){var C=T._fullLayout;for(var _ in C._shapeUpperLayer.selectAll("path").remove(),C._shapeLowerLayer.selectAll("path").remove(),C._shapeUpperLayer.selectAll("text").remove(),C._shapeLowerLayer.selectAll("text").remove(),C._plots){var F=C._plots[_].shapelayer;F&&(F.selectAll("path").remove(),F.selectAll("text").remove())}for(var O=0;O<C.shapes.length;O++)C.shapes[O].visible===!0&&d(T,O)}function l(T){return!!T._fullLayout._outlining}function h(T){return!T._context.edits.shapePosition}function d(T,C){T._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+C+'"]').remove();var _=x.makeShapesOptionsAndPlotinfo(T,C),F=_.options,O=_.plotinfo;if(!F._input||F.visible!==!0)return;F.layer==="above"?j(T._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?j(T._fullLayout._shapeLowerLayer):F.layer==="between"?j(O.shapelayerBetween):O._hadPlotinfo?j((O.mainplotinfo||O).shapelayer):j(T._fullLayout._shapeLowerLayer);function j(B){var U=f(T,F),P={"data-index":C,"fill-rule":F.fillrule,d:U},N=F.opacity,V=F.fillcolor,Y=F.line.width?F.line.color:"rgba(0,0,0,0)",K=F.line.width,nt=F.line.dash;!K&&F.editable===!0&&(K=5,nt="solid");var ft=U[U.length-1]!=="Z",ct=h(T)&&F.editable&&T._fullLayout._activeShapeIndex===C;ct&&(V=ft?"rgba(0,0,0,0)":T._fullLayout.activeshape.fillcolor,N=T._fullLayout.activeshape.opacity);var J=B.append("g").classed("shape-group",!0).attr({"data-index":C}),et=J.append("path").attr(P).style("opacity",N).call(r.stroke,Y).call(r.fill,V).call(o.dashLine,nt,K);b(J,T,F),c(T,C,F,J);var Q;if((ct||T._context.edits.shapePosition)&&(Q=a(T.layout,"shapes",F)),ct){et.style({cursor:"move"});var Z={element:et.node(),plotinfo:O,gd:T,editHelpers:Q,hasText:F.label.text||F.label.texttemplate,isActiveShape:!0};p(w(U,T),et,Z)}else T._context.edits.shapePosition?M(T,et,F,C,B,Q):F.editable===!0&&et.style("pointer-events",ft||r.opacity(V)*N<=.5?"stroke":"all");et.node().addEventListener("click",function(){return k(T,et)})}}function b(T,C,_){var F=(_.xref+_.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");o.setClipUrl(T,F?"clip"+C._fullLayout._uid+F:null,C)}function M(T,C,_,F,O,j){var B=10,U=10,P=_.xsizemode==="pixel",N=_.ysizemode==="pixel",V=_.type==="line",Y=_.type==="path",K=j.modifyItem,nt,ft,ct,J,et,Q,Z,st,ot,rt,X,ut,lt,yt,kt,Lt=S.select(C.node().parentNode),St=E.getFromId(T,_.xref),Ot=E.getRefType(_.xref),Ht=E.getFromId(T,_.yref),Kt=E.getRefType(_.yref),Gt=_.x0shift,Et=_.x1shift,At=_.y0shift,qt=_.y1shift,jt=function($t,Tt){return x.getDataToPixel(T,St,Tt,!1,Ot)($t)},de=function($t,Tt){return x.getDataToPixel(T,Ht,Tt,!0,Kt)($t)},Xt=x.getPixelToData(T,St,!1,Ot),ye=x.getPixelToData(T,Ht,!0,Kt),Le=Pe(),ve={element:Le.node(),gd:T,prepFn:je,doneFn:nr,clickFn:Vt},ke;s.init(ve),Le.node().onmousemove=be;function Pe(){return V?me():C}function me(){var $t=10,Tt=Math.max(_.line.width,$t),_t=O.append("g").attr("data-index",F).attr("drag-helper",!0);_t.append("path").attr("d",C.attr("d")).style({cursor:"move","stroke-width":Tt,"stroke-opacity":"0"});var It={"fill-opacity":"0"},Mt=Math.max(Tt/2,$t);return _t.append("circle").attr({"data-line-point":"start-point",cx:P?jt(_.xanchor)+_.x0:jt(_.x0,Gt),cy:N?de(_.yanchor)-_.y0:de(_.y0,At),r:Mt}).style(It).classed("cursor-grab",!0),_t.append("circle").attr({"data-line-point":"end-point",cx:P?jt(_.xanchor)+_.x1:jt(_.x1,Et),cy:N?de(_.yanchor)-_.y1:de(_.y1,qt),r:Mt}).style(It).classed("cursor-grab",!0),_t}function be($t){if(l(T)){ke=null;return}if(V)ke=$t.target.tagName==="path"?"move":$t.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Tt=ve.element.getBoundingClientRect(),_t=Tt.right-Tt.left,It=Tt.bottom-Tt.top,Mt=$t.clientX-Tt.left,Ct=$t.clientY-Tt.top,Ut=!Y&&_t>B&&It>U&&!$t.shiftKey?s.getCursor(Mt/_t,1-Ct/It):"move";n(C,Ut),ke=Ut.split("-")[0]}}function je($t){l(T)||(P&&(et=jt(_.xanchor)),N&&(Q=de(_.yanchor)),_.type==="path"?kt=_.path:(nt=P?_.x0:jt(_.x0),ft=N?_.y0:de(_.y0),ct=P?_.x1:jt(_.x1),J=N?_.y1:de(_.y1)),nt<ct?(ot=nt,lt="x0",rt=ct,yt="x1"):(ot=ct,lt="x1",rt=nt,yt="x0"),!N&&ft<J||N&&ft>J?(Z=ft,X="y0",st=J,ut="y1"):(Z=J,X="y1",st=ft,ut="y0"),be($t),ee(O,_),Wt(C,_,T),ve.moveFn=ke==="move"?Qt:te,ve.altKey=$t.altKey)}function nr(){l(T)||(n(C),Bt(O),b(C,T,_),A.call("_guiRelayout",T,j.getUpdateObj()))}function Vt(){l(T)||Bt(O)}function Qt($t,Tt){if(_.type==="path"){var _t=function(Ct){return Ct},It=_t,Mt=_t;P?K("xanchor",_.xanchor=Xt(et+$t)):(It=function(Ct){return Xt(jt(Ct)+$t)},St&&St.type==="date"&&(It=x.encodeDate(It))),N?K("yanchor",_.yanchor=ye(Q+Tt)):(Mt=function(Ct){return ye(de(Ct)+Tt)},Ht&&Ht.type==="date"&&(Mt=x.encodeDate(Mt))),K("path",_.path=g(kt,It,Mt))}else P?K("xanchor",_.xanchor=Xt(et+$t)):(K("x0",_.x0=Xt(nt+$t)),K("x1",_.x1=Xt(ct+$t))),N?K("yanchor",_.yanchor=ye(Q+Tt)):(K("y0",_.y0=ye(ft+Tt)),K("y1",_.y1=ye(J+Tt)));C.attr("d",f(T,_)),ee(O,_),c(T,F,_,Lt)}function te($t,Tt){if(Y){var _t=function(br){return br},It=_t,Mt=_t;P?K("xanchor",_.xanchor=Xt(et+$t)):(It=function(br){return Xt(jt(br)+$t)},St&&St.type==="date"&&(It=x.encodeDate(It))),N?K("yanchor",_.yanchor=ye(Q+Tt)):(Mt=function(br){return ye(de(br)+Tt)},Ht&&Ht.type==="date"&&(Mt=x.encodeDate(Mt))),K("path",_.path=g(kt,It,Mt))}else if(V){if(ke==="resize-over-start-point"){var Ct=nt+$t,Ut=N?ft-Tt:ft+Tt;K("x0",_.x0=P?Ct:Xt(Ct)),K("y0",_.y0=N?Ut:ye(Ut))}else if(ke==="resize-over-end-point"){var Zt=ct+$t,Me=N?J-Tt:J+Tt;K("x1",_.x1=P?Zt:Xt(Zt)),K("y1",_.y1=N?Me:ye(Me))}}else{var Be=function(br){return ke.indexOf(br)!==-1},ge=Be("n"),Ee=Be("s"),Ne=Be("w"),sr=Be("e"),_e=ge?Z+Tt:Z,He=Ee?st+Tt:st,or=Ne?ot+$t:ot,Pr=sr?rt+$t:rt;N&&(ge&&(_e=Z-Tt),Ee&&(He=st-Tt)),(!N&&He-_e>U||N&&_e-He>U)&&(K(X,_[X]=N?_e:ye(_e)),K(ut,_[ut]=N?He:ye(He))),Pr-or>B&&(K(lt,_[lt]=P?or:Xt(or)),K(yt,_[yt]=P?Pr:Xt(Pr)))}C.attr("d",f(T,_)),ee(O,_),c(T,F,_,Lt)}function ee($t,Tt){(P||N)&&_t();function _t(){var It=Tt.type!=="path",Mt=$t.selectAll(".visual-cue").data([0]),Ct=1;Mt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ct}).classed("visual-cue",!0);var Ut=jt(P?Tt.xanchor:t.midRange(It?[Tt.x0,Tt.x1]:x.extractPathCoords(Tt.path,m.paramIsX))),Zt=de(N?Tt.yanchor:t.midRange(It?[Tt.y0,Tt.y1]:x.extractPathCoords(Tt.path,m.paramIsY)));if(Ut=x.roundPositionForSharpStrokeRendering(Ut,Ct),Zt=x.roundPositionForSharpStrokeRendering(Zt,Ct),P&&N){var Me="M"+(Ut-1-Ct)+","+(Zt-1-Ct)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Mt.attr("d",Me)}else if(P){var Be="M"+(Ut-1-Ct)+","+(Zt-9-Ct)+"v18 h2 v-18 Z";Mt.attr("d",Be)}else{var ge="M"+(Ut-9-Ct)+","+(Zt-1-Ct)+"h18 v2 h-18 Z";Mt.attr("d",ge)}}}function Bt($t){$t.selectAll(".visual-cue").remove()}function Wt($t,Tt,_t){var It=Tt.xref,Mt=Tt.yref,Ct=E.getFromId(_t,It),Ut=E.getFromId(_t,Mt),Zt="";It!=="paper"&&!Ct.autorange&&(Zt+=It),Mt!=="paper"&&!Ut.autorange&&(Zt+=Mt),o.setClipUrl($t,Zt?"clip"+_t._fullLayout._uid+Zt:null,_t)}}function g(T,C,_){return T.replace(m.segmentRE,function(F){var O=0,j=F.charAt(0),B=m.paramIsX[j],U=m.paramIsY[j],P=m.numParams[j];return j+F.substr(1).replace(m.paramRE,function(N){return O>=P||(B[O]?N=C(N):U[O]&&(N=_(N)),O++),N})})}function k(T,C){if(h(T)){var _=+C.node().getAttribute("data-index");if(_>=0){if(_===T._fullLayout._activeShapeIndex){L(T);return}T._fullLayout._activeShapeIndex=_,T._fullLayout._deactivateShape=L,v(T)}}}function L(T){h(T)&&T._fullLayout._activeShapeIndex>=0&&(i(T),delete T._fullLayout._activeShapeIndex,v(T))}function u(T){if(h(T)){i(T);var C=T._fullLayout._activeShapeIndex,_=(T.layout||{}).shapes||[];if(C<_.length){for(var F=[],O=0;O<_.length;O++)O!==C&&F.push(_[O]);return delete T._fullLayout._activeShapeIndex,A.call("_guiRelayout",T,{shapes:F})}}}}),64101:(function(tt,G,e){var S=e(13582).overrideAll,A=e(9829),t=e(80337),E=e(94850).T,w=e(93049).extendFlat,p=e(3208).LF,c=e(41235);tt.exports=S({newshape:{visible:w({},A.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:w({},A.legend,{}),legendgroup:w({},A.legendgroup,{}),legendgrouptitle:{text:w({},A.legendgrouptitle.text,{}),font:t({})},legendrank:w({},A.legendrank,{}),legendwidth:w({},A.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:w({},E,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:w({},A.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:p({newshape:!0},{keys:Object.keys(c)}),font:t({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")}),93391:(function(tt){var G=32;tt.exports={CIRCLE_SIDES:G,i000:0,i090:G/4,i180:G/2,i270:G/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}}),85522:(function(tt,G,e){var S=e(78766),A=e(34809);function t(E,w){return E?"bottom":w.indexOf("top")===-1?w.indexOf("bottom")===-1?"middle":"bottom":"top"}tt.exports=function(E,w,p){if(p("newshape.visible"),p("newshape.name"),p("newshape.showlegend"),p("newshape.legend"),p("newshape.legendwidth"),p("newshape.legendgroup"),p("newshape.legendgrouptitle.text"),A.coerceFont(p,"newshape.legendgrouptitle.font"),p("newshape.legendrank"),p("newshape.drawdirection"),p("newshape.layer"),p("newshape.fillcolor"),p("newshape.fillrule"),p("newshape.opacity"),p("newshape.line.width")){var c=(E||{}).plot_bgcolor||"#FFF";p("newshape.line.color",S.contrast(c)),p("newshape.line.dash")}var i=E.dragmode==="drawline",r=p("newshape.label.text"),o=p("newshape.label.texttemplate");if(r||o){p("newshape.label.textangle");var a=p("newshape.label.textposition",i?"middle":"middle center");p("newshape.label.xanchor"),p("newshape.label.yanchor",t(i,a)),p("newshape.label.padding"),A.coerceFont(p,"newshape.label.font",w.font)}p("activeshape.fillcolor"),p("activeshape.opacity")}}),81055:(function(tt,G,e){var S=e(26953),A=e(93391),t=A.CIRCLE_SIDES,E=A.SQRT2,w=e(49801),p=w.p2r,c=w.r2p,i=[0,3,4,5,6,1,2],r=[0,3,4,1,2];G.writePaths=function(s){var n=s.length;if(!n)return"M0,0Z";for(var m="",x=0;x<n;x++)for(var f=s[x].length,v=0;v<f;v++){var l=s[x][v][0];if(l==="Z")m+="Z";else for(var h=s[x][v].length,d=0;d<h;d++){var b=d;l==="Q"||l==="S"?b=r[d]:l==="C"&&(b=i[d]),m+=s[x][v][b],d>0&&d<h-1&&(m+=",")}}return m},G.readPaths=function(s,n,m,x){var f=S(s),v=[],l=-1,h=function(){l++,v[l]=[]},d,b=0,M=0,g,k,L=function(){g=b,k=M};L();for(var u=0;u<f.length;u++){var T=[],C,_,F,O,j=f[u][0],B=j;switch(j){case"M":h(),b=+f[u][1],M=+f[u][2],T.push([B,b,M]),L();break;case"Q":case"S":C=+f[u][1],F=+f[u][2],b=+f[u][3],M=+f[u][4],T.push([B,b,M,C,F]);break;case"C":C=+f[u][1],F=+f[u][2],_=+f[u][3],O=+f[u][4],b=+f[u][5],M=+f[u][6],T.push([B,b,M,C,F,_,O]);break;case"T":case"L":b=+f[u][1],M=+f[u][2],T.push([B,b,M]);break;case"H":B="L",b=+f[u][1],T.push([B,b,M]);break;case"V":B="L",M=+f[u][1],T.push([B,b,M]);break;case"A":B="L";var U=+f[u][1],P=+f[u][2];+f[u][4]||(U=-U,P=-P);var N=b-U,V=M;for(d=1;d<=t/2;d++){var Y=2*Math.PI*d/t;T.push([B,N+U*Math.cos(Y),V+P*Math.sin(Y)])}break;case"Z":(b!==g||M!==k)&&(b=g,M=k,T.push([B,b,M]));break}for(var K=(m||{}).domain,nt=n._fullLayout._size,ft=m&&m.xsizemode==="pixel",ct=m&&m.ysizemode==="pixel",J=x===!1,et=0;et<T.length;et++){for(d=0;d+2<7;d+=2){var Q=T[et][d+1],Z=T[et][d+2];Q===void 0||Z===void 0||(b=Q,M=Z,m&&(m.xaxis&&m.xaxis.p2r?(J&&(Q-=m.xaxis._offset),Q=ft?c(m.xaxis,m.xanchor)+Q:p(m.xaxis,Q)):(J&&(Q-=nt.l),K?Q=K.x[0]+Q/nt.w:Q/=nt.w),m.yaxis&&m.yaxis.p2r?(J&&(Z-=m.yaxis._offset),Z=ct?c(m.yaxis,m.yanchor)-Z:p(m.yaxis,Z)):(J&&(Z-=nt.t),Z=K?K.y[1]-Z/nt.h:1-Z/nt.h)),T[et][d+1]=Q,T[et][d+2]=Z)}v[l].push(T[et].slice())}}return v};function o(s,n){return Math.abs(s-n)<=1e-6}function a(s,n){var m=n[1]-s[1],x=n[2]-s[2];return Math.sqrt(m*m+x*x)}G.pointsOnRectangle=function(s){if(s.length!==5)return!1;for(var n=1;n<3;n++)if(!o(s[0][n]-s[1][n],s[3][n]-s[2][n])||!o(s[0][n]-s[3][n],s[1][n]-s[2][n]))return!1;return!o(s[0][1],s[1][1])&&!o(s[0][1],s[3][1])?!1:!!(a(s[0],s[1])*a(s[0],s[3]))},G.pointsOnEllipse=function(s){var n=s.length;if(n!==t+1)return!1;n=t;for(var m=0;m<n;m++){var x=(n*2-m)%n,f=(n/2+x)%n,v=(n/2+m)%n;if(!o(a(s[m],s[v]),a(s[x],s[f])))return!1}return!0},G.handleEllipse=function(s,n,m){if(!s)return[n,m];var x=G.ellipseOver({x0:n[0],y0:n[1],x1:m[0],y1:m[1]}),f=(x.x1+x.x0)/2,v=(x.y1+x.y0)/2,l=(x.x1-x.x0)/2,h=(x.y1-x.y0)/2;l||(l=h/=E),h||(h=l/=E);for(var d=[],b=0;b<t;b++){var M=b*2*Math.PI/t;d.push([f+l*Math.cos(M),v+h*Math.sin(M)])}return d},G.ellipseOver=function(s){var n=s.x0,m=s.y0,x=s.x1,f=s.y1,v=x-n,l=f-m;n-=v,m-=l;var h=(n+x)/2,d=(m+f)/2,b=E;return v*=b,l*=b,{x0:h-v,y0:d-l,x1:h+v,y1:d+l}},G.fixDatesForPaths=function(s,n,m){var x=n.type==="date",f=m.type==="date";if(!x&&!f)return s;for(var v=0;v<s.length;v++)for(var l=0;l<s[v].length;l++)for(var h=0;h+2<s[v][l].length;h+=2)x&&(s[v][l][h+1]=s[v][l][h+1].replace(" ","_")),f&&(s[v][l][h+2]=s[v][l][h+2].replace(" ","_"));return s}}),87562:(function(tt,G,e){var S=e(70414),A=S.drawMode,t=S.openMode,E=e(93391),w=E.i000,p=E.i090,c=E.i180,i=E.i270,r=E.cos45,o=E.sin45,a=e(49801),s=a.p2r,n=a.r2p,m=e(78534).clearOutline,x=e(81055),f=x.readPaths,v=x.writePaths,l=x.ellipseOver,h=x.fixDatesForPaths;function d(M,g){if(M.length&&M[0][0]){var k=g.gd,L=g.isActiveShape,u=g.dragmode,T=(k.layout||{}).shapes||[];if(!A(u)&&L!==void 0){var C=k._fullLayout._activeShapeIndex;if(C<T.length)switch(k._fullLayout.shapes[C].type){case"rect":u="drawrect";break;case"circle":u="drawcircle";break;case"line":u="drawline";break;case"path":var _=T[C].path||"";u=_[_.length-1]==="Z"?"drawclosedpath":"drawopenpath";break}}var F=b(M,g,u);m(k);for(var O=g.editHelpers,j=(O||{}).modifyItem,B=[],U=0;U<T.length;U++){var P=k._fullLayout.shapes[U];if(B[U]=P._input,L!==void 0&&U===k._fullLayout._activeShapeIndex){var N=F;switch(P.type){case"line":case"rect":case"circle":j("x0",N.x0-(P.x0shift||0)),j("x1",N.x1-(P.x1shift||0)),j("y0",N.y0-(P.y0shift||0)),j("y1",N.y1-(P.y1shift||0));break;case"path":j("path",N.path);break}}}return L===void 0?(B.push(F),B):O?O.getUpdateObj():{}}}function b(M,g,k){var L=M[0][0],u=g.gd,T=L.getAttribute("d"),C=u._fullLayout.newshape,_=g.plotinfo,F=g.isActiveShape,O=_.xaxis,j=_.yaxis,B=!!_.domain||!_.xaxis,U=!!_.domain||!_.yaxis,P=t(k),N=f(T,u,_,F),V={editable:!0,visible:C.visible,name:C.name,showlegend:C.showlegend,legend:C.legend,legendwidth:C.legendwidth,legendgroup:C.legendgroup,legendgrouptitle:{text:C.legendgrouptitle.text,font:C.legendgrouptitle.font},legendrank:C.legendrank,label:C.label,xref:B?"paper":O._id,yref:U?"paper":j._id,layer:C.layer,opacity:C.opacity,line:{color:C.line.color,width:C.line.width,dash:C.line.dash}};P||(V.fillcolor=C.fillcolor,V.fillrule=C.fillrule);var Y;if(N.length===1&&(Y=N[0]),Y&&Y.length===5&&k==="drawrect")V.type="rect",V.x0=Y[0][1],V.y0=Y[0][2],V.x1=Y[2][1],V.y1=Y[2][2];else if(Y&&k==="drawline")V.type="line",V.x0=Y[0][1],V.y0=Y[0][2],V.x1=Y[1][1],V.y1=Y[1][2];else if(Y&&k==="drawcircle"){V.type="circle";var K=Y[w][1],nt=Y[p][1],ft=Y[c][1],ct=Y[i][1],J=Y[w][2],et=Y[p][2],Q=Y[c][2],Z=Y[i][2],st=_.xaxis&&(_.xaxis.type==="date"||_.xaxis.type==="log"),ot=_.yaxis&&(_.yaxis.type==="date"||_.yaxis.type==="log");st&&(K=n(_.xaxis,K),nt=n(_.xaxis,nt),ft=n(_.xaxis,ft),ct=n(_.xaxis,ct)),ot&&(J=n(_.yaxis,J),et=n(_.yaxis,et),Q=n(_.yaxis,Q),Z=n(_.yaxis,Z));var rt=(nt+ct)/2,X=(J+Q)/2,ut=(ct-nt+ft-K)/2,lt=(Z-et+Q-J)/2,yt=l({x0:rt,y0:X,x1:rt+ut*r,y1:X+lt*o});st&&(yt.x0=s(_.xaxis,yt.x0),yt.x1=s(_.xaxis,yt.x1)),ot&&(yt.y0=s(_.yaxis,yt.y0),yt.y1=s(_.yaxis,yt.y1)),V.x0=yt.x0,V.y0=yt.y0,V.x1=yt.x1,V.y1=yt.y1}else V.type="path",O&&j&&h(N,O,j),V.path=v(N),Y=null;return V}tt.exports={newShapes:d,createShapeObj:b}}),78534:(function(tt){function G(S){var A=S._fullLayout._zoomlayer;A&&A.selectAll(".outline-controllers").remove()}function e(S){var A=S._fullLayout._zoomlayer;A&&A.selectAll(".select-outline").remove(),S._fullLayout._outlining=!1}tt.exports={clearOutlineControllers:G,clearOutline:e}}),49728:(function(tt,G,e){var S=e(2956),A=e(34809),t=e(29714);G.rangeToShapePosition=function(p){return p.type==="log"?p.r2d:function(c){return c}},G.shapePositionToRange=function(p){return p.type==="log"?p.d2r:function(c){return c}},G.decodeDate=function(p){return function(c){return c.replace&&(c=c.replace("_"," ")),p(c)}},G.encodeDate=function(p){return function(c){return p(c).replace(" ","_")}},G.extractPathCoords=function(p,c,i){var r=[];return p.match(S.segmentRE).forEach(function(o){var a=c[o.charAt(0)].drawn;if(a!==void 0){var s=o.substr(1).match(S.paramRE);if(!(!s||s.length<a)){var n=s[a],m=i?n:A.cleanNumber(n);r.push(m)}}}),r},G.getDataToPixel=function(p,c,i,r,o){var a=p._fullLayout._size,s;if(c)if(o==="domain")s=function(m){return c._length*(r?1-m:m)+c._offset};else{var n=G.shapePositionToRange(c);s=function(m){var x=w(c,i);return c._offset+c.r2p(n(m,!0))+x},c.type==="date"&&(s=G.decodeDate(s))}else s=r?function(m){return a.t+a.h*(1-m)}:function(m){return a.l+a.w*m};return s},G.getPixelToData=function(p,c,i,r){var o=p._fullLayout._size,a;if(c)if(r==="domain")a=function(n){var m=(n-c._offset)/c._length;return i?1-m:m};else{var s=G.rangeToShapePosition(c);a=function(n){return s(c.p2r(n-c._offset))}}else a=i?function(n){return 1-(n-o.t)/o.h}:function(n){return(n-o.l)/o.w};return a},G.roundPositionForSharpStrokeRendering=function(p,c){var i=Math.round(c%2)===1,r=Math.round(p);return i?r+.5:r},G.makeShapesOptionsAndPlotinfo=function(p,c){var i=p._fullLayout.shapes[c]||{},r=p._fullLayout._plots[i.xref+i.yref];return r?r._hadPlotinfo=!0:(r={},i.xref&&i.xref!=="paper"&&(r.xaxis=p._fullLayout[i.xref+"axis"]),i.yref&&i.yref!=="paper"&&(r.yaxis=p._fullLayout[i.yref+"axis"])),r.xsizemode=i.xsizemode,r.ysizemode=i.ysizemode,r.xanchor=i.xanchor,r.yanchor=i.yanchor,{options:i,plotinfo:r}},G.makeSelectionsOptionsAndPlotinfo=function(p,c){var i=p._fullLayout.selections[c]||{},r=p._fullLayout._plots[i.xref+i.yref];return r?r._hadPlotinfo=!0:(r={},i.xref&&(r.xaxis=p._fullLayout[i.xref+"axis"]),i.yref&&(r.yaxis=p._fullLayout[i.yref+"axis"])),{options:i,plotinfo:r}},G.getPathString=function(p,c){var i=c.type,r=t.getRefType(c.xref),o=t.getRefType(c.yref),a=t.getFromId(p,c.xref),s=t.getFromId(p,c.yref),n=p._fullLayout._size,m,x,f,v,l=w(a,c.x0shift),h=w(a,c.x1shift),d=w(s,c.y0shift),b=w(s,c.y1shift),M,g,k,L;if(a?r==="domain"?x=function(P){return a._offset+a._length*P}:(m=G.shapePositionToRange(a),x=function(P){return a._offset+a.r2p(m(P,!0))}):x=function(P){return n.l+n.w*P},s?o==="domain"?v=function(P){return s._offset+s._length*(1-P)}:(f=G.shapePositionToRange(s),v=function(P){return s._offset+s.r2p(f(P,!0))}):v=function(P){return n.t+n.h*(1-P)},i==="path")return a&&a.type==="date"&&(x=G.decodeDate(x)),s&&s.type==="date"&&(v=G.decodeDate(v)),E(c,x,v);if(c.xsizemode==="pixel"){var u=x(c.xanchor);M=u+c.x0+l,g=u+c.x1+h}else M=x(c.x0)+l,g=x(c.x1)+h;if(c.ysizemode==="pixel"){var T=v(c.yanchor);k=T-c.y0+d,L=T-c.y1+b}else k=v(c.y0)+d,L=v(c.y1)+b;if(i==="line")return"M"+M+","+k+"L"+g+","+L;if(i==="rect")return"M"+M+","+k+"H"+g+"V"+L+"H"+M+"Z";var C=(M+g)/2,_=(k+L)/2,F=Math.abs(C-M),O=Math.abs(_-k),j="A"+F+","+O,B=C+F+","+_,U=C+","+(_-O);return"M"+B+j+" 0 1,1 "+U+j+" 0 0,1 "+B+"Z"};function E(p,c,i){var r=p.path,o=p.xsizemode,a=p.ysizemode,s=p.xanchor,n=p.yanchor;return r.replace(S.segmentRE,function(m){var x=0,f=m.charAt(0),v=S.paramIsX[f],l=S.paramIsY[f],h=S.numParams[f],d=m.substr(1).replace(S.paramRE,function(b){return v[x]?b=o==="pixel"?c(s)+Number(b):c(b):l[x]&&(b=a==="pixel"?i(n)-Number(b):i(b)),x++,x>h&&(b="X"),b});return x>h&&(d=d.replace(/[\s,]*X.*/,""),A.log("Ignoring extra params in segment "+m)),f+d})}function w(p,c){c||(c=0);var i=0;return c&&p&&(p.type==="category"||p.type==="multicategory")&&(i=(p.r2p(1)-p.r2p(0))*c),i}}),43701:(function(tt,G,e){var S=e(28231);tt.exports={moduleType:"component",name:"shapes",layoutAttributes:e(43144),supplyLayoutDefaults:e(74367),supplyDrawNewShapeDefaults:e(85522),includeBasePlot:e(20706)("shapes"),calcAutorange:e(44959),draw:S.draw,drawOne:S.drawOne}}),41235:(function(tt){function G(v,l){return l?l.d2l(v):v}function e(v,l){return l?l.l2d(v):v}function S(v){return v.x0}function A(v){return v.x1}function t(v){return v.y0}function E(v){return v.y1}function w(v){return v.x0shift||0}function p(v){return v.x1shift||0}function c(v){return v.y0shift||0}function i(v){return v.y1shift||0}function r(v,l){return G(v.x1,l)+p(v)-G(v.x0,l)-w(v)}function o(v,l,h){return G(v.y1,h)+i(v)-G(v.y0,h)-c(v)}function a(v,l){return Math.abs(r(v,l))}function s(v,l,h){return Math.abs(o(v,l,h))}function n(v,l,h){return v.type==="line"?Math.sqrt(r(v,l)**2+o(v,l,h)**2):void 0}function m(v,l){return e((G(v.x1,l)+p(v)+G(v.x0,l)+w(v))/2,l)}function x(v,l,h){return e((G(v.y1,h)+i(v)+G(v.y0,h)+c(v))/2,h)}function f(v,l,h){return v.type==="line"?o(v,l,h)/r(v,l):void 0}tt.exports={x0:S,x1:A,y0:t,y1:E,slope:f,dx:r,dy:o,width:a,height:s,length:n,xcenter:m,ycenter:x}}),8606:(function(tt,G,e){var S=e(80337),A=e(57891),t=e(93049).extendDeepAll,E=e(13582).overrideAll,w=e(49722),p=e(78032).templatedArray,c=e(64194);tt.exports=E(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}}),lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:t(A({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:w.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:S({})},font:S({}),activebgcolor:{valType:"color",dflt:c.gripBgActiveColor},bgcolor:{valType:"color",dflt:c.railBgColor},bordercolor:{valType:"color",dflt:c.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c.tickLength},tickcolor:{valType:"color",dflt:c.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength}}),"arraydraw","from-root")}),64194:(function(tt){tt.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}}),74537:(function(tt,G,e){var S=e(34809),A=e(59008),t=e(8606),E=e(64194).name,w=t.steps;tt.exports=function(i,r){A(i,r,{name:E,handleItemDefaults:p})};function p(i,r,o){function a(f,v){return S.coerce(i,r,t,f,v)}for(var s=A(i,r,{name:"steps",handleItemDefaults:c}),n=0,m=0;m<s.length;m++)s[m].visible&&n++;if(n<2?r.visible=!1:a("visible")){r._stepCount=n;var x=r._visibleSteps=S.filterVisible(s);(s[a("active")]||{}).visible||(r.active=x[0]._index),a("x"),a("y"),S.noneOrAll(i,r,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),S.coerceFont(a,"font",o.font),a("currentvalue.visible")&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),S.coerceFont(a,"currentvalue.font",r.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen")}}function c(i,r){function o(a,s){return S.coerce(i,r,w,a,s)}(i.method!=="skip"&&!Array.isArray(i.args)?r.visible=!1:o("visible"))&&(o("method"),o("args"),o("value",o("label","step-"+r._index)),o("execute"))}}),44097:(function(tt,G,e){var S=e(45568),A=e(44122),t=e(78766),E=e(62203),w=e(34809),p=w.strTranslate,c=e(30635),i=e(78032).arrayEditor,r=e(64194),o=e(4530),a=o.LINE_SPACING,s=o.FROM_TL,n=o.FROM_BR;tt.exports=function(B){var U=B._context.staticPlot,P=B._fullLayout,N=x(P,B),V=P._infolayer.selectAll("g."+r.containerClassName).data(N.length>0?[0]:[]);V.enter().append("g").classed(r.containerClassName,!0).style("cursor",U?null:"ew-resize");function Y(ct){ct._commandObserver&&(ct._commandObserver.remove(),delete ct._commandObserver),A.autoMargin(B,m(ct))}if(V.exit().each(function(){S.select(this).selectAll("g."+r.groupClassName).each(Y)}).remove(),N.length!==0){var K=V.selectAll("g."+r.groupClassName).data(N,f);K.enter().append("g").classed(r.groupClassName,!0),K.exit().each(Y).remove();for(var nt=0;nt<N.length;nt++){var ft=N[nt];v(B,ft)}K.each(function(ct){var J=S.select(this);T(ct),A.manageCommandObserver(B,ct,ct._visibleSteps,function(et){var Q=J.data()[0];Q.active!==et.index&&(Q._dragging||k(B,J,Q,et.index,!1,!0))}),l(B,S.select(this),ct)})}};function m(B){return r.autoMarginIdRoot+B._index}function x(B,U){for(var P=B[r.name],N=[],V=0;V<P.length;V++){var Y=P[V];Y.visible&&(Y._gd=U,N.push(Y))}return N}function f(B){return B._index}function v(B,U){var P=E.tester.selectAll("g."+r.labelGroupClass).data(U._visibleSteps);P.enter().append("g").classed(r.labelGroupClass,!0);var N=0,V=0;P.each(function(Z){var st=b(S.select(this),{step:Z},U).node();if(st){var ot=E.bBox(st);V=Math.max(V,ot.height),N=Math.max(N,ot.width)}}),P.remove();var Y=U._dims={};Y.inputAreaWidth=Math.max(r.railWidth,r.gripHeight);var K=B._fullLayout._size;Y.lx=K.l+K.w*U.x,Y.ly=K.t+K.h*(1-U.y),U.lenmode==="fraction"?Y.outerLength=Math.round(K.w*U.len):Y.outerLength=U.len,Y.inputAreaStart=0,Y.inputAreaLength=Math.round(Y.outerLength-U.pad.l-U.pad.r);var nt=(Y.inputAreaLength-2*r.stepInset)/(U._stepCount-1),ft=N+r.labelPadding;if(Y.labelStride=Math.max(1,Math.ceil(ft/nt)),Y.labelHeight=V,Y.currentValueMaxWidth=0,Y.currentValueHeight=0,Y.currentValueTotalHeight=0,Y.currentValueMaxLines=1,U.currentvalue.visible){var ct=E.tester.append("g");P.each(function(Z){var st=h(ct,U,Z.label),ot=st.node()&&E.bBox(st.node())||{width:0,height:0},rt=c.lineCount(st);Y.currentValueMaxWidth=Math.max(Y.currentValueMaxWidth,Math.ceil(ot.width)),Y.currentValueHeight=Math.max(Y.currentValueHeight,Math.ceil(ot.height)),Y.currentValueMaxLines=Math.max(Y.currentValueMaxLines,rt)}),Y.currentValueTotalHeight=Y.currentValueHeight+U.currentvalue.offset,ct.remove()}Y.height=Y.currentValueTotalHeight+r.tickOffset+U.ticklen+r.labelOffset+Y.labelHeight+U.pad.t+U.pad.b;var J="left";w.isRightAnchor(U)&&(Y.lx-=Y.outerLength,J="right"),w.isCenterAnchor(U)&&(Y.lx-=Y.outerLength/2,J="center");var et="top";w.isBottomAnchor(U)&&(Y.ly-=Y.height,et="bottom"),w.isMiddleAnchor(U)&&(Y.ly-=Y.height/2,et="middle"),Y.outerLength=Math.ceil(Y.outerLength),Y.height=Math.ceil(Y.height),Y.lx=Math.round(Y.lx),Y.ly=Math.round(Y.ly);var Q={y:U.y,b:Y.height*n[et],t:Y.height*s[et]};U.lenmode==="fraction"?(Q.l=0,Q.xl=U.x-U.len*s[J],Q.r=0,Q.xr=U.x+U.len*n[J]):(Q.x=U.x,Q.l=Y.outerLength*s[J],Q.r=Y.outerLength*n[J]),A.autoMargin(B,m(U),Q)}function l(B,U,P){(P.steps[P.active]||{}).visible||(P.active=P._visibleSteps[0]._index),U.call(h,P).call(j,P).call(M,P).call(u,P).call(O,B,P).call(d,B,P);var N=P._dims;E.setTranslate(U,N.lx+P.pad.l,N.ly+P.pad.t),U.call(C,P,!1),U.call(h,P)}function h(B,U,P){if(U.currentvalue.visible){var N=U._dims,V,Y;switch(U.currentvalue.xanchor){case"right":V=N.inputAreaLength-r.currentValueInset-N.currentValueMaxWidth,Y="left";break;case"center":V=N.inputAreaLength*.5,Y="middle";break;default:V=r.currentValueInset,Y="left"}var K=w.ensureSingle(B,"text",r.labelClass,function(Q){Q.attr({"text-anchor":Y,"data-notex":1})}),nt=U.currentvalue.prefix?U.currentvalue.prefix:"";if(typeof P=="string")nt+=P;else{var ft=U.steps[U.active].label,ct=U._gd._fullLayout._meta;ct&&(ft=w.templateString(ft,ct)),nt+=ft}U.currentvalue.suffix&&(nt+=U.currentvalue.suffix),K.call(E.font,U.currentvalue.font).text(nt).call(c.convertToTspans,U._gd);var J=c.lineCount(K),et=(N.currentValueMaxLines+1-J)*U.currentvalue.font.size*a;return c.positionText(K,V,et),K}}function d(B,U,P){w.ensureSingle(B,"rect",r.gripRectClass,function(N){N.call(L,U,B,P).style("pointer-events","all")}).attr({width:r.gripWidth,height:r.gripHeight,rx:r.gripRadius,ry:r.gripRadius}).call(t.stroke,P.bordercolor).call(t.fill,P.bgcolor).style("stroke-width",P.borderwidth+"px")}function b(B,U,P){var N=w.ensureSingle(B,"text",r.labelClass,function(K){K.attr({"text-anchor":"middle","data-notex":1})}),V=U.step.label,Y=P._gd._fullLayout._meta;return Y&&(V=w.templateString(V,Y)),N.call(E.font,P.font).text(V).call(c.convertToTspans,P._gd),N}function M(B,U){var P=w.ensureSingle(B,"g",r.labelsClass),N=U._dims,V=P.selectAll("g."+r.labelGroupClass).data(N.labelSteps);V.enter().append("g").classed(r.labelGroupClass,!0),V.exit().remove(),V.each(function(Y){var K=S.select(this);K.call(b,Y,U),E.setTranslate(K,_(U,Y.fraction),r.tickOffset+U.ticklen+U.font.size*a+r.labelOffset+N.currentValueTotalHeight)})}function g(B,U,P,N,V){var Y=Math.round(N*(P._stepCount-1)),K=P._visibleSteps[Y]._index;K!==P.active&&k(B,U,P,K,!0,V)}function k(B,U,P,N,V,Y){var K=P.active;P.active=N,i(B.layout,r.name,P).applyUpdate("active",N);var nt=P.steps[P.active];U.call(C,P,Y),U.call(h,P),B.emit("plotly_sliderchange",{slider:P,step:P.steps[P.active],interaction:V,previousActive:K}),nt&&nt.method&&V&&(U._nextMethod?(U._nextMethod.step=nt,U._nextMethod.doCallback=V,U._nextMethod.doTransition=Y):(U._nextMethod={step:nt,doCallback:V,doTransition:Y},U._nextMethodRaf=window.requestAnimationFrame(function(){var ft=U._nextMethod.step;ft.method&&(ft.execute&&A.executeAPICommand(B,ft.method,ft.args),U._nextMethod=null,U._nextMethodRaf=null)})))}function L(B,U,P){if(U._context.staticPlot)return;var N=P.node(),V=S.select(U);function Y(){return P.data()[0]}function K(){var nt=Y();U.emit("plotly_sliderstart",{slider:nt});var ft=P.select("."+r.gripRectClass);S.event.stopPropagation(),S.event.preventDefault(),ft.call(t.fill,nt.activebgcolor),g(U,P,nt,F(nt,S.mouse(N)[0]),!0),nt._dragging=!0;function ct(){var et=Y();g(U,P,et,F(et,S.mouse(N)[0]),!1)}V.on("mousemove",ct),V.on("touchmove",ct);function J(){var et=Y();et._dragging=!1,ft.call(t.fill,et.bgcolor),V.on("mouseup",null),V.on("mousemove",null),V.on("touchend",null),V.on("touchmove",null),U.emit("plotly_sliderend",{slider:et,step:et.steps[et.active]})}V.on("mouseup",J),V.on("touchend",J)}B.on("mousedown",K),B.on("touchstart",K)}function u(B,U){var P=B.selectAll("rect."+r.tickRectClass).data(U._visibleSteps),N=U._dims;P.enter().append("rect").classed(r.tickRectClass,!0),P.exit().remove(),P.attr({width:U.tickwidth+"px","shape-rendering":"crispEdges"}),P.each(function(V,Y){var K=Y%N.labelStride===0,nt=S.select(this);nt.attr({height:K?U.ticklen:U.minorticklen}).call(t.fill,U.tickcolor),E.setTranslate(nt,_(U,Y/(U._stepCount-1))-.5*U.tickwidth,(K?r.tickOffset:r.minorTickOffset)+N.currentValueTotalHeight)})}function T(B){var U=B._dims;U.labelSteps=[];for(var P=B._stepCount,N=0;N<P;N+=U.labelStride)U.labelSteps.push({fraction:N/(P-1),step:B._visibleSteps[N]})}function C(B,U,P){for(var N=B.select("rect."+r.gripRectClass),V=0,Y=0;Y<U._stepCount;Y++)if(U._visibleSteps[Y]._index===U.active){V=Y;break}var K=_(U,V/(U._stepCount-1));if(!U._invokingCommand){var nt=N;P&&U.transition.duration>0&&(nt=nt.transition().duration(U.transition.duration).ease(U.transition.easing)),nt.attr("transform",p(K-r.gripWidth*.5,U._dims.currentValueTotalHeight))}}function _(B,U){var P=B._dims;return P.inputAreaStart+r.stepInset+(P.inputAreaLength-2*r.stepInset)*Math.min(1,Math.max(0,U))}function F(B,U){var P=B._dims;return Math.min(1,Math.max(0,(U-r.stepInset-P.inputAreaStart)/(P.inputAreaLength-2*r.stepInset-2*P.inputAreaStart)))}function O(B,U,P){var N=P._dims,V=w.ensureSingle(B,"rect",r.railTouchRectClass,function(Y){Y.call(L,U,B,P).style("pointer-events","all")});V.attr({width:N.inputAreaLength,height:Math.max(N.inputAreaWidth,r.tickOffset+P.ticklen+N.labelHeight)}).call(t.fill,P.bgcolor).attr("opacity",0),E.setTranslate(V,0,N.currentValueTotalHeight)}function j(B,U){var P=U._dims,N=P.inputAreaLength-r.railInset*2,V=w.ensureSingle(B,"rect",r.railRectClass);V.attr({width:N,height:r.railWidth,rx:r.railRadius,ry:r.railRadius,"shape-rendering":"crispEdges"}).call(t.stroke,U.bordercolor).call(t.fill,U.bgcolor).style("stroke-width",U.borderwidth+"px"),E.setTranslate(V,r.railInset,(P.inputAreaWidth-r.railWidth)*.5+P.currentValueTotalHeight)}}),15359:(function(tt,G,e){tt.exports={moduleType:"component",name:e(64194).name,layoutAttributes:e(8606),supplyLayoutDefaults:e(74537),draw:e(44097)}}),17240:(function(tt,G,e){var S=e(45568),A=e(10721),t=e(44122),E=e(33626),w=e(34809),p=w.strTranslate,c=e(62203),i=e(78766),r=e(30635),o=e(20438),a=e(4530).OPPOSITE_SIDE,s=/ [XY][0-9]* /,n=1.6,m=1.6;function x(f,v,l){var h=f._fullLayout,d=l.propContainer,b=l.propName,M=l.placeholder,g=l.traceIndex,k=l.avoid||{},L=l.attributes,u=l.transform,T=l.containerGroup,C=1,_=d.title,F=(_&&_.text?_.text:"").trim(),O=!1,j=_&&_.font?_.font:{},B=j.family,U=j.size,P=j.color,N=j.weight,V=j.style,Y=j.variant,K=j.textcase,nt=j.lineposition,ft=j.shadow,ct=!!l.subtitlePropName,J=l.subtitlePlaceholder,et=(d.title||{}).subtitle||{text:"",font:{}},Q=et.text.trim(),Z=!1,st=1,ot=et.font,rt=ot.family,X=ot.size,ut=ot.color,lt=ot.weight,yt=ot.style,kt=ot.variant,Lt=ot.textcase,St=ot.lineposition,Ot=ot.shadow,Ht;b==="title.text"?Ht="titleText":b.indexOf("axis")===-1?b.indexOf(!0)&&(Ht="colorbarTitleText"):Ht="axisTitleText";var Kt=f._context.edits[Ht];function Gt(be,je){return be===void 0||je===void 0?!1:be.replace(s," % ")===je.replace(s," % ")}F===""?C=0:Gt(F,M)&&(Kt||(F=""),C=.2,O=!0),ct&&(Q===""?st=0:Gt(Q,J)&&(Kt||(Q=""),st=.2,Z=!0)),l._meta?F=w.templateString(F,l._meta):h._meta&&(F=w.templateString(F,h._meta));var Et=F||Q||Kt,At;T||(T=w.ensureSingle(h._infolayer,"g","g-"+v),At=h._hColorbarMoveTitle);var qt=T.selectAll("text."+v).data(Et?[0]:[]);qt.enter().append("text"),qt.text(F).attr("class",v),qt.exit().remove();var jt=null,de=v+"-subtitle",Xt=Q||Kt;if(ct&&Xt&&(jt=T.selectAll("text."+de).data(Xt?[0]:[]),jt.enter().append("text"),jt.text(Q).attr("class",de),jt.exit().remove()),!Et)return T;function ye(be,je){w.syncOrAsync([Le,ve],{title:be,subtitle:je})}function Le(be){var je=be.title,nr=be.subtitle,Vt;!u&&At&&(u={}),u?(Vt="",u.rotate&&(Vt+="rotate("+[u.rotate,L.x,L.y]+")"),(u.offset||At)&&(Vt+=p(0,(u.offset||0)-(At||0)))):Vt=null,je.attr("transform",Vt);function Qt(Tt){if(Tt){var _t=S.select(Tt.node().parentNode).select("."+de);if(!_t.empty()){var It=Tt.node().getBBox();if(It.height){var Mt=It.y+It.height+n*X;_t.attr("y",Mt)}}}}if(je.style("opacity",C*i.opacity(P)).call(c.font,{color:i.rgb(P),size:S.round(U,2),family:B,weight:N,style:V,variant:Y,textcase:K,shadow:ft,lineposition:nt}).attr(L).call(r.convertToTspans,f,Qt),nr){var te=T.select("."+v+"-math-group"),ee=je.node().getBBox(),Bt=te.node()?te.node().getBBox():void 0,Wt=Bt?Bt.y+Bt.height+n*X:ee.y+ee.height+m*X,$t=w.extendFlat({},L,{y:Wt});nr.attr("transform",Vt),nr.style("opacity",st*i.opacity(ut)).call(c.font,{color:i.rgb(ut),size:S.round(X,2),family:rt,weight:lt,style:yt,variant:kt,textcase:Lt,shadow:Ot,lineposition:St}).attr($t).call(r.convertToTspans,f)}return t.previousPromises(f)}function ve(be){var je=be.title,nr=S.select(je.node().parentNode);if(k&&k.selection&&k.side&&F){nr.attr("transform",null);var Vt=a[k.side],Qt=k.side==="left"||k.side==="top"?-1:1,te=A(k.pad)?k.pad:2,ee=c.bBox(nr.node()),Bt={t:0,b:0,l:0,r:0},Wt=f._fullLayout._reservedMargin;for(var $t in Wt)for(var Tt in Wt[$t]){var _t=Wt[$t][Tt];Bt[Tt]=Math.max(Bt[Tt],_t)}var It={left:Bt.l,top:Bt.t,right:h.width-Bt.r,bottom:h.height-Bt.b},Mt=k.maxShift||Qt*(It[k.side]-ee[k.side]),Ct=0;if(Mt<0)Ct=Mt;else{var Ut=k.offsetLeft||0,Zt=k.offsetTop||0;ee.left-=Ut,ee.right-=Ut,ee.top-=Zt,ee.bottom-=Zt,k.selection.each(function(){var Be=c.bBox(this);w.bBoxIntersect(ee,Be,te)&&(Ct=Math.max(Ct,Qt*(Be[k.side]-ee[Vt])+te))}),Ct=Math.min(Mt,Ct),d._titleScoot=Math.abs(Ct)}if(Ct>0||Mt<0){var Me={left:[-Ct,0],right:[Ct,0],top:[0,-Ct],bottom:[0,Ct]}[k.side];nr.attr("transform",p(Me[0],Me[1]))}}}qt.call(ye,jt);function ke(be,je){be.text(je).on("mouseover.opacity",function(){S.select(this).transition().duration(o.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){S.select(this).transition().duration(o.HIDE_PLACEHOLDER).style("opacity",0)})}if(Kt&&(F?qt.on(".opacity",null):(ke(qt,M),O=!0),qt.call(r.makeEditable,{gd:f}).on("edit",function(be){g===void 0?E.call("_guiRelayout",f,b,be):E.call("_guiRestyle",f,b,be,g)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ye)}).on("input",function(be){this.text(be||" ").call(r.positionText,L.x,L.y)}),ct)){if(ct&&!F){var Pe=qt.node().getBBox(),me=Pe.y+Pe.height+m*X;jt.attr("y",me)}Q?jt.on(".opacity",null):(ke(jt,J),Z=!0),jt.call(r.makeEditable,{gd:f}).on("edit",function(be){E.call("_guiRelayout",f,"title.subtitle.text",be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ye)}).on("input",function(be){this.text(be||" ").call(r.positionText,jt.attr("x"),jt.attr("y"))})}return qt.classed("js-placeholder",O),jt&&jt.classed("js-placeholder",Z),T}tt.exports={draw:x,SUBTITLE_PADDING_EM:m,SUBTITLE_PADDING_MATHJAX_EM:n}}),85389:(function(tt,G,e){var S=e(80337),A=e(10229),t=e(93049).extendFlat,E=e(13582).overrideAll,w=e(57891),p=e(78032).templatedArray;tt.exports=E(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}}),x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:t(w({editType:"arraydraw"}),{}),font:S({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:A.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")}),71559:(function(tt){tt.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}}),42746:(function(tt,G,e){var S=e(34809),A=e(59008),t=e(85389),E=e(71559).name,w=t.buttons;tt.exports=function(i,r){A(i,r,{name:E,handleItemDefaults:p})};function p(i,r,o){function a(s,n){return S.coerce(i,r,t,s,n)}a("visible",A(i,r,{name:"buttons",handleItemDefaults:c}).length>0)&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),S.noneOrAll(i,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),S.coerceFont(a,"font",o.font),a("bgcolor",o.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function c(i,r){function o(a,s){return S.coerce(i,r,w,a,s)}o("visible",i.method==="skip"||Array.isArray(i.args))&&(o("method"),o("args"),o("args2"),o("label"),o("execute"))}}),40974:(function(tt,G,e){var S=e(45568),A=e(44122),t=e(78766),E=e(62203),w=e(34809),p=e(30635),c=e(78032).arrayEditor,i=e(4530).LINE_SPACING,r=e(71559),o=e(21736);tt.exports=function(_){var F=_._fullLayout,O=w.filterVisible(F[r.name]);function j(K){A.autoMargin(_,u(K))}var B=F._menulayer.selectAll("g."+r.containerClassName).data(O.length>0?[0]:[]);if(B.enter().append("g").classed(r.containerClassName,!0).style("cursor","pointer"),B.exit().each(function(){S.select(this).selectAll("g."+r.headerGroupClassName).each(j)}).remove(),O.length!==0){var U=B.selectAll("g."+r.headerGroupClassName).data(O,a);U.enter().append("g").classed(r.headerGroupClassName,!0);for(var P=w.ensureSingle(B,"g",r.dropdownButtonGroupClassName,function(K){K.style("pointer-events","all")}),N=0;N<O.length;N++){var V=O[N];L(_,V)}var Y=new o(_,P,"updatemenus"+F._uid);U.enter().size()&&(P.node().parentNode.appendChild(P.node()),P.call(C)),U.exit().each(function(K){P.call(C),j(K)}).remove(),U.each(function(K){var nt=S.select(this),ft=K.type==="dropdown"?P:null;A.manageCommandObserver(_,K,K.buttons,function(ct){m(_,K,K.buttons[ct.index],nt,ft,Y,ct.index,!0)}),K.type==="dropdown"?(x(_,nt,P,Y,K),n(P,K)&&f(_,nt,P,Y,K)):f(_,nt,null,null,K)})}};function a(_){return _._index}function s(_){return+_.attr(r.menuIndexAttrName)==-1}function n(_,F){return+_.attr(r.menuIndexAttrName)===F._index}function m(_,F,O,j,B,U,P,N){F.active=P,c(_.layout,r.name,F).applyUpdate("active",P),F.type==="buttons"?f(_,j,null,null,F):F.type==="dropdown"&&(B.attr(r.menuIndexAttrName,"-1"),x(_,j,B,U,F),N||f(_,j,B,U,F))}function x(_,F,O,j,B){var U=w.ensureSingle(F,"g",r.headerClassName,function(nt){nt.style("pointer-events","all")}),P=B._dims,N=B.active,V=B.buttons[N]||r.blankHeaderOpts,Y={y:B.pad.t,yPad:0,x:B.pad.l,xPad:0,index:0},K={width:P.headerWidth,height:P.headerHeight};U.call(h,B,V,_).call(T,B,Y,K),w.ensureSingle(F,"text",r.headerArrowClassName,function(nt){nt.attr("text-anchor","end").call(E.font,B.font).text(r.arrowSymbol[B.direction])}).attr({x:P.headerWidth-r.arrowOffsetX+B.pad.l,y:P.headerHeight/2+r.textOffsetY+B.pad.t}),U.on("click",function(){O.call(C,String(n(O,B)?-1:B._index)),f(_,F,O,j,B)}),U.on("mouseover",function(){U.call(g)}),U.on("mouseout",function(){U.call(k,B)}),E.setTranslate(F,P.lx,P.ly)}function f(_,F,O,j,B){O||(O=F,O.attr("pointer-events","all"));var U=!s(O)||B.type==="buttons"?B.buttons:[],P=B.type==="dropdown"?r.dropdownButtonClassName:r.buttonClassName,N=O.selectAll("g."+P).data(w.filterVisible(U)),V=N.enter().append("g").classed(P,!0),Y=N.exit();B.type==="dropdown"?(V.attr("opacity","0").transition().attr("opacity","1"),Y.transition().attr("opacity","0").remove()):Y.remove();var K=0,nt=0,ft=B._dims,ct=["up","down"].indexOf(B.direction)!==-1;B.type==="dropdown"&&(ct?nt=ft.headerHeight+r.gapButtonHeader:K=ft.headerWidth+r.gapButtonHeader),B.type==="dropdown"&&B.direction==="up"&&(nt=-r.gapButtonHeader+r.gapButton-ft.openHeight),B.type==="dropdown"&&B.direction==="left"&&(K=-r.gapButtonHeader+r.gapButton-ft.openWidth);var J={x:ft.lx+K+B.pad.l,y:ft.ly+nt+B.pad.t,yPad:r.gapButton,xPad:r.gapButton,index:0},et={l:J.x+B.borderwidth,t:J.y+B.borderwidth};N.each(function(Q,Z){var st=S.select(this);st.call(h,B,Q,_).call(T,B,J),st.on("click",function(){S.event.defaultPrevented||(Q.execute&&(Q.args2&&B.active===Z?(m(_,B,Q,F,O,j,-1),A.executeAPICommand(_,Q.method,Q.args2)):(m(_,B,Q,F,O,j,Z),A.executeAPICommand(_,Q.method,Q.args))),_.emit("plotly_buttonclicked",{menu:B,button:Q,active:B.active}))}),st.on("mouseover",function(){st.call(g)}),st.on("mouseout",function(){st.call(k,B),N.call(M,B)})}),N.call(M,B),ct?(et.w=Math.max(ft.openWidth,ft.headerWidth),et.h=J.y-et.t):(et.w=J.x-et.l,et.h=Math.max(ft.openHeight,ft.headerHeight)),et.direction=B.direction,j&&(N.size()?v(_,F,O,j,B,et):l(j))}function v(_,F,O,j,B,U){var P=B.direction,N=P==="up"||P==="down",V=B._dims,Y=B.active,K,nt,ft;if(N)for(nt=0,ft=0;ft<Y;ft++)nt+=V.heights[ft]+r.gapButton;else for(K=0,ft=0;ft<Y;ft++)K+=V.widths[ft]+r.gapButton;j.enable(U,K,nt),j.hbar&&j.hbar.attr("opacity","0").transition().attr("opacity","1"),j.vbar&&j.vbar.attr("opacity","0").transition().attr("opacity","1")}function l(_){var F=!!_.hbar,O=!!_.vbar;F&&_.hbar.transition().attr("opacity","0").each("end",function(){F=!1,O||_.disable()}),O&&_.vbar.transition().attr("opacity","0").each("end",function(){O=!1,F||_.disable()})}function h(_,F,O,j){_.call(d,F).call(b,F,O,j)}function d(_,F){w.ensureSingle(_,"rect",r.itemRectClassName,function(O){O.attr({rx:r.rx,ry:r.ry,"shape-rendering":"crispEdges"})}).call(t.stroke,F.bordercolor).call(t.fill,F.bgcolor).style("stroke-width",F.borderwidth+"px")}function b(_,F,O,j){var B=w.ensureSingle(_,"text",r.itemTextClassName,function(N){N.attr({"text-anchor":"start","data-notex":1})}),U=O.label,P=j._fullLayout._meta;P&&(U=w.templateString(U,P)),B.call(E.font,F.font).text(U).call(p.convertToTspans,j)}function M(_,F){var O=F.active;_.each(function(j,B){var U=S.select(this);B===O&&F.showactive&&U.select("rect."+r.itemRectClassName).call(t.fill,r.activeColor)})}function g(_){_.select("rect."+r.itemRectClassName).call(t.fill,r.hoverColor)}function k(_,F){_.select("rect."+r.itemRectClassName).call(t.fill,F.bgcolor)}function L(_,F){var O=F._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},j=E.tester.selectAll("g."+r.dropdownButtonClassName).data(w.filterVisible(F.buttons));j.enter().append("g").classed(r.dropdownButtonClassName,!0);var B=["up","down"].indexOf(F.direction)!==-1;j.each(function(K,nt){var ft=S.select(this);ft.call(h,F,K,_);var ct=ft.select("."+r.itemTextClassName),J=ct.node()&&E.bBox(ct.node()).width,et=Math.max(J+r.textPadX,r.minWidth),Q=F.font.size*i,Z=p.lineCount(ct),st=Math.max(Q*Z,r.minHeight)+r.textOffsetY;st=Math.ceil(st),et=Math.ceil(et),O.widths[nt]=et,O.heights[nt]=st,O.height1=Math.max(O.height1,st),O.width1=Math.max(O.width1,et),B?(O.totalWidth=Math.max(O.totalWidth,et),O.openWidth=O.totalWidth,O.totalHeight+=st+r.gapButton,O.openHeight+=st+r.gapButton):(O.totalWidth+=et+r.gapButton,O.openWidth+=et+r.gapButton,O.totalHeight=Math.max(O.totalHeight,st),O.openHeight=O.totalHeight)}),B?O.totalHeight-=r.gapButton:O.totalWidth-=r.gapButton,O.headerWidth=O.width1+r.arrowPadX,O.headerHeight=O.height1,F.type==="dropdown"&&(B?(O.width1+=r.arrowPadX,O.totalHeight=O.height1):O.totalWidth=O.width1,O.totalWidth+=r.arrowPadX),j.remove();var U=O.totalWidth+F.pad.l+F.pad.r,P=O.totalHeight+F.pad.t+F.pad.b,N=_._fullLayout._size;O.lx=N.l+N.w*F.x,O.ly=N.t+N.h*(1-F.y);var V="left";w.isRightAnchor(F)&&(O.lx-=U,V="right"),w.isCenterAnchor(F)&&(O.lx-=U/2,V="center");var Y="top";w.isBottomAnchor(F)&&(O.ly-=P,Y="bottom"),w.isMiddleAnchor(F)&&(O.ly-=P/2,Y="middle"),O.totalWidth=Math.ceil(O.totalWidth),O.totalHeight=Math.ceil(O.totalHeight),O.lx=Math.round(O.lx),O.ly=Math.round(O.ly),A.autoMargin(_,u(F),{x:F.x,y:F.y,l:U*({right:1,center:.5}[V]||0),r:U*({left:1,center:.5}[V]||0),b:P*({top:1,middle:.5}[Y]||0),t:P*({bottom:1,middle:.5}[Y]||0)})}function u(_){return r.autoMarginIdRoot+_._index}function T(_,F,O,j){j||(j={});var B=_.select("."+r.itemRectClassName),U=_.select("."+r.itemTextClassName),P=F.borderwidth,N=O.index,V=F._dims;E.setTranslate(_,P+O.x,P+O.y);var Y=["up","down"].indexOf(F.direction)!==-1,K=j.height||(Y?V.heights[N]:V.height1);B.attr({x:0,y:0,width:j.width||(Y?V.width1:V.widths[N]),height:K});var nt=F.font.size*i,ft=(p.lineCount(U)-1)*nt/2;p.positionText(U,r.textOffsetX,K/2-ft+r.textOffsetY),Y?O.y+=V.heights[N]+O.yPad:O.x+=V.widths[N]+O.xPad,O.index++}function C(_,F){_.attr(r.menuIndexAttrName,F||"-1").selectAll("g."+r.dropdownButtonClassName).remove()}}),46230:(function(tt,G,e){tt.exports={moduleType:"component",name:e(71559).name,layoutAttributes:e(85389),supplyLayoutDefaults:e(42746),draw:e(40974)}}),21736:(function(tt,G,e){tt.exports=w;var S=e(45568),A=e(78766),t=e(62203),E=e(34809);function w(p,c,i){this.gd=p,this.container=c,this.id=i,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}w.barWidth=2,w.barLength=20,w.barRadius=2,w.barPad=1,w.barColor="#808BA4",w.prototype.enable=function(p,c,i){var r=this.gd._fullLayout,o=r.width,a=r.height;this.position=p;var s=this.position.l,n=this.position.w,m=this.position.t,x=this.position.h,f=this.position.direction,v=f==="down",l=f==="left",h=f==="right",d=f==="up",b=n,M=x,g,k,L,u;!v&&!l&&!h&&!d&&(this.position.direction="down",v=!0),v||d?(g=s,k=g+b,v?(L=m,u=Math.min(L+M,a),M=u-L):(u=m+M,L=Math.max(u-M,0),M=u-L)):(L=m,u=L+M,l?(k=s+b,g=Math.max(k-b,0),b=k-g):(g=s,k=Math.min(g+b,o),b=k-g)),this._box={l:g,t:L,w:b,h:M};var T=n>b,C=w.barLength+2*w.barPad,_=w.barWidth+2*w.barPad,F=s,O=m+x;O+_>a&&(O=a-_);var j=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);j.exit().on(".drag",null).remove(),j.enter().append("rect").classed("scrollbar-horizontal",!0).call(A.fill,w.barColor),T?(this.hbar=j.attr({rx:w.barRadius,ry:w.barRadius,x:F,y:O,width:C,height:_}),this._hbarXMin=F+C/2,this._hbarTranslateMax=b-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=x>M,U=w.barWidth+2*w.barPad,P=w.barLength+2*w.barPad,N=s+n,V=m;N+U>o&&(N=o-U);var Y=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(A.fill,w.barColor),B?(this.vbar=Y.attr({rx:w.barRadius,ry:w.barRadius,x:N,y:V,width:U,height:P}),this._vbarYMin=V+P/2,this._vbarTranslateMax=M-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var K=this.id,nt=g-.5,ft=B?k+U+.5:k+.5,ct=L-.5,J=T?u+_+.5:u+.5,et=r._topdefs.selectAll("#"+K).data(T||B?[0]:[]);if(et.exit().remove(),et.enter().append("clipPath").attr("id",K).append("rect"),T||B?(this._clipRect=et.select("rect").attr({x:Math.floor(nt),y:Math.floor(ct),width:Math.ceil(ft)-Math.floor(nt),height:Math.ceil(J)-Math.floor(ct)}),this.container.call(t.setClipUrl,K,this.gd),this.bg.attr({x:s,y:m,width:n,height:x})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(t.setClipUrl,null),delete this._clipRect),T||B){var Q=S.behavior.drag().on("dragstart",function(){S.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Q);var Z=S.behavior.drag().on("dragstart",function(){S.event.sourceEvent.preventDefault(),S.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(Z),B&&this.vbar.on(".drag",null).call(Z)}this.setTranslate(c,i)},w.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(t.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},w.prototype._onBoxDrag=function(){var p=this.translateX,c=this.translateY;this.hbar&&(p-=S.event.dx),this.vbar&&(c-=S.event.dy),this.setTranslate(p,c)},w.prototype._onBoxWheel=function(){var p=this.translateX,c=this.translateY;this.hbar&&(p+=S.event.deltaY),this.vbar&&(c+=S.event.deltaY),this.setTranslate(p,c)},w.prototype._onBarDrag=function(){var p=this.translateX,c=this.translateY;if(this.hbar){var i=p+this._hbarXMin,r=i+this._hbarTranslateMax;p=(E.constrain(S.event.x,i,r)-i)/(r-i)*(this.position.w-this._box.w)}if(this.vbar){var o=c+this._vbarYMin,a=o+this._vbarTranslateMax;c=(E.constrain(S.event.y,o,a)-o)/(a-o)*(this.position.h-this._box.h)}this.setTranslate(p,c)},w.prototype.setTranslate=function(p,c){var i=this.position.w-this._box.w,r=this.position.h-this._box.h;if(p=E.constrain(p||0,0,i),c=E.constrain(c||0,0,r),this.translateX=p,this.translateY=c,this.container.call(t.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-c),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+c-.5)}),this.hbar){var o=p/i;this.hbar.call(t.setTranslate,p+o*this._hbarTranslateMax,c)}if(this.vbar){var a=c/r;this.vbar.call(t.setTranslate,p,c+a*this._vbarTranslateMax)}}}),4530:(function(tt){tt.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}}),35081:(function(tt){tt.exports={axisRefDescription:function(G,e,S){return["If set to a",G,"axis id (e.g. *"+G+"* or","*"+G+"2*), the `"+G+"` position refers to a",G,"coordinate. If set to *paper*, the `"+G+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+S+"). If set to a",G,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",e,"of the domain of that axis: e.g.,","*"+G+"2 domain* refers to the domain of the second",G," axis and a",G,"position of 0.5 refers to the","point between the",e,"and the",S,"of the domain of the","second",G,"axis."].join(" ")}}}),20909:(function(tt){tt.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}}),87296:(function(tt){tt.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}}),20726:(function(tt){tt.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}}),84770:(function(tt){tt.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}}),49467:(function(tt){tt.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}}),20438:(function(tt){tt.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}),63821:(function(tt){tt.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"\u2212"}}),1837:(function(tt,G){G.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],G.STYLE=G.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")}),62972:(function(tt,G){G.xmlns="http://www.w3.org/2000/xmlns/",G.svg="http://www.w3.org/2000/svg",G.xlink="http://www.w3.org/1999/xlink",G.svgAttrs={xmlns:G.svg,"xmlns:xlink":G.xlink}}),17430:(function(tt,G,e){G.version=e(29697).version,e(71116),e(6713);for(var S=G.register=e(33626).register,A=e(90742),t=Object.keys(A),E=0;E<t.length;E++){var w=t[E];w.charAt(0)!=="_"&&(G[w]=A[w]),S({moduleType:"apiMethod",name:w,fn:A[w]})}S(e(69693)),S([e(3599),e(83348),e(44844),e(43701),e(15553),e(46230),e(15359),e(55429),e(44453),e(83595),e(77901),e(88856),e(96919),e(82494),e(32141),e(95433)]),S([e(30227),e(44611)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(S(window.PlotlyLocales),delete window.PlotlyLocales),G.Icons=e(35188);var p=e(32141),c=e(44122);G.Plots={resize:c.resize,graphJson:c.graphJson,sendDataToCloud:c.sendDataToCloud},G.Fx={hover:p.hover,unhover:p.unhover,loneHover:p.loneHover,loneUnhover:p.loneUnhover},G.Snapshot=e(6170),G.PlotSchema=e(57297)}),35188:(function(tt){tt.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>(<defs>( <style>( .cls-0{fill:#000;}( .cls-1{fill:#FFF;}( .cls-2{fill:#F26;}( .cls-3{fill:#D69;}( .cls-4{fill:#BAC;}( .cls-5{fill:#9EF;}( </style>(</defs>( <title>plotly-logomark( ( ( ( ( ( ( ( ( ( ( ( ( (".split("(").join("")}}}),32546:(function(tt,G){G.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},G.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},G.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},G.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},G.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},G.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}}),44313:(function(tt,G,e){var S=e(98953),A=S.mod,t=S.modHalf,E=Math.PI,w=2*E;function p(v){return v/180*E}function c(v){return v/E*180}function i(v){return Math.abs(v[1]-v[0])>w-1e-14}function r(v,l){return t(l-v,w)}function o(v,l){return Math.abs(r(v,l))}function a(v,l){if(i(l))return!0;var h,d;l[0]d&&(d+=w);var b=A(v,w),M=b+w;return b>=h&&b<=d||M>=h&&M<=d}function s(v,l,h,d){if(!a(l,d))return!1;var b,M;return h[0]=b&&v<=M}function n(v,l,h,d,b,M,g){b||(b=0),M||(M=0);var k=i([h,d]),L,u,T,C,_;k?(L=0,u=E,T=w):h"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};r.uint8c=r.u1c,r.uint8=r.u1,r.int8=r.i1,r.uint16=r.u2,r.int16=r.i2,r.uint32=r.u4,r.int32=r.i4,r.float32=r.f4,r.float64=r.f8;function o(n){return n.constructor===ArrayBuffer}G.isArrayBuffer=o,G.decodeTypedArraySpec=function(n){var m=[],x=a(n),f=x.dtype,v=r[f];if(!v)throw Error('Error in dtype: "'+f+'"');var l=v.BYTES_PER_ELEMENT,h=x.bdata;o(h)||(h=S(h));var d=x.shape===void 0?[h.byteLength/l]:(""+x.shape).split(",");d.reverse();var b=d.length,M,g,k=+d[0],L=l*k,u=0;if(b===1)m=new v(h);else if(b===2)for(M=+d[1],g=0;gl.max?f.set(v):f.set(+x)}},integer:{coerceFunction:function(x,f,v,l){if((l.extras||[]).indexOf(x)!==-1){f.set(x);return}s(x)&&(x=n(x)),x%1||!S(x)||l.min!==void 0&&xl.max?f.set(v):f.set(+x)}},string:{coerceFunction:function(x,f,v,l){if(typeof x!="string"){var h=typeof x=="number";l.strict===!0||!h?f.set(v):f.set(String(x))}else l.noBlank&&!x?f.set(v):f.set(x)}},color:{coerceFunction:function(x,f,v){s(x)&&(x=n(x)),A(x).isValid()?f.set(x):f.set(v)}},colorlist:{coerceFunction:function(x,f,v){function l(h){return A(h).isValid()}!Array.isArray(x)||!x.length?f.set(v):x.every(l)?f.set(x):f.set(v)}},colorscale:{coerceFunction:function(x,f,v){f.set(w.get(x,v))}},angle:{coerceFunction:function(x,f,v){s(x)&&(x=n(x)),x==="auto"?f.set("auto"):S(x)?f.set(o(+x,360)):f.set(v)}},subplotid:{coerceFunction:function(x,f,v,l){var h=l.regex||r(v);if(typeof x=="string"&&h.test(x)){f.set(x);return}f.set(v)},validateFunction:function(x,f){var v=f.dflt;return x===v?!0:typeof x=="string"?!!r(v).test(x):!1}},flaglist:{coerceFunction:function(x,f,v,l){if((l.extras||[]).indexOf(x)!==-1){f.set(x);return}if(typeof x!="string"){f.set(v);return}for(var h=x.split("+"),d=0;d=h&&B<=d?B:p}if(typeof B!="string"&&typeof B!="number")return p;B=String(B);var Y=v(U),K=B.charAt(0);Y&&(K==="G"||K==="g")&&(B=B.substr(1),U="");var nt=Y&&U.substr(0,7)==="chinese",ft=B.match(nt?x:m);if(!ft)return p;var ct=ft[1],J=ft[3]||"1",et=Number(ft[5]||1),Q=Number(ft[7]||0),Z=Number(ft[9]||0),st=Number(ft[11]||0);if(Y){if(ct.length===2)return p;ct=Number(ct);var ot;try{var rt=s.getComponentMethod("calendars","getCal")(U);if(nt){var X=J.charAt(J.length-1)==="i";J=parseInt(J,10),ot=rt.newDate(ct,rt.toMonthIndex(ct,J,X),et)}else ot=rt.newDate(ct,Number(J),et)}catch{return p}return ot?(ot.toJD()-a)*c+Q*i+Z*r+st*o:p}ct=ct.length===2?(Number(ct)+2e3-f)%100+f:Number(ct),--J;var ut=new Date(Date.UTC(2e3,J,et,Q,Z));return ut.setUTCFullYear(ct),ut.getUTCMonth()!==J||ut.getUTCDate()!==et?p:ut.getTime()+st*o},h=G.MIN_MS=G.dateTime2ms("-9999"),d=G.MAX_MS=G.dateTime2ms("9999-12-31 23:59:59.9999"),G.isDateTime=function(B,U){return G.dateTime2ms(B,U)!==p};function b(B,U){return String(B+10**U).substr(1)}var M=90*c,g=3*i,k=5*r;G.ms2DateTime=function(B,U,P){if(typeof B!="number"||!(B>=h&&B<=d))return p;U||(U=0);var N=Math.floor(E(B+.05,1)*10),V=Math.round(B-N/10),Y,K,nt,ft,ct,J;if(v(P)){var et=Math.floor(V/c)+a,Q=Math.floor(E(B,c));try{Y=s.getComponentMethod("calendars","getCal")(P).fromJD(et).formatDate("yyyy-mm-dd")}catch{Y=n("G%Y-%m-%d")(new Date(V))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;K=U=h+c&&B<=d-c))return p;var U=Math.floor(E(B+.05,1)*10),P=new Date(Math.round(B-U/10));return L(S("%Y-%m-%d")(P),P.getHours(),P.getMinutes(),P.getSeconds(),P.getUTCMilliseconds()*10+U)};function L(B,U,P,N,V){if((U||P||N||V)&&(B+=" "+b(U,2)+":"+b(P,2),(N||V)&&(B+=":"+b(N,2),V))){for(var Y=4;V%10==0;)--Y,V/=10;B+="."+b(V,Y)}return B}G.cleanDate=function(B,U,P){if(B===p)return U;if(G.isJSDate(B)||typeof B=="number"&&isFinite(B)){if(v(P))return t.error("JS Dates and milliseconds are incompatible with world calendars",B),U;if(B=G.ms2DateTimeLocal(+B),!B&&U!==void 0)return U}else if(!G.isDateTime(B,P))return t.error("unrecognized date",B),U;return B};var u=/%\d?f/g,T=/%h/g,C={1:"1",2:"1",3:"2",4:"2"};function _(B,U,P,N){B=B.replace(u,function(Y){var K=Math.min(+Y.charAt(1)||6,6);return(U/1e3%1+2).toFixed(K).substr(2).replace(/0+$/,"")||"0"});var V=new Date(Math.floor(U+.05));if(B=B.replace(T,function(){return C[P("%q")(V)]}),v(N))try{B=s.getComponentMethod("calendars","worldCalFmt")(B,U,N)}catch{return"Invalid"}return P(B)(V)}var F=[59,59.9,59.99,59.999,59.9999];function O(B,U){var P=E(B+.05,c),N=b(Math.floor(P/i),2)+":"+b(E(Math.floor(P/r),60),2);if(U!=="M"){A(U)||(U=0);var V=(100+Math.min(E(B/o,60),F[U])).toFixed(U).substr(1);U>0&&(V=V.replace(/0+$/,"").replace(/[\.]$/,"")),N+=":"+V}return N}G.formatDate=function(B,U,P,N,V,Y){if(V=v(V)&&V,!U)if(P==="y")U=Y.year;else if(P==="m")U=Y.month;else if(P==="d")U=Y.dayMonth+` +`+Y.year;else return O(B,P)+` +`+_(Y.dayMonthYear,B,N,V);return _(U,B,N,V)};var j=3*c;G.incrementMonth=function(B,U,P){P=v(P)&&P;var N=E(B,c);if(B=Math.round(B-N),P)try{var V=Math.round(B/c)+a,Y=s.getComponentMethod("calendars","getCal")(P),K=Y.fromJD(V);return U%12?Y.add(K,U,"m"):Y.add(K,U/12,"y"),(K.toJD()-a)*c+N}catch{t.error("invalid ms "+B+" in calendar "+P)}var nt=new Date(B+j);return nt.setUTCMonth(nt.getUTCMonth()+U)+N-j},G.findExactDates=function(B,U){for(var P=0,N=0,V=0,Y=0,K,nt,ft=v(U)&&s.getComponentMethod("calendars","getCal")(U),ct=0;ct0&&O[j+1][0]<0)return j;return null}switch(u=k==="RUS"||k==="FJI"?function(O){var j;if(F(O)===null)j=O;else for(j=Array(O.length),_=0;_j?B[U++]=[O[_][0]+360,O[_][1]]:_===j?(B[U++]=O[_],B[U++]=[O[_][0],-90]):B[U++]=O[_];var P=o.tester(B);P.pts.pop(),L.push(P)}:function(O){L.push(o.tester(O))},M.type){case"MultiPolygon":for(T=0;T0?P.properties.ct=l(P):P.properties.ct=[NaN,NaN],B.fIn=O,B.fOut=P,L.push(P)}else c.log(["Location",B.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete k[j]}switch(g.type){case"FeatureCollection":var _=g.features;for(u=0;u<_.length;u++)C(_[u]);break;case"Feature":C(g);break;default:return c.warn(["Invalid GeoJSON type",(g.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var F in k)c.log(["Location *"+F+"*","does not have a matching feature with id-key","*"+M.featureidkey+"*."].join(" "));return L}function l(b){var M=b.geometry,g;if(M.type==="MultiPolygon")for(var k=M.coordinates,L=0,u=0;uL&&(L=C,g=T)}else g=M;return E(g).geometry.coordinates}function h(b){var M=window.PlotlyGeoAssets||{},g=[];function k(C){return new Promise(function(_,F){S.json(C,function(O,j){if(O){delete M[C];var B=O.status===404?'GeoJSON at URL "'+C+'" does not exist.':"Unexpected error while fetching from "+C;return F(Error(B))}return M[C]=j,_(j)})})}function L(C){return new Promise(function(_,F){var O=0,j=setInterval(function(){if(M[C]&&M[C]!=="pending")return clearInterval(j),_(M[C]);if(O>100)return clearInterval(j),F("Unexpected error while fetching from "+C);O++},50)})}for(var u=0;u0&&(E.push(w),w=[]):w.push(c)}return w.length>0&&E.push(w),E},G.makeLine=function(A){return A.length===1?{type:"LineString",coordinates:A[0]}:{type:"MultiLineString",coordinates:A}},G.makePolygon=function(A){if(A.length===1)return{type:"Polygon",coordinates:A};for(var t=Array(A.length),E=0;E1||M<0||M>1?null:{x:c+x*M,y:i+l*M}}G.segmentDistance=function(c,i,r,o,a,s,n,m){if(A(c,i,r,o,a,s,n,m))return 0;var x=r-c,f=o-i,v=n-a,l=m-s,h=x*x+f*f,d=v*v+l*l,b=Math.min(t(x,f,h,a-c,s-i),t(x,f,h,n-c,m-i),t(v,l,d,c-a,i-s),t(v,l,d,r-a,o-s));return Math.sqrt(b)};function t(c,i,r,o,a){var s=o*c+a*i;if(s<0)return o*o+a*a;if(s>r){var n=o-c,m=a-i;return n*n+m*m}else{var x=o*i-a*c;return x*x/r}}var E,w,p;G.getTextLocation=function(c,i,r,o){if((c!==w||o!==p)&&(E={},w=c,p=o),E[r])return E[r];var a=c.getPointAtLength(S(r-o/2,i)),s=c.getPointAtLength(S(r+o/2,i)),n=Math.atan((s.y-a.y)/(s.x-a.x)),m=c.getPointAtLength(S(r,i)),x={x:(m.x*4+a.x+s.x)/6,y:(m.y*4+a.y+s.y)/6,theta:n};return E[r]=x,x},G.clearLocationCache=function(){w=null},G.getVisibleSegment=function(c,i,r){var o=i.left,a=i.right,s=i.top,n=i.bottom,m=0,x=c.getTotalLength(),f=x,v,l;function h(b){var M=c.getPointAtLength(b);b===0?v=M:b===x&&(l=M);var g=M.xa?M.x-a:0,k=M.yn?M.y-n:0;return Math.sqrt(g*g+k*k)}for(var d=h(m);d;){if(m+=d+r,m>f)return;d=h(m)}for(d=h(f);d;){if(f-=d+r,m>f)return;d=h(f)}return{min:m,max:f,len:f-m,total:x,isClosed:m===0&&f===x&&Math.abs(v.x-l.x)<.1&&Math.abs(v.y-l.y)<.1}},G.findPointOnPath=function(c,i,r,o){o||(o={});for(var a=o.pathLength||c.getTotalLength(),s=o.tolerance||.001,n=o.iterationLimit||30,m=c.getPointAtLength(0)[r]>c.getPointAtLength(a)[r]?-1:1,x=0,f=0,v=a,l,h,d;x0?v=l:f=l,x++}return h}}),46998:(function(tt,G,e){var S=e(10721),A=e(65657),t=e(162),E=e(88856),w=e(10229).defaultLine,p=e(87800).isArrayOrTypedArray,c=t(w),i=1;function r(m,x){var f=m;return f[3]*=x,f}function o(m){if(S(m))return c;var x=t(m);return x.length?x:c}function a(m){return S(m)?m:i}function s(m,x,f){var v=m.color;v&&v._inputArray&&(v=v._inputArray);var l=p(v),h=p(x),d=E.extractOpts(m),b=[],M=d.colorscale===void 0?o:E.makeColorScaleFuncFromTrace(m),g=l?function(C,_){return C[_]===void 0?c:t(M(C[_]))}:o,k=h?function(C,_){return C[_]===void 0?i:a(C[_])}:a,L,u;if(l||h)for(var T=0;T1?(S*G+S*e)/S:G+e,t=String(A).length;if(t>16){var E=String(e).length;if(t>=String(G).length+E){var w=parseFloat(A).toPrecision(12);w.indexOf("e+")===-1&&(A=+w)}}return A}}),34809:(function(tt,G,e){var S=e(45568),A=e(42696).aL,t=e(36464).GP,E=e(10721),w=e(63821),p=w.FP_SAFE,c=-p,i=w.BADNUM,r=tt.exports={};r.adjustFormat=function(Z){return!Z||/^\d[.]\df/.test(Z)||/[.]\d%/.test(Z)?Z:Z==="0.f"?"~f":/^\d%/.test(Z)?"~%":/^\ds/.test(Z)?"~s":!/^[~,.0$]/.test(Z)&&/[&fps]/.test(Z)?"~"+Z:Z};var o={};r.warnBadFormat=function(Z){var st=String(Z);o[st]||(o[st]=1,r.warn('encountered bad format: "'+st+'"'))},r.noFormat=function(Z){return String(Z)},r.numberFormat=function(Z){var st;try{st=t(r.adjustFormat(Z))}catch{return r.warnBadFormat(Z),r.noFormat}return st},r.nestedProperty=e(35632),r.keyedContainer=e(34967),r.relativeAttr=e(82047),r.isPlainObject=e(56174),r.toLogRange=e(8083),r.relinkPrivateKeys=e(80428);var a=e(87800);r.isArrayBuffer=a.isArrayBuffer,r.isTypedArray=a.isTypedArray,r.isArrayOrTypedArray=a.isArrayOrTypedArray,r.isArray1D=a.isArray1D,r.ensureArray=a.ensureArray,r.concat=a.concat,r.maxRowLength=a.maxRowLength,r.minRowLength=a.minRowLength;var s=e(98953);r.mod=s.mod,r.modHalf=s.modHalf;var n=e(34220);r.valObjectMeta=n.valObjectMeta,r.coerce=n.coerce,r.coerce2=n.coerce2,r.coerceFont=n.coerceFont,r.coercePattern=n.coercePattern,r.coerceHoverinfo=n.coerceHoverinfo,r.coerceSelectionMarkerOpacity=n.coerceSelectionMarkerOpacity,r.validate=n.validate;var m=e(92596);r.dateTime2ms=m.dateTime2ms,r.isDateTime=m.isDateTime,r.ms2DateTime=m.ms2DateTime,r.ms2DateTimeLocal=m.ms2DateTimeLocal,r.cleanDate=m.cleanDate,r.isJSDate=m.isJSDate,r.formatDate=m.formatDate,r.incrementMonth=m.incrementMonth,r.dateTick0=m.dateTick0,r.dfltRange=m.dfltRange,r.findExactDates=m.findExactDates,r.MIN_MS=m.MIN_MS,r.MAX_MS=m.MAX_MS;var x=e(98813);r.findBin=x.findBin,r.sorterAsc=x.sorterAsc,r.sorterDes=x.sorterDes,r.distinctVals=x.distinctVals,r.roundUp=x.roundUp,r.sort=x.sort,r.findIndexOfMin=x.findIndexOfMin,r.sortObjectKeys=e(62994);var f=e(89258);r.aggNums=f.aggNums,r.len=f.len,r.mean=f.mean,r.geometricMean=f.geometricMean,r.median=f.median,r.midRange=f.midRange,r.variance=f.variance,r.stdev=f.stdev,r.interp=f.interp;var v=e(15236);r.init2dArray=v.init2dArray,r.transposeRagged=v.transposeRagged,r.dot=v.dot,r.translationMatrix=v.translationMatrix,r.rotationMatrix=v.rotationMatrix,r.rotationXYMatrix=v.rotationXYMatrix,r.apply3DTransform=v.apply3DTransform,r.apply2DTransform=v.apply2DTransform,r.apply2DTransform2=v.apply2DTransform2,r.convertCssMatrix=v.convertCssMatrix,r.inverseTransformMatrix=v.inverseTransformMatrix;var l=e(44313);r.deg2rad=l.deg2rad,r.rad2deg=l.rad2deg,r.angleDelta=l.angleDelta,r.angleDist=l.angleDist,r.isFullCircle=l.isFullCircle,r.isAngleInsideSector=l.isAngleInsideSector,r.isPtInsideSector=l.isPtInsideSector,r.pathArc=l.pathArc,r.pathSector=l.pathSector,r.pathAnnulus=l.pathAnnulus;var h=e(32546);r.isLeftAnchor=h.isLeftAnchor,r.isCenterAnchor=h.isCenterAnchor,r.isRightAnchor=h.isRightAnchor,r.isTopAnchor=h.isTopAnchor,r.isMiddleAnchor=h.isMiddleAnchor,r.isBottomAnchor=h.isBottomAnchor;var d=e(3447);r.segmentsIntersect=d.segmentsIntersect,r.segmentDistance=d.segmentDistance,r.getTextLocation=d.getTextLocation,r.clearLocationCache=d.clearLocationCache,r.getVisibleSegment=d.getVisibleSegment,r.findPointOnPath=d.findPointOnPath;var b=e(93049);r.extendFlat=b.extendFlat,r.extendDeep=b.extendDeep,r.extendDeepAll=b.extendDeepAll,r.extendDeepNoArrays=b.extendDeepNoArrays;var M=e(48636);r.log=M.log,r.warn=M.warn,r.error=M.error,r.counterRegex=e(90694).counter;var g=e(64025);r.throttle=g.throttle,r.throttleDone=g.done,r.clearThrottle=g.clear;var k=e(95425);r.getGraphDiv=k.getGraphDiv,r.isPlotDiv=k.isPlotDiv,r.removeElement=k.removeElement,r.addStyleRule=k.addStyleRule,r.addRelatedStyleRule=k.addRelatedStyleRule,r.deleteRelatedStyleRule=k.deleteRelatedStyleRule,r.getFullTransformMatrix=k.getFullTransformMatrix,r.getElementTransformMatrix=k.getElementTransformMatrix,r.getElementAndAncestors=k.getElementAndAncestors,r.equalDomRects=k.equalDomRects,r.clearResponsive=e(23493),r.preserveDrawingBuffer=e(32521),r.makeTraceGroups=e(75944),r._=e(38514),r.notifier=e(87355),r.filterUnique=e(48965),r.filterVisible=e(78926),r.pushUnique=e(36539),r.increment=e(10688),r.cleanNumber=e(44498),r.ensureNumber=function(Z){return E(Z)?(Z=Number(Z),Z>p||Z=st?!1:E(Z)&&Z>=0&&Z%1==0},r.noop=e(4969),r.identity=e(29527),r.repeat=function(Z,st){for(var ot=Array(st),rt=0;rtot?Math.max(ot,Math.min(st,Z)):Math.max(st,Math.min(ot,Z))},r.bBoxIntersect=function(Z,st,ot){return ot||(ot=0),Z.left<=st.right+ot&&st.left<=Z.right+ot&&Z.top<=st.bottom+ot&&st.top<=Z.bottom+ot},r.simpleMap=function(Z,st,ot,rt,X){for(var ut=Z.length,lt=Array(ut),yt=0;yt=2**ot?X>10?(r.warn("randstr failed uniqueness"),lt):Z(st,ot,rt,(X||0)+1):lt},r.OptionControl=function(Z,st){Z||(Z={}),st||(st="opt");var ot={};return ot.optionList=[],ot._newoption=function(rt){rt[st]=Z,ot[rt.name]=rt,ot.optionList.push(rt)},ot["_"+st]=Z,ot},r.smooth=function(Z,st){if(st=Math.round(st)||0,st<2)return Z;var ot=Z.length,rt=2*ot,X=2*st-1,ut=Array(X),lt=Array(ot),yt,kt,Lt,St;for(yt=0;yt=rt&&(Lt-=rt*Math.floor(Lt/rt)),Lt<0?Lt=-1-Lt:Lt>=ot&&(Lt=rt-1-Lt),St+=Z[Lt]*ut[kt];lt[yt]=St}return lt},r.syncOrAsync=function(Z,st,ot){var rt,X;function ut(){return r.syncOrAsync(Z,st,ot)}for(;Z.length;)if(X=Z.splice(0,1)[0],rt=X(st),rt&&rt.then)return rt.then(ut);return ot&&ot(st)},r.stripTrailingSlash=function(Z){return Z.substr(-1)==="/"?Z.substr(0,Z.length-1):Z},r.noneOrAll=function(Z,st,ot){if(Z){var rt=!1,X=!0,ut,lt;for(ut=0;ut0?X:0})},r.fillArray=function(Z,st,ot,rt){if(rt||(rt=r.identity),r.isArrayOrTypedArray(Z))for(var X=0;X1?X+lt[1]:"";if(ut&&(lt.length>1||yt.length>4||ot))for(;rt.test(yt);)yt=yt.replace(rt,"$1"+ut+"$2");return yt+kt},r.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var B=/^\w*$/;r.templateString=function(Z,st){var ot={};return Z.replace(r.TEMPLATE_STRING_REGEX,function(rt,X){var ut;return B.test(X)?ut=st[X]:(ot[X]=ot[X]||r.nestedProperty(st,X).get,ut=ot[X]()),r.isValidTextValue(ut)?ut:""})};var U={max:10,count:0,name:"hovertemplate"};r.hovertemplateString=function(){return nt.apply(U,arguments)};var P={max:10,count:0,name:"texttemplate"};r.texttemplateString=function(){return nt.apply(P,arguments)};var N=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function V(Z){var st=Z.match(N);return st?{key:st[1],op:st[2],number:Number(st[3])}:{key:Z,op:null,number:null}}var Y={max:10,count:0,name:"texttemplate",parseMultDiv:!0};r.texttemplateStringForShapes=function(){return nt.apply(Y,arguments)};var K=/^[:|\|]/;function nt(Z,st,ot){var rt=this,X=arguments;st||(st={});var ut={};return Z.replace(r.TEMPLATE_STRING_REGEX,function(lt,yt,kt){var Lt=yt==="xother"||yt==="yother",St=yt==="_xother"||yt==="_yother",Ot=yt==="_xother_"||yt==="_yother_",Ht=yt==="xother_"||yt==="yother_",Kt=Lt||St||Ht||Ot,Gt=yt;(St||Ot)&&(Gt=Gt.substring(1)),(Ht||Ot)&&(Gt=Gt.substring(0,Gt.length-1));var Et=null,At=null;if(rt.parseMultDiv){var qt=V(Gt);Gt=qt.key,Et=qt.op,At=qt.number}var jt;if(Kt){if(jt=st[Gt],jt===void 0)return""}else{var de,Xt;for(Xt=3;Xt=ft&<<=ct,Lt=yt>=ft&&yt<=ct;if(kt&&(rt=10*rt+lt-ft),Lt&&(X=10*X+yt-ft),!kt||!Lt){if(rt!==X)return rt-X;if(lt!==yt)return lt-yt}}return X-rt};var J=2e9;r.seedPseudoRandom=function(){J=2e9},r.pseudoRandom=function(){var Z=J;return J=(69069*J+1)%4294967296,Math.abs(J-Z)<429496729?r.pseudoRandom():J/4294967296},r.fillText=function(Z,st,ot){var rt=Array.isArray(ot)?function(lt){ot.push(lt)}:function(lt){ot.text=lt},X=r.extractOption(Z,st,"htx","hovertext");if(r.isValidTextValue(X))return rt(X);var ut=r.extractOption(Z,st,"tx","text");if(r.isValidTextValue(ut))return rt(ut)},r.isValidTextValue=function(Z){return Z||Z===0},r.formatPercent=function(Z,st){st||(st=0);for(var ot=(Math.round(100*Z*10**st)*.1**st).toFixed(st)+"%",rt=0;rt1&&(Lt=1):Lt=0,r.strTranslate(X-Lt*(ot+lt),ut-Lt*(rt+yt))+r.strScale(Lt)+(kt?"rotate("+kt+(st?"":" "+ot+" "+rt)+")":"")},r.setTransormAndDisplay=function(Z,st){Z.attr("transform",r.getTextTransform(st)),Z.style("display",st.scale?null:"none")},r.ensureUniformFontSize=function(Z,st){var ot=r.extendFlat({},st);return ot.size=Math.max(st.size,Z._fullLayout.uniformtext.minsize||0),ot},r.join2=function(Z,st,ot){var rt=Z.length;return rt>1?Z.slice(0,-1).join(st)+ot+Z[rt-1]:Z.join(st)},r.bigFont=function(Z){return Math.round(1.2*Z)};var et=r.getFirefoxVersion(),Q=et!==null&&et<86;r.getPositionFromD3Event=function(){return Q?[S.event.layerX,S.event.layerY]:[S.event.offsetX,S.event.offsetY]}}),56174:(function(tt){tt.exports=function(G){return window&&window.process&&window.process.versions?Object.prototype.toString.call(G)==="[object Object]":Object.prototype.toString.call(G)==="[object Object]"&&Object.getPrototypeOf(G).hasOwnProperty("hasOwnProperty")}}),34967:(function(tt,G,e){var S=e(35632),A=/^\w*$/,t=0,E=1,w=2,p=3,c=4;tt.exports=function(i,r,o,a){o||(o="name"),a||(a="value");var s,n,m,x={};r&&r.length?(m=S(i,r),n=m.get()):n=i,r||(r="");var f={};if(n)for(s=0;s2)return x[d]=x[d]|w,l.set(h,null);if(v){for(s=d;s1){var w=["LOG:"];for(E=0;E1){var p=[];for(E=0;E"),"long")}},t.warn=function(){var E;if(S.logging>0){var w=["WARN:"];for(E=0;E0){var p=[];for(E=0;E"),"stick")}},t.error=function(){var E;if(S.logging>0){var w=["ERROR:"];for(E=0;E0){var p=[];for(E=0;E"),"stick")}}}),75944:(function(tt,G,e){var S=e(45568);tt.exports=function(A,t,E){var w=A.selectAll("g."+E.replace(/\s/g,".")).data(t,function(c){return c[0].trace.uid});w.exit().remove(),w.enter().append("g").attr("class",E),w.order();var p=A.classed("rangeplot")?"nodeRangePlot3":"node3";return w.each(function(c){c[0][p]=S.select(this)}),w}}),15236:(function(tt,G,e){var S=e(11191);G.init2dArray=function(A,t){for(var E=Array(A),w=0;wA/2?S-Math.round(S/A)*A:S}tt.exports={mod:G,modHalf:e}}),35632:(function(tt,G,e){var S=e(10721),A=e(87800).isArrayOrTypedArray;tt.exports=function(a,s){if(S(s))s=String(s);else if(typeof s!="string"||s.substr(s.length-4)==="[-1]")throw"bad property string";var n=s.split("."),m,x,f,v;for(v=0;v/g),m=0;mc||d===A||dr||l&&s(v))}function m(v,l){var h=v[0],d=v[1];if(h===A||hc||d===A||dr)return!1;var b=w.length,M=w[0][0],g=w[0][1],k=0,L,u,T,C,_;for(L=1;LMath.max(u,M)||d>Math.max(T,g)))if(do||Math.abs(S(m,s))>c)return!0;return!1},t.filter=function(E,w){var p=[E[0]],c=0,i=0;function r(o){E.push(o);var a=p.length,s=c;p.splice(i+1);for(var n=s+1;n1&&r(E.pop()),{addPt:r,raw:E,filtered:p}}}),22459:(function(tt,G,e){var S=e(97464),A=e(81330);tt.exports=function(t,E,w){var p=t._fullLayout,c=!0;return p._glcanvas.each(function(i){if(i.regl){i.regl.preloadCachedCode(w);return}if(!(i.pick&&!p._has("parcoords"))){try{i.regl=A({canvas:this,attributes:{antialias:!i.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:E||[],cachedCode:w||{}})}catch{c=!1}i.regl||(c=!1),c&&this.addEventListener("webglcontextlost",function(r){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:r,layer:i.key})},!1)}}),c||S({container:p._glcontainer.node()}),c}}),32521:(function(tt,G,e){var S=e(10721),A=e(13087);tt.exports=function(E){var w=E&&E.hasOwnProperty("userAgent")?E.userAgent:t();if(typeof w!="string")return!0;var p=A({ua:{headers:{"user-agent":w}},tablet:!0,featureDetect:!1});if(!p){for(var c=w.split(" "),i=1;i-1;r--){var o=c[r];if(o.substr(0,8)==="Version/"){var a=o.substr(8).split(".")[0];if(S(a)&&(a=+a),a>=13)return!0}}}return p};function t(){var E;return typeof navigator<"u"&&(E=navigator.userAgent),E&&E.headers&&typeof E.headers["user-agent"]=="string"&&(E=E.headers["user-agent"]),E}}),36539:(function(tt){tt.exports=function(G,e){if(e instanceof RegExp){for(var S=e.toString(),A=0;AA.queueLength&&(w.undoQueue.queue.shift(),w.undoQueue.index--)},E.startSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!0,w.undoQueue.beginSequence=!0},E.stopSequence=function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!1,w.undoQueue.beginSequence=!1},E.undo=function(w){var p,c;if(!(w.undoQueue===void 0||isNaN(w.undoQueue.index)||w.undoQueue.index<=0)){for(w.undoQueue.index--,p=w.undoQueue.queue[w.undoQueue.index],w.undoQueue.inSequence=!0,c=0;c=w.undoQueue.queue.length)){for(p=w.undoQueue.queue[w.undoQueue.index],w.undoQueue.inSequence=!0,c=0;c1?(a[m-1]-a[0])/(m-1):1,v,l=f>=0?s?p:c:s?r:i;for(o+=f*w*(s?-1:1)*(f>=0?1:-1);n90&&A.log("Long binary search..."),n-1};function p(o,a){return oa}function r(o,a){return o>=a}G.sorterAsc=function(o,a){return o-a},G.sorterDes=function(o,a){return a-o},G.distinctVals=function(o){var a=o.slice();a.sort(G.sorterAsc);var s;for(s=a.length-1;s>-1&&a[s]===E;s--);for(var n=a[s]-a[0]||1,m=n/(s||1)/1e4,x=[],f,v=0;v<=s;v++){var l=a[v],h=l-f;f===void 0?(x.push(l),f=l):h>m&&(n=Math.min(n,h),x.push(l),f=l)}return{vals:x,minDiff:n}},G.roundUp=function(o,a,s){for(var n=0,m=a.length-1,x,f=0,v=s?0:1,l=s?1:0,h=s?Math.ceil:Math.floor;n0&&(n=1),s&&n)return o.sort(a)}return n?o:o.reverse()},G.findIndexOfMin=function(o,a){a||(a=t);for(var s=1/0,n,m=0;mw.length)&&(p=w.length),S(E)||(E=!1),A(w[0])){for(i=Array(p),c=0;ct.length-1)return t[t.length-1];var w=E%1;return w*t[Math.ceil(E)]+(1-w)*t[Math.floor(E)]}}),55010:(function(tt,G,e){var S=e(162);function A(t){return t?S(t):[0,0,0,1]}tt.exports=A}),95544:(function(tt,G,e){var S=e(1837),A=e(62203),t=e(34809),E=null;function w(){if(E!==null)return E;E=!1;var p=t.isIE()||t.isSafari()||t.isIOS();if(window.navigator.userAgent&&!p){var c=Array.from(S.CSS_DECLARATIONS).reverse(),i=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof i=="function")E=c.some(function(a){return i.apply(null,a)});else{var r=A.tester.append("image").attr("style",S.STYLE),o=window.getComputedStyle(r.node()).imageRendering;E=c.some(function(a){var s=a[1];return o===s||o===s.toLowerCase()}),r.remove()}}return E}tt.exports=w}),30635:(function(tt,G,e){var S=e(45568),A=e(34809),t=A.strTranslate,E=e(62972),w=e(4530).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;G.convertToTspans=function(P,N,V){var Y=P.text(),K=!P.attr("data-notex")&&N&&N._context.typesetMath&&typeof MathJax<"u"&&Y.match(p),nt=S.select(P.node().parentNode);if(nt.empty())return;var ft=P.attr("class")?P.attr("class").split(" ")[0]:"text";ft+="-math",nt.selectAll("svg."+ft).remove(),nt.selectAll("g."+ft+"-group").remove(),P.style("display",null).attr({"data-unformatted":Y,"data-math":"N"});function ct(){nt.empty()||(ft=P.attr("class")+"-math",nt.select("svg."+ft).remove()),P.text("").style("white-space","pre"),O(P.node(),Y)&&P.style("pointer-events","all"),G.positionText(P),V&&V.call(P)}return K?(N&&N._promises||[]).push(new Promise(function(J){P.style("display","none");var et=parseInt(P.node().style.fontSize,10),Q={fontSize:et};a(K[2],Q,function(Z,st,ot){nt.selectAll("svg."+ft).remove(),nt.selectAll("g."+ft+"-group").remove();var rt=Z&&Z.select("svg");if(!rt||!rt.node()){ct(),J();return}var X=nt.append("g").classed(ft+"-group",!0).attr({"pointer-events":"none","data-unformatted":Y,"data-math":"Y"});X.node().appendChild(rt.node()),st&&st.node()&&rt.node().insertBefore(st.node().cloneNode(!0),rt.node().firstChild);var ut=ot.width,lt=ot.height;rt.attr({class:ft,height:lt,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var yt=P.node().style.fill||"black",kt=rt.select("g");kt.attr({fill:yt,stroke:yt});var Lt=kt.node().getBoundingClientRect(),St=Lt.width,Ot=Lt.height;(St>ut||Ot>lt)&&(rt.style("overflow","hidden"),Lt=rt.node().getBoundingClientRect(),St=Lt.width,Ot=Lt.height);var Ht=+P.attr("x"),Kt=+P.attr("y"),Gt=-(et||P.node().getBoundingClientRect().height)/4;if(ft[0]==="y")X.attr({transform:"rotate("+[-90,Ht,Kt]+")"+t(-St/2,Gt-Ot/2)});else if(ft[0]==="l")Kt=Gt-Ot/2;else if(ft[0]==="a"&&ft.indexOf("atitle")!==0)Ht=0,Kt=Gt;else{var Et=P.attr("text-anchor");Ht-=St*(Et==="middle"?.5:Et==="end"?1:0),Kt=Kt+Gt-Ot/2}rt.attr({x:Ht,y:Kt}),V&&V.call(P,X),J(X)})})):ct(),P};var c=/(<|<|<)/g,i=/(>|>|>)/g;function r(P){return P.replace(c,"\\lt ").replace(i,"\\gt ")}var o=[["$","$"],["\\(","\\)"]];function a(P,N,V){var Y=parseInt((MathJax.version||"").split(".")[0]);if(Y!==2&&Y!==3){A.warn("No MathJax version:",MathJax.version);return}var K,nt,ft,ct,J=function(){return nt=A.extendDeepAll({},MathJax.Hub.config),ft=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:o},displayAlign:"left"})},et=function(){nt=A.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=o},Q=function(){if(K=MathJax.Hub.config.menuSettings.renderer,K!=="SVG")return MathJax.Hub.setRenderer("SVG")},Z=function(){K=MathJax.config.startup.output,K!=="svg"&&(MathJax.config.startup.output="svg")},st=function(){var yt="math-output-"+A.randstr({},64);ct=S.select("body").append("div").attr({id:yt}).style({visibility:"hidden",position:"absolute","font-size":N.fontSize+"px"}).text(r(P));var kt=ct.node();return Y===2?MathJax.Hub.Typeset(kt):MathJax.typeset([kt])},ot=function(){var yt=ct.select(Y===2?".MathJax_SVG":".MathJax"),kt=!yt.empty()&&ct.select("svg").node();if(!kt)A.log("There was an error in the tex syntax.",P),V();else{var Lt=kt.getBoundingClientRect();V(yt,Y===2?S.select("body").select("#MathJax_SVG_glyphs"):yt.select("defs"),Lt)}ct.remove()},rt=function(){if(K!=="SVG")return MathJax.Hub.setRenderer(K)},X=function(){K!=="svg"&&(MathJax.config.startup.output=K)},ut=function(){return ft!==void 0&&(MathJax.Hub.processSectionDelay=ft),MathJax.Hub.Config(nt)},lt=function(){MathJax.config=nt};Y===2?MathJax.Hub.Queue(J,Q,st,ot,rt,ut):Y===3&&(et(),Z(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){st(),ot(),X(),lt()}))}var s={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},n={sub:"0.3em",sup:"-0.6em"},m={sub:"-0.21em",sup:"0.42em"},x="\u200B",f=["http:","https:","mailto:","",void 0,":"],v=G.NEWLINES=/(\r\n?|\n)/g,l=/(<[^<>]*>)/,h=/<(\/?)([^ >]*)(\s+(.*))?>/i,d=//i;G.BR_TAG_ALL=//gi;var b=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,g=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,k=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function L(P,N){if(!P)return null;var V=P.match(N),Y=V&&(V[3]||V[4]);return Y&&_(Y)}var u=/(^|;)\s*color:/;G.plainText=function(P,N){N||(N={});for(var V=N.len!==void 0&&N.len!==-1?N.len:1/0,Y=N.allowedTags===void 0?["br"]:N.allowedTags,K="...",nt=K.length,ft=P.split(l),ct=[],J="",et=0,Q=0;Qnt?ct.push(Z.substr(0,X-nt)+K):ct.push(Z.substr(0,X));break}J=""}}return ct.join("")};var T={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},C=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function _(P){return P.replace(C,function(N,V){return(V.charAt(0)==="#"?F(V.charAt(1)==="x"?parseInt(V.substr(2),16):parseInt(V.substr(1),10)):T[V])||N})}G.convertEntities=_;function F(P){if(!(P>1114111)){var N=String.fromCodePoint;if(N)return N(P);var V=String.fromCharCode;return P<=65535?V(P):V((P>>10)+55232,P%1024+56320)}}function O(P,N){N=N.replace(v," ");var V=!1,Y=[],K,nt=-1;function ft(){nt++;var St=document.createElementNS(E.svg,"tspan");S.select(St).attr({class:"line",dy:nt*w+"em"}),P.appendChild(St),K=St;var Ot=Y;if(Y=[{node:St}],Ot.length>1)for(var Ht=1;Ht.",N);return}var Ot=Y.pop();St!==Ot.type&&A.log("Start tag <"+Ot.type+"> doesnt match end tag <"+St+">. Pretending it did match.",N),K=Y[Y.length-1].node}d.test(N)?ft():(K=P,Y=[{node:P}]);for(var Q=N.split(l),Z=0;Zw.ts+t){i();return}w.timer=setTimeout(function(){i(),w.timer=null},t)},G.done=function(A){var t=e[A];return!t||!t.timer?Promise.resolve():new Promise(function(E){var w=t.onDone;t.onDone=function(){w&&w(),E(),t.onDone=null}})},G.clear=function(A){if(A)S(e[A]),delete e[A];else for(var t in e)G.clear(t)};function S(A){A&&A.timer!==null&&(clearTimeout(A.timer),A.timer=null)}}),8083:(function(tt,G,e){var S=e(10721);tt.exports=function(A,t){if(A>0)return Math.log(A)/Math.LN10;var E=Math.log(Math.min(t[0],t[1]))/Math.LN10;return S(E)||(E=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),E}}),11577:(function(tt,G,e){var S=tt.exports={},A=e(74285).locationmodeToLayer,t=e(48640).N4;S.getTopojsonName=function(E){return[E.scope.replace(/ /g,"-"),"_",E.resolution.toString(),"m"].join("")},S.getTopojsonPath=function(E,w){return E+w+".json"},S.getTopojsonFeatures=function(E,w){var p=A[E.locationmode],c=w.objects[p];return t(w,c).features}}),44611:(function(tt){tt.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}}),30227:(function(tt){tt.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}}),56037:(function(tt,G,e){var S=e(33626);tt.exports=function(A){for(var t=S.layoutArrayContainers,E=S.layoutArrayRegexes,w=A.split("[")[0],p,c,i=0;i0&&E.log("Clearing previous rejected promises from queue."),d._promises=[]},G.cleanLayout=function(d){var b,M;d||(d={}),d.xaxis1&&(d.xaxis||(d.xaxis=d.xaxis1),delete d.xaxis1),d.yaxis1&&(d.yaxis||(d.yaxis=d.yaxis1),delete d.yaxis1),d.scene1&&(d.scene||(d.scene=d.scene1),delete d.scene1);var g=(w.subplotsRegistry.cartesian||{}).attrRegex,k=(w.subplotsRegistry.polar||{}).attrRegex,L=(w.subplotsRegistry.ternary||{}).attrRegex,u=(w.subplotsRegistry.gl3d||{}).attrRegex,T=Object.keys(d);for(b=0;b3?(Q.x=1.02,Q.xanchor="left"):Q.x<-2&&(Q.x=-.02,Q.xanchor="right"),Q.y>3?(Q.y=1.02,Q.yanchor="bottom"):Q.y<-2&&(Q.y=-.02,Q.yanchor="top")),s(d),d.dragmode==="rotate"&&(d.dragmode="orbit"),c.clean(d),d.template&&d.template.layout&&G.cleanLayout(d.template.layout),d};function a(d,b){var M=d[b],g=b.charAt(0);M&&M!=="paper"&&(d[b]=i(M,g,!0))}function s(d){d&&((typeof d.title=="string"||typeof d.title=="number")&&(d.title={text:d.title}),b("titlefont","font"),b("titleposition","position"),b("titleside","side"),b("titleoffset","offset"));function b(M,g){var k=d[M],L=d.title&&d.title[g];k&&!L&&(d.title||(d.title={}),d.title[g]=d[M],delete d[M])}}G.cleanData=function(d){for(var b=0;b0)return d.substr(0,b)}G.hasParent=function(d,b){for(var M=l(b);M;){if(M in d)return!0;M=l(M)}return!1};var h=["x","y","z"];G.clearAxisTypes=function(d,b,M){for(var g=0;g1&&t.warn("Full array edits are incompatible with other edits",n);var d=o[""][""];if(c(d))r.set(null);else if(Array.isArray(d))r.set(d);else return t.warn("Unrecognized full array edit value",n,d),!0;return v?!1:(m(l,h),x(i),!0)}var b=Object.keys(o).map(Number).sort(E),M=r.get(),g=M||[],k=s(h,n).get(),L=[],u=-1,T=g.length,C,_,F,O,j,B,U,P;for(C=0;Cg.length-(U?0:1)){t.warn("index out of range",n,F);continue}if(B!==void 0)j.length>1&&t.warn("Insertion & removal are incompatible with edits to the same index.",n,F),c(B)?L.push(F):U?(B==="add"&&(B={}),g.splice(F,0,B),k&&k.splice(F,0,{})):t.warn("Unrecognized full object edit value",n,F,B),u===-1&&(u=F);else for(_=0;_=0;C--)g.splice(L[C],1),k&&k.splice(L[C],1);if(g.length?M||r.set(g):r.set(null),v)return!1;if(m(l,h),f!==A){var N;if(u===-1)N=b;else{for(T=Math.max(g.length,T),N=[],C=0;C=u));C++)N.push(F);for(C=u;C=_t.data.length||Ut<-_t.data.length)throw Error(Mt+" must be valid indices for gd.data.");if(It.indexOf(Ut,Ct+1)>-1||Ut>=0&&It.indexOf(-_t.data.length+Ut)>-1||Ut<0&&It.indexOf(_t.data.length+Ut)>-1)throw Error("each index in "+Mt+" must be unique.")}}function V(_t,It,Mt){if(!Array.isArray(_t.data))throw Error("gd.data must be an array.");if(It===void 0)throw Error("currentIndices is a required argument.");if(Array.isArray(It)||(It=[It]),N(_t,It,"currentIndices"),Mt!==void 0&&!Array.isArray(Mt)&&(Mt=[Mt]),Mt!==void 0&&N(_t,Mt,"newIndices"),Mt!==void 0&&It.length!==Mt.length)throw Error("current and new indices must be of equal length.")}function Y(_t,It,Mt){var Ct,Ut;if(!Array.isArray(_t.data))throw Error("gd.data must be an array.");if(It===void 0)throw Error("traces must be defined.");for(Array.isArray(It)||(It=[It]),Ct=0;Ct=0&&Ne=0&&Ne-1&&Zt.indexOf("grouptitlefont")===-1?Be(Zt,Zt.replace("titlefont","title.font")):Zt.indexOf("titleposition")>-1?Be(Zt,Zt.replace("titleposition","title.position")):Zt.indexOf("titleside")>-1?Be(Zt,Zt.replace("titleside","title.side")):Zt.indexOf("titleoffset")>-1&&Be(Zt,Zt.replace("titleoffset","title.offset"));function Be(ge,Ee){_t[Ee]=_t[ge],delete _t[ge]}}function Lt(_t,It,Mt){_t=E.getGraphDiv(_t),b.clearPromiseQueue(_t);var Ct={};if(typeof It=="string")Ct[It]=Mt;else if(E.isPlainObject(It))Ct=E.extendFlat({},It);else return E.warn("Relayout fail.",It,Mt),Promise.reject();Object.keys(Ct).length&&(_t.changed=!0);var Ut=Et(_t,Ct),Zt=Ut.flags;Zt.calc&&(_t.calcdata=void 0);var Me=[o.previousPromises];Zt.layoutReplot?Me.push(M.layoutReplot):Object.keys(Ct).length&&(St(_t,Zt,Ut)||o.supplyDefaults(_t),Zt.legend&&Me.push(M.doLegend),Zt.layoutstyle&&Me.push(M.layoutStyles),Zt.axrange&&Ot(Me,Ut.rangesAltered),Zt.ticks&&Me.push(M.doTicksRelayout),Zt.modebar&&Me.push(M.doModeBar),Zt.camera&&Me.push(M.doCamera),Zt.colorbars&&Me.push(M.doColorBars),Me.push(C)),Me.push(o.rehover,o.redrag,o.reselect),c.add(_t,Lt,[_t,Ut.undoit],Lt,[_t,Ut.redoit]);var Be=E.syncOrAsync(Me,_t);return(!Be||!Be.then)&&(Be=Promise.resolve(_t)),Be.then(function(){return _t.emit("plotly_relayout",Ut.eventData),_t})}function St(_t,It,Mt){var Ct=_t._fullLayout;if(!It.axrange)return!1;for(var Ut in It)if(Ut!=="axrange"&&It[Ut])return!1;var Zt,Me,Be=function(He,or){return E.coerce(Zt,Me,n,He,or)},ge={};for(var Ee in Mt.rangesAltered){var Ne=a.id2name(Ee);if(Zt=_t.layout[Ne],Me=Ct[Ne],s(Zt,Me,Be,ge),Me._matchGroup){for(var sr in Me._matchGroup)if(sr!==Ee){var _e=Ct[a.id2name(sr)];_e.autorange=Me.autorange,_e.range=Me.range.slice(),_e._input.range=Me.range.slice()}}}return!0}function Ot(_t,It){var Mt=It?function(Ct){var Ut=[],Zt=!0;for(var Me in It){var Be=a.getFromId(Ct,Me);if(Ut.push(Me),(Be.ticklabelposition||"").indexOf("inside")!==-1&&Be._anchorAxis&&Ut.push(Be._anchorAxis._id),Be._matchGroup)for(var ge in Be._matchGroup)It[ge]||Ut.push(ge)}return a.draw(Ct,Ut,{skipTitle:Zt})}:function(Ct){return a.draw(Ct,"redraw")};_t.push(l,M.doAutoRangeAndConstraints,Mt,M.drawData,M.finalDraw)}var Ht=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Kt=/^[xyz]axis[0-9]*\.autorange$/,Gt=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Et(_t,It){var Mt=_t.layout,Ct=_t._fullLayout,Ut=Ct._guiEditing,Zt=X(Ct._preGUI,Ut),Me=Object.keys(It),Be=a.list(_t),ge=E.extendDeepAll({},It),Ee={},Ne,sr,_e;for(kt(It),Me=Object.keys(It),sr=0;sr0&&typeof $e.parts[Cr]!="string";)Cr--;var Sr=$e.parts[Cr],Dr=$e.parts[Cr-1]+"."+Sr,Or=$e.parts.slice(0,Cr).join("."),ei=w(_t.layout,Or).get(),Nr=w(Ct,Or).get(),re=$e.get();if(yr!==void 0){ue[We]=yr,we[We]=Sr==="reverse"?yr:rt(re);var ae=r.getLayoutValObject(Ct,$e.parts);if(ae&&ae.impliedEdits&&yr!==null)for(var wr in ae.impliedEdits)Ce(E.relativeAttr(We,wr),ae.impliedEdits[wr]);if(["width","height"].indexOf(We)!==-1)if(yr){Ce("autosize",null);var _r=We==="height"?"width":"height";Ce(_r,Ct[_r])}else Ct[We]=_t._initialAutoSize[We];else if(We==="autosize")Ce("width",yr?null:Ct.width),Ce("height",yr?null:Ct.height);else if(Dr.match(Ht))ar(Dr),w(Ct,Or+"._inputRange").set(null);else if(Dr.match(Kt)){ar(Dr),w(Ct,Or+"._inputRange").set(null);var lr=w(Ct,Or).get();lr._inputDomain&&(lr._input.domain=lr._inputDomain.slice())}else Dr.match(Gt)&&w(Ct,Or+"._inputDomain").set(null);if(Sr==="type"){Ke=ei;var qe=Nr.type==="linear"&&yr==="log",pr=Nr.type==="log"&&yr==="linear";if(qe||pr){if(!Ke||!Ke.range)Ce(Or+".autorange",!0);else if(Nr.autorange)qe&&(Ke.range=Ke.range[1]>Ke.range[0]?[1,2]:[2,1]);else{var xr=Ke.range[0],fr=Ke.range[1];qe?(xr<=0&&fr<=0&&Ce(Or+".autorange",!0),xr<=0?xr=fr/1e6:fr<=0&&(fr=xr/1e6),Ce(Or+".range[0]",Math.log(xr)/Math.LN10),Ce(Or+".range[1]",Math.log(fr)/Math.LN10)):(Ce(Or+".range[0]",10**xr),Ce(Or+".range[1]",10**fr))}Array.isArray(Ct._subplots.polar)&&Ct._subplots.polar.length&&Ct[$e.parts[0]]&&$e.parts[1]==="radialaxis"&&delete Ct[$e.parts[0]]._subplot.viewInitial["radialaxis.range"],i.getComponentMethod("annotations","convertCoords")(_t,Nr,yr,Ce),i.getComponentMethod("images","convertCoords")(_t,Nr,yr,Ce)}else Ce(Or+".autorange",!0),Ce(Or+".range",null);w(Ct,Or+"._inputRange").set(null)}else if(Sr.match(k)){var ur=w(Ct,We).get(),Br=(yr||{}).type;(!Br||Br==="-")&&(Br="linear"),i.getComponentMethod("annotations","convertCoords")(_t,ur,Br,Ce),i.getComponentMethod("images","convertCoords")(_t,ur,Br,Ce)}var $r=d.containerArrayMatch(We);if($r){Ne=$r.array,sr=$r.index;var Jr=$r.property,Zi=ae||{editType:"calc"};sr!==""&&Jr===""&&(d.isAddVal(yr)?we[We]=null:d.isRemoveVal(yr)?we[We]=(w(Mt,Ne).get()||[])[sr]:E.warn("unrecognized full object value",It)),g.update(br,Zi),Ee[Ne]||(Ee[Ne]={});var mi=Ee[Ne][sr];mi||(mi=Ee[Ne][sr]={}),mi[Jr]=yr,delete It[We]}else Sr==="reverse"?(ei.range?ei.range.reverse():(Ce(Or+".autorange",!0),ei.range=[1,0]),Nr.autorange?br.calc=!0:br.plot=!0):(We==="dragmode"&&(yr===!1&&re!==!1||yr!==!1&&re===!1)||Ct._has("scatter-like")&&Ct._has("regl")&&We==="dragmode"&&(yr==="lasso"||yr==="select")&&!(re==="lasso"||re==="select")||Ct._has("gl2d")?br.plot=!0:ae?g.update(br,ae):br.calc=!0,$e.set(yr))}}for(Ne in Ee)d.applyContainerArrayChanges(_t,Zt(Mt,Ne),Ee[Ne],br,Zt)||(br.plot=!0);for(var Ei in Ge){Ke=a.getFromId(_t,Ei);var Di=Ke&&Ke._constraintGroup;if(Di)for(var Tr in br.calc=!0,Di)Ge[Tr]||(a.getFromId(_t,Tr)._constraintShrinkable=!0)}(At(_t)||It.height||It.width)&&(br.plot=!0);var Vr=Ct.shapes;for(sr=0;sr1;)if(Ct.pop(),Mt=w(It,Ct.join(".")+".uirevision").get(),Mt!==void 0)return Mt;return It.uirevision}function ve(_t,It){for(var Mt=0;Mt=Ut.length?Ut[0]:Ut[Ee]:Ut}function Be(Ee){return Array.isArray(Zt)?Ee>=Zt.length?Zt[0]:Zt[Ee]:Zt}function ge(Ee,Ne){var sr=0;return function(){if(Ee&&++sr===Ne)return Ee()}}return new Promise(function(Ee,Ne){function sr(){if(Ct._frameQueue.length!==0){for(;Ct._frameQueue.length;){var Sr=Ct._frameQueue.pop();Sr.onInterrupt&&Sr.onInterrupt()}_t.emit("plotly_animationinterrupted",[])}}function _e(Sr){if(Sr.length!==0){for(var Dr=0;DrCt._timeToNext&&or()};Sr()}var br=0;function ue(Sr){return Array.isArray(Ut)?br>=Ut.length?Sr.transitionOpts=Ut[br]:Sr.transitionOpts=Ut[0]:Sr.transitionOpts=Ut,br++,Sr}var we,Ce,Ge=[],Ke=It==null,ar=Array.isArray(It);if(!Ke&&!ar&&E.isPlainObject(It))Ge.push({type:"object",data:ue(E.extendFlat({},It))});else if(Ke||["string","number"].indexOf(typeof It)!==-1)for(we=0;we0&&yryr)&&Cr.push(Ce);Ge=Cr}}Ge.length>0?_e(Ge):(_t.emit("plotly_animated"),Ee())})}function ee(_t,It,Mt){if(_t=E.getGraphDiv(_t),It==null)return Promise.resolve();if(!E.isPlotDiv(_t))throw Error("This element is not a Plotly plot: "+_t+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Ct,Ut,Zt,Me,Be=_t._transitionData._frames,ge=_t._transitionData._frameHash;if(!Array.isArray(It))throw Error("addFrames failure: frameList must be an Array of frame definitions"+It);var Ee=Be.length+It.length*2,Ne=[],sr={};for(Ct=It.length-1;Ct>=0;Ct--)if(E.isPlainObject(It[Ct])){var _e=It[Ct].name,He=(ge[_e]||sr[_e]||{}).name,or=It[Ct].name,Pr=ge[He]||sr[He];He&&or&&typeof or=="number"&&Pr&&L$e.index?-1:We.index<$e.index?1:0});var br=[],ue=[],we=Be.length;for(Ct=Ne.length-1;Ct>=0;Ct--){if(Ut=Ne[Ct].frame,typeof Ut.name=="number"&&E.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ut.name)for(;ge[Ut.name="frame "+_t._transitionData._counter++];);if(ge[Ut.name]){for(Zt=0;Zt=0;Mt--)Ct=It[Mt],Zt.push({type:"delete",index:Ct}),Me.unshift({type:"insert",index:Ct,value:Ut[Ct]});var Be=o.modifyFrames,ge=o.modifyFrames,Ee=[_t,Me],Ne=[_t,Zt];return c&&c.add(_t,Be,Ee,ge,Ne),o.modifyFrames(_t,Zt)}function Wt(_t){_t=E.getGraphDiv(_t);var It=_t._fullLayout||{},Mt=_t._fullData||[];return o.cleanPlot([],{},Mt,It),o.purge(_t),p.purge(_t),It._container&&It._container.remove(),delete _t._context,_t}function $t(_t){var It=_t._fullLayout,Mt=_t.getBoundingClientRect();if(!E.equalDomRects(Mt,It._lastBBox)){var Ct=It._invTransform=E.inverseTransformMatrix(E.getFullTransformMatrix(_t));It._invScaleX=Math.sqrt(Ct[0][0]*Ct[0][0]+Ct[0][1]*Ct[0][1]+Ct[0][2]*Ct[0][2]),It._invScaleY=Math.sqrt(Ct[1][0]*Ct[1][0]+Ct[1][1]*Ct[1][1]+Ct[1][2]*Ct[1][2]),It._lastBBox=Mt}}function Tt(_t){var It=S.select(_t),Mt=_t._fullLayout;if(Mt._calcInverseTransform=$t,Mt._calcInverseTransform(_t),Mt._container=It.selectAll(".plot-container").data([0]),Mt._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),Mt._paperdiv=Mt._container.selectAll(".svg-container").data([0]),Mt._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Mt._glcontainer=Mt._paperdiv.selectAll(".gl-container").data([{}]),Mt._glcontainer.enter().append("div").classed("gl-container",!0),Mt._paperdiv.selectAll(".main-svg").remove(),Mt._paperdiv.select(".modebar-container").remove(),Mt._paper=Mt._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Mt._toppaper=Mt._paperdiv.append("svg").classed("main-svg",!0),Mt._modebardiv=Mt._paperdiv.append("div"),delete Mt._modeBar,Mt._hoverpaper=Mt._paperdiv.append("svg").classed("main-svg",!0),!Mt._uid){var Ct={};S.selectAll("defs").each(function(){this.id&&(Ct[this.id.split("-")[1]]=1)}),Mt._uid=E.randstr(Ct)}Mt._paperdiv.selectAll(".main-svg").attr(v.svgAttrs),Mt._defs=Mt._paper.append("defs").attr("id","defs-"+Mt._uid),Mt._clips=Mt._defs.append("g").classed("clips",!0),Mt._topdefs=Mt._toppaper.append("defs").attr("id","topdefs-"+Mt._uid),Mt._topclips=Mt._topdefs.append("g").classed("clips",!0),Mt._bgLayer=Mt._paper.append("g").classed("bglayer",!0),Mt._draggers=Mt._paper.append("g").classed("draglayer",!0);var Ut=Mt._paper.append("g").classed("layer-below",!0);Mt._imageLowerLayer=Ut.append("g").classed("imagelayer",!0),Mt._shapeLowerLayer=Ut.append("g").classed("shapelayer",!0),Mt._cartesianlayer=Mt._paper.append("g").classed("cartesianlayer",!0),Mt._polarlayer=Mt._paper.append("g").classed("polarlayer",!0),Mt._smithlayer=Mt._paper.append("g").classed("smithlayer",!0),Mt._ternarylayer=Mt._paper.append("g").classed("ternarylayer",!0),Mt._geolayer=Mt._paper.append("g").classed("geolayer",!0),Mt._funnelarealayer=Mt._paper.append("g").classed("funnelarealayer",!0),Mt._pielayer=Mt._paper.append("g").classed("pielayer",!0),Mt._iciclelayer=Mt._paper.append("g").classed("iciclelayer",!0),Mt._treemaplayer=Mt._paper.append("g").classed("treemaplayer",!0),Mt._sunburstlayer=Mt._paper.append("g").classed("sunburstlayer",!0),Mt._indicatorlayer=Mt._toppaper.append("g").classed("indicatorlayer",!0),Mt._glimages=Mt._paper.append("g").classed("glimages",!0);var Zt=Mt._toppaper.append("g").classed("layer-above",!0);Mt._imageUpperLayer=Zt.append("g").classed("imagelayer",!0),Mt._shapeUpperLayer=Zt.append("g").classed("shapelayer",!0),Mt._selectionLayer=Mt._toppaper.append("g").classed("selectionlayer",!0),Mt._infolayer=Mt._toppaper.append("g").classed("infolayer",!0),Mt._menulayer=Mt._toppaper.append("g").classed("menulayer",!0),Mt._zoomlayer=Mt._toppaper.append("g").classed("zoomlayer",!0),Mt._hoverlayer=Mt._hoverpaper.append("g").classed("hoverlayer",!0),Mt._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),_t.emit("plotly_framework")}G.animate=te,G.addFrames=ee,G.deleteFrames=Bt,G.addTraces=Q,G.deleteTraces=Z,G.extendTraces=J,G.moveTraces=st,G.prependTraces=et,G.newPlot=U,G._doPlot=T,G.purge=Wt,G.react=be,G.redraw=B,G.relayout=Lt,G.restyle=ot,G.setPlotConfig=_,G.update=qt,G._guiRelayout=jt(Lt),G._guiRestyle=jt(ot),G._guiUpdate=jt(qt),G._storeDirectGUIEdit=lt}),24452:(function(tt){var G={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e={};function S(A,t){for(var E in A){var w=A[E];w.valType?t[E]=w.dflt:(t[E]||(t[E]={}),S(w,t[E]))}}S(G,e),tt.exports={configAttributes:G,dfltConfig:e}}),57297:(function(tt,G,e){var S=e(33626),A=e(34809),t=e(9829),E=e(6704),w=e(58935),p=e(49722),c=e(24452).configAttributes,i=e(13582),r=A.extendDeepAll,o=A.isPlainObject,a=A.isArrayOrTypedArray,s=A.nestedProperty,n=A.valObjectMeta,m="_isSubplotObj",x="_isLinkedToArray",f="_arrayAttrRegexps",v="_deprecated",l=[m,x,f,v];G.IS_SUBPLOT_OBJ=m,G.IS_LINKED_TO_ARRAY=x,G.DEPRECATED=v,G.UNDERSCORE_ATTRS=l,G.get=function(){var j={};S.allTypes.forEach(function(U){j[U]=M(U)});var B={};return Object.keys(S.transformsRegistry).forEach(function(U){B[U]=k(U)}),{defs:{valObjects:n,metaKeys:l.concat(["description","role","editType","impliedEdits"]),editType:{traces:i.traces,layout:i.layout},impliedEdits:{}},traces:j,layout:g(),transforms:B,frames:L(),animation:u(p),config:u(c)}},G.crawl=function(j,B,U,P){var N=U||0;P||(P=""),Object.keys(j).forEach(function(V){var Y=j[V];if(l.indexOf(V)===-1){var K=(P?P+".":"")+V;B(Y,V,j,N,K),!G.isValObject(Y)&&o(Y)&&V!=="impliedEdits"&&G.crawl(Y,B,N+1,K)}})},G.isValObject=function(j){return j&&j.valType!==void 0},G.findArrayAttributes=function(j){var B=[],U=[],P=[],N,V;function Y(et,Q,Z,st){U=U.slice(0,st).concat([Q]),P=P.slice(0,st).concat([et&&et._isLinkedToArray]),et&&(et.valType==="data_array"||et.arrayOk===!0)&&!(U[st-1]==="colorbar"&&(Q==="ticktext"||Q==="tickvals"))&&K(N,0,"")}function K(et,Q,Z){var st=et[U[Q]],ot=Z+U[Q];if(Q===U.length-1)a(st)&&B.push(V+ot);else if(P[Q]){if(Array.isArray(st))for(var rt=0;rt=Y.length)return!1;N=(S.transformsRegistry[Y[K].type]||{}).attributes,V=N&&N[B[2]],P=3}else{var nt=j._module;if(nt||(nt=(S.modules[j.type||t.type.dflt]||{})._module),!nt)return!1;if(N=nt.attributes,V=N&&N[U],!V){var ft=nt.basePlotModule;ft&&ft.attributes&&(V=ft.attributes[U])}V||(V=t[U])}return d(V,B,P)},G.getLayoutValObject=function(j,B){return d(h(j,B[0]),B,1)};function h(j,B){var U,P,N,V,Y=j._basePlotModules;if(Y){var K;for(U=0;U=V.length)return!1;if(j.dimensions===2){if(U++,B.length===U)return j;var Y=B[U];if(!b(Y))return!1;j=V[N][Y]}else j=V[N]}else j=V}}return j}function b(j){return j===Math.round(j)&&j>=0}function M(j){var B=S.modules[j]._module,U=B.basePlotModule,P={};P.type=null;var N=r({},t),V=r({},B.attributes);G.crawl(V,function(nt,ft,ct,J,et){s(N,et).set(void 0),nt===void 0&&s(V,et).set(void 0)}),r(P,N),S.traceIs(j,"noOpacity")&&delete P.opacity,S.traceIs(j,"showLegend")||(delete P.showlegend,delete P.legendgroup),S.traceIs(j,"noHover")&&(delete P.hoverinfo,delete P.hoverlabel),B.selectPoints||delete P.selectedpoints,r(P,V),U.attributes&&r(P,U.attributes),P.type=j;var Y={meta:B.meta||{},categories:B.categories||{},animatable:!!B.animatable,type:j,attributes:u(P)};if(B.layoutAttributes){var K={};r(K,B.layoutAttributes),Y.layoutAttributes=u(K)}return B.animatable||G.crawl(Y,function(nt){G.isValObject(nt)&&"anim"in nt&&delete nt.anim}),Y}function g(){var j={},B,U;for(B in r(j,E),S.subplotsRegistry)if(U=S.subplotsRegistry[B],U.layoutAttributes)if(Array.isArray(U.attr))for(var P=0;P=o&&(r._input||{})._templateitemname;s&&(a=o);var n=i+"["+a+"]",m;function x(){m={},s&&(m[n]={},m[n][t]=s)}x();function f(d,b){m[d]=b}function v(d,b){s?S.nestedProperty(m[n],d).set(b):m[n+"."+d]=b}function l(){var d=m;return x(),d}function h(d,b){d&&v(d,b);var M=l();for(var g in M)S.nestedProperty(c,g).set(M[g])}return{modifyBase:f,modifyItem:v,getUpdateObj:l,applyUpdate:h}}}),71817:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(44122),E=e(34809),w=e(30635),p=e(34823),c=e(78766),i=e(62203),r=e(17240),o=e(95433),a=e(29714),s=e(4530),n=e(84391),m=n.enforce,x=n.clean,f=e(32919).doAutoRange,v="start",l="middle",h="end",d=e(54826).zindexSeparator;G.layoutStyles=function(P){return E.syncOrAsync([t.doAutoMargin,M],P)};function b(P,N,V){for(var Y=0;Y=P[1]||K[1]<=P[0])&&nt[0]N[0])return!0}return!1}function M(P){var N=P._fullLayout,V=N._size,Y=V.p,K=a.list(P,"",!0),nt,ft,ct,J,et,Q;if(N._paperdiv.style({width:P._context.responsive&&N.autosize&&!P._context._hasZeroWidth&&!P.layout.width?"100%":N.width+"px",height:P._context.responsive&&N.autosize&&!P._context._hasZeroHeight&&!P.layout.height?"100%":N.height+"px"}).selectAll(".main-svg").call(i.setSize,N.width,N.height),P._context.setBackground(P,N.paper_bgcolor),G.drawMainTitle(P),o.manage(P),!N._has("cartesian"))return t.previousPromises(P);function Z($t,Tt,_t){var It=$t._lw/2;if($t._id.charAt(0)==="x"){if(Tt){if(_t==="top")return Tt._offset-Y-It}else return V.t+V.h*(1-($t.position||0))+It%1;return Tt._offset+Tt._length+Y+It}if(Tt){if(_t==="right")return Tt._offset+Tt._length+Y+It}else return V.l+V.w*($t.position||0)+It%1;return Tt._offset-Y-It}for(nt=0;nt0){_(P,nt,et,J),ct.attr({x:ft,y:nt,"text-anchor":Y,dy:j(N.yanchor)}).call(w.positionText,ft,nt);var Q=(N.text.match(w.BR_TAG_ALL)||[]).length;if(Q){var Z=s.LINE_SPACING*Q+s.MID_SHIFT;N.y===0&&(Z=-Z),ct.selectAll(".line").each(function(){var X=+this.getAttribute("dy").slice(0,-2)-Z+"em";this.setAttribute("dy",X)})}var st=S.selectAll(".gtitle-subtitle");if(st.node()){var ot=ct.node().getBBox(),rt=ot.y+ot.height+r.SUBTITLE_PADDING_EM*N.subtitle.font.size;st.attr({x:ft,y:rt,"text-anchor":Y,dy:j(N.yanchor)}).call(w.positionText,ft,rt)}}}};function u(P,N,V,Y,K){var nt=N.yref==="paper"?P._fullLayout._size.h:P._fullLayout.height,ft=E.isTopAnchor(N)?Y:Y-K,ct=V==="b"?nt-ft:ft;return E.isTopAnchor(N)&&V==="t"||E.isBottomAnchor(N)&&V==="b"?!1:ct.5?"t":"b",ft=P._fullLayout.margin[nt],ct=0;return N.yref==="paper"?ct=V+N.pad.t+N.pad.b:N.yref==="container"&&(ct=T(nt,Y,K,P._fullLayout.height,V)+N.pad.t+N.pad.b),ct>ft?ct:0}function _(P,N,V,Y){var K="title.automargin",nt=P._fullLayout.title,ft=nt.y>.5?"t":"b",ct={x:nt.x,y:nt.y,t:0,b:0},J={};nt.yref==="paper"&&u(P,nt,ft,N,Y)?ct[ft]=V:nt.yref==="container"&&(J[ft]=V,P._fullLayout._reservedMargin[K]=J),t.allowAutoMargin(P,K),t.autoMargin(P,K,ct)}function F(P,N){var V=P.title,Y=P._size,K=0;return(N===v?K=V.pad.l:N===h&&(K=-V.pad.r),V.xref)==="paper"?Y.l+Y.w*V.x+K:P.width*V.x+K}function O(P,N){var V=P.title,Y=P._size,K=0;return N==="0em"||!N?K=-V.pad.b:N===s.CAP_SHIFT+"em"&&(K=V.pad.t),V.y==="auto"?Y.t/2:V.yref==="paper"?Y.t+Y.h-Y.h*V.y+K:P.height-P.height*V.y+K}function j(P){return P==="top"?s.CAP_SHIFT+.3+"em":P==="bottom"?"-0.3em":s.MID_SHIFT+"em"}function B(P){var N=P.title,V=l;return E.isRightAnchor(N)?V=h:E.isLeftAnchor(N)&&(V=v),V}function U(P){var N=P.title,V="0em";return E.isTopAnchor(N)?V=s.CAP_SHIFT+"em":E.isMiddleAnchor(N)&&(V=s.MID_SHIFT+"em"),V}G.doTraceStyle=function(P){var N=P.calcdata,V=[],Y;for(Y=0;YB?M.push({code:"unused",traceType:_,templateCount:j,dataCount:B}):B>j&&M.push({code:"reused",traceType:_,templateCount:j,dataCount:B})}}function U(P,N){for(var V in P)if(V.charAt(0)!=="_"){var Y=P[V],K=n(P,V,N);A(Y)?(Array.isArray(P)&&Y._template===!1&&Y.templateitemname&&M.push({code:"missing",path:K,templateitemname:Y.templateitemname}),U(Y,K)):Array.isArray(Y)&&m(Y)&&U(Y,K)}}if(U({data:k,layout:g},""),M.length)return M.map(x)};function m(f){for(var v=0;v1&&b.push(s("object","layout"))),A.supplyDefaults(M);for(var L=M._fullData,u=g.length,T=0;T_.length&&b.push(s("unused",M,T.concat(_.length)));var P=_.length,N=Array.isArray(U);N&&(P=Math.min(P,U.length));var V,Y,K,nt,ft;if(F.dimensions===2)for(Y=0;Y_[Y].length&&b.push(s("unused",M,T.concat(Y,_[Y].length)));var ct=_[Y].length;for(V=0;V<(N?Math.min(ct,U[Y].length):ct);V++)K=N?U[Y][V]:U,nt=C[Y][V],ft=_[Y][V],S.validate(nt,K)?ft!==nt&&ft!==+nt&&b.push(s("dynamic",M,T.concat(Y,V),nt,ft)):b.push(s("value",M,T.concat(Y,V),nt))}else b.push(s("array",M,T.concat(Y),C[Y]));else for(Y=0;Y0&&Math.round(n)===n)s=n;else return{vals:r}}for(var m=c.calendar,x=o==="start",f=o==="end",v=p[i+"period0"],l=t(v,m)||0,h=[],d=[],b=[],M=r.length,g=0;gk;)T=E(T,-s,m);for(;T<=k;)T=E(T,s,m);u=E(T,-s,m)}else{for(L=Math.round((k-l)/a),T=l+L*a;T>k;)T-=a;for(;T<=k;)T+=a;u=T-a}h[g]=x?u:f?T:(u+T)/2,d[g]=u,b[g]=T}return{vals:h,starts:d,ends:b}}}),55126:(function(tt){tt.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}}),32919:(function(tt,G,e){var S=e(45568),A=e(10721),t=e(34809),E=e(63821).FP_SAFE,w=e(33626),p=e(62203),c=e(5975),i=c.getFromId,r=c.isLinked;tt.exports={applyAutorangeOptions:T,getAutoRange:o,makePadFn:s,doAutoRange:f,findExtremes:v,concatExtremes:x};function o(C,_){var F,O,j=[],B=C._fullLayout,U=s(B,_,0),P=s(B,_,1),N=x(C,_),V=N.min,Y=N.max;if(V.length===0||Y.length===0)return t.simpleMap(_.range,_.r2l);var K=V[0].val,nt=Y[0].val;for(F=1;F0&&(kt=st-U(X)-P(ut),kt>ot?Lt/kt>rt&&(lt=X,yt=ut,rt=Lt/kt):Lt/st>rt&&(lt={val:X.val,nopad:1},yt={val:ut.val,nopad:1},rt=Lt/st));function St(Et,At){return Math.max(Et,P(At))}if(K===nt){var Ot=K-1,Ht=K+1;if(Q)if(K===0)j=[0,1];else{var Kt=(K>0?Y:V).reduce(St,0),Gt=K/(1-Math.min(.5,Kt/st));j=K>0?[0,Gt]:[Gt,0]}else j=Z?[Math.max(0,Ot),Math.max(1,Ht)]:[Ot,Ht]}else Q?(lt.val>=0&&(lt={val:0,nopad:1}),yt.val<=0&&(yt={val:0,nopad:1})):Z&&(lt.val-rt*U(lt)<0&&(lt={val:0,nopad:1}),yt.val<=0&&(yt={val:1,nopad:1})),rt=(yt.val-lt.val-a(_,X.val,ut.val))/(st-U(lt)-P(yt)),j=[lt.val-rt*U(lt),yt.val+rt*P(yt)];return j=T(j,_),_.limitRange&&_.limitRange(),ct&&j.reverse(),t.simpleMap(j,_.l2r||Number)}function a(C,_,F){var O=0;if(C.rangebreaks)for(var j=C.locateBreaks(_,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=ot((C._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),ut=ot(F.vpadplus||F.vpad),lt=ot(F.vpadminus||F.vpad);if(!V){if(Z=1/0,st=-1/0,N)for(K=0;K0&&(Z=nt),nt>st&&nt-E&&(Z=nt),nt>st&&nt=Lt;K--)kt(K);return{min:O,max:j,opts:F}}function l(C,_,F,O){d(C,_,F,O,M)}function h(C,_,F,O){d(C,_,F,O,g)}function d(C,_,F,O,j){for(var B=O.tozero,U=O.extrapad,P=!0,N=0;N=F&&(V.extrapad||!U)){P=!1;break}else j(_,V.val)&&V.pad<=F&&(U||!V.extrapad)&&(C.splice(N,1),N--)}if(P){var Y=B&&_===0;C.push({val:_,pad:Y?0:F,extrapad:Y?!1:U})}}function b(C){return A(C)&&Math.abs(C)=_}function k(C,_){var F=_.autorangeoptions;return F&&F.minallowed!==void 0&&u(_,F.minallowed,F.maxallowed)?F.minallowed:F&&F.clipmin!==void 0&&u(_,F.clipmin,F.clipmax)?Math.max(C,_.d2l(F.clipmin)):C}function L(C,_){var F=_.autorangeoptions;return F&&F.maxallowed!==void 0&&u(_,F.minallowed,F.maxallowed)?F.maxallowed:F&&F.clipmax!==void 0&&u(_,F.clipmin,F.clipmax)?Math.min(C,_.d2l(F.clipmax)):C}function u(C,_,F){return _!==void 0&&F!==void 0?(_=C.d2l(_),F=C.d2l(F),_=N&&(B=N,F=N),U<=N&&(U=N,O=N)}}return F=k(F,_),O=L(O,_),[F,O]}}),75511:(function(tt){tt.exports=function(G,e,S){var A,t;if(S){var E=e==="reversed"||e==="min reversed"||e==="max reversed";A=S[E?1:0],t=S[E?0:1]}var w=G("autorangeoptions.minallowed",t===null?A:void 0),p=G("autorangeoptions.maxallowed",A===null?t:void 0);w===void 0&&G("autorangeoptions.clipmin"),p===void 0&&G("autorangeoptions.clipmax"),G("autorangeoptions.include")}}),29714:(function(tt,G,e){var S=e(45568),A=e(10721),t=e(44122),E=e(33626),w=e(34809),p=w.strTranslate,c=e(30635),i=e(17240),r=e(78766),o=e(62203),a=e(25829),s=e(68599),n=e(63821),m=n.ONEMAXYEAR,x=n.ONEAVGYEAR,f=n.ONEMINYEAR,v=n.ONEMAXQUARTER,l=n.ONEAVGQUARTER,h=n.ONEMINQUARTER,d=n.ONEMAXMONTH,b=n.ONEAVGMONTH,M=n.ONEMINMONTH,g=n.ONEWEEK,k=n.ONEDAY,L=k/2,u=n.ONEHOUR,T=n.ONEMIN,C=n.ONESEC,_=n.ONEMILLI,F=n.ONEMICROSEC,O=n.MINUS_SIGN,j=n.BADNUM,B={K:"zeroline"},U={K:"gridline",L:"path"},P={K:"minor-gridline",L:"path"},N={K:"tick",L:"path"},V={K:"tick",L:"text"},Y={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},K=e(4530),nt=K.MID_SHIFT,ft=K.CAP_SHIFT,ct=K.LINE_SPACING,J=K.OPPOSITE_SIDE,et=3,Q=tt.exports={};Q.setConvert=e(19091);var Z=e(9666),st=e(5975),ot=st.idSort,rt=st.isLinked;Q.id2name=st.id2name,Q.name2id=st.name2id,Q.cleanId=st.cleanId,Q.list=st.list,Q.listIds=st.listIds,Q.getFromId=st.getFromId,Q.getFromTrace=st.getFromTrace;var X=e(32919);Q.getAutoRange=X.getAutoRange,Q.findExtremes=X.findExtremes;var ut=1e-4;function lt(re){var ae=(re[1]-re[0])*ut;return[re[0]-ae,re[1]+ae]}Q.coerceRef=function(re,ae,wr,_r,lr,qe){var pr=_r.charAt(_r.length-1),xr=wr._fullLayout._subplots[pr+"axis"],fr=_r+"ref",ur={};return lr||(lr=xr[0]||(typeof qe=="string"?qe:qe[0])),qe||(qe=lr),xr=xr.concat(xr.map(function(Br){return Br+" domain"})),ur[fr]={valType:"enumerated",values:xr.concat(qe?typeof qe=="string"?[qe]:qe:[]),dflt:lr},w.coerce(re,ae,ur,fr)},Q.getRefType=function(re){return re===void 0?re:re==="paper"?"paper":re==="pixel"?"pixel":/( domain)$/.test(re)?"domain":"range"},Q.coercePosition=function(re,ae,wr,_r,lr,qe){var pr,xr;if(Q.getRefType(_r)!=="range")pr=w.ensureNumber,xr=wr(lr,qe);else{var fr=Q.getFromId(ae,_r);qe=fr.fraction2r(qe),xr=wr(lr,qe),pr=fr.cleanPos}re[lr]=pr(xr)},Q.cleanPosition=function(re,ae,wr){return(wr==="paper"||wr==="pixel"?w.ensureNumber:Q.getFromId(ae,wr).cleanPos)(re)},Q.redrawComponents=function(re,ae){ae||(ae=Q.listIds(re));var wr=re._fullLayout;function _r(lr,qe,pr,xr){for(var fr=E.getComponentMethod(lr,qe),ur={},Br=0;Br2e-6||((wr-re._forceTick0)/re._minDtick%1+1.000001)%1>2e-6)&&(re._minDtick=0))},Q.saveRangeInitial=function(re,ae){for(var wr=Q.list(re,"",!0),_r=!1,lr=0;lr$r*.3||ur(_r)||ur(lr))){var Jr=wr.dtick/2;re+=re+Jr<_r?Jr:-Jr}return re}function Ot(re,ae,wr,_r,lr){var qe=w.findExactDates(ae,lr),pr=.8;if(qe.exactDays>pr){var xr=Number(wr.substr(1));qe.exactYears>pr&&xr%12==0?re=Q.tickIncrement(re,"M6","reverse")+k*1.5:qe.exactMonths>pr?re=Q.tickIncrement(re,"M1","reverse")+k*15.5:re-=L;var fr=Q.tickIncrement(re,wr);if(fr<=_r)return fr}return re}Q.prepMinorTicks=function(re,ae,wr){if(!ae.minor.dtick){delete re.dtick;var _r=ae.dtick&&A(ae._tmin),lr;if(_r){var qe=Q.tickIncrement(ae._tmin,ae.dtick,!0);lr=[ae._tmin,qe*.99+ae._tmin*.01]}else{var pr=w.simpleMap(ae.range,ae.r2l);lr=[pr[0],.8*pr[0]+.2*pr[1]]}if(re.range=w.simpleMap(lr,ae.l2r),re._isMinor=!0,Q.prepTicks(re,wr),_r){var xr=A(ae.dtick),fr=A(re.dtick),ur=xr?ae.dtick:+ae.dtick.substring(1),Br=fr?re.dtick:+re.dtick.substring(1);xr&&fr?Ht(ur,Br)?ur===2*g&&Br===2*k&&(re.dtick=g):ur===2*g&&Br===3*k?re.dtick=g:ur===g&&!(ae._input.minor||{}).nticks?re.dtick=k:Kt(ur/Br,2.5)?re.dtick=ur/2:re.dtick=ur:String(ae.dtick).charAt(0)==="M"?fr?re.dtick="M1":Ht(ur,Br)?ur>=12&&Br===2&&(re.dtick="M3"):re.dtick=ae.dtick:String(re.dtick).charAt(0)==="L"?String(ae.dtick).charAt(0)==="L"?Ht(ur,Br)||(re.dtick=Kt(ur/Br,2.5)?ae.dtick/2:ae.dtick):re.dtick="D1":re.dtick==="D2"&&+ae.dtick>1&&(re.dtick=1)}re.range=ae.range}ae.minor._tick0Init===void 0&&(re.tick0=ae.tick0)};function Ht(re,ae){return Math.abs((re/ae+.5)%1-.5)<.001}function Kt(re,ae){return Math.abs(re/ae-1)<.001}Q.prepTicks=function(re,ae){var wr=w.simpleMap(re.range,re.r2l,void 0,void 0,ae);if(re.tickmode==="auto"||!re.dtick){var _r=re.nticks,lr;_r||(re.type==="category"||re.type==="multicategory"?(lr=re.tickfont?w.bigFont(re.tickfont.size||12):15,_r=re._length/lr):(lr=re._id.charAt(0)==="y"?40:80,_r=w.constrain(re._length/lr,4,9)+1),re._name==="radialaxis"&&(_r*=2)),re.minor&&re.minor.tickmode!=="array"||re.tickmode==="array"&&(_r*=100),re._roughDTick=Math.abs(wr[1]-wr[0])/_r,Q.autoTicks(re,re._roughDTick),re._minDtick>0&&re.dtick0?(qe=_r-1,pr=_r):(qe=_r,pr=_r);var xr=re[qe].value,fr=re[pr].value,ur=Math.abs(fr-xr),Br=wr||ur,$r=0;Br>=f?$r=ur>=f&&ur<=m?ur:x:wr===l&&Br>=h?$r=ur>=h&&ur<=v?ur:l:Br>=M?$r=ur>=M&&ur<=d?ur:b:wr===g&&Br>=g?$r=g:Br>=k?$r=k:wr===L&&Br>=L?$r=L:wr===u&&Br>=u&&($r=u);var Jr;$r>=ur&&($r=ur,Jr=!0);var Zi=lr+$r;if(ae.rangebreaks&&$r>0){for(var mi=84,Ei=0,Di=0;Dig&&($r=ur)}($r>0||_r===0)&&(re[_r].periodX=lr+$r/2)}}Q.calcTicks=function(re,ae){for(var wr=re.type,_r=re.calendar,lr=re.ticklabelstep,qe=re.ticklabelmode==="period",pr=re.range[0]>re.range[1],xr=!re.ticklabelindex||w.isArrayOrTypedArray(re.ticklabelindex)?re.ticklabelindex:[re.ticklabelindex],fr=w.simpleMap(re.range,re.r2l,void 0,void 0,ae),ur=fr[1]=(Vr?0:1);li--){var ci=!li;li?(re._dtickInit=re.dtick,re._tick0Init=re.tick0):(re.minor._dtickInit=re.minor.dtick,re.minor._tick0Init=re.minor.tick0);var Ni=li?re:w.extendFlat({},re,re.minor);if(ci?Q.prepMinorTicks(Ni,re,ae):Q.prepTicks(Ni,ae),Ni.tickmode==="array"){li?(Ei=[],Zi=de(re,!ci)):(Di=[],mi=de(re,!ci));continue}if(Ni.tickmode==="sync"){Ei=[],Zi=jt(re);continue}var si=lt(fr),Ci=si[0],wi=si[1],ma=A(Ni.dtick),Ha=wr==="log"&&!(ma||Ni.dtick.charAt(0)==="L"),ya=Q.tickFirst(Ni,ae);if(li){if(re._tmin=ya,ya=wi:Ea<=wi;Ea=Q.tickIncrement(Ea,ji,ur,_r)){if(li&&Fa++,Ni.rangebreaks&&!ur){if(Ea=$r)break}if(Ei.length>Jr||Ea===Ga)break;Ga=Ea;var Li={value:Ea};li?(Ha&&Ea!==(Ea|0)&&(Li.simpleLabel=!0),lr>1&&Fa%lr&&(Li.skipLabel=!0),Ei.push(Li)):(Li.minor=!0,Di.push(Li))}}if(!Di||Di.length<2?xr=!1:Nr((Di[1].value-Di[0].value)*(pr?-1:1),re.tickformat)||(xr=!1),!xr)Tr=Ei;else{var Si=Ei.concat(Di);qe&&Ei.length&&(Si=Si.slice(1)),Si=Si.sort(function(_i,ua){return _i.value-ua.value}).filter(function(_i,ua,ea){return ua===0||_i.value!==ea[ua-1].value}),Si.map(function(_i,ua){return _i.minor===void 0&&!_i.skipLabel?ua:null}).filter(function(_i){return _i!==null}).forEach(function(_i){xr.map(function(ua){var ea=_i+ua;ea>=0&&ea-1;hr--){if(Ei[hr].drop){Ei.splice(hr,1);continue}Ei[hr].value=Cr(Ei[hr].value,re);var Oi=re.c2p(Ei[hr].value);(jr?Hi>Oi-Ii:Hi$r||zi$r&&(ea.periodX=$r),zi_r&&$rx)ae/=x,_r=lr(10),re.dtick="M"+12*be(ae,_r,Xt);else if(qe>b)ae/=b,re.dtick="M"+be(ae,1,ye);else if(qe>k){if(re.dtick=be(ae,k,re._hasDayOfWeekBreaks?[1,2,7,14]:ve),!wr){var pr=Q.getTickFormat(re),xr=re.ticklabelmode==="period";xr&&(re._rawTick0=re.tick0),/%[uVW]/.test(pr)?re.tick0=w.dateTick0(re.calendar,2):re.tick0=w.dateTick0(re.calendar,1),xr&&(re._dowTick0=re.tick0)}}else qe>u?re.dtick=be(ae,u,ye):qe>T?re.dtick=be(ae,T,Le):qe>C?re.dtick=be(ae,C,Le):(_r=lr(10),re.dtick=be(ae,_r,Xt))}else if(re.type==="log"){re.tick0=0;var fr=w.simpleMap(re.range,re.r2l);if(re._isMinor&&(ae*=1.5),ae>.7)re.dtick=Math.ceil(ae);else if(Math.abs(fr[1]-fr[0])<1){var ur=1.5*Math.abs((fr[1]-fr[0])/ae);ae=Math.abs(10**fr[1]-10**fr[0])/ur,_r=lr(10),re.dtick="L"+be(ae,_r,Xt)}else re.dtick=ae>.3?"D2":"D1"}else re.type==="category"||re.type==="multicategory"?(re.tick0=0,re.dtick=Math.ceil(Math.max(ae,1))):yr(re)?(re.tick0=0,_r=1,re.dtick=be(ae,_r,me)):(re.tick0=0,_r=lr(10),re.dtick=be(ae,_r,Xt));if(re.dtick===0&&(re.dtick=1),!A(re.dtick)&&typeof re.dtick!="string"){var Br=re.dtick;throw re.dtick=1,"ax.dtick error: "+String(Br)}};function je(re){var ae=re.dtick;if(re._tickexponent=0,!A(ae)&&typeof ae!="string"&&(ae=1),(re.type==="category"||re.type==="multicategory")&&(re._tickround=null),re.type==="date"){var wr=re.r2l(re.tick0),_r=re.l2r(wr).replace(/(^-|i)/g,""),lr=_r.length;if(String(ae).charAt(0)==="M")lr>10||_r.substr(5)!=="01-01"?re._tickround="d":re._tickround=ae.substr(1)%12==0?"y":"m";else if(ae>=k&&lr<=10||ae>=k*15)re._tickround="d";else if(ae>=T&&lr<=16||ae>=u)re._tickround="M";else if(ae>=C&&lr<=19||ae>=T)re._tickround="S";else{var qe=re.l2r(wr+ae).replace(/^-/,"").length;re._tickround=Math.max(lr,qe)-20,re._tickround<0&&(re._tickround=4)}}else if(A(ae)||ae.charAt(0)==="L"){var pr=re.range.map(re.r2d||Number);A(ae)||(ae=Number(ae.substr(1))),re._tickround=2-Math.floor(Math.log(ae)/Math.LN10+.01);var xr=Math.max(Math.abs(pr[0]),Math.abs(pr[1])),fr=Math.floor(Math.log(xr)/Math.LN10+.01),ur=re.minexponent===void 0?3:re.minexponent;Math.abs(fr)>ur&&(_t(re.exponentformat)&&!It(fr)?re._tickexponent=3*Math.round((fr-1)/3):re._tickexponent=fr)}else re._tickround=null}Q.tickIncrement=function(re,ae,wr,_r){var lr=wr?-1:1;if(A(ae))return w.increment(re,lr*ae);var qe=ae.charAt(0),pr=lr*Number(ae.substr(1));if(qe==="M")return w.incrementMonth(re,pr,_r);if(qe==="L")return Math.log(10**re+pr)/Math.LN10;if(qe==="D"){var xr=ae==="D2"?Pe:ke,fr=re+lr*.01,ur=w.roundUp(w.mod(fr,1),xr,wr);return Math.floor(fr)+Math.log(S.round(10**ur,1))/Math.LN10}throw"unrecognized dtick "+String(ae)},Q.tickFirst=function(re,ae){var wr=re.r2l||Number,_r=w.simpleMap(re.range,wr,void 0,void 0,ae),lr=_r[1]<_r[0],qe=lr?Math.floor:Math.ceil,pr=lt(_r)[0],xr=re.dtick,fr=wr(re.tick0);if(A(xr)){var ur=qe((pr-fr)/xr)*xr+fr;return(re.type==="category"||re.type==="multicategory")&&(ur=w.constrain(ur,0,re._categories.length-1)),ur}var Br=xr.charAt(0),$r=Number(xr.substr(1));if(Br==="M"){for(var Jr=0,Zi=fr,mi,Ei,Di;Jr<10;){if(mi=Q.tickIncrement(Zi,xr,lr,re.calendar),(mi-pr)*(Zi-pr)<=0)return lr?Math.min(Zi,mi):Math.max(Zi,mi);Ei=(pr-(Zi+mi)/2)/(mi-Zi),Di=Br+(Math.abs(Math.round(Ei))||1)*$r,Zi=Q.tickIncrement(Zi,Di,Ei<0?!lr:lr,re.calendar),Jr++}return w.error("tickFirst did not converge",re),Zi}else{if(Br==="L")return Math.log(qe((10**pr-fr)/$r)*$r+fr)/Math.LN10;if(Br==="D"){var Tr=xr==="D2"?Pe:ke,Vr=w.roundUp(w.mod(pr,1),Tr,lr);return Math.floor(pr)+Math.log(S.round(10**Vr,1))/Math.LN10}else throw"unrecognized dtick "+String(xr)}},Q.tickText=function(re,ae,wr,_r){var lr=nr(re,ae),qe=re.tickmode==="array",pr=wr||qe,xr=re.type,fr=xr==="category"?re.d2l_noadd:re.d2l,ur,Br=function(Di){var Tr=re.l2p(Di);return Tr>=0&&Tr<=re._length?Di:null};if(qe&&w.isArrayOrTypedArray(re.ticktext)){var $r=w.simpleMap(re.range,re.r2l),Jr=(Math.abs($r[1]-$r[0])-(re._lBreaks||0))/1e4;for(ur=0;ur"+xr;else{var ur=Sr(re),Br=re._trueSide||re.side;(!ur&&Br==="top"||ur&&Br==="bottom")&&(pr+="
")}ae.text=pr}function Qt(re,ae,wr,_r,lr){var qe=re.dtick,pr=ae.x,xr=re.tickformat,fr=typeof qe=="string"&&qe.charAt(0);if(lr==="never"&&(lr=""),_r&&fr!=="L"&&(qe="L3",fr="L"),xr||fr==="L")ae.text=Mt(10**pr,re,lr,_r);else if(A(qe)||fr==="D"&&w.mod(pr+.01,1)<.1){var ur=Math.round(pr),Br=Math.abs(ur),$r=re.exponentformat;$r==="power"||_t($r)&&It(ur)?(ur===0?ae.text=1:ur===1?ae.text="10":ae.text="10"+(ur>1?"":O)+Br+"",ae.fontSize*=1.25):($r==="e"||$r==="E")&&Br>2?ae.text="1"+$r+(ur>0?"+":O)+Br:(ae.text=Mt(10**pr,re,"","fakehover"),qe==="D1"&&re._id.charAt(0)==="y"&&(ae.dy-=ae.fontSize/6))}else if(fr==="D")ae.text=String(Math.round(10**w.mod(pr,1))),ae.fontSize*=.75;else throw"unrecognized dtick "+String(qe);if(re.dtick==="D1"){var Jr=String(ae.text).charAt(0);(Jr==="0"||Jr==="1")&&(re._id.charAt(0)==="y"?ae.dx-=ae.fontSize/4:(ae.dy+=ae.fontSize/2,ae.dx+=(re.range[1]>re.range[0]?1:-1)*ae.fontSize*(pr<0?.5:.25)))}}function te(re,ae){var wr=re._categories[Math.round(ae.x)];wr===void 0&&(wr=""),ae.text=String(wr)}function ee(re,ae,wr){var _r=Math.round(ae.x),lr=re._categories[_r]||[],qe=lr[1]===void 0?"":String(lr[1]),pr=lr[0]===void 0?"":String(lr[0]);wr?ae.text=pr+" - "+qe:(ae.text=qe,ae.text2=pr)}function Bt(re,ae,wr,_r,lr){lr==="never"?lr="":re.showexponent==="all"&&Math.abs(ae.x/re.dtick)<1e-6&&(lr="hide"),ae.text=Mt(ae.x,re,lr,_r)}function Wt(re,ae,wr,_r,lr){if(re.thetaunit==="radians"&&!wr){var qe=ae.x/180;if(qe===0)ae.text="0";else{var pr=$t(qe);if(pr[1]>=100)ae.text=Mt(w.deg2rad(ae.x),re,lr,_r);else{var xr=ae.x<0;pr[1]===1?pr[0]===1?ae.text="\u03C0":ae.text=pr[0]+"\u03C0":ae.text=["",pr[0],"","\u2044","",pr[1],"","\u03C0"].join(""),xr&&(ae.text=O+ae.text)}}}else ae.text=Mt(ae.x,re,lr,_r)}function $t(re){function ae(xr,fr){return Math.abs(xr-fr)<=1e-6}function wr(xr,fr){return ae(fr,0)?xr:wr(fr,xr%fr)}function _r(xr){for(var fr=1;!ae(Math.round(xr*fr)/fr,xr);)fr*=10;return fr}var lr=_r(re),qe=re*lr,pr=Math.abs(wr(qe,lr));return[Math.round(qe/pr),Math.round(lr/pr)]}var Tt=["f","p","n","\u03BC","m","","k","M","G","T"];function _t(re){return re==="SI"||re==="B"}function It(re){return re>14||re<-15}function Mt(re,ae,wr,_r){var lr=re<0,qe=ae._tickround,pr=wr||ae.exponentformat||"B",xr=ae._tickexponent,fr=Q.getTickFormat(ae),ur=ae.separatethousands;if(_r){var Br={exponentformat:pr,minexponent:ae.minexponent,dtick:ae.showexponent==="none"?ae.dtick:A(re)&&Math.abs(re)||1,range:ae.showexponent==="none"?ae.range.map(ae.r2d):[0,re||1]};je(Br),qe=(Number(Br._tickround)||0)+4,xr=Br._tickexponent,ae.hoverformat&&(fr=ae.hoverformat)}if(fr)return ae._numFormat(fr)(re).replace(/-/g,O);var $r=10**-qe/2;if(pr==="none"&&(xr=0),re=Math.abs(re),re<$r)re="0",lr=!1;else{if(re+=$r,xr&&(re*=10**-xr,qe+=xr),qe===0)re=String(Math.floor(re));else if(qe<0){re=String(Math.round(re)),re=re.substr(0,re.length+qe);for(var Jr=qe;Jr<0;Jr++)re+="0"}else{re=String(re);var Zi=re.indexOf(".")+1;Zi&&(re=re.substr(0,Zi+qe).replace(/\.?0+$/,""))}re=w.numSeparate(re,ae._separators,ur)}if(xr&&pr!=="hide"){_t(pr)&&It(xr)&&(pr="power");var mi=xr<0?O+-xr:pr==="power"?String(xr):"+"+xr;pr==="e"||pr==="E"?re+=pr+mi:pr==="power"?re+="\xD710"+mi+"":pr==="B"&&xr===9?re+="B":_t(pr)&&(re+=Tt[xr/3+5])}return lr?O+re:re}Q.getTickFormat=function(re){var ae;function wr(fr){return typeof fr=="string"?Number(fr.replace("M",""))*b:fr}function _r(fr,ur){var Br=["L","D"];if(typeof fr==typeof ur){if(typeof fr=="number")return fr-ur;var $r=Br.indexOf(fr.charAt(0)),Jr=Br.indexOf(ur.charAt(0));return $r===Jr?Number(fr.replace(/(L|D)/g,""))-Number(ur.replace(/(L|D)/g,"")):$r-Jr}else return typeof fr=="number"?1:-1}function lr(fr,ur,Br){var $r=Br||function(mi){return mi},Jr=ur[0],Zi=ur[1];return(!Jr&&typeof Jr!="number"||$r(Jr)<=$r(fr))&&(!Zi&&typeof Zi!="number"||$r(Zi)>=$r(fr))}function qe(fr,ur){var Br=ur[0]===null,$r=ur[1]===null,Jr=_r(fr,ur[0])>=0,Zi=_r(fr,ur[1])<=0;return(Br||Jr)&&($r||Zi)}var pr,xr;if(re.tickformatstops&&re.tickformatstops.length>0)switch(re.type){case"date":case"linear":for(ae=0;ae=0&&lr.unshift(lr.splice(ur,1).shift())}});var pr={false:{left:0,right:0}};return w.syncOrAsync(lr.map(function(xr){return function(){if(xr){var fr=Q.getFromId(re,xr);wr||(wr={}),wr.axShifts=pr,wr.overlayingShiftedAx=qe;var ur=Q.drawOne(re,fr,wr);return fr._shiftPusher&&Or(fr,fr._fullDepth||0,pr,!0),fr._r=fr.range.slice(),fr._rl=w.simpleMap(fr._r,fr.r2l),ur}}}))},Q.drawOne=function(re,ae,wr){wr||(wr={});var _r=wr.axShifts||{},lr=wr.overlayingShiftedAx||[],qe,pr,xr;ae.setScale();var fr=re._fullLayout,ur=ae._id,Br=ur.charAt(0),$r=Q.counterLetter(ur),Jr=fr._plots[ae._mainSubplot];if(!Jr)return;if(ae._shiftPusher=ae.autoshift||lr.indexOf(ae._id)!==-1||lr.indexOf(ae.overlaying)!==-1,ae._shiftPusher&ae.anchor==="free"){var Zi=ae.linewidth/2||0;ae.ticks==="inside"&&(Zi+=ae.ticklen),Or(ae,Zi,_r,!0),Or(ae,ae.shift||0,_r,!1)}(wr.skipTitle!==!0||ae._shift===void 0)&&(ae._shift=ei(ae,_r));var mi=Jr[Br+"axislayer"],Ei=ae._mainLinePosition,Di=Ei+=ae._shift,Tr=ae._mainMirrorPosition,Vr=ae._vals=Q.calcTicks(ae),li=[ae.mirror,Di,Tr].join("_");for(qe=0;qe0?nn.bottom-wa:0,ln))));var Vs=0,Kn=0;if(ae._shiftPusher&&(Vs=Math.max(ln,nn.height>0?ea==="l"?wa-nn.left:nn.right-wa:0),ae.title.text!==fr._dfltTitle[Br]&&(Kn=(ae._titleStandoff||0)+(ae._titleScoot||0),ea==="l"&&(Kn+=_e(ae))),ae._fullDepth=Math.max(Vs,Kn)),ae.automargin){sn={x:0,y:0,r:0,l:0,t:0,b:0};var os=[0,1],Bo=typeof ae._shift=="number"?ae._shift:0;if(Br==="x"){if(ea==="b"?sn[ea]=ae._depth:(sn[ea]=ae._depth=Math.max(nn.width>0?wa-nn.top:0,ln),os.reverse()),nn.width>0){var Qo=nn.right-(ae._offset+ae._length);Qo>0&&(sn.xr=1,sn.r=Qo);var Gn=ae._offset-nn.left;Gn>0&&(sn.xl=0,sn.l=Gn)}}else if(ea==="l"?(ae._depth=Math.max(nn.height>0?wa-nn.left:0,ln),sn[ea]=ae._depth-Bo):(ae._depth=Math.max(nn.height>0?nn.right-wa:0,ln),sn[ea]=ae._depth+Bo,os.reverse()),nn.height>0){var Ml=nn.bottom-(ae._offset+ae._length);Ml>0&&(sn.yb=0,sn.b=Ml);var xs=ae._offset-nn.top;xs>0&&(sn.yt=1,sn.t=xs)}sn[$r]=ae.anchor==="free"?ae.position:ae._anchorAxis.domain[os[0]],ae.title.text!==fr._dfltTitle[Br]&&(sn[ea]+=_e(ae)+(ae.title.standoff||0)),ae.mirror&&ae.anchor!=="free"&&(Wa={x:0,y:0,r:0,l:0,t:0,b:0},Wa[zi]=ae.linewidth,ae.mirror&&ae.mirror!==!0&&(Wa[zi]+=ln),ae.mirror===!0||ae.mirror==="ticks"?Wa[$r]=ae._anchorAxis.domain[os[1]]:(ae.mirror==="all"||ae.mirror==="allticks")&&(Wa[$r]=[ae._counterDomainMin,ae._counterDomainMax][os[1]]))}ua&&(yn=E.getComponentMethod("rangeslider","autoMarginOpts")(re,ae)),typeof ae.automargin=="string"&&(Ct(sn,ae.automargin),Ct(Wa,ae.automargin)),t.autoMargin(re,we(ae),sn),t.autoMargin(re,Ce(ae),Wa),t.autoMargin(re,Ge(ae),yn)}),w.syncOrAsync(ai)}};function Ct(re,ae){if(re){var wr=Object.keys(Y).reduce(function(_r,lr){return ae.indexOf(lr)!==-1&&Y[lr].forEach(function(qe){_r[qe]=1}),_r},{});Object.keys(re).forEach(function(_r){wr[_r]||(_r.length===1?re[_r]=0:delete re[_r])})}}function Ut(re,ae){var wr=[],_r,lr=function(qe,pr){var xr=qe.xbnd[pr];xr!==null&&wr.push(w.extendFlat({},qe,{x:xr}))};if(ae.length){for(_r=0;_rre.range[1],xr=re.ticklabelposition&&re.ticklabelposition.indexOf("inside")!==-1,fr=!xr;if(wr&&(wr*=pr?-1:1),_r){var ur=re.side;_r*=xr&&(ur==="top"||ur==="left")||fr&&(ur==="bottom"||ur==="right")?1:-1}return re._id.charAt(0)==="x"?function(Br){return p(lr+re._offset+re.l2p(ge(Br))+wr,qe+_r)}:function(Br){return p(qe+_r,lr+re._offset+re.l2p(ge(Br))+wr)}};function ge(re){return re.periodX===void 0?re.x:re.periodX}function Ee(re){var ae=re.ticklabelposition||"",wr=function(Zi){return ae.indexOf(Zi)!==-1},_r=wr("top"),lr=wr("left"),qe=wr("right"),pr=wr("bottom"),xr=wr("inside"),fr=pr||lr||_r||qe;if(!fr&&!xr)return[0,0];var ur=re.side,Br=fr?(re.tickwidth||0)/2:0,$r=et,Jr=re.tickfont?re.tickfont.size:12;return(pr||_r)&&(Br+=Jr*ft,$r+=(re.linewidth||0)/2),(lr||qe)&&(Br+=(re.linewidth||0)/2,$r+=et),xr&&ur==="top"&&($r-=Jr*(1-ft)),(lr||_r)&&(Br=-Br),(ur==="bottom"||ur==="right")&&($r=-$r),[fr?Br:0,xr?$r:0]}Q.makeTickPath=function(re,ae,wr,_r){_r||(_r={});var lr=_r.minor;if(lr&&!re.minor)return"";var qe=_r.len===void 0?lr?re.minor.ticklen:re.ticklen:_r.len,pr=re._id.charAt(0),xr=(re.linewidth||1)/2;return pr==="x"?"M0,"+(ae+xr*wr)+"v"+qe*wr:"M"+(ae+xr*wr)+",0h"+qe*wr},Q.makeLabelFns=function(re,ae,wr){var _r=re.ticklabelposition||"",lr=function(ya){return _r.indexOf(ya)!==-1},qe=lr("top"),pr=lr("left"),xr=lr("right"),fr=lr("bottom")||pr||qe||xr,ur=lr("inside"),Br=_r==="inside"&&re.ticks==="inside"||!ur&&re.ticks==="outside"&&re.tickson!=="boundaries",$r=0,Jr=0,Zi=Br?re.ticklen:0;if(ur?Zi*=-1:fr&&(Zi=0),Br&&($r+=Zi,wr)){var mi=w.deg2rad(wr);$r=Zi*Math.cos(mi)+1,Jr=Zi*Math.sin(mi)}re.showticklabels&&(Br||re.showline)&&($r+=.2*re.tickfont.size),$r+=(re.linewidth||1)/2*(ur?-1:1);var Ei={labelStandoff:$r,labelShift:Jr},Di,Tr,Vr,li,ci=0,Ni=re.side,si=re._id.charAt(0),Ci=re.tickangle,wi;if(si==="x")wi=!ur&&Ni==="bottom"||ur&&Ni==="top",li=wi?1:-1,ur&&(li*=-1),Di=Jr*li,Tr=ae+$r*li,Vr=wi?1:-.2,Math.abs(Ci)===90&&(ur?Vr+=nt:Vr=Ci===-90&&Ni==="bottom"?ft:Ci===90&&Ni==="top"?nt:.5,ci=nt/2*(Ci/90)),Ei.xFn=function(ya){return ya.dx+Di+ci*ya.fontSize},Ei.yFn=function(ya){return ya.dy+Tr+ya.fontSize*Vr},Ei.anchorFn=function(ya,Ga){if(fr){if(pr)return"end";if(xr)return"start"}return!A(Ga)||Ga===0||Ga===180?"middle":Ga*li<0===ur?"start":"end"},Ei.heightFn=function(ya,Ga,Ea){return Ga<-60||Ga>60?-.5*Ea:re.side==="top"===ur?0:-Ea};else if(si==="y"){if(wi=!ur&&Ni==="left"||ur&&Ni==="right",li=wi?1:-1,ur&&(li*=-1),Di=$r,Tr=Jr*li,Vr=0,!ur&&Math.abs(Ci)===90&&(Vr=Ci===-90&&Ni==="left"||Ci===90&&Ni==="right"?ft:.5),ur){var ma=A(Ci)?+Ci:0;if(ma!==0){var Ha=w.deg2rad(ma);ci=Math.abs(Math.sin(Ha))*ft*li,Vr=0}}Ei.xFn=function(ya){return ya.dx+ae-(Di+ya.fontSize*Vr)*li+ci*ya.fontSize},Ei.yFn=function(ya){return ya.dy+Tr+ya.fontSize*nt},Ei.anchorFn=function(ya,Ga){return A(Ga)&&Math.abs(Ga)===90?"middle":wi?"end":"start"},Ei.heightFn=function(ya,Ga,Ea){return re.side==="right"&&(Ga*=-1),Ga<-30?-Ea:Ga<30?-.5*Ea:0}}return Ei};function Ne(re){return[re.text,re.x,re.axInfo,re.font,re.fontSize,re.fontColor].join("_")}Q.drawTicks=function(re,ae,wr){wr||(wr={});var _r=ae._id+"tick",lr=[].concat(ae.minor&&ae.minor.ticks?wr.vals.filter(function(pr){return pr.minor&&!pr.noTick}):[],ae.ticks?wr.vals.filter(function(pr){return!pr.minor&&!pr.noTick}):[]),qe=wr.layer.selectAll("path."+_r).data(lr,Ne);qe.exit().remove(),qe.enter().append("path").classed(_r,1).classed("ticks",1).classed("crisp",wr.crisp!==!1).each(function(pr){return r.stroke(S.select(this),pr.minor?ae.minor.tickcolor:ae.tickcolor)}).style("stroke-width",function(pr){return o.crispRound(re,pr.minor?ae.minor.tickwidth:ae.tickwidth,1)+"px"}).attr("d",wr.path).style("display",null),Dr(ae,[N]),qe.attr("transform",wr.transFn)},Q.drawGrid=function(re,ae,wr){if(wr||(wr={}),ae.tickmode!=="sync"){var _r=ae._id+"grid",lr=ae.minor&&ae.minor.showgrid,qe=lr?wr.vals.filter(function(Tr){return Tr.minor}):[],pr=ae.showgrid?wr.vals.filter(function(Tr){return!Tr.minor}):[],xr=wr.counterAxis;if(xr&&Q.shouldShowZeroLine(re,ae,xr))for(var fr=ae.tickmode==="array",ur=0;ur=0;mi--){var Ei=mi?Jr:Zi;if(Ei){var Di=Ei.selectAll("path."+_r).data(mi?pr:qe,Ne);Di.exit().remove(),Di.enter().append("path").classed(_r,1).classed("crisp",wr.crisp!==!1),Di.attr("transform",wr.transFn).attr("d",wr.path).each(function(Tr){return r.stroke(S.select(this),Tr.minor?ae.minor.gridcolor:ae.gridcolor||"#ddd")}).style("stroke-dasharray",function(Tr){return o.dashStyle(Tr.minor?ae.minor.griddash:ae.griddash,Tr.minor?ae.minor.gridwidth:ae.gridwidth)}).style("stroke-width",function(Tr){return(Tr.minor?$r:ae._gw)+"px"}).style("display",null),typeof wr.path=="function"&&Di.attr("d",wr.path)}}Dr(ae,[U,P])}},Q.drawZeroLine=function(re,ae,wr){wr||(wr=wr);var _r=ae._id+"zl",lr=Q.shouldShowZeroLine(re,ae,wr.counterAxis),qe=wr.layer.selectAll("path."+_r).data(lr?[{x:0,id:ae._id}]:[]);qe.exit().remove(),qe.enter().append("path").classed(_r,1).classed("zl",1).classed("crisp",wr.crisp!==!1).each(function(){wr.layer.selectAll("path").sort(function(pr,xr){return ot(pr.id,xr.id)})}),qe.attr("transform",wr.transFn).attr("d",wr.path).call(r.stroke,ae.zerolinecolor||r.defaultLine).style("stroke-width",o.crispRound(re,ae.zerolinewidth,ae._gw||1)+"px").style("display",null),Dr(ae,[B])},Q.drawLabels=function(re,ae,wr){wr||(wr={});var _r=re._fullLayout,lr=ae._id,qe=wr.cls||lr+"tick",pr=wr.vals.filter(function(Si){return Si.text}),xr=wr.labelFns,fr=wr.secondary?0:ae.tickangle,ur=(ae._prevTickAngles||{})[qe],Br=wr.layer.selectAll("g."+qe).data(ae.showticklabels?pr:[],Ne),$r=[];Br.enter().append("g").classed(qe,1).append("text").attr("text-anchor","middle").each(function(Si){var aa=S.select(this),Ji=re._promises.length;aa.call(c.positionText,xr.xFn(Si),xr.yFn(Si)).call(o.font,{family:Si.font,size:Si.fontSize,color:Si.fontColor,weight:Si.fontWeight,style:Si.fontStyle,variant:Si.fontVariant,textcase:Si.fontTextcase,lineposition:Si.fontLineposition,shadow:Si.fontShadow}).text(Si.text).call(c.convertToTspans,re),re._promises[Ji]?$r.push(re._promises.pop().then(function(){Jr(aa,fr)})):Jr(aa,fr)}),Dr(ae,[V]),Br.exit().remove(),wr.repositionOnUpdate&&Br.each(function(Si){S.select(this).select("text").call(c.positionText,xr.xFn(Si),xr.yFn(Si))});function Jr(Si,aa){Si.each(function(Ji){var na=S.select(this),fa=na.select(".text-math-group"),Ca=xr.anchorFn(Ji,aa),Ia=wr.transFn.call(na.node(),Ji)+(A(aa)&&+aa!=0?" rotate("+aa+","+xr.xFn(Ji)+","+(xr.yFn(Ji)-Ji.fontSize/2)+")":""),On=c.lineCount(na),hr=ct*Ji.fontSize,jr=xr.heightFn(Ji,A(aa)?+aa:0,(On-1)*hr);if(jr&&(Ia+=p(0,jr)),fa.empty()){var Ii=na.select("text");Ii.attr({transform:Ia,"text-anchor":Ca}),Ii.style("opacity",1),ae._adjustTickLabelsOverflow&&ae._adjustTickLabelsOverflow()}else{var Hi=o.bBox(fa.node()).width*{end:-.5,start:.5}[Ca];fa.attr("transform",Ia+p(Hi,0))}})}ae._adjustTickLabelsOverflow=function(){var Si=ae.ticklabeloverflow;if(!(!Si||Si==="allow")){var aa=Si.indexOf("hide")!==-1,Ji=ae._id.charAt(0)==="x",na=0,fa=Ji?re._fullLayout.width:re._fullLayout.height;if(Si.indexOf("domain")!==-1){var Ca=w.simpleMap(ae.range,ae.r2l);na=ae.l2p(Ca[0])+ae._offset,fa=ae.l2p(Ca[1])+ae._offset}var Ia=Math.min(na,fa),On=Math.max(na,fa),hr=ae.side,jr=1/0,Ii=-1/0;for(var Hi in Br.each(function(Qi){var qi=S.select(this);if(qi.select(".text-math-group").empty()){var Zr=o.bBox(qi.node()),Wr=0;Ji?(Zr.right>On||Zr.leftOn||Zr.top+(ae.tickangle?0:Qi.fontSize/4)ae["_visibleLabelMin_"+Ca._id]?sa.style("display","none"):On.K==="tick"&&!Ia&&sa.style("display",null)})})})})},Jr(Br,ur+1?ur:fr);function Zi(){return $r.length&&Promise.all($r)}var mi=null;function Ei(){if(Jr(Br,fr),pr.length&&ae.autotickangles&&(ae.type!=="log"||String(ae.dtick).charAt(0)!=="D")){mi=ae.autotickangles[0];var Si=0,aa=[],Ji,na=1;Br.each(function(zi){Si=Math.max(Si,zi.fontSize);var wa=ae.l2p(zi.x),ln=ue(this),nn=o.bBox(ln.node());na=Math.max(na,c.lineCount(ln)),aa.push({top:0,bottom:10,height:10,left:wa-nn.width/2,right:wa+nn.width/2+2,width:nn.width+2})});var fa=(ae.tickson==="boundaries"||ae.showdividers)&&!wr.secondary,Ca=pr.length,Ia=Math.abs((pr[Ca-1].x-pr[0].x)*ae._m)/(Ca-1),On=fa?Ia/2:Ia,hr=fa?ae.ticklen:Si*1.25*na,jr=On/Math.sqrt(On**2+hr**2),Ii=ae.autotickangles.map(function(zi){return zi*Math.PI/180}),Hi=Ii.find(function(zi){return Math.abs(Math.cos(zi))<=jr});Hi===void 0&&(Hi=Ii.reduce(function(zi,wa){return Math.abs(Math.cos(zi))Xr*Fa&&(ya=Fa,wi[Ci]=ma[Ci]=Ga[Ci])}var ji=Math.abs(ya-Ha);ji-ci>0?(ji-=ci,ci*=1+ci/ji):ci=0,ae._id.charAt(0)!=="y"&&(ci=-ci),wi[si]=Vr.p2r(Vr.r2p(ma[si])+Ni*ci),Vr.autorange==="min"||Vr.autorange==="max reversed"?(wi[0]=null,Vr._rangeInitial0=void 0,Vr._rangeInitial1=void 0):(Vr.autorange==="max"||Vr.autorange==="min reversed")&&(wi[1]=null,Vr._rangeInitial0=void 0,Vr._rangeInitial1=void 0),_r._insideTickLabelsUpdaterange[Vr._name+".range"]=wi}var Li=w.syncOrAsync(Di);return Li&&Li.then&&re._promises.push(Li),Li};function sr(re,ae,wr){var _r=ae._id+"divider",lr=wr.vals,qe=wr.layer.selectAll("path."+_r).data(lr,Ne);qe.exit().remove(),qe.enter().insert("path",":first-child").classed(_r,1).classed("crisp",1).call(r.stroke,ae.dividercolor).style("stroke-width",o.crispRound(re,ae.dividerwidth,1)+"px"),qe.attr("transform",wr.transFn).attr("d",wr.path)}Q.getPxPosition=function(re,ae){var wr=re._fullLayout._size,_r=ae._id.charAt(0),lr=ae.side,qe;if(ae.anchor==="free"?_r==="x"?qe={_offset:wr.t+(1-(ae.position||0))*wr.h,_length:0}:_r==="y"&&(qe={_offset:wr.l+(ae.position||0)*wr.w+ae._shift,_length:0}):qe=ae._anchorAxis,lr==="top"||lr==="left")return qe._offset;if(lr==="bottom"||lr==="right")return qe._offset+qe._length};function _e(re){var ae=re.title.font.size,wr=(re.title.text.match(c.BR_TAG_ALL)||[]).length;return re.title.hasOwnProperty("standoff")?ae*(ft+wr*ct):wr?ae*(wr+1)*ct:ae}function He(re,ae){var wr=re._fullLayout,_r=ae._id,lr=_r.charAt(0),qe=ae.title.font.size,pr,xr=(ae.title.text.match(c.BR_TAG_ALL)||[]).length;if(ae.title.hasOwnProperty("standoff"))ae.side==="bottom"||ae.side==="right"?pr=ae._depth+ae.title.standoff+qe*ft:(ae.side==="top"||ae.side==="left")&&(pr=ae._depth+ae.title.standoff+qe*(nt+xr*ct));else{var fr=Sr(ae);if(ae.type==="multicategory")pr=ae._depth;else{var ur=1.5*qe;fr&&(ur=.5*qe,ae.ticks==="outside"&&(ur+=ae.ticklen)),pr=10+ur+(ae.linewidth?ae.linewidth-1:0)}fr||(lr==="x"?pr+=ae.side==="top"?qe*(ae.showticklabels?1:0):qe*(ae.showticklabels?1.5:.5):pr+=ae.side==="right"?qe*(ae.showticklabels?1:.5):qe*(ae.showticklabels?.5:0))}var Br=Q.getPxPosition(re,ae),$r,Jr,Zi;lr==="x"?(Jr=ae._offset+ae._length/2,Zi=ae.side==="top"?Br-pr:Br+pr):(Zi=ae._offset+ae._length/2,Jr=ae.side==="right"?Br+pr:Br-pr,$r={rotate:"-90",offset:0});var mi;if(ae.type!=="multicategory"){var Ei=ae._selections[ae._id+"tick"];if(mi={selection:Ei,side:ae.side},Ei&&Ei.node()&&Ei.node().parentNode){var Di=o.getTranslate(Ei.node().parentNode);mi.offsetLeft=Di.x,mi.offsetTop=Di.y}ae.title.hasOwnProperty("standoff")&&(mi.pad=0)}return ae._titleStandoff=pr,i.draw(re,_r+"title",{propContainer:ae,propName:ae._name+".title.text",placeholder:wr._dfltTitle[lr],avoid:mi,transform:$r,attributes:{x:Jr,y:Zi,"text-anchor":"middle"}})}Q.shouldShowZeroLine=function(re,ae,wr){var _r=w.simpleMap(ae.range,ae.r2l);return _r[0]*_r[1]<=0&&ae.zeroline&&(ae.type==="linear"||ae.type==="-")&&!(ae.rangebreaks&&ae.maskBreaks(0)===j)&&(or(ae,0)||!Pr(re,ae,wr,_r)||br(re,ae))},Q.clipEnds=function(re,ae){return ae.filter(function(wr){return or(re,wr.x)})};function or(re,ae){var wr=re.l2p(ae);return wr>1&&wr1)for(lr=1;lr=lr.min&&re=F:/%L/.test(ae)?re>=_:/%[SX]/.test(ae)?re>=C:/%M/.test(ae)?re>=T:/%[HI]/.test(ae)?re>=u:/%p/.test(ae)?re>=L:/%[Aadejuwx]/.test(ae)?re>=k:/%[UVW]/.test(ae)?re>=g:/%[Bbm]/.test(ae)?re>=M:/%[q]/.test(ae)?re>=h:/%[Yy]/.test(ae)?re>=f:!0}}),9666:(function(tt,G,e){var S=e(10721),A=e(34809),t=e(63821).BADNUM,E=A.isArrayOrTypedArray,w=A.isDateTime,p=A.cleanNumber,c=Math.round;tt.exports=function(m,x,f){var v=m,l=f.noMultiCategory;if(E(v)&&!v.length)return"-";if(!l&&n(v))return"multicategory";if(l&&Array.isArray(v[0])){for(var h=[],d=0;dh*2}function a(m){return Math.max(1,(m-1)/1e3)}function s(m,x){for(var f=m.length,v=a(f),l=0,h=0,d={},b=0;bl*2}function n(m){return E(m[0])&&E(m[1])}}),97655:(function(tt,G,e){var S=e(10721),A=e(33626),t=e(34809),E=e(78032),w=e(59008),p=e(25829),c=e(22777),i=e(87433),r=e(12036),o=e(54616),a=e(46473),s=e(97405),n=e(90259),m=e(19091),x=e(54826).WEEKDAY_PATTERN,f=e(54826).HOUR_PATTERN;tt.exports=function(d,b,M,g,k){var L=g.letter,u=g.font||{},T=g.splomStash||{},C=M("visible",!g.visibleDflt),_=b._template||{},F=b.type||_.type||"-",O;F==="date"&&(A.getComponentMethod("calendars","handleDefaults")(d,b,"calendar",g.calendar),g.noTicklabelmode||(O=M("ticklabelmode"))),!g.noTicklabelindex&&(F==="date"||F==="linear")&&M("ticklabelindex");var j="";(!g.noTicklabelposition||F==="multicategory")&&(j=t.coerce(d,b,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:O==="period"?["outside","inside"]:L==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),g.noTicklabeloverflow||M("ticklabeloverflow",j.indexOf("inside")===-1?F==="category"||F==="multicategory"?"allow":"hide past div":"hide past domain"),m(b,k),n(d,b,M,g),a(d,b,M,g),F!=="category"&&!g.noHover&&M("hoverformat");var B=M("color"),U=B===p.color.dflt?u.color:B,P=T.label||k._dfltTitle[L];if(o(d,b,M,F,g),!C)return b;M("title.text",P),t.coerceFont(M,"title.font",u,{overrideDflt:{size:t.bigFont(u.size),color:U}}),c(d,b,M,F);var N=g.hasMinor;if(N&&(E.newContainer(b,"minor"),c(d,b,M,F,{isMinor:!0})),r(d,b,M,F,g),i(d,b,M,g),N){var V=g.isMinor;g.isMinor=!0,i(d,b,M,g),g.isMinor=V}s(d,b,M,{dfltColor:B,bgColor:g.bgColor,showGrid:g.showGrid,hasMinor:N,attributes:p}),N&&!b.minor.ticks&&!b.minor.showgrid&&delete b.minor,(b.showline||b.ticks)&&M("mirror");var Y=F==="multicategory";if(!g.noTickson&&(F==="category"||Y)&&(b.ticks||b.showgrid)){var K;Y&&(K="boundaries"),M("tickson",K)==="boundaries"&&delete b.ticklabelposition}if(Y&&M("showdividers")&&(M("dividercolor"),M("dividerwidth")),F==="date")if(w(d,b,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:v}),!b.rangebreaks.length)delete b.rangebreaks;else{for(var nt=0;nt=2){var L="",u,T;if(k.length===2){for(u=0;u<2;u++)if(T=h(k[u]),T){L=x;break}}var C=g("pattern",L);if(C===x)for(u=0;u<2;u++)T=h(k[u]),T&&(b.bounds[u]=k[u]=T-1);if(C)for(u=0;u<2;u++)switch(T=k[u],C){case x:if(!S(T)){b.enabled=!1;return}if(T=+T,T!==Math.floor(T)||T<0||T>=7){b.enabled=!1;return}b.bounds[u]=k[u]=T;break;case f:if(!S(T)){b.enabled=!1;return}if(T=+T,T<0||T>24){b.enabled=!1;return}b.bounds[u]=k[u]=T;break}if(M.autorange===!1){var _=M.range;if(_[0]<_[1]){if(k[0]<_[0]&&k[1]>_[1]){b.enabled=!1;return}}else if(k[0]>_[0]&&k[1]<_[1]){b.enabled=!1;return}}}else{var F=g("values");if(F&&F.length)g("dvalue");else{b.enabled=!1;return}}}}var l={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function h(d){if(typeof d=="string")return l[d.substr(0,3).toLowerCase()]}}),80712:(function(tt,G,e){var S=e(87296),A=S.FORMAT_LINK,t=S.DATE_FORMAT_LINK;function E(c,i){return{valType:"string",dflt:"",editType:"none",description:(i?w:p)("hover text",c)+["By default the values are formatted using "+(i?"generic number format":"`"+c+"axis.hoverformat`")+"."].join(" ")}}function w(c,i){return["Sets the "+c+" formatting rule"+(i?"for `"+i+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+A+"."].join(" ")}function p(c,i){return w(c,i)+[" And for dates see: "+t+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}tt.exports={axisHoverFormat:E,descriptionOnlyNumbers:w,descriptionWithDates:p}}),5975:(function(tt,G,e){var S=e(33626),A=e(54826);G.id2name=function(E){if(!(typeof E!="string"||!E.match(A.AX_ID_PATTERN))){var w=E.split(" ")[0].substr(1);return w==="1"&&(w=""),E.charAt(0)+"axis"+w}},G.name2id=function(E){if(E.match(A.AX_NAME_PATTERN)){var w=E.substr(5);return w==="1"&&(w=""),E.charAt(0)+w}},G.cleanId=function(E,w,p){var c=/( domain)$/.test(E);if(!(typeof E!="string"||!E.match(A.AX_ID_PATTERN))&&!(w&&E.charAt(0)!==w)&&!(c&&!p)){var i=E.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),E.charAt(0)+i+(c&&p?" domain":"")}},G.list=function(E,w,p){var c=E._fullLayout;if(!c)return[];var i=G.listIds(E,w),r=Array(i.length),o;for(o=0;oc?1:-1},G.ref2id=function(E){return/^[xyz]/.test(E)?E.split(" ")[0]:!1};function t(E,w){if(w&&w.length){for(var p=0;p0||S(c),r;i&&(r="array");var o=w("categoryorder",r),a;o==="array"&&(a=w("categoryarray")),!i&&o==="array"&&(o=E.categoryorder="trace"),o==="trace"?E._initialCategories=[]:o==="array"?E._initialCategories=a.slice():(a=A(E,p).sort(),o==="category ascending"?E._initialCategories=a:o==="category descending"&&(E._initialCategories=a.reverse()))}}}),68599:(function(tt,G,e){var S=e(10721),A=e(34809),t=e(63821),E=t.ONEDAY,w=t.ONEWEEK;G.dtick=function(p,c){var i=c==="log",r=c==="date",o=c==="category",a=r?E:1;if(!p)return a;if(S(p))return p=Number(p),p<=0?a:o?Math.max(1,Math.round(p)):r?Math.max(.1,p):p;if(typeof p!="string"||!(r||i))return a;var s=p.charAt(0),n=p.substr(1);return n=S(n)?Number(n):0,n<=0||!(r&&s==="M"&&n===Math.round(n)||i&&s==="L"||i&&s==="D"&&(n===1||n===2))?a:p},G.tick0=function(p,c,i,r){if(c==="date")return A.cleanDate(p,A.dateTick0(i,r%w===0?1:0));if(!(r==="D1"||r==="D2"))return S(p)?Number(p):0}}),54826:(function(tt,G,e){var S=e(90694).counter;tt.exports={idRegex:{x:S("x","( domain)?"),y:S("y","( domain)?")},attrRegex:S("[xy]axis"),xAxisMatch:S("xaxis"),yAxisMatch:S("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}}),84391:(function(tt,G,e){var S=e(34809),A=e(32919),t=e(5975).id2name,E=e(25829),w=e(67611),p=e(19091),c=e(63821).ALMOST_EQUAL,i=e(4530).FROM_BL;G.handleDefaults=function(f,v,l){var h=l.axIds,d=l.axHasImage,b=v._axisConstraintGroups=[],M=v._axisMatchGroups=[],g,k,L,u,T,C,_,F;for(g=0;gb?l.substr(b):h.substr(d))+M}function m(f,v){for(var l=v._size,h=l.h/l.w,d={},b=Object.keys(f),M=0;Mc*_&&!B)){for(d=0;dJ&&utft&&(ft=ut);var yt=(ft-nt)/(2*ct);u/=yt,nt=g.l2r(nt),ft=g.l2r(ft),g.range=g._input.range=V=0){pr._fullLayout._deactivateShape(pr);return}var xr=pr._fullLayout.clickmode;if(et(pr),lr===2&&!At&&ei(),Et)xr.indexOf("select")>-1&&L(qe,pr,ye,Le,yt.id,Zt),xr.indexOf("event")>-1&&a.click(pr,qe,yt.id);else if(lr===1&&At){var fr=Ht?jt:qt,ur=Ht==="s"||Kt==="w"?0:1,Br=fr._name+".range["+ur+"]",$r=P(fr,ur),Jr="left",Zi="middle";if(fr.fixedrange)return;Ht?(Zi=Ht==="n"?"top":"bottom",fr.side==="right"&&(Jr="right")):Kt==="e"&&(Jr="right"),pr._context.showAxisRangeEntryBoxes&&S.select(Ut).call(i.makeEditable,{gd:pr,immediate:!0,background:pr._fullLayout.paper_bgcolor,text:String($r),fill:fr.tickfont?fr.tickfont.color:"#444",horizontalAlign:Jr,verticalAlign:Zi}).on("edit",function(mi){var Ei=fr.d2r(mi);Ei!==void 0&&p.call("_guiRelayout",pr,Br,Ei)})}}m.init(Zt);var ge,Ee,Ne,sr,_e,He,or,Pr,br,ue;function we(lr,qe,pr){var xr=Ut.getBoundingClientRect();ge=qe-xr.left,Ee=pr-xr.top,lt._fullLayout._calcInverseTransform(lt);var fr=A.apply3DTransform(lt._fullLayout._invTransform)(ge,Ee);ge=fr[0],Ee=fr[1],Ne={l:ge,r:ge,w:0,t:Ee,b:Ee,h:0},sr=lt._hmpixcount?lt._hmlumcount/lt._hmpixcount:E(lt._fullLayout.plot_bgcolor).getLuminance(),_e="M0,0H"+Pe+"V"+me+"H0V0",He=!1,or="xy",ue=!1,Pr=nt(Gt,sr,ve,ke,_e),br=ft(Gt,ve,ke)}function Ce(lr,qe){if(lt._transitioningWithDuration)return!1;var pr=Math.max(0,Math.min(Pe,_t*lr+ge)),xr=Math.max(0,Math.min(me,It*qe+Ee)),fr=Math.abs(pr-ge),ur=Math.abs(xr-Ee);Ne.l=Math.min(ge,pr),Ne.r=Math.max(ge,pr),Ne.t=Math.min(Ee,xr),Ne.b=Math.max(Ee,xr);function Br(){or="",Ne.r=Ne.l,Ne.t=Ne.b,br.attr("d","M0,0Z")}if(be.isSubplotConstrained)fr>_||ur>_?(or="xy",fr/Pe>ur/me?(ur=fr*me/Pe,Ee>xr?Ne.t=Ee-ur:Ne.b=Ee+ur):(fr=ur*Pe/me,ge>pr?Ne.l=ge-fr:Ne.r=ge+fr),br.attr("d",ot(Ne))):Br();else if(je.isSubplotConstrained)if(fr>_||ur>_){or="xy";var $r=Math.min(Ne.l/Pe,(me-Ne.b)/me),Jr=Math.max(Ne.r/Pe,(me-Ne.t)/me);Ne.l=$r*Pe,Ne.r=Jr*Pe,Ne.b=(1-$r)*me,Ne.t=(1-Jr)*me,br.attr("d",ot(Ne))}else Br();else!Vt||ur0){var mi;if(je.isSubplotConstrained||!nr&&Vt.length===1){for(mi=0;mi1&&(Br.maxallowed!==void 0&&te===(Br.range[0]1&&($r.maxallowed!==void 0&&ee===($r.range[0]<$r.range[1]?"n":"s")||$r.minallowed!==void 0&&ee===($r.range[0]<$r.range[1]?"s":"n"))&&(li=1,Ni=0),!(!Vr&&!li)){Vr||(Vr=1),li||(li=1);var si=Br._offset-ci/Vr,Ci=$r._offset-Ni/li;ur.clipRect.call(o.setTranslate,ci,Ni).call(o.setScale,Vr,li),ur.plot.call(o.setTranslate,si,Ci).call(o.setScale,1/Vr,1/li),(Vr!==ur.xScaleFactor||li!==ur.yScaleFactor)&&(o.setPointGroupScale(ur.zoomScalePts,Vr,li),o.setTextPointsScale(ur.zoomScaleTxt,Vr,li)),o.hideOutsideRangePoints(ur.clipOnAxisFalseTraces,ur),ur.xScaleFactor=Vr,ur.yScaleFactor=li}}}}function ae(lr,qe,pr){return lr.fixedrange?0:te&&be.xaHash[lr._id]?qe:ee&&(be.isSubplotConstrained?be.xaHash:be.yaHash)[lr._id]?pr:0}function wr(lr,qe){return qe?(lr.range=lr._r.slice(),u(lr,qe),_r(lr,qe)):0}function _r(lr,qe,pr){return lr._length*(1-qe)*l[pr||lr.constraintoward||"middle"]}return Ut}function j(lt,yt,kt,Lt){var St=A.ensureSingle(lt.draglayer,yt,kt,function(Ot){Ot.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",lt.id)});return St.call(n,Lt),St.node()}function B(lt,yt,kt,Lt,St,Ot,Ht){var Kt=j(lt,"rect",yt,kt);return S.select(Kt).call(o.setRect,Lt,St,Ot,Ht),Kt}function U(lt,yt){for(var kt=0;kt=0?Math.min(lt,.9):1/(1/Math.max(lt,-.3)+3.222))}function K(lt,yt,kt){return lt?lt==="nsew"?kt?"":yt==="pan"?"move":"crosshair":lt.toLowerCase()+"-resize":"pointer"}function nt(lt,yt,kt,Lt,St){return lt.append("path").attr("class","zoombox").style({fill:yt>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",c(kt,Lt)).attr("d",St+"Z")}function ft(lt,yt,kt){return lt.append("path").attr("class","zoombox-corners").style({fill:r.background,stroke:r.defaultLine,"stroke-width":1,opacity:0}).attr("transform",c(yt,kt)).attr("d","M0,0Z")}function ct(lt,yt,kt,Lt,St,Ot){lt.attr("d",Lt+"M"+kt.l+","+kt.t+"v"+kt.h+"h"+kt.w+"v-"+kt.h+"h-"+kt.w+"Z"),J(lt,yt,St,Ot)}function J(lt,yt,kt,Lt){kt||(lt.transition().style("fill",Lt>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),yt.transition().style("opacity",1).duration(200))}function et(lt){S.select(lt).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(lt){F&<.data&<._context.showTips&&(A.notifier(A._(lt,"Double-click to zoom back out"),"long"),F=!1)}function Z(lt,yt){return"M"+(lt.l-.5)+","+(yt-_-.5)+"h-3v"+(2*_+1)+"h3ZM"+(lt.r+.5)+","+(yt-_-.5)+"h3v"+(2*_+1)+"h-3Z"}function st(lt,yt){return"M"+(yt-_-.5)+","+(lt.t-.5)+"v-3h"+(2*_+1)+"v3ZM"+(yt-_-.5)+","+(lt.b+.5)+"v3h"+(2*_+1)+"v-3Z"}function ot(lt){var yt=Math.floor(Math.min(lt.b-lt.t,lt.r-lt.l,_)/2);return"M"+(lt.l-3.5)+","+(lt.t-.5+yt)+"h3v"+-yt+"h"+yt+"v-3h-"+(yt+3)+"ZM"+(lt.r+3.5)+","+(lt.t-.5+yt)+"h-3v"+-yt+"h"+-yt+"v-3h"+(yt+3)+"ZM"+(lt.r+3.5)+","+(lt.b+.5-yt)+"h-3v"+yt+"h"+-yt+"v3h"+(yt+3)+"ZM"+(lt.l-3.5)+","+(lt.b+.5-yt)+"h3v"+yt+"h"+yt+"v3h-"+(yt+3)+"Z"}function rt(lt,yt,kt,Lt,St){for(var Ot=!1,Ht={},Kt={},Gt,Et,At,qt,jt=(St||{}).xaHash,de=(St||{}).yaHash,Xt=0;Xt0){var O=F.id;if(O.indexOf(s)!==-1)continue;O+=s+(T+1),F=t.extendFlat({},F,{id:O,plot:M._cartesianlayer.selectAll(".subplot").select("."+O)})}for(var j=[],B,U=0;U1&&(K+=s+Y),V.push(L+K),k=0;k1)if(u)h.xlines=o(b,"path","xlines-above"),h.ylines=o(b,"path","ylines-above"),h.xaxislayer=o(b,"g","xaxislayer-above"),h.yaxislayer=o(b,"g","yaxislayer-above");else{if(!g){var T=o(b,"g","layer-subplot");h.shapelayer=o(T,"g","shapelayer"),h.imagelayer=o(T,"g","imagelayer"),h.minorGridlayer=o(b,"g","minor-gridlayer"),h.gridlayer=o(b,"g","gridlayer"),h.zerolinelayer=o(b,"g","zerolinelayer");var C=o(b,"g","layer-between");h.shapelayerBetween=o(C,"g","shapelayer"),h.imagelayerBetween=o(C,"g","imagelayer"),o(b,"path","xlines-below"),o(b,"path","ylines-below"),h.overlinesBelow=o(b,"g","overlines-below"),o(b,"g","xaxislayer-below"),o(b,"g","yaxislayer-below"),h.overaxesBelow=o(b,"g","overaxes-below")}h.overplot=o(b,"g","overplot"),h.plot=o(h.overplot,"g",M),g||(h.xlines=o(b,"path","xlines-above"),h.ylines=o(b,"path","ylines-above"),h.overlinesAbove=o(b,"g","overlines-above"),o(b,"g","xaxislayer-above"),o(b,"g","yaxislayer-above"),h.overaxesAbove=o(b,"g","overaxes-above"),h.xlines=b.select(".xlines-"+k),h.ylines=b.select(".ylines-"+L),h.xaxislayer=b.select(".xaxislayer-"+k),h.yaxislayer=b.select(".yaxislayer-"+L))}else{var _=h.mainplotinfo,F=_.plotgroup,O=M+"-x",j=M+"-y";h.minorGridlayer=_.minorGridlayer,h.gridlayer=_.gridlayer,h.zerolinelayer=_.zerolinelayer,o(_.overlinesBelow,"path",O),o(_.overlinesBelow,"path",j),o(_.overaxesBelow,"g",O),o(_.overaxesBelow,"g",j),h.plot=o(_.overplot,"g",M),o(_.overlinesAbove,"path",O),o(_.overlinesAbove,"path",j),o(_.overaxesAbove,"g",O),o(_.overaxesAbove,"g",j),h.xlines=F.select(".overlines-"+k).select("."+O),h.ylines=F.select(".overlines-"+L).select("."+j),h.xaxislayer=F.select(".overaxes-"+k).select("."+O),h.yaxislayer=F.select(".overaxes-"+L).select("."+j)}g||(u||(a(h.minorGridlayer,"g",h.xaxis._id),a(h.minorGridlayer,"g",h.yaxis._id),h.minorGridlayer.selectAll("g").map(function(B){return B[0]}).sort(c.idSort),a(h.gridlayer,"g",h.xaxis._id),a(h.gridlayer,"g",h.yaxis._id),h.gridlayer.selectAll("g").map(function(B){return B[0]}).sort(c.idSort)),h.xlines.style("fill","none").classed("crisp",!0),h.ylines.style("fill","none").classed("crisp",!0))}function f(l,h){if(l){var d={};for(var b in l.each(function(L){var u=L[0];S.select(this).remove(),v(u,h),d[u]=!0}),h._plots)for(var M=h._plots[b].overlays||[],g=0;gb[1]-.000244140625&&(E.domain=n),A.noneOrAll(t.domain,E.domain,n),E.tickmode==="sync"&&(E.tickmode="auto")}return w("layer"),E}}),54616:(function(tt,G,e){var S=e(87703);tt.exports=function(A,t,E,w,p){p||(p={});var c=p.tickSuffixDflt,i=S(A);E("tickprefix")&&E("showtickprefix",i),E("ticksuffix",c)&&E("showticksuffix",i)}}),90259:(function(tt,G,e){var S=e(75511);tt.exports=function(A,t,E,w){var p=t._template||{},c=t.type||p.type||"-";E("minallowed"),E("maxallowed");var i=E("range");if(!i){var r;!w.noInsiderange&&c!=="log"&&(r=E("insiderange"),r&&(r[0]===null||r[1]===null)&&(t.insiderange=!1,r=void 0),r&&(i=E("range",r)))}var o=t.getAutorangeDflt(i,w),a=E("autorange",o),s;i&&(i[0]===null&&i[1]===null||(i[0]===null||i[1]===null)&&(a==="reversed"||a===!0)||i[0]!==null&&(a==="min"||a==="max reversed")||i[1]!==null&&(a==="max"||a==="min reversed"))&&(i=void 0,delete t.range,t.autorange=!0,s=!0),s||(o=t.getAutorangeDflt(i,w),a=E("autorange",o)),a&&(S(E,a,i),(c==="linear"||c==="-")&&E("rangemode")),t.cleanRange()}}),67611:(function(tt,G,e){var S=e(4530).FROM_BL;tt.exports=function(A,t,E){E===void 0&&(E=S[A.constraintoward||"center"]);var w=[A.r2l(A.range[0]),A.r2l(A.range[1])],p=w[0]+(w[1]-w[0])*E;A.range=A._input.range=[A.l2r(p+(w[0]-p)*t),A.l2r(p+(w[1]-p)*t)],A.setScale()}}),19091:(function(tt,G,e){var S=e(45568),A=e(42696).aL,t=e(34809),E=t.numberFormat,w=e(10721),p=t.cleanNumber,c=t.ms2DateTime,i=t.dateTime2ms,r=t.ensureNumber,o=t.isArrayOrTypedArray,a=e(63821),s=a.FP_SAFE,n=a.BADNUM,m=a.LOG_CLIP,x=a.ONEWEEK,f=a.ONEDAY,v=a.ONEHOUR,l=a.ONEMIN,h=a.ONESEC,d=e(5975),b=e(54826),M=b.HOUR_PATTERN,g=b.WEEKDAY_PATTERN;function k(u){return 10**u}function L(u){return u!=null}tt.exports=function(u,T){T||(T={});var C=u._id||"x",_=C.charAt(0);function F(Q,Z){if(Q>0)return Math.log(Q)/Math.LN10;if(Q<=0&&Z&&u.range&&u.range.length===2){var st=u.range[0],ot=u.range[1];return .5*(st+ot-2*m*Math.abs(st-ot))}else return n}function O(Q,Z,st,ot){if((ot||{}).msUTC&&w(Q))return+Q;var rt=i(Q,st||u.calendar);if(rt===n)if(w(Q)){Q=+Q;var X=Math.floor(t.mod(Q+.05,1)*10),ut=Math.round(Q-X/10);rt=i(new Date(ut))+X/10}else return n;return rt}function j(Q,Z,st){return c(Q,Z,st||u.calendar)}function B(Q){return u._categories[Math.round(Q)]}function U(Q){if(L(Q)){if(u._categoriesMap===void 0&&(u._categoriesMap={}),u._categoriesMap[Q]!==void 0)return u._categoriesMap[Q];u._categories.push(typeof Q=="number"?String(Q):Q);var Z=u._categories.length-1;return u._categoriesMap[Q]=Z,Z}return n}function P(Q,Z){for(var st=Array(Z),ot=0;otu.range[1]&&(st=!st);for(var ot=st?-1:1,rt=ot*Q,X=0,ut=0;utyt)X=ut+1;else{X=rt<(lt+yt)/2?ut:ut+1;break}}var kt=u._B[X]||0;return isFinite(kt)?K(Q,u._m2,kt):0},ct=function(Q){var Z=u._rangebreaks.length;if(!Z)return nt(Q,u._m,u._b);for(var st=0,ot=0;otu._rangebreaks[ot].pmax&&(st=ot+1);return nt(Q,u._m2,u._B[st])}}u.c2l=u.type==="log"?F:r,u.l2c=u.type==="log"?k:r,u.l2p=ft,u.p2l=ct,u.c2p=u.type==="log"?function(Q,Z){return ft(F(Q,Z))}:ft,u.p2c=u.type==="log"?function(Q){return k(ct(Q))}:ct,["linear","-"].indexOf(u.type)===-1?u.type==="log"?(u.d2r=u.d2l=function(Q,Z){return F(p(Q),Z)},u.r2d=u.r2c=function(Q){return k(p(Q))},u.d2c=u.r2l=p,u.c2d=u.l2r=r,u.c2r=F,u.l2d=k,u.d2p=function(Q,Z){return u.l2p(u.d2r(Q,Z))},u.p2d=function(Q){return k(ct(Q))},u.r2p=function(Q){return u.l2p(p(Q))},u.p2r=ct,u.cleanPos=r):u.type==="date"?(u.d2r=u.r2d=t.identity,u.d2c=u.r2c=u.d2l=u.r2l=O,u.c2d=u.c2r=u.l2d=u.l2r=j,u.d2p=u.r2p=function(Q,Z,st){return u.l2p(O(Q,0,st))},u.p2d=u.p2r=function(Q,Z,st){return j(ct(Q),Z,st)},u.cleanPos=function(Q){return t.cleanDate(Q,n,u.calendar)}):u.type==="category"?(u.d2c=u.d2l=U,u.r2d=u.c2d=u.l2d=B,u.d2r=u.d2l_noadd=V,u.r2c=function(Q){var Z=Y(Q);return Z===void 0?u.fraction2r(.5):Z},u.l2r=u.c2r=r,u.r2l=Y,u.d2p=function(Q){return u.l2p(u.r2c(Q))},u.p2d=function(Q){return B(ct(Q))},u.r2p=u.d2p,u.p2r=ct,u.cleanPos=function(Q){return typeof Q=="string"&&Q!==""?Q:r(Q)}):u.type==="multicategory"&&(u.r2d=u.c2d=u.l2d=B,u.d2r=u.d2l_noadd=V,u.r2c=function(Q){var Z=V(Q);return Z===void 0?u.fraction2r(.5):Z},u.r2c_just_indices=N,u.l2r=u.c2r=r,u.r2l=V,u.d2p=function(Q){return u.l2p(u.r2c(Q))},u.p2d=function(Q){return B(ct(Q))},u.r2p=u.d2p,u.p2r=ct,u.cleanPos=function(Q){return Array.isArray(Q)||typeof Q=="string"&&Q!==""?Q:r(Q)},u.setupMultiCategory=function(Q){var Z=u._traceIndices,st,ot,rt=u._matchGroup;if(rt&&u._categories.length===0){for(var X in rt)if(X!==C){var ut=T[d.id2name(X)];Z=Z.concat(ut._traceIndices)}}var lt=[[0,{}],[0,{}]],yt=[];for(st=0;stut[1]&&(ot[X?0:1]=st),ot[0]===ot[1]){var lt=u.l2r(Z),yt=u.l2r(st);if(Z!==void 0){var kt=lt+1;st!==void 0&&(kt=Math.min(kt,yt)),ot[X?1:0]=kt}if(st!==void 0){var Lt=yt+1;Z!==void 0&&(Lt=Math.max(Lt,lt)),ot[X?0:1]=Lt}}}},u.cleanRange=function(Q,Z){u._cleanRange(Q,Z),u.limitRange(Q)},u._cleanRange=function(Q,Z){Z||(Z={}),Q||(Q="range");var st=t.nestedProperty(u,Q).get(),ot,rt=u.type==="date"?t.dfltRange(u.calendar):_==="y"?b.DFLTRANGEY:u._name==="realaxis"?[0,1]:Z.dfltRange||b.DFLTRANGEX;if(rt=rt.slice(),(u.rangemode==="tozero"||u.rangemode==="nonnegative")&&(rt[0]=0),!st||st.length!==2){t.nestedProperty(u,Q).set(rt);return}var X=st[0]===null,ut=st[1]===null;for(u.type==="date"&&!u.autorange&&(st[0]=t.cleanDate(st[0],n,u.calendar),st[1]=t.cleanDate(st[1],n,u.calendar)),ot=0;ot<2;ot++)if(u.type==="date"){if(!t.isDateTime(st[ot],u.calendar)){u[Q]=rt;break}if(u.r2l(st[0])===u.r2l(st[1])){var lt=t.constrain(u.r2l(st[0]),t.MIN_MS+1e3,t.MAX_MS-1e3);st[0]=u.l2r(lt-1e3),st[1]=u.l2r(lt+1e3);break}}else{if(!w(st[ot]))if(!(X||ut)&&w(st[1-ot]))st[ot]=st[1-ot]*(ot?10:.1);else{u[Q]=rt;break}if(st[ot]<-s?st[ot]=-s:st[ot]>s&&(st[ot]=s),st[0]===st[1]){var yt=Math.max(1,Math.abs(st[0]*1e-6));st[0]-=yt,st[1]+=yt}}},u.setScale=function(Q){var Z=T._size;u.overlaying&&(u.domain=d.getFromId({_fullLayout:T},u.overlaying).domain);var st=Q&&u._r?"_r":"range",ot=u.calendar;u.cleanRange(st);var rt=u.r2l(u[st][0],ot),X=u.r2l(u[st][1],ot),ut=_==="y";if(ut?(u._offset=Z.t+(1-u.domain[1])*Z.h,u._length=Z.h*(u.domain[1]-u.domain[0]),u._m=u._length/(rt-X),u._b=-u._m*X):(u._offset=Z.l+u.domain[0]*Z.w,u._length=Z.w*(u.domain[1]-u.domain[0]),u._m=u._length/(X-rt),u._b=-u._m*rt),u._rangebreaks=[],u._lBreaks=0,u._m2=0,u._B=[],u.rangebreaks){var lt,yt;if(u._rangebreaks=u.locateBreaks(Math.min(rt,X),Math.max(rt,X)),u._rangebreaks.length){for(lt=0;ltX&&(kt=!kt),kt&&u._rangebreaks.reverse();var Lt=kt?-1:1;for(u._m2=Lt*u._length/(Math.abs(X-rt)-u._lBreaks),u._B.push(-u._m2*(ut?X:rt)),lt=0;ltrt&&(rt+=7,Xrt&&(rt+=24,X=ot&&X=ot&&Q=ye.min&&(qtye.max&&(ye.max=jt),de=!1)}de&&ut.push({min:qt,max:jt})}};for(st=0;st rect").call(E.setTranslate,0,0).call(E.setScale,1,1),b.plot.call(E.setTranslate,M._offset,g._offset).call(E.setScale,1,1);var k=b.plot.selectAll(".scatterlayer .trace");k.selectAll(".point").call(E.setPointGroupScale,1,1),k.selectAll(".textpoint").call(E.setTextPointsScale,1,1),k.call(E.hideOutsideRangePoints,b)}function s(b,M){var g=b.plotinfo,k=g.xaxis,L=g.yaxis,u=k._length,T=L._length,C=!!b.xr1,_=!!b.yr1,F=[];if(C){var O=t.simpleMap(b.xr0,k.r2l),j=t.simpleMap(b.xr1,k.r2l),B=O[1]-O[0],U=j[1]-j[0];F[0]=(O[0]*(1-M)+M*j[0]-O[0])/(O[1]-O[0])*u,F[2]=u*(1-M+M*U/B),k.range[0]=k.l2r(O[0]*(1-M)+M*j[0]),k.range[1]=k.l2r(O[1]*(1-M)+M*j[1])}else F[0]=0,F[2]=u;if(_){var P=t.simpleMap(b.yr0,L.r2l),N=t.simpleMap(b.yr1,L.r2l),V=P[1]-P[0],Y=N[1]-N[0];F[1]=(P[1]*(1-M)+M*N[1]-P[1])/(P[0]-P[1])*T,F[3]=T*(1-M+M*Y/V),L.range[0]=k.l2r(P[0]*(1-M)+M*N[0]),L.range[1]=L.l2r(P[1]*(1-M)+M*N[1])}else F[1]=0,F[3]=T;w.drawOne(p,k,{skipTitle:!0}),w.drawOne(p,L,{skipTitle:!0}),w.redrawComponents(p,[k._id,L._id]);var K=C?u/F[2]:1,nt=_?T/F[3]:1,ft=C?F[0]:0,ct=_?F[1]:0,J=C?F[0]/F[2]*u:0,et=_?F[1]/F[3]*T:0,Q=k._offset-J,Z=L._offset-et;g.clipRect.call(E.setTranslate,ft,ct).call(E.setScale,1/K,1/nt),g.plot.call(E.setTranslate,Q,Z).call(E.setScale,K,nt),E.setPointGroupScale(g.zoomScalePts,1/K,1/nt),E.setTextPointsScale(g.zoomScaleTxt,1/K,1/nt)}var n;r&&(n=r());function m(){for(var b={},M=0;Mi.duration?(m(),l=window.cancelAnimationFrame(d)):l=window.requestAnimationFrame(d)}return f=Date.now(),l=window.requestAnimationFrame(d),Promise.resolve()}}),4392:(function(tt,G,e){var S=e(33626).traceIs,A=e(9666);tt.exports=function(c,i,r,o){r("autotypenumbers",o.autotypenumbersDflt),r("type",(o.splomStash||{}).type)==="-"&&(t(i,o.data),i.type==="-"?i.type="linear":c.type=i.type)};function t(c,i){if(c.type==="-"){var r=c._id,o=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=o);var s=E(i,r,o);if(s){if(s.type==="histogram"&&o==={v:"y",h:"x"}[s.orientation||"v"]){c.type="linear";return}var n=o+"calendar",m=s[n],x={noMultiCategory:!S(s,"cartesian")||S(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&o==={h:"x",v:"y"}[s.orientation||"v"]&&(x.noMultiCategory=!0),x.autotypenumbers=c.autotypenumbers,p(s,o)){var f=w(s),v=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[i]||(a[r+"axis"]||r)===i&&(p(a,r)||(a[r]||[]).length||a[r+"0"]))return a}}function w(c){return{v:"x",h:"y"}[c.orientation||"v"]}function p(c,i){var r=w(c),o=S(c,"box-violin"),a=S(c._fullInput||{},"candlestick");return o&&!a&&i===r&&c[r]===void 0&&c[r+"0"]===void 0}}),90251:(function(tt,G,e){var S=e(33626),A=e(34809);G.manageCommandObserver=function(i,r,o,a){var s={},n=!0;r&&r._commandObserver&&(s=r._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var m=G.hasSimpleAPICommandBindings(i,o,s.lookupTable);if(r&&r._commandObserver){if(m)return s;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,s}if(m){t(i,m,s.cache),s.check=function(){if(n){var v=t(i,m,s.cache);return v.changed&&a&&s.lookupTable[v.value]!==void 0&&(s.disable(),Promise.resolve(a({value:v.value,type:m.type,prop:m.prop,traces:m.traces,index:s.lookupTable[v.value]})).then(s.enable,s.enable)),v.changed}};for(var x=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f0?".":"")+s;A.isPlainObject(n)?c(n,r,m,a+1):r(m,s,n)}})}}),13792:(function(tt,G,e){var S=e(93049).extendFlat;G.u=function(A,t){A||(A={}),t||(t={});var E={valType:"info_array",editType:A.editType,items:[{valType:"number",min:0,max:1,editType:A.editType},{valType:"number",min:0,max:1,editType:A.editType}],dflt:[0,1]};A.name&&A.name+"",A.trace,t.description&&""+t.description;var w={x:S({},E,{}),y:S({},E,{}),editType:A.editType};return A.noGridCell||(w.row={valType:"integer",min:0,dflt:0,editType:A.editType},w.column={valType:"integer",min:0,dflt:0,editType:A.editType}),w},G.N=function(A,t,E,w){var p=w&&w.x||[0,1],c=w&&w.y||[0,1],i=t.grid;if(i){var r=E("domain.column");r!==void 0&&(r0&&P._module.calcGeoJSON(U,F)}if(!O){if(this.updateProjection(_,F))return;(!this.viewInitial||this.scope!==j.scope)&&this.saveViewInitial(j)}this.scope=j.scope,this.updateBaseLayers(F,j),this.updateDims(F,j),this.updateFx(F,j),s.generalUpdatePerTraceModule(this.graphDiv,this,_,j);var N=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=N.selectAll(".point"),this.dataPoints.text=N.selectAll("text"),this.dataPaths.line=N.selectAll(".js-line");var V=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=V.selectAll("path"),this._render()},L.updateProjection=function(_,F){var O=this.graphDiv,j=F[this.id],B=F._size,U=j.domain,P=j.projection,N=j.lonaxis,V=j.lataxis,Y=N._ax,K=V._ax,nt=this.projection=u(j),ft=[[B.l+B.w*U.x[0],B.t+B.h*(1-U.y[1])],[B.l+B.w*U.x[1],B.t+B.h*(1-U.y[0])]],ct=j.center||{},J=P.rotation||{},et=N.range||[],Q=V.range||[];if(j.fitbounds){Y._length=ft[1][0]-ft[0][0],K._length=ft[1][1]-ft[0][1],Y.range=m(O,Y),K.range=m(O,K);var Z=(Y.range[0]+Y.range[1])/2,st=(K.range[0]+K.range[1])/2;if(j._isScoped)ct={lon:Z,lat:st};else if(j._isClipped){ct={lon:Z,lat:st},J={lon:Z,lat:st,roll:J.roll};var ot=P.type,rt=d.lonaxisSpan[ot]/2||180,X=d.lataxisSpan[ot]/2||90;et=[Z-rt,Z+rt],Q=[st-X,st+X]}else ct={lon:Z,lat:st},J={lon:Z,lat:J.lat,roll:J.roll}}nt.center([ct.lon-J.lon,ct.lat-J.lat]).rotate([-J.lon,-J.lat,J.roll]).parallels(P.parallels);var ut=C(et,Q);nt.fitExtent(ft,ut);var lt=this.bounds=nt.getBounds(ut),yt=this.fitScale=nt.scale(),kt=nt.translate();if(j.fitbounds){var Lt=nt.getBounds(C(Y.range,K.range)),St=Math.min((lt[1][0]-lt[0][0])/(Lt[1][0]-Lt[0][0]),(lt[1][1]-lt[0][1])/(Lt[1][1]-Lt[0][1]));isFinite(St)?nt.scale(St*yt):c.warn("Something went wrong during"+this.id+"fitbounds computations.")}else nt.scale(P.scale*yt);var Ot=this.midPt=[(lt[0][0]+lt[1][0])/2,(lt[0][1]+lt[1][1])/2];if(nt.translate([kt[0]+(Ot[0]-kt[0]),kt[1]+(Ot[1]-kt[1])]).clipExtent(lt),j._isAlbersUsa){var Ht=nt([ct.lon,ct.lat]),Kt=nt.translate();nt.translate([Kt[0]-(Ht[0]-Kt[0]),Kt[1]-(Ht[1]-Kt[1])])}},L.updateBaseLayers=function(_,F){var O=this,j=O.topojson,B=O.layers,U=O.basePaths;function P(nt){return nt==="lonaxis"||nt==="lataxis"}function N(nt){return!!d.lineLayers[nt]}function V(nt){return!!d.fillLayers[nt]}var Y=(this.hasChoropleth?d.layersForChoropleth:d.layers).filter(function(nt){return N(nt)||V(nt)?F["show"+nt]:P(nt)?F[nt].showgrid:!0}),K=O.framework.selectAll(".layer").data(Y,String);K.exit().each(function(nt){delete B[nt],delete U[nt],S.select(this).remove()}),K.enter().append("g").attr("class",function(nt){return"layer "+nt}).each(function(nt){var ft=B[nt]=S.select(this);nt==="bg"?O.bgRect=ft.append("rect").style("pointer-events","all"):P(nt)?U[nt]=ft.append("path").style("fill","none"):nt==="backplot"?ft.append("g").classed("choroplethlayer",!0):nt==="frontplot"?ft.append("g").classed("scatterlayer",!0):N(nt)?U[nt]=ft.append("path").style("fill","none").style("stroke-miterlimit",2):V(nt)&&(U[nt]=ft.append("path").style("stroke","none"))}),K.order(),K.each(function(nt){var ft=U[nt],ct=d.layerNameToAdjective[nt];nt==="frame"?ft.datum(d.sphereSVG):N(nt)||V(nt)?ft.datum(g(j,j.objects[nt])):P(nt)&&ft.datum(T(nt,F,_)).call(r.stroke,F[nt].gridcolor).call(o.dashLine,F[nt].griddash,F[nt].gridwidth),N(nt)?ft.call(r.stroke,F[ct+"color"]).call(o.dashLine,"",F[ct+"width"]):V(nt)&&ft.call(r.fill,F[ct+"color"])})},L.updateDims=function(_,F){var O=this.bounds,j=(F.framewidth||0)/2,B=O[0][0]-j,U=O[0][1]-j,P=O[1][0]-B+j,N=O[1][1]-U+j;o.setRect(this.clipRect,B,U,P,N),this.bgRect.call(o.setRect,B,U,P,N).call(r.fill,F.bgcolor),this.xaxis._offset=B,this.xaxis._length=P,this.yaxis._offset=U,this.yaxis._length=N},L.updateFx=function(_,F){var O=this,j=O.graphDiv,B=O.bgRect,U=_.dragmode,P=_.clickmode;if(O.isStatic)return;function N(){var K=O.viewInitial,nt={};for(var ft in K)nt[O.id+"."+ft]=K[ft];p.call("_guiRelayout",j,nt),j.emit("plotly_doubleclick",null)}function V(K){return O.projection.invert([K[0]+O.xaxis._offset,K[1]+O.yaxis._offset])}var Y={element:O.bgRect.node(),gd:j,plotinfo:{id:O.id,xaxis:O.xaxis,yaxis:O.yaxis,fillRangeItems:function(K,nt){if(nt.isRect){var ft=K.range={};ft[O.id]=[V([nt.xmin,nt.ymin]),V([nt.xmax,nt.ymax])]}else{var ct=K.lassoPoints={};ct[O.id]=nt.map(V)}}},xaxes:[O.xaxis],yaxes:[O.yaxis],subplot:O.id,clickFn:function(K){K===2&&v(j)}};U==="pan"?(B.node().onmousedown=null,B.call(h(O,F)),B.on("dblclick.zoom",N),j._context._scrollZoom.geo||B.on("wheel.zoom",null)):(U==="select"||U==="lasso")&&(B.on(".zoom",null),Y.prepFn=function(K,nt,ft){f(K,nt,ft,Y,U)},x.init(Y)),B.on("mousemove",function(){var K=O.projection.invert(c.getPositionFromD3Event());if(!K)return x.unhover(j,S.event);O.xaxis.p2c=function(){return K[0]},O.yaxis.p2c=function(){return K[1]},a.hover(j,S.event,O.id)}),B.on("mouseout",function(){j._dragging||x.unhover(j,S.event)}),B.on("click",function(){U!=="select"&&U!=="lasso"&&(P.indexOf("select")>-1&&l(S.event,j,[O.xaxis],[O.yaxis],O.id,Y),P.indexOf("event")>-1&&a.click(j,S.event))})},L.makeFramework=function(){var _=this,F=_.graphDiv,O=F._fullLayout,j="clip"+O._uid+_.id;_.clipDef=O._clips.append("clipPath").attr("id",j),_.clipRect=_.clipDef.append("rect"),_.framework=S.select(_.container).append("g").attr("class","geo "+_.id).call(o.setClipUrl,j,F),_.project=function(B){var U=_.projection(B);return U?[U[0]-_.xaxis._offset,U[1]-_.yaxis._offset]:[null,null]},_.xaxis={_id:"x",c2p:function(B){return _.project(B)[0]}},_.yaxis={_id:"y",c2p:function(B){return _.project(B)[1]}},_.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},n.setConvert(_.mockAxis,O)},L.saveViewInitial=function(_){var F=_.center||{},O=_.projection,j=O.rotation||{};this.viewInitial={fitbounds:_.fitbounds,"projection.scale":O.scale};var B=_._isScoped?{"center.lon":F.lon,"center.lat":F.lat}:_._isClipped?{"projection.rotation.lon":j.lon,"projection.rotation.lat":j.lat}:{"center.lon":F.lon,"center.lat":F.lat,"projection.rotation.lon":j.lon};c.extendFlat(this.viewInitial,B)},L.render=function(_){this._hasMarkerAngles&&_?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},L._render=function(){var _=this.projection,F=_.getPath(),O;function j(U){var P=_(U.lonlat);return P?i(P[0],P[1]):null}function B(U){return _.isLonLatOverEdges(U.lonlat)?"none":null}for(O in this.basePaths)this.basePaths[O].attr("d",F);for(O in this.dataPaths)this.dataPaths[O].attr("d",function(U){return F(U.geojson)});for(O in this.dataPoints)this.dataPoints[O].attr("display",B).attr("transform",j)};function u(_){var F=_.projection,O=F.type,j=d.projNames[O];j="geo"+c.titleCase(j);for(var B=(A[j]||w[j])(),U=_._isSatellite?Math.acos(1/F.distance)*180/Math.PI:_._isClipped?d.lonaxisSpan[O]/2:null,P=["center","rotate","parallels","clipExtent"],N=function(K){return K?B:[]},V=0;VU*Math.PI/180}else return!1},B.getPath=function(){return t().projection(B)},B.getBounds=function(K){return B.getPath().bounds(K)},B.precision(d.precision),_._isSatellite&&B.tilt(F.tilt).distance(F.distance),U&&B.clipAngle(U-d.clipPad),B}function T(_,F,O){var j=1e-6,B=2.5,U=F[_],P=d.scopeDefaults[F.scope],N,V,Y;_==="lonaxis"?(N=P.lonaxisRange,V=P.lataxisRange,Y=function(st,ot){return[st,ot]}):_==="lataxis"&&(N=P.lataxisRange,V=P.lonaxisRange,Y=function(st,ot){return[ot,st]});var K={type:"linear",range:[N[0],N[1]-j],tick0:U.tick0,dtick:U.dtick};n.setConvert(K,O);var nt=n.calcTicks(K);!F.isScoped&&_==="lonaxis"&&nt.pop();for(var ft=nt.length,ct=Array(ft),J=0;J0&&B<0&&(B+=360);var N=(B-j)/4;return{type:"Polygon",coordinates:[[[j,U],[j,P],[j+N,P],[j+2*N,P],[j+3*N,P],[B,P],[B,U],[B-N,U],[B-2*N,U],[B-3*N,U],[j,U]]]}}}),47544:(function(tt,G,e){var S=e(4173).fX,A=e(34809).counterRegex,t=e(6493),E="geo",w=A(E),p={};p[E]={valType:"subplotid",dflt:E,editType:"calc"};function c(o){for(var a=o._fullLayout,s=o.calcdata,n=a._subplots[E],m=0;m0&&N<0&&(N+=360);var V=(P+N)/2,Y;if(!v){var K=l?x.projRotate:[V,0,0];Y=o("projection.rotation.lon",K[0]),o("projection.rotation.lat",K[1]),o("projection.rotation.roll",K[2]),k=o("showcoastlines",!l&&g),k&&(o("coastlinecolor"),o("coastlinewidth")),k=o("showocean",g?void 0:!1),k&&o("oceancolor")}var nt,ft;v?(nt=-96.6,ft=38.7):(nt=l?V:Y,ft=(U[0]+U[1])/2),o("center.lon",nt),o("center.lat",ft),h&&(o("projection.tilt"),o("projection.distance")),d&&o("projection.parallels",x.projParallels||[0,60]),o("projection.scale"),k=o("showland",g?void 0:!1),k&&o("landcolor"),k=o("showlakes",g?void 0:!1),k&&o("lakecolor"),k=o("showrivers",g?void 0:!1),k&&(o("rivercolor"),o("riverwidth")),k=o("showcountries",l&&m!=="usa"&&g),k&&(o("countrycolor"),o("countrywidth")),(m==="usa"||m==="north america"&&n===50)&&(o("showsubunits",g),o("subunitcolor"),o("subunitwidth")),l||(k=o("showframe",g),k&&(o("framecolor"),o("framewidth"))),o("bgcolor"),o("fitbounds")&&(delete r.projection.scale,l?(delete r.center.lon,delete r.center.lat):b?(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon,delete r.projection.rotation.lat,delete r.lonaxis.range,delete r.lataxis.range):(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon))}}),14309:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(33626),E=Math.PI/180,w=180/Math.PI,p={cursor:"pointer"},c={cursor:"auto"};function i(T,C){var _=T.projection;return(C._isScoped?a:C._isClipped?n:s)(T,_)}tt.exports=i;function r(T,C){return S.behavior.zoom().translate(C.translate()).scale(C.scale())}function o(T,C,_){var F=T.id,O=T.graphDiv,j=O.layout,B=j[F],U=O._fullLayout,P=U[F],N={},V={};function Y(K,nt){N[F+"."+K]=A.nestedProperty(B,K).get(),t.call("_storeDirectGUIEdit",j,U._preGUI,N);var ft=A.nestedProperty(P,K);ft.get()!==nt&&(ft.set(nt),A.nestedProperty(B,K).set(nt),V[F+"."+K]=nt)}_(Y),Y("projection.scale",C.scale()/T.fitScale),Y("fitbounds",!1),O.emit("plotly_relayout",V)}function a(T,C){var _=r(T,C);function F(){S.select(this).style(p)}function O(){C.scale(S.event.scale).translate(S.event.translate),T.render(!0);var U=C.invert(T.midPt);T.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":C.scale()/T.fitScale,"geo.center.lon":U[0],"geo.center.lat":U[1]})}function j(U){var P=C.invert(T.midPt);U("center.lon",P[0]),U("center.lat",P[1])}function B(){S.select(this).style(c),o(T,C,j)}return _.on("zoomstart",F).on("zoom",O).on("zoomend",B),_}function s(T,C){var _=r(T,C),F=2,O,j,B,U,P,N,V,Y,K;function nt(Z){return C.invert(Z)}function ft(Z){var st=nt(Z);if(!st)return!0;var ot=C(st);return Math.abs(ot[0]-Z[0])>F||Math.abs(ot[1]-Z[1])>F}function ct(){S.select(this).style(p),O=S.mouse(this),j=C.rotate(),B=C.translate(),U=j,P=nt(O)}function J(){if(N=S.mouse(this),ft(O)){_.scale(C.scale()),_.translate(C.translate());return}C.scale(S.event.scale),C.translate([B[0],S.event.translate[1]]),P?nt(N)&&(Y=nt(N),V=[U[0]+(Y[0]-P[0]),j[1],j[2]],C.rotate(V),U=V):(O=N,P=nt(O)),K=!0,T.render(!0);var Z=C.rotate(),st=C.invert(T.midPt);T.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":C.scale()/T.fitScale,"geo.center.lon":st[0],"geo.center.lat":st[1],"geo.projection.rotation.lon":-Z[0]})}function et(){S.select(this).style(c),K&&o(T,C,Q)}function Q(Z){var st=C.rotate(),ot=C.invert(T.midPt);Z("projection.rotation.lon",-st[0]),Z("center.lon",ot[0]),Z("center.lat",ot[1])}return _.on("zoomstart",ct).on("zoom",J).on("zoomend",et),_}function n(T,C){var _={r:C.rotate(),k:C.scale()},F=r(T,C),O=u(F,"zoomstart","zoom","zoomend"),j=0,B=F.on,U;F.on("zoomstart",function(){S.select(this).style(p);var K=S.mouse(this),nt=C.rotate(),ft=nt,ct=C.translate(),J=x(nt);U=m(C,K),B.call(F,"zoom",function(){var et=S.mouse(this);if(C.scale(_.k=S.event.scale),!U)K=et,U=m(C,K);else if(m(C,et)){C.rotate(nt).translate(ct);var Q=m(C,et),Z=_.r=l(M(f(J,v(U,Q))),U,ft);(!isFinite(Z[0])||!isFinite(Z[1])||!isFinite(Z[2]))&&(Z=ft),C.rotate(Z),ft=Z}N(O.of(this,arguments))}),P(O.of(this,arguments))}).on("zoomend",function(){S.select(this).style(c),B.call(F,"zoom",null),V(O.of(this,arguments)),o(T,C,Y)}).on("zoom.redraw",function(){T.render(!0);var K=C.rotate();T.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":C.scale()/T.fitScale,"geo.projection.rotation.lon":-K[0],"geo.projection.rotation.lat":-K[1]})});function P(K){j++||K({type:"zoomstart"})}function N(K){K({type:"zoom"})}function V(K){--j||K({type:"zoomend"})}function Y(K){var nt=C.rotate();K("projection.rotation.lon",-nt[0]),K("projection.rotation.lat",-nt[1])}return S.rebind(F,O,"on")}function m(T,C){var _=T.invert(C);return _&&isFinite(_[0])&&isFinite(_[1])&&g(_)}function x(T){var C=.5*T[0]*E,_=.5*T[1]*E,F=.5*T[2]*E,O=Math.sin(C),j=Math.cos(C),B=Math.sin(_),U=Math.cos(_),P=Math.sin(F),N=Math.cos(F);return[j*U*N+O*B*P,O*U*N-j*B*P,j*B*N+O*U*P,j*U*P-O*B*N]}function f(T,C){var _=T[0],F=T[1],O=T[2],j=T[3],B=C[0],U=C[1],P=C[2],N=C[3];return[_*B-F*U-O*P-j*N,_*U+F*B+O*N-j*P,_*P-F*N+O*B+j*U,_*N+F*P-O*U+j*B]}function v(T,C){if(!(!T||!C)){var _=L(T,C),F=Math.sqrt(k(_,_)),O=.5*Math.acos(Math.max(-1,Math.min(1,k(T,C)))),j=Math.sin(O)/F;return F&&[Math.cos(O),_[2]*j,-_[1]*j,_[0]*j]}}function l(T,C,_){var F=b(C,2,T[0]);F=b(F,1,T[1]),F=b(F,0,T[2]-_[2]);var O=C[0],j=C[1],B=C[2],U=F[0],P=F[1],N=F[2],V=Math.atan2(j,O)*w,Y=Math.sqrt(O*O+j*j),K,nt;Math.abs(P)>Y?(nt=(P>0?90:-90)-V,K=0):(nt=Math.asin(P/Y)*w-V,K=Math.sqrt(Y*Y-P*P));var ft=180-nt-2*V,ct=(Math.atan2(N,U)-Math.atan2(B,K))*w,J=(Math.atan2(N,U)-Math.atan2(B,-K))*w;return h(_[0],_[1],nt,ct)<=h(_[0],_[1],ft,J)?[nt,ct,_[2]]:[ft,J,_[2]]}function h(T,C,_,F){var O=d(_-T),j=d(F-C);return Math.sqrt(O*O+j*j)}function d(T){return(T%360+540)%360-180}function b(T,C,_){var F=_*E,O=T.slice(),j=C===0?1:0,B=C===2?1:2,U=Math.cos(F),P=Math.sin(F);return O[j]=T[j]*U-T[B]*P,O[B]=T[B]*U+T[j]*P,O}function M(T){return[Math.atan2(2*(T[0]*T[1]+T[2]*T[3]),1-2*(T[1]*T[1]+T[2]*T[2]))*w,Math.asin(Math.max(-1,Math.min(1,2*(T[0]*T[2]-T[3]*T[1]))))*w,Math.atan2(2*(T[0]*T[3]+T[1]*T[2]),1-2*(T[2]*T[2]+T[3]*T[3]))*w]}function g(T){var C=T[0]*E,_=T[1]*E,F=Math.cos(_);return[F*Math.cos(C),F*Math.sin(C),Math.sin(_)]}function k(T,C){for(var _=0,F=0,O=T.length;FMath.abs(L)?(a.boxEnd[1]=a.boxStart[1]+Math.abs(k)*O*(L>=0?1:-1),a.boxEnd[1]l[3]&&(a.boxEnd[1]=l[3],a.boxEnd[0]=a.boxStart[0]+(l[3]-a.boxStart[1])/Math.abs(O))):(a.boxEnd[0]=a.boxStart[0]+Math.abs(L)/O*(k>=0?1:-1),a.boxEnd[0]l[2]&&(a.boxEnd[0]=l[2],a.boxEnd[1]=a.boxStart[1]+(l[2]-a.boxStart[0])*Math.abs(O)))}else _&&(a.boxEnd[0]=a.boxStart[0]),F&&(a.boxEnd[1]=a.boxStart[1])}else a.boxEnabled?(k=a.boxStart[0]!==a.boxEnd[0],L=a.boxStart[1]!==a.boxEnd[1],k||L?(k&&(u(0,a.boxStart[0],a.boxEnd[0]),i.xaxis.autorange=!1),L&&(u(1,a.boxStart[1],a.boxEnd[1]),i.yaxis.autorange=!1),i.relayoutCallback()):i.glplot.setDirty(),a.boxEnabled=!1,a.boxInited=!1):a.boxInited&&(a.boxInited=!1);break;case"pan":a.boxEnabled=!1,a.boxInited=!1,x?(a.panning||(a.dragStart[0]=f,a.dragStart[1]=v),Math.abs(a.dragStart[0]-f)1;function m(x){if(!n&&S.validate(o[x],p[x]))return o[x]}E(o,a,s,{type:i,attributes:p,handleDefaults:r,fullLayout:a,font:a.font,fullData:s,getDfltFromLayout:m,autotypenumbersDflt:a.autotypenumbers,paper_bgcolor:a.paper_bgcolor,calendar:a.calendar})};function r(o,a,s,n){for(var m=s("bgcolor"),x=A.combine(m,n.paper_bgcolor),f=["up","center","eye"],v=0;v.999)&&(b="turntable")}else b="turntable";s("dragmode",b),s("hovermode",n.getDfltFromLayout("hovermode"))}}),77168:(function(tt,G,e){var S=e(63397),A=e(13792).u,t=e(93049).extendFlat,E=e(34809).counterRegex;function w(p,c,i){return{x:{valType:"number",dflt:p,editType:"camera"},y:{valType:"number",dflt:c,editType:"camera"},z:{valType:"number",dflt:i,editType:"camera"},editType:"camera"}}tt.exports={_arrayAttrRegexps:[E("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:t(w(0,0,1),{}),center:t(w(0,0,0),{}),eye:t(w(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:A({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:S,yaxis:S,zaxis:S,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}}),64087:(function(tt,G,e){var S=e(55010),A=["xaxis","yaxis","zaxis"];function t(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var E=t.prototype;E.merge=function(p){for(var c=0;c<3;++c){var i=p[A[c]];if(!i.visible){this.enabled[c]=!1,this.drawSides[c]=!1;continue}this.enabled[c]=i.showspikes,this.colors[c]=S(i.spikecolor),this.drawSides[c]=i.spikesides,this.lineWidth[c]=i.spikethickness}};function w(p){var c=new t;return c.merge(p),c}tt.exports=w}),32412:(function(tt,G,e){tt.exports=p;var S=e(29714),A=e(34809),t=["xaxis","yaxis","zaxis"],E=[0,0,0];function w(c){for(var i=[,,,],r=0;r<3;++r){for(var o=c[r],a=Array(o.length),s=0;s/g," "));a[s]=f,n.tickmode=m}}i.ticks=a;for(var s=0;s<3;++s){E[s]=.5*(c.glplot.bounds[0][s]+c.glplot.bounds[1][s]);for(var v=0;v<2;++v)i.bounds[v][s]=c.glplot.bounds[v][s]}c.contourLevels=w(a)}}),25802:(function(tt){function G(S,A){var t=[0,0,0,0],E,w;for(E=0;E<4;++E)for(w=0;w<4;++w)t[w]+=S[4*E+w]*A[E];return t}function e(S,A){return G(S.projection,G(S.view,G(S.model,[A[0],A[1],A[2],1])))}tt.exports=e}),20299:(function(tt,G,e){var S=e(99098).gl_plot3d,A=S.createCamera,t=S.createScene,E=e(22248),w=e(74043),p=e(33626),c=e(34809),i=c.preserveDrawingBuffer(),r=e(29714),o=e(32141),a=e(55010),s=e(97464),n=e(25802),m=e(95701),x=e(64087),f=e(32412),v=e(32919).applyAutorangeOptions,l,h,d=!1;function b(O,j){var B=document.createElement("div"),U=O.container;this.graphDiv=O.graphDiv;var P=document.createElementNS("http://www.w3.org/2000/svg","svg");P.style.position="absolute",P.style.top=P.style.left="0px",P.style.width=P.style.height="100%",P.style["z-index"]=20,P.style["pointer-events"]="none",B.appendChild(P),this.svgContainer=P,B.id=O.id,B.style.position="absolute",B.style.top=B.style.left="0px",B.style.width=B.style.height="100%",U.appendChild(B),this.fullLayout=j,this.id=O.id||"scene",this.fullSceneLayout=j[this.id],this.plotArgs=[[],{},{}],this.axesOptions=m(j,j[this.id]),this.spikeOptions=x(j[this.id]),this.container=B,this.staticMode=!!O.staticPlot,this.pixelRatio=this.pixelRatio||O.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=p.getComponentMethod("annotations3d","convert"),this.drawAnnotations=p.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var M=b.prototype;M.prepareOptions=function(){var O=this,j={canvas:O.canvas,gl:O.gl,glOptions:{preserveDrawingBuffer:i,premultipliedAlpha:!0,antialias:!0},container:O.container,axes:O.axesOptions,spikes:O.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:O.camera,pixelRatio:O.pixelRatio};if(O.staticMode){if(!h&&(l=document.createElement("canvas"),h=E({canvas:l,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!h))throw Error("error creating static canvas/context for image server");j.gl=h,j.canvas=l}return j};var g=!0;M.tryCreatePlot=function(){var O=this,j=O.prepareOptions(),B=!0;try{O.glplot=t(j)}catch{if(O.staticMode||!g||i)B=!1;else{c.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{i=j.glOptions.preserveDrawingBuffer=!0,O.glplot=t(j)}catch{i=j.glOptions.preserveDrawingBuffer=!1,B=!1}}}return g=!1,B},M.initializeGLCamera=function(){var O=this,j=O.fullSceneLayout.camera,B=j.projection.type==="orthographic";O.camera=A(O.container,{center:[j.center.x,j.center.y,j.center.z],eye:[j.eye.x,j.eye.y,j.eye.z],up:[j.up.x,j.up.y,j.up.z],_ortho:B,zoomMin:.01,zoomMax:100,mode:"orbit"})},M.initializeGLPlot=function(){var O=this;if(O.initializeGLCamera(),!O.tryCreatePlot())return s(O);O.traces={},O.make4thDimension();var j=O.graphDiv,B=j.layout,U=function(){var N={};return O.isCameraChanged(B)&&(N[O.id+".camera"]=O.getCamera()),O.isAspectChanged(B)&&(N[O.id+".aspectratio"]=O.glplot.getAspectratio(),B[O.id].aspectmode!=="manual"&&(O.fullSceneLayout.aspectmode=B[O.id].aspectmode=N[O.id+".aspectmode"]="manual")),N},P=function(N){if(N.fullSceneLayout.dragmode!==!1){var V=U();N.saveLayout(B),N.graphDiv.emit("plotly_relayout",V)}};return O.glplot.canvas&&(O.glplot.canvas.addEventListener("mouseup",function(){P(O)}),O.glplot.canvas.addEventListener("touchstart",function(){d=!0}),O.glplot.canvas.addEventListener("wheel",function(N){if(j._context._scrollZoom.gl3d){if(O.camera._ortho){var V=N.deltaX>N.deltaY?1.1:.9090909090909091,Y=O.glplot.getAspectratio();O.glplot.setAspectratio({x:V*Y.x,y:V*Y.y,z:V*Y.z})}P(O)}},w?{passive:!1}:!1),O.glplot.canvas.addEventListener("mousemove",function(){if(O.fullSceneLayout.dragmode!==!1&&O.camera.mouseListener.buttons!==0){var N=U();O.graphDiv.emit("plotly_relayouting",N)}}),O.staticMode||O.glplot.canvas.addEventListener("webglcontextlost",function(N){j&&j.emit&&j.emit("plotly_webglcontextlost",{event:N,layer:O.id})},!1)),O.glplot.oncontextloss=function(){O.recoverContext()},O.glplot.onrender=function(){O.render()},!0},M.render=function(){var O=this,j=O.graphDiv,B,U=O.svgContainer,P=O.container.getBoundingClientRect();j._fullLayout._calcInverseTransform(j);var N=j._fullLayout._invScaleX,V=j._fullLayout._invScaleY,Y=P.width*N,K=P.height*V;U.setAttributeNS(null,"viewBox","0 0 "+Y+" "+K),U.setAttributeNS(null,"width",Y),U.setAttributeNS(null,"height",K),f(O),O.glplot.axes.update(O.axesOptions);for(var nt=Object.keys(O.traces),ft=null,ct=O.glplot.selection,J=0;J")):B.type==="isosurface"||B.type==="volume"?(ot.valueLabel=r.hoverLabelText(O._mockAxis,O._mockAxis.d2l(ct.traceCoordinate[3]),B.valuehoverformat),yt.push("value: "+ot.valueLabel),ct.textLabel&&yt.push(ct.textLabel),lt=yt.join("
")):lt=ct.textLabel;var kt={x:ct.traceCoordinate[0],y:ct.traceCoordinate[1],z:ct.traceCoordinate[2],data:Z._input,fullData:Z,curveNumber:Z.index,pointNumber:st};o.appendArrayPointValue(kt,Z,st),B._module.eventData&&(kt=Z._module.eventData(kt,ct,Z,{},st));var Lt={points:[kt]};if(O.fullSceneLayout.hovermode){var St=[];o.loneHover({trace:Z,x:(.5+.5*Q[0]/Q[3])*Y,y:(.5-.5*Q[1]/Q[3])*K,xLabel:ot.xLabel,yLabel:ot.yLabel,zLabel:ot.zLabel,text:lt,name:ft.name,color:o.castHoverOption(Z,st,"bgcolor")||ft.color,borderColor:o.castHoverOption(Z,st,"bordercolor"),fontFamily:o.castHoverOption(Z,st,"font.family"),fontSize:o.castHoverOption(Z,st,"font.size"),fontColor:o.castHoverOption(Z,st,"font.color"),nameLength:o.castHoverOption(Z,st,"namelength"),textAlign:o.castHoverOption(Z,st,"align"),hovertemplate:c.castOption(Z,st,"hovertemplate"),hovertemplateLabels:c.extendFlat({},kt,ot),eventData:[kt]},{container:U,gd:j,inOut_bbox:St}),kt.bbox=St[0]}ct.distance<5&&(ct.buttons||d)?j.emit("plotly_click",Lt):j.emit("plotly_hover",Lt),this.oldEventData=Lt}else o.loneUnhover(U),this.oldEventData&&j.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;O.drawAnnotations(O)},M.recoverContext=function(){var O=this;O.glplot.dispose();var j=function(){if(O.glplot.gl.isContextLost()){requestAnimationFrame(j);return}if(!O.initializeGLPlot()){c.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}O.plot.apply(O,O.plotArgs)};requestAnimationFrame(j)};var k=["xaxis","yaxis","zaxis"];function L(O,j,B){for(var U=O.fullSceneLayout,P=0;P<3;P++){var N=k[P],V=N.charAt(0),Y=U[N],K=j[V],nt=j[V+"calendar"],ft=j["_"+V+"length"];if(!c.isArrayOrTypedArray(K))B[0][P]=Math.min(B[0][P],0),B[1][P]=Math.max(B[1][P],ft-1);else for(var ct,J=0;J<(ft||K.length);J++)if(c.isArrayOrTypedArray(K[J]))for(var et=0;etZ[1][V])Z[0][V]=-1,Z[1][V]=1;else{var Ht=Z[1][V]-Z[0][V];Z[0][V]-=Ht/32,Z[1][V]+=Ht/32}if(rt=[Z[0][V],Z[1][V]],rt=v(rt,K),Z[0][V]=rt[0],Z[1][V]=rt[1],K.isReversed()){var Kt=Z[0][V];Z[0][V]=Z[1][V],Z[1][V]=Kt}}else rt=K.range,Z[0][V]=K.r2l(rt[0]),Z[1][V]=K.r2l(rt[1]);Z[0][V]===Z[1][V]&&(--Z[0][V],Z[1][V]+=1),st[V]=Z[1][V]-Z[0][V],K.range=[Z[0][V],Z[1][V]],K.limitRange(),U.glplot.setBounds(V,{min:K.range[0]*et[V],max:K.range[1]*et[V]})}var Gt,Et=ft.aspectmode;if(Et==="cube")Gt=[1,1,1];else if(Et==="manual"){var At=ft.aspectratio;Gt=[At.x,At.y,At.z]}else if(Et==="auto"||Et==="data"){var qt=[1,1,1];for(V=0;V<3;++V){K=ft[k[V]],nt=K.type;var jt=ot[nt];qt[V]=jt.acc**(1/jt.count)/et[V]}Gt=Et==="data"||Math.max.apply(null,qt)/Math.min.apply(null,qt)<=4?qt:[1,1,1]}else throw Error("scene.js aspectRatio was not one of the enumerated types");ft.aspectratio.x=ct.aspectratio.x=Gt[0],ft.aspectratio.y=ct.aspectratio.y=Gt[1],ft.aspectratio.z=ct.aspectratio.z=Gt[2],U.glplot.setAspectratio(ft.aspectratio),U.viewInitial.aspectratio||(U.viewInitial.aspectratio={x:ft.aspectratio.x,y:ft.aspectratio.y,z:ft.aspectratio.z}),U.viewInitial.aspectmode||(U.viewInitial.aspectmode=ft.aspectmode);var de=ft.domain||null,Xt=j._size||null;if(de&&Xt){var ye=U.container.style;ye.position="absolute",ye.left=Xt.l+de.x[0]*Xt.w+"px",ye.top=Xt.t+(1-de.y[1])*Xt.h+"px",ye.width=Xt.w*(de.x[1]-de.x[0])+"px",ye.height=Xt.h*(de.y[1]-de.y[0])+"px"}U.glplot.redraw()}},M.destroy=function(){var O=this;O.glplot&&(O.glplot=(O.camera.mouseListener.enabled=!1,O.container.removeEventListener("wheel",O.camera.wheelListener),O.camera=null,O.glplot.dispose(),O.container.parentNode.removeChild(O.container),null))};function T(O){return[[O.eye.x,O.eye.y,O.eye.z],[O.center.x,O.center.y,O.center.z],[O.up.x,O.up.y,O.up.z]]}function C(O){return{up:{x:O.up[0],y:O.up[1],z:O.up[2]},center:{x:O.center[0],y:O.center[1],z:O.center[2]},eye:{x:O.eye[0],y:O.eye[1],z:O.eye[2]},projection:{type:O._ortho===!0?"orthographic":"perspective"}}}M.getCamera=function(){var O=this;return O.camera.view.recalcMatrix(O.camera.view.lastT()),C(O.camera)},M.setViewport=function(O){var j=this,B=O.camera;j.camera.lookAt.apply(this,T(B)),j.glplot.setAspectratio(O.aspectratio),B.projection.type==="orthographic"!==j.camera._ortho&&(j.glplot.redraw(),j.glplot.clearRGBA(),j.glplot.dispose(),j.initializeGLPlot())},M.isCameraChanged=function(O){var j=this,B=j.getCamera(),U=c.nestedProperty(O,j.id+".camera").get();function P(K,nt,ft,ct){var J=["up","center","eye"],et=["x","y","z"];return nt[J[ft]]&&K[J[ft]][et[ct]]===nt[J[ft]][et[ct]]}var N=!1;if(U===void 0)N=!0;else{for(var V=0;V<3;V++)for(var Y=0;Y<3;Y++)if(!P(B,U,V,Y)){N=!0;break}(!U.projection||B.projection&&B.projection.type!==U.projection.type)&&(N=!0)}return N},M.isAspectChanged=function(O){var j=this,B=j.glplot.getAspectratio(),U=c.nestedProperty(O,j.id+".aspectratio").get();return U===void 0||U.x!==B.x||U.y!==B.y||U.z!==B.z},M.saveLayout=function(O){var j=this,B=j.fullLayout,U,P,N,V,Y,K,nt=j.isCameraChanged(O),ft=j.isAspectChanged(O),ct=nt||ft;if(ct){var J={};nt&&(U=j.getCamera(),P=c.nestedProperty(O,j.id+".camera"),N=P.get(),J[j.id+".camera"]=N),ft&&(V=j.glplot.getAspectratio(),Y=c.nestedProperty(O,j.id+".aspectratio"),K=Y.get(),J[j.id+".aspectratio"]=K),p.call("_storeDirectGUIEdit",O,B._preGUI,J),nt&&(P.set(U),c.nestedProperty(B,j.id+".camera").set(U)),ft&&(Y.set(V),c.nestedProperty(B,j.id+".aspectratio").set(V),j.glplot.redraw())}return ct},M.updateFx=function(O,j){var B=this,U=B.camera;if(U)if(O==="orbit")U.mode="orbit",U.keyBindingMode="rotate";else if(O==="turntable"){U.up=[0,0,1],U.mode="turntable",U.keyBindingMode="rotate";var P=B.graphDiv,N=P._fullLayout,V=B.fullSceneLayout.camera,Y=V.up.x,K=V.up.y,nt=V.up.z;if(nt/Math.sqrt(Y*Y+K*K+nt*nt)<.999){var ft=B.id+".camera.up",ct={x:0,y:0,z:1},J={};J[ft]=ct;var et=P.layout;p.call("_storeDirectGUIEdit",et,N._preGUI,J),V.up=ct,c.nestedProperty(et,ft).set(ct)}}else U.keyBindingMode=O;B.fullSceneLayout.hovermode=j};function _(O,j,B){for(var U=0,P=B-1;U0)for(var Y=255/V,K=0;K<3;++K)O[N+K]=Math.min(Y*O[N+K],255)}}M.toImage=function(O){var j=this;O||(O="png"),j.staticMode&&j.container.appendChild(l),j.glplot.redraw();var B=j.glplot.gl,U=B.drawingBufferWidth,P=B.drawingBufferHeight;B.bindFramebuffer(B.FRAMEBUFFER,null);var N=new Uint8Array(U*P*4);B.readPixels(0,0,U,P,B.RGBA,B.UNSIGNED_BYTE,N),_(N,U,P),F(N,U,P);var V=document.createElement("canvas");V.width=U,V.height=P;var Y=V.getContext("2d",{willReadFrequently:!0}),K=Y.createImageData(U,P);K.data.set(N),Y.putImageData(K,0,0);var nt;switch(O){case"jpeg":nt=V.toDataURL("image/jpeg");break;case"webp":nt=V.toDataURL("image/webp");break;default:nt=V.toDataURL("image/png")}return j.staticMode&&j.container.removeChild(l),nt},M.setConvert=function(){for(var O=this,j=0;j<3;j++){var B=O.fullSceneLayout[k[j]];r.setConvert(B,O.fullLayout),B.setScale=c.noop}},M.make4thDimension=function(){var O=this,j=O.graphDiv._fullLayout;O._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},r.setConvert(O._mockAxis,j)},tt.exports=b}),88239:(function(tt){tt.exports=function(G,e,S,A){A||(A=G.length);for(var t=Array(A),E=0;EOpenStreetMap
contributors',w="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",p="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",c="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",i="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",a={basic:c,streets:c,outdoors:c,light:w,dark:p,satellite:t,"satellite-streets":A,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:E,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":w,"carto-darkmatter":p,"carto-voyager":c,"carto-positron-nolabels":i,"carto-darkmatter-nolabels":r,"carto-voyager-nolabels":o},s=S(a);tt.exports={styleValueDflt:"basic",stylesMap:a,styleValuesMap:s,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",s.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}}),4657:(function(tt,G,e){var S=e(34809);tt.exports=function(A,t){var E=A.split(" "),w=E[0],p=E[1],c=S.isArrayOrTypedArray(t)?S.mean(t):t,i=.5+c/100,r=1.5+c/100,o=["",""],a=[0,0];switch(w){case"top":o[0]="top",a[1]=-r;break;case"bottom":o[0]="bottom",a[1]=r;break}switch(p){case"left":o[1]="right",a[0]=-i;break;case"right":o[1]="left",a[0]=i;break}return{anchor:o[0]&&o[1]?o.join("-"):o[0]?o[0]:o[1]?o[1]:"center",offset:a}}}),34091:(function(tt,G,e){var S=e(34809),A=S.strTranslate,t=S.strScale,E=e(4173).fX,w=e(62972),p=e(45568),c=e(62203),i=e(30635),r=e(38793),o="map";G.name=o,G.attr="subplot",G.idRoot=o,G.idRegex=G.attrRegex=S.counterRegex(o),G.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}},G.layoutAttributes=e(8257),G.supplyLayoutDefaults=e(97446),G.plot=function(a){for(var s=a._fullLayout,n=a.calcdata,m=s._subplots[o],x=0;xg/2){var k=h.split("|").join("
");b.text(k).attr("data-unformatted",k).call(i.convertToTspans,a),M=c.bBox(b.node())}b.attr("transform",A(-3,-M.height+8)),d.insert("rect",".static-attribution").attr({x:-M.width-6,y:-M.height-3,width:M.width+6,height:M.height+3,fill:"rgba(255, 255, 255, 0.75)"});var L=1;M.width+6>g&&(L=g/(M.width+6));var u=[m.l+m.w*v.x[1],m.t+m.h*(1-v.y[0])];d.attr("transform",A(u[0],u[1])+t(L))}},G.updateFx=function(a){for(var s=a._fullLayout,n=s._subplots[o],m=0;m0){for(var s=0;s0}function i(o){var a={},s={};switch(o.type){case"circle":S.extendFlat(s,{"circle-radius":o.circle.radius,"circle-color":o.color,"circle-opacity":o.opacity});break;case"line":S.extendFlat(s,{"line-width":o.line.width,"line-color":o.color,"line-opacity":o.opacity,"line-dasharray":o.line.dash});break;case"fill":S.extendFlat(s,{"fill-color":o.color,"fill-outline-color":o.fill.outlinecolor,"fill-opacity":o.opacity});break;case"symbol":var n=o.symbol,m=t(n.textposition,n.iconsize);S.extendFlat(a,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":m.anchor,"text-offset":m.offset,"symbol-placement":n.placement}),S.extendFlat(s,{"icon-color":o.color,"text-color":n.textfont.color,"text-opacity":o.opacity});break;case"raster":S.extendFlat(s,{"raster-fade-duration":0,"raster-opacity":o.opacity});break}return{layout:a,paint:s}}function r(o){var a=o.sourcetype,s=o.source,n={type:a},m;return a==="geojson"?m="data":a==="vector"?m=typeof s=="string"?"url":"tiles":a==="raster"?(m="tiles",n.tileSize=256):a==="image"&&(m="url",n.coordinates=o.coordinates),n[m]=s,o.sourceattribution&&(n.attribution=A(o.sourceattribution)),n}tt.exports=function(o,a,s){var n=new w(o,a);return n.update(s),n}}),8257:(function(tt,G,e){var S=e(34809),A=e(78766).defaultLine,t=e(13792).u,E=e(80337),w=e(36640).textposition,p=e(13582).overrideAll,c=e(78032).templatedArray,i=e(8814),r=E({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});r.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=tt.exports=p({_arrayAttrRegexps:[S.counterRegex("map",".layers",!0)],domain:t({name:"map"}),style:{valType:"any",values:i.styleValuesMap,dflt:i.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:c("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:A},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:A}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:r,textposition:S.extendFlat({},w,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}),97446:(function(tt,G,e){var S=e(34809),A=e(4448),t=e(59008),E=e(8257);tt.exports=function(c,i,r){A(c,i,r,{type:"map",attributes:E,handleDefaults:w,partition:"y"})};function w(c,i,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var o=r("bounds.west"),a=r("bounds.east"),s=r("bounds.south"),n=r("bounds.north");(o===void 0||a===void 0||s===void 0||n===void 0)&&delete i.bounds,t(c,i,{name:"layers",handleItemDefaults:p}),i._input=c}function p(c,i){function r(m,x){return S.coerce(c,i,E.layers,m,x)}if(r("visible")){var o=r("sourcetype"),a=o==="raster"||o==="image";r("source"),r("sourceattribution"),o==="vector"&&r("sourcelayer"),o==="image"&&r("coordinates");var s;a&&(s="raster");var n=r("type",s);a&&n!=="raster"&&(n=i.type="raster",S.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),n==="circle"&&r("circle.radius"),n==="line"&&(r("line.width"),r("line.dash")),n==="fill"&&r("fill.outlinecolor"),n==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),S.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}}),38793:(function(tt,G,e){var S=e(89380),A=e(34809),t=e(3994),E=e(33626),w=e(29714),p=e(14751),c=e(32141),i=e(70414),r=i.drawMode,o=i.selectMode,a=e(44844).prepSelect,s=e(44844).clearOutline,n=e(44844).clearSelectionsCache,m=e(44844).selectOnClick,x=e(8814),f=e(33389);function v(g,k){this.id=k,this.gd=g;var L=g._fullLayout,u=g._context;this.container=L._glcontainer.node(),this.isStatic=u.staticPlot,this.uid=L._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(L),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var l=v.prototype;l.plot=function(g,k,L){var u=this,T=u.map?new Promise(function(C,_){u.updateMap(g,k,C,_)}):new Promise(function(C,_){u.createMap(g,k,C,_)});L.push(T)},l.createMap=function(g,k,L,u){var T=this,C=k[T.id],_=T.styleObj=d(C.style),F=C.bounds,O=F?[[F.west,F.south],[F.east,F.north]]:null,j=T.map=new S.Map({container:T.div,style:_.style,center:M(C.center),zoom:C.zoom,bearing:C.bearing,pitch:C.pitch,maxBounds:O,interactive:!T.isStatic,preserveDrawingBuffer:T.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new S.AttributionControl({compact:!0})),B={};j.on("styleimagemissing",function(P){var N=P.id;if(!B[N]&&N.includes("-15")){B[N]=!0;var V=new Image(15,15);V.onload=function(){j.addImage(N,V)},V.crossOrigin="Anonymous",V.src="https://unpkg.com/maki@2.1.0/icons/"+N+".svg"}}),j.setTransformRequest(function(P){return P=P.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),P=P.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),P=P.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:P}}),j._canvas.style.left="0px",j._canvas.style.top="0px",T.rejectOnError(u),T.isStatic||T.initFx(g,k);var U=[];U.push(new Promise(function(P){j.once("load",P)})),U=U.concat(t.fetchTraceGeoData(g)),Promise.all(U).then(function(){T.fillBelowLookup(g,k),T.updateData(g),T.updateLayout(k),T.resolveOnRender(L)}).catch(u)},l.updateMap=function(g,k,L,u){var T=this,C=T.map,_=k[this.id];T.rejectOnError(u);var F=[],O=d(_.style);JSON.stringify(T.styleObj)!==JSON.stringify(O)&&(T.styleObj=O,C.setStyle(O.style),T.traceHash={},F.push(new Promise(function(j){C.once("styledata",j)}))),F=F.concat(t.fetchTraceGeoData(g)),Promise.all(F).then(function(){T.fillBelowLookup(g,k),T.updateData(g),T.updateLayout(k),T.resolveOnRender(L)}).catch(u)},l.fillBelowLookup=function(g,k){var L=k[this.id].layers,u,T,C=this.belowLookup={},_=!1;for(u=0;u1)for(u=0;u-1&&m(O.originalEvent,u,[L.xaxis],[L.yaxis],L.id,F),j.indexOf("event")>-1&&c.click(u,O.originalEvent)}}},l.updateFx=function(g){var k=this,L=k.map,u=k.gd;if(k.isStatic)return;function T(O){var j=k.map.unproject(O);return[j.lng,j.lat]}var C=g.dragmode,_=function(O,j){if(j.isRect){var B=O.range={};B[k.id]=[T([j.xmin,j.ymin]),T([j.xmax,j.ymax])]}else{var U=O.lassoPoints={};U[k.id]=j.map(T)}},F=k.dragOptions;k.dragOptions=A.extendDeep(F||{},{dragmode:g.dragmode,element:k.div,gd:u,plotinfo:{id:k.id,domain:g[k.id].domain,xaxis:k.xaxis,yaxis:k.yaxis,fillRangeItems:_},xaxes:[k.xaxis],yaxes:[k.yaxis],subplot:k.id}),L.off("click",k.onClickInPanHandler),o(C)||r(C)?(L.dragPan.disable(),L.on("zoomstart",k.clearOutline),k.dragOptions.prepFn=function(O,j,B){a(O,j,B,k.dragOptions,C)},p.init(k.dragOptions)):(L.dragPan.enable(),L.off("zoomstart",k.clearOutline),k.div.onmousedown=null,k.div.ontouchstart=null,k.div.removeEventListener("touchstart",k.div._ontouchstart),k.onClickInPanHandler=k.onClickInPanFn(k.dragOptions),L.on("click",k.onClickInPanHandler))},l.updateFramework=function(g){var k=g[this.id].domain,L=g._size,u=this.div.style;u.width=L.w*(k.x[1]-k.x[0])+"px",u.height=L.h*(k.y[1]-k.y[0])+"px",u.left=L.l+k.x[0]*L.w+"px",u.top=L.t+(1-k.y[1])*L.h+"px",this.xaxis._offset=L.l+k.x[0]*L.w,this.xaxis._length=L.w*(k.x[1]-k.x[0]),this.yaxis._offset=L.t+(1-k.y[1])*L.h,this.yaxis._length=L.h*(k.y[1]-k.y[0])},l.updateLayers=function(g){var k=g[this.id].layers,L=this.layerList,u;if(k.length!==L.length){for(u=0;uOpenStreetMap contributors',E=['\xA9 Carto',t].join(" "),w=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),p=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),c={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:t,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:E,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:E,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:w,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:p,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},i=S(c);tt.exports={requiredVersion:A,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:c,styleValuesNonMapbox:i,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+A+"."].join(` +`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",i.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}),2178:(function(tt,G,e){var S=e(34809);tt.exports=function(A,t){var E=A.split(" "),w=E[0],p=E[1],c=S.isArrayOrTypedArray(t)?S.mean(t):t,i=.5+c/100,r=1.5+c/100,o=["",""],a=[0,0];switch(w){case"top":o[0]="top",a[1]=-r;break;case"bottom":o[0]="bottom",a[1]=r;break}switch(p){case"left":o[1]="right",a[0]=-i;break;case"right":o[1]="left",a[0]=i;break}return{anchor:o[0]&&o[1]?o.join("-"):o[0]?o[0]:o[1]?o[1]:"center",offset:a}}}),68192:(function(tt,G,e){var S=e(32280),A=e(34809),t=A.strTranslate,E=A.strScale,w=e(4173).fX,p=e(62972),c=e(45568),i=e(62203),r=e(30635),o=e(5417),a="mapbox",s=G.constants=e(44245);G.name=a,G.attr="subplot",G.idRoot=a,G.idRegex=G.attrRegex=A.counterRegex(a);var n=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/javascript/maplibre-migration/"].join(" ");G.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},G.layoutAttributes=e(67514),G.supplyLayoutDefaults=e(86989);var m=!0;G.plot=function(v){m&&(m=!1,A.warn(n));var l=v._fullLayout,h=v.calcdata,d=l._subplots[a];if(S.version!==s.requiredVersion)throw Error(s.wrongVersionErrorMsg);S.accessToken=x(v,d);for(var b=0;bO/2){var j=T.split("|").join("
");_.text(j).attr("data-unformatted",j).call(r.convertToTspans,v),F=i.bBox(_.node())}_.attr("transform",t(-3,-F.height+8)),C.insert("rect",".static-attribution").attr({x:-F.width-6,y:-F.height-3,width:F.width+6,height:F.height+3,fill:"rgba(255, 255, 255, 0.75)"});var B=1;F.width+6>O&&(B=O/(F.width+6));var U=[d.l+d.w*g.x[1],d.t+d.h*(1-g.y[0])];C.attr("transform",t(U[0],U[1])+E(B))}};function x(v,l){var h=v._fullLayout;if(v._context.mapboxAccessToken==="")return"";for(var d=[],b=[],M=!1,g=!1,k=0;k1&&A.warn(s.multipleTokensErrorMsg),d[0]):(b.length&&A.log(["Listed mapbox access token(s)",b.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function f(v){return typeof v=="string"&&(s.styleValuesMapbox.indexOf(v)!==-1||v.indexOf("mapbox://")===0||v.indexOf("stamen")===0)}G.updateFx=function(v){for(var l=v._fullLayout,h=l._subplots[a],d=0;d0){for(var s=0;s0}function i(o){var a={},s={};switch(o.type){case"circle":S.extendFlat(s,{"circle-radius":o.circle.radius,"circle-color":o.color,"circle-opacity":o.opacity});break;case"line":S.extendFlat(s,{"line-width":o.line.width,"line-color":o.color,"line-opacity":o.opacity,"line-dasharray":o.line.dash});break;case"fill":S.extendFlat(s,{"fill-color":o.color,"fill-outline-color":o.fill.outlinecolor,"fill-opacity":o.opacity});break;case"symbol":var n=o.symbol,m=t(n.textposition,n.iconsize);S.extendFlat(a,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":m.anchor,"text-offset":m.offset,"symbol-placement":n.placement}),S.extendFlat(s,{"icon-color":o.color,"text-color":n.textfont.color,"text-opacity":o.opacity});break;case"raster":S.extendFlat(s,{"raster-fade-duration":0,"raster-opacity":o.opacity});break}return{layout:a,paint:s}}function r(o){var a=o.sourcetype,s=o.source,n={type:a},m;return a==="geojson"?m="data":a==="vector"?m=typeof s=="string"?"url":"tiles":a==="raster"?(m="tiles",n.tileSize=256):a==="image"&&(m="url",n.coordinates=o.coordinates),n[m]=s,o.sourceattribution&&(n.attribution=A(o.sourceattribution)),n}tt.exports=function(o,a,s){var n=new w(o,a);return n.update(s),n}}),67514:(function(tt,G,e){var S=e(34809),A=e(78766).defaultLine,t=e(13792).u,E=e(80337),w=e(36640).textposition,p=e(13582).overrideAll,c=e(78032).templatedArray,i=e(44245),r=E({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});r.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=tt.exports=p({_arrayAttrRegexps:[S.counterRegex("mapbox",".layers",!0)],domain:t({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:i.styleValuesMapbox.concat(i.styleValuesNonMapbox),dflt:i.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:c("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:A},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:A}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:r,textposition:S.extendFlat({},w,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}),86989:(function(tt,G,e){var S=e(34809),A=e(4448),t=e(59008),E=e(67514);tt.exports=function(c,i,r){A(c,i,r,{type:"mapbox",attributes:E,handleDefaults:w,partition:"y",accessToken:i._mapboxAccessToken})};function w(c,i,r,o){r("accesstoken",o.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),s=r("bounds.east"),n=r("bounds.south"),m=r("bounds.north");(a===void 0||s===void 0||n===void 0||m===void 0)&&delete i.bounds,t(c,i,{name:"layers",handleItemDefaults:p}),i._input=c}function p(c,i){function r(m,x){return S.coerce(c,i,E.layers,m,x)}if(r("visible")){var o=r("sourcetype"),a=o==="raster"||o==="image";r("source"),r("sourceattribution"),o==="vector"&&r("sourcelayer"),o==="image"&&r("coordinates");var s;a&&(s="raster");var n=r("type",s);a&&n!=="raster"&&(n=i.type="raster",S.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),n==="circle"&&r("circle.radius"),n==="line"&&(r("line.width"),r("line.dash")),n==="fill"&&r("fill.outlinecolor"),n==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),S.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}}),5417:(function(tt,G,e){var S=e(32280),A=e(34809),t=e(3994),E=e(33626),w=e(29714),p=e(14751),c=e(32141),i=e(70414),r=i.drawMode,o=i.selectMode,a=e(44844).prepSelect,s=e(44844).clearOutline,n=e(44844).clearSelectionsCache,m=e(44844).selectOnClick,x=e(44245),f=e(51276);function v(g,k){this.id=k,this.gd=g;var L=g._fullLayout,u=g._context;this.container=L._glcontainer.node(),this.isStatic=u.staticPlot,this.uid=L._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(L),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var l=v.prototype;l.plot=function(g,k,L){var u=this,T=k[u.id];u.map&&T.accesstoken!==u.accessToken&&(u.map.remove(),u.map=null,u.styleObj=null,u.traceHash={},u.layerList=[]);var C=u.map?new Promise(function(_,F){u.updateMap(g,k,_,F)}):new Promise(function(_,F){u.createMap(g,k,_,F)});L.push(C)},l.createMap=function(g,k,L,u){var T=this,C=k[T.id],_=T.styleObj=d(C.style,k);T.accessToken=C.accesstoken;var F=C.bounds,O=F?[[F.west,F.south],[F.east,F.north]]:null,j=T.map=new S.Map({container:T.div,style:_.style,center:M(C.center),zoom:C.zoom,bearing:C.bearing,pitch:C.pitch,maxBounds:O,interactive:!T.isStatic,preserveDrawingBuffer:T.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new S.AttributionControl({compact:!0}));j._canvas.style.left="0px",j._canvas.style.top="0px",T.rejectOnError(u),T.isStatic||T.initFx(g,k);var B=[];B.push(new Promise(function(U){j.once("load",U)})),B=B.concat(t.fetchTraceGeoData(g)),Promise.all(B).then(function(){T.fillBelowLookup(g,k),T.updateData(g),T.updateLayout(k),T.resolveOnRender(L)}).catch(u)},l.updateMap=function(g,k,L,u){var T=this,C=T.map,_=k[this.id];T.rejectOnError(u);var F=[],O=d(_.style,k);JSON.stringify(T.styleObj)!==JSON.stringify(O)&&(T.styleObj=O,C.setStyle(O.style),T.traceHash={},F.push(new Promise(function(j){C.once("styledata",j)}))),F=F.concat(t.fetchTraceGeoData(g)),Promise.all(F).then(function(){T.fillBelowLookup(g,k),T.updateData(g),T.updateLayout(k),T.resolveOnRender(L)}).catch(u)},l.fillBelowLookup=function(g,k){var L=k[this.id].layers,u,T,C=this.belowLookup={},_=!1;for(u=0;u1)for(u=0;u-1&&m(O.originalEvent,u,[L.xaxis],[L.yaxis],L.id,F),j.indexOf("event")>-1&&c.click(u,O.originalEvent)}}},l.updateFx=function(g){var k=this,L=k.map,u=k.gd;if(k.isStatic)return;function T(O){var j=k.map.unproject(O);return[j.lng,j.lat]}var C=g.dragmode,_=function(O,j){if(j.isRect){var B=O.range={};B[k.id]=[T([j.xmin,j.ymin]),T([j.xmax,j.ymax])]}else{var U=O.lassoPoints={};U[k.id]=j.map(T)}},F=k.dragOptions;k.dragOptions=A.extendDeep(F||{},{dragmode:g.dragmode,element:k.div,gd:u,plotinfo:{id:k.id,domain:g[k.id].domain,xaxis:k.xaxis,yaxis:k.yaxis,fillRangeItems:_},xaxes:[k.xaxis],yaxes:[k.yaxis],subplot:k.id}),L.off("click",k.onClickInPanHandler),o(C)||r(C)?(L.dragPan.disable(),L.on("zoomstart",k.clearOutline),k.dragOptions.prepFn=function(O,j,B){a(O,j,B,k.dragOptions,C)},p.init(k.dragOptions)):(L.dragPan.enable(),L.off("zoomstart",k.clearOutline),k.div.onmousedown=null,k.div.ontouchstart=null,k.div.removeEventListener("touchstart",k.div._ontouchstart),k.onClickInPanHandler=k.onClickInPanFn(k.dragOptions),L.on("click",k.onClickInPanHandler))},l.updateFramework=function(g){var k=g[this.id].domain,L=g._size,u=this.div.style;u.width=L.w*(k.x[1]-k.x[0])+"px",u.height=L.h*(k.y[1]-k.y[0])+"px",u.left=L.l+k.x[0]*L.w+"px",u.top=L.t+(1-k.y[1])*L.h+"px",this.xaxis._offset=L.l+k.x[0]*L.w,this.xaxis._length=L.w*(k.x[1]-k.x[0]),this.yaxis._offset=L.t+(1-k.y[1])*L.h,this.yaxis._length=L.h*(k.y[1]-k.y[0])},l.updateLayers=function(g){var k=g[this.id].layers,L=this.layerList,u;if(k.length!==L.length){for(u=0;u=st.width-20?(X["text-anchor"]="start",X.x=5):(X["text-anchor"]="end",X.x=st._paper.attr("width")-7),ot.attr(X);var ut=ot.select(".js-link-to-tool"),lt=ot.select(".js-link-spacer"),yt=ot.select(".js-sourcelinks");Z._context.showSources&&Z._context.showSources(Z),Z._context.showLink&&g(Z,ut),lt.text(ut.text()&&yt.text()?" - ":"")}};function g(Z,st){st.text("");var ot=st.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Z._context.linkText+" \xBB");if(Z._context.sendData)ot.on("click",function(){d.sendDataToCloud(Z)});else{var rt=window.location.pathname.split("/"),X=window.location.search;ot.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+rt[2].split(".")[0]+"/"+rt[1]+X})}}d.sendDataToCloud=function(Z){var st=(window.PLOTLYENV||{}).BASE_URL||Z._context.plotlyServerURL;if(st){Z.emit("plotly_beforeexport");var ot=S.select(Z).append("div").attr("id","hiddenform").style("display","none"),rt=ot.append("form").attr({action:st+"/external",method:"post",target:"_blank"}),X=rt.append("input").attr({type:"text",name:"data"});return X.node().value=d.graphJson(Z,!1,"keepdata"),rt.node().submit(),ot.remove(),Z.emit("plotly_afterexport"),!1}};var k=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],L=["year","month","dayMonth","dayMonthYear"];d.supplyDefaults=function(Z,st){var ot=st&&st.skipUpdateCalc,rt=Z._fullLayout||{};if(rt._skipDefaults){delete rt._skipDefaults;return}var X=Z._fullLayout={},ut=Z.layout||{},lt=Z._fullData||[],yt=Z._fullData=[],kt=Z.data||[],Lt=Z.calcdata||[],St=Z._context||{},Ot;Z._transitionData||d.createTransitionData(Z),X._dfltTitle={plot:h(Z,"Click to enter Plot title"),subtitle:h(Z,"Click to enter Plot subtitle"),x:h(Z,"Click to enter X axis title"),y:h(Z,"Click to enter Y axis title"),colorbar:h(Z,"Click to enter Colorscale title"),annotation:h(Z,"new text")},X._traceWord=h(Z,"trace");var Ht=C(Z,k);if(X._mapboxAccessToken=St.mapboxAccessToken,rt._initialAutoSizeIsDone){var Kt=rt.width,Gt=rt.height;d.supplyLayoutGlobalDefaults(ut,X,Ht),ut.width||(X.width=Kt),ut.height||(X.height=Gt),d.sanitizeMargins(X)}else{d.supplyLayoutGlobalDefaults(ut,X,Ht);var Et=!ut.width||!ut.height,At=X.autosize,qt=St.autosizable;Et&&(At||qt)?d.plotAutoSize(Z,ut,X):Et&&d.sanitizeMargins(X),!At&&Et&&(ut.width=X.width,ut.height=X.height)}X._d3locale=_(Ht,X.separators),X._extraFormat=C(Z,L),X._initialAutoSizeIsDone=!0,X._dataLength=kt.length,X._modules=[],X._visibleModules=[],X._basePlotModules=[];var jt=X._subplots=T(),de=X._splomAxes={x:{},y:{}},Xt=X._splomSubplots={};X._splomGridDflt={},X._scatterStackOpts={},X._firstScatter={},X._alignmentOpts={},X._colorAxes={},X._requestRangeslider={},X._traceUids=u(lt,kt),X._globalTransforms=(Z._context||{}).globalTransforms,d.supplyDataDefaults(kt,yt,ut,X);var ye=Object.keys(de.x),Le=Object.keys(de.y);if(ye.length>1&&Le.length>1){for(p.getComponentMethod("grid","sizeDefaults")(ut,X),Ot=0;Ot15&&Le.length>15&&X.shapes.length===0&&X.images.length===0,d.linkSubplots(yt,X,lt,rt),d.cleanPlot(yt,X,lt,rt);var be=!!(rt._has&&rt._has("gl2d")),je=!!(X._has&&X._has("gl2d")),nr=!!(rt._has&&rt._has("cartesian")),Vt=!!(X._has&&X._has("cartesian")),Qt=nr||be,te=Vt||je;Qt&&!te?rt._bgLayer.remove():te&&!Qt&&(X._shouldCreateBgLayer=!0),rt._zoomlayer&&!Z._dragging&&n({_fullLayout:rt}),F(yt,X),l(X,rt),p.getComponentMethod("colorscale","crossTraceDefaults")(yt,X),X._preGUI||(X._preGUI={}),X._tracePreGUI||(X._tracePreGUI={});var ee=X._tracePreGUI,Bt={},Wt;for(Wt in ee)Bt[Wt]="old";for(Ot=0;Ot0){var Lt=1-2*X;ut=Math.round(Lt*ut),lt=Math.round(Lt*lt)}}var St=d.layoutAttributes.width.min,Ot=d.layoutAttributes.height.min;ut1,Kt=!st.height&&Math.abs(ot.height-lt)>1;(Kt||Ht)&&(Ht&&(ot.width=ut),Kt&&(ot.height=lt)),Z._initialAutoSize||(Z._initialAutoSize={width:ut,height:lt}),d.sanitizeMargins(ot)},d.supplyLayoutModuleDefaults=function(Z,st,ot,rt){var X=p.componentsRegistry,ut=st._basePlotModules,lt,yt,kt,Lt=p.subplotsRegistry.cartesian;for(lt in X)kt=X[lt],kt.includeBasePlot&&kt.includeBasePlot(Z,st);for(var St in ut.length||ut.push(Lt),st._has("cartesian")&&(p.getComponentMethod("grid","contentDefaults")(Z,st),Lt.finalizeSubplots(Z,st)),st._subplots)st._subplots[St].sort(r.subplotSort);for(yt=0;yt1&&(ot.l/=At,ot.r/=At)}if(Ht){var qt=(ot.t+ot.b)/Ht;qt>1&&(ot.t/=qt,ot.b/=qt)}var jt=ot.xl===void 0?ot.x:ot.xl,de=ot.xr===void 0?ot.x:ot.xr,Xt=ot.yt===void 0?ot.y:ot.yt,ye=ot.yb===void 0?ot.y:ot.yb;Kt[st]={l:{val:jt,size:ot.l+Et},r:{val:de,size:ot.r+Et},b:{val:ye,size:ot.b+Et},t:{val:Xt,size:ot.t+Et}},Gt[st]=1}if(!rt._replotting)return d.doAutoMargin(Z)}};function Y(Z){if("_redrawFromAutoMarginCount"in Z._fullLayout)return!1;var st=s.list(Z,"",!0);for(var ot in st)if(st[ot].autoshift||st[ot].shift)return!0;return!1}d.doAutoMargin=function(Z){var st=Z._fullLayout,ot=st.width,rt=st.height;st._size||(st._size={}),P(st);var X=st._size,ut=st.margin,lt={t:0,b:0,l:0,r:0},yt=r.extendFlat({},X),kt=ut.l,Lt=ut.r,St=ut.t,Ot=ut.b,Ht=st._pushmargin,Kt=st._pushmarginIds,Gt=st.minreducedwidth,Et=st.minreducedheight;if(ut.autoexpand!==!1){for(var At in Ht)Kt[At]||delete Ht[At];var qt=Z._fullLayout._reservedMargin;for(var jt in qt)for(var de in qt[jt]){var Xt=qt[jt][de];lt[de]=Math.max(lt[de],Xt)}for(var ye in Ht.base={l:{val:0,size:kt},r:{val:1,size:Lt},t:{val:1,size:St},b:{val:0,size:Ot}},lt){var Le=0;for(var ve in Ht)ve!=="base"&&E(Ht[ve][ye].size)&&(Le=Ht[ve][ye].size>Le?Ht[ve][ye].size:Le);var ke=Math.max(0,ut[ye]-Le);lt[ye]=Math.max(0,lt[ye]-ke)}for(var Pe in Ht){var me=Ht[Pe].l||{},be=Ht[Pe].b||{},je=me.val,nr=me.size,Vt=be.val,Qt=be.size,te=ot-lt.r-lt.l,ee=rt-lt.t-lt.b;for(var Bt in Ht){if(E(nr)&&Ht[Bt].r){var Wt=Ht[Bt].r.val,$t=Ht[Bt].r.size;if(Wt>je){var Tt=(nr*Wt+($t-te)*je)/(Wt-je),_t=($t*(1-je)+(nr-te)*(1-Wt))/(Wt-je);Tt+_t>kt+Lt&&(kt=Tt,Lt=_t)}}if(E(Qt)&&Ht[Bt].t){var It=Ht[Bt].t.val,Mt=Ht[Bt].t.size;if(It>Vt){var Ct=(Qt*It+(Mt-ee)*Vt)/(It-Vt),Ut=(Mt*(1-Vt)+(Qt-ee)*(1-It))/(It-Vt);Ct+Ut>Ot+St&&(Ot=Ct,St=Ut)}}}}}var Zt=r.constrain(ot-ut.l-ut.r,N,Gt),Me=r.constrain(rt-ut.t-ut.b,V,Et),Be=Math.max(0,ot-Zt),ge=Math.max(0,rt-Me);if(Be){var Ee=(kt+Lt)/Be;Ee>1&&(kt/=Ee,Lt/=Ee)}if(ge){var Ne=(Ot+St)/ge;Ne>1&&(Ot/=Ne,St/=Ne)}if(X.l=Math.round(kt)+lt.l,X.r=Math.round(Lt)+lt.r,X.t=Math.round(St)+lt.t,X.b=Math.round(Ot)+lt.b,X.p=Math.round(ut.pad),X.w=Math.round(ot)-X.l-X.r,X.h=Math.round(rt)-X.t-X.b,!st._replotting&&(d.didMarginChange(yt,X)||Y(Z))){"_redrawFromAutoMarginCount"in st?st._redrawFromAutoMarginCount++:st._redrawFromAutoMarginCount=1;var sr=3*(1+Object.keys(Kt).length);if(st._redrawFromAutoMarginCount1)return!0}return!1},d.graphJson=function(Z,st,ot,rt,X,ut){(X&&st&&!Z._fullData||X&&!st&&!Z._fullLayout)&&d.supplyDefaults(Z);var lt=X?Z._fullData:Z.data,yt=X?Z._fullLayout:Z.layout,kt=(Z._transitionData||{})._frames;function Lt(Ht,Kt){if(typeof Ht=="function")return Kt?"_function_":null;if(r.isPlainObject(Ht)){var Gt={},Et;return Object.keys(Ht).sort().forEach(function(de){if(["_","["].indexOf(de.charAt(0))===-1){if(typeof Ht[de]=="function"){Kt&&(Gt[de]="_function");return}if(ot==="keepdata"){if(de.substr(de.length-3)==="src")return}else if(ot==="keepstream"){if(Et=Ht[de+"src"],typeof Et=="string"&&Et.indexOf(":")>0&&!r.isPlainObject(Ht.stream))return}else if(ot!=="keepall"&&(Et=Ht[de+"src"],typeof Et=="string"&&Et.indexOf(":")>0))return;Gt[de]=Lt(Ht[de],Kt)}}),Gt}var At=Array.isArray(Ht),qt=r.isTypedArray(Ht);if((At||qt)&&Ht.dtype&&Ht.shape){var jt=Ht.bdata;return Lt({dtype:Ht.dtype,shape:Ht.shape,bdata:r.isArrayBuffer(jt)?w.encode(jt):jt},Kt)}return At?Ht.map(function(de){return Lt(de,Kt)}):qt?r.simpleMap(Ht,r.identity):r.isJSDate(Ht)?r.ms2DateTimeLocal(+Ht):Ht}var St={data:(lt||[]).map(function(Ht){var Kt=Lt(Ht);return st&&delete Kt.fit,Kt})};if(!st&&(St.layout=Lt(yt),X)){var Ot=yt._size;St.layout.computed={margin:{b:Ot.b,l:Ot.l,r:Ot.r,t:Ot.t}}}return kt&&(St.frames=Lt(kt)),ut&&(St.config=Lt(Z._context,!0)),rt==="object"?St:JSON.stringify(St)},d.modifyFrames=function(Z,st){var ot,rt,X,ut=Z._transitionData._frames,lt=Z._transitionData._frameHash;for(ot=0;ot0&&(Z._transitioningWithDuration=!0),Z._transitionData._interruptCallbacks.push(function(){rt=!0}),ot.redraw&&Z._transitionData._interruptCallbacks.push(function(){return p.call("redraw",Z)}),Z._transitionData._interruptCallbacks.push(function(){Z.emit("plotly_transitioninterrupted",[])});var Ht=0,Kt=0;function Gt(){return Ht++,function(){Kt++,!rt&&Kt===Ht&&yt(Ot)}}ot.runFn(Gt),setTimeout(Gt())})}function yt(Ot){if(Z._transitionData)return ut(Z._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ot.redraw)return p.call("redraw",Z)}).then(function(){Z._transitioning=!1,Z._transitioningWithDuration=!1,Z.emit("plotly_transitioned",[])}).then(Ot)}function kt(){if(Z._transitionData)return Z._transitioning=!1,X(Z._transitionData._interruptCallbacks)}var Lt=[d.previousPromises,kt,ot.prepareFn,d.rehover,d.reselect,lt],St=r.syncOrAsync(Lt,Z);return(!St||!St.then)&&(St=Promise.resolve()),St.then(function(){return Z})}d.doCalcdata=function(Z,st){var ot=s.list(Z),rt=Z._fullData,X=Z._fullLayout,ut,lt,yt,kt,Lt=Array(rt.length),St=(Z.calcdata||[]).slice();for(Z.calcdata=Lt,X._numBoxes=0,X._numViolins=0,X._violinScaleGroupStats={},Z._hmpixcount=0,Z._hmlumcount=0,X._piecolormap={},X._sunburstcolormap={},X._treemapcolormap={},X._iciclecolormap={},X._funnelareacolormap={},yt=0;yt=0;kt--)if(ye[kt].enabled){ut._indexToPoints=ye[kt]._indexToPoints;break}lt&<.calc&&(Xt=lt.calc(Z,ut))}(!Array.isArray(Xt)||!Xt[0])&&(Xt=[{x:a,y:a}]),Xt[0].t||(Xt[0].t={}),Xt[0].trace=ut,Lt[jt]=Xt}}for(et(ot,rt,X),yt=0;yt0?k:1/0}),M=S.mod(b+1,d.length);return[d[b],d[M]]}function x(h){return Math.abs(h)>1e-10?h:0}function f(h,d,b){d||(d=0),b||(b=0);for(var M=h.length,g=Array(M),k=0;kHt?(Kt=ut,Gt=ut*Ht,qt=(lt-Gt)/Z.h/2,Et=[rt[0],rt[1]],At=[X[0]+qt,X[1]-qt]):(Kt=lt/Ht,Gt=lt,qt=(ut-Kt)/Z.w/2,Et=[rt[0]+qt,rt[1]-qt],At=[X[0],X[1]]),et.xLength2=Kt,et.yLength2=Gt,et.xDomain2=Et,et.yDomain2=At;var jt=et.xOffset2=Z.l+Z.w*Et[0],de=et.yOffset2=Z.t+Z.h*(1-At[1]),Xt=et.radius=Kt/Lt,ye=et.innerRadius=et.getHole(J)*Xt,Le=et.cx=jt-Xt*kt[0],ve=et.cy=de+Xt*kt[3],ke=et.cxx=Le-jt,Pe=et.cyy=ve-de,me=st.side,be;me==="counterclockwise"?(be=me,me="top"):me==="clockwise"&&(be=me,me="bottom"),et.radialAxis=et.mockAxis(ct,J,st,{_id:"x",side:me,_trueSide:be,domain:[ye/Z.w,Xt/Z.w]}),et.angularAxis=et.mockAxis(ct,J,ot,{side:"right",domain:[0,Math.PI],autorange:!1}),et.doAutoRange(ct,J),et.updateAngularAxis(ct,J),et.updateRadialAxis(ct,J),et.updateRadialAxisTitle(ct,J),et.xaxis=et.mockCartesianAxis(ct,J,{_id:"x",domain:Et}),et.yaxis=et.mockCartesianAxis(ct,J,{_id:"y",domain:At});var je=et.pathSubplot();et.clipPaths.forTraces.select("path").attr("d",je).attr("transform",p(ke,Pe)),Q.frontplot.attr("transform",p(jt,de)).call(i.setClipUrl,et._hasClipOnAxisFalse?null:et.clipIds.forTraces,et.gd),Q.bg.attr("d",je).attr("transform",p(Le,ve)).call(c.fill,J.bgcolor)},V.mockAxis=function(ct,J,et,Q){var Z=E.extendFlat({},et,Q);return s(Z,J,ct),Z},V.mockCartesianAxis=function(ct,J,et){var Q=this,Z=Q.isSmith,st=et._id,ot=E.extendFlat({type:"linear"},et);a(ot,ct);var rt={x:[0,2],y:[1,3]};return ot.setRange=function(){var X=Q.sectorBBox,ut=rt[st],lt=Q.radialAxis._rl,yt=(lt[1]-lt[0])/(1-Q.getHole(J));ot.range=[X[ut[0]]*yt,X[ut[1]]*yt]},ot.isPtWithinRange=st==="x"&&!Z?function(X){return Q.isPtInside(X)}:function(){return!0},ot.setRange(),ot.setScale(),ot},V.doAutoRange=function(ct,J){var et=this,Q=et.gd,Z=et.radialAxis,st=et.getRadial(J);n(Q,Z);var ot=Z.range;if(st.range=ot.slice(),st._input.range=ot.slice(),Z._rl=[Z.r2l(ot[0],null,"gregorian"),Z.r2l(ot[1],null,"gregorian")],Z.minallowed!==void 0){var rt=Z.r2l(Z.minallowed);Z._rl[0]>Z._rl[1]?Z._rl[1]=Math.max(Z._rl[1],rt):Z._rl[0]=Math.max(Z._rl[0],rt)}if(Z.maxallowed!==void 0){var X=Z.r2l(Z.maxallowed);Z._rl[0]90&<<=270&&(yt.tickangle=180);var St=Lt?function(Xt){var ye=O(et,C([Xt.x,0]));return p(ye[0]-rt,ye[1]-X)}:function(Xt){return p(yt.l2p(Xt.x)+ot,0)},Ot=Lt?function(Xt){return F(et,Xt.x,-1/0,1/0)}:function(Xt){return et.pathArc(yt.r2p(Xt.x)+ot)},Ht=Y(ut);if(et.radialTickLayout!==Ht&&(Z["radial-axis"].selectAll(".xtick").remove(),et.radialTickLayout=Ht),kt){yt.setScale();var Kt=0,Gt=Lt?(yt.tickvals||[]).filter(function(Xt){return Xt>=0}).map(function(Xt){return o.tickText(yt,Xt,!0,!1)}):o.calcTicks(yt),Et=Lt?Gt:o.clipEnds(yt,Gt),At=o.getTickSigns(yt)[2];Lt&&((yt.ticks==="top"&&yt.side==="bottom"||yt.ticks==="bottom"&&yt.side==="top")&&(At=-At),yt.ticks==="top"&&yt.side==="top"&&(Kt=-yt.ticklen),yt.ticks==="bottom"&&yt.side==="bottom"&&(Kt=yt.ticklen)),o.drawTicks(Q,yt,{vals:Gt,layer:Z["radial-axis"],path:o.makeTickPath(yt,0,At),transFn:St,crisp:!1}),o.drawGrid(Q,yt,{vals:Et,layer:Z["radial-grid"],path:Ot,transFn:E.noop,crisp:!1}),o.drawLabels(Q,yt,{vals:Gt,layer:Z["radial-axis"],transFn:St,labelFns:o.makeLabelFns(yt,Kt)})}var qt=et.radialAxisAngle=et.vangles?P(nt(U(ut.angle),et.vangles)):ut.angle,jt=p(rt,X),de=jt+w(-qt);ft(Z["radial-axis"],kt&&(ut.showticklabels||ut.ticks),{transform:de}),ft(Z["radial-grid"],kt&&ut.showgrid,{transform:Lt?"":jt}),ft(Z["radial-line"].select("line"),kt&&ut.showline,{x1:Lt?-st:ot,y1:0,x2:st,y2:0,transform:de}).attr("stroke-width",ut.linewidth).call(c.stroke,ut.linecolor)},V.updateRadialAxisTitle=function(ct,J,et){if(!this.isSmith){var Q=this,Z=Q.gd,st=Q.radius,ot=Q.cx,rt=Q.cy,X=Q.getRadial(J),ut=Q.id+"title",lt=0;if(X.title){var yt=i.bBox(Q.layers["radial-axis"].node()).height,kt=X.title.font.size,Lt=X.side;lt=Lt==="top"?kt:Lt==="counterclockwise"?-(yt+kt*.4):yt+kt*.8}var St=et===void 0?Q.radialAxisAngle:et,Ot=U(St),Ht=Math.cos(Ot),Kt=Math.sin(Ot),Gt=ot+st/2*Ht+lt*Kt,Et=rt-st/2*Kt+lt*Ht;Q.layers["radial-axis-title"]=v.draw(Z,ut,{propContainer:X,propName:Q.id+".radialaxis.title",placeholder:j(Z,"Click to enter radial axis title"),attributes:{x:Gt,y:Et,"text-anchor":"middle"},transform:{rotate:-St}})}},V.updateAngularAxis=function(ct,J){var et=this,Q=et.gd,Z=et.layers,st=et.radius,ot=et.innerRadius,rt=et.cx,X=et.cy,ut=et.getAngular(J),lt=et.angularAxis,yt=et.isSmith;yt||(et.fillViewInitialKey("angularaxis.rotation",ut.rotation),lt.setGeometry(),lt.setScale());var kt=yt?function(Xt){var ye=O(et,C([0,Xt.x]));return Math.atan2(ye[0]-rt,ye[1]-X)-Math.PI/2}:function(Xt){return lt.t2g(Xt.x)};lt.type==="linear"&<.thetaunit==="radians"&&(lt.tick0=P(lt.tick0),lt.dtick=P(lt.dtick));var Lt=function(Xt){return p(rt+st*Math.cos(Xt),X-st*Math.sin(Xt))},St=yt?function(Xt){var ye=O(et,C([0,Xt.x]));return p(ye[0],ye[1])}:function(Xt){return Lt(kt(Xt))},Ot=yt?function(Xt){var ye=O(et,C([0,Xt.x])),Le=Math.atan2(ye[0]-rt,ye[1]-X)-Math.PI/2;return p(ye[0],ye[1])+w(-P(Le))}:function(Xt){var ye=kt(Xt);return Lt(ye)+w(-P(ye))},Ht=yt?function(Xt){return _(et,Xt.x,0,1/0)}:function(Xt){var ye=kt(Xt),Le=Math.cos(ye),ve=Math.sin(ye);return"M"+[rt+ot*Le,X-ot*ve]+"L"+[rt+st*Le,X-st*ve]},Kt=o.makeLabelFns(lt,0).labelStandoff,Gt={};Gt.xFn=function(Xt){var ye=kt(Xt);return Math.cos(ye)*Kt},Gt.yFn=function(Xt){var ye=kt(Xt),Le=Math.sin(ye)>0?.2:1;return-Math.sin(ye)*(Kt+Xt.fontSize*Le)+Math.abs(Math.cos(ye))*(Xt.fontSize*k)},Gt.anchorFn=function(Xt){var ye=kt(Xt),Le=Math.cos(ye);return Math.abs(Le)<.1?"middle":Le>0?"start":"end"},Gt.heightFn=function(Xt,ye,Le){var ve=kt(Xt);return-.5*(1+Math.sin(ve))*Le};var Et=Y(ut);et.angularTickLayout!==Et&&(Z["angular-axis"].selectAll("."+lt._id+"tick").remove(),et.angularTickLayout=Et);var At=yt?[1/0].concat(lt.tickvals||[]).map(function(Xt){return o.tickText(lt,Xt,!0,!1)}):o.calcTicks(lt);yt&&(At[0].text="\u221E",At[0].fontSize*=1.75);var qt;if(J.gridshape==="linear"?(qt=At.map(kt),E.angleDelta(qt[0],qt[1])<0&&(qt=qt.slice().reverse())):qt=null,et.vangles=qt,lt.type==="category"&&(At=At.filter(function(Xt){return E.isAngleInsideSector(kt(Xt),et.sectorInRad)})),lt.visible){var jt=lt.ticks==="inside"?-1:1,de=(lt.linewidth||1)/2;o.drawTicks(Q,lt,{vals:At,layer:Z["angular-axis"],path:"M"+jt*de+",0h"+jt*lt.ticklen,transFn:Ot,crisp:!1}),o.drawGrid(Q,lt,{vals:At,layer:Z["angular-grid"],path:Ht,transFn:E.noop,crisp:!1}),o.drawLabels(Q,lt,{vals:At,layer:Z["angular-axis"],repositionOnUpdate:!0,transFn:St,labelFns:Gt})}ft(Z["angular-line"].select("path"),ut.showline,{d:et.pathSubplot(),transform:p(rt,X)}).attr("stroke-width",ut.linewidth).call(c.stroke,ut.linecolor)},V.updateFx=function(ct,J){this.gd._context.staticPlot||(this.isSmith||(this.updateAngularDrag(ct),this.updateRadialDrag(ct,J,0),this.updateRadialDrag(ct,J,1)),this.updateHoverAndMainDrag(ct))},V.updateHoverAndMainDrag=function(ct){var J=this,et=J.isSmith,Q=J.gd,Z=J.layers,st=ct._zoomlayer,ot=L.MINZOOM,rt=L.OFFEDGE,X=J.radius,ut=J.innerRadius,lt=J.cx,yt=J.cy,kt=J.cxx,Lt=J.cyy,St=J.sectorInRad,Ot=J.vangles,Ht=J.radialAxis,Kt=u.clampTiny,Gt=u.findXYatLength,Et=u.findEnclosingVertexAngles,At=L.cornerHalfWidth,qt=L.cornerLen/2,jt,de,Xt=m.makeDragger(Z,"path","maindrag",ct.dragmode===!1?"none":"crosshair");S.select(Xt).attr("d",J.pathSubplot()).attr("transform",p(lt,yt)),Xt.onmousemove=function(ge){f.hover(Q,ge,J.id),Q._fullLayout._lasthover=Xt,Q._fullLayout._hoversubplot=J.id},Xt.onmouseout=function(ge){Q._dragging||x.unhover(Q,ge)};var ye={element:Xt,gd:Q,subplot:J.id,plotinfo:{id:J.id,xaxis:J.xaxis,yaxis:J.yaxis},xaxes:[J.xaxis],yaxes:[J.yaxis]},Le,ve,ke,Pe,me,be,je,nr,Vt;function Qt(ge,Ee){return Math.sqrt(ge*ge+Ee*Ee)}function te(ge,Ee){return Qt(ge-kt,Ee-Lt)}function ee(ge,Ee){return Math.atan2(Lt-Ee,ge-kt)}function Bt(ge,Ee){return[ge*Math.cos(Ee),ge*Math.sin(-Ee)]}function Wt(ge,Ee){if(ge===0)return J.pathSector(2*At);var Ne=qt/ge,sr=Ee-Ne,_e=Ee+Ne,He=Math.max(0,Math.min(ge,X)),or=He-At,Pr=He+At;return"M"+Bt(or,sr)+"A"+[or,or]+" 0,0,0 "+Bt(or,_e)+"L"+Bt(Pr,_e)+"A"+[Pr,Pr]+" 0,0,1 "+Bt(Pr,sr)+"Z"}function $t(ge,Ee,Ne){if(ge===0)return J.pathSector(2*At);var sr=Bt(ge,Ee),_e=Bt(ge,Ne),He=Kt((sr[0]+_e[0])/2),or=Kt((sr[1]+_e[1])/2),Pr,br;if(He&&or){var ue=or/He,we=-1/ue,Ce=Gt(At,ue,He,or);Pr=Gt(qt,we,Ce[0][0],Ce[0][1]),br=Gt(qt,we,Ce[1][0],Ce[1][1])}else{var Ge,Ke;or?(Ge=qt,Ke=At):(Ge=At,Ke=qt),Pr=[[He-Ge,or-Ke],[He+Ge,or-Ke]],br=[[He-Ge,or+Ke],[He+Ge,or+Ke]]}return"M"+Pr.join("L")+"L"+br.reverse().join("L")+"Z"}function Tt(){ke=null,Pe=null,me=J.pathSubplot(),be=!1;var ge=Q._fullLayout[J.id];je=A(ge.bgcolor).getLuminance(),nr=m.makeZoombox(st,je,lt,yt,me),nr.attr("fill-rule","evenodd"),Vt=m.makeCorners(st,lt,yt),d(Q)}function _t(ge,Ee){return Ee=Math.max(Math.min(Ee,X),ut),geot?(ge-1&&ge===1&&h(Ee,Q,[J.xaxis],[J.yaxis],J.id,ye),Ne.indexOf("event")>-1&&f.click(Q,Ee,J.id)}ye.prepFn=function(ge,Ee,Ne){var sr=Q._fullLayout.dragmode,_e=Xt.getBoundingClientRect();Q._fullLayout._calcInverseTransform(Q);var He=Q._fullLayout._invTransform;jt=Q._fullLayout._invScaleX,de=Q._fullLayout._invScaleY;var or=E.apply3DTransform(He)(Ee-_e.left,Ne-_e.top);if(Le=or[0],ve=or[1],Ot){var Pr=u.findPolygonOffset(X,St[0],St[1],Ot);Le+=kt+Pr[0],ve+=Lt+Pr[1]}switch(sr){case"zoom":ye.clickFn=Be,et||(Ot?ye.moveFn=Ut:ye.moveFn=Mt,ye.doneFn=Zt,Tt(ge,Ee,Ne));break;case"select":case"lasso":l(ge,Ee,Ne,ye,sr);break}},x.init(ye)},V.updateRadialDrag=function(ct,J,et){var Q=this,Z=Q.gd,st=Q.layers,ot=Q.radius,rt=Q.innerRadius,X=Q.cx,ut=Q.cy,lt=Q.radialAxis,yt=L.radialDragBoxSize,kt=yt/2;if(!lt.visible)return;var Lt=U(Q.radialAxisAngle),St=lt._rl,Ot=St[0],Ht=St[1],Kt=St[et],Gt=.75*(St[1]-St[0])/(1-Q.getHole(J))/ot,Et,At,qt;et?(Et=X+(ot+kt)*Math.cos(Lt),At=ut-(ot+kt)*Math.sin(Lt),qt="radialdrag"):(Et=X+(rt-kt)*Math.cos(Lt),At=ut-(rt-kt)*Math.sin(Lt),qt="radialdrag-inner");var jt=m.makeRectDragger(st,qt,"crosshair",-kt,-kt,yt,yt),de={element:jt,gd:Z};ct.dragmode===!1&&(de.dragmode=!1),ft(S.select(jt),lt.visible&&rt0!=(et?Le>Ot:Le=90||Q>90&&Z>=450?1:ot<=0&&X<=0?0:Math.max(ot,X);return ut=Q<=180&&Z>=180||Q>180&&Z>=540?-1:st>=0&&rt>=0?0:Math.min(st,rt),lt=Q<=270&&Z>=270||Q>270&&Z>=630?-1:ot>=0&&X>=0?0:Math.min(ot,X),yt=Z>=360?1:st<=0&&rt<=0?0:Math.max(st,rt),[ut,lt,yt,kt]}function nt(ct,J){return J[E.findIndexOfMin(J,function(et){return E.angleDist(ct,et)})]}function ft(ct,J,et){return J?(ct.attr("display",null),ct.attr(et)):ct&&ct.attr("display","none"),ct}}),51937:(function(tt,G,e){var S=e(34809),A=e(19091),t=S.deg2rad,E=S.rad2deg;tt.exports=function(r,o,a){switch(A(r,a),r._id){case"x":case"radialaxis":w(r,o);break;case"angularaxis":i(r,o);break}};function w(r,o){var a=o._subplot;r.setGeometry=function(){var s=r._rl[0],n=r._rl[1],m=a.innerRadius,x=(a.radius-m)/(n-s),f=m/x,v=s>n?function(l){return l<=0}:function(l){return l>=0};r.c2g=function(l){var h=r.c2l(l)-s;return(v(h)?h:0)+f},r.g2c=function(l){return r.l2c(l+s-f)},r.g2p=function(l){return l*x},r.c2p=function(l){return r.g2p(r.c2g(l))}}}function p(r,o){return o==="degrees"?t(r):r}function c(r,o){return o==="degrees"?E(r):r}function i(r,o){var a=r.type;if(a==="linear"){var s=r.d2c,n=r.c2d;r.d2c=function(m,x){return p(s(m),x)},r.c2d=function(m,x){return n(c(m,x))}}r.makeCalcdata=function(m,x){var f=m[x],v=m._length,l,h,d=function(L){return r.d2c(L,m.thetaunit)};if(f)for(l=Array(v),h=0;h0?1:0}function e(w){var p=w[0],c=w[1];if(!isFinite(p)||!isFinite(c))return[1,0];var i=(p+1)*(p+1)+c*c;return[(p*p+c*c-1)/i,2*c/i]}function S(w,p){var c=p[0],i=p[1];return[c*w.radius+w.cx,-i*w.radius+w.cy]}function A(w,p){return p*w.radius}function t(w,p,c,i){var r=S(w,e([c,p])),o=r[0],a=r[1],s=S(w,e([i,p])),n=s[0],m=s[1];if(p===0)return["M"+o+","+a,"L"+n+","+m].join(" ");var x=A(w,1/Math.abs(p));return["M"+o+","+a,"A"+x+","+x+" 0 0,"+(p<0?1:0)+" "+n+","+m].join(" ")}function E(w,p,c,i){var r=A(w,1/(p+1)),o=S(w,e([p,c])),a=o[0],s=o[1],n=S(w,e([p,i])),m=n[0],x=n[1];if(G(c)!==G(i)){var f=S(w,e([p,0])),v=f[0],l=f[1];return["M"+a+","+s,"A"+r+","+r+" 0 0,"+(00){for(var p=[],c=0;c=h&&(k.min=0,L.min=0,u.min=0,m.aaxis&&delete m.aaxis.min,m.baxis&&delete m.baxis.min,m.caxis&&delete m.caxis.min)}function n(m,x,f,v){var l=o[x._name];function h(L,u){return t.coerce(m,x,l,L,u)}h("uirevision",v.uirevision),x.type="linear";var d=h("color"),b=d===l.color.dflt?f.font.color:d,M=x._name.charAt(0).toUpperCase(),g="Component "+M,k=h("title.text",g);x._hovertitle=k===g?k:M,t.coerceFont(h,"title.font",f.font,{overrideDflt:{size:t.bigFont(f.font.size),color:b}}),h("min"),i(m,x,h,"linear"),p(m,x,h,"linear"),w(m,x,h,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),c(m,x,h,{outerTicks:!0}),h("showticklabels")&&(t.coerceFont(h,"tickfont",f.font,{overrideDflt:{color:b}}),h("tickangle"),h("tickformat")),r(m,x,h,{dfltColor:d,bgColor:f.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:l}),h("hoverformat"),h("layer")}}),83637:(function(tt,G,e){var S=e(45568),A=e(65657),t=e(33626),E=e(34809),w=E.strTranslate,p=E._,c=e(78766),i=e(62203),r=e(19091),o=e(93049).extendFlat,a=e(44122),s=e(29714),n=e(14751),m=e(32141),x=e(70414),f=x.freeMode,v=x.rectMode,l=e(17240),h=e(44844).prepSelect,d=e(44844).selectOnClick,b=e(44844).clearOutline,M=e(44844).clearSelectionsCache,g=e(54826);function k(P,N){this.id=P.id,this.graphDiv=P.graphDiv,this.init(N),this.makeFramework(N),this.updateFx(N),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}tt.exports=k;var L=k.prototype;L.init=function(P){this.container=P._ternarylayer,this.defs=P._defs,this.layoutId=P._uid,this.traceHash={},this.layers={}},L.plot=function(P,N){var V=this,Y=N[V.id],K=N._size;V._hasClipOnAxisFalse=!1;for(var nt=0;ntu*et?(lt=et,ut=lt*u):(ut=J,lt=ut/u),yt=ft*ut/J,kt=ct*lt/et,rt=N.l+N.w*K-ut/2,X=N.t+N.h*(1-nt)-lt/2,V.x0=rt,V.y0=X,V.w=ut,V.h=lt,V.sum=Q,V.xaxis={type:"linear",range:[Z+2*ot-Q,Q-Z-2*st],domain:[K-yt/2,K+yt/2],_id:"x"},r(V.xaxis,V.graphDiv._fullLayout),V.xaxis.setScale(),V.xaxis.isPtWithinRange=function(de){return de.a>=V.aaxis.range[0]&&de.a<=V.aaxis.range[1]&&de.b>=V.baxis.range[1]&&de.b<=V.baxis.range[0]&&de.c>=V.caxis.range[1]&&de.c<=V.caxis.range[0]},V.yaxis={type:"linear",range:[Z,Q-st-ot],domain:[nt-kt/2,nt+kt/2],_id:"y"},r(V.yaxis,V.graphDiv._fullLayout),V.yaxis.setScale(),V.yaxis.isPtWithinRange=function(){return!0};var Lt=V.yaxis.domain[0],St=V.aaxis=o({},P.aaxis,{range:[Z,Q-st-ot],side:"left",tickangle:(+P.aaxis.tickangle||0)-30,domain:[Lt,Lt+kt*u],anchor:"free",position:0,_id:"y",_length:ut});r(St,V.graphDiv._fullLayout),St.setScale();var Ot=V.baxis=o({},P.baxis,{range:[Q-Z-ot,st],side:"bottom",domain:V.xaxis.domain,anchor:"free",position:0,_id:"x",_length:ut});r(Ot,V.graphDiv._fullLayout),Ot.setScale();var Ht=V.caxis=o({},P.caxis,{range:[Q-Z-st,ot],side:"right",tickangle:(+P.caxis.tickangle||0)+30,domain:[Lt,Lt+kt*u],anchor:"free",position:0,_id:"y",_length:ut});r(Ht,V.graphDiv._fullLayout),Ht.setScale();var Kt="M"+rt+","+(X+lt)+"h"+ut+"l-"+ut/2+",-"+lt+"Z";V.clipDef.select("path").attr("d",Kt),V.layers.plotbg.select("path").attr("d",Kt);var Gt="M0,"+lt+"h"+ut+"l-"+ut/2+",-"+lt+"Z";V.clipDefRelative.select("path").attr("d",Gt);var Et=w(rt,X);V.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Et),V.clipDefRelative.select("path").attr("transform",null);var At=w(rt-Ot._offset,X+lt);V.layers.baxis.attr("transform",At),V.layers.bgrid.attr("transform",At);var qt=w(rt+ut/2,X)+"rotate(30)"+w(0,-St._offset);V.layers.aaxis.attr("transform",qt),V.layers.agrid.attr("transform",qt);var jt=w(rt+ut/2,X)+"rotate(-30)"+w(0,-Ht._offset);V.layers.caxis.attr("transform",jt),V.layers.cgrid.attr("transform",jt),V.drawAxes(!0),V.layers.aline.select("path").attr("d",St.showline?"M"+rt+","+(X+lt)+"l"+ut/2+",-"+lt:"M0,0").call(c.stroke,St.linecolor||"#000").style("stroke-width",(St.linewidth||0)+"px"),V.layers.bline.select("path").attr("d",Ot.showline?"M"+rt+","+(X+lt)+"h"+ut:"M0,0").call(c.stroke,Ot.linecolor||"#000").style("stroke-width",(Ot.linewidth||0)+"px"),V.layers.cline.select("path").attr("d",Ht.showline?"M"+(rt+ut/2)+","+X+"l"+ut/2+","+lt:"M0,0").call(c.stroke,Ht.linecolor||"#000").style("stroke-width",(Ht.linewidth||0)+"px"),V.graphDiv._context.staticPlot||V.initInteractions(),i.setClipUrl(V.layers.frontplot,V._hasClipOnAxisFalse?null:V.clipId,V.graphDiv)},L.drawAxes=function(P){var N=this,V=N.graphDiv,Y=N.id.substr(7)+"title",K=N.layers,nt=N.aaxis,ft=N.baxis,ct=N.caxis;if(N.drawAx(nt),N.drawAx(ft),N.drawAx(ct),P){var J=Math.max(nt.showticklabels?nt.tickfont.size/2:0,(ct.showticklabels?ct.tickfont.size*.75:0)+(ct.ticks==="outside"?ct.ticklen*.87:0)),et=(ft.showticklabels?ft.tickfont.size:0)+(ft.ticks==="outside"?ft.ticklen:0)+3;K["a-title"]=l.draw(V,"a"+Y,{propContainer:nt,propName:N.id+".aaxis.title",placeholder:p(V,"Click to enter Component A title"),attributes:{x:N.x0+N.w/2,y:N.y0-nt.title.font.size/3-J,"text-anchor":"middle"}}),K["b-title"]=l.draw(V,"b"+Y,{propContainer:ft,propName:N.id+".baxis.title",placeholder:p(V,"Click to enter Component B title"),attributes:{x:N.x0-et,y:N.y0+N.h+ft.title.font.size*.83+et,"text-anchor":"middle"}}),K["c-title"]=l.draw(V,"c"+Y,{propContainer:ct,propName:N.id+".caxis.title",placeholder:p(V,"Click to enter Component C title"),attributes:{x:N.x0+N.w+et,y:N.y0+N.h+ct.title.font.size*.83+et,"text-anchor":"middle"}})}},L.drawAx=function(P){var N=this,V=N.graphDiv,Y=P._name,K=Y.charAt(0),nt=P._id,ft=N.layers[Y],ct=30,J=K+"tickLayout",et=T(P);N[J]!==et&&(ft.selectAll("."+nt+"tick").remove(),N[J]=et),P.setScale();var Q=s.calcTicks(P),Z=s.clipEnds(P,Q),st=s.makeTransTickFn(P),ot=s.getTickSigns(P)[2],rt=E.deg2rad(ct),X=ot*(P.linewidth||1)/2,ut=ot*P.ticklen,lt=N.w,yt=N.h,kt=K==="b"?"M0,"+X+"l"+Math.sin(rt)*ut+","+Math.cos(rt)*ut:"M"+X+",0l"+Math.cos(rt)*ut+","+-Math.sin(rt)*ut,Lt={a:"M0,0l"+yt+",-"+lt/2,b:"M0,0l-"+lt/2+",-"+yt,c:"M0,0l-"+yt+","+lt/2}[K];s.drawTicks(V,P,{vals:P.ticks==="inside"?Z:Q,layer:ft,path:kt,transFn:st,crisp:!1}),s.drawGrid(V,P,{vals:Z,layer:N.layers[K+"grid"],path:Lt,transFn:st,crisp:!1}),s.drawLabels(V,P,{vals:Q,layer:ft,transFn:st,labelFns:s.makeLabelFns(P,0,ct)})};function T(P){return P.ticks+String(P.ticklen)+String(P.showticklabels)}var C=g.MINZOOM/2+.87,_="m-0.87,.5h"+C+"v3h-"+(C+5.2)+"l"+(C/2+2.6)+",-"+(C*.87+4.5)+"l2.6,1.5l-"+C/2+","+C*.87+"Z",F="m0.87,.5h-"+C+"v3h"+(C+5.2)+"l-"+(C/2+2.6)+",-"+(C*.87+4.5)+"l-2.6,1.5l"+C/2+","+C*.87+"Z",O="m0,1l"+C/2+","+C*.87+"l2.6,-1.5l-"+(C/2+2.6)+",-"+(C*.87+4.5)+"l-"+(C/2+2.6)+","+(C*.87+4.5)+"l2.6,1.5l"+C/2+",-"+C*.87+"Z",j="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",B=!0;L.clearOutline=function(){M(this.dragOptions),b(this.dragOptions.gd)},L.initInteractions=function(){var P=this,N=P.layers.plotbg.select("path").node(),V=P.graphDiv,Y=V._fullLayout._zoomlayer,K,nt;this.dragOptions={element:N,gd:V,plotinfo:{id:P.id,domain:V._fullLayout[P.id].domain,xaxis:P.xaxis,yaxis:P.yaxis},subplot:P.id,prepFn:function(At,qt,jt){P.dragOptions.xaxes=[P.xaxis],P.dragOptions.yaxes=[P.yaxis],K=V._fullLayout._invScaleX,nt=V._fullLayout._invScaleY;var de=P.dragOptions.dragmode=V._fullLayout.dragmode;f(de)?P.dragOptions.minDrag=1:P.dragOptions.minDrag=void 0,de==="zoom"?(P.dragOptions.moveFn=Ot,P.dragOptions.clickFn=lt,P.dragOptions.doneFn=Ht,yt(At,qt,jt)):de==="pan"?(P.dragOptions.moveFn=Gt,P.dragOptions.clickFn=lt,P.dragOptions.doneFn=Et,Kt(),P.clearOutline(V)):(v(de)||f(de))&&h(At,qt,jt,P.dragOptions,de)}};var ft,ct,J,et,Q,Z,st,ot,rt,X;function ut(At){var qt={};return qt[P.id+".aaxis.min"]=At.a,qt[P.id+".baxis.min"]=At.b,qt[P.id+".caxis.min"]=At.c,qt}function lt(At,qt){var jt=V._fullLayout.clickmode;U(V),At===2&&(V.emit("plotly_doubleclick",null),t.call("_guiRelayout",V,ut({a:0,b:0,c:0}))),jt.indexOf("select")>-1&&At===1&&d(qt,V,[P.xaxis],[P.yaxis],P.id,P.dragOptions),jt.indexOf("event")>-1&&m.click(V,qt,P.id)}function yt(At,qt,jt){var de=N.getBoundingClientRect();ft=qt-de.left,ct=jt-de.top,V._fullLayout._calcInverseTransform(V);var Xt=V._fullLayout._invTransform,ye=E.apply3DTransform(Xt)(ft,ct);ft=ye[0],ct=ye[1],J={a:P.aaxis.range[0],b:P.baxis.range[1],c:P.caxis.range[1]},Q=J,et=P.aaxis.range[1]-J.a,Z=A(P.graphDiv._fullLayout[P.id].bgcolor).getLuminance(),st="M0,"+P.h+"L"+P.w/2+", 0L"+P.w+","+P.h+"Z",ot=!1,rt=Y.append("path").attr("class","zoombox").attr("transform",w(P.x0,P.y0)).style({fill:Z>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",st),X=Y.append("path").attr("class","zoombox-corners").attr("transform",w(P.x0,P.y0)).style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),P.clearOutline(V)}function kt(At,qt){return 1-qt/P.h}function Lt(At,qt){return 1-(At+(P.h-qt)/Math.sqrt(3))/P.w}function St(At,qt){return(At-(P.h-qt)/Math.sqrt(3))/P.w}function Ot(At,qt){var jt=ft+At*K,de=ct+qt*nt,Xt=Math.max(0,Math.min(1,kt(ft,ct),kt(jt,de))),ye=Math.max(0,Math.min(1,Lt(ft,ct),Lt(jt,de))),Le=Math.max(0,Math.min(1,St(ft,ct),St(jt,de))),ve=(Xt/2+Le)*P.w,ke=(1-Xt/2-ye)*P.w,Pe=(ve+ke)/2,me=ke-ve,be=(1-Xt)*P.h,je=be-me/u;me.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),X.transition().style("opacity",1).duration(200),!0)),V.emit("plotly_relayouting",ut(Q))}function Ht(){U(V),Q!==J&&(t.call("_guiRelayout",V,ut(Q)),B&&V.data&&V._context.showTips&&(E.notifier(p(V,"Double-click to zoom back out"),"long"),B=!1))}function Kt(){J={a:P.aaxis.range[0],b:P.baxis.range[1],c:P.caxis.range[1]},Q=J}function Gt(At,qt){var jt=At/P.xaxis._m,de=qt/P.yaxis._m;Q={a:J.a-de,b:J.b+(jt+de)/2,c:J.c-(jt-de)/2};var Xt=[Q.a,Q.b,Q.c].sort(E.sorterAsc),ye={a:Xt.indexOf(Q.a),b:Xt.indexOf(Q.b),c:Xt.indexOf(Q.c)};Xt[0]<0&&(Xt[1]+Xt[0]/2<0?(Xt[2]+=Xt[0]+Xt[1],Xt[0]=Xt[1]=0):(Xt[2]+=Xt[0]/2,Xt[1]+=Xt[0]/2,Xt[0]=0),Q={a:Xt[ye.a],b:Xt[ye.b],c:Xt[ye.c]},qt=(J.a-Q.a)*P.yaxis._m,At=(J.c-Q.c-J.b+Q.b)*P.xaxis._m);var Le=w(P.x0+At,P.y0+qt);P.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Le);var ve=w(-At,-qt);P.clipDefRelative.select("path").attr("transform",ve),P.aaxis.range=[Q.a,P.sum-Q.b-Q.c],P.baxis.range=[P.sum-Q.a-Q.c,Q.b],P.caxis.range=[P.sum-Q.a-Q.b,Q.c],P.drawAxes(!1),P._hasClipOnAxisFalse&&P.plotContainer.select(".scatterlayer").selectAll(".trace").call(i.hideOutsideRangePoints,P),V.emit("plotly_relayouting",ut(Q))}function Et(){t.call("_guiRelayout",V,ut(Q))}N.onmousemove=function(At){m.hover(V,At,P.id),V._fullLayout._lasthover=N,V._fullLayout._hoversubplot=P.id},N.onmouseout=function(At){V._dragging||n.unhover(V,At)},n.init(this.dragOptions)};function U(P){S.select(P).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}}),33626:(function(tt,G,e){var S=e(48636),A=e(4969),t=e(36539),E=e(56174),w=e(95425).addStyleRule,p=e(93049),c=e(9829),i=e(6704),r=p.extendFlat,o=p.extendDeepAll;G.modules={},G.allCategories={},G.allTypes=[],G.subplotsRegistry={},G.transformsRegistry={},G.componentsRegistry={},G.layoutArrayContainers=[],G.layoutArrayRegexes=[],G.traceLayoutAttributes={},G.localeRegistry={},G.apiMethodRegistry={},G.collectableSubplotTypes=null,G.register=function(b){if(G.collectableSubplotTypes=null,b)b&&!Array.isArray(b)&&(b=[b]);else throw Error("No argument passed to Plotly.register.");for(var M=0;M-1}tt.exports=function(c,i){var r,o=c.data,a=c.layout,s=E([],o),n=E({},a,w(i.tileClass)),m=c._context||{};if(i.width&&(n.width=i.width),i.height&&(n.height=i.height),i.tileClass==="thumbnail"||i.tileClass==="themes__thumb"){n.annotations=[];var x=Object.keys(n);for(r=0;r")!==-1?"":s.html(m).text()});return s.remove(),n}function o(a){return a.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}tt.exports=function(a,s,n){var m=a._fullLayout,x=m._paper,f=m._toppaper,v=m.width,l=m.height,h;x.insert("rect",":first-child").call(t.setRect,0,0,v,l).call(E.fill,m.paper_bgcolor);var d=m._basePlotModules||[];for(h=0;hV+P||!S(N))}for(var K=0;K=0)return x}else if(typeof x=="string"&&(x=x.trim(),x.slice(-1)==="%"&&S(x.slice(0,-1))&&(x=+x.slice(0,-1),x>=0)))return x+"%"}function m(x,f,v,l,h,d){d||(d={});var b=d.moduleHasSelected!==!1,M=d.moduleHasUnselected!==!1,g=d.moduleHasConstrain!==!1,k=d.moduleHasCliponaxis!==!1,L=d.moduleHasTextangle!==!1,u=d.moduleHasInsideanchor!==!1,T=!!d.hasPathbar,C=Array.isArray(h)||h==="auto",_=C||h==="inside",F=C||h==="outside";if(_||F){var O=o(l,"textfont",v.font),j=A.extendFlat({},O),B=!(x.textfont&&x.textfont.color);if(B&&delete j.color,o(l,"insidetextfont",j),T){var U=A.extendFlat({},O);B&&delete U.color,o(l,"pathbar.textfont",U)}F&&o(l,"outsidetextfont",O),b&&l("selected.textfont.color"),M&&l("unselected.textfont.color"),g&&l("constraintext"),k&&l("cliponaxis"),L&&l("textangle"),l("texttemplate")}_&&u&&l("insidetextanchor")}tt.exports={supplyDefaults:a,crossTraceDefaults:s,handleText:m,validateCornerradius:n}}),59541:(function(tt){tt.exports=function(G,e,S){return G.x="xVal"in e?e.xVal:e.x,G.y="yVal"in e?e.yVal:e.y,e.xa&&(G.xaxis=e.xa),e.ya&&(G.yaxis=e.ya),S.orientation==="h"?(G.label=G.y,G.value=G.x):(G.label=G.x,G.value=G.y),G}}),42843:(function(tt,G,e){var S=e(10721),A=e(65657),t=e(34809).isArrayOrTypedArray;G.coerceString=function(E,w,p){if(typeof w=="string"){if(w||!E.noBlank)return w}else if((typeof w=="number"||w===!0)&&!E.strict)return String(w);return p===void 0?E.dflt:p},G.coerceNumber=function(E,w,p){if(S(w)){w=+w;var c=E.min,i=E.max;if(!(c!==void 0&&wi))return w}return p===void 0?E.dflt:p},G.coerceColor=function(E,w,p){return A(w).isValid()?w:p===void 0?E.dflt:p},G.coerceEnumerated=function(E,w,p){return E.coerceNumber&&(w=+w),E.values.indexOf(w)===-1?p===void 0?E.dflt:p:w},G.getValue=function(E,w){var p;return t(E)?w0?yt+=kt:k<0&&(yt-=kt)}return yt}function ct(lt){var yt=k,kt=lt.b,Lt=ft(lt);return S.inbox(kt-yt,Lt-yt,b+(Lt-yt)/(Lt-kt)-1)}function J(lt){var yt=k,kt=lt.b,Lt=ft(lt);return S.inbox(kt-yt,Lt-yt,M+(Lt-yt)/(Lt-kt)-1)}var et=a[L+"a"],Q=a[u+"a"];_=Math.abs(et.r2c(et.range[1])-et.r2c(et.range[0]));function Z(lt){return(T(lt)+C(lt))/2}var st=S.getDistanceFunction(m,T,C,Z);if(S.getClosest(f,st,a),a.index!==!1&&f[a.index].p!==c){O||(N=function(lt){return Math.min(j(lt),lt.p-l.bargroupwidth/2)},V=function(lt){return Math.max(B(lt),lt.p+l.bargroupwidth/2)});var ot=f[a.index],rt=v.base?ot.b+ot.s:ot.s;a[u+"0"]=a[u+"1"]=Q.c2p(ot[u],!0),a[u+"LabelVal"]=rt;var X=l.extents[l.extents.round(ot.p)];a[L+"0"]=et.c2p(h?N(ot):X[0],!0),a[L+"1"]=et.c2p(h?V(ot):X[1],!0);var ut=ot.orig_p!==void 0;return a[L+"LabelVal"]=ut?ot.orig_p:ot.p,a.labelLabel=p(et,a[L+"LabelVal"],v[L+"hoverformat"]),a.valueLabel=p(Q,a[u+"LabelVal"],v[u+"hoverformat"]),a.baseLabel=p(Q,ot.b,v[u+"hoverformat"]),a.spikeDistance=(J(ot)+nt(ot))/2,a[L+"Spike"]=et.c2p(ot.p,!0),E(ot,v,a),a.hovertemplate=v.hovertemplate,a}}function o(a,s){var n=s.mcc||a.marker.color,m=s.mlcc||a.marker.line.color,x=w(a,s);if(t.opacity(n))return n;if(t.opacity(m)&&x)return m}tt.exports={hoverPoints:i,hoverOnBars:r,getTraceColor:o}}),58218:(function(tt,G,e){tt.exports={attributes:e(81481),layoutAttributes:e(25412),supplyDefaults:e(17550).supplyDefaults,crossTraceDefaults:e(17550).crossTraceDefaults,supplyLayoutDefaults:e(78931),calc:e(67565),crossTraceCalc:e(24782).crossTraceCalc,colorbar:e(21146),arraysToCalcdata:e(35374),plot:e(32995).plot,style:e(6851).style,styleOnSelect:e(6851).styleOnSelect,hoverPoints:e(91664).hoverPoints,eventData:e(59541),selectPoints:e(88384),moduleType:"trace",name:"bar",basePlotModule:e(37703),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}}),25412:(function(tt){tt.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}}),78931:(function(tt,G,e){var S=e(33626),A=e(29714),t=e(34809),E=e(25412),w=e(17550).validateCornerradius;tt.exports=function(p,c,i){function r(l,h){return t.coerce(p,c,E,l,h)}for(var o=!1,a=!1,s=!1,n={},m=r("barmode"),x=0;x0)-(K<0)}function g(K,nt){return K0}function T(K,nt,ft,ct,J,et){var Q=nt.xaxis,Z=nt.yaxis,st=K._fullLayout,ot=K._context.staticPlot;J||(J={mode:st.barmode,norm:st.barmode,gap:st.bargap,groupgap:st.bargroupgap},a("bar",st));var rt=t.makeTraceGroups(ct,ft,"trace bars").each(function(X){var ut=S.select(this),lt=X[0].trace,yt=X[0].t,kt=lt.type==="waterfall",Lt=lt.type==="funnel",St=lt.type==="histogram",Ot=lt.type==="bar",Ht=Ot||Lt,Kt=0;kt&<.connector.visible&<.connector.mode==="between"&&(Kt=lt.connector.line.width/2);var Gt=lt.orientation==="h",Et=u(J),At=t.ensureSingle(ut,"g","points"),qt=b(lt),jt=At.selectAll("g.point").data(t.identity,qt);jt.enter().append("g").classed("point",!0),jt.exit().remove(),jt.each(function(Xt,ye){var Le=S.select(this),ve=k(Xt,Q,Z,Gt),ke=ve[0][0],Pe=ve[0][1],me=ve[1][0],be=ve[1][1],je=(Gt?Pe-ke:be-me)===0;je&&Ht&&n.getLineWidth(lt,Xt)&&(je=!1),je||(je=!A(ke)||!A(Pe)||!A(me)||!A(be)),Xt.isBlank=je,je&&(Gt?Pe=ke:be=me),Kt&&!je&&(Gt?(ke-=g(ke,Pe)*Kt,Pe+=g(ke,Pe)*Kt):(me-=g(me,be)*Kt,be+=g(me,be)*Kt));var nr,Vt;if(lt.type==="waterfall"){if(!je){var Qt=lt[Xt.dir].marker;nr=Qt.line.width,Vt=Qt.color}}else nr=n.getLineWidth(lt,Xt),Vt=Xt.mc||lt.marker.color;function te(ue){var we=S.round(nr/2%1,2);return J.gap===0&&J.groupgap===0?S.round(Math.round(ue)-we,2):ue}function ee(ue,we,Ce){return Ce&&ue===we?ue:Math.abs(ue-we)>=2?te(ue):ue>we?Math.ceil(ue):Math.floor(ue)}var Bt=w.opacity(Vt)<1||nr>.01?te:ee;K._context.staticPlot||(ke=Bt(ke,Pe,Gt),Pe=Bt(Pe,ke,Gt),me=Bt(me,be,!Gt),be=Bt(be,me,!Gt));var Wt=Gt?Q.c2p:Z.c2p,$t=Xt.s0>0?Xt._sMax:Xt.s0<0?Xt._sMin:Xt.s1>0?Xt._sMax:Xt._sMin;function Tt(ue,we){if(!ue)return 0;var Ce=Math.abs(Gt?be-me:Pe-ke),Ge=Math.abs(Gt?Pe-ke:be-me),Ke=Bt(Math.abs(Wt($t,!0)-Wt(0,!0))),ar=Xt.hasB?Math.min(Ce/2,Ge/2):Math.min(Ce/2,Ke),We=we==="%"?Math.min(50,ue)/100*Ce:ue;return Bt(Math.max(Math.min(We,ar),0))}var _t=Ot||St?Tt(yt.cornerradiusvalue,yt.cornerradiusform):0,It,Mt,Ct="M"+ke+","+me+"V"+be+"H"+Pe+"V"+me+"Z",Ut=0;if(_t&&Xt.s){var Zt=M(Xt.s0)===0||M(Xt.s)===M(Xt.s0)?Xt.s1:Xt.s0;if(Ut=Bt(Xt.hasB?0:Math.abs(Wt($t,!0)-Wt(Zt,!0))),Ut<_t){var Me=g(ke,Pe),Be=g(me,be),ge=Me===-Be?1:0;if(Gt)if(Xt.hasB)It="M"+(ke+_t*Me)+","+me+"A "+_t+","+_t+" 0 0 "+ge+" "+ke+","+(me+_t*Be)+"V"+(be-_t*Be)+"A "+_t+","+_t+" 0 0 "+ge+" "+(ke+_t*Me)+","+be+"H"+(Pe-_t*Me)+"A "+_t+","+_t+" 0 0 "+ge+" "+Pe+","+(be-_t*Be)+"V"+(me+_t*Be)+"A "+_t+","+_t+" 0 0 "+ge+" "+(Pe-_t*Me)+","+me+"Z";else{Mt=Math.abs(Pe-ke)+Ut;var Ee=Mt<_t?_t-Math.sqrt(Mt*(2*_t-Mt)):0,Ne=Ut>0?Math.sqrt(Ut*(2*_t-Ut)):0,sr=Me>0?Math.max:Math.min;It="M"+ke+","+me+"V"+(be-Ee*Be)+"H"+sr(Pe-(_t-Ut)*Me,ke)+"A "+_t+","+_t+" 0 0 "+ge+" "+Pe+","+(be-_t*Be-Ne)+"V"+(me+_t*Be+Ne)+"A "+_t+","+_t+" 0 0 "+ge+" "+sr(Pe-(_t-Ut)*Me,ke)+","+(me+Ee*Be)+"Z"}else if(Xt.hasB)It="M"+(ke+_t*Me)+","+me+"A "+_t+","+_t+" 0 0 "+ge+" "+ke+","+(me+_t*Be)+"V"+(be-_t*Be)+"A "+_t+","+_t+" 0 0 "+ge+" "+(ke+_t*Me)+","+be+"H"+(Pe-_t*Me)+"A "+_t+","+_t+" 0 0 "+ge+" "+Pe+","+(be-_t*Be)+"V"+(me+_t*Be)+"A "+_t+","+_t+" 0 0 "+ge+" "+(Pe-_t*Me)+","+me+"Z";else{Mt=Math.abs(be-me)+Ut;var _e=Mt<_t?_t-Math.sqrt(Mt*(2*_t-Mt)):0,He=Ut>0?Math.sqrt(Ut*(2*_t-Ut)):0,or=Be>0?Math.max:Math.min;It="M"+(ke+_e*Me)+","+me+"V"+or(be-(_t-Ut)*Be,me)+"A "+_t+","+_t+" 0 0 "+ge+" "+(ke+_t*Me-He)+","+be+"H"+(Pe-_t*Me+He)+"A "+_t+","+_t+" 0 0 "+ge+" "+(Pe-_e*Me)+","+or(be-(_t-Ut)*Be,me)+"V"+me+"Z"}}else It=Ct}else It=Ct;var Pr=L(t.ensureSingle(Le,"path"),st,J,et);if(Pr.style("vector-effect",ot?"none":"non-scaling-stroke").attr("d",isNaN((Pe-ke)*(be-me))||je&&K._context.staticPlot?"M0,0Z":It).call(p.setClipUrl,nt.layerClipId,K),!st.uniformtext.mode&&Et){var br=p.makePointStyleFns(lt);p.singlePointStyle(Xt,Pr,lt,br,K)}C(K,nt,Le,X,ye,ke,Pe,me,be,_t,Ut,J,et),nt.layerClipId&&p.hideOutsideRangePoint(Xt,Le.select("text"),Q,Z,lt.xcalendar,lt.ycalendar)});var de=lt.cliponaxis===!1;p.setClipUrl(ut,de?null:nt.layerClipId,K)});c.getComponentMethod("errorbars","plot")(K,rt,nt,J)}function C(K,nt,ft,ct,J,et,Q,Z,st,ot,rt,X,ut){var lt=nt.xaxis,yt=nt.yaxis,kt=K._fullLayout,Lt;function St(Ct,Ut,Zt){return t.ensureSingle(Ct,"text").text(Ut).attr({class:"bartext bartext-"+Lt,"text-anchor":"middle","data-notex":1}).call(p.font,Zt).call(E.convertToTspans,K)}var Ot=ct[0].trace,Ht=Ot.orientation==="h",Kt=P(kt,ct,J,lt,yt);Lt=N(Ot,J);var Gt=X.mode==="stack"||X.mode==="relative",Et=ct[J],At=!Gt||Et._outmost,qt=Et.hasB,jt=ot&&ot-rt>h;if(!Kt||Lt==="none"||(Et.isBlank||et===Q||Z===st)&&(Lt==="auto"||Lt==="inside")){ft.select("text").remove();return}var de=kt.font,Xt=s.getBarColor(ct[J],Ot),ye=s.getInsideTextFont(Ot,J,de,Xt),Le=s.getOutsideTextFont(Ot,J,de),ve=Ot.insidetextanchor||"end",ke=ft.datum();Ht?lt.type==="log"&&ke.s0<=0&&(et=lt.range[0]0&&te>0,Wt=jt?qt?_(be-2*ot,je,Qt,te,Ht)||_(be,je-2*ot,Qt,te,Ht):Ht?_(be-(ot-rt),je,Qt,te,Ht)||_(be,je-2*(ot-rt),Qt,te,Ht):_(be,je-(ot-rt),Qt,te,Ht)||_(be-2*(ot-rt),je,Qt,te,Ht):_(be,je,Qt,te,Ht);Bt&&Wt?Lt="inside":(Lt="outside",nr.remove(),nr=null)}else Lt="inside";if(!nr){ee=t.ensureUniformFontSize(K,Lt==="outside"?Le:ye),nr=St(ft,Kt,ee);var $t=nr.attr("transform");if(nr.attr("transform",""),Vt=p.bBox(nr.node()),Qt=Vt.width,te=Vt.height,nr.attr("transform",$t),Qt<=0||te<=0){nr.remove();return}}var Tt=Ot.textangle,_t,It;Lt==="outside"?(It=Ot.constraintext==="both"||Ot.constraintext==="outside",_t=U(et,Q,Z,st,Vt,{isHorizontal:Ht,constrained:It,angle:Tt})):(It=Ot.constraintext==="both"||Ot.constraintext==="inside",_t=j(et,Q,Z,st,Vt,{isHorizontal:Ht,constrained:It,angle:Tt,anchor:ve,hasB:qt,r:ot,overhead:rt})),_t.fontSize=ee.size,o(Ot.type==="histogram"?"bar":Ot.type,_t,kt),Et.transform=_t;var Mt=L(nr,kt,X,ut);t.setTransormAndDisplay(Mt,_t)}function _(K,nt,ft,ct,J){if(K<0||nt<0)return!1;var et=ft<=K&&ct<=nt,Q=ft<=nt&&ct<=K,Z=J?K>=nt/ct*ft:nt>=K/ft*ct;return et||Q||Z}function F(K){return K==="auto"?0:K}function O(K,nt){var ft=Math.PI/180*nt,ct=Math.abs(Math.sin(ft)),J=Math.abs(Math.cos(ft));return{x:K.width*J+K.height*ct,y:K.width*ct+K.height*J}}function j(K,nt,ft,ct,J,et){var Q=!!et.isHorizontal,Z=!!et.constrained,st=et.angle||0,ot=et.anchor,rt=ot==="end",X=ot==="start",ut=((et.leftToRight||0)+1)/2,lt=1-ut,yt=et.hasB,kt=et.r,Lt=et.overhead,St=J.width,Ot=J.height,Ht=Math.abs(nt-K),Kt=Math.abs(ct-ft),Gt=Ht>2*h&&Kt>2*h?h:0;Ht-=2*Gt,Kt-=2*Gt;var Et=F(st);st==="auto"&&!(St<=Ht&&Ot<=Kt)&&(St>Ht||Ot>Kt)&&(!(St>Kt||Ot>Ht)||Sth){var de=B(K,nt,ft,ct,At,kt,Lt,Q,yt);qt=de.scale,jt=de.pad}else qt=1,Z&&(qt=Math.min(1,Ht/At.x,Kt/At.y)),jt=0;var Xt=J.left*lt+J.right*ut,ye=(J.top+J.bottom)/2,Le=(K+h)*lt+(nt-h)*ut,ve=(ft+ct)/2,ke=0,Pe=0;if(X||rt){var me=(Q?At.x:At.y)/2;kt&&(rt||yt)&&(Gt+=jt);var be=Q?g(K,nt):g(ft,ct);Q?X?(Le=K+be*Gt,ke=-be*me):(Le=nt-be*Gt,ke=be*me):X?(ve=ft+be*Gt,Pe=-be*me):(ve=ct-be*Gt,Pe=be*me)}return{textX:Xt,textY:ye,targetX:Le,targetY:ve,anchorX:ke,anchorY:Pe,scale:qt,rotate:Et}}function B(K,nt,ft,ct,J,et,Q,Z,st){var ot=Math.max(0,Math.abs(nt-K)-2*h),rt=Math.max(0,Math.abs(ct-ft)-2*h),X=et-h,ut=Q?X-Math.sqrt(X*X-(X-Q)*(X-Q)):X,lt=st?X*2:Z?X-Q:2*ut,yt=st?X*2:Z?2*ut:X-Q,kt,Lt,St,Ot,Ht;return J.y/J.x>=rt/(ot-lt)?Ot=rt/J.y:J.y/J.x<=(rt-yt)/ot?Ot=ot/J.x:!st&&Z?(kt=J.x*J.x+J.y*J.y/4,Lt=-2*J.x*(ot-X)-J.y*(rt/2-X),St=(ot-X)*(ot-X)+(rt/2-X)*(rt/2-X)-X*X,Ot=(-Lt+Math.sqrt(Lt*Lt-4*kt*St))/(2*kt)):st?(kt=(J.x*J.x+J.y*J.y)/4,Lt=-J.x*(ot/2-X)-J.y*(rt/2-X),St=(ot/2-X)*(ot/2-X)+(rt/2-X)*(rt/2-X)-X*X,Ot=(-Lt+Math.sqrt(Lt*Lt-4*kt*St))/(2*kt)):(kt=J.x*J.x/4+J.y*J.y,Lt=-J.x*(ot/2-X)-2*J.y*(rt-X),St=(ot/2-X)*(ot/2-X)+(rt-X)*(rt-X)-X*X,Ot=(-Lt+Math.sqrt(Lt*Lt-4*kt*St))/(2*kt)),Ot=Math.min(1,Ot),Ht=Z?Math.max(0,X-Math.sqrt(Math.max(0,X*X-(X-(rt-J.y*Ot)/2)*(X-(rt-J.y*Ot)/2)))-Q):Math.max(0,X-Math.sqrt(Math.max(0,X*X-(X-(ot-J.x*Ot)/2)*(X-(ot-J.x*Ot)/2)))-Q),{scale:Ot,pad:Ht}}function U(K,nt,ft,ct,J,et){var Q=!!et.isHorizontal,Z=!!et.constrained,st=et.angle||0,ot=J.width,rt=J.height,X=Math.abs(nt-K),ut=Math.abs(ct-ft),lt=Q?ut>2*h?h:0:X>2*h?h:0,yt=1;Z&&(yt=Q?Math.min(1,ut/rt):Math.min(1,X/ot));var kt=F(st),Lt=O(J,kt),St=(Q?Lt.x:Lt.y)/2,Ot=(J.left+J.right)/2,Ht=(J.top+J.bottom)/2,Kt=(K+nt)/2,Gt=(ft+ct)/2,Et=0,At=0,qt=Q?g(nt,K):g(ft,ct);return Q?(Kt=nt-qt*lt,Et=qt*St):(Gt=ct+qt*lt,At=-qt*St),{textX:Ot,textY:Ht,targetX:Kt,targetY:Gt,anchorX:Et,anchorY:At,scale:yt,rotate:kt}}function P(K,nt,ft,ct,J){var et=nt[0].trace,Q=et.texttemplate?V(K,nt,ft,ct,J):et.textinfo?Y(nt,ft,ct,J):n.getValue(et.text,ft);return n.coerceString(f,Q)}function N(K,nt){var ft=n.getValue(K.textposition,nt);return n.coerceEnumerated(v,ft)}function V(K,nt,ft,ct,J){var et=nt[0].trace,Q=t.castOption(et,ft,"texttemplate");if(!Q)return"";var Z=et.type==="histogram",st=et.type==="waterfall",ot=et.type==="funnel",rt=et.orientation==="h",X,ut,lt,yt;rt?(X="y",ut=J,lt="x",yt=ct):(X="x",ut=ct,lt="y",yt=J);function kt(Et){return i(ut,ut.c2l(Et),!0).text}function Lt(Et){return i(yt,yt.c2l(Et),!0).text}var St=nt[ft],Ot={};Ot.label=St.p,Ot.labelLabel=Ot[X+"Label"]=kt(St.p);var Ht=t.castOption(et,St.i,"text");(Ht===0||Ht)&&(Ot.text=Ht),Ot.value=St.s,Ot.valueLabel=Ot[lt+"Label"]=Lt(St.s);var Kt={};l(Kt,et,St.i),(Z||Kt.x===void 0)&&(Kt.x=rt?Ot.value:Ot.label),(Z||Kt.y===void 0)&&(Kt.y=rt?Ot.label:Ot.value),(Z||Kt.xLabel===void 0)&&(Kt.xLabel=rt?Ot.valueLabel:Ot.labelLabel),(Z||Kt.yLabel===void 0)&&(Kt.yLabel=rt?Ot.labelLabel:Ot.valueLabel),st&&(Ot.delta=+St.rawS||St.s,Ot.deltaLabel=Lt(Ot.delta),Ot.final=St.v,Ot.finalLabel=Lt(Ot.final),Ot.initial=Ot.final-Ot.delta,Ot.initialLabel=Lt(Ot.initial)),ot&&(Ot.value=St.s,Ot.valueLabel=Lt(Ot.value),Ot.percentInitial=St.begR,Ot.percentInitialLabel=t.formatPercent(St.begR),Ot.percentPrevious=St.difR,Ot.percentPreviousLabel=t.formatPercent(St.difR),Ot.percentTotal=St.sumR,Ot.percenTotalLabel=t.formatPercent(St.sumR));var Gt=t.castOption(et,St.i,"customdata");return Gt&&(Ot.customdata=Gt),t.texttemplateString(Q,Ot,K._d3locale,Kt,Ot,et._meta||{})}function Y(K,nt,ft,ct){var J=K[0].trace,et=J.orientation==="h",Q=J.type==="waterfall",Z=J.type==="funnel";function st(Gt){return i(et?ct:ft,Gt,!0).text}function ot(Gt){return i(et?ft:ct,+Gt,!0).text}var rt=J.textinfo,X=K[nt],ut=rt.split("+"),lt=[],yt,kt=function(Gt){return ut.indexOf(Gt)!==-1};if(kt("label")&<.push(st(K[nt].p)),kt("text")&&(yt=t.castOption(J,X.i,"text"),(yt===0||yt)&<.push(yt)),Q){var Lt=+X.rawS||X.s,St=X.v,Ot=St-Lt;kt("initial")&<.push(ot(Ot)),kt("delta")&<.push(ot(Lt)),kt("final")&<.push(ot(St))}if(Z){kt("value")&<.push(ot(X.s));var Ht=0;kt("percent initial")&&Ht++,kt("percent previous")&&Ht++,kt("percent total")&&Ht++;var Kt=Ht>1;kt("percent initial")&&(yt=t.formatPercent(X.begR),Kt&&(yt+=" of initial"),lt.push(yt)),kt("percent previous")&&(yt=t.formatPercent(X.difR),Kt&&(yt+=" of previous"),lt.push(yt)),kt("percent total")&&(yt=t.formatPercent(X.sumR),Kt&&(yt+=" of total"),lt.push(yt))}return lt.join("
")}tt.exports={plot:T,toMoveInsideBar:j}}),88384:(function(tt){tt.exports=function(e,S){var A=e.cd,t=e.xaxis,E=e.yaxis,w=A[0].trace,p=w.type==="funnel",c=w.orientation==="h",i=[],r;if(S===!1)for(r=0;r1||T.bargap===0&&T.bargroupgap===0&&!C[0].trace.marker.line.width)&&S.select(this).attr("shape-rendering","crispEdges")}),L.selectAll("g.points").each(function(C){var _=S.select(this),F=C[0].trace;n(_,F,k)}),w.getComponentMethod("errorbars","style")(L)}function n(k,L,u){t.pointStyle(k.selectAll("path"),L,u),m(k,L,u)}function m(k,L,u){k.selectAll("text").each(function(T){var C=S.select(this),_=E.ensureUniformFontSize(u,l(C,T,L,u));t.font(C,_)})}function x(k,L,u){var T=L[0].trace;T.selectedpoints?f(u,T,k):(n(u,T,k),w.getComponentMethod("errorbars","style")(u))}function f(k,L,u){t.selectedPointStyle(k.selectAll("path"),L),v(k.selectAll("text"),L,u)}function v(k,L,u){k.each(function(T){var C=S.select(this),_;if(T.selected){_=E.ensureUniformFontSize(u,l(C,T,L,u));var F=L.selected.textfont&&L.selected.textfont.color;F&&(_.color=F),t.font(C,_)}else t.selectedTextStyle(C,L)})}function l(k,L,u,T){var C=T._fullLayout.font,_=u.textfont;if(k.classed("bartext-inside")){var F=g(L,u);_=d(u,L.i,C,F)}else k.classed("bartext-outside")&&(_=b(u,L.i,C));return _}function h(k,L,u){return M(i,k.textfont,L,u)}function d(k,L,u,T){var C=h(k,L,u);return(k._input.textfont===void 0||k._input.textfont.color===void 0||Array.isArray(k.textfont.color)&&k.textfont.color[L]===void 0)&&(C={color:A.contrast(T),family:C.family,size:C.size,weight:C.weight,style:C.style,variant:C.variant,textcase:C.textcase,lineposition:C.lineposition,shadow:C.shadow}),M(r,k.insidetextfont,L,C)}function b(k,L,u){var T=h(k,L,u);return M(o,k.outsidetextfont,L,T)}function M(k,L,u,T){L||(L={});var C=a.getValue(L.family,u),_=a.getValue(L.size,u),F=a.getValue(L.color,u),O=a.getValue(L.weight,u),j=a.getValue(L.style,u),B=a.getValue(L.variant,u),U=a.getValue(L.textcase,u),P=a.getValue(L.lineposition,u),N=a.getValue(L.shadow,u);return{family:a.coerceString(k.family,C,T.family),size:a.coerceNumber(k.size,_,T.size),color:a.coerceColor(k.color,F,T.color),weight:a.coerceString(k.weight,O,T.weight),style:a.coerceString(k.style,j,T.style),variant:a.coerceString(k.variant,B,T.variant),textcase:a.coerceString(k.variant,U,T.textcase),lineposition:a.coerceString(k.variant,P,T.lineposition),shadow:a.coerceString(k.variant,N,T.shadow)}}function g(k,L){return L.type==="waterfall"?L[k.dir].marker.color:k.mcc||k.mc||L.marker.color}tt.exports={style:s,styleTextPoints:m,styleOnSelect:x,getInsideTextFont:d,getOutsideTextFont:b,getBarColor:g,resizeText:p}}),59760:(function(tt,G,e){var S=e(78766),A=e(65477).hasColorscale,t=e(39356),E=e(34809).coercePattern;tt.exports=function(w,p,c,i,r){var o=c("marker.color",i),a=A(w,"marker");a&&t(w,p,r,c,{prefix:"marker.",cLetter:"c"}),c("marker.line.color",S.defaultLine),A(w,"marker.line")&&t(w,p,r,c,{prefix:"marker.line.",cLetter:"c"}),c("marker.line.width"),c("marker.opacity"),E(c,"marker.pattern",o,a),c("selected.marker.color"),c("unselected.marker.color")}}),84102:(function(tt,G,e){var S=e(45568),A=e(34809);function t(c,i,r){var o=c._fullLayout,a=o["_"+r+"Text_minsize"];if(a){var s=o.uniformtext.mode==="hide",n;switch(r){case"funnelarea":case"pie":case"sunburst":n="g.slice";break;case"treemap":case"icicle":n="g.slice, g.pathbar";break;default:n="g.points > g.point"}i.selectAll(n).each(function(m){var x=m.transform;if(x){x.scale=s&&x.hide?0:a/x.fontSize;var f=S.select(this).select("text");A.setTransormAndDisplay(f,x)}})}}function E(c,i,r){if(r.uniformtext.mode){var o=p(c),a=r.uniformtext.minsize,s=i.scale*i.fontSize;i.hide=sn.range[1]&&(d+=Math.PI),S.getClosest(o,function(g){return f(h,d,[g.rp0,g.rp1],[g.thetag0,g.thetag1],x)?v+Math.min(1,Math.abs(g.thetag1-g.thetag0)/l)-1+(g.rp1-h)/(g.rp1-g.rp0)-1:1/0},c),c.index!==!1){var b=o[c.index];c.x0=c.x1=b.ct[0],c.y0=c.y1=b.ct[1];var M=A.extendFlat({},b,{r:b.s,theta:b.p});return E(b,a,c),w(M,a,s,c),c.hovertemplate=a.hovertemplate,c.color=t(a,b),c.xLabelVal=c.yLabelVal=void 0,b.s<0&&(c.idealAlign="left"),[c]}}}),89362:(function(tt,G,e){tt.exports={moduleType:"trace",name:"barpolar",basePlotModule:e(31645),categories:["polar","bar","showLegend"],attributes:e(32225),layoutAttributes:e(42956),supplyDefaults:e(77318),supplyLayoutDefaults:e(60507),calc:e(27941).calc,crossTraceCalc:e(27941).crossTraceCalc,plot:e(11627),colorbar:e(21146),formatLabels:e(33368),style:e(6851).style,styleOnSelect:e(6851).styleOnSelect,hoverPoints:e(83080),selectPoints:e(88384),meta:{}}}),42956:(function(tt){tt.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}}),60507:(function(tt,G,e){var S=e(34809),A=e(42956);tt.exports=function(t,E,w){var p={},c;function i(a,s){return S.coerce(t[c]||{},E[c],A,a,s)}for(var r=0;r0?(m=s,x=n):(m=n,x=s);var f=w.findEnclosingVertexAngles(m,c.vangles)[0],v=w.findEnclosingVertexAngles(x,c.vangles)[1],l=[f,(m+x)/2,v];return w.pathPolygonAnnulus(o,a,m,x,l,i,r)}:function(o,a,s,n){return t.pathAnnulus(o,a,s,n,i,r)}}}),64625:(function(tt,G,e){var S=e(19326),A=e(36640),t=e(81481),E=e(10229),w=e(80712).axisHoverFormat,p=e(3208).rb,c=e(93049).extendFlat,i=A.marker,r=i.line;tt.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:A.xperiod,yperiod:A.yperiod,xperiod0:A.xperiod0,yperiod0:A.yperiod0,xperiodalignment:A.xperiodalignment,yperiodalignment:A.yperiodalignment,xhoverformat:w("x"),yhoverformat:w("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:c({},i.symbol,{arrayOk:!1,editType:"plot"}),opacity:c({},i.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:c({},i.angle,{arrayOk:!1,editType:"calc"}),size:c({},i.size,{arrayOk:!1,editType:"calc"}),color:c({},i.color,{arrayOk:!1,editType:"style"}),line:{color:c({},r.color,{arrayOk:!1,dflt:E.defaultLine,editType:"style"}),width:c({},r.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:S(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:t.offsetgroup,alignmentgroup:t.alignmentgroup,selected:{marker:A.selected.marker,editType:"style"},unselected:{marker:A.unselected.marker,editType:"style"},text:c({},A.text,{}),hovertext:c({},A.hovertext,{}),hovertemplate:p({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:A.zorder}}),89429:(function(tt,G,e){var S=e(10721),A=e(29714),t=e(40528),E=e(34809),w=e(63821).BADNUM,p=E._;tt.exports=function(d,b){var M=d._fullLayout,g=A.getFromId(d,b.xaxis||"x"),k=A.getFromId(d,b.yaxis||"y"),L=[],u=b.type==="violin"?"_numViolins":"_numBoxes",T,C,_,F,O,j,B;b.orientation==="h"?(_=g,F="x",O=k,j="y",B=!!b.yperiodalignment):(_=k,F="y",O=g,j="x",B=!!b.xperiodalignment);var U=c(b,j,O,M[u]),P=U[0],N=U[1],V=E.distinctVals(P,O),Y=V.vals,K=V.minDiff/2,nt,ft,ct,J,et,Q,Z=(b.boxpoints||b.points)==="all"?E.identity:function(be){return be.vnt.uf};if(b._hasPreCompStats){var st=b[F],ot=function(be){return _.d2c((b[be]||[])[T])},rt=1/0,X=-1/0;for(T=0;T=nt.q1&&nt.q3>=nt.med){var lt=ot("lowerfence");nt.lf=lt!==w&<<=nt.q1?lt:x(nt,ct,J);var yt=ot("upperfence");nt.uf=yt!==w&&yt>=nt.q3?yt:f(nt,ct,J);var kt=ot("mean");nt.mean=kt===w?J?E.mean(ct,J):(nt.q1+nt.q3)/2:kt;var Lt=ot("sd");nt.sd=kt!==w&&Lt>=0?Lt:J?E.stdev(ct,J,nt.mean):nt.q3-nt.q1,nt.lo=v(nt),nt.uo=l(nt);var St=ot("notchspan");St=St!==w&&St>0?St:h(nt,J),nt.ln=nt.med-St,nt.un=nt.med+St;var Ot=nt.lf,Ht=nt.uf;b.boxpoints&&ct.length&&(Ot=Math.min(Ot,ct[0]),Ht=Math.max(Ht,ct[J-1])),b.notched&&(Ot=Math.min(Ot,nt.ln),Ht=Math.max(Ht,nt.un)),nt.min=Ot,nt.max=Ht}else{E.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+nt.q1,"median = "+nt.med,"q3 = "+nt.q3].join(` +`));var Kt=nt.med===w?nt.q1===w?nt.q3===w?0:nt.q3:nt.q3===w?nt.q1:(nt.q1+nt.q3)/2:nt.med;nt.med=Kt,nt.q1=nt.q3=Kt,nt.lf=nt.uf=Kt,nt.mean=nt.sd=Kt,nt.ln=nt.un=Kt,nt.min=nt.max=Kt}rt=Math.min(rt,nt.min),X=Math.max(X,nt.max),nt.pts2=ft.filter(Z),L.push(nt)}}b._extremes[_._id]=A.findExtremes(_,[rt,X],{padded:!0})}else{var Gt=_.makeCalcdata(b,F),Et=i(Y,K),At=Y.length,qt=r(At);for(T=0;T=0&&jt0){if(nt={},nt.pos=nt[j]=Y[T],ft=nt.pts=qt[T].sort(n),ct=nt[F]=ft.map(m),J=ct.length,nt.min=ct[0],nt.max=ct[J-1],nt.mean=E.mean(ct,J),nt.sd=E.stdev(ct,J,nt.mean)*b.sdmultiple,nt.med=E.interp(ct,.5),J%2&&(Le||ve)){var ke,Pe;Le?(ke=ct.slice(0,J/2),Pe=ct.slice(J/2+1)):ve&&(ke=ct.slice(0,J/2+1),Pe=ct.slice(J/2)),nt.q1=E.interp(ke,.5),nt.q3=E.interp(Pe,.5)}else nt.q1=E.interp(ct,.25),nt.q3=E.interp(ct,.75);nt.lf=x(nt,ct,J),nt.uf=f(nt,ct,J),nt.lo=v(nt),nt.uo=l(nt);var me=h(nt,J);nt.ln=nt.med-me,nt.un=nt.med+me,de=Math.min(de,nt.ln),Xt=Math.max(Xt,nt.un),nt.pts2=ft.filter(Z),L.push(nt)}b.notched&&E.isTypedArray(Gt)&&(Gt=Array.from(Gt)),b._extremes[_._id]=A.findExtremes(_,b.notched?Gt.concat([de,Xt]):Gt,{padded:!0})}return s(L,b),L.length>0?(L[0].t={num:M[u],dPos:K,posLetter:j,valLetter:F,labels:{med:p(d,"median:"),min:p(d,"min:"),q1:p(d,"q1:"),q3:p(d,"q3:"),max:p(d,"max:"),mean:b.boxmean==="sd"||b.sizemode==="sd"?p(d,"mean \xB1 \u03C3:").replace("\u03C3",b.sdmultiple===1?"\u03C3":b.sdmultiple+"\u03C3"):p(d,"mean:"),lf:p(d,"lower fence:"),uf:p(d,"upper fence:")}},M[u]++,L):[{t:{empty:!0}}]};function c(d,b,M,g){var k=b in d,L=b+"0"in d,u="d"+b in d;if(k||L&&u){var T=M.makeCalcdata(d,b);return[t(d,M,b,T).vals,T]}for(var C=L?d[b+"0"]:("name"in d)&&(M.type==="category"||S(d.name)&&["linear","log"].indexOf(M.type)!==-1||E.isDateTime(d.name)&&M.type==="date")?d.name:g,_=M.type==="multicategory"?M.r2c_just_indices(C):M.d2c(C,0,d[b+"calendar"]),F=d._length,O=Array(F),j=0;j1,k=1-s[c+"gap"],L=1-s[c+"groupgap"];for(x=0;x0;if(_==="positive"?(K=F*(C?1:.5),ct=ft,nt=ct=j):_==="negative"?(K=ct=j,nt=F*(C?1:.5),J=ft):(K=nt=F,ct=J=ft),rt){var X=u.pointpos,ut=u.jitter,lt=u.marker.size/2,yt=0;X+ut>=0&&(yt=ft*(X+ut),yt>K?(ot=!0,Z=lt,et=yt):yt>ct&&(Z=lt,et=K)),yt<=K&&(et=K);var kt=0;X-ut<=0&&(kt=-ft*(X-ut),kt>nt?(ot=!0,st=lt,Q=kt):kt>J&&(st=lt,Q=nt)),kt<=nt&&(Q=nt)}else et=K,Q=nt;var Lt=Array(v.length);for(f=0;f0?(F="v",O=L>0?Math.min(T,u):Math.min(u)):L>0?(F="h",O=Math.min(T)):O=0;if(!O){n.visible=!1;return}n._length=O;var P=m("orientation",F);n._hasPreCompStats?P==="v"&&L===0?(m("x0",0),m("dx",1)):P==="h"&&k===0&&(m("y0",0),m("dy",1)):P==="v"&&L===0?m("x0"):P==="h"&&k===0&&m("y0"),A.getComponentMethod("calendars","handleTraceDefaults")(s,n,["x","y"],x)}function o(s,n,m,x){var f=x.prefix,v=S.coerce2(s,n,c,"marker.outliercolor"),l=m("marker.line.outliercolor"),h="outliers";n._hasPreCompStats?h="all":(v||l)&&(h="suspectedoutliers");var d=m(f+"points",h);d?(m("jitter",d==="all"?.3:0),m("pointpos",d==="all"?-1.5:0),m("marker.symbol"),m("marker.opacity"),m("marker.size"),m("marker.angle"),m("marker.color",n.line.color),m("marker.line.color"),m("marker.line.width"),d==="suspectedoutliers"&&(m("marker.line.outliercolor",n.marker.color),m("marker.line.outlierwidth")),m("selected.marker.color"),m("unselected.marker.color"),m("selected.marker.size"),m("unselected.marker.size"),m("text"),m("hovertext")):delete n.marker;var b=m("hoveron");(b==="all"||b.indexOf("points")!==-1)&&m("hovertemplate"),S.coerceSelectionMarkerOpacity(n,m)}function a(s,n){var m,x;function f(h){return S.coerce(x._input,x,c,h)}for(var v=0;vb.lo&&(P.so=!0)}return g});d.enter().append("path").classed("point",!0),d.exit().remove(),d.call(t.translatePoints,m,x)}function r(o,a,s,n){var m=a.val,x=a.pos,f=!!x.rangebreaks,v=n.bPos,l=n.bPosPxOffset||0,h=s.boxmean||(s.meanline||{}).visible,d,b;Array.isArray(n.bdPos)?(d=n.bdPos[0],b=n.bdPos[1]):(d=n.bdPos,b=n.bdPos);var M=o.selectAll("path.mean").data(s.type==="box"&&s.boxmean||s.type==="violin"&&s.box.visible&&s.meanline.visible?A.identity:[]);M.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),M.exit().remove(),M.each(function(g){var k=x.c2l(g.pos+v,!0),L=x.l2p(k-d)+l,u=x.l2p(k+b)+l,T=f?(L+u)/2:x.l2p(k)+l,C=m.c2p(g.mean,!0),_=m.c2p(g.mean-g.sd,!0),F=m.c2p(g.mean+g.sd,!0);s.orientation==="h"?S.select(this).attr("d","M"+C+","+L+"V"+u+(h==="sd"?"m0,0L"+_+","+T+"L"+C+","+L+"L"+F+","+T+"Z":"")):S.select(this).attr("d","M"+L+","+C+"H"+u+(h==="sd"?"m0,0L"+T+","+_+"L"+L+","+C+"L"+T+","+F+"Z":""))})}tt.exports={plot:p,plotBoxAndWhiskers:c,plotPoints:i,plotBoxMean:r}}),72488:(function(tt){tt.exports=function(G,e){var S=G.cd,A=G.xaxis,t=G.yaxis,E=[],w,p;if(e===!1)for(w=0;w=10)return null;for(var w=1/0,p=-1/0,c=t.length,i=0;i0?Math.floor:Math.ceil,B=F>0?Math.ceil:Math.floor,U=F>0?Math.min:Math.max,P=F>0?Math.max:Math.min,N=j(C+O),V=B(_-O);s=T(C);var Y=[[s]];for(p=N;p*F=0;t--)E[r-t]=G[o][t],w[r-t]=e[o][t];for(p.push({x:E,y:w,bicubic:c}),t=o,E=[],w=[];t>=0;t--)E[o-t]=G[t][0],w[o-t]=e[t][0];return p.push({x:E,y:w,bicubic:i}),p}}),4753:(function(tt,G,e){var S=e(29714),A=e(93049).extendFlat;tt.exports=function(t,E,w){var p,c,i,r,o,a,s,n,m,x,f,v,l,h,d=t["_"+E],b=t[E+"axis"],M=b._gridlines=[],g=b._minorgridlines=[],k=b._boundarylines=[],L=t["_"+w],u=t[w+"axis"];b.tickmode==="array"&&(b.tickvals=d.slice());var T=t._xctrl,C=t._yctrl,_=T[0].length,F=T.length,O=t._a.length,j=t._b.length;S.prepTicks(b),b.tickmode==="array"&&delete b.tickvals;var B=b.smoothing?3:1;function U(N){var V,Y,K,nt,ft,ct,J,et,Q,Z,st,ot,rt=[],X=[],ut={};if(E==="b")for(Y=t.b2j(N),K=Math.floor(Math.max(0,Math.min(j-2,Y))),nt=Y-K,ut.length=j,ut.crossLength=O,ut.xy=function(lt){return t.evalxy([],lt,Y)},ut.dxy=function(lt,yt){return t.dxydi([],lt,K,yt,nt)},V=0;V0&&(Q=t.dxydi([],V-1,K,0,nt),rt.push(ft[0]+Q[0]/3),X.push(ft[1]+Q[1]/3),Z=t.dxydi([],V-1,K,1,nt),rt.push(et[0]-Z[0]/3),X.push(et[1]-Z[1]/3)),rt.push(et[0]),X.push(et[1]),ft=et;else for(V=t.a2i(N),ct=Math.floor(Math.max(0,Math.min(O-2,V))),J=V-ct,ut.length=O,ut.crossLength=j,ut.xy=function(lt){return t.evalxy([],V,lt)},ut.dxy=function(lt,yt){return t.dxydj([],ct,lt,J,yt)},Y=0;Y0&&(st=t.dxydj([],ct,Y-1,J,0),rt.push(ft[0]+st[0]/3),X.push(ft[1]+st[1]/3),ot=t.dxydj([],ct,Y-1,J,1),rt.push(et[0]-ot[0]/3),X.push(et[1]-ot[1]/3)),rt.push(et[0]),X.push(et[1]),ft=et;return ut.axisLetter=E,ut.axis=b,ut.crossAxis=u,ut.value=N,ut.constvar=w,ut.index=n,ut.x=rt,ut.y=X,ut.smoothing=u.smoothing,ut}function P(N){var V,Y,K,nt,ft,ct=[],J=[],et={};if(et.length=d.length,et.crossLength=L.length,E==="b")for(K=Math.max(0,Math.min(j-2,N)),ft=Math.min(1,Math.max(0,N-K)),et.xy=function(Q){return t.evalxy([],Q,N)},et.dxy=function(Q,Z){return t.dxydi([],Q,K,Z,ft)},V=0;V<_;V++)ct[V]=T[N*B][V],J[V]=C[N*B][V];else for(Y=Math.max(0,Math.min(O-2,N)),nt=Math.min(1,Math.max(0,N-Y)),et.xy=function(Q){return t.evalxy([],N,Q)},et.dxy=function(Q,Z){return t.dxydj([],Y,Q,nt,Z)},V=0;Vd.length-1)&&M.push(A(P(c),{color:b.gridcolor,width:b.gridwidth,dash:b.griddash}));for(n=a;nd.length-1)&&!(f<0||f>d.length-1))for(v=d[i],l=d[f],p=0;pd[d.length-1])&&g.push(A(U(x),{color:b.minorgridcolor,width:b.minorgridwidth,dash:b.minorgriddash})));b.startline&&k.push(A(P(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&k.push(A(P(d.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(r=5e-15,o=[Math.floor((d[d.length-1]-b.tick0)/b.dtick*(1+r)),Math.ceil((d[0]-b.tick0)/b.dtick/(1+r))].sort(function(N,V){return N-V}),a=o[0],s=o[1],n=a;n<=s;n++)m=b.tick0+b.dtick*n,M.push(A(U(m),{color:b.gridcolor,width:b.gridwidth,dash:b.griddash}));for(n=a-1;nd[d.length-1])&&g.push(A(U(x),{color:b.minorgridcolor,width:b.minorgridwidth,dash:b.minorgriddash}));b.startline&&k.push(A(U(d[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&&k.push(A(U(d[d.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}}),93923:(function(tt,G,e){var S=e(29714),A=e(93049).extendFlat;tt.exports=function(t,E){var w,p,c,i,r,o=E._labels=[],a=E._gridlines;for(w=0;wt.length&&(A=A.slice(0,t.length)):A=[],w=0;w90&&(s-=180,c=-c),{angle:s,flip:c,p:G.c2p(A,e,S),offsetMultplier:i}}}),87947:(function(tt,G,e){var S=e(45568),A=e(62203),t=e(6720),E=e(3685),w=e(33163),p=e(30635),c=e(34809),i=c.strRotate,r=c.strTranslate,o=e(4530);tt.exports=function(l,h,d,b){var M=l._context.staticPlot,g=h.xaxis,k=h.yaxis,L=l._fullLayout._clips;c.makeTraceGroups(b,d,"trace").each(function(u){var T=S.select(this),C=u[0],_=C.trace,F=_.aaxis,O=_.baxis,j=c.ensureSingle(T,"g","minorlayer"),B=c.ensureSingle(T,"g","majorlayer"),U=c.ensureSingle(T,"g","boundarylayer"),P=c.ensureSingle(T,"g","labellayer");T.style("opacity",_.opacity),s(g,k,B,F,"a",F._gridlines,!0,M),s(g,k,B,O,"b",O._gridlines,!0,M),s(g,k,j,F,"a",F._minorgridlines,!0,M),s(g,k,j,O,"b",O._minorgridlines,!0,M),s(g,k,U,F,"a-boundary",F._boundarylines,M),s(g,k,U,O,"b-boundary",O._boundarylines,M),m(l,P,_,C,g,k,n(l,g,k,_,C,P,F._labels,"a-label"),n(l,g,k,_,C,P,O._labels,"b-label")),a(_,C,L,g,k)})};function a(l,h,d,b,M){var g,k,L,u,T=d.select("#"+l._clipPathId);T.size()||(T=d.append("clipPath").classed("carpetclip",!0));var C=c.ensureSingle(T,"path","carpetboundary"),_=h.clipsegments,F=[];for(u=0;u<_.length;u++)g=_[u],k=t([],g.x,b.c2p),L=t([],g.y,M.c2p),F.push(E(k,L,g.bicubic));var O="M"+F.join("L")+"Z";T.attr("id",l._clipPathId),C.attr("d",O)}function s(l,h,d,b,M,g,k){var L="const-"+M+"-lines",u=d.selectAll("."+L).data(g);u.enter().append("path").classed(L,!0).style("vector-effect",k?"none":"non-scaling-stroke"),u.each(function(T){var C=T,_=C.x,F=C.y,O="M"+E(t([],_,l.c2p),t([],F,h.c2p),C.smoothing);S.select(this).attr("d",O).style("stroke-width",C.width).style("stroke",C.color).style("stroke-dasharray",A.dashStyle(C.dash,C.width)).style("fill","none")}),u.exit().remove()}function n(l,h,d,b,M,g,k,L){var u=g.selectAll("text."+L).data(k);u.enter().append("text").classed(L,!0);var T=0,C={};return u.each(function(_,F){var O;if(_.axis.tickangle==="auto")O=w(b,h,d,_.xy,_.dxy);else{var j=(_.axis.tickangle+180)*Math.PI/180;O=w(b,h,d,_.xy,[Math.cos(j),Math.sin(j)])}F||(C={angle:O.angle,flip:O.flip});var B=(_.endAnchor?-1:1)*O.flip,U=S.select(this).attr({"text-anchor":B>0?"start":"end","data-notex":1}).call(A.font,_.font).text(_.text).call(p.convertToTspans,l),P=A.bBox(this);U.attr("transform",r(O.p[0],O.p[1])+i(O.angle)+r(_.axis.labelpadding*B,P.height*.3)),T=Math.max(T,P.width+_.axis.labelpadding)}),u.exit().remove(),C.maxExtent=T,C}function m(l,h,d,b,M,g,k,L){var u,T,C,_,F=c.aggNums(Math.min,null,d.a),O=c.aggNums(Math.max,null,d.a),j=c.aggNums(Math.min,null,d.b),B=c.aggNums(Math.max,null,d.b);u=.5*(F+O),T=j,C=d.ab2xy(u,T,!0),_=d.dxyda_rough(u,T),k.angle===void 0&&c.extendFlat(k,w(d,M,g,C,d.dxydb_rough(u,T))),v(l,h,d,b,C,_,d.aaxis,M,g,k,"a-title"),u=F,T=.5*(j+B),C=d.ab2xy(u,T,!0),_=d.dxydb_rough(u,T),L.angle===void 0&&c.extendFlat(L,w(d,M,g,C,d.dxyda_rough(u,T))),v(l,h,d,b,C,_,d.baxis,M,g,L,"b-title")}var x=o.LINE_SPACING,f=(1-o.MID_SHIFT)/x+1;function v(l,h,d,b,M,g,k,L,u,T,C){var _=[];k.title.text&&_.push(k.title.text);var F=h.selectAll("text."+C).data(_),O=T.maxExtent;F.enter().append("text").classed(C,!0),F.each(function(){var j=w(d,L,u,M,g);["start","both"].indexOf(k.showticklabels)===-1&&(O=0);var B=k.title.font.size;O+=B+k.title.offset;var U=(T.angle+(T.flip<0?180:0)-j.angle+450)%360,P=U>90&&U<270,N=S.select(this);N.text(k.title.text).call(p.convertToTspans,l),P&&(O=(-p.lineCount(N)+f)*x*B-O),N.attr("transform",r(j.p[0],j.p[1])+i(j.angle)+r(0,O)).attr("text-anchor","middle").call(A.font,k.title.font)}),F.exit().remove()}}),76842:(function(tt,G,e){var S=e(45923),A=e(98813).findBin,t=e(57075),E=e(13828),w=e(39848),p=e(41839);tt.exports=function(c){var i=c._a,r=c._b,o=i.length,a=r.length,s=c.aaxis,n=c.baxis,m=i[0],x=i[o-1],f=r[0],v=r[a-1],l=i[i.length-1]-i[0],h=r[r.length-1]-r[0],d=l*S.RELATIVE_CULL_TOLERANCE,b=h*S.RELATIVE_CULL_TOLERANCE;m-=d,x+=d,f-=b,v+=b,c.isVisible=function(M,g){return M>m&&Mf&&gx||gv},c.setScale=function(){var M=c._x,g=c._y,k=t(c._xctrl,c._yctrl,M,g,s.smoothing,n.smoothing);c._xctrl=k[0],c._yctrl=k[1],c.evalxy=E([c._xctrl,c._yctrl],o,a,s.smoothing,n.smoothing),c.dxydi=w([c._xctrl,c._yctrl],s.smoothing,n.smoothing),c.dxydj=p([c._xctrl,c._yctrl],s.smoothing,n.smoothing)},c.i2a=function(M){var g=Math.max(0,Math.floor(M[0]),o-2),k=M[0]-g;return(1-k)*i[g]+k*i[g+1]},c.j2b=function(M){var g=Math.max(0,Math.floor(M[1]),o-2),k=M[1]-g;return(1-k)*r[g]+k*r[g+1]},c.ij2ab=function(M){return[c.i2a(M[0]),c.j2b(M[1])]},c.a2i=function(M){var g=Math.max(0,Math.min(A(M,i),o-2)),k=i[g],L=i[g+1];return Math.max(0,Math.min(o-1,g+(M-k)/(L-k)))},c.b2j=function(M){var g=Math.max(0,Math.min(A(M,r),a-2)),k=r[g],L=r[g+1];return Math.max(0,Math.min(a-1,g+(M-k)/(L-k)))},c.ab2ij=function(M){return[c.a2i(M[0]),c.b2j(M[1])]},c.i2c=function(M,g){return c.evalxy([],M,g)},c.ab2xy=function(M,g,k){if(!k&&(Mi[o-1]|gr[a-1]))return[!1,!1];var L=c.a2i(M),u=c.b2j(g),T=c.evalxy([],L,u);if(k){var C=0,_=0,F=[],O,j,B,U;Mi[o-1]?(O=o-2,j=1,C=(M-i[o-1])/(i[o-1]-i[o-2])):(O=Math.max(0,Math.min(o-2,Math.floor(L))),j=L-O),gr[a-1]?(B=a-2,U=1,_=(g-r[a-1])/(r[a-1]-r[a-2])):(B=Math.max(0,Math.min(a-2,Math.floor(u))),U=u-B),C&&(c.dxydi(F,O,B,j,U),T[0]+=F[0]*C,T[1]+=F[1]*C),_&&(c.dxydj(F,O,B,j,U),T[0]+=F[0]*_,T[1]+=F[1]*_)}return T},c.c2p=function(M,g,k){return[g.c2p(M[0]),k.c2p(M[1])]},c.p2x=function(M,g,k){return[g.p2c(M[0]),k.p2c(M[1])]},c.dadi=function(M){var g=Math.max(0,Math.min(i.length-2,M));return i[g+1]-i[g]},c.dbdj=function(M){var g=Math.max(0,Math.min(r.length-2,M));return r[g+1]-r[g]},c.dxyda=function(M,g,k,L){var u=c.dxydi(null,M,g,k,L),T=c.dadi(M,k);return[u[0]/T,u[1]/T]},c.dxydb=function(M,g,k,L){var u=c.dxydj(null,M,g,k,L),T=c.dbdj(g,L);return[u[0]/T,u[1]/T]},c.dxyda_rough=function(M,g,k){var L=l*(k||.1),u=c.ab2xy(M+L,g,!0),T=c.ab2xy(M-L,g,!0);return[(u[0]-T[0])*.5/L,(u[1]-T[1])*.5/L]},c.dxydb_rough=function(M,g,k){var L=h*(k||.1),u=c.ab2xy(M,g+L,!0),T=c.ab2xy(M,g-L,!0);return[(u[0]-T[0])*.5/L,(u[1]-T[1])*.5/L]},c.dpdx=function(M){return M._m},c.dpdy=function(M){return M._m}}}),13007:(function(tt,G,e){var S=e(34809);tt.exports=function(A,t,E){var w,p,c,i=[],r=[],o=A[0].length,a=A.length;function s(Y,K){var nt=0,ft,ct=0;return Y>0&&(ft=A[K][Y-1])!==void 0&&(ct++,nt+=ft),Y0&&(ft=A[K-1][Y])!==void 0&&(ct++,nt+=ft),K0&&p0&&wL);return S.log("Smoother converged to",u,"after",C,"iterations"),A}}),10820:(function(tt,G,e){var S=e(34809).isArray1D;tt.exports=function(A,t,E){var w=E("x"),p=w&&w.length,c=E("y"),i=c&&c.length;if(!p&&!i)return!1;if(t._cheater=!w,(!p||S(w))&&(!i||S(c))){var r=p?w.length:1/0;i&&(r=Math.min(r,c.length)),t.a&&t.a.length&&(r=Math.min(r,t.a.length)),t.b&&t.b.length&&(r=Math.min(r,t.b.length)),t._length=r}else t._length=null;return!0}}),92802:(function(tt,G,e){var S=e(3208).rb,A=e(6893),t=e(87163),E=e(9829),w=e(10229).defaultLine,p=e(93049).extendFlat,c=A.marker.line;tt.exports=p({locations:{valType:"data_array",editType:"calc"},locationmode:A.locationmode,z:{valType:"data_array",editType:"calc"},geojson:p({},A.geojson,{}),featureidkey:A.featureidkey,text:p({},A.text,{}),hovertext:p({},A.hovertext,{}),marker:{line:{color:p({},c.color,{dflt:w}),width:p({},c.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:A.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:A.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:p({},E.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:S(),showlegend:p({},E.showlegend,{dflt:!1})},t("",{cLetter:"z",editTypeOverride:"calc"}))}),12702:(function(tt,G,e){var S=e(10721),A=e(63821).BADNUM,t=e(28379),E=e(99203),w=e(48861);function p(c){return c&&typeof c=="string"}tt.exports=function(c,i){for(var r=i._length,o=Array(r),a=i.geojson?function(f){return p(f)||S(f)}:p,s=0;s")}}}),58075:(function(tt,G,e){tt.exports={attributes:e(92802),supplyDefaults:e(51893),colorbar:e(12431),calc:e(12702),calcGeoJSON:e(4700).calcGeoJSON,plot:e(4700).plot,style:e(59342).style,styleOnSelect:e(59342).styleOnSelect,hoverPoints:e(94125),eventData:e(38414),selectPoints:e(43727),moduleType:"trace",name:"choropleth",basePlotModule:e(47544),categories:["geo","noOpacity","showLegend"],meta:{}}}),4700:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(3994),E=e(11577).getTopojsonFeatures,w=e(32919).findExtremes,p=e(59342).style;function c(r,o,a){var s=o.layers.backplot.select(".choroplethlayer");A.makeTraceGroups(s,a,"trace choropleth").each(function(n){var m=S.select(this).selectAll("path.choroplethlocation").data(A.identity);m.enter().append("path").classed("choroplethlocation",!0),m.exit().remove(),p(r,n)})}function i(r,o){for(var a=r[0].trace,s=o[a.geo],n=s._subplot,m=a.locationmode,x=a._length,f=m==="geojson-id"?t.extractTraceFeature(r):E(a,n.topojson),v=[],l=[],h=0;h=0;E--){var w=t[E].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var p=E+1;p=0;i--)p.removeLayer(c[i][1])},w.dispose=function(){var p=this.subplot.map;this._removeLayers(),p.removeSource(this.sourceId)},tt.exports=function(p,c){var i=c[0].trace,r=new E(p,i.uid),o=r.sourceId,a=S(c),s=r.below=p.belowLookup["trace-"+i.uid];return p.map.addSource(o,{type:"geojson",data:a.geojson}),r._addLayers(a,s),c[0].trace._glTrace=r,r}}),86227:(function(tt,G,e){var S=e(92802),A=e(87163),t=e(3208).rb,E=e(9829),w=e(93049).extendFlat;tt.exports=w({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:w({},S.featureidkey,{}),below:{valType:"string",editType:"plot"},text:S.text,hovertext:S.hovertext,marker:{line:{color:w({},S.marker.line.color,{editType:"plot"}),width:w({},S.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:w({},S.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:w({},S.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:w({},S.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:S.hoverinfo,hovertemplate:t({},{keys:["properties"]}),showlegend:w({},E.showlegend,{dflt:!1})},A("",{cLetter:"z",editTypeOverride:"calc"}))}),51335:(function(tt,G,e){var S=e(10721),A=e(34809),t=e(88856),E=e(62203),w=e(39532).makeBlank,p=e(3994);function c(r){var o=r[0].trace,a=o.visible===!0&&o._length!==0,s={layout:{visibility:"none"},paint:{}},n={layout:{visibility:"none"},paint:{}},m=o._opts={fill:s,line:n,geojson:w()};if(!a)return m;var x=p.extractTraceFeature(r);if(!x)return m;var f=t.makeColorScaleFuncFromTrace(o),v=o.marker,l=v.line||{},h;A.isArrayOrTypedArray(v.opacity)&&(h=function(T){var C=T.mo;return S(C)?+A.constrain(C,0,1):0});var d;A.isArrayOrTypedArray(l.color)&&(d=function(T){return T.mlc});var b;A.isArrayOrTypedArray(l.width)&&(b=function(T){return T.mlw});for(var M=0;M=0;E--){var w=t[E].id;if(typeof w=="string"&&w.indexOf("water")===0){for(var p=E+1;p=0;i--)p.removeLayer(c[i][1])},w.dispose=function(){var p=this.subplot.map;this._removeLayers(),p.removeSource(this.sourceId)},tt.exports=function(p,c){var i=c[0].trace,r=new E(p,i.uid),o=r.sourceId,a=S(c),s=r.below=p.belowLookup["trace-"+i.uid];return p.map.addSource(o,{type:"geojson",data:a.geojson}),r._addLayers(a,s),c[0].trace._glTrace=r,r}}),49865:(function(tt,G,e){var S=e(87163),A=e(80712).axisHoverFormat,t=e(3208).rb,E=e(42450),w=e(9829),p=e(93049).extendFlat,c={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:t({editType:"calc"},{keys:["norm"]}),uhoverformat:A("u",1),vhoverformat:A("v",1),whoverformat:A("w",1),xhoverformat:A("x"),yhoverformat:A("y"),zhoverformat:A("z"),showlegend:p({},w.showlegend,{dflt:!1})};p(c,S("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"})),["opacity","lightposition","lighting"].forEach(function(i){c[i]=E[i]}),c.hoverinfo=p({},w.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),c.transforms=void 0,tt.exports=c}),93805:(function(tt,G,e){var S=e(28379);tt.exports=function(A,t){for(var E=t.u,w=t.v,p=t.w,c=Math.min(t.x.length,t.y.length,t.z.length,E.length,w.length,p.length),i=-1/0,r=1/0,o=0;ow.level||w.starts.length&&E===w.level)}break;case"constraint":if(S.prefixBoundary=!1,S.edgepaths.length)return;var p=S.x.length,c=S.y.length,i=-1/0,r=1/0;for(t=0;t":o>i&&(S.prefixBoundary=!0);break;case"<":(oi||S.starts.length&&s===r)&&(S.prefixBoundary=!0);break;case"][":a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]),ai&&(S.prefixBoundary=!0);break}break}}}),92697:(function(tt,G,e){var S=e(88856),A=e(16438),t=e(48715);function E(w,p,c){var i=p.contours,r=p.line,o=i.size||1,a=i.coloring,s=A(p,{isColorbar:!0});if(a==="heatmap"){var n=S.extractOpts(p);c._fillgradient=n.reversescale?S.flipScale(n.colorscale):n.colorscale,c._zrange=[n.min,n.max]}else a==="fill"&&(c._fillcolor=s);c._line={color:a==="lines"?s:r.color,width:i.showlines===!1?0:r.width,dash:r.dash},c._levels={start:i.start,end:t(i),size:o}}tt.exports={min:"zmin",max:"zmax",calc:E}}),53156:(function(tt){tt.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}}),29503:(function(tt,G,e){var S=e(10721),A=e(20576),t=e(78766),E=t.addOpacity,w=t.opacity,p=e(20726),c=e(34809).isArrayOrTypedArray,i=p.CONSTRAINT_REDUCTION,r=p.COMPARISON_OPS2;tt.exports=function(a,s,n,m,x,f){var v=s.contours,l,h,d,b=n("contours.operation");v._operation=i[b],o(n,v),b==="="?l=v.showlines=!0:(l=n("contours.showlines"),d=n("fillcolor",E((a.line||{}).color||x,.5))),l&&(h=n("line.color",d&&w(d)?E(s.fillcolor,1):x),n("line.width",2),n("line.dash")),n("line.smoothing"),A(n,m,h,f)};function o(a,s){var n;r.indexOf(s.operation)===-1?(a("contours.value",[0,1]),c(s.value)?s.value.length>2?s.value=s.value.slice(2):s.length===0?s.value=[0,1]:s.length<2?(n=parseFloat(s.value[0]),s.value=[n,n+1]):s.value=[parseFloat(s.value[0]),parseFloat(s.value[1])]:S(s.value)&&(n=parseFloat(s.value),s.value=[n,n+1])):(a("contours.value",0),S(s.value)||(c(s.value)?s.value=parseFloat(s.value[0]):s.value=0))}}),22783:(function(tt,G,e){var S=e(20726),A=e(10721);tt.exports={"[]":E("[]"),"][":E("]["),">":w(">"),"<":w("<"),"=":w("=")};function t(p,c){var i=Array.isArray(c),r;function o(a){return A(a)?+a:null}return S.COMPARISON_OPS2.indexOf(p)===-1?S.INTERVAL_OPS.indexOf(p)===-1?S.SET_OPS.indexOf(p)!==-1&&(r=i?c.map(o):[o(c)]):r=i?[o(c[0]),o(c[1])]:[o(c),o(c)]:r=o(i?c[0]:c),r}function E(p){return function(c){c=t(p,c);var i=Math.min(c[0],c[1]),r=Math.max(c[0],c[1]);return{start:i,end:r,size:r-i}}}function w(p){return function(c){return c=t(p,c),{start:c,end:1/0,size:1/0}}}}),47495:(function(tt){tt.exports=function(G,e,S,A){var t=A("contours.start"),E=A("contours.end"),w=t===!1||E===!1,p=S("contours.size");((w?e.autocontour=!0:S("autocontour",!1))||!p)&&S("ncontours")}}),1999:(function(tt,G,e){var S=e(34809);tt.exports=function(t,E){var w,p,c,i=function(a){return a.reverse()},r=function(a){return a};switch(E){case"=":case"<":return t;case">":for(t.length!==1&&S.warn("Contour data invalid for the specified inequality operation."),p=t[0],w=0;w1e3){S.warn("Too many contours, clipping at 1000",E);break}return r}}),48715:(function(tt){tt.exports=function(G){return G.end+G.size/1e6}}),27657:(function(tt,G,e){var S=e(34809),A=e(53156);tt.exports=function(i,r,o){var a,s,n,m,x;for(r||(r=.01),o||(o=.01),n=0;n20?(m=A.CHOOSESADDLE[m][(x[0]||x[1])<0?0:1],i.crossings[n]=A.SADDLEREMAINDER[m]):delete i.crossings[n],x=A.NEWDELTA[m],!x){S.log("Found bad marching index:",m,r,i.level);break}f.push(c(i,r,x)),r[0]+=x[0],r[1]+=x[1],n=r.join(","),t(f[f.length-1],f[f.length-2],a,s)&&f.pop();var M=x[0]&&(r[0]<0||r[0]>l-2)||x[1]&&(r[1]<0||r[1]>v-2);if(r[0]===h[0]&&r[1]===h[1]&&x[0]===d[0]&&x[1]===d[1]||o&&M)break;m=i.crossings[n]}b===1e4&&S.log("Infinite loop in contour?");var g=t(f[0],f[f.length-1],a,s),k=0,L=.2*i.smoothing,u=[],T=0,C,_,F,O,j,B,U,P,N,V,Y;for(b=1;b=T;b--)if(C=u[b],C=T&&C+u[_]P&&N--,i.edgepaths[N]=Y.concat(f,V));break}ct||(i.edgepaths[P]=f.concat(V))}for(P=0;P20&&r?i===208||i===1114?a=o[0]===0?1:-1:s=o[1]===0?1:-1:A.BOTTOMSTART.indexOf(i)===-1?A.LEFTSTART.indexOf(i)===-1?A.TOPSTART.indexOf(i)===-1?a=-1:s=-1:a=1:s=1,[a,s]}function c(i,r,o){var a=r[0]+Math.max(o[0],0),s=r[1]+Math.max(o[1],0),n=i.z[s][a],m=i.xaxis,x=i.yaxis;if(o[1]){var f=(i.level-n)/(i.z[s][a+1]-n),v=(f===1?0:(1-f)*m.c2l(i.x[a]))+(f===0?0:f*m.c2l(i.x[a+1]));return[m.c2p(m.l2c(v),!0),x.c2p(i.y[s],!0),a+f,s]}else{var l=(i.level-n)/(i.z[s+1][a]-n),h=(l===1?0:(1-l)*x.c2l(i.y[s]))+(l===0?0:l*x.c2l(i.y[s+1]));return[m.c2p(i.x[a],!0),x.c2p(x.l2c(h),!0),a,s+l]}}}),29815:(function(tt,G,e){var S=e(78766),A=e(93125);tt.exports=function(t,E,w,p,c){c||(c={}),c.isContour=!0;var i=A(t,E,w,p,c);return i&&i.forEach(function(r){var o=r.trace;o.contours.type==="constraint"&&(o.fillcolor&&S.opacity(o.fillcolor)?r.color=S.addOpacity(o.fillcolor,1):o.contours.showlines&&S.opacity(o.line.color)&&(r.color=S.addOpacity(o.line.color,1)))}),i}}),91405:(function(tt,G,e){tt.exports={attributes:e(52240),supplyDefaults:e(57543),calc:e(40352),plot:e(8850).plot,style:e(1328),colorbar:e(92697),hoverPoints:e(29815),moduleType:"trace",name:"contour",basePlotModule:e(37703),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}}),20576:(function(tt,G,e){var S=e(34809);tt.exports=function(A,t,E,w){if(w||(w={}),A("contours.showlabels")){var p=t.font;S.coerceFont(A,"contours.labelfont",p,{overrideDflt:{color:E}}),A("contours.labelformat")}w.hasHover!==!1&&A("zhoverformat")}}),16438:(function(tt,G,e){var S=e(45568),A=e(88856),t=e(48715);tt.exports=function(E){var w=E.contours,p=w.start,c=t(w),i=w.size||1,r=Math.floor((c-p)/i)+1,o=w.coloring==="lines"?0:1,a=A.extractOpts(E);isFinite(i)||(i=1,r=1);var s=a.reversescale?A.flipScale(a.colorscale):a.colorscale,n=s.length,m=Array(n),x=Array(n),f,v,l=a.min,h=a.max;if(w.coloring==="heatmap"){for(v=0;v=h)&&(p<=l&&(p=l),c>=h&&(c=h),r=Math.floor((c-p)/i)+1,o=0),v=0;vl&&(m.unshift(l),x.unshift(x[0])),m[m.length-1]t?0:1)+(E[0][1]>t?0:2)+(E[1][1]>t?0:4)+(E[1][0]>t?0:8);return w===5||w===10?t>(E[0][0]+E[0][1]+E[1][0]+E[1][1])/4?w===5?713:1114:w===5?104:208:w===15?0:w}}),8850:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(62203),E=e(88856),w=e(30635),p=e(29714),c=e(19091),i=e(19236),r=e(83545),o=e(27657),a=e(86828),s=e(1999),n=e(49886),m=e(53156),x=m.LABELOPTIMIZER;G.plot=function(g,k,L,u){var T=k.xaxis,C=k.yaxis;A.makeTraceGroups(u,L,"contour").each(function(_){var F=S.select(this),O=_[0],j=O.trace,B=O.x,U=O.y,P=j.contours,N=a(P,k,O),V=A.ensureSingle(F,"g","heatmapcoloring"),Y=[];P.coloring==="heatmap"&&(Y=[_]),i(g,k,Y,V),r(N),o(N);var K=T.c2p(B[0],!0),nt=T.c2p(B[B.length-1],!0),ft=C.c2p(U[0],!0),ct=C.c2p(U[U.length-1],!0),J=[[K,ct],[nt,ct],[nt,ft],[K,ft]],et=N;P.type==="constraint"&&(et=s(N,P._operation)),f(F,J,P),v(F,et,J,P),h(F,N,g,O,P),b(F,k,g,O,J)})};function f(g,k,L){var u=A.ensureSingle(g,"g","contourbg").selectAll("path").data(L.coloring==="fill"?[0]:[]);u.enter().append("path"),u.exit().remove(),u.attr("d","M"+k.join("L")+"Z").style("stroke","none")}function v(g,k,L,u){var T=u.coloring==="fill"||u.type==="constraint"&&u._operation!=="=",C="M"+L.join("L")+"Z";T&&n(k,u);var _=A.ensureSingle(g,"g","contourfill").selectAll("path").data(T?k:[]);_.enter().append("path"),_.exit().remove(),_.each(function(F){var O=(F.prefixBoundary?C:"")+l(F,L);O?S.select(this).attr("d",O).style("stroke","none"):S.select(this).remove()})}function l(g,k){var L="",u=0,T=g.edgepaths.map(function(nt,ft){return ft}),C=!0,_,F,O,j,B,U;function P(nt){return Math.abs(nt[1]-k[0][1])<.01}function N(nt){return Math.abs(nt[1]-k[2][1])<.01}function V(nt){return Math.abs(nt[0]-k[0][0])<.01}function Y(nt){return Math.abs(nt[0]-k[2][0])<.01}for(;T.length;){for(U=t.smoothopen(g.edgepaths[u],g.smoothing),L+=C?U:U.replace(/^M/,"L"),T.splice(T.indexOf(u),1),_=g.edgepaths[u][g.edgepaths[u].length-1],j=-1,O=0;O<4;O++){if(!_){A.log("Missing end?",u,g);break}for(P(_)&&!Y(_)?F=k[1]:V(_)?F=k[0]:N(_)?F=k[3]:Y(_)&&(F=k[2]),B=0;B=0&&(F=K,j=B):Math.abs(_[1]-F[1])<.01?Math.abs(_[1]-K[1])<.01&&(K[0]-_[0])*(F[0]-K[0])>=0&&(F=K,j=B):A.log("endpt to newendpt is not vert. or horz.",_,F,K)}if(_=F,j>=0)break;L+="L"+F}if(j===g.edgepaths.length){A.log("unclosed perimeter path");break}u=j,C=T.indexOf(u)===-1,C&&(u=T[0],L+="Z")}for(u=0;ux.MAXCOST*2)break;P&&(F/=2),_=j-F/2,O=_+F*1.5}if(U<=x.MAXCOST)return B};function d(g,k,L,u){var T=k.width/2,C=k.height/2,_=g.x,F=g.y,O=g.theta,j=Math.cos(O)*T,B=Math.sin(O)*T,U=(_>u.center?u.right-_:_-u.left)/(j+Math.abs(Math.sin(O)*C)),P=(F>u.middle?u.bottom-F:F-u.top)/(Math.abs(B)+Math.cos(O)*C);if(U<1||P<1)return 1/0;var N=x.EDGECOST*(1/(U-1)+1/(P-1));N+=x.ANGLECOST*O*O;for(var V=_-j,Y=F-B,K=_+j,nt=F+B,ft=0;ftp.end&&(p.start=p.end=(p.start+p.end)/2),E._input.contours||(E._input.contours={}),A.extendFlat(E._input.contours,{start:p.start,end:p.end,size:p.size}),E._input.autocontour=!0}else if(p.type!=="constraint"){var o=p.start,a=p.end,s=E._input.contours;o>a&&(p.start=s.start=a,a=p.end=s.end=o,o=p.start),!(p.size>0)&&(s.size=p.size=o===a?1:t(o,a,E.ncontours).dtick)}};function t(E,w,p){var c={type:"linear",range:[E,w]};return S.autoTicks(c,(w-E)/(p||15)),c}}),1328:(function(tt,G,e){var S=e(45568),A=e(62203),t=e(12774),E=e(16438);tt.exports=function(w){var p=S.select(w).selectAll("g.contour");p.style("opacity",function(c){return c[0].trace.opacity}),p.each(function(c){var i=S.select(this),r=c[0].trace,o=r.contours,a=r.line,s=o.size||1,n=o.start,m=o.type==="constraint",x=!m&&o.coloring==="lines",f=!m&&o.coloring==="fill",v=x||f?E(r):null;i.selectAll("g.contourlevel").each(function(d){S.select(this).selectAll("path").call(A.lineGroupStyle,a.width,x?v(d.level):a.color,a.dash)});var l=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(d){A.font(S.select(this),{weight:l.weight,style:l.style,variant:l.variant,textcase:l.textcase,lineposition:l.lineposition,shadow:l.shadow,family:l.family,size:l.size,color:l.color||(x?v(d.level):a.color)})}),m)i.selectAll("g.contourfill path").style("fill",r.fillcolor);else if(f){var h;i.selectAll("g.contourfill path").style("fill",function(d){return h===void 0&&(h=d.level),v(d.level+.5*s)}),h===void 0&&(h=n),i.selectAll("g.contourbg path").style("fill",v(h-.5*s))}}),t(w)}}),39889:(function(tt,G,e){var S=e(39356),A=e(20576);tt.exports=function(t,E,w,p,c){var i=w("contours.coloring"),r,o="";i==="fill"&&(r=w("contours.showlines")),r!==!1&&(i!=="lines"&&(o=w("line.color","#000")),w("line.width",.5),w("line.dash")),i!=="none"&&(t.showlegend!==!0&&(E.showlegend=!1),E._dfltShowLegend=!1,S(t,E,p,w,{prefix:"",cLetter:"z"})),w("line.smoothing"),A(w,p,o,c)}}),66365:(function(tt,G,e){var S=e(81658),A=e(52240),t=e(87163),E=e(93049).extendFlat,w=A.contours;tt.exports=E({carpet:{valType:"string",editType:"calc"},z:S.z,a:S.x,a0:S.x0,da:S.dx,b:S.y,b0:S.y0,db:S.dy,text:S.text,hovertext:S.hovertext,transpose:S.transpose,atype:S.xtype,btype:S.ytype,fillcolor:A.fillcolor,autocontour:A.autocontour,ncontours:A.ncontours,contours:{type:w.type,start:w.start,end:w.end,size:w.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:w.showlines,showlabels:w.showlabels,labelfont:w.labelfont,labelformat:w.labelformat,operation:w.operation,value:w.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:A.line.color,width:A.line.width,dash:A.line.dash,smoothing:A.line.smoothing,editType:"plot"},zorder:A.zorder,transforms:void 0},t("",{cLetter:"z",autoColorDflt:!1}))}),80849:(function(tt,G,e){var S=e(28379),A=e(34809),t=e(87869),E=e(93877),w=e(69295),p=e(78106),c=e(80924),i=e(50538),r=e(26571),o=e(62475);tt.exports=function(s,n){var m=n._carpetTrace=r(s,n);if(!(!m||!m.visible||m.visible==="legendonly")){if(!n.a||!n.b){var x=s.data[m.index],f=s.data[n.index];f.a||(f.a=x.a),f.b||(f.b=x.b),i(f,n,n._defaultColor,s._fullLayout)}var v=a(s,n);return o(n,n._z),v}};function a(s,n){var m=n._carpetTrace,x=m.aaxis,f=m.baxis,v,l,h,d,b,M,g;x._minDtick=0,f._minDtick=0,A.isArray1D(n.z)&&t(n,x,f,"a","b",["z"]),v=n._a=n._a||n.a,d=n._b=n._b||n.b,v=v?x.makeCalcdata(n,"_a"):[],d=d?f.makeCalcdata(n,"_b"):[],l=n.a0||0,h=n.da||1,b=n.b0||0,M=n.db||1,g=n._z=E(n._z||n.z,n.transpose),n._emptypoints=p(g),w(g,n._emptypoints);var k=A.maxRowLength(g),L={a:c(n,n.xtype==="scaled"?"":v,l,h,k,x),b:c(n,n.ytype==="scaled"?"":d,b,M,g.length,f),z:g};return n.contours.type==="levels"&&n.contours.coloring!=="none"&&S(s,n,{vals:g,containerStr:"",cLetter:"z"}),[L]}}),50538:(function(tt,G,e){var S=e(34809),A=e(86073),t=e(66365),E=e(29503),w=e(47495),p=e(39889);tt.exports=function(c,i,r,o){function a(n,m){return S.coerce(c,i,t,n,m)}function s(n){return S.coerce2(c,i,t,n)}if(a("carpet"),c.a&&c.b){if(!A(c,i,a,o,"a","b")){i.visible=!1;return}a("text"),a("contours.type")==="constraint"?E(c,i,a,o,r,{hasHover:!1}):(w(c,i,a,s),p(c,i,a,o,{hasHover:!1}))}else i._defaultColor=r,i._length=null;a("zorder")}}),34406:(function(tt,G,e){tt.exports={attributes:e(66365),supplyDefaults:e(50538),colorbar:e(92697),calc:e(80849),plot:e(71815),style:e(1328),moduleType:"trace",name:"contourcarpet",basePlotModule:e(37703),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}}),71815:(function(tt,G,e){var S=e(45568),A=e(6720),t=e(3685),E=e(62203),w=e(34809),p=e(83545),c=e(27657),i=e(8850),r=e(53156),o=e(1999),a=e(86828),s=e(49886),n=e(26571),m=e(94903);tt.exports=function(k,L,u,T){var C=L.xaxis,_=L.yaxis;w.makeTraceGroups(T,u,"contour").each(function(F){var O=S.select(this),j=F[0],B=j.trace,U=B._carpetTrace=n(k,B),P=k.calcdata[U.index][0];if(!U.visible||U.visible==="legendonly")return;var N=j.a,V=j.b,Y=B.contours,K=a(Y,L,j),nt=Y.type==="constraint",ft=Y._operation,ct=nt?ft==="="?"lines":"fill":Y.coloring;function J(lt){var yt=U.ab2xy(lt[0],lt[1],!0);return[C.c2p(yt[0]),_.c2p(yt[1])]}var et=[[N[0],V[V.length-1]],[N[N.length-1],V[V.length-1]],[N[N.length-1],V[0]],[N[0],V[0]]];p(K),c(K,(N[N.length-1]-N[0])*1e-8,(V[V.length-1]-V[0])*1e-8);var Q=K;Y.type==="constraint"&&(Q=o(K,ft)),x(K,J);var Z,st,ot,rt,X=[];for(rt=P.clipsegments.length-1;rt>=0;rt--)Z=P.clipsegments[rt],st=A([],Z.x,C.c2p),ot=A([],Z.y,_.c2p),st.reverse(),ot.reverse(),X.push(t(st,ot,Z.bicubic));var ut="M"+X.join("L")+"Z";b(O,P.clipsegments,C,_,nt,ct),M(B,O,C,_,Q,et,J,U,P,ct,ut),f(O,K,k,j,Y,L,U),E.setClipUrl(O,U._clipPathId,k)})};function x(k,L){var u,T,C,_,F,O,j,B,U;for(u=0;unt&&(T.max=nt),T.len=T.max-T.min}function l(k,L,u){var T=k.getPointAtLength(L),C=k.getPointAtLength(u),_=C.x-T.x,F=C.y-T.y,O=Math.sqrt(_*_+F*F);return[_/O,F/O]}function h(k){var L=Math.sqrt(k[0]*k[0]+k[1]*k[1]);return[k[0]/L,k[1]/L]}function d(k,L){var u=Math.abs(k[0]*L[0]+k[1]*L[1]);return Math.sqrt(1-u*u)/u}function b(k,L,u,T,C,_){var F,O,j,B,U=w.ensureSingle(k,"g","contourbg").selectAll("path").data(_==="fill"&&!C?[0]:[]);U.enter().append("path"),U.exit().remove();var P=[];for(B=0;B=0&&(V=X,K=nt):Math.abs(N[1]-V[1])=0&&(V=X,K=nt):w.log("endpt to newendpt is not vert. or horz.",N,V,X)}if(K>=0)break;B+=ot(N,V),N=V}if(K===L.edgepaths.length){w.log("unclosed perimeter path");break}j=K,P=U.indexOf(j)===-1,P&&(j=U[0],B+=ot(N,V)+"Z",N=null)}for(j=0;j0?+m[s]:0),a.push({type:"Feature",geometry:{type:"Point",coordinates:l},properties:h})}}var b=E.extractOpts(i),M=b.reversescale?E.flipScale(b.colorscale):b.colorscale,g=M[0][1],k=["interpolate",["linear"],["heatmap-density"],0,t.opacity(g)<1?g:t.addOpacity(g,0)];for(s=1;s=0;c--)w.removeLayer(p[c][1])},E.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},tt.exports=function(w,p){var c=p[0].trace,i=new t(w,c.uid),r=i.sourceId,o=S(p),a=i.below=w.belowLookup["trace-"+c.uid];return w.map.addSource(r,{type:"geojson",data:o.geojson}),i._addLayers(o,a),i}}),17347:(function(tt,G,e){var S=e(87163),A=e(3208).rb,t=e(9829),E=e(95833),w=e(93049).extendFlat;tt.exports=w({lon:E.lon,lat:E.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:E.text,hovertext:E.hovertext,hoverinfo:w({},t.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:A(),showlegend:w({},t.showlegend,{dflt:!1})},S("",{cLetter:"z",editTypeOverride:"calc"}))}),60675:(function(tt,G,e){var S=e(10721),A=e(34809).isArrayOrTypedArray,t=e(63821).BADNUM,E=e(28379),w=e(34809)._;tt.exports=function(p,c){for(var i=c._length,r=Array(i),o=c.z,a=A(o)&&o.length,s=0;s0?+m[s]:0),a.push({type:"Feature",geometry:{type:"Point",coordinates:l},properties:h})}}var b=E.extractOpts(i),M=b.reversescale?E.flipScale(b.colorscale):b.colorscale,g=M[0][1],k=["interpolate",["linear"],["heatmap-density"],0,t.opacity(g)<1?g:t.addOpacity(g,0)];for(s=1;s=0;c--)w.removeLayer(p[c][1])},E.dispose=function(){var w=this.subplot.map;this._removeLayers(),w.removeSource(this.sourceId)},tt.exports=function(w,p){var c=p[0].trace,i=new t(w,c.uid),r=i.sourceId,o=S(p),a=i.below=w.belowLookup["trace-"+c.uid];return w.map.addSource(r,{type:"geojson",data:o.geojson}),i._addLayers(o,a),i}}),43179:(function(tt,G,e){var S=e(34809);tt.exports=function(A,t){for(var E=0;E"),o.color=E(s,m),[o]}};function E(w,p){var c=w.marker,i=p.mc||c.color,r=p.mlc||c.line.color,o=p.mlw||c.line.width;if(S(i))return i;if(S(r)&&o)return r}}),52213:(function(tt,G,e){tt.exports={attributes:e(62824),layoutAttributes:e(93795),supplyDefaults:e(30495).supplyDefaults,crossTraceDefaults:e(30495).crossTraceDefaults,supplyLayoutDefaults:e(34980),calc:e(28152),crossTraceCalc:e(82539),plot:e(83482),style:e(7240).style,hoverPoints:e(27759),eventData:e(29412),selectPoints:e(88384),moduleType:"trace",name:"funnel",basePlotModule:e(37703),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}}),93795:(function(tt){tt.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}}),34980:(function(tt,G,e){var S=e(34809),A=e(93795);tt.exports=function(t,E,w){var p=!1;function c(o,a){return S.coerce(t,E,A,o,a)}for(var i=0;i path").each(function(f){if(!f.isBlank){var v=x.marker;S.select(this).call(t.fill,f.mc||v.color).call(t.stroke,f.mlc||v.line.color).call(A.dashLine,v.line.dash,f.mlw||v.line.width).style("opacity",x.selectedpoints&&!f.selected?E:1)}}),c(m,x,r),m.selectAll(".regions").each(function(){S.select(this).selectAll("path").style("stroke-width",0).call(t.fill,x.connector.fillcolor)}),m.selectAll(".lines").each(function(){var f=x.connector.line;A.lineGroupStyle(S.select(this).selectAll("path"),f.width,f.color,f.dash)})})}tt.exports={style:i}}),63447:(function(tt,G,e){var S=e(55412),A=e(9829),t=e(13792).u,E=e(3208).rb,w=e(3208).ay,p=e(93049).extendFlat;tt.exports={labels:S.labels,label0:S.label0,dlabel:S.dlabel,values:S.values,marker:{colors:S.marker.colors,line:{color:p({},S.marker.line.color,{dflt:null}),width:p({},S.marker.line.width,{dflt:1}),editType:"calc"},pattern:S.marker.pattern,editType:"calc"},text:S.text,hovertext:S.hovertext,scalegroup:p({},S.scalegroup,{}),textinfo:p({},S.textinfo,{flags:["label","text","value","percent"]}),texttemplate:w({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:p({},A.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:E({},{keys:["label","color","value","text","percent"]}),textposition:p({},S.textposition,{values:["inside","none"],dflt:"inside"}),textfont:S.textfont,insidetextfont:S.insidetextfont,title:{text:S.title.text,font:S.title.font,position:p({},S.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:t({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}}),86817:(function(tt,G,e){var S=e(44122);G.name="funnelarea",G.plot=function(A,t,E,w){S.plotBasePlot(G.name,A,t,E,w)},G.clean=function(A,t,E,w){S.cleanBasePlot(G.name,A,t,E,w)}}),2807:(function(tt,G,e){var S=e(44148);function A(E,w){return S.calc(E,w)}function t(E){S.crossTraceCalc(E,{type:"funnelarea"})}tt.exports={calc:A,crossTraceCalc:t}}),79824:(function(tt,G,e){var S=e(34809),A=e(63447),t=e(13792).N,E=e(17550).handleText,w=e(46979).handleLabelsAndValues,p=e(46979).handleMarkerDefaults;tt.exports=function(c,i,r,o){function a(v,l){return S.coerce(c,i,A,v,l)}var s=w(a("labels"),a("values")),n=s.len;if(i._hasLabels=s.hasLabels,i._hasValues=s.hasValues,!i._hasLabels&&i._hasValues&&(a("label0"),a("dlabel")),!n){i.visible=!1;return}i._length=n,p(c,i,o,a),a("scalegroup");var m=a("text"),x=a("texttemplate"),f;x||(f=a("textinfo",Array.isArray(m)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),x||f&&f!=="none"?E(c,i,o,a,a("textposition"),{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}):f==="none"&&a("textposition","none"),t(i,o,a),a("title.text")&&(a("title.position"),S.coerceFont(a,"title.font",o.font)),a("aspectratio"),a("baseratio")}}),91132:(function(tt,G,e){tt.exports={moduleType:"trace",name:"funnelarea",basePlotModule:e(86817),categories:["pie-like","funnelarea","showLegend"],attributes:e(63447),layoutAttributes:e(10270),supplyDefaults:e(79824),supplyLayoutDefaults:e(69161),calc:e(2807).calc,crossTraceCalc:e(2807).crossTraceCalc,plot:e(96673),style:e(13757),styleOne:e(32891),meta:{}}}),10270:(function(tt,G,e){tt.exports={hiddenlabels:e(4031).hiddenlabels,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}}),69161:(function(tt,G,e){var S=e(34809),A=e(10270);tt.exports=function(t,E){function w(p,c){return S.coerce(t,E,A,p,c)}w("hiddenlabels"),w("funnelareacolorway",E.colorway),w("extendfunnelareacolors")}}),96673:(function(tt,G,e){var S=e(45568),A=e(62203),t=e(34809),E=t.strScale,w=t.strTranslate,p=e(30635),c=e(32995).toMoveInsideBar,i=e(84102),r=i.recordMinTextSize,o=i.clearMinTextSize,a=e(37252),s=e(35734),n=s.attachFxHandlers,m=s.determineInsideTextFont,x=s.layoutAreas,f=s.prerenderTitles,v=s.positionTitleOutside,l=s.formatSliceLabel;tt.exports=function(M,g){var k=M._context.staticPlot,L=M._fullLayout;o("funnelarea",L),f(g,M),x(g,L._size),t.makeTraceGroups(L._funnelarealayer,g,"trace").each(function(u){var T=S.select(this),C=u[0],_=C.trace;b(u),T.each(function(){var F=S.select(this).selectAll("g.slice").data(u);F.enter().append("g").classed("slice",!0),F.exit().remove(),F.each(function(j,B){if(j.hidden){S.select(this).selectAll("path,g").remove();return}j.pointNumber=j.i,j.curveNumber=_.index;var U=C.cx,P=C.cy,N=S.select(this),V=N.selectAll("path.surface").data([j]);V.enter().append("path").classed("surface",!0).style({"pointer-events":k?"none":"all"}),N.call(n,M,u);var Y="M"+(U+j.TR[0])+","+(P+j.TR[1])+h(j.TR,j.BR)+h(j.BR,j.BL)+h(j.BL,j.TL)+"Z";V.attr("d",Y),l(M,j,C);var K=a.castOption(_.textposition,j.pts),nt=N.selectAll("g.slicetext").data(j.text&&K!=="none"?[0]:[]);nt.enter().append("g").classed("slicetext",!0),nt.exit().remove(),nt.each(function(){var ft=t.ensureSingle(S.select(this),"text","",function(rt){rt.attr("data-notex",1)}),ct=t.ensureUniformFontSize(M,m(_,j,L.font));ft.text(j.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(A.font,ct).call(p.convertToTspans,M);var J=A.bBox(ft.node()),et,Q,Z,st=Math.min(j.BL[1],j.BR[1])+P,ot=Math.max(j.TL[1],j.TR[1])+P;Q=Math.max(j.TL[0],j.BL[0])+U,Z=Math.min(j.TR[0],j.BR[0])+U,et=c(Q,Z,st,ot,J,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),et.fontSize=ct.size,r(_.type,et,L),u[B].transform=et,t.setTransormAndDisplay(ft,et)})});var O=S.select(this).selectAll("g.titletext").data(_.title.text?[0]:[]);O.enter().append("g").classed("titletext",!0),O.exit().remove(),O.each(function(){var j=t.ensureSingle(S.select(this),"text","",function(P){P.attr("data-notex",1)}),B=_.title.text;_._meta&&(B=t.templateString(B,_._meta)),j.text(B).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(A.font,_.title.font).call(p.convertToTspans,M);var U=v(C,L._size);j.attr("transform",w(U.x,U.y)+E(Math.min(1,U.scale))+w(U.tx,U.ty))})})})};function h(M,g){var k=g[0]-M[0],L=g[1]-M[1];return"l"+k+","+L}function d(M,g){return[.5*(M[0]+g[0]),.5*(M[1]+g[1])]}function b(M){if(!M.length)return;var g=M[0],k=g.trace,L=k.aspectratio,u=k.baseratio;u>.999&&(u=.999);var T=u**2,C=g.vTotal,_=C*T/(1-T),F=C,O=_/C;function j(){var ut=Math.sqrt(O);return{x:ut,y:-ut}}function B(){var ut=j();return[ut.x,ut.y]}var U,P=[];P.push(B());var N,V;for(N=M.length-1;N>-1;N--)if(V=M[N],!V.hidden){var Y=V.v/F;O+=Y,P.push(B())}var K=1/0,nt=-1/0;for(N=0;N-1;N--)if(V=M[N],!V.hidden){ot+=1;var rt=P[ot][0],X=P[ot][1];V.TL=[-rt,X],V.TR=[rt,X],V.BL=Z,V.BR=st,V.pxmid=d(V.TR,V.BR),Z=V.TL,st=V.TR}}}),13757:(function(tt,G,e){var S=e(45568),A=e(32891),t=e(84102).resizeText;tt.exports=function(E){var w=E._fullLayout._funnelarealayer.selectAll(".trace");t(E,w,"funnelarea"),w.each(function(p){var c=p[0].trace,i=S.select(this);i.style({opacity:c.opacity}),i.selectAll("path.surface").each(function(r){S.select(this).call(A,r,c,E)})})}}),81658:(function(tt,G,e){var S=e(36640),A=e(9829),t=e(80337),E=e(80712).axisHoverFormat,w=e(3208).rb,p=e(3208).ay,c=e(87163),i=e(93049).extendFlat;tt.exports=i({z:{valType:"data_array",editType:"calc"},x:i({},S.x,{impliedEdits:{xtype:"array"}}),x0:i({},S.x0,{impliedEdits:{xtype:"scaled"}}),dx:i({},S.dx,{impliedEdits:{xtype:"scaled"}}),y:i({},S.y,{impliedEdits:{ytype:"array"}}),y0:i({},S.y0,{impliedEdits:{ytype:"scaled"}}),dy:i({},S.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:i({},S.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:i({},S.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:i({},S.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:i({},S.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:i({},S.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:i({},S.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z",1),hovertemplate:w(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:i({},A.showlegend,{dflt:!1}),zorder:S.zorder},{transforms:void 0},c("",{cLetter:"z",autoColorDflt:!1}))}),51670:(function(tt,G,e){var S=e(33626),A=e(34809),t=e(29714),E=e(40528),w=e(19226),p=e(28379),c=e(87869),i=e(93877),r=e(69295),o=e(78106),a=e(80924),s=e(63821).BADNUM;tt.exports=function(x,f){var v=t.getFromId(x,f.xaxis||"x"),l=t.getFromId(x,f.yaxis||"y"),h=S.traceIs(f,"contour"),d=S.traceIs(f,"histogram"),b=S.traceIs(f,"gl2d"),M=h?"best":f.zsmooth,g,k,L,u,T,C,_,F,O,j,B;if(v._minDtick=0,l._minDtick=0,d)B=w(x,f),u=B.orig_x,g=B.x,k=B.x0,L=B.dx,F=B.orig_y,T=B.y,C=B.y0,_=B.dy,O=B.z;else{var U=f.z;A.isArray1D(U)?(c(f,v,l,"x","y",["z"]),g=f._x,T=f._y,U=f._z):(u=f.x?v.makeCalcdata(f,"x"):[],F=f.y?l.makeCalcdata(f,"y"):[],g=E(f,v,"x",u).vals,T=E(f,l,"y",F).vals,f._x=g,f._y=T),k=f.x0,L=f.dx,C=f.y0,_=f.dy,O=i(U,f,v,l)}(v.rangebreaks||l.rangebreaks)&&(O=m(g,T,O),d||(g=n(g),T=n(T),f._x=g,f._y=T)),!d&&(h||f.connectgaps)&&(f._emptypoints=o(O),r(O,f._emptypoints));function P(et){M=f._input.zsmooth=f.zsmooth=!1,A.warn('cannot use zsmooth: "fast": '+et)}function N(et){if(et.length>1){var Q=(et[et.length-1]-et[0])/(et.length-1),Z=Math.abs(Q/100);for(j=0;jZ)return!1}return!0}f._islinear=!1,v.type==="log"||l.type==="log"?M==="fast"&&P("log axis found"):N(g)?N(T)?f._islinear=!0:M==="fast"&&P("y scale is not linear"):M==="fast"&&P("x scale is not linear");var V=A.maxRowLength(O),Y=f.xtype==="scaled"?"":g,K=a(f,Y,k,L,V,v),nt=f.ytype==="scaled"?"":T,ft=a(f,nt,C,_,O.length,l);b||(f._extremes[v._id]=t.findExtremes(v,K),f._extremes[l._id]=t.findExtremes(l,ft));var ct={x:K,y:ft,z:O,text:f._text||f.text,hovertext:f._hovertext||f.hovertext};if(f.xperiodalignment&&u&&(ct.orig_x=u),f.yperiodalignment&&F&&(ct.orig_y=F),Y&&Y.length===K.length-1&&(ct.xCenter=Y),nt&&nt.length===ft.length-1&&(ct.yCenter=nt),d&&(ct.xRanges=B.xRanges,ct.yRanges=B.yRanges,ct.pts=B.pts),h||p(x,f,{vals:O,cLetter:"z"}),h&&f.contours&&f.contours.coloring==="heatmap"){var J={type:f.type==="contour"?"heatmap":"histogram2d",xcalendar:f.xcalendar,ycalendar:f.ycalendar};ct.xfill=a(J,Y,k,L,V,v),ct.yfill=a(J,nt,C,_,O.length,l)}return[ct]};function n(x){for(var f=[],v=x.length,l=0;l=0;m--)n=w[m],a=n[0],s=n[1],x=((E[[a-1,s]]||i)[2]+(E[[a+1,s]]||i)[2]+(E[[a,s-1]]||i)[2]+(E[[a,s+1]]||i)[2])/20,x&&(f[n]=[a,s,x],w.splice(m,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(n in f)E[n]=f[n],t.push(f[n])}return t.sort(function(l,h){return h[2]-l[2]})}}),93125:(function(tt,G,e){var S=e(32141),A=e(34809),t=A.isArrayOrTypedArray,E=e(29714),w=e(88856).extractOpts;tt.exports=function(p,c,i,r,o){o||(o={});var a=o.isContour,s=p.cd[0],n=s.trace,m=p.xa,x=p.ya,f=s.x,v=s.y,l=s.z,h=s.xCenter,d=s.yCenter,b=s.zmask,M=n.zhoverformat,g=f,k=v,L,u,T,C;if(p.index!==!1){try{T=Math.round(p.index[1]),C=Math.round(p.index[0])}catch{A.error("Error hovering on heatmap, pointNumber must be [row,col], found:",p.index);return}if(T<0||T>=l[0].length||C<0||C>l.length)return}else{if(S.inbox(c-f[0],c-f[f.length-1],0)>0||S.inbox(i-v[0],i-v[v.length-1],0)>0)return;if(a){var _;for(g=[2*f[0]-f[1]],_=1;_A;r++)i=w(p,c,E(i));return i>A&&S.log("interp2d didn't converge quickly",i),p};function w(p,c,i){var r=0,o,a,s,n,m,x,f,v,l,h,d,b,M;for(n=0;nb&&(r=Math.max(r,Math.abs(p[a][s]-d)/(M-b))))}return r}}),63814:(function(tt,G,e){var S=e(34809);tt.exports=function(A,t){A("texttemplate");var E=S.extendFlat({},t.font,{color:"auto",size:"auto"});S.coerceFont(A,"textfont",E)}}),80924:(function(tt,G,e){var S=e(33626),A=e(34809).isArrayOrTypedArray;tt.exports=function(t,E,w,p,c,i){var r=[],o=S.traceIs(t,"contour"),a=S.traceIs(t,"histogram"),s=S.traceIs(t,"gl2d"),n,m,x;if(A(E)&&E.length>1&&!a&&i.type!=="category"){var f=E.length;if(f<=c){if(o||s)r=Array.from(E).slice(0,c);else if(c===1)r=i.type==="log"?[.5*E[0],2*E[0]]:[E[0]-.5,E[0]+.5];else if(i.type==="log"){for(r=[E[0]**1.5/E[1]**.5],x=1;x0;)Z=u.c2p(P[X]),X--;for(Z0;)rt=T.c2p(N[X]),X--;rt=u._length||Z<=0||ot>=T._length||rt<=0){_.selectAll("image").data([]).exit().remove(),l(_);return}var Ot,Ht;yt==="fast"?(Ot=ct,Ht=ft):(Ot=Lt,Ht=St);var Kt=document.createElement("canvas");Kt.width=Ot,Kt.height=Ht;var Gt=Kt.getContext("2d",{willReadFrequently:!0}),Et=a(O,{noNumericCheck:!0,returnArray:!0}),At,qt;yt==="fast"?(At=J?function(Di){return ct-1-Di}:p.identity,qt=et?function(Di){return ft-1-Di}:p.identity):(At=function(Di){return p.constrain(Math.round(u.c2p(P[Di])-Q),0,Lt)},qt=function(Di){return p.constrain(Math.round(T.c2p(N[Di])-ot),0,St)});var jt=qt(0),de=[jt,jt],Xt=J?0:1,ye=et?0:1,Le=0,ve=0,ke=0,Pe=0,me,be,je,nr,Vt;function Qt(Di,Tr){if(Di!==void 0){var Vr=Et(Di);return Vr[0]=Math.round(Vr[0]),Vr[1]=Math.round(Vr[1]),Vr[2]=Math.round(Vr[2]),Le+=Tr,ve+=Vr[0]*Tr,ke+=Vr[1]*Tr,Pe+=Vr[2]*Tr,Vr}return[0,0,0,0]}function te(Di,Tr,Vr,li){var ci=Di[Vr.bin0];if(ci===void 0)return Qt(void 0,1);var Ni=Di[Vr.bin1],si=Tr[Vr.bin0],Ci=Tr[Vr.bin1],wi=Ni-ci||0,ma=si-ci||0,Ha=Ni===void 0?Ci===void 0?0:si===void 0?2*(Ci-ci):(2*Ci-si-ci)*2/3:Ci===void 0?si===void 0?0:(2*ci-Ni-si)*2/3:si===void 0?(2*Ci-Ni-ci)*2/3:Ci+ci-Ni-si;return Qt(ci+Vr.frac*wi+li.frac*(ma+Vr.frac*Ha))}if(yt!=="default"){var ee=0,Bt;try{Bt=new Uint8Array(Ot*Ht*4)}catch{Bt=Array(Ot*Ht*4)}if(yt==="smooth"){var Wt=V||P,$t=Y||N,Tt=Array(Wt.length),_t=Array($t.length),It=Array(Lt),Mt=V?d:h,Ct=Y?d:h,Ut,Zt,Me;for(X=0;Xyr||yr>T._length))for(ut=Ke;utSr||Sr>u._length)){var Dr=i({x:Cr,y:$e},O,M._fullLayout);Dr.x=Cr,Dr.y=$e;var Or=F.z[X][ut];Or===void 0?(Dr.z="",Dr.zLabel=""):(Dr.z=Or,Dr.zLabel=w.tickText(br,Or,"hover").text);var ei=F.text&&F.text[X]&&F.text[X][ut];(ei===void 0||ei===!1)&&(ei=""),Dr.text=ei;var Nr=p.texttemplateString(or,Dr,M._fullLayout._d3locale,Dr,O._meta||{});if(Nr){var re=Nr.split("
"),ae=re.length,wr=0;for(lt=0;lt0&&(i=!0);for(var s=0;sp){var c=p-E[A];return E[A]=p,c}}else return E[A]=p,p;return 0},max:function(A,t,E,w){var p=w[t];if(S(p))if(p=Number(p),S(E[A])){if(E[A]k&&kE){var T=L===A?1:6,C=L===A?"M12":"M1";return function(_,F){var O=f.c2d(_,A,v),j=O.indexOf("-",T);j>0&&(O=O.substr(0,j));var B=f.d2c(O,0,v);if(B<_){var U=i(B,C,!1,v);(B+U)/2<_+n&&(B=U)}return F&&u?i(B,C,!0,v):B}}return function(_,F){var O=L*Math.round(_/L);return O+L/10<_&&O+L*.9<_+n&&(O+=L),F&&u&&(O-=L),O}};function r(n,m,x,f){if(n*m<=0)return 1/0;for(var v=Math.abs(m-n),l=x.type==="date",h=o(v,l),d=0;d<10;d++){var b=o(h*80,l);if(h===b)break;if(a(b,n,m,l,x,f))h=b;else break}return h}function o(n,m){return m&&n>c?n>E?n>A*1.1?A:n>t*1.1?t:E:n>w?w:n>p?p:c:10**Math.floor(Math.log(n)/Math.LN10)}function a(n,m,x,f,v,l){if(f&&n>E){var h=s(m,v,l),d=s(x,v,l),b=n===A?0:1;return h[b]!==d[b]}return Math.floor(x/n)-Math.floor(m/n)>.1}function s(n,m,x){var f=m.c2d(n,A,x).split("-");return f[0]===""&&(f.unshift(),f[0]="-"+f[0]),f}}),53616:(function(tt,G,e){var S=e(10721),A=e(34809),t=e(33626),E=e(29714),w=e(35374),p=e(34870),c=e(58665),i=e(48198),r=e(64852);function o(x,f){var v=[],l=[],h=f.orientation==="h",d=E.getFromId(x,h?f.yaxis:f.xaxis),b=h?"y":"x",M={x:"y",y:"x"}[b],g=f[b+"calendar"],k=f.cumulative,L,u=a(x,f,d,b),T=u[0],C=u[1],_=typeof T.size=="string",F=[],O=_?F:T,j=[],B=[],U=[],P=0,N=f.histnorm,V=f.histfunc,Y=N.indexOf("density")!==-1,K,nt,ft;k.enabled&&Y&&(N=N.replace(/ ?density$/,""),Y=!1);var ct=V==="max"||V==="min"?null:0,J=p.count,et=c[N],Q=!1,Z=function(At){return d.r2c(At,0,g)},st;for(A.isArrayOrTypedArray(f[M])&&V!=="count"&&(st=f[M],Q=V==="avg",J=p[V]),L=Z(T.start),nt=Z(T.end)+(L-E.tickIncrement(L,T.size,!1,g))/1e6;L=0&&ft=Kt;L--)if(l[L]){Gt=L;break}for(L=Kt;L<=Gt;L++)if(S(v[L])&&S(l[L])){var Et={p:v[L],s:l[L],b:0};k.enabled||(Et.pts=U[L],ut?Et.ph0=Et.ph1=U[L].length?C[U[L][0]]:v[L]:(f._computePh=!0,Et.ph0=St(F[L]),Et.ph1=St(F[L+1],!0))),Ht.push(Et)}return Ht.length===1&&(Ht[0].width1=E.tickIncrement(Ht[0].p,T.size,!1,g)-Ht[0].p),w(Ht,f),A.isArrayOrTypedArray(f.selectedpoints)&&A.tagSelected(Ht,f,kt),Ht}function a(x,f,v,l,h){var d=l+"bins",b=x._fullLayout,M=f["_"+l+"bingroup"],g=b._histogramBinOpts[M],k=b.barmode==="overlay",L,u,T,C,_,F,O,j=function(St){return v.r2c(St,0,C)},B=function(St){return v.c2r(St,0,C)},U=v.type==="date"?function(St){return St||St===0?A.cleanDate(St,null,C):null}:function(St){return S(St)?Number(St):null};function P(St,Ot,Ht){Ot[St+"Found"]?(Ot[St]=U(Ot[St]),Ot[St]===null&&(Ot[St]=Ht[St])):(F[St]=Ot[St]=Ht[St],A.nestedProperty(u[0],d+"."+St).set(Ht[St]))}if(f["_"+l+"autoBinFinished"])delete f["_"+l+"autoBinFinished"];else{u=g.traces;var N=[],V=!0,Y=!1,K=!1;for(L=0;Lv.r2l(ot)&&(X=E.tickIncrement(X,g.size,!0,C)),et.start=v.l2r(X),st||A.nestedProperty(f,d+".start").set(et.start)}var ut=g.end,lt=v.r2l(J.end),yt=lt!==void 0;if((g.endFound||yt)&<!==v.r2l(ut)){var kt=yt?lt:A.aggNums(Math.max,null,_);et.end=v.l2r(kt),yt||A.nestedProperty(f,d+".start").set(et.end)}var Lt="autobin"+l;return f._input[Lt]===!1&&(f._input[d]=A.extendFlat({},f[d]||{}),delete f._input[Lt],delete f[Lt]),[et,_]}function s(x,f,v,l,h){var d=x._fullLayout,b=n(x,f),M=!1,g=1/0,k=[f],L,u,T;for(L=0;L=0;l--)M(l);else if(f==="increasing"){for(l=1;l=0;l--)x[l]+=x[l+1];v==="exclude"&&(x.push(0),x.shift())}}tt.exports={calc:o,calcAllAutoBins:a}}),39732:(function(tt){tt.exports={eventDataKeys:["binNumber"]}}),83380:(function(tt,G,e){var S=e(34809),A=e(5975),t=e(33626).traceIs,E=e(36301),w=e(17550).validateCornerradius,p=S.nestedProperty,c=e(84391).getAxisGroup,i=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],r=["x","y"];tt.exports=function(o,a){var s=a._histogramBinOpts={},n=[],m={},x=[],f,v,l,h,d,b,M;function g(nt,ft){return S.coerce(f._input,f,f._module.attributes,nt,ft)}function k(nt){return nt.orientation==="v"?"x":"y"}function L(nt,ft){return A.getFromTrace({_fullLayout:a},nt,ft).type}function u(nt,ft,ct){var J=nt.uid+"__"+ct;ft||(ft=J);var et=L(nt,ct),Q=nt[ct+"calendar"]||"",Z=s[ft],st=!0;Z&&(et===Z.axType&&Q===Z.calendar?(st=!1,Z.traces.push(nt),Z.dirs.push(ct)):(ft=J,et!==Z.axType&&S.warn(["Attempted to group the bins of trace",nt.index,"set on a","type:"+et,"axis","with bins on","type:"+Z.axType,"axis."].join(" ")),Q!==Z.calendar&&S.warn(["Attempted to group the bins of trace",nt.index,"set with a",Q,"calendar","with bins",Z.calendar?"on a "+Z.calendar+" calendar":"w/o a set calendar"].join(" ")))),st&&(s[ft]={traces:[nt],dirs:[ct],axType:et,calendar:nt[ct+"calendar"]||""}),nt["_"+ct+"bingroup"]=ft}for(d=0;dO&&T.splice(O,T.length-O),F.length>O&&F.splice(O,F.length-O);var j=[],B=[],U=[],P=typeof u.size=="string",N=typeof _.size=="string",V=[],Y=[],K=P?V:u,nt=N?Y:_,ft=0,ct=[],J=[],et=s.histnorm,Q=s.histfunc,Z=et.indexOf("density")!==-1,st=Q==="max"||Q==="min"?null:0,ot=t.count,rt=E[et],X=!1,ut=[],lt=[],yt="z"in s?s.z:"marker"in s&&Array.isArray(s.marker.color)?s.marker.color:"";yt&&Q!=="count"&&(X=Q==="avg",ot=t[Q]);var kt=u.size,Lt=v(u.start),St=v(u.end)+(Lt-A.tickIncrement(Lt,kt,!1,x))/1e6;for(b=Lt;b=0&&g=0&&k-1,flipY:j.tiling.flip.indexOf("y")>-1,orientation:j.tiling.orientation,pad:{inner:j.tiling.pad},maxDepth:j._maxDepth}).descendants(),V=1/0,Y=-1/0;N.forEach(function(J){var et=J.depth;et>=j._maxDepth?(J.x0=J.x1=(J.x0+J.x1)/2,J.y0=J.y1=(J.y0+J.y1)/2):(V=Math.min(V,et),Y=Math.max(Y,et))}),x=x.data(N,i.getPtId),j._maxVisibleLayers=isFinite(Y)?Y-V+1:0,x.enter().append("g").classed("slice",!0),L(x,a,_,[v,l],b),x.order();var K=null;if(k&&C){var nt=i.getPtId(C);x.each(function(J){K===null&&i.getPtId(J)===nt&&(K={x0:J.x0,x1:J.x1,y0:J.y0,y1:J.y1})})}var ft=function(){return K||{x0:0,x1:v,y0:0,y1:l}},ct=x;return k&&(ct=ct.transition().each("end",function(){var J=S.select(this);i.setSliceCursor(J,s,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ct.each(function(J){J._x0=h(J.x0),J._x1=h(J.x1),J._y0=d(J.y0),J._y1=d(J.y1),J._hoverX=h(J.x1-j.tiling.pad),J._hoverY=d(P?J.y1-j.tiling.pad/2:J.y0+j.tiling.pad/2);var et=S.select(this),Q=A.ensureSingle(et,"path","surface",function(rt){rt.style("pointer-events",F?"none":"all")});k?Q.transition().attrTween("d",function(rt){var X=u(rt,a,ft(),[v,l],{orientation:j.tiling.orientation,flipX:j.tiling.flip.indexOf("x")>-1,flipY:j.tiling.flip.indexOf("y")>-1});return function(ut){return b(X(ut))}}):Q.attr("d",b),et.call(r,m,s,n,{styleOne:p,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(i.setSliceCursor,s,{isTransitioning:s._transitioning}),Q.call(p,J,j,s,{hovered:!1}),J.x0===J.x1||J.y0===J.y1?J._text="":J._text=o(J,m,j,n,O)||"";var Z=A.ensureSingle(et,"g","slicetext"),st=A.ensureSingle(Z,"text","",function(rt){rt.attr("data-notex",1)}),ot=A.ensureUniformFontSize(s,i.determineTextFont(j,J,O.font));st.text(J._text||" ").classed("slicetext",!0).attr("text-anchor",U?"end":B?"start":"middle").call(t.font,ot).call(E.convertToTspans,s),J.textBB=t.bBox(st.node()),J.transform=M(J,{fontSize:ot.size}),J.transform.fontSize=ot.size,k?st.transition().attrTween("transform",function(rt){var X=T(rt,a,ft(),[v,l]);return function(ut){return g(X(ut))}}):st.attr("transform",g(J))}),K}}),36858:(function(tt,G,e){tt.exports={moduleType:"trace",name:"icicle",basePlotModule:e(63387),categories:[],animatable:!0,attributes:e(12505),layoutAttributes:e(60052),supplyDefaults:e(17918),supplyLayoutDefaults:e(11747),calc:e(36349)._,crossTraceCalc:e(36349).t,plot:e(1395),style:e(50579).style,colorbar:e(21146),meta:{}}}),60052:(function(tt){tt.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}}),11747:(function(tt,G,e){var S=e(34809),A=e(60052);tt.exports=function(t,E){function w(p,c){return S.coerce(t,E,A,p,c)}w("iciclecolorway",E.colorway),w("extendiciclecolors")}}),29316:(function(tt,G,e){var S=e(92264),A=e(36141);tt.exports=function(t,E,w){var p=w.flipX,c=w.flipY,i=w.orientation==="h",r=w.maxDepth,o=E[0],a=E[1];r&&(o=(t.height+1)*E[0]/Math.min(t.height+1,r),a=(t.height+1)*E[1]/Math.min(t.height+1,r));var s=S.partition().padding(w.pad.inner).size(i?[E[1],o]:[E[0],a])(t);return(i||p||c)&&A(s,E,{swapXY:i,flipX:p,flipY:c}),s}}),1395:(function(tt,G,e){var S=e(41567),A=e(23593);tt.exports=function(t,E,w,p){return S(t,E,w,p,{type:"icicle",drawDescendants:A})}}),50579:(function(tt,G,e){var S=e(45568),A=e(78766),t=e(34809),E=e(84102).resizeText,w=e(72043);function p(i){var r=i._fullLayout._iciclelayer.selectAll(".trace");E(i,r,"icicle"),r.each(function(o){var a=S.select(this),s=o[0].trace;a.style("opacity",s.opacity),a.selectAll("path.surface").each(function(n){S.select(this).call(c,n,s,i)})})}function c(i,r,o,a){var s=r.data.data,n=!r.children,m=s.i,x=t.castOption(o,m,"marker.line.color")||A.defaultLine,f=t.castOption(o,m,"marker.line.width")||0;i.call(w,r,o,a).style("stroke-width",f).call(A.stroke,x).style("opacity",n?o.leaf.opacity:null)}tt.exports={style:p,styleOne:c}}),22153:(function(tt,G,e){for(var S=e(9829),A=e(36640).zorder,t=e(3208).rb,E=e(93049).extendFlat,w=e(42939).colormodel,p=["rgb","rgba","rgba256","hsl","hsla"],c=[],i=[],r=0;r0||S.inbox(c-i.y0,c-(i.y0+i.h*r.dy),0)>0)){var s=Math.floor((p-i.x0)/r.dx),n=Math.floor(Math.abs(c-i.y0)/r.dy),m;if(r._hasZ?m=i.z[n][s]:r._hasSource&&(m=r._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,n,1,1).data),m){var x=i.hi||r.hoverinfo,f;if(x){var v=x.split("+");v.indexOf("all")!==-1&&(v=["color"]),v.indexOf("color")!==-1&&(f=!0)}var l=E.colormodel[r.colormodel],h=l.colormodel||r.colormodel,d=h.length,b=r._scaler(m),M=l.suffix,g=[];(r.hovertemplate||f)&&(g.push("["+[b[0]+M[0],b[1]+M[1],b[2]+M[2]].join(", ")),d===4&&g.push(", "+b[3]+M[3]),g.push("]"),g=g.join(""),w.extraText=h.toUpperCase()+": "+g);var k;t(r.hovertext)&&t(r.hovertext[n])?k=r.hovertext[n][s]:t(r.text)&&t(r.text[n])&&(k=r.text[n][s]);var L=a.c2p(i.y0+(n+.5)*r.dy),u=i.x0+(s+.5)*r.dx,T=i.y0+(n+.5)*r.dy,C="["+m.slice(0,r.colormodel.length).join(", ")+"]";return[A.extendFlat(w,{index:[n,s],x0:o.c2p(i.x0+s*r.dx),x1:o.c2p(i.x0+(s+1)*r.dx),y0:L,y1:L,color:b,xVal:u,xLabelVal:u,yVal:T,yLabelVal:T,zLabelVal:C,text:k,hovertemplateLabels:{zLabel:C,colorLabel:g,"color[0]Label":b[0]+M[0],"color[1]Label":b[1]+M[1],"color[2]Label":b[2]+M[2],"color[3]Label":b[3]+M[3]}})]}}}}),92106:(function(tt,G,e){tt.exports={attributes:e(22153),supplyDefaults:e(82766),calc:e(31181),plot:e(36899),style:e(67555),hoverPoints:e(57328),eventData:e(45461),moduleType:"trace",name:"image",basePlotModule:e(37703),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}}),36899:(function(tt,G,e){var S=e(45568),A=e(34809),t=A.strTranslate,E=e(62972),w=e(42939),p=e(95544),c=e(1837).STYLE;tt.exports=function(i,r,o,a){var s=r.xaxis,n=r.yaxis,m=!i._context._exportedPlot&&p();A.makeTraceGroups(a,o,"im").each(function(x){var f=S.select(this),v=x[0],l=v.trace,h=(l.zsmooth==="fast"||l.zsmooth===!1&&m)&&!l._hasZ&&l._hasSource&&s.type==="linear"&&n.type==="linear";l._realImage=h;for(var d=v.z,b=v.x0,M=v.y0,g=v.w,k=v.h,L=l.dx,u=l.dy,T,C,_,F,O,j=0;T===void 0&&j0;)C=s.c2p(b+j*L),j--;for(j=0;F===void 0&&j0;)O=n.c2p(M+j*u),j--;if(Cnt[0];if(ft||ct){var J=T+U/2,et=F+P/2;Y+="transform:"+t(J+"px",et+"px")+"scale("+(ft?-1:1)+","+(ct?-1:1)+")"+t(-J+"px",-et+"px")+";"}}V.attr("style",Y);var Q=new Promise(function(Z){if(l._hasZ)Z();else if(l._hasSource)if(l._canvas&&l._canvas.el.width===g&&l._canvas.el.height===k&&l._canvas.source===l.source)Z();else{var st=document.createElement("canvas");st.width=g,st.height=k;var ot=st.getContext("2d",{willReadFrequently:!0});l._image=l._image||new Image;var rt=l._image;rt.onload=function(){ot.drawImage(rt,0,0),l._canvas={el:st,source:l.source},Z()},rt.setAttribute("src",l.source)}}).then(function(){var Z,st;if(l._hasZ)st=N(function(rt,X){var ut=d[X][rt];return A.isTypedArray(ut)&&(ut=Array.from(ut)),ut}),Z=st.toDataURL("image/png");else if(l._hasSource)if(h)Z=l.source;else{var ot=l._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,g,k).data;st=N(function(rt,X){var ut=4*(X*g+rt);return[ot[ut],ot[ut+1],ot[ut+2],ot[ut+3]]}),Z=st.toDataURL("image/png")}V.attr({"xlink:href":Z,height:P,width:U,x:T,y:F})});i._promises.push(Q)})}}),67555:(function(tt,G,e){var S=e(45568);tt.exports=function(A){S.select(A).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}}),95485:(function(tt,G,e){var S=e(93049).extendFlat,A=e(93049).extendDeep,t=e(13582).overrideAll,E=e(80337),w=e(10229),p=e(13792).u,c=e(25829),i=e(78032).templatedArray,r=e(20909),o=e(80712).descriptionOnlyNumbers,a=E({editType:"plot",colorEditType:"plot"}),s={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:w.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},n={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},m=i("step",A({},s,{range:n}));tt.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:p({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:S({},a,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:o("value")},font:S({},a,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:o("value")},increasing:{symbol:{valType:"string",dflt:r.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:r.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:r.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:r.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:S({},a,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:A({},s,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:w.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:t({range:n,visible:S({},c.visible,{dflt:!0}),tickmode:c.minor.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:S({},c.ticks,{dflt:"outside"}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,ticklabelstep:c.ticklabelstep,showticklabels:c.showticklabels,labelalias:c.labelalias,tickfont:E({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:"plot"},"plot"),steps:m,threshold:{line:{color:S({},s.line.color,{}),width:S({},s.line.width,{dflt:1}),editType:"plot"},thickness:S({},s.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}}),47751:(function(tt,G,e){var S=e(44122);G.name="indicator",G.plot=function(A,t,E,w){S.plotBasePlot(G.name,A,t,E,w)},G.clean=function(A,t,E,w){S.cleanBasePlot(G.name,A,t,E,w)}}),98385:(function(tt){function G(e,S){var A=[],t=S.value;typeof S._lastValue!="number"&&(S._lastValue=S.value);var E=S._lastValue,w=E;return S._hasDelta&&typeof S.delta.reference=="number"&&(w=S.delta.reference),A[0]={y:t,lastY:E,delta:t-w,relativeDelta:(t-w)/w},A}tt.exports={calc:G}}),74807:(function(tt){tt.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}}),79306:(function(tt,G,e){var S=e(34809),A=e(95485),t=e(13792).N,E=e(78032),w=e(59008),p=e(74807),c=e(22777),i=e(87433),r=e(12036),o=e(54616);function a(n,m,x,f){function v(j,B){return S.coerce(n,m,A,j,B)}t(m,f,v),v("mode"),m._hasNumber=m.mode.indexOf("number")!==-1,m._hasDelta=m.mode.indexOf("delta")!==-1,m._hasGauge=m.mode.indexOf("gauge")!==-1;var l=v("value");m._range=[0,typeof l=="number"?1.5*l:1];var h=[,,],d;if(m._hasNumber){v("number.valueformat");var b=S.extendFlat({},f.font);b.size=void 0,S.coerceFont(v,"number.font",b),m.number.font.size===void 0&&(m.number.font.size=p.defaultNumberFontSize,h[0]=!0),v("number.prefix"),v("number.suffix"),d=m.number.font.size}var M;if(m._hasDelta){var g=S.extendFlat({},f.font);g.size=void 0,S.coerceFont(v,"delta.font",g),m.delta.font.size===void 0&&(m.delta.font.size=(m._hasNumber?.5:1)*(d||p.defaultNumberFontSize),h[1]=!0),v("delta.reference",m.value),v("delta.relative"),v("delta.valueformat",m.delta.relative?"2%":""),v("delta.increasing.symbol"),v("delta.increasing.color"),v("delta.decreasing.symbol"),v("delta.decreasing.color"),v("delta.position"),v("delta.prefix"),v("delta.suffix"),M=m.delta.font.size}m._scaleNumbers=(!m._hasNumber||h[0])&&(!m._hasDelta||h[1])||!1;var k=S.extendFlat({},f.font);k.size=.25*(d||M||p.defaultNumberFontSize),S.coerceFont(v,"title.font",k),v("title.text");var L,u,T,C;function _(j,B){return S.coerce(L,u,A.gauge,j,B)}function F(j,B){return S.coerce(T,C,A.gauge.axis,j,B)}if(m._hasGauge){L=n.gauge,L||(L={}),u=E.newContainer(m,"gauge"),_("shape"),(m._isBullet=m.gauge.shape==="bullet")||v("title.align","center"),(m._isAngular=m.gauge.shape==="angular")||v("align","center"),_("bgcolor",f.paper_bgcolor),_("borderwidth"),_("bordercolor"),_("bar.color"),_("bar.line.color"),_("bar.line.width"),_("bar.thickness",p.valueThickness*(m.gauge.shape==="bullet"?.5:1)),w(L,u,{name:"steps",handleItemDefaults:s}),_("threshold.value"),_("threshold.thickness"),_("threshold.line.width"),_("threshold.line.color"),T={},L&&(T=L.axis||{}),C=E.newContainer(u,"axis"),F("visible"),m._range=F("range",m._range);var O={font:f.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};c(T,C,F,"linear"),o(T,C,F,"linear",O),r(T,C,F,"linear",O),i(T,C,F,O)}else v("title.align","center"),v("align","center"),m._isAngular=m._isBullet=!1;m._length=null}function s(n,m){function x(f,v){return S.coerce(n,m,A.gauge.steps,f,v)}x("color"),x("line.color"),x("line.width"),x("range"),x("thickness")}tt.exports={supplyDefaults:a}}),25638:(function(tt,G,e){tt.exports={moduleType:"trace",name:"indicator",basePlotModule:e(47751),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e(95485),supplyDefaults:e(79306).supplyDefaults,calc:e(98385).calc,plot:e(37095),meta:{}}}),37095:(function(tt,G,e){var S=e(45568),A=e(88640).GW,t=e(88640).Dj,E=e(34809),w=E.strScale,p=E.strTranslate,c=E.rad2deg,i=e(4530).MID_SHIFT,r=e(62203),o=e(74807),a=e(30635),s=e(29714),n=e(97655),m=e(40957),x=e(25829),f=e(78766),v={left:"start",center:"middle",right:"end"},l={left:0,center:.5,right:1},h=/[yzafpnµmkMGTPEZY]/;function d(O){return O&&O.duration>0}tt.exports=function(O,j,B,U){var P=O._fullLayout,N;d(B)&&U&&(N=U()),E.makeTraceGroups(P._indicatorlayer,j,"trace").each(function(V){var Y=V[0].trace,K=S.select(this),nt=Y._hasGauge,ft=Y._isAngular,ct=Y._isBullet,J=Y.domain,et={w:P._size.w*(J.x[1]-J.x[0]),h:P._size.h*(J.y[1]-J.y[0]),l:P._size.l+P._size.w*J.x[0],r:P._size.r+P._size.w*(1-J.x[1]),t:P._size.t+P._size.h*(1-J.y[1]),b:P._size.b+P._size.h*J.y[0]},Q=et.l+et.w/2,Z=et.t+et.h/2,st=Math.min(et.w/2,et.h),ot=o.innerRadius*st,rt,X,ut,lt=Y.align||"center";if(X=Z,!nt)rt=et.l+l[lt]*et.w,ut=function(At){return T(At,et.w,et.h)};else if(ft&&(rt=Q,X=Z+st/2,ut=function(At){return C(At,.9*ot)}),ct){var yt=o.bulletPadding,kt=1-o.bulletNumberDomainSize+yt;rt=et.l+(kt+(1-kt)*l[lt])*et.w,ut=function(At){return T(At,(o.bulletNumberDomainSize-yt)*et.w,et.h)}}g(O,K,V,{numbersX:rt,numbersY:X,numbersScaler:ut,transitionOpts:B,onComplete:N});var Lt,St;nt&&(Lt={range:Y.gauge.axis.range,color:Y.gauge.bgcolor,line:{color:Y.gauge.bordercolor,width:0},thickness:1},St={range:Y.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:Y.gauge.bordercolor,width:Y.gauge.borderwidth},thickness:1});var Ot=K.selectAll("g.angular").data(ft?V:[]);Ot.exit().remove();var Ht=K.selectAll("g.angularaxis").data(ft?V:[]);Ht.exit().remove(),ft&&M(O,K,V,{radius:st,innerRadius:ot,gauge:Ot,layer:Ht,size:et,gaugeBg:Lt,gaugeOutline:St,transitionOpts:B,onComplete:N});var Kt=K.selectAll("g.bullet").data(ct?V:[]);Kt.exit().remove();var Gt=K.selectAll("g.bulletaxis").data(ct?V:[]);Gt.exit().remove(),ct&&b(O,K,V,{gauge:Kt,layer:Gt,size:et,gaugeBg:Lt,gaugeOutline:St,transitionOpts:B,onComplete:N});var Et=K.selectAll("text.title").data(V);Et.exit().remove(),Et.enter().append("text").classed("title",!0),Et.attr("text-anchor",function(){return ct?v.right:v[Y.title.align]}).text(Y.title.text).call(r.font,Y.title.font).call(a.convertToTspans,O),Et.attr("transform",function(){var At=et.l+et.w*l[Y.title.align],qt,jt=o.titlePadding,de=r.bBox(Et.node());return nt?(ft&&(qt=Y.gauge.axis.visible?r.bBox(Ht.node()).top-jt-de.bottom:et.t+et.h/2-st/2-de.bottom-jt),ct&&(qt=X-(de.top+de.bottom)/2,At=et.l-o.bulletPadding*et.w)):qt=Y._numbersTop-jt-de.bottom,p(At,qt)})})};function b(O,j,B,U){var P=B[0].trace,N=U.gauge,V=U.layer,Y=U.gaugeBg,K=U.gaugeOutline,nt=U.size,ft=P.domain,ct=U.transitionOpts,J=U.onComplete,et,Q,Z,st,ot;N.enter().append("g").classed("bullet",!0),N.attr("transform",p(nt.l,nt.t)),V.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),V.selectAll("g.xbulletaxistick,path,text").remove();var rt=nt.h,X=P.gauge.bar.thickness*rt,ut=ft.x[0],lt=ft.x[0]+(ft.x[1]-ft.x[0])*(P._hasNumber||P._hasDelta?1-o.bulletNumberDomainSize:1);et=u(O,P.gauge.axis),et._id="xbulletaxis",et.domain=[ut,lt],et.setScale(),Q=s.calcTicks(et),Z=s.makeTransTickFn(et),st=s.getTickSigns(et)[2],ot=nt.t+nt.h,et.visible&&(s.drawTicks(O,et,{vals:et.ticks==="inside"?s.clipEnds(et,Q):Q,layer:V,path:s.makeTickPath(et,ot,st),transFn:Z}),s.drawLabels(O,et,{vals:Q,layer:V,transFn:Z,labelFns:s.makeLabelFns(et,ot)}));function yt(Gt){Gt.attr("width",function(Et){return Math.max(0,et.c2p(Et.range[1])-et.c2p(Et.range[0]))}).attr("x",function(Et){return et.c2p(Et.range[0])}).attr("y",function(Et){return .5*(1-Et.thickness)*rt}).attr("height",function(Et){return Et.thickness*rt})}var kt=[Y].concat(P.gauge.steps),Lt=N.selectAll("g.bg-bullet").data(kt);Lt.enter().append("g").classed("bg-bullet",!0).append("rect"),Lt.select("rect").call(yt).call(k),Lt.exit().remove();var St=N.selectAll("g.value-bullet").data([P.gauge.bar]);St.enter().append("g").classed("value-bullet",!0).append("rect"),St.select("rect").attr("height",X).attr("y",(rt-X)/2).call(k),d(ct)?St.select("rect").transition().duration(ct.duration).ease(ct.easing).each("end",function(){J&&J()}).each("interrupt",function(){J&&J()}).attr("width",Math.max(0,et.c2p(Math.min(P.gauge.axis.range[1],B[0].y)))):St.select("rect").attr("width",typeof B[0].y=="number"?Math.max(0,et.c2p(Math.min(P.gauge.axis.range[1],B[0].y))):0),St.exit().remove();var Ot=B.filter(function(){return P.gauge.threshold.value||P.gauge.threshold.value===0}),Ht=N.selectAll("g.threshold-bullet").data(Ot);Ht.enter().append("g").classed("threshold-bullet",!0).append("line"),Ht.select("line").attr("x1",et.c2p(P.gauge.threshold.value)).attr("x2",et.c2p(P.gauge.threshold.value)).attr("y1",(1-P.gauge.threshold.thickness)/2*rt).attr("y2",(1-(1-P.gauge.threshold.thickness)/2)*rt).call(f.stroke,P.gauge.threshold.line.color).style("stroke-width",P.gauge.threshold.line.width),Ht.exit().remove();var Kt=N.selectAll("g.gauge-outline").data([K]);Kt.enter().append("g").classed("gauge-outline",!0).append("rect"),Kt.select("rect").call(yt).call(k),Kt.exit().remove()}function M(O,j,B,U){var P=B[0].trace,N=U.size,V=U.radius,Y=U.innerRadius,K=U.gaugeBg,nt=U.gaugeOutline,ft=[N.l+N.w/2,N.t+N.h/2+V/2],ct=U.gauge,J=U.layer,et=U.transitionOpts,Q=U.onComplete,Z=Math.PI/2;function st(Le){var ve=P.gauge.axis.range[0],ke=P.gauge.axis.range[1],Pe=(Le-ve)/(ke-ve)*Math.PI-Z;return Pe<-Z?-Z:Pe>Z?Z:Pe}function ot(Le){return S.svg.arc().innerRadius((Y+V)/2-Le/2*(V-Y)).outerRadius((Y+V)/2+Le/2*(V-Y)).startAngle(-Z)}function rt(Le){Le.attr("d",function(ve){return ot(ve.thickness).startAngle(st(ve.range[0])).endAngle(st(ve.range[1]))()})}var X,ut,lt,yt;ct.enter().append("g").classed("angular",!0),ct.attr("transform",p(ft[0],ft[1])),J.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),J.selectAll("g.xangularaxistick,path,text").remove(),X=u(O,P.gauge.axis),X.type="linear",X.range=P.gauge.axis.range,X._id="xangularaxis",X.ticklabeloverflow="allow",X.setScale();var kt=function(Le){return(X.range[0]-Le.x)/(X.range[1]-X.range[0])*Math.PI+Math.PI},Lt={},St=s.makeLabelFns(X,0).labelStandoff;Lt.xFn=function(Le){var ve=kt(Le);return Math.cos(ve)*St},Lt.yFn=function(Le){var ve=kt(Le),ke=Math.sin(ve)>0?.2:1;return-Math.sin(ve)*(St+Le.fontSize*ke)+Math.abs(Math.cos(ve))*(Le.fontSize*i)},Lt.anchorFn=function(Le){var ve=kt(Le),ke=Math.cos(ve);return Math.abs(ke)<.1?"middle":ke>0?"start":"end"},Lt.heightFn=function(Le,ve,ke){var Pe=kt(Le);return-.5*(1+Math.sin(Pe))*ke};var Ot=function(Le){return p(ft[0]+V*Math.cos(Le),ft[1]-V*Math.sin(Le))};lt=function(Le){return Ot(kt(Le))};var Ht=function(Le){var ve=kt(Le);return Ot(ve)+"rotate("+-c(ve)+")"};if(ut=s.calcTicks(X),yt=s.getTickSigns(X)[2],X.visible){yt=X.ticks==="inside"?-1:1;var Kt=(X.linewidth||1)/2;s.drawTicks(O,X,{vals:ut,layer:J,path:"M"+yt*Kt+",0h"+yt*X.ticklen,transFn:Ht}),s.drawLabels(O,X,{vals:ut,layer:J,transFn:lt,labelFns:Lt})}var Gt=[K].concat(P.gauge.steps),Et=ct.selectAll("g.bg-arc").data(Gt);Et.enter().append("g").classed("bg-arc",!0).append("path"),Et.select("path").call(rt).call(k),Et.exit().remove();var At=ot(P.gauge.bar.thickness),qt=ct.selectAll("g.value-arc").data([P.gauge.bar]);qt.enter().append("g").classed("value-arc",!0).append("path");var jt=qt.select("path");d(et)?(jt.transition().duration(et.duration).ease(et.easing).each("end",function(){Q&&Q()}).each("interrupt",function(){Q&&Q()}).attrTween("d",L(At,st(B[0].lastY),st(B[0].y))),P._lastValue=B[0].y):jt.attr("d",typeof B[0].y=="number"?At.endAngle(st(B[0].y)):"M0,0Z"),jt.call(k),qt.exit().remove(),Gt=[];var de=P.gauge.threshold.value;(de||de===0)&&Gt.push({range:[de,de],color:P.gauge.threshold.color,line:{color:P.gauge.threshold.line.color,width:P.gauge.threshold.line.width},thickness:P.gauge.threshold.thickness});var Xt=ct.selectAll("g.threshold-arc").data(Gt);Xt.enter().append("g").classed("threshold-arc",!0).append("path"),Xt.select("path").call(rt).call(k),Xt.exit().remove();var ye=ct.selectAll("g.gauge-outline").data([nt]);ye.enter().append("g").classed("gauge-outline",!0).append("path"),ye.select("path").call(rt).call(k),ye.exit().remove()}function g(O,j,B,U){var P=B[0].trace,N=U.numbersX,V=U.numbersY,Y=P.align||"center",K=v[Y],nt=U.transitionOpts,ft=U.onComplete,ct=E.ensureSingle(j,"g","numbers"),J,et,Q,Z=[];P._hasNumber&&Z.push("number"),P._hasDelta&&(Z.push("delta"),P.delta.position==="left"&&Z.reverse());var st=ct.selectAll("text").data(Z);st.enter().append("text"),st.attr("text-anchor",function(){return K}).attr("class",function(Ht){return Ht}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),st.exit().remove();function ot(Ht,Kt,Gt,Et){if(Ht.match("s")&&Gt>=0!=Et>=0&&!Kt(Gt).slice(-1).match(h)&&!Kt(Et).slice(-1).match(h)){var At=u(O,{tickformat:Ht.slice().replace("s","f").replace(/\d+/,function(qt){return parseInt(qt)-1})});return function(qt){return Math.abs(qt)<1?s.tickText(At,qt).text:Kt(qt)}}else return Kt}function rt(){var Ht=u(O,{tickformat:P.number.valueformat},P._range);Ht.setScale(),s.prepTicks(Ht);var Kt=function(jt){return s.tickText(Ht,jt).text},Gt=P.number.suffix,Et=P.number.prefix,At=ct.select("text.number");function qt(){var jt=typeof B[0].y=="number"?Et+Kt(B[0].y)+Gt:"-";At.text(jt).call(r.font,P.number.font).call(a.convertToTspans,O)}return d(nt)?At.transition().duration(nt.duration).ease(nt.easing).each("end",function(){qt(),ft&&ft()}).each("interrupt",function(){qt(),ft&&ft()}).attrTween("text",function(){var jt=S.select(this),de=t(B[0].lastY,B[0].y);P._lastValue=B[0].y;var Xt=ot(P.number.valueformat,Kt,B[0].lastY,B[0].y);return function(ye){jt.text(Et+Xt(de(ye))+Gt)}}):qt(),J=_(Et+Kt(B[0].y)+Gt,P.number.font,K,O),At}function X(){var Ht=u(O,{tickformat:P.delta.valueformat},P._range);Ht.setScale(),s.prepTicks(Ht);var Kt=function(ye){return s.tickText(Ht,ye).text},Gt=P.delta.suffix,Et=P.delta.prefix,At=function(ye){return P.delta.relative?ye.relativeDelta:ye.delta},qt=function(ye,Le){return ye===0||typeof ye!="number"||isNaN(ye)?"-":(ye>0?P.delta.increasing.symbol:P.delta.decreasing.symbol)+Et+Le(ye)+Gt},jt=function(ye){return ye.delta>=0?P.delta.increasing.color:P.delta.decreasing.color};P._deltaLastValue===void 0&&(P._deltaLastValue=At(B[0]));var de=ct.select("text.delta");de.call(r.font,P.delta.font).call(f.fill,jt({delta:P._deltaLastValue}));function Xt(){de.text(qt(At(B[0]),Kt)).call(f.fill,jt(B[0])).call(a.convertToTspans,O)}return d(nt)?de.transition().duration(nt.duration).ease(nt.easing).tween("text",function(){var ye=S.select(this),Le=At(B[0]),ve=P._deltaLastValue,ke=ot(P.delta.valueformat,Kt,ve,Le),Pe=t(ve,Le);return P._deltaLastValue=Le,function(me){ye.text(qt(Pe(me),ke)),ye.call(f.fill,jt({delta:Pe(me)}))}}).each("end",function(){Xt(),ft&&ft()}).each("interrupt",function(){Xt(),ft&&ft()}):Xt(),et=_(qt(At(B[0]),Kt),P.delta.font,K,O),de}var ut=P.mode+P.align,lt;if(P._hasDelta&&(lt=X(),ut+=P.delta.position+P.delta.font.size+P.delta.font.family+P.delta.valueformat,ut+=P.delta.increasing.symbol+P.delta.decreasing.symbol,Q=et),P._hasNumber&&(rt(),ut+=P.number.font.size+P.number.font.family+P.number.valueformat+P.number.suffix+P.number.prefix,Q=J),P._hasDelta&&P._hasNumber){var yt=[(J.left+J.right)/2,(J.top+J.bottom)/2],kt=[(et.left+et.right)/2,(et.top+et.bottom)/2],Lt,St,Ot=.75*P.delta.font.size;P.delta.position==="left"&&(Lt=F(P,"deltaPos",0,-1*(J.width*l[P.align]+et.width*(1-l[P.align])+Ot),ut,Math.min),St=yt[1]-kt[1],Q={width:J.width+et.width+Ot,height:Math.max(J.height,et.height),left:et.left+Lt,right:J.right,top:Math.min(J.top,et.top+St),bottom:Math.max(J.bottom,et.bottom+St)}),P.delta.position==="right"&&(Lt=F(P,"deltaPos",0,J.width*(1-l[P.align])+et.width*l[P.align]+Ot,ut,Math.max),St=yt[1]-kt[1],Q={width:J.width+et.width+Ot,height:Math.max(J.height,et.height),left:J.left,right:et.right+Lt,top:Math.min(J.top,et.top+St),bottom:Math.max(J.bottom,et.bottom+St)}),P.delta.position==="bottom"&&(Lt=null,St=et.height,Q={width:Math.max(J.width,et.width),height:J.height+et.height,left:Math.min(J.left,et.left),right:Math.max(J.right,et.right),top:J.bottom-J.height,bottom:J.bottom+et.height}),P.delta.position==="top"&&(Lt=null,St=J.top,Q={width:Math.max(J.width,et.width),height:J.height+et.height,left:Math.min(J.left,et.left),right:Math.max(J.right,et.right),top:J.bottom-J.height-et.height,bottom:J.bottom}),lt.attr({dx:Lt,dy:St})}(P._hasNumber||P._hasDelta)&&ct.attr("transform",function(){var Ht=U.numbersScaler(Q);ut+=Ht[2];var Kt=F(P,"numbersScale",1,Ht[0],ut,Math.min),Gt;P._scaleNumbers||(Kt=1),Gt=P._isAngular?V-Kt*Q.bottom:V-Kt*(Q.top+Q.bottom)/2,P._numbersTop=Kt*Q.top+Gt;var Et=Q[Y];Y==="center"&&(Et=(Q.left+Q.right)/2);var At=N-Kt*Et;return At=F(P,"numbersTranslate",0,At,ut,Math.max),p(At,Gt)+w(Kt)})}function k(O){O.each(function(j){f.stroke(S.select(this),j.line.color)}).each(function(j){f.fill(S.select(this),j.color)}).style("stroke-width",function(j){return j.line.width})}function L(O,j,B){return function(){var U=A(j,B);return function(P){return O.endAngle(U(P))()}}}function u(O,j,B){var U=O._fullLayout,P=E.extendFlat({type:"linear",ticks:"outside",range:B,showline:!0},j),N={type:"linear",_id:"x"+j._id},V={letter:"x",font:U.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function Y(K,nt){return E.coerce(P,N,x,K,nt)}return n(P,N,Y,V,U),m(P,N,Y,V),N}function T(O,j,B){return[Math.min(j/O.width,B/O.height),O,j+"x"+B]}function C(O,j){return[j/Math.sqrt(O.width/2*(O.width/2)+O.height*O.height),O,j]}function _(O,j,B,U){var P=document.createElementNS("http://www.w3.org/2000/svg","text"),N=S.select(P);return N.text(O).attr("x",0).attr("y",0).attr("text-anchor",B).attr("data-unformatted",O).call(a.convertToTspans,U).call(r.font,j),r.bBox(N.node())}function F(O,j,B,U,P,N){var V="_cache"+j;O[V]&&O[V].key===P||(O[V]={key:P,value:B});var Y=E.aggNums(N,null,[O[V].value,U],2);return O[V].value=Y,Y}}),70252:(function(tt,G,e){var S=e(87163),A=e(80712).axisHoverFormat,t=e(3208).rb,E=e(42450),w=e(9829),p=e(93049).extendFlat,c=e(13582).overrideAll;function i(a){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function r(a){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var o=tt.exports=c(p({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:i("x"),y:i("y"),z:i("z")},caps:{x:r("x"),y:r("y"),z:r("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:t(),xhoverformat:A("x"),yhoverformat:A("y"),zhoverformat:A("z"),valuehoverformat:A("value",1),showlegend:p({},w.showlegend,{dflt:!1})},S("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:E.opacity,lightposition:E.lightposition,lighting:E.lighting,flatshading:E.flatshading,contour:E.contour,hoverinfo:p({},w.hoverinfo)}),"calc","nested");o.flatshading.dflt=!0,o.lighting.facenormalsepsilon.dflt=0,o.x.editType=o.y.editType=o.z.editType=o.value.editType="calc+clearAxisTypes",o.transforms=void 0}),58988:(function(tt,G,e){var S=e(28379),A=e(36402).processGrid,t=e(36402).filter;tt.exports=function(E,w){w._len=Math.min(w.x.length,w.y.length,w.z.length,w.value.length),w._x=t(w.x,w._len),w._y=t(w.y,w._len),w._z=t(w.z,w._len),w._value=t(w.value,w._len);var p=A(w);w._gridFill=p.fill,w._Xs=p.Xs,w._Ys=p.Ys,w._Zs=p.Zs,w._len=p.len;for(var c=1/0,i=-1/0,r=0;r0;x--){var f=Math.min(m[x],m[x-1]),v=Math.max(m[x],m[x-1]);if(v>f&&f-1}function X(te,ee){return te===null?ee:te}function ut(te,ee,Bt){nt();var Wt=[ee],$t=[Bt];if(Z>=1)Wt=[ee],$t=[Bt];else if(Z>0){var Tt=ot(ee,Bt);Wt=Tt.xyzv,$t=Tt.abc}for(var _t=0;_t-1?Bt[Mt]:K(Ct,Ut,Zt);Be>-1?It[Mt]=Be:It[Mt]=ct(Ct,Ut,Zt,X(te,Me))}J(It[0],It[1],It[2])}}function lt(te,ee,Bt){var Wt=function($t,Tt,_t){ut(te,[ee[$t],ee[Tt],ee[_t]],[Bt[$t],Bt[Tt],Bt[_t]])};Wt(0,1,2),Wt(2,3,0)}function yt(te,ee,Bt){var Wt=function($t,Tt,_t){ut(te,[ee[$t],ee[Tt],ee[_t]],[Bt[$t],Bt[Tt],Bt[_t]])};Wt(0,1,2),Wt(3,0,1),Wt(2,3,0),Wt(1,2,3)}function kt(te,ee,Bt,Wt){var $t=te[3];$tWt&&($t=Wt);for(var Tt=(te[3]-$t)/(te[3]-ee[3]+1e-9),_t=[],It=0;It<4;It++)_t[It]=(1-Tt)*te[It]+Tt*ee[It];return _t}function Lt(te,ee,Bt){return te>=ee&&te<=Bt}function St(te){var ee=.001*(U-B);return te>=B-ee&&te<=U+ee}function Ot(te){for(var ee=[],Bt=0;Bt<4;Bt++){var Wt=te[Bt];ee.push([n._x[Wt],n._y[Wt],n._z[Wt],n._value[Wt]])}return ee}var Ht=3;function Kt(te,ee,Bt,Wt,$t,Tt){Tt||(Tt=1),Bt=[-1,-1,-1];var _t=!1,It=[Lt(ee[0][3],Wt,$t),Lt(ee[1][3],Wt,$t),Lt(ee[2][3],Wt,$t)];if(!It[0]&&!It[1]&&!It[2])return!1;var Mt=function(Ut,Zt,Me){return St(Zt[0][3])&&St(Zt[1][3])&&St(Zt[2][3])?(ut(Ut,Zt,Me),!0):TtMath.abs(Tt-j)?[O,Tt]:[Tt,j];Pe(ee,_t[0],_t[1])}}var It=[[Math.min(B,j),Math.max(B,j)],[Math.min(O,U),Math.max(O,U)]];["x","y","z"].forEach(function(Mt){for(var Ct=[],Ut=0;Ut0&&(Ne.push(He.id),Mt==="x"?sr.push([He.distRatio,0,0]):Mt==="y"?sr.push([0,He.distRatio,0]):sr.push([0,0,He.distRatio]))}else Ee=Mt==="x"?nr(1,u-1):Mt==="y"?nr(1,T-1):nr(1,C-1);Ne.length>0&&(Mt==="x"?Ct[Zt]=me(te,Ne,Me,Be,sr,Ct[Zt]):Mt==="y"?Ct[Zt]=be(te,Ne,Me,Be,sr,Ct[Zt]):Ct[Zt]=je(te,Ne,Me,Be,sr,Ct[Zt]),Zt++),Ee.length>0&&(Mt==="x"?Ct[Zt]=Xt(te,Ee,Me,Be,Ct[Zt]):Mt==="y"?Ct[Zt]=ye(te,Ee,Me,Be,Ct[Zt]):Ct[Zt]=Le(te,Ee,Me,Be,Ct[Zt]),Zt++)}var or=n.caps[Mt];or.show&&or.fill&&(st(or.fill),Mt==="x"?Ct[Zt]=Xt(te,[0,u-1],Me,Be,Ct[Zt]):Mt==="y"?Ct[Zt]=ye(te,[0,T-1],Me,Be,Ct[Zt]):Ct[Zt]=Le(te,[0,C-1],Me,Be,Ct[Zt]),Zt++)}}),d===0&&ft(),n._meshX=P,n._meshY=N,n._meshZ=V,n._meshIntensity=Y,n._Xs=g,n._Ys=k,n._Zs=L}return Qt(),n}function s(n,m){var x=n.glplot.gl,f=S({gl:x}),v=new i(n,f,m.uid);return f._trace=v,v.update(m),n.glplot.add(f),v}tt.exports={findNearestOnAxis:c,generateIsoMeshes:a,createIsosurfaceTrace:s}}),44731:(function(tt,G,e){var S=e(34809),A=e(33626),t=e(70252),E=e(39356);function w(c,i,r,o){function a(s,n){return S.coerce(c,i,t,s,n)}p(c,i,r,o,a)}function p(c,i,r,o,a){var s=a("isomin"),n=a("isomax");n!=null&&s!=null&&s>n&&(i.isomin=null,i.isomax=null);var m=a("x"),x=a("y"),f=a("z"),v=a("value");if(!m||!m.length||!x||!x.length||!f||!f.length||!v||!v.length){i.visible=!1;return}A.getComponentMethod("calendars","handleTraceDefaults")(c,i,["x","y","z"],o),a("valuehoverformat"),["x","y","z"].forEach(function(l){a(l+"hoverformat");var h="caps."+l;a(h+".show")&&a(h+".fill");var d="slices."+l;a(d+".show")&&(a(d+".fill"),a(d+".locations"))}),a("spaceframe.show")&&a("spaceframe.fill"),a("surface.show")&&(a("surface.count"),a("surface.fill"),a("surface.pattern")),a("contour.show")&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(l){a(l)}),E(c,i,o,a,{prefix:"",cLetter:"c"}),i._length=null}tt.exports={supplyDefaults:w,supplyIsoDefaults:p}}),75297:(function(tt,G,e){tt.exports={attributes:e(70252),supplyDefaults:e(44731).supplyDefaults,calc:e(58988),colorbar:{min:"cmin",max:"cmax"},plot:e(91370).createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:e(2487),categories:["gl3d","showLegend"],meta:{}}}),42450:(function(tt,G,e){var S=e(87163),A=e(80712).axisHoverFormat,t=e(3208).rb,E=e(16131),w=e(9829),p=e(93049).extendFlat;tt.exports=p({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:t({editType:"calc"}),xhoverformat:A("x"),yhoverformat:A("y"),zhoverformat:A("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},S("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:E.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:p({},E.contours.x.show,{}),color:E.contours.x.color,width:E.contours.x.width,editType:"calc"},lightposition:{x:p({},E.lightposition.x,{dflt:1e5}),y:p({},E.lightposition.y,{dflt:1e5}),z:p({},E.lightposition.z,{dflt:0}),editType:"calc"},lighting:p({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},E.lighting),hoverinfo:p({},w.hoverinfo,{editType:"calc"}),showlegend:p({},w.showlegend,{dflt:!1})})}),44878:(function(tt,G,e){var S=e(28379);tt.exports=function(A,t){t.intensity&&S(A,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}}),82836:(function(tt,G,e){var S=e(99098).gl_mesh3d,A=e(99098).delaunay_triangulate,t=e(99098).alpha_shape,E=e(99098).convex_hull,w=e(46998).parseColorScale,p=e(34809).isArrayOrTypedArray,c=e(55010),i=e(88856).extractOpts,r=e(88239);function o(l,h,d){this.scene=l,this.uid=d,this.mesh=h,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var a=o.prototype;a.handlePick=function(l){if(l.object===this.mesh){var h=l.index=l.data.index;l.data._cellCenter?l.traceCoordinate=l.data.dataCoordinate:l.traceCoordinate=[this.data.x[h],this.data.y[h],this.data.z[h]];var d=this.data.hovertext||this.data.text;return p(d)&&d[h]!==void 0?l.textLabel=d[h]:d&&(l.textLabel=d),!0}};function s(l){for(var h=[],d=l.length,b=0;b=h-.5)return!1;return!0}a.update=function(l){var h=this.scene,d=h.fullSceneLayout;this.data=l;var b=l.x.length,M=r(n(d.xaxis,l.x,h.dataScale[0],l.xcalendar),n(d.yaxis,l.y,h.dataScale[1],l.ycalendar),n(d.zaxis,l.z,h.dataScale[2],l.zcalendar)),g;if(l.i&&l.j&&l.k){if(l.i.length!==l.j.length||l.j.length!==l.k.length||!f(l.i,b)||!f(l.j,b)||!f(l.k,b))return;g=r(m(l.i),m(l.j),m(l.k))}else g=l.alphahull===0?E(M):l.alphahull>0?t(l.alphahull,M):x(l.delaunayaxis,M);var k={positions:M,cells:g,lightPosition:[l.lightposition.x,l.lightposition.y,l.lightposition.z],ambient:l.lighting.ambient,diffuse:l.lighting.diffuse,specular:l.lighting.specular,roughness:l.lighting.roughness,fresnel:l.lighting.fresnel,vertexNormalsEpsilon:l.lighting.vertexnormalsepsilon,faceNormalsEpsilon:l.lighting.facenormalsepsilon,opacity:l.opacity,contourEnable:l.contour.show,contourColor:c(l.contour.color).slice(0,3),contourWidth:l.contour.width,useFacetNormals:l.flatshading};if(l.intensity){var L=i(l);this.color="#fff";var u=l.intensitymode;k[u+"Intensity"]=l.intensity,k[u+"IntensityBounds"]=[L.min,L.max],k.colormap=w(l)}else l.vertexcolor?(this.color=l.vertexcolor[0],k.vertexColors=s(l.vertexcolor)):l.facecolor?(this.color=l.facecolor[0],k.cellColors=s(l.facecolor)):(this.color=l.color,k.meshColor=c(l.color));this.mesh.update(k)},a.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function v(l,h){var d=l.glplot.gl,b=S({gl:d}),M=new o(l,b,h.uid);return b._trace=M,M.update(h),l.glplot.add(b),M}tt.exports=v}),13573:(function(tt,G,e){var S=e(33626),A=e(34809),t=e(39356),E=e(42450);tt.exports=function(w,p,c,i){function r(a,s){return A.coerce(w,p,E,a,s)}function o(a){var s=a.map(function(n){var m=r(n);return m&&A.isArrayOrTypedArray(m)?m:null});return s.every(function(n){return n&&n.length===s[0].length})&&s}if(!o(["x","y","z"])){p.visible=!1;return}if(o(["i","j","k"]),p.i&&(!p.j||!p.k)||p.j&&(!p.k||!p.i)||p.k&&(!p.i||!p.j)){p.visible=!1;return}S.getComponentMethod("calendars","handleTraceDefaults")(w,p,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(a){r(a)}),r("contour.show")&&(r("contour.color"),r("contour.width")),"intensity"in w?(r("intensity"),r("intensitymode"),t(w,p,i,r,{prefix:"",cLetter:"c"})):(p.showscale=!1,"facecolor"in w?r("facecolor"):"vertexcolor"in w?r("vertexcolor"):r("color",c)),r("text"),r("hovertext"),r("hovertemplate"),r("xhoverformat"),r("yhoverformat"),r("zhoverformat"),p._length=null}}),58859:(function(tt,G,e){tt.exports={attributes:e(42450),supplyDefaults:e(13573),calc:e(44878),colorbar:{min:"cmin",max:"cmax"},plot:e(82836),moduleType:"trace",name:"mesh3d",basePlotModule:e(2487),categories:["gl3d","showLegend"],meta:{}}}),86706:(function(tt,G,e){var S=e(34809).extendFlat,A=e(36640),t=e(80712).axisHoverFormat,E=e(94850).T,w=e(70192),p=e(20909),c=p.INCREASING.COLOR,i=p.DECREASING.COLOR,r=A.line;function o(a){return{line:{color:S({},r.color,{dflt:a}),width:r.width,dash:E,editType:"style"},editType:"style"}}tt.exports={xperiod:A.xperiod,xperiod0:A.xperiod0,xperiodalignment:A.xperiodalignment,xhoverformat:t("x"),yhoverformat:t("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:S({},r.width,{}),dash:S({},E,{}),editType:"style"},increasing:o(c),decreasing:o(i),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:S({},w.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:A.zorder}}),95694:(function(tt,G,e){var S=e(34809),A=S._,t=e(29714),E=e(40528),w=e(63821).BADNUM;function p(o,a){var s=t.getFromId(o,a.xaxis),n=t.getFromId(o,a.yaxis),m=r(o,s,a),x=a._minDiff;a._minDiff=null;var f=a._origX;a._origX=null;var v=a._xcalc;a._xcalc=null;var l=i(o,a,f,v,n,c);return a._extremes[s._id]=t.findExtremes(s,v,{vpad:x/2}),l.length?(S.extendFlat(l[0].t,{wHover:x/2,tickLen:m}),l):[{t:{empty:!0}}]}function c(o,a,s,n){return{o,h:a,l:s,c:n}}function i(o,a,s,n,m,x){for(var f=m.makeCalcdata(a,"open"),v=m.makeCalcdata(a,"high"),l=m.makeCalcdata(a,"low"),h=m.makeCalcdata(a,"close"),d=S.isArrayOrTypedArray(a.text),b=S.isArrayOrTypedArray(a.hovertext),M=!0,g=null,k=!!a.xperiodalignment,L=[],u=0;ug):M=O>C,g=O;var j=x(C,_,F,O);j.pos=T,j.yc=(C+O)/2,j.i=u,j.dir=M?"increasing":"decreasing",j.x=j.pos,j.y=[F,_],k&&(j.orig_p=s[u]),d&&(j.tx=a.text[u]),b&&(j.htx=a.hovertext[u]),L.push(j)}else L.push({pos:T,empty:!0})}return a._extremes[m._id]=t.findExtremes(m,S.concat(l,v),{padded:!0}),L.length&&(L[0].t={labels:{open:A(o,"open:")+" ",high:A(o,"high:")+" ",low:A(o,"low:")+" ",close:A(o,"close:")+" "}}),L}function r(o,a,s){var n=s._minDiff;if(!n){var m=o._fullData,x=[];n=1/0;var f;for(f=0;f"+h.labels[T]+S.hoverLabelText(v,C,l.yhoverformat)):(F=A.extendFlat({},b),F.y0=F.y1=_,F.yLabelVal=C,F.yLabel=h.labels[T]+S.hoverLabelText(v,C,l.yhoverformat),F.name="",d.push(F),L[C]=F)}return d}function a(s,n,m,x){var f=s.cd,v=s.ya,l=f[0].trace,h=f[0].t,d=r(s,n,m,x);if(!d)return[];var b=f[d.index],M=d.index=b.i,g=b.dir;function k(O){return h.labels[O]+S.hoverLabelText(v,l[O][M],l.yhoverformat)}var L=b.hi||l.hoverinfo,u=L.split("+"),T=L==="all",C=T||u.indexOf("y")!==-1,_=T||u.indexOf("text")!==-1,F=C?[k("open"),k("high"),k("low"),k("close")+" "+c[g]]:[];return _&&w(b,l,F),d.extraText=F.join("
"),d.y0=d.y1=v.c2p(b.yc,!0),[d]}tt.exports={hoverPoints:i,hoverSplit:o,hoverOnPoints:a}}),12683:(function(tt,G,e){tt.exports={moduleType:"trace",name:"ohlc",basePlotModule:e(37703),categories:["cartesian","svg","showLegend"],meta:{},attributes:e(86706),supplyDefaults:e(22629),calc:e(95694).calc,plot:e(38956),style:e(57406),hoverPoints:e(93245).hoverPoints,selectPoints:e(49343)}}),28270:(function(tt,G,e){var S=e(33626),A=e(34809);tt.exports=function(t,E,w,p){var c=w("x"),i=w("open"),r=w("high"),o=w("low"),a=w("close");if(w("hoverlabel.split"),S.getComponentMethod("calendars","handleTraceDefaults")(t,E,["x"],p),i&&r&&o&&a){var s=Math.min(i.length,r.length,o.length,a.length);return c&&(s=Math.min(s,A.minRowLength(c))),E._length=s,s}}}),38956:(function(tt,G,e){var S=e(45568),A=e(34809);tt.exports=function(t,E,w,p){var c=E.yaxis,i=E.xaxis,r=!!i.rangebreaks;A.makeTraceGroups(p,w,"trace ohlc").each(function(o){var a=S.select(this),s=o[0],n=s.t;if(s.trace.visible!==!0||n.empty){a.remove();return}var m=n.tickLen,x=a.selectAll("path").data(A.identity);x.enter().append("path"),x.exit().remove(),x.attr("d",function(f){if(f.empty)return"M0,0Z";var v=i.c2p(f.pos-m,!0),l=i.c2p(f.pos+m,!0),h=r?(v+l)/2:i.c2p(f.pos,!0),d=c.c2p(f.o,!0),b=c.c2p(f.h,!0),M=c.c2p(f.l,!0),g=c.c2p(f.c,!0);return"M"+v+","+d+"H"+h+"M"+h+","+b+"V"+M+"M"+l+","+g+"H"+h})})}}),49343:(function(tt){tt.exports=function(G,e){var S=G.cd,A=G.xaxis,t=G.yaxis,E=[],w,p=S[0].t.bPos||0;if(e===!1)for(w=0;w=l.length||h[l[d]]!==void 0)return!1;h[l[d]]=!0}return!0}}),62651:(function(tt,G,e){var S=e(34809),A=e(65477).hasColorscale,t=e(39356),E=e(13792).N,w=e(59008),p=e(11660),c=e(63197),i=e(87800).isTypedArraySpec;function r(a,s,n,m,x){x("line.shape"),x("line.hovertemplate");var f=x("line.color",m.colorway[0]);if(A(a,"line")&&S.isArrayOrTypedArray(f)){if(f.length)return x("line.colorscale"),t(a,s,m,x,{prefix:"line.",cLetter:"c"}),f.length;s.line.color=n}return 1/0}function o(a,s){function n(d,b){return S.coerce(a,s,p.dimensions,d,b)}var m=n("values"),x=n("visible");if(m&&m.length||(x=s.visible=!1),x){n("label"),n("displayindex",s._index);var f=a.categoryarray,v=S.isArrayOrTypedArray(f)&&f.length>0||i(f),l;v&&(l="array");var h=n("categoryorder",l);h==="array"?(n("categoryarray"),n("ticktext")):(delete a.categoryarray,delete a.ticktext),!v&&h==="array"&&(s.categoryorder="trace")}}tt.exports=function(a,s,n,m){function x(h,d){return S.coerce(a,s,p,h,d)}var f=w(a,s,{name:"dimensions",handleItemDefaults:o}),v=r(a,s,n,m,x);E(s,m,x),(!Array.isArray(f)||!f.length)&&(s.visible=!1),c(s,f,"values",v),x("hoveron"),x("hovertemplate"),x("arrangement"),x("bundlecolors"),x("sortpaths"),x("counts");var l=m.font;S.coerceFont(x,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),S.coerceFont(x,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}}),6305:(function(tt,G,e){tt.exports={attributes:e(11660),supplyDefaults:e(62651),calc:e(95564),plot:e(37822),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:e(83260),categories:["noOpacity"],meta:{}}}),27219:(function(tt,G,e){var S=e(45568),A=e(88640).Dj,t=e(31420),E=e(32141),w=e(34809),p=w.strTranslate,c=e(62203),i=e(65657),r=e(30635);function o(Z,st,ot,rt){var X=st._context.staticPlot,ut=Z.map(ft.bind(0,st,ot)),lt=rt.selectAll("g.parcatslayer").data([null]);lt.enter().append("g").attr("class","parcatslayer").style("pointer-events",X?"none":"all");var yt=lt.selectAll("g.trace.parcats").data(ut,a),kt=yt.enter().append("g").attr("class","trace parcats");yt.attr("transform",function(At){return p(At.x,At.y)}),kt.append("g").attr("class","paths");var Lt=yt.select("g.paths").selectAll("path.path").data(function(At){return At.paths},a);Lt.attr("fill",function(At){return At.model.color});var St=Lt.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(At){return At.model.color}).attr("fill-opacity",0);h(St),Lt.attr("d",function(At){return At.svgD}),St.empty()||Lt.sort(n),Lt.exit().remove(),Lt.on("mouseover",m).on("mouseout",x).on("click",l),kt.append("g").attr("class","dimensions");var Ot=yt.select("g.dimensions").selectAll("g.dimension").data(function(At){return At.dimensions},a);Ot.enter().append("g").attr("class","dimension"),Ot.attr("transform",function(At){return p(At.x,0)}),Ot.exit().remove();var Ht=Ot.selectAll("g.category").data(function(At){return At.categories},a),Kt=Ht.enter().append("g").attr("class","category");Ht.attr("transform",function(At){return p(0,At.y)}),Kt.append("rect").attr("class","catrect").attr("pointer-events","none"),Ht.select("rect.catrect").attr("fill","none").attr("width",function(At){return At.width}).attr("height",function(At){return At.height}),M(Kt);var Gt=Ht.selectAll("rect.bandrect").data(function(At){return At.bands},a);Gt.each(function(){w.raiseToTop(this)}),Gt.attr("fill",function(At){return At.color});var Et=Gt.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(At){return At.color}).attr("fill-opacity",0);Gt.attr("fill",function(At){return At.color}).attr("width",function(At){return At.width}).attr("height",function(At){return At.height}).attr("y",function(At){return At.y}).attr("cursor",function(At){return At.parcatsViewModel.arrangement==="fixed"?"default":At.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),k(Et),Gt.exit().remove(),Kt.append("text").attr("class","catlabel").attr("pointer-events","none"),Ht.select("text.catlabel").attr("text-anchor",function(At){return s(At)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(At){return s(At)?At.width+5:-5}).attr("y",function(At){return At.height/2}).text(function(At){return At.model.categoryLabel}).each(function(At){c.font(S.select(this),At.parcatsViewModel.categorylabelfont),r.convertToTspans(S.select(this),st)}),Kt.append("text").attr("class","dimlabel"),Ht.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(At){return At.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(At){return At.width/2}).attr("y",-5).text(function(At,qt){return qt===0?At.parcatsViewModel.model.dimensions[At.model.dimensionInd].dimensionLabel:null}).each(function(At){c.font(S.select(this),At.parcatsViewModel.labelfont)}),Ht.selectAll("rect.bandrect").on("mouseover",B).on("mouseout",U),Ht.exit().remove(),Ot.call(S.behavior.drag().origin(function(At){return{x:At.x,y:0}}).on("dragstart",P).on("drag",N).on("dragend",V)),yt.each(function(At){At.traceSelection=S.select(this),At.pathSelection=S.select(this).selectAll("g.paths").selectAll("path.path"),At.dimensionSelection=S.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),yt.exit().remove()}tt.exports=function(Z,st,ot,rt){o(ot,Z,rt,st)};function a(Z){return Z.key}function s(Z){var st=Z.parcatsViewModel.dimensions.length,ot=Z.parcatsViewModel.dimensions[st-1].model.dimensionInd;return Z.model.dimensionInd===ot}function n(Z,st){return Z.model.rawColor>st.model.rawColor?1:Z.model.rawColor"),Le=S.mouse(X)[0];E.loneHover({trace:ut,x:Gt-yt.left+kt.left,y:Et-yt.top+kt.top,text:ye,color:Z.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:At,idealAlign:Le1&&Lt.displayInd===kt.dimensions.length-1?(Ht=lt.left,Kt="left"):(Ht=lt.left+lt.width,Kt="right");var Gt=yt.model.count,Et=yt.model.categoryLabel,At=Gt/yt.parcatsViewModel.model.count,qt={countLabel:Gt,categoryLabel:Et,probabilityLabel:At.toFixed(3)},jt=[];yt.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&jt.push(["Count:",qt.countLabel].join(" ")),yt.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&jt.push(["P("+qt.categoryLabel+"):",qt.probabilityLabel].join(" "));var de=jt.join("
");return{trace:St,x:rt*(Ht-st.left),y:X*(Ot-st.top),text:de,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:Kt,hovertemplate:St.hovertemplate,hovertemplateLabels:qt,eventData:[{data:St._input,fullData:St,count:Gt,category:Et,probability:At}]}}function O(Z,st,ot){var rt=[];return S.select(ot.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var X=this;rt.push(F(Z,st,X))}),rt}function j(Z,st,ot){Z._fullLayout._calcInverseTransform(Z);var rt=Z._fullLayout._invScaleX,X=Z._fullLayout._invScaleY,ut=ot.getBoundingClientRect(),lt=S.select(ot).datum(),yt=lt.categoryViewModel,kt=yt.parcatsViewModel,Lt=kt.model.dimensions[yt.model.dimensionInd],St=kt.trace,Ot=ut.y+ut.height/2,Ht,Kt;kt.dimensions.length>1&&Lt.displayInd===kt.dimensions.length-1?(Ht=ut.left,Kt="left"):(Ht=ut.left+ut.width,Kt="right");var Gt=yt.model.categoryLabel,Et=lt.parcatsViewModel.model.count,At=0;lt.categoryViewModel.bands.forEach(function(me){me.color===lt.color&&(At+=me.count)});var qt=yt.model.count,jt=0;kt.pathSelection.each(function(me){me.model.color===lt.color&&(jt+=me.model.count)});var de=At/Et,Xt=At/jt,ye=At/qt,Le={countLabel:At,categoryLabel:Gt,probabilityLabel:de.toFixed(3)},ve=[];yt.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&ve.push(["Count:",Le.countLabel].join(" ")),yt.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(ve.push("P(color \u2229 "+Gt+"): "+Le.probabilityLabel),ve.push("P("+Gt+" | color): "+Xt.toFixed(3)),ve.push("P(color | "+Gt+"): "+ye.toFixed(3)));var ke=ve.join("
"),Pe=i.mostReadable(lt.color,["black","white"]);return{trace:St,x:rt*(Ht-st.left),y:X*(Ot-st.top),text:ke,color:lt.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:Pe,fontSize:10,idealAlign:Kt,hovertemplate:St.hovertemplate,hovertemplateLabels:Le,eventData:[{data:St._input,fullData:St,category:Gt,count:Et,probability:de,categorycount:qt,colorcount:jt,bandcolorcount:At}]}}function B(Z){if(!Z.parcatsViewModel.dragDimension&&Z.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){if(S.mouse(this)[1]<-1)return;var st=Z.parcatsViewModel.graphDiv,ot=st._fullLayout,rt=ot._paperdiv.node().getBoundingClientRect(),X=Z.parcatsViewModel.hoveron,ut=this;if(X==="color"?(T(ut),_(ut,"plotly_hover",S.event)):(u(ut),C(ut,"plotly_hover",S.event)),Z.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var lt;X==="category"?lt=F(st,rt,ut):X==="color"?lt=j(st,rt,ut):X==="dimension"&&(lt=O(st,rt,ut)),lt&&E.loneHover(lt,{container:ot._hoverlayer.node(),outerContainer:ot._paper.node(),gd:st})}}}function U(Z){var st=Z.parcatsViewModel;if(!st.dragDimension&&(h(st.pathSelection),M(st.dimensionSelection.selectAll("g.category")),k(st.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),E.loneUnhover(st.graphDiv._fullLayout._hoverlayer.node()),st.pathSelection.sort(n),st.hoverinfoItems.indexOf("skip")===-1)){var ot=Z.parcatsViewModel.hoveron,rt=this;ot==="color"?_(rt,"plotly_unhover",S.event):C(rt,"plotly_unhover",S.event)}}function P(Z){Z.parcatsViewModel.arrangement!=="fixed"&&(Z.dragDimensionDisplayInd=Z.model.displayInd,Z.initialDragDimensionDisplayInds=Z.parcatsViewModel.model.dimensions.map(function(st){return st.displayInd}),Z.dragHasMoved=!1,Z.dragCategoryDisplayInd=null,S.select(this).selectAll("g.category").select("rect.catrect").each(function(st){var ot=S.mouse(this)[0],rt=S.mouse(this)[1];-2<=ot&&ot<=st.width+2&&-2<=rt&&rt<=st.height+2&&(Z.dragCategoryDisplayInd=st.model.displayInd,Z.initialDragCategoryDisplayInds=Z.model.categories.map(function(X){return X.displayInd}),st.model.dragY=st.y,w.raiseToTop(this.parentNode),S.select(this.parentNode).selectAll("rect.bandrect").each(function(X){X.ySt.y+St.height/2&&(ut.model.displayInd=St.model.displayInd,St.model.displayInd=yt),Z.dragCategoryDisplayInd=ut.model.displayInd}if(Z.dragCategoryDisplayInd===null||Z.parcatsViewModel.arrangement==="freeform"){X.model.dragX=S.event.x;var Ot=Z.parcatsViewModel.dimensions[ot],Ht=Z.parcatsViewModel.dimensions[rt];Ot!==void 0&&X.model.dragXHt.x&&(X.model.displayInd=Ht.model.displayInd,Ht.model.displayInd=Z.dragDimensionDisplayInd),Z.dragDimensionDisplayInd=X.model.displayInd}et(Z.parcatsViewModel),J(Z.parcatsViewModel),nt(Z.parcatsViewModel),K(Z.parcatsViewModel)}}function V(Z){if(Z.parcatsViewModel.arrangement!=="fixed"&&Z.dragDimensionDisplayInd!==null){S.select(this).selectAll("text").attr("font-weight","normal");var st={},ot=Y(Z.parcatsViewModel),rt=Z.parcatsViewModel.model.dimensions.map(function(Ot){return Ot.displayInd}),X=Z.initialDragDimensionDisplayInds.some(function(Ot,Ht){return Ot!==rt[Ht]});X&&rt.forEach(function(Ot,Ht){var Kt=Z.parcatsViewModel.model.dimensions[Ht].containerInd;st["dimensions["+Kt+"].displayindex"]=Ot});var ut=!1;if(Z.dragCategoryDisplayInd!==null){var lt=Z.model.categories.map(function(Ot){return Ot.displayInd});if(ut=Z.initialDragCategoryDisplayInds.some(function(Ot,Ht){return Ot!==lt[Ht]}),ut){var yt=Z.model.categories.slice().sort(function(Ot,Ht){return Ot.displayInd-Ht.displayInd}),kt=yt.map(function(Ot){return Ot.categoryValue}),Lt=yt.map(function(Ot){return Ot.categoryLabel});st["dimensions["+Z.model.containerInd+"].categoryarray"]=[kt],st["dimensions["+Z.model.containerInd+"].ticktext"]=[Lt],st["dimensions["+Z.model.containerInd+"].categoryorder"]="array"}}if(Z.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!Z.dragHasMoved&&Z.potentialClickBand&&(Z.parcatsViewModel.hoveron==="color"?_(Z.potentialClickBand,"plotly_click",S.event.sourceEvent):C(Z.potentialClickBand,"plotly_click",S.event.sourceEvent)),Z.model.dragX=null,Z.dragCategoryDisplayInd!==null){var St=Z.parcatsViewModel.dimensions[Z.dragDimensionDisplayInd].categories[Z.dragCategoryDisplayInd];St.model.dragY=null,Z.dragCategoryDisplayInd=null}Z.dragDimensionDisplayInd=null,Z.parcatsViewModel.dragDimension=null,Z.dragHasMoved=null,Z.potentialClickBand=null,et(Z.parcatsViewModel),J(Z.parcatsViewModel),S.transition().duration(300).ease("cubic-in-out").each(function(){nt(Z.parcatsViewModel,!0),K(Z.parcatsViewModel,!0)}).each("end",function(){(X||ut)&&t.restyle(Z.parcatsViewModel.graphDiv,st,[ot])})}}function Y(Z){for(var st,ot=Z.graphDiv._fullData,rt=0;rt=0;kt--)Lt+="C"+lt[kt]+","+(st[kt+1]+rt)+" "+ut[kt]+","+(st[kt]+rt)+" "+(Z[kt]+ot[kt])+","+(st[kt]+rt),Lt+="l-"+ot[kt]+",0 ";return Lt+="Z",Lt}function J(Z){var st=Z.dimensions,ot=Z.model,rt=st.map(function(nr){return nr.categories.map(function(Vt){return Vt.y})}),X=Z.model.dimensions.map(function(nr){return nr.categories.map(function(Vt){return Vt.displayInd})}),ut=Z.model.dimensions.map(function(nr){return nr.displayInd}),lt=Z.dimensions.map(function(nr){return nr.model.dimensionInd}),yt=st.map(function(nr){return nr.x}),kt=st.map(function(nr){return nr.width}),Lt=[];for(var St in ot.paths)ot.paths.hasOwnProperty(St)&&Lt.push(ot.paths[St]);function Ot(nr){var Vt=nr.categoryInds.map(function(Qt,te){return X[te][Qt]});return lt.map(function(Qt){return Vt[Qt]})}Lt.sort(function(nr,Vt){var Qt=Ot(nr),te=Ot(Vt);return Z.sortpaths==="backward"&&(Qt.reverse(),te.reverse()),Qt.push(nr.valueInds[0]),te.push(Vt.valueInds[0]),Z.bundlecolors&&(Qt.unshift(nr.rawColor),te.unshift(Vt.rawColor)),Qtte?1:0});for(var Ht=Array(Lt.length),Kt=st[0].model.count,Gt=st[0].categories.map(function(nr){return nr.height}).reduce(function(nr,Vt){return nr+Vt}),Et=0;Et0?Gt*(At.count/Kt):0,jt=Array(rt.length),de=0;de1?(Z.width-2*ot-rt)/(X-1):0)*ut,yt=[],kt=Z.model.maxCats,Lt=st.categories.length,St=8,Ot=st.count,Ht=Z.height-St*(kt-1),Kt,Gt,Et,At,qt,jt=(kt-Lt)*St/2,de=st.categories.map(function(Xt){return{displayInd:Xt.displayInd,categoryInd:Xt.categoryInd}});for(de.sort(function(Xt,ye){return Xt.displayInd-ye.displayInd}),qt=0;qt0?Gt.count/Ot*Ht:0,Et={key:Gt.valueInds[0],model:Gt,width:rt,height:Kt,y:Gt.dragY===null?jt:Gt.dragY,bands:[],parcatsViewModel:Z},jt=jt+Kt+St,yt.push(Et);return{key:st.dimensionInd,x:st.dragX===null?lt:st.dragX,y:0,width:rt,model:st,categories:yt,parcatsViewModel:Z,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}}),37822:(function(tt,G,e){var S=e(27219);tt.exports=function(A,t,E,w){var p=A._fullLayout,c=p._paper,i=p._size;S(A,c,t,{width:i.w,height:i.h,margin:{t:i.t,r:i.r,b:i.b,l:i.l}},E,w)}}),59549:(function(tt,G,e){var S=e(87163),A=e(25829),t=e(80337),E=e(13792).u,w=e(93049).extendFlat,p=e(78032).templatedArray;tt.exports={domain:E({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:t({editType:"plot"}),tickfont:t({autoShadowDflt:!0,editType:"plot"}),rangefont:t({editType:"plot"}),dimensions:p("dimension",{label:{valType:"string",editType:"plot"},tickvals:w({},A.tickvals,{editType:"plot"}),ticktext:w({},A.ticktext,{editType:"plot"}),tickformat:w({},A.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:w({editType:"calc"},S("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}}),23245:(function(tt,G,e){var S=e(77911),A=e(45568),t=e(71293).keyFun,E=e(71293).repeat,w=e(34809).sorterAsc,p=e(34809).strTranslate,c=S.bar.snapRatio;function i(V,Y){return V*(1-c)+Y*c}var r=S.bar.snapClose;function o(V,Y){return V*(1-r)+Y*r}function a(V,Y,K,nt){if(s(K,nt))return K;var ft=V?-1:1,ct=0,J=Y.length-1;if(ft<0){var et=ct;ct=J,J=et}for(var Q=Y[ct],Z=Q,st=ct;ft*st=Y[K][0]&&V<=Y[K][1])return!0;return!1}function n(V){V.attr("x",-S.bar.captureWidth/2).attr("width",S.bar.captureWidth)}function m(V){V.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function x(V){if(!V.brush.filterSpecified)return"0,"+V.height;for(var Y=f(V.brush.filter.getConsolidated(),V.height),K=[0],nt,ft,ct,J=Y.length?Y[0][0]:null,et=0;etV[1]+K||Y=.9*V[1]+.1*V[0]?"n":Y<=.9*V[0]+.1*V[1]?"s":"ns"}function l(){A.select(document.body).style("cursor",null)}function h(V){V.attr("stroke-dasharray",x)}function d(V,Y){var K=A.select(V).selectAll(".highlight, .highlight-shadow");h(Y?K.transition().duration(S.bar.snapDuration).each("end",Y):K)}function b(V,Y){var K=V.brush,nt=K.filterSpecified,ft=NaN,ct={},J;if(nt){var et=V.height,Q=K.filter.getConsolidated(),Z=f(Q,et),st=NaN,ot=NaN,rt=NaN;for(J=0;J<=Z.length;J++){var X=Z[J];if(X&&X[0]<=Y&&Y<=X[1]){st=J;break}else if(ot=J?J-1:NaN,X&&X[0]>Y){rt=J;break}}if(ft=st,isNaN(ft)&&(ft=isNaN(ot)||isNaN(rt)?isNaN(ot)?rt:ot:Y-Z[ot][1]=Lt[0]&&kt<=Lt[1]){ct.clickableOrdinalRange=Lt;break}}}return ct}function M(V,Y){A.event.sourceEvent.stopPropagation();var K=Y.height-A.mouse(V)[1]-2*S.verticalPadding,nt=Y.unitToPaddedPx.invert(K),ft=Y.brush,ct=b(Y,K),J=ct.interval,et=ft.svgBrush;if(et.wasDragged=!1,et.grabbingBar=ct.region==="ns",et.grabbingBar){var Q=J.map(Y.unitToPaddedPx);et.grabPoint=K-Q[0]-S.verticalPadding,et.barLength=Q[1]-Q[0]}et.clickableOrdinalRange=ct.clickableOrdinalRange,et.stayingIntervals=Y.multiselect&&ft.filterSpecified?ft.filter.getConsolidated():[],J&&(et.stayingIntervals=et.stayingIntervals.filter(function(Z){return Z[0]!==J[0]&&Z[1]!==J[1]})),et.startExtent=ct.region?J[ct.region==="s"?1:0]:nt,Y.parent.inBrushDrag=!0,et.brushStartCallback()}function g(V,Y){A.event.sourceEvent.stopPropagation();var K=Y.height-A.mouse(V)[1]-2*S.verticalPadding,nt=Y.brush.svgBrush;nt.wasDragged=!0,nt._dragging=!0,nt.grabbingBar?nt.newExtent=[K-nt.grabPoint,K+nt.barLength-nt.grabPoint].map(Y.unitToPaddedPx.invert):nt.newExtent=[nt.startExtent,Y.unitToPaddedPx.invert(K)].sort(w),Y.brush.filterSpecified=!0,nt.extent=nt.stayingIntervals.concat([nt.newExtent]),nt.brushCallback(Y),d(V.parentNode)}function k(V,Y){var K=Y.brush,nt=K.filter,ft=K.svgBrush;ft._dragging||(L(V,Y),g(V,Y),Y.brush.svgBrush.wasDragged=!1),ft._dragging=!1,A.event.sourceEvent.stopPropagation();var ct=ft.grabbingBar;if(ft.grabbingBar=!1,ft.grabLocation=void 0,Y.parent.inBrushDrag=!1,l(),!ft.wasDragged){ft.wasDragged=void 0,ft.clickableOrdinalRange?K.filterSpecified&&Y.multiselect?ft.extent.push(ft.clickableOrdinalRange):(ft.extent=[ft.clickableOrdinalRange],K.filterSpecified=!0):ct?(ft.extent=ft.stayingIntervals,ft.extent.length===0&&O(K)):O(K),ft.brushCallback(Y),d(V.parentNode),ft.brushEndCallback(K.filterSpecified?nt.getConsolidated():[]);return}var J=function(){nt.set(nt.getConsolidated())};if(Y.ordinal){var et=Y.unitTickvals;et[et.length-1]ft.newExtent[0];ft.extent=ft.stayingIntervals.concat(Q?[ft.newExtent]:[]),ft.extent.length||O(K),ft.brushCallback(Y),Q?d(V.parentNode,J):(J(),d(V.parentNode))}else J();ft.brushEndCallback(K.filterSpecified?nt.getConsolidated():[])}function L(V,Y){var K=b(Y,Y.height-A.mouse(V)[1]-2*S.verticalPadding),nt="crosshair";K.clickableOrdinalRange?nt="pointer":K.region&&(nt=K.region+"-resize"),A.select(document.body).style("cursor",nt)}function u(V){V.on("mousemove",function(Y){A.event.preventDefault(),Y.parent.inBrushDrag||L(this,Y)}).on("mouseleave",function(Y){Y.parent.inBrushDrag||l()}).call(A.behavior.drag().on("dragstart",function(Y){M(this,Y)}).on("drag",function(Y){g(this,Y)}).on("dragend",function(Y){k(this,Y)}))}function T(V,Y){return V[0]-Y[0]}function C(V,Y,K){var nt=K._context.staticPlot,ft=V.selectAll(".background").data(E);ft.enter().append("rect").classed("background",!0).call(n).call(m).style("pointer-events",nt?"none":"auto").attr("transform",p(0,S.verticalPadding)),ft.call(u).attr("height",function(et){return et.height-S.verticalPadding});var ct=V.selectAll(".highlight-shadow").data(E);ct.enter().append("line").classed("highlight-shadow",!0).attr("x",-S.bar.width/2).attr("stroke-width",S.bar.width+S.bar.strokeWidth).attr("stroke",Y).attr("opacity",S.bar.strokeOpacity).attr("stroke-linecap","butt"),ct.attr("y1",function(et){return et.height}).call(h);var J=V.selectAll(".highlight").data(E);J.enter().append("line").classed("highlight",!0).attr("x",-S.bar.width/2).attr("stroke-width",S.bar.width-S.bar.strokeWidth).attr("stroke",S.bar.fillColor).attr("opacity",S.bar.fillOpacity).attr("stroke-linecap","butt"),J.attr("y1",function(et){return et.height}).call(h)}function _(V,Y,K){var nt=V.selectAll("."+S.cn.axisBrush).data(E,t);nt.enter().append("g").classed(S.cn.axisBrush,!0),C(nt,Y,K)}function F(V){return V.svgBrush.extent.map(function(Y){return Y.slice()})}function O(V){V.filterSpecified=!1,V.svgBrush.extent=[[-1/0,1/0]]}function j(V){return function(Y){var K=Y.brush,nt=F(K).slice();K.filter.set(nt),V()}}function B(V){for(var Y=V.slice(),K=[],nt,ft=Y.shift();ft;){for(nt=ft.slice();(ft=Y.shift())&&ft[0]<=nt[1];)nt[1]=Math.max(nt[1],ft[1]);K.push(nt)}return K.length===1&&K[0][0]>K[0][1]&&(K=[]),K}function U(){var V=[],Y,K;return{set:function(nt){V=nt.map(function(ft){return ft.slice().sort(w)}).sort(T),V.length===1&&V[0][0]===-1/0&&V[0][1]===1/0&&(V=[[0,-1]]),Y=B(V),K=V.reduce(function(ft,ct){return[Math.min(ft[0],ct[0]),Math.max(ft[1],ct[1])]},[1/0,-1/0])},get:function(){return V.slice()},getConsolidated:function(){return Y},getBounds:function(){return K}}}function P(V,Y,K,nt,ft,ct){var J=U();return J.set(K),{filter:J,filterSpecified:Y,svgBrush:{extent:[],brushStartCallback:nt,brushCallback:j(ft),brushEndCallback:ct}}}function N(V,Y){if(Array.isArray(V[0])?(V=V.map(function(nt){return nt.sort(w)}),V=Y.multiselect?B(V.sort(T)):[V[0]]):V=[V.sort(w)],Y.tickvals){var K=Y.tickvals.slice().sort(w);if(V=V.map(function(nt){var ft=[a(0,K,nt[0],[]),a(1,K,nt[1],[])];if(ft[1]>ft[0])return ft}).filter(function(nt){return nt}),!V.length)return}return V.length>1?V:V[0]}tt.exports={makeBrush:P,ensureAxisBrush:_,cleanRanges:N}}),79846:(function(tt,G,e){tt.exports={attributes:e(59549),supplyDefaults:e(12842),calc:e(20113),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:e(67207),categories:["gl","regl","noOpacity","noHover"],meta:{}}}),67207:(function(tt,G,e){var S=e(45568),A=e(4173).eV,t=e(58823),E=e(62972);G.name="parcoords",G.plot=function(w){var p=A(w.calcdata,"parcoords")[0];p.length&&t(w,p)},G.clean=function(w,p,c,i){var r=i._has&&i._has("parcoords"),o=p._has&&p._has("parcoords");r&&!o&&(i._paperdiv.selectAll(".parcoords").remove(),i._glimages.selectAll("*").remove())},G.toSVG=function(w){var p=w._fullLayout._glimages,c=S.select(w).selectAll(".svg-container"),i=c.filter(function(o,a){return a===c.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function r(){var o=this,a=o.toDataURL("image/png");p.append("svg:image").attr({xmlns:E.svg,"xlink:href":a,preserveAspectRatio:"none",x:0,y:0,width:o.style.width,height:o.style.height})}i.each(r),window.setTimeout(function(){S.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}}),20113:(function(tt,G,e){var S=e(34809).isArrayOrTypedArray,A=e(88856),t=e(71293).wrap;tt.exports=function(w,p){var c,i;return A.hasColorscale(p,"line")&&S(p.line.color)?(c=p.line.color,i=A.extractOpts(p.line).colorscale,A.calc(w,p,{vals:c,containerStr:"line",cLetter:"c"})):(c=E(p._length),i=[[0,p.line.color],[1,p.line.color]]),t({lineColor:c,cscale:i})};function E(w){for(var p=Array(w),c=0;cr&&(S.log("parcoords traces support up to "+r+" dimensions at the moment"),l.splice(r));var h=w(n,m,{name:"dimensions",layout:f,handleItemDefaults:s}),d=a(n,m,x,f,v);E(m,f,v),(!Array.isArray(h)||!h.length)&&(m.visible=!1),o(m,h,"values",d);var b=S.extendFlat({},f.font,{size:Math.round(f.font.size/1.2)});S.coerceFont(v,"labelfont",b),S.coerceFont(v,"tickfont",b,{autoShadowDflt:!0}),S.coerceFont(v,"rangefont",b),v("labelangle"),v("labelside"),v("unselected.line.color"),v("unselected.line.opacity")}}),62935:(function(tt,G,e){var S=e(34809).isTypedArray;G.convertTypedArray=function(A){return S(A)?Array.prototype.slice.call(A):A},G.isOrdinal=function(A){return!!A.tickvals},G.isVisible=function(A){return A.visible||!("visible"in A)}}),83910:(function(tt,G,e){var S=e(79846);S.plot=e(58823),tt.exports=S}),1293:(function(tt,G,e){var S=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),A=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),t=e(77911).maxDimensionCount,E=e(34809),w=1e-6,p=2048,c=new Uint8Array(4),i=new Uint8Array(4),r={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function o(k){k.read({x:0,y:0,width:1,height:1,data:c})}function a(k,L,u,T,C){var _=k._gl;_.enable(_.SCISSOR_TEST),_.scissor(L,u,T,C),k.clear({color:[0,0,0,0],depth:1})}function s(k,L,u,T,C,_){var F=_.key;function O(j){var B=Math.min(T,C-j*T);j===0&&(window.cancelAnimationFrame(u.currentRafs[F]),delete u.currentRafs[F],a(k,_.scissorX,_.scissorY,_.scissorWidth,_.viewBoxSize[1])),!u.clearOnly&&(_.count=2*B,_.offset=2*j*T,L(_),j*T+B>>8*L)%256/255}function f(k,L,u){for(var T=Array(k*(t+4)),C=0,_=0;_St&&(St=ot[lt].dim1.canvasX,kt=lt);ut===0&&a(C,0,0,B.canvasWidth,B.canvasHeight);var Ot=J(u);for(lt=0;ltlt._length&&(Et=Et.slice(0,lt._length));var At=lt.tickvals,qt;function jt(ve,ke){return{val:ve,text:qt[ke]}}function de(ve,ke){return ve.val-ke.val}if(t(At)&&At.length){A.isTypedArray(At)&&(At=Array.from(At)),qt=lt.ticktext,!t(qt)||!qt.length?qt=At.map(E(lt.tickformat)):qt.length>At.length?qt=qt.slice(0,At.length):At.length>qt.length&&(At=At.slice(0,qt.length));for(var Xt=1;Xt=Le||me>=ve)return;var be=Xt.lineLayer.readPixel(Pe,ve-1-me),je=be[3]!==0,nr=je?be[2]+256*(be[1]+256*be[0]):null,Vt={x:Pe,y:me,clientX:ye.clientX,clientY:ye.clientY,dataIndex:Xt.model.key,curveNumber:nr};nr!==yt&&(je?J.hover(Vt):J.unhover&&J.unhover(Vt),yt=nr)}}),lt.style("opacity",function(Xt){return Xt.pick?0:1}),Z.style("background","rgba(255, 255, 255, 0)");var kt=Z.selectAll("."+v.cn.parcoords).data(ut,n);kt.exit().remove(),kt.enter().append("g").classed(v.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),kt.attr("transform",function(Xt){return i(Xt.model.translateX,Xt.model.translateY)});var Lt=kt.selectAll("."+v.cn.parcoordsControlView).data(m,n);Lt.enter().append("g").classed(v.cn.parcoordsControlView,!0),Lt.attr("transform",function(Xt){return i(Xt.model.pad.l,Xt.model.pad.t)});var St=Lt.selectAll("."+v.cn.yAxis).data(function(Xt){return Xt.dimensions},n);St.enter().append("g").classed(v.cn.yAxis,!0),Lt.each(function(Xt){N(St,Xt,ot)}),lt.each(function(Xt){if(Xt.viewModel){!Xt.lineLayer||J?Xt.lineLayer=h(this,Xt):Xt.lineLayer.update(Xt),(Xt.key||Xt.key===0)&&(Xt.viewModel[Xt.key]=Xt.lineLayer);var ye=!Xt.context||J;Xt.lineLayer.render(Xt.viewModel.panels,ye)}}),St.attr("transform",function(Xt){return i(Xt.xScale(Xt.xIndex),0)}),St.call(S.behavior.drag().origin(function(Xt){return Xt}).on("drag",function(Xt){var ye=Xt.parent;X.linePickActive(!1),Xt.x=Math.max(-v.overdrag,Math.min(Xt.model.width+v.overdrag,S.event.x)),Xt.canvasX=Xt.x*Xt.model.canvasPixelRatio,St.sort(function(Le,ve){return Le.x-ve.x}).each(function(Le,ve){Le.xIndex=ve,Le.x=Xt===Le?Le.x:Le.xScale(Le.xIndex),Le.canvasX=Le.x*Le.model.canvasPixelRatio}),N(St,ye,ot),St.filter(function(Le){return Math.abs(Xt.xIndex-Le.xIndex)!==0}).attr("transform",function(Le){return i(Le.xScale(Le.xIndex),0)}),S.select(this).attr("transform",i(Xt.x,0)),St.each(function(Le,ve,ke){ke===Xt.parent.key&&(ye.dimensions[ve]=Le)}),ye.contextLayer&&ye.contextLayer.render(ye.panels,!1,!F(ye)),ye.focusLayer.render&&ye.focusLayer.render(ye.panels)}).on("dragend",function(Xt){var ye=Xt.parent;Xt.x=Xt.xScale(Xt.xIndex),Xt.canvasX=Xt.x*Xt.model.canvasPixelRatio,N(St,ye,ot),S.select(this).attr("transform",function(Le){return i(Le.x,0)}),ye.contextLayer&&ye.contextLayer.render(ye.panels,!1,!F(ye)),ye.focusLayer&&ye.focusLayer.render(ye.panels),ye.pickLayer&&ye.pickLayer.render(ye.panels,!0),X.linePickActive(!0),J&&J.axesMoved&&J.axesMoved(ye.key,ye.dimensions.map(function(Le){return Le.crossfilterDimensionIndex}))})),St.exit().remove();var Ot=St.selectAll("."+v.cn.axisOverlays).data(m,n);Ot.enter().append("g").classed(v.cn.axisOverlays,!0),Ot.selectAll("."+v.cn.axis).remove();var Ht=Ot.selectAll("."+v.cn.axis).data(m,n);Ht.enter().append("g").classed(v.cn.axis,!0),Ht.each(function(Xt){var ye=Xt.model.height/Xt.model.tickDistance,Le=Xt.domainScale,ve=Le.domain();S.select(this).call(S.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(ye,Xt.tickFormat).tickValues(Xt.ordinal?ve:null).tickFormat(function(ke){return f.isOrdinal(Xt)?ke:Y(Xt.model.dimensions[Xt.visibleIndex],ke)}).scale(Le)),o.font(Ht.selectAll("text"),Xt.model.tickFont)}),Ht.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),Ht.selectAll("text").style("cursor","default");var Kt=Ot.selectAll("."+v.cn.axisHeading).data(m,n);Kt.enter().append("g").classed(v.cn.axisHeading,!0);var Gt=Kt.selectAll("."+v.cn.axisTitle).data(m,n);Gt.enter().append("text").classed(v.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",et?"none":"auto"),Gt.text(function(Xt){return Xt.label}).each(function(Xt){var ye=S.select(this);o.font(ye,Xt.model.labelFont),r.convertToTspans(ye,nt)}).attr("transform",function(Xt){var ye=P(Xt.model.labelAngle,Xt.model.labelSide),Le=v.axisTitleOffset;return(ye.dir>0?"":i(0,2*Le+Xt.model.height))+c(ye.degrees)+i(-Le*ye.dx,-Le*ye.dy)}).attr("text-anchor",function(Xt){var ye=P(Xt.model.labelAngle,Xt.model.labelSide),Le=Math.abs(ye.dx),ve=Math.abs(ye.dy);return 2*Le>ve?ye.dir*ye.dx<0?"start":"end":"middle"});var Et=Ot.selectAll("."+v.cn.axisExtent).data(m,n);Et.enter().append("g").classed(v.cn.axisExtent,!0);var At=Et.selectAll("."+v.cn.axisExtentTop).data(m,n);At.enter().append("g").classed(v.cn.axisExtentTop,!0),At.attr("transform",i(0,-v.axisExtentOffset));var qt=At.selectAll("."+v.cn.axisExtentTopText).data(m,n);qt.enter().append("text").classed(v.cn.axisExtentTopText,!0).call(B),qt.text(function(Xt){return K(Xt,!0)}).each(function(Xt){o.font(S.select(this),Xt.model.rangeFont)});var jt=Et.selectAll("."+v.cn.axisExtentBottom).data(m,n);jt.enter().append("g").classed(v.cn.axisExtentBottom,!0),jt.attr("transform",function(Xt){return i(0,Xt.model.height+v.axisExtentOffset)});var de=jt.selectAll("."+v.cn.axisExtentBottomText).data(m,n);de.enter().append("text").classed(v.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(B),de.text(function(Xt){return K(Xt,!1)}).each(function(Xt){o.font(S.select(this),Xt.model.rangeFont)}),l.ensureAxisBrush(Ot,rt,nt)}}),58823:(function(tt,G,e){var S=e(16019),A=e(22459),t=e(62935).isVisible,E={};function w(i,r,o){var a=r.indexOf(o),s=i.indexOf(a);return s===-1&&(s+=r.length),s}function p(i,r){return function(o,a){return w(i,r,o)-w(i,r,a)}}var c=tt.exports=function(i,r){var o=i._fullLayout;if(A(i,[],E)){var a={},s={},n={},m={},x=o._size;r.forEach(function(f,v){var l=f[0].trace;n[v]=l.index;var h=m[v]=l._fullInput.index;a[v]=i.data[h].dimensions,s[v]=i.data[h].dimensions.slice()}),S(i,r,{width:x.w,height:x.h,margin:{t:x.t,r:x.r,b:x.b,l:x.l}},{filterChanged:function(f,v,l){var h=s[f][v],d=l.map(function(L){return L.slice()}),b="dimensions["+v+"].constraintrange",M=o._tracePreGUI[i._fullData[n[f]]._fullInput.uid];M[b]===void 0&&(M[b]=h.constraintrange||null);var g=i._fullData[n[f]].dimensions[v];d.length?(d.length===1&&(d=d[0]),h.constraintrange=d,g.constraintrange=d.slice(),d=[d]):(delete h.constraintrange,delete g.constraintrange,d=null);var k={};k[b]=d,i.emit("plotly_restyle",[k,[m[f]]])},hover:function(f){i.emit("plotly_hover",f)},unhover:function(f){i.emit("plotly_unhover",f)},axesMoved:function(f,v){var l=p(v,s[f].filter(t));a[f].sort(l),s[f].filter(function(h){return!t(h)}).sort(function(h){return s[f].indexOf(h)}).forEach(function(h){a[f].splice(a[f].indexOf(h),1),a[f].splice(s[f].indexOf(h),0,h)}),i.emit("plotly_restyle",[{dimensions:[a[f]]},[m[f]]])}})}};c.reglPrecompiled=E}),55412:(function(tt,G,e){var S=e(9829),A=e(13792).u,t=e(80337),E=e(10229),w=e(3208).rb,p=e(3208).ay,c=e(93049).extendFlat,i=e(94850).k,r=t({editType:"plot",arrayOk:!0,colorEditType:"plot"});tt.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:E.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:i,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:c({},S.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:w({},{keys:["label","color","value","percent","text"]}),texttemplate:p({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:c({},r,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:c({},r,{}),outsidetextfont:c({},r,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:c({},r,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:A({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:c({},r,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}}),96052:(function(tt,G,e){var S=e(44122);G.name="pie",G.plot=function(A,t,E,w){S.plotBasePlot(G.name,A,t,E,w)},G.clean=function(A,t,E,w){S.cleanBasePlot(G.name,A,t,E,w)}}),44148:(function(tt,G,e){var S=e(10721),A=e(65657),t=e(78766),E={};function w(r,o){var a=[],s=r._fullLayout,n=s.hiddenlabels||[],m=o.labels,x=o.marker.colors||[],f=o.values,v=o._length,l=o._hasValues&&v,h,d;if(o.dlabel)for(m=Array(v),h=0;h=0}),(o.type==="funnelarea"?k:o.sort)&&a.sort(function(_,F){return F.v-_.v}),a[0]&&(a[0].vTotal=g),a}function p(r){return function(o,a){return!o||(o=A(o),!o.isValid())?!1:(o=t.addOpacity(o,o.getAlpha()),r[a]||(r[a]=o),o)}}function c(r,o){var a=(o||{}).type;a||(a="pie");var s=r._fullLayout,n=r.calcdata,m=s[a+"colorway"],x=s["_"+a+"colormap"];s["extend"+a+"colors"]&&(m=i(m,E));for(var f=0,v=0;v0){x=!0;break}}x||(m=0)}return{hasLabels:s,hasValues:n,len:m}}function i(o,a,s,n,m){n("marker.line.width")&&n("marker.line.color",m?void 0:s.paper_bgcolor),p(n,"marker.pattern",n("marker.colors")),o.marker&&!a.marker.pattern.fgcolor&&(a.marker.pattern.fgcolor=o.marker.colors),a.marker.pattern.bgcolor||(a.marker.pattern.bgcolor=s.paper_bgcolor)}function r(o,a,s,n){function m(g,k){return A.coerce(o,a,t,g,k)}var x=c(m("labels"),m("values")),f=x.len;if(a._hasLabels=x.hasLabels,a._hasValues=x.hasValues,!a._hasLabels&&a._hasValues&&(m("label0"),m("dlabel")),!f){a.visible=!1;return}a._length=f,i(o,a,n,m,!0),m("scalegroup");var v=m("text"),l=m("texttemplate"),h;if(l||(h=m("textinfo",A.isArrayOrTypedArray(v)?"text+percent":"percent")),m("hovertext"),m("hovertemplate"),l||h&&h!=="none"){var d=m("textposition");w(o,a,n,m,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(d)||d==="auto"||d==="outside")&&m("automargin"),(d==="inside"||d==="auto"||Array.isArray(d))&&m("insidetextorientation")}else h==="none"&&m("textposition","none");E(a,n,m);var b=m("hole");if(m("title.text")){var M=m("title.position",b?"middle center":"top center");!b&&M==="middle center"&&(a.title.position="top center"),A.coerceFont(m,"title.font",n.font)}m("sort"),m("direction"),m("rotation"),m("pull")}tt.exports={handleLabelsAndValues:c,handleMarkerDefaults:i,supplyDefaults:r}}),50568:(function(tt,G,e){var S=e(36040).appendArrayMultiPointValues;tt.exports=function(A,t){var E={curveNumber:t.index,pointNumbers:A.pts,data:t._input,fullData:t,label:A.label,color:A.color,value:A.v,percent:A.percent,text:A.text,bbox:A.bbox,v:A.v};return A.pts.length===1&&(E.pointNumber=E.i=A.pts[0]),S(E,t,A.pts),t.type==="funnelarea"&&(delete E.v,delete E.i),E}}),75067:(function(tt,G,e){var S=e(62203),A=e(78766);tt.exports=function(t,E,w,p){var c=w.marker.pattern;c&&c.shape?S.pointStyle(t,w,p,E):A.fill(t,E.color)}}),37252:(function(tt,G,e){var S=e(34809);function A(t){return t.indexOf("e")===-1?t.indexOf(".")===-1?t:t.replace(/[.]?0+$/,""):t.replace(/[.]?0+e/,"e")}G.formatPiePercent=function(t,E){var w=A((t*100).toPrecision(3));return S.numSeparate(w,E)+"%"},G.formatPieValue=function(t,E){var w=A(t.toPrecision(10));return S.numSeparate(w,E)},G.getFirstFilled=function(t,E){if(S.isArrayOrTypedArray(t))for(var w=0;w0&&(Xt+=ke*jt.pxmid[0],ye+=ke*jt.pxmid[1])}jt.cxFinal=Xt,jt.cyFinal=ye;function Pe(te,ee,Bt,Wt){var $t=Wt*(ee[0]-te[0]),Tt=Wt*(ee[1]-te[1]);return"a"+Wt*lt.r+","+Wt*lt.r+" 0 "+jt.largeArc+(Bt?" 1 ":" 0 ")+$t+","+Tt}var me=yt.hole;if(jt.v===lt.vTotal){var be="M"+(Xt+jt.px0[0])+","+(ye+jt.px0[1])+Pe(jt.px0,jt.pxmid,!0,1)+Pe(jt.pxmid,jt.px0,!0,1)+"Z";me?ve.attr("d","M"+(Xt+me*jt.px0[0])+","+(ye+me*jt.px0[1])+Pe(jt.px0,jt.pxmid,!1,me)+Pe(jt.pxmid,jt.px0,!1,me)+"Z"+be):ve.attr("d",be)}else{var je=Pe(jt.px0,jt.px1,!0,1);if(me){var nr=1-me;ve.attr("d","M"+(Xt+me*jt.px1[0])+","+(ye+me*jt.px1[1])+Pe(jt.px1,jt.px0,!1,me)+"l"+nr*jt.px0[0]+","+nr*jt.px0[1]+je+"Z")}else ve.attr("d","M"+Xt+","+ye+"l"+jt.px0[0]+","+jt.px0[1]+je+"Z")}ct(et,jt,lt);var Vt=m.castOption(yt.textposition,jt.pts),Qt=Le.selectAll("g.slicetext").data(jt.text&&Vt!=="none"?[0]:[]);Qt.enter().append("g").classed("slicetext",!0),Qt.exit().remove(),Qt.each(function(){var te=p.ensureSingle(S.select(this),"text","",function(Mt){Mt.attr("data-notex",1)}),ee=p.ensureUniformFontSize(et,Vt==="outside"?d(yt,jt,st.font):b(yt,jt,st.font));te.text(jt.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(w.font,ee).call(r.convertToTspans,et);var Bt=w.bBox(te.node()),Wt;if(Vt==="outside")Wt=O(Bt,jt);else if(Wt=g(Bt,jt,lt),Vt==="auto"&&Wt.scale<1){var $t=p.ensureUniformFontSize(et,yt.outsidetextfont);te.call(w.font,$t),Bt=w.bBox(te.node()),Wt=O(Bt,jt)}var Tt=Wt.textPosAngle,_t=Tt===void 0?jt.pxmid:ft(lt.r,Tt);if(Wt.targetX=Xt+_t[0]*Wt.rCenter+(Wt.x||0),Wt.targetY=ye+_t[1]*Wt.rCenter+(Wt.y||0),J(Wt,Bt),Wt.outside){var It=Wt.targetY;jt.yLabelMin=It-Bt.height/2,jt.yLabelMid=It,jt.yLabelMax=It+Bt.height/2,jt.labelExtraX=0,jt.labelExtraY=0,St=!0}Wt.fontSize=ee.size,a(yt.type,Wt,st),X[de].transform=Wt,p.setTransormAndDisplay(te,Wt)})});var Ot=S.select(this).selectAll("g.titletext").data(yt.title.text?[0]:[]);if(Ot.enter().append("g").classed("titletext",!0),Ot.exit().remove(),Ot.each(function(){var jt=p.ensureSingle(S.select(this),"text","",function(ye){ye.attr("data-notex",1)}),de=yt.title.text;yt._meta&&(de=p.templateString(de,yt._meta)),jt.text(de).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(w.font,yt.title.font).call(r.convertToTspans,et);var Xt=yt.title.position==="middle center"?j(lt):B(lt,ot);jt.attr("transform",i(Xt.x,Xt.y)+c(Math.min(1,Xt.scale))+i(Xt.tx,Xt.ty))}),St&&V(Lt,yt),l(kt,yt),St&&yt.automargin){var Ht=w.bBox(ut.node()),Kt=yt.domain,Gt=ot.w*(Kt.x[1]-Kt.x[0]),Et=ot.h*(Kt.y[1]-Kt.y[0]),At=(.5*Gt-lt.r)/ot.w,qt=(.5*Et-lt.r)/ot.h;A.autoMargin(et,"pie."+yt.uid+".automargin",{xl:Kt.x[0]-At,xr:Kt.x[1]+At,yb:Kt.y[0]-qt,yt:Kt.y[1]+qt,l:Math.max(lt.cx-lt.r-Ht.left,0),r:Math.max(Ht.right-(lt.cx+lt.r),0),b:Math.max(Ht.bottom-(lt.cy+lt.r),0),t:Math.max(lt.cy-lt.r-Ht.top,0),pad:5})}})});setTimeout(function(){rt.selectAll("tspan").each(function(){var X=S.select(this);X.attr("dy")&&X.attr("dy",X.attr("dy"))})},0)}function l(et,Q){et.each(function(Z){var st=S.select(this);if(!Z.labelExtraX&&!Z.labelExtraY){st.select("path.textline").remove();return}var ot=st.select("g.slicetext text");Z.transform.targetX+=Z.labelExtraX,Z.transform.targetY+=Z.labelExtraY,p.setTransormAndDisplay(ot,Z.transform);var rt=Z.cxFinal+Z.pxmid[0],X=Z.cyFinal+Z.pxmid[1],ut="M"+rt+","+X,lt=(Z.yLabelMax-Z.yLabelMin)*(Z.pxmid[0]<0?-1:1)/4;if(Z.labelExtraX){var yt=Z.labelExtraX*Z.pxmid[1]/Z.pxmid[0],kt=Z.yLabelMid+Z.labelExtraY-(Z.cyFinal+Z.pxmid[1]);Math.abs(yt)>Math.abs(kt)?ut+="l"+kt*Z.pxmid[0]/Z.pxmid[1]+","+kt+"H"+(rt+Z.labelExtraX+lt):ut+="l"+Z.labelExtraX+","+yt+"v"+(kt-yt)+"h"+lt}else ut+="V"+(Z.yLabelMid+Z.labelExtraY)+"h"+lt;p.ensureSingle(st,"path","textline").call(E.stroke,Q.outsidetextfont.color).attr({"stroke-width":Math.min(2,Q.outsidetextfont.size/8),d:ut,fill:"none"})})}function h(et,Q,Z){var st=Z[0],ot=st.cx,rt=st.cy,X=st.trace,ut=X.type==="funnelarea";"_hasHoverLabel"in X||(X._hasHoverLabel=!1),"_hasHoverEvent"in X||(X._hasHoverEvent=!1),et.on("mouseover",function(lt){var yt=Q._fullLayout,kt=Q._fullData[X.index];if(!(Q._dragging||yt.hovermode===!1)){var Lt=kt.hoverinfo;if(Array.isArray(Lt)&&(Lt=t.castHoverinfo({hoverinfo:[m.castOption(Lt,lt.pts)],_module:X._module},yt,0)),Lt==="all"&&(Lt="label+text+value+percent+name"),kt.hovertemplate||Lt!=="none"&&Lt!=="skip"&&Lt){var St=lt.rInscribed||0,Ot=ot+lt.pxmid[0]*(1-St),Ht=rt+lt.pxmid[1]*(1-St),Kt=yt.separators,Gt=[];if(Lt&&Lt.indexOf("label")!==-1&&Gt.push(lt.label),lt.text=m.castOption(kt.hovertext||kt.text,lt.pts),Lt&&Lt.indexOf("text")!==-1){var Et=lt.text;p.isValidTextValue(Et)&&Gt.push(Et)}lt.value=lt.v,lt.valueLabel=m.formatPieValue(lt.v,Kt),Lt&&Lt.indexOf("value")!==-1&&Gt.push(lt.valueLabel),lt.percent=lt.v/st.vTotal,lt.percentLabel=m.formatPiePercent(lt.percent,Kt),Lt&&Lt.indexOf("percent")!==-1&&Gt.push(lt.percentLabel);var At=kt.hoverlabel,qt=At.font,jt=[];t.loneHover({trace:X,x0:Ot-St*st.r,x1:Ot+St*st.r,y:Ht,_x0:ut?ot+lt.TL[0]:Ot-St*st.r,_x1:ut?ot+lt.TR[0]:Ot+St*st.r,_y0:ut?rt+lt.TL[1]:Ht-St*st.r,_y1:ut?rt+lt.BL[1]:Ht+St*st.r,text:Gt.join("
"),name:kt.hovertemplate||Lt.indexOf("name")!==-1?kt.name:void 0,idealAlign:lt.pxmid[0]<0?"left":"right",color:m.castOption(At.bgcolor,lt.pts)||lt.color,borderColor:m.castOption(At.bordercolor,lt.pts),fontFamily:m.castOption(qt.family,lt.pts),fontSize:m.castOption(qt.size,lt.pts),fontColor:m.castOption(qt.color,lt.pts),nameLength:m.castOption(At.namelength,lt.pts),textAlign:m.castOption(At.align,lt.pts),hovertemplate:m.castOption(kt.hovertemplate,lt.pts),hovertemplateLabels:lt,eventData:[x(lt,kt)]},{container:yt._hoverlayer.node(),outerContainer:yt._paper.node(),gd:Q,inOut_bbox:jt}),lt.bbox=jt[0],X._hasHoverLabel=!0}X._hasHoverEvent=!0,Q.emit("plotly_hover",{points:[x(lt,kt)],event:S.event})}}),et.on("mouseout",function(lt){var yt=Q._fullLayout,kt=Q._fullData[X.index],Lt=S.select(this).datum();X._hasHoverEvent&&(X._hasHoverEvent=(lt.originalEvent=S.event,Q.emit("plotly_unhover",{points:[x(Lt,kt)],event:S.event}),!1)),X._hasHoverLabel&&(X._hasHoverLabel=(t.loneUnhover(yt._hoverlayer.node()),!1))}),et.on("click",function(lt){var yt=Q._fullLayout,kt=Q._fullData[X.index];Q._dragging||yt.hovermode===!1||(Q._hoverdata=[x(lt,kt)],t.click(Q,S.event))})}function d(et,Q,Z){return{color:m.castOption(et.outsidetextfont.color,Q.pts)||m.castOption(et.textfont.color,Q.pts)||Z.color,family:m.castOption(et.outsidetextfont.family,Q.pts)||m.castOption(et.textfont.family,Q.pts)||Z.family,size:m.castOption(et.outsidetextfont.size,Q.pts)||m.castOption(et.textfont.size,Q.pts)||Z.size,weight:m.castOption(et.outsidetextfont.weight,Q.pts)||m.castOption(et.textfont.weight,Q.pts)||Z.weight,style:m.castOption(et.outsidetextfont.style,Q.pts)||m.castOption(et.textfont.style,Q.pts)||Z.style,variant:m.castOption(et.outsidetextfont.variant,Q.pts)||m.castOption(et.textfont.variant,Q.pts)||Z.variant,textcase:m.castOption(et.outsidetextfont.textcase,Q.pts)||m.castOption(et.textfont.textcase,Q.pts)||Z.textcase,lineposition:m.castOption(et.outsidetextfont.lineposition,Q.pts)||m.castOption(et.textfont.lineposition,Q.pts)||Z.lineposition,shadow:m.castOption(et.outsidetextfont.shadow,Q.pts)||m.castOption(et.textfont.shadow,Q.pts)||Z.shadow}}function b(et,Q,Z){var st=m.castOption(et.insidetextfont.color,Q.pts);!st&&et._input.textfont&&(st=m.castOption(et._input.textfont.color,Q.pts));var ot=m.castOption(et.insidetextfont.family,Q.pts)||m.castOption(et.textfont.family,Q.pts)||Z.family,rt=m.castOption(et.insidetextfont.size,Q.pts)||m.castOption(et.textfont.size,Q.pts)||Z.size,X=m.castOption(et.insidetextfont.weight,Q.pts)||m.castOption(et.textfont.weight,Q.pts)||Z.weight,ut=m.castOption(et.insidetextfont.style,Q.pts)||m.castOption(et.textfont.style,Q.pts)||Z.style,lt=m.castOption(et.insidetextfont.variant,Q.pts)||m.castOption(et.textfont.variant,Q.pts)||Z.variant,yt=m.castOption(et.insidetextfont.textcase,Q.pts)||m.castOption(et.textfont.textcase,Q.pts)||Z.textcase,kt=m.castOption(et.insidetextfont.lineposition,Q.pts)||m.castOption(et.textfont.lineposition,Q.pts)||Z.lineposition,Lt=m.castOption(et.insidetextfont.shadow,Q.pts)||m.castOption(et.textfont.shadow,Q.pts)||Z.shadow;return{color:st||E.contrast(Q.color),family:ot,size:rt,weight:X,style:ut,variant:lt,textcase:yt,lineposition:kt,shadow:Lt}}function M(et,Q){for(var Z,st,ot=0;ot=-4;Et-=2)Gt(Math.PI*Et,"tan");for(Et=4;Et>=-4;Et-=2)Gt(Math.PI*(Et+1),"tan")}if(kt||St){for(Et=4;Et>=-4;Et-=2)Gt(Math.PI*(Et+1.5),"rad");for(Et=4;Et>=-4;Et-=2)Gt(Math.PI*(Et+.5),"rad")}}if(X||Ot||kt){var At=Math.sqrt(et.width*et.width+et.height*et.height);if(Kt={scale:ot*st*2/At,rCenter:1-ot,rotate:0},Kt.textPosAngle=(Q.startangle+Q.stopangle)/2,Kt.scale>=1)return Kt;Ht.push(Kt)}(Ot||St)&&(Kt=L(et,st,rt,ut,lt),Kt.textPosAngle=(Q.startangle+Q.stopangle)/2,Ht.push(Kt)),(Ot||Lt)&&(Kt=u(et,st,rt,ut,lt),Kt.textPosAngle=(Q.startangle+Q.stopangle)/2,Ht.push(Kt));for(var qt=0,jt=0,de=0;de=1)break}return Ht[qt]}function k(et,Q){var Z=et.startangle,st=et.stopangle;return Z>Q&&Q>st||Z0?1:-1)/2,y:rt/(1+Z*Z/(st*st)),outside:!0}}function j(et){var Q=Math.sqrt(et.titleBox.width*et.titleBox.width+et.titleBox.height*et.titleBox.height);return{x:et.cx,y:et.cy,scale:et.trace.hole*et.r*2/Q,tx:0,ty:-et.titleBox.height/2+et.trace.title.font.size}}function B(et,Q){var Z=1,st=1,ot,rt=et.trace,X={x:et.cx,y:et.cy},ut={tx:0,ty:0};ut.ty+=rt.title.font.size,ot=N(rt),rt.title.position.indexOf("top")===-1?rt.title.position.indexOf("bottom")!==-1&&(X.y+=(1+ot)*et.r):(X.y-=(1+ot)*et.r,ut.ty-=et.titleBox.height);var lt=U(et.r,et.trace.aspectratio),yt=Q.w*(rt.domain.x[1]-rt.domain.x[0])/2;return rt.title.position.indexOf("left")===-1?rt.title.position.indexOf("center")===-1?rt.title.position.indexOf("right")!==-1&&(yt+=lt,X.x+=(1+ot)*lt,ut.tx-=et.titleBox.width/2):yt*=2:(yt+=lt,X.x-=(1+ot)*lt,ut.tx+=et.titleBox.width/2),Z=yt/et.titleBox.width,st=P(et,Q)/et.titleBox.height,{x:X.x,y:X.y,scale:Math.min(Z,st),tx:ut.tx,ty:ut.ty}}function U(et,Q){return et/(Q===void 0?1:Q)}function P(et,Q){var Z=et.trace,st=Q.h*(Z.domain.y[1]-Z.domain.y[0]);return Math.min(et.titleBox.height,st/2)}function N(et){var Q=et.pull;if(!Q)return 0;var Z;if(p.isArrayOrTypedArray(Q))for(Q=0,Z=0;ZQ&&(Q=et.pull[Z]);return Q}function V(et,Q){var Z,st,ot,rt,X,ut,lt,yt,kt,Lt,St,Ot,Ht;function Kt(qt,jt){return qt.pxmid[1]-jt.pxmid[1]}function Gt(qt,jt){return jt.pxmid[1]-qt.pxmid[1]}function Et(qt,jt){jt||(jt={});var de=jt.labelExtraY+(st?jt.yLabelMax:jt.yLabelMin),Xt=st?qt.yLabelMin:qt.yLabelMax,ye=st?qt.yLabelMax:qt.yLabelMin,Le=qt.cyFinal+X(qt.px0[1],qt.px1[1]),ve=de-Xt,ke,Pe,me,be,je,nr;if(ve*lt>0&&(qt.labelExtraY=ve),p.isArrayOrTypedArray(Q.pull))for(Pe=0;Pe=(m.castOption(Q.pull,me.pts)||0))&&((qt.pxmid[1]-me.pxmid[1])*lt>0?(be=me.cyFinal+X(me.px0[1],me.px1[1]),ve=be-Xt-qt.labelExtraY,ve*lt>0&&(qt.labelExtraY+=ve)):(ye+qt.labelExtraY-Le)*lt>0&&(ke=3*ut*Math.abs(Pe-Lt.indexOf(qt)),je=me.cxFinal+rt(me.px0[0],me.px1[0]),nr=je+ke-(qt.cxFinal+qt.pxmid[0])-qt.labelExtraX,nr*ut>0&&(qt.labelExtraX+=nr)))}for(st=0;st<2;st++)for(ot=st?Kt:Gt,X=st?Math.max:Math.min,lt=st?1:-1,Z=0;Z<2;Z++){for(rt=Z?Math.max:Math.min,ut=Z?1:-1,yt=et[st][Z],yt.sort(ot),kt=et[1-st][Z],Lt=kt.concat(yt),Ot=[],St=0;St1?(yt=Z.r,kt=yt/ot.aspectratio):(kt=Z.r,yt=kt*ot.aspectratio),yt*=(1+ot.baseratio)/2,lt=yt*kt}X=Math.min(X,lt/Z.vTotal)}for(st=0;stQ.vTotal/2?1:0,yt.halfangle=Math.PI*Math.min(yt.v/Q.vTotal,.5),yt.ring=1-st.hole,yt.rInscribed=F(yt,Q))}function ft(et,Q){return[et*Math.sin(Q),-et*Math.cos(Q)]}function ct(et,Q,Z){var st=et._fullLayout,ot=Z.trace,rt=ot.texttemplate,X=ot.textinfo;if(!rt&&X&&X!=="none"){var ut=X.split("+"),lt=function(jt){return ut.indexOf(jt)!==-1},yt=lt("label"),kt=lt("text"),Lt=lt("value"),St=lt("percent"),Ot=st.separators,Ht=yt?[Q.label]:[];if(kt){var Kt=m.getFirstFilled(ot.text,Q.pts);f(Kt)&&Ht.push(Kt)}Lt&&Ht.push(m.formatPieValue(Q.v,Ot)),St&&Ht.push(m.formatPiePercent(Q.v/Z.vTotal,Ot)),Q.text=Ht.join("
")}function Gt(jt){return{label:jt.label,value:jt.v,valueLabel:m.formatPieValue(jt.v,st.separators),percent:jt.v/Z.vTotal,percentLabel:m.formatPiePercent(jt.v/Z.vTotal,st.separators),color:jt.color,text:jt.text,customdata:p.castOption(ot,jt.i,"customdata")}}if(rt){var Et=p.castOption(ot,Q.i,"texttemplate");if(!Et)Q.text="";else{var At=Gt(Q),qt=m.getFirstFilled(ot.text,Q.pts);(f(qt)||qt==="")&&(At.text=qt),Q.text=p.texttemplateString(Et,At,et._fullLayout._d3locale,At,ot._meta||{})}}}function J(et,Q){var Z=et.rotate*Math.PI/180,st=Math.cos(Z),ot=Math.sin(Z),rt=(Q.left+Q.right)/2,X=(Q.top+Q.bottom)/2;et.textX=rt*st-X*ot,et.textY=rt*ot+X*st,et.noCenter=!0}tt.exports={plot:v,formatSliceLabel:ct,transformInsideText:g,determineInsideTextFont:b,positionTitleOutside:B,prerenderTitles:M,layoutAreas:Y,attachFxHandlers:h,computeTransform:J}}),140:(function(tt,G,e){var S=e(45568),A=e(32891),t=e(84102).resizeText;tt.exports=function(E){var w=E._fullLayout._pielayer.selectAll(".trace");t(E,w,"pie"),w.each(function(p){var c=p[0].trace,i=S.select(this);i.style({opacity:c.opacity}),i.selectAll("path.surface").each(function(r){S.select(this).call(A,r,c,E)})})}}),32891:(function(tt,G,e){var S=e(78766),A=e(37252).castOption,t=e(75067);tt.exports=function(E,w,p,c){var i=p.marker.line,r=A(i.color,w.pts)||S.defaultLine,o=A(i.width,w.pts)||0;E.call(t,w,p,c).style("stroke-width",o).call(S.stroke,r)}}),36961:(function(tt,G,e){var S=e(36640);tt.exports={x:S.x,y:S.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:S.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}}),71593:(function(tt,G,e){var S=e(99098).gl_pointcloud2d,A=e(34809).isArrayOrTypedArray,t=e(55010),E=e(32919).findExtremes,w=e(11539);function p(r,o){this.scene=r,this.uid=o,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array,this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array,idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=S(r.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var c=p.prototype;c.handlePick=function(r){var o=this.idToIndex[r.pointId];return{trace:this,dataCoord:r.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[o*2],this.pickXYData[o*2+1]]:[this.pickXData[o],this.pickYData[o]],textLabel:A(this.textLabels)?this.textLabels[o]:this.textLabels,color:this.color,name:this.name,pointIndex:o,hoverinfo:this.hoverinfo}},c.update=function(r){this.index=r.index,this.textLabels=r.text,this.name=r.name,this.hoverinfo=r.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(r),this.color=w(r,{})},c.updateFast=function(r){var o=this.xData=this.pickXData=r.x,a=this.yData=this.pickYData=r.y,s=this.pickXYData=r.xy,n=r.xbounds&&r.ybounds,m=r.indices,x,f,v,l=this.bounds,h,d,b;if(s){if(v=s,x=s.length>>>1,n)l[0]=r.xbounds[0],l[2]=r.xbounds[1],l[1]=r.ybounds[0],l[3]=r.ybounds[1];else for(b=0;bl[2]&&(l[2]=h),dl[3]&&(l[3]=d);if(m)f=m;else for(f=new Int32Array(x),b=0;bl[2]&&(l[2]=h),dl[3]&&(l[3]=d);this.idToIndex=f,this.pointcloudOptions.idToIndex=f,this.pointcloudOptions.positions=v;var M=t(r.marker.color),g=t(r.marker.border.color),k=r.opacity*r.marker.opacity;M[3]*=k,this.pointcloudOptions.color=M;var L=r.marker.blend;if(L===null){var u=100;L=o.lengthg&&(g=a.source[h]),a.target[h]>g&&(g=a.target[h]);var k=g+1;r.node._count=k;var L,u=r.node.groups,T={};for(h=0;h0&&w(B,k)&&w(U,k)&&!(T.hasOwnProperty(B)&&T.hasOwnProperty(U)&&T[B]===T[U])){T.hasOwnProperty(U)&&(U=T[U]),T.hasOwnProperty(B)&&(B=T[B]),B=+B,U=+U,f[B]=f[U]=!0;var P="";a.label&&a.label[h]&&(P=a.label[h]);var N=null;P&&v.hasOwnProperty(P)&&(N=v[P]),s.push({pointNumber:h,label:P,color:n?a.color[h]:a.color,hovercolor:m?a.hovercolor[h]:a.hovercolor,customdata:x?a.customdata[h]:a.customdata,concentrationscale:N,source:B,target:U,value:+j}),O.source.push(B),O.target.push(U)}}var V=k+u.length,Y=E(o.color),K=E(o.customdata),nt=[];for(h=0;hk-1,childrenNodes:[],pointNumber:h,label:ft,color:Y?o.color[h]:o.color,customdata:K?o.customdata[h]:o.customdata})}var ct=!1;return i(V,O.source,O.target)&&(ct=!0),{circular:ct,links:s,nodes:nt,groups:u,groupLookup:T}}function i(r,o,a){for(var s=A.init2dArray(r,0),n=0;n1})}tt.exports=function(r,o){var a=c(o);return t({circular:a.circular,_nodes:a.nodes,_links:a.links,_groups:a.groups,_groupLookup:a.groupLookup})}}),21541:(function(tt){tt.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}}),67940:(function(tt,G,e){var S=e(34809),A=e(33795),t=e(78766),E=e(65657),w=e(13792).N,p=e(26430),c=e(78032),i=e(59008);tt.exports=function(o,a,s,n){function m(C,_){return S.coerce(o,a,A,C,_)}var x=S.extendDeep(n.hoverlabel,o.hoverlabel),f=o.node,v=c.newContainer(a,"node");function l(C,_){return S.coerce(f,v,A.node,C,_)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",o.hoverinfo),p(f,v,l,x),l("hovertemplate"),l("align");var h=n.colorway,d=function(C){return h[C%h.length]};l("color",v.label.map(function(C,_){return t.addOpacity(d(_),.8)})),l("customdata");var b=o.link||{},M=c.newContainer(a,"link");function g(C,_){return S.coerce(b,M,A.link,C,_)}g("label"),g("arrowlen"),g("source"),g("target"),g("value"),g("line.color"),g("line.width"),g("hoverinfo",o.hoverinfo),p(b,M,g,x),g("hovertemplate");var k=E(n.paper_bgcolor).getLuminance()<.333,L=g("color",k?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)");function u(C){var _=E(C);if(!_.isValid())return C;var F=_.getAlpha();return F<=.8?_.setAlpha(F+.2):_=k?_.brighten():_.darken(),_.toRgbString()}g("hovercolor",Array.isArray(L)?L.map(u):u(L)),g("customdata"),i(b,M,{name:"colorscales",handleItemDefaults:r}),w(a,n,m),m("orientation"),m("valueformat"),m("valuesuffix");var T;v.x.length&&v.y.length&&(T="freeform"),m("arrangement",T),S.coerceFont(m,"textfont",n.font,{autoShadowDflt:!0}),a._length=null};function r(o,a){function s(n,m){return S.coerce(o,a,A.link.colorscales,n,m)}s("label"),s("cmin"),s("cmax"),s("colorscale")}}),71760:(function(tt,G,e){tt.exports={attributes:e(33795),supplyDefaults:e(67940),calc:e(22915),plot:e(16506),moduleType:"trace",name:"sankey",basePlotModule:e(42229),selectPoints:e(74670),categories:["noOpacity"],meta:{}}}),16506:(function(tt,G,e){var S=e(45568),A=e(34809),t=A.numberFormat,E=e(90958),w=e(32141),p=e(78766),c=e(21541).cn,i=A._;function r(d){return d!==""}function o(d,b){return d.filter(function(M){return M.key===b.traceId})}function a(d,b){S.select(d).select("path").style("fill-opacity",b),S.select(d).select("rect").style("fill-opacity",b)}function s(d){S.select(d).select("text.name").style("fill","black")}function n(d){return function(b){return d.node.sourceLinks.indexOf(b.link)!==-1||d.node.targetLinks.indexOf(b.link)!==-1}}function m(d){return function(b){return b.node.sourceLinks.indexOf(d.link)!==-1||b.node.targetLinks.indexOf(d.link)!==-1}}function x(d,b,M){b&&M&&o(M,b).selectAll("."+c.sankeyLink).filter(n(b)).call(v.bind(0,b,M,!1))}function f(d,b,M){b&&M&&o(M,b).selectAll("."+c.sankeyLink).filter(n(b)).call(l.bind(0,b,M,!1))}function v(d,b,M,g){g.style("fill",function(k){if(!k.link.concentrationscale)return k.tinyColorHoverHue}).style("fill-opacity",function(k){if(!k.link.concentrationscale)return k.tinyColorHoverAlpha}),g.each(function(k){var L=k.link.label;L!==""&&o(b,d).selectAll("."+c.sankeyLink).filter(function(u){return u.link.label===L}).style("fill",function(u){if(!u.link.concentrationscale)return u.tinyColorHoverHue}).style("fill-opacity",function(u){if(!u.link.concentrationscale)return u.tinyColorHoverAlpha})}),M&&o(b,d).selectAll("."+c.sankeyNode).filter(m(d)).call(x)}function l(d,b,M,g){g.style("fill",function(k){return k.tinyColorHue}).style("fill-opacity",function(k){return k.tinyColorAlpha}),g.each(function(k){var L=k.link.label;L!==""&&o(b,d).selectAll("."+c.sankeyLink).filter(function(u){return u.link.label===L}).style("fill",function(u){return u.tinyColorHue}).style("fill-opacity",function(u){return u.tinyColorAlpha})}),M&&o(b,d).selectAll(c.sankeyNode).filter(m(d)).call(f)}function h(d,b){var M=d.hoverlabel||{},g=A.nestedProperty(M,b).get();return Array.isArray(g)?!1:g}tt.exports=function(d,b){for(var M=d._fullLayout,g=M._paper,k=M._size,L=0;L"),color:h(N,"bgcolor")||p.addOpacity(ft.color,1),borderColor:h(N,"bordercolor"),fontFamily:h(N,"font.family"),fontSize:h(N,"font.size"),fontColor:h(N,"font.color"),fontWeight:h(N,"font.weight"),fontStyle:h(N,"font.style"),fontVariant:h(N,"font.variant"),fontTextcase:h(N,"font.textcase"),fontLineposition:h(N,"font.lineposition"),fontShadow:h(N,"font.shadow"),nameLength:h(N,"namelength"),textAlign:h(N,"align"),idealAlign:S.event.x"),color:h(N,"bgcolor")||P.tinyColorHue,borderColor:h(N,"bordercolor"),fontFamily:h(N,"font.family"),fontSize:h(N,"font.size"),fontColor:h(N,"font.color"),fontWeight:h(N,"font.weight"),fontStyle:h(N,"font.style"),fontVariant:h(N,"font.variant"),fontTextcase:h(N,"font.textcase"),fontLineposition:h(N,"font.lineposition"),fontShadow:h(N,"font.shadow"),nameLength:h(N,"namelength"),textAlign:h(N,"align"),idealAlign:"left",hovertemplate:N.hovertemplate,hovertemplateLabels:J,eventData:[P.node]},{container:M._hoverlayer.node(),outerContainer:M._paper.node(),gd:d});a(Z,.85),s(Z)}}},unhover:function(U,P,N){d._fullLayout.hovermode!==!1&&(S.select(U).call(f,P,N),P.node.trace.node.hoverinfo!=="skip"&&(P.node.fullData=P.node.trace,d.emit("plotly_unhover",{event:S.event,points:[P.node]})),w.loneUnhover(M._hoverlayer.node()))},select:function(U,P,N){var V=P.node;V.originalEvent=S.event,d._hoverdata=[V],S.select(U).call(f,P,N),w.click(d,{target:!0})}}})}}),90958:(function(tt,G,e){var S=e(32702),A=e(88640).Dj,t=e(45568),E=e(62369),w=e(68735),p=e(21541),c=e(65657),i=e(78766),r=e(62203),o=e(34809),a=o.strTranslate,s=o.strRotate,n=e(71293),m=n.keyFun,x=n.repeat,f=n.unwrap,v=e(30635),l=e(33626),h=e(4530),d=h.CAP_SHIFT,b=h.LINE_SPACING,M=3;function g(Q,Z,st){var ot=f(Z),rt=ot.trace,X=rt.domain,ut=rt.orientation==="h",lt=rt.node.pad,yt=rt.node.thickness,kt={justify:E.sankeyJustify,left:E.sankeyLeft,right:E.sankeyRight,center:E.sankeyCenter}[rt.node.align],Lt=Q.width*(X.x[1]-X.x[0]),St=Q.height*(X.y[1]-X.y[0]),Ot=ot._nodes,Ht=ot._links,Kt=ot.circular,Gt=Kt?w.sankeyCircular().circularLinkGap(0):E.sankey();Gt.iterations(p.sankeyIterations).size(ut?[Lt,St]:[St,Lt]).nodeWidth(yt).nodePadding(lt).nodeId(function(je){return je.pointNumber}).nodeAlign(kt).nodes(Ot).links(Ht);var Et=Gt();Gt.nodePadding()=te||(Qt=te-Vt.y0,Qt>1e-6&&(Vt.y0+=Qt,Vt.y1+=Qt)),te=Vt.y1+lt})}function Pe(je){var nr=je.map(function($t,Tt){return{x0:$t.x0,index:Tt}}).sort(function($t,Tt){return $t.x0-Tt.x0}),Vt=[],Qt=-1,te,ee=-1/0,Bt;for(At=0;Atee+yt&&(Qt+=1,te=Wt.x0),ee=Wt.x0,Vt[Qt]||(Vt[Qt]=[]),Vt[Qt].push(Wt),Bt=te-Wt.x0,Wt.x0+=Bt,Wt.x1+=Bt}return Vt}if(rt.node.x.length&&rt.node.y.length){for(At=0;At0?"L"+rt.targetX+" "+rt.targetY:"")+"Z":"M "+(rt.targetX-Z)+" "+(rt.targetY-ot)+" L"+(rt.rightInnerExtent-Z)+" "+(rt.targetY-ot)+"A"+(rt.rightLargeArcRadius+ot)+" "+(rt.rightSmallArcRadius+ot)+" 0 0 0 "+(rt.rightFullExtent-ot-Z)+" "+(rt.targetY+rt.rightSmallArcRadius)+"L"+(rt.rightFullExtent-ot-Z)+" "+rt.verticalRightInnerExtent+"A"+(rt.rightLargeArcRadius+ot)+" "+(rt.rightLargeArcRadius+ot)+" 0 0 0 "+(rt.rightInnerExtent-Z)+" "+(rt.verticalFullExtent+ot)+"L"+rt.leftInnerExtent+" "+(rt.verticalFullExtent+ot)+"A"+(rt.leftLargeArcRadius+ot)+" "+(rt.leftLargeArcRadius+ot)+" 0 0 0 "+(rt.leftFullExtent+ot)+" "+rt.verticalLeftInnerExtent+"L"+(rt.leftFullExtent+ot)+" "+(rt.sourceY+rt.leftSmallArcRadius)+"A"+(rt.leftLargeArcRadius+ot)+" "+(rt.leftSmallArcRadius+ot)+" 0 0 0 "+rt.leftInnerExtent+" "+(rt.sourceY-ot)+"L"+rt.sourceX+" "+(rt.sourceY-ot)+"L"+rt.sourceX+" "+(rt.sourceY+ot)+"L"+rt.leftInnerExtent+" "+(rt.sourceY+ot)+"A"+(rt.leftLargeArcRadius-ot)+" "+(rt.leftSmallArcRadius-ot)+" 0 0 1 "+(rt.leftFullExtent-ot)+" "+(rt.sourceY+rt.leftSmallArcRadius)+"L"+(rt.leftFullExtent-ot)+" "+rt.verticalLeftInnerExtent+"A"+(rt.leftLargeArcRadius-ot)+" "+(rt.leftLargeArcRadius-ot)+" 0 0 1 "+rt.leftInnerExtent+" "+(rt.verticalFullExtent-ot)+"L"+(rt.rightInnerExtent-Z)+" "+(rt.verticalFullExtent-ot)+"A"+(rt.rightLargeArcRadius-ot)+" "+(rt.rightLargeArcRadius-ot)+" 0 0 1 "+(rt.rightFullExtent+ot-Z)+" "+rt.verticalRightInnerExtent+"L"+(rt.rightFullExtent+ot-Z)+" "+(rt.targetY+rt.rightSmallArcRadius)+"A"+(rt.rightLargeArcRadius-ot)+" "+(rt.rightSmallArcRadius-ot)+" 0 0 1 "+(rt.rightInnerExtent-Z)+" "+(rt.targetY+ot)+"L"+(rt.targetX-Z)+" "+(rt.targetY+ot)+(Z>0?"L"+rt.targetX+" "+rt.targetY:"")+"Z",st}function u(){var Q=.5;function Z(st){var ot=st.linkArrowLength;if(st.link.circular)return L(st.link,ot);var rt=Math.abs((st.link.target.x0-st.link.source.x1)/2);ot>rt&&(ot=rt);var X=st.link.source.x1,ut=st.link.target.x0-ot,lt=A(X,ut),yt=lt(Q),kt=lt(1-Q),Lt=st.link.y0-st.link.width/2,St=st.link.y0+st.link.width/2,Ot=st.link.y1-st.link.width/2,Ht=st.link.y1+st.link.width/2,Kt="M"+X+","+Lt,Gt="C"+yt+","+Lt+" "+kt+","+Ot+" "+ut+","+Ot,Et="C"+kt+","+Ht+" "+yt+","+St+" "+X+","+St,At=ot>0?"L"+(ut+ot)+","+(Ot+st.link.width/2):"";return At+="L"+ut+","+Ht,Kt+Gt+At+Et+"Z"}return Z}function T(Q,Z){var st=c(Z.color),ot=p.nodePadAcross,rt=Q.nodePad/2;Z.dx=Z.x1-Z.x0,Z.dy=Z.y1-Z.y0;var X=Z.dx,ut=Math.max(.5,Z.dy),lt="node_"+Z.pointNumber;return Z.group&&(lt=o.randstr()),Z.trace=Q.trace,Z.curveNumber=Q.trace.index,{index:Z.pointNumber,key:lt,partOfGroup:Z.partOfGroup||!1,group:Z.group,traceId:Q.key,trace:Q.trace,node:Z,nodePad:Q.nodePad,nodeLineColor:Q.nodeLineColor,nodeLineWidth:Q.nodeLineWidth,textFont:Q.textFont,size:Q.horizontal?Q.height:Q.width,visibleWidth:Math.ceil(X),visibleHeight:ut,zoneX:-ot,zoneY:-rt,zoneWidth:X+2*ot,zoneHeight:ut+2*rt,labelY:Q.horizontal?Z.dy/2+1:Z.dx/2+1,left:Z.originalLayer===1,sizeAcross:Q.width,forceLayouts:Q.forceLayouts,horizontal:Q.horizontal,darkBackground:st.getBrightness()<=128,tinyColorHue:i.tinyRGB(st),tinyColorAlpha:st.getAlpha(),valueFormat:Q.valueFormat,valueSuffix:Q.valueSuffix,sankey:Q.sankey,graph:Q.graph,arrangement:Q.arrangement,uniqueNodeLabelPathId:[Q.guid,Q.key,lt].join("_"),interactionState:Q.interactionState,figure:Q}}function C(Q){Q.attr("transform",function(Z){return a(Z.node.x0.toFixed(3),Z.node.y0.toFixed(3))})}function _(Q){Q.call(C)}function F(Q,Z){Q.call(_),Z.attr("d",u())}function O(Q){Q.attr("width",function(Z){return Z.node.x1-Z.node.x0}).attr("height",function(Z){return Z.visibleHeight})}function j(Q){return Q.link.width>1||Q.linkLineWidth>0}function B(Q){return a(Q.translateX,Q.translateY)+(Q.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function U(Q,Z,st){Q.on(".basic",null).on("mouseover.basic",function(ot){!ot.interactionState.dragInProgress&&!ot.partOfGroup&&(st.hover(this,ot,Z),ot.interactionState.hovered=[this,ot])}).on("mousemove.basic",function(ot){!ot.interactionState.dragInProgress&&!ot.partOfGroup&&(st.follow(this,ot),ot.interactionState.hovered=[this,ot])}).on("mouseout.basic",function(ot){!ot.interactionState.dragInProgress&&!ot.partOfGroup&&(st.unhover(this,ot,Z),ot.interactionState.hovered=!1)}).on("click.basic",function(ot){ot.interactionState.hovered&&(st.unhover(this,ot,Z),ot.interactionState.hovered=!1),!ot.interactionState.dragInProgress&&!ot.partOfGroup&&st.select(this,ot,Z)})}function P(Q,Z,st,ot){var rt=t.behavior.drag().origin(function(X){return{x:X.node.x0+X.visibleWidth/2,y:X.node.y0+X.visibleHeight/2}}).on("dragstart",function(X){if(X.arrangement!=="fixed"&&(o.ensureSingle(ot._fullLayout._infolayer,"g","dragcover",function(lt){ot._fullLayout._dragCover=lt}),o.raiseToTop(this),X.interactionState.dragInProgress=X.node,ft(X.node),X.interactionState.hovered&&(st.nodeEvents.unhover.apply(0,X.interactionState.hovered),X.interactionState.hovered=!1),X.arrangement==="snap")){var ut=X.traceId+"|"+X.key;X.forceLayouts[ut]?X.forceLayouts[ut].alpha(1):N(Q,ut,X,ot),V(Q,Z,X,ut,ot)}}).on("drag",function(X){if(X.arrangement!=="fixed"){var ut=t.event.x,lt=t.event.y;X.arrangement==="snap"?(X.node.x0=ut-X.visibleWidth/2,X.node.x1=ut+X.visibleWidth/2,X.node.y0=lt-X.visibleHeight/2,X.node.y1=lt+X.visibleHeight/2):(X.arrangement==="freeform"&&(X.node.x0=ut-X.visibleWidth/2,X.node.x1=ut+X.visibleWidth/2),lt=Math.max(0,Math.min(X.size-X.visibleHeight/2,lt)),X.node.y0=lt-X.visibleHeight/2,X.node.y1=lt+X.visibleHeight/2),ft(X.node),X.arrangement!=="snap"&&(X.sankey.update(X.graph),F(Q.filter(ct(X)),Z))}}).on("dragend",function(X){if(X.arrangement!=="fixed"){X.interactionState.dragInProgress=!1;for(var ut=0;ut0)window.requestAnimationFrame(X);else{var yt=st.node.originalX;st.node.x0=yt-st.visibleWidth/2,st.node.x1=yt+st.visibleWidth/2,K(st,rt)}})}function Y(Q,Z,st,ot){return function(){for(var rt=0,X=0;X0&&ot.forceLayouts[Z].alpha(0)}}function K(Q,Z){for(var st=[],ot=[],rt=0;rtB&&C[P].gap;)P--;for(V=C[P].s,U=C.length-1;U>P;U--)C[U].s=V;for(;BF[x]&&x=0;s--){var n=E[s];if(n.type==="scatter"&&n.xaxis===o.xaxis&&n.yaxis===o.yaxis){n.opacity=void 0;break}}}}}}),40247:(function(tt,G,e){var S=e(34809),A=e(33626),t=e(36640),E=e(32660),w=e(64726),p=e(99867),c=e(99669),i=e(382),r=e(24272),o=e(98168),a=e(91602),s=e(663),n=e(54114),m=e(34809).coercePattern;tt.exports=function(x,f,v,l){function h(T,C){return S.coerce(x,f,t,T,C)}var d=p(x,f,l,h);if(d||(f.visible=!1),f.visible){c(x,f,l,h),h("xhoverformat"),h("yhoverformat"),h("zorder");var b=i(x,f,l,h);l.scattermode==="group"&&f.orientation===void 0&&h("orientation","v");var M=!b&&d=Math.min(K,nt)&&x<=Math.max(K,nt)?0:1/0}var ft=Math.max(3,Y.mrc||0),ct=1-1/ft,J=Math.abs(n.c2p(Y.x)-x);return J=Math.min(K,nt)&&f<=Math.max(K,nt)?0:1/0}var ft=Math.max(3,Y.mrc||0),ct=1-1/ft,J=Math.abs(m.c2p(Y.y)-f);return JQ!=yt>=Q&&(X=ot[st-1][0],ut=ot[st][0],yt-lt&&(rt=X+(ut-X)*(Q-lt)/(yt-lt),ft=Math.min(ft,rt),ct=Math.max(ct,rt)));return ft=Math.max(ft,0),ct=Math.min(ct,n._length),{x0:ft,x1:ct,y0:Q,y1:Q}}if(l.indexOf("fills")!==-1&&s._fillElement&&U(s._fillElement)&&!U(s._fillExclusionElement)){var N=P(s._polygons);N===null&&(N={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var V=w.defaultLine;return w.opacity(s.fillcolor)?V=s.fillcolor:w.opacity((s.line||{}).color)&&(V=s.line.color),S.extendFlat(c,{distance:c.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:V,hovertemplate:!1}),delete c.index,s.text&&!S.isArrayOrTypedArray(s.text)?c.text=String(s.text):c.text=s.name,[c]}}}),69693:(function(tt,G,e){var S=e(64726);tt.exports={hasLines:S.hasLines,hasMarkers:S.hasMarkers,hasText:S.hasText,isBubble:S.isBubble,attributes:e(36640),layoutAttributes:e(26667),supplyDefaults:e(40247),crossTraceDefaults:e(53044),supplyLayoutDefaults:e(12332),calc:e(26544).calc,crossTraceCalc:e(75603),arraysToCalcdata:e(99203),plot:e(36098),colorbar:e(21146),formatLabels:e(15294),style:e(9408).style,styleOnSelect:e(9408).styleOnSelect,hoverPoints:e(37255),selectPoints:e(32665),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e(37703),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}}),26667:(function(tt){tt.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}}),12332:(function(tt,G,e){var S=e(34809),A=e(26667);tt.exports=function(t,E){function w(c,i){return S.coerce(t,E,A,c,i)}var p=E.barmode==="group";E.scattermode==="group"&&w("scattergap",p?E.bargap:.2)}}),98168:(function(tt,G,e){var S=e(34809).isArrayOrTypedArray,A=e(65477).hasColorscale,t=e(39356);tt.exports=function(E,w,p,c,i,r){r||(r={});var o=(E.marker||{}).color;o&&o._inputArray&&(o=o._inputArray),i("line.color",p),A(E,"line")?t(E,w,c,i,{prefix:"line.",cLetter:"c"}):i("line.color",(S(o)?!1:o)||p),i("line.width"),r.noDash||i("line.dash"),r.backoff&&i("line.backoff")}}),5525:(function(tt,G,e){var S=e(62203),A=e(63821),t=A.BADNUM,E=A.LOG_CLIP,w=E+.5,p=E-.5,c=e(34809),i=c.segmentsIntersect,r=c.constrain,o=e(32660);tt.exports=function(a,s){var n=s.trace||{},m=s.xaxis,x=s.yaxis,f=m.type==="log",v=x.type==="log",l=m._length,h=x._length,d=s.backoff,b=n.marker,M=s.connectGaps,g=s.baseTolerance,k=s.shape,L=k==="linear",u=n.fill&&n.fill!=="none",T=[],C=o.minTolerance,_=a.length,F=Array(_),O=0,j,B,U,P,N,V,Y,K,nt,ft,ct,J,et,Q,Z,st;function ot(Ct){var Ut=a[Ct];if(!Ut)return!1;var Zt=s.linearized?m.l2p(Ut.x):m.c2p(Ut.x),Me=s.linearized?x.l2p(Ut.y):x.c2p(Ut.y);if(Zt===t){if(f&&(Zt=m.c2p(Ut.x,!0)),Zt===t)return!1;v&&Me===t&&(Zt*=Math.abs(m._m*h*(m._m>0?w:p)/(x._m*l*(x._m>0?w:p)))),Zt*=1e3}if(Me===t){if(v&&(Me=x.c2p(Ut.y,!0)),Me===t)return!1;Me*=1e3}return[Zt,Me]}function rt(Ct,Ut,Zt,Me){var Be=Zt-Ct,ge=Me-Ut,Ee=.5-Ct,Ne=.5-Ut,sr=Be*Be+ge*ge,_e=Be*Ee+ge*Ne;if(_e>0&&_e1||Math.abs(Ee.y-Zt[0][1])>1)&&(Ee=[Ee.x,Ee.y],Me&&yt(Ee,Ct)St||Ct[1]Ht)return[r(Ct[0],Lt,St),r(Ct[1],Ot,Ht)]}function Le(Ct,Ut){if(Ct[0]===Ut[0]&&(Ct[0]===Lt||Ct[0]===St)||Ct[1]===Ut[1]&&(Ct[1]===Ot||Ct[1]===Ht))return!0}function ve(Ct,Ut){var Zt=[],Me=ye(Ct),Be=ye(Ut);return Me&&Be&&Le(Me,Be)||(Me&&Zt.push(Me),Be&&Zt.push(Be)),Zt}function ke(Ct,Ut,Zt){return function(Me,Be){var ge=ye(Me),Ee=ye(Be),Ne=[];if(ge&&Ee&&Le(ge,Ee))return Ne;ge&&Ne.push(ge),Ee&&Ne.push(Ee);var sr=2*c.constrain((Me[Ct]+Be[Ct])/2,Ut,Zt)-((ge||Me)[Ct]+(Ee||Be)[Ct]);if(sr){var _e=ge&&Ee?sr>0==ge[Ct]>Ee[Ct]?ge:Ee:ge||Ee;_e[Ct]+=sr}return Ne}}var Pe;k==="linear"||k==="spline"?Pe=Xt:k==="hv"||k==="vh"?Pe=ve:k==="hvh"?Pe=ke(0,Lt,St):k==="vhv"&&(Pe=ke(1,Ot,Ht));function me(Ct,Ut){var Zt=Ut[0]-Ct[0],Me=(Ut[1]-Ct[1])/Zt;return(Ct[1]*Ut[0]-Ut[1]*Ct[0])/Zt>0?[Me>0?Lt:St,Ht]:[Me>0?St:Lt,Ot]}function be(Ct){var Ut=Ct[0],Zt=Ct[1],Me=Ut===F[O-1][0],Be=Zt===F[O-1][1];if(!(Me&&Be))if(O>1){var ge=Ut===F[O-2][0],Ee=Zt===F[O-2][1];Me&&(Ut===Lt||Ut===St)&&ge?Ee?O--:F[O-1]=Ct:Be&&(Zt===Ot||Zt===Ht)&&Ee?ge?O--:F[O-1]=Ct:F[O++]=Ct}else F[O++]=Ct}function je(Ct){F[O-1][0]!==Ct[0]&&F[O-1][1]!==Ct[1]&&be([At,qt]),be(Ct),jt=null,At=qt=0}var nr=c.isArrayOrTypedArray(b);function Vt(Ct){if(Ct&&d&&(Ct.i=j,Ct.d=a,Ct.trace=n,Ct.marker=nr?b[Ct.i]:b,Ct.backoff=d),X=Ct[0]/l,ut=Ct[1]/h,Gt=Ct[0]St?St:0,Et=Ct[1]Ht?Ht:0,Gt||Et){if(!O)F[O++]=[Gt||Ct[0],Et||Ct[1]];else if(jt){var Ut=Pe(jt,Ct);Ut.length>1&&(je(Ut[0]),F[O++]=Ut[1])}else de=Pe(F[O-1],Ct)[0],F[O++]=de;var Zt=F[O-1];Gt&&Et&&(Zt[0]!==Gt||Zt[1]!==Et)?(jt&&(At!==Gt&&qt!==Et?be(At&&qt?me(jt,Ct):[At||Gt,qt||Et]):At&&qt&&be([At,qt])),be([Gt,Et])):At-Gt&&qt-Et&&be([Gt||At,Et||qt]),jt=Ct,At=Gt,qt=Et}else jt&&je(Pe(jt,Ct)[0]),F[O++]=Ct}for(j=0;j<_;j++)if(B=ot(j),B){for(O=0,jt=null,Vt(B),j++;j<_;j++){if(P=ot(j),!P){if(M)continue;break}if(!L||!s.simplify){Vt(P);continue}var Qt=ot(j+1);if(ft=yt(P,B),!(!(u&&(O===0||O===_-1))&&ftlt(V,Qt))break;U=V,et=nt[0]*K[0]+nt[1]*K[1],et>ct?(ct=et,P=V,Y=!1):et=a.length||!V)break;Vt(V),B=V}}jt&&be([At||jt[0],qt||jt[1]]),T.push(F.slice(0,O))}var te=k.slice(k.length-1);if(d&&te!=="h"&&te!=="v"){for(var ee=!1,Bt=-1,Wt=[],$t=0;$t=0?c=s:(c=s=a,a++),c0?Math.max(r,p):0}}}),21146:(function(tt){tt.exports={container:"marker",min:"cmin",max:"cmax"}}),24272:(function(tt,G,e){var S=e(78766),A=e(65477).hasColorscale,t=e(39356),E=e(64726);tt.exports=function(w,p,c,i,r,o){var a=E.isBubble(w),s=(w.line||{}).color,n;o||(o={}),s&&(c=s),r("marker.symbol"),r("marker.opacity",a?.7:1),r("marker.size"),o.noAngle||(r("marker.angle"),o.noAngleRef||r("marker.angleref"),o.noStandOff||r("marker.standoff")),r("marker.color",c),A(w,"marker")&&t(w,p,i,r,{prefix:"marker.",cLetter:"c"}),o.noSelect||(r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size")),o.noLine||(n=s&&!Array.isArray(s)&&p.marker.color!==s?s:a?S.background:S.defaultLine,r("marker.line.color",n),A(w,"marker.line")&&t(w,p,i,r,{prefix:"marker.line.",cLetter:"c"}),r("marker.line.width",a?1:0)),a&&(r("marker.sizeref"),r("marker.sizemin"),r("marker.sizemode")),o.gradient&&r("marker.gradient.type")!=="none"&&r("marker.gradient.color")}}),99669:(function(tt,G,e){var S=e(34809).dateTick0,A=e(63821).ONEWEEK;function t(E,w){return E%A===0?S(w,1):S(w,0)}tt.exports=function(E,w,p,c,i){if(i||(i={x:!0,y:!0}),i.x){var r=c("xperiod");r&&(c("xperiod0",t(r,w.xcalendar)),c("xperiodalignment"))}if(i.y){var o=c("yperiod");o&&(c("yperiod0",t(o,w.ycalendar)),c("yperiodalignment"))}}}),36098:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(34809),E=t.ensureSingle,w=t.identity,p=e(62203),c=e(64726),i=e(5525),r=e(17210),o=e(80899).tester;tt.exports=function(m,x,f,v,l,h){var d,b,M=!l,g=!!l&&l.duration>0,k=r(m,x,f);d=v.selectAll("g.trace").data(k,function(L){return L[0].trace.uid}),d.enter().append("g").attr("class",function(L){return"trace scatter trace"+L[0].trace.uid}).style("stroke-miterlimit",2),d.order(),a(m,d,x),g?(h&&(b=h()),S.transition().duration(l.duration).ease(l.easing).each("end",function(){b&&b()}).each("interrupt",function(){b&&b()}).each(function(){v.selectAll("g.trace").each(function(L,u){s(m,u,x,L,k,this,l)})})):d.each(function(L,u){s(m,u,x,L,k,this,l)}),M&&d.exit().remove(),v.selectAll("path:not([d])").remove()};function a(m,x,f){x.each(function(v){var l=E(S.select(this),"g","fills");p.setClipUrl(l,f.layerClipId,m);var h=v[0].trace,d=[];h._ownfill&&d.push("_ownFill"),h._nexttrace&&d.push("_nextFill");var b=l.selectAll("g").data(d,w);b.enter().append("g"),b.exit().each(function(M){h[M]=null}).remove(),b.order().each(function(M){h[M]=E(S.select(this),"path","js-fill")})})}function s(m,x,f,v,l,h,d){var b=m._context.staticPlot,M;n(m,x,f,v,l);var g=!!d&&d.duration>0;function k(be){return g?be.transition():be}var L=f.xaxis,u=f.yaxis,T=v[0].trace,C=T.line,_=S.select(h),F=E(_,"g","errorbars"),O=E(_,"g","lines"),j=E(_,"g","points"),B=E(_,"g","text");if(A.getComponentMethod("errorbars","plot")(m,F,f,d),T.visible!==!0)return;k(_).style("opacity",T.opacity);var U,P,N=T.fill.charAt(T.fill.length-1);N!=="x"&&N!=="y"&&(N="");var V,Y;N==="y"?(V=1,Y=u.c2p(0,!0)):N==="x"&&(V=0,Y=L.c2p(0,!0)),v[0][f.isRangePlot?"nodeRangePlot3":"node3"]=_;var K="",nt=[],ft=T._prevtrace,ct=null,J=null;ft&&(K=ft._prevRevpath||"",P=ft._nextFill,nt=ft._ownPolygons,ct=ft._fillsegments,J=ft._fillElement);var et,Q,Z="",st="",ot,rt,X,ut,lt,yt,kt=[];T._polygons=[];var Lt=[],St=[],Ot=t.noop;if(U=T._ownFill,c.hasLines(T)||T.fill!=="none"){P&&P.datum(v),["hv","vh","hvh","vhv"].indexOf(C.shape)===-1?ot=rt=C.shape==="spline"?function(be){var je=be[be.length-1];return be.length>1&&be[0][0]===je[0]&&be[0][1]===je[1]?p.smoothclosed(be.slice(1),C.smoothing):p.smoothopen(be,C.smoothing)}:function(be){return"M"+be.join("L")}:(ot=p.steps(C.shape),rt=p.steps(C.shape.split("").reverse().join(""))),X=function(be){return rt(be.reverse())},St=i(v,{xaxis:L,yaxis:u,trace:T,connectGaps:T.connectgaps,baseTolerance:Math.max(C.width||1,3)/4,shape:C.shape,backoff:C.backoff,simplify:C.simplify,fill:T.fill}),Lt=Array(St.length);var Ht=0;for(M=0;M=b[0]&&_.x<=b[1]&&_.y>=M[0]&&_.y<=M[1]}),u=Math.ceil(L.length/k),T=0;l.forEach(function(_,F){var O=_[0].trace;c.hasMarkers(O)&&O.marker.maxdisplayed>0&&F0){var f=i.c2l(m);i._lowerLogErrorBound||(i._lowerLogErrorBound=f),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,f)}}else o[a]=[-s[0]*c,s[1]*c]}return o}function t(w){for(var p=0;p-1?-1:_.indexOf("right")>-1?1:0}function d(_){return _==null?0:_.indexOf("top")>-1?-1:_.indexOf("bottom")>-1?1:0}function b(_){var F=0,O=0,j=[F,O];if(Array.isArray(_))for(var B=0;B<_.length;B++)j[B]=[F,O],_[B]&&(j[B][0]=h(_[B]),j[B][1]=d(_[B]));else j[0]=h(_),j[1]=d(_);return j}function M(_,F){return F(_*4)}function g(_){return a[_]}function k(_,F,O,j,B){var U=null;if(p.isArrayOrTypedArray(_)){U=[];for(var P=0;P=0){var Y=v(N.position,N.delaunayColor,N.delaunayAxis);Y.opacity=_.opacity,this.delaunayMesh?this.delaunayMesh.update(Y):(Y.gl=F,this.delaunayMesh=E(Y),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.delaunayMesh=(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),null))},f.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function C(_,F){var O=new x(_,F.uid);return O.update(F),O}tt.exports=C}),82418:(function(tt,G,e){var S=e(33626),A=e(34809),t=e(64726),E=e(24272),w=e(98168),p=e(663),c=e(14117);tt.exports=function(r,o,a,s){function n(d,b){return A.coerce(r,o,c,d,b)}if(!i(r,o,n,s)){o.visible=!1;return}n("text"),n("hovertext"),n("hovertemplate"),n("xhoverformat"),n("yhoverformat"),n("zhoverformat"),n("mode"),t.hasMarkers(o)&&E(r,o,a,s,n,{noSelect:!0,noAngle:!0}),t.hasLines(o)&&(n("connectgaps"),w(r,o,a,s,n)),t.hasText(o)&&(n("texttemplate"),p(r,o,s,n,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var m=(o.line||{}).color,x=(o.marker||{}).color;n("surfaceaxis")>=0&&n("surfacecolor",m||x);for(var f=["x","y","z"],v=0;v<3;++v){var l="projection."+f[v];n(l+".show")&&(n(l+".opacity"),n(l+".scale"))}var h=S.getComponentMethod("errorbars","supplyDefaults");h(r,o,m||x||a,{axis:"z"}),h(r,o,m||x||a,{axis:"y",inherit:"z"}),h(r,o,m||x||a,{axis:"x",inherit:"z"})};function i(r,o,a,s){var n=0,m=a("x"),x=a("y"),f=a("z");return S.getComponentMethod("calendars","handleTraceDefaults")(r,o,["x","y","z"],s),m&&x&&f&&(n=Math.min(m.length,x.length,f.length),o._length=o._xlength=o._ylength=o._zlength=n),n}}),17822:(function(tt,G,e){tt.exports={plot:e(16533),attributes:e(14117),markerSymbols:e(49467),supplyDefaults:e(82418),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:e(37593),moduleType:"trace",name:"scatter3d",basePlotModule:e(2487),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}}),54637:(function(tt,G,e){var S=e(19326),A=e(36640),t=e(9829),E=e(3208).rb,w=e(3208).ay,p=e(87163),c=e(93049).extendFlat,i=A.marker,r=A.line,o=i.line;tt.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:c({},A.mode,{dflt:"markers"}),text:c({},A.text,{}),texttemplate:w({editType:"plot"},{keys:["a","b","text"]}),hovertext:c({},A.hovertext,{}),line:{color:r.color,width:r.width,dash:r.dash,backoff:r.backoff,shape:c({},r.shape,{values:["linear","spline"]}),smoothing:r.smoothing,editType:"calc"},connectgaps:A.connectgaps,fill:c({},A.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:S(),marker:c({symbol:i.symbol,opacity:i.opacity,maxdisplayed:i.maxdisplayed,angle:i.angle,angleref:i.angleref,standoff:i.standoff,size:i.size,sizeref:i.sizeref,sizemin:i.sizemin,sizemode:i.sizemode,line:c({width:o.width,editType:"calc"},p("marker.line")),gradient:i.gradient,editType:"calc"},p("marker")),textfont:A.textfont,textposition:A.textposition,selected:A.selected,unselected:A.unselected,hoverinfo:c({},t.hoverinfo,{flags:["a","b","text","name"]}),hoveron:A.hoveron,hovertemplate:E(),zorder:A.zorder}}),68001:(function(tt,G,e){var S=e(10721),A=e(77272),t=e(99203),E=e(48861),w=e(26544).calcMarkerSize,p=e(26571);tt.exports=function(c,i){var r=i._carpetTrace=p(c,i);if(!(!r||!r.visible||r.visible==="legendonly")){var o;i.xaxis=r.xaxis,i.yaxis=r.yaxis;var a=i._length,s=Array(a),n,m,x=!1;for(o=0;o0?h.labelprefix.replace(/ = $/,""):h._hovertitle;f.push(b+": "+d.toFixed(3)+h.labelsuffix)}if(!m.hovertemplate){var l=(n.hi||m.hoverinfo).split("+");l.indexOf("all")!==-1&&(l=["a","b","text"]),l.indexOf("a")!==-1&&v(x.aaxis,n.a),l.indexOf("b")!==-1&&v(x.baxis,n.b),f.push("y: "+i.yLabel),l.indexOf("text")!==-1&&A(n,m,f),i.extraText=f.join("
")}return c}}),56534:(function(tt,G,e){tt.exports={attributes:e(54637),supplyDefaults:e(16986),colorbar:e(21146),formatLabels:e(32709),calc:e(68001),plot:e(64535),style:e(9408).style,styleOnSelect:e(9408).styleOnSelect,hoverPoints:e(59420),selectPoints:e(32665),eventData:e(68289),moduleType:"trace",name:"scattercarpet",basePlotModule:e(37703),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}}),64535:(function(tt,G,e){var S=e(36098),A=e(29714),t=e(62203);tt.exports=function(E,w,p,c){var i,r,o,a=p[0][0].carpet,s=A.getFromId(E,a.xaxis||"x"),n=A.getFromId(E,a.yaxis||"y"),m={xaxis:s,yaxis:n,plot:w.plot};for(i=0;i")}}),18070:(function(tt,G,e){tt.exports={attributes:e(6893),supplyDefaults:e(27386),colorbar:e(21146),formatLabels:e(57413),calc:e(75649),calcGeoJSON:e(48887).calcGeoJSON,plot:e(48887).plot,style:e(60367),styleOnSelect:e(9408).styleOnSelect,hoverPoints:e(40636),eventData:e(71873),selectPoints:e(45852),moduleType:"trace",name:"scattergeo",basePlotModule:e(47544),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}}),48887:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(11577).getTopojsonFeatures,E=e(39532),w=e(3994),p=e(32919).findExtremes,c=e(63821).BADNUM,i=e(26544).calcMarkerSize,r=e(64726),o=e(60367);function a(n,m,x){var f=m.layers.frontplot.select(".scatterlayer"),v=A.makeTraceGroups(f,x,"trace scattergeo");function l(h,d){h.lonlat[0]===c&&S.select(d).remove()}v.selectAll("*").remove(),v.each(function(h){var d=S.select(this),b=h[0].trace;if(r.hasLines(b)||b.fill!=="none"){var M=E.calcTraceToLineCoords(h),g=b.fill==="none"?E.makeLine(M):E.makePolygon(M);d.selectAll("path.js-line").data([{geojson:g,trace:b}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}r.hasMarkers(b)&&d.selectAll("path.point").data(A.identity).enter().append("path").classed("point",!0).each(function(k){l(k,this)}),r.hasText(b)&&d.selectAll("g").data(A.identity).enter().append("g").append("text").each(function(k){l(k,this)}),o(n,h)})}function s(n,m){var x=n[0].trace,f=m[x.geo],v=f._subplot,l=x._length,h,d;if(A.isArrayOrTypedArray(x.locations)){var b=x.locationmode,M=b==="geojson-id"?w.extractTraceFeature(n):t(x,v.topojson);for(h=0;h=m,L=g*2,u={},T,C=d.makeCalcdata(l,"x"),_=b.makeCalcdata(l,"y"),F=w(l,d,"x",C),O=w(l,b,"y",_),j=F.vals,B=O.vals;l._x=j,l._y=B,l.xperiodalignment&&(l._origX=C,l._xStarts=F.starts,l._xEnds=F.ends),l.yperiodalignment&&(l._origY=_,l._yStarts=O.starts,l._yEnds=O.ends);var U=Array(L),P=Array(g);for(T=0;T1&&A.extendFlat(g.line,a.linePositions(v,h,d)),g.errorX||g.errorY){var k=a.errorBarPositions(v,h,d,b,M);g.errorX&&A.extendFlat(g.errorX,k.x),g.errorY&&A.extendFlat(g.errorY,k.y)}return g.text&&(A.extendFlat(g.text,{positions:d},a.textPosition(v,h,g.text,g.marker)),A.extendFlat(g.textSel,{positions:d},a.textPosition(v,h,g.text,g.markerSel)),A.extendFlat(g.textUnsel,{positions:d},a.textPosition(v,h,g.text,g.markerUnsel))),g}}),29483:(function(tt){var G=20;tt.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:G,SYMBOL_STROKE:G/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}}),19937:(function(tt,G,e){var S=e(10721),A=e(96021),t=e(162),E=e(33626),w=e(34809),p=w.isArrayOrTypedArray,c=e(62203),i=e(5975),r=e(46998).formatColor,o=e(64726),a=e(92527),s=e(4075),n=e(29483),m=e(20438).DESELECTDIM,x={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},f=e(36040).appendArrayPointValue;function v(B,U){var P,N={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},V=B._context.plotGlPixelRatio;if(U.visible!==!0)return N;if(o.hasText(U)&&(N.text=l(B,U),N.textSel=M(B,U,U.selected),N.textUnsel=M(B,U,U.unselected)),o.hasMarkers(U)&&(N.marker=d(B,U),N.markerSel=b(B,U,U.selected),N.markerUnsel=b(B,U,U.unselected),!U.unselected&&p(U.marker.opacity))){var Y=U.marker.opacity;for(N.markerUnsel.opacity=Array(Y.length),P=0;P500?"bold":"normal":B}function d(B,U){var P=U._length,N=U.marker,V={},Y,K=p(N.symbol),nt=p(N.angle),ft=p(N.color),ct=p(N.line.color),J=p(N.opacity),et=p(N.size),Q=p(N.line.width),Z;if(K||(Z=s.isOpenSymbol(N.symbol)),K||ft||ct||J||nt){V.symbols=Array(P),V.angles=Array(P),V.colors=Array(P),V.borderColors=Array(P);var st=N.symbol,ot=N.angle,rt=r(N,N.opacity,P),X=r(N.line,N.opacity,P);if(!p(X[0])){var ut=X;for(X=Array(P),Y=0;Yn.TOO_MANY_POINTS||o.hasMarkers(U)?"rect":"round";if(ct&&U.connectgaps){var et=Y[0],Q=Y[1];for(K=0;K1?ft[K]:ft[0]:ft,Z=p(ct)?ct.length>1?ct[K]:ct[0]:ct,st=x[Q],ot=x[Z],rt=J?J/.8+1:0,X=-ot*rt-ot*.5;Y.offset[K]=[st*rt/et,X/et]}}return Y}tt.exports={style:v,markerStyle:d,markerSelection:b,linePositions:F,errorBarPositions:O,textPosition:j}}),86590:(function(tt,G,e){var S=e(34809),A=e(33626),t=e(4075),E=e(92089),w=e(32660),p=e(64726),c=e(99867),i=e(99669),r=e(24272),o=e(98168),a=e(54114),s=e(663);tt.exports=function(n,m,x,f){function v(L,u){return S.coerce(n,m,E,L,u)}var l=n.marker?t.isOpenSymbol(n.marker.symbol):!1,h=p.isBubble(n),d=c(n,m,f,v);if(!d){m.visible=!1;return}i(n,m,f,v),v("xhoverformat"),v("yhoverformat");var b=d100},G.isDotSymbol=function(A){return typeof A=="string"?S.DOT_RE.test(A):A>200}}),36544:(function(tt,G,e){var S=e(33626),A=e(34809),t=e(11539);function E(p,c,i,r){var o=p.cd,a=o[0].t,s=o[0].trace,n=p.xa,m=p.ya,x=a.x,f=a.y,v=n.c2p(c),l=m.c2p(i),h=p.distance,d;if(a.tree){var b=n.p2c(v-h),M=n.p2c(v+h),g=m.p2c(l-h),k=m.p2c(l+h);d=r==="x"?a.tree.range(Math.min(b,M),Math.min(m._rl[0],m._rl[1]),Math.max(b,M),Math.max(m._rl[0],m._rl[1])):a.tree.range(Math.min(b,M),Math.min(g,k),Math.max(b,M),Math.max(g,k))}else d=a.ids;var L,u,T,C,_,F,O,j,B,U=h;if(r==="x"){var P=!!s.xperiodalignment,N=!!s.yperiodalignment;for(_=0;_=Math.min(V,Y)&&v<=Math.max(V,Y)?0:1/0}if(F=Math.min(K,nt)&&l<=Math.max(K,nt)?0:1/0}B=Math.sqrt(F*F+O*O),u=d[_]}}}else for(_=d.length-1;_>-1;_--)L=d[_],T=x[L],C=f[L],F=n.c2p(T)-v,O=m.c2p(C)-l,j=Math.sqrt(F*F+O*O),jl.glText.length){var L=g-l.glText.length;for(b=0;bot&&(isNaN(st[rt])||isNaN(st[rt+1]));)rt-=2;Z.positions=st.slice(ot,rt+2)}return Z}),l.line2d.update(l.lineOptions)),l.error2d){var T=(l.errorXOptions||[]).concat(l.errorYOptions||[]);l.error2d.update(T)}l.scatter2d&&l.scatter2d.update(l.markerOptions),l.fillOrder=w.repeat(null,g),l.fill2d&&(l.fillOptions=l.fillOptions.map(function(Z,st){var ot=f[st];if(!(!Z||!ot||!ot[0]||!ot[0].trace)){var rt=ot[0],X=rt.trace,ut=rt.t,lt=l.lineOptions[st],yt,kt,Lt=[];X._ownfill&&Lt.push(st),X._nexttrace&&Lt.push(st+1),Lt.length&&(l.fillOrder[st]=Lt);var St=[],Ot=lt&<.positions||ut.positions,Ht,Kt;if(X.fill==="tozeroy"){for(Ht=0;HtHt&&isNaN(Ot[Kt+1]);)Kt-=2;Ot[Ht+1]!==0&&(St=[Ot[Ht],0]),St=St.concat(Ot.slice(Ht,Kt+2)),Ot[Kt+1]!==0&&(St=St.concat([Ot[Kt],0]))}else if(X.fill==="tozerox"){for(Ht=0;HtHt&&isNaN(Ot[Kt]);)Kt-=2;Ot[Ht]!==0&&(St=[0,Ot[Ht+1]]),St=St.concat(Ot.slice(Ht,Kt+2)),Ot[Kt]!==0&&(St=St.concat([0,Ot[Kt+1]]))}else if(X.fill==="toself"||X.fill==="tonext"){for(St=[],yt=0,Z.splitNull=!0,kt=0;kt-1;for(b=0;b850?_+=" Black":u>750?_+=" Extra Bold":u>650?_+=" Bold":u>550?_+=" Semi Bold":u>450?_+=" Medium":u>350?_+=" Regular":u>250?_+=" Light":u>150?_+=" Extra Light":_+=" Thin"):T.slice(0,2).join(" ")==="Open Sans"?(_="Open Sans",u>750?_+=" Extrabold":u>650?_+=" Bold":u>550?_+=" Semibold":u>350?_+=" Regular":_+=" Light"):T.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(_="Klokantech Noto Sans",T[3]==="CJK"&&(_+=" CJK"),_+=u>500?" Bold":" Regular")),C&&(_+=" Italic"),_==="Open Sans Regular Italic"?_="Open Sans Italic":_==="Open Sans Regular Bold"?_="Open Sans Bold":_==="Open Sans Regular Bold Italic"?_="Open Sans Bold Italic":_==="Klokantech Noto Sans Regular Italic"&&(_="Klokantech Noto Sans Italic"),r(_)||(_=k),_.split(", ")}}),57387:(function(tt,G,e){var S=e(34809),A=e(64726),t=e(24272),E=e(98168),w=e(663),p=e(54114),c=e(71388),i=e(13624).isSupportedFont;tt.exports=function(o,a,s,n){function m(g,k){return S.coerce(o,a,c,g,k)}function x(g,k){return S.coerce2(o,a,c,g,k)}if(!r(o,a,m)){a.visible=!1;return}if(m("text"),m("texttemplate"),m("hovertext"),m("hovertemplate"),m("mode"),m("below"),A.hasMarkers(a)){t(o,a,s,n,m,{noLine:!0,noAngle:!0}),m("marker.allowoverlap"),m("marker.angle");var f=a.marker;f.symbol!=="circle"&&(S.isArrayOrTypedArray(f.size)&&(f.size=f.size[0]),S.isArrayOrTypedArray(f.color)&&(f.color=f.color[0]))}A.hasLines(a)&&(E(o,a,s,n,m,{noDash:!0}),m("connectgaps"));var v=x("cluster.maxzoom"),l=x("cluster.step"),h=x("cluster.color",a.marker&&a.marker.color||s),d=x("cluster.size"),b=x("cluster.opacity");if(m("cluster.enabled",v!==!1||l!==!1||h!==!1||d!==!1||b!==!1)||A.hasText(a)){var M=n.font.family;w(o,a,n,m,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:i(M)?M:"Open Sans Regular",weight:n.font.weight,style:n.font.style,size:n.font.size,color:n.font.color}})}m("fill"),a.fill!=="none"&&p(o,a,s,m),S.coerceSelectionMarkerOpacity(a,m)};function r(o,a,s){var n=s("lon")||[],m=s("lat")||[],x=Math.min(n.length,m.length);return a._length=x,x}}),58240:(function(tt){tt.exports=function(G,e){return G.lon=e.lon,G.lat=e.lat,G}}),66762:(function(tt,G,e){var S=e(29714);tt.exports=function(A,t,E){var w={},p=E[t.subplot]._subplot.mockAxis,c=A.lonlat;return w.lonLabel=S.tickText(p,p.c2l(c[0]),!0).text,w.latLabel=S.tickText(p,p.c2l(c[1]),!0).text,w}}),67275:(function(tt,G,e){var S=e(32141),A=e(34809),t=e(11539),E=A.fillText,w=e(63821).BADNUM,p=e(8814).traceLayerPrefix;function c(r,o,a){var s=r.cd,n=s[0].trace,m=r.xa,x=r.ya,f=r.subplot,v=[],l=p+n.uid+"-circle",h=n.cluster&&n.cluster.enabled;h&&(v=f.map.queryRenderedFeatures(null,{layers:[l]}).map(function(O){return O.id}));var d=(o>=0?Math.floor((o+180)/360):Math.ceil((o-180)/360))*360,b=o-d;function M(O){var j=O.lonlat;if(j[0]===w||h&&v.indexOf(O.i+1)===-1)return 1/0;var B=A.modHalf(j[0],360),U=j[1],P=f.project([B,U]),N=P.x-m.c2p([b,U]),V=P.y-x.c2p([B,a]),Y=Math.max(3,O.mrc||0);return Math.max(Math.sqrt(N*N+V*V)-Y,1-3/Y)}if(S.getClosest(s,M,r),r.index!==!1){var g=s[r.index],k=g.lonlat,L=[A.modHalf(k[0],360)+d,k[1]],u=m.c2p(L),T=x.c2p(L),C=g.mrc||1;r.x0=u-C,r.x1=u+C,r.y0=T-C,r.y1=T+C;var _={};_[n.subplot]={_subplot:f};var F=n._module.formatLabels(g,n,_);return r.lonLabel=F.lonLabel,r.latLabel=F.latLabel,r.color=t(n,g),r.extraText=i(n,g,s[0].t.labels),r.hovertemplate=n.hovertemplate,[r]}}function i(r,o,a){if(r.hovertemplate)return;var s=(o.hi||r.hoverinfo).split("+"),n=s.indexOf("all")!==-1,m=s.indexOf("lon")!==-1,x=s.indexOf("lat")!==-1,f=o.lonlat,v=[];function l(h){return h+"\xB0"}return n||m&&x?v.push("("+l(f[1])+", "+l(f[0])+")"):m?v.push(a.lon+l(f[0])):x&&v.push(a.lat+l(f[1])),(n||s.indexOf("text")!==-1)&&E(o,r,v),v.join("
")}tt.exports={hoverPoints:c,getExtraText:i}}),30929:(function(tt,G,e){tt.exports={attributes:e(71388),supplyDefaults:e(57387),colorbar:e(21146),formatLabels:e(66762),calc:e(75649),plot:e(26126),hoverPoints:e(67275).hoverPoints,eventData:e(58240),selectPoints:e(21501),styleOnSelect:function(S,A){A&&A[0].trace._glTrace.update(A)},moduleType:"trace",name:"scattermap",basePlotModule:e(34091),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}}),26126:(function(tt,G,e){var S=e(34809),A=e(76717),t=e(8814).traceLayerPrefix,E={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function w(c,i,r,o){this.type="scattermap",this.subplot=c,this.uid=i,this.clusterEnabled=r,this.isHidden=o,this.sourceIds={fill:"source-"+i+"-fill",line:"source-"+i+"-line",circle:"source-"+i+"-circle",symbol:"source-"+i+"-symbol",cluster:"source-"+i+"-circle",clusterCount:"source-"+i+"-circle"},this.layerIds={fill:t+i+"-fill",line:t+i+"-line",circle:t+i+"-circle",symbol:t+i+"-symbol",cluster:t+i+"-cluster",clusterCount:t+i+"-cluster-count"},this.below=null}var p=w.prototype;p.addSource=function(c,i,r){var o={type:"geojson",data:i.geojson};r&&r.enabled&&S.extendFlat(o,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[c]);a?a.setData(i.geojson):this.subplot.map.addSource(this.sourceIds[c],o)},p.setSourceData=function(c,i){this.subplot.map.getSource(this.sourceIds[c]).setData(i.geojson)},p.addLayer=function(c,i,r){var o={type:i.type,id:this.layerIds[c],source:this.sourceIds[c],layout:i.layout,paint:i.paint};i.filter&&(o.filter=i.filter);for(var a=this.layerIds[c],s,n=this.subplot.getMapLayers(),m=0;m=0;T--){var C=u[T];o.removeLayer(x.layerIds[C])}L||o.removeSource(x.sourceIds.circle)}function l(L){for(var u=E.nonCluster,T=0;T=0;T--){var C=u[T];o.removeLayer(x.layerIds[C]),L||o.removeSource(x.sourceIds[C])}}function d(L){m?v(L):h(L)}function b(L){n?f(L):l(L)}function M(){for(var L=n?E.cluster:E.nonCluster,u=0;u=0;r--){var o=i[r];c.removeLayer(this.layerIds[o]),c.removeSource(this.sourceIds[o])}},tt.exports=function(c,i){var r=i[0].trace,o=r.cluster&&r.cluster.enabled,a=r.visible!==!0,s=new w(c,r.uid,o,a),n=A(c.gd,i),m=s.below=c.belowLookup["trace-"+r.uid],x,f,v;if(o)for(s.addSource("circle",n.circle,r.cluster),x=0;x850?_+=" Black":u>750?_+=" Extra Bold":u>650?_+=" Bold":u>550?_+=" Semi Bold":u>450?_+=" Medium":u>350?_+=" Regular":u>250?_+=" Light":u>150?_+=" Extra Light":_+=" Thin"):T.slice(0,2).join(" ")==="Open Sans"?(_="Open Sans",u>750?_+=" Extrabold":u>650?_+=" Bold":u>550?_+=" Semibold":u>350?_+=" Regular":_+=" Light"):T.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(_="Klokantech Noto Sans",T[3]==="CJK"&&(_+=" CJK"),_+=u>500?" Bold":" Regular")),C&&(_+=" Italic"),_==="Open Sans Regular Italic"?_="Open Sans Italic":_==="Open Sans Regular Bold"?_="Open Sans Bold":_==="Open Sans Regular Bold Italic"?_="Open Sans Bold Italic":_==="Klokantech Noto Sans Regular Italic"&&(_="Klokantech Noto Sans Italic"),r(_)||(_=k),_.split(", ")}}),38302:(function(tt,G,e){var S=e(34809),A=e(64726),t=e(24272),E=e(98168),w=e(663),p=e(54114),c=e(95833),i=e(2795).isSupportedFont;tt.exports=function(o,a,s,n){function m(g,k){return S.coerce(o,a,c,g,k)}function x(g,k){return S.coerce2(o,a,c,g,k)}if(!r(o,a,m)){a.visible=!1;return}if(m("text"),m("texttemplate"),m("hovertext"),m("hovertemplate"),m("mode"),m("below"),A.hasMarkers(a)){t(o,a,s,n,m,{noLine:!0,noAngle:!0}),m("marker.allowoverlap"),m("marker.angle");var f=a.marker;f.symbol!=="circle"&&(S.isArrayOrTypedArray(f.size)&&(f.size=f.size[0]),S.isArrayOrTypedArray(f.color)&&(f.color=f.color[0]))}A.hasLines(a)&&(E(o,a,s,n,m,{noDash:!0}),m("connectgaps"));var v=x("cluster.maxzoom"),l=x("cluster.step"),h=x("cluster.color",a.marker&&a.marker.color||s),d=x("cluster.size"),b=x("cluster.opacity");if(m("cluster.enabled",v!==!1||l!==!1||h!==!1||d!==!1||b!==!1)||A.hasText(a)){var M=n.font.family;w(o,a,n,m,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:i(M)?M:"Open Sans Regular",weight:n.font.weight,style:n.font.style,size:n.font.size,color:n.font.color}})}m("fill"),a.fill!=="none"&&p(o,a,s,m),S.coerceSelectionMarkerOpacity(a,m)};function r(o,a,s){var n=s("lon")||[],m=s("lat")||[],x=Math.min(n.length,m.length);return a._length=x,x}}),68197:(function(tt){tt.exports=function(G,e){return G.lon=e.lon,G.lat=e.lat,G}}),69009:(function(tt,G,e){var S=e(29714);tt.exports=function(A,t,E){var w={},p=E[t.subplot]._subplot.mockAxis,c=A.lonlat;return w.lonLabel=S.tickText(p,p.c2l(c[0]),!0).text,w.latLabel=S.tickText(p,p.c2l(c[1]),!0).text,w}}),18016:(function(tt,G,e){var S=e(32141),A=e(34809),t=e(11539),E=A.fillText,w=e(63821).BADNUM,p=e(44245).traceLayerPrefix;function c(r,o,a){var s=r.cd,n=s[0].trace,m=r.xa,x=r.ya,f=r.subplot,v=[],l=p+n.uid+"-circle",h=n.cluster&&n.cluster.enabled;h&&(v=f.map.queryRenderedFeatures(null,{layers:[l]}).map(function(O){return O.id}));var d=(o>=0?Math.floor((o+180)/360):Math.ceil((o-180)/360))*360,b=o-d;function M(O){var j=O.lonlat;if(j[0]===w||h&&v.indexOf(O.i+1)===-1)return 1/0;var B=A.modHalf(j[0],360),U=j[1],P=f.project([B,U]),N=P.x-m.c2p([b,U]),V=P.y-x.c2p([B,a]),Y=Math.max(3,O.mrc||0);return Math.max(Math.sqrt(N*N+V*V)-Y,1-3/Y)}if(S.getClosest(s,M,r),r.index!==!1){var g=s[r.index],k=g.lonlat,L=[A.modHalf(k[0],360)+d,k[1]],u=m.c2p(L),T=x.c2p(L),C=g.mrc||1;r.x0=u-C,r.x1=u+C,r.y0=T-C,r.y1=T+C;var _={};_[n.subplot]={_subplot:f};var F=n._module.formatLabels(g,n,_);return r.lonLabel=F.lonLabel,r.latLabel=F.latLabel,r.color=t(n,g),r.extraText=i(n,g,s[0].t.labels),r.hovertemplate=n.hovertemplate,[r]}}function i(r,o,a){if(r.hovertemplate)return;var s=(o.hi||r.hoverinfo).split("+"),n=s.indexOf("all")!==-1,m=s.indexOf("lon")!==-1,x=s.indexOf("lat")!==-1,f=o.lonlat,v=[];function l(h){return h+"\xB0"}return n||m&&x?v.push("("+l(f[1])+", "+l(f[0])+")"):m?v.push(a.lon+l(f[0])):x&&v.push(a.lat+l(f[1])),(n||s.indexOf("text")!==-1)&&E(o,r,v),v.join("
")}tt.exports={hoverPoints:c,getExtraText:i}}),83866:(function(tt,G,e){["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/javascript/maplibre-migration/"].join(" "),tt.exports={attributes:e(95833),supplyDefaults:e(38302),colorbar:e(21146),formatLabels:e(69009),calc:e(75649),plot:e(20691),hoverPoints:e(18016).hoverPoints,eventData:e(68197),selectPoints:e(60784),styleOnSelect:function(S,A){A&&A[0].trace._glTrace.update(A)},moduleType:"trace",name:"scattermapbox",basePlotModule:e(68192),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}}),20691:(function(tt,G,e){var S=e(34809),A=e(27009),t=e(44245).traceLayerPrefix,E={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function w(c,i,r,o){this.type="scattermapbox",this.subplot=c,this.uid=i,this.clusterEnabled=r,this.isHidden=o,this.sourceIds={fill:"source-"+i+"-fill",line:"source-"+i+"-line",circle:"source-"+i+"-circle",symbol:"source-"+i+"-symbol",cluster:"source-"+i+"-circle",clusterCount:"source-"+i+"-circle"},this.layerIds={fill:t+i+"-fill",line:t+i+"-line",circle:t+i+"-circle",symbol:t+i+"-symbol",cluster:t+i+"-cluster",clusterCount:t+i+"-cluster-count"},this.below=null}var p=w.prototype;p.addSource=function(c,i,r){var o={type:"geojson",data:i.geojson};r&&r.enabled&&S.extendFlat(o,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[c]);a?a.setData(i.geojson):this.subplot.map.addSource(this.sourceIds[c],o)},p.setSourceData=function(c,i){this.subplot.map.getSource(this.sourceIds[c]).setData(i.geojson)},p.addLayer=function(c,i,r){var o={type:i.type,id:this.layerIds[c],source:this.sourceIds[c],layout:i.layout,paint:i.paint};i.filter&&(o.filter=i.filter);for(var a=this.layerIds[c],s,n=this.subplot.getMapLayers(),m=0;m=0;T--){var C=u[T];o.removeLayer(x.layerIds[C])}L||o.removeSource(x.sourceIds.circle)}function l(L){for(var u=E.nonCluster,T=0;T=0;T--){var C=u[T];o.removeLayer(x.layerIds[C]),L||o.removeSource(x.sourceIds[C])}}function d(L){m?v(L):h(L)}function b(L){n?f(L):l(L)}function M(){for(var L=n?E.cluster:E.nonCluster,u=0;u=0;r--){var o=i[r];c.removeLayer(this.layerIds[o]),c.removeSource(this.sourceIds[o])}},tt.exports=function(c,i){var r=i[0].trace,o=r.cluster&&r.cluster.enabled,a=r.visible!==!0,s=new w(c,r.uid,o,a),n=A(c.gd,i),m=s.below=c.belowLookup["trace-"+r.uid],x,f,v;if(o)for(s.addSource("circle",n.circle,r.cluster),x=0;x")}}tt.exports={hoverPoints:A,makeHoverPointText:t}}),66939:(function(tt,G,e){tt.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:e(31645),categories:["polar","symbols","showLegend","scatter-like"],attributes:e(8738),supplyDefaults:e(73749).supplyDefaults,colorbar:e(21146),formatLabels:e(33368),calc:e(13246),plot:e(43836),style:e(9408).style,styleOnSelect:e(9408).styleOnSelect,hoverPoints:e(29709).hoverPoints,selectPoints:e(32665),meta:{}}}),43836:(function(tt,G,e){var S=e(36098),A=e(63821).BADNUM;tt.exports=function(t,E,w){for(var p=E.layers.frontplot.select("g.scatterlayer"),c=E.xaxis,i=E.yaxis,r={xaxis:c,yaxis:i,plot:E.framework,layerClipId:E._hasClipOnAxisFalse?E.clipIds.forTraces:null},o=E.radialAxis,a=E.angularAxis,s=0;s=c&&(M.marker.cluster=l.tree),M.marker&&(M.markerSel.positions=M.markerUnsel.positions=M.marker.positions=u),M.line&&u.length>1&&p.extendFlat(M.line,w.linePositions(r,v,u)),M.text&&(p.extendFlat(M.text,{positions:u},w.textPosition(r,v,M.text,M.marker)),p.extendFlat(M.textSel,{positions:u},w.textPosition(r,v,M.text,M.markerSel)),p.extendFlat(M.textUnsel,{positions:u},w.textPosition(r,v,M.text,M.markerUnsel))),M.fill&&!m.fill2d&&(m.fill2d=!0),M.marker&&!m.scatter2d&&(m.scatter2d=!0),M.line&&!m.line2d&&(m.line2d=!0),M.text&&!m.glText&&(m.glText=!0),m.lineOptions.push(M.line),m.fillOptions.push(M.fill),m.markerOptions.push(M.marker),m.markerSelectedOptions.push(M.markerSel),m.markerUnselectedOptions.push(M.markerUnsel),m.textOptions.push(M.text),m.textSelectedOptions.push(M.textSel),m.textUnselectedOptions.push(M.textUnsel),m.selectBatch.push([]),m.unselectBatch.push([]),l.x=T,l.y=C,l.rawx=T,l.rawy=C,l.r=d,l.theta=b,l.positions=u,l._scene=m,l.index=m.count,m.count++}}),t(r,o,a)}},tt.exports.reglPrecompiled=i}),69595:(function(tt,G,e){var S=e(3208).rb,A=e(3208).ay,t=e(93049).extendFlat,E=e(19326),w=e(36640),p=e(9829),c=w.line;tt.exports={mode:w.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:w.text,texttemplate:A({editType:"plot"},{keys:["real","imag","text"]}),hovertext:w.hovertext,line:{color:c.color,width:c.width,dash:c.dash,backoff:c.backoff,shape:t({},c.shape,{values:["linear","spline"]}),smoothing:c.smoothing,editType:"calc"},connectgaps:w.connectgaps,marker:w.marker,cliponaxis:t({},w.cliponaxis,{dflt:!1}),textposition:w.textposition,textfont:w.textfont,fill:t({},w.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:E(),hoverinfo:t({},p.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:w.hoveron,hovertemplate:S(),selected:w.selected,unselected:w.unselected}}),44315:(function(tt,G,e){var S=e(10721),A=e(63821).BADNUM,t=e(77272),E=e(99203),w=e(48861),p=e(26544).calcMarkerSize;tt.exports=function(c,i){for(var r=c._fullLayout,o=i.subplot,a=r[o].realaxis,s=r[o].imaginaryaxis,n=a.makeCalcdata(i,"real"),m=s.makeCalcdata(i,"imag"),x=i._length,f=Array(x),v=0;v")}}tt.exports={hoverPoints:A,makeHoverPointText:t}}),73304:(function(tt,G,e){tt.exports={moduleType:"trace",name:"scattersmith",basePlotModule:e(50358),categories:["smith","symbols","showLegend","scatter-like"],attributes:e(69595),supplyDefaults:e(93788),colorbar:e(21146),formatLabels:e(89419),calc:e(44315),plot:e(6229),style:e(9408).style,styleOnSelect:e(9408).styleOnSelect,hoverPoints:e(64422).hoverPoints,selectPoints:e(32665),meta:{}}}),6229:(function(tt,G,e){var S=e(36098),A=e(63821).BADNUM,t=e(52007).smith;tt.exports=function(E,w,p){for(var c=w.layers.frontplot.select("g.scatterlayer"),i=w.xaxis,r=w.yaxis,o={xaxis:i,yaxis:r,plot:w.framework,layerClipId:w._hasClipOnAxisFalse?w.clipIds.forTraces:null},a=0;a"),c.hovertemplate=n.hovertemplate,p}}),12864:(function(tt,G,e){tt.exports={attributes:e(18483),supplyDefaults:e(79028),colorbar:e(21146),formatLabels:e(78995),calc:e(67091),plot:e(79005),style:e(9408).style,styleOnSelect:e(9408).styleOnSelect,hoverPoints:e(26558),selectPoints:e(32665),eventData:e(94343),moduleType:"trace",name:"scatterternary",basePlotModule:e(7638),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}}),79005:(function(tt,G,e){var S=e(36098);tt.exports=function(A,t,E){var w=t.plotContainer;w.select(".scatterlayer").selectAll("*").remove();for(var p=t.xaxis,c=t.yaxis,i={xaxis:p,yaxis:c,plot:w,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},r=t.layers.frontplot.select("g.scatterlayer"),o=0;oo?x.sizeAvg||Math.max(x.size,3):t(s,m);for(d=0;dd&&f||h-1,B=E(f)||!!o.selectedpoints||j,U=!0;if(B){var P=o._length;if(o.selectedpoints){s.selectBatch=o.selectedpoints;var N=o.selectedpoints,V={};for(h=0;h1&&(u=i[a-1],C=r[a-1],F=o[a-1]),s=0;su?"-":"+")+"x"),b=b.replace("y",(T>C?"-":"+")+"y"),b=b.replace("z",(_>F?"-":"+")+"z");var U=function(){a=0,O=[],j=[],B=[]};(!a||a2?m.slice(1,x-1):x===2?[(m[0]+m[1])/2]:m}function a(m){var x=m.length;return x===1?[.5,.5]:[m[1]-m[0],m[x-1]-m[x-2]]}function s(m,x){var f=m.fullSceneLayout,v=m.dataScale,l=x._len,h={};function d(nt,ft){var ct=f[ft],J=v[c[ft]];return t.simpleMap(nt,function(et){return ct.d2l(et)*J})}if(h.vectors=p(d(x._u,"xaxis"),d(x._v,"yaxis"),d(x._w,"zaxis"),l),!l)return{positions:[],cells:[]};var b=d(x._Xs,"xaxis"),M=d(x._Ys,"yaxis"),g=d(x._Zs,"zaxis");if(h.meshgrid=[b,M,g],h.gridFill=x._gridFill,x._slen)h.startingPositions=p(d(x._startsX,"xaxis"),d(x._startsY,"yaxis"),d(x._startsZ,"zaxis"));else{for(var k=M[0],L=o(b),u=o(g),T=Array(L.length*u.length),C=0,_=0;_=0},C,_,F;v?(C=Math.min(f.length,h.length),_=function(Z){return u(f[Z])&&T(Z)},F=function(Z){return String(f[Z])}):(C=Math.min(l.length,h.length),_=function(Z){return u(l[Z])&&T(Z)},F=function(Z){return String(l[Z])}),b&&(C=Math.min(C,d.length));for(var O=0;O1){for(var P=t.randstr(),N=0;N=0){E.i=i.i;var a=w.marker;a.pattern?(!a.colors||!a.pattern.shape)&&(a.color=o,E.color=o):(a.color=o,E.color=o),S.pointStyle(t,w,p,E)}else A.fill(t,o)}}),44691:(function(tt,G,e){var S=e(45568),A=e(33626),t=e(36040).appendArrayPointValue,E=e(32141),w=e(34809),p=e(68596),c=e(33108),i=e(37252).formatPieValue;tt.exports=function(o,a,s,n,m){var x=n[0],f=x.trace,v=x.hierarchy,l=f.type==="sunburst",h=f.type==="treemap"||f.type==="icicle";"_hasHoverLabel"in f||(f._hasHoverLabel=!1),"_hasHoverEvent"in f||(f._hasHoverEvent=!1),o.on("mouseover",function(d){var b=s._fullLayout;if(!(s._dragging||b.hovermode===!1)){var M=s._fullData[f.index],g=d.data.data,k=g.i,L=c.isHierarchyRoot(d),u=c.getParent(v,d),T=c.getValue(d),C=function(Q){return w.castOption(M,k,Q)},_=C("hovertemplate"),F=E.castHoverinfo(M,b,k),O=b.separators,j;if(_||F&&F!=="none"&&F!=="skip"){var B,U;l&&(B=x.cx+d.pxmid[0]*(1-d.rInscribed),U=x.cy+d.pxmid[1]*(1-d.rInscribed)),h&&(B=d._hoverX,U=d._hoverY);var P={},N=[],V=[],Y=function(Q){return N.indexOf(Q)!==-1};F&&(N=F==="all"?M._module.attributes.hoverinfo.flags:F.split("+")),P.label=g.label,Y("label")&&P.label&&V.push(P.label),g.hasOwnProperty("v")&&(P.value=g.v,P.valueLabel=i(P.value,O),Y("value")&&V.push(P.valueLabel)),P.currentPath=d.currentPath=c.getPath(d.data),Y("current path")&&!L&&V.push(P.currentPath);var K,nt=[],ft=function(){nt.indexOf(K)===-1&&(V.push(K),nt.push(K))};P.percentParent=d.percentParent=T/c.getValue(u),P.parent=d.parentString=c.getPtLabel(u),Y("percent parent")&&(K=c.formatPercent(P.percentParent,O)+" of "+P.parent,ft()),P.percentEntry=d.percentEntry=T/c.getValue(a),P.entry=d.entry=c.getPtLabel(a),Y("percent entry")&&!L&&!d.onPathbar&&(K=c.formatPercent(P.percentEntry,O)+" of "+P.entry,ft()),P.percentRoot=d.percentRoot=T/c.getValue(v),P.root=d.root=c.getPtLabel(v),Y("percent root")&&!L&&(K=c.formatPercent(P.percentRoot,O)+" of "+P.root,ft()),P.text=C("hovertext")||C("text"),Y("text")&&(K=P.text,w.isValidTextValue(K)&&V.push(K)),j=[r(d,M,m.eventDataKeys)];var ct={trace:M,y:U,_x0:d._x0,_x1:d._x1,_y0:d._y0,_y1:d._y1,text:V.join("
"),name:_||Y("name")?M.name:void 0,color:C("hoverlabel.bgcolor")||g.color,borderColor:C("hoverlabel.bordercolor"),fontFamily:C("hoverlabel.font.family"),fontSize:C("hoverlabel.font.size"),fontColor:C("hoverlabel.font.color"),fontWeight:C("hoverlabel.font.weight"),fontStyle:C("hoverlabel.font.style"),fontVariant:C("hoverlabel.font.variant"),nameLength:C("hoverlabel.namelength"),textAlign:C("hoverlabel.align"),hovertemplate:_,hovertemplateLabels:P,eventData:j};l&&(ct.x0=B-d.rInscribed*d.rpx1,ct.x1=B+d.rInscribed*d.rpx1,ct.idealAlign=d.pxmid[0]<0?"left":"right"),h&&(ct.x=B,ct.idealAlign=B<0?"left":"right");var J=[];E.loneHover(ct,{container:b._hoverlayer.node(),outerContainer:b._paper.node(),gd:s,inOut_bbox:J}),j[0].bbox=J[0],f._hasHoverLabel=!0}if(h){var et=o.select("path.surface");m.styleOne(et,d,M,s,{hovered:!0})}f._hasHoverEvent=!0,s.emit("plotly_hover",{points:j||[r(d,M,m.eventDataKeys)],event:S.event})}}),o.on("mouseout",function(d){var b=s._fullLayout,M=s._fullData[f.index],g=S.select(this).datum();if(f._hasHoverEvent&&(f._hasHoverEvent=(d.originalEvent=S.event,s.emit("plotly_unhover",{points:[r(g,M,m.eventDataKeys)],event:S.event}),!1)),f._hasHoverLabel&&(f._hasHoverLabel=(E.loneUnhover(b._hoverlayer.node()),!1)),h){var k=o.select("path.surface");m.styleOne(k,g,M,s,{hovered:!1})}}),o.on("click",function(d){var b=s._fullLayout,M=s._fullData[f.index],g=l&&(c.isHierarchyRoot(d)||c.isLeaf(d)),k=c.getPtId(d),L=c.isEntry(d)?c.findEntryWithChild(v,k):c.findEntryWithLevel(v,k),u=c.getPtId(L),T={points:[r(d,M,m.eventDataKeys)],event:S.event};g||(T.nextLevel=u);var C=p.triggerHandler(s,"plotly_"+f.type+"click",T);if(C!==!1&&b.hovermode&&(s._hoverdata=[r(d,M,m.eventDataKeys)],E.click(s,S.event)),!g&&C!==!1&&!s._dragging&&!s._transitioning){A.call("_storeDirectGUIEdit",M,b._tracePreGUI[M.uid],{level:M.level});var _={data:[{level:u}],traces:[f.index]},F={frame:{redraw:!1,duration:m.transitionTime},transition:{duration:m.transitionTime,easing:m.transitionEasing},mode:"immediate",fromcurrent:!0};E.loneUnhover(b._hoverlayer.node()),A.call("animate",s,_,F)}})};function r(o,a,s){for(var n=o.data.data,m={curveNumber:a.index,pointNumber:n.i,data:a._input,fullData:a},x=0;x0)},G.getMaxDepth=function(i){return i.maxdepth>=0?i.maxdepth:1/0},G.isHeader=function(i,r){return!(G.isLeaf(i)||i.depth===r._maxDepth-1)};function c(i){return i.data.data.pid}G.getParent=function(i,r){return G.findEntryWithLevel(i,c(r))},G.listPath=function(i,r){var o=i.parent;if(!o)return[];var a=r?[o.data[r]]:[o];return G.listPath(o,r).concat(a)},G.getPath=function(i){return G.listPath(i,"label").join("/")+"/"},G.formatValue=E.formatPieValue,G.formatPercent=function(i,r){var o=S.formatPercent(i,0);return o==="0%"&&(o=E.formatPiePercent(i,r)),o}}),80809:(function(tt,G,e){tt.exports={moduleType:"trace",name:"sunburst",basePlotModule:e(14724),categories:[],animatable:!0,attributes:e(56708),layoutAttributes:e(98959),supplyDefaults:e(33459),supplyLayoutDefaults:e(75816),calc:e(14852).calc,crossTraceCalc:e(14852).crossTraceCalc,plot:e(19718).plot,style:e(98972).style,colorbar:e(21146),meta:{}}}),98959:(function(tt){tt.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}}),75816:(function(tt,G,e){var S=e(34809),A=e(98959);tt.exports=function(t,E){function w(p,c){return S.coerce(t,E,A,p,c)}w("sunburstcolorway",E.colorway),w("extendsunburstcolors")}}),19718:(function(tt,G,e){var S=e(45568),A=e(92264),t=e(88640).GW,E=e(62203),w=e(34809),p=e(30635),c=e(84102),i=c.recordMinTextSize,r=c.clearMinTextSize,o=e(35734),a=e(37252).getRotationAngle,s=o.computeTransform,n=o.transformInsideText,m=e(98972).styleOne,x=e(6851).resizeText,f=e(44691),v=e(2032),l=e(33108);G.plot=function(k,L,u,T){var C=k._fullLayout,_=C._sunburstlayer,F,O,j=!u,B=!C.uniformtext.mode&&l.hasTransition(u);r("sunburst",C),F=_.selectAll("g.trace.sunburst").data(L,function(U){return U[0].trace.uid}),F.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),F.order(),B?(T&&(O=T()),S.transition().duration(u.duration).ease(u.easing).each("end",function(){O&&O()}).each("interrupt",function(){O&&O()}).each(function(){_.selectAll("g.trace").each(function(U){h(k,U,this,u)})})):(F.each(function(U){h(k,U,this,u)}),C.uniformtext.mode&&x(k,C._sunburstlayer.selectAll(".trace"),"sunburst")),j&&F.exit().remove()};function h(k,L,u,T){var C=k._context.staticPlot,_=k._fullLayout,F=!_.uniformtext.mode&&l.hasTransition(T),O=S.select(u).selectAll("g.slice"),j=L[0],B=j.trace,U=j.hierarchy,P=l.findEntryWithLevel(U,B.level),N=l.getMaxDepth(B),V=_._size,Y=B.domain,K=V.w*(Y.x[1]-Y.x[0]),nt=V.h*(Y.y[1]-Y.y[0]),ft=.5*Math.min(K,nt),ct=j.cx=V.l+V.w*(Y.x[1]+Y.x[0])/2,J=j.cy=V.t+V.h*(1-Y.y[0])-nt/2;if(!P)return O.remove();var et=null,Q={};F&&O.each(function(jt){Q[l.getPtId(jt)]={rpx0:jt.rpx0,rpx1:jt.rpx1,x0:jt.x0,x1:jt.x1,transform:jt.transform},!et&&l.isEntry(jt)&&(et=jt)});var Z=d(P).descendants(),st=P.height+1,ot=0,rt=N;j.hasMultipleRoots&&l.isHierarchyRoot(P)&&(Z=Z.slice(1),--st,ot=1,rt+=1),Z=Z.filter(function(jt){return jt.y1<=rt});var X=a(B.rotation);X&&Z.forEach(function(jt){jt.x0+=X,jt.x1+=X});var ut=Math.min(st,N),lt=function(jt){return(jt-ot)/ut*ft},yt=function(jt,de){return[jt*Math.cos(de),-jt*Math.sin(de)]},kt=function(jt){return w.pathAnnulus(jt.rpx0,jt.rpx1,jt.x0,jt.x1,ct,J)},Lt=function(jt){return ct+M(jt)[0]*(jt.transform.rCenter||0)+(jt.transform.x||0)},St=function(jt){return J+M(jt)[1]*(jt.transform.rCenter||0)+(jt.transform.y||0)};O=O.data(Z,l.getPtId),O.enter().append("g").classed("slice",!0),F?O.exit().transition().each(function(){var jt=S.select(this);jt.select("path.surface").transition().attrTween("d",function(de){var Xt=Gt(de);return function(ye){return kt(Xt(ye))}}),jt.select("g.slicetext").attr("opacity",0)}).remove():O.exit().remove(),O.order();var Ot=null;if(F&&et){var Ht=l.getPtId(et);O.each(function(jt){Ot===null&&l.getPtId(jt)===Ht&&(Ot=jt.x1)})}var Kt=O;F&&(Kt=Kt.transition().each("end",function(){var jt=S.select(this);l.setSliceCursor(jt,k,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),Kt.each(function(jt){var de=S.select(this),Xt=w.ensureSingle(de,"path","surface",function(me){me.style("pointer-events",C?"none":"all")});jt.rpx0=lt(jt.y0),jt.rpx1=lt(jt.y1),jt.xmid=(jt.x0+jt.x1)/2,jt.pxmid=yt(jt.rpx1,jt.xmid),jt.midangle=-(jt.xmid-Math.PI/2),jt.startangle=-(jt.x0-Math.PI/2),jt.stopangle=-(jt.x1-Math.PI/2),jt.halfangle=.5*Math.min(w.angleDelta(jt.x0,jt.x1)||Math.PI,Math.PI),jt.ring=1-jt.rpx0/jt.rpx1,jt.rInscribed=b(jt,B),F?Xt.transition().attrTween("d",function(me){var be=Et(me);return function(je){return kt(be(je))}}):Xt.attr("d",kt),de.call(f,P,k,L,{eventDataKeys:v.eventDataKeys,transitionTime:v.CLICK_TRANSITION_TIME,transitionEasing:v.CLICK_TRANSITION_EASING}).call(l.setSliceCursor,k,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:k._transitioning}),Xt.call(m,jt,B,k);var ye=w.ensureSingle(de,"g","slicetext"),Le=w.ensureSingle(ye,"text","",function(me){me.attr("data-notex",1)}),ve=w.ensureUniformFontSize(k,l.determineTextFont(B,jt,_.font));Le.text(G.formatSliceLabel(jt,P,B,L,_)).classed("slicetext",!0).attr("text-anchor","middle").call(E.font,ve).call(p.convertToTspans,k);var ke=E.bBox(Le.node());jt.transform=n(ke,jt,j),jt.transform.targetX=Lt(jt),jt.transform.targetY=St(jt);var Pe=function(me,be){var je=me.transform;return s(je,be),je.fontSize=ve.size,i(B.type,je,_),w.getTextTransform(je)};F?Le.transition().attrTween("transform",function(me){var be=At(me);return function(je){return Pe(be(je),ke)}}):Le.attr("transform",Pe(jt,ke))});function Gt(jt){var de=l.getPtId(jt),Xt=Q[de],ye=Q[l.getPtId(P)],Le;if(ye){var ve=(jt.x1>ye.x1?2*Math.PI:0)+X;Le=jt.rpx1Ot?2*Math.PI:0)+X;Xt={x0:Le,x1:Le}}else Xt={rpx0:ft,rpx1:ft},w.extendFlat(Xt,qt(jt));else Xt={rpx0:0,rpx1:0};else Xt={x0:X,x1:X};return t(Xt,ye)}function At(jt){var de=Q[l.getPtId(jt)],Xt,ye=jt.transform;if(de)Xt=de;else if(Xt={rpx1:jt.rpx1,transform:{textPosAngle:ye.textPosAngle,scale:0,rotate:ye.rotate,rCenter:ye.rCenter,x:ye.x,y:ye.y}},et)if(jt.parent)if(Ot){var Le=jt.x1>Ot?2*Math.PI:0;Xt.x0=Xt.x1=Le}else w.extendFlat(Xt,qt(jt));else Xt.x0=Xt.x1=X;else Xt.x0=Xt.x1=X;var ve=t(Xt.transform.textPosAngle,jt.transform.textPosAngle),ke=t(Xt.rpx1,jt.rpx1),Pe=t(Xt.x0,jt.x0),me=t(Xt.x1,jt.x1),be=t(Xt.transform.scale,ye.scale),je=t(Xt.transform.rotate,ye.rotate),nr=ye.rCenter===0?3:Xt.transform.rCenter===0?1/3:1,Vt=t(Xt.transform.rCenter,ye.rCenter),Qt=function(te){return Vt(te**+nr)};return function(te){var ee=ke(te),Bt=Pe(te),Wt=me(te),$t=Qt(te),Tt={pxmid:yt(ee,(Bt+Wt)/2),rpx1:ee,transform:{textPosAngle:ve(te),rCenter:$t,x:ye.x,y:ye.y}};return i(B.type,ye,_),{transform:{targetX:Lt(Tt),targetY:St(Tt),scale:be(te),rotate:je(te),rCenter:$t}}}}function qt(jt){var de=jt.parent,Xt=Q[l.getPtId(de)],ye={};if(Xt){var Le=de.children,ve=Le.indexOf(jt),ke=Le.length,Pe=t(Xt.x0,Xt.x1);ye.x0=Pe(ve/ke),ye.x1=Pe(ve/ke)}else ye.x0=ye.x1=0;return ye}}function d(k){return A.partition().size([2*Math.PI,k.height+1])(k)}G.formatSliceLabel=function(k,L,u,T,C){var _=u.texttemplate,F=u.textinfo;if(!_&&(!F||F==="none"))return"";var O=C.separators,j=T[0],B=k.data.data,U=j.hierarchy,P=l.isHierarchyRoot(k),N=l.getParent(U,k),V=l.getValue(k);if(!_){var Y=F.split("+"),K=function(rt){return Y.indexOf(rt)!==-1},nt=[],ft;if(K("label")&&B.label&&nt.push(B.label),B.hasOwnProperty("v")&&K("value")&&nt.push(l.formatValue(B.v,O)),!P){K("current path")&&nt.push(l.getPath(k.data));var ct=0;K("percent parent")&&ct++,K("percent entry")&&ct++,K("percent root")&&ct++;var J=ct>1;if(ct){var et,Q=function(rt){ft=l.formatPercent(et,O),J&&(ft+=" of "+rt),nt.push(ft)};K("percent parent")&&!P&&(et=V/l.getValue(N),Q("parent")),K("percent entry")&&(et=V/l.getValue(L),Q("entry")),K("percent root")&&(et=V/l.getValue(U),Q("root"))}}return K("text")&&(ft=w.castOption(u,B.i,"text"),w.isValidTextValue(ft)&&nt.push(ft)),nt.join("
")}var Z=w.castOption(u,B.i,"texttemplate");if(!Z)return"";var st={};B.label&&(st.label=B.label),B.hasOwnProperty("v")&&(st.value=B.v,st.valueLabel=l.formatValue(B.v,O)),st.currentPath=l.getPath(k.data),P||(st.percentParent=V/l.getValue(N),st.percentParentLabel=l.formatPercent(st.percentParent,O),st.parent=l.getPtLabel(N)),st.percentEntry=V/l.getValue(L),st.percentEntryLabel=l.formatPercent(st.percentEntry,O),st.entry=l.getPtLabel(L),st.percentRoot=V/l.getValue(U),st.percentRootLabel=l.formatPercent(st.percentRoot,O),st.root=l.getPtLabel(U),B.hasOwnProperty("color")&&(st.color=B.color);var ot=w.castOption(u,B.i,"text");return(w.isValidTextValue(ot)||ot==="")&&(st.text=ot),st.customdata=w.castOption(u,B.i,"customdata"),w.texttemplateString(Z,st,C._d3locale,st,u._meta||{})};function b(k){return k.rpx0===0&&w.isFullCircle([k.x0,k.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(k.halfangle)),k.ring/2))}function M(k){return g(k.rpx1,k.transform.textPosAngle)}function g(k,L){return[k*Math.sin(L),-k*Math.cos(L)]}}),98972:(function(tt,G,e){var S=e(45568),A=e(78766),t=e(34809),E=e(84102).resizeText,w=e(72043);function p(i){var r=i._fullLayout._sunburstlayer.selectAll(".trace");E(i,r,"sunburst"),r.each(function(o){var a=S.select(this),s=o[0].trace;a.style("opacity",s.opacity),a.selectAll("path.surface").each(function(n){S.select(this).call(c,n,s,i)})})}function c(i,r,o,a){var s=r.data.data,n=!r.children,m=s.i,x=t.castOption(o,m,"marker.line.color")||A.defaultLine,f=t.castOption(o,m,"marker.line.width")||0;i.call(w,r,o,a).style("stroke-width",f).call(A.stroke,x).style("opacity",n?o.leaf.opacity:null)}tt.exports={style:p,styleOne:c}}),16131:(function(tt,G,e){var S=e(78766),A=e(87163),t=e(80712).axisHoverFormat,E=e(3208).rb,w=e(9829),p=e(93049).extendFlat,c=e(13582).overrideAll;function i(a){return{valType:"boolean",dflt:!1}}function r(a){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:i("x"),y:i("y"),z:i("z")},color:{valType:"color",dflt:S.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:S.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var o=tt.exports=c(p({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:E(),xhoverformat:t("x"),yhoverformat:t("y"),zhoverformat:t("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},A("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:r("x"),y:r("y"),z:r("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:p({},A.zauto,{}),zmin:p({},A.zmin,{}),zmax:p({},A.zmax,{})},hoverinfo:p({},w.hoverinfo),showlegend:p({},w.showlegend,{dflt:!1})}),"calc","nested");o.x.editType=o.y.editType=o.z.editType="calc+clearAxisTypes",o.transforms=void 0}),53027:(function(tt,G,e){var S=e(28379);tt.exports=function(A,t){t.surfacecolor?S(A,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):S(A,t,{vals:t.z,containerStr:"",cLetter:"c"})}}),27159:(function(tt,G,e){var S=e(99098).gl_surface3d,A=e(99098).ndarray,t=e(99098).ndarray_linear_interpolate.d2,E=e(69295),w=e(78106),p=e(34809).isArrayOrTypedArray,c=e(46998).parseColorScale,i=e(55010),r=e(88856).extractOpts;function o(T,C,_){this.scene=T,this.uid=_,this.surface=C,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var a=o.prototype;a.getXat=function(T,C,_,F){var O=p(this.data.x)?p(this.data.x[0])?this.data.x[C][T]:this.data.x[T]:T;return _===void 0?O:F.d2l(O,0,_)},a.getYat=function(T,C,_,F){var O=p(this.data.y)?p(this.data.y[0])?this.data.y[C][T]:this.data.y[C]:C;return _===void 0?O:F.d2l(O,0,_)},a.getZat=function(T,C,_,F){var O=this.data.z[C][T];return O===null&&this.data.connectgaps&&this.data._interpolatedZ&&(O=this.data._interpolatedZ[C][T]),_===void 0?O:F.d2l(O,0,_)},a.handlePick=function(T){if(T.object===this.surface){var C=(T.data.index[0]-1)/this.dataScaleX-1,_=(T.data.index[1]-1)/this.dataScaleY-1,F=Math.max(Math.min(Math.round(C),this.data.z[0].length-1),0),O=Math.max(Math.min(Math.round(_),this.data._ylength-1),0);T.index=[F,O],T.traceCoordinate=[this.getXat(F,O),this.getYat(F,O),this.getZat(F,O)],T.dataCoordinate=[this.getXat(F,O,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(F,O,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(F,O,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var j=0;j<3;j++)T.dataCoordinate[j]!=null&&(T.dataCoordinate[j]*=this.scene.dataScale[j]);var B=this.data.hovertext||this.data.text;return p(B)&&B[O]&&B[O][F]!==void 0?T.textLabel=B[O][F]:B?T.textLabel=B:T.textLabel="",T.data.dataCoordinate=T.dataCoordinate.slice(),this.surface.highlight(T.data),this.scene.glplot.spikes.position=T.dataCoordinate,!0}};function s(T){var C=T[0].rgb,_=T[T.length-1].rgb;return C[0]===_[0]&&C[1]===_[1]&&C[2]===_[2]&&C[3]===_[3]}var n=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function m(T,C){if(T0){_=n[F];break}return _}function v(T,C){if(!(T<1||C<1)){for(var _=x(T),F=x(C),O=1,j=0;jb;)_--,_/=f(_),_++,_1?F:1};function M(T,C,_){var F=_[8]+_[2]*C[0]+_[5]*C[1];return T[0]=(_[6]+_[0]*C[0]+_[3]*C[1])/F,T[1]=(_[7]+_[1]*C[0]+_[4]*C[1])/F,T}function g(T,C,_){return k(T,C,M,_),T}function k(T,C,_,F){for(var O=[0,0],j=T.shape[0],B=T.shape[1],U=0;U0&&this.contourStart[F]!==null&&this.contourEnd[F]!==null&&this.contourEnd[F]>this.contourStart[F]))for(C[F]=!0,O=this.contourStart[F];OK&&(this.minValues[N]=K),this.maxValues[N]",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}}),21908:(function(tt,G,e){var S=e(18426),A=e(93049).extendFlat,t=e(10721),E=e(87800).isTypedArray,w=e(87800).isArrayOrTypedArray;tt.exports=function(m,x){var f=i(x.cells.values),v=function(P){return P.slice(x.header.values.length,P.length)},l=i(x.header.values);l.length&&!l[0].length&&(l[0]=[""],l=i(l));var h=l.concat(v(f).map(function(){return r((l[0]||[""]).length)})),d=x.domain,b=Math.floor(m._fullLayout._size.w*(d.x[1]-d.x[0])),M=Math.floor(m._fullLayout._size.h*(d.y[1]-d.y[0])),g=x.header.values.length?h[0].map(function(){return x.header.height}):[S.emptyHeaderHeight],k=f.length?f[0].map(function(){return x.cells.height}):[],L=g.reduce(c,0),u=s(k,M-L+S.uplift),T=a(s(g,L),[]),C=a(u,T),_={},F=x._fullInput.columnorder;w(F)&&(F=Array.from(F)),F=F.concat(v(f.map(function(P,N){return N})));var O=h.map(function(P,N){var V=w(x.columnwidth)?x.columnwidth[Math.min(N,x.columnwidth.length-1)]:x.columnwidth;return t(V)?Number(V):1}),j=O.reduce(c,0);O=O.map(function(P){return P/j*b});var B=Math.max(p(x.header.line.width),p(x.cells.line.width)),U={key:x.uid+m._context.staticPlot,translateX:d.x[0]*m._fullLayout._size.w,translateY:m._fullLayout._size.h*(1-d.y[1]),size:m._fullLayout._size,width:b,maxLineWidth:B,height:M,columnOrder:F,groupHeight:M,rowBlocks:C,headerRowBlocks:T,scrollY:0,cells:A({},x.cells,{values:f}),headerCells:A({},x.header,{values:h}),gdColumns:h.map(function(P){return P[0]}),gdColumnsOriginalOrder:h.map(function(P){return P[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:h.map(function(P,N){return _[P]=(_[P]||0)+1,{key:P+"__"+_[P],label:P,specIndex:N,xIndex:F[N],xScale:o,x:void 0,calcdata:void 0,columnWidth:O[N]}})};return U.columns.forEach(function(P){P.calcdata=U,P.x=o(P)}),U};function p(m){if(w(m)){for(var x=0,f=0;f=x||g===m.length-1)&&(f[l]=d,d.key=M++,d.firstRowIndex=b,d.lastRowIndex=g,d=n(),l+=h,b=g+1,h=0);return f}function n(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}}),49618:(function(tt,G,e){var S=e(93049).extendFlat;G.splitToPanels=function(t){var E=[0,0],w=S({},t,{key:"header",type:"header",page:0,prevPages:E,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:S({},t.calcdata,{cells:t.calcdata.headerCells})});return[S({},t,{key:"cells1",type:"cells",page:0,prevPages:E,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),S({},t,{key:"cells2",type:"cells",page:1,prevPages:E,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),w]},G.splitToCells=function(t){var E=A(t);return(t.values||[]).slice(E[0],E[1]).map(function(w,p){return{keyWithinBlock:p+(typeof w=="string"&&w.match(/[<$&> ]/)?"_keybuster_"+Math.random():""),key:E[0]+p,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:w}})};function A(t){var E=t.rowBlocks[t.page],w=E?E.rows[0].rowIndex:0;return[w,E?w+E.rows.length:0]}}),23281:(function(tt,G,e){var S=e(34809),A=e(92294),t=e(13792).N;function E(w,p){for(var c=w.columnorder||[],i=w.header.values.length,r=c.slice(0,i),o=r.slice().sort(function(n,m){return n-m}),a=r.map(function(n){return o.indexOf(n)}),s=a.length;s/i),Gt=!Ht||Kt;kt.mayHaveMarkup=Ht&&Ot.match(/[<&>]/);var Et=_(Ot);kt.latex=Et;var At=Et?"":j(kt.calcdata.cells.prefix,Lt,St)||"",qt=Et?"":j(kt.calcdata.cells.suffix,Lt,St)||"",jt=Et?null:j(kt.calcdata.cells.format,Lt,St)||null,de=At+(jt?E(jt)(kt.value):kt.value)+qt,Xt;kt.wrappingNeeded=!kt.wrapped&&!Gt&&!Et&&(Xt=F(de)),kt.cellHeightMayIncrease=Kt||Et||kt.mayHaveMarkup||(Xt===void 0?F(de):Xt),kt.needsConvertToTspans=kt.mayHaveMarkup||kt.wrappingNeeded||kt.latex;var ye;if(kt.wrappingNeeded){var Le=(S.wrapSplitCharacter===" "?de.replace(/kt&&yt.push(Lt),kt+=Ht}return yt}function Y(X,ut,lt){var yt=v(ut)[0];if(yt!==void 0){var kt=yt.rowBlocks,Lt=yt.calcdata,St=Q(kt,kt.length),Ot=yt.calcdata.groupHeight-N(yt),Ht=Lt.scrollY=Math.max(0,Math.min(St-Ot,Lt.scrollY)),Kt=V(kt,Ht,Ot);Kt.length===1&&(Kt[0]===kt.length-1?Kt.unshift(Kt[0]-1):Kt.push(Kt[0]+1)),Kt[0]%2&&Kt.reverse(),ut.each(function(Gt,Et){Gt.page=Kt[Et],Gt.scrollY=Ht}),ut.attr("transform",function(Gt){return r(0,Q(Gt.rowBlocks,Gt.page)-Gt.scrollY)}),X&&(nt(X,lt,ut,Kt,yt.prevPages,yt,0),nt(X,lt,ut,Kt,yt.prevPages,yt,1),l(lt,X))}}function K(X,ut,lt,yt){return function(kt){var Lt=kt.calcdata?kt.calcdata:kt,St=ut.filter(function(Kt){return Lt.key===Kt.key}),Ot=lt||Lt.scrollbarState.dragMultiplier,Ht=Lt.scrollY;return Lt.scrollY=yt===void 0?Lt.scrollY+Ot*A.event.dy:yt,Y(X,St.selectAll("."+S.cn.yColumn).selectAll("."+S.cn.columnBlock).filter(U),St),Lt.scrollY===Ht}}function nt(X,ut,lt,yt,kt,Lt,St){yt[St]!==kt[St]&&(clearTimeout(Lt.currentRepaint[St]),Lt.currentRepaint[St]=setTimeout(function(){h(X,ut,lt.filter(function(Ot,Ht){return Ht===St&&yt[Ht]!==kt[Ht]}),lt),kt[St]=yt[St]}))}function ft(X,ut,lt,yt){return function(){var kt=A.select(ut.parentNode);kt.each(function(Lt){var St=Lt.fragments;kt.selectAll("tspan.line").each(function(jt,de){St[de].width=this.getComputedTextLength()});var Ot=St[St.length-1].width,Ht=St.slice(0,-1),Kt=[],Gt,Et,At=0,qt=Lt.column.columnWidth-2*S.cellPad;for(Lt.value="";Ht.length;)Gt=Ht.shift(),Et=Gt.width+Ot,At+Et>qt&&(Lt.value+=Kt.join(S.wrapSpacer)+S.lineBreaker,Kt=[],At=0),Kt.push(Gt.text),At+=Et;At&&(Lt.value+=Kt.join(S.wrapSpacer)),Lt.wrapped=!0}),kt.selectAll("tspan.line").remove(),C(kt.select("."+S.cn.cellText),lt,X,yt),A.select(ut.parentNode.parentNode).call(et)}}function ct(X,ut,lt,yt,kt){return function(){if(!kt.settledY){var Lt=A.select(ut.parentNode),St=ot(kt),Ot=kt.key-St.firstRowIndex,Ht=St.rows[Ot].rowHeight,Kt=kt.cellHeightMayIncrease?ut.parentNode.getBoundingClientRect().height+2*S.cellPad:Ht,Gt=Math.max(Kt,Ht);Gt-St.rows[Ot].rowHeight&&(St.rows[Ot].rowHeight=Gt,X.selectAll("."+S.cn.columnCell).call(et),Y(null,X.filter(U),0),l(lt,yt,!0)),Lt.attr("transform",function(){var Et=this,At=Et.parentNode.getBoundingClientRect(),qt=A.select(Et.parentNode).select("."+S.cn.cellRect).node().getBoundingClientRect(),jt=Et.transform.baseVal.consolidate(),de=qt.top-At.top+(jt?jt.matrix.f:S.cellPad);return r(J(kt,A.select(Et.parentNode).select("."+S.cn.cellTextHolder).node().getBoundingClientRect().width),de)}),kt.settledY=!0}}}function J(X,ut){switch(X.align){case"left":return S.cellPad;case"right":return X.column.columnWidth-(ut||0)-S.cellPad;case"center":return(X.column.columnWidth-(ut||0))/2;default:return S.cellPad}}function et(X){X.attr("transform",function(ut){var lt=ut.rowBlocks[0].auxiliaryBlocks.reduce(function(yt,kt){return yt+Z(kt,1/0)},0);return r(0,Z(ot(ut),ut.key)+lt)}).selectAll("."+S.cn.cellRect).attr("height",function(ut){return rt(ot(ut),ut.key).rowHeight})}function Q(X,ut){for(var lt=0,yt=ut-1;yt>=0;yt--)lt+=st(X[yt]);return lt}function Z(X,ut){for(var lt=0,yt=0;yt","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:i({},w.textfont,{}),editType:"calc"},text:w.text,textinfo:p.textinfo,texttemplate:A({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:w.hovertext,hoverinfo:p.hoverinfo,hovertemplate:S({},{keys:c.eventDataKeys}),textfont:w.textfont,insidetextfont:w.insidetextfont,outsidetextfont:i({},w.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:w.sort,root:p.root,domain:E({name:"treemap",trace:!0,editType:"calc"})}}),69784:(function(tt,G,e){var S=e(44122);G.name="treemap",G.plot=function(A,t,E,w){S.plotBasePlot(G.name,A,t,E,w)},G.clean=function(A,t,E,w){S.cleanBasePlot(G.name,A,t,E,w)}}),38848:(function(tt,G,e){var S=e(14852);G._=function(A,t){return S.calc(A,t)},G.t=function(A){return S._runCrossTraceCalc("treemap",A)}}),43236:(function(tt){tt.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}}),95719:(function(tt,G,e){var S=e(34809),A=e(71856),t=e(78766),E=e(13792).N,w=e(17550).handleText,p=e(56155).TEXTPAD,c=e(46979).handleMarkerDefaults,i=e(88856),r=i.hasColorscale,o=i.handleDefaults;tt.exports=function(a,s,n,m){function x(g,k){return S.coerce(a,s,A,g,k)}var f=x("labels"),v=x("parents");if(!f||!f.length||!v||!v.length){s.visible=!1;return}var l=x("values");l&&l.length?x("branchvalues"):x("count"),x("level"),x("maxdepth"),x("tiling.packing")==="squarify"&&x("tiling.squarifyratio"),x("tiling.flip"),x("tiling.pad");var h=x("text");x("texttemplate"),s.texttemplate||x("textinfo",S.isArrayOrTypedArray(h)?"text+label":"label"),x("hovertext"),x("hovertemplate");var d=x("pathbar.visible");w(a,s,m,x,"auto",{hasPathbar:d,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),x("textposition");var b=s.textposition.indexOf("bottom")!==-1;c(a,s,m,x),(s._hasColorscale=r(a,"marker","colors")||(a.marker||{}).coloraxis)?o(a,s,m,x,{prefix:"marker.",cLetter:"c"}):x("marker.depthfade",!(s.marker.colors||[]).length);var M=s.textfont.size*2;x("marker.pad.t",b?M/4:M),x("marker.pad.l",M/4),x("marker.pad.r",M/4),x("marker.pad.b",b?M:M/4),x("marker.cornerradius"),s._hovered={marker:{line:{width:2,color:t.contrast(m.paper_bgcolor)}}},d&&(x("pathbar.thickness",s.pathbar.textfont.size+2*p),x("pathbar.side"),x("pathbar.edgeshape")),x("sort"),x("root.color"),E(s,m,x),s._length=null}}),41567:(function(tt,G,e){var S=e(45568),A=e(33108),t=e(84102).clearMinTextSize,E=e(6851).resizeText,w=e(95709);tt.exports=function(p,c,i,r,o){var a=o.type,s=o.drawDescendants,n=p._fullLayout,m=n["_"+a+"layer"],x,f,v=!i;t(a,n),x=m.selectAll("g.trace."+a).data(c,function(l){return l[0].trace.uid}),x.enter().append("g").classed("trace",!0).classed(a,!0),x.order(),!n.uniformtext.mode&&A.hasTransition(i)?(r&&(f=r()),S.transition().duration(i.duration).ease(i.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()}).each(function(){m.selectAll("g.trace").each(function(l){w(p,l,this,i,s)})})):(x.each(function(l){w(p,l,this,i,s)}),n.uniformtext.mode&&E(p,m.selectAll(".trace"),a)),v&&x.exit().remove()}}),17010:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(62203),E=e(30635),w=e(11995),p=e(92080).styleOne,c=e(43236),i=e(33108),r=e(44691),o=!0;tt.exports=function(a,s,n,m,x){var f=x.barDifY,v=x.width,l=x.height,h=x.viewX,d=x.viewY,b=x.pathSlice,M=x.toMoveInsideSlice,g=x.strTransform,k=x.hasTransition,L=x.handleSlicesExit,u=x.makeUpdateSliceInterpolator,T=x.makeUpdateTextInterpolator,C={},_=a._context.staticPlot,F=a._fullLayout,O=s[0],j=O.trace,B=O.hierarchy,U=v/j._entryDepth,P=i.listPath(n.data,"id"),N=w(B.copy(),[v,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();N=N.filter(function(Y){var K=P.indexOf(Y.data.id);return K===-1?!1:(Y.x0=U*K,Y.x1=U*(K+1),Y.y0=f,Y.y1=f+l,Y.onPathbar=!0,!0)}),N.reverse(),m=m.data(N,i.getPtId),m.enter().append("g").classed("pathbar",!0),L(m,o,C,[v,l],b),m.order();var V=m;k&&(V=V.transition().each("end",function(){var Y=S.select(this);i.setSliceCursor(Y,a,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),V.each(function(Y){Y._x0=h(Y.x0),Y._x1=h(Y.x1),Y._y0=d(Y.y0),Y._y1=d(Y.y1),Y._hoverX=h(Y.x1-Math.min(v,l)/2),Y._hoverY=d(Y.y1-l/2);var K=S.select(this),nt=A.ensureSingle(K,"path","surface",function(et){et.style("pointer-events",_?"none":"all")});k?nt.transition().attrTween("d",function(et){var Q=u(et,o,C,[v,l]);return function(Z){return b(Q(Z))}}):nt.attr("d",b),K.call(r,n,a,s,{styleOne:p,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(i.setSliceCursor,a,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:a._transitioning}),nt.call(p,Y,j,a,{hovered:!1}),Y._text=(i.getPtLabel(Y)||"").split("
").join(" ")||"";var ft=A.ensureSingle(K,"g","slicetext"),ct=A.ensureSingle(ft,"text","",function(et){et.attr("data-notex",1)}),J=A.ensureUniformFontSize(a,i.determineTextFont(j,Y,F.font,{onPathbar:!0}));ct.text(Y._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(t.font,J).call(E.convertToTspans,a),Y.textBB=t.bBox(ct.node()),Y.transform=M(Y,{fontSize:J.size,onPathbar:!0}),Y.transform.fontSize=J.size,k?ct.transition().attrTween("transform",function(et){var Q=T(et,o,C,[v,l]);return function(Z){return g(Q(Z))}}):ct.attr("transform",g(Y))})}}),50916:(function(tt,G,e){var S=e(45568),A=e(34809),t=e(62203),E=e(30635),w=e(11995),p=e(92080).styleOne,c=e(43236),i=e(33108),r=e(44691),o=e(19718).formatSliceLabel,a=!1;tt.exports=function(s,n,m,x,f){var v=f.width,l=f.height,h=f.viewX,d=f.viewY,b=f.pathSlice,M=f.toMoveInsideSlice,g=f.strTransform,k=f.hasTransition,L=f.handleSlicesExit,u=f.makeUpdateSliceInterpolator,T=f.makeUpdateTextInterpolator,C=f.prevEntry,_={},F=s._context.staticPlot,O=s._fullLayout,j=n[0].trace,B=j.textposition.indexOf("left")!==-1,U=j.textposition.indexOf("right")!==-1,P=j.textposition.indexOf("bottom")!==-1,N=!P&&!j.marker.pad.t||P&&!j.marker.pad.b,V=w(m,[v,l],{packing:j.tiling.packing,squarifyratio:j.tiling.squarifyratio,flipX:j.tiling.flip.indexOf("x")>-1,flipY:j.tiling.flip.indexOf("y")>-1,pad:{inner:j.tiling.pad,top:j.marker.pad.t,left:j.marker.pad.l,right:j.marker.pad.r,bottom:j.marker.pad.b}}).descendants(),Y=1/0,K=-1/0;V.forEach(function(et){var Q=et.depth;Q>=j._maxDepth?(et.x0=et.x1=(et.x0+et.x1)/2,et.y0=et.y1=(et.y0+et.y1)/2):(Y=Math.min(Y,Q),K=Math.max(K,Q))}),x=x.data(V,i.getPtId),j._maxVisibleLayers=isFinite(K)?K-Y+1:0,x.enter().append("g").classed("slice",!0),L(x,a,_,[v,l],b),x.order();var nt=null;if(k&&C){var ft=i.getPtId(C);x.each(function(et){nt===null&&i.getPtId(et)===ft&&(nt={x0:et.x0,x1:et.x1,y0:et.y0,y1:et.y1})})}var ct=function(){return nt||{x0:0,x1:v,y0:0,y1:l}},J=x;return k&&(J=J.transition().each("end",function(){var et=S.select(this);i.setSliceCursor(et,s,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),J.each(function(et){var Q=i.isHeader(et,j);et._x0=h(et.x0),et._x1=h(et.x1),et._y0=d(et.y0),et._y1=d(et.y1),et._hoverX=h(et.x1-j.marker.pad.r),et._hoverY=d(P?et.y1-j.marker.pad.b/2:et.y0+j.marker.pad.t/2);var Z=S.select(this),st=A.ensureSingle(Z,"path","surface",function(yt){yt.style("pointer-events",F?"none":"all")});k?st.transition().attrTween("d",function(yt){var kt=u(yt,a,ct(),[v,l]);return function(Lt){return b(kt(Lt))}}):st.attr("d",b),Z.call(r,m,s,n,{styleOne:p,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(i.setSliceCursor,s,{isTransitioning:s._transitioning}),st.call(p,et,j,s,{hovered:!1}),et.x0===et.x1||et.y0===et.y1?et._text="":Q?et._text=N?"":i.getPtLabel(et)||"":et._text=o(et,m,j,n,O)||"";var ot=A.ensureSingle(Z,"g","slicetext"),rt=A.ensureSingle(ot,"text","",function(yt){yt.attr("data-notex",1)}),X=A.ensureUniformFontSize(s,i.determineTextFont(j,et,O.font)),ut=et._text||" ",lt=Q&&ut.indexOf("
")===-1;rt.text(ut).classed("slicetext",!0).attr("text-anchor",U?"end":B||lt?"start":"middle").call(t.font,X).call(E.convertToTspans,s),et.textBB=t.bBox(rt.node()),et.transform=M(et,{fontSize:X.size,isHeader:Q}),et.transform.fontSize=X.size,k?rt.transition().attrTween("transform",function(yt){var kt=T(yt,a,ct(),[v,l]);return function(Lt){return g(kt(Lt))}}):rt.attr("transform",g(et))}),nt}}),36141:(function(tt){tt.exports=function G(e,S,A){var t;A.swapXY&&(t=e.x0,e.x0=e.y0,e.y0=t,t=e.x1,e.x1=e.y1,e.y1=t),A.flipX&&(t=e.x0,e.x0=S[0]-e.x1,e.x1=S[0]-t),A.flipY&&(t=e.y0,e.y0=S[1]-e.y1,e.y1=S[1]-t);var E=e.children;if(E)for(var w=0;w-1?j+P:-(U+P):0,V={x0:B,x1:B,y0:N,y1:N+U},Y=function(me,be,je){var nr=l.tiling.pad,Vt=function(Bt){return Bt-nr<=be.x0},Qt=function(Bt){return Bt+nr>=be.x1},te=function(Bt){return Bt-nr<=be.y0},ee=function(Bt){return Bt+nr>=be.y1};return me.x0===be.x0&&me.x1===be.x1&&me.y0===be.y0&&me.y1===be.y1?{x0:me.x0,x1:me.x1,y0:me.y0,y1:me.y1}:{x0:Vt(me.x0-nr)?0:Qt(me.x0-nr)?je[0]:me.x0,x1:Vt(me.x1+nr)?0:Qt(me.x1+nr)?je[0]:me.x1,y0:te(me.y0-nr)?0:ee(me.y0-nr)?je[1]:me.y0,y1:te(me.y1+nr)?0:ee(me.y1+nr)?je[1]:me.y1}},K=null,nt={},ft={},ct=null,J=function(me,be){return be?nt[o(me)]:ft[o(me)]},et=function(me,be,je,nr){if(be)return nt[o(d)]||V;var Vt=ft[l.level]||je;return C(me)?Y(me,Vt,nr):{}};v.hasMultipleRoots&&L&&T++,l._maxDepth=T,l._backgroundColor=f.paper_bgcolor,l._entryDepth=b.data.depth,l._atRootLevel=L;var Q=-O/2+_.l+_.w*(F.x[1]+F.x[0])/2,Z=-j/2+_.t+_.h*(1-(F.y[1]+F.y[0])/2),st=function(me){return Q+me},ot=function(me){return Z+me},rt=ot(0),X=st(0),ut=function(me){return X+me},lt=function(me){return rt+me};function yt(me,be){return me+","+be}var kt=ut(0),Lt=function(me){me.x=Math.max(kt,me.x)},St=l.pathbar.edgeshape,Ot=function(me){var be=ut(Math.max(Math.min(me.x0,me.x0),0)),je=ut(Math.min(Math.max(me.x1,me.x1),B)),nr=lt(me.y0),Vt=lt(me.y1),Qt=U/2,te={},ee={};te.x=be,ee.x=je,te.y=ee.y=(nr+Vt)/2;var Bt={x:be,y:nr},Wt={x:je,y:nr},$t={x:je,y:Vt},Tt={x:be,y:Vt};return St===">"?(Bt.x-=Qt,Wt.x-=Qt,$t.x-=Qt,Tt.x-=Qt):St==="/"?($t.x-=Qt,Tt.x-=Qt,te.x-=Qt/2,ee.x-=Qt/2):St==="\\"?(Bt.x-=Qt,Wt.x-=Qt,te.x-=Qt/2,ee.x-=Qt/2):St==="<"&&(te.x-=Qt,ee.x-=Qt),Lt(Bt),Lt(Tt),Lt(te),Lt(Wt),Lt($t),Lt(ee),"M"+yt(Bt.x,Bt.y)+"L"+yt(Wt.x,Wt.y)+"L"+yt(ee.x,ee.y)+"L"+yt($t.x,$t.y)+"L"+yt(Tt.x,Tt.y)+"L"+yt(te.x,te.y)+"Z"},Ht=l[h?"tiling":"marker"].pad,Kt=function(me){return l.textposition.indexOf(me)!==-1},Gt=Kt("top"),Et=Kt("left"),At=Kt("right"),qt=Kt("bottom"),jt=function(me){var be=st(me.x0),je=st(me.x1),nr=ot(me.y0),Vt=ot(me.y1),Qt=je-be,te=Vt-nr;if(!Qt||!te)return"";var ee=l.marker.cornerradius||0,Bt=Math.min(ee,Qt/2,te/2);Bt&&me.data&&me.data.data&&me.data.data.label&&(Gt&&(Bt=Math.min(Bt,Ht.t)),Et&&(Bt=Math.min(Bt,Ht.l)),At&&(Bt=Math.min(Bt,Ht.r)),qt&&(Bt=Math.min(Bt,Ht.b)));var Wt=function($t,Tt){return Bt?"a"+yt(Bt,Bt)+" 0 0 1 "+yt($t,Tt):""};return"M"+yt(be,nr+Bt)+Wt(Bt,-Bt)+"L"+yt(je-Bt,nr)+Wt(Bt,Bt)+"L"+yt(je,Vt-Bt)+Wt(-Bt,Bt)+"L"+yt(be+Bt,Vt)+Wt(-Bt,-Bt)+"Z"},de=function(me,be){var je=me.x0,nr=me.x1,Vt=me.y0,Qt=me.y1,te=me.textBB,ee=Gt||be.isHeader&&!qt?"start":qt?"end":"middle",Bt=Kt("right"),Wt=Kt("left")||be.onPathbar?-1:Bt?1:0;if(be.isHeader){if(je+=(h?Ht:Ht.l)-w,nr-=(h?Ht:Ht.r)-w,je>=nr){var $t=(je+nr)/2;je=$t,nr=$t}var Tt;qt?(Tt=Qt-(h?Ht:Ht.b),Vt0)for(var u=0;u0){var b=p.xa,M=p.ya,g,k,L,u,T;n.orientation==="h"?(T=c,g="y",L=M,k="x",u=b):(T=i,g="x",L=b,k="y",u=M);var C=s[p.index];if(T>=C.span[0]&&T<=C.span[1]){var _=A.extendFlat({},p),F=u.c2p(T,!0),O=w.getKdeValue(C,n,T),j=w.getPositionOnKdePath(C,n,F),B=L._offset,U=L._length;_[g+"0"]=j[0],_[g+"1"]=j[1],_[k+"0"]=_[k+"1"]=F,_[k+"Label"]=k+": "+t.hoverLabelText(u,T,n[k+"hoverformat"])+", "+s[0].t.labels.kde+" "+O.toFixed(3);for(var P=0,N=0;N")),s.color=p(m,h),[s]};function p(c,i){var r=c[i.dir].marker,o=r.color,a=r.line.color,s=r.line.width;if(A(o))return o;if(A(a)&&s)return a}}),38261:(function(tt,G,e){tt.exports={attributes:e(37832),layoutAttributes:e(579),supplyDefaults:e(67199).supplyDefaults,crossTraceDefaults:e(67199).crossTraceDefaults,supplyLayoutDefaults:e(71492),calc:e(15e3),crossTraceCalc:e(9963),plot:e(71130),style:e(57256).style,hoverPoints:e(40943),eventData:e(64932),selectPoints:e(88384),moduleType:"trace",name:"waterfall",basePlotModule:e(37703),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}}),579:(function(tt){tt.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}}),71492:(function(tt,G,e){var S=e(34809),A=e(579);tt.exports=function(t,E,w){var p=!1;function c(o,a){return S.coerce(t,E,A,o,a)}for(var i=0;i0&&(h?C+="M"+u[0]+","+T[1]+"V"+T[0]:C+="M"+u[1]+","+T[0]+"H"+u[0]),d!=="between"&&(g.isSum||k path").each(function(f){if(!f.isBlank){var v=x[f.dir].marker;S.select(this).call(t.fill,v.color).call(t.stroke,v.line.color).call(A.dashLine,v.line.dash,v.line.width).style("opacity",x.selectedpoints&&!f.selected?E:1)}}),c(m,x,r),m.selectAll(".lines").each(function(){var f=x.connector.line;A.lineGroupStyle(S.select(this).selectAll("path"),f.width,f.color,f.dash)})})}tt.exports={style:i}}),47908:(function(tt,G,e){var S=e(29714),A=e(34809),t=e(57297),E=e(5086).z,w=e(63821).BADNUM;G.moduleType="transform",G.name="aggregate";var p=G.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},c=p.aggregations;G.supplyDefaults=function(n,m){var x={},f;function v(T,C){return A.coerce(n,x,p,T,C)}if(!v("enabled"))return x;var l=t.findArrayAttributes(m),h={};for(f=0;fb&&(b=L,M=k)}}return b?v(M):w};case"rms":return function(l,h){for(var d=0,b=0,M=0;M":return function(d){return l(d)>h};case">=":return function(d){return l(d)>=h};case"[]":return function(d){var b=l(d);return b>=h[0]&&b<=h[1]};case"()":return function(d){var b=l(d);return b>h[0]&&b=h[0]&&bh[0]&&b<=h[1]};case"][":return function(d){var b=l(d);return b<=h[0]||b>=h[1]};case")(":return function(d){var b=l(d);return bh[1]};case"](":return function(d){var b=l(d);return b<=h[0]||b>h[1]};case")[":return function(d){var b=l(d);return b=h[1]};case"{}":return function(d){return h.indexOf(l(d))!==-1};case"}{":return function(d){return h.indexOf(l(d))===-1}}}}),50453:(function(tt,G,e){var S=e(34809),A=e(57297),t=e(44122),E=e(5086).z;G.moduleType="transform",G.name="groupby",G.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},G.supplyDefaults=function(p,c,i){var r,o={};function a(f,v){return S.coerce(p,o,G.attributes,f,v)}if(!a("enabled"))return o;a("groups"),a("nameformat",i._dataLength>1?"%{group} (%{trace})":"%{group}");var s=p.styles,n=o.styles=[];if(s)for(r=0;rL)throw RangeError('The value "'+Tt+'" is invalid for option "size"');var _t=new Uint8Array(Tt);return Object.setPrototypeOf(_t,C.prototype),_t}function C(Tt,_t,It){if(typeof Tt=="number"){if(typeof _t=="string")throw TypeError('The "string" argument must be of type string. Received type number');return j(Tt)}return _(Tt,_t,It)}C.poolSize=8192;function _(Tt,_t,It){if(typeof Tt=="string")return B(Tt,_t);if(ArrayBuffer.isView(Tt))return P(Tt);if(Tt==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+b(Tt));if(te(Tt,ArrayBuffer)||Tt&&te(Tt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(te(Tt,SharedArrayBuffer)||Tt&&te(Tt.buffer,SharedArrayBuffer)))return N(Tt,_t,It);if(typeof Tt=="number")throw TypeError('The "value" argument must not be of type number. Received type number');var Mt=Tt.valueOf&&Tt.valueOf();if(Mt!=null&&Mt!==Tt)return C.from(Mt,_t,It);var Ct=V(Tt);if(Ct)return Ct;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Tt[Symbol.toPrimitive]=="function")return C.from(Tt[Symbol.toPrimitive]("string"),_t,It);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+b(Tt))}C.from=function(Tt,_t,It){return _(Tt,_t,It)},Object.setPrototypeOf(C.prototype,Uint8Array.prototype),Object.setPrototypeOf(C,Uint8Array);function F(Tt){if(typeof Tt!="number")throw TypeError('"size" argument must be of type number');if(Tt<0)throw RangeError('The value "'+Tt+'" is invalid for option "size"')}function O(Tt,_t,It){return F(Tt),Tt<=0||_t===void 0?T(Tt):typeof It=="string"?T(Tt).fill(_t,It):T(Tt).fill(_t)}C.alloc=function(Tt,_t,It){return O(Tt,_t,It)};function j(Tt){return F(Tt),T(Tt<0?0:Y(Tt)|0)}C.allocUnsafe=function(Tt){return j(Tt)},C.allocUnsafeSlow=function(Tt){return j(Tt)};function B(Tt,_t){if((typeof _t!="string"||_t==="")&&(_t="utf8"),!C.isEncoding(_t))throw TypeError("Unknown encoding: "+_t);var It=K(Tt,_t)|0,Mt=T(It),Ct=Mt.write(Tt,_t);return Ct!==It&&(Mt=Mt.slice(0,Ct)),Mt}function U(Tt){for(var _t=Tt.length<0?0:Y(Tt.length)|0,It=T(_t),Mt=0;Mt<_t;Mt+=1)It[Mt]=Tt[Mt]&255;return It}function P(Tt){if(te(Tt,Uint8Array)){var _t=new Uint8Array(Tt);return N(_t.buffer,_t.byteOffset,_t.byteLength)}return U(Tt)}function N(Tt,_t,It){if(_t<0||Tt.byteLength<_t)throw RangeError('"offset" is outside of buffer bounds');if(Tt.byteLength<_t+(It||0))throw RangeError('"length" is outside of buffer bounds');var Mt=_t===void 0&&It===void 0?new Uint8Array(Tt):It===void 0?new Uint8Array(Tt,_t):new Uint8Array(Tt,_t,It);return Object.setPrototypeOf(Mt,C.prototype),Mt}function V(Tt){if(C.isBuffer(Tt)){var _t=Y(Tt.length)|0,It=T(_t);return It.length===0||Tt.copy(It,0,0,_t),It}if(Tt.length!==void 0)return typeof Tt.length!="number"||ee(Tt.length)?T(0):U(Tt);if(Tt.type==="Buffer"&&Array.isArray(Tt.data))return U(Tt.data)}function Y(Tt){if(Tt>=L)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+L.toString(16)+" bytes");return Tt|0}C.isBuffer=function(Tt){return Tt!=null&&Tt._isBuffer===!0&&Tt!==C.prototype},C.compare=function(Tt,_t){if(te(Tt,Uint8Array)&&(Tt=C.from(Tt,Tt.offset,Tt.byteLength)),te(_t,Uint8Array)&&(_t=C.from(_t,_t.offset,_t.byteLength)),!C.isBuffer(Tt)||!C.isBuffer(_t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Tt===_t)return 0;for(var It=Tt.length,Mt=_t.length,Ct=0,Ut=Math.min(It,Mt);CtMt.length?(C.isBuffer(Ut)||(Ut=C.from(Ut)),Ut.copy(Mt,Ct)):Uint8Array.prototype.set.call(Mt,Ut,Ct);else if(C.isBuffer(Ut))Ut.copy(Mt,Ct);else throw TypeError('"list" argument must be an Array of Buffers');Ct+=Ut.length}return Mt};function K(Tt,_t){if(C.isBuffer(Tt))return Tt.length;if(ArrayBuffer.isView(Tt)||te(Tt,ArrayBuffer))return Tt.byteLength;if(typeof Tt!="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+b(Tt));var It=Tt.length,Mt=arguments.length>2&&arguments[2]===!0;if(!Mt&&It===0)return 0;for(var Ct=!1;;)switch(_t){case"ascii":case"latin1":case"binary":return It;case"utf8":case"utf-8":return be(Tt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It*2;case"hex":return It>>>1;case"base64":return Vt(Tt).length;default:if(Ct)return Mt?-1:be(Tt).length;_t=(""+_t).toLowerCase(),Ct=!0}}C.byteLength=K;function nt(Tt,_t,It){var Mt=!1;if((_t===void 0||_t<0)&&(_t=0),_t>this.length||((It===void 0||It>this.length)&&(It=this.length),It<=0)||(It>>>=0,_t>>>=0,It<=_t))return"";for(Tt||(Tt="utf8");;)switch(Tt){case"hex":return Lt(this,_t,It);case"utf8":case"utf-8":return X(this,_t,It);case"ascii":return yt(this,_t,It);case"latin1":case"binary":return kt(this,_t,It);case"base64":return rt(this,_t,It);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return St(this,_t,It);default:if(Mt)throw TypeError("Unknown encoding: "+Tt);Tt=(Tt+"").toLowerCase(),Mt=!0}}C.prototype._isBuffer=!0;function ft(Tt,_t,It){var Mt=Tt[_t];Tt[_t]=Tt[It],Tt[It]=Mt}C.prototype.swap16=function(){var Tt=this.length;if(Tt%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var _t=0;_t_t&&(Tt+=" ... "),""},k&&(C.prototype[k]=C.prototype.inspect),C.prototype.compare=function(Tt,_t,It,Mt,Ct){if(te(Tt,Uint8Array)&&(Tt=C.from(Tt,Tt.offset,Tt.byteLength)),!C.isBuffer(Tt))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+b(Tt));if(_t===void 0&&(_t=0),It===void 0&&(It=Tt?Tt.length:0),Mt===void 0&&(Mt=0),Ct===void 0&&(Ct=this.length),_t<0||It>Tt.length||Mt<0||Ct>this.length)throw RangeError("out of range index");if(Mt>=Ct&&_t>=It)return 0;if(Mt>=Ct)return-1;if(_t>=It)return 1;if(_t>>>=0,It>>>=0,Mt>>>=0,Ct>>>=0,this===Tt)return 0;for(var Ut=Ct-Mt,Zt=It-_t,Me=Math.min(Ut,Zt),Be=this.slice(Mt,Ct),ge=Tt.slice(_t,It),Ee=0;Ee2147483647?It=2147483647:It<-2147483648&&(It=-2147483648),It=+It,ee(It)&&(It=Ct?0:Tt.length-1),It<0&&(It=Tt.length+It),It>=Tt.length){if(Ct)return-1;It=Tt.length-1}else if(It<0)if(Ct)It=0;else return-1;if(typeof _t=="string"&&(_t=C.from(_t,Mt)),C.isBuffer(_t))return _t.length===0?-1:J(Tt,_t,It,Mt,Ct);if(typeof _t=="number")return _t&=255,typeof Uint8Array.prototype.indexOf=="function"?Ct?Uint8Array.prototype.indexOf.call(Tt,_t,It):Uint8Array.prototype.lastIndexOf.call(Tt,_t,It):J(Tt,[_t],It,Mt,Ct);throw TypeError("val must be string, number or Buffer")}function J(Tt,_t,It,Mt,Ct){var Ut=1,Zt=Tt.length,Me=_t.length;if(Mt!==void 0&&(Mt=String(Mt).toLowerCase(),Mt==="ucs2"||Mt==="ucs-2"||Mt==="utf16le"||Mt==="utf-16le")){if(Tt.length<2||_t.length<2)return-1;Ut=2,Zt/=2,Me/=2,It/=2}function Be(_e,He){return Ut===1?_e[He]:_e.readUInt16BE(He*Ut)}var ge;if(Ct){var Ee=-1;for(ge=It;geZt&&(It=Zt-Me),ge=It;ge>=0;ge--){for(var Ne=!0,sr=0;srCt&&(Mt=Ct)):Mt=Ct;var Ut=_t.length;Mt>Ut/2&&(Mt=Ut/2);var Zt;for(Zt=0;Zt>>=0,isFinite(It)?(It>>>=0,Mt===void 0&&(Mt="utf8")):(Mt=It,It=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ct=this.length-_t;if((It===void 0||It>Ct)&&(It=Ct),Tt.length>0&&(It<0||_t<0)||_t>this.length)throw RangeError("Attempt to write outside buffer bounds");Mt||(Mt="utf8");for(var Ut=!1;;)switch(Mt){case"hex":return et(this,Tt,_t,It);case"utf8":case"utf-8":return Q(this,Tt,_t,It);case"ascii":case"latin1":case"binary":return Z(this,Tt,_t,It);case"base64":return st(this,Tt,_t,It);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ot(this,Tt,_t,It);default:if(Ut)throw TypeError("Unknown encoding: "+Mt);Mt=(""+Mt).toLowerCase(),Ut=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(Tt,_t,It){return _t===0&&It===Tt.length?M.fromByteArray(Tt):M.fromByteArray(Tt.slice(_t,It))}function X(Tt,_t,It){It=Math.min(Tt.length,It);for(var Mt=[],Ct=_t;Ct239?4:Ut>223?3:Ut>191?2:1;if(Ct+Me<=It){var Be=void 0,ge=void 0,Ee=void 0,Ne=void 0;switch(Me){case 1:Ut<128&&(Zt=Ut);break;case 2:Be=Tt[Ct+1],(Be&192)==128&&(Ne=(Ut&31)<<6|Be&63,Ne>127&&(Zt=Ne));break;case 3:Be=Tt[Ct+1],ge=Tt[Ct+2],(Be&192)==128&&(ge&192)==128&&(Ne=(Ut&15)<<12|(Be&63)<<6|ge&63,Ne>2047&&(Ne<55296||Ne>57343)&&(Zt=Ne));break;case 4:Be=Tt[Ct+1],ge=Tt[Ct+2],Ee=Tt[Ct+3],(Be&192)==128&&(ge&192)==128&&(Ee&192)==128&&(Ne=(Ut&15)<<18|(Be&63)<<12|(ge&63)<<6|Ee&63,Ne>65535&&Ne<1114112&&(Zt=Ne))}}Zt===null?(Zt=65533,Me=1):Zt>65535&&(Zt-=65536,Mt.push(Zt>>>10&1023|55296),Zt=56320|Zt&1023),Mt.push(Zt),Ct+=Me}return lt(Mt)}var ut=4096;function lt(Tt){var _t=Tt.length;if(_t<=ut)return String.fromCharCode.apply(String,Tt);for(var It="",Mt=0;Mt<_t;)It+=String.fromCharCode.apply(String,Tt.slice(Mt,Mt+=ut));return It}function yt(Tt,_t,It){var Mt="";It=Math.min(Tt.length,It);for(var Ct=_t;CtMt)&&(It=Mt);for(var Ct="",Ut=_t;UtIt&&(Tt=It),_t<0?(_t+=It,_t<0&&(_t=0)):_t>It&&(_t=It),_tIt)throw RangeError("Trying to access beyond buffer length")}C.prototype.readUintLE=C.prototype.readUIntLE=function(Tt,_t,It){Tt>>>=0,_t>>>=0,It||Ot(Tt,_t,this.length);for(var Mt=this[Tt],Ct=1,Ut=0;++Ut<_t&&(Ct*=256);)Mt+=this[Tt+Ut]*Ct;return Mt},C.prototype.readUintBE=C.prototype.readUIntBE=function(Tt,_t,It){Tt>>>=0,_t>>>=0,It||Ot(Tt,_t,this.length);for(var Mt=this[Tt+--_t],Ct=1;_t>0&&(Ct*=256);)Mt+=this[Tt+--_t]*Ct;return Mt},C.prototype.readUint8=C.prototype.readUInt8=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,1,this.length),this[Tt]},C.prototype.readUint16LE=C.prototype.readUInt16LE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,2,this.length),this[Tt]|this[Tt+1]<<8},C.prototype.readUint16BE=C.prototype.readUInt16BE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,2,this.length),this[Tt]<<8|this[Tt+1]},C.prototype.readUint32LE=C.prototype.readUInt32LE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,4,this.length),(this[Tt]|this[Tt+1]<<8|this[Tt+2]<<16)+this[Tt+3]*16777216},C.prototype.readUint32BE=C.prototype.readUInt32BE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,4,this.length),this[Tt]*16777216+(this[Tt+1]<<16|this[Tt+2]<<8|this[Tt+3])},C.prototype.readBigUInt64LE=Wt(function(Tt){Tt>>>=0,ve(Tt,"offset");var _t=this[Tt],It=this[Tt+7];(_t===void 0||It===void 0)&&ke(Tt,this.length-8);var Mt=_t+this[++Tt]*2**8+this[++Tt]*2**16+this[++Tt]*2**24,Ct=this[++Tt]+this[++Tt]*2**8+this[++Tt]*2**16+It*2**24;return BigInt(Mt)+(BigInt(Ct)<>>=0,ve(Tt,"offset");var _t=this[Tt],It=this[Tt+7];(_t===void 0||It===void 0)&&ke(Tt,this.length-8);var Mt=_t*2**24+this[++Tt]*2**16+this[++Tt]*2**8+this[++Tt],Ct=this[++Tt]*2**24+this[++Tt]*2**16+this[++Tt]*2**8+It;return(BigInt(Mt)<>>=0,_t>>>=0,It||Ot(Tt,_t,this.length);for(var Mt=this[Tt],Ct=1,Ut=0;++Ut<_t&&(Ct*=256);)Mt+=this[Tt+Ut]*Ct;return Ct*=128,Mt>=Ct&&(Mt-=2**(8*_t)),Mt},C.prototype.readIntBE=function(Tt,_t,It){Tt>>>=0,_t>>>=0,It||Ot(Tt,_t,this.length);for(var Mt=_t,Ct=1,Ut=this[Tt+--Mt];Mt>0&&(Ct*=256);)Ut+=this[Tt+--Mt]*Ct;return Ct*=128,Ut>=Ct&&(Ut-=2**(8*_t)),Ut},C.prototype.readInt8=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,1,this.length),this[Tt]&128?(255-this[Tt]+1)*-1:this[Tt]},C.prototype.readInt16LE=function(Tt,_t){Tt>>>=0,_t||Ot(Tt,2,this.length);var It=this[Tt]|this[Tt+1]<<8;return It&32768?It|4294901760:It},C.prototype.readInt16BE=function(Tt,_t){Tt>>>=0,_t||Ot(Tt,2,this.length);var It=this[Tt+1]|this[Tt]<<8;return It&32768?It|4294901760:It},C.prototype.readInt32LE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,4,this.length),this[Tt]|this[Tt+1]<<8|this[Tt+2]<<16|this[Tt+3]<<24},C.prototype.readInt32BE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,4,this.length),this[Tt]<<24|this[Tt+1]<<16|this[Tt+2]<<8|this[Tt+3]},C.prototype.readBigInt64LE=Wt(function(Tt){Tt>>>=0,ve(Tt,"offset");var _t=this[Tt],It=this[Tt+7];(_t===void 0||It===void 0)&&ke(Tt,this.length-8);var Mt=this[Tt+4]+this[Tt+5]*2**8+this[Tt+6]*2**16+(It<<24);return(BigInt(Mt)<>>=0,ve(Tt,"offset");var _t=this[Tt],It=this[Tt+7];(_t===void 0||It===void 0)&&ke(Tt,this.length-8);var Mt=(_t<<24)+this[++Tt]*2**16+this[++Tt]*2**8+this[++Tt];return(BigInt(Mt)<>>=0,_t||Ot(Tt,4,this.length),g.read(this,Tt,!0,23,4)},C.prototype.readFloatBE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,4,this.length),g.read(this,Tt,!1,23,4)},C.prototype.readDoubleLE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,8,this.length),g.read(this,Tt,!0,52,8)},C.prototype.readDoubleBE=function(Tt,_t){return Tt>>>=0,_t||Ot(Tt,8,this.length),g.read(this,Tt,!1,52,8)};function Ht(Tt,_t,It,Mt,Ct,Ut){if(!C.isBuffer(Tt))throw TypeError('"buffer" argument must be a Buffer instance');if(_t>Ct||_tTt.length)throw RangeError("Index out of range")}C.prototype.writeUintLE=C.prototype.writeUIntLE=function(Tt,_t,It,Mt){if(Tt=+Tt,_t>>>=0,It>>>=0,!Mt){var Ct=2**(8*It)-1;Ht(this,Tt,_t,It,Ct,0)}var Ut=1,Zt=0;for(this[_t]=Tt&255;++Zt>>=0,It>>>=0,!Mt){var Ct=2**(8*It)-1;Ht(this,Tt,_t,It,Ct,0)}var Ut=It-1,Zt=1;for(this[_t+Ut]=Tt&255;--Ut>=0&&(Zt*=256);)this[_t+Ut]=Tt/Zt&255;return _t+It},C.prototype.writeUint8=C.prototype.writeUInt8=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,1,255,0),this[_t]=Tt&255,_t+1},C.prototype.writeUint16LE=C.prototype.writeUInt16LE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,2,65535,0),this[_t]=Tt&255,this[_t+1]=Tt>>>8,_t+2},C.prototype.writeUint16BE=C.prototype.writeUInt16BE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,2,65535,0),this[_t]=Tt>>>8,this[_t+1]=Tt&255,_t+2},C.prototype.writeUint32LE=C.prototype.writeUInt32LE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,4,4294967295,0),this[_t+3]=Tt>>>24,this[_t+2]=Tt>>>16,this[_t+1]=Tt>>>8,this[_t]=Tt&255,_t+4},C.prototype.writeUint32BE=C.prototype.writeUInt32BE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,4,4294967295,0),this[_t]=Tt>>>24,this[_t+1]=Tt>>>16,this[_t+2]=Tt>>>8,this[_t+3]=Tt&255,_t+4};function Kt(Tt,_t,It,Mt,Ct){Le(_t,Mt,Ct,Tt,It,7);var Ut=Number(_t&BigInt(4294967295));Tt[It++]=Ut,Ut>>=8,Tt[It++]=Ut,Ut>>=8,Tt[It++]=Ut,Ut>>=8,Tt[It++]=Ut;var Zt=Number(_t>>BigInt(32)&BigInt(4294967295));return Tt[It++]=Zt,Zt>>=8,Tt[It++]=Zt,Zt>>=8,Tt[It++]=Zt,Zt>>=8,Tt[It++]=Zt,It}function Gt(Tt,_t,It,Mt,Ct){Le(_t,Mt,Ct,Tt,It,7);var Ut=Number(_t&BigInt(4294967295));Tt[It+7]=Ut,Ut>>=8,Tt[It+6]=Ut,Ut>>=8,Tt[It+5]=Ut,Ut>>=8,Tt[It+4]=Ut;var Zt=Number(_t>>BigInt(32)&BigInt(4294967295));return Tt[It+3]=Zt,Zt>>=8,Tt[It+2]=Zt,Zt>>=8,Tt[It+1]=Zt,Zt>>=8,Tt[It]=Zt,It+8}C.prototype.writeBigUInt64LE=Wt(function(Tt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Kt(this,Tt,_t,BigInt(0),BigInt("0xffffffffffffffff"))}),C.prototype.writeBigUInt64BE=Wt(function(Tt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Gt(this,Tt,_t,BigInt(0),BigInt("0xffffffffffffffff"))}),C.prototype.writeIntLE=function(Tt,_t,It,Mt){if(Tt=+Tt,_t>>>=0,!Mt){var Ct=2**(8*It-1);Ht(this,Tt,_t,It,Ct-1,-Ct)}var Ut=0,Zt=1,Me=0;for(this[_t]=Tt&255;++Ut>0)-Me&255;return _t+It},C.prototype.writeIntBE=function(Tt,_t,It,Mt){if(Tt=+Tt,_t>>>=0,!Mt){var Ct=2**(8*It-1);Ht(this,Tt,_t,It,Ct-1,-Ct)}var Ut=It-1,Zt=1,Me=0;for(this[_t+Ut]=Tt&255;--Ut>=0&&(Zt*=256);)Tt<0&&Me===0&&this[_t+Ut+1]!==0&&(Me=1),this[_t+Ut]=(Tt/Zt>>0)-Me&255;return _t+It},C.prototype.writeInt8=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,1,127,-128),Tt<0&&(Tt=255+Tt+1),this[_t]=Tt&255,_t+1},C.prototype.writeInt16LE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,2,32767,-32768),this[_t]=Tt&255,this[_t+1]=Tt>>>8,_t+2},C.prototype.writeInt16BE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,2,32767,-32768),this[_t]=Tt>>>8,this[_t+1]=Tt&255,_t+2},C.prototype.writeInt32LE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,4,2147483647,-2147483648),this[_t]=Tt&255,this[_t+1]=Tt>>>8,this[_t+2]=Tt>>>16,this[_t+3]=Tt>>>24,_t+4},C.prototype.writeInt32BE=function(Tt,_t,It){return Tt=+Tt,_t>>>=0,It||Ht(this,Tt,_t,4,2147483647,-2147483648),Tt<0&&(Tt=4294967295+Tt+1),this[_t]=Tt>>>24,this[_t+1]=Tt>>>16,this[_t+2]=Tt>>>8,this[_t+3]=Tt&255,_t+4},C.prototype.writeBigInt64LE=Wt(function(Tt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Kt(this,Tt,_t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),C.prototype.writeBigInt64BE=Wt(function(Tt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Gt(this,Tt,_t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Et(Tt,_t,It,Mt,Ct,Ut){if(It+Mt>Tt.length||It<0)throw RangeError("Index out of range")}function At(Tt,_t,It,Mt,Ct){return _t=+_t,It>>>=0,Ct||Et(Tt,_t,It,4,34028234663852886e22,-34028234663852886e22),g.write(Tt,_t,It,Mt,23,4),It+4}C.prototype.writeFloatLE=function(Tt,_t,It){return At(this,Tt,_t,!0,It)},C.prototype.writeFloatBE=function(Tt,_t,It){return At(this,Tt,_t,!1,It)};function qt(Tt,_t,It,Mt,Ct){return _t=+_t,It>>>=0,Ct||Et(Tt,_t,It,8,17976931348623157e292,-17976931348623157e292),g.write(Tt,_t,It,Mt,52,8),It+8}C.prototype.writeDoubleLE=function(Tt,_t,It){return qt(this,Tt,_t,!0,It)},C.prototype.writeDoubleBE=function(Tt,_t,It){return qt(this,Tt,_t,!1,It)},C.prototype.copy=function(Tt,_t,It,Mt){if(!C.isBuffer(Tt))throw TypeError("argument should be a Buffer");if(It||(It=0),!Mt&&Mt!==0&&(Mt=this.length),_t>=Tt.length&&(_t=Tt.length),_t||(_t=0),Mt>0&&Mt=this.length)throw RangeError("Index out of range");if(Mt<0)throw RangeError("sourceEnd out of bounds");Mt>this.length&&(Mt=this.length),Tt.length-_t>>=0,It=It===void 0?this.length:It>>>0,Tt||(Tt=0);var Ut;if(typeof Tt=="number")for(Ut=_t;Ut4294967296?Ct=Xt(String(It)):typeof It=="bigint"&&(Ct=String(It),(It>BigInt(2)**+BigInt(32)||It<-(BigInt(2)**+BigInt(32)))&&(Ct=Xt(Ct)),Ct+="n"),Mt+=` It must be ${_t}. Received ${Ct}`,Mt},RangeError);function Xt(Tt){for(var _t="",It=Tt.length,Mt=Tt[0]==="-"?1:0;It>=Mt+4;It-=3)_t=`_${Tt.slice(It-3,It)}${_t}`;return`${Tt.slice(0,It)}${_t}`}function ye(Tt,_t,It){ve(_t,"offset"),(Tt[_t]===void 0||Tt[_t+It]===void 0)&&ke(_t,Tt.length-(It+1))}function Le(Tt,_t,It,Mt,Ct,Ut){if(Tt>It||Tt<_t){var Zt=typeof _t=="bigint"?"n":"",Me=Ut>3?_t===0||_t===BigInt(0)?`>= 0${Zt} and < 2${Zt} ** ${(Ut+1)*8}${Zt}`:`>= -(2${Zt} ** ${(Ut+1)*8-1}${Zt}) and < 2 ** ${(Ut+1)*8-1}${Zt}`:`>= ${_t}${Zt} and <= ${It}${Zt}`;throw new jt.ERR_OUT_OF_RANGE("value",Me,Tt)}ye(Mt,Ct,Ut)}function ve(Tt,_t){if(typeof Tt!="number")throw new jt.ERR_INVALID_ARG_TYPE(_t,"number",Tt)}function ke(Tt,_t,It){throw Math.floor(Tt)===Tt?_t<0?new jt.ERR_BUFFER_OUT_OF_BOUNDS:new jt.ERR_OUT_OF_RANGE(It||"offset",`>= ${It?1:0} and <= ${_t}`,Tt):(ve(Tt,It),new jt.ERR_OUT_OF_RANGE(It||"offset","an integer",Tt))}var Pe=/[^+/0-9A-Za-z-_]/g;function me(Tt){if(Tt=Tt.split("=")[0],Tt=Tt.trim().replace(Pe,""),Tt.length<2)return"";for(;Tt.length%4!=0;)Tt+="=";return Tt}function be(Tt,_t){_t||(_t=1/0);for(var It,Mt=Tt.length,Ct=null,Ut=[],Zt=0;Zt55295&&It<57344){if(!Ct){if(It>56319){(_t-=3)>-1&&Ut.push(239,191,189);continue}else if(Zt+1===Mt){(_t-=3)>-1&&Ut.push(239,191,189);continue}Ct=It;continue}if(It<56320){(_t-=3)>-1&&Ut.push(239,191,189),Ct=It;continue}It=(Ct-55296<<10|It-56320)+65536}else Ct&&(_t-=3)>-1&&Ut.push(239,191,189);if(Ct=null,It<128){if(--_t<0)break;Ut.push(It)}else if(It<2048){if((_t-=2)<0)break;Ut.push(It>>6|192,It&63|128)}else if(It<65536){if((_t-=3)<0)break;Ut.push(It>>12|224,It>>6&63|128,It&63|128)}else if(It<1114112){if((_t-=4)<0)break;Ut.push(It>>18|240,It>>12&63|128,It>>6&63|128,It&63|128)}else throw Error("Invalid code point")}return Ut}function je(Tt){for(var _t=[],It=0;It>8,Ct=It%256,Ut.push(Ct),Ut.push(Mt);return Ut}function Vt(Tt){return M.toByteArray(me(Tt))}function Qt(Tt,_t,It,Mt){var Ct;for(Ct=0;Ct=_t.length||Ct>=Tt.length);++Ct)_t[Ct+It]=Tt[Ct];return Ct}function te(Tt,_t){return Tt instanceof _t||Tt!=null&&Tt.constructor!=null&&Tt.constructor.name!=null&&Tt.constructor.name===_t.name}function ee(Tt){return Tt!==Tt}var Bt=(function(){for(var Tt="0123456789abcdef",_t=Array(256),It=0;It<16;++It)for(var Mt=It*16,Ct=0;Ct<16;++Ct)_t[Mt+Ct]=Tt[It]+Tt[Ct];return _t})();function Wt(Tt){return typeof BigInt>"u"?$t:Tt}function $t(){throw Error("BigInt not supported")}}),9216:(function(p){p.exports=o,p.exports.isMobile=o,p.exports.default=o;var c=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,r=/android|ipad|playbook|silk/i;function o(a){a||(a={});var s=a.ua;if(!s&&typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),typeof s!="string")return!1;var n=c.test(s)&&!i.test(s)||!!a.tablet&&r.test(s);return!n&&a.tablet&&a.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(n=!0),n}}),6296:(function(p,c,i){p.exports=m;var r=i(7261),o=i(9977),a=i(4192);function s(x,f){this._controllerNames=Object.keys(x),this._controllerList=this._controllerNames.map(function(v){return x[v]}),this._mode=f,this._active=x[f],this._active||(this._active=(this._mode="turntable",x.turntable)),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var n=s.prototype;n.flush=function(x){for(var f=this._controllerList,v=0;v"u"?i(1538):WeakMap,o=i(2762),a=i(8116),s=new r;function n(m){var x=s.get(m),f=x&&(x._triangleBuffer.handle||x._triangleBuffer.buffer);if(!f||!m.isBuffer(f)){var v=o(m,new Float32Array([-1,-1,-1,4,4,-1]));x=a(m,[{buffer:v,type:m.FLOAT,size:2}]),x._triangleBuffer=v,s.set(m,x)}x.bind(),m.drawArrays(m.TRIANGLES,0,3),x.unbind()}p.exports=n}),1085:(function(p,c,i){var r=i(1371);p.exports=o;function o(a,s,n){s=typeof s=="number"?s:1,n||(n=": ");var m=a.split(/\r?\n/),x=String(m.length+s-1).length;return m.map(function(f,v){var l=v+s,h=String(l).length;return r(l,x-h)+n+f}).join(` +`)}}),3952:(function(p,c,i){p.exports=a;var r=i(3250);function o(s,n){for(var m=Array(n+1),x=0;x0)throw Error("Invalid string. Length must be a multiple of 4");var g=b.indexOf("=");g===-1&&(g=M);var k=g===M?0:4-g%4;return[g,k]}function x(b){var M=m(b),g=M[0],k=M[1];return(g+k)*3/4-k}function f(b,M,g){return(M+g)*3/4-g}function v(b){var M,g=m(b),k=g[0],L=g[1],u=new o(f(b,k,L)),T=0,C=L>0?k-4:k,_;for(_=0;_>16&255,u[T++]=M>>8&255,u[T++]=M&255;return L===2&&(M=r[b.charCodeAt(_)]<<2|r[b.charCodeAt(_+1)]>>4,u[T++]=M&255),L===1&&(M=r[b.charCodeAt(_)]<<10|r[b.charCodeAt(_+1)]<<4|r[b.charCodeAt(_+2)]>>2,u[T++]=M>>8&255,u[T++]=M&255),u}function l(b){return i[b>>18&63]+i[b>>12&63]+i[b>>6&63]+i[b&63]}function h(b,M,g){for(var k,L=[],u=M;uC?C:T+u));return k===1?(M=b[g-1],L.push(i[M>>2]+i[M<<4&63]+"==")):k===2&&(M=(b[g-2]<<8)+b[g-1],L.push(i[M>>10]+i[M>>4&63]+i[M<<2&63]+"=")),L.join("")}}),3865:(function(p,c,i){var r=i(869);p.exports=o;function o(a,s){return r(a[0].mul(s[1]).add(s[0].mul(a[1])),a[1].mul(s[1]))}}),1318:(function(p){p.exports=c;function c(i,r){return i[0].mul(r[1]).cmp(r[0].mul(i[1]))}}),8697:(function(p,c,i){var r=i(869);p.exports=o;function o(a,s){return r(a[0].mul(s[1]),a[1].mul(s[0]))}}),7842:(function(p,c,i){var r=i(6330),o=i(1533),a=i(2651),s=i(4387),n=i(869),m=i(8697);p.exports=x;function x(f,v){if(r(f))return v?m(f,x(v)):[f[0].clone(),f[1].clone()];var l=0,h,d;if(o(f))h=f.clone();else if(typeof f=="string")h=s(f);else{if(f===0)return[a(0),a(1)];if(f===Math.floor(f))h=a(f);else{for(;f!==Math.floor(f);)f*=1157920892373162e62,l-=256;h=a(f)}}if(r(v))h.mul(v[1]),d=v[0].clone();else if(o(v))d=v.clone();else if(typeof v=="string")d=s(v);else if(!v)d=a(1);else if(v===Math.floor(v))d=a(v);else{for(;v!==Math.floor(v);)v*=1157920892373162e62,l+=256;d=a(v)}return l>0?h=h.ushln(l):l<0&&(d=d.ushln(-l)),n(h,d)}}),6330:(function(p,c,i){var r=i(1533);p.exports=o;function o(a){return Array.isArray(a)&&a.length===2&&r(a[0])&&r(a[1])}}),5716:(function(p,c,i){var r=i(6859);p.exports=o;function o(a){return a.cmp(new r(0))}}),1369:(function(p,c,i){var r=i(5716);p.exports=o;function o(a){var s=a.length,n=a.words,m=0;if(s===1)m=n[0];else if(s===2)m=n[0]+n[1]*67108864;else for(var x=0;x20?52:m+32}}),1533:(function(p,c,i){i(6859),p.exports=r;function r(o){return o&&typeof o=="object"&&!!o.words}}),2651:(function(p,c,i){var r=i(6859),o=i(2361);p.exports=a;function a(s){var n=o.exponent(s);return n<52?new r(s):new r(s*2**(52-n)).ushln(n-52)}}),869:(function(p,c,i){var r=i(2651),o=i(5716);p.exports=a;function a(s,n){var m=o(s),x=o(n);if(m===0)return[r(0),r(1)];if(x===0)return[r(0),r(0)];x<0&&(s=s.neg(),n=n.neg());var f=s.gcd(n);return f.cmpn(1)?[s.div(f),n.div(f)]:[s,n]}}),4387:(function(p,c,i){var r=i(6859);p.exports=o;function o(a){return new r(a)}}),6504:(function(p,c,i){var r=i(869);p.exports=o;function o(a,s){return r(a[0].mul(s[0]),a[1].mul(s[1]))}}),7721:(function(p,c,i){var r=i(5716);p.exports=o;function o(a){return r(a[0])*r(a[1])}}),5572:(function(p,c,i){var r=i(869);p.exports=o;function o(a,s){return r(a[0].mul(s[1]).sub(a[1].mul(s[0])),a[1].mul(s[1]))}}),946:(function(p,c,i){var r=i(1369),o=i(4025);p.exports=a;function a(s){var n=s[0],m=s[1];if(n.cmpn(0)===0)return 0;var x=n.abs().divmod(m.abs()),f=x.div,v=r(f),l=x.mod,h=n.negative===m.negative?1:-1;if(l.cmpn(0)===0)return h*v;if(v){var d=o(v)+4,b=r(l.ushln(d).divRound(m));return h*(v+b*2**-d)}else{var M=m.bitLength()-l.bitLength()+53,b=r(l.ushln(M).divRound(m));return M<1023?h*b*2**-M:(b*=11125369292536007e-324,h*b*2**(1023-M))}}}),2478:(function(p){function c(n,m,x,f,v){for(var l=v+1;f<=v;){var h=f+v>>>1,d=n[h];(x===void 0?d-m:x(d,m))>=0?(l=h,v=h-1):f=h+1}return l}function i(n,m,x,f,v){for(var l=v+1;f<=v;){var h=f+v>>>1,d=n[h];(x===void 0?d-m:x(d,m))>0?(l=h,v=h-1):f=h+1}return l}function r(n,m,x,f,v){for(var l=f-1;f<=v;){var h=f+v>>>1,d=n[h];(x===void 0?d-m:x(d,m))<0?(l=h,f=h+1):v=h-1}return l}function o(n,m,x,f,v){for(var l=f-1;f<=v;){var h=f+v>>>1,d=n[h];(x===void 0?d-m:x(d,m))<=0?(l=h,f=h+1):v=h-1}return l}function a(n,m,x,f,v){for(;f<=v;){var l=f+v>>>1,h=n[l],d=x===void 0?h-m:x(h,m);if(d===0)return l;d<=0?f=l+1:v=l-1}return-1}function s(n,m,x,f,v,l){return typeof x=="function"?l(n,m,x,f===void 0?0:f|0,v===void 0?n.length-1:v|0):l(n,m,void 0,x===void 0?0:x|0,f===void 0?n.length-1:f|0)}p.exports={ge:function(n,m,x,f,v){return s(n,m,x,f,v,c)},gt:function(n,m,x,f,v){return s(n,m,x,f,v,i)},lt:function(n,m,x,f,v){return s(n,m,x,f,v,r)},le:function(n,m,x,f,v){return s(n,m,x,f,v,o)},eq:function(n,m,x,f,v){return s(n,m,x,f,v,a)}}}),8828:(function(p,c){"use restrict";var i=32;c.INT_BITS=i,c.INT_MAX=2147483647,c.INT_MIN=-1<0)-(a<0)},c.abs=function(a){var s=a>>i-1;return(a^s)-s},c.min=function(a,s){return s^(a^s)&-(a65535)<<4,n;return a>>>=s,n=(a>255)<<3,a>>>=n,s|=n,n=(a>15)<<2,a>>>=n,s|=n,n=(a>3)<<1,a>>>=n,s|=n,s|a>>1},c.log10=function(a){return a>=1e9?9:a>=1e8?8:a>=1e7?7:a>=1e6?6:a>=1e5?5:a>=1e4?4:a>=1e3?3:a>=100?2:a>=10?1:0},c.popCount=function(a){return a-=a>>>1&1431655765,a=(a&858993459)+(a>>>2&858993459),(a+(a>>>4)&252645135)*16843009>>>24};function r(a){var s=32;return a&=-a,a&&s--,a&65535&&(s-=16),a&16711935&&(s-=8),a&252645135&&(s-=4),a&858993459&&(s-=2),a&1431655765&&--s,s}c.countTrailingZeros=r,c.nextPow2=function(a){return a+=a===0,--a,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a+1},c.prevPow2=function(a){return a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a-(a>>>1)},c.parity=function(a){return a^=a>>>16,a^=a>>>8,a^=a>>>4,a&=15,27030>>>a&1};var o=Array(256);(function(a){for(var s=0;s<256;++s){var n=s,m=s,x=7;for(n>>>=1;n;n>>>=1)m<<=1,m|=n&1,--x;a[s]=m<>>8&255]<<16|o[a>>>16&255]<<8|o[a>>>24&255]},c.interleave2=function(a,s){return a&=65535,a=(a|a<<8)&16711935,a=(a|a<<4)&252645135,a=(a|a<<2)&858993459,a=(a|a<<1)&1431655765,s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,a|s<<1},c.deinterleave2=function(a,s){return a=a>>>s&1431655765,a=(a|a>>>1)&858993459,a=(a|a>>>2)&252645135,a=(a|a>>>4)&16711935,a=(a|a>>>16)&65535,a<<16>>16},c.interleave3=function(a,s,n){return a&=1023,a=(a|a<<16)&4278190335,a=(a|a<<8)&251719695,a=(a|a<<4)&3272356035,a=(a|a<<2)&1227133513,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,a|=s<<1,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,a|n<<2},c.deinterleave3=function(a,s){return a=a>>>s&1227133513,a=(a|a>>>2)&3272356035,a=(a|a>>>4)&251719695,a=(a|a>>>8)&4278190335,a=(a|a>>>16)&1023,a<<22>>22},c.nextCombination=function(a){var s=a|a-1;return s+1|(~s&-~s)-1>>>r(a)+1}}),6859:(function(p,c,i){p=i.nmd(p),(function(r,o){function a(P,N){if(!P)throw Error(N||"Assertion failed")}function s(P,N){P.super_=N;var V=function(){};V.prototype=N.prototype,P.prototype=new V,P.prototype.constructor=P}function n(P,N,V){if(n.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((N==="le"||N==="be")&&(V=N,N=10),this._init(P||0,N||10,V||"be"))}typeof r=="object"?r.exports=n:o.BN=n,n.BN=n,n.wordSize=26;var m;try{m=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:i(7790).Buffer}catch{}n.isBN=function(P){return P instanceof n?!0:typeof P=="object"&&!!P&&P.constructor.wordSize===n.wordSize&&Array.isArray(P.words)},n.max=function(P,N){return P.cmp(N)>0?P:N},n.min=function(P,N){return P.cmp(N)<0?P:N},n.prototype._init=function(P,N,V){if(typeof P=="number")return this._initNumber(P,N,V);if(typeof P=="object")return this._initArray(P,N,V);N==="hex"&&(N=16),a(N===(N|0)&&N>=2&&N<=36),P=P.toString().replace(/\s+/g,"");var Y=0;P[0]==="-"&&(Y++,this.negative=1),Y=0;Y-=3)nt=P[Y]|P[Y-1]<<8|P[Y-2]<<16,this.words[K]|=nt<>>26-ft&67108863,ft+=24,ft>=26&&(ft-=26,K++);else if(V==="le")for(Y=0,K=0;Y>>26-ft&67108863,ft+=24,ft>=26&&(ft-=26,K++);return this.strip()};function x(P,N){var V=P.charCodeAt(N);return V>=65&&V<=70?V-55:V>=97&&V<=102?V-87:V-48&15}function f(P,N,V){var Y=x(P,V);return V-1>=N&&(Y|=x(P,V-1)<<4),Y}n.prototype._parseHex=function(P,N,V){this.length=Math.ceil((P.length-N)/6),this.words=Array(this.length);for(var Y=0;Y=N;Y-=2)ft=f(P,N,Y)<=18?(K-=18,nt+=1,this.words[nt]|=ft>>>26):K+=8;else for(Y=(P.length-N)%2==0?N+1:N;Y=18?(K-=18,nt+=1,this.words[nt]|=ft>>>26):K+=8;this.strip()};function v(P,N,V,Y){for(var K=0,nt=Math.min(P.length,V),ft=N;ft=49?K+=ct-49+10:ct>=17?K+=ct-17+10:K+=ct}return K}n.prototype._parseBase=function(P,N,V){this.words=[0],this.length=1;for(var Y=0,K=1;K<=67108863;K*=N)Y++;Y--,K=K/N|0;for(var nt=P.length-V,ft=nt%Y,ct=Math.min(nt,nt-ft)+V,J=0,et=V;et1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var l=".0.00.000.0000.00000.000000.0000000.00000000.000000000.0000000000.00000000000.000000000000.0000000000000.00000000000000.000000000000000.0000000000000000.00000000000000000.000000000000000000.0000000000000000000.00000000000000000000.000000000000000000000.0000000000000000000000.00000000000000000000000.000000000000000000000000.0000000000000000000000000".split("."),h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(P,N){P||(P=10),N=N|0||1;var V;if(P===16||P==="hex"){V="";for(var Y=0,K=0,nt=0;nt>>24-Y&16777215,V=K!==0||nt!==this.length-1?l[6-ct.length]+ct+V:ct+V,Y+=2,Y>=26&&(Y-=26,nt--)}for(K!==0&&(V=K.toString(16)+V);V.length%N!==0;)V="0"+V;return this.negative!==0&&(V="-"+V),V}if(P===(P|0)&&P>=2&&P<=36){var J=h[P],et=d[P];V="";var Q=this.clone();for(Q.negative=0;!Q.isZero();){var Z=Q.modn(et).toString(P);Q=Q.idivn(et),V=Q.isZero()?Z+V:l[J-Z.length]+Z+V}for(this.isZero()&&(V="0"+V);V.length%N!==0;)V="0"+V;return this.negative!==0&&(V="-"+V),V}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var P=this.words[0];return this.length===2?P+=this.words[1]*67108864:this.length===3&&this.words[2]===1?P+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative===0?P:-P},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(P,N){return a(m!==void 0),this.toArrayLike(m,P,N)},n.prototype.toArray=function(P,N){return this.toArrayLike(Array,P,N)},n.prototype.toArrayLike=function(P,N,V){var Y=this.byteLength(),K=V||Math.max(1,Y);a(Y<=K,"byte array longer than desired length"),a(K>0,"Requested array length <= 0"),this.strip();var nt=N==="le",ft=new P(K),ct,J,et=this.clone();if(nt){for(J=0;!et.isZero();J++)ct=et.andln(255),et.iushrn(8),ft[J]=ct;for(;J=4096&&(V+=13,N>>>=13),N>=64&&(V+=7,N>>>=7),N>=8&&(V+=4,N>>>=4),N>=2&&(V+=2,N>>>=2),V+N},n.prototype._zeroBits=function(P){if(P===0)return 26;var N=P,V=0;return N&8191||(V+=13,N>>>=13),N&127||(V+=7,N>>>=7),N&15||(V+=4,N>>>=4),N&3||(V+=2,N>>>=2),N&1||V++,V},n.prototype.bitLength=function(){var P=this.words[this.length-1],N=this._countBits(P);return(this.length-1)*26+N};function b(P){for(var N=Array(P.bitLength()),V=0;V>>K}return N}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var P=0,N=0;NP.length?this.clone().ior(P):P.clone().ior(this)},n.prototype.uor=function(P){return this.length>P.length?this.clone().iuor(P):P.clone().iuor(this)},n.prototype.iuand=function(P){for(var N=this.length>P.length?P:this,V=0;VP.length?this.clone().iand(P):P.clone().iand(this)},n.prototype.uand=function(P){return this.length>P.length?this.clone().iuand(P):P.clone().iuand(this)},n.prototype.iuxor=function(P){var N,V;this.length>P.length?(N=this,V=P):(N=P,V=this);for(var Y=0;YP.length?this.clone().ixor(P):P.clone().ixor(this)},n.prototype.uxor=function(P){return this.length>P.length?this.clone().iuxor(P):P.clone().iuxor(this)},n.prototype.inotn=function(P){a(typeof P=="number"&&P>=0);var N=Math.ceil(P/26)|0,V=P%26;this._expand(N),V>0&&N--;for(var Y=0;Y0&&(this.words[Y]=~this.words[Y]&67108863>>26-V),this.strip()},n.prototype.notn=function(P){return this.clone().inotn(P)},n.prototype.setn=function(P,N){a(typeof P=="number"&&P>=0);var V=P/26|0,Y=P%26;return this._expand(V+1),N?this.words[V]=this.words[V]|1<P.length?(V=this,Y=P):(V=P,Y=this);for(var K=0,nt=0;nt>>26;for(;K!==0&&nt>>26;if(this.length=V.length,K!==0)this.words[this.length]=K,this.length++;else if(V!==this)for(;ntP.length?this.clone().iadd(P):P.clone().iadd(this)},n.prototype.isub=function(P){if(P.negative!==0){P.negative=0;var N=this.iadd(P);return P.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(P),this.negative=1,this._normSign();var V=this.cmp(P);if(V===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Y,K;V>0?(Y=this,K=P):(Y=P,K=this);for(var nt=0,ft=0;ft>26,this.words[ft]=N&67108863;for(;nt!==0&&ft>26,this.words[ft]=N&67108863;if(nt===0&&ft>>26,Z=J&67108863,st=Math.min(et,N.length-1),ot=Math.max(0,et-P.length+1);ot<=st;ot++){var rt=et-ot|0;K=P.words[rt]|0,nt=N.words[ot]|0,ft=K*nt+Z,Q+=ft/67108864|0,Z=ft&67108863}V.words[et]=Z|0,J=Q|0}return J===0?V.length--:V.words[et]=J|0,V.strip()}var g=function(P,N,V){var Y=P.words,K=N.words,nt=V.words,ft=0,ct,J,et,Q=Y[0]|0,Z=Q&8191,st=Q>>>13,ot=Y[1]|0,rt=ot&8191,X=ot>>>13,ut=Y[2]|0,lt=ut&8191,yt=ut>>>13,kt=Y[3]|0,Lt=kt&8191,St=kt>>>13,Ot=Y[4]|0,Ht=Ot&8191,Kt=Ot>>>13,Gt=Y[5]|0,Et=Gt&8191,At=Gt>>>13,qt=Y[6]|0,jt=qt&8191,de=qt>>>13,Xt=Y[7]|0,ye=Xt&8191,Le=Xt>>>13,ve=Y[8]|0,ke=ve&8191,Pe=ve>>>13,me=Y[9]|0,be=me&8191,je=me>>>13,nr=K[0]|0,Vt=nr&8191,Qt=nr>>>13,te=K[1]|0,ee=te&8191,Bt=te>>>13,Wt=K[2]|0,$t=Wt&8191,Tt=Wt>>>13,_t=K[3]|0,It=_t&8191,Mt=_t>>>13,Ct=K[4]|0,Ut=Ct&8191,Zt=Ct>>>13,Me=K[5]|0,Be=Me&8191,ge=Me>>>13,Ee=K[6]|0,Ne=Ee&8191,sr=Ee>>>13,_e=K[7]|0,He=_e&8191,or=_e>>>13,Pr=K[8]|0,br=Pr&8191,ue=Pr>>>13,we=K[9]|0,Ce=we&8191,Ge=we>>>13;V.negative=P.negative^N.negative,V.length=19,ct=Math.imul(Z,Vt),J=Math.imul(Z,Qt),J=J+Math.imul(st,Vt)|0,et=Math.imul(st,Qt);var Ke=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,ct=Math.imul(rt,Vt),J=Math.imul(rt,Qt),J=J+Math.imul(X,Vt)|0,et=Math.imul(X,Qt),ct=ct+Math.imul(Z,ee)|0,J=J+Math.imul(Z,Bt)|0,J=J+Math.imul(st,ee)|0,et=et+Math.imul(st,Bt)|0;var ar=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(ar>>>26)|0,ar&=67108863,ct=Math.imul(lt,Vt),J=Math.imul(lt,Qt),J=J+Math.imul(yt,Vt)|0,et=Math.imul(yt,Qt),ct=ct+Math.imul(rt,ee)|0,J=J+Math.imul(rt,Bt)|0,J=J+Math.imul(X,ee)|0,et=et+Math.imul(X,Bt)|0,ct=ct+Math.imul(Z,$t)|0,J=J+Math.imul(Z,Tt)|0,J=J+Math.imul(st,$t)|0,et=et+Math.imul(st,Tt)|0;var We=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(We>>>26)|0,We&=67108863,ct=Math.imul(Lt,Vt),J=Math.imul(Lt,Qt),J=J+Math.imul(St,Vt)|0,et=Math.imul(St,Qt),ct=ct+Math.imul(lt,ee)|0,J=J+Math.imul(lt,Bt)|0,J=J+Math.imul(yt,ee)|0,et=et+Math.imul(yt,Bt)|0,ct=ct+Math.imul(rt,$t)|0,J=J+Math.imul(rt,Tt)|0,J=J+Math.imul(X,$t)|0,et=et+Math.imul(X,Tt)|0,ct=ct+Math.imul(Z,It)|0,J=J+Math.imul(Z,Mt)|0,J=J+Math.imul(st,It)|0,et=et+Math.imul(st,Mt)|0;var $e=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+($e>>>26)|0,$e&=67108863,ct=Math.imul(Ht,Vt),J=Math.imul(Ht,Qt),J=J+Math.imul(Kt,Vt)|0,et=Math.imul(Kt,Qt),ct=ct+Math.imul(Lt,ee)|0,J=J+Math.imul(Lt,Bt)|0,J=J+Math.imul(St,ee)|0,et=et+Math.imul(St,Bt)|0,ct=ct+Math.imul(lt,$t)|0,J=J+Math.imul(lt,Tt)|0,J=J+Math.imul(yt,$t)|0,et=et+Math.imul(yt,Tt)|0,ct=ct+Math.imul(rt,It)|0,J=J+Math.imul(rt,Mt)|0,J=J+Math.imul(X,It)|0,et=et+Math.imul(X,Mt)|0,ct=ct+Math.imul(Z,Ut)|0,J=J+Math.imul(Z,Zt)|0,J=J+Math.imul(st,Ut)|0,et=et+Math.imul(st,Zt)|0;var yr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(yr>>>26)|0,yr&=67108863,ct=Math.imul(Et,Vt),J=Math.imul(Et,Qt),J=J+Math.imul(At,Vt)|0,et=Math.imul(At,Qt),ct=ct+Math.imul(Ht,ee)|0,J=J+Math.imul(Ht,Bt)|0,J=J+Math.imul(Kt,ee)|0,et=et+Math.imul(Kt,Bt)|0,ct=ct+Math.imul(Lt,$t)|0,J=J+Math.imul(Lt,Tt)|0,J=J+Math.imul(St,$t)|0,et=et+Math.imul(St,Tt)|0,ct=ct+Math.imul(lt,It)|0,J=J+Math.imul(lt,Mt)|0,J=J+Math.imul(yt,It)|0,et=et+Math.imul(yt,Mt)|0,ct=ct+Math.imul(rt,Ut)|0,J=J+Math.imul(rt,Zt)|0,J=J+Math.imul(X,Ut)|0,et=et+Math.imul(X,Zt)|0,ct=ct+Math.imul(Z,Be)|0,J=J+Math.imul(Z,ge)|0,J=J+Math.imul(st,Be)|0,et=et+Math.imul(st,ge)|0;var Cr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,ct=Math.imul(jt,Vt),J=Math.imul(jt,Qt),J=J+Math.imul(de,Vt)|0,et=Math.imul(de,Qt),ct=ct+Math.imul(Et,ee)|0,J=J+Math.imul(Et,Bt)|0,J=J+Math.imul(At,ee)|0,et=et+Math.imul(At,Bt)|0,ct=ct+Math.imul(Ht,$t)|0,J=J+Math.imul(Ht,Tt)|0,J=J+Math.imul(Kt,$t)|0,et=et+Math.imul(Kt,Tt)|0,ct=ct+Math.imul(Lt,It)|0,J=J+Math.imul(Lt,Mt)|0,J=J+Math.imul(St,It)|0,et=et+Math.imul(St,Mt)|0,ct=ct+Math.imul(lt,Ut)|0,J=J+Math.imul(lt,Zt)|0,J=J+Math.imul(yt,Ut)|0,et=et+Math.imul(yt,Zt)|0,ct=ct+Math.imul(rt,Be)|0,J=J+Math.imul(rt,ge)|0,J=J+Math.imul(X,Be)|0,et=et+Math.imul(X,ge)|0,ct=ct+Math.imul(Z,Ne)|0,J=J+Math.imul(Z,sr)|0,J=J+Math.imul(st,Ne)|0,et=et+Math.imul(st,sr)|0;var Sr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,ct=Math.imul(ye,Vt),J=Math.imul(ye,Qt),J=J+Math.imul(Le,Vt)|0,et=Math.imul(Le,Qt),ct=ct+Math.imul(jt,ee)|0,J=J+Math.imul(jt,Bt)|0,J=J+Math.imul(de,ee)|0,et=et+Math.imul(de,Bt)|0,ct=ct+Math.imul(Et,$t)|0,J=J+Math.imul(Et,Tt)|0,J=J+Math.imul(At,$t)|0,et=et+Math.imul(At,Tt)|0,ct=ct+Math.imul(Ht,It)|0,J=J+Math.imul(Ht,Mt)|0,J=J+Math.imul(Kt,It)|0,et=et+Math.imul(Kt,Mt)|0,ct=ct+Math.imul(Lt,Ut)|0,J=J+Math.imul(Lt,Zt)|0,J=J+Math.imul(St,Ut)|0,et=et+Math.imul(St,Zt)|0,ct=ct+Math.imul(lt,Be)|0,J=J+Math.imul(lt,ge)|0,J=J+Math.imul(yt,Be)|0,et=et+Math.imul(yt,ge)|0,ct=ct+Math.imul(rt,Ne)|0,J=J+Math.imul(rt,sr)|0,J=J+Math.imul(X,Ne)|0,et=et+Math.imul(X,sr)|0,ct=ct+Math.imul(Z,He)|0,J=J+Math.imul(Z,or)|0,J=J+Math.imul(st,He)|0,et=et+Math.imul(st,or)|0;var Dr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,ct=Math.imul(ke,Vt),J=Math.imul(ke,Qt),J=J+Math.imul(Pe,Vt)|0,et=Math.imul(Pe,Qt),ct=ct+Math.imul(ye,ee)|0,J=J+Math.imul(ye,Bt)|0,J=J+Math.imul(Le,ee)|0,et=et+Math.imul(Le,Bt)|0,ct=ct+Math.imul(jt,$t)|0,J=J+Math.imul(jt,Tt)|0,J=J+Math.imul(de,$t)|0,et=et+Math.imul(de,Tt)|0,ct=ct+Math.imul(Et,It)|0,J=J+Math.imul(Et,Mt)|0,J=J+Math.imul(At,It)|0,et=et+Math.imul(At,Mt)|0,ct=ct+Math.imul(Ht,Ut)|0,J=J+Math.imul(Ht,Zt)|0,J=J+Math.imul(Kt,Ut)|0,et=et+Math.imul(Kt,Zt)|0,ct=ct+Math.imul(Lt,Be)|0,J=J+Math.imul(Lt,ge)|0,J=J+Math.imul(St,Be)|0,et=et+Math.imul(St,ge)|0,ct=ct+Math.imul(lt,Ne)|0,J=J+Math.imul(lt,sr)|0,J=J+Math.imul(yt,Ne)|0,et=et+Math.imul(yt,sr)|0,ct=ct+Math.imul(rt,He)|0,J=J+Math.imul(rt,or)|0,J=J+Math.imul(X,He)|0,et=et+Math.imul(X,or)|0,ct=ct+Math.imul(Z,br)|0,J=J+Math.imul(Z,ue)|0,J=J+Math.imul(st,br)|0,et=et+Math.imul(st,ue)|0;var Or=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(Or>>>26)|0,Or&=67108863,ct=Math.imul(be,Vt),J=Math.imul(be,Qt),J=J+Math.imul(je,Vt)|0,et=Math.imul(je,Qt),ct=ct+Math.imul(ke,ee)|0,J=J+Math.imul(ke,Bt)|0,J=J+Math.imul(Pe,ee)|0,et=et+Math.imul(Pe,Bt)|0,ct=ct+Math.imul(ye,$t)|0,J=J+Math.imul(ye,Tt)|0,J=J+Math.imul(Le,$t)|0,et=et+Math.imul(Le,Tt)|0,ct=ct+Math.imul(jt,It)|0,J=J+Math.imul(jt,Mt)|0,J=J+Math.imul(de,It)|0,et=et+Math.imul(de,Mt)|0,ct=ct+Math.imul(Et,Ut)|0,J=J+Math.imul(Et,Zt)|0,J=J+Math.imul(At,Ut)|0,et=et+Math.imul(At,Zt)|0,ct=ct+Math.imul(Ht,Be)|0,J=J+Math.imul(Ht,ge)|0,J=J+Math.imul(Kt,Be)|0,et=et+Math.imul(Kt,ge)|0,ct=ct+Math.imul(Lt,Ne)|0,J=J+Math.imul(Lt,sr)|0,J=J+Math.imul(St,Ne)|0,et=et+Math.imul(St,sr)|0,ct=ct+Math.imul(lt,He)|0,J=J+Math.imul(lt,or)|0,J=J+Math.imul(yt,He)|0,et=et+Math.imul(yt,or)|0,ct=ct+Math.imul(rt,br)|0,J=J+Math.imul(rt,ue)|0,J=J+Math.imul(X,br)|0,et=et+Math.imul(X,ue)|0,ct=ct+Math.imul(Z,Ce)|0,J=J+Math.imul(Z,Ge)|0,J=J+Math.imul(st,Ce)|0,et=et+Math.imul(st,Ge)|0;var ei=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(ei>>>26)|0,ei&=67108863,ct=Math.imul(be,ee),J=Math.imul(be,Bt),J=J+Math.imul(je,ee)|0,et=Math.imul(je,Bt),ct=ct+Math.imul(ke,$t)|0,J=J+Math.imul(ke,Tt)|0,J=J+Math.imul(Pe,$t)|0,et=et+Math.imul(Pe,Tt)|0,ct=ct+Math.imul(ye,It)|0,J=J+Math.imul(ye,Mt)|0,J=J+Math.imul(Le,It)|0,et=et+Math.imul(Le,Mt)|0,ct=ct+Math.imul(jt,Ut)|0,J=J+Math.imul(jt,Zt)|0,J=J+Math.imul(de,Ut)|0,et=et+Math.imul(de,Zt)|0,ct=ct+Math.imul(Et,Be)|0,J=J+Math.imul(Et,ge)|0,J=J+Math.imul(At,Be)|0,et=et+Math.imul(At,ge)|0,ct=ct+Math.imul(Ht,Ne)|0,J=J+Math.imul(Ht,sr)|0,J=J+Math.imul(Kt,Ne)|0,et=et+Math.imul(Kt,sr)|0,ct=ct+Math.imul(Lt,He)|0,J=J+Math.imul(Lt,or)|0,J=J+Math.imul(St,He)|0,et=et+Math.imul(St,or)|0,ct=ct+Math.imul(lt,br)|0,J=J+Math.imul(lt,ue)|0,J=J+Math.imul(yt,br)|0,et=et+Math.imul(yt,ue)|0,ct=ct+Math.imul(rt,Ce)|0,J=J+Math.imul(rt,Ge)|0,J=J+Math.imul(X,Ce)|0,et=et+Math.imul(X,Ge)|0;var Nr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,ct=Math.imul(be,$t),J=Math.imul(be,Tt),J=J+Math.imul(je,$t)|0,et=Math.imul(je,Tt),ct=ct+Math.imul(ke,It)|0,J=J+Math.imul(ke,Mt)|0,J=J+Math.imul(Pe,It)|0,et=et+Math.imul(Pe,Mt)|0,ct=ct+Math.imul(ye,Ut)|0,J=J+Math.imul(ye,Zt)|0,J=J+Math.imul(Le,Ut)|0,et=et+Math.imul(Le,Zt)|0,ct=ct+Math.imul(jt,Be)|0,J=J+Math.imul(jt,ge)|0,J=J+Math.imul(de,Be)|0,et=et+Math.imul(de,ge)|0,ct=ct+Math.imul(Et,Ne)|0,J=J+Math.imul(Et,sr)|0,J=J+Math.imul(At,Ne)|0,et=et+Math.imul(At,sr)|0,ct=ct+Math.imul(Ht,He)|0,J=J+Math.imul(Ht,or)|0,J=J+Math.imul(Kt,He)|0,et=et+Math.imul(Kt,or)|0,ct=ct+Math.imul(Lt,br)|0,J=J+Math.imul(Lt,ue)|0,J=J+Math.imul(St,br)|0,et=et+Math.imul(St,ue)|0,ct=ct+Math.imul(lt,Ce)|0,J=J+Math.imul(lt,Ge)|0,J=J+Math.imul(yt,Ce)|0,et=et+Math.imul(yt,Ge)|0;var re=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(re>>>26)|0,re&=67108863,ct=Math.imul(be,It),J=Math.imul(be,Mt),J=J+Math.imul(je,It)|0,et=Math.imul(je,Mt),ct=ct+Math.imul(ke,Ut)|0,J=J+Math.imul(ke,Zt)|0,J=J+Math.imul(Pe,Ut)|0,et=et+Math.imul(Pe,Zt)|0,ct=ct+Math.imul(ye,Be)|0,J=J+Math.imul(ye,ge)|0,J=J+Math.imul(Le,Be)|0,et=et+Math.imul(Le,ge)|0,ct=ct+Math.imul(jt,Ne)|0,J=J+Math.imul(jt,sr)|0,J=J+Math.imul(de,Ne)|0,et=et+Math.imul(de,sr)|0,ct=ct+Math.imul(Et,He)|0,J=J+Math.imul(Et,or)|0,J=J+Math.imul(At,He)|0,et=et+Math.imul(At,or)|0,ct=ct+Math.imul(Ht,br)|0,J=J+Math.imul(Ht,ue)|0,J=J+Math.imul(Kt,br)|0,et=et+Math.imul(Kt,ue)|0,ct=ct+Math.imul(Lt,Ce)|0,J=J+Math.imul(Lt,Ge)|0,J=J+Math.imul(St,Ce)|0,et=et+Math.imul(St,Ge)|0;var ae=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(ae>>>26)|0,ae&=67108863,ct=Math.imul(be,Ut),J=Math.imul(be,Zt),J=J+Math.imul(je,Ut)|0,et=Math.imul(je,Zt),ct=ct+Math.imul(ke,Be)|0,J=J+Math.imul(ke,ge)|0,J=J+Math.imul(Pe,Be)|0,et=et+Math.imul(Pe,ge)|0,ct=ct+Math.imul(ye,Ne)|0,J=J+Math.imul(ye,sr)|0,J=J+Math.imul(Le,Ne)|0,et=et+Math.imul(Le,sr)|0,ct=ct+Math.imul(jt,He)|0,J=J+Math.imul(jt,or)|0,J=J+Math.imul(de,He)|0,et=et+Math.imul(de,or)|0,ct=ct+Math.imul(Et,br)|0,J=J+Math.imul(Et,ue)|0,J=J+Math.imul(At,br)|0,et=et+Math.imul(At,ue)|0,ct=ct+Math.imul(Ht,Ce)|0,J=J+Math.imul(Ht,Ge)|0,J=J+Math.imul(Kt,Ce)|0,et=et+Math.imul(Kt,Ge)|0;var wr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(wr>>>26)|0,wr&=67108863,ct=Math.imul(be,Be),J=Math.imul(be,ge),J=J+Math.imul(je,Be)|0,et=Math.imul(je,ge),ct=ct+Math.imul(ke,Ne)|0,J=J+Math.imul(ke,sr)|0,J=J+Math.imul(Pe,Ne)|0,et=et+Math.imul(Pe,sr)|0,ct=ct+Math.imul(ye,He)|0,J=J+Math.imul(ye,or)|0,J=J+Math.imul(Le,He)|0,et=et+Math.imul(Le,or)|0,ct=ct+Math.imul(jt,br)|0,J=J+Math.imul(jt,ue)|0,J=J+Math.imul(de,br)|0,et=et+Math.imul(de,ue)|0,ct=ct+Math.imul(Et,Ce)|0,J=J+Math.imul(Et,Ge)|0,J=J+Math.imul(At,Ce)|0,et=et+Math.imul(At,Ge)|0;var _r=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(_r>>>26)|0,_r&=67108863,ct=Math.imul(be,Ne),J=Math.imul(be,sr),J=J+Math.imul(je,Ne)|0,et=Math.imul(je,sr),ct=ct+Math.imul(ke,He)|0,J=J+Math.imul(ke,or)|0,J=J+Math.imul(Pe,He)|0,et=et+Math.imul(Pe,or)|0,ct=ct+Math.imul(ye,br)|0,J=J+Math.imul(ye,ue)|0,J=J+Math.imul(Le,br)|0,et=et+Math.imul(Le,ue)|0,ct=ct+Math.imul(jt,Ce)|0,J=J+Math.imul(jt,Ge)|0,J=J+Math.imul(de,Ce)|0,et=et+Math.imul(de,Ge)|0;var lr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(lr>>>26)|0,lr&=67108863,ct=Math.imul(be,He),J=Math.imul(be,or),J=J+Math.imul(je,He)|0,et=Math.imul(je,or),ct=ct+Math.imul(ke,br)|0,J=J+Math.imul(ke,ue)|0,J=J+Math.imul(Pe,br)|0,et=et+Math.imul(Pe,ue)|0,ct=ct+Math.imul(ye,Ce)|0,J=J+Math.imul(ye,Ge)|0,J=J+Math.imul(Le,Ce)|0,et=et+Math.imul(Le,Ge)|0;var qe=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(qe>>>26)|0,qe&=67108863,ct=Math.imul(be,br),J=Math.imul(be,ue),J=J+Math.imul(je,br)|0,et=Math.imul(je,ue),ct=ct+Math.imul(ke,Ce)|0,J=J+Math.imul(ke,Ge)|0,J=J+Math.imul(Pe,Ce)|0,et=et+Math.imul(Pe,Ge)|0;var pr=(ft+ct|0)+((J&8191)<<13)|0;ft=(et+(J>>>13)|0)+(pr>>>26)|0,pr&=67108863,ct=Math.imul(be,Ce),J=Math.imul(be,Ge),J=J+Math.imul(je,Ce)|0,et=Math.imul(je,Ge);var xr=(ft+ct|0)+((J&8191)<<13)|0;return ft=(et+(J>>>13)|0)+(xr>>>26)|0,xr&=67108863,nt[0]=Ke,nt[1]=ar,nt[2]=We,nt[3]=$e,nt[4]=yr,nt[5]=Cr,nt[6]=Sr,nt[7]=Dr,nt[8]=Or,nt[9]=ei,nt[10]=Nr,nt[11]=re,nt[12]=ae,nt[13]=wr,nt[14]=_r,nt[15]=lr,nt[16]=qe,nt[17]=pr,nt[18]=xr,ft!==0&&(nt[19]=ft,V.length++),V};Math.imul||(g=M);function k(P,N,V){V.negative=N.negative^P.negative,V.length=P.length+N.length;for(var Y=0,K=0,nt=0;nt>>26)|0,K+=ft>>>26,ft&=67108863}V.words[nt]=ct,Y=ft,ft=K}return Y===0?V.length--:V.words[nt]=Y,V.strip()}function L(P,N,V){return new u().mulp(P,N,V)}n.prototype.mulTo=function(P,N){var V,Y=this.length+P.length;return V=this.length===10&&P.length===10?g(this,P,N):Y<63?M(this,P,N):Y<1024?k(this,P,N):L(this,P,N),V};function u(P,N){this.x=P,this.y=N}u.prototype.makeRBT=function(P){for(var N=Array(P),V=n.prototype._countBits(P)-1,Y=0;Y>=1;return Y},u.prototype.permute=function(P,N,V,Y,K,nt){for(var ft=0;ft>>=1)K++;return 1<>>=13,V[2*nt+1]=K&8191,K>>>=13;for(nt=2*N;nt>=26,N+=Y/67108864|0,N+=K>>>26,this.words[V]=K&67108863}return N!==0&&(this.words[V]=N,this.length++),this},n.prototype.muln=function(P){return this.clone().imuln(P)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(P){var N=b(P);if(N.length===0)return new n(1);for(var V=this,Y=0;Y=0);var N=P%26,V=(P-N)/26,Y=67108863>>>26-N<<26-N,K;if(N!==0){var nt=0;for(K=0;K>>26-N}nt&&(this.words[K]=nt,this.length++)}if(V!==0){for(K=this.length-1;K>=0;K--)this.words[K+V]=this.words[K];for(K=0;K=0);var Y=N?(N-N%26)/26:0,K=P%26,nt=Math.min((P-K)/26,this.length),ft=67108863^67108863>>>K<nt)for(this.length-=nt,J=0;J=0&&(et!==0||J>=Y);J--){var Q=this.words[J]|0;this.words[J]=et<<26-K|Q>>>K,et=Q&ft}return ct&&et!==0&&(ct.words[ct.length++]=et),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(P,N,V){return a(this.negative===0),this.iushrn(P,N,V)},n.prototype.shln=function(P){return this.clone().ishln(P)},n.prototype.ushln=function(P){return this.clone().iushln(P)},n.prototype.shrn=function(P){return this.clone().ishrn(P)},n.prototype.ushrn=function(P){return this.clone().iushrn(P)},n.prototype.testn=function(P){a(typeof P=="number"&&P>=0);var N=P%26,V=(P-N)/26,Y=1<=0);var N=P%26,V=(P-N)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=V)return this;if(N!==0&&V++,this.length=Math.min(V,this.length),N!==0){var Y=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},n.prototype.isubn=function(P){if(a(typeof P=="number"),a(P<67108864),P<0)return this.iaddn(-P);if(this.negative!==0)return this.negative=0,this.iaddn(P),this.negative=1,this;if(this.words[0]-=P,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(ct/67108864|0),this.words[K+V]=nt&67108863}for(;K>26,this.words[K+V]=nt&67108863;if(ft===0)return this.strip();for(a(ft===-1),ft=0,K=0;K>26,this.words[K]=nt&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(P,N){var V=this.length-P.length,Y=this.clone(),K=P,nt=K.words[K.length-1]|0;V=26-this._countBits(nt),V!==0&&(K=K.ushln(V),Y.iushln(V),nt=K.words[K.length-1]|0);var ft=Y.length-K.length,ct;if(N!=="mod"){ct=new n(null),ct.length=ft+1,ct.words=Array(ct.length);for(var J=0;J=0;Q--){var Z=(Y.words[K.length+Q]|0)*67108864+(Y.words[K.length+Q-1]|0);for(Z=Math.min(Z/nt|0,67108863),Y._ishlnsubmul(K,Z,Q);Y.negative!==0;)Z--,Y.negative=0,Y._ishlnsubmul(K,1,Q),Y.isZero()||(Y.negative^=1);ct&&(ct.words[Q]=Z)}return ct&&ct.strip(),Y.strip(),N!=="div"&&V!==0&&Y.iushrn(V),{div:ct||null,mod:Y}},n.prototype.divmod=function(P,N,V){if(a(!P.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var Y,K,nt;return this.negative!==0&&P.negative===0?(nt=this.neg().divmod(P,N),N!=="mod"&&(Y=nt.div.neg()),N!=="div"&&(K=nt.mod.neg(),V&&K.negative!==0&&K.iadd(P)),{div:Y,mod:K}):this.negative===0&&P.negative!==0?(nt=this.divmod(P.neg(),N),N!=="mod"&&(Y=nt.div.neg()),{div:Y,mod:nt.mod}):(this.negative&P.negative)===0?P.length>this.length||this.cmp(P)<0?{div:new n(0),mod:this}:P.length===1?N==="div"?{div:this.divn(P.words[0]),mod:null}:N==="mod"?{div:null,mod:new n(this.modn(P.words[0]))}:{div:this.divn(P.words[0]),mod:new n(this.modn(P.words[0]))}:this._wordDiv(P,N):(nt=this.neg().divmod(P.neg(),N),N!=="div"&&(K=nt.mod.neg(),V&&K.negative!==0&&K.isub(P)),{div:nt.div,mod:K})},n.prototype.div=function(P){return this.divmod(P,"div",!1).div},n.prototype.mod=function(P){return this.divmod(P,"mod",!1).mod},n.prototype.umod=function(P){return this.divmod(P,"mod",!0).mod},n.prototype.divRound=function(P){var N=this.divmod(P);if(N.mod.isZero())return N.div;var V=N.div.negative===0?N.mod:N.mod.isub(P),Y=P.ushrn(1),K=P.andln(1),nt=V.cmp(Y);return nt<0||K===1&&nt===0?N.div:N.div.negative===0?N.div.iaddn(1):N.div.isubn(1)},n.prototype.modn=function(P){a(P<=67108863);for(var N=67108864%P,V=0,Y=this.length-1;Y>=0;Y--)V=(N*V+(this.words[Y]|0))%P;return V},n.prototype.idivn=function(P){a(P<=67108863);for(var N=0,V=this.length-1;V>=0;V--){var Y=(this.words[V]|0)+N*67108864;this.words[V]=Y/P|0,N=Y%P}return this.strip()},n.prototype.divn=function(P){return this.clone().idivn(P)},n.prototype.egcd=function(P){a(P.negative===0),a(!P.isZero());var N=this,V=P.clone();N=N.negative===0?N.clone():N.umod(P);for(var Y=new n(1),K=new n(0),nt=new n(0),ft=new n(1),ct=0;N.isEven()&&V.isEven();)N.iushrn(1),V.iushrn(1),++ct;for(var J=V.clone(),et=N.clone();!N.isZero();){for(var Q=0,Z=1;(N.words[0]&Z)===0&&Q<26;++Q,Z<<=1);if(Q>0)for(N.iushrn(Q);Q-- >0;)(Y.isOdd()||K.isOdd())&&(Y.iadd(J),K.isub(et)),Y.iushrn(1),K.iushrn(1);for(var st=0,ot=1;(V.words[0]&ot)===0&&st<26;++st,ot<<=1);if(st>0)for(V.iushrn(st);st-- >0;)(nt.isOdd()||ft.isOdd())&&(nt.iadd(J),ft.isub(et)),nt.iushrn(1),ft.iushrn(1);N.cmp(V)>=0?(N.isub(V),Y.isub(nt),K.isub(ft)):(V.isub(N),nt.isub(Y),ft.isub(K))}return{a:nt,b:ft,gcd:V.iushln(ct)}},n.prototype._invmp=function(P){a(P.negative===0),a(!P.isZero());var N=this,V=P.clone();N=N.negative===0?N.clone():N.umod(P);for(var Y=new n(1),K=new n(0),nt=V.clone();N.cmpn(1)>0&&V.cmpn(1)>0;){for(var ft=0,ct=1;(N.words[0]&ct)===0&&ft<26;++ft,ct<<=1);if(ft>0)for(N.iushrn(ft);ft-- >0;)Y.isOdd()&&Y.iadd(nt),Y.iushrn(1);for(var J=0,et=1;(V.words[0]&et)===0&&J<26;++J,et<<=1);if(J>0)for(V.iushrn(J);J-- >0;)K.isOdd()&&K.iadd(nt),K.iushrn(1);N.cmp(V)>=0?(N.isub(V),Y.isub(K)):(V.isub(N),K.isub(Y))}var Q=N.cmpn(1)===0?Y:K;return Q.cmpn(0)<0&&Q.iadd(P),Q},n.prototype.gcd=function(P){if(this.isZero())return P.abs();if(P.isZero())return this.abs();var N=this.clone(),V=P.clone();N.negative=0,V.negative=0;for(var Y=0;N.isEven()&&V.isEven();Y++)N.iushrn(1),V.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;V.isEven();)V.iushrn(1);var K=N.cmp(V);if(K<0){var nt=N;N=V,V=nt}else if(K===0||V.cmpn(1)===0)break;N.isub(V)}while(!0);return V.iushln(Y)},n.prototype.invm=function(P){return this.egcd(P).a.umod(P)},n.prototype.isEven=function(){return(this.words[0]&1)==0},n.prototype.isOdd=function(){return(this.words[0]&1)==1},n.prototype.andln=function(P){return this.words[0]&P},n.prototype.bincn=function(P){a(typeof P=="number");var N=P%26,V=(P-N)/26,Y=1<>>26,ft&=67108863,this.words[nt]=ft}return K!==0&&(this.words[nt]=K,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(P){var N=P<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var V;if(this.length>1)V=1;else{N&&(P=-P),a(P<=67108863,"Number is too big");var Y=this.words[0]|0;V=Y===P?0:YP.length)return 1;if(this.length=0;V--){var Y=this.words[V]|0,K=P.words[V]|0;if(Y!==K){YK&&(N=1);break}}return N},n.prototype.gtn=function(P){return this.cmpn(P)===1},n.prototype.gt=function(P){return this.cmp(P)===1},n.prototype.gten=function(P){return this.cmpn(P)>=0},n.prototype.gte=function(P){return this.cmp(P)>=0},n.prototype.ltn=function(P){return this.cmpn(P)===-1},n.prototype.lt=function(P){return this.cmp(P)===-1},n.prototype.lten=function(P){return this.cmpn(P)<=0},n.prototype.lte=function(P){return this.cmp(P)<=0},n.prototype.eqn=function(P){return this.cmpn(P)===0},n.prototype.eq=function(P){return this.cmp(P)===0},n.red=function(P){return new B(P)},n.prototype.toRed=function(P){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),P.convertTo(this)._forceRed(P)},n.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(P){return this.red=P,this},n.prototype.forceRed=function(P){return a(!this.red,"Already a number in reduction context"),this._forceRed(P)},n.prototype.redAdd=function(P){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,P)},n.prototype.redIAdd=function(P){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,P)},n.prototype.redSub=function(P){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,P)},n.prototype.redISub=function(P){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,P)},n.prototype.redShl=function(P){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,P)},n.prototype.redMul=function(P){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.mul(this,P)},n.prototype.redIMul=function(P){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.imul(this,P)},n.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(P){return a(this.red&&!P.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,P)};var T={k256:null,p224:null,p192:null,p25519:null};function C(P,N){this.name=P,this.p=new n(N,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}C.prototype._tmp=function(){var P=new n(null);return P.words=Array(Math.ceil(this.n/13)),P},C.prototype.ireduce=function(P){var N=P,V;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),V=N.bitLength();while(V>this.n);var Y=V0?N.isub(this.p):N.strip===void 0?N._strip():N.strip(),N},C.prototype.split=function(P,N){P.iushrn(this.n,0,N)},C.prototype.imulK=function(P){return P.imul(this.k)};function _(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}s(_,C),_.prototype.split=function(P,N){for(var V=4194303,Y=Math.min(P.length,9),K=0;K>>22,nt=ft}nt>>>=22,P.words[K-10]=nt,nt===0&&P.length>10?P.length-=10:P.length-=9},_.prototype.imulK=function(P){P.words[P.length]=0,P.words[P.length+1]=0,P.length+=2;for(var N=0,V=0;V>>=26,P.words[V]=K,N=Y}return N!==0&&(P.words[P.length++]=N),P},n._prime=function(P){if(T[P])return T[P];var N;if(P==="k256")N=new _;else if(P==="p224")N=new F;else if(P==="p192")N=new O;else if(P==="p25519")N=new j;else throw Error("Unknown prime "+P);return T[P]=N,N};function B(P){if(typeof P=="string"){var N=n._prime(P);this.m=N.p,this.prime=N}else a(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}B.prototype._verify1=function(P){a(P.negative===0,"red works only with positives"),a(P.red,"red works only with red numbers")},B.prototype._verify2=function(P,N){a((P.negative|N.negative)===0,"red works only with positives"),a(P.red&&P.red===N.red,"red works only with red numbers")},B.prototype.imod=function(P){return this.prime?this.prime.ireduce(P)._forceRed(this):P.umod(this.m)._forceRed(this)},B.prototype.neg=function(P){return P.isZero()?P.clone():this.m.sub(P)._forceRed(this)},B.prototype.add=function(P,N){this._verify2(P,N);var V=P.add(N);return V.cmp(this.m)>=0&&V.isub(this.m),V._forceRed(this)},B.prototype.iadd=function(P,N){this._verify2(P,N);var V=P.iadd(N);return V.cmp(this.m)>=0&&V.isub(this.m),V},B.prototype.sub=function(P,N){this._verify2(P,N);var V=P.sub(N);return V.cmpn(0)<0&&V.iadd(this.m),V._forceRed(this)},B.prototype.isub=function(P,N){this._verify2(P,N);var V=P.isub(N);return V.cmpn(0)<0&&V.iadd(this.m),V},B.prototype.shl=function(P,N){return this._verify1(P),this.imod(P.ushln(N))},B.prototype.imul=function(P,N){return this._verify2(P,N),this.imod(P.imul(N))},B.prototype.mul=function(P,N){return this._verify2(P,N),this.imod(P.mul(N))},B.prototype.isqr=function(P){return this.imul(P,P.clone())},B.prototype.sqr=function(P){return this.mul(P,P)},B.prototype.sqrt=function(P){if(P.isZero())return P.clone();var N=this.m.andln(3);if(a(N%2==1),N===3){var V=this.m.add(new n(1)).iushrn(2);return this.pow(P,V)}for(var Y=this.m.subn(1),K=0;!Y.isZero()&&Y.andln(1)===0;)K++,Y.iushrn(1);a(!Y.isZero());var nt=new n(1).toRed(this),ft=nt.redNeg(),ct=this.m.subn(1).iushrn(1),J=this.m.bitLength();for(J=new n(2*J*J).toRed(this);this.pow(J,ct).cmp(ft)!==0;)J.redIAdd(ft);for(var et=this.pow(J,Y),Q=this.pow(P,Y.addn(1).iushrn(1)),Z=this.pow(P,Y),st=K;Z.cmp(nt)!==0;){for(var ot=Z,rt=0;ot.cmp(nt)!==0;rt++)ot=ot.redSqr();a(rt=0;K--){for(var et=N.words[K],Q=J-1;Q>=0;Q--){var Z=et>>Q&1;if(nt!==Y[0]&&(nt=this.sqr(nt)),Z===0&&ft===0){ct=0;continue}ft<<=1,ft|=Z,ct++,!(ct!==V&&(K!==0||Q!==0))&&(nt=this.mul(nt,Y[ft]),ct=0,ft=0)}J=26}return nt},B.prototype.convertTo=function(P){var N=P.umod(this.m);return N===P?N.clone():N},B.prototype.convertFrom=function(P){var N=P.clone();return N.red=null,N},n.mont=function(P){return new U(P)};function U(P){B.call(this,P),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}s(U,B),U.prototype.convertTo=function(P){return this.imod(P.ushln(this.shift))},U.prototype.convertFrom=function(P){var N=this.imod(P.mul(this.rinv));return N.red=null,N},U.prototype.imul=function(P,N){if(P.isZero()||N.isZero())return P.words[0]=0,P.length=1,P;var V=P.imul(N),Y=V.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=V.isub(Y).iushrn(this.shift),nt=K;return K.cmp(this.m)>=0?nt=K.isub(this.m):K.cmpn(0)<0&&(nt=K.iadd(this.m)),nt._forceRed(this)},U.prototype.mul=function(P,N){if(P.isZero()||N.isZero())return new n(0)._forceRed(this);var V=P.mul(N),Y=V.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=V.isub(Y).iushrn(this.shift),nt=K;return K.cmp(this.m)>=0?nt=K.isub(this.m):K.cmpn(0)<0&&(nt=K.iadd(this.m)),nt._forceRed(this)},U.prototype.invm=function(P){return this.imod(P._invmp(this.m).mul(this.r2))._forceRed(this)}})(p,this)}),6204:(function(p){p.exports=c;function c(i){var r,o,a,s=i.length,n=0;for(r=0;r>>1;if(!(u<=0)){var T,C=r.mallocDouble(2*u*k),_=r.mallocInt32(k);if(k=n(d,u,C,_),k>0){if(u===1&&g)o.init(k),T=o.sweepComplete(u,M,0,k,C,_,0,k,C,_);else{var F=r.mallocDouble(2*u*L),O=r.mallocInt32(L);L=n(b,u,F,O),L>0&&(o.init(k+L),T=u===1?o.sweepBipartite(u,M,0,k,C,_,0,L,F,O):a(u,M,g,k,C,_,L,F,O),r.free(F),r.free(O))}r.free(C),r.free(_)}return T}}}var x;function f(d,b){x.push([d,b])}function v(d){return x=[],m(d,d,f,!0),x}function l(d,b){return x=[],m(d,b,f,!1),x}function h(d,b,M){switch(arguments.length){case 1:return v(d);case 2:return typeof b=="function"?m(d,d,b,!0):l(d,b);case 3:return m(d,b,M,!1);default:throw Error("box-intersect: Invalid arguments")}}}),2455:(function(p,c){function i(){function a(m,x,f,v,l,h,d,b,M,g,k){for(var L=2*m,u=v,T=L*v;uM-b?a(m,x,f,v,l,h,d,b,M,g,k):s(m,x,f,v,l,h,d,b,M,g,k)}return n}function r(){function a(f,v,l,h,d,b,M,g,k,L,u){for(var T=2*f,C=h,_=T*h;CL-k?h?a(f,v,l,d,b,M,g,k,L,u,T):s(f,v,l,d,b,M,g,k,L,u,T):h?n(f,v,l,d,b,M,g,k,L,u,T):m(f,v,l,d,b,M,g,k,L,u,T)}return x}function o(a){return a?i():r()}c.partial=o(!1),c.full=o(!0)}),7150:(function(p,c,i){p.exports=P;var r=i(1888),o=i(8828),a=i(2455),s=a.partial,n=a.full,m=i(855),x=i(3545),f=i(8105),v=128,l=1<<22,h=1<<22,d=f("!(lo>=p0)&&!(p1>=hi)"),b=f("lo===p0"),M=f("lo0;){--Q;var ot=Q*u,rt=_[ot],X=_[ot+1],ut=_[ot+2],lt=_[ot+3],yt=_[ot+4],kt=_[ot+5],Lt=Q*T,St=F[Lt],Ot=F[Lt+1],Ht=kt&1,Kt=!!(kt&16),Gt=nt,Et=ft,At=J,qt=et;if(Ht&&(Gt=J,Et=et,At=nt,qt=ft),!(kt&2&&(ut=M(N,rt,X,ut,Gt,Et,Ot),X>=ut))&&!(kt&4&&(X=g(N,rt,X,ut,Gt,Et,St),X>=ut))){var jt=ut-X,de=yt-lt;if(Kt){if(N*jt*(jt+de)x&&v[k+m]>M;--g,k-=h){for(var L=k,u=k+h,T=0;T>>1,M=2*n,g=b,k=v[M*b+m];h=_?(g=C,k=_):T>=O?(g=u,k=T):(g=F,k=O):_>=O?(g=C,k=_):O>=T?(g=u,k=T):(g=F,k=O);for(var j=M*(d-1),B=M*g,U=0;U=p0)&&!(p1>=hi)":x};function i(f){return c[f]}function r(f,v,l,h,d,b,M){for(var g=2*f,k=g*l,L=k,u=l,T=v,C=f+v,_=l;h>_;++_,k+=g)if(d[k+T]===M)if(u===_)u+=1,L+=g;else{for(var F=0;g>F;++F){var O=d[k+F];d[k+F]=d[L],d[L++]=O}var j=b[_];b[_]=b[u],b[u++]=j}return u}function o(f,v,l,h,d,b,M){for(var g=2*f,k=g*l,L=k,u=l,T=v,C=f+v,_=l;h>_;++_,k+=g)if(d[k+T]F;++F){var O=d[k+F];d[k+F]=d[L],d[L++]=O}var j=b[_];b[_]=b[u],b[u++]=j}return u}function a(f,v,l,h,d,b,M){for(var g=2*f,k=g*l,L=k,u=l,T=f+v,C=l;h>C;++C,k+=g)if(d[k+T]<=M)if(u===C)u+=1,L+=g;else{for(var _=0;g>_;++_){var F=d[k+_];d[k+_]=d[L],d[L++]=F}var O=b[C];b[C]=b[u],b[u++]=O}return u}function s(f,v,l,h,d,b,M){for(var g=2*f,k=g*l,L=k,u=l,T=f+v,C=l;h>C;++C,k+=g)if(d[k+T]<=M)if(u===C)u+=1,L+=g;else{for(var _=0;g>_;++_){var F=d[k+_];d[k+_]=d[L],d[L++]=F}var O=b[C];b[C]=b[u],b[u++]=O}return u}function n(f,v,l,h,d,b,M){for(var g=2*f,k=g*l,L=k,u=l,T=v,C=f+v,_=l;h>_;++_,k+=g){var F=d[k+T],O=d[k+C];if(F<=M&&M<=O)if(u===_)u+=1,L+=g;else{for(var j=0;g>j;++j){var B=d[k+j];d[k+j]=d[L],d[L++]=B}var U=b[_];b[_]=b[u],b[u++]=U}}return u}function m(f,v,l,h,d,b,M){for(var g=2*f,k=g*l,L=k,u=l,T=v,C=f+v,_=l;h>_;++_,k+=g){var F=d[k+T],O=d[k+C];if(Fj;++j){var B=d[k+j];d[k+j]=d[L],d[L++]=B}var U=b[_];b[_]=b[u],b[u++]=U}}return u}function x(f,v,l,h,d,b,M,g){for(var k=2*f,L=k*l,u=L,T=l,C=v,_=f+v,F=l;h>F;++F,L+=k){var O=d[L+C],j=d[L+_];if(!(O>=M)&&!(g>=j))if(T===F)T+=1,u+=k;else{for(var B=0;k>B;++B){var U=d[L+B];d[L+B]=d[u],d[u++]=U}var P=b[F];b[F]=b[T],b[T++]=P}}return T}}),1811:(function(p){p.exports=i;var c=32;function i(v,l){l<=4*c?r(0,l-1,v):f(0,l-1,v)}function r(v,l,h){for(var d=2*(v+1),b=v+1;b<=l;++b){for(var M=h[d++],g=h[d++],k=b,L=d-2;k-- >v;){var u=h[L-2],T=h[L-1];if(uh[l+1]:!0}function x(v,l,h,d){v*=2;var b=d[v];return b>1,k=g-d,L=g+d,u=b,T=k,C=g,_=L,F=M,O=v+1,j=l-1,B=0;m(u,T,h)&&(B=u,u=T,T=B),m(_,F,h)&&(B=_,_=F,F=B),m(u,C,h)&&(B=u,u=C,C=B),m(T,C,h)&&(B=T,T=C,C=B),m(u,_,h)&&(B=u,u=_,_=B),m(C,_,h)&&(B=C,C=_,_=B),m(T,F,h)&&(B=T,T=F,F=B),m(T,C,h)&&(B=T,T=C,C=B),m(_,F,h)&&(B=_,_=F,F=B);for(var U=h[2*T],P=h[2*T+1],N=h[2*_],V=h[2*_+1],Y=2*u,K=2*C,nt=2*F,ft=2*b,ct=2*g,J=2*M,et=0;et<2;++et){var Q=h[Y+et],Z=h[K+et],st=h[nt+et];h[ft+et]=Q,h[ct+et]=Z,h[J+et]=st}a(k,v,h),a(L,l,h);for(var ot=O;ot<=j;++ot)if(x(ot,U,P,h))ot!==O&&o(ot,O,h),++O;else if(!x(ot,N,V,h))for(;;)if(x(j,N,V,h)){x(j,U,P,h)?(s(ot,O,j,h),++O,--j):(o(ot,j,h),--j);break}else{if(--j>>1;a(d,Z);for(var st=0,ot=0,ct=0;ct=s)rt=rt-s|0,M(f,v,ot--,rt);else if(rt>=0)M(m,x,st--,rt);else if(rt<=-s){rt=-rt-s|0;for(var X=0;X>>1;a(d,Z);for(var st=0,ot=0,rt=0,ct=0;ct>1==d[2*ct+3]>>1&&(ut=2,ct+=1),X<0){for(var lt=-(X>>1)-1,yt=0;yt>1)-1;ut===0?M(m,x,st--,lt):ut===1?M(f,v,ot--,lt):ut===2&&M(l,h,rt--,lt)}}}function u(C,_,F,O,j,B,U,P,N,V,Y,K){var nt=0,ft=2*C,ct=_,J=_+C,et=1,Q=1;O?Q=s:et=s;for(var Z=j;Z>>1;a(d,X);for(var ut=0,Z=0;Z=s?(yt=!O,st-=s):(yt=!!O,--st),yt)g(m,x,ut++,st);else{var kt=K[st],Lt=ft*st,St=Y[Lt+_+1],Ot=Y[Lt+_+1+C];t:for(var Ht=0;Ht>>1;a(d,st);for(var ot=0,J=0;J=s)m[ot++]=et-s;else{--et;var X=Y[et],ut=nt*et,lt=V[ut+_+1],yt=V[ut+_+1+C];t:for(var kt=0;kt=0;--kt)if(m[kt]===et){for(var Ht=kt+1;Ht0;){for(var d=m.pop(),v=m.pop(),b=-1,M=-1,l=f[v],k=1;k=0||(n.flip(v,d),o(s,n,m,b,v,M),o(s,n,m,v,M,b),o(s,n,m,M,d,b),o(s,n,m,d,b,M))}}}),5023:(function(p,c,i){var r=i(2478);p.exports=x;function o(f,v,l,h,d,b,M){this.cells=f,this.neighbor=v,this.flags=h,this.constraint=l,this.active=d,this.next=b,this.boundary=M}var a=o.prototype;function s(f,v){return f[0]-v[0]||f[1]-v[1]||f[2]-v[2]}a.locate=(function(){var f=[0,0,0];return function(v,l,h){var d=v,b=l,M=h;return l0||M.length>0;){for(;b.length>0;){var T=b.pop();if(g[T]!==-d){g[T]=d,k[T];for(var C=0;C<3;++C){var _=u[3*T+C];_>=0&&g[_]===0&&(L[3*T+C]?M.push(_):(b.push(_),g[_]=d))}}}var F=M;M=b,b=F,M.length=0,d=-d}var O=m(k,g,v);return l?O.concat(h.boundary):O}}),8902:(function(p,c,i){var r=i(2478),o=i(3250)[3],a=0,s=1,n=2;p.exports=M;function m(g,k,L,u,T){this.a=g,this.b=k,this.idx=L,this.lowerIds=u,this.upperIds=T}function x(g,k,L,u){this.a=g,this.b=k,this.type=L,this.idx=u}function f(g,k){var L=g.a[0]-k.a[0]||g.a[1]-k.a[1]||g.type-k.type;return L||g.type!==a&&(L=o(g.a,g.b,k.b),L)?L:g.idx-k.idx}function v(g,k){return o(g.a,g.b,k)}function l(g,k,L,u,T){for(var C=r.lt(k,u,v),_=r.gt(k,u,v),F=C;F<_;++F){for(var O=k[F],j=O.lowerIds,B=j.length;B>1&&o(L[j[B-2]],L[j[B-1]],u)>0;)g.push([j[B-1],j[B-2],T]),--B;j.length=B,j.push(T);for(var U=O.upperIds,B=U.length;B>1&&o(L[U[B-2]],L[U[B-1]],u)<0;)g.push([U[B-2],U[B-1],T]),--B;U.length=B,U.push(T)}}function h(g,k){var L=g.a[0]O[0]&&T.push(new x(O,F,n,C),new x(F,O,s,C))}T.sort(f);for(var j=T[0].a[0]-(1+Math.abs(T[0].a[0]))*2220446049250313e-31,B=[new m([j,1],[j,0],-1,[],[],[],[])],U=[],C=0,P=T.length;C=0}})(),a.removeTriangle=function(m,x,f){var v=this.stars;s(v[m],x,f),s(v[x],f,m),s(v[f],m,x)},a.addTriangle=function(m,x,f){var v=this.stars;v[m].push(x,f),v[x].push(f,m),v[f].push(m,x)},a.opposite=function(m,x){for(var f=this.stars[x],v=1,l=f.length;v=0;--N){var Q=U[N];V=Q[0];var Z=j[V],st=Z[0],ot=Z[1],rt=O[st],X=O[ot];if((rt[0]-X[0]||rt[1]-X[1])<0){var ut=st;st=ot,ot=ut}Z[0]=st;var lt=Z[1]=Q[1],yt;for(P&&(yt=Z[2]);N>0&&U[N-1][0]===V;){var Q=U[--N],kt=Q[1];P?j.push([lt,kt,yt]):j.push([lt,kt]),lt=kt}P?j.push([lt,ot,yt]):j.push([lt,ot])}return Y}function k(O,j,B){for(var U=j.length,P=new r(U),N=[],V=0;Vj[2]?1:0)}function T(O,j,B){if(O.length!==0){if(j)for(var U=0;U0||V.length>0}function F(O,j,B){var U;if(B){U=j;for(var P=Array(j.length),N=0;Ng+1)throw Error(b+" map requires nshades to be at least size "+d.length);k=Array.isArray(x.alpha)?x.alpha.length===2?x.alpha.slice():[1,1]:typeof x.alpha=="number"?[x.alpha,x.alpha]:[1,1],f=d.map(function(F){return Math.round(F.index*g)}),k[0]=Math.min(Math.max(k[0],0),1),k[1]=Math.min(Math.max(k[1],0),1);var u=d.map(function(F,O){var j=d[O].index,B=d[O].rgb.slice();return B.length===4&&B[3]>=0&&B[3]<=1||(B[3]=k[0]+(k[1]-k[0])*j),B}),T=[];for(L=0;L=0}function x(f,v,l,h){var d=r(v,l,h);if(d===0){var b=o(r(f,v,l)),M=o(r(f,v,h));if(b===M){if(b===0){var g=m(f,v,l);return g===m(f,v,h)?0:g?1:-1}return 0}else{if(M===0)return b>0||m(f,v,h)?-1:1;if(b===0)return M>0||m(f,v,l)?1:-1}return o(M-b)}var k=r(f,v,l);return k>0?d>0&&r(f,v,h)>0?1:-1:k<0?d>0||r(f,v,h)>0?1:-1:r(f,v,h)>0||m(f,v,l)?1:-1}}),8572:(function(p){p.exports=function(c){return c<0?-1:c>0?1:0}}),8507:(function(p){p.exports=r;var c=Math.min;function i(o,a){return o-a}function r(o,a){var s=o.length,n=o.length-a.length;if(n)return n;switch(s){case 0:return 0;case 1:return o[0]-a[0];case 2:return o[0]+o[1]-a[0]-a[1]||c(o[0],o[1])-c(a[0],a[1]);case 3:var m=o[0]+o[1],x=a[0]+a[1];if(n=m+o[2]-(x+a[2]),n)return n;var f=c(o[0],o[1]),v=c(a[0],a[1]);return c(f,o[2])-c(v,a[2])||c(f+o[2],m)-c(v+a[2],x);case 4:var l=o[0],h=o[1],d=o[2],b=o[3],M=a[0],g=a[1],k=a[2],L=a[3];return l+h+d+b-(M+g+k+L)||c(l,h,d,b)-c(M,g,k,L,M)||c(l+h,l+d,l+b,h+d,h+b,d+b)-c(M+g,M+k,M+L,g+k,g+L,k+L)||c(l+h+d,l+h+b,l+d+b,h+d+b)-c(M+g+k,M+g+L,M+k+L,g+k+L);default:for(var u=o.slice().sort(i),T=a.slice().sort(i),C=0;Ci[o][0]&&(o=a);return ro?[[o],[r]]:[[r]]}}),4750:(function(p,c,i){p.exports=o;var r=i(3090);function o(a){var s=r(a),n=s.length;if(n<=2)return[];for(var m=Array(n),x=s[n-1],f=0;f=x[M]&&(b+=1);h[d]=b}}return m}function n(m,x){try{return r(m,!0)}catch{var f=o(m);return f.length<=x?[]:s(r(a(m,f),!0),f)}}}),4769:(function(p){function c(r,o,a,s,n,m){var x=6*n*n-6*n,f=3*n*n-4*n+1,v=-6*n*n+6*n,l=3*n*n-2*n;if(r.length){m||(m=Array(r.length));for(var h=r.length-1;h>=0;--h)m[h]=x*r[h]+f*o[h]+v*a[h]+l*s[h];return m}return x*r+f*o+v*a[h]+l*s}function i(r,o,a,s,n,m){var x=n-1,f=n*n,v=x*x,l=(1+2*n)*v,h=n*v,d=f*(3-2*n),b=f*x;if(r.length){m||(m=Array(r.length));for(var M=r.length-1;M>=0;--M)m[M]=l*r[M]+h*o[M]+d*a[M]+b*s[M];return m}return l*r+h*o+d*a+b*s}p.exports=i,p.exports.derivative=c}),7642:(function(p,c,i){var r=i(8954),o=i(1682);p.exports=m;function a(x,f){this.point=x,this.index=f}function s(x,f){for(var v=x.point,l=f.point,h=v.length,d=0;d=2)return!1;B[P]=N}return!0}):j.filter(function(B){for(var U=0;U<=l;++U){var P=C[B[U]];if(P<0)return!1;B[U]=P}return!0}),l&1)for(var b=0;b>>31},p.exports.exponent=function(a){return(p.exports.hi(a)<<1>>>21)-1023},p.exports.fraction=function(a){var s=p.exports.lo(a),n=p.exports.hi(a),m=n&(1<<20)-1;return n&2146435072&&(m+=1048576),[s,m]},p.exports.denormalized=function(a){return!(p.exports.hi(a)&2146435072)}}),1338:(function(p){function c(o,a,s){var n=o[s]|0;if(n<=0)return[];var m=Array(n),x;if(s===o.length-1)for(x=0;x0)return i(o|0,a);break;case"object":if(typeof o.length=="number")return c(o,a,0);break}return[]}p.exports=r}),3134:(function(p,c,i){p.exports=o;var r=i(1682);function o(a,s){var n=a.length;if(typeof s!="number"){s=0;for(var m=0;m=l-1)for(var L=b.length-1,T=f-v[l-1],u=0;u=l-1){var k=b.length-1;f-v[l-1];for(var L=0;L=0;--l)if(f[--v])return!1;return!0},n.jump=function(f){var v=this.lastT(),l=this.dimension;if(!(f0;--u)h.push(a(g[u-1],k[u-1],arguments[u])),d.push(0)}},n.push=function(f){var v=this.lastT(),l=this.dimension;if(!(f1e-6?1/M:0;this._time.push(f);for(var T=l;T>0;--T){var C=a(k[T-1],L[T-1],arguments[T]);h.push(C),d.push((C-h[b++])*u)}}},n.set=function(f){var v=this.dimension;if(!(f0;--g)l.push(a(b[g-1],M[g-1],arguments[g])),h.push(0)}},n.move=function(f){var v=this.lastT(),l=this.dimension;if(!(f<=v||arguments.length!==l+1)){var h=this._state,d=this._velocity,b=h.length-this.dimension,M=this.bounds,g=M[0],k=M[1],L=f-v,u=L>1e-6?1/L:0;this._time.push(f);for(var T=l;T>0;--T){var C=arguments[T];h.push(a(g[T-1],k[T-1],h[b++]+C)),d.push(C*u)}}},n.idle=function(f){var v=this.lastT();if(!(f=0;--u)h.push(a(g[u],k[u],h[b]+L*d[b])),d.push(0),b+=1}};function m(f){for(var v=Array(f),l=0;l=0;--O){var T=C[O];_[O]<=0?C[O]=new r(T._color,T.key,T.value,C[O+1],T.right,T._count+1):C[O]=new r(T._color,T.key,T.value,T.left,C[O+1],T._count+1)}for(var O=C.length-1;O>1;--O){var j=C[O-1],T=C[O];if(j._color===i||T._color===i)break;var B=C[O-2];if(B.left===j)if(j.left===T){var U=B.right;if(U&&U._color===c)j._color=i,B.right=a(i,U),B._color=c,--O;else{if(B._color=c,B.left=j.right,j._color=i,j.right=B,C[O-2]=j,C[O-1]=T,s(B),s(j),O>=3){var P=C[O-3];P.left===B?P.left=j:P.right=j}break}}else{var U=B.right;if(U&&U._color===c)j._color=i,B.right=a(i,U),B._color=c,--O;else{if(j.right=T.left,B._color=c,B.left=T.right,T._color=i,T.left=j,T.right=B,C[O-2]=T,C[O-1]=j,s(B),s(j),s(T),O>=3){var P=C[O-3];P.left===B?P.left=T:P.right=T}break}}else if(j.right===T){var U=B.left;if(U&&U._color===c)j._color=i,B.left=a(i,U),B._color=c,--O;else{if(B._color=c,B.right=j.left,j._color=i,j.left=B,C[O-2]=j,C[O-1]=T,s(B),s(j),O>=3){var P=C[O-3];P.right===B?P.right=j:P.left=j}break}}else{var U=B.left;if(U&&U._color===c)j._color=i,B.left=a(i,U),B._color=c,--O;else{if(j.left=T.right,B._color=c,B.right=T.left,T._color=i,T.right=j,T.left=B,C[O-2]=T,C[O-1]=j,s(B),s(j),s(T),O>=3){var P=C[O-3];P.right===B?P.right=T:P.left=T}break}}}return C[0]._color=i,new n(u,C[0])};function x(k,L){if(L.left){var u=x(k,L.left);if(u)return u}var u=k(L.key,L.value);if(u)return u;if(L.right)return x(k,L.right)}function f(k,L,u,T){if(L(k,T.key)<=0){if(T.left){var C=f(k,L,u,T.left);if(C)return C}var C=u(T.key,T.value);if(C)return C}if(T.right)return f(k,L,u,T.right)}function v(k,L,u,T,C){var _=u(k,C.key),F=u(L,C.key),O;if(_<=0&&(C.left&&(O=v(k,L,u,T,C.left),O)||F>0&&(O=T(C.key,C.value),O)))return O;if(F>0&&C.right)return v(k,L,u,T,C.right)}m.forEach=function(k,L,u){if(this.root)switch(arguments.length){case 1:return x(k,this.root);case 2:return f(L,this._compare,k,this.root);case 3:return this._compare(L,u)>=0?void 0:v(L,u,this._compare,k,this.root)}},Object.defineProperty(m,"begin",{get:function(){for(var k=[],L=this.root;L;)k.push(L),L=L.left;return new l(this,k)}}),Object.defineProperty(m,"end",{get:function(){for(var k=[],L=this.root;L;)k.push(L),L=L.right;return new l(this,k)}}),m.at=function(k){if(k<0)return new l(this,[]);for(var L=this.root,u=[];;){if(u.push(L),L.left){if(k=L.right._count)break;L=L.right}else break}return new l(this,[])},m.ge=function(k){for(var L=this._compare,u=this.root,T=[],C=0;u;){var _=L(k,u.key);T.push(u),_<=0&&(C=T.length),u=_<=0?u.left:u.right}return T.length=C,new l(this,T)},m.gt=function(k){for(var L=this._compare,u=this.root,T=[],C=0;u;){var _=L(k,u.key);T.push(u),_<0&&(C=T.length),u=_<0?u.left:u.right}return T.length=C,new l(this,T)},m.lt=function(k){for(var L=this._compare,u=this.root,T=[],C=0;u;){var _=L(k,u.key);T.push(u),_>0&&(C=T.length),u=_<=0?u.left:u.right}return T.length=C,new l(this,T)},m.le=function(k){for(var L=this._compare,u=this.root,T=[],C=0;u;){var _=L(k,u.key);T.push(u),_>=0&&(C=T.length),u=_<0?u.left:u.right}return T.length=C,new l(this,T)},m.find=function(k){for(var L=this._compare,u=this.root,T=[];u;){var C=L(k,u.key);if(T.push(u),C===0)return new l(this,T);u=C<=0?u.left:u.right}return new l(this,[])},m.remove=function(k){var L=this.find(k);return L?L.remove():this},m.get=function(k){for(var L=this._compare,u=this.root;u;){var T=L(k,u.key);if(T===0)return u.value;u=T<=0?u.left:u.right}};function l(k,L){this.tree=k,this._stack=L}var h=l.prototype;Object.defineProperty(h,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(h,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),h.clone=function(){return new l(this.tree,this._stack.slice())};function d(k,L){k.key=L.key,k.value=L.value,k.left=L.left,k.right=L.right,k._color=L._color,k._count=L._count}function b(k){for(var L,u,T,C,_=k.length-1;_>=0;--_){if(L=k[_],_===0){L._color=i;return}if(u=k[_-1],u.left===L){if(T=u.right,T.right&&T.right._color===c){if(T=u.right=o(T),C=T.right=o(T.right),u.right=T.left,T.left=u,T.right=C,T._color=u._color,L._color=i,u._color=i,C._color=i,s(u),s(T),_>1){var F=k[_-2];F.left===u?F.left=T:F.right=T}k[_-1]=T;return}else if(T.left&&T.left._color===c){if(T=u.right=o(T),C=T.left=o(T.left),u.right=C.left,T.left=C.right,C.left=u,C.right=T,C._color=u._color,u._color=i,T._color=i,L._color=i,s(u),s(T),s(C),_>1){var F=k[_-2];F.left===u?F.left=C:F.right=C}k[_-1]=C;return}if(T._color===i)if(u._color===c){u._color=i,u.right=a(c,T);return}else{u.right=a(c,T);continue}else{if(T=o(T),u.right=T.left,T.left=u,T._color=u._color,u._color=c,s(u),s(T),_>1){var F=k[_-2];F.left===u?F.left=T:F.right=T}k[_-1]=T,k[_]=u,_+11){var F=k[_-2];F.right===u?F.right=T:F.left=T}k[_-1]=T;return}else if(T.right&&T.right._color===c){if(T=u.left=o(T),C=T.right=o(T.right),u.left=C.right,T.right=C.left,C.right=u,C.left=T,C._color=u._color,u._color=i,T._color=i,L._color=i,s(u),s(T),s(C),_>1){var F=k[_-2];F.right===u?F.right=C:F.left=C}k[_-1]=C;return}if(T._color===i)if(u._color===c){u._color=i,u.left=a(c,T);return}else{u.left=a(c,T);continue}else{if(T=o(T),u.left=T.right,T.right=u,T._color=u._color,u._color=c,s(u),s(T),_>1){var F=k[_-2];F.right===u?F.right=T:F.left=T}k[_-1]=T,k[_]=u,_+1=0;--T){var u=k[T];u.left===k[T+1]?L[T]=new r(u._color,u.key,u.value,L[T+1],u.right,u._count):L[T]=new r(u._color,u.key,u.value,u.left,L[T+1],u._count)}if(u=L[L.length-1],u.left&&u.right){var C=L.length;for(u=u.left;u.right;)L.push(u),u=u.right;var _=L[C-1];L.push(new r(u._color,_.key,_.value,u.left,u.right,u._count)),L[C-1].key=u.key,L[C-1].value=u.value;for(var T=L.length-2;T>=C;--T)u=L[T],L[T]=new r(u._color,u.key,u.value,u.left,L[T+1],u._count);L[C-1].left=L[C]}if(u=L[L.length-1],u._color===c){var F=L[L.length-2];F.left===u?F.left=null:F.right===u&&(F.right=null),L.pop();for(var T=0;T0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(h,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(h,"index",{get:function(){var k=0,L=this._stack;if(L.length===0){var u=this.tree.root;return u?u._count:0}else L[L.length-1].left&&(k=L[L.length-1].left._count);for(var T=L.length-2;T>=0;--T)L[T+1]===L[T].right&&(++k,L[T].left&&(k+=L[T].left._count));return k},enumerable:!0}),h.next=function(){var k=this._stack;if(k.length!==0){var L=k[k.length-1];if(L.right)for(L=L.right;L;)k.push(L),L=L.left;else for(k.pop();k.length>0&&k[k.length-1].right===L;)L=k[k.length-1],k.pop()}},Object.defineProperty(h,"hasNext",{get:function(){var k=this._stack;if(k.length===0)return!1;if(k[k.length-1].right)return!0;for(var L=k.length-1;L>0;--L)if(k[L-1].left===k[L])return!0;return!1}}),h.update=function(k){var L=this._stack;if(L.length===0)throw Error("Can't update empty node!");var u=Array(L.length),T=L[L.length-1];u[u.length-1]=new r(T._color,T.key,k,T.left,T.right,T._count);for(var C=L.length-2;C>=0;--C)T=L[C],T.left===L[C+1]?u[C]=new r(T._color,T.key,T.value,u[C+1],T.right,T._count):u[C]=new r(T._color,T.key,T.value,T.left,u[C+1],T._count);return new n(this.tree._compare,u[0])},h.prev=function(){var k=this._stack;if(k.length!==0){var L=k[k.length-1];if(L.left)for(L=L.left;L;)k.push(L),L=L.right;else for(k.pop();k.length>0&&k[k.length-1].left===L;)L=k[k.length-1],k.pop()}},Object.defineProperty(h,"hasPrev",{get:function(){var k=this._stack;if(k.length===0)return!1;if(k[k.length-1].left)return!0;for(var L=k.length-1;L>0;--L)if(k[L-1].right===k[L])return!0;return!1}});function M(k,L){return kL?1:0}function g(k){return new n(k||M,null)}}),3837:(function(p,c,i){p.exports=O;var r=i(4935),o=i(501),a=i(5304),s=i(6429),n=i(6444),m=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),x=ArrayBuffer,f=DataView;function v(j){return x.isView(j)&&!(j instanceof f)}function l(j){return Array.isArray(j)||v(j)}function h(j,B){return j[0]=B[0],j[1]=B[1],j[2]=B[2],j}function d(j){this.gl=j,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(j)}var b=d.prototype;b.update=function(j){j||(j={});function B(st,ot,rt){if(rt in j){var X=j[rt],ut=this[rt],lt;(st?l(X)&&l(X[0]):l(X))?this[rt]=lt=[ot(X[0]),ot(X[1]),ot(X[2])]:this[rt]=lt=[ot(X),ot(X),ot(X)];for(var yt=0;yt<3;++yt)if(lt[yt]!==ut[yt])return!0}return!1}var U=B.bind(this,!1,Number),P=B.bind(this,!1,Boolean),N=B.bind(this,!1,String),V=B.bind(this,!0,function(st){if(l(st)){if(st.length===3)return[+st[0],+st[1],+st[2],1];if(st.length===4)return[+st[0],+st[1],+st[2],+st[3]]}return[0,0,0,1]}),Y,K=!1,nt=!1;if("bounds"in j)for(var ft=j.bounds,ct=0;ct<2;++ct)for(var J=0;J<3;++J)ft[ct][J]!==this.bounds[ct][J]&&(nt=!0),this.bounds[ct][J]=ft[ct][J];if("ticks"in j){Y=j.ticks,K=!0,this.autoTicks=!1;for(var ct=0;ct<3;++ct)this.tickSpacing[ct]=0}else U("tickSpacing")&&(this.autoTicks=!0,nt=!0);if(this._firstInit&&(this._firstInit=("ticks"in j||"tickSpacing"in j||(this.autoTicks=!0),nt=!0,K=!0,!1)),nt&&this.autoTicks&&(Y=n.create(this.bounds,this.tickSpacing),K=!0),K){for(var ct=0;ct<3;++ct)Y[ct].sort(function(ot,rt){return ot.x-rt.x});n.equal(Y,this.ticks)?K=!1:this.ticks=Y}P("tickEnable"),N("tickFont")&&(K=!0),N("tickFontStyle")&&(K=!0),N("tickFontWeight")&&(K=!0),N("tickFontVariant")&&(K=!0),U("tickSize"),U("tickAngle"),U("tickPad"),V("tickColor");var et=N("labels");N("labelFont")&&(et=!0),N("labelFontStyle")&&(et=!0),N("labelFontWeight")&&(et=!0),N("labelFontVariant")&&(et=!0),P("labelEnable"),U("labelSize"),U("labelPad"),V("labelColor"),P("lineEnable"),P("lineMirror"),U("lineWidth"),V("lineColor"),P("lineTickEnable"),P("lineTickMirror"),U("lineTickLength"),U("lineTickWidth"),V("lineTickColor"),P("gridEnable"),U("gridWidth"),V("gridColor"),P("zeroEnable"),V("zeroLineColor"),U("zeroLineWidth"),P("backgroundEnable"),V("backgroundColor");var Q=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Z=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(et||K)&&this._text.update(this.bounds,this.labels,Q,this.ticks,Z):this._text=r(this.gl,this.bounds,this.labels,Q,this.ticks,Z),this._lines&&K&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=o(this.gl,this.bounds,this.ticks))};function M(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var g=[new M,new M,new M];function k(j,B,U,P,N){for(var V=j.primalOffset,Y=j.primalMinor,K=j.mirrorOffset,nt=j.mirrorMinor,ft=P[B],ct=0;ct<3;++ct)if(B!==ct){var J=V,et=K,Q=Y,Z=nt;ft&1<0?(Q[ct]=-1,Z[ct]=0):(Q[ct]=0,Z[ct]=1)}}var L=[0,0,0],u={model:m,view:m,projection:m,_ortho:!1};b.isOpaque=function(){return!0},b.isTransparent=function(){return!1},b.drawTransparent=function(j){};var T=0,C=[0,0,0],_=[0,0,0],F=[0,0,0];b.draw=function(j){j||(j=u);for(var B=this.gl,U=j.model||m,P=j.view||m,N=j.projection||m,V=this.bounds,Y=j._ortho||!1,K=s(U,P,N,V,Y),nt=K.cubeEdges,ft=K.axis,ct=P[12],J=P[13],et=P[14],Q=P[15],Z=(Y?2:1)*this.pixelRatio*(N[3]*ct+N[7]*J+N[11]*et+N[15]*Q)/B.drawingBufferHeight,st=0;st<3;++st)this.lastCubeProps.cubeEdges[st]=nt[st],this.lastCubeProps.axis[st]=ft[st];for(var ot=g,st=0;st<3;++st)k(g[st],st,this.bounds,nt,ft);for(var B=this.gl,rt=L,st=0;st<3;++st)this.backgroundEnable[st]?rt[st]=ft[st]:rt[st]=0;this._background.draw(U,P,N,V,rt,this.backgroundColor),this._lines.bind(U,P,N,this);for(var st=0;st<3;++st){var X=[0,0,0];ft[st]>0?X[st]=V[1][st]:X[st]=V[0][st];for(var ut=0;ut<2;++ut){var lt=(st+1+ut)%3,yt=(st+1+(ut^1))%3;this.gridEnable[lt]&&this._lines.drawGrid(lt,yt,this.bounds,X,this.gridColor[lt],this.gridWidth[lt]*this.pixelRatio)}for(var ut=0;ut<2;++ut){var lt=(st+1+ut)%3,yt=(st+1+(ut^1))%3;this.zeroEnable[yt]&&Math.min(V[0][yt],V[1][yt])<=0&&Math.max(V[0][yt],V[1][yt])>=0&&this._lines.drawZero(lt,yt,this.bounds,X,this.zeroLineColor[yt],this.zeroLineWidth[yt]*this.pixelRatio)}}for(var st=0;st<3;++st){this.lineEnable[st]&&this._lines.drawAxisLine(st,this.bounds,ot[st].primalOffset,this.lineColor[st],this.lineWidth[st]*this.pixelRatio),this.lineMirror[st]&&this._lines.drawAxisLine(st,this.bounds,ot[st].mirrorOffset,this.lineColor[st],this.lineWidth[st]*this.pixelRatio);for(var kt=h(C,ot[st].primalMinor),Lt=h(_,ot[st].mirrorMinor),St=this.lineTickLength,ut=0;ut<3;++ut){var Ot=Z/U[5*ut];kt[ut]*=St[ut]*Ot,Lt[ut]*=St[ut]*Ot}this.lineTickEnable[st]&&this._lines.drawAxisTicks(st,ot[st].primalOffset,kt,this.lineTickColor[st],this.lineTickWidth[st]*this.pixelRatio),this.lineTickMirror[st]&&this._lines.drawAxisTicks(st,ot[st].mirrorOffset,Lt,this.lineTickColor[st],this.lineTickWidth[st]*this.pixelRatio)}this._lines.unbind(),this._text.bind(U,P,N,this.pixelRatio);var Ht,Kt=.5,Gt,Et;function At(Le){Et=[0,0,0],Et[Le]=1}function qt(Le,ve,ke){var Pe=(Le+1)%3,me=(Le+2)%3,be=ve[Pe],je=ve[me],nr=ke[Pe],Vt=ke[me];if(be>0&&Vt>0){At(Pe);return}else if(be>0&&Vt<0){At(Pe);return}else if(be<0&&Vt>0){At(Pe);return}else if(be<0&&Vt<0){At(Pe);return}else if(je>0&&nr>0){At(me);return}else if(je>0&&nr<0){At(me);return}else if(je<0&&nr>0){At(me);return}else if(je<0&&nr<0){At(me);return}}for(var st=0;st<3;++st){for(var jt=ot[st].primalMinor,de=ot[st].mirrorMinor,Xt=h(F,ot[st].primalOffset),ut=0;ut<3;++ut)this.lineTickEnable[st]&&(Xt[ut]+=Z*jt[ut]*Math.max(this.lineTickLength[ut],0)/U[5*ut]);var ye=[0,0,0];if(ye[st]=1,this.tickEnable[st]){this.tickAngle[st]===-3600?(this.tickAngle[st]=0,this.tickAlign[st]="auto"):this.tickAlign[st]=-1,Gt=1,Ht=[this.tickAlign[st],Kt,Gt],Ht[0]==="auto"?Ht[0]=T:Ht[0]=parseInt(""+Ht[0]),Et=[0,0,0],qt(st,jt,de);for(var ut=0;ut<3;++ut)Xt[ut]+=Z*jt[ut]*this.tickPad[ut]/U[5*ut];this._text.drawTicks(st,this.tickSize[st],this.tickAngle[st],Xt,this.tickColor[st],ye,Et,Ht)}if(this.labelEnable[st]){Gt=0,Et=[0,0,0],this.labels[st].length>4&&(At(st),Gt=1),Ht=[this.labelAlign[st],Kt,Gt],Ht[0]==="auto"?Ht[0]=T:Ht[0]=parseInt(""+Ht[0]);for(var ut=0;ut<3;++ut)Xt[ut]+=Z*jt[ut]*this.labelPad[ut]/U[5*ut];Xt[st]+=.5*(V[0][st]+V[1][st]),this._text.drawLabel(st,this.labelSize[st],this.labelAngle[st],Xt,this.labelColor[st],[0,0,0],Et,Ht)}}this._text.unbind()},b.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function O(j,B){var U=new d(j);return U.update(B),U}}),5304:(function(p,c,i){p.exports=m;var r=i(2762),o=i(8116),a=i(1879).bg;function s(x,f,v,l){this.gl=x,this.buffer=f,this.vao=v,this.shader=l}var n=s.prototype;n.draw=function(x,f,v,l,h,d){for(var b=!1,M=0;M<3;++M)b||(b=h[M]);if(b){var g=this.gl;g.enable(g.POLYGON_OFFSET_FILL),g.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:x,view:f,projection:v,bounds:l,enable:h,colors:d},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),g.disable(g.POLYGON_OFFSET_FILL)}},n.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function m(x){for(var f=[],v=[],l=0,h=0;h<3;++h)for(var d=(h+1)%3,b=(h+2)%3,M=[0,0,0],g=[0,0,0],k=-1;k<=1;k+=2){v.push(l,l+2,l+1,l+1,l+2,l+3),M[h]=k,g[h]=k;for(var L=-1;L<=1;L+=2){M[d]=L;for(var u=-1;u<=1;u+=2)M[b]=u,f.push(M[0],M[1],M[2],g[0],g[1],g[2]),l+=1}var T=d;d=b,b=T}var C=r(x,new Float32Array(f)),_=r(x,new Uint16Array(v),x.ELEMENT_ARRAY_BUFFER),F=o(x,[{buffer:C,type:x.FLOAT,size:3,offset:0,stride:24},{buffer:C,type:x.FLOAT,size:3,offset:12,stride:24}],_),O=a(x);return O.attributes.position.location=0,O.attributes.normal.location=1,new s(x,C,F,O)}}),6429:(function(p,c,i){p.exports=k;var r=i(8828),o=i(6760),a=i(5202),s=i(3250),n=Array(16),m=Array(8),x=Array(8),f=[,,,],v=[0,0,0];(function(){for(var L=0;L<8;++L)m[L]=[1,1,1,1],x[L]=[1,1,1]})();function l(L,u,T){for(var C=0;C<4;++C){L[C]=T[12+C];for(var _=0;_<3;++_)L[C]+=u[_]*T[4*_+C]}}var h=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(L){for(var u=0;unt&&(U|=1<nt){U|=1<x[O][1])&&(ot=O);for(var rt=-1,O=0;O<3;++O){var X=ot^1<x[ut][0]&&(ut=X)}}var lt=b;lt[0]=lt[1]=lt[2]=0,lt[r.log2(rt^ot)]=ot&rt,lt[r.log2(ot^ut)]=ot&ut;var yt=ut^7;yt===U||yt===st?(yt=rt^7,lt[r.log2(ut^yt)]=yt&ut):lt[r.log2(rt^yt)]=yt&rt;for(var kt=M,Lt=U,V=0;V<3;++V)Lt&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ? + b - PI : + b; +} + +float look_horizontal_or_vertical(float a, float ratio) { + // ratio controls the ratio between being horizontal to (vertical + horizontal) + // if ratio is set to 0.5 then it is 50%, 50%. + // when using a higher ratio e.g. 0.75 the result would + // likely be more horizontal than vertical. + + float b = positive_angle(a); + + return + (b < ( ratio) * HALF_PI) ? 0.0 : + (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI : + (b < (2.0 + ratio) * HALF_PI) ? 0.0 : + (b < (4.0 - ratio) * HALF_PI) ? HALF_PI : + 0.0; +} + +float roundTo(float a, float b) { + return float(b * floor((a + 0.5 * b) / b)); +} + +float look_round_n_directions(float a, int n) { + float b = positive_angle(a); + float div = TWO_PI / float(n); + float c = roundTo(b, div); + return look_upwards(c); +} + +float applyAlignOption(float rawAngle, float delta) { + return + (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions + (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical + (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis + (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards + (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal + rawAngle; // otherwise return back raw input angle +} + +bool isAxisTitle = (axis.x == 0.0) && + (axis.y == 0.0) && + (axis.z == 0.0); + +void main() { + //Compute world offset + float axisDistance = position.z; + vec3 dataPosition = axisDistance * axis + offset; + + float beta = angle; // i.e. user defined attributes for each tick + + float axisAngle; + float clipAngle; + float flip; + + if (enableAlign) { + axisAngle = (isAxisTitle) ? HALF_PI : + computeViewAngle(dataPosition, dataPosition + axis); + clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir); + + axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0; + clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0; + + flip = (dot(vec2(cos(axisAngle), sin(axisAngle)), + vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0; + + beta += applyAlignOption(clipAngle, flip * PI); + } + + //Compute plane offset + vec2 planeCoord = position.xy * pixelScale; + + mat2 planeXform = scale * mat2( + cos(beta), sin(beta), + -sin(beta), cos(beta) + ); + + vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution; + + //Compute clip position + vec3 clipPosition = project(dataPosition); + + //Apply text offset in clip coordinates + clipPosition += vec3(viewOffset, 0.0); + + //Done + gl_Position = vec4(clipPosition, 1.0); +} +`]),m=r([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 color; +void main() { + gl_FragColor = color; +}`]);c.Q=function(v){return o(v,n,m,null,[{name:"position",type:"vec3"}])};var x=r([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec3 normal; + +uniform mat4 model, view, projection; +uniform vec3 enable; +uniform vec3 bounds[2]; + +varying vec3 colorChannel; + +void main() { + + vec3 signAxis = sign(bounds[1] - bounds[0]); + + vec3 realNormal = signAxis * normal; + + if(dot(realNormal, enable) > 0.0) { + vec3 minRange = min(bounds[0], bounds[1]); + vec3 maxRange = max(bounds[0], bounds[1]); + vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0)); + gl_Position = projection * (view * (model * vec4(nPosition, 1.0))); + } else { + gl_Position = vec4(0,0,0,0); + } + + colorChannel = abs(realNormal); +} +`]),f=r([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 colors[3]; + +varying vec3 colorChannel; + +void main() { + gl_FragColor = colorChannel.x * colors[0] + + colorChannel.y * colors[1] + + colorChannel.z * colors[2]; +}`]);c.bg=function(v){return o(v,x,f,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}}),4935:(function(p,c,i){p.exports=d;var r=i(2762),o=i(8116),a=i(4359),s=i(1879).Q,n=window||A.global||{},m=n.__TEXT_CACHE||{};n.__TEXT_CACHE={};var x=3;function f(b,M,g,k){this.gl=b,this.shader=M,this.buffer=g,this.vao=k,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var v=f.prototype,l=[0,0];v.bind=function(b,M,g,k){this.vao.bind(),this.shader.bind();var L=this.shader.uniforms;L.model=b,L.view=M,L.projection=g,L.pixelScale=k,l[0]=this.gl.drawingBufferWidth,l[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=l},v.unbind=function(){this.vao.unbind()},v.update=function(b,M,g,k,L){var u=[];function T(V,Y,K,nt,ft,ct){var J=[K.style,K.weight,K.variant,K.family].join("_"),et=m[J];et||(et=m[J]={});var Q=et[Y];Q||(Q=et[Y]=h(Y,{triangles:!0,font:K.family,fontStyle:K.style,fontWeight:K.weight,fontVariant:K.variant,textAlign:"center",textBaseline:"middle",lineSpacing:ft,styletags:ct}));for(var Z=(nt||12)/12,st=Q.positions,ot=Q.cells,rt=0,X=ot.length;rt=0;--lt){var yt=st[ut[lt]];u.push(Z*yt[0],-Z*yt[1],V)}}for(var C=[0,0,0],_=[0,0,0],F=[0,0,0],O=[0,0,0],j=1.25,B={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},U=0;U<3;++U){F[U]=u.length/x|0,T(.5*(b[0][U]+b[1][U]),M[U],g[U],12,j,B),O[U]=(u.length/x|0)-F[U],C[U]=u.length/x|0;for(var P=0;P=0&&(x=n.length-m-1);var f=10**x,v=Math.round(a*s*f),l=v+"";if(l.indexOf("e")>=0)return l;var h=v/f,d=v%f;v<0?(h=-Math.ceil(h)|0,d=-d|0):(h=Math.floor(h)|0,d|=0);var b=""+h;if(v<0&&(b="-"+b),x){for(var M=""+d;M.length=a[0][m];--f)x.push({x:f*s[m],text:i(s[m],f)});n.push(x)}return n}function o(a,s){for(var n=0;n<3;++n){if(a[n].length!==s[n].length)return!1;for(var m=0;mb)throw Error("gl-buffer: If resizing buffer, must not specify offset");return h.bufferSubData(d,k,g),b}function f(h,d){for(var b=r.malloc(h.length,d),M=h.length,g=0;g=0;--M){if(d[M]!==b)return!1;b*=h[M]}return!0}m.update=function(h,d){if(typeof d!="number"&&(d=-1),this.bind(),typeof h=="object"&&h.shape!==void 0){var b=h.dtype;if(s.indexOf(b)<0&&(b="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER&&(b=gl.getExtension("OES_element_index_uint")&&b!=="uint16"?"uint32":"uint16"),b===h.dtype&&v(h.shape,h.stride))h.offset===0&&h.data.length===h.shape[0]?this.length=x(this.gl,this.type,this.length,this.usage,h.data,d):this.length=x(this.gl,this.type,this.length,this.usage,h.data.subarray(h.offset,h.shape[0]),d);else{var M=r.malloc(h.size,b),g=a(M,h.shape);o.assign(g,h),d<0?this.length=x(this.gl,this.type,this.length,this.usage,M,d):this.length=x(this.gl,this.type,this.length,this.usage,M.subarray(0,h.size),d),r.free(M)}}else if(Array.isArray(h)){var k=this.type===this.gl.ELEMENT_ARRAY_BUFFER?f(h,"uint16"):f(h,"float32");d<0?this.length=x(this.gl,this.type,this.length,this.usage,k,d):this.length=x(this.gl,this.type,this.length,this.usage,k.subarray(0,h.length),d),r.free(k)}else if(typeof h=="object"&&typeof h.length=="number")this.length=x(this.gl,this.type,this.length,this.usage,h,d);else if(typeof h=="number"||h===void 0){if(d>=0)throw Error("gl-buffer: Cannot specify offset when resizing buffer");h|=0,h<=0&&(h=1),this.gl.bufferData(this.type,h|0,this.usage),this.length=h}else throw Error("gl-buffer: Invalid data type")};function l(h,d,b,M){if(b||(b=h.ARRAY_BUFFER),M||(M=h.DYNAMIC_DRAW),b!==h.ARRAY_BUFFER&&b!==h.ELEMENT_ARRAY_BUFFER)throw Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(M!==h.DYNAMIC_DRAW&&M!==h.STATIC_DRAW&&M!==h.STREAM_DRAW)throw Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var g=h.createBuffer(),k=new n(h,b,g,0,M);return k.update(d),k}p.exports=l}),6405:(function(p,c,i){var r=i(2931);p.exports=function(a,s){var n=a.positions,m=a.vectors,x={positions:[],vertexIntensity:[],vertexIntensityBounds:a.vertexIntensityBounds,vectors:[],cells:[],coneOffset:a.coneOffset,colormap:a.colormap};if(a.positions.length===0)return s&&(s[0]=[0,0,0],s[1]=[0,0,0]),x;for(var f=0,v=1/0,l=-1/0,h=1/0,d=-1/0,b=1/0,M=-1/0,g=null,k=null,L=[],u=1/0,T=!1,C=a.coneSizemode==="raw",_=0;_f&&(f=r.length(O)),_&&!C){var j=2*r.distance(g,F)/(r.length(k)+r.length(O));j?(u=Math.min(u,j),T=!1):T=!0}T||(g=F,k=O),L.push(O)}var B=[v,h,b],U=[l,d,M];s&&(s[0]=B,s[1]=U),f===0&&(f=1);var P=1/f;isFinite(u)||(u=1),x.vectorScale=u;var N=a.coneSize||(C?1:.5);a.absoluteConeSize&&(N=a.absoluteConeSize*P),x.coneScale=N;for(var _=0,V=0;_=1},h.isTransparent=function(){return this.opacity<1},h.pickSlots=1,h.setPickBase=function(L){this.pickId=L};function d(L){for(var u=f({colormap:L,nshades:256,format:"rgba"}),T=new Uint8Array(1024),C=0;C<256;++C){for(var _=u[C],F=0;F<3;++F)T[4*C+F]=_[F];T[4*C+3]=_[3]*255}return x(T,[256,256,4],[4,0,1])}function b(L){for(var u=L.length,T=Array(u),C=0;C0){var V=this.triShader;V.bind(),V.uniforms=j,this.triangleVAO.bind(),u.drawArrays(u.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},h.drawPick=function(L){L||(L={});for(var u=this.gl,T=L.model||v,C=L.view||v,_=L.projection||v,F=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)F[0][O]=Math.max(F[0][O],this.clipBounds[0][O]),F[1][O]=Math.min(F[1][O],this.clipBounds[1][O]);this._model=[].slice.call(T),this._view=[].slice.call(C),this._projection=[].slice.call(_),this._resolution=[u.drawingBufferWidth,u.drawingBufferHeight];var j={model:T,view:C,projection:_,clipBounds:F,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},B=this.pickShader;B.bind(),B.uniforms=j,this.triangleCount>0&&(this.triangleVAO.bind(),u.drawArrays(u.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},h.pick=function(L){if(!L||L.id!==this.pickId)return null;var u=L.value[0]+256*L.value[1]+65536*L.value[2],T=this.cells[u],C=this.positions[T[1]].slice(0,3),_={position:C,dataCoordinate:C,index:Math.floor(T[1]/48)};return this.traceType==="cone"?_.index=Math.floor(T[1]/48):this.traceType==="streamtube"&&(_.intensity=this.intensity[T[1]],_.velocity=this.vectors[T[1]].slice(0,3),_.divergence=this.vectors[T[1]][3],_.index=u),_},h.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function M(L,u){var T=r(L,u.meshShader.vertex,u.meshShader.fragment,null,u.meshShader.attributes);return T.attributes.position.location=0,T.attributes.color.location=2,T.attributes.uv.location=3,T.attributes.vector.location=4,T}function g(L,u){var T=r(L,u.pickShader.vertex,u.pickShader.fragment,null,u.pickShader.attributes);return T.attributes.position.location=0,T.attributes.id.location=1,T.attributes.vector.location=4,T}function k(L,u,T){var C=T.shaders;arguments.length===1&&(u=L,L=u.gl);var _=M(L,C),F=g(L,C),O=s(L,x(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=L.LINEAR_MIPMAP_LINEAR,O.magFilter=L.LINEAR;var j=o(L),B=o(L),U=o(L),P=o(L),N=o(L),V=a(L,[{buffer:j,type:L.FLOAT,size:4},{buffer:N,type:L.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:U,type:L.FLOAT,size:4},{buffer:P,type:L.FLOAT,size:2},{buffer:B,type:L.FLOAT,size:4}]),Y=new l(L,O,_,F,j,B,N,U,P,V,T.traceType||"cone");return Y.update(u),Y}p.exports=k}),614:(function(p,c,i){var r=i(3236),o=r([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec3 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, coneScale, coneOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * conePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(conePosition, 1.0); + vec4 t_position = view * conePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = conePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),a=r([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),s=r([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float vectorScale, coneScale, coneOffset; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + gl_Position = projection * (view * conePosition); + f_id = id; + f_position = position.xyz; +} +`]),n=r([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);c.meshShader={vertex:o,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},c.pickShader={vertex:s,fragment:n,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}}),737:(function(p){p.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}}),5171:(function(p,c,i){var r=i(737);p.exports=function(o){return r[o]}}),9165:(function(p,c,i){p.exports=l;var r=i(2762),o=i(8116),a=i(3436),s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function n(h,d,b,M){this.gl=h,this.shader=M,this.buffer=d,this.vao=b,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var m=n.prototype;m.isOpaque=function(){return!this.hasAlpha},m.isTransparent=function(){return this.hasAlpha},m.drawTransparent=m.draw=function(h){var d=this.gl,b=this.shader.uniforms;this.shader.bind();var M=b.view=h.view||s,g=b.projection=h.projection||s;b.model=h.model||s,b.clipBounds=this.clipBounds,b.opacity=this.opacity;var k=M[12],L=M[13],u=M[14],T=M[15],C=(h._ortho?2:1)*this.pixelRatio*(g[3]*k+g[7]*L+g[11]*u+g[15]*T)/d.drawingBufferHeight;this.vao.bind();for(var _=0;_<3;++_)d.lineWidth(this.lineWidth[_]*this.pixelRatio),b.capSize=this.capSize[_]*C,this.lineCount[_]&&d.drawArrays(d.LINES,this.lineOffset[_],this.lineCount[_]);this.vao.unbind()};function x(h,d){for(var b=0;b<3;++b)h[0][b]=Math.min(h[0][b],d[b]),h[1][b]=Math.max(h[1][b],d[b])}var f=(function(){for(var h=[,,,],d=0;d<3;++d){for(var b=[],M=1;M<=2;++M)for(var g=-1;g<=1;g+=2){var k=(M+d)%3,L=[0,0,0];L[k]=g,b.push(L)}h[d]=b}return h})();function v(h,d,b,M){for(var g=f[M],k=0;k0){var j=C.slice();j[u]+=F[1][u],g.push(C[0],C[1],C[2],O[0],O[1],O[2],O[3],0,0,0,j[0],j[1],j[2],O[0],O[1],O[2],O[3],0,0,0),x(this.bounds,j),L+=2+v(g,j,O,u)}}}this.lineCount[u]=L-this.lineOffset[u]}this.buffer.update(g)}},m.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function l(h){var d=h.gl,b=r(d),M=o(d,[{buffer:b,type:d.FLOAT,size:3,offset:0,stride:40},{buffer:b,type:d.FLOAT,size:4,offset:12,stride:40},{buffer:b,type:d.FLOAT,size:3,offset:28,stride:40}]),g=a(d);g.attributes.position.location=0,g.attributes.color.location=1,g.attributes.offset.location=2;var k=new n(d,b,M,g);return k.update(h),k}}),3436:(function(p,c,i){var r=i(3236),o=i(9405),a=r([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, offset; +attribute vec4 color; +uniform mat4 model, view, projection; +uniform float capSize; +varying vec4 fragColor; +varying vec3 fragPosition; + +void main() { + vec4 worldPosition = model * vec4(position, 1.0); + worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0); + gl_Position = projection * (view * worldPosition); + fragColor = color; + fragPosition = position; +}`]),s=r([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float opacity; +varying vec3 fragPosition; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], fragPosition) || + fragColor.a * opacity == 0. + ) discard; + + gl_FragColor = opacity * fragColor; +}`]);p.exports=function(n){return o(n,a,s,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}}),2260:(function(p,c,i){var r=i(7766);p.exports=L;var o=null,a,s,n,m;function x(u){return[u.getParameter(u.FRAMEBUFFER_BINDING),u.getParameter(u.RENDERBUFFER_BINDING),u.getParameter(u.TEXTURE_BINDING_2D)]}function f(u,T){u.bindFramebuffer(u.FRAMEBUFFER,T[0]),u.bindRenderbuffer(u.RENDERBUFFER,T[1]),u.bindTexture(u.TEXTURE_2D,T[2])}function v(u,T){var C=u.getParameter(T.MAX_COLOR_ATTACHMENTS_WEBGL);o=Array(C+1);for(var _=0;_<=C;++_){for(var F=Array(C),O=0;O<_;++O)F[O]=u.COLOR_ATTACHMENT0+O;for(var O=_;O1&&B.drawBuffersWEBGL(o[j]);var Y=C.getExtension("WEBGL_depth_texture");Y?U?u.depth=h(C,F,O,Y.UNSIGNED_INT_24_8_WEBGL,C.DEPTH_STENCIL,C.DEPTH_STENCIL_ATTACHMENT):P&&(u.depth=h(C,F,O,C.UNSIGNED_SHORT,C.DEPTH_COMPONENT,C.DEPTH_ATTACHMENT)):P&&U?u._depth_rb=d(C,F,O,C.DEPTH_STENCIL,C.DEPTH_STENCIL_ATTACHMENT):P?u._depth_rb=d(C,F,O,C.DEPTH_COMPONENT16,C.DEPTH_ATTACHMENT):U&&(u._depth_rb=d(C,F,O,C.STENCIL_INDEX,C.STENCIL_ATTACHMENT));var K=C.checkFramebufferStatus(C.FRAMEBUFFER);if(K!==C.FRAMEBUFFER_COMPLETE){u._destroyed=!0,C.bindFramebuffer(C.FRAMEBUFFER,null),C.deleteFramebuffer(u.handle),u.handle=null,u.depth&&(u.depth=(u.depth.dispose(),null)),u._depth_rb&&(u._depth_rb=(C.deleteRenderbuffer(u._depth_rb),null));for(var V=0;VF||C<0||C>F)throw Error("gl-fbo: Can't resize FBO, invalid dimensions");u._shape[0]=T,u._shape[1]=C;for(var O=x(_),j=0;jO||C<0||C>O)throw Error("gl-fbo: Parameters are too large for FBO");_||(_={});var j=1;if("color"in _){if(j=Math.max(_.color|0,0),j<0)throw Error("gl-fbo: Must specify a nonnegative number of colors");if(j>1)if(F){if(j>u.getParameter(F.MAX_COLOR_ATTACHMENTS_WEBGL))throw Error("gl-fbo: Context does not support "+j+" draw buffers")}else throw Error("gl-fbo: Multiple draw buffer extension not supported")}var B=u.UNSIGNED_BYTE,U=u.getExtension("OES_texture_float");if(_.float&&j>0){if(!U)throw Error("gl-fbo: Context does not support floating point textures");B=u.FLOAT}else _.preferFloat&&j>0&&U&&(B=u.FLOAT);var P=!0;"depth"in _&&(P=!!_.depth);var N=!1;return"stencil"in _&&(N=!!_.stencil),new M(u,T,C,B,j,P,N,F)}}),2992:(function(p,c,i){var r=i(3387).sprintf,o=i(5171),a=i(1848),s=i(1085);p.exports=n;function n(m,x,f){var v=a(x)||"of unknown name (see npm glsl-shader-name)",l="unknown type";f!==void 0&&(l=f===o.FRAGMENT_SHADER?"fragment":"vertex");for(var h=r(`Error compiling %s shader %s: +`,l,v),d=r("%s%s",h,m),b=m.split(` +`),M={},g=0;g>j*8&255;this.pickOffset=b,g.bind();var B=g.uniforms;B.viewTransform=h,B.pickOffset=d,B.shape=this.shape;var U=g.attributes;return this.positionBuffer.bind(),U.position.pointer(),this.weightBuffer.bind(),U.weight.pointer(u.UNSIGNED_BYTE,!1),this.idBuffer.bind(),U.pickId.pointer(u.UNSIGNED_BYTE,!1),u.drawArrays(u.TRIANGLES,0,L),b+this.shape[0]*this.shape[1]}}})(),f.pick=function(h,d,b){var M=this.pickOffset,g=this.shape[0]*this.shape[1];if(b=M+g)return null;var k=b-M,L=this.xData,u=this.yData;return{object:this,pointId:k,dataCoord:[L[k%this.shape[0]],u[k/this.shape[0]|0]]}},f.update=function(h){h||(h={});var d=h.shape||[0,0],b=h.x||o(d[0]),M=h.y||o(d[1]),g=h.z||new Float32Array(d[0]*d[1]),k=h.zsmooth!==!1;this.xData=b,this.yData=M;var L=h.colorLevels||[0],u=h.colorValues||[0,0,0,1],T=L.length,C=this.bounds,_,F,O,j;k?(_=C[0]=b[0],F=C[1]=M[0],O=C[2]=b[b.length-1],j=C[3]=M[M.length-1]):(_=C[0]=b[0]+(b[1]-b[0])/2,F=C[1]=M[0]+(M[1]-M[0])/2,O=C[2]=b[b.length-1]+(b[b.length-1]-b[b.length-2])/2,j=C[3]=M[M.length-1]+(M[M.length-1]-M[M.length-2])/2);var B=1/(O-_),U=1/(j-F),P=d[0],N=d[1];this.shape=[P,N];var V=(k?(P-1)*(N-1):P*N)*(v.length>>>1);this.numVertices=V;for(var Y=a.mallocUint8(V*4),K=a.mallocFloat32(V*2),nt=a.mallocUint8(V*2),ft=a.mallocUint32(V),ct=0,J=k?P-1:P,et=k?N-1:N,Q=0;Q max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D dashTexture; +uniform float dashScale; +uniform float opacity; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], worldPosition) || + fragColor.a * opacity == 0. + ) discard; + + float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r; + if(dashWeight < 0.5) { + discard; + } + gl_FragColor = fragColor * opacity; +} +`]),n=r([`precision highp float; +#define GLSLIFY 1 + +#define FLOAT_MAX 1.70141184e38 +#define FLOAT_MIN 1.17549435e-38 + +// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl +vec4 packFloat(float v) { + float av = abs(v); + + //Handle special cases + if(av < FLOAT_MIN) { + return vec4(0.0, 0.0, 0.0, 0.0); + } else if(v > FLOAT_MAX) { + return vec4(127.0, 128.0, 0.0, 0.0) / 255.0; + } else if(v < -FLOAT_MAX) { + return vec4(255.0, 128.0, 0.0, 0.0) / 255.0; + } + + vec4 c = vec4(0,0,0,0); + + //Compute exponent and mantissa + float e = floor(log2(av)); + float m = av * pow(2.0, -e) - 1.0; + + //Unpack mantissa + c[1] = floor(128.0 * m); + m -= c[1] / 128.0; + c[2] = floor(32768.0 * m); + m -= c[2] / 32768.0; + c[3] = floor(8388608.0 * m); + + //Unpack exponent + float ebias = e + 127.0; + c[0] = floor(ebias / 2.0); + ebias -= c[0] * 2.0; + c[1] += floor(ebias) * 128.0; + + //Unpack sign bit + c[0] += 128.0 * step(0.0, -v); + + //Scale back to range + return c / 255.0; +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform float pickId; +uniform vec3 clipBounds[2]; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; + + gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); +}`]),m=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];c.createShader=function(x){return o(x,a,s,null,m)},c.createPickShader=function(x){return o(x,a,n,null,m)}}),5714:(function(p,c,i){p.exports=u;var r=i(2762),o=i(8116),a=i(7766),s=new Uint8Array(4),n=new Float32Array(s.buffer);function m(T,C,_,F){return s[0]=F,s[1]=_,s[2]=C,s[3]=T,n[0]}var x=i(2478),f=i(9618),v=i(7319),l=v.createShader,h=v.createPickShader,d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function b(T,C){for(var _=0,F=0;F<3;++F){var O=T[F]-C[F];_+=O*O}return Math.sqrt(_)}function M(T){for(var C=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],_=0;_<3;++_)C[0][_]=Math.max(T[0][_],C[0][_]),C[1][_]=Math.min(T[1][_],C[1][_]);return C}function g(T,C,_,F){this.arcLength=T,this.position=C,this.index=_,this.dataCoordinate=F}function k(T,C,_,F,O,j){this.gl=T,this.shader=C,this.pickShader=_,this.buffer=F,this.vao=O,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=j,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var L=k.prototype;L.isTransparent=function(){return this.hasAlpha},L.isOpaque=function(){return!this.hasAlpha},L.pickSlots=1,L.setPickBase=function(T){this.pickId=T},L.drawTransparent=L.draw=function(T){if(this.vertexCount){var C=this.gl,_=this.shader,F=this.vao;_.bind(),_.uniforms={model:T.model||d,view:T.view||d,projection:T.projection||d,clipBounds:M(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[C.drawingBufferWidth,C.drawingBufferHeight],pixelRatio:this.pixelRatio},F.bind(),F.draw(C.TRIANGLE_STRIP,this.vertexCount),F.unbind()}},L.drawPick=function(T){if(this.vertexCount){var C=this.gl,_=this.pickShader,F=this.vao;_.bind(),_.uniforms={model:T.model||d,view:T.view||d,projection:T.projection||d,pickId:this.pickId,clipBounds:M(this.clipBounds),screenShape:[C.drawingBufferWidth,C.drawingBufferHeight],pixelRatio:this.pixelRatio},F.bind(),F.draw(C.TRIANGLE_STRIP,this.vertexCount),F.unbind()}},L.update=function(T){var C,_;this.dirty=!0;var F=!!T.connectGaps;"dashScale"in T&&(this.dashScale=T.dashScale),this.hasAlpha=!1,"opacity"in T&&(this.opacity=+T.opacity,this.opacity<1&&(this.hasAlpha=!0));var O=[],j=[],B=[],U=0,P=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],V=T.position||T.positions;if(V){var Y=T.color||T.colors||[0,0,0,1],K=T.lineWidth||1,nt=!1;t:for(C=1;C0){for(var J=0;J<24;++J)O.push(O[O.length-12]);P+=2,nt=!0}continue t}N[0][_]=Math.min(N[0][_],ft[_],ct[_]),N[1][_]=Math.max(N[1][_],ft[_],ct[_])}var et,Q;Array.isArray(Y[0])?(et=Y.length>C-1?Y[C-1]:Y.length>0?Y[Y.length-1]:[0,0,0,1],Q=Y.length>C?Y[C]:Y.length>0?Y[Y.length-1]:[0,0,0,1]):et=Q=Y,et.length===3&&(et=[et[0],et[1],et[2],1]),Q.length===3&&(Q=[Q[0],Q[1],Q[2],1]),!this.hasAlpha&&et[3]<1&&(this.hasAlpha=!0);var Z=Array.isArray(K)?K.length>C-1?K[C-1]:K.length>0?K[K.length-1]:[0,0,0,1]:K,st=U;if(U+=b(ft,ct),nt){for(_=0;_<2;++_)O.push(ft[0],ft[1],ft[2],ct[0],ct[1],ct[2],st,Z,et[0],et[1],et[2],et[3]);P+=2,nt=!1}O.push(ft[0],ft[1],ft[2],ct[0],ct[1],ct[2],st,Z,et[0],et[1],et[2],et[3],ft[0],ft[1],ft[2],ct[0],ct[1],ct[2],st,-Z,et[0],et[1],et[2],et[3],ct[0],ct[1],ct[2],ft[0],ft[1],ft[2],U,-Z,Q[0],Q[1],Q[2],Q[3],ct[0],ct[1],ct[2],ft[0],ft[1],ft[2],U,Z,Q[0],Q[1],Q[2],Q[3]),P+=4}}if(this.buffer.update(O),j.push(U),B.push(V[V.length-1].slice()),this.bounds=N,this.vertexCount=P,this.points=B,this.arcLength=j,"dashes"in T){var ot=T.dashes.slice();for(ot.unshift(0),C=1;C1.0001)return null;_+=C[g]}return Math.abs(_-1)>.001?null:[k,m(f,C),C]}}),840:(function(p,c,i){var r=i(3236),o=r([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, normal; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model + , view + , projection + , inverseModel; +uniform vec3 eyePosition + , lightPosition; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +vec4 project(vec3 p) { + return projection * (view * (model * vec4(p, 1.0))); +} + +void main() { + gl_Position = project(position); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * vec4(position , 1.0); + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + f_color = color; + f_data = position; + f_uv = uv; +} +`]),a=r([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness + , fresnel + , kambient + , kdiffuse + , kspecular; +uniform sampler2D texture; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (f_color.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], f_data) + ) discard; + + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d + + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * f_color.a; +} +`]),s=r([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model, view, projection; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_color = color; + f_data = position; + f_uv = uv; +}`]),n=r([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard; + + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),m=r([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; +attribute float pointSize; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + } + gl_PointSize = pointSize; + f_color = color; + f_uv = uv; +}`]),x=r([`precision highp float; +#define GLSLIFY 1 + +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5); + if(dot(pointR, pointR) > 0.25) { + discard; + } + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),f=r([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 id; + +uniform mat4 model, view, projection; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_id = id; + f_position = position; +}`]),v=r([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]),l=r([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute float pointSize; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0, 0.0, 0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + gl_PointSize = pointSize; + } + f_id = id; + f_position = position; +}`]),h=r([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; + +uniform mat4 model, view, projection; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); +}`]),d=r([`precision highp float; +#define GLSLIFY 1 + +uniform vec3 contourColor; + +void main() { + gl_FragColor = vec4(contourColor, 1.0); +} +`]);c.meshShader={vertex:o,fragment:a,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},c.wireShader={vertex:s,fragment:n,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},c.pointShader={vertex:m,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},c.pickShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},c.pointPickShader={vertex:l,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},c.contourShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"}]}}),7201:(function(p,c,i){var r=1e-6,o=1e-6,a=i(9405),s=i(2762),n=i(8116),m=i(7766),x=i(8406),f=i(6760),v=i(7608),l=i(9618),h=i(6729),d=i(7765),b=i(1888),M=i(840),g=i(7626),k=M.meshShader,L=M.wireShader,u=M.pointShader,T=M.pickShader,C=M.pointPickShader,_=M.contourShader,F=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function O(J,et,Q,Z,st,ot,rt,X,ut,lt,yt,kt,Lt,St,Ot,Ht,Kt,Gt,Et,At,qt,jt,de,Xt,ye,Le,ve){this.gl=J,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=et,this.dirty=!0,this.triShader=Q,this.lineShader=Z,this.pointShader=st,this.pickShader=ot,this.pointPickShader=rt,this.contourShader=X,this.trianglePositions=ut,this.triangleColors=yt,this.triangleNormals=Lt,this.triangleUVs=kt,this.triangleIds=lt,this.triangleVAO=St,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Ot,this.edgeColors=Kt,this.edgeUVs=Gt,this.edgeIds=Ht,this.edgeVAO=Et,this.edgeCount=0,this.pointPositions=At,this.pointColors=jt,this.pointUVs=de,this.pointSizes=Xt,this.pointIds=qt,this.pointVAO=ye,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Le,this.contourVAO=ve,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=F,this._view=F,this._projection=F,this._resolution=[1,1]}var j=O.prototype;j.isOpaque=function(){return!this.hasAlpha},j.isTransparent=function(){return this.hasAlpha},j.pickSlots=1,j.setPickBase=function(J){this.pickId=J};function B(J,et){if(!et||!et.length)return 1;for(var Q=0;QJ&&Q>0){var Z=(et[Q][0]-J)/(et[Q][0]-et[Q-1][0]);return et[Q][1]*(1-Z)+Z*et[Q-1][1]}}return 1}function U(J,et){for(var Q=h({colormap:J,nshades:256,format:"rgba"}),Z=new Uint8Array(1024),st=0;st<256;++st){for(var ot=Q[st],rt=0;rt<3;++rt)Z[4*st+rt]=ot[rt];et?Z[4*st+3]=255*B(st/255,et):Z[4*st+3]=255*ot[3]}return l(Z,[256,256,4],[4,0,1])}function P(J){for(var et=J.length,Q=Array(et),Z=0;Z0){var Lt=this.triShader;Lt.bind(),Lt.uniforms=X,this.triangleVAO.bind(),et.drawArrays(et.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Lt=this.lineShader;Lt.bind(),Lt.uniforms=X,this.edgeVAO.bind(),et.lineWidth(this.lineWidth*this.pixelRatio),et.drawArrays(et.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Lt=this.pointShader;Lt.bind(),Lt.uniforms=X,this.pointVAO.bind(),et.drawArrays(et.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Lt=this.contourShader;Lt.bind(),Lt.uniforms=X,this.contourVAO.bind(),et.drawArrays(et.LINES,0,this.contourCount),this.contourVAO.unbind()}},j.drawPick=function(J){J||(J={});for(var et=this.gl,Q=J.model||F,Z=J.view||F,st=J.projection||F,ot=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],rt=0;rt<3;++rt)ot[0][rt]=Math.max(ot[0][rt],this.clipBounds[0][rt]),ot[1][rt]=Math.min(ot[1][rt],this.clipBounds[1][rt]);this._model=[].slice.call(Q),this._view=[].slice.call(Z),this._projection=[].slice.call(st),this._resolution=[et.drawingBufferWidth,et.drawingBufferHeight];var X={model:Q,view:Z,projection:st,clipBounds:ot,pickId:this.pickId/255},ut=this.pickShader;if(ut.bind(),ut.uniforms=X,this.triangleCount>0&&(this.triangleVAO.bind(),et.drawArrays(et.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),et.lineWidth(this.lineWidth*this.pixelRatio),et.drawArrays(et.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var ut=this.pointPickShader;ut.bind(),ut.uniforms=X,this.pointVAO.bind(),et.drawArrays(et.POINTS,0,this.pointCount),this.pointVAO.unbind()}},j.pick=function(J){if(!J||J.id!==this.pickId)return null;for(var et=J.value[0]+256*J.value[1]+65536*J.value[2],Q=this.cells[et],Z=this.positions,st=Array(Q.length),ot=0;otk[nt]&&(M.uniforms.dataAxis=v,M.uniforms.screenOffset=l,M.uniforms.color=j[d],M.uniforms.angle=B[d],L.drawArrays(L.TRIANGLES,k[nt],k[ft]-k[nt]))),U[d]&&K&&(l[d^1]-=ct*_*P[d],M.uniforms.dataAxis=h,M.uniforms.screenOffset=l,M.uniforms.color=N[d],M.uniforms.angle=V[d],L.drawArrays(L.TRIANGLES,Y,K)),l[d^1]=ct*u[2+(d^1)]-1,F[d+2]&&(l[d^1]+=ct*_*O[d+2],ntk[nt]&&(M.uniforms.dataAxis=v,M.uniforms.screenOffset=l,M.uniforms.color=j[d+2],M.uniforms.angle=B[d+2],L.drawArrays(L.TRIANGLES,k[nt],k[ft]-k[nt]))),U[d+2]&&K&&(l[d^1]+=ct*_*P[d+2],M.uniforms.dataAxis=h,M.uniforms.screenOffset=l,M.uniforms.color=N[d+2],M.uniforms.angle=V[d+2],L.drawArrays(L.TRIANGLES,Y,K))}})(),x.drawTitle=(function(){var v=[0,0],l=[0,0];return function(){var h=this.plot,d=this.shader,b=h.gl,M=h.screenBox,g=h.titleCenter,k=h.titleAngle,L=h.titleColor,u=h.pixelRatio;if(this.titleCount){for(var T=0;T<2;++T)l[T]=2*(g[T]*u-M[T])/(M[2+T]-M[T])-1;d.bind(),d.uniforms.dataAxis=v,d.uniforms.screenOffset=l,d.uniforms.angle=k,d.uniforms.color=L,b.drawArrays(b.TRIANGLES,this.titleOffset,this.titleCount)}}})(),x.bind=(function(){var v=[0,0],l=[0,0],h=[0,0];return function(){var d=this.plot,b=this.shader,M=d._tickBounds,g=d.dataBox,k=d.screenBox,L=d.viewBox;b.bind();for(var u=0;u<2;++u){var T=M[u],C=M[u+2]-T,_=.5*(g[u+2]+g[u]),F=g[u+2]-g[u],O=L[u],j=L[u+2]-O,B=k[u],U=k[u+2]-B;l[u]=2*C/F*j/U,v[u]=2*(T-_)/F*j/U}h[1]=2*d.pixelRatio/(k[3]-k[1]),h[0]=h[1]*(k[3]-k[1])/(k[2]-k[0]),b.uniforms.dataScale=l,b.uniforms.dataShift=v,b.uniforms.textScale=h,this.vbo.bind(),b.attributes.textCoordinate.pointer()}})(),x.update=function(v){var l=[],h=v.ticks,d=v.bounds,b,M,g,k,L;for(L=0;L<2;++L){var u=[Math.floor(l.length/3)],T=[-1/0],C=h[L];for(b=0;b=0))){var U=d[B]-M[B]*(d[B+2]-d[B])/(M[B+2]-M[B]);B===0?L.drawLine(U,d[1],U,d[3],j[B],O[B]):L.drawLine(d[0],U,d[2],U,j[B],O[B])}}for(var B=0;B=0;--h)this.objects[h].dispose();this.objects.length=0;for(var h=this.overlays.length-1;h>=0;--h)this.overlays[h].dispose();this.overlays.length=0,this.gl=null},x.addObject=function(h){this.objects.indexOf(h)<0&&(this.objects.push(h),this.setDirty())},x.removeObject=function(h){for(var d=this.objects,b=0;bMath.abs(T))h.rotate(F,0,0,-u*C*Math.PI*k.rotateSpeed/window.innerWidth);else if(!k._ortho){var O=-k.zoomSpeed*_*T/window.innerHeight*(F-h.lastT())/20;h.pan(F,0,0,b*(Math.exp(O)-1))}}},!0)},k.enableMouseListeners(),k}}),799:(function(p,c,i){var r=i(3236),o=i(9405),a=r([`precision mediump float; +#define GLSLIFY 1 +attribute vec2 position; +varying vec2 uv; +void main() { + uv = position; + gl_Position = vec4(position, 0, 1); +}`]),s=r([`precision mediump float; +#define GLSLIFY 1 + +uniform sampler2D accumBuffer; +varying vec2 uv; + +void main() { + vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); + gl_FragColor = min(vec4(1,1,1,1), accum); +}`]);p.exports=function(n){return o(n,a,s,null,[{name:"position",type:"vec2"}])}}),4100:(function(p,c,i){var r=i(4437),o=i(3837),a=i(5445),s=i(4449),n=i(3589),m=i(2260),x=i(7169),f=i(351),v=i(4772),l=i(4040),h=i(799),d=i(9216)({tablet:!0,featureDetect:!0});p.exports={createScene:L,createCamera:r};function b(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function M(T,C){var _=null;try{_=T.getContext("webgl",C),_||(_=T.getContext("experimental-webgl",C))}catch{return null}return _}function g(T){var C=Math.round(Math.log(Math.abs(T))/Math.log(10));if(C<0){var _=Math.round(10**-C);return Math.ceil(T*_)/_}else if(C>0){var _=Math.round(10**C);return Math.ceil(T/_)*_}return Math.ceil(T)}function k(T){return typeof T=="boolean"?T:!0}function L(T){T||(T={}),T.camera=T.camera||{};var C=T.canvas;C||(C=document.createElement("canvas"),T.container?T.container.appendChild(C):document.body.appendChild(C));var _=T.gl;if(_||(_=(T.glOptions&&(d=!!T.glOptions.preserveDrawingBuffer),M(C,T.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}))),!_)throw Error("webgl not supported");var F=T.bounds||[[-10,-10,-10],[10,10,10]],O=new b,j=m(_,_.drawingBufferWidth,_.drawingBufferHeight,{preferFloat:!d}),B=h(_),U=T.cameraObject&&T.cameraObject._ortho===!0||T.camera.projection&&T.camera.projection.type==="orthographic"||!1,P={eye:T.camera.eye||[2,0,0],center:T.camera.center||[0,0,0],up:T.camera.up||[0,1,0],zoomMin:T.camera.zoomMax||.1,zoomMax:T.camera.zoomMin||100,mode:T.camera.mode||"turntable",_ortho:U},N=T.axes||{},V=o(_,N);V.enable=!N.disable;var Y=T.spikes||{},K=s(_,Y),nt=[],ft=[],ct=[],J=[],et=!0,Z=!0,Q={view:null,projection:Array(16),model:Array(16),_ortho:!1},Z=!0,st=[_.drawingBufferWidth,_.drawingBufferHeight],ot=T.cameraObject||r(C,P),rt={gl:_,contextLost:!1,pixelRatio:T.pixelRatio||1,canvas:C,selection:O,camera:ot,axes:V,axesPixels:null,spikes:K,bounds:F,objects:nt,shape:st,aspect:T.aspectRatio||[1,1,1],pickRadius:T.pickRadius||10,zNear:T.zNear||.01,zFar:T.zFar||1e3,fovy:T.fovy||Math.PI/4,clearColor:T.clearColor||[0,0,0,0],autoResize:k(T.autoResize),autoBounds:k(T.autoBounds),autoScale:!!T.autoScale,autoCenter:k(T.autoCenter),clipToBounds:k(T.clipToBounds),snapToData:!!T.snapToData,onselect:T.onselect||null,onrender:T.onrender||null,onclick:T.onclick||null,cameraParams:Q,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Kt){this.aspect[0]=Kt.x,this.aspect[1]=Kt.y,this.aspect[2]=Kt.z,Z=!0},setBounds:function(Kt,Gt){this.bounds[0][Kt]=Gt.min,this.bounds[1][Kt]=Gt.max},setClearColor:function(Kt){this.clearColor=Kt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},X=[_.drawingBufferWidth/rt.pixelRatio|0,_.drawingBufferHeight/rt.pixelRatio|0];function ut(){if(!rt._stopped&&rt.autoResize){var Kt=C.parentNode,Gt=1,Et=1;Kt&&Kt!==document.body?(Gt=Kt.clientWidth,Et=Kt.clientHeight):(Gt=window.innerWidth,Et=window.innerHeight);var At=Math.ceil(Gt*rt.pixelRatio)|0,qt=Math.ceil(Et*rt.pixelRatio)|0;if(At!==C.width||qt!==C.height){C.width=At,C.height=qt;var jt=C.style;jt.position=jt.position||"absolute",jt.left="0px",jt.top="0px",jt.width=Gt+"px",jt.height=Et+"px",et=!0}}}rt.autoResize&&ut(),window.addEventListener("resize",ut);function lt(){for(var Kt=nt.length,Gt=J.length,Et=0;Et0&&ct[Gt-1]===0;)ct.pop(),J.pop().dispose()}rt.update=function(Kt){rt._stopped||(Kt||(Kt={}),et=!0,Z=!0)},rt.add=function(Kt){rt._stopped||(Kt.axes=V,nt.push(Kt),ft.push(-1),et=!0,Z=!0,lt())},rt.remove=function(Kt){if(!rt._stopped){var Gt=nt.indexOf(Kt);Gt<0||(nt.splice(Gt,1),ft.pop(),et=!0,Z=!0,lt())}},rt.dispose=function(){if(!rt._stopped&&(rt._stopped=!0,window.removeEventListener("resize",ut),C.removeEventListener("webglcontextlost",yt),rt.mouseListener.enabled=!1,!rt.contextLost)){V.dispose(),K.dispose();for(var Kt=0;KtO.distance)continue;for(var Le=0;Le 1.0) { + discard; + } + baseColor = mix(borderColor, color, step(radius, centerFraction)); + gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a); + } +} +`]),c.pickVertex=r([`precision mediump float; +#define GLSLIFY 1 + +attribute vec2 position; +attribute vec4 pickId; + +uniform mat3 matrix; +uniform float pointSize; +uniform vec4 pickOffset; + +varying vec4 fragId; + +void main() { + vec3 hgPosition = matrix * vec3(position, 1); + gl_Position = vec4(hgPosition.xy, 0, hgPosition.z); + gl_PointSize = pointSize; + + vec4 id = pickId + pickOffset; + id.y += floor(id.x / 256.0); + id.x -= floor(id.x / 256.0) * 256.0; + + id.z += floor(id.y / 256.0); + id.y -= floor(id.y / 256.0) * 256.0; + + id.w += floor(id.z / 256.0); + id.z -= floor(id.z / 256.0) * 256.0; + + fragId = id; +} +`]),c.pickFragment=r([`precision mediump float; +#define GLSLIFY 1 + +varying vec4 fragId; + +void main() { + float radius = length(2.0 * gl_PointCoord.xy - 1.0); + if(radius > 1.0) { + discard; + } + gl_FragColor = fragId / 255.0; +} +`])}),4696:(function(p,c,i){var r=i(9405),o=i(2762),a=i(1888),s=i(6640);p.exports=f;function n(v,l,h,d,b){this.plot=v,this.offsetBuffer=l,this.pickBuffer=h,this.shader=d,this.pickShader=b,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}var m=n.prototype;m.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},m.update=function(v){var l;v||(v={});function h(u,T){return u in v?v[u]:T}this.sizeMin=h("sizeMin",.5),this.sizeMax=h("sizeMax",20),this.color=h("color",[1,0,0,1]).slice(),this.areaRatio=h("areaRatio",1),this.borderColor=h("borderColor",[0,0,0,1]).slice(),this.blend=h("blend",!1);var d=v.positions.length>>>1,b=v.positions instanceof Float32Array,M=v.idToIndex instanceof Int32Array&&v.idToIndex.length>=d,g=v.positions,k=b?g:a.mallocFloat32(g.length),L=M?v.idToIndex:a.mallocInt32(d);if(b||k.set(g),!M)for(k.set(g),l=0;l>>1,b;for(b=0;b=l[0]&&M<=l[2]&&g>=l[1]&&g<=l[3]&&h++}return h}m.unifiedDraw=(function(){var v=[1,0,0,0,1,0,0,0,1],l=[0,0,0,0];return function(h){var d=h!==void 0,b=d?this.pickShader:this.shader,M=this.plot.gl,g=this.plot.dataBox;if(this.pointCount===0)return h;var k=g[2]-g[0],L=g[3]-g[1],u=x(this.points,g),T=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/u**.33333));v[0]=2/k,v[4]=2/L,v[6]=-2*g[0]/k-1,v[7]=-2*g[1]/L-1,this.offsetBuffer.bind(),b.bind(),b.attributes.position.pointer(),b.uniforms.matrix=v,b.uniforms.color=this.color,b.uniforms.borderColor=this.borderColor,b.uniforms.pointCloud=T<5,b.uniforms.pointSize=T,b.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),d&&(l[0]=h&255,l[1]=h>>8&255,l[2]=h>>16&255,l[3]=h>>24&255,this.pickBuffer.bind(),b.attributes.pickId.pointer(M.UNSIGNED_BYTE),b.uniforms.pickOffset=l,this.pickOffset=h);var C=M.getParameter(M.BLEND),_=M.getParameter(M.DITHER);return C&&!this.blend&&M.disable(M.BLEND),_&&M.disable(M.DITHER),M.drawArrays(M.POINTS,0,this.pointCount),C&&!this.blend&&M.enable(M.BLEND),_&&M.enable(M.DITHER),h+this.pointCount}})(),m.draw=m.unifiedDraw,m.drawPick=m.unifiedDraw,m.pick=function(v,l,h){var d=this.pickOffset,b=this.pointCount;if(h=d+b)return null;var M=h-d,g=this.points;return{object:this,pointId:M,dataCoord:[g[2*M],g[2*M+1]]}};function f(v,l){var h=v.gl,d=new n(v,o(h),o(h),r(h,s.pointVertex,s.pointFragment),r(h,s.pickVertex,s.pickFragment));return d.update(l),v.addObject(d),d}}),783:(function(p){p.exports=c;function c(i,r,o,a){var s=r[0],n=r[1],m=r[2],x=r[3],f=o[0],v=o[1],l=o[2],h=o[3],d,b=s*f+n*v+m*l+x*h,M,g,k;return b<0&&(b=-b,f=-f,v=-v,l=-l,h=-h),1-b>1e-6?(d=Math.acos(b),M=Math.sin(d),g=Math.sin((1-a)*d)/M,k=Math.sin(a*d)/M):(g=1-a,k=a),i[0]=g*s+k*f,i[1]=g*n+k*v,i[2]=g*m+k*l,i[3]=g*x+k*h,i}}),5964:(function(p){p.exports=function(c){return!c&&c!==0?"":c.toString()}}),9366:(function(p,c,i){var r=i(4359);p.exports=a;var o={};function a(s,n,m){var x=[n.style,n.weight,n.variant,n.family].join("_"),f=o[x];if(f||(f=o[x]={}),s in f)return f[s];var v={textAlign:"center",textBaseline:"middle",lineHeight:1,font:n.family,fontStyle:n.style,fontWeight:n.weight,fontVariant:n.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};v.triangles=!0;var l=r(s,v);v.triangles=!1;var h=r(s,v),d,b;if(m&&m!==1){for(d=0;d max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform vec4 highlightId; +uniform float highlightScale; +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = 1.0; + if(distance(highlightId, id) < 0.0001) { + scale = highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1); + vec4 viewPosition = view * worldPosition; + viewPosition = viewPosition / viewPosition.w; + vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0)); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),s=o([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float highlightScale, pixelRatio; +uniform vec4 highlightId; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = pixelRatio; + if(distance(highlightId.bgr, id.bgr) < 0.001) { + scale *= highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1.0); + vec4 viewPosition = view * worldPosition; + vec4 clipPosition = projection * viewPosition; + clipPosition /= clipPosition.w; + + gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0); + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),n=o([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform float highlightScale; +uniform vec4 highlightId; +uniform vec3 axes[2]; +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float scale, pixelRatio; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float lscale = pixelRatio * scale; + if(distance(highlightId, id) < 0.0001) { + lscale *= highlightScale; + } + + vec4 clipCenter = projection * (view * (model * vec4(position, 1))); + vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y; + vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1))); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = dataPosition; + } +} +`]),m=o([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float opacity; + +varying vec4 interpColor; +varying vec3 dataCoordinate; + +void main() { + if ( + outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) || + interpColor.a * opacity == 0. + ) discard; + gl_FragColor = interpColor * opacity; +} +`]),x=o([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float pickGroup; + +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard; + + gl_FragColor = vec4(pickGroup, pickId.bgr); +}`]),f=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],v={vertex:a,fragment:m,attributes:f},l={vertex:s,fragment:m,attributes:f},h={vertex:n,fragment:m,attributes:f},d={vertex:a,fragment:x,attributes:f},b={vertex:s,fragment:x,attributes:f},M={vertex:n,fragment:x,attributes:f};function g(k,L){var u=r(k,L),T=u.attributes;return T.position.location=0,T.color.location=1,T.glyph.location=2,T.id.location=3,u}c.createPerspective=function(k){return g(k,v)},c.createOrtho=function(k){return g(k,l)},c.createProject=function(k){return g(k,h)},c.createPickPerspective=function(k){return g(k,d)},c.createPickOrtho=function(k){return g(k,b)},c.createPickProject=function(k){return g(k,M)}}),8418:(function(p,c,i){var r=i(5219),o=i(2762),a=i(8116),s=i(1888),n=i(6760),m=i(1283),x=i(9366),f=i(5964),v=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],l=ArrayBuffer,h=DataView;function d(Q){return l.isView(Q)&&!(Q instanceof h)}function b(Q){return Array.isArray(Q)||d(Q)}p.exports=et;function M(Q,Z){var st=Q[0],ot=Q[1],rt=Q[2],X=Q[3];return Q[0]=Z[0]*st+Z[4]*ot+Z[8]*rt+Z[12]*X,Q[1]=Z[1]*st+Z[5]*ot+Z[9]*rt+Z[13]*X,Q[2]=Z[2]*st+Z[6]*ot+Z[10]*rt+Z[14]*X,Q[3]=Z[3]*st+Z[7]*ot+Z[11]*rt+Z[15]*X,Q}function g(Q,Z,st,ot){return M(ot,ot,st),M(ot,ot,Z),M(ot,ot,Q)}function k(Q,Z){this.index=Q,this.dataCoordinate=this.position=Z}function L(Q){return Q===!0||Q>1?1:Q}function u(Q,Z,st,ot,rt,X,ut,lt,yt,kt,Lt,St){this.gl=Q,this.pixelRatio=1,this.shader=Z,this.orthoShader=st,this.projectShader=ot,this.pointBuffer=rt,this.colorBuffer=X,this.glyphBuffer=ut,this.idBuffer=lt,this.vao=yt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=kt,this.pickOrthoShader=Lt,this.pickProjectShader=St,this.points=[],this._selectResult=new k(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var T=u.prototype;T.pickSlots=1,T.setPickBase=function(Q){this.pickId=Q},T.isTransparent=function(){if(this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&this.projectHasAlpha)return!0;return!1},T.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&!this.projectHasAlpha)return!0;return!1};var C=[0,0],_=[0,0,0],F=[0,0,0],O=[0,0,0,1],j=[0,0,0,1],B=v.slice(),U=[0,0,0],P=[[0,0,0],[0,0,0]];function N(Q){return Q[0]=Q[1]=Q[2]=0,Q}function V(Q,Z){return Q[0]=Z[0],Q[1]=Z[1],Q[2]=Z[2],Q[3]=1,Q}function Y(Q,Z,st,ot){return Q[0]=Z[0],Q[1]=Z[1],Q[2]=Z[2],Q[st]=ot,Q}function K(Q){for(var Z=P,st=0;st<2;++st)for(var ot=0;ot<3;++ot)Z[st][ot]=Math.max(Math.min(Q[st][ot],1e8),-1e8);return Z}function nt(Q,Z,st,ot){var rt=Z.axesProject,X=Z.gl,ut=Q.uniforms,lt=st.model||v,yt=st.view||v,kt=st.projection||v,Lt=Z.axesBounds,St=K(Z.clipBounds),Ot=Z.axes&&Z.axes.lastCubeProps?Z.axes.lastCubeProps.axis:[1,1,1];C[0]=2/X.drawingBufferWidth,C[1]=2/X.drawingBufferHeight,Q.bind(),ut.view=yt,ut.projection=kt,ut.screenSize=C,ut.highlightId=Z.highlightId,ut.highlightScale=Z.highlightScale,ut.clipBounds=St,ut.pickGroup=Z.pickId/255,ut.pixelRatio=ot;for(var Ht=0;Ht<3;++Ht)if(rt[Ht]){ut.scale=Z.projectScale[Ht],ut.opacity=Z.projectOpacity[Ht];for(var Kt=B,Gt=0;Gt<16;++Gt)Kt[Gt]=0;for(var Gt=0;Gt<4;++Gt)Kt[5*Gt]=1;Kt[5*Ht]=0,Ot[Ht]<0?Kt[12+Ht]=Lt[0][Ht]:Kt[12+Ht]=Lt[1][Ht],n(Kt,lt,Kt),ut.model=Kt;var Et=(Ht+1)%3,At=(Ht+2)%3,qt=N(_),jt=N(F);qt[Et]=1,jt[At]=1;var de=g(kt,yt,lt,V(O,qt)),Xt=g(kt,yt,lt,V(j,jt));if(Math.abs(de[1])>Math.abs(Xt[1])){var ye=de;de=Xt,Xt=ye,ye=qt,qt=jt,jt=ye;var Le=Et;Et=At,At=Le}de[0]<0&&(qt[Et]=-1),Xt[1]>0&&(jt[At]=-1);for(var ve=0,ke=0,Gt=0;Gt<4;++Gt)ve+=lt[4*Et+Gt]**2,ke+=lt[4*At+Gt]**2;qt[Et]/=Math.sqrt(ve),jt[At]/=Math.sqrt(ke),ut.axes[0]=qt,ut.axes[1]=jt,ut.fragClipBounds[0]=Y(U,St[0],Ht,-1e8),ut.fragClipBounds[1]=Y(U,St[1],Ht,1e8),Z.vao.bind(),Z.vao.draw(X.TRIANGLES,Z.vertexCount),Z.lineWidth>0&&(X.lineWidth(Z.lineWidth*ot),Z.vao.draw(X.LINES,Z.lineVertexCount,Z.vertexCount)),Z.vao.unbind()}}var ft=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function ct(Q,Z,st,ot,rt,X,ut){var lt=st.gl;if((X===st.projectHasAlpha||ut)&&nt(Z,st,ot,rt),X===st.hasAlpha||ut){Q.bind();var yt=Q.uniforms;yt.model=ot.model||v,yt.view=ot.view||v,yt.projection=ot.projection||v,C[0]=2/lt.drawingBufferWidth,C[1]=2/lt.drawingBufferHeight,yt.screenSize=C,yt.highlightId=st.highlightId,yt.highlightScale=st.highlightScale,yt.fragClipBounds=ft,yt.clipBounds=st.axes.bounds,yt.opacity=st.opacity,yt.pickGroup=st.pickId/255,yt.pixelRatio=rt,st.vao.bind(),st.vao.draw(lt.TRIANGLES,st.vertexCount),st.lineWidth>0&&(lt.lineWidth(st.lineWidth*rt),st.vao.draw(lt.LINES,st.lineVertexCount,st.vertexCount)),st.vao.unbind()}}T.draw=function(Q){ct(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,Q,this.pixelRatio,!1,!1)},T.drawTransparent=function(Q){ct(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,Q,this.pixelRatio,!0,!1)},T.drawPick=function(Q){ct(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,Q,1,!0,!0)},T.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var Z=Q.value[2]+(Q.value[1]<<8)+(Q.value[0]<<16);if(Z>=this.pointCount||Z<0)return null;var st=this.points[Z],ot=this._selectResult;ot.index=Z;for(var rt=0;rt<3;++rt)ot.position[rt]=ot.dataCoordinate[rt]=st[rt];return ot},T.highlight=function(Q){if(!Q)this.highlightId=[1,1,1,1];else{var Z=Q.index,st=Z&255,ot=Z>>8&255,rt=Z>>16&255;this.highlightId=[st/255,ot/255,rt/255,0]}};function J(Q,Z,st,ot){var rt=b(Q)?Z0){var Vt=0,Qt=At,te=[0,0,0,1],ee=[0,0,0,1],Bt=b(Ot)&&b(Ot[0]),Wt=b(Gt)&&b(Gt[0]);t:for(var ot=0;ot0?1-ke[0][0]:Ut<0?1+ke[1][0]:1,Zt*=Zt>0?1-ke[0][1]:Zt<0?1+ke[1][1]:1;for(var Me=[Ut,Zt],Be=Le.cells||[],ge=Le.positions||[],Xt=0;Xt0){var j=v*L;b.drawBox(u-j,T-j,C+j,T+j,d),b.drawBox(u-j,_-j,C+j,_+j,d),b.drawBox(u-j,T-j,u+j,_+j,d),b.drawBox(C-j,T-j,C+j,_+j,d)}}}},n.update=function(x){x||(x={}),this.innerFill=!!x.innerFill,this.outerFill=!!x.outerFill,this.innerColor=(x.innerColor||[0,0,0,.5]).slice(),this.outerColor=(x.outerColor||[0,0,0,.5]).slice(),this.borderColor=(x.borderColor||[0,0,0,1]).slice(),this.borderWidth=x.borderWidth||0,this.selectBox=(x.selectBox||this.selectBox).slice()},n.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)};function m(x,f){var v=x.gl,l=new s(x,o(v,[0,0,0,1,1,0,1,1]),r(v,a.boxVertex,a.boxFragment));return l.update(f),x.addOverlay(l),l}}),3589:(function(p,c,i){p.exports=v;var r=i(2260),o=i(1888),a=i(9618),s=i(8828).nextPow2,n=function(l,h,d){for(var b=1e8,M=-1,g=-1,k=l.shape[0],L=l.shape[1],u=0;uthis.buffer.length){o.free(this.buffer);for(var b=this.buffer=o.mallocUint8(s(d*h*4)),M=0;Mb)for(h=b;hd)for(h=d;h=0){for(var P=U.type.charAt(U.type.length-1)|0,N=Array(P),V=0;V=0;)Y+=1;j[B]=Y}var K=Array(b.length);function nt(){k.program=s.program(L,k._vref,k._fref,O,j);for(var ft=0;ft=0){var T=L.charCodeAt(L.length-1)-48;if(T<2||T>4)throw new r("","Invalid data type for attribute "+k+": "+L);n(f,v,u[0],h,T,d,k)}else if(L.indexOf("mat")>=0){var T=L.charCodeAt(L.length-1)-48;if(T<2||T>4)throw new r("","Invalid data type for attribute "+k+": "+L);m(f,v,u,h,T,d,k)}else throw new r("","Unknown data type for attribute "+k+": "+L);break}}return d}}),3327:(function(p,c,i){var r=i(216),o=i(8866);p.exports=n;function a(m){return function(){return m}}function s(m,x){for(var f=Array(m),v=0;v4)throw new o("","Invalid data type");switch(V.charAt(0)){case"b":case"i":m["uniform"+Y+"iv"](v[O],j);break;case"v":m["uniform"+Y+"fv"](v[O],j);break;default:throw new o("","Unrecognized data type for vector "+name+": "+V)}}else if(V.indexOf("mat")===0&&V.length===4){if(Y=V.charCodeAt(V.length-1)-48,Y<2||Y>4)throw new o("","Invalid uniform dimension type for matrix "+name+": "+V);m["uniformMatrix"+Y+"fv"](v[O],!1,j);break}else throw new o("","Unknown uniform data type for "+name+": "+V)}}}}}function d(L,u){if(typeof u!="object")return[[L,u]];var T=[];for(var C in u){var _=u[C],F=L;parseInt(C)+""===C?F+="["+C+"]":F+="."+C,typeof _=="object"?T.push.apply(T,d(F,_)):T.push([F,_])}return T}function b(L){switch(L){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var u=L.indexOf("vec");if(0<=u&&u<=1&&L.length===4+u){var T=L.charCodeAt(L.length-1)-48;if(T<2||T>4)throw new o("","Invalid data type");return L.charAt(0)==="b"?s(T,!1):s(T,0)}else if(L.indexOf("mat")===0&&L.length===4){var T=L.charCodeAt(L.length-1)-48;if(T<2||T>4)throw new o("","Invalid uniform dimension type for matrix "+name+": "+L);return s(T*T,0)}else throw new o("","Unknown uniform data type for "+name+": "+L)}}function M(L,u,T){if(typeof T=="object"){var C=g(T);Object.defineProperty(L,u,{get:a(C),set:h(T),enumerable:!0,configurable:!1})}else v[T]?Object.defineProperty(L,u,{get:l(T),set:h(T),enumerable:!0,configurable:!1}):L[u]=b(f[T].type)}function g(L){var u;if(Array.isArray(L)){u=Array(L.length);for(var T=0;T1){x[0]in n||(n[x[0]]=[]),n=n[x[0]];for(var f=1;f1)for(var d=0;d"u"?i(606):WeakMap),s=0;function n(b,M,g,k,L,u,T){this.id=b,this.src=M,this.type=g,this.shader=k,this.count=u,this.programs=[],this.cache=T}n.prototype.dispose=function(){if(--this.count===0){for(var b=this.cache,M=b.gl,g=this.programs,k=0,L=g.length;k 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, tubeScale; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * tubePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(tubePosition, 1.0); + vec4 t_position = view * tubePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = tubePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),a=r([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),s=r([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float tubeScale; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + gl_Position = projection * (view * tubePosition); + f_id = id; + f_position = position.xyz; +} +`]),n=r([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);c.meshShader={vertex:o,fragment:a,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},c.pickShader={vertex:s,fragment:n,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}}),7815:(function(p,c,i){var r=i(2931),o=i(9970),a=["xyz","xzy","yxz","yzx","zxy","zyx"],s=function(b,M,g,k){for(var L=b.points,u=b.velocities,T=b.divergences,C=[],_=[],F=[],O=[],j=[],B=[],U=0,P=0,N=o.create(),V=o.create(),Y=8,K=0;K0)for(var J=0;JM)return k-1}return k},x=function(b,M,g){return bg?g:b},f=function(b,M,g){var k=M.vectors,L=M.meshgrid,u=b[0],T=b[1],C=b[2],_=L[0].length,F=L[1].length,O=L[2].length,j=m(L[0],u),B=m(L[1],T),U=m(L[2],C),P=j+1,N=B+1,V=U+1;if(j=x(j,0,_-1),P=x(P,0,_-1),B=x(B,0,F-1),N=x(N,0,F-1),U=x(U,0,O-1),V=x(V,0,O-1),j<0||B<0||U<0||P>_-1||N>F-1||V>O-1)return r.create();var Y=L[0][j],K=L[0][P],nt=L[1][B],ft=L[1][N],ct=L[2][U],J=L[2][V],et=(u-Y)/(K-Y),Q=(T-nt)/(ft-nt),Z=(C-ct)/(J-ct);isFinite(et)||(et=.5),isFinite(Q)||(Q=.5),isFinite(Z)||(Z=.5);var st,ot,rt,X,ut,lt;switch(g.reversedX&&(j=_-1-j,P=_-1-P),g.reversedY&&(B=F-1-B,N=F-1-N),g.reversedZ&&(U=O-1-U,V=O-1-V),g.filled){case 5:ut=U,lt=V,rt=B*O,X=N*O,st=j*O*F,ot=P*O*F;break;case 4:ut=U,lt=V,st=j*O,ot=P*O,rt=B*O*_,X=N*O*_;break;case 3:rt=B,X=N,ut=U*F,lt=V*F,st=j*F*O,ot=P*F*O;break;case 2:rt=B,X=N,st=j*F,ot=P*F,ut=U*F*_,lt=V*F*_;break;case 1:st=j,ot=P,ut=U*_,lt=V*_,rt=B*_*O,X=N*_*O;break;default:st=j,ot=P,rt=B*_,X=N*_,ut=U*_*F,lt=V*_*F;break}var yt=k[st+rt+ut],kt=k[st+rt+lt],Lt=k[st+X+ut],St=k[st+X+lt],Ot=k[ot+rt+ut],Ht=k[ot+rt+lt],Kt=k[ot+X+ut],Gt=k[ot+X+lt],Et=r.create(),At=r.create(),qt=r.create(),jt=r.create();r.lerp(Et,yt,Ot,et),r.lerp(At,kt,Ht,et),r.lerp(qt,Lt,Kt,et),r.lerp(jt,St,Gt,et);var de=r.create(),Xt=r.create();r.lerp(de,Et,qt,Q),r.lerp(Xt,At,jt,Q);var ye=r.create();return r.lerp(ye,de,Xt,Z),ye},v=function(b){var M=1/0;b.sort(function(u,T){return u-T});for(var g=b.length,k=1;kP||KtN||GtV)},K=10*r.distance(M[0],M[1])/k,nt=K*K,ft=1,ct=0,J=g.length;J>1&&(ft=l(g));for(var et=0;etct&&(ct=lt),X.push(lt),O.push({points:Z,velocities:st,divergences:X});for(var yt=0;ytnt&&r.scale(kt,kt,K/Math.sqrt(Lt)),r.add(kt,kt,Q),ot=_(kt),r.squaredDistance(rt,kt)-nt>-1e-4*nt){Z.push(kt),rt=kt,st.push(ot);var ut=F(kt,ot),lt=r.length(ut);isFinite(lt)&<>ct&&(ct=lt),X.push(lt)}Q=kt}}var St=n(O,b.colormap,ct,ft);return u?St.tubeScale=u:(ct===0&&(ct=1),St.tubeScale=L*.5*ft/ct),St};var h=i(6740),d=i(6405).createMesh;p.exports.createTubeMesh=function(b,M){return d(b,M,{shaders:h,traceType:"streamtube"})}}),990:(function(p,c,i){var r=i(9405),o=i(3236),a=o([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute vec3 f; +attribute vec3 normal; + +uniform vec3 objectOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 lightPosition, eyePosition; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 localCoordinate = vec3(uv.zw, f.x); + worldCoordinate = objectOffset + localCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0); + vec4 clipPosition = projection * (view * worldPosition); + gl_Position = clipPosition; + kill = f.y; + value = f.z; + planeCoordinate = uv.xy; + + vColor = texture2D(colormap, vec2(value, value)); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * worldPosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + lightDirection = lightPosition - cameraCoordinate.xyz; + eyeDirection = eyePosition - cameraCoordinate.xyz; + surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz); +} +`]),s=o([`precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float beckmannSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness) { + return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 lowerBound, upperBound; +uniform float contourTint; +uniform vec4 contourColor; +uniform sampler2D colormap; +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform float vertexColor; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + if ( + kill > 0.0 || + vColor.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], worldCoordinate) + ) discard; + + vec3 N = normalize(surfaceNormal); + vec3 V = normalize(eyeDirection); + vec3 L = normalize(lightDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = max(beckmannSpecular(L, V, N, roughness), 0.); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + //decide how to interpolate color \u2014 in vertex or in fragment + vec4 surfaceColor = + step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + + step(.5, vertexColor) * vColor; + + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = mix(litColor, contourColor, contourTint) * opacity; +} +`]),n=o([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute float f; + +uniform vec3 objectOffset; +uniform mat3 permutation; +uniform mat4 model, view, projection; +uniform float height, zOffset; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 dataCoordinate = permutation * vec3(uv.xy, height); + worldCoordinate = objectOffset + dataCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0); + + vec4 clipPosition = projection * (view * worldPosition); + clipPosition.z += zOffset; + + gl_Position = clipPosition; + value = f + objectOffset.z; + kill = -1.0; + planeCoordinate = uv.zw; + + vColor = texture2D(colormap, vec2(value, value)); + + //Don't do lighting for contours + surfaceNormal = vec3(1,0,0); + eyeDirection = vec3(0,1,0); + lightDirection = vec3(0,0,1); +} +`]),m=o([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec2 shape; +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 surfaceNormal; + +vec2 splitFloat(float v) { + float vh = 255.0 * v; + float upper = floor(vh); + float lower = fract(vh); + return vec2(upper / 255.0, floor(lower * 16.0) / 16.0); +} + +void main() { + if ((kill > 0.0) || + (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard; + + vec2 ux = splitFloat(planeCoordinate.x / shape.x); + vec2 uy = splitFloat(planeCoordinate.y / shape.y); + gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); +} +`]);c.createShader=function(x){var f=r(x,a,s,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return f.attributes.uv.location=0,f.attributes.f.location=1,f.attributes.normal.location=2,f},c.createPickShader=function(x){var f=r(x,a,m,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return f.attributes.uv.location=0,f.attributes.f.location=1,f.attributes.normal.location=2,f},c.createContourShader=function(x){var f=r(x,n,s,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return f.attributes.uv.location=0,f.attributes.f.location=1,f},c.createPickContourShader=function(x){var f=r(x,n,m,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return f.attributes.uv.location=0,f.attributes.f.location=1,f}}),9499:(function(p,c,i){p.exports=ot;var r=i(8828),o=i(2762),a=i(8116),s=i(7766),n=i(1888),m=i(6729),x=i(5298),f=i(9994),v=i(9618),l=i(3711),h=i(6760),d=i(7608),b=i(2478),M=i(6199),g=i(990),k=g.createShader,L=g.createContourShader,u=g.createPickShader,T=g.createPickContourShader,C=40,_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],F=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],O=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var rt=0;rt<3;++rt){var X=O[rt],ut=(rt+1)%3,lt=(rt+2)%3;X[ut+0]=1,X[lt+3]=1,X[rt+6]=1}})();function j(rt,X,ut,lt,yt){this.position=rt,this.index=X,this.uv=ut,this.level=lt,this.dataCoordinate=yt}var B=256;function U(rt,X,ut,lt,yt,kt,Lt,St,Ot,Ht,Kt,Gt,Et,At,qt){this.gl=rt,this.shape=X,this.bounds=ut,this.objectOffset=qt,this.intensityBounds=[],this._shader=lt,this._pickShader=yt,this._coordinateBuffer=kt,this._vao=Lt,this._colorMap=St,this._contourShader=Ot,this._contourPickShader=Ht,this._contourBuffer=Kt,this._contourVAO=Gt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new j([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Et,this._dynamicVAO=At,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[v(n.mallocFloat(1024),[0,0]),v(n.mallocFloat(1024),[0,0]),v(n.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var P=U.prototype;P.genColormap=function(rt,X){var ut=!1,lt=f([m({colormap:rt,nshades:B,format:"rgba"}).map(function(yt,kt){var Lt=X?N(kt/255,X):yt[3];return Lt<1&&(ut=!0),[yt[0],yt[1],yt[2],255*Lt]})]);return x.divseq(lt,255),this.hasAlphaScale=ut,lt},P.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},P.isOpaque=function(){return!this.isTransparent()},P.pickSlots=1,P.setPickBase=function(rt){this.pickId=rt};function N(rt,X){if(!X||!X.length)return 1;for(var ut=0;utrt&&ut>0){var lt=(X[ut][0]-rt)/(X[ut][0]-X[ut-1][0]);return X[ut][1]*(1-lt)+lt*X[ut-1][1]}}return 1}var V=[0,0,0],Y={showSurface:!1,showContour:!1,projections:[_.slice(),_.slice(),_.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function K(rt,X){var ut,lt,yt,kt=X.axes&&X.axes.lastCubeProps.axis||V,Lt=X.showSurface,St=X.showContour;for(ut=0;ut<3;++ut)for(Lt||(Lt=X.surfaceProject[ut]),lt=0;lt<3;++lt)St||(St=X.contourProject[ut][lt]);for(ut=0;ut<3;++ut){var Ot=Y.projections[ut];for(lt=0;lt<16;++lt)Ot[lt]=0;for(lt=0;lt<4;++lt)Ot[5*lt]=1;Ot[5*ut]=0,Ot[12+ut]=X.axesBounds[+(kt[ut]>0)][ut],h(Ot,rt.model,Ot);var Ht=Y.clipBounds[ut];for(yt=0;yt<2;++yt)for(lt=0;lt<3;++lt)Ht[yt][lt]=rt.clipBounds[yt][lt];Ht[0][ut]=-1e8,Ht[1][ut]=1e8}return Y.showSurface=Lt,Y.showContour=St,Y}var nt={model:_,view:_,projection:_,inverseModel:_.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},ft=_.slice(),ct=[1,0,0,0,1,0,0,0,1];function J(rt,X){rt||(rt={});var ut=this.gl;ut.disable(ut.CULL_FACE),this._colorMap.bind(0);var lt=nt;lt.model=rt.model||_,lt.view=rt.view||_,lt.projection=rt.projection||_,lt.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],lt.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],lt.objectOffset=this.objectOffset,lt.contourColor=this.contourColor[0],lt.inverseModel=d(lt.inverseModel,lt.model);for(var yt=0;yt<2;++yt)for(var kt=lt.clipBounds[yt],Lt=0;Lt<3;++Lt)kt[Lt]=Math.min(Math.max(this.clipBounds[yt][Lt],-1e8),1e8);lt.kambient=this.ambientLight,lt.kdiffuse=this.diffuseLight,lt.kspecular=this.specularLight,lt.roughness=this.roughness,lt.fresnel=this.fresnel,lt.opacity=this.opacity,lt.height=0,lt.permutation=ct,lt.vertexColor=this.vertexColor;var St=ft;for(h(St,lt.view,lt.model),h(St,lt.projection,St),d(St,St),yt=0;yt<3;++yt)lt.eyePosition[yt]=St[12+yt]/St[15];var Ot=St[15];for(yt=0;yt<3;++yt)Ot+=this.lightPosition[yt]*St[4*yt+3];for(yt=0;yt<3;++yt){var Ht=St[12+yt];for(Lt=0;Lt<3;++Lt)Ht+=St[4*Lt+yt]*this.lightPosition[Lt];lt.lightPosition[yt]=Ht/Ot}var Kt=K(lt,this);if(Kt.showSurface){for(this._shader.bind(),this._shader.uniforms=lt,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ut.TRIANGLES,this._vertexCount),yt=0;yt<3;++yt)!this.surfaceProject[yt]||!this.vertexCount||(this._shader.uniforms.model=Kt.projections[yt],this._shader.uniforms.clipBounds=Kt.clipBounds[yt],this._vao.draw(ut.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Kt.showContour){var Gt=this._contourShader;lt.kambient=1,lt.kdiffuse=0,lt.kspecular=0,lt.opacity=1,Gt.bind(),Gt.uniforms=lt;var Et=this._contourVAO;for(Et.bind(),yt=0;yt<3;++yt)for(Gt.uniforms.permutation=O[yt],ut.lineWidth(this.contourWidth[yt]*this.pixelRatio),Lt=0;Lt>4)/16)/255,yt=Math.floor(lt),kt=lt-yt,Lt=X[1]*(rt.value[1]+(rt.value[2]&15)/16)/255,St=Math.floor(Lt),Ot=Lt-St;yt+=1,St+=1;var Ht=ut.position;Ht[0]=Ht[1]=Ht[2]=0;for(var Kt=0;Kt<2;++Kt)for(var Gt=Kt?kt:1-kt,Et=0;Et<2;++Et)for(var At=Et?Ot:1-Ot,qt=yt+Kt,jt=St+Et,de=Gt*At,Xt=0;Xt<3;++Xt)Ht[Xt]+=this._field[Xt].get(qt,jt)*de;for(var ye=this._pickResult.level,Le=0;Le<3;++Le)if(ye[Le]=b.le(this.contourLevels[Le],Ht[Le]),ye[Le]<0)this.contourLevels[Le].length>0&&(ye[Le]=0);else if(ye[Le]Math.abs(ke-Ht[Le])&&(ye[Le]+=1)}for(ut.index[0]=kt<.5?yt:yt+1,ut.index[1]=Ot<.5?St:St+1,ut.uv[0]=lt/X[0],ut.uv[1]=Lt/X[1],Xt=0;Xt<3;++Xt)ut.dataCoordinate[Xt]=this._field[Xt].get(ut.index[0],ut.index[1]);return ut},P.padField=function(rt,X){var ut=X.shape.slice(),lt=rt.shape.slice();x.assign(rt.lo(1,1).hi(ut[0],ut[1]),X),x.assign(rt.lo(1).hi(ut[0],1),X.hi(ut[0],1)),x.assign(rt.lo(1,lt[1]-1).hi(ut[0],1),X.lo(0,ut[1]-1).hi(ut[0],1)),x.assign(rt.lo(0,1).hi(1,ut[1]),X.hi(1)),x.assign(rt.lo(lt[0]-1,1).hi(1,ut[1]),X.lo(ut[0]-1)),rt.set(0,0,X.get(0,0)),rt.set(0,lt[1]-1,X.get(0,ut[1]-1)),rt.set(lt[0]-1,0,X.get(ut[0]-1,0)),rt.set(lt[0]-1,lt[1]-1,X.get(ut[0]-1,ut[1]-1))};function Q(rt,X){return Array.isArray(rt)?[X(rt[0]),X(rt[1]),X(rt[2])]:[X(rt),X(rt),X(rt)]}function Z(rt){return Array.isArray(rt)?rt.length===3?[rt[0],rt[1],rt[2],1]:[rt[0],rt[1],rt[2],rt[3]]:[0,0,0,1]}function st(rt){if(Array.isArray(rt)){if(Array.isArray(rt))return[Z(rt[0]),Z(rt[1]),Z(rt[2])];var X=Z(rt);return[X.slice(),X.slice(),X.slice()]}}P.update=function(rt){rt||(rt={}),this.objectOffset=rt.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in rt&&(this.contourWidth=Q(rt.contourWidth,Number)),"showContour"in rt&&(this.showContour=Q(rt.showContour,Boolean)),"showSurface"in rt&&(this.showSurface=!!rt.showSurface),"contourTint"in rt&&(this.contourTint=Q(rt.contourTint,Boolean)),"contourColor"in rt&&(this.contourColor=st(rt.contourColor)),"contourProject"in rt&&(this.contourProject=Q(rt.contourProject,function(re){return Q(re,Boolean)})),"surfaceProject"in rt&&(this.surfaceProject=rt.surfaceProject),"dynamicColor"in rt&&(this.dynamicColor=st(rt.dynamicColor)),"dynamicTint"in rt&&(this.dynamicTint=Q(rt.dynamicTint,Number)),"dynamicWidth"in rt&&(this.dynamicWidth=Q(rt.dynamicWidth,Number)),"opacity"in rt&&(this.opacity=rt.opacity),"opacityscale"in rt&&(this.opacityscale=rt.opacityscale),"colorBounds"in rt&&(this.colorBounds=rt.colorBounds),"vertexColor"in rt&&(this.vertexColor=rt.vertexColor?1:0),"colormap"in rt&&this._colorMap.setPixels(this.genColormap(rt.colormap,this.opacityscale));var X=rt.field||rt.coords&&rt.coords[2]||null,ut=!1;if(X||(X=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in rt||"coords"in rt){var lt=(X.shape[0]+2)*(X.shape[1]+2);lt>this._field[2].data.length&&(n.freeFloat(this._field[2].data),this._field[2].data=n.mallocFloat(r.nextPow2(lt))),this._field[2]=v(this._field[2].data,[X.shape[0]+2,X.shape[1]+2]),this.padField(this._field[2],X),this.shape=X.shape.slice();for(var yt=this.shape,kt=0;kt<2;++kt)this._field[2].size>this._field[kt].data.length&&(n.freeFloat(this._field[kt].data),this._field[kt].data=n.mallocFloat(this._field[2].size)),this._field[kt]=v(this._field[kt].data,[yt[0]+2,yt[1]+2]);if(rt.coords){var Lt=rt.coords;if(!Array.isArray(Lt)||Lt.length!==3)throw Error("gl-surface: invalid coordinates for x/y");for(kt=0;kt<2;++kt){var St=Lt[kt];for(Et=0;Et<2;++Et)if(St.shape[Et]!==yt[Et])throw Error("gl-surface: coords have incorrect shape");this.padField(this._field[kt],St)}}else if(rt.ticks){var Ot=rt.ticks;if(!Array.isArray(Ot)||Ot.length!==2)throw Error("gl-surface: invalid ticks");for(kt=0;kt<2;++kt){var Ht=Ot[kt];if((Array.isArray(Ht)||Ht.length)&&(Ht=v(Ht)),Ht.shape[0]!==yt[kt])throw Error("gl-surface: invalid tick length");var Kt=v(Ht.data,yt);Kt.stride[kt]=Ht.stride[0],Kt.stride[kt^1]=0,this.padField(this._field[kt],Kt)}}else{for(kt=0;kt<2;++kt){var Gt=[0,0];Gt[kt]=1,this._field[kt]=v(this._field[kt].data,[yt[0]+2,yt[1]+2],Gt,0)}this._field[0].set(0,0,0);for(var Et=0;Et0){for(var ei=0;ei<5;++ei)Ee.pop();--$t}continue t}}}He.push($t)}this._contourOffsets[Ne]=_e,this._contourCounts[Ne]=He}var Nr=n.mallocFloat(Ee.length);for(kt=0;ktj||F<0||F>j)throw Error("gl-texture2d: Invalid texture size");return C._shape=[_,F],C.bind(),O.texImage2D(O.TEXTURE_2D,0,C.format,_,F,0,C.format,C.type,null),C._mipLevels=[0],C}function h(C,_,F,O,j,B){this.gl=C,this.handle=_,this.format=j,this.type=B,this._shape=[F,O],this._mipLevels=[0],this._magFilter=C.NEAREST,this._minFilter=C.NEAREST,this._wrapS=C.CLAMP_TO_EDGE,this._wrapT=C.CLAMP_TO_EDGE,this._anisoSamples=1;var U=this,P=[this._wrapS,this._wrapT];Object.defineProperties(P,[{get:function(){return U._wrapS},set:function(V){return U.wrapS=V}},{get:function(){return U._wrapT},set:function(V){return U.wrapT=V}}]),this._wrapVector=P;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return U._shape[0]},set:function(V){return U.width=V}},{get:function(){return U._shape[1]},set:function(V){return U.height=V}}]),this._shapeVector=N}var d=h.prototype;Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(C){this.bind();var _=this.gl;if(this.type===_.FLOAT&&s.indexOf(C)>=0&&(_.getExtension("OES_texture_float_linear")||(C=_.NEAREST)),n.indexOf(C)<0)throw Error("gl-texture2d: Unknown filter mode "+C);return _.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,C),this._minFilter=C}},magFilter:{get:function(){return this._magFilter},set:function(C){this.bind();var _=this.gl;if(this.type===_.FLOAT&&s.indexOf(C)>=0&&(_.getExtension("OES_texture_float_linear")||(C=_.NEAREST)),n.indexOf(C)<0)throw Error("gl-texture2d: Unknown filter mode "+C);return _.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,C),this._magFilter=C}},mipSamples:{get:function(){return this._anisoSamples},set:function(C){var _=this._anisoSamples;if(this._anisoSamples=Math.max(C,1)|0,_!==this._anisoSamples){var F=this.gl.getExtension("EXT_texture_filter_anisotropic");F&&this.gl.texParameterf(this.gl.TEXTURE_2D,F.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(C){if(this.bind(),m.indexOf(C)<0)throw Error("gl-texture2d: Unknown wrap mode "+C);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,C),this._wrapS=C}},wrapT:{get:function(){return this._wrapT},set:function(C){if(this.bind(),m.indexOf(C)<0)throw Error("gl-texture2d: Unknown wrap mode "+C);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,C),this._wrapT=C}},wrap:{get:function(){return this._wrapVector},set:function(C){if(Array.isArray(C)||(C=[C,C]),C.length!==2)throw Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var _=0;_<2;++_)if(m.indexOf(C[_])<0)throw Error("gl-texture2d: Unknown wrap mode "+C);this._wrapS=C[0],this._wrapT=C[1];var F=this.gl;return this.bind(),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_S,this._wrapS),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_T,this._wrapT),C}},shape:{get:function(){return this._shapeVector},set:function(C){if(!Array.isArray(C))C=[C|0,C|0];else if(C.length!==2)throw Error("gl-texture2d: Invalid texture shape");return l(this,C[0]|0,C[1]|0),[C[0]|0,C[1]|0]}},width:{get:function(){return this._shape[0]},set:function(C){return C|=0,l(this,C,this._shape[1]),C}},height:{get:function(){return this._shape[1]},set:function(C){return C|=0,l(this,this._shape[0],C),C}}}),d.bind=function(C){var _=this.gl;return C!==void 0&&_.activeTexture(_.TEXTURE0+(C|0)),_.bindTexture(_.TEXTURE_2D,this.handle),C===void 0?_.getParameter(_.ACTIVE_TEXTURE)-_.TEXTURE0:C|0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var C=Math.min(this._shape[0],this._shape[1]),_=0;C>0;++_,C>>>=1)this._mipLevels.indexOf(_)<0&&this._mipLevels.push(_)},d.setPixels=function(C,_,F,O){var j=this.gl;this.bind(),Array.isArray(_)?(O=F,F=_[1]|0,_=_[0]|0):(_||(_=0),F||(F=0)),O||(O=0);var B=f(C)?C:C.raw;if(B)this._mipLevels.indexOf(O)<0?(j.texImage2D(j.TEXTURE_2D,0,this.format,this.format,this.type,B),this._mipLevels.push(O)):j.texSubImage2D(j.TEXTURE_2D,O,_,F,this.format,this.type,B);else if(C.shape&&C.stride&&C.data){if(C.shape.length<2||_+C.shape[1]>this._shape[1]>>>O||F+C.shape[0]>this._shape[0]>>>O||_<0||F<0)throw Error("gl-texture2d: Texture dimensions are out of bounds");M(j,_,F,O,this.format,this.type,this._mipLevels,C)}else throw Error("gl-texture2d: Unsupported data type")};function b(C,_){return C.length===3?_[2]===1&&_[1]===C[0]*C[2]&&_[0]===C[2]:_[0]===1&&_[1]===C[0]}function M(C,_,F,O,j,B,U,P){var N=P.dtype,V=P.shape.slice();if(V.length<2||V.length>3)throw Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var Y=0,K=0,nt=b(V,P.stride.slice());if(N==="float32"?Y=C.FLOAT:N==="float64"?(Y=C.FLOAT,nt=!1,N="float32"):N==="uint8"?Y=C.UNSIGNED_BYTE:(Y=C.UNSIGNED_BYTE,nt=!1,N="uint8"),V.length===2)K=C.LUMINANCE,V=[V[0],V[1],1],P=r(P.data,V,[P.stride[0],P.stride[1],1],P.offset);else if(V.length===3){if(V[2]===1)K=C.ALPHA;else if(V[2]===2)K=C.LUMINANCE_ALPHA;else if(V[2]===3)K=C.RGB;else if(V[2]===4)K=C.RGBA;else throw Error("gl-texture2d: Invalid shape for pixel coords");V[2]}else throw Error("gl-texture2d: Invalid shape for texture");if((K===C.LUMINANCE||K===C.ALPHA)&&(j===C.LUMINANCE||j===C.ALPHA)&&(K=j),K!==j)throw Error("gl-texture2d: Incompatible texture format for setPixels");var ft=P.size,ct=U.indexOf(O)<0;if(ct&&U.push(O),Y===B&&nt)P.offset===0&&P.data.length===ft?ct?C.texImage2D(C.TEXTURE_2D,O,j,V[0],V[1],0,j,B,P.data):C.texSubImage2D(C.TEXTURE_2D,O,_,F,V[0],V[1],j,B,P.data):ct?C.texImage2D(C.TEXTURE_2D,O,j,V[0],V[1],0,j,B,P.data.subarray(P.offset,P.offset+ft)):C.texSubImage2D(C.TEXTURE_2D,O,_,F,V[0],V[1],j,B,P.data.subarray(P.offset,P.offset+ft));else{var J=B===C.FLOAT?a.mallocFloat32(ft):a.mallocUint8(ft),et=r(J,V,[V[2],V[2]*V[0],1]);Y===C.FLOAT&&B===C.UNSIGNED_BYTE?v(et,P):o.assign(et,P),ct?C.texImage2D(C.TEXTURE_2D,O,j,V[0],V[1],0,j,B,J.subarray(0,ft)):C.texSubImage2D(C.TEXTURE_2D,O,_,F,V[0],V[1],j,B,J.subarray(0,ft)),B===C.FLOAT?a.freeFloat32(J):a.freeUint8(J)}}function g(C){var _=C.createTexture();return C.bindTexture(C.TEXTURE_2D,_),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_MIN_FILTER,C.NEAREST),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_MAG_FILTER,C.NEAREST),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_S,C.CLAMP_TO_EDGE),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_T,C.CLAMP_TO_EDGE),_}function k(C,_,F,O,j){var B=C.getParameter(C.MAX_TEXTURE_SIZE);if(_<0||_>B||F<0||F>B)throw Error("gl-texture2d: Invalid texture shape");if(j===C.FLOAT&&!C.getExtension("OES_texture_float"))throw Error("gl-texture2d: Floating point textures not supported on this platform");var U=g(C);return C.texImage2D(C.TEXTURE_2D,0,O,_,F,0,O,j,null),new h(C,U,_,F,O,j)}function L(C,_,F,O,j,B){var U=g(C);return C.texImage2D(C.TEXTURE_2D,0,j,j,B,_),new h(C,U,F,O,j,B)}function u(C,_){var F=_.dtype,O=_.shape.slice(),j=C.getParameter(C.MAX_TEXTURE_SIZE);if(O[0]<0||O[0]>j||O[1]<0||O[1]>j)throw Error("gl-texture2d: Invalid texture size");var B=b(O,_.stride.slice()),U=0;F==="float32"?U=C.FLOAT:F==="float64"?(U=C.FLOAT,B=!1,F="float32"):F==="uint8"?U=C.UNSIGNED_BYTE:(U=C.UNSIGNED_BYTE,B=!1,F="uint8");var P=0;if(O.length===2)P=C.LUMINANCE,O=[O[0],O[1],1],_=r(_.data,O,[_.stride[0],_.stride[1],1],_.offset);else if(O.length===3)if(O[2]===1)P=C.ALPHA;else if(O[2]===2)P=C.LUMINANCE_ALPHA;else if(O[2]===3)P=C.RGB;else if(O[2]===4)P=C.RGBA;else throw Error("gl-texture2d: Invalid shape for pixel coords");else throw Error("gl-texture2d: Invalid shape for texture");U===C.FLOAT&&!C.getExtension("OES_texture_float")&&(U=C.UNSIGNED_BYTE,B=!1);var N,V,Y=_.size;if(B)N=_.offset===0&&_.data.length===Y?_.data:_.data.subarray(_.offset,_.offset+Y);else{var K=[O[2],O[2]*O[0],1];V=a.malloc(Y,F);var nt=r(V,O,K,0);(F==="float32"||F==="float64")&&U===C.UNSIGNED_BYTE?v(nt,_):o.assign(nt,_),N=V.subarray(0,Y)}var ft=g(C);return C.texImage2D(C.TEXTURE_2D,0,P,O[0],O[1],0,P,U,N),B||a.free(V),new h(C,ft,O[0],O[1],P,U)}function T(C){if(arguments.length<=1)throw Error("gl-texture2d: Missing arguments for texture2d constructor");if(s||x(C),typeof arguments[1]=="number")return k(C,arguments[1],arguments[2],arguments[3]||C.RGBA,arguments[4]||C.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return k(C,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||C.RGBA,arguments[3]||C.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var _=arguments[1],F=f(_)?_:_.raw;if(F)return L(C,F,_.width|0,_.height|0,arguments[2]||C.RGBA,arguments[3]||C.UNSIGNED_BYTE);if(_.shape&&_.data&&_.stride)return u(C,_)}throw Error("gl-texture2d: Invalid arguments for texture2d constructor")}}),1433:(function(p){function c(i,r,o){r?r.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var a=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(o){if(o.length>a)throw Error("gl-vao: Too many vertex attributes");for(var s=0;s1?0:Math.acos(v)}}),9226:(function(p){p.exports=c;function c(i,r){return i[0]=Math.ceil(r[0]),i[1]=Math.ceil(r[1]),i[2]=Math.ceil(r[2]),i}}),3126:(function(p){p.exports=c;function c(i){var r=new Float32Array(3);return r[0]=i[0],r[1]=i[1],r[2]=i[2],r}}),3990:(function(p){p.exports=c;function c(i,r){return i[0]=r[0],i[1]=r[1],i[2]=r[2],i}}),1091:(function(p){p.exports=c;function c(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}}),5911:(function(p){p.exports=c;function c(i,r,o){var a=r[0],s=r[1],n=r[2],m=o[0],x=o[1],f=o[2];return i[0]=s*f-n*x,i[1]=n*m-a*f,i[2]=a*x-s*m,i}}),5455:(function(p,c,i){p.exports=i(7056)}),7056:(function(p){p.exports=c;function c(i,r){var o=r[0]-i[0],a=r[1]-i[1],s=r[2]-i[2];return Math.sqrt(o*o+a*a+s*s)}}),4008:(function(p,c,i){p.exports=i(6690)}),6690:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]/o[0],i[1]=r[1]/o[1],i[2]=r[2]/o[2],i}}),244:(function(p){p.exports=c;function c(i,r){return i[0]*r[0]+i[1]*r[1]+i[2]*r[2]}}),2613:(function(p){p.exports=1e-6}),9922:(function(p,c,i){p.exports=o;var r=i(2613);function o(a,s){var n=a[0],m=a[1],x=a[2],f=s[0],v=s[1],l=s[2];return Math.abs(n-f)<=r*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(m-v)<=r*Math.max(1,Math.abs(m),Math.abs(v))&&Math.abs(x-l)<=r*Math.max(1,Math.abs(x),Math.abs(l))}}),9265:(function(p){p.exports=c;function c(i,r){return i[0]===r[0]&&i[1]===r[1]&&i[2]===r[2]}}),2681:(function(p){p.exports=c;function c(i,r){return i[0]=Math.floor(r[0]),i[1]=Math.floor(r[1]),i[2]=Math.floor(r[2]),i}}),5137:(function(p,c,i){p.exports=o;var r=i(1091)();function o(a,s,n,m,x,f){var v,l;for(s||(s=3),n||(n=0),l=m?Math.min(m*s+n,a.length):a.length,v=n;v0&&(n=1/Math.sqrt(n),i[0]=r[0]*n,i[1]=r[1]*n,i[2]=r[2]*n),i}}),7636:(function(p){p.exports=c;function c(i,r){r||(r=1);var o=Math.random()*2*Math.PI,a=Math.random()*2-1,s=Math.sqrt(1-a*a)*r;return i[0]=Math.cos(o)*s,i[1]=Math.sin(o)*s,i[2]=a*r,i}}),6894:(function(p){p.exports=c;function c(i,r,o,a){var s=o[1],n=o[2],m=r[1]-s,x=r[2]-n,f=Math.sin(a),v=Math.cos(a);return i[0]=r[0],i[1]=s+m*v-x*f,i[2]=n+m*f+x*v,i}}),109:(function(p){p.exports=c;function c(i,r,o,a){var s=o[0],n=o[2],m=r[0]-s,x=r[2]-n,f=Math.sin(a),v=Math.cos(a);return i[0]=s+x*f+m*v,i[1]=r[1],i[2]=n+x*v-m*f,i}}),8692:(function(p){p.exports=c;function c(i,r,o,a){var s=o[0],n=o[1],m=r[0]-s,x=r[1]-n,f=Math.sin(a),v=Math.cos(a);return i[0]=s+m*v-x*f,i[1]=n+m*f+x*v,i[2]=r[2],i}}),2447:(function(p){p.exports=c;function c(i,r){return i[0]=Math.round(r[0]),i[1]=Math.round(r[1]),i[2]=Math.round(r[2]),i}}),6621:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]*o,i[1]=r[1]*o,i[2]=r[2]*o,i}}),8489:(function(p){p.exports=c;function c(i,r,o,a){return i[0]=r[0]+o[0]*a,i[1]=r[1]+o[1]*a,i[2]=r[2]+o[2]*a,i}}),1463:(function(p){p.exports=c;function c(i,r,o,a){return i[0]=r,i[1]=o,i[2]=a,i}}),6141:(function(p,c,i){p.exports=i(2953)}),5486:(function(p,c,i){p.exports=i(3066)}),2953:(function(p){p.exports=c;function c(i,r){var o=r[0]-i[0],a=r[1]-i[1],s=r[2]-i[2];return o*o+a*a+s*s}}),3066:(function(p){p.exports=c;function c(i){var r=i[0],o=i[1],a=i[2];return r*r+o*o+a*a}}),2229:(function(p,c,i){p.exports=i(6843)}),6843:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]-o[0],i[1]=r[1]-o[1],i[2]=r[2]-o[2],i}}),492:(function(p){p.exports=c;function c(i,r,o){var a=r[0],s=r[1],n=r[2];return i[0]=a*o[0]+s*o[3]+n*o[6],i[1]=a*o[1]+s*o[4]+n*o[7],i[2]=a*o[2]+s*o[5]+n*o[8],i}}),5673:(function(p){p.exports=c;function c(i,r,o){var a=r[0],s=r[1],n=r[2],m=o[3]*a+o[7]*s+o[11]*n+o[15];return m||(m=1),i[0]=(o[0]*a+o[4]*s+o[8]*n+o[12])/m,i[1]=(o[1]*a+o[5]*s+o[9]*n+o[13])/m,i[2]=(o[2]*a+o[6]*s+o[10]*n+o[14])/m,i}}),264:(function(p){p.exports=c;function c(i,r,o){var a=r[0],s=r[1],n=r[2],m=o[0],x=o[1],f=o[2],v=o[3],l=v*a+x*n-f*s,h=v*s+f*a-m*n,d=v*n+m*s-x*a,b=-m*a-x*s-f*n;return i[0]=l*v+b*-m+h*-f-d*-x,i[1]=h*v+b*-x+d*-m-l*-f,i[2]=d*v+b*-f+l*-x-h*-m,i}}),4361:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]+o[0],i[1]=r[1]+o[1],i[2]=r[2]+o[2],i[3]=r[3]+o[3],i}}),2335:(function(p){p.exports=c;function c(i){var r=new Float32Array(4);return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r}}),2933:(function(p){p.exports=c;function c(i,r){return i[0]=r[0],i[1]=r[1],i[2]=r[2],i[3]=r[3],i}}),7536:(function(p){p.exports=c;function c(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}}),4691:(function(p){p.exports=c;function c(i,r){var o=r[0]-i[0],a=r[1]-i[1],s=r[2]-i[2],n=r[3]-i[3];return Math.sqrt(o*o+a*a+s*s+n*n)}}),1373:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]/o[0],i[1]=r[1]/o[1],i[2]=r[2]/o[2],i[3]=r[3]/o[3],i}}),3750:(function(p){p.exports=c;function c(i,r){return i[0]*r[0]+i[1]*r[1]+i[2]*r[2]+i[3]*r[3]}}),3390:(function(p){p.exports=c;function c(i,r,o,a){var s=new Float32Array(4);return s[0]=i,s[1]=r,s[2]=o,s[3]=a,s}}),9970:(function(p,c,i){p.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}}),4494:(function(p){p.exports=c;function c(i,r){return i[0]=1/r[0],i[1]=1/r[1],i[2]=1/r[2],i[3]=1/r[3],i}}),6808:(function(p){p.exports=c;function c(i){var r=i[0],o=i[1],a=i[2],s=i[3];return Math.sqrt(r*r+o*o+a*a+s*s)}}),2573:(function(p){p.exports=c;function c(i,r,o,a){var s=r[0],n=r[1],m=r[2],x=r[3];return i[0]=s+a*(o[0]-s),i[1]=n+a*(o[1]-n),i[2]=m+a*(o[2]-m),i[3]=x+a*(o[3]-x),i}}),160:(function(p){p.exports=c;function c(i,r,o){return i[0]=Math.max(r[0],o[0]),i[1]=Math.max(r[1],o[1]),i[2]=Math.max(r[2],o[2]),i[3]=Math.max(r[3],o[3]),i}}),2334:(function(p){p.exports=c;function c(i,r,o){return i[0]=Math.min(r[0],o[0]),i[1]=Math.min(r[1],o[1]),i[2]=Math.min(r[2],o[2]),i[3]=Math.min(r[3],o[3]),i}}),3576:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]*o[0],i[1]=r[1]*o[1],i[2]=r[2]*o[2],i[3]=r[3]*o[3],i}}),1498:(function(p){p.exports=c;function c(i,r){return i[0]=-r[0],i[1]=-r[1],i[2]=-r[2],i[3]=-r[3],i}}),5177:(function(p){p.exports=c;function c(i,r){var o=r[0],a=r[1],s=r[2],n=r[3],m=o*o+a*a+s*s+n*n;return m>0&&(m=1/Math.sqrt(m),i[0]=o*m,i[1]=a*m,i[2]=s*m,i[3]=n*m),i}}),9131:(function(p,c,i){var r=i(5177),o=i(9288);p.exports=a;function a(s,n){return n||(n=1),s[0]=Math.random(),s[1]=Math.random(),s[2]=Math.random(),s[3]=Math.random(),r(s,s),o(s,s,n),s}}),9288:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]*o,i[1]=r[1]*o,i[2]=r[2]*o,i[3]=r[3]*o,i}}),4844:(function(p){p.exports=c;function c(i,r,o,a){return i[0]=r[0]+o[0]*a,i[1]=r[1]+o[1]*a,i[2]=r[2]+o[2]*a,i[3]=r[3]+o[3]*a,i}}),4578:(function(p){p.exports=c;function c(i,r,o,a,s){return i[0]=r,i[1]=o,i[2]=a,i[3]=s,i}}),7960:(function(p){p.exports=c;function c(i,r){var o=r[0]-i[0],a=r[1]-i[1],s=r[2]-i[2],n=r[3]-i[3];return o*o+a*a+s*s+n*n}}),483:(function(p){p.exports=c;function c(i){var r=i[0],o=i[1],a=i[2],s=i[3];return r*r+o*o+a*a+s*s}}),6860:(function(p){p.exports=c;function c(i,r,o){return i[0]=r[0]-o[0],i[1]=r[1]-o[1],i[2]=r[2]-o[2],i[3]=r[3]-o[3],i}}),5352:(function(p){p.exports=c;function c(i,r,o){var a=r[0],s=r[1],n=r[2],m=r[3];return i[0]=o[0]*a+o[4]*s+o[8]*n+o[12]*m,i[1]=o[1]*a+o[5]*s+o[9]*n+o[13]*m,i[2]=o[2]*a+o[6]*s+o[10]*n+o[14]*m,i[3]=o[3]*a+o[7]*s+o[11]*n+o[15]*m,i}}),4041:(function(p){p.exports=c;function c(i,r,o){var a=r[0],s=r[1],n=r[2],m=o[0],x=o[1],f=o[2],v=o[3],l=v*a+x*n-f*s,h=v*s+f*a-m*n,d=v*n+m*s-x*a,b=-m*a-x*s-f*n;return i[0]=l*v+b*-m+h*-f-d*-x,i[1]=h*v+b*-x+d*-m-l*-f,i[2]=d*v+b*-f+l*-x-h*-m,i[3]=r[3],i}}),1848:(function(p,c,i){var r=i(4905),o=i(6468);p.exports=a;function a(s){for(var n=Array.isArray(s)?s:r(s),m=0;m0)continue;Xt=qt.slice(0,1).join("")}return rt(Xt),nt+=Xt.length,N=N.slice(Xt.length),N.length}while(!0)}function Kt(){return/[^a-fA-F0-9]/.test(U)?(rt(N.join("")),B=m,O):(N.push(U),P=U,O+1)}function Gt(){return U==="."||/[eE]/.test(U)?(N.push(U),B=b,P=U,O+1):U==="x"&&N.length===1&&N[0]==="0"?(B=T,N.push(U),P=U,O+1):/[^\d]/.test(U)?(rt(N.join("")),B=m,O):(N.push(U),P=U,O+1)}function Et(){return U==="f"&&(N.push(U),P=U,O+=1),/[eE]/.test(U)||(U==="-"||U==="+")&&/[eE]/.test(P)?(N.push(U),P=U,O+1):/[^\d]/.test(U)?(rt(N.join("")),B=m,O):(N.push(U),P=U,O+1)}function At(){if(/[^\d\w_]/.test(U)){var qt=N.join("");return B=ot[qt]?k:st[qt]?g:M,rt(N.join("")),B=m,O}return N.push(U),P=U,O+1}}}),3508:(function(p,c,i){var r=i(6852);r=r.slice().filter(function(o){return!/^(gl\_|texture)/.test(o)}),p.exports=r.concat("gl_VertexID.gl_InstanceID.gl_Position.gl_PointSize.gl_FragCoord.gl_FrontFacing.gl_FragDepth.gl_PointCoord.gl_MaxVertexAttribs.gl_MaxVertexUniformVectors.gl_MaxVertexOutputVectors.gl_MaxFragmentInputVectors.gl_MaxVertexTextureImageUnits.gl_MaxCombinedTextureImageUnits.gl_MaxTextureImageUnits.gl_MaxFragmentUniformVectors.gl_MaxDrawBuffers.gl_MinProgramTexelOffset.gl_MaxProgramTexelOffset.gl_DepthRangeParameters.gl_DepthRange.trunc.round.roundEven.isnan.isinf.floatBitsToInt.floatBitsToUint.intBitsToFloat.uintBitsToFloat.packSnorm2x16.unpackSnorm2x16.packUnorm2x16.unpackUnorm2x16.packHalf2x16.unpackHalf2x16.outerProduct.transpose.determinant.inverse.texture.textureSize.textureProj.textureLod.textureOffset.texelFetch.texelFetchOffset.textureProjOffset.textureLodOffset.textureProjLod.textureProjLodOffset.textureGrad.textureGradOffset.textureProjGrad.textureProjGradOffset".split("."))}),6852:(function(p){p.exports="abs.acos.all.any.asin.atan.ceil.clamp.cos.cross.dFdx.dFdy.degrees.distance.dot.equal.exp.exp2.faceforward.floor.fract.gl_BackColor.gl_BackLightModelProduct.gl_BackLightProduct.gl_BackMaterial.gl_BackSecondaryColor.gl_ClipPlane.gl_ClipVertex.gl_Color.gl_DepthRange.gl_DepthRangeParameters.gl_EyePlaneQ.gl_EyePlaneR.gl_EyePlaneS.gl_EyePlaneT.gl_Fog.gl_FogCoord.gl_FogFragCoord.gl_FogParameters.gl_FragColor.gl_FragCoord.gl_FragData.gl_FragDepth.gl_FragDepthEXT.gl_FrontColor.gl_FrontFacing.gl_FrontLightModelProduct.gl_FrontLightProduct.gl_FrontMaterial.gl_FrontSecondaryColor.gl_LightModel.gl_LightModelParameters.gl_LightModelProducts.gl_LightProducts.gl_LightSource.gl_LightSourceParameters.gl_MaterialParameters.gl_MaxClipPlanes.gl_MaxCombinedTextureImageUnits.gl_MaxDrawBuffers.gl_MaxFragmentUniformComponents.gl_MaxLights.gl_MaxTextureCoords.gl_MaxTextureImageUnits.gl_MaxTextureUnits.gl_MaxVaryingFloats.gl_MaxVertexAttribs.gl_MaxVertexTextureImageUnits.gl_MaxVertexUniformComponents.gl_ModelViewMatrix.gl_ModelViewMatrixInverse.gl_ModelViewMatrixInverseTranspose.gl_ModelViewMatrixTranspose.gl_ModelViewProjectionMatrix.gl_ModelViewProjectionMatrixInverse.gl_ModelViewProjectionMatrixInverseTranspose.gl_ModelViewProjectionMatrixTranspose.gl_MultiTexCoord0.gl_MultiTexCoord1.gl_MultiTexCoord2.gl_MultiTexCoord3.gl_MultiTexCoord4.gl_MultiTexCoord5.gl_MultiTexCoord6.gl_MultiTexCoord7.gl_Normal.gl_NormalMatrix.gl_NormalScale.gl_ObjectPlaneQ.gl_ObjectPlaneR.gl_ObjectPlaneS.gl_ObjectPlaneT.gl_Point.gl_PointCoord.gl_PointParameters.gl_PointSize.gl_Position.gl_ProjectionMatrix.gl_ProjectionMatrixInverse.gl_ProjectionMatrixInverseTranspose.gl_ProjectionMatrixTranspose.gl_SecondaryColor.gl_TexCoord.gl_TextureEnvColor.gl_TextureMatrix.gl_TextureMatrixInverse.gl_TextureMatrixInverseTranspose.gl_TextureMatrixTranspose.gl_Vertex.greaterThan.greaterThanEqual.inversesqrt.length.lessThan.lessThanEqual.log.log2.matrixCompMult.max.min.mix.mod.normalize.not.notEqual.pow.radians.reflect.refract.sign.sin.smoothstep.sqrt.step.tan.texture2D.texture2DLod.texture2DProj.texture2DProjLod.textureCube.textureCubeLod.texture2DLodEXT.texture2DProjLodEXT.textureCubeLodEXT.texture2DGradEXT.texture2DProjGradEXT.textureCubeGradEXT".split(".")}),7932:(function(p,c,i){p.exports=i(620).slice().concat("layout.centroid.smooth.case.mat2x2.mat2x3.mat2x4.mat3x2.mat3x3.mat3x4.mat4x2.mat4x3.mat4x4.uvec2.uvec3.uvec4.samplerCubeShadow.sampler2DArray.sampler2DArrayShadow.isampler2D.isampler3D.isamplerCube.isampler2DArray.usampler2D.usampler3D.usamplerCube.usampler2DArray.coherent.restrict.readonly.writeonly.resource.atomic_uint.noperspective.patch.sample.subroutine.common.partition.active.filter.image1D.image2D.image3D.imageCube.iimage1D.iimage2D.iimage3D.iimageCube.uimage1D.uimage2D.uimage3D.uimageCube.image1DArray.image2DArray.iimage1DArray.iimage2DArray.uimage1DArray.uimage2DArray.image1DShadow.image2DShadow.image1DArrayShadow.image2DArrayShadow.imageBuffer.iimageBuffer.uimageBuffer.sampler1DArray.sampler1DArrayShadow.isampler1D.isampler1DArray.usampler1D.usampler1DArray.isampler2DRect.usampler2DRect.samplerBuffer.isamplerBuffer.usamplerBuffer.sampler2DMS.isampler2DMS.usampler2DMS.sampler2DMSArray.isampler2DMSArray.usampler2DMSArray".split("."))}),620:(function(p){p.exports="precision.highp.mediump.lowp.attribute.const.uniform.varying.break.continue.do.for.while.if.else.in.out.inout.float.int.uint.void.bool.true.false.discard.return.mat2.mat3.mat4.vec2.vec3.vec4.ivec2.ivec3.ivec4.bvec2.bvec3.bvec4.sampler1D.sampler2D.sampler3D.samplerCube.sampler1DShadow.sampler2DShadow.struct.asm.class.union.enum.typedef.template.this.packed.goto.switch.default.inline.noinline.volatile.public.static.extern.external.interface.long.short.double.half.fixed.unsigned.input.output.hvec2.hvec3.hvec4.dvec2.dvec3.dvec4.fvec2.fvec3.fvec4.sampler2DRect.sampler3DRect.sampler2DRectShadow.sizeof.cast.namespace.using".split(".")}),7827:(function(p){p.exports="<<= >>= ++ -- << >> <= >= == != && || += -= *= /= %= &= ^^ ^= |= ( ) [ ] . ! ~ * / % + - < > & ^ | ? : = , ; { }".split(" ")}),4905:(function(p,c,i){var r=i(5874);p.exports=o;function o(a,s){var n=r(s),m=[];return m=m.concat(n(a)),m=m.concat(n(null)),m}}),3236:(function(p){p.exports=function(c){typeof c=="string"&&(c=[c]);for(var i=[].slice.call(arguments,1),r=[],o=0;o>1,l=-7,h=o?s-1:0,d=o?-1:1,b=i[r+h];for(h+=d,n=b&(1<<-l)-1,b>>=-l,l+=x;l>0;n=n*256+i[r+h],h+=d,l-=8);for(m=n&(1<<-l)-1,n>>=-l,l+=a;l>0;m=m*256+i[r+h],h+=d,l-=8);if(n===0)n=1-v;else{if(n===f)return m?NaN:(b?-1:1)*(1/0);m+=2**a,n-=v}return(b?-1:1)*m*2**(n-a)},c.write=function(i,r,o,a,s,n){var m,x,f,v=n*8-s-1,l=(1<>1,d=s===23?2**-24-2**-77:0,b=a?0:n-1,M=a?1:-1,g=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(x=isNaN(r)?1:0,m=l):(m=Math.floor(Math.log(r)/Math.LN2),r*(f=2**-m)<1&&(m--,f*=2),m+h>=1?r+=d/f:r+=d*2**(1-h),r*f>=2&&(m++,f/=2),m+h>=l?(x=0,m=l):m+h>=1?(x=(r*f-1)*2**s,m+=h):(x=r*2**(h-1)*2**s,m=0));s>=8;i[o+b]=x&255,b+=M,x/=256,s-=8);for(m=m<0;i[o+b]=m&255,b+=M,m/=256,v-=8);i[o+b-M]|=g*128}}),8954:(function(p,c,i){p.exports=h;var r=i(3250),o=i(6803).Fw;function a(d,b,M){this.vertices=d,this.adjacent=b,this.boundary=M,this.lastVisited=-1}a.prototype.flip=function(){var d=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=d;var b=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=b};function s(d,b,M){this.vertices=d,this.cell=b,this.index=M}function n(d,b){return o(d.vertices,b.vertices)}function m(d){return function(){var b=this.tuple;return d.apply(this,b)}}function x(d){var b=r[d+1];return b||(b=r),m(b)}var f=[];function v(d,b,M){this.dimension=d,this.vertices=b,this.simplices=M,this.interior=M.filter(function(L){return!L.boundary}),this.tuple=Array(d+1);for(var g=0;g<=d;++g)this.tuple[g]=this.vertices[g];var k=f[d];k||(k=f[d]=x(d)),this.orient=k}var l=v.prototype;l.handleBoundaryDegeneracy=function(d,b){var M=this.dimension,g=this.vertices.length-1,k=this.tuple,L=this.vertices,u=[d];for(d.lastVisited=-g;u.length>0;){d=u.pop();for(var T=d.adjacent,C=0;C<=M;++C){var _=T[C];if(!(!_.boundary||_.lastVisited<=-g)){for(var F=_.vertices,O=0;O<=M;++O){var j=F[O];j<0?k[O]=b:k[O]=L[j]}var B=this.orient();if(B>0)return _;_.lastVisited=-g,B===0&&u.push(_)}}}return null},l.walk=function(d,b){var M=this.vertices.length-1,g=this.dimension,k=this.vertices,L=this.tuple,u=b?this.interior.length*Math.random()|0:this.interior.length-1,T=this.interior[u];t:for(;!T.boundary;){for(var C=T.vertices,_=T.adjacent,F=0;F<=g;++F)L[F]=k[C[F]];T.lastVisited=M;for(var F=0;F<=g;++F){var O=_[F];if(!(O.lastVisited>=M)){var j=L[F];L[F]=d;var B=this.orient();if(L[F]=j,B<0){T=O;continue t}else O.boundary?O.lastVisited=-M:O.lastVisited=M}}return}return T},l.addPeaks=function(d,b){var M=this.vertices.length-1,g=this.dimension,k=this.vertices,L=this.tuple,u=this.interior,T=this.simplices,C=[b];b.lastVisited=M,b.vertices[b.vertices.indexOf(-1)]=M,b.boundary=!1,u.push(b);for(var _=[];C.length>0;){var b=C.pop(),F=b.vertices,O=b.adjacent,j=F.indexOf(M);if(!(j<0)){for(var B=0;B<=g;++B)if(B!==j){var U=O[B];if(!(!U.boundary||U.lastVisited>=M)){var P=U.vertices;if(U.lastVisited!==-M){for(var N=0,V=0;V<=g;++V)P[V]<0?(N=V,L[V]=d):L[V]=k[P[V]];if(this.orient()>0){P[N]=M,U.boundary=!1,u.push(U),C.push(U),U.lastVisited=M;continue}else U.lastVisited=-M}var Y=U.adjacent,K=F.slice(),nt=O.slice(),ft=new a(K,nt,!0);T.push(ft);var ct=Y.indexOf(b);if(!(ct<0)){Y[ct]=ft,nt[j]=U,K[B]=-1,nt[B]=b,O[B]=ft,ft.flip();for(var V=0;V<=g;++V){var J=K[V];if(!(J<0||J===M)){for(var et=Array(g-1),Q=0,Z=0;Z<=g;++Z){var st=K[Z];st<0||Z===V||(et[Q++]=st)}_.push(new s(et,ft,V))}}}}}}}_.sort(n);for(var B=0;B+1<_.length;B+=2){var ot=_[B],rt=_[B+1],X=ot.index,ut=rt.index;X<0||ut<0||(ot.cell.adjacent[ot.index]=rt.cell,rt.cell.adjacent[rt.index]=ot.cell)}},l.insert=function(d,b){var M=this.vertices;M.push(d);var g=this.walk(d,b);if(g){for(var k=this.dimension,L=this.tuple,u=0;u<=k;++u){var T=g.vertices[u];T<0?L[u]=d:L[u]=M[T]}var C=this.orient(L);C<0||C===0&&(g=this.handleBoundaryDegeneracy(g,d),!g)||this.addPeaks(d,g)}},l.boundary=function(){for(var d=this.dimension,b=[],M=this.simplices,g=M.length,k=0;k=0?u[C++]=T[F]:_=F&1;if(_===(d&1)){var O=u[0];u[0]=u[1],u[1]=O}b.push(u)}}return b};function h(d,b){var M=d.length;if(M===0)throw Error("Must have at least d+1 points");var g=d[0].length;if(M<=g)throw Error("Must input at least d+1 points");var k=d.slice(0,g+1),L=r.apply(void 0,k);if(L===0)throw Error("Input not in general position");for(var u=Array(g+1),T=0;T<=g;++T)u[T]=T;L<0&&(u[0]=1,u[1]=0);for(var C=new a(u,Array(g+1),!1),_=C.adjacent,F=Array(g+2),T=0;T<=g;++T){for(var O=u.slice(),j=0;j<=g;++j)j===T&&(O[j]=-1);var B=O[0];O[0]=O[1],O[1]=B;var U=new a(O,Array(g+1),!0);_[T]=U,F[T]=U}F[g+1]=C;for(var T=0;T<=g;++T)for(var O=_[T].vertices,P=_[T].adjacent,j=0;j<=g;++j){var N=O[j];if(N<0){P[j]=C;continue}for(var V=0;V<=g;++V)_[V].vertices.indexOf(N)<0&&(P[j]=_[V])}for(var Y=new v(g,k,F),K=!!b,T=g+1;T3*(F+1)?v(this,_):this.left.insert(_):this.left=L([_]);else if(_[0]>this.mid)this.right?4*(this.right.count+1)>3*(F+1)?v(this,_):this.right.insert(_):this.right=L([_]);else{var O=r.ge(this.leftPoints,_,g),j=r.ge(this.rightPoints,_,k);this.leftPoints.splice(O,0,_),this.rightPoints.splice(j,0,_)}},m.remove=function(_){var F=this.count-this.leftPoints;if(_[1]3*(F-1))return l(this,_);var O=this.left.remove(_);return O===s?(this.left=null,--this.count,a):(O===a&&--this.count,O)}else if(_[0]>this.mid){if(!this.right)return o;if(4*(this.left?this.left.count:0)>3*(F-1))return l(this,_);var O=this.right.remove(_);return O===s?(this.right=null,--this.count,a):(O===a&&--this.count,O)}else{if(this.count===1)return this.leftPoints[0]===_?s:o;if(this.leftPoints.length===1&&this.leftPoints[0]===_){if(this.left&&this.right){for(var j=this,B=this.left;B.right;)j=B,B=B.right;if(j===this)B.right=this.right;else{var U=this.left,O=this.right;j.count-=B.count,j.right=B.left,B.left=U,B.right=O}x(this,B),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?x(this,this.left):x(this,this.right);return a}for(var U=r.ge(this.leftPoints,_,g);U=0&&_[j][1]>=F;--j){var B=O(_[j]);if(B)return B}}function b(_,F){for(var O=0;O<_.length;++O){var j=F(_[O]);if(j)return j}}m.queryPoint=function(_,F){if(_this.mid){if(this.right){var O=this.right.queryPoint(_,F);if(O)return O}return d(this.rightPoints,_,F)}else return b(this.leftPoints,F)},m.queryInterval=function(_,F,O){if(_this.mid&&this.right){var j=this.right.queryInterval(_,F,O);if(j)return j}return Fthis.mid?d(this.rightPoints,_,O):b(this.leftPoints,O)};function M(_,F){return _-F}function g(_,F){return _[0]-F[0]||_[1]-F[1]}function k(_,F){return _[1]-F[1]||_[0]-F[0]}function L(_){if(_.length===0)return null;for(var F=[],O=0;O<_.length;++O)F.push(_[O][0],_[O][1]);F.sort(M);for(var j=F[F.length>>1],B=[],U=[],P=[],O=0;O<_.length;++O){var N=_[O];N[1]13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}}),395:(function(p){function c(i,r,o){return i*(1-o)+r*o}p.exports=c}),2652:(function(p,c,i){var r=i(4335),o=i(6864),a=i(1903),s=i(9921),n=i(7608),m=i(5665),x={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},f=o(),v=o(),l=[0,0,0,0],h=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];p.exports=function(k,L,u,T,C,_){if(L||(L=[0,0,0]),u||(u=[0,0,0]),T||(T=[0,0,0]),C||(C=[0,0,0,1]),_||(_=[0,0,0,1]),!r(f,k)||(a(v,f),v[3]=0,v[7]=0,v[11]=0,v[15]=1,Math.abs(s(v)<1e-8)))return!1;var F=f[3],O=f[7],j=f[11],B=f[12],U=f[13],P=f[14],N=f[15];if(F!==0||O!==0||j!==0){if(l[0]=F,l[1]=O,l[2]=j,l[3]=N,!n(v,v))return!1;m(v,v),b(C,l,v)}else C[0]=C[1]=C[2]=0,C[3]=1;if(L[0]=B,L[1]=U,L[2]=P,M(h,f),u[0]=x.length(h[0]),x.normalize(h[0],h[0]),T[0]=x.dot(h[0],h[1]),g(h[1],h[1],h[0],1,-T[0]),u[1]=x.length(h[1]),x.normalize(h[1],h[1]),T[0]/=u[1],T[1]=x.dot(h[0],h[2]),g(h[2],h[2],h[0],1,-T[1]),T[2]=x.dot(h[1],h[2]),g(h[2],h[2],h[1],1,-T[2]),u[2]=x.length(h[2]),x.normalize(h[2],h[2]),T[1]/=u[2],T[2]/=u[2],x.cross(d,h[1],h[2]),x.dot(h[0],d)<0)for(var V=0;V<3;V++)u[V]*=-1,h[V][0]*=-1,h[V][1]*=-1,h[V][2]*=-1;return _[0]=.5*Math.sqrt(Math.max(1+h[0][0]-h[1][1]-h[2][2],0)),_[1]=.5*Math.sqrt(Math.max(1-h[0][0]+h[1][1]-h[2][2],0)),_[2]=.5*Math.sqrt(Math.max(1-h[0][0]-h[1][1]+h[2][2],0)),_[3]=.5*Math.sqrt(Math.max(1+h[0][0]+h[1][1]+h[2][2],0)),h[2][1]>h[1][2]&&(_[0]=-_[0]),h[0][2]>h[2][0]&&(_[1]=-_[1]),h[1][0]>h[0][1]&&(_[2]=-_[2]),!0};function b(k,L,u){var T=L[0],C=L[1],_=L[2],F=L[3];return k[0]=u[0]*T+u[4]*C+u[8]*_+u[12]*F,k[1]=u[1]*T+u[5]*C+u[9]*_+u[13]*F,k[2]=u[2]*T+u[6]*C+u[10]*_+u[14]*F,k[3]=u[3]*T+u[7]*C+u[11]*_+u[15]*F,k}function M(k,L){k[0][0]=L[0],k[0][1]=L[1],k[0][2]=L[2],k[1][0]=L[4],k[1][1]=L[5],k[1][2]=L[6],k[2][0]=L[8],k[2][1]=L[9],k[2][2]=L[10]}function g(k,L,u,T,C){k[0]=L[0]*T+u[0]*C,k[1]=L[1]*T+u[1]*C,k[2]=L[2]*T+u[2]*C}}),4335:(function(p){p.exports=function(c,i){var r=i[15];if(r===0)return!1;for(var o=1/r,a=0;a<16;a++)c[a]=i[a]*o;return!0}}),7442:(function(p,c,i){var r=i(6658),o=i(7182),a=i(2652),s=i(9921),n=i(8648),m=l(),x=l(),f=l();p.exports=v;function v(b,M,g,k){if(s(M)===0||s(g)===0)return!1;var L=a(M,m.translate,m.scale,m.skew,m.perspective,m.quaternion),u=a(g,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!L||!u?!1:(r(f.translate,m.translate,x.translate,k),r(f.skew,m.skew,x.skew,k),r(f.scale,m.scale,x.scale,k),r(f.perspective,m.perspective,x.perspective,k),n(f.quaternion,m.quaternion,x.quaternion,k),o(b,f.translate,f.scale,f.skew,f.perspective,f.quaternion),!0)}function l(){return{translate:h(),scale:h(1),skew:h(),perspective:d(),quaternion:d()}}function h(b){return[b||0,b||0,b||0]}function d(){return[0,0,0,1]}}),7182:(function(p,c,i){var r={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)};r.create();var o=r.create();p.exports=function(a,s,n,m,x,f){return r.identity(a),r.fromRotationTranslation(a,f,s),a[3]=x[0],a[7]=x[1],a[11]=x[2],a[15]=x[3],r.identity(o),m[2]!==0&&(o[9]=m[2],r.multiply(a,a,o)),m[1]!==0&&(o[9]=0,o[8]=m[1],r.multiply(a,a,o)),m[0]!==0&&(o[8]=0,o[4]=m[0],r.multiply(a,a,o)),r.scale(a,a,n),a}}),4192:(function(p,c,i){var r=i(2478),o=i(7442),a=i(7608),s=i(5567),n=i(2408),m=i(7089),x=i(6582),f=i(7656);i(2504);var v=i(3536),l=[0,0,0];p.exports=M;function h(g){this._components=g.slice(),this._time=[0],this.prevMatrix=g.slice(),this.nextMatrix=g.slice(),this.computedMatrix=g.slice(),this.computedInverse=g.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var d=h.prototype;d.recalcMatrix=function(g){var k=this._time,L=r.le(k,g),u=this.computedMatrix;if(!(L<0)){var T=this._components;if(L===k.length-1)for(var C=16*L,_=0;_<16;++_)u[_]=T[C++];else{for(var F=k[L+1]-k[L],C=16*L,O=this.prevMatrix,j=!0,_=0;_<16;++_)O[_]=T[C++];for(var B=this.nextMatrix,_=0;_<16;++_)B[_]=T[C++],j&&(j=O[_]===B[_]);if(F<1e-6||j)for(var _=0;_<16;++_)u[_]=O[_];else o(u,O,B,(g-k[L])/F)}var U=this.computedUp;U[0]=u[1],U[1]=u[5],U[2]=u[9],v(U,U);var P=this.computedInverse;a(P,u);var N=this.computedEye,V=P[15];N[0]=P[12]/V,N[1]=P[13]/V,N[2]=P[14]/V;for(var Y=this.computedCenter,K=Math.exp(this.computedRadius[0]),_=0;_<3;++_)Y[_]=N[_]-u[2+4*_]*K}},d.idle=function(g){if(!(g1&&r(a[f[d-2]],a[f[d-1]],h)<=0;)--d,f.pop();for(f.push(l),d=v.length;d>1&&r(a[v[d-2]],a[v[d-1]],h)>=0;)--d,v.pop();v.push(l)}for(var n=Array(v.length+f.length-2),b=0,m=0,M=f.length;m0;--g)n[b++]=v[g];return n}}),351:(function(p,c,i){p.exports=o;var r=i(4687);function o(a,s){s||(s=a,a=window);var n=0,m=0,x=0,f={shift:!1,alt:!1,control:!1,meta:!1},v=!1;function l(_){var F=!1;return"altKey"in _&&(F||(F=_.altKey!==f.alt),f.alt=!!_.altKey),"shiftKey"in _&&(F||(F=_.shiftKey!==f.shift),f.shift=!!_.shiftKey),"ctrlKey"in _&&(F||(F=_.ctrlKey!==f.control),f.control=!!_.ctrlKey),"metaKey"in _&&(F||(F=_.metaKey!==f.meta),f.meta=!!_.metaKey),F}function h(_,F){var O=r.x(F),j=r.y(F);"buttons"in F&&(_=F.buttons|0),(_!==n||O!==m||j!==x||l(F))&&(n=_|0,m=O||0,x=j||0,s&&s(n,m,x,f))}function d(_){h(0,_)}function b(){(n||m||x||f.shift||f.alt||f.meta||f.control)&&(m=x=0,n=0,f.shift=f.alt=f.control=f.meta=!1,s&&s(0,0,0,f))}function M(_){l(_)&&s&&s(n,m,x,f)}function g(_){r.buttons(_)===0?h(0,_):h(n,_)}function k(_){h(n|r.buttons(_),_)}function L(_){h(n&~r.buttons(_),_)}function u(){v||(v=!0,a.addEventListener("mousemove",g),a.addEventListener("mousedown",k),a.addEventListener("mouseup",L),a.addEventListener("mouseleave",d),a.addEventListener("mouseenter",d),a.addEventListener("mouseout",d),a.addEventListener("mouseover",d),a.addEventListener("blur",b),a.addEventListener("keyup",M),a.addEventListener("keydown",M),a.addEventListener("keypress",M),a!==window&&(window.addEventListener("blur",b),window.addEventListener("keyup",M),window.addEventListener("keydown",M),window.addEventListener("keypress",M)))}function T(){v&&(v=!1,a.removeEventListener("mousemove",g),a.removeEventListener("mousedown",k),a.removeEventListener("mouseup",L),a.removeEventListener("mouseleave",d),a.removeEventListener("mouseenter",d),a.removeEventListener("mouseout",d),a.removeEventListener("mouseover",d),a.removeEventListener("blur",b),a.removeEventListener("keyup",M),a.removeEventListener("keydown",M),a.removeEventListener("keypress",M),a!==window&&(window.removeEventListener("blur",b),window.removeEventListener("keyup",M),window.removeEventListener("keydown",M),window.removeEventListener("keypress",M)))}u();var C={element:a};return Object.defineProperties(C,{enabled:{get:function(){return v},set:function(_){_?u():T()},enumerable:!0},buttons:{get:function(){return n},enumerable:!0},x:{get:function(){return m},enumerable:!0},y:{get:function(){return x},enumerable:!0},mods:{get:function(){return f},enumerable:!0}}),C}}),24:(function(p){var c={left:0,top:0};p.exports=i;function i(o,a,s){a=a||o.currentTarget||o.srcElement,Array.isArray(s)||(s=[0,0]);var n=o.clientX||0,m=o.clientY||0,x=r(a);return s[0]=n-x.left,s[1]=m-x.top,s}function r(o){return o===window||o===document||o===document.body?c:o.getBoundingClientRect()}}),4687:(function(p,c){function i(s){if(typeof s=="object"){if("buttons"in s)return s.buttons;if("which"in s){var n=s.which;if(n===2)return 4;if(n===3)return 2;if(n>0)return 1<=0)return 1<0){if(K=1,ct[et++]=x(k[C],h,d,b),C+=N,M>0)for(Y=1,_=k[C],Q=ct[et]=x(_,h,d,b),ot=ct[et+Z],ut=ct[et+rt],kt=ct[et+lt],(Q!==ot||Q!==ut||Q!==kt)&&(O=k[C+F],B=k[C+j],P=k[C+U],n(Y,K,_,O,B,P,Q,ot,ut,kt,h,d,b),Lt=J[et]=nt++),et+=1,C+=N,Y=2;Y0)for(Y=1,_=k[C],Q=ct[et]=x(_,h,d,b),ot=ct[et+Z],ut=ct[et+rt],kt=ct[et+lt],(Q!==ot||Q!==ut||Q!==kt)&&(O=k[C+F],B=k[C+j],P=k[C+U],n(Y,K,_,O,B,P,Q,ot,ut,kt,h,d,b),Lt=J[et]=nt++,kt!==ut&&m(J[et+rt],Lt,B,P,ut,kt,h,d,b)),et+=1,C+=N,Y=2;Y0){if(Y=1,ct[et++]=x(k[C],h,d,b),C+=N,g>0)for(K=1,_=k[C],Q=ct[et]=x(_,h,d,b),ut=ct[et+rt],ot=ct[et+Z],kt=ct[et+lt],(Q!==ut||Q!==ot||Q!==kt)&&(O=k[C+F],B=k[C+j],P=k[C+U],n(Y,K,_,O,B,P,Q,ut,ot,kt,h,d,b),Lt=J[et]=nt++),et+=1,C+=N,K=2;K0)for(K=1,_=k[C],Q=ct[et]=x(_,h,d,b),ut=ct[et+rt],ot=ct[et+Z],kt=ct[et+lt],(Q!==ut||Q!==ot||Q!==kt)&&(O=k[C+F],B=k[C+j],P=k[C+U],n(Y,K,_,O,B,P,Q,ut,ot,kt,h,d,b),Lt=J[et]=nt++,kt!==ut&&m(J[et+rt],Lt,P,O,kt,ut,h,d,b)),et+=1,C+=N,K=2;K 0"),typeof n.vertex!="function"&&m("Must specify vertex creation function"),typeof n.cell!="function"&&m("Must specify cell creation function"),typeof n.phase!="function"&&m("Must specify phase function");for(var l=n.getters||[],h=Array(f),d=0;d=0?h[d]=!0:h[d]=!1;return a(n.vertex,n.cell,n.phase,v,x,h)}}),6199:(function(p,c,i){var r=i(1338),o={zero:function(M,g,k,L){var u=M[0],T=k[0];L|=0;var C=0,_=T;for(C=0;C2&&C[1]>2&&L(T.pick(-1,-1).lo(1,1).hi(C[0]-2,C[1]-2),u.pick(-1,-1,0).lo(1,1).hi(C[0]-2,C[1]-2),u.pick(-1,-1,1).lo(1,1).hi(C[0]-2,C[1]-2)),C[1]>2&&(k(T.pick(0,-1).lo(1).hi(C[1]-2),u.pick(0,-1,1).lo(1).hi(C[1]-2)),g(u.pick(0,-1,0).lo(1).hi(C[1]-2))),C[1]>2&&(k(T.pick(C[0]-1,-1).lo(1).hi(C[1]-2),u.pick(C[0]-1,-1,1).lo(1).hi(C[1]-2)),g(u.pick(C[0]-1,-1,0).lo(1).hi(C[1]-2))),C[0]>2&&(k(T.pick(-1,0).lo(1).hi(C[0]-2),u.pick(-1,0,0).lo(1).hi(C[0]-2)),g(u.pick(-1,0,1).lo(1).hi(C[0]-2))),C[0]>2&&(k(T.pick(-1,C[1]-1).lo(1).hi(C[0]-2),u.pick(-1,C[1]-1,0).lo(1).hi(C[0]-2)),g(u.pick(-1,C[1]-1,1).lo(1).hi(C[0]-2))),u.set(0,0,0,0),u.set(0,0,1,0),u.set(C[0]-1,0,0,0),u.set(C[0]-1,0,1,0),u.set(0,C[1]-1,0,0),u.set(0,C[1]-1,1,0),u.set(C[0]-1,C[1]-1,0,0),u.set(C[0]-1,C[1]-1,1,0),u}}function b(M){var g=M.join(),T=f[g];if(T)return T;for(var k=M.length,L=[v,l],u=1;u<=k;++u)L.push(h(u));var T=d.apply(void 0,L);return f[g]=T,T}p.exports=function(M,g,k){return Array.isArray(k)||(k=typeof k=="string"?r(g.dimension,k):r(g.dimension,"clamp")),g.size===0?M:g.dimension===0?(M.set(0),M):b(k)(M,g)}}),4317:(function(p){function c(s,n){var m=Math.floor(n),x=n-m,f=0<=m&&m0;){U<64?(g=U,U=0):(g=64,U-=64);for(var P=x[1]|0;P>0;){P<64?(k=P,P=0):(k=64,P-=64),l=j+U*u+P*T,b=B+U*_+P*F;var N=0,V=0,Y=0,K=C,nt=u-L*C,ft=T-g*u,ct=O,J=_-L*O,et=F-g*_;for(Y=0;Y0;){F<64?(g=F,F=0):(g=64,F-=64);for(var O=x[0]|0;O>0;){O<64?(M=O,O=0):(M=64,O-=64),l=C+F*L+O*k,b=_+F*T+O*u;var j=0,B=0,U=L,P=k-g*L,N=T,V=u-g*T;for(B=0;B0;){B<64?(k=B,B=0):(k=64,B-=64);for(var U=x[0]|0;U>0;){U<64?(M=U,U=0):(M=64,U-=64);for(var P=x[1]|0;P>0;){P<64?(g=P,P=0):(g=64,P-=64),l=O+B*T+U*L+P*u,b=j+B*F+U*C+P*_;var N=0,V=0,Y=0,K=T,nt=L-k*T,ft=u-M*L,ct=F,J=C-k*F,et=_-M*C;for(Y=0;Yh;){N=0,V=j-g;e:for(U=0;UK)break e;V+=C,N+=_}for(N=j,V=j-g,U=0;U>1,N=P-j,V=P+j,Y=B,K=N,nt=P,ft=V,ct=U,J=b+1,et=M-1,Q=!0,Z,st,ot,rt,X,ut,lt,yt,kt,Lt=0,St=0,Ot=0,Ht,Kt,Gt,Et,At,qt,jt,de,Xt,ye,Le,ve,ke,Pe,me,be,je=C,nr=l(je),Vt=l(je);Kt=L*Y,Gt=L*K,be=k;t:for(Ht=0;Ht0){st=Y,Y=K,K=st;break t}if(Ot<0)break t;be+=F}Kt=L*ft,Gt=L*ct,be=k;t:for(Ht=0;Ht0){st=ft,ft=ct,ct=st;break t}if(Ot<0)break t;be+=F}Kt=L*Y,Gt=L*nt,be=k;t:for(Ht=0;Ht0){st=Y,Y=nt,nt=st;break t}if(Ot<0)break t;be+=F}Kt=L*K,Gt=L*nt,be=k;t:for(Ht=0;Ht0){st=K,K=nt,nt=st;break t}if(Ot<0)break t;be+=F}Kt=L*Y,Gt=L*ft,be=k;t:for(Ht=0;Ht0){st=Y,Y=ft,ft=st;break t}if(Ot<0)break t;be+=F}Kt=L*nt,Gt=L*ft,be=k;t:for(Ht=0;Ht0){st=nt,nt=ft,ft=st;break t}if(Ot<0)break t;be+=F}Kt=L*K,Gt=L*ct,be=k;t:for(Ht=0;Ht0){st=K,K=ct,ct=st;break t}if(Ot<0)break t;be+=F}Kt=L*K,Gt=L*nt,be=k;t:for(Ht=0;Ht0){st=K,K=nt,nt=st;break t}if(Ot<0)break t;be+=F}Kt=L*ft,Gt=L*ct,be=k;t:for(Ht=0;Ht0){st=ft,ft=ct,ct=st;break t}if(Ot<0)break t;be+=F}for(Kt=L*Y,Gt=L*K,Et=L*nt,At=L*ft,qt=L*ct,jt=L*B,de=L*P,Xt=L*U,me=0,be=k,Ht=0;Ht0)et--;else if(Ot<0){for(Kt=L*ut,Gt=L*J,Et=L*et,be=k,Ht=0;Ht0)for(;;){lt=k+et*L,me=0;t:for(Ht=0;Ht0){if(--etU){t:for(;;){for(lt=k+J*L,me=0,be=k,Ht=0;Ht1&&d?b(h,d[0],d[1]):b(h)}var x={"uint32,1,0":function(v,l){return function(h){var d=h.data,b=h.offset|0,M=h.shape,g=h.stride,k=g[0]|0,L=M[0]|0,u=g[1]|0,T=M[1]|0,C=u,_=u,F=1;L<=32?v(0,L-1,d,b,k,u,L,T,C,_,F):l(0,L-1,d,b,k,u,L,T,C,_,F)}}};function f(v,l){var h=x[[l,v].join(",")],d=s(v,l);return h(d,m(v,l,d))}p.exports=f}),446:(function(p,c,i){var r=i(7640),o={};function a(s){var n=s.order,m=s.dtype,x=[n,m].join(":"),f=o[x];return f||(o[x]=f=r(n,m)),f(s),s}p.exports=a}),9618:(function(p,c,i){var r=i(7163),o=typeof Float64Array<"u";function a(l,h){return l[0]-h[0]}function s(){var l=this.stride,h=Array(l.length),d;for(d=0;d=0&&(L=g|0,k+=T*L,u-=L),new b(this.data,u,T,k)},M.step=function(g){var k=this.shape[0],L=this.stride[0],u=this.offset,T=0,C=Math.ceil;return typeof g=="number"&&(T=g|0,T<0?(u+=L*(k-1),k=C(-k/T)):k=C(k/T),L*=T),new b(this.data,k,L,u)},M.transpose=function(g){g=g===void 0?0:g|0;var k=this.shape,L=this.stride;return new b(this.data,k[g],L[g],this.offset)},M.pick=function(g){var k=[],L=[],u=this.offset;typeof g=="number"&&g>=0?u=u+this.stride[0]*g|0:(k.push(this.shape[0]),L.push(this.stride[0]));var T=h[k.length+1];return T(this.data,k,L,u)},function(g,k,L,u){return new b(g,k[0],L[0],u)}},2:function(l,h,d){function b(g,k,L,u,T,C){this.data=g,this.shape=[k,L],this.stride=[u,T],this.offset=C|0}var M=b.prototype;return M.dtype=l,M.dimension=2,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(M,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),M.set=function(g,k,L){return l==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*k,L):this.data[this.offset+this.stride[0]*g+this.stride[1]*k]=L},M.get=function(g,k){return l==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*k):this.data[this.offset+this.stride[0]*g+this.stride[1]*k]},M.index=function(g,k){return this.offset+this.stride[0]*g+this.stride[1]*k},M.hi=function(g,k){return new b(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},M.lo=function(g,k){var L=this.offset,u=0,T=this.shape[0],C=this.shape[1],_=this.stride[0],F=this.stride[1];return typeof g=="number"&&g>=0&&(u=g|0,L+=_*u,T-=u),typeof k=="number"&&k>=0&&(u=k|0,L+=F*u,C-=u),new b(this.data,T,C,_,F,L)},M.step=function(g,k){var L=this.shape[0],u=this.shape[1],T=this.stride[0],C=this.stride[1],_=this.offset,F=0,O=Math.ceil;return typeof g=="number"&&(F=g|0,F<0?(_+=T*(L-1),L=O(-L/F)):L=O(L/F),T*=F),typeof k=="number"&&(F=k|0,F<0?(_+=C*(u-1),u=O(-u/F)):u=O(u/F),C*=F),new b(this.data,L,u,T,C,_)},M.transpose=function(g,k){g=g===void 0?0:g|0,k=k===void 0?1:k|0;var L=this.shape,u=this.stride;return new b(this.data,L[g],L[k],u[g],u[k],this.offset)},M.pick=function(g,k){var L=[],u=[],T=this.offset;typeof g=="number"&&g>=0?T=T+this.stride[0]*g|0:(L.push(this.shape[0]),u.push(this.stride[0])),typeof k=="number"&&k>=0?T=T+this.stride[1]*k|0:(L.push(this.shape[1]),u.push(this.stride[1]));var C=h[L.length+1];return C(this.data,L,u,T)},function(g,k,L,u){return new b(g,k[0],k[1],L[0],L[1],u)}},3:function(l,h,d){function b(g,k,L,u,T,C,_,F){this.data=g,this.shape=[k,L,u],this.stride=[T,C,_],this.offset=F|0}var M=b.prototype;return M.dtype=l,M.dimension=3,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(M,"order",{get:function(){var g=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),L=Math.abs(this.stride[2]);return g>k?k>L?[2,1,0]:g>L?[1,2,0]:[1,0,2]:g>L?[2,0,1]:L>k?[0,1,2]:[0,2,1]}}),M.set=function(g,k,L,u){return l==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L,u):this.data[this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L]=u},M.get=function(g,k,L){return l==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L):this.data[this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L]},M.index=function(g,k,L){return this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L},M.hi=function(g,k,L){return new b(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof L!="number"||L<0?this.shape[2]:L|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},M.lo=function(g,k,L){var u=this.offset,T=0,C=this.shape[0],_=this.shape[1],F=this.shape[2],O=this.stride[0],j=this.stride[1],B=this.stride[2];return typeof g=="number"&&g>=0&&(T=g|0,u+=O*T,C-=T),typeof k=="number"&&k>=0&&(T=k|0,u+=j*T,_-=T),typeof L=="number"&&L>=0&&(T=L|0,u+=B*T,F-=T),new b(this.data,C,_,F,O,j,B,u)},M.step=function(g,k,L){var u=this.shape[0],T=this.shape[1],C=this.shape[2],_=this.stride[0],F=this.stride[1],O=this.stride[2],j=this.offset,B=0,U=Math.ceil;return typeof g=="number"&&(B=g|0,B<0?(j+=_*(u-1),u=U(-u/B)):u=U(u/B),_*=B),typeof k=="number"&&(B=k|0,B<0?(j+=F*(T-1),T=U(-T/B)):T=U(T/B),F*=B),typeof L=="number"&&(B=L|0,B<0?(j+=O*(C-1),C=U(-C/B)):C=U(C/B),O*=B),new b(this.data,u,T,C,_,F,O,j)},M.transpose=function(g,k,L){g=g===void 0?0:g|0,k=k===void 0?1:k|0,L=L===void 0?2:L|0;var u=this.shape,T=this.stride;return new b(this.data,u[g],u[k],u[L],T[g],T[k],T[L],this.offset)},M.pick=function(g,k,L){var u=[],T=[],C=this.offset;typeof g=="number"&&g>=0?C=C+this.stride[0]*g|0:(u.push(this.shape[0]),T.push(this.stride[0])),typeof k=="number"&&k>=0?C=C+this.stride[1]*k|0:(u.push(this.shape[1]),T.push(this.stride[1])),typeof L=="number"&&L>=0?C=C+this.stride[2]*L|0:(u.push(this.shape[2]),T.push(this.stride[2]));var _=h[u.length+1];return _(this.data,u,T,C)},function(g,k,L,u){return new b(g,k[0],k[1],k[2],L[0],L[1],L[2],u)}},4:function(l,h,d){function b(g,k,L,u,T,C,_,F,O,j){this.data=g,this.shape=[k,L,u,T],this.stride=[C,_,F,O],this.offset=j|0}var M=b.prototype;return M.dtype=l,M.dimension=4,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(M,"order",{get:d}),M.set=function(g,k,L,u,T){return l==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u,T):this.data[this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u]=T},M.get=function(g,k,L,u){return l==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u):this.data[this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u]},M.index=function(g,k,L,u){return this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u},M.hi=function(g,k,L,u){return new b(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof L!="number"||L<0?this.shape[2]:L|0,typeof u!="number"||u<0?this.shape[3]:u|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},M.lo=function(g,k,L,u){var T=this.offset,C=0,_=this.shape[0],F=this.shape[1],O=this.shape[2],j=this.shape[3],B=this.stride[0],U=this.stride[1],P=this.stride[2],N=this.stride[3];return typeof g=="number"&&g>=0&&(C=g|0,T+=B*C,_-=C),typeof k=="number"&&k>=0&&(C=k|0,T+=U*C,F-=C),typeof L=="number"&&L>=0&&(C=L|0,T+=P*C,O-=C),typeof u=="number"&&u>=0&&(C=u|0,T+=N*C,j-=C),new b(this.data,_,F,O,j,B,U,P,N,T)},M.step=function(g,k,L,u){var T=this.shape[0],C=this.shape[1],_=this.shape[2],F=this.shape[3],O=this.stride[0],j=this.stride[1],B=this.stride[2],U=this.stride[3],P=this.offset,N=0,V=Math.ceil;return typeof g=="number"&&(N=g|0,N<0?(P+=O*(T-1),T=V(-T/N)):T=V(T/N),O*=N),typeof k=="number"&&(N=k|0,N<0?(P+=j*(C-1),C=V(-C/N)):C=V(C/N),j*=N),typeof L=="number"&&(N=L|0,N<0?(P+=B*(_-1),_=V(-_/N)):_=V(_/N),B*=N),typeof u=="number"&&(N=u|0,N<0?(P+=U*(F-1),F=V(-F/N)):F=V(F/N),U*=N),new b(this.data,T,C,_,F,O,j,B,U,P)},M.transpose=function(g,k,L,u){g=g===void 0?0:g|0,k=k===void 0?1:k|0,L=L===void 0?2:L|0,u=u===void 0?3:u|0;var T=this.shape,C=this.stride;return new b(this.data,T[g],T[k],T[L],T[u],C[g],C[k],C[L],C[u],this.offset)},M.pick=function(g,k,L,u){var T=[],C=[],_=this.offset;typeof g=="number"&&g>=0?_=_+this.stride[0]*g|0:(T.push(this.shape[0]),C.push(this.stride[0])),typeof k=="number"&&k>=0?_=_+this.stride[1]*k|0:(T.push(this.shape[1]),C.push(this.stride[1])),typeof L=="number"&&L>=0?_=_+this.stride[2]*L|0:(T.push(this.shape[2]),C.push(this.stride[2])),typeof u=="number"&&u>=0?_=_+this.stride[3]*u|0:(T.push(this.shape[3]),C.push(this.stride[3]));var F=h[T.length+1];return F(this.data,T,C,_)},function(g,k,L,u){return new b(g,k[0],k[1],k[2],k[3],L[0],L[1],L[2],L[3],u)}},5:function(l,h,d){function b(g,k,L,u,T,C,_,F,O,j,B,U){this.data=g,this.shape=[k,L,u,T,C],this.stride=[_,F,O,j,B],this.offset=U|0}var M=b.prototype;return M.dtype=l,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:d}),M.set=function(g,k,L,u,T,C){return l==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u+this.stride[4]*T,C):this.data[this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u+this.stride[4]*T]=C},M.get=function(g,k,L,u,T){return l==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u+this.stride[4]*T):this.data[this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u+this.stride[4]*T]},M.index=function(g,k,L,u,T){return this.offset+this.stride[0]*g+this.stride[1]*k+this.stride[2]*L+this.stride[3]*u+this.stride[4]*T},M.hi=function(g,k,L,u,T){return new b(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof L!="number"||L<0?this.shape[2]:L|0,typeof u!="number"||u<0?this.shape[3]:u|0,typeof T!="number"||T<0?this.shape[4]:T|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(g,k,L,u,T){var C=this.offset,_=0,F=this.shape[0],O=this.shape[1],j=this.shape[2],B=this.shape[3],U=this.shape[4],P=this.stride[0],N=this.stride[1],V=this.stride[2],Y=this.stride[3],K=this.stride[4];return typeof g=="number"&&g>=0&&(_=g|0,C+=P*_,F-=_),typeof k=="number"&&k>=0&&(_=k|0,C+=N*_,O-=_),typeof L=="number"&&L>=0&&(_=L|0,C+=V*_,j-=_),typeof u=="number"&&u>=0&&(_=u|0,C+=Y*_,B-=_),typeof T=="number"&&T>=0&&(_=T|0,C+=K*_,U-=_),new b(this.data,F,O,j,B,U,P,N,V,Y,K,C)},M.step=function(g,k,L,u,T){var C=this.shape[0],_=this.shape[1],F=this.shape[2],O=this.shape[3],j=this.shape[4],B=this.stride[0],U=this.stride[1],P=this.stride[2],N=this.stride[3],V=this.stride[4],Y=this.offset,K=0,nt=Math.ceil;return typeof g=="number"&&(K=g|0,K<0?(Y+=B*(C-1),C=nt(-C/K)):C=nt(C/K),B*=K),typeof k=="number"&&(K=k|0,K<0?(Y+=U*(_-1),_=nt(-_/K)):_=nt(_/K),U*=K),typeof L=="number"&&(K=L|0,K<0?(Y+=P*(F-1),F=nt(-F/K)):F=nt(F/K),P*=K),typeof u=="number"&&(K=u|0,K<0?(Y+=N*(O-1),O=nt(-O/K)):O=nt(O/K),N*=K),typeof T=="number"&&(K=T|0,K<0?(Y+=V*(j-1),j=nt(-j/K)):j=nt(j/K),V*=K),new b(this.data,C,_,F,O,j,B,U,P,N,V,Y)},M.transpose=function(g,k,L,u,T){g=g===void 0?0:g|0,k=k===void 0?1:k|0,L=L===void 0?2:L|0,u=u===void 0?3:u|0,T=T===void 0?4:T|0;var C=this.shape,_=this.stride;return new b(this.data,C[g],C[k],C[L],C[u],C[T],_[g],_[k],_[L],_[u],_[T],this.offset)},M.pick=function(g,k,L,u,T){var C=[],_=[],F=this.offset;typeof g=="number"&&g>=0?F=F+this.stride[0]*g|0:(C.push(this.shape[0]),_.push(this.stride[0])),typeof k=="number"&&k>=0?F=F+this.stride[1]*k|0:(C.push(this.shape[1]),_.push(this.stride[1])),typeof L=="number"&&L>=0?F=F+this.stride[2]*L|0:(C.push(this.shape[2]),_.push(this.stride[2])),typeof u=="number"&&u>=0?F=F+this.stride[3]*u|0:(C.push(this.shape[3]),_.push(this.stride[3])),typeof T=="number"&&T>=0?F=F+this.stride[4]*T|0:(C.push(this.shape[4]),_.push(this.stride[4]));var O=h[C.length+1];return O(this.data,C,_,F)},function(g,k,L,u){return new b(g,k[0],k[1],k[2],k[3],k[4],L[0],L[1],L[2],L[3],L[4],u)}}};function m(l,h){var d=n[h===-1?"T":String(h)];return h===-1?d(l):h===0?d(l,f[l][0]):d(l,f[l],s)}function x(l){if(r(l))return"buffer";if(o)switch(Object.prototype.toString.call(l)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(l)?"array":"generic"}var f={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function v(l,h,d,b){if(l===void 0){var T=f.array[0];return T([])}else typeof l=="number"&&(l=[l]);h===void 0&&(h=[l.length]);var M=h.length;if(d===void 0){d=Array(M);for(var g=M-1,k=1;g>=0;--g)d[g]=k,k*=h[g]}if(b===void 0){b=0;for(var g=0;g>>0;p.exports=s;function s(n,m){if(isNaN(n)||isNaN(m))return NaN;if(n===m)return n;if(n===0)return m<0?-o:o;var x=r.hi(n),f=r.lo(n);return m>n==n>0?f===a?(x+=1,f=0):f+=1:f===0?(f=a,--x):--f,r.pack(f,x)}}),8406:(function(p,c){var i=1e-6,r=1e-6;c.vertexNormals=function(o,a,s){for(var n=a.length,m=Array(n),x=s===void 0?i:s,f=0;fx)for(var F=m[h],O=1/Math.sqrt(u*C),_=0;_<3;++_){var j=(_+1)%3,B=(_+2)%3;F[_]+=O*(T[j]*L[B]-T[B]*L[j])}}for(var f=0;fx)for(var O=1/Math.sqrt(U),_=0;_<3;++_)F[_]*=O;else for(var _=0;_<3;++_)F[_]=0}return m},c.faceNormals=function(o,a,s){for(var n=o.length,m=Array(n),x=s===void 0?r:s,f=0;fx?1/Math.sqrt(g):0;for(var h=0;h<3;++h)M[h]*=g;m[f]=M}return m}}),4081:(function(p){p.exports=c;function c(i,r,o,a,s,n,m,x,f,v){var l=r+n+v;if(h>0){var h=Math.sqrt(l+1);i[0]=.5*(m-f)/h,i[1]=.5*(x-a)/h,i[2]=.5*(o-n)/h,i[3]=.5*h}else{var d=Math.max(r,n,v),h=Math.sqrt(2*d-l+1);r>=d?(i[0]=.5*h,i[1]=.5*(s+o)/h,i[2]=.5*(x+a)/h,i[3]=.5*(m-f)/h):n>=d?(i[0]=.5*(o+s)/h,i[1]=.5*h,i[2]=.5*(f+m)/h,i[3]=.5*(x-a)/h):(i[0]=.5*(a+x)/h,i[1]=.5*(m+f)/h,i[2]=.5*h,i[3]=.5*(o-s)/h)}return i}}),9977:(function(p,c,i){p.exports=h;var r=i(9215),o=i(6582),a=i(7399),s=i(7608),n=i(4081);function m(d,b,M){return Math.sqrt(d**2+b**2+M**2)}function x(d,b,M,g){return Math.sqrt(d**2+b**2+M**2+g**2)}function f(d,b){var M=b[0],g=b[1],k=b[2],L=b[3],u=x(M,g,k,L);u>1e-6?(d[0]=M/u,d[1]=g/u,d[2]=k/u,d[3]=L/u):(d[0]=d[1]=d[2]=0,d[3]=1)}function v(d,b,M){this.radius=r([M]),this.center=r(b),this.rotation=r(d),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var l=v.prototype;l.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},l.recalcMatrix=function(d){this.radius.curve(d),this.center.curve(d),this.rotation.curve(d);var b=this.computedRotation;f(b,b);var M=this.computedMatrix;a(M,b);var g=this.computedCenter,k=this.computedEye,L=this.computedUp,u=Math.exp(this.computedRadius[0]);k[0]=g[0]+u*M[2],k[1]=g[1]+u*M[6],k[2]=g[2]+u*M[10],L[0]=M[1],L[1]=M[5],L[2]=M[9];for(var T=0;T<3;++T){for(var C=0,_=0;_<3;++_)C+=M[T+4*_]*k[_];M[12+T]=-C}},l.getMatrix=function(d,b){this.recalcMatrix(d);var M=this.computedMatrix;if(b){for(var g=0;g<16;++g)b[g]=M[g];return b}return M},l.idle=function(d){this.center.idle(d),this.radius.idle(d),this.rotation.idle(d)},l.flush=function(d){this.center.flush(d),this.radius.flush(d),this.rotation.flush(d)},l.pan=function(d,b,M,g){b||(b=0),M||(M=0),g||(g=0),this.recalcMatrix(d);var k=this.computedMatrix,L=k[1],u=k[5],T=k[9],C=m(L,u,T);L/=C,u/=C,T/=C;var _=k[0],F=k[4],O=k[8],j=_*L+F*u+O*T;_-=L*j,F-=u*j,O-=T*j;var B=m(_,F,O);_/=B,F/=B,O/=B;var U=k[2],P=k[6],N=k[10],V=U*L+P*u+N*T,Y=U*_+P*F+N*O;U-=V*L+Y*_,P-=V*u+Y*F,N-=V*T+Y*O;var K=m(U,P,N);U/=K,P/=K,N/=K;var nt=_*b+L*M,ft=F*b+u*M,ct=O*b+T*M;this.center.move(d,nt,ft,ct);var J=Math.exp(this.computedRadius[0]);J=Math.max(1e-4,J+g),this.radius.set(d,Math.log(J))},l.rotate=function(d,b,M,g){this.recalcMatrix(d),b||(b=0),M||(M=0);var k=this.computedMatrix,L=k[0],u=k[4],T=k[8],C=k[1],_=k[5],F=k[9],O=k[2],j=k[6],B=k[10],U=b*L+M*C,P=b*u+M*_,N=b*T+M*F,V=-(j*N-B*P),Y=-(B*U-O*N),K=-(O*P-j*U),nt=Math.sqrt(Math.max(0,1-V**2-Y**2-K**2)),ft=x(V,Y,K,nt);ft>1e-6?(V/=ft,Y/=ft,K/=ft,nt/=ft):(V=Y=K=0,nt=1);var ct=this.computedRotation,J=ct[0],et=ct[1],Q=ct[2],Z=ct[3],st=J*nt+Z*V+et*K-Q*Y,ot=et*nt+Z*Y+Q*V-J*K,rt=Q*nt+Z*K+J*Y-et*V,X=Z*nt-J*V-et*Y-Q*K;if(g){V=O,Y=j,K=B;var ut=Math.sin(g)/m(V,Y,K);V*=ut,Y*=ut,K*=ut,nt=Math.cos(b),st=st*nt+X*V+ot*K-rt*Y,ot=ot*nt+X*Y+rt*V-st*K,rt=rt*nt+X*K+st*Y-ot*V,X=X*nt-st*V-ot*Y-rt*K}var lt=x(st,ot,rt,X);lt>1e-6?(st/=lt,ot/=lt,rt/=lt,X/=lt):(st=ot=rt=0,X=1),this.rotation.set(d,st,ot,rt,X)},l.lookAt=function(d,b,M,g){this.recalcMatrix(d),M||(M=this.computedCenter),b||(b=this.computedEye),g||(g=this.computedUp);var k=this.computedMatrix;o(k,b,M,g);var L=this.computedRotation;n(L,k[0],k[1],k[2],k[4],k[5],k[6],k[8],k[9],k[10]),f(L,L),this.rotation.set(d,L[0],L[1],L[2],L[3]);for(var u=0,T=0;T<3;++T)u+=(M[T]-b[T])**2;this.radius.set(d,.5*Math.log(Math.max(u,1e-6))),this.center.set(d,M[0],M[1],M[2])},l.translate=function(d,b,M,g){this.center.move(d,b||0,M||0,g||0)},l.setMatrix=function(d,b){var M=this.computedRotation;n(M,b[0],b[1],b[2],b[4],b[5],b[6],b[8],b[9],b[10]),f(M,M),this.rotation.set(d,M[0],M[1],M[2],M[3]);var g=this.computedMatrix;s(g,b);var k=g[15];if(Math.abs(k)>1e-6){var L=g[12]/k,u=g[13]/k,T=g[14]/k;this.recalcMatrix(d);var C=Math.exp(this.computedRadius[0]);this.center.set(d,L-g[2]*C,u-g[6]*C,T-g[10]*C),this.radius.idle(d)}else this.center.idle(d),this.radius.idle(d)},l.setDistance=function(d,b){b>0&&this.radius.set(d,Math.log(b))},l.setDistanceLimits=function(d,b){d=d>0?Math.log(d):-1/0,b=b>0?Math.log(b):1/0,b=Math.max(b,d),this.radius.bounds[0][0]=d,this.radius.bounds[1][0]=b},l.getDistanceLimits=function(d){var b=this.radius.bounds;return d?(d[0]=Math.exp(b[0][0]),d[1]=Math.exp(b[1][0]),d):[Math.exp(b[0][0]),Math.exp(b[1][0])]},l.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},l.fromJSON=function(d){var b=this.lastT(),M=d.center;M&&this.center.set(b,M[0],M[1],M[2]);var g=d.rotation;g&&this.rotation.set(b,g[0],g[1],g[2],g[3]);var k=d.distance;k&&k>0&&this.radius.set(b,Math.log(k)),this.setDistanceLimits(d.zoomMin,d.zoomMax)};function h(d){d||(d={});var b=d.center||[0,0,0],M=d.rotation||[0,0,0,1],g=d.radius||1;b=[].slice.call(b,0,3),M=[].slice.call(M,0,4),f(M,M);var k=new v(M,b,Math.log(g));return k.setDistanceLimits(d.zoomMin,d.zoomMax),("eye"in d||"up"in d)&&k.lookAt(0,d.eye,d.center,d.up),k}}),1371:(function(p,c,i){var r=i(3233);p.exports=function(o,a,s){return s=s===void 0?" ":s+"",r(s,a)+o}}),3202:(function(p){p.exports=function(c,i){return i||(i=[0,""]),c=String(c),i[0]=parseFloat(c,10),i[1]=c.match(/[\d.\-\+]*\s*(.*)/)[1]||"",i}}),3088:(function(p,c,i){p.exports=o;var r=i(3140);function o(a,s){for(var n=s.length|0,m=a.length,x=[Array(n),Array(n)],f=0;f0){_=x[j][T][0],O=j;break}F=_[O^1];for(var B=0;B<2;++B)for(var U=x[B][T],P=0;P0&&(_=N,F=V,O=B)}return C||_&&h(_,O),F}function b(u,T){var C=x[T][u][0],_=[u];h(C,T);for(var F=C[T^1];;){for(;F!==u;)_.push(F),F=d(_[_.length-2],F,!1);if(x[0][u].length+x[1][u].length===0)break;var O=_[_.length-1],j=u,B=_[1],U=d(O,j,!0);if(r(s[O],s[j],s[B],s[U])<0)break;_.push(u),F=d(O,j)}return _}function M(u,T){return T[1]===T[T.length-1]}for(var f=0;f0;){x[0][f].length;var L=b(f,g);M(k,L)?k.push.apply(k,L):(k.length>0&&l.push(k),k=L)}k.length>0&&l.push(k)}return l}}),5609:(function(p,c,i){p.exports=o;var r=i(3134);function o(a,s){for(var n=r(a,s.length),m=Array(s.length),x=Array(s.length),f=[],v=0;v0;){var h=f.pop();m[h]=!1;for(var d=n[h],v=0;v0}L=L.filter(u);for(var T=L.length,C=Array(T),_=Array(T),k=0;k0;){var X=ot.pop(),ut=nt[X];m(ut,function(Ot,Ht){return Ot-Ht});var lt=ut.length,yt=rt[X],kt;if(yt===0){var U=L[X];kt=[U]}for(var k=0;k=0)&&(rt[Lt]=yt^1,ot.push(Lt),yt===0)){var U=L[Lt];st(U)||(U.reverse(),kt.push(U))}}yt===0&&b.push(kt)}return b}}),5085:(function(p,c,i){p.exports=d;var r=i(3250)[3],o=i(4209),a=i(3352),s=i(2478);function n(){return!0}function m(b){return function(M,g){var k=b[M];return k?!!k.queryPoint(g,n):!1}}function x(b){for(var M={},g=0;g0&&M[k]===g[0])L=b[k-1];else return 1;for(var u=1;L;){var T=L.key,C=r(g,T[0],T[1]);if(T[0][0]0)u=-1,L=L.right;else return 0;else if(C>0)L=L.left;else if(C<0)u=1,L=L.right;else return 0}return u}}function v(b){return 1}function l(b){return function(M){return b(M[0],M[1])?0:1}}function h(b,M){return function(g){return b(g[0],g[1])?0:M(g)}}function d(b){for(var M=b.length,g=[],k=[],L=0;L=v?(T=1,_=v+2*d+M):(T=-d/v,_=d*T+M)):(T=0,b>=0?(C=0,_=M):-b>=h?(C=1,_=h+2*b+M):(C=-b/h,_=b*C+M));else if(C<0)C=0,d>=0?(T=0,_=M):-d>=v?(T=1,_=v+2*d+M):(T=-d/v,_=d*T+M);else{var F=1/u;T*=F,C*=F,_=T*(v*T+l*C+2*d)+C*(l*T+h*C+2*b)+M}else{var O,j,B,U;T<0?(O=l+d,j=h+b,j>O?(B=j-O,U=v-2*l+h,B>=U?(T=1,C=0,_=v+2*d+M):(T=B/U,C=1-T,_=T*(v*T+l*C+2*d)+C*(l*T+h*C+2*b)+M)):(T=0,j<=0?(C=1,_=h+2*b+M):b>=0?(C=0,_=M):(C=-b/h,_=b*C+M))):C<0?(O=l+b,j=v+d,j>O?(B=j-O,U=v-2*l+h,B>=U?(C=1,T=0,_=h+2*b+M):(C=B/U,T=1-C,_=T*(v*T+l*C+2*d)+C*(l*T+h*C+2*b)+M)):(C=0,j<=0?(T=1,_=v+2*d+M):d>=0?(T=0,_=M):(T=-d/v,_=d*T+M))):(B=h+b-l-d,B<=0?(T=0,C=1,_=h+2*b+M):(U=v-2*l+h,B>=U?(T=1,C=0,_=v+2*d+M):(T=B/U,C=1-T,_=T*(v*T+l*C+2*d)+C*(l*T+h*C+2*b)+M)))}for(var P=1-T-C,f=0;f0){var h=n[x-1];if(r(v,h)===0&&a(h)!==l){--x;continue}}n[x++]=v}}return n.length=x,n}}),3233:(function(p){var c="",i;p.exports=r;function r(o,a){if(typeof o!="string")throw TypeError("expected a string");if(a===1)return o;if(a===2)return o+o;var s=o.length*a;if(i!==o||i===void 0)i=o,c="";else if(c.length>=s)return c.substr(0,s);for(;s>c.length&&a>1;)a&1&&(c+=o),a>>=1,o+=o;return c+=o,c=c.substr(0,s),c}}),3025:(function(p,c,i){p.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}),7004:(function(p){p.exports=c;function c(i){for(var r=i.length,o=i[i.length-1],a=r,s=r-2;s>=0;--s){var n=o,m=i[s];o=n+m;var x=o-n,f=m-x;f&&(i[--a]=o,o=f)}for(var v=0,s=a;s0){if(O<=0)return j;B=F+O}else if(F<0){if(O>=0)return j;B=-(F+O)}else return j;var U=x*B;return j>=U||j<=-U?j:b(T,C,_)},function(T,C,_,F){var O=T[0]-F[0],j=C[0]-F[0],B=_[0]-F[0],U=T[1]-F[1],P=C[1]-F[1],N=_[1]-F[1],V=T[2]-F[2],Y=C[2]-F[2],K=_[2]-F[2],nt=j*N,ft=B*P,ct=B*U,J=O*N,et=O*P,Q=j*U,Z=V*(nt-ft)+Y*(ct-J)+K*(et-Q),st=f*((Math.abs(nt)+Math.abs(ft))*Math.abs(V)+(Math.abs(ct)+Math.abs(J))*Math.abs(Y)+(Math.abs(et)+Math.abs(Q))*Math.abs(K));return Z>st||-Z>st?Z:M(T,C,_,F)}];function k(T){var C=g[T.length];return C||(C=g[T.length]=d(T.length)),C.apply(void 0,T)}function L(T,C,_,F,O,j,B){return function(U,P,N,V,Y){switch(arguments.length){case 0:case 1:return 0;case 2:return F(U,P);case 3:return O(U,P,N);case 4:return j(U,P,N,V);case 5:return B(U,P,N,V,Y)}for(var K=Array(arguments.length),nt=0;nt0&&v>0||f<0&&v<0)return!1;var l=r(m,s,n),h=r(x,s,n);return l>0&&h>0||l<0&&h<0?!1:f===0&&v===0&&l===0&&h===0?o(s,n,m,x):!0}}),8545:(function(p){p.exports=i;function c(r,o){var a=r+o,s=a-r,n=a-s,m=o-s,x=r-n+m;return x?[x,a]:[a]}function i(r,o){var a=r.length|0,s=o.length|0;if(a===1&&s===1)return c(r[0],-o[0]);var n=a+s,m=Array(n),x=0,f=0,v=0,l=Math.abs,h=r[f],d=l(h),b=-o[v],M=l(b),g,k;d=s?(g=h,f+=1,f=s?(g=h,f+=1,f>1,d=s[2*h+1];if(d===f)return h;f>1,d=s[2*h+1];if(d===f)return h;f>1,d=s[2*h+1];if(d===f)return h;f0)-(a<0)},c.abs=function(a){var s=a>>i-1;return(a^s)-s},c.min=function(a,s){return s^(a^s)&-(a65535)<<4,n;return a>>>=s,n=(a>255)<<3,a>>>=n,s|=n,n=(a>15)<<2,a>>>=n,s|=n,n=(a>3)<<1,a>>>=n,s|=n,s|a>>1},c.log10=function(a){return a>=1e9?9:a>=1e8?8:a>=1e7?7:a>=1e6?6:a>=1e5?5:a>=1e4?4:a>=1e3?3:a>=100?2:a>=10?1:0},c.popCount=function(a){return a-=a>>>1&1431655765,a=(a&858993459)+(a>>>2&858993459),(a+(a>>>4)&252645135)*16843009>>>24};function r(a){var s=32;return a&=-a,a&&s--,a&65535&&(s-=16),a&16711935&&(s-=8),a&252645135&&(s-=4),a&858993459&&(s-=2),a&1431655765&&--s,s}c.countTrailingZeros=r,c.nextPow2=function(a){return a+=a===0,--a,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a+1},c.prevPow2=function(a){return a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a-(a>>>1)},c.parity=function(a){return a^=a>>>16,a^=a>>>8,a^=a>>>4,a&=15,27030>>>a&1};var o=Array(256);(function(a){for(var s=0;s<256;++s){var n=s,m=s,x=7;for(n>>>=1;n;n>>>=1)m<<=1,m|=n&1,--x;a[s]=m<>>8&255]<<16|o[a>>>16&255]<<8|o[a>>>24&255]},c.interleave2=function(a,s){return a&=65535,a=(a|a<<8)&16711935,a=(a|a<<4)&252645135,a=(a|a<<2)&858993459,a=(a|a<<1)&1431655765,s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,a|s<<1},c.deinterleave2=function(a,s){return a=a>>>s&1431655765,a=(a|a>>>1)&858993459,a=(a|a>>>2)&252645135,a=(a|a>>>4)&16711935,a=(a|a>>>16)&65535,a<<16>>16},c.interleave3=function(a,s,n){return a&=1023,a=(a|a<<16)&4278190335,a=(a|a<<8)&251719695,a=(a|a<<4)&3272356035,a=(a|a<<2)&1227133513,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,a|=s<<1,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,a|n<<2},c.deinterleave3=function(a,s){return a=a>>>s&1227133513,a=(a|a>>>2)&3272356035,a=(a|a>>>4)&251719695,a=(a|a>>>8)&4278190335,a=(a|a>>>16)&1023,a<<22>>22},c.nextCombination=function(a){var s=a|a-1;return s+1|(~s&-~s)-1>>>r(a)+1}}),2014:(function(p,c,i){"use restrict";var r=i(3105),o=i(4623);function a(T){for(var C=0,_=Math.max,F=0,O=T.length;F>1,B=m(T[j],C);B<=0?(B===0&&(O=j),_=j+1):B>0&&(F=j-1)}return O}c.findCell=l;function h(T,C){for(var _=Array(T.length),F=0,O=_.length;F=T.length||m(T[nt],j)!==0););}return _}c.incidence=h;function d(T,C){if(!C)return h(v(M(T,0)),T,0);for(var _=Array(C),F=0;F>>N&1&&P.push(O[N]);C.push(P)}return f(C)}c.explode=b;function M(T,C){if(C<0)return[];for(var _=[],F=(1<>1:(ct>>1)-1}function F(ct){for(var J=C(ct);;){var et=J,Q=2*ct+1,Z=2*(ct+1),st=ct;if(Q0;){var et=_(ct);if(et>=0&&J0){var ct=P[0];return T(0,V-1),--V,F(0),ct}return-1}function B(ct,J){var et=P[ct];return d[et]===J?ct:(d[et]=-1/0,O(ct),j(),d[et]=J,V+=1,O(V-1))}function U(ct){if(!b[ct]){b[ct]=!0;var J=l[ct],et=h[ct];l[et]>=0&&(l[et]=J),h[J]>=0&&(h[J]=et),N[J]>=0&&B(N[J],u(J)),N[et]>=0&&B(N[et],u(et))}}for(var P=[],N=Array(f),M=0;M>1;M>=0;--M)F(M);for(;;){var Y=j();if(Y<0||d[Y]>x)break;U(Y)}for(var K=[],M=0;M=0&&et>=0&&J!==et){var Q=N[J],Z=N[et];Q!==Z&&ft.push([Q,Z])}}),o.unique(o.normalize(ft)),{positions:K,edges:ft}}}),1303:(function(p,c,i){p.exports=a;var r=i(3250);function o(s,n){var m,x;if(n[0][0]n[1][0])m=n[1],x=n[0];else{var f=Math.min(s[0][1],s[1][1]),v=Math.max(s[0][1],s[1][1]),l=Math.min(n[0][1],n[1][1]),h=Math.max(n[0][1],n[1][1]);return vh?f-h:v-h}var d,b;s[0][1]n[1][0])m=n[1],x=n[0];else return o(n,s);var f,v;if(s[0][0]s[1][0])f=s[1],v=s[0];else return-o(s,n);var l=r(m,x,v),h=r(m,x,f);if(l<0){if(h<=0)return l}else if(l>0){if(h>=0)return l}else if(h)return h;if(l=r(v,f,x),h=r(v,f,m),l<0){if(h<=0)return l}else if(l>0){if(h>=0)return l}else if(h)return h;return x[0]-v[0]}}),4209:(function(p,c,i){p.exports=h;var r=i(2478),o=i(3840),a=i(3250),s=i(1303);function n(d,b,M){this.slabs=d,this.coordinates=b,this.horizontal=M}var m=n.prototype;function x(d,b){return d.y-b}function f(d,b){for(var M=null;d;){var g=d.key,k,L;g[0][0]0)if(b[0]!==g[1][0])M=d,d=d.right;else{var T=f(d.right,b);if(T)return T;d=d.left}else{if(b[0]!==g[1][0])return d;var T=f(d.right,b);if(T)return T;d=d.left}}return M}m.castUp=function(d){var b=r.le(this.coordinates,d[0]);if(b<0)return-1;this.slabs[b];var M=f(this.slabs[b],d),g=-1;if(M&&(g=M.value),this.coordinates[b]===d[0]){var k=null;if(M&&(k=M.key),b>0){var L=f(this.slabs[b-1],d);L&&(k?s(L.key,k)>0&&(k=L.key,g=L.value):(g=L.value,k=L.key))}var u=this.horizontal[b];if(u.length>0){var T=r.ge(u,d[1],x);if(T=u.length)return g;C=u[T]}}if(C.start)if(k){var _=a(k[0],k[1],[d[0],C.y]);k[0][0]>k[1][0]&&(_=-_),_>0&&(g=C.index)}else g=C.index;else C.y!==d[1]&&(g=C.index)}}}return g};function v(d,b,M,g){this.y=d,this.index=b,this.start=M,this.closed=g}function l(d,b,M,g){this.x=d,this.segment=b,this.create=M,this.index=g}function h(d){for(var b=d.length,M=2*b,g=Array(M),k=0;k1&&(b=1);for(var M=1-b,g=f.length,k=Array(g),L=0;L0||d>0&&k<0){var L=s(b,k,M,d);l.push(L),h.push(L.slice())}k<0?h.push(M.slice()):k>0?l.push(M.slice()):(l.push(M.slice()),h.push(M.slice())),d=k}return{positive:l,negative:h}}function m(f,v){for(var l=[],h=a(f[f.length-1],v),d=f[f.length-1],b=f[0],M=0;M0||h>0&&g<0)&&l.push(s(d,g,b,h)),g>=0&&l.push(b.slice()),h=g}return l}function x(f,v){for(var l=[],h=a(f[f.length-1],v),d=f[f.length-1],b=f[0],M=0;M0||h>0&&g<0)&&l.push(s(d,g,b,h)),g<=0&&l.push(b.slice()),h=g}return l}}),3387:(function(p,c,i){var r;(function(){var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(f){return n(x(f),arguments)}function s(f,v){return a.apply(null,[f].concat(v||[]))}function n(f,v){var l=1,h=f.length,d,b="",M,g,k,L,u,T,C,_;for(M=0;M=0),k.type){case"b":d=parseInt(d,10).toString(2);break;case"c":d=String.fromCharCode(parseInt(d,10));break;case"d":case"i":d=parseInt(d,10);break;case"j":d=JSON.stringify(d,null,k.width?parseInt(k.width):0);break;case"e":d=k.precision?parseFloat(d).toExponential(k.precision):parseFloat(d).toExponential();break;case"f":d=k.precision?parseFloat(d).toFixed(k.precision):parseFloat(d);break;case"g":d=k.precision?String(Number(d.toPrecision(k.precision))):parseFloat(d);break;case"o":d=(parseInt(d,10)>>>0).toString(8);break;case"s":d=String(d),d=k.precision?d.substring(0,k.precision):d;break;case"t":d=String(!!d),d=k.precision?d.substring(0,k.precision):d;break;case"T":d=Object.prototype.toString.call(d).slice(8,-1).toLowerCase(),d=k.precision?d.substring(0,k.precision):d;break;case"u":d=parseInt(d,10)>>>0;break;case"v":d=d.valueOf(),d=k.precision?d.substring(0,k.precision):d;break;case"x":d=(parseInt(d,10)>>>0).toString(16);break;case"X":d=(parseInt(d,10)>>>0).toString(16).toUpperCase();break}o.json.test(k.type)?b+=d:(o.number.test(k.type)&&(!C||k.sign)?(_=C?"+":"-",d=d.toString().replace(o.sign,"")):_="",u=k.pad_char?k.pad_char==="0"?"0":k.pad_char.charAt(1):" ",T=k.width-(_+d).length,L=k.width&&T>0?u.repeat(T):"",b+=k.align?_+d+L:u==="0"?_+L+d:L+_+d)}return b}var m=Object.create(null);function x(f){if(m[f])return m[f];for(var v=f,l,h=[],d=0;v;){if((l=o.text.exec(v))!==null)h.push(l[0]);else if((l=o.modulo.exec(v))!==null)h.push("%");else if((l=o.placeholder.exec(v))!==null){if(l[2]){d|=1;var b=[],M=l[2],g=[];if((g=o.key.exec(M))!==null)for(b.push(g[1]);(M=M.substring(g[0].length))!=="";)if((g=o.key_access.exec(M))!==null)b.push(g[1]);else if((g=o.index_access.exec(M))!==null)b.push(g[1]);else throw SyntaxError("[sprintf] failed to parse named argument key");else throw SyntaxError("[sprintf] failed to parse named argument key");l[2]=b}else d|=2;if(d===3)throw Error("[sprintf] mixing positional and named placeholders is not (yet) supported");h.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw SyntaxError("[sprintf] unexpected placeholder");v=v.substring(l[0].length)}return m[f]=h}c.sprintf=a,c.vsprintf=s,typeof window<"u"&&(window.sprintf=a,window.vsprintf=s,r=(function(){return{sprintf:a,vsprintf:s}}).call(c,i,c,p),r!==void 0&&(p.exports=r))})()}),3711:(function(p,c,i){p.exports=x;var r=i(2640),o=i(781),a={"2d":function(f,v,l){var h=f({order:v,scalarArguments:3,getters:l==="generic"?[0]:void 0,phase:function(d,b,M,g){return d>g|0},vertex:function(d,b,M,g,k,L,u,T,C,_,F,O,j){var B=(u<<0)+(T<<1)+(C<<2)+(_<<3)|0;if(!(B===0||B===15))switch(B){case 0:F.push([d-.5,b-.5]);break;case 1:F.push([d-.25-.25*(g+M-2*j)/(M-g),b-.25-.25*(k+M-2*j)/(M-k)]);break;case 2:F.push([d-.75-.25*(-g-M+2*j)/(g-M),b-.25-.25*(L+g-2*j)/(g-L)]);break;case 3:F.push([d-.5,b-.5-.5*(k+M+L+g-4*j)/(M-k+g-L)]);break;case 4:F.push([d-.25-.25*(L+k-2*j)/(k-L),b-.75-.25*(-k-M+2*j)/(k-M)]);break;case 5:F.push([d-.5-.5*(g+M+L+k-4*j)/(M-g+k-L),b-.5]);break;case 6:F.push([d-.5-.25*(-g-M+L+k)/(g-M+k-L),b-.5-.25*(-k-M+L+g)/(k-M+g-L)]);break;case 7:F.push([d-.75-.25*(L+k-2*j)/(k-L),b-.75-.25*(L+g-2*j)/(g-L)]);break;case 8:F.push([d-.75-.25*(-L-k+2*j)/(L-k),b-.75-.25*(-L-g+2*j)/(L-g)]);break;case 9:F.push([d-.5-.25*(g+M+-L-k)/(M-g+L-k),b-.5-.25*(k+M+-L-g)/(M-k+L-g)]);break;case 10:F.push([d-.5-.5*(-g-M+-L-k+4*j)/(g-M+L-k),b-.5]);break;case 11:F.push([d-.25-.25*(-L-k+2*j)/(L-k),b-.75-.25*(k+M-2*j)/(M-k)]);break;case 12:F.push([d-.5,b-.5-.5*(-k-M+-L-g+4*j)/(k-M+L-g)]);break;case 13:F.push([d-.75-.25*(g+M-2*j)/(M-g),b-.25-.25*(-L-g+2*j)/(L-g)]);break;case 14:F.push([d-.25-.25*(-g-M+2*j)/(g-M),b-.25-.25*(-k-M+2*j)/(k-M)]);break;case 15:F.push([d-.5,b-.5]);break}},cell:function(d,b,M,g,k,L,u,T,C){k?T.push([d,b]):T.push([b,d])}});return function(d,b){var M=[],g=[];return h(d,M,g,b),{positions:M,cells:g}}}};function s(f,v){var l=a[f.length+"d"];if(l)return l(r,f,v)}function n(f,v){for(var l=o(f,v),h=l.length,d=Array(h),b=Array(h),M=0;M0&&(T+=.02);for(var _=new Float32Array(u),F=0,O=-.5*T,C=0;CMath.max(k,L)?u[2]=1:k>Math.max(g,L)?u[0]=1:u[1]=1;for(var T=0,C=0,_=0;_<3;++_)T+=M[_]*M[_],C+=u[_]*M[_];for(var _=0;_<3;++_)u[_]-=C/T*M[_];return n(u,u),u}function l(M,g,k,L,u,T,C,_){this.center=r(k),this.up=r(L),this.right=r(u),this.radius=r([T]),this.angle=r([C,_]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(M,g),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=Array(16);for(var F=0;F<16;++F)this.computedMatrix[F]=.5;this.recalcMatrix(0)}var h=l.prototype;h.setDistanceLimits=function(M,g){M=M>0?Math.log(M):-1/0,g=g>0?Math.log(g):1/0,g=Math.max(g,M),this.radius.bounds[0][0]=M,this.radius.bounds[1][0]=g},h.getDistanceLimits=function(M){var g=this.radius.bounds[0];return M?(M[0]=Math.exp(g[0][0]),M[1]=Math.exp(g[1][0]),M):[Math.exp(g[0][0]),Math.exp(g[1][0])]},h.recalcMatrix=function(M){this.center.curve(M),this.up.curve(M),this.right.curve(M),this.radius.curve(M),this.angle.curve(M);for(var g=this.computedUp,k=this.computedRight,L=0,u=0,T=0;T<3;++T)u+=g[T]*k[T],L+=g[T]*g[T];for(var C=Math.sqrt(L),_=0,T=0;T<3;++T)k[T]-=g[T]*u/L,_+=k[T]*k[T],g[T]/=C;for(var F=Math.sqrt(_),T=0;T<3;++T)k[T]/=F;var O=this.computedToward;s(O,g,k),n(O,O);for(var j=Math.exp(this.computedRadius[0]),B=this.computedAngle[0],U=this.computedAngle[1],P=Math.cos(B),N=Math.sin(B),V=Math.cos(U),Y=Math.sin(U),K=this.computedCenter,nt=P*V,ft=N*V,ct=Y,J=-P*Y,et=-N*Y,Q=V,Z=this.computedEye,st=this.computedMatrix,T=0;T<3;++T){var ot=nt*k[T]+ft*O[T]+ct*g[T];st[4*T+1]=J*k[T]+et*O[T]+Q*g[T],st[4*T+2]=ot,st[4*T+3]=0}var rt=st[1],X=st[5],ut=st[9],lt=st[2],yt=st[6],kt=st[10],Lt=X*kt-ut*yt,St=ut*lt-rt*kt,Ot=rt*yt-X*lt,Ht=x(Lt,St,Ot);Lt/=Ht,St/=Ht,Ot/=Ht,st[0]=Lt,st[4]=St,st[8]=Ot;for(var T=0;T<3;++T)Z[T]=K[T]+st[2+4*T]*j;for(var T=0;T<3;++T){for(var _=0,Kt=0;Kt<3;++Kt)_+=st[T+4*Kt]*Z[Kt];st[12+T]=-_}st[15]=1},h.getMatrix=function(M,g){this.recalcMatrix(M);var k=this.computedMatrix;if(g){for(var L=0;L<16;++L)g[L]=k[L];return g}return k};var d=[0,0,0];h.rotate=function(M,g,k,L){if(this.angle.move(M,g,k),L){this.recalcMatrix(M);var u=this.computedMatrix;d[0]=u[2],d[1]=u[6],d[2]=u[10];for(var T=this.computedUp,C=this.computedRight,_=this.computedToward,F=0;F<3;++F)u[4*F]=T[F],u[4*F+1]=C[F],u[4*F+2]=_[F];a(u,u,L,d);for(var F=0;F<3;++F)T[F]=u[4*F],C[F]=u[4*F+1];this.up.set(M,T[0],T[1],T[2]),this.right.set(M,C[0],C[1],C[2])}},h.pan=function(M,g,k,L){g||(g=0),k||(k=0),L||(L=0),this.recalcMatrix(M);var u=this.computedMatrix;Math.exp(this.computedRadius[0]);var T=u[1],C=u[5],_=u[9],F=x(T,C,_);T/=F,C/=F,_/=F;var O=u[0],j=u[4],B=u[8],U=O*T+j*C+B*_;O-=T*U,j-=C*U,B-=_*U;var P=x(O,j,B);O/=P,j/=P,B/=P;var N=O*g+T*k,V=j*g+C*k,Y=B*g+_*k;this.center.move(M,N,V,Y);var K=Math.exp(this.computedRadius[0]);K=Math.max(1e-4,K+L),this.radius.set(M,Math.log(K))},h.translate=function(M,g,k,L){this.center.move(M,g||0,k||0,L||0)},h.setMatrix=function(M,g,k,L){var u=1;typeof k=="number"&&(u=k|0),(u<0||u>3)&&(u=1);var T=(u+2)%3;(u+1)%3,g||(g=(this.recalcMatrix(M),this.computedMatrix));var C=g[u],_=g[u+4],F=g[u+8];if(L){var O=Math.abs(C),j=Math.abs(_),B=Math.abs(F),U=Math.max(O,j,B);O===U?(C=C<0?-1:1,_=F=0):B===U?(F=F<0?-1:1,C=_=0):(_=_<0?-1:1,C=F=0)}else{var P=x(C,_,F);C/=P,_/=P,F/=P}var N=g[T],V=g[T+4],Y=g[T+8],K=N*C+V*_+Y*F;N-=C*K,V-=_*K,Y-=F*K;var nt=x(N,V,Y);N/=nt,V/=nt,Y/=nt;var ft=_*Y-F*V,ct=F*N-C*Y,J=C*V-_*N,et=x(ft,ct,J);ft/=et,ct/=et,J/=et,this.center.jump(M,qt,jt,de),this.radius.idle(M),this.up.jump(M,C,_,F),this.right.jump(M,N,V,Y);var Q,Z;if(u===2){var st=g[1],ot=g[5],rt=g[9],X=st*N+ot*V+rt*Y,ut=st*ft+ot*ct+rt*J;Q=Lt<0?-Math.PI/2:Math.PI/2,Z=Math.atan2(ut,X)}else{var lt=g[2],yt=g[6],kt=g[10],Lt=lt*C+yt*_+kt*F,St=lt*N+yt*V+kt*Y,Ot=lt*ft+yt*ct+kt*J;Q=Math.asin(f(Lt)),Z=Math.atan2(Ot,St)}this.angle.jump(M,Z,Q),this.recalcMatrix(M);var Ht=g[2],Kt=g[6],Gt=g[10],Et=this.computedMatrix;o(Et,g);var At=Et[15],qt=Et[12]/At,jt=Et[13]/At,de=Et[14]/At,Xt=Math.exp(this.computedRadius[0]);this.center.jump(M,qt-Ht*Xt,jt-Kt*Xt,de-Gt*Xt)},h.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},h.idle=function(M){this.center.idle(M),this.up.idle(M),this.right.idle(M),this.radius.idle(M),this.angle.idle(M)},h.flush=function(M){this.center.flush(M),this.up.flush(M),this.right.flush(M),this.radius.flush(M),this.angle.flush(M)},h.setDistance=function(M,g){g>0&&this.radius.set(M,Math.log(g))},h.lookAt=function(M,g,k,L){this.recalcMatrix(M),g||(g=this.computedEye),k||(k=this.computedCenter),L||(L=this.computedUp);var u=L[0],T=L[1],C=L[2],_=x(u,T,C);if(!(_<1e-6)){u/=_,T/=_,C/=_;var F=g[0]-k[0],O=g[1]-k[1],j=g[2]-k[2],B=x(F,O,j);if(!(B<1e-6)){F/=B,O/=B,j/=B;var U=this.computedRight,P=U[0],N=U[1],V=U[2],Y=u*P+T*N+C*V;P-=Y*u,N-=Y*T,V-=Y*C;var K=x(P,N,V);if(!(K<.01&&(P=T*j-C*O,N=C*F-u*j,V=u*O-T*F,K=x(P,N,V),K<1e-6))){P/=K,N/=K,V/=K,this.up.set(M,u,T,C),this.right.set(M,P,N,V),this.center.set(M,k[0],k[1],k[2]),this.radius.set(M,Math.log(B));var nt=T*V-C*N,ft=C*P-u*V,ct=u*N-T*P,J=x(nt,ft,ct);nt/=J,ft/=J,ct/=J;var et=u*F+T*O+C*j,Q=P*F+N*O+V*j,Z=nt*F+ft*O+ct*j,st=Math.asin(f(et)),ot=Math.atan2(Z,Q),rt=this.angle._state,X=rt[rt.length-1],ut=rt[rt.length-2];X%=2*Math.PI;var lt=Math.abs(X+2*Math.PI-ot),yt=Math.abs(X-ot),kt=Math.abs(X-2*Math.PI-ot);lt0?N.pop():new ArrayBuffer(P)}c.mallocArrayBuffer=d;function b(U){return new Uint8Array(d(U),0,U)}c.mallocUint8=b;function M(U){return new Uint16Array(d(2*U),0,U)}c.mallocUint16=M;function g(U){return new Uint32Array(d(4*U),0,U)}c.mallocUint32=g;function k(U){return new Int8Array(d(U),0,U)}c.mallocInt8=k;function L(U){return new Int16Array(d(2*U),0,U)}c.mallocInt16=L;function u(U){return new Int32Array(d(4*U),0,U)}c.mallocInt32=u;function T(U){return new Float32Array(d(4*U),0,U)}c.mallocFloat32=c.mallocFloat=T;function C(U){return new Float64Array(d(8*U),0,U)}c.mallocFloat64=c.mallocDouble=C;function _(U){return s?new Uint8ClampedArray(d(U),0,U):b(U)}c.mallocUint8Clamped=_;function F(U){return n?new BigUint64Array(d(8*U),0,U):null}c.mallocBigUint64=F;function O(U){return m?new BigInt64Array(d(8*U),0,U):null}c.mallocBigInt64=O;function j(U){return new DataView(d(U),0,U)}c.mallocDataView=j;function B(U){U=r.nextPow2(U);var P=v[r.log2(U)];return P.length>0?P.pop():new a(U)}c.mallocBuffer=B,c.clearCache=function(){for(var U=0;U<32;++U)x.UINT8[U].length=0,x.UINT16[U].length=0,x.UINT32[U].length=0,x.INT8[U].length=0,x.INT16[U].length=0,x.INT32[U].length=0,x.FLOAT[U].length=0,x.DOUBLE[U].length=0,x.BIGUINT64[U].length=0,x.BIGINT64[U].length=0,x.UINT8C[U].length=0,f[U].length=0,v[U].length=0}}),1755:(function(p){"use restrict";p.exports=c;function c(r){this.roots=Array(r),this.ranks=Array(r);for(var o=0;o",V="",Y=N.length,K=V.length,nt=B[0]===d||B[0]===g,ft=0,ct=-K;ft>-1&&(ft=U.indexOf(N,ft),!(ft===-1||(ct=U.indexOf(V,ft+Y),ct===-1)||ct<=ft));){for(var J=ft;J=ct)P[J]=null,U=U.substr(0,J)+" "+U.substr(J+1);else if(P[J]!==null){var et=P[J].indexOf(B[0]);et===-1?P[J]+=B:nt&&(P[J]=P[J].substr(0,et+1)+(1+parseInt(P[J][et+1]))+P[J].substr(et+2))}var Q=ft+Y,Z=U.substr(Q,ct-Q).indexOf(N);ft=Z===-1?ct+K:Z}return P}function u(j,B,U){for(var P=B.textAlign||"start",N=B.textBaseline||"alphabetic",V=[1073741824,1073741824],Y=[0,0],K=j.length,nt=0;nt/g,` +`):U.replace(/\/g," ");var Y="",K=[];for(X=0;X-1?parseInt(jt[1+ye]):0,ke=Le>-1?parseInt(de[1+Le]):0;ve!==ke&&(Xt=Xt.replace(Ot(),"?px "),yt*=.75**(ke-ve),Xt=Xt.replace("?px ",Ot())),lt+=.25*et*(ke-ve)}if(V.superscripts===!0){var Pe=jt.indexOf(d),me=de.indexOf(d),be=Pe>-1?parseInt(jt[1+Pe]):0,je=me>-1?parseInt(de[1+me]):0;be!==je&&(Xt=Xt.replace(Ot(),"?px "),yt*=.75**(je-be),Xt=Xt.replace("?px ",Ot())),lt-=.25*et*(je-be)}if(V.bolds===!0){var nr=jt.indexOf(f)>-1,Vt=de.indexOf(f)>-1;!nr&&Vt&&(Xt=Qt?Xt.replace("italic ","italic bold "):"bold "+Xt),nr&&!Vt&&(Xt=Xt.replace("bold ",""))}if(V.italics===!0){var Qt=jt.indexOf(l)>-1,te=de.indexOf(l)>-1;!Qt&&te&&(Xt="italic "+Xt),Qt&&!te&&(Xt=Xt.replace("italic ",""))}B.font=Xt}for(rt=0;rt0&&(N=P.size),P.lineSpacing&&P.lineSpacing>0&&(V=P.lineSpacing),P.styletags&&P.styletags.breaklines&&(Y.breaklines=!!P.styletags.breaklines),P.styletags&&P.styletags.bolds&&(Y.bolds=!!P.styletags.bolds),P.styletags&&P.styletags.italics&&(Y.italics=!!P.styletags.italics),P.styletags&&P.styletags.subscripts&&(Y.subscripts=!!P.styletags.subscripts),P.styletags&&P.styletags.superscripts&&(Y.superscripts=!!P.styletags.superscripts)),U.font=[P.fontStyle,P.fontVariant,P.fontWeight,N+"px",P.font].filter(function(K){return K}).join(" "),U.textAlign="start",U.textBaseline="alphabetic",U.direction="ltr",F(T(B,U,j,N,V,Y),P,N)}}),1538:(function(p){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function c(T){T.permitHostObjects___&&T.permitHostObjects___(c)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=c);var i=!1;if(typeof WeakMap=="function"){var r=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var o=new r,a=Object.freeze({});if(o.set(a,1),o.get(a)!==1)i=!0;else{p.exports=WeakMap;return}}}var s=Object.getOwnPropertyNames,n=Object.defineProperty,m=Object.isExtensible,x="weakmap:",f=x+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),l=new Uint8Array(v);crypto.getRandomValues(l),f=x+"rand:"+Array.prototype.map.call(l,function(T){return(T%36).toString(36)}).join("")+"___"}function h(T){return!(T.substr(0,x.length)==x&&T.substr(T.length-3)==="___")}if(n(Object,"getOwnPropertyNames",{value:function(T){return s(T).filter(h)}}),"getPropertyNames"in Object){var d=Object.getPropertyNames;n(Object,"getPropertyNames",{value:function(T){return d(T).filter(h)}})}function b(T){if(T!==Object(T))throw TypeError("Not an object: "+T);var C=T[f];if(C&&C.key===T)return C;if(m(T)){C={key:T};try{return n(T,f,{value:C,writable:!1,enumerable:!1,configurable:!1}),C}catch{return}}}(function(){var T=Object.freeze;n(Object,"freeze",{value:function(F){return b(F),T(F)}});var C=Object.seal;n(Object,"seal",{value:function(F){return b(F),C(F)}});var _=Object.preventExtensions;n(Object,"preventExtensions",{value:function(F){return b(F),_(F)}})})();function M(T){return T.prototype=null,Object.freeze(T)}var g=!1;function k(){!g&&typeof console<"u"&&(g=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var L=0,u=function(){this instanceof u||k();var T=[],C=[],_=L++;function F(U,P){var N,V=b(U);return V?_ in V?V[_]:P:(N=T.indexOf(U),N>=0?C[N]:P)}function O(U){var P=b(U);return P?_ in P:T.indexOf(U)>=0}function j(U,P){var N,V=b(U);return V?V[_]=P:(N=T.indexOf(U),N>=0?C[N]=P:(N=T.length,C[N]=P,T[N]=U)),this}function B(U){var P=b(U),N,V;return P?_ in P&&delete P[_]:(N=T.indexOf(U),N<0?!1:(V=T.length-1,T[N]=void 0,C[N]=C[V],T[N]=T[V],T.length=V,C.length=V,!0))}return Object.create(u.prototype,{get___:{value:M(F)},has___:{value:M(O)},set___:{value:M(j)},delete___:{value:M(B)}})};u.prototype=Object.create(Object.prototype,{get:{value:function(T,C){return this.get___(T,C)},writable:!0,configurable:!0},has:{value:function(T){return this.has___(T)},writable:!0,configurable:!0},set:{value:function(T,C){return this.set___(T,C)},writable:!0,configurable:!0},delete:{value:function(T){return this.delete___(T)},writable:!0,configurable:!0}}),typeof r=="function"?(function(){i&&typeof Proxy<"u"&&(Proxy=void 0);function T(){this instanceof u||k();var C=new r,_=void 0,F=!1;function O(P,N){return _?C.has(P)?C.get(P):_.get___(P,N):C.get(P,N)}function j(P){return C.has(P)||(_?_.has___(P):!1)}var B=i?function(P,N){return C.set(P,N),C.has(P)||(_||(_=new u),_.set(P,N)),this}:function(P,N){if(F)try{C.set(P,N)}catch{_||(_=new u),_.set___(P,N)}else C.set(P,N);return this};function U(P){var N=!!C.delete(P);return _&&_.delete___(P)||N}return Object.create(u.prototype,{get___:{value:M(O)},has___:{value:M(j)},set___:{value:M(B)},delete___:{value:M(U)},permitHostObjects___:{value:M(function(P){if(P===c)F=!0;else throw Error("bogus call to permitHostObjects___")})}})}T.prototype=u.prototype,p.exports=T,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy<"u"&&(Proxy=void 0),p.exports=u)})()}),236:(function(p,c,i){var r=i(8284);p.exports=o;function o(){var a={};return function(s){if((typeof s!="object"||!s)&&typeof s!="function")throw Error("Weakmap-shim: Key must be object");var n=s.valueOf(a);return n&&n.identity===a?n:r(s,a)}}}),8284:(function(p){p.exports=c;function c(i,r){var o={identity:r},a=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(s){return s===r?o:a.apply(this,arguments)},writable:!0}),o}}),606:(function(p,c,i){var r=i(236);p.exports=o;function o(){var a=r();return{get:function(s,n){var m=a(s);return m.hasOwnProperty("value")?m.value:n},set:function(s,n){return a(s).value=n,this},has:function(s){return"value"in a(s)},delete:function(s){return delete a(s).value}}}}),3349:(function(p){function c(){return function(n,m,x,f,v,l){var h=n[0],d=x[0],b=[0],M=d;f|=0;var g=0,k=d;for(g=0;g=0!=u>=0&&v.push(b[0]+.5+.5*(L+u)/(L-u)),f+=k,++b[0]}}}function i(){return c()}var r=i;function o(n){var m={};return function(x,f,v){var l=x.dtype,h=x.order,d=[l,h.join()].join(),b=m[d];return b||(m[d]=b=n([l,h])),b(x.shape.slice(0),x.data,x.stride,x.offset|0,f,v)}}function a(n){return o(r.bind(void 0,n))}function s(n){return a({funcName:n.funcName})}p.exports=s({funcName:"zeroCrossings"})}),781:(function(p,c,i){p.exports=o;var r=i(3349);function o(a,s){var n=[];return s=+s||0,r(a.hi(a.shape[0]-1),n,s),n}}),7790:(function(){})},E={};function w(p){var c=E[p];if(c!==void 0)return c.exports;var i=E[p]={id:p,loaded:!1,exports:{}};return t[p].call(i.exports,i,i.exports,w),i.loaded=!0,i.exports}(function(){w.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){w.nmd=function(p){return p.paths=[],p.children||(p.children=[]),p}})(),tt.exports=w(1964)})()}),45708:(function(tt,G,e){function S(Vt,Qt){if(!(Vt instanceof Qt))throw TypeError("Cannot call a class as a function")}function A(Vt,Qt){for(var te=0;tev)throw RangeError('The value "'+Vt+'" is invalid for option "size"');var Qt=new Uint8Array(Vt);return Object.setPrototypeOf(Qt,d.prototype),Qt}function d(Vt,Qt,te){if(typeof Vt=="number"){if(typeof Qt=="string")throw TypeError('The "string" argument must be of type string. Received type number');return k(Vt)}return b(Vt,Qt,te)}d.poolSize=8192;function b(Vt,Qt,te){if(typeof Vt=="string")return L(Vt,Qt);if(ArrayBuffer.isView(Vt))return T(Vt);if(Vt==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(Vt));if(Pe(Vt,ArrayBuffer)||Vt&&Pe(Vt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pe(Vt,SharedArrayBuffer)||Vt&&Pe(Vt.buffer,SharedArrayBuffer)))return C(Vt,Qt,te);if(typeof Vt=="number")throw TypeError('The "value" argument must not be of type number. Received type number');var ee=Vt.valueOf&&Vt.valueOf();if(ee!=null&&ee!==Vt)return d.from(ee,Qt,te);var Bt=_(Vt);if(Bt)return Bt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Vt[Symbol.toPrimitive]=="function")return d.from(Vt[Symbol.toPrimitive]("string"),Qt,te);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(Vt))}d.from=function(Vt,Qt,te){return b(Vt,Qt,te)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function M(Vt){if(typeof Vt!="number")throw TypeError('"size" argument must be of type number');if(Vt<0)throw RangeError('The value "'+Vt+'" is invalid for option "size"')}function g(Vt,Qt,te){return M(Vt),Vt<=0||Qt===void 0?h(Vt):typeof te=="string"?h(Vt).fill(Qt,te):h(Vt).fill(Qt)}d.alloc=function(Vt,Qt,te){return g(Vt,Qt,te)};function k(Vt){return M(Vt),h(Vt<0?0:F(Vt)|0)}d.allocUnsafe=function(Vt){return k(Vt)},d.allocUnsafeSlow=function(Vt){return k(Vt)};function L(Vt,Qt){if((typeof Qt!="string"||Qt==="")&&(Qt="utf8"),!d.isEncoding(Qt))throw TypeError("Unknown encoding: "+Qt);var te=j(Vt,Qt)|0,ee=h(te),Bt=ee.write(Vt,Qt);return Bt!==te&&(ee=ee.slice(0,Bt)),ee}function u(Vt){for(var Qt=Vt.length<0?0:F(Vt.length)|0,te=h(Qt),ee=0;ee=v)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v.toString(16)+" bytes");return Vt|0}function O(Vt){return+Vt!=Vt&&(Vt=0),d.alloc(+Vt)}d.isBuffer=function(Vt){return Vt!=null&&Vt._isBuffer===!0&&Vt!==d.prototype},d.compare=function(Vt,Qt){if(Pe(Vt,Uint8Array)&&(Vt=d.from(Vt,Vt.offset,Vt.byteLength)),Pe(Qt,Uint8Array)&&(Qt=d.from(Qt,Qt.offset,Qt.byteLength)),!d.isBuffer(Vt)||!d.isBuffer(Qt))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Vt===Qt)return 0;for(var te=Vt.length,ee=Qt.length,Bt=0,Wt=Math.min(te,ee);Btee.length?(d.isBuffer(Wt)||(Wt=d.from(Wt)),Wt.copy(ee,Bt)):Uint8Array.prototype.set.call(ee,Wt,Bt);else if(d.isBuffer(Wt))Wt.copy(ee,Bt);else throw TypeError('"list" argument must be an Array of Buffers');Bt+=Wt.length}return ee};function j(Vt,Qt){if(d.isBuffer(Vt))return Vt.length;if(ArrayBuffer.isView(Vt)||Pe(Vt,ArrayBuffer))return Vt.byteLength;if(typeof Vt!="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+n(Vt));var te=Vt.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&te===0)return 0;for(var Bt=!1;;)switch(Qt){case"ascii":case"latin1":case"binary":return te;case"utf8":case"utf-8":return Xt(Vt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te*2;case"hex":return te>>>1;case"base64":return ve(Vt).length;default:if(Bt)return ee?-1:Xt(Vt).length;Qt=(""+Qt).toLowerCase(),Bt=!0}}d.byteLength=j;function B(Vt,Qt,te){var ee=!1;if((Qt===void 0||Qt<0)&&(Qt=0),Qt>this.length||((te===void 0||te>this.length)&&(te=this.length),te<=0)||(te>>>=0,Qt>>>=0,te<=Qt))return"";for(Vt||(Vt="utf8");;)switch(Vt){case"hex":return ot(this,Qt,te);case"utf8":case"utf-8":return J(this,Qt,te);case"ascii":return Z(this,Qt,te);case"latin1":case"binary":return st(this,Qt,te);case"base64":return ct(this,Qt,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,Qt,te);default:if(ee)throw TypeError("Unknown encoding: "+Vt);Vt=(Vt+"").toLowerCase(),ee=!0}}d.prototype._isBuffer=!0;function U(Vt,Qt,te){var ee=Vt[Qt];Vt[Qt]=Vt[te],Vt[te]=ee}d.prototype.swap16=function(){var Vt=this.length;if(Vt%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var Qt=0;QtQt&&(Vt+=" ... "),""},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(Vt,Qt,te,ee,Bt){if(Pe(Vt,Uint8Array)&&(Vt=d.from(Vt,Vt.offset,Vt.byteLength)),!d.isBuffer(Vt))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+n(Vt));if(Qt===void 0&&(Qt=0),te===void 0&&(te=Vt?Vt.length:0),ee===void 0&&(ee=0),Bt===void 0&&(Bt=this.length),Qt<0||te>Vt.length||ee<0||Bt>this.length)throw RangeError("out of range index");if(ee>=Bt&&Qt>=te)return 0;if(ee>=Bt)return-1;if(Qt>=te)return 1;if(Qt>>>=0,te>>>=0,ee>>>=0,Bt>>>=0,this===Vt)return 0;for(var Wt=Bt-ee,$t=te-Qt,Tt=Math.min(Wt,$t),_t=this.slice(ee,Bt),It=Vt.slice(Qt,te),Mt=0;Mt2147483647?te=2147483647:te<-2147483648&&(te=-2147483648),te=+te,me(te)&&(te=Bt?0:Vt.length-1),te<0&&(te=Vt.length+te),te>=Vt.length){if(Bt)return-1;te=Vt.length-1}else if(te<0)if(Bt)te=0;else return-1;if(typeof Qt=="string"&&(Qt=d.from(Qt,ee)),d.isBuffer(Qt))return Qt.length===0?-1:N(Vt,Qt,te,ee,Bt);if(typeof Qt=="number")return Qt&=255,typeof Uint8Array.prototype.indexOf=="function"?Bt?Uint8Array.prototype.indexOf.call(Vt,Qt,te):Uint8Array.prototype.lastIndexOf.call(Vt,Qt,te):N(Vt,[Qt],te,ee,Bt);throw TypeError("val must be string, number or Buffer")}function N(Vt,Qt,te,ee,Bt){var Wt=1,$t=Vt.length,Tt=Qt.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(Vt.length<2||Qt.length<2)return-1;Wt=2,$t/=2,Tt/=2,te/=2}function _t(Zt,Me){return Wt===1?Zt[Me]:Zt.readUInt16BE(Me*Wt)}var It;if(Bt){var Mt=-1;for(It=te;It<$t;It++)if(_t(Vt,It)===_t(Qt,Mt===-1?0:It-Mt)){if(Mt===-1&&(Mt=It),It-Mt+1===Tt)return Mt*Wt}else Mt!==-1&&(It-=It-Mt),Mt=-1}else for(te+Tt>$t&&(te=$t-Tt),It=te;It>=0;It--){for(var Ct=!0,Ut=0;UtBt&&(ee=Bt)):ee=Bt;var Wt=Qt.length;ee>Wt/2&&(ee=Wt/2);var $t;for($t=0;$t>>=0,isFinite(te)?(te>>>=0,ee===void 0&&(ee="utf8")):(ee=te,te=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Bt=this.length-Qt;if((te===void 0||te>Bt)&&(te=Bt),Vt.length>0&&(te<0||Qt<0)||Qt>this.length)throw RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var Wt=!1;;)switch(ee){case"hex":return V(this,Vt,Qt,te);case"utf8":case"utf-8":return Y(this,Vt,Qt,te);case"ascii":case"latin1":case"binary":return K(this,Vt,Qt,te);case"base64":return nt(this,Vt,Qt,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,Vt,Qt,te);default:if(Wt)throw TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),Wt=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ct(Vt,Qt,te){return Qt===0&&te===Vt.length?m.fromByteArray(Vt):m.fromByteArray(Vt.slice(Qt,te))}function J(Vt,Qt,te){te=Math.min(Vt.length,te);for(var ee=[],Bt=Qt;Bt239?4:Wt>223?3:Wt>191?2:1;if(Bt+Tt<=te){var _t=void 0,It=void 0,Mt=void 0,Ct=void 0;switch(Tt){case 1:Wt<128&&($t=Wt);break;case 2:_t=Vt[Bt+1],(_t&192)==128&&(Ct=(Wt&31)<<6|_t&63,Ct>127&&($t=Ct));break;case 3:_t=Vt[Bt+1],It=Vt[Bt+2],(_t&192)==128&&(It&192)==128&&(Ct=(Wt&15)<<12|(_t&63)<<6|It&63,Ct>2047&&(Ct<55296||Ct>57343)&&($t=Ct));break;case 4:_t=Vt[Bt+1],It=Vt[Bt+2],Mt=Vt[Bt+3],(_t&192)==128&&(It&192)==128&&(Mt&192)==128&&(Ct=(Wt&15)<<18|(_t&63)<<12|(It&63)<<6|Mt&63,Ct>65535&&Ct<1114112&&($t=Ct))}}$t===null?($t=65533,Tt=1):$t>65535&&($t-=65536,ee.push($t>>>10&1023|55296),$t=56320|$t&1023),ee.push($t),Bt+=Tt}return Q(ee)}var et=4096;function Q(Vt){var Qt=Vt.length;if(Qt<=et)return String.fromCharCode.apply(String,Vt);for(var te="",ee=0;eeee)&&(te=ee);for(var Bt="",Wt=Qt;Wtte&&(Vt=te),Qt<0?(Qt+=te,Qt<0&&(Qt=0)):Qt>te&&(Qt=te),Qtte)throw RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(Vt,Qt,te){Vt>>>=0,Qt>>>=0,te||X(Vt,Qt,this.length);for(var ee=this[Vt],Bt=1,Wt=0;++Wt>>=0,Qt>>>=0,te||X(Vt,Qt,this.length);for(var ee=this[Vt+--Qt],Bt=1;Qt>0&&(Bt*=256);)ee+=this[Vt+--Qt]*Bt;return ee},d.prototype.readUint8=d.prototype.readUInt8=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,1,this.length),this[Vt]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,2,this.length),this[Vt]|this[Vt+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,2,this.length),this[Vt]<<8|this[Vt+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,4,this.length),(this[Vt]|this[Vt+1]<<8|this[Vt+2]<<16)+this[Vt+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,4,this.length),this[Vt]*16777216+(this[Vt+1]<<16|this[Vt+2]<<8|this[Vt+3])},d.prototype.readBigUInt64LE=je(function(Vt){Vt>>>=0,At(Vt,"offset");var Qt=this[Vt],te=this[Vt+7];(Qt===void 0||te===void 0)&&qt(Vt,this.length-8);var ee=Qt+this[++Vt]*2**8+this[++Vt]*2**16+this[++Vt]*2**24,Bt=this[++Vt]+this[++Vt]*2**8+this[++Vt]*2**16+te*2**24;return BigInt(ee)+(BigInt(Bt)<>>=0,At(Vt,"offset");var Qt=this[Vt],te=this[Vt+7];(Qt===void 0||te===void 0)&&qt(Vt,this.length-8);var ee=Qt*2**24+this[++Vt]*2**16+this[++Vt]*2**8+this[++Vt],Bt=this[++Vt]*2**24+this[++Vt]*2**16+this[++Vt]*2**8+te;return(BigInt(ee)<>>=0,Qt>>>=0,te||X(Vt,Qt,this.length);for(var ee=this[Vt],Bt=1,Wt=0;++Wt=Bt&&(ee-=2**(8*Qt)),ee},d.prototype.readIntBE=function(Vt,Qt,te){Vt>>>=0,Qt>>>=0,te||X(Vt,Qt,this.length);for(var ee=Qt,Bt=1,Wt=this[Vt+--ee];ee>0&&(Bt*=256);)Wt+=this[Vt+--ee]*Bt;return Bt*=128,Wt>=Bt&&(Wt-=2**(8*Qt)),Wt},d.prototype.readInt8=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,1,this.length),this[Vt]&128?(255-this[Vt]+1)*-1:this[Vt]},d.prototype.readInt16LE=function(Vt,Qt){Vt>>>=0,Qt||X(Vt,2,this.length);var te=this[Vt]|this[Vt+1]<<8;return te&32768?te|4294901760:te},d.prototype.readInt16BE=function(Vt,Qt){Vt>>>=0,Qt||X(Vt,2,this.length);var te=this[Vt+1]|this[Vt]<<8;return te&32768?te|4294901760:te},d.prototype.readInt32LE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,4,this.length),this[Vt]|this[Vt+1]<<8|this[Vt+2]<<16|this[Vt+3]<<24},d.prototype.readInt32BE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,4,this.length),this[Vt]<<24|this[Vt+1]<<16|this[Vt+2]<<8|this[Vt+3]},d.prototype.readBigInt64LE=je(function(Vt){Vt>>>=0,At(Vt,"offset");var Qt=this[Vt],te=this[Vt+7];(Qt===void 0||te===void 0)&&qt(Vt,this.length-8);var ee=this[Vt+4]+this[Vt+5]*2**8+this[Vt+6]*2**16+(te<<24);return(BigInt(ee)<>>=0,At(Vt,"offset");var Qt=this[Vt],te=this[Vt+7];(Qt===void 0||te===void 0)&&qt(Vt,this.length-8);var ee=(Qt<<24)+this[++Vt]*2**16+this[++Vt]*2**8+this[++Vt];return(BigInt(ee)<>>=0,Qt||X(Vt,4,this.length),x.read(this,Vt,!0,23,4)},d.prototype.readFloatBE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,4,this.length),x.read(this,Vt,!1,23,4)},d.prototype.readDoubleLE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,8,this.length),x.read(this,Vt,!0,52,8)},d.prototype.readDoubleBE=function(Vt,Qt){return Vt>>>=0,Qt||X(Vt,8,this.length),x.read(this,Vt,!1,52,8)};function ut(Vt,Qt,te,ee,Bt,Wt){if(!d.isBuffer(Vt))throw TypeError('"buffer" argument must be a Buffer instance');if(Qt>Bt||QtVt.length)throw RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(Vt,Qt,te,ee){if(Vt=+Vt,Qt>>>=0,te>>>=0,!ee){var Bt=2**(8*te)-1;ut(this,Vt,Qt,te,Bt,0)}var Wt=1,$t=0;for(this[Qt]=Vt&255;++$t>>=0,te>>>=0,!ee){var Bt=2**(8*te)-1;ut(this,Vt,Qt,te,Bt,0)}var Wt=te-1,$t=1;for(this[Qt+Wt]=Vt&255;--Wt>=0&&($t*=256);)this[Qt+Wt]=Vt/$t&255;return Qt+te},d.prototype.writeUint8=d.prototype.writeUInt8=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,1,255,0),this[Qt]=Vt&255,Qt+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,2,65535,0),this[Qt]=Vt&255,this[Qt+1]=Vt>>>8,Qt+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,2,65535,0),this[Qt]=Vt>>>8,this[Qt+1]=Vt&255,Qt+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,4,4294967295,0),this[Qt+3]=Vt>>>24,this[Qt+2]=Vt>>>16,this[Qt+1]=Vt>>>8,this[Qt]=Vt&255,Qt+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,4,4294967295,0),this[Qt]=Vt>>>24,this[Qt+1]=Vt>>>16,this[Qt+2]=Vt>>>8,this[Qt+3]=Vt&255,Qt+4};function lt(Vt,Qt,te,ee,Bt){Et(Qt,ee,Bt,Vt,te,7);var Wt=Number(Qt&BigInt(4294967295));Vt[te++]=Wt,Wt>>=8,Vt[te++]=Wt,Wt>>=8,Vt[te++]=Wt,Wt>>=8,Vt[te++]=Wt;var $t=Number(Qt>>BigInt(32)&BigInt(4294967295));return Vt[te++]=$t,$t>>=8,Vt[te++]=$t,$t>>=8,Vt[te++]=$t,$t>>=8,Vt[te++]=$t,te}function yt(Vt,Qt,te,ee,Bt){Et(Qt,ee,Bt,Vt,te,7);var Wt=Number(Qt&BigInt(4294967295));Vt[te+7]=Wt,Wt>>=8,Vt[te+6]=Wt,Wt>>=8,Vt[te+5]=Wt,Wt>>=8,Vt[te+4]=Wt;var $t=Number(Qt>>BigInt(32)&BigInt(4294967295));return Vt[te+3]=$t,$t>>=8,Vt[te+2]=$t,$t>>=8,Vt[te+1]=$t,$t>>=8,Vt[te]=$t,te+8}d.prototype.writeBigUInt64LE=je(function(Vt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return lt(this,Vt,Qt,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=je(function(Vt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return yt(this,Vt,Qt,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(Vt,Qt,te,ee){if(Vt=+Vt,Qt>>>=0,!ee){var Bt=2**(8*te-1);ut(this,Vt,Qt,te,Bt-1,-Bt)}var Wt=0,$t=1,Tt=0;for(this[Qt]=Vt&255;++Wt>0)-Tt&255;return Qt+te},d.prototype.writeIntBE=function(Vt,Qt,te,ee){if(Vt=+Vt,Qt>>>=0,!ee){var Bt=2**(8*te-1);ut(this,Vt,Qt,te,Bt-1,-Bt)}var Wt=te-1,$t=1,Tt=0;for(this[Qt+Wt]=Vt&255;--Wt>=0&&($t*=256);)Vt<0&&Tt===0&&this[Qt+Wt+1]!==0&&(Tt=1),this[Qt+Wt]=(Vt/$t>>0)-Tt&255;return Qt+te},d.prototype.writeInt8=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,1,127,-128),Vt<0&&(Vt=255+Vt+1),this[Qt]=Vt&255,Qt+1},d.prototype.writeInt16LE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,2,32767,-32768),this[Qt]=Vt&255,this[Qt+1]=Vt>>>8,Qt+2},d.prototype.writeInt16BE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,2,32767,-32768),this[Qt]=Vt>>>8,this[Qt+1]=Vt&255,Qt+2},d.prototype.writeInt32LE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,4,2147483647,-2147483648),this[Qt]=Vt&255,this[Qt+1]=Vt>>>8,this[Qt+2]=Vt>>>16,this[Qt+3]=Vt>>>24,Qt+4},d.prototype.writeInt32BE=function(Vt,Qt,te){return Vt=+Vt,Qt>>>=0,te||ut(this,Vt,Qt,4,2147483647,-2147483648),Vt<0&&(Vt=4294967295+Vt+1),this[Qt]=Vt>>>24,this[Qt+1]=Vt>>>16,this[Qt+2]=Vt>>>8,this[Qt+3]=Vt&255,Qt+4},d.prototype.writeBigInt64LE=je(function(Vt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return lt(this,Vt,Qt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=je(function(Vt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return yt(this,Vt,Qt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function kt(Vt,Qt,te,ee,Bt,Wt){if(te+ee>Vt.length||te<0)throw RangeError("Index out of range")}function Lt(Vt,Qt,te,ee,Bt){return Qt=+Qt,te>>>=0,Bt||kt(Vt,Qt,te,4,34028234663852886e22,-34028234663852886e22),x.write(Vt,Qt,te,ee,23,4),te+4}d.prototype.writeFloatLE=function(Vt,Qt,te){return Lt(this,Vt,Qt,!0,te)},d.prototype.writeFloatBE=function(Vt,Qt,te){return Lt(this,Vt,Qt,!1,te)};function St(Vt,Qt,te,ee,Bt){return Qt=+Qt,te>>>=0,Bt||kt(Vt,Qt,te,8,17976931348623157e292,-17976931348623157e292),x.write(Vt,Qt,te,ee,52,8),te+8}d.prototype.writeDoubleLE=function(Vt,Qt,te){return St(this,Vt,Qt,!0,te)},d.prototype.writeDoubleBE=function(Vt,Qt,te){return St(this,Vt,Qt,!1,te)},d.prototype.copy=function(Vt,Qt,te,ee){if(!d.isBuffer(Vt))throw TypeError("argument should be a Buffer");if(te||(te=0),!ee&&ee!==0&&(ee=this.length),Qt>=Vt.length&&(Qt=Vt.length),Qt||(Qt=0),ee>0&&ee=this.length)throw RangeError("Index out of range");if(ee<0)throw RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),Vt.length-Qt>>=0,te=te===void 0?this.length:te>>>0,Vt||(Vt=0);var Wt;if(typeof Vt=="number")for(Wt=Qt;Wt4294967296?Bt=Kt(String(te)):typeof te=="bigint"&&(Bt=String(te),(te>BigInt(2)**+BigInt(32)||te<-(BigInt(2)**+BigInt(32)))&&(Bt=Kt(Bt)),Bt+="n"),ee+=` It must be ${Qt}. Received ${Bt}`,ee},RangeError);function Kt(Vt){for(var Qt="",te=Vt.length,ee=Vt[0]==="-"?1:0;te>=ee+4;te-=3)Qt=`_${Vt.slice(te-3,te)}${Qt}`;return`${Vt.slice(0,te)}${Qt}`}function Gt(Vt,Qt,te){At(Qt,"offset"),(Vt[Qt]===void 0||Vt[Qt+te]===void 0)&&qt(Qt,Vt.length-(te+1))}function Et(Vt,Qt,te,ee,Bt,Wt){if(Vt>te||Vt3?Qt===0||Qt===BigInt(0)?`>= 0${$t} and < 2${$t} ** ${(Wt+1)*8}${$t}`:`>= -(2${$t} ** ${(Wt+1)*8-1}${$t}) and < 2 ** ${(Wt+1)*8-1}${$t}`:`>= ${Qt}${$t} and <= ${te}${$t}`;throw new Ot.ERR_OUT_OF_RANGE("value",Tt,Vt)}Gt(ee,Bt,Wt)}function At(Vt,Qt){if(typeof Vt!="number")throw new Ot.ERR_INVALID_ARG_TYPE(Qt,"number",Vt)}function qt(Vt,Qt,te){throw Math.floor(Vt)===Vt?Qt<0?new Ot.ERR_BUFFER_OUT_OF_BOUNDS:new Ot.ERR_OUT_OF_RANGE(te||"offset",`>= ${te?1:0} and <= ${Qt}`,Vt):(At(Vt,te),new Ot.ERR_OUT_OF_RANGE(te||"offset","an integer",Vt))}var jt=/[^+/0-9A-Za-z-_]/g;function de(Vt){if(Vt=Vt.split("=")[0],Vt=Vt.trim().replace(jt,""),Vt.length<2)return"";for(;Vt.length%4!=0;)Vt+="=";return Vt}function Xt(Vt,Qt){Qt||(Qt=1/0);for(var te,ee=Vt.length,Bt=null,Wt=[],$t=0;$t55295&&te<57344){if(!Bt){if(te>56319){(Qt-=3)>-1&&Wt.push(239,191,189);continue}else if($t+1===ee){(Qt-=3)>-1&&Wt.push(239,191,189);continue}Bt=te;continue}if(te<56320){(Qt-=3)>-1&&Wt.push(239,191,189),Bt=te;continue}te=(Bt-55296<<10|te-56320)+65536}else Bt&&(Qt-=3)>-1&&Wt.push(239,191,189);if(Bt=null,te<128){if(--Qt<0)break;Wt.push(te)}else if(te<2048){if((Qt-=2)<0)break;Wt.push(te>>6|192,te&63|128)}else if(te<65536){if((Qt-=3)<0)break;Wt.push(te>>12|224,te>>6&63|128,te&63|128)}else if(te<1114112){if((Qt-=4)<0)break;Wt.push(te>>18|240,te>>12&63|128,te>>6&63|128,te&63|128)}else throw Error("Invalid code point")}return Wt}function ye(Vt){for(var Qt=[],te=0;te>8,Bt=te%256,Wt.push(Bt),Wt.push(ee);return Wt}function ve(Vt){return m.toByteArray(de(Vt))}function ke(Vt,Qt,te,ee){var Bt;for(Bt=0;Bt=Qt.length||Bt>=Vt.length);++Bt)Qt[Bt+te]=Vt[Bt];return Bt}function Pe(Vt,Qt){return Vt instanceof Qt||Vt!=null&&Vt.constructor!=null&&Vt.constructor.name!=null&&Vt.constructor.name===Qt.name}function me(Vt){return Vt!==Vt}var be=(function(){for(var Vt="0123456789abcdef",Qt=Array(256),te=0;te<16;++te)for(var ee=te*16,Bt=0;Bt<16;++Bt)Qt[ee+Bt]=Vt[te]+Vt[Bt];return Qt})();function je(Vt){return typeof BigInt>"u"?nr:Vt}function nr(){throw Error("BigInt not supported")}}),13087:(function(tt){tt.exports=A,tt.exports.isMobile=A,tt.exports.default=A;var G=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,S=/android|ipad|playbook|silk/i;function A(t){t||(t={});var E=t.ua;if(!E&&typeof navigator<"u"&&(E=navigator.userAgent),E&&E.headers&&typeof E.headers["user-agent"]=="string"&&(E=E.headers["user-agent"]),typeof E!="string")return!1;var w=G.test(E)&&!e.test(E)||!!t.tablet&&S.test(E);return!w&&t.tablet&&t.featureDetect&&navigator&&navigator.maxTouchPoints>1&&E.indexOf("Macintosh")!==-1&&E.indexOf("Safari")!==-1&&(w=!0),w}}),5955:(function(tt,G,e){var S=e(22413),A=e.n(S),t=e(51070),E=e.n(t),w=e(62133),p=e.n(w),c=new URL(e(77035),e.b),i=new URL(e(43470),e.b),r=new URL(e(68164),e.b),o=new URL(e(64665),e.b),a=new URL(e(4890),e.b),s=new URL(e(13363),e.b),n=new URL(e(13490),e.b),m=new URL(e(47603),e.b),x=new URL(e(13913),e.b),f=new URL(e(91413),e.b),v=new URL(e(64643),e.b),l=new URL(e(80216),e.b),h=new URL(e(61907),e.b),d=new URL(e(68605),e.b),b=new URL(e(25446),e.b),M=new URL(e(56694),e.b),g=new URL(e(24420),e.b),k=new URL(e(75796),e.b),L=new URL(e(92228),e.b),u=new URL(e(9819),e.b),T=new URL(e(47695),e.b),C=new URL(e(28869),e.b),_=new URL(e(30557),e.b),F=new URL(e(48460),e.b),O=new URL(e(56539),e.b),j=new URL(e(43737),e.b),B=new URL(e(47914),e.b),U=new URL(e(26117),e.b),P=new URL(e(66311),e.b),N=E()(A()),V=p()(c),Y=p()(i),K=p()(r),nt=p()(o),ft=p()(a),ct=p()(s),J=p()(n),et=p()(m),Q=p()(x),Z=p()(f),st=p()(v),ot=p()(l),rt=p()(h),X=p()(d),ut=p()(b),lt=p()(M),yt=p()(g),kt=p()(k),Lt=p()(L),St=p()(u),Ot=p()(T),Ht=p()(C),Kt=p()(_),Gt=p()(F),Et=p()(O),At=p()(j),qt=p()(B),jt=p()(U),de=p()(P);N.push([tt.id,".maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("+V+")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("+Y+")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("+K+")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("+nt+")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("+ft+")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("+ct+")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("+J+")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("+et+")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("+Q+")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("+Z+")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("+st+")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("+et+")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("+ot+")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("+rt+")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("+X+")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("+ut+")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("+lt+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("+yt+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("+kt+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("+Lt+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("+St+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("+Ot+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("+Ht+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("+Kt+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("+Gt+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("+Lt+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("+St+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("+Ot+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("+Ht+")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("+Et+")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("+At+")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("+qt+");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("+qt+")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("+qt+")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("+jt+");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("+de+")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("+jt+')}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}',""]),G.A=N}),68735:(function(tt,G,e){e.r(G),e.d(G,{sankeyCenter:function(){return o},sankeyCircular:function(){return C},sankeyJustify:function(){return r},sankeyLeft:function(){return c},sankeyRight:function(){return i}});var S=e(29725),A=e(4575),t=e(48544),E=e(96143),w=e.n(E);function p(St){return St.target.depth}function c(St){return St.depth}function i(St,Ot){return Ot-1-St.height}function r(St,Ot){return St.sourceLinks.length?St.depth:Ot-1}function o(St){return St.targetLinks.length?St.depth:St.sourceLinks.length?(0,S.jk)(St.sourceLinks,p)-1:0}function a(St){return function(){return St}}var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(St){return typeof St}:function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St};function n(St,Ot){return x(St.source,Ot.source)||St.index-Ot.index}function m(St,Ot){return x(St.target,Ot.target)||St.index-Ot.index}function x(St,Ot){return St.partOfCycle===Ot.partOfCycle?St.y0-Ot.y0:St.circularLinkType==="top"||Ot.circularLinkType==="bottom"?-1:1}function f(St){return St.value}function v(St){return(St.y0+St.y1)/2}function l(St){return v(St.source)}function h(St){return v(St.target)}function d(St){return St.index}function b(St){return St.nodes}function M(St){return St.links}function g(St,Ot){var Ht=St.get(Ot);if(!Ht)throw Error("missing: "+Ot);return Ht}function k(St,Ot){return Ot(St)}var L=25,u=10,T=.3;function C(){var St=0,Ot=0,Ht=1,Kt=1,Gt=24,Et,At=d,qt=r,jt=b,de=M,Xt=32,ye=2,Le,ve=null;function ke(){var te={nodes:jt.apply(null,arguments),links:de.apply(null,arguments)};Pe(te),_(te,At,ve),me(te),nr(te),F(te,At),Vt(te,Xt,At),Qt(te);for(var ee=4,Bt=0;Bt0?ee+L+u:ee,Bt=Bt>0?Bt+L+u:Bt,Wt=Wt>0?Wt+L+u:Wt,$t=$t>0?$t+L+u:$t,{top:ee,bottom:Bt,left:$t,right:Wt}}function je(te,ee){var Bt=(0,S.T9)(te.nodes,function(Ct){return Ct.column}),Wt=Ht-St,$t=Kt-Ot,Tt=Wt+ee.right+ee.left,_t=$t+ee.top+ee.bottom,It=Wt/Tt,Mt=$t/_t;return St=St*It+ee.left,Ht=ee.right==0?Ht:Ht*It,Ot=Ot*Mt+ee.top,Kt*=Mt,te.nodes.forEach(function(Ct){Ct.x0=St+Ct.column*((Ht-St-Gt)/Bt),Ct.x1=Ct.x0+Gt}),Mt}function nr(te){var ee,Bt,Wt;for(ee=te.nodes,Bt=[],Wt=0;ee.length;++Wt,ee=Bt,Bt=[])ee.forEach(function($t){$t.depth=Wt,$t.sourceLinks.forEach(function(Tt){Bt.indexOf(Tt.target)<0&&!Tt.circular&&Bt.push(Tt.target)})});for(ee=te.nodes,Bt=[],Wt=0;ee.length;++Wt,ee=Bt,Bt=[])ee.forEach(function($t){$t.height=Wt,$t.targetLinks.forEach(function(Tt){Bt.indexOf(Tt.source)<0&&!Tt.circular&&Bt.push(Tt.source)})});te.nodes.forEach(function($t){$t.column=Math.floor(qt.call(null,$t,Wt))})}function Vt(te,ee,Bt){var Wt=(0,A.$I)().key(function(Ct){return Ct.column}).sortKeys(S.V_).entries(te.nodes).map(function(Ct){return Ct.values});_t(Bt),Mt();for(var $t=1,Tt=ee;Tt>0;--Tt)It($t*=.99,Bt),Mt();function _t(Ct){if(Le){var Ut=1/0;Wt.forEach(function(ge){var Ee=Kt*Le/(ge.length+1);Ut=Ee0))if(ge==0&&Be==1)Ne=Ee.y1-Ee.y0,Ee.y0=Kt/2-Ne/2,Ee.y1=Kt/2+Ne/2;else if(ge==Zt-1&&Be==1)Ne=Ee.y1-Ee.y0,Ee.y0=Kt/2-Ne/2,Ee.y1=Kt/2+Ne/2;else{var sr=0,_e=(0,S.i2)(Ee.sourceLinks,h),He=(0,S.i2)(Ee.targetLinks,l);sr=_e&&He?(_e+He)/2:_e||He;var or=(sr-v(Ee))*Ct;Ee.y0+=or,Ee.y1+=or}})})}function Mt(){Wt.forEach(function(Ct){var Ut,Zt,Me=Ot,Be=Ct.length,ge;for(Ct.sort(x),ge=0;ge0&&(Ut.y0+=Zt,Ut.y1+=Zt),Me=Ut.y1+Et;if(Zt=Me-Et-Kt,Zt>0)for(Me=Ut.y0-=Zt,Ut.y1-=Zt,ge=Be-2;ge>=0;--ge)Ut=Ct[ge],Zt=Ut.y1+Et-Me,Zt>0&&(Ut.y0-=Zt,Ut.y1-=Zt),Me=Ut.y0})}}function Qt(te){te.nodes.forEach(function(ee){ee.sourceLinks.sort(m),ee.targetLinks.sort(n)}),te.nodes.forEach(function(ee){var Bt=ee.y0,Wt=Bt,$t=ee.y1,Tt=$t;ee.sourceLinks.forEach(function(_t){_t.circular?(_t.y0=$t-_t.width/2,$t-=_t.width):(_t.y0=Bt+_t.width/2,Bt+=_t.width)}),ee.targetLinks.forEach(function(_t){_t.circular?(_t.y1=Tt-_t.width/2,Tt-=_t.width):(_t.y1=Wt+_t.width/2,Wt+=_t.width)})})}return ke}function _(St,Ot,Ht){var Kt=0;if(Ht===null){for(var Gt=[],Et=0;EtOt.source.column)}function B(St,Ot){var Ht=0;St.sourceLinks.forEach(function(Gt){Ht=Gt.circular&&!kt(Gt,Ot)?Ht+1:Ht});var Kt=0;return St.targetLinks.forEach(function(Gt){Kt=Gt.circular&&!kt(Gt,Ot)?Kt+1:Kt}),Ht+Kt}function U(St){var Ot=St.source.sourceLinks,Ht=0;Ot.forEach(function(Et){Ht=Et.circular?Ht+1:Ht});var Kt=St.target.targetLinks,Gt=0;return Kt.forEach(function(Et){Gt=Et.circular?Gt+1:Gt}),!(Ht>1||Gt>1)}function P(St,Ot,Ht){return St.sort(Y),St.forEach(function(Kt,Gt){var Et=0;if(kt(Kt,Ht)&&U(Kt))Kt.circularPathData.verticalBuffer=Et+Kt.width/2;else{for(var At=0;AtEt?qt:Et}Kt.circularPathData.verticalBuffer=Et+Kt.width/2}}),St}function N(St,Ot,Ht,Kt){var Gt=5,Et=(0,S.jk)(St.links,function(At){return At.source.y0});St.links.forEach(function(At){At.circular&&(At.circularPathData={})}),P(St.links.filter(function(At){return At.circularLinkType=="top"}),Ot,Kt),P(St.links.filter(function(At){return At.circularLinkType=="bottom"}),Ot,Kt),St.links.forEach(function(At){if(At.circular){if(At.circularPathData.arcRadius=At.width+u,At.circularPathData.leftNodeBuffer=Gt,At.circularPathData.rightNodeBuffer=Gt,At.circularPathData.sourceWidth=At.source.x1-At.source.x0,At.circularPathData.sourceX=At.source.x0+At.circularPathData.sourceWidth,At.circularPathData.targetX=At.target.x0,At.circularPathData.sourceY=At.y0,At.circularPathData.targetY=At.y1,kt(At,Kt)&&U(At))At.circularPathData.leftSmallArcRadius=u+At.width/2,At.circularPathData.leftLargeArcRadius=u+At.width/2,At.circularPathData.rightSmallArcRadius=u+At.width/2,At.circularPathData.rightLargeArcRadius=u+At.width/2,At.circularLinkType=="bottom"?(At.circularPathData.verticalFullExtent=At.source.y1+L+At.circularPathData.verticalBuffer,At.circularPathData.verticalLeftInnerExtent=At.circularPathData.verticalFullExtent-At.circularPathData.leftLargeArcRadius,At.circularPathData.verticalRightInnerExtent=At.circularPathData.verticalFullExtent-At.circularPathData.rightLargeArcRadius):(At.circularPathData.verticalFullExtent=At.source.y0-L-At.circularPathData.verticalBuffer,At.circularPathData.verticalLeftInnerExtent=At.circularPathData.verticalFullExtent+At.circularPathData.leftLargeArcRadius,At.circularPathData.verticalRightInnerExtent=At.circularPathData.verticalFullExtent+At.circularPathData.rightLargeArcRadius);else{var qt=At.source.column,jt=At.circularLinkType,de=St.links.filter(function(ye){return ye.source.column==qt&&ye.circularLinkType==jt});At.circularLinkType=="bottom"?de.sort(nt):de.sort(K);var Xt=0;de.forEach(function(ye,Le){ye.circularLinkID==At.circularLinkID&&(At.circularPathData.leftSmallArcRadius=u+At.width/2+Xt,At.circularPathData.leftLargeArcRadius=u+At.width/2+Le*Ot+Xt),Xt+=ye.width}),qt=At.target.column,de=St.links.filter(function(ye){return ye.target.column==qt&&ye.circularLinkType==jt}),At.circularLinkType=="bottom"?de.sort(ct):de.sort(ft),Xt=0,de.forEach(function(ye,Le){ye.circularLinkID==At.circularLinkID&&(At.circularPathData.rightSmallArcRadius=u+At.width/2+Xt,At.circularPathData.rightLargeArcRadius=u+At.width/2+Le*Ot+Xt),Xt+=ye.width}),At.circularLinkType=="bottom"?(At.circularPathData.verticalFullExtent=Math.max(Ht,At.source.y1,At.target.y1)+L+At.circularPathData.verticalBuffer,At.circularPathData.verticalLeftInnerExtent=At.circularPathData.verticalFullExtent-At.circularPathData.leftLargeArcRadius,At.circularPathData.verticalRightInnerExtent=At.circularPathData.verticalFullExtent-At.circularPathData.rightLargeArcRadius):(At.circularPathData.verticalFullExtent=Et-L-At.circularPathData.verticalBuffer,At.circularPathData.verticalLeftInnerExtent=At.circularPathData.verticalFullExtent+At.circularPathData.leftLargeArcRadius,At.circularPathData.verticalRightInnerExtent=At.circularPathData.verticalFullExtent+At.circularPathData.rightLargeArcRadius)}At.circularPathData.leftInnerExtent=At.circularPathData.sourceX+At.circularPathData.leftNodeBuffer,At.circularPathData.rightInnerExtent=At.circularPathData.targetX-At.circularPathData.rightNodeBuffer,At.circularPathData.leftFullExtent=At.circularPathData.sourceX+At.circularPathData.leftLargeArcRadius+At.circularPathData.leftNodeBuffer,At.circularPathData.rightFullExtent=At.circularPathData.targetX-At.circularPathData.rightLargeArcRadius-At.circularPathData.rightNodeBuffer}At.circular?At.path=V(At):At.path=(0,t.pq)().source(function(ye){return[ye.source.x0+(ye.source.x1-ye.source.x0),ye.y0]}).target(function(ye){return[ye.target.x0,ye.y1]})(At)})}function V(St){var Ot="";return Ot=St.circularLinkType=="top"?"M"+St.circularPathData.sourceX+" "+St.circularPathData.sourceY+" L"+St.circularPathData.leftInnerExtent+" "+St.circularPathData.sourceY+" A"+St.circularPathData.leftLargeArcRadius+" "+St.circularPathData.leftSmallArcRadius+" 0 0 0 "+St.circularPathData.leftFullExtent+" "+(St.circularPathData.sourceY-St.circularPathData.leftSmallArcRadius)+" L"+St.circularPathData.leftFullExtent+" "+St.circularPathData.verticalLeftInnerExtent+" A"+St.circularPathData.leftLargeArcRadius+" "+St.circularPathData.leftLargeArcRadius+" 0 0 0 "+St.circularPathData.leftInnerExtent+" "+St.circularPathData.verticalFullExtent+" L"+St.circularPathData.rightInnerExtent+" "+St.circularPathData.verticalFullExtent+" A"+St.circularPathData.rightLargeArcRadius+" "+St.circularPathData.rightLargeArcRadius+" 0 0 0 "+St.circularPathData.rightFullExtent+" "+St.circularPathData.verticalRightInnerExtent+" L"+St.circularPathData.rightFullExtent+" "+(St.circularPathData.targetY-St.circularPathData.rightSmallArcRadius)+" A"+St.circularPathData.rightLargeArcRadius+" "+St.circularPathData.rightSmallArcRadius+" 0 0 0 "+St.circularPathData.rightInnerExtent+" "+St.circularPathData.targetY+" L"+St.circularPathData.targetX+" "+St.circularPathData.targetY:"M"+St.circularPathData.sourceX+" "+St.circularPathData.sourceY+" L"+St.circularPathData.leftInnerExtent+" "+St.circularPathData.sourceY+" A"+St.circularPathData.leftLargeArcRadius+" "+St.circularPathData.leftSmallArcRadius+" 0 0 1 "+St.circularPathData.leftFullExtent+" "+(St.circularPathData.sourceY+St.circularPathData.leftSmallArcRadius)+" L"+St.circularPathData.leftFullExtent+" "+St.circularPathData.verticalLeftInnerExtent+" A"+St.circularPathData.leftLargeArcRadius+" "+St.circularPathData.leftLargeArcRadius+" 0 0 1 "+St.circularPathData.leftInnerExtent+" "+St.circularPathData.verticalFullExtent+" L"+St.circularPathData.rightInnerExtent+" "+St.circularPathData.verticalFullExtent+" A"+St.circularPathData.rightLargeArcRadius+" "+St.circularPathData.rightLargeArcRadius+" 0 0 1 "+St.circularPathData.rightFullExtent+" "+St.circularPathData.verticalRightInnerExtent+" L"+St.circularPathData.rightFullExtent+" "+(St.circularPathData.targetY+St.circularPathData.rightSmallArcRadius)+" A"+St.circularPathData.rightLargeArcRadius+" "+St.circularPathData.rightSmallArcRadius+" 0 0 1 "+St.circularPathData.rightInnerExtent+" "+St.circularPathData.targetY+" L"+St.circularPathData.targetX+" "+St.circularPathData.targetY,Ot}function Y(St,Ot){return J(St)==J(Ot)?St.circularLinkType=="bottom"?nt(St,Ot):K(St,Ot):J(Ot)-J(St)}function K(St,Ot){return St.y0-Ot.y0}function nt(St,Ot){return Ot.y0-St.y0}function ft(St,Ot){return St.y1-Ot.y1}function ct(St,Ot){return Ot.y1-St.y1}function J(St){return St.target.column-St.source.column}function et(St){return St.target.x0-St.source.x1}function Q(St,Ot){var Ht=O(St),Kt=et(Ot)/Math.tan(Ht);return yt(St)=="up"?St.y1+Kt:St.y1-Kt}function Z(St,Ot){var Ht=O(St),Kt=et(Ot)/Math.tan(Ht);return yt(St)=="up"?St.y1-Kt:St.y1+Kt}function st(St,Ot,Ht,Kt){St.links.forEach(function(Gt){if(!Gt.circular&&Gt.target.column-Gt.source.column>1){var Et=Gt.source.column+1,At=Gt.target.column-1,qt=1,jt=At-Et+1;for(qt=1;Et<=At;Et++,qt++)St.nodes.forEach(function(de){if(de.column==Et){var Xt=qt/(jt+1),ye=(1-Xt)**3,Le=3*Xt*(1-Xt)**2,ve=3*Xt**2*(1-Xt),ke=Xt**3,Pe=ye*Gt.y0+Le*Gt.y0+ve*Gt.y1+ke*Gt.y1,me=Pe-Gt.width/2,be=Pe+Gt.width/2,je;me>de.y0&&mede.y0&&bede.y1)&&(je=be-de.y0+10,de=rt(de,je,Ot,Ht),St.nodes.forEach(function(nr){k(nr,Kt)==k(de,Kt)||nr.column!=de.column||nr.y0de.y1&&rt(nr,je,Ot,Ht)}))}})}})}function ot(St,Ot){return St.y0>Ot.y0&&St.y0Ot.y0&&St.y1Ot.y1}function rt(St,Ot,Ht,Kt){return St.y0+Ot>=Ht&&St.y1+Ot<=Kt&&(St.y0+=Ot,St.y1+=Ot,St.targetLinks.forEach(function(Gt){Gt.y1+=Ot}),St.sourceLinks.forEach(function(Gt){Gt.y0+=Ot})),St}function X(St,Ot,Ht,Kt){St.nodes.forEach(function(Gt){Kt&&Gt.y+(Gt.y1-Gt.y0)>Ot&&(Gt.y-=Gt.y+(Gt.y1-Gt.y0)-Ot);var Et=St.links.filter(function(jt){return k(jt.source,Ht)==k(Gt,Ht)}),At=Et.length;At>1&&Et.sort(function(jt,de){if(!jt.circular&&!de.circular){if(jt.target.column==de.target.column)return jt.y1-de.y1;if(lt(jt,de)){if(jt.target.column>de.target.column){var Xt=Z(de,jt);return jt.y1-Xt}if(de.target.column>jt.target.column)return Z(jt,de)-de.y1}else return jt.y1-de.y1}if(jt.circular&&!de.circular)return jt.circularLinkType=="top"?-1:1;if(de.circular&&!jt.circular)return de.circularLinkType=="top"?1:-1;if(jt.circular&&de.circular)return jt.circularLinkType===de.circularLinkType&&jt.circularLinkType=="top"?jt.target.column===de.target.column?jt.target.y1-de.target.y1:de.target.column-jt.target.column:jt.circularLinkType===de.circularLinkType&&jt.circularLinkType=="bottom"?jt.target.column===de.target.column?de.target.y1-jt.target.y1:jt.target.column-de.target.column:jt.circularLinkType=="top"?-1:1});var qt=Gt.y0;Et.forEach(function(jt){jt.y0=qt+jt.width/2,qt+=jt.width}),Et.forEach(function(jt,de){if(jt.circularLinkType=="bottom"){for(var Xt=de+1,ye=0;Xt1&&Gt.sort(function(qt,jt){if(!qt.circular&&!jt.circular){if(qt.source.column==jt.source.column)return qt.y0-jt.y0;if(lt(qt,jt)){if(jt.source.column0?"up":"down"}function kt(St,Ot){return k(St.source,Ot)==k(St.target,Ot)}function Lt(St,Ot,Ht){var Kt=St.nodes,Gt=St.links,Et=!1,At=!1;if(Gt.forEach(function(Xt){Xt.circularLinkType=="top"?Et=!0:Xt.circularLinkType=="bottom"&&(At=!0)}),Et==0||At==0){var qt=(0,S.jk)(Kt,function(Xt){return Xt.y0}),jt=(0,S.T9)(Kt,function(Xt){return Xt.y1})-qt,de=(Ht-Ot)/jt;Kt.forEach(function(Xt){var ye=(Xt.y1-Xt.y0)*de;Xt.y0=(Xt.y0-qt)*de,Xt.y1=Xt.y0+ye}),Gt.forEach(function(Xt){Xt.y0=(Xt.y0-qt)*de,Xt.y1=(Xt.y1-qt)*de,Xt.width*=de})}}}),62369:(function(tt,G,e){e.r(G),e.d(G,{sankey:function(){return d},sankeyCenter:function(){return c},sankeyJustify:function(){return p},sankeyLeft:function(){return E},sankeyLinkHorizontal:function(){return k},sankeyRight:function(){return w}});var S=e(29725),A=e(4575);function t(L){return L.target.depth}function E(L){return L.depth}function w(L,u){return u-1-L.height}function p(L,u){return L.sourceLinks.length?L.depth:u-1}function c(L){return L.targetLinks.length?L.depth:L.sourceLinks.length?(0,S.jk)(L.sourceLinks,t)-1:0}function i(L){return function(){return L}}function r(L,u){return a(L.source,u.source)||L.index-u.index}function o(L,u){return a(L.target,u.target)||L.index-u.index}function a(L,u){return L.y0-u.y0}function s(L){return L.value}function n(L){return(L.y0+L.y1)/2}function m(L){return n(L.source)*L.value}function x(L){return n(L.target)*L.value}function f(L){return L.index}function v(L){return L.nodes}function l(L){return L.links}function h(L,u){var T=L.get(u);if(!T)throw Error("missing: "+u);return T}function d(){var L=0,u=0,T=1,C=1,_=24,F=8,O=f,j=p,B=v,U=l,P=32,N=2/3;function V(){var J={nodes:B.apply(null,arguments),links:U.apply(null,arguments)};return Y(J),K(J),nt(J),ft(J,P),ct(J),J}V.update=function(J){return ct(J),J},V.nodeId=function(J){return arguments.length?(O=typeof J=="function"?J:i(J),V):O},V.nodeAlign=function(J){return arguments.length?(j=typeof J=="function"?J:i(J),V):j},V.nodeWidth=function(J){return arguments.length?(_=+J,V):_},V.nodePadding=function(J){return arguments.length?(F=+J,V):F},V.nodes=function(J){return arguments.length?(B=typeof J=="function"?J:i(J),V):B},V.links=function(J){return arguments.length?(U=typeof J=="function"?J:i(J),V):U},V.size=function(J){return arguments.length?(L=u=0,T=+J[0],C=+J[1],V):[T-L,C-u]},V.extent=function(J){return arguments.length?(L=+J[0][0],T=+J[1][0],u=+J[0][1],C=+J[1][1],V):[[L,u],[T,C]]},V.iterations=function(J){return arguments.length?(P=+J,V):P};function Y(J){J.nodes.forEach(function(Q,Z){Q.index=Z,Q.sourceLinks=[],Q.targetLinks=[]});var et=(0,A.Tj)(J.nodes,O);J.links.forEach(function(Q,Z){Q.index=Z;var st=Q.source,ot=Q.target;typeof st!="object"&&(st=Q.source=h(et,st)),typeof ot!="object"&&(ot=Q.target=h(et,ot)),st.sourceLinks.push(Q),ot.targetLinks.push(Q)})}function K(J){J.nodes.forEach(function(et){et.value=Math.max((0,S.cz)(et.sourceLinks,s),(0,S.cz)(et.targetLinks,s))})}function nt(J){var et,Q,Z;for(et=J.nodes,Q=[],Z=0;et.length;++Z,et=Q,Q=[])et.forEach(function(ot){ot.depth=Z,ot.sourceLinks.forEach(function(rt){Q.indexOf(rt.target)<0&&Q.push(rt.target)})});for(et=J.nodes,Q=[],Z=0;et.length;++Z,et=Q,Q=[])et.forEach(function(ot){ot.height=Z,ot.targetLinks.forEach(function(rt){Q.indexOf(rt.source)<0&&Q.push(rt.source)})});var st=(T-L-_)/(Z-1);J.nodes.forEach(function(ot){ot.x1=(ot.x0=L+Math.max(0,Math.min(Z-1,Math.floor(j.call(null,ot,Z))))*st)+_})}function ft(J){var et=(0,A.$I)().key(function(ut){return ut.x0}).sortKeys(S.V_).entries(J.nodes).map(function(ut){return ut.values});st(),X();for(var Q=1,Z=P;Z>0;--Z)rt(Q*=.99),X(),ot(Q),X();function st(){var ut=(0,S.T9)(et,function(kt){return kt.length}),lt=N*(C-u)/(ut-1);F>lt&&(F=lt);var yt=(0,S.jk)(et,function(kt){return(C-u-(kt.length-1)*F)/(0,S.cz)(kt,s)});et.forEach(function(kt){kt.forEach(function(Lt,St){Lt.y1=(Lt.y0=St)+Lt.value*yt})}),J.links.forEach(function(kt){kt.width=kt.value*yt})}function ot(ut){et.forEach(function(lt){lt.forEach(function(yt){if(yt.targetLinks.length){var kt=((0,S.cz)(yt.targetLinks,m)/(0,S.cz)(yt.targetLinks,s)-n(yt))*ut;yt.y0+=kt,yt.y1+=kt}})})}function rt(ut){et.slice().reverse().forEach(function(lt){lt.forEach(function(yt){if(yt.sourceLinks.length){var kt=((0,S.cz)(yt.sourceLinks,x)/(0,S.cz)(yt.sourceLinks,s)-n(yt))*ut;yt.y0+=kt,yt.y1+=kt}})})}function X(){et.forEach(function(ut){var lt,yt,kt=u,Lt=ut.length,St;for(ut.sort(a),St=0;St0&&(lt.y0+=yt,lt.y1+=yt),kt=lt.y1+F;if(yt=kt-F-C,yt>0)for(kt=lt.y0-=yt,lt.y1-=yt,St=Lt-2;St>=0;--St)lt=ut[St],yt=lt.y1+F-kt,yt>0&&(lt.y0-=yt,lt.y1-=yt),kt=lt.y0})}}function ct(J){J.nodes.forEach(function(et){et.sourceLinks.sort(o),et.targetLinks.sort(r)}),J.nodes.forEach(function(et){var Q=et.y0,Z=Q;et.sourceLinks.forEach(function(st){st.y0=Q+st.width/2,Q+=st.width}),et.targetLinks.forEach(function(st){st.y1=Z+st.width/2,Z+=st.width})})}return V}var b=e(48544);function M(L){return[L.source.x1,L.y0]}function g(L){return[L.target.x0,L.y1]}function k(){return(0,b.pq)().source(M).target(g)}}),45568:(function(tt,G,e){var S,A;(function(){var t={version:"3.8.2"},E=[].slice,w=function(gt){return E.call(gt)},p=self.document;function c(gt){return gt&&(gt.ownerDocument||gt.document||gt).documentElement}function i(gt){return gt&&(gt.ownerDocument&>.ownerDocument.defaultView||gt.document&>||gt.defaultView)}if(p)try{w(p.documentElement.childNodes)[0].nodeType}catch{w=function(gt){for(var zt=gt.length,Jt=Array(zt);zt--;)Jt[zt]=gt[zt];return Jt}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var r=this.Element.prototype,o=r.setAttribute,a=r.setAttributeNS,s=this.CSSStyleDeclaration.prototype,n=s.setProperty;r.setAttribute=function(gt,zt){o.call(this,gt,zt+"")},r.setAttributeNS=function(gt,zt,Jt){a.call(this,gt,zt,Jt+"")},s.setProperty=function(gt,zt,Jt){n.call(this,gt,zt+"",Jt)}}t.ascending=m;function m(gt,zt){return gtzt?1:gt>=zt?0:NaN}t.descending=function(gt,zt){return ztgt?1:zt>=gt?0:NaN},t.min=function(gt,zt){var Jt=-1,se=gt.length,ce,xe;if(arguments.length===1){for(;++Jt=xe){ce=xe;break}for(;++Jtxe&&(ce=xe)}else{for(;++Jt=xe){ce=xe;break}for(;++Jtxe&&(ce=xe)}return ce},t.max=function(gt,zt){var Jt=-1,se=gt.length,ce,xe;if(arguments.length===1){for(;++Jt=xe){ce=xe;break}for(;++Jtce&&(ce=xe)}else{for(;++Jt=xe){ce=xe;break}for(;++Jtce&&(ce=xe)}return ce},t.extent=function(gt,zt){var Jt=-1,se=gt.length,ce,xe,Oe;if(arguments.length===1){for(;++Jt=xe){ce=Oe=xe;break}for(;++Jtxe&&(ce=xe),Oe=xe){ce=Oe=xe;break}for(;++Jtxe&&(ce=xe),Oe1)return Oe/(rr-1)},t.deviation=function(){var gt=t.variance.apply(this,arguments);return gt&&Math.sqrt(gt)};function v(gt){return{left:function(zt,Jt,se,ce){for(arguments.length<3&&(se=0),arguments.length<4&&(ce=zt.length);se>>1;gt(zt[xe],Jt)<0?se=xe+1:ce=xe}return se},right:function(zt,Jt,se,ce){for(arguments.length<3&&(se=0),arguments.length<4&&(ce=zt.length);se>>1;gt(zt[xe],Jt)>0?ce=xe:se=xe+1}return se}}}var l=v(m);t.bisectLeft=l.left,t.bisect=t.bisectRight=l.right,t.bisector=function(gt){return v(gt.length===1?function(zt,Jt){return m(gt(zt),Jt)}:gt)},t.shuffle=function(gt,zt,Jt){(se=arguments.length)<3&&(Jt=gt.length,se<2&&(zt=0));for(var se=Jt-zt,ce,xe;se;)xe=Math.random()*se--|0,ce=gt[se+zt],gt[se+zt]=gt[xe+zt],gt[xe+zt]=ce;return gt},t.permute=function(gt,zt){for(var Jt=zt.length,se=Array(Jt);Jt--;)se[Jt]=gt[zt[Jt]];return se},t.pairs=function(gt){for(var zt=0,Jt=gt.length-1,se=gt[0],ce=Array(Jt<0?0:Jt);zt=0;)for(Oe=gt[zt],Jt=Oe.length;--Jt>=0;)xe[--ce]=Oe[Jt];return xe};var d=Math.abs;t.range=function(gt,zt,Jt){if(arguments.length<3&&(Jt=1,arguments.length<2&&(zt=gt,gt=0)),(zt-gt)/Jt===1/0)throw Error("infinite range");var se=[],ce=b(d(Jt)),xe=-1,Oe;if(gt*=ce,zt*=ce,Jt*=ce,Jt<0)for(;(Oe=gt+Jt*++xe)>zt;)se.push(Oe/ce);else for(;(Oe=gt+Jt*++xe)=zt.length)return ce?ce.call(gt,rr):se?rr.sort(se):rr;for(var Mr=-1,Yr=rr.length,Qr=zt[Ar++],Ai,Fi,ti,fi=new g,bi;++Mr=zt.length)return Fe;var Ar=[],Mr=Jt[rr++];return Fe.forEach(function(Yr,Qr){Ar.push({key:Yr,values:Oe(Qr,rr)})}),Mr?Ar.sort(function(Yr,Qr){return Mr(Yr.key,Qr.key)}):Ar}return gt.map=function(Fe,rr){return xe(rr,Fe,0)},gt.entries=function(Fe){return Oe(xe(t.map,Fe,0),0)},gt.key=function(Fe){return zt.push(Fe),gt},gt.sortKeys=function(Fe){return Jt[zt.length-1]=Fe,gt},gt.sortValues=function(Fe){return se=Fe,gt},gt.rollup=function(Fe){return ce=Fe,gt},gt},t.set=function(gt){var zt=new B;if(gt)for(var Jt=0,se=gt.length;Jt=0&&(se=gt.slice(Jt+1),gt=gt.slice(0,Jt)),gt)return arguments.length<2?this[gt].on(se):this[gt].on(se,zt);if(arguments.length===2){if(zt==null)for(gt in this)this.hasOwnProperty(gt)&&this[gt].on(se,null);return this}};function nt(gt){var zt=[],Jt=new g;function se(){for(var ce=zt,xe=-1,Oe=ce.length,Fe;++xe=0&&(Jt=gt.slice(0,zt))!=="xmlns"&&(gt=gt.slice(zt+1)),kt.hasOwnProperty(Jt)?{space:kt[Jt],local:gt}:gt}},X.attr=function(gt,zt){if(arguments.length<2){if(typeof gt=="string"){var Jt=this.node();return gt=t.ns.qualify(gt),gt.local?Jt.getAttributeNS(gt.space,gt.local):Jt.getAttribute(gt)}for(zt in gt)this.each(Lt(zt,gt[zt]));return this}return this.each(Lt(gt,zt))};function Lt(gt,zt){gt=t.ns.qualify(gt);function Jt(){this.removeAttribute(gt)}function se(){this.removeAttributeNS(gt.space,gt.local)}function ce(){this.setAttribute(gt,zt)}function xe(){this.setAttributeNS(gt.space,gt.local,zt)}function Oe(){var rr=zt.apply(this,arguments);rr==null?this.removeAttribute(gt):this.setAttribute(gt,rr)}function Fe(){var rr=zt.apply(this,arguments);rr==null?this.removeAttributeNS(gt.space,gt.local):this.setAttributeNS(gt.space,gt.local,rr)}return zt==null?gt.local?se:Jt:typeof zt=="function"?gt.local?Fe:Oe:gt.local?xe:ce}function St(gt){return gt.trim().replace(/\s+/g," ")}X.classed=function(gt,zt){if(arguments.length<2){if(typeof gt=="string"){var Jt=this.node(),se=(gt=Ht(gt)).length,ce=-1;if(zt=Jt.classList){for(;++ce=0;)(xe=Jt[se])&&(ce&&ce!==xe.nextSibling&&ce.parentNode.insertBefore(xe,ce),ce=xe);return this},X.sort=function(gt){gt=ye.apply(this,arguments);for(var zt=-1,Jt=this.length;++zt=zt&&(zt=ce+1);!(rr=Oe[zt])&&++zt0&&(gt=gt.slice(0,ce));var Oe=be.get(gt);Oe&&(gt=Oe,xe=nr);function Fe(){var Mr=this[se];Mr&&(this.removeEventListener(gt,Mr,Mr.$),delete this[se])}function rr(){var Mr=xe(zt,w(arguments));Fe.call(this),this.addEventListener(gt,this[se]=Mr,Mr.$=Jt),Mr._=zt}function Ar(){var Mr=RegExp("^__on([^.]+)"+t.requote(gt)+"$"),Yr;for(var Qr in this)if(Yr=Qr.match(Mr)){var Ai=this[Qr];this.removeEventListener(Yr[1],Ai,Ai.$),delete this[Qr]}}return ce?zt?rr:Fe:zt?Y:Ar}var be=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});p&&be.forEach(function(gt){"on"+gt in p&&be.remove(gt)});function je(gt,zt){return function(Jt){var se=t.event;t.event=Jt,zt[0]=this.__data__;try{gt.apply(this,zt)}finally{t.event=se}}}function nr(gt,zt){var Jt=je(gt,zt);return function(se){var ce=this,xe=se.relatedTarget;(!xe||xe!==ce&&!(xe.compareDocumentPosition(ce)&8))&&Jt.call(ce,se)}}var Vt,Qt=0;function te(gt){var zt=".dragsuppress-"+ ++Qt,Jt="click"+zt,se=t.select(i(gt)).on("touchmove"+zt,ft).on("dragstart"+zt,ft).on("selectstart"+zt,ft);if(Vt??(Vt="onselectstart"in gt?!1:N(gt.style,"userSelect")),Vt){var ce=c(gt).style,xe=ce[Vt];ce[Vt]="none"}return function(Oe){if(se.on(zt,null),Vt&&(ce[Vt]=xe),Oe){var Fe=function(){se.on(Jt,null)};se.on(Jt,function(){ft(),Fe()},!0),setTimeout(Fe,0)}}}t.mouse=function(gt){return Bt(gt,ct())};var ee=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Bt(gt,zt){zt.changedTouches&&(zt=zt.changedTouches[0]);var Jt=gt.ownerSVGElement||gt;if(Jt.createSVGPoint){var se=Jt.createSVGPoint();if(ee<0){var ce=i(gt);if(ce.scrollX||ce.scrollY){Jt=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var xe=Jt[0][0].getScreenCTM();ee=!(xe.f||xe.e),Jt.remove()}}return ee?(se.x=zt.pageX,se.y=zt.pageY):(se.x=zt.clientX,se.y=zt.clientY),se=se.matrixTransform(gt.getScreenCTM().inverse()),[se.x,se.y]}var Oe=gt.getBoundingClientRect();return[zt.clientX-Oe.left-gt.clientLeft,zt.clientY-Oe.top-gt.clientTop]}t.touch=function(gt,zt,Jt){if(arguments.length<3&&(Jt=zt,zt=ct().changedTouches),zt){for(var se=0,ce=zt.length,xe;se1?Ct:gt<-1?-Ct:Math.asin(gt)}function ge(gt){return((gt=Math.exp(gt))-1/gt)/2}function Ee(gt){return((gt=Math.exp(gt))+1/gt)/2}function Ne(gt){return((gt=Math.exp(2*gt))-1)/(gt+1)}var sr=Math.SQRT2,_e=2,He=4;t.interpolateZoom=function(gt,zt){var Jt=gt[0],se=gt[1],ce=gt[2],xe=zt[0],Oe=zt[1],Fe=zt[2],rr=xe-Jt,Ar=Oe-se,Mr=rr*rr+Ar*Ar,Yr,Qr;if(Mr0&&(Ua=Ua.transition().duration(Oe)),Ua.call(Ri.event)}function Ya(){fi&&fi.domain(ti.range().map(function(Ua){return(Ua-gt.x)/gt.k}).map(ti.invert)),Ui&&Ui.domain(bi.range().map(function(Ua){return(Ua-gt.y)/gt.k}).map(bi.invert))}function Ja(Ua){Fe++||Ua({type:"zoomstart"})}function Cn(Ua){Ya(),Ua({type:"zoom",scale:gt.k,translate:[gt.x,gt.y]})}function rn(Ua){--Fe||(Ua({type:"zoomend"}),Jt=null)}function Bn(){var Ua=this,Pn=Fi.of(Ua,arguments),Mn=0,Oa=t.select(i(Ua)).on(Ar,Eo).on(Mr,as),Mo=ki(t.mouse(Ua)),oo=te(Ua);zr.call(Ua),Ja(Pn);function Eo(){Mn=1,Za(t.mouse(Ua),Mo),Cn(Pn)}function as(){Oa.on(Ar,null).on(Mr,null),oo(Mn),rn(Pn)}}function Un(){var Ua=this,Pn=Fi.of(Ua,arguments),Mn={},Oa=0,Mo,oo=".zoom-"+t.event.changedTouches[0].identifier,Eo="touchmove"+oo,as="touchend"+oo,an=[],pn=t.select(Ua),ns=te(Ua);Yo(),Ja(Pn),pn.on(rr,null).on(Qr,Yo);function Pa(){var Xo=t.touches(Ua);return Mo=gt.k,Xo.forEach(function($o){$o.identifier in Mn&&(Mn[$o.identifier]=ki($o))}),Xo}function Yo(){var Xo=t.event.target;t.select(Xo).on(Eo,Ro).on(as,dl),an.push(Xo);for(var $o=t.event.changedTouches,hs=0,$s=$o.length;hs<$s;++hs)Mn[$o[hs].identifier]=null;var jl=Pa(),co=Date.now();if(jl.length===1){if(co-Ai<500){var $n=jl[0];ja(Ua,$n,Mn[$n.identifier],Math.floor(Math.log(gt.k)/Math.LN2)+1),ft()}Ai=co}else if(jl.length>1){var $n=jl[0],Ku=jl[1],Js=$n[0]-Ku[0],Ul=$n[1]-Ku[1];Oa=Js*Js+Ul*Ul}}function Ro(){var Xo=t.touches(Ua),$o,hs,$s,jl;zr.call(Ua);for(var co=0,$n=Xo.length;co<$n;++co,jl=null)if($s=Xo[co],jl=Mn[$s.identifier]){if(hs)break;$o=$s,hs=jl}if(jl){var Ku=(Ku=$s[0]-$o[0])*Ku+(Ku=$s[1]-$o[1])*Ku,Js=Oa&&Math.sqrt(Ku/Oa);$o=[($o[0]+$s[0])/2,($o[1]+$s[1])/2],hs=[(hs[0]+jl[0])/2,(hs[1]+jl[1])/2],Na(Js*Mo)}Ai=null,Za($o,hs),Cn(Pn)}function dl(){if(t.event.touches.length){for(var Xo=t.event.changedTouches,$o=0,hs=Xo.length;$o1?1:zt,Jt=Jt<0?0:Jt>1?1:Jt,ce=Jt<=.5?Jt*(1+zt):Jt+zt-Jt*zt,se=2*Jt-ce;function xe(Fe){return Fe>360?Fe-=360:Fe<0&&(Fe+=360),Fe<60?se+(ce-se)*Fe/60:Fe<180?ce:Fe<240?se+(ce-se)*(240-Fe)/60:se}function Oe(Fe){return Math.round(xe(Fe)*255)}return new _r(Oe(gt+120),Oe(gt),Oe(gt-120))}t.hcl=Ke;function Ke(gt,zt,Jt){return this instanceof Ke?(this.h=+gt,this.c=+zt,void(this.l=+Jt)):arguments.length<2?gt instanceof Ke?new Ke(gt.h,gt.c,gt.l):gt instanceof $e?Nr(gt.l,gt.a,gt.b):Nr((gt=Br((gt=t.rgb(gt)).r,gt.g,gt.b)).l,gt.a,gt.b):new Ke(gt,zt,Jt)}var ar=Ke.prototype=new ue;ar.brighter=function(gt){return new Ke(this.h,this.c,Math.min(100,this.l+yr*(arguments.length?gt:1)))},ar.darker=function(gt){return new Ke(this.h,this.c,Math.max(0,this.l-yr*(arguments.length?gt:1)))},ar.rgb=function(){return We(this.h,this.c,this.l).rgb()};function We(gt,zt,Jt){return isNaN(gt)&&(gt=0),isNaN(zt)&&(zt=0),new $e(Jt,Math.cos(gt*=Ut)*zt,Math.sin(gt)*zt)}t.lab=$e;function $e(gt,zt,Jt){return this instanceof $e?(this.l=+gt,this.a=+zt,void(this.b=+Jt)):arguments.length<2?gt instanceof $e?new $e(gt.l,gt.a,gt.b):gt instanceof Ke?We(gt.h,gt.c,gt.l):Br((gt=_r(gt)).r,gt.g,gt.b):new $e(gt,zt,Jt)}var yr=18,Cr=.95047,Sr=1,Dr=1.08883,Or=$e.prototype=new ue;Or.brighter=function(gt){return new $e(Math.min(100,this.l+yr*(arguments.length?gt:1)),this.a,this.b)},Or.darker=function(gt){return new $e(Math.max(0,this.l-yr*(arguments.length?gt:1)),this.a,this.b)},Or.rgb=function(){return ei(this.l,this.a,this.b)};function ei(gt,zt,Jt){var se=(gt+16)/116,ce=se+zt/500,xe=se-Jt/200;return ce=re(ce)*Cr,se=re(se)*Sr,xe=re(xe)*Dr,new _r(wr(3.2404542*ce-1.5371385*se-.4985314*xe),wr(-.969266*ce+1.8760108*se+.041556*xe),wr(.0556434*ce-.2040259*se+1.0572252*xe))}function Nr(gt,zt,Jt){return gt>0?new Ke(Math.atan2(Jt,zt)*Zt,Math.sqrt(zt*zt+Jt*Jt),gt):new Ke(NaN,NaN,gt)}function re(gt){return gt>.206893034?gt*gt*gt:(gt-.13793103448275862)/7.787037}function ae(gt){return gt>.008856?gt**.3333333333333333:7.787037*gt+.13793103448275862}function wr(gt){return Math.round(255*(gt<=.00304?12.92*gt:1.055*gt**.4166666666666667-.055))}t.rgb=_r;function _r(gt,zt,Jt){return this instanceof _r?(this.r=~~gt,this.g=~~zt,void(this.b=~~Jt)):arguments.length<2?gt instanceof _r?new _r(gt.r,gt.g,gt.b):fr(""+gt,_r,Ge):new _r(gt,zt,Jt)}function lr(gt){return new _r(gt>>16,gt>>8&255,gt&255)}function qe(gt){return lr(gt)+""}var pr=_r.prototype=new ue;pr.brighter=function(gt){gt=.7**(arguments.length?gt:1);var zt=this.r,Jt=this.g,se=this.b,ce=30;return!zt&&!Jt&&!se?new _r(ce,ce,ce):(zt&&zt>4,se=se>>4|se,ce=rr&240,ce=ce>>4|ce,xe=rr&15,xe=xe<<4|xe):gt.length===7&&(se=(rr&16711680)>>16,ce=(rr&65280)>>8,xe=rr&255)),zt(se,ce,xe))}function ur(gt,zt,Jt){var se=Math.min(gt/=255,zt/=255,Jt/=255),ce=Math.max(gt,zt,Jt),xe=ce-se,Oe,Fe,rr=(ce+se)/2;return xe?(Fe=rr<.5?xe/(ce+se):xe/(2-ce-se),Oe=gt==ce?(zt-Jt)/xe+(zt0&&rr<1?0:Oe),new we(Oe,Fe,rr)}function Br(gt,zt,Jt){gt=$r(gt),zt=$r(zt),Jt=$r(Jt);var se=ae((.4124564*gt+.3575761*zt+.1804375*Jt)/Cr),ce=ae((.2126729*gt+.7151522*zt+.072175*Jt)/Sr),xe=ae((.0193339*gt+.119192*zt+.9503041*Jt)/Dr);return $e(116*ce-16,500*(se-ce),200*(ce-xe))}function $r(gt){return(gt/=255)<=.04045?gt/12.92:((gt+.055)/1.055)**2.4}function Jr(gt){var zt=parseFloat(gt);return gt.charAt(gt.length-1)==="%"?Math.round(zt*2.55):zt}var Zi=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Zi.forEach(function(gt,zt){Zi.set(gt,lr(zt))});function mi(gt){return typeof gt=="function"?gt:function(){return gt}}t.functor=mi,t.xhr=Ei(U);function Ei(gt){return function(zt,Jt,se){return arguments.length===2&&typeof Jt=="function"&&(se=Jt,Jt=null),Di(zt,Jt,gt,se)}}function Di(gt,zt,Jt,se){var ce={},xe=t.dispatch("beforesend","progress","load","error"),Oe={},Fe=new XMLHttpRequest,rr=null;self.XDomainRequest&&!("withCredentials"in Fe)&&/^(http(s)?:)?\/\//.test(gt)&&(Fe=new XDomainRequest),"onload"in Fe?Fe.onload=Fe.onerror=Ar:Fe.onreadystatechange=function(){Fe.readyState>3&&Ar()};function Ar(){var Mr=Fe.status,Yr;if(!Mr&&Vr(Fe)||Mr>=200&&Mr<300||Mr===304){try{Yr=Jt.call(ce,Fe)}catch(Qr){xe.error.call(ce,Qr);return}xe.load.call(ce,Yr)}else xe.error.call(ce,Fe)}return Fe.onprogress=function(Mr){var Yr=t.event;t.event=Mr;try{xe.progress.call(ce,Fe)}finally{t.event=Yr}},ce.header=function(Mr,Yr){return Mr=(Mr+"").toLowerCase(),arguments.length<2?Oe[Mr]:(Yr==null?delete Oe[Mr]:Oe[Mr]=Yr+"",ce)},ce.mimeType=function(Mr){return arguments.length?(zt=Mr==null?null:Mr+"",ce):zt},ce.responseType=function(Mr){return arguments.length?(rr=Mr,ce):rr},ce.response=function(Mr){return Jt=Mr,ce},["get","post"].forEach(function(Mr){ce[Mr]=function(){return ce.send.apply(ce,[Mr].concat(w(arguments)))}}),ce.send=function(Mr,Yr,Qr){if(arguments.length===2&&typeof Yr=="function"&&(Qr=Yr,Yr=null),Fe.open(Mr,gt,!0),zt!=null&&!("accept"in Oe)&&(Oe.accept=zt+",*/*"),Fe.setRequestHeader)for(var Ai in Oe)Fe.setRequestHeader(Ai,Oe[Ai]);return zt!=null&&Fe.overrideMimeType&&Fe.overrideMimeType(zt),rr!=null&&(Fe.responseType=rr),Qr!=null&&ce.on("error",Qr).on("load",function(Fi){Qr(null,Fi)}),xe.beforesend.call(ce,Fe),Fe.send(Yr??null),ce},ce.abort=function(){return Fe.abort(),ce},t.rebind(ce,xe,"on"),se==null?ce:ce.get(Tr(se))}function Tr(gt){return gt.length===1?function(zt,Jt){gt(zt==null?Jt:null)}:gt}function Vr(gt){var zt=gt.responseType;return zt&&zt!=="text"?gt.response:gt.responseText}t.dsv=function(gt,zt){var Jt=RegExp('["'+gt+` +]`),se=gt.charCodeAt(0);function ce(Ar,Mr,Yr){arguments.length<3&&(Yr=Mr,Mr=null);var Qr=Di(Ar,zt,Mr==null?xe:Oe(Mr),Yr);return Qr.row=function(Ai){return arguments.length?Qr.response((Mr=Ai)==null?xe:Oe(Ai)):Mr},Qr}function xe(Ar){return ce.parse(Ar.responseText)}function Oe(Ar){return function(Mr){return ce.parse(Mr.responseText,Ar)}}ce.parse=function(Ar,Mr){var Yr;return ce.parseRows(Ar,function(Qr,Ai){if(Yr)return Yr(Qr,Ai-1);var Fi=function(ti){for(var fi={},bi=Qr.length,Ui=0;Ui=Fi)return Qr;if(Ui)return Ui=!1,Yr;var ha=ti;if(Ar.charCodeAt(ha)===34){for(var Na=ha;Na++24?(isFinite(zt)&&(clearTimeout(si),si=setTimeout(ma,zt)),Ni=0):(Ni=1,Ci(ma))}t.timer.flush=function(){Ha(),ya()};function Ha(){for(var gt=Date.now(),zt=li;zt;)gt>=zt.t&&zt.c(gt-zt.t)&&(zt.c=null),zt=zt.n;return gt}function ya(){for(var gt,zt=li,Jt=1/0;zt;)zt.c?(zt.t=0;--Fe)ti.push(ce[Ar[Yr[Fe]][2]]);for(Fe=+Ai;Fe1&&Me(gt[Jt[se-2]],gt[Jt[se-1]],gt[ce])<=0;)--se;Jt[se++]=ce}return Jt.slice(0,se)}function Xr(gt,zt){return gt[0]-zt[0]||gt[1]-zt[1]}t.geom.polygon=function(gt){return Q(gt,ji),gt};var ji=t.geom.polygon.prototype=[];ji.area=function(){for(var gt=-1,zt=this.length,Jt,se=this[zt-1],ce=0;++gt$t)Fe=Fe.L;else if(Oe=zt-qi(Fe,Jt),Oe>$t){if(!Fe.R){se=Fe;break}Fe=Fe.R}else{xe>-$t?(se=Fe.P,ce=Fe):Oe>-$t?(se=Fe,ce=Fe.N):se=ce=Fe;break}var rr=Ii(gt);if(fa.insert(se,rr),!(!se&&!ce)){if(se===ce){ea(se),ce=Ii(se.site),fa.insert(rr,ce),rr.edge=ce.edge=sn(se.site,rr.site),ua(se),ua(ce);return}if(!ce){rr.edge=sn(se.site,rr.site);return}ea(se),ea(ce);var Ar=se.site,Mr=Ar.x,Yr=Ar.y,Qr=gt.x-Mr,Ai=gt.y-Yr,Fi=ce.site,ti=Fi.x-Mr,fi=Fi.y-Yr,bi=2*(Qr*fi-Ai*ti),Ui=Qr*Qr+Ai*Ai,Ri=ti*ti+fi*fi,ki={x:(fi*Ui-Ai*Ri)/bi+Mr,y:(Qr*Ri-ti*Ui)/bi+Yr};yn(ce.edge,Ar,Fi,ki),rr.edge=sn(Ar,gt,null,ki),ce.edge=sn(gt,Fi,null,ki),ua(se),ua(ce)}}function Qi(gt,zt){var Jt=gt.site,se=Jt.x,ce=Jt.y,xe=ce-zt;if(!xe)return se;var Oe=gt.P;if(!Oe)return-1/0;Jt=Oe.site;var Fe=Jt.x,rr=Jt.y,Ar=rr-zt;if(!Ar)return Fe;var Mr=Fe-se,Yr=1/xe-1/Ar,Qr=Mr/Ar;return Yr?(-Qr+Math.sqrt(Qr*Qr-2*Yr*(Mr*Mr/(-2*Ar)-rr+Ar/2+ce-xe/2)))/Yr+se:(se+Fe)/2}function qi(gt,zt){var Jt=gt.N;if(Jt)return Qi(Jt,zt);var se=gt.site;return se.y===zt?se.x:1/0}function Zr(gt){this.site=gt,this.edges=[]}Zr.prototype.prepare=function(){for(var gt=this.edges,zt=gt.length,Jt;zt--;)Jt=gt[zt].edge,(!Jt.b||!Jt.a)&>.splice(zt,1);return gt.sort(ai),gt.length};function Wr(gt){for(var zt=gt[0][0],Jt=gt[1][0],se=gt[0][1],ce=gt[1][1],xe,Oe,Fe,rr,Ar=na,Mr=Ar.length,Yr,Qr,Ai,Fi,ti,fi;Mr--;)if(Yr=Ar[Mr],!(!Yr||!Yr.prepare()))for(Ai=Yr.edges,Fi=Ai.length,Qr=0;Qr$t||d(rr-Oe)>$t)&&(Ai.splice(Qr,0,new Vs(Wa(Yr.site,fi,d(Fe-zt)<$t&&ce-rr>$t?{x:zt,y:d(xe-zt)<$t?Oe:ce}:d(rr-ce)<$t&&Jt-Fe>$t?{x:d(Oe-ce)<$t?xe:Jt,y:ce}:d(Fe-Jt)<$t&&rr-se>$t?{x:Jt,y:d(xe-Jt)<$t?Oe:se}:d(rr-se)<$t&&Fe-zt>$t?{x:d(Oe-se)<$t?xe:zt,y:se}:null),Yr.site,null)),++Fi)}function ai(gt,zt){return zt.angle-gt.angle}function _i(){os(this),this.x=this.y=this.arc=this.site=this.cy=null}function ua(gt){var zt=gt.P,Jt=gt.N;if(!(!zt||!Jt)){var se=zt.site,ce=gt.site,xe=Jt.site;if(se!==xe){var Oe=ce.x,Fe=ce.y,rr=se.x-Oe,Ar=se.y-Fe,Mr=xe.x-Oe,Yr=xe.y-Fe,Qr=2*(rr*Yr-Ar*Mr);if(!(Qr>=-Tt)){var Ai=rr*rr+Ar*Ar,Fi=Mr*Mr+Yr*Yr,ti=(Yr*Ai-Ar*Fi)/Qr,fi=(rr*Fi-Mr*Ai)/Qr,Yr=fi+Fe,bi=hr.pop()||new _i;bi.arc=gt,bi.site=ce,bi.x=ti+Oe,bi.y=Yr+Math.sqrt(ti*ti+fi*fi),bi.cy=Yr,gt.circle=bi;for(var Ui=null,Ri=On._;Ri;)if(bi.y0)){if(ti/=Ai,Ai<0){if(ti0){if(ti>Qr)return;ti>Yr&&(Yr=ti)}if(ti=Jt-Fe,!(!Ai&&ti<0)){if(ti/=Ai,Ai<0){if(ti>Qr)return;ti>Yr&&(Yr=ti)}else if(Ai>0){if(ti0)){if(ti/=Fi,Fi<0){if(ti0){if(ti>Qr)return;ti>Yr&&(Yr=ti)}if(ti=se-rr,!(!Fi&&ti<0)){if(ti/=Fi,Fi<0){if(ti>Qr)return;ti>Yr&&(Yr=ti)}else if(Fi>0){if(ti0&&(ce.a={x:Fe+Yr*Ai,y:rr+Yr*Fi}),Qr<1&&(ce.b={x:Fe+Qr*Ai,y:rr+Qr*Fi}),ce}}}}}}function wa(gt){for(var zt=Ji,Jt=zi(gt[0][0],gt[0][1],gt[1][0],gt[1][1]),se=zt.length,ce;se--;)ce=zt[se],(!ln(ce,gt)||!Jt(ce)||d(ce.a.x-ce.b.x)<$t&&d(ce.a.y-ce.b.y)<$t)&&(ce.a=ce.b=null,zt.splice(se,1))}function ln(gt,zt){var Jt=gt.b;if(Jt)return!0;var se=gt.a,ce=zt[0][0],xe=zt[1][0],Oe=zt[0][1],Fe=zt[1][1],rr=gt.l,Ar=gt.r,Mr=rr.x,Yr=rr.y,Qr=Ar.x,Ai=Ar.y,Fi=(Mr+Qr)/2,ti=(Yr+Ai)/2,fi,bi;if(Ai===Yr){if(Fi=xe)return;if(Mr>Qr){if(!se)se={x:Fi,y:Oe};else if(se.y>=Fe)return;Jt={x:Fi,y:Fe}}else{if(!se)se={x:Fi,y:Fe};else if(se.y1)if(Mr>Qr){if(!se)se={x:(Oe-bi)/fi,y:Oe};else if(se.y>=Fe)return;Jt={x:(Fe-bi)/fi,y:Fe}}else{if(!se)se={x:(Fe-bi)/fi,y:Fe};else if(se.y=xe)return;Jt={x:xe,y:fi*xe+bi}}else{if(!se)se={x:xe,y:fi*xe+bi};else if(se.x=Mr&&bi.x<=Qr&&bi.y>=Yr&&bi.y<=Ai?[[Mr,Ai],[Qr,Ai],[Qr,Yr],[Mr,Yr]]:[];Ui.point=rr[ti]}),Ar}function Fe(rr){return rr.map(function(Ar,Mr){return{x:Math.round(se(Ar,Mr)/$t)*$t,y:Math.round(ce(Ar,Mr)/$t)*$t,i:Mr}})}return Oe.links=function(rr){return Ml(Fe(rr)).edges.filter(function(Ar){return Ar.l&&Ar.r}).map(function(Ar){return{source:rr[Ar.l.i],target:rr[Ar.r.i]}})},Oe.triangles=function(rr){var Ar=[];return Ml(Fe(rr)).cells.forEach(function(Mr,Yr){for(var Qr=Mr.site,Ai=Mr.edges.sort(ai),Fi=-1,ti=Ai.length,fi,bi=Ai[ti-1].edge,Ui=bi.l===Qr?bi.r:bi.l;++FiRi&&(Ri=Mr.x),Mr.y>ki&&(ki=Mr.y),Ai.push(Mr.x),Fi.push(Mr.y);else for(ti=0;tiRi&&(Ri=ha),Na>ki&&(ki=Na),Ai.push(ha),Fi.push(Na)}var Za=Ri-bi,ja=ki-Ui;Za>ja?ki=Ui+Za:Ri=bi+ja;function Ya(rn,Bn,Un,rs,In,Ua,Pn,Mn){if(!(isNaN(Un)||isNaN(rs)))if(rn.leaf){var Oa=rn.x,Mo=rn.y;if(Oa!=null)if(d(Oa-Un)+d(Mo-rs)<.01)Ja(rn,Bn,Un,rs,In,Ua,Pn,Mn);else{var oo=rn.point;rn.x=rn.y=rn.point=null,Ja(rn,oo,Oa,Mo,In,Ua,Pn,Mn),Ja(rn,Bn,Un,rs,In,Ua,Pn,Mn)}else rn.x=Un,rn.y=rs,rn.point=Bn}else Ja(rn,Bn,Un,rs,In,Ua,Pn,Mn)}function Ja(rn,Bn,Un,rs,In,Ua,Pn,Mn){var Oa=(In+Pn)*.5,Mo=(Ua+Mn)*.5,oo=Un>=Oa,Eo=rs>=Mo,as=Eo<<1|oo;rn.leaf=!1,rn=rn.nodes[as]||(rn.nodes[as]=zo()),oo?In=Oa:Pn=Oa,Eo?Ua=Mo:Mn=Mo,Ya(rn,Bn,Un,rs,In,Ua,Pn,Mn)}var Cn=zo();if(Cn.add=function(rn){Ya(Cn,rn,+Yr(rn,++ti),+Qr(rn,ti),bi,Ui,Ri,ki)},Cn.visit=function(rn){As(rn,Cn,bi,Ui,Ri,ki)},Cn.find=function(rn){return bo(Cn,rn[0],rn[1],bi,Ui,Ri,ki)},ti=-1,zt==null){for(;++tixe||Qr>Oe||Ai=Na)<<1|zt>=ha,ja=Za+4;ZaJt&&(xe=zt.slice(Jt,xe),Fe[Oe]?Fe[Oe]+=xe:Fe[++Oe]=xe),(se=se[0])===(ce=ce[0])?Fe[Oe]?Fe[Oe]+=ce:Fe[++Oe]=ce:(Fe[++Oe]=null,rr.push({i:Oe,x:Do(se,ce)})),Jt=Bu.lastIndex;return Jt=0&&!(se=t.interpolators[Jt](gt,zt)););return se}t.interpolators=[function(gt,zt){var Jt=typeof zt;return(Jt==="string"?Zi.has(zt.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(zt)?No:gs:zt instanceof ue?No:Array.isArray(zt)?yu:Jt==="object"&&isNaN(zt)?bs:Do)(gt,zt)}],t.interpolateArray=yu;function yu(gt,zt){var Jt=[],se=[],ce=gt.length,xe=zt.length,Oe=Math.min(gt.length,zt.length),Fe;for(Fe=0;Fe=0?gt.slice(0,zt):gt,se=zt>=0?gt.slice(zt+1):"in";return Jt=ss.get(Jt)||Bs,se=vu.get(se)||U,cl(se(Jt.apply(null,E.call(arguments,1))))};function cl(gt){return function(zt){return zt<=0?0:zt>=1?1:gt(zt)}}function el(gt){return function(zt){return 1-gt(1-zt)}}function Nu(gt){return function(zt){return .5*(zt<.5?gt(2*zt):2-gt(2-2*zt))}}function xu(gt){return gt*gt}function rc(gt){return gt*gt*gt}function Hl(gt){if(gt<=0)return 0;if(gt>=1)return 1;var zt=gt*gt,Jt=zt*gt;return 4*(gt<.5?Jt:3*(gt-zt)+Jt-.75)}function bh(gt){return function(zt){return zt**+gt}}function wh(gt){return 1-Math.cos(gt*Ct)}function ah(gt){return 2**(10*(gt-1))}function Rc(gt){return 1-Math.sqrt(1-gt*gt)}function Th(gt,zt){var Jt;return arguments.length<2&&(zt=.45),arguments.length?Jt=zt/It*Math.asin(1/gt):(gt=1,Jt=zt/4),function(se){return 1+gt*2**(-10*se)*Math.sin((se-Jt)*It/zt)}}function _u(gt){return gt||(gt=1.70158),function(zt){return zt*zt*((gt+1)*zt-gt)}}function nh(gt){return gt<.36363636363636365?7.5625*gt*gt:gt<.7272727272727273?7.5625*(gt-=.5454545454545454)*gt+.75:gt<.9090909090909091?7.5625*(gt-=.8181818181818182)*gt+.9375:7.5625*(gt-=.9545454545454546)*gt+.984375}t.interpolateHcl=ic;function ic(gt,zt){gt=t.hcl(gt),zt=t.hcl(zt);var Jt=gt.h,se=gt.c,ce=gt.l,xe=zt.h-Jt,Oe=zt.c-se,Fe=zt.l-ce;return isNaN(Oe)&&(Oe=0,se=isNaN(se)?zt.c:se),isNaN(xe)?(xe=0,Jt=isNaN(Jt)?zt.h:Jt):xe>180?xe-=360:xe<-180&&(xe+=360),function(rr){return We(Jt+xe*rr,se+Oe*rr,ce+Fe*rr)+""}}t.interpolateHsl=oh;function oh(gt,zt){gt=t.hsl(gt),zt=t.hsl(zt);var Jt=gt.h,se=gt.s,ce=gt.l,xe=zt.h-Jt,Oe=zt.s-se,Fe=zt.l-ce;return isNaN(Oe)&&(Oe=0,se=isNaN(se)?zt.s:se),isNaN(xe)?(xe=0,Jt=isNaN(Jt)?zt.h:Jt):xe>180?xe-=360:xe<-180&&(xe+=360),function(rr){return Ge(Jt+xe*rr,se+Oe*rr,ce+Fe*rr)+""}}t.interpolateLab=sh;function sh(gt,zt){gt=t.lab(gt),zt=t.lab(zt);var Jt=gt.l,se=gt.a,ce=gt.b,xe=zt.l-Jt,Oe=zt.a-se,Fe=zt.b-ce;return function(rr){return ei(Jt+xe*rr,se+Oe*rr,ce+Fe*rr)+""}}t.interpolateRound=ls;function ls(gt,zt){return zt-=gt,function(Jt){return Math.round(gt+zt*Jt)}}t.transform=function(gt){var zt=p.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(Jt){if(Jt!=null){zt.setAttribute("transform",Jt);var se=zt.transform.baseVal.consolidate()}return new us(se?se.matrix:kc)})(gt)};function us(gt){var zt=[gt.a,gt.b],Jt=[gt.c,gt.d],se=Gl(zt),ce=tu(zt,Jt),xe=Gl(lh(Jt,zt,-ce))||0;zt[0]*Jt[1]180?zt+=360:zt-gt>180&&(gt+=360),se.push({i:Jt.push(bu(Jt)+"rotate(",null,")")-2,x:Do(gt,zt)}))}function rl(gt,zt,Jt,se){gt===zt?zt&&Jt.push(bu(Jt)+"skewX("+zt+")"):se.push({i:Jt.push(bu(Jt)+"skewX(",null,")")-2,x:Do(gt,zt)})}function eu(gt,zt,Jt,se){if(gt[0]!==zt[0]||gt[1]!==zt[1]){var ce=Jt.push(bu(Jt)+"scale(",null,",",null,")");se.push({i:ce-4,x:Do(gt[0],zt[0])},{i:ce-2,x:Do(gt[1],zt[1])})}else(zt[0]!==1||zt[1]!==1)&&Jt.push(bu(Jt)+"scale("+zt+")")}function El(gt,zt){var Jt=[],se=[];return gt=t.transform(gt),zt=t.transform(zt),Fc(gt.translate,zt.translate,Jt,se),kh(gt.rotate,zt.rotate,Jt,se),rl(gt.skew,zt.skew,Jt,se),eu(gt.scale,zt.scale,Jt,se),gt=zt=null,function(ce){for(var xe=-1,Oe=se.length,Fe;++xe0?xe=ki:(Jt.c=null,Jt.t=NaN,Jt=null,zt.end({type:"end",alpha:xe=0})):ki>0&&(zt.start({type:"start",alpha:xe=ki}),Jt=wi(gt.tick)),gt):xe},gt.start=function(){var ki,ha=Ai.length,Na=Fi.length,Za=se[0],ja=se[1],Ya,Ja;for(ki=0;ki=0;)xe.push(Mr=Ar[rr]),Mr.parent=Fe,Mr.depth=Fe.depth+1;Jt&&(Fe.value=0),Fe.children=Ar}else Jt&&(Fe.value=+Jt.call(se,Fe,Fe.depth)||0),delete Fe.children;return Ms(ce,function(Yr){var Qr,Ai;gt&&(Qr=Yr.children)&&Qr.sort(gt),Jt&&(Ai=Yr.parent)&&(Ai.value+=Yr.value)}),Oe}return se.sort=function(ce){return arguments.length?(gt=ce,se):gt},se.children=function(ce){return arguments.length?(zt=ce,se):zt},se.value=function(ce){return arguments.length?(Jt=ce,se):Jt},se.revalue=function(ce){return Jt&&(ws(ce,function(xe){xe.children&&(xe.value=0)}),Ms(ce,function(xe){var Oe;xe.children||(xe.value=+Jt.call(se,xe,xe.depth)||0),(Oe=xe.parent)&&(Oe.value+=xe.value)})),ce},se};function iu(gt,zt){return t.rebind(gt,zt,"sort","children","value"),gt.nodes=gt,gt.links=nc,gt}function ws(gt,zt){for(var Jt=[gt];(gt=Jt.pop())!=null;)if(zt(gt),(ce=gt.children)&&(se=ce.length))for(var se,ce;--se>=0;)Jt.push(ce[se])}function Ms(gt,zt){for(var Jt=[gt],se=[];(gt=Jt.pop())!=null;)if(se.push(gt),(Oe=gt.children)&&(xe=Oe.length))for(var ce=-1,xe,Oe;++cece&&(ce=Fe),se.push(Fe)}for(Oe=0;Oese&&(Jt=zt,se=ce);return Jt}function au(gt){return gt.reduce(qs,0)}function qs(gt,zt){return gt+zt[1]}t.layout.histogram=function(){var gt=!0,zt=Number,Jt=Wo,se=Hu;function ce(xe,Oe){for(var Fe=[],rr=xe.map(zt,this),Ar=Jt.call(this,rr,Oe),Mr=se.call(this,Ar,rr,Oe),Yr,Oe=-1,Qr=rr.length,Ai=Mr.length-1,Fi=gt?1:1/Qr,ti;++Oe0)for(Oe=-1;++Oe=Ar[0]&&ti<=Ar[1]&&(Yr=Fe[t.bisect(Mr,ti,1,Ai)-1],Yr.y+=Fi,Yr.push(xe[Oe]));return Fe}return ce.value=function(xe){return arguments.length?(zt=xe,ce):zt},ce.range=function(xe){return arguments.length?(Jt=mi(xe),ce):Jt},ce.bins=function(xe){return arguments.length?(se=typeof xe=="number"?function(Oe){return nu(Oe,xe)}:mi(xe),ce):se},ce.frequency=function(xe){return arguments.length?(gt=!!xe,ce):gt},ce};function Hu(gt,zt){return nu(gt,Math.ceil(Math.log(zt.length)/Math.LN2+1))}function nu(gt,zt){for(var Jt=-1,se=+gt[0],ce=(gt[1]-se)/zt,xe=[];++Jt<=zt;)xe[Jt]=ce*Jt+se;return xe}function Wo(gt){return[t.min(gt),t.max(gt)]}t.layout.pack=function(){var gt=t.layout.hierarchy().sort(Hc),zt=0,Jt=[1,1],se;function ce(xe,Oe){var Fe=gt.call(this,xe,Oe),rr=Fe[0],Ar=Jt[0],Mr=Jt[1],Yr=se==null?Math.sqrt:typeof se=="function"?se:function(){return se};if(rr.x=rr.y=0,Ms(rr,function(Ai){Ai.r=+Yr(Ai.value)}),Ms(rr,Ll),zt){var Qr=zt*(se?1:Math.max(2*rr.r/Ar,2*rr.r/Mr))/2;Ms(rr,function(Ai){Ai.r+=Qr}),Ms(rr,Ll),Ms(rr,function(Ai){Ai.r-=Qr})}return lo(rr,Ar/2,Mr/2,se?1:1/Math.max(2*rr.r/Ar,2*rr.r/Mr)),Fe}return ce.size=function(xe){return arguments.length?(Jt=xe,ce):Jt},ce.radius=function(xe){return arguments.length?(se=xe==null||typeof xe=="function"?xe:+xe,ce):se},ce.padding=function(xe){return arguments.length?(zt=+xe,ce):zt},iu(ce,gt)};function Hc(gt,zt){return gt.value-zt.value}function Ss(gt,zt){var Jt=gt._pack_next;gt._pack_next=zt,zt._pack_prev=gt,zt._pack_next=Jt,Jt._pack_prev=zt}function hl(gt,zt){gt._pack_next=zt,zt._pack_prev=gt}function wo(gt,zt){var Jt=zt.x-gt.x,se=zt.y-gt.y,ce=gt.r+zt.r;return .999*ce*ce>Jt*Jt+se*se}function Ll(gt){if(!(zt=gt.children)||!(Qr=zt.length))return;var zt,Jt=1/0,se=-1/0,ce=1/0,xe=-1/0,Oe,Fe,rr,Ar,Mr,Yr,Qr;function Ai(ki){Jt=Math.min(ki.x-ki.r,Jt),se=Math.max(ki.x+ki.r,se),ce=Math.min(ki.y-ki.r,ce),xe=Math.max(ki.y+ki.r,xe)}if(zt.forEach(Yn),Oe=zt[0],Oe.x=-Oe.r,Oe.y=0,Ai(Oe),Qr>1&&(Fe=zt[1],Fe.x=Fe.r,Fe.y=0,Ai(Fe),Qr>2))for(rr=zt[2],Pl(Oe,Fe,rr),Ai(rr),Ss(Oe,rr),Oe._pack_prev=rr,Ss(rr,Fe),Fe=Oe._pack_next,Ar=3;Arfi.x&&(fi=ha),ha.depth>bi.depth&&(bi=ha)});var Ui=zt(ti,fi)/2-ti.x,Ri=Jt[0]/(fi.x+zt(fi,ti)/2+Ui),ki=Jt[1]/(bi.depth||1);ws(Ai,function(ha){ha.x=(ha.x+Ui)*Ri,ha.y=ha.depth*ki})}return Qr}function xe(Mr){for(var Yr={A:null,children:[Mr]},Qr=[Yr],Ai;(Ai=Qr.pop())!=null;)for(var Fi=Ai.children,ti,fi=0,bi=Fi.length;fi0&&(hh(Gc(ti,Mr,Qr),Mr,ha),bi+=ha,Ui+=ha),Ri+=ti.m,bi+=Ai.m,ki+=fi.m,Ui+=Fi.m;ti&&!zl(Fi)&&(Fi.t=ti,Fi.m+=Ri-Ui),Ai&&!no(fi)&&(fi.t=Ai,fi.m+=bi-ki,Qr=Mr)}return Qr}function Ar(Mr){Mr.x*=Jt[0],Mr.y=Mr.depth*Jt[1]}return ce.separation=function(Mr){return arguments.length?(zt=Mr,ce):zt},ce.size=function(Mr){return arguments.length?(se=(Jt=Mr)==null?Ar:null,ce):se?null:Jt},ce.nodeSize=function(Mr){return arguments.length?(se=(Jt=Mr)==null?null:Ar,ce):se?Jt:null},iu(ce,gt)};function Gu(gt,zt){return gt.parent==zt.parent?1:2}function no(gt){var zt=gt.children;return zt.length?zt[0]:gt.t}function zl(gt){var zt=gt.children,Jt;return(Jt=zt.length)?zt[Jt-1]:gt.t}function hh(gt,zt,Jt){var se=Jt/(zt.i-gt.i);zt.c-=se,zt.s+=Jt,gt.c+=se,zt.z+=Jt,zt.m+=Jt}function Mh(gt){for(var zt=0,Jt=0,se=gt.children,ce=se.length,xe;--ce>=0;)xe=se[ce],xe.z+=zt,xe.m+=zt,zt+=xe.s+(Jt+=xe.c)}function Gc(gt,zt,Jt){return gt.a.parent===zt.parent?gt.a:Jt}t.layout.cluster=function(){var gt=t.layout.hierarchy().sort(null).value(null),zt=Gu,Jt=[1,1],se=!1;function ce(xe,Oe){var Fe=gt.call(this,xe,Oe),rr=Fe[0],Ar,Mr=0;Ms(rr,function(ti){var fi=ti.children;fi&&fi.length?(ti.x=Zc(fi),ti.y=sc(fi)):(ti.x=Ar?Mr+=zt(ti,Ar):0,ti.y=0,Ar=ti)});var Yr=lc(rr),Qr=Mc(rr),Ai=Yr.x-zt(Yr,Qr)/2,Fi=Qr.x+zt(Qr,Yr)/2;return Ms(rr,se?function(ti){ti.x=(ti.x-rr.x)*Jt[0],ti.y=(rr.y-ti.y)*Jt[1]}:function(ti){ti.x=(ti.x-Ai)/(Fi-Ai)*Jt[0],ti.y=(1-(rr.y?ti.y/rr.y:1))*Jt[1]}),Fe}return ce.separation=function(xe){return arguments.length?(zt=xe,ce):zt},ce.size=function(xe){return arguments.length?(se=(Jt=xe)==null,ce):se?null:Jt},ce.nodeSize=function(xe){return arguments.length?(se=(Jt=xe)!=null,ce):se?Jt:null},iu(ce,gt)};function sc(gt){return 1+t.max(gt,function(zt){return zt.y})}function Zc(gt){return gt.reduce(function(zt,Jt){return zt+Jt.x},0)/gt.length}function lc(gt){var zt=gt.children;return zt&&zt.length?lc(zt[0]):gt}function Mc(gt){var zt=gt.children,Jt;return zt&&(Jt=zt.length)?Mc(zt[Jt-1]):gt}t.layout.treemap=function(){var gt=t.layout.hierarchy(),zt=Math.round,Jt=[1,1],se=null,ce=ys,xe=!1,Oe,Fe="squarify",rr=.5*(1+Math.sqrt(5));function Ar(ti,fi){for(var bi=-1,Ui=ti.length,Ri,ki;++bi0;)Ui.push(ki=Ri[ja-1]),Ui.area+=ki.area,Fe!=="squarify"||(Na=Qr(Ui,Za))<=ha?(Ri.pop(),ha=Na):(Ui.area-=Ui.pop().area,Ai(Ui,Za,bi,!1),Za=Math.min(bi.dx,bi.dy),Ui.length=Ui.area=0,ha=1/0);Ui.length&&(Ui.length=(Ai(Ui,Za,bi,!0),Ui.area=0)),fi.forEach(Mr)}}function Yr(ti){var fi=ti.children;if(fi&&fi.length){var bi=ce(ti),Ui=fi.slice(),Ri,ki=[];for(Ar(Ui,bi.dx*bi.dy/ti.value),ki.area=0;Ri=Ui.pop();)ki.push(Ri),ki.area+=Ri.area,Ri.z!=null&&(Ai(ki,Ri.z?bi.dx:bi.dy,bi,!Ui.length),ki.length=ki.area=0);fi.forEach(Yr)}}function Qr(ti,fi){for(var bi=ti.area,Ui,Ri=0,ki=1/0,ha=-1,Na=ti.length;++haRi&&(Ri=Ui));return bi*=bi,fi*=fi,bi?Math.max(fi*Ri*rr/bi,bi/(fi*ki*rr)):1/0}function Ai(ti,fi,bi,Ui){var Ri=-1,ki=ti.length,ha=bi.x,Na=bi.y,Za=fi?zt(ti.area/fi):0,ja;if(fi==bi.dx){for((Ui||Za>bi.dy)&&(Za=bi.dy);++Ribi.dx)&&(Za=bi.dx);++Ri1);return gt+zt*se*Math.sqrt(-2*Math.log(xe)/xe)}},logNormal:function(){var gt=t.random.normal.apply(t,arguments);return function(){return Math.exp(gt())}},bates:function(gt){var zt=t.random.irwinHall(gt);return function(){return zt()/gt}},irwinHall:function(gt){return function(){for(var zt=0,Jt=0;Jt2?Wc:uc,Ar=se?ru:ao;return ce=rr(gt,zt,Ar,Jt),xe=rr(zt,gt,Ar,jo),Fe}function Fe(rr){return ce(rr)}return Fe.invert=function(rr){return xe(rr)},Fe.domain=function(rr){return arguments.length?(gt=rr.map(Number),Oe()):gt},Fe.range=function(rr){return arguments.length?(zt=rr,Oe()):zt},Fe.rangeRound=function(rr){return Fe.range(rr).interpolate(ls)},Fe.clamp=function(rr){return arguments.length?(se=rr,Oe()):se},Fe.interpolate=function(rr){return arguments.length?(Jt=rr,Oe()):Jt},Fe.ticks=function(rr){return Dl(gt,rr)},Fe.tickFormat=function(rr,Ar){return d3_scale_linearTickFormat(gt,rr,Ar)},Fe.nice=function(rr){return ts(gt,rr),Oe()},Fe.copy=function(){return hc(gt,zt,Jt,se)},Oe()}function fl(gt,zt){return t.rebind(gt,zt,"range","rangeRound","interpolate","clamp")}function ts(gt,zt){return Zu(gt,cc(Zs(gt,zt)[2])),Zu(gt,cc(Zs(gt,zt)[2])),gt}function Zs(gt,zt){zt??(zt=10);var Jt=ku(gt),se=Jt[1]-Jt[0],ce=10**Math.floor(Math.log(se/zt)/Math.LN10),xe=zt/se*ce;return xe<=.15?ce*=10:xe<=.35?ce*=5:xe<=.75&&(ce*=2),Jt[0]=Math.ceil(Jt[0]/ce)*ce,Jt[1]=Math.floor(Jt[1]/ce)*ce+ce*.5,Jt[2]=ce,Jt}function Dl(gt,zt){return t.range.apply(t,Zs(gt,zt))}t.scale.log=function(){return Au(t.scale.linear().domain([0,1]),10,!0,[1,10])};function Au(gt,zt,Jt,se){function ce(Fe){return(Jt?Math.log(Fe<0?0:Fe):-Math.log(Fe>0?0:-Fe))/Math.log(zt)}function xe(Fe){return Jt?zt**+Fe:-(zt**+-Fe)}function Oe(Fe){return gt(ce(Fe))}return Oe.invert=function(Fe){return xe(gt.invert(Fe))},Oe.domain=function(Fe){return arguments.length?(Jt=Fe[0]>=0,gt.domain((se=Fe.map(Number)).map(ce)),Oe):se},Oe.base=function(Fe){return arguments.length?(zt=+Fe,gt.domain(se.map(ce)),Oe):zt},Oe.nice=function(){var Fe=Zu(se.map(ce),Jt?Math:Sc);return gt.domain(Fe),se=Fe.map(xe),Oe},Oe.ticks=function(){var Fe=ku(se),rr=[],Ar=Fe[0],Mr=Fe[1],Yr=Math.floor(ce(Ar)),Qr=Math.ceil(ce(Mr)),Ai=zt%1?2:zt;if(isFinite(Qr-Yr)){if(Jt){for(;Yr0;Fi--)rr.push(xe(Yr)*Fi);for(Yr=0;rr[Yr]Mr;Qr--);rr=rr.slice(Yr,Qr)}return rr},Oe.copy=function(){return Au(gt.copy(),zt,Jt,se)},fl(Oe,gt)}var Sc={floor:function(gt){return-Math.ceil(-gt)},ceil:function(gt){return-Math.floor(-gt)}};t.scale.pow=function(){return fh(t.scale.linear(),1,[0,1])};function fh(gt,zt,Jt){var se=Es(zt),ce=Es(1/zt);function xe(Oe){return gt(se(Oe))}return xe.invert=function(Oe){return ce(gt.invert(Oe))},xe.domain=function(Oe){return arguments.length?(gt.domain((Jt=Oe.map(Number)).map(se)),xe):Jt},xe.ticks=function(Oe){return Dl(Jt,Oe)},xe.tickFormat=function(Oe,Fe){return d3_scale_linearTickFormat(Jt,Oe,Fe)},xe.nice=function(Oe){return xe.domain(ts(Jt,Oe))},xe.exponent=function(Oe){return arguments.length?(se=Es(zt=Oe),ce=Es(1/zt),gt.domain(Jt.map(se)),xe):zt},xe.copy=function(){return fh(gt.copy(),zt,Jt)},fl(xe,gt)}function Es(gt){return function(zt){return zt<0?-((-zt)**+gt):zt**+gt}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return fc([],{t:"range",a:[[]]})};function fc(gt,zt){var Jt,se,ce;function xe(Fe){return se[((Jt.get(Fe)||(zt.t==="range"?Jt.set(Fe,gt.push(Fe)):NaN))-1)%se.length]}function Oe(Fe,rr){return t.range(gt.length).map(function(Ar){return Fe+rr*Ar})}return xe.domain=function(Fe){if(!arguments.length)return gt;gt=[],Jt=new g;for(var rr=-1,Ar=Fe.length,Mr;++rr0?Jt[xe-1]:gt[0],xeQr?0:1;if(Mr=Mt)return rr(Mr,Fi)+(Ar?rr(Ar,1-Fi):"")+"Z";var ti,fi,bi,Ui,Ri=0,ki=0,ha,Na,Za,ja,Ya,Ja,Cn,rn,Bn=[];if((Ui=(+Oe.apply(this,arguments)||0)/2)&&(bi=se===Mu?Math.sqrt(Ar*Ar+Mr*Mr):+se.apply(this,arguments),Fi||(ki*=-1),Mr&&(ki=Be(bi/Mr*Math.sin(Ui))),Ar&&(Ri=Be(bi/Ar*Math.sin(Ui)))),Mr){ha=Mr*Math.cos(Yr+ki),Na=Mr*Math.sin(Yr+ki),Za=Mr*Math.cos(Qr-ki),ja=Mr*Math.sin(Qr-ki);var Un=Math.abs(Qr-Yr-2*ki)<=_t?0:1;if(ki&&Fl(ha,Na,Za,ja)===Fi^Un){var rs=(Yr+Qr)/2;ha=Mr*Math.cos(rs),Na=Mr*Math.sin(rs),Za=ja=null}}else ha=Na=0;if(Ar){Ya=Ar*Math.cos(Qr-Ri),Ja=Ar*Math.sin(Qr-Ri),Cn=Ar*Math.cos(Yr+Ri),rn=Ar*Math.sin(Yr+Ri);var In=Math.abs(Yr-Qr+2*Ri)<=_t?0:1;if(Ri&&Fl(Ya,Ja,Cn,rn)===1-Fi^In){var Ua=(Yr+Qr)/2;Ya=Ar*Math.cos(Ua),Ja=Ar*Math.sin(Ua),Cn=rn=null}}else Ya=Ja=0;if(Ai>$t&&(ti=Math.min(Math.abs(Mr-Ar)/2,+Jt.apply(this,arguments)))>.001){fi=Ar0?0:1}function Xl(gt,zt,Jt,se,ce){var xe=gt[0]-zt[0],Oe=gt[1]-zt[1],Fe=(ce?se:-se)/Math.sqrt(xe*xe+Oe*Oe),rr=Fe*Oe,Ar=-Fe*xe,Mr=gt[0]+rr,Yr=gt[1]+Ar,Qr=zt[0]+rr,Ai=zt[1]+Ar,Fi=(Mr+Qr)/2,ti=(Yr+Ai)/2,fi=Qr-Mr,bi=Ai-Yr,Ui=fi*fi+bi*bi,Ri=Jt-se,ki=Mr*Ai-Qr*Yr,ha=(bi<0?-1:1)*Math.sqrt(Math.max(0,Ri*Ri*Ui-ki*ki)),Na=(ki*bi-fi*ha)/Ui,Za=(-ki*fi-bi*ha)/Ui,ja=(ki*bi+fi*ha)/Ui,Ya=(-ki*fi+bi*ha)/Ui,Ja=Na-Fi,Cn=Za-ti,rn=ja-Fi,Bn=Ya-ti;return Ja*Ja+Cn*Cn>rn*rn+Bn*Bn&&(Na=ja,Za=Ya),[[Na-rr,Za-Ar],[Na*Jt/Ri,Za*Jt/Ri]]}function Ws(){return!0}function Bl(gt){var zt=Ga,Jt=Ea,se=Ws,ce=Uo,xe=ce.key,Oe=.7;function Fe(rr){var Ar=[],Mr=[],Yr=-1,Qr=rr.length,Ai,Fi=mi(zt),ti=mi(Jt);function fi(){Ar.push("M",ce(gt(Mr),Oe))}for(;++Yr1?gt.join("L"):gt+"Z"}function lu(gt){return gt.join("L")+"Z"}function Eu(gt){for(var zt=0,Jt=gt.length,se=gt[0],ce=[se[0],",",se[1]];++zt1&&ce.push("H",se[0]),ce.join("")}function uu(gt){for(var zt=0,Jt=gt.length,se=gt[0],ce=[se[0],",",se[1]];++zt1){Fe=zt[1],xe=gt[rr],rr++,se+="C"+(ce[0]+Oe[0])+","+(ce[1]+Oe[1])+","+(xe[0]-Fe[0])+","+(xe[1]-Fe[1])+","+xe[0]+","+xe[1];for(var Ar=2;Ar9&&(xe=Jt*3/Math.sqrt(xe),Oe[Fe]=xe*se,Oe[Fe+1]=xe*ce));for(Fe=-1;++Fe<=rr;)xe=(gt[Math.min(rr,Fe+1)][0]-gt[Math.max(0,Fe-1)][0])/(6*(1+Oe[Fe]*Oe[Fe])),zt.push([xe||0,Oe[Fe]*xe||0]);return zt}function vc(gt){return gt.length<3?Uo(gt):gt[0]+ro(gt,$u(gt))}t.svg.line.radial=function(){var gt=Bl(pl);return gt.radius=gt.x,delete gt.x,gt.angle=gt.y,delete gt.y,gt};function pl(gt){for(var zt,Jt=-1,se=gt.length,ce,xe;++Jt_t)+",1 "+Yr}function Ar(Mr,Yr,Qr,Ai){return"Q 0,0 "+Ai}return xe.radius=function(Mr){return arguments.length?(Jt=mi(Mr),xe):Jt},xe.source=function(Mr){return arguments.length?(gt=mi(Mr),xe):gt},xe.target=function(Mr){return arguments.length?(zt=mi(Mr),xe):zt},xe.startAngle=function(Mr){return arguments.length?(se=mi(Mr),xe):se},xe.endAngle=function(Mr){return arguments.length?(ce=mi(Mr),xe):ce},xe};function Lu(gt){return gt.radius}t.svg.diagonal=function(){var gt=Nl,zt=Yc,Jt=xc;function se(ce,xe){var Oe=gt.call(this,ce,xe),Fe=zt.call(this,ce,xe),rr=(Oe.y+Fe.y)/2,Ar=[Oe,{x:Oe.x,y:rr},{x:Fe.x,y:rr},Fe];return Ar=Ar.map(Jt),"M"+Ar[0]+"C"+Ar[1]+" "+Ar[2]+" "+Ar[3]}return se.source=function(ce){return arguments.length?(gt=mi(ce),se):gt},se.target=function(ce){return arguments.length?(zt=mi(ce),se):zt},se.projection=function(ce){return arguments.length?(Jt=ce,se):Jt},se};function xc(gt){return[gt.x,gt.y]}t.svg.diagonal.radial=function(){var gt=t.svg.diagonal(),zt=xc,Jt=gt.projection;return gt.projection=function(se){return arguments.length?Jt(ne(zt=se)):zt},gt};function ne(gt){return function(){var zt=gt.apply(this,arguments),Jt=zt[0],se=zt[1]-Ct;return[Jt*Math.cos(se),Jt*Math.sin(se)]}}t.svg.symbol=function(){var gt=Se,zt=pe;function Jt(se,ce){return(Xe.get(gt.call(this,se,ce))||ze)(zt.call(this,se,ce))}return Jt.type=function(se){return arguments.length?(gt=mi(se),Jt):gt},Jt.size=function(se){return arguments.length?(zt=mi(se),Jt):zt},Jt};function pe(){return 64}function Se(){return"circle"}function ze(gt){var zt=Math.sqrt(gt/_t);return"M0,"+zt+"A"+zt+","+zt+" 0 1,1 0,"+-zt+"A"+zt+","+zt+" 0 1,1 0,"+zt+"Z"}var Xe=t.map({circle:ze,cross:function(gt){var zt=Math.sqrt(gt/5)/2;return"M"+-3*zt+","+-zt+"H"+-zt+"V"+-3*zt+"H"+zt+"V"+-zt+"H"+3*zt+"V"+zt+"H"+zt+"V"+3*zt+"H"+-zt+"V"+zt+"H"+-3*zt+"Z"},diamond:function(gt){var zt=Math.sqrt(gt/(2*tr)),Jt=zt*tr;return"M0,"+-zt+"L"+Jt+",0 0,"+zt+" "+-Jt+",0Z"},square:function(gt){var zt=Math.sqrt(gt)/2;return"M"+-zt+","+-zt+"L"+zt+","+-zt+" "+zt+","+zt+" "+-zt+","+zt+"Z"},"triangle-down":function(gt){var zt=Math.sqrt(gt/Ze),Jt=zt*Ze/2;return"M0,"+Jt+"L"+zt+","+-Jt+" "+-zt+","+-Jt+"Z"},"triangle-up":function(gt){var zt=Math.sqrt(gt/Ze),Jt=zt*Ze/2;return"M0,"+-Jt+"L"+zt+","+Jt+" "+-zt+","+Jt+"Z"}});t.svg.symbolTypes=Xe.keys();var Ze=Math.sqrt(3),tr=Math.tan(30*Ut);X.transition=function(gt){for(var zt=di||++ii,Jt=Sa(gt),se=[],ce,xe,Oe=gi||{time:Date.now(),ease:Hl,delay:0,duration:250},Fe=-1,rr=this.length;++Fe0;)Yr[--Ui].call(gt,bi);if(fi>=1)return Oe.event&&Oe.event.end.call(gt,gt.__data__,zt),--xe.count?delete xe[se]:delete gt[Jt],1}Oe||(Fe=ce.time,rr=wi(Qr,0,Fe),Oe=xe[se]={tween:new g,time:Fe,timer:rr,delay:ce.delay,duration:ce.duration,ease:ce.ease,index:zt},ce=null,++xe.count)}t.svg.axis=function(){var gt=t.scale.linear(),zt=Ra,Jt=6,se=6,ce=3,xe=[10],Oe=null,Fe;function rr(Ar){Ar.each(function(){var Mr=t.select(this),Yr=this.__chart__||gt,Qr=this.__chart__=gt.copy(),Ai=Oe??(Qr.ticks?Qr.ticks.apply(Qr,xe):Qr.domain()),Fi=Fe??(Qr.tickFormat?Qr.tickFormat.apply(Qr,xe):U),ti=Mr.selectAll(".tick").data(Ai,Qr),fi=ti.enter().insert("g",".domain").attr("class","tick").style("opacity",$t),bi=t.transition(ti.exit()).style("opacity",$t).remove(),Ui=t.transition(ti.order()).style("opacity",1),Ri=Math.max(Jt,0)+ce,ki,ha=Gs(Qr),Na=Mr.selectAll(".domain").data([0]),Za=(Na.enter().append("path").attr("class","domain"),t.transition(Na));fi.append("line"),fi.append("text");var ja=fi.select("line"),Ya=Ui.select("line"),Ja=ti.select("text").text(Fi),Cn=fi.select("text"),rn=Ui.select("text"),Bn=zt==="top"||zt==="left"?-1:1,Un,rs,In,Ua;if(zt==="bottom"||zt==="top"?(ki=kn,Un="x",In="y",rs="x2",Ua="y2",Ja.attr("dy",Bn<0?"0em":".71em").style("text-anchor","middle"),Za.attr("d","M"+ha[0]+","+Bn*se+"V0H"+ha[1]+"V"+Bn*se)):(ki=En,Un="y",In="x",rs="y2",Ua="x2",Ja.attr("dy",".32em").style("text-anchor",Bn<0?"end":"start"),Za.attr("d","M"+Bn*se+","+ha[0]+"H0V"+ha[1]+"H"+Bn*se)),ja.attr(Ua,Bn*Jt),Cn.attr(In,Bn*Ri),Ya.attr(rs,0).attr(Ua,Bn*Jt),rn.attr(Un,0).attr(In,Bn*Ri),Qr.rangeBand){var Pn=Qr,Mn=Pn.rangeBand()/2;Yr=Qr=function(Oa){return Pn(Oa)+Mn}}else Yr.rangeBand?Yr=Qr:bi.call(ki,Qr,Yr);fi.call(ki,Yr,Qr),Ui.call(ki,Qr,Qr)})}return rr.scale=function(Ar){return arguments.length?(gt=Ar,rr):gt},rr.orient=function(Ar){return arguments.length?(zt=Ar in fn?Ar+"":Ra,rr):zt},rr.ticks=function(){return arguments.length?(xe=w(arguments),rr):xe},rr.tickValues=function(Ar){return arguments.length?(Oe=Ar,rr):Oe},rr.tickFormat=function(Ar){return arguments.length?(Fe=Ar,rr):Fe},rr.tickSize=function(Ar){var Mr=arguments.length;return Mr?(Jt=+Ar,se=+arguments[Mr-1],rr):Jt},rr.innerTickSize=function(Ar){return arguments.length?(Jt=+Ar,rr):Jt},rr.outerTickSize=function(Ar){return arguments.length?(se=+Ar,rr):se},rr.tickPadding=function(Ar){return arguments.length?(ce=+Ar,rr):ce},rr.tickSubdivide=function(){return arguments.length&&rr},rr};var Ra="bottom",fn={top:1,right:1,bottom:1,left:1};function kn(gt,zt,Jt){gt.attr("transform",function(se){var ce=zt(se);return"translate("+(isFinite(ce)?ce:Jt(se))+",0)"})}function En(gt,zt,Jt){gt.attr("transform",function(se){var ce=zt(se);return"translate(0,"+(isFinite(ce)?ce:Jt(se))+")"})}t.svg.brush=function(){var gt=J(Mr,"brushstart","brush","brushend"),zt=null,Jt=null,se=[0,0],ce=[0,0],xe,Oe,Fe=!0,rr=!0,Ar=yo[0];function Mr(ti){ti.each(function(){var fi=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Fi).on("touchstart.brush",Fi),bi=fi.selectAll(".background").data([0]);bi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),fi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ui=fi.selectAll(".resize").data(Ar,U);Ui.exit().remove(),Ui.enter().append("g").attr("class",function(Na){return"resize "+Na}).style("cursor",function(Na){return Ao[Na]}).append("rect").attr("x",function(Na){return/[ew]$/.test(Na)?-3:null}).attr("y",function(Na){return/^[ns]/.test(Na)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ui.style("display",Mr.empty()?"none":null);var Ri=t.transition(fi),ki=t.transition(bi),ha;zt&&(ha=Gs(zt),ki.attr("x",ha[0]).attr("width",ha[1]-ha[0]),Qr(Ri)),Jt&&(ha=Gs(Jt),ki.attr("y",ha[0]).attr("height",ha[1]-ha[0]),Ai(Ri)),Yr(Ri)})}Mr.event=function(ti){ti.each(function(){var fi=gt.of(this,arguments),bi={x:se,y:ce,i:xe,j:Oe},Ui=this.__chart__||bi;this.__chart__=bi,di?t.select(this).transition().each("start.brush",function(){xe=Ui.i,Oe=Ui.j,se=Ui.x,ce=Ui.y,fi({type:"brushstart"})}).tween("brush:brush",function(){var Ri=yu(se,bi.x),ki=yu(ce,bi.y);return xe=Oe=null,function(ha){se=bi.x=Ri(ha),ce=bi.y=ki(ha),fi({type:"brush",mode:"resize"})}}).each("end.brush",function(){xe=bi.i,Oe=bi.j,fi({type:"brush",mode:"resize"}),fi({type:"brushend"})}):(fi({type:"brushstart"}),fi({type:"brush",mode:"resize"}),fi({type:"brushend"}))})};function Yr(ti){ti.selectAll(".resize").attr("transform",function(fi){return"translate("+se[+/e$/.test(fi)]+","+ce[+/^s/.test(fi)]+")"})}function Qr(ti){ti.select(".extent").attr("x",se[0]),ti.selectAll(".extent,.n>rect,.s>rect").attr("width",se[1]-se[0])}function Ai(ti){ti.select(".extent").attr("y",ce[0]),ti.selectAll(".extent,.e>rect,.w>rect").attr("height",ce[1]-ce[0])}function Fi(){var ti=this,fi=t.select(t.event.target),bi=gt.of(ti,arguments),Ui=t.select(ti),Ri=fi.datum(),ki=!/^(n|s)$/.test(Ri)&&zt,ha=!/^(e|w)$/.test(Ri)&&Jt,Na=fi.classed("extent"),Za=te(ti),ja,Ya=t.mouse(ti),Ja,Cn=t.select(i(ti)).on("keydown.brush",Un).on("keyup.brush",rs);if(t.event.changedTouches?Cn.on("touchmove.brush",In).on("touchend.brush",Pn):Cn.on("mousemove.brush",In).on("mouseup.brush",Pn),Ui.interrupt().selectAll("*").interrupt(),Na)Ya[0]=se[0]-Ya[0],Ya[1]=ce[0]-Ya[1];else if(Ri){var rn=+/w$/.test(Ri),Bn=+/^n/.test(Ri);Ja=[se[1-rn]-Ya[0],ce[1-Bn]-Ya[1]],Ya[0]=se[rn],Ya[1]=ce[Bn]}else t.event.altKey&&(ja=Ya.slice());Ui.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",fi.style("cursor")),bi({type:"brushstart"}),In();function Un(){t.event.keyCode==32&&(Na||(Na=(ja=null,Ya[0]-=se[1],Ya[1]-=ce[1],2)),ft())}function rs(){t.event.keyCode==32&&Na==2&&(Ya[0]+=se[1],Ya[1]+=ce[1],Na=0,ft())}function In(){var Mn=t.mouse(ti),Oa=!1;Ja&&(Mn[0]+=Ja[0],Mn[1]+=Ja[1]),Na||(t.event.altKey?(ja||(ja=[(se[0]+se[1])/2,(ce[0]+ce[1])/2]),Ya[0]=se[+(Mn[0]pt)return pt;for(;HDt?H=wt:pt=wt,wt=(pt-H)*.5+H}return wt},c.prototype.solve=function(y,R){return this.sampleCurveY(this.solveCurveX(y,R))};var i=r;function r(y,R){this.x=y,this.y=R}r.prototype={clone:function(){return new r(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,R){return this.clone()._rotateAround(y,R)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var R=y.x-this.x,H=y.y-this.y;return R*R+H*H},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,R){return Math.atan2(this.x*R-this.y*y,this.x*y+this.y*R)},_matMult:function(y){var R=y[0]*this.x+y[1]*this.y,H=y[2]*this.x+y[3]*this.y;return this.x=R,this.y=H,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var R=Math.cos(y),H=Math.sin(y),pt=R*this.x-H*this.y,wt=H*this.x+R*this.y;return this.x=pt,this.y=wt,this},_rotateAround:function(y,R){var H=Math.cos(y),pt=Math.sin(y),wt=R.x+H*(this.x-R.x)-pt*(this.y-R.y),Dt=R.y+pt*(this.x-R.x)+H*(this.y-R.y);return this.x=wt,this.y=Dt,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(y){return y instanceof r?y:Array.isArray(y)?new r(y[0],y[1]):y};var o=typeof self<"u"?self:{};function a(y,R){if(Array.isArray(y)){if(!Array.isArray(R)||y.length!==R.length)return!1;for(var H=0;H=1)return 1;var R=y*y,H=R*y;return 4*(y<.5?H:3*(y-R)+H-.75)}function m(y,R,H,pt){var wt=new p(y,R,H,pt);return function(Dt){return wt.solve(Dt)}}var x=m(.25,.1,.25,1);function f(y,R,H){return Math.min(H,Math.max(R,y))}function v(y,R,H){var pt=H-R,wt=((y-R)%pt+pt)%pt+R;return wt===R?H:wt}function l(y,R,H){if(!y.length)return H(null,[]);var pt=y.length,wt=Array(y.length),Dt=null;y.forEach(function(Yt,fe){R(Yt,function(Re,Ye){Re&&(Dt=Re),wt[fe]=Ye,--pt===0&&H(Dt,wt)})})}function h(y){var R=[];for(var H in y)R.push(y[H]);return R}function d(y,R){var H=[];for(var pt in y)pt in R||H.push(pt);return H}function b(y){for(var R=[],H=arguments.length-1;H-- >0;)R[H]=arguments[H+1];for(var pt=0,wt=R;pt>R/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function u(y){return y<=1?1:2**Math.ceil(Math.log(y)/Math.LN2)}function T(y){return y?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(y):!1}function C(y,R){y.forEach(function(H){R[H]&&(R[H]=R[H].bind(R))})}function _(y,R){return y.indexOf(R,y.length-R.length)!==-1}function F(y,R,H){var pt={};for(var wt in y)pt[wt]=R.call(H||this,y[wt],wt,y);return pt}function O(y,R,H){var pt={};for(var wt in y)R.call(H||this,y[wt],wt,y)&&(pt[wt]=y[wt]);return pt}function j(y){return Array.isArray(y)?y.map(j):typeof y=="object"&&y?F(y,j):y}function B(y,R){for(var H=0;H=0)return!0;return!1}var U={};function P(y){U[y]||(typeof console<"u"&&console.warn(y),U[y]=!0)}function N(y,R,H){return(H.y-y.y)*(R.x-y.x)>(R.y-y.y)*(H.x-y.x)}function V(y){for(var R=0,H=0,pt=y.length,wt=pt-1,Dt=void 0,Yt=void 0;H@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,H={};if(y.replace(R,function(wt,Dt,Yt,fe){var Re=Yt||fe;return H[Dt]=Re?Re.toLowerCase():!0,""}),H["max-age"]){var pt=parseInt(H["max-age"],10);isNaN(pt)?delete H["max-age"]:H["max-age"]=pt}return H}var ft=null;function ct(y){if(ft==null){var R=y.navigator?y.navigator.userAgent:null;ft=!!y.safari||!!(R&&(/\b(iPad|iPhone|iPod)\b/.test(R)||R.match("Safari")&&!R.match("Chrome")))}return ft}function J(y){try{var R=o[y];return R.setItem("_mapbox_test_",1),R.removeItem("_mapbox_test_"),!0}catch{return!1}}function et(y){return o.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(R,H){return String.fromCharCode(+("0x"+H))}))}function Q(y){return decodeURIComponent(o.atob(y).split("").map(function(R){return"%"+("00"+R.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Z=o.performance&&o.performance.now?o.performance.now.bind(o.performance):Date.now.bind(Date),st=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||o.msRequestAnimationFrame,ot=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||o.msCancelAnimationFrame,rt,X,ut={now:Z,frame:function(y){var R=st(y);return{cancel:function(){return ot(R)}}},getImageData:function(y,R){R===void 0&&(R=0);var H=o.document.createElement("canvas"),pt=H.getContext("2d");if(!pt)throw Error("failed to create canvas 2d context");return H.width=y.width,H.height=y.height,pt.drawImage(y,0,0,y.width,y.height),pt.getImageData(-R,-R,y.width+2*R,y.height+2*R)},resolveURL:function(y){return rt||(rt=o.document.createElement("a")),rt.href=y,rt.href},hardwareConcurrency:o.navigator&&o.navigator.hardwareConcurrency||4,get devicePixelRatio(){return o.devicePixelRatio},get prefersReducedMotion(){return o.matchMedia?(X??(X=o.matchMedia("(prefers-reduced-motion: reduce)")),X.matches):!1}},lt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},yt={supported:!1,testSupport:Ht},kt,Lt=!1,St,Ot=!1;o.document&&(St=o.document.createElement("img"),St.onload=function(){kt&&Kt(kt),kt=null,Ot=!0},St.onerror=function(){Lt=!0,kt=null},St.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Ht(y){Lt||!St||(Ot?Kt(y):kt=y)}function Kt(y){var R=y.createTexture();y.bindTexture(y.TEXTURE_2D,R);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,St),y.isContextLost())return;yt.supported=!0}catch{}y.deleteTexture(R),Lt=!0}var Gt="01";function Et(){for(var y="1",R="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",H="",pt=0;pt<10;pt++)H+=R[Math.floor(Math.random()*62)];return{token:[y,Gt,H].join(""),tokenExpiresAt:Date.now()+432e5}}var At=function(y,R){this._transformRequestFn=y,this._customAccessToken=R,this._createSkuToken()};At.prototype._createSkuToken=function(){var y=Et();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},At.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},At.prototype.transformRequest=function(y,R){return this._transformRequestFn&&this._transformRequestFn(y,R)||{url:y}},At.prototype.normalizeStyleURL=function(y,R){if(!qt(y))return y;var H=ve(y);return H.path="/styles/v1"+H.path,this._makeAPIURL(H,this._customAccessToken||R)},At.prototype.normalizeGlyphsURL=function(y,R){if(!qt(y))return y;var H=ve(y);return H.path="/fonts/v1"+H.path,this._makeAPIURL(H,this._customAccessToken||R)},At.prototype.normalizeSourceURL=function(y,R){if(!qt(y))return y;var H=ve(y);return H.path="/v4/"+H.authority+".json",H.params.push("secure"),this._makeAPIURL(H,this._customAccessToken||R)},At.prototype.normalizeSpriteURL=function(y,R,H,pt){var wt=ve(y);return qt(y)?(wt.path="/styles/v1"+wt.path+"/sprite"+R+H,this._makeAPIURL(wt,this._customAccessToken||pt)):(wt.path+=""+R+H,ke(wt))},At.prototype.normalizeTileURL=function(y,R){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!qt(y))return y;var H=ve(y),pt=/(\.(png|jpg)\d*)(?=$)/,wt=/^.+\/v4\//,Dt=ut.devicePixelRatio>=2||R===512?"@2x":"",Yt=yt.supported?".webp":"$1";H.path=H.path.replace(pt,""+Dt+Yt),H.path=H.path.replace(wt,"/"),H.path="/v4"+H.path;var fe=this._customAccessToken||ye(H.params)||lt.ACCESS_TOKEN;return lt.REQUIRE_ACCESS_TOKEN&&fe&&this._skuToken&&H.params.push("sku="+this._skuToken),this._makeAPIURL(H,fe)},At.prototype.canonicalizeTileURL=function(y,R){var H="/v4/",pt=/\.[\w]+$/,wt=ve(y);if(!wt.path.match(/(^\/v4\/)/)||!wt.path.match(pt))return y;var Dt="mapbox://tiles/";Dt+=wt.path.replace(H,"");var Yt=wt.params;return R&&(Yt=Yt.filter(function(fe){return!fe.match(/^access_token=/)})),Yt.length&&(Dt+="?"+Yt.join("&")),Dt},At.prototype.canonicalizeTileset=function(y,R){for(var H=R?qt(R):!1,pt=[],wt=0,Dt=y.tiles||[];wt=0&&y.params.splice(wt,1)}if(pt.path!=="/"&&(y.path=""+pt.path+y.path),!lt.REQUIRE_ACCESS_TOKEN)return ke(y);if(R||(R=lt.ACCESS_TOKEN),!R)throw Error("An API access token is required to use Mapbox GL. "+H);if(R[0]==="s")throw Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+H);return y.params=y.params.filter(function(Dt){return Dt.indexOf("access_token")===-1}),y.params.push("access_token="+R),ke(y)};function qt(y){return y.indexOf("mapbox:")===0}var jt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function de(y){return jt.test(y)}function Xt(y){return y.indexOf("sku=")>0&&de(y)}function ye(y){for(var R=0,H=y;R=1&&o.localStorage.setItem(R,JSON.stringify(this.eventData))}catch{P("Unable to write to LocalStorage")}},be.prototype.processRequests=function(y){},be.prototype.postEvent=function(y,R,H,pt){var wt=this;if(lt.EVENTS_URL){var Dt=ve(lt.EVENTS_URL);Dt.params.push("access_token="+(pt||lt.ACCESS_TOKEN||""));var Yt={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:w,skuId:Gt,userId:this.anonId},fe=R?b(Yt,R):Yt;this.pendingRequest=We({url:ke(Dt),headers:{"Content-Type":"text/plain"},body:JSON.stringify([fe])},function(Re){wt.pendingRequest=null,H(Re),wt.saveEventData(),wt.processRequests(pt)})}},be.prototype.queueRequest=function(y,R){this.queue.push(y),this.processRequests(R)};var je=(function(y){function R(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.postMapLoadEvent=function(H,pt,wt,Dt){this.skuToken=wt,(lt.EVENTS_URL&&Dt||lt.ACCESS_TOKEN&&Array.isArray(H)&&H.some(function(Yt){return qt(Yt)||de(Yt)}))&&this.queueRequest({id:pt,timestamp:Date.now()},Dt)},R.prototype.processRequests=function(H){var pt=this;if(!(this.pendingRequest||this.queue.length===0)){var wt=this.queue.shift(),Dt=wt.id,Yt=wt.timestamp;Dt&&this.success[Dt]||(this.anonId||this.fetchEventData(),T(this.anonId)||(this.anonId=L()),this.postEvent(Yt,{skuToken:this.skuToken},function(fe){fe||Dt&&(pt.success[Dt]=!0)},H))}},R})(be),nr=new((function(y){function R(H){y.call(this,"appUserTurnstile"),this._customAccessToken=H}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.postTurnstileEvent=function(H,pt){lt.EVENTS_URL&<.ACCESS_TOKEN&&Array.isArray(H)&&H.some(function(wt){return qt(wt)||de(wt)})&&this.queueRequest(Date.now(),pt)},R.prototype.processRequests=function(H){var pt=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var wt=me(lt.ACCESS_TOKEN),Dt=wt?wt.u:lt.ACCESS_TOKEN,Yt=Dt!==this.eventData.tokenU;T(this.anonId)||(this.anonId=L(),Yt=!0);var fe=this.queue.shift();if(this.eventData.lastSuccess){var Re=new Date(this.eventData.lastSuccess),Ye=new Date(fe),er=(fe-this.eventData.lastSuccess)/(1440*60*1e3);Yt=Yt||er>=1||er<-1||Re.getDate()!==Ye.getDate()}else Yt=!0;if(!Yt)return this.processRequests();this.postEvent(fe,{"enabled.telemetry":!1},function(dr){dr||(pt.eventData.lastSuccess=fe,pt.eventData.tokenU=Dt)},H)}},R})(be)),Vt=nr.postTurnstileEvent.bind(nr),Qt=new je,te=Qt.postMapLoadEvent.bind(Qt),ee="mapbox-tiles",Bt=500,Wt=50,$t=1e3*60*7,Tt;function _t(){o.caches&&!Tt&&(Tt=o.caches.open(ee))}var It;function Mt(y,R){if(It===void 0)try{new Response(new ReadableStream),It=!0}catch{It=!1}It?R(y.body):y.blob().then(R)}function Ct(y,R,H){if(_t(),Tt){var pt={status:R.status,statusText:R.statusText,headers:new o.Headers};R.headers.forEach(function(Dt,Yt){return pt.headers.set(Yt,Dt)});var wt=nt(R.headers.get("Cache-Control")||"");wt["no-store"]||(wt["max-age"]&&pt.headers.set("Expires",new Date(H+wt["max-age"]*1e3).toUTCString()),!(new Date(pt.headers.get("Expires")).getTime()-H<$t)&&Mt(R,function(Dt){var Yt=new o.Response(Dt,pt);_t(),Tt&&Tt.then(function(fe){return fe.put(Ut(y.url),Yt)}).catch(function(fe){return P(fe.message)})}))}}function Ut(y){var R=y.indexOf("?");return R<0?y:y.slice(0,R)}function Zt(y,R){if(_t(),!Tt)return R(null);var H=Ut(y.url);Tt.then(function(pt){pt.match(H).then(function(wt){var Dt=Me(wt);pt.delete(H),Dt&&pt.put(H,wt.clone()),R(null,wt,Dt)}).catch(R)}).catch(R)}function Me(y){if(!y)return!1;var R=new Date(y.headers.get("Expires")||0),H=nt(y.headers.get("Cache-Control")||"");return R>Date.now()&&!H["no-cache"]}var Be=1/0;function ge(y){Be++,Be>Wt&&(y.getActor().send("enforceCacheSizeLimit",Bt),Be=0)}function Ee(y){_t(),Tt&&Tt.then(function(R){R.keys().then(function(H){for(var pt=0;pt=200&&H.status<300||H.status===0)&&H.response!==null){var wt=H.response;if(y.type==="json")try{wt=JSON.parse(H.response)}catch(Dt){return R(Dt)}R(null,wt,H.getResponseHeader("Cache-Control"),H.getResponseHeader("Expires"))}else R(new Pr(H.statusText,H.status,y.url))},H.send(y.body),{cancel:function(){return H.abort()}}}var Ge=function(y,R){if(!ue(y.url)){if(o.fetch&&o.Request&&o.AbortController&&o.Request.prototype.hasOwnProperty("signal"))return we(y,R);if(K()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",y,R,void 0,!0)}return Ce(y,R)},Ke=function(y,R){return Ge(b(y,{type:"json"}),R)},ar=function(y,R){return Ge(b(y,{type:"arrayBuffer"}),R)},We=function(y,R){return Ge(b(y,{method:"POST"}),R)};function $e(y){var R=o.document.createElement("a");return R.href=y,R.protocol===o.document.location.protocol&&R.host===o.document.location.host}var yr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Cr(y,R,H,pt){var wt=new o.Image,Dt=o.URL;wt.onload=function(){R(null,wt),Dt.revokeObjectURL(wt.src),wt.onload=null,o.requestAnimationFrame(function(){wt.src=yr})},wt.onerror=function(){return R(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Yt=new o.Blob([new Uint8Array(y)],{type:"image/png"});wt.cacheControl=H,wt.expires=pt,wt.src=y.byteLength?Dt.createObjectURL(Yt):yr}function Sr(y,R){var H=new o.Blob([new Uint8Array(y)],{type:"image/png"});o.createImageBitmap(H).then(function(pt){R(null,pt)}).catch(function(pt){R(Error("Could not load image because of "+pt.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Dr,Or;(function(){Dr=[],Or=0})();var ei=function(y,R){if(yt.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),Or>=lt.MAX_PARALLEL_IMAGE_REQUESTS){var H={requestParameters:y,callback:R,cancelled:!1,cancel:function(){this.cancelled=!0}};return Dr.push(H),H}Or++;var pt=!1,wt=function(){if(!pt)for(pt=!0,Or--;Dr.length&&Or0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},lr.prototype.setEventedParent=function(y,R){return this._eventedParent=y,this._eventedParentData=R,this};var qe=8,pr={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},xr={"*":{type:"source"}},fr=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],ur={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Br={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},$r={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Jr={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Zi={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},mi={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Ei={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Di=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Tr={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Vr={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},li={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ci={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ni={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},si={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ci={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},wi={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={type:"array",value:"*"},Ha={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ya={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Ga={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Ea={type:"array",value:"*",minimum:1},Fa={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Xr=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],ji={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},Li={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Si={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},aa={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Ji={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},na={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},fa={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Ca={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Ia={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},On={"*":{type:"string"}},hr={$version:qe,$root:pr,sources:xr,source:fr,source_vector:ur,source_raster:Br,source_raster_dem:$r,source_geojson:Jr,source_video:Zi,source_image:mi,layer:Ei,layout:Di,layout_background:Tr,layout_fill:Vr,layout_circle:li,layout_heatmap:ci,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:Ni,layout_symbol:si,layout_raster:Ci,layout_hillshade:wi,filter:ma,filter_operator:Ha,geometry_type:ya,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Ga,expression:Ea,light:Fa,paint:Xr,paint_fill:ji,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Li,paint_circle:Si,paint_heatmap:aa,paint_symbol:Ji,paint_raster:na,paint_hillshade:fa,paint_background:Ca,transition:Ia,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:On},jr=function(y,R,H,pt){this.message=(y?y+": ":"")+H,pt&&(this.identifier=pt),R!=null&&R.__line__&&(this.line=R.__line__)};function Ii(y){var R=y.key,H=y.value;return H?[new jr(R,H,"constants have been deprecated as of v8")]:[]}function Hi(y){for(var R=[],H=arguments.length-1;H-- >0;)R[H]=arguments[H+1];for(var pt=0,wt=R;pt":y.itemType.kind==="value"?"array":"array<"+R+">"}else return y.kind}var Vs=[Zr,Wr,ai,_i,ua,nn,ea,Wa(zi),sn];function Kn(y,R){if(R.kind==="error")return null;if(y.kind==="array"){if(R.kind==="array"&&(R.N===0&&R.itemType.kind==="value"||!Kn(y.itemType,R.itemType))&&(typeof y.N!="number"||y.N===R.N))return null}else{if(y.kind===R.kind)return null;if(y.kind==="value")for(var H=0,pt=Vs;H255?255:Ye}function wt(Ye){return Ye<0?0:Ye>1?1:Ye}function Dt(Ye){return Ye[Ye.length-1]==="%"?pt(parseFloat(Ye)/100*255):pt(parseInt(Ye))}function Yt(Ye){return Ye[Ye.length-1]==="%"?wt(parseFloat(Ye)/100):wt(parseFloat(Ye))}function fe(Ye,er,dr){return dr<0?dr+=1:dr>1&&--dr,dr*6<1?Ye+(er-Ye)*dr*6:dr*2<1?er:dr*3<2?Ye+(er-Ye)*(2/3-dr)*6:Ye}function Re(Ye){var er=Ye.replace(/ /g,"").toLowerCase();if(er in H)return H[er].slice();if(er[0]==="#"){if(er.length===4){var dr=parseInt(er.substr(1),16);return dr>=0&&dr<=4095?[(dr&3840)>>4|(dr&3840)>>8,dr&240|(dr&240)>>4,dr&15|(dr&15)<<4,1]:null}else if(er.length===7){var dr=parseInt(er.substr(1),16);return dr>=0&&dr<=16777215?[(dr&16711680)>>16,(dr&65280)>>8,dr&255,1]:null}return null}var Er=er.indexOf("("),Ir=er.indexOf(")");if(Er!==-1&&Ir+1===er.length){var ui=er.substr(0,Er),hi=er.substr(Er+1,Ir-(Er+1)).split(","),Yi=1;switch(ui){case"rgba":if(hi.length!==4)return null;Yi=Yt(hi.pop());case"rgb":return hi.length===3?[Dt(hi[0]),Dt(hi[1]),Dt(hi[2]),Yi]:null;case"hsla":if(hi.length!==4)return null;Yi=Yt(hi.pop());case"hsl":if(hi.length!==3)return null;var Gi=(parseFloat(hi[0])%360+360)%360/360,ra=Yt(hi[1]),la=Yt(hi[2]),ta=la<=.5?la*(ra+1):la+ra-la*ra,va=la*2-ta;return[pt(fe(va,ta,Gi+1/3)*255),pt(fe(va,ta,Gi)*255),pt(fe(va,ta,Gi-1/3)*255),Yi];default:return null}}return null}try{R.parseCSSColor=Re}catch{}}).parseCSSColor,Gn=function(y,R,H,pt){pt===void 0&&(pt=1),this.r=y,this.g=R,this.b=H,this.a=pt};Gn.parse=function(y){if(y){if(y instanceof Gn)return y;if(typeof y=="string"){var R=Qo(y);if(R)return new Gn(R[0]/255*R[3],R[1]/255*R[3],R[2]/255*R[3],R[3])}}},Gn.prototype.toString=function(){var y=this.toArray(),R=y[0],H=y[1],pt=y[2],wt=y[3];return"rgba("+Math.round(R)+","+Math.round(H)+","+Math.round(pt)+","+wt+")"},Gn.prototype.toArray=function(){var y=this,R=y.r,H=y.g,pt=y.b,wt=y.a;return wt===0?[0,0,0,0]:[R*255/wt,H*255/wt,pt*255/wt,wt]},Gn.black=new Gn(0,0,0,1),Gn.white=new Gn(1,1,1,1),Gn.transparent=new Gn(0,0,0,0),Gn.red=new Gn(1,0,0,1);var Ml=function(y,R,H){y?this.sensitivity=R?"variant":"case":this.sensitivity=R?"accent":"base",this.locale=H,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Ml.prototype.compare=function(y,R){return this.collator.compare(y,R)},Ml.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var xs=function(y,R,H,pt,wt){this.text=y,this.image=R,this.scale=H,this.fontStack=pt,this.textColor=wt},xo=function(y){this.sections=y};xo.fromString=function(y){return new xo([new xs(y,null,null,null,null)])},xo.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},xo.factory=function(y){return y instanceof xo?y:xo.fromString(y)},xo.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},xo.prototype.serialize=function(){for(var y=["format"],R=0,H=this.sections;R=0&&y<=255&&typeof R=="number"&&R>=0&&R<=255&&typeof H=="number"&&H>=0&&H<=255?pt===void 0||typeof pt=="number"&&pt>=0&&pt<=1?null:"Invalid rgba value ["+[y,R,H,pt].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof pt=="number"?[y,R,H,pt]:[y,R,H]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Oo(y){if(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number"||y instanceof Gn||y instanceof Ml||y instanceof xo||y instanceof _s)return!0;if(Array.isArray(y)){for(var R=0,H=y;R2){var Yt=y[1];if(typeof Yt!="string"||!(Yt in bs)||Yt==="object")return R.error('The item type argument of "array" must be one of string, number, boolean',1);Dt=bs[Yt],H++}else Dt=zi;var fe;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return R.error('The length argument to "array" must be a positive integer literal',2);fe=y[2],H++}pt=Wa(Dt,fe)}else pt=bs[wt];for(var Re=[];H1)&&R.push(pt)}}return R.concat(this.args.map(function(wt){return wt.serialize()}))};var gs=function(y){this.type=nn,this.sections=y};gs.parse=function(y,R){if(y.length<2)return R.error("Expected at least one argument.");var H=y[1];if(!Array.isArray(H)&&typeof H=="object")return R.error("First argument must be an image or text section.");for(var pt=[],wt=!1,Dt=1;Dt<=y.length-1;++Dt){var Yt=y[Dt];if(wt&&typeof Yt=="object"&&!Array.isArray(Yt)){wt=!1;var fe=null;if(Yt["font-scale"]&&(fe=R.parse(Yt["font-scale"],1,Wr),!fe))return null;var Re=null;if(Yt["text-font"]&&(Re=R.parse(Yt["text-font"],1,Wa(ai)),!Re))return null;var Ye=null;if(Yt["text-color"]&&(Ye=R.parse(Yt["text-color"],1,ua),!Ye))return null;var er=pt[pt.length-1];er.scale=fe,er.font=Re,er.textColor=Ye}else{var dr=R.parse(y[Dt],1,zi);if(!dr)return null;var Er=dr.type.kind;if(Er!=="string"&&Er!=="value"&&Er!=="null"&&Er!=="resolvedImage")return R.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");wt=!0,pt.push({content:dr,scale:null,font:null,textColor:null})}}return new gs(pt)},gs.prototype.evaluate=function(y){return new xo(this.sections.map(function(R){var H=R.content.evaluate(y);return zo(H)===sn?new xs("",H,null,null,null):new xs(As(H),null,R.scale?R.scale.evaluate(y):null,R.font?R.font.evaluate(y).join(","):null,R.textColor?R.textColor.evaluate(y):null)}))},gs.prototype.eachChild=function(y){for(var R=0,H=this.sections;R-1),H},Sl.prototype.eachChild=function(y){y(this.input)},Sl.prototype.outputDefined=function(){return!1},Sl.prototype.serialize=function(){return["image",this.input.serialize()]};var Bu={"to-boolean":_i,"to-color":ua,"to-number":Wr,"to-string":ai},jo=function(y,R){this.type=y,this.args=R};jo.parse=function(y,R){if(y.length<2)return R.error("Expected at least one argument.");var H=y[0];if((H==="to-boolean"||H==="to-string")&&y.length!==2)return R.error("Expected one argument.");for(var pt=Bu[H],wt=[],Dt=1;Dt4?"Invalid rbga value "+JSON.stringify(R)+": expected an array containing either three or four numeric values.":Fu(R[0],R[1],R[2],R[3]),!H))return new Gn(R[0]/255,R[1]/255,R[2]/255,R[3])}throw new No(H||"Could not parse color from value '"+(typeof R=="string"?R:String(JSON.stringify(R)))+"'")}else if(this.type.kind==="number"){for(var Yt=null,fe=0,Re=this.args;fe=R[2]||y[1]<=R[1]||y[3]>=R[3])}function bh(y,R){var H=xu(y[0]),pt=rc(y[1]),wt=2**R.z;return[Math.round(H*wt*el),Math.round(pt*wt*el)]}function wh(y,R,H){var pt=y[0]-R[0],wt=y[1]-R[1],Dt=y[0]-H[0],Yt=y[1]-H[1];return pt*Yt-Dt*wt===0&&pt*Dt<=0&&wt*Yt<=0}function ah(y,R,H){return R[1]>y[1]!=H[1]>y[1]&&y[0]<(H[0]-R[0])*(y[1]-R[1])/(H[1]-R[1])+R[0]}function Rc(y,R){for(var H=!1,pt=0,wt=R.length;pt0&&dr<0||er<0&&dr>0}function ic(y,R,H,pt){var wt=[R[0]-y[0],R[1]-y[1]];return _u([pt[0]-H[0],pt[1]-H[1]],wt)===0?!1:!!(nh(y,R,H,pt)&&nh(H,pt,y,R))}function oh(y,R,H){for(var pt=0,wt=H;ptH[2]){var wt=pt*.5,Dt=y[0]-H[0]>wt?-pt:H[0]-y[0]>wt?pt:0;Dt===0&&(Dt=y[0]-H[2]>wt?-pt:H[2]-y[0]>wt?pt:0),y[0]+=Dt}Nu(R,y)}function lh(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function kc(y,R,H,pt){for(var wt=2**pt.z*el,Dt=[pt.x*el,pt.y*el],Yt=[],fe=0,Re=y;fe=0)return!1;var H=!0;return y.eachChild(function(pt){H&&!ao(pt,R)&&(H=!1)}),H}var ru=function(y,R){this.type=R.type,this.name=y,this.boundExpression=R};ru.parse=function(y,R){if(y.length!==2||typeof y[1]!="string")return R.error("'var' expression requires exactly one string literal argument.");var H=y[1];return R.scope.has(H)?new ru(H,R.scope.get(H)):R.error('Unknown variable "'+H+'". Make sure "'+H+'" has been bound in an enclosing "let" expression before using it.',1)},ru.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},ru.prototype.eachChild=function(){},ru.prototype.outputDefined=function(){return!1},ru.prototype.serialize=function(){return["var",this.name]};var Cl=function(y,R,H,pt,wt){R===void 0&&(R=[]),pt===void 0&&(pt=new qi),wt===void 0&&(wt=[]),this.registry=y,this.path=R,this.key=R.map(function(Dt){return"["+Dt+"]"}).join(""),this.scope=pt,this.errors=wt,this.expectedType=H};Cl.prototype.parse=function(y,R,H,pt,wt){return wt===void 0&&(wt={}),R?this.concat(R,H,pt)._parse(y,wt):this._parse(y,wt)},Cl.prototype._parse=function(y,R){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function H(Ye,er,dr){return dr==="assert"?new Do(er,[Ye]):dr==="coerce"?new jo(er,[Ye]):Ye}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var pt=y[0];if(typeof pt!="string")return this.error("Expression name must be a string, but found "+typeof pt+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var wt=this.registry[pt];if(wt){var Dt=wt.parse(y,this);if(!Dt)return null;if(this.expectedType){var Yt=this.expectedType,fe=Dt.type;if((Yt.kind==="string"||Yt.kind==="number"||Yt.kind==="boolean"||Yt.kind==="object"||Yt.kind==="array")&&fe.kind==="value")Dt=H(Dt,Yt,R.typeAnnotation||"assert");else if((Yt.kind==="color"||Yt.kind==="formatted"||Yt.kind==="resolvedImage")&&(fe.kind==="value"||fe.kind==="string"))Dt=H(Dt,Yt,R.typeAnnotation||"coerce");else if(this.checkSubtype(Yt,fe))return null}if(!(Dt instanceof bo)&&Dt.type.kind!=="resolvedImage"&&Ac(Dt)){var Re=new Bs;try{Dt=new bo(Dt.type,Dt.evaluate(Re))}catch(Ye){return this.error(Ye.message),null}}return Dt}return this.error('Unknown expression "'+pt+'". If you wanted a literal array, use ["literal", [...]].',0)}else return y===void 0?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},Cl.prototype.concat=function(y,R,H){var pt=typeof y=="number"?this.path.concat(y):this.path,wt=H?this.scope.concat(H):this.scope;return new Cl(this.registry,pt,R||null,wt,this.errors)},Cl.prototype.error=function(y){for(var R=[],H=arguments.length-1;H-- >0;)R[H]=arguments[H+1];var pt=""+this.key+R.map(function(wt){return"["+wt+"]"}).join("");this.errors.push(new Qi(pt,y))},Cl.prototype.checkSubtype=function(y,R){var H=Kn(y,R);return H&&this.error(H),H};function Ac(y){if(y instanceof ru)return Ac(y.boundExpression);if(y instanceof ss&&y.name==="error"||y instanceof cl||y instanceof rl)return!1;var R=y instanceof jo||y instanceof Do,H=!0;return y.eachChild(function(pt){R?H&&(H=Ac(pt)):H&&(H=pt instanceof bo)}),H?eu(y)&&ao(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function ju(y,R){for(var H=y.length-1,pt=0,wt=H,Dt=0,Yt,fe;pt<=wt;)if(Dt=Math.floor((pt+wt)/2),Yt=y[Dt],fe=y[Dt+1],Yt<=R){if(Dt===H||RR)wt=Dt-1;else throw new No("Input is not a number.");return 0}var Ns=function(y,R,H){this.type=y,this.input=R,this.labels=[],this.outputs=[];for(var pt=0,wt=H;pt=Yt)return R.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Re);var er=R.parse(fe,Ye,wt);if(!er)return null;wt||(wt=er.type),pt.push([Yt,er])}return new Ns(wt,H,pt)},Ns.prototype.evaluate=function(y){var R=this.labels,H=this.outputs;if(R.length===1)return H[0].evaluate(y);var pt=this.input.evaluate(y);if(pt<=R[0])return H[0].evaluate(y);var wt=R.length;return pt>=R[wt-1]?H[wt-1].evaluate(y):H[ju(R,pt)].evaluate(y)},Ns.prototype.eachChild=function(y){y(this.input);for(var R=0,H=this.outputs;R0&&y.push(this.labels[R]),y.push(this.outputs[R].serialize());return y};function Zo(y,R,H){return y*(1-H)+R*H}function Bc(y,R,H){return new Gn(Zo(y.r,R.r,H),Zo(y.g,R.g,H),Zo(y.b,R.b,H),Zo(y.a,R.a,H))}function Nc(y,R,H){return y.map(function(pt,wt){return Zo(pt,R[wt],H)})}var wu=Object.freeze({__proto__:null,number:Zo,color:Bc,array:Nc}),uh=.95047,ch=1,ac=1.08883,iu=4/29,ws=6/29,Ms=3*ws*ws,jc=ws*ws*ws,il=Math.PI/180,Ah=180/Math.PI;function nc(y){return y>jc?y**.3333333333333333:y/Ms+iu}function Uu(y){return y>ws?y*y*y:Ms*(y-iu)}function Uc(y){return 255*(y<=.0031308?12.92*y:1.055*y**.4166666666666667-.055)}function Vc(y){return y/=255,y<=.04045?y/12.92:((y+.055)/1.055)**2.4}function oc(y){var R=Vc(y.r),H=Vc(y.g),pt=Vc(y.b),wt=nc((.4124564*R+.3575761*H+.1804375*pt)/uh),Dt=nc((.2126729*R+.7151522*H+.072175*pt)/ch),Yt=nc((.0193339*R+.119192*H+.9503041*pt)/ac);return{l:116*Dt-16,a:500*(wt-Dt),b:200*(Dt-Yt),alpha:y.a}}function Tu(y){var R=(y.l+16)/116,H=isNaN(y.a)?R:R+y.a/500,pt=isNaN(y.b)?R:R-y.b/200;return R=ch*Uu(R),H=uh*Uu(H),pt=ac*Uu(pt),new Gn(Uc(3.2404542*H-1.5371385*R-.4985314*pt),Uc(-.969266*H+1.8760108*R+.041556*pt),Uc(.0556434*H-.2040259*R+1.0572252*pt),y.alpha)}function Vu(y,R,H){return{l:Zo(y.l,R.l,H),a:Zo(y.a,R.a,H),b:Zo(y.b,R.b,H),alpha:Zo(y.alpha,R.alpha,H)}}function qc(y){var R=oc(y),H=R.l,pt=R.a,wt=R.b,Dt=Math.atan2(wt,pt)*Ah;return{h:Dt<0?Dt+360:Dt,c:Math.sqrt(pt*pt+wt*wt),l:H,alpha:y.a}}function qu(y){var R=y.h*il,H=y.c,pt=y.l;return Tu({l:pt,a:Math.cos(R)*H,b:Math.sin(R)*H,alpha:y.alpha})}function ko(y,R,H){var pt=R-y;return y+H*(pt>180||pt<-180?pt-360*Math.round(pt/360):pt)}function au(y,R,H){return{h:ko(y.h,R.h,H),c:Zo(y.c,R.c,H),l:Zo(y.l,R.l,H),alpha:Zo(y.alpha,R.alpha,H)}}var qs={forward:oc,reverse:Tu,interpolate:Vu},Hu={forward:qc,reverse:qu,interpolate:au},nu=Object.freeze({__proto__:null,lab:qs,hcl:Hu}),Wo=function(y,R,H,pt,wt){this.type=y,this.operator=R,this.interpolation=H,this.input=pt,this.labels=[],this.outputs=[];for(var Dt=0,Yt=wt;Dt1}))return R.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);pt={name:"cubic-bezier",controlPoints:fe}}else return R.error("Unknown interpolation type "+String(pt[0]),1,0);if(y.length-1<4)return R.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!=0)return R.error("Expected an even number of arguments.");if(wt=R.parse(wt,2,Wr),!wt)return null;var Re=[],Ye=null;H==="interpolate-hcl"||H==="interpolate-lab"?Ye=ua:R.expectedType&&R.expectedType.kind!=="value"&&(Ye=R.expectedType);for(var er=0;er=dr)return R.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Ir);var hi=R.parse(Er,ui,Ye);if(!hi)return null;Ye||(Ye=hi.type),Re.push([dr,hi])}return Ye.kind!=="number"&&Ye.kind!=="color"&&!(Ye.kind==="array"&&Ye.itemType.kind==="number"&&typeof Ye.N=="number")?R.error("Type "+yn(Ye)+" is not interpolatable."):new Wo(Ye,H,pt,wt,Re)},Wo.prototype.evaluate=function(y){var R=this.labels,H=this.outputs;if(R.length===1)return H[0].evaluate(y);var pt=this.input.evaluate(y);if(pt<=R[0])return H[0].evaluate(y);var wt=R.length;if(pt>=R[wt-1])return H[wt-1].evaluate(y);var Dt=ju(R,pt),Yt=R[Dt],fe=R[Dt+1],Re=Wo.interpolationFactor(this.interpolation,pt,Yt,fe),Ye=H[Dt].evaluate(y),er=H[Dt+1].evaluate(y);return this.operator==="interpolate"?wu[this.type.kind.toLowerCase()](Ye,er,Re):this.operator==="interpolate-hcl"?Hu.reverse(Hu.interpolate(Hu.forward(Ye),Hu.forward(er),Re)):qs.reverse(qs.interpolate(qs.forward(Ye),qs.forward(er),Re))},Wo.prototype.eachChild=function(y){y(this.input);for(var R=0,H=this.outputs;R=H.length)throw new No("Array index out of bounds: "+R+" > "+(H.length-1)+".");if(R!==Math.floor(R))throw new No("Array index must be an integer, but found "+R+" instead.");return H[R]},wo.prototype.eachChild=function(y){y(this.index),y(this.input)},wo.prototype.outputDefined=function(){return!1},wo.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Ll=function(y,R){this.type=_i,this.needle=y,this.haystack=R};Ll.parse=function(y,R){if(y.length!==3)return R.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var H=R.parse(y[1],1,zi),pt=R.parse(y[2],2,zi);return!H||!pt?null:os(H.type,[_i,ai,Wr,Zr,zi])?new Ll(H,pt):R.error("Expected first argument to be of type boolean, string, number or null, but found "+yn(H.type)+" instead")},Ll.prototype.evaluate=function(y){var R=this.needle.evaluate(y),H=this.haystack.evaluate(y);if(!H)return!1;if(!Bo(R,["boolean","string","number","null"]))throw new No("Expected first argument to be of type boolean, string, number or null, but found "+yn(zo(R))+" instead.");if(!Bo(H,["string","array"]))throw new No("Expected second argument to be of type array or string, but found "+yn(zo(H))+" instead.");return H.indexOf(R)>=0},Ll.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},Ll.prototype.outputDefined=function(){return!0},Ll.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Yn=function(y,R,H){this.type=Wr,this.needle=y,this.haystack=R,this.fromIndex=H};Yn.parse=function(y,R){if(y.length<=2||y.length>=5)return R.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var H=R.parse(y[1],1,zi),pt=R.parse(y[2],2,zi);if(!H||!pt)return null;if(!os(H.type,[_i,ai,Wr,Zr,zi]))return R.error("Expected first argument to be of type boolean, string, number or null, but found "+yn(H.type)+" instead");if(y.length===4){var wt=R.parse(y[3],3,Wr);return wt?new Yn(H,pt,wt):null}else return new Yn(H,pt)},Yn.prototype.evaluate=function(y){var R=this.needle.evaluate(y),H=this.haystack.evaluate(y);if(!Bo(R,["boolean","string","number","null"]))throw new No("Expected first argument to be of type boolean, string, number or null, but found "+yn(zo(R))+" instead.");if(!Bo(H,["string","array"]))throw new No("Expected second argument to be of type array or string, but found "+yn(zo(H))+" instead.");if(this.fromIndex){var pt=this.fromIndex.evaluate(y);return H.indexOf(R,pt)}return H.indexOf(R)},Yn.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Il=function(y,R,H,pt,wt,Dt){this.inputType=y,this.type=R,this.input=H,this.cases=pt,this.outputs=wt,this.otherwise=Dt};Il.parse=function(y,R){if(y.length<5)return R.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!=1)return R.error("Expected an even number of arguments.");var H,pt;R.expectedType&&R.expectedType.kind!=="value"&&(pt=R.expectedType);for(var wt={},Dt=[],Yt=2;Yt9007199254740991)return Ye.error("Branch labels must be integers no larger than "+9007199254740991+".");if(typeof Er=="number"&&Math.floor(Er)!==Er)return Ye.error("Numeric branch labels must be integer values.");if(!H)H=zo(Er);else if(Ye.checkSubtype(H,zo(Er)))return null;if(wt[String(Er)]!==void 0)return Ye.error("Branch labels must be unique.");wt[String(Er)]=Dt.length}var Ir=R.parse(Re,Yt,pt);if(!Ir)return null;pt||(pt=Ir.type),Dt.push(Ir)}var ui=R.parse(y[1],1,zi);if(!ui)return null;var hi=R.parse(y[y.length-1],y.length-1,pt);return!hi||ui.type.kind!=="value"&&R.concat(1).checkSubtype(H,ui.type)?null:new Il(H,pt,ui,wt,Dt,hi)},Il.prototype.evaluate=function(y){var R=this.input.evaluate(y);return(zo(R)===this.inputType&&this.outputs[this.cases[R]]||this.otherwise).evaluate(y)},Il.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},Il.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},Il.prototype.serialize=function(){for(var y=this,R=["match",this.input.serialize()],H=Object.keys(this.cases).sort(),pt=[],wt={},Dt=0,Yt=H;Dt=5)return R.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var H=R.parse(y[1],1,zi),pt=R.parse(y[2],2,Wr);if(!H||!pt)return null;if(!os(H.type,[Wa(zi),ai,zi]))return R.error("Expected first argument to be of type array or string, but found "+yn(H.type)+" instead");if(y.length===4){var wt=R.parse(y[3],3,Wr);return wt?new Pl(H.type,H,pt,wt):null}else return new Pl(H.type,H,pt)},Pl.prototype.evaluate=function(y){var R=this.input.evaluate(y),H=this.beginIndex.evaluate(y);if(!Bo(R,["string","array"]))throw new No("Expected first argument to be of type array or string, but found "+yn(zo(R))+" instead.");if(this.endIndex){var pt=this.endIndex.evaluate(y);return R.slice(H,pt)}return R.slice(H)},Pl.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},Pl.prototype.outputDefined=function(){return!1},Pl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Gu(y,R){return y==="=="||y==="!="?R.kind==="boolean"||R.kind==="string"||R.kind==="number"||R.kind==="null"||R.kind==="value":R.kind==="string"||R.kind==="number"||R.kind==="value"}function no(y,R,H){return R===H}function zl(y,R,H){return R!==H}function hh(y,R,H){return RH}function Gc(y,R,H){return R<=H}function sc(y,R,H){return R>=H}function Zc(y,R,H,pt){return pt.compare(R,H)===0}function lc(y,R,H,pt){return!Zc(y,R,H,pt)}function Mc(y,R,H,pt){return pt.compare(R,H)<0}function ys(y,R,H,pt){return pt.compare(R,H)>0}function Hs(y,R,H,pt){return pt.compare(R,H)<=0}function ku(y,R,H,pt){return pt.compare(R,H)>=0}function Gs(y,R,H){var pt=y!=="=="&&y!=="!=";return(function(){function wt(Dt,Yt,fe){this.type=_i,this.lhs=Dt,this.rhs=Yt,this.collator=fe,this.hasUntypedArgument=Dt.type.kind==="value"||Yt.type.kind==="value"}return wt.parse=function(Dt,Yt){if(Dt.length!==3&&Dt.length!==4)return Yt.error("Expected two or three arguments.");var fe=Dt[0],Re=Yt.parse(Dt[1],1,zi);if(!Re)return null;if(!Gu(fe,Re.type))return Yt.concat(1).error('"'+fe+`" comparisons are not supported for type '`+yn(Re.type)+"'.");var Ye=Yt.parse(Dt[2],2,zi);if(!Ye)return null;if(!Gu(fe,Ye.type))return Yt.concat(2).error('"'+fe+`" comparisons are not supported for type '`+yn(Ye.type)+"'.");if(Re.type.kind!==Ye.type.kind&&Re.type.kind!=="value"&&Ye.type.kind!=="value")return Yt.error("Cannot compare types '"+yn(Re.type)+"' and '"+yn(Ye.type)+"'.");pt&&(Re.type.kind==="value"&&Ye.type.kind!=="value"?Re=new Do(Ye.type,[Re]):Re.type.kind!=="value"&&Ye.type.kind==="value"&&(Ye=new Do(Re.type,[Ye])));var er=null;if(Dt.length===4){if(Re.type.kind!=="string"&&Ye.type.kind!=="string"&&Re.type.kind!=="value"&&Ye.type.kind!=="value")return Yt.error("Cannot use collator to compare non-string types.");if(er=Yt.parse(Dt[3],3,ln),!er)return null}return new wt(Re,Ye,er)},wt.prototype.evaluate=function(Dt){var Yt=this.lhs.evaluate(Dt),fe=this.rhs.evaluate(Dt);if(pt&&this.hasUntypedArgument){var Re=zo(Yt),Ye=zo(fe);if(Re.kind!==Ye.kind||!(Re.kind==="string"||Re.kind==="number"))throw new No('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+Re.kind+", "+Ye.kind+") instead.")}if(this.collator&&!pt&&this.hasUntypedArgument){var er=zo(Yt),dr=zo(fe);if(er.kind!=="string"||dr.kind!=="string")return R(Dt,Yt,fe)}return this.collator?H(Dt,Yt,fe,this.collator.evaluate(Dt)):R(Dt,Yt,fe)},wt.prototype.eachChild=function(Dt){Dt(this.lhs),Dt(this.rhs),this.collator&&Dt(this.collator)},wt.prototype.outputDefined=function(){return!0},wt.prototype.serialize=function(){var Dt=[y];return this.eachChild(function(Yt){Dt.push(Yt.serialize())}),Dt},wt})()}var uc=Gs("==",no,Zc),Zu=Gs("!=",zl,lc),cc=Gs("<",hh,Mc),Ol=Gs(">",Mh,ys),Wc=Gs("<=",Gc,Hs),hc=Gs(">=",sc,ku),fl=function(y,R,H,pt,wt){this.type=ai,this.number=y,this.locale=R,this.currency=H,this.minFractionDigits=pt,this.maxFractionDigits=wt};fl.parse=function(y,R){if(y.length!==3)return R.error("Expected two arguments.");var H=R.parse(y[1],1,Wr);if(!H)return null;var pt=y[2];if(typeof pt!="object"||Array.isArray(pt))return R.error("NumberFormat options argument must be an object.");var wt=null;if(pt.locale&&(wt=R.parse(pt.locale,1,ai),!wt))return null;var Dt=null;if(pt.currency&&(Dt=R.parse(pt.currency,1,ai),!Dt))return null;var Yt=null;if(pt["min-fraction-digits"]&&(Yt=R.parse(pt["min-fraction-digits"],1,Wr),!Yt))return null;var fe=null;return pt["max-fraction-digits"]&&(fe=R.parse(pt["max-fraction-digits"],1,Wr),!fe)?null:new fl(H,wt,Dt,Yt,fe)},fl.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},fl.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},fl.prototype.outputDefined=function(){return!1},fl.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var ts=function(y){this.type=Wr,this.input=y};ts.parse=function(y,R){if(y.length!==2)return R.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var H=R.parse(y[1],1);return H?H.type.kind!=="array"&&H.type.kind!=="string"&&H.type.kind!=="value"?R.error("Expected argument of type string or array, but found "+yn(H.type)+" instead."):new ts(H):null},ts.prototype.evaluate=function(y){var R=this.input.evaluate(y);if(typeof R=="string"||Array.isArray(R))return R.length;throw new No("Expected value to be of type string or array, but found "+yn(zo(R))+" instead.")},ts.prototype.eachChild=function(y){y(this.input)},ts.prototype.outputDefined=function(){return!1},ts.prototype.serialize=function(){var y=["length"];return this.eachChild(function(R){y.push(R.serialize())}),y};var Zs={"==":uc,"!=":Zu,">":Ol,"<":cc,">=":hc,"<=":Wc,array:Do,at:wo,boolean:Do,case:lo,coalesce:Ss,collator:cl,format:gs,image:Sl,in:Ll,"index-of":Yn,interpolate:Wo,"interpolate-hcl":Wo,"interpolate-lab":Wo,length:ts,let:hl,literal:bo,match:Il,number:Do,"number-format":fl,object:Do,slice:Pl,step:Ns,string:Do,"to-boolean":jo,"to-color":jo,"to-number":jo,"to-string":jo,var:ru,within:rl};function Dl(y,R){var H=R[0],pt=R[1],wt=R[2],Dt=R[3];H=H.evaluate(y),pt=pt.evaluate(y),wt=wt.evaluate(y);var Yt=Dt?Dt.evaluate(y):1,fe=Fu(H,pt,wt,Yt);if(fe)throw new No(fe);return new Gn(H/255*Yt,pt/255*Yt,wt/255*Yt,Yt)}function Au(y,R){return y in R}function Sc(y,R){var H=R[y];return H===void 0?null:H}function fh(y,R,H,pt){for(;H<=pt;){var wt=H+pt>>1;if(R[wt]===y)return!0;R[wt]>y?pt=wt-1:H=wt+1}return!1}function Es(y){return{type:y}}ss.register(Zs,{error:[wa,[ai],function(y,R){var H=R[0];throw new No(H.evaluate(y))}],typeof:[ai,[zi],function(y,R){var H=R[0];return yn(zo(H.evaluate(y)))}],"to-rgba":[Wa(Wr,4),[ua],function(y,R){return R[0].evaluate(y).toArray()}],rgb:[ua,[Wr,Wr,Wr],Dl],rgba:[ua,[Wr,Wr,Wr,Wr],Dl],has:{type:_i,overloads:[[[ai],function(y,R){var H=R[0];return Au(H.evaluate(y),y.properties())}],[[ai,ea],function(y,R){var H=R[0],pt=R[1];return Au(H.evaluate(y),pt.evaluate(y))}]]},get:{type:zi,overloads:[[[ai],function(y,R){var H=R[0];return Sc(H.evaluate(y),y.properties())}],[[ai,ea],function(y,R){var H=R[0],pt=R[1];return Sc(H.evaluate(y),pt.evaluate(y))}]]},"feature-state":[zi,[ai],function(y,R){var H=R[0];return Sc(H.evaluate(y),y.featureState||{})}],properties:[ea,[],function(y){return y.properties()}],"geometry-type":[ai,[],function(y){return y.geometryType()}],id:[zi,[],function(y){return y.id()}],zoom:[Wr,[],function(y){return y.globals.zoom}],"heatmap-density":[Wr,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[Wr,[],function(y){return y.globals.lineProgress||0}],accumulated:[zi,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[Wr,Es(Wr),function(y,R){for(var H=0,pt=0,wt=R;pt":[_i,[ai,zi],function(y,R){var H=R[0],pt=R[1],wt=y.properties()[H.value],Dt=pt.value;return typeof wt==typeof Dt&&wt>Dt}],"filter-id->":[_i,[zi],function(y,R){var H=R[0],pt=y.id(),wt=H.value;return typeof pt==typeof wt&&pt>wt}],"filter-<=":[_i,[ai,zi],function(y,R){var H=R[0],pt=R[1],wt=y.properties()[H.value],Dt=pt.value;return typeof wt==typeof Dt&&wt<=Dt}],"filter-id-<=":[_i,[zi],function(y,R){var H=R[0],pt=y.id(),wt=H.value;return typeof pt==typeof wt&&pt<=wt}],"filter->=":[_i,[ai,zi],function(y,R){var H=R[0],pt=R[1],wt=y.properties()[H.value],Dt=pt.value;return typeof wt==typeof Dt&&wt>=Dt}],"filter-id->=":[_i,[zi],function(y,R){var H=R[0],pt=y.id(),wt=H.value;return typeof pt==typeof wt&&pt>=wt}],"filter-has":[_i,[zi],function(y,R){return R[0].value in y.properties()}],"filter-has-id":[_i,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[_i,[Wa(ai)],function(y,R){return R[0].value.indexOf(y.geometryType())>=0}],"filter-id-in":[_i,[Wa(zi)],function(y,R){return R[0].value.indexOf(y.id())>=0}],"filter-in-small":[_i,[ai,Wa(zi)],function(y,R){var H=R[0];return R[1].value.indexOf(y.properties()[H.value])>=0}],"filter-in-large":[_i,[ai,Wa(zi)],function(y,R){var H=R[0],pt=R[1];return fh(y.properties()[H.value],pt.value,0,pt.value.length-1)}],all:{type:_i,overloads:[[[_i,_i],function(y,R){var H=R[0],pt=R[1];return H.evaluate(y)&&pt.evaluate(y)}],[Es(_i),function(y,R){for(var H=0,pt=R;H-1}function Wl(y){return!!y.expression&&y.expression.interpolated}function uo(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function Rl(y){return typeof y=="object"&&!!y&&!Array.isArray(y)}function Ec(y){return y}function dc(y,R){var H=R.type==="color",pt=y.stops&&typeof y.stops[0][0]=="object",wt=pt||y.property!==void 0,Dt=pt||!wt,Yt=y.type||(Wl(R)?"exponential":"interval");if(H&&(y=Hi({},y),y.stops&&(y.stops=y.stops.map(function(cn){return[cn[0],Gn.parse(cn[1])]})),y.default?y.default=Gn.parse(y.default):y.default=Gn.parse(R.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!nu[y.colorSpace])throw Error("Unknown color space: "+y.colorSpace);var fe,Re,Ye;if(Yt==="exponential")fe=al;else if(Yt==="interval")fe=Yl;else if(Yt==="categorical"){fe=Mu,Re=Object.create(null);for(var er=0,dr=y.stops;er=y.stops[pt-1][0])return y.stops[pt-1][1];var wt=ju(y.stops.map(function(Dt){return Dt[0]}),H);return y.stops[wt][1]}function al(y,R,H){var pt=y.base===void 0?1:y.base;if(uo(H)!=="number")return mc(y.default,R.default);var wt=y.stops.length;if(wt===1||H<=y.stops[0][0])return y.stops[0][1];if(H>=y.stops[wt-1][0])return y.stops[wt-1][1];var Dt=ju(y.stops.map(function(dr){return dr[0]}),H),Yt=gc(H,pt,y.stops[Dt][0],y.stops[Dt+1][0]),fe=y.stops[Dt][1],Re=y.stops[Dt+1][1],Ye=wu[R.type]||Ec;if(y.colorSpace&&y.colorSpace!=="rgb"){var er=nu[y.colorSpace];Ye=function(dr,Er){return er.reverse(er.interpolate(er.forward(dr),er.forward(Er),Yt))}}return typeof fe.evaluate=="function"?{evaluate:function(){for(var dr=[],Er=arguments.length;Er--;)dr[Er]=arguments[Er];var Ir=fe.evaluate.apply(void 0,dr),ui=Re.evaluate.apply(void 0,dr);if(!(Ir===void 0||ui===void 0))return Ye(Ir,ui,Yt)}}:Ye(fe,Re,Yt)}function Cs(y,R,H){return R.type==="color"?H=Gn.parse(H):R.type==="formatted"?H=xo.fromString(H.toString()):R.type==="resolvedImage"?H=_s.fromString(H.toString()):uo(H)!==R.type&&(R.type!=="enum"||!R.values[H])&&(H=void 0),mc(H,y.default,R.default)}function gc(y,R,H,pt){var wt=pt-H,Dt=y-H;return wt===0?0:R===1?Dt/wt:(R**+Dt-1)/(R**+wt-1)}var Su=function(y,R){this.expression=y,this._warningHistory={},this._evaluator=new Bs,this._defaultValue=R?nl(R):null,this._enumValues=R&&R.type==="enum"?R.values:null};Su.prototype.evaluateWithoutErrorHandling=function(y,R,H,pt,wt,Dt){return this._evaluator.globals=y,this._evaluator.feature=R,this._evaluator.featureState=H,this._evaluator.canonical=pt,this._evaluator.availableImages=wt||null,this._evaluator.formattedSection=Dt,this.expression.evaluate(this._evaluator)},Su.prototype.evaluate=function(y,R,H,pt,wt,Dt){this._evaluator.globals=y,this._evaluator.feature=R||null,this._evaluator.featureState=H||null,this._evaluator.canonical=pt,this._evaluator.availableImages=wt||null,this._evaluator.formattedSection=Dt||null;try{var Yt=this.expression.evaluate(this._evaluator);if(Yt==null||typeof Yt=="number"&&Yt!==Yt)return this._defaultValue;if(this._enumValues&&!(Yt in this._enumValues))throw new No("Expected value to be one of "+Object.keys(this._enumValues).map(function(fe){return JSON.stringify(fe)}).join(", ")+", but found "+JSON.stringify(Yt)+" instead.");return Yt}catch(fe){return this._warningHistory[fe.message]||(this._warningHistory[fe.message]=!0,typeof console<"u"&&console.warn(fe.message)),this._defaultValue}};function Fl(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in Zs}function Xl(y,R){var H=new Cl(Zs,[],R?uu(R):void 0),pt=H.parse(y,void 0,void 0,void 0,R&&R.type==="string"?{typeAnnotation:"coerce"}:void 0);return pt?fc(new Su(pt,R)):Zl(H.errors)}var Ws=function(y,R){this.kind=y,this._styleExpression=R,this.isStateDependent=y!=="constant"&&!El(R.expression)};Ws.prototype.evaluateWithoutErrorHandling=function(y,R,H,pt,wt,Dt){return this._styleExpression.evaluateWithoutErrorHandling(y,R,H,pt,wt,Dt)},Ws.prototype.evaluate=function(y,R,H,pt,wt,Dt){return this._styleExpression.evaluate(y,R,H,pt,wt,Dt)};var Bl=function(y,R,H,pt){this.kind=y,this.zoomStops=H,this._styleExpression=R,this.isStateDependent=y!=="camera"&&!El(R.expression),this.interpolationType=pt};Bl.prototype.evaluateWithoutErrorHandling=function(y,R,H,pt,wt,Dt){return this._styleExpression.evaluateWithoutErrorHandling(y,R,H,pt,wt,Dt)},Bl.prototype.evaluate=function(y,R,H,pt,wt,Dt){return this._styleExpression.evaluate(y,R,H,pt,wt,Dt)},Bl.prototype.interpolationFactor=function(y,R,H){return this.interpolationType?Wo.interpolationFactor(this.interpolationType,y,R,H):0};function su(y,R){if(y=Xl(y,R),y.result==="error")return y;var H=y.value.expression,pt=eu(H);if(!pt&&!ou(R))return Zl([new Qi("","data expressions not supported")]);var wt=ao(H,["zoom"]);if(!wt&&!pc(R))return Zl([new Qi("","zoom expressions not supported")]);var Dt=Eu(H);if(!Dt&&!wt)return Zl([new Qi("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(Dt instanceof Qi)return Zl([Dt]);if(Dt instanceof Wo&&!Wl(R))return Zl([new Qi("",'"interpolate" expressions cannot be used with this property')]);if(!Dt)return fc(pt?new Ws("constant",y.value):new Ws("source",y.value));var Yt=Dt instanceof Wo?Dt.interpolation:void 0;return fc(pt?new Bl("camera",y.value,Dt.labels,Yt):new Bl("composite",y.value,Dt.labels,Yt))}var Uo=function(y,R){this._parameters=y,this._specification=R,Hi(this,dc(this._parameters,this._specification))};Uo.deserialize=function(y){return new Uo(y._parameters,y._specification)},Uo.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function lu(y,R){if(Rl(y))return new Uo(y,R);if(Fl(y)){var H=su(y,R);if(H.result==="error")throw Error(H.value.map(function(wt){return wt.key+": "+wt.message}).join(", "));return H.value}else{var pt=y;return typeof y=="string"&&R.type==="color"&&(pt=Gn.parse(y)),{kind:"constant",evaluate:function(){return pt}}}}function Eu(y){var R=null;if(y instanceof hl)R=Eu(y.result);else if(y instanceof Ss)for(var H=0,pt=y.args;Hpt.maximum?[new jr(R,H,H+" is greater than the maximum value "+pt.maximum)]:[]:[new jr(R,H,"number expected, "+wt+" found")]}function ro(y){var R=y.valueSpec,H=Oi(y.value.type),pt,wt={},Dt,Yt,fe=H!=="categorical"&&y.value.property===void 0,Re=!fe,Ye=uo(y.value.stops)==="array"&&uo(y.value.stops[0])==="array"&&uo(y.value.stops[0][0])==="object",er=cs({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:dr,default:ui}});return H==="identity"&&fe&&er.push(new jr(y.key,y.value,'missing required property "property"')),H!=="identity"&&!y.value.stops&&er.push(new jr(y.key,y.value,'missing required property "stops"')),H==="exponential"&&y.valueSpec.expression&&!Wl(y.valueSpec)&&er.push(new jr(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(Re&&!ou(y.valueSpec)?er.push(new jr(y.key,y.value,"property functions not supported")):fe&&!pc(y.valueSpec)&&er.push(new jr(y.key,y.value,"zoom functions not supported"))),(H==="categorical"||Ye)&&y.value.property===void 0&&er.push(new jr(y.key,y.value,'"property" property is required')),er;function dr(hi){if(H==="identity")return[new jr(hi.key,hi.value,'identity function may not have a "stops" property')];var Yi=[],Gi=hi.value;return Yi=Yi.concat(Cu({key:hi.key,value:Gi,valueSpec:hi.valueSpec,style:hi.style,styleSpec:hi.styleSpec,arrayElementValidator:Er})),uo(Gi)==="array"&&Gi.length===0&&Yi.push(new jr(hi.key,Gi,"array must have at least one stop")),Yi}function Er(hi){var Yi=[],Gi=hi.value,ra=hi.key;if(uo(Gi)!=="array")return[new jr(ra,Gi,"array expected, "+uo(Gi)+" found")];if(Gi.length!==2)return[new jr(ra,Gi,"array length 2 expected, length "+Gi.length+" found")];if(Ye){if(uo(Gi[0])!=="object")return[new jr(ra,Gi,"object expected, "+uo(Gi[0])+" found")];if(Gi[0].zoom===void 0)return[new jr(ra,Gi,"object stop key must have zoom")];if(Gi[0].value===void 0)return[new jr(ra,Gi,"object stop key must have value")];if(Yt&&Yt>Oi(Gi[0].zoom))return[new jr(ra,Gi[0].zoom,"stop zoom values must appear in ascending order")];Oi(Gi[0].zoom)!==Yt&&(Yt=Oi(Gi[0].zoom),Dt=void 0,wt={}),Yi=Yi.concat(cs({key:ra+"[0]",value:Gi[0],valueSpec:{zoom:{}},style:hi.style,styleSpec:hi.styleSpec,objectElementValidators:{zoom:cu,value:Ir}}))}else Yi=Yi.concat(Ir({key:ra+"[0]",value:Gi[0],valueSpec:{},style:hi.style,styleSpec:hi.styleSpec},Gi));return Fl(sa(Gi[1]))?Yi.concat([new jr(ra+"[1]",Gi[1],"expressions are not allowed in function stops.")]):Yi.concat(Lr({key:ra+"[1]",value:Gi[1],valueSpec:R,style:hi.style,styleSpec:hi.styleSpec}))}function Ir(hi,Yi){var Gi=uo(hi.value),ra=Oi(hi.value),la=hi.value===null?Yi:hi.value;if(!pt)pt=Gi;else if(Gi!==pt)return[new jr(hi.key,la,Gi+" stop domain type must match previous stop domain type "+pt)];if(Gi!=="number"&&Gi!=="string"&&Gi!=="boolean")return[new jr(hi.key,la,"stop domain value must be a number, string, or boolean")];if(Gi!=="number"&&H!=="categorical"){var ta="number expected, "+Gi+" found";return ou(R)&&H===void 0&&(ta+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new jr(hi.key,la,ta)]}return H==="categorical"&&Gi==="number"&&(!isFinite(ra)||Math.floor(ra)!==ra)?[new jr(hi.key,la,"integer expected, found "+ra)]:H!=="categorical"&&Gi==="number"&&Dt!==void 0&&ra=2&&y[1]!=="$id"&&y[1]!=="$type";case"in":return y.length>=3&&(typeof y[1]!="string"||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return y.length!==3||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(var R=0,H=y.slice(1);RR?1:0}function Ys(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var R=1;R"||R==="<="||R===">="?Xs(y[1],y[2],R):R==="any"?fu(y.slice(1)):R==="all"?["all"].concat(y.slice(1).map(es)):R==="none"?["all"].concat(y.slice(1).map(es).map(pl)):R==="in"?$u(y[1],y.slice(2)):R==="!in"?pl($u(y[1],y.slice(2))):R==="has"?vc(y[1]):R==="!has"?pl(vc(y[1])):R==="within"?y:!0}function Xs(y,R,H){switch(y){case"$type":return["filter-type-"+H,R];case"$id":return["filter-id-"+H,R];default:return["filter-"+H,y,R]}}function fu(y){return["any"].concat(y.map(es))}function $u(y,R){if(R.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",R]];case"$id":return["filter-id-in",["literal",R]];default:return R.length>200&&!R.some(function(H){return typeof H!=typeof R[0]})?["filter-in-large",y,["literal",R.sort(Xu)]]:["filter-in-small",y,["literal",R]]}}function vc(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function pl(y){return["!",y]}function Ju(y){return yc(sa(y.value))?Ls(Hi({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Nl(y)}function Nl(y){var R=y.value,H=y.key;if(uo(R)!=="array")return[new jr(H,R,"array expected, "+uo(R)+" found")];var pt=y.styleSpec,wt,Dt=[];if(R.length<1)return[new jr(H,R,"filter array must have at least 1 element")];switch(Dt=Dt.concat(hu({key:H+"[0]",value:R[0],valueSpec:pt.filter_operator,style:y.style,styleSpec:y.styleSpec})),Oi(R[0])){case"<":case"<=":case">":case">=":R.length>=2&&Oi(R[1])==="$type"&&Dt.push(new jr(H,R,'"$type" cannot be use with operator "'+R[0]+'"'));case"==":case"!=":R.length!==3&&Dt.push(new jr(H,R,'filter array for operator "'+R[0]+'" must have 3 elements'));case"in":case"!in":R.length>=2&&(wt=uo(R[1]),wt!=="string"&&Dt.push(new jr(H+"[1]",R[1],"string expected, "+wt+" found")));for(var Yt=2;Yt=er[Ir+0]&&pt>=er[Ir+1])?(Yt[Er]=!0,Dt.push(Ye[Er])):Yt[Er]=!1}}},En.prototype._forEachCell=function(y,R,H,pt,wt,Dt,Yt,fe){for(var Re=this._convertToCellCoord(y),Ye=this._convertToCellCoord(R),er=this._convertToCellCoord(H),dr=this._convertToCellCoord(pt),Er=Re;Er<=er;Er++)for(var Ir=Ye;Ir<=dr;Ir++){var ui=this.d*Ir+Er;if(!(fe&&!fe(this._convertFromCellCoord(Er),this._convertFromCellCoord(Ir),this._convertFromCellCoord(Er+1),this._convertFromCellCoord(Ir+1)))&&wt.call(this,y,R,H,pt,ui,Dt,Yt,fe))return}},En.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},En.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},En.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,R=kn+this.cells.length+1+1,H=0,pt=0;pt=0)){var dr=y[er];Ye[er]=So[Re].shallow.indexOf(er)>=0?dr:se(dr,R)}y instanceof Error&&(Ye.message=y.message)}if(Ye.$name)throw Error("$name property is reserved for worker serialization logic.");return Re!=="Object"&&(Ye.$name=Re),Ye}throw Error("can't serialize object of type "+typeof y)}function ce(y){if(y==null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||zt(y)||Jt(y)||ArrayBuffer.isView(y)||y instanceof Ao)return y;if(Array.isArray(y))return y.map(ce);if(typeof y=="object"){var R=y.$name||"Object",H=So[R].klass;if(!H)throw Error("can't deserialize unregistered class "+R);if(H.deserialize)return H.deserialize(y);for(var pt=Object.create(H.prototype),wt=0,Dt=Object.keys(y);wt=0?fe:ce(fe)}}return pt}throw Error("can't deserialize object of type "+typeof y)}var xe=function(){this.first=!0};xe.prototype.update=function(y,R){var H=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=H,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=H,!0):(this.lastFloorZoom>H?(this.lastIntegerZoom=H+1,this.lastIntegerZoomTime=R):this.lastFloorZoom=128&&y<=255},Arabic:function(y){return y>=1536&&y<=1791},"Arabic Supplement":function(y){return y>=1872&&y<=1919},"Arabic Extended-A":function(y){return y>=2208&&y<=2303},"Hangul Jamo":function(y){return y>=4352&&y<=4607},"Unified Canadian Aboriginal Syllabics":function(y){return y>=5120&&y<=5759},Khmer:function(y){return y>=6016&&y<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(y){return y>=6320&&y<=6399},"General Punctuation":function(y){return y>=8192&&y<=8303},"Letterlike Symbols":function(y){return y>=8448&&y<=8527},"Number Forms":function(y){return y>=8528&&y<=8591},"Miscellaneous Technical":function(y){return y>=8960&&y<=9215},"Control Pictures":function(y){return y>=9216&&y<=9279},"Optical Character Recognition":function(y){return y>=9280&&y<=9311},"Enclosed Alphanumerics":function(y){return y>=9312&&y<=9471},"Geometric Shapes":function(y){return y>=9632&&y<=9727},"Miscellaneous Symbols":function(y){return y>=9728&&y<=9983},"Miscellaneous Symbols and Arrows":function(y){return y>=11008&&y<=11263},"CJK Radicals Supplement":function(y){return y>=11904&&y<=12031},"Kangxi Radicals":function(y){return y>=12032&&y<=12255},"Ideographic Description Characters":function(y){return y>=12272&&y<=12287},"CJK Symbols and Punctuation":function(y){return y>=12288&&y<=12351},Hiragana:function(y){return y>=12352&&y<=12447},Katakana:function(y){return y>=12448&&y<=12543},Bopomofo:function(y){return y>=12544&&y<=12591},"Hangul Compatibility Jamo":function(y){return y>=12592&&y<=12687},Kanbun:function(y){return y>=12688&&y<=12703},"Bopomofo Extended":function(y){return y>=12704&&y<=12735},"CJK Strokes":function(y){return y>=12736&&y<=12783},"Katakana Phonetic Extensions":function(y){return y>=12784&&y<=12799},"Enclosed CJK Letters and Months":function(y){return y>=12800&&y<=13055},"CJK Compatibility":function(y){return y>=13056&&y<=13311},"CJK Unified Ideographs Extension A":function(y){return y>=13312&&y<=19903},"Yijing Hexagram Symbols":function(y){return y>=19904&&y<=19967},"CJK Unified Ideographs":function(y){return y>=19968&&y<=40959},"Yi Syllables":function(y){return y>=40960&&y<=42127},"Yi Radicals":function(y){return y>=42128&&y<=42191},"Hangul Jamo Extended-A":function(y){return y>=43360&&y<=43391},"Hangul Syllables":function(y){return y>=44032&&y<=55215},"Hangul Jamo Extended-B":function(y){return y>=55216&&y<=55295},"Private Use Area":function(y){return y>=57344&&y<=63743},"CJK Compatibility Ideographs":function(y){return y>=63744&&y<=64255},"Arabic Presentation Forms-A":function(y){return y>=64336&&y<=65023},"Vertical Forms":function(y){return y>=65040&&y<=65055},"CJK Compatibility Forms":function(y){return y>=65072&&y<=65103},"Small Form Variants":function(y){return y>=65104&&y<=65135},"Arabic Presentation Forms-B":function(y){return y>=65136&&y<=65279},"Halfwidth and Fullwidth Forms":function(y){return y>=65280&&y<=65519}};function Fe(y){for(var R=0,H=y;R=65097&&y<=65103)||Oe["CJK Compatibility Ideographs"](y)||Oe["CJK Compatibility"](y)||Oe["CJK Radicals Supplement"](y)||Oe["CJK Strokes"](y)||Oe["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||Oe["CJK Unified Ideographs Extension A"](y)||Oe["CJK Unified Ideographs"](y)||Oe["Enclosed CJK Letters and Months"](y)||Oe["Hangul Compatibility Jamo"](y)||Oe["Hangul Jamo Extended-A"](y)||Oe["Hangul Jamo Extended-B"](y)||Oe["Hangul Jamo"](y)||Oe["Hangul Syllables"](y)||Oe.Hiragana(y)||Oe["Ideographic Description Characters"](y)||Oe.Kanbun(y)||Oe["Kangxi Radicals"](y)||Oe["Katakana Phonetic Extensions"](y)||Oe.Katakana(y)&&y!==12540||Oe["Halfwidth and Fullwidth Forms"](y)&&y!==65288&&y!==65289&&y!==65293&&!(y>=65306&&y<=65310)&&y!==65339&&y!==65341&&y!==65343&&!(y>=65371&&y<=65503)&&y!==65507&&!(y>=65512&&y<=65519)||Oe["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||Oe["Unified Canadian Aboriginal Syllabics"](y)||Oe["Unified Canadian Aboriginal Syllabics Extended"](y)||Oe["Vertical Forms"](y)||Oe["Yijing Hexagram Symbols"](y)||Oe["Yi Syllables"](y)||Oe["Yi Radicals"](y))}function Qr(y){return!!(Oe["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||Oe["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||Oe["Letterlike Symbols"](y)||Oe["Number Forms"](y)||Oe["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||Oe["Control Pictures"](y)&&y!==9251||Oe["Optical Character Recognition"](y)||Oe["Enclosed Alphanumerics"](y)||Oe["Geometric Shapes"](y)||Oe["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||Oe["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||Oe["CJK Symbols and Punctuation"](y)||Oe.Katakana(y)||Oe["Private Use Area"](y)||Oe["CJK Compatibility Forms"](y)||Oe["Small Form Variants"](y)||Oe["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function Ai(y){return!(Yr(y)||Qr(y))}function Fi(y){return Oe.Arabic(y)||Oe["Arabic Supplement"](y)||Oe["Arabic Extended-A"](y)||Oe["Arabic Presentation Forms-A"](y)||Oe["Arabic Presentation Forms-B"](y)}function ti(y){return y>=1424&&y<=2303||Oe["Arabic Presentation Forms-A"](y)||Oe["Arabic Presentation Forms-B"](y)}function fi(y,R){return!(!R&&ti(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||Oe.Khmer(y))}function bi(y){for(var R=0,H=y;R-1&&(ha=Ri.error),ki&&ki(y)};function ja(){Ya.fire(new wr("pluginStateChange",{pluginStatus:ha,pluginURL:Na}))}var Ya=new lr,Ja=function(){return ha},Cn=function(y){return y({pluginStatus:ha,pluginURL:Na}),Ya.on("pluginStateChange",y),y},rn=function(y,R,H){if(H===void 0&&(H=!1),ha===Ri.deferred||ha===Ri.loading||ha===Ri.loaded)throw Error("setRTLTextPlugin cannot be called multiple times.");Na=ut.resolveURL(y),ha=Ri.deferred,ki=R,ja(),H||Bn()},Bn=function(){if(ha!==Ri.deferred||!Na)throw Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ha=Ri.loading,ja(),Na&&ar({url:Na},function(y){y?Za(y):(ha=Ri.loaded,ja())})},Un={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ha===Ri.loaded||Un.applyArabicShaping!=null},isLoading:function(){return ha===Ri.loading},setState:function(y){ha=y.pluginStatus,Na=y.pluginURL},isParsed:function(){return Un.applyArabicShaping!=null&&Un.processBidirectionalText!=null&&Un.processStyledBidirectionalText!=null},getPluginURL:function(){return Na}},rs=function(){!Un.isLoading()&&!Un.isLoaded()&&Ja()==="deferred"&&Bn()},In=function(y,R){this.zoom=y,R?(this.now=R.now,this.fadeDuration=R.fadeDuration,this.zoomHistory=R.zoomHistory,this.transition=R.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new xe,this.transition={})};In.prototype.isSupportedScript=function(y){return Ui(y,Un.isLoaded())},In.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},In.prototype.getCrossfadeParameters=function(){var y=this.zoom,R=y-Math.floor(y),H=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:R+(1-R)*H}:{fromScale:.5,toScale:1,t:1-(1-H)*R}};var Ua=function(y,R){this.property=y,this.value=R,this.expression=lu(R===void 0?y.specification.default:R,y.specification)};Ua.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ua.prototype.possiblyEvaluate=function(y,R,H){return this.property.possiblyEvaluate(this,y,R,H)};var Pn=function(y){this.property=y,this.value=new Ua(y,void 0)};Pn.prototype.transitioned=function(y,R){return new Oa(this.property,this.value,R,b({},y.transition,this.transition),y.now)},Pn.prototype.untransitioned=function(){return new Oa(this.property,this.value,null,{},0)};var Mn=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Mn.prototype.getValue=function(y){return j(this._values[y].value.value)},Mn.prototype.setValue=function(y,R){this._values.hasOwnProperty(y)||(this._values[y]=new Pn(this._values[y].property)),this._values[y].value=new Ua(this._values[y].property,R===null?void 0:j(R))},Mn.prototype.getTransition=function(y){return j(this._values[y].transition)},Mn.prototype.setTransition=function(y,R){this._values.hasOwnProperty(y)||(this._values[y]=new Pn(this._values[y].property)),this._values[y].transition=j(R)||void 0},Mn.prototype.serialize=function(){for(var y={},R=0,H=Object.keys(this._values);Rthis.end||this.value.isDataDriven())return this.prior=null,wt;if(ptDt.zoomHistory.lastIntegerZoom?{from:H,to:pt}:{from:wt,to:pt}},R.prototype.interpolate=function(H){return H},R})(pn),Pa=function(y){this.specification=y};Pa.prototype.possiblyEvaluate=function(y,R,H,pt){if(y.value!==void 0)if(y.expression.kind==="constant"){var wt=y.expression.evaluate(R,null,{},H,pt);return this._calculate(wt,wt,wt,R)}else return this._calculate(y.expression.evaluate(new In(Math.floor(R.zoom-1),R)),y.expression.evaluate(new In(Math.floor(R.zoom),R)),y.expression.evaluate(new In(Math.floor(R.zoom+1),R)),R)},Pa.prototype._calculate=function(y,R,H,pt){return pt.zoom>pt.zoomHistory.lastIntegerZoom?{from:y,to:R}:{from:H,to:R}},Pa.prototype.interpolate=function(y){return y};var Yo=function(y){this.specification=y};Yo.prototype.possiblyEvaluate=function(y,R,H,pt){return!!y.expression.evaluate(R,null,{},H,pt)},Yo.prototype.interpolate=function(){return!1};var Ro=function(y){for(var R in this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],y){var H=y[R];H.specification.overridable&&this.overridableProperties.push(R);var pt=this.defaultPropertyValues[R]=new Ua(H,void 0),wt=this.defaultTransitionablePropertyValues[R]=new Pn(H);this.defaultTransitioningPropertyValues[R]=wt.untransitioned(),this.defaultPossiblyEvaluatedValues[R]=pt.possiblyEvaluate({})}};$a("DataDrivenProperty",pn),$a("DataConstantProperty",an),$a("CrossFadedDataDrivenProperty",ns),$a("CrossFadedProperty",Pa),$a("ColorRampProperty",Yo);var dl="-transition",Xo=(function(y){function R(H,pt){if(y.call(this),this.id=H.id,this.type=H.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},H.type!=="custom"&&(H=H,this.metadata=H.metadata,this.minzoom=H.minzoom,this.maxzoom=H.maxzoom,H.type!=="background"&&(this.source=H.source,this.sourceLayer=H["source-layer"],this.filter=H.filter),pt.layout&&(this._unevaluatedLayout=new oo(pt.layout)),pt.paint)){for(var wt in this._transitionablePaint=new Mn(pt.paint),H.paint)this.setPaintProperty(wt,H.paint[wt],{validate:!1});for(var Dt in H.layout)this.setLayoutProperty(Dt,H.layout[Dt],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new as(pt.paint)}}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},R.prototype.getLayoutProperty=function(H){return H==="visibility"?this.visibility:this._unevaluatedLayout.getValue(H)},R.prototype.setLayoutProperty=function(H,pt,wt){if(wt===void 0&&(wt={}),pt!=null){var Dt="layers."+this.id+".layout."+H;if(this._validate(pa,Dt,H,pt,wt))return}if(H==="visibility"){this.visibility=pt;return}this._unevaluatedLayout.setValue(H,pt)},R.prototype.getPaintProperty=function(H){return _(H,dl)?this._transitionablePaint.getTransition(H.slice(0,-dl.length)):this._transitionablePaint.getValue(H)},R.prototype.setPaintProperty=function(H,pt,wt){if(wt===void 0&&(wt={}),pt!=null){var Dt="layers."+this.id+".paint."+H;if(this._validate(Sa,Dt,H,pt,wt))return!1}if(_(H,dl))return this._transitionablePaint.setTransition(H.slice(0,-dl.length),pt||void 0),!1;var Yt=this._transitionablePaint._values[H],fe=Yt.property.specification["property-type"]==="cross-faded-data-driven",Re=Yt.value.isDataDriven(),Ye=Yt.value;this._transitionablePaint.setValue(H,pt),this._handleSpecialPaintPropertyUpdate(H);var er=this._transitionablePaint._values[H].value;return er.isDataDriven()||Re||fe||this._handleOverridablePaintPropertyUpdate(H,Ye,er)},R.prototype._handleSpecialPaintPropertyUpdate=function(H){},R.prototype._handleOverridablePaintPropertyUpdate=function(H,pt,wt){return!1},R.prototype.isHidden=function(H){return this.minzoom&&H=this.maxzoom?!0:this.visibility==="none"},R.prototype.updateTransitions=function(H){this._transitioningPaint=this._transitionablePaint.transitioned(H,this._transitioningPaint)},R.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},R.prototype.recalculate=function(H,pt){H.getCrossfadeParameters&&(this._crossfadeParameters=H.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(H,void 0,pt)),this.paint=this._transitioningPaint.possiblyEvaluate(H,void 0,pt)},R.prototype.serialize=function(){var H={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(H.layout=H.layout||{},H.layout.visibility=this.visibility),O(H,function(pt,wt){return pt!==void 0&&!(wt==="layout"&&!Object.keys(pt).length)&&!(wt==="paint"&&!Object.keys(pt).length)})},R.prototype._validate=function(H,pt,wt,Dt,Yt){return Yt===void 0&&(Yt={}),Yt&&Yt.validate===!1?!1:Ra(this,H.call(Ki,{key:pt,layerType:this.type,objectKey:wt,value:Dt,styleSpec:hr,style:{glyphs:!0,sprite:!0}}))},R.prototype.is3D=function(){return!1},R.prototype.isTileClipped=function(){return!1},R.prototype.hasOffscreenPass=function(){return!1},R.prototype.resize=function(){},R.prototype.isStateDependent=function(){for(var H in this.paint._values){var pt=this.paint.get(H);if(!(!(pt instanceof Eo)||!ou(pt.property.specification))&&(pt.value.kind==="source"||pt.value.kind==="composite")&&pt.value.isStateDependent)return!0}return!1},R})(lr),$o={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},hs=function(y,R){this._structArray=y,this._pos1=R*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},$s=128,jl=5,co=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};co.serialize=function(y,R){return y._trim(),R&&(y.isTransferred=!0,R.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},co.deserialize=function(y){var R=Object.create(this.prototype);return R.arrayBuffer=y.arrayBuffer,R.length=y.length,R.capacity=y.arrayBuffer.byteLength/R.bytesPerElement,R._refreshViews(),R},co.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},co.prototype.clear=function(){this.length=0},co.prototype.resize=function(y){this.reserve(y),this.length=y},co.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*jl),$s),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var R=this.uint8;this._refreshViews(),R&&this.uint8.set(R)}},co.prototype._refreshViews=function(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")};function $n(y,R){R===void 0&&(R=1);var H=0,pt=0;return{members:y.map(function(wt){var Dt=Ku(wt.type),Yt=H=Js(H,Math.max(R,Dt)),fe=wt.components||1;return pt=Math.max(pt,Dt),H+=Dt*fe,{name:wt.name,type:wt.type,components:fe,offset:Yt}}),size:Js(H,Math.max(pt,R)),alignment:R}}function Ku(y){return $o[y].BYTES_PER_ELEMENT}function Js(y,R){return Math.ceil(y/R)*R}var Ul=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt){var wt=this.length;return this.resize(wt+1),this.emplace(wt,H,pt)},R.prototype.emplace=function(H,pt,wt){var Dt=H*2;return this.int16[Dt+0]=pt,this.int16[Dt+1]=wt,H},R})(co);Ul.prototype.bytesPerElement=4,$a("StructArrayLayout2i4",Ul);var $l=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt){var Yt=this.length;return this.resize(Yt+1),this.emplace(Yt,H,pt,wt,Dt)},R.prototype.emplace=function(H,pt,wt,Dt,Yt){var fe=H*4;return this.int16[fe+0]=pt,this.int16[fe+1]=wt,this.int16[fe+2]=Dt,this.int16[fe+3]=Yt,H},R})(co);$l.prototype.bytesPerElement=8,$a("StructArrayLayout4i8",$l);var Vo=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe){var Re=this.length;return this.resize(Re+1),this.emplace(Re,H,pt,wt,Dt,Yt,fe)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re){var Ye=H*6;return this.int16[Ye+0]=pt,this.int16[Ye+1]=wt,this.int16[Ye+2]=Dt,this.int16[Ye+3]=Yt,this.int16[Ye+4]=fe,this.int16[Ye+5]=Re,H},R})(co);Vo.prototype.bytesPerElement=12,$a("StructArrayLayout2i4i12",Vo);var Lc=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe){var Re=this.length;return this.resize(Re+1),this.emplace(Re,H,pt,wt,Dt,Yt,fe)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re){var Ye=H*4,er=H*8;return this.int16[Ye+0]=pt,this.int16[Ye+1]=wt,this.uint8[er+4]=Dt,this.uint8[er+5]=Yt,this.uint8[er+6]=fe,this.uint8[er+7]=Re,H},R})(co);Lc.prototype.bytesPerElement=8,$a("StructArrayLayout2i4ub8",Lc);var Xc=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt){var wt=this.length;return this.resize(wt+1),this.emplace(wt,H,pt)},R.prototype.emplace=function(H,pt,wt){var Dt=H*2;return this.float32[Dt+0]=pt,this.float32[Dt+1]=wt,H},R})(co);Xc.prototype.bytesPerElement=8,$a("StructArrayLayout2f8",Xc);var Vl=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr){var Er=this.length;return this.resize(Er+1),this.emplace(Er,H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er){var Ir=H*10;return this.uint16[Ir+0]=pt,this.uint16[Ir+1]=wt,this.uint16[Ir+2]=Dt,this.uint16[Ir+3]=Yt,this.uint16[Ir+4]=fe,this.uint16[Ir+5]=Re,this.uint16[Ir+6]=Ye,this.uint16[Ir+7]=er,this.uint16[Ir+8]=dr,this.uint16[Ir+9]=Er,H},R})(co);Vl.prototype.bytesPerElement=20,$a("StructArrayLayout10ui20",Vl);var bt=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir){var ui=this.length;return this.resize(ui+1),this.emplace(ui,H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir,ui){var hi=H*12;return this.int16[hi+0]=pt,this.int16[hi+1]=wt,this.int16[hi+2]=Dt,this.int16[hi+3]=Yt,this.uint16[hi+4]=fe,this.uint16[hi+5]=Re,this.uint16[hi+6]=Ye,this.uint16[hi+7]=er,this.int16[hi+8]=dr,this.int16[hi+9]=Er,this.int16[hi+10]=Ir,this.int16[hi+11]=ui,H},R})(co);bt.prototype.bytesPerElement=24,$a("StructArrayLayout4i4ui4i24",bt);var I=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,H,pt,wt)},R.prototype.emplace=function(H,pt,wt,Dt){var Yt=H*3;return this.float32[Yt+0]=pt,this.float32[Yt+1]=wt,this.float32[Yt+2]=Dt,H},R})(co);I.prototype.bytesPerElement=12,$a("StructArrayLayout3f12",I);var W=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H){var pt=this.length;return this.resize(pt+1),this.emplace(pt,H)},R.prototype.emplace=function(H,pt){var wt=H*1;return this.uint32[wt+0]=pt,H},R})(co);W.prototype.bytesPerElement=4,$a("StructArrayLayout1ul4",W);var dt=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er){var dr=this.length;return this.resize(dr+1),this.emplace(dr,H,pt,wt,Dt,Yt,fe,Re,Ye,er)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr){var Er=H*10,Ir=H*5;return this.int16[Er+0]=pt,this.int16[Er+1]=wt,this.int16[Er+2]=Dt,this.int16[Er+3]=Yt,this.int16[Er+4]=fe,this.int16[Er+5]=Re,this.uint32[Ir+3]=Ye,this.uint16[Er+8]=er,this.uint16[Er+9]=dr,H},R})(co);dt.prototype.bytesPerElement=20,$a("StructArrayLayout6i1ul2ui20",dt);var xt=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe){var Re=this.length;return this.resize(Re+1),this.emplace(Re,H,pt,wt,Dt,Yt,fe)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re){var Ye=H*6;return this.int16[Ye+0]=pt,this.int16[Ye+1]=wt,this.int16[Ye+2]=Dt,this.int16[Ye+3]=Yt,this.int16[Ye+4]=fe,this.int16[Ye+5]=Re,H},R})(co);xt.prototype.bytesPerElement=12,$a("StructArrayLayout2i2i2i12",xt);var Nt=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt){var fe=this.length;return this.resize(fe+1),this.emplace(fe,H,pt,wt,Dt,Yt)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe){var Re=H*4,Ye=H*8;return this.float32[Re+0]=pt,this.float32[Re+1]=wt,this.float32[Re+2]=Dt,this.int16[Ye+6]=Yt,this.int16[Ye+7]=fe,H},R})(co);Nt.prototype.bytesPerElement=16,$a("StructArrayLayout2f1f2i16",Nt);var le=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt){var Yt=this.length;return this.resize(Yt+1),this.emplace(Yt,H,pt,wt,Dt)},R.prototype.emplace=function(H,pt,wt,Dt,Yt){var fe=H*12,Re=H*3;return this.uint8[fe+0]=pt,this.uint8[fe+1]=wt,this.float32[Re+1]=Dt,this.float32[Re+2]=Yt,H},R})(co);le.prototype.bytesPerElement=12,$a("StructArrayLayout2ub2f12",le);var Ae=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,H,pt,wt)},R.prototype.emplace=function(H,pt,wt,Dt){var Yt=H*3;return this.uint16[Yt+0]=pt,this.uint16[Yt+1]=wt,this.uint16[Yt+2]=Dt,H},R})(co);Ae.prototype.bytesPerElement=6,$a("StructArrayLayout3ui6",Ae);var Ue=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir,ui,hi,Yi,Gi,ra){var la=this.length;return this.resize(la+1),this.emplace(la,H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir,ui,hi,Yi,Gi,ra)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir,ui,hi,Yi,Gi,ra,la){var ta=H*24,va=H*12,La=H*48;return this.int16[ta+0]=pt,this.int16[ta+1]=wt,this.uint16[ta+2]=Dt,this.uint16[ta+3]=Yt,this.uint32[va+2]=fe,this.uint32[va+3]=Re,this.uint32[va+4]=Ye,this.uint16[ta+10]=er,this.uint16[ta+11]=dr,this.uint16[ta+12]=Er,this.float32[va+7]=Ir,this.float32[va+8]=ui,this.uint8[La+36]=hi,this.uint8[La+37]=Yi,this.uint8[La+38]=Gi,this.uint32[va+10]=ra,this.int16[ta+22]=la,H},R})(co);Ue.prototype.bytesPerElement=48,$a("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ue);var ir=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir,ui,hi,Yi,Gi,ra,la,ta,va,La,Da,cn,hn,dn,bn,vn,qn){var wn=this.length;return this.resize(wn+1),this.emplace(wn,H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir,ui,hi,Yi,Gi,ra,la,ta,va,La,Da,cn,hn,dn,bn,vn,qn)},R.prototype.emplace=function(H,pt,wt,Dt,Yt,fe,Re,Ye,er,dr,Er,Ir,ui,hi,Yi,Gi,ra,la,ta,va,La,Da,cn,hn,dn,bn,vn,qn,wn){var An=H*34,go=H*17;return this.int16[An+0]=pt,this.int16[An+1]=wt,this.int16[An+2]=Dt,this.int16[An+3]=Yt,this.int16[An+4]=fe,this.int16[An+5]=Re,this.int16[An+6]=Ye,this.int16[An+7]=er,this.uint16[An+8]=dr,this.uint16[An+9]=Er,this.uint16[An+10]=Ir,this.uint16[An+11]=ui,this.uint16[An+12]=hi,this.uint16[An+13]=Yi,this.uint16[An+14]=Gi,this.uint16[An+15]=ra,this.uint16[An+16]=la,this.uint16[An+17]=ta,this.uint16[An+18]=va,this.uint16[An+19]=La,this.uint16[An+20]=Da,this.uint16[An+21]=cn,this.uint16[An+22]=hn,this.uint32[go+12]=dn,this.float32[go+13]=bn,this.float32[go+14]=vn,this.float32[go+15]=qn,this.float32[go+16]=wn,H},R})(co);ir.prototype.bytesPerElement=68,$a("StructArrayLayout8i15ui1ul4f68",ir);var cr=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H){var pt=this.length;return this.resize(pt+1),this.emplace(pt,H)},R.prototype.emplace=function(H,pt){var wt=H*1;return this.float32[wt+0]=pt,H},R})(co);cr.prototype.bytesPerElement=4,$a("StructArrayLayout1f4",cr);var gr=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,H,pt,wt)},R.prototype.emplace=function(H,pt,wt,Dt){var Yt=H*3;return this.int16[Yt+0]=pt,this.int16[Yt+1]=wt,this.int16[Yt+2]=Dt,H},R})(co);gr.prototype.bytesPerElement=6,$a("StructArrayLayout3i6",gr);var Ur=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt){var Dt=this.length;return this.resize(Dt+1),this.emplace(Dt,H,pt,wt)},R.prototype.emplace=function(H,pt,wt,Dt){var Yt=H*2,fe=H*4;return this.uint32[Yt+0]=pt,this.uint16[fe+2]=wt,this.uint16[fe+3]=Dt,H},R})(co);Ur.prototype.bytesPerElement=8,$a("StructArrayLayout1ul2ui8",Ur);var ri=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt){var wt=this.length;return this.resize(wt+1),this.emplace(wt,H,pt)},R.prototype.emplace=function(H,pt,wt){var Dt=H*2;return this.uint16[Dt+0]=pt,this.uint16[Dt+1]=wt,H},R})(co);ri.prototype.bytesPerElement=4,$a("StructArrayLayout2ui4",ri);var pi=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H){var pt=this.length;return this.resize(pt+1),this.emplace(pt,H)},R.prototype.emplace=function(H,pt){var wt=H*1;return this.uint16[wt+0]=pt,H},R})(co);pi.prototype.bytesPerElement=2,$a("StructArrayLayout1ui2",pi);var xi=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},R.prototype.emplaceBack=function(H,pt,wt,Dt){var Yt=this.length;return this.resize(Yt+1),this.emplace(Yt,H,pt,wt,Dt)},R.prototype.emplace=function(H,pt,wt,Dt,Yt){var fe=H*4;return this.float32[fe+0]=pt,this.float32[fe+1]=wt,this.float32[fe+2]=Dt,this.float32[fe+3]=Yt,H},R})(co);xi.prototype.bytesPerElement=16,$a("StructArrayLayout4f16",xi);var Mi=(function(y){function R(){y.apply(this,arguments)}y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R;var H={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return H.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},H.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},H.x1.get=function(){return this._structArray.int16[this._pos2+2]},H.y1.get=function(){return this._structArray.int16[this._pos2+3]},H.x2.get=function(){return this._structArray.int16[this._pos2+4]},H.y2.get=function(){return this._structArray.int16[this._pos2+5]},H.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},H.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},H.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},H.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(R.prototype,H),R})(hs);Mi.prototype.size=20;var Vi=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.get=function(H){return new Mi(this,H)},R})(dt);$a("CollisionBoxArray",Vi);var Xi=(function(y){function R(){y.apply(this,arguments)}y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R;var H={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return H.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},H.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},H.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},H.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},H.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},H.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},H.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},H.segment.get=function(){return this._structArray.uint16[this._pos2+10]},H.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},H.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},H.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},H.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},H.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},H.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},H.placedOrientation.set=function(pt){this._structArray.uint8[this._pos1+37]=pt},H.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},H.hidden.set=function(pt){this._structArray.uint8[this._pos1+38]=pt},H.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},H.crossTileID.set=function(pt){this._structArray.uint32[this._pos4+10]=pt},H.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(R.prototype,H),R})(hs);Xi.prototype.size=48;var $i=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.get=function(H){return new Xi(this,H)},R})(Ue);$a("PlacedSymbolArray",$i);var xa=(function(y){function R(){y.apply(this,arguments)}y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R;var H={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return H.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},H.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},H.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},H.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},H.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},H.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},H.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},H.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},H.key.get=function(){return this._structArray.uint16[this._pos2+8]},H.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},H.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},H.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},H.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},H.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},H.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},H.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},H.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},H.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},H.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},H.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},H.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},H.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},H.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},H.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},H.crossTileID.set=function(pt){this._structArray.uint32[this._pos4+12]=pt},H.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},H.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},H.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},H.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(R.prototype,H),R})(hs);xa.prototype.size=68;var _a=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.get=function(H){return new xa(this,H)},R})(ir);$a("SymbolInstanceArray",_a);var za=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.getoffsetX=function(H){return this.float32[H*1+0]},R})(cr);$a("GlyphOffsetArray",za);var on=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.getx=function(H){return this.int16[H*3+0]},R.prototype.gety=function(H){return this.int16[H*3+1]},R.prototype.gettileUnitDistanceFromAnchor=function(H){return this.int16[H*3+2]},R})(gr);$a("SymbolLineVertexArray",on);var mn=(function(y){function R(){y.apply(this,arguments)}y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R;var H={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return H.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},H.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},H.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(R.prototype,H),R})(hs);mn.prototype.size=8;var Xn=(function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.get=function(H){return new mn(this,H)},R})(Ur);$a("FeatureIndexArray",Xn);var gn=$n([{name:"a_pos",components:2,type:"Int16"}],4).members,Qa=function(y){y===void 0&&(y=[]),this.segments=y};Qa.prototype.prepareSegment=function(y,R,H,pt){var wt=this.segments[this.segments.length-1];return y>Qa.MAX_VERTEX_ARRAY_LENGTH&&P("Max vertices per segment is "+Qa.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!wt||wt.vertexLength+y>Qa.MAX_VERTEX_ARRAY_LENGTH||wt.sortKey!==pt)&&(wt={vertexOffset:R.length,primitiveOffset:H.length,vertexLength:0,primitiveLength:0},pt!==void 0&&(wt.sortKey=pt),this.segments.push(wt)),wt},Qa.prototype.get=function(){return this.segments},Qa.prototype.destroy=function(){for(var y=0,R=this.segments;y>>16)*Re&65535)<<16)&4294967295,er=er<<15|er>>>17,er=(er&65535)*Ye+(((er>>>16)*Ye&65535)<<16)&4294967295,Yt^=er,Yt=Yt<<13|Yt>>>19,fe=(Yt&65535)*5+(((Yt>>>16)*5&65535)<<16)&4294967295,Yt=(fe&65535)+27492+(((fe>>>16)+58964&65535)<<16);switch(er=0,wt){case 3:er^=(H.charCodeAt(dr+2)&255)<<16;case 2:er^=(H.charCodeAt(dr+1)&255)<<8;case 1:er^=H.charCodeAt(dr)&255,er=(er&65535)*Re+(((er>>>16)*Re&65535)<<16)&4294967295,er=er<<15|er>>>17,er=(er&65535)*Ye+(((er>>>16)*Ye&65535)<<16)&4294967295,Yt^=er}return Yt^=H.length,Yt^=Yt>>>16,Yt=(Yt&65535)*2246822507+(((Yt>>>16)*2246822507&65535)<<16)&4294967295,Yt^=Yt>>>13,Yt=(Yt&65535)*3266489909+(((Yt>>>16)*3266489909&65535)<<16)&4294967295,Yt^=Yt>>>16,Yt>>>0}y.exports=R}),so=E(function(y){function R(H,pt){for(var wt=H.length,Dt=pt^wt,Yt=0,fe;wt>=4;)fe=H.charCodeAt(Yt)&255|(H.charCodeAt(++Yt)&255)<<8|(H.charCodeAt(++Yt)&255)<<16|(H.charCodeAt(++Yt)&255)<<24,fe=(fe&65535)*1540483477+(((fe>>>16)*1540483477&65535)<<16),fe^=fe>>>24,fe=(fe&65535)*1540483477+(((fe>>>16)*1540483477&65535)<<16),Dt=(Dt&65535)*1540483477+(((Dt>>>16)*1540483477&65535)<<16)^fe,wt-=4,++Yt;switch(wt){case 3:Dt^=(H.charCodeAt(Yt+2)&255)<<16;case 2:Dt^=(H.charCodeAt(Yt+1)&255)<<8;case 1:Dt^=H.charCodeAt(Yt)&255,Dt=(Dt&65535)*1540483477+(((Dt>>>16)*1540483477&65535)<<16)}return Dt^=Dt>>>13,Dt=(Dt&65535)*1540483477+(((Dt>>>16)*1540483477&65535)<<16),Dt^=Dt>>>15,Dt>>>0}y.exports=R}),$=Rn,at=Rn,it=so;$.murmur3=at,$.murmur2=it;var mt=function(){this.ids=[],this.positions=[],this.indexed=!1};mt.prototype.add=function(y,R,H,pt){this.ids.push(ie(y)),this.positions.push(R,H,pt)},mt.prototype.getPositions=function(y){for(var R=ie(y),H=0,pt=this.ids.length-1;H>1;this.ids[wt]>=R?pt=wt:H=wt+1}for(var Dt=[];this.ids[H]===R;){var Yt=this.positions[3*H],fe=this.positions[3*H+1],Re=this.positions[3*H+2];Dt.push({index:Yt,start:fe,end:Re}),H++}return Dt},mt.serialize=function(y,R){var H=new Float64Array(y.ids),pt=new Uint32Array(y.positions);return he(H,pt,0,H.length-1),R&&R.push(H.buffer,pt.buffer),{ids:H,positions:pt}},mt.deserialize=function(y){var R=new mt;return R.ids=y.ids,R.positions=y.positions,R.indexed=!0,R};var Ft=2**53-1;function ie(y){var R=+y;return!isNaN(R)&&R<=Ft?R:$(String(y))}function he(y,R,H,pt){for(;H>1],Dt=H-1,Yt=pt+1;;){do Dt++;while(y[Dt]wt);if(Dt>=Yt)break;Ie(y,Dt,Yt),Ie(R,3*Dt,3*Yt),Ie(R,3*Dt+1,3*Yt+1),Ie(R,3*Dt+2,3*Yt+2)}Yt-HYt.x+1||ReYt.y+1)&&P("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return H}function Zn(y,R){return{type:y.type,id:y.id,properties:y.properties,geometry:R?_n(y):[]}}function Wn(y,R,H,pt,wt){y.emplaceBack(R*2+(pt+1)/2,H*2+(wt+1)/2)}var Qn=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ul,this.indexArray=new Ae,this.segments=new Qa,this.programConfigurations=new Va(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};Qn.prototype.populate=function(y,R,H){var pt=this.layers[0],wt=[],Dt=null;pt.type==="circle"&&(Dt=pt.layout.get("circle-sort-key"));for(var Yt=0,fe=y;Yt=Ka||dr<0||dr>=Ka)){var Er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Ir=Er.vertexLength;Wn(this.layoutVertexArray,er,dr,-1,-1),Wn(this.layoutVertexArray,er,dr,1,-1),Wn(this.layoutVertexArray,er,dr,1,1),Wn(this.layoutVertexArray,er,dr,-1,1),this.indexArray.emplaceBack(Ir,Ir+1,Ir+2),this.indexArray.emplaceBack(Ir,Ir+3,Ir+2),Er.vertexLength+=4,Er.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,H,{},pt)},$a("CircleBucket",Qn,{omit:["layers"]});function ho(y,R){for(var H=0;H=3){for(var Dt=0;Dt1){if(mo(y,R))return!0;for(var pt=0;pt1?y.distSqr(H):y.distSqr(H.sub(R)._mult(wt)._add(R))}function Jo(y,R){for(var H=!1,pt,wt,Dt,Yt=0;YtR.y!=Dt.y>R.y&&R.x<(Dt.x-wt.x)*(R.y-wt.y)/(Dt.y-wt.y)+wt.x&&(H=!H)}return H}function ml(y,R){for(var H=!1,pt=0,wt=y.length-1;ptR.y!=Yt.y>R.y&&R.x<(Yt.x-Dt.x)*(R.y-Dt.y)/(Yt.y-Dt.y)+Dt.x&&(H=!H)}return H}function Iu(y,R,H,pt,wt){for(var Dt=0,Yt=y;Dt=fe.x&&wt>=fe.y)return!0}var Re=[new i(R,H),new i(R,wt),new i(pt,wt),new i(pt,H)];if(y.length>2)for(var Ye=0,er=Re;Yewt.x&&R.x>wt.x||y.ywt.y&&R.y>wt.y)return!1;var Dt=N(y,R,H[0]);return Dt!==N(y,R,H[1])||Dt!==N(y,R,H[2])||Dt!==N(y,R,H[3])}function Ks(y,R,H){var pt=R.paint.get(y).value;return pt.kind==="constant"?pt.value:H.programConfigurations.get(R.id).getMaxValue(y)}function Pu(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function zu(y,R,H,pt,wt){if(!R[0]&&!R[1])return y;var Dt=i.convert(R)._mult(wt);H==="viewport"&&Dt._rotate(-pt);for(var Yt=[],fe=0;fe0&&(Dt=1/Math.sqrt(Dt)),y[0]=R[0]*Dt,y[1]=R[1]*Dt,y[2]=R[2]*Dt,y}function Qc(y,R){return y[0]*R[0]+y[1]*R[1]+y[2]*R[2]}function M0(y,R,H){var pt=R[0],wt=R[1],Dt=R[2],Yt=H[0],fe=H[1],Re=H[2];return y[0]=wt*Re-Dt*fe,y[1]=Dt*Yt-pt*Re,y[2]=pt*fe-wt*Yt,y}function S0(y,R,H){var pt=R[0],wt=R[1],Dt=R[2];return y[0]=pt*H[0]+wt*H[3]+Dt*H[6],y[1]=pt*H[1]+wt*H[4]+Dt*H[7],y[2]=pt*H[2]+wt*H[5]+Dt*H[8],y}var yd=pu;(function(){var y=Kh();return function(R,H,pt,wt,Dt,Yt){var fe,Re;for(H||(H=3),pt||(pt=0),Re=wt?Math.min(wt*H+pt,R.length):R.length,fe=pt;fey.width||wt.height>y.height||H.x>y.width-wt.width||H.y>y.height-wt.height)throw RangeError("out of range source coordinates for image copy");if(wt.width>R.width||wt.height>R.height||pt.x>R.width-wt.width||pt.y>R.height-wt.height)throw RangeError("out of range destination coordinates for image copy");for(var Yt=y.data,fe=R.data,Re=0;Re80*H){fe=Ye=y[0],Re=er=y[1];for(var ui=H;uiYe&&(Ye=dr),Er>er&&(er=Er);Ir=Math.max(Ye-fe,er-Re),Ir=Ir===0?0:1/Ir}return Pf(Dt,Yt,H,fe,Re,Ir),Yt}function kd(y,R,H,pt,wt){var Dt,Yt;if(wt===pp(y,R,H,pt)>0)for(Dt=R;Dt=R;Dt-=pt)Yt=Of(Dt,y[Dt],y[Dt+1],Yt);return Yt&&cp(Yt,Yt.next)&&(Df(Yt),Yt=Yt.next),Yt}function Bh(y,R){if(!y)return y;R||(R=y);var H=y,pt;do if(pt=!1,!H.steiner&&(cp(H,H.next)||Is(H.prev,H,H.next)===0)){if(Df(H),H=R=H.prev,H===H.next)break;pt=!0}else H=H.next;while(pt||H!==R);return R}function Pf(y,R,H,pt,wt,Dt,Yt){if(y){!Yt&&Dt&&R0(y,pt,wt,Dt);for(var fe=y,Re,Ye;y.prev!==y.next;){if(Re=y.prev,Ye=y.next,Dt?du(y,pt,wt,Dt):I0(y)){R.push(Re.i/H),R.push(y.i/H),R.push(Ye.i/H),Df(y),y=Ye.next,fe=Ye.next;continue}if(y=Ye,y===fe){Yt?Yt===1?(y=cf(Bh(y),R,H),Pf(y,R,H,pt,wt,Dt,2)):Yt===2&&P0(y,R,H,pt,wt,Dt):Pf(Bh(y),R,H,pt,wt,Dt,1);break}}}}function I0(y){var R=y.prev,H=y,pt=y.next;if(Is(R,H,pt)>=0)return!1;for(var wt=y.next.next;wt!==y.prev;){if(hf(R.x,R.y,H.x,H.y,pt.x,pt.y,wt.x,wt.y)&&Is(wt.prev,wt,wt.next)>=0)return!1;wt=wt.next}return!0}function du(y,R,H,pt){var wt=y.prev,Dt=y,Yt=y.next;if(Is(wt,Dt,Yt)>=0)return!1;for(var fe=wt.xDt.x?wt.x>Yt.x?wt.x:Yt.x:Dt.x>Yt.x?Dt.x:Yt.x,er=wt.y>Dt.y?wt.y>Yt.y?wt.y:Yt.y:Dt.y>Yt.y?Dt.y:Yt.y,dr=Up(fe,Re,R,H,pt),Er=Up(Ye,er,R,H,pt),Ir=y.prevZ,ui=y.nextZ;Ir&&Ir.z>=dr&&ui&&ui.z<=Er;){if(Ir!==y.prev&&Ir!==y.next&&hf(wt.x,wt.y,Dt.x,Dt.y,Yt.x,Yt.y,Ir.x,Ir.y)&&Is(Ir.prev,Ir,Ir.next)>=0||(Ir=Ir.prevZ,ui!==y.prev&&ui!==y.next&&hf(wt.x,wt.y,Dt.x,Dt.y,Yt.x,Yt.y,ui.x,ui.y)&&Is(ui.prev,ui,ui.next)>=0))return!1;ui=ui.nextZ}for(;Ir&&Ir.z>=dr;){if(Ir!==y.prev&&Ir!==y.next&&hf(wt.x,wt.y,Dt.x,Dt.y,Yt.x,Yt.y,Ir.x,Ir.y)&&Is(Ir.prev,Ir,Ir.next)>=0)return!1;Ir=Ir.prevZ}for(;ui&&ui.z<=Er;){if(ui!==y.prev&&ui!==y.next&&hf(wt.x,wt.y,Dt.x,Dt.y,Yt.x,Yt.y,ui.x,ui.y)&&Is(ui.prev,ui,ui.next)>=0)return!1;ui=ui.nextZ}return!0}function cf(y,R,H){var pt=y;do{var wt=pt.prev,Dt=pt.next.next;!cp(wt,Dt)&&Md(wt,pt,pt.next,Dt)&&zf(wt,Dt)&&zf(Dt,wt)&&(R.push(wt.i/H),R.push(pt.i/H),R.push(Dt.i/H),Df(pt),Df(pt.next),pt=y=Dt),pt=pt.next}while(pt!==y);return Bh(pt)}function P0(y,R,H,pt,wt,Dt){var Yt=y;do{for(var fe=Yt.next.next;fe!==Yt.prev;){if(Yt.i!==fe.i&&N0(Yt,fe)){var Re=Sd(Yt,fe);Yt=Bh(Yt,Yt.next),Re=Bh(Re,Re.next),Pf(Yt,R,H,pt,wt,Dt),Pf(Re,R,H,pt,wt,Dt);return}fe=fe.next}Yt=Yt.next}while(Yt!==y)}function z0(y,R,H,pt){var wt=[],Dt,Yt,fe,Re,Ye;for(Dt=0,Yt=R.length;Dt=H.next.y&&H.next.y!==H.y){var fe=H.x+(wt-H.y)*(H.next.x-H.x)/(H.next.y-H.y);if(fe<=pt&&fe>Dt){if(Dt=fe,fe===pt){if(wt===H.y)return H;if(wt===H.next.y)return H.next}Yt=H.x=H.x&&H.x>=Ye&&pt!==H.x&&hf(wtYt.x||H.x===Yt.x&&Ad(Yt,H)))&&(Yt=H,dr=Er)),H=H.next;while(H!==Re);return Yt}function Ad(y,R){return Is(y.prev,y,R.prev)<0&&Is(R.next,y,y.next)<0}function R0(y,R,H,pt){var wt=y;do wt.z===null&&(wt.z=Up(wt.x,wt.y,R,H,pt)),wt.prevZ=wt.prev,wt.nextZ=wt.next,wt=wt.next;while(wt!==y);wt.prevZ.nextZ=null,wt.prevZ=null,F0(wt)}function F0(y){var R,H,pt,wt,Dt,Yt,fe,Re,Ye=1;do{for(H=y,y=null,Dt=null,Yt=0;H;){for(Yt++,pt=H,fe=0,R=0;R0||Re>0&&pt;)fe!==0&&(Re===0||!pt||H.z<=pt.z)?(wt=H,H=H.nextZ,fe--):(wt=pt,pt=pt.nextZ,Re--),Dt?Dt.nextZ=wt:y=wt,wt.prevZ=Dt,Dt=wt;H=pt}Dt.nextZ=null,Ye*=2}while(Yt>1);return y}function Up(y,R,H,pt,wt){return y=32767*(y-H)*wt,R=32767*(R-pt)*wt,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,R=(R|R<<8)&16711935,R=(R|R<<4)&252645135,R=(R|R<<2)&858993459,R=(R|R<<1)&1431655765,y|R<<1}function B0(y){var R=y,H=y;do(R.x=0&&(y-Yt)*(pt-fe)-(H-Yt)*(R-fe)>=0&&(H-Yt)*(Dt-fe)-(wt-Yt)*(pt-fe)>=0}function N0(y,R){return y.next.i!==R.i&&y.prev.i!==R.i&&!j0(y,R)&&(zf(y,R)&&zf(R,y)&&U0(y,R)&&(Is(y.prev,y,R.prev)||Is(y,R.prev,R))||cp(y,R)&&Is(y.prev,y,y.next)>0&&Is(R.prev,R,R.next)>0)}function Is(y,R,H){return(R.y-y.y)*(H.x-R.x)-(R.x-y.x)*(H.y-R.y)}function cp(y,R){return y.x===R.x&&y.y===R.y}function Md(y,R,H,pt){var wt=fp(Is(y,R,H)),Dt=fp(Is(y,R,pt)),Yt=fp(Is(H,pt,y)),fe=fp(Is(H,pt,R));return!!(wt!==Dt&&Yt!==fe||wt===0&&hp(y,H,R)||Dt===0&&hp(y,pt,R)||Yt===0&&hp(H,y,pt)||fe===0&&hp(H,R,pt))}function hp(y,R,H){return R.x<=Math.max(y.x,H.x)&&R.x>=Math.min(y.x,H.x)&&R.y<=Math.max(y.y,H.y)&&R.y>=Math.min(y.y,H.y)}function fp(y){return y>0?1:y<0?-1:0}function j0(y,R){var H=y;do{if(H.i!==y.i&&H.next.i!==y.i&&H.i!==R.i&&H.next.i!==R.i&&Md(H,H.next,y,R))return!0;H=H.next}while(H!==y);return!1}function zf(y,R){return Is(y.prev,y,y.next)<0?Is(y,R,y.next)>=0&&Is(y,y.prev,R)>=0:Is(y,R,y.prev)<0||Is(y,y.next,R)<0}function U0(y,R){var H=y,pt=!1,wt=(y.x+R.x)/2,Dt=(y.y+R.y)/2;do H.y>Dt!=H.next.y>Dt&&H.next.y!==H.y&&wt<(H.next.x-H.x)*(Dt-H.y)/(H.next.y-H.y)+H.x&&(pt=!pt),H=H.next;while(H!==y);return pt}function Sd(y,R){var H=new Vp(y.i,y.x,y.y),pt=new Vp(R.i,R.x,R.y),wt=y.next,Dt=R.prev;return y.next=R,R.prev=y,H.next=wt,wt.prev=H,pt.next=H,H.prev=pt,Dt.next=pt,pt.prev=Dt,pt}function Of(y,R,H,pt){var wt=new Vp(y,R,H);return pt?(wt.next=pt.next,wt.prev=pt,pt.next.prev=wt,pt.next=wt):(wt.prev=wt,wt.next=wt),wt}function Df(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function Vp(y,R,H){this.i=y,this.x=R,this.y=H,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}up.deviation=function(y,R,H,pt){var wt=R&&R.length,Dt=wt?R[0]*H:y.length,Yt=Math.abs(pp(y,0,Dt,H));if(wt)for(var fe=0,Re=R.length;fe0&&(pt+=y[wt-1].length,H.holes.push(pt))}return H},uf.default=L0;function V0(y,R,H,pt,wt){qp(y,R,H||0,pt||y.length-1,wt||q0)}function qp(y,R,H,pt,wt){for(;pt>H;){if(pt-H>600){var Dt=pt-H+1,Yt=R-H+1,fe=Math.log(Dt),Re=.5*Math.exp(2*fe/3),Ye=.5*Math.sqrt(fe*Re*(Dt-Re)/Dt)*(Yt-Dt/2<0?-1:1);qp(y,R,Math.max(H,Math.floor(R-Yt*Re/Dt+Ye)),Math.min(pt,Math.floor(R+(Dt-Yt)*Re/Dt+Ye)),wt)}var er=y[R],dr=H,Er=pt;for(Rf(y,H,R),wt(y[pt],er)>0&&Rf(y,H,pt);dr0;)Er--}wt(y[H],er)===0?Rf(y,H,Er):(Er++,Rf(y,Er,pt)),Er<=R&&(H=Er+1),R<=Er&&(pt=Er-1)}}function Rf(y,R,H){var pt=y[R];y[R]=y[H],y[H]=pt}function q0(y,R){return yR?1:0}function Hp(y,R){var H=y.length;if(H<=1)return[y];for(var pt=[],wt,Dt,Yt=0;Yt1)for(var Re=0;Re>3}if(pt--,H===1||H===2)wt+=y.readSVarint(),Dt+=y.readSVarint(),H===1&&(fe&&Yt.push(fe),fe=[]),fe.push(new i(wt,Dt));else if(H===7)fe&&fe.push(fe[0].clone());else throw Error("unknown command "+H)}return fe&&Yt.push(fe),Yt},ff.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var R=y.readVarint()+y.pos,H=1,pt=0,wt=0,Dt=0,Yt=1/0,fe=-1/0,Re=1/0,Ye=-1/0;y.pos>3}if(pt--,H===1||H===2)wt+=y.readSVarint(),Dt+=y.readSVarint(),wtfe&&(fe=wt),DtYe&&(Ye=Dt);else if(H!==7)throw Error("unknown command "+H)}return[Yt,Re,fe,Ye]},ff.prototype.toGeoJSON=function(y,R,H){var pt=this.extent*2**H,wt=this.extent*y,Dt=this.extent*R,Yt=this.loadGeometry(),fe=ff.types[this.type],Re,Ye;function er(Ir){for(var ui=0;ui>3;R=pt===1?y.readString():pt===2?y.readFloat():pt===3?y.readDouble():pt===4?y.readVarint64():pt===5?y.readVarint():pt===6?y.readSVarint():pt===7?y.readBoolean():null}return R}Nh.prototype.feature=function(y){if(y<0||y>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[y];var R=this._pbf.readVarint()+this._pbf.pos;return new Cd(this._pbf,R,this.extent,this._keys,this._values)};var X0=$0;function $0(y,R){this.layers=y.readFields(J0,{},R)}function J0(y,R,H){if(y===3){var pt=new Zp(H,H.readVarint()+H.pos);pt.length&&(R[pt.name]=pt)}}var pf={VectorTile:X0,VectorTileFeature:Cd,VectorTileLayer:Zp},K0=pf.VectorTileFeature.types,Q0=500,Wp=2**13;function jf(y,R,H,pt,wt,Dt,Yt,fe){y.emplaceBack(R,H,Math.floor(pt*Wp)*2+Yt,wt*Wp*2,Dt*Wp*2,Math.round(fe))}var th=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(R){return R.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Vo,this.indexArray=new Ae,this.programConfigurations=new Va(y.layers,y.zoom),this.segments=new Qa,this.stateDependentLayerIds=this.layers.filter(function(R){return R.isStateDependent()}).map(function(R){return R.id})};th.prototype.populate=function(y,R,H){this.features=[],this.hasPattern=dp("fill-extrusion",this.layers,R);for(var pt=0,wt=y;pt=1){var la=hi[Gi-1];if(!tm(ra,la)){Er.vertexLength+4>Qa.MAX_VERTEX_ARRAY_LENGTH&&(Er=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var ta=ra.sub(la)._perp()._unit(),va=la.dist(ra);Yi+va>32768&&(Yi=0),jf(this.layoutVertexArray,ra.x,ra.y,ta.x,ta.y,0,0,Yi),jf(this.layoutVertexArray,ra.x,ra.y,ta.x,ta.y,0,1,Yi),Yi+=va,jf(this.layoutVertexArray,la.x,la.y,ta.x,ta.y,0,0,Yi),jf(this.layoutVertexArray,la.x,la.y,ta.x,ta.y,0,1,Yi);var La=Er.vertexLength;this.indexArray.emplaceBack(La,La+2,La+1),this.indexArray.emplaceBack(La+1,La+2,La+3),Er.vertexLength+=4,Er.primitiveLength+=2}}}}if(Er.vertexLength+Re>Qa.MAX_VERTEX_ARRAY_LENGTH&&(Er=this.segments.prepareSegment(Re,this.layoutVertexArray,this.indexArray)),K0[y.type]==="Polygon"){for(var Da=[],cn=[],hn=Er.vertexLength,dn=0,bn=fe;dnKa)||y.y===R.y&&(y.y<0||y.y>Ka)}function Yp(y){return y.every(function(R){return R.x<0})||y.every(function(R){return R.x>Ka})||y.every(function(R){return R.y<0})||y.every(function(R){return R.y>Ka})}var em={paint:new Ro({"fill-extrusion-opacity":new an(hr["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new pn(hr["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new an(hr["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new an(hr["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ns(hr["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new pn(hr["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new pn(hr["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new an(hr["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},df=(function(y){function R(H){y.call(this,H,em)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.createBucket=function(H){return new th(H)},R.prototype.queryRadius=function(){return Pu(this.paint.get("fill-extrusion-translate"))},R.prototype.is3D=function(){return!0},R.prototype.queryIntersectsFeature=function(H,pt,wt,Dt,Yt,fe,Re,Ye){var er=zu(H,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),fe.angle,Re),dr=this.paint.get("fill-extrusion-height").evaluate(pt,wt),Er=this.paint.get("fill-extrusion-base").evaluate(pt,wt),Ir=gp(er,Ye,fe,0),ui=Id(Dt,Er,dr,Ye),hi=ui[0],Yi=ui[1];return mp(hi,Yi,Ir)},R})(Xo);function Uf(y,R){return y.x*R.x+y.y*R.y}function Ts(y,R){if(y.length===1){for(var H=0,pt=R[H++],wt;!wt||pt.equals(wt);)if(wt=R[H++],!wt)return 1/0;for(;H=2&&y[Re-1].equals(y[Re-2]);)Re--;for(var Ye=0;Ye0;if(Da&&Gi>Ye){var hn=Er.dist(Ir);if(hn>2*er){var dn=Er.sub(Er.sub(Ir)._mult(er/hn)._round());this.updateDistance(Ir,dn),this.addCurrentVertex(dn,hi,0,0,dr),Ir=dn}}var bn=Ir&&ui,vn=bn?H:fe?"butt":pt;if(bn&&vn==="round"&&(vawt&&(vn="bevel"),vn==="bevel"&&(va>2&&(vn="flipbevel"),va100)ra=Yi.mult(-1);else{var qn=va*hi.add(Yi).mag()/hi.sub(Yi).mag();ra._perp()._mult(qn*(cn?-1:1))}this.addCurrentVertex(Er,ra,0,0,dr),this.addCurrentVertex(Er,ra.mult(-1),0,0,dr)}else if(vn==="bevel"||vn==="fakeround"){var wn=-Math.sqrt(va*va-1),An=cn?wn:0,go=cn?0:wn;if(Ir&&this.addCurrentVertex(Er,hi,An,go,dr),vn==="fakeround")for(var To=Math.round(La*180/Math.PI/qf),Lo=1;Lo2*er){var Fs=Er.add(ui.sub(Er)._mult(er/Rs)._round());this.updateDistance(Er,Fs),this.addCurrentVertex(Fs,Yi,0,0,dr),Er=Fs}}}}},vl.prototype.addCurrentVertex=function(y,R,H,pt,wt,Dt){Dt===void 0&&(Dt=!1);var Yt=R.x+R.y*H,fe=R.y-R.x*H,Re=-R.x+R.y*pt,Ye=-R.y-R.x*pt;this.addHalfVertex(y,Yt,fe,Dt,!1,H,wt),this.addHalfVertex(y,Re,Ye,Dt,!0,-pt,wt),this.distance>vp/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,R,H,pt,wt,Dt))},vl.prototype.addHalfVertex=function(y,R,H,pt,wt,Dt,Yt){var fe=y.x,Re=y.y,Ye=(this.lineClips?this.scaledDistance*(vp-1):this.scaledDistance)*Dd;if(this.layoutVertexArray.emplaceBack((fe<<1)+(pt?1:0),(Re<<1)+(wt?1:0),Math.round(Pd*R)+128,Math.round(Pd*H)+128,(Dt===0?0:Dt<0?-1:1)+1|(Ye&63)<<2,Ye>>6),this.lineClips){var er=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(er,this.lineClipsArray.length)}var dr=Yt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,dr),Yt.primitiveLength++),wt?this.e2=dr:this.e1=dr},vl.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},vl.prototype.updateDistance=function(y,R){this.distance+=y.dist(R),this.updateScaledDistance()},$a("LineBucket",vl,{omit:["layers","patternFeatures"]});var $p=new Ro({"line-cap":new an(hr.layout_line["line-cap"]),"line-join":new pn(hr.layout_line["line-join"]),"line-miter-limit":new an(hr.layout_line["line-miter-limit"]),"line-round-limit":new an(hr.layout_line["line-round-limit"]),"line-sort-key":new pn(hr.layout_line["line-sort-key"])}),Rd={paint:new Ro({"line-opacity":new pn(hr.paint_line["line-opacity"]),"line-color":new pn(hr.paint_line["line-color"]),"line-translate":new an(hr.paint_line["line-translate"]),"line-translate-anchor":new an(hr.paint_line["line-translate-anchor"]),"line-width":new pn(hr.paint_line["line-width"]),"line-gap-width":new pn(hr.paint_line["line-gap-width"]),"line-offset":new pn(hr.paint_line["line-offset"]),"line-blur":new pn(hr.paint_line["line-blur"]),"line-dasharray":new Pa(hr.paint_line["line-dasharray"]),"line-pattern":new ns(hr.paint_line["line-pattern"]),"line-gradient":new Yo(hr.paint_line["line-gradient"])}),layout:$p},Fd=new((function(y){function R(){y.apply(this,arguments)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.possiblyEvaluate=function(H,pt){return pt=new In(Math.floor(pt.zoom),{now:pt.now,fadeDuration:pt.fadeDuration,zoomHistory:pt.zoomHistory,transition:pt.transition}),y.prototype.possiblyEvaluate.call(this,H,pt)},R.prototype.evaluate=function(H,pt,wt,Dt){return pt=b({},pt,{zoom:Math.floor(pt.zoom)}),y.prototype.evaluate.call(this,H,pt,wt,Dt)},R})(pn))(Rd.paint.properties["line-width"].specification);Fd.useIntegerZoom=!0;var im=(function(y){function R(H){y.call(this,H,Rd),this.gradientVersion=0}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype._handleSpecialPaintPropertyUpdate=function(H){H==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ns,this.gradientVersion=(this.gradientVersion+1)%s)},R.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},R.prototype.recalculate=function(H,pt){y.prototype.recalculate.call(this,H,pt),this.paint._values["line-floorwidth"]=Fd.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,H)},R.prototype.createBucket=function(H){return new vl(H)},R.prototype.queryRadius=function(H){var pt=H,wt=Bd(Ks("line-width",this,pt),Ks("line-gap-width",this,pt)),Dt=Ks("line-offset",this,pt);return wt/2+Math.abs(Dt)+Pu(this.paint.get("line-translate"))},R.prototype.queryIntersectsFeature=function(H,pt,wt,Dt,Yt,fe,Re){var Ye=zu(H,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),fe.angle,Re),er=Re/2*Bd(this.paint.get("line-width").evaluate(pt,wt),this.paint.get("line-gap-width").evaluate(pt,wt)),dr=this.paint.get("line-offset").evaluate(pt,wt);return dr&&(Dt=am(Dt,dr*Re)),Po(Ye,Dt,er)},R.prototype.isTileClipped=function(){return!0},R})(Xo);function Bd(y,R){return R>0?R+2*y:y}function am(y,R){for(var H=[],pt=new i(0,0),wt=0;wt":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function gf(y){for(var R="",H=0;H>1,er=-7,dr=H?wt-1:0,Er=H?-1:1,Ir=y[R+dr];for(dr+=Er,Dt=Ir&(1<<-er)-1,Ir>>=-er,er+=fe;er>0;Dt=Dt*256+y[R+dr],dr+=Er,er-=8);for(Yt=Dt&(1<<-er)-1,Dt>>=-er,er+=pt;er>0;Yt=Yt*256+y[R+dr],dr+=Er,er-=8);if(Dt===0)Dt=1-Ye;else{if(Dt===Re)return Yt?NaN:(Ir?-1:1)*(1/0);Yt+=2**pt,Dt-=Ye}return(Ir?-1:1)*Yt*2**(Dt-pt)},write:function(y,R,H,pt,wt,Dt){var Yt,fe,Re,Ye=Dt*8-wt-1,er=(1<>1,Er=wt===23?2**-24-2**-77:0,Ir=pt?0:Dt-1,ui=pt?1:-1,hi=R<0||R===0&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(fe=isNaN(R)?1:0,Yt=er):(Yt=Math.floor(Math.log(R)/Math.LN2),R*(Re=2**-Yt)<1&&(Yt--,Re*=2),Yt+dr>=1?R+=Er/Re:R+=Er*2**(1-dr),R*Re>=2&&(Yt++,Re/=2),Yt+dr>=er?(fe=0,Yt=er):Yt+dr>=1?(fe=(R*Re-1)*2**wt,Yt+=dr):(fe=R*2**(dr-1)*2**wt,Yt=0));wt>=8;y[H+Ir]=fe&255,Ir+=ui,fe/=256,wt-=8);for(Yt=Yt<0;y[H+Ir]=Yt&255,Ir+=ui,Yt/=256,Ye-=8);y[H+Ir-ui]|=hi*128}},_p=qo;function qo(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}qo.Varint=0,qo.Fixed64=1,qo.Bytes=2,qo.Fixed32=5;var Jp=65536*65536,Kp=1/Jp,jd=12,Ud=typeof TextDecoder>"u"?null:new TextDecoder("utf8");qo.prototype={destroy:function(){this.buf=null},readFields:function(y,R,H){for(H||(H=this.length);this.pos>3,Dt=this.pos;this.type=pt&7,y(wt,R,this),this.pos===Dt&&this.skip(pt)}return R},readMessage:function(y,R){return this.readFields(y,R,this.readVarint()+this.pos)},readFixed32:function(){var y=Zf(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=Vd(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=Zf(this.buf,this.pos)+Zf(this.buf,this.pos+4)*Jp;return this.pos+=8,y},readSFixed64:function(){var y=Zf(this.buf,this.pos)+Vd(this.buf,this.pos+4)*Jp;return this.pos+=8,y},readFloat:function(){var y=xp.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=xp.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var R=this.buf,H,pt=R[this.pos++];return H=pt&127,pt<128||(pt=R[this.pos++],H|=(pt&127)<<7,pt<128)||(pt=R[this.pos++],H|=(pt&127)<<14,pt<128)||(pt=R[this.pos++],H|=(pt&127)<<21,pt<128)?H:(pt=R[this.pos],H|=(pt&15)<<28,um(H,y,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2==1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,R=this.pos;return this.pos=y,y-R>=jd&&Ud?bm(this.buf,R,y):_m(this.buf,R,y)},readBytes:function(){var y=this.readVarint()+this.pos,R=this.buf.subarray(this.pos,y);return this.pos=y,R},readPackedVarint:function(y,R){if(this.type!==qo.Bytes)return y.push(this.readVarint(R));var H=Ch(this);for(y||(y=[]);this.pos127;);else if(R===qo.Bytes)this.pos=this.readVarint()+this.pos;else if(R===qo.Fixed32)this.pos+=4;else if(R===qo.Fixed64)this.pos+=8;else throw Error("Unimplemented type: "+R)},writeTag:function(y,R){this.writeVarint(y<<3|R)},realloc:function(y){for(var R=this.length||16;R268435455||y<0){hm(y,this);return}this.realloc(4),this.buf[this.pos++]=y&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=y>>>7&127)))},writeSVarint:function(y){this.writeVarint(y<0?-y*2-1:y*2)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(y.length*4),this.pos++;var R=this.pos;this.pos=ag(this.buf,y,this.pos);var H=this.pos-R;H>=128&&bp(R,H,this),this.pos=R-1,this.writeVarint(H),this.pos+=H},writeFloat:function(y){this.realloc(4),xp.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),xp.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var R=y.length;this.writeVarint(R),this.realloc(R);for(var H=0;H=128&&bp(H,pt,this),this.pos=H-1,this.writeVarint(pt),this.pos+=pt},writeMessage:function(y,R,H){this.writeTag(y,qo.Bytes),this.writeRawMessage(R,H)},writePackedVarint:function(y,R){R.length&&this.writeMessage(y,Hf,R)},writePackedSVarint:function(y,R){R.length&&this.writeMessage(y,Qp,R)},writePackedBoolean:function(y,R){R.length&&this.writeMessage(y,gm,R)},writePackedFloat:function(y,R){R.length&&this.writeMessage(y,dm,R)},writePackedDouble:function(y,R){R.length&&this.writeMessage(y,mm,R)},writePackedFixed32:function(y,R){R.length&&this.writeMessage(y,ym,R)},writePackedSFixed32:function(y,R){R.length&&this.writeMessage(y,vm,R)},writePackedFixed64:function(y,R){R.length&&this.writeMessage(y,xm,R)},writePackedSFixed64:function(y,R){R.length&&this.writeMessage(y,Gf,R)},writeBytesField:function(y,R){this.writeTag(y,qo.Bytes),this.writeBytes(R)},writeFixed32Field:function(y,R){this.writeTag(y,qo.Fixed32),this.writeFixed32(R)},writeSFixed32Field:function(y,R){this.writeTag(y,qo.Fixed32),this.writeSFixed32(R)},writeFixed64Field:function(y,R){this.writeTag(y,qo.Fixed64),this.writeFixed64(R)},writeSFixed64Field:function(y,R){this.writeTag(y,qo.Fixed64),this.writeSFixed64(R)},writeVarintField:function(y,R){this.writeTag(y,qo.Varint),this.writeVarint(R)},writeSVarintField:function(y,R){this.writeTag(y,qo.Varint),this.writeSVarint(R)},writeStringField:function(y,R){this.writeTag(y,qo.Bytes),this.writeString(R)},writeFloatField:function(y,R){this.writeTag(y,qo.Fixed32),this.writeFloat(R)},writeDoubleField:function(y,R){this.writeTag(y,qo.Fixed64),this.writeDouble(R)},writeBooleanField:function(y,R){this.writeVarintField(y,!!R)}};function um(y,R,H){var pt=H.buf,wt,Dt=pt[H.pos++];if(wt=(Dt&112)>>4,Dt<128||(Dt=pt[H.pos++],wt|=(Dt&127)<<3,Dt<128)||(Dt=pt[H.pos++],wt|=(Dt&127)<<10,Dt<128)||(Dt=pt[H.pos++],wt|=(Dt&127)<<17,Dt<128)||(Dt=pt[H.pos++],wt|=(Dt&127)<<24,Dt<128)||(Dt=pt[H.pos++],wt|=(Dt&1)<<31,Dt<128))return cm(y,wt,R);throw Error("Expected varint not more than 10 bytes")}function Ch(y){return y.type===qo.Bytes?y.readVarint()+y.pos:y.pos+1}function cm(y,R,H){return H?R*4294967296+(y>>>0):(R>>>0)*4294967296+(y>>>0)}function hm(y,R){var H,pt;if(y>=0?(H=y%4294967296|0,pt=y/4294967296|0):(H=~(-y%4294967296),pt=~(-y/4294967296),H^4294967295?H=H+1|0:(H=0,pt=pt+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw Error("Given varint doesn't fit into 10 bytes");R.realloc(10),fm(H,pt,R),pm(pt,R)}function fm(y,R,H){H.buf[H.pos++]=y&127|128,y>>>=7,H.buf[H.pos++]=y&127|128,y>>>=7,H.buf[H.pos++]=y&127|128,y>>>=7,H.buf[H.pos++]=y&127|128,y>>>=7,H.buf[H.pos]=y&127}function pm(y,R){var H=(y&7)<<4;R.buf[R.pos++]|=H|((y>>>=3)?128:0),y&&(R.buf[R.pos++]=y&127|((y>>>=7)?128:0),y&&(R.buf[R.pos++]=y&127|((y>>>=7)?128:0),y&&(R.buf[R.pos++]=y&127|((y>>>=7)?128:0),y&&(R.buf[R.pos++]=y&127|((y>>>=7)?128:0),y&&(R.buf[R.pos++]=y&127)))))}function bp(y,R,H){var pt=R<=16383?1:R<=2097151?2:R<=268435455?3:Math.floor(Math.log(R)/(Math.LN2*7));H.realloc(pt);for(var wt=H.pos-1;wt>=y;wt--)H.buf[wt+pt]=H.buf[wt]}function Hf(y,R){for(var H=0;H>>8,y[H+2]=R>>>16,y[H+3]=R>>>24}function Vd(y,R){return(y[R]|y[R+1]<<8|y[R+2]<<16)+(y[R+3]<<24)}function _m(y,R,H){for(var pt="",wt=R;wt239?4:Dt>223?3:Dt>191?2:1;if(wt+fe>H)break;var Re,Ye,er;fe===1?Dt<128&&(Yt=Dt):fe===2?(Re=y[wt+1],(Re&192)==128&&(Yt=(Dt&31)<<6|Re&63,Yt<=127&&(Yt=null))):fe===3?(Re=y[wt+1],Ye=y[wt+2],(Re&192)==128&&(Ye&192)==128&&(Yt=(Dt&15)<<12|(Re&63)<<6|Ye&63,(Yt<=2047||Yt>=55296&&Yt<=57343)&&(Yt=null))):fe===4&&(Re=y[wt+1],Ye=y[wt+2],er=y[wt+3],(Re&192)==128&&(Ye&192)==128&&(er&192)==128&&(Yt=(Dt&15)<<18|(Re&63)<<12|(Ye&63)<<6|er&63,(Yt<=65535||Yt>=1114112)&&(Yt=null))),Yt===null?(Yt=65533,fe=1):Yt>65535&&(Yt-=65536,pt+=String.fromCharCode(Yt>>>10&1023|55296),Yt=56320|Yt&1023),pt+=String.fromCharCode(Yt),wt+=fe}return pt}function bm(y,R,H){return Ud.decode(y.subarray(R,H))}function ag(y,R,H){for(var pt=0,wt,Dt;pt55295&&wt<57344)if(Dt)if(wt<56320){y[H++]=239,y[H++]=191,y[H++]=189,Dt=wt;continue}else wt=Dt-55296<<10|wt-56320|65536,Dt=null;else{wt>56319||pt+1===R.length?(y[H++]=239,y[H++]=191,y[H++]=189):Dt=wt;continue}else Dt&&(Dt=(y[H++]=239,y[H++]=191,y[H++]=189,null));wt<128?y[H++]=wt:(wt<2048?y[H++]=wt>>6|192:(wt<65536?y[H++]=wt>>12|224:(y[H++]=wt>>18|240,y[H++]=wt>>12&63|128),y[H++]=wt>>6&63|128),y[H++]=wt&63|128)}return H}var qd=3;function wm(y,R,H){y===1&&H.readMessage(ng,R)}function ng(y,R,H){if(y===3){var pt=H.readMessage(og,{}),wt=pt.id,Dt=pt.bitmap,Yt=pt.width,fe=pt.height,Re=pt.left,Ye=pt.top,er=pt.advance;R.push({id:wt,bitmap:new Eh({width:Yt+2*qd,height:fe+2*qd},Dt),metrics:{width:Yt,height:fe,left:Re,top:Ye,advance:er}})}}function og(y,R,H){y===1?R.id=H.readVarint():y===2?R.bitmap=H.readBytes():y===3?R.width=H.readVarint():y===4?R.height=H.readVarint():y===5?R.left=H.readSVarint():y===6?R.top=H.readSVarint():y===7&&(R.advance=H.readVarint())}function Tm(y){return new _p(y).readFields(wm,[])}var Hd=qd;function td(y){for(var R=0,H=0,pt=0,wt=y;pt=0;Er--){var Ir=Yt[Er];if(!(dr.w>Ir.w||dr.h>Ir.h)){if(dr.x=Ir.x,dr.y=Ir.y,Re=Math.max(Re,dr.y+dr.h),fe=Math.max(fe,dr.x+dr.w),dr.w===Ir.w&&dr.h===Ir.h){var ui=Yt.pop();Er=0&&pt>=y&&gh[this.text.charCodeAt(pt)];pt--)H--;this.text=this.text.substring(y,H),this.sectionIndex=this.sectionIndex.slice(y,H)},xl.prototype.substring=function(y,R){var H=new xl;return H.text=this.text.substring(y,R),H.sectionIndex=this.sectionIndex.slice(y,R),H.sections=this.sections,H},xl.prototype.toString=function(){return this.text},xl.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(R,H){return Math.max(R,y.sections[H].scale)},0)},xl.prototype.addTextSection=function(y,R){this.text+=y.text,this.sections.push(xf.forText(y.scale,y.fontStack||R));for(var H=this.sections.length-1,pt=0;pt=$f?null:++this.imageSectionID:(this.imageSectionID=Zd,this.imageSectionID)};function km(y,R){for(var H=[],pt=y.text,wt=0,Dt=0,Yt=R;Dt=0,er=0,dr=0;dr0&&Fo>hn&&(hn=Fo)}else{var is=H[bn.fontStack],ks=is&&is[qn];if(ks&&ks.rect)go=ks.rect,An=ks.metrics;else{var Rs=R[bn.fontStack],Fs=Rs&&Rs[qn];if(!Fs)continue;An=Fs.metrics}wn=(va-bn.scale)*ll}_o?(y.verticalizable=!0,cn.push({glyph:qn,imageName:To,x:Er,y:Ir+wn,vertical:_o,scale:bn.scale,fontStack:bn.fontStack,sectionIndex:vn,metrics:An,rect:go}),Er+=Lo*bn.scale+Ye):(cn.push({glyph:qn,imageName:To,x:Er,y:Ir+wn,vertical:_o,scale:bn.scale,fontStack:bn.fontStack,sectionIndex:vn,metrics:An,rect:go}),Er+=An.advance*bn.scale+Ye)}if(cn.length!==0){var ql=Er-Ye;ui=Math.max(ql,ui),Tp(cn,0,cn.length-1,Yi,hn)}Er=0;var _l=Dt*va+hn;Da.lineOffset=Math.max(hn,La),Ir+=_l,hi=Math.max(_l,hi),++Gi}var tl=Ir-Xf,bl=Jf(Yt),wl=bl.horizontalAlign,ul=bl.verticalAlign;Ho(y.positionedLines,Yi,wl,ul,ui,hi,Dt,tl,wt.length),y.top+=-ul*tl,y.bottom=y.top+tl,y.left+=-wl*ui,y.right=y.left+ui}function Tp(y,R,H,pt,wt){if(!(!pt&&!wt))for(var Dt=y[H],Yt=Dt.metrics.advance*Dt.scale,fe=(y[H].x+Yt)*pt,Re=R;Re<=H;Re++)y[Re].x-=fe,y[Re].y+=wt}function Ho(y,R,H,pt,wt,Dt,Yt,fe,Re){var Ye=(R-H)*wt,er=0;er=Dt===Yt?(-pt*Re+.5)*Yt:-fe*pt-Xf;for(var dr=0,Er=y;dr-H/2;){if(Yt--,Yt<0)return!1;fe-=y[Yt].dist(Dt),Dt=y[Yt]}fe+=y[Yt].dist(y[Yt+1]),Yt++;for(var Re=[],Ye=0;fept;)Ye-=Re.shift().angleDelta;if(Ye>wt)return!1;Yt++,fe+=dr.dist(Er)}return!0}function Qd(y){for(var R=0,H=0;HYe){var ui=(Ye-Re)/Ir,hi=new bf(Zo(dr.x,Er.x,ui),Zo(dr.y,Er.y,ui),Er.angleTo(dr),er);return hi._round(),!Yt||Kd(y,hi,fe,Yt,R)?hi:void 0}Re+=Ir}}function Cm(y,R,H,pt,wt,Dt,Yt,fe,Re){var Ye=ad(pt,Dt,Yt),er=t0(pt,wt),dr=er*Yt,Er=y[0].x===0||y[0].x===Re||y[0].y===0||y[0].y===Re;R-dr=0&&ta=0&&va=0&&Er+Ye<=er){var La=new bf(ta,va,ra,ui);La._round(),(!pt||Kd(y,La,Dt,pt,wt))&&Ir.push(La)}}dr+=Gi}return!fe&&!Ir.length&&!Yt&&(Ir=e0(y,dr/2,H,pt,wt,Dt,Yt,!0,Re)),Ir}function r0(y,R,H,pt,wt){for(var Dt=[],Yt=0;Yt=pt&&dr.x>=pt)&&(er.x>=pt?er=new i(pt,er.y+(dr.y-er.y)*((pt-er.x)/(dr.x-er.x)))._round():dr.x>=pt&&(dr=new i(pt,er.y+(dr.y-er.y)*((pt-er.x)/(dr.x-er.x)))._round()),!(er.y>=wt&&dr.y>=wt)&&(er.y>=wt?er=new i(er.x+(dr.x-er.x)*((wt-er.y)/(dr.y-er.y)),wt)._round():dr.y>=wt&&(dr=new i(er.x+(dr.x-er.x)*((wt-er.y)/(dr.y-er.y)),wt)._round()),(!Re||!er.equals(Re[Re.length-1]))&&(Re=[er],Dt.push(Re)),Re.push(dr)))))}return Dt}var wf=mu;function i0(y,R,H,pt){var wt=[],Dt=y.image,Yt=Dt.pixelRatio,fe=Dt.paddedRect.w-2*wf,Re=Dt.paddedRect.h-2*wf,Ye=y.right-y.left,er=y.bottom-y.top,dr=Dt.stretchX||[[0,fe]],Er=Dt.stretchY||[[0,Re]],Ir=function(Io,Jn){return Io+Jn[1]-Jn[0]},ui=dr.reduce(Ir,0),hi=Er.reduce(Ir,0),Yi=fe-ui,Gi=Re-hi,ra=0,la=ui,ta=0,va=hi,La=0,Da=Yi,cn=0,hn=Gi;if(Dt.content&&pt){var dn=Dt.content;ra=kp(dr,0,dn[0]),ta=kp(Er,0,dn[1]),la=kp(dr,dn[0],dn[2]),va=kp(Er,dn[1],dn[3]),La=dn[0]-ra,cn=dn[1]-ta,Da=dn[2]-dn[0]-la,hn=dn[3]-dn[1]-va}var bn=function(Io,Jn,Fo,is){var ks=ef(Io.stretch-ra,la,Ye,y.left),Rs=Lh(Io.fixed-La,Da,Io.stretch,ui),Fs=ef(Jn.stretch-ta,va,er,y.top),ql=Lh(Jn.fixed-cn,hn,Jn.stretch,hi),_l=ef(Fo.stretch-ra,la,Ye,y.left),tl=Lh(Fo.fixed-La,Da,Fo.stretch,ui),bl=ef(is.stretch-ta,va,er,y.top),wl=Lh(is.fixed-cn,hn,is.stretch,hi),ul=new i(ks,Fs),Tl=new i(_l,Fs),Ql=new i(_l,bl),wc=new i(ks,bl),Hh=new i(Rs/Yt,ql/Yt),rh=new i(tl/Yt,wl/Yt),xh=R*Math.PI/180;if(xh){var _h=Math.sin(xh),Gh=Math.cos(xh),Dc=[Gh,-_h,_h,Gh];ul._matMult(Dc),Tl._matMult(Dc),wc._matMult(Dc),Ql._matMult(Dc)}var zp=Io.stretch+Io.fixed,D=Fo.stretch+Fo.fixed,z=Jn.stretch+Jn.fixed,q=is.stretch+is.fixed;return{tl:ul,tr:Tl,bl:wc,br:Ql,tex:{x:Dt.paddedRect.x+wf+zp,y:Dt.paddedRect.y+wf+z,w:D-zp,h:q-z},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Hh,pixelOffsetBR:rh,minFontScaleX:Da/Yt/Ye,minFontScaleY:hn/Yt/er,isSDF:H}};if(!pt||!Dt.stretchX&&!Dt.stretchY)wt.push(bn({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:fe+1},{fixed:0,stretch:Re+1}));else for(var vn=a0(dr,Yi,ui),qn=a0(Er,Gi,hi),wn=0;wn0&&(Ir=Math.max(10,Ir),this.circleDiameter=Ir)}else{var ui=Dt.top*Yt-fe,hi=Dt.bottom*Yt+fe,Yi=Dt.left*Yt-fe,Gi=Dt.right*Yt+fe,ra=Dt.collisionPadding;if(ra&&(Yi-=ra[0]*Yt,ui-=ra[1]*Yt,Gi+=ra[2]*Yt,hi+=ra[3]*Yt),Ye){var la=new i(Yi,ui),ta=new i(Gi,ui),va=new i(Yi,hi),La=new i(Gi,hi),Da=Ye*Math.PI/180;la._rotate(Da),ta._rotate(Da),va._rotate(Da),La._rotate(Da),Yi=Math.min(la.x,ta.x,va.x,La.x),Gi=Math.max(la.x,ta.x,va.x,La.x),ui=Math.min(la.y,ta.y,va.y,La.y),hi=Math.max(la.y,ta.y,va.y,La.y)}y.emplaceBack(R.x,R.y,Yi,ui,Gi,hi,H,pt,wt)}this.boxEndIndex=y.length},Tf=function(y,R){if(y===void 0&&(y=[]),R===void 0&&(R=Lm),this.data=y,this.length=this.data.length,this.compare=R,this.length>0)for(var H=(this.length>>1)-1;H>=0;H--)this._down(H)};Tf.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},Tf.prototype.pop=function(){if(this.length!==0){var y=this.data[0],R=this.data.pop();return this.length--,this.length>0&&(this.data[0]=R,this._down(0)),y}},Tf.prototype.peek=function(){return this.data[0]},Tf.prototype._up=function(y){for(var R=this,H=R.data,pt=R.compare,wt=H[y];y>0;){var Dt=y-1>>1,Yt=H[Dt];if(pt(wt,Yt)>=0)break;H[y]=Yt,y=Dt}H[y]=wt},Tf.prototype._down=function(y){for(var R=this,H=R.data,pt=R.compare,wt=this.length>>1,Dt=H[y];y=0)break;H[y]=fe,y=Yt}H[y]=Dt};function Lm(y,R){return yR?1:0}function nd(y,R,H){R===void 0&&(R=1),H===void 0&&(H=!1);for(var pt=1/0,wt=1/0,Dt=-1/0,Yt=-1/0,fe=y[0],Re=0;ReDt)&&(Dt=Ye.x),(!Re||Ye.y>Yt)&&(Yt=Ye.y)}var er=Dt-pt,dr=Yt-wt,Er=Math.min(er,dr),Ir=Er/2,ui=new Tf([],Im);if(Er===0)return new i(pt,wt);for(var hi=pt;hiGi.d||!Gi.d)&&(Gi=la,H&&console.log("found best %d after %d probes",Math.round(1e4*la.d)/1e4,ra)),!(la.max-Gi.d<=R)&&(Ir=la.h/2,ui.push(new kf(la.p.x-Ir,la.p.y-Ir,Ir,y)),ui.push(new kf(la.p.x+Ir,la.p.y-Ir,Ir,y)),ui.push(new kf(la.p.x-Ir,la.p.y+Ir,Ir,y)),ui.push(new kf(la.p.x+Ir,la.p.y+Ir,Ir,y)),ra+=4)}return H&&(console.log("num probes: "+ra),console.log("best distance: "+Gi.d)),Gi.p}function Im(y,R){return R.max-y.max}function kf(y,R,H,pt){this.p=new i(y,R),this.h=H,this.d=Pm(this.p,pt),this.max=this.d+this.h*Math.SQRT2}function Pm(y,R){for(var H=!1,pt=1/0,wt=0;wty.y!=er.y>y.y&&y.x<(er.x-Ye.x)*(y.y-Ye.y)/(er.y-Ye.y)+Ye.x&&(H=!H),pt=Math.min(pt,Ic(y,Ye,er))}return(H?1:-1)*Math.sqrt(pt)}function zm(y){for(var R=0,H=0,pt=0,wt=y[0],Dt=0,Yt=wt.length,fe=Yt-1;Dt=Ka||Dc.y<0||Dc.y>=Ka||Sp(y,Dc,Gh,H,pt,wt,qn,y.layers[0],y.collisionBoxArray,R.index,R.sourceLayerIndex,y.index,Gi,va,cn,Re,la,La,hn,Ir,R,Dt,Ye,er,Yt)};if(dn==="line")for(var An=0,go=r0(R.geometry,0,0,Ka,Ka);An1){var Fs=Em(Rs,Da,H.vertical||ui,pt,hi,ra);Fs&&wn(Rs,Fs)}}else if(R.type==="Polygon")for(var ql=0,_l=Hp(R.geometry,0);ql<_l.length;ql+=1){var tl=_l[ql],bl=nd(tl,16);wn(tl[0],new bf(bl.x,bl.y,0))}else if(R.type==="LineString")for(var wl=0,ul=R.geometry;wlbc&&P(y.layerIds[0]+': Value for "text-size" is >= '+Ih+'. Reduce your "text-size".')):Yi.kind==="composite"&&(Gi=[Oc*Ir.compositeTextSizes[0].evaluate(Yt,{},ui),Oc*Ir.compositeTextSizes[1].evaluate(Yt,{},ui)],(Gi[0]>bc||Gi[1]>bc)&&P(y.layerIds[0]+': Value for "text-size" is >= '+Ih+'. Reduce your "text-size".')),y.addSymbols(y.text,hi,Gi,fe,Dt,Yt,Ye,R,Re.lineStartIndex,Re.lineLength,Er,ui);for(var ra=0,la=er;rabc&&P(y.layerIds[0]+': Value for "icon-size" is >= '+Ih+'. Reduce your "icon-size".')):wl.kind==="composite"&&(ul=[Oc*va.compositeIconSizes[0].evaluate(ta,{},Da),Oc*va.compositeIconSizes[1].evaluate(ta,{},Da)],(ul[0]>bc||ul[1]>bc)&&P(y.layerIds[0]+': Value for "icon-size" is >= '+Ih+'. Reduce your "icon-size".')),y.addSymbols(y.icon,tl,ul,la,ra,ta,!1,R,dn.lineStartIndex,dn.lineLength,-1,Da),_o=y.icon.placedSymbolArray.length-1,bl&&(go=bl.length*4,y.addSymbols(y.icon,bl,ul,la,ra,ta,Qu.vertical,R,dn.lineStartIndex,dn.lineLength,-1,Da),Io=y.icon.placedSymbolArray.length-1)}for(var Tl in pt.horizontal){var Ql=pt.horizontal[Tl];bn||(bn=(Fo=$(Ql.text),new Ap(Re,R,Ye,er,dr,Ql,Er,Ir,ui,fe.layout.get("text-rotate").evaluate(ta,{},Da))));var wc=Ql.positionedLines.length===1;if(To+=s0(y,R,Ql,Dt,fe,ui,ta,hi,dn,pt.vertical?Qu.horizontal:Qu.horizontalOnly,wc?Object.keys(pt.horizontal):[Tl],Jn,_o,va,Da),wc)break}pt.vertical&&(Lo+=s0(y,R,pt.vertical,Dt,fe,ui,ta,hi,dn,Qu.vertical,["vertical"],Jn,Io,va,Da));var Hh=bn?bn.boxStartIndex:y.collisionBoxArray.length,rh=bn?bn.boxEndIndex:y.collisionBoxArray.length,xh=qn?qn.boxStartIndex:y.collisionBoxArray.length,_h=qn?qn.boxEndIndex:y.collisionBoxArray.length,Gh=vn?vn.boxStartIndex:y.collisionBoxArray.length,Dc=vn?vn.boxEndIndex:y.collisionBoxArray.length,zp=wn?wn.boxStartIndex:y.collisionBoxArray.length,D=wn?wn.boxEndIndex:y.collisionBoxArray.length,z=-1,q=function(vt,Pt){return vt&&vt.circleDiameter?Math.max(vt.circleDiameter,Pt):Pt};z=q(bn,z),z=q(qn,z),z=q(vn,z),z=q(wn,z);var ht=z>-1?1:0;ht&&(z*=cn/ll),y.glyphOffsetArray.length>=Co.MAX_GLYPHS&&P("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),ta.sortKey!==void 0&&y.addToSortKeyRanges(y.symbolInstances.length,ta.sortKey),y.symbolInstances.emplaceBack(R.x,R.y,Jn.right>=0?Jn.right:-1,Jn.center>=0?Jn.center:-1,Jn.left>=0?Jn.left:-1,Jn.vertical||-1,_o,Io,Fo,Hh,rh,xh,_h,Gh,Dc,zp,D,Ye,To,Lo,An,go,ht,0,Er,is,ks,z)}function Dm(y,R,H,pt){var wt=y.compareText;if(!(R in wt))wt[R]=[];else for(var Dt=wt[R],Yt=Dt.length-1;Yt>=0;Yt--)if(pt.dist(Dt[Yt])0)&&(Dt.value.kind!=="constant"||Dt.value.value.length>0),Ye=fe.value.kind!=="constant"||!!fe.value.value||Object.keys(fe.parameters).length>0,er=wt.get("symbol-sort-key");if(this.features=[],!(!Re&&!Ye)){for(var dr=R.iconDependencies,Er=R.glyphDependencies,Ir=R.availableImages,ui=new In(this.zoom),hi=0,Yi=y;hi=0;for(var To=0,Lo=cn.sections;To=0;fe--)Dt[fe]={x:R[fe].x,y:R[fe].y,tileUnitDistanceFromAnchor:wt},fe>0&&(wt+=R[fe-1].dist(R[fe]));for(var Re=0;Re0},Co.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Co.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Co.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Co.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Co.prototype.addIndicesForPlacedSymbol=function(y,R){for(var H=y.placedSymbolArray.get(R),pt=H.vertexStartIndex+H.numGlyphs*4,wt=H.vertexStartIndex;wt1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var H=0,pt=this.symbolInstanceIndexes;H=0&&Re.indexOf(Yt)===fe&&R.addIndicesForPlacedSymbol(R.text,Yt)}),Dt.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Dt.verticalPlacedTextSymbolIndex),Dt.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Dt.placedIconSymbolIndex),Dt.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Dt.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},$a("SymbolBucket",Co,{omit:["layers","collisionBoxArray","features","compareText"]}),Co.MAX_GLYPHS=65535,Co.addDynamicAttributes=Cp;function sd(y,R){return R.replace(/{([^{}]+)}/g,function(H,pt){return pt in y?String(y[pt]):""})}var Bm=new Ro({"symbol-placement":new an(hr.layout_symbol["symbol-placement"]),"symbol-spacing":new an(hr.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new an(hr.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new pn(hr.layout_symbol["symbol-sort-key"]),"symbol-z-order":new an(hr.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new an(hr.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new an(hr.layout_symbol["icon-ignore-placement"]),"icon-optional":new an(hr.layout_symbol["icon-optional"]),"icon-rotation-alignment":new an(hr.layout_symbol["icon-rotation-alignment"]),"icon-size":new pn(hr.layout_symbol["icon-size"]),"icon-text-fit":new an(hr.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new an(hr.layout_symbol["icon-text-fit-padding"]),"icon-image":new pn(hr.layout_symbol["icon-image"]),"icon-rotate":new pn(hr.layout_symbol["icon-rotate"]),"icon-padding":new an(hr.layout_symbol["icon-padding"]),"icon-keep-upright":new an(hr.layout_symbol["icon-keep-upright"]),"icon-offset":new pn(hr.layout_symbol["icon-offset"]),"icon-anchor":new pn(hr.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new an(hr.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new an(hr.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new an(hr.layout_symbol["text-rotation-alignment"]),"text-field":new pn(hr.layout_symbol["text-field"]),"text-font":new pn(hr.layout_symbol["text-font"]),"text-size":new pn(hr.layout_symbol["text-size"]),"text-max-width":new pn(hr.layout_symbol["text-max-width"]),"text-line-height":new an(hr.layout_symbol["text-line-height"]),"text-letter-spacing":new pn(hr.layout_symbol["text-letter-spacing"]),"text-justify":new pn(hr.layout_symbol["text-justify"]),"text-radial-offset":new pn(hr.layout_symbol["text-radial-offset"]),"text-variable-anchor":new an(hr.layout_symbol["text-variable-anchor"]),"text-anchor":new pn(hr.layout_symbol["text-anchor"]),"text-max-angle":new an(hr.layout_symbol["text-max-angle"]),"text-writing-mode":new an(hr.layout_symbol["text-writing-mode"]),"text-rotate":new pn(hr.layout_symbol["text-rotate"]),"text-padding":new an(hr.layout_symbol["text-padding"]),"text-keep-upright":new an(hr.layout_symbol["text-keep-upright"]),"text-transform":new pn(hr.layout_symbol["text-transform"]),"text-offset":new pn(hr.layout_symbol["text-offset"]),"text-allow-overlap":new an(hr.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new an(hr.layout_symbol["text-ignore-placement"]),"text-optional":new an(hr.layout_symbol["text-optional"])}),ld={paint:new Ro({"icon-opacity":new pn(hr.paint_symbol["icon-opacity"]),"icon-color":new pn(hr.paint_symbol["icon-color"]),"icon-halo-color":new pn(hr.paint_symbol["icon-halo-color"]),"icon-halo-width":new pn(hr.paint_symbol["icon-halo-width"]),"icon-halo-blur":new pn(hr.paint_symbol["icon-halo-blur"]),"icon-translate":new an(hr.paint_symbol["icon-translate"]),"icon-translate-anchor":new an(hr.paint_symbol["icon-translate-anchor"]),"text-opacity":new pn(hr.paint_symbol["text-opacity"]),"text-color":new pn(hr.paint_symbol["text-color"],{runtimeType:ua,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new pn(hr.paint_symbol["text-halo-color"]),"text-halo-width":new pn(hr.paint_symbol["text-halo-width"]),"text-halo-blur":new pn(hr.paint_symbol["text-halo-blur"]),"text-translate":new an(hr.paint_symbol["text-translate"]),"text-translate-anchor":new an(hr.paint_symbol["text-translate-anchor"])}),layout:Bm},Mf=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:Zr,this.defaultValue=y};Mf.prototype.evaluate=function(y){if(y.formattedSection){var R=this.defaultValue.property.overrides;if(R&&R.hasOverride(y.formattedSection))return R.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},Mf.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var R=this.defaultValue.value;y(R._styleExpression.expression)}},Mf.prototype.outputDefined=function(){return!1},Mf.prototype.serialize=function(){return null},$a("FormatSectionOverride",Mf,{omit:["defaultValue"]});var Nm=(function(y){function R(H){y.call(this,H,ld)}return y&&(R.__proto__=y),R.prototype=Object.create(y&&y.prototype),R.prototype.constructor=R,R.prototype.recalculate=function(H,pt){if(y.prototype.recalculate.call(this,H,pt),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["icon-rotation-alignment"]="viewport":this.layout._values["icon-rotation-alignment"]="map"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var wt=this.layout.get("text-writing-mode");if(wt){for(var Dt=[],Yt=0,fe=wt;Yt",targetMapId:pt,sourceMapId:Dt.mapId})}}},Ef.prototype.receive=function(y){var R=y.data,H=R.id;if(H&&!(R.targetMapId&&this.mapId!==R.targetMapId))if(R.type===""){delete this.tasks[H];var pt=this.cancelCallbacks[H];delete this.cancelCallbacks[H],pt&&pt()}else K()||R.mustQueue?(this.tasks[H]=R,this.taskQueue.push(H),this.invoker.trigger()):this.processTask(H,R)},Ef.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),R=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),R&&this.processTask(y,R)}},Ef.prototype.processTask=function(y,R){var H=this;if(R.type===""){var pt=this.callbacks[y];delete this.callbacks[y],pt&&(R.error?pt(ce(R.error)):pt(null,ce(R.data)))}else{var wt=!1,Dt=ct(this.globalScope)?void 0:[],Yt=R.hasCallback?function(er,dr){wt=!0,delete H.cancelCallbacks[y],H.target.postMessage({id:y,type:"",sourceMapId:H.mapId,error:er?se(er):null,data:se(dr,Dt)},Dt)}:function(er){wt=!0},fe=null,Re=ce(R.data);if(this.parent[R.type])fe=this.parent[R.type](R.sourceMapId,Re,Yt);else if(this.parent.getWorkerSource){var Ye=R.type.split(".");fe=this.parent.getWorkerSource(R.sourceMapId,Ye[0],Re.source)[Ye[1]](Re,Yt)}else Yt(Error("Could not find function "+R.type));!wt&&fe&&fe.cancel&&(this.cancelCallbacks[y]=fe.cancel)}},Ef.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function qm(y,R,H){R=2**H-R-1;var pt=d0(y*256,R*256,H),wt=d0((y+1)*256,(R+1)*256,H);return pt[0]+","+pt[1]+","+wt[0]+","+wt[1]}function d0(y,R,H){var pt=2*Math.PI*6378137/256/2**H;return[y*pt-2*Math.PI*6378137/2,R*pt-2*Math.PI*6378137/2]}var Os=function(y,R){y&&(R?this.setSouthWest(y).setNorthEast(R):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};Os.prototype.setNorthEast=function(y){return this._ne=y instanceof Go?new Go(y.lng,y.lat):Go.convert(y),this},Os.prototype.setSouthWest=function(y){return this._sw=y instanceof Go?new Go(y.lng,y.lat):Go.convert(y),this},Os.prototype.extend=function(y){var R=this._sw,H=this._ne,pt,wt;if(y instanceof Go)pt=y,wt=y;else if(y instanceof Os){if(pt=y._sw,wt=y._ne,!pt||!wt)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var Dt=y;return this.extend(Os.convert(Dt))}else{var Yt=y;return this.extend(Go.convert(Yt))}return this}return!R&&!H?(this._sw=new Go(pt.lng,pt.lat),this._ne=new Go(wt.lng,wt.lat)):(R.lng=Math.min(pt.lng,R.lng),R.lat=Math.min(pt.lat,R.lat),H.lng=Math.max(wt.lng,H.lng),H.lat=Math.max(wt.lat,H.lat)),this},Os.prototype.getCenter=function(){return new Go((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Os.prototype.getSouthWest=function(){return this._sw},Os.prototype.getNorthEast=function(){return this._ne},Os.prototype.getNorthWest=function(){return new Go(this.getWest(),this.getNorth())},Os.prototype.getSouthEast=function(){return new Go(this.getEast(),this.getSouth())},Os.prototype.getWest=function(){return this._sw.lng},Os.prototype.getSouth=function(){return this._sw.lat},Os.prototype.getEast=function(){return this._ne.lng},Os.prototype.getNorth=function(){return this._ne.lat},Os.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Os.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Os.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Os.prototype.contains=function(y){var R=Go.convert(y),H=R.lng,pt=R.lat,wt=this._sw.lat<=pt&&pt<=this._ne.lat,Dt=this._sw.lng<=H&&H<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Dt=this._sw.lng>=H&&H>=this._ne.lng),wt&&Dt},Os.convert=function(y){return!y||y instanceof Os?y:new Os(y)};var m0=63710088e-1,Go=function(y,R){if(isNaN(y)||isNaN(R))throw Error("Invalid LngLat object: ("+y+", "+R+")");if(this.lng=+y,this.lat=+R,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")};Go.prototype.wrap=function(){return new Go(v(this.lng,-180,180),this.lat)},Go.prototype.toArray=function(){return[this.lng,this.lat]},Go.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Go.prototype.distanceTo=function(y){var R=Math.PI/180,H=this.lat*R,pt=y.lat*R,wt=Math.sin(H)*Math.sin(pt)+Math.cos(H)*Math.cos(pt)*Math.cos((y.lng-this.lng)*R);return m0*Math.acos(Math.min(wt,1))},Go.prototype.toBounds=function(y){y===void 0&&(y=0);var R=360*y/40075017,H=R/Math.cos(Math.PI/180*this.lat);return new Os(new Go(this.lng-H,this.lat-R),new Go(this.lng+H,this.lat+R))},Go.convert=function(y){if(y instanceof Go)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Go(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y)return new Go(Number("lng"in y?y.lng:y.lon),Number(y.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var cd=2*Math.PI*m0;function ep(y){return cd*Math.cos(y*Math.PI/180)}function g0(y){return(180+y)/360}function y0(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function v0(y,R){return y/ep(R)}function Hm(y){return y*360-180}function hd(y){var R=180-y*360;return 360/Math.PI*Math.atan(Math.exp(R*Math.PI/180))-90}function Gm(y,R){return y*ep(hd(R))}function Zm(y){return 1/Math.cos(y*Math.PI/180)}var nf=function(y,R,H){H===void 0&&(H=0),this.x=+y,this.y=+R,this.z=+H};nf.fromLngLat=function(y,R){R===void 0&&(R=0);var H=Go.convert(y);return new nf(g0(H.lng),y0(H.lat),v0(R,H.lat))},nf.prototype.toLngLat=function(){return new Go(Hm(this.x),hd(this.y))},nf.prototype.toAltitude=function(){return Gm(this.z,this.y)},nf.prototype.meterInMercatorCoordinateUnits=function(){return 1/cd*Zm(hd(this.y))};var of=function(y,R,H){this.z=y,this.x=R,this.y=H,this.key=rp(0,y,y,R,H)};of.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},of.prototype.url=function(y,R){var H=qm(this.x,this.y,this.z),pt=Wm(this.z,this.x,this.y);return y[(this.x+this.y)%y.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(R==="tms"?2**this.z-this.y-1:this.y)).replace("{quadkey}",pt).replace("{bbox-epsg-3857}",H)},of.prototype.getTilePoint=function(y){var R=2**this.z;return new i((y.x*R-this.x)*Ka,(y.y*R-this.y)*Ka)},of.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var x0=function(y,R){this.wrap=y,this.canonical=R,this.key=rp(y,R.z,R.z,R.x,R.y)},Ds=function(y,R,H,pt,wt){this.overscaledZ=y,this.wrap=R,this.canonical=new of(H,+pt,+wt),this.key=rp(R,y,H,pt,wt)};Ds.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},Ds.prototype.scaledTo=function(y){var R=this.canonical.z-y;return y>this.canonical.z?new Ds(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ds(y,this.wrap,y,this.canonical.x>>R,this.canonical.y>>R)},Ds.prototype.calculateScaledKey=function(y,R){var H=this.canonical.z-y;return y>this.canonical.z?rp(this.wrap*+R,y,this.canonical.z,this.canonical.x,this.canonical.y):rp(this.wrap*+R,y,y,this.canonical.x>>H,this.canonical.y>>H)},Ds.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var R=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>R&&y.canonical.y===this.canonical.y>>R},Ds.prototype.children=function(y){if(this.overscaledZ>=y)return[new Ds(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var R=this.canonical.z+1,H=this.canonical.x*2,pt=this.canonical.y*2;return[new Ds(R,this.wrap,R,H,pt),new Ds(R,this.wrap,R,H+1,pt),new Ds(R,this.wrap,R,H,pt+1),new Ds(R,this.wrap,R,H+1,pt+1)]},Ds.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;Dt--)wt=1<=this.dim+1||R<-1||R>=this.dim+1)throw RangeError("out of range source coordinates for DEM data");return(R+1)*this.stride+(y+1)},zh.prototype._unpackMapbox=function(y,R,H){return(y*256*256+R*256+H)/10-1e4},zh.prototype._unpackTerrarium=function(y,R,H){return y*256+R+H/256-32768},zh.prototype.getPixels=function(){return new Kl({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},zh.prototype.backfillBorder=function(y,R,H){if(this.dim!==y.dim)throw Error("dem dimension mismatch");var pt=R*this.dim,wt=R*this.dim+this.dim,Dt=H*this.dim,Yt=H*this.dim+this.dim;switch(R){case-1:pt=wt-1;break;case 1:wt=pt+1;break}switch(H){case-1:Dt=Yt-1;break;case 1:Yt=Dt+1;break}for(var fe=-R*this.dim,Re=-H*this.dim,Ye=Dt;Ye=0&&er[3]>=0&&fe.insert(Yt,er[0],er[1],er[2],er[3])}},vh.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new pf.VectorTile(new _p(this.rawTileData)).layers,this.sourceLayerCoder=new eh(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},vh.prototype.query=function(y,R,H,pt){var wt=this;this.loadVTLayers();for(var Dt=y.params||{},Yt=Ka/y.tileSize/y.scale,fe=Yu(Dt.filter),Re=y.queryGeometry,Ye=y.queryPadding*Yt,er=_0(Re),dr=this.grid.query(er.minX-Ye,er.minY-Ye,er.maxX+Ye,er.maxY+Ye),Er=_0(y.cameraQueryGeometry),Ir=this.grid3D.query(Er.minX-Ye,Er.minY-Ye,Er.maxX+Ye,Er.maxY+Ye,function(va,La,Da,cn){return Iu(y.cameraQueryGeometry,va-Ye,La-Ye,Da+Ye,cn+Ye)}),ui=0,hi=Ir;uipt)wt=!1;else if(!R)wt=!0;else if(this.expirationTime=pr.maxzoom||pr.visibility!=="none"&&(a(qe,this.zoom,Ce),(yr[pr.id]=pr.createBucket({index:$e.bucketLayerIDs.length,layers:qe,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ei,sourceID:this.source})).populate(Nr,Cr,this.tileID.canonical),$e.bucketLayerIDs.push(qe.map(function(Ei){return Ei.id})))}}}var xr,fr,ur,Br,$r=t.mapObject(Cr.glyphDependencies,function(Ei){return Object.keys(Ei).map(Number)});Object.keys($r).length?Ge.send("getGlyphs",{uid:this.uid,stacks:$r},function(Ei,Di){xr||(xr=Ei,fr=Di,mi.call(ar))}):fr={};var Jr=Object.keys(Cr.iconDependencies);Jr.length?Ge.send("getImages",{icons:Jr,source:this.source,tileID:this.tileID,type:"icons"},function(Ei,Di){xr||(xr=Ei,ur=Di,mi.call(ar))}):ur={};var Zi=Object.keys(Cr.patternDependencies);Zi.length?Ge.send("getImages",{icons:Zi,source:this.source,tileID:this.tileID,type:"patterns"},function(Ei,Di){xr||(xr=Ei,Br=Di,mi.call(ar))}):Br={},mi.call(this);function mi(){if(xr)return Ke(xr);if(fr&&ur&&Br){var Ei=new r(fr),Di=new t.ImageAtlas(ur,Br);for(var Tr in yr){var Vr=yr[Tr];Vr instanceof t.SymbolBucket?(a(Vr.layers,this.zoom,Ce),t.performSymbolLayout(Vr,fr,Ei.positions,ur,Di.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vr.hasPattern&&(Vr instanceof t.LineBucket||Vr instanceof t.FillBucket||Vr instanceof t.FillExtrusionBucket)&&(a(Vr.layers,this.zoom,Ce),Vr.addFeatures(Cr,this.tileID.canonical,Di.patternPositions))}this.status="done",Ke(null,{buckets:t.values(yr).filter(function(li){return!li.isEmpty()}),featureIndex:$e,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ei.image,imageAtlas:Di,glyphMap:this.returnDependencies?fr:null,iconMap:this.returnDependencies?ur:null,glyphPositions:this.returnDependencies?Ei.positions:null})}}};function a(ue,we,Ce){for(var Ge=new t.EvaluationParameters(we),Ke=0,ar=ue;Ke=0!=!!we&&ue.reverse()}var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,b=function(ue){this._feature=ue,this.extent=t.EXTENT,this.type=ue.type,this.properties=ue.tags,"id"in ue&&!isNaN(ue.id)&&(this.id=parseInt(ue.id,10))};b.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ue=[],we=0,Ce=this._feature.geometry;we>31}function K(ue,we){for(var Ce=ue.loadGeometry(),Ge=ue.type,Ke=0,ar=0,We=Ce.length,$e=0;$e>1;ct(ue,we,We,Ge,Ke,ar%2),ft(ue,we,Ce,Ge,We-1,ar+1),ft(ue,we,Ce,We+1,Ke,ar+1)}}function ct(ue,we,Ce,Ge,Ke,ar){for(;Ke>Ge;){if(Ke-Ge>600){var We=Ke-Ge+1,$e=Ce-Ge+1,yr=Math.log(We),Cr=.5*Math.exp(2*yr/3),Sr=.5*Math.sqrt(yr*Cr*(We-Cr)/We)*($e-We/2<0?-1:1);ct(ue,we,Ce,Math.max(Ge,Math.floor(Ce-$e*Cr/We+Sr)),Math.min(Ke,Math.floor(Ce+(We-$e)*Cr/We+Sr)),ar)}var Dr=we[2*Ce+ar],Or=Ge,ei=Ke;for(J(ue,we,Ge,Ce),we[2*Ke+ar]>Dr&&J(ue,we,Ge,Ke);OrDr;)ei--}we[2*Ge+ar]===Dr?J(ue,we,Ge,ei):(ei++,J(ue,we,ei,Ke)),ei<=Ce&&(Ge=ei+1),Ce<=ei&&(Ke=ei-1)}}function J(ue,we,Ce,Ge){et(ue,Ce,Ge),et(we,2*Ce,2*Ge),et(we,2*Ce+1,2*Ge+1)}function et(ue,we,Ce){var Ge=ue[we];ue[we]=ue[Ce],ue[Ce]=Ge}function Q(ue,we,Ce,Ge,Ke,ar,We){for(var $e=[0,ue.length-1,0],yr=[],Cr,Sr;$e.length;){var Dr=$e.pop(),Or=$e.pop(),ei=$e.pop();if(Or-ei<=We){for(var Nr=ei;Nr<=Or;Nr++)Cr=we[2*Nr],Sr=we[2*Nr+1],Cr>=Ce&&Cr<=Ke&&Sr>=Ge&&Sr<=ar&&yr.push(ue[Nr]);continue}var re=Math.floor((ei+Or)/2);Cr=we[2*re],Sr=we[2*re+1],Cr>=Ce&&Cr<=Ke&&Sr>=Ge&&Sr<=ar&&yr.push(ue[re]);var ae=(Dr+1)%2;(Dr===0?Ce<=Cr:Ge<=Sr)&&($e.push(ei),$e.push(re-1),$e.push(ae)),(Dr===0?Ke>=Cr:ar>=Sr)&&($e.push(re+1),$e.push(Or),$e.push(ae))}return yr}function Z(ue,we,Ce,Ge,Ke,ar){for(var We=[0,ue.length-1,0],$e=[],yr=Ke*Ke;We.length;){var Cr=We.pop(),Sr=We.pop(),Dr=We.pop();if(Sr-Dr<=ar){for(var Or=Dr;Or<=Sr;Or++)st(we[2*Or],we[2*Or+1],Ce,Ge)<=yr&&$e.push(ue[Or]);continue}var ei=Math.floor((Dr+Sr)/2),Nr=we[2*ei],re=we[2*ei+1];st(Nr,re,Ce,Ge)<=yr&&$e.push(ue[ei]);var ae=(Cr+1)%2;(Cr===0?Ce-Ke<=Nr:Ge-Ke<=re)&&(We.push(Dr),We.push(ei-1),We.push(ae)),(Cr===0?Ce+Ke>=Nr:Ge+Ke>=re)&&(We.push(ei+1),We.push(Sr),We.push(ae))}return $e}function st(ue,we,Ce,Ge){var Ke=ue-Ce,ar=we-Ge;return Ke*Ke+ar*ar}var ot=function(ue){return ue[0]},rt=function(ue){return ue[1]},X=function(ue,we,Ce,Ge,Ke){we===void 0&&(we=ot),Ce===void 0&&(Ce=rt),Ge===void 0&&(Ge=64),Ke===void 0&&(Ke=Float64Array),this.nodeSize=Ge,this.points=ue;for(var ar=this.ids=new(ue.length<65536?Uint16Array:Uint32Array)(ue.length),We=this.coords=new Ke(ue.length*2),$e=0;$e=Ge;Cr--){var Sr=+Date.now();$e=this._cluster($e,Cr),this.trees[Cr]=new X($e,At,qt,ar,Float32Array),Ce&&console.log("z%d: %d clusters in %dms",Cr,$e.length,+Date.now()-Sr)}return Ce&&console.timeEnd("total time"),this},lt.prototype.getClusters=function(ue,we){var Ce=((ue[0]+180)%360+360)%360-180,Ge=Math.max(-90,Math.min(90,ue[1])),Ke=ue[2]===180?180:((ue[2]+180)%360+360)%360-180,ar=Math.max(-90,Math.min(90,ue[3]));if(ue[2]-ue[0]>=360)Ce=-180,Ke=180;else if(Ce>Ke){var We=this.getClusters([Ce,Ge,180,ar],we),$e=this.getClusters([-180,Ge,Ke,ar],we);return We.concat($e)}for(var yr=this.trees[this._limitZoom(we)],Cr=yr.range(Ot(Ce),Ht(ar),Ot(Ke),Ht(Ge)),Sr=[],Dr=0,Or=Cr;Drwe&&(Nr+=_r.numPoints||1)}if(Nr>=$e){for(var lr=Sr.x*ei,qe=Sr.y*ei,pr=We&&ei>1?this._map(Sr,!0):null,xr=(Cr<<5)+(we+1)+this.points.length,fr=0,ur=Or;fr1)for(var Zi=0,mi=Or;Zi>5},lt.prototype._getOriginZoom=function(ue){return(ue-this.points.length)%32},lt.prototype._map=function(ue,we){if(ue.numPoints)return we?Et({},ue.properties):ue.properties;var Ce=this.points[ue.index].properties,Ge=this.options.map(Ce);return we&&Ge===Ce?Et({},Ge):Ge};function yt(ue,we,Ce,Ge,Ke){return{x:ue,y:we,zoom:1/0,id:Ce,parentId:-1,numPoints:Ge,properties:Ke}}function kt(ue,we){var Ce=ue.geometry.coordinates,Ge=Ce[0],Ke=Ce[1];return{x:Ot(Ge),y:Ht(Ke),zoom:1/0,index:we,parentId:-1}}function Lt(ue){return{type:"Feature",id:ue.id,properties:St(ue),geometry:{type:"Point",coordinates:[Kt(ue.x),Gt(ue.y)]}}}function St(ue){var we=ue.numPoints,Ce=we>=1e4?Math.round(we/1e3)+"k":we>=1e3?Math.round(we/100)/10+"k":we;return Et(Et({},ue.properties),{cluster:!0,cluster_id:ue.id,point_count:we,point_count_abbreviated:Ce})}function Ot(ue){return ue/360+.5}function Ht(ue){var we=Math.sin(ue*Math.PI/180),Ce=.5-.25*Math.log((1+we)/(1-we))/Math.PI;return Ce<0?0:Ce>1?1:Ce}function Kt(ue){return(ue-.5)*360}function Gt(ue){var we=(180-ue*360)*Math.PI/180;return 360*Math.atan(Math.exp(we))/Math.PI-90}function Et(ue,we){for(var Ce in we)ue[Ce]=we[Ce];return ue}function At(ue){return ue.x}function qt(ue){return ue.y}function jt(ue,we,Ce,Ge){for(var Ke=Ge,ar=Ce-we>>1,We=Ce-we,$e,yr=ue[we],Cr=ue[we+1],Sr=ue[Ce],Dr=ue[Ce+1],Or=we+3;OrKe)$e=Or,Ke=ei;else if(ei===Ke){var Nr=Math.abs(Or-ar);NrGe&&($e-we>3&&jt(ue,we,$e,Ge),ue[$e+2]=Ke,Ce-$e>3&&jt(ue,$e,Ce,Ge))}function de(ue,we,Ce,Ge,Ke,ar){var We=Ke-Ce,$e=ar-Ge;if(We!==0||$e!==0){var yr=((ue-Ce)*We+(we-Ge)*$e)/(We*We+$e*$e);yr>1?(Ce=Ke,Ge=ar):yr>0&&(Ce+=We*yr,Ge+=$e*yr)}return We=ue-Ce,$e=we-Ge,We*We+$e*$e}function Xt(ue,we,Ce,Ge){var Ke={id:ue===void 0?null:ue,type:we,geometry:Ce,tags:Ge,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return ye(Ke),Ke}function ye(ue){var we=ue.geometry,Ce=ue.type;if(Ce==="Point"||Ce==="MultiPoint"||Ce==="LineString")Le(ue,we);else if(Ce==="Polygon"||Ce==="MultiLineString")for(var Ge=0;Ge0&&(Ge?We+=(Ke*Cr-yr*ar)/2:We+=Math.sqrt((yr-Ke)**2+(Cr-ar)**2)),Ke=yr,ar=Cr}var Sr=we.length-3;we[2]=1,jt(we,0,Sr,Ce),we[Sr+2]=1,we.size=Math.abs(We),we.start=0,we.end=we.size}function be(ue,we,Ce,Ge){for(var Ke=0;Ke1?1:Ce}function Vt(ue,we,Ce,Ge,Ke,ar,We,$e){if(Ce/=we,Ge/=we,ar>=Ce&&We=Ge)return null;for(var yr=[],Cr=0;Cr=Ce&&Nr=Ge)continue;var re=[];if(Or==="Point"||Or==="MultiPoint")Qt(Dr,re,Ce,Ge,Ke);else if(Or==="LineString")te(Dr,re,Ce,Ge,Ke,!1,$e.lineMetrics);else if(Or==="MultiLineString")Bt(Dr,re,Ce,Ge,Ke,!1);else if(Or==="Polygon")Bt(Dr,re,Ce,Ge,Ke,!0);else if(Or==="MultiPolygon")for(var ae=0;ae=Ce&&We<=Ge&&(we.push(ue[ar]),we.push(ue[ar+1]),we.push(ue[ar+2]))}}function te(ue,we,Ce,Ge,Ke,ar,We){for(var $e=ee(ue),yr=Ke===0?$t:Tt,Cr=ue.start,Sr,Dr,Or=0;OrCe&&(Dr=yr($e,ei,Nr,ae,wr,Ce),We&&($e.start=Cr+Sr*Dr)):_r>Ge?lr=Ce&&(Dr=yr($e,ei,Nr,ae,wr,Ce),qe=!0),lr>Ge&&_r<=Ge&&(Dr=yr($e,ei,Nr,ae,wr,Ge),qe=!0),!ar&&qe&&(We&&($e.end=Cr+Sr*Dr),we.push($e),$e=ee(ue)),We&&(Cr+=Sr)}var pr=ue.length-3;ei=ue[pr],Nr=ue[pr+1],re=ue[pr+2],_r=Ke===0?ei:Nr,_r>=Ce&&_r<=Ge&&Wt($e,ei,Nr,re),pr=$e.length-3,ar&&pr>=3&&($e[pr]!==$e[0]||$e[pr+1]!==$e[1])&&Wt($e,$e[0],$e[1],$e[2]),$e.length&&we.push($e)}function ee(ue){var we=[];return we.size=ue.size,we.start=ue.start,we.end=ue.end,we}function Bt(ue,we,Ce,Ge,Ke,ar){for(var We=0;WeWe.maxX&&(We.maxX=Sr),Dr>We.maxY&&(We.maxY=Dr)}return We}function Me(ue,we,Ce,Ge){var Ke=we.geometry,ar=we.type,We=[];if(ar==="Point"||ar==="MultiPoint")for(var $e=0;$e0&&we.size<(Ke?We:Ge)){Ce.numPoints+=we.length/3;return}for(var $e=[],yr=0;yrWe)&&(Ce.numSimplified++,$e.push(we[yr]),$e.push(we[yr+1])),Ce.numPoints++;Ke&&ge($e,ar),ue.push($e)}function ge(ue,we){for(var Ce=0,Ge=0,Ke=ue.length,ar=Ke-2;Ge0===we)for(Ge=0,Ke=ue.length;Ge24)throw Error("maxZoom should be in the 0-24 range");if(we.promoteId&&we.generateId)throw Error("promoteId and generateId cannot be used together.");var Ge=ve(ue,we);this.tiles={},this.tileCoords=[],Ce&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",we.indexMaxZoom,we.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Ge=_t(Ge,we),Ge.length&&this.splitTile(Ge,0,0,0),Ce&&(Ge.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Ne.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ne.prototype.splitTile=function(ue,we,Ce,Ge,Ke,ar,We){for(var $e=[ue,we,Ce,Ge],yr=this.options,Cr=yr.debug;$e.length;){Ge=$e.pop(),Ce=$e.pop(),we=$e.pop(),ue=$e.pop();var Sr=1<1&&console.time("creation"),Or=this.tiles[Dr]=Zt(ue,we,Ce,Ge,yr),this.tileCoords.push({z:we,x:Ce,y:Ge}),Cr)){Cr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",we,Ce,Ge,Or.numFeatures,Or.numPoints,Or.numSimplified),console.timeEnd("creation"));var ei="z"+we;this.stats[ei]=(this.stats[ei]||0)+1,this.total++}if(Or.source=ue,Ke){if(we===yr.maxZoom||we===Ke)continue;var Nr=1<1&&console.time("clipping");var re=.5*yr.buffer/yr.extent,ae=.5-re,wr=.5+re,_r=1+re,lr=qe=pr=xr=null,qe,pr,xr,fr=Vt(ue,Sr,Ce-re,Ce+wr,0,Or.minX,Or.maxX,yr),ur=Vt(ue,Sr,Ce+ae,Ce+_r,0,Or.minX,Or.maxX,yr);ue=null,fr&&(fr=(lr=Vt(fr,Sr,Ge-re,Ge+wr,1,Or.minY,Or.maxY,yr),qe=Vt(fr,Sr,Ge+ae,Ge+_r,1,Or.minY,Or.maxY,yr),null)),ur&&(ur=(pr=Vt(ur,Sr,Ge-re,Ge+wr,1,Or.minY,Or.maxY,yr),xr=Vt(ur,Sr,Ge+ae,Ge+_r,1,Or.minY,Or.maxY,yr),null)),Cr>1&&console.timeEnd("clipping"),$e.push(lr||[],we+1,Ce*2,Ge*2),$e.push(qe||[],we+1,Ce*2,Ge*2+1),$e.push(pr||[],we+1,Ce*2+1,Ge*2),$e.push(xr||[],we+1,Ce*2+1,Ge*2+1)}}},Ne.prototype.getTile=function(ue,we,Ce){var Ge=this.options,Ke=Ge.extent,ar=Ge.debug;if(ue<0||ue>24)return null;var We=1<1&&console.log("drilling down to z%d-%d-%d",ue,we,Ce);for(var yr=ue,Cr=we,Sr=Ce,Dr;!Dr&&yr>0;)yr--,Cr=Math.floor(Cr/2),Sr=Math.floor(Sr/2),Dr=this.tiles[sr(yr,Cr,Sr)];return!Dr||!Dr.source?null:(ar>1&&console.log("found parent tile z%d-%d-%d",yr,Cr,Sr),ar>1&&console.time("drilling down"),this.splitTile(Dr.source,yr,Cr,Sr,ue,we,Ce),ar>1&&console.timeEnd("drilling down"),this.tiles[$e]?Ct(this.tiles[$e],Ke):null)};function sr(ue,we,Ce){return((1<=0?0:$.button},w.remove=function($){$.parentNode&&$.parentNode.removeChild($)};function m($,at,it){var mt,Ft,ie,he=t.browser.devicePixelRatio>1?"@2x":"",Ie=t.getJSON(at.transformRequest(at.normalizeSpriteURL($,he,".json"),t.ResourceType.SpriteJSON),function(kr,Fr){Ie=null,ie||(ie=kr,mt=Fr,vr())}),Qe=t.getImage(at.transformRequest(at.normalizeSpriteURL($,he,".png"),t.ResourceType.SpriteImage),function(kr,Fr){Qe=null,ie||(ie=kr,Ft=Fr,vr())});function vr(){if(ie)it(ie);else if(mt&&Ft){var kr=t.browser.getImageData(Ft),Fr={};for(var Gr in mt){var oi=mt[Gr],Ti=oi.width,vi=oi.height,yi=oi.x,Pi=oi.y,Wi=oi.sdf,Ta=oi.pixelRatio,oa=oi.stretchX,da=oi.stretchY,Aa=oi.content,ga=new t.RGBAImage({width:Ti,height:vi});t.RGBAImage.copy(kr,ga,{x:yi,y:Pi},{x:0,y:0},{width:Ti,height:vi}),Fr[Gr]={data:ga,pixelRatio:Ta,sdf:Wi,stretchX:oa,stretchY:da,content:Aa}}it(null,Fr)}}return{cancel:function(){Ie&&(Ie=(Ie.cancel(),null)),Qe&&(Qe=(Qe.cancel(),null))}}}function x($){var at=$.userImage;return at&&at.render&&at.render()?($.data.replace(new Uint8Array(at.data.buffer)),!0):!1}var f=1,v=(function($){function at(){$.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return $&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at,at.prototype.isLoaded=function(){return this.loaded},at.prototype.setLoaded=function(it){if(this.loaded!==it&&(this.loaded=it,it)){for(var mt=0,Ft=this.requestors;mt=0?1.2:1))}M.prototype.draw=function($){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText($,this.buffer,this.middle);for(var at=this.ctx.getImageData(0,0,this.size,this.size),it=new Uint8ClampedArray(this.size*this.size),mt=0;mt65535){vr(Error("glyphs > 65535 not supported"));return}if(Gr.ranges[Ti]){vr(null,{stack:kr,id:Fr,glyph:oi});return}var vi=Gr.requests[Ti];vi||(vi=Gr.requests[Ti]=[],L.loadGlyphRange(kr,Ti,it.url,it.requestManager,function(yi,Pi){if(Pi){for(var Wi in Pi)it._doesCharSupportLocalGlyph(+Wi)||(Gr.glyphs[+Wi]=Pi[+Wi]);Gr.ranges[Ti]=!0}for(var Ta=0,oa=vi;Ta1&&(Qe=$[++Ie]);var kr=Math.abs(vr-Qe.left),Fr=Math.abs(vr-Qe.right),Gr=Math.min(kr,Fr),oi=void 0,Ti=Ft/it*(mt+1);if(Qe.isDash){var vi=mt-Math.abs(Ti);oi=Math.sqrt(Gr*Gr+vi*vi)}else oi=mt-Math.sqrt(Gr*Gr+Ti*Ti);this.data[he+vr]=Math.max(0,Math.min(255,oi+128))}},F.prototype.addRegularDash=function($){for(var at=$.length-1;at>=0;--at){var it=$[at],mt=$[at+1];it.zeroLength?$.splice(at,1):mt&&mt.isDash===it.isDash&&(mt.left=it.left,$.splice(at,1))}var Ft=$[0],ie=$[$.length-1];Ft.isDash===ie.isDash&&(Ft.left=ie.left-this.width,ie.right=Ft.right+this.width);for(var he=this.width*this.nextRow,Ie=0,Qe=$[Ie],vr=0;vr1&&(Qe=$[++Ie]);var kr=Math.abs(vr-Qe.left),Fr=Math.abs(vr-Qe.right),Gr=Math.min(kr,Fr),oi=Qe.isDash?Gr:-Gr;this.data[he+vr]=Math.max(0,Math.min(255,oi+128))}},F.prototype.addDash=function($,at){var it=at?7:0,mt=2*it+1;if(this.nextRow+mt>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var Ft=0,ie=0;ie<$.length;ie++)Ft+=$[ie];if(Ft!==0){var he=this.width/Ft,Ie=this.getDashRanges($,this.width,he);at?this.addRoundDash(Ie,he,it):this.addRegularDash(Ie)}var Qe={y:(this.nextRow+it+.5)/this.height,height:2*it/this.height,width:Ft};return this.nextRow+=mt,this.dirty=!0,Qe},F.prototype.bind=function($){var at=$.gl;this.texture?(at.bindTexture(at.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,at.texSubImage2D(at.TEXTURE_2D,0,0,0,this.width,this.height,at.ALPHA,at.UNSIGNED_BYTE,this.data))):(this.texture=at.createTexture(),at.bindTexture(at.TEXTURE_2D,this.texture),at.texParameteri(at.TEXTURE_2D,at.TEXTURE_WRAP_S,at.REPEAT),at.texParameteri(at.TEXTURE_2D,at.TEXTURE_WRAP_T,at.REPEAT),at.texParameteri(at.TEXTURE_2D,at.TEXTURE_MIN_FILTER,at.LINEAR),at.texParameteri(at.TEXTURE_2D,at.TEXTURE_MAG_FILTER,at.LINEAR),at.texImage2D(at.TEXTURE_2D,0,at.ALPHA,this.width,this.height,0,at.ALPHA,at.UNSIGNED_BYTE,this.data))};var O=function $(at,it){this.workerPool=at,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var mt=this.workerPool.acquire(this.id),Ft=0;Ft=it.minX&&$.x=it.minY&&$.y0&&(vr[new t.OverscaledTileID(it.overscaledZ,he,mt.z,ie,mt.y-1).key]={backfilled:!1},vr[new t.OverscaledTileID(it.overscaledZ,it.wrap,mt.z,mt.x,mt.y-1).key]={backfilled:!1},vr[new t.OverscaledTileID(it.overscaledZ,Qe,mt.z,Ie,mt.y-1).key]={backfilled:!1}),mt.y+10&&(Ft.resourceTiming=it._resourceTiming,it._resourceTiming=[]),it.fire(new t.Event("data",Ft))})},at.prototype.onAdd=function(it){this.map=it,this.load()},at.prototype.setData=function(it){var mt=this;return this._data=it,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Ft){if(Ft){mt.fire(new t.ErrorEvent(Ft));return}var ie={dataType:"source",sourceDataType:"content"};mt._collectResourceTiming&&mt._resourceTiming&&mt._resourceTiming.length>0&&(ie.resourceTiming=mt._resourceTiming,mt._resourceTiming=[]),mt.fire(new t.Event("data",ie))}),this},at.prototype.getClusterExpansionZoom=function(it,mt){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:it,source:this.id},mt),this},at.prototype.getClusterChildren=function(it,mt){return this.actor.send("geojson.getClusterChildren",{clusterId:it,source:this.id},mt),this},at.prototype.getClusterLeaves=function(it,mt,Ft,ie){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:it,limit:mt,offset:Ft},ie),this},at.prototype._updateWorkerData=function(it){var mt=this;this._loaded=!1;var Ft=t.extend({},this.workerOptions),ie=this._data;typeof ie=="string"?(Ft.request=this.map._requestManager.transformRequest(t.browser.resolveURL(ie),t.ResourceType.Source),Ft.request.collectResourceTiming=this._collectResourceTiming):Ft.data=JSON.stringify(ie),this.actor.send(this.type+".loadData",Ft,function(he,Ie){mt._removed||Ie&&Ie.abandoned||(mt._loaded=!0,Ie&&Ie.resourceTiming&&Ie.resourceTiming[mt.id]&&(mt._resourceTiming=Ie.resourceTiming[mt.id].slice(0)),mt.actor.send(mt.type+".coalesce",{source:Ft.source},null),it(he))})},at.prototype.loaded=function(){return this._loaded},at.prototype.loadTile=function(it,mt){var Ft=this,ie=it.actor?"reloadTile":"loadTile";it.actor=this.actor;var he={type:this.type,uid:it.uid,tileID:it.tileID,zoom:it.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};it.request=this.actor.send(ie,he,function(Ie,Qe){return delete it.request,it.unloadVectorData(),it.aborted?mt(null):Ie?mt(Ie):(it.loadVectorData(Qe,Ft.map.painter,ie==="reloadTile"),mt(null))})},at.prototype.abortTile=function(it){it.request&&(it.request.cancel(),delete it.request),it.aborted=!0},at.prototype.unloadTile=function(it){it.unloadVectorData(),this.actor.send("removeTile",{uid:it.uid,type:this.type,source:this.id})},at.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},at.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},at.prototype.hasTransition=function(){return!1},at})(t.Evented),Y=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),K=(function($){function at(it,mt,Ft,ie){$.call(this),this.id=it,this.dispatcher=Ft,this.coordinates=mt.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ie),this.options=mt}return $&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at,at.prototype.load=function(it,mt){var Ft=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),function(ie,he){Ft._loaded=!0,ie?Ft.fire(new t.ErrorEvent(ie)):he&&(Ft.image=he,it&&(Ft.coordinates=it),mt&&mt(),Ft._finishLoading())})},at.prototype.loaded=function(){return this._loaded},at.prototype.updateImage=function(it){var mt=this;return!this.image||!it.url?this:(this.options.url=it.url,this.load(it.coordinates,function(){mt.texture=null}),this)},at.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},at.prototype.onAdd=function(it){this.map=it,this.load()},at.prototype.setCoordinates=function(it){var mt=this;this.coordinates=it;var Ft=it.map(t.MercatorCoordinate.fromLngLat);this.tileID=nt(Ft),this.minzoom=this.maxzoom=this.tileID.z;var ie=Ft.map(function(he){return mt.tileID.getTilePoint(he)._round()});return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(ie[0].x,ie[0].y,0,0),this._boundsArray.emplaceBack(ie[1].x,ie[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(ie[3].x,ie[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(ie[2].x,ie[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this},at.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var it=this.map.painter.context,mt=it.gl;for(var Ft in this.boundsBuffer||(this.boundsBuffer=it.createVertexBuffer(this._boundsArray,Y.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(it,this.image,mt.RGBA),this.texture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE)),this.tiles){var ie=this.tiles[Ft];ie.state!=="loaded"&&(ie.state="loaded",ie.texture=this.texture)}}},at.prototype.loadTile=function(it,mt){this.tileID&&this.tileID.equals(it.tileID.canonical)?(this.tiles[String(it.tileID.wrap)]=it,it.buckets={},mt(null)):(it.state="errored",mt(null))},at.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},at.prototype.hasTransition=function(){return!1},at})(t.Evented);function nt($){for(var at=1/0,it=1/0,mt=-1/0,Ft=-1/0,ie=0,he=$;iemt.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+mt.start(0)+" and "+mt.end(0)+"-second mark."))):this.video.currentTime=it}},at.prototype.getVideo=function(){return this.video},at.prototype.onAdd=function(it){this.map||(this.map=it,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},at.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var it=this.map.painter.context,mt=it.gl;for(var Ft in this.boundsBuffer||(this.boundsBuffer=it.createVertexBuffer(this._boundsArray,Y.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE),mt.texSubImage2D(mt.TEXTURE_2D,0,0,0,mt.RGBA,mt.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(it,this.video,mt.RGBA),this.texture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE)),this.tiles){var ie=this.tiles[Ft];ie.state!=="loaded"&&(ie.state="loaded",ie.texture=this.texture)}}},at.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},at.prototype.hasTransition=function(){return this.video&&!this.video.paused},at})(K),ct=(function($){function at(it,mt,Ft,ie){$.call(this,it,mt,Ft,ie),mt.coordinates?(!Array.isArray(mt.coordinates)||mt.coordinates.length!==4||mt.coordinates.some(function(he){return!Array.isArray(he)||he.length!==2||he.some(function(Ie){return typeof Ie!="number"})}))&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+it,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+it,null,'missing required property "coordinates"'))),mt.animate&&typeof mt.animate!="boolean"&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+it,null,'optional "animate" property must be a boolean value'))),mt.canvas?typeof mt.canvas!="string"&&!(mt.canvas instanceof t.window.HTMLCanvasElement)&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+it,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+it,null,'missing required property "canvas"'))),this.options=mt,this.animate=mt.animate===void 0?!0:mt.animate}return $&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at,at.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new t.ErrorEvent(Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this._playing=(this.prepare(),!1))},this._finishLoading()},at.prototype.getCanvas=function(){return this.canvas},at.prototype.onAdd=function(it){this.map=it,this.load(),this.canvas&&this.animate&&this.play()},at.prototype.onRemove=function(){this.pause()},at.prototype.prepare=function(){var it=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,it=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,it=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var mt=this.map.painter.context,Ft=mt.gl;for(var ie in this.boundsBuffer||(this.boundsBuffer=mt.createVertexBuffer(this._boundsArray,Y.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(it||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(mt,this.canvas,Ft.RGBA,{premultiply:!0}),this.tiles){var he=this.tiles[ie];he.state!=="loaded"&&(he.state="loaded",he.texture=this.texture)}}},at.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},at.prototype.hasTransition=function(){return this._playing},at.prototype._hasInvalidDimensions=function(){for(var it=0,mt=[this.canvas.width,this.canvas.height];itthis.max){var he=this._getAndRemoveByKey(this.order[0]);he&&this.onRemove(he)}return this},kt.prototype.has=function($){return $.wrapped().key in this.data},kt.prototype.getAndRemove=function($){return this.has($)?this._getAndRemoveByKey($.wrapped().key):null},kt.prototype._getAndRemoveByKey=function($){var at=this.data[$].shift();return at.timeout&&clearTimeout(at.timeout),this.data[$].length===0&&delete this.data[$],this.order.splice(this.order.indexOf($),1),at.value},kt.prototype.getByKey=function($){var at=this.data[$];return at?at[0].value:null},kt.prototype.get=function($){return this.has($)?this.data[$.wrapped().key][0].value:null},kt.prototype.remove=function($,at){if(!this.has($))return this;var it=$.wrapped().key,mt=at===void 0?0:this.data[it].indexOf(at),Ft=this.data[it][mt];return this.data[it].splice(mt,1),Ft.timeout&&clearTimeout(Ft.timeout),this.data[it].length===0&&delete this.data[it],this.onRemove(Ft.value),this.order.splice(this.order.indexOf(it),1),this},kt.prototype.setMaxSize=function($){for(this.max=$;this.order.length>this.max;){var at=this._getAndRemoveByKey(this.order[0]);at&&this.onRemove(at)}return this},kt.prototype.filter=function($){var at=[];for(var it in this.data)for(var mt=0,Ft=this.data[it];mt1||(Math.abs(kr)>1&&(Math.abs(kr+Gr)===1?kr+=Gr:Math.abs(kr-Gr)===1&&(kr-=Gr)),!(!vr.dem||!Qe.dem)&&(Qe.dem.backfillBorder(vr.dem,kr,Fr),Qe.neighboringTiles&&Qe.neighboringTiles[oi]&&(Qe.neighboringTiles[oi].backfilled=!0)))}},at.prototype.getTile=function(it){return this.getTileByID(it.key)},at.prototype.getTileByID=function(it){return this._tiles[it]},at.prototype._retainLoadedChildren=function(it,mt,Ft,ie){for(var he in this._tiles){var Ie=this._tiles[he];if(!(ie[he]||!Ie.hasData()||Ie.tileID.overscaledZ<=mt||Ie.tileID.overscaledZ>Ft)){for(var Qe=Ie.tileID;Ie&&Ie.tileID.overscaledZ>mt+1;){var vr=Ie.tileID.scaledTo(Ie.tileID.overscaledZ-1);Ie=this._tiles[vr.key],Ie&&Ie.hasData()&&(Qe=vr)}for(var kr=Qe;kr.overscaledZ>mt;)if(kr=kr.scaledTo(kr.overscaledZ-1),it[kr.key]){ie[Qe.key]=Qe;break}}}},at.prototype.findLoadedParent=function(it,mt){if(it.key in this._loadedParentTiles){var Ft=this._loadedParentTiles[it.key];return Ft&&Ft.tileID.overscaledZ>=mt?Ft:null}for(var ie=it.overscaledZ-1;ie>=mt;ie--){var he=it.scaledTo(ie),Ie=this._getLoadedTile(he);if(Ie)return Ie}},at.prototype._getLoadedTile=function(it){var mt=this._tiles[it.key];return mt&&mt.hasData()?mt:this._cache.getByKey(it.wrapped().key)},at.prototype.updateCacheSize=function(it){var mt=(Math.ceil(it.width/this._source.tileSize)+1)*(Math.ceil(it.height/this._source.tileSize)+1),Ft=Math.floor(mt*5),ie=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ft):Ft;this._cache.setMaxSize(ie)},at.prototype.handleWrapJump=function(it){var mt=(it-(this._prevLng===void 0?it:this._prevLng))/360,Ft=Math.round(mt);if(this._prevLng=it,Ft){var ie={};for(var he in this._tiles){var Ie=this._tiles[he];Ie.tileID=Ie.tileID.unwrapTo(Ie.tileID.wrap+Ft),ie[Ie.tileID.key]=Ie}for(var Qe in this._tiles=ie,this._timers)clearTimeout(this._timers[Qe]),delete this._timers[Qe];for(var vr in this._tiles){var kr=this._tiles[vr];this._setTileReloadTimer(vr,kr)}}},at.prototype.update=function(it){var mt=this;if(this.transform=it,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(it),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var Ft;this.used?this._source.tileID?Ft=it.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(tn){return new t.OverscaledTileID(tn.canonical.z,tn.wrap,tn.canonical.z,tn.canonical.x,tn.canonical.y)}):(Ft=it.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Ft=Ft.filter(function(tn){return mt._source.hasTile(tn)}))):Ft=[];var ie=it.coveringZoomLevel(this._source),he=Math.max(ie-at.maxOverzooming,this._source.minzoom),Ie=Math.max(ie+at.maxUnderzooming,this._source.minzoom),Qe=this._updateRetainedTiles(Ft,ie);if(yr(this._source.type)){for(var vr={},kr={},Fr=Object.keys(Qe),Gr=0,oi=Fr;Grthis._source.maxzoom){var Pi=vi.children(this._source.maxzoom)[0],Wi=this.getTile(Pi);if(Wi&&Wi.hasData()){Ft[Pi.key]=Pi;continue}}else{var Ta=vi.children(this._source.maxzoom);if(Ft[Ta[0].key]&&Ft[Ta[1].key]&&Ft[Ta[2].key]&&Ft[Ta[3].key])continue}for(var oa=yi.wasRequested(),da=vi.overscaledZ-1;da>=he;--da){var Aa=vi.scaledTo(da);if(ie[Aa.key]||(ie[Aa.key]=!0,yi=this.getTile(Aa),!yi&&oa&&(yi=this._addTile(Aa)),yi&&(Ft[Aa.key]=Aa,oa=yi.wasRequested(),yi.hasData())))break}}}return Ft},at.prototype._updateLoadedParentTileCache=function(){for(var it in this._loadedParentTiles={},this._tiles){for(var mt=[],Ft=void 0,ie=this._tiles[it].tileID;ie.overscaledZ>0;){if(ie.key in this._loadedParentTiles){Ft=this._loadedParentTiles[ie.key];break}mt.push(ie.key);var he=ie.scaledTo(ie.overscaledZ-1);if(Ft=this._getLoadedTile(he),Ft)break;ie=he}for(var Ie=0,Qe=mt;Ie0)&&(mt.hasData()&&mt.state!=="reloading"?this._cache.add(mt.tileID,mt,mt.getExpiryTimeout()):(mt.aborted=!0,this._abortTile(mt),this._unloadTile(mt))))},at.prototype.clearTiles=function(){for(var it in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(it);this._cache.reset()},at.prototype.tilesIn=function(it,mt,Ft){var ie=this,he=[],Ie=this.transform;if(!Ie)return he;for(var Qe=Ft?Ie.getCameraQueryGeometry(it):it,vr=it.map(function(da){return Ie.pointCoordinate(da)}),kr=Qe.map(function(da){return Ie.pointCoordinate(da)}),Fr=this.getIds(),Gr=1/0,oi=1/0,Ti=-1/0,vi=-1/0,yi=0,Pi=kr;yi=0&&en[1].y+tn>=0){var Xa=vr.map(function(Tn){return ga.getTilePoint(Tn)}),Ka=kr.map(function(Tn){return ga.getTilePoint(Tn)});he.push({tile:Aa,tileID:ga,queryGeometry:Xa,cameraQueryGeometry:Ka,scale:Va})}}},oa=0;oa=t.browser.now())return!0}return!1},at.prototype.setFeatureState=function(it,mt,Ft){it||(it="_geojsonTileLayer"),this._state.updateState(it,mt,Ft)},at.prototype.removeFeatureState=function(it,mt,Ft){it||(it="_geojsonTileLayer"),this._state.removeFeatureState(it,mt,Ft)},at.prototype.getFeatureState=function(it,mt){return it||(it="_geojsonTileLayer"),this._state.getState(it,mt)},at.prototype.setDependencies=function(it,mt,Ft){var ie=this._tiles[it];ie&&ie.setDependencies(mt,Ft)},at.prototype.reloadTilesForDependencies=function(it,mt){for(var Ft in this._tiles)this._tiles[Ft].hasDependency(it,mt)&&this._reloadTile(Ft,"reloading");this._cache.filter(function(ie){return!ie.hasDependency(it,mt)})},at})(t.Evented);We.maxOverzooming=10,We.maxUnderzooming=3;function $e($,at){var it=Math.abs($.wrap*2)-+($.wrap<0),mt=Math.abs(at.wrap*2)-+(at.wrap<0);return $.overscaledZ-at.overscaledZ||mt-it||at.canonical.y-$.canonical.y||at.canonical.x-$.canonical.x}function yr($){return $==="raster"||$==="image"||$==="video"}function Cr(){return new t.window.Worker(so.workerUrl)}var Sr="mapboxgl_preloaded_worker_pool",Dr=function(){this.active={}};Dr.prototype.acquire=function($){if(!this.workers)for(this.workers=[];this.workers.length0?(mt-ie)/he:0;return this.points[Ft].mult(1-Ie).add(this.points[at].mult(Ie))};var Tr=function($,at,it){var mt=this.boxCells=[],Ft=this.circleCells=[];this.xCellCount=Math.ceil($/it),this.yCellCount=Math.ceil(at/it);for(var ie=0;iethis.width||mt<0||at>this.height)return Ft?!1:[];var he=[];if($<=0&&at<=0&&this.width<=it&&this.height<=mt){if(Ft)return!0;for(var Ie=0;Ie0:he}},Tr.prototype._queryCircle=function($,at,it,mt,Ft){var ie=$-it,he=$+it,Ie=at-it,Qe=at+it;if(he<0||ie>this.width||Qe<0||Ie>this.height)return mt?!1:[];var vr=[],kr={hitTest:mt,circle:{x:$,y:at,radius:it},seenUids:{box:{},circle:{}}};return this._forEachCell(ie,Ie,he,Qe,this._queryCellCircle,vr,kr,Ft),mt?vr.length>0:vr},Tr.prototype.query=function($,at,it,mt,Ft){return this._query($,at,it,mt,!1,Ft)},Tr.prototype.hitTest=function($,at,it,mt,Ft){return this._query($,at,it,mt,!0,Ft)},Tr.prototype.hitTestCircle=function($,at,it,mt){return this._queryCircle($,at,it,!0,mt)},Tr.prototype._queryCell=function($,at,it,mt,Ft,ie,he,Ie){var Qe=he.seenUids,vr=this.boxCells[Ft];if(vr!==null)for(var kr=this.bboxes,Fr=0,Gr=vr;Fr=kr[Ti+0]&&mt>=kr[Ti+1]&&(!Ie||Ie(this.boxKeys[oi]))){if(he.hitTest)return ie.push(!0),!0;ie.push({key:this.boxKeys[oi],x1:kr[Ti],y1:kr[Ti+1],x2:kr[Ti+2],y2:kr[Ti+3]})}}}var vi=this.circleCells[Ft];if(vi!==null)for(var yi=this.circles,Pi=0,Wi=vi;Pihe*he+Ie*Ie},Tr.prototype._circleAndRectCollide=function($,at,it,mt,Ft,ie,he){var Ie=(ie-mt)/2,Qe=Math.abs($-(mt+Ie));if(Qe>Ie+it)return!1;var vr=(he-Ft)/2,kr=Math.abs(at-(Ft+vr));if(kr>vr+it)return!1;if(Qe<=Ie||kr<=vr)return!0;var Fr=Qe-Ie,Gr=kr-vr;return Fr*Fr+Gr*Gr<=it*it};function Vr($,at,it,mt,Ft){var ie=t.create();return at?(t.scale(ie,ie,[1/Ft,1/Ft,1]),it||t.rotateZ(ie,ie,mt.angle)):t.multiply(ie,mt.labelPlaneMatrix,$),ie}function li($,at,it,mt,Ft){if(at){var ie=t.clone($);return t.scale(ie,ie,[Ft,Ft,1]),it||t.rotateZ(ie,ie,-mt.angle),ie}else return mt.glCoordMatrix}function ci($,at){var it=[$.x,$.y,0,1];Xr(it,it,at);var mt=it[3];return{point:new t.Point(it[0]/mt,it[1]/mt),signedDistanceFromCamera:mt}}function Ni($,at){return .5+$/at*.5}function si($,at){var it=$[0]/$[3],mt=$[1]/$[3];return it>=-at[0]&&it<=at[0]&&mt>=-at[1]&&mt<=at[1]}function Ci($,at,it,mt,Ft,ie,he,Ie){var Qe=mt?$.textSizeData:$.iconSizeData,vr=t.evaluateSizeForZoom(Qe,it.transform.zoom),kr=[256/it.width*2+1,256/it.height*2+1],Fr=mt?$.text.dynamicLayoutVertexArray:$.icon.dynamicLayoutVertexArray;Fr.clear();for(var Gr=$.lineVertexArray,oi=mt?$.text.placedSymbolArray:$.icon.placedSymbolArray,Ti=it.transform.width/it.transform.height,vi=!1,yi=0;yiMath.abs(it.x-at.x)*mt?{useVertical:!0}:($===t.WritingMode.vertical?at.yit.x)?{needsFlipping:!0}:null}function Ha($,at,it,mt,Ft,ie,he,Ie,Qe,vr,kr,Fr,Gr,oi){var Ti=at/24,vi=$.lineOffsetX*Ti,yi=$.lineOffsetY*Ti,Pi;if($.numGlyphs>1){var Wi=$.glyphStartIndex+$.numGlyphs,Ta=$.lineStartIndex,oa=$.lineStartIndex+$.lineLength,da=wi(Ti,Ie,vi,yi,it,kr,Fr,$,Qe,ie,Gr);if(!da)return{notEnoughRoom:!0};var Aa=ci(da.first.point,he).point,ga=ci(da.last.point,he).point;if(mt&&!it){var Va=ma($.writingMode,Aa,ga,oi);if(Va)return Va}Pi=[da.first];for(var tn=$.glyphStartIndex+1;tn0?Tn.point:ya(Fr,Ka,en,1,Ft),_n=ma($.writingMode,en,vo,oi);if(_n)return _n}var Zn=Ga(Ti*Ie.getoffsetX($.glyphStartIndex),vi,yi,it,kr,Fr,$.segment,$.lineStartIndex,$.lineStartIndex+$.lineLength,Qe,ie,Gr);if(!Zn)return{notEnoughRoom:!0};Pi=[Zn]}for(var Wn=0,Qn=Pi;Wn0?1:-1,Ti=0;mt&&(oi*=-1,Ti=Math.PI),oi<0&&(Ti+=Math.PI);for(var vi=oi>0?Ie+he:Ie+he+1,yi=Ft,Pi=Ft,Wi=0,Ta=0,oa=Math.abs(Gr),da=[];Wi+Ta<=oa;){if(vi+=oi,vi=Qe)return null;if(Pi=yi,da.push(yi),yi=Fr[vi],yi===void 0){var Aa=new t.Point(vr.getx(vi),vr.gety(vi)),ga=ci(Aa,kr);if(ga.signedDistanceFromCamera>0)yi=Fr[vi]=ga.point;else{var Va=vi-oi;yi=ya(Wi===0?ie:new t.Point(vr.getx(Va),vr.gety(Va)),Aa,Pi,oa-Wi+1,kr)}}Wi+=Ta,Ta=Pi.dist(yi)}var tn=(oa-Wi)/Ta,en=yi.sub(Pi),Xa=en.mult(tn)._add(Pi);Xa._add(en._unit()._perp()._mult(it*oi));var Ka=Ti+Math.atan2(yi.y-Pi.y,yi.x-Pi.x);return da.push(Xa),{point:Xa,angle:Ka,path:da}}var Ea=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Fa($,at){for(var it=0;it<$;it++){var mt=at.length;at.resize(mt+4),at.float32.set(Ea,mt*3)}}function Xr($,at,it){var mt=at[0],Ft=at[1];return $[0]=it[0]*mt+it[4]*Ft+it[12],$[1]=it[1]*mt+it[5]*Ft+it[13],$[3]=it[3]*mt+it[7]*Ft+it[15],$}var ji=100,Li=function($,at,it){at===void 0&&(at=new Tr($.width+2*ji,$.height+2*ji,25)),it===void 0&&(it=new Tr($.width+2*ji,$.height+2*ji,25)),this.transform=$,this.grid=at,this.ignoredGrid=it,this.pitchfactor=Math.cos($._pitch)*$.cameraToCenterDistance,this.screenRightBoundary=$.width+ji,this.screenBottomBoundary=$.height+ji,this.gridRightBoundary=$.width+2*ji,this.gridBottomBoundary=$.height+2*ji};Li.prototype.placeCollisionBox=function($,at,it,mt,Ft){var ie=this.projectAndGetPerspectiveRatio(mt,$.anchorPointX,$.anchorPointY),he=it*ie.perspectiveRatio,Ie=$.x1*he+ie.point.x,Qe=$.y1*he+ie.point.y,vr=$.x2*he+ie.point.x,kr=$.y2*he+ie.point.y;return!this.isInsideGrid(Ie,Qe,vr,kr)||!at&&this.grid.hitTest(Ie,Qe,vr,kr,Ft)?{box:[],offscreen:!1}:{box:[Ie,Qe,vr,kr],offscreen:this.isOffscreen(Ie,Qe,vr,kr)}},Li.prototype.placeCollisionCircles=function($,at,it,mt,Ft,ie,he,Ie,Qe,vr,kr,Fr,Gr){var oi=[],Ti=new t.Point(at.anchorX,at.anchorY),vi=ci(Ti,ie),yi=Ni(this.transform.cameraToCenterDistance,vi.signedDistanceFromCamera),Pi=(vr?Ft/yi:Ft*yi)/t.ONE_EM,Wi=ci(Ti,he).point,Ta=wi(Pi,mt,at.lineOffsetX*Pi,at.lineOffsetY*Pi,!1,Wi,Ti,at,it,he,{}),oa=!1,da=!1,Aa=!0;if(Ta){for(var ga=Fr*.5*yi+Gr,Va=new t.Point(-ji,-ji),tn=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),en=new Di,Xa=Ta.first,Ka=Ta.last,Tn=[],vo=Xa.path.length-1;vo>=1;vo--)Tn.push(Xa.path[vo]);for(var _n=1;_n0){for(var ho=Tn[0].clone(),io=Tn[0].clone(),po=1;po=Va.x&&io.x<=tn.x&&ho.y>=Va.y&&io.y<=tn.y?[Tn]:io.xtn.x||io.ytn.y?[]:t.clipLine([Tn],Va.x,Va.y,tn.x,tn.y)}for(var Po=0,Vn=Qn;Po=this.screenRightBoundary||mtthis.screenBottomBoundary},Li.prototype.isInsideGrid=function($,at,it,mt){return it>=0&&$=0&&at0){var Wi;return this.prevPlacement&&this.prevPlacement.variableOffsets[Fr.crossTileID]&&this.prevPlacement.placements[Fr.crossTileID]&&this.prevPlacement.placements[Fr.crossTileID].text&&(Wi=this.prevPlacement.variableOffsets[Fr.crossTileID].anchor),this.variableOffsets[Fr.crossTileID]={textOffset:vi,width:it,height:mt,anchor:$,textBoxScale:Ft,prevAnchor:Wi},this.markUsedJustification(Gr,$,Fr,oi),Gr.allowVerticalPlacement&&(this.markUsedOrientation(Gr,oi,Fr),this.placedOrientations[Fr.crossTileID]=oi),{shift:yi,placedGlyphBoxes:Pi}}},jr.prototype.placeLayerBucketPart=function($,at,it){var mt=this,Ft=$.parameters,ie=Ft.bucket,he=Ft.layout,Ie=Ft.posMatrix,Qe=Ft.textLabelPlaneMatrix,vr=Ft.labelToScreenMatrix,kr=Ft.textPixelRatio,Fr=Ft.holdingForFade,Gr=Ft.collisionBoxArray,oi=Ft.partiallyEvaluatedTextSize,Ti=Ft.collisionGroup,vi=he.get("text-optional"),yi=he.get("icon-optional"),Pi=he.get("text-allow-overlap"),Wi=he.get("icon-allow-overlap"),Ta=he.get("text-rotation-alignment")==="map",oa=he.get("text-pitch-alignment")==="map",da=he.get("icon-text-fit")!=="none",Aa=he.get("symbol-z-order")==="viewport-y",ga=Pi&&(Wi||!ie.hasIconData()||yi),Va=Wi&&(Pi||!ie.hasTextData()||vi);!ie.collisionArrays&&Gr&&ie.deserializeCollisionBoxes(Gr);var tn=function(_n,Zn){if(!at[_n.crossTileID]){if(Fr){mt.placements[_n.crossTileID]=new na(!1,!1,!1);return}var Wn=!1,Qn=!1,ho=!0,io=null,po={box:null,offscreen:null},Po={box:null,offscreen:null},Vn=null,mo=null,vs=null,fs=0,Ic=0,Jo=0;Zn.textFeatureIndex?fs=Zn.textFeatureIndex:_n.useRuntimeCollisionCircles&&(fs=_n.featureIndex),Zn.verticalTextFeatureIndex&&(Ic=Zn.verticalTextFeatureIndex);var ml=Zn.textBox;if(ml){var Iu=function(ds){var yl=t.WritingMode.horizontal;if(ie.allowVerticalPlacement&&!ds&&mt.prevPlacement){var Jl=mt.prevPlacement.placedOrientations[_n.crossTileID];Jl&&(mt.placedOrientations[_n.crossTileID]=Jl,yl=Jl,mt.markUsedOrientation(ie,yl,_n))}return yl},Pc=function(ds,yl){if(ie.allowVerticalPlacement&&_n.numVerticalGlyphVertices>0&&Zn.verticalTextBox)for(var Jl=0,lf=ie.writingModes;Jl0&&(Ks=Ks.filter(function(ds){return ds!==Pu.anchor}),Ks.unshift(Pu.anchor))}var zu=function(ds,yl,Jl){for(var lf=ds.x2-ds.x1,Dp=ds.y2-ds.y1,Lf=_n.textBoxScale,Kh=da&&!Wi?yl:null,zc={box:[],offscreen:!1},Kc=Pi?Ks.length*2:Ks.length,pu=0;pu=Ks.length,Qc=mt.attemptAnchorPlacement(dh,ds,lf,Dp,Lf,Ta,oa,kr,Ie,Ti,np,_n,ie,Jl,Kh);if(Qc&&(zc=Qc.placedGlyphBoxes,zc&&zc.box&&zc.box.length)){Wn=!0,io=Qc.shift;break}}return zc};Pc(function(){return zu(ml,Zn.iconBox,t.WritingMode.horizontal)},function(){var ds=Zn.verticalTextBox,yl=po&&po.box&&po.box.length;return ie.allowVerticalPlacement&&!yl&&_n.numVerticalGlyphVertices>0&&ds?zu(ds,Zn.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}}),po&&(Wn=po.box,ho=po.offscreen);var _c=Iu(po&&po.box);if(!Wn&&mt.prevPlacement){var Rh=mt.prevPlacement.variableOffsets[_n.crossTileID];Rh&&(mt.variableOffsets[_n.crossTileID]=Rh,mt.markUsedJustification(ie,Rh.anchor,_n,_c))}}else{var sl=function(ds,yl){var Jl=mt.collisionIndex.placeCollisionBox(ds,Pi,kr,Ie,Ti.predicate);return Jl&&Jl.box&&Jl.box.length&&(mt.markUsedOrientation(ie,yl,_n),mt.placedOrientations[_n.crossTileID]=yl),Jl};Pc(function(){return sl(ml,t.WritingMode.horizontal)},function(){var ds=Zn.verticalTextBox;return ie.allowVerticalPlacement&&_n.numVerticalGlyphVertices>0&&ds?sl(ds,t.WritingMode.vertical):{box:null,offscreen:null}}),Iu(po&&po.box&&po.box.length)}}if(Vn=po,Wn=Vn&&Vn.box&&Vn.box.length>0,ho=Vn&&Vn.offscreen,_n.useRuntimeCollisionCircles){var Xh=ie.text.placedSymbolArray.get(_n.centerJustifiedTextSymbolIndex),$h=t.evaluateSizeForFeature(ie.textSizeData,oi,Xh),ph=he.get("text-padding"),Jh=_n.collisionCircleDiameter;mo=mt.collisionIndex.placeCollisionCircles(Pi,Xh,ie.lineVertexArray,ie.glyphOffsetArray,$h,Ie,Qe,vr,it,oa,Ti.predicate,Jh,ph),Wn=Pi||mo.circles.length>0&&!mo.collisionDetected,ho&&(ho=mo.offscreen)}if(Zn.iconFeatureIndex&&(Jo=Zn.iconFeatureIndex),Zn.iconBox){var Sh=function(ds){var yl=da&&io?hr(ds,io.x,io.y,Ta,oa,mt.transform.angle):ds;return mt.collisionIndex.placeCollisionBox(yl,Wi,kr,Ie,Ti.predicate)};Po&&Po.box&&Po.box.length&&Zn.verticalIconBox?(vs=Sh(Zn.verticalIconBox),Qn=vs.box.length>0):(vs=Sh(Zn.iconBox),Qn=vs.box.length>0),ho&&(ho=vs.offscreen)}var $c=vi||_n.numHorizontalGlyphVertices===0&&_n.numVerticalGlyphVertices===0,Ou=yi||_n.numIconVertices===0;if(!$c&&!Ou?Qn=Wn=Qn&&Wn:Ou?$c||Qn&&(Qn=Wn):Wn=Qn&&Wn,Wn&&Vn&&Vn.box&&(Po&&Po.box&&Ic?mt.collisionIndex.insertCollisionBox(Vn.box,he.get("text-ignore-placement"),ie.bucketInstanceId,Ic,Ti.ID):mt.collisionIndex.insertCollisionBox(Vn.box,he.get("text-ignore-placement"),ie.bucketInstanceId,fs,Ti.ID)),Qn&&vs&&mt.collisionIndex.insertCollisionBox(vs.box,he.get("icon-ignore-placement"),ie.bucketInstanceId,Jo,Ti.ID),mo&&(Wn&&mt.collisionIndex.insertCollisionCircles(mo.circles,he.get("text-ignore-placement"),ie.bucketInstanceId,fs,Ti.ID),it)){var Fh=ie.bucketInstanceId,ps=mt.collisionCircleArrays[Fh];ps===void 0&&(ps=mt.collisionCircleArrays[Fh]=new fa);for(var Jc=0;Jc=0;--Xa){var Ka=en[Xa];tn(ie.symbolInstances.get(Ka),ie.collisionArrays[Ka])}else for(var Tn=$.symbolInstanceStart;Tn<$.symbolInstanceEnd;Tn++)tn(ie.symbolInstances.get(Tn),ie.collisionArrays[Tn]);if(it&&ie.bucketInstanceId in this.collisionCircleArrays){var vo=this.collisionCircleArrays[ie.bucketInstanceId];t.invert(vo.invProjMatrix,Ie),vo.viewportMatrix=this.collisionIndex.getViewportMatrix()}ie.justReloaded=!1},jr.prototype.markUsedJustification=function($,at,it,mt){for(var Ft={left:it.leftJustifiedTextSymbolIndex,center:it.centerJustifiedTextSymbolIndex,right:it.rightJustifiedTextSymbolIndex},ie=mt===t.WritingMode.vertical?it.verticalPlacedTextSymbolIndex:Ft[t.getAnchorJustification(at)],he=[it.leftJustifiedTextSymbolIndex,it.centerJustifiedTextSymbolIndex,it.rightJustifiedTextSymbolIndex,it.verticalPlacedTextSymbolIndex],Ie=0,Qe=he;Ie=0&&(ie>=0&&vr!==ie?$.text.placedSymbolArray.get(vr).crossTileID=0:$.text.placedSymbolArray.get(vr).crossTileID=it.crossTileID)}},jr.prototype.markUsedOrientation=function($,at,it){for(var mt=at===t.WritingMode.horizontal||at===t.WritingMode.horizontalOnly?at:0,Ft=at===t.WritingMode.vertical?at:0,ie=[it.leftJustifiedTextSymbolIndex,it.centerJustifiedTextSymbolIndex,it.rightJustifiedTextSymbolIndex],he=0,Ie=ie;he0||oa>0,tn=Wi.numIconVertices>0,en=mt.placedOrientations[Wi.crossTileID],Xa=en===t.WritingMode.vertical,Ka=en===t.WritingMode.horizontal||en===t.WritingMode.horizontalOnly;if(Va){var Tn=ai(ga.text),vo=Xa?_i:Tn;oi($.text,Ta,vo);var _n=Ka?_i:Tn;oi($.text,oa,_n);var Zn=ga.text.isHidden();[Wi.rightJustifiedTextSymbolIndex,Wi.centerJustifiedTextSymbolIndex,Wi.leftJustifiedTextSymbolIndex].forEach(function(Jo){Jo>=0&&($.text.placedSymbolArray.get(Jo).hidden=Zn||Xa?1:0)}),Wi.verticalPlacedTextSymbolIndex>=0&&($.text.placedSymbolArray.get(Wi.verticalPlacedTextSymbolIndex).hidden=Zn||Ka?1:0);var Wn=mt.variableOffsets[Wi.crossTileID];Wn&&mt.markUsedJustification($,Wn.anchor,Wi,en);var Qn=mt.placedOrientations[Wi.crossTileID];Qn&&(mt.markUsedJustification($,"left",Wi,Qn),mt.markUsedOrientation($,Qn,Wi))}if(tn){var ho=ai(ga.icon),io=!(Fr&&Wi.verticalPlacedIconSymbolIndex&&Xa);if(Wi.placedIconSymbolIndex>=0){var po=io?ho:_i;oi($.icon,Wi.numIconVertices,po),$.icon.placedSymbolArray.get(Wi.placedIconSymbolIndex).hidden=ga.icon.isHidden()}if(Wi.verticalPlacedIconSymbolIndex>=0){var Po=io?_i:ho;oi($.icon,Wi.numVerticalIconVertices,Po),$.icon.placedSymbolArray.get(Wi.verticalPlacedIconSymbolIndex).hidden=ga.icon.isHidden()}}if($.hasIconCollisionBoxData()||$.hasTextCollisionBoxData()){var Vn=$.collisionArrays[Pi];if(Vn){var mo=new t.Point(0,0);if(Vn.textBox||Vn.verticalTextBox){var vs=!0;if(Qe){var fs=mt.variableOffsets[da];fs?(mo=On(fs.anchor,fs.width,fs.height,fs.textOffset,fs.textBoxScale),vr&&mo._rotate(kr?mt.transform.angle:-mt.transform.angle)):vs=!1}Vn.textBox&&Ii($.textCollisionBox.collisionVertexArray,ga.text.placed,!vs||Xa,mo.x,mo.y),Vn.verticalTextBox&&Ii($.textCollisionBox.collisionVertexArray,ga.text.placed,!vs||Ka,mo.x,mo.y)}var Ic=!!(!Ka&&Vn.verticalIconBox);Vn.iconBox&&Ii($.iconCollisionBox.collisionVertexArray,ga.icon.placed,Ic,Fr?mo.x:0,Fr?mo.y:0),Vn.verticalIconBox&&Ii($.iconCollisionBox.collisionVertexArray,ga.icon.placed,!Ic,Fr?mo.x:0,Fr?mo.y:0)}}},vi=0;vi<$.symbolInstances.length;vi++)Ti(vi);if($.sortFeatures(this.transform.angle),this.retainedQueryData[$.bucketInstanceId]&&(this.retainedQueryData[$.bucketInstanceId].featureSortOrder=$.featureSortOrder),$.hasTextData()&&$.text.opacityVertexBuffer&&$.text.opacityVertexBuffer.updateData($.text.opacityVertexArray),$.hasIconData()&&$.icon.opacityVertexBuffer&&$.icon.opacityVertexBuffer.updateData($.icon.opacityVertexArray),$.hasIconCollisionBoxData()&&$.iconCollisionBox.collisionVertexBuffer&&$.iconCollisionBox.collisionVertexBuffer.updateData($.iconCollisionBox.collisionVertexArray),$.hasTextCollisionBoxData()&&$.textCollisionBox.collisionVertexBuffer&&$.textCollisionBox.collisionVertexBuffer.updateData($.textCollisionBox.collisionVertexArray),$.bucketInstanceId in this.collisionCircleArrays){var yi=this.collisionCircleArrays[$.bucketInstanceId];$.placementInvProjMatrix=yi.invProjMatrix,$.placementViewportMatrix=yi.viewportMatrix,$.collisionCircleArray=yi.circles,delete this.collisionCircleArrays[$.bucketInstanceId]}},jr.prototype.symbolFadeChange=function($){return this.fadeDuration===0?1:($-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},jr.prototype.zoomAdjustment=function($){return Math.max(0,(this.transform.zoom-$)/1.5)},jr.prototype.hasTransitions=function($){return this.stale||$-this.lastPlacementChangeTime$},jr.prototype.setStale=function(){this.stale=!0};function Ii($,at,it,mt,Ft){$.emplaceBack(at?1:0,it?1:0,mt||0,Ft||0),$.emplaceBack(at?1:0,it?1:0,mt||0,Ft||0),$.emplaceBack(at?1:0,it?1:0,mt||0,Ft||0),$.emplaceBack(at?1:0,it?1:0,mt||0,Ft||0)}var Hi=2**25,Oi=2**24,sa=2**17,Qi=2**16,qi=2**9,Zr=2**8,Wr=2**1;function ai($){if($.opacity===0&&!$.placed)return 0;if($.opacity===1&&$.placed)return 4294967295;var at=$.placed?1:0,it=Math.floor($.opacity*127);return it*Hi+at*Oi+it*sa+at*Qi+it*qi+at*Zr+it*Wr+at}var _i=0,ua=function($){this._sortAcrossTiles=$.layout.get("symbol-z-order")!=="viewport-y"&&$.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ua.prototype.continuePlacement=function($,at,it,mt,Ft){for(var ie=this._bucketParts;this._currentTileIndex<$.length;){var he=$[this._currentTileIndex];if(at.getBucketParts(ie,mt,he,this._sortAcrossTiles),this._currentTileIndex++,Ft())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,ie.sort(function(Qe,vr){return Qe.sortKey-vr.sortKey}));this._currentPartIndex2};this._currentPlacementIndex>=0;){var he=at[$[this._currentPlacementIndex]],Ie=this.placement.collisionIndex.transform.zoom;if(he.type==="symbol"&&(!he.minzoom||he.minzoom<=Ie)&&(!he.maxzoom||he.maxzoom>Ie)){if(this._inProgressLayer||(this._inProgressLayer=new ua(he)),this._inProgressLayer.continuePlacement(it[he.source],this.placement,this._showCollisionBoxes,he,ie))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ea.prototype.commit=function($){return this.placement.commit($),this.placement};var zi=512/t.EXTENT/2,wa=function($,at,it){this.tileID=$,this.indexedSymbolInstances={},this.bucketInstanceId=it;for(var mt=0;mt$.overscaledZ)for(var Qe in Ie){var vr=Ie[Qe];vr.tileID.isChildOf($)&&vr.findMatches(at.symbolInstances,$,ie)}else{var kr=Ie[$.scaledTo(Number(he)).key];kr&&kr.findMatches(at.symbolInstances,$,ie)}}for(var Fr=0;Fr0)throw Error("Unimplemented: "+ie.map(function(he){return he.command}).join(", ")+".");return Ft.forEach(function(he){he.command!=="setTransition"&&mt[he.command].apply(mt,he.args)}),this.stylesheet=it,!0},at.prototype.addImage=function(it,mt){if(this.getImage(it))return this.fire(new t.ErrorEvent(Error("An image with this name already exists.")));this.imageManager.addImage(it,mt),this._afterImageUpdated(it)},at.prototype.updateImage=function(it,mt){this.imageManager.updateImage(it,mt)},at.prototype.getImage=function(it){return this.imageManager.getImage(it)},at.prototype.removeImage=function(it){if(!this.getImage(it))return this.fire(new t.ErrorEvent(Error("No image with this name exists.")));this.imageManager.removeImage(it),this._afterImageUpdated(it)},at.prototype._afterImageUpdated=function(it){this._availableImages=this.imageManager.listImages(),this._changedImages[it]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))},at.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},at.prototype.addSource=function(it,mt,Ft){var ie=this;if(Ft===void 0&&(Ft={}),this._checkLoaded(),this.sourceCaches[it]!==void 0)throw Error("There is already a source with this ID");if(!mt.type)throw Error("The type property must be defined, but only the following properties were given: "+Object.keys(mt).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(mt.type)>=0&&this._validate(t.validateStyle.source,"sources."+it,mt,null,Ft))){this.map&&this.map._collectResourceTiming&&(mt.collectResourceTiming=!0);var he=this.sourceCaches[it]=new We(it,mt,this.dispatcher);he.style=this,he.setEventedParent(this,function(){return{isSourceLoaded:ie.loaded(),source:he.serialize(),sourceId:it}}),he.onAdd(this.map),this._changed=!0}},at.prototype.removeSource=function(it){if(this._checkLoaded(),this.sourceCaches[it]===void 0)throw Error("There is no source with this ID");for(var mt in this._layers)if(this._layers[mt].source===it)return this.fire(new t.ErrorEvent(Error('Source "'+it+'" cannot be removed while layer "'+mt+'" is using it.')));var Ft=this.sourceCaches[it];delete this.sourceCaches[it],delete this._updatedSources[it],Ft.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:it})),Ft.setEventedParent(null),Ft.clearTiles(),Ft.onRemove&&Ft.onRemove(this.map),this._changed=!0},at.prototype.setGeoJSONSourceData=function(it,mt){this._checkLoaded(),this.sourceCaches[it].getSource().setData(mt),this._changed=!0},at.prototype.getSource=function(it){return this.sourceCaches[it]&&this.sourceCaches[it].getSource()},at.prototype.addLayer=function(it,mt,Ft){Ft===void 0&&(Ft={}),this._checkLoaded();var ie=it.id;if(this.getLayer(ie)){this.fire(new t.ErrorEvent(Error('Layer with id "'+ie+'" already exists on this map')));return}var he;if(it.type==="custom"){if(Wa(this,t.validateCustomStyleLayer(it)))return;he=t.createStyleLayer(it)}else{if(typeof it.source=="object"&&(this.addSource(ie,it.source),it=t.clone$1(it),it=t.extend(it,{source:ie})),this._validate(t.validateStyle.layer,"layers."+ie,it,{arrayIndex:-1},Ft))return;he=t.createStyleLayer(it),this._validateLayer(he),he.setEventedParent(this,{layer:{id:ie}}),this._serializedLayers[he.id]=he.serialize()}var Ie=mt?this._order.indexOf(mt):this._order.length;if(mt&&Ie===-1){this.fire(new t.ErrorEvent(Error('Layer with id "'+mt+'" does not exist on this map.')));return}if(this._order.splice(Ie,0,ie),this._layerOrderChanged=!0,this._layers[ie]=he,this._removedLayers[ie]&&he.source&&he.type!=="custom"){var Qe=this._removedLayers[ie];delete this._removedLayers[ie],Qe.type===he.type?(this._updatedSources[he.source]="reload",this.sourceCaches[he.source].pause()):this._updatedSources[he.source]="clear"}this._updateLayer(he),he.onAdd&&he.onAdd(this.map)},at.prototype.moveLayer=function(it,mt){if(this._checkLoaded(),this._changed=!0,!this._layers[it]){this.fire(new t.ErrorEvent(Error("The layer '"+it+"' does not exist in the map's style and cannot be moved.")));return}if(it!==mt){var Ft=this._order.indexOf(it);this._order.splice(Ft,1);var ie=mt?this._order.indexOf(mt):this._order.length;if(mt&&ie===-1){this.fire(new t.ErrorEvent(Error('Layer with id "'+mt+'" does not exist on this map.')));return}this._order.splice(ie,0,it),this._layerOrderChanged=!0}},at.prototype.removeLayer=function(it){this._checkLoaded();var mt=this._layers[it];if(!mt){this.fire(new t.ErrorEvent(Error("The layer '"+it+"' does not exist in the map's style and cannot be removed.")));return}mt.setEventedParent(null);var Ft=this._order.indexOf(it);this._order.splice(Ft,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[it]=mt,delete this._layers[it],delete this._serializedLayers[it],delete this._updatedLayers[it],delete this._updatedPaintProps[it],mt.onRemove&&mt.onRemove(this.map)},at.prototype.getLayer=function(it){return this._layers[it]},at.prototype.hasLayer=function(it){return it in this._layers},at.prototype.setLayerZoomRange=function(it,mt,Ft){this._checkLoaded();var ie=this.getLayer(it);if(!ie){this.fire(new t.ErrorEvent(Error("The layer '"+it+"' does not exist in the map's style and cannot have zoom extent.")));return}ie.minzoom===mt&&ie.maxzoom===Ft||(mt!=null&&(ie.minzoom=mt),Ft!=null&&(ie.maxzoom=Ft),this._updateLayer(ie))},at.prototype.setFilter=function(it,mt,Ft){Ft===void 0&&(Ft={}),this._checkLoaded();var ie=this.getLayer(it);if(!ie){this.fire(new t.ErrorEvent(Error("The layer '"+it+"' does not exist in the map's style and cannot be filtered.")));return}if(!t.deepEqual(ie.filter,mt)){if(mt==null){ie.filter=void 0,this._updateLayer(ie);return}this._validate(t.validateStyle.filter,"layers."+ie.id+".filter",mt,null,Ft)||(ie.filter=t.clone$1(mt),this._updateLayer(ie))}},at.prototype.getFilter=function(it){return t.clone$1(this.getLayer(it).filter)},at.prototype.setLayoutProperty=function(it,mt,Ft,ie){ie===void 0&&(ie={}),this._checkLoaded();var he=this.getLayer(it);if(!he){this.fire(new t.ErrorEvent(Error("The layer '"+it+"' does not exist in the map's style and cannot be styled.")));return}t.deepEqual(he.getLayoutProperty(mt),Ft)||(he.setLayoutProperty(mt,Ft,ie),this._updateLayer(he))},at.prototype.getLayoutProperty=function(it,mt){var Ft=this.getLayer(it);if(!Ft){this.fire(new t.ErrorEvent(Error("The layer '"+it+"' does not exist in the map's style.")));return}return Ft.getLayoutProperty(mt)},at.prototype.setPaintProperty=function(it,mt,Ft,ie){ie===void 0&&(ie={}),this._checkLoaded();var he=this.getLayer(it);if(!he){this.fire(new t.ErrorEvent(Error("The layer '"+it+"' does not exist in the map's style and cannot be styled.")));return}t.deepEqual(he.getPaintProperty(mt),Ft)||(he.setPaintProperty(mt,Ft,ie)&&this._updateLayer(he),this._changed=!0,this._updatedPaintProps[it]=!0)},at.prototype.getPaintProperty=function(it,mt){return this.getLayer(it).getPaintProperty(mt)},at.prototype.setFeatureState=function(it,mt){this._checkLoaded();var Ft=it.source,ie=it.sourceLayer,he=this.sourceCaches[Ft];if(he===void 0){this.fire(new t.ErrorEvent(Error("The source '"+Ft+"' does not exist in the map's style.")));return}var Ie=he.getSource().type;if(Ie==="geojson"&&ie){this.fire(new t.ErrorEvent(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ie==="vector"&&!ie){this.fire(new t.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));return}it.id===void 0&&this.fire(new t.ErrorEvent(Error("The feature id parameter must be provided."))),he.setFeatureState(ie,it.id,mt)},at.prototype.removeFeatureState=function(it,mt){this._checkLoaded();var Ft=it.source,ie=this.sourceCaches[Ft];if(ie===void 0){this.fire(new t.ErrorEvent(Error("The source '"+Ft+"' does not exist in the map's style.")));return}var he=ie.getSource().type,Ie=he==="vector"?it.sourceLayer:void 0;if(he==="vector"&&!Ie){this.fire(new t.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(mt&&typeof it.id!="string"&&typeof it.id!="number"){this.fire(new t.ErrorEvent(Error("A feature id is required to remove its specific state property.")));return}ie.removeFeatureState(Ie,it.id,mt)},at.prototype.getFeatureState=function(it){this._checkLoaded();var mt=it.source,Ft=it.sourceLayer,ie=this.sourceCaches[mt];if(ie===void 0){this.fire(new t.ErrorEvent(Error("The source '"+mt+"' does not exist in the map's style.")));return}if(ie.getSource().type==="vector"&&!Ft){this.fire(new t.ErrorEvent(Error("The sourceLayer parameter must be provided for vector source types.")));return}return it.id===void 0&&this.fire(new t.ErrorEvent(Error("The feature id parameter must be provided."))),ie.getFeatureState(Ft,it.id)},at.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},at.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,function(it){return it.serialize()}),layers:this._serializeLayers(this._order)},function(it){return it!==void 0})},at.prototype._updateLayer=function(it){this._updatedLayers[it.id]=!0,it.source&&!this._updatedSources[it.source]&&this.sourceCaches[it.source].getSource().type!=="raster"&&(this._updatedSources[it.source]="reload",this.sourceCaches[it.source].pause()),this._changed=!0},at.prototype._flattenAndSortRenderedFeatures=function(it){for(var mt=this,Ft=function(en){return mt._layers[en].type==="fill-extrusion"},ie={},he=[],Ie=this._order.length-1;Ie>=0;Ie--){var Qe=this._order[Ie];if(Ft(Qe)){ie[Qe]=Ie;for(var vr=0,kr=it;vr=0;yi--){var Pi=this._order[yi];if(Ft(Pi))for(var Wi=he.length-1;Wi>=0;Wi--){var Ta=he[Wi].feature;if(ie[Ta.layer.id] 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,ah=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Rc=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Th=`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,_u="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",nh=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,ic="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",oh=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,sh=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,ls=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,us=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,tu=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Gl=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`,lh=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,kc=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,bu=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Fc="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",kh=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,rl=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,eu=`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,El=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,ao=`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,ru=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Cl=ko(Qo,Gn),Ac=ko(Ml,xs),ju=ko(xo,_s),Ns=ko(Fu,Oo),Zo=ko(zo,As),Bc=ko(bo,No),Nc=ko(bs,Do),wu=ko(gs,Sl),uh=ko(Bu,jo),ch=ko(yu,Bs),ac=ko(ss,vu),iu=ko(cl,el),ws=ko(Nu,xu),Ms=ko(rc,Hl),jc=ko(bh,wh),il=ko(ah,Rc),Ah=ko(Th,_u),nc=ko(nh,ic),Uu=ko(oh,sh),Uc=ko(ls,us),Vc=ko(tu,Gl),oc=ko(lh,kc),Tu=ko(bu,Fc),Vu=ko(kh,rl),qc=ko(eu,El),qu=ko(ao,ru);function ko($,at){var it=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,mt=at.match(/attribute ([\w]+) ([\w]+)/g),Ft=$.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ie=at.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),he=ie?ie.concat(Ft):Ft,Ie={};return $=$.replace(it,function(Qe,vr,kr,Fr,Gr){return Ie[Gr]=!0,vr==="define"?` +#ifndef HAS_UNIFORM_u_`+Gr+` +varying `+kr+" "+Fr+" "+Gr+`; +#else +uniform `+kr+" "+Fr+" u_"+Gr+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+Gr+` + `+kr+" "+Fr+" "+Gr+" = u_"+Gr+`; +#endif +`}),at=at.replace(it,function(Qe,vr,kr,Fr,Gr){var oi=Fr==="float"?"vec2":"vec4",Ti=Gr.match(/color/)?"color":oi;return Ie[Gr]?vr==="define"?` +#ifndef HAS_UNIFORM_u_`+Gr+` +uniform lowp float u_`+Gr+`_t; +attribute `+kr+" "+oi+" a_"+Gr+`; +varying `+kr+" "+Fr+" "+Gr+`; +#else +uniform `+kr+" "+Fr+" u_"+Gr+`; +#endif +`:Ti==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Gr+` + `+Gr+" = a_"+Gr+`; +#else + `+kr+" "+Fr+" "+Gr+" = u_"+Gr+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+Gr+` + `+Gr+" = unpack_mix_"+Ti+"(a_"+Gr+", u_"+Gr+`_t); +#else + `+kr+" "+Fr+" "+Gr+" = u_"+Gr+`; +#endif +`:vr==="define"?` +#ifndef HAS_UNIFORM_u_`+Gr+` +uniform lowp float u_`+Gr+`_t; +attribute `+kr+" "+oi+" a_"+Gr+`; +#else +uniform `+kr+" "+Fr+" u_"+Gr+`; +#endif +`:Ti==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Gr+` + `+kr+" "+Fr+" "+Gr+" = a_"+Gr+`; +#else + `+kr+" "+Fr+" "+Gr+" = u_"+Gr+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+Gr+` + `+kr+" "+Fr+" "+Gr+" = unpack_mix_"+Ti+"(a_"+Gr+", u_"+Gr+`_t); +#else + `+kr+" "+Fr+" "+Gr+" = u_"+Gr+`; +#endif +`}),{fragmentSource:$,vertexSource:at,staticAttributes:mt,staticUniforms:he}}var au=Object.freeze({__proto__:null,prelude:Cl,background:Ac,backgroundPattern:ju,circle:Ns,clippingMask:Zo,heatmap:Bc,heatmapTexture:Nc,collisionBox:wu,collisionCircle:uh,debug:ch,fill:ac,fillOutline:iu,fillOutlinePattern:ws,fillPattern:Ms,fillExtrusion:jc,fillExtrusionPattern:il,hillshadePrepare:Ah,hillshade:nc,line:Uu,lineGradient:Uc,linePattern:Vc,lineSDF:oc,raster:Tu,symbolIcon:Vu,symbolSDF:qc,symbolTextAndIcon:qu}),qs=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};qs.prototype.bind=function($,at,it,mt,Ft,ie,he,Ie){this.context=$;for(var Qe=this.boundPaintVertexBuffers.length!==mt.length,vr=0;!Qe&&vr>16,Ie>>16],u_pixel_coord_lower:[he&65535,Ie&65535]}}function Hc($,at,it,mt){var Ft=it.imageManager.getPattern($.from.toString()),ie=it.imageManager.getPattern($.to.toString()),he=it.imageManager.getPixelSize(),Ie=he.width,Qe=he.height,vr=2**mt.tileID.overscaledZ,kr=mt.tileSize*2**it.transform.tileZoom/vr,Fr=kr*(mt.tileID.canonical.x+mt.tileID.wrap*vr),Gr=kr*mt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Ft.tl,u_pattern_br_a:Ft.br,u_pattern_tl_b:ie.tl,u_pattern_br_b:ie.br,u_texsize:[Ie,Qe],u_mix:at.t,u_pattern_size_a:Ft.displaySize,u_pattern_size_b:ie.displaySize,u_scale_a:at.fromScale,u_scale_b:at.toScale,u_tile_units_to_pixels:1/Si(mt,1,it.transform.tileZoom),u_pixel_coord_upper:[Fr>>16,Gr>>16],u_pixel_coord_lower:[Fr&65535,Gr&65535]}}var Ss=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_lightpos:new t.Uniform3f($,at.u_lightpos),u_lightintensity:new t.Uniform1f($,at.u_lightintensity),u_lightcolor:new t.Uniform3f($,at.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,at.u_vertical_gradient),u_opacity:new t.Uniform1f($,at.u_opacity)}},hl=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_lightpos:new t.Uniform3f($,at.u_lightpos),u_lightintensity:new t.Uniform1f($,at.u_lightintensity),u_lightcolor:new t.Uniform3f($,at.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,at.u_vertical_gradient),u_height_factor:new t.Uniform1f($,at.u_height_factor),u_image:new t.Uniform1i($,at.u_image),u_texsize:new t.Uniform2f($,at.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,at.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,at.u_pixel_coord_lower),u_scale:new t.Uniform3f($,at.u_scale),u_fade:new t.Uniform1f($,at.u_fade),u_opacity:new t.Uniform1f($,at.u_opacity)}},wo=function($,at,it,mt){var Ft=at.style.light,ie=Ft.properties.get("position"),he=[ie.x,ie.y,ie.z],Ie=t.create$1();Ft.properties.get("anchor")==="viewport"&&t.fromRotation(Ie,-at.transform.angle),t.transformMat3(he,he,Ie);var Qe=Ft.properties.get("color");return{u_matrix:$,u_lightpos:he,u_lightintensity:Ft.properties.get("intensity"),u_lightcolor:[Qe.r,Qe.g,Qe.b],u_vertical_gradient:+it,u_opacity:mt}},Ll=function($,at,it,mt,Ft,ie,he){return t.extend(wo($,at,it,mt),Wo(ie,at,he),{u_height_factor:-(2**Ft.overscaledZ)/he.tileSize/8})},Yn=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix)}},Il=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_image:new t.Uniform1i($,at.u_image),u_texsize:new t.Uniform2f($,at.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,at.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,at.u_pixel_coord_lower),u_scale:new t.Uniform3f($,at.u_scale),u_fade:new t.Uniform1f($,at.u_fade)}},lo=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_world:new t.Uniform2f($,at.u_world)}},Pl=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_world:new t.Uniform2f($,at.u_world),u_image:new t.Uniform1i($,at.u_image),u_texsize:new t.Uniform2f($,at.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,at.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,at.u_pixel_coord_lower),u_scale:new t.Uniform3f($,at.u_scale),u_fade:new t.Uniform1f($,at.u_fade)}},Gu=function($){return{u_matrix:$}},no=function($,at,it,mt){return t.extend(Gu($),Wo(it,at,mt))},zl=function($,at){return{u_matrix:$,u_world:at}},hh=function($,at,it,mt,Ft){return t.extend(no($,at,it,mt),{u_world:Ft})},Mh=function($,at){return{u_camera_to_center_distance:new t.Uniform1f($,at.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i($,at.u_scale_with_map),u_pitch_with_map:new t.Uniform1i($,at.u_pitch_with_map),u_extrude_scale:new t.Uniform2f($,at.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f($,at.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f($,at.u_matrix)}},Gc=function($,at,it,mt){var Ft=$.transform,ie,he;if(mt.paint.get("circle-pitch-alignment")==="map"){var Ie=Si(it,1,Ft.zoom);ie=!0,he=[Ie,Ie]}else ie=!1,he=Ft.pixelsToGLUnits;return{u_camera_to_center_distance:Ft.cameraToCenterDistance,u_scale_with_map:+(mt.paint.get("circle-pitch-scale")==="map"),u_matrix:$.translatePosMatrix(at.posMatrix,it,mt.paint.get("circle-translate"),mt.paint.get("circle-translate-anchor")),u_pitch_with_map:+ie,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:he}},sc=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_camera_to_center_distance:new t.Uniform1f($,at.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f($,at.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f($,at.u_extrude_scale),u_overscale_factor:new t.Uniform1f($,at.u_overscale_factor)}},Zc=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_inv_matrix:new t.UniformMatrix4f($,at.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f($,at.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f($,at.u_viewport_size)}},lc=function($,at,it){var mt=Si(it,1,at.zoom),Ft=2**(at.zoom-it.tileID.overscaledZ),ie=it.tileID.overscaleFactor();return{u_matrix:$,u_camera_to_center_distance:at.cameraToCenterDistance,u_pixels_to_tile_units:mt,u_extrude_scale:[at.pixelsToGLUnits[0]/(mt*Ft),at.pixelsToGLUnits[1]/(mt*Ft)],u_overscale_factor:ie}},Mc=function($,at,it){return{u_matrix:$,u_inv_matrix:at,u_camera_to_center_distance:it.cameraToCenterDistance,u_viewport_size:[it.width,it.height]}},ys=function($,at){return{u_color:new t.UniformColor($,at.u_color),u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_overlay:new t.Uniform1i($,at.u_overlay),u_overlay_scale:new t.Uniform1f($,at.u_overlay_scale)}},Hs=function($,at,it){return it===void 0&&(it=1),{u_matrix:$,u_color:at,u_overlay:0,u_overlay_scale:it}},ku=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix)}},Gs=function($){return{u_matrix:$}},uc=function($,at){return{u_extrude_scale:new t.Uniform1f($,at.u_extrude_scale),u_intensity:new t.Uniform1f($,at.u_intensity),u_matrix:new t.UniformMatrix4f($,at.u_matrix)}},Zu=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_world:new t.Uniform2f($,at.u_world),u_image:new t.Uniform1i($,at.u_image),u_color_ramp:new t.Uniform1i($,at.u_color_ramp),u_opacity:new t.Uniform1f($,at.u_opacity)}},cc=function($,at,it,mt){return{u_matrix:$,u_extrude_scale:Si(at,1,it),u_intensity:mt}},Ol=function($,at,it,mt){var Ft=t.create();t.ortho(Ft,0,$.width,$.height,0,0,1);var ie=$.context.gl;return{u_matrix:Ft,u_world:[ie.drawingBufferWidth,ie.drawingBufferHeight],u_image:it,u_color_ramp:mt,u_opacity:at.paint.get("heatmap-opacity")}},Wc=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_image:new t.Uniform1i($,at.u_image),u_latrange:new t.Uniform2f($,at.u_latrange),u_light:new t.Uniform2f($,at.u_light),u_shadow:new t.UniformColor($,at.u_shadow),u_highlight:new t.UniformColor($,at.u_highlight),u_accent:new t.UniformColor($,at.u_accent)}},hc=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_image:new t.Uniform1i($,at.u_image),u_dimension:new t.Uniform2f($,at.u_dimension),u_zoom:new t.Uniform1f($,at.u_zoom),u_unpack:new t.Uniform4f($,at.u_unpack)}},fl=function($,at,it){var mt=it.paint.get("hillshade-shadow-color"),Ft=it.paint.get("hillshade-highlight-color"),ie=it.paint.get("hillshade-accent-color"),he=it.paint.get("hillshade-illumination-direction")*(Math.PI/180);it.paint.get("hillshade-illumination-anchor")==="viewport"&&(he-=$.transform.angle);var Ie=!$.options.moving;return{u_matrix:$.transform.calculatePosMatrix(at.tileID.toUnwrapped(),Ie),u_image:0,u_latrange:Zs($,at.tileID),u_light:[it.paint.get("hillshade-exaggeration"),he],u_shadow:mt,u_highlight:Ft,u_accent:ie}},ts=function($,at){var it=at.stride,mt=t.create();return t.ortho(mt,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(mt,mt,[0,-t.EXTENT,0]),{u_matrix:mt,u_image:1,u_dimension:[it,it],u_zoom:$.overscaledZ,u_unpack:at.getUnpackVector()}};function Zs($,at){var it=2**at.canonical.z,mt=at.canonical.y;return[new t.MercatorCoordinate(0,mt/it).toLngLat().lat,new t.MercatorCoordinate(0,(mt+1)/it).toLngLat().lat]}var Dl=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_ratio:new t.Uniform1f($,at.u_ratio),u_device_pixel_ratio:new t.Uniform1f($,at.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f($,at.u_units_to_pixels)}},Au=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_ratio:new t.Uniform1f($,at.u_ratio),u_device_pixel_ratio:new t.Uniform1f($,at.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f($,at.u_units_to_pixels),u_image:new t.Uniform1i($,at.u_image),u_image_height:new t.Uniform1f($,at.u_image_height)}},Sc=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_texsize:new t.Uniform2f($,at.u_texsize),u_ratio:new t.Uniform1f($,at.u_ratio),u_device_pixel_ratio:new t.Uniform1f($,at.u_device_pixel_ratio),u_image:new t.Uniform1i($,at.u_image),u_units_to_pixels:new t.Uniform2f($,at.u_units_to_pixels),u_scale:new t.Uniform3f($,at.u_scale),u_fade:new t.Uniform1f($,at.u_fade)}},fh=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_ratio:new t.Uniform1f($,at.u_ratio),u_device_pixel_ratio:new t.Uniform1f($,at.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f($,at.u_units_to_pixels),u_patternscale_a:new t.Uniform2f($,at.u_patternscale_a),u_patternscale_b:new t.Uniform2f($,at.u_patternscale_b),u_sdfgamma:new t.Uniform1f($,at.u_sdfgamma),u_image:new t.Uniform1i($,at.u_image),u_tex_y_a:new t.Uniform1f($,at.u_tex_y_a),u_tex_y_b:new t.Uniform1f($,at.u_tex_y_b),u_mix:new t.Uniform1f($,at.u_mix)}},Es=function($,at,it){var mt=$.transform;return{u_matrix:Wl($,at,it),u_ratio:1/Si(at,1,mt.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/mt.pixelsToGLUnits[0],1/mt.pixelsToGLUnits[1]]}},fc=function($,at,it,mt){return t.extend(Es($,at,it),{u_image:0,u_image_height:mt})},Zl=function($,at,it,mt){var Ft=$.transform,ie=pc(at,Ft);return{u_matrix:Wl($,at,it),u_texsize:at.imageAtlasTexture.size,u_ratio:1/Si(at,1,Ft.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[ie,mt.fromScale,mt.toScale],u_fade:mt.t,u_units_to_pixels:[1/Ft.pixelsToGLUnits[0],1/Ft.pixelsToGLUnits[1]]}},ou=function($,at,it,mt,Ft){var ie=$.transform,he=$.lineAtlas,Ie=pc(at,ie),Qe=it.layout.get("line-cap")==="round",vr=he.getDash(mt.from,Qe),kr=he.getDash(mt.to,Qe),Fr=vr.width*Ft.fromScale,Gr=kr.width*Ft.toScale;return t.extend(Es($,at,it),{u_patternscale_a:[Ie/Fr,-vr.height/2],u_patternscale_b:[Ie/Gr,-kr.height/2],u_sdfgamma:he.width/(Math.min(Fr,Gr)*256*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:vr.y,u_tex_y_b:kr.y,u_mix:Ft.t})};function pc($,at){return 1/Si($,1,at.tileZoom)}function Wl($,at,it){return $.translatePosMatrix(at.tileID.posMatrix,at,it.paint.get("line-translate"),it.paint.get("line-translate-anchor"))}var uo=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_tl_parent:new t.Uniform2f($,at.u_tl_parent),u_scale_parent:new t.Uniform1f($,at.u_scale_parent),u_buffer_scale:new t.Uniform1f($,at.u_buffer_scale),u_fade_t:new t.Uniform1f($,at.u_fade_t),u_opacity:new t.Uniform1f($,at.u_opacity),u_image0:new t.Uniform1i($,at.u_image0),u_image1:new t.Uniform1i($,at.u_image1),u_brightness_low:new t.Uniform1f($,at.u_brightness_low),u_brightness_high:new t.Uniform1f($,at.u_brightness_high),u_saturation_factor:new t.Uniform1f($,at.u_saturation_factor),u_contrast_factor:new t.Uniform1f($,at.u_contrast_factor),u_spin_weights:new t.Uniform3f($,at.u_spin_weights)}},Rl=function($,at,it,mt,Ft){return{u_matrix:$,u_tl_parent:at,u_scale_parent:it,u_buffer_scale:1,u_fade_t:mt.mix,u_opacity:mt.opacity*Ft.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:Ft.paint.get("raster-brightness-min"),u_brightness_high:Ft.paint.get("raster-brightness-max"),u_saturation_factor:mc(Ft.paint.get("raster-saturation")),u_contrast_factor:dc(Ft.paint.get("raster-contrast")),u_spin_weights:Ec(Ft.paint.get("raster-hue-rotate"))}};function Ec($){$*=Math.PI/180;var at=Math.sin($),it=Math.cos($);return[(2*it+1)/3,(-Math.sqrt(3)*at-it+1)/3,(Math.sqrt(3)*at-it+1)/3]}function dc($){return $>0?1/(1-$):1+$}function mc($){return $>0?1-1/(1.001-$):-$}var Mu=function($,at){return{u_is_size_zoom_constant:new t.Uniform1i($,at.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i($,at.u_is_size_feature_constant),u_size_t:new t.Uniform1f($,at.u_size_t),u_size:new t.Uniform1f($,at.u_size),u_camera_to_center_distance:new t.Uniform1f($,at.u_camera_to_center_distance),u_pitch:new t.Uniform1f($,at.u_pitch),u_rotate_symbol:new t.Uniform1i($,at.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f($,at.u_aspect_ratio),u_fade_change:new t.Uniform1f($,at.u_fade_change),u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f($,at.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f($,at.u_coord_matrix),u_is_text:new t.Uniform1i($,at.u_is_text),u_pitch_with_map:new t.Uniform1i($,at.u_pitch_with_map),u_texsize:new t.Uniform2f($,at.u_texsize),u_texture:new t.Uniform1i($,at.u_texture)}},Yl=function($,at){return{u_is_size_zoom_constant:new t.Uniform1i($,at.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i($,at.u_is_size_feature_constant),u_size_t:new t.Uniform1f($,at.u_size_t),u_size:new t.Uniform1f($,at.u_size),u_camera_to_center_distance:new t.Uniform1f($,at.u_camera_to_center_distance),u_pitch:new t.Uniform1f($,at.u_pitch),u_rotate_symbol:new t.Uniform1i($,at.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f($,at.u_aspect_ratio),u_fade_change:new t.Uniform1f($,at.u_fade_change),u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f($,at.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f($,at.u_coord_matrix),u_is_text:new t.Uniform1i($,at.u_is_text),u_pitch_with_map:new t.Uniform1i($,at.u_pitch_with_map),u_texsize:new t.Uniform2f($,at.u_texsize),u_texture:new t.Uniform1i($,at.u_texture),u_gamma_scale:new t.Uniform1f($,at.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f($,at.u_device_pixel_ratio),u_is_halo:new t.Uniform1i($,at.u_is_halo)}},al=function($,at){return{u_is_size_zoom_constant:new t.Uniform1i($,at.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i($,at.u_is_size_feature_constant),u_size_t:new t.Uniform1f($,at.u_size_t),u_size:new t.Uniform1f($,at.u_size),u_camera_to_center_distance:new t.Uniform1f($,at.u_camera_to_center_distance),u_pitch:new t.Uniform1f($,at.u_pitch),u_rotate_symbol:new t.Uniform1i($,at.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f($,at.u_aspect_ratio),u_fade_change:new t.Uniform1f($,at.u_fade_change),u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f($,at.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f($,at.u_coord_matrix),u_is_text:new t.Uniform1i($,at.u_is_text),u_pitch_with_map:new t.Uniform1i($,at.u_pitch_with_map),u_texsize:new t.Uniform2f($,at.u_texsize),u_texsize_icon:new t.Uniform2f($,at.u_texsize_icon),u_texture:new t.Uniform1i($,at.u_texture),u_texture_icon:new t.Uniform1i($,at.u_texture_icon),u_gamma_scale:new t.Uniform1f($,at.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f($,at.u_device_pixel_ratio),u_is_halo:new t.Uniform1i($,at.u_is_halo)}},Cs=function($,at,it,mt,Ft,ie,he,Ie,Qe,vr){var kr=Ft.transform;return{u_is_size_zoom_constant:+($==="constant"||$==="source"),u_is_size_feature_constant:+($==="constant"||$==="camera"),u_size_t:at?at.uSizeT:0,u_size:at?at.uSize:0,u_camera_to_center_distance:kr.cameraToCenterDistance,u_pitch:kr.pitch/360*2*Math.PI,u_rotate_symbol:+it,u_aspect_ratio:kr.width/kr.height,u_fade_change:Ft.options.fadeDuration?Ft.symbolFadeChange:1,u_matrix:ie,u_label_plane_matrix:he,u_coord_matrix:Ie,u_is_text:+Qe,u_pitch_with_map:+mt,u_texsize:vr,u_texture:0}},gc=function($,at,it,mt,Ft,ie,he,Ie,Qe,vr,kr){var Fr=Ft.transform;return t.extend(Cs($,at,it,mt,Ft,ie,he,Ie,Qe,vr),{u_gamma_scale:mt?Math.cos(Fr._pitch)*Fr.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+kr})},Su=function($,at,it,mt,Ft,ie,he,Ie,Qe,vr){return t.extend(gc($,at,it,mt,Ft,ie,he,Ie,!0,Qe,!0),{u_texsize_icon:vr,u_texture_icon:1})},Fl=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_opacity:new t.Uniform1f($,at.u_opacity),u_color:new t.UniformColor($,at.u_color)}},Xl=function($,at){return{u_matrix:new t.UniformMatrix4f($,at.u_matrix),u_opacity:new t.Uniform1f($,at.u_opacity),u_image:new t.Uniform1i($,at.u_image),u_pattern_tl_a:new t.Uniform2f($,at.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f($,at.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f($,at.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f($,at.u_pattern_br_b),u_texsize:new t.Uniform2f($,at.u_texsize),u_mix:new t.Uniform1f($,at.u_mix),u_pattern_size_a:new t.Uniform2f($,at.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f($,at.u_pattern_size_b),u_scale_a:new t.Uniform1f($,at.u_scale_a),u_scale_b:new t.Uniform1f($,at.u_scale_b),u_pixel_coord_upper:new t.Uniform2f($,at.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,at.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f($,at.u_tile_units_to_pixels)}},Ws=function($,at,it){return{u_matrix:$,u_opacity:at,u_color:it}},Bl=function($,at,it,mt,Ft,ie){return t.extend(Hc(mt,ie,it,Ft),{u_matrix:$,u_opacity:at})},su={fillExtrusion:Ss,fillExtrusionPattern:hl,fill:Yn,fillPattern:Il,fillOutline:lo,fillOutlinePattern:Pl,circle:Mh,collisionBox:sc,collisionCircle:Zc,debug:ys,clippingMask:ku,heatmap:uc,heatmapTexture:Zu,hillshade:Wc,hillshadePrepare:hc,line:Dl,lineGradient:Au,linePattern:Sc,lineSDF:fh,raster:uo,symbolIcon:Mu,symbolSDF:Yl,symbolTextAndIcon:al,background:Fl,backgroundPattern:Xl},Uo;function lu($,at,it,mt,Ft,ie,he){for(var Ie=$.context,Qe=Ie.gl,vr=$.useProgram("collisionBox"),kr=[],Fr=0,Gr=0,oi=0;oi0){var oa=t.create(),da=Pi;t.mul(oa,yi.placementInvProjMatrix,$.transform.glCoordMatrix),t.mul(oa,oa,yi.placementViewportMatrix),kr.push({circleArray:Ta,circleOffset:Gr,transform:da,invTransform:oa}),Fr+=Ta.length/4,Gr=Fr}Wi&&vr.draw(Ie,Qe.LINES,sr.disabled,or.disabled,$.colorModeForRenderPass(),Ke.disabled,lc(Pi,$.transform,vi),it.id,Wi.layoutVertexBuffer,Wi.indexBuffer,Wi.segments,null,$.transform.zoom,null,null,Wi.collisionVertexBuffer)}}if(!(!he||!kr.length)){var Aa=$.useProgram("collisionCircle"),ga=new t.StructArrayLayout2f1f2i16;ga.resize(Fr*4),ga._trim();for(var Va=0,tn=0,en=kr;tn=0&&(Ti[yi.associatedIconIndex]={shiftedAnchor:Tn,angle:vo})}}if(kr){oi.clear();for(var Zn=$.icon.placedSymbolArray,Wn=0;Wn0){var he=t.browser.now(),Ie=(he-$.timeAdded)/ie,Qe=at?(he-at.timeAdded)/ie:-1,vr=it.getSource(),kr=Ft.coveringZoomLevel({tileSize:vr.tileSize,roundZoom:vr.roundZoom}),Fr=!at||Math.abs(at.tileID.overscaledZ-kr)>Math.abs($.tileID.overscaledZ-kr),Gr=Fr&&$.refreshedUponExpiration?1:t.clamp(Fr?Ie:1-Qe,0,1);return $.refreshedUponExpiration&&Ie>=1&&($.refreshedUponExpiration=!1),at?{opacity:1,mix:1-Gr}:{opacity:Gr,mix:0}}else return{opacity:1,mix:0}}function Yc($,at,it){var mt=it.paint.get("background-color"),Ft=it.paint.get("background-opacity");if(Ft!==0){var ie=$.context,he=ie.gl,Ie=$.transform,Qe=Ie.tileSize,vr=it.paint.get("background-pattern");if(!$.isPatternMissing(vr)){var kr=!vr&&mt.a===1&&Ft===1&&$.opaquePassEnabledForLayer()?"opaque":"translucent";if($.renderPass===kr){var Fr=or.disabled,Gr=$.depthModeForSublayer(0,kr==="opaque"?sr.ReadWrite:sr.ReadOnly),oi=$.colorModeForRenderPass(),Ti=$.useProgram(vr?"backgroundPattern":"background"),vi=Ie.coveringTiles({tileSize:Qe});vr&&(ie.activeTexture.set(he.TEXTURE0),$.imageManager.bind($.context));for(var yi=it.getCrossfadeParameters(),Pi=0,Wi=vi;Pi "+it.overscaledZ),Hr($,yi+" "+oi+"kb"),he.draw(mt,Ft.TRIANGLES,Ie,Qe,we.alphaBlended,Ke.disabled,Hs(ie,t.Color.transparent,vi),kr,$.debugBuffer,$.quadTriangleIndexBuffer,$.debugSegments)}function Hr($,at){$.initDebugOverlayCanvas();var it=$.debugOverlayCanvas,mt=$.context.gl,Ft=$.debugOverlayCanvas.getContext("2d");Ft.clearRect(0,0,it.width,it.height),Ft.shadowColor="white",Ft.shadowBlur=2,Ft.lineWidth=1.5,Ft.strokeStyle="white",Ft.textBaseline="top",Ft.font="bold 36px Open Sans, sans-serif",Ft.fillText(at,5,5),Ft.strokeText(at,5,5),$.debugOverlayTexture.update(it),$.debugOverlayTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE)}function ii($,at,it){var mt=$.context,Ft=it.implementation;if($.renderPass==="offscreen"){var ie=Ft.prerender;ie&&($.setCustomLayerDefaults(),mt.setColorMode($.colorModeForRenderPass()),ie.call(Ft,mt.gl,$.transform.customLayerMatrix()),mt.setDirty(),$.setBaseState())}else if($.renderPass==="translucent"){$.setCustomLayerDefaults(),mt.setColorMode($.colorModeForRenderPass()),mt.setStencilMode(or.disabled);var he=Ft.renderingMode==="3d"?new sr($.context.gl.LEQUAL,sr.ReadWrite,$.depthRangeFor3D):$.depthModeForSublayer(0,sr.ReadOnly);mt.setDepthMode(he),Ft.render(mt.gl,$.transform.customLayerMatrix()),mt.setDirty(),$.setBaseState(),mt.bindFramebuffer.set(null)}}var di={symbol:nl,circle:Cc,heatmap:hu,line:Xu,fill:Ys,"fill-extrusion":Xs,hillshade:$u,raster:Ju,background:Yc,debug:qr,custom:ii},gi=function($,at){this.context=new ar($),this.transform=at,this._tileTextures={},this.setup(),this.numSublayers=We.maxUnderzooming+We.maxOverzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new sn,this.gpuTimers={}};gi.prototype.resize=function($,at){if(this.width=$*t.browser.devicePixelRatio,this.height=at*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var it=0,mt=this.style._order;it256&&this.clearStencil(),it.setColorMode(we.disabled),it.setDepthMode(sr.disabled);var Ft=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ie=0,he=at;ie256&&this.clearStencil();var $=this.nextStencilID++,at=this.context.gl;return new or({func:at.NOTEQUAL,mask:255},$,255,at.KEEP,at.KEEP,at.REPLACE)},gi.prototype.stencilModeForClipping=function($){var at=this.context.gl;return new or({func:at.EQUAL,mask:255},this._tileClippingMaskIDs[$.key],0,at.KEEP,at.KEEP,at.REPLACE)},gi.prototype.stencilConfigForOverlap=function($){var at,it=this.context.gl,mt=$.sort(function(Qe,vr){return vr.overscaledZ-Qe.overscaledZ}),Ft=mt[mt.length-1].overscaledZ,ie=mt[0].overscaledZ-Ft+1;if(ie>1){this.currentStencilSource=void 0,this.nextStencilID+ie>256&&this.clearStencil();for(var he={},Ie=0;Ie=0;this.currentLayer--){var Ta=this.style._layers[mt[this.currentLayer]],oa=Ft[Ta.source],da=Ie[Ta.source];this._renderTileClippingMasks(Ta,da),this.renderLayer(this,oa,Ta,da)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?at.pop():null},gi.prototype.isPatternMissing=function($){if(!$)return!1;if(!$.from||!$.to)return!0;var at=this.imageManager.getPattern($.from.toString()),it=this.imageManager.getPattern($.to.toString());return!at||!it},gi.prototype.useProgram=function($,at){this.cache=this.cache||{};var it=""+$+(at?at.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[it]||(this.cache[it]=new nu(this.context,$,au[$],at,su[$],this._showOverdrawInspector)),this.cache[it]},gi.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gi.prototype.setBaseState=function(){var $=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set($.FUNC_ADD)},gi.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var $=this.context.gl;this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,$.RGBA)}},gi.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ki=function($,at){this.points=$,this.planes=at};Ki.fromInvProjectionMatrix=function($,at,it){var mt=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],Ft=2**it,ie=mt.map(function(he){return t.transformMat4([],he,$)}).map(function(he){return t.scale$1([],he,1/he[3]/at*Ft)});return new Ki(ie,[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(he){var Ie=t.sub([],ie[he[0]],ie[he[1]]),Qe=t.sub([],ie[he[2]],ie[he[1]]),vr=t.normalize([],t.cross([],Ie,Qe)),kr=-t.dot(vr,ie[he[1]]);return vr.concat(kr)}))};var ca=function($,at){this.min=$,this.max=at,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};ca.prototype.quadrant=function($){for(var at=[$%2==0,$<2],it=t.clone$2(this.min),mt=t.clone$2(this.max),Ft=0;Ft=0;if(ie===0)return 0;ie!==at.length&&(it=!1)}if(it)return 2;for(var Ie=0;Ie<3;Ie++){for(var Qe=Number.MAX_VALUE,vr=-Number.MAX_VALUE,kr=0;kr<$.points.length;kr++){var Fr=$.points[kr][Ie]-this.min[Ie];Qe=Math.min(Qe,Fr),vr=Math.max(vr,Fr)}if(vr<0||Qe>this.max[Ie]-this.min[Ie])return 0}return 1};var Sa=function($,at,it,mt){if($===void 0&&($=0),at===void 0&&(at=0),it===void 0&&(it=0),mt===void 0&&(mt=0),isNaN($)||$<0||isNaN(at)||at<0||isNaN(it)||it<0||isNaN(mt)||mt<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=$,this.bottom=at,this.left=it,this.right=mt};Sa.prototype.interpolate=function($,at,it){return at.top!=null&&$.top!=null&&(this.top=t.number($.top,at.top,it)),at.bottom!=null&&$.bottom!=null&&(this.bottom=t.number($.bottom,at.bottom,it)),at.left!=null&&$.left!=null&&(this.left=t.number($.left,at.left,it)),at.right!=null&&$.right!=null&&(this.right=t.number($.right,at.right,it)),this},Sa.prototype.getCenter=function($,at){var it=t.clamp((this.left+$-this.right)/2,0,$),mt=t.clamp((this.top+at-this.bottom)/2,0,at);return new t.Point(it,mt)},Sa.prototype.equals=function($){return this.top===$.top&&this.bottom===$.bottom&&this.left===$.left&&this.right===$.right},Sa.prototype.clone=function(){return new Sa(this.top,this.bottom,this.left,this.right)},Sa.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var pa=function($,at,it,mt,Ft){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Ft===void 0?!0:Ft,this._minZoom=$||0,this._maxZoom=at||22,this._minPitch=it??0,this._maxPitch=mt??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Sa,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ra={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};pa.prototype.clone=function(){var $=new pa(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return $.tileSize=this.tileSize,$.latRange=this.latRange,$.width=this.width,$.height=this.height,$._center=this._center,$.zoom=this.zoom,$.angle=this.angle,$._fov=this._fov,$._pitch=this._pitch,$._unmodified=this._unmodified,$._edgeInsets=this._edgeInsets.clone(),$._calcMatrices(),$},Ra.minZoom.get=function(){return this._minZoom},Ra.minZoom.set=function($){this._minZoom!==$&&(this._minZoom=$,this.zoom=Math.max(this.zoom,$))},Ra.maxZoom.get=function(){return this._maxZoom},Ra.maxZoom.set=function($){this._maxZoom!==$&&(this._maxZoom=$,this.zoom=Math.min(this.zoom,$))},Ra.minPitch.get=function(){return this._minPitch},Ra.minPitch.set=function($){this._minPitch!==$&&(this._minPitch=$,this.pitch=Math.max(this.pitch,$))},Ra.maxPitch.get=function(){return this._maxPitch},Ra.maxPitch.set=function($){this._maxPitch!==$&&(this._maxPitch=$,this.pitch=Math.min(this.pitch,$))},Ra.renderWorldCopies.get=function(){return this._renderWorldCopies},Ra.renderWorldCopies.set=function($){$===void 0?$=!0:$===null&&($=!1),this._renderWorldCopies=$},Ra.worldSize.get=function(){return this.tileSize*this.scale},Ra.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ra.size.get=function(){return new t.Point(this.width,this.height)},Ra.bearing.get=function(){return-this.angle/Math.PI*180},Ra.bearing.set=function($){var at=-t.wrap($,-180,180)*Math.PI/180;this.angle!==at&&(this._unmodified=!1,this.angle=at,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ra.pitch.get=function(){return this._pitch/Math.PI*180},Ra.pitch.set=function($){var at=t.clamp($,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==at&&(this._unmodified=!1,this._pitch=at,this._calcMatrices())},Ra.fov.get=function(){return this._fov/Math.PI*180},Ra.fov.set=function($){$=Math.max(.01,Math.min(60,$)),this._fov!==$&&(this._unmodified=!1,this._fov=$/180*Math.PI,this._calcMatrices())},Ra.zoom.get=function(){return this._zoom},Ra.zoom.set=function($){var at=Math.min(Math.max($,this.minZoom),this.maxZoom);this._zoom!==at&&(this._unmodified=!1,this._zoom=at,this.scale=this.zoomScale(at),this.tileZoom=Math.floor(at),this.zoomFraction=at-this.tileZoom,this._constrain(),this._calcMatrices())},Ra.center.get=function(){return this._center},Ra.center.set=function($){$.lat===this._center.lat&&$.lng===this._center.lng||(this._unmodified=!1,this._center=$,this._constrain(),this._calcMatrices())},Ra.padding.get=function(){return this._edgeInsets.toJSON()},Ra.padding.set=function($){this._edgeInsets.equals($)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,$,1),this._calcMatrices())},Ra.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},pa.prototype.isPaddingEqual=function($){return this._edgeInsets.equals($)},pa.prototype.interpolatePadding=function($,at,it){this._unmodified=!1,this._edgeInsets.interpolate($,at,it),this._constrain(),this._calcMatrices()},pa.prototype.coveringZoomLevel=function($){var at=($.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/$.tileSize));return Math.max(0,at)},pa.prototype.getVisibleUnwrappedCoordinates=function($){var at=[new t.UnwrappedTileID(0,$)];if(this._renderWorldCopies)for(var it=this.pointCoordinate(new t.Point(0,0)),mt=this.pointCoordinate(new t.Point(this.width,0)),Ft=this.pointCoordinate(new t.Point(this.width,this.height)),ie=this.pointCoordinate(new t.Point(0,this.height)),he=Math.floor(Math.min(it.x,mt.x,Ft.x,ie.x)),Ie=Math.floor(Math.max(it.x,mt.x,Ft.x,ie.x)),Qe=1,vr=he-Qe;vr<=Ie+Qe;vr++)vr!==0&&at.push(new t.UnwrappedTileID(vr,$));return at},pa.prototype.coveringTiles=function($){var at=this.coveringZoomLevel($),it=at;if($.minzoom!==void 0&&at<$.minzoom)return[];$.maxzoom!==void 0&&at>$.maxzoom&&(at=$.maxzoom);var mt=t.MercatorCoordinate.fromLngLat(this.center),Ft=2**at,ie=[Ft*mt.x,Ft*mt.y,0],he=Ki.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,at),Ie=$.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ie=at);var Qe=3,vr=function(Xa){return{aabb:new ca([Xa*Ft,0,0],[(Xa+1)*Ft,Ft,0]),zoom:0,x:0,y:0,wrap:Xa,fullyVisible:!1}},kr=[],Fr=[],Gr=at,oi=$.reparseOverscaled?it:at;if(this._renderWorldCopies)for(var Ti=1;Ti<=3;Ti++)kr.push(vr(-Ti)),kr.push(vr(Ti));for(kr.push(vr(0));kr.length>0;){var vi=kr.pop(),yi=vi.x,Pi=vi.y,Wi=vi.fullyVisible;if(!Wi){var Ta=vi.aabb.intersects(he);if(Ta===0)continue;Wi=Ta===2}var oa=vi.aabb.distanceX(ie),da=vi.aabb.distanceY(ie),Aa=Math.max(Math.abs(oa),Math.abs(da)),ga=Qe+(1<ga&&vi.zoom>=Ie){Fr.push({tileID:new t.OverscaledTileID(vi.zoom===Gr?oi:vi.zoom,vi.wrap,vi.zoom,yi,Pi),distanceSq:t.sqrLen([ie[0]-.5-yi,ie[1]-.5-Pi])});continue}for(var Va=0;Va<4;Va++){var tn=(yi<<1)+Va%2,en=(Pi<<1)+(Va>>1);kr.push({aabb:vi.aabb.quadrant(Va),zoom:vi.zoom+1,x:tn,y:en,wrap:vi.wrap,fullyVisible:Wi})}}return Fr.sort(function(Xa,Ka){return Xa.distanceSq-Ka.distanceSq}).map(function(Xa){return Xa.tileID})},pa.prototype.resize=function($,at){this.width=$,this.height=at,this.pixelsToGLUnits=[2/$,-2/at],this._constrain(),this._calcMatrices()},Ra.unmodified.get=function(){return this._unmodified},pa.prototype.zoomScale=function($){return 2**$},pa.prototype.scaleZoom=function($){return Math.log($)/Math.LN2},pa.prototype.project=function($){var at=t.clamp($.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng($.lng)*this.worldSize,t.mercatorYfromLat(at)*this.worldSize)},pa.prototype.unproject=function($){return new t.MercatorCoordinate($.x/this.worldSize,$.y/this.worldSize).toLngLat()},Ra.point.get=function(){return this.project(this.center)},pa.prototype.setLocationAtPoint=function($,at){var it=this.pointCoordinate(at),mt=this.pointCoordinate(this.centerPoint),Ft=this.locationCoordinate($),ie=new t.MercatorCoordinate(Ft.x-(it.x-mt.x),Ft.y-(it.y-mt.y));this.center=this.coordinateLocation(ie),this._renderWorldCopies&&(this.center=this.center.wrap())},pa.prototype.locationPoint=function($){return this.coordinatePoint(this.locationCoordinate($))},pa.prototype.pointLocation=function($){return this.coordinateLocation(this.pointCoordinate($))},pa.prototype.locationCoordinate=function($){return t.MercatorCoordinate.fromLngLat($)},pa.prototype.coordinateLocation=function($){return $.toLngLat()},pa.prototype.pointCoordinate=function($){var at=0,it=[$.x,$.y,0,1],mt=[$.x,$.y,1,1];t.transformMat4(it,it,this.pixelMatrixInverse),t.transformMat4(mt,mt,this.pixelMatrixInverse);var Ft=it[3],ie=mt[3],he=it[0]/Ft,Ie=mt[0]/ie,Qe=it[1]/Ft,vr=mt[1]/ie,kr=it[2]/Ft,Fr=mt[2]/ie,Gr=kr===Fr?0:(at-kr)/(Fr-kr);return new t.MercatorCoordinate(t.number(he,Ie,Gr)/this.worldSize,t.number(Qe,vr,Gr)/this.worldSize)},pa.prototype.coordinatePoint=function($){var at=[$.x*this.worldSize,$.y*this.worldSize,0,1];return t.transformMat4(at,at,this.pixelMatrix),new t.Point(at[0]/at[3],at[1]/at[3])},pa.prototype.getBounds=function(){return new t.LngLatBounds().extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},pa.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},pa.prototype.setMaxBounds=function($){$?(this.lngRange=[$.getWest(),$.getEast()],this.latRange=[$.getSouth(),$.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},pa.prototype.calculatePosMatrix=function($,at){at===void 0&&(at=!1);var it=$.key,mt=at?this._alignedPosMatrixCache:this._posMatrixCache;if(mt[it])return mt[it];var Ft=$.canonical,ie=this.worldSize/this.zoomScale(Ft.z),he=Ft.x+2**Ft.z*$.wrap,Ie=t.identity(new Float64Array(16));return t.translate(Ie,Ie,[he*ie,Ft.y*ie,0]),t.scale(Ie,Ie,[ie/t.EXTENT,ie/t.EXTENT,1]),t.multiply(Ie,at?this.alignedProjMatrix:this.projMatrix,Ie),mt[it]=new Float32Array(Ie),mt[it]},pa.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},pa.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var $=-90,at=90,it=-180,mt=180,Ft,ie,he,Ie,Qe=this.size,vr=this._unmodified;if(this.latRange){var kr=this.latRange;$=t.mercatorYfromLat(kr[1])*this.worldSize,at=t.mercatorYfromLat(kr[0])*this.worldSize,Ft=at-$at&&(Ie=at-vi)}if(this.lngRange){var yi=Gr.x,Pi=Qe.x/2;yi-Pimt&&(he=mt-Pi)}(he!==void 0||Ie!==void 0)&&(this.center=this.unproject(new t.Point(he===void 0?Gr.x:he,Ie===void 0?Gr.y:Ie))),this._unmodified=vr,this._constraining=!1}},pa.prototype._calcMatrices=function(){if(this.height){var $=this._fov/2,at=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan($)*this.height;var it=Math.PI/2+this._pitch,mt=this._fov*(.5+at.y/this.height),Ft=Math.sin(mt)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-it-mt,.01,Math.PI-.01)),ie=this.point,he=ie.x,Ie=ie.y,Qe=(Math.cos(Math.PI/2-this._pitch)*Ft+this.cameraToCenterDistance)*1.01,vr=this.height/50,kr=new Float64Array(16);t.perspective(kr,this._fov,this.width/this.height,vr,Qe),kr[8]=-at.x*2/this.width,kr[9]=at.y*2/this.height,t.scale(kr,kr,[1,-1,1]),t.translate(kr,kr,[0,0,-this.cameraToCenterDistance]),t.rotateX(kr,kr,this._pitch),t.rotateZ(kr,kr,this.angle),t.translate(kr,kr,[-he,-Ie,0]),this.mercatorMatrix=t.scale([],kr,[this.worldSize,this.worldSize,this.worldSize]),t.scale(kr,kr,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=kr,this.invProjMatrix=t.invert([],this.projMatrix);var Fr=this.width%2/2,Gr=this.height%2/2,oi=Math.cos(this.angle),Ti=Math.sin(this.angle),vi=he-Math.round(he)+oi*Fr+Ti*Gr,yi=Ie-Math.round(Ie)+oi*Gr+Ti*Fr,Pi=new Float64Array(kr);if(t.translate(Pi,Pi,[vi>.5?vi-1:vi,yi>.5?yi-1:yi,0]),this.alignedProjMatrix=Pi,kr=t.create(),t.scale(kr,kr,[this.width/2,-this.height/2,1]),t.translate(kr,kr,[1,-1,0]),this.labelPlaneMatrix=kr,kr=t.create(),t.scale(kr,kr,[1,-1,1]),t.translate(kr,kr,[-1,-1,0]),t.scale(kr,kr,[2/this.width,2/this.height,1]),this.glCoordMatrix=kr,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),kr=t.invert(new Float64Array(16),this.pixelMatrix),!kr)throw Error("failed to invert matrix");this.pixelMatrixInverse=kr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},pa.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var $=this.pointCoordinate(new t.Point(0,0)),at=[$.x*this.worldSize,$.y*this.worldSize,0,1];return t.transformMat4(at,at,this.pixelMatrix)[3]/this.cameraToCenterDistance},pa.prototype.getCameraPoint=function(){var $=this._pitch,at=Math.tan($)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,at))},pa.prototype.getCameraQueryGeometry=function($){var at=this.getCameraPoint();if($.length===1)return[$[0],at];for(var it=at.x,mt=at.y,Ft=at.x,ie=at.y,he=0,Ie=$;he=3&&!$.some(function(it){return isNaN(it)})){var at=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+($[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+$[2],+$[1]],zoom:+$[0],bearing:at,pitch:+($[4]||0)}),!0}return!1},kn.prototype._updateHashUnthrottled=function(){var $=t.window.location.href.replace(/(#.+)?$/,this.getHashString());try{t.window.history.replaceState(t.window.history.state,null,$)}catch{}};var En={linearity:.3,easing:t.bezier(0,0,.3,1)},Ao=t.extend({deceleration:2500,maxSpeed:1400},En),yo=t.extend({deceleration:20,maxSpeed:1400},En),So=t.extend({deceleration:1e3,maxSpeed:360},En),$a=t.extend({deceleration:1e3,maxSpeed:90},En),gt=function($){this._map=$,this.clear()};gt.prototype.clear=function(){this._inertiaBuffer=[]},gt.prototype.record=function($){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:$})},gt.prototype._drainInertiaBuffer=function(){for(var $=this._inertiaBuffer,at=t.browser.now(),it=160;$.length>0&&at-$[0].time>it;)$.shift()},gt.prototype._onMoveEnd=function($){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var at={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},it=0,mt=this._inertiaBuffer;it=this._clickTolerance||this._map.fire(new se($.type,this._map,$))},Oe.prototype.dblclick=function($){return this._firePreventable(new se($.type,this._map,$))},Oe.prototype.mouseover=function($){this._map.fire(new se($.type,this._map,$))},Oe.prototype.mouseout=function($){this._map.fire(new se($.type,this._map,$))},Oe.prototype.touchstart=function($){return this._firePreventable(new ce($.type,this._map,$))},Oe.prototype.touchmove=function($){this._map.fire(new ce($.type,this._map,$))},Oe.prototype.touchend=function($){this._map.fire(new ce($.type,this._map,$))},Oe.prototype.touchcancel=function($){this._map.fire(new ce($.type,this._map,$))},Oe.prototype._firePreventable=function($){if(this._map.fire($),$.defaultPrevented)return{}},Oe.prototype.isEnabled=function(){return!0},Oe.prototype.isActive=function(){return!1},Oe.prototype.enable=function(){},Oe.prototype.disable=function(){};var Fe=function($){this._map=$};Fe.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fe.prototype.mousemove=function($){this._map.fire(new se($.type,this._map,$))},Fe.prototype.mousedown=function(){this._delayContextMenu=!0},Fe.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fe.prototype.contextmenu=function($){this._delayContextMenu?this._contextMenuEvent=$:this._map.fire(new se($.type,this._map,$)),this._map.listens("contextmenu")&&$.preventDefault()},Fe.prototype.isEnabled=function(){return!0},Fe.prototype.isActive=function(){return!1},Fe.prototype.enable=function(){},Fe.prototype.disable=function(){};var rr=function($,at){this._map=$,this._el=$.getCanvasContainer(),this._container=$.getContainer(),this._clickTolerance=at.clickTolerance||1};rr.prototype.isEnabled=function(){return!!this._enabled},rr.prototype.isActive=function(){return!!this._active},rr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},rr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},rr.prototype.mousedown=function($,at){this.isEnabled()&&$.shiftKey&&$.button===0&&(w.disableDrag(),this._startPos=this._lastPos=at,this._active=!0)},rr.prototype.mousemoveWindow=function($,at){if(this._active){var it=at;if(!(this._lastPos.equals(it)||!this._box&&it.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=$.timeStamp),it.length===this.numTouches&&(this.centroid=Mr(at),this.touches=Ar(it,at)))},Fi.prototype.touchmove=function($,at,it){if(!(this.aborted||!this.centroid)){var mt=Ar(it,at);for(var Ft in this.touches){var ie=this.touches[Ft],he=mt[Ft];(!he||he.dist(ie)>Ai)&&(this.aborted=!0)}}},Fi.prototype.touchend=function($,at,it){if((!this.centroid||$.timeStamp-this.startTime>Qr)&&(this.aborted=!0),it.length===0){var mt=!this.aborted&&this.centroid;if(this.reset(),mt)return mt}};var ti=function($){this.singleTap=new Fi($),this.numTaps=$.numTaps,this.reset()};ti.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},ti.prototype.touchstart=function($,at,it){this.singleTap.touchstart($,at,it)},ti.prototype.touchmove=function($,at,it){this.singleTap.touchmove($,at,it)},ti.prototype.touchend=function($,at,it){var mt=this.singleTap.touchend($,at,it);if(mt){var Ft=$.timeStamp-this.lastTime0&&(this._active=!0);var mt=Ar(it,at),Ft=new t.Point(0,0),ie=new t.Point(0,0),he=0;for(var Ie in mt){var Qe=mt[Ie],vr=this._touches[Ie];vr&&(Ft._add(Qe),ie._add(Qe.sub(vr)),he++,mt[Ie]=Qe)}if(this._touches=mt,!(heMath.abs($.x)}var Mn=100,Oa=(function($){function at(){$.apply(this,arguments)}return $&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at,at.prototype.reset=function(){$.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},at.prototype._start=function(it){this._lastPoints=it,Pn(it[0].sub(it[1]))&&(this._valid=!1)},at.prototype._move=function(it,mt,Ft){var ie=it[0].sub(this._lastPoints[0]),he=it[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ie,he,Ft.timeStamp),this._valid)return this._lastPoints=it,this._active=!0,{pitchDelta:(ie.y+he.y)/2*-.5}},at.prototype.gestureBeginsVertically=function(it,mt,Ft){if(this._valid!==void 0)return this._valid;var ie=2,he=it.mag()>=ie,Ie=mt.mag()>=ie;if(!(!he&&!Ie)){if(!he||!Ie)return this._firstMove===void 0&&(this._firstMove=Ft),Ft-this._firstMove0==mt.y>0;return Pn(it)&&Pn(mt)&&Qe}},at})(Ja),Mo={panStep:100,bearingStep:15,pitchStep:10},oo=function(){var $=Mo;this._panStep=$.panStep,this._bearingStep=$.bearingStep,this._pitchStep=$.pitchStep,this._rotationDisabled=!1};oo.prototype.reset=function(){this._active=!1},oo.prototype.keydown=function($){var at=this;if(!($.altKey||$.ctrlKey||$.metaKey)){var it=0,mt=0,Ft=0,ie=0,he=0;switch($.keyCode){case 61:case 107:case 171:case 187:it=1;break;case 189:case 109:case 173:it=-1;break;case 37:$.shiftKey?mt=-1:($.preventDefault(),ie=-1);break;case 39:$.shiftKey?mt=1:($.preventDefault(),ie=1);break;case 38:$.shiftKey?Ft=1:($.preventDefault(),he=-1);break;case 40:$.shiftKey?Ft=-1:($.preventDefault(),he=1);break;default:return}return this._rotationDisabled&&(mt=0,Ft=0),{cameraAnimation:function(Ie){var Qe=Ie.getZoom();Ie.easeTo({duration:300,easeId:"keyboardHandler",easing:Eo,zoom:it?Math.round(Qe)+it*($.shiftKey?2:1):Qe,bearing:Ie.getBearing()+mt*at._bearingStep,pitch:Ie.getPitch()+Ft*at._pitchStep,offset:[-ie*at._panStep,-he*at._panStep],center:Ie.getCenter()},{originalEvent:$})}}}},oo.prototype.enable=function(){this._enabled=!0},oo.prototype.disable=function(){this._enabled=!1,this.reset()},oo.prototype.isEnabled=function(){return this._enabled},oo.prototype.isActive=function(){return this._active},oo.prototype.disableRotation=function(){this._rotationDisabled=!0},oo.prototype.enableRotation=function(){this._rotationDisabled=!1};function Eo($){return $*(2-$)}var as=4.000244140625,an=1/100,pn=1/450,ns=2,Pa=function($,at){this._map=$,this._el=$.getCanvasContainer(),this._handler=at,this._delta=0,this._defaultZoomRate=an,this._wheelZoomRate=pn,t.bindAll(["_onTimeout"],this)};Pa.prototype.setZoomRate=function($){this._defaultZoomRate=$},Pa.prototype.setWheelZoomRate=function($){this._wheelZoomRate=$},Pa.prototype.isEnabled=function(){return!!this._enabled},Pa.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Pa.prototype.isZooming=function(){return!!this._zooming},Pa.prototype.enable=function($){this.isEnabled()||(this._enabled=!0,this._aroundCenter=$&&$.around==="center")},Pa.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Pa.prototype.wheel=function($){if(this.isEnabled()){var at=$.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?$.deltaY*40:$.deltaY,it=t.browser.now(),mt=it-(this._lastWheelEventTime||0);this._lastWheelEventTime=it,at!==0&&at%as===0?this._type="wheel":at!==0&&Math.abs(at)<4?this._type="trackpad":mt>400?(this._type=null,this._lastValue=at,this._timeout=setTimeout(this._onTimeout,40,$)):this._type||(this._type=Math.abs(mt*at)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,at+=this._lastValue)),$.shiftKey&&at&&(at/=4),this._type&&(this._lastWheelEvent=$,this._delta-=at,this._active||this._start($)),$.preventDefault()}},Pa.prototype._onTimeout=function($){this._type="wheel",this._delta-=this._lastValue,this._active||this._start($)},Pa.prototype._start=function($){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var at=w.mousePos(this._el,$);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(at)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Pa.prototype.renderFrame=function(){var $=this;if(this._frameId&&(this._frameId=null,this.isActive())){var at=this._map.transform;if(this._delta!==0){var it=this._type==="wheel"&&Math.abs(this._delta)>as?this._wheelZoomRate:this._defaultZoomRate,mt=ns/(1+Math.exp(-Math.abs(this._delta*it)));this._delta<0&&mt!==0&&(mt=1/mt);var Ft=typeof this._targetZoom=="number"?at.zoomScale(this._targetZoom):at.scale;this._targetZoom=Math.min(at.maxZoom,Math.max(at.minZoom,at.scaleZoom(Ft*mt))),this._type==="wheel"&&(this._startZoom=at.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ie=typeof this._targetZoom=="number"?this._targetZoom:at.zoom,he=this._startZoom,Ie=this._easing,Qe=!1,vr;if(this._type==="wheel"&&he&&Ie){var kr=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),Fr=Ie(kr);vr=t.number(he,ie,Fr),kr<1?this._frameId||(this._frameId=!0):Qe=!0}else vr=ie,Qe=!0;return this._active=!0,Qe&&(this._active=!1,this._finishTimeout=setTimeout(function(){$._zooming=!1,$._handler._triggerRenderFrame(),delete $._targetZoom,delete $._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Qe,zoomDelta:vr-at.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Pa.prototype._smoothOutEasing=function($){var at=t.ease;if(this._prevEase){var it=this._prevEase,mt=(t.browser.now()-it.start)/it.duration,Ft=it.easing(mt+.01)-it.easing(mt),ie=.27/Math.sqrt(Ft*Ft+1e-4)*.01,he=Math.sqrt(.27*.27-ie*ie);at=t.bezier(ie,he,.25,1)}return this._prevEase={start:t.browser.now(),duration:$,easing:at},at},Pa.prototype.reset=function(){this._active=!1};var Yo=function($,at){this._clickZoom=$,this._tapZoom=at};Yo.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Yo.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Yo.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Yo.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ro=function(){this.reset()};Ro.prototype.reset=function(){this._active=!1},Ro.prototype.dblclick=function($,at){return $.preventDefault(),{cameraAnimation:function(it){it.easeTo({duration:300,zoom:it.getZoom()+($.shiftKey?-1:1),around:it.unproject(at)},{originalEvent:$})}}},Ro.prototype.enable=function(){this._enabled=!0},Ro.prototype.disable=function(){this._enabled=!1,this.reset()},Ro.prototype.isEnabled=function(){return this._enabled},Ro.prototype.isActive=function(){return this._active};var dl=function(){this._tap=new ti({numTouches:1,numTaps:1}),this.reset()};dl.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},dl.prototype.touchstart=function($,at,it){this._swipePoint||(this._tapTime&&$.timeStamp-this._tapTime>Yr&&this.reset(),this._tapTime?it.length>0&&(this._swipePoint=at[0],this._swipeTouch=it[0].identifier):this._tap.touchstart($,at,it))},dl.prototype.touchmove=function($,at,it){if(!this._tapTime)this._tap.touchmove($,at,it);else if(this._swipePoint){if(it[0].identifier!==this._swipeTouch)return;var mt=at[0],Ft=mt.y-this._swipePoint.y;return this._swipePoint=mt,$.preventDefault(),this._active=!0,{zoomDelta:Ft/128}}},dl.prototype.touchend=function($,at,it){this._tapTime?this._swipePoint&&it.length===0&&this.reset():this._tap.touchend($,at,it)&&(this._tapTime=$.timeStamp)},dl.prototype.touchcancel=function(){this.reset()},dl.prototype.enable=function(){this._enabled=!0},dl.prototype.disable=function(){this._enabled=!1,this.reset()},dl.prototype.isEnabled=function(){return this._enabled},dl.prototype.isActive=function(){return this._active};var Xo=function($,at,it){this._el=$,this._mousePan=at,this._touchPan=it};Xo.prototype.enable=function($){this._inertiaOptions=$||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Xo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Xo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Xo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var $o=function($,at,it){this._pitchWithRotate=$.pitchWithRotate,this._mouseRotate=at,this._mousePitch=it};$o.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},$o.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},$o.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},$o.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var hs=function($,at,it,mt){this._el=$,this._touchZoom=at,this._touchRotate=it,this._tapDragZoom=mt,this._rotationDisabled=!1,this._enabled=!0};hs.prototype.enable=function($){this._touchZoom.enable($),this._rotationDisabled||this._touchRotate.enable($),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},hs.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},hs.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},hs.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},hs.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},hs.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var $s=function($){return $.zoom||$.drag||$.pitch||$.rotate},jl=(function($){function at(){$.apply(this,arguments)}return $&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at,at})(t.Event);function co($){return $.panDelta&&$.panDelta.mag()||$.zoomDelta||$.bearingDelta||$.pitchDelta}var $n=function($,at){this._map=$,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new gt($),this._bearingSnap=at.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(at),t.bindAll(["handleEvent","handleWindowEvent"],this);var it=this._el;this._listeners=[[it,"touchstart",{passive:!0}],[it,"touchmove",{passive:!1}],[it,"touchend",void 0],[it,"touchcancel",void 0],[it,"mousedown",void 0],[it,"mousemove",void 0],[it,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[it,"mouseover",void 0],[it,"mouseout",void 0],[it,"dblclick",void 0],[it,"click",void 0],[it,"keydown",{capture:!1}],[it,"keyup",void 0],[it,"wheel",{passive:!1}],[it,"contextmenu",void 0],[t.window,"blur",void 0]];for(var mt=0,Ft=this._listeners;mthe?Math.min(2,oa):Math.max(.5,oa))**(1-Va),Xa=ie.unproject(Wi.add(Ta.mult(Va*en)).mult(tn));ie.setLocationAtPoint(ie.renderWorldCopies?Xa.wrap():Xa,vi)}Ft._fireMoveEvents(mt)},function(Va){Ft._afterEase(mt,Va)},it),this},at.prototype._prepareEase=function(it,mt,Ft){Ft===void 0&&(Ft={}),this._moving=!0,!mt&&!Ft.moving&&this.fire(new t.Event("movestart",it)),this._zooming&&!Ft.zooming&&this.fire(new t.Event("zoomstart",it)),this._rotating&&!Ft.rotating&&this.fire(new t.Event("rotatestart",it)),this._pitching&&!Ft.pitching&&this.fire(new t.Event("pitchstart",it))},at.prototype._fireMoveEvents=function(it){this.fire(new t.Event("move",it)),this._zooming&&this.fire(new t.Event("zoom",it)),this._rotating&&this.fire(new t.Event("rotate",it)),this._pitching&&this.fire(new t.Event("pitch",it))},at.prototype._afterEase=function(it,mt){if(!(this._easeId&&mt&&this._easeId===mt)){delete this._easeId;var Ft=this._zooming,ie=this._rotating,he=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Ft&&this.fire(new t.Event("zoomend",it)),ie&&this.fire(new t.Event("rotateend",it)),he&&this.fire(new t.Event("pitchend",it)),this.fire(new t.Event("moveend",it))}},at.prototype.flyTo=function(it,mt){var Ft=this;if(!it.essential&&t.browser.prefersReducedMotion){var ie=t.pick(it,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ie,mt)}this.stop(),it=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},it);var he=this.transform,Ie=this.getZoom(),Qe=this.getBearing(),vr=this.getPitch(),kr=this.getPadding(),Fr="zoom"in it?t.clamp(+it.zoom,he.minZoom,he.maxZoom):Ie,Gr="bearing"in it?this._normalizeBearing(it.bearing,Qe):Qe,oi="pitch"in it?+it.pitch:vr,Ti="padding"in it?it.padding:he.padding,vi=he.zoomScale(Fr-Ie),yi=t.Point.convert(it.offset),Pi=he.centerPoint.add(yi),Wi=he.pointLocation(Pi),Ta=t.LngLat.convert(it.center||Wi);this._normalizeCenter(Ta);var oa=he.project(Wi),da=he.project(Ta).sub(oa),Aa=it.curve,ga=Math.max(he.width,he.height),Va=ga/vi,tn=da.mag();if("minZoom"in it){var en=t.clamp(Math.min(it.minZoom,Ie,Fr),he.minZoom,he.maxZoom),Xa=ga/he.zoomScale(en-Ie);Aa=Math.sqrt(Xa/tn*2)}var Ka=Aa*Aa;function Tn(Vn){var mo=(Va*Va-ga*ga+(Vn?-1:1)*Ka*Ka*tn*tn)/(2*(Vn?Va:ga)*Ka*tn);return Math.log(Math.sqrt(mo*mo+1)-mo)}function vo(Vn){return(Math.exp(Vn)-Math.exp(-Vn))/2}function _n(Vn){return(Math.exp(Vn)+Math.exp(-Vn))/2}function Zn(Vn){return vo(Vn)/_n(Vn)}var Wn=Tn(0),Qn=function(Vn){return _n(Wn)/_n(Wn+Aa*Vn)},ho=function(Vn){return ga*((_n(Wn)*Zn(Wn+Aa*Vn)-vo(Wn))/Ka)/tn},io=(Tn(1)-Wn)/Aa;if(Math.abs(tn)<1e-6||!isFinite(io)){if(Math.abs(ga-Va)<1e-6)return this.easeTo(it,mt);var po=Vait.maxDuration&&(it.duration=0),this._zooming=!0,this._rotating=Qe!==Gr,this._pitching=oi!==vr,this._padding=!he.isPaddingEqual(Ti),this._prepareEase(mt,!1),this._ease(function(Vn){var mo=Vn*io,vs=1/Qn(mo);he.zoom=Vn===1?Fr:Ie+he.scaleZoom(vs),Ft._rotating&&(he.bearing=t.number(Qe,Gr,Vn)),Ft._pitching&&(he.pitch=t.number(vr,oi,Vn)),Ft._padding&&(he.interpolatePadding(kr,Ti,Vn),Pi=he.centerPoint.add(yi));var fs=Vn===1?Ta:he.unproject(oa.add(da.mult(ho(mo))).mult(vs));he.setLocationAtPoint(he.renderWorldCopies?fs.wrap():fs,Pi),Ft._fireMoveEvents(mt)},function(){return Ft._afterEase(mt)},it),this},at.prototype.isEasing=function(){return!!this._easeFrameId},at.prototype.stop=function(){return this._stop()},at.prototype._stop=function(it,mt){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Ft=this._onEaseEnd;delete this._onEaseEnd,Ft.call(this,mt)}if(!it){var ie=this.handlers;ie&&ie.stop(!1)}return this},at.prototype._ease=function(it,mt,Ft){Ft.animate===!1||Ft.duration===0?(it(1),mt()):(this._easeStart=t.browser.now(),this._easeOptions=Ft,this._onEaseFrame=it,this._onEaseEnd=mt,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},at.prototype._renderFrameCallback=function(){var it=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(it)),it<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},at.prototype._normalizeBearing=function(it,mt){it=t.wrap(it,-180,180);var Ft=Math.abs(it-mt);return Math.abs(it-360-mt)180?-360:Ft<-180?360:0}},at})(t.Evented),Js=function($){$===void 0&&($={}),this.options=$,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Js.prototype.getDefaultPosition=function(){return"bottom-right"},Js.prototype.onAdd=function($){var at=this.options&&this.options.compact;return this._map=$,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=w.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=w.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),at&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),at===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Js.prototype.onRemove=function(){w.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Js.prototype._setElementTitle=function($,at){var it=this._map._getUIString("AttributionControl."+at);$.title=it,$.setAttribute("aria-label",it)},Js.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Js.prototype._updateEditLink=function(){var $=this._editLink;$||($=this._editLink=this._container.querySelector(".mapbox-improve-map"));var at=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if($){var it=at.reduce(function(mt,Ft,ie){return Ft.value&&(mt+=Ft.key+"="+Ft.value+(ie=0)return!1;return!0});var he=$.join(" | ");he!==this._attribHTML&&(this._attribHTML=he,$.length?(this._innerContainer.innerHTML=he,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Js.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Ul=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};Ul.prototype.onAdd=function($){this._map=$,this._container=w.create("div","mapboxgl-ctrl");var at=w.create("a","mapboxgl-ctrl-logo");return at.target="_blank",at.rel="noopener nofollow",at.href="https://www.mapbox.com/",at.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),at.setAttribute("rel","noopener nofollow"),this._container.appendChild(at),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Ul.prototype.onRemove=function(){w.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Ul.prototype.getDefaultPosition=function(){return"bottom-left"},Ul.prototype._updateLogo=function($){(!$||$.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Ul.prototype._logoRequired=function(){if(this._map.style){var $=this._map.style.sourceCaches;for(var at in $)if($[at].getSource().mapbox_logo)return!0;return!1}},Ul.prototype._updateCompact=function(){var $=this._container.children;if($.length){var at=$[0];this._map.getCanvasContainer().offsetWidth<250?at.classList.add("mapboxgl-compact"):at.classList.remove("mapboxgl-compact")}};var $l=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};$l.prototype.add=function($){var at=++this._id;return this._queue.push({callback:$,id:at,cancelled:!1}),at},$l.prototype.remove=function($){for(var at=this._currentlyRunning,it=at?this._queue.concat(at):this._queue,mt=0,Ft=it;mtmt.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(mt.minPitch!=null&&mt.maxPitch!=null&&mt.minPitch>mt.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(mt.minPitch!=null&&mt.minPitchdt)throw Error("maxPitch must be less than or equal to "+dt);var ie=new pa(mt.minZoom,mt.maxZoom,mt.minPitch,mt.maxPitch,mt.renderWorldCopies);if($.call(this,ie,mt),this._interactive=mt.interactive,this._maxTileCacheSize=mt.maxTileCacheSize,this._failIfMajorPerformanceCaveat=mt.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=mt.preserveDrawingBuffer,this._antialias=mt.antialias,this._trackResize=mt.trackResize,this._bearingSnap=mt.bearingSnap,this._refreshExpiredTiles=mt.refreshExpiredTiles,this._fadeDuration=mt.fadeDuration,this._crossSourceCollisions=mt.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=mt.collectResourceTiming,this._renderTaskQueue=new $l,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Vo,mt.locale),this._clickTolerance=mt.clickTolerance,this._requestManager=new t.RequestManager(mt.transformRequest,mt.accessToken),typeof mt.container=="string"){if(this._container=t.window.document.getElementById(mt.container),!this._container)throw Error("Container '"+mt.container+"' not found.")}else if(mt.container instanceof Xc)this._container=mt.container;else throw Error("Invalid type: 'container' must be a String or HTMLElement.");if(mt.maxBounds&&this.setMaxBounds(mt.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw Error("Failed to initialize WebGL.");this.on("move",function(){return Ft._update(!1)}),this.on("moveend",function(){return Ft._update(!1)}),this.on("zoom",function(){return Ft._update(!0)}),t.window!==void 0&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new $n(this,mt);var he=typeof mt.hash=="string"&&mt.hash||void 0;this._hash=mt.hash&&new kn(he).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:mt.center,zoom:mt.zoom,bearing:mt.bearing,pitch:mt.pitch}),mt.bounds&&(this.resize(),this.fitBounds(mt.bounds,t.extend({},mt.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=mt.localIdeographFontFamily,mt.style&&this.setStyle(mt.style,{localIdeographFontFamily:mt.localIdeographFontFamily}),mt.attributionControl&&this.addControl(new Js({customAttribution:mt.customAttribution})),this.addControl(new Ul,mt.logoPosition),this.on("style.load",function(){Ft.transform.unmodified&&Ft.jumpTo(Ft.style.stylesheet)}),this.on("data",function(Ie){Ft._update(Ie.dataType==="style"),Ft.fire(new t.Event(Ie.dataType+"data",Ie))}),this.on("dataloading",function(Ie){Ft.fire(new t.Event(Ie.dataType+"dataloading",Ie))})}$&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at;var it={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return at.prototype._getMapId=function(){return this._mapId},at.prototype.addControl=function(mt,Ft){if(Ft===void 0&&(Ft=mt.getDefaultPosition?mt.getDefaultPosition():"top-right"),!mt||!mt.onAdd)return this.fire(new t.ErrorEvent(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ie=mt.onAdd(this);this._controls.push(mt);var he=this._controlPositions[Ft];return Ft.indexOf("bottom")===-1?he.appendChild(ie):he.insertBefore(ie,he.firstChild),this},at.prototype.removeControl=function(mt){if(!mt||!mt.onRemove)return this.fire(new t.ErrorEvent(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Ft=this._controls.indexOf(mt);return Ft>-1&&this._controls.splice(Ft,1),mt.onRemove(this),this},at.prototype.hasControl=function(mt){return this._controls.indexOf(mt)>-1},at.prototype.resize=function(mt){var Ft=this._containerDimensions(),ie=Ft[0],he=Ft[1];this._resizeCanvas(ie,he),this.transform.resize(ie,he),this.painter.resize(ie,he);var Ie=!this._moving;return Ie&&(this.stop(),this.fire(new t.Event("movestart",mt)).fire(new t.Event("move",mt))),this.fire(new t.Event("resize",mt)),Ie&&this.fire(new t.Event("moveend",mt)),this},at.prototype.getBounds=function(){return this.transform.getBounds()},at.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},at.prototype.setMaxBounds=function(mt){return this.transform.setMaxBounds(t.LngLatBounds.convert(mt)),this._update()},at.prototype.setMinZoom=function(mt){if(mt??(mt=bt),mt>=bt&&mt<=this.transform.maxZoom)return this.transform.minZoom=mt,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=mt,this._update(),this.getZoom()>mt&&this.setZoom(mt),this;throw Error("maxZoom must be greater than the current minZoom")},at.prototype.getMaxZoom=function(){return this.transform.maxZoom},at.prototype.setMinPitch=function(mt){if(mt??(mt=W),mt=W&&mt<=this.transform.maxPitch)return this.transform.minPitch=mt,this._update(),this.getPitch()dt)throw Error("maxPitch must be less than or equal to "+dt);if(mt>=this.transform.minPitch)return this.transform.maxPitch=mt,this._update(),this.getPitch()>mt&&this.setPitch(mt),this;throw Error("maxPitch must be greater than the current minPitch")},at.prototype.getMaxPitch=function(){return this.transform.maxPitch},at.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},at.prototype.setRenderWorldCopies=function(mt){return this.transform.renderWorldCopies=mt,this._update()},at.prototype.project=function(mt){return this.transform.locationPoint(t.LngLat.convert(mt))},at.prototype.unproject=function(mt){return this.transform.pointLocation(t.Point.convert(mt))},at.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},at.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},at.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},at.prototype._createDelegatedListener=function(mt,Ft,ie){var he=this,Ie;if(mt==="mouseenter"||mt==="mouseover"){var Qe=!1;return{layer:Ft,listener:ie,delegates:{mousemove:function(kr){var Fr=he.getLayer(Ft)?he.queryRenderedFeatures(kr.point,{layers:[Ft]}):[];Fr.length?Qe||(Qe=!0,ie.call(he,new se(mt,he,kr.originalEvent,{features:Fr}))):Qe=!1},mouseout:function(){Qe=!1}}}}else if(mt==="mouseleave"||mt==="mouseout"){var vr=!1;return{layer:Ft,listener:ie,delegates:{mousemove:function(kr){(he.getLayer(Ft)?he.queryRenderedFeatures(kr.point,{layers:[Ft]}):[]).length?vr=!0:vr&&(vr=!1,ie.call(he,new se(mt,he,kr.originalEvent)))},mouseout:function(kr){vr&&(vr=!1,ie.call(he,new se(mt,he,kr.originalEvent)))}}}}else return{layer:Ft,listener:ie,delegates:(Ie={},Ie[mt]=function(kr){var Fr=he.getLayer(Ft)?he.queryRenderedFeatures(kr.point,{layers:[Ft]}):[];Fr.length&&(kr.features=Fr,ie.call(he,kr),delete kr.features)},Ie)}},at.prototype.on=function(mt,Ft,ie){if(ie===void 0)return $.prototype.on.call(this,mt,Ft);var he=this._createDelegatedListener(mt,Ft,ie);for(var Ie in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[mt]=this._delegatedListeners[mt]||[],this._delegatedListeners[mt].push(he),he.delegates)this.on(Ie,he.delegates[Ie]);return this},at.prototype.once=function(mt,Ft,ie){if(ie===void 0)return $.prototype.once.call(this,mt,Ft);var he=this._createDelegatedListener(mt,Ft,ie);for(var Ie in he.delegates)this.once(Ie,he.delegates[Ie]);return this},at.prototype.off=function(mt,Ft,ie){var he=this;return ie===void 0?$.prototype.off.call(this,mt,Ft):(this._delegatedListeners&&this._delegatedListeners[mt]&&(function(Ie){for(var Qe=Ie[mt],vr=0;vr180;){var he=it.locationPoint($);if(he.x>=0&&he.y>=0&&he.x<=it.width&&he.y<=it.height)break;$.lng>it.center.lng?$.lng-=360:$.lng+=360}return $}var gr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Ur($,at,it){var mt=$.classList;for(var Ft in gr)mt.remove("mapboxgl-"+it+"-anchor-"+Ft);mt.add("mapboxgl-"+it+"-anchor-"+at)}var ri=(function($){function at(it,mt){if($.call(this),(it instanceof t.window.HTMLElement||mt)&&(it=t.extend({element:it},mt)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=it&&it.anchor||"center",this._color=it&&it.color||"#3FB1CE",this._scale=it&&it.scale||1,this._draggable=it&&it.draggable||!1,this._clickTolerance=it&&it.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=it&&it.rotation||0,this._rotationAlignment=it&&it.rotationAlignment||"auto",this._pitchAlignment=it&&it.pitchAlignment&&it.pitchAlignment!=="auto"?it.pitchAlignment:this._rotationAlignment,!it||!it.element){this._defaultMarker=!0,this._element=w.create("div"),this._element.setAttribute("aria-label","Map marker");var Ft=w.createNS("http://www.w3.org/2000/svg","svg"),ie=41,he=27;Ft.setAttributeNS(null,"display","block"),Ft.setAttributeNS(null,"height",ie+"px"),Ft.setAttributeNS(null,"width",he+"px"),Ft.setAttributeNS(null,"viewBox","0 0 "+he+" "+ie);var Ie=w.createNS("http://www.w3.org/2000/svg","g");Ie.setAttributeNS(null,"stroke","none"),Ie.setAttributeNS(null,"stroke-width","1"),Ie.setAttributeNS(null,"fill","none"),Ie.setAttributeNS(null,"fill-rule","evenodd");var Qe=w.createNS("http://www.w3.org/2000/svg","g");Qe.setAttributeNS(null,"fill-rule","nonzero");var vr=w.createNS("http://www.w3.org/2000/svg","g");vr.setAttributeNS(null,"transform","translate(3.0, 29.0)"),vr.setAttributeNS(null,"fill","#000000");for(var kr=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Fr=0,Gr=kr;Fr=mt}this._isDragging&&(this._pos=it.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")))},at.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new t.Event("dragend")),this._state="inactive"},at.prototype._addDragHandler=function(it){this._element.contains(it.originalEvent.target)&&(it.preventDefault(),this._positionDelta=it.point.sub(this._pos).add(this._offset),this._pointerdownPos=it.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},at.prototype.setDraggable=function(it){return this._draggable=!!it,this._map&&(it?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},at.prototype.isDraggable=function(){return this._draggable},at.prototype.setRotation=function(it){return this._rotation=it||0,this._update(),this},at.prototype.getRotation=function(){return this._rotation},at.prototype.setRotationAlignment=function(it){return this._rotationAlignment=it||"auto",this._update(),this},at.prototype.getRotationAlignment=function(){return this._rotationAlignment},at.prototype.setPitchAlignment=function(it){return this._pitchAlignment=it&&it!=="auto"?it:this._rotationAlignment,this._update(),this},at.prototype.getPitchAlignment=function(){return this._pitchAlignment},at})(t.Evented),pi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},xi;function Mi($){xi===void 0?t.window.navigator.permissions===void 0?(xi=!!t.window.navigator.geolocation,$(xi)):t.window.navigator.permissions.query({name:"geolocation"}).then(function(at){xi=at.state!=="denied",$(xi)}):$(xi)}var Vi=0,Xi=!1,$i=(function($){function at(it){$.call(this),this.options=t.extend({},pi,it),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return $&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at,at.prototype.onAdd=function(it){return this._map=it,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Mi(this._setupUI),this._container},at.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),w.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Vi=0,Xi=!1},at.prototype._isOutOfMapMaxBounds=function(it){var mt=this._map.getMaxBounds(),Ft=it.coords;return mt&&(Ft.longitudemt.getEast()||Ft.latitudemt.getNorth())},at.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},at.prototype._onSuccess=function(it){if(this._map){if(this._isOutOfMapMaxBounds(it)){this._setErrorState(),this.fire(new t.Event("outofmaxbounds",it)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=it,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(it),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(it),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",it)),this._finish()}},at.prototype._updateCamera=function(it){var mt=new t.LngLat(it.coords.longitude,it.coords.latitude),Ft=it.coords.accuracy,ie=this._map.getBearing(),he=t.extend({bearing:ie},this.options.fitBoundsOptions);this._map.fitBounds(mt.toBounds(Ft),he,{geolocateSource:!0})},at.prototype._updateMarker=function(it){if(it){var mt=new t.LngLat(it.coords.longitude,it.coords.latitude);this._accuracyCircleMarker.setLngLat(mt).addTo(this._map),this._userLocationDotMarker.setLngLat(mt).addTo(this._map),this._accuracy=it.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},at.prototype._updateCircleRadius=function(){var it=this._map._container.clientHeight/2,mt=this._map.unproject([0,it]),Ft=this._map.unproject([1,it]),ie=mt.distanceTo(Ft),he=Math.ceil(2*this._accuracy/ie);this._circleElement.style.width=he+"px",this._circleElement.style.height=he+"px"},at.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},at.prototype._onError=function(it){if(this._map){if(this.options.trackUserLocation)if(it.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var mt=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=mt,this._geolocateButton.setAttribute("aria-label",mt),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(it.code===3&&Xi)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",it)),this._finish()}},at.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},at.prototype._setupUI=function(it){var mt=this;if(this._container.addEventListener("contextmenu",function(he){return he.preventDefault()}),this._geolocateButton=w.create("button","mapboxgl-ctrl-geolocate",this._container),w.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",it===!1){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Ft=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Ft,this._geolocateButton.setAttribute("aria-label",Ft)}else{var ie=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ie,this._geolocateButton.setAttribute("aria-label",ie)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=w.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ri(this._dotElement),this._circleElement=w.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ri({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(he){var Ie=he.originalEvent&&he.originalEvent.type==="resize";!he.geolocateSource&&mt._watchState==="ACTIVE_LOCK"&&!Ie&&(mt._watchState="BACKGROUND",mt._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),mt._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),mt.fire(new t.Event("trackuserlocationend")))})},at.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Vi--,Xi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Vi++;var it;Vi>1?(it={maximumAge:6e5,timeout:0},Xi=!0):(it=this.options.positionOptions,Xi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,it)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},at.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},at})(t.Evented),xa={maxWidth:100,unit:"metric"},_a=function($){this.options=t.extend({},xa,$),t.bindAll(["_onMove","setUnit"],this)};_a.prototype.getDefaultPosition=function(){return"bottom-left"},_a.prototype._onMove=function(){za(this._map,this._container,this.options)},_a.prototype.onAdd=function($){return this._map=$,this._container=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",$.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},_a.prototype.onRemove=function(){w.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},_a.prototype.setUnit=function($){this.options.unit=$,za(this._map,this._container,this.options)};function za($,at,it){var mt=it&&it.maxWidth||100,Ft=$._container.clientHeight/2,ie=$.unproject([0,Ft]),he=$.unproject([mt,Ft]),Ie=ie.distanceTo(he);if(it&&it.unit==="imperial"){var Qe=3.2808*Ie;Qe>5280?on(at,mt,Qe/5280,$._getUIString("ScaleControl.Miles")):on(at,mt,Qe,$._getUIString("ScaleControl.Feet"))}else it&&it.unit==="nautical"?on(at,mt,Ie/1852,$._getUIString("ScaleControl.NauticalMiles")):Ie>=1e3?on(at,mt,Ie/1e3,$._getUIString("ScaleControl.Kilometers")):on(at,mt,Ie,$._getUIString("ScaleControl.Meters"))}function on($,at,it,mt){var Ft=Xn(it),ie=Ft/it;$.style.width=at*ie+"px",$.innerHTML=Ft+" "+mt}function mn($){var at=10**Math.ceil(-Math.log($)/Math.LN10);return Math.round($*at)/at}function Xn($){var at=10**((""+Math.floor($)).length-1),it=$/at;return it=it>=10?10:it>=5?5:it>=3?3:it>=2?2:it>=1?1:mn(it),at*it}var gn=function($){this._fullscreen=!1,$&&$.container&&($.container instanceof t.window.HTMLElement?this._container=$.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};gn.prototype.onAdd=function($){return this._map=$,this._container||(this._container=this._map.getContainer()),this._controlContainer=w.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},gn.prototype.onRemove=function(){w.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},gn.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},gn.prototype._setupUI=function(){var $=this._fullscreenButton=w.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);w.create("span","mapboxgl-ctrl-icon",$).setAttribute("aria-hidden",!0),$.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},gn.prototype._updateTitle=function(){var $=this._getTitle();this._fullscreenButton.setAttribute("aria-label",$),this._fullscreenButton.title=$},gn.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},gn.prototype._isFullscreen=function(){return this._fullscreen},gn.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},gn.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Qa={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},un=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Dn=(function($){function at(it){$.call(this),this.options=t.extend(Object.create(Qa),it),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return $&&(at.__proto__=$),at.prototype=Object.create($&&$.prototype),at.prototype.constructor=at,at.prototype.addTo=function(it){return this._map&&this.remove(),this._map=it,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},at.prototype.isOpen=function(){return!!this._map},at.prototype.remove=function(){return this._content&&w.remove(this._content),this._container&&(w.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},at.prototype.getLngLat=function(){return this._lngLat},at.prototype.setLngLat=function(it){return this._lngLat=t.LngLat.convert(it),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},at.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},at.prototype.getElement=function(){return this._container},at.prototype.setText=function(it){return this.setDOMContent(t.window.document.createTextNode(it))},at.prototype.setHTML=function(it){var mt=t.window.document.createDocumentFragment(),Ft=t.window.document.createElement("body"),ie;for(Ft.innerHTML=it;ie=Ft.firstChild,ie;)mt.appendChild(ie);return this.setDOMContent(mt)},at.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},at.prototype.setMaxWidth=function(it){return this.options.maxWidth=it,this._update(),this},at.prototype.setDOMContent=function(it){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=w.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(it),this._createCloseButton(),this._update(),this._focusFirstElement(),this},at.prototype.addClassName=function(it){this._container&&this._container.classList.add(it)},at.prototype.removeClassName=function(it){this._container&&this._container.classList.remove(it)},at.prototype.setOffset=function(it){return this.options.offset=it,this._update(),this},at.prototype.toggleClassName=function(it){if(this._container)return this._container.classList.toggle(it)},at.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=w.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},at.prototype._onMouseUp=function(it){this._update(it.point)},at.prototype._onMouseMove=function(it){this._update(it.point)},at.prototype._onDrag=function(it){this._update(it.point)},at.prototype._update=function(it){var mt=this,Ft=this._lngLat||this._trackPointer;if(!(!this._map||!Ft||!this._content)&&(this._container||(this._container=w.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=w.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Gr){return mt._container.classList.add(Gr)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=cr(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!it))){var ie=this._pos=this._trackPointer&&it?it:this._map.project(this._lngLat),he=this.options.anchor,Ie=Rn(this.options.offset);if(!he){var Qe=this._container.offsetWidth,vr=this._container.offsetHeight,kr=ie.y+Ie.bottom.ythis._map.transform.height-vr?["bottom"]:[];ie.xthis._map.transform.width-Qe/2&&kr.push("right"),he=kr.length===0?"bottom":kr.join("-")}var Fr=ie.add(Ie[he]).round();w.setTransform(this._container,gr[he]+" translate("+Fr.x+"px,"+Fr.y+"px)"),Ur(this._container,he,"popup")}},at.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var it=this._container.querySelector(un);it&&it.focus()}},at.prototype._onClose=function(){this.remove()},at})(t.Evented);function Rn($){if($)if(typeof $=="number"){var at=Math.round(Math.sqrt(.5*$**2));return{center:new t.Point(0,0),top:new t.Point(0,$),"top-left":new t.Point(at,at),"top-right":new t.Point(-at,at),bottom:new t.Point(0,-$),"bottom-left":new t.Point(at,-at),"bottom-right":new t.Point(-at,-at),left:new t.Point($,0),right:new t.Point(-$,0)}}else if($ instanceof t.Point||Array.isArray($)){var it=t.Point.convert($);return{center:it,top:it,"top-left":it,"top-right":it,bottom:it,"bottom-left":it,"bottom-right":it,left:it,right:it}}else return{center:t.Point.convert($.center||[0,0]),top:t.Point.convert($.top||[0,0]),"top-left":t.Point.convert($["top-left"]||[0,0]),"top-right":t.Point.convert($["top-right"]||[0,0]),bottom:t.Point.convert($.bottom||[0,0]),"bottom-left":t.Point.convert($["bottom-left"]||[0,0]),"bottom-right":t.Point.convert($["bottom-right"]||[0,0]),left:t.Point.convert($.left||[0,0]),right:t.Point.convert($.right||[0,0])};else return Rn(new t.Point(0,0))}var so={version:t.version,supported:E,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Nt,NavigationControl:Ue,GeolocateControl:$i,AttributionControl:Js,ScaleControl:_a,FullscreenControl:gn,Popup:Dn,Marker:ri,Style:os,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:re,clearPrewarmedResources:ae,get accessToken(){return t.config.ACCESS_TOKEN},set accessToken($){t.config.ACCESS_TOKEN=$},get baseApiUrl(){return t.config.API_URL},set baseApiUrl($){t.config.API_URL=$},get workerCount(){return Dr.workerCount},set workerCount($){Dr.workerCount=$},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests($){t.config.MAX_PARALLEL_IMAGE_REQUESTS=$},clearStorage:function($){t.clearTileCache($)},workerUrl:""};return so}),S}))}),27549:(function(tt,G,e){tt.exports=e(55366)}),55366:(function(tt,G,e){var S=e(31625),A=e(75144),t=e(5137),E=e(78112),w=e(6807),p=e(68650),c=e(83473),i=e(60201),r=e(10275),o=e(62914),a=1073741824;tt.exports=function(n,m){m||(m={}),n=c(n,"float64"),m=w(m,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var x=p(m.maxDepth,255),f=p(m.bounds,E(n,2));f[0]===f[2]&&f[2]++,f[1]===f[3]&&f[3]++;var v=s(n,f),l=n.length>>>1,h;m.dtype||(m.dtype="array"),typeof m.dtype=="string"?h=new(r(m.dtype))(l):m.dtype&&(h=m.dtype,Array.isArray(h)&&(h.length=l));for(var d=0;dx||nt>a){for(var Q=0;QEt||st>At||ot=X)&&Kt!==Gt){var qt=b[Ht];Gt===void 0&&(Gt=qt.length);for(var jt=Kt;jt=ft&&Xt<=J&&ye>=ct&&ye<=et&<.push(de)}var Le=M[Ht],ve=Le[Kt*4+0],ke=Le[Kt*4+1],Pe=Le[Kt*4+2],me=Le[Kt*4+3],be=kt(Le,Kt+1),je=Ot*.5,nr=Ht+1;yt(Lt,St,je,nr,ve,ke||Pe||me||be),yt(Lt,St+je,je,nr,ke,Pe||me||be),yt(Lt+je,St,je,nr,Pe,me||be),yt(Lt+je,St+je,je,nr,me,be)}}}function kt(Lt,St){for(var Ot=null,Ht=0;Ot===null;)if(Ot=Lt[St*4+Ht],Ht++,Ht>Lt.length)return null;return Ot}return lt}function B(P,N,V,Y,K){for(var nt=[],ft=0;ftE&&(E=e[p]),e[p]"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v(U){return Function.toString.call(U).indexOf("[native code]")!==-1}function l(U,P){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,V){return N.__proto__=V,N},l(U,P)}function h(U){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},h(U)}function d(U){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},d(U)}var b=e(56557).inspect,M=e(34585).codes.ERR_INVALID_ARG_TYPE;function g(U,P,N){return(N===void 0||N>U.length)&&(N=U.length),U.substring(N-P.length,N)===P}function k(U,P){if(P=Math.floor(P),U.length==0||P==0)return"";var N=U.length*P;for(P=Math.floor(Math.log(P)/Math.log(2));P;)U+=U,P--;return U+=U.substring(0,N-U.length),U}var L="",u="",T="",C="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},F=10;function O(U){var P=Object.keys(U),N=Object.create(Object.getPrototypeOf(U));return P.forEach(function(V){N[V]=U[V]}),Object.defineProperty(N,"message",{value:U.message}),N}function j(U){return b(U,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B(U,P,N){var V="",Y="",K=0,nt="",ft=!1,ct=j(U),J=ct.split(` +`),et=j(P).split(` +`),Q=0,Z="";if(N==="strictEqual"&&d(U)==="object"&&d(P)==="object"&&U!==null&&P!==null&&(N="strictEqualObject"),J.length===1&&et.length===1&&J[0]!==et[0]){var st=J[0].length+et[0].length;if(st<=F){if((d(U)!=="object"||U===null)&&(d(P)!=="object"||P===null)&&(U!==0||P!==0))return`${_[N]} + +${J[0]} !== ${et[0]} +`}else if(N!=="strictEqualObject"&&st<(S.stderr&&S.stderr.isTTY?S.stderr.columns:80)){for(;J[0][Q]===et[0][Q];)Q++;Q>2&&(Z=` + ${k(" ",Q)}^`,Q=0)}}for(var ot=J[J.length-1],rt=et[et.length-1];ot===rt&&(Q++<2?nt=` + ${ot}${nt}`:V=ot,J.pop(),et.pop(),!(J.length===0||et.length===0));)ot=J[J.length-1],rt=et[et.length-1];var X=Math.max(J.length,et.length);if(X===0){var ut=ct.split(` +`);if(ut.length>30)for(ut[26]=`${L}...${C}`;ut.length>27;)ut.pop();return`${_.notIdentical} + +${ut.join(` +`)} +`}Q>3&&(nt=` +${L}...${C}${nt}`,ft=!0),V!==""&&(nt=` + ${V}${nt}`,V="");var lt=0,yt=_[N]+` +${u}+ actual${C} ${T}- expected${C}`,kt=` ${L}...${C} Lines skipped`;for(Q=0;Q1&&Q>2&&(Lt>4?(Y+=` +${L}...${C}`,ft=!0):Lt>3&&(Y+=` + ${et[Q-2]}`,lt++),Y+=` + ${et[Q-1]}`,lt++),K=Q,V+=` +${T}-${C} ${et[Q]}`,lt++;else if(et.length1&&Q>2&&(Lt>4?(Y+=` +${L}...${C}`,ft=!0):Lt>3&&(Y+=` + ${J[Q-2]}`,lt++),Y+=` + ${J[Q-1]}`,lt++),K=Q,Y+=` +${u}+${C} ${J[Q]}`,lt++;else{var St=et[Q],Ot=J[Q],Ht=Ot!==St&&(!g(Ot,",")||Ot.slice(0,-1)!==St);Ht&&g(St,",")&&St.slice(0,-1)===Ot&&(Ht=!1,Ot+=","),Ht?(Lt>1&&Q>2&&(Lt>4?(Y+=` +${L}...${C}`,ft=!0):Lt>3&&(Y+=` + ${J[Q-2]}`,lt++),Y+=` + ${J[Q-1]}`,lt++),K=Q,Y+=` +${u}+${C} ${Ot}`,V+=` +${T}-${C} ${St}`,lt+=2):(Y+=V,V="",(Lt===1||Q===0)&&(Y+=` + ${Ot}`,lt++))}if(lt>20&&Q30)for(st[26]=`${L}...${C}`;st.length>27;)st.pop();K=st.length===1?N.call(this,`${Z} ${st[0]}`):N.call(this,`${Z} + +${st.join(` +`)} +`)}else{var ot=j(J),rt="",X=_[ft];ft==="notDeepEqual"||ft==="notEqual"?(ot=`${_[ft]} + +${ot}`,ot.length>1024&&(ot=`${ot.slice(0,1021)}...`)):(rt=`${j(et)}`,ot.length>512&&(ot=`${ot.slice(0,509)}...`),rt.length>512&&(rt=`${rt.slice(0,509)}...`),ft==="deepEqual"||ft==="equal"?ot=`${X} + +${ot} + +should equal + +`:rt=` ${ft} ${rt}`),K=N.call(this,`${ot}${rt}`)}return Error.stackTraceLimit=Q,K.generatedMessage=!nt,Object.defineProperty(n(K),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),K.code="ERR_ASSERTION",K.actual=J,K.expected=et,K.operator=ft,Error.captureStackTrace&&Error.captureStackTrace(n(K),ct),K.stack,K.name="AssertionError",s(K)}return c(V,[{key:"toString",value:function(){return`${this.name} [${this.code}]: ${this.message}`}},{key:P,value:function(Y,K){return b(this,t(t({},K),{},{customInspect:!1,depth:0}))}}]),V})(m(Error),b.custom)}),34585:(function(tt,G,e){function S(M){"@babel/helpers - typeof";return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},S(M)}function A(M,g){for(var k=0;k"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n(M){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},n(M)}var m={},x,f;function v(M,g,k){k||(k=Error);function L(u,T,C){return typeof g=="string"?g:g(u,T,C)}m[M]=(function(u){c(C,u);var T=r(C);function C(_,F,O){var j;return p(this,C),j=T.call(this,L(_,F,O)),j.code=M,j}return t(C)})(k)}function l(M,g){if(Array.isArray(M)){var k=M.length;return M=M.map(function(L){return String(L)}),k>2?`one of ${g} ${M.slice(0,k-1).join(", ")}, or `+M[k-1]:k===2?`one of ${g} ${M[0]} or ${M[1]}`:`of ${g} ${M[0]}`}else return`of ${g} ${String(M)}`}function h(M,g,k){return M.substr(!k||k<0?0:+k,g.length)===g}function d(M,g,k){return(k===void 0||k>M.length)&&(k=M.length),M.substring(k-g.length,k)===g}function b(M,g,k){return typeof k!="number"&&(k=0),k+g.length>M.length?!1:M.indexOf(g,k)!==-1}v("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),v("ERR_INVALID_ARG_TYPE",function(M,g,k){x===void 0&&(x=e(85672)),x(typeof M=="string","'name' must be a string");var L;typeof g=="string"&&h(g,"not ")?(L="must not be",g=g.replace(/^not /,"")):L="must be";var u=d(M," argument")?`The ${M} ${L} ${l(g,"type")}`:`The "${M}" ${b(M,".")?"property":"argument"} ${L} ${l(g,"type")}`;return u+=`. Received type ${S(k)}`,u},TypeError),v("ERR_INVALID_ARG_VALUE",function(M,g){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";f===void 0&&(f=e(56557));var L=f.inspect(g);return L.length>128&&(L=`${L.slice(0,128)}...`),`The argument '${M}' ${k}. Received ${L}`},TypeError,RangeError),v("ERR_INVALID_RETURN_VALUE",function(M,g,k){return`Expected ${M} to be returned from the "${g}" function but got ${k&&k.constructor&&k.constructor.name?`instance of ${k.constructor.name}`:`type ${S(k)}`}.`},TypeError),v("ERR_MISSING_ARGS",function(){var M=[...arguments];x===void 0&&(x=e(85672)),x(M.length>0,"At least one arg needs to be specified");var g="The ",k=M.length;switch(M=M.map(function(L){return`"${L}"`}),k){case 1:g+=`${M[0]} argument`;break;case 2:g+=`${M[0]} and ${M[1]} arguments`;break;default:g+=M.slice(0,k-1).join(", "),g+=`, and ${M[k-1]} arguments`;break}return`${g} must be specified`},TypeError),tt.exports.codes=m}),23879:(function(tt,G,e){function S(At,qt){return p(At)||w(At,qt)||t(At,qt)||A()}function A(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t(At,qt){if(At){if(typeof At=="string")return E(At,qt);var jt=Object.prototype.toString.call(At).slice(8,-1);if(jt==="Object"&&At.constructor&&(jt=At.constructor.name),jt==="Map"||jt==="Set")return Array.from(At);if(jt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(jt))return E(At,qt)}}function E(At,qt){(qt==null||qt>At.length)&&(qt=At.length);for(var jt=0,de=Array(qt);jt10)return!0;for(var qt=0;qt57)return!0}return At.length===10&&At>=4294967296}function P(At){return Object.keys(At).filter(U).concat(s(At).filter(Object.prototype.propertyIsEnumerable.bind(At)))}function N(At,qt){if(At===qt)return 0;for(var jt=At.length,de=qt.length,Xt=0,ye=Math.min(jt,de);Xt"u"?[]:new Uint8Array(256),t=0;t>2],o+=S[(c[i]&3)<<4|c[i+1]>>4],o+=S[(c[i+1]&15)<<2|c[i+2]>>6],o+=S[c[i+2]&63];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o},w=function(p){var c=p.length*.75,i=p.length,r,o=0,a,s,n,m;p[p.length-1]==="="&&(c--,p[p.length-2]==="="&&c--);var x=new ArrayBuffer(c),f=new Uint8Array(x);for(r=0;r>4,f[o++]=(s&15)<<4|n>>2,f[o++]=(n&3)<<6|m&63;return x}}),76226:(function(tt,G){G.byteLength=c,G.toByteArray=r,G.fromByteArray=s;for(var e=[],S=[],A=typeof Uint8Array<"u"?Uint8Array:Array,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,w=t.length;E0)throw Error("Invalid string. Length must be a multiple of 4");var x=n.indexOf("=");x===-1&&(x=m);var f=x===m?0:4-x%4;return[x,f]}function c(n){var m=p(n),x=m[0],f=m[1];return(x+f)*3/4-f}function i(n,m,x){return(m+x)*3/4-x}function r(n){var m,x=p(n),f=x[0],v=x[1],l=new A(i(n,f,v)),h=0,d=v>0?f-4:f,b;for(b=0;b>16&255,l[h++]=m>>8&255,l[h++]=m&255;return v===2&&(m=S[n.charCodeAt(b)]<<2|S[n.charCodeAt(b+1)]>>4,l[h++]=m&255),v===1&&(m=S[n.charCodeAt(b)]<<10|S[n.charCodeAt(b+1)]<<4|S[n.charCodeAt(b+2)]>>2,l[h++]=m>>8&255,l[h++]=m&255),l}function o(n){return e[n>>18&63]+e[n>>12&63]+e[n>>6&63]+e[n&63]}function a(n,m,x){for(var f,v=[],l=m;ld?d:h+l));return f===1?(m=n[x-1],v.push(e[m>>2]+e[m<<4&63]+"==")):f===2&&(m=(n[x-2]<<8)+n[x-1],v.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),v.join("")}}),31625:(function(tt){function G(w,p,c,i,r){for(var o=r+1;i<=r;){var a=i+r>>>1,s=w[a];(c===void 0?s-p:c(s,p))>=0?(o=a,r=a-1):i=a+1}return o}function e(w,p,c,i,r){for(var o=r+1;i<=r;){var a=i+r>>>1,s=w[a];(c===void 0?s-p:c(s,p))>0?(o=a,r=a-1):i=a+1}return o}function S(w,p,c,i,r){for(var o=i-1;i<=r;){var a=i+r>>>1,s=w[a];(c===void 0?s-p:c(s,p))<0?(o=a,i=a+1):r=a-1}return o}function A(w,p,c,i,r){for(var o=i-1;i<=r;){var a=i+r>>>1,s=w[a];(c===void 0?s-p:c(s,p))<=0?(o=a,i=a+1):r=a-1}return o}function t(w,p,c,i,r){for(;i<=r;){var o=i+r>>>1,a=w[o],s=c===void 0?a-p:c(a,p);if(s===0)return o;s<=0?i=o+1:r=o-1}return-1}function E(w,p,c,i,r,o){return typeof c=="function"?o(w,p,c,i===void 0?0:i|0,r===void 0?w.length-1:r|0):o(w,p,void 0,c===void 0?0:c|0,i===void 0?w.length-1:i|0)}tt.exports={ge:function(w,p,c,i,r){return E(w,p,c,i,r,G)},gt:function(w,p,c,i,r){return E(w,p,c,i,r,e)},lt:function(w,p,c,i,r){return E(w,p,c,i,r,S)},le:function(w,p,c,i,r){return E(w,p,c,i,r,A)},eq:function(w,p,c,i,r){return E(w,p,c,i,r,t)}}}),54689:(function(tt,G){"use restrict";var e=32;G.INT_BITS=e,G.INT_MAX=2147483647,G.INT_MIN=-1<0)-(t<0)},G.abs=function(t){var E=t>>e-1;return(t^E)-E},G.min=function(t,E){return E^(t^E)&-(t65535)<<4,w;return t>>>=E,w=(t>255)<<3,t>>>=w,E|=w,w=(t>15)<<2,t>>>=w,E|=w,w=(t>3)<<1,t>>>=w,E|=w,E|t>>1},G.log10=function(t){return t>=1e9?9:t>=1e8?8:t>=1e7?7:t>=1e6?6:t>=1e5?5:t>=1e4?4:t>=1e3?3:t>=100?2:t>=10?1:0},G.popCount=function(t){return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24};function S(t){var E=32;return t&=-t,t&&E--,t&65535&&(E-=16),t&16711935&&(E-=8),t&252645135&&(E-=4),t&858993459&&(E-=2),t&1431655765&&--E,E}G.countTrailingZeros=S,G.nextPow2=function(t){return t+=t===0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1},G.prevPow2=function(t){return t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t-(t>>>1)},G.parity=function(t){return t^=t>>>16,t^=t>>>8,t^=t>>>4,t&=15,27030>>>t&1};var A=Array(256);(function(t){for(var E=0;E<256;++E){var w=E,p=E,c=7;for(w>>>=1;w;w>>>=1)p<<=1,p|=w&1,--c;t[E]=p<>>8&255]<<16|A[t>>>16&255]<<8|A[t>>>24&255]},G.interleave2=function(t,E){return t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,E&=65535,E=(E|E<<8)&16711935,E=(E|E<<4)&252645135,E=(E|E<<2)&858993459,E=(E|E<<1)&1431655765,t|E<<1},G.deinterleave2=function(t,E){return t=t>>>E&1431655765,t=(t|t>>>1)&858993459,t=(t|t>>>2)&252645135,t=(t|t>>>4)&16711935,t=(t|t>>>16)&65535,t<<16>>16},G.interleave3=function(t,E,w){return t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,E&=1023,E=(E|E<<16)&4278190335,E=(E|E<<8)&251719695,E=(E|E<<4)&3272356035,E=(E|E<<2)&1227133513,t|=E<<1,w&=1023,w=(w|w<<16)&4278190335,w=(w|w<<8)&251719695,w=(w|w<<4)&3272356035,w=(w|w<<2)&1227133513,t|w<<2},G.deinterleave3=function(t,E){return t=t>>>E&1227133513,t=(t|t>>>2)&3272356035,t=(t|t>>>4)&251719695,t=(t|t>>>8)&4278190335,t=(t|t>>>16)&1023,t<<22>>22},G.nextCombination=function(t){var E=t|t-1;return E+1|(~E&-~E)-1>>>S(t)+1}}),88772:(function(tt,G,e){var S=e(75144);tt.exports=t;var A=1e20;function t(p,c){c||(c={});var i=c.cutoff==null?.25:c.cutoff,r=c.radius==null?8:c.radius,o=c.channel||0,a,s,n,m,x,f,v,l,h,d,b;if(ArrayBuffer.isView(p)||Array.isArray(p)){if(!c.width||!c.height)throw Error("For raw data width and height should be provided by options");a=c.width,s=c.height,m=p,f=c.stride?c.stride:Math.floor(p.length/a/s)}else window.HTMLCanvasElement&&p instanceof window.HTMLCanvasElement?(l=p,v=l.getContext("2d"),a=l.width,s=l.height,h=v.getImageData(0,0,a,s),m=h.data,f=4):window.CanvasRenderingContext2D&&p instanceof window.CanvasRenderingContext2D?(l=p.canvas,v=p,a=l.width,s=l.height,h=v.getImageData(0,0,a,s),m=h.data,f=4):window.ImageData&&p instanceof window.ImageData&&(h=p,a=p.width,s=p.height,m=h.data,f=4);if(n=Math.max(a,s),window.Uint8ClampedArray&&m instanceof window.Uint8ClampedArray||window.Uint8Array&&m instanceof window.Uint8Array)for(x=m,m=Array(a*s),d=0,b=x.length;d-1?A(p):p}}),87227:(function(tt,G,e){var S=e(87547),A=e(71129),t=e(73285),E=e(48631),w=A("%Function.prototype.apply%"),p=A("%Function.prototype.call%"),c=A("%Reflect.apply%",!0)||S.call(p,w),i=e(40891),r=A("%Math.max%");tt.exports=function(a){if(typeof a!="function")throw new E("a function is required");return t(c(S,p,arguments),1+r(0,a.length-(arguments.length-1)),!0)};var o=function(){return c(S,w,arguments)};i?i(tt.exports,"apply",{value:o}):tt.exports.apply=o}),75144:(function(tt){tt.exports=G;function G(e,S,A){return SA?A:e:eS?S:e}}),46762:(function(tt,G,e){var S=e(75144);tt.exports=A,tt.exports.to=A,tt.exports.from=t;function A(E,w){w??(w=!0);var p=E[0],c=E[1],i=E[2],r=E[3];return r??(r=w?1:255),w&&(p*=255,c*=255,i*=255,r*=255),p=S(p,0,255)&255,c=S(c,0,255)&255,i=S(i,0,255)&255,r=S(r,0,255)&255,p*16777216+(c<<16)+(i<<8)+r}function t(E,w){E=+E;var p=E>>>24,c=(E&16711680)>>>16,i=(E&65280)>>>8,r=E&255;return w===!1?[p,c,i,r]:[p/255,c/255,i/255,r/255]}}),86040:(function(tt){tt.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),162:(function(tt,G,e){var S=e(16401),A=e(75144),t=e(10275);tt.exports=function(w,p){(p==="float"||!p)&&(p="array"),p==="uint"&&(p="uint8"),p==="uint_clamped"&&(p="uint8_clamped");var c=new(t(p))(4),i=p!=="uint8"&&p!=="uint8_clamped";return(!w.length||typeof w=="string")&&(w=S(w),w[0]/=255,w[1]/=255,w[2]/=255),E(w)?(c[0]=w[0],c[1]=w[1],c[2]=w[2],c[3]=w[3]==null?255:w[3],i&&(c[0]/=255,c[1]/=255,c[2]/=255,c[3]/=255),c):(i?(c[0]=w[0],c[1]=w[1],c[2]=w[2],c[3]=w[3]==null?1:w[3]):(c[0]=A(Math.floor(w[0]*255),0,255),c[1]=A(Math.floor(w[1]*255),0,255),c[2]=A(Math.floor(w[2]*255),0,255),c[3]=w[3]==null?255:A(Math.floor(w[3]*255),0,255)),c)};function E(w){return!!(w instanceof Uint8Array||w instanceof Uint8ClampedArray||Array.isArray(w)&&(w[0]>1||w[0]===0)&&(w[1]>1||w[1]===0)&&(w[2]>1||w[2]===0)&&(!w[3]||w[3]>1))}}),16401:(function(tt,G,e){var S=e(10826),A=e(52132),t=e(75144);tt.exports=function(E){var w,p=S(E);return p.space?(w=[,,,],w[0]=t(p.values[0],0,255),w[1]=t(p.values[1],0,255),w[2]=t(p.values[2],0,255),p.space[0]==="h"&&(w=A.rgb(w)),w.push(t(p.alpha,0,1)),w):[]}}),10826:(function(tt,G,e){var S=e(86040);tt.exports=t;var A={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function t(E){var w,p=[],c=1,i;if(typeof E=="string")if(E=E.toLowerCase(),S[E])p=S[E].slice(),i="rgb";else if(E==="transparent")c=0,i="rgb",p=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(E)){var r=E.slice(1),o=r.length,a=o<=4;c=1,a?(p=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],o===4&&(c=parseInt(r[3]+r[3],16)/255)):(p=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],o===8&&(c=parseInt(r[6]+r[7],16)/255)),p[0]||(p[0]=0),p[1]||(p[1]=0),p[2]||(p[2]=0),i="rgb"}else if(w=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(E)){var s=w[1],n=s==="rgb",r=s.replace(/a$/,"");i=r;var o=r==="cmyk"?4:r==="gray"?1:3;p=w[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(f,v){if(/%$/.test(f))return v===o?parseFloat(f)/100:r==="rgb"?parseFloat(f)*255/100:parseFloat(f);if(r[v]==="h"){if(/deg$/.test(f))return parseFloat(f);if(A[f]!==void 0)return A[f]}return parseFloat(f)}),s===r&&p.push(1),c=n||p[o]===void 0?1:p[o],p=p.slice(0,o)}else E.length>10&&/[0-9](?:\s|\/)/.test(E)&&(p=E.match(/([0-9]+)/g).map(function(m){return parseFloat(m)}),i=E.match(/([a-z])/gi).join("").toLowerCase());else isNaN(E)?Array.isArray(E)||E.length?(p=[E[0],E[1],E[2]],i="rgb",c=E.length===4?E[3]:1):E instanceof Object&&(E.r!=null||E.red!=null||E.R!=null?(i="rgb",p=[E.r||E.red||E.R||0,E.g||E.green||E.G||0,E.b||E.blue||E.B||0]):(i="hsl",p=[E.h||E.hue||E.H||0,E.s||E.saturation||E.S||0,E.l||E.lightness||E.L||E.b||E.brightness]),c=E.a||E.alpha||E.opacity||1,E.opacity!=null&&(c/=100)):(i="rgb",p=[E>>>16,(E&65280)>>>8,E&255]);return{space:i,values:p,alpha:c}}}),52132:(function(tt,G,e){var S=e(10520);tt.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(A){var t=A[0]/360,E=A[1]/100,w=A[2]/100,p,c,i,r,o;if(E===0)return o=w*255,[o,o,o];c=w<.5?w*(1+E):w+E-w*E,p=2*w-c,r=[0,0,0];for(var a=0;a<3;a++)i=t+.3333333333333333*-(a-1),i<0?i++:i>1&&i--,o=6*i<1?p+(c-p)*6*i:2*i<1?c:3*i<2?p+(c-p)*(.6666666666666666-i)*6:p,r[a]=o*255;return r}},S.hsl=function(A){var t=A[0]/255,E=A[1]/255,w=A[2]/255,p=Math.min(t,E,w),c=Math.max(t,E,w),i=c-p,r,o,a;return c===p?r=0:t===c?r=(E-w)/i:E===c?r=2+(w-t)/i:w===c&&(r=4+(t-E)/i),r=Math.min(r*60,360),r<0&&(r+=360),a=(p+c)/2,o=c===p?0:a<=.5?i/(c+p):i/(2-c-p),[r,o*100,a*100]}}),10520:(function(tt){tt.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}}),78171:(function(tt){tt.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}}),59518:(function(tt,G,e){tt.exports={parse:e(86029),stringify:e(38211)}}),87724:(function(tt,G,e){var S=e(23648);tt.exports={isSize:function(A){return/^[\d\.]/.test(A)||A.indexOf("/")!==-1||S.indexOf(A)!==-1}}}),86029:(function(tt,G,e){var S=e(80886),A=e(54324),t=e(94316),E=e(99803),w=e(87486),p=e(2362),c=e(28089),i=e(87724).isSize;tt.exports=o;var r=o.cache={};function o(s){if(typeof s!="string")throw Error("Font argument must be a string.");if(r[s])return r[s];if(s==="")throw Error("Cannot parse an empty string.");if(t.indexOf(s)!==-1)return r[s]={system:s};for(var n={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},m=c(s,/\s+/),x;x=m.shift();){if(A.indexOf(x)!==-1)return["style","variant","weight","stretch"].forEach(function(v){n[v]=x}),r[s]=n;if(w.indexOf(x)!==-1){n.style=x;continue}if(x==="normal"||x==="small-caps"){n.variant=x;continue}if(p.indexOf(x)!==-1){n.stretch=x;continue}if(E.indexOf(x)!==-1){n.weight=x;continue}if(i(x)){var f=c(x,"/");if(n.size=f[0],f[1]==null?m[0]==="/"&&(m.shift(),n.lineHeight=a(m.shift())):n.lineHeight=a(f[1]),!m.length)throw Error("Missing required font-family.");return n.family=c(m.join(" "),/\s*,\s*/).map(S),r[s]=n}throw Error("Unknown or unsupported font token: "+x)}throw Error("Missing required font-size.")}function a(s){var n=parseFloat(s);return n.toString()===s?n:s}}),38211:(function(tt,G,e){var S=e(6807),A=e(87724).isSize,t=s(e(54324)),E=s(e(94316)),w=s(e(99803)),p=s(e(87486)),c=s(e(2362)),i={normal:1,"small-caps":1},r={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},o={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};tt.exports=function(n){if(n=S(n,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),n.system)return n.system&&a(n.system,E),n.system;if(a(n.style,p),a(n.variant,i),a(n.weight,w),a(n.stretch,c),n.size??(n.size=o.size),typeof n.size=="number"&&(n.size+="px"),!A)throw Error("Bad size value `"+n.size+"`");n.family||(n.family=o.family),Array.isArray(n.family)&&(n.family.length||(n.family=[o.family]),n.family=n.family.map(function(x){return r[x]?x:'"'+x+'"'}).join(", "));var m=[];return m.push(n.style),n.variant!==n.style&&m.push(n.variant),n.weight!==n.variant&&n.weight!==n.style&&m.push(n.weight),n.stretch!==n.weight&&n.stretch!==n.variant&&n.stretch!==n.style&&m.push(n.stretch),m.push(n.size+(n.lineHeight==null||n.lineHeight==="normal"||n.lineHeight+""=="1"?"":"/"+n.lineHeight)),m.push(n.family),m.filter(Boolean).join(" ")};function a(n,m){if(n&&!m[n]&&!t[n])throw Error("Unknown keyword `"+n+"`");return n}function s(n){for(var m={},x=0;x0?` ${S[5]}`:""} {`),A+=G(S),t&&(A+="}"),S[2]&&(A+="}"),S[4]&&(A+="}"),A}).join("")},e.i=function(S,A,t,E,w){typeof S=="string"&&(S=[[null,S,void 0]]);var p={};if(t)for(var c=0;c0?` ${o[5]}`:""} {${o[1]}}`),o[5]=w),A&&(o[2]&&(o[1]=`@media ${o[2]} {${o[1]}}`),o[2]=A),E&&(o[4]?(o[1]=`@supports (${o[4]}) {${o[1]}}`,o[4]=E):o[4]=`${E}`),e.push(o))}},e}}),62133:(function(tt){tt.exports=function(G,e){return e||(e={}),G&&(G=String(G.__esModule?G.default:G),/^['"].*['"]$/.test(G)&&(G=G.slice(1,-1)),e.hash&&(G+=e.hash),/["'() \t\n]|(%20)/.test(G)||e.needQuotes?`"${G.replace(/"/g,'\\"').replace(/\n/g,"\\n")}"`:G)}}),22413:(function(tt){tt.exports=function(G){return G[1]}}),84510:(function(tt,G,e){var S=e(80299),A=e(9557),t=e(6887),E=e(86591),w=e(76504),p=e(29854),c=Function.prototype.bind,i=Object.defineProperty,r=Object.prototype.hasOwnProperty,o=function(a,s,n){var m=A(s)&&t(s.value),x=E(s);return delete x.writable,delete x.value,x.get=function(){return!n.overwriteDefinition&&r.call(this,a)?m:(s.value=c.call(m,n.resolveContext?n.resolveContext(this):this),i(this,a,s),this[a])},x};tt.exports=function(a){var s=w(arguments[1]);return S(s.resolveContext)&&t(s.resolveContext),p(a,function(n,m){return o(m,n,s)})}}),91819:(function(tt,G,e){var S=e(80299),A=e(63461),t=e(1920),E=e(76504),w=e(2338),p=tt.exports=function(c,i){var r,o,a,s,n;return arguments.length<2||typeof c!="string"?(s=i,i=c,c=null):s=arguments[2],S(c)?(r=w.call(c,"c"),o=w.call(c,"e"),a=w.call(c,"w")):(r=a=!0,o=!1),n={value:i,configurable:r,enumerable:o,writable:a},s?t(E(s),n):n};p.gs=function(c,i,r){var o,a,s,n;return typeof c=="string"?s=arguments[3]:(s=r,r=i,i=c,c=null),S(i)?A(i)?S(r)?A(r)||(s=r,r=void 0):r=void 0:(s=i,i=r=void 0):i=void 0,S(c)?(o=w.call(c,"c"),a=w.call(c,"e")):(o=!0,a=!1),n={get:i,set:r,configurable:o,enumerable:a},s?t(E(s),n):n}}),29725:(function(tt,G,e){e.d(G,{V_:function(){return S},T9:function(){return p},i2:function(){return i},Am:function(){return r},jk:function(){return o},y1:function(){return a},cz:function(){return s}});function S(n,m){return nm?1:n>=m?0:NaN}function A(n){return n.length===1&&(n=t(n)),{left:function(m,x,f,v){for(f??(f=0),v??(v=m.length);f>>1;n(m[l],x)<0?f=l+1:v=l}return f},right:function(m,x,f,v){for(f??(f=0),v??(v=m.length);f>>1;n(m[l],x)>0?v=l:f=l+1}return f}}}function t(n){return function(m,x){return S(n(m),x)}}var E=A(S);E.right,E.left;var w=Array.prototype;w.slice,w.map;function p(n,m){var x=n.length,f=-1,v,l;if(m==null){for(;++f=v)for(l=v;++fl&&(l=v)}else for(;++f=v)for(l=v;++fl&&(l=v);return l}function c(n){return n===null?NaN:+n}function i(n,m){var x=n.length,f=x,v=-1,l,h=0;if(m==null)for(;++v=0;)for(h=n[m],x=h.length;--x>=0;)l[--v]=h[x];return l}function o(n,m){var x=n.length,f=-1,v,l;if(m==null){for(;++f=v)for(l=v;++fv&&(l=v)}else for(;++f=v)for(l=v;++fv&&(l=v);return l}function a(n,m,x){n=+n,m=+m,x=(v=arguments.length)<2?(m=n,n=0,1):v<3?1:+x;for(var f=-1,v=Math.max(0,Math.ceil((m-n)/x))|0,l=Array(v);++f=n.length)return x!=null&&d.sort(x),f==null?d:f(d);for(var k=-1,L=d.length,u=n[b++],T,C,_=E(),F,O=M();++kn.length)return d;var M,g=m[b-1];return f!=null&&b>=n.length?M=d.entries():(M=[],d.each(function(k,L){M.push({key:L,values:h(k,b)})})),g==null?M:M.sort(function(k,L){return g(k.key,L.key)})}return v={object:function(d){return l(d,0,p,c)},map:function(d){return l(d,0,i,r)},entries:function(d){return h(l(d,0,i,r),0)},key:function(d){return n.push(d),v},sortKeys:function(d){return m[n.length-1]=d,v},sortValues:function(d){return x=d,v},rollup:function(d){return f=d,v}}}function p(){return{}}function c(n,m,x){n[m]=x}function i(){return E()}function r(n,m,x){n.set(m,x)}function o(){}var a=E.prototype;o.prototype=s.prototype={constructor:o,has:a.has,add:function(n){return n+="",this[S+n]=n,this},remove:a.remove,clear:a.clear,values:a.keys,size:a.size,empty:a.empty,each:a.each};function s(n,m){var x=new o;if(n instanceof o)n.each(function(l){x.add(l)});else if(n){var f=-1,v=n.length;if(m==null)for(;++f=(Bt=(Vt+te)/2))?Vt=Bt:te=Bt,(It=Pe>=(Wt=(Qt+ee)/2))?Qt=Wt:ee=Wt,be=je,!(je=je[Mt=It<<1|_t]))return be[Mt]=nr,ve;if($t=+ve._x.call(null,je.data),Tt=+ve._y.call(null,je.data),ke===$t&&Pe===Tt)return nr.next=je,be?be[Mt]=nr:ve._root=nr,ve;do be=be?be[Mt]=[,,,,]:ve._root=[,,,,],(_t=ke>=(Bt=(Vt+te)/2))?Vt=Bt:te=Bt,(It=Pe>=(Wt=(Qt+ee)/2))?Qt=Wt:ee=Wt;while((Mt=It<<1|_t)==(Ct=(Tt>=Wt)<<1|$t>=Bt));return be[Ct]=je,be[Mt]=nr,ve}function p(ve){var ke,Pe,me=ve.length,be,je,nr=Array(me),Vt=Array(me),Qt=1/0,te=1/0,ee=-1/0,Bt=-1/0;for(Pe=0;Peee&&(ee=be),jeBt&&(Bt=je));if(Qt>ee||te>Bt)return this;for(this.cover(Qt,te).cover(ee,Bt),Pe=0;Peve||ve>=be||me>ke||ke>=je;)switch(te=(keee||(Vt=Tt.y0)>Bt||(Qt=Tt.x1)=Mt)<<1|ve>=It)&&(Tt=Wt[Wt.length-1],Wt[Wt.length-1]=Wt[Wt.length-1-_t],Wt[Wt.length-1-_t]=Tt)}else{var Ct=ve-+this._x.call(null,$t.data),Ut=ke-+this._y.call(null,$t.data),Zt=Ct*Ct+Ut*Ut;if(Zt=(Wt=(nr+Qt)/2))?nr=Wt:Qt=Wt,(_t=Bt>=($t=(Vt+te)/2))?Vt=$t:te=$t,ke=Pe,!(Pe=Pe[It=_t<<1|Tt]))return this;if(!Pe.length)break;(ke[It+1&3]||ke[It+2&3]||ke[It+3&3])&&(me=ke,Mt=It)}for(;Pe.data!==ve;)if(be=Pe,!(Pe=Pe.next))return this;return(je=Pe.next)&&delete Pe.next,be?(je?be.next=je:delete be.next,this):ke?(je?ke[It]=je:delete ke[It],(Pe=ke[0]||ke[1]||ke[2]||ke[3])&&Pe===(ke[3]||ke[2]||ke[1]||ke[0])&&!Pe.length&&(me?me[Mt]=Pe:this._root=Pe),this):(this._root=je,this)}function n(ve){for(var ke=0,Pe=ve.length;keBt.index){var sr=Wt-ge.x-ge.vx,_e=$t-ge.y-ge.vy,He=sr*sr+_e*_e;HeWt+Ne||Me$t+Ne||Be<$t-Ne}}function nr(Qt){if(Qt.data)return Qt.r=Pe[Qt.data.index];for(var te=Qt.r=0;te<4;++te)Qt[te]&&Qt[te].r>Qt.r&&(Qt.r=Qt[te].r)}function Vt(){if(ke){var Qt,te=ke.length,ee;for(Pe=Array(te),Qt=0;Qt=0&&(me=Pe.slice(be+1),Pe=Pe.slice(0,be)),Pe&&!ke.hasOwnProperty(Pe))throw Error("unknown type: "+Pe);return{type:Pe,name:me}})}P.prototype=U.prototype={constructor:P,on:function(ve,ke){var Pe=this._,me=N(ve+"",Pe),be,je=-1,nr=me.length;if(arguments.length<2){for(;++je0)for(var Pe=Array(be),me=0,be,je;me=0&&ve._call.call(null,ke),ve=ve._next;--nt}function St(){st=(Z=rt.now())+ot,nt=ft=0;try{Lt()}finally{nt=0,Ht(),st=0}}function Ot(){var ve=rt.now(),ke=ve-Z;ke>J&&(ot-=ke,Z=ve)}function Ht(){for(var ve,ke=et,Pe,me=1/0;ke;)ke._call?(me>ke._time&&(me=ke._time),ve=ke,ke=ke._next):(Pe=ke._next,ke._next=null,ke=ve?ve._next=Pe:et=Pe);Q=ve,Kt(me)}function Kt(ve){nt||(ft&&(ft=clearTimeout(ft)),ve-st>24?(ve<1/0&&(ft=setTimeout(St,ve-rt.now()-ot)),ct&&(ct=clearInterval(ct))):(ct||(ct=(Z=rt.now(),setInterval(Ot,J))),nt=1,X(St)))}function Gt(ve){return ve.x}function Et(ve){return ve.y}var At=10,qt=Math.PI*(3-Math.sqrt(5));function jt(ve){var ke,Pe=1,me=.001,be=1-me**(1/300),je=0,nr=.6,Vt=(0,_.Tj)(),Qt=kt(ee),te=K("tick","end");ve??(ve=[]);function ee(){Bt(),te.call("tick",ke),Pe1?(_t==null?Vt.remove(Tt):Vt.set(Tt,$t(_t)),ke):Vt.get(Tt)},find:function(Tt,_t,It){var Mt=0,Ct=ve.length,Ut,Zt,Me,Be,ge;for(It==null?It=1/0:It*=It,Mt=0;Mt1?(te.on(Tt,_t),ke):te.on(Tt)}}}function de(){var ve,ke,Pe,me=A(-30),be,je=1,nr=1/0,Vt=.81;function Qt(Wt){var $t,Tt=ve.length,_t=M(ve,Gt,Et).visitAfter(ee);for(Pe=Wt,$t=0;$t=nr)){(Wt.data!==ke||Wt.next)&&(It===0&&(It=t(),Ut+=It*It),Mt===0&&(Mt=t(),Ut+=Mt*Mt),Ut=1e21?b.toLocaleString("en").replace(/,/g,""):b.toString(10)}function A(b,M){if((g=(b=M?b.toExponential(M-1):b.toExponential()).indexOf("e"))<0)return null;var g,k=b.slice(0,g);return[k.length>1?k[0]+k.slice(2):k,+b.slice(g+1)]}function t(b){return b=A(Math.abs(b)),b?b[1]:NaN}function E(b,M){return function(g,k){for(var L=g.length,u=[],T=0,C=b[0],_=0;L>0&&C>0&&(_+C+1>k&&(C=Math.max(1,k-_)),u.push(g.substring(L-=C,L+C)),!((_+=C+1)>k));)C=b[T=(T+1)%b.length];return u.reverse().join(M)}}function w(b){return function(M){return M.replace(/[0-9]/g,function(g){return b[+g]})}}var p=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function c(b){if(!(M=p.exec(b)))throw Error("invalid format: "+b);var M;return new i({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}c.prototype=i.prototype;function i(b){this.fill=b.fill===void 0?" ":b.fill+"",this.align=b.align===void 0?">":b.align+"",this.sign=b.sign===void 0?"-":b.sign+"",this.symbol=b.symbol===void 0?"":b.symbol+"",this.zero=!!b.zero,this.width=b.width===void 0?void 0:+b.width,this.comma=!!b.comma,this.precision=b.precision===void 0?void 0:+b.precision,this.trim=!!b.trim,this.type=b.type===void 0?"":b.type+""}i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function r(b){t:for(var M=b.length,g=1,k=-1,L;g0&&(k=0);break}return k>0?b.slice(0,k)+b.slice(L+1):b}var o;function a(b,M){var g=A(b,M);if(!g)return b+"";var k=g[0],L=g[1],u=L-(o=Math.max(-8,Math.min(8,Math.floor(L/3)))*3)+1,T=k.length;return u===T?k:u>T?k+Array(u-T+1).join("0"):u>0?k.slice(0,u)+"."+k.slice(u):"0."+Array(1-u).join("0")+A(b,Math.max(0,M+u-1))[0]}function s(b,M){var g=A(b,M);if(!g)return b+"";var k=g[0],L=g[1];return L<0?"0."+Array(-L).join("0")+k:k.length>L+1?k.slice(0,L+1)+"."+k.slice(L+1):k+Array(L-k.length+2).join("0")}var n={"%":function(b,M){return(b*100).toFixed(M)},b:function(b){return Math.round(b).toString(2)},c:function(b){return b+""},d:S,e:function(b,M){return b.toExponential(M)},f:function(b,M){return b.toFixed(M)},g:function(b,M){return b.toPrecision(M)},o:function(b){return Math.round(b).toString(8)},p:function(b,M){return s(b*100,M)},r:s,s:a,X:function(b){return Math.round(b).toString(16).toUpperCase()},x:function(b){return Math.round(b).toString(16)}};function m(b){return b}var x=Array.prototype.map,f=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(b){var M=b.grouping===void 0||b.thousands===void 0?m:E(x.call(b.grouping,Number),b.thousands+""),g=b.currency===void 0?"":b.currency[0]+"",k=b.currency===void 0?"":b.currency[1]+"",L=b.decimal===void 0?".":b.decimal+"",u=b.numerals===void 0?m:w(x.call(b.numerals,String)),T=b.percent===void 0?"%":b.percent+"",C=b.minus===void 0?"-":b.minus+"",_=b.nan===void 0?"NaN":b.nan+"";function F(j){j=c(j);var B=j.fill,U=j.align,P=j.sign,N=j.symbol,V=j.zero,Y=j.width,K=j.comma,nt=j.precision,ft=j.trim,ct=j.type;ct==="n"?(K=!0,ct="g"):n[ct]||(nt===void 0&&(nt=12),ft=!0,ct="g"),(V||B==="0"&&U==="=")&&(V=!0,B="0",U="=");var J=N==="$"?g:N==="#"&&/[boxX]/.test(ct)?"0"+ct.toLowerCase():"",et=N==="$"?k:/[%p]/.test(ct)?T:"",Q=n[ct],Z=/[defgprs%]/.test(ct);nt=nt===void 0?6:/[gprs]/.test(ct)?Math.max(1,Math.min(21,nt)):Math.max(0,Math.min(20,nt));function st(ot){var rt=J,X=et,ut,lt,yt;if(ct==="c")X=Q(ot)+X,ot="";else{ot=+ot;var kt=ot<0||1/ot<0;if(ot=isNaN(ot)?_:Q(Math.abs(ot),nt),ft&&(ot=r(ot)),kt&&+ot==0&&P!=="+"&&(kt=!1),rt=(kt?P==="("?P:C:P==="-"||P==="("?"":P)+rt,X=(ct==="s"?f[8+o/3]:"")+X+(kt&&P==="("?")":""),Z){for(ut=-1,lt=ot.length;++utyt||yt>57){X=(yt===46?L+ot.slice(ut+1):ot.slice(ut))+X,ot=ot.slice(0,ut);break}}}K&&!V&&(ot=M(ot,1/0));var Lt=rt.length+ot.length+X.length,St=Lt>1)+rt+ot+X+St.slice(Lt);break;default:ot=St+rt+ot+X;break}return u(ot)}return st.toString=function(){return j+""},st}function O(j,B){var U=F((j=c(j),j.type="f",j)),P=Math.max(-8,Math.min(8,Math.floor(t(B)/3)))*3,N=10**-P,V=f[8+P/3];return function(Y){return U(N*Y)+V}}return{format:F,formatPrefix:O}}var l,h;d({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function d(b){return l=v(b),h=l.format,l.formatPrefix,l}}),75987:(function(tt,G,e){e.r(G),e.d(G,{geoAiry:function(){return V},geoAiryRaw:function(){return N},geoAitoff:function(){return K},geoAitoffRaw:function(){return Y},geoArmadillo:function(){return ft},geoArmadilloRaw:function(){return nt},geoAugust:function(){return J},geoAugustRaw:function(){return ct},geoBaker:function(){return st},geoBakerRaw:function(){return Z},geoBerghaus:function(){return X},geoBerghausRaw:function(){return rt},geoBertin1953:function(){return Ht},geoBertin1953Raw:function(){return Ot},geoBoggs:function(){return Xt},geoBoggsRaw:function(){return de},geoBonne:function(){return Pe},geoBonneRaw:function(){return ke},geoBottomley:function(){return be},geoBottomleyRaw:function(){return me},geoBromley:function(){return nr},geoBromleyRaw:function(){return je},geoChamberlin:function(){return _t},geoChamberlinAfrica:function(){return Tt},geoChamberlinRaw:function(){return Wt},geoCollignon:function(){return Mt},geoCollignonRaw:function(){return It},geoCraig:function(){return Ut},geoCraigRaw:function(){return Ct},geoCraster:function(){return Be},geoCrasterRaw:function(){return Me},geoCylindricalEqualArea:function(){return Ee},geoCylindricalEqualAreaRaw:function(){return ge},geoCylindricalStereographic:function(){return sr},geoCylindricalStereographicRaw:function(){return Ne},geoEckert1:function(){return He},geoEckert1Raw:function(){return _e},geoEckert2:function(){return Pr},geoEckert2Raw:function(){return or},geoEckert3:function(){return ue},geoEckert3Raw:function(){return br},geoEckert4:function(){return Ce},geoEckert4Raw:function(){return we},geoEckert5:function(){return Ke},geoEckert5Raw:function(){return Ge},geoEckert6:function(){return We},geoEckert6Raw:function(){return ar},geoEisenlohr:function(){return Cr},geoEisenlohrRaw:function(){return yr},geoFahey:function(){return Or},geoFaheyRaw:function(){return Dr},geoFoucaut:function(){return Nr},geoFoucautRaw:function(){return ei},geoFoucautSinusoidal:function(){return ae},geoFoucautSinusoidalRaw:function(){return re},geoGilbert:function(){return pr},geoGingery:function(){return Br},geoGingeryRaw:function(){return xr},geoGinzburg4:function(){return Zi},geoGinzburg4Raw:function(){return Jr},geoGinzburg5:function(){return Ei},geoGinzburg5Raw:function(){return mi},geoGinzburg6:function(){return Tr},geoGinzburg6Raw:function(){return Di},geoGinzburg8:function(){return li},geoGinzburg8Raw:function(){return Vr},geoGinzburg9:function(){return Ni},geoGinzburg9Raw:function(){return ci},geoGringorten:function(){return Ha},geoGringortenQuincuncial:function(){return cc},geoGringortenRaw:function(){return Ci},geoGuyou:function(){return Si},geoGuyouRaw:function(){return Xr},geoHammer:function(){return kt},geoHammerRaw:function(){return lt},geoHammerRetroazimuthal:function(){return fa},geoHammerRetroazimuthalRaw:function(){return Ji},geoHealpix:function(){return Qi},geoHealpixRaw:function(){return jr},geoHill:function(){return Zr},geoHillRaw:function(){return qi},geoHomolosine:function(){return zi},geoHomolosineRaw:function(){return ea},geoHufnagel:function(){return ln},geoHufnagelRaw:function(){return wa},geoHyperelliptical:function(){return yn},geoHyperellipticalRaw:function(){return Wa},geoInterrupt:function(){return Bo},geoInterruptedBoggs:function(){return Gn},geoInterruptedHomolosine:function(){return xs},geoInterruptedMollweide:function(){return _s},geoInterruptedMollweideHemispheres:function(){return Oo},geoInterruptedQuarticAuthalic:function(){return Ac},geoInterruptedSinuMollweide:function(){return As},geoInterruptedSinusoidal:function(){return No},geoKavrayskiy7:function(){return Do},geoKavrayskiy7Raw:function(){return bs},geoLagrange:function(){return Sl},geoLagrangeRaw:function(){return gs},geoLarrivee:function(){return yu},geoLarriveeRaw:function(){return jo},geoLaskowski:function(){return ss},geoLaskowskiRaw:function(){return Bs},geoLittrow:function(){return cl},geoLittrowRaw:function(){return vu},geoLoximuthal:function(){return Nu},geoLoximuthalRaw:function(){return el},geoMiller:function(){return rc},geoMillerRaw:function(){return xu},geoModifiedStereographic:function(){return ls},geoModifiedStereographicAlaska:function(){return _u},geoModifiedStereographicGs48:function(){return nh},geoModifiedStereographicGs50:function(){return ic},geoModifiedStereographicLee:function(){return sh},geoModifiedStereographicMiller:function(){return oh},geoModifiedStereographicRaw:function(){return Hl},geoMollweide:function(){return At},geoMollweideRaw:function(){return Et},geoMtFlatPolarParabolic:function(){return lh},geoMtFlatPolarParabolicRaw:function(){return Gl},geoMtFlatPolarQuartic:function(){return bu},geoMtFlatPolarQuarticRaw:function(){return kc},geoMtFlatPolarSinusoidal:function(){return kh},geoMtFlatPolarSinusoidalRaw:function(){return Fc},geoNaturalEarth:function(){return rl.A},geoNaturalEarth2:function(){return El},geoNaturalEarth2Raw:function(){return eu},geoNaturalEarthRaw:function(){return rl.P},geoNellHammer:function(){return ru},geoNellHammerRaw:function(){return ao},geoNicolosi:function(){return Ns},geoNicolosiRaw:function(){return ju},geoPatterson:function(){return jc},geoPattersonRaw:function(){return Ms},geoPeirceQuincuncial:function(){return Ol},geoPierceQuincuncial:function(){return Ol},geoPolyconic:function(){return Ah},geoPolyconicRaw:function(){return il},geoPolyhedral:function(){return qu},geoPolyhedralButterfly:function(){return hl},geoPolyhedralCollignon:function(){return Yn},geoPolyhedralWaterman:function(){return Il},geoProject:function(){return Gc},geoQuantize:function(){return Wc},geoQuincuncial:function(){return Zu},geoRectangularPolyconic:function(){return fl},geoRectangularPolyconicRaw:function(){return hc},geoRobinson:function(){return Dl},geoRobinsonRaw:function(){return Zs},geoSatellite:function(){return fh},geoSatelliteRaw:function(){return Sc},geoSinuMollweide:function(){return ua},geoSinuMollweideRaw:function(){return _i},geoSinusoidal:function(){return ve},geoSinusoidalRaw:function(){return Le},geoStitch:function(){return Ws},geoTimes:function(){return su},geoTimesRaw:function(){return Bl},geoTwoPointAzimuthal:function(){return uu},geoTwoPointAzimuthalRaw:function(){return lu},geoTwoPointAzimuthalUsa:function(){return Eu},geoTwoPointEquidistant:function(){return Cu},geoTwoPointEquidistantRaw:function(){return nl},geoTwoPointEquidistantUsa:function(){return cs},geoVanDerGrinten:function(){return ro},geoVanDerGrinten2:function(){return Wu},geoVanDerGrinten2Raw:function(){return Ls},geoVanDerGrinten3:function(){return hu},geoVanDerGrinten3Raw:function(){return Cc},geoVanDerGrinten4:function(){return ol},geoVanDerGrinten4Raw:function(){return yc},geoVanDerGrintenRaw:function(){return cu},geoWagner:function(){return Ys},geoWagner4:function(){return vc},geoWagner4Raw:function(){return $u},geoWagner6:function(){return Ju},geoWagner6Raw:function(){return pl},geoWagner7:function(){return es},geoWagnerRaw:function(){return Xu},geoWiechel:function(){return Yc},geoWiechelRaw:function(){return Nl},geoWinkel3:function(){return xc},geoWinkel3Raw:function(){return Lu}});var S=e(94684),A=Math.abs,t=Math.atan,E=Math.atan2,w=Math.cos,p=Math.exp,c=Math.floor,i=Math.log,r=Math.max,o=Math.min,a=Math.pow,s=Math.round,n=Math.sign||function(ne){return ne>0?1:ne<0?-1:0},m=Math.sin,x=Math.tan,f=1e-6,v=1e-12,l=Math.PI,h=l/2,d=l/4,b=Math.SQRT1_2,M=F(2),g=F(l),k=l*2,L=180/l,u=l/180;function T(ne){return ne?ne/Math.sin(ne):1}function C(ne){return ne>1?h:ne<-1?-h:Math.asin(ne)}function _(ne){return ne>1?0:ne<-1?l:Math.acos(ne)}function F(ne){return ne>0?Math.sqrt(ne):0}function O(ne){return ne=p(2*ne),(ne-1)/(ne+1)}function j(ne){return(p(ne)-p(-ne))/2}function B(ne){return(p(ne)+p(-ne))/2}function U(ne){return i(ne+F(ne*ne+1))}function P(ne){return i(ne+F(ne*ne-1))}function N(ne){var pe=x(ne/2),Se=2*i(w(ne/2))/(pe*pe);function ze(Xe,Ze){var tr=w(Xe),zr=w(Ze),qr=m(Ze),Lr=zr*tr,Hr=-((1-Lr?i((1+Lr)/2)/(1-Lr):-.5)+Se/(1+Lr));return[Hr*zr*m(Xe),Hr*qr]}return ze.invert=function(Xe,Ze){var tr=F(Xe*Xe+Ze*Ze),zr=-ne/2,qr=50,Lr;if(!tr)return[0,0];do{var Hr=zr/2,ii=w(Hr),di=m(Hr),gi=di/ii,Ki=-i(A(ii));zr-=Lr=(2/gi*Ki-Se*gi-tr)/(-Ki/(di*di)+1-Se/(2*ii*ii))*(ii<0?.7:1)}while(A(Lr)>f&&--qr>0);var ca=m(zr);return[E(Xe*ca,tr*w(zr)),C(Ze*ca/tr)]},ze}function V(){var ne=h,pe=(0,S.U)(N),Se=pe(ne);return Se.radius=function(ze){return arguments.length?pe(ne=ze*u):ne*L},Se.scale(179.976).clipAngle(147)}function Y(ne,pe){var Se=w(pe),ze=T(_(Se*w(ne/=2)));return[2*Se*m(ne)*ze,m(pe)*ze]}Y.invert=function(ne,pe){if(!(ne*ne+4*pe*pe>l*l+f)){var Se=ne,ze=pe,Xe=25;do{var Ze=m(Se),tr=m(Se/2),zr=w(Se/2),qr=m(ze),Lr=w(ze),Hr=m(2*ze),ii=qr*qr,di=Lr*Lr,gi=tr*tr,Ki=1-di*zr*zr,ca=Ki?_(Lr*zr)*F(Sa=1/Ki):Sa=0,Sa,pa=2*ca*Lr*tr-ne,Ra=ca*qr-pe,fn=Sa*(di*gi+ca*Lr*zr*ii),kn=Sa*(.5*Ze*Hr-ca*2*qr*tr),En=Sa*.25*(Hr*tr-ca*qr*di*Ze),Ao=Sa*(ii*zr+ca*gi*Lr),yo=kn*En-Ao*fn;if(!yo)break;var So=(Ra*kn-pa*Ao)/yo,$a=(pa*En-Ra*fn)/yo;Se-=So,ze-=$a}while((A(So)>f||A($a)>f)&&--Xe>0);return[Se,ze]}};function K(){return(0,S.A)(Y).scale(152.63)}function nt(ne){var pe=m(ne),Se=w(ne),ze=ne>=0?1:-1,Xe=x(ze*ne),Ze=(1+pe-Se)/2;function tr(zr,qr){var Lr=w(qr),Hr=w(zr/=2);return[(1+Lr)*m(zr),(ze*qr>-E(Hr,Xe)-.001?0:-ze*10)+Ze+m(qr)*Se-(1+Lr)*pe*Hr]}return tr.invert=function(zr,qr){var Lr=0,Hr=0,ii=50;do{var di=w(Lr),gi=m(Lr),Ki=w(Hr),ca=m(Hr),Sa=1+Ki,pa=Sa*gi-zr,Ra=Ze+ca*Se-Sa*pe*di-qr,fn=Sa*di/2,kn=-gi*ca,En=pe*Sa*gi/2,Ao=Se*Ki+pe*di*ca,yo=kn*En-Ao*fn,So=(Ra*kn-pa*Ao)/yo/2,$a=(pa*En-Ra*fn)/yo;A($a)>2&&($a/=2),Lr-=So,Hr-=$a}while((A(So)>f||A($a)>f)&&--ii>0);return ze*Hr>-E(w(Lr),Xe)-.001?[Lr*2,Hr]:null},tr}function ft(){var ne=20*u,pe=ne>=0?1:-1,Se=x(pe*ne),ze=(0,S.U)(nt),Xe=ze(ne),Ze=Xe.stream;return Xe.parallel=function(tr){return arguments.length?(Se=x((pe=(ne=tr*u)>=0?1:-1)*ne),ze(ne)):ne*L},Xe.stream=function(tr){var zr=Xe.rotate(),qr=Ze(tr),Lr=(Xe.rotate([0,0]),Ze(tr)),Hr=Xe.precision();return Xe.rotate(zr),qr.sphere=function(){Lr.polygonStart(),Lr.lineStart();for(var ii=pe*-180;pe*ii<180;ii+=pe*90)Lr.point(ii,pe*90);if(ne)for(;pe*(ii-=3*pe*Hr)>=-180;)Lr.point(ii,pe*-E(w(ii*u/2),Se)*L);Lr.lineEnd(),Lr.polygonEnd()},qr},Xe.scale(218.695).center([0,28.0974])}function ct(ne,pe){var Se=x(pe/2),ze=F(1-Se*Se),Xe=1+ze*w(ne/=2),Ze=m(ne)*ze/Xe,tr=Se/Xe,zr=Ze*Ze,qr=tr*tr;return[1.3333333333333333*Ze*(3+zr-3*qr),1.3333333333333333*tr*(3+3*zr-qr)]}ct.invert=function(ne,pe){if(ne*=.375,pe*=.375,!ne&&A(pe)>1)return null;var Se=ne*ne,ze=pe*pe,Xe=1+Se+ze,Ze=F((Xe-F(Xe*Xe-4*pe*pe))/2),tr=C(Ze)/3,zr=Ze?P(A(pe/Ze))/3:U(A(ne))/3,qr=w(tr),Lr=B(zr),Hr=Lr*Lr-qr*qr;return[n(ne)*2*E(j(zr)*qr,.25-Hr),n(pe)*2*E(Lr*m(tr),.25+Hr)]};function J(){return(0,S.A)(ct).scale(66.1603)}var et=F(8),Q=i(1+M);function Z(ne,pe){var Se=A(pe);return Sev&&--ze>0);return[ne/(w(Se)*(et-1/m(Se))),n(pe)*Se]};function st(){return(0,S.A)(Z).scale(112.314)}var ot=e(61957);function rt(ne){var pe=2*l/ne;function Se(ze,Xe){var Ze=(0,ot.j)(ze,Xe);if(A(ze)>h){var tr=E(Ze[1],Ze[0]),zr=F(Ze[0]*Ze[0]+Ze[1]*Ze[1]),qr=pe*s((tr-h)/pe)+h,Lr=E(m(tr-=qr),2-w(tr));tr=qr+C(l/zr*m(Lr))-Lr,Ze[0]=zr*w(tr),Ze[1]=zr*m(tr)}return Ze}return Se.invert=function(ze,Xe){var Ze=F(ze*ze+Xe*Xe);if(Ze>h){var tr=E(Xe,ze),zr=pe*s((tr-h)/pe)+h,qr=tr>zr?-1:1,Lr=Ze*w(zr-tr),Hr=1/x(qr*_((Lr-l)/F(l*(l-2*Lr)+Ze*Ze)));tr=zr+2*t((Hr+qr*F(Hr*Hr-3))/3),ze=Ze*w(tr),Xe=Ze*m(tr)}return ot.j.invert(ze,Xe)},Se}function X(){var ne=5,pe=(0,S.U)(rt),Se=pe(ne),ze=Se.stream,Xe=.01,Ze=-w(Xe*u),tr=m(Xe*u);return Se.lobes=function(zr){return arguments.length?pe(ne=+zr):ne},Se.stream=function(zr){var qr=Se.rotate(),Lr=ze(zr),Hr=(Se.rotate([0,0]),ze(zr));return Se.rotate(qr),Lr.sphere=function(){Hr.polygonStart(),Hr.lineStart();for(var ii=0,di=360/ne,gi=2*l/ne,Ki=90-180/ne,ca=h;ii0&&A(Xe)>f);return ze<0?NaN:Se}function St(ne,pe,Se){return pe===void 0&&(pe=40),Se===void 0&&(Se=v),function(ze,Xe,Ze,tr){var zr,qr,Lr;Ze=Ze===void 0?0:+Ze,tr=tr===void 0?0:+tr;for(var Hr=0;Hrzr){Ze-=qr/=2,tr-=Lr/=2;continue}zr=Ki;var ca=(Ze>0?-1:1)*Se,Sa=(tr>0?-1:1)*Se,pa=ne(Ze+ca,tr),Ra=ne(Ze,tr+Sa),fn=(pa[0]-ii[0])/ca,kn=(pa[1]-ii[1])/ca,En=(Ra[0]-ii[0])/Sa,Ao=(Ra[1]-ii[1])/Sa,yo=Ao*fn-kn*En,So=(A(yo)<.5?.5:1)/yo;if(qr=(gi*En-di*Ao)*So,Lr=(di*kn-gi*fn)*So,Ze+=qr,tr+=Lr,A(qr)0&&(zr[1]*=1+qr/1.5*zr[0]*zr[0]),zr}return ze.invert=St(ze),ze}function Ht(){return(0,S.A)(Ot()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Kt(ne,pe){var Se=ne*m(pe),ze=30,Xe;do pe-=Xe=(pe+m(pe)-Se)/(1+w(pe));while(A(Xe)>f&&--ze>0);return pe/2}function Gt(ne,pe,Se){function ze(Xe,Ze){return[ne*Xe*w(Ze=Kt(Se,Ze)),pe*m(Ze)]}return ze.invert=function(Xe,Ze){return Ze=C(Ze/pe),[Xe/(ne*w(Ze)),C((2*Ze+m(2*Ze))/Se)]},ze}var Et=Gt(M/h,M,l);function At(){return(0,S.A)(Et).scale(169.529)}var qt=2.00276,jt=1.11072;function de(ne,pe){var Se=Kt(l,pe);return[qt*ne/(1/w(pe)+jt/w(Se)),(pe+M*m(Se))/qt]}de.invert=function(ne,pe){var Se=qt*pe,ze=pe<0?-d:d,Xe=25,Ze,tr;do tr=Se-M*m(ze),ze-=Ze=(m(2*ze)+2*ze-l*m(tr))/(2*w(2*ze)+2+l*w(tr)*M*w(ze));while(A(Ze)>f&&--Xe>0);return tr=Se-M*m(ze),[ne*(1/w(tr)+jt/w(ze))/qt,tr]};function Xt(){return(0,S.A)(de).scale(160.857)}function ye(ne){var pe=0,Se=(0,S.U)(ne),ze=Se(pe);return ze.parallel=function(Xe){return arguments.length?Se(pe=Xe*u):pe*L},ze}function Le(ne,pe){return[ne*w(pe),pe]}Le.invert=function(ne,pe){return[ne/w(pe),pe]};function ve(){return(0,S.A)(Le).scale(152.63)}function ke(ne){if(!ne)return Le;var pe=1/x(ne);function Se(ze,Xe){var Ze=pe+ne-Xe,tr=Ze&&ze*w(Xe)/Ze;return[Ze*m(tr),pe-Ze*w(tr)]}return Se.invert=function(ze,Xe){var Ze=F(ze*ze+(Xe=pe-Xe)*Xe),tr=pe+ne-Ze;return[Ze/w(tr)*E(ze,Xe),tr]},Se}function Pe(){return ye(ke).scale(123.082).center([0,26.1441]).parallel(45)}function me(ne){function pe(Se,ze){var Xe=h-ze,Ze=Xe&&Se*ne*m(Xe)/Xe;return[Xe*m(Ze)/ne,h-Xe*w(Ze)]}return pe.invert=function(Se,ze){var Xe=Se*ne,Ze=h-ze,tr=F(Xe*Xe+Ze*Ze),zr=E(Xe,Ze);return[(tr?tr/m(tr):1)*zr/ne,h-tr]},pe}function be(){var ne=.5,pe=(0,S.U)(me),Se=pe(ne);return Se.fraction=function(ze){return arguments.length?pe(ne=+ze):ne},Se.scale(158.837)}var je=Gt(1,4/l,l);function nr(){return(0,S.A)(je).scale(152.63)}var Vt=e(30021),Qt=e(30915);function te(ne,pe,Se,ze,Xe,Ze){var tr=w(Ze),zr;if(A(ne)>1||A(Ze)>1)zr=_(Se*Xe+pe*ze*tr);else{var qr=m(ne/2),Lr=m(Ze/2);zr=2*C(F(qr*qr+pe*ze*Lr*Lr))}return A(zr)>f?[zr,E(ze*m(Ze),pe*Xe-Se*ze*tr)]:[0,0]}function ee(ne,pe,Se){return _((ne*ne+pe*pe-Se*Se)/(2*ne*pe))}function Bt(ne){return ne-2*l*c((ne+l)/(2*l))}function Wt(ne,pe,Se){for(var ze=[[ne[0],ne[1],m(ne[1]),w(ne[1])],[pe[0],pe[1],m(pe[1]),w(pe[1])],[Se[0],Se[1],m(Se[1]),w(Se[1])]],Xe=ze[2],Ze,tr=0;tr<3;++tr,Xe=Ze)Ze=ze[tr],Xe.v=te(Ze[1]-Xe[1],Xe[3],Xe[2],Ze[3],Ze[2],Ze[0]-Xe[0]),Xe.point=[0,0];var zr=ee(ze[0].v[0],ze[2].v[0],ze[1].v[0]),qr=ee(ze[0].v[0],ze[1].v[0],ze[2].v[0]),Lr=l-zr;ze[2].point[1]=0,ze[0].point[0]=-(ze[1].point[0]=ze[0].v[0]/2);var Hr=[ze[2].point[0]=ze[0].point[0]+ze[2].v[0]*w(zr),2*(ze[0].point[1]=ze[1].point[1]=ze[2].v[0]*m(zr))];function ii(di,gi){var Ki=m(gi),ca=w(gi),Sa=[,,,],pa;for(pa=0;pa<3;++pa){var Ra=ze[pa];if(Sa[pa]=te(gi-Ra[1],Ra[3],Ra[2],ca,Ki,di-Ra[0]),!Sa[pa][0])return Ra.point;Sa[pa][1]=Bt(Sa[pa][1]-Ra.v[1])}var fn=Hr.slice();for(pa=0;pa<3;++pa){var kn=pa==2?0:pa+1,En=ee(ze[pa].v[0],Sa[pa][0],Sa[kn][0]);Sa[pa][1]<0&&(En=-En),pa?pa==1?(En=qr-En,fn[0]-=Sa[pa][0]*w(En),fn[1]-=Sa[pa][0]*m(En)):(En=Lr-En,fn[0]+=Sa[pa][0]*w(En),fn[1]+=Sa[pa][0]*m(En)):(fn[0]+=Sa[pa][0]*w(En),fn[1]-=Sa[pa][0]*m(En))}return fn[0]/=3,fn[1]/=3,fn}return ii}function $t(ne){return ne[0]*=u,ne[1]*=u,ne}function Tt(){return _t([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function _t(ne,pe,Se){var ze=(0,Vt.A)({type:"MultiPoint",coordinates:[ne,pe,Se]}),Xe=[-ze[0],-ze[1]],Ze=(0,Qt.A)(Xe),tr=Wt($t(Ze(ne)),$t(Ze(pe)),$t(Ze(Se)));tr.invert=St(tr);var zr=(0,S.A)(tr).rotate(Xe),qr=zr.center;return delete zr.rotate,zr.center=function(Lr){return arguments.length?qr(Ze(Lr)):Ze.invert(qr())},zr.clipAngle(90)}function It(ne,pe){var Se=F(1-m(pe));return[2/g*ne*Se,g*(1-Se)]}It.invert=function(ne,pe){var Se=(Se=pe/g-1)*Se;return[Se>0?ne*F(l/Se)/2:0,C(1-Se)]};function Mt(){return(0,S.A)(It).scale(95.6464).center([0,30])}function Ct(ne){var pe=x(ne);function Se(ze,Xe){return[ze,(ze?ze/m(ze):1)*(m(Xe)*w(ze)-pe*w(Xe))]}return Se.invert=pe?function(ze,Xe){ze&&(Xe*=m(ze)/ze);var Ze=w(ze);return[ze,2*E(F(Ze*Ze+pe*pe-Xe*Xe)-Ze,pe-Xe)]}:function(ze,Xe){return[ze,C(ze?Xe*x(ze)/ze:Xe)]},Se}function Ut(){return ye(Ct).scale(249.828).clipAngle(90)}var Zt=F(3);function Me(ne,pe){return[Zt*ne*(2*w(2*pe/3)-1)/g,Zt*g*m(pe/3)]}Me.invert=function(ne,pe){var Se=3*C(pe/(Zt*g));return[g*ne/(Zt*(2*w(2*Se/3)-1)),Se]};function Be(){return(0,S.A)(Me).scale(156.19)}function ge(ne){var pe=w(ne);function Se(ze,Xe){return[ze*pe,m(Xe)/pe]}return Se.invert=function(ze,Xe){return[ze/pe,C(Xe*pe)]},Se}function Ee(){return ye(ge).parallel(38.58).scale(195.044)}function Ne(ne){var pe=w(ne);function Se(ze,Xe){return[ze*pe,(1+pe)*x(Xe/2)]}return Se.invert=function(ze,Xe){return[ze/pe,t(Xe/(1+pe))*2]},Se}function sr(){return ye(Ne).scale(124.75)}function _e(ne,pe){var Se=F(8/(3*l));return[Se*ne*(1-A(pe)/l),Se*pe]}_e.invert=function(ne,pe){var Se=F(8/(3*l)),ze=pe/Se;return[ne/(Se*(1-A(ze)/l)),ze]};function He(){return(0,S.A)(_e).scale(165.664)}function or(ne,pe){var Se=F(4-3*m(A(pe)));return[2/F(6*l)*ne*Se,n(pe)*F(2*l/3)*(2-Se)]}or.invert=function(ne,pe){var Se=2-A(pe)/F(2*l/3);return[ne*F(6*l)/(2*Se),n(pe)*C((4-Se*Se)/3)]};function Pr(){return(0,S.A)(or).scale(165.664)}function br(ne,pe){var Se=F(l*(4+l));return[2/Se*ne*(1+F(1-4*pe*pe/(l*l))),4/Se*pe]}br.invert=function(ne,pe){var Se=F(l*(4+l))/2;return[ne*Se/(1+F(1-pe*pe*(4+l)/(4*l))),pe*Se/2]};function ue(){return(0,S.A)(br).scale(180.739)}function we(ne,pe){var Se=(2+h)*m(pe);pe/=2;for(var ze=0,Xe=1/0;ze<10&&A(Xe)>f;ze++){var Ze=w(pe);pe-=Xe=(pe+m(pe)*(Ze+2)-Se)/(2*Ze*(1+Ze))}return[2/F(l*(4+l))*ne*(1+w(pe)),2*F(l/(4+l))*m(pe)]}we.invert=function(ne,pe){var Se=pe*F((4+l)/l)/2,ze=C(Se),Xe=w(ze);return[ne/(2/F(l*(4+l))*(1+Xe)),C((ze+Se*(Xe+2))/(2+h))]};function Ce(){return(0,S.A)(we).scale(180.739)}function Ge(ne,pe){return[ne*(1+w(pe))/F(2+l),2*pe/F(2+l)]}Ge.invert=function(ne,pe){var Se=F(2+l),ze=pe*Se/2;return[Se*ne/(1+w(ze)),ze]};function Ke(){return(0,S.A)(Ge).scale(173.044)}function ar(ne,pe){for(var Se=(1+h)*m(pe),ze=0,Xe=1/0;ze<10&&A(Xe)>f;ze++)pe-=Xe=(pe+m(pe)-Se)/(1+w(pe));return Se=F(2+l),[ne*(1+w(pe))/Se,2*pe/Se]}ar.invert=function(ne,pe){var Se=1+h,ze=F(Se/2);return[ne*2*ze/(1+w(pe*=ze)),C((pe+m(pe))/Se)]};function We(){return(0,S.A)(ar).scale(173.044)}var $e=3+2*M;function yr(ne,pe){var Se=m(ne/=2),ze=w(ne),Xe=F(w(pe)),Ze=w(pe/=2),tr=m(pe)/(Ze+M*ze*Xe),zr=F(2/(1+tr*tr)),qr=F((M*Ze+(ze+Se)*Xe)/(M*Ze+(ze-Se)*Xe));return[$e*(zr*(qr-1/qr)-2*i(qr)),$e*(zr*tr*(qr+1/qr)-2*t(tr))]}yr.invert=function(ne,pe){if(!(Ze=ct.invert(ne/1.2,pe*1.065)))return null;var Se=Ze[0],ze=Ze[1],Xe=20,Ze;ne/=$e,pe/=$e;do{var tr=Se/2,zr=ze/2,qr=m(tr),Lr=w(tr),Hr=m(zr),ii=w(zr),di=w(ze),gi=F(di),Ki=Hr/(ii+M*Lr*gi),ca=Ki*Ki,Sa=F(2/(1+ca)),pa=(M*ii+(Lr+qr)*gi)/(M*ii+(Lr-qr)*gi),Ra=F(pa),fn=Ra-1/Ra,kn=Ra+1/Ra,En=Sa*fn-2*i(Ra)-ne,Ao=Sa*Ki*kn-2*t(Ki)-pe,yo=Hr&&b*gi*qr*ca/Hr,So=(M*Lr*ii+gi)/(2*(ii+M*Lr*gi)*(ii+M*Lr*gi)*gi),$a=-.5*Ki*Sa*Sa*Sa,gt=$a*yo,zt=$a*So,Jt=(Jt=2*ii+M*gi*(Lr-qr))*Jt*Ra,se=(M*Lr*ii*gi+di)/Jt,ce=-(M*qr*Hr)/(gi*Jt),xe=fn*gt-2*se/Ra+Sa*(se+se/pa),Oe=fn*zt-2*ce/Ra+Sa*(ce+ce/pa),Fe=Ki*kn*gt-2*yo/(1+ca)+Sa*kn*yo+Sa*Ki*(se-se/pa),rr=Ki*kn*zt-2*So/(1+ca)+Sa*kn*So+Sa*Ki*(ce-ce/pa),Ar=Oe*Fe-rr*xe;if(!Ar)break;var Mr=(Ao*Oe-En*rr)/Ar,Yr=(En*Fe-Ao*xe)/Ar;Se-=Mr,ze=r(-h,o(h,ze-Yr))}while((A(Mr)>f||A(Yr)>f)&&--Xe>0);return A(A(ze)-h)ze){var ii=F(Hr),di=E(Lr,qr),gi=Se*s(di/Se),Ki=di-gi,ca=ne*w(Ki),Sa=(ne*m(Ki)-Ki*m(ca))/(h-ca),pa=fr(Ki,Sa),Ra=(l-ne)/ur(pa,ca,l);qr=ii;var fn=50,kn;do qr-=kn=(ne+ur(pa,ca,qr)*Ra-ii)/(pa(qr)*Ra);while(A(kn)>f&&--fn>0);Lr=Ki*m(qr),qrze){var qr=F(zr),Lr=E(tr,Ze),Hr=Se*s(Lr/Se),ii=Lr-Hr;Ze=qr*w(ii),tr=qr*m(ii);for(var di=Ze-h,gi=m(Ze),Ki=tr/gi,ca=Zef||A(Ki)>f)&&--ca>0);return[ii,di]},qr}var Jr=$r(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Zi(){return(0,S.A)(Jr).scale(149.995)}var mi=$r(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ei(){return(0,S.A)(mi).scale(153.93)}var Di=$r(5/6*l,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Tr(){return(0,S.A)(Di).scale(130.945)}function Vr(ne,pe){var Se=ne*ne,ze=pe*pe;return[ne*(1-.162388*ze)*(.87-952426e-9*Se*Se),pe*(1+ze/12)]}Vr.invert=function(ne,pe){var Se=ne,ze=pe,Xe=50,Ze;do{var tr=ze*ze;ze-=Ze=(ze*(1+tr/12)-pe)/(1+tr/4)}while(A(Ze)>f&&--Xe>0);Xe=50,ne/=1-.162388*tr;do{var zr=(zr=Se*Se)*zr;Se-=Ze=(Se*(.87-952426e-9*zr)-ne)/(.87-.00476213*zr)}while(A(Ze)>f&&--Xe>0);return[Se,ze]};function li(){return(0,S.A)(Vr).scale(131.747)}var ci=$r(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ni(){return(0,S.A)(ci).scale(131.087)}function si(ne){var pe=ne(h,0)[0]-ne(-h,0)[0];function Se(ze,Xe){var Ze=ze>0?-.5:.5,tr=ne(ze+Ze*l,Xe);return tr[0]-=Ze*pe,tr}return ne.invert&&(Se.invert=function(ze,Xe){var Ze=ze>0?-.5:.5,tr=ne.invert(ze+Ze*pe,Xe),zr=tr[0]-Ze*l;return zr<-l?zr+=2*l:zr>l&&(zr-=2*l),tr[0]=zr,tr}),Se}function Ci(ne,pe){var Se=n(ne),ze=n(pe),Xe=w(pe),Ze=w(ne)*Xe,tr=m(ne)*Xe,zr=m(ze*pe);ne=A(E(tr,zr)),pe=C(Ze),A(ne-h)>f&&(ne%=h);var qr=wi(ne>l/4?h-ne:ne,pe);return ne>l/4&&(zr=qr[0],qr[0]=-qr[1],qr[1]=-zr),qr[0]*=Se,qr[1]*=-ze,qr}Ci.invert=function(ne,pe){A(ne)>1&&(ne=n(ne)*2-ne),A(pe)>1&&(pe=n(pe)*2-pe);var Se=n(ne),ze=n(pe),Xe=-Se*ne,Ze=-ze*pe,tr=Ze/Xe<1,zr=ma(tr?Ze:Xe,tr?Xe:Ze),qr=zr[0],Lr=zr[1],Hr=w(Lr);return tr&&(qr=-h-qr),[Se*(E(m(qr)*Hr,-m(Lr))+l),ze*C(w(qr)*Hr)]};function wi(ne,pe){if(pe===h)return[0,0];var Se=m(pe),ze=Se*Se,Xe=ze*ze,Ze=1+Xe,tr=1+3*Xe,zr=1-Xe,qr=C(1/F(Ze)),Lr=zr+ze*Ze*qr,Hr=(1-Se)/Lr,ii=F(Hr),di=Hr*Ze,gi=F(di),Ki=ii*zr,ca,Sa;if(ne===0)return[0,-(Ki+ze*gi)];var pa=w(pe),Ra=1/pa,fn=2*Se*pa,kn=(-3*ze+qr*tr)*fn,En=(-Lr*pa-(1-Se)*kn)/(Lr*Lr),Ao=zr*(.5*En/ii)-2*ze*ii*fn,yo=ze*Ze*En+Hr*tr*fn,So=-Ra*fn,$a=-Ra*yo,gt=-2*Ra*Ao,zt=4*ne/l,Jt;if(ne>.222*l||pe.175*l){if(ca=(Ki+ze*F(di*(1+Xe)-Ki*Ki))/(1+Xe),ne>l/4)return[ca,ca];var se=ca,ce=.5*ca;ca=.5*(ce+se),Sa=50;do{var xe=F(di-ca*ca),Oe=ca*(gt+So*xe)+$a*C(ca/gi)-zt;if(!Oe)break;Oe<0?ce=ca:se=ca,ca=.5*(ce+se)}while(A(se-ce)>f&&--Sa>0)}else{ca=f,Sa=25;do{var Fe=ca*ca,rr=F(di-Fe),Ar=gt+So*rr,Mr=ca*Ar+$a*C(ca/gi)-zt,Yr=Ar+($a-So*Fe)/rr;ca-=Jt=rr?Mr/Yr:0}while(A(Jt)>f&&--Sa>0)}return[ca,-Ki-ze*F(di-ca*ca)]}function ma(ne,pe){for(var Se=0,ze=1,Xe=.5,Ze=50;;){var tr=Xe*Xe,zr=F(Xe),qr=C(1/F(1+tr)),Lr=1-tr+Xe*(1+tr)*qr,Hr=(1-zr)/Lr,ii=F(Hr),di=Hr*(1+tr),gi=ii*(1-tr),Ki=F(di-ne*ne),ca=pe+gi+Xe*Ki;if(A(ze-Se)0?Se=Xe:ze=Xe,Xe=.5*(Se+ze)}if(!Ze)return null;var Sa=C(zr),pa=w(Sa),Ra=1/pa,fn=2*zr*pa,kn=(-3*Xe+qr*(1+3*tr))*fn,En=(-Lr*pa-(1-zr)*kn)/(Lr*Lr),Ao=.5*En/ii,yo=(1-tr)*Ao-2*Xe*ii*fn,So=-2*Ra*yo,$a=-Ra*fn,gt=-Ra*(Xe*(1+tr)*En+Hr*(1+3*tr)*fn);return[l/4*(ne*(So+$a*Ki)+gt*C(ne/F(di))),Sa]}function Ha(){return(0,S.A)(si(Ci)).scale(239.75)}function ya(ne,pe,Se){var ze,Xe,Ze;return ne?(ze=Ga(ne,Se),pe?(Xe=Ga(pe,1-Se),Ze=Xe[1]*Xe[1]+Se*ze[0]*ze[0]*Xe[0]*Xe[0],[[ze[0]*Xe[2]/Ze,ze[1]*ze[2]*Xe[0]*Xe[1]/Ze],[ze[1]*Xe[1]/Ze,-ze[0]*ze[2]*Xe[0]*Xe[2]/Ze],[ze[2]*Xe[1]*Xe[2]/Ze,-Se*ze[0]*ze[1]*Xe[0]/Ze]]):[[ze[0],0],[ze[1],0],[ze[2],0]]):(Xe=Ga(pe,1-Se),[[0,Xe[0]/Xe[1]],[1/Xe[1],0],[Xe[2]/Xe[1],0]])}function Ga(ne,pe){var Se,ze,Xe,Ze,tr;if(pe=1-f)return Se=(1-pe)/4,ze=B(ne),Ze=O(ne),Xe=1/ze,tr=ze*j(ne),[Ze+Se*(tr-ne)/(ze*ze),Xe-Se*Ze*Xe*(tr-ne),Xe+Se*Ze*Xe*(tr+ne),2*t(p(ne))-h+Se*(tr-ne)/ze];var zr=[1,0,0,0,0,0,0,0,0],qr=[F(pe),0,0,0,0,0,0,0,0],Lr=0;for(ze=F(1-pe),tr=1;A(qr[Lr]/zr[Lr])>f&&Lr<8;)Se=zr[Lr++],qr[Lr]=(Se-ze)/2,zr[Lr]=(Se+ze)/2,ze=F(Se*ze),tr*=2;Xe=tr*zr[Lr]*ne;do Ze=qr[Lr]*m(ze=Xe)/zr[Lr],Xe=(C(Ze)+Xe)/2;while(--Lr);return[m(Xe),Ze=w(Xe),Ze/w(Xe-ze),Xe]}function Ea(ne,pe,Se){var ze=A(ne),Xe=j(A(pe));if(ze){var Ze=1/m(ze),tr=1/(x(ze)*x(ze)),zr=-(tr+Se*(Xe*Xe*Ze*Ze)-1+Se),qr=(Se-1)*tr,Lr=(-zr+F(zr*zr-4*qr))/2;return[Fa(t(1/F(Lr)),Se)*n(ne),Fa(t(F((Lr/tr-1)/Se)),1-Se)*n(pe)]}return[0,Fa(t(Xe),1-Se)*n(pe)]}function Fa(ne,pe){if(!pe)return ne;if(pe===1)return i(x(ne/2+d));for(var Se=1,ze=F(1-pe),Xe=F(pe),Ze=0;A(Xe)>f;Ze++){if(ne%l){var tr=t(ze*x(ne)/Se);tr<0&&(tr+=l),ne+=tr+~~(ne/l)*l}else ne+=ne;Xe=(Se+ze)/2,ze=F(Se*ze),Xe=((Se=Xe)-ze)/2}return ne/(a(2,Ze)*Se)}function Xr(ne,pe){var Se=(M-1)/(M+1),ze=F(1-Se*Se),Xe=Fa(h,ze*ze),Ze=-1,tr=p(Ze*i(x(l/4+A(pe)/2)))/F(Se),zr=ji(tr*w(Ze*ne),tr*m(Ze*ne)),qr=Ea(zr[0],zr[1],ze*ze);return[-qr[1],(pe>=0?1:-1)*(.5*Xe-qr[0])]}function ji(ne,pe){var Se=ne*ne,ze=pe+1,Xe=1-Se-pe*pe;return[.5*((ne>=0?h:-h)-E(Xe,2*ne)),-.25*i(Xe*Xe+4*Se)+.5*i(ze*ze+Se)]}function Li(ne,pe){var Se=pe[0]*pe[0]+pe[1]*pe[1];return[(ne[0]*pe[0]+ne[1]*pe[1])/Se,(ne[1]*pe[0]-ne[0]*pe[1])/Se]}Xr.invert=function(ne,pe){var Se=(M-1)/(M+1),ze=F(1-Se*Se),Xe=Fa(h,ze*ze),Ze=-1,tr=ya(.5*Xe-pe,-ne,ze*ze),zr=Li(tr[0],tr[1]);return[E(zr[1],zr[0])/Ze,2*t(p(.5/Ze*i(Se*zr[0]*zr[0]+Se*zr[1]*zr[1])))-h]};function Si(){return(0,S.A)(si(Xr)).scale(151.496)}var aa=e(39127);function Ji(ne){var pe=m(ne),Se=w(ne),ze=na(ne);ze.invert=na(-ne);function Xe(Ze,tr){var zr=ze(Ze,tr);Ze=zr[0],tr=zr[1];var qr=m(tr),Lr=w(tr),Hr=w(Ze),ii=_(pe*qr+Se*Lr*Hr),di=m(ii),gi=A(di)>f?ii/di:1;return[gi*Se*m(Ze),(A(Ze)>h?gi:-gi)*(pe*Lr-Se*qr*Hr)]}return Xe.invert=function(Ze,tr){var zr=F(Ze*Ze+tr*tr),qr=-m(zr),Lr=w(zr),Hr=zr*Lr,ii=-tr*qr,di=zr*pe,gi=F(Hr*Hr+ii*ii-di*di),Ki=E(Hr*di+ii*gi,ii*di-Hr*gi),ca=(zr>h?-1:1)*E(Ze*qr,zr*w(Ki)*Lr+tr*m(Ki)*qr);return ze.invert(ca,Ki)},Xe}function na(ne){var pe=m(ne),Se=w(ne);return function(ze,Xe){var Ze=w(Xe),tr=w(ze)*Ze,zr=m(ze)*Ze,qr=m(Xe);return[E(zr,tr*Se-qr*pe),C(qr*Se+tr*pe)]}}function fa(){var ne=0,pe=(0,S.U)(Ji),Se=pe(ne),ze=Se.rotate,Xe=Se.stream,Ze=(0,aa.A)();return Se.parallel=function(tr){if(!arguments.length)return ne*L;var zr=Se.rotate();return pe(ne=tr*u).rotate(zr)},Se.rotate=function(tr){return arguments.length?(ze.call(Se,[tr[0],tr[1]-ne*L]),Ze.center([-tr[0],-tr[1]]),Se):(tr=ze.call(Se),tr[1]+=ne*L,tr)},Se.stream=function(tr){return tr=Xe(tr),tr.sphere=function(){tr.polygonStart();var zr=.01,qr=Ze.radius(90-zr)().coordinates[0],Lr=qr.length-1,Hr=-1,ii;for(tr.lineStart();++Hr=0;)tr.point((ii=qr[Hr])[0],ii[1]);tr.lineEnd(),tr.polygonEnd()},tr},Se.scale(79.4187).parallel(45).clipAngle(179.999)}var Ca=e(29725),Ia=e(20465),On=C(1-1/3)*L,hr=ge(0);function jr(ne){var pe=On*u,Se=It(l,pe)[0]-It(-l,pe)[0],ze=hr(0,pe)[1],Xe=It(0,pe)[1],Ze=g-Xe,tr=k/ne,zr=4/k,qr=ze+Ze*Ze*4/k;function Lr(Hr,ii){var di,gi=A(ii);if(gi>pe){var Ki=o(ne-1,r(0,c((Hr+l)/tr)));Hr+=l*(ne-1)/ne-Ki*tr,di=It(Hr,gi),di[0]=di[0]*k/Se-k*(ne-1)/(2*ne)+Ki*k/ne,di[1]=ze+(di[1]-Xe)*4*Ze/k,ii<0&&(di[1]=-di[1])}else di=hr(Hr,ii);return di[0]*=zr,di[1]/=qr,di}return Lr.invert=function(Hr,ii){Hr/=zr,ii*=qr;var di=A(ii);if(di>ze){var gi=o(ne-1,r(0,c((Hr+l)/tr)));Hr=(Hr+l*(ne-1)/ne-gi*tr)*Se/k;var Ki=It.invert(Hr,.25*(di-ze)*k/Ze+Xe);return Ki[0]-=l*(ne-1)/ne-gi*tr,ii<0&&(Ki[1]=-Ki[1]),Ki}return hr.invert(Hr,ii)},Lr}function Ii(ne,pe){return[ne,pe&1?90-f:On]}function Hi(ne,pe){return[ne,pe&1?-90+f:-On]}function Oi(ne){return[ne[0]*(1-f),ne[1]]}function sa(ne){var pe=[].concat((0,Ca.y1)(-180,180+ne/2,ne).map(Ii),(0,Ca.y1)(180,-180-ne/2,-ne).map(Hi));return{type:"Polygon",coordinates:[ne===180?pe.map(Oi):pe]}}function Qi(){var ne=4,pe=(0,S.U)(jr),Se=pe(ne),ze=Se.stream;return Se.lobes=function(Xe){return arguments.length?pe(ne=+Xe):ne},Se.stream=function(Xe){var Ze=Se.rotate(),tr=ze(Xe),zr=(Se.rotate([0,0]),ze(Xe));return Se.rotate(Ze),tr.sphere=function(){(0,Ia.A)(sa(180/ne),zr)},tr},Se.scale(239.75)}function qi(ne){var pe=1+ne,Se=C(m(1/pe)),ze=2*F(l/(Xe=l+4*Se*pe)),Xe,Ze=.5*ze*(pe+F(ne*(2+ne))),tr=ne*ne,zr=pe*pe;function qr(Lr,Hr){var ii=1-m(Hr),di,gi;if(ii&&ii<2){var Ki=h-Hr,ca=25,Sa;do{var pa=m(Ki),Ra=w(Ki),fn=Se+E(pa,pe-Ra),kn=1+zr-2*pe*Ra;Ki-=Sa=(Ki-tr*Se-pe*pa+kn*fn-.5*ii*Xe)/(2*pe*pa*fn)}while(A(Sa)>v&&--ca>0);di=ze*F(kn),gi=Lr*fn/l}else di=ze*(ne+ii),gi=Lr*Se/l;return[di*m(gi),Ze-di*w(gi)]}return qr.invert=function(Lr,Hr){var ii=Lr*Lr+(Hr-=Ze)*Hr,di=(1+zr-ii/(ze*ze))/(2*pe),gi=_(di),Ki=m(gi),ca=Se+E(Ki,pe-di);return[C(Lr/F(ii))*l/ca,C(1-2*(gi-tr*Se-pe*Ki+(1+zr-2*pe*di)*ca)/Xe)]},qr}function Zr(){var ne=1,pe=(0,S.U)(qi),Se=pe(ne);return Se.ratio=function(ze){return arguments.length?pe(ne=+ze):ne},Se.scale(167.774).center([0,18.67])}var Wr=.7109889596207567,ai=.0528035274542;function _i(ne,pe){return pe>-Wr?(ne=Et(ne,pe),ne[1]+=ai,ne):Le(ne,pe)}_i.invert=function(ne,pe){return pe>-Wr?Et.invert(ne,pe-ai):Le.invert(ne,pe)};function ua(){return(0,S.A)(_i).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ea(ne,pe){return A(pe)>Wr?(ne=Et(ne,pe),ne[1]-=pe>0?ai:-ai,ne):Le(ne,pe)}ea.invert=function(ne,pe){return A(pe)>Wr?Et.invert(ne,pe+(pe>0?ai:-ai)):Le.invert(ne,pe)};function zi(){return(0,S.A)(ea).scale(152.63)}function wa(ne,pe,Se,ze){var Xe=F(4*l/(2*Se+(1+ne-pe/2)*m(2*Se)+(ne+pe)/2*m(4*Se)+pe/2*m(6*Se))),Ze=F(ze*m(Se)*F((1+ne*w(2*Se)+pe*w(4*Se))/(1+ne+pe))),tr=Se*qr(1);function zr(ii){return F(1+ne*w(2*ii)+pe*w(4*ii))}function qr(ii){var di=ii*Se;return(2*di+(1+ne-pe/2)*m(2*di)+(ne+pe)/2*m(4*di)+pe/2*m(6*di))/Se}function Lr(ii){return zr(ii)*m(ii)}var Hr=function(ii,di){var gi=Se*Lt(qr,tr*m(di)/Se,di/l);isNaN(gi)&&(gi=Se*n(di));var Ki=Xe*zr(gi);return[Ki*Ze*ii/l*w(gi),Ki/Ze*m(gi)]};return Hr.invert=function(ii,di){var gi=Lt(Lr,di*Ze/Xe);return[ii*l/(w(gi)*Xe*Ze*zr(gi)),C(Se*qr(gi/Se)/tr)]},Se===0&&(Xe=F(ze/l),Hr=function(ii,di){return[ii*Xe,m(di)/Xe]},Hr.invert=function(ii,di){return[ii/Xe,C(di*Xe)]}),Hr}function ln(){var ne=1,pe=0,Se=45*u,ze=2,Xe=(0,S.U)(wa),Ze=Xe(ne,pe,Se,ze);return Ze.a=function(tr){return arguments.length?Xe(ne=+tr,pe,Se,ze):ne},Ze.b=function(tr){return arguments.length?Xe(ne,pe=+tr,Se,ze):pe},Ze.psiMax=function(tr){return arguments.length?Xe(ne,pe,Se=+tr*u,ze):Se*L},Ze.ratio=function(tr){return arguments.length?Xe(ne,pe,Se,ze=+tr):ze},Ze.scale(180.739)}function nn(ne,pe,Se,ze,Xe,Ze,tr,zr,qr,Lr,Hr){if(Hr.nanEncountered)return NaN;var ii=Se-pe,di=ne(pe+ii*.25),gi=ne(Se-ii*.25),Ki,ca,Sa,pa,Ra,fn,kn;if(isNaN(di)){Hr.nanEncountered=!0;return}if(isNaN(gi)){Hr.nanEncountered=!0;return}return Ki=ii*(ze+4*di+Xe)/12,ca=ii*(Xe+4*gi+Ze)/12,Sa=Ki+ca,kn=(Sa-tr)/15,Lr>qr?(Hr.maxDepthCount++,Sa+kn):Math.abs(kn)>1;do qr[Sa]>gi?ca=Sa:Ki=Sa,Sa=Ki+ca>>1;while(Sa>Ki);var pa=qr[Sa+1]-qr[Sa];return pa&&(pa=(gi-qr[Sa+1])/pa),(Sa+1+pa)/tr}var ii=2*Hr(1)/l*Ze/Se,di=function(gi,Ki){var ca=Hr(A(m(Ki))),Sa=ze(ca)*gi;return ca/=ii,[Sa,Ki>=0?ca:-ca]};return di.invert=function(gi,Ki){var ca;return Ki*=ii,A(Ki)<1&&(ca=n(Ki)*C(Xe(A(Ki))*Ze)),[gi/ze(A(Ki)),ca]},di}function yn(){var ne=0,pe=2.5,Se=1.183136,ze=(0,S.U)(Wa),Xe=ze(ne,pe,Se);return Xe.alpha=function(Ze){return arguments.length?ze(ne=+Ze,pe,Se):ne},Xe.k=function(Ze){return arguments.length?ze(ne,pe=+Ze,Se):pe},Xe.gamma=function(Ze){return arguments.length?ze(ne,pe,Se=+Ze):Se},Xe.scale(152.63)}function Vs(ne,pe){return A(ne[0]-pe[0])=0;--qr)Se=ne[1][qr],ze=Se[0][0],Xe=Se[0][1],Ze=Se[1][1],tr=Se[2][0],zr=Se[2][1],pe.push(Kn([[tr-f,zr-f],[tr-f,Ze+f],[ze+f,Ze+f],[ze+f,Xe-f]],30));return{type:"Polygon",coordinates:[(0,Ca.Am)(pe)]}}function Bo(ne,pe,Se){var ze,Xe;function Ze(qr,Lr){for(var Hr=Lr<0?-1:1,ii=pe[+(Lr<0)],di=0,gi=ii.length-1;diii[di][2][0];++di);var Ki=ne(qr-ii[di][1][0],Lr);return Ki[0]+=ne(ii[di][1][0],Hr*Lr>Hr*ii[di][0][1]?ii[di][0][1]:Lr)[0],Ki}Se?Ze.invert=Se(Ze):ne.invert&&(Ze.invert=function(qr,Lr){for(var Hr=Xe[+(Lr<0)],ii=pe[+(Lr<0)],di=0,gi=Hr.length;diKi&&(ca=gi,gi=Ki,Ki=ca),[[ii,gi],[di,Ki]]})}),tr):pe.map(function(Lr){return Lr.map(function(Hr){return[[Hr[0][0]*L,Hr[0][1]*L],[Hr[1][0]*L,Hr[1][1]*L],[Hr[2][0]*L,Hr[2][1]*L]]})})},pe!=null&&tr.lobes(pe),tr}var Qo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Gn(){return Bo(de,Qo).scale(160.857)}var Ml=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function xs(){return Bo(ea,Ml).scale(152.63)}var xo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function _s(){return Bo(Et,xo).scale(169.529)}var Fu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Oo(){return Bo(Et,Fu).scale(169.529).rotate([20,0])}var zo=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function As(){return Bo(_i,zo,St).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var bo=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function No(){return Bo(Le,bo).scale(152.63).rotate([-20,0])}function bs(ne,pe){return[3/k*ne*F(l*l/3-pe*pe),pe]}bs.invert=function(ne,pe){return[k/3*ne/F(l*l/3-pe*pe),pe]};function Do(){return(0,S.A)(bs).scale(158.837)}function gs(ne){function pe(Se,ze){if(A(A(ze)-h)2)return null;Se/=2,ze/=2;var Ze=Se*Se,tr=ze*ze,zr=2*ze/(1+Ze+tr);return zr=a((1+zr)/(1-zr),1/ne),[E(2*Se,1-Ze-tr)/ne,C((zr-1)/(zr+1))]},pe}function Sl(){var ne=.5,pe=(0,S.U)(gs),Se=pe(ne);return Se.spacing=function(ze){return arguments.length?pe(ne=+ze):ne},Se.scale(124.75)}var Bu=l/M;function jo(ne,pe){return[ne*(1+F(w(pe)))/2,pe/(w(pe/2)*w(ne/6))]}jo.invert=function(ne,pe){var Se=A(ne),ze=A(pe),Xe=f,Ze=h;zef||A(Sa)>f)&&--Xe>0);return Xe&&[Se,ze]};function ss(){return(0,S.A)(Bs).scale(139.98)}function vu(ne,pe){return[m(ne)/w(pe),x(pe)*w(ne)]}vu.invert=function(ne,pe){var Se=ne*ne,ze=pe*pe+1,Xe=Se+ze,Ze=ne?b*F((Xe-F(Xe*Xe-4*Se))/Se):1/F(ze);return[C(ne*Ze),n(pe)*_(Ze)]};function cl(){return(0,S.A)(vu).scale(144.049).clipAngle(89.999)}function el(ne){var pe=w(ne),Se=x(d+ne/2);function ze(Xe,Ze){var tr=Ze-ne,zr=A(tr)=0;)Hr=ne[Lr],ii=Hr[0]+zr*(gi=ii)-qr*di,di=Hr[1]+zr*di+qr*gi;return ii=zr*(gi=ii)-qr*di,di=zr*di+qr*gi,[ii,di]}return Se.invert=function(ze,Xe){var Ze=20,tr=ze,zr=Xe;do{for(var qr=pe,Lr=ne[qr],Hr=Lr[0],ii=Lr[1],di=0,gi=0,Ki;--qr>=0;)Lr=ne[qr],di=Hr+tr*(Ki=di)-zr*gi,gi=ii+tr*gi+zr*Ki,Hr=Lr[0]+tr*(Ki=Hr)-zr*ii,ii=Lr[1]+tr*ii+zr*Ki;di=Hr+tr*(Ki=di)-zr*gi,gi=ii+tr*gi+zr*Ki,Hr=tr*(Ki=Hr)-zr*ii-ze,ii=tr*ii+zr*Ki-Xe;var ca=di*di+gi*gi,Sa,pa;tr-=Sa=(Hr*di+ii*gi)/ca,zr-=pa=(ii*di-Hr*gi)/ca}while(A(Sa)+A(pa)>f*f&&--Ze>0);if(Ze){var Ra=F(tr*tr+zr*zr),fn=2*t(Ra*.5),kn=m(fn);return[E(tr*kn,Ra*w(fn)),Ra?C(zr*kn/Ra):0]}},Se}var bh=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],wh=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ah=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Rc=[[.9245,0],[0,0],[.01943,0]],Th=[[.721316,0],[0,0],[-.00881625,-.00617325]];function _u(){return ls(bh,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function nh(){return ls(wh,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function ic(){return ls(ah,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function oh(){return ls(Rc,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function sh(){return ls(Th,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function ls(ne,pe){var Se=(0,S.A)(Hl(ne)).rotate(pe).clipAngle(90),ze=(0,Qt.A)(pe),Xe=Se.center;return delete Se.rotate,Se.center=function(Ze){return arguments.length?Xe(ze(Ze)):ze.invert(Xe())},Se}var us=F(6),tu=F(7);function Gl(ne,pe){var Se=C(7*m(pe)/(3*us));return[us*ne*(2*w(2*Se/3)-1)/tu,9*m(Se/3)/tu]}Gl.invert=function(ne,pe){var Se=3*C(pe*tu/9);return[ne*tu/(us*(2*w(2*Se/3)-1)),C(m(Se)*3*us/7)]};function lh(){return(0,S.A)(Gl).scale(164.859)}function kc(ne,pe){for(var Se=(1+b)*m(pe),ze=pe,Xe=0,Ze;Xe<25&&(ze-=Ze=(m(ze/2)+m(ze)-Se)/(.5*w(ze/2)+w(ze)),!(A(Ze)v&&--ze>0);return Ze=Se*Se,tr=Ze*Ze,zr=Ze*tr,[ne/(.84719-.13063*Ze+zr*zr*(-.04515+.05494*Ze-.02326*tr+.00331*zr)),Se]};function El(){return(0,S.A)(eu).scale(175.295)}function ao(ne,pe){return[ne*(1+w(pe))/2,2*(pe-x(pe/2))]}ao.invert=function(ne,pe){for(var Se=pe/2,ze=0,Xe=1/0;ze<10&&A(Xe)>f;++ze){var Ze=w(pe/2);pe-=Xe=(pe-x(pe/2)-Se)/(1-.5/(Ze*Ze))}return[2*ne/(1+w(pe)),pe]};function ru(){return(0,S.A)(ao).scale(152.63)}var Cl=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ac(){return Bo(lt(1/0),Cl).rotate([20,0]).scale(152.63)}function ju(ne,pe){var Se=m(pe),ze=w(pe),Xe=n(ne);if(ne===0||A(pe)===h)return[0,pe];if(pe===0)return[ne,0];if(A(ne)===h)return[ne*ze,h*Se];var Ze=l/(2*ne)-2*ne/l,tr=2*pe/l,zr=(1-tr*tr)/(Se-tr),qr=Ze*Ze,Lr=zr*zr,Hr=1+qr/Lr,ii=1+Lr/qr,di=(Ze*Se/zr-Ze/2)/Hr,gi=(Lr*Se/qr+zr/2)/ii,Ki=di*di+ze*ze/Hr,ca=gi*gi-(Lr*Se*Se/qr+zr*Se-1)/ii;return[h*(di+F(Ki)*Xe),h*(gi+F(ca<0?0:ca)*n(-pe*Ze)*Xe)]}ju.invert=function(ne,pe){ne/=h,pe/=h;var Se=ne*ne,ze=Se+pe*pe,Xe=l*l;return[ne?(ze-1+F((1-ze)*(1-ze)+4*Se))/(2*ne)*h:0,Lt(function(Ze){return ze*(l*m(Ze)-2*Ze)*l+4*Ze*Ze*(pe-m(Ze))+2*l*Ze-Xe*pe},0)]};function Ns(){return(0,S.A)(ju).scale(127.267)}var Zo=1.0148,Bc=.23185,Nc=-.14499,wu=.02406,uh=Zo,ch=5*Bc,ac=7*Nc,iu=9*wu,ws=1.790857183;function Ms(ne,pe){var Se=pe*pe;return[ne,pe*(Zo+Se*Se*(Bc+Se*(Nc+wu*Se)))]}Ms.invert=function(ne,pe){pe>ws?pe=ws:pe<-ws&&(pe=-ws);var Se=pe,ze;do{var Xe=Se*Se;Se-=ze=(Se*(Zo+Xe*Xe*(Bc+Xe*(Nc+wu*Xe)))-pe)/(uh+Xe*Xe*(ch+Xe*(ac+iu*Xe)))}while(A(ze)>f);return[ne,Se]};function jc(){return(0,S.A)(Ms).scale(139.319)}function il(ne,pe){if(A(pe)f&&--Xe>0);return tr=x(ze),[(A(pe)=0;)if(ze=pe[zr],Se[0]===ze[0]&&Se[1]===ze[1]){if(Ze)return[Ze,Se];Ze=Se}}}function Hu(ne){for(var pe=ne.length,Se=[],ze=ne[pe-1],Xe=0;Xe0?[-ze[0],0]:[180-ze[0],180])});var pe=Ss.map(function(Se){return{face:Se,project:ne(Se)}});return[-1,0,0,1,0,1,4,5].forEach(function(Se,ze){var Xe=pe[Se];Xe&&(Xe.children||(Xe.children=[])).push(pe[ze])}),qu(pe[0],function(Se,ze){return pe[Se<-l/2?ze<0?6:4:Se<0?ze<0?2:0:Seze^gi>ze&&Se<(di-Lr)*(ze-Hr)/(gi-Hr)+Lr&&(Xe=!Xe)}return Xe}function Gc(ne,pe){var Se=pe.stream,ze;if(!Se)throw Error("invalid projection");switch(ne&&ne.type){case"Feature":ze=Zc;break;case"FeatureCollection":ze=sc;break;default:ze=Mc;break}return ze(ne,Se)}function sc(ne,pe){return{type:"FeatureCollection",features:ne.features.map(function(Se){return Zc(Se,pe)})}}function Zc(ne,pe){return{type:"Feature",id:ne.id,properties:ne.properties,geometry:Mc(ne.geometry,pe)}}function lc(ne,pe){return{type:"GeometryCollection",geometries:ne.geometries.map(function(Se){return Mc(Se,pe)})}}function Mc(ne,pe){if(!ne)return null;if(ne.type==="GeometryCollection")return lc(ne,pe);var Se;switch(ne.type){case"Point":Se=ku;break;case"MultiPoint":Se=ku;break;case"LineString":Se=Gs;break;case"MultiLineString":Se=Gs;break;case"Polygon":Se=uc;break;case"MultiPolygon":Se=uc;break;case"Sphere":Se=uc;break;default:return null}return(0,Ia.A)(ne,pe(Se)),Se.result()}var ys=[],Hs=[],ku={point:function(ne,pe){ys.push([ne,pe])},result:function(){var ne=ys.length?ys.length<2?{type:"Point",coordinates:ys[0]}:{type:"MultiPoint",coordinates:ys}:null;return ys=[],ne}},Gs={lineStart:zl,point:function(ne,pe){ys.push([ne,pe])},lineEnd:function(){ys.length&&(Hs.push(ys),ys=[])},result:function(){var ne=Hs.length?Hs.length<2?{type:"LineString",coordinates:Hs[0]}:{type:"MultiLineString",coordinates:Hs}:null;return Hs=[],ne}},uc={polygonStart:zl,lineStart:zl,point:function(ne,pe){ys.push([ne,pe])},lineEnd:function(){var ne=ys.length;if(ne){do ys.push(ys[0].slice());while(++ne<4);Hs.push(ys),ys=[]}},polygonEnd:zl,result:function(){if(!Hs.length)return null;var ne=[],pe=[];return Hs.forEach(function(Se){hh(Se)?ne.push([Se]):pe.push(Se)}),pe.forEach(function(Se){var ze=Se[0];ne.some(function(Xe){if(Mh(Xe[0],ze))return Xe.push(Se),!0})||ne.push([Se])}),Hs=[],ne.length?ne.length>1?{type:"MultiPolygon",coordinates:ne}:{type:"Polygon",coordinates:ne[0]}:null}};function Zu(ne){var pe=ne(h,0)[0]-ne(-h,0)[0];function Se(ze,Xe){var Ze=A(ze)0?ze-l:ze+l,Xe),zr=(tr[0]-tr[1])*b,qr=(tr[0]+tr[1])*b;if(Ze)return[zr,qr];var Lr=pe*b,Hr=zr>0^qr>0?-1:1;return[Hr*zr-n(qr)*Lr,Hr*qr-n(zr)*Lr]}return ne.invert&&(Se.invert=function(ze,Xe){var Ze=(ze+Xe)*b,tr=(Xe-ze)*b,zr=A(Ze)<.5*pe&&A(tr)<.5*pe;if(!zr){var qr=pe*b,Lr=Ze>0^tr>0?-1:1,Hr=-Lr*ze+(tr>0?1:-1)*qr,ii=-Lr*Xe+(Ze>0?1:-1)*qr;Ze=(-Hr-ii)*b,tr=(Hr-ii)*b}var di=ne.invert(Ze,tr);return zr||(di[0]+=Ze>0?l:-l),di}),(0,S.A)(Se).rotate([-90,-90,45]).clipAngle(179.999)}function cc(){return Zu(Ci).scale(176.423)}function Ol(){return Zu(Xr).scale(111.48)}function Wc(ne,pe){if(!(0<=(pe=+pe)&&pe<=20))throw Error("invalid digits");function Se(Lr){var Hr=Lr.length,ii=2,di=Array(Hr);for(di[0]=+Lr[0].toFixed(pe),di[1]=+Lr[1].toFixed(pe);ii2||gi[0]!=Hr[0]||gi[1]!=Hr[1])&&(ii.push(gi),Hr=gi)}return ii.length===1&&Lr.length>1&&ii.push(Se(Lr[Lr.length-1])),ii}function Ze(Lr){return Lr.map(Xe)}function tr(Lr){if(Lr==null)return Lr;var Hr;switch(Lr.type){case"GeometryCollection":Hr={type:"GeometryCollection",geometries:Lr.geometries.map(tr)};break;case"Point":Hr={type:"Point",coordinates:Se(Lr.coordinates)};break;case"MultiPoint":Hr={type:Lr.type,coordinates:ze(Lr.coordinates)};break;case"LineString":Hr={type:Lr.type,coordinates:Xe(Lr.coordinates)};break;case"MultiLineString":case"Polygon":Hr={type:Lr.type,coordinates:Ze(Lr.coordinates)};break;case"MultiPolygon":Hr={type:"MultiPolygon",coordinates:Lr.coordinates.map(Ze)};break;default:return Lr}return Lr.bbox!=null&&(Hr.bbox=Lr.bbox),Hr}function zr(Lr){var Hr={type:"Feature",properties:Lr.properties,geometry:tr(Lr.geometry)};return Lr.id!=null&&(Hr.id=Lr.id),Lr.bbox!=null&&(Hr.bbox=Lr.bbox),Hr}if(ne!=null)switch(ne.type){case"Feature":return zr(ne);case"FeatureCollection":var qr={type:"FeatureCollection",features:ne.features.map(zr)};return ne.bbox!=null&&(qr.bbox=ne.bbox),qr;default:return tr(ne)}return ne}function hc(ne){var pe=m(ne);function Se(ze,Xe){var Ze=pe?x(ze*pe/2)/pe:ze/2;if(!Xe)return[2*Ze,-ne];var tr=2*t(Ze*m(Xe)),zr=1/x(Xe);return[m(tr)*zr,Xe+(1-w(tr))*zr-ne]}return Se.invert=function(ze,Xe){if(A(Xe+=ne)f&&--zr>0);var di=ze*(Lr=x(tr)),gi=x(A(Xe)0?h:-h)*(qr+Xe*(Hr-tr)/2+Xe*Xe*(Hr-2*qr+tr)/2)]}Zs.invert=function(ne,pe){var Se=pe/h,ze=Se*90,Xe=o(18,A(ze/5)),Ze=r(0,c(Xe));do{var tr=ts[Ze][1],zr=ts[Ze+1][1],qr=ts[o(19,Ze+2)][1],Lr=qr-tr,Hr=qr-2*zr+tr,ii=2*(A(Se)-zr)/Lr,di=Hr/Lr,gi=ii*(1-di*ii*(1-2*di*ii));if(gi>=0||Ze===1){ze=(pe>=0?5:-5)*(gi+Xe);var Ki=50,ca;do Xe=o(18,A(ze)/5),Ze=c(Xe),gi=Xe-Ze,tr=ts[Ze][1],zr=ts[Ze+1][1],qr=ts[o(19,Ze+2)][1],ze-=(ca=(pe>=0?h:-h)*(zr+gi*(qr-tr)/2+gi*gi*(qr-2*zr+tr)/2)-pe)*L;while(A(ca)>v&&--Ki>0);break}}while(--Ze>=0);var Sa=ts[Ze][0],pa=ts[Ze+1][0],Ra=ts[o(19,Ze+2)][0];return[ne/(pa+gi*(Ra-Sa)/2+gi*gi*(Ra-2*pa+Sa)/2),ze*u]};function Dl(){return(0,S.A)(Zs).scale(152.63)}function Au(ne){function pe(Se,ze){var Xe=w(ze),Ze=(ne-1)/(ne-Xe*w(Se));return[Ze*Xe*m(Se),Ze*m(ze)]}return pe.invert=function(Se,ze){var Xe=Se*Se+ze*ze,Ze=F(Xe),tr=(ne-F(1-Xe*(ne+1)/(ne-1)))/((ne-1)/Ze+Ze/(ne-1));return[E(Se*tr,Ze*F(1-tr*tr)),Ze?C(ze*tr/Ze):0]},pe}function Sc(ne,pe){var Se=Au(ne);if(!pe)return Se;var ze=w(pe),Xe=m(pe);function Ze(tr,zr){var qr=Se(tr,zr),Lr=qr[1],Hr=Lr*Xe/(ne-1)+ze;return[qr[0]*ze/Hr,Lr/Hr]}return Ze.invert=function(tr,zr){var qr=(ne-1)/(ne-1-zr*Xe);return Se.invert(qr*tr,qr*zr*ze)},Ze}function fh(){var ne=2,pe=0,Se=(0,S.U)(Sc),ze=Se(ne,pe);return ze.distance=function(Xe){return arguments.length?Se(ne=+Xe,pe):ne},ze.tilt=function(Xe){return arguments.length?Se(ne,pe=Xe*u):pe*L},ze.scale(432.147).clipAngle(_(1/ne)*L-1e-6)}var Es=1e-4,fc=1e4,Zl=-180,ou=Zl+Es,pc=180,Wl=pc-Es,uo=-90,Rl=uo+Es,Ec=90,dc=Ec-Es;function mc(ne){return ne.length>0}function Mu(ne){return Math.floor(ne*fc)/fc}function Yl(ne){return ne===uo||ne===Ec?[0,ne]:[Zl,Mu(ne)]}function al(ne){var pe=ne[0],Se=ne[1],ze=!1;return pe<=ou?(pe=Zl,ze=!0):pe>=Wl&&(pe=pc,ze=!0),Se<=Rl?(Se=uo,ze=!0):Se>=dc&&(Se=Ec,ze=!0),ze?[pe,Se]:ne}function Cs(ne){return ne.map(al)}function gc(ne,pe,Se){for(var ze=0,Xe=ne.length;ze=Wl||Hr<=Rl||Hr>=dc){Ze[tr]=al(qr);for(var ii=tr+1;iiou&&giRl&&Ki=zr)break;Se.push({index:-1,polygon:pe,ring:Ze=Ze.slice(ii-1)}),Ze[0]=Yl(Ze[0][1]),tr=-1,zr=Ze.length}}}}function Su(ne){var pe,Se=ne.length,ze={},Xe={},Ze,tr,zr,qr,Lr;for(pe=0;pe0?l-zr:zr)*L],Lr=(0,S.A)(ne(tr)).rotate(qr),Hr=(0,Qt.A)(qr),ii=Lr.center;return delete Lr.rotate,Lr.center=function(di){return arguments.length?ii(Hr(di)):Hr.invert(ii())},Lr.clipAngle(90)}function lu(ne){var pe=w(ne);function Se(ze,Xe){var Ze=(0,Wo.T)(ze,Xe);return Ze[0]*=pe,Ze}return Se.invert=function(ze,Xe){return Wo.T.invert(ze/pe,Xe)},Se}function Eu(){return uu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function uu(ne,pe){return Uo(lu,ne,pe)}function nl(ne){if(!(ne*=2))return ot.j;var pe=-ne/2,Se=-pe,ze=ne*ne,Xe=x(Se),Ze=.5/m(Se);function tr(zr,qr){var Lr=_(w(qr)*w(zr-pe)),Hr=_(w(qr)*w(zr-Se)),ii=qr<0?-1:1;return Lr*=Lr,Hr*=Hr,[(Lr-Hr)/(2*ne),ii*F(4*ze*Hr-(ze-Lr+Hr)*(ze-Lr+Hr))/(2*ne)]}return tr.invert=function(zr,qr){var Lr=qr*qr,Hr=w(F(Lr+(di=zr+pe)*di)),ii=w(F(Lr+(di=zr+Se)*di)),di,gi;return[E(gi=Hr-ii,di=(Hr+ii)*Xe),(qr<0?-1:1)*_(F(di*di+gi*gi)*Ze)]},tr}function cs(){return Cu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Cu(ne,pe){return Uo(nl,ne,pe)}function cu(ne,pe){if(A(pe)f&&--zr>0);return[n(ne)*(F(Xe*Xe+4)+Xe)*l/4,h*tr]};function ol(){return(0,S.A)(yc).scale(127.16)}function Yu(ne,pe,Se,ze,Xe){function Ze(tr,zr){var qr=Se*m(ze*zr),Lr=F(1-qr*qr),Hr=F(2/(1+Lr*w(tr*=Xe)));return[ne*Lr*Hr*m(tr),pe*qr*Hr]}return Ze.invert=function(tr,zr){var qr=tr/ne,Lr=zr/pe,Hr=F(qr*qr+Lr*Lr),ii=2*C(Hr/2);return[E(tr*x(ii),ne*Hr)/Xe,Hr&&C(zr*m(ii)/(pe*Se*Hr))/ze]},Ze}function Xu(ne,pe,Se,ze){var Xe=l/3;ne=r(ne,f),pe=r(pe,f),ne=o(ne,h),pe=o(pe,l-f),Se=r(Se,0),Se=o(Se,100-f),ze=r(ze,f);var Ze=Se/100+1,tr=ze/100,zr=_(Ze*w(Xe))/Xe,qr=m(ne)/m(zr*h),Lr=pe/l,Hr=F(tr*m(ne/2)/m(pe/2));return Yu(Hr/F(Lr*qr*zr),1/(Hr*F(Lr*qr*zr)),qr,zr,Lr)}function Ys(){var ne=65*u,pe=60*u,Se=20,ze=200,Xe=(0,S.U)(Xu),Ze=Xe(ne,pe,Se,ze);return Ze.poleline=function(tr){return arguments.length?Xe(ne=+tr*u,pe,Se,ze):ne*L},Ze.parallels=function(tr){return arguments.length?Xe(ne,pe=+tr*u,Se,ze):pe*L},Ze.inflation=function(tr){return arguments.length?Xe(ne,pe,Se=+tr,ze):Se},Ze.ratio=function(tr){return arguments.length?Xe(ne,pe,Se,ze=+tr):ze},Ze.scale(163.775)}function es(){return Ys().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Xs=4*l+3*F(3),fu=2*F(2*l*F(3)/Xs),$u=Gt(fu*F(3)/l,fu,Xs/6);function vc(){return(0,S.A)($u).scale(176.84)}function pl(ne,pe){return[ne*F(1-3*pe*pe/(l*l)),pe]}pl.invert=function(ne,pe){return[ne/F(1-3*pe*pe/(l*l)),pe]};function Ju(){return(0,S.A)(pl).scale(152.63)}function Nl(ne,pe){var Se=w(pe),ze=w(ne)*Se,Xe=1-ze,Ze=w(ne=E(m(ne)*Se,-m(pe))),tr=m(ne);return Se=F(1-ze*ze),[tr*Se-Ze*Xe,-Ze*Se-tr*Xe]}Nl.invert=function(ne,pe){var Se=(ne*ne+pe*pe)/-2,ze=F(-Se*(2+Se)),Xe=pe*Se+ne*ze,Ze=ne*Se-pe*ze,tr=F(Ze*Ze+Xe*Xe);return[E(ze*Xe,tr*(1+Se)),tr?-C(ze*Ze/tr):0]};function Yc(){return(0,S.A)(Nl).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}function Lu(ne,pe){var Se=Y(ne,pe);return[(Se[0]+ne/h)/2,(Se[1]+pe)/2]}Lu.invert=function(ne,pe){var Se=ne,ze=pe,Xe=25;do{var Ze=w(ze),tr=m(ze),zr=m(2*ze),qr=tr*tr,Lr=Ze*Ze,Hr=m(Se),ii=w(Se/2),di=m(Se/2),gi=di*di,Ki=1-Lr*ii*ii,ca=Ki?_(Ze*ii)*F(Sa=1/Ki):Sa=0,Sa,pa=.5*(2*ca*Ze*di+Se/h)-ne,Ra=.5*(ca*tr+ze)-pe,fn=.5*Sa*(Lr*gi+ca*Ze*ii*qr)+.5/h,kn=Sa*(Hr*zr/4-ca*tr*di),En=.125*Sa*(zr*di-ca*tr*Lr*Hr),Ao=.5*Sa*(qr*ii+ca*gi*Ze)+.5,yo=kn*En-Ao*fn,So=(Ra*kn-pa*Ao)/yo,$a=(pa*En-Ra*fn)/yo;Se-=So,ze-=$a}while((A(So)>f||A($a)>f)&&--Xe>0);return[Se,ze]};function xc(){return(0,S.A)(Lu).scale(158.837)}}),49353:(function(tt,G,e){e.d(G,{A:function(){return S}});function S(){return new A}function A(){this.reset()}A.prototype={constructor:A,reset:function(){this.s=this.t=0},add:function(w){E(t,w,this.t),E(this,t.s,this.s),this.s?this.t+=t.t:this.s=t.t},valueOf:function(){return this.s}};var t=new A;function E(w,p,c){var i=w.s=p+c,r=i-p;w.t=p-(i-r)+(c-r)}}),43976:(function(tt,G,e){e.d(G,{Ay:function(){return v},B0:function(){return w},Y7:function(){return s}});var S=e(49353),A=e(61323),t=e(53341),E=e(20465),w=(0,S.A)(),p=(0,S.A)(),c,i,r,o,a,s={point:t.A,lineStart:t.A,lineEnd:t.A,polygonStart:function(){w.reset(),s.lineStart=n,s.lineEnd=m},polygonEnd:function(){var l=+w;p.add(l<0?A.FA+l:l),this.lineStart=this.lineEnd=this.point=t.A},sphere:function(){p.add(A.FA)}};function n(){s.point=x}function m(){f(c,i)}function x(l,h){s.point=f,c=l,i=h,l*=A.F2,h*=A.F2,r=l,o=(0,A.gn)(h=h/2+A.gz),a=(0,A.F8)(h)}function f(l,h){l*=A.F2,h*=A.F2,h=h/2+A.gz;var d=l-r,b=d>=0?1:-1,M=b*d,g=(0,A.gn)(h),k=(0,A.F8)(h),L=a*k,u=o*g+L*(0,A.gn)(M),T=L*b*(0,A.F8)(M);w.add((0,A.FP)(T,u)),r=l,o=g,a=k}function v(l){return p.reset(),(0,E.A)(l,s),p*2}}),43212:(function(tt,G,e){e.d(G,{A:function(){return C}});var S=e(49353),A=e(43976),t=e(20375),E=e(61323),w=e(20465),p,c,i,r,o,a,s,n,m=(0,S.A)(),x,f,v={point:l,lineStart:d,lineEnd:b,polygonStart:function(){v.point=M,v.lineStart=g,v.lineEnd=k,m.reset(),A.Y7.polygonStart()},polygonEnd:function(){A.Y7.polygonEnd(),v.point=l,v.lineStart=d,v.lineEnd=b,A.B0<0?(p=-(i=180),c=-(r=90)):m>E.Ni?r=90:m<-E.Ni&&(c=-90),f[0]=p,f[1]=i},sphere:function(){p=-(i=180),c=-(r=90)}};function l(_,F){x.push(f=[p=_,i=_]),Fr&&(r=F)}function h(_,F){var O=(0,t.jf)([_*E.F2,F*E.F2]);if(n){var j=(0,t.r8)(n,O),B=[j[1],-j[0],0],U=(0,t.r8)(B,j);(0,t.Cx)(U),U=(0,t.EV)(U);var P=_-o,N=P>0?1:-1,V=U[0]*E.uj*N,Y,K=(0,E.tn)(P)>180;K^(N*or&&(r=Y)):(V=(V+360)%360-180,K^(N*or&&(r=F))),K?_L(p,i)&&(i=_):L(_,i)>L(p,i)&&(p=_):i>=p?(_i&&(i=_)):_>o?L(p,_)>L(p,i)&&(i=_):L(_,i)>L(p,i)&&(p=_)}else x.push(f=[p=_,i=_]);Fr&&(r=F),n=O,o=_}function d(){v.point=h}function b(){f[0]=p,f[1]=i,v.point=l,n=null}function M(_,F){if(n){var O=_-o;m.add((0,E.tn)(O)>180?O+(O>0?360:-360):O)}else a=_,s=F;A.Y7.point(_,F),h(_,F)}function g(){A.Y7.lineStart()}function k(){M(a,s),A.Y7.lineEnd(),(0,E.tn)(m)>E.Ni&&(p=-(i=180)),f[0]=p,f[1]=i,n=null}function L(_,F){return(F-=_)<0?F+360:F}function u(_,F){return _[0]-F[0]}function T(_,F){return _[0]<=_[1]?_[0]<=F&&F<=_[1]:F<_[0]||_[1]L(j[0],j[1])&&(j[1]=B[1]),L(B[0],j[1])>L(j[0],j[1])&&(j[0]=B[0])):U.push(j=B);for(P=-1/0,O=U.length-1,F=0,j=U[O];F<=O;j=B,++F)B=U[F],(N=L(j[1],B[0]))>P&&(P=N,p=B[0],i=j[1])}return x=f=null,p===1/0||c===1/0?[[NaN,NaN],[NaN,NaN]]:[[p,c],[i,r]]}}),20375:(function(tt,G,e){e.d(G,{Cx:function(){return i},EV:function(){return A},W8:function(){return E},ep:function(){return p},jf:function(){return t},ly:function(){return c},r8:function(){return w}});var S=e(61323);function A(r){return[(0,S.FP)(r[1],r[0]),(0,S.qR)(r[2])]}function t(r){var o=r[0],a=r[1],s=(0,S.gn)(a);return[s*(0,S.gn)(o),s*(0,S.F8)(o),(0,S.F8)(a)]}function E(r,o){return r[0]*o[0]+r[1]*o[1]+r[2]*o[2]}function w(r,o){return[r[1]*o[2]-r[2]*o[1],r[2]*o[0]-r[0]*o[2],r[0]*o[1]-r[1]*o[0]]}function p(r,o){r[0]+=o[0],r[1]+=o[1],r[2]+=o[2]}function c(r,o){return[r[0]*o,r[1]*o,r[2]*o]}function i(r){var o=(0,S.RZ)(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);r[0]/=o,r[1]/=o,r[2]/=o}}),30021:(function(tt,G,e){e.d(G,{A:function(){return O}});var S=e(61323),A=e(53341),t=e(20465),E,w,p,c,i,r,o,a,s,n,m,x,f,v,l,h,d={sphere:A.A,point:b,lineStart:g,lineEnd:u,polygonStart:function(){d.lineStart=T,d.lineEnd=C},polygonEnd:function(){d.lineStart=g,d.lineEnd=u}};function b(j,B){j*=S.F2,B*=S.F2;var U=(0,S.gn)(B);M(U*(0,S.gn)(j),U*(0,S.F8)(j),(0,S.F8)(B))}function M(j,B,U){++E,p+=(j-p)/E,c+=(B-c)/E,i+=(U-i)/E}function g(){d.point=k}function k(j,B){j*=S.F2,B*=S.F2;var U=(0,S.gn)(B);v=U*(0,S.gn)(j),l=U*(0,S.F8)(j),h=(0,S.F8)(B),d.point=L,M(v,l,h)}function L(j,B){j*=S.F2,B*=S.F2;var U=(0,S.gn)(B),P=U*(0,S.gn)(j),N=U*(0,S.F8)(j),V=(0,S.F8)(B),Y=(0,S.FP)((0,S.RZ)((Y=l*V-h*N)*Y+(Y=h*P-v*V)*Y+(Y=v*N-l*P)*Y),v*P+l*N+h*V);w+=Y,r+=Y*(v+(v=P)),o+=Y*(l+(l=N)),a+=Y*(h+(h=V)),M(v,l,h)}function u(){d.point=b}function T(){d.point=_}function C(){F(x,f),d.point=b}function _(j,B){x=j,f=B,j*=S.F2,B*=S.F2,d.point=F;var U=(0,S.gn)(B);v=U*(0,S.gn)(j),l=U*(0,S.F8)(j),h=(0,S.F8)(B),M(v,l,h)}function F(j,B){j*=S.F2,B*=S.F2;var U=(0,S.gn)(B),P=U*(0,S.gn)(j),N=U*(0,S.F8)(j),V=(0,S.F8)(B),Y=l*V-h*N,K=h*P-v*V,nt=v*N-l*P,ft=(0,S.RZ)(Y*Y+K*K+nt*nt),ct=(0,S.qR)(ft),J=ft&&-ct/ft;s+=J*Y,n+=J*K,m+=J*nt,w+=ct,r+=ct*(v+(v=P)),o+=ct*(l+(l=N)),a+=ct*(h+(h=V)),M(v,l,h)}function O(j){E=w=p=c=i=r=o=a=s=n=m=0,(0,t.A)(j,d);var B=s,U=n,P=m,N=B*B+U*U+P*P;return N0?sn)&&(s+=a*t.FA));for(var v,l=s;a>0?l>n:l0?A.pi:-A.pi,m=(0,A.tn)(a-c);(0,A.tn)(m-A.pi)0?A.TW:-A.TW),p.point(r,i),p.lineEnd(),p.lineStart(),p.point(n,i),p.point(a,i),o=0):r!==n&&m>=A.pi&&((0,A.tn)(c-r)A.Ni?(0,A.rY)(((0,A.F8)(c)*(a=(0,A.gn)(r))*(0,A.F8)(i)-(0,A.F8)(r)*(o=(0,A.gn)(c))*(0,A.F8)(p))/(o*a*s)):(c+r)/2}function w(p,c,i,r){var o;if(p==null)o=i*A.TW,r.point(-A.pi,o),r.point(0,o),r.point(A.pi,o),r.point(A.pi,0),r.point(A.pi,-o),r.point(0,-o),r.point(-A.pi,-o),r.point(-A.pi,0),r.point(-A.pi,o);else if((0,A.tn)(p[0]-c[0])>A.Ni){var a=p[0]1&&t.push(t.pop().concat(t.shift()))},result:function(){var w=t;return t=[],E=null,w}}}}),47402:(function(tt,G,e){e.d(G,{A:function(){return p}});var S=e(20375),A=e(39127),t=e(61323),E=e(28759),w=e(13720);function p(c){var i=(0,t.gn)(c),r=6*t.F2,o=i>0,a=(0,t.tn)(i)>t.Ni;function s(v,l,h,d){(0,A.J)(d,c,r,h,v,l)}function n(v,l){return(0,t.gn)(v)*(0,t.gn)(l)>i}function m(v){var l,h,d,b,M;return{lineStart:function(){b=d=!1,M=1},point:function(g,k){var L=[g,k],u,T=n(g,k),C=o?T?0:f(g,k):T?f(g+(g<0?t.pi:-t.pi),k):0;if(!l&&(b=d=T)&&v.lineStart(),T!==d&&(u=x(l,L),(!u||(0,E.A)(l,u)||(0,E.A)(L,u))&&(L[2]=1)),T!==d)M=0,T?(v.lineStart(),u=x(L,l),v.point(u[0],u[1])):(u=x(l,L),v.point(u[0],u[1],2),v.lineEnd()),l=u;else if(a&&l&&o^T){var _;!(C&h)&&(_=x(L,l,!0))&&(M=0,o?(v.lineStart(),v.point(_[0][0],_[0][1]),v.point(_[1][0],_[1][1]),v.lineEnd()):(v.point(_[1][0],_[1][1]),v.lineEnd(),v.lineStart(),v.point(_[0][0],_[0][1],3)))}T&&(!l||!(0,E.A)(l,L))&&v.point(L[0],L[1]),l=L,d=T,h=C},lineEnd:function(){d&&v.lineEnd(),l=null},clean:function(){return M|(b&&d)<<1}}}function x(v,l,h){var d=(0,S.jf)(v),b=(0,S.jf)(l),M=[1,0,0],g=(0,S.r8)(d,b),k=(0,S.W8)(g,g),L=g[0],u=k-L*L;if(!u)return!h&&v;var T=i*k/u,C=-i*L/u,_=(0,S.r8)(M,g),F=(0,S.ly)(M,T),O=(0,S.ly)(g,C);(0,S.ep)(F,O);var j=_,B=(0,S.W8)(F,j),U=(0,S.W8)(j,j),P=B*B-U*((0,S.W8)(F,F)-1);if(!(P<0)){var N=(0,t.RZ)(P),V=(0,S.ly)(j,(-B-N)/U);if((0,S.ep)(V,F),V=(0,S.EV)(V),!h)return V;var Y=v[0],K=l[0],nt=v[1],ft=l[1],ct;K0^V[1]<((0,t.tn)(V[0]-Y)t.pi^(Y<=V[0]&&V[0]<=K)){var Z=(0,S.ly)(j,(-B+N)/U);return(0,S.ep)(Z,F),[V,(0,S.EV)(Z)]}}}function f(v,l){var h=o?c:t.pi-c,d=0;return v<-h?d|=1:v>h&&(d|=2),l<-h?d|=4:l>h&&(d|=8),d}return(0,w.A)(n,m,s,o?[0,-c]:[-t.pi,c-t.pi])}}),13720:(function(tt,G,e){e.d(G,{A:function(){return p}});var S=e(39608),A=e(19119),t=e(61323),E=e(2274),w=e(29725);function p(r,o,a,s){return function(n){var m=o(n),x=(0,S.A)(),f=o(x),v=!1,l,h,d,b={point:M,lineStart:k,lineEnd:L,polygonStart:function(){b.point=u,b.lineStart=T,b.lineEnd=C,h=[],l=[]},polygonEnd:function(){b.point=M,b.lineStart=k,b.lineEnd=L,h=(0,w.Am)(h);var _=(0,E.A)(l,s);h.length?(v||(v=(n.polygonStart(),!0)),(0,A.A)(h,i,_,a,n)):_&&(v||(v=(n.polygonStart(),!0)),n.lineStart(),a(null,null,1,n),n.lineEnd()),v&&(v=(n.polygonEnd(),!1)),h=l=null},sphere:function(){n.polygonStart(),n.lineStart(),a(null,null,1,n),n.lineEnd(),n.polygonEnd()}};function M(_,F){r(_,F)&&n.point(_,F)}function g(_,F){m.point(_,F)}function k(){b.point=g,m.lineStart()}function L(){b.point=M,m.lineEnd()}function u(_,F){d.push([_,F]),f.point(_,F)}function T(){f.lineStart(),d=[]}function C(){u(d[0][0],d[0][1]),f.lineEnd();var _=f.clean(),F=x.result(),O,j=F.length,B,U,P;if(d.pop(),l.push(d),d=null,j){if(_&1){if(U=F[0],(B=U.length-1)>0){for(v||(v=(n.polygonStart(),!0)),n.lineStart(),O=0;O1&&_&2&&F.push(F.pop().concat(F.shift())),h.push(F.filter(c))}}return b}}function c(r){return r.length>1}function i(r,o){return((r=r.x)[0]<0?r[1]-t.TW-t.Ni:t.TW-r[1])-((o=o.x)[0]<0?o[1]-t.TW-t.Ni:t.TW-o[1])}}),21503:(function(tt,G,e){e.d(G,{A:function(){return i}});var S=e(61323),A=e(39608);function t(r,o,a,s,n,m){var x=r[0],f=r[1],v=o[0],l=o[1],h=0,d=1,b=v-x,M=l-f,g=a-x;if(!(!b&&g>0)){if(g/=b,b<0){if(g0){if(g>d)return;g>h&&(h=g)}if(g=n-x,!(!b&&g<0)){if(g/=b,b<0){if(g>d)return;g>h&&(h=g)}else if(b>0){if(g0)){if(g/=M,M<0){if(g0){if(g>d)return;g>h&&(h=g)}if(g=m-f,!(!M&&g<0)){if(g/=M,M<0){if(g>d)return;g>h&&(h=g)}else if(M>0){if(g0&&(r[0]=x+h*b,r[1]=f+h*M),d<1&&(o[0]=x+d*b,o[1]=f+d*M),!0}}}}}var E=e(19119),w=e(29725),p=1e9,c=-p;function i(r,o,a,s){function n(l,h){return r<=l&&l<=a&&o<=h&&h<=s}function m(l,h,d,b){var M=0,g=0;if(l==null||(M=x(l,d))!==(g=x(h,d))||v(l,h)<0^d>0)do b.point(M===0||M===3?r:a,M>1?s:o);while((M=(M+d+4)%4)!==g);else b.point(h[0],h[1])}function x(l,h){return(0,S.tn)(l[0]-r)0?0:3:(0,S.tn)(l[0]-a)0?2:1:(0,S.tn)(l[1]-o)0?1:0:h>0?3:2}function f(l,h){return v(l.x,h.x)}function v(l,h){var d=x(l,1),b=x(h,1);return d===b?d===0?h[1]-l[1]:d===1?l[0]-h[0]:d===2?l[1]-h[1]:h[0]-l[0]:d-b}return function(l){var h=l,d=(0,A.A)(),b,M,g,k,L,u,T,C,_,F,O,j={point:B,lineStart:V,lineEnd:Y,polygonStart:P,polygonEnd:N};function B(nt,ft){n(nt,ft)&&h.point(nt,ft)}function U(){for(var nt=0,ft=0,ct=M.length;fts&&(rt-st)*(s-ot)>(X-ot)*(r-st)&&++nt:X<=s&&(rt-st)*(s-ot)<(X-ot)*(r-st)&&--nt;return nt}function P(){h=d,b=[],M=[],O=!0}function N(){var nt=U(),ft=O&&nt,ct=(b=(0,w.Am)(b)).length;(ft||ct)&&(l.polygonStart(),ft&&(l.lineStart(),m(null,null,1,l),l.lineEnd()),ct&&(0,E.A)(b,f,nt,m,l),l.polygonEnd()),h=l,b=M=g=null}function V(){j.point=K,M&&M.push(g=[]),F=!0,_=!1,T=C=NaN}function Y(){b&&(K(k,L),u&&_&&d.rejoin(),b.push(d.result())),j.point=B,_&&h.lineEnd()}function K(nt,ft){var ct=n(nt,ft);if(M&&g.push([nt,ft]),F)k=nt,L=ft,u=ct,F=!1,ct&&(h.lineStart(),h.point(nt,ft));else if(ct&&_)h.point(nt,ft);else{var J=[T=Math.max(c,Math.min(p,T)),C=Math.max(c,Math.min(p,C))],et=[nt=Math.max(c,Math.min(p,nt)),ft=Math.max(c,Math.min(p,ft))];t(J,et,r,o,a,s)?(_||(h.lineStart(),h.point(J[0],J[1])),h.point(et[0],et[1]),ct||h.lineEnd(),O=!1):ct&&(h.lineStart(),h.point(nt,ft),O=!1)}T=nt,C=ft,_=ct}return j}}}),19119:(function(tt,G,e){e.d(G,{A:function(){return E}});var S=e(28759),A=e(61323);function t(p,c,i,r){this.x=p,this.z=c,this.o=i,this.e=r,this.v=!1,this.n=this.p=null}function E(p,c,i,r,o){var a=[],s=[],n,m;if(p.forEach(function(d){if(!((b=d.length-1)<=0)){var b,M=d[0],g=d[b],k;if((0,S.A)(M,g)){if(!M[2]&&!g[2]){for(o.lineStart(),n=0;n=0;--n)o.point((v=f[n])[0],v[1]);else r(l.x,l.p.x,-1,o);l=l.p}l=l.o,f=l.z,h=!h}while(!l.v);o.lineEnd()}}}function w(p){if(c=p.length){for(var c,i=0,r=p[0],o;++i0&&(Ni=u(Tr[si],Tr[si-1]),Ni>0&&li<=Ni&&ci<=Ni&&(li+ci-Ni)*(1-((li-ci)/Ni)**2)a.Ni}).map(Ea)).concat((0,N.y1)((0,a.mk)(si/Ha)*Ha,Ni,Ha).filter(function(Ji){return(0,a.tn)(Ji%Ga)>a.Ni}).map(Fa))}return Si.lines=function(){return aa().map(function(Ji){return{type:"LineString",coordinates:Ji}})},Si.outline=function(){return{type:"Polygon",coordinates:[Xr(ci).concat(ji(Ci).slice(1),Xr(li).reverse().slice(1),ji(wi).reverse().slice(1))]}},Si.extent=function(Ji){return arguments.length?Si.extentMajor(Ji).extentMinor(Ji):Si.extentMinor()},Si.extentMajor=function(Ji){return arguments.length?(ci=+Ji[0][0],li=+Ji[1][0],wi=+Ji[0][1],Ci=+Ji[1][1],ci>li&&(Ji=ci,ci=li,li=Ji),wi>Ci&&(Ji=wi,wi=Ci,Ci=Ji),Si.precision(Li)):[[ci,wi],[li,Ci]]},Si.extentMinor=function(Ji){return arguments.length?(Vr=+Ji[0][0],Tr=+Ji[1][0],si=+Ji[0][1],Ni=+Ji[1][1],Vr>Tr&&(Ji=Vr,Vr=Tr,Tr=Ji),si>Ni&&(Ji=si,si=Ni,Ni=Ji),Si.precision(Li)):[[Vr,si],[Tr,Ni]]},Si.step=function(Ji){return arguments.length?Si.stepMajor(Ji).stepMinor(Ji):Si.stepMinor()},Si.stepMajor=function(Ji){return arguments.length?(ya=+Ji[0],Ga=+Ji[1],Si):[ya,Ga]},Si.stepMinor=function(Ji){return arguments.length?(ma=+Ji[0],Ha=+Ji[1],Si):[ma,Ha]},Si.precision=function(Ji){return arguments.length?(Li=+Ji,Ea=V(si,Ni,90),Fa=Y(Vr,Tr,Li),Xr=V(wi,Ci,90),ji=Y(ci,li,Li),Si):Li},Si.extentMajor([[-180,-90+a.Ni],[180,90-a.Ni]]).extentMinor([[-180,-80-a.Ni],[180,80+a.Ni]])}function nt(){return K()()}var ft=e(81758),ct=e(26827),J=(0,o.A)(),et=(0,o.A)(),Q,Z,st,ot,rt={point:s.A,lineStart:s.A,lineEnd:s.A,polygonStart:function(){rt.lineStart=X,rt.lineEnd=yt},polygonEnd:function(){rt.lineStart=rt.lineEnd=rt.point=s.A,J.add((0,a.tn)(et)),et.reset()},result:function(){var Tr=J/2;return J.reset(),Tr}};function X(){rt.point=ut}function ut(Tr,Vr){rt.point=lt,Q=st=Tr,Z=ot=Vr}function lt(Tr,Vr){et.add(ot*Tr-st*Vr),st=Tr,ot=Vr}function yt(){lt(Q,Z)}var kt=rt,Lt=e(33028),St=0,Ot=0,Ht=0,Kt=0,Gt=0,Et=0,At=0,qt=0,jt=0,de,Xt,ye,Le,ve={point:ke,lineStart:Pe,lineEnd:je,polygonStart:function(){ve.lineStart=nr,ve.lineEnd=Vt},polygonEnd:function(){ve.point=ke,ve.lineStart=Pe,ve.lineEnd=je},result:function(){var Tr=jt?[At/jt,qt/jt]:Et?[Kt/Et,Gt/Et]:Ht?[St/Ht,Ot/Ht]:[NaN,NaN];return St=Ot=Ht=Kt=Gt=Et=At=qt=jt=0,Tr}};function ke(Tr,Vr){St+=Tr,Ot+=Vr,++Ht}function Pe(){ve.point=me}function me(Tr,Vr){ve.point=be,ke(ye=Tr,Le=Vr)}function be(Tr,Vr){var li=Tr-ye,ci=Vr-Le,Ni=(0,a.RZ)(li*li+ci*ci);Kt+=Ni*(ye+Tr)/2,Gt+=Ni*(Le+Vr)/2,Et+=Ni,ke(ye=Tr,Le=Vr)}function je(){ve.point=ke}function nr(){ve.point=Qt}function Vt(){te(de,Xt)}function Qt(Tr,Vr){ve.point=te,ke(de=ye=Tr,Xt=Le=Vr)}function te(Tr,Vr){var li=Tr-ye,ci=Vr-Le,Ni=(0,a.RZ)(li*li+ci*ci);Kt+=Ni*(ye+Tr)/2,Gt+=Ni*(Le+Vr)/2,Et+=Ni,Ni=Le*Tr-ye*Vr,At+=Ni*(ye+Tr),qt+=Ni*(Le+Vr),jt+=Ni*3,ke(ye=Tr,Le=Vr)}var ee=ve;function Bt(Tr){this._context=Tr}Bt.prototype={_radius:4.5,pointRadius:function(Tr){return this._radius=Tr,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Tr,Vr){switch(this._point){case 0:this._context.moveTo(Tr,Vr),this._point=1;break;case 1:this._context.lineTo(Tr,Vr);break;default:this._context.moveTo(Tr+this._radius,Vr),this._context.arc(Tr,Vr,this._radius,0,a.FA);break}},result:s.A};var Wt=(0,o.A)(),$t,Tt,_t,It,Mt,Ct={point:s.A,lineStart:function(){Ct.point=Ut},lineEnd:function(){$t&&Zt(Tt,_t),Ct.point=s.A},polygonStart:function(){$t=!0},polygonEnd:function(){$t=null},result:function(){var Tr=+Wt;return Wt.reset(),Tr}};function Ut(Tr,Vr){Ct.point=Zt,Tt=It=Tr,_t=Mt=Vr}function Zt(Tr,Vr){It-=Tr,Mt-=Vr,Wt.add((0,a.RZ)(It*It+Mt*Mt)),It=Tr,Mt=Vr}var Me=Ct;function Be(){this._string=[]}Be.prototype={_radius:4.5,_circle:ge(4.5),pointRadius:function(Tr){return(Tr=+Tr)!==this._radius&&(this._radius=Tr,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Tr,Vr){switch(this._point){case 0:this._string.push("M",Tr,",",Vr),this._point=1;break;case 1:this._string.push("L",Tr,",",Vr);break;default:this._circle??(this._circle=ge(this._radius)),this._string.push("M",Tr,",",Vr,this._circle);break}},result:function(){if(this._string.length){var Tr=this._string.join("");return this._string=[],Tr}else return null}};function ge(Tr){return"m0,"+Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+-2*Tr+"a"+Tr+","+Tr+" 0 1,1 0,"+2*Tr+"z"}function Ee(Tr,Vr){var li=4.5,ci,Ni;function si(Ci){return Ci&&(typeof li=="function"&&Ni.pointRadius(+li.apply(this,arguments)),(0,n.A)(Ci,ci(Ni))),Ni.result()}return si.area=function(Ci){return(0,n.A)(Ci,ci(kt)),kt.result()},si.measure=function(Ci){return(0,n.A)(Ci,ci(Me)),Me.result()},si.bounds=function(Ci){return(0,n.A)(Ci,ci(Lt.A)),Lt.A.result()},si.centroid=function(Ci){return(0,n.A)(Ci,ci(ee)),ee.result()},si.projection=function(Ci){return arguments.length?(ci=Ci==null?(Tr=null,ct.A):(Tr=Ci).stream,si):Tr},si.context=function(Ci){return arguments.length?(Ni=Ci==null?(Vr=null,new Be):new Bt(Vr=Ci),typeof li!="function"&&Ni.pointRadius(li),si):Vr},si.pointRadius=function(Ci){return arguments.length?(li=typeof Ci=="function"?Ci:(Ni.pointRadius(+Ci),+Ci),si):li},si.projection(Tr).context(Vr)}var Ne=e(94684);function sr(Tr){var Vr=0,li=a.pi/3,ci=(0,Ne.U)(Tr),Ni=ci(Vr,li);return Ni.parallels=function(si){return arguments.length?ci(Vr=si[0]*a.F2,li=si[1]*a.F2):[Vr*a.uj,li*a.uj]},Ni}function _e(Tr){var Vr=(0,a.gn)(Tr);function li(ci,Ni){return[ci*Vr,(0,a.F8)(Ni)/Vr]}return li.invert=function(ci,Ni){return[ci/Vr,(0,a.qR)(Ni*Vr)]},li}function He(Tr,Vr){var li=(0,a.F8)(Tr),ci=(li+(0,a.F8)(Vr))/2;if((0,a.tn)(ci)=.12&&Li<.234&&ji>=-.425&&ji<-.214?Ni:Li>=.166&&Li<.234&&ji>=-.214&&ji<-.115?Ci:li).invert(Ea)},ya.stream=function(Ea){return Tr&&Vr===Ea?Tr:Tr=ue([li.stream(Vr=Ea),Ni.stream(Ea),Ci.stream(Ea)])},ya.precision=function(Ea){return arguments.length?(li.precision(Ea),Ni.precision(Ea),Ci.precision(Ea),Ga()):li.precision()},ya.scale=function(Ea){return arguments.length?(li.scale(Ea),Ni.scale(Ea*.35),Ci.scale(Ea),ya.translate(li.translate())):li.scale()},ya.translate=function(Ea){if(!arguments.length)return li.translate();var Fa=li.scale(),Xr=+Ea[0],ji=+Ea[1];return ci=li.translate(Ea).clipExtent([[Xr-.455*Fa,ji-.238*Fa],[Xr+.455*Fa,ji+.238*Fa]]).stream(Ha),si=Ni.translate([Xr-.307*Fa,ji+.201*Fa]).clipExtent([[Xr-.425*Fa+a.Ni,ji+.12*Fa+a.Ni],[Xr-.214*Fa-a.Ni,ji+.234*Fa-a.Ni]]).stream(Ha),wi=Ci.translate([Xr-.205*Fa,ji+.212*Fa]).clipExtent([[Xr-.214*Fa+a.Ni,ji+.166*Fa+a.Ni],[Xr-.115*Fa-a.Ni,ji+.234*Fa-a.Ni]]).stream(Ha),Ga()},ya.fitExtent=function(Ea,Fa){return(0,br.sp)(ya,Ea,Fa)},ya.fitSize=function(Ea,Fa){return(0,br.Hv)(ya,Ea,Fa)},ya.fitWidth=function(Ea,Fa){return(0,br.G0)(ya,Ea,Fa)},ya.fitHeight=function(Ea,Fa){return(0,br.FL)(ya,Ea,Fa)};function Ga(){return Tr=Vr=null,ya}return ya.scale(1070)}var Ce=e(30729),Ge=e(61957),Ke=e(30915);function ar(Tr,Vr){return[Tr,(0,a.Rm)((0,a.Ml)((a.TW+Vr)/2))]}ar.invert=function(Tr,Vr){return[Tr,2*(0,a.rY)((0,a.oN)(Vr))-a.TW]};function We(){return $e(ar).scale(961/a.FA)}function $e(Tr){var Vr=(0,Ne.A)(Tr),li=Vr.center,ci=Vr.scale,Ni=Vr.translate,si=Vr.clipExtent,Ci=null,wi,ma,Ha;Vr.scale=function(Ga){return arguments.length?(ci(Ga),ya()):ci()},Vr.translate=function(Ga){return arguments.length?(Ni(Ga),ya()):Ni()},Vr.center=function(Ga){return arguments.length?(li(Ga),ya()):li()},Vr.clipExtent=function(Ga){return arguments.length?(Ga==null?Ci=wi=ma=Ha=null:(Ci=+Ga[0][0],wi=+Ga[0][1],ma=+Ga[1][0],Ha=+Ga[1][1]),ya()):Ci==null?null:[[Ci,wi],[ma,Ha]]};function ya(){var Ga=a.pi*ci(),Ea=Vr((0,Ke.A)(Vr.rotate()).invert([0,0]));return si(Ci==null?[[Ea[0]-Ga,Ea[1]-Ga],[Ea[0]+Ga,Ea[1]+Ga]]:Tr===ar?[[Math.max(Ea[0]-Ga,Ci),wi],[Math.min(Ea[0]+Ga,ma),Ha]]:[[Ci,Math.max(Ea[1]-Ga,wi)],[ma,Math.min(Ea[1]+Ga,Ha)]])}return ya()}function yr(Tr){return(0,a.Ml)((a.TW+Tr)/2)}function Cr(Tr,Vr){var li=(0,a.gn)(Tr),ci=Tr===Vr?(0,a.F8)(Tr):(0,a.Rm)(li/(0,a.gn)(Vr))/(0,a.Rm)(yr(Vr)/yr(Tr)),Ni=li*(0,a.n7)(yr(Tr),ci)/ci;if(!ci)return ar;function si(Ci,wi){Ni>0?wi<-a.TW+a.Ni&&(wi=-a.TW+a.Ni):wi>a.TW-a.Ni&&(wi=a.TW-a.Ni);var ma=Ni/(0,a.n7)(yr(wi),ci);return[ma*(0,a.F8)(ci*Ci),Ni-ma*(0,a.gn)(ci*Ci)]}return si.invert=function(Ci,wi){var ma=Ni-wi,Ha=(0,a._S)(ci)*(0,a.RZ)(Ci*Ci+ma*ma),ya=(0,a.FP)(Ci,(0,a.tn)(ma))*(0,a._S)(ma);return ma*ci<0&&(ya-=a.pi*(0,a._S)(Ci)*(0,a._S)(ma)),[ya/ci,2*(0,a.rY)((0,a.n7)(Ni/Ha,1/ci))-a.TW]},si}function Sr(){return sr(Cr).scale(109.5).parallels([30,30])}var Dr=e(18139);function Or(Tr,Vr){var li=(0,a.gn)(Tr),ci=Tr===Vr?(0,a.F8)(Tr):(li-(0,a.gn)(Vr))/(Vr-Tr),Ni=li/ci+Tr;if((0,a.tn)(ci)2?ci[2]+90:90]):(ci=li(),[ci[0],ci[1],ci[2]-90])},li([0,0,90]).scale(159.155)}}),81758:(function(tt,G,e){e.d(G,{A:function(){return A}});var S=e(61323);function A(t,E){var w=t[0]*S.F2,p=t[1]*S.F2,c=E[0]*S.F2,i=E[1]*S.F2,r=(0,S.gn)(p),o=(0,S.F8)(p),a=(0,S.gn)(i),s=(0,S.F8)(i),n=r*(0,S.gn)(w),m=r*(0,S.F8)(w),x=a*(0,S.gn)(c),f=a*(0,S.F8)(c),v=2*(0,S.qR)((0,S.RZ)((0,S.bo)(i-p)+r*a*(0,S.bo)(c-w))),l=(0,S.F8)(v),h=v?function(d){var b=(0,S.F8)(d*=v)/l,M=(0,S.F8)(v-d)/l,g=M*n+b*x,k=M*m+b*f,L=M*o+b*s;return[(0,S.FP)(k,g)*S.uj,(0,S.FP)(L,(0,S.RZ)(g*g+k*k))*S.uj]}:function(){return[w*S.uj,p*S.uj]};return h.distance=v,h}}),61323:(function(tt,G,e){e.d(G,{$t:function(){return A},F2:function(){return i},F8:function(){return v},FA:function(){return p},FP:function(){return a},HQ:function(){return b},Ml:function(){return d},Ni:function(){return S},RZ:function(){return h},Rm:function(){return x},TW:function(){return E},_S:function(){return l},bo:function(){return g},gn:function(){return s},gz:function(){return w},mk:function(){return n},n7:function(){return f},oN:function(){return m},pi:function(){return t},qR:function(){return M},rY:function(){return o},tn:function(){return r},uj:function(){return c}});var S=1e-6,A=1e-12,t=Math.PI,E=t/2,w=t/4,p=t*2,c=180/t,i=t/180,r=Math.abs,o=Math.atan,a=Math.atan2,s=Math.cos,n=Math.ceil,m=Math.exp,x=Math.log,f=Math.pow,v=Math.sin,l=Math.sign||function(k){return k>0?1:k<0?-1:0},h=Math.sqrt,d=Math.tan;function b(k){return k>1?0:k<-1?t:Math.acos(k)}function M(k){return k>1?E:k<-1?-E:Math.asin(k)}function g(k){return(k=v(k/2))*k}}),53341:(function(tt,G,e){e.d(G,{A:function(){return S}});function S(){}}),33028:(function(tt,G,e){var S=e(53341),A=1/0,t=A,E=-A,w=E,p={point:c,lineStart:S.A,lineEnd:S.A,polygonStart:S.A,polygonEnd:S.A,result:function(){var i=[[A,t],[E,w]];return E=w=-(t=A=1/0),i}};function c(i,r){iE&&(E=i),rw&&(w=r)}G.A=p}),28759:(function(tt,G,e){e.d(G,{A:function(){return A}});var S=e(61323);function A(t,E){return(0,S.tn)(t[0]-E[0])=0?1:-1,j=O*F,B=j>t.pi,U=M*C;if(E.add((0,t.FP)(U*O*(0,t.F8)(j),g*_+U*(0,t.gn)(j))),n+=B?F+O*t.FA:F,B^d>=r^u>=r){var P=(0,A.r8)((0,A.jf)(h),(0,A.jf)(L));(0,A.Cx)(P);var N=(0,A.r8)(s,P);(0,A.Cx)(N);var V=(B^F>=0?-1:1)*(0,t.qR)(N[2]);(o>V||o===V&&(P[0]||P[1]))&&(m+=B^F>=0?1:-1)}}return(n<-t.Ni||n4*g&&V--){var ct=C+U,J=_+P,et=F+N,Q=(0,p.RZ)(ct*ct+J*J+et*et),Z=(0,p.qR)(et/=Q),st=(0,p.tn)((0,p.tn)(et)-1)g||(0,p.tn)((K*ut+nt*lt)/ft-.5)>.3||C*U+_*P+F*N2?yt[2]%360*p.F2:0,ut()):[_*p.uj,F*p.uj,O*p.uj]},rt.angle=function(yt){return arguments.length?(B=yt%360*p.F2,ut()):B*p.uj},rt.reflectX=function(yt){return arguments.length?(U=yt?-1:1,ut()):U<0},rt.reflectY=function(yt){return arguments.length?(P=yt?-1:1,ut()):P<0},rt.precision=function(yt){return arguments.length?(et=n(Q,J=yt*yt),lt()):(0,p.RZ)(J)},rt.fitExtent=function(yt,kt){return(0,r.sp)(rt,yt,kt)},rt.fitSize=function(yt,kt){return(0,r.Hv)(rt,yt,kt)},rt.fitWidth=function(yt,kt){return(0,r.G0)(rt,yt,kt)},rt.fitHeight=function(yt,kt){return(0,r.FL)(rt,yt,kt)};function ut(){var yt=h(k,0,0,U,P,B).apply(null,g(T,C)),kt=(B?h:l)(k,L-yt[0],u-yt[1],U,P,B);return j=(0,c.y)(_,F,O),Q=(0,E.A)(g,kt),Z=(0,E.A)(j,Q),et=n(Q,J),lt()}function lt(){return st=ot=null,rt}return function(){return g=M.apply(this,arguments),rt.invert=g.invert&&X,ut()}}}),57949:(function(tt,G,e){e.d(G,{A:function(){return E},P:function(){return t}});var S=e(94684),A=e(61323);function t(w,p){var c=p*p,i=c*c;return[w*(.8707-.131979*c+i*(-.013791+i*(.003971*c-.001529*i))),p*(1.007226+c*(.015085+i*(-.044475+.028874*c-.005916*i)))]}t.invert=function(w,p){var c=p,i=25,r;do{var o=c*c,a=o*o;c-=r=(c*(1.007226+o*(.015085+a*(-.044475+.028874*o-.005916*a)))-p)/(1.007226+o*(.045255+a*(-.311325+.259866*o-.06507600000000001*a)))}while((0,A.tn)(r)>A.Ni&&--i>0);return[w/(.8707+(o=c*c)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),c]};function E(){return(0,S.A)(t).scale(175.295)}}),53253:(function(tt,G,e){e.d(G,{A:function(){return w},x:function(){return E}});var S=e(61323),A=e(57738),t=e(94684);function E(p,c){return[(0,S.gn)(c)*(0,S.F8)(p),(0,S.F8)(c)]}E.invert=(0,A.I)(S.qR);function w(){return(0,t.A)(E).scale(249.5).clipAngle(90+S.Ni)}}),30915:(function(tt,G,e){e.d(G,{A:function(){return i},y:function(){return E}});var S=e(19057),A=e(61323);function t(r,o){return[(0,A.tn)(r)>A.pi?r+Math.round(-r/A.FA)*A.FA:r,o]}t.invert=t;function E(r,o,a){return(r%=A.FA)?o||a?(0,S.A)(p(r),c(o,a)):p(r):o||a?c(o,a):t}function w(r){return function(o,a){return o+=r,[o>A.pi?o-A.FA:o<-A.pi?o+A.FA:o,a]}}function p(r){var o=w(r);return o.invert=w(-r),o}function c(r,o){var a=(0,A.gn)(r),s=(0,A.F8)(r),n=(0,A.gn)(o),m=(0,A.F8)(o);function x(f,v){var l=(0,A.gn)(v),h=(0,A.gn)(f)*l,d=(0,A.F8)(f)*l,b=(0,A.F8)(v),M=b*a+h*s;return[(0,A.FP)(d*n-M*m,h*a-b*s),(0,A.qR)(M*n+d*m)]}return x.invert=function(f,v){var l=(0,A.gn)(v),h=(0,A.gn)(f)*l,d=(0,A.F8)(f)*l,b=(0,A.F8)(v),M=b*n-d*m;return[(0,A.FP)(d*n+b*m,h*a+M*s),(0,A.qR)(M*a-h*s)]},x}function i(r){r=E(r[0]*A.F2,r[1]*A.F2,r.length>2?r[2]*A.F2:0);function o(a){return a=r(a[0]*A.F2,a[1]*A.F2),a[0]*=A.uj,a[1]*=A.uj,a}return o.invert=function(a){return a=r.invert(a[0]*A.F2,a[1]*A.F2),a[0]*=A.uj,a[1]*=A.uj,a},o}}),20465:(function(tt,G,e){e.d(G,{A:function(){return p}});function S(c,i){c&&t.hasOwnProperty(c.type)&&t[c.type](c,i)}var A={Feature:function(c,i){S(c.geometry,i)},FeatureCollection:function(c,i){for(var r=c.features,o=-1,a=r.length;++o=0;)Wt+=$t[Tt].value;Bt.value=Wt}function o(){return this.eachAfter(r)}function a(Bt){var Wt=this,$t,Tt=[Wt],_t,It,Mt;do for($t=Tt.reverse(),Tt=[];Wt=$t.pop();)if(Bt(Wt),_t=Wt.children,_t)for(It=0,Mt=_t.length;It=0;--_t)$t.push(Tt[_t]);return this}function n(Bt){for(var Wt=this,$t=[Wt],Tt=[],_t,It,Mt;Wt=$t.pop();)if(Tt.push(Wt),_t=Wt.children,_t)for(It=0,Mt=_t.length;It=0;)$t+=Tt[_t].value;Wt.value=$t})}function x(Bt){return this.eachBefore(function(Wt){Wt.children&&Wt.children.sort(Bt)})}function f(Bt){for(var Wt=this,$t=v(Wt,Bt),Tt=[Wt];Wt!==$t;)Wt=Wt.parent,Tt.push(Wt);for(var _t=Tt.length;Bt!==$t;)Tt.splice(_t,0,Bt),Bt=Bt.parent;return Tt}function v(Bt,Wt){if(Bt===Wt)return Bt;var $t=Bt.ancestors(),Tt=Wt.ancestors(),_t=null;for(Bt=$t.pop(),Wt=Tt.pop();Bt===Wt;)_t=Bt,Bt=$t.pop(),Wt=Tt.pop();return _t}function l(){for(var Bt=this,Wt=[Bt];Bt=Bt.parent;)Wt.push(Bt);return Wt}function h(){var Bt=[];return this.each(function(Wt){Bt.push(Wt)}),Bt}function d(){var Bt=[];return this.eachBefore(function(Wt){Wt.children||Bt.push(Wt)}),Bt}function b(){var Bt=this,Wt=[];return Bt.each(function($t){$t!==Bt&&Wt.push({source:$t.parent,target:$t})}),Wt}function M(Bt,Wt){var $t=new T(Bt),Tt=+Bt.value&&($t.value=Bt.value),_t,It=[$t],Mt,Ct,Ut,Zt;for(Wt??(Wt=k);_t=It.pop();)if(Tt&&(_t.value=+_t.data.value),(Ct=Wt(_t.data))&&(Zt=Ct.length))for(_t.children=Array(Zt),Ut=Zt-1;Ut>=0;--Ut)It.push(Mt=_t.children[Ut]=new T(Ct[Ut])),Mt.parent=_t,Mt.depth=_t.depth+1;return $t.eachBefore(u)}function g(){return M(this).eachBefore(L)}function k(Bt){return Bt.children}function L(Bt){Bt.data=Bt.data.data}function u(Bt){var Wt=0;do Bt.height=Wt;while((Bt=Bt.parent)&&Bt.height<++Wt)}function T(Bt){this.data=Bt,this.depth=this.height=0,this.parent=null}T.prototype=M.prototype={constructor:T,count:o,each:a,eachAfter:n,eachBefore:s,sum:m,sort:x,path:f,ancestors:l,descendants:h,leaves:d,links:b,copy:g};var C=Array.prototype.slice;function _(Bt){for(var Wt=Bt.length,$t,Tt;Wt;)Tt=Math.random()*Wt--|0,$t=Bt[Wt],Bt[Wt]=Bt[Tt],Bt[Tt]=$t;return Bt}function F(Bt){for(var Wt=0,$t=(Bt=_(C.call(Bt))).length,Tt=[],_t,It;Wt<$t;)_t=Bt[Wt],It&&B(It,_t)?++Wt:(It=P(Tt=O(Tt,_t)),Wt=0);return It}function O(Bt,Wt){var $t,Tt;if(U(Wt,Bt))return[Wt];for($t=0;$t0&&$t*$t>Tt*Tt+_t*_t}function U(Bt,Wt){for(var $t=0;$tUt?(_t=(Zt+Ut-It)/(2*Zt),Ct=Math.sqrt(Math.max(0,Ut/Zt-_t*_t)),$t.x=Bt.x-_t*Tt-Ct*Mt,$t.y=Bt.y-_t*Mt+Ct*Tt):(_t=(Zt+It-Ut)/(2*Zt),Ct=Math.sqrt(Math.max(0,It/Zt-_t*_t)),$t.x=Wt.x+_t*Tt-Ct*Mt,$t.y=Wt.y+_t*Mt+Ct*Tt)):($t.x=Wt.x+$t.r,$t.y=Wt.y)}function nt(Bt,Wt){var $t=Bt.r+Wt.r-1e-6,Tt=Wt.x-Bt.x,_t=Wt.y-Bt.y;return $t>0&&$t*$t>Tt*Tt+_t*_t}function ft(Bt){var Wt=Bt._,$t=Bt.next._,Tt=Wt.r+$t.r,_t=(Wt.x*$t.r+$t.x*Wt.r)/Tt,It=(Wt.y*$t.r+$t.y*Wt.r)/Tt;return _t*_t+It*It}function ct(Bt){this._=Bt,this.next=null,this.previous=null}function J(Bt){if(!(_t=Bt.length))return 0;var Wt=Bt[0],$t,Tt,_t,It,Mt,Ct,Ut,Zt,Me,Be;if(Wt.x=0,Wt.y=0,!(_t>1))return Wt.r;if($t=Bt[1],Wt.x=-$t.r,$t.x=Wt.r,$t.y=0,!(_t>2))return Wt.r+$t.r;K($t,Wt,Tt=Bt[2]),Wt=new ct(Wt),$t=new ct($t),Tt=new ct(Tt),Wt.next=Tt.previous=$t,$t.next=Wt.previous=Tt,Tt.next=$t.previous=Wt;t:for(Ct=3;Ct<_t;++Ct){K(Wt._,$t._,Tt=Bt[Ct]),Tt=new ct(Tt),Ut=$t.next,Zt=Wt.previous,Me=$t._.r,Be=Wt._.r;do if(Me<=Be){if(nt(Ut._,Tt._)){$t=Ut,Wt.next=$t,$t.previous=Wt,--Ct;continue t}Me+=Ut._.r,Ut=Ut.next}else{if(nt(Zt._,Tt._)){Wt=Zt,Wt.next=$t,$t.previous=Wt,--Ct;continue t}Be+=Zt._.r,Zt=Zt.previous}while(Ut!==Zt.next);for(Tt.previous=Wt,Tt.next=$t,Wt.next=$t.previous=$t=Tt,It=ft(Wt);(Tt=Tt.next)!==$t;)(Mt=ft(Tt))0)throw Error("cycle");return Ct}return $t.id=function(Tt){return arguments.length?(Bt=Z(Tt),$t):Bt},$t.parentId=function(Tt){return arguments.length?(Wt=Z(Tt),$t):Wt},$t}function qt(Bt,Wt){return Bt.parent===Wt.parent?1:2}function jt(Bt){var Wt=Bt.children;return Wt?Wt[0]:Bt.t}function de(Bt){var Wt=Bt.children;return Wt?Wt[Wt.length-1]:Bt.t}function Xt(Bt,Wt,$t){var Tt=$t/(Wt.i-Bt.i);Wt.c-=Tt,Wt.s+=$t,Bt.c+=Tt,Wt.z+=$t,Wt.m+=$t}function ye(Bt){for(var Wt=0,$t=0,Tt=Bt.children,_t=Tt.length,It;--_t>=0;)It=Tt[_t],It.z+=Wt,It.m+=Wt,Wt+=It.s+($t+=It.c)}function Le(Bt,Wt,$t){return Bt.a.parent===Wt.parent?Bt.a:$t}function ve(Bt,Wt){this._=Bt,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Wt}ve.prototype=Object.create(T.prototype);function ke(Bt){for(var Wt=new ve(Bt,0),$t,Tt=[Wt],_t,It,Mt,Ct;$t=Tt.pop();)if(It=$t._.children)for($t.children=Array(Ct=It.length),Mt=Ct-1;Mt>=0;--Mt)Tt.push(_t=$t.children[Mt]=new ve(It[Mt],Mt)),_t.parent=$t;return(Wt.parent=new ve(null,0)).children=[Wt],Wt}function Pe(){var Bt=qt,Wt=1,$t=1,Tt=null;function _t(Zt){var Me=ke(Zt);if(Me.eachAfter(It),Me.parent.m=-Me.z,Me.eachBefore(Mt),Tt)Zt.eachBefore(Ut);else{var Be=Zt,ge=Zt,Ee=Zt;Zt.eachBefore(function(or){or.xge.x&&(ge=or),or.depth>Ee.depth&&(Ee=or)});var Ne=Be===ge?1:Bt(Be,ge)/2,sr=Ne-Be.x,_e=Wt/(ge.x+Ne+sr),He=$t/(Ee.depth||1);Zt.eachBefore(function(or){or.x=(or.x+sr)*_e,or.y=or.depth*He})}return Zt}function It(Zt){var Me=Zt.children,Be=Zt.parent.children,ge=Zt.i?Be[Zt.i-1]:null;if(Me){ye(Zt);var Ee=(Me[0].z+Me[Me.length-1].z)/2;ge?(Zt.z=ge.z+Bt(Zt._,ge._),Zt.m=Zt.z-Ee):Zt.z=Ee}else ge&&(Zt.z=ge.z+Bt(Zt._,ge._));Zt.parent.A=Ct(Zt,ge,Zt.parent.A||Be[0])}function Mt(Zt){Zt._.x=Zt.z+Zt.parent.m,Zt.m+=Zt.parent.m}function Ct(Zt,Me,Be){if(Me){for(var ge=Zt,Ee=Zt,Ne=Me,sr=ge.parent.children[0],_e=ge.m,He=Ee.m,or=Ne.m,Pr=sr.m,br;Ne=de(Ne),ge=jt(ge),Ne&≥)sr=jt(sr),Ee=de(Ee),Ee.a=Zt,br=Ne.z+or-ge.z-_e+Bt(Ne._,ge._),br>0&&(Xt(Le(Ne,Zt,Be),Zt,br),_e+=br,He+=br),or+=Ne.m,_e+=ge.m,Pr+=sr.m,He+=Ee.m;Ne&&!de(Ee)&&(Ee.t=Ne,Ee.m+=or-He),ge&&!jt(sr)&&(sr.t=ge,sr.m+=_e-Pr,Be=Zt)}return Be}function Ut(Zt){Zt.x*=Wt,Zt.y=Zt.depth*$t}return _t.separation=function(Zt){return arguments.length?(Bt=Zt,_t):Bt},_t.size=function(Zt){return arguments.length?(Tt=!1,Wt=+Zt[0],$t=+Zt[1],_t):Tt?null:[Wt,$t]},_t.nodeSize=function(Zt){return arguments.length?(Tt=!0,Wt=+Zt[0],$t=+Zt[1],_t):Tt?[Wt,$t]:null},_t}function me(Bt,Wt,$t,Tt,_t){for(var It=Bt.children,Mt,Ct=-1,Ut=It.length,Zt=Bt.value&&(_t-$t)/Bt.value;++Ctor&&(or=Zt),we=_e*_e*ue,Pr=Math.max(or/we,we/He),Pr>br){_e-=Zt;break}br=Pr}Mt.push(Ut={value:_e,dice:Ee1?Tt:1)},$t})(be);function Vt(){var Bt=nr,Wt=!1,$t=1,Tt=1,_t=[0],It=st,Mt=st,Ct=st,Ut=st,Zt=st;function Me(ge){return ge.x0=ge.y0=0,ge.x1=$t,ge.y1=Tt,ge.eachBefore(Be),_t=[0],Wt&&ge.eachBefore(kt),ge}function Be(ge){var Ee=_t[ge.depth],Ne=ge.x0+Ee,sr=ge.y0+Ee,_e=ge.x1-Ee,He=ge.y1-Ee;_e=ge-1){var or=It[Be];or.x0=Ne,or.y0=sr,or.x1=_e,or.y1=He;return}for(var Pr=Zt[Be],br=Ee/2+Pr,ue=Be+1,we=ge-1;ue>>1;Zt[Ce]He-sr){var ar=(Ne*Ke+_e*Ge)/Ee;Me(Be,ue,Ge,Ne,sr,ar,He),Me(ue,ge,Ke,ar,sr,_e,He)}else{var We=(sr*Ke+He*Ge)/Ee;Me(Be,ue,Ge,Ne,sr,_e,We),Me(ue,ge,Ke,Ne,We,_e,He)}}}function te(Bt,Wt,$t,Tt,_t){(Bt.depth&1?me:Lt)(Bt,Wt,$t,Tt,_t)}var ee=(function Bt(Wt){function $t(Tt,_t,It,Mt,Ct){if((Ut=Tt._squarify)&&Ut.ratio===Wt)for(var Ut,Zt,Me,Be,ge=-1,Ee,Ne=Ut.length,sr=Tt.value;++ge1?Tt:1)},$t})(be)}),48544:(function(tt,G,e){e.d(G,{pq:function(){return f}});var S=Math.PI,A=2*S,t=1e-6,E=A-t;function w(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function p(){return new w}w.prototype=p.prototype={constructor:w,moveTo:function(v,l){this._+="M"+(this._x0=this._x1=+v)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(v,l){this._+="L"+(this._x1=+v)+","+(this._y1=+l)},quadraticCurveTo:function(v,l,h,d){this._+="Q"+ +v+","+ +l+","+(this._x1=+h)+","+(this._y1=+d)},bezierCurveTo:function(v,l,h,d,b,M){this._+="C"+ +v+","+ +l+","+ +h+","+ +d+","+(this._x1=+b)+","+(this._y1=+M)},arcTo:function(v,l,h,d,b){v=+v,l=+l,h=+h,d=+d,b=+b;var M=this._x1,g=this._y1,k=h-v,L=d-l,u=M-v,T=g-l,C=u*u+T*T;if(b<0)throw Error("negative radius: "+b);if(this._x1===null)this._+="M"+(this._x1=v)+","+(this._y1=l);else if(C>t)if(!(Math.abs(T*k-L*u)>t)||!b)this._+="L"+(this._x1=v)+","+(this._y1=l);else{var _=h-M,F=d-g,O=k*k+L*L,j=_*_+F*F,B=Math.sqrt(O),U=Math.sqrt(C),P=b*Math.tan((S-Math.acos((O+C-j)/(2*B*U)))/2),N=P/U,V=P/B;Math.abs(N-1)>t&&(this._+="L"+(v+N*u)+","+(l+N*T)),this._+="A"+b+","+b+",0,0,"+ +(T*_>u*F)+","+(this._x1=v+V*k)+","+(this._y1=l+V*L)}},arc:function(v,l,h,d,b,M){v=+v,l=+l,h=+h,M=!!M;var g=h*Math.cos(d),k=h*Math.sin(d),L=v+g,u=l+k,T=1^M,C=M?d-b:b-d;if(h<0)throw Error("negative radius: "+h);this._x1===null?this._+="M"+L+","+u:(Math.abs(this._x1-L)>t||Math.abs(this._y1-u)>t)&&(this._+="L"+L+","+u),h&&(C<0&&(C=C%A+A),C>E?this._+="A"+h+","+h+",0,1,"+T+","+(v-g)+","+(l-k)+"A"+h+","+h+",0,1,"+T+","+(this._x1=L)+","+(this._y1=u):C>t&&(this._+="A"+h+","+h+",0,"+ +(C>=S)+","+T+","+(this._x1=v+h*Math.cos(b))+","+(this._y1=l+h*Math.sin(b))))},rect:function(v,l,h,d){this._+="M"+(this._x0=this._x1=+v)+","+(this._y0=this._y1=+l)+"h"+ +h+"v"+ +d+"h"+-h+"Z"},toString:function(){return this._}};var c=p,i=Array.prototype.slice;function r(v){return function(){return v}}function o(v){return v[0]}function a(v){return v[1]}function s(v){return v.source}function n(v){return v.target}function m(v){var l=s,h=n,d=o,b=a,M=null;function g(){var k,L=i.call(arguments),u=l.apply(this,L),T=h.apply(this,L);if(M||(M=k=c()),v(M,+d.apply(this,(L[0]=u,L)),+b.apply(this,L),+d.apply(this,(L[0]=T,L)),+b.apply(this,L)),k)return M=null,k+""||null}return g.source=function(k){return arguments.length?(l=k,g):l},g.target=function(k){return arguments.length?(h=k,g):h},g.x=function(k){return arguments.length?(d=typeof k=="function"?k:r(+k),g):d},g.y=function(k){return arguments.length?(b=typeof k=="function"?k:r(+k),g):b},g.context=function(k){return arguments.length?(M=k??null,g):M},g}function x(v,l,h,d,b){v.moveTo(l,h),v.bezierCurveTo(l=(l+d)/2,h,l,b,d,b)}function f(){return m(x)}}),42696:(function(tt,G,e){e.d(G,{DC:function(){return Qt},de:function(){return o},aL:function(){return te}});var S=e(1681),A=e(72543),t=e(55735),E=e(47265),w=e(9830),p=e(59764);function c(Bt){if(0<=Bt.y&&Bt.y<100){var Wt=new Date(-1,Bt.m,Bt.d,Bt.H,Bt.M,Bt.S,Bt.L);return Wt.setFullYear(Bt.y),Wt}return new Date(Bt.y,Bt.m,Bt.d,Bt.H,Bt.M,Bt.S,Bt.L)}function i(Bt){if(0<=Bt.y&&Bt.y<100){var Wt=new Date(Date.UTC(-1,Bt.m,Bt.d,Bt.H,Bt.M,Bt.S,Bt.L));return Wt.setUTCFullYear(Bt.y),Wt}return new Date(Date.UTC(Bt.y,Bt.m,Bt.d,Bt.H,Bt.M,Bt.S,Bt.L))}function r(Bt,Wt,$t){return{y:Bt,m:Wt,d:$t,H:0,M:0,S:0,L:0}}function o(Bt){var Wt=Bt.dateTime,$t=Bt.date,Tt=Bt.time,_t=Bt.periods,It=Bt.days,Mt=Bt.shortDays,Ct=Bt.months,Ut=Bt.shortMonths,Zt=v(_t),Me=l(_t),Be=v(It),ge=l(It),Ee=v(Mt),Ne=l(Mt),sr=v(Ct),_e=l(Ct),He=v(Ut),or=l(Ut),Pr={a:Or,A:ei,b:Nr,B:re,c:null,d:K,e:K,f:et,H:nt,I:ft,j:ct,L:J,m:Q,M:Z,p:ae,q:wr,Q:je,s:nr,S:st,u:ot,U:rt,V:X,w:ut,W:lt,x:null,X:null,y:yt,Y:kt,Z:Lt,"%":be},br={a:_r,A:lr,b:qe,B:pr,c:null,d:St,e:St,f:Et,H:Ot,I:Ht,j:Kt,L:Gt,m:At,M:qt,p:xr,q:fr,Q:je,s:nr,S:jt,u:de,U:Xt,V:ye,w:Le,W:ve,x:null,X:null,y:ke,Y:Pe,Z:me,"%":be},ue={a:ar,A:We,b:$e,B:yr,c:Cr,d:_,e:_,f:P,H:O,I:O,j:F,L:U,m:C,M:j,p:Ke,q:T,Q:V,s:Y,S:B,u:d,U:b,V:M,w:h,W:g,x:Sr,X:Dr,y:L,Y:k,Z:u,"%":N};Pr.x=we($t,Pr),Pr.X=we(Tt,Pr),Pr.c=we(Wt,Pr),br.x=we($t,br),br.X=we(Tt,br),br.c=we(Wt,br);function we(ur,Br){return function($r){var Jr=[],Zi=-1,mi=0,Ei=ur.length,Di,Tr,Vr;for($r instanceof Date||($r=new Date(+$r));++Zi53)return null;"w"in Jr||(Jr.w=1),"Z"in Jr?(mi=i(r(Jr.y,0,1)),Ei=mi.getUTCDay(),mi=Ei>4||Ei===0?S.rt.ceil(mi):(0,S.rt)(mi),mi=A.A.offset(mi,(Jr.V-1)*7),Jr.y=mi.getUTCFullYear(),Jr.m=mi.getUTCMonth(),Jr.d=mi.getUTCDate()+(Jr.w+6)%7):(mi=c(r(Jr.y,0,1)),Ei=mi.getDay(),mi=Ei>4||Ei===0?t.By.ceil(mi):(0,t.By)(mi),mi=E.A.offset(mi,(Jr.V-1)*7),Jr.y=mi.getFullYear(),Jr.m=mi.getMonth(),Jr.d=mi.getDate()+(Jr.w+6)%7)}else("W"in Jr||"U"in Jr)&&("w"in Jr||(Jr.w="u"in Jr?Jr.u%7:"W"in Jr?1:0),Ei="Z"in Jr?i(r(Jr.y,0,1)).getUTCDay():c(r(Jr.y,0,1)).getDay(),Jr.m=0,Jr.d="W"in Jr?(Jr.w+6)%7+Jr.W*7-(Ei+5)%7:Jr.w+Jr.U*7-(Ei+6)%7);return"Z"in Jr?(Jr.H+=Jr.Z/100|0,Jr.M+=Jr.Z%100,i(Jr)):c(Jr)}}function Ge(ur,Br,$r,Jr){for(var Zi=0,mi=Br.length,Ei=$r.length,Di,Tr;Zi=Ei)return-1;if(Di=Br.charCodeAt(Zi++),Di===37){if(Di=Br.charAt(Zi++),Tr=ue[Di in a?Br.charAt(Zi++):Di],!Tr||(Jr=Tr(ur,$r,Jr))<0)return-1}else if(Di!=$r.charCodeAt(Jr++))return-1}return Jr}function Ke(ur,Br,$r){var Jr=Zt.exec(Br.slice($r));return Jr?(ur.p=Me[Jr[0].toLowerCase()],$r+Jr[0].length):-1}function ar(ur,Br,$r){var Jr=Ee.exec(Br.slice($r));return Jr?(ur.w=Ne[Jr[0].toLowerCase()],$r+Jr[0].length):-1}function We(ur,Br,$r){var Jr=Be.exec(Br.slice($r));return Jr?(ur.w=ge[Jr[0].toLowerCase()],$r+Jr[0].length):-1}function $e(ur,Br,$r){var Jr=He.exec(Br.slice($r));return Jr?(ur.m=or[Jr[0].toLowerCase()],$r+Jr[0].length):-1}function yr(ur,Br,$r){var Jr=sr.exec(Br.slice($r));return Jr?(ur.m=_e[Jr[0].toLowerCase()],$r+Jr[0].length):-1}function Cr(ur,Br,$r){return Ge(ur,Wt,Br,$r)}function Sr(ur,Br,$r){return Ge(ur,$t,Br,$r)}function Dr(ur,Br,$r){return Ge(ur,Tt,Br,$r)}function Or(ur){return Mt[ur.getDay()]}function ei(ur){return It[ur.getDay()]}function Nr(ur){return Ut[ur.getMonth()]}function re(ur){return Ct[ur.getMonth()]}function ae(ur){return _t[+(ur.getHours()>=12)]}function wr(ur){return 1+~~(ur.getMonth()/3)}function _r(ur){return Mt[ur.getUTCDay()]}function lr(ur){return It[ur.getUTCDay()]}function qe(ur){return Ut[ur.getUTCMonth()]}function pr(ur){return Ct[ur.getUTCMonth()]}function xr(ur){return _t[+(ur.getUTCHours()>=12)]}function fr(ur){return 1+~~(ur.getUTCMonth()/3)}return{format:function(ur){var Br=we(ur+="",Pr);return Br.toString=function(){return ur},Br},parse:function(ur){var Br=Ce(ur+="",!1);return Br.toString=function(){return ur},Br},utcFormat:function(ur){var Br=we(ur+="",br);return Br.toString=function(){return ur},Br},utcParse:function(ur){var Br=Ce(ur+="",!0);return Br.toString=function(){return ur},Br}}}var a={"-":"",_:" ",0:"0"},s=/^\s*\d+/,n=/^%/,m=/[\\^$*+?|[\]().{}]/g;function x(Bt,Wt,$t){var Tt=Bt<0?"-":"",_t=(Tt?-Bt:Bt)+"",It=_t.length;return Tt+(It<$t?Array($t-It+1).join(Wt)+_t:_t)}function f(Bt){return Bt.replace(m,"\\$&")}function v(Bt){return RegExp("^(?:"+Bt.map(f).join("|")+")","i")}function l(Bt){for(var Wt={},$t=-1,Tt=Bt.length;++$t68?1900:2e3),$t+Tt[0].length):-1}function u(Bt,Wt,$t){var Tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Wt.slice($t,$t+6));return Tt?(Bt.Z=Tt[1]?0:-(Tt[2]+(Tt[3]||"00")),$t+Tt[0].length):-1}function T(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+1));return Tt?(Bt.q=Tt[0]*3-3,$t+Tt[0].length):-1}function C(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+2));return Tt?(Bt.m=Tt[0]-1,$t+Tt[0].length):-1}function _(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+2));return Tt?(Bt.d=+Tt[0],$t+Tt[0].length):-1}function F(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+3));return Tt?(Bt.m=0,Bt.d=+Tt[0],$t+Tt[0].length):-1}function O(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+2));return Tt?(Bt.H=+Tt[0],$t+Tt[0].length):-1}function j(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+2));return Tt?(Bt.M=+Tt[0],$t+Tt[0].length):-1}function B(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+2));return Tt?(Bt.S=+Tt[0],$t+Tt[0].length):-1}function U(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+3));return Tt?(Bt.L=+Tt[0],$t+Tt[0].length):-1}function P(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t,$t+6));return Tt?(Bt.L=Math.floor(Tt[0]/1e3),$t+Tt[0].length):-1}function N(Bt,Wt,$t){var Tt=n.exec(Wt.slice($t,$t+1));return Tt?$t+Tt[0].length:-1}function V(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t));return Tt?(Bt.Q=+Tt[0],$t+Tt[0].length):-1}function Y(Bt,Wt,$t){var Tt=s.exec(Wt.slice($t));return Tt?(Bt.s=+Tt[0],$t+Tt[0].length):-1}function K(Bt,Wt){return x(Bt.getDate(),Wt,2)}function nt(Bt,Wt){return x(Bt.getHours(),Wt,2)}function ft(Bt,Wt){return x(Bt.getHours()%12||12,Wt,2)}function ct(Bt,Wt){return x(1+E.A.count((0,w.A)(Bt),Bt),Wt,3)}function J(Bt,Wt){return x(Bt.getMilliseconds(),Wt,3)}function et(Bt,Wt){return J(Bt,Wt)+"000"}function Q(Bt,Wt){return x(Bt.getMonth()+1,Wt,2)}function Z(Bt,Wt){return x(Bt.getMinutes(),Wt,2)}function st(Bt,Wt){return x(Bt.getSeconds(),Wt,2)}function ot(Bt){var Wt=Bt.getDay();return Wt===0?7:Wt}function rt(Bt,Wt){return x(t.fz.count((0,w.A)(Bt)-1,Bt),Wt,2)}function X(Bt,Wt){var $t=Bt.getDay();return Bt=$t>=4||$t===0?(0,t.dt)(Bt):t.dt.ceil(Bt),x(t.dt.count((0,w.A)(Bt),Bt)+((0,w.A)(Bt).getDay()===4),Wt,2)}function ut(Bt){return Bt.getDay()}function lt(Bt,Wt){return x(t.By.count((0,w.A)(Bt)-1,Bt),Wt,2)}function yt(Bt,Wt){return x(Bt.getFullYear()%100,Wt,2)}function kt(Bt,Wt){return x(Bt.getFullYear()%1e4,Wt,4)}function Lt(Bt){var Wt=Bt.getTimezoneOffset();return(Wt>0?"-":(Wt*=-1,"+"))+x(Wt/60|0,"0",2)+x(Wt%60,"0",2)}function St(Bt,Wt){return x(Bt.getUTCDate(),Wt,2)}function Ot(Bt,Wt){return x(Bt.getUTCHours(),Wt,2)}function Ht(Bt,Wt){return x(Bt.getUTCHours()%12||12,Wt,2)}function Kt(Bt,Wt){return x(1+A.A.count((0,p.A)(Bt),Bt),Wt,3)}function Gt(Bt,Wt){return x(Bt.getUTCMilliseconds(),Wt,3)}function Et(Bt,Wt){return Gt(Bt,Wt)+"000"}function At(Bt,Wt){return x(Bt.getUTCMonth()+1,Wt,2)}function qt(Bt,Wt){return x(Bt.getUTCMinutes(),Wt,2)}function jt(Bt,Wt){return x(Bt.getUTCSeconds(),Wt,2)}function de(Bt){var Wt=Bt.getUTCDay();return Wt===0?7:Wt}function Xt(Bt,Wt){return x(S.Hl.count((0,p.A)(Bt)-1,Bt),Wt,2)}function ye(Bt,Wt){var $t=Bt.getUTCDay();return Bt=$t>=4||$t===0?(0,S.pT)(Bt):S.pT.ceil(Bt),x(S.pT.count((0,p.A)(Bt),Bt)+((0,p.A)(Bt).getUTCDay()===4),Wt,2)}function Le(Bt){return Bt.getUTCDay()}function ve(Bt,Wt){return x(S.rt.count((0,p.A)(Bt)-1,Bt),Wt,2)}function ke(Bt,Wt){return x(Bt.getUTCFullYear()%100,Wt,2)}function Pe(Bt,Wt){return x(Bt.getUTCFullYear()%1e4,Wt,4)}function me(){return"+0000"}function be(){return"%"}function je(Bt){return+Bt}function nr(Bt){return Math.floor(Bt/1e3)}var Vt,Qt,te;ee({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ee(Bt){return Vt=o(Bt),Qt=Vt.format,Vt.parse,te=Vt.utcFormat,Vt.utcParse,Vt}}),47265:(function(tt,G,e){e.d(G,{_:function(){return E}});var S=e(53398),A=e(66291),t=(0,S.A)(function(w){w.setHours(0,0,0,0)},function(w,p){w.setDate(w.getDate()+p)},function(w,p){return(p-w-(p.getTimezoneOffset()-w.getTimezoneOffset())*A.rR)/A.Nm},function(w){return w.getDate()-1});G.A=t;var E=t.range}),66291:(function(tt,G,e){e.d(G,{Fq:function(){return w},JJ:function(){return t},Nm:function(){return E},Tt:function(){return S},rR:function(){return A}});var S=1e3,A=6e4,t=36e5,E=864e5,w=6048e5}),50936:(function(tt,G,e){e.r(G),e.d(G,{timeDay:function(){return x.A},timeDays:function(){return x._},timeFriday:function(){return f.Sh},timeFridays:function(){return f.tz},timeHour:function(){return n},timeHours:function(){return m},timeInterval:function(){return S.A},timeMillisecond:function(){return t},timeMilliseconds:function(){return E},timeMinute:function(){return o},timeMinutes:function(){return a},timeMonday:function(){return f.By},timeMondays:function(){return f.KP},timeMonth:function(){return l},timeMonths:function(){return h},timeSaturday:function(){return f.kS},timeSaturdays:function(){return f.t$},timeSecond:function(){return c},timeSeconds:function(){return i},timeSunday:function(){return f.fz},timeSundays:function(){return f.se},timeThursday:function(){return f.dt},timeThursdays:function(){return f.Q$},timeTuesday:function(){return f.eQ},timeTuesdays:function(){return f.yW},timeWednesday:function(){return f.l3},timeWednesdays:function(){return f.gf},timeWeek:function(){return f.fz},timeWeeks:function(){return f.se},timeYear:function(){return d.A},timeYears:function(){return d.V},utcDay:function(){return T.A},utcDays:function(){return T.o},utcFriday:function(){return C.a1},utcFridays:function(){return C.Zn},utcHour:function(){return L},utcHours:function(){return u},utcMillisecond:function(){return t},utcMilliseconds:function(){return E},utcMinute:function(){return M},utcMinutes:function(){return g},utcMonday:function(){return C.rt},utcMondays:function(){return C.ON},utcMonth:function(){return F},utcMonths:function(){return O},utcSaturday:function(){return C.c8},utcSaturdays:function(){return C.Xo},utcSecond:function(){return c},utcSeconds:function(){return i},utcSunday:function(){return C.Hl},utcSundays:function(){return C.aZ},utcThursday:function(){return C.pT},utcThursdays:function(){return C.wr},utcTuesday:function(){return C.sr},utcTuesdays:function(){return C.jN},utcWednesday:function(){return C.z2},utcWednesdays:function(){return C.G6},utcWeek:function(){return C.Hl},utcWeeks:function(){return C.aZ},utcYear:function(){return j.A},utcYears:function(){return j.j}});var S=e(53398),A=(0,S.A)(function(){},function(B,U){B.setTime(+B+U)},function(B,U){return U-B});A.every=function(B){return B=Math.floor(B),!isFinite(B)||!(B>0)?null:B>1?(0,S.A)(function(U){U.setTime(Math.floor(U/B)*B)},function(U,P){U.setTime(+U+P*B)},function(U,P){return(P-U)/B}):A};var t=A,E=A.range,w=e(66291),p=(0,S.A)(function(B){B.setTime(B-B.getMilliseconds())},function(B,U){B.setTime(+B+U*w.Tt)},function(B,U){return(U-B)/w.Tt},function(B){return B.getUTCSeconds()}),c=p,i=p.range,r=(0,S.A)(function(B){B.setTime(B-B.getMilliseconds()-B.getSeconds()*w.Tt)},function(B,U){B.setTime(+B+U*w.rR)},function(B,U){return(U-B)/w.rR},function(B){return B.getMinutes()}),o=r,a=r.range,s=(0,S.A)(function(B){B.setTime(B-B.getMilliseconds()-B.getSeconds()*w.Tt-B.getMinutes()*w.rR)},function(B,U){B.setTime(+B+U*w.JJ)},function(B,U){return(U-B)/w.JJ},function(B){return B.getHours()}),n=s,m=s.range,x=e(47265),f=e(55735),v=(0,S.A)(function(B){B.setDate(1),B.setHours(0,0,0,0)},function(B,U){B.setMonth(B.getMonth()+U)},function(B,U){return U.getMonth()-B.getMonth()+(U.getFullYear()-B.getFullYear())*12},function(B){return B.getMonth()}),l=v,h=v.range,d=e(9830),b=(0,S.A)(function(B){B.setUTCSeconds(0,0)},function(B,U){B.setTime(+B+U*w.rR)},function(B,U){return(U-B)/w.rR},function(B){return B.getUTCMinutes()}),M=b,g=b.range,k=(0,S.A)(function(B){B.setUTCMinutes(0,0,0)},function(B,U){B.setTime(+B+U*w.JJ)},function(B,U){return(U-B)/w.JJ},function(B){return B.getUTCHours()}),L=k,u=k.range,T=e(72543),C=e(1681),_=(0,S.A)(function(B){B.setUTCDate(1),B.setUTCHours(0,0,0,0)},function(B,U){B.setUTCMonth(B.getUTCMonth()+U)},function(B,U){return U.getUTCMonth()-B.getUTCMonth()+(U.getUTCFullYear()-B.getUTCFullYear())*12},function(B){return B.getUTCMonth()}),F=_,O=_.range,j=e(59764)}),53398:(function(tt,G,e){e.d(G,{A:function(){return t}});var S=new Date,A=new Date;function t(E,w,p,c){function i(r){return E(r=arguments.length===0?new Date:new Date(+r)),r}return i.floor=function(r){return E(r=new Date(+r)),r},i.ceil=function(r){return E(r=new Date(r-1)),w(r,1),E(r),r},i.round=function(r){var o=i(r),a=i.ceil(r);return r-o0))return s;do s.push(n=new Date(+r)),w(r,a),E(r);while(n=o)for(;E(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;w(o,-1),!r(o););else for(;--a>=0;)for(;w(o,1),!r(o););})},p&&(i.count=function(r,o){return S.setTime(+r),A.setTime(+o),E(S),E(A),Math.floor(p(S,A))},i.every=function(r){return r=Math.floor(r),!isFinite(r)||!(r>0)?null:r>1?i.filter(c?function(o){return c(o)%r===0}:function(o){return i.count(0,o)%r===0}):i}),i}}),72543:(function(tt,G,e){e.d(G,{o:function(){return E}});var S=e(53398),A=e(66291),t=(0,S.A)(function(w){w.setUTCHours(0,0,0,0)},function(w,p){w.setUTCDate(w.getUTCDate()+p)},function(w,p){return(p-w)/A.Nm},function(w){return w.getUTCDate()-1});G.A=t;var E=t.range}),1681:(function(tt,G,e){e.d(G,{G6:function(){return m},Hl:function(){return E},ON:function(){return s},Xo:function(){return v},Zn:function(){return f},a1:function(){return r},aZ:function(){return a},c8:function(){return o},jN:function(){return n},pT:function(){return i},rt:function(){return w},sr:function(){return p},wr:function(){return x},z2:function(){return c}});var S=e(53398),A=e(66291);function t(l){return(0,S.A)(function(h){h.setUTCDate(h.getUTCDate()-(h.getUTCDay()+7-l)%7),h.setUTCHours(0,0,0,0)},function(h,d){h.setUTCDate(h.getUTCDate()+d*7)},function(h,d){return(d-h)/A.Fq})}var E=t(0),w=t(1),p=t(2),c=t(3),i=t(4),r=t(5),o=t(6),a=E.range,s=w.range,n=p.range,m=c.range,x=i.range,f=r.range,v=o.range}),59764:(function(tt,G,e){e.d(G,{j:function(){return t}});var S=e(53398),A=(0,S.A)(function(E){E.setUTCMonth(0,1),E.setUTCHours(0,0,0,0)},function(E,w){E.setUTCFullYear(E.getUTCFullYear()+w)},function(E,w){return w.getUTCFullYear()-E.getUTCFullYear()},function(E){return E.getUTCFullYear()});A.every=function(E){return!isFinite(E=Math.floor(E))||!(E>0)?null:(0,S.A)(function(w){w.setUTCFullYear(Math.floor(w.getUTCFullYear()/E)*E),w.setUTCMonth(0,1),w.setUTCHours(0,0,0,0)},function(w,p){w.setUTCFullYear(w.getUTCFullYear()+p*E)})},G.A=A;var t=A.range}),55735:(function(tt,G,e){e.d(G,{By:function(){return w},KP:function(){return s},Q$:function(){return x},Sh:function(){return r},dt:function(){return i},eQ:function(){return p},fz:function(){return E},gf:function(){return m},kS:function(){return o},l3:function(){return c},se:function(){return a},t$:function(){return v},tz:function(){return f},yW:function(){return n}});var S=e(53398),A=e(66291);function t(l){return(0,S.A)(function(h){h.setDate(h.getDate()-(h.getDay()+7-l)%7),h.setHours(0,0,0,0)},function(h,d){h.setDate(h.getDate()+d*7)},function(h,d){return(d-h-(d.getTimezoneOffset()-h.getTimezoneOffset())*A.rR)/A.Fq})}var E=t(0),w=t(1),p=t(2),c=t(3),i=t(4),r=t(5),o=t(6),a=E.range,s=w.range,n=p.range,m=c.range,x=i.range,f=r.range,v=o.range}),9830:(function(tt,G,e){e.d(G,{V:function(){return t}});var S=e(53398),A=(0,S.A)(function(E){E.setMonth(0,1),E.setHours(0,0,0,0)},function(E,w){E.setFullYear(E.getFullYear()+w)},function(E,w){return w.getFullYear()-E.getFullYear()},function(E){return E.getFullYear()});A.every=function(E){return!isFinite(E=Math.floor(E))||!(E>0)?null:(0,S.A)(function(w){w.setFullYear(Math.floor(w.getFullYear()/E)*E),w.setMonth(0,1),w.setHours(0,0,0,0)},function(w,p){w.setFullYear(w.getFullYear()+p*E)})},G.A=A;var t=A.range}),70973:(function(tt,G,e){var S=e(40891),A=e(98800),t=e(48631),E=e(52991);tt.exports=function(w,p,c){if(!w||typeof w!="object"&&typeof w!="function")throw new t("`obj` must be an object or a function`");if(typeof p!="string"&&typeof p!="symbol")throw new t("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new t("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new t("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new t("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new t("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,r=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,s=!!E&&E(w,p);if(S)S(w,p,{configurable:o===null&&s?s.configurable:!o,enumerable:i===null&&s?s.enumerable:!i,value:c,writable:r===null&&s?s.writable:!r});else if(a||!i&&!r&&!o)w[p]=c;else throw new A("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),97936:(function(tt,G,e){var S=e(99433),A=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",t=Object.prototype.toString,E=Array.prototype.concat,w=Object.defineProperty,p=function(a){return typeof a=="function"&&t.call(a)==="[object Function]"},c=e(74268)(),i=w&&c,r=function(a,s,n,m){if(s in a){if(m===!0){if(a[s]===n)return}else if(!p(m)||!m())return}i?w(a,s,{configurable:!0,enumerable:!1,value:n,writable:!0}):a[s]=n},o=function(a,s){var n=arguments.length>2?arguments[2]:{},m=S(s);A&&(m=E.call(m,Object.getOwnPropertySymbols(s)));for(var x=0;xc*i&&(w[o]=(s-a)/c*1e3)}return w}function A(t){for(var E=[],w=t[0];w<=t[1];w++)for(var p=String.fromCharCode(w),c=t[0];c0)return e(A|0,t);break;case"object":if(typeof A.length=="number")return G(A,t,0);break}return[]}tt.exports=S}),25782:(function(tt){tt.exports=G,tt.exports.default=G;function G(O,j,B){B||(B=2);var U=j&&j.length,P=U?j[0]*B:O.length,N=e(O,0,P,B,!0),V=[];if(!N||N.next===N.prev)return V;var Y,K,nt,ft,ct,J,et;if(U&&(N=c(O,j,N,B)),O.length>80*B){Y=nt=O[0],K=ft=O[1];for(var Q=B;Qnt&&(nt=ct),J>ft&&(ft=J);et=Math.max(nt-Y,ft-K),et=et===0?0:32767/et}return A(N,V,B,Y,K,et,0),V}function e(O,j,B,U,P){var N,V;if(P===F(O,j,B,U)>0)for(N=j;N=j;N-=U)V=T(N,O[N],O[N+1],V);return V&&h(V,V.next)&&(C(V),V=V.next),V}function S(O,j){if(!O)return O;j||(j=O);var B=O,U;do if(U=!1,!B.steiner&&(h(B,B.next)||l(B.prev,B,B.next)===0)){if(C(B),B=j=B.prev,B===B.next)break;U=!0}else B=B.next;while(U||B!==j);return j}function A(O,j,B,U,P,N,V){if(O){!V&&N&&s(O,U,P,N);for(var Y=O,K,nt;O.prev!==O.next;){if(K=O.prev,nt=O.next,N?E(O,U,P,N):t(O)){j.push(K.i/B|0),j.push(O.i/B|0),j.push(nt.i/B|0),C(O),O=nt.next,Y=nt.next;continue}if(O=nt,O===Y){V?V===1?(O=w(S(O),j,B),A(O,j,B,U,P,N,2)):V===2&&p(O,j,B,U,P,N):A(S(O),j,B,U,P,N,1);break}}}}function t(O){var j=O.prev,B=O,U=O.next;if(l(j,B,U)>=0)return!1;for(var P=j.x,N=B.x,V=U.x,Y=j.y,K=B.y,nt=U.y,ft=PN?P>V?P:V:N>V?N:V,et=Y>K?Y>nt?Y:nt:K>nt?K:nt,Q=U.next;Q!==j;){if(Q.x>=ft&&Q.x<=J&&Q.y>=ct&&Q.y<=et&&f(P,Y,N,K,V,nt,Q.x,Q.y)&&l(Q.prev,Q,Q.next)>=0)return!1;Q=Q.next}return!0}function E(O,j,B,U){var P=O.prev,N=O,V=O.next;if(l(P,N,V)>=0)return!1;for(var Y=P.x,K=N.x,nt=V.x,ft=P.y,ct=N.y,J=V.y,et=YK?Y>nt?Y:nt:K>nt?K:nt,st=ft>ct?ft>J?ft:J:ct>J?ct:J,ot=m(et,Q,j,B,U),rt=m(Z,st,j,B,U),X=O.prevZ,ut=O.nextZ;X&&X.z>=ot&&ut&&ut.z<=rt;){if(X.x>=et&&X.x<=Z&&X.y>=Q&&X.y<=st&&X!==P&&X!==V&&f(Y,ft,K,ct,nt,J,X.x,X.y)&&l(X.prev,X,X.next)>=0||(X=X.prevZ,ut.x>=et&&ut.x<=Z&&ut.y>=Q&&ut.y<=st&&ut!==P&&ut!==V&&f(Y,ft,K,ct,nt,J,ut.x,ut.y)&&l(ut.prev,ut,ut.next)>=0))return!1;ut=ut.nextZ}for(;X&&X.z>=ot;){if(X.x>=et&&X.x<=Z&&X.y>=Q&&X.y<=st&&X!==P&&X!==V&&f(Y,ft,K,ct,nt,J,X.x,X.y)&&l(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;ut&&ut.z<=rt;){if(ut.x>=et&&ut.x<=Z&&ut.y>=Q&&ut.y<=st&&ut!==P&&ut!==V&&f(Y,ft,K,ct,nt,J,ut.x,ut.y)&&l(ut.prev,ut,ut.next)>=0)return!1;ut=ut.nextZ}return!0}function w(O,j,B){var U=O;do{var P=U.prev,N=U.next.next;!h(P,N)&&d(P,U,U.next,N)&&k(P,N)&&k(N,P)&&(j.push(P.i/B|0),j.push(U.i/B|0),j.push(N.i/B|0),C(U),C(U.next),U=O=N),U=U.next}while(U!==O);return S(U)}function p(O,j,B,U,P,N){var V=O;do{for(var Y=V.next.next;Y!==V.prev;){if(V.i!==Y.i&&v(V,Y)){var K=u(V,Y);V=S(V,V.next),K=S(K,K.next),A(V,j,B,U,P,N,0),A(K,j,B,U,P,N,0);return}Y=Y.next}V=V.next}while(V!==O)}function c(O,j,B,U){var P=[],N,V,Y,K,nt;for(N=0,V=j.length;N=B.next.y&&B.next.y!==B.y){var Y=B.x+(P-B.y)*(B.next.x-B.x)/(B.next.y-B.y);if(Y<=U&&Y>N&&(N=Y,V=B.x=B.x&&B.x>=nt&&U!==B.x&&f(PV.x||B.x===V.x&&a(V,B)))&&(V=B,ct=J)),B=B.next;while(B!==K);return V}function a(O,j){return l(O.prev,O,j.prev)<0&&l(j.next,O,O.next)<0}function s(O,j,B,U){var P=O;do P.z===0&&(P.z=m(P.x,P.y,j,B,U)),P.prevZ=P.prev,P.nextZ=P.next,P=P.next;while(P!==O);P.prevZ.nextZ=null,P.prevZ=null,n(P)}function n(O){var j,B,U,P,N,V,Y,K,nt=1;do{for(B=O,O=null,N=null,V=0;B;){for(V++,U=B,Y=0,j=0;j0||K>0&&U;)Y!==0&&(K===0||!U||B.z<=U.z)?(P=B,B=B.nextZ,Y--):(P=U,U=U.nextZ,K--),N?N.nextZ=P:O=P,P.prevZ=N,N=P;B=U}N.nextZ=null,nt*=2}while(V>1);return O}function m(O,j,B,U,P){return O=(O-B)*P|0,j=(j-U)*P|0,O=(O|O<<8)&16711935,O=(O|O<<4)&252645135,O=(O|O<<2)&858993459,O=(O|O<<1)&1431655765,j=(j|j<<8)&16711935,j=(j|j<<4)&252645135,j=(j|j<<2)&858993459,j=(j|j<<1)&1431655765,O|j<<1}function x(O){var j=O,B=O;do(j.x=(O-V)*(N-Y)&&(O-V)*(U-Y)>=(B-V)*(j-Y)&&(B-V)*(N-Y)>=(P-V)*(U-Y)}function v(O,j){return O.next.i!==j.i&&O.prev.i!==j.i&&!g(O,j)&&(k(O,j)&&k(j,O)&&L(O,j)&&(l(O.prev,O,j.prev)||l(O,j.prev,j))||h(O,j)&&l(O.prev,O,O.next)>0&&l(j.prev,j,j.next)>0)}function l(O,j,B){return(j.y-O.y)*(B.x-j.x)-(j.x-O.x)*(B.y-j.y)}function h(O,j){return O.x===j.x&&O.y===j.y}function d(O,j,B,U){var P=M(l(O,j,B)),N=M(l(O,j,U)),V=M(l(B,U,O)),Y=M(l(B,U,j));return!!(P!==N&&V!==Y||P===0&&b(O,B,j)||N===0&&b(O,U,j)||V===0&&b(B,O,U)||Y===0&&b(B,j,U))}function b(O,j,B){return j.x<=Math.max(O.x,B.x)&&j.x>=Math.min(O.x,B.x)&&j.y<=Math.max(O.y,B.y)&&j.y>=Math.min(O.y,B.y)}function M(O){return O>0?1:O<0?-1:0}function g(O,j){var B=O;do{if(B.i!==O.i&&B.next.i!==O.i&&B.i!==j.i&&B.next.i!==j.i&&d(B,B.next,O,j))return!0;B=B.next}while(B!==O);return!1}function k(O,j){return l(O.prev,O,O.next)<0?l(O,j,O.next)>=0&&l(O,O.prev,j)>=0:l(O,j,O.prev)<0||l(O,O.next,j)<0}function L(O,j){var B=O,U=!1,P=(O.x+j.x)/2,N=(O.y+j.y)/2;do B.y>N!=B.next.y>N&&B.next.y!==B.y&&P<(B.next.x-B.x)*(N-B.y)/(B.next.y-B.y)+B.x&&(U=!U),B=B.next;while(B!==O);return U}function u(O,j){var B=new _(O.i,O.x,O.y),U=new _(j.i,j.x,j.y),P=O.next,N=j.prev;return O.next=j,j.prev=O,B.next=P,P.prev=B,U.next=B,B.prev=U,N.next=U,U.prev=N,U}function T(O,j,B,U){var P=new _(O,j,B);return U?(P.next=U.next,P.prev=U,U.next.prev=P,U.next=P):(P.prev=P,P.next=P),P}function C(O){O.next.prev=O.prev,O.prev.next=O.next,O.prevZ&&(O.prevZ.nextZ=O.nextZ),O.nextZ&&(O.nextZ.prevZ=O.prevZ)}function _(O,j,B){this.i=O,this.x=j,this.y=B,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}G.deviation=function(O,j,B,U){var P=j&&j.length,N=P?j[0]*B:O.length,V=Math.abs(F(O,0,N,B));if(P)for(var Y=0,K=j.length;Y0&&(U+=O[P-1].length,B.holes.push(U))}return B}}),96143:(function(tt,G,e){var S=e(26381);tt.exports=function(A,t){var E=[],w=[],p=[],c={},i=[],r;function o(d){p[d]=!1,c.hasOwnProperty(d)&&Object.keys(c[d]).forEach(function(b){delete c[d][b],p[b]&&o(b)})}function a(d){var b=!1;w.push(d),p[d]=!0;var M,g;for(M=0;M=d})}function m(d){n(d);for(var b=S(A).components.filter(function(C){return C.length>1}),M=1/0,g,k=0;k=55296&&b<=56319&&(L+=n[++v])),L=m?o.call(m,x,L,l):L,f?(a.value=L,s(h,l,a)):h[l]=L,++l;d=l}}if(d===void 0)for(d=E(n.length),f&&(h=new f(d)),v=0;v0?1:-1}}),10226:(function(tt,G,e){var S=e(53579),A=Math.abs,t=Math.floor;tt.exports=function(E){return isNaN(E)?0:(E=Number(E),E===0||!isFinite(E)?E:S(E)*t(A(E)))}}),54653:(function(tt,G,e){var S=e(10226),A=Math.max;tt.exports=function(t){return A(0,S(t))}}),39395:(function(tt,G,e){var S=e(52359),A=e(69746),t=Function.prototype.bind,E=Function.prototype.call,w=Object.keys,p=Object.prototype.propertyIsEnumerable;tt.exports=function(c,i){return function(r,o){var a,s=arguments[2],n=arguments[3];return r=Object(A(r)),S(o),a=w(r),n&&a.sort(typeof n=="function"?t.call(n,r):void 0),typeof c!="function"&&(c=a[c]),E.call(c,a,function(m,x){return p.call(r,m)?E.call(o,s,r[m],m,r,x):i})}}}),1920:(function(tt,G,e){tt.exports=e(41271)()?Object.assign:e(26399)}),41271:(function(tt){tt.exports=function(){var G=Object.assign,e;return typeof G=="function"?(e={foo:"raz"},G(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy"):!1}}),26399:(function(tt,G,e){var S=e(36353),A=e(69746),t=Math.max;tt.exports=function(E,w){var p,c,i=t(arguments.length,2),r;for(E=Object(A(E)),r=function(o){try{E[o]=w[o]}catch(a){p||(p=a)}},c=1;c-1}}),48488:(function(tt){var G=Object.prototype.toString,e=G.call("");tt.exports=function(S){return typeof S=="string"||S&&typeof S=="object"&&(S instanceof String||G.call(S)===e)||!1}}),43497:(function(tt){var G=Object.create(null),e=Math.random;tt.exports=function(){var S;do S=e().toString(36).slice(2);while(G[S]);return S}}),71343:(function(tt,G,e){var S=e(22834),A=e(2338),t=e(91819),E=e(63008),w=e(85490),p=Object.defineProperty,c=tt.exports=function(i,r){if(!(this instanceof c))throw TypeError("Constructor requires 'new'");w.call(this,i),r=r?A.call(r,"key+value")?"key+value":A.call(r,"key")?"key":"value":"value",p(this,"__kind__",t("",r))};S&&S(c,w),delete c.prototype.constructor,c.prototype=Object.create(w.prototype,{_resolve:t(function(i){return this.__kind__==="value"?this.__list__[i]:this.__kind__==="key+value"?[i,this.__list__[i]]:i})}),p(c.prototype,E.toStringTag,t("c","Array Iterator"))}),58755:(function(tt,G,e){var S=e(82262),A=e(52359),t=e(48488),E=e(34494),w=Array.isArray,p=Function.prototype.call,c=Array.prototype.some;tt.exports=function(i,r){var o,a=arguments[2],s,n,m,x,f,v,l;if(w(i)||S(i)?o="array":t(i)?o="string":i=E(i),A(r),n=function(){m=!0},o==="array"){c.call(i,function(h){return p.call(r,a,h,n),m});return}if(o==="string"){for(f=i.length,x=0;x=55296&&l<=56319&&(v+=i[++x])),p.call(r,a,v,n),!m);++x);return}for(s=i.next();!s.done;){if(p.call(r,a,s.value,n),m)return;s=i.next()}}}),34494:(function(tt,G,e){var S=e(82262),A=e(48488),t=e(71343),E=e(23417),w=e(82831),p=e(63008).iterator;tt.exports=function(c){return typeof w(c)[p]=="function"?c[p]():S(c)?new t(c):A(c)?new E(c):new t(c)}}),85490:(function(tt,G,e){var S=e(91445),A=e(1920),t=e(52359),E=e(69746),w=e(91819),p=e(84510),c=e(63008),i=Object.defineProperty,r=Object.defineProperties,o;tt.exports=o=function(a,s){if(!(this instanceof o))throw TypeError("Constructor requires 'new'");r(this,{__list__:w("w",E(a)),__context__:w("w",s),__nextIndex__:w("w",0)}),s&&(t(s.on),s.on("_add",this._onAdd),s.on("_delete",this._onDelete),s.on("_clear",this._onClear))},delete o.prototype.constructor,r(o.prototype,A({_next:w(function(){var a;if(this.__list__){if(this.__redo__&&(a=this.__redo__.shift(),a!==void 0))return a;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){i(this,"__redo__",w("c",[a]));return}this.__redo__.forEach(function(s,n){s>=a&&(this.__redo__[n]=++s)},this),this.__redo__.push(a)}}),_onDelete:w(function(a){var s;a>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(s=this.__redo__.indexOf(a),s!==-1&&this.__redo__.splice(s,1),this.__redo__.forEach(function(n,m){n>a&&(this.__redo__[m]=--n)},this)))}),_onClear:w(function(){this.__redo__&&S.call(this.__redo__),this.__nextIndex__=0})}))),i(o.prototype,c.iterator,w(function(){return this}))}),50567:(function(tt,G,e){var S=e(82262),A=e(1974),t=e(48488),E=e(63008).iterator,w=Array.isArray;tt.exports=function(p){return A(p)?w(p)||t(p)||S(p)?!0:typeof p[E]=="function":!1}}),23417:(function(tt,G,e){var S=e(22834),A=e(91819),t=e(63008),E=e(85490),w=Object.defineProperty,p=tt.exports=function(c){if(!(this instanceof p))throw TypeError("Constructor requires 'new'");c=String(c),E.call(this,c),w(this,"__length__",A("",c.length))};S&&S(p,E),delete p.prototype.constructor,p.prototype=Object.create(E.prototype,{_next:A(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?i+this.__list__[this.__nextIndex__++]:i)})}),w(p.prototype,t.toStringTag,A("c","String Iterator"))}),82831:(function(tt,G,e){var S=e(50567);tt.exports=function(A){if(!S(A))throw TypeError(A+" is not iterable");return A}}),63008:(function(tt,G,e){tt.exports=e(25143)()?e(64725).Symbol:e(81905)}),25143:(function(tt,G,e){var S=e(64725),A={object:!0,symbol:!0};tt.exports=function(){var t=S.Symbol;return!(typeof t!="function"||(t("test symbol"),!A[typeof t.iterator])||!A[typeof t.toPrimitive]||!A[typeof t.toStringTag])}}),41707:(function(tt){tt.exports=function(G){return G?typeof G=="symbol"?!0:!G.constructor||G.constructor.name!=="Symbol"?!1:G[G.constructor.toStringTag]==="Symbol":!1}}),74009:(function(tt,G,e){var S=e(91819),A=Object.create,t=Object.defineProperty,E=Object.prototype,w=A(null);tt.exports=function(p){for(var c=0,i,r;w[p+(c||"")];)++c;return p+=c||"",w[p]=!0,i="@@"+p,t(E,i,S.gs(null,function(o){r||(r=(r=!0,t(this,i,S(o)),!1))})),i}}),40313:(function(tt,G,e){var S=e(91819),A=e(64725).Symbol;tt.exports=function(t){return Object.defineProperties(t,{hasInstance:S("",A&&A.hasInstance||t("hasInstance")),isConcatSpreadable:S("",A&&A.isConcatSpreadable||t("isConcatSpreadable")),iterator:S("",A&&A.iterator||t("iterator")),match:S("",A&&A.match||t("match")),replace:S("",A&&A.replace||t("replace")),search:S("",A&&A.search||t("search")),species:S("",A&&A.species||t("species")),split:S("",A&&A.split||t("split")),toPrimitive:S("",A&&A.toPrimitive||t("toPrimitive")),toStringTag:S("",A&&A.toStringTag||t("toStringTag")),unscopables:S("",A&&A.unscopables||t("unscopables"))})}}),21290:(function(tt,G,e){var S=e(91819),A=e(91765),t=Object.create(null);tt.exports=function(E){return Object.defineProperties(E,{for:S(function(w){return t[w]?t[w]:t[w]=E(String(w))}),keyFor:S(function(w){for(var p in A(w),t)if(t[p]===w)return p})})}}),81905:(function(tt,G,e){var S=e(91819),A=e(91765),t=e(64725).Symbol,E=e(74009),w=e(40313),p=e(21290),c=Object.create,i=Object.defineProperties,r=Object.defineProperty,o,a,s;if(typeof t=="function")try{String(t()),s=!0}catch{}else t=null;a=function(n){if(this instanceof a)throw TypeError("Symbol is not a constructor");return o(n)},tt.exports=o=function n(m){var x;if(this instanceof n)throw TypeError("Symbol is not a constructor");return s?t(m):(x=c(a.prototype),m=m===void 0?"":String(m),i(x,{__description__:S("",m),__name__:S("",E(m))}))},w(o),p(o),i(a.prototype,{constructor:S(o),toString:S("",function(){return this.__name__})}),i(o.prototype,{toString:S(function(){return"Symbol ("+A(this).__description__+")"}),valueOf:S(function(){return A(this)})}),r(o.prototype,o.toPrimitive,S("",function(){var n=A(this);return typeof n=="symbol"?n:n.toString()})),r(o.prototype,o.toStringTag,S("c","Symbol")),r(a.prototype,o.toStringTag,S("c",o.prototype[o.toStringTag])),r(a.prototype,o.toPrimitive,S("c",o.prototype[o.toPrimitive]))}),91765:(function(tt,G,e){var S=e(41707);tt.exports=function(A){if(!S(A))throw TypeError(A+" is not a symbol");return A}}),93103:(function(tt,G,e){tt.exports=e(22742)()?WeakMap:e(21780)}),22742:(function(tt){tt.exports=function(){var G,e;if(typeof WeakMap!="function")return!1;try{G=new WeakMap([[e={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(G)!=="[object WeakMap]"||typeof G.set!="function"||G.set({},1)!==G||typeof G.delete!="function"||typeof G.has!="function"||G.get(e)!=="one")}}),81810:(function(tt){tt.exports=(function(){return typeof WeakMap=="function"?Object.prototype.toString.call(new WeakMap)==="[object WeakMap]":!1})()}),21780:(function(tt,G,e){var S=e(1974),A=e(22834),t=e(11004),E=e(69746),w=e(43497),p=e(91819),c=e(34494),i=e(58755),r=e(63008).toStringTag,o=e(81810),a=Array.isArray,s=Object.defineProperty,n=Object.prototype.hasOwnProperty,m=Object.getPrototypeOf,x;tt.exports=x=function(){var f=arguments[0],v;if(!(this instanceof x))throw TypeError("Constructor requires 'new'");return v=o&&A&&WeakMap!==x?A(new WeakMap,m(this)):this,S(f)&&(a(f)||(f=c(f))),s(v,"__weakMapData__",p("c","$weakMap$"+w())),f&&i(f,function(l){E(l),v.set(l[0],l[1])}),v},o&&(A&&A(x,WeakMap),x.prototype=Object.create(WeakMap.prototype,{constructor:p(x)})),Object.defineProperties(x.prototype,{delete:p(function(f){return n.call(t(f),this.__weakMapData__)?(delete f[this.__weakMapData__],!0):!1}),get:p(function(f){if(n.call(t(f),this.__weakMapData__))return f[this.__weakMapData__]}),has:p(function(f){return n.call(t(f),this.__weakMapData__)}),set:p(function(f,v){return s(t(f),this.__weakMapData__,p("c",v)),this}),toString:p(function(){return"[object WeakMap]"})}),s(x.prototype,r,p("c","WeakMap"))}),7683:(function(tt){var G=typeof Reflect=="object"?Reflect:null,e=G&&typeof G.apply=="function"?G.apply:function(h,d,b){return Function.prototype.apply.call(h,d,b)},S=G&&typeof G.ownKeys=="function"?G.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};function A(h){console&&console.warn&&console.warn(h)}var t=Number.isNaN||function(h){return h!==h};function E(){E.init.call(this)}tt.exports=E,tt.exports.once=f,E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0;var w=10;function p(h){if(typeof h!="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return w},set:function(h){if(typeof h!="number"||h<0||t(h))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+h+".");w=h}}),E.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=function(h){if(typeof h!="number"||h<0||t(h))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+h+".");return this._maxListeners=h,this};function c(h){return h._maxListeners===void 0?E.defaultMaxListeners:h._maxListeners}E.prototype.getMaxListeners=function(){return c(this)},E.prototype.emit=function(h){for(var d=[],b=1;b0&&(k=d[0]),k instanceof Error)throw k;var L=Error("Unhandled error."+(k?" ("+k.message+")":""));throw L.context=k,L}var u=g[h];if(u===void 0)return!1;if(typeof u=="function")e(u,this,d);else for(var T=u.length,C=n(u,T),b=0;b0&&L.length>g&&!L.warned){L.warned=!0;var u=Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(d)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=h,u.type=d,u.count=L.length,A(u)}return h}E.prototype.addListener=function(h,d){return i(this,h,d,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(h,d){return i(this,h,d,!0)};function r(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function o(h,d,b){var M={fired:!1,wrapFn:void 0,target:h,type:d,listener:b},g=r.bind(M);return g.listener=b,M.wrapFn=g,g}E.prototype.once=function(h,d){return p(d),this.on(h,o(this,h,d)),this},E.prototype.prependOnceListener=function(h,d){return p(d),this.prependListener(h,o(this,h,d)),this},E.prototype.removeListener=function(h,d){var b,M,g,k,L;if(p(d),M=this._events,M===void 0||(b=M[h],b===void 0))return this;if(b===d||b.listener===d)--this._eventsCount===0?this._events=Object.create(null):(delete M[h],M.removeListener&&this.emit("removeListener",h,b.listener||d));else if(typeof b!="function"){for(g=-1,k=b.length-1;k>=0;k--)if(b[k]===d||b[k].listener===d){L=b[k].listener,g=k;break}if(g<0)return this;g===0?b.shift():m(b,g),b.length===1&&(M[h]=b[0]),M.removeListener!==void 0&&this.emit("removeListener",h,L||d)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(h){var d,b=this._events,M;if(b===void 0)return this;if(b.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):b[h]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete b[h]),this;if(arguments.length===0){var g=Object.keys(b),k;for(M=0;M=0;M--)this.removeListener(h,d[M]);return this};function a(h,d,b){var M=h._events;if(M===void 0)return[];var g=M[d];return g===void 0?[]:typeof g=="function"?b?[g.listener||g]:[g]:b?x(g):n(g,g.length)}E.prototype.listeners=function(h){return a(this,h,!0)},E.prototype.rawListeners=function(h){return a(this,h,!1)},E.listenerCount=function(h,d){return typeof h.listenerCount=="function"?h.listenerCount(d):s.call(h,d)},E.prototype.listenerCount=s;function s(h){var d=this._events;if(d!==void 0){var b=d[h];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}E.prototype.eventNames=function(){return this._eventsCount>0?S(this._events):[]};function n(h,d){for(var b=Array(d),M=0;Mw[0]-i[0]/2&&(m=i[0]/2,x+=i[1]);return p}}),12673:(function(tt){tt.exports=G,G.canvas=document.createElement("canvas"),G.cache={};function G(i,E){E||(E={}),(typeof i=="string"||Array.isArray(i))&&(E.family=i);var w=Array.isArray(E.family)?E.family.join(", "):E.family;if(!w)throw Error("`family` must be defined");var p=E.size||E.fontSize||E.em||48,c=E.weight||E.fontWeight||"",i=[E.style||E.fontStyle||"",c,p].join(" ")+"px "+w,r=E.origin||"top";if(G.cache[w]&&p<=G.cache[w].em)return e(G.cache[w],r);var o=E.canvas||G.canvas,a=o.getContext("2d"),s={upper:E.upper===void 0?"H":E.upper,lower:E.lower===void 0?"x":E.lower,descent:E.descent===void 0?"p":E.descent,ascent:E.ascent===void 0?"h":E.ascent,tittle:E.tittle===void 0?"i":E.tittle,overshoot:E.overshoot===void 0?"O":E.overshoot},n=Math.ceil(p*1.5);o.height=n,o.width=n*.5,a.font=i;var m="H",x={top:0};a.clearRect(0,0,n,n),a.textBaseline="top",a.fillStyle="black",a.fillText(m,0,0);var f=S(a.getImageData(0,0,n,n));a.clearRect(0,0,n,n),a.textBaseline="bottom",a.fillText(m,0,n),x.lineHeight=x.bottom=n-S(a.getImageData(0,0,n,n))+f,a.clearRect(0,0,n,n),a.textBaseline="alphabetic",a.fillText(m,0,n);var v=n-S(a.getImageData(0,0,n,n))-1+f;for(var l in x.baseline=x.alphabetic=v,a.clearRect(0,0,n,n),a.textBaseline="middle",a.fillText(m,0,n*.5),x.median=x.middle=n-S(a.getImageData(0,0,n,n))-1+f-n*.5,a.clearRect(0,0,n,n),a.textBaseline="hanging",a.fillText(m,0,n*.5),x.hanging=n-S(a.getImageData(0,0,n,n))-1+f-n*.5,a.clearRect(0,0,n,n),a.textBaseline="ideographic",a.fillText(m,0,n),x.ideographic=n-S(a.getImageData(0,0,n,n))-1+f,s.upper&&(a.clearRect(0,0,n,n),a.textBaseline="top",a.fillText(s.upper,0,0),x.upper=S(a.getImageData(0,0,n,n)),x.capHeight=x.baseline-x.upper),s.lower&&(a.clearRect(0,0,n,n),a.textBaseline="top",a.fillText(s.lower,0,0),x.lower=S(a.getImageData(0,0,n,n)),x.xHeight=x.baseline-x.lower),s.tittle&&(a.clearRect(0,0,n,n),a.textBaseline="top",a.fillText(s.tittle,0,0),x.tittle=S(a.getImageData(0,0,n,n))),s.ascent&&(a.clearRect(0,0,n,n),a.textBaseline="top",a.fillText(s.ascent,0,0),x.ascent=S(a.getImageData(0,0,n,n))),s.descent&&(a.clearRect(0,0,n,n),a.textBaseline="top",a.fillText(s.descent,0,0),x.descent=A(a.getImageData(0,0,n,n))),s.overshoot&&(a.clearRect(0,0,n,n),a.textBaseline="top",a.fillText(s.overshoot,0,0),x.overshoot=A(a.getImageData(0,0,n,n))-v),x)x[l]/=p;return x.em=p,G.cache[w]=x,e(x,r)}function e(t,E){var w={};for(var p in typeof E=="string"&&(E=t[E]),t)p!=="em"&&(w[p]=t[p]-E);return w}function S(t){for(var E=t.height,w=t.data,p=3;p0;p-=4)if(w[p]!==0)return Math.floor((p-3)*.25/E)}}),61262:(function(tt,G,e){var S=e(82756),A=Object.prototype.toString,t=Object.prototype.hasOwnProperty,E=function(c,i,r){for(var o=0,a=c.length;o=3&&(o=r),A.call(c)==="[object Array]"?E(c,i,o):typeof c=="string"?w(c,i,o):p(c,i,o)}}),31917:(function(tt){var G="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,S=Math.max,A="[object Function]",t=function(p,c){for(var i=[],r=0;r"u"&&!S.canvas)return null;var A=S.canvas||document.createElement("canvas");typeof S.width=="number"&&(A.width=S.width),typeof S.height=="number"&&(A.height=S.height);var t=S,E;try{var w=[e];e.indexOf("webgl")===0&&w.push("experimental-"+e);for(var p=0;p"u"||!f?S:f(Uint8Array),h={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?S:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?S:ArrayBuffer,"%ArrayIteratorPrototype%":m&&f?f([][Symbol.iterator]()):S,"%AsyncFromSyncIteratorPrototype%":S,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?S:Atomics,"%BigInt%":typeof BigInt>"u"?S:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?S:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?S:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?S:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":A,"%eval%":eval,"%EvalError%":t,"%Float32Array%":typeof Float32Array>"u"?S:Float32Array,"%Float64Array%":typeof Float64Array>"u"?S:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?S:FinalizationRegistry,"%Function%":r,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?S:Int8Array,"%Int16Array%":typeof Int16Array>"u"?S:Int16Array,"%Int32Array%":typeof Int32Array>"u"?S:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&f?f(f([][Symbol.iterator]())):S,"%JSON%":typeof JSON=="object"?JSON:S,"%Map%":typeof Map>"u"?S:Map,"%MapIteratorPrototype%":typeof Map>"u"||!m||!f?S:f(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?S:Promise,"%Proxy%":typeof Proxy>"u"?S:Proxy,"%RangeError%":E,"%ReferenceError%":w,"%Reflect%":typeof Reflect>"u"?S:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?S:Set,"%SetIteratorPrototype%":typeof Set>"u"||!m||!f?S:f(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?S:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&f?f(""[Symbol.iterator]()):S,"%Symbol%":m?Symbol:S,"%SyntaxError%":p,"%ThrowTypeError%":n,"%TypedArray%":l,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?S:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?S:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?S:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?S:Uint32Array,"%URIError%":i,"%WeakMap%":typeof WeakMap>"u"?S:WeakMap,"%WeakRef%":typeof WeakRef>"u"?S:WeakRef,"%WeakSet%":typeof WeakSet>"u"?S:WeakSet};if(f)try{null.error}catch(B){h["%Error.prototype%"]=f(f(B))}var d=function B(U){var P;if(U==="%AsyncFunction%")P=o("async function () {}");else if(U==="%GeneratorFunction%")P=o("function* () {}");else if(U==="%AsyncGeneratorFunction%")P=o("async function* () {}");else if(U==="%AsyncGenerator%"){var N=B("%AsyncGeneratorFunction%");N&&(P=N.prototype)}else if(U==="%AsyncIteratorPrototype%"){var V=B("%AsyncGenerator%");V&&f&&(P=f(V.prototype))}return h[U]=P,P},b={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=e(87547),g=e(80753),k=M.call(Function.call,Array.prototype.concat),L=M.call(Function.apply,Array.prototype.splice),u=M.call(Function.call,String.prototype.replace),T=M.call(Function.call,String.prototype.slice),C=M.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,O=function(B){var U=T(B,0,1),P=T(B,-1);if(U==="%"&&P!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(P==="%"&&U!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var N=[];return u(B,_,function(V,Y,K,nt){N[N.length]=K?u(nt,F,"$1"):Y||V}),N},j=function(B,U){var P=B,N;if(g(b,P)&&(N=b[P],P="%"+N[0]+"%"),g(h,P)){var V=h[P];if(V===v&&(V=d(P)),V===void 0&&!U)throw new c("intrinsic "+B+" exists, but is not available. Please file an issue!");return{alias:N,name:P,value:V}}throw new p("intrinsic "+B+" does not exist!")};tt.exports=function(B,U){if(typeof B!="string"||B.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof U!="boolean")throw new c('"allowMissing" argument must be a boolean');if(C(/^%?[^%]*%?$/,B)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=O(B),N=P.length>0?P[0]:"",V=j("%"+N+"%",U),Y=V.name,K=V.value,nt=!1,ft=V.alias;ft&&(N=ft[0],L(P,k([0,1],ft)));for(var ct=1,J=!0;ct=P.length){var st=a(K,et);J=!!st,K=J&&"get"in st&&!("originalValue"in st.get)?st.get:K[et]}else J=g(K,et),K=K[et];J&&!nt&&(h[Y]=K)}}return K}}),84840:(function(tt){tt.exports=G;function G(e,S){var A=S[0],t=S[1],E=S[2],w=S[3],p=S[4],c=S[5],i=S[6],r=S[7],o=S[8],a=S[9],s=S[10],n=S[11],m=S[12],x=S[13],f=S[14],v=S[15];return e[0]=c*(s*v-n*f)-a*(i*v-r*f)+x*(i*n-r*s),e[1]=-(t*(s*v-n*f)-a*(E*v-w*f)+x*(E*n-w*s)),e[2]=t*(i*v-r*f)-c*(E*v-w*f)+x*(E*r-w*i),e[3]=-(t*(i*n-r*s)-c*(E*n-w*s)+a*(E*r-w*i)),e[4]=-(p*(s*v-n*f)-o*(i*v-r*f)+m*(i*n-r*s)),e[5]=A*(s*v-n*f)-o*(E*v-w*f)+m*(E*n-w*s),e[6]=-(A*(i*v-r*f)-p*(E*v-w*f)+m*(E*r-w*i)),e[7]=A*(i*n-r*s)-p*(E*n-w*s)+o*(E*r-w*i),e[8]=p*(a*v-n*x)-o*(c*v-r*x)+m*(c*n-r*a),e[9]=-(A*(a*v-n*x)-o*(t*v-w*x)+m*(t*n-w*a)),e[10]=A*(c*v-r*x)-p*(t*v-w*x)+m*(t*r-w*c),e[11]=-(A*(c*n-r*a)-p*(t*n-w*a)+o*(t*r-w*c)),e[12]=-(p*(a*f-s*x)-o*(c*f-i*x)+m*(c*s-i*a)),e[13]=A*(a*f-s*x)-o*(t*f-E*x)+m*(t*s-E*a),e[14]=-(A*(c*f-i*x)-p*(t*f-E*x)+m*(t*i-E*c)),e[15]=A*(c*s-i*a)-p*(t*s-E*a)+o*(t*i-E*c),e}}),99698:(function(tt){tt.exports=G;function G(e){var S=new Float32Array(16);return S[0]=e[0],S[1]=e[1],S[2]=e[2],S[3]=e[3],S[4]=e[4],S[5]=e[5],S[6]=e[6],S[7]=e[7],S[8]=e[8],S[9]=e[9],S[10]=e[10],S[11]=e[11],S[12]=e[12],S[13]=e[13],S[14]=e[14],S[15]=e[15],S}}),57938:(function(tt){tt.exports=G;function G(e,S){return e[0]=S[0],e[1]=S[1],e[2]=S[2],e[3]=S[3],e[4]=S[4],e[5]=S[5],e[6]=S[6],e[7]=S[7],e[8]=S[8],e[9]=S[9],e[10]=S[10],e[11]=S[11],e[12]=S[12],e[13]=S[13],e[14]=S[14],e[15]=S[15],e}}),87519:(function(tt){tt.exports=G;function G(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),6900:(function(tt){tt.exports=G;function G(e){var S=e[0],A=e[1],t=e[2],E=e[3],w=e[4],p=e[5],c=e[6],i=e[7],r=e[8],o=e[9],a=e[10],s=e[11],n=e[12],m=e[13],x=e[14],f=e[15],v=S*p-A*w,l=S*c-t*w,h=S*i-E*w,d=A*c-t*p,b=A*i-E*p,M=t*i-E*c,g=r*m-o*n,k=r*x-a*n,L=r*f-s*n,u=o*x-a*m,T=o*f-s*m;return v*(a*f-s*x)-l*T+h*u+d*L-b*k+M*g}}),36472:(function(tt){tt.exports=G;function G(e,S){var A=S[0],t=S[1],E=S[2],w=S[3],p=A+A,c=t+t,i=E+E,r=A*p,o=t*p,a=t*c,s=E*p,n=E*c,m=E*i,x=w*p,f=w*c,v=w*i;return e[0]=1-a-m,e[1]=o+v,e[2]=s-f,e[3]=0,e[4]=o-v,e[5]=1-r-m,e[6]=n+x,e[7]=0,e[8]=s+f,e[9]=n-x,e[10]=1-r-a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),43061:(function(tt){tt.exports=G;function G(e,S,A){var t,E,w,p=A[0],c=A[1],i=A[2],r=Math.sqrt(p*p+c*c+i*i);return Math.abs(r)<1e-6?null:(r=1/r,p*=r,c*=r,i*=r,t=Math.sin(S),E=Math.cos(S),w=1-E,e[0]=p*p*w+E,e[1]=c*p*w+i*t,e[2]=i*p*w-c*t,e[3]=0,e[4]=p*c*w-i*t,e[5]=c*c*w+E,e[6]=i*c*w+p*t,e[7]=0,e[8]=p*i*w+c*t,e[9]=c*i*w-p*t,e[10]=i*i*w+E,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}}),33606:(function(tt){tt.exports=G;function G(e,S,A){var t=S[0],E=S[1],w=S[2],p=S[3],c=t+t,i=E+E,r=w+w,o=t*c,a=t*i,s=t*r,n=E*i,m=E*r,x=w*r,f=p*c,v=p*i,l=p*r;return e[0]=1-(n+x),e[1]=a+l,e[2]=s-v,e[3]=0,e[4]=a-l,e[5]=1-(o+x),e[6]=m+f,e[7]=0,e[8]=s+v,e[9]=m-f,e[10]=1-(o+n),e[11]=0,e[12]=A[0],e[13]=A[1],e[14]=A[2],e[15]=1,e}}),98698:(function(tt){tt.exports=G;function G(e,S){return e[0]=S[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=S[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=S[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),6924:(function(tt){tt.exports=G;function G(e,S){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=S[0],e[13]=S[1],e[14]=S[2],e[15]=1,e}}),81181:(function(tt){tt.exports=G;function G(e,S){var A=Math.sin(S),t=Math.cos(S);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t,e[6]=A,e[7]=0,e[8]=0,e[9]=-A,e[10]=t,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),95258:(function(tt){tt.exports=G;function G(e,S){var A=Math.sin(S),t=Math.cos(S);return e[0]=t,e[1]=0,e[2]=-A,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=A,e[9]=0,e[10]=t,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),94815:(function(tt){tt.exports=G;function G(e,S){var A=Math.sin(S),t=Math.cos(S);return e[0]=t,e[1]=A,e[2]=0,e[3]=0,e[4]=-A,e[5]=t,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),87301:(function(tt){tt.exports=G;function G(e,S,A,t,E,w,p){var c=1/(A-S),i=1/(E-t),r=1/(w-p);return e[0]=w*2*c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=w*2*i,e[6]=0,e[7]=0,e[8]=(A+S)*c,e[9]=(E+t)*i,e[10]=(p+w)*r,e[11]=-1,e[12]=0,e[13]=0,e[14]=p*w*2*r,e[15]=0,e}}),87193:(function(tt){tt.exports=G;function G(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}}),11191:(function(tt,G,e){tt.exports={create:e(87519),clone:e(99698),copy:e(57938),identity:e(87193),transpose:e(10256),invert:e(96559),adjoint:e(84840),determinant:e(6900),multiply:e(14787),translate:e(4165),scale:e(8697),rotate:e(32416),rotateX:e(81066),rotateY:e(54201),rotateZ:e(33920),fromRotation:e(43061),fromRotationTranslation:e(33606),fromScaling:e(98698),fromTranslation:e(6924),fromXRotation:e(81181),fromYRotation:e(95258),fromZRotation:e(94815),fromQuat:e(36472),frustum:e(87301),perspective:e(5313),perspectiveFromFieldOfView:e(22253),ortho:e(4633),lookAt:e(26645),str:e(66992)}}),96559:(function(tt){tt.exports=G;function G(e,S){var A=S[0],t=S[1],E=S[2],w=S[3],p=S[4],c=S[5],i=S[6],r=S[7],o=S[8],a=S[9],s=S[10],n=S[11],m=S[12],x=S[13],f=S[14],v=S[15],l=A*c-t*p,h=A*i-E*p,d=A*r-w*p,b=t*i-E*c,M=t*r-w*c,g=E*r-w*i,k=o*x-a*m,L=o*f-s*m,u=o*v-n*m,T=a*f-s*x,C=a*v-n*x,_=s*v-n*f,F=l*_-h*C+d*T+b*u-M*L+g*k;return F?(F=1/F,e[0]=(c*_-i*C+r*T)*F,e[1]=(E*C-t*_-w*T)*F,e[2]=(x*g-f*M+v*b)*F,e[3]=(s*M-a*g-n*b)*F,e[4]=(i*u-p*_-r*L)*F,e[5]=(A*_-E*u+w*L)*F,e[6]=(f*d-m*g-v*h)*F,e[7]=(o*g-s*d+n*h)*F,e[8]=(p*C-c*u+r*k)*F,e[9]=(t*u-A*C-w*k)*F,e[10]=(m*M-x*d+v*l)*F,e[11]=(a*d-o*M-n*l)*F,e[12]=(c*L-p*T-i*k)*F,e[13]=(A*T-t*L+E*k)*F,e[14]=(x*h-m*b-f*l)*F,e[15]=(o*b-a*h+s*l)*F,e):null}}),26645:(function(tt,G,e){var S=e(87193);tt.exports=A;function A(t,E,w,p){var c,i,r,o,a,s,n,m,x,f,v=E[0],l=E[1],h=E[2],d=p[0],b=p[1],M=p[2],g=w[0],k=w[1],L=w[2];return Math.abs(v-g)<1e-6&&Math.abs(l-k)<1e-6&&Math.abs(h-L)<1e-6?S(t):(n=v-g,m=l-k,x=h-L,f=1/Math.sqrt(n*n+m*m+x*x),n*=f,m*=f,x*=f,c=b*x-M*m,i=M*n-d*x,r=d*m-b*n,f=Math.sqrt(c*c+i*i+r*r),f?(f=1/f,c*=f,i*=f,r*=f):(c=0,i=0,r=0),o=m*r-x*i,a=x*c-n*r,s=n*i-m*c,f=Math.sqrt(o*o+a*a+s*s),f?(f=1/f,o*=f,a*=f,s*=f):(o=0,a=0,s=0),t[0]=c,t[1]=o,t[2]=n,t[3]=0,t[4]=i,t[5]=a,t[6]=m,t[7]=0,t[8]=r,t[9]=s,t[10]=x,t[11]=0,t[12]=-(c*v+i*l+r*h),t[13]=-(o*v+a*l+s*h),t[14]=-(n*v+m*l+x*h),t[15]=1,t)}}),14787:(function(tt){tt.exports=G;function G(e,S,A){var t=S[0],E=S[1],w=S[2],p=S[3],c=S[4],i=S[5],r=S[6],o=S[7],a=S[8],s=S[9],n=S[10],m=S[11],x=S[12],f=S[13],v=S[14],l=S[15],h=A[0],d=A[1],b=A[2],M=A[3];return e[0]=h*t+d*c+b*a+M*x,e[1]=h*E+d*i+b*s+M*f,e[2]=h*w+d*r+b*n+M*v,e[3]=h*p+d*o+b*m+M*l,h=A[4],d=A[5],b=A[6],M=A[7],e[4]=h*t+d*c+b*a+M*x,e[5]=h*E+d*i+b*s+M*f,e[6]=h*w+d*r+b*n+M*v,e[7]=h*p+d*o+b*m+M*l,h=A[8],d=A[9],b=A[10],M=A[11],e[8]=h*t+d*c+b*a+M*x,e[9]=h*E+d*i+b*s+M*f,e[10]=h*w+d*r+b*n+M*v,e[11]=h*p+d*o+b*m+M*l,h=A[12],d=A[13],b=A[14],M=A[15],e[12]=h*t+d*c+b*a+M*x,e[13]=h*E+d*i+b*s+M*f,e[14]=h*w+d*r+b*n+M*v,e[15]=h*p+d*o+b*m+M*l,e}}),4633:(function(tt){tt.exports=G;function G(e,S,A,t,E,w,p){var c=1/(S-A),i=1/(t-E),r=1/(w-p);return e[0]=-2*c,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*r,e[11]=0,e[12]=(S+A)*c,e[13]=(E+t)*i,e[14]=(p+w)*r,e[15]=1,e}}),5313:(function(tt){tt.exports=G;function G(e,S,A,t,E){var w=1/Math.tan(S/2),p=1/(t-E);return e[0]=w/A,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=w,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(E+t)*p,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*E*t*p,e[15]=0,e}}),22253:(function(tt){tt.exports=G;function G(e,S,A,t){var E=Math.tan(S.upDegrees*Math.PI/180),w=Math.tan(S.downDegrees*Math.PI/180),p=Math.tan(S.leftDegrees*Math.PI/180),c=Math.tan(S.rightDegrees*Math.PI/180),i=2/(p+c),r=2/(E+w);return e[0]=i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=0,e[7]=0,e[8]=-((p-c)*i*.5),e[9]=(E-w)*r*.5,e[10]=t/(A-t),e[11]=-1,e[12]=0,e[13]=0,e[14]=t*A/(A-t),e[15]=0,e}}),32416:(function(tt){tt.exports=G;function G(e,S,A,t){var E=t[0],w=t[1],p=t[2],c=Math.sqrt(E*E+w*w+p*p),i,r,o,a,s,n,m,x,f,v,l,h,d,b,M,g,k,L,u,T,C,_,F,O;return Math.abs(c)<1e-6?null:(c=1/c,E*=c,w*=c,p*=c,i=Math.sin(A),r=Math.cos(A),o=1-r,a=S[0],s=S[1],n=S[2],m=S[3],x=S[4],f=S[5],v=S[6],l=S[7],h=S[8],d=S[9],b=S[10],M=S[11],g=E*E*o+r,k=w*E*o+p*i,L=p*E*o-w*i,u=E*w*o-p*i,T=w*w*o+r,C=p*w*o+E*i,_=E*p*o+w*i,F=w*p*o-E*i,O=p*p*o+r,e[0]=a*g+x*k+h*L,e[1]=s*g+f*k+d*L,e[2]=n*g+v*k+b*L,e[3]=m*g+l*k+M*L,e[4]=a*u+x*T+h*C,e[5]=s*u+f*T+d*C,e[6]=n*u+v*T+b*C,e[7]=m*u+l*T+M*C,e[8]=a*_+x*F+h*O,e[9]=s*_+f*F+d*O,e[10]=n*_+v*F+b*O,e[11]=m*_+l*F+M*O,S!==e&&(e[12]=S[12],e[13]=S[13],e[14]=S[14],e[15]=S[15]),e)}}),81066:(function(tt){tt.exports=G;function G(e,S,A){var t=Math.sin(A),E=Math.cos(A),w=S[4],p=S[5],c=S[6],i=S[7],r=S[8],o=S[9],a=S[10],s=S[11];return S!==e&&(e[0]=S[0],e[1]=S[1],e[2]=S[2],e[3]=S[3],e[12]=S[12],e[13]=S[13],e[14]=S[14],e[15]=S[15]),e[4]=w*E+r*t,e[5]=p*E+o*t,e[6]=c*E+a*t,e[7]=i*E+s*t,e[8]=r*E-w*t,e[9]=o*E-p*t,e[10]=a*E-c*t,e[11]=s*E-i*t,e}}),54201:(function(tt){tt.exports=G;function G(e,S,A){var t=Math.sin(A),E=Math.cos(A),w=S[0],p=S[1],c=S[2],i=S[3],r=S[8],o=S[9],a=S[10],s=S[11];return S!==e&&(e[4]=S[4],e[5]=S[5],e[6]=S[6],e[7]=S[7],e[12]=S[12],e[13]=S[13],e[14]=S[14],e[15]=S[15]),e[0]=w*E-r*t,e[1]=p*E-o*t,e[2]=c*E-a*t,e[3]=i*E-s*t,e[8]=w*t+r*E,e[9]=p*t+o*E,e[10]=c*t+a*E,e[11]=i*t+s*E,e}}),33920:(function(tt){tt.exports=G;function G(e,S,A){var t=Math.sin(A),E=Math.cos(A),w=S[0],p=S[1],c=S[2],i=S[3],r=S[4],o=S[5],a=S[6],s=S[7];return S!==e&&(e[8]=S[8],e[9]=S[9],e[10]=S[10],e[11]=S[11],e[12]=S[12],e[13]=S[13],e[14]=S[14],e[15]=S[15]),e[0]=w*E+r*t,e[1]=p*E+o*t,e[2]=c*E+a*t,e[3]=i*E+s*t,e[4]=r*E-w*t,e[5]=o*E-p*t,e[6]=a*E-c*t,e[7]=s*E-i*t,e}}),8697:(function(tt){tt.exports=G;function G(e,S,A){var t=A[0],E=A[1],w=A[2];return e[0]=S[0]*t,e[1]=S[1]*t,e[2]=S[2]*t,e[3]=S[3]*t,e[4]=S[4]*E,e[5]=S[5]*E,e[6]=S[6]*E,e[7]=S[7]*E,e[8]=S[8]*w,e[9]=S[9]*w,e[10]=S[10]*w,e[11]=S[11]*w,e[12]=S[12],e[13]=S[13],e[14]=S[14],e[15]=S[15],e}}),66992:(function(tt){tt.exports=G;function G(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}}),4165:(function(tt){tt.exports=G;function G(e,S,A){var t=A[0],E=A[1],w=A[2],p,c,i,r,o,a,s,n,m,x,f,v;return S===e?(e[12]=S[0]*t+S[4]*E+S[8]*w+S[12],e[13]=S[1]*t+S[5]*E+S[9]*w+S[13],e[14]=S[2]*t+S[6]*E+S[10]*w+S[14],e[15]=S[3]*t+S[7]*E+S[11]*w+S[15]):(p=S[0],c=S[1],i=S[2],r=S[3],o=S[4],a=S[5],s=S[6],n=S[7],m=S[8],x=S[9],f=S[10],v=S[11],e[0]=p,e[1]=c,e[2]=i,e[3]=r,e[4]=o,e[5]=a,e[6]=s,e[7]=n,e[8]=m,e[9]=x,e[10]=f,e[11]=v,e[12]=p*t+o*E+m*w+S[12],e[13]=c*t+a*E+x*w+S[13],e[14]=i*t+s*E+f*w+S[14],e[15]=r*t+n*E+v*w+S[15]),e}}),10256:(function(tt){tt.exports=G;function G(e,S){if(e===S){var A=S[1],t=S[2],E=S[3],w=S[6],p=S[7],c=S[11];e[1]=S[4],e[2]=S[8],e[3]=S[12],e[4]=A,e[6]=S[9],e[7]=S[13],e[8]=t,e[9]=w,e[11]=S[14],e[12]=E,e[13]=p,e[14]=c}else e[0]=S[0],e[1]=S[4],e[2]=S[8],e[3]=S[12],e[4]=S[1],e[5]=S[5],e[6]=S[9],e[7]=S[13],e[8]=S[2],e[9]=S[6],e[10]=S[10],e[11]=S[14],e[12]=S[3],e[13]=S[7],e[14]=S[11],e[15]=S[15];return e}}),74024:(function(tt,G,e){var S=e(59518),A=e(6807),t=e(81330),E=e(38862),w=e(93103),p=e(162),c=e(68950),i=e(66127),r=e(5137),o=e(29388),a=e(4957),s=e(44626),n=e(44431),m=e(27976),x=e(12673),f=e(83473),v=e(54689).nextPow2,l=new w,h=!1;if(document.body){var d=document.body.appendChild(document.createElement("div"));d.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(d).fontStretch&&(h=!0),document.body.removeChild(d)}var b=function(g){M(g)?(g={regl:g},this.gl=g.regl._gl):this.gl=E(g),this.shader=l.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=g.regl||t({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),l.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(o(g)?g:{})};b.prototype.createShader=function(){var g=this.regl;return{regl:g,draw:g({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:g.prop("count"),offset:g.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:g.this("sizeBuffer")},width:{offset:0,stride:8,buffer:g.this("sizeBuffer")},char:g.this("charBuffer"),position:g.this("position")},uniforms:{atlasSize:function(k,L){return[L.atlas.width,L.atlas.height]},atlasDim:function(k,L){return[L.atlas.cols,L.atlas.rows]},atlas:function(k,L){return L.atlas.texture},charStep:function(k,L){return L.atlas.step},em:function(k,L){return L.atlas.em},color:g.prop("color"),opacity:g.prop("opacity"),viewport:g.this("viewportArray"),scale:g.this("scale"),align:g.prop("align"),baseline:g.prop("baseline"),translate:g.this("translate"),positionOffset:g.prop("positionOffset")},primitive:"points",viewport:g.this("viewport"),vert:` + precision highp float; + attribute float width, charOffset, char; + attribute vec2 position; + uniform float fontSize, charStep, em, align, baseline; + uniform vec4 viewport; + uniform vec4 color; + uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset; + varying vec2 charCoord, charId; + varying float charWidth; + varying vec4 fontColor; + void main () { + vec2 offset = floor(em * (vec2(align + charOffset, baseline) + + vec2(positionOffset.x, -positionOffset.y))) + / (viewport.zw * scale.xy); + + vec2 position = (position + translate) * scale; + position += offset * scale; + + charCoord = position * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2. - 1., 0, 1); + + gl_PointSize = charStep; + + charId.x = mod(char, atlasDim.x); + charId.y = floor(char / atlasDim.x); + + charWidth = width * em; + + fontColor = color / 255.; + }`,frag:` + precision highp float; + uniform float fontSize, charStep, opacity; + uniform vec2 atlasSize; + uniform vec4 viewport; + uniform sampler2D atlas; + varying vec4 fontColor; + varying vec2 charCoord, charId; + varying float charWidth; + + float lightness(vec4 color) { + return color.r * 0.299 + color.g * 0.587 + color.b * 0.114; + } + + void main () { + vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5; + float halfCharStep = floor(charStep * .5 + .5); + + // invert y and shift by 1px (FF expecially needs that) + uv.y = charStep - uv.y; + + // ignore points outside of character bounding box + float halfCharWidth = ceil(charWidth * .5); + if (floor(uv.x) > halfCharStep + halfCharWidth || + floor(uv.x) < halfCharStep - halfCharWidth) return; + + uv += charId * charStep; + uv = uv / atlasSize; + + vec4 color = fontColor; + vec4 mask = texture2D(atlas, uv); + + float maskY = lightness(mask); + // float colorY = lightness(color); + color.a *= maskY; + color.a *= opacity; + + // color.a += .1; + + // antialiasing, see yiq color space y-channel formula + // color.rgb += (1. - color.rgb) * (1. - mask.rgb); + + gl_FragColor = color; + }`}),atlas:{}}},b.prototype.update=function(g){var k=this;if(typeof g=="string")g={text:g};else if(!g)return;g=A(g,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),g.opacity!=null&&(Array.isArray(g.opacity)?this.opacity=g.opacity.map(function(Gt){return parseFloat(Gt)}):this.opacity=parseFloat(g.opacity)),g.viewport!=null&&(this.viewport=r(g.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport??(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),g.kerning!=null&&(this.kerning=g.kerning),g.offset!=null&&(typeof g.offset=="number"&&(g.offset=[g.offset,0]),this.positionOffset=f(g.offset)),g.direction&&(this.direction=g.direction),g.range&&(this.range=g.range,this.scale=[1/(g.range[2]-g.range[0]),1/(g.range[3]-g.range[1])],this.translate=[-g.range[0],-g.range[1]]),g.scale&&(this.scale=g.scale),g.translate&&(this.translate=g.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!g.font&&(g.font=b.baseFontSize+"px sans-serif");var L=!1,u=!1;if(g.font&&(Array.isArray(g.font)?g.font:[g.font]).forEach(function(Gt,Et){if(typeof Gt=="string")try{Gt=S.parse(Gt)}catch{Gt=S.parse(b.baseFontSize+"px "+Gt)}else{var At=Gt.style,qt=Gt.weight,jt=Gt.stretch,de=Gt.variant;Gt=S.parse(S.stringify(Gt)),At&&(Gt.style=At),qt&&(Gt.weight=qt),jt&&(Gt.stretch=jt),de&&(Gt.variant=de)}var Xt=S.stringify({size:b.baseFontSize,family:Gt.family,stretch:h?Gt.stretch:void 0,variant:Gt.variant,weight:Gt.weight,style:Gt.style}),ye=a(Gt.size),Le=Math.round(ye[0]*s(ye[1]));if(Le!==k.fontSize[Et]&&(u=!0,k.fontSize[Et]=Le),(!k.font[Et]||Xt!=k.font[Et].baseString)&&(L=!0,k.font[Et]=b.fonts[Xt],!k.font[Et])){var ve=Gt.family.join(", "),ke=[Gt.style];Gt.style!=Gt.variant&&ke.push(Gt.variant),Gt.variant!=Gt.weight&&ke.push(Gt.weight),h&&Gt.weight!=Gt.stretch&&ke.push(Gt.stretch),k.font[Et]={baseString:Xt,family:ve,weight:Gt.weight,stretch:Gt.stretch,style:Gt.style,variant:Gt.variant,width:{},kerning:{},metrics:x(ve,{origin:"top",fontSize:b.baseFontSize,fontStyle:ke.join(" ")})},b.fonts[Xt]=k.font[Et]}}),(L||u)&&this.font.forEach(function(Gt,Et){var At=S.stringify({size:k.fontSize[Et],family:Gt.family,stretch:h?Gt.stretch:void 0,variant:Gt.variant,weight:Gt.weight,style:Gt.style});if(k.fontAtlas[Et]=k.shader.atlas[At],!k.fontAtlas[Et]){var qt=Gt.metrics;k.shader.atlas[At]=k.fontAtlas[Et]={fontString:At,step:Math.ceil(k.fontSize[Et]*qt.bottom*.5)*2,em:k.fontSize[Et],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:k.regl.texture()}}g.text??(g.text=k.text)}),typeof g.text=="string"&&g.position&&g.position.length>2){for(var T=Array(g.position.length*.5),C=0;C2){for(var O=!g.position[0].length,j=i.mallocFloat(this.count*2),B=0,U=0;B1?k.align[Et]:k.align[0]:k.align;if(typeof At=="number")return At;switch(At){case"right":case"end":return-Gt;case"center":case"centre":case"middle":return-Gt*.5}return 0})),this.baseline==null&&g.baseline==null&&(g.baseline=0),g.baseline!=null&&(this.baseline=g.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Gt,Et){var At=(k.font[Et]||k.font[0]).metrics,qt=0;return qt+=At.bottom*.5,typeof Gt=="number"?qt+=Gt-At.baseline:qt+=-At[Gt],qt*=-1,qt})),g.color!=null)if(g.color||(g.color="transparent"),typeof g.color=="string"||!isNaN(g.color))this.color=p(g.color,"uint8");else{var lt;if(typeof g.color[0]=="number"&&g.color.length>this.counts.length){var yt=g.color.length;lt=i.mallocUint8(yt);for(var kt=(g.color.subarray||g.color.slice).bind(g.color),Lt=0;Lt4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2){var Ht=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Ht);for(var Kt=0;Kt1?this.counts[Kt]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Kt]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Kt*4,Kt*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Kt]:this.opacity,baseline:this.baselineOffset[Kt]==null?this.baselineOffset[0]:this.baselineOffset[Kt],align:this.align?this.alignOffset[Kt]==null?this.alignOffset[0]:this.alignOffset[Kt]:0,atlas:this.fontAtlas[Kt]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Kt*2,Kt*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},b.prototype.destroy=function(){},b.prototype.kerning=!0,b.prototype.position={constant:new Float32Array(2)},b.prototype.translate=null,b.prototype.scale=null,b.prototype.font=null,b.prototype.text="",b.prototype.positionOffset=[0,0],b.prototype.opacity=1,b.prototype.color=new Uint8Array([0,0,0,255]),b.prototype.alignOffset=[0,0],b.maxAtlasSize=1024,b.atlasCanvas=document.createElement("canvas"),b.atlasContext=b.atlasCanvas.getContext("2d",{alpha:!1}),b.baseFontSize=64,b.fonts={};function M(g){return typeof g=="function"&&g._gl&&g.prop&&g.texture&&g.buffer}tt.exports=b}),38862:(function(tt,G,e){var S=e(6807);tt.exports=function(c){if(c?typeof c=="string"&&(c={container:c}):c={},c=t(c)||E(c)?{container:c}:w(c)?{gl:c}:S(c,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),c.pixelRatio||(c.pixelRatio=e.g.pixelRatio||1),c.gl)return c.gl;if(c.canvas&&(c.container=c.canvas.parentNode),c.container){if(typeof c.container=="string"){var i=document.querySelector(c.container);if(!i)throw Error("Element "+c.container+" is not found");c.container=i}t(c.container)?(c.canvas=c.container,c.container=c.canvas.parentNode):c.canvas||(c.canvas=p(),c.container.appendChild(c.canvas),A(c))}else if(!c.canvas)if(typeof document<"u")c.container=document.body||document.documentElement,c.canvas=p(),c.container.appendChild(c.canvas),A(c);else throw Error("Not DOM environment. Use headless-gl.");return c.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(r){try{c.gl=c.canvas.getContext(r,c.attrs)}catch{}return c.gl}),c.gl};function A(c){if(c.container)if(c.container==document.body)document.body.style.width||(c.canvas.width=c.width||c.pixelRatio*e.g.innerWidth),document.body.style.height||(c.canvas.height=c.height||c.pixelRatio*e.g.innerHeight);else{var i=c.container.getBoundingClientRect();c.canvas.width=c.width||i.right-i.left,c.canvas.height=c.height||i.bottom-i.top}}function t(c){return typeof c.getContext=="function"&&"width"in c&&"height"in c}function E(c){return typeof c.nodeName=="string"&&typeof c.appendChild=="function"&&typeof c.getBoundingClientRect=="function"}function w(c){return typeof c.drawArrays=="function"||typeof c.drawElements=="function"}function p(){var c=document.createElement("canvas");return c.style.position="absolute",c.style.top=0,c.style.left=0,c}}),76765:(function(tt){tt.exports=function(G){typeof G=="string"&&(G=[G]);for(var e=[].slice.call(arguments,1),S=[],A=0;A>1,o=-7,a=A?E-1:0,s=A?-1:1,n=e[S+a];for(a+=s,w=n&(1<<-o)-1,n>>=-o,o+=c;o>0;w=w*256+e[S+a],a+=s,o-=8);for(p=w&(1<<-o)-1,w>>=-o,o+=t;o>0;p=p*256+e[S+a],a+=s,o-=8);if(w===0)w=1-r;else{if(w===i)return p?NaN:(n?-1:1)*(1/0);p+=2**t,w-=r}return(n?-1:1)*p*2**(w-t)},G.write=function(e,S,A,t,E,w){var p,c,i,r=w*8-E-1,o=(1<>1,s=E===23?2**-24-2**-77:0,n=t?0:w-1,m=t?1:-1,x=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(c=isNaN(S)?1:0,p=o):(p=Math.floor(Math.log(S)/Math.LN2),S*(i=2**-p)<1&&(p--,i*=2),p+a>=1?S+=s/i:S+=s*2**(1-a),S*i>=2&&(p++,i/=2),p+a>=o?(c=0,p=o):p+a>=1?(c=(S*i-1)*2**E,p+=a):(c=S*2**(a-1)*2**E,p=0));E>=8;e[A+n]=c&255,n+=m,c/=256,E-=8);for(p=p<0;e[A+n]=p&255,n+=m,p/=256,r-=8);e[A+n-m]|=x*128}}),28062:(function(tt){typeof Object.create=="function"?tt.exports=function(G,e){e&&(G.super_=e,G.prototype=Object.create(e.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}))}:tt.exports=function(G,e){if(e){G.super_=e;var S=function(){};S.prototype=e.prototype,G.prototype=new S,G.prototype.constructor=G}}}),40280:(function(tt,G,e){var S=e(36912)(),A=e(63063)("Object.prototype.toString"),t=function(p){return S&&p&&typeof p=="object"&&Symbol.toStringTag in p?!1:A(p)==="[object Arguments]"},E=function(p){return t(p)?!0:typeof p=="object"&&!!p&&typeof p.length=="number"&&p.length>=0&&A(p)!=="[object Array]"&&A(p.callee)==="[object Function]"},w=(function(){return t(arguments)})();t.isLegacyArguments=E,tt.exports=w?t:E}),78253:(function(tt){tt.exports=!0}),82756:(function(tt){var G=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,A;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw A}}),A={},e(function(){throw 42},null,S)}catch(v){v!==A&&(e=null)}else e=null;var t=/^\s*class\b/,E=function(v){try{var l=G.call(v);return t.test(l)}catch{return!1}},w=function(v){try{return E(v)?!1:(G.call(v),!0)}catch{return!1}},p=Object.prototype.toString,c="[object Object]",i="[object Function]",r="[object GeneratorFunction]",o="[object HTMLAllCollection]",a="[object HTML document.all class]",s="[object HTMLCollection]",n=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var f=document.all;p.call(f)===p.call(document.all)&&(x=function(v){if((m||!v)&&(v===void 0||typeof v=="object"))try{var l=p.call(v);return(l===o||l===a||l===s||l===c)&&v("")==null}catch{}return!1})}tt.exports=e?function(v){if(x(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;try{e(v,null,S)}catch(l){if(l!==A)return!1}return!E(v)&&w(v)}:function(v){if(x(v))return!0;if(!v||typeof v!="function"&&typeof v!="object")return!1;if(n)return w(v);if(E(v))return!1;var l=p.call(v);return l!==i&&l!==r&&!/^\[object HTML/.test(l)?!1:w(v)}}),80340:(function(tt,G,e){var S=Object.prototype.toString,A=Function.prototype.toString,t=/^\s*(?:function)?\*/,E=e(36912)(),w=Object.getPrototypeOf,p=function(){if(!E)return!1;try{return Function("return function*() {}")()}catch{}},c;tt.exports=function(i){if(typeof i!="function")return!1;if(t.test(A.call(i)))return!0;if(!E)return S.call(i)==="[object GeneratorFunction]";if(!w)return!1;if(c===void 0){var r=p();c=r?w(r):!1}return w(i)===c}}),39488:(function(tt){tt.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))}),73287:(function(tt){tt.exports=function(G){return G!==G}}),63057:(function(tt,G,e){var S=e(87227),A=e(97936),t=e(73287),E=e(60758),w=e(85684),p=S(E(),Number);A(p,{getPolyfill:E,implementation:t,shim:w}),tt.exports=p}),60758:(function(tt,G,e){var S=e(73287);tt.exports=function(){return Number.isNaN&&!Number.isNaN("a")?Number.isNaN:S}}),85684:(function(tt,G,e){var S=e(97936),A=e(60758);tt.exports=function(){var t=A();return S(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}}),60201:(function(tt){tt.exports=function(G){var e=typeof G;return G!==null&&(e==="object"||e==="function")}}),29388:(function(tt){var G=Object.prototype.toString;tt.exports=function(e){var S;return G.call(e)==="[object Object]"&&(S=Object.getPrototypeOf(e),S===null||S===Object.getPrototypeOf({}))}}),9914:(function(tt){tt.exports=function(G){for(var e=G.length,S,A=0;A13)&&S!==32&&S!==133&&S!==160&&S!==5760&&S!==6158&&(S<8192||S>8205)&&S!==8232&&S!==8233&&S!==8239&&S!==8287&&S!==8288&&S!==12288&&S!==65279)return!1;return!0}}),13986:(function(tt){tt.exports=function(G){return typeof G=="string"?(G=G.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(G)&&/[\dz]$/i.test(G)&&G.length>4)):!1}}),15628:(function(tt,G,e){var S=e(61262),A=e(70085),t=e(63063),E=t("Object.prototype.toString"),w=e(36912)(),p=e(52991),c=typeof globalThis>"u"?e.g:globalThis,i=A(),r=t("Array.prototype.indexOf",!0)||function(m,x){for(var f=0;f-1:p?n(m):!1}}),62914:(function(tt){tt.exports=Math.log2||function(G){return Math.log(G)*Math.LOG2E}}),99978:(function(tt,G,e){tt.exports=A;var S=e(41926);function A(t,E){E||(E=t,t=window);var w=0,p=0,c=0,i={shift:!1,alt:!1,control:!1,meta:!1},r=!1;function o(b){var M=!1;return"altKey"in b&&(M||(M=b.altKey!==i.alt),i.alt=!!b.altKey),"shiftKey"in b&&(M||(M=b.shiftKey!==i.shift),i.shift=!!b.shiftKey),"ctrlKey"in b&&(M||(M=b.ctrlKey!==i.control),i.control=!!b.ctrlKey),"metaKey"in b&&(M||(M=b.metaKey!==i.meta),i.meta=!!b.metaKey),M}function a(b,M){var g=S.x(M),k=S.y(M);"buttons"in M&&(b=M.buttons|0),(b!==w||g!==p||k!==c||o(M))&&(w=b|0,p=g||0,c=k||0,E&&E(w,p,c,i))}function s(b){a(0,b)}function n(){(w||p||c||i.shift||i.alt||i.meta||i.control)&&(p=c=0,w=0,i.shift=i.alt=i.control=i.meta=!1,E&&E(0,0,0,i))}function m(b){o(b)&&E&&E(w,p,c,i)}function x(b){S.buttons(b)===0?a(0,b):a(w,b)}function f(b){a(w|S.buttons(b),b)}function v(b){a(w&~S.buttons(b),b)}function l(){r||(r=!0,t.addEventListener("mousemove",x),t.addEventListener("mousedown",f),t.addEventListener("mouseup",v),t.addEventListener("mouseleave",s),t.addEventListener("mouseenter",s),t.addEventListener("mouseout",s),t.addEventListener("mouseover",s),t.addEventListener("blur",n),t.addEventListener("keyup",m),t.addEventListener("keydown",m),t.addEventListener("keypress",m),t!==window&&(window.addEventListener("blur",n),window.addEventListener("keyup",m),window.addEventListener("keydown",m),window.addEventListener("keypress",m)))}function h(){r&&(r=!1,t.removeEventListener("mousemove",x),t.removeEventListener("mousedown",f),t.removeEventListener("mouseup",v),t.removeEventListener("mouseleave",s),t.removeEventListener("mouseenter",s),t.removeEventListener("mouseout",s),t.removeEventListener("mouseover",s),t.removeEventListener("blur",n),t.removeEventListener("keyup",m),t.removeEventListener("keydown",m),t.removeEventListener("keypress",m),t!==window&&(window.removeEventListener("blur",n),window.removeEventListener("keyup",m),window.removeEventListener("keydown",m),window.removeEventListener("keypress",m)))}l();var d={element:t};return Object.defineProperties(d,{enabled:{get:function(){return r},set:function(b){b?l():h()},enumerable:!0},buttons:{get:function(){return w},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return c},enumerable:!0},mods:{get:function(){return i},enumerable:!0}}),d}}),44039:(function(tt){var G={left:0,top:0};tt.exports=e;function e(A,t,E){t=t||A.currentTarget||A.srcElement,Array.isArray(E)||(E=[0,0]);var w=A.clientX||0,p=A.clientY||0,c=S(t);return E[0]=w-c.left,E[1]=p-c.top,E}function S(A){return A===window||A===document||A===document.body?G:A.getBoundingClientRect()}}),41926:(function(tt,G){function e(E){if(typeof E=="object"){if("buttons"in E)return E.buttons;if("which"in E){var w=E.which;if(w===2)return 4;if(w===3)return 2;if(w>0)return 1<=0)return 1<0&&c(r,d))}catch(b){s.call(new m(d),b)}}}function s(l){var h=this;h.triggered||(h.triggered=!0,h.def&&(h=h.def),h.msg=l,h.state=2,h.chain.length>0&&c(r,h))}function n(l,h,d,b){for(var M=0;M7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var M=f,g=v;(i=="C"||i=="S")&&(M+=M-o,g+=g-a),d=["C",M,g,d[1],d[2],d[3],d[4]];break;case"T":i=="Q"||i=="T"?(m=f*2-m,x=v*2-x):(m=f,x=v),d=t(f,v,m,x,d[1],d[2]);break;case"Q":m=d[1],x=d[2],d=t(f,v,d[1],d[2],d[3],d[4]);break;case"L":d=A(f,v,d[1],d[2]);break;case"H":d=A(f,v,d[1],v);break;case"V":d=A(f,v,f,d[1]);break;case"Z":d=A(f,v,s,n);break}i=b,f=d[d.length-2],v=d[d.length-1],d.length>4?(o=d[d.length-4],a=d[d.length-3]):(o=f,a=v),r.push(d)}return r}function A(c,i,r,o){return["C",c,i,r,o,r,o]}function t(c,i,r,o,a,s){return["C",c/3+.6666666666666666*r,i/3+.6666666666666666*o,a/3+.6666666666666666*r,s/3+.6666666666666666*o,a,s]}function E(c,i,r,o,a,s,n,m,x,f){if(f)u=f[0],T=f[1],k=f[2],L=f[3];else{var v=w(c,i,-a);c=v.x,i=v.y,v=w(m,x,-a),m=v.x,x=v.y;var l=(c-m)/2,h=(i-x)/2,d=l*l/(r*r)+h*h/(o*o);d>1&&(d=Math.sqrt(d),r=d*r,o=d*o);var b=r*r,M=o*o,g=(s==n?-1:1)*Math.sqrt(Math.abs((b*M-b*h*h-M*l*l)/(b*h*h+M*l*l)));g==1/0&&(g=1);var k=g*r*h/o+(c+m)/2,L=g*-o*l/r+(i+x)/2,u=Math.asin(((i-L)/o).toFixed(9)),T=Math.asin(((x-L)/o).toFixed(9));u=cT&&(u-=G*2),!n&&T>u&&(T-=G*2)}if(Math.abs(T-u)>e){var C=T,_=m,F=x;T=u+e*(n&&T>u?1:-1),m=k+r*Math.cos(T),x=L+o*Math.sin(T);var O=E(m,x,r,o,a,0,n,_,F,[T,C,k,L])}var j=Math.tan((T-u)/4),B=4/3*r*j,U=4/3*o*j,P=[2*c-(c+B*Math.sin(u)),2*i-(i-U*Math.cos(u)),m+B*Math.sin(T),x-U*Math.cos(T),m,x];if(f)return P;O&&(P=P.concat(O));for(var N=0;N"u")return!1;for(var n in window)try{if(!o["$"+n]&&A.call(window,n)&&window[n]!==null&&typeof window[n]=="object")try{r(window[n])}catch{return!0}}catch{return!0}return!1})(),s=function(n){if(typeof window>"u"||!a)return r(n);try{return r(n)}catch{return!1}};S=function(n){var m=typeof n=="object"&&!!n,x=t.call(n)==="[object Function]",f=E(n),v=m&&t.call(n)==="[object String]",l=[];if(!m&&!x&&!f)throw TypeError("Object.keys called on a non-object");var h=c&&x;if(v&&n.length>0&&!A.call(n,0))for(var d=0;d0)for(var b=0;b=0&&G.call(e.callee)==="[object Function]"),A}}),96927:(function(tt,G,e){var S=e(99433),A=e(59457)(),t=e(63063),E=Object,w=t("Array.prototype.push"),p=t("Object.prototype.propertyIsEnumerable"),c=A?Object.getOwnPropertySymbols:null;tt.exports=function(i,r){if(i==null)throw TypeError("target must be an object");var o=E(i);if(arguments.length===1)return o;for(var a=1;a1e4)throw Error("References have circular dependency. Please, check them.");E[x]=m}),s=s.reverse(),E=E.map(function(m){return s.forEach(function(x){m=m.replace(RegExp("(\\"+p+x+"\\"+p+")","g"),o[0]+"$1"+o[1])}),m})});var i=RegExp("\\"+p+"([0-9]+)\\"+p);function r(o,a,s){for(var n=[],m,x=0;m=i.exec(o);){if(x++>1e4)throw Error("Circular references in parenthesis");n.push(o.slice(0,m.index)),n.push(r(a[m[1]],a)),o=o.slice(m.index+m[0].length)}return n.push(o),n}return c?E:r(E[0],E)}function e(A,t){if(t&&t.flat){var E=t&&t.escape||"___",w=A[0],p;if(!w)return"";for(var c=RegExp("\\"+E+"([0-9]+)\\"+E),i=0;w!=p;){if(i++>1e4)throw Error("Circular references in "+A);p=w,w=w.replace(c,r)}return w}return A.reduce(function o(a,s){return Array.isArray(s)&&(s=s.reduce(o,"")),a+s},"");function r(o,a){if(A[a]==null)throw Error("Reference "+a+"is undefined");return A[a]}}function S(A,t){return Array.isArray(A)?e(A,t):G(A,t)}S.parse=G,S.stringify=e,tt.exports=S}),5137:(function(tt,G,e){var S=e(6807);tt.exports=A;function A(t){var E;return arguments.length>1&&(t=arguments),typeof t=="string"?t=t.split(/\s/).map(parseFloat):typeof t=="number"&&(t=[t]),t.length&&typeof t[0]=="number"?E=t.length===1?{width:t[0],height:t[0],x:0,y:0}:t.length===2?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&&(t=S(t,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),E={x:t.left||0,y:t.top||0},t.width==null?t.right?E.width=t.right-E.x:E.width=0:E.width=t.width,t.height==null?t.bottom?E.height=t.bottom-E.y:E.height=0:E.height=t.height),E}}),26953:(function(tt){tt.exports=S;var G={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},e=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function S(E){var w=[];return E.replace(e,function(p,c,i){var r=c.toLowerCase();for(i=t(i),r=="m"&&i.length>2&&(w.push([c].concat(i.splice(0,2))),r="l",c=c=="m"?"l":"L");;){if(i.length==G[r])return i.unshift(c),w.push(i);if(i.lengthE!=s>E&&t<(a-r)*(E-o)/(s-o)+r&&(w=!w)}return w}}),11516:(function(tt,G,e){var S=e(42391),A=e(92990),t=e(26202),E=e(22222),w=e(17527),p=e(24491),c=!1,i=A(),r={buildLog:function(a){return a===!0?c=S():a===!1&&(c=!1),c===!1?!1:c.list},epsilon:function(a){return i.epsilon(a)},segments:function(a){var s=t(!0,i,c);return a.regions.forEach(s.addRegion),{segments:s.calculate(a.inverted),inverted:a.inverted}},combine:function(a,s){return{combined:t(!1,i,c).calculate(a.segments,a.inverted,s.segments,s.inverted),inverted1:a.inverted,inverted2:s.inverted}},selectUnion:function(a){return{segments:w.union(a.combined,c),inverted:a.inverted1||a.inverted2}},selectIntersect:function(a){return{segments:w.intersect(a.combined,c),inverted:a.inverted1&&a.inverted2}},selectDifference:function(a){return{segments:w.difference(a.combined,c),inverted:a.inverted1&&!a.inverted2}},selectDifferenceRev:function(a){return{segments:w.differenceRev(a.combined,c),inverted:!a.inverted1&&a.inverted2}},selectXor:function(a){return{segments:w.xor(a.combined,c),inverted:a.inverted1!==a.inverted2}},polygon:function(a){return{regions:E(a.segments,i,c),inverted:a.inverted}},polygonFromGeoJSON:function(a){return p.toPolygon(r,a)},polygonToGeoJSON:function(a){return p.fromPolygon(r,i,a)},union:function(a,s){return o(a,s,r.selectUnion)},intersect:function(a,s){return o(a,s,r.selectIntersect)},difference:function(a,s){return o(a,s,r.selectDifference)},differenceRev:function(a,s){return o(a,s,r.selectDifferenceRev)},xor:function(a,s){return o(a,s,r.selectXor)}};function o(a,s,n){var m=r.segments(a),x=r.segments(s),f=n(r.combine(m,x));return r.polygon(f)}typeof window=="object"&&(window.PolyBool=r),tt.exports=r}),42391:(function(tt){function G(){var e,S=0,A=!1;function t(E,w){return e.list.push({type:E,data:w?JSON.parse(JSON.stringify(w)):void 0}),e}return e={list:[],segmentId:function(){return S++},checkIntersection:function(E,w){return t("check",{seg1:E,seg2:w})},segmentChop:function(E,w){return t("div_seg",{seg:E,pt:w}),t("chop",{seg:E,pt:w})},statusRemove:function(E){return t("pop_seg",{seg:E})},segmentUpdate:function(E){return t("seg_update",{seg:E})},segmentNew:function(E,w){return t("new_seg",{seg:E,primary:w})},segmentRemove:function(E){return t("rem_seg",{seg:E})},tempStatus:function(E,w,p){return t("temp_status",{seg:E,above:w,below:p})},rewind:function(E){return t("rewind",{seg:E})},status:function(E,w,p){return t("status",{seg:E,above:w,below:p})},vert:function(E){return E===A?e:(A=E,t("vert",{x:E}))},log:function(E){return typeof E!="string"&&(E=JSON.stringify(E,!1," ")),t("log",{txt:E})},reset:function(){return t("reset")},selected:function(E){return t("selected",{segs:E})},chainStart:function(E){return t("chain_start",{seg:E})},chainRemoveHead:function(E,w){return t("chain_rem_head",{index:E,pt:w})},chainRemoveTail:function(E,w){return t("chain_rem_tail",{index:E,pt:w})},chainNew:function(E,w){return t("chain_new",{pt1:E,pt2:w})},chainMatch:function(E){return t("chain_match",{index:E})},chainClose:function(E){return t("chain_close",{index:E})},chainAddHead:function(E,w){return t("chain_add_head",{index:E,pt:w})},chainAddTail:function(E,w){return t("chain_add_tail",{index:E,pt:w})},chainConnect:function(E,w){return t("chain_con",{index1:E,index2:w})},chainReverse:function(E){return t("chain_rev",{index:E})},chainJoin:function(E,w){return t("chain_join",{index1:E,index2:w})},done:function(){return t("done")}},e}tt.exports=G}),92990:(function(tt){function G(e){typeof e!="number"&&(e=1e-10);var S={epsilon:function(A){return typeof A=="number"&&(e=A),e},pointAboveOrOnLine:function(A,t,E){var w=t[0],p=t[1],c=E[0],i=E[1],r=A[0],o=A[1];return(c-w)*(o-p)-(i-p)*(r-w)>=-e},pointBetween:function(A,t,E){var w=A[1]-t[1],p=E[0]-t[0],c=A[0]-t[0],i=E[1]-t[1],r=c*p+w*i;return!(r-e)},pointsSameX:function(A,t){return Math.abs(A[0]-t[0])e!=c-w>e&&(p-o)*(w-a)/(c-a)+o-E>e&&(i=!i),p=o,c=a}return i}};return S}tt.exports=G}),24491:(function(tt){tt.exports={toPolygon:function(G,e){function S(E){if(E.length<=0)return G.segments({inverted:!1,regions:[]});function w(i){var r=i.slice(0,i.length-1);return G.segments({inverted:!1,regions:[r]})}for(var p=w(E[0]),c=1;c0})}function M(B,U){var P=B.seg,N=U.seg,V=P.start,Y=P.end,K=N.start,nt=N.end;w&&w.checkIntersection(P,N);var ft=E.linesIntersect(V,Y,K,nt);if(ft===!1){if(!E.pointsCollinear(V,Y,K)||E.pointsSame(V,nt)||E.pointsSame(Y,K))return!1;var ct=E.pointsSame(V,K),J=E.pointsSame(Y,nt);if(ct&&J)return U;var et=!ct&&E.pointBetween(V,K,nt),Q=!J&&E.pointBetween(Y,K,nt);if(ct)return Q?x(U,Y):x(B,nt),U;et&&(J||(Q?x(U,Y):x(B,nt)),x(U,V))}else ft.alongA===0&&(ft.alongB===-1?x(B,K):ft.alongB===0?x(B,ft.pt):ft.alongB===1&&x(B,nt)),ft.alongB===0&&(ft.alongA===-1?x(U,V):ft.alongA===0?x(U,ft.pt):ft.alongA===1&&x(U,Y));return!1}for(var g=[];!i.isEmpty();){var k=i.getHead();if(w&&w.vert(k.pt[0]),k.isStart){let B=function(){if(u){var U=M(k,u);if(U)return U}return T?M(k,T):!1};w&&w.segmentNew(k.seg,k.primary);var L=b(k),u=L.before?L.before.ev:null,T=L.after?L.after.ev:null;w&&w.tempStatus(k.seg,u?u.seg:!1,T?T.seg:!1);var C=B();if(C){if(t){var _=k.seg.myFill.below===null?!0:k.seg.myFill.above!==k.seg.myFill.below;_&&(C.seg.myFill.above=!C.seg.myFill.above)}else C.seg.otherFill=k.seg.myFill;w&&w.segmentUpdate(C.seg),k.other.remove(),k.remove()}if(i.getHead()!==k){w&&w.rewind(k.seg);continue}if(t){var _=k.seg.myFill.below===null?!0:k.seg.myFill.above!==k.seg.myFill.below;T?k.seg.myFill.below=T.seg.myFill.above:k.seg.myFill.below=v,_?k.seg.myFill.above=!k.seg.myFill.below:k.seg.myFill.above=k.seg.myFill.below}else if(k.seg.otherFill===null){var F=T?k.primary===T.primary?T.seg.otherFill.above:T.seg.myFill.above:k.primary?l:v;k.seg.otherFill={above:F,below:F}}w&&w.status(k.seg,u?u.seg:!1,T?T.seg:!1),k.other.status=L.insert(S.node({ev:k}))}else{var O=k.status;if(O===null)throw Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(h.exists(O.prev)&&h.exists(O.next)&&M(O.prev.ev,O.next.ev),w&&w.statusRemove(O.ev.seg),O.remove(),!k.primary){var j=k.seg.myFill;k.seg.myFill=k.seg.otherFill,k.seg.otherFill=j}g.push(k.seg)}i.getHead().remove()}return w&&w.done(),g}return t?{addRegion:function(v){for(var l,h=v[v.length-1],d=0;d0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,A)}},S.prototype.read_uint16=function(A){var t=this.input;if(A+2>t.length)throw G("unexpected EOF","EBADDATA");return this.big_endian?t[A]*256+t[A+1]:t[A]+t[A+1]*256},S.prototype.read_uint32=function(A){var t=this.input;if(A+4>t.length)throw G("unexpected EOF","EBADDATA");return this.big_endian?t[A]*16777216+t[A+1]*65536+t[A+2]*256+t[A+3]:t[A]+t[A+1]*256+t[A+2]*65536+t[A+3]*16777216},S.prototype.is_subifd_link=function(A,t){return A===0&&t===34665||A===0&&t===34853||A===34665&&t===40965},S.prototype.exif_format_length=function(A){switch(A){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},S.prototype.exif_format_read=function(A,t){var E;switch(A){case 1:case 2:return E=this.input[t],E;case 6:return E=this.input[t],E|(E&128)*33554430;case 3:return E=this.read_uint16(t),E;case 8:return E=this.read_uint16(t),E|(E&32768)*131070;case 4:return E=this.read_uint32(t),E;case 9:return E=this.read_uint32(t),E|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},S.prototype.scan_ifd=function(A,t,E){var w=this.read_uint16(t);t+=2;for(var p=0;pthis.input.length)throw G("unexpected EOF","EBADDATA");for(var m=[],x=s,f=0;f0&&(this.ifds_to_read.push({id:c,offset:m[0]}),n=!0),E({is_big_endian:this.big_endian,ifd:A,tag:c,format:i,count:r,entry_offset:t+this.start,data_length:a,data_offset:s+this.start,value:m,is_subifd_link:n})===!1){this.aborted=!0;return}t+=12}A===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})},tt.exports.ExifParser=S,tt.exports.get_orientation=function(A){var t=0;try{return new S(A,0,A.length).each(function(E){if(E.ifd===0&&E.tag===274&&Array.isArray(E.value))return t=E.value[0],!1}),t}catch{return-1}}}),20186:(function(tt,G,e){var S=e(3944).bc,A=e(3944).bb;function t(a,s){if(a.length<4+s)return null;var n=A(a,s);return a.length>4&15,m=a[4]&15,x=a[5]>>4&15,f=S(a,6),v=8,l=0;lx.width||m.width===x.width&&m.height>x.height?m:x}),n=a.reduce(function(m,x){return m.height>x.height||m.height===x.height&&m.width>x.width?m:x});return s.width>n.height||s.width===n.height&&s.height>n.width?s:n}tt.exports.readSizeFromMeta=function(a){var s={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(r(a,s),s.sizes.length){var n=o(s.sizes),m=1;s.transforms.forEach(function(f){var v={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(f.type==="imir"&&(f.value===0?m=l[m]:(m=l[m],m=v[m],m=v[m])),f.type==="irot")for(var h=0;h1&&(m.variants=n.variants),n.orientation&&(m.orientation=n.orientation),n.exif_location&&n.exif_location.offset+n.exif_location.length<=c.length){var x=t(c,n.exif_location.offset),f=c.slice(n.exif_location.offset+x+4,n.exif_location.offset+n.exif_location.length),v=w.get_orientation(f);v>0&&(m.orientation=v)}return m}}}}}}}),78218:(function(tt,G,e){var S=e(3944).VG,A=e(3944).rU,t=e(3944).$l,E=S("BM");tt.exports=function(w){if(!(w.length<26)&&A(w,0,E))return{width:t(w,18),height:t(w,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}),37495:(function(tt,G,e){var S=e(3944).VG,A=e(3944).rU,t=e(3944).$l,E=S("GIF87a"),w=S("GIF89a");tt.exports=function(p){if(!(p.length<10)&&!(!A(p,0,E)&&!A(p,0,w)))return{width:t(p,6),height:t(p,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}}),88708:(function(tt,G,e){var S=e(3944).$l,A=0,t=1,E=16;tt.exports=function(w){var p=S(w,0),c=S(w,2),i=S(w,4);if(!(p!==A||c!==t||!i)){for(var r=[],o={width:0,height:0},a=0;ao.width||n>o.height)&&(o=m)}return{width:o.width,height:o.height,variants:r,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}}),13827:(function(tt,G,e){var S=e(3944).bc,A=e(3944).VG,t=e(3944).rU,E=e(19789),w=A("Exif\0\0");tt.exports=function(p){if(!(p.length<2)&&!(p[0]!==255||p[1]!==216||p[2]!==255))for(var c=2;;){for(;;){if(p.length-c<2)return;if(p[c++]===255)break}for(var i=p[c++],r;i===255;)i=p[c++];if(208<=i&&i<=217||i===1)r=0;else if(192<=i&&i<=254){if(p.length-c<2)return;r=S(p,c)-2,c+=2}else return;if(i===217||i===218)return;var o;if(i===225&&r>=10&&t(p,c,w)&&(o=E.get_orientation(p.slice(c+6,c+r))),r>=5&&192<=i&&i<=207&&i!==196&&i!==200&&i!==204){if(p.length-c0&&(a.orientation=o),a}c+=r}}}),46594:(function(tt,G,e){var S=e(3944).VG,A=e(3944).rU,t=e(3944).bb,E=S(`\x89PNG\r + +`),w=S("IHDR");tt.exports=function(p){if(!(p.length<24)&&A(p,0,E)&&A(p,12,w))return{width:t(p,16),height:t(p,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),13198:(function(tt,G,e){var S=e(3944).VG,A=e(3944).rU,t=e(3944).bb,E=S("8BPS\0");tt.exports=function(w){if(!(w.length<22)&&A(w,0,E))return{width:t(w,18),height:t(w,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),94203:(function(tt){function G(o){return o===32||o===9||o===13||o===10}function e(o){return typeof o=="number"&&isFinite(o)&&o>0}function S(o){var a=0,s=o.length;for(o[0]===239&&o[1]===187&&o[2]===191&&(a=3);a]*>/,t=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,E=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,w=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,p=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function i(o){var a=o.match(E),s=o.match(w),n=o.match(p);return{width:a&&(a[1]||a[2]),height:s&&(s[1]||s[2]),viewbox:n&&(n[1]||n[2])}}function r(o){return c.test(o)?o.match(c)[0]:"px"}tt.exports=function(o){if(S(o)){for(var a="",s=0;s>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function o(a,s){return{width:(a[s+6]<<16|a[s+5]<<8|a[s+4])+1,height:(a[s+9]<a.length)){for(;s+8=10?n||(n=i(a,s+8)):f==="VP8L"&&v>=9?n||(n=r(a,s+8)):f==="VP8X"&&v>=10?n||(n=o(a,s+8)):f==="EXIF"&&(m=w.get_orientation(a.slice(s+8,s+8+v)),s=1/0),s+=8+v}if(n)return m>0&&(n.orientation=m),n}}}}),43751:(function(tt,G,e){tt.exports={avif:e(31149),bmp:e(78218),gif:e(37495),ico:e(88708),jpeg:e(13827),png:e(46594),psd:e(13198),svg:e(94203),tiff:e(46966),webp:e(88023)}}),19490:(function(tt,G,e){var S=e(43751);function A(t){for(var E=Object.keys(S),w=0;w1)for(var f=1;f"u"?e.g:window,t=["moz","webkit"],E="AnimationFrame",w=A["request"+E],p=A["cancel"+E]||A["cancelRequest"+E],c=0;!w&&c1&&(C.scaleRatio=[C.scale[0]*C.viewport.width,C.scale[1]*C.viewport.height],x(C),C.after&&C.after(C))}function u(C){if(C){C.length==null?Array.isArray(C)||(C=[C]):typeof C[0]=="number"&&(C=[{positions:C}]);var _=0,F=0;if(g.groups=M=C.map(function(V,Y){var K=M[Y];if(V)typeof V=="function"?V={after:V}:typeof V[0]=="number"&&(V={positions:V});else return K;return V=E(V,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),K||(M[Y]=K={id:Y,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},V=w({},b,V)),t(K,V,[{lineWidth:function(nt){return nt*.5},capSize:function(nt){return nt*.5},opacity:parseFloat,errors:function(nt){return nt=p(nt),F+=nt.length,nt},positions:function(nt,ft){return nt=p(nt,"float64"),ft.count=Math.floor(nt.length/2),ft.bounds=S(nt,2),ft.offset=_,_+=ft.count,nt}},{color:function(nt,ft){var ct=ft.count;if(nt||(nt="transparent"),!Array.isArray(nt)||typeof nt[0]=="number"){var J=nt;nt=Array(ct);for(var et=0;et 0. && baClipping < length(normalWidth * endBotJoin)) { + //handle miter clipping + bTopCoord -= normalWidth * endTopJoin; + bTopCoord += normalize(endTopJoin * normalWidth) * baClipping; + } + + if (nextReverse) { + //make join rectangular + vec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5; + float normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.); + bBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; + bTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; + } + else if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) { + //handle miter clipping + aBotCoord -= normalWidth * startBotJoin; + aBotCoord += normalize(startBotJoin * normalWidth) * abClipping; + } + + vec2 aTopPosition = (aTopCoord) * adjustedScale + translate; + vec2 aBotPosition = (aBotCoord) * adjustedScale + translate; + + vec2 bTopPosition = (bTopCoord) * adjustedScale + translate; + vec2 bBotPosition = (bBotCoord) * adjustedScale + translate; + + //position is normalized 0..1 coord on the screen + vec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd; + + startCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy; + endCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + enableStartMiter = step(dot(currTangent, prevTangent), .5); + enableEndMiter = step(dot(currTangent, nextTangent), .5); + + //bevel miter cutoffs + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } + + //round miter cutoffs + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } +} +`,h=` +precision highp float; + +uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; +uniform sampler2D dashTexture; + +varying vec4 fragColor; +varying vec2 tangent; +varying vec4 startCutoff, endCutoff; +varying vec2 startCoord, endCoord; +varying float enableStartMiter, enableEndMiter; + +float distToLine(vec2 p, vec2 a, vec2 b) { + vec2 diff = b - a; + vec2 perp = normalize(vec2(-diff.y, diff.x)); + return dot(p - a, perp); +} + +void main() { + float alpha = 1., distToStart, distToEnd; + float cutoff = thickness * .5; + + //bevel miter + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < -1.) { + discard; + return; + } + alpha *= min(max(distToStart + 1., 0.), 1.); + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < -1.) { + discard; + return; + } + alpha *= min(max(distToEnd + 1., 0.), 1.); + } + } + + // round miter + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < 0.) { + float radius = length(gl_FragCoord.xy - startCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < 0.) { + float radius = length(gl_FragCoord.xy - endCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + } + + float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; + float dash = texture2D(dashTexture, vec2(t, .5)).r; + + gl_FragColor = fragColor; + gl_FragColor.a *= alpha * opacity * dash; +} +`;tt.exports=d;function d(b,M){if(!(this instanceof d))return new d(b,M);if(typeof b=="function"?(M||(M={}),M.regl=b):M=b,M.length&&(M.positions=M),b=M.regl,!b.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=b._gl,this.regl=b,this.passes=[],this.shaders=d.shaders.has(b)?d.shaders.get(b):d.shaders.set(b,d.createShaders(b)).get(b),this.update(M)}d.dashMult=2,d.maxPatternLength=256,d.precisionThreshold=3e6,d.maxPoints=1e4,d.maxLines=2048,d.shaders=new a,d.createShaders=function(b){var M=b.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),g={primitive:"triangle strip",instances:b.prop("count"),count:4,offset:0,uniforms:{miterMode:function(u,T){return T.join==="round"?2:1},miterLimit:b.prop("miterLimit"),scale:b.prop("scale"),scaleFract:b.prop("scaleFract"),translateFract:b.prop("translateFract"),translate:b.prop("translate"),thickness:b.prop("thickness"),dashTexture:b.prop("dashTexture"),opacity:b.prop("opacity"),pixelRatio:b.context("pixelRatio"),id:b.prop("id"),dashLength:b.prop("dashLength"),viewport:function(u,T){return[T.viewport.x,T.viewport.y,u.viewportWidth,u.viewportHeight]},depth:b.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:function(u,T){return!T.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:b.prop("viewport")},viewport:b.prop("viewport")},k=b(t({vert:m,frag:x,attributes:{lineEnd:{buffer:M,divisor:0,stride:8,offset:0},lineTop:{buffer:M,divisor:0,stride:8,offset:4},aCoord:{buffer:b.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:b.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:b.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:b.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:b.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},g)),L;try{L=b(t({cull:{enable:!0,face:"back"},vert:l,frag:h,attributes:{lineEnd:{buffer:M,divisor:0,stride:8,offset:0},lineTop:{buffer:M,divisor:0,stride:8,offset:4},aColor:{buffer:b.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:b.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:b.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:b.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:b.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:b.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},g))}catch{L=k}return{fill:b({primitive:"triangle",elements:function(u,T){return T.triangles},offset:0,vert:f,frag:v,uniforms:{scale:b.prop("scale"),color:b.prop("fill"),scaleFract:b.prop("scaleFract"),translateFract:b.prop("translateFract"),translate:b.prop("translate"),opacity:b.prop("opacity"),pixelRatio:b.context("pixelRatio"),id:b.prop("id"),viewport:function(u,T){return[T.viewport.x,T.viewport.y,u.viewportWidth,u.viewportHeight]}},attributes:{position:{buffer:b.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:b.prop("positionFractBuffer"),stride:8,offset:8}},blend:g.blend,depth:{enable:!1},scissor:g.scissor,stencil:g.stencil,viewport:g.viewport}),rect:k,miter:L}},d.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},d.prototype.render=function(){for(var b,M=[],g=arguments.length;g--;)M[g]=arguments[g];M.length&&(b=this).update.apply(b,M),this.draw()},d.prototype.draw=function(){for(var b=this,M=[],g=arguments.length;g--;)M[g]=arguments[g];return(M.length?M:this.passes).forEach(function(k,L){var u;if(k&&Array.isArray(k))return(u=b).draw.apply(u,k);typeof k=="number"&&(k=b.passes[k]),k&&k.count>1&&k.opacity&&(b.regl._refresh(),k.fill&&k.triangles&&k.triangles.length>2&&b.shaders.fill(k),k.thickness&&(k.scale[0]*k.viewport.width>d.precisionThreshold||k.scale[1]*k.viewport.height>d.precisionThreshold||k.join==="rect"||!k.join&&(k.thickness<=2||k.count>=d.maxPoints)?b.shaders.rect(k):b.shaders.miter(k)))}),this},d.prototype.update=function(b){var M=this;if(b){b.length==null?Array.isArray(b)||(b=[b]):typeof b[0]=="number"&&(b=[{positions:b}]);var g=this,k=g.regl,L=g.gl;if(b.forEach(function(F,O){var j=M.passes[O];if(F!==void 0){if(F===null){M.passes[O]=null;return}if(typeof F[0]=="number"&&(F={positions:F}),F=E(F,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),j||(M.passes[O]=j={id:O,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:k.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:k.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:k.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:k.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},F=t({},d.defaults,F)),F.thickness!=null&&(j.thickness=parseFloat(F.thickness)),F.opacity!=null&&(j.opacity=parseFloat(F.opacity)),F.miterLimit!=null&&(j.miterLimit=parseFloat(F.miterLimit)),F.overlay!=null&&(j.overlay=!!F.overlay,O=X});st=st.slice(0,ut),st.push(X)}for(var lt=function(_t){var It=p(K.slice(rt*2,st[_t]*2).concat(X?K.slice(X*2):[]),(j.hole||[]).map(function(Mt){return Mt-X+(st[_t]-rt)}));It=It.map(function(Mt){return Mt+rt+(Mt+rtu.length)&&(T=u.length);for(var C=0,_=Array(T);C 1.0 + delta) { + discard; + } + + alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius); + + float borderRadius = fragBorderRadius; + float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius); + vec4 color = mix(fragColor, fragBorderColor, ratio); + color.a *= alpha * opacity; + gl_FragColor = color; +} +`]),K.vert=f([`precision highp float; +#define GLSLIFY 1 + +attribute float x, y, xFract, yFract; +attribute float size, borderSize; +attribute vec4 colorId, borderColorId; +attribute float isActive; + +// \`invariant\` effectively turns off optimizations for the position. +// We need this because -fast-math on M1 Macs is re-ordering +// floating point operations in a way that causes floating point +// precision limits to put points in the wrong locations. +invariant gl_Position; + +uniform bool constPointSize; +uniform float pixelRatio; +uniform vec2 paletteSize, scale, scaleFract, translate, translateFract; +uniform sampler2D paletteTexture; + +const float maxSize = 100.; + +varying vec4 fragColor, fragBorderColor; +varying float fragBorderRadius, fragWidth; + +float pointSizeScale = (constPointSize) ? 2. : pixelRatio; + +bool isDirect = (paletteSize.x < 1.); + +vec4 getColor(vec4 id) { + return isDirect ? id / 255. : texture2D(paletteTexture, + vec2( + (id.x + .5) / paletteSize.x, + (id.y + .5) / paletteSize.y + ) + ); +} + +void main() { + // ignore inactive points + if (isActive == 0.) return; + + vec2 position = vec2(x, y); + vec2 positionFract = vec2(xFract, yFract); + + vec4 color = getColor(colorId); + vec4 borderColor = getColor(borderColorId); + + float size = size * maxSize / 255.; + float borderSize = borderSize * maxSize / 255.; + + gl_PointSize = (size + borderSize) * pointSizeScale; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + gl_Position = vec4(pos * 2. - 1., 0., 1.); + + fragBorderRadius = 1. - 2. * borderSize / (size + borderSize); + fragColor = color; + fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; + fragWidth = 1. / gl_PointSize; +} +`]),d&&(K.frag=K.frag.replace("smoothstep","smoothStep"),Y.frag=Y.frag.replace("smoothstep","smoothStep")),this.drawCircle=u(K)}k.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},k.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},k.prototype.draw=function(){var u=this,T=[...arguments],C=this.groups;if(T.length===1&&Array.isArray(T[0])&&(T[0][0]===null||Array.isArray(T[0][0]))&&(T=T[0]),this.regl._refresh(),T.length)for(var _=0;_Kt)?Ot.tree=m(St,{bounds:jt}):Kt&&Kt.length&&(Ot.tree=Kt),Ot.tree){var de={primitive:"points",usage:"static",data:Ot.tree,type:"uint32"};Ot.elements?Ot.elements(de):Ot.elements=F.elements(de)}var Xt=b.float32(St);return Gt({data:Xt,usage:"dynamic"}),Et({data:b.fract32(St,Xt),usage:"dynamic"}),At({data:new Uint8Array(qt),type:"uint8",usage:"stream"}),St}},{marker:function(St,Ot,Ht){var Kt=Ot.activation;if(Kt.forEach(function(ye){return ye&&ye.destroy&&ye.destroy()}),Kt.length=0,!St||typeof St[0]=="number"){var Gt=u.addMarker(St);Kt[Gt]=!0}else{for(var Et=[],At=0,qt=Math.min(St.length,Ot.count);At=0)return F;var O;if(u instanceof Uint8Array||u instanceof Uint8ClampedArray)O=u;else{O=new Uint8Array(u.length);for(var j=0,B=u.length;j_*4&&(this.tooManyColors=!0),this.updatePalette(C),F.length===1?F[0]:F},k.prototype.updatePalette=function(u){if(!this.tooManyColors){var T=this.maxColors,C=this.paletteTexture,_=Math.ceil(u.length*.25/T);if(_>1){u=u.slice();for(var F=u.length*.25%T;F<_*T;F++)u.push(0,0,0,0)}C.height<_&&C.resize(T,_),C.subimage({width:Math.min(u.length*.25,T),height:_,data:u},0,0)}},k.prototype.destroy=function(){return this.groups.forEach(function(u){u.sizeBuffer.destroy(),u.positionBuffer.destroy(),u.positionFractBuffer.destroy(),u.colorBuffer.destroy(),u.activation.forEach(function(T){return T&&T.destroy&&T.destroy()}),u.selectionBuffer.destroy(),u.elements&&u.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(u){return u&&u.destroy&&u.destroy()}),this};var L=e(27976);tt.exports=function(u,T){var C=new g(u,T),_=C.render.bind(C);return L(_,{render:_,update:C.update.bind(C),draw:C.draw.bind(C),destroy:C.destroy.bind(C),regl:C.regl,gl:C.gl,canvas:C.gl.canvas,groups:C.groups,markers:C.markerCache,palette:C.palette}),_}}),31239:(function(tt,G,e){var S=e(62172),A=e(6807),t=e(78112),E=e(16494),w=e(27902),p=e(5137),c=e(83473);tt.exports=i;function i(s,n){if(!(this instanceof i))return new i(s,n);this.traces=[],this.passes={},this.regl=s,this.scatter=S(s),this.canvas=this.scatter.canvas}i.prototype.render=function(){for(var s=this,n,m=[],x=arguments.length;x--;)m[x]=arguments[x];return m.length&&(n=this).update.apply(n,m),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned??(this.planned=E(function(){s.draw(),s.dirty=!0,s.planned=null})):(this.draw(),this.dirty=!0,E(function(){s.dirty=!1})),this)},i.prototype.update=function(){for(var s,n=[],m=arguments.length;m--;)n[m]=arguments[m];if(n.length){for(var x=0;x_)&&!(!f.lower&&C<_)){var F=r(f.id,C,_),O=this.passes[F]||(this.passes[F]={});if(x.data&&(x.transpose?O.positions={x:{buffer:f.buffer,offset:_,count:b,stride:d},y:{buffer:f.buffer,offset:C,count:b,stride:d}}:O.positions={x:{buffer:f.buffer,offset:_*b,count:b},y:{buffer:f.buffer,offset:C*b,count:b}},O.bounds=o(f.bounds,C,_)),x.domain||x.viewport||x.data){var j=h?o(f.padding,C,_):f.padding;if(f.domain){var B=o(f.domain,C,_),U=B[0],P=B[1],N=B[2],V=B[3];O.viewport=[k+U*M+j[0],L+P*g+j[1],k+N*M-j[2],L+V*g-j[3]]}else O.viewport=[k+_*u+u*j[0],L+C*T+T*j[1],k+(_+1)*u-u*j[2],L+(C+1)*T-T*j[3]]}x.color&&(O.color=f.color),x.size&&(O.size=f.size),x.marker&&(O.marker=f.marker),x.borderSize&&(O.borderSize=f.borderSize),x.borderColor&&(O.borderColor=f.borderColor),x.opacity&&(O.opacity=f.opacity),x.range&&(O.range=l?o(f.range,C,_):f.range||O.bounds),f.passes.push(F)}return this},i.prototype.draw=function(){for(var s,n=[],m=arguments.length;m--;)n[m]=arguments[m];if(!n.length)this.scatter.draw();else{for(var x=[],f=0;f2?(h[0],h[2],x=h[1],f=h[3]):h.length?(x=h[0],f=h[1]):(h.x,x=h.y,h.x+h.width,f=h.y+h.height),d.length>2?(v=d[0],l=d[2],d[1],d[3]):d.length?(v=d[0],l=d[1]):(v=d.x,d.y,l=d.x+d.width,d.y+d.height),[v,x,l,f]}function a(s){if(typeof s=="number")return[s,s,s,s];if(s.length===2)return[s[0],s[1],s[0],s[1]];var n=p(s);return[n.x,n.y,n.x+n.width,n.y+n.height]}}),81330:(function(tt){(function(G,e){tt.exports=e()})(this,function(){function G(_e,He){this.id=yt++,this.type=_e,this.data=He}function e(_e){if(_e.length===0)return[];var He=_e.charAt(0),or=_e.charAt(_e.length-1);if(1<_e.length&&He===or&&(He==='"'||He==="'"))return['"'+_e.substr(1,_e.length-2).replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'];if(He=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(_e))return e(_e.substr(0,He.index)).concat(e(He[1])).concat(e(_e.substr(He.index+He[0].length)));if(He=_e.split("."),He.length===1)return['"'+_e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'];for(_e=[],or=0;or"u"?1:window.devicePixelRatio,Ke=!1,ar={},We=function(yr){},$e=function(){};if(typeof He=="string"?or=document.querySelector(He):typeof He=="object"&&(typeof He.nodeName=="string"&&typeof He.appendChild=="function"&&typeof He.getBoundingClientRect=="function"?or=He:typeof He.drawArrays=="function"||typeof He.drawElements=="function"?(ue=He,br=ue.canvas):("gl"in He?ue=He.gl:"canvas"in He?br=c(He.canvas):"container"in He&&(Pr=c(He.container)),"attributes"in He&&(_e=He.attributes),"extensions"in He&&(we=p(He.extensions)),"optionalExtensions"in He&&(Ce=p(He.optionalExtensions)),"onDone"in He&&(We=He.onDone),"profile"in He&&(Ke=!!He.profile),"pixelRatio"in He&&(Ge=+He.pixelRatio),"cachedCode"in He&&(ar=He.cachedCode))),or&&(or.nodeName.toLowerCase()==="canvas"?br=or:Pr=or),!ue){if(!br){if(or=E(Pr||document.body,We,Ge),!or)return null;br=or.canvas,$e=or.onDestroy}_e.premultipliedAlpha===void 0&&(_e.premultipliedAlpha=!0),ue=w(br,_e)}return ue?{gl:ue,canvas:br,container:Pr,extensions:we,optionalExtensions:Ce,pixelRatio:Ge,profile:Ke,cachedCode:ar,onDone:We,onDestroy:$e}:($e(),We("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function r(_e,He){function or(we){we=we.toLowerCase();var Ce;try{Ce=Pr[we]=_e.getExtension(we)}catch{}return!!Ce}for(var Pr={},br=0;br>>=He,or=(255<_e)<<3,_e>>>=or,He|=or,or=(15<_e)<<2,_e>>>=or,He|=or,or=(3<_e)<<1,He|or|_e>>>or>>1}function s(){function _e(Pr){t:{for(var br=16;268435456>=br;br*=16)if(Pr<=br){Pr=br;break t}Pr=0}return br=or[a(Pr)>>2],0>2].push(Pr)}var or=o(8,function(){return[]});return{alloc:_e,free:He,allocType:function(Pr,br){var ue=null;switch(Pr){case 5120:ue=new Int8Array(_e(br),0,br);break;case 5121:ue=new Uint8Array(_e(br),0,br);break;case 5122:ue=new Int16Array(_e(2*br),0,br);break;case 5123:ue=new Uint16Array(_e(2*br),0,br);break;case 5124:ue=new Int32Array(_e(4*br),0,br);break;case 5125:ue=new Uint32Array(_e(4*br),0,br);break;case 5126:ue=new Float32Array(_e(4*br),0,br);break;default:return null}return ue.length===br?ue:ue.subarray(0,br)},freeType:function(Pr){He(Pr.buffer)}}}function n(_e){return!!_e&&typeof _e=="object"&&Array.isArray(_e.shape)&&Array.isArray(_e.stride)&&typeof _e.offset=="number"&&_e.shape.length===_e.stride.length&&(Array.isArray(_e.data)||Kt(_e.data))}function m(_e,He,or,Pr,br,ue){for(var we=0;we$e&&($e=We.buffer.byteLength,ei===5123?$e>>=1:ei===5125&&($e>>=2)),We.vertCount=$e,$e=Cr,0>Cr&&($e=4,Cr=We.buffer.dimension,Cr===1&&($e=0),Cr===2&&($e=1),Cr===3&&($e=4)),We.primType=$e}function we(We){Pr.elementsCount--,delete Ce[We.id],We.buffer.destroy(),We.buffer=null}var Ce={},Ge=0,Ke={uint8:5121,uint16:5123};He.oes_element_index_uint&&(Ke.uint32=5125),br.prototype.bind=function(){this.buffer.bind()};var ar=[];return{create:function(We,$e){function yr(Dr){if(Dr)if(typeof Dr=="number")Cr(Dr),Sr.primType=4,Sr.vertCount=Dr|0,Sr.type=5121;else{var Or=null,ei=35044,Nr=-1,re=-1,ae=0,wr=0;Array.isArray(Dr)||Kt(Dr)||n(Dr)?Or=Dr:("data"in Dr&&(Or=Dr.data),"usage"in Dr&&(ei=jt[Dr.usage]),"primitive"in Dr&&(Nr=Le[Dr.primitive]),"count"in Dr&&(re=Dr.count|0),"type"in Dr&&(wr=Ke[Dr.type]),"length"in Dr?ae=Dr.length|0:(ae=re,wr===5123||wr===5122?ae*=2:(wr===5125||wr===5124)&&(ae*=4))),ue(Sr,Or,ei,Nr,re,ae,wr)}else Cr(),Sr.primType=4,Sr.vertCount=0,Sr.type=5121;return yr}var Cr=or.create(null,34963,!0),Sr=new br(Cr._buffer);return Pr.elementsCount++,yr(We),yr._reglType="elements",yr._elements=Sr,yr.subdata=function(Dr,Or){return Cr.subdata(Dr,Or),yr},yr.destroy=function(){we(Sr)},yr},createStream:function(We){var $e=ar.pop();return $e||($e=new br(or.create(null,34963,!0,!1)._buffer)),ue($e,We,35040,-1,-1,0,0),$e},destroyStream:function(We){ar.push(We)},getElements:function(We){return typeof We=="function"&&We._elements instanceof br?We._elements:null},clear:function(){Gt(Ce).forEach(we)}}}function b(_e){for(var He=Ot.allocType(5123,_e.length),or=0;or<_e.length;++or)if(isNaN(_e[or]))He[or]=65535;else if(_e[or]===1/0)He[or]=31744;else if(_e[or]===-1/0)He[or]=64512;else{ve[0]=_e[or];var ue=ke[0],Pr=ue>>>31<<15,br=(ue<<1>>>24)-127,ue=ue>>13&1023;He[or]=-24>br?Pr:-14>br?Pr+(ue+1024>>-14-br):15>=aa,Li.height>>=aa,$e(Li,Si[aa]),Xr.mipmask|=1<ji;++ji)Xr.images[ji]=null;return Xr}function ae(Xr){for(var ji=Xr.images,Li=0;LiXr){for(var ji=0;ji=--this.refCount&&fr(this)}}),we.profile&&(ue.getTotalTextureSize=function(){var Xr=0;return Object.keys(Ga).forEach(function(ji){Xr+=Ga[ji].stats.size}),Xr}),{create2D:function(Xr,ji){function Li(aa,Ji){var na=Si.texInfo;wr.call(na);var fa=re();return typeof aa=="number"?typeof Ji=="number"?Or(fa,aa|0,Ji|0):Or(fa,aa|0,aa|0):aa?(_r(na,aa),ei(fa,aa)):Or(fa,1,1),na.genMipmaps&&(fa.mipmask=(fa.width<<1)-1),Si.mipmask=fa.mipmask,Ge(Si,fa),Si.internalformat=fa.internalformat,Li.width=fa.width,Li.height=fa.height,pr(Si),Nr(fa,3553),lr(na,3553),xr(),ae(fa),we.profile&&(Si.stats.size=_(Si.internalformat,Si.type,fa.width,fa.height,na.genMipmaps,!1)),Li.format=li[Si.internalformat],Li.type=ci[Si.type],Li.mag=Ni[na.magFilter],Li.min=si[na.minFilter],Li.wrapS=Ci[na.wrapS],Li.wrapT=Ci[na.wrapT],Li}var Si=new qe(3553);return Ga[Si.id]=Si,ue.textureCount++,Li(Xr,ji),Li.subimage=function(aa,Ji,na,fa){Ji|=0,na|=0,fa|=0;var Ca=Cr();return Ge(Ca,Si),Ca.width=0,Ca.height=0,$e(Ca,aa),Ca.width=Ca.width||(Si.width>>fa)-Ji,Ca.height=Ca.height||(Si.height>>fa)-na,pr(Si),yr(Ca,3553,Ji,na,fa),xr(),Sr(Ca),Li},Li.resize=function(aa,Ji){var na=aa|0,fa=Ji|0||na;if(na===Si.width&&fa===Si.height)return Li;Li.width=Si.width=na,Li.height=Si.height=fa,pr(Si);for(var Ca=0;Si.mipmask>>Ca;++Ca){var Ia=na>>Ca,On=fa>>Ca;if(!Ia||!On)break;_e.texImage2D(3553,Ca,Si.format,Ia,On,0,Si.format,Si.type,null)}return xr(),we.profile&&(Si.stats.size=_(Si.internalformat,Si.type,na,fa,!1,!1)),Li},Li._reglType="texture2d",Li._texture=Si,we.profile&&(Li.stats=Si.stats),Li.destroy=function(){Si.decRef()},Li},createCube:function(Xr,ji,Li,Si,aa,Ji){function na(Ia,On,hr,jr,Ii,Hi){var Oi,sa=fa.texInfo;for(wr.call(sa),Oi=0;6>Oi;++Oi)Ca[Oi]=re();if(typeof Ia=="number"||!Ia)for(Ia=Ia|0||1,Oi=0;6>Oi;++Oi)Or(Ca[Oi],Ia,Ia);else if(typeof Ia=="object")if(On)ei(Ca[0],Ia),ei(Ca[1],On),ei(Ca[2],hr),ei(Ca[3],jr),ei(Ca[4],Ii),ei(Ca[5],Hi);else if(_r(sa,Ia),Ke(fa,Ia),"faces"in Ia)for(Ia=Ia.faces,Oi=0;6>Oi;++Oi)Ge(Ca[Oi],fa),ei(Ca[Oi],Ia[Oi]);else for(Oi=0;6>Oi;++Oi)ei(Ca[Oi],Ia);for(Ge(fa,Ca[0]),fa.mipmask=sa.genMipmaps?(Ca[0].width<<1)-1:Ca[0].mipmask,fa.internalformat=Ca[0].internalformat,na.width=Ca[0].width,na.height=Ca[0].height,pr(fa),Oi=0;6>Oi;++Oi)Nr(Ca[Oi],34069+Oi);for(lr(sa,34067),xr(),we.profile&&(fa.stats.size=_(fa.internalformat,fa.type,na.width,na.height,sa.genMipmaps,!0)),na.format=li[fa.internalformat],na.type=ci[fa.type],na.mag=Ni[sa.magFilter],na.min=si[sa.minFilter],na.wrapS=Ci[sa.wrapS],na.wrapT=Ci[sa.wrapT],Oi=0;6>Oi;++Oi)ae(Ca[Oi]);return na}var fa=new qe(34067);Ga[fa.id]=fa,ue.cubeCount++;var Ca=[,,,,,,];return na(Xr,ji,Li,Si,aa,Ji),na.subimage=function(Ia,On,hr,jr,Ii){hr|=0,jr|=0,Ii|=0;var Hi=Cr();return Ge(Hi,fa),Hi.width=0,Hi.height=0,$e(Hi,On),Hi.width=Hi.width||(fa.width>>Ii)-hr,Hi.height=Hi.height||(fa.height>>Ii)-jr,pr(fa),yr(Hi,34069+Ia,hr,jr,Ii),xr(),Sr(Hi),na},na.resize=function(Ia){if(Ia|=0,Ia!==fa.width){na.width=fa.width=Ia,na.height=fa.height=Ia,pr(fa);for(var On=0;6>On;++On)for(var hr=0;fa.mipmask>>hr;++hr)_e.texImage2D(34069+On,hr,fa.format,Ia>>hr,Ia>>hr,0,fa.format,fa.type,null);return xr(),we.profile&&(fa.stats.size=_(fa.internalformat,fa.type,na.width,na.height,!1,!0)),na}},na._reglType="textureCube",na._texture=fa,we.profile&&(na.stats=fa.stats),na.destroy=function(){fa.decRef()},na},clear:function(){for(var Xr=0;XrSi;++Si)if(Li.mipmask&1<>Si,Li.height>>Si,0,Li.internalformat,Li.type,null);else for(var aa=0;6>aa;++aa)_e.texImage2D(34069+aa,Si,Li.internalformat,Li.width>>Si,Li.height>>Si,0,Li.internalformat,Li.type,null);lr(Li.texInfo,Li.target)})},refresh:function(){for(var Xr=0;Xrur;++ur){for(mi=0;mifr;++fr)xr[fr].resize(ur);return pr.width=pr.height=ur,pr},_reglType:"framebufferCube",destroy:function(){xr.forEach(function(fr){fr.destroy()})}})},clear:function(){Gt(lr).forEach(Dr)},restore:function(){Nr.cur=null,Nr.next=null,Nr.dirty=!0,Gt(lr).forEach(function(qe){qe.framebuffer=_e.createFramebuffer(),Or(qe)})}})}function j(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function B(_e,He,or,Pr,br,ue,we){function Ce(Or){if(Or!==Dr.currentVAO){var ei=He.oes_vertex_array_object;Or?ei.bindVertexArrayOES(Or.vao):ei.bindVertexArrayOES(null),Dr.currentVAO=Or}}function Ge(Or){if(Or!==Dr.currentVAO){if(Or)Or.bindAttrs();else{for(var ei=He.angle_instanced_arrays,Nr=0;Nr=pr.byteLength?xr.subdata(pr):(xr.destroy(),Nr.buffers[_r]=null)),Nr.buffers[_r]||(xr=Nr.buffers[_r]=br.create(lr,34962,!1,!0)),qe.buffer=br.getBuffer(xr),qe.size=qe.buffer.dimension|0,qe.normalized=!1,qe.type=qe.buffer.dtype,qe.offset=0,qe.stride=0,qe.divisor=0,qe.state=1,re[_r]=1}else br.getBuffer(lr)?(qe.buffer=br.getBuffer(lr),qe.size=qe.buffer.dimension|0,qe.normalized=!1,qe.type=qe.buffer.dtype,qe.offset=0,qe.stride=0,qe.divisor=0,qe.state=1):br.getBuffer(lr.buffer)?(qe.buffer=br.getBuffer(lr.buffer),qe.size=(+lr.size||qe.buffer.dimension)|0,qe.normalized=!!lr.normalized||!1,qe.type="type"in lr?qt[lr.type]:qe.buffer.dtype,qe.offset=(lr.offset||0)|0,qe.stride=(lr.stride||0)|0,qe.divisor=(lr.divisor||0)|0,qe.state=1):"x"in lr&&(qe.x=+lr.x||0,qe.y=+lr.y||0,qe.z=+lr.z||0,qe.w=+lr.w||0,qe.state=2)}for(xr=0;xrCr&&(Cr=Sr.stats.uniformsCount)}),Cr},or.getMaxAttributesCount=function(){var Cr=0;return $e.forEach(function(Sr){Sr.stats.attributesCount>Cr&&(Cr=Sr.stats.attributesCount)}),Cr}),{clear:function(){var Cr=_e.deleteShader.bind(_e);Gt(Ke).forEach(Cr),Ke={},Gt(ar).forEach(Cr),ar={},$e.forEach(function(Sr){_e.deleteProgram(Sr.program)}),$e.length=0,We={},or.shaderCount=0},program:function(Cr,Sr,Dr,Or){var ei=We[Sr];ei||(ei=We[Sr]={});var Nr=ei[Cr];if(Nr&&(Nr.refCount++,!Or))return Nr;var re=new Ce(Sr,Cr);return or.shaderCount++,Ge(re,Dr,Or),Nr||(ei[Cr]=re),$e.push(re),lt(re,{destroy:function(){if(re.refCount--,0>=re.refCount){_e.deleteProgram(re.program);var ae=$e.indexOf(re);$e.splice(ae,1),or.shaderCount--}0>=ei[re.vertId].refCount&&(_e.deleteShader(ar[re.vertId]),delete ar[re.vertId],delete We[re.fragId][re.vertId]),Object.keys(We[re.fragId]).length||(_e.deleteShader(Ke[re.fragId]),delete Ke[re.fragId],delete We[re.fragId])}})},restore:function(){Ke={},ar={};for(var Cr=0;Cr<$e.length;++Cr)Ge($e[Cr],null,$e[Cr].attributes.map(function(Sr){return[Sr.location,Sr.name]}))},shader:we,frag:-1,vert:-1}}function P(_e,He,or,Pr,br,ue,we){function Ce(Ke){var ar=He.next===null?5121:He.next.colorAttachments[0].texture._texture.type,We=0,$e=0,yr=Pr.framebufferWidth,Cr=Pr.framebufferHeight,Sr=null;return Kt(Ke)?Sr=Ke:Ke&&(We=Ke.x|0,$e=Ke.y|0,yr=(Ke.width||Pr.framebufferWidth-We)|0,Cr=(Ke.height||Pr.framebufferHeight-$e)|0,Sr=Ke.data||null),or(),Ke=yr*Cr*4,Sr||(ar===5121?Sr=new Uint8Array(Ke):ar===5126&&(Sr||(Sr=new Float32Array(Ke)))),_e.pixelStorei(3333,4),_e.readPixels(We,$e,yr,Cr,6408,ar,Sr),Sr}function Ge(Ke){var ar;return He.setFBO({framebuffer:Ke.framebuffer},function(){ar=Ce(Ke)}),ar}return function(Ke){return Ke&&"framebuffer"in Ke?Ge(Ke):Ce(Ke)}}function N(_e){for(var He=Array(_e.length>>2),Pr=0;Pr>5]|=(_e.charCodeAt(Pr/8)&255)<<24-Pr%32;var or=8*_e.length;_e=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225];var Pr=Array(64),br,ue,we,Ce,Ge,Ke,ar,We,$e,yr,Cr;for(He[or>>5]|=128<<24-or%32,He[(or+64>>9<<4)+15]=or,We=0;We$e;$e++){if(16>$e)Pr[$e]=He[$e+We];else{yr=$e,Cr=Pr[$e-2],Cr=K(Cr,17)^K(Cr,19)^Cr>>>10,Cr=nt(Cr,Pr[$e-7]);var Sr=Pr[$e-15];Sr=K(Sr,7)^K(Sr,18)^Sr>>>3,Pr[yr]=nt(nt(Cr,Sr),Pr[$e-16])}yr=Ce,yr=K(yr,6)^K(yr,11)^K(yr,25),yr=nt(nt(nt(nt(ar,yr),Ce&Ge^~Ce&Ke),Ct[$e]),Pr[$e]),ar=or,ar=K(ar,2)^K(ar,13)^K(ar,22),Cr=nt(ar,or&br^or&ue^br&ue),ar=Ke,Ke=Ge,Ge=Ce,Ce=nt(we,yr),we=ue,ue=br,br=or,or=nt(yr,Cr)}_e[0]=nt(or,_e[0]),_e[1]=nt(br,_e[1]),_e[2]=nt(ue,_e[2]),_e[3]=nt(we,_e[3]),_e[4]=nt(Ce,_e[4]),_e[5]=nt(Ge,_e[5]),_e[6]=nt(Ke,_e[6]),_e[7]=nt(ar,_e[7])}for(He="",Pr=0;Pr<32*_e.length;Pr+=8)He+=String.fromCharCode(_e[Pr>>5]>>>24-Pr%32&255);return He}function V(_e){for(var He="",or,Pr=0;Pr<_e.length;Pr++)or=_e.charCodeAt(Pr),He+="0123456789abcdef".charAt(or>>>4&15)+"0123456789abcdef".charAt(or&15);return He}function Y(_e){for(var He="",or=-1,Pr,br;++or<_e.length;)Pr=_e.charCodeAt(or),br=or+1<_e.length?_e.charCodeAt(or+1):0,55296<=Pr&&56319>=Pr&&56320<=br&&57343>=br&&(Pr=65536+((Pr&1023)<<10)+(br&1023),or++),127>=Pr?He+=String.fromCharCode(Pr):2047>=Pr?He+=String.fromCharCode(192|Pr>>>6&31,128|Pr&63):65535>=Pr?He+=String.fromCharCode(224|Pr>>>12&15,128|Pr>>>6&63,128|Pr&63):2097151>=Pr&&(He+=String.fromCharCode(240|Pr>>>18&7,128|Pr>>>12&63,128|Pr>>>6&63,128|Pr&63));return He}function K(_e,He){return _e>>>He|_e<<32-He}function nt(_e,He){var or=(_e&65535)+(He&65535);return(_e>>16)+(He>>16)+(or>>16)<<16|or&65535}function ft(_e){return Array.prototype.slice.call(_e)}function ct(_e){return ft(_e).join("")}function J(_e){function He(){var ar=[],We=[];return lt(function(){ar.push.apply(ar,ft(arguments))},{def:function(){var $e="v"+br++;return We.push($e),0"+Wa+"?"+ai+".constant["+Wa+"]:0;"}).join(""),"}}else{","if(",ua,"(",ai,".buffer)){",ln,"=",ea,".createStream(",34962,",",ai,".buffer);","}else{",ln,"=",ea,".getBuffer(",ai,".buffer);","}",nn,'="type" in ',ai,"?",_i.glTypes,"[",ai,".type]:",ln,".dtype;",zi.normalized,"=!!",ai,".normalized;"),Wr("size"),Wr("offset"),Wr("stride"),Wr("divisor"),Zr("}}"),Zr.exit("if(",zi.isStream,"){",ea,".destroyStream(",ln,");","}"),zi})}),Oi}function ur(hr){var jr=hr.static,Ii=hr.dynamic,Hi={};return Object.keys(jr).forEach(function(Oi){var sa=jr[Oi];Hi[Oi]=ot(function(Qi,qi){return typeof sa=="number"||typeof sa=="boolean"?""+sa:Qi.link(sa)})}),Object.keys(Ii).forEach(function(Oi){var sa=Ii[Oi];Hi[Oi]=rt(sa,function(Qi,qi){return Qi.invoke(qi,sa)})}),Hi}function Br(hr,jr,Ii,Hi,Oi){function sa(zi){var wa=qi[zi];wa&&(Wr[zi]=wa)}var Qi=_r(hr,jr),_i=ae(hr,Oi),qi=wr(hr,_i,Oi),Zr=qe(hr,Oi),Wr=pr(hr,Oi),ai=lr(hr,Oi,Qi);sa("viewport"),sa(Dr("scissor.box"));var _i={framebuffer:_i,draw:Zr,shader:ai,state:Wr,dirty:0"u"?"Date.now()":"performance.now()"}function Qi(wa){ea=jr.def(),wa(ea,"=",sa(),";"),typeof Oi=="string"?wa(ai,".count+=",Oi,";"):wa(ai,".count++;"),yr&&(Hi?(zi=jr.def(),wa(zi,"=",ua,".getNumPendingQueries();")):wa(ua,".beginQuery(",ai,");"))}function qi(wa){wa(ai,".cpuTime+=",sa(),"-",ea,";"),yr&&(Hi?wa(ua,".pushScopeStats(",zi,",",ua,".getNumPendingQueries(),",ai,");"):wa(ua,".endQuery();"))}function Zr(wa){var ln=jr.def(_i,".profile");jr(_i,".profile=",wa,";"),jr.exit(_i,".profile=",ln,";")}var Wr=hr.shared,ai=hr.stats,_i=Wr.current,ua=Wr.timer;Ii=Ii.profile;var ea,zi;if(Ii){if(st(Ii)){Ii.enable?(Qi(jr),qi(jr.exit),Zr("true")):Zr("false");return}Ii=Ii.append(hr,jr),Zr(Ii)}else Ii=jr.def(_i,".profile");Wr=hr.block(),Qi(Wr),jr("if(",Ii,"){",Wr,"}"),hr=hr.block(),qi(hr),jr.exit("if(",Ii,"){",hr,"}")}function Tr(hr,jr,Ii,Hi,Oi){function sa(Zr){switch(Zr){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function Qi(Zr,Wr,ai){function _i(){jr("if(!",wa,".buffer){",ea,".enableVertexAttribArray(",zi,");}");var Wa=ai.type,yn=ai.size?jr.def(ai.size,"||",Wr):Wr;jr("if(",wa,".type!==",Wa,"||",wa,".size!==",yn,"||",sn.map(function(Vs){return wa+"."+Vs+"!=="+ai[Vs]}).join("||"),"){",ea,".bindBuffer(",34962,",",ln,".buffer);",ea,".vertexAttribPointer(",[zi,yn,Wa,ai.normalized,ai.stride,ai.offset],");",wa,".type=",Wa,";",wa,".size=",yn,";",sn.map(function(Vs){return wa+"."+Vs+"="+ai[Vs]+";"}).join(""),"}"),Xr&&(Wa=ai.divisor,jr("if(",wa,".divisor!==",Wa,"){",hr.instancing,".vertexAttribDivisorANGLE(",[zi,Wa],");",wa,".divisor=",Wa,";}"))}function ua(){jr("if(",wa,".buffer){",ea,".disableVertexAttribArray(",zi,");",wa,".buffer=null;","}if(",Ut.map(function(Wa,yn){return wa+"."+Wa+"!=="+nn[yn]}).join("||"),"){",ea,".vertexAttrib4f(",zi,",",nn,");",Ut.map(function(Wa,yn){return wa+"."+Wa+"="+nn[yn]+";"}).join(""),"}")}var ea=qi.gl,zi=jr.def(Zr,".location"),wa=jr.def(qi.attributes,"[",zi,"]");Zr=ai.state;var ln=ai.buffer,nn=[ai.x,ai.y,ai.z,ai.w],sn=["buffer","normalized","offset","stride"];Zr===1?_i():Zr===2?ua():(jr("if(",Zr,"===",1,"){"),_i(),jr("}else{"),ua(),jr("}"))}var qi=hr.shared;Hi.forEach(function(Zr){var Wr=Zr.name,ai=Ii.attributes[Wr],_i;if(ai){if(!Oi(ai))return;_i=ai.append(hr,jr)}else{if(!Oi(Ne))return;var ua=hr.scopeAttrib(Wr);_i={},Object.keys(new Ea).forEach(function(ea){_i[ea]=jr.def(ua,".",ea)})}Qi(hr.link(Zr),sa(Zr.info.type),_i)})}function Vr(hr,jr,Ii,Hi,Oi,sa){for(var Qi=hr.shared,qi=Qi.gl,Zr,Wr=0;Wr>1)",wa],");")}function yn(){Ii(ln,".drawArraysInstancedANGLE(",[ua,ea,zi,wa],");")}_i&&_i!=="null"?sn?Wa():(Ii("if(",_i,"){"),Wa(),Ii("}else{"),yn(),Ii("}")):yn()}function Qi(){function Wa(){Ii(Zr+".drawElements("+[ua,zi,nn,ea+"<<(("+nn+"-5121)>>1)"]+");")}function yn(){Ii(Zr+".drawArrays("+[ua,ea,zi]+");")}_i&&_i!=="null"?sn?Wa():(Ii("if(",_i,"){"),Wa(),Ii("}else{"),yn(),Ii("}")):yn()}var qi=hr.shared,Zr=qi.gl,Wr=qi.draw,ai=Hi.draw,_i=(function(){var Wa=ai.elements,yn=jr;return Wa?((Wa.contextDep&&Hi.contextDynamic||Wa.propDep)&&(yn=Ii),Wa=Wa.append(hr,yn),ai.elementsActive&&yn("if("+Wa+")"+Zr+".bindBuffer(34963,"+Wa+".buffer.buffer);")):(Wa=yn.def(),yn(Wa,"=",Wr,".","elements",";","if(",Wa,"){",Zr,".bindBuffer(",34963,",",Wa,".buffer.buffer);}","else if(",qi.vao,".currentVAO){",Wa,"=",hr.shared.elements+".getElements("+qi.vao,".currentVAO.elements);",Li?"":"if("+Wa+")"+Zr+".bindBuffer(34963,"+Wa+".buffer.buffer);","}")),Wa})(),ua=Oi("primitive"),ea=Oi("offset"),zi=(function(){var Wa=ai.count,yn=jr;return Wa?((Wa.contextDep&&Hi.contextDynamic||Wa.propDep)&&(yn=Ii),Wa=Wa.append(hr,yn)):Wa=yn.def(Wr,".","count"),Wa})();if(typeof zi=="number"){if(zi===0)return}else Ii("if(",zi,"){"),Ii.exit("}");var wa,ln;Xr&&(wa=Oi("instances"),ln=hr.instancing);var nn=_i+".type",sn=ai.elements&&st(ai.elements)&&!ai.vaoActive;Xr&&(typeof wa!="number"||0<=wa)?typeof wa=="string"?(Ii("if(",wa,">0){"),sa(),Ii("}else if(",wa,"<0){"),Qi(),Ii("}")):sa():Qi()}function ci(hr,jr,Ii,Hi,Oi){return jr=Nr(),Oi=jr.proc("body",Oi),Xr&&(jr.instancing=Oi.def(jr.shared.extensions,".angle_instanced_arrays")),hr(jr,Oi,Ii,Hi),jr.compile().body}function Ni(hr,jr,Ii,Hi){Ei(hr,jr),Ii.useVAO?Ii.drawVAO?jr(hr.shared.vao,".setVAO(",Ii.drawVAO.append(hr,jr),");"):jr(hr.shared.vao,".setVAO(",hr.shared.vao,".targetVAO);"):(jr(hr.shared.vao,".setVAO(null);"),Tr(hr,jr,Ii,Hi.attributes,function(){return!0})),Vr(hr,jr,Ii,Hi.uniforms,function(){return!0},!1),li(hr,jr,jr,Ii)}function si(hr,jr){var Ii=hr.proc("draw",1);Ei(hr,Ii),$r(hr,Ii,jr.context),Jr(hr,Ii,jr.framebuffer),Zi(hr,Ii,jr),mi(hr,Ii,jr.state),Di(hr,Ii,jr,!1,!0);var Hi=jr.shader.progVar.append(hr,Ii);if(Ii(hr.shared.gl,".useProgram(",Hi,".program);"),jr.shader.program)Ni(hr,Ii,jr,jr.shader.program);else{Ii(hr.shared.vao,".setVAO(null);");var Oi=hr.global.def("{}"),sa=Ii.def(Hi,".id"),Qi=Ii.def(Oi,"[",sa,"]");Ii(hr.cond(Qi).then(Qi,".call(this,a0);").else(Qi,"=",Oi,"[",sa,"]=",hr.link(function(qi){return ci(Ni,hr,jr,qi,1)}),"(",Hi,");",Qi,".call(this,a0);"))}0=--this.refCount&&we(this)},br.profile&&(Pr.getTotalRenderbufferSize=function(){var We=0;return Object.keys(ar).forEach(function($e){We+=ar[$e].stats.size}),We}),{create:function(We,$e){function yr(Sr,Dr){var Or=0,ei=0,Nr=32854;if(typeof Sr=="object"&&Sr?("shape"in Sr?(ei=Sr.shape,Or=ei[0]|0,ei=ei[1]|0):("radius"in Sr&&(Or=ei=Sr.radius|0),"width"in Sr&&(Or=Sr.width|0),"height"in Sr&&(ei=Sr.height|0)),"format"in Sr&&(Nr=Ce[Sr.format])):typeof Sr=="number"?(Or=Sr|0,ei=typeof Dr=="number"?Dr|0:Or):Sr||(Or=ei=1),Or!==Cr.width||ei!==Cr.height||Nr!==Cr.format)return yr.width=Cr.width=Or,yr.height=Cr.height=ei,Cr.format=Nr,_e.bindRenderbuffer(36161,Cr.renderbuffer),_e.renderbufferStorage(36161,Nr,Or,ei),br.profile&&(Cr.stats.size=Tt[Cr.format]*Cr.width*Cr.height),yr.format=Ge[Cr.format],yr}var Cr=new ue(_e.createRenderbuffer());return ar[Cr.id]=Cr,Pr.renderbufferCount++,yr(We,$e),yr.resize=function(Sr,Dr){var Or=Sr|0,ei=Dr|0||Or;return Or===Cr.width&&ei===Cr.height||(yr.width=Cr.width=Or,yr.height=Cr.height=ei,_e.bindRenderbuffer(36161,Cr.renderbuffer),_e.renderbufferStorage(36161,Cr.format,Or,ei),br.profile&&(Cr.stats.size=Tt[Cr.format]*Cr.width*Cr.height)),yr},yr._reglType="renderbuffer",yr._renderbuffer=Cr,br.profile&&(yr.stats=Cr.stats),yr.destroy=function(){Cr.decRef()},yr},clear:function(){Gt(ar).forEach(we)},restore:function(){Gt(ar).forEach(function(We){We.renderbuffer=_e.createRenderbuffer(),_e.bindRenderbuffer(36161,We.renderbuffer),_e.renderbufferStorage(36161,We.format,We.width,We.height)}),_e.bindRenderbuffer(36161,null)}}},It=[];It[6408]=4,It[6407]=3;var Mt=[];Mt[5121]=1,Mt[5126]=4,Mt[36193]=2;var Ct=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Ut=["x","y","z","w"],Zt="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),Me={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Be={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ge={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ee={cw:2304,ccw:2305},Ne=new Z(!1,!1,!1,function(){}),sr=function(_e,He){function or(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function Pr(ar,We,$e){var yr=we.pop()||new or;yr.startQueryIndex=ar,yr.endQueryIndex=We,yr.sum=0,yr.stats=$e,Ce.push(yr)}if(!He.ext_disjoint_timer_query)return null;var br=[],ue=[],we=[],Ce=[],Ge=[],Ke=[];return{beginQuery:function(ar){var We=br.pop()||He.ext_disjoint_timer_query.createQueryEXT();He.ext_disjoint_timer_query.beginQueryEXT(35007,We),ue.push(We),Pr(ue.length-1,ue.length,ar)},endQuery:function(){He.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:Pr,update:function(){var ar=ue.length,We;if(ar!==0){Ke.length=Math.max(Ke.length,ar+1),Ge.length=Math.max(Ge.length,ar+1),Ge[0]=0;var $e=Ke[0]=0;for(We=ar=0;We=Di.length&&Pr()}var wi=ut(Di,si);Di[wi]=Ci}}}function Ke(){var si=mi.viewport,Ci=mi.scissor_box;si[0]=si[1]=Ci[0]=Ci[1]=0,wr.viewportWidth=wr.framebufferWidth=wr.drawingBufferWidth=si[2]=Ci[2]=yr.drawingBufferWidth,wr.viewportHeight=wr.framebufferHeight=wr.drawingBufferHeight=si[3]=Ci[3]=yr.drawingBufferHeight}function ar(){wr.tick+=1,wr.time=$e(),Ke(),Jr.procs.poll()}function We(){ur.refresh(),Ke(),Jr.procs.refresh(),Nr&&Nr.update()}function $e(){return(St()-re)/1e3}if(_e=i(_e),!_e)return null;var yr=_e.gl,Cr=yr.getContextAttributes();yr.isContextLost();var Sr=r(yr,_e);if(!Sr)return null;var Zi=t(),Dr={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},Or=_e.cachedCode||{},ei=Sr.extensions,Nr=sr(yr,ei),re=St(),_r=yr.drawingBufferWidth,ae=yr.drawingBufferHeight,wr={tick:0,time:0,viewportWidth:_r,viewportHeight:ae,framebufferWidth:_r,framebufferHeight:ae,drawingBufferWidth:_r,drawingBufferHeight:ae,pixelRatio:_e.pixelRatio},_r={elements:null,primitive:4,count:-1,offset:0,instances:-1},lr=Ht(yr,ei),qe=h(yr,Dr,_e,function(si){return xr.destroyBuffer(si)}),pr=d(yr,ei,qe,Dr),xr=B(yr,ei,lr,Dr,qe,pr,_r),fr=U(yr,Zi,Dr,_e),ur=F(yr,ei,lr,function(){Jr.procs.poll()},wr,Dr,_e),Br=_t(yr,ei,lr,Dr,_e),$r=O(yr,ei,lr,ur,Br,Dr),Jr=X(yr,Zi,ei,lr,qe,pr,ur,$r,{},xr,fr,_r,wr,Nr,Or,_e),Zi=P(yr,$r,Jr.procs.poll,wr,Cr,ei,lr),mi=Jr.next,Ei=yr.canvas,Di=[],Tr=[],Vr=[],li=[_e.onDestroy],ci=null;Ei&&(Ei.addEventListener("webglcontextlost",br,!1),Ei.addEventListener("webglcontextrestored",ue,!1));var Ni=$r.setFBO=we({framebuffer:kt.define.call(null,1,"framebuffer")});return We(),Cr=lt(we,{clear:function(si){if("framebuffer"in si)if(si.framebuffer&&si.framebuffer_reglType==="framebufferCube")for(var Ci=0;6>Ci;++Ci)Ni(lt({framebuffer:si.framebuffer.faces[Ci]},si),Ce);else Ni(si,Ce);else Ce(null,si)},prop:kt.define.bind(null,1),context:kt.define.bind(null,2),this:kt.define.bind(null,3),draw:we({}),buffer:function(si){return qe.create(si,34962,!1,!1)},elements:function(si){return pr.create(si,!1)},texture:ur.create2D,cube:ur.createCube,renderbuffer:Br.create,framebuffer:$r.create,framebufferCube:$r.createCube,vao:xr.createVAO,attributes:Cr,frame:Ge,on:function(si,Ci){var wi;switch(si){case"frame":return Ge(Ci);case"lost":wi=Tr;break;case"restore":wi=Vr;break;case"destroy":wi=li}return wi.push(Ci),{cancel:function(){for(var ma=0;ma4294967295||p(i)!==i)throw new w("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in c&&E){var s=E(c,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(a=!1)}return(o||a||!r)&&(t?A(c,"length",i,!0,!0):A(c,"length",i)),c}}),90386:(function(tt,G,e){tt.exports=A;var S=e(7683).EventEmitter;e(28062)(A,S),A.Readable=e(44639),A.Writable=e(84627),A.Duplex=e(71977),A.Transform=e(40255),A.PassThrough=e(28765),A.finished=e(37165),A.pipeline=e(6772),A.Stream=A;function A(){S.call(this)}A.prototype.pipe=function(t,E){var w=this;function p(n){t.writable&&t.write(n)===!1&&w.pause&&w.pause()}w.on("data",p);function c(){w.readable&&w.resume&&w.resume()}t.on("drain",c),!t._isStdio&&(!E||E.end!==!1)&&(w.on("end",r),w.on("close",o));var i=!1;function r(){i||(i=!0,t.end())}function o(){i||(i=!0,typeof t.destroy=="function"&&t.destroy())}function a(n){if(s(),S.listenerCount(this,"error")===0)throw n}w.on("error",a),t.on("error",a);function s(){w.removeListener("data",p),t.removeListener("drain",c),w.removeListener("end",r),w.removeListener("close",o),w.removeListener("error",a),t.removeListener("error",a),w.removeListener("end",s),w.removeListener("close",s),t.removeListener("close",s)}return w.on("end",s),w.on("close",s),t.on("close",s),t.emit("pipe",w),t}}),44059:(function(tt){function G(p,c){p.prototype=Object.create(c.prototype),p.prototype.constructor=p,p.__proto__=c}var e={};function S(p,c,i){i||(i=Error);function r(a,s,n){return typeof c=="string"?c:c(a,s,n)}var o=(function(a){G(s,a);function s(n,m,x){return a.call(this,r(n,m,x))||this}return s})(i);o.prototype.name=i.name,o.prototype.code=p,e[p]=o}function A(p,c){if(Array.isArray(p)){var i=p.length;return p=p.map(function(r){return String(r)}),i>2?`one of ${c} ${p.slice(0,i-1).join(", ")}, or `+p[i-1]:i===2?`one of ${c} ${p[0]} or ${p[1]}`:`of ${c} ${p[0]}`}else return`of ${c} ${String(p)}`}function t(p,c,i){return p.substr(!i||i<0?0:+i,c.length)===c}function E(p,c,i){return(i===void 0||i>p.length)&&(i=p.length),p.substring(i-c.length,i)===c}function w(p,c,i){return typeof i!="number"&&(i=0),i+c.length>p.length?!1:p.indexOf(c,i)!==-1}S("ERR_INVALID_OPT_VALUE",function(p,c){return'The value "'+c+'" is invalid for option "'+p+'"'},TypeError),S("ERR_INVALID_ARG_TYPE",function(p,c,i){var r;typeof c=="string"&&t(c,"not ")?(r="must not be",c=c.replace(/^not /,"")):r="must be";var o=E(p," argument")?`The ${p} ${r} ${A(c,"type")}`:`The "${p}" ${w(p,".")?"property":"argument"} ${r} ${A(c,"type")}`;return o+=`. Received type ${typeof i}`,o},TypeError),S("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),S("ERR_METHOD_NOT_IMPLEMENTED",function(p){return"The "+p+" method is not implemented"}),S("ERR_STREAM_PREMATURE_CLOSE","Premature close"),S("ERR_STREAM_DESTROYED",function(p){return"Cannot call "+p+" after a stream was destroyed"}),S("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),S("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),S("ERR_STREAM_WRITE_AFTER_END","write after end"),S("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),S("ERR_UNKNOWN_ENCODING",function(p){return"Unknown encoding: "+p},TypeError),S("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),tt.exports.F=e}),71977:(function(tt,G,e){var S=e(33282),A=Object.keys||function(a){var s=[];for(var n in a)s.push(n);return s};tt.exports=i;var t=e(44639),E=e(84627);e(28062)(i,t);for(var w=A(E.prototype),p=0;p0)if(typeof rt!="string"&&!yt.objectMode&&Object.getPrototypeOf(rt)!==w.prototype&&(rt=c(rt)),ut)yt.endEmitted?M(ot,new l):C(ot,yt,rt,!0);else if(yt.ended)M(ot,new f);else{if(yt.destroyed)return!1;yt.reading=!1,yt.decoder&&!X?(rt=yt.decoder.write(rt),yt.objectMode||rt.length!==0?C(ot,yt,rt,!1):N(ot,yt)):C(ot,yt,rt,!1)}else ut||(yt.reading=!1,N(ot,yt))}return!yt.ended&&(yt.length=F?ot=F:(ot--,ot|=ot>>>1,ot|=ot>>>2,ot|=ot>>>4,ot|=ot>>>8,ot|=ot>>>16,ot++),ot}function j(ot,rt){return ot<=0||rt.length===0&&rt.ended?0:rt.objectMode?1:ot===ot?(ot>rt.highWaterMark&&(rt.highWaterMark=O(ot)),ot<=rt.length?ot:rt.ended?rt.length:(rt.needReadable=!0,0)):rt.flowing&&rt.length?rt.buffer.head.data.length:rt.length}u.prototype.read=function(ot){o("read",ot),ot=parseInt(ot,10);var rt=this._readableState,X=ot;if(ot!==0&&(rt.emittedReadable=!1),ot===0&&rt.needReadable&&((rt.highWaterMark===0?rt.length>0:rt.length>=rt.highWaterMark)||rt.ended))return o("read: emitReadable",rt.length,rt.ended),rt.length===0&&rt.ended?Q(this):U(this),null;if(ot=j(ot,rt),ot===0&&rt.ended)return rt.length===0&&Q(this),null;var ut=rt.needReadable;o("need readable",ut),(rt.length===0||rt.length-ot0?et(ot,rt):null;return lt===null?(rt.needReadable=rt.length<=rt.highWaterMark,ot=0):(rt.length-=ot,rt.awaitDrain=0),rt.length===0&&(rt.ended||(rt.needReadable=!0),X!==ot&&rt.ended&&Q(this)),lt!==null&&this.emit("data",lt),lt};function B(ot,rt){if(o("onEofChunk"),!rt.ended){if(rt.decoder){var X=rt.decoder.end();X&&X.length&&(rt.buffer.push(X),rt.length+=rt.objectMode?1:X.length)}rt.ended=!0,rt.sync?U(ot):(rt.needReadable=!1,rt.emittedReadable||(rt.emittedReadable=!0,P(ot)))}}function U(ot){var rt=ot._readableState;o("emitReadable",rt.needReadable,rt.emittedReadable),rt.needReadable=!1,rt.emittedReadable||(o("emitReadable",rt.flowing),rt.emittedReadable=!0,S.nextTick(P,ot))}function P(ot){var rt=ot._readableState;o("emitReadable_",rt.destroyed,rt.length,rt.ended),!rt.destroyed&&(rt.length||rt.ended)&&(ot.emit("readable"),rt.emittedReadable=!1),rt.needReadable=!rt.flowing&&!rt.ended&&rt.length<=rt.highWaterMark,J(ot)}function N(ot,rt){rt.readingMore||(rt.readingMore=!0,S.nextTick(V,ot,rt))}function V(ot,rt){for(;!rt.reading&&!rt.ended&&(rt.length1&&st(ut.pipes,ot)!==-1)&&!St&&(o("false write response, pause",ut.awaitDrain),ut.awaitDrain++),X.pause())}function Kt(qt){o("onerror",qt),At(),ot.removeListener("error",Kt),t(ot,"error")===0&&M(ot,qt)}k(ot,"error",Kt);function Gt(){ot.removeListener("finish",Et),At()}ot.once("close",Gt);function Et(){o("onfinish"),ot.removeListener("close",Gt),At()}ot.once("finish",Et);function At(){o("unpipe"),X.unpipe(ot)}return ot.emit("pipe",X),ut.flowing||(o("pipe resume"),X.resume()),ot};function Y(ot){return function(){var rt=ot._readableState;o("pipeOnDrain",rt.awaitDrain),rt.awaitDrain&&rt.awaitDrain--,rt.awaitDrain===0&&t(ot,"data")&&(rt.flowing=!0,J(ot))}}u.prototype.unpipe=function(ot){var rt=this._readableState,X={hasUnpiped:!1};if(rt.pipesCount===0)return this;if(rt.pipesCount===1)return ot&&ot!==rt.pipes?this:(ot||(ot=rt.pipes),rt.pipes=null,rt.pipesCount=0,rt.flowing=!1,ot&&ot.emit("unpipe",this,X),this);if(!ot){var ut=rt.pipes,lt=rt.pipesCount;rt.pipes=null,rt.pipesCount=0,rt.flowing=!1;for(var yt=0;yt0,ut.flowing!==!1&&this.resume()):ot==="readable"&&!ut.endEmitted&&!ut.readableListening&&(ut.readableListening=ut.needReadable=!0,ut.flowing=!1,ut.emittedReadable=!1,o("on readable",ut.length,ut.reading),ut.length?U(this):ut.reading||S.nextTick(nt,this)),X},u.prototype.addListener=u.prototype.on,u.prototype.removeListener=function(ot,rt){var X=E.prototype.removeListener.call(this,ot,rt);return ot==="readable"&&S.nextTick(K,this),X},u.prototype.removeAllListeners=function(ot){var rt=E.prototype.removeAllListeners.apply(this,arguments);return(ot==="readable"||ot===void 0)&&S.nextTick(K,this),rt};function K(ot){var rt=ot._readableState;rt.readableListening=ot.listenerCount("readable")>0,rt.resumeScheduled&&!rt.paused?rt.flowing=!0:ot.listenerCount("data")>0&&ot.resume()}function nt(ot){o("readable nexttick read 0"),ot.read(0)}u.prototype.resume=function(){var ot=this._readableState;return ot.flowing||(o("resume"),ot.flowing=!ot.readableListening,ft(this,ot)),ot.paused=!1,this};function ft(ot,rt){rt.resumeScheduled||(rt.resumeScheduled=!0,S.nextTick(ct,ot,rt))}function ct(ot,rt){o("resume",rt.reading),rt.reading||ot.read(0),rt.resumeScheduled=!1,ot.emit("resume"),J(ot),rt.flowing&&!rt.reading&&ot.read(0)}u.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function J(ot){var rt=ot._readableState;for(o("flow",rt.flowing);rt.flowing&&ot.read()!==null;);}u.prototype.wrap=function(ot){var rt=this,X=this._readableState,ut=!1;for(var lt in ot.on("end",function(){if(o("wrapped end"),X.decoder&&!X.ended){var kt=X.decoder.end();kt&&kt.length&&rt.push(kt)}rt.push(null)}),ot.on("data",function(kt){o("wrapped data"),X.decoder&&(kt=X.decoder.write(kt)),!(X.objectMode&&kt==null)&&(!X.objectMode&&(!kt||!kt.length)||rt.push(kt)||(ut=!0,ot.pause()))}),ot)this[lt]===void 0&&typeof ot[lt]=="function"&&(this[lt]=(function(kt){return function(){return ot[kt].apply(ot,arguments)}})(lt));for(var yt=0;yt=rt.length?(X=rt.decoder?rt.buffer.join(""):rt.buffer.length===1?rt.buffer.first():rt.buffer.concat(rt.length),rt.buffer.clear()):X=rt.buffer.consume(ot,rt.decoder),X}function Q(ot){var rt=ot._readableState;o("endReadable",rt.endEmitted),rt.endEmitted||(rt.ended=!0,S.nextTick(Z,rt,ot))}function Z(ot,rt){if(o("endReadableNT",ot.endEmitted,ot.length),!ot.endEmitted&&ot.length===0&&(ot.endEmitted=!0,rt.readable=!1,rt.emit("end"),ot.autoDestroy)){var X=rt._writableState;(!X||X.autoDestroy&&X.finished)&&rt.destroy()}}typeof Symbol=="function"&&(u.from=function(ot,rt){return b===void 0&&(b=e(37108)),b(u,ot,rt)});function st(ot,rt){for(var X=0,ut=ot.length;X-1))throw new d(J);return this._writableState.defaultEncoding=J,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function C(J,et,Q){return!J.objectMode&&J.decodeStrings!==!1&&typeof et=="string"&&(et=p.from(et,Q)),et}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _(J,et,Q,Z,st,ot){if(!Q){var rt=C(et,Z,st);Z!==rt&&(Q=!0,st="buffer",Z=rt)}var X=et.objectMode?1:Z.length;et.length+=X;var ut=et.length0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(s){var n={data:s,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(this.length===0)return"";for(var n=this.head,m=""+n.data;n=n.next;)m+=s+n.data;return m}},{key:"concat",value:function(s){if(this.length===0)return c.alloc(0);for(var n=c.allocUnsafe(s>>>0),m=this.head,x=0;m;)o(m.data,n,x),x+=m.data.length,m=m.next;return n}},{key:"consume",value:function(s,n){var m;return sf.length?f.length:s;if(v===f.length?x+=f:x+=f.slice(0,s),s-=v,s===0){v===f.length?(++m,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=f.slice(v));break}++m}return this.length-=m,x}},{key:"_getBuffer",value:function(s){var n=c.allocUnsafe(s),m=this.head,x=1;for(m.data.copy(n),s-=m.data.length;m=m.next;){var f=m.data,v=s>f.length?f.length:s;if(f.copy(n,n.length-s,0,v),s-=v,s===0){v===f.length?(++x,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=f.slice(v));break}++x}return this.length-=x,n}},{key:r,value:function(s,n){return i(this,A({},n,{depth:0,customInspect:!1}))}}]),a})()}),52023:(function(tt,G,e){var S=e(33282);function A(i,r){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(r?r(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,S.nextTick(p,this,i)):S.nextTick(p,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(n){!r&&n?o._writableState?o._writableState.errorEmitted?S.nextTick(E,o):(o._writableState.errorEmitted=!0,S.nextTick(t,o,n)):S.nextTick(t,o,n):r?(S.nextTick(E,o),r(n)):S.nextTick(E,o)}),this)}function t(i,r){p(i,r),E(i)}function E(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function w(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function p(i,r){i.emit("error",r)}function c(i,r){var o=i._readableState,a=i._writableState;o&&o.autoDestroy||a&&a.autoDestroy?i.destroy(r):i.emit("error",r)}tt.exports={destroy:A,undestroy:w,errorOrDestroy:c}}),37165:(function(tt,G,e){var S=e(44059).F.ERR_STREAM_PREMATURE_CLOSE;function A(p){var c=!1;return function(){if(!c){c=!0;var i=[...arguments];p.apply(this,i)}}}function t(){}function E(p){return p.setHeader&&typeof p.abort=="function"}function w(p,c,i){if(typeof c=="function")return w(p,null,c);c||(c={}),i=A(i||t);var r=c.readable||c.readable!==!1&&p.readable,o=c.writable||c.writable!==!1&&p.writable,a=function(){p.writable||n()},s=p._writableState&&p._writableState.finished,n=function(){o=!1,s=!0,r||i.call(p)},m=p._readableState&&p._readableState.endEmitted,x=function(){r=!1,m=!0,o||i.call(p)},f=function(h){i.call(p,h)},v=function(){var h;if(r&&!m)return(!p._readableState||!p._readableState.ended)&&(h=new S),i.call(p,h);if(o&&!s)return(!p._writableState||!p._writableState.ended)&&(h=new S),i.call(p,h)},l=function(){p.req.on("finish",n)};return E(p)?(p.on("complete",n),p.on("abort",v),p.req?l():p.on("request",l)):o&&!p._writableState&&(p.on("end",a),p.on("close",a)),p.on("end",x),p.on("finish",n),c.error!==!1&&p.on("error",f),p.on("close",v),function(){p.removeListener("complete",n),p.removeListener("abort",v),p.removeListener("request",l),p.req&&p.req.removeListener("finish",n),p.removeListener("end",a),p.removeListener("close",a),p.removeListener("finish",n),p.removeListener("end",x),p.removeListener("error",f),p.removeListener("close",v)}}tt.exports=w}),37108:(function(tt){tt.exports=function(){throw Error("Readable.from is not available in the browser")}}),6772:(function(tt,G,e){var S;function A(n){var m=!1;return function(){m||(m=!0,n.apply(void 0,arguments))}}var t=e(44059).F,E=t.ERR_MISSING_ARGS,w=t.ERR_STREAM_DESTROYED;function p(n){if(n)throw n}function c(n){return n.setHeader&&typeof n.abort=="function"}function i(n,m,x,f){f=A(f);var v=!1;n.on("close",function(){v=!0}),S===void 0&&(S=e(37165)),S(n,{readable:m,writable:x},function(h){if(h)return f(h);v=!0,f()});var l=!1;return function(h){if(!v&&!l){if(l=!0,c(n))return n.abort();if(typeof n.destroy=="function")return n.destroy();f(h||new w("pipe"))}}}function r(n){n()}function o(n,m){return n.pipe(m)}function a(n){return!n.length||typeof n[n.length-1]!="function"?p:n.pop()}function s(){var n=[...arguments],m=a(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new E("streams");var x,f=n.map(function(v,l){var h=l0,function(d){x||(x=d),d&&f.forEach(r),!h&&(f.forEach(r),m(x))})});return n.reduce(o)}tt.exports=s}),31976:(function(tt,G,e){var S=e(44059).F.ERR_INVALID_OPT_VALUE;function A(E,w,p){return E.highWaterMark==null?w?E[p]:null:E.highWaterMark}function t(E,w,p,c){var i=A(w,c,p);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0)throw new S(c?p:"highWaterMark",i);return Math.floor(i)}return E.objectMode?16:16384}tt.exports={getHighWaterMark:t}}),60032:(function(tt,G,e){tt.exports=e(7683).EventEmitter}),54304:(function(tt,G,e){var S=e(41041).Buffer,A=S.isEncoding||function(l){switch(l=""+l,l&&l.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function t(l){if(!l)return"utf8";for(var h;;)switch(l){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return l;default:if(h)return;l=(""+l).toLowerCase(),h=!0}}function E(l){var h=t(l);if(typeof h!="string"&&(S.isEncoding===A||!A(l)))throw Error("Unknown encoding: "+l);return h||l}G.I=w;function w(l){this.encoding=E(l);var h;switch(this.encoding){case"utf16le":this.text=s,this.end=n,h=4;break;case"utf8":this.fillLast=r,h=4;break;case"base64":this.text=m,this.end=x,h=3;break;default:this.write=f,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=S.allocUnsafe(h)}w.prototype.write=function(l){if(l.length===0)return"";var h,d;if(this.lastNeed){if(h=this.fillLast(l),h===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d>5==6?2:l>>4==14?3:l>>3==30?4:l>>6==2?-1:-2}function c(l,h,d){var b=h.length-1;if(b=0?(M>0&&(l.lastNeed=M-1),M):--b=0?(M>0&&(l.lastNeed=M-2),M):--b=0?(M>0&&(M===2?M=0:l.lastNeed=M-3),M):0))}function i(l,h,d){if((h[0]&192)!=128)return l.lastNeed=0,"\uFFFD";if(l.lastNeed>1&&h.length>1){if((h[1]&192)!=128)return l.lastNeed=1,"\uFFFD";if(l.lastNeed>2&&h.length>2&&(h[2]&192)!=128)return l.lastNeed=2,"\uFFFD"}}function r(l){var h=this.lastTotal-this.lastNeed,d=i(this,l,h);if(d!==void 0)return d;if(this.lastNeed<=l.length)return l.copy(this.lastChar,h,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);l.copy(this.lastChar,h,0,l.length),this.lastNeed-=l.length}function o(l,h){var d=c(this,l,h);if(!this.lastNeed)return l.toString("utf8",h);this.lastTotal=d;var b=l.length-(d-this.lastNeed);return l.copy(this.lastChar,0,b),l.toString("utf8",h,b)}function a(l){var h=l&&l.length?this.write(l):"";return this.lastNeed?h+"\uFFFD":h}function s(l,h){if((l.length-h)%2==0){var d=l.toString("utf16le",h);if(d){var b=d.charCodeAt(d.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=l[l.length-1],l.toString("utf16le",h,l.length-1)}function n(l){var h=l&&l.length?this.write(l):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return h+this.lastChar.toString("utf16le",0,d)}return h}function m(l,h){var d=(l.length-h)%3;return d===0?l.toString("base64",h):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=l[l.length-1]:(this.lastChar[0]=l[l.length-2],this.lastChar[1]=l[l.length-1]),l.toString("base64",h,l.length-d))}function x(l){var h=l&&l.length?this.write(l):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function f(l){return l.toString(this.encoding)}function v(l){return l&&l.length?this.write(l):""}}),79743:(function(tt,G,e){var S=e(45708).Buffer,A=e(85672),t=e(79399)("stream-parser");tt.exports=i;var E=-1,w=0,p=1,c=2;function i(h){var d=h&&typeof h._transform=="function",b=h&&typeof h._write=="function";if(!d&&!b)throw Error("must pass a Writable or Transform stream in");t("extending Parser into stream"),h._bytes=o,h._skipBytes=a,d&&(h._passthrough=s),d?h._transform=m:h._write=n}function r(h){t("initializing parser stream"),h._parserBytesLeft=0,h._parserBuffers=[],h._parserBuffered=0,h._parserState=E,h._parserCallback=null,typeof h.push=="function"&&(h._parserOutput=h.push.bind(h)),h._parserInit=!0}function o(h,d){A(!this._parserCallback,'there is already a "callback" set!'),A(isFinite(h)&&h>0,'can only buffer a finite number of bytes > 0, got "'+h+'"'),this._parserInit||r(this),t("buffering %o bytes",h),this._parserBytesLeft=h,this._parserCallback=d,this._parserState=w}function a(h,d){A(!this._parserCallback,'there is already a "callback" set!'),A(h>0,'can only skip > 0 bytes, got "'+h+'"'),this._parserInit||r(this),t("skipping %o bytes",h),this._parserBytesLeft=h,this._parserCallback=d,this._parserState=p}function s(h,d){A(!this._parserCallback,'There is already a "callback" set!'),A(h>0,'can only pass through > 0 bytes, got "'+h+'"'),this._parserInit||r(this),t("passing through %o bytes",h),this._parserBytesLeft=h,this._parserCallback=d,this._parserState=c}function n(h,d,b){this._parserInit||r(this),t("write(%o bytes)",h.length),typeof d=="function"&&(b=d),v(this,h,null,b)}function m(h,d,b){this._parserInit||r(this),t("transform(%o bytes)",h.length),typeof d!="function"&&(d=this._parserOutput),v(this,h,d,b)}function x(h,d,b,M){return h._parserBytesLeft<=0?M(Error("got data but not currently parsing anything")):d.length<=h._parserBytesLeft?function(){return f(h,d,b,M)}:function(){var g=d.slice(0,h._parserBytesLeft);return f(h,g,b,function(k){if(k)return M(k);if(d.length>g.length)return function(){return x(h,d.slice(g.length),b,M)}})}}function f(h,d,b,M){if(h._parserBytesLeft-=d.length,t("%o bytes left for stream piece",h._parserBytesLeft),h._parserState===w?(h._parserBuffers.push(d),h._parserBuffered+=d.length):h._parserState===c&&b(d),h._parserBytesLeft===0){var g=h._parserCallback;if(g&&h._parserState===w&&h._parserBuffers.length>1&&(d=S.concat(h._parserBuffers,h._parserBuffered)),h._parserState!==w&&(d=null),h._parserCallback=null,h._parserBuffered=0,h._parserState=E,h._parserBuffers.splice(0),g){var k=[];d&&k.push(d),b&&k.push(b);var L=g.length>k.length;L&&k.push(l(M));var u=g.apply(h,k);if(!L||M===u)return M}}else return M}var v=l(x);function l(h){return function(){for(var d=h.apply(this,arguments);typeof d=="function";)d=d();return d}}}),79399:(function(tt,G,e){var S=e(33282);G=tt.exports=e(43228),G.log=E,G.formatArgs=t,G.save=w,G.load=p,G.useColors=A,G.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:c(),G.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function A(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}G.formatters.j=function(i){try{return JSON.stringify(i)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function t(i){var r=this.useColors;if(i[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+i[0]+(r?"%c ":" ")+"+"+G.humanize(this.diff),r){var o="color: "+this.color;i.splice(1,0,o,"color: inherit");var a=0,s=0;i[0].replace(/%[a-zA-Z%]/g,function(n){n!=="%%"&&(a++,n==="%c"&&(s=a))}),i.splice(s,0,o)}}function E(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function w(i){try{i==null?G.storage.removeItem("debug"):G.storage.debug=i}catch{}}function p(){var i;try{i=G.storage.debug}catch{}return!i&&S!==void 0&&"env"in S&&(i=S.env.DEBUG),i}G.enable(p());function c(){try{return window.localStorage}catch{}}}),43228:(function(tt,G,e){G=tt.exports=t.debug=t.default=t,G.coerce=c,G.disable=w,G.enable=E,G.enabled=p,G.humanize=e(13883),G.names=[],G.skips=[],G.formatters={};var S;function A(i){var r=0,o;for(o in i)r=(r<<5)-r+i.charCodeAt(o),r|=0;return G.colors[Math.abs(r)%G.colors.length]}function t(i){function r(){if(r.enabled){var o=r,a=+new Date;o.diff=a-(S||a),o.prev=S,o.curr=a,S=a;for(var s=Array(arguments.length),n=0;n0)return E(i);if(o==="number"&&isNaN(i)===!1)return r.long?p(i):w(i);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function E(i){if(i=String(i),!(i.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(i);if(r){var o=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return o*t;case"days":case"day":case"d":return o*A;case"hours":case"hour":case"hrs":case"hr":case"h":return o*S;case"minutes":case"minute":case"mins":case"min":case"m":return o*e;case"seconds":case"second":case"secs":case"sec":case"s":return o*G;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}function w(i){return i>=A?Math.round(i/A)+"d":i>=S?Math.round(i/S)+"h":i>=e?Math.round(i/e)+"m":i>=G?Math.round(i/G)+"s":i+"ms"}function p(i){return c(i,A,"day")||c(i,S,"hour")||c(i,e,"minute")||c(i,G,"second")||i+" ms"}function c(i,r,o){if(!(i",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof E.ignore=="string"&&(E.ignore=[E.ignore]),E.ignore=E.ignore.map(function(a){return a.length===1&&(a+=a),a}));var w=S.parse(A,{flat:!0,brackets:E.ignore}),p=w[0].split(t);if(E.escape){for(var c=[],i=0;i0;){f=l[l.length-1];var h=e[f];if(w[f]=0&&c[f].push(p[b])}w[f]=d}else{if(t[f]===A[f]){for(var M=[],g=[],k=0,d=v.length-1;d>=0;--d){var L=v[d];if(E[L]=!1,M.push(L),g.push(c[L]),k+=c[L].length,p[L]=o.length,L===f){v.length=d;break}}o.push(M);for(var u=Array(k),d=0;d1&&(s=1),s<-1&&(s=-1),a*Math.acos(s)},p=function(c,i,r,o,a,s,n,m,x,f,v,l){var h=a**2,d=s**2,b=v**2,M=l**2,g=h*d-h*M-d*b;g<0&&(g=0),g/=h*M+d*b,g=Math.sqrt(g)*(n===m?-1:1);var k=g*a/s*l,L=g*-s/a*v,u=f*k-x*L+(c+r)/2,T=x*k+f*L+(i+o)/2,C=(v-k)/a,_=(l-L)/s,F=(-v-k)/a,O=(-l-L)/s,j=w(1,0,C,_),B=w(C,_,F,O);return m===0&&B>0&&(B-=A),m===1&&B<0&&(B+=A),[u,T,j,B]};G.default=function(c){var i=c.px,r=c.py,o=c.cx,a=c.cy,s=c.rx,n=c.ry,m=c.xAxisRotation,x=m===void 0?0:m,f=c.largeArcFlag,v=f===void 0?0:f,l=c.sweepFlag,h=l===void 0?0:l,d=[];if(s===0||n===0)return[];var b=Math.sin(x*A/360),M=Math.cos(x*A/360),g=M*(i-o)/2+b*(r-a)/2,k=-b*(i-o)/2+M*(r-a)/2;if(g===0&&k===0)return[];s=Math.abs(s),n=Math.abs(n);var L=g**2/s**2+k**2/n**2;L>1&&(s*=Math.sqrt(L),n*=Math.sqrt(L));var u=S(p(i,r,o,a,s,n,v,h,b,M,g,k),4),T=u[0],C=u[1],_=u[2],F=u[3],O=Math.abs(F)/(A/4);Math.abs(1-O)<1e-7&&(O=1);var j=Math.max(Math.ceil(O),1);F/=j;for(var B=0;Bi[2]&&(i[2]=a[s+0]),a[s+1]>i[3]&&(i[3]=a[s+1]);return i}}),41883:(function(tt,G,e){tt.exports=A;var S=e(13193);function A(w){for(var p,c=[],i=0,r=0,o=0,a=0,s=null,n=null,m=0,x=0,f=0,v=w.length;f4?(i=l[l.length-4],r=l[l.length-3]):(i=m,r=x),c.push(l)}return c}function t(w,p,c,i){return["C",w,p,c,i,c,i]}function E(w,p,c,i,r,o){return["C",w/3+.6666666666666666*c,p/3+.6666666666666666*i,r/3+.6666666666666666*c,o/3+.6666666666666666*i,r,o]}}),96021:(function(tt,G,e){var S=e(97251),A=e(26953),t=e(95620),E=e(13986),w=e(88772),p=document.createElement("canvas"),c=p.getContext("2d");tt.exports=i;function i(a,s){if(!E(a))throw Error("Argument should be valid svg path string");s||(s={});var n,m;s.shape?(n=s.shape[0],m=s.shape[1]):(n=p.width=s.w||s.width||200,m=p.height=s.h||s.height||200);var x=Math.min(n,m),f=s.stroke||0,v=s.viewbox||s.viewBox||S(a),l=[n/(v[2]-v[0]),m/(v[3]-v[1])],h=Math.min(l[0]||0,l[1]||0)/2;if(c.fillStyle="black",c.fillRect(0,0,n,m),c.fillStyle="white",f&&(typeof f!="number"&&(f=1),f>0?c.strokeStyle="white":c.strokeStyle="black",c.lineWidth=Math.abs(f)),c.translate(n*.5,m*.5),c.scale(h,h),o()){var d=new Path2D(a);c.fill(d),f&&c.stroke(d)}else t(c,A(a)),c.fill(),f&&c.stroke();return c.setTransform(1,0,0,1,0,0),w(c,{cutoff:s.cutoff==null?.5:s.cutoff,radius:s.radius==null?x*.5:s.radius})}var r;function o(){if(r!=null)return r;var a=document.createElement("canvas").getContext("2d");if(a.canvas.width=a.canvas.height=1,!window.Path2D)return r=!1;var s=new Path2D("M0,0h1v1h-1v-1Z");a.fillStyle="black",a.fill(s);var n=a.getImageData(0,0,1,1);return r=n&&n.data&&n.data[3]===255}}),65657:(function(tt,G,e){var S;(function(A){var t=/^\s+/,E=/\s+$/,w=0,p=A.round,c=A.min,i=A.max,r=A.random;function o(X,ut){if(X||(X=""),ut||(ut={}),X instanceof o)return X;if(!(this instanceof o))return new o(X,ut);var lt=a(X);this._originalInput=X,this._r=lt.r,this._g=lt.g,this._b=lt.b,this._a=lt.a,this._roundA=p(100*this._a)/100,this._format=ut.format||lt.format,this._gradientType=ut.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=lt.ok,this._tc_id=w++}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var X=this.toRgb();return(X.r*299+X.g*587+X.b*114)/1e3},getLuminance:function(){var X=this.toRgb(),ut=X.r/255,lt=X.g/255,yt=X.b/255,kt=ut<=.03928?ut/12.92:A.pow((ut+.055)/1.055,2.4),Lt=lt<=.03928?lt/12.92:A.pow((lt+.055)/1.055,2.4),St=yt<=.03928?yt/12.92:A.pow((yt+.055)/1.055,2.4);return .2126*kt+.7152*Lt+.0722*St},setAlpha:function(X){return this._a=N(X),this._roundA=p(100*this._a)/100,this},toHsv:function(){var X=x(this._r,this._g,this._b);return{h:X.h*360,s:X.s,v:X.v,a:this._a}},toHsvString:function(){var X=x(this._r,this._g,this._b),ut=p(X.h*360),lt=p(X.s*100),yt=p(X.v*100);return this._a==1?"hsv("+ut+", "+lt+"%, "+yt+"%)":"hsva("+ut+", "+lt+"%, "+yt+"%, "+this._roundA+")"},toHsl:function(){var X=n(this._r,this._g,this._b);return{h:X.h*360,s:X.s,l:X.l,a:this._a}},toHslString:function(){var X=n(this._r,this._g,this._b),ut=p(X.h*360),lt=p(X.s*100),yt=p(X.l*100);return this._a==1?"hsl("+ut+", "+lt+"%, "+yt+"%)":"hsla("+ut+", "+lt+"%, "+yt+"%, "+this._roundA+")"},toHex:function(X){return v(this._r,this._g,this._b,X)},toHexString:function(X){return"#"+this.toHex(X)},toHex8:function(X){return l(this._r,this._g,this._b,this._a,X)},toHex8String:function(X){return"#"+this.toHex8(X)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(V(this._r,255)*100)+"%",g:p(V(this._g,255)*100)+"%",b:p(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(V(this._r,255)*100)+"%, "+p(V(this._g,255)*100)+"%, "+p(V(this._b,255)*100)+"%)":"rgba("+p(V(this._r,255)*100)+"%, "+p(V(this._g,255)*100)+"%, "+p(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[v(this._r,this._g,this._b,!0)]||!1},toFilter:function(X){var ut="#"+h(this._r,this._g,this._b,this._a),lt=ut,yt=this._gradientType?"GradientType = 1, ":"";if(X){var kt=o(X);lt="#"+h(kt._r,kt._g,kt._b,kt._a)}return"progid:DXImageTransform.Microsoft.gradient("+yt+"startColorstr="+ut+",endColorstr="+lt+")"},toString:function(X){var ut=!!X;X||(X=this._format);var lt=!1,yt=this._a<1&&this._a>=0;return!ut&&yt&&(X==="hex"||X==="hex6"||X==="hex3"||X==="hex4"||X==="hex8"||X==="name")?X==="name"&&this._a===0?this.toName():this.toRgbString():(X==="rgb"&&(lt=this.toRgbString()),X==="prgb"&&(lt=this.toPercentageRgbString()),(X==="hex"||X==="hex6")&&(lt=this.toHexString()),X==="hex3"&&(lt=this.toHexString(!0)),X==="hex4"&&(lt=this.toHex8String(!0)),X==="hex8"&&(lt=this.toHex8String()),X==="name"&&(lt=this.toName()),X==="hsl"&&(lt=this.toHslString()),X==="hsv"&&(lt=this.toHsvString()),lt||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(X,ut){var lt=X.apply(null,[this].concat([].slice.call(ut)));return this._r=lt._r,this._g=lt._g,this._b=lt._b,this.setAlpha(lt._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(L,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(u,arguments)},_applyCombination:function(X,ut){return X.apply(null,[this].concat([].slice.call(ut)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},o.fromRatio=function(X,ut){if(typeof X=="object"){var lt={};for(var yt in X)X.hasOwnProperty(yt)&&(yt==="a"?lt[yt]=X[yt]:lt[yt]=J(X[yt]));X=lt}return o(X,ut)};function a(X){var ut={r:0,g:0,b:0},lt=1,yt=null,kt=null,Lt=null,St=!1,Ot=!1;return typeof X=="string"&&(X=ot(X)),typeof X=="object"&&(st(X.r)&&st(X.g)&&st(X.b)?(ut=s(X.r,X.g,X.b),St=!0,Ot=String(X.r).substr(-1)==="%"?"prgb":"rgb"):st(X.h)&&st(X.s)&&st(X.v)?(yt=J(X.s),kt=J(X.v),ut=f(X.h,yt,kt),St=!0,Ot="hsv"):st(X.h)&&st(X.s)&&st(X.l)&&(yt=J(X.s),Lt=J(X.l),ut=m(X.h,yt,Lt),St=!0,Ot="hsl"),X.hasOwnProperty("a")&&(lt=X.a)),lt=N(lt),{ok:St,format:X.format||Ot,r:c(255,i(ut.r,0)),g:c(255,i(ut.g,0)),b:c(255,i(ut.b,0)),a:lt}}function s(X,ut,lt){return{r:V(X,255)*255,g:V(ut,255)*255,b:V(lt,255)*255}}function n(X,ut,lt){X=V(X,255),ut=V(ut,255),lt=V(lt,255);var yt=i(X,ut,lt),kt=c(X,ut,lt),Lt,St,Ot=(yt+kt)/2;if(yt==kt)Lt=St=0;else{var Ht=yt-kt;switch(St=Ot>.5?Ht/(2-yt-kt):Ht/(yt+kt),yt){case X:Lt=(ut-lt)/Ht+(ut1&&--Et,Et<.16666666666666666?Kt+(Gt-Kt)*6*Et:Et<.5?Gt:Et<.6666666666666666?Kt+(Gt-Kt)*(.6666666666666666-Et)*6:Kt}if(ut===0)yt=kt=Lt=lt;else{var Ot=lt<.5?lt*(1+ut):lt+ut-lt*ut,Ht=2*lt-Ot;yt=St(Ht,Ot,X+.3333333333333333),kt=St(Ht,Ot,X),Lt=St(Ht,Ot,X-.3333333333333333)}return{r:yt*255,g:kt*255,b:Lt*255}}function x(X,ut,lt){X=V(X,255),ut=V(ut,255),lt=V(lt,255);var yt=i(X,ut,lt),kt=c(X,ut,lt),Lt,St,Ot=yt,Ht=yt-kt;if(St=yt===0?0:Ht/yt,yt==kt)Lt=0;else{switch(yt){case X:Lt=(ut-lt)/Ht+(ut>1)+720)%360;--ut;)yt.h=(yt.h+kt)%360,Lt.push(o(yt));return Lt}function j(X,ut){ut||(ut=6);for(var lt=o(X).toHsv(),yt=lt.h,kt=lt.s,Lt=lt.v,St=[],Ot=1/ut;ut--;)St.push(o({h:yt,s:kt,v:Lt})),Lt=(Lt+Ot)%1;return St}o.mix=function(X,ut,lt){lt=lt===0?0:lt||50;var yt=o(X).toRgb(),kt=o(ut).toRgb(),Lt=lt/100;return o({r:(kt.r-yt.r)*Lt+yt.r,g:(kt.g-yt.g)*Lt+yt.g,b:(kt.b-yt.b)*Lt+yt.b,a:(kt.a-yt.a)*Lt+yt.a})},o.readability=function(X,ut){var lt=o(X),yt=o(ut);return(A.max(lt.getLuminance(),yt.getLuminance())+.05)/(A.min(lt.getLuminance(),yt.getLuminance())+.05)},o.isReadable=function(X,ut,lt){var yt=o.readability(X,ut),kt,Lt=!1;switch(kt=rt(lt),kt.level+kt.size){case"AAsmall":case"AAAlarge":Lt=yt>=4.5;break;case"AAlarge":Lt=yt>=3;break;case"AAAsmall":Lt=yt>=7;break}return Lt},o.mostReadable=function(X,ut,lt){var yt=null,kt=0,Lt,St,Ot,Ht;lt||(lt={}),St=lt.includeFallbackColors,Ot=lt.level,Ht=lt.size;for(var Kt=0;Ktkt&&(kt=Lt,yt=o(ut[Kt]));return o.isReadable(X,yt,{level:Ot,size:Ht})||!St?yt:(lt.includeFallbackColors=!1,o.mostReadable(X,["#fff","#000"],lt))};var B=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},U=o.hexNames=P(B);function P(X){var ut={};for(var lt in X)X.hasOwnProperty(lt)&&(ut[X[lt]]=lt);return ut}function N(X){return X=parseFloat(X),(isNaN(X)||X<0||X>1)&&(X=1),X}function V(X,ut){nt(X)&&(X="100%");var lt=ft(X);return X=c(ut,i(0,parseFloat(X))),lt&&(X=parseInt(X*ut,10)/100),A.abs(X-ut)<1e-6?1:X%ut/parseFloat(ut)}function Y(X){return c(1,i(0,X))}function K(X){return parseInt(X,16)}function nt(X){return typeof X=="string"&&X.indexOf(".")!=-1&&parseFloat(X)===1}function ft(X){return typeof X=="string"&&X.indexOf("%")!=-1}function ct(X){return X.length==1?"0"+X:""+X}function J(X){return X<=1&&(X=X*100+"%"),X}function et(X){return A.round(parseFloat(X)*255).toString(16)}function Q(X){return K(X)/255}var Z=(function(){var X="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",ut="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",lt="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:RegExp("rgb"+ut),rgba:RegExp("rgba"+lt),hsl:RegExp("hsl"+ut),hsla:RegExp("hsla"+lt),hsv:RegExp("hsv"+ut),hsva:RegExp("hsva"+lt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function st(X){return!!Z.CSS_UNIT.exec(X)}function ot(X){X=X.replace(t,"").replace(E,"").toLowerCase();var ut=!1;if(B[X])X=B[X],ut=!0;else if(X=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var lt;return(lt=Z.rgb.exec(X))?{r:lt[1],g:lt[2],b:lt[3]}:(lt=Z.rgba.exec(X))?{r:lt[1],g:lt[2],b:lt[3],a:lt[4]}:(lt=Z.hsl.exec(X))?{h:lt[1],s:lt[2],l:lt[3]}:(lt=Z.hsla.exec(X))?{h:lt[1],s:lt[2],l:lt[3],a:lt[4]}:(lt=Z.hsv.exec(X))?{h:lt[1],s:lt[2],v:lt[3]}:(lt=Z.hsva.exec(X))?{h:lt[1],s:lt[2],v:lt[3],a:lt[4]}:(lt=Z.hex8.exec(X))?{r:K(lt[1]),g:K(lt[2]),b:K(lt[3]),a:Q(lt[4]),format:ut?"name":"hex8"}:(lt=Z.hex6.exec(X))?{r:K(lt[1]),g:K(lt[2]),b:K(lt[3]),format:ut?"name":"hex"}:(lt=Z.hex4.exec(X))?{r:K(lt[1]+""+lt[1]),g:K(lt[2]+""+lt[2]),b:K(lt[3]+""+lt[3]),a:Q(lt[4]+""+lt[4]),format:ut?"name":"hex8"}:(lt=Z.hex3.exec(X))?{r:K(lt[1]+""+lt[1]),g:K(lt[2]+""+lt[2]),b:K(lt[3]+""+lt[3]),format:ut?"name":"hex"}:!1}function rt(X){var ut,lt;return X||(X={level:"AA",size:"small"}),ut=(X.level||"AA").toUpperCase(),lt=(X.size||"small").toLowerCase(),ut!=="AA"&&ut!=="AAA"&&(ut="AA"),lt!=="small"&<!=="large"&&(lt="small"),{level:ut,size:lt}}tt.exports?tt.exports=o:(S=(function(){return o}).call(G,e,G,tt),S!==void 0&&(tt.exports=S))})(Math)}),51498:(function(tt){tt.exports=S,tt.exports.float32=tt.exports.float=S,tt.exports.fract32=tt.exports.fract=e;var G=new Float32Array(1);function e(A,t){if(A.length){if(A instanceof Float32Array)return new Float32Array(A.length);t instanceof Float32Array||(t=S(A));for(var E=0,w=t.length;E":(E.length>100&&(E=E.slice(0,99)+"\u2026"),E=E.replace(A,function(w){switch(w){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("Unexpected character")}}),E)}}),76481:(function(tt,G,e){var S=e(80299),A={object:!0,function:!0,undefined:!0};tt.exports=function(t){return S(t)?hasOwnProperty.call(A,typeof t):!1}}),6887:(function(tt,G,e){var S=e(99497),A=e(63461);tt.exports=function(t){return A(t)?t:S(t,"%v is not a plain function",arguments[1])}}),63461:(function(tt,G,e){var S=e(64276),A=/^\s*class[\s{/}]/,t=Function.prototype.toString;tt.exports=function(E){return!(!S(E)||A.test(t.call(E)))}}),31350:(function(tt,G,e){var S=e(76481);tt.exports=function(A){if(!S(A))return!1;try{return A.constructor?A.constructor.prototype===A:!1}catch{return!1}}}),58698:(function(tt,G,e){var S=e(80299),A=e(76481),t=Object.prototype.toString;tt.exports=function(E){if(!S(E))return null;if(A(E)){var w=E.toString;if(typeof w!="function"||w===t)return null}try{return""+E}catch{return null}}}),9557:(function(tt,G,e){var S=e(99497),A=e(80299);tt.exports=function(t){return A(t)?t:S(t,"Cannot use %v",arguments[1])}}),80299:(function(tt){var G=void 0;tt.exports=function(e){return e!==G&&e!==null}}),66127:(function(tt,G,e){var S=e(54689),A=e(49523),t=e(45708).Buffer;e.g.__TYPEDARRAY_POOL||(e.g.__TYPEDARRAY_POOL={UINT8:A([32,0]),UINT16:A([32,0]),UINT32:A([32,0]),BIGUINT64:A([32,0]),INT8:A([32,0]),INT16:A([32,0]),INT32:A([32,0]),BIGINT64:A([32,0]),FLOAT:A([32,0]),DOUBLE:A([32,0]),DATA:A([32,0]),UINT8C:A([32,0]),BUFFER:A([32,0])});var E=typeof Uint8ClampedArray<"u",w=typeof BigUint64Array<"u",p=typeof BigInt64Array<"u",c=e.g.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=A([32,0])),c.BIGUINT64||(c.BIGUINT64=A([32,0])),c.BIGINT64||(c.BIGINT64=A([32,0])),c.BUFFER||(c.BUFFER=A([32,0]));var i=c.DATA,r=c.BUFFER;G.free=function(u){if(t.isBuffer(u))r[S.log2(u.length)].push(u);else{if(Object.prototype.toString.call(u)!=="[object ArrayBuffer]"&&(u=u.buffer),!u)return;var T=u.length||u.byteLength;i[S.log2(T)|0].push(u)}};function o(u){if(u){var T=u.length||u.byteLength;i[S.log2(T)].push(u)}}function a(u){o(u.buffer)}G.freeUint8=G.freeUint16=G.freeUint32=G.freeBigUint64=G.freeInt8=G.freeInt16=G.freeInt32=G.freeBigInt64=G.freeFloat32=G.freeFloat=G.freeFloat64=G.freeDouble=G.freeUint8Clamped=G.freeDataView=a,G.freeArrayBuffer=o,G.freeBuffer=function(u){r[S.log2(u.length)].push(u)},G.malloc=function(u,T){if(T===void 0||T==="arraybuffer")return s(u);switch(T){case"uint8":return n(u);case"uint16":return m(u);case"uint32":return x(u);case"int8":return f(u);case"int16":return v(u);case"int32":return l(u);case"float":case"float32":return h(u);case"double":case"float64":return d(u);case"uint8_clamped":return b(u);case"bigint64":return g(u);case"biguint64":return M(u);case"buffer":return L(u);case"data":case"dataview":return k(u);default:return null}return null};function s(T){var T=S.nextPow2(T),C=i[S.log2(T)];return C.length>0?C.pop():new ArrayBuffer(T)}G.mallocArrayBuffer=s;function n(u){return new Uint8Array(s(u),0,u)}G.mallocUint8=n;function m(u){return new Uint16Array(s(2*u),0,u)}G.mallocUint16=m;function x(u){return new Uint32Array(s(4*u),0,u)}G.mallocUint32=x;function f(u){return new Int8Array(s(u),0,u)}G.mallocInt8=f;function v(u){return new Int16Array(s(2*u),0,u)}G.mallocInt16=v;function l(u){return new Int32Array(s(4*u),0,u)}G.mallocInt32=l;function h(u){return new Float32Array(s(4*u),0,u)}G.mallocFloat32=G.mallocFloat=h;function d(u){return new Float64Array(s(8*u),0,u)}G.mallocFloat64=G.mallocDouble=d;function b(u){return E?new Uint8ClampedArray(s(u),0,u):n(u)}G.mallocUint8Clamped=b;function M(u){return w?new BigUint64Array(s(8*u),0,u):null}G.mallocBigUint64=M;function g(u){return p?new BigInt64Array(s(8*u),0,u):null}G.mallocBigInt64=g;function k(u){return new DataView(s(u),0,u)}G.mallocDataView=k;function L(u){u=S.nextPow2(u);var T=r[S.log2(u)];return T.length>0?T.pop():new t(u)}G.mallocBuffer=L,G.clearCache=function(){for(var u=0;u<32;++u)c.UINT8[u].length=0,c.UINT16[u].length=0,c.UINT32[u].length=0,c.INT8[u].length=0,c.INT16[u].length=0,c.INT32[u].length=0,c.FLOAT[u].length=0,c.DOUBLE[u].length=0,c.BIGUINT64[u].length=0,c.BIGINT64[u].length=0,c.UINT8C[u].length=0,i[u].length=0,r[u].length=0}}),80886:(function(tt){var G=/[\'\"]/;tt.exports=function(e){return e?(G.test(e.charAt(0))&&(e=e.substr(1)),G.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}}),79788:(function(tt){tt.exports=function(G,e,S){Array.isArray(S)||(S=[].slice.call(arguments,2));for(var A=0,t=S.length;A"u"?!1:C.working?C(Lt):Lt instanceof Map}G.isMap=_;function F(Lt){return i(Lt)==="[object Set]"}F.working=typeof Set<"u"&&F(new Set);function O(Lt){return typeof Set>"u"?!1:F.working?F(Lt):Lt instanceof Set}G.isSet=O;function j(Lt){return i(Lt)==="[object WeakMap]"}j.working=typeof WeakMap<"u"&&j(new WeakMap);function B(Lt){return typeof WeakMap>"u"?!1:j.working?j(Lt):Lt instanceof WeakMap}G.isWeakMap=B;function U(Lt){return i(Lt)==="[object WeakSet]"}U.working=typeof WeakSet<"u"&&U(new WeakSet);function P(Lt){return U(Lt)}G.isWeakSet=P;function N(Lt){return i(Lt)==="[object ArrayBuffer]"}N.working=typeof ArrayBuffer<"u"&&N(new ArrayBuffer);function V(Lt){return typeof ArrayBuffer>"u"?!1:N.working?N(Lt):Lt instanceof ArrayBuffer}G.isArrayBuffer=V;function Y(Lt){return i(Lt)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function K(Lt){return typeof DataView>"u"?!1:Y.working?Y(Lt):Lt instanceof DataView}G.isDataView=K;var nt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ft(Lt){return i(Lt)==="[object SharedArrayBuffer]"}function ct(Lt){return nt===void 0?!1:(ft.working===void 0&&(ft.working=ft(new nt)),ft.working?ft(Lt):Lt instanceof nt)}G.isSharedArrayBuffer=ct;function J(Lt){return i(Lt)==="[object AsyncFunction]"}G.isAsyncFunction=J;function et(Lt){return i(Lt)==="[object Map Iterator]"}G.isMapIterator=et;function Q(Lt){return i(Lt)==="[object Set Iterator]"}G.isSetIterator=Q;function Z(Lt){return i(Lt)==="[object Generator]"}G.isGeneratorObject=Z;function st(Lt){return i(Lt)==="[object WebAssembly.Module]"}G.isWebAssemblyCompiledModule=st;function ot(Lt){return m(Lt,r)}G.isNumberObject=ot;function rt(Lt){return m(Lt,o)}G.isStringObject=rt;function X(Lt){return m(Lt,a)}G.isBooleanObject=X;function ut(Lt){return p&&m(Lt,s)}G.isBigIntObject=ut;function lt(Lt){return c&&m(Lt,n)}G.isSymbolObject=lt;function yt(Lt){return ot(Lt)||rt(Lt)||X(Lt)||ut(Lt)||lt(Lt)}G.isBoxedPrimitive=yt;function kt(Lt){return typeof Uint8Array<"u"&&(V(Lt)||ct(Lt))}G.isAnyArrayBuffer=kt,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Lt){Object.defineProperty(G,Lt,{enumerable:!1,value:function(){throw Error(Lt+" is not supported in userland")}})})}),56557:(function(tt,G,e){var S=e(33282),A=Object.getOwnPropertyDescriptors||function(K){for(var nt=Object.keys(K),ft={},ct=0;ct=J)return st;switch(st){case"%s":return String(ct[ft++]);case"%d":return Number(ct[ft++]);case"%j":try{return JSON.stringify(ct[ft++])}catch{return"[Circular]"}default:return st}}),Q=ct[ft];ft=3&&(ft.depth=arguments[2]),arguments.length>=4&&(ft.colors=arguments[3]),l(nt)?ft.showHidden=nt:nt&&G._extend(ft,nt),k(ft.showHidden)&&(ft.showHidden=!1),k(ft.depth)&&(ft.depth=2),k(ft.colors)&&(ft.colors=!1),k(ft.customInspect)&&(ft.customInspect=!0),ft.colors&&(ft.stylize=i),a(ft,K,ft.depth)}G.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(K,nt){var ft=c.styles[nt];return ft?"\x1B["+c.colors[ft][0]+"m"+K+"\x1B["+c.colors[ft][1]+"m":K}function r(K,nt){return K}function o(K){var nt={};return K.forEach(function(ft,ct){nt[ft]=!0}),nt}function a(K,nt,ft){if(K.customInspect&&nt&&_(nt.inspect)&&nt.inspect!==G.inspect&&!(nt.constructor&&nt.constructor.prototype===nt)){var ct=nt.inspect(ft,K);return M(ct)||(ct=a(K,ct,ft)),ct}var J=s(K,nt);if(J)return J;var et=Object.keys(nt),Q=o(et);if(K.showHidden&&(et=Object.getOwnPropertyNames(nt)),C(nt)&&(et.indexOf("message")>=0||et.indexOf("description")>=0))return n(nt);if(et.length===0){if(_(nt)){var Z=nt.name?": "+nt.name:"";return K.stylize("[Function"+Z+"]","special")}if(L(nt))return K.stylize(RegExp.prototype.toString.call(nt),"regexp");if(T(nt))return K.stylize(Date.prototype.toString.call(nt),"date");if(C(nt))return n(nt)}var st="",ot=!1,rt=["{","}"];if(v(nt)&&(ot=!0,rt=["[","]"]),_(nt)&&(st=" [Function"+(nt.name?": "+nt.name:"")+"]"),L(nt)&&(st=" "+RegExp.prototype.toString.call(nt)),T(nt)&&(st=" "+Date.prototype.toUTCString.call(nt)),C(nt)&&(st=" "+n(nt)),et.length===0&&(!ot||nt.length==0))return rt[0]+st+rt[1];if(ft<0)return L(nt)?K.stylize(RegExp.prototype.toString.call(nt),"regexp"):K.stylize("[Object]","special");K.seen.push(nt);var X=ot?m(K,nt,ft,Q,et):et.map(function(ut){return x(K,nt,ft,Q,ut,ot)});return K.seen.pop(),f(X,st,rt)}function s(K,nt){if(k(nt))return K.stylize("undefined","undefined");if(M(nt)){var ft="'"+JSON.stringify(nt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize(ft,"string")}if(b(nt))return K.stylize(""+nt,"number");if(l(nt))return K.stylize(""+nt,"boolean");if(h(nt))return K.stylize("null","null")}function n(K){return"["+Error.prototype.toString.call(K)+"]"}function m(K,nt,ft,ct,J){for(var et=[],Q=0,Z=nt.length;Q-1&&(Z=et?Z.split(` +`).map(function(ot){return" "+ot}).join(` +`).slice(2):` +`+Z.split(` +`).map(function(ot){return" "+ot}).join(` +`))):Z=K.stylize("[Circular]","special")),k(Q)){if(et&&J.match(/^\d+$/))return Z;Q=JSON.stringify(""+J),Q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Q=Q.slice(1,-1),Q=K.stylize(Q,"name")):(Q=Q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Q=K.stylize(Q,"string"))}return Q+": "+Z}function f(K,nt,ft){var ct=0;return K.reduce(function(J,et){return ct++,et.indexOf(` +`)>=0&&ct++,J+et.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ft[0]+(nt===""?"":nt+` + `)+" "+K.join(`, + `)+" "+ft[1]:ft[0]+nt+" "+K.join(", ")+" "+ft[1]}G.types=e(15724);function v(K){return Array.isArray(K)}G.isArray=v;function l(K){return typeof K=="boolean"}G.isBoolean=l;function h(K){return K===null}G.isNull=h;function d(K){return K==null}G.isNullOrUndefined=d;function b(K){return typeof K=="number"}G.isNumber=b;function M(K){return typeof K=="string"}G.isString=M;function g(K){return typeof K=="symbol"}G.isSymbol=g;function k(K){return K===void 0}G.isUndefined=k;function L(K){return u(K)&&O(K)==="[object RegExp]"}G.isRegExp=L,G.types.isRegExp=L;function u(K){return typeof K=="object"&&!!K}G.isObject=u;function T(K){return u(K)&&O(K)==="[object Date]"}G.isDate=T,G.types.isDate=T;function C(K){return u(K)&&(O(K)==="[object Error]"||K instanceof Error)}G.isError=C,G.types.isNativeError=C;function _(K){return typeof K=="function"}G.isFunction=_;function F(K){return K===null||typeof K=="boolean"||typeof K=="number"||typeof K=="string"||typeof K=="symbol"||K===void 0}G.isPrimitive=F,G.isBuffer=e(44123);function O(K){return Object.prototype.toString.call(K)}function j(K){return K<10?"0"+K.toString(10):K.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var K=new Date,nt=[j(K.getHours()),j(K.getMinutes()),j(K.getSeconds())].join(":");return[K.getDate(),B[K.getMonth()],nt].join(" ")}G.log=function(){console.log("%s - %s",U(),G.format.apply(G,arguments))},G.inherits=e(28062),G._extend=function(K,nt){if(!nt||!u(nt))return K;for(var ft=Object.keys(nt),ct=ft.length;ct--;)K[ft[ct]]=nt[ft[ct]];return K};function P(K,nt){return Object.prototype.hasOwnProperty.call(K,nt)}var N=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;G.promisify=function(K){if(typeof K!="function")throw TypeError('The "original" argument must be of type Function');if(N&&K[N]){var nt=K[N];if(typeof nt!="function")throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(nt,N,{value:nt,enumerable:!1,writable:!1,configurable:!0}),nt}function nt(){for(var ft,ct,J=new Promise(function(Z,st){ft=Z,ct=st}),et=[],Q=0;Q"u"?e.g:globalThis,r=A(),o=E("String.prototype.slice"),a=Object.getPrototypeOf,s=E("Array.prototype.indexOf",!0)||function(f,v){for(var l=0;l-1?v:v==="Object"?x(f):!1}return w?m(f):null}}),1401:(function(tt,G,e){var S=e(24453),A=e(27976),t=S.instance();function E(n){this.local=this.regionalOptions[n||""]||this.regionalOptions[""]}E.prototype=new S.baseCalendar,A(E.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(n,m){if(typeof n=="string"){var x=n.match(p);return x?x[0]:""}var f=this._validateYear(n),v=n.month(),l=""+this.toChineseMonth(f,v);return m&&l.length<2&&(l="0"+l),this.isIntercalaryMonth(f,v)&&(l+="i"),l},monthNames:function(n){if(typeof n=="string"){var m=n.match(c);return m?m[0]:""}var x=this._validateYear(n),f=n.month(),v=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][this.toChineseMonth(x,f)-1];return this.isIntercalaryMonth(x,f)&&(v="\u95F0"+v),v},monthNamesShort:function(n){if(typeof n=="string"){var m=n.match(i);return m?m[0]:""}var x=this._validateYear(n),f=n.month(),v=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][this.toChineseMonth(x,f)-1];return this.isIntercalaryMonth(x,f)&&(v="\u95F0"+v),v},parseMonth:function(n,m){n=this._validateYear(n);var x=parseInt(m),f;if(isNaN(x))m[0]==="\u95F0"&&(f=!0,m=m.substring(1)),m[m.length-1]==="\u6708"&&(m=m.substring(0,m.length-1)),x=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(m);else{var v=m[m.length-1];f=v==="i"||v==="I"}return this.toMonthIndex(n,x,f)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(n,m){if(n.year&&(n=n.year()),typeof n!="number"||n<1888||n>2111)throw m.replace(/\{0\}/,this.local.name);return n},toMonthIndex:function(n,m,x){var f=this.intercalaryMonth(n);if(x&&m!==f||m<1||m>12)throw S.local.invalidMonth.replace(/\{0\}/,this.local.name);return f?!x&&m<=f?m-1:m:m-1},toChineseMonth:function(n,m){n.year&&(n=n.year(),m=n.month());var x=this.intercalaryMonth(n);if(m<0||m>(x?12:11))throw S.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?m>13},isIntercalaryMonth:function(n,m){n.year&&(n=n.year(),m=n.month());var x=this.intercalaryMonth(n);return!!x&&x===m},leapYear:function(n){return this.intercalaryMonth(n)!==0},weekOfYear:function(n,m,x){var f=o[this._validateYear(n,S.local.invalidyear)-o[0]],v=f>>9&4095,l=f>>5&15,h=f&31,d=t.newDate(v,l,h);d.add(4-(d.dayOfWeek()||7),"d");var b=this.toJD(n,m,x)-d.toJD();return 1+Math.floor(b/7)},monthsInYear:function(n){return this.leapYear(n)?13:12},daysInMonth:function(n,m){n.year&&(m=n.month(),n=n.year()),n=this._validateYear(n);var x=r[n-r[0]],f=x>>13?12:11;if(m>f)throw S.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-m?30:29},weekDay:function(n,m,x){return(this.dayOfWeek(n,m,x)||7)<6},toJD:function(n,m,x){var f=this._validate(n,l,x,S.local.invalidDate);n=this._validateYear(f.year()),m=f.month(),x=f.day();var v=this.isIntercalaryMonth(n,m),l=this.toChineseMonth(n,m),h=s(n,l,x,v);return t.toJD(h.year,h.month,h.day)},fromJD:function(n){var m=t.fromJD(n),x=a(m.year(),m.month(),m.day()),f=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,f,x.day)},fromString:function(n){var m=n.match(w),x=this._validateYear(+m[1]),f=+m[2],v=!!m[3],l=this.toMonthIndex(x,f,v),h=+m[4];return this.newDate(x,l,h)},add:function(n,m,x){var f=n.year(),v=n.month(),l=this.isIntercalaryMonth(f,v),h=this.toChineseMonth(f,v),d=Object.getPrototypeOf(E.prototype).add.call(this,n,m,x);if(x==="y"){var b=d.year(),M=d.month(),g=this.isIntercalaryMonth(b,h),k=l&&g?this.toMonthIndex(b,h,!0):this.toMonthIndex(b,h,!1);k!==M&&d.month(k)}return d}});var w=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,p=/^\d?\d[iI]?/m,c=/^闰?十?[一二三四五六七八九]?月/m,i=/^闰?十?[一二三四五六七八九]?/m;S.calendars.chinese=E;var r=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],o=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function a(n,m,x,f){var v,l;if(typeof n=="object")v=n,l=m||{};else{if(!(typeof n=="number"&&n>=1888&&n<=2111))throw Error("Solar year outside range 1888-2111");if(!(typeof m=="number"&&m>=1&&m<=12))throw Error("Solar month outside range 1 - 12");if(!(typeof x=="number"&&x>=1&&x<=31))throw Error("Solar day outside range 1 - 31");v={year:n,month:m,day:x},l=f||{}}var h=o[v.year-o[0]],d=v.year<<9|v.month<<5|v.day;l.year=d>=h?v.year:v.year-1,h=o[l.year-o[0]];var b=h>>9&4095,M=h>>5&15,g=h&31,k,L=new Date(b,M-1,g),u=new Date(v.year,v.month-1,v.day);k=Math.round((u-L)/864e5);var T=r[l.year-r[0]],C;for(C=0;C<13;C++){var _=T&1<<12-C?30:29;if(k<_)break;k-=_}var F=T>>13;return!F||C=1888&&n<=2111))throw Error("Lunar year outside range 1888-2111");if(!(typeof m=="number"&&m>=1&&m<=12))throw Error("Lunar month outside range 1 - 12");if(!(typeof x=="number"&&x>=1&&x<=30))throw Error("Lunar day outside range 1 - 30");var d;typeof f=="object"?(d=!1,l=f):(d=!!f,l=v||{}),h={year:n,month:m,day:x,isIntercalary:d}}for(var b=h.day-1,M=r[h.year-r[0]],g=M>>13,k=g&&(h.month>g||h.isIntercalary)?h.month:h.month-1,L=0;L>9&4095,_=T>>5&15,F=T&31,O=new Date(C,_-1,F+b);return l.year=O.getFullYear(),l.month=1+O.getMonth(),l.day=O.getDate(),l}}),72210:(function(tt,G,e){var S=e(24453),A=e(27976);function t(E){this.local=this.regionalOptions[E||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(p){var w=this._validate(p,this.minMonth,this.minDay,S.local.invalidYear),p=w.year()+(w.year()<0?1:0);return p%4==3||p%4==-1},monthsInYear:function(E){return this._validate(E,this.minMonth,this.minDay,S.local.invalidYear||S.regionalOptions[""].invalidYear),13},weekOfYear:function(E,w,p){var c=this.newDate(E,w,p);return c.add(-c.dayOfWeek(),"d"),Math.floor((c.dayOfYear()-1)/7)+1},daysInMonth:function(E,w){var p=this._validate(E,w,this.minDay,S.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(E,w,p){return(this.dayOfWeek(E,w,p)||7)<6},toJD:function(E,w,p){var c=this._validate(E,w,p,S.local.invalidDate);return E=c.year(),E<0&&E++,c.day()+(c.month()-1)*30+(E-1)*365+Math.floor(E/4)+this.jdEpoch-1},fromJD:function(E){var w=Math.floor(E)+.5-this.jdEpoch,p=Math.floor((w-Math.floor((w+366)/1461))/365)+1;p<=0&&p--,w=Math.floor(E)+.5-this.newDate(p,1,1).toJD();var c=Math.floor(w/30)+1,i=w-(c-1)*30+1;return this.newDate(p,c,i)}}),S.calendars.coptic=t}),28569:(function(tt,G,e){var S=e(24453),A=e(27976);function t(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(w){return this._validate(w,this.minMonth,this.minDay,S.local.invalidYear),!1},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,S.local.invalidYear),13},daysInYear:function(w){return this._validate(w,this.minMonth,this.minDay,S.local.invalidYear),400},weekOfYear:function(w,p,c){var i=this.newDate(w,p,c);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(w,p){var c=this._validate(w,p,this.minDay,S.local.invalidMonth);return this.daysPerMonth[c.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(w,p,c){return(this._validate(w,p,c,S.local.invalidDate).day()+1)%8},weekDay:function(w,p,c){var i=this.dayOfWeek(w,p,c);return i>=2&&i<=6},extraInfo:function(w,p,c){var i=this._validate(w,p,c,S.local.invalidDate);return{century:E[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(w,p,c){var i=this._validate(w,p,c,S.local.invalidDate);return w=i.year()+(i.year()<0?1:0),p=i.month(),c=i.day(),c+(p>1?16:0)+(p>2?(p-2)*32:0)+(w-1)*400+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(w/400)+1;w-=(p-1)*400,w+=w>15?16:0;var c=Math.floor(w/32)+1,i=w-(c-1)*32+1;return this.newDate(p<=0?p-1:p,c,i)}});var E={20:"Fruitbat",21:"Anchovy"};S.calendars.discworld=t}),81133:(function(tt,G,e){var S=e(24453),A=e(27976);function t(E){this.local=this.regionalOptions[E||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(p){var w=this._validate(p,this.minMonth,this.minDay,S.local.invalidYear),p=w.year()+(w.year()<0?1:0);return p%4==3||p%4==-1},monthsInYear:function(E){return this._validate(E,this.minMonth,this.minDay,S.local.invalidYear||S.regionalOptions[""].invalidYear),13},weekOfYear:function(E,w,p){var c=this.newDate(E,w,p);return c.add(-c.dayOfWeek(),"d"),Math.floor((c.dayOfYear()-1)/7)+1},daysInMonth:function(E,w){var p=this._validate(E,w,this.minDay,S.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(E,w,p){return(this.dayOfWeek(E,w,p)||7)<6},toJD:function(E,w,p){var c=this._validate(E,w,p,S.local.invalidDate);return E=c.year(),E<0&&E++,c.day()+(c.month()-1)*30+(E-1)*365+Math.floor(E/4)+this.jdEpoch-1},fromJD:function(E){var w=Math.floor(E)+.5-this.jdEpoch,p=Math.floor((w-Math.floor((w+366)/1461))/365)+1;p<=0&&p--,w=Math.floor(E)+.5-this.newDate(p,1,1).toJD();var c=Math.floor(w/30)+1,i=w-(c-1)*30+1;return this.newDate(p,c,i)}}),S.calendars.ethiopian=t}),78295:(function(tt,G,e){var S=e(24453),A=e(27976);function t(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var p=this._validate(w,this.minMonth,this.minDay,S.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(w){return w=w<0?w+1:w,E(w*7+1,19)<7},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,S.local.invalidYear),this._leapYear(w.year?w.year():w)?13:12},weekOfYear:function(w,p,c){var i=this.newDate(w,p,c);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(w){return w=this._validate(w,this.minMonth,this.minDay,S.local.invalidYear).year(),this.toJD(w===-1?1:w+1,7,1)-this.toJD(w,7,1)},daysInMonth:function(w,p){return w.year&&(p=w.month(),w=w.year()),this._validate(w,p,this.minDay,S.local.invalidMonth),p===12&&this.leapYear(w)||p===8&&E(this.daysInYear(w),10)===5?30:p===9&&E(this.daysInYear(w),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(w,p,c){return this.dayOfWeek(w,p,c)!==6},extraInfo:function(w,p,c){var i=this._validate(w,p,c,S.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(w,p,c){var i=this._validate(w,p,c,S.local.invalidDate);w=i.year(),p=i.month(),c=i.day();var r=w<=0?w+1:w,o=this.jdEpoch+this._delay1(r)+this._delay2(r)+c+1;if(p<7){for(var a=7;a<=this.monthsInYear(w);a++)o+=this.daysInMonth(w,a);for(var a=1;a=this.toJD(p===-1?1:p+1,7,1);)p++;for(var c=wthis.toJD(p,c,this.daysInMonth(p,c));)c++;var i=w-this.toJD(p,c,1)+1;return this.newDate(p,c,i)}});function E(w,p){return w-p*Math.floor(w/p)}S.calendars.hebrew=t}),25512:(function(tt,G,e){var S=e(24453),A=e(27976);function t(E){this.local=this.regionalOptions[E||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(E){return(this._validate(E,this.minMonth,this.minDay,S.local.invalidYear).year()*11+14)%30<11},weekOfYear:function(E,w,p){var c=this.newDate(E,w,p);return c.add(-c.dayOfWeek(),"d"),Math.floor((c.dayOfYear()-1)/7)+1},daysInYear:function(E){return this.leapYear(E)?355:354},daysInMonth:function(E,w){var p=this._validate(E,w,this.minDay,S.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(E,w,p){return this.dayOfWeek(E,w,p)!==5},toJD:function(E,w,p){var c=this._validate(E,w,p,S.local.invalidDate);return E=c.year(),w=c.month(),p=c.day(),E=E<=0?E+1:E,p+Math.ceil(29.5*(w-1))+(E-1)*354+Math.floor((3+11*E)/30)+this.jdEpoch-1},fromJD:function(E){E=Math.floor(E)+.5;var w=Math.floor((30*(E-this.jdEpoch)+10646)/10631);w=w<=0?w-1:w;var p=Math.min(12,Math.ceil((E-29-this.toJD(w,1,1))/29.5)+1),c=E-this.toJD(w,p,1)+1;return this.newDate(w,p,c)}}),S.calendars.islamic=t}),42645:(function(tt,G,e){var S=e(24453),A=e(27976);function t(E){this.local=this.regionalOptions[E||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(p){var w=this._validate(p,this.minMonth,this.minDay,S.local.invalidYear),p=w.year()<0?w.year()+1:w.year();return p%4==0},weekOfYear:function(E,w,p){var c=this.newDate(E,w,p);return c.add(4-(c.dayOfWeek()||7),"d"),Math.floor((c.dayOfYear()-1)/7)+1},daysInMonth:function(E,w){var p=this._validate(E,w,this.minDay,S.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(E,w,p){return(this.dayOfWeek(E,w,p)||7)<6},toJD:function(E,w,p){var c=this._validate(E,w,p,S.local.invalidDate);return E=c.year(),w=c.month(),p=c.day(),E<0&&E++,w<=2&&(E--,w+=12),Math.floor(365.25*(E+4716))+Math.floor(30.6001*(w+1))+p-1524.5},fromJD:function(E){var w=Math.floor(E+.5)+1524,p=Math.floor((w-122.1)/365.25),c=Math.floor(365.25*p),i=Math.floor((w-c)/30.6001),r=i-Math.floor(i<14?1:13),o=p-Math.floor(r>2?4716:4715),a=w-c-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,r,a)}}),S.calendars.julian=t}),62324:(function(tt,G,e){var S=e(24453),A=e(27976);function t(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,S.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,S.local.invalidYear).year();var c=Math.floor(p/400);p%=400,p+=p<0?400:0;var i=Math.floor(p/20);return c+"."+i+"."+p%20},forYear:function(p){if(p=p.split("."),p.length<3)throw"Invalid Mayan year";for(var c=0,i=0;i19||i>0&&r<0)throw"Invalid Mayan year";c=c*20+r}return c},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,S.local.invalidYear),18},weekOfYear:function(p,c,i){return this._validate(p,c,i,S.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,S.local.invalidYear),360},daysInMonth:function(p,c){return this._validate(p,c,this.minDay,S.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,c,i){return this._validate(p,c,i,S.local.invalidDate).day()},weekDay:function(p,c,i){return this._validate(p,c,i,S.local.invalidDate),!0},extraInfo:function(p,c,i){var r=this._validate(p,c,i,S.local.invalidDate).toJD(),o=this._toHaab(r),a=this._toTzolkin(r);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[a[0]-1],tzolkinDay:a[0],tzolkinTrecena:a[1]}},_toHaab:function(p){p-=this.jdEpoch;var c=E(p+8+340,365);return[Math.floor(c/20)+1,E(c,20)]},_toTzolkin:function(p){return p-=this.jdEpoch,[w(p+20,20),w(p+4,13)]},toJD:function(p,c,i){var r=this._validate(p,c,i,S.local.invalidDate);return r.day()+r.month()*20+r.year()*360+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var c=Math.floor(p/360);p%=360,p+=p<0?360:0;var i=Math.floor(p/20),r=p%20;return this.newDate(c,i,r)}});function E(p,c){return p-c*Math.floor(p/c)}function w(p,c){return E(p-1,c)+1}S.calendars.mayan=t}),91662:(function(tt,G,e){var S=e(24453),A=e(27976);function t(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar;var E=S.instance("gregorian");A(t.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(w){var p=this._validate(w,this.minMonth,this.minDay,S.local.invalidYear||S.regionalOptions[""].invalidYear);return E.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(w,p,c){var i=this.newDate(w,p,c);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(w,p){var c=this._validate(w,p,this.minDay,S.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(w,p,c){return(this.dayOfWeek(w,p,c)||7)<6},toJD:function(r,p,c){var i=this._validate(r,p,c,S.local.invalidMonth),r=i.year();r<0&&r++;for(var o=i.day(),a=1;a=this.toJD(p+1,1,1);)p++;for(var c=w-Math.floor(this.toJD(p,1,1)+.5)+1,i=1;c>this.daysInMonth(p,i);)c-=this.daysInMonth(p,i),i++;return this.newDate(p,i,c)}}),S.calendars.nanakshahi=t}),66445:(function(tt,G,e){var S=e(24453),A=e(27976);function t(E){this.local=this.regionalOptions[E||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(E){return this.daysInYear(E)!==this.daysPerYear},weekOfYear:function(E,w,p){var c=this.newDate(E,w,p);return c.add(-c.dayOfWeek(),"d"),Math.floor((c.dayOfYear()-1)/7)+1},daysInYear:function(E){if(E=this._validate(E,this.minMonth,this.minDay,S.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[E]===void 0)return this.daysPerYear;for(var w=0,p=this.minMonth;p<=12;p++)w+=this.NEPALI_CALENDAR_DATA[E][p];return w},daysInMonth:function(E,w){return E.year&&(w=E.month(),E=E.year()),this._validate(E,w,this.minDay,S.local.invalidMonth),this.NEPALI_CALENDAR_DATA[E]===void 0?this.daysPerMonth[w-1]:this.NEPALI_CALENDAR_DATA[E][w]},weekDay:function(E,w,p){return this.dayOfWeek(E,w,p)!==6},toJD:function(E,w,p){var c=this._validate(E,w,p,S.local.invalidDate);E=c.year(),w=c.month(),p=c.day();var i=S.instance(),r=0,o=w,a=E;this._createMissingCalendarData(E);var s=E-(o>9||o===9&&p>=this.NEPALI_CALENDAR_DATA[a][0]?56:57);for(w!==9&&(r=p,o--);o!==9;)o<=0&&(o=12,a--),r+=this.NEPALI_CALENDAR_DATA[a][o],o--;return w===9?(r+=p-this.NEPALI_CALENDAR_DATA[a][0],r<0&&(r+=i.daysInYear(s))):r+=this.NEPALI_CALENDAR_DATA[a][9]-this.NEPALI_CALENDAR_DATA[a][0],i.newDate(s,1,1).add(r,"d").toJD()},fromJD:function(E){var w=S.instance().fromJD(E),p=w.year(),c=w.dayOfYear(),i=p+56;this._createMissingCalendarData(i);for(var r=9,o=this.NEPALI_CALENDAR_DATA[i][0],a=this.NEPALI_CALENDAR_DATA[i][r]-o+1;c>a;)r++,r>12&&(r=1,i++),a+=this.NEPALI_CALENDAR_DATA[i][r];var s=this.NEPALI_CALENDAR_DATA[i][r]-(a-c);return this.newDate(i,r,s)},_createMissingCalendarData:function(E){var w=this.daysPerMonth.slice(0);w.unshift(17);for(var p=E-1;p0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(w,p,c){var i=this.newDate(w,p,c);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(w,p){var c=this._validate(w,p,this.minDay,S.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(w,p,c){return this.dayOfWeek(w,p,c)!==5},toJD:function(w,p,c){var i=this._validate(w,p,c,S.local.invalidDate);w=i.year(),p=i.month(),c=i.day();var r=w-(w>=0?474:473),o=474+E(r,2820);return c+(p<=7?(p-1)*31:(p-1)*30+6)+Math.floor((o*682-110)/2816)+(o-1)*365+Math.floor(r/2820)*1029983+this.jdEpoch-1},fromJD:function(w){w=Math.floor(w)+.5;var p=w-this.toJD(475,1,1),c=Math.floor(p/1029983),i=E(p,1029983),r=2820;if(i!==1029982){var o=Math.floor(i/366),a=E(i,366);r=Math.floor((2134*o+2816*a+2815)/1028522)+o+1}var s=r+2820*c+474;s=s<=0?s-1:s;var n=w-this.toJD(s,1,1)+1,m=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),x=w-this.toJD(s,m,1)+1;return this.newDate(s,m,x)}});function E(w,p){return w-p*Math.floor(w/p)}S.calendars.persian=t,S.calendars.jalali=t}),84756:(function(tt,G,e){var S=e(24453),A=e(27976),t=S.instance();function E(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}E.prototype=new S.baseCalendar,A(E.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(c){var p=this._validate(c,this.minMonth,this.minDay,S.local.invalidYear),c=this._t2gYear(p.year());return t.leapYear(c)},weekOfYear:function(r,p,c){var i=this._validate(r,this.minMonth,this.minDay,S.local.invalidYear),r=this._t2gYear(i.year());return t.weekOfYear(r,i.month(),i.day())},daysInMonth:function(w,p){var c=this._validate(w,p,this.minDay,S.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(w,p,c){return(this.dayOfWeek(w,p,c)||7)<6},toJD:function(r,p,c){var i=this._validate(r,p,c,S.local.invalidDate),r=this._t2gYear(i.year());return t.toJD(r,i.month(),i.day())},fromJD:function(w){var p=t.fromJD(w),c=this._g2tYear(p.year());return this.newDate(c,p.month(),p.day())},_t2gYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)},_g2tYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)}}),S.calendars.taiwan=E}),41858:(function(tt,G,e){var S=e(24453),A=e(27976),t=S.instance();function E(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}E.prototype=new S.baseCalendar,A(E.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var p=this._validate(c,this.minMonth,this.minDay,S.local.invalidYear),c=this._t2gYear(p.year());return t.leapYear(c)},weekOfYear:function(r,p,c){var i=this._validate(r,this.minMonth,this.minDay,S.local.invalidYear),r=this._t2gYear(i.year());return t.weekOfYear(r,i.month(),i.day())},daysInMonth:function(w,p){var c=this._validate(w,p,this.minDay,S.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(w,p,c){return(this.dayOfWeek(w,p,c)||7)<6},toJD:function(r,p,c){var i=this._validate(r,p,c,S.local.invalidDate),r=this._t2gYear(i.year());return t.toJD(r,i.month(),i.day())},fromJD:function(w){var p=t.fromJD(w),c=this._g2tYear(p.year());return this.newDate(c,p.month(),p.day())},_t2gYear:function(w){return w-this.yearsOffset-(w>=1&&w<=this.yearsOffset?1:0)},_g2tYear:function(w){return w+this.yearsOffset+(w>=-this.yearsOffset&&w<=-1?1:0)}}),S.calendars.thai=E}),57985:(function(tt,G,e){var S=e(24453),A=e(27976);function t(w){this.local=this.regionalOptions[w||""]||this.regionalOptions[""]}t.prototype=new S.baseCalendar,A(t.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(w){var p=this._validate(w,this.minMonth,this.minDay,S.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(w,p,c){var i=this.newDate(w,p,c);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(w){for(var p=0,c=1;c<=12;c++)p+=this.daysInMonth(w,c);return p},daysInMonth:function(w,p){for(var c=this._validate(w,p,this.minDay,S.local.invalidMonth).toJD()-24e5+.5,i=0,r=0;rc)return E[i]-E[i-1];i++}return 30},weekDay:function(w,p,c){return this.dayOfWeek(w,p,c)!==5},toJD:function(w,p,c){var i=this._validate(w,p,c,S.local.invalidDate),r=12*(i.year()-1)+i.month()-15292;return i.day()+E[r-1]-1+24e5-.5},fromJD:function(w){for(var p=w-24e5+.5,c=0,i=0;ip);i++)c++;var r=c+15292,o=Math.floor((r-1)/12),a=o+1,s=r-12*o,n=p-E[c-1]+1;return this.newDate(a,s,n)},isValid:function(w,p,c){var i=S.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(i=(w=w.year==null?w:w.year,w>=1276&&w<=1500)),i},_validate:function(w,p,c,i){var r=S.baseCalendar.prototype._validate.apply(this,arguments);if(r.year<1276||r.year>1500)throw i.replace(/\{0\}/,this.local.name);return r}}),S.calendars.ummalqura=t;var E=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]}),24453:(function(tt,G,e){var S=e(27976);function A(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}S(A.prototype,{instance:function(i,r){i=(i||"gregorian").toLowerCase(),r||(r="");var o=this._localCals[i+"-"+r];if(!o&&this.calendars[i]&&(o=new this.calendars[i](r),this._localCals[i+"-"+r]=o),!o)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,i);return o},newDate:function(i,r,o,a,s){return a=(i!=null&&i.year?i.calendar():typeof a=="string"?this.instance(a,s):a)||this.instance(),a.newDate(i,r,o)},substituteDigits:function(i){return function(r){return(r+"").replace(/[0-9]/g,function(o){return i[o]})}},substituteChineseDigits:function(i,r){return function(o){for(var a="",s=0;o>0;){var n=o%10;a=(n===0?"":i[n]+r[s])+a,s++,o=Math.floor(o/10)}return a.indexOf(i[1]+r[1])===0&&(a=a.substr(1)),a||i[0]}}});function t(i,r,o,a){if(this._calendar=i,this._year=r,this._month=o,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function E(i,r){return i=""+i,"000000".substring(0,r-i.length)+i}S(t.prototype,{newDate:function(i,r,o){return this._calendar.newDate(i??this,r,o)},year:function(i){return arguments.length===0?this._year:this.set(i,"y")},month:function(i){return arguments.length===0?this._month:this.set(i,"m")},day:function(i){return arguments.length===0?this._day:this.set(i,"d")},date:function(i,r,o){if(!this._calendar.isValid(i,r,o))throw(c.local.invalidDate||c.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=i,this._month=r,this._day=o,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(i,r){return this._calendar.add(this,i,r)},set:function(i,r){return this._calendar.set(this,i,r)},compareTo:function(i){if(this._calendar.name!==i._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,i._calendar.local.name);var r=this._year===i._year?this._month===i._month?this._day-i._day:this.monthOfYear()-i.monthOfYear():this._year-i._year;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(i){return this._calendar.fromJD(i)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(i){return this._calendar.fromJSDate(i)},toString:function(){return(this.year()<0?"-":"")+E(Math.abs(this.year()),4)+"-"+E(this.month(),2)+"-"+E(this.day(),2)}});function w(){this.shortYearCutoff="+10"}S(w.prototype,{_validateLevel:0,newDate:function(i,r,o){return i==null?this.today():(i.year&&(this._validate(i,r,o,c.local.invalidDate||c.regionalOptions[""].invalidDate),o=i.day(),r=i.month(),i=i.year()),new t(this,i,r,o))},today:function(){return this.fromJSDate(new Date)},epoch:function(i){return this._validate(i,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(i){var r=this._validate(i,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+E(Math.abs(r.year()),4)},monthsInYear:function(i){return this._validate(i,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear),12},monthOfYear:function(i,r){var o=this._validate(i,r,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth);return(o.month()+this.monthsInYear(o)-this.firstMonth)%this.monthsInYear(o)+this.minMonth},fromMonthOfYear:function(i,r){var o=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(i)+this.minMonth;return this._validate(i,o,this.minDay,c.local.invalidMonth||c.regionalOptions[""].invalidMonth),o},daysInYear:function(i){var r=this._validate(i,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(i,r,o){var a=this._validate(i,r,o,c.local.invalidDate||c.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(i,r,o){var a=this._validate(i,r,o,c.local.invalidDate||c.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(i,r,o){return this._validate(i,r,o,c.local.invalidDate||c.regionalOptions[""].invalidDate),{}},add:function(i,r,o){return this._validate(i,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate),this._correctAdd(i,this._add(i,r,o),r,o)},_add:function(i,r,o){if(this._validateLevel++,o==="d"||o==="w"){var a=i.toJD()+r*(o==="w"?this.daysInWeek():1),s=i.calendar().fromJD(a);return this._validateLevel--,[s.year(),s.month(),s.day()]}try{var n=i.year()+(o==="y"?r:0),m=i.monthOfYear()+(o==="m"?r:0),s=i.day();o==="y"?(i.month()!==this.fromMonthOfYear(n,m)&&(m=this.newDate(n,i.month(),this.minDay).monthOfYear()),m=Math.min(m,this.monthsInYear(n)),s=Math.min(s,this.daysInMonth(n,this.fromMonthOfYear(n,m)))):o==="m"&&((function(v){for(;ml-1+v.minMonth;)n++,m-=l,l=v.monthsInYear(n)})(this),s=Math.min(s,this.daysInMonth(n,this.fromMonthOfYear(n,m))));var x=[n,this.fromMonthOfYear(n,m),s];return this._validateLevel--,x}catch(f){throw this._validateLevel--,f}},_correctAdd:function(i,r,o,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||i.year()>0!=r[0]>0)){var s={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],n=o<0?-1:1;r=this._add(i,o*s[0]+n*s[1],s[2])}return i.date(r[0],r[1],r[2])},set:function(i,r,o){this._validate(i,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[""].invalidDate);var a=o==="y"?r:i.year(),s=o==="m"?r:i.month(),n=o==="d"?r:i.day();return(o==="y"||o==="m")&&(n=Math.min(n,this.daysInMonth(a,s))),i.date(a,s,n)},isValid:function(i,r,o){this._validateLevel++;var a=this.hasYearZero||i!==0;if(a){var s=this.newDate(i,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&o-this.minDay13.5?13:1),v=s-(f>2.5?4716:4715);return v<=0&&v--,this.newDate(v,f,x)},toJSDate:function(i,r,o){var a=this._validate(i,r,o,c.local.invalidDate||c.regionalOptions[""].invalidDate),s=new Date(a.year(),a.month()-1,a.day());return s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),s.setHours(s.getHours()>12?s.getHours()+2:0),s},fromJSDate:function(i){return this.newDate(i.getFullYear(),i.getMonth()+1,i.getDate())}});var c=tt.exports=new A;c.cdate=t,c.baseCalendar=w,c.calendars.gregorian=p}),23428:(function(tt,G,e){var S=e(27976),A=e(24453);S(A.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),A.local=A.regionalOptions[""],S(A.cdate.prototype,{formatDate:function(t,E){return typeof t!="string"&&(E=t,t=""),this._calendar.formatDate(t||"",this,E)}}),S(A.baseCalendar.prototype,{UNIX_EPOCH:A.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:A.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(t,E,w){if(typeof t!="string"&&(w=E,E=t,t=""),!E)return"";if(E.calendar()!==this)throw A.local.invalidFormat||A.regionalOptions[""].invalidFormat;t||(t=this.local.dateFormat),w||(w={});var p=w.dayNamesShort||this.local.dayNamesShort,c=w.dayNames||this.local.dayNames,i=w.monthNumbers||this.local.monthNumbers,r=w.monthNamesShort||this.local.monthNamesShort,o=w.monthNames||this.local.monthNames;w.calculateWeek||this.local.calculateWeek;for(var a=function(M,g){for(var k=1;b+k1},s=function(M,g,k,L){var u=""+g;if(a(M,L))for(;u.length1},b=function(O,j){var B=d(O,j),U=[2,3,B?4:2,B?4:2,10,11,20]["oyYJ@!".indexOf(O)+1],P=RegExp("^-?\\d{1,"+U+"}"),N=E.substring(T).match(P);if(!N)throw(A.local.missingNumberAt||A.regionalOptions[""].missingNumberAt).replace(/\{0\}/,T);return T+=N[0].length,parseInt(N[0],10)},M=this,g=function(){if(typeof o=="function"){d("m");var O=o.call(M,E.substring(T));return T+=O.length,O}return b("m")},k=function(O,j,B,U){for(var P=d(O,U)?B:j,N=0;N-1){x=1,f=v;for(var F=this.daysInMonth(m,x);f>F;F=this.daysInMonth(m,x))x++,f-=F}return n>-1?this.fromJD(n):this.newDate(m,x,f)},determineDate:function(t,E,w,p,c){w&&typeof w!="object"&&(c=p,p=w,w=null),typeof p!="string"&&(c=p,p="");var i=this;return E=E?E.newDate():null,t=t==null?E:typeof t=="string"?(function(r){try{return i.parseDate(p,r,c)}catch{}r=r.toLowerCase();for(var o=(r.match(/^c/)&&w?w.newDate():null)||i.today(),a=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=a.exec(r);s;)o.add(parseInt(s[1],10),s[2]||"d"),s=a.exec(r);return o})(t):typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?E:i.today().add(t,"d"):i.newDate(t),t}})}),96144:(function(tt,G,e){e.r(G);var S=e(85072),A=e.n(S),t=e(97825),E=e.n(t),w=e(77659),p=e.n(w),c=e(55056),i=e.n(c),r=e(10540),o=e.n(r),a=e(41113),s=e.n(a),n=e(5955),m={};m.styleTagTransform=s(),m.setAttributes=i(),m.insert=p().bind(null,"head"),m.domAPI=E(),m.insertStyleElement=o(),A()(n.A,m),G.default=n.A&&n.A.locals?n.A.locals:void 0}),85072:(function(tt){var G=[];function e(t){for(var E=-1,w=0;w0?` ${E.layer}`:""} {`),w+=E.css,p&&(w+="}"),E.media&&(w+="}"),E.supports&&(w+="}");var c=E.sourceMap;c&&typeof btoa<"u"&&(w+=` +/*# sourceMappingURL=data:application/json;base64,${btoa(unescape(encodeURIComponent(JSON.stringify(c))))} */`),t.styleTagTransform(w,A,t.options)}function e(A){if(A.parentNode===null)return!1;A.parentNode.removeChild(A)}function S(A){if(typeof document>"u")return{update:function(){},remove:function(){}};var t=A.insertStyleElement(A);return{update:function(E){G(t,A,E)},remove:function(){e(t)}}}tt.exports=S}),41113:(function(tt){function G(e,S){if(S.styleSheet)S.styleSheet.cssText=e;else{for(;S.firstChild;)S.removeChild(S.firstChild);S.appendChild(document.createTextNode(e))}}tt.exports=G}),25446:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2722%27 height=%2722%27 fill=%27%23333%27 viewBox=%270 0 22 22%27%3E%3Cpath d=%27m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0%27/%3E%3C/svg%3E"}),56694:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2722%27 height=%2722%27 fill=%27%2333b5e5%27 viewBox=%270 0 22 22%27%3E%3Cpath d=%27m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0%27/%3E%3C/svg%3E"}),26117:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 fill-rule=%27evenodd%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0%27/%3E%3C/svg%3E"}),66311:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 fill=%27%23fff%27 fill-rule=%27evenodd%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0%27/%3E%3C/svg%3E"}),24420:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23333%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3C/svg%3E"}),77035:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23333%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z%27/%3E%3C/svg%3E"}),43470:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23333%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5%27/%3E%3C/svg%3E"}),13490:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23333%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z%27/%3E%3C/svg%3E"}),80216:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23333%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27m10.5 14 4-8 4 8z%27/%3E%3Cpath fill=%27%23ccc%27 d=%27m10.5 16 4 8 4-8z%27/%3E%3C/svg%3E"}),47695:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%2333b5e5%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3C/svg%3E"}),92228:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%2333b5e5%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3C/svg%3E"}),43737:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23666%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3Cpath fill=%27red%27 d=%27m14 5 1 1-9 9-1-1z%27/%3E%3C/svg%3E"}),48460:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23999%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3Cpath fill=%27red%27 d=%27m14 5 1 1-9 9-1-1z%27/%3E%3C/svg%3E"}),75796:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23aaa%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3Cpath fill=%27red%27 d=%27m14 5 1 1-9 9-1-1z%27/%3E%3C/svg%3E"}),28869:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23e54e33%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3C/svg%3E"}),9819:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23e58978%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3C/svg%3E"}),30557:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23fff%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3C/svg%3E"}),68164:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23fff%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z%27/%3E%3C/svg%3E"}),64665:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23fff%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5%27/%3E%3C/svg%3E"}),91413:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23fff%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z%27/%3E%3C/svg%3E"}),13913:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23fff%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z%27/%3E%3C/svg%3E"}),61907:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 fill=%27%23fff%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27m10.5 14 4-8 4 8z%27/%3E%3Cpath fill=%27%23ccc%27 d=%27m10.5 16 4 8 4-8z%27/%3E%3C/svg%3E"}),56539:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272%27/%3E%3C/svg%3E"}),4890:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z%27/%3E%3C/svg%3E"}),13363:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5%27/%3E%3C/svg%3E"}),47603:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z%27/%3E%3C/svg%3E"}),64643:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z%27/%3E%3C/svg%3E"}),68605:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2729%27 height=%2729%27 viewBox=%270 0 29 29%27%3E%3Cpath d=%27m10.5 14 4-8 4 8z%27/%3E%3Cpath fill=%27%23ccc%27 d=%27m10.5 16 4 8 4-8z%27/%3E%3C/svg%3E"}),47914:(function(tt){tt.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2788%27 height=%2723%27 fill=%27none%27%3E%3Cpath fill=%27%23000%27 fill-opacity=%27.4%27 fill-rule=%27evenodd%27 d=%27M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%27/%3E%3Cpath fill=%27%23fff%27 d=%27m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z%27/%3E%3Cpath fill=%27%23e1e3e9%27 d=%27M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z%27/%3E%3Cpath d=%27M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z%27 style=%27fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001%27/%3E%3Cg style=%27stroke-width:1.12603545%27%3E%3Cpath d=%27M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%27 style=%27color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto%27 transform=%27translate%2815.553 2.85%29scale%28.88807%29%27/%3E%3Cpath d=%27M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3%27 style=%27clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4%27 transform=%27translate%2815.553 2.85%29scale%28.88807%29%27/%3E%3Cpath d=%27M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%27 style=%27clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4%27 transform=%27translate%2815.553 2.85%29scale%28.88807%29%27/%3E%3C/g%3E%3C/svg%3E"}),63779:(function(){}),77199:(function(){}),61990:(function(tt,G,e){Object.defineProperty(G,"__esModule",{value:!0});var S=e(85846),A=e(66030);function t(o){return A.geomReduce.call(void 0,o,(a,s)=>a+E(s),0)}function E(o){let a=0,s;switch(o.type){case"Polygon":return w(o.coordinates);case"MultiPolygon":for(s=0;s0){a+=Math.abs(i(o[0]));for(let s=1;s=a?(n+2)%a:n+2],v=m[0]*c,l=x[1]*c,h=f[0]*c;s+=(h-v)*Math.sin(l),n++}return s*p}var r=t;G.area=t,G.default=r}),25368:(function(tt,G,e){Object.defineProperty(G,"__esModule",{value:!0});var S=e(66030);function A(E,w={}){if(E.bbox!=null&&w.recompute!==!0)return E.bbox;let p=[1/0,1/0,-1/0,-1/0];return S.coordEach.call(void 0,E,c=>{p[0]>c[0]&&(p[0]=c[0]),p[1]>c[1]&&(p[1]=c[1]),p[2]w(B,O)),j)}function c(F,O,j={}){for(let B of F){if(B.length<4)throw Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(B[B.length-1].length!==B[0].length)throw Error("First and last Position are not equivalent.");for(let U=0;Uc(B,O)),j)}function r(F,O,j={}){if(F.length<2)throw Error("coordinates must be an array of two or more positions");return t({type:"LineString",coordinates:F},O,j)}function o(F,O,j={}){return a(F.map(B=>r(B,O)),j)}function a(F,O={}){let j={type:"FeatureCollection"};return O.id&&(j.id=O.id),O.bbox&&(j.bbox=O.bbox),j.features=F,j}function s(F,O,j={}){return t({type:"MultiLineString",coordinates:F},O,j)}function n(F,O,j={}){return t({type:"MultiPoint",coordinates:F},O,j)}function m(F,O,j={}){return t({type:"MultiPolygon",coordinates:F},O,j)}function x(F,O,j={}){return t({type:"GeometryCollection",geometries:F},O,j)}function f(F,O=0){if(O&&!(O>=0))throw Error("precision must be a positive number");let j=10**(O||0);return Math.round(F*j)/j}function v(F,O="kilometers"){let j=S[O];if(!j)throw Error(O+" units is invalid");return F*j}function l(F,O="kilometers"){let j=S[O];if(!j)throw Error(O+" units is invalid");return F/j}function h(F,O){return M(l(F,O))}function d(F){let O=F%360;return O<0&&(O+=360),O}function b(F){return F%=360,F>0?F>180?F-360:F:F<-180?F+360:F}function M(F){return F%(2*Math.PI)*180/Math.PI}function g(F){return F%360*Math.PI/180}function k(F,O="kilometers",j="kilometers"){if(!(F>=0))throw Error("length must be a positive number");return v(l(F,O),j)}function L(F,O="meters",j="kilometers"){if(!(F>=0))throw Error("area must be a positive number");let B=A[O];if(!B)throw Error("invalid original units");let U=A[j];if(!U)throw Error("invalid final units");return F/B*U}function u(F){return!isNaN(F)&&F!==null&&!Array.isArray(F)}function T(F){return typeof F=="object"&&!!F&&!Array.isArray(F)}function C(F){if(!F)throw Error("bbox is required");if(!Array.isArray(F))throw Error("bbox must be an Array");if(F.length!==4&&F.length!==6)throw Error("bbox must be an Array of 4 or 6 numbers");F.forEach(O=>{if(!u(O))throw Error("bbox must only contain numbers")})}function _(F){if(!F)throw Error("id is required");if(["string","number"].indexOf(typeof F)===-1)throw Error("id must be a number or a string")}G.areaFactors=A,G.azimuthToBearing=b,G.bearingToAzimuth=d,G.convertArea=L,G.convertLength=k,G.degreesToRadians=g,G.earthRadius=e,G.factors=S,G.feature=t,G.featureCollection=a,G.geometry=E,G.geometryCollection=x,G.isNumber=u,G.isObject=T,G.lengthToDegrees=h,G.lengthToRadians=l,G.lineString=r,G.lineStrings=o,G.multiLineString=s,G.multiPoint=n,G.multiPolygon=m,G.point=w,G.points=p,G.polygon=c,G.polygons=i,G.radiansToDegrees=M,G.radiansToLength=v,G.round=f,G.validateBBox=C,G.validateId=_}),66030:(function(tt,G,e){Object.defineProperty(G,"__esModule",{value:!0});var S=e(85846);function A(h,d,b){if(h!==null)for(var M,g,k,L,u,T,C,_=0,F=0,O,j=h.type,B=j==="FeatureCollection",U=j==="Feature",P=B?h.features.length:1,N=0;NT||B>C||U>_){u=F,T=M,C=B,_=U,k=0;return}if(d(S.lineString.call(void 0,[u,F],b.properties),M,g,U,k)===!1)return!1;k++,u=F})===!1)return!1}}})}function m(h,d,b){var M=b,g=!1;return n(h,function(k,L,u,T,C){M=g===!1&&b===void 0?k:d(M,k,L,u,T,C),g=!0}),M}function x(h,d){if(!h)throw Error("geojson is required");a(h,function(b,M,g){if(b.geometry!==null){var k=b.geometry.type,L=b.geometry.coordinates;switch(k){case"LineString":if(d(b,M,g,0,0)===!1)return!1;break;case"Polygon":for(var u=0;u"u"?e.g:globalThis;tt.exports=function(){for(var t=[],E=0;E1)return 1;for(var q=D,ht=0;ht<8;ht++){var vt=this.sampleCurveX(q)-D;if(Math.abs(vt)vt?Rt=q:oe=q,q=(oe-Rt)*.5+Rt;return q},solve:function(D,z){return this.sampleCurveY(this.solveCurveX(D,z))}};var o=E(i);let a;function s(){return a??(a=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),a}let n;function m(){if(n==null&&(n=!1,s())){let D=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(D){for(let q=0;q<25;q++){let ht=q*4;D.fillStyle=`rgb(${ht},${ht+1},${ht+2})`,D.fillRect(q%5,Math.floor(q/5),1,1)}let z=D.getImageData(0,0,5,5).data;for(let q=0;q<100;q++)if(q%4!=3&&z[q]!==q){n=!0;break}}}return n||!1}function x(D){let z=1/0,q=1/0,ht=-1/0,vt=-1/0;for(let Pt of D)z=Math.min(z,Pt.x),q=Math.min(q,Pt.y),ht=Math.max(ht,Pt.x),vt=Math.max(vt,Pt.y);return[z,q,ht,vt]}function f(D){if(D<=0)return 0;if(D>=1)return 1;let z=D*D,q=z*D;return 4*(D<.5?q:3*(D-z)+q-.75)}function v(D,z,q,ht){let vt=new o(D,z,q,ht);return Pt=>vt.solve(Pt)}let l=v(.25,.1,.25,1);function h(D,z,q){return Math.min(q,Math.max(z,D))}function d(D,z,q){let ht=q-z,vt=((D-z)%ht+ht)%ht+z;return vt===z?q:vt}function b(D,z){let q=[];for(let ht in D)ht in z||q.push(ht);return q}function M(D,...z){for(let q of z)for(let ht in q)D[ht]=q[ht];return D}function g(D,z){let q={};for(let ht=0;ht=0)return!0;return!1}let B={};function U(D){B[D]||(typeof console<"u"&&console.warn(D),B[D]=!0)}function P(D,z,q){return(q.y-D.y)*(z.x-D.x)>(z.y-D.y)*(q.x-D.x)}function N(D,z,q,ht){let vt=z.y-D.y,Pt=z.x-D.x,Rt=ht.y-q.y,oe=ht.x-q.x,Te=Rt*Pt-oe*vt;if(Te===0)return null;let De=D.y-q.y,Ve=D.x-q.x,Je=(oe*De-Rt*Ve)/Te;return new c(D.x+Je*Pt,D.y+Je*vt)}function V([D,z,q]){return z+=90,z*=Math.PI/180,q*=Math.PI/180,{x:D*Math.cos(z)*Math.sin(q),y:D*Math.sin(z)*Math.sin(q),z:D*Math.cos(q)}}function Y(D){return typeof WorkerGlobalScope<"u"&&D!==void 0&&D instanceof WorkerGlobalScope}function K(D){let z=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,q={};if(D.replace(z,(ht,vt,Pt,Rt)=>{let oe=Pt||Rt;return q[vt]=oe?oe.toLowerCase():!0,""}),q["max-age"]){let ht=parseInt(q["max-age"],10);isNaN(ht)?delete q["max-age"]:q["max-age"]=ht}return q}let nt=null;function ft(D){if(nt==null){let z=D.navigator?D.navigator.userAgent:null;nt=!!D.safari||!!(z&&(/\b(iPad|iPhone|iPod)\b/.test(z)||z.match("Safari")&&!z.match("Chrome")))}return nt}function ct(D){return typeof ImageBitmap<"u"&&D instanceof ImageBitmap}let J=D=>t(void 0,void 0,void 0,function*(){if(D.byteLength===0)return createImageBitmap(new ImageData(1,1));let z=new Blob([new Uint8Array(D)],{type:"image/png"});try{return createImageBitmap(z)}catch(q){throw Error(`Could not load image because of ${q.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",Q=D=>new Promise((z,q)=>{let ht=new Image;ht.onload=()=>{z(ht),URL.revokeObjectURL(ht.src),ht.onload=null,window.requestAnimationFrame(()=>{ht.src=et})},ht.onerror=()=>q(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let vt=new Blob([new Uint8Array(D)],{type:"image/png"});ht.src=D.byteLength?URL.createObjectURL(vt):et});function Z(D,z,q,ht,vt){let Pt=Math.max(-z,0)*4,Rt=(Math.max(0,q)-q)*ht*4+Pt,oe=ht*4,Te=Math.max(0,z),De=Math.max(0,q),Ve=Math.min(D.width,z+ht),Je=Math.min(D.height,q+vt);return{rect:{x:Te,y:De,width:Ve-Te,height:Je-De},layout:[{offset:Rt,stride:oe}]}}function st(D,z,q,ht,vt){return t(this,void 0,void 0,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let Pt=new VideoFrame(D,{timestamp:0});try{let Rt=Pt==null?void 0:Pt.format;if(!Rt||!(Rt.startsWith("BGR")||Rt.startsWith("RGB")))throw Error(`Unrecognized format ${Rt}`);let oe=Rt.startsWith("BGR"),Te=new Uint8ClampedArray(ht*vt*4);if(yield Pt.copyTo(Te,Z(D,z,q,ht,vt)),oe)for(let De=0;De{D.removeEventListener(z,q,ht)}}}function yt(D){return D*Math.PI/180}let kt="AbortError";function Lt(D){return D.message===kt}function St(){return Error(kt)}let Ot={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function Ht(D){return Ot.REGISTERED_PROTOCOLS[D.substring(0,D.indexOf("://"))]}function Kt(D,z){Ot.REGISTERED_PROTOCOLS[D]=z}function Gt(D){delete Ot.REGISTERED_PROTOCOLS[D]}let Et="global-dispatcher";class At extends Error{constructor(z,q,ht,vt){super(`AJAXError: ${q} (${z}): ${ht}`),this.status=z,this.statusText=q,this.url=ht,this.body=vt}}let qt=()=>Y(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,jt=D=>/^file:/.test(D)||/^file:/.test(qt())&&!/^\w+:/.test(D);function de(D,z){return t(this,void 0,void 0,function*(){let q=new Request(D.url,{method:D.method||"GET",body:D.body,credentials:D.credentials,headers:D.headers,cache:D.cache,referrer:qt(),signal:z.signal});D.type==="json"&&!q.headers.has("Accept")&&q.headers.set("Accept","application/json");let ht=yield fetch(q);if(!ht.ok){let Rt=yield ht.blob();throw new At(ht.status,ht.statusText,D.url,Rt)}let vt;vt=D.type==="arrayBuffer"||D.type==="image"?ht.arrayBuffer():D.type==="json"?ht.json():ht.text();let Pt=yield vt;if(z.signal.aborted)throw St();return{data:Pt,cacheControl:ht.headers.get("Cache-Control"),expires:ht.headers.get("Expires")}})}function Xt(D,z){return new Promise((q,ht)=>{var Pt;let vt=new XMLHttpRequest;for(let Rt in vt.open(D.method||"GET",D.url,!0),(D.type==="arrayBuffer"||D.type==="image")&&(vt.responseType="arraybuffer"),D.headers)vt.setRequestHeader(Rt,D.headers[Rt]);D.type==="json"&&(vt.responseType="text",(Pt=D.headers)!=null&&Pt.Accept||vt.setRequestHeader("Accept","application/json")),vt.withCredentials=D.credentials==="include",vt.onerror=()=>{ht(Error(vt.statusText))},vt.onload=()=>{if(!z.signal.aborted)if((vt.status>=200&&vt.status<300||vt.status===0)&&vt.response!==null){let Rt=vt.response;if(D.type==="json")try{Rt=JSON.parse(vt.response)}catch(oe){ht(oe);return}q({data:Rt,cacheControl:vt.getResponseHeader("Cache-Control"),expires:vt.getResponseHeader("Expires")})}else{let Rt=new Blob([vt.response],{type:vt.getResponseHeader("Content-Type")});ht(new At(vt.status,vt.statusText,D.url,Rt))}},z.signal.addEventListener("abort",()=>{vt.abort(),ht(St())}),vt.send(D.body)})}let ye=function(D,z){if(/:\/\//.test(D.url)&&!/^https?:|^file:/.test(D.url)){let q=Ht(D.url);if(q)return q(D,z);if(Y(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:D,targetMapId:Et},z)}if(!jt(D.url)){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return de(D,z);if(Y(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:D,mustQueue:!0,targetMapId:Et},z)}return Xt(D,z)},Le=(D,z)=>ye(M(D,{type:"json"}),z),ve=(D,z)=>ye(M(D,{type:"arrayBuffer"}),z);function ke(D){if(!D||D.indexOf("://")<=0||D.indexOf("data:image/")===0||D.indexOf("blob:")===0)return!0;let z=new URL(D),q=window.location;return z.protocol===q.protocol&&z.host===q.host}let Pe=D=>{let z=window.document.createElement("video");return z.muted=!0,new Promise(q=>{z.onloadstart=()=>{q(z)};for(let ht of D){let vt=window.document.createElement("source");ke(ht)||(z.crossOrigin="Anonymous"),vt.src=ht,z.appendChild(vt)}})};function me(D,z,q){q[D]&&q[D].indexOf(z)!==-1||(q[D]=q[D]||[],q[D].push(z))}function be(D,z,q){if(q&&q[D]){let ht=q[D].indexOf(z);ht!==-1&&q[D].splice(ht,1)}}class je{constructor(z,q={}){M(this,q),this.type=z}}class nr extends je{constructor(z,q={}){super("error",M({error:z},q))}}class Vt{on(z,q){return this._listeners=this._listeners||{},me(z,q,this._listeners),this}off(z,q){return be(z,q,this._listeners),be(z,q,this._oneTimeListeners),this}once(z,q){return q?(this._oneTimeListeners=this._oneTimeListeners||{},me(z,q,this._oneTimeListeners),this):new Promise(ht=>this.once(z,ht))}fire(z,q){typeof z=="string"&&(z=new je(z,q||{}));let ht=z.type;if(this.listens(ht)){z.target=this;let vt=this._listeners&&this._listeners[ht]?this._listeners[ht].slice():[];for(let oe of vt)oe.call(this,z);let Pt=this._oneTimeListeners&&this._oneTimeListeners[ht]?this._oneTimeListeners[ht].slice():[];for(let oe of Pt)be(ht,oe,this._oneTimeListeners),oe.call(this,z);let Rt=this._eventedParent;Rt&&(M(z,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),Rt.fire(z))}else z instanceof nr&&console.error(z.error);return this}listens(z){return this._listeners&&this._listeners[z]&&this._listeners[z].length>0||this._oneTimeListeners&&this._oneTimeListeners[z]&&this._oneTimeListeners[z].length>0||this._eventedParent&&this._eventedParent.listens(z)}setEventedParent(z,q){return this._eventedParent=z,this._eventedParentData=q,this}}var Qt=8,te={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},ee={"*":{type:"source"}},Bt=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Wt={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},$t={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Tt={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},_t={type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},It={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Mt={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Ct={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Ut=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Zt={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Me={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Be={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ge={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ee={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ne={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},sr={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_e={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},He={type:"array",value:"*"},or={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},Pr={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},br={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},ue={type:"array",value:"*",minimum:1},we={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Ce={"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Ge={source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},Ke={type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},ar=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],We={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},$e={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},yr={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Cr={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Sr={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},Dr={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Or={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ei={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Nr={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},re={"*":{type:"string"}},ae={$version:Qt,$root:te,sources:ee,source:Bt,source_vector:Wt,source_raster:$t,source_raster_dem:Tt,source_geojson:_t,source_video:It,source_image:Mt,layer:Ct,layout:Ut,layout_background:Zt,layout_fill:Me,layout_circle:Be,layout_heatmap:ge,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:Ee,layout_symbol:Ne,layout_raster:sr,layout_hillshade:_e,filter:He,filter_operator:or,geometry_type:Pr,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:br,expression:ue,light:we,sky:Ce,terrain:Ge,projection:Ke,paint:ar,paint_fill:We,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:$e,paint_circle:yr,paint_heatmap:Cr,paint_symbol:Sr,paint_raster:Dr,paint_hillshade:Or,paint_background:ei,transition:Nr,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:re};let wr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function _r(D,z){let q={};for(let ht in D)ht!=="ref"&&(q[ht]=D[ht]);return wr.forEach(ht=>{ht in z&&(q[ht]=z[ht])}),q}function lr(D){D=D.slice();let z=Object.create(null);for(let q=0;q{"source"in Rt&&ht[Rt.source]?q.push({command:"removeLayer",args:[Rt.id]}):Pt.push(Rt)}),q=q.concat(vt),Ei(Pt,z.layers,q)}catch(ht){console.warn("Unable to compute style diff:",ht),q=[{command:"setStyle",args:[z]}]}return q}class Tr{constructor(z,q,ht,vt){this.message=(z?`${z}: `:"")+ht,vt&&(this.identifier=vt),q!=null&&q.__line__&&(this.line=q.__line__)}}function Vr(D,...z){for(let q of z)for(let ht in q)D[ht]=q[ht];return D}class li extends Error{constructor(z,q){super(q),this.message=q,this.key=z}}class ci{constructor(z,q=[]){this.parent=z,this.bindings={};for(let[ht,vt]of q)this.bindings[ht]=vt}concat(z){return new ci(this,z)}get(z){if(this.bindings[z])return this.bindings[z];if(this.parent)return this.parent.get(z);throw Error(`${z} not found in scope.`)}has(z){return this.bindings[z]?!0:this.parent?this.parent.has(z):!1}}let Ni={kind:"null"},si={kind:"number"},Ci={kind:"string"},wi={kind:"boolean"},ma={kind:"color"},Ha={kind:"object"},ya={kind:"value"},Ga={kind:"error"},Ea={kind:"collator"},Fa={kind:"formatted"},Xr={kind:"padding"},ji={kind:"resolvedImage"},Li={kind:"variableAnchorOffsetCollection"};function Si(D,z){return{kind:"array",itemType:D,N:z}}function aa(D){if(D.kind==="array"){let z=aa(D.itemType);return typeof D.N=="number"?`array<${z}, ${D.N}>`:D.itemType.kind==="value"?"array":`array<${z}>`}else return D.kind}let Ji=[Ni,si,Ci,wi,ma,Fa,Ha,Si(ya),Xr,ji,Li];function na(D,z){if(z.kind==="error")return null;if(D.kind==="array"){if(z.kind==="array"&&(z.N===0&&z.itemType.kind==="value"||!na(D.itemType,z.itemType))&&(typeof D.N!="number"||D.N===z.N))return null}else{if(D.kind===z.kind)return null;if(D.kind==="value"){for(let q of Ji)if(!na(q,z))return null}}return`Expected ${aa(D)} but found ${aa(z)} instead.`}function fa(D,z){return z.some(q=>q.kind===D.kind)}function Ca(D,z){return z.some(q=>q==="null"?D===null:q==="array"?Array.isArray(D):q==="object"?D&&!Array.isArray(D)&&typeof D=="object":q===typeof D)}function Ia(D,z){return D.kind==="array"&&z.kind==="array"?D.itemType.kind===z.itemType.kind&&typeof D.N=="number":D.kind===z.kind}let On=.96422,hr=.82521,jr=4/29,Ii=6/29,Hi=3*Ii*Ii;Ii*Ii*Ii;let Oi=Math.PI/180,sa=180/Math.PI;function Qi(D){return D%=360,D<0&&(D+=360),D}function qi([D,z,q,ht]){D=Zr(D),z=Zr(z),q=Zr(q);let vt,Pt,Rt=Wr((.2225045*D+.7168786*z+.0606169*q)/1);D===z&&z===q?vt=Pt=Rt:(vt=Wr((.4360747*D+.3850649*z+.1430804*q)/On),Pt=Wr((.0139322*D+.0971045*z+.7141733*q)/hr));let oe=116*Rt-16;return[oe<0?0:oe,500*(vt-Rt),200*(Rt-Pt),ht]}function Zr(D){return D<=.04045?D/12.92:((D+.055)/1.055)**2.4}function Wr(D){return D>.008856451679035631?D**.3333333333333333:D/Hi+jr}function ai([D,z,q,ht]){let vt=(D+16)/116,Pt=isNaN(z)?vt:vt+z/500,Rt=isNaN(q)?vt:vt-q/200;return vt=1*ua(vt),Pt=On*ua(Pt),Rt=hr*ua(Rt),[_i(3.1338561*Pt-1.6168667*vt-.4906146*Rt),_i(-.9787684*Pt+1.9161415*vt+.033454*Rt),_i(.0719453*Pt-.2289914*vt+1.4052427*Rt),ht]}function _i(D){return D=D<=.00304?12.92*D:1.055*D**.4166666666666667-.055,D<0?0:D>1?1:D}function ua(D){return D>Ii?D*D*D:Hi*(D-jr)}function ea(D){let[z,q,ht,vt]=qi(D),Pt=Math.sqrt(q*q+ht*ht);return[Math.round(Pt*1e4)?Qi(Math.atan2(ht,q)*sa):NaN,Pt,z,vt]}function zi([D,z,q,ht]){return D=isNaN(D)?0:D*Oi,ai([q,Math.cos(D)*z,Math.sin(D)*z,ht])}function wa([D,z,q,ht]){D=Qi(D),z/=100,q/=100;function vt(Pt){let Rt=(Pt+D/30)%12,oe=z*Math.min(q,1-q);return q-oe*Math.max(-1,Math.min(Rt-3,9-Rt,1))}return[vt(0),vt(8),vt(4),ht]}function ln(D){if(D=D.toLowerCase().trim(),D==="transparent")return[0,0,0,0];let z=Vs[D];if(z){let[ht,vt,Pt]=z;return[ht/255,vt/255,Pt/255,1]}if(D.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(D)){let ht=D.length<6?1:2,vt=1;return[nn(D.slice(vt,vt+=ht)),nn(D.slice(vt,vt+=ht)),nn(D.slice(vt,vt+=ht)),nn(D.slice(vt,vt+ht)||"ff")]}if(D.startsWith("rgb")){let ht=D.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ht){let[vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni]=ht,Bi=[oe||" ",Ve||" ",Rr].join("");if(Bi===" "||Bi===" /"||Bi===",,"||Bi===",,,"){let ia=[Rt,De,mr].join(""),ba=ia==="%%%"?100:ia===""?255:0;if(ba){let ka=[Wa(+Pt/ba,0,1),Wa(+Te/ba,0,1),Wa(+Je/ba,0,1),Kr?sn(+Kr,ni):1];if(yn(ka))return ka}}return}}let q=D.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(q){let[ht,vt,Pt,Rt,oe,Te,De,Ve,Je]=q,mr=[Pt||" ",oe||" ",De].join("");if(mr===" "||mr===" /"||mr===",,"||mr===",,,"){let Rr=[+vt,Wa(+Rt,0,100),Wa(+Te,0,100),Ve?sn(+Ve,Je):1];if(yn(Rr))return wa(Rr)}}}function nn(D){return parseInt(D.padEnd(2,D),16)/255}function sn(D,z){return Wa(z?D/100:D,0,1)}function Wa(D,z,q){return Math.min(Math.max(z,D),q)}function yn(D){return!D.some(Number.isNaN)}let Vs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Kn{constructor(z,q,ht,vt=1,Pt=!0){this.r=z,this.g=q,this.b=ht,this.a=vt,Pt||(this.r*=vt,this.g*=vt,this.b*=vt,vt||this.overwriteGetter("rgb",[z,q,ht,vt]))}static parse(z){if(z instanceof Kn)return z;if(typeof z!="string")return;let q=ln(z);if(q)return new Kn(...q,!1)}get rgb(){let{r:z,g:q,b:ht,a:vt}=this,Pt=vt||1/0;return this.overwriteGetter("rgb",[z/Pt,q/Pt,ht/Pt,vt])}get hcl(){return this.overwriteGetter("hcl",ea(this.rgb))}get lab(){return this.overwriteGetter("lab",qi(this.rgb))}overwriteGetter(z,q){return Object.defineProperty(this,z,{value:q}),q}toString(){let[z,q,ht,vt]=this.rgb;return`rgba(${[z,q,ht].map(Pt=>Math.round(Pt*255)).join(",")},${vt})`}}Kn.black=new Kn(0,0,0,1),Kn.white=new Kn(1,1,1,1),Kn.transparent=new Kn(0,0,0,0),Kn.red=new Kn(1,0,0,1);class os{constructor(z,q,ht){z?this.sensitivity=q?"variant":"case":this.sensitivity=q?"accent":"base",this.locale=ht,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(z,q){return this.collator.compare(z,q)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Bo{constructor(z,q,ht,vt,Pt){this.text=z,this.image=q,this.scale=ht,this.fontStack=vt,this.textColor=Pt}}class Qo{constructor(z){this.sections=z}static fromString(z){return new Qo([new Bo(z,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(z=>z.text.length!==0||z.image&&z.image.name.length!==0)}static factory(z){return z instanceof Qo?z:Qo.fromString(z)}toString(){return this.sections.length===0?"":this.sections.map(z=>z.text).join("")}}class Gn{constructor(z){this.values=z.slice()}static parse(z){if(z instanceof Gn)return z;if(typeof z=="number")return new Gn([z,z,z,z]);if(Array.isArray(z)&&!(z.length<1||z.length>4)){for(let q of z)if(typeof q!="number")return;switch(z.length){case 1:z=[z[0],z[0],z[0],z[0]];break;case 2:z=[z[0],z[1],z[0],z[1]];break;case 3:z=[z[0],z[1],z[2],z[1]];break}return new Gn(z)}}toString(){return JSON.stringify(this.values)}}let Ml=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class xs{constructor(z){this.values=z.slice()}static parse(z){if(z instanceof xs)return z;if(!(!Array.isArray(z)||z.length<1||z.length%2!=0)){for(let q=0;q=0&&D<=255&&typeof z=="number"&&z>=0&&z<=255&&typeof q=="number"&&q>=0&&q<=255?ht===void 0||typeof ht=="number"&&ht>=0&&ht<=1?null:`Invalid rgba value [${[D,z,q,ht].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof ht=="number"?[D,z,q,ht]:[D,z,q]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Fu(D){if(D===null||typeof D=="string"||typeof D=="boolean"||typeof D=="number"||D instanceof Kn||D instanceof os||D instanceof Qo||D instanceof Gn||D instanceof xs||D instanceof xo)return!0;if(Array.isArray(D)){for(let z of D)if(!Fu(z))return!1;return!0}else if(typeof D=="object"){for(let z in D)if(!Fu(D[z]))return!1;return!0}else return!1}function Oo(D){if(D===null)return Ni;if(typeof D=="string")return Ci;if(typeof D=="boolean")return wi;if(typeof D=="number")return si;if(D instanceof Kn)return ma;if(D instanceof os)return Ea;if(D instanceof Qo)return Fa;if(D instanceof Gn)return Xr;if(D instanceof xs)return Li;if(D instanceof xo)return ji;if(Array.isArray(D)){let z=D.length,q;for(let ht of D){let vt=Oo(ht);if(!q)q=vt;else{if(q===vt)continue;q=ya;break}}return Si(q||ya,z)}else return Ha}function zo(D){let z=typeof D;return D===null?"":z==="string"||z==="number"||z==="boolean"?String(D):D instanceof Kn||D instanceof Qo||D instanceof Gn||D instanceof xs||D instanceof xo?D.toString():JSON.stringify(D)}class As{constructor(z,q){this.type=z,this.value=q}static parse(z,q){if(z.length!==2)return q.error(`'literal' expression requires exactly one argument, but found ${z.length-1} instead.`);if(!Fu(z[1]))return q.error("invalid value");let ht=z[1],vt=Oo(ht),Pt=q.expectedType;return vt.kind==="array"&&vt.N===0&&Pt&&Pt.kind==="array"&&(typeof Pt.N!="number"||Pt.N===0)&&(vt=Pt),new As(vt,ht)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class bo{constructor(z){this.name="ExpressionEvaluationError",this.message=z}toJSON(){return this.message}}let No={string:Ci,number:si,boolean:wi,object:Ha};class bs{constructor(z,q){this.type=z,this.args=q}static parse(z,q){if(z.length<2)return q.error("Expected at least one argument.");let ht=1,vt,Pt=z[0];if(Pt==="array"){let oe;if(z.length>2){let De=z[1];if(typeof De!="string"||!(De in No)||De==="object")return q.error('The item type argument of "array" must be one of string, number, boolean',1);oe=No[De],ht++}else oe=ya;let Te;if(z.length>3){if(z[2]!==null&&(typeof z[2]!="number"||z[2]<0||z[2]!==Math.floor(z[2])))return q.error('The length argument to "array" must be a positive integer literal',2);Te=z[2],ht++}vt=Si(oe,Te)}else{if(!No[Pt])throw Error(`Types doesn't contain name = ${Pt}`);vt=No[Pt]}let Rt=[];for(;htz.outputDefined())}}let Do={"to-boolean":wi,"to-color":ma,"to-number":si,"to-string":Ci};class gs{constructor(z,q){this.type=z,this.args=q}static parse(z,q){if(z.length<2)return q.error("Expected at least one argument.");let ht=z[0];if(!Do[ht])throw Error(`Can't parse ${ht} as it is not part of the known types`);if((ht==="to-boolean"||ht==="to-string")&&z.length!==2)return q.error("Expected one argument.");let vt=Do[ht],Pt=[];for(let Rt=1;Rt4?`Invalid rbga value ${JSON.stringify(q)}: expected an array containing either three or four numeric values.`:_s(q[0],q[1],q[2],q[3]),!ht))return new Kn(q[0]/255,q[1]/255,q[2]/255,q[3])}throw new bo(ht||`Could not parse color from value '${typeof q=="string"?q:JSON.stringify(q)}'`)}case"padding":{let q;for(let ht of this.args){q=ht.evaluate(z);let vt=Gn.parse(q);if(vt)return vt}throw new bo(`Could not parse padding from value '${typeof q=="string"?q:JSON.stringify(q)}'`)}case"variableAnchorOffsetCollection":{let q;for(let ht of this.args){q=ht.evaluate(z);let vt=xs.parse(q);if(vt)return vt}throw new bo(`Could not parse variableAnchorOffsetCollection from value '${typeof q=="string"?q:JSON.stringify(q)}'`)}case"number":{let q=null;for(let ht of this.args){if(q=ht.evaluate(z),q===null)return 0;let vt=Number(q);if(!isNaN(vt))return vt}throw new bo(`Could not convert ${JSON.stringify(q)} to number.`)}case"formatted":return Qo.fromString(zo(this.args[0].evaluate(z)));case"resolvedImage":return xo.fromString(zo(this.args[0].evaluate(z)));default:return zo(this.args[0].evaluate(z))}}eachChild(z){this.args.forEach(z)}outputDefined(){return this.args.every(z=>z.outputDefined())}}let Sl=["Unknown","Point","LineString","Polygon"];class Bu{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Sl[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(z){let q=this._parseColorCache[z];return q||(q=this._parseColorCache[z]=Kn.parse(z)),q}}class jo{constructor(z,q,ht=[],vt,Pt=new ci,Rt=[]){this.registry=z,this.path=ht,this.key=ht.map(oe=>`[${oe}]`).join(""),this.scope=Pt,this.errors=Rt,this.expectedType=vt,this._isConstant=q}parse(z,q,ht,vt,Pt={}){return q?this.concat(q,ht,vt)._parse(z,Pt):this._parse(z,Pt)}_parse(z,q){(z===null||typeof z=="string"||typeof z=="boolean"||typeof z=="number")&&(z=["literal",z]);function ht(vt,Pt,Rt){return Rt==="assert"?new bs(Pt,[vt]):Rt==="coerce"?new gs(Pt,[vt]):vt}if(Array.isArray(z)){if(z.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let vt=z[0];if(typeof vt!="string")return this.error(`Expression name must be a string, but found ${typeof vt} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let Pt=this.registry[vt];if(Pt){let Rt=Pt.parse(z,this);if(!Rt)return null;if(this.expectedType){let oe=this.expectedType,Te=Rt.type;if((oe.kind==="string"||oe.kind==="number"||oe.kind==="boolean"||oe.kind==="object"||oe.kind==="array")&&Te.kind==="value")Rt=ht(Rt,oe,q.typeAnnotation||"assert");else if((oe.kind==="color"||oe.kind==="formatted"||oe.kind==="resolvedImage")&&(Te.kind==="value"||Te.kind==="string"))Rt=ht(Rt,oe,q.typeAnnotation||"coerce");else if(oe.kind==="padding"&&(Te.kind==="value"||Te.kind==="number"||Te.kind==="array"))Rt=ht(Rt,oe,q.typeAnnotation||"coerce");else if(oe.kind==="variableAnchorOffsetCollection"&&(Te.kind==="value"||Te.kind==="array"))Rt=ht(Rt,oe,q.typeAnnotation||"coerce");else if(this.checkSubtype(oe,Te))return null}if(!(Rt instanceof As)&&Rt.type.kind!=="resolvedImage"&&this._isConstant(Rt)){let oe=new Bu;try{Rt=new As(Rt.type,Rt.evaluate(oe))}catch(Te){return this.error(Te.message),null}}return Rt}return this.error(`Unknown expression "${vt}". If you wanted a literal array, use ["literal", [...]].`,0)}else return z===void 0?this.error("'undefined' value invalid. Use null instead."):typeof z=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof z} instead.`)}concat(z,q,ht){let vt=typeof z=="number"?this.path.concat(z):this.path,Pt=ht?this.scope.concat(ht):this.scope;return new jo(this.registry,this._isConstant,vt,q||null,Pt,this.errors)}error(z,...q){let ht=`${this.key}${q.map(vt=>`[${vt}]`).join("")}`;this.errors.push(new li(ht,z))}checkSubtype(z,q){let ht=na(z,q);return ht&&this.error(ht),ht}}class yu{constructor(z,q){this.type=q.type,this.bindings=[].concat(z),this.result=q}evaluate(z){return this.result.evaluate(z)}eachChild(z){for(let q of this.bindings)z(q[1]);z(this.result)}static parse(z,q){if(z.length<4)return q.error(`Expected at least 3 arguments, but found ${z.length-1} instead.`);let ht=[];for(let Pt=1;Pt=ht.length)throw new bo(`Array index out of bounds: ${q} > ${ht.length-1}.`);if(q!==Math.floor(q))throw new bo(`Array index must be an integer, but found ${q} instead.`);return ht[q]}eachChild(z){z(this.index),z(this.input)}outputDefined(){return!1}}class vu{constructor(z,q){this.type=wi,this.needle=z,this.haystack=q}static parse(z,q){if(z.length!==3)return q.error(`Expected 2 arguments, but found ${z.length-1} instead.`);let ht=q.parse(z[1],1,ya),vt=q.parse(z[2],2,ya);return!ht||!vt?null:fa(ht.type,[wi,Ci,si,Ni,ya])?new vu(ht,vt):q.error(`Expected first argument to be of type boolean, string, number or null, but found ${aa(ht.type)} instead`)}evaluate(z){let q=this.needle.evaluate(z),ht=this.haystack.evaluate(z);if(!ht)return!1;if(!Ca(q,["boolean","string","number","null"]))throw new bo(`Expected first argument to be of type boolean, string, number or null, but found ${aa(Oo(q))} instead.`);if(!Ca(ht,["string","array"]))throw new bo(`Expected second argument to be of type array or string, but found ${aa(Oo(ht))} instead.`);return ht.indexOf(q)>=0}eachChild(z){z(this.needle),z(this.haystack)}outputDefined(){return!0}}class cl{constructor(z,q,ht){this.type=si,this.needle=z,this.haystack=q,this.fromIndex=ht}static parse(z,q){if(z.length<=2||z.length>=5)return q.error(`Expected 3 or 4 arguments, but found ${z.length-1} instead.`);let ht=q.parse(z[1],1,ya),vt=q.parse(z[2],2,ya);if(!ht||!vt)return null;if(!fa(ht.type,[wi,Ci,si,Ni,ya]))return q.error(`Expected first argument to be of type boolean, string, number or null, but found ${aa(ht.type)} instead`);if(z.length===4){let Pt=q.parse(z[3],3,si);return Pt?new cl(ht,vt,Pt):null}else return new cl(ht,vt)}evaluate(z){let q=this.needle.evaluate(z),ht=this.haystack.evaluate(z);if(!Ca(q,["boolean","string","number","null"]))throw new bo(`Expected first argument to be of type boolean, string, number or null, but found ${aa(Oo(q))} instead.`);if(!Ca(ht,["string","array"]))throw new bo(`Expected second argument to be of type array or string, but found ${aa(Oo(ht))} instead.`);if(this.fromIndex){let vt=this.fromIndex.evaluate(z);return ht.indexOf(q,vt)}return ht.indexOf(q)}eachChild(z){z(this.needle),z(this.haystack),this.fromIndex&&z(this.fromIndex)}outputDefined(){return!1}}class el{constructor(z,q,ht,vt,Pt,Rt){this.inputType=z,this.type=q,this.input=ht,this.cases=vt,this.outputs=Pt,this.otherwise=Rt}static parse(z,q){if(z.length<5)return q.error(`Expected at least 4 arguments, but found only ${z.length-1}.`);if(z.length%2!=1)return q.error("Expected an even number of arguments.");let ht,vt;q.expectedType&&q.expectedType.kind!=="value"&&(vt=q.expectedType);let Pt={},Rt=[];for(let De=2;De9007199254740991)return mr.error(`Branch labels must be integers no larger than ${9007199254740991}.`);if(typeof Kr=="number"&&Math.floor(Kr)!==Kr)return mr.error("Numeric branch labels must be integer values.");if(!ht)ht=Oo(Kr);else if(mr.checkSubtype(ht,Oo(Kr)))return null;if(Pt[String(Kr)]!==void 0)return mr.error("Branch labels must be unique.");Pt[String(Kr)]=Rt.length}let Rr=q.parse(Je,De,vt);if(!Rr)return null;vt||(vt=Rr.type),Rt.push(Rr)}let oe=q.parse(z[1],1,ya);if(!oe)return null;let Te=q.parse(z[z.length-1],z.length-1,vt);return!Te||oe.type.kind!=="value"&&q.concat(1).checkSubtype(ht,oe.type)?null:new el(ht,vt,oe,Pt,Rt,Te)}evaluate(z){let q=this.input.evaluate(z);return(Oo(q)===this.inputType&&this.outputs[this.cases[q]]||this.otherwise).evaluate(z)}eachChild(z){z(this.input),this.outputs.forEach(z),z(this.otherwise)}outputDefined(){return this.outputs.every(z=>z.outputDefined())&&this.otherwise.outputDefined()}}class Nu{constructor(z,q,ht){this.type=z,this.branches=q,this.otherwise=ht}static parse(z,q){if(z.length<4)return q.error(`Expected at least 3 arguments, but found only ${z.length-1}.`);if(z.length%2!=0)return q.error("Expected an odd number of arguments.");let ht;q.expectedType&&q.expectedType.kind!=="value"&&(ht=q.expectedType);let vt=[];for(let Rt=1;Rtq.outputDefined())&&this.otherwise.outputDefined()}}class xu{constructor(z,q,ht,vt){this.type=z,this.input=q,this.beginIndex=ht,this.endIndex=vt}static parse(z,q){if(z.length<=2||z.length>=5)return q.error(`Expected 3 or 4 arguments, but found ${z.length-1} instead.`);let ht=q.parse(z[1],1,ya),vt=q.parse(z[2],2,si);if(!ht||!vt)return null;if(!fa(ht.type,[Si(ya),Ci,ya]))return q.error(`Expected first argument to be of type array or string, but found ${aa(ht.type)} instead`);if(z.length===4){let Pt=q.parse(z[3],3,si);return Pt?new xu(ht.type,ht,vt,Pt):null}else return new xu(ht.type,ht,vt)}evaluate(z){let q=this.input.evaluate(z),ht=this.beginIndex.evaluate(z);if(!Ca(q,["string","array"]))throw new bo(`Expected first argument to be of type array or string, but found ${aa(Oo(q))} instead.`);if(this.endIndex){let vt=this.endIndex.evaluate(z);return q.slice(ht,vt)}return q.slice(ht)}eachChild(z){z(this.input),z(this.beginIndex),this.endIndex&&z(this.endIndex)}outputDefined(){return!1}}function rc(D,z){let q=D.length-1,ht=0,vt=q,Pt=0,Rt,oe;for(;ht<=vt;)if(Pt=Math.floor((ht+vt)/2),Rt=D[Pt],oe=D[Pt+1],Rt<=z){if(Pt===q||zz)vt=Pt-1;else throw new bo("Input is not a number.");return 0}class Hl{constructor(z,q,ht){this.type=z,this.input=q,this.labels=[],this.outputs=[];for(let[vt,Pt]of ht)this.labels.push(vt),this.outputs.push(Pt)}static parse(z,q){if(z.length-1<4)return q.error(`Expected at least 4 arguments, but found only ${z.length-1}.`);if((z.length-1)%2!=0)return q.error("Expected an even number of arguments.");let ht=q.parse(z[1],1,si);if(!ht)return null;let vt=[],Pt=null;q.expectedType&&q.expectedType.kind!=="value"&&(Pt=q.expectedType);for(let Rt=1;Rt=oe)return q.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',De);let Je=q.parse(Te,Ve,Pt);if(!Je)return null;Pt||(Pt=Je.type),vt.push([oe,Je])}return new Hl(Pt,ht,vt)}evaluate(z){let q=this.labels,ht=this.outputs;if(q.length===1)return ht[0].evaluate(z);let vt=this.input.evaluate(z);if(vt<=q[0])return ht[0].evaluate(z);let Pt=q.length;return vt>=q[Pt-1]?ht[Pt-1].evaluate(z):ht[rc(q,vt)].evaluate(z)}eachChild(z){z(this.input);for(let q of this.outputs)z(q)}outputDefined(){return this.outputs.every(z=>z.outputDefined())}}function bh(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}var wh=ah;function ah(D,z,q,ht){this.cx=3*D,this.bx=3*(q-D)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*z,this.by=3*(ht-z)-this.cy,this.ay=1-this.cy-this.by,this.p1x=D,this.p1y=z,this.p2x=q,this.p2y=ht}ah.prototype={sampleCurveX:function(D){return((this.ax*D+this.bx)*D+this.cx)*D},sampleCurveY:function(D){return((this.ay*D+this.by)*D+this.cy)*D},sampleCurveDerivativeX:function(D){return(3*this.ax*D+2*this.bx)*D+this.cx},solveCurveX:function(D,z){if(z===void 0&&(z=1e-6),D<0)return 0;if(D>1)return 1;for(var q=D,ht=0;ht<8;ht++){var vt=this.sampleCurveX(q)-D;if(Math.abs(vt)vt?Rt=q:oe=q,q=(oe-Rt)*.5+Rt;return q},solve:function(D,z){return this.sampleCurveY(this.solveCurveX(D,z))}};var Rc=bh(wh);function Th(D){return D==="rgb"||D==="hcl"||D==="lab"}function _u(D,z,q){return D+q*(z-D)}function nh(D,z,q,ht="rgb"){switch(ht){case"rgb":{let[vt,Pt,Rt,oe]=ic(D.rgb,z.rgb,q);return new Kn(vt,Pt,Rt,oe,!1)}case"hcl":{let[vt,Pt,Rt,oe]=D.hcl,[Te,De,Ve,Je]=z.hcl,mr,Rr;if(!isNaN(vt)&&!isNaN(Te)){let ba=Te-vt;Te>vt&&ba>180?ba-=360:Te180&&(ba+=360),mr=vt+q*ba}else isNaN(vt)?isNaN(Te)?mr=NaN:(mr=Te,(Rt===1||Rt===0)&&(Rr=De)):(mr=vt,(Ve===1||Ve===0)&&(Rr=Pt));let[Kr,ni,Bi,ia]=zi([mr,Rr??_u(Pt,De,q),_u(Rt,Ve,q),_u(oe,Je,q)]);return new Kn(Kr,ni,Bi,ia,!1)}case"lab":{let[vt,Pt,Rt,oe]=ai(ic(D.lab,z.lab,q));return new Kn(vt,Pt,Rt,oe,!1)}}}function ic(D,z,q){return D.map((ht,vt)=>_u(ht,z[vt],q))}function oh(D,z,q){return new Gn(ic(D.values,z.values,q))}function sh(D,z,q){let ht=D.values,vt=z.values;if(ht.length!==vt.length)throw new bo(`Cannot interpolate values of different length. from: ${D.toString()}, to: ${z.toString()}`);let Pt=[];for(let Rt=0;Rttypeof Ve!="number"||Ve<0||Ve>1))return q.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);vt={name:"cubic-bezier",controlPoints:De}}else return q.error(`Unknown interpolation type ${String(vt[0])}`,1,0);if(z.length-1<4)return q.error(`Expected at least 4 arguments, but found only ${z.length-1}.`);if((z.length-1)%2!=0)return q.error("Expected an even number of arguments.");if(Pt=q.parse(Pt,2,si),!Pt)return null;let oe=[],Te=null;ht==="interpolate-hcl"||ht==="interpolate-lab"?Te=ma:q.expectedType&&q.expectedType.kind!=="value"&&(Te=q.expectedType);for(let De=0;De=Ve)return q.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',mr);let Kr=q.parse(Je,Rr,Te);if(!Kr)return null;Te||(Te=Kr.type),oe.push([Ve,Kr])}return!Ia(Te,si)&&!Ia(Te,ma)&&!Ia(Te,Xr)&&!Ia(Te,Li)&&!Ia(Te,Si(si))?q.error(`Type ${aa(Te)} is not interpolatable.`):new us(Te,ht,vt,Pt,oe)}evaluate(z){let q=this.labels,ht=this.outputs;if(q.length===1)return ht[0].evaluate(z);let vt=this.input.evaluate(z);if(vt<=q[0])return ht[0].evaluate(z);let Pt=q.length;if(vt>=q[Pt-1])return ht[Pt-1].evaluate(z);let Rt=rc(q,vt),oe=q[Rt],Te=q[Rt+1],De=us.interpolationFactor(this.interpolation,vt,oe,Te),Ve=ht[Rt].evaluate(z),Je=ht[Rt+1].evaluate(z);switch(this.operator){case"interpolate":return ls[this.type.kind](Ve,Je,De);case"interpolate-hcl":return ls.color(Ve,Je,De,"hcl");case"interpolate-lab":return ls.color(Ve,Je,De,"lab")}}eachChild(z){z(this.input);for(let q of this.outputs)z(q)}outputDefined(){return this.outputs.every(z=>z.outputDefined())}}function tu(D,z,q,ht){let vt=ht-q,Pt=D-q;return vt===0?0:z===1?Pt/vt:(z**+Pt-1)/(z**+vt-1)}class Gl{constructor(z,q){this.type=z,this.args=q}static parse(z,q){if(z.length<2)return q.error("Expectected at least one argument.");let ht=null,vt=q.expectedType;vt&&vt.kind!=="value"&&(ht=vt);let Pt=[];for(let Rt of z.slice(1)){let oe=q.parse(Rt,1+Pt.length,ht,void 0,{typeAnnotation:"omit"});if(!oe)return null;ht||(ht=oe.type),Pt.push(oe)}if(!ht)throw Error("No output type");return vt&&Pt.some(Rt=>na(vt,Rt.type))?new Gl(ya,Pt):new Gl(ht,Pt)}evaluate(z){let q=null,ht=0,vt;for(let Pt of this.args)if(ht++,q=Pt.evaluate(z),q&&q instanceof xo&&!q.available&&(vt||(vt=q.name),q=null,ht===this.args.length&&(q=vt)),q!==null)break;return q}eachChild(z){this.args.forEach(z)}outputDefined(){return this.args.every(z=>z.outputDefined())}}function lh(D,z){return D==="=="||D==="!="?z.kind==="boolean"||z.kind==="string"||z.kind==="number"||z.kind==="null"||z.kind==="value":z.kind==="string"||z.kind==="number"||z.kind==="value"}function kc(D,z,q){return z===q}function bu(D,z,q){return z!==q}function Fc(D,z,q){return zq}function rl(D,z,q){return z<=q}function eu(D,z,q){return z>=q}function El(D,z,q,ht){return ht.compare(z,q)===0}function ao(D,z,q,ht){return!El(D,z,q,ht)}function ru(D,z,q,ht){return ht.compare(z,q)<0}function Cl(D,z,q,ht){return ht.compare(z,q)>0}function Ac(D,z,q,ht){return ht.compare(z,q)<=0}function ju(D,z,q,ht){return ht.compare(z,q)>=0}function Ns(D,z,q){let ht=D!=="=="&&D!=="!=";return class lg{constructor(Pt,Rt,oe){this.type=wi,this.lhs=Pt,this.rhs=Rt,this.collator=oe,this.hasUntypedArgument=Pt.type.kind==="value"||Rt.type.kind==="value"}static parse(Pt,Rt){if(Pt.length!==3&&Pt.length!==4)return Rt.error("Expected two or three arguments.");let oe=Pt[0],Te=Rt.parse(Pt[1],1,ya);if(!Te)return null;if(!lh(oe,Te.type))return Rt.concat(1).error(`"${oe}" comparisons are not supported for type '${aa(Te.type)}'.`);let De=Rt.parse(Pt[2],2,ya);if(!De)return null;if(!lh(oe,De.type))return Rt.concat(2).error(`"${oe}" comparisons are not supported for type '${aa(De.type)}'.`);if(Te.type.kind!==De.type.kind&&Te.type.kind!=="value"&&De.type.kind!=="value")return Rt.error(`Cannot compare types '${aa(Te.type)}' and '${aa(De.type)}'.`);ht&&(Te.type.kind==="value"&&De.type.kind!=="value"?Te=new bs(De.type,[Te]):Te.type.kind!=="value"&&De.type.kind==="value"&&(De=new bs(Te.type,[De])));let Ve=null;if(Pt.length===4){if(Te.type.kind!=="string"&&De.type.kind!=="string"&&Te.type.kind!=="value"&&De.type.kind!=="value")return Rt.error("Cannot use collator to compare non-string types.");if(Ve=Rt.parse(Pt[3],3,Ea),!Ve)return null}return new lg(Te,De,Ve)}evaluate(Pt){let Rt=this.lhs.evaluate(Pt),oe=this.rhs.evaluate(Pt);if(ht&&this.hasUntypedArgument){let Te=Oo(Rt),De=Oo(oe);if(Te.kind!==De.kind||!(Te.kind==="string"||Te.kind==="number"))throw new bo(`Expected arguments for "${D}" to be (string, string) or (number, number), but found (${Te.kind}, ${De.kind}) instead.`)}if(this.collator&&!ht&&this.hasUntypedArgument){let Te=Oo(Rt),De=Oo(oe);if(Te.kind!=="string"||De.kind!=="string")return z(Pt,Rt,oe)}return this.collator?q(Pt,Rt,oe,this.collator.evaluate(Pt)):z(Pt,Rt,oe)}eachChild(Pt){Pt(this.lhs),Pt(this.rhs),this.collator&&Pt(this.collator)}outputDefined(){return!0}}}let Zo=Ns("==",kc,El),Bc=Ns("!=",bu,ao),Nc=Ns("<",Fc,ru),wu=Ns(">",kh,Cl),uh=Ns("<=",rl,Ac),ch=Ns(">=",eu,ju);class ac{constructor(z,q,ht){this.type=Ea,this.locale=ht,this.caseSensitive=z,this.diacriticSensitive=q}static parse(z,q){if(z.length!==2)return q.error("Expected one argument.");let ht=z[1];if(typeof ht!="object"||Array.isArray(ht))return q.error("Collator options argument must be an object.");let vt=q.parse(ht["case-sensitive"]===void 0?!1:ht["case-sensitive"],1,wi);if(!vt)return null;let Pt=q.parse(ht["diacritic-sensitive"]===void 0?!1:ht["diacritic-sensitive"],1,wi);if(!Pt)return null;let Rt=null;return ht.locale&&(Rt=q.parse(ht.locale,1,Ci),!Rt)?null:new ac(vt,Pt,Rt)}evaluate(z){return new os(this.caseSensitive.evaluate(z),this.diacriticSensitive.evaluate(z),this.locale?this.locale.evaluate(z):null)}eachChild(z){z(this.caseSensitive),z(this.diacriticSensitive),this.locale&&z(this.locale)}outputDefined(){return!1}}class iu{constructor(z,q,ht,vt,Pt){this.type=Ci,this.number=z,this.locale=q,this.currency=ht,this.minFractionDigits=vt,this.maxFractionDigits=Pt}static parse(z,q){if(z.length!==3)return q.error("Expected two arguments.");let ht=q.parse(z[1],1,si);if(!ht)return null;let vt=z[2];if(typeof vt!="object"||Array.isArray(vt))return q.error("NumberFormat options argument must be an object.");let Pt=null;if(vt.locale&&(Pt=q.parse(vt.locale,1,Ci),!Pt))return null;let Rt=null;if(vt.currency&&(Rt=q.parse(vt.currency,1,Ci),!Rt))return null;let oe=null;if(vt["min-fraction-digits"]&&(oe=q.parse(vt["min-fraction-digits"],1,si),!oe))return null;let Te=null;return vt["max-fraction-digits"]&&(Te=q.parse(vt["max-fraction-digits"],1,si),!Te)?null:new iu(ht,Pt,Rt,oe,Te)}evaluate(z){return new Intl.NumberFormat(this.locale?this.locale.evaluate(z):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(z):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(z):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(z):void 0}).format(this.number.evaluate(z))}eachChild(z){z(this.number),this.locale&&z(this.locale),this.currency&&z(this.currency),this.minFractionDigits&&z(this.minFractionDigits),this.maxFractionDigits&&z(this.maxFractionDigits)}outputDefined(){return!1}}class ws{constructor(z){this.type=Fa,this.sections=z}static parse(z,q){if(z.length<2)return q.error("Expected at least one argument.");let ht=z[1];if(!Array.isArray(ht)&&typeof ht=="object")return q.error("First argument must be an image or text section.");let vt=[],Pt=!1;for(let Rt=1;Rt<=z.length-1;++Rt){let oe=z[Rt];if(Pt&&typeof oe=="object"&&!Array.isArray(oe)){Pt=!1;let Te=null;if(oe["font-scale"]&&(Te=q.parse(oe["font-scale"],1,si),!Te))return null;let De=null;if(oe["text-font"]&&(De=q.parse(oe["text-font"],1,Si(Ci)),!De))return null;let Ve=null;if(oe["text-color"]&&(Ve=q.parse(oe["text-color"],1,ma),!Ve))return null;let Je=vt[vt.length-1];Je.scale=Te,Je.font=De,Je.textColor=Ve}else{let Te=q.parse(z[Rt],1,ya);if(!Te)return null;let De=Te.type.kind;if(De!=="string"&&De!=="value"&&De!=="null"&&De!=="resolvedImage")return q.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Pt=!0,vt.push({content:Te,scale:null,font:null,textColor:null})}}return new ws(vt)}evaluate(z){return new Qo(this.sections.map(q=>{let ht=q.content.evaluate(z);return Oo(ht)===ji?new Bo("",ht,null,null,null):new Bo(zo(ht),null,q.scale?q.scale.evaluate(z):null,q.font?q.font.evaluate(z).join(","):null,q.textColor?q.textColor.evaluate(z):null)}))}eachChild(z){for(let q of this.sections)z(q.content),q.scale&&z(q.scale),q.font&&z(q.font),q.textColor&&z(q.textColor)}outputDefined(){return!1}}class Ms{constructor(z){this.type=ji,this.input=z}static parse(z,q){if(z.length!==2)return q.error("Expected two arguments.");let ht=q.parse(z[1],1,Ci);return ht?new Ms(ht):q.error("No image name provided.")}evaluate(z){let q=this.input.evaluate(z),ht=xo.fromString(q);return ht&&z.availableImages&&(ht.available=z.availableImages.indexOf(q)>-1),ht}eachChild(z){z(this.input)}outputDefined(){return!1}}class jc{constructor(z){this.type=si,this.input=z}static parse(z,q){if(z.length!==2)return q.error(`Expected 1 argument, but found ${z.length-1} instead.`);let ht=q.parse(z[1],1);return ht?ht.type.kind!=="array"&&ht.type.kind!=="string"&&ht.type.kind!=="value"?q.error(`Expected argument of type string or array, but found ${aa(ht.type)} instead.`):new jc(ht):null}evaluate(z){let q=this.input.evaluate(z);if(typeof q=="string"||Array.isArray(q))return q.length;throw new bo(`Expected value to be of type string or array, but found ${aa(Oo(q))} instead.`)}eachChild(z){z(this.input)}outputDefined(){return!1}}let il=8192;function Ah(D,z){let q=Uu(D[0]),ht=Vc(D[1]),vt=2**z.z;return[Math.round(q*vt*il),Math.round(ht*vt*il)]}function nc(D,z){let q=2**z.z,ht=(D[0]/il+z.x)/q,vt=(D[1]/il+z.y)/q;return[Uc(ht),oc(vt)]}function Uu(D){return(180+D)/360}function Uc(D){return D*360-180}function Vc(D){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+D*Math.PI/360)))/360}function oc(D){return 360/Math.PI*Math.atan(Math.exp((180-D*360)*Math.PI/180))-90}function Tu(D,z){D[0]=Math.min(D[0],z[0]),D[1]=Math.min(D[1],z[1]),D[2]=Math.max(D[2],z[0]),D[3]=Math.max(D[3],z[1])}function Vu(D,z){return!(D[0]<=z[0]||D[2]>=z[2]||D[1]<=z[1]||D[3]>=z[3])}function qc(D,z,q){return z[1]>D[1]!=q[1]>D[1]&&D[0]<(q[0]-z[0])*(D[1]-z[1])/(q[1]-z[1])+z[0]}function qu(D,z,q){let ht=D[0]-z[0],vt=D[1]-z[1],Pt=D[0]-q[0],Rt=D[1]-q[1];return ht*Rt-Pt*vt===0&&ht*Pt<=0&&vt*Rt<=0}function ko(D,z,q,ht){let vt=[z[0]-D[0],z[1]-D[1]];return Hc([ht[0]-q[0],ht[1]-q[1]],vt)===0?!1:!!(Ss(D,z,q,ht)&&Ss(q,ht,D,z))}function au(D,z,q){for(let ht of q)for(let vt=0;vt0&&Je<0||Ve<0&&Je>0}function hl(D,z,q){let ht=[];for(let vt=0;vtq[2]){let vt=ht*.5,Pt=D[0]-q[0]>vt?-ht:q[0]-D[0]>vt?ht:0;Pt===0&&(Pt=D[0]-q[2]>vt?-ht:q[2]-D[0]>vt?ht:0),D[0]+=Pt}Tu(z,D)}function Yn(D){D[0]=D[1]=1/0,D[2]=D[3]=-1/0}function Il(D,z,q,ht){let vt=2**ht.z*il,Pt=[ht.x*il,ht.y*il],Rt=[];for(let oe of D)for(let Te of oe){let De=[Te.x+Pt[0],Te.y+Pt[1]];Ll(De,z,q,vt),Rt.push(De)}return Rt}function lo(D,z,q,ht){let vt=2**ht.z*il,Pt=[ht.x*il,ht.y*il],Rt=[];for(let oe of D){let Te=[];for(let De of oe){let Ve=[De.x+Pt[0],De.y+Pt[1]];Tu(z,Ve),Te.push(Ve)}Rt.push(Te)}if(z[2]-z[0]<=vt/2){Yn(z);for(let oe of Rt)for(let Te of oe)Ll(Te,z,q,vt)}return Rt}function Pl(D,z){let q=[1/0,1/0,-1/0,-1/0],ht=[1/0,1/0,-1/0,-1/0],vt=D.canonicalID();if(z.type==="Polygon"){let Pt=hl(z.coordinates,ht,vt),Rt=Il(D.geometry(),q,ht,vt);if(!Vu(q,ht))return!1;for(let oe of Rt)if(!qs(oe,Pt))return!1}if(z.type==="MultiPolygon"){let Pt=wo(z.coordinates,ht,vt),Rt=Il(D.geometry(),q,ht,vt);if(!Vu(q,ht))return!1;for(let oe of Rt)if(!Hu(oe,Pt))return!1}return!0}function Gu(D,z){let q=[1/0,1/0,-1/0,-1/0],ht=[1/0,1/0,-1/0,-1/0],vt=D.canonicalID();if(z.type==="Polygon"){let Pt=hl(z.coordinates,ht,vt),Rt=lo(D.geometry(),q,ht,vt);if(!Vu(q,ht))return!1;for(let oe of Rt)if(!nu(oe,Pt))return!1}if(z.type==="MultiPolygon"){let Pt=wo(z.coordinates,ht,vt),Rt=lo(D.geometry(),q,ht,vt);if(!Vu(q,ht))return!1;for(let oe of Rt)if(!Wo(oe,Pt))return!1}return!0}class no{constructor(z,q){this.type=wi,this.geojson=z,this.geometries=q}static parse(z,q){if(z.length!==2)return q.error(`'within' expression requires exactly one argument, but found ${z.length-1} instead.`);if(Fu(z[1])){let ht=z[1];if(ht.type==="FeatureCollection"){let vt=[];for(let Pt of ht.features){let{type:Rt,coordinates:oe}=Pt.geometry;Rt==="Polygon"&&vt.push(oe),Rt==="MultiPolygon"&&vt.push(...oe)}if(vt.length)return new no(ht,{type:"MultiPolygon",coordinates:vt})}else if(ht.type==="Feature"){let vt=ht.geometry.type;if(vt==="Polygon"||vt==="MultiPolygon")return new no(ht,ht.geometry)}else if(ht.type==="Polygon"||ht.type==="MultiPolygon")return new no(ht,ht)}return q.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(z){if(z.geometry()!=null&&z.canonicalID()!=null){if(z.geometryType()==="Point")return Pl(z,this.geometries);if(z.geometryType()==="LineString")return Gu(z,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let zl=class{constructor(D=[],z=hh){if(this.data=D,this.length=this.data.length,this.compare=z,this.length>0)for(let q=(this.length>>1)-1;q>=0;q--)this._down(q)}push(D){this.data.push(D),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;let D=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),D}peek(){return this.data[0]}_up(D){let{data:z,compare:q}=this,ht=z[D];for(;D>0;){let vt=D-1>>1,Pt=z[vt];if(q(ht,Pt)>=0)break;z[D]=Pt,D=vt}z[D]=ht}_down(D){let{data:z,compare:q}=this,ht=this.length>>1,vt=z[D];for(;D=0)break;z[D]=Rt,D=Pt}z[D]=vt}};function hh(D,z){return Dz?1:0}function Mh(D,z,q,ht,vt){Gc(D,z,q,ht||D.length-1,vt||Zc)}function Gc(D,z,q,ht,vt){for(;ht>q;){if(ht-q>600){var Pt=ht-q+1,Rt=z-q+1,oe=Math.log(Pt),Te=.5*Math.exp(2*oe/3),De=.5*Math.sqrt(oe*Te*(Pt-Te)/Pt)*(Rt-Pt/2<0?-1:1);Gc(D,z,Math.max(q,Math.floor(z-Rt*Te/Pt+De)),Math.min(ht,Math.floor(z+(Pt-Rt)*Te/Pt+De)),vt)}var Ve=D[z],Je=q,mr=ht;for(sc(D,q,z),vt(D[ht],Ve)>0&&sc(D,q,ht);Je0;)mr--}vt(D[q],Ve)===0?sc(D,q,mr):(mr++,sc(D,mr,ht)),mr<=z&&(q=mr+1),z<=mr&&(ht=mr-1)}}function sc(D,z,q){var ht=D[z];D[z]=D[q],D[q]=ht}function Zc(D,z){return Dz?1:0}function lc(D,z){if(D.length<=1)return[D];let q=[],ht,vt;for(let Pt of D){let Rt=ys(Pt);Rt!==0&&(Pt.area=Math.abs(Rt),vt===void 0&&(vt=Rt<0),vt===Rt<0?(ht&&q.push(ht),ht=[Pt]):ht.push(Pt))}if(ht&&q.push(ht),z>1)for(let Pt=0;Pt1?(De=z[Te+1][0],Ve=z[Te+1][1]):Rr>0&&(De+=Je/this.kx*Rr,Ve+=mr/this.ky*Rr)),Je=this.wrap(q[0]-De)*this.kx,mr=(q[1]-Ve)*this.ky;let Kr=Je*Je+mr*mr;Kr180;)z-=360;return z}}function Zu(D,z){return z[0]-D[0]}function cc(D){return D[1]-D[0]+1}function Ol(D,z){return D[1]>=D[0]&&D[1]D[1])return[null,null];let q=cc(D);if(z){if(q===2)return[D,null];let vt=Math.floor(q/2);return[[D[0],D[0]+vt],[D[0]+vt,D[1]]]}if(q===1)return[D,null];let ht=Math.floor(q/2)-1;return[[D[0],D[0]+ht],[D[0]+ht+1,D[1]]]}function hc(D,z){if(!Ol(z,D.length))return[1/0,1/0,-1/0,-1/0];let q=[1/0,1/0,-1/0,-1/0];for(let ht=z[0];ht<=z[1];++ht)Tu(q,D[ht]);return q}function fl(D){let z=[1/0,1/0,-1/0,-1/0];for(let q of D)for(let ht of q)Tu(z,ht);return z}function ts(D){return D[0]!==-1/0&&D[1]!==-1/0&&D[2]!==1/0&&D[3]!==1/0}function Zs(D,z,q){if(!ts(D)||!ts(z))return NaN;let ht=0,vt=0;return D[2]z[2]&&(ht=D[0]-z[2]),D[1]>z[3]&&(vt=D[1]-z[3]),D[3]=ht)return ht;if(Vu(vt,Pt)){if(Zl(D,z))return 0}else if(Zl(z,D))return 0;let Rt=1/0;for(let oe of D)for(let Te=0,De=oe.length,Ve=De-1;Te0;){let Te=Rt.pop();if(Te[0]>=Pt)continue;let De=Te[1],Ve=z?50:100;if(cc(De)<=Ve){if(!Ol(De,D.length))return NaN;if(z){let Je=fc(D,De,q,ht);if(isNaN(Je)||Je===0)return Je;Pt=Math.min(Pt,Je)}else for(let Je=De[0];Je<=De[1];++Je){let mr=Es(D[Je],q,ht);if(Pt=Math.min(Pt,mr),Pt===0)return 0}}else{let Je=Wc(De,z);pc(Rt,Pt,ht,D,oe,Je[0]),pc(Rt,Pt,ht,D,oe,Je[1])}}return Pt}function Rl(D,z,q,ht,vt,Pt=1/0){let Rt=Math.min(Pt,vt.distance(D[0],q[0]));if(Rt===0)return Rt;let oe=new zl([[0,[0,D.length-1],[0,q.length-1]]],Zu);for(;oe.length>0;){let Te=oe.pop();if(Te[0]>=Rt)continue;let De=Te[1],Ve=Te[2],Je=z?50:100,mr=ht?50:100;if(cc(De)<=Je&&cc(Ve)<=mr){if(!Ol(De,D.length)&&Ol(Ve,q.length))return NaN;let Rr;if(z&&ht)Rr=Sc(D,De,q,Ve,vt),Rt=Math.min(Rt,Rr);else if(z&&!ht){let Kr=D.slice(De[0],De[1]+1);for(let ni=Ve[0];ni<=Ve[1];++ni)if(Rr=Dl(q[ni],Kr,vt),Rt=Math.min(Rt,Rr),Rt===0)return Rt}else if(!z&&ht){let Kr=q.slice(Ve[0],Ve[1]+1);for(let ni=De[0];ni<=De[1];++ni)if(Rr=Dl(D[ni],Kr,vt),Rt=Math.min(Rt,Rr),Rt===0)return Rt}else Rr=fh(D,De,q,Ve,vt),Rt=Math.min(Rt,Rr)}else{let Rr=Wc(De,z),Kr=Wc(Ve,ht);Wl(oe,Rt,vt,D,q,Rr[0],Kr[0]),Wl(oe,Rt,vt,D,q,Rr[0],Kr[1]),Wl(oe,Rt,vt,D,q,Rr[1],Kr[0]),Wl(oe,Rt,vt,D,q,Rr[1],Kr[1])}}return Rt}function Ec(D,z){let q=D.geometry(),ht=q.flat().map(Rt=>nc([Rt.x,Rt.y],D.canonical));if(q.length===0)return NaN;let vt=new uc(ht[0][1]),Pt=1/0;for(let Rt of z){switch(Rt.type){case"Point":Pt=Math.min(Pt,Rl(ht,!1,[Rt.coordinates],!1,vt,Pt));break;case"LineString":Pt=Math.min(Pt,Rl(ht,!1,Rt.coordinates,!0,vt,Pt));break;case"Polygon":Pt=Math.min(Pt,uo(ht,!1,Rt.coordinates,vt,Pt));break}if(Pt===0)return Pt}return Pt}function dc(D,z){let q=D.geometry(),ht=q.flat().map(Rt=>nc([Rt.x,Rt.y],D.canonical));if(q.length===0)return NaN;let vt=new uc(ht[0][1]),Pt=1/0;for(let Rt of z){switch(Rt.type){case"Point":Pt=Math.min(Pt,Rl(ht,!0,[Rt.coordinates],!1,vt,Pt));break;case"LineString":Pt=Math.min(Pt,Rl(ht,!0,Rt.coordinates,!0,vt,Pt));break;case"Polygon":Pt=Math.min(Pt,uo(ht,!0,Rt.coordinates,vt,Pt));break}if(Pt===0)return Pt}return Pt}function mc(D,z){let q=D.geometry();if(q.length===0||q[0].length===0)return NaN;let ht=lc(q,0).map(Rt=>Rt.map(oe=>oe.map(Te=>nc([Te.x,Te.y],D.canonical)))),vt=new uc(ht[0][0][0][1]),Pt=1/0;for(let Rt of z)for(let oe of ht){switch(Rt.type){case"Point":Pt=Math.min(Pt,uo([Rt.coordinates],!1,oe,vt,Pt));break;case"LineString":Pt=Math.min(Pt,uo(Rt.coordinates,!0,oe,vt,Pt));break;case"Polygon":Pt=Math.min(Pt,ou(oe,Rt.coordinates,vt,Pt));break}if(Pt===0)return Pt}return Pt}function Mu(D){return D.type==="MultiPolygon"?D.coordinates.map(z=>({type:"Polygon",coordinates:z})):D.type==="MultiLineString"?D.coordinates.map(z=>({type:"LineString",coordinates:z})):D.type==="MultiPoint"?D.coordinates.map(z=>({type:"Point",coordinates:z})):[D]}class Yl{constructor(z,q){this.type=si,this.geojson=z,this.geometries=q}static parse(z,q){if(z.length!==2)return q.error(`'distance' expression requires exactly one argument, but found ${z.length-1} instead.`);if(Fu(z[1])){let ht=z[1];if(ht.type==="FeatureCollection")return new Yl(ht,ht.features.map(vt=>Mu(vt.geometry)).flat());if(ht.type==="Feature")return new Yl(ht,Mu(ht.geometry));if("type"in ht&&"coordinates"in ht)return new Yl(ht,Mu(ht))}return q.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(z){if(z.geometry()!=null&&z.canonicalID()!=null){if(z.geometryType()==="Point")return Ec(z,this.geometries);if(z.geometryType()==="LineString")return dc(z,this.geometries);if(z.geometryType()==="Polygon")return mc(z,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let al={"==":Zo,"!=":Bc,">":wu,"<":Nc,">=":ch,"<=":uh,array:bs,at:ss,boolean:bs,case:Nu,coalesce:Gl,collator:ac,format:ws,image:Ms,in:vu,"index-of":cl,interpolate:us,"interpolate-hcl":us,"interpolate-lab":us,length:jc,let:yu,literal:As,match:el,number:bs,"number-format":iu,object:bs,slice:xu,step:Hl,string:bs,"to-boolean":gs,"to-color":gs,"to-number":gs,"to-string":gs,var:Bs,within:no,distance:Yl};class Cs{constructor(z,q,ht,vt){this.name=z,this.type=q,this._evaluate=ht,this.args=vt}evaluate(z){return this._evaluate(z,this.args)}eachChild(z){this.args.forEach(z)}outputDefined(){return!1}static parse(z,q){let ht=z[0],vt=Cs.definitions[ht];if(!vt)return q.error(`Unknown expression "${ht}". If you wanted a literal array, use ["literal", [...]].`,0);let Pt=Array.isArray(vt)?vt[0]:vt.type,Rt=Array.isArray(vt)?[[vt[1],vt[2]]]:vt.overloads,oe=Rt.filter(([De])=>!Array.isArray(De)||De.length===z.length-1),Te=null;for(let[De,Ve]of oe){Te=new jo(q.registry,su,q.path,null,q.scope);let Je=[],mr=!1;for(let Rr=1;RrBl(Je)).join(" | "),Ve=[];for(let Je=1;Je>1;if(z[vt]===D)return!0;z[vt]>D?ht=vt-1:q=vt+1}return!1}function Ws(D){return{type:D}}Cs.register(al,{error:[Ga,[Ci],(D,[z])=>{throw new bo(z.evaluate(D))}],typeof:[Ci,[ya],(D,[z])=>aa(Oo(z.evaluate(D)))],"to-rgba":[Si(si,4),[ma],(D,[z])=>{let[q,ht,vt,Pt]=z.evaluate(D).rgb;return[q*255,ht*255,vt*255,Pt]}],rgb:[ma,[si,si,si],gc],rgba:[ma,[si,si,si,si],gc],has:{type:wi,overloads:[[[Ci],(D,[z])=>Su(z.evaluate(D),D.properties())],[[Ci,Ha],(D,[z,q])=>Su(z.evaluate(D),q.evaluate(D))]]},get:{type:ya,overloads:[[[Ci],(D,[z])=>Fl(z.evaluate(D),D.properties())],[[Ci,Ha],(D,[z,q])=>Fl(z.evaluate(D),q.evaluate(D))]]},"feature-state":[ya,[Ci],(D,[z])=>Fl(z.evaluate(D),D.featureState||{})],properties:[Ha,[],D=>D.properties()],"geometry-type":[Ci,[],D=>D.geometryType()],id:[ya,[],D=>D.id()],zoom:[si,[],D=>D.globals.zoom],"heatmap-density":[si,[],D=>D.globals.heatmapDensity||0],"line-progress":[si,[],D=>D.globals.lineProgress||0],accumulated:[ya,[],D=>D.globals.accumulated===void 0?null:D.globals.accumulated],"+":[si,Ws(si),(D,z)=>{let q=0;for(let ht of z)q+=ht.evaluate(D);return q}],"*":[si,Ws(si),(D,z)=>{let q=1;for(let ht of z)q*=ht.evaluate(D);return q}],"-":{type:si,overloads:[[[si,si],(D,[z,q])=>z.evaluate(D)-q.evaluate(D)],[[si],(D,[z])=>-z.evaluate(D)]]},"/":[si,[si,si],(D,[z,q])=>z.evaluate(D)/q.evaluate(D)],"%":[si,[si,si],(D,[z,q])=>z.evaluate(D)%q.evaluate(D)],ln2:[si,[],()=>Math.LN2],pi:[si,[],()=>Math.PI],e:[si,[],()=>Math.E],"^":[si,[si,si],(D,[z,q])=>z.evaluate(D)**+q.evaluate(D)],sqrt:[si,[si],(D,[z])=>Math.sqrt(z.evaluate(D))],log10:[si,[si],(D,[z])=>Math.log(z.evaluate(D))/Math.LN10],ln:[si,[si],(D,[z])=>Math.log(z.evaluate(D))],log2:[si,[si],(D,[z])=>Math.log(z.evaluate(D))/Math.LN2],sin:[si,[si],(D,[z])=>Math.sin(z.evaluate(D))],cos:[si,[si],(D,[z])=>Math.cos(z.evaluate(D))],tan:[si,[si],(D,[z])=>Math.tan(z.evaluate(D))],asin:[si,[si],(D,[z])=>Math.asin(z.evaluate(D))],acos:[si,[si],(D,[z])=>Math.acos(z.evaluate(D))],atan:[si,[si],(D,[z])=>Math.atan(z.evaluate(D))],min:[si,Ws(si),(D,z)=>Math.min(...z.map(q=>q.evaluate(D)))],max:[si,Ws(si),(D,z)=>Math.max(...z.map(q=>q.evaluate(D)))],abs:[si,[si],(D,[z])=>Math.abs(z.evaluate(D))],round:[si,[si],(D,[z])=>{let q=z.evaluate(D);return q<0?-Math.round(-q):Math.round(q)}],floor:[si,[si],(D,[z])=>Math.floor(z.evaluate(D))],ceil:[si,[si],(D,[z])=>Math.ceil(z.evaluate(D))],"filter-==":[wi,[Ci,ya],(D,[z,q])=>D.properties()[z.value]===q.value],"filter-id-==":[wi,[ya],(D,[z])=>D.id()===z.value],"filter-type-==":[wi,[Ci],(D,[z])=>D.geometryType()===z.value],"filter-<":[wi,[Ci,ya],(D,[z,q])=>{let ht=D.properties()[z.value],vt=q.value;return typeof ht==typeof vt&&ht{let q=D.id(),ht=z.value;return typeof q==typeof ht&&q":[wi,[Ci,ya],(D,[z,q])=>{let ht=D.properties()[z.value],vt=q.value;return typeof ht==typeof vt&&ht>vt}],"filter-id->":[wi,[ya],(D,[z])=>{let q=D.id(),ht=z.value;return typeof q==typeof ht&&q>ht}],"filter-<=":[wi,[Ci,ya],(D,[z,q])=>{let ht=D.properties()[z.value],vt=q.value;return typeof ht==typeof vt&&ht<=vt}],"filter-id-<=":[wi,[ya],(D,[z])=>{let q=D.id(),ht=z.value;return typeof q==typeof ht&&q<=ht}],"filter->=":[wi,[Ci,ya],(D,[z,q])=>{let ht=D.properties()[z.value],vt=q.value;return typeof ht==typeof vt&&ht>=vt}],"filter-id->=":[wi,[ya],(D,[z])=>{let q=D.id(),ht=z.value;return typeof q==typeof ht&&q>=ht}],"filter-has":[wi,[ya],(D,[z])=>z.value in D.properties()],"filter-has-id":[wi,[],D=>D.id()!==null&&D.id()!==void 0],"filter-type-in":[wi,[Si(Ci)],(D,[z])=>z.value.indexOf(D.geometryType())>=0],"filter-id-in":[wi,[Si(ya)],(D,[z])=>z.value.indexOf(D.id())>=0],"filter-in-small":[wi,[Ci,Si(ya)],(D,[z,q])=>q.value.indexOf(D.properties()[z.value])>=0],"filter-in-large":[wi,[Ci,Si(ya)],(D,[z,q])=>Xl(D.properties()[z.value],q.value,0,q.value.length-1)],all:{type:wi,overloads:[[[wi,wi],(D,[z,q])=>z.evaluate(D)&&q.evaluate(D)],[Ws(wi),(D,z)=>{for(let q of z)if(!q.evaluate(D))return!1;return!0}]]},any:{type:wi,overloads:[[[wi,wi],(D,[z,q])=>z.evaluate(D)||q.evaluate(D)],[Ws(wi),(D,z)=>{for(let q of z)if(q.evaluate(D))return!0;return!1}]]},"!":[wi,[wi],(D,[z])=>!z.evaluate(D)],"is-supported-script":[wi,[Ci],(D,[z])=>{let q=D.globals&&D.globals.isSupportedScript;return q?q(z.evaluate(D)):!0}],upcase:[Ci,[Ci],(D,[z])=>z.evaluate(D).toUpperCase()],downcase:[Ci,[Ci],(D,[z])=>z.evaluate(D).toLowerCase()],concat:[Ci,Ws(ya),(D,z)=>z.map(q=>zo(q.evaluate(D))).join("")],"resolved-locale":[Ci,[Ea],(D,[z])=>z.evaluate(D).resolvedLocale()]});function Bl(D){return Array.isArray(D)?`(${D.map(aa).join(", ")})`:`(${aa(D.type)}...)`}function su(D){if(D instanceof Bs)return su(D.boundExpression);if(D instanceof Cs&&D.name==="error"||D instanceof ac||D instanceof no||D instanceof Yl)return!1;let z=D instanceof gs||D instanceof bs,q=!0;return D.eachChild(ht=>{z?q&&(q=su(ht)):q&&(q=ht instanceof As)}),q?Uo(D)&&Eu(D,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Uo(D){if(D instanceof Cs&&(D.name==="get"&&D.args.length===1||D.name==="feature-state"||D.name==="has"&&D.args.length===1||D.name==="properties"||D.name==="geometry-type"||D.name==="id"||/^filter-/.test(D.name))||D instanceof no||D instanceof Yl)return!1;let z=!0;return D.eachChild(q=>{z&&!Uo(q)&&(z=!1)}),z}function lu(D){if(D instanceof Cs&&D.name==="feature-state")return!1;let z=!0;return D.eachChild(q=>{z&&!lu(q)&&(z=!1)}),z}function Eu(D,z){if(D instanceof Cs&&z.indexOf(D.name)>=0)return!1;let q=!0;return D.eachChild(ht=>{q&&!Eu(ht,z)&&(q=!1)}),q}function uu(D){return{result:"success",value:D}}function nl(D){return{result:"error",value:D}}function cs(D){return D["property-type"]==="data-driven"||D["property-type"]==="cross-faded-data-driven"}function Cu(D){return!!D.expression&&D.expression.parameters.indexOf("zoom")>-1}function cu(D){return!!D.expression&&D.expression.interpolated}function ro(D){return D instanceof Number?"number":D instanceof String?"string":D instanceof Boolean?"boolean":Array.isArray(D)?"array":D===null?"null":typeof D}function Ls(D){return typeof D=="object"&&!!D&&!Array.isArray(D)}function Wu(D){return D}function Cc(D,z){let q=z.type==="color",ht=D.stops&&typeof D.stops[0][0]=="object",vt=ht||D.property!==void 0,Pt=ht||!vt,Rt=D.type||(cu(z)?"exponential":"interval");if(q||z.type==="padding"){let Ve=q?Kn.parse:Gn.parse;D=Vr({},D),D.stops&&(D.stops=D.stops.map(Je=>[Je[0],Ve(Je[1])])),D.default?D.default=Ve(D.default):D.default=Ve(z.default)}if(D.colorSpace&&!Th(D.colorSpace))throw Error(`Unknown color space: "${D.colorSpace}"`);let oe,Te,De;if(Rt==="exponential")oe=Yu;else if(Rt==="interval")oe=ol;else if(Rt==="categorical"){oe=yc,Te=Object.create(null);for(let Ve of D.stops)Te[Ve[0]]=Ve[1];De=typeof D.stops[0][0]}else if(Rt==="identity")oe=Xu;else throw Error(`Unknown function type "${Rt}"`);if(ht){let Ve={},Je=[];for(let Kr=0;KrKr[0]),evaluate({zoom:Kr},ni){return Yu({stops:mr,base:D.base},z,Kr).evaluate(Kr,ni)}}}else if(Pt){let Ve=Rt==="exponential"?{name:"exponential",base:D.base===void 0?1:D.base}:null;return{kind:"camera",interpolationType:Ve,interpolationFactor:us.interpolationFactor.bind(void 0,Ve),zoomStops:D.stops.map(Je=>Je[0]),evaluate:({zoom:Je})=>oe(D,z,Je,Te,De)}}else return{kind:"source",evaluate(Ve,Je){let mr=Je&&Je.properties?Je.properties[D.property]:void 0;return mr===void 0?hu(D.default,z.default):oe(D,z,mr,Te,De)}}}function hu(D,z,q){if(D!==void 0)return D;if(z!==void 0)return z;if(q!==void 0)return q}function yc(D,z,q,ht,vt){return hu(typeof q===vt?ht[q]:void 0,D.default,z.default)}function ol(D,z,q){if(ro(q)!=="number")return hu(D.default,z.default);let ht=D.stops.length;if(ht===1||q<=D.stops[0][0])return D.stops[0][1];if(q>=D.stops[ht-1][0])return D.stops[ht-1][1];let vt=rc(D.stops.map(Pt=>Pt[0]),q);return D.stops[vt][1]}function Yu(D,z,q){let ht=D.base===void 0?1:D.base;if(ro(q)!=="number")return hu(D.default,z.default);let vt=D.stops.length;if(vt===1||q<=D.stops[0][0])return D.stops[0][1];if(q>=D.stops[vt-1][0])return D.stops[vt-1][1];let Pt=rc(D.stops.map(Ve=>Ve[0]),q),Rt=Ys(q,ht,D.stops[Pt][0],D.stops[Pt+1][0]),oe=D.stops[Pt][1],Te=D.stops[Pt+1][1],De=ls[z.type]||Wu;return typeof oe.evaluate=="function"?{evaluate(...Ve){let Je=oe.evaluate.apply(void 0,Ve),mr=Te.evaluate.apply(void 0,Ve);if(!(Je===void 0||mr===void 0))return De(Je,mr,Rt,D.colorSpace)}}:De(oe,Te,Rt,D.colorSpace)}function Xu(D,z,q){switch(z.type){case"color":q=Kn.parse(q);break;case"formatted":q=Qo.fromString(q.toString());break;case"resolvedImage":q=xo.fromString(q.toString());break;case"padding":q=Gn.parse(q);break;default:ro(q)!==z.type&&(z.type!=="enum"||!z.values[q])&&(q=void 0)}return hu(q,D.default,z.default)}function Ys(D,z,q,ht){let vt=ht-q,Pt=D-q;return vt===0?0:z===1?Pt/vt:(z**+Pt-1)/(z**+vt-1)}class es{constructor(z,q){this.expression=z,this._warningHistory={},this._evaluator=new Bu,this._defaultValue=q?ne(q):null,this._enumValues=q&&q.type==="enum"?q.values:null}evaluateWithoutErrorHandling(z,q,ht,vt,Pt,Rt){return this._evaluator.globals=z,this._evaluator.feature=q,this._evaluator.featureState=ht,this._evaluator.canonical=vt,this._evaluator.availableImages=Pt||null,this._evaluator.formattedSection=Rt,this.expression.evaluate(this._evaluator)}evaluate(z,q,ht,vt,Pt,Rt){this._evaluator.globals=z,this._evaluator.feature=q||null,this._evaluator.featureState=ht||null,this._evaluator.canonical=vt,this._evaluator.availableImages=Pt||null,this._evaluator.formattedSection=Rt||null;try{let oe=this.expression.evaluate(this._evaluator);if(oe==null||typeof oe=="number"&&oe!==oe)return this._defaultValue;if(this._enumValues&&!(oe in this._enumValues))throw new bo(`Expected value to be one of ${Object.keys(this._enumValues).map(Te=>JSON.stringify(Te)).join(", ")}, but found ${JSON.stringify(oe)} instead.`);return oe}catch(oe){return this._warningHistory[oe.message]||(this._warningHistory[oe.message]=!0,typeof console<"u"&&console.warn(oe.message)),this._defaultValue}}}function Xs(D){return Array.isArray(D)&&D.length>0&&typeof D[0]=="string"&&D[0]in al}function fu(D,z){let q=new jo(al,su,[],z?xc(z):void 0),ht=q.parse(D,void 0,void 0,void 0,z&&z.type==="string"?{typeAnnotation:"coerce"}:void 0);return ht?uu(new es(ht,z)):nl(q.errors)}class $u{constructor(z,q){this.kind=z,this._styleExpression=q,this.isStateDependent=z!=="constant"&&!lu(q.expression)}evaluateWithoutErrorHandling(z,q,ht,vt,Pt,Rt){return this._styleExpression.evaluateWithoutErrorHandling(z,q,ht,vt,Pt,Rt)}evaluate(z,q,ht,vt,Pt,Rt){return this._styleExpression.evaluate(z,q,ht,vt,Pt,Rt)}}class vc{constructor(z,q,ht,vt){this.kind=z,this.zoomStops=ht,this._styleExpression=q,this.isStateDependent=z!=="camera"&&!lu(q.expression),this.interpolationType=vt}evaluateWithoutErrorHandling(z,q,ht,vt,Pt,Rt){return this._styleExpression.evaluateWithoutErrorHandling(z,q,ht,vt,Pt,Rt)}evaluate(z,q,ht,vt,Pt,Rt){return this._styleExpression.evaluate(z,q,ht,vt,Pt,Rt)}interpolationFactor(z,q,ht){return this.interpolationType?us.interpolationFactor(this.interpolationType,z,q,ht):0}}function pl(D){return D._styleExpression!==void 0}function Ju(D,z){let q=fu(D,z);if(q.result==="error")return q;let ht=q.value.expression,vt=Uo(ht);if(!vt&&!cs(z))return nl([new li("","data expressions not supported")]);let Pt=Eu(ht,["zoom"]);if(!Pt&&!Cu(z))return nl([new li("","zoom expressions not supported")]);let Rt=Lu(ht);if(!Rt&&!Pt)return nl([new li("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(Rt instanceof li)return nl([Rt]);if(Rt instanceof us&&!cu(z))return nl([new li("",'"interpolate" expressions cannot be used with this property')]);if(!Rt)return uu(vt?new $u("constant",q.value):new $u("source",q.value));let oe=Rt instanceof us?Rt.interpolation:void 0;return uu(vt?new vc("camera",q.value,Rt.labels,oe):new vc("composite",q.value,Rt.labels,oe))}class Nl{constructor(z,q){this._parameters=z,this._specification=q,Vr(this,Cc(this._parameters,this._specification))}static deserialize(z){return new Nl(z._parameters,z._specification)}static serialize(z){return{_parameters:z._parameters,_specification:z._specification}}}function Yc(D,z){if(Ls(D))return new Nl(D,z);if(Xs(D)){let q=Ju(D,z);if(q.result==="error")throw Error(q.value.map(ht=>`${ht.key}: ${ht.message}`).join(", "));return q.value}else{let q=D;return z.type==="color"&&typeof D=="string"?q=Kn.parse(D):z.type==="padding"&&(typeof D=="number"||Array.isArray(D))?q=Gn.parse(D):z.type==="variableAnchorOffsetCollection"&&Array.isArray(D)&&(q=xs.parse(D)),{kind:"constant",evaluate:()=>q}}}function Lu(D){let z=null;if(D instanceof yu)z=Lu(D.result);else if(D instanceof Gl){for(let q of D.args)if(z=Lu(q),z)break}else(D instanceof Hl||D instanceof us)&&D.input instanceof Cs&&D.input.name==="zoom"&&(z=D);return z instanceof li||D.eachChild(q=>{let ht=Lu(q);ht instanceof li?z=ht:!z&&ht?z=new li("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):z&&ht&&z!==ht&&(z=new li("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),z}function xc(D){let z={color:ma,string:Ci,number:si,enum:Ci,boolean:wi,formatted:Fa,padding:Xr,resolvedImage:ji,variableAnchorOffsetCollection:Li};return D.type==="array"?Si(z[D.value]||ya,D.length):z[D.type]}function ne(D){return D.type==="color"&&Ls(D.default)?new Kn(0,0,0,0):D.type==="color"?Kn.parse(D.default)||null:D.type==="padding"?Gn.parse(D.default)||null:D.type==="variableAnchorOffsetCollection"?xs.parse(D.default)||null:D.default===void 0?null:D.default}function pe(D){if(D===!0||D===!1)return!0;if(!Array.isArray(D)||D.length===0)return!1;switch(D[0]){case"has":return D.length>=2&&D[1]!=="$id"&&D[1]!=="$type";case"in":return D.length>=3&&(typeof D[1]!="string"||Array.isArray(D[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return D.length!==3||Array.isArray(D[1])||Array.isArray(D[2]);case"any":case"all":for(let z of D.slice(1))if(!pe(z)&&typeof z!="boolean")return!1;return!0;default:return!0}}let Se={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ze(D){if(D==null)return{filter:()=>!0,needGeometry:!1};pe(D)||(D=tr(D));let z=fu(D,Se);if(z.result==="error")throw Error(z.value.map(q=>`${q.key}: ${q.message}`).join(", "));return{filter:(q,ht,vt)=>z.value.evaluate(q,ht,{},vt),needGeometry:Ze(D)}}function Xe(D,z){return Dz?1:0}function Ze(D){if(!Array.isArray(D))return!1;if(D[0]==="within"||D[0]==="distance")return!0;for(let z=1;z"||z==="<="||z===">="?zr(D[1],D[2],z):z==="any"?qr(D.slice(1)):z==="all"?["all"].concat(D.slice(1).map(tr)):z==="none"?["all"].concat(D.slice(1).map(tr).map(ii)):z==="in"?Lr(D[1],D.slice(2)):z==="!in"?ii(Lr(D[1],D.slice(2))):z==="has"?Hr(D[1]):z==="!has"?ii(Hr(D[1])):!0}function zr(D,z,q){switch(D){case"$type":return[`filter-type-${q}`,z];case"$id":return[`filter-id-${q}`,z];default:return[`filter-${q}`,D,z]}}function qr(D){return["any"].concat(D.map(tr))}function Lr(D,z){if(z.length===0)return!1;switch(D){case"$type":return["filter-type-in",["literal",z]];case"$id":return["filter-id-in",["literal",z]];default:return z.length>200&&!z.some(q=>typeof q!=typeof z[0])?["filter-in-large",D,["literal",z.sort(Xe)]]:["filter-in-small",D,["literal",z]]}}function Hr(D){switch(D){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",D]}}function ii(D){return["!",D]}function di(D){let z=typeof D;if(z==="number"||z==="boolean"||z==="string"||D==null)return JSON.stringify(D);if(Array.isArray(D)){let vt="[";for(let Pt of D)vt+=`${di(Pt)},`;return`${vt}]`}let q=Object.keys(D).sort(),ht="{";for(let vt=0;vtht.maximum?[new Tr(z,q,`${q} is greater than the maximum value ${ht.maximum}`)]:[]:[new Tr(z,q,`number expected, ${vt} found`)]}function Ao(D){let z=D.valueSpec,q=pa(D.value.type),ht,vt={},Pt,Rt,oe=q!=="categorical"&&D.value.property===void 0,Te=!oe,De=ro(D.value.stops)==="array"&&ro(D.value.stops[0])==="array"&&ro(D.value.stops[0][0])==="object",Ve=fn({key:D.key,value:D.value,valueSpec:D.styleSpec.function,validateSpec:D.validateSpec,style:D.style,styleSpec:D.styleSpec,objectElementValidators:{stops:Je,default:Kr}});return q==="identity"&&oe&&Ve.push(new Tr(D.key,D.value,'missing required property "property"')),q!=="identity"&&!D.value.stops&&Ve.push(new Tr(D.key,D.value,'missing required property "stops"')),q==="exponential"&&D.valueSpec.expression&&!cu(D.valueSpec)&&Ve.push(new Tr(D.key,D.value,"exponential functions not supported")),D.styleSpec.$version>=8&&(Te&&!cs(D.valueSpec)?Ve.push(new Tr(D.key,D.value,"property functions not supported")):oe&&!Cu(D.valueSpec)&&Ve.push(new Tr(D.key,D.value,"zoom functions not supported"))),(q==="categorical"||De)&&D.value.property===void 0&&Ve.push(new Tr(D.key,D.value,'"property" property is required')),Ve;function Je(ni){if(q==="identity")return[new Tr(ni.key,ni.value,'identity function may not have a "stops" property')];let Bi=[],ia=ni.value;return Bi=Bi.concat(kn({key:ni.key,value:ia,valueSpec:ni.valueSpec,validateSpec:ni.validateSpec,style:ni.style,styleSpec:ni.styleSpec,arrayElementValidator:mr})),ro(ia)==="array"&&ia.length===0&&Bi.push(new Tr(ni.key,ia,"array must have at least one stop")),Bi}function mr(ni){let Bi=[],ia=ni.value,ba=ni.key;if(ro(ia)!=="array")return[new Tr(ba,ia,`array expected, ${ro(ia)} found`)];if(ia.length!==2)return[new Tr(ba,ia,`array length 2 expected, length ${ia.length} found`)];if(De){if(ro(ia[0])!=="object")return[new Tr(ba,ia,`object expected, ${ro(ia[0])} found`)];if(ia[0].zoom===void 0)return[new Tr(ba,ia,"object stop key must have zoom")];if(ia[0].value===void 0)return[new Tr(ba,ia,"object stop key must have value")];if(Rt&&Rt>pa(ia[0].zoom))return[new Tr(ba,ia[0].zoom,"stop zoom values must appear in ascending order")];pa(ia[0].zoom)!==Rt&&(Rt=pa(ia[0].zoom),Pt=void 0,vt={}),Bi=Bi.concat(fn({key:`${ba}[0]`,value:ia[0],valueSpec:{zoom:{}},validateSpec:ni.validateSpec,style:ni.style,styleSpec:ni.styleSpec,objectElementValidators:{zoom:En,value:Rr}}))}else Bi=Bi.concat(Rr({key:`${ba}[0]`,value:ia[0],valueSpec:{},validateSpec:ni.validateSpec,style:ni.style,styleSpec:ni.styleSpec},ia));return Xs(Ra(ia[1]))?Bi.concat([new Tr(`${ba}[1]`,ia[1],"expressions are not allowed in function stops.")]):Bi.concat(ni.validateSpec({key:`${ba}[1]`,value:ia[1],valueSpec:z,validateSpec:ni.validateSpec,style:ni.style,styleSpec:ni.styleSpec}))}function Rr(ni,Bi){let ia=ro(ni.value),ba=pa(ni.value),ka=ni.value===null?Bi:ni.value;if(!ht)ht=ia;else if(ia!==ht)return[new Tr(ni.key,ka,`${ia} stop domain type must match previous stop domain type ${ht}`)];if(ia!=="number"&&ia!=="string"&&ia!=="boolean")return[new Tr(ni.key,ka,"stop domain value must be a number, string, or boolean")];if(ia!=="number"&&q!=="categorical"){let Ma=`number expected, ${ia} found`;return cs(z)&&q===void 0&&(Ma+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Tr(ni.key,ka,Ma)]}return q==="categorical"&&ia==="number"&&(!isFinite(ba)||Math.floor(ba)!==ba)?[new Tr(ni.key,ka,`integer expected, found ${ba}`)]:q!=="categorical"&&ia==="number"&&Pt!==void 0&&banew Tr(`${D.key}${ht.key}`,D.value,ht.message));let q=z.value.expression||z.value._styleExpression.expression;if(D.expressionContext==="property"&&D.propertyKey==="text-font"&&!q.outputDefined())return[new Tr(D.key,D.value,`Invalid data expression for "${D.propertyKey}". Output values must be contained as literals within the expression.`)];if(D.expressionContext==="property"&&D.propertyType==="layout"&&!lu(q))return[new Tr(D.key,D.value,'"feature-state" data expressions are not supported with layout properties.')];if(D.expressionContext==="filter"&&!lu(q))return[new Tr(D.key,D.value,'"feature-state" data expressions are not supported with filters.')];if(D.expressionContext&&D.expressionContext.indexOf("cluster")===0){if(!Eu(q,["zoom","feature-state"]))return[new Tr(D.key,D.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(D.expressionContext==="cluster-initial"&&!Uo(q))return[new Tr(D.key,D.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function So(D){let z=D.value,q=D.key,ht=ro(z);return ht==="boolean"?[]:[new Tr(q,z,`boolean expected, ${ht} found`)]}function $a(D){let z=D.key,q=D.value,ht=ro(q);return ht==="string"?Kn.parse(String(q))?[]:[new Tr(z,q,`color expected, "${q}" found`)]:[new Tr(z,q,`color expected, ${ht} found`)]}function gt(D){let z=D.key,q=D.value,ht=D.valueSpec,vt=[];return Array.isArray(ht.values)?ht.values.indexOf(pa(q))===-1&&vt.push(new Tr(z,q,`expected one of [${ht.values.join(", ")}], ${JSON.stringify(q)} found`)):Object.keys(ht.values).indexOf(pa(q))===-1&&vt.push(new Tr(z,q,`expected one of [${Object.keys(ht.values).join(", ")}], ${JSON.stringify(q)} found`)),vt}function zt(D){return pe(Ra(D.value))?yo(Vr({},D,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Jt(D)}function Jt(D){let z=D.value,q=D.key;if(ro(z)!=="array")return[new Tr(q,z,`array expected, ${ro(z)} found`)];let ht=D.styleSpec,vt,Pt=[];if(z.length<1)return[new Tr(q,z,"filter array must have at least 1 element")];switch(Pt=Pt.concat(gt({key:`${q}[0]`,value:z[0],valueSpec:ht.filter_operator,style:D.style,styleSpec:D.styleSpec})),pa(z[0])){case"<":case"<=":case">":case">=":z.length>=2&&pa(z[1])==="$type"&&Pt.push(new Tr(q,z,`"$type" cannot be use with operator "${z[0]}"`));case"==":case"!=":z.length!==3&&Pt.push(new Tr(q,z,`filter array for operator "${z[0]}" must have 3 elements`));case"in":case"!in":z.length>=2&&(vt=ro(z[1]),vt!=="string"&&Pt.push(new Tr(`${q}[1]`,z[1],`string expected, ${vt} found`)));for(let Rt=2;Rt{De in q&&z.push(new Tr(ht,q[De],`"${De}" is prohibited for ref layers`))});let Te;vt.layers.forEach(De=>{pa(De.id)===oe&&(Te=De)}),Te?Te.ref?z.push(new Tr(ht,q.ref,"ref cannot reference another ref layer")):Rt=pa(Te.type):z.push(new Tr(ht,q.ref,`ref layer "${oe}" not found`))}else if(Rt!=="background")if(!q.source)z.push(new Tr(ht,q,'missing required property "source"'));else{let Te=vt.sources&&vt.sources[q.source],De=Te&&pa(Te.type);Te?De==="vector"&&Rt==="raster"?z.push(new Tr(ht,q.source,`layer "${q.id}" requires a raster source`)):De!=="raster-dem"&&Rt==="hillshade"?z.push(new Tr(ht,q.source,`layer "${q.id}" requires a raster-dem source`)):De==="raster"&&Rt!=="raster"?z.push(new Tr(ht,q.source,`layer "${q.id}" requires a vector source`)):De==="vector"&&!q["source-layer"]?z.push(new Tr(ht,q,`layer "${q.id}" must specify a "source-layer"`)):De==="raster-dem"&&Rt!=="hillshade"?z.push(new Tr(ht,q.source,"raster-dem source can only be used with layer type 'hillshade'.")):Rt==="line"&&q.paint&&q.paint["line-gradient"]&&(De!=="geojson"||!Te.lineMetrics)&&z.push(new Tr(ht,q,`layer "${q.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):z.push(new Tr(ht,q.source,`source "${q.source}" not found`))}return z=z.concat(fn({key:ht,value:q,valueSpec:Pt.layer,style:D.style,styleSpec:D.styleSpec,validateSpec:D.validateSpec,objectElementValidators:{"*"(){return[]},type(){return D.validateSpec({key:`${ht}.type`,value:q.type,valueSpec:Pt.layer.type,style:D.style,styleSpec:D.styleSpec,validateSpec:D.validateSpec,object:q,objectKey:"type"})},filter:zt,layout(Te){return fn({layer:q,key:Te.key,value:Te.value,style:Te.style,styleSpec:Te.styleSpec,validateSpec:Te.validateSpec,objectElementValidators:{"*"(De){return xe(Vr({layerType:Rt},De))}}})},paint(Te){return fn({layer:q,key:Te.key,value:Te.value,style:Te.style,styleSpec:Te.styleSpec,validateSpec:Te.validateSpec,objectElementValidators:{"*"(De){return ce(Vr({layerType:Rt},De))}}})}}})),z}function Fe(D){let z=D.value,q=D.key,ht=ro(z);return ht==="string"?[]:[new Tr(q,z,`string expected, ${ht} found`)]}function rr(D){let z=D.sourceName??"",q=D.value,ht=D.styleSpec,vt=ht.source_raster_dem,Pt=D.style,Rt=[],oe=ro(q);if(q===void 0)return Rt;if(oe!=="object")return Rt.push(new Tr("source_raster_dem",q,`object expected, ${oe} found`)),Rt;let Te=pa(q.encoding)==="custom",De=["redFactor","greenFactor","blueFactor","baseShift"],Ve=D.value.encoding?`"${D.value.encoding}"`:"Default";for(let Je in q)!Te&&De.includes(Je)?Rt.push(new Tr(Je,q[Je],`In "${z}": "${Je}" is only valid when "encoding" is set to "custom". ${Ve} encoding found`)):vt[Je]?Rt=Rt.concat(D.validateSpec({key:Je,value:q[Je],valueSpec:vt[Je],validateSpec:D.validateSpec,style:Pt,styleSpec:ht})):Rt.push(new Tr(Je,q[Je],`unknown property "${Je}"`));return Rt}let Ar={promoteId:Yr};function Mr(D){let z=D.value,q=D.key,ht=D.styleSpec,vt=D.style,Pt=D.validateSpec;if(!z.type)return[new Tr(q,z,'"type" is required')];let Rt=pa(z.type),oe;switch(Rt){case"vector":case"raster":return oe=fn({key:q,value:z,valueSpec:ht[`source_${Rt.replace("-","_")}`],style:D.style,styleSpec:ht,objectElementValidators:Ar,validateSpec:Pt}),oe;case"raster-dem":return oe=rr({sourceName:q,value:z,style:D.style,styleSpec:ht,validateSpec:Pt}),oe;case"geojson":if(oe=fn({key:q,value:z,valueSpec:ht.source_geojson,style:vt,styleSpec:ht,validateSpec:Pt,objectElementValidators:Ar}),z.cluster)for(let Te in z.clusterProperties){let[De,Ve]=z.clusterProperties[Te],Je=typeof De=="string"?[De,["accumulated"],["get",Te]]:De;oe.push(...yo({key:`${q}.${Te}.map`,value:Ve,validateSpec:Pt,expressionContext:"cluster-map"})),oe.push(...yo({key:`${q}.${Te}.reduce`,value:Je,validateSpec:Pt,expressionContext:"cluster-reduce"}))}return oe;case"video":return fn({key:q,value:z,valueSpec:ht.source_video,style:vt,validateSpec:Pt,styleSpec:ht});case"image":return fn({key:q,value:z,valueSpec:ht.source_image,style:vt,validateSpec:Pt,styleSpec:ht});case"canvas":return[new Tr(q,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return gt({key:`${q}.type`,value:z.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:vt,validateSpec:Pt,styleSpec:ht})}}function Yr({key:D,value:z}){if(ro(z)==="string")return Fe({key:D,value:z});{let q=[];for(let ht in z)q.push(...Fe({key:`${D}.${ht}`,value:z[ht]}));return q}}function Qr(D){let z=D.value,q=D.styleSpec,ht=q.light,vt=D.style,Pt=[],Rt=ro(z);if(z===void 0)return Pt;if(Rt!=="object")return Pt=Pt.concat([new Tr("light",z,`object expected, ${Rt} found`)]),Pt;for(let oe in z){let Te=oe.match(/^(.*)-transition$/);Pt=Te&&ht[Te[1]]&&ht[Te[1]].transition?Pt.concat(D.validateSpec({key:oe,value:z[oe],valueSpec:q.transition,validateSpec:D.validateSpec,style:vt,styleSpec:q})):ht[oe]?Pt.concat(D.validateSpec({key:oe,value:z[oe],valueSpec:ht[oe],validateSpec:D.validateSpec,style:vt,styleSpec:q})):Pt.concat([new Tr(oe,z[oe],`unknown property "${oe}"`)])}return Pt}function Ai(D){let z=D.value,q=D.styleSpec,ht=q.sky,vt=D.style,Pt=ro(z);if(z===void 0)return[];if(Pt!=="object")return[new Tr("sky",z,`object expected, ${Pt} found`)];let Rt=[];for(let oe in z)Rt=ht[oe]?Rt.concat(D.validateSpec({key:oe,value:z[oe],valueSpec:ht[oe],style:vt,styleSpec:q})):Rt.concat([new Tr(oe,z[oe],`unknown property "${oe}"`)]);return Rt}function Fi(D){let z=D.value,q=D.styleSpec,ht=q.terrain,vt=D.style,Pt=[],Rt=ro(z);if(z===void 0)return Pt;if(Rt!=="object")return Pt=Pt.concat([new Tr("terrain",z,`object expected, ${Rt} found`)]),Pt;for(let oe in z)Pt=ht[oe]?Pt.concat(D.validateSpec({key:oe,value:z[oe],valueSpec:ht[oe],validateSpec:D.validateSpec,style:vt,styleSpec:q})):Pt.concat([new Tr(oe,z[oe],`unknown property "${oe}"`)]);return Pt}function ti(D){return Fe(D).length===0?[]:yo(D)}function fi(D){return Fe(D).length===0?[]:yo(D)}function bi(D){let z=D.key,q=D.value;if(ro(q)==="array"){if(q.length<1||q.length>4)return[new Tr(z,q,`padding requires 1 to 4 values; ${q.length} values found`)];let ht={type:"number"},vt=[];for(let Pt=0;Ptz.line-q.line)}function Cn(D){return function(...z){return Ja(D.apply(this,z))}}let rn=ja;rn.source;let Bn=rn.light,Un=rn.sky;rn.terrain,rn.filter;let rs=rn.paintProperty,In=rn.layoutProperty;function Ua(D,z){let q=!1;if(z&&z.length)for(let ht of z)D.fire(new nr(Error(ht.message))),q=!0;return q}class Pn{constructor(z,q,ht){let vt=this.cells=[];if(z instanceof ArrayBuffer){this.arrayBuffer=z;let Rt=new Int32Array(this.arrayBuffer);z=Rt[0],q=Rt[1],ht=Rt[2],this.d=q+2*ht;for(let De=0;De=Je[Kr+0]&&vt>=Je[Kr+1])?(oe[Rr]=!0,Rt.push(Ve[Rr])):oe[Rr]=!1}}}}_forEachCell(z,q,ht,vt,Pt,Rt,oe,Te){let De=this._convertToCellCoord(z),Ve=this._convertToCellCoord(q),Je=this._convertToCellCoord(ht),mr=this._convertToCellCoord(vt);for(let Rr=De;Rr<=Je;Rr++)for(let Kr=Ve;Kr<=mr;Kr++){let ni=this.d*Kr+Rr;if(!(Te&&!Te(this._convertFromCellCoord(Rr),this._convertFromCellCoord(Kr),this._convertFromCellCoord(Rr+1),this._convertFromCellCoord(Kr+1)))&&Pt.call(this,z,q,ht,vt,ni,Rt,oe,Te))return}}_convertFromCellCoord(z){return(z-this.padding)/this.scale}_convertToCellCoord(z){return Math.max(0,Math.min(this.d-1,Math.floor(z*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let z=this.cells,q=3+this.cells.length+1+1,ht=0;for(let Rt=0;Rt=0)continue;let Rt=D[Pt];vt[Pt]=Mn[q].shallow.indexOf(Pt)>=0?Rt:an(Rt,z)}D instanceof Error&&(vt.message=D.message)}if(vt.$name)throw Error("$name property is reserved for worker serialization logic.");return q!=="Object"&&(vt.$name=q),vt}function pn(D){if(as(D))return D;if(Array.isArray(D))return D.map(pn);if(typeof D!="object")throw Error(`can't deserialize object of type ${typeof D}`);let z=oo(D)||"Object";if(!Mn[z])throw Error(`can't deserialize unregistered class ${z}`);let{klass:q}=Mn[z];if(!q)throw Error(`can't deserialize unregistered class ${z}`);if(q.deserialize)return q.deserialize(D);let ht=Object.create(q.prototype);for(let vt of Object.keys(D)){if(vt==="$name")continue;let Pt=D[vt];ht[vt]=Mn[z].shallow.indexOf(vt)>=0?Pt:pn(Pt)}return ht}class ns{constructor(){this.first=!0}update(z,q){let ht=Math.floor(z);return this.first?(this.first=!1,this.lastIntegerZoom=ht,this.lastIntegerZoomTime=0,this.lastZoom=z,this.lastFloorZoom=ht,!0):(this.lastFloorZoom>ht?(this.lastIntegerZoom=ht+1,this.lastIntegerZoomTime=q):this.lastFloorZoomD>=128&&D<=255,Arabic:D=>D>=1536&&D<=1791,"Arabic Supplement":D=>D>=1872&&D<=1919,"Arabic Extended-A":D=>D>=2208&&D<=2303,"Hangul Jamo":D=>D>=4352&&D<=4607,"Unified Canadian Aboriginal Syllabics":D=>D>=5120&&D<=5759,Khmer:D=>D>=6016&&D<=6143,"Unified Canadian Aboriginal Syllabics Extended":D=>D>=6320&&D<=6399,"General Punctuation":D=>D>=8192&&D<=8303,"Letterlike Symbols":D=>D>=8448&&D<=8527,"Number Forms":D=>D>=8528&&D<=8591,"Miscellaneous Technical":D=>D>=8960&&D<=9215,"Control Pictures":D=>D>=9216&&D<=9279,"Optical Character Recognition":D=>D>=9280&&D<=9311,"Enclosed Alphanumerics":D=>D>=9312&&D<=9471,"Geometric Shapes":D=>D>=9632&&D<=9727,"Miscellaneous Symbols":D=>D>=9728&&D<=9983,"Miscellaneous Symbols and Arrows":D=>D>=11008&&D<=11263,"CJK Radicals Supplement":D=>D>=11904&&D<=12031,"Kangxi Radicals":D=>D>=12032&&D<=12255,"Ideographic Description Characters":D=>D>=12272&&D<=12287,"CJK Symbols and Punctuation":D=>D>=12288&&D<=12351,Hiragana:D=>D>=12352&&D<=12447,Katakana:D=>D>=12448&&D<=12543,Bopomofo:D=>D>=12544&&D<=12591,"Hangul Compatibility Jamo":D=>D>=12592&&D<=12687,Kanbun:D=>D>=12688&&D<=12703,"Bopomofo Extended":D=>D>=12704&&D<=12735,"CJK Strokes":D=>D>=12736&&D<=12783,"Katakana Phonetic Extensions":D=>D>=12784&&D<=12799,"Enclosed CJK Letters and Months":D=>D>=12800&&D<=13055,"CJK Compatibility":D=>D>=13056&&D<=13311,"CJK Unified Ideographs Extension A":D=>D>=13312&&D<=19903,"Yijing Hexagram Symbols":D=>D>=19904&&D<=19967,"CJK Unified Ideographs":D=>D>=19968&&D<=40959,"Yi Syllables":D=>D>=40960&&D<=42127,"Yi Radicals":D=>D>=42128&&D<=42191,"Hangul Jamo Extended-A":D=>D>=43360&&D<=43391,"Hangul Syllables":D=>D>=44032&&D<=55215,"Hangul Jamo Extended-B":D=>D>=55216&&D<=55295,"Private Use Area":D=>D>=57344&&D<=63743,"CJK Compatibility Ideographs":D=>D>=63744&&D<=64255,"Arabic Presentation Forms-A":D=>D>=64336&&D<=65023,"Vertical Forms":D=>D>=65040&&D<=65055,"CJK Compatibility Forms":D=>D>=65072&&D<=65103,"Small Form Variants":D=>D>=65104&&D<=65135,"Arabic Presentation Forms-B":D=>D>=65136&&D<=65279,"Halfwidth and Fullwidth Forms":D=>D>=65280&&D<=65519};function Yo(D){for(let z of D)if($o(z.charCodeAt(0)))return!0;return!1}function Ro(D){for(let z of D)if(!dl(z.charCodeAt(0)))return!1;return!0}function dl(D){return!(Pa.Arabic(D)||Pa["Arabic Supplement"](D)||Pa["Arabic Extended-A"](D)||Pa["Arabic Presentation Forms-A"](D)||Pa["Arabic Presentation Forms-B"](D))}function Xo(D){return D<11904?!1:!!(Pa["Bopomofo Extended"](D)||Pa.Bopomofo(D)||Pa["CJK Compatibility Forms"](D)||Pa["CJK Compatibility Ideographs"](D)||Pa["CJK Compatibility"](D)||Pa["CJK Radicals Supplement"](D)||Pa["CJK Strokes"](D)||Pa["CJK Symbols and Punctuation"](D)||Pa["CJK Unified Ideographs Extension A"](D)||Pa["CJK Unified Ideographs"](D)||Pa["Enclosed CJK Letters and Months"](D)||Pa["Halfwidth and Fullwidth Forms"](D)||Pa.Hiragana(D)||Pa["Ideographic Description Characters"](D)||Pa["Kangxi Radicals"](D)||Pa["Katakana Phonetic Extensions"](D)||Pa.Katakana(D)||Pa["Vertical Forms"](D)||Pa["Yi Radicals"](D)||Pa["Yi Syllables"](D))}function $o(D){return D===746||D===747?!0:D<4352?!1:!!(Pa["Bopomofo Extended"](D)||Pa.Bopomofo(D)||Pa["CJK Compatibility Forms"](D)&&!(D>=65097&&D<=65103)||Pa["CJK Compatibility Ideographs"](D)||Pa["CJK Compatibility"](D)||Pa["CJK Radicals Supplement"](D)||Pa["CJK Strokes"](D)||Pa["CJK Symbols and Punctuation"](D)&&!(D>=12296&&D<=12305)&&!(D>=12308&&D<=12319)&&D!==12336||Pa["CJK Unified Ideographs Extension A"](D)||Pa["CJK Unified Ideographs"](D)||Pa["Enclosed CJK Letters and Months"](D)||Pa["Hangul Compatibility Jamo"](D)||Pa["Hangul Jamo Extended-A"](D)||Pa["Hangul Jamo Extended-B"](D)||Pa["Hangul Jamo"](D)||Pa["Hangul Syllables"](D)||Pa.Hiragana(D)||Pa["Ideographic Description Characters"](D)||Pa.Kanbun(D)||Pa["Kangxi Radicals"](D)||Pa["Katakana Phonetic Extensions"](D)||Pa.Katakana(D)&&D!==12540||Pa["Halfwidth and Fullwidth Forms"](D)&&D!==65288&&D!==65289&&D!==65293&&!(D>=65306&&D<=65310)&&D!==65339&&D!==65341&&D!==65343&&!(D>=65371&&D<=65503)&&D!==65507&&!(D>=65512&&D<=65519)||Pa["Small Form Variants"](D)&&!(D>=65112&&D<=65118)&&!(D>=65123&&D<=65126)||Pa["Unified Canadian Aboriginal Syllabics"](D)||Pa["Unified Canadian Aboriginal Syllabics Extended"](D)||Pa["Vertical Forms"](D)||Pa["Yijing Hexagram Symbols"](D)||Pa["Yi Syllables"](D)||Pa["Yi Radicals"](D))}function hs(D){return!!(Pa["Latin-1 Supplement"](D)&&(D===167||D===169||D===174||D===177||D===188||D===189||D===190||D===215||D===247)||Pa["General Punctuation"](D)&&(D===8214||D===8224||D===8225||D===8240||D===8241||D===8251||D===8252||D===8258||D===8263||D===8264||D===8265||D===8273)||Pa["Letterlike Symbols"](D)||Pa["Number Forms"](D)||Pa["Miscellaneous Technical"](D)&&(D>=8960&&D<=8967||D>=8972&&D<=8991||D>=8996&&D<=9e3||D===9003||D>=9085&&D<=9114||D>=9150&&D<=9165||D===9167||D>=9169&&D<=9179||D>=9186&&D<=9215)||Pa["Control Pictures"](D)&&D!==9251||Pa["Optical Character Recognition"](D)||Pa["Enclosed Alphanumerics"](D)||Pa["Geometric Shapes"](D)||Pa["Miscellaneous Symbols"](D)&&!(D>=9754&&D<=9759)||Pa["Miscellaneous Symbols and Arrows"](D)&&(D>=11026&&D<=11055||D>=11088&&D<=11097||D>=11192&&D<=11243)||Pa["CJK Symbols and Punctuation"](D)||Pa.Katakana(D)||Pa["Private Use Area"](D)||Pa["CJK Compatibility Forms"](D)||Pa["Small Form Variants"](D)||Pa["Halfwidth and Fullwidth Forms"](D)||D===8734||D===8756||D===8757||D>=9984&&D<=10087||D>=10102&&D<=10131||D===65532||D===65533)}function $s(D){return!($o(D)||hs(D))}function jl(D){return Pa.Arabic(D)||Pa["Arabic Supplement"](D)||Pa["Arabic Extended-A"](D)||Pa["Arabic Presentation Forms-A"](D)||Pa["Arabic Presentation Forms-B"](D)}function co(D){return D>=1424&&D<=2303||Pa["Arabic Presentation Forms-A"](D)||Pa["Arabic Presentation Forms-B"](D)}function $n(D,z){return!(!z&&co(D)||D>=2304&&D<=3583||D>=3840&&D<=4255||Pa.Khmer(D))}function Ku(D){for(let z of D)if(co(z.charCodeAt(0)))return!0;return!1}function Js(D,z){for(let q of D)if(!$n(q.charCodeAt(0),z))return!1;return!0}class Ul{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(z){this.pluginStatus=z.pluginStatus,this.pluginURL=z.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(z){this.applyArabicShaping=z.applyArabicShaping,this.processBidirectionalText=z.processBidirectionalText,this.processStyledBidirectionalText=z.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}}let $l=new Ul;class Vo{constructor(z,q){this.zoom=z,q?(this.now=q.now,this.fadeDuration=q.fadeDuration,this.zoomHistory=q.zoomHistory,this.transition=q.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ns,this.transition={})}isSupportedScript(z){return Js(z,$l.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let z=this.zoom,q=z-Math.floor(z),ht=this.crossFadingFactor();return z>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:q+(1-q)*ht}:{fromScale:.5,toScale:1,t:1-(1-ht)*q}}}class Lc{constructor(z,q){this.property=z,this.value=q,this.expression=Yc(q===void 0?z.specification.default:q,z.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(z,q,ht){return this.property.possiblyEvaluate(this,z,q,ht)}}class Xc{constructor(z){this.property=z,this.value=new Lc(z,void 0)}transitioned(z,q){return new bt(this.property,this.value,q,M({},z.transition,this.transition),z.now)}untransitioned(){return new bt(this.property,this.value,null,{},0)}}class Vl{constructor(z){this._properties=z,this._values=Object.create(z.defaultTransitionablePropertyValues)}getValue(z){return O(this._values[z].value.value)}setValue(z,q){Object.prototype.hasOwnProperty.call(this._values,z)||(this._values[z]=new Xc(this._values[z].property)),this._values[z].value=new Lc(this._values[z].property,q===null?void 0:O(q))}getTransition(z){return O(this._values[z].transition)}setTransition(z,q){Object.prototype.hasOwnProperty.call(this._values,z)||(this._values[z]=new Xc(this._values[z].property)),this._values[z].transition=O(q)||void 0}serialize(){let z={};for(let q of Object.keys(this._values)){let ht=this.getValue(q);ht!==void 0&&(z[q]=ht);let vt=this.getTransition(q);vt!==void 0&&(z[`${q}-transition`]=vt)}return z}transitioned(z,q){let ht=new I(this._properties);for(let vt of Object.keys(this._values))ht._values[vt]=this._values[vt].transitioned(z,q._values[vt]);return ht}untransitioned(){let z=new I(this._properties);for(let q of Object.keys(this._values))z._values[q]=this._values[q].untransitioned();return z}}class bt{constructor(z,q,ht,vt,Pt){this.property=z,this.value=q,this.begin=Pt+vt.delay||0,this.end=this.begin+vt.duration||0,z.specification.transition&&(vt.delay||vt.duration)&&(this.prior=ht)}possiblyEvaluate(z,q,ht){let vt=z.now||0,Pt=this.value.possiblyEvaluate(z,q,ht),Rt=this.prior;if(Rt){if(vt>this.end||this.value.isDataDriven())return this.prior=null,Pt;if(vtvt.zoomHistory.lastIntegerZoom?{from:z,to:q}:{from:ht,to:q}}interpolate(z){return z}}class Ue{constructor(z){this.specification=z}possiblyEvaluate(z,q,ht,vt){if(z.value!==void 0)if(z.expression.kind==="constant"){let Pt=z.expression.evaluate(q,null,{},ht,vt);return this._calculate(Pt,Pt,Pt,q)}else return this._calculate(z.expression.evaluate(new Vo(Math.floor(q.zoom-1),q)),z.expression.evaluate(new Vo(Math.floor(q.zoom),q)),z.expression.evaluate(new Vo(Math.floor(q.zoom+1),q)),q)}_calculate(z,q,ht,vt){return vt.zoom>vt.zoomHistory.lastIntegerZoom?{from:z,to:q}:{from:ht,to:q}}interpolate(z){return z}}class ir{constructor(z){this.specification=z}possiblyEvaluate(z,q,ht,vt){return!!z.expression.evaluate(q,null,{},ht,vt)}interpolate(){return!1}}class cr{constructor(z){for(let q in this.properties=z,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],z){let ht=z[q];ht.specification.overridable&&this.overridableProperties.push(q);let vt=this.defaultPropertyValues[q]=new Lc(ht,void 0),Pt=this.defaultTransitionablePropertyValues[q]=new Xc(ht);this.defaultTransitioningPropertyValues[q]=Pt.untransitioned(),this.defaultPossiblyEvaluatedValues[q]=vt.possiblyEvaluate({})}}}Oa("DataDrivenProperty",le),Oa("DataConstantProperty",Nt),Oa("CrossFadedDataDrivenProperty",Ae),Oa("CrossFadedProperty",Ue),Oa("ColorRampProperty",ir);let gr="-transition";class Ur extends Vt{constructor(z,q){if(super(),this.id=z.id,this.type=z.type,this._featureFilter={filter:()=>!0,needGeometry:!1},z.type!=="custom"&&(z=z,this.metadata=z.metadata,this.minzoom=z.minzoom,this.maxzoom=z.maxzoom,z.type!=="background"&&(this.source=z.source,this.sourceLayer=z["source-layer"],this.filter=z.filter),q.layout&&(this._unevaluatedLayout=new W(q.layout)),q.paint)){for(let ht in this._transitionablePaint=new Vl(q.paint),z.paint)this.setPaintProperty(ht,z.paint[ht],{validate:!1});for(let ht in z.layout)this.setLayoutProperty(ht,z.layout[ht],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new xt(q.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(z){return z==="visibility"?this.visibility:this._unevaluatedLayout.getValue(z)}setLayoutProperty(z,q,ht={}){if(q!=null){let vt=`layers.${this.id}.layout.${z}`;if(this._validate(In,vt,z,q,ht))return}if(z==="visibility"){this.visibility=q;return}this._unevaluatedLayout.setValue(z,q)}getPaintProperty(z){return z.endsWith(gr)?this._transitionablePaint.getTransition(z.slice(0,-11)):this._transitionablePaint.getValue(z)}setPaintProperty(z,q,ht={}){if(q!=null){let vt=`layers.${this.id}.paint.${z}`;if(this._validate(rs,vt,z,q,ht))return!1}if(z.endsWith(gr))return this._transitionablePaint.setTransition(z.slice(0,-11),q||void 0),!1;{let vt=this._transitionablePaint._values[z],Pt=vt.property.specification["property-type"]==="cross-faded-data-driven",Rt=vt.value.isDataDriven(),oe=vt.value;this._transitionablePaint.setValue(z,q),this._handleSpecialPaintPropertyUpdate(z);let Te=this._transitionablePaint._values[z].value;return Te.isDataDriven()||Rt||Pt||this._handleOverridablePaintPropertyUpdate(z,oe,Te)}}_handleSpecialPaintPropertyUpdate(z){}_handleOverridablePaintPropertyUpdate(z,q,ht){return!1}isHidden(z){return this.minzoom&&z=this.maxzoom?!0:this.visibility==="none"}updateTransitions(z){this._transitioningPaint=this._transitionablePaint.transitioned(z,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(z,q){z.getCrossfadeParameters&&(this._crossfadeParameters=z.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(z,void 0,q)),this.paint=this._transitioningPaint.possiblyEvaluate(z,void 0,q)}serialize(){let z={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(z.layout=z.layout||{},z.layout.visibility=this.visibility),_(z,(q,ht)=>q!==void 0&&!(ht==="layout"&&!Object.keys(q).length)&&!(ht==="paint"&&!Object.keys(q).length))}_validate(z,q,ht,vt,Pt={}){return Pt&&Pt.validate===!1?!1:Ua(this,z.call(rn,{key:q,layerType:this.type,objectKey:ht,value:vt,styleSpec:ae,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let z in this.paint._values){let q=this.paint.get(z);if(!(!(q instanceof dt)||!cs(q.property.specification))&&(q.value.kind==="source"||q.value.kind==="composite")&&q.value.isStateDependent)return!0}return!1}}let ri={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class pi{constructor(z,q){this._structArray=z,this._pos1=q*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class xi{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(z,q){return z._trim(),q&&(z.isTransferred=!0,q.push(z.arrayBuffer)),{length:z.length,arrayBuffer:z.arrayBuffer}}static deserialize(z){let q=Object.create(this.prototype);return q.arrayBuffer=z.arrayBuffer,q.length=z.length,q.capacity=z.arrayBuffer.byteLength/q.bytesPerElement,q._refreshViews(),q}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(z){this.reserve(z),this.length=z}reserve(z){if(z>this.capacity){this.capacity=Math.max(z,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let q=this.uint8;this._refreshViews(),q&&this.uint8.set(q)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Mi(D,z=1){let q=0,ht=0;return{members:D.map(vt=>{let Pt=Vi(vt.type),Rt=q=Xi(q,Math.max(z,Pt)),oe=vt.components||1;return ht=Math.max(ht,Pt),q+=Pt*oe,{name:vt.name,type:vt.type,components:oe,offset:Rt}}),size:Xi(q,Math.max(ht,z)),alignment:z}}function Vi(D){return ri[D].BYTES_PER_ELEMENT}function Xi(D,z){return Math.ceil(D/z)*z}class $i extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q){let ht=this.length;return this.resize(ht+1),this.emplace(ht,z,q)}emplace(z,q,ht){let vt=z*2;return this.int16[vt+0]=q,this.int16[vt+1]=ht,z}}$i.prototype.bytesPerElement=4,Oa("StructArrayLayout2i4",$i);class xa extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q,ht){let vt=this.length;return this.resize(vt+1),this.emplace(vt,z,q,ht)}emplace(z,q,ht,vt){let Pt=z*3;return this.int16[Pt+0]=q,this.int16[Pt+1]=ht,this.int16[Pt+2]=vt,z}}xa.prototype.bytesPerElement=6,Oa("StructArrayLayout3i6",xa);class _a extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt){let Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,z,q,ht,vt)}emplace(z,q,ht,vt,Pt){let Rt=z*4;return this.int16[Rt+0]=q,this.int16[Rt+1]=ht,this.int16[Rt+2]=vt,this.int16[Rt+3]=Pt,z}}_a.prototype.bytesPerElement=8,Oa("StructArrayLayout4i8",_a);class za extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt){let oe=this.length;return this.resize(oe+1),this.emplace(oe,z,q,ht,vt,Pt,Rt)}emplace(z,q,ht,vt,Pt,Rt,oe){let Te=z*6;return this.int16[Te+0]=q,this.int16[Te+1]=ht,this.int16[Te+2]=vt,this.int16[Te+3]=Pt,this.int16[Te+4]=Rt,this.int16[Te+5]=oe,z}}za.prototype.bytesPerElement=12,Oa("StructArrayLayout2i4i12",za);class on extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt){let oe=this.length;return this.resize(oe+1),this.emplace(oe,z,q,ht,vt,Pt,Rt)}emplace(z,q,ht,vt,Pt,Rt,oe){let Te=z*4,De=z*8;return this.int16[Te+0]=q,this.int16[Te+1]=ht,this.uint8[De+4]=vt,this.uint8[De+5]=Pt,this.uint8[De+6]=Rt,this.uint8[De+7]=oe,z}}on.prototype.bytesPerElement=8,Oa("StructArrayLayout2i4ub8",on);class mn extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(z,q){let ht=this.length;return this.resize(ht+1),this.emplace(ht,z,q)}emplace(z,q,ht){let vt=z*2;return this.float32[vt+0]=q,this.float32[vt+1]=ht,z}}mn.prototype.bytesPerElement=8,Oa("StructArrayLayout2f8",mn);class Xn extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve){let Je=this.length;return this.resize(Je+1),this.emplace(Je,z,q,ht,vt,Pt,Rt,oe,Te,De,Ve)}emplace(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je){let mr=z*10;return this.uint16[mr+0]=q,this.uint16[mr+1]=ht,this.uint16[mr+2]=vt,this.uint16[mr+3]=Pt,this.uint16[mr+4]=Rt,this.uint16[mr+5]=oe,this.uint16[mr+6]=Te,this.uint16[mr+7]=De,this.uint16[mr+8]=Ve,this.uint16[mr+9]=Je,z}}Xn.prototype.bytesPerElement=20,Oa("StructArrayLayout10ui20",Xn);class gn extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr){let Rr=this.length;return this.resize(Rr+1),this.emplace(Rr,z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr)}emplace(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr){let Kr=z*12;return this.int16[Kr+0]=q,this.int16[Kr+1]=ht,this.int16[Kr+2]=vt,this.int16[Kr+3]=Pt,this.uint16[Kr+4]=Rt,this.uint16[Kr+5]=oe,this.uint16[Kr+6]=Te,this.uint16[Kr+7]=De,this.int16[Kr+8]=Ve,this.int16[Kr+9]=Je,this.int16[Kr+10]=mr,this.int16[Kr+11]=Rr,z}}gn.prototype.bytesPerElement=24,Oa("StructArrayLayout4i4ui4i24",gn);class Qa extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(z,q,ht){let vt=this.length;return this.resize(vt+1),this.emplace(vt,z,q,ht)}emplace(z,q,ht,vt){let Pt=z*3;return this.float32[Pt+0]=q,this.float32[Pt+1]=ht,this.float32[Pt+2]=vt,z}}Qa.prototype.bytesPerElement=12,Oa("StructArrayLayout3f12",Qa);class un extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(z){let q=this.length;return this.resize(q+1),this.emplace(q,z)}emplace(z,q){let ht=z*1;return this.uint32[ht+0]=q,z}}un.prototype.bytesPerElement=4,Oa("StructArrayLayout1ul4",un);class Dn extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt,oe,Te,De){let Ve=this.length;return this.resize(Ve+1),this.emplace(Ve,z,q,ht,vt,Pt,Rt,oe,Te,De)}emplace(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve){let Je=z*10,mr=z*5;return this.int16[Je+0]=q,this.int16[Je+1]=ht,this.int16[Je+2]=vt,this.int16[Je+3]=Pt,this.int16[Je+4]=Rt,this.int16[Je+5]=oe,this.uint32[mr+3]=Te,this.uint16[Je+8]=De,this.uint16[Je+9]=Ve,z}}Dn.prototype.bytesPerElement=20,Oa("StructArrayLayout6i1ul2ui20",Dn);class Rn extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt){let oe=this.length;return this.resize(oe+1),this.emplace(oe,z,q,ht,vt,Pt,Rt)}emplace(z,q,ht,vt,Pt,Rt,oe){let Te=z*6;return this.int16[Te+0]=q,this.int16[Te+1]=ht,this.int16[Te+2]=vt,this.int16[Te+3]=Pt,this.int16[Te+4]=Rt,this.int16[Te+5]=oe,z}}Rn.prototype.bytesPerElement=12,Oa("StructArrayLayout2i2i2i12",Rn);class so extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt){let Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,z,q,ht,vt,Pt)}emplace(z,q,ht,vt,Pt,Rt){let oe=z*4,Te=z*8;return this.float32[oe+0]=q,this.float32[oe+1]=ht,this.float32[oe+2]=vt,this.int16[Te+6]=Pt,this.int16[Te+7]=Rt,z}}so.prototype.bytesPerElement=16,Oa("StructArrayLayout2f1f2i16",so);class $ extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt){let oe=this.length;return this.resize(oe+1),this.emplace(oe,z,q,ht,vt,Pt,Rt)}emplace(z,q,ht,vt,Pt,Rt,oe){let Te=z*16,De=z*4,Ve=z*8;return this.uint8[Te+0]=q,this.uint8[Te+1]=ht,this.float32[De+1]=vt,this.float32[De+2]=Pt,this.int16[Ve+6]=Rt,this.int16[Ve+7]=oe,z}}$.prototype.bytesPerElement=16,Oa("StructArrayLayout2ub2f2i16",$);class at extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(z,q,ht){let vt=this.length;return this.resize(vt+1),this.emplace(vt,z,q,ht)}emplace(z,q,ht,vt){let Pt=z*3;return this.uint16[Pt+0]=q,this.uint16[Pt+1]=ht,this.uint16[Pt+2]=vt,z}}at.prototype.bytesPerElement=6,Oa("StructArrayLayout3ui6",at);class it extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia){let ba=this.length;return this.resize(ba+1),this.emplace(ba,z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia)}emplace(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia,ba){let ka=z*24,Ma=z*12,qa=z*48;return this.int16[ka+0]=q,this.int16[ka+1]=ht,this.uint16[ka+2]=vt,this.uint16[ka+3]=Pt,this.uint32[Ma+2]=Rt,this.uint32[Ma+3]=oe,this.uint32[Ma+4]=Te,this.uint16[ka+10]=De,this.uint16[ka+11]=Ve,this.uint16[ka+12]=Je,this.float32[Ma+7]=mr,this.float32[Ma+8]=Rr,this.uint8[qa+36]=Kr,this.uint8[qa+37]=ni,this.uint8[qa+38]=Bi,this.uint32[Ma+10]=ia,this.int16[ka+22]=ba,z}}it.prototype.bytesPerElement=48,Oa("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",it);class mt extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia,ba,ka,Ma,qa,xn,Fn,to,Hn,Ln,Nn,jn){let zn=this.length;return this.resize(zn+1),this.emplace(zn,z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia,ba,ka,Ma,qa,xn,Fn,to,Hn,Ln,Nn,jn)}emplace(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia,ba,ka,Ma,qa,xn,Fn,to,Hn,Ln,Nn,jn,zn){let Ba=z*32,Sn=z*16;return this.int16[Ba+0]=q,this.int16[Ba+1]=ht,this.int16[Ba+2]=vt,this.int16[Ba+3]=Pt,this.int16[Ba+4]=Rt,this.int16[Ba+5]=oe,this.int16[Ba+6]=Te,this.int16[Ba+7]=De,this.uint16[Ba+8]=Ve,this.uint16[Ba+9]=Je,this.uint16[Ba+10]=mr,this.uint16[Ba+11]=Rr,this.uint16[Ba+12]=Kr,this.uint16[Ba+13]=ni,this.uint16[Ba+14]=Bi,this.uint16[Ba+15]=ia,this.uint16[Ba+16]=ba,this.uint16[Ba+17]=ka,this.uint16[Ba+18]=Ma,this.uint16[Ba+19]=qa,this.uint16[Ba+20]=xn,this.uint16[Ba+21]=Fn,this.uint16[Ba+22]=to,this.uint32[Sn+12]=Hn,this.float32[Sn+13]=Ln,this.float32[Sn+14]=Nn,this.uint16[Ba+30]=jn,this.uint16[Ba+31]=zn,z}}mt.prototype.bytesPerElement=64,Oa("StructArrayLayout8i15ui1ul2f2ui64",mt);class Ft extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(z){let q=this.length;return this.resize(q+1),this.emplace(q,z)}emplace(z,q){let ht=z*1;return this.float32[ht+0]=q,z}}Ft.prototype.bytesPerElement=4,Oa("StructArrayLayout1f4",Ft);class ie extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(z,q,ht){let vt=this.length;return this.resize(vt+1),this.emplace(vt,z,q,ht)}emplace(z,q,ht,vt){let Pt=z*6,Rt=z*3;return this.uint16[Pt+0]=q,this.float32[Rt+1]=ht,this.float32[Rt+2]=vt,z}}ie.prototype.bytesPerElement=12,Oa("StructArrayLayout1ui2f12",ie);class he extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(z,q,ht){let vt=this.length;return this.resize(vt+1),this.emplace(vt,z,q,ht)}emplace(z,q,ht,vt){let Pt=z*2,Rt=z*4;return this.uint32[Pt+0]=q,this.uint16[Rt+2]=ht,this.uint16[Rt+3]=vt,z}}he.prototype.bytesPerElement=8,Oa("StructArrayLayout1ul2ui8",he);class Ie extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(z,q){let ht=this.length;return this.resize(ht+1),this.emplace(ht,z,q)}emplace(z,q,ht){let vt=z*2;return this.uint16[vt+0]=q,this.uint16[vt+1]=ht,z}}Ie.prototype.bytesPerElement=4,Oa("StructArrayLayout2ui4",Ie);class Qe extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(z){let q=this.length;return this.resize(q+1),this.emplace(q,z)}emplace(z,q){let ht=z*1;return this.uint16[ht+0]=q,z}}Qe.prototype.bytesPerElement=2,Oa("StructArrayLayout1ui2",Qe);class vr extends xi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(z,q,ht,vt){let Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,z,q,ht,vt)}emplace(z,q,ht,vt,Pt){let Rt=z*4;return this.float32[Rt+0]=q,this.float32[Rt+1]=ht,this.float32[Rt+2]=vt,this.float32[Rt+3]=Pt,z}}vr.prototype.bytesPerElement=16,Oa("StructArrayLayout4f16",vr);class kr extends pi{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new c(this.anchorPointX,this.anchorPointY)}}kr.prototype.size=20;class Fr extends Dn{get(z){return new kr(this,z)}}Oa("CollisionBoxArray",Fr);class Gr extends pi{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(z){this._structArray.uint8[this._pos1+37]=z}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(z){this._structArray.uint8[this._pos1+38]=z}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(z){this._structArray.uint32[this._pos4+10]=z}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Gr.prototype.size=48;class oi extends it{get(z){return new Gr(this,z)}}Oa("PlacedSymbolArray",oi);class Ti extends pi{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(z){this._structArray.uint32[this._pos4+12]=z}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Ti.prototype.size=64;class vi extends mt{get(z){return new Ti(this,z)}}Oa("SymbolInstanceArray",vi);class yi extends Ft{getoffsetX(z){return this.float32[z*1+0]}}Oa("GlyphOffsetArray",yi);class Pi extends xa{getx(z){return this.int16[z*3+0]}gety(z){return this.int16[z*3+1]}gettileUnitDistanceFromAnchor(z){return this.int16[z*3+2]}}Oa("SymbolLineVertexArray",Pi);class Wi extends pi{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Wi.prototype.size=12;class Ta extends ie{get(z){return new Wi(this,z)}}Oa("TextAnchorOffsetArray",Ta);class oa extends pi{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}oa.prototype.size=8;class da extends he{get(z){return new oa(this,z)}}Oa("FeatureIndexArray",da);class Aa extends $i{}class ga extends xa{}class Va extends _a{}class tn extends $i{}class en extends $i{}class Xa extends za{}class Ka extends on{}class Tn extends mn{}class vo extends Xn{}class _n extends gn{}class Zn extends Qa{}class Wn extends un{}class Qn extends Rn{}class ho extends so{}class io extends ${}class po extends at{}class Po extends at{}class Vn extends Ie{}class mo extends Qe{}let{members:vs,size:fs,alignment:Ic}=Mi([{name:"a_pos",components:2,type:"Int16"}],4);class Jo{constructor(z=[]){this.segments=z}prepareSegment(z,q,ht,vt){let Pt=this.segments[this.segments.length-1];return z>Jo.MAX_VERTEX_ARRAY_LENGTH&&U(`Max vertices per segment is ${Jo.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${z}`),(!Pt||Pt.vertexLength+z>Jo.MAX_VERTEX_ARRAY_LENGTH||Pt.sortKey!==vt)&&(Pt={vertexOffset:q.length,primitiveOffset:ht.length,vertexLength:0,primitiveLength:0},vt!==void 0&&(Pt.sortKey=vt),this.segments.push(Pt)),Pt}get(){return this.segments}destroy(){for(let z of this.segments)for(let q in z.vaos)z.vaos[q].destroy()}static simpleSegment(z,q,ht,vt){return new Jo([{vertexOffset:z,primitiveOffset:q,vertexLength:ht,primitiveLength:vt,vaos:{},sortKey:0}])}}Jo.MAX_VERTEX_ARRAY_LENGTH=65535,Oa("SegmentVector",Jo);function ml(D,z){return D=h(Math.floor(D),0,255),z=h(Math.floor(z),0,255),256*D+z}let Iu=Mi([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var Pc={exports:{}},Ks={exports:{}};(function(D){function z(q,ht){for(var vt=q.length&3,Pt=q.length-vt,Rt=ht,oe,Te=3432918353,De=461845907,Ve,Je=0;Je>>16)*Te&65535)<<16)&4294967295,Ve=Ve<<15|Ve>>>17,Ve=(Ve&65535)*De+(((Ve>>>16)*De&65535)<<16)&4294967295,Rt^=Ve,Rt=Rt<<13|Rt>>>19,oe=(Rt&65535)*5+(((Rt>>>16)*5&65535)<<16)&4294967295,Rt=(oe&65535)+27492+(((oe>>>16)+58964&65535)<<16);switch(Ve=0,vt){case 3:Ve^=(q.charCodeAt(Je+2)&255)<<16;case 2:Ve^=(q.charCodeAt(Je+1)&255)<<8;case 1:Ve^=q.charCodeAt(Je)&255,Ve=(Ve&65535)*Te+(((Ve>>>16)*Te&65535)<<16)&4294967295,Ve=Ve<<15|Ve>>>17,Ve=(Ve&65535)*De+(((Ve>>>16)*De&65535)<<16)&4294967295,Rt^=Ve}return Rt^=q.length,Rt^=Rt>>>16,Rt=(Rt&65535)*2246822507+(((Rt>>>16)*2246822507&65535)<<16)&4294967295,Rt^=Rt>>>13,Rt=(Rt&65535)*3266489909+(((Rt>>>16)*3266489909&65535)<<16)&4294967295,Rt^=Rt>>>16,Rt>>>0}D.exports=z})(Ks);var Pu=Ks.exports,zu={exports:{}};(function(D){function z(q,ht){for(var vt=q.length,Pt=ht^vt,Rt=0,oe;vt>=4;)oe=q.charCodeAt(Rt)&255|(q.charCodeAt(++Rt)&255)<<8|(q.charCodeAt(++Rt)&255)<<16|(q.charCodeAt(++Rt)&255)<<24,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),oe^=oe>>>24,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),Pt=(Pt&65535)*1540483477+(((Pt>>>16)*1540483477&65535)<<16)^oe,vt-=4,++Rt;switch(vt){case 3:Pt^=(q.charCodeAt(Rt+2)&255)<<16;case 2:Pt^=(q.charCodeAt(Rt+1)&255)<<8;case 1:Pt^=q.charCodeAt(Rt)&255,Pt=(Pt&65535)*1540483477+(((Pt>>>16)*1540483477&65535)<<16)}return Pt^=Pt>>>13,Pt=(Pt&65535)*1540483477+(((Pt>>>16)*1540483477&65535)<<16),Pt^=Pt>>>15,Pt>>>0}D.exports=z})(zu);var _c=zu.exports,Rh=Pu,sl=_c;Pc.exports=Rh,Pc.exports.murmur3=Rh,Pc.exports.murmur2=sl;var Xh=Pc.exports,$h=E(Xh);class ph{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(z,q,ht,vt){this.ids.push(Jh(z)),this.positions.push(q,ht,vt)}getPositions(z){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let q=Jh(z),ht=0,vt=this.ids.length-1;for(;ht>1;this.ids[Rt]>=q?vt=Rt:ht=Rt+1}let Pt=[];for(;this.ids[ht]===q;){let Rt=this.positions[3*ht],oe=this.positions[3*ht+1],Te=this.positions[3*ht+2];Pt.push({index:Rt,start:oe,end:Te}),ht++}return Pt}static serialize(z,q){let ht=new Float64Array(z.ids),vt=new Uint32Array(z.positions);return Sh(ht,vt,0,ht.length-1),q&&q.push(ht.buffer,vt.buffer),{ids:ht,positions:vt}}static deserialize(z){let q=new ph;return q.ids=z.ids,q.positions=z.positions,q.indexed=!0,q}}function Jh(D){let z=+D;return!isNaN(z)&&z<=9007199254740991?z:$h(String(D))}function Sh(D,z,q,ht){for(;q>1],Pt=q-1,Rt=ht+1;for(;;){do Pt++;while(D[Pt]vt);if(Pt>=Rt)break;$c(D,Pt,Rt),$c(z,3*Pt,3*Rt),$c(z,3*Pt+1,3*Rt+1),$c(z,3*Pt+2,3*Rt+2)}Rt-q`u_${vt}`),this.type=ht}setUniform(z,q,ht){z.set(ht.constantOr(this.value))}getBinding(z,q,ht){return this.type==="color"?new Jl(z,q):new ps(z,q)}}class zc{constructor(z,q){this.uniformNames=q.map(ht=>`u_${ht}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(z,q){this.pixelRatioFrom=q.pixelRatio,this.pixelRatioTo=z.pixelRatio,this.patternFrom=q.tlbr,this.patternTo=z.tlbr}setUniform(z,q,ht,vt){let Pt=vt==="u_pattern_to"?this.patternTo:vt==="u_pattern_from"?this.patternFrom:vt==="u_pixel_ratio_to"?this.pixelRatioTo:vt==="u_pixel_ratio_from"?this.pixelRatioFrom:null;Pt&&z.set(Pt)}getBinding(z,q,ht){return ht.substr(0,9)==="u_pattern"?new yl(z,q):new ps(z,q)}}class Kc{constructor(z,q,ht,vt){this.expression=z,this.type=ht,this.maxValue=0,this.paintVertexAttributes=q.map(Pt=>({name:`a_${Pt}`,type:"Float32",components:ht==="color"?2:1,offset:0})),this.paintVertexArray=new vt}populatePaintArray(z,q,ht,vt,Pt){let Rt=this.paintVertexArray.length,oe=this.expression.evaluate(new Vo(0),q,{},vt,[],Pt);this.paintVertexArray.resize(z),this._setPaintValue(Rt,z,oe)}updatePaintArray(z,q,ht,vt){let Pt=this.expression.evaluate({zoom:0},ht,vt);this._setPaintValue(z,q,Pt)}_setPaintValue(z,q,ht){if(this.type==="color"){let vt=Lf(ht);for(let Pt=z;Pt`u_${oe}_t`),this.type=ht,this.useIntegerZoom=vt,this.zoom=Pt,this.maxValue=0,this.paintVertexAttributes=q.map(oe=>({name:`a_${oe}`,type:"Float32",components:ht==="color"?4:2,offset:0})),this.paintVertexArray=new Rt}populatePaintArray(z,q,ht,vt,Pt){let Rt=this.expression.evaluate(new Vo(this.zoom),q,{},vt,[],Pt),oe=this.expression.evaluate(new Vo(this.zoom+1),q,{},vt,[],Pt),Te=this.paintVertexArray.length;this.paintVertexArray.resize(z),this._setPaintValue(Te,z,Rt,oe)}updatePaintArray(z,q,ht,vt){let Pt=this.expression.evaluate({zoom:this.zoom},ht,vt),Rt=this.expression.evaluate({zoom:this.zoom+1},ht,vt);this._setPaintValue(z,q,Pt,Rt)}_setPaintValue(z,q,ht,vt){if(this.type==="color"){let Pt=Lf(ht),Rt=Lf(vt);for(let oe=z;oe`#define HAS_UNIFORM_${vt}`))}return z}getBinderAttributes(){let z=[];for(let q in this.binders){let ht=this.binders[q];if(ht instanceof Kc||ht instanceof pu)for(let vt=0;vt!0){this.programConfigurations={};for(let vt of z)this.programConfigurations[vt.id]=new np(vt,q,ht);this.needsUpload=!1,this._featureMap=new ph,this._bufferOffset=0}populatePaintArrays(z,q,ht,vt,Pt,Rt){for(let oe in this.programConfigurations)this.programConfigurations[oe].populatePaintArrays(z,q,vt,Pt,Rt);q.id!==void 0&&this._featureMap.add(q.id,ht,this._bufferOffset,z),this._bufferOffset=z,this.needsUpload=!0}updatePaintArrays(z,q,ht,vt){for(let Pt of ht)this.needsUpload=this.programConfigurations[Pt.id].updatePaintArrays(z,this._featureMap,q,Pt,vt)||this.needsUpload}get(z){return this.programConfigurations[z]}upload(z){if(this.needsUpload){for(let q in this.programConfigurations)this.programConfigurations[q].upload(z);this.needsUpload=!1}}destroy(){for(let z in this.programConfigurations)this.programConfigurations[z].destroy()}}function M0(D,z){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[D]||[D.replace(`${z}-`,"").replace(/-/g,"_")]}function S0(D){return{"line-pattern":{source:vo,composite:vo},"fill-pattern":{source:vo,composite:vo},"fill-extrusion-pattern":{source:vo,composite:vo}}[D]}function yd(D,z,q){let ht={color:{source:mn,composite:vr},number:{source:Ft,composite:mn}},vt=S0(D);return vt&&vt[q]||ht[z][q]}Oa("ConstantBinder",Kh),Oa("CrossFadedConstantBinder",zc),Oa("SourceExpressionBinder",Kc),Oa("CrossFadedCompositeBinder",dh),Oa("CompositeExpressionBinder",pu),Oa("ProgramConfiguration",np,{omit:["_buffers"]}),Oa("ProgramConfigurationSet",Qc);let js=8192,Rp=2**14-1,vd=-Rp-1;function mh(D){let z=js/D.extent,q=D.loadGeometry();for(let ht=0;htRt.x+1||TeRt.y+1)&&U("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return q}function Qh(D,z){return{type:D.type,id:D.id,properties:D.properties,geometry:z?mh(D):[]}}function op(D,z,q,ht,vt){D.emplaceBack(z*2+(ht+1)/2,q*2+(vt+1)/2)}class Fp{constructor(z){this.zoom=z.zoom,this.overscaling=z.overscaling,this.layers=z.layers,this.layerIds=this.layers.map(q=>q.id),this.index=z.index,this.hasPattern=!1,this.layoutVertexArray=new tn,this.indexArray=new Po,this.segments=new Jo,this.programConfigurations=new Qc(z.layers,z.zoom),this.stateDependentLayerIds=this.layers.filter(q=>q.isStateDependent()).map(q=>q.id)}populate(z,q,ht){let vt=this.layers[0],Pt=[],Rt=null,oe=!1;vt.type==="circle"&&(Rt=vt.layout.get("circle-sort-key"),oe=!Rt.isConstant());for(let{feature:Te,id:De,index:Ve,sourceLayerIndex:Je}of z){let mr=this.layers[0]._featureFilter.needGeometry,Rr=Qh(Te,mr);if(!this.layers[0]._featureFilter.filter(new Vo(this.zoom),Rr,ht))continue;let Kr=oe?Rt.evaluate(Rr,{},ht):void 0,ni={id:De,properties:Te.properties,type:Te.type,sourceLayerIndex:Je,index:Ve,geometry:mr?Rr.geometry:mh(Te),patterns:{},sortKey:Kr};Pt.push(ni)}oe&&Pt.sort((Te,De)=>Te.sortKey-De.sortKey);for(let Te of Pt){let{geometry:De,index:Ve,sourceLayerIndex:Je}=Te,mr=z[Ve].feature;this.addFeature(Te,De,Ve,ht),q.featureIndex.insert(mr,De,Ve,Je,this.index)}}update(z,q,ht){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(z,q,this.stateDependentLayers,ht)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(z){this.uploaded||(this.layoutVertexBuffer=z.createVertexBuffer(this.layoutVertexArray,vs),this.indexBuffer=z.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(z),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(z,q,ht,vt){for(let Pt of q)for(let Rt of Pt){let oe=Rt.x,Te=Rt.y;if(oe<0||oe>=js||Te<0||Te>=js)continue;let De=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,z.sortKey),Ve=De.vertexLength;op(this.layoutVertexArray,oe,Te,-1,-1),op(this.layoutVertexArray,oe,Te,1,-1),op(this.layoutVertexArray,oe,Te,1,1),op(this.layoutVertexArray,oe,Te,-1,1),this.indexArray.emplaceBack(Ve,Ve+1,Ve+2),this.indexArray.emplaceBack(Ve,Ve+3,Ve+2),De.vertexLength+=4,De.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,z,ht,{},vt)}}Oa("CircleBucket",Fp,{omit:["layers"]});function xd(D,z){for(let q=0;q=3){for(let Pt=0;Pt1){if(sp(D,z))return!0;for(let ht=0;ht1?D.distSqr(q):D.distSqr(q.sub(z)._mult(vt)._add(z))}function Td(D,z){let q=!1,ht,vt,Pt;for(let Rt=0;Rtz.y!=Pt.y>z.y&&z.x<(Pt.x-vt.x)*(z.y-vt.y)/(Pt.y-vt.y)+vt.x&&(q=!q)}return q}function tf(D,z){let q=!1;for(let ht=0,vt=D.length-1;htz.y!=Rt.y>z.y&&z.x<(Rt.x-Pt.x)*(z.y-Pt.y)/(Rt.y-Pt.y)+Pt.x&&(q=!q)}return q}function E0(D,z,q,ht,vt){for(let Rt of D)if(z<=Rt.x&&q<=Rt.y&&ht>=Rt.x&&vt>=Rt.y)return!0;let Pt=[new c(z,q),new c(z,vt),new c(ht,vt),new c(ht,q)];if(D.length>2){for(let Rt of Pt)if(tf(D,Rt))return!0}for(let Rt=0;Rtvt.x&&z.x>vt.x||D.yvt.y&&z.y>vt.y)return!1;let Pt=P(D,z,q[0]);return Pt!==P(D,z,q[1])||Pt!==P(D,z,q[2])||Pt!==P(D,z,q[3])}function If(D,z,q){let ht=z.paint.get(D).value;return ht.kind==="constant"?ht.value:q.programConfigurations.get(z.id).getMaxValue(D)}function lp(D){return Math.sqrt(D[0]*D[0]+D[1]*D[1])}function uf(D,z,q,ht,vt){if(!z[0]&&!z[1])return D;let Pt=c.convert(z)._mult(vt);q==="viewport"&&Pt._rotate(-ht);let Rt=[];for(let oe=0;oeup||(up=new cr({"circle-sort-key":new le(ae.layout_circle["circle-sort-key"])})),Bh,Pf=()=>Bh||(Bh=new cr({"circle-radius":new le(ae.paint_circle["circle-radius"]),"circle-color":new le(ae.paint_circle["circle-color"]),"circle-blur":new le(ae.paint_circle["circle-blur"]),"circle-opacity":new le(ae.paint_circle["circle-opacity"]),"circle-translate":new Nt(ae.paint_circle["circle-translate"]),"circle-translate-anchor":new Nt(ae.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Nt(ae.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Nt(ae.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new le(ae.paint_circle["circle-stroke-width"]),"circle-stroke-color":new le(ae.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new le(ae.paint_circle["circle-stroke-opacity"])}));var I0={get paint(){return Pf()},get layout(){return kd()}},du=1e-6,cf=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var D=0,z=arguments.length;z--;)D+=arguments[z]*arguments[z];return Math.sqrt(D)});function P0(){var D=new cf(16);return cf!=Float32Array&&(D[1]=0,D[2]=0,D[3]=0,D[4]=0,D[6]=0,D[7]=0,D[8]=0,D[9]=0,D[11]=0,D[12]=0,D[13]=0,D[14]=0),D[0]=1,D[5]=1,D[10]=1,D[15]=1,D}function z0(D){var z=new cf(16);return z[0]=D[0],z[1]=D[1],z[2]=D[2],z[3]=D[3],z[4]=D[4],z[5]=D[5],z[6]=D[6],z[7]=D[7],z[8]=D[8],z[9]=D[9],z[10]=D[10],z[11]=D[11],z[12]=D[12],z[13]=D[13],z[14]=D[14],z[15]=D[15],z}function O0(D,z){return D[0]=z[0],D[1]=z[1],D[2]=z[2],D[3]=z[3],D[4]=z[4],D[5]=z[5],D[6]=z[6],D[7]=z[7],D[8]=z[8],D[9]=z[9],D[10]=z[10],D[11]=z[11],D[12]=z[12],D[13]=z[13],D[14]=z[14],D[15]=z[15],D}function jp(D){return D[0]=1,D[1]=0,D[2]=0,D[3]=0,D[4]=0,D[5]=1,D[6]=0,D[7]=0,D[8]=0,D[9]=0,D[10]=1,D[11]=0,D[12]=0,D[13]=0,D[14]=0,D[15]=1,D}function D0(D,z){var q=z[0],ht=z[1],vt=z[2],Pt=z[3],Rt=z[4],oe=z[5],Te=z[6],De=z[7],Ve=z[8],Je=z[9],mr=z[10],Rr=z[11],Kr=z[12],ni=z[13],Bi=z[14],ia=z[15],ba=q*oe-ht*Rt,ka=q*Te-vt*Rt,Ma=q*De-Pt*Rt,qa=ht*Te-vt*oe,xn=ht*De-Pt*oe,Fn=vt*De-Pt*Te,to=Ve*ni-Je*Kr,Hn=Ve*Bi-mr*Kr,Ln=Ve*ia-Rr*Kr,Nn=Je*Bi-mr*ni,jn=Je*ia-Rr*ni,zn=mr*ia-Rr*Bi,Ba=ba*zn-ka*jn+Ma*Nn+qa*Ln-xn*Hn+Fn*to;return Ba?(Ba=1/Ba,D[0]=(oe*zn-Te*jn+De*Nn)*Ba,D[1]=(vt*jn-ht*zn-Pt*Nn)*Ba,D[2]=(ni*Fn-Bi*xn+ia*qa)*Ba,D[3]=(mr*xn-Je*Fn-Rr*qa)*Ba,D[4]=(Te*Ln-Rt*zn-De*Hn)*Ba,D[5]=(q*zn-vt*Ln+Pt*Hn)*Ba,D[6]=(Bi*Ma-Kr*Fn-ia*ka)*Ba,D[7]=(Ve*Fn-mr*Ma+Rr*ka)*Ba,D[8]=(Rt*jn-oe*Ln+De*to)*Ba,D[9]=(ht*Ln-q*jn-Pt*to)*Ba,D[10]=(Kr*xn-ni*Ma+ia*ba)*Ba,D[11]=(Je*Ma-Ve*xn-Rr*ba)*Ba,D[12]=(oe*Hn-Rt*Nn-Te*to)*Ba,D[13]=(q*Nn-ht*Hn+vt*to)*Ba,D[14]=(ni*ka-Kr*qa-Bi*ba)*Ba,D[15]=(Ve*qa-Je*ka+mr*ba)*Ba,D):null}function Ad(D,z,q){var ht=z[0],vt=z[1],Pt=z[2],Rt=z[3],oe=z[4],Te=z[5],De=z[6],Ve=z[7],Je=z[8],mr=z[9],Rr=z[10],Kr=z[11],ni=z[12],Bi=z[13],ia=z[14],ba=z[15],ka=q[0],Ma=q[1],qa=q[2],xn=q[3];return D[0]=ka*ht+Ma*oe+qa*Je+xn*ni,D[1]=ka*vt+Ma*Te+qa*mr+xn*Bi,D[2]=ka*Pt+Ma*De+qa*Rr+xn*ia,D[3]=ka*Rt+Ma*Ve+qa*Kr+xn*ba,ka=q[4],Ma=q[5],qa=q[6],xn=q[7],D[4]=ka*ht+Ma*oe+qa*Je+xn*ni,D[5]=ka*vt+Ma*Te+qa*mr+xn*Bi,D[6]=ka*Pt+Ma*De+qa*Rr+xn*ia,D[7]=ka*Rt+Ma*Ve+qa*Kr+xn*ba,ka=q[8],Ma=q[9],qa=q[10],xn=q[11],D[8]=ka*ht+Ma*oe+qa*Je+xn*ni,D[9]=ka*vt+Ma*Te+qa*mr+xn*Bi,D[10]=ka*Pt+Ma*De+qa*Rr+xn*ia,D[11]=ka*Rt+Ma*Ve+qa*Kr+xn*ba,ka=q[12],Ma=q[13],qa=q[14],xn=q[15],D[12]=ka*ht+Ma*oe+qa*Je+xn*ni,D[13]=ka*vt+Ma*Te+qa*mr+xn*Bi,D[14]=ka*Pt+Ma*De+qa*Rr+xn*ia,D[15]=ka*Rt+Ma*Ve+qa*Kr+xn*ba,D}function R0(D,z,q){var ht=q[0],vt=q[1],Pt=q[2],Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia;return z===D?(D[12]=z[0]*ht+z[4]*vt+z[8]*Pt+z[12],D[13]=z[1]*ht+z[5]*vt+z[9]*Pt+z[13],D[14]=z[2]*ht+z[6]*vt+z[10]*Pt+z[14],D[15]=z[3]*ht+z[7]*vt+z[11]*Pt+z[15]):(Rt=z[0],oe=z[1],Te=z[2],De=z[3],Ve=z[4],Je=z[5],mr=z[6],Rr=z[7],Kr=z[8],ni=z[9],Bi=z[10],ia=z[11],D[0]=Rt,D[1]=oe,D[2]=Te,D[3]=De,D[4]=Ve,D[5]=Je,D[6]=mr,D[7]=Rr,D[8]=Kr,D[9]=ni,D[10]=Bi,D[11]=ia,D[12]=Rt*ht+Ve*vt+Kr*Pt+z[12],D[13]=oe*ht+Je*vt+ni*Pt+z[13],D[14]=Te*ht+mr*vt+Bi*Pt+z[14],D[15]=De*ht+Rr*vt+ia*Pt+z[15]),D}function F0(D,z,q){var ht=q[0],vt=q[1],Pt=q[2];return D[0]=z[0]*ht,D[1]=z[1]*ht,D[2]=z[2]*ht,D[3]=z[3]*ht,D[4]=z[4]*vt,D[5]=z[5]*vt,D[6]=z[6]*vt,D[7]=z[7]*vt,D[8]=z[8]*Pt,D[9]=z[9]*Pt,D[10]=z[10]*Pt,D[11]=z[11]*Pt,D[12]=z[12],D[13]=z[13],D[14]=z[14],D[15]=z[15],D}function Up(D,z,q){var ht=Math.sin(q),vt=Math.cos(q),Pt=z[4],Rt=z[5],oe=z[6],Te=z[7],De=z[8],Ve=z[9],Je=z[10],mr=z[11];return z!==D&&(D[0]=z[0],D[1]=z[1],D[2]=z[2],D[3]=z[3],D[12]=z[12],D[13]=z[13],D[14]=z[14],D[15]=z[15]),D[4]=Pt*vt+De*ht,D[5]=Rt*vt+Ve*ht,D[6]=oe*vt+Je*ht,D[7]=Te*vt+mr*ht,D[8]=De*vt-Pt*ht,D[9]=Ve*vt-Rt*ht,D[10]=Je*vt-oe*ht,D[11]=mr*vt-Te*ht,D}function B0(D,z,q){var ht=Math.sin(q),vt=Math.cos(q),Pt=z[0],Rt=z[1],oe=z[2],Te=z[3],De=z[4],Ve=z[5],Je=z[6],mr=z[7];return z!==D&&(D[8]=z[8],D[9]=z[9],D[10]=z[10],D[11]=z[11],D[12]=z[12],D[13]=z[13],D[14]=z[14],D[15]=z[15]),D[0]=Pt*vt+De*ht,D[1]=Rt*vt+Ve*ht,D[2]=oe*vt+Je*ht,D[3]=Te*vt+mr*ht,D[4]=De*vt-Pt*ht,D[5]=Ve*vt-Rt*ht,D[6]=Je*vt-oe*ht,D[7]=mr*vt-Te*ht,D}function hf(D,z){return D[0]=z[0],D[1]=0,D[2]=0,D[3]=0,D[4]=0,D[5]=z[1],D[6]=0,D[7]=0,D[8]=0,D[9]=0,D[10]=z[2],D[11]=0,D[12]=0,D[13]=0,D[14]=0,D[15]=1,D}function N0(D,z,q,ht,vt){var Pt=1/Math.tan(z/2),Rt;return D[0]=Pt/q,D[1]=0,D[2]=0,D[3]=0,D[4]=0,D[5]=Pt,D[6]=0,D[7]=0,D[8]=0,D[9]=0,D[11]=-1,D[12]=0,D[13]=0,D[15]=0,vt!=null&&vt!==1/0?(Rt=1/(ht-vt),D[10]=(vt+ht)*Rt,D[14]=2*vt*ht*Rt):(D[10]=-1,D[14]=-2*ht),D}var Is=N0;function cp(D,z,q,ht,vt,Pt,Rt){var oe=1/(z-q),Te=1/(ht-vt),De=1/(Pt-Rt);return D[0]=-2*oe,D[1]=0,D[2]=0,D[3]=0,D[4]=0,D[5]=-2*Te,D[6]=0,D[7]=0,D[8]=0,D[9]=0,D[10]=2*De,D[11]=0,D[12]=(z+q)*oe,D[13]=(vt+ht)*Te,D[14]=(Rt+Pt)*De,D[15]=1,D}var Md=cp;function hp(D,z){return D[0]===z[0]&&D[1]===z[1]&&D[2]===z[2]&&D[3]===z[3]&&D[4]===z[4]&&D[5]===z[5]&&D[6]===z[6]&&D[7]===z[7]&&D[8]===z[8]&&D[9]===z[9]&&D[10]===z[10]&&D[11]===z[11]&&D[12]===z[12]&&D[13]===z[13]&&D[14]===z[14]&&D[15]===z[15]}function fp(D,z){var q=D[0],ht=D[1],vt=D[2],Pt=D[3],Rt=D[4],oe=D[5],Te=D[6],De=D[7],Ve=D[8],Je=D[9],mr=D[10],Rr=D[11],Kr=D[12],ni=D[13],Bi=D[14],ia=D[15],ba=z[0],ka=z[1],Ma=z[2],qa=z[3],xn=z[4],Fn=z[5],to=z[6],Hn=z[7],Ln=z[8],Nn=z[9],jn=z[10],zn=z[11],Ba=z[12],Sn=z[13],fo=z[14],eo=z[15];return Math.abs(q-ba)<=du*Math.max(1,Math.abs(q),Math.abs(ba))&&Math.abs(ht-ka)<=du*Math.max(1,Math.abs(ht),Math.abs(ka))&&Math.abs(vt-Ma)<=du*Math.max(1,Math.abs(vt),Math.abs(Ma))&&Math.abs(Pt-qa)<=du*Math.max(1,Math.abs(Pt),Math.abs(qa))&&Math.abs(Rt-xn)<=du*Math.max(1,Math.abs(Rt),Math.abs(xn))&&Math.abs(oe-Fn)<=du*Math.max(1,Math.abs(oe),Math.abs(Fn))&&Math.abs(Te-to)<=du*Math.max(1,Math.abs(Te),Math.abs(to))&&Math.abs(De-Hn)<=du*Math.max(1,Math.abs(De),Math.abs(Hn))&&Math.abs(Ve-Ln)<=du*Math.max(1,Math.abs(Ve),Math.abs(Ln))&&Math.abs(Je-Nn)<=du*Math.max(1,Math.abs(Je),Math.abs(Nn))&&Math.abs(mr-jn)<=du*Math.max(1,Math.abs(mr),Math.abs(jn))&&Math.abs(Rr-zn)<=du*Math.max(1,Math.abs(Rr),Math.abs(zn))&&Math.abs(Kr-Ba)<=du*Math.max(1,Math.abs(Kr),Math.abs(Ba))&&Math.abs(ni-Sn)<=du*Math.max(1,Math.abs(ni),Math.abs(Sn))&&Math.abs(Bi-fo)<=du*Math.max(1,Math.abs(Bi),Math.abs(fo))&&Math.abs(ia-eo)<=du*Math.max(1,Math.abs(ia),Math.abs(eo))}var j0=Ad;function zf(){var D=new cf(4);return cf!=Float32Array&&(D[0]=0,D[1]=0,D[2]=0,D[3]=0),D}function U0(D,z,q){return D[0]=z[0]*q[0],D[1]=z[1]*q[1],D[2]=z[2]*q[2],D[3]=z[3]*q[3],D}function Sd(D,z){return D[0]*z[0]+D[1]*z[1]+D[2]*z[2]+D[3]*z[3]}function Of(D,z,q){var ht=z[0],vt=z[1],Pt=z[2],Rt=z[3];return D[0]=q[0]*ht+q[4]*vt+q[8]*Pt+q[12]*Rt,D[1]=q[1]*ht+q[5]*vt+q[9]*Pt+q[13]*Rt,D[2]=q[2]*ht+q[6]*vt+q[10]*Pt+q[14]*Rt,D[3]=q[3]*ht+q[7]*vt+q[11]*Pt+q[15]*Rt,D}var Df=U0;(function(){var D=zf();return function(z,q,ht,vt,Pt,Rt){var oe,Te;for(q||(q=4),ht||(ht=0),Te=vt?Math.min(vt*q+ht,z.length):z.length,oe=ht;oepp(q,z))}class qp extends Fp{}Oa("HeatmapBucket",qp,{omit:["layers"]});let Rf,q0=()=>Rf||(Rf=new cr({"heatmap-radius":new le(ae.paint_heatmap["heatmap-radius"]),"heatmap-weight":new le(ae.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Nt(ae.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ir(ae.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Nt(ae.paint_heatmap["heatmap-opacity"])}));var Hp={get paint(){return q0()}};function Gp(D,{width:z,height:q},ht,vt){if(!vt)vt=new Uint8Array(z*q*ht);else if(vt instanceof Uint8ClampedArray)vt=new Uint8Array(vt.buffer);else if(vt.length!==z*q*ht)throw RangeError(`mismatched image size. expected: ${vt.length} but got: ${z*q*ht}`);return D.width=z,D.height=q,D.data=vt,D}function dp(D,{width:z,height:q},ht){if(z===D.width&&q===D.height)return;let vt=Gp({},{width:z,height:q},ht);Ff(D,vt,{x:0,y:0},{x:0,y:0},{width:Math.min(D.width,z),height:Math.min(D.height,q)},ht),D.width=z,D.height=q,D.data=vt.data}function Ff(D,z,q,ht,vt,Pt){if(vt.width===0||vt.height===0)return z;if(vt.width>D.width||vt.height>D.height||q.x>D.width-vt.width||q.y>D.height-vt.height)throw RangeError("out of range source coordinates for image copy");if(vt.width>z.width||vt.height>z.height||ht.x>z.width-vt.width||ht.y>z.height-vt.height)throw RangeError("out of range destination coordinates for image copy");let Rt=D.data,oe=z.data;if(Rt===oe)throw Error("srcData equals dstData, so image is already copied");for(let Te=0;Te{z[D.evaluationKey]=Te;let De=D.expression.evaluate(z);vt.data[Rt+oe+0]=Math.floor(De.r*255/De.a),vt.data[Rt+oe+1]=Math.floor(De.g*255/De.a),vt.data[Rt+oe+2]=Math.floor(De.b*255/De.a),vt.data[Rt+oe+3]=Math.floor(De.a*255)};if(D.clips)for(let Rt=0,oe=0;RtG0||(G0=new cr({"hillshade-illumination-direction":new Nt(ae.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Nt(ae.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Nt(ae.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Nt(ae.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Nt(ae.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Nt(ae.paint_hillshade["hillshade-accent-color"])}));var Cd={get paint(){return Z0()}};class ff extends Ur{constructor(z){super(z,Cd)}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&this.visibility!=="none"}}let{members:W0,size:tg,alignment:eg}=Mi([{name:"a_pos",components:2,type:"Int16"}],4);function Ld(D,z,q=2){let ht=z&&z.length,vt=ht?z[0]*q:D.length,Pt=Zp(D,0,vt,q,!0),Rt=[];if(!Pt||Pt.next===Pt.prev)return Rt;let oe,Te,De;if(ht&&(Pt=pf(D,z,Pt,q)),D.length>80*q){oe=1/0,Te=1/0;let Ve=-1/0,Je=-1/0;for(let mr=q;mrVe&&(Ve=Rr),Kr>Je&&(Je=Kr)}De=Math.max(Ve-oe,Je-Te),De=De===0?0:32767/De}return Nf(Pt,Rt,q,oe,Te,De,0),Rt}function Zp(D,z,q,ht,vt){let Pt;if(vt===Dd(D,z,q,ht)>0)for(let Rt=z;Rt=z;Rt-=ht)Pt=Od(Rt/ht|0,D[Rt],D[Rt+1],Pt);return Pt&&mp(Pt,Pt.next)&&(qf(Pt),Pt=Pt.next),Pt}function Nh(D,z){if(!D)return D;z||(z=D);let q=D,ht;do if(ht=!1,!q.steiner&&(mp(q,q.next)||Ts(q.prev,q,q.next)===0)){if(qf(q),q=z=q.prev,q===q.next)break;ht=!0}else q=q.next;while(ht||q!==z);return z}function Nf(D,z,q,ht,vt,Pt,Rt){if(!D)return;!Rt&&Pt&&th(D,ht,vt,Pt);let oe=D;for(;D.prev!==D.next;){let Te=D.prev,De=D.next;if(Pt?X0(D,ht,vt,Pt):Y0(D)){z.push(Te.i,D.i,De.i),qf(D),D=De.next,oe=De.next;continue}if(D=De,D===oe){Rt?Rt===1?(D=$0(Nh(D),z),Nf(D,z,q,ht,vt,Pt,2)):Rt===2&&J0(D,z,q,ht,vt,Pt):Nf(Nh(D),z,q,ht,vt,Pt,1);break}}}function Y0(D){let z=D.prev,q=D,ht=D.next;if(Ts(z,q,ht)>=0)return!1;let vt=z.x,Pt=q.x,Rt=ht.x,oe=z.y,Te=q.y,De=ht.y,Ve=vtPt?vt>Rt?vt:Rt:Pt>Rt?Pt:Rt,Rr=oe>Te?oe>De?oe:De:Te>De?Te:De,Kr=ht.next;for(;Kr!==z;){if(Kr.x>=Ve&&Kr.x<=mr&&Kr.y>=Je&&Kr.y<=Rr&&df(vt,oe,Pt,Te,Rt,De,Kr.x,Kr.y)&&Ts(Kr.prev,Kr,Kr.next)>=0)return!1;Kr=Kr.next}return!0}function X0(D,z,q,ht){let vt=D.prev,Pt=D,Rt=D.next;if(Ts(vt,Pt,Rt)>=0)return!1;let oe=vt.x,Te=Pt.x,De=Rt.x,Ve=vt.y,Je=Pt.y,mr=Rt.y,Rr=oeTe?oe>De?oe:De:Te>De?Te:De,Bi=Ve>Je?Ve>mr?Ve:mr:Je>mr?Je:mr,ia=Yp(Rr,Kr,z,q,ht),ba=Yp(ni,Bi,z,q,ht),ka=D.prevZ,Ma=D.nextZ;for(;ka&&ka.z>=ia&&Ma&&Ma.z<=ba;){if(ka.x>=Rr&&ka.x<=ni&&ka.y>=Kr&&ka.y<=Bi&&ka!==vt&&ka!==Rt&&df(oe,Ve,Te,Je,De,mr,ka.x,ka.y)&&Ts(ka.prev,ka,ka.next)>=0||(ka=ka.prevZ,Ma.x>=Rr&&Ma.x<=ni&&Ma.y>=Kr&&Ma.y<=Bi&&Ma!==vt&&Ma!==Rt&&df(oe,Ve,Te,Je,De,mr,Ma.x,Ma.y)&&Ts(Ma.prev,Ma,Ma.next)>=0))return!1;Ma=Ma.nextZ}for(;ka&&ka.z>=ia;){if(ka.x>=Rr&&ka.x<=ni&&ka.y>=Kr&&ka.y<=Bi&&ka!==vt&&ka!==Rt&&df(oe,Ve,Te,Je,De,mr,ka.x,ka.y)&&Ts(ka.prev,ka,ka.next)>=0)return!1;ka=ka.prevZ}for(;Ma&&Ma.z<=ba;){if(Ma.x>=Rr&&Ma.x<=ni&&Ma.y>=Kr&&Ma.y<=Bi&&Ma!==vt&&Ma!==Rt&&df(oe,Ve,Te,Je,De,mr,Ma.x,Ma.y)&&Ts(Ma.prev,Ma,Ma.next)>=0)return!1;Ma=Ma.nextZ}return!0}function $0(D,z){let q=D;do{let ht=q.prev,vt=q.next.next;!mp(ht,vt)&&Id(ht,q,q.next,vt)&&Vf(ht,vt)&&Vf(vt,ht)&&(z.push(ht.i,q.i,vt.i),qf(q),qf(q.next),q=D=vt),q=q.next}while(q!==D);return Nh(q)}function J0(D,z,q,ht,vt,Pt){let Rt=D;do{let oe=Rt.next.next;for(;oe!==Rt.prev;){if(Rt.i!==oe.i&&Uf(Rt,oe)){let Te=zd(Rt,oe);Rt=Nh(Rt,Rt.next),Te=Nh(Te,Te.next),Nf(Rt,z,q,ht,vt,Pt,0),Nf(Te,z,q,ht,vt,Pt,0);return}oe=oe.next}Rt=Rt.next}while(Rt!==D)}function pf(D,z,q,ht){let vt=[];for(let Pt=0,Rt=z.length;Pt=q.next.y&&q.next.y!==q.y){let Je=q.x+(vt-q.y)*(q.next.x-q.x)/(q.next.y-q.y);if(Je<=ht&&Je>Pt&&(Pt=Je,Rt=q.x=q.x&&q.x>=Te&&ht!==q.x&&df(vtRt.x||q.x===Rt.x&&jf(Rt,q)))&&(Rt=q,Ve=Je)}q=q.next}while(q!==oe);return Rt}function jf(D,z){return Ts(D.prev,D,z.prev)<0&&Ts(z.next,D,D.next)<0}function th(D,z,q,ht){let vt=D;do vt.z===0&&(vt.z=Yp(vt.x,vt.y,z,q,ht)),vt.prevZ=vt.prev,vt.nextZ=vt.next,vt=vt.next;while(vt!==D);vt.prevZ.nextZ=null,vt.prevZ=null,tm(vt)}function tm(D){let z,q=1;do{let ht=D,vt;D=null;let Pt=null;for(z=0;ht;){z++;let Rt=ht,oe=0;for(let De=0;De0||Te>0&&Rt;)oe!==0&&(Te===0||!Rt||ht.z<=Rt.z)?(vt=ht,ht=ht.nextZ,oe--):(vt=Rt,Rt=Rt.nextZ,Te--),Pt?Pt.nextZ=vt:D=vt,vt.prevZ=Pt,Pt=vt;ht=Rt}Pt.nextZ=null,q*=2}while(z>1);return D}function Yp(D,z,q,ht,vt){return D=(D-q)*vt|0,z=(z-ht)*vt|0,D=(D|D<<8)&16711935,D=(D|D<<4)&252645135,D=(D|D<<2)&858993459,D=(D|D<<1)&1431655765,z=(z|z<<8)&16711935,z=(z|z<<4)&252645135,z=(z|z<<2)&858993459,z=(z|z<<1)&1431655765,D|z<<1}function em(D){let z=D,q=D;do(z.x=(D-Rt)*(Pt-oe)&&(D-Rt)*(ht-oe)>=(q-Rt)*(z-oe)&&(q-Rt)*(Pt-oe)>=(vt-Rt)*(ht-oe)}function Uf(D,z){return D.next.i!==z.i&&D.prev.i!==z.i&&!rm(D,z)&&(Vf(D,z)&&Vf(z,D)&&Pd(D,z)&&(Ts(D.prev,D,z.prev)||Ts(D,z.prev,z))||mp(D,z)&&Ts(D.prev,D,D.next)>0&&Ts(z.prev,z,z.next)>0)}function Ts(D,z,q){return(z.y-D.y)*(q.x-z.x)-(z.x-D.x)*(q.y-z.y)}function mp(D,z){return D.x===z.x&&D.y===z.y}function Id(D,z,q,ht){let vt=yp(Ts(D,z,q)),Pt=yp(Ts(D,z,ht)),Rt=yp(Ts(q,ht,D)),oe=yp(Ts(q,ht,z));return!!(vt!==Pt&&Rt!==oe||vt===0&&gp(D,q,z)||Pt===0&&gp(D,ht,z)||Rt===0&&gp(q,D,ht)||oe===0&&gp(q,z,ht))}function gp(D,z,q){return z.x<=Math.max(D.x,q.x)&&z.x>=Math.min(D.x,q.x)&&z.y<=Math.max(D.y,q.y)&&z.y>=Math.min(D.y,q.y)}function yp(D){return D>0?1:D<0?-1:0}function rm(D,z){let q=D;do{if(q.i!==D.i&&q.next.i!==D.i&&q.i!==z.i&&q.next.i!==z.i&&Id(q,q.next,D,z))return!0;q=q.next}while(q!==D);return!1}function Vf(D,z){return Ts(D.prev,D,D.next)<0?Ts(D,z,D.next)>=0&&Ts(D,D.prev,z)>=0:Ts(D,z,D.prev)<0||Ts(D,D.next,z)<0}function Pd(D,z){let q=D,ht=!1,vt=(D.x+z.x)/2,Pt=(D.y+z.y)/2;do q.y>Pt!=q.next.y>Pt&&q.next.y!==q.y&&vt<(q.next.x-q.x)*(Pt-q.y)/(q.next.y-q.y)+q.x&&(ht=!ht),q=q.next;while(q!==D);return ht}function zd(D,z){let q=Xp(D.i,D.x,D.y),ht=Xp(z.i,z.x,z.y),vt=D.next,Pt=z.prev;return D.next=z,z.prev=D,q.next=vt,vt.prev=q,ht.next=q,q.prev=ht,Pt.next=ht,ht.prev=Pt,ht}function Od(D,z,q,ht){let vt=Xp(D,z,q);return ht?(vt.next=ht.next,vt.prev=ht,ht.next.prev=vt,ht.next=vt):(vt.prev=vt,vt.next=vt),vt}function qf(D){D.next.prev=D.prev,D.prev.next=D.next,D.prevZ&&(D.prevZ.nextZ=D.nextZ),D.nextZ&&(D.nextZ.prevZ=D.prevZ)}function Xp(D,z,q){return{i:D,x:z,y:q,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Dd(D,z,q,ht){let vt=0;for(let Pt=z,Rt=q-ht;Ptq.id),this.index=z.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new en,this.indexArray=new Po,this.indexArray2=new Vn,this.programConfigurations=new Qc(z.layers,z.zoom),this.segments=new Jo,this.segments2=new Jo,this.stateDependentLayerIds=this.layers.filter(q=>q.isStateDependent()).map(q=>q.id)}populate(z,q,ht){this.hasPattern=vp("fill",this.layers,q);let vt=this.layers[0].layout.get("fill-sort-key"),Pt=!vt.isConstant(),Rt=[];for(let{feature:oe,id:Te,index:De,sourceLayerIndex:Ve}of z){let Je=this.layers[0]._featureFilter.needGeometry,mr=Qh(oe,Je);if(!this.layers[0]._featureFilter.filter(new Vo(this.zoom),mr,ht))continue;let Rr=Pt?vt.evaluate(mr,{},ht,q.availableImages):void 0,Kr={id:Te,properties:oe.properties,type:oe.type,sourceLayerIndex:Ve,index:De,geometry:Je?mr.geometry:mh(oe),patterns:{},sortKey:Rr};Rt.push(Kr)}Pt&&Rt.sort((oe,Te)=>oe.sortKey-Te.sortKey);for(let oe of Rt){let{geometry:Te,index:De,sourceLayerIndex:Ve}=oe;if(this.hasPattern){let mr=vl("fill",this.layers,oe,this.zoom,q);this.patternFeatures.push(mr)}else this.addFeature(oe,Te,De,ht,{});let Je=z[De].feature;q.featureIndex.insert(Je,Te,De,Ve,this.index)}}update(z,q,ht){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(z,q,this.stateDependentLayers,ht)}addFeatures(z,q,ht){for(let vt of this.patternFeatures)this.addFeature(vt,vt.geometry,vt.index,q,ht)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(z){this.uploaded||(this.layoutVertexBuffer=z.createVertexBuffer(this.layoutVertexArray,W0),this.indexBuffer=z.createIndexBuffer(this.indexArray),this.indexBuffer2=z.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(z),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(z,q,ht,vt,Pt){for(let Rt of lc(q,500)){let oe=0;for(let Rr of Rt)oe+=Rr.length;let Te=this.segments.prepareSegment(oe,this.layoutVertexArray,this.indexArray),De=Te.vertexLength,Ve=[],Je=[];for(let Rr of Rt){if(Rr.length===0)continue;Rr!==Rt[0]&&Je.push(Ve.length/2);let Kr=this.segments2.prepareSegment(Rr.length,this.layoutVertexArray,this.indexArray2),ni=Kr.vertexLength;this.layoutVertexArray.emplaceBack(Rr[0].x,Rr[0].y),this.indexArray2.emplaceBack(ni+Rr.length-1,ni),Ve.push(Rr[0].x),Ve.push(Rr[0].y);for(let Bi=1;BiRd||(Rd=new cr({"fill-sort-key":new le(ae.layout_fill["fill-sort-key"])})),im,Bd=()=>im||(im=new cr({"fill-antialias":new Nt(ae.paint_fill["fill-antialias"]),"fill-opacity":new le(ae.paint_fill["fill-opacity"]),"fill-color":new le(ae.paint_fill["fill-color"]),"fill-outline-color":new le(ae.paint_fill["fill-outline-color"]),"fill-translate":new Nt(ae.paint_fill["fill-translate"]),"fill-translate-anchor":new Nt(ae.paint_fill["fill-translate-anchor"]),"fill-pattern":new Ae(ae.paint_fill["fill-pattern"])}));var am={get paint(){return Bd()},get layout(){return Fd()}};class nm extends Ur{constructor(z){super(z,am)}recalculate(z,q){super.recalculate(z,q);let ht=this.paint._values["fill-outline-color"];ht.value.kind==="constant"&&ht.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(z){return new $p(z)}queryRadius(){return lp(this.paint.get("fill-translate"))}queryIntersectsFeature(z,q,ht,vt,Pt,Rt,oe){return bd(uf(z,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),Rt.angle,oe),vt)}isTileClipped(){return!0}}let om=Mi([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),sm=Mi([{name:"a_centroid",components:2,type:"Int16"}],4),{members:Nd,size:rg,alignment:ig}=om;var jh={},lm=w,mf=gf;function gf(D,z,q,ht,vt){this.properties={},this.extent=q,this.type=0,this._pbf=D,this._geometry=-1,this._keys=ht,this._values=vt,D.readFields(ll,this,z)}function ll(D,z,q){D==1?z.id=q.readVarint():D==2?xp(q,z):D==3?z.type=q.readVarint():D==4&&(z._geometry=q.pos)}function xp(D,z){for(var q=D.readVarint()+D.pos;D.pos>3}if(ht--,q===1||q===2)vt+=D.readSVarint(),Pt+=D.readSVarint(),q===1&&(oe&&Rt.push(oe),oe=[]),oe.push(new lm(vt,Pt));else if(q===7)oe&&oe.push(oe[0].clone());else throw Error("unknown command "+q)}return oe&&Rt.push(oe),Rt},gf.prototype.bbox=function(){var D=this._pbf;D.pos=this._geometry;for(var z=D.readVarint()+D.pos,q=1,ht=0,vt=0,Pt=0,Rt=1/0,oe=-1/0,Te=1/0,De=-1/0;D.pos>3}if(ht--,q===1||q===2)vt+=D.readSVarint(),Pt+=D.readSVarint(),vtoe&&(oe=vt),PtDe&&(De=Pt);else if(q!==7)throw Error("unknown command "+q)}return[Rt,Te,oe,De]},gf.prototype.toGeoJSON=function(D,z,q){var ht=this.extent*2**q,vt=this.extent*D,Pt=this.extent*z,Rt=this.loadGeometry(),oe=gf.types[this.type],Te,De;function Ve(Rr){for(var Kr=0;Kr>3;z=ht===1?D.readString():ht===2?D.readFloat():ht===3?D.readDouble():ht===4?D.readVarint64():ht===5?D.readVarint():ht===6?D.readSVarint():ht===7?D.readBoolean():null}return z}jd.prototype.feature=function(D){if(D<0||D>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[D];var z=this._pbf.readVarint()+this._pbf.pos;return new Jp(this._pbf,z,this.extent,this._keys,this._values)};var Ch=Kp,cm=hm;function hm(D,z){this.layers=D.readFields(fm,{},z)}function fm(D,z,q){if(D===3){var ht=new Ch(q,q.readVarint()+q.pos);ht.length&&(z[ht.name]=ht)}}jh.VectorTile=cm,jh.VectorTileFeature=mf,jh.VectorTileLayer=Kp;let pm=jh.VectorTileFeature.types,bp=2**13;function Hf(D,z,q,ht,vt,Pt,Rt,oe){D.emplaceBack(z,q,Math.floor(ht*bp)*2+Rt,vt*bp*2,Pt*bp*2,Math.round(oe))}class Qp{constructor(z){this.zoom=z.zoom,this.overscaling=z.overscaling,this.layers=z.layers,this.layerIds=this.layers.map(q=>q.id),this.index=z.index,this.hasPattern=!1,this.layoutVertexArray=new Xa,this.centroidVertexArray=new Aa,this.indexArray=new Po,this.programConfigurations=new Qc(z.layers,z.zoom),this.segments=new Jo,this.stateDependentLayerIds=this.layers.filter(q=>q.isStateDependent()).map(q=>q.id)}populate(z,q,ht){this.features=[],this.hasPattern=vp("fill-extrusion",this.layers,q);for(let{feature:vt,id:Pt,index:Rt,sourceLayerIndex:oe}of z){let Te=this.layers[0]._featureFilter.needGeometry,De=Qh(vt,Te);if(!this.layers[0]._featureFilter.filter(new Vo(this.zoom),De,ht))continue;let Ve={id:Pt,sourceLayerIndex:oe,index:Rt,geometry:Te?De.geometry:mh(vt),properties:vt.properties,type:vt.type,patterns:{}};this.hasPattern?this.features.push(vl("fill-extrusion",this.layers,Ve,this.zoom,q)):this.addFeature(Ve,Ve.geometry,Rt,ht,{}),q.featureIndex.insert(vt,Ve.geometry,Rt,oe,this.index,!0)}}addFeatures(z,q,ht){for(let vt of this.features){let{geometry:Pt}=vt;this.addFeature(vt,Pt,vt.index,q,ht)}}update(z,q,ht){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(z,q,this.stateDependentLayers,ht)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(z){this.uploaded||(this.layoutVertexBuffer=z.createVertexBuffer(this.layoutVertexArray,Nd),this.centroidVertexBuffer=z.createVertexBuffer(this.centroidVertexArray,sm.members,!0),this.indexBuffer=z.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(z),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(z,q,ht,vt,Pt){for(let Rt of lc(q,500)){let oe={x:0,y:0,vertexCount:0},Te=0;for(let Kr of Rt)Te+=Kr.length;let De=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Kr of Rt){if(Kr.length===0||mm(Kr))continue;let ni=0;for(let Bi=0;Bi=1){let ba=Kr[Bi-1];if(!dm(ia,ba)){De.vertexLength+4>Jo.MAX_VERTEX_ARRAY_LENGTH&&(De=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let ka=ia.sub(ba)._perp()._unit(),Ma=ba.dist(ia);ni+Ma>32768&&(ni=0),Hf(this.layoutVertexArray,ia.x,ia.y,ka.x,ka.y,0,0,ni),Hf(this.layoutVertexArray,ia.x,ia.y,ka.x,ka.y,0,1,ni),oe.x+=2*ia.x,oe.y+=2*ia.y,oe.vertexCount+=2,ni+=Ma,Hf(this.layoutVertexArray,ba.x,ba.y,ka.x,ka.y,0,0,ni),Hf(this.layoutVertexArray,ba.x,ba.y,ka.x,ka.y,0,1,ni),oe.x+=2*ba.x,oe.y+=2*ba.y,oe.vertexCount+=2;let qa=De.vertexLength;this.indexArray.emplaceBack(qa,qa+2,qa+1),this.indexArray.emplaceBack(qa+1,qa+2,qa+3),De.vertexLength+=4,De.primitiveLength+=2}}}}if(De.vertexLength+Te>Jo.MAX_VERTEX_ARRAY_LENGTH&&(De=this.segments.prepareSegment(Te,this.layoutVertexArray,this.indexArray)),pm[z.type]!=="Polygon")continue;let Ve=[],Je=[],mr=De.vertexLength;for(let Kr of Rt)if(Kr.length!==0){Kr!==Rt[0]&&Je.push(Ve.length/2);for(let ni=0;nijs)||D.y===z.y&&(D.y<0||D.y>js)}function mm(D){return D.every(z=>z.x<0)||D.every(z=>z.x>js)||D.every(z=>z.y<0)||D.every(z=>z.y>js)}let gm,ym=()=>gm||(gm=new cr({"fill-extrusion-opacity":new Nt(ae["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new le(ae["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Nt(ae["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Nt(ae["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ae(ae["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new le(ae["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new le(ae["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Nt(ae["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}));var vm={get paint(){return ym()}};class xm extends Ur{constructor(z){super(z,vm)}createBucket(z){return new Qp(z)}queryRadius(){return lp(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(z,q,ht,vt,Pt,Rt,oe,Te){let De=uf(z,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Rt.angle,oe),Ve=this.paint.get("fill-extrusion-height").evaluate(q,ht),Je=this.paint.get("fill-extrusion-base").evaluate(q,ht),mr=_m(De,Te,Rt,0),Rr=Vd(vt,Je,Ve,Te),Kr=Rr[0],ni=Rr[1];return yf(Kr,ni,mr)}}function Gf(D,z){return D.x*z.x+D.y*z.y}function Zf(D,z){if(D.length===1){let q=0,ht=z[q++],vt;for(;!vt||ht.equals(vt);)if(vt=z[q++],!vt)return 1/0;for(;qq.id),this.index=z.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(q=>{this.gradients[q.id]={}}),this.layoutVertexArray=new Ka,this.layoutVertexArray2=new Tn,this.indexArray=new Po,this.programConfigurations=new Qc(z.layers,z.zoom),this.segments=new Jo,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(q=>q.isStateDependent()).map(q=>q.id)}populate(z,q,ht){this.hasPattern=vp("line",this.layers,q);let vt=this.layers[0].layout.get("line-sort-key"),Pt=!vt.isConstant(),Rt=[];for(let{feature:oe,id:Te,index:De,sourceLayerIndex:Ve}of z){let Je=this.layers[0]._featureFilter.needGeometry,mr=Qh(oe,Je);if(!this.layers[0]._featureFilter.filter(new Vo(this.zoom),mr,ht))continue;let Rr=Pt?vt.evaluate(mr,{},ht):void 0,Kr={id:Te,properties:oe.properties,type:oe.type,sourceLayerIndex:Ve,index:De,geometry:Je?mr.geometry:mh(oe),patterns:{},sortKey:Rr};Rt.push(Kr)}Pt&&Rt.sort((oe,Te)=>oe.sortKey-Te.sortKey);for(let oe of Rt){let{geometry:Te,index:De,sourceLayerIndex:Ve}=oe;if(this.hasPattern){let mr=vl("line",this.layers,oe,this.zoom,q);this.patternFeatures.push(mr)}else this.addFeature(oe,Te,De,ht,{});let Je=z[De].feature;q.featureIndex.insert(Je,Te,De,Ve,this.index)}}update(z,q,ht){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(z,q,this.stateDependentLayers,ht)}addFeatures(z,q,ht){for(let vt of this.patternFeatures)this.addFeature(vt,vt.geometry,vt.index,q,ht)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(z){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=z.createVertexBuffer(this.layoutVertexArray2,wm)),this.layoutVertexBuffer=z.createVertexBuffer(this.layoutVertexArray,bm),this.indexBuffer=z.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(z),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(z){if(z.properties&&Object.prototype.hasOwnProperty.call(z.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(z.properties,"mapbox_clip_end"))return{start:+z.properties.mapbox_clip_start,end:+z.properties.mapbox_clip_end}}addFeature(z,q,ht,vt,Pt){let Rt=this.layers[0].layout,oe=Rt.get("line-join").evaluate(z,{}),Te=Rt.get("line-cap"),De=Rt.get("line-miter-limit"),Ve=Rt.get("line-round-limit");this.lineClips=this.lineFeatureClips(z);for(let Je of q)this.addLine(Je,z,oe,Te,De,Ve);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,z,ht,Pt,vt)}addLine(z,q,ht,vt,Pt,Rt){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let ia=0;ia=2&&z[Te-1].equals(z[Te-2]);)Te--;let De=0;for(;De0;if(Fn&&ia>De){let Nn=mr.dist(Rr);if(Nn>2*Ve){let jn=mr.sub(mr.sub(Rr)._mult(Ve/Nn)._round());this.updateDistance(Rr,jn),this.addCurrentVertex(jn,ni,0,0,Je),Rr=jn}}let Hn=Rr&&Kr,Ln=Hn?ht:oe?"butt":vt;if(Hn&&Ln==="round"&&(qaPt&&(Ln="bevel"),Ln==="bevel"&&(qa>2&&(Ln="flipbevel"),qa100)ba=Bi.mult(-1);else{let Nn=qa*ni.add(Bi).mag()/ni.sub(Bi).mag();ba._perp()._mult(Nn*(to?-1:1))}this.addCurrentVertex(mr,ba,0,0,Je),this.addCurrentVertex(mr,ba.mult(-1),0,0,Je)}else if(Ln==="bevel"||Ln==="fakeround"){let Nn=-Math.sqrt(qa*qa-1),jn=to?Nn:0,zn=to?0:Nn;if(Rr&&this.addCurrentVertex(mr,ni,jn,zn,Je),Ln==="fakeround"){let Ba=Math.round(xn*180/Math.PI/20);for(let Sn=1;Sn2*Ve){let jn=mr.add(Kr.sub(mr)._mult(Ve/Nn)._round());this.updateDistance(mr,jn),this.addCurrentVertex(jn,Bi,0,0,Je),mr=jn}}}}addCurrentVertex(z,q,ht,vt,Pt,Rt=!1){let oe=q.x+q.y*ht,Te=q.y-q.x*ht,De=-q.x+q.y*vt,Ve=-q.y-q.x*vt;this.addHalfVertex(z,oe,Te,Rt,!1,ht,Pt),this.addHalfVertex(z,De,Ve,Rt,!0,-vt,Pt),this.distance>mu/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(z,q,ht,vt,Pt,Rt))}addHalfVertex({x:z,y:q},ht,vt,Pt,Rt,oe,Te){let De=(this.lineClips?this.scaledDistance*(mu-1):this.scaledDistance)*td;if(this.layoutVertexArray.emplaceBack((z<<1)+(Pt?1:0),(q<<1)+(Rt?1:0),Math.round(63*ht)+128,Math.round(63*vt)+128,(oe===0?0:oe<0?-1:1)+1|(De&63)<<2,De>>6),this.lineClips){let Je=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(Je,this.lineClipsArray.length)}let Ve=Te.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Ve),Te.primitiveLength++),Rt?this.e2=Ve:this.e1=Ve}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(z,q){this.distance+=z.dist(q),this.updateScaledDistance()}}Oa("LineBucket",vf,{omit:["layers","patternFeatures"]});let Wf,Yf=()=>Wf||(Wf=new cr({"line-cap":new Nt(ae.layout_line["line-cap"]),"line-join":new le(ae.layout_line["line-join"]),"line-miter-limit":new Nt(ae.layout_line["line-miter-limit"]),"line-round-limit":new Nt(ae.layout_line["line-round-limit"]),"line-sort-key":new le(ae.layout_line["line-sort-key"])})),Qu,Xf=()=>Qu||(Qu=new cr({"line-opacity":new le(ae.paint_line["line-opacity"]),"line-color":new le(ae.paint_line["line-color"]),"line-translate":new Nt(ae.paint_line["line-translate"]),"line-translate-anchor":new Nt(ae.paint_line["line-translate-anchor"]),"line-width":new le(ae.paint_line["line-width"]),"line-gap-width":new le(ae.paint_line["line-gap-width"]),"line-offset":new le(ae.paint_line["line-offset"]),"line-blur":new le(ae.paint_line["line-blur"]),"line-dasharray":new Ue(ae.paint_line["line-dasharray"]),"line-pattern":new Ae(ae.paint_line["line-pattern"]),"line-gradient":new ir(ae.paint_line["line-gradient"])}));var Gd={get paint(){return Xf()},get layout(){return Yf()}};class Zd extends le{possiblyEvaluate(z,q){return q=new Vo(Math.floor(q.zoom),{now:q.now,fadeDuration:q.fadeDuration,zoomHistory:q.zoomHistory,transition:q.transition}),super.possiblyEvaluate(z,q)}evaluate(z,q,ht,vt){return q=M({},q,{zoom:Math.floor(q.zoom)}),super.evaluate(z,q,ht,vt)}}let $f;class xf extends Ur{constructor(z){super(z,Gd),this.gradientVersion=0,$f||($f=new Zd(Gd.paint.properties["line-width"].specification),$f.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(z){if(z==="line-gradient"){let q=this.gradientExpression();pl(q)?this.stepInterpolant=q._styleExpression.expression instanceof Hl:this.stepInterpolant=!1,this.gradientVersion=(this.gradientVersion+1)%9007199254740991}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(z,q){super.recalculate(z,q),this.paint._values["line-floorwidth"]=$f.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,z)}createBucket(z){return new vf(z)}queryRadius(z){let q=z,ht=xl(If("line-width",this,q),If("line-gap-width",this,q)),vt=If("line-offset",this,q);return ht/2+Math.abs(vt)+lp(this.paint.get("line-translate"))}queryIntersectsFeature(z,q,ht,vt,Pt,Rt,oe){let Te=uf(z,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Rt.angle,oe),De=oe/2*xl(this.paint.get("line-width").evaluate(q,ht),this.paint.get("line-gap-width").evaluate(q,ht)),Ve=this.paint.get("line-offset").evaluate(q,ht);return Ve&&(vt=L0(vt,Ve*oe)),wd(Te,vt,De)}isTileClipped(){return!0}}function xl(D,z){return z>0?z+2*D:D}let km=Mi([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),wp=Mi([{name:"a_projected_pos",components:3,type:"Float32"}],4);Mi([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let gh=Mi([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Mi([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let gu=Mi([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Wd=Mi([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Mi([{name:"triangle",components:3,type:"Uint16"}]),Mi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Mi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Mi([{type:"Float32",name:"offsetX"}]),Mi([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Mi([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);function Am(D,z,q){let ht=z.layout.get("text-transform").evaluate(q,{});return ht==="uppercase"?D=D.toLocaleUpperCase():ht==="lowercase"&&(D=D.toLocaleLowerCase()),$l.applyArabicShaping&&(D=$l.applyArabicShaping(D)),D}function Yd(D,z,q){return D.sections.forEach(ht=>{ht.text=Am(ht.text,z,q)}),D}function Mm(D){let z={},q={},ht=[],vt=0;function Pt(De){ht.push(D[De]),vt++}function Rt(De,Ve,Je){let mr=q[De];return delete q[De],q[Ve]=mr,ht[mr].geometry[0].pop(),ht[mr].geometry[0]=ht[mr].geometry[0].concat(Je[0]),mr}function oe(De,Ve,Je){let mr=z[Ve];return delete z[Ve],z[De]=mr,ht[mr].geometry[0].shift(),ht[mr].geometry[0]=Je[0].concat(ht[mr].geometry[0]),mr}function Te(De,Ve,Je){let mr=Je?Ve[0][Ve[0].length-1]:Ve[0][0];return`${De}:${mr.x}:${mr.y}`}for(let De=0;DeDe.geometry)}let _f={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function Xd(D){let z="";for(let q=0;q>1,Ve=-7,Je=q?vt-1:0,mr=q?-1:1,Rr=D[z+Je];for(Je+=mr,Pt=Rr&(1<<-Ve)-1,Rr>>=-Ve,Ve+=oe;Ve>0;Pt=Pt*256+D[z+Je],Je+=mr,Ve-=8);for(Rt=Pt&(1<<-Ve)-1,Pt>>=-Ve,Ve+=ht;Ve>0;Rt=Rt*256+D[z+Je],Je+=mr,Ve-=8);if(Pt===0)Pt=1-De;else{if(Pt===Te)return Rt?NaN:(Rr?-1:1)*(1/0);Rt+=2**ht,Pt-=De}return(Rr?-1:1)*Rt*2**(Pt-ht)},Jf.write=function(D,z,q,ht,vt,Pt){var Rt,oe,Te,De=Pt*8-vt-1,Ve=(1<>1,mr=vt===23?2**-24-2**-77:0,Rr=ht?0:Pt-1,Kr=ht?1:-1,ni=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(oe=isNaN(z)?1:0,Rt=Ve):(Rt=Math.floor(Math.log(z)/Math.LN2),z*(Te=2**-Rt)<1&&(Rt--,Te*=2),Rt+Je>=1?z+=mr/Te:z+=mr*2**(1-Je),z*Te>=2&&(Rt++,Te/=2),Rt+Je>=Ve?(oe=0,Rt=Ve):Rt+Je>=1?(oe=(z*Te-1)*2**vt,Rt+=Je):(oe=z*2**(Je-1)*2**vt,Rt=0));vt>=8;D[q+Rr]=oe&255,Rr+=Kr,oe/=256,vt-=8);for(Rt=Rt<0;D[q+Rr]=Rt&255,Rr+=Kr,Rt/=256,De-=8);D[q+Rr-Kr]|=ni*128};var $d=Ho,Tp=Jf;function Ho(D){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(D)?D:new Uint8Array(D||0),this.pos=0,this.type=0,this.length=this.buf.length}Ho.Varint=0,Ho.Fixed64=1,Ho.Bytes=2,Ho.Fixed32=5;var ed=65536*65536,rd=1/ed,bf=12,Oc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");Ho.prototype={destroy:function(){this.buf=null},readFields:function(D,z,q){for(q||(q=this.length);this.pos>3,Pt=this.pos;this.type=ht&7,D(vt,z,this),this.pos===Pt&&this.skip(ht)}return z},readMessage:function(D,z){return this.readFields(D,z,this.readVarint()+this.pos)},readFixed32:function(){var D=ef(this.buf,this.pos);return this.pos+=4,D},readSFixed32:function(){var D=n0(this.buf,this.pos);return this.pos+=4,D},readFixed64:function(){var D=ef(this.buf,this.pos)+ef(this.buf,this.pos+4)*ed;return this.pos+=8,D},readSFixed64:function(){var D=ef(this.buf,this.pos)+n0(this.buf,this.pos+4)*ed;return this.pos+=8,D},readFloat:function(){var D=Tp.read(this.buf,this.pos,!0,23,4);return this.pos+=4,D},readDouble:function(){var D=Tp.read(this.buf,this.pos,!0,52,8);return this.pos+=8,D},readVarint:function(D){var z=this.buf,q,ht=z[this.pos++];return q=ht&127,ht<128||(ht=z[this.pos++],q|=(ht&127)<<7,ht<128)||(ht=z[this.pos++],q|=(ht&127)<<14,ht<128)||(ht=z[this.pos++],q|=(ht&127)<<21,ht<128)?q:(ht=z[this.pos],q|=(ht&15)<<28,id(q,D,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var D=this.readVarint();return D%2==1?(D+1)/-2:D/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var D=this.readVarint()+this.pos,z=this.pos;return this.pos=D,D-z>=bf&&Oc?Tf(this.buf,z,D):Ap(this.buf,z,D)},readBytes:function(){var D=this.readVarint()+this.pos,z=this.buf.subarray(this.pos,D);return this.pos=D,z},readPackedVarint:function(D,z){if(this.type!==Ho.Bytes)return D.push(this.readVarint(z));var q=yh(this);for(D||(D=[]);this.pos127;);else if(z===Ho.Bytes)this.pos=this.readVarint()+this.pos;else if(z===Ho.Fixed32)this.pos+=4;else if(z===Ho.Fixed64)this.pos+=8;else throw Error("Unimplemented type: "+z)},writeTag:function(D,z){this.writeVarint(D<<3|z)},realloc:function(D){for(var z=this.length||16;z268435455||D<0){Sm(D,this);return}this.realloc(4),this.buf[this.pos++]=D&127|(D>127?128:0),!(D<=127)&&(this.buf[this.pos++]=(D>>>=7)&127|(D>127?128:0),!(D<=127)&&(this.buf[this.pos++]=(D>>>=7)&127|(D>127?128:0),!(D<=127)&&(this.buf[this.pos++]=D>>>7&127)))},writeSVarint:function(D){this.writeVarint(D<0?-D*2-1:D*2)},writeBoolean:function(D){this.writeVarint(!!D)},writeString:function(D){D=String(D),this.realloc(D.length*4),this.pos++;var z=this.pos;this.pos=Lm(this.buf,D,this.pos);var q=this.pos-z;q>=128&&ad(z,q,this),this.pos=z-1,this.writeVarint(q),this.pos+=q},writeFloat:function(D){this.realloc(4),Tp.write(this.buf,D,this.pos,!0,23,4),this.pos+=4},writeDouble:function(D){this.realloc(8),Tp.write(this.buf,D,this.pos,!0,52,8),this.pos+=8},writeBytes:function(D){var z=D.length;this.writeVarint(z),this.realloc(z);for(var q=0;q=128&&ad(q,ht,this),this.pos=q-1,this.writeVarint(ht),this.pos+=ht},writeMessage:function(D,z,q){this.writeTag(D,Ho.Bytes),this.writeRawMessage(z,q)},writePackedVarint:function(D,z){z.length&&this.writeMessage(D,t0,z)},writePackedSVarint:function(D,z){z.length&&this.writeMessage(D,Em,z)},writePackedBoolean:function(D,z){z.length&&this.writeMessage(D,r0,z)},writePackedFloat:function(D,z){z.length&&this.writeMessage(D,Cm,z)},writePackedDouble:function(D,z){z.length&&this.writeMessage(D,e0,z)},writePackedFixed32:function(D,z){z.length&&this.writeMessage(D,wf,z)},writePackedSFixed32:function(D,z){z.length&&this.writeMessage(D,i0,z)},writePackedFixed64:function(D,z){z.length&&this.writeMessage(D,kp,z)},writePackedSFixed64:function(D,z){z.length&&this.writeMessage(D,a0,z)},writeBytesField:function(D,z){this.writeTag(D,Ho.Bytes),this.writeBytes(z)},writeFixed32Field:function(D,z){this.writeTag(D,Ho.Fixed32),this.writeFixed32(z)},writeSFixed32Field:function(D,z){this.writeTag(D,Ho.Fixed32),this.writeSFixed32(z)},writeFixed64Field:function(D,z){this.writeTag(D,Ho.Fixed64),this.writeFixed64(z)},writeSFixed64Field:function(D,z){this.writeTag(D,Ho.Fixed64),this.writeSFixed64(z)},writeVarintField:function(D,z){this.writeTag(D,Ho.Varint),this.writeVarint(z)},writeSVarintField:function(D,z){this.writeTag(D,Ho.Varint),this.writeSVarint(z)},writeStringField:function(D,z){this.writeTag(D,Ho.Bytes),this.writeString(z)},writeFloatField:function(D,z){this.writeTag(D,Ho.Fixed32),this.writeFloat(z)},writeDoubleField:function(D,z){this.writeTag(D,Ho.Fixed64),this.writeDouble(z)},writeBooleanField:function(D,z){this.writeVarintField(D,!!z)}};function id(D,z,q){var ht=q.buf,vt,Pt=ht[q.pos++];if(vt=(Pt&112)>>4,Pt<128||(Pt=ht[q.pos++],vt|=(Pt&127)<<3,Pt<128)||(Pt=ht[q.pos++],vt|=(Pt&127)<<10,Pt<128)||(Pt=ht[q.pos++],vt|=(Pt&127)<<17,Pt<128)||(Pt=ht[q.pos++],vt|=(Pt&127)<<24,Pt<128)||(Pt=ht[q.pos++],vt|=(Pt&1)<<31,Pt<128))return Jd(D,vt,z);throw Error("Expected varint not more than 10 bytes")}function yh(D){return D.type===Ho.Bytes?D.readVarint()+D.pos:D.pos+1}function Jd(D,z,q){return q?z*4294967296+(D>>>0):(z>>>0)*4294967296+(D>>>0)}function Sm(D,z){var q,ht;if(D>=0?(q=D%4294967296|0,ht=D/4294967296|0):(q=~(-D%4294967296),ht=~(-D/4294967296),q^4294967295?q=q+1|0:(q=0,ht=ht+1|0)),D>=18446744073709552e3||D<-18446744073709552e3)throw Error("Given varint doesn't fit into 10 bytes");z.realloc(10),Kd(q,ht,z),Qd(ht,z)}function Kd(D,z,q){q.buf[q.pos++]=D&127|128,D>>>=7,q.buf[q.pos++]=D&127|128,D>>>=7,q.buf[q.pos++]=D&127|128,D>>>=7,q.buf[q.pos++]=D&127|128,D>>>=7,q.buf[q.pos]=D&127}function Qd(D,z){var q=(D&7)<<4;z.buf[z.pos++]|=q|((D>>>=3)?128:0),D&&(z.buf[z.pos++]=D&127|((D>>>=7)?128:0),D&&(z.buf[z.pos++]=D&127|((D>>>=7)?128:0),D&&(z.buf[z.pos++]=D&127|((D>>>=7)?128:0),D&&(z.buf[z.pos++]=D&127|((D>>>=7)?128:0),D&&(z.buf[z.pos++]=D&127)))))}function ad(D,z,q){var ht=z<=16383?1:z<=2097151?2:z<=268435455?3:Math.floor(Math.log(z)/(Math.LN2*7));q.realloc(ht);for(var vt=q.pos-1;vt>=D;vt--)q.buf[vt+ht]=q.buf[vt]}function t0(D,z){for(var q=0;q>>8,D[q+2]=z>>>16,D[q+3]=z>>>24}function n0(D,z){return(D[z]|D[z+1]<<8|D[z+2]<<16)+(D[z+3]<<24)}function Ap(D,z,q){for(var ht="",vt=z;vt239?4:Pt>223?3:Pt>191?2:1;if(vt+oe>q)break;var Te,De,Ve;oe===1?Pt<128&&(Rt=Pt):oe===2?(Te=D[vt+1],(Te&192)==128&&(Rt=(Pt&31)<<6|Te&63,Rt<=127&&(Rt=null))):oe===3?(Te=D[vt+1],De=D[vt+2],(Te&192)==128&&(De&192)==128&&(Rt=(Pt&15)<<12|(Te&63)<<6|De&63,(Rt<=2047||Rt>=55296&&Rt<=57343)&&(Rt=null))):oe===4&&(Te=D[vt+1],De=D[vt+2],Ve=D[vt+3],(Te&192)==128&&(De&192)==128&&(Ve&192)==128&&(Rt=(Pt&15)<<18|(Te&63)<<12|(De&63)<<6|Ve&63,(Rt<=65535||Rt>=1114112)&&(Rt=null))),Rt===null?(Rt=65533,oe=1):Rt>65535&&(Rt-=65536,ht+=String.fromCharCode(Rt>>>10&1023|55296),Rt=56320|Rt&1023),ht+=String.fromCharCode(Rt),vt+=oe}return ht}function Tf(D,z,q){return Oc.decode(D.subarray(z,q))}function Lm(D,z,q){for(var ht=0,vt,Pt;ht55295&&vt<57344)if(Pt)if(vt<56320){D[q++]=239,D[q++]=191,D[q++]=189,Pt=vt;continue}else vt=Pt-55296<<10|vt-56320|65536,Pt=null;else{vt>56319||ht+1===z.length?(D[q++]=239,D[q++]=191,D[q++]=189):Pt=vt;continue}else Pt&&(Pt=(D[q++]=239,D[q++]=191,D[q++]=189,null));vt<128?D[q++]=vt:(vt<2048?D[q++]=vt>>6|192:(vt<65536?D[q++]=vt>>12|224:(D[q++]=vt>>18|240,D[q++]=vt>>12&63|128),D[q++]=vt>>6&63|128),D[q++]=vt&63|128)}return q}var nd=E($d);function Im(D,z,q){D===1&&q.readMessage(kf,z)}function kf(D,z,q){if(D===3){let{id:ht,bitmap:vt,width:Pt,height:Rt,left:oe,top:Te,advance:De}=q.readMessage(Pm,{});z.push({id:ht,bitmap:new Bf({width:Pt+6,height:Rt+6},vt),metrics:{width:Pt,height:Rt,left:oe,top:Te,advance:De}})}}function Pm(D,z,q){D===1?z.id=q.readVarint():D===2?z.bitmap=q.readBytes():D===3?z.width=q.readVarint():D===4?z.height=q.readVarint():D===5?z.left=q.readSVarint():D===6?z.top=q.readSVarint():D===7&&(z.advance=q.readVarint())}function zm(D){return new nd(D).readFields(Im,[])}function rf(D){let z=0,q=0;for(let Rt of D)z+=Rt.w*Rt.h,q=Math.max(q,Rt.w);D.sort((Rt,oe)=>oe.h-Rt.h);let ht=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(z/.95)),q),h:1/0}],vt=0,Pt=0;for(let Rt of D)for(let oe=ht.length-1;oe>=0;oe--){let Te=ht[oe];if(!(Rt.w>Te.w||Rt.h>Te.h)){if(Rt.x=Te.x,Rt.y=Te.y,Pt=Math.max(Pt,Rt.y+Rt.h),vt=Math.max(vt,Rt.x+Rt.w),Rt.w===Te.w&&Rt.h===Te.h){let De=ht.pop();oe=0&&ht>=z&&Sp[this.text.charCodeAt(ht)];ht--)q--;this.text=this.text.substring(z,q),this.sectionIndex=this.sectionIndex.slice(z,q)}substring(z,q){let ht=new bc;return ht.text=this.text.substring(z,q),ht.sectionIndex=this.sectionIndex.slice(z,q),ht.sections=this.sections,ht}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((z,q)=>Math.max(z,this.sections[q].scale),0)}addTextSection(z,q){this.text+=z.text,this.sections.push(Ih.forText(z.scale,z.fontStack||q));let ht=this.sections.length-1;for(let vt=0;vt=o0?null:++this.imageSectionID:(this.imageSectionID=Mp,this.imageSectionID)}}function s0(D,z){let q=[],ht=D.text,vt=0;for(let Pt of z)q.push(D.substring(vt,Pt)),vt=Pt;return vt=0,De=0;for(let Ve=0;Ve0&&Oh>Ln&&(Ln=Oh)}else{let Ru=q[zn.fontStack],tc=Ru&&Ru[Sn];if(tc&&tc.rect)Ko=tc.rect,eo=tc.metrics;else{let Oh=z[zn.fontStack],Op=Oh&&Oh[Sn];if(!Op)continue;eo=Op.metrics}fo=(xn-zn.scale)*zs}Du?(D.verticalizable=!0,Hn.push({glyph:Sn,imageName:Us,x:mr,y:Rr+fo,vertical:Du,scale:zn.scale,fontStack:zn.fontStack,sectionIndex:Ba,metrics:eo,rect:Ko}),mr+=kl*zn.scale+De):(Hn.push({glyph:Sn,imageName:Us,x:mr,y:Rr+fo,vertical:Du,scale:zn.scale,fontStack:zn.fontStack,sectionIndex:Ba,metrics:eo,rect:Ko}),mr+=eo.advance*zn.scale+De)}if(Hn.length!==0){let jn=mr-De;Kr=Math.max(jn,Kr),ld(Hn,0,Hn.length-1,Bi,Ln)}mr=0;let Nn=Pt*xn+Ln;to.lineOffset=Math.max(Ln,Fn),Rr+=Nn,ni=Math.max(Nn,ni),++ia}let ba=Rr- -17,{horizontalAlign:ka,verticalAlign:Ma}=sd(Rt);Mf(D.positionedLines,Bi,ka,Ma,Kr,ni,Pt,ba,vt.length),D.top+=-Ma*ba,D.bottom=D.top+ba,D.left+=-ka*Kr,D.right=D.left+Kr}function ld(D,z,q,ht,vt){if(!ht&&!vt)return;let Pt=D[q],Rt=Pt.metrics.advance*Pt.scale,oe=(D[q].x+Rt)*ht;for(let Te=z;Te<=q;Te++)D[Te].x-=oe,D[Te].y+=vt}function Mf(D,z,q,ht,vt,Pt,Rt,oe,Te){let De=(z-q)*vt,Ve=0;Ve=Pt===Rt?(-ht*Te+.5)*Rt:-oe*ht- -17;for(let Je of D)for(let mr of Je.positionedGlyphs)mr.x+=De,mr.y+=Ve}function Nm(D,z,q){let{horizontalAlign:ht,verticalAlign:vt}=sd(q),Pt=z[0],Rt=z[1],oe=Pt-D.displaySize[0]*ht,Te=oe+D.displaySize[0],De=Rt-D.displaySize[1]*vt;return{image:D,top:De,bottom:De+D.displaySize[1],left:oe,right:Te}}function u0(D){let z=D.left,q=D.top,ht=D.right-z,vt=D.bottom-q,Pt=D.image.content[2]-D.image.content[0],Rt=D.image.content[3]-D.image.content[1],oe=D.image.textFitWidth??"stretchOrShrink",Te=D.image.textFitHeight??"stretchOrShrink",De=Pt/Rt;if(Te==="proportional"){if(oe==="stretchOnly"&&ht/vtDe){let Ve=Math.ceil(ht/De);q*=Ve/vt,vt=Ve}return{x1:z,y1:q,x2:z+ht,y2:q+vt}}function c0(D,z,q,ht,vt,Pt){let Rt=D.image,oe;if(Rt.content){let Bi=Rt.content,ia=Rt.pixelRatio||1;oe=[Bi[0]/ia,Bi[1]/ia,Rt.displaySize[0]-Bi[2]/ia,Rt.displaySize[1]-Bi[3]/ia]}let Te=z.left*Pt,De=z.right*Pt,Ve,Je,mr,Rr;q==="width"||q==="both"?(Rr=vt[0]+Te-ht[3],Je=vt[0]+De+ht[1]):(Rr=vt[0]+(Te+De-Rt.displaySize[0])/2,Je=Rr+Rt.displaySize[0]);let Kr=z.top*Pt,ni=z.bottom*Pt;return q==="height"||q==="both"?(Ve=vt[1]+Kr-ht[0],mr=vt[1]+ni+ht[2]):(Ve=vt[1]+(Kr+ni-Rt.displaySize[1])/2,mr=Ve+Rt.displaySize[1]),{image:Rt,top:Ve,right:Je,bottom:mr,left:Rr,collisionPadding:oe}}let Uh=32640;function h0(D,z){let{expression:q}=z;if(q.kind==="constant")return{kind:"constant",layoutSize:q.evaluate(new Vo(D+1))};if(q.kind==="source")return{kind:"source"};{let{zoomStops:ht,interpolationType:vt}=q,Pt=0;for(;PtRt.id),this.index=z.index,this.pixelRatio=z.pixelRatio,this.sourceLayerIndex=z.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=jp([]),this.placementViewportMatrix=jp([]);let q=this.layers[0]._unevaluatedLayout._values;this.textSizeData=h0(this.zoom,q["text-size"]),this.iconSizeData=h0(this.zoom,q["icon-size"]);let ht=this.layers[0].layout,vt=ht.get("symbol-sort-key"),Pt=ht.get("symbol-z-order");this.canOverlap=ud(ht,"text-overlap","text-allow-overlap")!=="never"||ud(ht,"icon-overlap","icon-allow-overlap")!=="never"||ht.get("text-ignore-placement")||ht.get("icon-ignore-placement"),this.sortFeaturesByKey=Pt!=="viewport-y"&&!vt.isConstant(),this.sortFeaturesByY=(Pt==="viewport-y"||Pt==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,ht.get("symbol-placement")==="point"&&(this.writingModes=ht.get("text-writing-mode").map(Rt=>A.ai[Rt])),this.stateDependentLayerIds=this.layers.filter(Rt=>Rt.isStateDependent()).map(Rt=>Rt.id),this.sourceID=z.sourceID}createArrays(){this.text=new Sf(new Qc(this.layers,this.zoom,z=>/^text/.test(z))),this.icon=new Sf(new Qc(this.layers,this.zoom,z=>/^icon/.test(z))),this.glyphOffsetArray=new yi,this.lineVertexArray=new Pi,this.symbolInstances=new vi,this.textAnchorOffsets=new Ta}calculateGlyphDependencies(z,q,ht,vt,Pt){for(let Rt=0;Rt0)&&(Rt.value.kind!=="constant"||Rt.value.value.length>0),Ve=Te.value.kind!=="constant"||!!Te.value.value||Object.keys(Te.parameters).length>0,Je=Pt.get("symbol-sort-key");if(this.features=[],!De&&!Ve)return;let mr=q.iconDependencies,Rr=q.glyphDependencies,Kr=q.availableImages,ni=new Vo(this.zoom);for(let{feature:Bi,id:ia,index:ba,sourceLayerIndex:ka}of z){let Ma=vt._featureFilter.needGeometry,qa=Qh(Bi,Ma);if(!vt._featureFilter.filter(ni,qa,ht))continue;Ma||(qa.geometry=mh(Bi));let xn;if(De){let Ln=vt.getValueAndResolveTokens("text-field",qa,ht,Kr),Nn=Qo.factory(Ln),jn=this.hasRTLText=this.hasRTLText||p0(Nn);(!jn||$l.getRTLTextPluginStatus()==="unavailable"||jn&&$l.isParsed())&&(xn=Yd(Nn,vt,qa))}let Fn;if(Ve){let Ln=vt.getValueAndResolveTokens("icon-image",qa,ht,Kr);Fn=Ln instanceof xo?Ln:xo.fromString(Ln)}if(!xn&&!Fn)continue;let to=this.sortFeaturesByKey?Je.evaluate(qa,{},ht):void 0,Hn={id:ia,text:xn,icon:Fn,index:ba,sourceLayerIndex:ka,geometry:qa.geometry,properties:Bi.properties,type:Vm[Bi.type],sortKey:to};if(this.features.push(Hn),Fn&&(mr[Fn.name]=!0),xn){let Ln=Rt.evaluate(qa,{},ht).join(","),Nn=Pt.get("text-rotation-alignment")!=="viewport"&&Pt.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(A.ai.vertical)>=0;for(let jn of xn.sections)if(jn.image)mr[jn.image.name]=!0;else{let zn=Yo(xn.toString()),Ba=jn.fontStack||Ln,Sn=Rr[Ba]=Rr[Ba]||{};this.calculateGlyphDependencies(jn.text,Sn,Nn,this.allowVerticalPlacement,zn)}}}Pt.get("symbol-placement")==="line"&&(this.features=Mm(this.features)),this.sortFeaturesByKey&&this.features.sort((Bi,ia)=>Bi.sortKey-ia.sortKey)}update(z,q,ht){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(z,q,this.layers,ht),this.icon.programConfigurations.updatePaintArrays(z,q,this.layers,ht))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(z){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(z),this.iconCollisionBox.upload(z)),this.text.upload(z,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(z,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(z,q){let ht=this.lineVertexArray.length;if(z.segment!==void 0){let vt=z.dist(q[z.segment+1]),Pt=z.dist(q[z.segment]),Rt={};for(let oe=z.segment+1;oe=0;oe--)Rt[oe]={x:q[oe].x,y:q[oe].y,tileUnitDistanceFromAnchor:Pt},oe>0&&(Pt+=q[oe-1].dist(q[oe]));for(let oe=0;oe0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(z,q){let ht=z.placedSymbolArray.get(q),vt=ht.vertexStartIndex+ht.numGlyphs*4;for(let Pt=ht.vertexStartIndex;Ptvt[oe]-vt[Te]||Pt[Te]-Pt[oe]),Rt}addToSortKeyRanges(z,q){let ht=this.sortKeyRanges[this.sortKeyRanges.length-1];ht&&ht.sortKey===q?ht.symbolInstanceEnd=z+1:this.sortKeyRanges.push({sortKey:q,symbolInstanceStart:z,symbolInstanceEnd:z+1})}sortFeatures(z){if(this.sortFeaturesByY&&this.sortedAngle!==z&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(z),this.sortedAngle=z,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let q of this.symbolInstanceIndexes){let ht=this.symbolInstances.get(q);this.featureSortOrder.push(ht.featureIndex),[ht.rightJustifiedTextSymbolIndex,ht.centerJustifiedTextSymbolIndex,ht.leftJustifiedTextSymbolIndex].forEach((vt,Pt,Rt)=>{vt>=0&&Rt.indexOf(vt)===Pt&&this.addIndicesForPlacedSymbol(this.text,vt)}),ht.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,ht.verticalPlacedTextSymbolIndex),ht.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ht.placedIconSymbolIndex),ht.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ht.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Oa("SymbolBucket",Vh,{omit:["layers","collisionBoxArray","features","compareText"]}),Vh.MAX_GLYPHS=65535,Vh.addDynamicAttributes=Lp;function Ef(D,z){return z.replace(/{([^{}]+)}/g,(q,ht)=>D&&ht in D?String(D[ht]):"")}let qm,d0=()=>qm||(qm=new cr({"symbol-placement":new Nt(ae.layout_symbol["symbol-placement"]),"symbol-spacing":new Nt(ae.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Nt(ae.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new le(ae.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Nt(ae.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Nt(ae.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Nt(ae.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Nt(ae.layout_symbol["icon-ignore-placement"]),"icon-optional":new Nt(ae.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Nt(ae.layout_symbol["icon-rotation-alignment"]),"icon-size":new le(ae.layout_symbol["icon-size"]),"icon-text-fit":new Nt(ae.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Nt(ae.layout_symbol["icon-text-fit-padding"]),"icon-image":new le(ae.layout_symbol["icon-image"]),"icon-rotate":new le(ae.layout_symbol["icon-rotate"]),"icon-padding":new le(ae.layout_symbol["icon-padding"]),"icon-keep-upright":new Nt(ae.layout_symbol["icon-keep-upright"]),"icon-offset":new le(ae.layout_symbol["icon-offset"]),"icon-anchor":new le(ae.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Nt(ae.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Nt(ae.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Nt(ae.layout_symbol["text-rotation-alignment"]),"text-field":new le(ae.layout_symbol["text-field"]),"text-font":new le(ae.layout_symbol["text-font"]),"text-size":new le(ae.layout_symbol["text-size"]),"text-max-width":new le(ae.layout_symbol["text-max-width"]),"text-line-height":new Nt(ae.layout_symbol["text-line-height"]),"text-letter-spacing":new le(ae.layout_symbol["text-letter-spacing"]),"text-justify":new le(ae.layout_symbol["text-justify"]),"text-radial-offset":new le(ae.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Nt(ae.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new le(ae.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new le(ae.layout_symbol["text-anchor"]),"text-max-angle":new Nt(ae.layout_symbol["text-max-angle"]),"text-writing-mode":new Nt(ae.layout_symbol["text-writing-mode"]),"text-rotate":new le(ae.layout_symbol["text-rotate"]),"text-padding":new Nt(ae.layout_symbol["text-padding"]),"text-keep-upright":new Nt(ae.layout_symbol["text-keep-upright"]),"text-transform":new le(ae.layout_symbol["text-transform"]),"text-offset":new le(ae.layout_symbol["text-offset"]),"text-allow-overlap":new Nt(ae.layout_symbol["text-allow-overlap"]),"text-overlap":new Nt(ae.layout_symbol["text-overlap"]),"text-ignore-placement":new Nt(ae.layout_symbol["text-ignore-placement"]),"text-optional":new Nt(ae.layout_symbol["text-optional"])})),Os,m0=()=>Os||(Os=new cr({"icon-opacity":new le(ae.paint_symbol["icon-opacity"]),"icon-color":new le(ae.paint_symbol["icon-color"]),"icon-halo-color":new le(ae.paint_symbol["icon-halo-color"]),"icon-halo-width":new le(ae.paint_symbol["icon-halo-width"]),"icon-halo-blur":new le(ae.paint_symbol["icon-halo-blur"]),"icon-translate":new Nt(ae.paint_symbol["icon-translate"]),"icon-translate-anchor":new Nt(ae.paint_symbol["icon-translate-anchor"]),"text-opacity":new le(ae.paint_symbol["text-opacity"]),"text-color":new le(ae.paint_symbol["text-color"],{runtimeType:ma,getOverride:D=>D.textColor,hasOverride:D=>!!D.textColor}),"text-halo-color":new le(ae.paint_symbol["text-halo-color"]),"text-halo-width":new le(ae.paint_symbol["text-halo-width"]),"text-halo-blur":new le(ae.paint_symbol["text-halo-blur"]),"text-translate":new Nt(ae.paint_symbol["text-translate"]),"text-translate-anchor":new Nt(ae.paint_symbol["text-translate-anchor"])}));var Go={get paint(){return m0()},get layout(){return d0()}};class cd{constructor(z){if(z.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=z.property.overrides?z.property.overrides.runtimeType:Ni,this.defaultValue=z}evaluate(z){if(z.formattedSection){let q=this.defaultValue.property.overrides;if(q&&q.hasOverride(z.formattedSection))return q.getOverride(z.formattedSection)}return z.feature&&z.featureState?this.defaultValue.evaluate(z.feature,z.featureState):this.defaultValue.property.specification.default}eachChild(z){if(!this.defaultValue.isConstant()){let q=this.defaultValue.value;z(q._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}}Oa("FormatSectionOverride",cd,{omit:["defaultValue"]});class ep extends Ur{constructor(z){super(z,Go)}recalculate(z,q){if(super.recalculate(z,q),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["icon-rotation-alignment"]="viewport":this.layout._values["icon-rotation-alignment"]="map"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let ht=this.layout.get("text-writing-mode");if(ht){let vt=[];for(let Pt of ht)vt.indexOf(Pt)<0&&vt.push(Pt);this.layout._values["text-writing-mode"]=vt}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(z,q,ht,vt){let Pt=this.layout.get(z).evaluate(q,{},ht,vt),Rt=this._unevaluatedLayout._values[z];return!Rt.isDataDriven()&&!Xs(Rt.value)&&Pt?Ef(q.properties,Pt):Pt}createBucket(z){return new Vh(z)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let z of Go.paint.overridableProperties){if(!ep.hasPaintOverride(this.layout,z))continue;let q=this.paint.get(z),ht=new es(new cd(q),q.property.specification),vt=null;vt=q.value.kind==="constant"||q.value.kind==="source"?new $u("source",ht):new vc("composite",ht,q.value.zoomStops),this.paint._values[z]=new dt(q.property,vt,q.parameters)}}_handleOverridablePaintPropertyUpdate(z,q,ht){return!this.layout||q.isDataDriven()||ht.isDataDriven()?!1:ep.hasPaintOverride(this.layout,z)}static hasPaintOverride(z,q){let ht=z.get("text-field"),vt=Go.paint.properties[q],Pt=!1,Rt=oe=>{for(let Te of oe)if(vt.overrides&&vt.overrides.hasOverride(Te)){Pt=!0;return}};if(ht.value.kind==="constant"&&ht.value.value instanceof Qo)Rt(ht.value.value.sections);else if(ht.value.kind==="source"){let oe=De=>{if(!Pt)if(De instanceof As&&Oo(De.value)===Fa){let Ve=De.value;Rt(Ve.sections)}else De instanceof ws?Rt(De.sections):De.eachChild(oe)},Te=ht.value;Te._styleExpression&&oe(Te._styleExpression.expression)}return Pt}}function g0(D,z,q,ht=1){let vt=D.get("icon-padding").evaluate(z,{},q),Pt=vt&&vt.values;return[Pt[0]*ht,Pt[1]*ht,Pt[2]*ht,Pt[3]*ht]}let y0,v0=()=>y0||(y0=new cr({"background-color":new Nt(ae.paint_background["background-color"]),"background-pattern":new Ue(ae.paint_background["background-pattern"]),"background-opacity":new Nt(ae.paint_background["background-opacity"])}));var Hm={get paint(){return v0()}};class hd extends Ur{constructor(z){super(z,Hm)}}let Gm,Zm=()=>Gm||(Gm=new cr({"raster-opacity":new Nt(ae.paint_raster["raster-opacity"]),"raster-hue-rotate":new Nt(ae.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Nt(ae.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Nt(ae.paint_raster["raster-brightness-max"]),"raster-saturation":new Nt(ae.paint_raster["raster-saturation"]),"raster-contrast":new Nt(ae.paint_raster["raster-contrast"]),"raster-resampling":new Nt(ae.paint_raster["raster-resampling"]),"raster-fade-duration":new Nt(ae.paint_raster["raster-fade-duration"])}));var nf={get paint(){return Zm()}};class of extends Ur{constructor(z){super(z,nf)}}function x0(D){let z=[],q=D.id;return q===void 0&&z.push({message:`layers.${q}: missing required property "id"`}),D.render===void 0&&z.push({message:`layers.${q}: missing required method "render"`}),D.renderingMode&&D.renderingMode!=="2d"&&D.renderingMode!=="3d"&&z.push({message:`layers.${q}: property "renderingMode" must be either "2d" or "3d"`}),z}class Ds extends Ur{constructor(z){super(z,{}),this.onAdd=q=>{this.implementation.onAdd&&this.implementation.onAdd(q,q.painter.context.gl)},this.onRemove=q=>{this.implementation.onRemove&&this.implementation.onRemove(q,q.painter.context.gl)},this.implementation=z}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}}function rp(D){if(D.type==="custom")return new Ds(D);switch(D.type){case"background":return new hd(D);case"circle":return new Vp(D);case"fill":return new nm(D);case"fill-extrusion":return new xm(D);case"heatmap":return new H0(D);case"hillshade":return new ff(D);case"line":return new xf(D);case"raster":return new of(D);case"symbol":return new ep(D)}}class Wm{constructor(z){this._methodToThrottle=z,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}class zh{constructor(z,q){this.target=z,this.mapId=q,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new Wm(()=>this.process()),this.subscription=lt(this.target,"message",ht=>this.receive(ht),!1),this.globalScope=Y(self)?z:window}registerMessageHandler(z,q){this.messageHandlers[z]=q}sendAsync(z,q){return new Promise((ht,vt)=>{let Pt=Math.round(Math.random()*1e18).toString(36).substring(0,10);this.resolveRejects[Pt]={resolve:ht,reject:vt},q&&q.signal.addEventListener("abort",()=>{delete this.resolveRejects[Pt];let Te={id:Pt,type:"",origin:location.origin,targetMapId:z.targetMapId,sourceMapId:this.mapId};this.target.postMessage(Te)},{once:!0});let Rt=[],oe=Object.assign(Object.assign({},z),{id:Pt,sourceMapId:this.mapId,origin:location.origin,data:an(z.data,Rt)});this.target.postMessage(oe,{transfer:Rt})})}receive(z){let q=z.data,ht=q.id;if(!(q.origin!=="file://"&&location.origin!=="file://"&&q.origin!=="resource://android"&&location.origin!=="resource://android"&&q.origin!==location.origin)&&!(q.targetMapId&&this.mapId!==q.targetMapId)){if(q.type===""){delete this.tasks[ht];let vt=this.abortControllers[ht];delete this.abortControllers[ht],vt&&vt.abort();return}if(Y(self)||q.mustQueue){this.tasks[ht]=q,this.taskQueue.push(ht),this.invoker.trigger();return}this.processTask(ht,q)}}process(){if(this.taskQueue.length===0)return;let z=this.taskQueue.shift(),q=this.tasks[z];delete this.tasks[z],this.taskQueue.length>0&&this.invoker.trigger(),q&&this.processTask(z,q)}processTask(z,q){return t(this,void 0,void 0,function*(){if(q.type===""){let Pt=this.resolveRejects[z];if(delete this.resolveRejects[z],!Pt)return;q.error?Pt.reject(pn(q.error)):Pt.resolve(pn(q.data));return}if(!this.messageHandlers[q.type]){this.completeTask(z,Error(`Could not find a registered handler for ${q.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));return}let ht=pn(q.data),vt=new AbortController;this.abortControllers[z]=vt;try{let Pt=yield this.messageHandlers[q.type](q.sourceMapId,ht,vt);this.completeTask(z,null,Pt)}catch(Pt){this.completeTask(z,Pt)}})}completeTask(z,q,ht){let vt=[];delete this.abortControllers[z];let Pt={id:z,type:"",sourceMapId:this.mapId,origin:location.origin,error:q?an(q):null,data:an(ht,vt)};this.target.postMessage(Pt,{transfer:vt})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}}let fd=63710088e-1;class eh{constructor(z,q){if(isNaN(z)||isNaN(q))throw Error(`Invalid LngLat object: (${z}, ${q})`);if(this.lng=+z,this.lat=+q,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new eh(d(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(z){let q=Math.PI/180,ht=this.lat*q,vt=z.lat*q,Pt=Math.sin(ht)*Math.sin(vt)+Math.cos(ht)*Math.cos(vt)*Math.cos((z.lng-this.lng)*q);return fd*Math.acos(Math.min(Pt,1))}static convert(z){if(z instanceof eh)return z;if(Array.isArray(z)&&(z.length===2||z.length===3))return new eh(Number(z[0]),Number(z[1]));if(!Array.isArray(z)&&typeof z=="object"&&z)return new eh(Number("lng"in z?z.lng:z.lon),Number(z.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let ip=2*Math.PI*fd;function Ip(D){return ip*Math.cos(D*Math.PI/180)}function sf(D){return(180+D)/360}function vh(D){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+D*Math.PI/360)))/360}function pd(D,z){return D/Ip(z)}function _0(D){return D*360-180}function dd(D){let z=180-D*360;return 360/Math.PI*Math.atan(Math.exp(z*Math.PI/180))-90}function Ym(D,z){return D*Ip(dd(z))}function Qs(D){return 1/Math.cos(D*Math.PI/180)}class Pp{constructor(z,q,ht=0){this.x=+z,this.y=+q,this.z=+ht}static fromLngLat(z,q=0){let ht=eh.convert(z);return new Pp(sf(ht.lng),vh(ht.lat),pd(q,ht.lat))}toLngLat(){return new eh(_0(this.x),dd(this.y))}toAltitude(){return Ym(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/ip*Qs(dd(this.y))}}function qh(D,z,q){z=2**q-z-1;var ht=md(D*256,z*256,q),vt=md((D+1)*256,(z+1)*256,q);return ht[0]+","+ht[1]+","+vt[0]+","+vt[1]}function md(D,z,q){var ht=2*Math.PI*6378137/256/2**q;return[D*ht-2*Math.PI*6378137/2,z*ht-2*Math.PI*6378137/2]}class y{constructor(z,q,ht){if(z<0||z>25||ht<0||ht>=2**z||q<0||q>=2**z)throw Error(`x=${q}, y=${ht}, z=${z} outside of bounds. 0<=x<${2**z}, 0<=y<${2**z} 0<=z<=25 `);this.z=z,this.x=q,this.y=ht,this.key=pt(0,z,z,q,ht)}equals(z){return this.z===z.z&&this.x===z.x&&this.y===z.y}url(z,q,ht){let vt=qh(this.x,this.y,this.z),Pt=wt(this.z,this.x,this.y);return z[(this.x+this.y)%z.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(ht==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,q>1?"@2x":"").replace(/{quadkey}/g,Pt).replace(/{bbox-epsg-3857}/g,vt)}isChildOf(z){let q=this.z-z.z;return q>0&&z.x===this.x>>q&&z.y===this.y>>q}getTilePoint(z){let q=2**this.z;return new c((z.x*q-this.x)*js,(z.y*q-this.y)*js)}toString(){return`${this.z}/${this.x}/${this.y}`}}class R{constructor(z,q){this.wrap=z,this.canonical=q,this.key=pt(z,q.z,q.z,q.x,q.y)}}class H{constructor(z,q,ht,vt,Pt){if(z= z; overscaledZ = ${z}; z = ${ht}`);this.overscaledZ=z,this.wrap=q,this.canonical=new y(ht,+vt,+Pt),this.key=pt(q,z,ht,vt,Pt)}clone(){return new H(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(z){return this.overscaledZ===z.overscaledZ&&this.wrap===z.wrap&&this.canonical.equals(z.canonical)}scaledTo(z){if(z>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${z}; overscaledZ = ${this.overscaledZ}`);let q=this.canonical.z-z;return z>this.canonical.z?new H(z,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new H(z,this.wrap,z,this.canonical.x>>q,this.canonical.y>>q)}calculateScaledKey(z,q){if(z>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${z}; overscaledZ = ${this.overscaledZ}`);let ht=this.canonical.z-z;return z>this.canonical.z?pt(this.wrap*+q,z,this.canonical.z,this.canonical.x,this.canonical.y):pt(this.wrap*+q,z,z,this.canonical.x>>ht,this.canonical.y>>ht)}isChildOf(z){if(z.wrap!==this.wrap)return!1;let q=this.canonical.z-z.canonical.z;return z.overscaledZ===0||z.overscaledZ>q&&z.canonical.y===this.canonical.y>>q}children(z){if(this.overscaledZ>=z)return[new H(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let q=this.canonical.z+1,ht=this.canonical.x*2,vt=this.canonical.y*2;return[new H(q,this.wrap,q,ht,vt),new H(q,this.wrap,q,ht+1,vt),new H(q,this.wrap,q,ht,vt+1),new H(q,this.wrap,q,ht+1,vt+1)]}isLessThan(z){return this.wrapz.wrap?!1:this.overscaledZz.overscaledZ?!1:this.canonical.xz.canonical.x?!1:this.canonical.y0;Pt--)vt=1<this.max&&(this.max=Je),Je=this.dim+1||q<-1||q>=this.dim+1)throw RangeError("out of range source coordinates for DEM data");return(q+1)*this.stride+(z+1)}unpack(z,q,ht){return z*this.redFactor+q*this.greenFactor+ht*this.blueFactor-this.baseShift}getPixels(){return new Ps({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(z,q,ht){if(this.dim!==z.dim)throw Error("dem dimension mismatch");let vt=q*this.dim,Pt=q*this.dim+this.dim,Rt=ht*this.dim,oe=ht*this.dim+this.dim;switch(q){case-1:vt=Pt-1;break;case 1:Pt=vt+1;break}switch(ht){case-1:Rt=oe-1;break;case 1:oe=Rt+1;break}let Te=-q*this.dim,De=-ht*this.dim;for(let Ve=Rt;Ve=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${z} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[z]}}class fe{constructor(z,q,ht,vt,Pt){this.type="Feature",this._vectorTileFeature=z,z._z=q,z._x=ht,z._y=vt,this.properties=z.properties,this.id=Pt}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(z){this._geometry=z}toJSON(){let z={geometry:this.geometry};for(let q in this)q==="_geometry"||q==="_vectorTileFeature"||(z[q]=this[q]);return z}}class Re{constructor(z,q){this.tileID=z,this.x=z.canonical.x,this.y=z.canonical.y,this.z=z.canonical.z,this.grid=new Pn(js,16,0),this.grid3D=new Pn(js,16,0),this.featureIndexArray=new da,this.promoteId=q}insert(z,q,ht,vt,Pt,Rt){let oe=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(ht,vt,Pt);let Te=Rt?this.grid3D:this.grid;for(let De=0;De=0&&Je[3]>=0&&Te.insert(oe,Je[0],Je[1],Je[2],Je[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new jh.VectorTile(new nd(this.rawTileData)).layers,this.sourceLayerCoder=new Yt(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(z,q,ht,vt){this.loadVTLayers();let Pt=z.params||{},Rt=js/z.tileSize/z.scale,oe=ze(Pt.filter),Te=z.queryGeometry,De=z.queryPadding*Rt,Ve=er(Te),Je=this.grid.query(Ve.minX-De,Ve.minY-De,Ve.maxX+De,Ve.maxY+De),mr=er(z.cameraQueryGeometry),Rr=this.grid3D.query(mr.minX-De,mr.minY-De,mr.maxX+De,mr.maxY+De,(Bi,ia,ba,ka)=>E0(z.cameraQueryGeometry,Bi-De,ia-De,ba+De,ka+De));for(let Bi of Rr)Je.push(Bi);Je.sort(dr);let Kr={},ni;for(let Bi=0;Bi(ka||(ka=mh(Ma)),qa.queryIntersectsFeature(Te,Ma,xn,ka,this.z,z.transform,Rt,z.pixelPosMatrix)))}return Kr}loadMatchingFeature(z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je){let mr=this.bucketLayerIDs[q];if(Rt&&!j(Rt,mr))return;let Rr=this.sourceLayerCoder.decode(ht),Kr=this.vtLayers[Rr].feature(vt);if(Pt.needGeometry){let Bi=Qh(Kr,!0);if(!Pt.filter(new Vo(this.tileID.overscaledZ),Bi,this.tileID.canonical))return}else if(!Pt.filter(new Vo(this.tileID.overscaledZ),Kr))return;let ni=this.getId(Kr,Rr);for(let Bi=0;Bi{let oe=z instanceof xt?z.get(Rt):null;return oe&&oe.evaluate?oe.evaluate(q,ht,vt):oe})}function er(D){let z=1/0,q=1/0,ht=-1/0,vt=-1/0;for(let Pt of D)z=Math.min(z,Pt.x),q=Math.min(q,Pt.y),ht=Math.max(ht,Pt.x),vt=Math.max(vt,Pt.y);return{minX:z,minY:q,maxX:ht,maxY:vt}}function dr(D,z){return z-D}function Er(D,z,q,ht,vt){let Pt=[];for(let Rt=0;Rt=ht&&Je.x>=ht)&&(Ve.x>=ht?Ve=new c(ht,Ve.y+(Je.y-Ve.y)*((ht-Ve.x)/(Je.x-Ve.x)))._round():Je.x>=ht&&(Je=new c(ht,Ve.y+(Je.y-Ve.y)*((ht-Ve.x)/(Je.x-Ve.x)))._round()),!(Ve.y>=vt&&Je.y>=vt)&&(Ve.y>=vt?Ve=new c(Ve.x+(Je.x-Ve.x)*((vt-Ve.y)/(Je.y-Ve.y)),vt)._round():Je.y>=vt&&(Je=new c(Ve.x+(Je.x-Ve.x)*((vt-Ve.y)/(Je.y-Ve.y)),vt)._round()),(!Te||!Ve.equals(Te[Te.length-1]))&&(Te=[Ve],Pt.push(Te)),Te.push(Je)))))}}return Pt}class Ir extends c{constructor(z,q,ht,vt){super(z,q),this.angle=ht,vt!==void 0&&(this.segment=vt)}clone(){return new Ir(this.x,this.y,this.angle,this.segment)}}Oa("Anchor",Ir);function ui(D,z,q,ht,vt){if(z.segment===void 0||q===0)return!0;let Pt=z,Rt=z.segment+1,oe=0;for(;oe>-q/2;){if(Rt--,Rt<0)return!1;oe-=D[Rt].dist(Pt),Pt=D[Rt]}oe+=D[Rt].dist(D[Rt+1]),Rt++;let Te=[],De=0;for(;oeht;)De-=Te.shift().angleDelta;if(De>vt)return!1;Rt++,oe+=Je.dist(mr)}return!0}function hi(D){let z=0;for(let q=0;qDe){let Kr=(De-Te)/Rr,ni=new Ir(ls.number(Je.x,mr.x,Kr),ls.number(Je.y,mr.y,Kr),mr.angleTo(Je),Ve);return ni._round(),!Rt||ui(D,ni,oe,Rt,z)?ni:void 0}Te+=Rr}}function la(D,z,q,ht,vt,Pt,Rt,oe,Te){let De=Yi(ht,Pt,Rt),Ve=Gi(ht,vt),Je=Ve*Rt,mr=D[0].x===0||D[0].x===Te||D[0].y===0||D[0].y===Te;z-Je=0&&Ma=0&&qa=0&&mr+De<=Ve){let xn=new Ir(Ma,qa,ba,Kr);xn._round(),(!ht||ui(D,xn,Pt,ht,vt))&&Rr.push(xn)}}Je+=ia}return!oe&&!Rr.length&&!Rt&&(Rr=ta(D,Je/2,q,ht,vt,Pt,Rt,!0,Te)),Rr}function va(D,z,q,ht){let vt=[],Pt=D.image,Rt=Pt.pixelRatio,oe=Pt.paddedRect.w-2,Te=Pt.paddedRect.h-2,De={x1:D.left,y1:D.top,x2:D.right,y2:D.bottom},Ve=Pt.stretchX||[[0,oe]],Je=Pt.stretchY||[[0,Te]],mr=(Ba,Sn)=>Ba+Sn[1]-Sn[0],Rr=Ve.reduce(mr,0),Kr=Je.reduce(mr,0),ni=oe-Rr,Bi=Te-Kr,ia=0,ba=Rr,ka=0,Ma=Kr,qa=0,xn=ni,Fn=0,to=Bi;if(Pt.content&&ht){let Ba=Pt.content,Sn=Ba[2]-Ba[0],fo=Ba[3]-Ba[1];(Pt.textFitWidth||Pt.textFitHeight)&&(De=u0(D)),ia=La(Ve,0,Ba[0]),ka=La(Je,0,Ba[1]),ba=La(Ve,Ba[0],Ba[2]),Ma=La(Je,Ba[1],Ba[3]),qa=Ba[0]-ia,Fn=Ba[1]-ka,xn=Sn-ba,to=fo-Ma}let Hn=De.x1,Ln=De.y1,Nn=De.x2-Hn,jn=De.y2-Ln,zn=(Ba,Sn,fo,eo)=>{let Ko=cn(Ba.stretch-ia,ba,Nn,Hn),Us=hn(Ba.fixed-qa,xn,Ba.stretch,Rr),kl=cn(Sn.stretch-ka,Ma,jn,Ln),Du=hn(Sn.fixed-Fn,to,Sn.stretch,Kr),Ru=cn(fo.stretch-ia,ba,Nn,Hn),tc=hn(fo.fixed-qa,xn,fo.stretch,Rr),Oh=cn(eo.stretch-ka,Ma,jn,Ln),Op=hn(eo.fixed-Fn,to,eo.stretch,Kr),b0=new c(Ko,kl),w0=new c(Ru,kl),T0=new c(Ru,Oh),k0=new c(Ko,Oh),Xm=new c(Us/Rt,Du/Rt),ih=new c(tc/Rt,Op/Rt),Cf=z*Math.PI/180;if(Cf){let ec=Math.sin(Cf),Tc=Math.cos(Cf),Zh=[Tc,-ec,ec,Tc];b0._matMult(Zh),w0._matMult(Zh),k0._matMult(Zh),T0._matMult(Zh)}let gd=Ba.stretch+Ba.fixed,$m=fo.stretch+fo.fixed,A0=Sn.stretch+Sn.fixed,Jm=eo.stretch+eo.fixed;return{tl:b0,tr:w0,bl:k0,br:T0,tex:{x:Pt.paddedRect.x+1+gd,y:Pt.paddedRect.y+1+A0,w:$m-gd,h:Jm-A0},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Xm,pixelOffsetBR:ih,minFontScaleX:xn/Rt/Nn,minFontScaleY:to/Rt/jn,isSDF:q}};if(!ht||!Pt.stretchX&&!Pt.stretchY)vt.push(zn({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:oe+1},{fixed:0,stretch:Te+1}));else{let Ba=Da(Ve,ni,Rr),Sn=Da(Je,Bi,Kr);for(let fo=0;fo0&&(ni=Math.max(10,ni),this.circleDiameter=ni)}else{let mr=(Je=Rt.image)!=null&&Je.content&&(Rt.image.textFitWidth||Rt.image.textFitHeight)?u0(Rt):{x1:Rt.left,y1:Rt.top,x2:Rt.right,y2:Rt.bottom};mr.y1=mr.y1*oe-Te[0],mr.y2=mr.y2*oe+Te[2],mr.x1=mr.x1*oe-Te[3],mr.x2=mr.x2*oe+Te[1];let Rr=Rt.collisionPadding;if(Rr&&(mr.x1-=Rr[0]*oe,mr.y1-=Rr[1]*oe,mr.x2+=Rr[2]*oe,mr.y2+=Rr[3]*oe),Ve){let Kr=new c(mr.x1,mr.y1),ni=new c(mr.x2,mr.y1),Bi=new c(mr.x1,mr.y2),ia=new c(mr.x2,mr.y2),ba=Ve*Math.PI/180;Kr._rotate(ba),ni._rotate(ba),Bi._rotate(ba),ia._rotate(ba),mr.x1=Math.min(Kr.x,ni.x,Bi.x,ia.x),mr.x2=Math.max(Kr.x,ni.x,Bi.x,ia.x),mr.y1=Math.min(Kr.y,ni.y,Bi.y,ia.y),mr.y2=Math.max(Kr.y,ni.y,Bi.y,ia.y)}z.emplaceBack(q.x,q.y,mr.x1,mr.y1,mr.x2,mr.y2,ht,vt,Pt)}this.boxEndIndex=z.length}}class vn{constructor(z=[],q=(ht,vt)=>htvt?1:0){if(this.data=z,this.length=this.data.length,this.compare=q,this.length>0)for(let ht=(this.length>>1)-1;ht>=0;ht--)this._down(ht)}push(z){this.data.push(z),this._up(this.length++)}pop(){if(this.length===0)return;let z=this.data[0],q=this.data.pop();return--this.length>0&&(this.data[0]=q,this._down(0)),z}peek(){return this.data[0]}_up(z){let{data:q,compare:ht}=this,vt=q[z];for(;z>0;){let Pt=z-1>>1,Rt=q[Pt];if(ht(vt,Rt)>=0)break;q[z]=Rt,z=Pt}q[z]=vt}_down(z){let{data:q,compare:ht}=this,vt=this.length>>1,Pt=q[z];for(;z=0)break;q[z]=q[Rt],z=Rt}q[z]=Pt}}function qn(D,z=1,q=!1){let ht=1/0,vt=1/0,Pt=-1/0,Rt=-1/0,oe=D[0];for(let ni=0;niPt)&&(Pt=Bi.x),(!ni||Bi.y>Rt)&&(Rt=Bi.y)}let Te=Pt-ht,De=Rt-vt,Ve=Math.min(Te,De),Je=Ve/2,mr=new vn([],wn);if(Ve===0)return new c(ht,vt);for(let ni=ht;niRr.d||!Rr.d)&&(Rr=ni,q&&console.log("found best %d after %d probes",Math.round(1e4*ni.d)/1e4,Kr)),!(ni.max-Rr.d<=z)&&(Je=ni.h/2,mr.push(new An(ni.p.x-Je,ni.p.y-Je,Je,D)),mr.push(new An(ni.p.x+Je,ni.p.y-Je,Je,D)),mr.push(new An(ni.p.x-Je,ni.p.y+Je,Je,D)),mr.push(new An(ni.p.x+Je,ni.p.y+Je,Je,D)),Kr+=4)}return q&&(console.log(`num probes: ${Kr}`),console.log(`best distance: ${Rr.d}`)),Rr.p}function wn(D,z){return z.max-D.max}function An(D,z,q,ht){this.p=new c(D,z),this.h=q,this.d=go(this.p,ht),this.max=this.d+this.h*Math.SQRT2}function go(D,z){let q=!1,ht=1/0;for(let vt=0;vtD.y!=Ve.y>D.y&&D.x<(Ve.x-De.x)*(D.y-De.y)/(Ve.y-De.y)+De.x&&(q=!q),ht=Math.min(ht,Kl(D,De,Ve))}}return(q?1:-1)*Math.sqrt(ht)}function To(D){let z=0,q=0,ht=0,vt=D[0];for(let Pt=0,Rt=vt.length,oe=Rt-1;Ptmr*zs);Ve.startsWith("top")?Je[1]-=7:Ve.startsWith("bottom")&&(Je[1]+=7),Te[De+1]=Je}return new xs(Te)}let Pt=ht.get("text-variable-anchor");if(Pt){let oe;oe=D._unevaluatedLayout.getValue("text-radial-offset")===void 0?ht.get("text-offset").evaluate(z,{},q).map(De=>De*zs):[ht.get("text-radial-offset").evaluate(z,{},q)*zs,Lo];let Te=[];for(let De of Pt)Te.push(De,_o(De,oe));return new xs(Te)}return null}function Jn(D){D.bucket.createArrays();let z=512*D.bucket.overscaling;D.bucket.tilePixelRatio=js/z,D.bucket.compareText={},D.bucket.iconsNeedLinear=!1;let q=D.bucket.layers[0],ht=q.layout,vt=q._unevaluatedLayout._values,Pt={layoutIconSize:vt["icon-size"].possiblyEvaluate(new Vo(D.bucket.zoom+1),D.canonical),layoutTextSize:vt["text-size"].possiblyEvaluate(new Vo(D.bucket.zoom+1),D.canonical),textMaxSize:vt["text-size"].possiblyEvaluate(new Vo(18))};if(D.bucket.textSizeData.kind==="composite"){let{minZoom:Ve,maxZoom:Je}=D.bucket.textSizeData;Pt.compositeTextSizes=[vt["text-size"].possiblyEvaluate(new Vo(Ve),D.canonical),vt["text-size"].possiblyEvaluate(new Vo(Je),D.canonical)]}if(D.bucket.iconSizeData.kind==="composite"){let{minZoom:Ve,maxZoom:Je}=D.bucket.iconSizeData;Pt.compositeIconSizes=[vt["icon-size"].possiblyEvaluate(new Vo(Ve),D.canonical),vt["icon-size"].possiblyEvaluate(new Vo(Je),D.canonical)]}let Rt=ht.get("text-line-height")*zs,oe=ht.get("text-rotation-alignment")!=="viewport"&&ht.get("symbol-placement")!=="point",Te=ht.get("text-keep-upright"),De=ht.get("text-size");for(let Ve of D.bucket.features){let Je=ht.get("text-font").evaluate(Ve,{},D.canonical).join(","),mr=De.evaluate(Ve,{},D.canonical),Rr=Pt.layoutTextSize.evaluate(Ve,{},D.canonical),Kr=Pt.layoutIconSize.evaluate(Ve,{},D.canonical),ni={horizontal:{},vertical:void 0},Bi=Ve.text,ia=[0,0];if(Bi){let qa=Bi.toString(),xn=ht.get("text-letter-spacing").evaluate(Ve,{},D.canonical)*zs,Fn=Ro(qa)?xn:0,to=ht.get("text-anchor").evaluate(Ve,{},D.canonical),Hn=Io(q,Ve,D.canonical);if(!Hn){let zn=ht.get("text-radial-offset").evaluate(Ve,{},D.canonical);ia=zn?_o(to,[zn*zs,Lo]):ht.get("text-offset").evaluate(Ve,{},D.canonical).map(Ba=>Ba*zs)}let Ln=oe?"center":ht.get("text-justify").evaluate(Ve,{},D.canonical),Nn=ht.get("symbol-placement")==="point"?ht.get("text-max-width").evaluate(Ve,{},D.canonical)*zs:1/0,jn=()=>{D.bucket.allowVerticalPlacement&&Yo(qa)&&(ni.vertical=Qf(Bi,D.glyphMap,D.glyphPositions,D.imagePositions,Je,Nn,Rt,to,"left",Fn,ia,A.ai.vertical,!0,Rr,mr))};if(!oe&&Hn){let zn=new Set;if(Ln==="auto")for(let Sn=0;Sn{Sn.x<0||Sn.x>=js||Sn.y<0||Sn.y>=js||ql(D,Sn,Ba,q,ht,vt,jn,D.layers[0],D.collisionBoxArray,z.index,z.sourceLayerIndex,D.index,Bi,[Ma,Ma,Ma,Ma],Fn,Te,ba,qa,to,Rr,z,Pt,De,Ve,Rt)};if(Hn==="line")for(let Ba of Er(z.geometry,0,0,js,js)){let Sn=la(Ba,ka,xn,q.vertical||Kr,ht,24,ia,D.overscaling,js);for(let fo of Sn){let eo=Kr;(!eo||!_l(D,eo.text,Ln,fo))&&zn(Ba,fo)}}else if(Hn==="line-center"){for(let Ba of z.geometry)if(Ba.length>1){let Sn=ra(Ba,xn,q.vertical||Kr,ht,24,ia);Sn&&zn(Ba,Sn)}}else if(z.type==="Polygon")for(let Ba of lc(z.geometry,0)){let Sn=qn(Ba,16);zn(Ba[0],new Ir(Sn.x,Sn.y,0))}else if(z.type==="LineString")for(let Ba of z.geometry)zn(Ba,new Ir(Ba[0].x,Ba[0].y,0));else if(z.type==="Point")for(let Ba of z.geometry)for(let Sn of Ba)zn([Sn],new Ir(Sn.x,Sn.y,0))}function ks(D,z){let q=D.length,ht=z==null?void 0:z.values;if((ht==null?void 0:ht.length)>0)for(let vt=0;vtUh&&U(`${D.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):Bi.kind==="composite"&&(ia=[128*Rr.compositeTextSizes[0].evaluate(Rt,{},Kr),128*Rr.compositeTextSizes[1].evaluate(Rt,{},Kr)],(ia[0]>Uh||ia[1]>Uh)&&U(`${D.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),D.addSymbols(D.text,ni,ia,oe,Pt,Rt,De,z,Te.lineStartIndex,Te.lineLength,mr,Kr);for(let ba of Ve)Je[ba]=D.text.placedSymbolArray.length-1;return ni.length*4}function Fs(D){for(let z in D)return D[z];return null}function ql(D,z,q,ht,vt,Pt,Rt,oe,Te,De,Ve,Je,mr,Rr,Kr,ni,Bi,ia,ba,ka,Ma,qa,xn,Fn,to){let Hn=D.addToLineVertexArray(z,q),Ln,Nn,jn,zn,Ba=0,Sn=0,fo=0,eo=0,Ko=-1,Us=-1,kl={},Du=$h("");if(D.allowVerticalPlacement&&ht.vertical){let ec=oe.layout.get("text-rotate").evaluate(Ma,{},Fn)+90,Tc=ht.vertical;jn=new bn(Te,z,De,Ve,Je,Tc,mr,Rr,Kr,ec),Rt&&(zn=new bn(Te,z,De,Ve,Je,Rt,Bi,ia,Kr,ec))}if(vt){let ec=oe.layout.get("icon-rotate").evaluate(Ma,{}),Tc=oe.layout.get("icon-text-fit")!=="none",Zh=va(vt,ec,xn,Tc),Km=Rt?va(Rt,ec,xn,Tc):void 0;Nn=new bn(Te,z,De,Ve,Je,vt,Bi,ia,!1,ec),Ba=Zh.length*4;let sg=D.iconSizeData,ap=null;sg.kind==="source"?(ap=[128*oe.layout.get("icon-size").evaluate(Ma,{})],ap[0]>Uh&&U(`${D.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):sg.kind==="composite"&&(ap=[128*qa.compositeIconSizes[0].evaluate(Ma,{},Fn),128*qa.compositeIconSizes[1].evaluate(Ma,{},Fn)],(ap[0]>Uh||ap[1]>Uh)&&U(`${D.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),D.addSymbols(D.icon,Zh,ap,ka,ba,Ma,A.ai.none,z,Hn.lineStartIndex,Hn.lineLength,-1,Fn),Ko=D.icon.placedSymbolArray.length-1,Km&&(Sn=Km.length*4,D.addSymbols(D.icon,Km,ap,ka,ba,Ma,A.ai.vertical,z,Hn.lineStartIndex,Hn.lineLength,-1,Fn),Us=D.icon.placedSymbolArray.length-1)}let Ru=Object.keys(ht.horizontal);for(let ec of Ru){let Tc=ht.horizontal[ec];Ln||(Ln=(Du=$h(Tc.text),new bn(Te,z,De,Ve,Je,Tc,mr,Rr,Kr,oe.layout.get("text-rotate").evaluate(Ma,{},Fn))));let Zh=Tc.positionedLines.length===1;if(fo+=Rs(D,z,Tc,Pt,oe,Kr,Ma,ni,Hn,ht.vertical?A.ai.horizontal:A.ai.horizontalOnly,Zh?Ru:[ec],kl,Ko,qa,Fn),Zh)break}ht.vertical&&(eo+=Rs(D,z,ht.vertical,Pt,oe,Kr,Ma,ni,Hn,A.ai.vertical,["vertical"],kl,Us,qa,Fn));let tc=Ln?Ln.boxStartIndex:D.collisionBoxArray.length,Oh=Ln?Ln.boxEndIndex:D.collisionBoxArray.length,Op=jn?jn.boxStartIndex:D.collisionBoxArray.length,b0=jn?jn.boxEndIndex:D.collisionBoxArray.length,w0=Nn?Nn.boxStartIndex:D.collisionBoxArray.length,T0=Nn?Nn.boxEndIndex:D.collisionBoxArray.length,k0=zn?zn.boxStartIndex:D.collisionBoxArray.length,Xm=zn?zn.boxEndIndex:D.collisionBoxArray.length,ih=-1,Cf=(ec,Tc)=>ec&&ec.circleDiameter?Math.max(ec.circleDiameter,Tc):Tc;ih=Cf(Ln,ih),ih=Cf(jn,ih),ih=Cf(Nn,ih),ih=Cf(zn,ih);let gd=ih>-1?1:0;gd&&(ih*=to/zs),D.glyphOffsetArray.length>=Vh.MAX_GLYPHS&&U("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ma.sortKey!==void 0&&D.addToSortKeyRanges(D.symbolInstances.length,Ma.sortKey);let $m=Io(oe,Ma,Fn),[A0,Jm]=ks(D.textAnchorOffsets,$m);D.symbolInstances.emplaceBack(z.x,z.y,kl.right>=0?kl.right:-1,kl.center>=0?kl.center:-1,kl.left>=0?kl.left:-1,kl.vertical||-1,Ko,Us,Du,tc,Oh,Op,b0,w0,T0,k0,Xm,De,fo,eo,Ba,Sn,gd,0,mr,ih,A0,Jm)}function _l(D,z,q,ht){let vt=D.compareText;if(!(z in vt))vt[z]=[];else{let Pt=vt[z];for(let Rt=Pt.length-1;Rt>=0;Rt--)if(ht.dist(Pt[Rt])>4;if(vt!==1)throw Error(`Got v${vt} data when expected v1.`);let Pt=tl[ht&15];if(!Pt)throw Error("Unrecognized array type.");let[Rt]=new Uint16Array(z,2,1),[oe]=new Uint32Array(z,4,1);return new bl(oe,Rt,Pt,z)}constructor(z,q=64,ht=Float64Array,vt){if(isNaN(z)||z<0)throw Error(`Unpexpected numItems value: ${z}.`);this.numItems=+z,this.nodeSize=Math.min(Math.max(+q,2),65535),this.ArrayType=ht,this.IndexArrayType=z<65536?Uint16Array:Uint32Array;let Pt=tl.indexOf(this.ArrayType),Rt=z*2*this.ArrayType.BYTES_PER_ELEMENT,oe=z*this.IndexArrayType.BYTES_PER_ELEMENT,Te=(8-oe%8)%8;if(Pt<0)throw Error(`Unexpected typed array class: ${ht}.`);vt&&vt instanceof ArrayBuffer?(this.data=vt,this.ids=new this.IndexArrayType(this.data,8,z),this.coords=new this.ArrayType(this.data,8+oe+Te,z*2),this._pos=z*2,this._finished=!0):(this.data=new ArrayBuffer(8+Rt+oe+Te),this.ids=new this.IndexArrayType(this.data,8,z),this.coords=new this.ArrayType(this.data,8+oe+Te,z*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+Pt]),new Uint16Array(this.data,2,1)[0]=q,new Uint32Array(this.data,4,1)[0]=z)}add(z,q){let ht=this._pos>>1;return this.ids[ht]=ht,this.coords[this._pos++]=z,this.coords[this._pos++]=q,ht}finish(){let z=this._pos>>1;if(z!==this.numItems)throw Error(`Added ${z} items when expected ${this.numItems}.`);return wl(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(z,q,ht,vt){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:Pt,coords:Rt,nodeSize:oe}=this,Te=[0,Pt.length-1,0],De=[];for(;Te.length;){let Ve=Te.pop()||0,Je=Te.pop()||0,mr=Te.pop()||0;if(Je-mr<=oe){for(let Bi=mr;Bi<=Je;Bi++){let ia=Rt[2*Bi],ba=Rt[2*Bi+1];ia>=z&&ia<=ht&&ba>=q&&ba<=vt&&De.push(Pt[Bi])}continue}let Rr=mr+Je>>1,Kr=Rt[2*Rr],ni=Rt[2*Rr+1];Kr>=z&&Kr<=ht&&ni>=q&&ni<=vt&&De.push(Pt[Rr]),(Ve===0?z<=Kr:q<=ni)&&(Te.push(mr),Te.push(Rr-1),Te.push(1-Ve)),(Ve===0?ht>=Kr:vt>=ni)&&(Te.push(Rr+1),Te.push(Je),Te.push(1-Ve))}return De}within(z,q,ht){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:vt,coords:Pt,nodeSize:Rt}=this,oe=[0,vt.length-1,0],Te=[],De=ht*ht;for(;oe.length;){let Ve=oe.pop()||0,Je=oe.pop()||0,mr=oe.pop()||0;if(Je-mr<=Rt){for(let Bi=mr;Bi<=Je;Bi++)wc(Pt[2*Bi],Pt[2*Bi+1],z,q)<=De&&Te.push(vt[Bi]);continue}let Rr=mr+Je>>1,Kr=Pt[2*Rr],ni=Pt[2*Rr+1];wc(Kr,ni,z,q)<=De&&Te.push(vt[Rr]),(Ve===0?z-ht<=Kr:q-ht<=ni)&&(oe.push(mr),oe.push(Rr-1),oe.push(1-Ve)),(Ve===0?z+ht>=Kr:q+ht>=ni)&&(oe.push(Rr+1),oe.push(Je),oe.push(1-Ve))}return Te}}function wl(D,z,q,ht,vt,Pt){if(vt-ht<=q)return;let Rt=ht+vt>>1;ul(D,z,Rt,ht,vt,Pt),wl(D,z,q,ht,Rt-1,1-Pt),wl(D,z,q,Rt+1,vt,1-Pt)}function ul(D,z,q,ht,vt,Pt){for(;vt>ht;){if(vt-ht>600){let De=vt-ht+1,Ve=q-ht+1,Je=Math.log(De),mr=.5*Math.exp(2*Je/3),Rr=.5*Math.sqrt(Je*mr*(De-mr)/De)*(Ve-De/2<0?-1:1);ul(D,z,q,Math.max(ht,Math.floor(q-Ve*mr/De+Rr)),Math.min(vt,Math.floor(q+(De-Ve)*mr/De+Rr)),Pt)}let Rt=z[2*q+Pt],oe=ht,Te=vt;for(Tl(D,z,ht,q),z[2*vt+Pt]>Rt&&Tl(D,z,ht,vt);oeRt;)Te--}z[2*ht+Pt]===Rt?Tl(D,z,ht,Te):(Te++,Tl(D,z,Te,vt)),Te<=q&&(ht=Te+1),q<=Te&&(vt=Te-1)}}function Tl(D,z,q,ht){Ql(D,q,ht),Ql(z,2*q,2*ht),Ql(z,2*q+1,2*ht+1)}function Ql(D,z,q){let ht=D[z];D[z]=D[q],D[q]=ht}function wc(D,z,q,ht){let vt=D-q,Pt=z-ht;return vt*vt+Pt*Pt}A.bf=void 0,(function(D){D.create="create",D.load="load",D.fullLoad="fullLoad"})(A.bf||(A.bf={}));let Hh=null,rh=[],xh=1e3/60,_h="loadTime",Gh="fullLoadTime",Dc={mark(D){performance.mark(D)},frame(D){let z=D;if(Hh!=null){let q=z-Hh;rh.push(q)}Hh=z},clearMetrics(){for(let D in Hh=null,rh=[],performance.clearMeasures(_h),performance.clearMeasures(Gh),A.bf)performance.clearMarks(A.bf[D])},getPerformanceMetrics(){performance.measure(_h,A.bf.create,A.bf.load),performance.measure(Gh,A.bf.create,A.bf.fullLoad);let D=performance.getEntriesByName(_h)[0].duration,z=performance.getEntriesByName(Gh)[0].duration,q=rh.length,ht=1/(rh.reduce((Pt,Rt)=>Pt+Rt,0)/q/1e3),vt=rh.filter(Pt=>Pt>xh).reduce((Pt,Rt)=>Pt+(Rt-xh)/xh,0);return{loadTime:D,fullLoadTime:z,fps:ht,percentDroppedFrames:vt/(q+vt)*100,totalFrames:q}}};class zp{constructor(z){this._marks={start:[z.url,"start"].join("#"),end:[z.url,"end"].join("#"),measure:z.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let z=performance.getEntriesByName(this._marks.measure);return z.length===0&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),z=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),z}}A.$=Va,A.A=cf,A.B=Un,A.C=ft,A.D=Nt,A.E=Vt,A.F=zh,A.G=Et,A.H=P0,A.I=Kf,A.J=R0,A.K=F0,A.L=Ad,A.M=g,A.N=eh,A.O=sf,A.P=c,A.Q=vh,A.R=Ps,A.S=H,A.T=Vl,A.U=s,A.V=m,A.W=st,A.X=js,A.Y=Mi,A.Z=Pp,A._=t,A.a=Ot,A.a$=fp,A.a0=Jo,A.a1=y,A.a2=Tr,A.a3=Pe,A.a4=L,A.a5=Fr,A.a6=Vh,A.a7=ze,A.a8=Qh,A.a9=Vo,A.aA=lr,A.aB=rp,A.aC=O,A.aD=Di,A.aE=x0,A.aF=F,A.aG=C,A.aH=_,A.aI=Fh,A.aJ=ps,A.aK=Dp,A.aL=yl,A.aM=Jl,A.aN=Kn,A.aO=ds,A.aP=Jc,A.aQ=Md,A.aR=j0,A.aS=ho,A.aT=Wd,A.aU=po,A.aV=T,A.aW=Ed,A.aX=Aa,A.aY=Po,A.aZ=mo,A.a_=hp,A.aa=fe,A.ab=K,A.ac=b,A.ad=h,A.ae=B0,A.af=z0,A.ag=Of,A.ah=Um,A.aj=jm,A.ak=Lp,A.al=N,A.am=Er,A.an=xd,A.ao=jp,A.ap=x,A.aq=zs,A.as=ud,A.at=D0,A.au=Fo,A.av=sd,A.aw=bl,A.ax=ca,A.ay=ns,A.az=qt,A.b=ct,A.b0=O0,A.b1=Df,A.b2=Sd,A.b3=d,A.b4=R,A.b5=pd,A.b6=Is,A.b7=Up,A.b8=v,A.b9=l,A.bA=Lt,A.bB=fu,A.bC=$l,A.ba=yt,A.bb=hf,A.bc=ga,A.bd=fd,A.be=Dc,A.bg=At,A.bh=Kt,A.bi=Gt,A.bj=Ki,A.bk=Oa,A.bl=Yt,A.bm=Re,A.bn=od,A.bo=Jn,A.bp=vf,A.bq=$p,A.br=Qp,A.bs=jh,A.bt=nd,A.bu=zp,A.bv=ut,A.bw=Dt,A.bx=E,A.by=w,A.bz=$d,A.c=St,A.d=J,A.e=M,A.f=Q,A.g=Ht,A.h=Le,A.i=Y,A.j=nr,A.k=je,A.l=ve,A.m=ye,A.n=zm,A.o=Bf,A.p=rf,A.q=cr,A.r=Bn,A.s=ke,A.t=Ua,A.u=Pa,A.v=ae,A.w=U,A.x=rn,A.y=V,A.z=ls})),S("worker",["./shared"],(function(A){class t{constructor(Ct){this.keyCache={},Ct&&this.replace(Ct)}replace(Ct){this._layerConfigs={},this._layers={},this.update(Ct,[])}update(Ct,Ut){for(let Me of Ct){this._layerConfigs[Me.id]=Me;let Be=this._layers[Me.id]=A.aB(Me);Be._featureFilter=A.a7(Be.filter),this.keyCache[Me.id]&&delete this.keyCache[Me.id]}for(let Me of Ut)delete this.keyCache[Me],delete this._layerConfigs[Me],delete this._layers[Me];this.familiesBySource={};let Zt=A.bj(Object.values(this._layerConfigs),this.keyCache);for(let Me of Zt){let Be=Me.map(He=>this._layers[He.id]),ge=Be[0];if(ge.visibility==="none")continue;let Ee=ge.source||"",Ne=this.familiesBySource[Ee];Ne||(Ne=this.familiesBySource[Ee]={});let sr=ge.sourceLayer||"_geojsonTileLayer",_e=Ne[sr];_e||(_e=Ne[sr]=[]),_e.push(Be)}}}class E{constructor(Ct){let Ut={},Zt=[];for(let Ee in Ct){let Ne=Ct[Ee],sr=Ut[Ee]={};for(let _e in Ne){let He=Ne[+_e];if(!He||He.bitmap.width===0||He.bitmap.height===0)continue;let or={x:0,y:0,w:He.bitmap.width+2,h:He.bitmap.height+2};Zt.push(or),sr[_e]={rect:or,metrics:He.metrics}}}let{w:Me,h:Be}=A.p(Zt),ge=new A.o({width:Me||1,height:Be||1});for(let Ee in Ct){let Ne=Ct[Ee];for(let sr in Ne){let _e=Ne[+sr];if(!_e||_e.bitmap.width===0||_e.bitmap.height===0)continue;let He=Ut[Ee][sr].rect;A.o.copy(_e.bitmap,ge,{x:0,y:0},{x:He.x+1,y:He.y+1},_e.bitmap)}}this.image=ge,this.positions=Ut}}A.bk("GlyphAtlas",E);class w{constructor(Ct){this.tileID=new A.S(Ct.tileID.overscaledZ,Ct.tileID.wrap,Ct.tileID.canonical.z,Ct.tileID.canonical.x,Ct.tileID.canonical.y),this.uid=Ct.uid,this.zoom=Ct.zoom,this.pixelRatio=Ct.pixelRatio,this.tileSize=Ct.tileSize,this.source=Ct.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ct.showCollisionBoxes,this.collectResourceTiming=!!Ct.collectResourceTiming,this.returnDependencies=!!Ct.returnDependencies,this.promoteId=Ct.promoteId,this.inFlightDependencies=[]}parse(Ct,Ut,Zt,Me){return A._(this,void 0,void 0,function*(){this.status="parsing",this.data=Ct,this.collisionBoxArray=new A.a5;let Be=new A.bl(Object.keys(Ct.layers).sort()),ge=new A.bm(this.tileID,this.promoteId);ge.bucketLayerIDs=[];let Ee={},Ne={featureIndex:ge,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Zt},sr=Ut.familiesBySource[this.source];for(let We in sr){let $e=Ct.layers[We];if(!$e)continue;$e.version===1&&A.w(`Vector tile source "${this.source}" layer "${We}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let yr=Be.encode(We),Cr=[];for(let Sr=0;Sr<$e.length;Sr++){let Dr=$e.feature(Sr),Or=ge.getId(Dr,We);Cr.push({feature:Dr,id:Or,index:Sr,sourceLayerIndex:yr})}for(let Sr of sr[We]){let Dr=Sr[0];Dr.source!==this.source&&A.w(`layer.source = ${Dr.source} does not equal this.source = ${this.source}`),!(Dr.minzoom&&this.zoom=Dr.maxzoom||Dr.visibility!=="none"&&(p(Sr,this.zoom,Zt),(Ee[Dr.id]=Dr.createBucket({index:ge.bucketLayerIDs.length,layers:Sr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:yr,sourceID:this.source})).populate(Cr,Ne,this.tileID.canonical),ge.bucketLayerIDs.push(Sr.map(Or=>Or.id))))}}let _e=A.aG(Ne.glyphDependencies,We=>Object.keys(We).map(Number));this.inFlightDependencies.forEach(We=>We==null?void 0:We.abort()),this.inFlightDependencies=[];let He=Promise.resolve({});if(Object.keys(_e).length){let We=new AbortController;this.inFlightDependencies.push(We),He=Me.sendAsync({type:"GG",data:{stacks:_e,source:this.source,tileID:this.tileID,type:"glyphs"}},We)}let or=Object.keys(Ne.iconDependencies),Pr=Promise.resolve({});if(or.length){let We=new AbortController;this.inFlightDependencies.push(We),Pr=Me.sendAsync({type:"GI",data:{icons:or,source:this.source,tileID:this.tileID,type:"icons"}},We)}let br=Object.keys(Ne.patternDependencies),ue=Promise.resolve({});if(br.length){let We=new AbortController;this.inFlightDependencies.push(We),ue=Me.sendAsync({type:"GI",data:{icons:br,source:this.source,tileID:this.tileID,type:"patterns"}},We)}let[we,Ce,Ge]=yield Promise.all([He,Pr,ue]),Ke=new E(we),ar=new A.bn(Ce,Ge);for(let We in Ee){let $e=Ee[We];$e instanceof A.a6?(p($e.layers,this.zoom,Zt),A.bo({bucket:$e,glyphMap:we,glyphPositions:Ke.positions,imageMap:Ce,imagePositions:ar.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):$e.hasPattern&&($e instanceof A.bp||$e instanceof A.bq||$e instanceof A.br)&&(p($e.layers,this.zoom,Zt),$e.addFeatures(Ne,this.tileID.canonical,ar.patternPositions))}return this.status="done",{buckets:Object.values(Ee).filter(We=>!We.isEmpty()),featureIndex:ge,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ke.image,imageAtlas:ar,glyphMap:this.returnDependencies?we:null,iconMap:this.returnDependencies?Ce:null,glyphPositions:this.returnDependencies?Ke.positions:null}})}}function p(Mt,Ct,Ut){let Zt=new A.a9(Ct);for(let Me of Mt)Me.recalculate(Zt,Ut)}class c{constructor(Ct,Ut,Zt){this.actor=Ct,this.layerIndex=Ut,this.availableImages=Zt,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ct,Ut){return A._(this,void 0,void 0,function*(){let Zt=yield A.l(Ct.request,Ut);try{return{vectorTile:new A.bs.VectorTile(new A.bt(Zt.data)),rawData:Zt.data,cacheControl:Zt.cacheControl,expires:Zt.expires}}catch(Me){let Be=new Uint8Array(Zt.data),ge=Be[0]===31&&Be[1]===139,Ee=`Unable to parse the tile at ${Ct.request.url}, `;throw ge?Ee+="please make sure the data is not gzipped and that you have configured the relevant header in the server":Ee+=`got error: ${Me.message}`,Error(Ee)}})}loadTile(Ct){return A._(this,void 0,void 0,function*(){let Ut=Ct.uid,Zt=Ct&&Ct.request&&Ct.request.collectResourceTiming?new A.bu(Ct.request):!1,Me=new w(Ct);this.loading[Ut]=Me;let Be=new AbortController;Me.abort=Be;try{let ge=yield this.loadVectorTile(Ct,Be);if(delete this.loading[Ut],!ge)return null;let Ee=ge.rawData,Ne={};ge.expires&&(Ne.expires=ge.expires),ge.cacheControl&&(Ne.cacheControl=ge.cacheControl);let sr={};if(Zt){let He=Zt.finish();He&&(sr.resourceTiming=JSON.parse(JSON.stringify(He)))}Me.vectorTile=ge.vectorTile;let _e=Me.parse(ge.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Ut]=Me,this.fetching[Ut]={rawTileData:Ee,cacheControl:Ne,resourceTiming:sr};try{let He=yield _e;return A.e({rawTileData:Ee.slice(0)},He,Ne,sr)}finally{delete this.fetching[Ut]}}catch(ge){throw delete this.loading[Ut],Me.status="done",this.loaded[Ut]=Me,ge}})}reloadTile(Ct){return A._(this,void 0,void 0,function*(){let Ut=Ct.uid;if(!this.loaded||!this.loaded[Ut])throw Error("Should not be trying to reload a tile that was never loaded or has been removed");let Zt=this.loaded[Ut];if(Zt.showCollisionBoxes=Ct.showCollisionBoxes,Zt.status==="parsing"){let Me=yield Zt.parse(Zt.vectorTile,this.layerIndex,this.availableImages,this.actor),Be;if(this.fetching[Ut]){let{rawTileData:ge,cacheControl:Ee,resourceTiming:Ne}=this.fetching[Ut];delete this.fetching[Ut],Be=A.e({rawTileData:ge.slice(0)},Me,Ee,Ne)}else Be=Me;return Be}if(Zt.status==="done"&&Zt.vectorTile)return Zt.parse(Zt.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Ct){return A._(this,void 0,void 0,function*(){let Ut=this.loading,Zt=Ct.uid;Ut&&Ut[Zt]&&Ut[Zt].abort&&(Ut[Zt].abort.abort(),delete Ut[Zt])})}removeTile(Ct){return A._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Ct.uid]&&delete this.loaded[Ct.uid]})}}class i{constructor(){this.loaded={}}loadTile(Ct){return A._(this,void 0,void 0,function*(){let{uid:Ut,encoding:Zt,rawImageData:Me,redFactor:Be,greenFactor:ge,blueFactor:Ee,baseShift:Ne}=Ct,sr=Me.width+2,_e=Me.height+2,He=A.b(Me)?new A.R({width:sr,height:_e},yield A.bv(Me,-1,-1,sr,_e)):Me,or=new A.bw(Ut,He,Zt,Be,ge,Ee,Ne);return this.loaded=this.loaded||{},this.loaded[Ut]=or,or})}removeTile(Ct){let Ut=this.loaded,Zt=Ct.uid;Ut&&Ut[Zt]&&delete Ut[Zt]}}var r=o;function o(Mt,Ct){var Ut=Mt&&Mt.type,Zt;if(Ut==="FeatureCollection")for(Zt=0;Zt=Math.abs(Ee)?Ut-Ne+Ee:Ee-Ne+Ut,Ut=Ne}Ut+Zt>=0!=!!Ct&&Mt.reverse()}var n=A.bx(r);let m=A.bs.VectorTileFeature.prototype.toGeoJSON,x=class{constructor(Mt){this._feature=Mt,this.extent=A.X,this.type=Mt.type,this.properties=Mt.tags,"id"in Mt&&!isNaN(Mt.id)&&(this.id=parseInt(Mt.id,10))}loadGeometry(){if(this._feature.type===1){let Mt=[];for(let Ct of this._feature.geometry)Mt.push([new A.P(Ct[0],Ct[1])]);return Mt}else{let Mt=[];for(let Ct of this._feature.geometry){let Ut=[];for(let Zt of Ct)Ut.push(new A.P(Zt[0],Zt[1]));Mt.push(Ut)}return Mt}}toGeoJSON(Mt,Ct,Ut){return m.call(this,Mt,Ct,Ut)}},f=class{constructor(Mt){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=A.X,this.length=Mt.length,this._features=Mt}feature(Mt){return new x(this._features[Mt])}};var v={exports:{}},l=A.by,h=A.bs.VectorTileFeature,d=b;function b(Mt,Ct){this.options=Ct||{},this.features=Mt,this.length=Mt.length}b.prototype.feature=function(Mt){return new M(this.features[Mt],this.options.extent)};function M(Mt,Ct){this.id=typeof Mt.id=="number"?Mt.id:void 0,this.type=Mt.type,this.rawGeometry=Mt.type===1?[Mt.geometry]:Mt.geometry,this.properties=Mt.tags,this.extent=Ct||4096}M.prototype.loadGeometry=function(){var Mt=this.rawGeometry;this.geometry=[];for(var Ct=0;Ct>31}function B(Mt,Ct){for(var Ut=Mt.loadGeometry(),Zt=Mt.type,Me=0,Be=0,ge=Ut.length,Ee=0;EeMt},Y=Math.fround||(Mt=>(Ct=>(Mt[0]=+Ct,Mt[0])))(new Float32Array(1));class K{constructor(Ct){this.options=Object.assign(Object.create(V),Ct),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ct){let{log:Ut,minZoom:Zt,maxZoom:Me}=this.options;Ut&&console.time("total time");let Be=`prepare ${Ct.length} points`;Ut&&console.time(Be),this.points=Ct;let ge=[];for(let Ne=0;Ne=Zt;Ne--){let sr=+Date.now();Ee=this.trees[Ne]=this._createTree(this._cluster(Ee,Ne)),Ut&&console.log("z%d: %d clusters in %dms",Ne,Ee.numItems,+Date.now()-sr)}return Ut&&console.timeEnd("total time"),this}getClusters(Ct,Ut){let Zt=((Ct[0]+180)%360+360)%360-180,Me=Math.max(-90,Math.min(90,Ct[1])),Be=Ct[2]===180?180:((Ct[2]+180)%360+360)%360-180,ge=Math.max(-90,Math.min(90,Ct[3]));if(Ct[2]-Ct[0]>=360)Zt=-180,Be=180;else if(Zt>Be){let He=this.getClusters([Zt,Me,180,ge],Ut),or=this.getClusters([-180,Me,Be,ge],Ut);return He.concat(or)}let Ee=this.trees[this._limitZoom(Ut)],Ne=Ee.range(ct(Zt),J(ge),ct(Be),J(Me)),sr=Ee.data,_e=[];for(let He of Ne){let or=this.stride*He;_e.push(sr[or+5]>1?nt(sr,or,this.clusterProps):this.points[sr[or+3]])}return _e}getChildren(Ct){let Ut=this._getOriginId(Ct),Zt=this._getOriginZoom(Ct),Me="No cluster with the specified id.",Be=this.trees[Zt];if(!Be)throw Error(Me);let ge=Be.data;if(Ut*this.stride>=ge.length)throw Error(Me);let Ee=this.options.radius/(this.options.extent*2**(Zt-1)),Ne=ge[Ut*this.stride],sr=ge[Ut*this.stride+1],_e=Be.within(Ne,sr,Ee),He=[];for(let or of _e){let Pr=or*this.stride;ge[Pr+4]===Ct&&He.push(ge[Pr+5]>1?nt(ge,Pr,this.clusterProps):this.points[ge[Pr+3]])}if(He.length===0)throw Error(Me);return He}getLeaves(Ct,Ut,Zt){Ut||(Ut=10),Zt||(Zt=0);let Me=[];return this._appendLeaves(Me,Ct,Ut,Zt,0),Me}getTile(Ct,Ut,Zt){let Me=this.trees[this._limitZoom(Ct)],Be=2**Ct,{extent:ge,radius:Ee}=this.options,Ne=Ee/ge,sr=(Zt-Ne)/Be,_e=(Zt+1+Ne)/Be,He={features:[]};return this._addTileFeatures(Me.range((Ut-Ne)/Be,sr,(Ut+1+Ne)/Be,_e),Me.data,Ut,Zt,Be,He),Ut===0&&this._addTileFeatures(Me.range(1-Ne/Be,sr,1,_e),Me.data,Be,Zt,Be,He),Ut===Be-1&&this._addTileFeatures(Me.range(0,sr,Ne/Be,_e),Me.data,-1,Zt,Be,He),He.features.length?He:null}getClusterExpansionZoom(Ct){let Ut=this._getOriginZoom(Ct)-1;for(;Ut<=this.options.maxZoom;){let Zt=this.getChildren(Ct);if(Ut++,Zt.length!==1)break;Ct=Zt[0].properties.cluster_id}return Ut}_appendLeaves(Ct,Ut,Zt,Me,Be){let ge=this.getChildren(Ut);for(let Ee of ge){let Ne=Ee.properties;if(Ne&&Ne.cluster?Be+Ne.point_count<=Me?Be+=Ne.point_count:Be=this._appendLeaves(Ct,Ne.cluster_id,Zt,Me,Be):Be1,_e,He,or;if(sr)_e=ft(Ut,Ne,this.clusterProps),He=Ut[Ne],or=Ut[Ne+1];else{let ue=this.points[Ut[Ne+3]];_e=ue.properties;let[we,Ce]=ue.geometry.coordinates;He=ct(we),or=J(Ce)}let Pr={type:1,geometry:[[Math.round(this.options.extent*(He*Be-Zt)),Math.round(this.options.extent*(or*Be-Me))]],tags:_e},br;br=sr||this.options.generateId?Ut[Ne+3]:this.points[Ut[Ne+3]].id,br!==void 0&&(Pr.id=br),ge.features.push(Pr)}}_limitZoom(Ct){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ct),this.options.maxZoom+1))}_cluster(Ct,Ut){let{radius:Zt,extent:Me,reduce:Be,minPoints:ge}=this.options,Ee=Zt/(Me*2**Ut),Ne=Ct.data,sr=[],_e=this.stride;for(let He=0;HeUt&&(we+=Ne[Ge+5])}if(we>ue&&we>=ge){let Ce=or*ue,Ge=Pr*ue,Ke,ar=-1,We=((He/_e|0)<<5)+(Ut+1)+this.points.length;for(let $e of br){let yr=$e*_e;if(Ne[yr+2]<=Ut)continue;Ne[yr+2]=Ut;let Cr=Ne[yr+5];Ce+=Ne[yr]*Cr,Ge+=Ne[yr+1]*Cr,Ne[yr+4]=We,Be&&(Ke||(Ke=this._map(Ne,He,!0),ar=this.clusterProps.length,this.clusterProps.push(Ke)),Be(Ke,this._map(Ne,yr)))}Ne[He+4]=We,sr.push(Ce/we,Ge/we,1/0,We,-1,we),Be&&sr.push(ar)}else{for(let Ce=0;Ce<_e;Ce++)sr.push(Ne[He+Ce]);if(we>1)for(let Ce of br){let Ge=Ce*_e;if(!(Ne[Ge+2]<=Ut)){Ne[Ge+2]=Ut;for(let Ke=0;Ke<_e;Ke++)sr.push(Ne[Ge+Ke])}}}}return sr}_getOriginId(Ct){return Ct-this.points.length>>5}_getOriginZoom(Ct){return(Ct-this.points.length)%32}_map(Ct,Ut,Zt){if(Ct[Ut+5]>1){let ge=this.clusterProps[Ct[Ut+6]];return Zt?Object.assign({},ge):ge}let Me=this.points[Ct[Ut+3]].properties,Be=this.options.map(Me);return Zt&&Be===Me?Object.assign({},Be):Be}}function nt(Mt,Ct,Ut){return{type:"Feature",id:Mt[Ct+3],properties:ft(Mt,Ct,Ut),geometry:{type:"Point",coordinates:[et(Mt[Ct]),Q(Mt[Ct+1])]}}}function ft(Mt,Ct,Ut){let Zt=Mt[Ct+5],Me=Zt>=1e4?`${Math.round(Zt/1e3)}k`:Zt>=1e3?`${Math.round(Zt/100)/10}k`:Zt,Be=Mt[Ct+6],ge=Be===-1?{}:Object.assign({},Ut[Be]);return Object.assign(ge,{cluster:!0,cluster_id:Mt[Ct+3],point_count:Zt,point_count_abbreviated:Me})}function ct(Mt){return Mt/360+.5}function J(Mt){let Ct=Math.sin(Mt*Math.PI/180),Ut=.5-.25*Math.log((1+Ct)/(1-Ct))/Math.PI;return Ut<0?0:Ut>1?1:Ut}function et(Mt){return(Mt-.5)*360}function Q(Mt){let Ct=(180-Mt*360)*Math.PI/180;return 360*Math.atan(Math.exp(Ct))/Math.PI-90}function Z(Mt,Ct,Ut,Zt){let Me=Zt,Be=Ct+(Ut-Ct>>1),ge=Ut-Ct,Ee,Ne=Mt[Ct],sr=Mt[Ct+1],_e=Mt[Ut],He=Mt[Ut+1];for(let or=Ct+3;orMe)Ee=or,Me=Pr;else if(Pr===Me){let br=Math.abs(or-Be);brZt&&(Ee-Ct>3&&Z(Mt,Ct,Ee,Zt),Mt[Ee+2]=Me,Ut-Ee>3&&Z(Mt,Ee,Ut,Zt))}function st(Mt,Ct,Ut,Zt,Me,Be){let ge=Me-Ut,Ee=Be-Zt;if(ge!==0||Ee!==0){let Ne=((Mt-Ut)*ge+(Ct-Zt)*Ee)/(ge*ge+Ee*Ee);Ne>1?(Ut=Me,Zt=Be):Ne>0&&(Ut+=ge*Ne,Zt+=Ee*Ne)}return ge=Mt-Ut,Ee=Ct-Zt,ge*ge+Ee*Ee}function ot(Mt,Ct,Ut,Zt){let Me={id:Mt??null,type:Ct,geometry:Ut,tags:Zt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ct==="Point"||Ct==="MultiPoint"||Ct==="LineString")rt(Me,Ut);else if(Ct==="Polygon")rt(Me,Ut[0]);else if(Ct==="MultiLineString")for(let Be of Ut)rt(Me,Be);else if(Ct==="MultiPolygon")for(let Be of Ut)rt(Me,Be[0]);return Me}function rt(Mt,Ct){for(let Ut=0;Ut0&&(Zt?ge+=(Me*_e-sr*Be)/2:ge+=Math.sqrt((sr-Me)**2+(_e-Be)**2)),Me=sr,Be=_e}let Ee=Ct.length-3;Ct[2]=1,Z(Ct,0,Ee,Ut),Ct[Ee+2]=1,Ct.size=Math.abs(ge),Ct.start=0,Ct.end=Ct.size}function kt(Mt,Ct,Ut,Zt){for(let Me=0;Me1?1:Ut}function Ot(Mt,Ct,Ut,Zt,Me,Be,ge,Ee){if(Ut/=Ct,Zt/=Ct,Be>=Ut&&ge=Zt)return null;let Ne=[];for(let sr of Mt){let _e=sr.geometry,He=sr.type,or=Me===0?sr.minX:sr.minY,Pr=Me===0?sr.maxX:sr.maxY;if(or>=Ut&&Pr=Zt)continue;let br=[];if(He==="Point"||He==="MultiPoint")Ht(_e,br,Ut,Zt,Me);else if(He==="LineString")Kt(_e,br,Ut,Zt,Me,!1,Ee.lineMetrics);else if(He==="MultiLineString")Et(_e,br,Ut,Zt,Me,!1);else if(He==="Polygon")Et(_e,br,Ut,Zt,Me,!0);else if(He==="MultiPolygon")for(let ue of _e){let we=[];Et(ue,we,Ut,Zt,Me,!0),we.length&&br.push(we)}if(br.length){if(Ee.lineMetrics&&He==="LineString"){for(let ue of br)Ne.push(ot(sr.id,He,ue,sr.tags));continue}(He==="LineString"||He==="MultiLineString")&&(br.length===1?(He="LineString",br=br[0]):He="MultiLineString"),(He==="Point"||He==="MultiPoint")&&(He=br.length===3?"Point":"MultiPoint"),Ne.push(ot(sr.id,He,br,sr.tags))}}return Ne.length?Ne:null}function Ht(Mt,Ct,Ut,Zt,Me){for(let Be=0;Be=Ut&&ge<=Zt&&At(Ct,Mt[Be],Mt[Be+1],Mt[Be+2])}}function Kt(Mt,Ct,Ut,Zt,Me,Be,ge){let Ee=Gt(Mt),Ne=Me===0?qt:jt,sr=Mt.start,_e,He;for(let Ce=0;CeUt&&(He=Ne(Ee,Ge,Ke,We,$e,Ut),ge&&(Ee.start=sr+_e*He)):yr>Zt?Cr=Ut&&(He=Ne(Ee,Ge,Ke,We,$e,Ut),Sr=!0),Cr>Zt&&yr<=Zt&&(He=Ne(Ee,Ge,Ke,We,$e,Zt),Sr=!0),!Be&&Sr&&(ge&&(Ee.end=sr+_e*He),Ct.push(Ee),Ee=Gt(Mt)),ge&&(sr+=_e)}let or=Mt.length-3,Pr=Mt[or],br=Mt[or+1],ue=Mt[or+2],we=Me===0?Pr:br;we>=Ut&&we<=Zt&&At(Ee,Pr,br,ue),or=Ee.length-3,Be&&or>=3&&(Ee[or]!==Ee[0]||Ee[or+1]!==Ee[1])&&At(Ee,Ee[0],Ee[1],Ee[2]),Ee.length&&Ct.push(Ee)}function Gt(Mt){let Ct=[];return Ct.size=Mt.size,Ct.start=Mt.start,Ct.end=Mt.end,Ct}function Et(Mt,Ct,Ut,Zt,Me,Be){for(let ge of Mt)Kt(ge,Ct,Ut,Zt,Me,Be,!1)}function At(Mt,Ct,Ut,Zt){Mt.push(Ct,Ut,Zt)}function qt(Mt,Ct,Ut,Zt,Me,Be){let ge=(Be-Ct)/(Zt-Ct);return At(Mt,Be,Ut+(Me-Ut)*ge,1),ge}function jt(Mt,Ct,Ut,Zt,Me,Be){let ge=(Be-Ut)/(Me-Ut);return At(Mt,Ct+(Zt-Ct)*ge,Be,1),ge}function de(Mt,Ct){let Ut=Ct.buffer/Ct.extent,Zt=Mt,Me=Ot(Mt,1,-1-Ut,Ut,0,-1,2,Ct),Be=Ot(Mt,1,1-Ut,2+Ut,0,-1,2,Ct);return(Me||Be)&&(Zt=Ot(Mt,1,-Ut,1+Ut,0,-1,2,Ct)||[],Me&&(Zt=Xt(Me,1).concat(Zt)),Be&&(Zt=Zt.concat(Xt(Be,-1)))),Zt}function Xt(Mt,Ct){let Ut=[];for(let Zt=0;Zt0&&Ct.size<(Me?ge:Zt)){Ut.numPoints+=Ct.length/3;return}let Ee=[];for(let Ne=0;Nege)&&(Ut.numSimplified++,Ee.push(Ct[Ne],Ct[Ne+1])),Ut.numPoints++;Me&&be(Ee,Be),Mt.push(Ee)}function be(Mt,Ct){let Ut=0;for(let Zt=0,Me=Mt.length,Be=Me-2;Zt0===Ct)for(let Zt=0,Me=Mt.length;Zt24)throw Error("maxZoom should be in the 0-24 range");if(Ut.promoteId&&Ut.generateId)throw Error("promoteId and generateId cannot be used together.");let Me=X(Ct,Ut);this.tiles={},this.tileCoords=[],Zt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",Ut.indexMaxZoom,Ut.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Me=de(Me,Ut),Me.length&&this.splitTile(Me,0,0,0),Zt&&(Me.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}splitTile(Ct,Ut,Zt,Me,Be,ge,Ee){let Ne=[Ct,Ut,Zt,Me],sr=this.options,_e=sr.debug;for(;Ne.length;){Me=Ne.pop(),Zt=Ne.pop(),Ut=Ne.pop(),Ct=Ne.pop();let He=1<1&&console.time("creation"),Pr=this.tiles[or]=ke(Ct,Ut,Zt,Me,sr),this.tileCoords.push({z:Ut,x:Zt,y:Me}),_e)){_e>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Ut,Zt,Me,Pr.numFeatures,Pr.numPoints,Pr.numSimplified),console.timeEnd("creation"));let Cr=`z${Ut}`;this.stats[Cr]=(this.stats[Cr]||0)+1,this.total++}if(Pr.source=Ct,Be==null){if(Ut===sr.indexMaxZoom||Pr.numPoints<=sr.indexMaxPoints)continue}else{if(Ut===sr.maxZoom||Ut===Be)continue;if(Be!=null){let Cr=Be-Ut;if(Zt!==ge>>Cr||Me!==Ee>>Cr)continue}}if(Pr.source=null,Ct.length===0)continue;_e>1&&console.time("clipping");let br=.5*sr.buffer/sr.extent,ue=.5-br,we=.5+br,Ce=1+br,Ge=null,Ke=null,ar=null,We=null,$e=Ot(Ct,He,Zt-br,Zt+we,0,Pr.minX,Pr.maxX,sr),yr=Ot(Ct,He,Zt+ue,Zt+Ce,0,Pr.minX,Pr.maxX,sr);Ct=null,$e&&($e=(Ge=Ot($e,He,Me-br,Me+we,1,Pr.minY,Pr.maxY,sr),Ke=Ot($e,He,Me+ue,Me+Ce,1,Pr.minY,Pr.maxY,sr),null)),yr&&(yr=(ar=Ot(yr,He,Me-br,Me+we,1,Pr.minY,Pr.maxY,sr),We=Ot(yr,He,Me+ue,Me+Ce,1,Pr.minY,Pr.maxY,sr),null)),_e>1&&console.timeEnd("clipping"),Ne.push(Ge||[],Ut+1,Zt*2,Me*2),Ne.push(Ke||[],Ut+1,Zt*2,Me*2+1),Ne.push(ar||[],Ut+1,Zt*2+1,Me*2),Ne.push(We||[],Ut+1,Zt*2+1,Me*2+1)}}getTile(Ct,Ut,Zt){Ct=+Ct,Ut=+Ut,Zt=+Zt;let{extent:Me,debug:Be}=this.options;if(Ct<0||Ct>24)return null;let ge=1<1&&console.log("drilling down to z%d-%d-%d",Ct,Ut,Zt);let Ne=Ct,sr=Ut,_e=Zt,He;for(;!He&&Ne>0;)Ne--,sr>>=1,_e>>=1,He=this.tiles[Vt(Ne,sr,_e)];return!He||!He.source?null:(Be>1&&(console.log("found parent tile z%d-%d-%d",Ne,sr,_e),console.time("drilling down")),this.splitTile(He.source,Ne,sr,_e,Ct,Ut,Zt),Be>1&&console.timeEnd("drilling down"),this.tiles[Ee]?Le(this.tiles[Ee],Me):null)}}function Vt(Mt,Ct,Ut){return((1<0||((Me=Ee.addOrUpdateProperties)==null?void 0:Me.length)>0);if((sr||_e)&&(Ne=Object.assign({},Ne),Mt.set(Ee.id,Ne),_e&&(Ne.properties=Object.assign({},Ne.properties))),Ee.newGeometry&&(Ne.geometry=Ee.newGeometry),Ee.removeAllProperties)Ne.properties={};else if(((Be=Ee.removeProperties)==null?void 0:Be.length)>0)for(let He of Ee.removeProperties)Object.prototype.hasOwnProperty.call(Ne.properties,He)&&delete Ne.properties[He];if(((ge=Ee.addOrUpdateProperties)==null?void 0:ge.length)>0)for(let{key:He,value:or}of Ee.addOrUpdateProperties)Ne.properties[He]=or}}class Tt extends c{constructor(){super(...arguments),this._dataUpdateable=new Map}loadVectorTile(Ct,Ut){return A._(this,void 0,void 0,function*(){let Zt=Ct.tileID.canonical;if(!this._geoJSONIndex)throw Error("Unable to parse the data into a cluster or geojson");let Me=this._geoJSONIndex.getTile(Zt.z,Zt.x,Zt.y);if(!Me)return null;let Be=new f(Me.features),ge=N(Be);return(ge.byteOffset!==0||ge.byteLength!==ge.buffer.byteLength)&&(ge=new Uint8Array(ge)),{vectorTile:Be,rawData:ge.buffer}})}loadData(Ct){return A._(this,void 0,void 0,function*(){var Ut;(Ut=this._pendingRequest)==null||Ut.abort();let Zt=Ct&&Ct.request&&Ct.request.collectResourceTiming?new A.bu(Ct.request):!1;this._pendingRequest=new AbortController;try{this._pendingData=this.loadAndProcessGeoJSON(Ct,this._pendingRequest),this._geoJSONIndex=Ct.cluster?new K(_t(Ct)).load((yield this._pendingData).features):te(yield this._pendingData,Ct.geojsonVtOptions),this.loaded={};let Me={};if(Zt){let Be=Zt.finish();Be&&(Me.resourceTiming={},Me.resourceTiming[Ct.source]=JSON.parse(JSON.stringify(Be)))}return Me}catch(Me){if(delete this._pendingRequest,A.bA(Me))return{abandoned:!0};throw Me}})}getData(){return A._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Ct){let Ut=this.loaded,Zt=Ct.uid;return Ut&&Ut[Zt]?super.reloadTile(Ct):this.loadTile(Ct)}loadAndProcessGeoJSON(Ct,Ut){return A._(this,void 0,void 0,function*(){let Zt=yield this.loadGeoJSON(Ct,Ut);if(delete this._pendingRequest,typeof Zt!="object")throw Error(`Input data given to '${Ct.source}' is not a valid GeoJSON object.`);if(n(Zt,!0),Ct.filter){let Me=A.bB(Ct.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Me.result==="error")throw Error(Me.value.map(Be=>`${Be.key}: ${Be.message}`).join(", "));Zt={type:"FeatureCollection",features:Zt.features.filter(Be=>Me.value.evaluate({zoom:0},Be))}}return Zt})}loadGeoJSON(Ct,Ut){return A._(this,void 0,void 0,function*(){let{promoteId:Zt}=Ct;if(Ct.request){let Me=yield A.h(Ct.request,Ut);return this._dataUpdateable=Bt(Me.data,Zt)?Wt(Me.data,Zt):void 0,Me.data}if(typeof Ct.data=="string")try{let Me=JSON.parse(Ct.data);return this._dataUpdateable=Bt(Me,Zt)?Wt(Me,Zt):void 0,Me}catch{throw Error(`Input data given to '${Ct.source}' is not a valid GeoJSON object.`)}if(!Ct.dataDiff)throw Error(`Input data given to '${Ct.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw Error(`Cannot update existing geojson data in ${Ct.source}`);return $t(this._dataUpdateable,Ct.dataDiff,Zt),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Ct){return A._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Ct){return this._geoJSONIndex.getClusterExpansionZoom(Ct.clusterId)}getClusterChildren(Ct){return this._geoJSONIndex.getChildren(Ct.clusterId)}getClusterLeaves(Ct){return this._geoJSONIndex.getLeaves(Ct.clusterId,Ct.limit,Ct.offset)}}function _t({superclusterOptions:Mt,clusterProperties:Ct}){if(!Ct||!Mt)return Mt;let Ut={},Zt={},Me={accumulated:null,zoom:0},Be={properties:null},ge=Object.keys(Ct);for(let Ee of ge){let[Ne,sr]=Ct[Ee],_e=A.bB(sr),He=A.bB(typeof Ne=="string"?[Ne,["accumulated"],["get",Ee]]:Ne);Ut[Ee]=_e.value,Zt[Ee]=He.value}return Mt.map=Ee=>{Be.properties=Ee;let Ne={};for(let sr of ge)Ne[sr]=Ut[sr].evaluate(Me,Be);return Ne},Mt.reduce=(Ee,Ne)=>{Be.properties=Ne;for(let sr of ge)Me.accumulated=Ee[sr],Ee[sr]=Zt[sr].evaluate(Me,Be)},Mt}class It{constructor(Ct){this.self=Ct,this.actor=new A.F(Ct),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Ut,Zt)=>{if(this.externalWorkerSourceTypes[Ut])throw Error(`Worker source with name "${Ut}" already registered.`);this.externalWorkerSourceTypes[Ut]=Zt},this.self.addProtocol=A.bh,this.self.removeProtocol=A.bi,this.self.registerRTLTextPlugin=Ut=>{if(A.bC.isParsed())throw Error("RTL text plugin already registered.");A.bC.setMethods(Ut)},this.actor.registerMessageHandler("LDT",(Ut,Zt)=>this._getDEMWorkerSource(Ut,Zt.source).loadTile(Zt)),this.actor.registerMessageHandler("RDT",(Ut,Zt)=>A._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Ut,Zt.source).removeTile(Zt)})),this.actor.registerMessageHandler("GCEZ",(Ut,Zt)=>A._(this,void 0,void 0,function*(){return this._getWorkerSource(Ut,Zt.type,Zt.source).getClusterExpansionZoom(Zt)})),this.actor.registerMessageHandler("GCC",(Ut,Zt)=>A._(this,void 0,void 0,function*(){return this._getWorkerSource(Ut,Zt.type,Zt.source).getClusterChildren(Zt)})),this.actor.registerMessageHandler("GCL",(Ut,Zt)=>A._(this,void 0,void 0,function*(){return this._getWorkerSource(Ut,Zt.type,Zt.source).getClusterLeaves(Zt)})),this.actor.registerMessageHandler("LD",(Ut,Zt)=>this._getWorkerSource(Ut,Zt.type,Zt.source).loadData(Zt)),this.actor.registerMessageHandler("GD",(Ut,Zt)=>this._getWorkerSource(Ut,Zt.type,Zt.source).getData()),this.actor.registerMessageHandler("LT",(Ut,Zt)=>this._getWorkerSource(Ut,Zt.type,Zt.source).loadTile(Zt)),this.actor.registerMessageHandler("RT",(Ut,Zt)=>this._getWorkerSource(Ut,Zt.type,Zt.source).reloadTile(Zt)),this.actor.registerMessageHandler("AT",(Ut,Zt)=>this._getWorkerSource(Ut,Zt.type,Zt.source).abortTile(Zt)),this.actor.registerMessageHandler("RMT",(Ut,Zt)=>this._getWorkerSource(Ut,Zt.type,Zt.source).removeTile(Zt)),this.actor.registerMessageHandler("RS",(Ut,Zt)=>A._(this,void 0,void 0,function*(){if(!this.workerSources[Ut]||!this.workerSources[Ut][Zt.type]||!this.workerSources[Ut][Zt.type][Zt.source])return;let Me=this.workerSources[Ut][Zt.type][Zt.source];delete this.workerSources[Ut][Zt.type][Zt.source],Me.removeSource!==void 0&&Me.removeSource(Zt)})),this.actor.registerMessageHandler("RM",Ut=>A._(this,void 0,void 0,function*(){delete this.layerIndexes[Ut],delete this.availableImages[Ut],delete this.workerSources[Ut],delete this.demWorkerSources[Ut]})),this.actor.registerMessageHandler("SR",(Ut,Zt)=>A._(this,void 0,void 0,function*(){this.referrer=Zt})),this.actor.registerMessageHandler("SRPS",(Ut,Zt)=>this._syncRTLPluginState(Ut,Zt)),this.actor.registerMessageHandler("IS",(Ut,Zt)=>A._(this,void 0,void 0,function*(){this.self.importScripts(Zt)})),this.actor.registerMessageHandler("SI",(Ut,Zt)=>this._setImages(Ut,Zt)),this.actor.registerMessageHandler("UL",(Ut,Zt)=>A._(this,void 0,void 0,function*(){this._getLayerIndex(Ut).update(Zt.layers,Zt.removedIds)})),this.actor.registerMessageHandler("SL",(Ut,Zt)=>A._(this,void 0,void 0,function*(){this._getLayerIndex(Ut).replace(Zt)}))}_setImages(Ct,Ut){return A._(this,void 0,void 0,function*(){for(let Zt in this.availableImages[Ct]=Ut,this.workerSources[Ct]){let Me=this.workerSources[Ct][Zt];for(let Be in Me)Me[Be].availableImages=Ut}})}_syncRTLPluginState(Ct,Ut){return A._(this,void 0,void 0,function*(){if(A.bC.isParsed())return A.bC.getState();if(Ut.pluginStatus!=="loading")return A.bC.setState(Ut),Ut;let Zt=Ut.pluginURL;if(this.self.importScripts(Zt),A.bC.isParsed()){let Me={pluginStatus:"loaded",pluginURL:Zt};return A.bC.setState(Me),Me}throw A.bC.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${Zt}`)})}_getAvailableImages(Ct){let Ut=this.availableImages[Ct];return Ut||(Ut=[]),Ut}_getLayerIndex(Ct){let Ut=this.layerIndexes[Ct];return Ut||(Ut=this.layerIndexes[Ct]=new t),Ut}_getWorkerSource(Ct,Ut,Zt){if(this.workerSources[Ct]||(this.workerSources[Ct]={}),this.workerSources[Ct][Ut]||(this.workerSources[Ct][Ut]={}),!this.workerSources[Ct][Ut][Zt]){let Me={sendAsync:(Be,ge)=>(Be.targetMapId=Ct,this.actor.sendAsync(Be,ge))};switch(Ut){case"vector":this.workerSources[Ct][Ut][Zt]=new c(Me,this._getLayerIndex(Ct),this._getAvailableImages(Ct));break;case"geojson":this.workerSources[Ct][Ut][Zt]=new Tt(Me,this._getLayerIndex(Ct),this._getAvailableImages(Ct));break;default:this.workerSources[Ct][Ut][Zt]=new this.externalWorkerSourceTypes[Ut](Me,this._getLayerIndex(Ct),this._getAvailableImages(Ct));break}}return this.workerSources[Ct][Ut][Zt]}_getDEMWorkerSource(Ct,Ut){return this.demWorkerSources[Ct]||(this.demWorkerSources[Ct]={}),this.demWorkerSources[Ct][Ut]||(this.demWorkerSources[Ct][Ut]=new i),this.demWorkerSources[Ct][Ut]}}return A.i(self)&&(self.worker=new It(self)),It})),S("index",["exports","./shared"],(function(A,t){var E={name:"maplibre-gl",description:"BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",version:"4.5.2",main:"dist/maplibre-gl.js",style:"dist/maplibre-gl.css",license:"BSD-3-Clause",homepage:"https://maplibre.org/",funding:"https://github.com/maplibre/maplibre-gl-js?sponsor=1",bugs:{url:"https://github.com/maplibre/maplibre-gl-js/issues/"},repository:{type:"git",url:"git://github.com/maplibre/maplibre-gl-js.git"},types:"dist/maplibre-gl.d.ts",type:"module",dependencies:{"@mapbox/geojson-rewind":"^0.5.2","@mapbox/jsonlint-lines-primitives":"^2.0.2","@mapbox/point-geometry":"^0.1.0","@mapbox/tiny-sdf":"^2.0.6","@mapbox/unitbezier":"^0.0.1","@mapbox/vector-tile":"^1.3.1","@mapbox/whoots-js":"^3.1.0","@maplibre/maplibre-gl-style-spec":"^20.3.0","@types/geojson":"^7946.0.14","@types/geojson-vt":"3.2.5","@types/mapbox__point-geometry":"^0.1.4","@types/mapbox__vector-tile":"^1.3.4","@types/pbf":"^3.0.5","@types/supercluster":"^7.1.3",earcut:"^3.0.0","geojson-vt":"^4.0.2","gl-matrix":"^3.4.3","global-prefix":"^3.0.0",kdbush:"^4.0.2","murmurhash-js":"^1.0.0",pbf:"^3.3.0",potpack:"^2.0.0",quickselect:"^3.0.0",supercluster:"^8.0.1",tinyqueue:"^3.0.0","vt-pbf":"^3.1.3"},devDependencies:{autoprefixer:"^10.4.20","@mapbox/mapbox-gl-rtl-text":"^0.3.0","@mapbox/mvt-fixtures":"^3.10.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-replace":"^5.0.7","@rollup/plugin-strip":"^3.0.4","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6","@types/benchmark":"^2.1.5","@types/cssnano":"^5.0.0","@types/d3":"^7.4.3","@types/diff":"^5.2.1","@types/earcut":"^2.1.4","@types/eslint":"^8.56.7","@types/gl":"^6.0.5","@types/glob":"^8.1.0","@types/jest":"^29.5.12","@types/jsdom":"^21.1.7","@types/minimist":"^1.2.5","@types/murmurhash-js":"^1.0.6","@types/nise":"^1.4.5","@types/node":"^22.1.0","@types/offscreencanvas":"^2019.7.3","@types/pixelmatch":"^5.2.6","@types/pngjs":"^6.0.5","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@types/request":"^2.48.12","@types/shuffle-seed":"^1.1.3","@types/window-or-global":"^1.0.6","@typescript-eslint/eslint-plugin":"^7.18.0","@typescript-eslint/parser":"^7.18.0",address:"^2.0.3",benchmark:"^2.1.4",canvas:"^2.11.2",cssnano:"^7.0.4",d3:"^7.9.0","d3-queue":"^3.0.7","devtools-protocol":"^0.0.1339468",diff:"^5.2.0","dts-bundle-generator":"^9.5.1",eslint:"^8.57.0","eslint-config-mourner":"^3.0.0","eslint-plugin-html":"^8.1.1","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^28.8.0","eslint-plugin-react":"^7.35.0","eslint-plugin-tsdoc":"0.3.0",expect:"^29.7.0",glob:"^11.0.0","is-builtin-module":"^4.0.0",jest:"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-junit":"^16.0.0","jest-monocart-coverage":"^1.1.1","jest-webgl-canvas-mock":"^2.5.3",jsdom:"^24.1.1","junit-report-builder":"^5.0.0",minimist:"^1.2.8","mock-geolocation":"^1.0.11","monocart-coverage-reports":"^2.10.2",nise:"^6.0.0","npm-font-open-sans":"^1.1.0","npm-run-all":"^4.1.5","pdf-merger-js":"^5.1.2",pixelmatch:"^6.0.0",pngjs:"^7.0.0",postcss:"^8.4.41","postcss-cli":"^11.0.0","postcss-inline-svg":"^6.0.0","pretty-bytes":"^6.1.1",puppeteer:"^23.0.2",react:"^18.3.1","react-dom":"^18.3.1",rollup:"^4.20.0","rollup-plugin-sourcemaps":"^0.6.3",rw:"^1.3.3",semver:"^7.6.3","shuffle-seed":"^1.1.6","source-map-explorer":"^2.5.3",st:"^3.0.0",stylelint:"^16.8.1","stylelint-config-standard":"^36.0.1","ts-jest":"^29.2.4","ts-node":"^10.9.2",tslib:"^2.6.3",typedoc:"^0.26.5","typedoc-plugin-markdown":"^4.2.3","typedoc-plugin-missing-exports":"^3.0.0",typescript:"^5.5.4"},overrides:{"postcss-inline-svg":{"css-select":"^5.1.0","dom-serializer":"^2.0.0",htmlparser2:"^8.0.1","postcss-value-parser":"^4.2.0"}},scripts:{"generate-dist-package":"node --no-warnings --loader ts-node/esm build/generate-dist-package.js","generate-shaders":"node --no-warnings --loader ts-node/esm build/generate-shaders.ts","generate-struct-arrays":"node --no-warnings --loader ts-node/esm build/generate-struct-arrays.ts","generate-style-code":"node --no-warnings --loader ts-node/esm build/generate-style-code.ts","generate-typings":"dts-bundle-generator --export-referenced-types --umd-module-name=maplibregl -o ./dist/maplibre-gl.d.ts ./src/index.ts","generate-docs":"typedoc && node --no-warnings --loader ts-node/esm build/generate-docs.ts","generate-images":"node --no-warnings --loader ts-node/esm build/generate-doc-images.ts","build-dist":"npm run build-css && npm run generate-typings && npm run build-dev && npm run build-csp-dev && npm run build-prod && npm run build-prod-unminified && npm run build-csp","build-dev":"rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev","watch-dev":"rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:dev --watch","build-prod":"rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production,MINIFY:true","build-prod-unminified":"rollup --configPlugin @rollup/plugin-typescript -c --environment BUILD:production","build-csp":"rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts --environment BUILD:production,MINIFY:true","build-csp-dev":"rollup --configPlugin @rollup/plugin-typescript -c rollup.config.csp.ts --environment BUILD:dev","build-css":"postcss -o dist/maplibre-gl.css src/css/maplibre-gl.css","watch-css":"postcss --watch -o dist/maplibre-gl.css src/css/maplibre-gl.css","build-benchmarks":"npm run build-dev && rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts","watch-benchmarks":"rollup --configPlugin @rollup/plugin-typescript -c test/bench/rollup_config_benchmarks.ts --watch","start-server":"st --no-cache -H 0.0.0.0 --port 9966 .","start-docs":"docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material",start:"run-p watch-css watch-dev start-server","start-bench":"run-p watch-css watch-benchmarks start-server",lint:"eslint --cache --ext .ts,.tsx,.js,.html --ignore-path .gitignore .","lint-css":"stylelint **/*.css --fix -f verbose",test:"run-p lint lint-css test-render jest",jest:"jest","test-build":"jest --selectProjects=build --reporters=default","test-build-ci":"jest --selectProjects=build","test-integration":"jest --selectProjects=integration --reporters=default","test-integration-ci":"jest --coverage --selectProjects=integration","test-render":"node --no-warnings --loader ts-node/esm test/integration/render/run_render_tests.ts","test-unit":"jest --selectProjects=unit --reporters=default","test-unit-ci":"jest --coverage --selectProjects unit","test-watch-roots":"jest --watch",codegen:"run-p --print-label generate-dist-package generate-style-code generate-struct-arrays generate-shaders && npm run generate-typings",benchmark:"node --no-warnings --loader ts-node/esm test/bench/run-benchmarks.ts","gl-stats":"node --no-warnings --loader ts-node/esm test/bench/gl-stats.ts",prepare:"npm run codegen",typecheck:"tsc --noEmit && tsc --project tsconfig.dist.json",tsnode:"node --experimental-loader=ts-node/esm --no-warnings"},files:["build/","dist/*","src/"],engines:{npm:">=8.1.0",node:">=16.14.0"}};let w=typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),p,c,i={now:w,frameAsync(bt){return new Promise((I,W)=>{let dt=requestAnimationFrame(I);bt.signal.addEventListener("abort",()=>{cancelAnimationFrame(dt),W(t.c())})})},getImageData(bt,I=0){return this.getImageCanvasContext(bt).getImageData(-I,-I,bt.width+2*I,bt.height+2*I)},getImageCanvasContext(bt){let I=window.document.createElement("canvas"),W=I.getContext("2d",{willReadFrequently:!0});if(!W)throw Error("failed to create canvas 2d context");return I.width=bt.width,I.height=bt.height,W.drawImage(bt,0,0,bt.width,bt.height),W},resolveURL(bt){return p||(p=document.createElement("a")),p.href=bt,p.href},hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return matchMedia?(c??(c=matchMedia("(prefers-reduced-motion: reduce)")),c.matches):!1}};class r{static testProp(I){if(!r.docStyle)return I[0];for(let W=0;W{window.removeEventListener("click",r.suppressClickInternal,!0)},0)}static getScale(I){let W=I.getBoundingClientRect();return{x:W.width/I.offsetWidth||1,y:W.height/I.offsetHeight||1,boundingClientRect:W}}static getPoint(I,W,dt){let xt=W.boundingClientRect;return new t.P((dt.clientX-xt.left)/W.x-I.clientLeft,(dt.clientY-xt.top)/W.y-I.clientTop)}static mousePos(I,W){let dt=r.getScale(I);return r.getPoint(I,dt,W)}static touchPos(I,W){let dt=[],xt=r.getScale(I);for(let Nt=0;Nt{a&&f(a),a=null,m=!0},n.onerror=()=>{s=!0,a=null},n.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function x(bt){s||!n||(m?f(bt):a=bt)}function f(bt){let I=bt.createTexture();bt.bindTexture(bt.TEXTURE_2D,I);try{if(bt.texImage2D(bt.TEXTURE_2D,0,bt.RGBA,bt.RGBA,bt.UNSIGNED_BYTE,n),bt.isContextLost())return;o.supported=!0}catch{}bt.deleteTexture(I),s=!0}var v;(function(bt){let I,W,dt,xt;bt.resetRequestQueue=()=>{I=[],W=0,dt=0,xt={}},bt.addThrottleControl=cr=>{let gr=dt++;return xt[gr]=cr,gr},bt.removeThrottleControl=cr=>{delete xt[cr],Ue()};let Nt=()=>{for(let cr of Object.keys(xt))if(xt[cr]())return!0;return!1};bt.getImage=(cr,gr,Ur=!0)=>new Promise((ri,pi)=>{o.supported&&(cr.headers||(cr.headers={}),cr.headers.accept="image/webp,*/*"),t.e(cr,{type:"image"});let xi={abortController:gr,requestParameters:cr,supportImageRefresh:Ur,state:"queued",onError:Mi=>{pi(Mi)},onSuccess:Mi=>{ri(Mi)}};I.push(xi),Ue()});let le=cr=>typeof createImageBitmap=="function"?t.d(cr):t.f(cr),Ae=cr=>t._(this,void 0,void 0,function*(){cr.state="running";let{requestParameters:gr,supportImageRefresh:Ur,onError:ri,onSuccess:pi,abortController:xi}=cr,Mi=Ur===!1&&!t.i(self)&&!t.g(gr.url)&&(!gr.headers||Object.keys(gr.headers).reduce((Xi,$i)=>Xi&&$i==="accept",!0));W++;let Vi=Mi?ir(gr,xi):t.m(gr,xi);try{let Xi=yield Vi;delete cr.abortController,cr.state="completed",Xi.data instanceof HTMLImageElement||t.b(Xi.data)?pi(Xi):Xi.data&&pi({data:yield le(Xi.data),cacheControl:Xi.cacheControl,expires:Xi.expires})}catch(Xi){delete cr.abortController,ri(Xi)}finally{W--,Ue()}}),Ue=()=>{let cr=Nt()?t.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:t.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let gr=W;gr0;gr++){let Ur=I.shift();if(Ur.abortController.signal.aborted){gr--;continue}Ae(Ur)}},ir=(cr,gr)=>new Promise((Ur,ri)=>{let pi=new Image,xi=cr.url,Mi=cr.credentials;Mi&&Mi==="include"?pi.crossOrigin="use-credentials":(Mi&&Mi==="same-origin"||!t.s(xi))&&(pi.crossOrigin="anonymous"),gr.signal.addEventListener("abort",()=>{pi.src="",ri(t.c())}),pi.fetchPriority="high",pi.onload=()=>{pi.onerror=pi.onload=null,Ur({data:pi})},pi.onerror=()=>{pi.onerror=pi.onload=null,!gr.signal.aborted&&ri(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},pi.src=xi})})(v||(v={})),v.resetRequestQueue();class l{constructor(I){this._transformRequestFn=I}transformRequest(I,W){return this._transformRequestFn&&this._transformRequestFn(I,W)||{url:I}}setTransformRequest(I){this._transformRequestFn=I}}function h(){var bt=new t.A(4);return t.A!=Float32Array&&(bt[1]=0,bt[2]=0),bt[0]=1,bt[3]=1,bt}function d(bt,I,W){var dt=I[0],xt=I[1],Nt=I[2],le=I[3],Ae=Math.sin(W),Ue=Math.cos(W);return bt[0]=dt*Ue+Nt*Ae,bt[1]=xt*Ue+le*Ae,bt[2]=dt*-Ae+Nt*Ue,bt[3]=xt*-Ae+le*Ue,bt}function b(){var bt=new t.A(9);return t.A!=Float32Array&&(bt[1]=0,bt[2]=0,bt[3]=0,bt[5]=0,bt[6]=0,bt[7]=0),bt[0]=1,bt[4]=1,bt[8]=1,bt}function M(bt,I){var W=Math.sin(I),dt=Math.cos(I);return bt[0]=dt,bt[1]=W,bt[2]=0,bt[3]=-W,bt[4]=dt,bt[5]=0,bt[6]=0,bt[7]=0,bt[8]=1,bt}function g(){var bt=new t.A(3);return t.A!=Float32Array&&(bt[0]=0,bt[1]=0,bt[2]=0),bt}function k(bt){var I=new t.A(3);return I[0]=bt[0],I[1]=bt[1],I[2]=bt[2],I}function L(bt,I,W){return bt[0]=I[0]+W[0],bt[1]=I[1]+W[1],bt[2]=I[2]+W[2],bt}function u(bt,I,W){return bt[0]=I[0]-W[0],bt[1]=I[1]-W[1],bt[2]=I[2]-W[2],bt}function T(bt,I,W){return bt[0]=I[0]*W,bt[1]=I[1]*W,bt[2]=I[2]*W,bt}function C(bt,I){var W=I[0],dt=I[1],xt=I[2],Nt=W*W+dt*dt+xt*xt;return Nt>0&&(Nt=1/Math.sqrt(Nt)),bt[0]=I[0]*Nt,bt[1]=I[1]*Nt,bt[2]=I[2]*Nt,bt}function _(bt,I){return bt[0]*I[0]+bt[1]*I[1]+bt[2]*I[2]}function F(bt,I,W){var dt=I[0],xt=I[1],Nt=I[2],le=W[0],Ae=W[1],Ue=W[2];return bt[0]=xt*Ue-Nt*Ae,bt[1]=Nt*le-dt*Ue,bt[2]=dt*Ae-xt*le,bt}function O(bt,I,W){var dt=I[0],xt=I[1],Nt=I[2];return bt[0]=dt*W[0]+xt*W[3]+Nt*W[6],bt[1]=dt*W[1]+xt*W[4]+Nt*W[7],bt[2]=dt*W[2]+xt*W[5]+Nt*W[8],bt}var j=u;(function(){var bt=g();return function(I,W,dt,xt,Nt,le){var Ae,Ue;for(W||(W=3),dt||(dt=0),Ue=xt?Math.min(xt*W+dt,I.length):I.length,Ae=dt;Ae0){let W=[];for(let{id:dt,url:xt}of bt){let Nt=`${dt}${xt}`;W.indexOf(Nt)===-1&&(W.push(Nt),I.push({id:dt,url:xt}))}}return I}function Y(bt,I,W){let dt=bt.split("?");return dt[0]+=`${I}${W}`,dt.join("?")}function K(bt,I,W,dt){return t._(this,void 0,void 0,function*(){let xt=V(bt),Nt=W>1?"@2x":"",le={},Ae={};for(let{id:Ue,url:ir}of xt){let cr=I.transformRequest(Y(ir,Nt,".json"),"SpriteJSON");le[Ue]=t.h(cr,dt);let gr=I.transformRequest(Y(ir,Nt,".png"),"SpriteImage");Ae[Ue]=v.getImage(gr,dt)}return yield Promise.all([...Object.values(le),...Object.values(Ae)]),nt(le,Ae)})}function nt(bt,I){return t._(this,void 0,void 0,function*(){let W={};for(let dt in bt){W[dt]={};let xt=i.getImageCanvasContext((yield I[dt]).data),Nt=(yield bt[dt]).data;for(let le in Nt){let{width:Ae,height:Ue,x:ir,y:cr,sdf:gr,pixelRatio:Ur,stretchX:ri,stretchY:pi,content:xi,textFitWidth:Mi,textFitHeight:Vi}=Nt[le],Xi={width:Ae,height:Ue,x:ir,y:cr,context:xt};W[dt][le]={data:null,pixelRatio:Ur,sdf:gr,stretchX:ri,stretchY:pi,content:xi,textFitWidth:Mi,textFitHeight:Vi,spriteData:Xi}}}return W})}class ft{constructor(I,W,dt,xt){this.context=I,this.format=dt,this.texture=I.gl.createTexture(),this.update(W,xt)}update(I,W,dt){let{width:xt,height:Nt}=I,le=(!this.size||this.size[0]!==xt||this.size[1]!==Nt)&&!dt,{context:Ae}=this,{gl:Ue}=Ae;if(this.useMipmap=!!(W&&W.useMipmap),Ue.bindTexture(Ue.TEXTURE_2D,this.texture),Ae.pixelStoreUnpackFlipY.set(!1),Ae.pixelStoreUnpack.set(1),Ae.pixelStoreUnpackPremultiplyAlpha.set(this.format===Ue.RGBA&&(!W||W.premultiply!==!1)),le)this.size=[xt,Nt],I instanceof HTMLImageElement||I instanceof HTMLCanvasElement||I instanceof HTMLVideoElement||I instanceof ImageData||t.b(I)?Ue.texImage2D(Ue.TEXTURE_2D,0,this.format,this.format,Ue.UNSIGNED_BYTE,I):Ue.texImage2D(Ue.TEXTURE_2D,0,this.format,xt,Nt,0,this.format,Ue.UNSIGNED_BYTE,I.data);else{let{x:ir,y:cr}=dt||{x:0,y:0};I instanceof HTMLImageElement||I instanceof HTMLCanvasElement||I instanceof HTMLVideoElement||I instanceof ImageData||t.b(I)?Ue.texSubImage2D(Ue.TEXTURE_2D,0,ir,cr,Ue.RGBA,Ue.UNSIGNED_BYTE,I):Ue.texSubImage2D(Ue.TEXTURE_2D,0,ir,cr,xt,Nt,Ue.RGBA,Ue.UNSIGNED_BYTE,I.data)}this.useMipmap&&this.isSizePowerOfTwo()&&Ue.generateMipmap(Ue.TEXTURE_2D)}bind(I,W,dt){let{context:xt}=this,{gl:Nt}=xt;Nt.bindTexture(Nt.TEXTURE_2D,this.texture),dt===Nt.LINEAR_MIPMAP_NEAREST&&!this.isSizePowerOfTwo()&&(dt=Nt.LINEAR),I!==this.filter&&(Nt.texParameteri(Nt.TEXTURE_2D,Nt.TEXTURE_MAG_FILTER,I),Nt.texParameteri(Nt.TEXTURE_2D,Nt.TEXTURE_MIN_FILTER,dt||I),this.filter=I),W!==this.wrap&&(Nt.texParameteri(Nt.TEXTURE_2D,Nt.TEXTURE_WRAP_S,W),Nt.texParameteri(Nt.TEXTURE_2D,Nt.TEXTURE_WRAP_T,W),this.wrap=W)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:I}=this.context;I.deleteTexture(this.texture),this.texture=null}}function ct(bt){let{userImage:I}=bt;return I&&I.render&&I.render()?(bt.data.replace(new Uint8Array(I.data.buffer)),!0):!1}class J extends t.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(I){if(this.loaded!==I&&(this.loaded=I,I)){for(let{ids:W,promiseResolve:dt}of this.requestors)dt(this._getImagesForIds(W));this.requestors=[]}}getImage(I){let W=this.images[I];if(W&&!W.data&&W.spriteData){let dt=W.spriteData;W.data=new t.R({width:dt.width,height:dt.height},dt.context.getImageData(dt.x,dt.y,dt.width,dt.height).data),W.spriteData=null}return W}addImage(I,W){if(this.images[I])throw Error(`Image id ${I} already exist, use updateImage instead`);this._validate(I,W)&&(this.images[I]=W)}_validate(I,W){let dt=!0,xt=W.data||W.spriteData;return this._validateStretch(W.stretchX,xt&&xt.width)||(this.fire(new t.j(Error(`Image "${I}" has invalid "stretchX" value`))),dt=!1),this._validateStretch(W.stretchY,xt&&xt.height)||(this.fire(new t.j(Error(`Image "${I}" has invalid "stretchY" value`))),dt=!1),this._validateContent(W.content,W)||(this.fire(new t.j(Error(`Image "${I}" has invalid "content" value`))),dt=!1),dt}_validateStretch(I,W){if(!I)return!0;let dt=0;for(let xt of I){if(xt[0]{let xt=!0;if(!this.isLoaded())for(let Nt of I)this.images[Nt]||(xt=!1);this.isLoaded()||xt?W(this._getImagesForIds(I)):this.requestors.push({ids:I,promiseResolve:W})})}_getImagesForIds(I){let W={};for(let dt of I){let xt=this.getImage(dt);xt||(xt=(this.fire(new t.k("styleimagemissing",{id:dt})),this.getImage(dt))),xt?W[dt]={data:xt.data.clone(),pixelRatio:xt.pixelRatio,sdf:xt.sdf,version:xt.version,stretchX:xt.stretchX,stretchY:xt.stretchY,content:xt.content,textFitWidth:xt.textFitWidth,textFitHeight:xt.textFitHeight,hasRenderCallback:!!(xt.userImage&&xt.userImage.render)}:t.w(`Image "${dt}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return W}getPixelSize(){let{width:I,height:W}=this.atlasImage;return{width:I,height:W}}getPattern(I){let W=this.patterns[I],dt=this.getImage(I);if(!dt)return null;if(W&&W.position.version===dt.version)return W.position;if(W)W.position.version=dt.version;else{let xt={w:dt.data.width+2,h:dt.data.height+2,x:0,y:0},Nt=new t.I(xt,dt);this.patterns[I]={bin:xt,position:Nt}}return this._updatePatternAtlas(),this.patterns[I].position}bind(I){let W=I.gl;this.atlasTexture?this.dirty&&(this.dirty=(this.atlasTexture.update(this.atlasImage),!1)):this.atlasTexture=new ft(I,this.atlasImage,W.RGBA),this.atlasTexture.bind(W.LINEAR,W.CLAMP_TO_EDGE)}_updatePatternAtlas(){let I=[];for(let Nt in this.patterns)I.push(this.patterns[Nt].bin);let{w:W,h:dt}=t.p(I),xt=this.atlasImage;for(let Nt in xt.resize({width:W||1,height:dt||1}),this.patterns){let{bin:le}=this.patterns[Nt],Ae=le.x+1,Ue=le.y+1,ir=this.getImage(Nt).data,cr=ir.width,gr=ir.height;t.R.copy(ir,xt,{x:0,y:0},{x:Ae,y:Ue},{width:cr,height:gr}),t.R.copy(ir,xt,{x:0,y:gr-1},{x:Ae,y:Ue-1},{width:cr,height:1}),t.R.copy(ir,xt,{x:0,y:0},{x:Ae,y:Ue+gr},{width:cr,height:1}),t.R.copy(ir,xt,{x:cr-1,y:0},{x:Ae-1,y:Ue},{width:1,height:gr}),t.R.copy(ir,xt,{x:0,y:0},{x:Ae+cr,y:Ue},{width:1,height:gr})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(I){for(let W of I){if(this.callbackDispatchedThisFrame[W])continue;this.callbackDispatchedThisFrame[W]=!0;let dt=this.getImage(W);dt||t.w(`Image with ID: "${W}" was not found`),ct(dt)&&this.updateImage(W,dt)}}}function et(bt,I,W,dt){return t._(this,void 0,void 0,function*(){let xt=I*256,Nt=xt+255,le=dt.transformRequest(W.replace("{fontstack}",bt).replace("{range}",`${xt}-${Nt}`),"Glyphs"),Ae=yield t.l(le,new AbortController);if(!Ae||!Ae.data)throw Error(`Could not load glyph range. range: ${I}, ${xt}-${Nt}`);let Ue={};for(let ir of t.n(Ae.data))Ue[ir.id]=ir;return Ue})}let Q=1e20;class Z{constructor({fontSize:I=24,buffer:W=3,radius:dt=8,cutoff:xt=.25,fontFamily:Nt="sans-serif",fontWeight:le="normal",fontStyle:Ae="normal"}={}){this.buffer=W,this.cutoff=xt,this.radius=dt;let Ue=this.size=I+W*4,ir=this.ctx=this._createCanvas(Ue).getContext("2d",{willReadFrequently:!0});ir.font=`${Ae} ${le} ${I}px ${Nt}`,ir.textBaseline="alphabetic",ir.textAlign="left",ir.fillStyle="black",this.gridOuter=new Float64Array(Ue*Ue),this.gridInner=new Float64Array(Ue*Ue),this.f=new Float64Array(Ue),this.z=new Float64Array(Ue+1),this.v=new Uint16Array(Ue)}_createCanvas(I){let W=document.createElement("canvas");return W.width=W.height=I,W}draw(I){let{width:W,actualBoundingBoxAscent:dt,actualBoundingBoxDescent:xt,actualBoundingBoxLeft:Nt,actualBoundingBoxRight:le}=this.ctx.measureText(I),Ae=Math.ceil(dt),Ue=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-Nt))),ir=Math.min(this.size-this.buffer,Ae+Math.ceil(xt)),cr=Ue+2*this.buffer,gr=ir+2*this.buffer,Ur=Math.max(cr*gr,0),ri=new Uint8ClampedArray(Ur),pi={data:ri,width:cr,height:gr,glyphWidth:Ue,glyphHeight:ir,glyphTop:Ae,glyphLeft:0,glyphAdvance:W};if(Ue===0||ir===0)return pi;let{ctx:xi,buffer:Mi,gridInner:Vi,gridOuter:Xi}=this;xi.clearRect(Mi,Mi,Ue,ir),xi.fillText(I,Mi,Mi+Ae);let $i=xi.getImageData(Mi,Mi,Ue,ir);Xi.fill(Q,0,Ur),Vi.fill(0,0,Ur);for(let xa=0;xa0?mn*mn:0,Vi[on]=mn<0?mn*mn:0}}st(Xi,0,0,cr,gr,cr,this.f,this.v,this.z),st(Vi,Mi,Mi,Ue,ir,cr,this.f,this.v,this.z);for(let xa=0;xa-1);Ue++,Nt[Ue]=Ae,le[Ue]=ir,le[Ue+1]=Q}for(let Ae=0,Ue=0;Ae65535)throw Error("glyphs > 65535 not supported");if(dt.ranges[Nt])return{stack:I,id:W,glyph:xt};if(!this.url)throw Error("glyphsUrl is not set");if(!dt.requests[Nt]){let Ae=rt.loadGlyphRange(I,Nt,this.url,this.requestManager);dt.requests[Nt]=Ae}let le=yield dt.requests[Nt];for(let Ae in le)this._doesCharSupportLocalGlyph(+Ae)||(dt.glyphs[+Ae]=le[+Ae]);return dt.ranges[Nt]=!0,{stack:I,id:W,glyph:le[W]||null}})}_doesCharSupportLocalGlyph(I){return!!this.localIdeographFontFamily&&(t.u["CJK Unified Ideographs"](I)||t.u["Hangul Syllables"](I)||t.u.Hiragana(I)||t.u.Katakana(I))}_tinySDF(I,W,dt){let xt=this.localIdeographFontFamily;if(!xt||!this._doesCharSupportLocalGlyph(dt))return;let Nt=I.tinySDF;if(!Nt){let Ae="400";/bold/i.test(W)?Ae="900":/medium/i.test(W)?Ae="500":/light/i.test(W)&&(Ae="200"),Nt=I.tinySDF=new rt.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:xt,fontWeight:Ae})}let le=Nt.draw(String.fromCharCode(dt));return{id:dt,bitmap:new t.o({width:le.width||60,height:le.height||60},le.data),metrics:{width:le.glyphWidth/2||24,height:le.glyphHeight/2||24,left:le.glyphLeft/2+.5||0,top:le.glyphTop/2-27.5||-8,advance:le.glyphAdvance/2||24,isDoubleResolution:!0}}}}rt.loadGlyphRange=et,rt.TinySDF=Z;class X{constructor(){this.specification=t.v.light.position}possiblyEvaluate(I,W){return t.y(I.expression.evaluate(W))}interpolate(I,W,dt){return{x:t.z.number(I.x,W.x,dt),y:t.z.number(I.y,W.y,dt),z:t.z.number(I.z,W.z,dt)}}}let ut;class lt extends t.E{constructor(I){super(),ut||(ut=new t.q({anchor:new t.D(t.v.light.anchor),position:new X,color:new t.D(t.v.light.color),intensity:new t.D(t.v.light.intensity)})),this._transitionable=new t.T(ut),this.setLight(I),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(I,W={}){if(!this._validate(t.r,I,W))for(let dt in I){let xt=I[dt];dt.endsWith("-transition")?this._transitionable.setTransition(dt.slice(0,-11),xt):this._transitionable.setValue(dt,xt)}}updateTransitions(I){this._transitioning=this._transitionable.transitioned(I,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(I){this.properties=this._transitioning.possiblyEvaluate(I)}_validate(I,W,dt){return dt&&dt.validate===!1?!1:t.t(this,I.call(t.x,{value:W,style:{glyphs:!0,sprite:!0},styleSpec:t.v}))}}let yt=new t.q({"sky-color":new t.D(t.v.sky["sky-color"]),"horizon-color":new t.D(t.v.sky["horizon-color"]),"fog-color":new t.D(t.v.sky["fog-color"]),"fog-ground-blend":new t.D(t.v.sky["fog-ground-blend"]),"horizon-fog-blend":new t.D(t.v.sky["horizon-fog-blend"]),"sky-horizon-blend":new t.D(t.v.sky["sky-horizon-blend"]),"atmosphere-blend":new t.D(t.v.sky["atmosphere-blend"])});class kt extends t.E{constructor(I){super(),this._transitionable=new t.T(yt),this.setSky(I),this._transitioning=this._transitionable.untransitioned()}setSky(I,W={}){if(!this._validate(t.B,I,W))for(let dt in I){let xt=I[dt];dt.endsWith("-transition")?this._transitionable.setTransition(dt.slice(0,-11),xt):this._transitionable.setValue(dt,xt)}}getSky(){return this._transitionable.serialize()}updateTransitions(I){this._transitioning=this._transitionable.transitioned(I,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(I){this.properties=this._transitioning.possiblyEvaluate(I)}_validate(I,W,dt={}){return(dt==null?void 0:dt.validate)===!1?!1:t.t(this,I.call(t.x,t.e({value:W,style:{glyphs:!0,sprite:!0},styleSpec:t.v})))}calculateFogBlendOpacity(I){return I<60?0:I<70?(I-60)/10:1}}class Lt{constructor(I,W){this.width=I,this.height=W,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(I,W){let dt=I.join(",")+String(W);return this.dashEntry[dt]||(this.dashEntry[dt]=this.addDash(I,W)),this.dashEntry[dt]}getDashRanges(I,W,dt){let xt=I.length%2==1,Nt=[],le=xt?-I[I.length-1]*dt:0,Ae=I[0]*dt,Ue=!0;Nt.push({left:le,right:Ae,isDash:Ue,zeroLength:I[0]===0});let ir=I[0];for(let cr=1;cr1&&(ir=I[++Ue]);let gr=Math.abs(cr-ir.left),Ur=Math.abs(cr-ir.right),ri=Math.min(gr,Ur),pi,xi=Nt/dt*(xt+1);if(ir.isDash){let Mi=xt-Math.abs(xi);pi=Math.sqrt(ri*ri+Mi*Mi)}else pi=xt-Math.sqrt(ri*ri+xi*xi);this.data[Ae+cr]=Math.max(0,Math.min(255,pi+128))}}}addRegularDash(I){for(let Ae=I.length-1;Ae>=0;--Ae){let Ue=I[Ae],ir=I[Ae+1];Ue.zeroLength?I.splice(Ae,1):ir&&ir.isDash===Ue.isDash&&(ir.left=Ue.left,I.splice(Ae,1))}let W=I[0],dt=I[I.length-1];W.isDash===dt.isDash&&(W.left=dt.left-this.width,dt.right=W.right+this.width);let xt=this.width*this.nextRow,Nt=0,le=I[Nt];for(let Ae=0;Ae1&&(le=I[++Nt]);let Ue=Math.abs(Ae-le.left),ir=Math.abs(Ae-le.right),cr=Math.min(Ue,ir),gr=le.isDash?cr:-cr;this.data[xt+Ae]=Math.max(0,Math.min(255,gr+128))}}addDash(I,W){let dt=W?7:0,xt=2*dt+1;if(this.nextRow+xt>this.height)return t.w("LineAtlas out of space"),null;let Nt=0;for(let Ae=0;Ae{W.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[Ot]}numActive(){return Object.keys(this.active).length}}let Kt=Math.floor(i.hardwareConcurrency/2);Ht.workerCount=t.C(globalThis)?Math.max(Math.min(Kt,3),1):1;let Gt;function Et(){return Gt||(Gt=new Ht),Gt}function At(){Et().acquire(Ot)}function qt(){let bt=Gt;bt&&(bt.isPreloaded()&&bt.numActive()===1?(bt.release(Ot),Gt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}class jt{constructor(I,W){this.workerPool=I,this.actors=[],this.currentActor=0,this.id=W;let dt=this.workerPool.acquire(W);for(let xt=0;xt{W.remove()}),this.actors=[],I&&this.workerPool.release(this.id)}registerMessageHandler(I,W){for(let dt of this.actors)dt.registerMessageHandler(I,W)}}let de;function Xt(){return de||(de=new jt(Et(),t.G),de.registerMessageHandler("GR",(bt,I,W)=>t.m(I,W))),de}function ye(bt,I){let W=t.H();return t.J(W,W,[1,1,0]),t.K(W,W,[bt.width*.5,bt.height*.5,1]),t.L(W,W,bt.calculatePosMatrix(I.toUnwrapped()))}function Le(bt,I,W){if(bt)for(let dt of bt){let xt=I[dt];if(xt&&xt.source===W&&xt.type==="fill-extrusion")return!0}else for(let dt in I){let xt=I[dt];if(xt.source===W&&xt.type==="fill-extrusion")return!0}return!1}function ve(bt,I,W,dt,xt,Nt){let le=Le(xt&&xt.layers,I,bt.id),Ae=Nt.maxPitchScaleFactor(),Ue=bt.tilesIn(dt,Ae,le);Ue.sort(me);let ir=[];for(let gr of Ue)ir.push({wrappedTileID:gr.tileID.wrapped().key,queryResults:gr.tile.queryRenderedFeatures(I,W,bt._state,gr.queryGeometry,gr.cameraQueryGeometry,gr.scale,xt,Nt,Ae,ye(bt.transform,gr.tileID))});let cr=be(ir);for(let gr in cr)cr[gr].forEach(Ur=>{let ri=Ur.feature,pi=bt.getFeatureState(ri.layer["source-layer"],ri.id);ri.source=ri.layer.source,ri.layer["source-layer"]&&(ri.sourceLayer=ri.layer["source-layer"]),ri.state=pi});return cr}function ke(bt,I,W,dt,xt,Nt,le){let Ae={},Ue=Nt.queryRenderedSymbols(dt),ir=[];for(let cr of Object.keys(Ue).map(Number))ir.push(le[cr]);ir.sort(me);for(let cr of ir){let gr=cr.featureIndex.lookupSymbolFeatures(Ue[cr.bucketInstanceId],I,cr.bucketIndex,cr.sourceLayerIndex,xt.filter,xt.layers,xt.availableImages,bt);for(let Ur in gr){let ri=Ae[Ur]=Ae[Ur]||[],pi=gr[Ur];pi.sort((xi,Mi)=>{let Vi=cr.featureSortOrder;if(Vi){let Xi=Vi.indexOf(xi.featureIndex);return Vi.indexOf(Mi.featureIndex)-Xi}else return Mi.featureIndex-xi.featureIndex});for(let xi of pi)ri.push(xi)}}for(let cr in Ae)Ae[cr].forEach(gr=>{let Ur=gr.feature,ri=W[bt[cr].source].getFeatureState(Ur.layer["source-layer"],Ur.id);Ur.source=Ur.layer.source,Ur.layer["source-layer"]&&(Ur.sourceLayer=Ur.layer["source-layer"]),Ur.state=ri});return Ae}function Pe(bt,I){let W=bt.getRenderableIds().map(Nt=>bt.getTileByID(Nt)),dt=[],xt={};for(let Nt=0;NtNt.id)),xt})}class nr{constructor(I,W){I&&(W?this.setSouthWest(I).setNorthEast(W):Array.isArray(I)&&(I.length===4?this.setSouthWest([I[0],I[1]]).setNorthEast([I[2],I[3]]):this.setSouthWest(I[0]).setNorthEast(I[1])))}setNorthEast(I){return this._ne=I instanceof t.N?new t.N(I.lng,I.lat):t.N.convert(I),this}setSouthWest(I){return this._sw=I instanceof t.N?new t.N(I.lng,I.lat):t.N.convert(I),this}extend(I){let W=this._sw,dt=this._ne,xt,Nt;if(I instanceof t.N)xt=I,Nt=I;else if(I instanceof nr){if(xt=I._sw,Nt=I._ne,!xt||!Nt)return this}else{if(Array.isArray(I))if(I.length===4||I.every(Array.isArray)){let le=I;return this.extend(nr.convert(le))}else{let le=I;return this.extend(t.N.convert(le))}else if(I&&("lng"in I||"lon"in I)&&"lat"in I)return this.extend(t.N.convert(I));return this}return!W&&!dt?(this._sw=new t.N(xt.lng,xt.lat),this._ne=new t.N(Nt.lng,Nt.lat)):(W.lng=Math.min(xt.lng,W.lng),W.lat=Math.min(xt.lat,W.lat),dt.lng=Math.max(Nt.lng,dt.lng),dt.lat=Math.max(Nt.lat,dt.lat)),this}getCenter(){return new t.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new t.N(this.getWest(),this.getNorth())}getSouthEast(){return new t.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(I){let{lng:W,lat:dt}=t.N.convert(I),xt=this._sw.lat<=dt&&dt<=this._ne.lat,Nt=this._sw.lng<=W&&W<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Nt=this._sw.lng>=W&&W>=this._ne.lng),xt&&Nt}static convert(I){return I instanceof nr||!I?I:new nr(I)}static fromLngLat(I,W=0){let dt=360*W/40075017,xt=dt/Math.cos(Math.PI/180*I.lat);return new nr(new t.N(I.lng-xt,I.lat-dt),new t.N(I.lng+xt,I.lat+dt))}}class Vt{constructor(I,W,dt){this.bounds=nr.convert(this.validateBounds(I)),this.minzoom=W||0,this.maxzoom=dt||24}validateBounds(I){return!Array.isArray(I)||I.length!==4?[-180,-90,180,90]:[Math.max(-180,I[0]),Math.max(-90,I[1]),Math.min(180,I[2]),Math.min(90,I[3])]}contains(I){let W=2**I.z,dt={minX:Math.floor(t.O(this.bounds.getWest())*W),minY:Math.floor(t.Q(this.bounds.getNorth())*W),maxX:Math.ceil(t.O(this.bounds.getEast())*W),maxY:Math.ceil(t.Q(this.bounds.getSouth())*W)};return I.x>=dt.minX&&I.x=dt.minY&&I.y{this._options.tiles=I}),this}setUrl(I){return this.setSourceProperty(()=>{this.url=I,this._options.url=I}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}serialize(){return t.e({},this._options)}loadTile(I){return t._(this,void 0,void 0,function*(){let W=I.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),dt={request:this.map._requestManager.transformRequest(W,"Tile"),uid:I.uid,tileID:I.tileID,zoom:I.tileID.overscaledZ,tileSize:this.tileSize*I.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};dt.request.collectResourceTiming=this._collectResourceTiming;let xt="RT";if(!I.actor||I.state==="expired")I.actor=this.dispatcher.getActor(),xt="LT";else if(I.state==="loading")return new Promise((Nt,le)=>{I.reloadPromise={resolve:Nt,reject:le}});I.abortController=new AbortController;try{let Nt=yield I.actor.sendAsync({type:xt,data:dt},I.abortController);if(delete I.abortController,I.aborted)return;this._afterTileLoadWorkerResponse(I,Nt)}catch(Nt){if(delete I.abortController,I.aborted)return;if(Nt&&Nt.status!==404)throw Nt;this._afterTileLoadWorkerResponse(I,null)}})}_afterTileLoadWorkerResponse(I,W){if(W&&W.resourceTiming&&(I.resourceTiming=W.resourceTiming),W&&this.map._refreshExpiredTiles&&I.setExpiryData(W),I.loadVectorData(W,this.map.painter),I.reloadPromise){let dt=I.reloadPromise;I.reloadPromise=null,this.loadTile(I).then(dt.resolve).catch(dt.reject)}}abortTile(I){return t._(this,void 0,void 0,function*(){I.abortController&&(I.abortController.abort(),delete I.abortController),I.actor&&(yield I.actor.sendAsync({type:"AT",data:{uid:I.uid,type:this.type,source:this.id}}))})}unloadTile(I){return t._(this,void 0,void 0,function*(){I.unloadVectorData(),I.actor&&(yield I.actor.sendAsync({type:"RMT",data:{uid:I.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class te extends t.E{constructor(I,W,dt,xt){super(),this.id=I,this.dispatcher=dt,this.setEventedParent(xt),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.e({type:"raster"},W),t.e(this,t.M(W,["url","scheme","tileSize"]))}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let I=yield je(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,I&&(t.e(this,I),I.bounds&&(this.tileBounds=new Vt(I.bounds,this.minzoom,this.maxzoom)),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})))}catch(I){this._tileJSONRequest=null,this.fire(new t.j(I))}})}loaded(){return this._loaded}onAdd(I){this.map=I,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}setSourceProperty(I){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null)),I(),this.load()}setTiles(I){return this.setSourceProperty(()=>{this._options.tiles=I}),this}setUrl(I){return this.setSourceProperty(()=>{this.url=I,this._options.url=I}),this}serialize(){return t.e({},this._options)}hasTile(I){return!this.tileBounds||this.tileBounds.contains(I.canonical)}loadTile(I){return t._(this,void 0,void 0,function*(){let W=I.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);I.abortController=new AbortController;try{let dt=yield v.getImage(this.map._requestManager.transformRequest(W,"Tile"),I.abortController,this.map._refreshExpiredTiles);if(delete I.abortController,I.aborted){I.state="unloaded";return}if(dt&&dt.data){this.map._refreshExpiredTiles&&dt.cacheControl&&dt.expires&&I.setExpiryData({cacheControl:dt.cacheControl,expires:dt.expires});let xt=this.map.painter.context,Nt=xt.gl,le=dt.data;I.texture=this.map.painter.getTileTexture(le.width),I.texture?I.texture.update(le,{useMipmap:!0}):(I.texture=new ft(xt,le,Nt.RGBA,{useMipmap:!0}),I.texture.bind(Nt.LINEAR,Nt.CLAMP_TO_EDGE,Nt.LINEAR_MIPMAP_NEAREST)),I.state="loaded"}}catch(dt){if(delete I.abortController,I.aborted)I.state="unloaded";else if(dt)throw I.state="errored",dt}})}abortTile(I){return t._(this,void 0,void 0,function*(){I.abortController&&(I.abortController.abort(),delete I.abortController)})}unloadTile(I){return t._(this,void 0,void 0,function*(){I.texture&&this.map.painter.saveTileTexture(I.texture)})}hasTransition(){return!1}}class ee extends te{constructor(I,W,dt,xt){super(I,W,dt,xt),this.type="raster-dem",this.maxzoom=22,this._options=t.e({type:"raster-dem"},W),this.encoding=W.encoding||"mapbox",this.redFactor=W.redFactor,this.greenFactor=W.greenFactor,this.blueFactor=W.blueFactor,this.baseShift=W.baseShift}loadTile(I){return t._(this,void 0,void 0,function*(){let W=I.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),dt=this.map._requestManager.transformRequest(W,"Tile");I.neighboringTiles=this._getNeighboringTiles(I.tileID),I.abortController=new AbortController;try{let xt=yield v.getImage(dt,I.abortController,this.map._refreshExpiredTiles);if(delete I.abortController,I.aborted){I.state="unloaded";return}if(xt&&xt.data){let Nt=xt.data;this.map._refreshExpiredTiles&&xt.cacheControl&&xt.expires&&I.setExpiryData({cacheControl:xt.cacheControl,expires:xt.expires});let le=t.b(Nt)&&t.U()?Nt:yield this.readImageNow(Nt),Ae={type:this.type,uid:I.uid,source:this.id,rawImageData:le,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};(!I.actor||I.state==="expired")&&(I.actor=this.dispatcher.getActor(),I.dem=yield I.actor.sendAsync({type:"LDT",data:Ae}),I.needsHillshadePrepare=!0,I.needsTerrainPrepare=!0,I.state="loaded")}}catch(xt){if(delete I.abortController,I.aborted)I.state="unloaded";else if(xt)throw I.state="errored",xt}})}readImageNow(I){return t._(this,void 0,void 0,function*(){if(typeof VideoFrame<"u"&&t.V()){let W=I.width+2,dt=I.height+2;try{return new t.R({width:W,height:dt},yield t.W(I,-1,-1,W,dt))}catch{}}return i.getImageData(I,1)})}_getNeighboringTiles(I){let W=I.canonical,dt=2**W.z,xt=(W.x-1+dt)%dt,Nt=W.x===0?I.wrap-1:I.wrap,le=(W.x+1+dt)%dt,Ae=W.x+1===dt?I.wrap+1:I.wrap,Ue={};return Ue[new t.S(I.overscaledZ,Nt,W.z,xt,W.y).key]={backfilled:!1},Ue[new t.S(I.overscaledZ,Ae,W.z,le,W.y).key]={backfilled:!1},W.y>0&&(Ue[new t.S(I.overscaledZ,Nt,W.z,xt,W.y-1).key]={backfilled:!1},Ue[new t.S(I.overscaledZ,I.wrap,W.z,W.x,W.y-1).key]={backfilled:!1},Ue[new t.S(I.overscaledZ,Ae,W.z,le,W.y-1).key]={backfilled:!1}),W.y+10&&t.e(Nt,{resourceTiming:xt}),this.fire(new t.k("data",Object.assign(Object.assign({},Nt),{sourceDataType:"metadata"}))),this.fire(new t.k("data",Object.assign(Object.assign({},Nt),{sourceDataType:"content"})))}catch(dt){if(this._pendingLoads--,this._removed){this.fire(new t.k("dataabort",{dataType:"source"}));return}this.fire(new t.j(dt))}})}loaded(){return this._pendingLoads===0}loadTile(I){return t._(this,void 0,void 0,function*(){let W=I.actor?"RT":"LT";I.actor=this.actor;let dt={type:this.type,uid:I.uid,tileID:I.tileID,zoom:I.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};I.abortController=new AbortController;let xt=yield this.actor.sendAsync({type:W,data:dt},I.abortController);delete I.abortController,I.unloadVectorData(),I.aborted||I.loadVectorData(xt,this.map.painter,W==="RT")})}abortTile(I){return t._(this,void 0,void 0,function*(){I.abortController&&(I.abortController.abort(),delete I.abortController),I.aborted=!0})}unloadTile(I){return t._(this,void 0,void 0,function*(){I.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:I.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return t.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Wt=t.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class $t extends t.E{constructor(I,W,dt,xt){super(),this.id=I,this.dispatcher=dt,this.coordinates=W.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(xt),this.options=W}load(I){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let W=yield v.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,W&&W.data&&(this.image=W.data,I&&(this.coordinates=I),this._finishLoading())}catch(W){this._request=null,this._loaded=!0,this.fire(new t.j(W))}})}loaded(){return this._loaded}updateImage(I){return I.url?(this._request&&(this._request=(this._request.abort(),null)),this.options.url=I.url,this.load(I.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(I){this.map=I,this.load()}onRemove(){this._request&&(this._request=(this._request.abort(),null))}setCoordinates(I){this.coordinates=I;let W=I.map(t.Z.fromLngLat);this.tileID=Tt(W),this.minzoom=this.maxzoom=this.tileID.z;let dt=W.map(xt=>this.tileID.getTilePoint(xt)._round());return this._boundsArray=new t.$,this._boundsArray.emplaceBack(dt[0].x,dt[0].y,0,0),this._boundsArray.emplaceBack(dt[1].x,dt[1].y,t.X,0),this._boundsArray.emplaceBack(dt[3].x,dt[3].y,0,t.X),this._boundsArray.emplaceBack(dt[2].x,dt[2].y,t.X,t.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let I=this.map.painter.context,W=I.gl;this.boundsBuffer||(this.boundsBuffer=I.createVertexBuffer(this._boundsArray,Wt.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new ft(I,this.image,W.RGBA),this.texture.bind(W.LINEAR,W.CLAMP_TO_EDGE));let dt=!1;for(let xt in this.tiles){let Nt=this.tiles[xt];Nt.state!=="loaded"&&(Nt.state="loaded",Nt.texture=this.texture,dt=!0)}dt&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(I){return t._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(I.tileID.canonical)?(this.tiles[String(I.tileID.wrap)]=I,I.buckets={}):I.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}function Tt(bt){let I=1/0,W=1/0,dt=-1/0,xt=-1/0;for(let cr of bt)I=Math.min(I,cr.x),W=Math.min(W,cr.y),dt=Math.max(dt,cr.x),xt=Math.max(xt,cr.y);let Nt=dt-I,le=xt-W,Ae=Math.max(Nt,le),Ue=Math.max(0,Math.floor(-Math.log(Ae)/Math.LN2)),ir=2**Ue;return new t.a1(Ue,Math.floor((I+dt)/2*ir),Math.floor((W+xt)/2*ir))}class _t extends $t{constructor(I,W,dt,xt){super(I,W,dt,xt),this.roundZoom=!0,this.type="video",this.options=W}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1;let I=this.options;this.urls=[];for(let W of I.urls)this.urls.push(this.map._requestManager.transformRequest(W,"Source").url);try{let W=yield t.a3(this.urls);if(this._loaded=!0,!W)return;this.video=W,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(W){this.fire(new t.j(W))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(I){if(this.video){let W=this.video.seekable;IW.end(0)?this.fire(new t.j(new t.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${W.start(0)} and ${W.end(0)}-second mark.`))):this.video.currentTime=I}}getVideo(){return this.video}onAdd(I){this.map||(this.map=I,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let I=this.map.painter.context,W=I.gl;this.boundsBuffer||(this.boundsBuffer=I.createVertexBuffer(this._boundsArray,Wt.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(W.LINEAR,W.CLAMP_TO_EDGE),W.texSubImage2D(W.TEXTURE_2D,0,0,0,W.RGBA,W.UNSIGNED_BYTE,this.video)):(this.texture=new ft(I,this.video,W.RGBA),this.texture.bind(W.LINEAR,W.CLAMP_TO_EDGE));let dt=!1;for(let xt in this.tiles){let Nt=this.tiles[xt];Nt.state!=="loaded"&&(Nt.state="loaded",Nt.texture=this.texture,dt=!0)}dt&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class It extends $t{constructor(I,W,dt,xt){super(I,W,dt,xt),W.coordinates?(!Array.isArray(W.coordinates)||W.coordinates.length!==4||W.coordinates.some(Nt=>!Array.isArray(Nt)||Nt.length!==2||Nt.some(le=>typeof le!="number")))&&this.fire(new t.j(new t.a2(`sources.${I}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.j(new t.a2(`sources.${I}`,null,'missing required property "coordinates"'))),W.animate&&typeof W.animate!="boolean"&&this.fire(new t.j(new t.a2(`sources.${I}`,null,'optional "animate" property must be a boolean value'))),W.canvas?typeof W.canvas!="string"&&!(W.canvas instanceof HTMLCanvasElement)&&this.fire(new t.j(new t.a2(`sources.${I}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.j(new t.a2(`sources.${I}`,null,'missing required property "canvas"'))),this.options=W,this.animate=W.animate===void 0?!0:W.animate}load(){return t._(this,void 0,void 0,function*(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new t.j(Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this._playing=(this.prepare(),!1))},this._finishLoading()})}getCanvas(){return this.canvas}onAdd(I){this.map=I,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let I=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,I=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,I=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let W=this.map.painter.context,dt=W.gl;this.boundsBuffer||(this.boundsBuffer=W.createVertexBuffer(this._boundsArray,Wt.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?(I||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new ft(W,this.canvas,dt.RGBA,{premultiply:!0});let xt=!1;for(let Nt in this.tiles){let le=this.tiles[Nt];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,xt=!0)}xt&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let I of[this.canvas.width,this.canvas.height])if(isNaN(I)||I<=0)return!0;return!1}}let Mt={},Ct=(bt,I,W,dt)=>{let xt=new(Ut(I.type))(bt,I,W,dt);if(xt.id!==bt)throw Error(`Expected Source id to be ${bt} instead of ${xt.id}`);return xt},Ut=bt=>{switch(bt){case"geojson":return Bt;case"image":return $t;case"raster":return te;case"raster-dem":return ee;case"vector":return Qt;case"video":return _t;case"canvas":return It}return Mt[bt]},Zt=(bt,I)=>{Mt[bt]=I},Me=(bt,I)=>t._(void 0,void 0,void 0,function*(){if(Ut(bt))throw Error(`A source type called "${bt}" already exists.`);Zt(bt,I)});function Be(bt,I){let W={};if(!I)return W;for(let dt of bt){let xt=dt.layerIds.map(Nt=>I.getLayer(Nt)).filter(Boolean);if(xt.length!==0){dt.layers=xt,dt.stateDependentLayerIds&&(dt.stateDependentLayers=dt.stateDependentLayerIds.map(Nt=>xt.filter(le=>le.id===Nt)[0]));for(let Nt of xt)W[Nt.id]=dt}}return W}let ge="RTLPluginLoaded";class Ee extends t.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Xt()}_syncState(I){return this.status=I,this.dispatcher.broadcast("SRPS",{pluginStatus:I,pluginURL:this.url}).catch(W=>{throw this.status="error",W})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(I){return t._(this,arguments,void 0,function*(W,dt=!1){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=i.resolveURL(W),!this.url)throw Error(`requested url ${W} is invalid`);if(this.status==="unavailable")if(dt)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()})}_requestImport(){return t._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new t.k(ge))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Ne=null;function sr(){return Ne||(Ne=new Ee),Ne}class _e{constructor(I,W){this.timeAdded=0,this.fadeEndTime=0,this.tileID=I,this.uid=t.a4(),this.uses=0,this.tileSize=W,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(I){let W=I+this.timeAdded;Wdt)xt=!1;else if(!W)xt=!0;else if(this.expirationTime{this.remove(I,Nt)},dt)),this.data[xt].push(Nt),this.order.push(xt),this.order.length>this.max){let le=this._getAndRemoveByKey(this.order[0]);le&&this.onRemove(le)}return this}has(I){return I.wrapped().key in this.data}getAndRemove(I){return this.has(I)?this._getAndRemoveByKey(I.wrapped().key):null}_getAndRemoveByKey(I){let W=this.data[I].shift();return W.timeout&&clearTimeout(W.timeout),this.data[I].length===0&&delete this.data[I],this.order.splice(this.order.indexOf(I),1),W.value}getByKey(I){let W=this.data[I];return W?W[0].value:null}get(I){return this.has(I)?this.data[I.wrapped().key][0].value:null}remove(I,W){if(!this.has(I))return this;let dt=I.wrapped().key,xt=W===void 0?0:this.data[dt].indexOf(W),Nt=this.data[dt][xt];return this.data[dt].splice(xt,1),Nt.timeout&&clearTimeout(Nt.timeout),this.data[dt].length===0&&delete this.data[dt],this.onRemove(Nt.value),this.order.splice(this.order.indexOf(dt),1),this}setMaxSize(I){for(this.max=I;this.order.length>this.max;){let W=this._getAndRemoveByKey(this.order[0]);W&&this.onRemove(W)}return this}filter(I){let W=[];for(let dt in this.data)for(let xt of this.data[dt])I(xt.value)||W.push(xt);for(let dt of W)this.remove(dt.value.tileID,dt)}}class or{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(I,W,dt){let xt=String(W);if(this.stateChanges[I]=this.stateChanges[I]||{},this.stateChanges[I][xt]=this.stateChanges[I][xt]||{},t.e(this.stateChanges[I][xt],dt),this.deletedStates[I]===null)for(let Nt in this.deletedStates[I]={},this.state[I])Nt!==xt&&(this.deletedStates[I][Nt]=null);else if(this.deletedStates[I]&&this.deletedStates[I][xt]===null)for(let Nt in this.deletedStates[I][xt]={},this.state[I][xt])dt[Nt]||(this.deletedStates[I][xt][Nt]=null);else for(let Nt in dt)this.deletedStates[I]&&this.deletedStates[I][xt]&&this.deletedStates[I][xt][Nt]===null&&delete this.deletedStates[I][xt][Nt]}removeFeatureState(I,W,dt){if(this.deletedStates[I]===null)return;let xt=String(W);if(this.deletedStates[I]=this.deletedStates[I]||{},dt&&W!==void 0)this.deletedStates[I][xt]!==null&&(this.deletedStates[I][xt]=this.deletedStates[I][xt]||{},this.deletedStates[I][xt][dt]=null);else if(W!==void 0)if(this.stateChanges[I]&&this.stateChanges[I][xt])for(dt in this.deletedStates[I][xt]={},this.stateChanges[I][xt])this.deletedStates[I][xt][dt]=null;else this.deletedStates[I][xt]=null;else this.deletedStates[I]=null}getState(I,W){let dt=String(W),xt=this.state[I]||{},Nt=this.stateChanges[I]||{},le=t.e({},xt[dt],Nt[dt]);if(this.deletedStates[I]===null)return{};if(this.deletedStates[I]){let Ae=this.deletedStates[I][W];if(Ae===null)return{};for(let Ue in Ae)delete le[Ue]}return le}initializeTileState(I,W){I.setFeatureState(this.state,W)}coalesceChanges(I,W){let dt={};for(let xt in this.stateChanges){this.state[xt]=this.state[xt]||{};let Nt={};for(let le in this.stateChanges[xt])this.state[xt][le]||(this.state[xt][le]={}),t.e(this.state[xt][le],this.stateChanges[xt][le]),Nt[le]=this.state[xt][le];dt[xt]=Nt}for(let xt in this.deletedStates){this.state[xt]=this.state[xt]||{};let Nt={};if(this.deletedStates[xt]===null)for(let le in this.state[xt])Nt[le]={},this.state[xt][le]={};else for(let le in this.deletedStates[xt]){if(this.deletedStates[xt][le]===null)this.state[xt][le]={};else for(let Ae of Object.keys(this.deletedStates[xt][le]))delete this.state[xt][le][Ae];Nt[le]=this.state[xt][le]}dt[xt]=dt[xt]||{},t.e(dt[xt],Nt)}if(this.stateChanges={},this.deletedStates={},Object.keys(dt).length!==0)for(let xt in I)I[xt].setFeatureState(dt,W)}}class Pr extends t.E{constructor(I,W,dt){super(),this.id=I,this.dispatcher=dt,this.on("data",xt=>this._dataHandler(xt)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=Ct(I,W,dt,this),this._tiles={},this._cache=new He(0,xt=>this._unloadTile(xt)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new or,this._didEmitContent=!1,this._updated=!1}onAdd(I){this.map=I,this._maxTileCacheSize=I?I._maxTileCacheSize:null,this._maxTileCacheZoomLevels=I?I._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(I)}onRemove(I){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(I)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let I in this._tiles){let W=this._tiles[I];if(W.state!=="loaded"&&W.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let I=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,I&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(I,W,dt){return t._(this,void 0,void 0,function*(){try{yield this._source.loadTile(I),this._tileLoaded(I,W,dt)}catch(xt){I.state="errored",xt.status===404?this.update(this.transform,this.terrain):this._source.fire(new t.j(xt,{tile:I}))}})}_unloadTile(I){this._source.unloadTile&&this._source.unloadTile(I)}_abortTile(I){this._source.abortTile&&this._source.abortTile(I),this._source.fire(new t.k("dataabort",{tile:I,coord:I.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(I){for(let W in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){let dt=this._tiles[W];dt.upload(I),dt.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(I=>I.tileID).sort(br).map(I=>I.key)}getRenderableIds(I){let W=[];for(let dt in this._tiles)this._isIdRenderable(dt,I)&&W.push(this._tiles[dt]);return I?W.sort((dt,xt)=>{let Nt=dt.tileID,le=xt.tileID,Ae=new t.P(Nt.canonical.x,Nt.canonical.y)._rotate(this.transform.angle),Ue=new t.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle);return Nt.overscaledZ-le.overscaledZ||Ue.y-Ae.y||Ue.x-Ae.x}).map(dt=>dt.tileID.key):W.map(dt=>dt.tileID).sort(br).map(dt=>dt.key)}hasRenderableParent(I){let W=this.findLoadedParent(I,0);return W?this._isIdRenderable(W.tileID.key):!1}_isIdRenderable(I,W){return this._tiles[I]&&this._tiles[I].hasData()&&!this._coveredTiles[I]&&(W||!this._tiles[I].holdingForFade())}reload(){if(this._paused){this._shouldReloadOnResume=!0;return}for(let I in this._cache.reset(),this._tiles)this._tiles[I].state!=="errored"&&this._reloadTile(I,"reloading")}_reloadTile(I,W){return t._(this,void 0,void 0,function*(){let dt=this._tiles[I];dt&&(dt.state!=="loading"&&(dt.state=W),yield this._loadTile(dt,I,W))})}_tileLoaded(I,W,dt){I.timeAdded=i.now(),dt==="expired"&&(I.refreshedUponExpiration=!0),this._setTileReloadTimer(W,I),this.getSource().type==="raster-dem"&&I.dem&&this._backfillDEM(I),this._state.initializeTileState(I,this.map?this.map.painter:null),I.aborted||this._source.fire(new t.k("data",{dataType:"source",tile:I,coord:I.tileID}))}_backfillDEM(I){let W=this.getRenderableIds();for(let xt=0;xt1||(Math.abs(le)>1&&(Math.abs(le+Ue)===1?le+=Ue:Math.abs(le-Ue)===1&&(le-=Ue)),!(!Nt.dem||!xt.dem)&&(xt.dem.backfillBorder(Nt.dem,le,Ae),xt.neighboringTiles&&xt.neighboringTiles[ir]&&(xt.neighboringTiles[ir].backfilled=!0)))}}getTile(I){return this.getTileByID(I.key)}getTileByID(I){return this._tiles[I]}_retainLoadedChildren(I,W,dt,xt){for(let Nt in this._tiles){let le=this._tiles[Nt];if(xt[Nt]||!le.hasData()||le.tileID.overscaledZ<=W||le.tileID.overscaledZ>dt)continue;let Ae=le.tileID;for(;le&&le.tileID.overscaledZ>W+1;){let ir=le.tileID.scaledTo(le.tileID.overscaledZ-1);le=this._tiles[ir.key],le&&le.hasData()&&(Ae=ir)}let Ue=Ae;for(;Ue.overscaledZ>W;)if(Ue=Ue.scaledTo(Ue.overscaledZ-1),I[Ue.key]){xt[Ae.key]=Ae;break}}}findLoadedParent(I,W){if(I.key in this._loadedParentTiles){let dt=this._loadedParentTiles[I.key];return dt&&dt.tileID.overscaledZ>=W?dt:null}for(let dt=I.overscaledZ-1;dt>=W;dt--){let xt=I.scaledTo(dt),Nt=this._getLoadedTile(xt);if(Nt)return Nt}}findLoadedSibling(I){return this._getLoadedTile(I)}_getLoadedTile(I){let W=this._tiles[I.key];return W&&W.hasData()?W:this._cache.getByKey(I.wrapped().key)}updateCacheSize(I){let W=(Math.ceil(I.width/this._source.tileSize)+1)*(Math.ceil(I.height/this._source.tileSize)+1),dt=this._maxTileCacheZoomLevels===null?t.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,xt=Math.floor(W*dt),Nt=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,xt):xt;this._cache.setMaxSize(Nt)}handleWrapJump(I){let W=(I-(this._prevLng===void 0?I:this._prevLng))/360,dt=Math.round(W);if(this._prevLng=I,dt){let xt={};for(let Nt in this._tiles){let le=this._tiles[Nt];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+dt),xt[le.tileID.key]=le}for(let Nt in this._tiles=xt,this._timers)clearTimeout(this._timers[Nt]),delete this._timers[Nt];for(let Nt in this._tiles){let le=this._tiles[Nt];this._setTileReloadTimer(Nt,le)}}}_updateCoveredAndRetainedTiles(I,W,dt,xt,Nt,le){let Ae={},Ue={},ir=Object.keys(I),cr=i.now();for(let gr of ir){let Ur=I[gr],ri=this._tiles[gr];if(!ri||ri.fadeEndTime!==0&&ri.fadeEndTime<=cr)continue;let pi=this.findLoadedParent(Ur,W),xi=this.findLoadedSibling(Ur),Mi=pi||xi||null;Mi&&(this._addTile(Mi.tileID),Ae[Mi.tileID.key]=Mi.tileID),Ue[gr]=Ur}for(let gr in this._retainLoadedChildren(Ue,xt,dt,I),Ae)I[gr]||(this._coveredTiles[gr]=!0,I[gr]=Ae[gr]);if(le){let gr={},Ur={};for(let ri of Nt)this._tiles[ri.key].hasData()?gr[ri.key]=ri:Ur[ri.key]=ri;for(let ri in Ur){let pi=Ur[ri].children(this._source.maxzoom);this._tiles[pi[0].key]&&this._tiles[pi[1].key]&&this._tiles[pi[2].key]&&this._tiles[pi[3].key]&&(gr[pi[0].key]=I[pi[0].key]=pi[0],gr[pi[1].key]=I[pi[1].key]=pi[1],gr[pi[2].key]=I[pi[2].key]=pi[2],gr[pi[3].key]=I[pi[3].key]=pi[3],delete Ur[ri])}for(let ri in Ur){let pi=Ur[ri],xi=this.findLoadedParent(pi,this._source.minzoom),Mi=this.findLoadedSibling(pi),Vi=xi||Mi||null;if(Vi)for(let Xi in gr[Vi.tileID.key]=I[Vi.tileID.key]=Vi.tileID,gr)gr[Xi].isChildOf(Vi.tileID)&&delete gr[Xi]}for(let ri in this._tiles)gr[ri]||(this._coveredTiles[ri]=!0)}}update(I,W){if(!this._sourceLoaded||this._paused)return;this.transform=I,this.terrain=W,this.updateCacheSize(I),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};let dt;!this.used&&!this.usedForTerrain?dt=[]:this._source.tileID?dt=I.getVisibleUnwrappedCoordinates(this._source.tileID).map(cr=>new t.S(cr.canonical.z,cr.wrap,cr.canonical.z,cr.canonical.x,cr.canonical.y)):(dt=I.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this.usedForTerrain?!1:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:W}),this._source.hasTile&&(dt=dt.filter(cr=>this._source.hasTile(cr))));let xt=I.coveringZoomLevel(this._source),Nt=Math.max(xt-Pr.maxOverzooming,this._source.minzoom),le=Math.max(xt+Pr.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let cr={};for(let gr of dt)if(gr.canonical.z>this._source.minzoom){let Ur=gr.scaledTo(gr.canonical.z-1);cr[Ur.key]=Ur;let ri=gr.scaledTo(Math.max(this._source.minzoom,Math.min(gr.canonical.z,5)));cr[ri.key]=ri}dt=dt.concat(Object.values(cr))}let Ae=dt.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Ae&&this.fire(new t.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let Ue=this._updateRetainedTiles(dt,xt);for(let cr in ue(this._source.type)&&this._updateCoveredAndRetainedTiles(Ue,Nt,le,xt,dt,W),Ue)this._tiles[cr].clearFadeHold();let ir=t.ac(this._tiles,Ue);for(let cr of ir){let gr=this._tiles[cr];gr.hasSymbolBuckets&&!gr.holdingForFade()?gr.setHoldDuration(this.map._fadeDuration):(!gr.hasSymbolBuckets||gr.symbolFadeFinished())&&this._removeTile(cr)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let I in this._tiles)this._tiles[I].holdingForFade()&&this._removeTile(I)}_updateRetainedTiles(I,W){var Ue;let dt={},xt={},Nt=Math.max(W-Pr.maxOverzooming,this._source.minzoom),le=Math.max(W+Pr.maxUnderzooming,this._source.minzoom),Ae={};for(let ir of I){let cr=this._addTile(ir);dt[ir.key]=ir,!cr.hasData()&&Wthis._source.maxzoom){let Ur=ir.children(this._source.maxzoom)[0],ri=this.getTile(Ur);if(ri&&ri.hasData()){dt[Ur.key]=Ur;continue}}else{let Ur=ir.children(this._source.maxzoom);if(dt[Ur[0].key]&&dt[Ur[1].key]&&dt[Ur[2].key]&&dt[Ur[3].key])continue}let gr=cr.wasRequested();for(let Ur=ir.overscaledZ-1;Ur>=Nt;--Ur){let ri=ir.scaledTo(Ur);if(xt[ri.key])break;if(xt[ri.key]=!0,cr=this.getTile(ri),!cr&&gr&&(cr=this._addTile(ri)),cr){let pi=cr.hasData();if((pi||!((Ue=this.map)!=null&&Ue.cancelPendingTileRequestsWhileZooming)||gr)&&(dt[ri.key]=ri),gr=cr.wasRequested(),pi)break}}}return dt}_updateLoadedParentTileCache(){for(let I in this._loadedParentTiles={},this._tiles){let W=[],dt,xt=this._tiles[I].tileID;for(;xt.overscaledZ>0;){if(xt.key in this._loadedParentTiles){dt=this._loadedParentTiles[xt.key];break}W.push(xt.key);let Nt=xt.scaledTo(xt.overscaledZ-1);if(dt=this._getLoadedTile(Nt),dt)break;xt=Nt}for(let Nt of W)this._loadedParentTiles[Nt]=dt}}_updateLoadedSiblingTileCache(){for(let I in this._loadedSiblingTiles={},this._tiles){let W=this._tiles[I].tileID,dt=this._getLoadedTile(W);this._loadedSiblingTiles[W.key]=dt}}_addTile(I){let W=this._tiles[I.key];if(W)return W;W=this._cache.getAndRemove(I),W&&(this._setTileReloadTimer(I.key,W),W.tileID=I,this._state.initializeTileState(W,this.map?this.map.painter:null),this._cacheTimers[I.key]&&(clearTimeout(this._cacheTimers[I.key]),delete this._cacheTimers[I.key],this._setTileReloadTimer(I.key,W)));let dt=W;return W||(W=new _e(I,this._source.tileSize*I.overscaleFactor()),this._loadTile(W,I.key,W.state)),W.uses++,this._tiles[I.key]=W,dt||this._source.fire(new t.k("dataloading",{tile:W,coord:W.tileID,dataType:"source"})),W}_setTileReloadTimer(I,W){I in this._timers&&(clearTimeout(this._timers[I]),delete this._timers[I]);let dt=W.getExpiryTimeout();dt&&(this._timers[I]=setTimeout(()=>{this._reloadTile(I,"expired"),delete this._timers[I]},dt))}_removeTile(I){let W=this._tiles[I];W&&(W.uses--,delete this._tiles[I],this._timers[I]&&(clearTimeout(this._timers[I]),delete this._timers[I]),!(W.uses>0)&&(W.hasData()&&W.state!=="reloading"?this._cache.add(W.tileID,W,W.getExpiryTimeout()):(W.aborted=!0,this._abortTile(W),this._unloadTile(W))))}_dataHandler(I){let W=I.sourceDataType;I.dataType==="source"&&W==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&I.dataType==="source"&&W==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){for(let I in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(I);this._cache.reset()}tilesIn(I,W,dt){let xt=[],Nt=this.transform;if(!Nt)return xt;let le=dt?Nt.getCameraQueryGeometry(I):I,Ae=I.map(pi=>Nt.pointCoordinate(pi,this.terrain)),Ue=le.map(pi=>Nt.pointCoordinate(pi,this.terrain)),ir=this.getIds(),cr=1/0,gr=1/0,Ur=-1/0,ri=-1/0;for(let pi of Ue)cr=Math.min(cr,pi.x),gr=Math.min(gr,pi.y),Ur=Math.max(Ur,pi.x),ri=Math.max(ri,pi.y);for(let pi=0;pi=0&&$i[1].y+Xi>=0){let xa=Ae.map(za=>Mi.getTilePoint(za)),_a=Ue.map(za=>Mi.getTilePoint(za));xt.push({tile:xi,tileID:Mi,queryGeometry:xa,cameraQueryGeometry:_a,scale:Vi})}}return xt}getVisibleCoordinates(I){let W=this.getRenderableIds(I).map(dt=>this._tiles[dt].tileID);for(let dt of W)dt.posMatrix=this.transform.calculatePosMatrix(dt.toUnwrapped());return W}hasTransition(){if(this._source.hasTransition())return!0;if(ue(this._source.type)){let I=i.now();for(let W in this._tiles)if(this._tiles[W].fadeEndTime>=I)return!0}return!1}setFeatureState(I,W,dt){I||(I="_geojsonTileLayer"),this._state.updateState(I,W,dt)}removeFeatureState(I,W,dt){I||(I="_geojsonTileLayer"),this._state.removeFeatureState(I,W,dt)}getFeatureState(I,W){return I||(I="_geojsonTileLayer"),this._state.getState(I,W)}setDependencies(I,W,dt){let xt=this._tiles[I];xt&&xt.setDependencies(W,dt)}reloadTilesForDependencies(I,W){for(let dt in this._tiles)this._tiles[dt].hasDependency(I,W)&&this._reloadTile(dt,"reloading");this._cache.filter(dt=>!dt.hasDependency(I,W))}}Pr.maxOverzooming=10,Pr.maxUnderzooming=3;function br(bt,I){let W=Math.abs(bt.wrap*2)-+(bt.wrap<0),dt=Math.abs(I.wrap*2)-+(I.wrap<0);return bt.overscaledZ-I.overscaledZ||dt-W||I.canonical.y-bt.canonical.y||I.canonical.x-bt.canonical.x}function ue(bt){return bt==="raster"||bt==="image"||bt==="video"}class we{constructor(I,W){this.reset(I,W)}reset(I,W){this.points=I||[],this._distances=[0];for(let dt=1;dt0?(xt-le)/Ae:0;return this.points[Nt].mult(1-Ue).add(this.points[W].mult(Ue))}}function Ce(bt,I){let W=!0;return bt==="always"||(bt==="never"||I==="never")&&(W=!1),W}class Ge{constructor(I,W,dt){let xt=this.boxCells=[],Nt=this.circleCells=[];this.xCellCount=Math.ceil(I/dt),this.yCellCount=Math.ceil(W/dt);for(let le=0;lethis.width||xt<0||W>this.height)return[];let Ue=[];if(I<=0&&W<=0&&this.width<=dt&&this.height<=xt){if(Nt)return[{key:null,x1:I,y1:W,x2:dt,y2:xt}];for(let ir=0;ir0}hitTestCircle(I,W,dt,xt,Nt){let le=I-dt,Ae=I+dt,Ue=W-dt,ir=W+dt;if(Ae<0||le>this.width||ir<0||Ue>this.height)return!1;let cr=[],gr={hitTest:!0,overlapMode:xt,circle:{x:I,y:W,radius:dt},seenUids:{box:{},circle:{}}};return this._forEachCell(le,Ue,Ae,ir,this._queryCellCircle,cr,gr,Nt),cr.length>0}_queryCell(I,W,dt,xt,Nt,le,Ae,Ue){let{seenUids:ir,hitTest:cr,overlapMode:gr}=Ae,Ur=this.boxCells[Nt];if(Ur!==null){let pi=this.bboxes;for(let xi of Ur)if(!ir.box[xi]){ir.box[xi]=!0;let Mi=xi*4,Vi=this.boxKeys[xi];if(I<=pi[Mi+2]&&W<=pi[Mi+3]&&dt>=pi[Mi+0]&&xt>=pi[Mi+1]&&(!Ue||Ue(Vi))&&(!cr||!Ce(gr,Vi.overlapMode))&&(le.push({key:Vi,x1:pi[Mi],y1:pi[Mi+1],x2:pi[Mi+2],y2:pi[Mi+3]}),cr))return!0}}let ri=this.circleCells[Nt];if(ri!==null){let pi=this.circles;for(let xi of ri)if(!ir.circle[xi]){ir.circle[xi]=!0;let Mi=xi*3,Vi=this.circleKeys[xi];if(this._circleAndRectCollide(pi[Mi],pi[Mi+1],pi[Mi+2],I,W,dt,xt)&&(!Ue||Ue(Vi))&&(!cr||!Ce(gr,Vi.overlapMode))){let Xi=pi[Mi],$i=pi[Mi+1],xa=pi[Mi+2];if(le.push({key:Vi,x1:Xi-xa,y1:$i-xa,x2:Xi+xa,y2:$i+xa}),cr)return!0}}}return!1}_queryCellCircle(I,W,dt,xt,Nt,le,Ae,Ue){let{circle:ir,seenUids:cr,overlapMode:gr}=Ae,Ur=this.boxCells[Nt];if(Ur!==null){let pi=this.bboxes;for(let xi of Ur)if(!cr.box[xi]){cr.box[xi]=!0;let Mi=xi*4,Vi=this.boxKeys[xi];if(this._circleAndRectCollide(ir.x,ir.y,ir.radius,pi[Mi+0],pi[Mi+1],pi[Mi+2],pi[Mi+3])&&(!Ue||Ue(Vi))&&!Ce(gr,Vi.overlapMode))return le.push(!0),!0}}let ri=this.circleCells[Nt];if(ri!==null){let pi=this.circles;for(let xi of ri)if(!cr.circle[xi]){cr.circle[xi]=!0;let Mi=xi*3,Vi=this.circleKeys[xi];if(this._circlesCollide(pi[Mi],pi[Mi+1],pi[Mi+2],ir.x,ir.y,ir.radius)&&(!Ue||Ue(Vi))&&!Ce(gr,Vi.overlapMode))return le.push(!0),!0}}}_forEachCell(I,W,dt,xt,Nt,le,Ae,Ue){let ir=this._convertToXCellCoord(I),cr=this._convertToYCellCoord(W),gr=this._convertToXCellCoord(dt),Ur=this._convertToYCellCoord(xt);for(let ri=ir;ri<=gr;ri++)for(let pi=cr;pi<=Ur;pi++){let xi=this.xCellCount*pi+ri;if(Nt.call(this,I,W,dt,xt,xi,le,Ae,Ue))return}}_convertToXCellCoord(I){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(I*this.xScale)))}_convertToYCellCoord(I){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(I*this.yScale)))}_circlesCollide(I,W,dt,xt,Nt,le){let Ae=xt-I,Ue=Nt-W,ir=dt+le;return ir*ir>Ae*Ae+Ue*Ue}_circleAndRectCollide(I,W,dt,xt,Nt,le,Ae){let Ue=(le-xt)/2,ir=Math.abs(I-(xt+Ue));if(ir>Ue+dt)return!1;let cr=(Ae-Nt)/2,gr=Math.abs(W-(Nt+cr));if(gr>cr+dt)return!1;if(ir<=Ue||gr<=cr)return!0;let Ur=ir-Ue,ri=gr-cr;return Ur*Ur+ri*ri<=dt*dt}}function Ke(bt,I,W,dt,xt){let Nt=t.H();return I?(t.K(Nt,Nt,[1/xt,1/xt,1]),W||t.ae(Nt,Nt,dt.angle)):t.L(Nt,dt.labelPlaneMatrix,bt),Nt}function ar(bt,I,W,dt,xt){if(I){let Nt=t.af(bt);return t.K(Nt,Nt,[xt,xt,1]),W||t.ae(Nt,Nt,-dt.angle),Nt}else return dt.glCoordMatrix}function We(bt,I,W){let dt;W?(dt=[bt.x,bt.y,W(bt.x,bt.y),1],t.ag(dt,dt,I)):(dt=[bt.x,bt.y,0,1],fr(dt,dt,I));let xt=dt[3];return{point:new t.P(dt[0]/xt,dt[1]/xt),signedDistanceFromCamera:xt,isOccluded:!1}}function $e(bt,I){return .5+bt/I*.5}function yr(bt,I){return bt.x>=-I[0]&&bt.x<=I[0]&&bt.y>=-I[1]&&bt.y<=I[1]}function Cr(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,gr,Ur,ri,pi){let xi=dt?bt.textSizeData:bt.iconSizeData,Mi=t.ah(xi,W.transform.zoom),Vi=[256/W.width*2+1,256/W.height*2+1],Xi=dt?bt.text.dynamicLayoutVertexArray:bt.icon.dynamicLayoutVertexArray;Xi.clear();let $i=bt.lineVertexArray,xa=dt?bt.text.placedSymbolArray:bt.icon.placedSymbolArray,_a=W.transform.width/W.transform.height,za=!1;for(let on=0;onMath.abs(W.x-I.x)*dt?{useVertical:!0}:(bt===t.ai.vertical?I.yW.x)?{needsFlipping:!0}:null}function Or(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr){let gr=W/24,Ur=I.lineOffsetX*gr,ri=I.lineOffsetY*gr,pi;if(I.numGlyphs>1){let xi=I.glyphStartIndex+I.numGlyphs,Mi=I.lineStartIndex,Vi=I.lineStartIndex+I.lineLength,Xi=Sr(gr,Ae,Ur,ri,dt,I,cr,bt);if(!Xi)return{notEnoughRoom:!0};let $i=We(Xi.first.point,le,bt.getElevation).point,xa=We(Xi.last.point,le,bt.getElevation).point;if(xt&&!dt){let _a=Dr(I.writingMode,$i,xa,ir);if(_a)return _a}pi=[Xi.first];for(let _a=I.glyphStartIndex+1;_a0?$i.point:ei(bt.tileAnchorPoint,Xi,Mi,1,Nt,bt),_a=Dr(I.writingMode,Mi,xa,ir);if(_a)return _a}let xi=qe(gr*Ae.getoffsetX(I.glyphStartIndex),Ur,ri,dt,I.segment,I.lineStartIndex,I.lineStartIndex+I.lineLength,bt,cr);if(!xi||bt.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};pi=[xi]}for(let xi of pi)t.ak(Ue,xi.point,xi.angle);return{}}function ei(bt,I,W,dt,xt,Nt){return re(bt,I,W,dt,xt,Nt)}function Nr(bt,I,W,dt,xt){return re(bt,I,W,dt,void 0,xt)}function re(bt,I,W,dt,xt,Nt){let le=bt.add(bt.sub(I)._unit()),Ae=xt===void 0?wr(le.x,le.y,Nt).point:We(le,xt,Nt.getElevation).point,Ue=W.sub(Ae);return W.add(Ue._mult(dt/Ue.mag()))}function ae(bt,I,W){let dt=I.projectionCache;if(dt.projections[bt])return dt.projections[bt];let xt=new t.P(I.lineVertexArray.getx(bt),I.lineVertexArray.gety(bt)),Nt=wr(xt.x,xt.y,I);if(Nt.signedDistanceFromCamera>0)return dt.projections[bt]=Nt.point,dt.anyProjectionOccluded=dt.anyProjectionOccluded||Nt.isOccluded,Nt.point;let le=bt-W.direction,Ae=W.distanceFromAnchor===0?I.tileAnchorPoint:new t.P(I.lineVertexArray.getx(le),I.lineVertexArray.gety(le)),Ue=W.absOffsetX-W.distanceFromAnchor+1;return Nr(Ae,xt,W.previousVertex,Ue,I)}function wr(bt,I,W){let dt=bt+W.translation[0],xt=I+W.translation[1],Nt;return!W.pitchWithMap&&W.projection.useSpecialProjectionForSymbols?(Nt=W.projection.projectTileCoordinates(dt,xt,W.unwrappedTileID,W.getElevation),Nt.point.x=(Nt.point.x*.5+.5)*W.width,Nt.point.y=(-Nt.point.y*.5+.5)*W.height):(Nt=We(new t.P(dt,xt),W.labelPlaneMatrix,W.getElevation),Nt.isOccluded=!1),Nt}function _r(bt,I,W){return bt._unit()._perp()._mult(I*W)}function lr(bt,I,W,dt,xt,Nt,le,Ae,Ue){if(Ae.projectionCache.offsets[bt])return Ae.projectionCache.offsets[bt];let ir=W.add(I);if(bt+Ue.direction=xt)return Ae.projectionCache.offsets[bt]=ir,ir;let cr=ae(bt+Ue.direction,Ae,Ue),gr=_r(cr.sub(W),le,Ue.direction),Ur=W.add(gr),ri=cr.add(gr);return Ae.projectionCache.offsets[bt]=t.al(Nt,ir,Ur,ri)||ir,Ae.projectionCache.offsets[bt]}function qe(bt,I,W,dt,xt,Nt,le,Ae,Ue){let ir=dt?bt-I:bt+I,cr=ir>0?1:-1,gr=0;dt&&(cr*=-1,gr=Math.PI),cr<0&&(gr+=Math.PI);let Ur=cr>0?Nt+xt:Nt+xt+1,ri;Ae.projectionCache.cachedAnchorPoint?ri=Ae.projectionCache.cachedAnchorPoint:(ri=wr(Ae.tileAnchorPoint.x,Ae.tileAnchorPoint.y,Ae).point,Ae.projectionCache.cachedAnchorPoint=ri);let pi=ri,xi=ri,Mi,Vi,Xi=0,$i=0,xa=Math.abs(ir),_a=[],za;for(;Xi+$i<=xa;){if(Ur+=cr,Ur=le)return null;Xi+=$i,xi=pi,Vi=Mi;let gn={absOffsetX:xa,direction:cr,distanceFromAnchor:Xi,previousVertex:xi};if(pi=ae(Ur,Ae,gn),W===0)_a.push(xi),za=pi.sub(xi);else{let Qa,un=pi.sub(xi);Qa=un.mag()===0?_r(ae(Ur+cr,Ae,gn).sub(pi),W,cr):_r(un,W,cr),Vi||(Vi=xi.add(Qa)),Mi=lr(Ur,Qa,pi,Nt,le,Vi,W,Ae,gn),_a.push(Vi),za=Mi.sub(Vi)}$i=za.mag()}let on=(xa-Xi)/$i,mn=za._mult(on)._add(Vi||xi),Xn=gr+Math.atan2(pi.y-xi.y,pi.x-xi.x);return _a.push(mn),{point:mn,angle:Ue?Xn:0,path:_a}}let pr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function xr(bt,I){for(let W=0;W=1;he--)mt.push(at.path[he]);for(let he=1;heIe.signedDistanceFromCamera<=0)?[]:he.map(Ie=>Ie.point)}let ie=[];if(mt.length>0){let he=mt[0].clone(),Ie=mt[0].clone();for(let Qe=1;Qe=Rn.x&&Ie.x<=so.x&&he.y>=Rn.y&&Ie.y<=so.y?[mt]:Ie.xso.x||Ie.yso.y?[]:t.am([mt],Rn.x,Rn.y,so.x,so.y)}for(let he of ie){$.reset(he,Dn*.25);let Ie=0;Ie=$.length<=.5*Dn?1:Math.ceil($.paddedLength/Ft)+1;for(let Qe=0;QeWe(xt,dt,W.getElevation))}queryRenderedSymbols(I){if(I.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let W=[],dt=1/0,xt=1/0,Nt=-1/0,le=-1/0;for(let cr of I){let gr=new t.P(cr.x+100,cr.y+100);dt=Math.min(dt,gr.x),xt=Math.min(xt,gr.y),Nt=Math.max(Nt,gr.x),le=Math.max(le,gr.y),W.push(gr)}let Ae=this.grid.query(dt,xt,Nt,le).concat(this.ignoredGrid.query(dt,xt,Nt,le)),Ue={},ir={};for(let cr of Ae){let gr=cr.key;if(Ue[gr.bucketInstanceId]===void 0&&(Ue[gr.bucketInstanceId]={}),Ue[gr.bucketInstanceId][gr.featureIndex])continue;let Ur=[new t.P(cr.x1,cr.y1),new t.P(cr.x2,cr.y1),new t.P(cr.x2,cr.y2),new t.P(cr.x1,cr.y2)];t.an(W,Ur)&&(Ue[gr.bucketInstanceId][gr.featureIndex]=!0,ir[gr.bucketInstanceId]===void 0&&(ir[gr.bucketInstanceId]=[]),ir[gr.bucketInstanceId].push(gr.featureIndex))}return ir}insertCollisionBox(I,W,dt,xt,Nt,le){let Ae=dt?this.ignoredGrid:this.grid,Ue={bucketInstanceId:xt,featureIndex:Nt,collisionGroupID:le,overlapMode:W};Ae.insert(Ue,I[0],I[1],I[2],I[3])}insertCollisionCircles(I,W,dt,xt,Nt,le){let Ae=dt?this.ignoredGrid:this.grid,Ue={bucketInstanceId:xt,featureIndex:Nt,collisionGroupID:le,overlapMode:W};for(let ir=0;ir=this.screenRightBoundary||xt<100||W>this.screenBottomBoundary}isInsideGrid(I,W,dt,xt){return dt>=0&&I=0&&Wthis.projectAndGetPerspectiveRatio(dt,Qa.x,Qa.y,xt,ir));Xn=gn.some(Qa=>!Qa.isOccluded),mn=gn.map(Qa=>Qa.point)}else Xn=!0;return{box:t.ap(mn),allPointsOccluded:!Xn}}}function Br(bt,I,W){return I*(t.X/(bt.tileSize*2**(W-bt.tileID.overscaledZ)))}class $r{constructor(I,W,dt,xt){I?this.opacity=Math.max(0,Math.min(1,I.opacity+(I.placed?W:-W))):this.opacity=xt&&dt?1:0,this.placed=dt}isHidden(){return this.opacity===0&&!this.placed}}class Jr{constructor(I,W,dt,xt,Nt){this.text=new $r(I?I.text:null,W,dt,Nt),this.icon=new $r(I?I.icon:null,W,xt,Nt)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Zi{constructor(I,W,dt){this.text=I,this.icon=W,this.skipFade=dt}}class mi{constructor(){this.invProjMatrix=t.H(),this.viewportMatrix=t.H(),this.circles=[]}}class Ei{constructor(I,W,dt,xt,Nt){this.bucketInstanceId=I,this.featureIndex=W,this.sourceLayerIndex=dt,this.bucketIndex=xt,this.tileID=Nt}}class Di{constructor(I){this.crossSourceCollisions=I,this.maxGroupID=0,this.collisionGroups={}}get(I){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[I]){let W=++this.maxGroupID;this.collisionGroups[I]={ID:W,predicate:dt=>dt.collisionGroupID===W}}return this.collisionGroups[I]}}function Tr(bt,I,W,dt,xt){let{horizontalAlign:Nt,verticalAlign:le}=t.av(bt),Ae=-(Nt-.5)*I,Ue=-(le-.5)*W;return new t.P(Ae+dt[0]*xt,Ue+dt[1]*xt)}class Vr{constructor(I,W,dt,xt,Nt,le){this.transform=I.clone(),this.terrain=dt,this.collisionIndex=new ur(this.transform,W),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=xt,this.retainedQueryData={},this.collisionGroups=new Di(Nt),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=le,le&&(le.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(I){let W=this.terrain;return W?(dt,xt)=>W.getElevation(I,dt,xt):null}getBucketParts(I,W,dt,xt){let Nt=dt.getBucket(W),le=dt.latestFeatureIndex;if(!Nt||!le||W.id!==Nt.layerIds[0])return;let Ae=dt.collisionBoxArray,Ue=Nt.layers[0].layout,ir=Nt.layers[0].paint,cr=2**(this.transform.zoom-dt.tileID.overscaledZ),gr=dt.tileSize/t.X,Ur=dt.tileID.toUnwrapped(),ri=this.transform.calculatePosMatrix(Ur),pi=Ue.get("text-pitch-alignment")==="map",xi=Ue.get("text-rotation-alignment")==="map",Mi=Br(dt,1,this.transform.zoom),Vi=this.collisionIndex.mapProjection.translatePosition(this.transform,dt,ir.get("text-translate"),ir.get("text-translate-anchor")),Xi=this.collisionIndex.mapProjection.translatePosition(this.transform,dt,ir.get("icon-translate"),ir.get("icon-translate-anchor")),$i=Ke(ri,pi,xi,this.transform,Mi),xa=null;if(pi){let za=ar(ri,pi,xi,this.transform,Mi);xa=t.L([],this.transform.labelPlaneMatrix,za)}this.retainedQueryData[Nt.bucketInstanceId]=new Ei(Nt.bucketInstanceId,le,Nt.sourceLayerIndex,Nt.index,dt.tileID);let _a={bucket:Nt,layout:Ue,translationText:Vi,translationIcon:Xi,posMatrix:ri,unwrappedTileID:Ur,textLabelPlaneMatrix:$i,labelToScreenMatrix:xa,scale:cr,textPixelRatio:gr,holdingForFade:dt.holdingForFade(),collisionBoxArray:Ae,partiallyEvaluatedTextSize:t.ah(Nt.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(Nt.sourceID)};if(xt)for(let za of Nt.sortKeyRanges){let{sortKey:on,symbolInstanceStart:mn,symbolInstanceEnd:Xn}=za;I.push({sortKey:on,symbolInstanceStart:mn,symbolInstanceEnd:Xn,parameters:_a})}else I.push({symbolInstanceStart:0,symbolInstanceEnd:Nt.symbolInstances.length,parameters:_a})}attemptAnchorPlacement(I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,gr,Ur,ri,pi,xi,Mi,Vi,Xi,$i){let xa=t.ar[I.textAnchor],_a=[I.textOffset0,I.textOffset1],za=Tr(xa,dt,xt,_a,Nt),on=this.collisionIndex.placeCollisionBox(W,Ur,Ue,ir,cr,Ae,le,Mi,gr.predicate,$i,za);if(!(Xi&&!this.collisionIndex.placeCollisionBox(Xi,Ur,Ue,ir,cr,Ae,le,Vi,gr.predicate,$i,za).placeable)&&on.placeable){let mn;if(this.prevPlacement&&this.prevPlacement.variableOffsets[ri.crossTileID]&&this.prevPlacement.placements[ri.crossTileID]&&this.prevPlacement.placements[ri.crossTileID].text&&(mn=this.prevPlacement.variableOffsets[ri.crossTileID].anchor),ri.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[ri.crossTileID]={textOffset:_a,width:dt,height:xt,anchor:xa,textBoxScale:Nt,prevAnchor:mn},this.markUsedJustification(pi,xa,ri,xi),pi.allowVerticalPlacement&&(this.markUsedOrientation(pi,xi,ri),this.placedOrientations[ri.crossTileID]=xi),{shift:za,placedGlyphBoxes:on}}}placeLayerBucketPart(I,W,dt){let{bucket:xt,layout:Nt,translationText:le,translationIcon:Ae,posMatrix:Ue,unwrappedTileID:ir,textLabelPlaneMatrix:cr,labelToScreenMatrix:gr,textPixelRatio:Ur,holdingForFade:ri,collisionBoxArray:pi,partiallyEvaluatedTextSize:xi,collisionGroup:Mi}=I.parameters,Vi=Nt.get("text-optional"),Xi=Nt.get("icon-optional"),$i=t.as(Nt,"text-overlap","text-allow-overlap"),xa=$i==="always",_a=t.as(Nt,"icon-overlap","icon-allow-overlap"),za=_a==="always",on=Nt.get("text-rotation-alignment")==="map",mn=Nt.get("text-pitch-alignment")==="map",Xn=Nt.get("icon-text-fit")!=="none",gn=Nt.get("symbol-z-order")==="viewport-y",Qa=xa&&(za||!xt.hasIconData()||Xi),un=za&&(xa||!xt.hasTextData()||Vi);!xt.collisionArrays&&pi&&xt.deserializeCollisionBoxes(pi);let Dn=this.retainedQueryData[xt.bucketInstanceId].tileID,Rn=this._getTerrainElevationFunc(Dn),so=($,at,it)=>{var oa,da;if(W[$.crossTileID])return;if(ri){this.placements[$.crossTileID]=new Zi(!1,!1,!1);return}let mt=!1,Ft=!1,ie=!0,he=null,Ie={box:null,placeable:!1,offscreen:null},Qe={box:null,placeable:!1,offscreen:null},vr=null,kr=null,Fr=null,Gr=0,oi=0,Ti=0;at.textFeatureIndex?Gr=at.textFeatureIndex:$.useRuntimeCollisionCircles&&(Gr=$.featureIndex),at.verticalTextFeatureIndex&&(oi=at.verticalTextFeatureIndex);let vi=at.textBox;if(vi){let Aa=en=>{let Xa=t.ai.horizontal;if(xt.allowVerticalPlacement&&!en&&this.prevPlacement){let Ka=this.prevPlacement.placedOrientations[$.crossTileID];Ka&&(this.placedOrientations[$.crossTileID]=Ka,Xa=Ka,this.markUsedOrientation(xt,Xa,$))}return Xa},ga=(en,Xa)=>{if(xt.allowVerticalPlacement&&$.numVerticalGlyphVertices>0&&at.verticalTextBox){for(let Ka of xt.writingModes)if(Ka===t.ai.vertical?(Ie=Xa(),Qe=Ie):Ie=en(),Ie&&Ie.placeable)break}else Ie=en()},Va=$.textAnchorOffsetStartIndex,tn=$.textAnchorOffsetEndIndex;if(tn===Va){let en=(Xa,Ka)=>{let Tn=this.collisionIndex.placeCollisionBox(Xa,$i,Ur,Ue,ir,mn,on,le,Mi.predicate,Rn);return Tn&&Tn.placeable&&(this.markUsedOrientation(xt,Ka,$),this.placedOrientations[$.crossTileID]=Ka),Tn};ga(()=>en(vi,t.ai.horizontal),()=>{let Xa=at.verticalTextBox;return xt.allowVerticalPlacement&&$.numVerticalGlyphVertices>0&&Xa?en(Xa,t.ai.vertical):{box:null,offscreen:null}}),Aa(Ie&&Ie.placeable)}else{let en=t.ar[(da=(oa=this.prevPlacement)==null?void 0:oa.variableOffsets[$.crossTileID])==null?void 0:da.anchor],Xa=(Tn,vo,_n)=>{let Zn=Tn.x2-Tn.x1,Wn=Tn.y2-Tn.y1,Qn=$.textBoxScale,ho=Xn&&_a==="never"?vo:null,io=null,po=$i==="never"?1:2,Po="never";en&&po++;for(let Vn=0;VnXa(vi,at.iconBox,t.ai.horizontal),()=>{let Tn=at.verticalTextBox,vo=Ie&&Ie.placeable;return xt.allowVerticalPlacement&&!vo&&$.numVerticalGlyphVertices>0&&Tn?Xa(Tn,at.verticalIconBox,t.ai.vertical):{box:null,occluded:!0,offscreen:null}}),Ie&&(mt=Ie.placeable,ie=Ie.offscreen);let Ka=Aa(Ie&&Ie.placeable);if(!mt&&this.prevPlacement){let Tn=this.prevPlacement.variableOffsets[$.crossTileID];Tn&&(this.variableOffsets[$.crossTileID]=Tn,this.markUsedJustification(xt,Tn.anchor,$,Ka))}}}if(vr=Ie,mt=vr&&vr.placeable,ie=vr&&vr.offscreen,$.useRuntimeCollisionCircles){let Aa=xt.text.placedSymbolArray.get($.centerJustifiedTextSymbolIndex),ga=t.aj(xt.textSizeData,xi,Aa),Va=Nt.get("text-padding"),tn=$.collisionCircleDiameter;kr=this.collisionIndex.placeCollisionCircles($i,Aa,xt.lineVertexArray,xt.glyphOffsetArray,ga,Ue,ir,cr,gr,dt,mn,Mi.predicate,tn,Va,le,Rn),kr.circles.length&&kr.collisionDetected&&!dt&&t.w("Collisions detected, but collision boxes are not shown"),mt=xa||kr.circles.length>0&&!kr.collisionDetected,ie&&(ie=kr.offscreen)}if(at.iconFeatureIndex&&(Ti=at.iconFeatureIndex),at.iconBox){let Aa=ga=>this.collisionIndex.placeCollisionBox(ga,_a,Ur,Ue,ir,mn,on,Ae,Mi.predicate,Rn,Xn&&he?he:void 0);Qe&&Qe.placeable&&at.verticalIconBox?(Fr=Aa(at.verticalIconBox),Ft=Fr.placeable):(Fr=Aa(at.iconBox),Ft=Fr.placeable),ie&&(ie=Fr.offscreen)}let yi=Vi||$.numHorizontalGlyphVertices===0&&$.numVerticalGlyphVertices===0,Pi=Xi||$.numIconVertices===0;!yi&&!Pi?Ft=mt=Ft&&mt:Pi?yi||Ft&&(Ft=mt):mt=Ft&&mt;let Wi=mt&&vr.placeable,Ta=Ft&&Fr.placeable;if(Wi&&(Qe&&Qe.placeable&&oi?this.collisionIndex.insertCollisionBox(vr.box,$i,Nt.get("text-ignore-placement"),xt.bucketInstanceId,oi,Mi.ID):this.collisionIndex.insertCollisionBox(vr.box,$i,Nt.get("text-ignore-placement"),xt.bucketInstanceId,Gr,Mi.ID)),Ta&&this.collisionIndex.insertCollisionBox(Fr.box,_a,Nt.get("icon-ignore-placement"),xt.bucketInstanceId,Ti,Mi.ID),kr&&mt&&this.collisionIndex.insertCollisionCircles(kr.circles,$i,Nt.get("text-ignore-placement"),xt.bucketInstanceId,Gr,Mi.ID),dt&&this.storeCollisionData(xt.bucketInstanceId,it,at,vr,Fr,kr),$.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(xt.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");this.placements[$.crossTileID]=new Zi(mt||Qa,Ft||un,ie||xt.justReloaded),W[$.crossTileID]=!0};if(gn){if(I.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let $=xt.getSortedSymbolIndexes(this.transform.angle);for(let at=$.length-1;at>=0;--at){let it=$[at];so(xt.symbolInstances.get(it),xt.collisionArrays[it],it)}}else for(let $=I.symbolInstanceStart;$=0&&(le>=0&&Ue!==le?I.text.placedSymbolArray.get(Ue).crossTileID=0:I.text.placedSymbolArray.get(Ue).crossTileID=dt.crossTileID)}markUsedOrientation(I,W,dt){let xt=W===t.ai.horizontal||W===t.ai.horizontalOnly?W:0,Nt=W===t.ai.vertical?W:0,le=[dt.leftJustifiedTextSymbolIndex,dt.centerJustifiedTextSymbolIndex,dt.rightJustifiedTextSymbolIndex];for(let Ae of le)I.text.placedSymbolArray.get(Ae).placedOrientation=xt;dt.verticalPlacedTextSymbolIndex&&(I.text.placedSymbolArray.get(dt.verticalPlacedTextSymbolIndex).placedOrientation=Nt)}commit(I){this.commitTime=I,this.zoomAtLastRecencyCheck=this.transform.zoom;let W=this.prevPlacement,dt=!1;this.prevZoomAdjustment=W?W.zoomAdjustment(this.transform.zoom):0;let xt=W?W.symbolFadeChange(I):1,Nt=W?W.opacities:{},le=W?W.variableOffsets:{},Ae=W?W.placedOrientations:{};for(let Ue in this.placements){let ir=this.placements[Ue],cr=Nt[Ue];cr?(this.opacities[Ue]=new Jr(cr,xt,ir.text,ir.icon),dt=dt||ir.text!==cr.text.placed||ir.icon!==cr.icon.placed):(this.opacities[Ue]=new Jr(null,xt,ir.text,ir.icon,ir.skipFade),dt=dt||ir.text||ir.icon)}for(let Ue in Nt){let ir=Nt[Ue];if(!this.opacities[Ue]){let cr=new Jr(ir,xt,!1,!1);cr.isHidden()||(this.opacities[Ue]=cr,dt=dt||ir.text.placed||ir.icon.placed)}}for(let Ue in le)!this.variableOffsets[Ue]&&this.opacities[Ue]&&!this.opacities[Ue].isHidden()&&(this.variableOffsets[Ue]=le[Ue]);for(let Ue in Ae)!this.placedOrientations[Ue]&&this.opacities[Ue]&&!this.opacities[Ue].isHidden()&&(this.placedOrientations[Ue]=Ae[Ue]);if(W&&W.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");dt?this.lastPlacementChangeTime=I:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=W?W.lastPlacementChangeTime:I)}updateLayerOpacities(I,W){let dt={};for(let xt of W){let Nt=xt.getBucket(I);Nt&&xt.latestFeatureIndex&&I.id===Nt.layerIds[0]&&this.updateBucketOpacities(Nt,xt.tileID,dt,xt.collisionBoxArray)}}updateBucketOpacities(I,W,dt,xt){I.hasTextData()&&(I.text.opacityVertexArray.clear(),I.text.hasVisibleVertices=!1),I.hasIconData()&&(I.icon.opacityVertexArray.clear(),I.icon.hasVisibleVertices=!1),I.hasIconCollisionBoxData()&&I.iconCollisionBox.collisionVertexArray.clear(),I.hasTextCollisionBoxData()&&I.textCollisionBox.collisionVertexArray.clear();let Nt=I.layers[0],le=Nt.layout,Ae=new Jr(null,0,!1,!1,!0),Ue=le.get("text-allow-overlap"),ir=le.get("icon-allow-overlap"),cr=Nt._unevaluatedLayout.hasValue("text-variable-anchor")||Nt._unevaluatedLayout.hasValue("text-variable-anchor-offset"),gr=le.get("text-rotation-alignment")==="map",Ur=le.get("text-pitch-alignment")==="map",ri=le.get("icon-text-fit")!=="none",pi=new Jr(null,0,Ue&&(ir||!I.hasIconData()||le.get("icon-optional")),ir&&(Ue||!I.hasTextData()||le.get("text-optional")),!0);!I.collisionArrays&&xt&&(I.hasIconCollisionBoxData()||I.hasTextCollisionBoxData())&&I.deserializeCollisionBoxes(xt);let xi=(Vi,Xi,$i)=>{for(let xa=0;xa0||xa>0,Xn=Xi.numIconVertices>0,gn=this.placedOrientations[Xi.crossTileID],Qa=gn===t.ai.vertical,un=gn===t.ai.horizontal||gn===t.ai.horizontalOnly;if(mn){let Rn=wi(on.text),so=Qa?ma:Rn;xi(I.text,$i,so);let $=un?ma:Rn;xi(I.text,xa,$);let at=on.text.isHidden();[Xi.rightJustifiedTextSymbolIndex,Xi.centerJustifiedTextSymbolIndex,Xi.leftJustifiedTextSymbolIndex].forEach(Ft=>{Ft>=0&&(I.text.placedSymbolArray.get(Ft).hidden=at||Qa?1:0)}),Xi.verticalPlacedTextSymbolIndex>=0&&(I.text.placedSymbolArray.get(Xi.verticalPlacedTextSymbolIndex).hidden=at||un?1:0);let it=this.variableOffsets[Xi.crossTileID];it&&this.markUsedJustification(I,it.anchor,Xi,gn);let mt=this.placedOrientations[Xi.crossTileID];mt&&(this.markUsedJustification(I,"left",Xi,mt),this.markUsedOrientation(I,mt,Xi))}if(Xn){let Rn=wi(on.icon),so=!(ri&&Xi.verticalPlacedIconSymbolIndex&&Qa);if(Xi.placedIconSymbolIndex>=0){let $=so?Rn:ma;xi(I.icon,Xi.numIconVertices,$),I.icon.placedSymbolArray.get(Xi.placedIconSymbolIndex).hidden=on.icon.isHidden()}if(Xi.verticalPlacedIconSymbolIndex>=0){let $=so?ma:Rn;xi(I.icon,Xi.numVerticalIconVertices,$),I.icon.placedSymbolArray.get(Xi.verticalPlacedIconSymbolIndex).hidden=on.icon.isHidden()}}let Dn=Mi&&Mi.has(Vi)?Mi.get(Vi):{text:null,icon:null};if(I.hasIconCollisionBoxData()||I.hasTextCollisionBoxData()){let Rn=I.collisionArrays[Vi];if(Rn){let so=new t.P(0,0);if(Rn.textBox||Rn.verticalTextBox){let $=!0;if(cr){let at=this.variableOffsets[_a];at?(so=Tr(at.anchor,at.width,at.height,at.textOffset,at.textBoxScale),gr&&so._rotate(Ur?this.transform.angle:-this.transform.angle)):$=!1}if(Rn.textBox||Rn.verticalTextBox){let at;Rn.textBox&&(at=Qa),Rn.verticalTextBox&&(at=un),li(I.textCollisionBox.collisionVertexArray,on.text.placed,!$||at,Dn.text,so.x,so.y)}}if(Rn.iconBox||Rn.verticalIconBox){let $=!!(!un&&Rn.verticalIconBox),at;Rn.iconBox&&(at=$),Rn.verticalIconBox&&(at=!$),li(I.iconCollisionBox.collisionVertexArray,on.icon.placed,at,Dn.icon,ri?so.x:0,ri?so.y:0)}}}}if(I.sortFeatures(this.transform.angle),this.retainedQueryData[I.bucketInstanceId]&&(this.retainedQueryData[I.bucketInstanceId].featureSortOrder=I.featureSortOrder),I.hasTextData()&&I.text.opacityVertexBuffer&&I.text.opacityVertexBuffer.updateData(I.text.opacityVertexArray),I.hasIconData()&&I.icon.opacityVertexBuffer&&I.icon.opacityVertexBuffer.updateData(I.icon.opacityVertexArray),I.hasIconCollisionBoxData()&&I.iconCollisionBox.collisionVertexBuffer&&I.iconCollisionBox.collisionVertexBuffer.updateData(I.iconCollisionBox.collisionVertexArray),I.hasTextCollisionBoxData()&&I.textCollisionBox.collisionVertexBuffer&&I.textCollisionBox.collisionVertexBuffer.updateData(I.textCollisionBox.collisionVertexArray),I.text.opacityVertexArray.length!==I.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${I.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${I.text.layoutVertexArray.length}) / 4`);if(I.icon.opacityVertexArray.length!==I.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${I.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${I.icon.layoutVertexArray.length}) / 4`);if(I.bucketInstanceId in this.collisionCircleArrays){let Vi=this.collisionCircleArrays[I.bucketInstanceId];I.placementInvProjMatrix=Vi.invProjMatrix,I.placementViewportMatrix=Vi.viewportMatrix,I.collisionCircleArray=Vi.circles,delete this.collisionCircleArrays[I.bucketInstanceId]}}symbolFadeChange(I){return this.fadeDuration===0?1:(I-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(I){return Math.max(0,(this.transform.zoom-I)/1.5)}hasTransitions(I){return this.stale||I-this.lastPlacementChangeTimeI}setStale(){this.stale=!0}}function li(bt,I,W,dt,xt,Nt){(!dt||dt.length===0)&&(dt=[0,0,0,0]);let le=dt[0]-100,Ae=dt[1]-100,Ue=dt[2]-100,ir=dt[3]-100;bt.emplaceBack(I?1:0,W?1:0,xt||0,Nt||0,le,Ae),bt.emplaceBack(I?1:0,W?1:0,xt||0,Nt||0,Ue,Ae),bt.emplaceBack(I?1:0,W?1:0,xt||0,Nt||0,Ue,ir),bt.emplaceBack(I?1:0,W?1:0,xt||0,Nt||0,le,ir)}let ci=2**25,Ni=2**24,si=2**17,Ci=2**16;function wi(bt){if(bt.opacity===0&&!bt.placed)return 0;if(bt.opacity===1&&bt.placed)return 4294967295;let I=bt.placed?1:0,W=Math.floor(bt.opacity*127);return W*ci+I*Ni+W*si+I*Ci+W*512+I*256+W*2+I}let ma=0;function Ha(){return{isOccluded(bt,I,W){return!1},getPitchedTextCorrection(bt,I,W){return 1},get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(bt,I,W,dt){throw Error("Not implemented.")},translatePosition(bt,I,W,dt){return ya(bt,I,W,dt)},getCircleRadiusCorrection(bt){return 1}}}function ya(bt,I,W,dt,xt=!1){if(!W[0]&&!W[1])return[0,0];let Nt=xt?dt==="map"?bt.angle:0:dt==="viewport"?-bt.angle:0;if(Nt){let le=Math.sin(Nt),Ae=Math.cos(Nt);W=[W[0]*Ae-W[1]*le,W[0]*le+W[1]*Ae]}return[xt?W[0]:Br(I,W[0],bt.zoom),xt?W[1]:Br(I,W[1],bt.zoom)]}class Ga{constructor(I){this._sortAcrossTiles=I.layout.get("symbol-z-order")!=="viewport-y"&&!I.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(I,W,dt,xt,Nt){let le=this._bucketParts;for(;this._currentTileIndexAe.sortKey-Ue.sortKey));this._currentPartIndexthis._forceFullPlacement?!1:i.now()-xt>2;for(;this._currentPlacementIndex>=0;){let le=W[I[this._currentPlacementIndex]],Ae=this.placement.collisionIndex.transform.zoom;if(le.type==="symbol"&&(!le.minzoom||le.minzoom<=Ae)&&(!le.maxzoom||le.maxzoom>Ae)){if(this._inProgressLayer||(this._inProgressLayer=new Ga(le)),this._inProgressLayer.continuePlacement(dt[le.source],this.placement,this._showCollisionBoxes,le,Nt))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(I){return this.placement.commit(I),this.placement}}let Fa=512/t.X/2;class Xr{constructor(I,W,dt){this.tileID=I,this.bucketInstanceId=dt,this._symbolsByKey={};let xt=new Map;for(let Nt=0;Nt({x:Math.floor(Ue.anchorX*Fa),y:Math.floor(Ue.anchorY*Fa)})),crossTileIDs:le.map(Ue=>Ue.crossTileID)};if(Ae.positions.length>128){let Ue=new t.aw(Ae.positions.length,16,Uint16Array);for(let{x:ir,y:cr}of Ae.positions)Ue.add(ir,cr);Ue.finish(),delete Ae.positions,Ae.index=Ue}this._symbolsByKey[Nt]=Ae}}getScaledCoordinates(I,W){let{x:dt,y:xt,z:Nt}=this.tileID.canonical,{x:le,y:Ae,z:Ue}=W.canonical,ir=Fa/2**(Ue-Nt),cr=(le*t.X+I.anchorX)*ir,gr=(Ae*t.X+I.anchorY)*ir,Ur=dt*t.X*Fa,ri=xt*t.X*Fa;return{x:Math.floor(cr-Ur),y:Math.floor(gr-ri)}}findMatches(I,W,dt){let xt=this.tileID.canonical.zI)}}class ji{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Li{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(I){let W=Math.round((I-this.lng)/360);if(W!==0)for(let dt in this.indexes){let xt=this.indexes[dt],Nt={};for(let le in xt){let Ae=xt[le];Ae.tileID=Ae.tileID.unwrapTo(Ae.tileID.wrap+W),Nt[Ae.tileID.key]=Ae}this.indexes[dt]=Nt}this.lng=I}addBucket(I,W,dt){if(this.indexes[I.overscaledZ]&&this.indexes[I.overscaledZ][I.key]){if(this.indexes[I.overscaledZ][I.key].bucketInstanceId===W.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(I.overscaledZ,this.indexes[I.overscaledZ][I.key])}for(let Nt=0;NtI.overscaledZ)for(let Ae in le){let Ue=le[Ae];Ue.tileID.isChildOf(I)&&Ue.findMatches(W.symbolInstances,I,xt)}else{let Ae=le[I.scaledTo(Number(Nt)).key];Ae&&Ae.findMatches(W.symbolInstances,I,xt)}}for(let Nt=0;Nt{W[xt]=!0}),this.layerIndexes)W[dt]||delete this.layerIndexes[dt]}}let aa=(bt,I)=>t.t(bt,I&&I.filter(W=>W.identifier!=="source.canvas")),Ji=t.ax();class na extends t.E{constructor(I,W={}){super(),this._rtlPluginLoaded=()=>{for(let dt in this.sourceCaches){let xt=this.sourceCaches[dt].getSource().type;(xt==="vector"||xt==="geojson")&&this.sourceCaches[dt].reload()}},this.map=I,this.dispatcher=new jt(Et(),I._getMapId()),this.dispatcher.registerMessageHandler("GG",(dt,xt)=>this.getGlyphs(dt,xt)),this.dispatcher.registerMessageHandler("GI",(dt,xt)=>this.getImages(dt,xt)),this.imageManager=new J,this.imageManager.setEventedParent(this),this.glyphManager=new rt(I._requestManager,W.localIdeographFontFamily),this.lineAtlas=new Lt(256,512),this.crossTileSymbolIndex=new Si,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ay,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",t.az()),sr().on(ge,this._rtlPluginLoaded),this.on("data",dt=>{if(dt.dataType!=="source"||dt.sourceDataType!=="metadata")return;let xt=this.sourceCaches[dt.sourceId];if(!xt)return;let Nt=xt.getSource();if(!(!Nt||!Nt.vectorLayerIds))for(let le in this._layers){let Ae=this._layers[le];Ae.source===Nt.id&&this._validateLayer(Ae)}})}loadURL(I,W={},dt){this.fire(new t.k("dataloading",{dataType:"style"})),W.validate=typeof W.validate=="boolean"?W.validate:!0;let xt=this.map._requestManager.transformRequest(I,"Style");this._loadStyleRequest=new AbortController;let Nt=this._loadStyleRequest;t.h(xt,this._loadStyleRequest).then(le=>{this._loadStyleRequest=null,this._load(le.data,W,dt)}).catch(le=>{this._loadStyleRequest=null,le&&!Nt.signal.aborted&&this.fire(new t.j(le))})}loadJSON(I,W={},dt){this.fire(new t.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,i.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,W.validate=W.validate!==!1,this._load(I,W,dt)}).catch(()=>{})}loadEmpty(){this.fire(new t.k("dataloading",{dataType:"style"})),this._load(Ji,{validate:!1})}_load(I,W,dt){let xt=W.transformStyle?W.transformStyle(dt,I):I;if(!(W.validate&&aa(this,t.x(xt)))){for(let Nt in this._loaded=!0,this.stylesheet=xt,xt.sources)this.addSource(Nt,xt.sources[Nt],{validate:!1});xt.sprite?this._loadSprite(xt.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(xt.glyphs),this._createLayers(),this.light=new lt(this.stylesheet.light),this.sky=new kt(this.stylesheet.sky),this.map.setTerrain(this.stylesheet.terrain??null),this.fire(new t.k("data",{dataType:"style"})),this.fire(new t.k("style.load"))}}_createLayers(){let I=t.aA(this.stylesheet.layers);this.dispatcher.broadcast("SL",I),this._order=I.map(W=>W.id),this._layers={},this._serializedLayers=null;for(let W of I){let dt=t.aB(W);dt.setEventedParent(this,{layer:{id:W.id}}),this._layers[W.id]=dt}}_loadSprite(I,W=!1,dt=void 0){this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController;let xt;K(I,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(Nt=>{if(this._spriteRequest=null,Nt)for(let le in Nt){this._spritesImagesIds[le]=[];let Ae=this._spritesImagesIds[le]?this._spritesImagesIds[le].filter(Ue=>!(Ue in Nt)):[];for(let Ue of Ae)this.imageManager.removeImage(Ue),this._changedImages[Ue]=!0;for(let Ue in Nt[le]){let ir=le==="default"?Ue:`${le}:${Ue}`;this._spritesImagesIds[le].push(ir),ir in this.imageManager.images?this.imageManager.updateImage(ir,Nt[le][Ue],!1):this.imageManager.addImage(ir,Nt[le][Ue]),W&&(this._changedImages[ir]=!0)}}}).catch(Nt=>{this._spriteRequest=null,xt=Nt,this.fire(new t.j(xt))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),W&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"})),dt&&dt(xt)})}_unloadSprite(){for(let I of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(I),this._changedImages[I]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}_validateLayer(I){let W=this.sourceCaches[I.source];if(!W)return;let dt=I.sourceLayer;if(!dt)return;let xt=W.getSource();(xt.type==="geojson"||xt.vectorLayerIds&&xt.vectorLayerIds.indexOf(dt)===-1)&&this.fire(new t.j(Error(`Source layer "${dt}" does not exist on source "${xt.id}" as specified by style layer "${I.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let I in this.sourceCaches)if(!this.sourceCaches[I].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(I){let W=this._serializedAllLayers();if(!I||I.length===0)return Object.values(W);let dt=[];for(let xt of I)W[xt]&&dt.push(W[xt]);return dt}_serializedAllLayers(){let I=this._serializedLayers;if(I)return I;I=this._serializedLayers={};let W=Object.keys(this._layers);for(let dt of W){let xt=this._layers[dt];xt.type!=="custom"&&(I[dt]=xt.serialize())}return I}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let I in this.sourceCaches)if(this.sourceCaches[I].hasTransition())return!0;for(let I in this._layers)if(this._layers[I].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(I){if(!this._loaded)return;let W=this._changed;if(W){let xt=Object.keys(this._updatedLayers),Nt=Object.keys(this._removedLayers);for(let le in(xt.length||Nt.length)&&this._updateWorkerLayers(xt,Nt),this._updatedSources){let Ae=this._updatedSources[le];if(Ae==="reload")this._reloadSource(le);else if(Ae==="clear")this._clearSource(le);else throw Error(`Invalid action ${Ae}`)}for(let le in this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs(),this._updatedPaintProps)this._layers[le].updateTransitions(I);this.light.updateTransitions(I),this.sky.updateTransitions(I),this._resetUpdates()}let dt={};for(let xt in this.sourceCaches){let Nt=this.sourceCaches[xt];dt[xt]=Nt.used,Nt.used=!1}for(let xt of this._order){let Nt=this._layers[xt];Nt.recalculate(I,this._availableImages),!Nt.isHidden(I.zoom)&&Nt.source&&(this.sourceCaches[Nt.source].used=!0)}for(let xt in dt){let Nt=this.sourceCaches[xt];!!dt[xt]!=!!Nt.used&&Nt.fire(new t.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:xt}))}this.light.recalculate(I),this.sky.recalculate(I),this.z=I.zoom,W&&this.fire(new t.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let I=Object.keys(this._changedImages);if(I.length){for(let W in this.sourceCaches)this.sourceCaches[W].reloadTilesForDependencies(["icons","patterns"],I);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let I in this.sourceCaches)this.sourceCaches[I].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(I,W){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(I),removedIds:W})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(I,W={}){this._checkLoaded();let dt=this.serialize();if(I=W.transformStyle?W.transformStyle(dt,I):I,(W.validate??!0)&&aa(this,t.x(I)))return!1;I=t.aC(I),I.layers=t.aA(I.layers);let xt=t.aD(dt,I),Nt=this._getOperationsToPerform(xt);if(Nt.unimplemented.length>0)throw Error(`Unimplemented: ${Nt.unimplemented.join(", ")}.`);if(Nt.operations.length===0)return!1;for(let le of Nt.operations)le();return this.stylesheet=I,this._serializedLayers=null,!0}_getOperationsToPerform(I){let W=[],dt=[];for(let xt of I)switch(xt.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":W.push(()=>this.addLayer.apply(this,xt.args));break;case"removeLayer":W.push(()=>this.removeLayer.apply(this,xt.args));break;case"setPaintProperty":W.push(()=>this.setPaintProperty.apply(this,xt.args));break;case"setLayoutProperty":W.push(()=>this.setLayoutProperty.apply(this,xt.args));break;case"setFilter":W.push(()=>this.setFilter.apply(this,xt.args));break;case"addSource":W.push(()=>this.addSource.apply(this,xt.args));break;case"removeSource":W.push(()=>this.removeSource.apply(this,xt.args));break;case"setLayerZoomRange":W.push(()=>this.setLayerZoomRange.apply(this,xt.args));break;case"setLight":W.push(()=>this.setLight.apply(this,xt.args));break;case"setGeoJSONSourceData":W.push(()=>this.setGeoJSONSourceData.apply(this,xt.args));break;case"setGlyphs":W.push(()=>this.setGlyphs.apply(this,xt.args));break;case"setSprite":W.push(()=>this.setSprite.apply(this,xt.args));break;case"setSky":W.push(()=>this.setSky.apply(this,xt.args));break;case"setTerrain":W.push(()=>this.map.setTerrain.apply(this,xt.args));break;case"setTransition":W.push(()=>{});break;default:dt.push(xt.command);break}return{operations:W,unimplemented:dt}}addImage(I,W){if(this.getImage(I))return this.fire(new t.j(Error(`An image named "${I}" already exists.`)));this.imageManager.addImage(I,W),this._afterImageUpdated(I)}updateImage(I,W){this.imageManager.updateImage(I,W)}getImage(I){return this.imageManager.getImage(I)}removeImage(I){if(!this.getImage(I))return this.fire(new t.j(Error(`An image named "${I}" does not exist.`)));this.imageManager.removeImage(I),this._afterImageUpdated(I)}_afterImageUpdated(I){this._availableImages=this.imageManager.listImages(),this._changedImages[I]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(I,W,dt={}){if(this._checkLoaded(),this.sourceCaches[I]!==void 0)throw Error(`Source "${I}" already exists.`);if(!W.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(W).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(W.type)>=0&&this._validate(t.x.source,`sources.${I}`,W,null,dt))return;this.map&&this.map._collectResourceTiming&&(W.collectResourceTiming=!0);let xt=this.sourceCaches[I]=new Pr(I,W,this.dispatcher);xt.style=this,xt.setEventedParent(this,()=>({isSourceLoaded:xt.loaded(),source:xt.serialize(),sourceId:I})),xt.onAdd(this.map),this._changed=!0}removeSource(I){if(this._checkLoaded(),this.sourceCaches[I]===void 0)throw Error("There is no source with this ID");for(let dt in this._layers)if(this._layers[dt].source===I)return this.fire(new t.j(Error(`Source "${I}" cannot be removed while layer "${dt}" is using it.`)));let W=this.sourceCaches[I];delete this.sourceCaches[I],delete this._updatedSources[I],W.fire(new t.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:I})),W.setEventedParent(null),W.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(I,W){if(this._checkLoaded(),this.sourceCaches[I]===void 0)throw Error(`There is no source with this ID=${I}`);let dt=this.sourceCaches[I].getSource();if(dt.type!=="geojson")throw Error(`geojsonSource.type is ${dt.type}, which is !== 'geojson`);dt.setData(W),this._changed=!0}getSource(I){return this.sourceCaches[I]&&this.sourceCaches[I].getSource()}addLayer(I,W,dt={}){this._checkLoaded();let xt=I.id;if(this.getLayer(xt)){this.fire(new t.j(Error(`Layer "${xt}" already exists on this map.`)));return}let Nt;if(I.type==="custom"){if(aa(this,t.aE(I)))return;Nt=t.aB(I)}else{if("source"in I&&typeof I.source=="object"&&(this.addSource(xt,I.source),I=t.aC(I),I=t.e(I,{source:xt})),this._validate(t.x.layer,`layers.${xt}`,I,{arrayIndex:-1},dt))return;Nt=t.aB(I),this._validateLayer(Nt),Nt.setEventedParent(this,{layer:{id:xt}})}let le=W?this._order.indexOf(W):this._order.length;if(W&&le===-1){this.fire(new t.j(Error(`Cannot add layer "${xt}" before non-existing layer "${W}".`)));return}if(this._order.splice(le,0,xt),this._layerOrderChanged=!0,this._layers[xt]=Nt,this._removedLayers[xt]&&Nt.source&&Nt.type!=="custom"){let Ae=this._removedLayers[xt];delete this._removedLayers[xt],Ae.type===Nt.type?(this._updatedSources[Nt.source]="reload",this.sourceCaches[Nt.source].pause()):this._updatedSources[Nt.source]="clear"}this._updateLayer(Nt),Nt.onAdd&&Nt.onAdd(this.map)}moveLayer(I,W){if(this._checkLoaded(),this._changed=!0,!this._layers[I]){this.fire(new t.j(Error(`The layer '${I}' does not exist in the map's style and cannot be moved.`)));return}if(I===W)return;let dt=this._order.indexOf(I);this._order.splice(dt,1);let xt=W?this._order.indexOf(W):this._order.length;if(W&&xt===-1){this.fire(new t.j(Error(`Cannot move layer "${I}" before non-existing layer "${W}".`)));return}this._order.splice(xt,0,I),this._layerOrderChanged=!0}removeLayer(I){this._checkLoaded();let W=this._layers[I];if(!W){this.fire(new t.j(Error(`Cannot remove non-existing layer "${I}".`)));return}W.setEventedParent(null);let dt=this._order.indexOf(I);this._order.splice(dt,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[I]=W,delete this._layers[I],this._serializedLayers&&delete this._serializedLayers[I],delete this._updatedLayers[I],delete this._updatedPaintProps[I],W.onRemove&&W.onRemove(this.map)}getLayer(I){return this._layers[I]}getLayersOrder(){return[...this._order]}hasLayer(I){return I in this._layers}setLayerZoomRange(I,W,dt){this._checkLoaded();let xt=this.getLayer(I);if(!xt){this.fire(new t.j(Error(`Cannot set the zoom range of non-existing layer "${I}".`)));return}xt.minzoom===W&&xt.maxzoom===dt||(W!=null&&(xt.minzoom=W),dt!=null&&(xt.maxzoom=dt),this._updateLayer(xt))}setFilter(I,W,dt={}){this._checkLoaded();let xt=this.getLayer(I);if(!xt){this.fire(new t.j(Error(`Cannot filter non-existing layer "${I}".`)));return}if(!t.aF(xt.filter,W)){if(W==null){xt.filter=void 0,this._updateLayer(xt);return}this._validate(t.x.filter,`layers.${xt.id}.filter`,W,null,dt)||(xt.filter=t.aC(W),this._updateLayer(xt))}}getFilter(I){return t.aC(this.getLayer(I).filter)}setLayoutProperty(I,W,dt,xt={}){this._checkLoaded();let Nt=this.getLayer(I);if(!Nt){this.fire(new t.j(Error(`Cannot style non-existing layer "${I}".`)));return}t.aF(Nt.getLayoutProperty(W),dt)||(Nt.setLayoutProperty(W,dt,xt),this._updateLayer(Nt))}getLayoutProperty(I,W){let dt=this.getLayer(I);if(!dt){this.fire(new t.j(Error(`Cannot get style of non-existing layer "${I}".`)));return}return dt.getLayoutProperty(W)}setPaintProperty(I,W,dt,xt={}){this._checkLoaded();let Nt=this.getLayer(I);if(!Nt){this.fire(new t.j(Error(`Cannot style non-existing layer "${I}".`)));return}t.aF(Nt.getPaintProperty(W),dt)||(Nt.setPaintProperty(W,dt,xt)&&this._updateLayer(Nt),this._changed=!0,this._updatedPaintProps[I]=!0,this._serializedLayers=null)}getPaintProperty(I,W){return this.getLayer(I).getPaintProperty(W)}setFeatureState(I,W){this._checkLoaded();let dt=I.source,xt=I.sourceLayer,Nt=this.sourceCaches[dt];if(Nt===void 0){this.fire(new t.j(Error(`The source '${dt}' does not exist in the map's style.`)));return}let le=Nt.getSource().type;if(le==="geojson"&&xt){this.fire(new t.j(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(le==="vector"&&!xt){this.fire(new t.j(Error("The sourceLayer parameter must be provided for vector source types.")));return}I.id===void 0&&this.fire(new t.j(Error("The feature id parameter must be provided."))),Nt.setFeatureState(xt,I.id,W)}removeFeatureState(I,W){this._checkLoaded();let dt=I.source,xt=this.sourceCaches[dt];if(xt===void 0){this.fire(new t.j(Error(`The source '${dt}' does not exist in the map's style.`)));return}let Nt=xt.getSource().type,le=Nt==="vector"?I.sourceLayer:void 0;if(Nt==="vector"&&!le){this.fire(new t.j(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(W&&typeof I.id!="string"&&typeof I.id!="number"){this.fire(new t.j(Error("A feature id is required to remove its specific state property.")));return}xt.removeFeatureState(le,I.id,W)}getFeatureState(I){this._checkLoaded();let W=I.source,dt=I.sourceLayer,xt=this.sourceCaches[W];if(xt===void 0){this.fire(new t.j(Error(`The source '${W}' does not exist in the map's style.`)));return}if(xt.getSource().type==="vector"&&!dt){this.fire(new t.j(Error("The sourceLayer parameter must be provided for vector source types.")));return}return I.id===void 0&&this.fire(new t.j(Error("The feature id parameter must be provided."))),xt.getFeatureState(dt,I.id)}getTransition(){return t.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let I=t.aG(this.sourceCaches,Nt=>Nt.serialize()),W=this._serializeByIds(this._order),dt=this.map.getTerrain()||void 0,xt=this.stylesheet;return t.aH({version:xt.version,name:xt.name,metadata:xt.metadata,light:xt.light,sky:xt.sky,center:xt.center,zoom:xt.zoom,bearing:xt.bearing,pitch:xt.pitch,sprite:xt.sprite,glyphs:xt.glyphs,transition:xt.transition,sources:I,layers:W,terrain:dt},Nt=>Nt!==void 0)}_updateLayer(I){this._updatedLayers[I.id]=!0,I.source&&!this._updatedSources[I.source]&&this.sourceCaches[I.source].getSource().type!=="raster"&&(this._updatedSources[I.source]="reload",this.sourceCaches[I.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(I){let W=le=>this._layers[le].type==="fill-extrusion",dt={},xt=[];for(let le=this._order.length-1;le>=0;le--){let Ae=this._order[le];if(W(Ae)){dt[Ae]=le;for(let Ue of I){let ir=Ue[Ae];if(ir)for(let cr of ir)xt.push(cr)}}}xt.sort((le,Ae)=>Ae.intersectionZ-le.intersectionZ);let Nt=[];for(let le=this._order.length-1;le>=0;le--){let Ae=this._order[le];if(W(Ae))for(let Ue=xt.length-1;Ue>=0;Ue--){let ir=xt[Ue].feature;if(dt[ir.layer.id]Ur.getTileByID(ri)).sort((ri,pi)=>pi.tileID.overscaledZ-ri.tileID.overscaledZ||(ri.tileID.isLessThan(pi.tileID)?-1:1))}let gr=this.crossTileSymbolIndex.addLayer(cr,Ue[cr.source],I.center.lng);le||(le=gr)}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),Nt=Nt||this._layerOrderChanged||dt===0,(Nt||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(i.now(),I.zoom))&&(this.pauseablePlacement=new Ea(I,this.map.terrain,this._order,Nt,W,dt,xt,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,Ue),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(i.now()),Ae=!0),le&&this.pauseablePlacement.placement.setStale()),Ae||le)for(let ir of this._order){let cr=this._layers[ir];cr.type==="symbol"&&this.placement.updateLayerOpacities(cr,Ue[cr.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(i.now())}_releaseSymbolFadeTiles(){for(let I in this.sourceCaches)this.sourceCaches[I].releaseSymbolFadeTiles()}getImages(I,W){return t._(this,void 0,void 0,function*(){let dt=yield this.imageManager.getImages(W.icons);this._updateTilesForChangedImages();let xt=this.sourceCaches[W.source];return xt&&xt.setDependencies(W.tileID.key,W.type,W.icons),dt})}getGlyphs(I,W){return t._(this,void 0,void 0,function*(){let dt=yield this.glyphManager.getGlyphs(W.stacks),xt=this.sourceCaches[W.source];return xt&&xt.setDependencies(W.tileID.key,W.type,[""]),dt})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(I,W={}){this._checkLoaded(),!(I&&this._validate(t.x.glyphs,"glyphs",I,null,W))&&(this._glyphsDidChange=!0,this.stylesheet.glyphs=I,this.glyphManager.entries={},this.glyphManager.setURL(I))}addSprite(I,W,dt={},xt){this._checkLoaded();let Nt=[{id:I,url:W}],le=[...V(this.stylesheet.sprite),...Nt];this._validate(t.x.sprite,"sprite",le,null,dt)||(this.stylesheet.sprite=le,this._loadSprite(Nt,!0,xt))}removeSprite(I){this._checkLoaded();let W=V(this.stylesheet.sprite);if(!W.find(dt=>dt.id===I)){this.fire(new t.j(Error(`Sprite "${I}" doesn't exists on this map.`)));return}if(this._spritesImagesIds[I])for(let dt of this._spritesImagesIds[I])this.imageManager.removeImage(dt),this._changedImages[dt]=!0;W.splice(W.findIndex(dt=>dt.id===I),1),this.stylesheet.sprite=W.length>0?W:void 0,delete this._spritesImagesIds[I],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}getSprite(){return V(this.stylesheet.sprite)}setSprite(I,W={},dt){this._checkLoaded(),!(I&&this._validate(t.x.sprite,"sprite",I,null,W))&&(this.stylesheet.sprite=I,I?this._loadSprite(I,!0,dt):(this._unloadSprite(),dt&&dt(null)))}}var fa=t.Y([{name:"a_pos",type:"Int16",components:2}]);let Ca={prelude:Ia(`#ifdef GL_ES +precision mediump float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +`,`#ifdef GL_ES +precision highp float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 +);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;} +#ifdef TERRAIN3D +uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth; +#endif +const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) { +#ifdef TERRAIN3D +highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0)); +#else +return 1.0; +#endif +}float calculate_visibility(vec4 pos) { +#ifdef TERRAIN3D +vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0; +#else +return 1.0; +#endif +}float ele(vec2 pos) { +#ifdef TERRAIN3D +vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; +#else +return 0.0; +#endif +}float get_elevation(vec2 pos) { +#ifdef TERRAIN3D +vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration; +#else +return 0.0; +#endif +}`),background:Ia(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:Ia(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:Ia(`varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main(void) { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:Ia("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:Ia(`uniform highp float u_intensity;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#define GAUSS_COEF 0.3989422804014327 +void main() { +#pragma mapbox: initialize highp float weight +float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#pragma mapbox: define mediump float radius +const highp float ZERO=1.0/255.0/16.0; +#define GAUSS_COEF 0.3989422804014327 +void main(void) { +#pragma mapbox: initialize highp float weight +#pragma mapbox: initialize mediump float radius +vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}`),heatmapTexture:Ia(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(0.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:Ia("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:Ia("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:Ia("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:Ia(`#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_FragColor=color*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:Ia(`varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:Ia(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:Ia(`#ifdef GL_ES +precision highp float; +#endif +uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:Ia(`varying vec4 v_color;void main() {gl_FragColor=v_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec4 v_color; +#pragma mapbox: define highp float base +#pragma mapbox: define highp float height +#pragma mapbox: define highp vec4 color +void main() { +#pragma mapbox: initialize highp float base +#pragma mapbox: initialize highp float height +#pragma mapbox: initialize highp vec4 color +vec3 normal=a_normal_ed.xyz; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:Ia(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:Ia(`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Ia(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:Ia(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),lineGradient:Ia(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),linePattern:Ia(`#ifdef GL_ES +precision highp float; +#endif +uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:Ia(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:Ia(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:Ia(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:Ia(`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:Ia(`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ia("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ia("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Ia("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Ia("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ia(bt,I){let W=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,dt=I.match(/attribute ([\w]+) ([\w]+)/g),xt=bt.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Nt=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),le=Nt?Nt.concat(xt):xt,Ae={};return bt=bt.replace(W,(Ue,ir,cr,gr,Ur)=>(Ae[Ur]=!0,ir==="define"?` +#ifndef HAS_UNIFORM_u_${Ur} +varying ${cr} ${gr} ${Ur}; +#else +uniform ${cr} ${gr} u_${Ur}; +#endif +`:` +#ifdef HAS_UNIFORM_u_${Ur} + ${cr} ${gr} ${Ur} = u_${Ur}; +#endif +`)),I=I.replace(W,(Ue,ir,cr,gr,Ur)=>{let ri=gr==="float"?"vec2":"vec4",pi=Ur.match(/color/)?"color":ri;return Ae[Ur]?ir==="define"?` +#ifndef HAS_UNIFORM_u_${Ur} +uniform lowp float u_${Ur}_t; +attribute ${cr} ${ri} a_${Ur}; +varying ${cr} ${gr} ${Ur}; +#else +uniform ${cr} ${gr} u_${Ur}; +#endif +`:pi==="vec4"?` +#ifndef HAS_UNIFORM_u_${Ur} + ${Ur} = a_${Ur}; +#else + ${cr} ${gr} ${Ur} = u_${Ur}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${Ur} + ${Ur} = unpack_mix_${pi}(a_${Ur}, u_${Ur}_t); +#else + ${cr} ${gr} ${Ur} = u_${Ur}; +#endif +`:ir==="define"?` +#ifndef HAS_UNIFORM_u_${Ur} +uniform lowp float u_${Ur}_t; +attribute ${cr} ${ri} a_${Ur}; +#else +uniform ${cr} ${gr} u_${Ur}; +#endif +`:pi==="vec4"?` +#ifndef HAS_UNIFORM_u_${Ur} + ${cr} ${gr} ${Ur} = a_${Ur}; +#else + ${cr} ${gr} ${Ur} = u_${Ur}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${Ur} + ${cr} ${gr} ${Ur} = unpack_mix_${pi}(a_${Ur}, u_${Ur}_t); +#else + ${cr} ${gr} ${Ur} = u_${Ur}; +#endif +`}),{fragmentSource:bt,vertexSource:I,staticAttributes:dt,staticUniforms:le}}class On{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(I,W,dt,xt,Nt,le,Ae,Ue,ir){this.context=I;let cr=this.boundPaintVertexBuffers.length!==xt.length;for(let gr=0;!cr&&gr({u_depth:new t.aI(bt,I.u_depth),u_terrain:new t.aI(bt,I.u_terrain),u_terrain_dim:new t.aJ(bt,I.u_terrain_dim),u_terrain_matrix:new t.aK(bt,I.u_terrain_matrix),u_terrain_unpack:new t.aL(bt,I.u_terrain_unpack),u_terrain_exaggeration:new t.aJ(bt,I.u_terrain_exaggeration)}),jr=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_texture:new t.aI(bt,I.u_texture),u_ele_delta:new t.aJ(bt,I.u_ele_delta),u_fog_matrix:new t.aK(bt,I.u_fog_matrix),u_fog_color:new t.aM(bt,I.u_fog_color),u_fog_ground_blend:new t.aJ(bt,I.u_fog_ground_blend),u_fog_ground_blend_opacity:new t.aJ(bt,I.u_fog_ground_blend_opacity),u_horizon_color:new t.aM(bt,I.u_horizon_color),u_horizon_fog_blend:new t.aJ(bt,I.u_horizon_fog_blend)}),Ii=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_ele_delta:new t.aJ(bt,I.u_ele_delta)}),Hi=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_texture:new t.aI(bt,I.u_texture),u_terrain_coords_id:new t.aJ(bt,I.u_terrain_coords_id),u_ele_delta:new t.aJ(bt,I.u_ele_delta)}),Oi=(bt,I,W,dt,xt)=>({u_matrix:bt,u_texture:0,u_ele_delta:I,u_fog_matrix:W,u_fog_color:dt?dt.properties.get("fog-color"):t.aN.white,u_fog_ground_blend:dt?dt.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:dt?dt.calculateFogBlendOpacity(xt):0,u_horizon_color:dt?dt.properties.get("horizon-color"):t.aN.white,u_horizon_fog_blend:dt?dt.properties.get("horizon-fog-blend"):1}),sa=(bt,I)=>({u_matrix:bt,u_ele_delta:I}),Qi=(bt,I,W)=>({u_matrix:bt,u_terrain_coords_id:I/255,u_texture:0,u_ele_delta:W});function qi(bt){let I=[];for(let W=0;W>16,Ae>>16],u_pixel_coord_lower:[le&65535,Ae&65535]}}function ai(bt,I,W,dt){let xt=W.imageManager.getPattern(bt.from.toString()),Nt=W.imageManager.getPattern(bt.to.toString()),{width:le,height:Ae}=W.imageManager.getPixelSize(),Ue=2**dt.tileID.overscaledZ,ir=dt.tileSize*2**W.transform.tileZoom/Ue,cr=ir*(dt.tileID.canonical.x+dt.tileID.wrap*Ue),gr=ir*dt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:xt.tl,u_pattern_br_a:xt.br,u_pattern_tl_b:Nt.tl,u_pattern_br_b:Nt.br,u_texsize:[le,Ae],u_mix:I.t,u_pattern_size_a:xt.displaySize,u_pattern_size_b:Nt.displaySize,u_scale_a:I.fromScale,u_scale_b:I.toScale,u_tile_units_to_pixels:1/Br(dt,1,W.transform.tileZoom),u_pixel_coord_upper:[cr>>16,gr>>16],u_pixel_coord_lower:[cr&65535,gr&65535]}}let _i=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_lightpos:new t.aO(bt,I.u_lightpos),u_lightintensity:new t.aJ(bt,I.u_lightintensity),u_lightcolor:new t.aO(bt,I.u_lightcolor),u_vertical_gradient:new t.aJ(bt,I.u_vertical_gradient),u_opacity:new t.aJ(bt,I.u_opacity)}),ua=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_lightpos:new t.aO(bt,I.u_lightpos),u_lightintensity:new t.aJ(bt,I.u_lightintensity),u_lightcolor:new t.aO(bt,I.u_lightcolor),u_vertical_gradient:new t.aJ(bt,I.u_vertical_gradient),u_height_factor:new t.aJ(bt,I.u_height_factor),u_image:new t.aI(bt,I.u_image),u_texsize:new t.aP(bt,I.u_texsize),u_pixel_coord_upper:new t.aP(bt,I.u_pixel_coord_upper),u_pixel_coord_lower:new t.aP(bt,I.u_pixel_coord_lower),u_scale:new t.aO(bt,I.u_scale),u_fade:new t.aJ(bt,I.u_fade),u_opacity:new t.aJ(bt,I.u_opacity)}),ea=(bt,I,W,dt)=>{let xt=I.style.light,Nt=xt.properties.get("position"),le=[Nt.x,Nt.y,Nt.z],Ae=b();xt.properties.get("anchor")==="viewport"&&M(Ae,-I.transform.angle),O(le,le,Ae);let Ue=xt.properties.get("color");return{u_matrix:bt,u_lightpos:le,u_lightintensity:xt.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+W,u_opacity:dt}},zi=(bt,I,W,dt,xt,Nt,le)=>t.e(ea(bt,I,W,dt),Wr(Nt,I,le),{u_height_factor:-(2**xt.overscaledZ)/le.tileSize/8}),wa=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix)}),ln=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_image:new t.aI(bt,I.u_image),u_texsize:new t.aP(bt,I.u_texsize),u_pixel_coord_upper:new t.aP(bt,I.u_pixel_coord_upper),u_pixel_coord_lower:new t.aP(bt,I.u_pixel_coord_lower),u_scale:new t.aO(bt,I.u_scale),u_fade:new t.aJ(bt,I.u_fade)}),nn=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_world:new t.aP(bt,I.u_world)}),sn=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_world:new t.aP(bt,I.u_world),u_image:new t.aI(bt,I.u_image),u_texsize:new t.aP(bt,I.u_texsize),u_pixel_coord_upper:new t.aP(bt,I.u_pixel_coord_upper),u_pixel_coord_lower:new t.aP(bt,I.u_pixel_coord_lower),u_scale:new t.aO(bt,I.u_scale),u_fade:new t.aJ(bt,I.u_fade)}),Wa=bt=>({u_matrix:bt}),yn=(bt,I,W,dt)=>t.e(Wa(bt),Wr(W,I,dt)),Vs=(bt,I)=>({u_matrix:bt,u_world:I}),Kn=(bt,I,W,dt,xt)=>t.e(yn(bt,I,W,dt),{u_world:xt}),os=(bt,I)=>({u_camera_to_center_distance:new t.aJ(bt,I.u_camera_to_center_distance),u_scale_with_map:new t.aI(bt,I.u_scale_with_map),u_pitch_with_map:new t.aI(bt,I.u_pitch_with_map),u_extrude_scale:new t.aP(bt,I.u_extrude_scale),u_device_pixel_ratio:new t.aJ(bt,I.u_device_pixel_ratio),u_matrix:new t.aK(bt,I.u_matrix)}),Bo=(bt,I,W,dt)=>{let xt=bt.transform,Nt,le;if(dt.paint.get("circle-pitch-alignment")==="map"){let Ae=Br(W,1,xt.zoom);Nt=!0,le=[Ae,Ae]}else Nt=!1,le=xt.pixelsToGLUnits;return{u_camera_to_center_distance:xt.cameraToCenterDistance,u_scale_with_map:+(dt.paint.get("circle-pitch-scale")==="map"),u_matrix:bt.translatePosMatrix(I.posMatrix,W,dt.paint.get("circle-translate"),dt.paint.get("circle-translate-anchor")),u_pitch_with_map:+Nt,u_device_pixel_ratio:bt.pixelRatio,u_extrude_scale:le}},Qo=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_pixel_extrude_scale:new t.aP(bt,I.u_pixel_extrude_scale)}),Gn=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_inv_matrix:new t.aK(bt,I.u_inv_matrix),u_camera_to_center_distance:new t.aJ(bt,I.u_camera_to_center_distance),u_viewport_size:new t.aP(bt,I.u_viewport_size)}),Ml=(bt,I)=>({u_matrix:I,u_pixel_extrude_scale:[1/bt.width,1/bt.height]}),xs=(bt,I,W)=>({u_matrix:bt,u_inv_matrix:I,u_camera_to_center_distance:W.cameraToCenterDistance,u_viewport_size:[W.width,W.height]}),xo=(bt,I)=>({u_color:new t.aM(bt,I.u_color),u_matrix:new t.aK(bt,I.u_matrix),u_overlay:new t.aI(bt,I.u_overlay),u_overlay_scale:new t.aJ(bt,I.u_overlay_scale)}),_s=(bt,I,W=1)=>({u_matrix:bt,u_color:I,u_overlay:0,u_overlay_scale:W}),Fu=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix)}),Oo=bt=>({u_matrix:bt}),zo=(bt,I)=>({u_extrude_scale:new t.aJ(bt,I.u_extrude_scale),u_intensity:new t.aJ(bt,I.u_intensity),u_matrix:new t.aK(bt,I.u_matrix)}),As=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_world:new t.aP(bt,I.u_world),u_image:new t.aI(bt,I.u_image),u_color_ramp:new t.aI(bt,I.u_color_ramp),u_opacity:new t.aJ(bt,I.u_opacity)}),bo=(bt,I,W,dt)=>({u_matrix:bt,u_extrude_scale:Br(I,1,W),u_intensity:dt}),No=(bt,I,W,dt)=>{let xt=t.H();t.aQ(xt,0,bt.width,bt.height,0,0,1);let Nt=bt.context.gl;return{u_matrix:xt,u_world:[Nt.drawingBufferWidth,Nt.drawingBufferHeight],u_image:W,u_color_ramp:dt,u_opacity:I.paint.get("heatmap-opacity")}},bs=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_image:new t.aI(bt,I.u_image),u_latrange:new t.aP(bt,I.u_latrange),u_light:new t.aP(bt,I.u_light),u_shadow:new t.aM(bt,I.u_shadow),u_highlight:new t.aM(bt,I.u_highlight),u_accent:new t.aM(bt,I.u_accent)}),Do=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_image:new t.aI(bt,I.u_image),u_dimension:new t.aP(bt,I.u_dimension),u_zoom:new t.aJ(bt,I.u_zoom),u_unpack:new t.aL(bt,I.u_unpack)}),gs=(bt,I,W,dt)=>{let xt=W.paint.get("hillshade-shadow-color"),Nt=W.paint.get("hillshade-highlight-color"),le=W.paint.get("hillshade-accent-color"),Ae=W.paint.get("hillshade-illumination-direction")*(Math.PI/180);W.paint.get("hillshade-illumination-anchor")==="viewport"&&(Ae-=bt.transform.angle);let Ue=!bt.options.moving;return{u_matrix:dt?dt.posMatrix:bt.transform.calculatePosMatrix(I.tileID.toUnwrapped(),Ue),u_image:0,u_latrange:Bu(bt,I.tileID),u_light:[W.paint.get("hillshade-exaggeration"),Ae],u_shadow:xt,u_highlight:Nt,u_accent:le}},Sl=(bt,I)=>{let W=I.stride,dt=t.H();return t.aQ(dt,0,t.X,-t.X,0,0,1),t.J(dt,dt,[0,-t.X,0]),{u_matrix:dt,u_image:1,u_dimension:[W,W],u_zoom:bt.overscaledZ,u_unpack:I.getUnpackVector()}};function Bu(bt,I){let W=2**I.canonical.z,dt=I.canonical.y;return[new t.Z(0,dt/W).toLngLat().lat,new t.Z(0,(dt+1)/W).toLngLat().lat]}let jo=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_ratio:new t.aJ(bt,I.u_ratio),u_device_pixel_ratio:new t.aJ(bt,I.u_device_pixel_ratio),u_units_to_pixels:new t.aP(bt,I.u_units_to_pixels)}),yu=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_ratio:new t.aJ(bt,I.u_ratio),u_device_pixel_ratio:new t.aJ(bt,I.u_device_pixel_ratio),u_units_to_pixels:new t.aP(bt,I.u_units_to_pixels),u_image:new t.aI(bt,I.u_image),u_image_height:new t.aJ(bt,I.u_image_height)}),Bs=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_texsize:new t.aP(bt,I.u_texsize),u_ratio:new t.aJ(bt,I.u_ratio),u_device_pixel_ratio:new t.aJ(bt,I.u_device_pixel_ratio),u_image:new t.aI(bt,I.u_image),u_units_to_pixels:new t.aP(bt,I.u_units_to_pixels),u_scale:new t.aO(bt,I.u_scale),u_fade:new t.aJ(bt,I.u_fade)}),ss=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_ratio:new t.aJ(bt,I.u_ratio),u_device_pixel_ratio:new t.aJ(bt,I.u_device_pixel_ratio),u_units_to_pixels:new t.aP(bt,I.u_units_to_pixels),u_patternscale_a:new t.aP(bt,I.u_patternscale_a),u_patternscale_b:new t.aP(bt,I.u_patternscale_b),u_sdfgamma:new t.aJ(bt,I.u_sdfgamma),u_image:new t.aI(bt,I.u_image),u_tex_y_a:new t.aJ(bt,I.u_tex_y_a),u_tex_y_b:new t.aJ(bt,I.u_tex_y_b),u_mix:new t.aJ(bt,I.u_mix)}),vu=(bt,I,W,dt)=>{let xt=bt.transform;return{u_matrix:rc(bt,I,W,dt),u_ratio:1/Br(I,1,xt.zoom),u_device_pixel_ratio:bt.pixelRatio,u_units_to_pixels:[1/xt.pixelsToGLUnits[0],1/xt.pixelsToGLUnits[1]]}},cl=(bt,I,W,dt,xt)=>t.e(vu(bt,I,W,xt),{u_image:0,u_image_height:dt}),el=(bt,I,W,dt,xt)=>{let Nt=bt.transform,le=xu(I,Nt);return{u_matrix:rc(bt,I,W,xt),u_texsize:I.imageAtlasTexture.size,u_ratio:1/Br(I,1,Nt.zoom),u_device_pixel_ratio:bt.pixelRatio,u_image:0,u_scale:[le,dt.fromScale,dt.toScale],u_fade:dt.t,u_units_to_pixels:[1/Nt.pixelsToGLUnits[0],1/Nt.pixelsToGLUnits[1]]}},Nu=(bt,I,W,dt,xt,Nt)=>{let le=bt.transform,Ae=bt.lineAtlas,Ue=xu(I,le),ir=W.layout.get("line-cap")==="round",cr=Ae.getDash(dt.from,ir),gr=Ae.getDash(dt.to,ir),Ur=cr.width*xt.fromScale,ri=gr.width*xt.toScale;return t.e(vu(bt,I,W,Nt),{u_patternscale_a:[Ue/Ur,-cr.height/2],u_patternscale_b:[Ue/ri,-gr.height/2],u_sdfgamma:Ae.width/(Math.min(Ur,ri)*256*bt.pixelRatio)/2,u_image:0,u_tex_y_a:cr.y,u_tex_y_b:gr.y,u_mix:xt.t})};function xu(bt,I){return 1/Br(bt,1,I.tileZoom)}function rc(bt,I,W,dt){return bt.translatePosMatrix(dt?dt.posMatrix:I.tileID.posMatrix,I,W.paint.get("line-translate"),W.paint.get("line-translate-anchor"))}let Hl=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_tl_parent:new t.aP(bt,I.u_tl_parent),u_scale_parent:new t.aJ(bt,I.u_scale_parent),u_buffer_scale:new t.aJ(bt,I.u_buffer_scale),u_fade_t:new t.aJ(bt,I.u_fade_t),u_opacity:new t.aJ(bt,I.u_opacity),u_image0:new t.aI(bt,I.u_image0),u_image1:new t.aI(bt,I.u_image1),u_brightness_low:new t.aJ(bt,I.u_brightness_low),u_brightness_high:new t.aJ(bt,I.u_brightness_high),u_saturation_factor:new t.aJ(bt,I.u_saturation_factor),u_contrast_factor:new t.aJ(bt,I.u_contrast_factor),u_spin_weights:new t.aO(bt,I.u_spin_weights)}),bh=(bt,I,W,dt,xt)=>({u_matrix:bt,u_tl_parent:I,u_scale_parent:W,u_buffer_scale:1,u_fade_t:dt.mix,u_opacity:dt.opacity*xt.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:xt.paint.get("raster-brightness-min"),u_brightness_high:xt.paint.get("raster-brightness-max"),u_saturation_factor:Rc(xt.paint.get("raster-saturation")),u_contrast_factor:ah(xt.paint.get("raster-contrast")),u_spin_weights:wh(xt.paint.get("raster-hue-rotate"))});function wh(bt){bt*=Math.PI/180;let I=Math.sin(bt),W=Math.cos(bt);return[(2*W+1)/3,(-Math.sqrt(3)*I-W+1)/3,(Math.sqrt(3)*I-W+1)/3]}function ah(bt){return bt>0?1/(1-bt):1+bt}function Rc(bt){return bt>0?1-1/(1.001-bt):-bt}let Th=(bt,I)=>({u_is_size_zoom_constant:new t.aI(bt,I.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aI(bt,I.u_is_size_feature_constant),u_size_t:new t.aJ(bt,I.u_size_t),u_size:new t.aJ(bt,I.u_size),u_camera_to_center_distance:new t.aJ(bt,I.u_camera_to_center_distance),u_pitch:new t.aJ(bt,I.u_pitch),u_rotate_symbol:new t.aI(bt,I.u_rotate_symbol),u_aspect_ratio:new t.aJ(bt,I.u_aspect_ratio),u_fade_change:new t.aJ(bt,I.u_fade_change),u_matrix:new t.aK(bt,I.u_matrix),u_label_plane_matrix:new t.aK(bt,I.u_label_plane_matrix),u_coord_matrix:new t.aK(bt,I.u_coord_matrix),u_is_text:new t.aI(bt,I.u_is_text),u_pitch_with_map:new t.aI(bt,I.u_pitch_with_map),u_is_along_line:new t.aI(bt,I.u_is_along_line),u_is_variable_anchor:new t.aI(bt,I.u_is_variable_anchor),u_texsize:new t.aP(bt,I.u_texsize),u_texture:new t.aI(bt,I.u_texture),u_translation:new t.aP(bt,I.u_translation),u_pitched_scale:new t.aJ(bt,I.u_pitched_scale)}),_u=(bt,I)=>({u_is_size_zoom_constant:new t.aI(bt,I.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aI(bt,I.u_is_size_feature_constant),u_size_t:new t.aJ(bt,I.u_size_t),u_size:new t.aJ(bt,I.u_size),u_camera_to_center_distance:new t.aJ(bt,I.u_camera_to_center_distance),u_pitch:new t.aJ(bt,I.u_pitch),u_rotate_symbol:new t.aI(bt,I.u_rotate_symbol),u_aspect_ratio:new t.aJ(bt,I.u_aspect_ratio),u_fade_change:new t.aJ(bt,I.u_fade_change),u_matrix:new t.aK(bt,I.u_matrix),u_label_plane_matrix:new t.aK(bt,I.u_label_plane_matrix),u_coord_matrix:new t.aK(bt,I.u_coord_matrix),u_is_text:new t.aI(bt,I.u_is_text),u_pitch_with_map:new t.aI(bt,I.u_pitch_with_map),u_is_along_line:new t.aI(bt,I.u_is_along_line),u_is_variable_anchor:new t.aI(bt,I.u_is_variable_anchor),u_texsize:new t.aP(bt,I.u_texsize),u_texture:new t.aI(bt,I.u_texture),u_gamma_scale:new t.aJ(bt,I.u_gamma_scale),u_device_pixel_ratio:new t.aJ(bt,I.u_device_pixel_ratio),u_is_halo:new t.aI(bt,I.u_is_halo),u_translation:new t.aP(bt,I.u_translation),u_pitched_scale:new t.aJ(bt,I.u_pitched_scale)}),nh=(bt,I)=>({u_is_size_zoom_constant:new t.aI(bt,I.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aI(bt,I.u_is_size_feature_constant),u_size_t:new t.aJ(bt,I.u_size_t),u_size:new t.aJ(bt,I.u_size),u_camera_to_center_distance:new t.aJ(bt,I.u_camera_to_center_distance),u_pitch:new t.aJ(bt,I.u_pitch),u_rotate_symbol:new t.aI(bt,I.u_rotate_symbol),u_aspect_ratio:new t.aJ(bt,I.u_aspect_ratio),u_fade_change:new t.aJ(bt,I.u_fade_change),u_matrix:new t.aK(bt,I.u_matrix),u_label_plane_matrix:new t.aK(bt,I.u_label_plane_matrix),u_coord_matrix:new t.aK(bt,I.u_coord_matrix),u_is_text:new t.aI(bt,I.u_is_text),u_pitch_with_map:new t.aI(bt,I.u_pitch_with_map),u_is_along_line:new t.aI(bt,I.u_is_along_line),u_is_variable_anchor:new t.aI(bt,I.u_is_variable_anchor),u_texsize:new t.aP(bt,I.u_texsize),u_texsize_icon:new t.aP(bt,I.u_texsize_icon),u_texture:new t.aI(bt,I.u_texture),u_texture_icon:new t.aI(bt,I.u_texture_icon),u_gamma_scale:new t.aJ(bt,I.u_gamma_scale),u_device_pixel_ratio:new t.aJ(bt,I.u_device_pixel_ratio),u_is_halo:new t.aI(bt,I.u_is_halo),u_translation:new t.aP(bt,I.u_translation),u_pitched_scale:new t.aJ(bt,I.u_pitched_scale)}),ic=(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,gr,Ur,ri)=>{let pi=le.transform;return{u_is_size_zoom_constant:+(bt==="constant"||bt==="source"),u_is_size_feature_constant:+(bt==="constant"||bt==="camera"),u_size_t:I?I.uSizeT:0,u_size:I?I.uSize:0,u_camera_to_center_distance:pi.cameraToCenterDistance,u_pitch:pi.pitch/360*2*Math.PI,u_rotate_symbol:+W,u_aspect_ratio:pi.width/pi.height,u_fade_change:le.options.fadeDuration?le.symbolFadeChange:1,u_matrix:Ae,u_label_plane_matrix:Ue,u_coord_matrix:ir,u_is_text:+gr,u_pitch_with_map:+dt,u_is_along_line:xt,u_is_variable_anchor:Nt,u_texsize:Ur,u_texture:0,u_translation:cr,u_pitched_scale:ri}},oh=(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,gr,Ur,ri,pi)=>{let xi=le.transform;return t.e(ic(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,gr,Ur,pi),{u_gamma_scale:dt?Math.cos(xi._pitch)*xi.cameraToCenterDistance:1,u_device_pixel_ratio:le.pixelRatio,u_is_halo:+ri})},sh=(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,gr,Ur,ri)=>t.e(oh(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,!0,gr,!0,ri),{u_texsize_icon:Ur,u_texture_icon:1}),ls=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_opacity:new t.aJ(bt,I.u_opacity),u_color:new t.aM(bt,I.u_color)}),us=(bt,I)=>({u_matrix:new t.aK(bt,I.u_matrix),u_opacity:new t.aJ(bt,I.u_opacity),u_image:new t.aI(bt,I.u_image),u_pattern_tl_a:new t.aP(bt,I.u_pattern_tl_a),u_pattern_br_a:new t.aP(bt,I.u_pattern_br_a),u_pattern_tl_b:new t.aP(bt,I.u_pattern_tl_b),u_pattern_br_b:new t.aP(bt,I.u_pattern_br_b),u_texsize:new t.aP(bt,I.u_texsize),u_mix:new t.aJ(bt,I.u_mix),u_pattern_size_a:new t.aP(bt,I.u_pattern_size_a),u_pattern_size_b:new t.aP(bt,I.u_pattern_size_b),u_scale_a:new t.aJ(bt,I.u_scale_a),u_scale_b:new t.aJ(bt,I.u_scale_b),u_pixel_coord_upper:new t.aP(bt,I.u_pixel_coord_upper),u_pixel_coord_lower:new t.aP(bt,I.u_pixel_coord_lower),u_tile_units_to_pixels:new t.aJ(bt,I.u_tile_units_to_pixels)}),tu=(bt,I,W)=>({u_matrix:bt,u_opacity:I,u_color:W}),Gl=(bt,I,W,dt,xt,Nt)=>t.e(ai(dt,Nt,W,xt),{u_matrix:bt,u_opacity:I}),lh=(bt,I)=>({u_sky_color:new t.aM(bt,I.u_sky_color),u_horizon_color:new t.aM(bt,I.u_horizon_color),u_horizon:new t.aJ(bt,I.u_horizon),u_sky_horizon_blend:new t.aJ(bt,I.u_sky_horizon_blend)}),kc=(bt,I,W)=>({u_sky_color:bt.properties.get("sky-color"),u_horizon_color:bt.properties.get("horizon-color"),u_horizon:(I.height/2+I.getHorizon())*W,u_sky_horizon_blend:bt.properties.get("sky-horizon-blend")*I.height/2*W}),bu={fillExtrusion:_i,fillExtrusionPattern:ua,fill:wa,fillPattern:ln,fillOutline:nn,fillOutlinePattern:sn,circle:os,collisionBox:Qo,collisionCircle:Gn,debug:xo,clippingMask:Fu,heatmap:zo,heatmapTexture:As,hillshade:bs,hillshadePrepare:Do,line:jo,lineGradient:yu,linePattern:Bs,lineSDF:ss,raster:Hl,symbolIcon:Th,symbolSDF:_u,symbolTextAndIcon:nh,background:ls,backgroundPattern:us,terrain:jr,terrainDepth:Ii,terrainCoords:Hi,sky:lh};class Fc{constructor(I,W,dt){this.context=I;let xt=I.gl;this.buffer=xt.createBuffer(),this.dynamicDraw=!!dt,this.context.unbindVAO(),I.bindElementBuffer.set(this.buffer),xt.bufferData(xt.ELEMENT_ARRAY_BUFFER,W.arrayBuffer,this.dynamicDraw?xt.DYNAMIC_DRAW:xt.STATIC_DRAW),this.dynamicDraw||delete W.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(I){let W=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),W.bufferSubData(W.ELEMENT_ARRAY_BUFFER,0,I.arrayBuffer)}destroy(){let I=this.context.gl;this.buffer&&(I.deleteBuffer(this.buffer),delete this.buffer)}}let kh={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class rl{constructor(I,W,dt,xt){this.length=W.length,this.attributes=dt,this.itemSize=W.bytesPerElement,this.dynamicDraw=xt,this.context=I;let Nt=I.gl;this.buffer=Nt.createBuffer(),I.bindVertexBuffer.set(this.buffer),Nt.bufferData(Nt.ARRAY_BUFFER,W.arrayBuffer,this.dynamicDraw?Nt.DYNAMIC_DRAW:Nt.STATIC_DRAW),this.dynamicDraw||delete W.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(I){if(I.length!==this.length)throw Error(`Length of new data is ${I.length}, which doesn't match current length of ${this.length}`);let W=this.context.gl;this.bind(),W.bufferSubData(W.ARRAY_BUFFER,0,I.arrayBuffer)}enableAttributes(I,W){for(let dt=0;dt0){let _a=t.H();t.aR(_a,Xi.placementInvProjMatrix,bt.transform.glCoordMatrix),t.aR(_a,_a,Xi.placementViewportMatrix),Ue.push({circleArray:xa,circleOffset:cr,transform:Vi.posMatrix,invTransform:_a,coord:Vi}),ir+=xa.length/4,cr=ir}$i&&Ae.draw(Nt,le.LINES,Yn.disabled,lo.disabled,bt.colorModeForRenderPass(),no.disabled,Ml(bt.transform,Vi.posMatrix),bt.style.map.terrain&&bt.style.map.terrain.getTerrainData(Vi),W.id,$i.layoutVertexBuffer,$i.indexBuffer,$i.segments,null,bt.transform.zoom,null,null,$i.collisionVertexBuffer)}if(!xt||!Ue.length)return;let gr=bt.useProgram("collisionCircle"),Ur=new t.aS;Ur.resize(ir*4),Ur._trim();let ri=0;for(let Mi of Ue)for(let Vi=0;ViI.style.map.terrain.getElevation(ri,mn,Xn):null,on=cr.translatePosition(ir,pi,le,Ae);ys(xi,gr,Ur,Ue,ir,$i,ri.posMatrix,_a,Vi,xa,cr,on,ri.toUnwrapped(),za)}}}function Mc(bt,I,W,dt,xt,Nt){let le=I.tileAnchorPoint.add(new t.P(I.translation[0],I.translation[1]));if(I.pitchWithMap){let Ae=dt.mult(Nt);return W||(Ae=Ae.rotate(-xt)),We(le.add(Ae),I.labelPlaneMatrix,I.getElevation).point}else if(W){let Ae=wr(I.tileAnchorPoint.x+1,I.tileAnchorPoint.y,I).point.sub(bt),Ue=Math.atan(Ae.y/Ae.x)+(Ae.x<0?Math.PI:0);return bt.add(dt.rotate(Ue))}else return bt.add(dt)}function ys(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir,cr,gr,Ur,ri){let pi=bt.text.placedSymbolArray,xi=bt.text.dynamicLayoutVertexArray,Mi=bt.icon.dynamicLayoutVertexArray,Vi={};xi.clear();for(let Xi=0;Xi=0&&(Vi[$i.associatedIconIndex]={shiftedAnchor:it,angle:mt})}}if(ir){Mi.clear();let Xi=bt.icon.placedSymbolArray;for(let $i=0;$ibt.style.map.terrain.getElevation(Qa,Tn,vo):null,Ka=W.layout.get("text-rotation-alignment")==="map";Cr(Dn,Qa.posMatrix,bt,xt,Ti,yi,Vi,ir,Ka,xi,Qa.toUnwrapped(),pi.width,pi.height,Pi,Xa)}let oa=Qa.posMatrix,da=xt&&mn||Ta,Aa=Xi||da?Gc:Ti,ga=vi,Va=$&&W.paint.get(xt?"text-halo-width":"icon-halo-width").constantOr(1)!==0,tn;tn=$?Dn.iconsInText?sh(at.kind,Ft,$i,Vi,Xi,da,bt,oa,Aa,ga,Pi,he,Ie,gn):oh(at.kind,Ft,$i,Vi,Xi,da,bt,oa,Aa,ga,Pi,xt,he,!0,gn):ic(at.kind,Ft,$i,Vi,Xi,da,bt,oa,Aa,ga,Pi,xt,he,gn);let en={program:mt,buffers:Rn,uniformValues:tn,atlasTexture:Qe,atlasTextureIcon:kr,atlasInterpolation:vr,atlasInterpolationIcon:Fr,isSDF:$,hasHalo:Va};if(_a&&Dn.canOverlap){za=!0;let Xa=Rn.segments.get();for(let Ka of Xa)Xn.push({segments:new t.a0([Ka]),sortKey:Ka.sortKey,state:en,terrainData:ie})}else Xn.push({segments:Rn.segments,sortKey:0,state:en,terrainData:ie})}za&&Xn.sort((Qa,un)=>Qa.sortKey-un.sortKey);for(let Qa of Xn){let un=Qa.state;if(Ur.activeTexture.set(ri.TEXTURE0),un.atlasTexture.bind(un.atlasInterpolation,ri.CLAMP_TO_EDGE),un.atlasTextureIcon&&(Ur.activeTexture.set(ri.TEXTURE1),un.atlasTextureIcon&&un.atlasTextureIcon.bind(un.atlasInterpolationIcon,ri.CLAMP_TO_EDGE)),un.isSDF){let Dn=un.uniformValues;un.hasHalo&&(Dn.u_is_halo=1,Gs(un.buffers,Qa.segments,W,bt,un.program,on,cr,gr,Dn,Qa.terrainData)),Dn.u_is_halo=0}Gs(un.buffers,Qa.segments,W,bt,un.program,on,cr,gr,un.uniformValues,Qa.terrainData)}}function Gs(bt,I,W,dt,xt,Nt,le,Ae,Ue,ir){let cr=dt.context,gr=cr.gl;xt.draw(cr,gr.TRIANGLES,Nt,le,Ae,no.disabled,Ue,ir,W.id,bt.layoutVertexBuffer,bt.indexBuffer,I,W.paint,dt.transform.zoom,bt.programConfigurations.get(W.id),bt.dynamicLayoutVertexBuffer,bt.opacityVertexBuffer)}function uc(bt,I,W,dt){if(bt.renderPass!=="translucent")return;let xt=W.paint.get("circle-opacity"),Nt=W.paint.get("circle-stroke-width"),le=W.paint.get("circle-stroke-opacity"),Ae=!W.layout.get("circle-sort-key").isConstant();if(xt.constantOr(1)===0&&(Nt.constantOr(1)===0||le.constantOr(1)===0))return;let Ue=bt.context,ir=Ue.gl,cr=bt.depthModeForSublayer(0,Yn.ReadOnly),gr=lo.disabled,Ur=bt.colorModeForRenderPass(),ri=[];for(let pi=0;pipi.sortKey-xi.sortKey);for(let pi of ri){let{programConfiguration:xi,program:Mi,layoutVertexBuffer:Vi,indexBuffer:Xi,uniformValues:$i,terrainData:xa}=pi.state,_a=pi.segments;Mi.draw(Ue,ir.TRIANGLES,cr,gr,Ur,no.disabled,$i,xa,W.id,Vi,Xi,_a,W.paint,bt.transform.zoom,xi)}}function Zu(bt,I,W,dt){if(W.paint.get("heatmap-opacity")!==0)if(bt.renderPass==="offscreen"){let xt=bt.context,Nt=xt.gl,le=lo.disabled,Ae=new wo([Nt.ONE,Nt.ONE],t.aN.transparent,[!0,!0,!0,!0]);cc(xt,bt,W),xt.clear({color:t.aN.transparent});for(let Ue=0;Ue20&&Nt.texParameterf(Nt.TEXTURE_2D,xt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,xt.extTextureFilterAnisotropicMax);let za=bt.style.map.terrain&&bt.style.map.terrain.getTerrainData(ri),on=za?ri:null,mn=bh(on?on.posMatrix:bt.transform.calculatePosMatrix(ri.toUnwrapped(),Ur),xa||[0,0],$i||1,Xi,W);le instanceof $t?Ae.draw(xt,Nt.TRIANGLES,pi,lo.disabled,Ue,no.disabled,mn,za,W.id,le.boundsBuffer,bt.quadTriangleIndexBuffer,le.boundsSegments):Ae.draw(xt,Nt.TRIANGLES,pi,ir[ri.overscaledZ],Ue,no.disabled,mn,za,W.id,bt.rasterBoundsBuffer,bt.quadTriangleIndexBuffer,bt.rasterBoundsSegments)}}function Zl(bt,I,W,dt,xt,Nt){let le=dt.paint.get("raster-fade-duration");if(!Nt&&le>0){let Ae=i.now(),Ue=(Ae-bt.timeAdded)/le,ir=I?(Ae-I.timeAdded)/le:-1,cr=W.getSource(),gr=xt.coveringZoomLevel({tileSize:cr.tileSize,roundZoom:cr.roundZoom}),Ur=!I||Math.abs(I.tileID.overscaledZ-gr)>Math.abs(bt.tileID.overscaledZ-gr),ri=Ur&&bt.refreshedUponExpiration?1:t.ad(Ur?Ue:1-ir,0,1);return bt.refreshedUponExpiration&&Ue>=1&&(bt.refreshedUponExpiration=!1),I?{opacity:1,mix:1-ri}:{opacity:ri,mix:0}}else return{opacity:1,mix:0}}function ou(bt,I,W,dt){let xt=W.paint.get("background-color"),Nt=W.paint.get("background-opacity");if(Nt===0)return;let le=bt.context,Ae=le.gl,Ue=bt.transform,ir=Ue.tileSize,cr=W.paint.get("background-pattern");if(bt.isPatternMissing(cr))return;let gr=!cr&&xt.a===1&&Nt===1&&bt.opaquePassEnabledForLayer()?"opaque":"translucent";if(bt.renderPass!==gr)return;let Ur=lo.disabled,ri=bt.depthModeForSublayer(0,gr==="opaque"?Yn.ReadWrite:Yn.ReadOnly),pi=bt.colorModeForRenderPass(),xi=bt.useProgram(cr?"backgroundPattern":"background"),Mi=dt||Ue.coveringTiles({tileSize:ir,terrain:bt.style.map.terrain});cr&&(le.activeTexture.set(Ae.TEXTURE0),bt.imageManager.bind(bt.context));let Vi=W.getCrossfadeParameters();for(let Xi of Mi){let $i=dt?Xi.posMatrix:bt.transform.calculatePosMatrix(Xi.toUnwrapped()),xa=cr?Gl($i,Nt,bt,cr,{tileID:Xi,tileSize:ir},Vi):tu($i,Nt,xt),_a=bt.style.map.terrain&&bt.style.map.terrain.getTerrainData(Xi);xi.draw(le,Ae.TRIANGLES,ri,Ur,pi,no.disabled,xa,_a,W.id,bt.tileExtentBuffer,bt.quadTriangleIndexBuffer,bt.tileExtentSegments)}}let pc=new t.aN(1,0,0,1),Wl=new t.aN(0,1,0,1),uo=new t.aN(0,0,1,1),Rl=new t.aN(1,0,1,1),Ec=new t.aN(0,1,1,1);function dc(bt){let I=bt.transform.padding;Mu(bt,bt.transform.height-(I.top||0),3,pc),Mu(bt,I.bottom||0,3,Wl),Yl(bt,I.left||0,3,uo),Yl(bt,bt.transform.width-(I.right||0),3,Rl);let W=bt.transform.centerPoint;mc(bt,W.x,bt.transform.height-W.y,Ec)}function mc(bt,I,W,dt){al(bt,I-1,W-10,2,20,dt),al(bt,I-10,W-1,20,2,dt)}function Mu(bt,I,W,dt){al(bt,0,I+W/2,bt.transform.width,W,dt)}function Yl(bt,I,W,dt){al(bt,I-W/2,0,W,bt.transform.height,dt)}function al(bt,I,W,dt,xt,Nt){let le=bt.context,Ae=le.gl;Ae.enable(Ae.SCISSOR_TEST),Ae.scissor(I*bt.pixelRatio,W*bt.pixelRatio,dt*bt.pixelRatio,xt*bt.pixelRatio),le.clear({color:Nt}),Ae.disable(Ae.SCISSOR_TEST)}function Cs(bt,I,W){for(let dt=0;dt ${W.overscaledZ}`),Su(bt,`${Vi} ${pi}kB`),le.draw(dt,xt.TRIANGLES,Ae,Ue,wo.alphaBlended,no.disabled,_s(Nt,t.aN.transparent,Mi),null,cr,bt.debugBuffer,bt.quadTriangleIndexBuffer,bt.debugSegments),le.draw(dt,xt.LINE_STRIP,Ae,Ue,ir,no.disabled,_s(Nt,t.aN.red),gr,cr,bt.debugBuffer,bt.tileBorderIndexBuffer,bt.debugSegments)}function Su(bt,I){bt.initDebugOverlayCanvas();let W=bt.debugOverlayCanvas,dt=bt.context.gl,xt=bt.debugOverlayCanvas.getContext("2d");xt.clearRect(0,0,W.width,W.height),xt.shadowColor="white",xt.shadowBlur=2,xt.lineWidth=1.5,xt.strokeStyle="white",xt.textBaseline="top",xt.font="bold 36px Open Sans, sans-serif",xt.fillText(I,5,5),xt.strokeText(I,5,5),bt.debugOverlayTexture.update(W),bt.debugOverlayTexture.bind(dt.LINEAR,dt.CLAMP_TO_EDGE)}function Fl(bt,I){let W=null,dt=Object.values(bt._layers).flatMap(Ae=>Ae.source&&!Ae.isHidden(I)?[bt.sourceCaches[Ae.source]]:[]),xt=dt.filter(Ae=>Ae.getSource().type==="vector"),Nt=dt.filter(Ae=>Ae.getSource().type!=="vector"),le=Ae=>{(!W||W.getSource().maxzoomle(Ae)),W||Nt.forEach(Ae=>le(Ae)),W}function Xl(bt,I,W){let dt=bt.context,xt=W.implementation;if(bt.renderPass==="offscreen"){let Nt=xt.prerender;Nt&&(bt.setCustomLayerDefaults(),dt.setColorMode(bt.colorModeForRenderPass()),Nt.call(xt,dt.gl,bt.transform.customLayerMatrix()),dt.setDirty(),bt.setBaseState())}else if(bt.renderPass==="translucent"){bt.setCustomLayerDefaults(),dt.setColorMode(bt.colorModeForRenderPass()),dt.setStencilMode(lo.disabled);let Nt=xt.renderingMode==="3d"?new Yn(bt.context.gl.LEQUAL,Yn.ReadWrite,bt.depthRangeFor3D):bt.depthModeForSublayer(0,Yn.ReadOnly);dt.setDepthMode(Nt),xt.render(dt.gl,bt.transform.customLayerMatrix(),{farZ:bt.transform.farZ,nearZ:bt.transform.nearZ,fov:bt.transform._fov,modelViewProjectionMatrix:bt.transform.modelViewProjectionMatrix,projectionMatrix:bt.transform.projectionMatrix}),dt.setDirty(),bt.setBaseState(),dt.bindFramebuffer.set(null)}}function Ws(bt,I){let W=bt.context,dt=W.gl,xt=wo.unblended,Nt=new Yn(dt.LEQUAL,Yn.ReadWrite,[0,1]),le=I.getTerrainMesh(),Ae=I.sourceCache.getRenderableTiles(),Ue=bt.useProgram("terrainDepth");W.bindFramebuffer.set(I.getFramebuffer("depth").framebuffer),W.viewport.set([0,0,bt.width/devicePixelRatio,bt.height/devicePixelRatio]),W.clear({color:t.aN.transparent,depth:1});for(let ir of Ae){let cr=I.getTerrainData(ir.tileID),gr=sa(bt.transform.calculatePosMatrix(ir.tileID.toUnwrapped()),I.getMeshFrameDelta(bt.transform.zoom));Ue.draw(W,dt.TRIANGLES,Nt,lo.disabled,xt,no.backCCW,gr,cr,"terrain",le.vertexBuffer,le.indexBuffer,le.segments)}W.bindFramebuffer.set(null),W.viewport.set([0,0,bt.width,bt.height])}function Bl(bt,I){let W=bt.context,dt=W.gl,xt=wo.unblended,Nt=new Yn(dt.LEQUAL,Yn.ReadWrite,[0,1]),le=I.getTerrainMesh(),Ae=I.getCoordsTexture(),Ue=I.sourceCache.getRenderableTiles(),ir=bt.useProgram("terrainCoords");W.bindFramebuffer.set(I.getFramebuffer("coords").framebuffer),W.viewport.set([0,0,bt.width/devicePixelRatio,bt.height/devicePixelRatio]),W.clear({color:t.aN.transparent,depth:1}),I.coordsIndex=[];for(let cr of Ue){let gr=I.getTerrainData(cr.tileID);W.activeTexture.set(dt.TEXTURE0),dt.bindTexture(dt.TEXTURE_2D,Ae.texture);let Ur=Qi(bt.transform.calculatePosMatrix(cr.tileID.toUnwrapped()),255-I.coordsIndex.length,I.getMeshFrameDelta(bt.transform.zoom));ir.draw(W,dt.TRIANGLES,Nt,lo.disabled,xt,no.backCCW,Ur,gr,"terrain",le.vertexBuffer,le.indexBuffer,le.segments),I.coordsIndex.push(cr.tileID.key)}W.bindFramebuffer.set(null),W.viewport.set([0,0,bt.width,bt.height])}function su(bt,I,W){let dt=bt.context,xt=dt.gl,Nt=bt.colorModeForRenderPass(),le=new Yn(xt.LEQUAL,Yn.ReadWrite,bt.depthRangeFor3D),Ae=bt.useProgram("terrain"),Ue=I.getTerrainMesh();dt.bindFramebuffer.set(null),dt.viewport.set([0,0,bt.width,bt.height]);for(let ir of W){let cr=bt.renderToTexture.getTexture(ir),gr=I.getTerrainData(ir.tileID);dt.activeTexture.set(xt.TEXTURE0),xt.bindTexture(xt.TEXTURE_2D,cr.texture);let Ur=Oi(bt.transform.calculatePosMatrix(ir.tileID.toUnwrapped()),I.getMeshFrameDelta(bt.transform.zoom),bt.transform.calculateFogMatrix(ir.tileID.toUnwrapped()),bt.style.sky,bt.transform.pitch);Ae.draw(dt,xt.TRIANGLES,le,lo.disabled,Nt,no.backCCW,Ur,gr,"terrain",Ue.vertexBuffer,Ue.indexBuffer,Ue.segments)}}class Uo{constructor(I,W,dt){this.vertexBuffer=I,this.indexBuffer=W,this.segments=dt}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}function lu(bt,I){let W=bt.context,dt=W.gl,xt=kc(I,bt.style.map.transform,bt.pixelRatio),Nt=new Yn(dt.LEQUAL,Yn.ReadWrite,[0,1]),le=lo.disabled,Ae=bt.colorModeForRenderPass(),Ue=bt.useProgram("sky");if(!I.mesh){let ir=new t.aX;ir.emplaceBack(-1,-1),ir.emplaceBack(1,-1),ir.emplaceBack(1,1),ir.emplaceBack(-1,1);let cr=new t.aY;cr.emplaceBack(0,1,2),cr.emplaceBack(0,2,3),I.mesh=new Uo(W.createVertexBuffer(ir,fa.members),W.createIndexBuffer(cr),t.a0.simpleSegment(0,0,ir.length,cr.length))}Ue.draw(W,dt.TRIANGLES,Nt,le,Ae,no.disabled,xt,void 0,"sky",I.mesh.vertexBuffer,I.mesh.indexBuffer,I.mesh.segments)}class Eu{constructor(I,W){this.context=new Ll(I),this.transform=W,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:t.ao(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=Pr.maxUnderzooming+Pr.maxOverzooming+1,this.depthEpsilon=152587890625e-16,this.crossTileSymbolIndex=new Si}resize(I,W,dt){if(this.width=Math.floor(I*dt),this.height=Math.floor(W*dt),this.pixelRatio=dt,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let xt of this.style._order)this.style._layers[xt].resize()}setup(){let I=this.context,W=new t.aX;W.emplaceBack(0,0),W.emplaceBack(t.X,0),W.emplaceBack(0,t.X),W.emplaceBack(t.X,t.X),this.tileExtentBuffer=I.createVertexBuffer(W,fa.members),this.tileExtentSegments=t.a0.simpleSegment(0,0,4,2);let dt=new t.aX;dt.emplaceBack(0,0),dt.emplaceBack(t.X,0),dt.emplaceBack(0,t.X),dt.emplaceBack(t.X,t.X),this.debugBuffer=I.createVertexBuffer(dt,fa.members),this.debugSegments=t.a0.simpleSegment(0,0,4,5);let xt=new t.$;xt.emplaceBack(0,0,0,0),xt.emplaceBack(t.X,0,t.X,0),xt.emplaceBack(0,t.X,0,t.X),xt.emplaceBack(t.X,t.X,t.X,t.X),this.rasterBoundsBuffer=I.createVertexBuffer(xt,Wt.members),this.rasterBoundsSegments=t.a0.simpleSegment(0,0,4,2);let Nt=new t.aX;Nt.emplaceBack(0,0),Nt.emplaceBack(1,0),Nt.emplaceBack(0,1),Nt.emplaceBack(1,1),this.viewportBuffer=I.createVertexBuffer(Nt,fa.members),this.viewportSegments=t.a0.simpleSegment(0,0,4,2);let le=new t.aZ;le.emplaceBack(0),le.emplaceBack(1),le.emplaceBack(3),le.emplaceBack(2),le.emplaceBack(0),this.tileBorderIndexBuffer=I.createIndexBuffer(le);let Ae=new t.aY;Ae.emplaceBack(0,1,2),Ae.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=I.createIndexBuffer(Ae);let Ue=this.context.gl;this.stencilClearMode=new lo({func:Ue.ALWAYS,mask:0},0,255,Ue.ZERO,Ue.ZERO,Ue.ZERO)}clearStencil(){let I=this.context,W=I.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let dt=t.H();t.aQ(dt,0,this.width,this.height,0,0,1),t.K(dt,dt,[W.drawingBufferWidth,W.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(I,W.TRIANGLES,Yn.disabled,this.stencilClearMode,wo.disabled,no.disabled,Oo(dt),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(I,W){if(this.currentStencilSource===I.source||!I.isTileClipped()||!W||!W.length)return;this.currentStencilSource=I.source;let dt=this.context,xt=dt.gl;this.nextStencilID+W.length>256&&this.clearStencil(),dt.setColorMode(wo.disabled),dt.setDepthMode(Yn.disabled);let Nt=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let le of W){let Ae=this._tileClippingMaskIDs[le.key]=this.nextStencilID++,Ue=this.style.map.terrain&&this.style.map.terrain.getTerrainData(le);Nt.draw(dt,xt.TRIANGLES,Yn.disabled,new lo({func:xt.ALWAYS,mask:0},Ae,255,xt.KEEP,xt.KEEP,xt.REPLACE),wo.disabled,no.disabled,Oo(le.posMatrix),Ue,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let I=this.nextStencilID++,W=this.context.gl;return new lo({func:W.NOTEQUAL,mask:255},I,255,W.KEEP,W.KEEP,W.REPLACE)}stencilModeForClipping(I){let W=this.context.gl;return new lo({func:W.EQUAL,mask:255},this._tileClippingMaskIDs[I.key],0,W.KEEP,W.KEEP,W.REPLACE)}stencilConfigForOverlap(I){let W=this.context.gl,dt=I.sort((le,Ae)=>Ae.overscaledZ-le.overscaledZ),xt=dt[dt.length-1].overscaledZ,Nt=dt[0].overscaledZ-xt+1;if(Nt>1){this.currentStencilSource=void 0,this.nextStencilID+Nt>256&&this.clearStencil();let le={};for(let Ae=0;Ae=0;this.currentLayer--){let ir=this.style._layers[dt[this.currentLayer]],cr=xt[ir.source],gr=Nt[ir.source];this._renderTileClippingMasks(ir,gr),this.renderLayer(this,cr,ir,gr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0),xt&&(t.b0(W,dt),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,Ws(this,this.style.map.terrain),Bl(this,this.style.map.terrain))}renderLayer(I,W,dt,xt){if(!dt.isHidden(this.transform.zoom)&&!(dt.type!=="background"&&dt.type!=="custom"&&!(xt||[]).length))switch(this.id=dt.id,dt.type){case"symbol":sc(I,W,dt,xt,this.style.placement.variableOffsets);break;case"circle":uc(I,W,dt,xt);break;case"heatmap":Zu(I,W,dt,xt);break;case"line":hc(I,W,dt,xt);break;case"fill":ts(I,W,dt,xt);break;case"fill-extrusion":Dl(I,W,dt,xt);break;case"hillshade":Sc(I,W,dt,xt);break;case"raster":fc(I,W,dt,xt);break;case"background":ou(I,W,dt,xt);break;case"custom":Xl(I,W,dt);break}}translatePosMatrix(I,W,dt,xt,Nt){if(!dt[0]&&!dt[1])return I;let le=Nt?xt==="map"?this.transform.angle:0:xt==="viewport"?-this.transform.angle:0;if(le){let ir=Math.sin(le),cr=Math.cos(le);dt=[dt[0]*cr-dt[1]*ir,dt[0]*ir+dt[1]*cr]}let Ae=[Nt?dt[0]:Br(W,dt[0],this.transform.zoom),Nt?dt[1]:Br(W,dt[1],this.transform.zoom),0],Ue=new Float32Array(16);return t.J(Ue,I,Ae),Ue}saveTileTexture(I){let W=this._tileTextures[I.size[0]];W?W.push(I):this._tileTextures[I.size[0]]=[I]}getTileTexture(I){let W=this._tileTextures[I];return W&&W.length>0?W.pop():null}isPatternMissing(I){if(!I)return!1;if(!I.from||!I.to)return!0;let W=this.imageManager.getPattern(I.from.toString()),dt=this.imageManager.getPattern(I.to.toString());return!W||!dt}useProgram(I,W){this.cache=this.cache||{};let dt=I+(W?W.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[dt]||(this.cache[dt]=new Zr(this.context,Ca[I],W,bu[I],this._showOverdrawInspector,this.style.map.terrain)),this.cache[dt]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let I=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(I.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let I=this.context.gl;this.debugOverlayTexture=new ft(this.context,this.debugOverlayCanvas,I.RGBA)}}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:I,drawingBufferHeight:W}=this.context.gl;return this.width!==I||this.height!==W}}class uu{constructor(I,W){this.points=I,this.planes=W}static fromInvProjectionMatrix(I,W,dt){let xt=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],Nt=2**dt,le=xt.map(Ae=>{Ae=t.ag([],Ae,I);let Ue=1/Ae[3]/W*Nt;return t.b1(Ae,Ae,[Ue,Ue,1/Ae[3],Ue])});return new uu(le,[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Ae=>{let Ue=C([],F([],j([],le[Ae[0]],le[Ae[1]]),j([],le[Ae[2]],le[Ae[1]]))),ir=-_(Ue,le[Ae[1]]);return Ue.concat(ir)}))}}class nl{constructor(I,W){this.min=I,this.max=W,this.center=T([],L([],this.min,this.max),.5)}quadrant(I){let W=[I%2==0,I<2],dt=k(this.min),xt=k(this.max);for(let Nt=0;Nt=0&&le++;if(le===0)return 0;le!==W.length&&(dt=!1)}if(dt)return 2;for(let xt=0;xt<3;xt++){let Nt=Number.MAX_VALUE,le=-Number.MAX_VALUE;for(let Ae=0;Aethis.max[xt]-this.min[xt])return 0}return 1}}class cs{constructor(I=0,W=0,dt=0,xt=0){if(isNaN(I)||I<0||isNaN(W)||W<0||isNaN(dt)||dt<0||isNaN(xt)||xt<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=I,this.bottom=W,this.left=dt,this.right=xt}interpolate(I,W,dt){return W.top!=null&&I.top!=null&&(this.top=t.z.number(I.top,W.top,dt)),W.bottom!=null&&I.bottom!=null&&(this.bottom=t.z.number(I.bottom,W.bottom,dt)),W.left!=null&&I.left!=null&&(this.left=t.z.number(I.left,W.left,dt)),W.right!=null&&I.right!=null&&(this.right=t.z.number(I.right,W.right,dt)),this}getCenter(I,W){let dt=t.ad((this.left+I-this.right)/2,0,I),xt=t.ad((this.top+W-this.bottom)/2,0,W);return new t.P(dt,xt)}equals(I){return this.top===I.top&&this.bottom===I.bottom&&this.left===I.left&&this.right===I.right}clone(){return new cs(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Cu=85.051129;class cu{constructor(I,W,dt,xt,Nt){this.tileSize=512,this._renderWorldCopies=Nt===void 0?!0:!!Nt,this._minZoom=I||0,this._maxZoom=W||22,this._minPitch=dt??0,this._maxPitch=xt??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new cs,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let I=new cu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return I.apply(this),I}apply(I){this.tileSize=I.tileSize,this.latRange=I.latRange,this.width=I.width,this.height=I.height,this._center=I._center,this._elevation=I._elevation,this.minElevationForCurrentTile=I.minElevationForCurrentTile,this.zoom=I.zoom,this.angle=I.angle,this._fov=I._fov,this._pitch=I._pitch,this._unmodified=I._unmodified,this._edgeInsets=I._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(I){this._minZoom!==I&&(this._minZoom=I,this.zoom=Math.max(this.zoom,I))}get maxZoom(){return this._maxZoom}set maxZoom(I){this._maxZoom!==I&&(this._maxZoom=I,this.zoom=Math.min(this.zoom,I))}get minPitch(){return this._minPitch}set minPitch(I){this._minPitch!==I&&(this._minPitch=I,this.pitch=Math.max(this.pitch,I))}get maxPitch(){return this._maxPitch}set maxPitch(I){this._maxPitch!==I&&(this._maxPitch=I,this.pitch=Math.min(this.pitch,I))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(I){I===void 0?I=!0:I===null&&(I=!1),this._renderWorldCopies=I}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(I){let W=-t.b3(I,-180,180)*Math.PI/180;this.angle!==W&&(this._unmodified=!1,this.angle=W,this._calcMatrices(),this.rotationMatrix=h(),d(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(I){let W=t.ad(I,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==W&&(this._unmodified=!1,this._pitch=W,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(I){I=Math.max(.01,Math.min(60,I)),this._fov!==I&&(this._unmodified=!1,this._fov=I/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(I){let W=Math.min(Math.max(I,this.minZoom),this.maxZoom);this._zoom!==W&&(this._unmodified=!1,this._zoom=W,this.tileZoom=Math.max(0,Math.floor(W)),this.scale=this.zoomScale(W),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(I){I.lat===this._center.lat&&I.lng===this._center.lng||(this._unmodified=!1,this._center=I,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(I){I!==this._elevation&&(this._elevation=I,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(I){this._edgeInsets.equals(I)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,I,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(I){return this._edgeInsets.equals(I)}interpolatePadding(I,W,dt){this._unmodified=!1,this._edgeInsets.interpolate(I,W,dt),this._constrain(),this._calcMatrices()}coveringZoomLevel(I){let W=(I.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/I.tileSize));return Math.max(0,W)}getVisibleUnwrappedCoordinates(I){let W=[new t.b4(0,I)];if(this._renderWorldCopies){let dt=this.pointCoordinate(new t.P(0,0)),xt=this.pointCoordinate(new t.P(this.width,0)),Nt=this.pointCoordinate(new t.P(this.width,this.height)),le=this.pointCoordinate(new t.P(0,this.height)),Ae=Math.floor(Math.min(dt.x,xt.x,Nt.x,le.x)),Ue=Math.floor(Math.max(dt.x,xt.x,Nt.x,le.x));for(let ir=Ae-1;ir<=Ue+1;ir++)ir!==0&&W.push(new t.b4(ir,I))}return W}coveringTiles(I){let W=this.coveringZoomLevel(I),dt=W;if(I.minzoom!==void 0&&WI.maxzoom&&(W=I.maxzoom);let xt=this.pointCoordinate(this.getCameraPoint()),Nt=t.Z.fromLngLat(this.center),le=2**W,Ae=[le*xt.x,le*xt.y,0],Ue=[le*Nt.x,le*Nt.y,0],ir=uu.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,W),cr=I.minzoom||0;!I.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(cr=W);let gr=I.terrain?2/Math.min(this.tileSize,I.tileSize)*this.tileSize:3,Ur=Vi=>({aabb:new nl([Vi*le,0,0],[(Vi+1)*le,le,0]),zoom:0,x:0,y:0,wrap:Vi,fullyVisible:!1}),ri=[],pi=[],xi=W,Mi=I.reparseOverscaled?dt:W;if(this._renderWorldCopies)for(let Vi=1;Vi<=3;Vi++)ri.push(Ur(-Vi)),ri.push(Ur(Vi));for(ri.push(Ur(0));ri.length>0;){let Vi=ri.pop(),Xi=Vi.x,$i=Vi.y,xa=Vi.fullyVisible;if(!xa){let gn=Vi.aabb.intersects(ir);if(gn===0)continue;xa=gn===2}let _a=I.terrain?Ae:Ue,za=Vi.aabb.distanceX(_a),on=Vi.aabb.distanceY(_a),mn=Math.max(Math.abs(za),Math.abs(on)),Xn=gr+(1<Xn&&Vi.zoom>=cr){let gn=xi-Vi.zoom,Qa=Ae[0]-.5-(Xi<>1),Dn=Vi.zoom+1,Rn=Vi.aabb.quadrant(gn);if(I.terrain){let so=new t.S(Dn,Vi.wrap,Dn,Qa,un),$=I.terrain.getMinMaxElevation(so),at=$.minElevation??this.elevation,it=$.maxElevation??this.elevation;Rn=new nl([Rn.min[0],Rn.min[1],at],[Rn.max[0],Rn.max[1],it])}ri.push({aabb:Rn,zoom:Dn,x:Qa,y:un,wrap:Vi.wrap,fullyVisible:xa})}}return pi.sort((Vi,Xi)=>Vi.distanceSq-Xi.distanceSq).map(Vi=>Vi.tileID)}resize(I,W){this.width=I,this.height=W,this.pixelsToGLUnits=[2/I,-2/W],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(I){return 2**I}scaleZoom(I){return Math.log(I)/Math.LN2}project(I){let W=t.ad(I.lat,-Cu,Cu);return new t.P(t.O(I.lng)*this.worldSize,t.Q(W)*this.worldSize)}unproject(I){return new t.Z(I.x/this.worldSize,I.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(I){let W=this.elevation,dt=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,xt=this.pointLocation(this.centerPoint,I),Nt=I.getElevationForLngLatZoom(xt,this.tileZoom);if(!(this.elevation-Nt))return;let le=dt+W-Nt,Ae=Math.cos(this._pitch)*this.cameraToCenterDistance/le/t.b5(1,xt.lat)/this.tileSize,Ue=this.scaleZoom(Ae);this._elevation=Nt,this._center=xt,this.zoom=Ue}setLocationAtPoint(I,W){let dt=this.pointCoordinate(W),xt=this.pointCoordinate(this.centerPoint),Nt=this.locationCoordinate(I),le=new t.Z(Nt.x-(dt.x-xt.x),Nt.y-(dt.y-xt.y));this.center=this.coordinateLocation(le),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(I,W){return W?this.coordinatePoint(this.locationCoordinate(I),W.getElevationForLngLatZoom(I,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(I))}pointLocation(I,W){return this.coordinateLocation(this.pointCoordinate(I,W))}locationCoordinate(I){return t.Z.fromLngLat(I)}coordinateLocation(I){return I&&I.toLngLat()}pointCoordinate(I,W){if(W){let pi=W.pointCoordinate(I);if(pi!=null)return pi}let dt=[I.x,I.y,0,1],xt=[I.x,I.y,1,1];t.ag(dt,dt,this.pixelMatrixInverse),t.ag(xt,xt,this.pixelMatrixInverse);let Nt=dt[3],le=xt[3],Ae=dt[0]/Nt,Ue=xt[0]/le,ir=dt[1]/Nt,cr=xt[1]/le,gr=dt[2]/Nt,Ur=xt[2]/le,ri=gr===Ur?0:(0-gr)/(Ur-gr);return new t.Z(t.z.number(Ae,Ue,ri)/this.worldSize,t.z.number(ir,cr,ri)/this.worldSize)}coordinatePoint(I,W=0,dt=this.pixelMatrix){let xt=[I.x*this.worldSize,I.y*this.worldSize,W,1];return t.ag(xt,xt,dt),new t.P(xt[0]/xt[3],xt[1]/xt[3])}getBounds(){let I=Math.max(0,this.height/2-this.getHorizon());return new nr().extend(this.pointLocation(new t.P(0,I))).extend(this.pointLocation(new t.P(this.width,I))).extend(this.pointLocation(new t.P(this.width,this.height))).extend(this.pointLocation(new t.P(0,this.height)))}getMaxBounds(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new nr([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(I){I?(this.lngRange=[I.getWest(),I.getEast()],this.latRange=[I.getSouth(),I.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-Cu,Cu])}calculateTileMatrix(I){let W=I.canonical,dt=this.worldSize/this.zoomScale(W.z),xt=W.x+2**W.z*I.wrap,Nt=t.ao(new Float64Array(16));return t.J(Nt,Nt,[xt*dt,W.y*dt,0]),t.K(Nt,Nt,[dt/t.X,dt/t.X,1]),Nt}calculatePosMatrix(I,W=!1){let dt=I.key,xt=W?this._alignedPosMatrixCache:this._posMatrixCache;if(xt[dt])return xt[dt];let Nt=this.calculateTileMatrix(I);return t.L(Nt,W?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,Nt),xt[dt]=new Float32Array(Nt),xt[dt]}calculateFogMatrix(I){let W=I.key,dt=this._fogMatrixCache;if(dt[W])return dt[W];let xt=this.calculateTileMatrix(I);return t.L(xt,this.fogMatrix,xt),dt[W]=new Float32Array(xt),dt[W]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(I,W){W=t.ad(+W,this.minZoom,this.maxZoom);let dt={center:new t.N(I.lng,I.lat),zoom:W},xt=this.lngRange;if(!this._renderWorldCopies&&xt===null){let $i=179.9999999999;xt=[-$i,$i]}let Nt=this.tileSize*this.zoomScale(dt.zoom),le=0,Ae=Nt,Ue=0,ir=Nt,cr=0,gr=0,{x:Ur,y:ri}=this.size;if(this.latRange){let $i=this.latRange;le=t.Q($i[1])*Nt,Ae=t.Q($i[0])*Nt,Ae-leAe&&(Vi=Ae-$i)}if(xt){let $i=(Ue+ir)/2,xa=pi;this._renderWorldCopies&&(xa=t.b3(pi,$i-Nt/2,$i+Nt/2));let _a=Ur/2;xa-_air&&(Mi=ir-_a)}if(Mi!==void 0||Vi!==void 0){let $i=new t.P(Mi??pi,Vi??xi);dt.center=this.unproject.call({worldSize:Nt},$i).wrap()}return dt}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let I=this._unmodified,{center:W,zoom:dt}=this.getConstrained(this.center,this.zoom);this.center=W,this.zoom=dt,this._unmodified=I,this._constraining=!1}_calcMatrices(){if(!this.height)return;let I=this._fov/2,W=this.centerOffset,dt=this.point.x,xt=this.point.y;this.cameraToCenterDistance=.5/Math.tan(I)*this.height,this._pixelPerMeter=t.b5(1,this.center.lat)*this.worldSize;let Nt=t.ao(new Float64Array(16));t.K(Nt,Nt,[this.width/2,-this.height/2,1]),t.J(Nt,Nt,[1,-1,0]),this.labelPlaneMatrix=Nt,Nt=t.ao(new Float64Array(16)),t.K(Nt,Nt,[1,-1,1]),t.J(Nt,Nt,[-1,-1,0]),t.K(Nt,Nt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Nt;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ae=Math.min(this.elevation,this.minElevationForCurrentTile),Ue=le-Ae*this._pixelPerMeter/Math.cos(this._pitch),ir=Ae<0?Ue:le,cr=Math.PI/2+this._pitch,gr=this._fov*(.5+W.y/this.height),Ur=Math.sin(gr)*ir/Math.sin(t.ad(Math.PI-cr-gr,.01,Math.PI-.01)),ri=this.getHorizon(),pi=2*Math.atan(ri/this.cameraToCenterDistance)*(.5+W.y/(ri*2)),xi=Math.sin(pi)*ir/Math.sin(t.ad(Math.PI-cr-pi,.01,Math.PI-.01)),Mi=Math.min(Ur,xi);this.farZ=(Math.cos(Math.PI/2-this._pitch)*Mi+ir)*1.01,this.nearZ=this.height/50,Nt=new Float64Array(16),t.b6(Nt,this._fov,this.width/this.height,this.nearZ,this.farZ),Nt[8]=-W.x*2/this.width,Nt[9]=W.y*2/this.height,this.projectionMatrix=t.af(Nt),t.K(Nt,Nt,[1,-1,1]),t.J(Nt,Nt,[0,0,-this.cameraToCenterDistance]),t.b7(Nt,Nt,this._pitch),t.ae(Nt,Nt,this.angle),t.J(Nt,Nt,[-dt,-xt,0]),this.mercatorMatrix=t.K([],Nt,[this.worldSize,this.worldSize,this.worldSize]),t.K(Nt,Nt,[1,1,this._pixelPerMeter]),this.pixelMatrix=t.L(new Float64Array(16),this.labelPlaneMatrix,Nt),t.J(Nt,Nt,[0,0,-this.elevation]),this.modelViewProjectionMatrix=Nt,this.invModelViewProjectionMatrix=t.at([],Nt),this.fogMatrix=new Float64Array(16),t.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=-W.x*2/this.width,this.fogMatrix[9]=W.y*2/this.height,t.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),t.b7(this.fogMatrix,this.fogMatrix,this._pitch),t.ae(this.fogMatrix,this.fogMatrix,this.angle),t.J(this.fogMatrix,this.fogMatrix,[-dt,-xt,0]),t.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=t.L(new Float64Array(16),this.labelPlaneMatrix,Nt);let Vi=this.width%2/2,Xi=this.height%2/2,$i=Math.cos(this.angle),xa=Math.sin(this.angle),_a=dt-Math.round(dt)+$i*Vi+xa*Xi,za=xt-Math.round(xt)+$i*Xi+xa*Vi,on=new Float64Array(Nt);if(t.J(on,on,[_a>.5?_a-1:_a,za>.5?za-1:za,0]),this.alignedModelViewProjectionMatrix=on,Nt=t.at(new Float64Array(16),this.pixelMatrix),!Nt)throw Error("failed to invert matrix");this.pixelMatrixInverse=Nt,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let I=this.pointCoordinate(new t.P(0,0)),W=[I.x*this.worldSize,I.y*this.worldSize,0,1];return t.ag(W,W,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let I=this._pitch,W=Math.tan(I)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.P(0,W))}getCameraQueryGeometry(I){let W=this.getCameraPoint();if(I.length===1)return[I[0],W];{let dt=W.x,xt=W.y,Nt=W.x,le=W.y;for(let Ae of I)dt=Math.min(dt,Ae.x),xt=Math.min(xt,Ae.y),Nt=Math.max(Nt,Ae.x),le=Math.max(le,Ae.y);return[new t.P(dt,xt),new t.P(Nt,xt),new t.P(Nt,le),new t.P(dt,le),new t.P(dt,xt)]}}lngLatToCameraDepth(I,W){let dt=this.locationCoordinate(I),xt=[dt.x*this.worldSize,dt.y*this.worldSize,W,1];return t.ag(xt,xt,this.modelViewProjectionMatrix),xt[2]/xt[3]}}function ro(bt,I){let W=!1,dt=null,xt=null,Nt,le=()=>{dt=null,W&&(W=(bt.apply(xt,Nt),dt=setTimeout(le,I),!1))};return(...Ae)=>(W=!0,xt=this,Nt=Ae,dt||le(),dt)}class Ls{constructor(I){this._getCurrentHash=()=>{let W=window.location.hash.replace("#","");if(this._hashName){let dt;return W.split("&").map(xt=>xt.split("=")).forEach(xt=>{xt[0]===this._hashName&&(dt=xt)}),(dt&&dt[1]||"").split("/")}return W.split("/")},this._onHashChange=()=>{let W=this._getCurrentHash();if(W.length>=3&&!W.some(dt=>isNaN(dt))){let dt=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(W[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+W[2],+W[1]],zoom:+W[0],bearing:dt,pitch:+(W[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let W=window.location.href.replace(/(#.+)?$/,this.getHashString());window.history.replaceState(window.history.state,null,W)},this._removeHash=()=>{let W=this._getCurrentHash();if(W.length===0)return;let dt=W.join("/"),xt=dt;xt.split("&").length>0&&(xt=xt.split("&")[0]),this._hashName&&(xt=`${this._hashName}=${dt}`);let Nt=window.location.hash.replace(xt,"");Nt.startsWith("#&")?Nt=Nt.slice(0,1)+Nt.slice(2):Nt==="#"&&(Nt="");let le=window.location.href.replace(/(#.+)?$/,Nt);le=le.replace("&&","&"),window.history.replaceState(window.history.state,null,le)},this._updateHash=ro(this._updateHashUnthrottled,300),this._hashName=I&&encodeURIComponent(I)}addTo(I){return this._map=I,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(I){let W=this._map.getCenter(),dt=Math.round(this._map.getZoom()*100)/100,xt=10**Math.ceil((dt*Math.LN2+Math.log(512/360/.5))/Math.LN10),Nt=Math.round(W.lng*xt)/xt,le=Math.round(W.lat*xt)/xt,Ae=this._map.getBearing(),Ue=this._map.getPitch(),ir="";if(I?ir+=`/${Nt}/${le}/${dt}`:ir+=`${dt}/${le}/${Nt}`,(Ae||Ue)&&(ir+=`/${Math.round(Ae*10)/10}`),Ue&&(ir+=`/${Math.round(Ue)}`),this._hashName){let cr=this._hashName,gr=!1,Ur=window.location.hash.slice(1).split("&").map(ri=>{let pi=ri.split("=")[0];return pi===cr?(gr=!0,`${pi}=${ir}`):ri}).filter(ri=>ri);return gr||Ur.push(`${cr}=${ir}`),`#${Ur.join("&")}`}return`#${ir}`}}let Wu={linearity:.3,easing:t.b8(0,0,.3,1)},Cc=t.e({deceleration:2500,maxSpeed:1400},Wu),hu=t.e({deceleration:20,maxSpeed:1400},Wu),yc=t.e({deceleration:1e3,maxSpeed:360},Wu),ol=t.e({deceleration:1e3,maxSpeed:90},Wu);class Yu{constructor(I){this._map=I,this.clear()}clear(){this._inertiaBuffer=[]}record(I){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.now(),settings:I})}_drainInertiaBuffer(){let I=this._inertiaBuffer,W=i.now();for(;I.length>0&&W-I[0].time>160;)I.shift()}_onMoveEnd(I){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let W={zoom:0,bearing:0,pitch:0,pan:new t.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:Nt}of this._inertiaBuffer)W.zoom+=Nt.zoomDelta||0,W.bearing+=Nt.bearingDelta||0,W.pitch+=Nt.pitchDelta||0,Nt.panDelta&&W.pan._add(Nt.panDelta),Nt.around&&(W.around=Nt.around),Nt.pinchAround&&(W.pinchAround=Nt.pinchAround);let dt=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,xt={};if(W.pan.mag()){let Nt=Ys(W.pan.mag(),dt,t.e({},Cc,I||{}));xt.offset=W.pan.mult(Nt.amount/W.pan.mag()),xt.center=this._map.transform.center,Xu(xt,Nt)}if(W.zoom){let Nt=Ys(W.zoom,dt,hu);xt.zoom=this._map.transform.zoom+Nt.amount,Xu(xt,Nt)}if(W.bearing){let Nt=Ys(W.bearing,dt,yc);xt.bearing=this._map.transform.bearing+t.ad(Nt.amount,-179,179),Xu(xt,Nt)}if(W.pitch){let Nt=Ys(W.pitch,dt,ol);xt.pitch=this._map.transform.pitch+Nt.amount,Xu(xt,Nt)}if(xt.zoom||xt.bearing){let Nt=W.pinchAround===void 0?W.around:W.pinchAround;xt.around=Nt?this._map.unproject(Nt):this._map.getCenter()}return this.clear(),t.e(xt,{noMoveStart:!0})}}function Xu(bt,I){(!bt.duration||bt.durationW.unproject(ir)),Ae=Nt.reduce((ir,cr,gr,Ur)=>ir.add(cr.div(Ur.length)),new t.P(0,0)),Ue=W.unproject(Ae);super(I,{points:Nt,point:Ae,lngLats:le,lngLat:Ue,originalEvent:dt}),this._defaultPrevented=!1}}class fu extends t.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(I,W,dt){super(I,{originalEvent:dt}),this._defaultPrevented=!1}}class $u{constructor(I,W){this._map=I,this._clickTolerance=W.clickTolerance}reset(){delete this._mousedownPos}wheel(I){return this._firePreventable(new fu(I.type,this._map,I))}mousedown(I,W){return this._mousedownPos=W,this._firePreventable(new es(I.type,this._map,I))}mouseup(I){this._map.fire(new es(I.type,this._map,I))}click(I,W){this._mousedownPos&&this._mousedownPos.dist(W)>=this._clickTolerance||this._map.fire(new es(I.type,this._map,I))}dblclick(I){return this._firePreventable(new es(I.type,this._map,I))}mouseover(I){this._map.fire(new es(I.type,this._map,I))}mouseout(I){this._map.fire(new es(I.type,this._map,I))}touchstart(I){return this._firePreventable(new Xs(I.type,this._map,I))}touchmove(I){this._map.fire(new Xs(I.type,this._map,I))}touchend(I){this._map.fire(new Xs(I.type,this._map,I))}touchcancel(I){this._map.fire(new Xs(I.type,this._map,I))}_firePreventable(I){if(this._map.fire(I),I.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class vc{constructor(I){this._map=I}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(I){this._map.fire(new es(I.type,this._map,I))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new es("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(I){this._delayContextMenu?this._contextMenuEvent=I:this._ignoreContextMenu||this._map.fire(new es(I.type,this._map,I)),this._map.listens("contextmenu")&&I.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class pl{constructor(I){this._map=I}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(I){return this.transform.pointLocation(t.P.convert(I),this._map.terrain)}}class Ju{constructor(I,W){this._map=I,this._tr=new pl(I),this._el=I.getCanvasContainer(),this._container=I.getContainer(),this._clickTolerance=W.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(I,W){this.isEnabled()&&I.shiftKey&&I.button===0&&(r.disableDrag(),this._startPos=this._lastPos=W,this._active=!0)}mousemoveWindow(I,W){if(!this._active)return;let dt=W;if(this._lastPos.equals(dt)||!this._box&&dt.dist(this._startPos)Nt.fitScreenCoordinates(dt,xt,this._tr.bearing,{linear:!0})}}keydown(I){this._active&&I.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",I))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box=(r.remove(this._box),null)),r.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(I,W){return this._map.fire(new t.k(I,{originalEvent:W}))}}function Nl(bt,I){if(bt.length!==I.length)throw Error(`The number of touches and points are not equal - touches ${bt.length}, points ${I.length}`);let W={};for(let dt=0;dtthis.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=I.timeStamp),dt.length===this.numTouches&&(this.centroid=Yc(W),this.touches=Nl(dt,W)))}touchmove(I,W,dt){if(this.aborted||!this.centroid)return;let xt=Nl(dt,W);for(let Nt in this.touches){let le=this.touches[Nt],Ae=xt[Nt];(!Ae||Ae.dist(le)>30)&&(this.aborted=!0)}}touchend(I,W,dt){if((!this.centroid||I.timeStamp-this.startTime>500)&&(this.aborted=!0),dt.length===0){let xt=!this.aborted&&this.centroid;if(this.reset(),xt)return xt}}}class xc{constructor(I){this.singleTap=new Lu(I),this.numTaps=I.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(I,W,dt){this.singleTap.touchstart(I,W,dt)}touchmove(I,W,dt){this.singleTap.touchmove(I,W,dt)}touchend(I,W,dt){let xt=this.singleTap.touchend(I,W,dt);if(xt){let Nt=I.timeStamp-this.lastTime<500,le=!this.lastTap||this.lastTap.dist(xt)<30;if((!Nt||!le)&&this.reset(),this.count++,this.lastTime=I.timeStamp,this.lastTap=xt,this.count===this.numTaps)return this.reset(),xt}}}class ne{constructor(I){this._tr=new pl(I),this._zoomIn=new xc({numTouches:1,numTaps:2}),this._zoomOut=new xc({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(I,W,dt){this._zoomIn.touchstart(I,W,dt),this._zoomOut.touchstart(I,W,dt)}touchmove(I,W,dt){this._zoomIn.touchmove(I,W,dt),this._zoomOut.touchmove(I,W,dt)}touchend(I,W,dt){let xt=this._zoomIn.touchend(I,W,dt),Nt=this._zoomOut.touchend(I,W,dt),le=this._tr;if(xt)return this._active=!0,I.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ae=>Ae.easeTo({duration:300,zoom:le.zoom+1,around:le.unproject(xt)},{originalEvent:I})};if(Nt)return this._active=!0,I.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ae=>Ae.easeTo({duration:300,zoom:le.zoom-1,around:le.unproject(Nt)},{originalEvent:I})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class pe{constructor(I){this._enabled=!!I.enable,this._moveStateManager=I.moveStateManager,this._clickTolerance=I.clickTolerance||1,this._moveFunction=I.move,this._activateOnStart=!!I.activateOnStart,I.assignEvents(this),this.reset()}reset(I){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(I)}_move(...I){let W=this._moveFunction(...I);if(W.bearingDelta||W.pitchDelta||W.around||W.panDelta)return this._active=!0,W}dragStart(I,W){!this.isEnabled()||this._lastPoint||this._moveStateManager.isValidStartEvent(I)&&(this._moveStateManager.startMove(I),this._lastPoint=W.length?W[0]:W,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(I,W){if(!this.isEnabled())return;let dt=this._lastPoint;if(!dt)return;if(I.preventDefault(),!this._moveStateManager.isValidMoveEvent(I)){this.reset(I);return}let xt=W.length?W[0]:W;if(!(!this._moved&&xt.dist(dt){bt.mousedown=bt.dragStart,bt.mousemoveWindow=bt.dragMove,bt.mouseup=bt.dragEnd,bt.contextmenu=I=>{I.preventDefault()}},zr=({enable:bt,clickTolerance:I})=>new pe({clickTolerance:I,move:(W,dt)=>({around:dt,panDelta:dt.sub(W)}),activateOnStart:!0,moveStateManager:new Xe({checkCorrectEvent:W=>r.mouseButton(W)===0&&!W.ctrlKey}),enable:bt,assignEvents:tr}),qr=({enable:bt,clickTolerance:I,bearingDegreesPerPixelMoved:W=.8})=>new pe({clickTolerance:I,move:(dt,xt)=>({bearingDelta:(xt.x-dt.x)*W}),moveStateManager:new Xe({checkCorrectEvent:dt=>r.mouseButton(dt)===0&&dt.ctrlKey||r.mouseButton(dt)===2}),enable:bt,assignEvents:tr}),Lr=({enable:bt,clickTolerance:I,pitchDegreesPerPixelMoved:W=-.5})=>new pe({clickTolerance:I,move:(dt,xt)=>({pitchDelta:(xt.y-dt.y)*W}),moveStateManager:new Xe({checkCorrectEvent:dt=>r.mouseButton(dt)===0&&dt.ctrlKey||r.mouseButton(dt)===2}),enable:bt,assignEvents:tr});class Hr{constructor(I,W){this._clickTolerance=I.clickTolerance||1,this._map=W,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new t.P(0,0)}_shouldBePrevented(I){return I<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(I,W,dt){return this._calculateTransform(I,W,dt)}touchmove(I,W,dt){if(this._active){if(this._shouldBePrevented(dt.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",I);return}return I.preventDefault(),this._calculateTransform(I,W,dt)}}touchend(I,W,dt){this._calculateTransform(I,W,dt),this._active&&this._shouldBePrevented(dt.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(I,W,dt){dt.length>0&&(this._active=!0);let xt=Nl(dt,W),Nt=new t.P(0,0),le=new t.P(0,0),Ae=0;for(let ir in xt){let cr=xt[ir],gr=this._touches[ir];gr&&(Nt._add(cr),le._add(cr.sub(gr)),Ae++,xt[ir]=cr)}if(this._touches=xt,this._shouldBePrevented(Ae)||!le.mag())return;let Ue=le.div(Ae);if(this._sum._add(Ue),!(this._sum.mag()Math.abs(bt.x)}class Ra extends ii{constructor(I){super(),this._currentTouchCount=0,this._map=I}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(I,W,dt){super.touchstart(I,W,dt),this._currentTouchCount=dt.length}_start(I){this._lastPoints=I,pa(I[0].sub(I[1]))&&(this._valid=!1)}_move(I,W,dt){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let xt=I[0].sub(this._lastPoints[0]),Nt=I[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(xt,Nt,dt.timeStamp),this._valid)return this._lastPoints=I,this._active=!0,{pitchDelta:(xt.y+Nt.y)/2*-.5}}gestureBeginsVertically(I,W,dt){if(this._valid!==void 0)return this._valid;let xt=I.mag()>=2,Nt=W.mag()>=2;if(!xt&&!Nt)return;if(!xt||!Nt)return this._firstMove===void 0&&(this._firstMove=dt),dt-this._firstMove<100?void 0:!1;let le=I.y>0==W.y>0;return pa(I)&&pa(W)&&le}}let fn={panStep:100,bearingStep:15,pitchStep:10};class kn{constructor(I){this._tr=new pl(I);let W=fn;this._panStep=W.panStep,this._bearingStep=W.bearingStep,this._pitchStep=W.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(I){if(I.altKey||I.ctrlKey||I.metaKey)return;let W=0,dt=0,xt=0,Nt=0,le=0;switch(I.keyCode){case 61:case 107:case 171:case 187:W=1;break;case 189:case 109:case 173:W=-1;break;case 37:I.shiftKey?dt=-1:(I.preventDefault(),Nt=-1);break;case 39:I.shiftKey?dt=1:(I.preventDefault(),Nt=1);break;case 38:I.shiftKey?xt=1:(I.preventDefault(),le=-1);break;case 40:I.shiftKey?xt=-1:(I.preventDefault(),le=1);break;default:return}return this._rotationDisabled&&(dt=0,xt=0),{cameraAnimation:Ae=>{let Ue=this._tr;Ae.easeTo({duration:300,easeId:"keyboardHandler",easing:En,zoom:W?Math.round(Ue.zoom)+W*(I.shiftKey?2:1):Ue.zoom,bearing:Ue.bearing+dt*this._bearingStep,pitch:Ue.pitch+xt*this._pitchStep,offset:[-Nt*this._panStep,-le*this._panStep],center:Ue.center},{originalEvent:I})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function En(bt){return bt*(2-bt)}let Ao=4.000244140625;class yo{constructor(I,W){this._onTimeout=dt=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(dt)},this._map=I,this._tr=new pl(I),this._triggerRenderFrame=W,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(I){this._defaultZoomRate=I}setWheelZoomRate(I){this._wheelZoomRate=I}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(I){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!I&&I.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(I){return this._map.cooperativeGestures.isEnabled()?!(I.ctrlKey||this._map.cooperativeGestures.isBypassed(I)):!1}wheel(I){if(!this.isEnabled())return;if(this._shouldBePrevented(I)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",I);return}let W=I.deltaMode===WheelEvent.DOM_DELTA_LINE?I.deltaY*40:I.deltaY,dt=i.now(),xt=dt-(this._lastWheelEventTime||0);this._lastWheelEventTime=dt,W!==0&&W%Ao===0?this._type="wheel":W!==0&&Math.abs(W)<4?this._type="trackpad":xt>400?(this._type=null,this._lastValue=W,this._timeout=setTimeout(this._onTimeout,40,I)):this._type||(this._type=Math.abs(xt*W)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,W+=this._lastValue)),I.shiftKey&&W&&(W/=4),this._type&&(this._lastWheelEvent=I,this._delta-=W,this._active||this._start(I)),I.preventDefault()}_start(I){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let W=r.mousePos(this._map.getCanvas(),I),dt=this._tr;W.y>dt.transform.height/2-dt.transform.getHorizon()?this._around=t.N.convert(this._aroundCenter?dt.center:dt.unproject(W)):this._around=t.N.convert(dt.center),this._aroundPoint=dt.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let I=this._tr.transform;if(this._delta!==0){let Ue=this._type==="wheel"&&Math.abs(this._delta)>Ao?this._wheelZoomRate:this._defaultZoomRate,ir=2/(1+Math.exp(-Math.abs(this._delta*Ue)));this._delta<0&&ir!==0&&(ir=1/ir);let cr=typeof this._targetZoom=="number"?I.zoomScale(this._targetZoom):I.scale;this._targetZoom=Math.min(I.maxZoom,Math.max(I.minZoom,I.scaleZoom(cr*ir))),this._type==="wheel"&&(this._startZoom=I.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let W=typeof this._targetZoom=="number"?this._targetZoom:I.zoom,dt=this._startZoom,xt=this._easing,Nt=!1,le,Ae=i.now()-this._lastWheelEventTime;if(this._type==="wheel"&&dt&&xt&&Ae){let Ue=Math.min(Ae/200,1),ir=xt(Ue);le=t.z.number(dt,W,ir),Ue<1?this._frameId||(this._frameId=!0):Nt=!0}else le=W,Nt=!0;return this._active=!0,Nt&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Nt,zoomDelta:le-I.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(I){let W=t.b9;if(this._prevEase){let dt=this._prevEase,xt=(i.now()-dt.start)/dt.duration,Nt=dt.easing(xt+.01)-dt.easing(xt),le=.27/Math.sqrt(Nt*Nt+1e-4)*.01,Ae=Math.sqrt(.27*.27-le*le);W=t.b8(le,Ae,.25,1)}return this._prevEase={start:i.now(),duration:I,easing:W},W}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class So{constructor(I,W){this._clickZoom=I,this._tapZoom=W}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class $a{constructor(I){this._tr=new pl(I),this.reset()}reset(){this._active=!1}dblclick(I,W){return I.preventDefault(),{cameraAnimation:dt=>{dt.easeTo({duration:300,zoom:this._tr.zoom+(I.shiftKey?-1:1),around:this._tr.unproject(W)},{originalEvent:I})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class gt{constructor(){this._tap=new xc({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(I,W,dt){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(I,W,dt);else{let xt=W[0],Nt=I.timeStamp-this._tapTime<500,le=this._tapPoint.dist(xt)<30;!Nt||!le?this.reset():dt.length>0&&(this._swipePoint=xt,this._swipeTouch=dt[0].identifier)}}touchmove(I,W,dt){if(!this._tapTime)this._tap.touchmove(I,W,dt);else if(this._swipePoint){if(dt[0].identifier!==this._swipeTouch)return;let xt=W[0],Nt=xt.y-this._swipePoint.y;return this._swipePoint=xt,I.preventDefault(),this._active=!0,{zoomDelta:Nt/128}}}touchend(I,W,dt){if(this._tapTime)this._swipePoint&&dt.length===0&&this.reset();else{let xt=this._tap.touchend(I,W,dt);xt&&(this._tapTime=I.timeStamp,this._tapPoint=xt)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class zt{constructor(I,W,dt){this._el=I,this._mousePan=W,this._touchPan=dt}enable(I){this._inertiaOptions=I||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Jt{constructor(I,W,dt){this._pitchWithRotate=I.pitchWithRotate,this._mouseRotate=W,this._mousePitch=dt}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class se{constructor(I,W,dt,xt){this._el=I,this._touchZoom=W,this._touchRotate=dt,this._tapDragZoom=xt,this._rotationDisabled=!1,this._enabled=!0}enable(I){this._touchZoom.enable(I),this._rotationDisabled||this._touchRotate.enable(I),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class ce{constructor(I,W){this._bypassKey=navigator.userAgent.indexOf("Mac")===-1?"ctrlKey":"metaKey",this._map=I,this._options=W,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let I=this._map.getCanvasContainer();I.classList.add("maplibregl-cooperative-gestures"),this._container=r.create("div","maplibregl-cooperative-gesture-screen",I);let W=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(W=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let dt=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),xt=document.createElement("div");xt.className="maplibregl-desktop-message",xt.textContent=W,this._container.appendChild(xt);let Nt=document.createElement("div");Nt.className="maplibregl-mobile-message",Nt.textContent=dt,this._container.appendChild(Nt),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(r.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(I){return I[this._bypassKey]}notifyGestureBlocked(I,W){this._enabled&&(this._map.fire(new t.k("cooperativegestureprevented",{gestureType:I,originalEvent:W})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let xe=bt=>bt.zoom||bt.drag||bt.pitch||bt.rotate;class Oe extends t.k{}function Fe(bt){return bt.panDelta&&bt.panDelta.mag()||bt.zoomDelta||bt.bearingDelta||bt.pitchDelta}class rr{constructor(I,W){this.handleWindowEvent=xt=>{this.handleEvent(xt,`${xt.type}Window`)},this.handleEvent=(xt,Nt)=>{if(xt.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let le=xt.type==="renderFrame"?void 0:xt,Ae={needsRenderFrame:!1},Ue={},ir={},cr=xt.touches,gr=cr?this._getMapTouches(cr):void 0,Ur=gr?r.touchPos(this._map.getCanvas(),gr):r.mousePos(this._map.getCanvas(),xt);for(let{handlerName:xi,handler:Mi,allowed:Vi}of this._handlers){if(!Mi.isEnabled())continue;let Xi;this._blockedByActive(ir,Vi,xi)?Mi.reset():Mi[Nt||xt.type]&&(Xi=Mi[Nt||xt.type](xt,Ur,gr),this.mergeHandlerResult(Ae,Ue,Xi,xi,le),Xi&&Xi.needsRenderFrame&&this._triggerRenderFrame()),(Xi||Mi.isActive())&&(ir[xi]=Mi)}let ri={};for(let xi in this._previousActiveHandlers)ir[xi]||(ri[xi]=le);this._previousActiveHandlers=ir,(Object.keys(ri).length||Fe(Ae))&&(this._changes.push([Ae,Ue,ri]),this._triggerRenderFrame()),(Object.keys(ir).length||Fe(Ae))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:pi}=Ae;pi&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],pi(this._map))},this._map=I,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Yu(I),this._bearingSnap=W.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(W);let dt=this._el;this._listeners=[[dt,"touchstart",{passive:!0}],[dt,"touchmove",{passive:!1}],[dt,"touchend",void 0],[dt,"touchcancel",void 0],[dt,"mousedown",void 0],[dt,"mousemove",void 0],[dt,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[dt,"mouseover",void 0],[dt,"mouseout",void 0],[dt,"dblclick",void 0],[dt,"click",void 0],[dt,"keydown",{capture:!1}],[dt,"keyup",void 0],[dt,"wheel",{passive:!1}],[dt,"contextmenu",void 0],[window,"blur",void 0]];for(let[xt,Nt,le]of this._listeners)r.addEventListener(xt,Nt,xt===document?this.handleWindowEvent:this.handleEvent,le)}destroy(){for(let[I,W,dt]of this._listeners)r.removeEventListener(I,W,I===document?this.handleWindowEvent:this.handleEvent,dt)}_addDefaultHandlers(I){let W=this._map,dt=W.getCanvasContainer();this._add("mapEvent",new $u(W,I));let xt=W.boxZoom=new Ju(W,I);this._add("boxZoom",xt),I.interactive&&I.boxZoom&&xt.enable();let Nt=W.cooperativeGestures=new ce(W,I.cooperativeGestures);this._add("cooperativeGestures",Nt),I.cooperativeGestures&&Nt.enable();let le=new ne(W),Ae=new $a(W);W.doubleClickZoom=new So(Ae,le),this._add("tapZoom",le),this._add("clickZoom",Ae),I.interactive&&I.doubleClickZoom&&W.doubleClickZoom.enable();let Ue=new gt;this._add("tapDragZoom",Ue);let ir=W.touchPitch=new Ra(W);this._add("touchPitch",ir),I.interactive&&I.touchPitch&&W.touchPitch.enable(I.touchPitch);let cr=qr(I),gr=Lr(I);W.dragRotate=new Jt(I,cr,gr),this._add("mouseRotate",cr,["mousePitch"]),this._add("mousePitch",gr,["mouseRotate"]),I.interactive&&I.dragRotate&&W.dragRotate.enable();let Ur=zr(I),ri=new Hr(I,W);W.dragPan=new zt(dt,Ur,ri),this._add("mousePan",Ur),this._add("touchPan",ri,["touchZoom","touchRotate"]),I.interactive&&I.dragPan&&W.dragPan.enable(I.dragPan);let pi=new Sa,xi=new Ki;W.touchZoomRotate=new se(dt,xi,pi,Ue),this._add("touchRotate",pi,["touchPan","touchZoom"]),this._add("touchZoom",xi,["touchPan","touchRotate"]),I.interactive&&I.touchZoomRotate&&W.touchZoomRotate.enable(I.touchZoomRotate);let Mi=W.scrollZoom=new yo(W,()=>this._triggerRenderFrame());this._add("scrollZoom",Mi,["mousePan"]),I.interactive&&I.scrollZoom&&W.scrollZoom.enable(I.scrollZoom);let Vi=W.keyboard=new kn(W);this._add("keyboard",Vi),I.interactive&&I.keyboard&&W.keyboard.enable(),this._add("blockableMapEvent",new vc(W))}_add(I,W,dt){this._handlers.push({handlerName:I,handler:W,allowed:dt}),this._handlersById[I]=W}stop(I){if(!this._updatingCamera){for(let{handler:W}of this._handlers)W.reset();this._inertia.clear(),this._fireEvents({},{},I),this._changes=[]}}isActive(){for(let{handler:I}of this._handlers)if(I.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!xe(this._eventsInProgress)||this.isZooming()}_blockedByActive(I,W,dt){for(let xt in I)if(xt!==dt&&(!W||W.indexOf(xt)<0))return!0;return!1}_getMapTouches(I){let W=[];for(let dt of I){let xt=dt.target;this._el.contains(xt)&&W.push(dt)}return W}mergeHandlerResult(I,W,dt,xt,Nt){if(!dt)return;t.e(I,dt);let le={handlerName:xt,originalEvent:dt.originalEvent||Nt};dt.zoomDelta!==void 0&&(W.zoom=le),dt.panDelta!==void 0&&(W.drag=le),dt.pitchDelta!==void 0&&(W.pitch=le),dt.bearingDelta!==void 0&&(W.rotate=le)}_applyChanges(){let I={},W={},dt={};for(let[xt,Nt,le]of this._changes)xt.panDelta&&(I.panDelta=(I.panDelta||new t.P(0,0))._add(xt.panDelta)),xt.zoomDelta&&(I.zoomDelta=(I.zoomDelta||0)+xt.zoomDelta),xt.bearingDelta&&(I.bearingDelta=(I.bearingDelta||0)+xt.bearingDelta),xt.pitchDelta&&(I.pitchDelta=(I.pitchDelta||0)+xt.pitchDelta),xt.around!==void 0&&(I.around=xt.around),xt.pinchAround!==void 0&&(I.pinchAround=xt.pinchAround),xt.noInertia&&(I.noInertia=xt.noInertia),t.e(W,Nt),t.e(dt,le);this._updateMapTransform(I,W,dt),this._changes=[]}_updateMapTransform(I,W,dt){let xt=this._map,Nt=xt._getTransformForUpdate(),le=xt.terrain;if(!Fe(I)&&!(le&&this._terrainMovement))return this._fireEvents(W,dt,!0);let{panDelta:Ae,zoomDelta:Ue,bearingDelta:ir,pitchDelta:cr,around:gr,pinchAround:Ur}=I;Ur!==void 0&&(gr=Ur),xt._stop(!0),gr||(gr=xt.transform.centerPoint);let ri=Nt.pointLocation(Ae?gr.sub(Ae):gr);ir&&(Nt.bearing+=ir),cr&&(Nt.pitch+=cr),Ue&&(Nt.zoom+=Ue),le?!this._terrainMovement&&(W.drag||W.zoom)?(this._terrainMovement=!0,this._map._elevationFreeze=!0,Nt.setLocationAtPoint(ri,gr)):W.drag&&this._terrainMovement?Nt.center=Nt.pointLocation(Nt.centerPoint.sub(Ae)):Nt.setLocationAtPoint(ri,gr):Nt.setLocationAtPoint(ri,gr),xt._applyUpdatedTransform(Nt),this._map._update(),I.noInertia||this._inertia.record(I),this._fireEvents(W,dt,!0)}_fireEvents(I,W,dt){let xt=xe(this._eventsInProgress),Nt=xe(I),le={};for(let gr in I){let{originalEvent:Ur}=I[gr];this._eventsInProgress[gr]||(le[`${gr}start`]=Ur),this._eventsInProgress[gr]=I[gr]}for(let gr in!xt&&Nt&&this._fireEvent("movestart",Nt.originalEvent),le)this._fireEvent(gr,le[gr]);for(let gr in Nt&&this._fireEvent("move",Nt.originalEvent),I){let{originalEvent:Ur}=I[gr];this._fireEvent(gr,Ur)}let Ae={},Ue;for(let gr in this._eventsInProgress){let{handlerName:Ur,originalEvent:ri}=this._eventsInProgress[gr];this._handlersById[Ur].isActive()||(delete this._eventsInProgress[gr],Ue=W[Ur]||ri,Ae[`${gr}end`]=Ue)}for(let gr in Ae)this._fireEvent(gr,Ae[gr]);let ir=xe(this._eventsInProgress),cr=(xt||Nt)&&!ir;if(cr&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let gr=this._map._getTransformForUpdate();gr.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(gr)}if(dt&&cr){this._updatingCamera=!0;let gr=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),Ur=ri=>ri!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Oe("renderFrame",{timeStamp:I})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ar extends t.E{constructor(I,W){super(),this._renderFrameCallback=()=>{let dt=Math.min((i.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(dt)),dt<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=I,this._bearingSnap=W.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new t.N(this.transform.center.lng,this.transform.center.lat)}setCenter(I,W){return this.jumpTo({center:I},W)}panBy(I,W,dt){return I=t.P.convert(I).mult(-1),this.panTo(this.transform.center,t.e({offset:I},W),dt)}panTo(I,W,dt){return this.easeTo(t.e({center:I},W),dt)}getZoom(){return this.transform.zoom}setZoom(I,W){return this.jumpTo({zoom:I},W),this}zoomTo(I,W,dt){return this.easeTo(t.e({zoom:I},W),dt)}zoomIn(I,W){return this.zoomTo(this.getZoom()+1,I,W),this}zoomOut(I,W){return this.zoomTo(this.getZoom()-1,I,W),this}getBearing(){return this.transform.bearing}setBearing(I,W){return this.jumpTo({bearing:I},W),this}getPadding(){return this.transform.padding}setPadding(I,W){return this.jumpTo({padding:I},W),this}rotateTo(I,W,dt){return this.easeTo(t.e({bearing:I},W),dt)}resetNorth(I,W){return this.rotateTo(0,t.e({duration:1e3},I),W),this}resetNorthPitch(I,W){return this.easeTo(t.e({bearing:0,pitch:0,duration:1e3},I),W),this}snapToNorth(I,W){return Math.abs(this.getBearing()){if(this._zooming&&(dt.zoom=t.z.number(xt,xi,za)),this._rotating&&(dt.bearing=t.z.number(Nt,Ue,za)),this._pitching&&(dt.pitch=t.z.number(le,ir,za)),this._padding&&(dt.interpolatePadding(Ae,cr,za),Ur=dt.centerPoint.add(gr)),this.terrain&&!I.freezeElevation&&this._updateElevation(za),$i)dt.setLocationAtPoint($i,xa);else{let on=dt.zoomScale(dt.zoom-xt),mn=(xi>xt?Math.min(2,Xi):Math.max(.5,Xi))**(1-za),Xn=dt.unproject(Mi.add(Vi.mult(za*mn)).mult(on));dt.setLocationAtPoint(dt.renderWorldCopies?Xn.wrap():Xn,Ur)}this._applyUpdatedTransform(dt),this._fireMoveEvents(W)},za=>{this.terrain&&I.freezeElevation&&this._finalizeElevation(),this._afterEase(W,za)},I),this}_prepareEase(I,W,dt={}){this._moving=!0,!W&&!dt.moving&&this.fire(new t.k("movestart",I)),this._zooming&&!dt.zooming&&this.fire(new t.k("zoomstart",I)),this._rotating&&!dt.rotating&&this.fire(new t.k("rotatestart",I)),this._pitching&&!dt.pitching&&this.fire(new t.k("pitchstart",I))}_prepareElevation(I){this._elevationCenter=I,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(I,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(I){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let W=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(I<1&&W!==this._elevationTarget){let dt=this._elevationTarget-this._elevationStart,xt=(W-(dt*I+this._elevationStart))/(1-I);this._elevationStart+=I*(dt-xt),this._elevationTarget=W}this.transform.elevation=t.z.number(this._elevationStart,this._elevationTarget,I)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState)}_elevateCameraIfInsideTerrain(I){let W=I.getCameraPosition(),dt=this.terrain.getElevationForLngLatZoom(W.lngLat,I.zoom);if(W.altitudethis._elevateCameraIfInsideTerrain(xt)),this.transformCameraUpdate&&W.push(xt=>this.transformCameraUpdate(xt)),!W.length)return;let dt=I.clone();for(let xt of W){let Nt=dt.clone(),{center:le,zoom:Ae,pitch:Ue,bearing:ir,elevation:cr}=xt(Nt);le&&(Nt.center=le),Ae!==void 0&&(Nt.zoom=Ae),Ue!==void 0&&(Nt.pitch=Ue),ir!==void 0&&(Nt.bearing=ir),cr!==void 0&&(Nt.elevation=cr),dt.apply(Nt)}this.transform.apply(dt)}_fireMoveEvents(I){this.fire(new t.k("move",I)),this._zooming&&this.fire(new t.k("zoom",I)),this._rotating&&this.fire(new t.k("rotate",I)),this._pitching&&this.fire(new t.k("pitch",I))}_afterEase(I,W){if(this._easeId&&W&&this._easeId===W)return;delete this._easeId;let dt=this._zooming,xt=this._rotating,Nt=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,dt&&this.fire(new t.k("zoomend",I)),xt&&this.fire(new t.k("rotateend",I)),Nt&&this.fire(new t.k("pitchend",I)),this.fire(new t.k("moveend",I))}flyTo(I,W){if(!I.essential&&i.prefersReducedMotion){let $=t.M(I,["center","zoom","bearing","pitch","around"]);return this.jumpTo($,W)}this.stop(),I=t.e({offset:[0,0],speed:1.2,curve:1.42,easing:t.b9},I);let dt=this._getTransformForUpdate(),xt=dt.zoom,Nt=dt.bearing,le=dt.pitch,Ae=dt.padding,Ue="bearing"in I?this._normalizeBearing(I.bearing,Nt):Nt,ir="pitch"in I?+I.pitch:le,cr="padding"in I?I.padding:dt.padding,gr=t.P.convert(I.offset),Ur=dt.centerPoint.add(gr),ri=dt.pointLocation(Ur),{center:pi,zoom:xi}=dt.getConstrained(t.N.convert(I.center||ri),I.zoom??xt);this._normalizeCenter(pi,dt);let Mi=dt.zoomScale(xi-xt),Vi=dt.project(ri),Xi=dt.project(pi).sub(Vi),$i=I.curve,xa=Math.max(dt.width,dt.height),_a=xa/Mi,za=Xi.mag();if("minZoom"in I){let $=t.ad(Math.min(I.minZoom,xt,xi),dt.minZoom,dt.maxZoom),at=xa/dt.zoomScale($-xt);$i=Math.sqrt(at/za*2)}let on=$i*$i;function mn($){let at=(_a*_a-xa*xa+($?-1:1)*on*on*za*za)/(2*($?_a:xa)*on*za);return Math.log(Math.sqrt(at*at+1)-at)}function Xn($){return(Math.exp($)-Math.exp(-$))/2}function gn($){return(Math.exp($)+Math.exp(-$))/2}function Qa($){return Xn($)/gn($)}let un=mn(!1),Dn=function($){return gn(un)/gn(un+$i*$)},Rn=function($){return xa*((gn(un)*Qa(un+$i*$)-Xn(un))/on)/za},so=(mn(!0)-un)/$i;if(Math.abs(za)<1e-6||!isFinite(so)){if(Math.abs(xa-_a)<1e-6)return this.easeTo(I,W);let $=_a0,Dn=at=>Math.exp($*$i*at)}if("duration"in I)I.duration=+I.duration;else{let $="screenSpeed"in I?+I.screenSpeed/$i:+I.speed;I.duration=1e3*so/$}return I.maxDuration&&I.duration>I.maxDuration&&(I.duration=0),this._zooming=!0,this._rotating=Nt!==Ue,this._pitching=ir!==le,this._padding=!dt.isPaddingEqual(cr),this._prepareEase(W,!1),this.terrain&&this._prepareElevation(pi),this._ease($=>{let at=$*so,it=1/Dn(at);dt.zoom=$===1?xi:xt+dt.scaleZoom(it),this._rotating&&(dt.bearing=t.z.number(Nt,Ue,$)),this._pitching&&(dt.pitch=t.z.number(le,ir,$)),this._padding&&(dt.interpolatePadding(Ae,cr,$),Ur=dt.centerPoint.add(gr)),this.terrain&&!I.freezeElevation&&this._updateElevation($);let mt=$===1?pi:dt.unproject(Vi.add(Xi.mult(Rn(at))).mult(it));dt.setLocationAtPoint(dt.renderWorldCopies?mt.wrap():mt,Ur),this._applyUpdatedTransform(dt),this._fireMoveEvents(W)},()=>{this.terrain&&I.freezeElevation&&this._finalizeElevation(),this._afterEase(W)},I),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(I,W){var dt;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let xt=this._onEaseEnd;delete this._onEaseEnd,xt.call(this,W)}return I||(dt=this.handlers)==null||dt.stop(!1),this}_ease(I,W,dt){dt.animate===!1||dt.duration===0?(I(1),W()):(this._easeStart=i.now(),this._easeOptions=dt,this._onEaseFrame=I,this._onEaseEnd=W,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(I,W){I=t.b3(I,-180,180);let dt=Math.abs(I-W);return Math.abs(I-360-W)180?-360:dt<-180?360:0}queryTerrainElevation(I){return this.terrain?this.terrain.getElevationForLngLatZoom(t.N.convert(I),this.transform.tileZoom)-this.transform.elevation:null}}let Mr={compact:!0,customAttribution:'
MapLibre'};class Yr{constructor(I=Mr){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=W=>{W&&(W.sourceDataType==="metadata"||W.sourceDataType==="visibility"||W.dataType==="style"||W.type==="terrain")&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=I}getDefaultPosition(){return"bottom-right"}onAdd(I){return this._map=I,this._compact=this.options.compact,this._container=r.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=r.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=r.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(I,W){let dt=this._map._getUIString(`AttributionControl.${W}`);I.title=dt,I.setAttribute("aria-label",dt)}_updateAttributions(){if(!this._map.style)return;let I=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?I=I.concat(this.options.customAttribution.map(xt=>typeof xt=="string"?xt:"")):typeof this.options.customAttribution=="string"&&I.push(this.options.customAttribution)),this._map.style.stylesheet){let xt=this._map.style.stylesheet;this.styleOwner=xt.owner,this.styleId=xt.id}let W=this._map.style.sourceCaches;for(let xt in W){let Nt=W[xt];if(Nt.used||Nt.usedForTerrain){let le=Nt.getSource();le.attribution&&I.indexOf(le.attribution)<0&&I.push(le.attribution)}}I=I.filter(xt=>String(xt).trim()),I.sort((xt,Nt)=>xt.length-Nt.length),I=I.filter((xt,Nt)=>{for(let le=Nt+1;le=0)return!1;return!0});let dt=I.join(" | ");dt!==this._attribHTML&&(this._attribHTML=dt,I.length?(this._innerContainer.innerHTML=dt,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Qr{constructor(I={}){this._updateCompact=()=>{let W=this._container.children;if(W.length){let dt=W[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&dt.classList.add("maplibregl-compact"):dt.classList.remove("maplibregl-compact")}},this.options=I}getDefaultPosition(){return"bottom-left"}onAdd(I){this._map=I,this._compact=this.options&&this.options.compact,this._container=r.create("div","maplibregl-ctrl");let W=r.create("a","maplibregl-ctrl-logo");return W.target="_blank",W.rel="noopener nofollow",W.href="https://maplibre.org/",W.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),W.setAttribute("rel","noopener nofollow"),this._container.appendChild(W),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){r.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Ai{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(I){let W=++this._id;return this._queue.push({callback:I,id:W,cancelled:!1}),W}remove(I){let W=this._currentlyRunning,dt=W?this._queue.concat(W):this._queue;for(let xt of dt)if(xt.id===I){xt.cancelled=!0;return}}run(I=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let W=this._currentlyRunning=this._queue;this._queue=[];for(let dt of W)if(!dt.cancelled&&(dt.callback(I),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Fi=t.Y([{name:"a_pos3d",type:"Int16",components:3}]);class ti extends t.E{constructor(I){super(),this.sourceCache=I,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,I.usedForTerrain=!0,I.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(I,W){this.sourceCache.update(I,W),this._renderableTilesKeys=[];let dt={};for(let xt of I.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:W}))dt[xt.key]=!0,this._renderableTilesKeys.push(xt.key),this._tiles[xt.key]||(xt.posMatrix=new Float64Array(16),t.aQ(xt.posMatrix,0,t.X,0,t.X,0,1),this._tiles[xt.key]=new _e(xt,this.tileSize));for(let xt in this._tiles)dt[xt]||delete this._tiles[xt]}freeRtt(I){for(let W in this._tiles){let dt=this._tiles[W];(!I||dt.tileID.equals(I)||dt.tileID.isChildOf(I)||I.isChildOf(dt.tileID))&&(dt.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(I=>this.getTileByID(I))}getTileByID(I){return this._tiles[I]}getTerrainCoords(I){let W={};for(let dt of this._renderableTilesKeys){let xt=this._tiles[dt].tileID;if(xt.canonical.equals(I.canonical)){let Nt=I.clone();Nt.posMatrix=new Float64Array(16),t.aQ(Nt.posMatrix,0,t.X,0,t.X,0,1),W[dt]=Nt}else if(xt.canonical.isChildOf(I.canonical)){let Nt=I.clone();Nt.posMatrix=new Float64Array(16);let le=xt.canonical.z-I.canonical.z,Ae=xt.canonical.x-(xt.canonical.x>>le<>le<>le;t.aQ(Nt.posMatrix,0,ir,0,ir,0,1),t.J(Nt.posMatrix,Nt.posMatrix,[-Ae*ir,-Ue*ir,0]),W[dt]=Nt}else if(I.canonical.isChildOf(xt.canonical)){let Nt=I.clone();Nt.posMatrix=new Float64Array(16);let le=I.canonical.z-xt.canonical.z,Ae=I.canonical.x-(I.canonical.x>>le<>le<>le;t.aQ(Nt.posMatrix,0,t.X,0,t.X,0,1),t.J(Nt.posMatrix,Nt.posMatrix,[Ae*ir,Ue*ir,0]),t.K(Nt.posMatrix,Nt.posMatrix,[1/2**le,1/2**le,0]),W[dt]=Nt}}return W}getSourceTile(I,W){let dt=this.sourceCache._source,xt=I.overscaledZ-this.deltaZoom;if(xt>dt.maxzoom&&(xt=dt.maxzoom),xt=dt.minzoom&&!(Nt&&Nt.dem);)Nt=this.sourceCache.getTileByID(I.scaledTo(xt--).key);return Nt}tilesAfterTime(I=Date.now()){return Object.values(this._tiles).filter(W=>W.timeAdded>=I)}}class fi{constructor(I,W,dt){this.painter=I,this.sourceCache=new ti(W),this.options=dt,this.exaggeration=typeof dt.exaggeration=="number"?dt.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(I,W,dt,xt=t.X){var ri;if(!(W>=0&&W=0&&dtI.canonical.z&&(I.canonical.z>=xt?Nt=I.canonical.z-xt:t.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let le=I.canonical.x-(I.canonical.x>>Nt<>Nt<>8<<4|xt>>8,W[Nt+3]=0;let dt=new ft(I,new t.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(W.buffer)),I.gl.RGBA,{premultiply:!1});return dt.bind(I.gl.NEAREST,I.gl.CLAMP_TO_EDGE),this._coordsTexture=dt,dt}pointCoordinate(I){this.painter.maybeDrawDepthAndCoords(!0);let W=new Uint8Array(4),dt=this.painter.context,xt=dt.gl,Nt=Math.round(I.x*this.painter.pixelRatio/devicePixelRatio),le=Math.round(I.y*this.painter.pixelRatio/devicePixelRatio),Ae=Math.round(this.painter.height/devicePixelRatio);dt.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),xt.readPixels(Nt,Ae-le-1,1,1,xt.RGBA,xt.UNSIGNED_BYTE,W),dt.bindFramebuffer.set(null);let Ue=W[0]+(W[2]>>4<<8),ir=W[1]+((W[2]&15)<<8),cr=this.coordsIndex[255-W[3]],gr=cr&&this.sourceCache.getTileByID(cr);if(!gr)return null;let Ur=this._coordsTextureSize,ri=(1<I.id!==W),this._recentlyUsed.push(I.id)}stampObject(I){I.stamp=++this._stamp}getOrCreateFreeObject(){for(let W of this._recentlyUsed)if(!this._objects[W].inUse)return this._objects[W];if(this._objects.length>=this._size)throw Error("No free RenderPool available, call freeAllObjects() required!");let I=this._createObject(this._objects.length);return this._objects.push(I),I}freeObject(I){I.inUse=!1}freeAllObjects(){for(let I of this._objects)this.freeObject(I)}isFull(){return this._objects.length!I.inUse)===!1}}let Ui={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ri{constructor(I,W){this.painter=I,this.terrain=W,this.pool=new bi(I.context,30,W.sourceCache.tileSize*W.qualityFactor)}destruct(){this.pool.destruct()}getTexture(I){return this.pool.getObjectForId(I.rtt[this._stacks.length-1].id).texture}prepareForRender(I,W){for(let dt in this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=I._order.filter(xt=>!I._layers[xt].isHidden(W)),this._coordsDescendingInv={},I.sourceCaches){this._coordsDescendingInv[dt]={};let xt=I.sourceCaches[dt].getVisibleCoordinates();for(let Nt of xt){let le=this.terrain.sourceCache.getTerrainCoords(Nt);for(let Ae in le)this._coordsDescendingInv[dt][Ae]||(this._coordsDescendingInv[dt][Ae]=[]),this._coordsDescendingInv[dt][Ae].push(le[Ae])}}this._coordsDescendingInvStr={};for(let dt of I._order){let xt=I._layers[dt],Nt=xt.source;if(Ui[xt.type]&&!this._coordsDescendingInvStr[Nt])for(let le in this._coordsDescendingInvStr[Nt]={},this._coordsDescendingInv[Nt])this._coordsDescendingInvStr[Nt][le]=this._coordsDescendingInv[Nt][le].map(Ae=>Ae.key).sort().join()}for(let dt of this._renderableTiles)for(let xt in this._coordsDescendingInvStr){let Nt=this._coordsDescendingInvStr[xt][dt.tileID.key];Nt&&Nt!==dt.rttCoords[xt]&&(dt.rtt=[])}}renderLayer(I){if(I.isHidden(this.painter.transform.zoom))return!1;let W=I.type,dt=this.painter,xt=this._renderableLayerIds[this._renderableLayerIds.length-1]===I.id;if(Ui[W]&&((!this._prevType||!Ui[this._prevType])&&this._stacks.push([]),this._prevType=W,this._stacks[this._stacks.length-1].push(I.id),!xt))return!0;if(Ui[this._prevType]||Ui[W]&&xt){this._prevType=W;let Nt=this._stacks.length-1,le=this._stacks[Nt]||[];for(let Ae of this._renderableTiles){if(this.pool.isFull()&&(su(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Ae),Ae.rtt[Nt]){let ir=this.pool.getObjectForId(Ae.rtt[Nt].id);if(ir.stamp===Ae.rtt[Nt].stamp){this.pool.useObject(ir);continue}}let Ue=this.pool.getOrCreateFreeObject();this.pool.useObject(Ue),this.pool.stampObject(Ue),Ae.rtt[Nt]={id:Ue.id,stamp:Ue.stamp},dt.context.bindFramebuffer.set(Ue.fbo.framebuffer),dt.context.clear({color:t.aN.transparent,stencil:0}),dt.currentStencilSource=void 0;for(let ir=0;irI.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(I.minPitch!=null&&I.maxPitch!=null&&I.minPitch>I.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(I.minPitch!=null&&I.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(I.maxPitch!=null&&I.maxPitch>85)throw Error("maxPitch must be less than or equal to 85");let W=new cu(I.minZoom,I.maxZoom,I.minPitch,I.maxPitch,I.renderWorldCopies);if(super(W,{bearingSnap:I.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Ai,this._controls=[],this._mapId=t.a4(),this._contextLost=xt=>{xt.preventDefault(),this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this.fire(new t.k("webglcontextlost",{originalEvent:xt}))},this._contextRestored=xt=>{this._setupPainter(),this.resize(),this._update(),this.fire(new t.k("webglcontextrestored",{originalEvent:xt}))},this._onMapScroll=xt=>{if(xt.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=I.interactive,this._maxTileCacheSize=I.maxTileCacheSize,this._maxTileCacheZoomLevels=I.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=I.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=I.preserveDrawingBuffer===!0,this._antialias=I.antialias===!0,this._trackResize=I.trackResize===!0,this._bearingSnap=I.bearingSnap,this._refreshExpiredTiles=I.refreshExpiredTiles===!0,this._fadeDuration=I.fadeDuration,this._crossSourceCollisions=I.crossSourceCollisions===!0,this._collectResourceTiming=I.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},ki),I.locale),this._clickTolerance=I.clickTolerance,this._overridePixelRatio=I.pixelRatio,this._maxCanvasSize=I.maxCanvasSize,this.transformCameraUpdate=I.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=I.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=v.addThrottleControl(()=>this.isMoving()),this._requestManager=new l(I.transformRequest),typeof I.container=="string"){if(this._container=document.getElementById(I.container),!this._container)throw Error(`Container '${I.container}' not found.`)}else if(I.container instanceof HTMLElement)this._container=I.container;else throw Error("Invalid type: 'container' must be a String or HTMLElement.");if(I.maxBounds&&this.setMaxBounds(I.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let xt=!1,Nt=ro(le=>{this._trackResize&&!this._removed&&this.resize(le)._update()},50);this._resizeObserver=new ResizeObserver(le=>{if(!xt){xt=!0;return}Nt(le)}),this._resizeObserver.observe(this._container)}this.handlers=new rr(this,I);let dt=typeof I.hash=="string"&&I.hash||void 0;this._hash=I.hash&&new Ls(dt).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:I.center,zoom:I.zoom,bearing:I.bearing,pitch:I.pitch}),I.bounds&&(this.resize(),this.fitBounds(I.bounds,t.e({},I.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=I.localIdeographFontFamily,this._validateStyle=I.validateStyle,I.style&&this.setStyle(I.style,{localIdeographFontFamily:I.localIdeographFontFamily}),I.attributionControl&&this.addControl(new Yr(typeof I.attributionControl=="boolean"?void 0:I.attributionControl)),I.maplibreLogo&&this.addControl(new Qr,I.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",xt=>{this._update(xt.dataType==="style"),this.fire(new t.k(`${xt.dataType}data`,xt))}),this.on("dataloading",xt=>{this.fire(new t.k(`${xt.dataType}dataloading`,xt))}),this.on("dataabort",xt=>{this.fire(new t.k("sourcedataabort",xt))})}_getMapId(){return this._mapId}addControl(bt,I){if(I===void 0&&(I=bt.getDefaultPosition?bt.getDefaultPosition():"top-right"),!bt||!bt.onAdd)return this.fire(new t.j(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let W=bt.onAdd(this);this._controls.push(bt);let dt=this._controlPositions[I];return I.indexOf("bottom")===-1?dt.appendChild(W):dt.insertBefore(W,dt.firstChild),this}removeControl(bt){if(!bt||!bt.onRemove)return this.fire(new t.j(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let I=this._controls.indexOf(bt);return I>-1&&this._controls.splice(I,1),bt.onRemove(this),this}hasControl(bt){return this._controls.indexOf(bt)>-1}calculateCameraOptionsFromTo(bt,I,W,dt){return dt==null&&this.terrain&&(dt=this.terrain.getElevationForLngLatZoom(W,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(bt,I,W,dt)}resize(bt){var I;let W=this._containerDimensions(),dt=W[0],xt=W[1],Nt=this._getClampedPixelRatio(dt,xt);if(this._resizeCanvas(dt,xt,Nt),this.painter.resize(dt,xt,Nt),this.painter.overLimit()){let Ae=this.painter.context.gl;this._maxCanvasSize=[Ae.drawingBufferWidth,Ae.drawingBufferHeight];let Ue=this._getClampedPixelRatio(dt,xt);this._resizeCanvas(dt,xt,Ue),this.painter.resize(dt,xt,Ue)}this.transform.resize(dt,xt),(I=this._requestedCameraState)==null||I.resize(dt,xt);let le=!this._moving;return le&&(this.stop(),this.fire(new t.k("movestart",bt)).fire(new t.k("move",bt))),this.fire(new t.k("resize",bt)),le&&this.fire(new t.k("moveend",bt)),this}_getClampedPixelRatio(bt,I){let{0:W,1:dt}=this._maxCanvasSize,xt=this.getPixelRatio(),Nt=bt*xt,le=I*xt,Ae=Nt>W?W/Nt:1,Ue=le>dt?dt/le:1;return Math.min(Ae,Ue)*xt}getPixelRatio(){return this._overridePixelRatio??devicePixelRatio}setPixelRatio(bt){this._overridePixelRatio=bt,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(bt){return this.transform.setMaxBounds(nr.convert(bt)),this._update()}setMinZoom(bt){if(bt??(bt=-2),bt>=-2&&bt<=this.transform.maxZoom)return this.transform.minZoom=bt,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=bt,this._update(),this.getZoom()>bt&&this.setZoom(bt),this;throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(bt){if(bt??(bt=0),bt<0)throw Error("minPitch must be greater than or equal to 0");if(bt>=0&&bt<=this.transform.maxPitch)return this.transform.minPitch=bt,this._update(),this.getPitch()85)throw Error("maxPitch must be less than or equal to 85");if(bt>=this.transform.minPitch)return this.transform.maxPitch=bt,this._update(),this.getPitch()>bt&&this.setPitch(bt),this;throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(bt){return this.transform.renderWorldCopies=bt,this._update()}project(bt){return this.transform.locationPoint(t.N.convert(bt),this.style&&this.terrain)}unproject(bt){return this.transform.pointLocation(t.P.convert(bt),this.terrain)}isMoving(){var bt;return this._moving||((bt=this.handlers)==null?void 0:bt.isMoving())}isZooming(){var bt;return this._zooming||((bt=this.handlers)==null?void 0:bt.isZooming())}isRotating(){var bt;return this._rotating||((bt=this.handlers)==null?void 0:bt.isRotating())}_createDelegatedListener(bt,I,W){if(bt==="mouseenter"||bt==="mouseover"){let dt=!1;return{layer:I,listener:W,delegates:{mousemove:xt=>{let Nt=this.getLayer(I)?this.queryRenderedFeatures(xt.point,{layers:[I]}):[];Nt.length?dt||(dt=!0,W.call(this,new es(bt,this,xt.originalEvent,{features:Nt}))):dt=!1},mouseout:()=>{dt=!1}}}}else if(bt==="mouseleave"||bt==="mouseout"){let dt=!1;return{layer:I,listener:W,delegates:{mousemove:xt=>{(this.getLayer(I)?this.queryRenderedFeatures(xt.point,{layers:[I]}):[]).length?dt=!0:dt&&(dt=!1,W.call(this,new es(bt,this,xt.originalEvent)))},mouseout:xt=>{dt&&(dt=!1,W.call(this,new es(bt,this,xt.originalEvent)))}}}}else{let dt=xt=>{let Nt=this.getLayer(I)?this.queryRenderedFeatures(xt.point,{layers:[I]}):[];Nt.length&&(xt.features=Nt,W.call(this,xt),delete xt.features)};return{layer:I,listener:W,delegates:{[bt]:dt}}}}on(bt,I,W){if(W===void 0)return super.on(bt,I);let dt=this._createDelegatedListener(bt,I,W);for(let xt in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[bt]=this._delegatedListeners[bt]||[],this._delegatedListeners[bt].push(dt),dt.delegates)this.on(xt,dt.delegates[xt]);return this}once(bt,I,W){if(W===void 0)return super.once(bt,I);let dt=this._createDelegatedListener(bt,I,W);for(let xt in dt.delegates)this.once(xt,dt.delegates[xt]);return this}off(bt,I,W){return W===void 0?super.off(bt,I):(this._delegatedListeners&&this._delegatedListeners[bt]&&(dt=>{let xt=dt[bt];for(let Nt=0;Ntthis._updateStyle(bt,I));return}let W=this.style&&I.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!bt)),bt)this.style=new na(this,I||{});else return delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof bt=="string"?this.style.loadURL(bt,I,W):this.style.loadJSON(bt,I,W),this}_lazyInitEmptyStyle(){this.style||(this.style=new na(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(bt,I){if(typeof bt=="string"){let W=bt,dt=this._requestManager.transformRequest(W,"Style");t.h(dt,new AbortController).then(xt=>{this._updateDiff(xt.data,I)}).catch(xt=>{xt&&this.fire(new t.j(xt))})}else typeof bt=="object"&&this._updateDiff(bt,I)}_updateDiff(bt,I){try{this.style.setState(bt,I)&&this._update(!0)}catch(W){t.w(`Unable to perform style diff: ${W.message||W.error||W}. Rebuilding the style from scratch.`),this._updateStyle(bt,I)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():t.w("There is no style added to the map.")}addSource(bt,I){return this._lazyInitEmptyStyle(),this.style.addSource(bt,I),this._update(!0)}isSourceLoaded(bt){let I=this.style&&this.style.sourceCaches[bt];if(I===void 0){this.fire(new t.j(Error(`There is no source with ID '${bt}'`)));return}return I.loaded()}setTerrain(bt){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!bt)this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;else{let I=this.style.sourceCaches[bt.source];if(!I)throw Error(`cannot load terrain, because there exists no source with ID: ${bt.source}`);for(let W in this.terrain===null&&I.reload(),this.style._layers){let dt=this.style._layers[W];dt.type==="hillshade"&&dt.source===bt.source&&t.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new fi(this.painter,I,bt),this.painter.renderToTexture=new Ri(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=W=>{W.dataType==="style"?this.terrain.sourceCache.freeRtt():W.dataType==="source"&&W.tile&&(W.sourceId===bt.source&&!this._elevationFreeze&&(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(W.tile.tileID))},this.style.on("data",this._terrainDataCallback)}return this.fire(new t.k("terrain",{terrain:bt})),this}getTerrain(){var bt;return((bt=this.terrain)==null?void 0:bt.options)??null}areTilesLoaded(){let bt=this.style&&this.style.sourceCaches;for(let I in bt){let W=bt[I]._tiles;for(let dt in W){let xt=W[dt];if(!(xt.state==="loaded"||xt.state==="errored"))return!1}}return!0}removeSource(bt){return this.style.removeSource(bt),this._update(!0)}getSource(bt){return this.style.getSource(bt)}addImage(bt,I,W={}){let{pixelRatio:dt=1,sdf:xt=!1,stretchX:Nt,stretchY:le,content:Ae,textFitWidth:Ue,textFitHeight:ir}=W;if(this._lazyInitEmptyStyle(),I instanceof HTMLImageElement||t.b(I)){let{width:cr,height:gr,data:Ur}=i.getImageData(I);this.style.addImage(bt,{data:new t.R({width:cr,height:gr},Ur),pixelRatio:dt,stretchX:Nt,stretchY:le,content:Ae,textFitWidth:Ue,textFitHeight:ir,sdf:xt,version:0})}else{if(I.width===void 0||I.height===void 0)return this.fire(new t.j(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:cr,height:gr,data:Ur}=I,ri=I;return this.style.addImage(bt,{data:new t.R({width:cr,height:gr},new Uint8Array(Ur)),pixelRatio:dt,stretchX:Nt,stretchY:le,content:Ae,textFitWidth:Ue,textFitHeight:ir,sdf:xt,version:0,userImage:ri}),ri.onAdd&&ri.onAdd(this,bt),this}}}updateImage(bt,I){let W=this.style.getImage(bt);if(!W)return this.fire(new t.j(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:dt,height:xt,data:Nt}=I instanceof HTMLImageElement||t.b(I)?i.getImageData(I):I;if(dt===void 0||xt===void 0)return this.fire(new t.j(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(dt!==W.data.width||xt!==W.data.height)return this.fire(new t.j(Error("The width and height of the updated image must be that same as the previous version of the image")));let le=!(I instanceof HTMLImageElement||t.b(I));return W.data.replace(Nt,le),this.style.updateImage(bt,W),this}getImage(bt){return this.style.getImage(bt)}hasImage(bt){return bt?!!this.style.getImage(bt):(this.fire(new t.j(Error("Missing required image id"))),!1)}removeImage(bt){this.style.removeImage(bt)}loadImage(bt){return v.getImage(this._requestManager.transformRequest(bt,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(bt,I){return this._lazyInitEmptyStyle(),this.style.addLayer(bt,I),this._update(!0)}moveLayer(bt,I){return this.style.moveLayer(bt,I),this._update(!0)}removeLayer(bt){return this.style.removeLayer(bt),this._update(!0)}getLayer(bt){return this.style.getLayer(bt)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(bt,I,W){return this.style.setLayerZoomRange(bt,I,W),this._update(!0)}setFilter(bt,I,W={}){return this.style.setFilter(bt,I,W),this._update(!0)}getFilter(bt){return this.style.getFilter(bt)}setPaintProperty(bt,I,W,dt={}){return this.style.setPaintProperty(bt,I,W,dt),this._update(!0)}getPaintProperty(bt,I){return this.style.getPaintProperty(bt,I)}setLayoutProperty(bt,I,W,dt={}){return this.style.setLayoutProperty(bt,I,W,dt),this._update(!0)}getLayoutProperty(bt,I){return this.style.getLayoutProperty(bt,I)}setGlyphs(bt,I={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(bt,I),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(bt,I,W={}){return this._lazyInitEmptyStyle(),this.style.addSprite(bt,I,W,dt=>{dt||this._update(!0)}),this}removeSprite(bt){return this._lazyInitEmptyStyle(),this.style.removeSprite(bt),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(bt,I={}){return this._lazyInitEmptyStyle(),this.style.setSprite(bt,I,W=>{W||this._update(!0)}),this}setLight(bt,I={}){return this._lazyInitEmptyStyle(),this.style.setLight(bt,I),this._update(!0)}getLight(){return this.style.getLight()}setSky(bt){return this._lazyInitEmptyStyle(),this.style.setSky(bt),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(bt,I){return this.style.setFeatureState(bt,I),this._update()}removeFeatureState(bt,I){return this.style.removeFeatureState(bt,I),this._update()}getFeatureState(bt){return this.style.getFeatureState(bt)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let bt=0,I=0;return this._container&&(bt=this._container.clientWidth||400,I=this._container.clientHeight||300),[bt,I]}_setupContainer(){let bt=this._container;bt.classList.add("maplibregl-map");let I=this._canvasContainer=r.create("div","maplibregl-canvas-container",bt);this._interactive&&I.classList.add("maplibregl-interactive"),this._canvas=r.create("canvas","maplibregl-canvas",I),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let W=this._containerDimensions(),dt=this._getClampedPixelRatio(W[0],W[1]);this._resizeCanvas(W[0],W[1],dt);let xt=this._controlContainer=r.create("div","maplibregl-control-container",bt),Nt=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(le=>{Nt[le]=r.create("div",`maplibregl-ctrl-${le} `,xt)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(bt,I,W){this._canvas.width=Math.floor(W*bt),this._canvas.height=Math.floor(W*I),this._canvas.style.width=`${bt}px`,this._canvas.style.height=`${I}px`}_setupPainter(){let bt={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},I=null;this._canvas.addEventListener("webglcontextcreationerror",dt=>{I={requestedAttributes:bt},dt&&(I.statusMessage=dt.statusMessage,I.type=dt.type)},{once:!0});let W=this._canvas.getContext("webgl2",bt)||this._canvas.getContext("webgl",bt);if(!W){let dt="Failed to initialize WebGL";throw I?(I.message=dt,Error(JSON.stringify(I))):Error(dt)}this.painter=new Eu(W,this.transform),o.testSupport(W)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(bt){return!this.style||!this.style._loaded?this:(this._styleDirty=this._styleDirty||bt,this._sourcesDirty=!0,this.triggerRepaint(),this)}_requestRenderFrame(bt){return this._update(),this._renderTaskQueue.add(bt)}_cancelRenderFrame(bt){this._renderTaskQueue.remove(bt)}_render(bt){let I=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(bt),this._removed)return;let W=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let xt=this.transform.zoom,Nt=i.now();this.style.zoomHistory.update(xt,Nt);let le=new t.a9(xt,{now:Nt,fadeDuration:I,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ae=le.crossFadingFactor();(Ae!==1||Ae!==this._crossFadingFactor)&&(W=!0,this._crossFadingFactor=Ae),this.style.update(le)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,I,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:I,showPadding:this.showPadding}),this.fire(new t.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,t.be.mark(t.bf.load),this.fire(new t.k("load"))),this.style&&(this.style.hasTransitions()||W)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let dt=this._sourcesDirty||this._styleDirty||this._placementDirty;return dt||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.k("idle")),this._loaded&&!this._fullyLoaded&&!dt&&(this._fullyLoaded=!0,t.be.mark(t.bf.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._render(0)),this}remove(){var bt;this._hash&&this._hash.remove();for(let W of this._controls)W.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),v.removeThrottleControl(this._imageQueueHandle),(bt=this._resizeObserver)==null||bt.disconnect();let I=this.painter.context.gl.getExtension("WEBGL_lose_context");I!=null&&I.loseContext&&I.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),r.remove(this._canvasContainer),r.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),t.be.clearMetrics(),this._removed=!0,this.fire(new t.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,i.frameAsync(this._frameRequest).then(bt=>{t.be.frame(bt),this._frameRequest=null,this._render(bt)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(bt){this._showTileBoundaries!==bt&&(this._showTileBoundaries=bt,this._update())}get showPadding(){return!!this._showPadding}set showPadding(bt){this._showPadding!==bt&&(this._showPadding=bt,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(bt){this._showCollisionBoxes!==bt&&(this._showCollisionBoxes=bt,bt?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(bt){this._showOverdrawInspector!==bt&&(this._showOverdrawInspector=bt,this._update())}get repaint(){return!!this._repaint}set repaint(bt){this._repaint!==bt&&(this._repaint=bt,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(bt){this._vertices=bt,this._update()}get version(){return ha}getCameraTargetElevation(){return this.transform.elevation}},ja=bt=>{bt.touchstart=bt.dragStart,bt.touchmoveWindow=bt.dragMove,bt.touchend=bt.dragEnd},Ya=({enable:bt,clickTolerance:I,bearingDegreesPerPixelMoved:W=.8})=>new pe({clickTolerance:I,move:(dt,xt)=>({bearingDelta:(xt.x-dt.x)*W}),moveStateManager:new Ze,enable:bt,assignEvents:ja}),Ja=({enable:bt,clickTolerance:I,pitchDegreesPerPixelMoved:W=-.5})=>new pe({clickTolerance:I,move:(dt,xt)=>({pitchDelta:(xt.y-dt.y)*W}),moveStateManager:new Ze,enable:bt,assignEvents:ja}),Cn={showCompass:!0,showZoom:!0,visualizePitch:!1};class rn{constructor(I){this._updateZoomButtons=()=>{let W=this._map.getZoom(),dt=W===this._map.getMaxZoom(),xt=W===this._map.getMinZoom();this._zoomInButton.disabled=dt,this._zoomOutButton.disabled=xt,this._zoomInButton.setAttribute("aria-disabled",dt.toString()),this._zoomOutButton.setAttribute("aria-disabled",xt.toString())},this._rotateCompassArrow=()=>{let W=this.options.visualizePitch?`scale(${1/Math.cos(this._map.transform.pitch*(Math.PI/180))**.5}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=W},this._setButtonTitle=(W,dt)=>{let xt=this._map._getUIString(`NavigationControl.${dt}`);W.title=xt,W.setAttribute("aria-label",xt)},this.options=t.e({},Cn,I),this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",W=>W.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",W=>this._map.zoomIn({},{originalEvent:W})),r.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",W=>this._map.zoomOut({},{originalEvent:W})),r.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",W=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:W}):this._map.resetNorth({},{originalEvent:W})}),this._compassIcon=r.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(I){return this._map=I,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Bn(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){r.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(I,W){let dt=r.create("button",I,this._container);return dt.type="button",dt.addEventListener("click",W),dt}}class Bn{constructor(I,W,dt=!1){this.mousedown=le=>{this.startMouse(t.e({},le,{ctrlKey:!0,preventDefault:()=>le.preventDefault()}),r.mousePos(this.element,le)),r.addEventListener(window,"mousemove",this.mousemove),r.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=le=>{this.moveMouse(le,r.mousePos(this.element,le))},this.mouseup=le=>{this.mouseRotate.dragEnd(le),this.mousePitch&&this.mousePitch.dragEnd(le),this.offTemp()},this.touchstart=le=>{le.targetTouches.length===1?(this._startPos=this._lastPos=r.touchPos(this.element,le.targetTouches)[0],this.startTouch(le,this._startPos),r.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),r.addEventListener(window,"touchend",this.touchend)):this.reset()},this.touchmove=le=>{le.targetTouches.length===1?(this._lastPos=r.touchPos(this.element,le.targetTouches)[0],this.moveTouch(le,this._lastPos)):this.reset()},this.touchend=le=>{le.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let xt=I.dragRotate._mouseRotate.getClickTolerance(),Nt=I.dragRotate._mousePitch.getClickTolerance();this.element=W,this.mouseRotate=qr({clickTolerance:xt,enable:!0}),this.touchRotate=Ya({clickTolerance:xt,enable:!0}),this.map=I,dt&&(this.mousePitch=Lr({clickTolerance:Nt,enable:!0}),this.touchPitch=Ja({clickTolerance:Nt,enable:!0})),r.addEventListener(W,"mousedown",this.mousedown),r.addEventListener(W,"touchstart",this.touchstart,{passive:!1}),r.addEventListener(W,"touchcancel",this.reset)}startMouse(I,W){this.mouseRotate.dragStart(I,W),this.mousePitch&&this.mousePitch.dragStart(I,W),r.disableDrag()}startTouch(I,W){this.touchRotate.dragStart(I,W),this.touchPitch&&this.touchPitch.dragStart(I,W),r.disableDrag()}moveMouse(I,W){let dt=this.map,{bearingDelta:xt}=this.mouseRotate.dragMove(I,W)||{};if(xt&&dt.setBearing(dt.getBearing()+xt),this.mousePitch){let{pitchDelta:Nt}=this.mousePitch.dragMove(I,W)||{};Nt&&dt.setPitch(dt.getPitch()+Nt)}}moveTouch(I,W){let dt=this.map,{bearingDelta:xt}=this.touchRotate.dragMove(I,W)||{};if(xt&&dt.setBearing(dt.getBearing()+xt),this.touchPitch){let{pitchDelta:Nt}=this.touchPitch.dragMove(I,W)||{};Nt&&dt.setPitch(dt.getPitch()+Nt)}}off(){let I=this.element;r.removeEventListener(I,"mousedown",this.mousedown),r.removeEventListener(I,"touchstart",this.touchstart,{passive:!1}),r.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),r.removeEventListener(window,"touchend",this.touchend),r.removeEventListener(I,"touchcancel",this.reset),this.offTemp()}offTemp(){r.enableDrag(),r.removeEventListener(window,"mousemove",this.mousemove),r.removeEventListener(window,"mouseup",this.mouseup),r.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),r.removeEventListener(window,"touchend",this.touchend)}}let Un;function rs(){return t._(this,arguments,void 0,function*(bt=!1){if(Un!==void 0&&!bt)return Un;if(window.navigator.permissions===void 0)return Un=!!window.navigator.geolocation,Un;try{Un=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch{Un=!!window.navigator.geolocation}return Un})}function In(bt,I,W){let dt=new t.N(bt.lng,bt.lat);if(bt=new t.N(bt.lng,bt.lat),I){let xt=new t.N(bt.lng-360,bt.lat),Nt=new t.N(bt.lng+360,bt.lat),le=W.locationPoint(bt).distSqr(I);W.locationPoint(xt).distSqr(I)180;){let xt=W.locationPoint(bt);if(xt.x>=0&&xt.y>=0&&xt.x<=W.width&&xt.y<=W.height)break;bt.lng>W.center.lng?bt.lng-=360:bt.lng+=360}return bt.lng!==dt.lng&&W.locationPoint(bt).y>W.height/2-W.getHorizon()?bt:dt}let Ua={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Pn(bt,I,W){let dt=bt.classList;for(let xt in Ua)dt.remove(`maplibregl-${W}-anchor-${xt}`);dt.add(`maplibregl-${W}-anchor-${I}`)}class Mn extends t.E{constructor(I){if(super(),this._onKeyPress=W=>{let dt=W.code,xt=W.charCode||W.keyCode;(dt==="Space"||dt==="Enter"||xt===32||xt===13)&&this.togglePopup()},this._onMapClick=W=>{let dt=W.originalEvent.target,xt=this._element;this._popup&&(dt===xt||xt.contains(dt))&&this.togglePopup()},this._update=W=>{var le;if(!this._map)return;let dt=this._map.loaded()&&!this._map.isMoving();((W==null?void 0:W.type)==="terrain"||(W==null?void 0:W.type)==="render"&&!dt)&&this._map.once("render",this._update),this._map.transform.renderWorldCopies?this._lngLat=In(this._lngLat,this._flatPos,this._map.transform):this._lngLat=(le=this._lngLat)==null?void 0:le.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let xt="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?xt=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(xt=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Nt="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Nt="rotateX(0deg)":this._pitchAlignment==="map"&&(Nt=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&(!W||W.type==="moveend")&&(this._pos=this._pos.round()),r.setTransform(this._element,`${Ua[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Nt} ${xt}`),i.frameAsync(new AbortController).then(()=>{this._updateOpacity(W&&W.type==="moveend")}).catch(()=>{})},this._onMove=W=>{if(!this._isDragging){let dt=this._clickTolerance||this._map._clickTolerance;this._isDragging=W.point.dist(this._pointerdownPos)>=dt}this._isDragging&&(this._pos=W.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new t.k("dragstart"))),this.fire(new t.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new t.k("dragend")),this._state="inactive"},this._addDragHandler=W=>{this._element.contains(W.originalEvent.target)&&(W.preventDefault(),this._positionDelta=W.point.sub(this._pos).add(this._offset),this._pointerdownPos=W.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=I&&I.anchor||"center",this._color=I&&I.color||"#3FB1CE",this._scale=I&&I.scale||1,this._draggable=I&&I.draggable||!1,this._clickTolerance=I&&I.clickTolerance||0,this._subpixelPositioning=I&&I.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=I&&I.rotation||0,this._rotationAlignment=I&&I.rotationAlignment||"auto",this._pitchAlignment=I&&I.pitchAlignment&&I.pitchAlignment!=="auto"?I.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(I==null?void 0:I.opacity,I==null?void 0:I.opacityWhenCovered),!I||!I.element){this._defaultMarker=!0,this._element=r.create("div");let W=r.createNS("http://www.w3.org/2000/svg","svg");W.setAttributeNS(null,"display","block"),W.setAttributeNS(null,"height","41px"),W.setAttributeNS(null,"width","27px"),W.setAttributeNS(null,"viewBox","0 0 27 41");let dt=r.createNS("http://www.w3.org/2000/svg","g");dt.setAttributeNS(null,"stroke","none"),dt.setAttributeNS(null,"stroke-width","1"),dt.setAttributeNS(null,"fill","none"),dt.setAttributeNS(null,"fill-rule","evenodd");let xt=r.createNS("http://www.w3.org/2000/svg","g");xt.setAttributeNS(null,"fill-rule","nonzero");let Nt=r.createNS("http://www.w3.org/2000/svg","g");Nt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Nt.setAttributeNS(null,"fill","#000000");for(let pi of[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}]){let xi=r.createNS("http://www.w3.org/2000/svg","ellipse");xi.setAttributeNS(null,"opacity","0.04"),xi.setAttributeNS(null,"cx","10.5"),xi.setAttributeNS(null,"cy","5.80029008"),xi.setAttributeNS(null,"rx",pi.rx),xi.setAttributeNS(null,"ry",pi.ry),Nt.appendChild(xi)}let le=r.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"fill",this._color);let Ae=r.createNS("http://www.w3.org/2000/svg","path");Ae.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),le.appendChild(Ae);let Ue=r.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"opacity","0.25"),Ue.setAttributeNS(null,"fill","#000000");let ir=r.createNS("http://www.w3.org/2000/svg","path");ir.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),Ue.appendChild(ir);let cr=r.createNS("http://www.w3.org/2000/svg","g");cr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),cr.setAttributeNS(null,"fill","#FFFFFF");let gr=r.createNS("http://www.w3.org/2000/svg","g");gr.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Ur=r.createNS("http://www.w3.org/2000/svg","circle");Ur.setAttributeNS(null,"fill","#000000"),Ur.setAttributeNS(null,"opacity","0.25"),Ur.setAttributeNS(null,"cx","5.5"),Ur.setAttributeNS(null,"cy","5.5"),Ur.setAttributeNS(null,"r","5.4999962");let ri=r.createNS("http://www.w3.org/2000/svg","circle");ri.setAttributeNS(null,"fill","#FFFFFF"),ri.setAttributeNS(null,"cx","5.5"),ri.setAttributeNS(null,"cy","5.5"),ri.setAttributeNS(null,"r","5.4999962"),gr.appendChild(Ur),gr.appendChild(ri),xt.appendChild(Nt),xt.appendChild(le),xt.appendChild(Ue),xt.appendChild(cr),xt.appendChild(gr),W.appendChild(xt),W.setAttributeNS(null,"height",`${41*this._scale}px`),W.setAttributeNS(null,"width",`${27*this._scale}px`),this._element.appendChild(W),this._offset=t.P.convert(I&&I.offset||[0,-14])}else this._element=I.element,this._offset=t.P.convert(I&&I.offset||[0,0]);if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",W=>{W.preventDefault()}),this._element.addEventListener("mousedown",W=>{W.preventDefault()}),Pn(this._element,this._anchor,"marker"),I&&I.className)for(let W of I.className.split(" "))this._element.classList.add(W);this._popup=null}addTo(I){return this.remove(),this._map=I,this._element.setAttribute("aria-label",I._getUIString("Marker.Title")),I.getCanvasContainer().appendChild(this._element),I.on("move",this._update),I.on("moveend",this._update),I.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),r.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(I){return this._lngLat=t.N.convert(I),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(I){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),I){if(!("offset"in I.options)){let W=38.1,dt=13.5,xt=13.5/Math.SQRT2;I.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-W],"bottom-left":[xt,(W-dt+xt)*-1],"bottom-right":[-xt,(W-dt+xt)*-1],left:[dt,(W-dt)*-1],right:[-dt,(W-dt)*-1]}:this._offset}this._popup=I,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(I){return this._subpixelPositioning=I,this}getPopup(){return this._popup}togglePopup(){let I=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(I)I.isOpen()?I.remove():(I.setLngLat(this._lngLat),I.addTo(this._map));else return this;return this}_updateOpacity(I=!1){var gr,Ur;if(!((gr=this._map)!=null&&gr.terrain)){this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity);return}if(I)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let W=this._map,dt=W.terrain.depthAtPoint(this._pos),xt=W.terrain.getElevationForLngLatZoom(this._lngLat,W.transform.tileZoom),Nt=W.transform.lngLatToCameraDepth(this._lngLat,xt),le=.006;if(Nt-dtle;(Ur=this._popup)!=null&&Ur.isOpen()&&cr&&this._popup.remove(),this._element.style.opacity=cr?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(I){return this._offset=t.P.convert(I),this._update(),this}addClassName(I){this._element.classList.add(I)}removeClassName(I){this._element.classList.remove(I)}toggleClassName(I){return this._element.classList.toggle(I)}setDraggable(I){return this._draggable=!!I,this._map&&(I?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(I){return this._rotation=I||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(I){return this._rotationAlignment=I||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(I){return this._pitchAlignment=I&&I!=="auto"?I:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(I,W){return I===void 0&&W===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),I!==void 0&&(this._opacity=I),W!==void 0&&(this._opacityWhenCovered=W),this._map&&this._updateOpacity(!0),this}}let Oa={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Mo=0,oo=!1;class Eo extends t.E{constructor(I){super(),this._onSuccess=W=>{if(this._map){if(this._isOutOfMapMaxBounds(W)){this._setErrorState(),this.fire(new t.k("outofmaxbounds",W)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=W,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(W),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(W),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new t.k("geolocate",W)),this._finish()}},this._updateCamera=W=>{let dt=new t.N(W.coords.longitude,W.coords.latitude),xt=W.coords.accuracy,Nt=this._map.getBearing(),le=t.e({bearing:Nt},this.options.fitBoundsOptions),Ae=nr.fromLngLat(dt,xt);this._map.fitBounds(Ae,le,{geolocateSource:!0})},this._updateMarker=W=>{if(W){let dt=new t.N(W.coords.longitude,W.coords.latitude);this._accuracyCircleMarker.setLngLat(dt).addTo(this._map),this._userLocationDotMarker.setLngLat(dt).addTo(this._map),this._accuracy=W.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=W=>{if(this._map){if(this.options.trackUserLocation)if(W.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let dt=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=dt,this._geolocateButton.setAttribute("aria-label",dt),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(W.code===3&&oo)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new t.k("error",W)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",W=>W.preventDefault()),this._geolocateButton=r.create("button","maplibregl-ctrl-geolocate",this._container),r.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=W=>{if(this._map){if(W===!1){t.w("Geolocation support is not available so the GeolocateControl will be disabled.");let dt=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=dt,this._geolocateButton.setAttribute("aria-label",dt)}else{let dt=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=dt,this._geolocateButton.setAttribute("aria-label",dt)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Mn({element:this._dotElement}),this._circleElement=r.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Mn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",dt=>{let xt=dt.originalEvent&&dt.originalEvent.type==="resize";!dt.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!xt&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new t.k("trackuserlocationend")),this.fire(new t.k("userlocationlostfocus")))})}},this.options=t.e({},Oa,I)}onAdd(I){return this._map=I,this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),rs().then(W=>this._finishSetupUI(W)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Mo=0,oo=!1}_isOutOfMapMaxBounds(I){let W=this._map.getMaxBounds(),dt=I.coords;return W&&(dt.longitudeW.getEast()||dt.latitudeW.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let I=this._map.getBounds(),W=I.getSouthEast(),dt=I.getNorthEast(),xt=W.distanceTo(dt),Nt=this._map._container.clientHeight,le=Math.ceil(2*(this._accuracy/(xt/Nt)));this._circleElement.style.width=`${le}px`,this._circleElement.style.height=`${le}px`}trigger(){if(!this._setup)return t.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Mo--,oo=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new t.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.k("trackuserlocationstart")),this.fire(new t.k("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Mo++;let I;Mo>1?(I={maximumAge:6e5,timeout:0},oo=!0):(I=this.options.positionOptions,oo=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,I)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}}let as={maxWidth:100,unit:"metric"};class an{constructor(I){this._onMove=()=>{pn(this._map,this._container,this.options)},this.setUnit=W=>{this.options.unit=W,pn(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},as),I)}getDefaultPosition(){return"bottom-left"}onAdd(I){return this._map=I,this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-scale",I.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}}function pn(bt,I,W){let dt=W&&W.maxWidth||100,xt=bt._container.clientHeight/2,Nt=bt.unproject([0,xt]),le=bt.unproject([dt,xt]),Ae=Nt.distanceTo(le);if(W&&W.unit==="imperial"){let Ue=3.2808*Ae;Ue>5280?ns(I,dt,Ue/5280,bt._getUIString("ScaleControl.Miles")):ns(I,dt,Ue,bt._getUIString("ScaleControl.Feet"))}else W&&W.unit==="nautical"?ns(I,dt,Ae/1852,bt._getUIString("ScaleControl.NauticalMiles")):Ae>=1e3?ns(I,dt,Ae/1e3,bt._getUIString("ScaleControl.Kilometers")):ns(I,dt,Ae,bt._getUIString("ScaleControl.Meters"))}function ns(bt,I,W,dt){let xt=Yo(W),Nt=xt/W;bt.style.width=`${I*Nt}px`,bt.innerHTML=`${xt} ${dt}`}function Pa(bt){let I=10**Math.ceil(-Math.log(bt)/Math.LN10);return Math.round(bt*I)/I}function Yo(bt){let I=10**(`${Math.floor(bt)}`.length-1),W=bt/I;return W=W>=10?10:W>=5?5:W>=3?3:W>=2?2:W>=1?1:Pa(W),I*W}class Ro extends t.E{constructor(I={}){super(),this._onFullscreenChange=()=>{var dt;let W=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;(dt=W==null?void 0:W.shadowRoot)!=null&&dt.fullscreenElement;)W=W.shadowRoot.fullscreenElement;W===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,I&&I.container&&(I.container instanceof HTMLElement?this._container=I.container:t.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(I){return this._map=I,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){r.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let I=this._fullscreenButton=r.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);r.create("span","maplibregl-ctrl-icon",I).setAttribute("aria-hidden","true"),I.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let I=this._getTitle();this._fullscreenButton.setAttribute("aria-label",I),this._fullscreenButton.title=I}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new t.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new t.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}}class dl{constructor(I){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=I}onAdd(I){return this._map=I,this._container=r.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=r.create("button","maplibregl-ctrl-terrain",this._container),r.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){r.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}}let Xo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},$o=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");class hs extends t.E{constructor(I){super(),this.remove=()=>(this._content&&r.remove(this._content),this._container&&(r.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new t.k("close"))),this),this._onMouseUp=W=>{this._update(W.point)},this._onMouseMove=W=>{this._update(W.point)},this._onDrag=W=>{this._update(W.point)},this._update=W=>{var Ue;let dt=this._lngLat||this._trackPointer;if(!this._map||!dt||!this._content)return;if(!this._container){if(this._container=r.create("div","maplibregl-popup",this._map.getContainer()),this._tip=r.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let ir of this.options.className.split(" "))this._container.classList.add(ir);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer?this._lngLat=In(this._lngLat,this._flatPos,this._map.transform):this._lngLat=(Ue=this._lngLat)==null?void 0:Ue.wrap(),this._trackPointer&&!W)return;let xt=this._flatPos=this._pos=this._trackPointer&&W?W:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&W?W:this._map.transform.locationPoint(this._lngLat));let Nt=this.options.anchor,le=$s(this.options.offset);if(!Nt){let ir=this._container.offsetWidth,cr=this._container.offsetHeight,gr;gr=xt.y+le.bottom.ythis._map.transform.height-cr?["bottom"]:[],xt.xthis._map.transform.width-ir/2&&gr.push("right"),Nt=gr.length===0?"bottom":gr.join("-")}let Ae=xt.add(le[Nt]);this.options.subpixelPositioning||(Ae=Ae.round()),r.setTransform(this._container,`${Ua[Nt]} translate(${Ae.x}px,${Ae.y}px)`),Pn(this._container,Nt,"popup")},this._onClose=()=>{this.remove()},this.options=t.e(Object.create(Xo),I)}addTo(I){return this._map&&this.remove(),this._map=I,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new t.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(I){return this._lngLat=t.N.convert(I),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(I){return this.setDOMContent(document.createTextNode(I))}setHTML(I){let W=document.createDocumentFragment(),dt=document.createElement("body"),xt;for(dt.innerHTML=I;xt=dt.firstChild,xt;)W.appendChild(xt);return this.setDOMContent(W)}getMaxWidth(){var I;return(I=this._container)==null?void 0:I.style.maxWidth}setMaxWidth(I){return this.options.maxWidth=I,this._update(),this}setDOMContent(I){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=r.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(I),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(I){return this._container&&this._container.classList.add(I),this}removeClassName(I){return this._container&&this._container.classList.remove(I),this}setOffset(I){return this.options.offset=I,this._update(),this}toggleClassName(I){if(this._container)return this._container.classList.toggle(I)}setSubpixelPositioning(I){this.options.subpixelPositioning=I}_createCloseButton(){this.options.closeButton&&(this._closeButton=r.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let I=this._container.querySelector($o);I&&I.focus()}}function $s(bt){if(bt)if(typeof bt=="number"){let I=Math.round(Math.abs(bt)/Math.SQRT2);return{center:new t.P(0,0),top:new t.P(0,bt),"top-left":new t.P(I,I),"top-right":new t.P(-I,I),bottom:new t.P(0,-bt),"bottom-left":new t.P(I,-I),"bottom-right":new t.P(-I,-I),left:new t.P(bt,0),right:new t.P(-bt,0)}}else if(bt instanceof t.P||Array.isArray(bt)){let I=t.P.convert(bt);return{center:I,top:I,"top-left":I,"top-right":I,bottom:I,"bottom-left":I,"bottom-right":I,left:I,right:I}}else return{center:t.P.convert(bt.center||[0,0]),top:t.P.convert(bt.top||[0,0]),"top-left":t.P.convert(bt["top-left"]||[0,0]),"top-right":t.P.convert(bt["top-right"]||[0,0]),bottom:t.P.convert(bt.bottom||[0,0]),"bottom-left":t.P.convert(bt["bottom-left"]||[0,0]),"bottom-right":t.P.convert(bt["bottom-right"]||[0,0]),left:t.P.convert(bt.left||[0,0]),right:t.P.convert(bt.right||[0,0])};else return $s(new t.P(0,0))}let jl=E.version;function co(bt,I){return sr().setRTLTextPlugin(bt,I)}function $n(){return sr().getRTLTextPluginStatus()}function Ku(){return jl}function Js(){return Ht.workerCount}function Ul(bt){Ht.workerCount=bt}function $l(){return t.a.MAX_PARALLEL_IMAGE_REQUESTS}function Vo(bt){t.a.MAX_PARALLEL_IMAGE_REQUESTS=bt}function Lc(){return t.a.WORKER_URL}function Xc(bt){t.a.WORKER_URL=bt}function Vl(bt){return Xt().broadcast("IS",bt)}A.AJAXError=t.bg,A.Evented=t.E,A.LngLat=t.N,A.MercatorCoordinate=t.Z,A.Point=t.P,A.addProtocol=t.bh,A.config=t.a,A.removeProtocol=t.bi,A.AttributionControl=Yr,A.BoxZoomHandler=Ju,A.CanvasSource=It,A.CooperativeGesturesHandler=ce,A.DoubleClickZoomHandler=So,A.DragPanHandler=zt,A.DragRotateHandler=Jt,A.EdgeInsets=cs,A.FullscreenControl=Ro,A.GeoJSONSource=Bt,A.GeolocateControl=Eo,A.Hash=Ls,A.ImageSource=$t,A.KeyboardHandler=kn,A.LngLatBounds=nr,A.LogoControl=Qr,A.Map=Za,A.MapMouseEvent=es,A.MapTouchEvent=Xs,A.MapWheelEvent=fu,A.Marker=Mn,A.NavigationControl=rn,A.Popup=hs,A.RasterDEMTileSource=ee,A.RasterTileSource=te,A.ScaleControl=an,A.ScrollZoomHandler=yo,A.Style=na,A.TerrainControl=dl,A.TwoFingersTouchPitchHandler=Ra,A.TwoFingersTouchRotateHandler=Sa,A.TwoFingersTouchZoomHandler=Ki,A.TwoFingersTouchZoomRotateHandler=se,A.VectorTileSource=Qt,A.VideoSource=_t,A.addSourceType=Me,A.clearPrewarmedResources=qt,A.getMaxParallelImageRequests=$l,A.getRTLTextPluginStatus=$n,A.getVersion=Ku,A.getWorkerCount=Js,A.getWorkerUrl=Lc,A.importScriptInWorkers=Vl,A.prewarm=At,A.setMaxParallelImageRequests=Vo,A.setRTLTextPlugin=co,A.setWorkerCount=Ul,A.setWorkerUrl=Xc})),G}))}),88640:(function(tt,G,e){e.d(G,{GW:function(){return Kt},Dj:function(){return ot}});function S(Gt,Et,At){Gt.prototype=Et.prototype=At,At.constructor=Gt}function A(Gt,Et){var At=Object.create(Gt.prototype);for(var qt in Et)At[qt]=Et[qt];return At}function t(){}var E=.7,w=1/E,p="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",r=/^#([0-9a-f]{3,8})$/,o=RegExp(`^rgb\\(${p},${p},${p}\\)$`),a=RegExp(`^rgb\\(${i},${i},${i}\\)$`),s=RegExp(`^rgba\\(${p},${p},${p},${c}\\)$`),n=RegExp(`^rgba\\(${i},${i},${i},${c}\\)$`),m=RegExp(`^hsl\\(${c},${i},${i}\\)$`),x=RegExp(`^hsla\\(${c},${i},${i},${c}\\)$`),f={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};S(t,b,{copy:function(Gt){return Object.assign(new this.constructor,this,Gt)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:l,formatHsl:h,formatRgb:d,toString:d});function v(){return this.rgb().formatHex()}function l(){return this.rgb().formatHex8()}function h(){return U(this).formatHsl()}function d(){return this.rgb().formatRgb()}function b(Gt){var Et,At;return Gt=(Gt+"").trim().toLowerCase(),(Et=r.exec(Gt))?(At=Et[1].length,Et=parseInt(Et[1],16),At===6?M(Et):At===3?new u(Et>>8&15|Et>>4&240,Et>>4&15|Et&240,(Et&15)<<4|Et&15,1):At===8?g(Et>>24&255,Et>>16&255,Et>>8&255,(Et&255)/255):At===4?g(Et>>12&15|Et>>8&240,Et>>8&15|Et>>4&240,Et>>4&15|Et&240,((Et&15)<<4|Et&15)/255):null):(Et=o.exec(Gt))?new u(Et[1],Et[2],Et[3],1):(Et=a.exec(Gt))?new u(Et[1]*255/100,Et[2]*255/100,Et[3]*255/100,1):(Et=s.exec(Gt))?g(Et[1],Et[2],Et[3],Et[4]):(Et=n.exec(Gt))?g(Et[1]*255/100,Et[2]*255/100,Et[3]*255/100,Et[4]):(Et=m.exec(Gt))?B(Et[1],Et[2]/100,Et[3]/100,1):(Et=x.exec(Gt))?B(Et[1],Et[2]/100,Et[3]/100,Et[4]):f.hasOwnProperty(Gt)?M(f[Gt]):Gt==="transparent"?new u(NaN,NaN,NaN,0):null}function M(Gt){return new u(Gt>>16&255,Gt>>8&255,Gt&255,1)}function g(Gt,Et,At,qt){return qt<=0&&(Gt=Et=At=NaN),new u(Gt,Et,At,qt)}function k(Gt){return Gt instanceof t||(Gt=b(Gt)),Gt?(Gt=Gt.rgb(),new u(Gt.r,Gt.g,Gt.b,Gt.opacity)):new u}function L(Gt,Et,At,qt){return arguments.length===1?k(Gt):new u(Gt,Et,At,qt??1)}function u(Gt,Et,At,qt){this.r=+Gt,this.g=+Et,this.b=+At,this.opacity=+qt}S(u,L,A(t,{brighter:function(Gt){return Gt=Gt==null?w:w**+Gt,new u(this.r*Gt,this.g*Gt,this.b*Gt,this.opacity)},darker:function(Gt){return Gt=Gt==null?E:E**+Gt,new u(this.r*Gt,this.g*Gt,this.b*Gt,this.opacity)},rgb:function(){return this},clamp:function(){return new u(O(this.r),O(this.g),O(this.b),F(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatHex8:C,formatRgb:_,toString:_}));function T(){return`#${j(this.r)}${j(this.g)}${j(this.b)}`}function C(){return`#${j(this.r)}${j(this.g)}${j(this.b)}${j((isNaN(this.opacity)?1:this.opacity)*255)}`}function _(){var Gt=F(this.opacity);return`${Gt===1?"rgb(":"rgba("}${O(this.r)}, ${O(this.g)}, ${O(this.b)}${Gt===1?")":`, ${Gt})`}`}function F(Gt){return isNaN(Gt)?1:Math.max(0,Math.min(1,Gt))}function O(Gt){return Math.max(0,Math.min(255,Math.round(Gt)||0))}function j(Gt){return Gt=O(Gt),(Gt<16?"0":"")+Gt.toString(16)}function B(Gt,Et,At,qt){return qt<=0?Gt=Et=At=NaN:At<=0||At>=1?Gt=Et=NaN:Et<=0&&(Gt=NaN),new N(Gt,Et,At,qt)}function U(Gt){if(Gt instanceof N)return new N(Gt.h,Gt.s,Gt.l,Gt.opacity);if(Gt instanceof t||(Gt=b(Gt)),!Gt)return new N;if(Gt instanceof N)return Gt;Gt=Gt.rgb();var Et=Gt.r/255,At=Gt.g/255,qt=Gt.b/255,jt=Math.min(Et,At,qt),de=Math.max(Et,At,qt),Xt=NaN,ye=de-jt,Le=(de+jt)/2;return ye?(Xt=Et===de?(At-qt)/ye+(At0&&Le<1?0:Xt,new N(Xt,ye,Le,Gt.opacity)}function P(Gt,Et,At,qt){return arguments.length===1?U(Gt):new N(Gt,Et,At,qt??1)}function N(Gt,Et,At,qt){this.h=+Gt,this.s=+Et,this.l=+At,this.opacity=+qt}S(N,P,A(t,{brighter:function(Gt){return Gt=Gt==null?w:w**+Gt,new N(this.h,this.s,this.l*Gt,this.opacity)},darker:function(Gt){return Gt=Gt==null?E:E**+Gt,new N(this.h,this.s,this.l*Gt,this.opacity)},rgb:function(){var Gt=this.h%360+(this.h<0)*360,Et=isNaN(Gt)||isNaN(this.s)?0:this.s,At=this.l,qt=At+(At<.5?At:1-At)*Et,jt=2*At-qt;return new u(K(Gt>=240?Gt-240:Gt+120,jt,qt),K(Gt,jt,qt),K(Gt<120?Gt+240:Gt-120,jt,qt),this.opacity)},clamp:function(){return new N(V(this.h),Y(this.s),Y(this.l),F(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var Gt=F(this.opacity);return`${Gt===1?"hsl(":"hsla("}${V(this.h)}, ${Y(this.s)*100}%, ${Y(this.l)*100}%${Gt===1?")":`, ${Gt})`}`}}));function V(Gt){return Gt=(Gt||0)%360,Gt<0?Gt+360:Gt}function Y(Gt){return Math.max(0,Math.min(1,Gt||0))}function K(Gt,Et,At){return(Gt<60?Et+(At-Et)*Gt/60:Gt<180?At:Gt<240?Et+(At-Et)*(240-Gt)/60:Et)*255}var nt=(function(Gt){return function(){return Gt}});function ft(Gt,Et){return function(At){return Gt+At*Et}}function ct(Gt,Et,At){return Gt**=+At,Et=Et**+At-Gt,At=1/At,function(qt){return(Gt+qt*Et)**+At}}function J(Gt){return(Gt=+Gt)==1?et:function(Et,At){return At-Et?ct(Et,At,Gt):nt(isNaN(Et)?At:Et)}}function et(Gt,Et){var At=Et-Gt;return At?ft(Gt,At):nt(isNaN(Gt)?Et:Gt)}var Q=(function Gt(Et){var At=J(Et);function qt(jt,de){var Xt=At((jt=L(jt)).r,(de=L(de)).r),ye=At(jt.g,de.g),Le=At(jt.b,de.b),ve=et(jt.opacity,de.opacity);return function(ke){return jt.r=Xt(ke),jt.g=ye(ke),jt.b=Le(ke),jt.opacity=ve(ke),jt+""}}return qt.gamma=Gt,qt})(1);function Z(Gt,Et){var At=Et?Et.length:0,qt=Gt?Math.min(At,Gt.length):0,jt=Array(qt),de=Array(At),Xt;for(Xt=0;XtAt&&(de=Et.slice(At,de),ye[Xt]?ye[Xt]+=de:ye[++Xt]=de),(qt=qt[0])===(jt=jt[0])?ye[Xt]?ye[Xt]+=jt:ye[++Xt]=jt:(ye[++Xt]=null,Le.push({i:Xt,x:ot(qt,jt)})),At=lt.lastIndex;return AtESRI"},"ortoInstaMaps":{"type":"raster","tiles":["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],"tileSize":256,"maxzoom":13},"ortoICGC":{"type":"raster","tiles":["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],"tileSize":256,"minzoom":13.1,"maxzoom":20},"openmaptiles":{"type":"vector","url":"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},"sprite":"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1","glyphs":"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":"#F4F9F4"}},{"id":"ortoEsri","type":"raster","source":"ortoEsri","maxzoom":16,"layout":{"visibility":"visible"}},{"id":"ortoICGC","type":"raster","source":"ortoICGC","minzoom":13.1,"maxzoom":19,"layout":{"visibility":"visible"}},{"id":"ortoInstaMaps","type":"raster","source":"ortoInstaMaps","maxzoom":13,"layout":{"visibility":"visible"}},{"id":"waterway_tunnel","type":"line","source":"openmaptiles","source-layer":"waterway","minzoom":14,"filter":["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],"layout":{"line-cap":"round"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]},"line-dasharray":[2,4]}},{"id":"waterway-other","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["!in","class","canal","river","stream"],"layout":{"line-cap":"round"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,2]]}}},{"id":"waterway-stream-canal","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],"layout":{"line-cap":"round"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.3,"stops":[[13,0.5],[20,6]]}}},{"id":"waterway-river","type":"line","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"waterway","filter":["all",["==","class","river"],["!=","brunnel","tunnel"]],"layout":{"line-cap":"round"},"paint":{"line-color":"#a0c8f0","line-width":{"base":1.2,"stops":[[10,0.8],[20,4]]},"line-opacity":0.5}},{"id":"water-offset","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","maxzoom":8,"filter":["==","$type","Polygon"],"layout":{"visibility":"visible"},"paint":{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{"base":1,"stops":[[6,[2,0]],[8,[0,0]]]}}},{"id":"water","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","layout":{"visibility":"visible"},"paint":{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{"id":"water-pattern","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"water","layout":{"visibility":"visible"},"paint":{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{"id":"landcover-ice-shelf","type":"fill","metadata":{"mapbox:group":"1444849382550.77"},"source":"openmaptiles","source-layer":"landcover","filter":["==","subclass","ice_shelf"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-opacity":{"base":1,"stops":[[0,0.9],[10,0.3]]}}},{"id":"tunnel-service-track-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round"},"paint":{"line-color":"#cfcdca","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[15,1],[16,4],[20,11]]}}},{"id":"tunnel-minor-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor"]],"layout":{"line-join":"round"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,1]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"tunnel-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"tunnel-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]},"line-opacity":0.7}},{"id":"tunnel-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-dasharray":[0.5,0.25],"line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]},"line-opacity":0.5}},{"id":"tunnel-path","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"tunnel-service-track","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","service","track"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-width":{"base":1.2,"stops":[[15.5,0],[16,2],[20,7.5]]}}},{"id":"tunnel-minor","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","minor_road"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"tunnel-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,10]]}}},{"id":"tunnel-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fff4c6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]},"line-opacity":0.5}},{"id":"tunnel-motorway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","motorway"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"#ffdaa6","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]},"line-opacity":0.5}},{"id":"tunnel-railway","type":"line","metadata":{"mapbox:group":"1444849354174.1904"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]},"line-dasharray":[2,2]}},{"id":"ferry","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["in","class","ferry"]],"layout":{"line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{"id":"aeroway-taxiway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","taxiway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-width":{"base":1.5,"stops":[[11,2],[17,12]]},"line-opacity":1}},{"id":"aeroway-runway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","runway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(153, 153, 153, 1)","line-width":{"base":1.5,"stops":[[11,5],[17,55]]},"line-opacity":1}},{"id":"aeroway-taxiway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","taxiway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-width":{"base":1.5,"stops":[[11,1],[17,10]]},"line-opacity":{"base":1,"stops":[[11,0],[12,1]]}}},{"id":"aeroway-runway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","runway"],["==","$type","LineString"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"rgba(255, 255, 255, 1)","line-width":{"base":1.5,"stops":[[11,4],[17,50]]},"line-opacity":{"base":1,"stops":[[11,0],[12,1]]}}},{"id":"highway-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-link-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"highway-minor-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#cfcdca","line-opacity":{"stops":[[12,0],[12.5,0]]},"line-width":{"base":1.2,"stops":[[12,0.5],[13,1],[14,4],[20,15]]}}},{"id":"highway-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":0.5,"line-width":{"base":1.2,"stops":[[8,1.5],[20,17]]}}},{"id":"highway-primary-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[7,0],[8,0.6]]},"line-width":{"base":1.2,"stops":[[7,0],[8,0.6],[9,1.5],[20,22]]}}},{"id":"highway-trunk-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-opacity":{"stops":[[5,0],[6,0.5]]},"line-width":{"base":1.2,"stops":[[5,0],[6,0.6],[7,1.5],[20,22]]}}},{"id":"highway-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":4,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],"layout":{"line-cap":"butt","line-join":"round","visibility":"visible"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[4,0],[5,0.4],[6,0.6],[7,1.5],[20,22]]},"line-opacity":{"stops":[[4,0],[5,0.5]]}}},{"id":"highway-path","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],"paint":{"line-color":"#cba","line-dasharray":[1.5,0.75],"line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]}}},{"id":"highway-motorway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-link","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"highway-minor","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#fff","line-opacity":0.5,"line-width":{"base":1.2,"stops":[[13.5,0],[14,2.5],[20,11.5]]}}},{"id":"highway-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[8,0.5],[20,13]]},"line-opacity":0.5}},{"id":"highway-primary","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[8.5,0],[9,0.5],[20,18]]},"line-opacity":0}},{"id":"highway-trunk","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]},"line-opacity":0.5}},{"id":"highway-motorway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","minzoom":5,"filter":["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]},"line-opacity":0.5}},{"id":"railway-transit","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-transit-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway-service","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"paint":{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{"base":1.4,"stops":[[14,0.4],[20,1]]}}},{"id":"railway-service-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],"layout":{"visibility":"visible"},"paint":{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,2],[20,6]]}}},{"id":"railway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"railway-hatching","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"bridge-motorway-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-link-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[12,1],[13,3],[14,4],[20,15]]}}},{"id":"bridge-secondary-tertiary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-opacity":1,"line-width":{"base":1.2,"stops":[[8,1.5],[20,28]]}}},{"id":"bridge-trunk-primary-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"hsl(28, 76%, 67%)","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,26]]}}},{"id":"bridge-motorway-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#e9ac77","line-width":{"base":1.2,"stops":[[5,0.4],[6,0.6],[7,1.5],[20,22]]},"line-opacity":0.5}},{"id":"bridge-path-casing","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#f8f4f0","line-width":{"base":1.2,"stops":[[15,1.2],[20,18]]}}},{"id":"bridge-path","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],"paint":{"line-color":"#cba","line-width":{"base":1.2,"stops":[[15,1.2],[20,4]]},"line-dasharray":[1.5,0.75]}},{"id":"bridge-motorway-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-link","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{"id":"bridge-secondary-tertiary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,20]]}}},{"id":"bridge-trunk-primary","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fea","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]}}},{"id":"bridge-motorway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","motorway"]],"layout":{"line-join":"round"},"paint":{"line-color":"#fc8","line-width":{"base":1.2,"stops":[[6.5,0],[7,0.5],[20,18]]},"line-opacity":0.5}},{"id":"bridge-railway","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-width":{"base":1.4,"stops":[[14,0.4],[15,0.75],[20,2]]}}},{"id":"bridge-railway-hatching","type":"line","metadata":{"mapbox:group":"1444849334699.1902"},"source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["==","class","rail"]],"paint":{"line-color":"#bbb","line-dasharray":[0.2,8],"line-width":{"base":1.4,"stops":[[14.5,0],[15,3],[20,8]]}}},{"id":"cablecar","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"visibility":"visible","line-cap":"round"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-width":{"base":1,"stops":[[11,1],[19,2.5]]}}},{"id":"cablecar-dash","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["==","class","cable_car"],"layout":{"visibility":"visible","line-cap":"round"},"paint":{"line-color":"hsl(0, 0%, 70%)","line-width":{"base":1,"stops":[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{"id":"boundary-land-level-4","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],"layout":{"line-join":"round"},"paint":{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{"base":1.4,"stops":[[4,0.4],[5,1],[12,3]]},"line-opacity":0.6}},{"id":"boundary-land-level-2","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsl(248, 7%, 66%)","line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,2]]}}},{"id":"boundary-land-disputed","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["!=","maritime",1],["==","disputed",1]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{"base":1,"stops":[[0,0.6],[4,1.4],[5,2],[12,8]]}}},{"id":"boundary-water","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["in","admin_level",2,4],["==","maritime",1]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"rgba(154, 189, 214, 1)","line-width":{"base":1,"stops":[[0,0.6],[4,1],[5,1],[12,1]]},"line-opacity":{"stops":[[6,0],[10,0]]}}},{"id":"waterway-name","type":"symbol","source":"openmaptiles","source-layer":"waterway","minzoom":13,"filter":["all",["==","$type","LineString"],["has","name"]],"layout":{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":0.2,"symbol-spacing":350},"paint":{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{"id":"water-name-lakeline","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["==","$type","LineString"],"layout":{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}\\n{name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":0.2},"paint":{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{"id":"water-name-ocean","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["==","class","ocean"]],"layout":{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":0.2},"paint":{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{"id":"water-name-other","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==","$type","Point"],["!in","class","ocean"]],"layout":{"text-font":["Noto Sans Italic"],"text-size":{"stops":[[0,10],[6,14]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":0.2,"visibility":"visible"},"paint":{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{"id":"poi-level-3","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":16,"filter":["all",["==","$type","Point"],[">=","rank",25]],"layout":{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\\n{name:nonlatin}","text-offset":[0,0.6],"text-size":12,"text-max-width":9},"paint":{"text-halo-blur":0.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{"id":"poi-level-2","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":15,"filter":["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],"layout":{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\\n{name:nonlatin}","text-offset":[0,0.6],"text-size":12,"text-max-width":9},"paint":{"text-halo-blur":0.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{"id":"poi-level-1","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":14,"filter":["all",["==","$type","Point"],["<=","rank",14],["has","name"]],"layout":{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\\n{name:nonlatin}","text-offset":[0,0.6],"text-size":11,"text-max-width":9},"paint":{"text-halo-blur":0.5,"text-color":"rgba(191, 228, 172, 1)","text-halo-width":1,"text-halo-color":"rgba(30, 29, 29, 1)"}},{"id":"poi-railway","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":13,"filter":["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],"layout":{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":"{name:latin}\\n{name:nonlatin}","text-offset":[0,0.6],"text-size":12,"text-max-width":9,"icon-optional":false,"icon-ignore-placement":false,"icon-allow-overlap":false,"text-ignore-placement":false,"text-allow-overlap":false,"text-optional":true},"paint":{"text-halo-blur":0.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{"id":"road_oneway","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":90,"icon-size":{"stops":[[15,0.5],[19,1]]}},"paint":{"icon-opacity":0.5}},{"id":"road_oneway_opposite","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":15,"filter":["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],"layout":{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":-90,"icon-size":{"stops":[[15,0.5],[19,1]]}},"paint":{"icon-opacity":0.5}},{"id":"highway-name-path","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15.5,"filter":["==","class","path"],"layout":{"text-size":{"base":1,"stops":[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},"paint":{"text-halo-color":"#f8f4f0","text-color":"hsl(30, 23%, 62%)","text-halo-width":0.5}},{"id":"highway-name-minor","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":15,"filter":["all",["==","$type","LineString"],["in","class","minor","service","track"]],"layout":{"text-size":{"base":1,"stops":[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},"paint":{"text-halo-blur":0.5,"text-color":"#765","text-halo-width":1}},{"id":"highway-name-major","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":12.2,"filter":["in","class","primary","secondary","tertiary","trunk"],"layout":{"text-size":{"base":1,"stops":[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},"paint":{"text-halo-blur":0.5,"text-color":"#765","text-halo-width":1}},{"id":"highway-shield","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":8,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],"layout":{"text-size":10,"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},"paint":{"text-opacity":1,"text-color":"rgba(20, 19, 19, 1)","text-halo-color":"rgba(230, 221, 221, 0)","text-halo-width":2,"icon-color":"rgba(183, 18, 18, 1)","icon-opacity":0.3,"icon-halo-color":"rgba(183, 55, 55, 0)"}},{"id":"highway-shield-us-interstate","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":7,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],"layout":{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{"base":1,"stops":[[7,"point"],[7,"line"],[8,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"highway-shield-us-other","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":9,"filter":["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],"layout":{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{"base":1,"stops":[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},"paint":{"text-color":"rgba(0, 0, 0, 1)"}},{"id":"place-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","minzoom":12,"filter":["!in","class","city","town","village","country","continent"],"layout":{"text-letter-spacing":0.1,"text-size":{"base":1.2,"stops":[[12,10],[15,14]]},"text-font":["Noto Sans Bold"],"text-field":"{name:latin}\\n{name:nonlatin}","text-transform":"uppercase","text-max-width":9,"visibility":"visible"},"paint":{"text-color":"rgba(255,255,255,1)","text-halo-width":1.2,"text-halo-color":"rgba(57, 28, 28, 1)"}},{"id":"place-village","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","minzoom":10,"filter":["==","class","village"],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"base":1.2,"stops":[[10,12],[15,16]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-max-width":8,"visibility":"visible"},"paint":{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{"id":"place-town","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["==","class","town"],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"base":1.2,"stops":[[10,14],[15,24]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-max-width":8,"visibility":"visible"},"paint":{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{"id":"place-city","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["!=","capital",2],["==","class","city"]],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-max-width":8,"visibility":"visible"},"paint":{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{"id":"place-city-capital","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","capital",2],["==","class","city"]],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"base":1.2,"stops":[[7,14],[11,24]]},"text-field":"{name:latin}\\n{name:nonlatin}","text-max-width":8,"icon-image":"star_11","text-offset":[0.4,0],"icon-size":0.8,"text-anchor":"left","visibility":"visible"},"paint":{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{"id":"place-country-other","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],"layout":{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,"visibility":"visible"},"paint":{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{"id":"place-country-3","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],"layout":{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{"stops":[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,"visibility":"visible"},"paint":{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{"id":"place-country-2","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],"layout":{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{"stops":[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,"visibility":"visible"},"paint":{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{"id":"place-country-1","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","filter":["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],"layout":{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{"stops":[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,"visibility":"visible"},"paint":{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{"id":"place-continent","type":"symbol","metadata":{"mapbox:group":"1444849242106.713"},"source":"openmaptiles","source-layer":"place","maxzoom":1,"filter":["==","class","continent"],"layout":{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase","visibility":"visible"},"paint":{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],"id":"qebnlkra6"}`)}),51962:(function(tt){tt.exports=JSON.parse(`{"version":8,"name":"orto","metadata":{},"center":[1.537786,41.837539],"zoom":12,"bearing":0,"pitch":0,"light":{"anchor":"viewport","color":"white","intensity":0.4,"position":[1.15,45,30]},"sources":{"ortoEsri":{"type":"raster","tiles":["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],"tileSize":256,"maxzoom":18,"attribution":"ESRI © ESRI"},"ortoInstaMaps":{"type":"raster","tiles":["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],"tileSize":256,"maxzoom":13},"ortoICGC":{"type":"raster","tiles":["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],"tileSize":256,"minzoom":13.1,"maxzoom":20},"openmaptiles":{"type":"vector","url":"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},"sprite":"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1","glyphs":"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":"#F4F9F4"}},{"id":"ortoEsri","type":"raster","source":"ortoEsri","maxzoom":16,"layout":{"visibility":"visible"}},{"id":"ortoICGC","type":"raster","source":"ortoICGC","minzoom":13.1,"maxzoom":19,"layout":{"visibility":"visible"}},{"id":"ortoInstaMaps","type":"raster","source":"ortoInstaMaps","maxzoom":13,"layout":{"visibility":"visible"}}]}`)})},ms={};function Al(tt){var G=ms[tt];if(G!==void 0)return G.exports;var e=ms[tt]={id:tt,exports:{}};return Yh[tt].call(e.exports,e,e.exports,Al),e.exports}return Al.m=Yh,(function(){Al.n=function(tt){var G=tt&&tt.__esModule?function(){return tt.default}:function(){return tt};return Al.d(G,{a:G}),G}})(),(function(){Al.d=function(tt,G){for(var e in G)Al.o(G,e)&&!Al.o(tt,e)&&Object.defineProperty(tt,e,{enumerable:!0,get:G[e]})}})(),(function(){Al.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){Al.o=function(tt,G){return Object.prototype.hasOwnProperty.call(tt,G)}})(),(function(){Al.r=function(tt){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(tt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(tt,"__esModule",{value:!0})}})(),(function(){Al.b=document.baseURI||self.location.href})(),(function(){Al.nc=void 0})(),Al(20260)})()})})),pg=Qm((Dh=>{Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.default=void 0;var Wh=ms(hg()),Yh=ms(fg());function ms(Al){return Al&&Al.__esModule?Al:{default:Al}}Dh.default=(0,Wh.default)(Yh.default)})),yg=pg();export{yg as default}; diff --git a/docs/assets/react-resizable-panels.browser.esm-B7ZqbY8M.js b/docs/assets/react-resizable-panels.browser.esm-B7ZqbY8M.js new file mode 100644 index 0000000..53062f4 --- /dev/null +++ b/docs/assets/react-resizable-panels.browser.esm-B7ZqbY8M.js @@ -0,0 +1 @@ +import{s as ht}from"./chunk-LvLJmgfZ.js";import{t as zt}from"./react-BGmjiNul.js";var d=ht(zt()),ze=(0,d.createContext)(null);ze.displayName="PanelGroupContext";var A={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ae=10,te=d.useLayoutEffect,Oe=d.useId,bt=typeof Oe=="function"?Oe:()=>null,vt=0;function ke(e=null){let t=bt(),n=(0,d.useRef)(e||t||null);return n.current===null&&(n.current=""+vt++),e??n.current}function Te({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:l,forwardedRef:a,id:i,maxSize:u,minSize:o,onCollapse:z,onExpand:g,onResize:f,order:c,style:b,tagName:w="div",...C}){let S=(0,d.useContext)(ze);if(S===null)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:k,expandPanel:D,getPanelSize:N,getPanelStyle:G,groupId:q,isPanelCollapsed:P,reevaluatePanelConstraints:x,registerPanel:F,resizePanel:U,unregisterPanel:W}=S,T=ke(i),L=(0,d.useRef)({callbacks:{onCollapse:z,onExpand:g,onResize:f},constraints:{collapsedSize:n,collapsible:r,defaultSize:l,maxSize:u,minSize:o},id:T,idIsFromProps:i!==void 0,order:c});(0,d.useRef)({didLogMissingDefaultSizeWarning:!1}),te(()=>{let{callbacks:$,constraints:H}=L.current,B={...H};L.current.id=T,L.current.idIsFromProps=i!==void 0,L.current.order=c,$.onCollapse=z,$.onExpand=g,$.onResize=f,H.collapsedSize=n,H.collapsible=r,H.defaultSize=l,H.maxSize=u,H.minSize=o,(B.collapsedSize!==H.collapsedSize||B.collapsible!==H.collapsible||B.maxSize!==H.maxSize||B.minSize!==H.minSize)&&x(L.current,B)}),te(()=>{let $=L.current;return F($),()=>{W($)}},[c,T,F,W]),(0,d.useImperativeHandle)(a,()=>({collapse:()=>{k(L.current)},expand:$=>{D(L.current,$)},getId(){return T},getSize(){return N(L.current)},isCollapsed(){return P(L.current)},isExpanded(){return!P(L.current)},resize:$=>{U(L.current,$)}}),[k,D,N,P,T,U]);let J=G(L.current,l);return(0,d.createElement)(w,{...C,children:e,className:t,id:T,style:{...J,...b},[A.groupId]:q,[A.panel]:"",[A.panelCollapsible]:r||void 0,[A.panelId]:T,[A.panelSize]:parseFloat(""+J.flexGrow).toFixed(1)})}var je=(0,d.forwardRef)((e,t)=>(0,d.createElement)(Te,{...e,forwardedRef:t}));Te.displayName="Panel",je.displayName="forwardRef(Panel)";var xt;function St(){return xt}var De=null,wt=!0,be=-1,X=null;function It(e,t){if(t){let n=(t&Ye)!==0,r=(t&_e)!==0,l=(t&Qe)!==0,a=(t&Ze)!==0;if(n)return l?"se-resize":a?"ne-resize":"e-resize";if(r)return l?"sw-resize":a?"nw-resize":"w-resize";if(l)return"s-resize";if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Ct(){X!==null&&(document.head.removeChild(X),De=null,X=null,be=-1)}function Re(e,t){var l;if(!wt)return;let n=It(e,t);if(De!==n){if(De=n,X===null){X=document.createElement("style");let a=St();a&&X.setAttribute("nonce",a),document.head.appendChild(X)}if(be>=0){var r;(r=X.sheet)==null||r.removeRule(be)}be=((l=X.sheet)==null?void 0:l.insertRule(`*{cursor: ${n} !important;}`))??-1}}function Ve(e){return e.type==="keydown"}function Ue(e){return e.type.startsWith("pointer")}function We(e){return e.type.startsWith("mouse")}function ve(e){if(Ue(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(We(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Pt(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Et(e,t,n){return n?e.xt.x&&e.yt.y:e.x<=t.x+t.width&&e.x+e.width>=t.x&&e.y<=t.y+t.height&&e.y+e.height>=t.y}function At(e,t){if(e===t)throw Error("Cannot compare node with itself");let n={a:Ke(e),b:Ke(t)},r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;v(r,"Stacking order can only be calculated for elements with a common ancestor");let l={a:qe(Je(n.a)),b:qe(Je(n.b))};if(l.a===l.b){let a=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)},u=a.length;for(;u--;){let o=a[u];if(o===i.a)return 1;if(o===i.b)return-1}}return Math.sign(l.a-l.b)}var kt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){let t=getComputedStyle(Xe(e)??e).display;return t==="flex"||t==="inline-flex"}function Rt(e){let t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||kt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Je(e){let t=e.length;for(;t--;){let n=e[t];if(v(n,"Missing node"),Rt(n))return n}return null}function qe(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ke(e){let t=[];for(;e;)t.push(e),e=Xe(e);return t}function Xe(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}var Ye=1,_e=2,Qe=4,Ze=8,Lt=Pt()==="coarse",V=[],ie=!1,ne=new Map,xe=new Map,fe=new Set;function Mt(e,t,n,r,l){let{ownerDocument:a}=t,i={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:l},u=ne.get(a)??0;return ne.set(a,u+1),fe.add(i),Se(),function(){xe.delete(e),fe.delete(i);let o=ne.get(a)??1;if(ne.set(a,o-1),Se(),o===1&&ne.delete(a),V.includes(i)){let z=V.indexOf(i);z>=0&&V.splice(z,1),He(),l("up",!0,null)}}}function Nt(e){let{target:t}=e,{x:n,y:r}=ve(e);ie=!0,Ne({target:t,x:n,y:r}),Se(),V.length>0&&(we("down",e),e.preventDefault(),et(t)||e.stopImmediatePropagation())}function Le(e){let{x:t,y:n}=ve(e);if(ie&&e.buttons===0&&(ie=!1,we("up",e)),!ie){let{target:r}=e;Ne({target:r,x:t,y:n})}we("move",e),He(),V.length>0&&e.preventDefault()}function Me(e){let{target:t}=e,{x:n,y:r}=ve(e);xe.clear(),ie=!1,V.length>0&&(e.preventDefault(),et(t)||e.stopImmediatePropagation()),we("up",e),Ne({target:t,x:n,y:r}),He(),Se()}function et(e){let t=e;for(;t;){if(t.hasAttribute(A.resizeHandle))return!0;t=t.parentElement}return!1}function Ne({target:e,x:t,y:n}){V.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),fe.forEach(l=>{let{element:a,hitAreaMargins:i}=l,u=a.getBoundingClientRect(),{bottom:o,left:z,right:g,top:f}=u,c=Lt?i.coarse:i.fine;if(t>=z-c&&t<=g+c&&n>=f-c&&n<=o+c){if(r!==null&&document.contains(r)&&a!==r&&!a.contains(r)&&!r.contains(a)&&At(r,a)>0){let b=r,w=!1;for(;b&&!b.contains(a);){if(Et(b.getBoundingClientRect(),u,!0)){w=!0;break}b=b.parentElement}if(w)return}V.push(l)}})}function $e(e,t){xe.set(e,t)}function He(){let e=!1,t=!1;V.forEach(r=>{let{direction:l}=r;l==="horizontal"?e=!0:t=!0});let n=0;xe.forEach(r=>{n|=r}),e&&t?Re("intersection",n):e?Re("horizontal",n):t?Re("vertical",n):Ct()}var Fe=new AbortController;function Se(){Fe.abort(),Fe=new AbortController;let e={capture:!0,signal:Fe.signal};fe.size&&(ie?(V.length>0&&ne.forEach((t,n)=>{let{body:r}=n;t>0&&(r.addEventListener("contextmenu",Me,e),r.addEventListener("pointerleave",Le,e),r.addEventListener("pointermove",Le,e))}),window.addEventListener("pointerup",Me,e),window.addEventListener("pointercancel",Me,e)):ne.forEach((t,n)=>{let{body:r}=n;t>0&&(r.addEventListener("pointerdown",Nt,e),r.addEventListener("pointermove",Le,e))}))}function we(e,t){fe.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,V.includes(n),t)})}function $t(){let[e,t]=(0,d.useState)(0);return(0,d.useCallback)(()=>t(n=>n+1),[])}function v(e,t){if(!e)throw console.error(t),Error(t)}function re(e,t,n=Ae){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Y(e,t,n=Ae){return re(e,t,n)===0}function O(e,t,n){return re(e,t,n)===0}function Ht(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(e=e<0?0-S:S)}}}{let g=e<0?u:o,f=n[g];v(f,`No panel constraints found for index ${g}`);let{collapsedSize:c=0,collapsible:b,minSize:w=0}=f;if(b){let C=t[g];if(v(C!=null,`Previous layout not found for panel index ${g}`),O(C,w)){let S=C-c;re(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}}{let g=e<0?1:-1,f=e<0?o:u,c=0;for(;;){let w=t[f];v(w!=null,`Previous layout not found for panel index ${f}`);let C=oe({panelConstraints:n,panelIndex:f,size:100})-w;if(c+=C,f+=g,f<0||f>=n.length)break}let b=Math.min(Math.abs(e),Math.abs(c));e=e<0?0-b:b}{let g=e<0?u:o;for(;g>=0&&g=0))break;e<0?g--:g++}}if(Ht(l,i))return l;{let g=e<0?o:u,f=t[g];v(f!=null,`Previous layout not found for panel index ${g}`);let c=f+z,b=oe({panelConstraints:n,panelIndex:g,size:c});if(i[g]=b,!O(b,c)){let w=c-b,C=e<0?o:u;for(;C>=0&&C0?C--:C++}}}return O(i.reduce((g,f)=>f+g,0),100)?i:l}function Ft({layout:e,panelsArray:t,pivotIndices:n}){let r=0,l=100,a=0,i=0,u=n[0];return v(u!=null,"No pivot index found"),t.forEach((o,z)=>{let{constraints:g}=o,{maxSize:f=100,minSize:c=0}=g;z===u?(r=c,l=f):(a+=c,i+=f)}),{valueMax:Math.min(l,100-a),valueMin:Math.max(r,100-i),valueNow:e[u]}}function ge(e,t=document){return Array.from(t.querySelectorAll(`[${A.resizeHandleId}][data-panel-group-id="${e}"]`))}function tt(e,t,n=document){return ge(e,n).findIndex(r=>r.getAttribute(A.resizeHandleId)===t)??null}function nt(e,t,n){let r=tt(e,t,n);return r==null?[-1,-1]:[r,r+1]}function rt(e,t=document){var n;return t instanceof HTMLElement&&((n=t==null?void 0:t.dataset)==null?void 0:n.panelGroupId)==e?t:t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function Ie(e,t=document){return t.querySelector(`[${A.resizeHandleId}="${e}"]`)||null}function Bt(e,t,n,r=document){var u,o;let l=Ie(t,r),a=ge(e,r),i=l?a.indexOf(l):-1;return[((u=n[i])==null?void 0:u.id)??null,((o=n[i+1])==null?void 0:o.id)??null]}function Gt({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:l,panelGroupElement:a,setLayout:i}){(0,d.useRef)({didWarnAboutMissingResizeHandle:!1}),te(()=>{if(!a)return;let u=ge(n,a);for(let o=0;o{u.forEach((o,z)=>{o.removeAttribute("aria-controls"),o.removeAttribute("aria-valuemax"),o.removeAttribute("aria-valuemin"),o.removeAttribute("aria-valuenow")})}},[n,r,l,a]),(0,d.useEffect)(()=>{if(!a)return;let u=t.current;v(u,"Eager values not found");let{panelDataArray:o}=u;v(rt(n,a)!=null,`No group found for id "${n}"`);let z=ge(n,a);v(z,`No resize handles found for group id "${n}"`);let g=z.map(f=>{let c=f.getAttribute(A.resizeHandleId);v(c,"Resize handle element has no handle id attribute");let[b,w]=Bt(n,c,o,a);if(b==null||w==null)return()=>{};let C=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();let k=o.findIndex(D=>D.id===b);if(k>=0){let D=o[k];v(D,`No panel data found for index ${k}`);let N=r[k],{collapsedSize:G=0,collapsible:q,minSize:P=0}=D.constraints;if(N!=null&&q){let x=pe({delta:O(N,G)?P-G:G-N,initialLayout:r,panelConstraints:o.map(F=>F.constraints),pivotIndices:nt(n,c,a),prevLayout:r,trigger:"keyboard"});r!==x&&i(x)}}break}}};return f.addEventListener("keydown",C),()=>{f.removeEventListener("keydown",C)}});return()=>{g.forEach(f=>f())}},[a,e,t,n,r,l,i])}function at(e,t){if(e.length!==t.length)return!1;for(let n=0;na.constraints),r=0,l=100;for(let a=0;a{let a=e[l];v(a,`Panel data not found for index ${l}`);let{callbacks:i,constraints:u,id:o}=a,{collapsedSize:z=0,collapsible:g}=u,f=n[o];if(f==null||r!==f){n[o]=r;let{onCollapse:c,onExpand:b,onResize:w}=i;w&&w(r,f),g&&(c||b)&&(b&&(f==null||Y(f,z))&&!Y(r,z)&&b(),c&&(f==null||!Y(f,z))&&Y(r,z)&&c())}})}function Ce(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function it(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function ot(e){return`react-resizable-panels:${e}`}function ut(e){return e.map(t=>{let{constraints:n,id:r,idIsFromProps:l,order:a}=t;return l?r:a?`${a}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function st(e,t){try{let n=ot(e),r=t.getItem(n);if(r){let l=JSON.parse(r);if(typeof l=="object"&&l)return l}}catch{}return null}function Wt(e,t,n){return(st(e,n)??{})[ut(t)]??null}function Jt(e,t,n,r,l){let a=ot(e),i=ut(t),u=st(e,l)??{};u[i]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{l.setItem(a,JSON.stringify(u))}catch(o){console.error(o)}}function dt({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((a,i)=>a+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!O(r,100)&&n.length>0)for(let a=0;a(it(ye),ye.getItem(e)),setItem:(e,t)=>{it(ye),ye.setItem(e,t)}},ct={};function ft({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:l,id:a=null,onLayout:i=null,keyboardResizeBy:u=null,storage:o=ye,style:z,tagName:g="div",...f}){let c=ke(a),b=(0,d.useRef)(null),[w,C]=(0,d.useState)(null),[S,k]=(0,d.useState)([]),D=$t(),N=(0,d.useRef)({}),G=(0,d.useRef)(new Map),q=(0,d.useRef)(0),P=(0,d.useRef)({autoSaveId:e,direction:r,dragState:w,id:c,keyboardResizeBy:u,onLayout:i,storage:o}),x=(0,d.useRef)({layout:S,panelDataArray:[],panelDataArrayChanged:!1});(0,d.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,d.useImperativeHandle)(l,()=>({getId:()=>P.current.id,getLayout:()=>{let{layout:s}=x.current;return s},setLayout:s=>{let{onLayout:p}=P.current,{layout:y,panelDataArray:m}=x.current,h=dt({layout:s,panelConstraints:m.map(I=>I.constraints)});at(y,h)||(k(h),x.current.layout=h,p&&p(h),ue(m,h,N.current))}}),[]),te(()=>{P.current.autoSaveId=e,P.current.direction=r,P.current.dragState=w,P.current.id=c,P.current.onLayout=i,P.current.storage=o}),Gt({committedValuesRef:P,eagerValuesRef:x,groupId:c,layout:S,panelDataArray:x.current.panelDataArray,setLayout:k,panelGroupElement:b.current}),(0,d.useEffect)(()=>{let{panelDataArray:s}=x.current;if(e){if(S.length===0||S.length!==s.length)return;let p=ct[e];p??(p=Ut(Jt,qt),ct[e]=p);let y=[...s],m=new Map(G.current);p(e,y,m,S,o)}},[e,S,o]),(0,d.useEffect)(()=>{});let F=(0,d.useCallback)(s=>{let{onLayout:p}=P.current,{layout:y,panelDataArray:m}=x.current;if(s.constraints.collapsible){let h=m.map(R=>R.constraints),{collapsedSize:I=0,panelSize:E,pivotIndices:M}=ae(m,s,y);if(v(E!=null,`Panel size not found for panel "${s.id}"`),!Y(E,I)){G.current.set(s.id,E);let R=pe({delta:se(m,s)===m.length-1?E-I:I-E,initialLayout:y,panelConstraints:h,pivotIndices:M,prevLayout:y,trigger:"imperative-api"});Ce(y,R)||(k(R),x.current.layout=R,p&&p(R),ue(m,R,N.current))}}},[]),U=(0,d.useCallback)((s,p)=>{let{onLayout:y}=P.current,{layout:m,panelDataArray:h}=x.current;if(s.constraints.collapsible){let I=h.map(_=>_.constraints),{collapsedSize:E=0,panelSize:M=0,minSize:R=0,pivotIndices:K}=ae(h,s,m),j=p??R;if(Y(M,E)){let _=G.current.get(s.id),he=_!=null&&_>=j?_:j,ee=pe({delta:se(h,s)===h.length-1?M-he:he-M,initialLayout:m,panelConstraints:I,pivotIndices:K,prevLayout:m,trigger:"imperative-api"});Ce(m,ee)||(k(ee),x.current.layout=ee,y&&y(ee),ue(h,ee,N.current))}}},[]),W=(0,d.useCallback)(s=>{let{layout:p,panelDataArray:y}=x.current,{panelSize:m}=ae(y,s,p);return v(m!=null,`Panel size not found for panel "${s.id}"`),m},[]),T=(0,d.useCallback)((s,p)=>{let{panelDataArray:y}=x.current;return Vt({defaultSize:p,dragState:w,layout:S,panelData:y,panelIndex:se(y,s)})},[w,S]),L=(0,d.useCallback)(s=>{let{layout:p,panelDataArray:y}=x.current,{collapsedSize:m=0,collapsible:h,panelSize:I}=ae(y,s,p);return v(I!=null,`Panel size not found for panel "${s.id}"`),h===!0&&Y(I,m)},[]),J=(0,d.useCallback)(s=>{let{layout:p,panelDataArray:y}=x.current,{collapsedSize:m=0,collapsible:h,panelSize:I}=ae(y,s,p);return v(I!=null,`Panel size not found for panel "${s.id}"`),!h||re(I,m)>0},[]),$=(0,d.useCallback)(s=>{let{panelDataArray:p}=x.current;p.push(s),p.sort((y,m)=>{let h=y.order,I=m.order;return h==null&&I==null?0:h==null?-1:I==null?1:h-I}),x.current.panelDataArrayChanged=!0,D()},[D]);te(()=>{if(x.current.panelDataArrayChanged){x.current.panelDataArrayChanged=!1;let{autoSaveId:s,onLayout:p,storage:y}=P.current,{layout:m,panelDataArray:h}=x.current,I=null;if(s){let M=Wt(s,h,y);M&&(G.current=new Map(Object.entries(M.expandToSizes)),I=M.layout)}I??(I=jt({panelDataArray:h}));let E=dt({layout:I,panelConstraints:h.map(M=>M.constraints)});at(m,E)||(k(E),x.current.layout=E,p&&p(E),ue(h,E,N.current))}}),te(()=>{let s=x.current;return()=>{s.layout=[]}},[]);let H=(0,d.useCallback)(s=>{let p=!1,y=b.current;return y&&window.getComputedStyle(y,null).getPropertyValue("direction")==="rtl"&&(p=!0),function(m){m.preventDefault();let h=b.current;if(!h)return()=>null;let{direction:I,dragState:E,id:M,keyboardResizeBy:R,onLayout:K}=P.current,{layout:j,panelDataArray:_}=x.current,{initialLayout:he}=E??{},ee=nt(M,s,h),Q=Tt(m,s,I,E,R,h),Be=I==="horizontal";Be&&p&&(Q=-Q);let yt=_.map(mt=>mt.constraints),ce=pe({delta:Q,initialLayout:he??j,panelConstraints:yt,pivotIndices:ee,prevLayout:j,trigger:Ve(m)?"keyboard":"mouse-or-touch"}),Ge=!Ce(j,ce);(Ue(m)||We(m))&&q.current!=Q&&(q.current=Q,!Ge&&Q!==0?Be?$e(s,Q<0?Ye:_e):$e(s,Q<0?Qe:Ze):$e(s,0)),Ge&&(k(ce),x.current.layout=ce,K&&K(ce),ue(_,ce,N.current))}},[]),B=(0,d.useCallback)((s,p)=>{let{onLayout:y}=P.current,{layout:m,panelDataArray:h}=x.current,I=h.map(K=>K.constraints),{panelSize:E,pivotIndices:M}=ae(h,s,m);v(E!=null,`Panel size not found for panel "${s.id}"`);let R=pe({delta:se(h,s)===h.length-1?E-p:p-E,initialLayout:m,panelConstraints:I,pivotIndices:M,prevLayout:m,trigger:"imperative-api"});Ce(m,R)||(k(R),x.current.layout=R,y&&y(R),ue(h,R,N.current))},[]),de=(0,d.useCallback)((s,p)=>{let{layout:y,panelDataArray:m}=x.current,{collapsedSize:h=0,collapsible:I}=p,{collapsedSize:E=0,collapsible:M,maxSize:R=100,minSize:K=0}=s.constraints,{panelSize:j}=ae(m,s,y);j!=null&&(I&&M&&Y(j,h)?Y(h,E)||B(s,E):jR&&B(s,R))},[B]),me=(0,d.useCallback)((s,p)=>{let{direction:y}=P.current,{layout:m}=x.current;if(!b.current)return;let h=Ie(s,b.current);v(h,`Drag handle element not found for id "${s}"`);let I=lt(y,p);C({dragHandleId:s,dragHandleRect:h.getBoundingClientRect(),initialCursorPosition:I,initialLayout:m})},[]),Z=(0,d.useCallback)(()=>{C(null)},[]),le=(0,d.useCallback)(s=>{let{panelDataArray:p}=x.current,y=se(p,s);y>=0&&(p.splice(y,1),delete N.current[s.id],x.current.panelDataArrayChanged=!0,D())},[D]),Pe=(0,d.useMemo)(()=>({collapsePanel:F,direction:r,dragState:w,expandPanel:U,getPanelSize:W,getPanelStyle:T,groupId:c,isPanelCollapsed:L,isPanelExpanded:J,reevaluatePanelConstraints:de,registerPanel:$,registerResizeHandle:H,resizePanel:B,startDragging:me,stopDragging:Z,unregisterPanel:le,panelGroupElement:b.current}),[F,w,r,U,W,T,c,L,J,de,$,H,B,me,Z,le]),Ee={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return(0,d.createElement)(ze.Provider,{value:Pe},(0,d.createElement)(g,{...f,children:t,className:n,id:a,ref:b,style:{...Ee,...z},[A.group]:"",[A.groupDirection]:r,[A.groupId]:c}))}var pt=(0,d.forwardRef)((e,t)=>(0,d.createElement)(ft,{...e,forwardedRef:t}));ft.displayName="PanelGroup",pt.displayName="forwardRef(PanelGroup)";function se(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function ae(e,t,n){let r=se(e,t),l=r===e.length-1?[r-1,r]:[r,r+1],a=n[r];return{...t.constraints,panelSize:a,pivotIndices:l}}function Kt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){(0,d.useEffect)(()=>{if(e||n==null||r==null)return;let l=Ie(t,r);if(l==null)return;let a=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":i.preventDefault(),n(i);break;case"F6":{i.preventDefault();let u=l.getAttribute(A.groupId);v(u,`No group element found for id "${u}"`);let o=ge(u,r),z=tt(u,t,r);v(z!==null,`No resize element found for id "${t}"`),o[i.shiftKey?z>0?z-1:o.length-1:z+1{l.removeEventListener("keydown",a)}},[r,e,t,n])}function gt({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:l,onBlur:a,onClick:i,onDragging:u,onFocus:o,onPointerDown:z,onPointerUp:g,style:f={},tabIndex:c=0,tagName:b="div",...w}){let C=(0,d.useRef)(null),S=(0,d.useRef)({onClick:i,onDragging:u,onPointerDown:z,onPointerUp:g});(0,d.useEffect)(()=>{S.current.onClick=i,S.current.onDragging=u,S.current.onPointerDown=z,S.current.onPointerUp=g});let k=(0,d.useContext)(ze);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:D,groupId:N,registerResizeHandle:G,startDragging:q,stopDragging:P,panelGroupElement:x}=k,F=ke(l),[U,W]=(0,d.useState)("inactive"),[T,L]=(0,d.useState)(!1),[J,$]=(0,d.useState)(null),H=(0,d.useRef)({state:U});te(()=>{H.current.state=U}),(0,d.useEffect)(()=>{if(n)$(null);else{let Z=G(F);$(()=>Z)}},[n,F,G]);let B=(r==null?void 0:r.coarse)??15,de=(r==null?void 0:r.fine)??5;(0,d.useEffect)(()=>{if(n||J==null)return;let Z=C.current;v(Z,"Element ref not attached");let le=!1;return Mt(F,Z,D,{coarse:B,fine:de},(Pe,Ee,s)=>{if(!Ee){W("inactive");return}switch(Pe){case"down":{W("drag"),le=!1,v(s,'Expected event to be defined for "down" action'),q(F,s);let{onDragging:p,onPointerDown:y}=S.current;p==null||p(!0),y==null||y();break}case"move":{let{state:p}=H.current;le=!0,p!=="drag"&&W("hover"),v(s,'Expected event to be defined for "move" action'),J(s);break}case"up":{W("hover"),P();let{onClick:p,onDragging:y,onPointerUp:m}=S.current;y==null||y(!1),m==null||m(),le||(p==null||p());break}}})},[B,D,n,de,G,F,J,q,P]),Kt({disabled:n,handleId:F,resizeHandler:J,panelGroupElement:x});let me={touchAction:"none",userSelect:"none"};return(0,d.createElement)(b,{...w,children:e,className:t,id:l,onBlur:()=>{L(!1),a==null||a()},onFocus:()=>{L(!0),o==null||o()},ref:C,role:"separator",style:{...me,...f},tabIndex:c,[A.groupDirection]:D,[A.groupId]:N,[A.resizeHandle]:"",[A.resizeHandleActive]:U==="drag"?"pointer":T?"keyboard":void 0,[A.resizeHandleEnabled]:!n,[A.resizeHandleId]:F,[A.resizeHandleState]:U})}gt.displayName="PanelResizeHandle";export{pt as n,gt as r,je as t}; diff --git a/docs/assets/react-vega-CI0fuCLO.js b/docs/assets/react-vega-CI0fuCLO.js new file mode 100644 index 0000000..a9934e2 --- /dev/null +++ b/docs/assets/react-vega-CI0fuCLO.js @@ -0,0 +1,190 @@ +var _4=Object.defineProperty;var f2=e=>{throw TypeError(e)};var D4=(e,t,n)=>t in e?_4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>D4(e,typeof t!="symbol"?t+"":t,n),d2=(e,t,n)=>t.has(e)||f2("Cannot "+n);var h2=(e,t,n)=>(d2(e,t,"read from private field"),n?n.call(e):t.get(e)),p2=(e,t,n)=>t.has(e)?f2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_p=(e,t,n,r)=>(d2(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Ql,Z9,e4;import{r as sn,s as m2}from"./chunk-LvLJmgfZ.js";import{t as F4}from"./react-BGmjiNul.js";import{t as C4}from"./jsx-runtime-DN_bIXfG.js";import{$ as g2,$t as Dp,A as y2,At as lc,B as v2,Bt as sc,C as b2,Ct as Fp,D as x2,Dt as Cp,E as w2,Et as A2,F as $p,Ft as E2,Gt as _r,Ht as k2,I as _2,It as D2,J as No,Jt as Bn,Kt as F2,L as C2,Lt as Oe,M as $2,Mt as S2,N as M2,Nt as O2,O as B2,Ot as z2,P as N2,Pt as R2,Q as uc,Qt as Sp,R as T2,Rt as L2,S as $4,St as ue,T as S4,Tt as Mp,U as Op,Ut as P2,V as K,Vt as I2,Wt as zn,X as Qe,Xt as $i,Y as It,Yt as j2,Z as ie,Zt as q2,_ as M4,_t as Bp,a as cc,at as Dr,b as O4,bt as B4,c as z4,ct as Ro,d as N4,dt as ce,en as zp,et as Np,f as R4,ft as Kl,g as T4,gt as Z,ht as To,i as L4,it as ge,j as U2,jt as Zl,k as Rp,kt as W2,l as G2,lt as ti,m as P4,mt as G,n as I4,nn as Tp,nt as Lp,o as H2,ot as V2,p as j4,pt as Jn,qt as X2,r as q4,rt as T,s as Y2,st as Si,t as U4,tn as fc,tt as jt,u as J2,ut as Q2,v as W4,vt as ka,w as G4,wt as Ee,x as H4,xt as _a,y as V4,yt as me,z as K2,zt as X4}from"./vega-loader.browser-C8wT63Va.js";import{a as Z2,c as es,o as ew,s as tw}from"./precisionRound-Cl9k9ZmS.js";import{a as Pp,c as nw,d as dc,f as Y4,l as J4,n as Lo,o as Mi,p as Q4,r as K4,s as Ip,t as Z4,u as jp}from"./linear-AjjmB_kQ.js";import{n as rw,r as hc,t as e7}from"./ordinal-_nQ2r1qQ.js";import{a as t7,i as n7,n as r7,o as qp,r as i7,s as Da,t as a7}from"./time-DIXLO3Ax.js";import{t as xn}from"./range-gMGfxVwZ.js";import{i as o7,t as l7}from"./defaultLocale-BLUna9fQ.js";import{S as s7,T as u7,_ as c7,b as f7,l as d7,r as h7,s as p7,w as m7}from"./defaultLocale-DzliDDTm.js";import{a as iw,b as g7,d as Up,g as y7,h as v7,i as b7,n as x7,r as w7,t as A7,u as Wp,v as E7,y as pc}from"./timer-CPT_vXom.js";import{n as Gp,r as qt,t as aw}from"./path-DvTahePH.js";import{f as k7,p as _7,u as D7}from"./math-B-ZqhQTL.js";import{t as F7}from"./arc-CWuN1tfc.js";import{t as C7}from"./array-CC7vZNGO.js";import{_ as $7,a as S7,c as M7,d as O7,f as B7,g as z7,h as N7,i as R7,l as T7,m as L7,n as P7,o as I7,p as j7,r as q7,s as U7,t as W7,u as G7,v as ow}from"./step-D7xg1Moj.js";import{n as H7,r as V7,t as lw}from"./line-x4bpd_8D.js";import{n as Fa,t as Oi}from"./init-DsZRk2YA.js";import{t as Fr}from"./colors-BG8Z91CW.js";import{a as Hp,c as sw,d as uw,f as X7,i as Y7,l as J7,n as Q7,o as mc,p as K7,r as Z7,s as eM,t as tM,u as gc}from"./treemap-DeGcO9km.js";function nM(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let l of e)(l=t(l,++o,e))!=null&&(l=+l)>=l&&(r=l-i,i+=r/++n,a+=r*(l-i))}if(n>1)return a/(n-1)}function rM(e,t){let n=nM(e,t);return n&&Math.sqrt(n)}var Ut=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let t=this._partials,n=0;for(let r=0;r0){for(a=e[--t];t>0&&(n=a,r=e[--t],a=n+r,i=r-(a-n),!i););t>0&&(i<0&&e[t-1]<0||i>0&&e[t-1]>0)&&(r=i*2,n=a+r,r==n-a&&(a=n))}return a}};function iM(e,t){return Array.from(t,n=>e[n])}function aM(e=es){if(e===es)return cw;if(typeof e!="function")throw TypeError("compare is not a function");return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function cw(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}function fw(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?cw:aM(i);r>n;){if(r-n>600){let s=r-n+1,u=t-n+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),h=Math.max(n,Math.floor(t-u*f/s+d)),p=Math.min(r,Math.floor(t+(s-u)*f/s+d));fw(e,t,h,p,i)}let a=e[t],o=n,l=r;for(ts(e,n,t),i(e[r],a)>0&&ts(e,n,r);o0;)--l}i(e[n],a)===0?ts(e,n,l):(++l,ts(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function ts(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Vp(e,t,n){if(e=Float64Array.from(Q4(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return qp(e);if(t>=1)return Da(e);var r,i=(r-1)*t,a=Math.floor(i),o=Da(fw(e,a).subarray(0,a+1));return o+(qp(e.subarray(a+1))-o)*(i-a)}}function dw(e,t,n=Y4){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function oM(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function hw(e,t){return Vp(e,.5,t)}function*lM(e){for(let t of e)yield*t}function pw(e){return Array.from(lM(e))}function mw(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function sM(e,...t){e=new hc(e),t=t.map(uM);e:for(let n of e)for(let r of t)if(!r.has(n)){e.delete(n);continue e}return e}function uM(e){return e instanceof hc?e:new hc(e)}function cM(...e){let t=new hc;for(let n of e)for(let r of n)t.add(r);return t}function fM(e,t,n){var r=new A7,i=t;return t==null?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(a,o,l){o=+o,l=l==null?x7():+l,r._restart(function s(u){u+=i,r._restart(s,i+=o,l),a(u)},o,l)},r.restart(e,t,n),r)}var dM=/("(?:[^\\"]|\\.)*")|[:,]/g;function Xp(e,t={}){let n=JSON.stringify([1],void 0,t.indent===void 0?2:t.indent).slice(2,-3),r=n===""?1/0:t.maxLength===void 0?80:t.maxLength,{replacer:i}=t;return(function a(o,l,s){o&&typeof o.toJSON=="function"&&(o=o.toJSON());let u=JSON.stringify(o,i);if(u===void 0)return u;let c=r-l.length-s;if(u.length<=c){let f=u.replace(dM,(d,h)=>h||`${d} `);if(f.length<=c)return f}if(i!=null&&(o=JSON.parse(u),i=void 0),typeof o=="object"&&o){let f=l+n,d=[],h=0,p,m;if(Array.isArray(o)){p="[",m="]";let{length:g}=o;for(;h0)return[p,n+d.join(`, +${f}`),m].join(` +${l}`)}return u})(e,"",0)}function yc(e){let t=e||Jn,n=[],r={};return n.add=i=>{let a=t(i);return r[a]||(r[a]=1,n.push(i)),n},n.remove=i=>{let a=t(i);if(r[a]){r[a]=0;let o=n.indexOf(i);o>=0&&n.splice(o,1)}return n},n}async function vc(e,t){try{await t(e)}catch(n){e.error(n)}}var gw=Symbol("vega_id"),hM=1;function bc(e){return!!(e&&ee(e))}function ee(e){return e[gw]}function yw(e,t){return e[gw]=t,e}function Ce(e){let t=e===Object(e)?e:{data:e};return ee(t)?t:yw(t,hM++)}function Yp(e){return xc(e,Ce({}))}function xc(e,t){for(let n in e)t[n]=e[n];return t}function vw(e,t){return yw(t,ee(e))}function Ca(e,t){return e?t?(n,r)=>e(n,r)||ee(t(n))-ee(t(r)):(n,r)=>e(n,r)||ee(n)-ee(r):null}function bw(e){return e&&e.constructor===$a}function $a(){let e=[],t=[],n=[],r=[],i=[],a=null,o=!1;return{constructor:$a,insert(l){let s=ie(l),u=s.length;for(let c=0;c{p(v)&&(u[ee(v)]=-1)});for(f=0,d=e.length;f0&&(y(m,p,h.value),l.modifies(p));for(f=0,d=i.length;f{p(v)&&u[ee(v)]>0&&y(v,h.field,h.value)}),l.modifies(h.field);if(o)l.mod=t.length||r.length?s.filter(v=>u[ee(v)]>0):s.slice();else for(g in c)l.mod.push(c[g]);return(a||a==null&&(t.length||r.length))&&l.clean(!0),l}}}var wc="_:mod:_";function Ac(){Object.defineProperty(this,wc,{writable:!0,value:{}})}Ac.prototype={set(e,t,n,r){let i=this,a=i[e],o=i[wc];return t!=null&&t>=0?(a[t]!==n||r)&&(a[t]=n,o[t+":"+e]=-1,o[e]=-1):(a!==n||r)&&(i[e]=n,o[e]=Z(n)?1+n.length:-1),i},modified(e,t){let n=this[wc];if(arguments.length){if(Z(e)){for(let r=0;r=0?t+1{h instanceof Pe?(h!==this&&(t&&h.targets().add(this),a.push(h)),i.push({op:h,name:f,index:d})):r.set(f,d,h)};for(o in e)if(l=e[o],o===mM)ie(l).forEach(f=>{f instanceof Pe?f!==this&&(f.targets().add(this),a.push(f)):T("Pulse parameters must be operator instances.")}),this.source=l;else if(Z(l))for(r.set(o,-1,Array(s=l.length)),u=0;u{let n=Date.now();return n-t>e?(t=n,1):0})},debounce(e){let t=Bi();return this.targets().add(Bi(null,null,Lp(e,n=>{let r=n.dataflow;t.receive(n),r&&r.run&&r.run()}))),t},between(e,t){let n=!1;return e.targets().add(Bi(null,null,()=>n=!0)),t.targets().add(Bi(null,null,()=>n=!1)),this.filter(()=>n)},detach(){this._filter=Bn,this._targets=null}};function AM(e,t,n,r){let i=this,a=Bi(n,r),o=function(u){u.dataflow=i;try{a.receive(u)}catch(c){i.error(c)}finally{i.run()}},l;l=typeof e=="string"&&typeof document<"u"?document.querySelectorAll(e):ie(e);let s=l.length;for(let u=0;ut=r);return n.requests=0,n.done=()=>{--n.requests===0&&(e._pending=null,t(e))},e._pending=n}var CM={skip:!0};function $M(e,t,n,r,i){return(e instanceof Pe?MM:SM)(this,e,t,n,r,i),this}function SM(e,t,n,r,i,a){let o=ge({},a,CM),l,s;me(n)||(n=jt(n)),r===void 0?l=u=>e.touch(n(u)):me(r)?(s=new Pe(null,r,i,!1),l=u=>{s.evaluate(u);let c=n(u),f=s.value;bw(f)?e.pulse(c,f,a):e.update(c,f,o)}):l=u=>e.update(n(u),r,o),t.apply(l)}function MM(e,t,n,r,i,a){if(r===void 0)t.targets().add(n);else{let o=a||{},l=new Pe(null,OM(n,r),i,!1);l.modified(o.force),l.rank=t.rank,t.targets().add(l),n&&(l.skip(!0),l.value=n.value,l.targets().add(n),e.connect(n,[l]))}}function OM(e,t){return t=me(t)?t:jt(t),e?function(n,r){let i=t(n,r);return e.skip()||(e.skip(i!==this.value).value=i),i}:t}function BM(e){e.rank=++this._rank}function zM(e){let t=[e],n,r,i;for(;t.length;)if(this.rank(n=t.pop()),r=n._targets)for(i=r.length;--i>=0;)t.push(n=r[i]),n===e&&T("Cycle detected in dataflow graph.")}var kc={},ni=1,zi=2,Ni=4,NM=ni|zi,ww=ni|Ni,Po=zi|5,Aw=8,ns=16,Ew=32,kw=64;function Ri(e,t,n){this.dataflow=e,this.stamp=t??-1,this.add=[],this.rem=[],this.mod=[],this.fields=null,this.encode=n||null}function Jp(e,t){let n=[];return $i(e,t,r=>n.push(r)),n}function _w(e,t){let n={};return e.visit(t,r=>{n[ee(r)]=1}),r=>n[ee(r)]?null:r}function _c(e,t){return e?(n,r)=>e(n,r)&&t(n,r):t}Ri.prototype={StopPropagation:kc,ADD:ni,REM:zi,MOD:Ni,ADD_REM:NM,ADD_MOD:ww,ALL:Po,REFLOW:Aw,SOURCE:ns,NO_SOURCE:Ew,NO_FIELDS:kw,fork(e){return new Ri(this.dataflow).init(this,e)},clone(){let e=this.fork(Po);return e.add=e.add.slice(),e.rem=e.rem.slice(),e.mod=e.mod.slice(),e.source&&(e.source=e.source.slice()),e.materialize(Po|ns)},addAll(){let e=this;return!e.source||e.add===e.rem||!e.rem.length&&e.source.length===e.add.length||(e=new Ri(this.dataflow).init(this),e.add=e.source,e.rem=[]),e},init(e,t){let n=this;return n.stamp=e.stamp,n.encode=e.encode,e.fields&&!(t&kw)&&(n.fields=e.fields),t&ni?(n.addF=e.addF,n.add=e.add):(n.addF=null,n.add=[]),t&zi?(n.remF=e.remF,n.rem=e.rem):(n.remF=null,n.rem=[]),t&Ni?(n.modF=e.modF,n.mod=e.mod):(n.modF=null,n.mod=[]),t&Ew?(n.srcF=null,n.source=null):(n.srcF=e.srcF,n.source=e.source,e.cleans&&(n.cleans=e.cleans)),n},runAfter(e){this.dataflow.runAfter(e)},changed(e){let t=e||Po;return t&ni&&this.add.length||t&zi&&this.rem.length||t&Ni&&this.mod.length},reflow(e){if(e)return this.fork(Po).reflow();let t=this.add.length,n=this.source&&this.source.length;return n&&n!==t&&(this.mod=this.source,t&&this.filter(Ni,_w(this,ni))),this},clean(e){return arguments.length?(this.cleans=!!e,this):this.cleans},modifies(e){let t=this.fields||(this.fields={});return Z(e)?e.forEach(n=>t[n]=!0):t[e]=!0,this},modified(e,t){let n=this.fields;return(t||this.mod.length)&&n?arguments.length?Z(e)?e.some(r=>n[r]):n[e]:!!n:!1},filter(e,t){let n=this;return e&ni&&(n.addF=_c(n.addF,t)),e&zi&&(n.remF=_c(n.remF,t)),e&Ni&&(n.modF=_c(n.modF,t)),e&ns&&(n.srcF=_c(n.srcF,t)),n},materialize(e){e||(e=Po);let t=this;return e&ni&&t.addF&&(t.add=Jp(t.add,t.addF),t.addF=null),e&zi&&t.remF&&(t.rem=Jp(t.rem,t.remF),t.remF=null),e&Ni&&t.modF&&(t.mod=Jp(t.mod,t.modF),t.modF=null),e&ns&&t.srcF&&(t.source=t.source.filter(t.srcF),t.srcF=null),t},visit(e,t){let n=this,r=t;if(e&ns)return $i(n.source,n.srcF,r),n;e&ni&&$i(n.add,n.addF,r),e&zi&&$i(n.rem,n.remF,r),e&Ni&&$i(n.mod,n.modF,r);let i=n.source;if(e&Aw&&i){let a=n.add.length+n.mod.length;a===i.length||(a?$i(i,_w(n,ww),r):$i(i,n.srcF,r))}return n}};function Qp(e,t,n,r){let i=this,a=0;this.dataflow=e,this.stamp=t,this.fields=null,this.encode=r||null,this.pulses=n;for(let o of n)if(o.stamp===t){if(o.fields){let l=i.fields||(i.fields={});for(let s in o.fields)l[s]=1}o.changed(i.ADD)&&(a|=i.ADD),o.changed(i.REM)&&(a|=i.REM),o.changed(i.MOD)&&(a|=i.MOD)}this.changes=a}G(Qp,Ri,{fork(e){let t=new Ri(this.dataflow).init(this,e&this.NO_FIELDS);return e!==void 0&&(e&t.ADD&&this.visit(t.ADD,n=>t.add.push(n)),e&t.REM&&this.visit(t.REM,n=>t.rem.push(n)),e&t.MOD&&this.visit(t.MOD,n=>t.mod.push(n))),t},changed(e){return this.changes&e},modified(e){let t=this,n=t.fields;return n&&t.changes&t.MOD?Z(e)?e.some(r=>n[r]):n[e]:0},filter(){T("MultiPulse does not support filtering.")},materialize(){T("MultiPulse does not support materialization.")},visit(e,t){let n=this,r=n.pulses,i=r.length,a=0;if(e&n.SOURCE)for(;ar._enqueue(c,!0)),r._touched=yc(Kl);let o=0,l,s,u;try{for(;r._heap.size()>0;){if(l=r._heap.pop(),l.rank!==l.qrank){r._enqueue(l,!0);continue}s=l.run(r._getPulse(l,e)),s.then?s=await s:s.async&&(i.push(s.async),s=kc),s!==kc&&l._targets&&l._targets.forEach(c=>r._enqueue(c)),++o}}catch(c){r._heap.clear(),u=c}if(r._input={},r._pulse=null,r.debug(`Pulse ${a}: ${o} operators`),u&&(r._postrun=[],r.error(u)),r._postrun.length){let c=r._postrun.sort((f,d)=>d.priority-f.priority);r._postrun=[];for(let f=0;fr.runAsync(null,()=>{c.forEach(f=>{try{f(r)}catch(d){r.error(d)}})})),r}async function TM(e,t,n){for(;this._running;)await this._running;let r=()=>this._running=null;return(this._running=this.evaluate(e,t,n)).then(r,r),this._running}function LM(e,t,n){return this._pulse?Dw(this):(this.evaluate(e,t,n),this)}function PM(e,t,n){if(this._pulse||t)this._postrun.push({priority:n||0,callback:e});else try{e(this)}catch(r){this.error(r)}}function Dw(e){return e.error("Dataflow already running. Use runAsync() to chain invocations."),e}function IM(e,t){let n=e.stampi.pulse),t):this._input[e.id]||qM(this._pulse,n&&n.pulse)}function qM(e,t){return t&&t.stamp===e.stamp?t:(e=e.fork(),t&&t!==kc&&(e.source=t.source),e)}var Kp={skip:!1,force:!1};function UM(e,t){let n=t||Kp;return this._pulse?this._enqueue(e):this._touched.add(e),n.skip&&e.skip(!0),this}function WM(e,t,n){let r=n||Kp;return(e.set(t)||r.force)&&this.touch(e,r),this}function GM(e,t,n){this.touch(e,n||Kp);let r=new Ri(this,this._clock+(this._pulse?0:1)),i=e.pulse&&e.pulse.source||[];return r.target=e,this._input[e.id]=t.pulse(r,i),this}function HM(e){let t=[];return{clear:()=>t=[],size:()=>t.length,peek:()=>t[0],push:n=>(t.push(n),Fw(t,0,t.length-1,e)),pop:()=>{let n=t.pop(),r;return t.length?(r=t[0],t[0]=n,VM(t,0,e)):r=n,r}}}function Fw(e,t,n,r){let i,a,o=e[n];for(;n>t;){if(a=n-1>>1,i=e[a],r(o,i)<0){e[n]=i,n=a;continue}break}return e[n]=o}function VM(e,t,n){let r=t,i=e.length,a=e[t],o=(t<<1)+1,l;for(;o=0&&(o=l),e[t]=e[o],t=o,o=(t<<1)+1;return e[t]=a,Fw(e,r,t,n)}function Io(){this.logger(Cp()),this.logLevel(1),this._clock=0,this._rank=0,this._locale=G2();try{this._loader=cc()}catch{}this._touched=yc(Kl),this._input={},this._pulse=null,this._heap=HM((e,t)=>e.qrank-t.qrank),this._postrun=[]}function rs(e){return function(){return this._log[e].apply(this,arguments)}}Io.prototype={stamp(){return this._clock},loader(e){return arguments.length?(this._loader=e,this):this._loader},locale(e){return arguments.length?(this._locale=e,this):this._locale},logger(e){return arguments.length?(this._log=e,this):this._log},error:rs("error"),warn:rs("warn"),info:rs("info"),debug:rs("debug"),logLevel:rs("level"),cleanThreshold:1e4,add:bM,connect:xM,rank:BM,rerank:zM,pulse:GM,touch:UM,update:WM,changeset:$a,ingest:kM,parse:EM,preload:DM,request:_M,events:AM,on:$M,evaluate:RM,run:LM,runAsync:TM,runAfter:PM,_enqueue:IM,_getPulse:jM};function O(e,t){Pe.call(this,e,null,t)}G(O,Pe,{run(e){if(e.stampthis.pulse=n):t!==e.StopPropagation&&(this.pulse=t),t},evaluate(e){let t=this.marshall(e.stamp),n=this.transform(t,e);return t.clear(),n},transform(){}});var jo={};function Cw(e){let t=$w(e);return t&&t.Definition||null}function $w(e){return e&&(e=e.toLowerCase()),ce(jo,e)?jo[e]:null}function*Sw(e,t){if(t==null)for(let n of e)n!=null&&n!==""&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)r=t(r,++n,e),r!=null&&r!==""&&(r=+r)>=r&&(yield r)}}function Zp(e,t,n){let r=Float64Array.from(Sw(e,n));return r.sort(es),t.map(i=>dw(r,i))}function em(e,t){return Zp(e,[.25,.5,.75],t)}function tm(e,t){let n=e.length,r=rM(e,t),i=em(e,t),a=(i[2]-i[0])/1.34;return 1.06*(Math.min(r,a)||r||Math.abs(i[0])||1)*n**-.2}function Mw(e){let t=e.maxbins||20,n=e.base||10,r=Math.log(n),i=e.divide||[5,2],a=e.extent[0],o=e.extent[1],l,s,u,c,f,d,h=e.span||o-a||Math.abs(a)||1;if(e.step)l=e.step;else if(e.steps){for(c=h/t,f=0,d=e.steps.length;ft;)l*=n;for(f=0,d=i.length;f=u&&h/c<=t&&(l=c)}c=Math.log(l);let p=n**(-(c>=0?0:~~(-c/r)+1)-1);return(e.nice||e.nice===void 0)&&(c=Math.floor(a/l+p)*l,a=ad));let i=e.length,a=new Float64Array(i),o=0,l=1,s=r(e[0]),u=s,c=s+t,f;for(;l=c){for(u=(s+u)/2;o>1);oi;)e[o--]=e[r]}r=i,i=a}return e}function JM(e){return function(){return e=(1103515245*e+12345)%2147483647,e/2147483647}}function QM(e,t){t??(t=e,e=0);let n,r,i,a={min(o){return arguments.length?(n=o||0,i=r-n,a):n},max(o){return arguments.length?(r=o||0,i=r-n,a):r},sample(){return n+Math.floor(i*Nn())},pdf(o){return o===Math.floor(o)&&o>=n&&o=r?1:(l-n+1)/i},icdf(o){return o>=0&&o<=1?n-1+Math.floor(o*i):NaN}};return a.min(e).max(t)}var zw=Math.sqrt(2*Math.PI),KM=Math.SQRT2,is=NaN;function Dc(e,t){e||(e=0),t??(t=1);let n=0,r=0,i,a;if(is===is)n=is,is=NaN;else{do n=Nn()*2-1,r=Nn()*2-1,i=n*n+r*r;while(i===0||i>1);a=Math.sqrt(-2*Math.log(i)/i),n*=a,is=r*a}return e+n*t}function nm(e,t,n){n??(n=1);let r=(e-(t||0))/n;return Math.exp(-.5*r*r)/(n*zw)}function Fc(e,t,n){t||(t=0),n??(n=1);let r=(e-t)/n,i=Math.abs(r),a;if(i>37)a=0;else{let o=Math.exp(-i*i/2),l;i<7.07106781186547?(l=.0352624965998911*i+.700383064443688,l=l*i+6.37396220353165,l=l*i+33.912866078383,l=l*i+112.079291497871,l=l*i+221.213596169931,l=l*i+220.206867912376,a=o*l,l=.0883883476483184*i+1.75566716318264,l=l*i+16.064177579207,l=l*i+86.7807322029461,l=l*i+296.564248779674,l=l*i+637.333633378831,l=l*i+793.826512519948,l=l*i+440.413735824752,a/=l):(l=i+.65,l=i+4/l,l=i+3/l,l=i+2/l,l=i+1/l,a=o/l/2.506628274631)}return r>0?1-a:a}function Cc(e,t,n){return e<0||e>1?NaN:(t||0)+(n??1)*KM*ZM(2*e-1)}function ZM(e){let t=-Math.log((1-e)*(1+e)),n;return t<6.25?(t-=3.125,n=-364441206401782e-35,n=-16850591381820166e-35+n*t,n=128584807152564e-32+n*t,n=11157877678025181e-33+n*t,n=-1333171662854621e-31+n*t,n=20972767875968562e-33+n*t,n=6637638134358324e-30+n*t,n=-4054566272975207e-29+n*t,n=-8151934197605472e-29+n*t,n=26335093153082323e-28+n*t,n=-12975133253453532e-27+n*t,n=-5415412054294628e-26+n*t,n=10512122733215323e-25+n*t,n=-4112633980346984e-24+n*t,n=-29070369957882005e-24+n*t,n=42347877827932404e-23+n*t,n=-13654692000834679e-22+n*t,n=-13882523362786469e-21+n*t,n=.00018673420803405714+n*t,n=-.000740702534166267+n*t,n=-.006033670871430149+n*t,n=.24015818242558962+n*t,n=1.6536545626831027+n*t):t<16?(t=Math.sqrt(t)-3.25,n=22137376921775787e-25,n=9075656193888539e-23+n*t,n=-27517406297064545e-23+n*t,n=18239629214389228e-24+n*t,n=15027403968909828e-22+n*t,n=-4013867526981546e-21+n*t,n=29234449089955446e-22+n*t,n=12475304481671779e-21+n*t,n=-47318229009055734e-21+n*t,n=6828485145957318e-20+n*t,n=24031110387097894e-21+n*t,n=-.0003550375203628475+n*t,n=.0009532893797373805+n*t,n=-.0016882755560235047+n*t,n=.002491442096107851+n*t,n=-.003751208507569241+n*t,n=.005370914553590064+n*t,n=1.0052589676941592+n*t,n=3.0838856104922208+n*t):Number.isFinite(t)?(t=Math.sqrt(t)-5,n=-27109920616438573e-27,n=-2555641816996525e-25+n*t,n=15076572693500548e-25+n*t,n=-3789465440126737e-24+n*t,n=761570120807834e-23+n*t,n=-1496002662714924e-23+n*t,n=2914795345090108e-23+n*t,n=-6771199775845234e-23+n*t,n=22900482228026655e-23+n*t,n=-99298272942317e-20+n*t,n=4526062597223154e-21+n*t,n=-1968177810553167e-20+n*t,n=7599527703001776e-20+n*t,n=-.00021503011930044477+n*t,n=-.00013871931833623122+n*t,n=1.0103004648645344+n*t,n=4.849906401408584+n*t):n=1/0,n*e}function rm(e,t){let n,r,i={mean(a){return arguments.length?(n=a||0,i):n},stdev(a){return arguments.length?(r=a??1,i):r},sample:()=>Dc(n,r),pdf:a=>nm(a,n,r),cdf:a=>Fc(a,n,r),icdf:a=>Cc(a,n,r)};return i.mean(e).stdev(t)}function im(e,t){let n=rm(),r=0,i={data(a){return arguments.length?(e=a,r=a?a.length:0,i.bandwidth(t)):e},bandwidth(a){return arguments.length?(t=a,!t&&e&&(t=tm(e)),i):t},sample(){return e[~~(Nn()*r)]+t*n.sample()},pdf(a){let o=0,l=0;for(;lam(n,r),pdf:a=>om(a,n,r),cdf:a=>lm(a,n,r),icdf:a=>sm(a,n,r)};return i.mean(e).stdev(t)}function Rw(e,t){let n=0,r;function i(o){let l=[],s=0,u;for(u=0;u=t&&e<=n?1/(n-t):0}function fm(e,t,n){return n??(n=t??1,t=0),en?1:(e-t)/(n-t)}function dm(e,t,n){return n??(n=t??1,t=0),e>=0&&e<=1?t+e*(n-t):NaN}function Tw(e,t){let n,r,i={min(a){return arguments.length?(n=a||0,i):n},max(a){return arguments.length?(r=a??1,i):r},sample:()=>um(n,r),pdf:a=>cm(a,n,r),cdf:a=>fm(a,n,r),icdf:a=>dm(a,n,r)};return t??(t=e??1,e=0),i.min(e).max(t)}function hm(e,t,n){let r=0,i=0;for(let a of e){let o=n(a);t(a)==null||o==null||isNaN(o)||(r+=(o-r)/++i)}return{coef:[r],predict:()=>r,rSquared:0}}function as(e,t,n,r){let i=r-e*e,a=Math.abs(i)<1e-24?0:(n-e*t)/i;return[t-a*e,a]}function $c(e,t,n,r){e=e.filter(h=>{let p=t(h),m=n(h);return p!=null&&(p=+p)>=p&&m!=null&&(m=+m)>=m}),r&&e.sort((h,p)=>t(h)-t(p));let i=e.length,a=new Float64Array(i),o=new Float64Array(i),l=0,s=0,u=0,c,f,d;for(d of e)a[l]=c=+t(d),o[l]=f=+n(d),++l,s+=(c-s)/l,u+=(f-u)/l;for(l=0;l=a&&o!=null&&(o=+o)>=o&&r(a,o,++i)}function qo(e,t,n,r,i){let a=0,o=0;return os(e,t,n,(l,s)=>{let u=s-i(l),c=s-r;a+=u*u,o+=c*c}),1-a/o}function pm(e,t,n){let r=0,i=0,a=0,o=0,l=0;os(e,t,n,(c,f)=>{++l,r+=(c-r)/l,i+=(f-i)/l,a+=(c*f-a)/l,o+=(c*c-o)/l});let s=as(r,i,a,o),u=c=>s[0]+s[1]*c;return{coef:s,predict:u,rSquared:qo(e,t,n,i,u)}}function Lw(e,t,n){let r=0,i=0,a=0,o=0,l=0;os(e,t,n,(c,f)=>{++l,c=Math.log(c),r+=(c-r)/l,i+=(f-i)/l,a+=(c*f-a)/l,o+=(c*c-o)/l});let s=as(r,i,a,o),u=c=>s[0]+s[1]*Math.log(c);return{coef:s,predict:u,rSquared:qo(e,t,n,i,u)}}function Pw(e,t,n){let[r,i,a,o]=$c(e,t,n),l=0,s=0,u=0,c=0,f=0,d,h,p;os(e,t,n,(v,b)=>{d=r[f++],h=Math.log(b),p=d*b,l+=(b*h-l)/f,s+=(p-s)/f,u+=(p*h-u)/f,c+=(d*p-c)/f});let[m,g]=as(s/o,l/o,u/o,c/o),y=v=>Math.exp(m+g*(v-a));return{coef:[Math.exp(m-g*a),g],predict:y,rSquared:qo(e,t,n,o,y)}}function Iw(e,t,n){let r=0,i=0,a=0,o=0,l=0,s=0;os(e,t,n,(f,d)=>{let h=Math.log(f),p=Math.log(d);++s,r+=(h-r)/s,i+=(p-i)/s,a+=(h*p-a)/s,o+=(h*h-o)/s,l+=(d-l)/s});let u=as(r,i,a,o),c=f=>u[0]*f**+u[1];return u[0]=Math.exp(u[0]),{coef:u,predict:c,rSquared:qo(e,t,n,l,c)}}function mm(e,t,n){let[r,i,a,o]=$c(e,t,n),l=r.length,s=0,u=0,c=0,f=0,d=0,h,p,m,g;for(h=0;h(x-=a,b*x*x+w*x+A+o);return{coef:[A-w*a+b*a*a+o,w-2*b*a,b],predict:E,rSquared:qo(e,t,n,o,E)}}function jw(e,t,n,r){if(r===0)return hm(e,t,n);if(r===1)return pm(e,t,n);if(r===2)return mm(e,t,n);let[i,a,o,l]=$c(e,t,n),s=i.length,u=[],c=[],f=r+1,d,h,p,m,g;for(d=0;d{b-=o;let w=l+y[0]+y[1]*b+y[2]*b*b;for(d=3;d=0;--a)for(l=t[a],s=1,i[a]+=l,o=1;o<=a;++o)s*=(a+1-o)/o,i[a-o]+=l*n**+o*s;return i[0]+=r,i}function tO(e){let t=e.length-1,n=[],r,i,a,o,l;for(r=0;rMath.abs(e[r][o])&&(o=i);for(a=r;a=r;a--)e[a][i]-=e[a][r]*e[r][i]/e[r][r]}for(i=t-1;i>=0;--i){for(l=0,a=i+1;ai[b]-y?v:b,A=0,E=0,x=0,k=0,_=0,F=1/Math.abs(i[w]-y||1);for(let C=v;C<=b;++C){let M=i[C],D=a[C],S=nO(Math.abs(y-M)*F)*d[C],L=M*S;A+=S,E+=L,x+=D*S,k+=D*L,_+=M*L}let[$,R]=as(E/A,x/A,k/A,_/A);c[g]=$+R*y,f[g]=Math.abs(a[g]-c[g]),rO(i,g+1,p)}if(h===qw)break;let m=hw(f);if(Math.abs(m)=1?Uw:(v=1-y*y)*v}return iO(i,c,o,l)}function nO(e){return(e=1-e*e*e)*e*e}function rO(e,t,n){let r=e[t],i=n[0],a=n[1]+1;if(!(a>=e.length))for(;t>i&&e[a]-r<=r-e[i];)n[0]=++i,n[1]=a,++a}function iO(e,t,n,r){let i=e.length,a=[],o=0,l=0,s=[],u;for(;o[m,e(m)],a=t[0],o=t[1],l=o-a,s=l/r,u=[i(a)],c=[];if(n===r){for(let m=1;m0;)c.push(i(a+m/n*l))}let f=u[0],d=c[c.length-1],h=1/l,p=oO(f[1],c);for(;d;){let m=i((f[0]+d[0])/2);m[0]-f[0]>=s&&lO(f,m,d,h,p)>aO?c.push(m):(f=d,u.push(d),c.pop()),d=c[c.length-1]}return u}function oO(e,t){let n=e,r=e,i=t.length;for(let a=0;ar&&(r=o)}return 1/(r-n)}function lO(e,t,n,r,i){let a=Math.atan2(i*(n[1]-e[1]),r*(n[0]-e[0])),o=Math.atan2(i*(t[1]-e[1]),r*(t[0]-e[0]));return Math.abs(a-o)}var sO=sn({aggregate:()=>Ti,bin:()=>bm,collect:()=>xm,compare:()=>Jw,countpattern:()=>wm,cross:()=>Am,density:()=>Em,dotbin:()=>_m,expression:()=>rA,extent:()=>Dm,facet:()=>Mc,field:()=>iA,filter:()=>Cm,flatten:()=>$m,fold:()=>Sm,formula:()=>Mm,generate:()=>aA,impute:()=>Om,joinaggregate:()=>Bm,kde:()=>zm,key:()=>oA,load:()=>lA,lookup:()=>Rm,multiextent:()=>sA,multivalues:()=>uA,params:()=>cA,pivot:()=>Tm,prefacet:()=>fA,project:()=>Lm,proxy:()=>dA,quantile:()=>Pm,relay:()=>hA,sample:()=>Im,sequence:()=>jm,sieve:()=>pA,subflow:()=>Fm,timeunit:()=>qm,tupleindex:()=>gA,values:()=>yA,window:()=>Um},1);function uO(e){return t=>{let n=e.length,r=1,i=String(e[0](t));for(;r{},cO={init:ym,add:ym,rem:ym,idx:0},ls={values:{init:e=>e.cell.store=!0,value:e=>e.cell.data.values(),idx:-1},count:{value:e=>e.cell.num},__count__:{value:e=>e.missing+e.valid},missing:{value:e=>e.missing},valid:{value:e=>e.valid},sum:{init:e=>e.sum=0,value:e=>e.valid?e.sum:void 0,add:(e,t)=>e.sum+=+t,rem:(e,t)=>e.sum-=t},product:{init:e=>e.product=1,value:e=>e.valid?e.product:void 0,add:(e,t)=>e.product*=t,rem:(e,t)=>e.product/=t},mean:{init:e=>e.mean=0,value:e=>e.valid?e.mean:void 0,add:(e,t)=>(e.mean_d=t-e.mean,e.mean+=e.mean_d/e.valid),rem:(e,t)=>(e.mean_d=t-e.mean,e.mean-=e.valid?e.mean_d/e.valid:e.mean)},average:{value:e=>e.valid?e.mean:void 0,req:["mean"],idx:1},variance:{init:e=>e.dev=0,value:e=>e.valid>1?e.dev/(e.valid-1):void 0,add:(e,t)=>e.dev+=e.mean_d*(t-e.mean),rem:(e,t)=>e.dev-=e.mean_d*(t-e.mean),req:["mean"],idx:1},variancep:{value:e=>e.valid>1?e.dev/e.valid:void 0,req:["variance"],idx:2},stdev:{value:e=>e.valid>1?Math.sqrt(e.dev/(e.valid-1)):void 0,req:["variance"],idx:2},stdevp:{value:e=>e.valid>1?Math.sqrt(e.dev/e.valid):void 0,req:["variance"],idx:2},stderr:{value:e=>e.valid>1?Math.sqrt(e.dev/(e.valid*(e.valid-1))):void 0,req:["variance"],idx:2},distinct:{value:e=>e.cell.data.distinct(e.get),req:["values"],idx:3},ci0:{value:e=>e.cell.data.ci0(e.get),req:["values"],idx:3},ci1:{value:e=>e.cell.data.ci1(e.get),req:["values"],idx:3},median:{value:e=>e.cell.data.q2(e.get),req:["values"],idx:3},q1:{value:e=>e.cell.data.q1(e.get),req:["values"],idx:3},q3:{value:e=>e.cell.data.q3(e.get),req:["values"],idx:3},min:{init:e=>e.min=void 0,value:e=>e.min=Number.isNaN(e.min)?e.cell.data.min(e.get):e.min,add:(e,t)=>{(t{t<=e.min&&(e.min=NaN)},req:["values"],idx:4},max:{init:e=>e.max=void 0,value:e=>e.max=Number.isNaN(e.max)?e.cell.data.max(e.get):e.max,add:(e,t)=>{(t>e.max||e.max===void 0)&&(e.max=t)},rem:(e,t)=>{t>=e.max&&(e.max=NaN)},req:["values"],idx:4},argmin:{init:e=>e.argmin=void 0,value:e=>e.argmin||e.cell.data.argmin(e.get),add:(e,t,n)=>{t{t<=e.min&&(e.argmin=void 0)},req:["min","values"],idx:3},argmax:{init:e=>e.argmax=void 0,value:e=>e.argmax||e.cell.data.argmax(e.get),add:(e,t,n)=>{t>e.max&&(e.argmax=n)},rem:(e,t)=>{t>=e.max&&(e.argmax=void 0)},req:["max","values"],idx:3},exponential:{init:(e,t)=>{e.exp=0,e.exp_r=t},value:e=>e.valid?e.exp*(1-e.exp_r)/(1-e.exp_r**e.valid):void 0,add:(e,t)=>e.exp=e.exp_r*e.exp+t,rem:(e,t)=>e.exp=(e.exp-t/e.exp_r**(e.valid-1))/e.exp_r},exponentialb:{value:e=>e.valid?e.exp*(1-e.exp_r):void 0,req:["exponential"],idx:1}},ss=Object.keys(ls).filter(e=>e!=="__count__");function fO(e,t){return(n,r)=>ge({name:e,aggregate_param:r,out:n||e},cO,t)}[...ss,"__count__"].forEach(e=>{ls[e]=fO(e,ls[e])});function Hw(e,t,n){return ls[e](n,t)}function Vw(e,t){return e.idx-t.idx}function dO(e){let t={};e.forEach(r=>t[r.name]=r);let n=r=>{r.req&&r.req.forEach(i=>{t[i]||n(t[i]=ls[i]())})};return e.forEach(n),Object.values(t).sort(Vw)}function hO(){this.valid=0,this.missing=0,this._ops.forEach(e=>e.aggregate_param==null?e.init(this):e.init(this,e.aggregate_param))}function pO(e,t){if(e==null||e===""){++this.missing;return}e===e&&(++this.valid,this._ops.forEach(n=>n.add(this,e,t)))}function mO(e,t){if(e==null||e===""){--this.missing;return}e===e&&(--this.valid,this._ops.forEach(n=>n.rem(this,e,t)))}function gO(e){return this._out.forEach(t=>e[t.out]=t.value(this)),e}function Xw(e,t){let n=t||Jn,r=dO(e),i=e.slice().sort(Vw);function a(o){this._ops=r,this._out=i,this.cell=o,this.init()}return a.prototype.init=hO,a.prototype.add=pO,a.prototype.rem=mO,a.prototype.set=gO,a.prototype.get=n,a.fields=e.map(o=>o.out),a}function vm(e){this._key=e?ti(e):ee,this.reset()}var At=vm.prototype;At.reset=function(){this._add=[],this._rem=[],this._ext=null,this._get=null,this._q=null},At.add=function(e){this._add.push(e)},At.rem=function(e){this._rem.push(e)},At.values=function(){if(this._get=null,this._rem.length===0)return this._add;let e=this._add,t=this._rem,n=this._key,r=e.length,i=t.length,a=Array(r-i),o={},l,s,u;for(l=0;l=0;)a=e(t[r])+"",ce(n,a)||(n[a]=1,++i);return i},At.extent=function(e){if(this._get!==e||!this._ext){let t=this.values(),n=V2(t,e);this._ext=[t[n[0]],t[n[1]]],this._get=e}return this._ext},At.argmin=function(e){return this.extent(e)[0]||{}},At.argmax=function(e){return this.extent(e)[1]||{}},At.min=function(e){let t=this.extent(e)[0];return t==null?void 0:e(t)},At.max=function(e){let t=this.extent(e)[1];return t==null?void 0:e(t)},At.quartile=function(e){return(this._get!==e||!this._q)&&(this._q=em(this.values(),e),this._get=e),this._q},At.q1=function(e){return this.quartile(e)[0]},At.q2=function(e){return this.quartile(e)[1]},At.q3=function(e){return this.quartile(e)[2]},At.ci=function(e){return(this._get!==e||!this._ci)&&(this._ci=Ow(this.values(),1e3,.05,e),this._get=e),this._ci},At.ci0=function(e){return this.ci(e)[0]},At.ci1=function(e){return this.ci(e)[1]};function Ti(e){O.call(this,null,e),this._adds=[],this._mods=[],this._alen=0,this._mlen=0,this._drop=!0,this._cross=!1,this._dims=[],this._dnames=[],this._measures=[],this._countOnly=!1,this._counts=null,this._prev=null,this._inputs=null,this._outputs=null}Ti.Definition={type:"Aggregate",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"ops",type:"enum",array:!0,values:ss},{name:"aggregate_params",type:"number",null:!0,array:!0},{name:"fields",type:"field",null:!0,array:!0},{name:"as",type:"string",null:!0,array:!0},{name:"drop",type:"boolean",default:!0},{name:"cross",type:"boolean",default:!1},{name:"key",type:"field"}]},G(Ti,O,{transform(e,t){let n=this,r=t.fork(t.NO_SOURCE|t.NO_FIELDS),i=e.modified();return n.stamp=r.stamp,n.value&&(i||t.modified(n._inputs,!0))?(n._prev=n.value,n.value=i?n.init(e):Object.create(null),t.visit(t.SOURCE,a=>n.add(a))):(n.value=n.value||n.init(e),t.visit(t.REM,a=>n.rem(a)),t.visit(t.ADD,a=>n.add(a))),r.modifies(n._outputs),n._drop=e.drop!==!1,e.cross&&n._dims.length>1&&(n._drop=!1,n.cross()),t.clean()&&n._drop&&r.clean(!0).runAfter(()=>this.clean()),n.changes(r)},cross(){let e=this,t=e.value,n=e._dnames,r=n.map(()=>({})),i=n.length;function a(l){let s,u,c,f;for(s in l)for(c=l[s].tuple,u=0;u{let b=Qe(v);return i(v),n.push(b),b}),this.cellkey=e.key?e.key:gm(this._dims),this._countOnly=!0,this._counts=[],this._measures=[];let a=e.fields||[null],o=e.ops||["count"],l=e.aggregate_params||[null],s=e.as||[],u=a.length,c={},f,d,h,p,m,g,y;for(u!==o.length&&T("Unmatched number of fields and aggregate ops."),y=0;yXw(v,v.field)),Object.create(null)},cellkey:gm(),cell(e,t){let n=this.value[e];return n?n.num===0&&this._drop&&n.stamp{let f=r(c);c[l]=f,c[s]=f==null?null:i+a*(1+(f-i)/a)}:c=>c[l]=r(c)),t.modifies(n?o:l)},_bins(e){if(this.value&&!e.modified())return this.value;let t=e.field,n=Mw(e),r=n.step,i=n.start,a=i+Math.ceil((n.stop-i)/r)*r,o,l;(o=e.anchor)!=null&&(l=o-(i+r*Math.floor((o-i)/r)),i+=l,a+=l);let s=function(u){let c=zn(t(u));return c==null?null:ca?1/0:(c=Math.max(i,Math.min(c,a-r)),i+r*Math.floor(yO+(c-i)/r))};return s.start=i,s.stop=n.stop,s.step=r,this.value=No(s,It(t),e.name||"bin_"+Qe(t))}});function Yw(e,t,n){let r=e,i=t||[],a=n||[],o={},l=0;return{add:s=>a.push(s),remove:s=>o[r(s)]=++l,size:()=>i.length,data:(s,u)=>(l&&(l=(i=i.filter(c=>!o[r(c)]),o={},0)),u&&s&&i.sort(s),a.length&&(i=s?W2(s,i,a.sort(s)):i.concat(a),a=[]),i)}}function xm(e){O.call(this,[],e)}xm.Definition={type:"Collect",metadata:{source:!0},params:[{name:"sort",type:"compare"}]},G(xm,O,{transform(e,t){let n=t.fork(t.ALL),r=Yw(ee,this.value,n.materialize(n.ADD).add),i=e.sort,a=t.changed()||i&&(e.modified("sort")||t.modified(i.fields));return n.visit(n.REM,r.remove),this.modified(a),this.value=n.source=r.data(Ca(i),a),t.source&&t.source.root&&(this.value.root=t.source.root),n}});function Jw(e){Pe.call(this,null,vO,e)}G(Jw,Pe);function vO(e){return this.value&&!e.modified()?this.value:Np(e.fields,e.orders)}function wm(e){O.call(this,null,e)}wm.Definition={type:"CountPattern",metadata:{generates:!0,changes:!0},params:[{name:"field",type:"field",required:!0},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:!0,length:2,default:["text","count"]}]};function bO(e,t,n){switch(t){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break}return e.match(n)}G(wm,O,{transform(e,t){let n=f=>d=>{for(var h=bO(l(d),e.case,a)||[],p,m=0,g=h.length;mi[f]=1+(i[f]||0)),c=n(f=>--i[f]);return r?t.visit(t.SOURCE,u):(t.visit(t.ADD,u),t.visit(t.REM,c)),this._finish(t,s)},_parameterCheck(e,t){let n=!1;return(e.modified("stopwords")||!this._stop)&&(this._stop=RegExp("^"+(e.stopwords||"")+"$","i"),n=!0),(e.modified("pattern")||!this._match)&&(this._match=new RegExp(e.pattern||"[\\w']+","g"),n=!0),(e.modified("field")||t.modified(e.field.fields))&&(n=!0),n&&(this._counts={}),n},_finish(e,t){let n=this._counts,r=this._tuples||(this._tuples={}),i=t[0],a=t[1],o=e.fork(e.NO_SOURCE|e.NO_FIELDS),l,s,u;for(l in n)s=r[l],u=n[l]||0,!s&&u?(r[l]=s=Ce({}),s[i]=l,s[a]=u,o.add.push(s)):u===0?(s&&o.rem.push(s),n[l]=null,r[l]=null):s[a]!==u&&(s[a]=u,o.mod.push(s));return o.modifies(t)}});function Am(e){O.call(this,null,e)}Am.Definition={type:"Cross",metadata:{generates:!0},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:!0,length:2,default:["a","b"]}]},G(Am,O,{transform(e,t){let n=t.fork(t.NO_SOURCE),r=e.as||["a","b"],i=r[0],a=r[1],o=!this.value||t.changed(t.ADD_REM)||e.modified("as")||e.modified("filter"),l=this.value;return o?(l&&(n.rem=l),l=t.materialize(t.SOURCE).source,n.add=this.value=xO(l,i,a,e.filter||Bn)):n.mod=l,n.source=this.value,n.modifies(r)}});function xO(e,t,n,r){for(var i=[],a={},o=e.length,l=0,s,u;lZw(a,t))):typeof r[i]===Kw&&r[i](e[i]);return r}function Em(e){O.call(this,null,e)}var eA=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"lognormal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:!0},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}],EO={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:!0,params:eA},{name:"weights",type:"number",array:!0}]};Em.Definition={type:"Density",metadata:{generates:!0},params:[{name:"extent",type:"number",array:!0,length:2},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:eA.concat(EO)},{name:"as",type:"string",array:!0,default:["value","density"]}]},G(Em,O,{transform(e,t){let n=t.fork(t.NO_SOURCE|t.NO_FIELDS);if(!this.value||t.changed()||e.modified()){let r=Zw(e.distribution,kO(t)),i=e.steps||e.minsteps||25,a=e.steps||e.maxsteps||200,o=e.method||"pdf";o!=="pdf"&&o!=="cdf"&&T("Invalid density method: "+o),!e.extent&&!r.data&&T("Missing density extent parameter."),o=r[o];let l=e.as||["value","density"],s=e.extent||Dr(r.data()),u=Sc(o,s,i,a).map(c=>{let f={};return f[l[0]]=c[0],f[l[1]]=c[1],Ce(f)});this.value&&(n.rem=this.value),this.value=n.add=n.source=u}return n}});function kO(e){return()=>e.materialize(e.SOURCE).source}function tA(e,t){return e?e.map((n,r)=>t[r]||Qe(n)):null}function km(e,t,n){let r=[],i=f=>f(s),a,o,l,s,u,c;if(t==null)r.push(e.map(n));else for(a={},o=0,l=e.length;osc(Dr(e,t))/30;G(_m,O,{transform(e,t){if(this.value&&!(e.modified()||t.changed()))return t;let n=t.materialize(t.SOURCE).source,r=km(t.source,e.groupby,Jn),i=e.smooth||!1,a=e.field,o=e.step||_O(n,a),l=Ca((p,m)=>a(p)-a(m)),s=e.as||nA,u=r.length,c=1/0,f=-1/0,d=0,h;for(;df&&(f=m),p[++h][s]=m}return this.value={start:c,stop:f,step:o},t.reflow(!0).modifies(s)}});function rA(e){Pe.call(this,null,DO,e),this.modified(!0)}G(rA,Pe);function DO(e){let t=e.expr;return this.value&&!e.modified("expr")?this.value:No(n=>t(n,e),It(t),Qe(t))}function Dm(e){O.call(this,[void 0,void 0],e)}Dm.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:!0}]},G(Dm,O,{transform(e,t){let n=this.value,r=e.field,i=t.changed()||t.modified(r.fields)||e.modified("field"),a=n[0],o=n[1];if((i||a==null)&&(a=1/0,o=-1/0),t.visit(i?t.SOURCE:t.ADD,l=>{let s=zn(r(l));s!=null&&(so&&(o=s))}),!Number.isFinite(a)||!Number.isFinite(o)){let l=Qe(r);l&&(l=` for field "${l}"`),t.dataflow.warn(`Infinite extent${l}: [${a}, ${o}]`),a=o=void 0}this.value=[a,o]}});function Fm(e,t){Pe.call(this,e),this.parent=t,this.count=0}G(Fm,Pe,{connect(e){return this.detachSubflow=e.detachSubflow,this.targets().add(e),e.source=this},add(e){this.count+=1,this.value.add.push(e)},rem(e){--this.count,this.value.rem.push(e)},mod(e){this.value.mod.push(e)},init(e){this.value.init(e,e.NO_SOURCE)},evaluate(){return this.value}});function Mc(e){O.call(this,{},e),this._keys=Ro();let t=this._targets=[];t.active=0,t.forEach=n=>{for(let r=0,i=t.active;rr&&r.count>0);this.initTargets(n)}},initTargets(e){let t=this._targets,n=t.length,r=e?e.length:0,i=0;for(;ithis.subflow(s,i,t);return this._group=e.group||{},this.initTargets(),t.visit(t.REM,s=>{let u=ee(s),c=a.get(u);c!==void 0&&(a.delete(u),l(c).rem(s))}),t.visit(t.ADD,s=>{let u=r(s);a.set(ee(s),u),l(u).add(s)}),o||t.modified(r.fields)?t.visit(t.MOD,s=>{let u=ee(s),c=a.get(u),f=r(s);c===f?l(f).mod(s):(a.set(u,f),l(c).rem(s),l(f).add(s))}):t.changed(t.MOD)&&t.visit(t.MOD,s=>{l(a.get(ee(s))).mod(s)}),o&&t.visit(t.REFLOW,s=>{let u=ee(s),c=a.get(u),f=r(s);c!==f&&(a.set(u,f),l(c).rem(s),l(f).add(s))}),t.clean()?n.runAfter(()=>{this.clean(),a.clean()}):a.empty>n.cleanThreshold&&n.runAfter(a.clean),t}});function iA(e){Pe.call(this,null,FO,e)}G(iA,Pe);function FO(e){return this.value&&!e.modified()?this.value:Z(e.name)?ie(e.name).map(t=>ti(t)):ti(e.name,e.as)}function Cm(e){O.call(this,Ro(),e)}Cm.Definition={type:"Filter",metadata:{changes:!0},params:[{name:"expr",type:"expr",required:!0}]},G(Cm,O,{transform(e,t){let n=t.dataflow,r=this.value,i=t.fork(),a=i.add,o=i.rem,l=i.mod,s=e.expr,u=!0;t.visit(t.REM,f=>{let d=ee(f);r.has(d)?r.delete(d):o.push(f)}),t.visit(t.ADD,f=>{s(f,e)?a.push(f):r.set(ee(f),1)});function c(f){let d=ee(f),h=s(f,e),p=r.get(d);h&&p?(r.delete(d),a.push(f)):!h&&!p?(r.set(d,1),o.push(f)):u&&h&&!p&&l.push(f)}return t.visit(t.MOD,c),e.modified()&&(u=!1,t.visit(t.REFLOW,c)),r.empty>n.cleanThreshold&&n.runAfter(r.clean),i}});function $m(e){O.call(this,[],e)}$m.Definition={type:"Flatten",metadata:{generates:!0},params:[{name:"fields",type:"field",array:!0,required:!0},{name:"index",type:"string"},{name:"as",type:"string",array:!0}]},G($m,O,{transform(e,t){let n=t.fork(t.NO_SOURCE),r=e.fields,i=tA(r,e.as||[]),a=e.index||null,o=i.length;return n.rem=this.value,t.visit(t.SOURCE,l=>{let s=r.map(h=>h(l)),u=s.reduce((h,p)=>Math.max(h,p.length),0),c=0,f,d;for(;c{for(let c=0,f;co[r]=n(o,e))}});function aA(e){O.call(this,[],e)}G(aA,O,{transform(e,t){let n=t.fork(t.ALL),r=e.generator,i=this.value,a=e.size-i.length,o,l,s;if(a>0){for(o=[];--a>=0;)o.push(s=Ce(r(e))),i.push(s);n.add=n.add.length?n.materialize(n.ADD).add.concat(o):o}else l=i.slice(0,-a),n.rem=n.rem.length?n.materialize(n.REM).rem.concat(l):l,i=i.slice(-a);return n.source=this.value=i,n}});var Oc={value:"value",median:hw,mean:oM,min:qp,max:Da},CO=[];function Om(e){O.call(this,[],e)}Om.Definition={type:"Impute",metadata:{changes:!0},params:[{name:"field",type:"field",required:!0},{name:"key",type:"field",required:!0},{name:"keyvals",array:!0},{name:"groupby",type:"field",array:!0},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]};function $O(e){var t=e.method||Oc.value,n;if(Oc[t]==null)T("Unrecognized imputation method: "+t);else return t===Oc.value?(n=e.value===void 0?0:e.value,()=>n):Oc[t]}function SO(e){let t=e.field;return n=>n?t(n):NaN}G(Om,O,{transform(e,t){var n=t.fork(t.ALL),r=$O(e),i=SO(e),a=Qe(e.field),o=Qe(e.key),l=(e.groupby||[]).map(Qe),s=MO(t.source,e.groupby,e.key,e.keyvals),u=[],c=this.value,f=s.domain.length,d,h,p,m,g,y,v,b,w,A;for(g=0,b=s.length;gy(g),a=[],o=r?r.slice():[],l={},s={},u,c,f,d,h,p,m,g;for(o.forEach((y,v)=>l[y]=v+1),d=0,m=e.length;dn.add(a))):(i=n.value=n.value||this.init(e),t.visit(t.REM,a=>n.rem(a)),t.visit(t.ADD,a=>n.add(a))),n.changes(),t.visit(t.SOURCE,a=>{ge(a,i[n.cellkey(a)].tuple)}),t.reflow(r).modifies(this._outputs)},changes(){let e=this._adds,t=this._mods,n,r;for(n=0,r=this._alen;n{let p=im(h,o)[l],m=e.counts?h.length:1;Sc(p,c||Dr(h),f,d).forEach(g=>{let y={};for(let v=0;v(this._pending=ie(r.data),i=>i.touch(this)))}:n.request(e.url,e.format).then(r=>Nm(this,t,ie(r.data)))}});function BO(e){return e.modified("async")&&!(e.modified("values")||e.modified("url")||e.modified("format"))}function Nm(e,t,n){n.forEach(Ce);let r=t.fork(t.NO_FIELDS&t.NO_SOURCE);return r.rem=e.value,e.value=r.source=r.add=n,e._pending=null,r.rem.length&&r.clean(!0),r}function Rm(e){O.call(this,{},e)}Rm.Definition={type:"Lookup",metadata:{modifies:!0},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:!0},{name:"key",type:"field",required:!0}]},{name:"values",type:"field",array:!0},{name:"fields",type:"field",array:!0,required:!0},{name:"as",type:"string",array:!0},{name:"default",default:null}]},G(Rm,O,{transform(e,t){let n=e.fields,r=e.index,i=e.values,a=e.default==null?null:e.default,o=e.modified(),l=n.length,s=o?t.SOURCE:t.ADD,u=t,c=e.as,f,d,h;return i?(d=i.length,l>1&&!c&&T('Multi-field lookup requires explicit "as" parameter.'),c&&c.length!==l*d&&T('The "as" parameter has too few output field names.'),c||(c=i.map(Qe)),f=function(p){for(var m=0,g=0,y,v;mt.modified(p.fields)),s|=h?t.MOD:0),t.visit(s,f),u.modifies(c)}});function sA(e){Pe.call(this,null,zO,e)}G(sA,Pe);function zO(e){if(this.value&&!e.modified())return this.value;let t=e.extents,n=t.length,r=1/0,i=-1/0,a,o;for(a=0;ai&&(i=o[1]);return[r,i]}function uA(e){Pe.call(this,null,NO,e)}G(uA,Pe);function NO(e){return this.value&&!e.modified()?this.value:e.values.reduce((t,n)=>t.concat(n),[])}function cA(e){O.call(this,null,e)}G(cA,O,{transform(e,t){return this.modified(e.modified()),this.value=e,t.fork(t.NO_SOURCE|t.NO_FIELDS)}});function Tm(e){Ti.call(this,e)}Tm.Definition={type:"Pivot",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"value",type:"field",required:!0},{name:"op",type:"enum",values:ss,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]},G(Tm,Ti,{_transform:Ti.prototype.transform,transform(e,t){return this._transform(RO(e,t),t)}});function RO(e,t){let n=e.field,r=e.value,i=(e.op==="count"?"__count__":e.op)||"sum",a=It(n).concat(It(r)),o=LO(n,e.limit||0,t);return t.changed()&&e.set("__pivot__",null,null,!0),{key:e.key,groupby:e.groupby,ops:o.map(()=>i),fields:o.map(l=>TO(l,n,r,a)),as:o.map(l=>l+""),modified:e.modified.bind(e)}}function TO(e,t,n,r){return No(i=>t(i)===e?n(i):NaN,r,e+"")}function LO(e,t,n){let r={},i=[];return n.visit(n.SOURCE,a=>{let o=e(a);r[o]||(r[o]=1,i.push(o))}),i.sort(uc),t?i.slice(0,t):i}function fA(e){Mc.call(this,e)}G(fA,Mc,{transform(e,t){let n=e.subflow,r=e.field,i=a=>this.subflow(ee(a),n,t,a);return(e.modified("field")||r&&t.modified(It(r)))&&T("PreFacet does not support field modification."),this.initTargets(),r?(t.visit(t.MOD,a=>{let o=i(a);r(a).forEach(l=>o.mod(l))}),t.visit(t.ADD,a=>{let o=i(a);r(a).forEach(l=>o.add(Ce(l)))}),t.visit(t.REM,a=>{let o=i(a);r(a).forEach(l=>o.rem(l))})):(t.visit(t.MOD,a=>i(a).mod(a)),t.visit(t.ADD,a=>i(a).add(a)),t.visit(t.REM,a=>i(a).rem(a))),t.clean()&&t.runAfter(()=>this.clean()),t}});function Lm(e){O.call(this,null,e)}Lm.Definition={type:"Project",metadata:{generates:!0,changes:!0},params:[{name:"fields",type:"field",array:!0},{name:"as",type:"string",null:!0,array:!0}]},G(Lm,O,{transform(e,t){let n=t.fork(t.NO_SOURCE),r=e.fields,i=tA(e.fields,e.as||[]),a=r?(l,s)=>PO(l,s,r,i):xc,o;return this.value?o=this.value:(t=t.addAll(),o=this.value={}),t.visit(t.REM,l=>{let s=ee(l);n.rem.push(o[s]),o[s]=null}),t.visit(t.ADD,l=>{let s=a(l,Ce({}));o[ee(l)]=s,n.add.push(s)}),t.visit(t.MOD,l=>{n.mod.push(a(l,o[ee(l)]))}),n}});function PO(e,t,n,r){for(let i=0,a=n.length;i{let d=Zp(f,u);for(let h=0;h{let a=ee(i);n.rem.push(r[a]),r[a]=null}),t.visit(t.ADD,i=>{let a=Yp(i);r[ee(i)]=a,n.add.push(a)}),t.visit(t.MOD,i=>{let a=r[ee(i)];for(let o in i)a[o]=i[o],n.modifies(o);n.mod.push(a)})),n}});function Im(e){O.call(this,[],e),this.count=0}Im.Definition={type:"Sample",metadata:{},params:[{name:"size",type:"number",default:1e3}]},G(Im,O,{transform(e,t){let n=t.fork(t.NO_SOURCE),r=e.modified("size"),i=e.size,a=this.value.reduce((c,f)=>(c[ee(f)]=1,c),{}),o=this.value,l=this.count,s=0;function u(c){let f,d;o.length=s&&(f=o[d],a[ee(f)]&&n.rem.push(f),o[d]=c)),++l}if(t.rem.length&&(t.visit(t.REM,c=>{let f=ee(c);a[f]&&(a[f]=-1,n.rem.push(c)),--l}),o=o.filter(c=>a[ee(c)]!==-1)),(t.rem.length||r)&&o.length{a[ee(c)]||u(c)}),s=-1),r&&o.length>i){let c=o.length-i;for(let f=0;f{a[ee(c)]&&n.mod.push(c)}),t.add.length&&t.visit(t.ADD,u),(t.add.length||s<0)&&(n.add=o.filter(c=>!a[ee(c)])),this.count=l,this.value=n.source=o,n}});function jm(e){O.call(this,null,e)}jm.Definition={type:"Sequence",metadata:{generates:!0,changes:!0},params:[{name:"start",type:"number",required:!0},{name:"stop",type:"number",required:!0},{name:"step",type:"number",default:1},{name:"as",type:"string",default:"data"}]},G(jm,O,{transform(e,t){if(this.value&&!e.modified())return;let n=t.materialize().fork(t.MOD),r=e.as||"data";return n.rem=this.value?t.rem.concat(this.value):t.rem,this.value=xn(e.start,e.stop,e.step||1).map(i=>{let a={};return a[r]=i,Ce(a)}),n.add=t.add.concat(this.value),n}});function pA(e){O.call(this,null,e),this.modified(!0)}G(pA,O,{transform(e,t){return this.value=t.source,t.changed()?t.fork(t.NO_SOURCE|t.NO_FIELDS):t.StopPropagation}});function qm(e){O.call(this,null,e)}var mA=["unit0","unit1"];qm.Definition={type:"TimeUnit",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"interval",type:"boolean",default:!0},{name:"units",type:"enum",values:b2,array:!0},{name:"step",type:"number",default:1},{name:"maxbins",type:"number",default:40},{name:"extent",type:"date",array:!0},{name:"timezone",type:"enum",default:"local",values:["local","utc"]},{name:"as",type:"string",array:!0,length:2,default:mA}]},G(qm,O,{transform(e,t){let n=e.field,r=e.interval!==!1,i=e.timezone==="utc",a=this._floor(e,t),o=(i?$p:Rp)(a.unit).offset,l=e.as||mA,s=l[0],u=l[1],c=a.step,f=a.start||1/0,d=a.stop||-1/0,h=t.ADD;return(e.modified()||t.changed(t.REM)||t.modified(It(n)))&&(t=t.reflow(!0),h=t.SOURCE,f=1/0,d=-1/0),t.visit(h,p=>{let m=n(p),g,y;m==null?(p[s]=null,r&&(p[u]=null)):(p[s]=g=y=a(m),r&&(p[u]=y=o(g,c)),gd&&(d=y))}),a.start=f,a.stop=d,t.modifies(r?l:s)},_floor(e,t){let n=e.timezone==="utc",{units:r,step:i}=e.units?{units:e.units,step:e.step||1}:w2({extent:e.extent||Dr(t.materialize(t.SOURCE).source,e.field),maxbins:e.maxbins}),a=M2(r),o=this.value||{},l=(n?N2:B2)(a,i);return l.unit=Oe(a),l.units=a,l.step=i,l.start=o.start,l.stop=o.stop,this.value=l}});function gA(e){O.call(this,Ro(),e)}G(gA,O,{transform(e,t){let n=t.dataflow,r=e.field,i=this.value,a=l=>i.set(r(l),l),o=!0;return e.modified("field")||t.modified(r.fields)?(i.clear(),t.visit(t.SOURCE,a)):t.changed()?(t.visit(t.REM,l=>i.delete(r(l))),t.visit(t.ADD,a)):o=!1,this.modified(o),i.empty>n.cleanThreshold&&n.runAfter(i.clean),t.fork()}});function yA(e){O.call(this,null,e)}G(yA,O,{transform(e,t){(!this.value||e.modified("field")||e.modified("sort")||t.changed()||e.sort&&t.modified(e.sort.fields))&&(this.value=(e.sort?t.source.slice().sort(Ca(e.sort)):t.source).map(e.field))}});function jO(e,t,n,r){let i=us[e](t,n);return{init:i.init||Sp,update:function(a,o){o[r]=i.next(a)}}}var us={row_number:function(){return{next:e=>e.index+1}},rank:function(){let e;return{init:()=>e=1,next:t=>{let n=t.index,r=t.data;return n&&t.compare(r[n-1],r[n])?e=n+1:e}}},dense_rank:function(){let e;return{init:()=>e=1,next:t=>{let n=t.index,r=t.data;return n&&t.compare(r[n-1],r[n])?++e:e}}},percent_rank:function(){let e=us.rank(),t=e.next;return{init:e.init,next:n=>(t(n)-1)/(n.data.length-1)}},cume_dist:function(){let e;return{init:()=>e=0,next:t=>{let n=t.data,r=t.compare,i=t.index;if(e0||T("ntile num must be greater than zero.");let n=us.cume_dist(),r=n.next;return{init:n.init,next:i=>Math.ceil(t*r(i))}},lag:function(e,t){return t=+t||1,{next:n=>{let r=n.index-t;return r>=0?e(n.data[r]):null}}},lead:function(e,t){return t=+t||1,{next:n=>{let r=n.index+t,i=n.data;return re(t.data[t.i0])}},last_value:function(e){return{next:t=>e(t.data[t.i1-1])}},nth_value:function(e,t){return t=+t,t>0||T("nth_value nth must be greater than zero."),{next:n=>{let r=n.i0+(t-1);return rt=null,next:n=>{let r=e(n.data[n.index]);return r==null?t:t=r}}},next_value:function(e){let t,n;return{init:()=>(t=null,n=-1),next:r=>{let i=r.data;return r.index<=n?t:(n=qO(e,i,r.index))<0?(n=i.length,t=null):t=e(i[n])}}}};function qO(e,t,n){for(let r=t.length;ns[m]=1)}h(e.sort),t.forEach((p,m)=>{let g=n[m],y=r[m],v=i[m]||null,b=Qe(g),w=Gw(p,b,a[m]);if(h(g),o.push(w),ce(us,p))l.push(jO(p,g,y,w));else{if(g==null&&p!=="count"&&T("Null aggregate field specified."),p==="count"){c.push(w);return}d=!1;let A=u[b];A||(A=u[b]=[],A.field=g,f.push(A)),A.push(Hw(p,v,w))}}),(c.length||f.length)&&(this.cell=WO(f,c,d)),this.inputs=Object.keys(s)}var bA=vA.prototype;bA.init=function(){this.windows.forEach(e=>e.init()),this.cell&&this.cell.init()},bA.update=function(e,t){let n=this.cell,r=this.windows,i=e.data,a=r&&r.length,o;if(n){for(o=e.p0;oXw(s,s.field));let r={num:0,agg:null,store:!1,count:t};if(!n)for(var i=e.length,a=r.agg=Array(i),o=0;othis.group(i(l)),o=this.state;(!o||n)&&(o=this.state=new vA(e)),n||t.modified(o.inputs)?(this.value={},t.visit(t.SOURCE,l=>a(l).add(l))):(t.visit(t.REM,l=>a(l).remove(l)),t.visit(t.ADD,l=>a(l).add(l)));for(let l=0,s=this._mlen;l0&&!i(a[n],a[n-1])&&(e.i0=t.left(a,a[n])),r=h;--p)l.point(b[p],w[p]);l.lineEnd(),l.areaEnd()}y&&(b[d]=+e(g,d,f),w[d]=+t(g,d,f),l.point(r?+r(g,d,f):b[d],n?+n(g,d,f):w[d]))}if(v)return l=null,v+""||null}function c(){return lw().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:qt(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:qt(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:qt(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:qt(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:qt(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:qt(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:qt(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),u):a},u}var XO={draw(e,t){let n=k7(t/D7);e.moveTo(n,0),e.arc(0,0,n,0,_7)}};function YO(e,t){let n=null,r=aw(i);e=typeof e=="function"?e:qt(e||XO),t=typeof t=="function"?t:qt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:qt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:qt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Li(e,t){if(typeof document<"u"&&document.createElement){let n=document.createElement("canvas");if(n&&n.getContext)return n.width=e,n.height=t,n}return null}var JO=()=>typeof Image<"u"?Image:null;function wA(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,nw),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return wA(e).unknown(t)},e=arguments.length?Array.from(e,nw):[0,1],Lo(n)}function AA(e){return Math.log(e)}function EA(e){return Math.exp(e)}function QO(e){return-Math.log(-e)}function KO(e){return-Math.exp(-e)}function ZO(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eB(e){return e===10?ZO:e===Math.E?Math.exp:t=>e**+t}function tB(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function kA(e){return(t,n)=>-e(-t,n)}function Wm(e){let t=e(AA,EA),n=t.domain,r=10,i,a;function o(){return i=tB(r),a=eB(r),n()[0]<0?(i=kA(i),a=kA(a),e(QO,KO)):e(AA,EA),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{let s=n(),u=s[0],c=s[s.length-1],f=c0){for(;d<=h;++d)for(p=1;pc)break;y.push(m)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(m=d>0?p/a(-d):p*a(d),!(mc)break;y.push(m)}y.length*2{if(l??(l=10),s??(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=o7(s)).precision==null&&(s.trim=!0),s=l7(s)),l===1/0)return s;let u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*rn(i7(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function _A(){let e=Wm(Ip()).domain([1,10]);return e.copy=()=>Pp(e,_A()).base(e.base()),Fa.apply(e,arguments),e}function DA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function FA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Gm(e){var t=1,n=e(DA(t),FA(t));return n.constant=function(r){return arguments.length?e(DA(t=+r),FA(t)):t},Lo(n)}function CA(){var e=Gm(Ip());return e.copy=function(){return Pp(e,CA()).constant(e.constant())},Fa.apply(e,arguments)}function $A(e){return function(t){return t<0?-((-t)**+e):t**+e}}function nB(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function rB(e){return e<0?-e*e:e*e}function Hm(e){var t=e(Mi,Mi),n=1;function r(){return n===1?e(Mi,Mi):n===.5?e(nB,rB):e($A(n),$A(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Lo(t)}function Vm(){var e=Hm(Ip());return e.copy=function(){return Pp(e,Vm()).exponent(e.exponent())},Fa.apply(e,arguments),e}function iB(){return Vm.apply(null,arguments).exponent(.5)}function SA(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=Array(l-1);++o0?n[l-1]:e[0],l=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return MA().domain([e,t]).range(i).unknown(a)},Fa.apply(Lo(o),arguments)}function OA(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[dc(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return OA().domain(e).range(t).unknown(n)},Fa.apply(i,arguments)}function aB(){return Fa.apply(a7(t7,n7,p7,d7,c7,f7,s7,m7,u7,h7).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bc(){var e=0,t=1,n,r,i,a,o=Mi,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,p;return arguments.length?([h,p]=d,o=f(h,p),u):[o(0),o(1)]}}return u.range=c(Up),u.rangeRound=c(Wp),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function Pi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Xm(){var e=Lo(Bc()(Mi));return e.copy=function(){return Pi(e,Xm())},Oi.apply(e,arguments)}function BA(){var e=Wm(Bc()).domain([1,10]);return e.copy=function(){return Pi(e,BA()).base(e.base())},Oi.apply(e,arguments)}function zA(){var e=Gm(Bc());return e.copy=function(){return Pi(e,zA()).constant(e.constant())},Oi.apply(e,arguments)}function Ym(){var e=Hm(Bc());return e.copy=function(){return Pi(e,Ym()).exponent(e.exponent())},Oi.apply(e,arguments)}function oB(){return Ym.apply(null,arguments).exponent(.5)}function zc(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,u=Mi,c,f=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(r*m0?r:1:0}var vB="identity",Nc="linear",Km="sqrt",Zm="symlog",bB="time",Ii="sequential",Uo="diverging",cs="quantile",e0="quantize",LA="threshold",xB="ordinal",wB="point",AB="band",EB="bin-ordinal",ct="continuous",fs="discrete",ds="discretizing",Rn="interpolating",t0="temporal";function kB(e){return function(t){let n=t[0],r=t[1],i;return r=r&&n[s]<=i&&(a<0&&(a=s),o=s);if(!(a<0))return r=e.invertExtent(n[a]),i=e.invertExtent(n[o]),[r[0]===void 0?r[1]:r[0],i[1]===void 0?i[0]:i[1]]}}function n0(){let e=rw().unknown(void 0),t=e.domain,n=e.range,r=[0,1],i,a,o=!1,l=0,s=0,u=.5;delete e.unknown;function c(){let f=t().length,d=r[1]m+i*y);return n(d?g.reverse():g)}return e.domain=function(f){return arguments.length?(t(f),c()):t()},e.range=function(f){return arguments.length?(r=[+f[0],+f[1]],c()):r.slice()},e.rangeRound=function(f){return r=[+f[0],+f[1]],o=!0,c()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(f){return arguments.length?(o=!!f,c()):o},e.padding=function(f){return arguments.length?(s=Math.max(0,Math.min(1,f)),l=s,c()):l},e.paddingInner=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),c()):l},e.paddingOuter=function(f){return arguments.length?(s=Math.max(0,Math.min(1,f)),c()):s},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),c()):u},e.invertRange=function(f){if(f[0]==null||f[1]==null)return;let d=r[1]r[1-d])))return y=Math.max(0,jp(h,m)-1),v=m===g?y:jp(h,g)-1,m-h[y]>a+1e-10&&++y,d&&(b=y,y=p-v,v=p-b),y>v?void 0:t().slice(y,v+1)},e.invert=function(f){let d=e.invertRange([f,f]);return d&&d[0]},e.copy=function(){return n0().domain(t()).range(r).round(o).paddingInner(l).paddingOuter(s).align(u)},c()}function PA(e){let t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,e.copy=function(){return PA(t())},e}function DB(){return PA(n0().paddingInner(1))}var FB=Array.prototype.map;function CB(e){return FB.call(e,zn)}var $B=Array.prototype.slice;function IA(){let e=[],t=[];function n(r){return r==null||r!==r?void 0:t[(dc(e,r)-1)%t.length]}return n.domain=function(r){return arguments.length?(e=CB(r),n):e.slice()},n.range=function(r){return arguments.length?(t=$B.call(r),n):t.slice()},n.tickFormat=function(r,i){return K4(e[0],Oe(e),r??10,i)},n.copy=function(){return IA().domain(n.domain()).range(n.range())},n}var Rc=new Map,jA=Symbol("vega_scale");function qA(e){return e[jA]=!0,e}function UA(e){return e&&e[jA]===!0}function SB(e,t,n){let r=function(){let i=t();return i.invertRange||(i.invertRange=i.invert?kB(i):i.invertExtent?_B(i):void 0),i.type=e,qA(i)};return r.metadata=_r(ie(n)),r}function ke(e,t,n){return arguments.length>1?(Rc.set(e,SB(e,t,n)),this):WA(e)?Rc.get(e):void 0}ke(vB,wA),ke(Nc,Z4,ct),ke("log",_A,[ct,"log"]),ke("pow",Vm,ct),ke(Km,iB,ct),ke(Zm,CA,ct),ke(bB,r7,[ct,t0]),ke("utc",aB,[ct,t0]),ke(Ii,Xm,[ct,Rn]),ke(`${Ii}-${Nc}`,Xm,[ct,Rn]),ke(`${Ii}-log`,BA,[ct,Rn,"log"]),ke(`${Ii}-pow`,Ym,[ct,Rn]),ke(`${Ii}-${Km}`,oB,[ct,Rn]),ke(`${Ii}-${Zm}`,zA,[ct,Rn]),ke(`${Uo}-${Nc}`,NA,[ct,Rn]),ke(`${Uo}-log`,RA,[ct,Rn,"log"]),ke(`${Uo}-pow`,Jm,[ct,Rn]),ke(`${Uo}-${Km}`,lB,[ct,Rn]),ke(`${Uo}-${Zm}`,TA,[ct,Rn]),ke(cs,SA,[ds,cs]),ke(e0,MA,ds),ke(LA,OA,ds),ke(EB,IA,[fs,ds]),ke(xB,rw,fs),ke(AB,n0,fs),ke(wB,DB,fs);function WA(e){return Rc.has(e)}function Sa(e,t){let n=Rc.get(e);return n&&n.metadata[t]}function r0(e){return Sa(e,ct)}function Wo(e){return Sa(e,fs)}function i0(e){return Sa(e,ds)}function GA(e){return Sa(e,"log")}function MB(e){return Sa(e,t0)}function HA(e){return Sa(e,Rn)}function VA(e){return Sa(e,cs)}var OB=["clamp","base","constant","exponent"];function XA(e,t){let n=t[0],r=Oe(t)-n;return function(i){return e(n+i*r)}}function Tc(e,t,n){return iw(a0(t||"rgb",n),e)}function YA(e,t){let n=Array(t),r=t+1;for(let i=0;ie[l]?o[l](e[l]()):0),o)}function a0(e,t){let n=b7[BB(e)];return t!=null&&n&&n.gamma?n.gamma(t):n}function BB(e){return"interpolate"+e.toLowerCase().split("-").map(t=>t[0].toUpperCase()+t.slice(1)).join("")}var zB={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},NB={accent:uB,category10:sB,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:cB,observable10:fB,paired:dB,pastel1:hB,pastel2:pB,set1:mB,set2:gB,set3:yB,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function QA(e){if(Z(e))return e;let t=e.length/6|0,n=Array(t);for(let r=0;rTc(QA(e)));function o0(e,t){return e&&(e=e.toLowerCase()),arguments.length>1?(ZA[e]=t,this):ZA[e]}var RB=e=>Z(e)?e.map(t=>String(t)):String(e),TB=(e,t)=>e[1]-t[1],LB=(e,t)=>t[1]-e[1];function l0(e,t,n){let r;return _a(t)&&(e.bins&&(t=Math.max(t,e.bins.length)),n!=null&&(t=Math.min(t,Math.floor(sc(e.domain())/n||1)+1))),ue(t)&&(r=t.step,t=t.interval),Ee(t)&&(t=e.type==="time"?Rp(t):e.type=="utc"?$p(t):T("Only time and utc scales accept interval strings."),r&&(t=t.every(r))),t}function eE(e,t,n){let r=e.range(),i=r[0],a=Oe(r),o=TB;if(i>a&&(r=a,a=i,i=r,o=LB),i=Math.floor(i),a=Math.ceil(a),t=t.map(l=>[l,e(l)]).filter(l=>i<=l[1]&&l[1]<=a).sort(o).map(l=>l[0]),n>0&&t.length>1){let l=[t[0],Oe(t)];for(;t.length>n&&t.length>=3;)t=t.filter((s,u)=>!(u%2));t.length<3&&(t=l)}return t}function s0(e,t){return e.bins?eE(e,e.bins,t):e.ticks?e.ticks(t):e.domain()}function tE(e,t,n,r,i,a){let o=t.type,l=RB;if(o==="time"||i==="time")l=e.timeFormat(r);else if(o==="utc"||i==="utc")l=e.utcFormat(r);else if(GA(o)){let s=e.formatFloat(r);if(a||t.bins)l=s;else{let u=nE(t,n,!1);l=c=>u(c)?s(c):""}}else if(t.tickFormat){let s=t.domain();l=e.formatSpan(s[0],s[s.length-1],n,r)}else r&&(l=e.format(r));return l}function nE(e,t,n){let r=s0(e,t),i=e.base(),a=Math.log(i),o=Math.max(1,i*t/r.length),l=s=>{let u=s/i**+Math.round(Math.log(s)/a);return u*i1?r[1]-r[0]:r[0],o;for(o=1;ou0[e.type]||e.bins;function aE(e,t,n,r,i,a,o){let l=rE[t.type]&&a!=="time"&&a!=="utc"?PB(e,t,i):tE(e,t,n,i,a,o);return r==="symbol"&&qB(t)?UB(l):r==="discrete"?WB(l):GB(l)}var UB=e=>(t,n,r)=>{let i=oE(r[n+1],oE(r.max,1/0)),a=lE(t,e),o=lE(i,e);return a&&o?a+" \u2013 "+o:o?"< "+o:"\u2265 "+a},oE=(e,t)=>e??t,WB=e=>(t,n)=>n?e(t):null,GB=e=>t=>e(t),lE=(e,t)=>Number.isFinite(e)?t(e):null;function HB(e){let t=e.domain(),n=t.length-1,r=+t[0],i=+Oe(t),a=i-r;if(e.type==="threshold"){let o=n?a/n:.1;r-=o,i+=o,a=i-r}return o=>(o-r)/a}function VB(e,t,n,r){let i=r||t.type;return Ee(n)&&MB(i)&&(n=n.replace(/%a/g,"%A").replace(/%b/g,"%B")),!n&&i==="time"?e.timeFormat("%A, %d %B %Y, %X"):!n&&i==="utc"?e.utcFormat("%A, %d %B %Y, %X UTC"):aE(e,t,5,null,n,r,!0)}function sE(e,t,n){n||(n={});let r=Math.max(3,n.maxlen||7),i=VB(e,t,n.format,n.formatType);if(i0(t.type)){let a=iE(t).slice(1).map(i),o=a.length;return`${o} boundar${o===1?"y":"ies"}: ${a.join(", ")}`}else if(Wo(t.type)){let a=t.domain(),o=a.length,l=o>r?a.slice(0,r-2).map(i).join(", ")+", ending with "+a.slice(-1).map(i):a.map(i).join(", ");return`${o} value${o===1?"":"s"}: ${l}`}else{let a=t.domain();return`values from ${i(a[0])} to ${i(Oe(a))}`}}var uE=0;function XB(){uE=0}var Lc="p_";function c0(e){return e&&e.gradient}function cE(e,t,n){let r=e.gradient,i=e.id,a=r==="radial"?Lc:"";return i||(i=e.id="gradient_"+uE++,r==="radial"?(e.x1=Cr(e.x1,.5),e.y1=Cr(e.y1,.5),e.r1=Cr(e.r1,0),e.x2=Cr(e.x2,.5),e.y2=Cr(e.y2,.5),e.r2=Cr(e.r2,.5),a=Lc):(e.x1=Cr(e.x1,0),e.y1=Cr(e.y1,0),e.x2=Cr(e.x2,1),e.y2=Cr(e.y2,0))),t[i]=e,"url("+(n||"")+"#"+a+i+")"}function Cr(e,t){return e??t}function fE(e,t){var n=[],r;return r={gradient:"linear",x1:e?e[0]:0,y1:e?e[1]:0,x2:t?t[0]:1,y2:t?t[1]:0,stops:n,stop:function(i,a){return n.push({offset:i,color:a}),r}}}var dE={basis:{curve:$7},"basis-closed":{curve:z7},"basis-open":{curve:N7},bundle:{curve:L7,tension:"beta",value:.85},cardinal:{curve:j7,tension:"tension",value:0},"cardinal-open":{curve:O7,tension:"tension",value:0},"cardinal-closed":{curve:B7,tension:"tension",value:0},"catmull-rom":{curve:G7,tension:"alpha",value:.5},"catmull-rom-closed":{curve:T7,tension:"alpha",value:.5},"catmull-rom-open":{curve:M7,tension:"alpha",value:.5},linear:{curve:ow},"linear-closed":{curve:U7},monotone:{horizontal:I7,vertical:S7},natural:{curve:R7},step:{curve:q7},"step-after":{curve:W7},"step-before":{curve:P7}};function f0(e,t,n){var r=ce(dE,e)&&dE[e],i=null;return r&&(i=r.curve||r[t||"vertical"],r.tension&&n!=null&&(i=i[r.tension](n))),i}var YB={m:2,l:2,h:1,v:1,z:0,c:6,s:4,q:4,t:2,a:7},JB=/[mlhvzcsqta]([^mlhvzcsqta]+|$)/gi,QB=/^[+-]?(([0-9]*\.[0-9]+)|([0-9]+\.)|([0-9]+))([eE][+-]?[0-9]+)?/,KB=/^((\s+,?\s*)|(,\s*))/,ZB=/^[01]/;function Go(e){let t=[];return(e.match(JB)||[]).forEach(n=>{let r=n[0],i=r.toLowerCase(),a=YB[i],o=ez(i,a,n.slice(1).trim()),l=o.length;if(l1&&(m=Math.sqrt(m),n*=m,r*=m);let g=d/n,y=f/n,v=-f/r,b=d/r,w=g*l+y*s,A=v*l+b*s,E=g*e+y*t,x=v*e+b*t,k=1/((E-w)*(E-w)+(x-A)*(x-A))-.25;k<0&&(k=0);let _=Math.sqrt(k);a==i&&(_=-_);let F=.5*(w+E)-_*(x-A),$=.5*(A+x)+_*(E-w),R=Math.atan2(A-$,w-F),C=Math.atan2(x-$,E-F)-R;C<0&&a===1?C+=$r:C>0&&a===0&&(C-=$r);let M=Math.ceil(Math.abs(C/(Ma+.001))),D=[];for(let S=0;S+e}function Pc(e,t,n){return Math.max(t,Math.min(e,n))}function vE(){var e=oz,t=lz,n=sz,r=uz,i=ri(0),a=i,o=i,l=i,s=null;function u(c,f,d){var h,p=f??+e.call(this,c),m=d??+t.call(this,c),g=+n.call(this,c),y=+r.call(this,c),v=Math.min(g,y)/2,b=Pc(+i.call(this,c),0,v),w=Pc(+a.call(this,c),0,v),A=Pc(+o.call(this,c),0,v),E=Pc(+l.call(this,c),0,v);if(s||(s=h=Gp()),b<=0&&w<=0&&A<=0&&E<=0)s.rect(p,m,g,y);else{var x=p+g,k=m+y;s.moveTo(p+b,m),s.lineTo(x-w,m),s.bezierCurveTo(x-qi*w,m,x,m+qi*w,x,m+w),s.lineTo(x,k-E),s.bezierCurveTo(x,k-qi*E,x-qi*E,k,x-E,k),s.lineTo(p+A,k),s.bezierCurveTo(p+qi*A,k,p,k-qi*A,p,k-A),s.lineTo(p,m+b),s.bezierCurveTo(p,m+qi*b,p+qi*b,m,p+b,m),s.closePath()}if(h)return s=null,h+""||null}return u.x=function(c){return arguments.length?(e=ri(c),u):e},u.y=function(c){return arguments.length?(t=ri(c),u):t},u.width=function(c){return arguments.length?(n=ri(c),u):n},u.height=function(c){return arguments.length?(r=ri(c),u):r},u.cornerRadius=function(c,f,d,h){return arguments.length?(i=ri(c),a=f==null?i:ri(f),l=d==null?i:ri(d),o=h==null?a:ri(h),u):i},u.context=function(c){return arguments.length?(s=c??null,u):s},u}function bE(){var e,t,n,r,i=null,a,o,l,s;function u(f,d,h){let p=h/2;if(a){var m=l-d,g=f-o;if(m||g){var y=Math.hypot(m,g),v=(m/=y)*s,b=(g/=y)*s,w=Math.atan2(g,m);i.moveTo(o-v,l-b),i.lineTo(f-m*p,d-g*p),i.arc(f,d,p,w-Math.PI,w),i.lineTo(o+v,l+b),i.arc(o,l,s,w,w+Math.PI)}else i.arc(f,d,p,0,$r);i.closePath()}else a=1;o=f,l=d,s=p}function c(f){var d,h=f.length,p,m=!1,g;for(i??(i=g=Gp()),d=0;d<=h;++d)!(de.x||0,gs=e=>e.y||0,cz=e=>e.width||0,fz=e=>e.height||0,dz=e=>(e.x||0)+(e.width||0),hz=e=>(e.y||0)+(e.height||0),pz=e=>e.startAngle||0,mz=e=>e.endAngle||0,gz=e=>e.padAngle||0,yz=e=>e.innerRadius||0,vz=e=>e.outerRadius||0,bz=e=>e.cornerRadius||0,xz=e=>ps(e.cornerRadiusTopLeft,e.cornerRadius)||0,wz=e=>ps(e.cornerRadiusTopRight,e.cornerRadius)||0,Az=e=>ps(e.cornerRadiusBottomRight,e.cornerRadius)||0,Ez=e=>ps(e.cornerRadiusBottomLeft,e.cornerRadius)||0,kz=e=>ps(e.size,64),_z=e=>e.size||1,Ic=e=>e.defined!==!1,Dz=e=>yE(e.shape||"circle"),Fz=F7().startAngle(pz).endAngle(mz).padAngle(gz).innerRadius(yz).outerRadius(vz).cornerRadius(bz),Cz=xA().x(ms).y1(gs).y0(hz).defined(Ic),$z=xA().y(gs).x1(ms).x0(dz).defined(Ic),Sz=lw().x(ms).y(gs).defined(Ic),Mz=vE().x(ms).y(gs).width(cz).height(fz).cornerRadius(xz,wz,Az,Ez),Oz=YO().type(Dz).size(kz),Bz=bE().x(ms).y(gs).defined(Ic).size(_z);function m0(e){return e.cornerRadius||e.cornerRadiusTopLeft||e.cornerRadiusTopRight||e.cornerRadiusBottomRight||e.cornerRadiusBottomLeft}function zz(e,t){return Fz.context(e)(t)}function Nz(e,t){let n=t[0],r=n.interpolate||"linear";return(n.orient==="horizontal"?$z:Cz).curve(f0(r,n.orient,n.tension)).context(e)(t)}function Rz(e,t){let n=t[0],r=n.interpolate||"linear";return Sz.curve(f0(r,n.orient,n.tension)).context(e)(t)}function Vo(e,t,n,r){return Mz.context(e)(t,n,r)}function Tz(e,t){return(t.mark.shape||t.shape).context(e)(t)}function Lz(e,t){return Oz.context(e)(t)}function Pz(e,t){return Bz.context(e)(t)}var xE=1;function Iz(){xE=1}function g0(e,t,n){var r=t.clip,i=e._defs,a=t.clip_id||(t.clip_id="clip"+xE++),o=i.clipping[a]||(i.clipping[a]={id:a});return me(r)?o.path=r(null):m0(n)?o.path=Vo(null,n,0,0):(o.width=n.width||0,o.height=n.height||0),"url(#"+a+")"}function lt(e){this.clear(),e&&this.union(e)}lt.prototype={clone(){return new lt(this)},clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this},empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},equals(e){return this.x1===e.x1&&this.y1===e.y1&&this.x2===e.x2&&this.y2===e.y2},set(e,t,n,r){return nthis.x2&&(this.x2=e),t>this.y2&&(this.y2=t),this},expand(e){return this.x1-=e,this.y1-=e,this.x2+=e,this.y2+=e,this},round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this},scale(e){return this.x1*=e,this.y1*=e,this.x2*=e,this.y2*=e,this},translate(e,t){return this.x1+=e,this.x2+=e,this.y1+=t,this.y2+=t,this},rotate(e,t,n){let r=this.rotatedPoints(e,t,n);return this.clear().add(r[0],r[1]).add(r[2],r[3]).add(r[4],r[5]).add(r[6],r[7])},rotatedPoints(e,t,n){var{x1:r,y1:i,x2:a,y2:o}=this,l=Math.cos(e),s=Math.sin(e),u=t-t*l+n*s,c=n-t*s-n*l;return[l*r-s*i+u,s*r+l*i+c,l*r-s*o+u,s*r+l*o+c,l*a-s*i+u,s*a+l*i+c,l*a-s*o+u,s*a+l*o+c]},union(e){return e.x1this.x2&&(this.x2=e.x2),e.y2>this.y2&&(this.y2=e.y2),this},intersect(e){return e.x1>this.x1&&(this.x1=e.x1),e.y1>this.y1&&(this.y1=e.y1),e.x2=e.x2&&this.y1<=e.y1&&this.y2>=e.y2},alignsWith(e){return e&&(this.x1==e.x1||this.x2==e.x2||this.y1==e.y1||this.y2==e.y2)},intersects(e){return e&&!(this.x2e.x2||this.y2e.y2)},contains(e,t){return!(ethis.x2||tthis.y2)},width(){return this.x2-this.x1},height(){return this.y2-this.y1}};function jc(e){this.mark=e,this.bounds=this.bounds||new lt}function qc(e){jc.call(this,e),this.items=this.items||[]}G(qc,jc);var wE=class{constructor(e){this._pending=0,this._loader=e||cc()}pending(){return this._pending}sanitizeURL(e){let t=this;return AE(t),t._loader.sanitize(e,{context:"href"}).then(n=>(ys(t),n)).catch(()=>(ys(t),null))}loadImage(e){let t=this,n=JO();return AE(t),t._loader.sanitize(e,{context:"image"}).then(r=>{let i=r.href;if(!i||!n)throw{url:i};let a=new n,o=ce(r,"crossOrigin")?r.crossOrigin:"anonymous";return o!=null&&(a.crossOrigin=o),a.onload=()=>ys(t),a.onerror=()=>ys(t),a.src=i,a}).catch(r=>(ys(t),{complete:!1,width:0,height:0,src:r&&r.url||""}))}ready(){let e=this;return new Promise(t=>{function n(r){e.pending()?setTimeout(()=>{n(!0)},10):t(r)}n(!1)})}};function AE(e){e._pending+=1}function ys(e){--e._pending}function ii(e,t,n){if(t.stroke&&t.opacity!==0&&t.strokeOpacity!==0){let r=t.strokeWidth==null?1:+t.strokeWidth;e.expand(r+(n?jz(t,r):0))}return e}function jz(e,t){return e.strokeJoin&&e.strokeJoin!=="miter"?0:t}var qz=$r-1e-8,Uc,Wc,Gc,Oa,y0,Hc,v0,b0,Ui=(e,t)=>Uc.add(e,t),Vc=(e,t)=>Ui(Wc=e,Gc=t),EE=e=>Ui(e,Uc.y1),kE=e=>Ui(Uc.x1,e),Ba=(e,t)=>y0*e+v0*t,za=(e,t)=>Hc*e+b0*t,x0=(e,t)=>Ui(Ba(e,t),za(e,t)),w0=(e,t)=>Vc(Ba(e,t),za(e,t));function vs(e,t){return Uc=e,t?(Oa=t*ji,y0=b0=Math.cos(Oa),Hc=Math.sin(Oa),v0=-Hc):(y0=b0=1,Oa=Hc=v0=0),Uz}var Uz={beginPath(){},closePath(){},moveTo:w0,lineTo:w0,rect(e,t,n,r){Oa?(x0(e+n,t),x0(e+n,t+r),x0(e,t+r),w0(e,t)):(Ui(e+n,t+r),Vc(e,t))},quadraticCurveTo(e,t,n,r){let i=Ba(e,t),a=za(e,t),o=Ba(n,r),l=za(n,r);_E(Wc,i,o,EE),_E(Gc,a,l,kE),Vc(o,l)},bezierCurveTo(e,t,n,r,i,a){let o=Ba(e,t),l=za(e,t),s=Ba(n,r),u=za(n,r),c=Ba(i,a),f=za(i,a);DE(Wc,o,s,c,EE),DE(Gc,l,u,f,kE),Vc(c,f)},arc(e,t,n,r,i,a){if(r+=Oa,i+=Oa,Wc=n*Math.cos(i)+e,Gc=n*Math.sin(i)+t,Math.abs(i-r)>qz)Ui(e-n,t-n),Ui(e+n,t+n);else{let o=u=>Ui(n*Math.cos(u)+e,n*Math.sin(u)+t),l,s;if(o(r),o(i),i!==r)if(r%=$r,r<0&&(r+=$r),i%=$r,i<0&&(i+=$r),ii;++s,l-=Ma)o(l);else for(l=r-r%Ma+Ma,s=0;s<4&&ltz?(c=o*o+l*a,c>=0&&(c=Math.sqrt(c),s=(-o+c)/a,u=(-o-c)/a)):s=.5*l/o,0d)return!1;m>f&&(f=m)}else if(h>0){if(m0?(e.globalAlpha=n,e.fillStyle=ME(e,t,t.fill),!0):!1}var Gz=[];function Jo(e,t,n){var r=(r=t.strokeWidth)??1;return r<=0?!1:(n*=t.strokeOpacity==null?1:t.strokeOpacity,n>0?(e.globalAlpha=n,e.strokeStyle=ME(e,t,t.stroke),e.lineWidth=r,e.lineCap=t.strokeCap||"butt",e.lineJoin=t.strokeJoin||"miter",e.miterLimit=t.strokeMiterLimit||10,e.setLineDash&&(e.setLineDash(t.strokeDash||Gz),e.lineDashOffset=t.strokeDashOffset||0),!0):!1)}function Hz(e,t){return e.zindex-t.zindex||e.index-t.index}function _0(e){if(!e.zdirty)return e.zitems;var t=e.items,n=[],r,i,a;for(i=0,a=t.length;i=0;)if(r=t(n[i]))return r;if(n===a){for(n=e.items,i=n.length;--i>=0;)if(!n[i].zindex&&(r=t(n[i])))return r}return null}function D0(e){return function(t,n,r){Kn(n,i=>{(!r||r.intersects(i.bounds))&&OE(e,t,i,i)})}}function Vz(e){return function(t,n,r){n.items.length&&(!r||r.intersects(n.bounds))&&OE(e,t,n.items[0],n.items)}}function OE(e,t,n,r){var i=n.opacity==null?1:n.opacity;i!==0&&(e(t,r)||(Yo(t,n),n.fill&&Xc(t,n,i)&&t.fill(),n.stroke&&Jo(t,n,i)&&t.stroke()))}function Jc(e){return e||(e=Bn),function(t,n,r,i,a,o){return r*=t.pixelRatio,i*=t.pixelRatio,Yc(n,l=>{let s=l.bounds;if(!(s&&!s.contains(a,o)||!s)&&e(t,l,r,i,a,o))return l})}}function bs(e,t){return function(n,r,i,a){var o=Array.isArray(r)?r[0]:r,l=t??o.fill,s=o.stroke&&n.isPointInStroke,u,c;return s&&(u=o.strokeWidth,c=o.strokeCap,n.lineWidth=u??1,n.lineCap=c??"butt"),e(n,r)?!1:l&&n.isPointInPath(i,a)||s&&n.isPointInStroke(i,a)}}function F0(e){return Jc(bs(e))}function Na(e,t){return"translate("+e+","+t+")"}function C0(e){return"rotate("+e+")"}function Xz(e,t){return"scale("+e+","+t+")"}function BE(e){return Na(e.x||0,e.y||0)}function Yz(e){return Na(e.x||0,e.y||0)+(e.angle?" "+C0(e.angle):"")}function Jz(e){return Na(e.x||0,e.y||0)+(e.angle?" "+C0(e.angle):"")+(e.scaleX||e.scaleY?" "+Xz(e.scaleX||1,e.scaleY||1):"")}function $0(e,t,n){function r(o,l){o("transform",Yz(l)),o("d",t(null,l))}function i(o,l){return t(vs(o,l.angle),l),ii(o,l).translate(l.x||0,l.y||0)}function a(o,l){var s=l.x||0,u=l.y||0,c=l.angle||0;o.translate(s,u),c&&o.rotate(c*=ji),o.beginPath(),t(o,l),c&&o.rotate(-c),o.translate(-s,-u)}return{type:e,tag:"path",nested:!1,attr:r,bound:i,draw:D0(a),pick:F0(a),isect:n||E0(a)}}var Qz=$0("arc",zz);function Kz(e,t){for(var n=e[0].orient==="horizontal"?t[1]:t[0],r=e[0].orient==="horizontal"?"y":"x",i=e.length,a=1/0,o,l;--i>=0;)e[i].defined!==!1&&(l=Math.abs(e[i][r]-n),l=0;)if(e[r].defined!==!1&&(i=e[r].x-t[0],a=e[r].y-t[1],o=i*i+a*a,o=0;)if(e[n].defined!==!1&&(r=e[n].x-t[0],i=e[n].y-t[1],a=r*r+i*i,r=e[n].size||1,a.5&&t<1.5?.5-Math.abs(t-1):0:e.strokeOffset}function rN(e,t){e("transform",BE(t))}function RE(e,t){let n=NE(t);e("d",Vo(null,t,n,n))}function iN(e,t){e("class","background"),e("aria-hidden",!0),RE(e,t)}function aN(e,t){e("class","foreground"),e("aria-hidden",!0),t.strokeForeground?RE(e,t):e("d","")}function oN(e,t,n){e("clip-path",t.clip?g0(n,t,t):null)}function lN(e,t){if(!t.clip&&t.items){let n=t.items,r=n.length;for(let i=0;i{let a=i.x||0,o=i.y||0,l=i.strokeForeground,s=i.opacity==null?1:i.opacity;(i.stroke||i.fill)&&s&&(xs(e,i,a,o),Yo(e,i),i.fill&&Xc(e,i,s)&&e.fill(),i.stroke&&!l&&Jo(e,i,s)&&e.stroke()),e.save(),e.translate(a,o),i.clip&&zE(e,i),n&&n.translate(-a,-o),Kn(i,u=>{(u.marktype==="group"||r==null||r.includes(u.marktype))&&this.draw(e,u,n,r)}),n&&n.translate(a,o),e.restore(),l&&i.stroke&&s&&(xs(e,i,a,o),Yo(e,i),Jo(e,i,s)&&e.stroke())})}function dN(e,t,n,r,i,a){if(t.bounds&&!t.bounds.contains(i,a)||!t.items)return null;let o=n*e.pixelRatio,l=r*e.pixelRatio;return Yc(t,s=>{let u,c,f,d=s.bounds;if(d&&!d.contains(i,a))return;c=s.x||0,f=s.y||0;let h=c+(s.width||0),p=f+(s.height||0),m=s.clip;if(m&&(ih||ap))return;if(e.save(),e.translate(c,f),c=i-c,f=a-f,m&&m0(s)&&!cN(e,s,o,l))return e.restore(),null;let g=s.strokeForeground,y=t.interactive!==!1;return y&&g&&s.stroke&&uN(e,s,o,l)?(e.restore(),s):(u=Yc(s,v=>hN(v,c,f)?this.pick(v,n,r,c,f):null),!u&&y&&(s.fill||!g&&s.stroke)&&sN(e,s,o,l)&&(u=s),e.restore(),u||null)})}function hN(e,t,n){return(e.interactive!==!1||e.marktype==="group")&&e.bounds&&e.bounds.contains(t,n)}var pN={type:"group",tag:"g",nested:!1,attr:rN,bound:lN,draw:fN,pick:dN,isect:CE,content:oN,background:iN,foreground:aN},ws={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"};function M0(e,t){var n=e.image;return(!n||e.url&&e.url!==n.url)&&(n={complete:!1,width:0,height:0},t.loadImage(e.url).then(r=>{e.image=r,e.image.url=e.url})),n}function O0(e,t){return e.width==null?!t||!t.width?0:e.aspect!==!1&&e.height?e.height*t.width/t.height:t.width:e.width}function B0(e,t){return e.height==null?!t||!t.height?0:e.aspect!==!1&&e.width?e.width*t.height/t.width:t.height:e.height}function Qc(e,t){return e==="center"?t/2:e==="right"?t:0}function Kc(e,t){return e==="middle"?t/2:e==="bottom"?t:0}function mN(e,t,n){let r=M0(t,n),i=O0(t,r),a=B0(t,r),o=(t.x||0)-Qc(t.align,i),l=(t.y||0)-Kc(t.baseline,a);e("href",!r.src&&r.toDataURL?r.toDataURL():r.src||"",ws["xmlns:xlink"],"xlink:href"),e("transform",Na(o,l)),e("width",i),e("height",a),e("preserveAspectRatio",t.aspect===!1?"none":"xMidYMid")}function gN(e,t){let n=t.image,r=O0(t,n),i=B0(t,n),a=(t.x||0)-Qc(t.align,r),o=(t.y||0)-Kc(t.baseline,i);return e.set(a,o,a+r,o+i)}function yN(e,t,n){Kn(t,r=>{if(n&&!n.intersects(r.bounds))return;let i=M0(r,this),a=O0(r,i),o=B0(r,i);if(a===0||o===0)return;let l=(r.x||0)-Qc(r.align,a),s=(r.y||0)-Kc(r.baseline,o),u,c,f;r.aspect!==!1&&(u=i.width/i.height,c=r.width/r.height,u===u&&c===c&&u!==c&&(c{if(!(n&&!n.intersects(r.bounds))){var i=r.opacity==null?1:r.opacity;i&&LE(e,r,i)&&(Yo(e,r),e.stroke())}})}function $N(e,t,n,r){return e.isPointInStroke?LE(e,t,1)&&e.isPointInStroke(n,r):!1}var SN={type:"rule",tag:"line",nested:!1,attr:DN,bound:FN,draw:CN,pick:Jc($N),isect:$E},MN=$0("shape",Tz),ON=$0("symbol",Lz,k0),PE=z2(),wn={height:Sr,measureWidth:z0,estimateWidth:ef,width:ef,canvas:IE};IE(!0);function IE(e){wn.width=e&&Wi?z0:ef}function ef(e,t){return jE(Hi(e,t),Sr(e))}function jE(e,t){return~~(.8*e.length*t)}function z0(e,t){return Sr(e)<=0||!(t=Hi(e,t))?0:qE(t,tf(e))}function qE(e,t){let n=`(${t}) ${e}`,r=PE.get(n);return r===void 0&&(Wi.font=t,r=Wi.measureText(e).width,PE.set(n,r)),r}function Sr(e){return e.fontSize==null?11:+e.fontSize||0}function Gi(e){return e.lineHeight==null?Sr(e)+2:e.lineHeight}function BN(e){return Z(e)?e.length>1?e:e[0]:e}function As(e){return BN(e.lineBreak&&e.text&&!Z(e.text)?e.text.split(e.lineBreak):e.text)}function N0(e){let t=As(e);return(Z(t)?t.length-1:0)*Gi(e)}function Hi(e,t){let n=t==null?"":(t+"").trim();return e.limit>0&&n.length?NN(e,n):n}function zN(e){if(wn.width===z0){let t=tf(e);return n=>qE(n,t)}else if(wn.width===ef){let t=Sr(e);return n=>jE(n,t)}else return t=>wn.width(e,t)}function NN(e,t){var n=+e.limit,r=zN(e);if(r(t)>>1,r(t.slice(s))>n?o=s+1:l=s;return i+t.slice(o)}else{for(;o>>1),r(t.slice(0,s))Math.max(d,wn.width(t,h)),0)):f=wn.width(t,c),i==="center"?s-=f/2:i==="right"&&(s-=f),e.set(s+=o,u+=l,s+f,u+r),t.angle&&!n)e.rotate(t.angle*ji,o,l);else if(n===2)return e.rotatedPoints(t.angle*ji,o,l);return e}function LN(e,t,n){Kn(t,r=>{var i=r.opacity==null?1:r.opacity,a,o,l,s,u,c,f;if(!(n&&!n.intersects(r.bounds)||i===0||r.fontSize<=0||r.text==null||r.text.length===0)){if(e.font=tf(r),e.textAlign=r.align||"left",a=nf(r),o=a.x1,l=a.y1,r.angle&&(e.save(),e.translate(o,l),e.rotate(r.angle*ji),o=l=0),o+=r.dx||0,l+=(r.dy||0)+R0(r),c=As(r),Yo(e,r),Z(c))for(u=Gi(r),s=0;st;)e.removeChild(n[--r]);return e}function JE(e){return"mark-"+e.marktype+(e.role?" role-"+e.role:"")+(e.name?" "+e.name:"")}function rf(e,t){let n=t.getBoundingClientRect();return[e.clientX-n.left-(t.clientLeft||0),e.clientY-n.top-(t.clientTop||0)]}function qN(e,t,n,r){var i=e&&e.mark,a,o;if(i&&(a=An[i.marktype]).tip){for(o=rf(t,n),o[0]-=r[0],o[1]-=r[1];e=e.mark.group;)o[0]-=e.x||0,o[1]-=e.y||0;e=a.tip(i.items,o)}return e}var I0=class{constructor(e,t){this._active=null,this._handlers={},this._loader=e||cc(),this._tooltip=t||UN}initialize(e,t,n){return this._el=e,this._obj=n||null,this.origin(t)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}origin(e){return arguments.length?(this._origin=e||[0,0],this):this._origin.slice()}scene(e){return arguments.length?(this._scene=e,this):this._scene}on(){}off(){}_handlerIndex(e,t,n){for(let r=e?e.length:0;--r>=0;)if(e[r].type===t&&(!n||e[r].handler===n))return r;return-1}handlers(e){let t=this._handlers,n=[];if(e)n.push(...t[this.eventName(e)]);else for(let r in t)n.push(...t[r]);return n}eventName(e){let t=e.indexOf(".");return t<0?e:e.slice(0,t)}handleHref(e,t,n){this._loader.sanitize(n,{context:"href"}).then(r=>{let i=new MouseEvent(e.type,e),a=Vi(null,"a");for(let o in r)a.setAttribute(o,r[o]);a.dispatchEvent(i)}).catch(()=>{})}handleTooltip(e,t,n){if(t&&t.tooltip!=null){t=qN(t,e,this.canvas(),this._origin);let r=n&&t&&t.tooltip||null;this._tooltip.call(this._obj,this,e,t,r)}}getItemBoundingClientRect(e){let t=this.canvas();if(!t)return;let n=t.getBoundingClientRect(),r=this._origin,i=e.bounds,a=i.width(),o=i.height(),l=i.x1+r[0]+n.left,s=i.y1+r[1]+n.top;for(;e.mark&&(e=e.mark.group);)l+=e.x||0,s+=e.y||0;return{x:l,y:s,width:a,height:o,left:l,top:s,right:l+a,bottom:s+o}}};function UN(e,t,n,r){e.element().setAttribute("title",r||"")}var _s=class{constructor(e){this._el=null,this._bgcolor=null,this._loader=new wE(e)}initialize(e,t,n,r,i){return this._el=e,this.resize(t,n,r,i)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}background(e){return arguments.length===0?this._bgcolor:(this._bgcolor=e,this)}resize(e,t,n,r){return this._width=e,this._height=t,this._origin=n||[0,0],this._scale=r||1,this}dirty(){}render(e,t){let n=this;return n._call=function(){n._render(e,t)},n._call(),n._call=null,n}_render(){}renderAsync(e,t){let n=this.render(e,t);return this._ready?this._ready.then(()=>n):Promise.resolve(n)}_load(e,t){var n=this,r=n._loader[e](t);if(!n._ready){let i=n._call;n._ready=n._loader.ready().then(a=>{a&&i(),n._ready=null})}return r}sanitizeURL(e){return this._load("sanitizeURL",e)}loadImage(e){return this._load("loadImage",e)}},WN="keydown",GN="keypress",HN="keyup",QE="dragenter",af="dragleave",KE="dragover",j0="pointerdown",VN="pointerup",of="pointermove",lf="pointerout",ZE="pointerover",q0="mousedown",XN="mouseup",ek="mousemove",sf="mouseout",tk="mouseover",uf="click",YN="dblclick",JN="wheel",nk="mousewheel",cf="touchstart",ff="touchmove",df="touchend",QN=[WN,GN,HN,QE,af,KE,j0,VN,of,lf,ZE,q0,XN,ek,sf,tk,uf,YN,JN,nk,cf,ff,df],U0=of,Ds=sf,W0=uf,Fs=class extends I0{constructor(e,t){super(e,t),this._down=null,this._touch=null,this._first=!0,this._events={},this.events=QN,this.pointermove=ik([of,ek],[ZE,tk],[lf,sf]),this.dragover=ik([KE],[QE],[af]),this.pointerout=ak([lf,sf]),this.dragleave=ak([af])}initialize(e,t,n){return this._canvas=e&&P0(e,"canvas"),[uf,q0,j0,of,lf,af].forEach(r=>rk(this,r)),super.initialize(e,t,n)}canvas(){return this._canvas}context(){return this._canvas.getContext("2d")}DOMMouseScroll(e){this.fire(nk,e)}pointerdown(e){this._down=this._active,this.fire(j0,e)}mousedown(e){this._down=this._active,this.fire(q0,e)}click(e){this._down===this._active&&(this.fire(uf,e),this._down=null)}touchstart(e){this._touch=this.pickEvent(e.changedTouches[0]),this._first&&(this._first=(this._active=this._touch,!1)),this.fire(cf,e,!0)}touchmove(e){this.fire(ff,e,!0)}touchend(e){this.fire(df,e,!0),this._touch=null}fire(e,t,n){let r=n?this._touch:this._active,i=this._handlers[e];if(t.vegaType=e,e===W0&&r&&r.href?this.handleHref(t,r,r.href):(e===U0||e===Ds)&&this.handleTooltip(t,r,e!==Ds),i)for(let a=0,o=i.length;a=0&&r.splice(i,1),this}pickEvent(e){let t=rf(e,this._canvas),n=this._origin;return this.pick(this._scene,t[0],t[1],t[0]-n[0],t[1]-n[1])}pick(e,t,n,r,i){let a=this.context();return An[e.marktype].pick.call(this,a,e,t,n,r,i)}},KN=e=>e===cf||e===ff||e===df?[cf,ff,df]:[e];function rk(e,t){KN(t).forEach(n=>ZN(e,n))}function ZN(e,t){let n=e.canvas();n&&!e._events[t]&&(e._events[t]=1,n.addEventListener(t,e[t]?r=>e[t](r):r=>e.fire(t,r)))}function Cs(e,t,n){t.forEach(r=>e.fire(r,n))}function ik(e,t,n){return function(r){let i=this._active,a=this.pickEvent(r);a===i?Cs(this,e,r):((!i||!i.exit)&&Cs(this,n,r),this._active=a,Cs(this,t,r),Cs(this,e,r))}}function ak(e){return function(t){Cs(this,e,t),this._active=null}}function eR(){return typeof window<"u"&&window.devicePixelRatio||1}function tR(e,t,n,r,i,a){let o=typeof HTMLElement<"u"&&e instanceof HTMLElement&&e.parentNode!=null,l=e.getContext("2d"),s=o?eR():i;for(let u in e.width=t*s,e.height=n*s,a)l[u]=a[u];return o&&s!==1&&(e.style.width=t+"px",e.style.height=n+"px"),l.pixelRatio=s,l.setTransform(s,0,0,s,s*r[0],s*r[1]),e}var hf=class extends _s{constructor(e){super(e),this._options={},this._redraw=!1,this._dirty=new lt,this._tempb=new lt}initialize(e,t,n,r,i,a){return this._options=a||{},this._canvas=this._options.externalContext?null:Li(1,1,this._options.type),e&&this._canvas&&(Ln(e,0).appendChild(this._canvas),this._canvas.setAttribute("class","marks")),super.initialize(e,t,n,r,i)}resize(e,t,n,r){if(super.resize(e,t,n,r),this._canvas)tR(this._canvas,this._width,this._height,this._origin,this._scale,this._options.context);else{let i=this._options.externalContext;i||T("CanvasRenderer is missing a valid canvas or context"),i.scale(this._scale,this._scale),i.translate(this._origin[0],this._origin[1])}return this._redraw=!0,this}canvas(){return this._canvas}context(){return this._options.externalContext||(this._canvas?this._canvas.getContext("2d"):null)}dirty(e){let t=this._tempb.clear().union(e.bounds),n=e.mark.group;for(;n;)t.translate(n.x||0,n.y||0),n=n.mark.group;this._dirty.union(t)}_render(e,t){let n=this.context(),r=this._origin,i=this._width,a=this._height,o=this._dirty,l=nR(r,i,a);n.save();let s=this._redraw||o.empty()?(this._redraw=!1,l.expand(1)):rR(n,l.intersect(o),r);return this.clear(-r[0],-r[1],i,a),this.draw(n,e,s,t),n.restore(),o.clear(),this}draw(e,t,n,r){if(t.marktype!=="group"&&r!=null&&!r.includes(t.marktype))return;let i=An[t.marktype];t.clip&&nN(e,t),i.draw.call(this,e,t,n,r),t.clip&&e.restore()}clear(e,t,n,r){let i=this._options,a=this.context();i.type!=="pdf"&&!i.externalContext&&a.clearRect(e,t,n,r),this._bgcolor!=null&&(a.fillStyle=this._bgcolor,a.fillRect(e,t,n,r))}},nR=(e,t,n)=>new lt().set(0,0,t,n).translate(-e[0],-e[1]);function rR(e,t,n){return t.expand(1).round(),e.pixelRatio%1&&t.scale(e.pixelRatio).round().scale(1/e.pixelRatio),t.translate(-(n[0]%1),-(n[1]%1)),e.beginPath(),e.rect(t.x1,t.y1,t.width(),t.height()),e.clip(),t}var ok=class extends I0{constructor(e,t){super(e,t);let n=this;n._hrefHandler=G0(n,(r,i)=>{i&&i.href&&n.handleHref(r,i,i.href)}),n._tooltipHandler=G0(n,(r,i)=>{n.handleTooltip(r,i,r.type!==Ds)})}initialize(e,t,n){let r=this._svg;return r&&(r.removeEventListener(W0,this._hrefHandler),r.removeEventListener(U0,this._tooltipHandler),r.removeEventListener(Ds,this._tooltipHandler)),this._svg=r=e&&P0(e,"svg"),r&&(r.addEventListener(W0,this._hrefHandler),r.addEventListener(U0,this._tooltipHandler),r.addEventListener(Ds,this._tooltipHandler)),super.initialize(e,t,n)}canvas(){return this._svg}on(e,t){let n=this.eventName(e),r=this._handlers;if(this._handlerIndex(r[n],e,t)<0){let i={type:e,handler:t,listener:G0(this,t)};(r[n]||(r[n]=[])).push(i),this._svg&&this._svg.addEventListener(n,i.listener)}return this}off(e,t){let n=this.eventName(e),r=this._handlers[n],i=this._handlerIndex(r,e,t);return i>=0&&(this._svg&&this._svg.removeEventListener(n,r[i].listener),r.splice(i,1)),this}},G0=(e,t)=>n=>{let r=n.target.__data__;r=Array.isArray(r)?r[0]:r,n.vegaType=n.type,t.call(e._obj,n,r)},lk="aria-hidden",H0="aria-label",V0="role",X0="aria-roledescription",sk="graphics-object",Y0="graphics-symbol",uk=(e,t,n)=>({[V0]:e,[X0]:t,[H0]:n||void 0}),iR=_r(["axis-domain","axis-grid","axis-label","axis-tick","axis-title","legend-band","legend-entry","legend-gradient","legend-label","legend-title","legend-symbol","title"]),ck={axis:{desc:"axis",caption:lR},legend:{desc:"legend",caption:sR},"title-text":{desc:"title",caption:e=>`Title text '${pk(e)}'`},"title-subtitle":{desc:"subtitle",caption:e=>`Subtitle text '${pk(e)}'`}},fk={ariaRole:V0,ariaRoleDescription:X0,description:H0};function dk(e,t){let n=t.aria===!1;if(e(lk,n||void 0),n||t.description==null)for(let r in fk)e(fk[r],void 0);else{let r=t.mark.marktype;e(H0,t.description),e(V0,t.ariaRole||(r==="group"?sk:Y0)),e(X0,t.ariaRoleDescription||`${r} mark`)}}function hk(e){return e.aria===!1?{[lk]:!0}:iR[e.role]?null:ck[e.role]?oR(e,ck[e.role]):aR(e)}function aR(e){let t=e.marktype;return uk(t==="group"||t==="text"||e.items.some(n=>n.description!=null&&n.aria!==!1)?sk:Y0,`${t} mark container`,e.description)}function oR(e,t){try{let n=e.items[0],r=t.caption||(()=>"");return uk(t.role||Y0,t.desc,n.description||r(n))}catch{return null}}function pk(e){return ie(e.text).join(" ")}function lR(e){let t=e.datum,n=e.orient,r=t.title?mk(e):null,i=e.context,a=i.scales[t.scale].value,o=i.dataflow.locale(),l=a.type;return`${n==="left"||n==="right"?"Y":"X"}-axis`+(r?` titled '${r}'`:"")+` for a ${Wo(l)?"discrete":l} scale with ${sE(o,a,e)}`}function sR(e){let t=e.datum,n=t.title?mk(e):null,r=`${t.type||""} legend`.trim(),i=t.scales,a=Object.keys(i),o=e.context,l=o.scales[i[a[0]]].value,s=o.dataflow.locale();return cR(r)+(n?` titled '${n}'`:"")+` for ${uR(a)} with ${sE(s,l,e)}`}function mk(e){try{return ie(Oe(e.items).items[0].text).join(" ")}catch{return null}}function uR(e){return e=e.map(t=>t+(t==="fill"||t==="stroke"?" color":"")),e.length<2?e[0]:e.slice(0,-1).join(", ")+" and "+Oe(e)}function cR(e){return e.length?e[0].toUpperCase()+e.slice(1):e}var gk=e=>(e+"").replace(/&/g,"&").replace(//g,">"),fR=e=>gk(e).replace(/"/g,""").replace(/\t/g," ").replace(/\n/g," ").replace(/\r/g," ");function J0(){let e="",t="",n="",r=[],i=()=>t=n="",a=s=>{t&&(e+=`${t}>${n}`,i()),r.push(s)},o=(s,u)=>(u!=null&&(t+=` ${s}="${fR(u)}"`),l),l={open(s,...u){a(s),t="<"+s;for(let c of u)for(let f in c)o(f,c[f]);return l},close(){let s=r.pop();return t?e+=t+(n?`>${n}`:"/>"):e+=``,i(),l},attr:o,text:s=>(n+=gk(s),l),toString:()=>e};return l}var yk=e=>vk(J0(),e)+"";function vk(e,t){if(e.open(t.tagName),t.hasAttributes()){let n=t.attributes,r=n.length;for(let i=0;i{u.dirty=t})),!r.zdirty){if(n.exit){a.nested&&r.items.length?(s=r.items[0],s._svg&&this._update(a,s._svg,s)):n._svg&&(s=n._svg.parentNode,s&&s.removeChild(n._svg)),n._svg=null;continue}n=a.nested?r.items[0]:n,n._update!==t&&(!n._svg||!n._svg.ownerSVGElement?(this._dirtyAll=!1,wk(n,t)):this._update(a,n._svg,n),n._update=t)}return!this._dirtyAll}mark(e,t,n,r){if(!this.isDirty(t))return t._svg;let i=this._svg,a=t.marktype,o=An[a],l=t.interactive===!1?"none":null,s=o.tag==="g",u=Ak(t,e,n,"g",i);if(a!=="group"&&r!=null&&!r.includes(a))return Ln(u,0),t._svg;u.setAttribute("class",JE(t));let c=hk(t);for(let p in c)Wt(u,p,c[p]);s||Wt(u,"pointer-events",l),Wt(u,"clip-path",t.clip?g0(this,t,t.group):null);let f=null,d=0,h=p=>{let m=this.isDirty(p),g=Ak(p,u,f,o.tag,i);m&&(this._update(o,g,p),s&&pR(this,g,p,r)),f=g,++d};return o.nested?t.items.length&&h(t.items[0]):Kn(t,h),Ln(u,d),u}_update(e,t,n){ai=t,Mt=t.__values__,dk(Ss,n),e.attr(Ss,n,this);let r=gR[e.type];r&&r.call(this,e,t,n),ai&&this.style(ai,n)}style(e,t){if(t!=null){for(let n in pf){let r=n==="font"?Es(t):t[n];if(r===Mt[n])continue;let i=pf[n];r==null?e.removeAttribute(i):(c0(r)&&(r=cE(r,this._defs.gradient,Ek())),e.setAttribute(i,r+"")),Mt[n]=r}for(let n in mf)gf(e,mf[n],t[n])}}defs(){let e=this._svg,t=this._defs,n=t.el,r=0;for(let i in t.gradient)n||(t.el=n=ft(e,$s+1,"defs",dt)),r=dR(n,t.gradient[i],r);for(let i in t.clipping)n||(t.el=n=ft(e,$s+1,"defs",dt)),r=hR(n,t.clipping[i],r);n&&(r===0?(e.removeChild(n),t.el=null):Ln(n,r))}_clearDefs(){let e=this._defs;e.gradient={},e.clipping={}}};function wk(e,t){for(;e&&e.dirty!==t;e=e.mark.group)if(e.dirty=t,e.mark&&e.mark.dirty!==t)e.mark.dirty=t;else return}function dR(e,t,n){let r,i,a;if(t.gradient==="radial"){let o=ft(e,n++,"pattern",dt);Xi(o,{id:Lc+t.id,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"}),o=ft(o,0,"rect",dt),Xi(o,{width:1,height:1,fill:`url(${Ek()}#${t.id})`}),e=ft(e,n++,"radialGradient",dt),Xi(e,{id:t.id,fx:t.x1,fy:t.y1,fr:t.r1,cx:t.x2,cy:t.y2,r:t.r2})}else e=ft(e,n++,"linearGradient",dt),Xi(e,{id:t.id,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2});for(r=0,i=t.stops.length;r{i=e.mark(t,o,i,r),++a}),Ln(t,1+a)}function Ak(e,t,n,r,i){let a=e._svg,o;if(!a&&(o=t.ownerDocument,a=Vi(o,r,dt),e._svg=a,e.mark&&(a.__data__=e,a.__values__={fill:"default"},r==="g"))){let l=Vi(o,"path",dt);a.appendChild(l),l.__data__=e;let s=Vi(o,"g",dt);a.appendChild(s),s.__data__=e;let u=Vi(o,"path",dt);a.appendChild(u),u.__data__=e,u.__values__={fill:"default"}}return(a.ownerSVGElement!==i||mR(a,n))&&t.insertBefore(a,n?n.nextSibling:t.firstChild),a}function mR(e,t){return e.parentNode&&e.parentNode.childNodes.length>1&&e.previousSibling!=t}var ai=null,Mt=null,gR={group(e,t,n){let r=ai=t.childNodes[2];Mt=r.__values__,e.foreground(Ss,n,this),Mt=t.__values__,ai=t.childNodes[1],e.content(Ss,n,this);let i=ai=t.childNodes[0];e.background(Ss,n,this);let a=n.mark.interactive===!1?"none":null;if(a!==Mt.events&&(Wt(r,"pointer-events",a),Wt(i,"pointer-events",a),Mt.events=a),n.strokeForeground&&n.stroke){let o=n.fill;Wt(r,"display",null),this.style(i,n),Wt(i,"stroke",null),o&&(n.fill=null),Mt=r.__values__,this.style(r,n),o&&(n.fill=o),ai=null}else Wt(r,"display","none")},image(e,t,n){n.smooth===!1?(gf(t,"image-rendering","optimizeSpeed"),gf(t,"image-rendering","pixelated")):gf(t,"image-rendering",null)},text(e,t,n){let r=As(n),i,a,o,l;Z(r)?(a=r.map(s=>Hi(n,s)),i=a.join(` +`),i!==Mt.text&&(Ln(t,0),o=t.ownerDocument,l=Gi(n),a.forEach((s,u)=>{let c=Vi(o,"tspan",dt);c.__data__=n,c.textContent=s,u&&(c.setAttribute("x",0),c.setAttribute("dy",l)),t.appendChild(c)}),Mt.text=i)):(a=Hi(n,r),a!==Mt.text&&(t.textContent=a,Mt.text=a)),Wt(t,"font-family",Es(n)),Wt(t,"font-size",Sr(n)+"px"),Wt(t,"font-style",n.fontStyle),Wt(t,"font-variant",n.fontVariant),Wt(t,"font-weight",n.fontWeight)}};function Ss(e,t,n){t!==Mt[e]&&(n?yR(ai,e,t,n):Wt(ai,e,t),Mt[e]=t)}function gf(e,t,n){n!==Mt[t]&&(n==null?e.style.removeProperty(t):e.style.setProperty(t,n+""),Mt[t]=n)}function Xi(e,t){for(let n in t)Wt(e,n,t[n])}function Wt(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function yR(e,t,n,r){n==null?e.removeAttributeNS(r,t):e.setAttributeNS(r,t,n)}function Ek(){let e;return typeof window>"u"?"":(e=window.location).hash?e.href.slice(0,-e.hash.length):e.href}var kk=class extends _s{constructor(e){super(e),this._text=null,this._defs={gradient:{},clipping:{}}}svg(){return this._text}_render(e){let t=J0();t.open("svg",ge({},ws,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}));let n=this._bgcolor;return n&&n!=="transparent"&&n!=="none"&&t.open("rect",{width:this._width,height:this._height,fill:n}).close(),t.open("g",bk,{transform:"translate("+this._origin+")"}),this.mark(t,e),t.close(),this.defs(t),this._text=t.close()+"",this}mark(e,t){let n=An[t.marktype],r=n.tag,i=[dk,n.attr];e.open("g",{class:JE(t),"clip-path":t.clip?g0(this,t,t.group):null},hk(t),{"pointer-events":r!=="g"&&t.interactive===!1?"none":null});let a=o=>{let l=this.href(o);if(l&&e.open("a",l),e.open(r,this.attr(t,o,i,r==="g"?null:r)),r==="text"){let s=As(o);if(Z(s)){let u={x:0,dy:Gi(o)};for(let c=0;cthis.mark(e,f)),e.close(),s&&c?(u&&(o.fill=null),o.stroke=c,e.open("path",this.attr(t,o,n.foreground,"bgrect")).close(),u&&(o.fill=u)):e.open("path",this.attr(t,o,n.foreground,"bgfore")).close()}e.close(),l&&e.close()};return n.nested?t.items&&t.items.length&&a(t.items[0]):Kn(t,a),e.close()}href(e){let t=e.href,n;if(t){if(n=this._hrefs&&this._hrefs[t])return n;this.sanitizeURL(t).then(r=>{r["xlink:href"]=r.href,r.href=null,(this._hrefs||(this._hrefs={}))[t]=r})}return null}attr(e,t,n,r){let i={},a=(o,l,s,u)=>{i[u||o]=l};return Array.isArray(n)?n.forEach(o=>o(a,t,this)):n(a,t,this),r&&vR(i,t,e,r,this._defs),i}defs(e){let t=this._defs.gradient,n=this._defs.clipping;if(Object.keys(t).length+Object.keys(n).length!==0){for(let r in e.open("defs"),t){let i=t[r],a=i.stops;i.gradient==="radial"?(e.open("pattern",{id:Lc+r,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"}),e.open("rect",{width:"1",height:"1",fill:"url(#"+r+")"}).close(),e.close(),e.open("radialGradient",{id:r,fx:i.x1,fy:i.y1,fr:i.r1,cx:i.x2,cy:i.y2,r:i.r2})):e.open("linearGradient",{id:r,x1:i.x1,x2:i.x2,y1:i.y1,y2:i.y2});for(let o=0;o!Zn.svgMarkTypes.includes(r));this._svgRenderer.render(e,Zn.svgMarkTypes),this._canvasRenderer.render(e,n)}resize(e,t,n,r){return super.resize(e,t,n,r),this._svgRenderer.resize(e,t,n,r),this._canvasRenderer.resize(e,t,n,r),this}background(e){return Zn.svgOnTop?this._canvasRenderer.background(e):this._svgRenderer.background(e),this}},_k=class extends Fs{constructor(e,t){super(e,t)}initialize(e,t,n){let r=ft(ft(e,0,"div"),Zn.svgOnTop?0:1,"div");return super.initialize(r,t,n)}},Dk="canvas",Fk="hybrid",Ck="png",$k="svg",Sk="none",Yi={Canvas:Dk,PNG:Ck,SVG:$k,Hybrid:Fk,None:Sk},Ra={};Ra[Dk]=Ra[Ck]={renderer:hf,headless:hf,handler:Fs},Ra[$k]={renderer:Q0,headless:kk,handler:ok},Ra[Fk]={renderer:K0,headless:K0,handler:_k},Ra[Sk]={};function yf(e,t){return e=String(e||"").toLowerCase(),arguments.length>1?(Ra[e]=t,this):Ra[e]}function Mk(e,t,n){let r=[],i=new lt().union(t),a=e.marktype;return a?Ok(e,i,n,r):a==="group"?Bk(e,i,n,r):T("Intersect scene must be mark node or group item.")}function Ok(e,t,n,r){if(xR(e,t,n)){let i=e.items,a=e.marktype,o=i.length,l=0;if(a==="group")for(;l=0;a--)if(n[a]!=r[a])return!1;for(a=n.length-1;a>=0;a--)if(i=n[a],!eg(e[i],t[i],i))return!1;return typeof e==typeof t}function ER(){Iz(),XB()}var kR=sn({bound:()=>Hk,identifier:()=>ug,mark:()=>Xk,overlap:()=>Yk,render:()=>t_,viewlayout:()=>l_},1),Qo="top",er="left",tr="right",Ji="bottom",_R="top-left",DR="top-right",FR="bottom-left",CR="bottom-right",tg="start",ng="middle",Gt="end",$R="x",SR="y",vf="group",rg="axis",ig="title",MR="frame",OR="scope",ag="legend",Tk="row-header",Lk="row-footer",Pk="row-title",Ik="column-header",jk="column-footer",qk="column-title",BR="padding",zR="symbol",Uk="fit",Wk="fit-x",Gk="fit-y",NR="pad",og="none",bf="all",lg="each",sg="flush",Qi="column",Ki="row";function Hk(e){O.call(this,null,e)}G(Hk,O,{transform(e,t){let n=t.dataflow,r=e.mark,i=r.marktype,a=An[i],o=a.bound,l=r.bounds,s;if(a.nested)r.items.length&&n.dirty(r.items[0]),l=xf(r,o),r.items.forEach(u=>{u.bounds.clear().union(l)});else if(i===vf||e.modified())switch(t.visit(t.MOD,u=>n.dirty(u)),l.clear(),r.items.forEach(u=>l.union(xf(u,o))),r.role){case rg:case ag:case ig:t.reflow()}else s=t.changed(t.REM),t.visit(t.ADD,u=>{l.union(xf(u,o))}),t.visit(t.MOD,u=>{s||(s=l.alignsWith(u.bounds)),n.dirty(u),l.union(xf(u,o))}),s&&(l.clear(),r.items.forEach(u=>l.union(u.bounds)));return Nk(r),t.modifies("bounds")}});function xf(e,t,n){return t(e.bounds.clear(),e,n)}var Vk=":vega_identifier:";function ug(e){O.call(this,0,e)}ug.Definition={type:"Identifier",metadata:{modifies:!0},params:[{name:"as",type:"string",required:!0}]},G(ug,O,{transform(e,t){let n=RR(t.dataflow),r=e.as,i=n.value;return t.visit(t.ADD,a=>a[r]=a[r]||++i),n.set(this.value=i),t}});function RR(e){return e._signals[Vk]||(e._signals[Vk]=e.add(0))}function Xk(e){O.call(this,null,e)}G(Xk,O,{transform(e,t){let n=this.value;n||(n=t.dataflow.scenegraph().mark(e.markdef,TR(e),e.index),n.group.context=e.context,e.context.group||(e.context.group=n.group),n.source=this.source,n.clip=e.clip,n.interactive=e.interactive,this.value=n);let r=n.marktype===vf?qc:jc;return t.visit(t.ADD,i=>r.call(i,n)),(e.modified("clip")||e.modified("interactive"))&&(n.clip=e.clip,n.interactive=!!e.interactive,n.zdirty=!0,t.reflow()),n.items=t.source,t}});function TR(e){let t=e.groups,n=e.parent;return t&&t.size===1?t.get(Object.keys(t.object)[0]):t&&n?t.lookup(n):null}function Yk(e){O.call(this,null,e)}var Jk={parity:e=>e.filter((t,n)=>n%2?t.opacity=0:1),greedy:(e,t)=>{let n;return e.filter((r,i)=>!i||!Qk(n.bounds,r.bounds,t)?(n=r,1):r.opacity=0)}},Qk=(e,t,n)=>n>Math.max(t.x1-e.x2,e.x1-t.x2,t.y1-e.y2,e.y1-t.y2),Kk=(e,t)=>{for(var n=1,r=e.length,i=e[0].bounds,a;n{let t=e.bounds;return t.width()>1&&t.height()>1},PR=(e,t,n)=>{var r=e.range(),i=new lt;return t===Qo||t===Ji?i.set(r[0],-1/0,r[1],1/0):i.set(-1/0,r[0],1/0,r[1]),i.expand(n||1),a=>i.encloses(a.bounds)},Zk=e=>(e.forEach(t=>t.opacity=1),e),e_=(e,t)=>e.reflow(t.modified()).modifies("opacity");G(Yk,O,{transform(e,t){let n=Jk[e.method]||Jk.parity,r=e.separation||0,i=t.materialize(t.SOURCE).source,a,o;if(!i||!i.length)return;if(!e.method)return e.modified("method")&&(Zk(i),t=e_(t,e)),t;if(i=i.filter(LR),!i.length)return;if(e.sort&&(i=i.slice().sort(e.sort)),a=Zk(i),t=e_(t,e),a.length>=3&&Kk(a,r)){do a=n(a,r);while(a.length>=3&&Kk(a,r));a.length<3&&!Oe(i).opacity&&(a.length>1&&(Oe(a).opacity=0),Oe(i).opacity=1)}e.boundScale&&e.boundTolerance>=0&&(o=PR(e.boundScale,e.boundOrient,+e.boundTolerance),i.forEach(s=>{o(s)||(s.opacity=0)}));let l=a[0].mark.bounds.clear();return i.forEach(s=>{s.opacity&&l.union(s.bounds)}),t}});function t_(e){O.call(this,null,e)}G(t_,O,{transform(e,t){let n=t.dataflow;if(t.visit(t.ALL,r=>n.dirty(r)),t.fields&&t.fields.zindex){let r=t.source&&t.source[0];r&&(r.mark.zdirty=!0)}}});var Ot=new lt;function Ko(e,t,n){return e[t]===n?0:(e[t]=n,1)}function IR(e){var t=e.items[0].orient;return t===er||t===tr}function jR(e){let t=+e.grid;return[e.ticks?t++:-1,e.labels?t++:-1,t+ +e.domain]}function qR(e,t,n,r){var i=t.items[0],a=i.datum,o=i.translate==null?.5:i.translate,l=i.orient,s=jR(a),u=i.range,c=i.offset,f=i.position,d=i.minExtent,h=i.maxExtent,p=a.title&&i.items[s[2]].items[0],m=i.titlePadding,g=i.bounds,y=p&&N0(p),v=0,b=0,w,A;switch(Ot.clear().union(g),g.clear(),(w=s[0])>-1&&g.union(i.items[w].bounds),(w=s[1])>-1&&g.union(i.items[w].bounds),l){case Qo:v=f||0,b=-c,A=Math.max(d,Math.min(h,-g.y1)),g.add(0,-A).add(u,0),p&&wf(e,p,A,m,y,0,-1,g);break;case er:v=-c,b=f||0,A=Math.max(d,Math.min(h,-g.x1)),g.add(-A,0).add(0,u),p&&wf(e,p,A,m,y,1,-1,g);break;case tr:v=n+c,b=f||0,A=Math.max(d,Math.min(h,g.x2)),g.add(0,0).add(A,u),p&&wf(e,p,A,m,y,1,1,g);break;case Ji:v=f||0,b=r+c,A=Math.max(d,Math.min(h,g.y2)),g.add(0,0).add(u,A),p&&wf(e,p,A,m,0,0,1,g);break;default:v=i.x,b=i.y}return ii(g.translate(v,b),i),Ko(i,"x",v+o)|Ko(i,"y",b+o)&&(i.bounds=Ot,e.dirty(i),i.bounds=g,e.dirty(i)),i.mark.bounds.clear().union(g)}function wf(e,t,n,r,i,a,o,l){let s=t.bounds;if(t.auto){let u=o*(n+i+r),c=0,f=0;e.dirty(t),a?c=(t.x||0)-(t.x=u):f=(t.y||0)-(t.y=u),t.mark.bounds.clear().union(s.translate(-c,-f)),e.dirty(t)}l.union(s)}var n_=(e,t)=>Math.floor(Math.min(e,t)),r_=(e,t)=>Math.ceil(Math.max(e,t));function UR(e){var t=e.items,n=t.length,r=0,i,a;let o={marks:[],rowheaders:[],rowfooters:[],colheaders:[],colfooters:[],rowtitle:null,coltitle:null};for(;r1)for(x=0;x0&&(b[x]+=M/2);if(l&&Ge(n.center,Ki)&&c!==1)for(x=0;x0&&(w[x]+=D/2);for(x=0;xi&&(e.warn("Grid headers exceed limit: "+i),t=t.slice(0,i)),m+=a,v=0,w=t.length;v=0&&(x=n[b])==null;b-=d);l?(k=h==null?x.x:Math.round(x.bounds.x1+h*x.bounds.width()),_=m):(k=m,_=h==null?x.y:Math.round(x.bounds.y1+h*x.bounds.height())),A.union(E.bounds.translate(k-(E.x||0),_-(E.y||0))),E.x=k,E.y=_,e.dirty(E),g=o(g,A[u])}return g}function o_(e,t,n,r,i,a){if(t){e.dirty(t);var o=n,l=n;r?o=Math.round(i.x1+a*i.width()):l=Math.round(i.y1+a*i.height()),t.bounds.translate(o-(t.x||0),l-(t.y||0)),t.mark.bounds.clear().union(t.bounds),t.x=o,t.y=l,e.dirty(t)}}function YR(e,t){let n=e[t]||{};return(r,i)=>n[r]==null?e[r]==null?i:e[r]:n[r]}function JR(e,t){let n=-1/0;return e.forEach(r=>{r.offset!=null&&(n=Math.max(n,r.offset))}),n>-1/0?n:t}function QR(e,t,n,r,i,a,o){let l=YR(n,t),s=JR(e,l("offset",0)),u=l("anchor",tg),c=u===Gt?1:u===ng?.5:0,f={align:lg,bounds:l("bounds",sg),columns:l("direction")==="vertical"?1:e.length,padding:l("margin",8),center:l("center"),nodirty:!0};switch(t){case er:f.anchor={x:Math.floor(r.x1)-s,column:Gt,y:c*(o||r.height()+2*r.y1),row:u};break;case tr:f.anchor={x:Math.ceil(r.x2)+s,y:c*(o||r.height()+2*r.y1),row:u};break;case Qo:f.anchor={y:Math.floor(i.y1)-s,row:Gt,x:c*(a||i.width()+2*i.x1),column:u};break;case Ji:f.anchor={y:Math.ceil(i.y2)+s,x:c*(a||i.width()+2*i.x1),column:u};break;case _R:f.anchor={x:s,y:s};break;case DR:f.anchor={x:a-s,y:s,column:Gt};break;case FR:f.anchor={x:s,y:o-s,row:Gt};break;case CR:f.anchor={x:a-s,y:o-s,column:Gt,row:Gt};break}return f}function KR(e,t){var n=t.items[0],r=n.datum,i=n.orient,a=n.bounds,o=n.x,l=n.y,s,u;return n._bounds?n._bounds.clear().union(a):n._bounds=a.clone(),a.clear(),eT(e,n,n.items[0].items[0]),a=ZR(n,a),s=2*n.padding,u=2*n.padding,a.empty()||(s=Math.ceil(a.width()+s),u=Math.ceil(a.height()+u)),r.type===zR&&tT(n.items[0].items[0].items[0].items),i!==og&&(n.x=o=0,n.y=l=0),n.width=s,n.height=u,ii(a.set(o,l,o+s,l+u),n),n.mark.bounds.clear().union(a),n}function ZR(e,t){return e.items.forEach(n=>t.union(n.bounds)),t.x1=e.padding,t.y1=e.padding,t}function eT(e,t,n){var r=t.padding,i=r-n.x,a=r-n.y;if(!t.datum.title)(i||a)&&Ms(e,n,i,a);else{var o=t.items[1].items[0],l=o.anchor,s=t.titlePadding||0,u=r-o.x,c=r-o.y;switch(o.orient){case er:i+=Math.ceil(o.bounds.width())+s;break;case tr:case Ji:break;default:a+=o.bounds.height()+s}switch((i||a)&&Ms(e,n,i,a),o.orient){case er:c+=Zo(t,n,o,l,1,1);break;case tr:u+=Zo(t,n,o,Gt,0,0)+s,c+=Zo(t,n,o,l,1,1);break;case Ji:u+=Zo(t,n,o,l,0,0),c+=Zo(t,n,o,Gt,-1,0,1)+s;break;default:u+=Zo(t,n,o,l,0,0)}(u||c)&&Ms(e,o,u,c),(u=Math.round(o.bounds.x1-r))<0&&(Ms(e,n,-u,0),Ms(e,o,-u,0))}}function Zo(e,t,n,r,i,a,o){let l=e.datum.type!=="symbol",s=n.datum.vgrad,u=(l&&(a||!s)&&!o?t.items[0]:t).bounds[i?"y2":"x2"]-e.padding,c=s&&a?u:0,f=s&&a?0:u,d=i<=0?0:N0(n);return Math.round(r===tg?c:r===Gt?f-d:.5*(u-d))}function Ms(e,t,n,r){t.x+=n,t.y+=r,t.bounds.translate(n,r),t.mark.bounds.translate(n,r),e.dirty(t)}function tT(e){let t=e.reduce((n,r)=>(n[r.column]=Math.max(r.bounds.x2-r.x,n[r.column]||0),n),{});e.forEach(n=>{n.width=t[n.column],n.height=n.bounds.y2-n.y})}function nT(e,t,n,r,i){var a=t.items[0],o=a.frame,l=a.orient,s=a.anchor,u=a.offset,c=a.padding,f=a.items[0].items[0],d=a.items[1]&&a.items[1].items[0],h=l===er||l===tr?r:n,p=0,m=0,g=0,y=0,v=0,b;if(o===vf?l===er&&(p=r,h=0):l===er?(p=i.y2,h=i.y1):l===tr?(p=i.y1,h=i.y2):(p=i.x1,h=i.x2),b=s===tg?p:s===Gt?h:(p+h)/2,d&&d.text){switch(l){case Qo:case Ji:v=f.bounds.height()+c;break;case er:y=f.bounds.width()+c;break;case tr:y=-f.bounds.width()-c;break}Ot.clear().union(d.bounds),Ot.translate(y-(d.x||0),v-(d.y||0)),Ko(d,"x",y)|Ko(d,"y",v)&&(e.dirty(d),d.bounds.clear().union(Ot),d.mark.bounds.clear().union(Ot),e.dirty(d)),Ot.clear().union(d.bounds)}else Ot.clear();switch(Ot.union(f.bounds),l){case Qo:m=b,g=i.y1-Ot.height()-u;break;case er:m=i.x1-Ot.width()-u,g=b;break;case tr:m=i.x2+Ot.width()+u,g=b;break;case Ji:m=b,g=i.y2+u;break;default:m=a.x,g=a.y}return Ko(a,"x",m)|Ko(a,"y",g)&&(Ot.translate(m,g),e.dirty(a),a.bounds.clear().union(Ot),t.bounds.clear().union(Ot),e.dirty(a)),a.bounds}function l_(e){O.call(this,null,e)}G(l_,O,{transform(e,t){let n=t.dataflow;return e.mark.items.forEach(r=>{e.layout&&HR(n,r,e.layout),iT(n,r,e)}),rT(e.mark.group)?t.reflow():t}});function rT(e){return e&&e.mark.role!=="legend-entry"}function iT(e,t,n){var r=t.items,i=Math.max(0,t.width||0),a=Math.max(0,t.height||0),o=new lt().set(0,0,i,a),l=o.clone(),s=o.clone(),u=[],c,f,d,h,p,m;for(p=0,m=r.length;p{d=v.orient||tr,d!==og&&(g[d]||(g[d]=[])).push(v)}),g){let v=g[y];a_(e,v,QR(v,y,n.legends,l,s,i,a))}u.forEach(y=>{let v=y.bounds;if(v.equals(y._bounds)||(y.bounds=y._bounds,e.dirty(y),y.bounds=v,e.dirty(y)),n.autosize&&(n.autosize.type===Uk||n.autosize.type===Wk||n.autosize.type===Gk))switch(y.orient){case er:case tr:o.add(v.x1,0).add(v.x2,0);break;case Qo:case Ji:o.add(0,v.y1).add(0,v.y2)}else o.union(v)})}o.union(l).union(s),c&&o.union(nT(e,c,i,a,o)),t.clip&&o.set(0,0,t.width||0,t.height||0),aT(e,t,o,n)}function aT(e,t,n,r){let i=r.autosize||{},a=i.type;if(e._autosize<1||!a)return;let o=e._width,l=e._height,s=Math.max(0,t.width||0),u=Math.max(0,Math.ceil(-n.x1)),c=Math.max(0,t.height||0),f=Math.max(0,Math.ceil(-n.y1)),d=Math.max(0,Math.ceil(n.x2-s)),h=Math.max(0,Math.ceil(n.y2-c));if(i.contains===BR){let p=e.padding();o-=p.left+p.right,l-=p.top+p.bottom}a===og?(u=0,f=0,s=o,c=l):a===Uk?(s=Math.max(0,o-u-d),c=Math.max(0,l-f-h)):a===Wk?(s=Math.max(0,o-u-d),l=c+f+h):a===Gk?(o=s+u+d,c=Math.max(0,l-f-h)):a===NR&&(o=s+u+d,l=c+f+h),e._resizeView(o,l,s,c,[u,f],i.resize)}var oT=sn({axisticks:()=>s_,datajoin:()=>u_,encode:()=>c_,legendentries:()=>f_,linkpath:()=>cg,pie:()=>fg,scale:()=>y_,sortitems:()=>x_,stack:()=>hg},1);function s_(e){O.call(this,null,e)}G(s_,O,{transform(e,t){if(this.value&&!e.modified())return t.StopPropagation;var n=t.dataflow.locale(),r=t.fork(t.NO_SOURCE|t.NO_FIELDS),i=this.value,a=e.scale,o=l0(a,e.count==null?e.values?e.values.length:10:e.count,e.minstep),l=e.format||tE(n,a,o,e.formatSpecifier,e.formatType,!!e.values),s=e.values?eE(a,e.values,o):s0(a,o);return i&&(r.rem=i),i=s.map((u,c)=>Ce({index:c/(s.length-1||1),value:u,label:l(u)})),e.extra&&i.length&&i.push(Ce({index:-1,extra:{value:i[0].value},label:""})),r.source=i,r.add=i,this.value=i,r}});function u_(e){O.call(this,null,e)}function lT(){return Ce({})}function sT(e){let t=Ro().test(n=>n.exit);return t.lookup=n=>t.get(e(n)),t}G(u_,O,{transform(e,t){var n=t.dataflow,r=t.fork(t.NO_SOURCE|t.NO_FIELDS),i=e.item||lT,a=e.key||ee,o=this.value;return Z(r.encode)&&(r.encode=null),o&&(e.modified("key")||t.modified(a))&&T("DataJoin does not support modified key function or fields."),o||(t=t.addAll(),this.value=o=sT(a)),t.visit(t.ADD,l=>{let s=a(l),u=o.get(s);u?u.exit?(o.empty--,r.add.push(u)):r.mod.push(u):(u=i(l),o.set(s,u),r.add.push(u)),u.datum=l,u.exit=!1}),t.visit(t.MOD,l=>{let s=a(l),u=o.get(s);u&&(u.datum=l,r.mod.push(u))}),t.visit(t.REM,l=>{let s=a(l),u=o.get(s);l===u.datum&&!u.exit&&(r.rem.push(u),u.exit=!0,++o.empty)}),t.changed(t.ADD_MOD)&&r.modifies("datum"),(t.clean()||e.clean&&o.empty>n.cleanThreshold)&&n.runAfter(o.clean),r}});function c_(e){O.call(this,null,e)}G(c_,O,{transform(e,t){var n=t.fork(t.ADD_REM),r=e.mod||!1,i=e.encoders,a=t.encode;if(Z(a))if(n.changed()||a.every(f=>i[f]))a=a[0],n.encode=null;else return t.StopPropagation;var o=a==="enter",l=i.update||Si,s=i.enter||Si,u=i.exit||Si,c=(a&&!o?i[a]:l)||Si;if(t.changed(t.ADD)&&(t.visit(t.ADD,f=>{s(f,e),l(f,e)}),n.modifies(s.output),n.modifies(l.output),c!==Si&&c!==l&&(t.visit(t.ADD,f=>{c(f,e)}),n.modifies(c.output))),t.changed(t.REM)&&u!==Si&&(t.visit(t.REM,f=>{u(f,e)}),n.modifies(u.output)),o||c!==Si){let f=t.MOD|(e.modified()?t.REFLOW:0);o?(t.visit(f,d=>{let h=s(d,e)||r;(c(d,e)||h)&&n.mod.push(d)}),n.mod.length&&n.modifies(s.output)):t.visit(f,d=>{(c(d,e)||r)&&n.mod.push(d)}),n.mod.length&&n.modifies(c.output)}return n.changed()?n:t.StopPropagation}});function f_(e){O.call(this,[],e)}G(f_,O,{transform(e,t){if(this.value!=null&&!e.modified())return t.StopPropagation;var n=t.dataflow.locale(),r=t.fork(t.NO_SOURCE|t.NO_FIELDS),i=this.value,a=e.type||"symbol",o=e.scale,l=+e.limit,s=l0(o,e.count==null?5:e.count,e.minstep),u=!!e.values||a==="symbol",c=e.format||aE(n,o,s,a,e.formatSpecifier,e.formatType,u),f=e.values||iE(o,s),d,h,p,m,g;return i&&(r.rem=i),a==="symbol"?(l&&f.length>l?(t.dataflow.warn("Symbol legend count exceeds limit, filtering items."),i=f.slice(0,l-1),g=!0):i=f,me(p=e.size)?(!e.values&&o(i[0])===0&&(i=i.slice(1)),m=i.reduce((y,v)=>Math.max(y,p(v,e)),0)):p=jt(m=p||8),i=i.map((y,v)=>Ce({index:v,label:c(y,v,i),value:y,offset:m,size:p(y,e)})),g&&(g=f[i.length],i.push(Ce({index:i.length,label:`\u2026${f.length-i.length} entries`,value:g,offset:m,size:p(g,e)})))):a==="gradient"?(d=o.domain(),h=JA(o,d[0],Oe(d)),f.length<3&&!e.values&&d[0]!==Oe(d)&&(f=[d[0],Oe(d)]),i=f.map((y,v)=>Ce({index:v,label:c(y,v,f),value:y,perc:h(y)}))):(p=f.length-1,h=HB(o),i=f.map((y,v)=>Ce({index:v,label:c(y,v,f),value:y,perc:v?h(y):0,perc2:v===p?1:h(f[v+1])}))),r.source=i,r.add=i,this.value=i,r}});var uT=e=>e.source.x,cT=e=>e.source.y,fT=e=>e.target.x,dT=e=>e.target.y;function cg(e){O.call(this,{},e)}cg.Definition={type:"LinkPath",metadata:{modifies:!0},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","arc","curve","diagonal","orthogonal"]},{name:"require",type:"signal"},{name:"as",type:"string",default:"path"}]},G(cg,O,{transform(e,t){var n=e.sourceX||uT,r=e.sourceY||cT,i=e.targetX||fT,a=e.targetY||dT,o=e.as||"path",l=e.orient||"vertical",s=e.shape||"line",u=m_.get(s+"-"+l)||m_.get(s);return u||T("LinkPath unsupported type: "+e.shape+(e.orient?"-"+e.orient:"")),t.visit(t.SOURCE,c=>{c[o]=u(n(c),r(c),i(c),a(c))}),t.reflow(e.modified()).modifies(o)}});var d_=(e,t,n,r)=>"M"+e+","+t+"L"+n+","+r,hT=(e,t,n,r)=>d_(t*Math.cos(e),t*Math.sin(e),r*Math.cos(n),r*Math.sin(n)),h_=(e,t,n,r)=>{var i=n-e,a=r-t,o=Math.hypot(i,a)/2,l=180*Math.atan2(a,i)/Math.PI;return"M"+e+","+t+"A"+o+","+o+" "+l+" 0 1 "+n+","+r},pT=(e,t,n,r)=>h_(t*Math.cos(e),t*Math.sin(e),r*Math.cos(n),r*Math.sin(n)),p_=(e,t,n,r)=>{let i=n-e,a=r-t,o=.2*(i+a),l=.2*(a-i);return"M"+e+","+t+"C"+(e+o)+","+(t+l)+" "+(n+l)+","+(r-o)+" "+n+","+r},mT=(e,t,n,r)=>p_(t*Math.cos(e),t*Math.sin(e),r*Math.cos(n),r*Math.sin(n)),gT=(e,t,n,r)=>"M"+e+","+t+"V"+r+"H"+n,yT=(e,t,n,r)=>"M"+e+","+t+"H"+n+"V"+r,vT=(e,t,n,r)=>{let i=Math.cos(e),a=Math.sin(e),o=Math.cos(n),l=Math.sin(n),s=Math.abs(n-e)>Math.PI?n<=e:n>e;return"M"+t*i+","+t*a+"A"+t+","+t+" 0 0,"+(s?1:0)+" "+t*o+","+t*l+"L"+r*o+","+r*l},bT=(e,t,n,r)=>{let i=(e+n)/2;return"M"+e+","+t+"C"+i+","+t+" "+i+","+r+" "+n+","+r},xT=(e,t,n,r)=>{let i=(t+r)/2;return"M"+e+","+t+"C"+e+","+i+" "+n+","+i+" "+n+","+r},wT=(e,t,n,r)=>{let i=Math.cos(e),a=Math.sin(e),o=Math.cos(n),l=Math.sin(n),s=(t+r)/2;return"M"+t*i+","+t*a+"C"+s*i+","+s*a+" "+s*o+","+s*l+" "+r*o+","+r*l},m_=Ro({line:d_,"line-radial":hT,arc:h_,"arc-radial":pT,curve:p_,"curve-radial":mT,"orthogonal-horizontal":gT,"orthogonal-vertical":yT,"orthogonal-radial":vT,"diagonal-horizontal":bT,"diagonal-vertical":xT,"diagonal-radial":wT});function fg(e){O.call(this,null,e)}fg.Definition={type:"Pie",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:!1},{name:"as",type:"string",array:!0,length:2,default:["startAngle","endAngle"]}]},G(fg,O,{transform(e,t){var n=e.as||["startAngle","endAngle"],r=n[0],i=n[1],a=e.field||Zl,o=e.startAngle||0,l=e.endAngle==null?2*Math.PI:e.endAngle,s=t.source,u=s.map(a),c=u.length,f=o,d=(l-o)/mw(u),h=xn(c),p,m,g;for(e.sort&&h.sort((y,v)=>u[y]-u[v]),p=0;p-1)return r;var i=t.domain,a=e.type,o=t.zero||t.zero===void 0&&ET(e),l,s;if(!i)return 0;if((o||t.domainMin!=null||t.domainMax!=null||t.domainMid!=null)&&(l=(i=i.slice()).length-1||1,o&&(i[0]>0&&(i[0]=0),i[l]<0&&(i[l]=0)),t.domainMin!=null&&(i[0]=t.domainMin),t.domainMax!=null&&(i[l]=t.domainMax),t.domainMid!=null)){s=t.domainMid;let u=s>i[l]?l+1:sr+(i<0?-1:i>0?1:0),0))!==t.length&&n.warn("Log scale domain includes zero: "+K(t)),t}function ST(e,t,n){let r=t.bins;if(r&&!Z(r)){let i=e.domain(),a=i[0],o=Oe(i),l=r.step,s=r.start==null?a:r.start,u=r.stop==null?o:r.stop;l||T("Scale bins parameter missing step property."),so&&(u=l*Math.floor(o/l)),r=xn(s,u+l/2,l)}return r?e.bins=r:e.bins&&delete e.bins,e.type==="bin-ordinal"&&(r?!t.domain&&!t.domainRaw&&(e.domain(r),n=r.length):e.bins=e.domain()),n}function MT(e,t,n){var r=e.type,i=t.round||!1,a=t.range;if(t.rangeStep!=null)a=OT(r,t,n);else if(t.scheme&&(a=BT(r,t,n),me(a))){if(e.interpolator)return e.interpolator(a);T(`Scale type ${r} does not support interpolating color schemes.`)}if(a&&HA(r))return e.interpolator(Tc(dg(a,t.reverse),t.interpolate,t.interpolateGamma));a&&t.interpolate&&e.interpolate?e.interpolate(a0(t.interpolate,t.interpolateGamma)):me(e.round)?e.round(i):me(e.rangeRound)&&e.interpolate(i?Wp:Up),a&&e.range(dg(a,t.reverse))}function OT(e,t,n){e!=="band"&&e!=="point"&&T("Only band and point scales support rangeStep.");var r=(t.paddingOuter==null?t.padding:t.paddingOuter)||0,i=e==="point"?1:(t.paddingInner==null?t.padding:t.paddingInner)||0;return[0,t.rangeStep*Qm(n,i,r)]}function BT(e,t,n){var r=t.schemeExtent,i,a;return Z(t.scheme)?a=Tc(t.scheme,t.interpolate,t.interpolateGamma):(i=t.scheme.toLowerCase(),a=o0(i),a||T(`Unrecognized scheme name: ${t.scheme}`)),n=e==="threshold"?n+1:e==="bin-ordinal"?n-1:e==="quantile"||e==="quantize"?+t.schemeCount||AT:n,HA(e)?b_(a,r,t.reverse):me(a)?YA(b_(a,r),n):e==="ordinal"?a:a.slice(0,n)}function b_(e,t,n){return me(e)&&(t||n)?XA(e,dg(t||[0,1],n)):e}function dg(e,t){return t?e.slice().reverse():e}function x_(e){O.call(this,null,e)}G(x_,O,{transform(e,t){let n=e.modified("sort")||t.changed(t.ADD)||t.modified(e.sort.fields)||t.modified("datum");return n&&t.source.sort(Ca(e.sort)),this.modified(n),t}});var w_="zero",A_="center",E_="normalize",k_=["y0","y1"];function hg(e){O.call(this,null,e)}hg.Definition={type:"Stack",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"groupby",type:"field",array:!0},{name:"sort",type:"compare"},{name:"offset",type:"enum",default:w_,values:[w_,A_,E_]},{name:"as",type:"string",array:!0,length:2,default:k_}]},G(hg,O,{transform(e,t){var n=e.as||k_,r=n[0],i=n[1],a=Ca(e.sort),o=e.field||Zl,l=e.offset===A_?zT:e.offset===E_?NT:RT,s=TT(t.source,e.groupby,a,o),u,c,f;for(u=0,c=s.length,f=s.max;um(c),o,l,s,u,c,f,d,h,p;if(t==null)i.push(e.slice());else for(o={},l=0,s=e.length;lp&&(p=h),n&&d.sort(n)}return i.max=p,i}var Be=1e-6,pe=Math.PI,Ke=pe/2,Ef=pe/4,Ht=pe*2,nt=180/pe,de=pe/180,ve=Math.abs,el=Math.atan,Pn=Math.atan2,re=Math.cos,kf=Math.ceil,__=Math.exp,pg=Math.hypot,_f=Math.log,mg=Math.pow,te=Math.sin,In=Math.sign||function(e){return e>0?1:e<0?-1:0},Vt=Math.sqrt,gg=Math.tan;function D_(e){return e>1?0:e<-1?pe:Math.acos(e)}function un(e){return e>1?Ke:e<-1?-Ke:Math.asin(e)}function Et(){}function Df(e,t){e&&C_.hasOwnProperty(e.type)&&C_[e.type](e,t)}var F_={Feature:function(e,t){Df(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=re(t),o=te(t),l=xg*o,s=bg*a+l*re(i),u=l*r*te(i);Ff.add(Pn(u,s)),vg=e,bg=a,xg=o}function jT(e){return Cf=new Ut,oi(e,Mr),Cf*2}function $f(e){return[Pn(e[1],e[0]),un(e[2])]}function Ta(e){var t=e[0],n=e[1],r=re(n);return[r*re(t),r*te(t),te(n)]}function Sf(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function tl(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function wg(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Mf(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Of(e){var t=Vt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Ye,cn,Ze,En,La,B_,z_,nl,Os,Zi,li,si={point:Ag,lineStart:R_,lineEnd:T_,polygonStart:function(){si.point=L_,si.lineStart=qT,si.lineEnd=UT,Os=new Ut,Mr.polygonStart()},polygonEnd:function(){Mr.polygonEnd(),si.point=Ag,si.lineStart=R_,si.lineEnd=T_,Ff<0?(Ye=-(Ze=180),cn=-(En=90)):Os>1e-6?En=90:Os<-1e-6&&(cn=-90),li[0]=Ye,li[1]=Ze},sphere:function(){Ye=-(Ze=180),cn=-(En=90)}};function Ag(e,t){Zi.push(li=[Ye=e,Ze=e]),tEn&&(En=t)}function N_(e,t){var n=Ta([e*de,t*de]);if(nl){var r=tl(nl,n),i=tl([r[1],-r[0],0],r);Of(i),i=$f(i);var a=e-La,o=a>0?1:-1,l=i[0]*nt*o,s,u=ve(a)>180;u^(o*LaEn&&(En=s)):(l=(l+360)%360-180,u^(o*LaEn&&(En=t))),u?ekn(Ye,Ze)&&(Ze=e):kn(e,Ze)>kn(Ye,Ze)&&(Ye=e):Ze>=Ye?(eZe&&(Ze=e)):e>La?kn(Ye,e)>kn(Ye,Ze)&&(Ze=e):kn(e,Ze)>kn(Ye,Ze)&&(Ye=e)}else Zi.push(li=[Ye=e,Ze=e]);tEn&&(En=t),nl=n,La=e}function R_(){si.point=N_}function T_(){li[0]=Ye,li[1]=Ze,si.point=Ag,nl=null}function L_(e,t){if(nl){var n=e-La;Os.add(ve(n)>180?n+(n>0?360:-360):n)}else B_=e,z_=t;Mr.point(e,t),N_(e,t)}function qT(){Mr.lineStart()}function UT(){L_(B_,z_),Mr.lineEnd(),ve(Os)>1e-6&&(Ye=-(Ze=180)),li[0]=Ye,li[1]=Ze,nl=null}function kn(e,t){return(t-=e)<0?t+360:t}function WT(e,t){return e[0]-t[0]}function P_(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tkn(r[0],r[1])&&(r[1]=i[1]),kn(i[0],r[1])>kn(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,t=0,r=a[n];t<=n;r=i,++t)i=a[t],(l=kn(r[1],i[0]))>o&&(o=l,Ye=i[0],Ze=r[1])}return Zi=li=null,Ye===1/0||cn===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ye,cn],[Ze,En]]}var Bs,Bf,zf,Nf,Rf,Tf,Lf,Pf,Eg,kg,_g,I_,j_,Xt,Yt,Jt,nr={sphere:Et,point:Dg,lineStart:q_,lineEnd:U_,polygonStart:function(){nr.lineStart=XT,nr.lineEnd=YT},polygonEnd:function(){nr.lineStart=q_,nr.lineEnd=U_}};function Dg(e,t){e*=de,t*=de;var n=re(t);zs(n*re(e),n*te(e),te(t))}function zs(e,t,n){++Bs,zf+=(e-zf)/Bs,Nf+=(t-Nf)/Bs,Rf+=(n-Rf)/Bs}function q_(){nr.point=HT}function HT(e,t){e*=de,t*=de;var n=re(t);Xt=n*re(e),Yt=n*te(e),Jt=te(t),nr.point=VT,zs(Xt,Yt,Jt)}function VT(e,t){e*=de,t*=de;var n=re(t),r=n*re(e),i=n*te(e),a=te(t),o=Pn(Vt((o=Yt*a-Jt*i)*o+(o=Jt*r-Xt*a)*o+(o=Xt*i-Yt*r)*o),Xt*r+Yt*i+Jt*a);Bf+=o,Tf+=o*(Xt+(Xt=r)),Lf+=o*(Yt+(Yt=i)),Pf+=o*(Jt+(Jt=a)),zs(Xt,Yt,Jt)}function U_(){nr.point=Dg}function XT(){nr.point=JT}function YT(){W_(I_,j_),nr.point=Dg}function JT(e,t){I_=e,j_=t,e*=de,t*=de,nr.point=W_;var n=re(t);Xt=n*re(e),Yt=n*te(e),Jt=te(t),zs(Xt,Yt,Jt)}function W_(e,t){e*=de,t*=de;var n=re(t),r=n*re(e),i=n*te(e),a=te(t),o=Yt*a-Jt*i,l=Jt*r-Xt*a,s=Xt*i-Yt*r,u=pg(o,l,s),c=un(u),f=u&&-c/u;Eg.add(f*o),kg.add(f*l),_g.add(f*s),Bf+=c,Tf+=c*(Xt+(Xt=r)),Lf+=c*(Yt+(Yt=i)),Pf+=c*(Jt+(Jt=a)),zs(Xt,Yt,Jt)}function QT(e){Bs=Bf=zf=Nf=Rf=Tf=Lf=Pf=0,Eg=new Ut,kg=new Ut,_g=new Ut,oi(e,nr);var t=+Eg,n=+kg,r=+_g,i=pg(t,n,r);return i<1e-12&&(t=Tf,n=Lf,r=Pf,Bf<1e-6&&(t=zf,n=Nf,r=Rf),i=pg(t,n,r),i<1e-12)?[NaN,NaN]:[Pn(n,t)*nt,un(r/i)*nt]}function Fg(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function Cg(e,t){return ve(e)>pe&&(e-=Math.round(e/Ht)*Ht),[e,t]}Cg.invert=Cg;function G_(e,t,n){return(e%=Ht)?t||n?Fg(V_(e),X_(t,n)):V_(e):t||n?X_(t,n):Cg}function H_(e){return function(t,n){return t+=e,ve(t)>pe&&(t-=Math.round(t/Ht)*Ht),[t,n]}}function V_(e){var t=H_(e);return t.invert=H_(-e),t}function X_(e,t){var n=re(e),r=te(e),i=re(t),a=te(t);function o(l,s){var u=re(s),c=re(l)*u,f=te(l)*u,d=te(s),h=d*n+c*r;return[Pn(f*i-h*a,c*n-d*r),un(h*i+f*a)]}return o.invert=function(l,s){var u=re(s),c=re(l)*u,f=te(l)*u,d=te(s),h=d*i-f*a;return[Pn(f*i+d*a,c*n+h*r),un(h*n-c*r)]},o}function KT(e){e=G_(e[0]*de,e[1]*de,e.length>2?e[2]*de:0);function t(n){return n=e(n[0]*de,n[1]*de),n[0]*=nt,n[1]*=nt,n}return t.invert=function(n){return n=e.invert(n[0]*de,n[1]*de),n[0]*=nt,n[1]*=nt,n},t}function ZT(e,t,n,r,i,a){if(n){var o=re(t),l=te(t),s=r*n;i==null?(i=t+r*Ht,a=t-s/2):(i=Y_(o,i),a=Y_(o,a),(r>0?ia)&&(i+=r*Ht));for(var u,c=i;r>0?c>a:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function If(e,t){return ve(e[0]-t[0])<1e-6&&ve(e[1]-t[1])<1e-6}function jf(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Q_(e,t,n,r,i){var a=[],o=[],l,s;if(e.forEach(function(p){if(!((m=p.length-1)<=0)){var m,g=p[0],y=p[m],v;if(If(g,y)){if(!g[2]&&!y[2]){for(i.lineStart(),l=0;l=0;--l)i.point((f=c[l])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,c=d.z,h=!h}while(!d.v);i.lineEnd()}}}function K_(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n=0?1:-1,F=_*k,$=F>pe,R=g*E;if(s.add(Pn(R*_*te(F),y*x+R*re(F))),o+=$?k+_*Ht:k,$^p>=n^w>=n){var C=tl(Ta(h),Ta(b));Of(C);var M=tl(a,C);Of(M);var D=($^k>=0?-1:1)*un(M[2]);(r>D||r===D&&(C[0]||C[1]))&&(l+=$^k>=0?1:-1)}}return(o<-1e-6||o<1e-6&&s<-1e-12)^l&1}function Z_(e,t,n,r){return function(i){var a=t(i),o=J_(),l=t(o),s=!1,u,c,f,d={point:h,lineStart:m,lineEnd:g,polygonStart:function(){d.point=y,d.lineStart=v,d.lineEnd=b,c=[],u=[]},polygonEnd:function(){d.point=h,d.lineStart=m,d.lineEnd=g,c=pw(c);var w=eL(u,r);c.length?(s||(s=(i.polygonStart(),!0)),Q_(c,nL,w,n,i)):w&&(s||(s=(i.polygonStart(),!0)),i.lineStart(),n(null,null,1,i),i.lineEnd()),s&&(s=(i.polygonEnd(),!1)),c=u=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function h(w,A){e(w,A)&&i.point(w,A)}function p(w,A){a.point(w,A)}function m(){d.point=p,a.lineStart()}function g(){d.point=h,a.lineEnd()}function y(w,A){f.push([w,A]),l.point(w,A)}function v(){l.lineStart(),f=[]}function b(){y(f[0][0],f[0][1]),l.lineEnd();var w=l.clean(),A=o.result(),E,x=A.length,k,_,F;if(f.pop(),u.push(f),f=null,x){if(w&1){if(_=A[0],(k=_.length-1)>0){for(s||(s=(i.polygonStart(),!0)),i.lineStart(),E=0;E1&&w&2&&A.push(A.pop().concat(A.shift())),c.push(A.filter(tL))}}return d}}function tL(e){return e.length>1}function nL(e,t){return((e=e.x)[0]<0?e[1]-Ke-Be:Ke-e[1])-((t=t.x)[0]<0?t[1]-Ke-Be:Ke-t[1])}var eD=Z_(function(){return!0},rL,aL,[-pe,-Ke]);function rL(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var l=a>0?pe:-pe,s=ve(a-t);ve(s-pe)<1e-6?(e.point(t,n=(n+o)/2>0?Ke:-Ke),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),e.point(a,n),i=0):r!==l&&s>=pe&&(ve(t-r)<1e-6&&(t-=r*Be),ve(a-l)<1e-6&&(a-=l*Be),n=iL(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(l,n),i=0),e.point(t=a,n=o),r=l},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function iL(e,t,n,r){var i,a,o=te(e-n);return ve(o)>1e-6?el((te(t)*(a=re(r))*te(n)-te(r)*(i=re(t))*te(e))/(i*a*o)):(t+r)/2}function aL(e,t,n,r){var i;if(e==null)i=n*Ke,r.point(-pe,i),r.point(0,i),r.point(pe,i),r.point(pe,0),r.point(pe,-i),r.point(0,-i),r.point(-pe,-i),r.point(-pe,0),r.point(-pe,i);else if(ve(e[0]-t[0])>1e-6){var a=e[0]0,i=ve(t)>Be;function a(c,f,d,h){ZT(h,e,n,d,c,f)}function o(c,f){return re(c)*re(f)>t}function l(c){var f,d,h,p,m;return{lineStart:function(){p=h=!1,m=1},point:function(g,y){var v=[g,y],b,w=o(g,y),A=r?w?0:u(g,y):w?u(g+(g<0?pe:-pe),y):0;if(!f&&(p=h=w)&&c.lineStart(),w!==h&&(b=s(f,v),(!b||If(f,b)||If(v,b))&&(v[2]=1)),w!==h)m=0,w?(c.lineStart(),b=s(v,f),c.point(b[0],b[1])):(b=s(f,v),c.point(b[0],b[1],2),c.lineEnd()),f=b;else if(i&&f&&r^w){var E;!(A&d)&&(E=s(v,f,!0))&&(m=0,r?(c.lineStart(),c.point(E[0][0],E[0][1]),c.point(E[1][0],E[1][1]),c.lineEnd()):(c.point(E[1][0],E[1][1]),c.lineEnd(),c.lineStart(),c.point(E[0][0],E[0][1],3)))}w&&(!f||!If(f,v))&&c.point(v[0],v[1]),f=v,h=w,d=A},lineEnd:function(){h&&c.lineEnd(),f=null},clean:function(){return m|(p&&h)<<1}}}function s(c,f,d){var h=Ta(c),p=Ta(f),m=[1,0,0],g=tl(h,p),y=Sf(g,g),v=g[0],b=y-v*v;if(!b)return!d&&c;var w=t*y/b,A=-t*v/b,E=tl(m,g),x=Mf(m,w);wg(x,Mf(g,A));var k=E,_=Sf(x,k),F=Sf(k,k),$=_*_-F*(Sf(x,x)-1);if(!($<0)){var R=Vt($),C=Mf(k,(-_-R)/F);if(wg(C,x),C=$f(C),!d)return C;var M=c[0],D=f[0],S=c[1],L=f[1],W;D0^C[1]<(ve(C[0]-M)<1e-6?S:L):S<=C[1]&&C[1]<=L:H>pe^(M<=C[0]&&C[0]<=D)){var Fe=Mf(k,(-_+R)/F);return wg(Fe,x),[C,$f(Fe)]}}}function u(c,f){var d=r?e:pe-e,h=0;return c<-d?h|=1:c>d&&(h|=2),f<-d?h|=4:f>d&&(h|=8),h}return Z_(o,l,a,r?[0,-e]:[-pe,e-pe])}function lL(e,t,n,r,i,a){var o=e[0],l=e[1],s=t[0],u=t[1],c=0,f=1,d=s-o,h=u-l,p=n-o;if(!(!d&&p>0)){if(p/=d,d<0){if(p0){if(p>f)return;p>c&&(c=p)}if(p=i-o,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>c&&(c=p)}else if(d>0){if(p0)){if(p/=h,h<0){if(p0){if(p>f)return;p>c&&(c=p)}if(p=a-l,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>c&&(c=p)}else if(h>0){if(p0&&(e[0]=o+c*d,e[1]=l+c*h),f<1&&(t[0]=o+f*d,t[1]=l+f*h),!0}}}}}var Ns=1e9,qf=-Ns;function tD(e,t,n,r){function i(u,c){return e<=u&&u<=n&&t<=c&&c<=r}function a(u,c,f,d){var h=0,p=0;if(u==null||(h=o(u,f))!==(p=o(c,f))||s(u,c)<0^f>0)do d.point(h===0||h===3?e:n,h>1?r:t);while((h=(h+f+4)%4)!==p);else d.point(c[0],c[1])}function o(u,c){return ve(u[0]-e)<1e-6?c>0?0:3:ve(u[0]-n)<1e-6?c>0?2:1:ve(u[1]-t)<1e-6?c>0?1:0:c>0?3:2}function l(u,c){return s(u.x,c.x)}function s(u,c){var f=o(u,1),d=o(c,1);return f===d?f===0?c[1]-u[1]:f===1?u[0]-c[0]:f===2?u[1]-c[1]:c[0]-u[0]:f-d}return function(u){var c=u,f=J_(),d,h,p,m,g,y,v,b,w,A,E,x={point:k,lineStart:R,lineEnd:C,polygonStart:F,polygonEnd:$};function k(D,S){i(D,S)&&c.point(D,S)}function _(){for(var D=0,S=0,L=h.length;Sr&&(ln-Fe)*(r-be)>(Pt-be)*(e-Fe)&&++D:Pt<=r&&(ln-Fe)*(r-be)<(Pt-be)*(e-Fe)&&--D;return D}function F(){c=f,d=[],h=[],E=!0}function $(){var D=_(),S=E&&D,L=(d=pw(d)).length;(S||L)&&(u.polygonStart(),S&&(u.lineStart(),a(null,null,1,u),u.lineEnd()),L&&Q_(d,l,D,a,u),u.polygonEnd()),c=u,d=h=p=null}function R(){x.point=M,h&&h.push(p=[]),A=!0,w=!1,v=b=NaN}function C(){d&&(M(m,g),y&&w&&f.rejoin(),d.push(f.result())),x.point=k,w&&c.lineEnd()}function M(D,S){var L=i(D,S);if(h&&p.push([D,S]),A)m=D,g=S,y=L,A=!1,L&&(c.lineStart(),c.point(D,S));else if(L&&w)c.point(D,S);else{var W=[v=Math.max(qf,Math.min(Ns,v)),b=Math.max(qf,Math.min(Ns,b))],H=[D=Math.max(qf,Math.min(Ns,D)),S=Math.max(qf,Math.min(Ns,S))];lL(W,H,e,t,n,r)?(w||(c.lineStart(),c.point(W[0],W[1])),c.point(H[0],H[1]),L||c.lineEnd(),E=!1):L&&(c.lineStart(),c.point(D,S),E=!1)}v=D,b=S,w=L}return x}}function nD(e,t,n){var r=xn(e,t-Be,n).concat(t);return function(i){return r.map(function(a){return[i,a]})}}function rD(e,t,n){var r=xn(e,t-Be,n).concat(t);return function(i){return r.map(function(a){return[a,i]})}}function sL(){var e,t,n,r,i,a,o,l,s=10,u=s,c=90,f=360,d,h,p,m,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return xn(kf(r/c)*c,n,c).map(p).concat(xn(kf(l/f)*f,o,f).map(m)).concat(xn(kf(t/s)*s,e,s).filter(function(b){return ve(b%c)>Be}).map(d)).concat(xn(kf(a/u)*u,i,u).filter(function(b){return ve(b%f)>Be}).map(h))}return y.lines=function(){return v().map(function(b){return{type:"LineString",coordinates:b}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(m(o).slice(1),p(n).reverse().slice(1),m(l).reverse().slice(1))]}},y.extent=function(b){return arguments.length?y.extentMajor(b).extentMinor(b):y.extentMinor()},y.extentMajor=function(b){return arguments.length?(r=+b[0][0],n=+b[1][0],l=+b[0][1],o=+b[1][1],r>n&&(b=r,r=n,n=b),l>o&&(b=l,l=o,o=b),y.precision(g)):[[r,l],[n,o]]},y.extentMinor=function(b){return arguments.length?(t=+b[0][0],e=+b[1][0],a=+b[0][1],i=+b[1][1],t>e&&(b=t,t=e,e=b),a>i&&(b=a,a=i,i=b),y.precision(g)):[[t,a],[e,i]]},y.step=function(b){return arguments.length?y.stepMajor(b).stepMinor(b):y.stepMinor()},y.stepMajor=function(b){return arguments.length?(c=+b[0],f=+b[1],y):[c,f]},y.stepMinor=function(b){return arguments.length?(s=+b[0],u=+b[1],y):[s,u]},y.precision=function(b){return arguments.length?(g=+b,d=nD(a,i,90),h=rD(t,e,g),p=nD(l,o,90),m=rD(r,n,g),y):g},y.extentMajor([[-180,-90+Be],[180,90-Be]]).extentMinor([[-180,-80-Be],[180,80+Be]])}var Rs=e=>e,Sg=new Ut,Mg=new Ut,iD,aD,Og,Bg,ea={point:Et,lineStart:Et,lineEnd:Et,polygonStart:function(){ea.lineStart=uL,ea.lineEnd=fL},polygonEnd:function(){ea.lineStart=ea.lineEnd=ea.point=Et,Sg.add(ve(Mg)),Mg=new Ut},result:function(){var e=Sg/2;return Sg=new Ut,e}};function uL(){ea.point=cL}function cL(e,t){ea.point=oD,iD=Og=e,aD=Bg=t}function oD(e,t){Mg.add(Bg*e-Og*t),Og=e,Bg=t}function fL(){oD(iD,aD)}var lD=ea,rl=1/0,Uf=rl,Ts=-rl,Wf=Ts,dL={point:hL,lineStart:Et,lineEnd:Et,polygonStart:Et,polygonEnd:Et,result:function(){var e=[[rl,Uf],[Ts,Wf]];return Ts=Wf=-(Uf=rl=1/0),e}};function hL(e,t){eTs&&(Ts=e),tWf&&(Wf=t)}var Gf=dL,zg=0,Ng=0,Ls=0,Hf=0,Vf=0,il=0,Rg=0,Tg=0,Ps=0,sD,uD,Or,Br,rr={point:Pa,lineStart:cD,lineEnd:fD,polygonStart:function(){rr.lineStart=gL,rr.lineEnd=yL},polygonEnd:function(){rr.point=Pa,rr.lineStart=cD,rr.lineEnd=fD},result:function(){var e=Ps?[Rg/Ps,Tg/Ps]:il?[Hf/il,Vf/il]:Ls?[zg/Ls,Ng/Ls]:[NaN,NaN];return zg=Ng=Ls=Hf=Vf=il=Rg=Tg=Ps=0,e}};function Pa(e,t){zg+=e,Ng+=t,++Ls}function cD(){rr.point=pL}function pL(e,t){rr.point=mL,Pa(Or=e,Br=t)}function mL(e,t){var n=e-Or,r=t-Br,i=Vt(n*n+r*r);Hf+=i*(Or+e)/2,Vf+=i*(Br+t)/2,il+=i,Pa(Or=e,Br=t)}function fD(){rr.point=Pa}function gL(){rr.point=vL}function yL(){dD(sD,uD)}function vL(e,t){rr.point=dD,Pa(sD=Or=e,uD=Br=t)}function dD(e,t){var n=e-Or,r=t-Br,i=Vt(n*n+r*r);Hf+=i*(Or+e)/2,Vf+=i*(Br+t)/2,il+=i,i=Br*e-Or*t,Rg+=i*(Or+e),Tg+=i*(Br+t),Ps+=i*3,Pa(Or=e,Br=t)}var hD=rr;function pD(e){this._context=e}pD.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Ht);break}},result:Et};var Lg=new Ut,Pg,mD,gD,Is,js,Xf={point:Et,lineStart:function(){Xf.point=bL},lineEnd:function(){Pg&&yD(mD,gD),Xf.point=Et},polygonStart:function(){Pg=!0},polygonEnd:function(){Pg=null},result:function(){var e=+Lg;return Lg=new Ut,e}};function bL(e,t){Xf.point=yD,mD=Is=e,gD=js=t}function yD(e,t){Is-=e,js-=t,Lg.add(Vt(Is*Is+js*js)),Is=e,js=t}var vD=Xf,bD,Yf,xD,wD,AD=class{constructor(e){this._append=e==null?ED:xL(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==xD||this._append!==Yf){let n=this._radius,r=this._;this._="",this._append`m0,${n}a${n},${n} 0 1,1 0,${-2*n}a${n},${n} 0 1,1 0,${2*n}z`,xD=n,Yf=this._append,wD=this._,this._=r}this._+=wD;break}}result(){let e=this._;return this._="",e.length?e:null}};function ED(e){let t=1;this._+=e[0];for(let n=e.length;t=0))throw RangeError(`invalid digits: ${e}`);if(t>15)return ED;if(t!==bD){let n=10**t;bD=t,Yf=function(r){let i=1;this._+=r[0];for(let a=r.length;i=0))throw RangeError(`invalid digits: ${l}`);n=s}return t===null&&(a=new AD(n)),o},o.projection(e).digits(n).context(t)}function Jf(e){return function(t){var n=new Ig;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Ig(){}Ig.prototype={constructor:Ig,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function jg(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),oi(n,e.stream(Gf)),t(Gf.result()),r!=null&&e.clipExtent(r),e}function Qf(e,t,n){return jg(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),l=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,s=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([l,s])},n)}function qg(e,t,n){return Qf(e,[[0,0],t],n)}function Ug(e,t,n){return jg(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,l=-a*r[0][1];e.scale(150*a).translate([o,l])},n)}function Wg(e,t,n){return jg(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],l=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,l])},n)}var _D=16,wL=re(30*de);function DD(e,t){return+t?EL(e,t):AL(e)}function AL(e){return Jf({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function EL(e,t){function n(r,i,a,o,l,s,u,c,f,d,h,p,m,g){var y=u-r,v=c-i,b=y*y+v*v;if(b>4*t&&m--){var w=o+d,A=l+h,E=s+p,x=Vt(w*w+A*A+E*E),k=un(E/=x),_=ve(ve(E)-1)<1e-6||ve(a-f)<1e-6?(a+f)/2:Pn(A,w),F=e(_,k),$=F[0],R=F[1],C=$-r,M=R-i,D=v*C-y*M;(D*D/b>t||ve((y*C+v*M)/b-.5)>.3||o*d+l*h+s*p2?D[2]%360*de:0,C()):[l*nt,s*nt,u*nt]},$.angle=function(D){return arguments.length?(f=D%360*de,C()):f*nt},$.reflectX=function(D){return arguments.length?(d=D?-1:1,C()):d<0},$.reflectY=function(D){return arguments.length?(h=D?-1:1,C()):h<0},$.precision=function(D){return arguments.length?(E=DD(x,A=D*D),M()):Vt(A)},$.fitExtent=function(D,S){return Qf($,D,S)},$.fitSize=function(D,S){return qg($,D,S)},$.fitWidth=function(D,S){return Ug($,D,S)},$.fitHeight=function(D,S){return Wg($,D,S)};function C(){var D=FD(n,0,0,d,h,f).apply(null,t(a,o)),S=FD(n,r-D[0],i-D[1],d,h,f);return c=G_(l,s,u),x=Fg(t,S),k=Fg(c,x),E=DD(x,A),M()}function M(){return _=F=null,$}return function(){return t=e.apply(this,arguments),$.invert=t.invert&&R,C()}}function Gg(e){var t=0,n=pe/3,r=CD(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*de,n=a[1]*de):[t*nt,n*nt]},i}function FL(e){var t=re(e);function n(r,i){return[r*t,te(i)/t]}return n.invert=function(r,i){return[r/t,un(i*t)]},n}function CL(e,t){var n=te(e),r=(n+te(t))/2;if(ve(r)<1e-6)return FL(e);var i=1+n*(2*r-n),a=Vt(i)/r;function o(l,s){var u=Vt(i-2*r*te(s))/r;return[u*te(l*=r),a-u*re(l)]}return o.invert=function(l,s){var u=a-s,c=Pn(l,ve(u))*In(u);return u*r<0&&(c-=pe*In(l)*In(u)),[c/r,un((i-(l*l+u*u)*r*r)/(2*r))]},o}function Kf(){return Gg(CL).scale(155.424).center([0,33.6442])}function $D(){return Kf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function $L(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i=.12&&g<.234&&m>=-.425&&m<-.214?i:g>=.166&&g<.234&&m>=-.214&&m<-.115?o:n).invert(d)},c.stream=function(d){return e&&t===d?e:e=$L([n.stream(t=d),i.stream(d),o.stream(d)])},c.precision=function(d){return arguments.length?(n.precision(d),i.precision(d),o.precision(d),f()):n.precision()},c.scale=function(d){return arguments.length?(n.scale(d),i.scale(d*.35),o.scale(d),c.translate(n.translate())):n.scale()},c.translate=function(d){if(!arguments.length)return n.translate();var h=n.scale(),p=+d[0],m=+d[1];return r=n.translate(d).clipExtent([[p-.455*h,m-.238*h],[p+.455*h,m+.238*h]]).stream(u),a=i.translate([p-.307*h,m+.201*h]).clipExtent([[p-.425*h+Be,m+.12*h+Be],[p-.214*h-Be,m+.234*h-Be]]).stream(u),l=o.translate([p-.205*h,m+.212*h]).clipExtent([[p-.214*h+Be,m+.166*h+Be],[p-.115*h-Be,m+.234*h-Be]]).stream(u),f()},c.fitExtent=function(d,h){return Qf(c,d,h)},c.fitSize=function(d,h){return qg(c,d,h)},c.fitWidth=function(d,h){return Ug(c,d,h)},c.fitHeight=function(d,h){return Wg(c,d,h)};function f(){return e=t=null,c}return c.scale(1070)}function SD(e){return function(t,n){var r=re(t),i=re(n),a=e(r*i);return a===1/0?[2,0]:[a*i*te(t),a*te(n)]}}function qs(e){return function(t,n){var r=Vt(t*t+n*n),i=e(r),a=te(i),o=re(i);return[Pn(t*a,r*o),un(r&&n*a/r)]}}var MD=SD(function(e){return Vt(2/(1+e))});MD.invert=qs(function(e){return 2*un(e/2)});function ML(){return zr(MD).scale(124.75).clipAngle(179.999)}var OD=SD(function(e){return(e=D_(e))&&e/te(e)});OD.invert=qs(function(e){return e});function OL(){return zr(OD).scale(79.4188).clipAngle(179.999)}function Zf(e,t){return[e,_f(gg((Ke+t)/2))]}Zf.invert=function(e,t){return[e,2*el(__(t))-Ke]};function BL(){return BD(Zf).scale(961/Ht)}function BD(e){var t=zr(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,l,s,u;t.scale=function(f){return arguments.length?(r(f),c()):r()},t.translate=function(f){return arguments.length?(i(f),c()):i()},t.center=function(f){return arguments.length?(n(f),c()):n()},t.clipExtent=function(f){return arguments.length?(f==null?o=l=s=u=null:(o=+f[0][0],l=+f[0][1],s=+f[1][0],u=+f[1][1]),c()):o==null?null:[[o,l],[s,u]]};function c(){var f=pe*r(),d=t(KT(t.rotate()).invert([0,0]));return a(o==null?[[d[0]-f,d[1]-f],[d[0]+f,d[1]+f]]:e===Zf?[[Math.max(d[0]-f,o),l],[Math.min(d[0]+f,s),u]]:[[o,Math.max(d[1]-f,l)],[s,Math.min(d[1]+f,u)]])}return c()}function ed(e){return gg((Ke+e)/2)}function zL(e,t){var n=re(e),r=e===t?te(e):_f(n/re(t))/_f(ed(t)/ed(e)),i=n*mg(ed(e),r)/r;if(!r)return Zf;function a(o,l){i>0?l<-Ke+1e-6&&(l=-Ke+Be):l>Ke-1e-6&&(l=Ke-Be);var s=i/mg(ed(l),r);return[s*te(r*o),i-s*re(r*o)]}return a.invert=function(o,l){var s=i-l,u=In(r)*Vt(o*o+s*s),c=Pn(o,ve(s))*In(s);return s*r<0&&(c-=pe*In(o)*In(s)),[c/r,2*el(mg(i/u,1/r))-Ke]},a}function NL(){return Gg(zL).scale(109.5).parallels([30,30])}function td(e,t){return[e,t]}td.invert=td;function RL(){return zr(td).scale(152.63)}function TL(e,t){var n=re(e),r=e===t?te(e):(n-re(t))/(t-e),i=n/r+e;if(ve(r)<1e-6)return td;function a(o,l){var s=i-l,u=r*o;return[s*te(u),i-s*re(u)]}return a.invert=function(o,l){var s=i-l,u=Pn(o,ve(s))*In(s);return s*r<0&&(u-=pe*In(o)*In(s)),[u/r,i-In(r)*Vt(o*o+s*s)]},a}function LL(){return Gg(TL).scale(131.154).center([0,13.9389])}var Us=1.340264,Ws=-.081106,Gs=893e-6,Hs=.003796,nd=Vt(3)/2,PL=12;function zD(e,t){var n=un(nd*te(t)),r=n*n,i=r*r*r;return[e*re(n)/(nd*(Us+3*Ws*r+i*(7*Gs+9*Hs*r))),n*(Us+Ws*r+i*(Gs+Hs*r))]}zD.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,l,s;a1e-6&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function UL(){return zr(RD).scale(175.295)}function TD(e,t){return[re(t)*te(e),te(t)]}TD.invert=qs(un);function WL(){return zr(TD).scale(249.5).clipAngle(90+Be)}function LD(e,t){var n=re(t),r=1+re(e)*n;return[n*te(e)/r,te(t)/r]}LD.invert=qs(function(e){return 2*el(e)});function GL(){return zr(LD).scale(250).clipAngle(142)}function PD(e,t){return[_f(gg((Ke+t)/2)),-e]}PD.invert=function(e,t){return[-t,2*el(__(e))-Ke]};function HL(){var e=BD(PD),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}var VL=Math.abs,Hg=Math.cos,rd=Math.sin,al=Math.PI,Vg=al/2;al/4;var ID=XL(2);al*2,180/al,al/180;function jD(e){return e>1?Vg:e<-1?-Vg:Math.asin(e)}function XL(e){return e>0?Math.sqrt(e):0}function YL(e,t){var n=e*rd(t),r=30,i;do t-=i=(t+rd(t)-n)/(1+Hg(t));while(VL(i)>1e-6&&--r>0);return t/2}function JL(e,t,n){function r(i,a){return[e*i*Hg(a=YL(n,a)),t*rd(a)]}return r.invert=function(i,a){return a=jD(a/t),[i/(e*Hg(a)),jD((2*a+rd(2*a))/n)]},r}var QL=JL(ID/Vg,ID,al);function KL(){return zr(QL).scale(169.529)}var ZL=kD(),Xg=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function eP(e,t){return function n(){let r=t();return r.type=e,r.path=kD().projection(r),r.copy=r.copy||function(){let i=n();return Xg.forEach(a=>{r[a]&&i[a](r[a]())}),i.path.pointRadius(r.path.pointRadius()),i},qA(r)}}function Yg(e,t){if(!e||typeof e!="string")throw Error("Projection type must be a name string.");return e=e.toLowerCase(),arguments.length>1?(id[e]=eP(e,t),this):id[e]||null}function qD(e){return e&&e.path||ZL}var id={albers:$D,albersusa:SL,azimuthalequalarea:ML,azimuthalequidistant:OL,conicconformal:NL,conicequalarea:Kf,conicequidistant:LL,equalEarth:IL,equirectangular:RL,gnomonic:jL,identity:qL,mercator:BL,mollweide:KL,naturalEarth1:UL,orthographic:WL,stereographic:GL,transversemercator:HL};for(let e in id)Yg(e,id[e]);var tP=sn({contour:()=>Zg,geojson:()=>n1,geopath:()=>r1,geopoint:()=>i1,geoshape:()=>a1,graticule:()=>o1,heatmap:()=>l1,isocontour:()=>Jg,kde2d:()=>Kg,projection:()=>JD},1);function nP(){}var ui=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function UD(){var e=1,t=1,n=l;function r(s,u){return u.map(c=>i(s,c))}function i(s,u){var c=[],f=[];return a(s,u,d=>{n(d,s,u),rP(d)>0?c.push([d]):f.push(d)}),f.forEach(d=>{for(var h=0,p=c.length,m;h=u,y,v;for(ui[g<<1].forEach(b);++h=u,ui[m|g<<1].forEach(b);for(ui[g<<0].forEach(b);++p=u,y=s[p*e]>=u,ui[g<<1|y<<2].forEach(b);++h=u,v=y,y=s[p*e+h+1]>=u,ui[m|g<<1|y<<2|v<<3].forEach(b);ui[g|y<<3].forEach(b)}for(h=-1,y=s[p*e]>=u,ui[y<<2].forEach(b);++h=u,ui[y<<2|v<<3].forEach(b);ui[y<<3].forEach(b);function b(w){var A=[w[0][0]+h,w[0][1]+p],E=[w[1][0]+h,w[1][1]+p],x=o(A),k=o(E),_,F;(_=d[x])?(F=f[k])?(delete d[_.end],delete f[F.start],_===F?(_.ring.push(E),c(_.ring)):f[_.start]=d[F.end]={start:_.start,end:F.end,ring:_.ring.concat(F.ring)}):(delete d[_.end],_.ring.push(E),d[_.end=k]=_):(_=f[k])?(F=d[x])?(delete f[_.start],delete d[F.end],_===F?(_.ring.push(E),c(_.ring)):f[F.start]=d[_.end]={start:F.start,end:_.end,ring:F.ring.concat(_.ring)}):(delete f[_.start],_.ring.unshift(A),f[_.start=x]=_):f[x]=d[k]={start:x,end:k,ring:[A,E]}}}function o(s){return s[0]*2+s[1]*(e+1)*4}function l(s,u,c){s.forEach(f=>{var d=f[0],h=f[1],p=d|0,m=h|0,g,y=u[m*e+p];d>0&&d0&&h=0&&c>=0||T("invalid size"),e=u,t=c,r},r.smooth=function(s){return arguments.length?(n=s?l:nP,r):n===l},r}function rP(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++tr!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(i=-i)}return i}function oP(e,t,n){var r;return lP(e,t,n)&&sP(e[r=+(e[0]===t[0])],n[r],t[r])}function lP(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}function sP(e,t,n){return e<=t&&t<=n||n<=t&&t<=e}function WD(e,t,n){return function(r){var i=Dr(r),a=n?Math.min(i[0],0):i[0],o=i[1],l=o-a,s=t?Z2(a,o,e):l/(e+1);return xn(a+s,o,s)}}function Jg(e){O.call(this,null,e)}Jg.Definition={type:"Isocontour",metadata:{generates:!0},params:[{name:"field",type:"field"},{name:"thresholds",type:"number",array:!0},{name:"levels",type:"number"},{name:"nice",type:"boolean",default:!1},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"zero",type:"boolean",default:!0},{name:"smooth",type:"boolean",default:!0},{name:"scale",type:"number",expr:!0},{name:"translate",type:"number",array:!0,expr:!0},{name:"as",type:"string",null:!0,default:"contour"}]},G(Jg,O,{transform(e,t){if(this.value&&!t.changed()&&!e.modified())return t.StopPropagation;var n=t.fork(t.NO_SOURCE|t.NO_FIELDS),r=t.materialize(t.SOURCE).source,i=e.field||Jn,a=UD().smooth(e.smooth!==!1),o=e.thresholds||uP(r,i,e),l=e.as===null?null:e.as||"contour",s=[];return r.forEach(u=>{let c=i(u),f=a.size([c.width,c.height])(c.values,Z(o)?o:o(c.values));cP(f,c,u,e),f.forEach(d=>{s.push(xc(u,Ce(l==null?d:{[l]:d})))})}),this.value&&(n.rem=this.value),this.value=n.source=n.add=s,n}});function uP(e,t,n){let r=WD(n.levels||10,n.nice,n.zero!==!1);return n.resolve==="shared"?r(e.map(i=>Da(t(i).values))):r}function cP(e,t,n,r){let i=r.scale||t.scale,a=r.translate||t.translate;if(me(i)&&(i=i(n,r)),me(a)&&(a=a(n,r)),(i===1||i==null)&&!a)return;let o=(_a(i)?i:i[0])||1,l=(_a(i)?i:i[1])||1,s=a&&a[0]||0,u=a&&a[1]||0;e.forEach(GD(t,o,l,s,u))}function GD(e,t,n,r,i){let a=e.x1||0,o=e.y1||0,l=t*n<0;function s(f){f.forEach(u)}function u(f){l&&f.reverse(),f.forEach(c)}function c(f){f[0]=(f[0]-a)*t+r,f[1]=(f[1]-o)*n+i}return function(f){return f.coordinates.forEach(s),f}}function HD(e,t,n){let r=e>=0?e:tm(t,n);return Math.round((Math.sqrt(4*r*r+1)-1)/2)}function Qg(e){return me(e)?e:jt(+e)}function VD(){var e=s=>s[0],t=s=>s[1],n=Zl,r=[-1,-1],i=960,a=500,o=2;function l(s,u){let c=HD(r[0],s,e)>>o,f=HD(r[1],s,t)>>o,d=c?c+2:0,h=f?f+2:0,p=2*d+(i>>o),m=2*h+(a>>o),g=new Float32Array(p*m),y=new Float32Array(p*m),v=g;s.forEach(w=>{let A=d+(+e(w)>>o),E=h+(+t(w)>>o);A>=0&&A=0&&E0&&f>0?(ol(p,m,g,y,c),ll(p,m,y,g,f),ol(p,m,g,y,c),ll(p,m,y,g,f),ol(p,m,g,y,c),ll(p,m,y,g,f)):c>0?(ol(p,m,g,y,c),ol(p,m,y,g,c),ol(p,m,g,y,c),v=y):f>0&&(ll(p,m,g,y,f),ll(p,m,y,g,f),ll(p,m,g,y,f),v=y);let b=u?2**(-2*o):1/mw(v);for(let w=0,A=p*m;w>o),y2:h+(a>>o)}}return l.x=function(s){return arguments.length?(e=Qg(s),l):e},l.y=function(s){return arguments.length?(t=Qg(s),l):t},l.weight=function(s){return arguments.length?(n=Qg(s),l):n},l.size=function(s){if(!arguments.length)return[i,a];var u=+s[0],c=+s[1];return u>=0&&c>=0||T("invalid size"),i=u,a=c,l},l.cellSize=function(s){return arguments.length?((s=+s)>=1||T("invalid cell size"),o=Math.floor(Math.log(s)/Math.LN2),l):1<=i&&(l>=a&&(s-=n[l-a+o*e]),r[l-i+o*e]=s/Math.min(l+1,e-1+a-l,a))}function ll(e,t,n,r,i){let a=(i<<1)+1;for(let o=0;o=i&&(l>=a&&(s-=n[o+(l-a)*e]),r[o+(l-i)*e]=s/Math.min(l+1,t-1+a-l,a))}function Kg(e){O.call(this,null,e)}Kg.Definition={type:"KDE2D",metadata:{generates:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"weight",type:"field"},{name:"groupby",type:"field",array:!0},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number",array:!0,length:2},{name:"counts",type:"boolean",default:!1},{name:"as",type:"string",default:"grid"}]};var fP=["x","y","weight","size","cellSize","bandwidth"];function XD(e,t){return fP.forEach(n=>t[n]==null?0:e[n](t[n])),e}G(Kg,O,{transform(e,t){if(this.value&&!t.changed()&&!e.modified())return t.StopPropagation;var n=t.fork(t.NO_SOURCE|t.NO_FIELDS),r=t.materialize(t.SOURCE).source,i=dP(r,e.groupby),a=(e.groupby||[]).map(Qe),o=XD(VD(),e),l=e.as||"grid",s=[];function u(c,f){for(let d=0;dCe(u({[l]:o(c,e.counts)},c.dims))),this.value&&(n.rem=this.value),this.value=n.source=n.add=s,n}});function dP(e,t){var n=[],r=c=>c(l),i,a,o,l,s,u;if(t==null)n.push(e);else for(i={},a=0,o=e.length;an.push(l(c))),a&&o&&(t.visit(s,c=>{var f=a(c),d=o(c);f!=null&&d!=null&&(f=+f)===f&&(d=+d)===d&&r.push([f,d])}),n=n.concat({type:e1,geometry:{type:hP,coordinates:r}})),this.value={type:t1,features:n}}});function r1(e){O.call(this,null,e)}r1.Definition={type:"GeoPath",metadata:{modifies:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"path"}]},G(r1,O,{transform(e,t){var n=t.fork(t.ALL),r=this.value,i=e.field||Jn,a=e.as||"path",o=n.SOURCE;!r||e.modified()?(this.value=r=qD(e.projection),n.materialize().reflow()):o=i===Jn||t.modified(i.fields)?n.ADD_MOD:n.ADD;let l=pP(r,e.pointRadius);return n.visit(o,s=>s[a]=r(i(s))),r.pointRadius(l),n.modifies(a)}});function pP(e,t){let n=e.pointRadius();return e.context(null),t!=null&&e.pointRadius(t),n}function i1(e){O.call(this,null,e)}i1.Definition={type:"GeoPoint",metadata:{modifies:!0},params:[{name:"projection",type:"projection",required:!0},{name:"fields",type:"field",array:!0,required:!0,length:2},{name:"as",type:"string",array:!0,length:2,default:["x","y"]}]},G(i1,O,{transform(e,t){var n=e.projection,r=e.fields[0],i=e.fields[1],a=e.as||["x","y"],o=a[0],l=a[1],s;function u(c){let f=n([r(c),i(c)]);f?(c[o]=f[0],c[l]=f[1]):(c[o]=void 0,c[l]=void 0)}return e.modified()?t=t.materialize().reflow(!0).visit(t.SOURCE,u):(s=t.modified(r.fields)||t.modified(i.fields),t.visit(s?t.ADD_MOD:t.ADD,u)),t.modifies(a)}});function a1(e){O.call(this,null,e)}a1.Definition={type:"GeoShape",metadata:{modifies:!0,nomod:!0},params:[{name:"projection",type:"projection"},{name:"field",type:"field",default:"datum"},{name:"pointRadius",type:"number",expr:!0},{name:"as",type:"string",default:"shape"}]},G(a1,O,{transform(e,t){var n=t.fork(t.ALL),r=this.value,i=e.as||"shape",a=n.ADD;return(!r||e.modified())&&(this.value=r=mP(qD(e.projection),e.field||ti("datum"),e.pointRadius),n.materialize().reflow(),a=n.SOURCE),n.visit(a,o=>o[i]=r),n.modifies(i)}});function mP(e,t,n){let r=n==null?i=>e(t(i)):i=>{var a=e.pointRadius(),o=e.pointRadius(n)(t(i));return e.pointRadius(a),o};return r.context=i=>(e.context(i),r),r}function o1(e){O.call(this,[],e),this.generator=sL()}o1.Definition={type:"Graticule",metadata:{changes:!0,generates:!0},params:[{name:"extent",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMajor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"extentMinor",type:"array",array:!0,length:2,content:{type:"number",array:!0,length:2}},{name:"step",type:"number",array:!0,length:2},{name:"stepMajor",type:"number",array:!0,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:!0,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]},G(o1,O,{transform(e,t){var n=this.value,r=this.generator,i;if(!n.length||e.modified())for(let a in e)me(r[a])&&r[a](e[a]);return i=r(),n.length?t.mod.push(vw(n[0],i)):t.add.push(Ce(i)),n[0]=i,t}});function l1(e){O.call(this,null,e)}l1.Definition={type:"heatmap",metadata:{modifies:!0},params:[{name:"field",type:"field"},{name:"color",type:"string",expr:!0},{name:"opacity",type:"number",expr:!0},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"as",type:"string",default:"image"}]},G(l1,O,{transform(e,t){if(!t.changed()&&!e.modified())return t.StopPropagation;var n=t.materialize(t.SOURCE).source,r=e.resolve==="shared",i=e.field||Jn,a=yP(e.opacity,e),o=gP(e.color,e),l=e.as||"image",s={$x:0,$y:0,$value:0,$max:r?Da(n.map(u=>Da(i(u).values))):0};return n.forEach(u=>{let c=i(u),f=ge({},u,s);r||(f.$max=Da(c.values||[])),u[l]=vP(c,f,o.dep?o:jt(o(f)),a.dep?a:jt(a(f)))}),t.reflow(!0).modifies(l)}});function gP(e,t){let n;return me(e)?(n=r=>pc(e(r,t)),n.dep=YD(e)):n=jt(pc(e||"#888")),n}function yP(e,t){let n;return me(e)?(n=r=>e(r,t),n.dep=YD(e)):e?n=jt(e):(n=r=>r.$value/r.$max||0,n.dep=!0),n}function YD(e){if(!me(e))return!1;let t=_r(It(e));return t.$x||t.$y||t.$value||t.$max}function vP(e,t,n,r){let i=e.width,a=e.height,o=e.x1||0,l=e.y1||0,s=e.x2||i,u=e.y2||a,c=e.values,f=c?g=>c[g]:Sp,d=Li(s-o,u-l),h=d.getContext("2d"),p=h.getImageData(0,0,s-o,u-l),m=p.data;for(let g=l,y=0;g{e[r]!=null&&QD(n,r,e[r])})):Xg.forEach(r=>{e.modified(r)&&QD(n,r,e[r])}),e.pointRadius!=null&&n.path.pointRadius(e.pointRadius),e.fit&&bP(n,e),t.fork(t.NO_SOURCE|t.NO_FIELDS)}});function bP(e,t){let n=wP(t.fit);t.extent?e.fitExtent(t.extent,n):t.size&&e.fitSize(t.size,n)}function xP(e){let t=Yg((e||"mercator").toLowerCase());return t||T("Unrecognized projection type: "+e),t()}function QD(e,t,n){me(e[t])&&e[t](n)}function wP(e){return e=ie(e),e.length===1?e[0]:{type:t1,features:e.reduce((t,n)=>t.concat(AP(n)),[])}}function AP(e){return e.type===t1?e.features:ie(e).filter(t=>t!=null).map(t=>t.type===e1?t:{type:e1,geometry:t})}function EP(e,t){var n,r=1;e??(e=0),t??(t=0);function i(){var a,o=n.length,l,s=0,u=0;for(a=0;a=(f=(l+u)/2))?l=f:u=f,(g=n>=(d=(s+c)/2))?s=d:c=d,i=a,!(a=a[y=g<<1|m]))return i[y]=o,e;if(h=+e._x.call(null,a.data),p=+e._y.call(null,a.data),t===h&&n===p)return o.next=a,i?i[y]=o:e._root=o,e;do i=i?i[y]=[,,,,]:e._root=[,,,,],(m=t>=(f=(l+u)/2))?l=f:u=f,(g=n>=(d=(s+c)/2))?s=d:c=d;while((y=g<<1|m)==(v=(p>=d)<<1|h>=f));return i[v]=a,i[y]=o,e}function _P(e){var t,n,r=e.length,i,a,o=Array(r),l=Array(r),s=1/0,u=1/0,c=-1/0,f=-1/0;for(n=0;nc&&(c=i),af&&(f=a));if(s>c||u>f)return this;for(this.cover(s,u).cover(c,f),n=0;ne||e>=i||r>t||t>=a;)switch(u=(tc||(l=p.y0)>f||(s=p.x1)=y)<<1|e>=g)&&(p=d[d.length-1],d[d.length-1]=d[d.length-1-m],d[d.length-1-m]=p)}else{var v=e-+this._x.call(null,h.data),b=t-+this._y.call(null,h.data),w=v*v+b*b;if(w=(d=(o+s)/2))?o=d:s=d,(m=f>=(h=(l+u)/2))?l=h:u=h,t=n,!(n=n[g=m<<1|p]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,y=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[g]=a:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=a,this)}function MP(e){for(var t=0,n=e.length;td.index){var $=h-k.x-k.vx,R=p-k.y-k.vy,C=$*$+R*R;Ch+F||Ep+F||xu.r&&(u.r=u[c].r)}function s(){if(t){var u,c=t.length,f;for(n=Array(c),u=0;u[t(A,E,o),A])),w;for(g=0,l=Array(y);g(e=(GP*e+HP)%tF)/tF}function XP(e){return e.x}function YP(e){return e.y}var JP=10,QP=Math.PI*(3-Math.sqrt(5));function KP(e){var t,n=1,r=.001,i=1-r**(1/300),a=0,o=.6,l=new Map,s=w7(f),u=g7("tick","end"),c=VP();e??(e=[]);function f(){d(),u.call("tick",t),n1?(g==null?l.delete(m):l.set(m,p(g)),t):l.get(m)},find:function(m,g,y){var v=0,b=e.length,w,A,E,x,k;for(y==null?y=1/0:y*=y,v=0;v1?(u.on(m,g),t):u.on(m)}}}function ZP(){var e,t,n,r,i=Zt(-30),a,o=1,l=1/0,s=.81;function u(h){var p,m=e.length,g=s1(e,XP,YP).visitAfter(f);for(r=h,p=0;p=l)){(h.data!==t||h.next)&&(y===0&&(y=ta(n),w+=y*y),v===0&&(v=ta(n),w+=v*v),wf1},1),nF={center:EP,collide:qP,nbody:ZP,link:WP,x:eI,y:tI},Vs="forces",c1=["alpha","alphaMin","alphaTarget","velocityDecay","forces"],rI=["static","iterations"],rF=["x","y","vx","vy"];function f1(e){O.call(this,null,e)}f1.Definition={type:"Force",metadata:{modifies:!0},params:[{name:"static",type:"boolean",default:!1},{name:"restart",type:"boolean",default:!1},{name:"iterations",type:"number",default:300},{name:"alpha",type:"number",default:1},{name:"alphaMin",type:"number",default:.001},{name:"alphaTarget",type:"number",default:0},{name:"velocityDecay",type:"number",default:.4},{name:"forces",type:"param",array:!0,params:[{key:{force:"center"},params:[{name:"x",type:"number",default:0},{name:"y",type:"number",default:0}]},{key:{force:"collide"},params:[{name:"radius",type:"number",expr:!0},{name:"strength",type:"number",default:.7},{name:"iterations",type:"number",default:1}]},{key:{force:"nbody"},params:[{name:"strength",type:"number",default:-30,expr:!0},{name:"theta",type:"number",default:.9},{name:"distanceMin",type:"number",default:1},{name:"distanceMax",type:"number"}]},{key:{force:"link"},params:[{name:"links",type:"data"},{name:"id",type:"field"},{name:"distance",type:"number",default:30,expr:!0},{name:"strength",type:"number",expr:!0},{name:"iterations",type:"number",default:1}]},{key:{force:"x"},params:[{name:"strength",type:"number",default:.1},{name:"x",type:"field"}]},{key:{force:"y"},params:[{name:"strength",type:"number",default:.1},{name:"y",type:"field"}]}]},{name:"as",type:"string",array:!0,modify:!1,default:rF}]},G(f1,O,{transform(e,t){var n=this.value,r=t.changed(t.ADD_REM),i=e.modified(c1),a=e.iterations||300;if(n?(r&&(t.modifies("index"),n.nodes(t.source)),(i||t.changed(t.MOD))&&iF(n,e,0,t)):(this.value=n=aI(t.source,e),n.on("tick",iI(t.dataflow,this)),e.static||(r=!0,n.tick()),t.modifies("index")),i||r||e.modified(rI)||t.changed()&&e.restart){if(n.alpha(Math.max(n.alpha(),e.alpha||1)).alphaDecay(1-n.alphaMin()**(1/a)),e.static)for(n.stop();--a>=0;)n.tick();else if(n.stopped()&&n.restart(),!r)return t.StopPropagation}return this.finish(e,t)},finish(e,t){let n=t.dataflow;for(let l=this._argops,s=0,u=l.length,c;se.touch(t).run()}function aI(e,t){let n=KP(e),r=n.stop,i=n.restart,a=!1;return n.stopped=()=>a,n.restart=()=>(a=!1,i()),n.stop=()=>(a=!0,r()),iF(n,t,!0).on("end",()=>a=!0)}function iF(e,t,n,r){var i=ie(t.forces),a,o,l,s;for(a=0,o=c1.length;at(r,n):t)}function uI(e,t){return e.parent===t.parent?1:2}function cI(e){return e.reduce(fI,0)/e.length}function fI(e,t){return e+t.x}function dI(e){return 1+e.reduce(hI,0)}function hI(e,t){return Math.max(e,t.y)}function pI(e){for(var t;t=e.children;)e=t[0];return e}function mI(e){for(var t;t=e.children;)e=t[t.length-1];return e}function gI(){var e=uI,t=1,n=1,r=!1;function i(a){var o,l=0;a.eachAfter(function(d){var h=d.children;h?(d.x=cI(h),d.y=dI(h)):(d.x=o?l+=e(d,o):0,d.y=0,o=d)});var s=pI(a),u=mI(a),c=s.x-e(s,u)/2,f=u.x+e(u,s)/2;return a.eachAfter(r?function(d){d.x=(d.x-a.x)*t,d.y=(a.y-d.y)*n}:function(d){d.x=(d.x-c)/(f-c)*t,d.y=(1-(a.y?d.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(r=!1,t=+a[0],n=+a[1],i):r?null:[t,n]},i.nodeSize=function(a){return arguments.length?(r=!0,t=+a[0],n=+a[1],i):r?[t,n]:null},i}var yI=1664525,vI=1013904223,aF=4294967296;function bI(){let e=1;return()=>(e=(yI*e+vI)%aF)/aF}function xI(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wI(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function AI(e,t){for(var n=0,r=(e=wI(Array.from(e),t)).length,i=[],a,o;n0&&n*n>r*r+i*i}function d1(e,t){for(var n=0;n1e-6?($+Math.sqrt($*$-4*F*R))/(2*F):R/$);return{x:r+E+x*C,y:i+k+_*C,r:C}}function sF(e,t,n){var r=e.x-t.x,i,a,o=e.y-t.y,l,s,u=r*r+o*o;u?(a=t.r+n.r,a*=a,s=e.r+n.r,s*=s,a>s?(i=(u+s-a)/(2*u),l=Math.sqrt(Math.max(0,s/u-i*i)),n.x=e.x-i*r-l*o,n.y=e.y-i*o+l*r):(i=(u+a-s)/(2*u),l=Math.sqrt(Math.max(0,a/u-i*i)),n.x=t.x+i*r-l*o,n.y=t.y+i*o+l*r)):(n.x=t.x+n.r,n.y=t.y)}function uF(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function cF(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,a=(t.y*n.r+n.y*t.r)/r;return i*i+a*a}function od(e){this._=e,this.next=null,this.previous=null}function DI(e,t){if(!(a=(e=xI(e)).length))return 0;var n=e[0],r,i,a,o,l,s,u,c,f,d;if(n.x=0,n.y=0,!(a>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;sF(r,n,i=e[2]),n=new od(n),r=new od(r),i=new od(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(s=3;sBI(n(w,A,i))),v=y.map(mF),b=new Set(y).add("");for(let w of v)b.has(w)||(b.add(w),y.push(w),v.push(mF(w)),a.push(p1));o=(w,A)=>y[A],l=(w,A)=>v[A]}for(c=0,s=a.length;c=0&&(h=a[y],h.data===p1);--y)h.data=null}if(f.parent=SI,f.eachBefore(function(y){y.depth=y.parent.depth+1,--s}).eachBefore(X7),f.parent=null,s>0)throw Error("cycle");return f}return r.id=function(i){return arguments.length?(e=gc(i),r):e},r.parentId=function(i){return arguments.length?(t=gc(i),r):t},r.path=function(i){return arguments.length?(n=gc(i),r):n},r}function BI(e){e=`${e}`;let t=e.length;return m1(e,t-1)&&!m1(e,t-2)&&(e=e.slice(0,-1)),e[0]==="/"?e:`/${e}`}function mF(e){let t=e.length;if(t<2)return"";for(;--t>1&&!m1(e,t););return e.slice(0,t)}function m1(e,t){if(e[t]==="/"){let n=0;for(;t>0&&e[--t]==="\\";)++n;if(!(n&1))return!0}return!1}function zI(e,t){return e.parent===t.parent?1:2}function g1(e){var t=e.children;return t?t[0]:e.t}function y1(e){var t=e.children;return t?t[t.length-1]:e.t}function NI(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function RI(e){for(var t=0,n=0,r=e.children,i=r.length,a;--i>=0;)a=r[i],a.z+=t,a.m+=t,t+=a.s+(n+=a.c)}function TI(e,t,n){return e.a.parent===t.parent?e.a:n}function ld(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}ld.prototype=Object.create(uw.prototype);function LI(e){for(var t=new ld(e,0),n,r=[t],i,a,o,l;n=r.pop();)if(a=n._.children)for(n.children=Array(l=a.length),o=l-1;o>=0;--o)r.push(i=n.children[o]=new ld(a[o],o)),i.parent=n;return(t.parent=new ld(null,0)).children=[t],t}function PI(){var e=zI,t=1,n=1,r=null;function i(u){var c=LI(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)u.eachBefore(s);else{var f=u,d=u,h=u;u.eachBefore(function(v){v.xd.x&&(d=v),v.depth>h.depth&&(h=v)});var p=f===d?1:e(f,d)/2,m=p-f.x,g=t/(d.x+p+m),y=n/(h.depth||1);u.eachBefore(function(v){v.x=(v.x+m)*g,v.y=v.depth*y})}return u}function a(u){var c=u.children,f=u.parent.children,d=u.i?f[u.i-1]:null;if(c){RI(u);var h=(c[0].z+c[c.length-1].z)/2;d?(u.z=d.z+e(u._,d._),u.m=u.z-h):u.z=h}else d&&(u.z=d.z+e(u._,d._));u.parent.A=l(u,d,u.parent.A||f[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function l(u,c,f){if(c){for(var d=u,h=u,p=c,m=d.parent.children[0],g=d.m,y=h.m,v=p.m,b=m.m,w;p=y1(p),d=g1(d),p&&d;)m=g1(m),h=y1(h),h.a=u,w=p.z+v-d.z-g+e(p._,d._),w>0&&(NI(TI(p,u,f),u,w),g+=w,y+=w),v+=p.m,g+=d.m,b+=m.m,y+=h.m;p&&!y1(h)&&(h.t=p,h.m+=v-y),d&&!g1(m)&&(m.t=d,m.m+=g-b,f=u)}return f}function s(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}function II(e,t,n,r,i){var a=e.children,o,l=a.length,s,u=Array(l+1);for(u[0]=s=o=0;o=d-1){var v=a[f];v.x0=p,v.y0=m,v.x1=g,v.y1=y;return}for(var b=u[f],w=h/2+b,A=f+1,E=d-1;A>>1;u[x]y-m){var F=h?(p*_+g*k)/h:g;c(f,A,k,p,m,F,y),c(A,d,_,F,m,g,y)}else{var $=h?(m*_+y*k)/h:y;c(f,A,k,p,m,g,$),c(A,d,_,p,$,g,y)}}}function jI(e,t,n,r,i){(e.depth&1?Hp:mc)(e,t,n,r,i)}var qI=(function e(t){function n(r,i,a,o,l){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,f,d=-1,h,p=s.length,m=r.value;++d1?r:1)},n})(Q7),UI=sn({nest:()=>b1,pack:()=>w1,partition:()=>E1,stratify:()=>k1,tree:()=>D1,treelinks:()=>F1,treemap:()=>$1},1);function v1(e,t,n){let r={};return e.each(i=>{let a=i.data;n(a)&&(r[t(a)]=i)}),e.lookup=r,e}function b1(e){O.call(this,null,e)}b1.Definition={type:"Nest",metadata:{treesource:!0,changes:!0},params:[{name:"keys",type:"field",array:!0},{name:"generate",type:"boolean"}]};var WI=e=>e.values;G(b1,O,{transform(e,t){t.source||T("Nest transform requires an upstream data source.");var n=e.generate,r=e.modified(),i=t.clone(),a=this.value;return(!a||r||t.changed())&&(a&&a.each(o=>{o.children&&bc(o.data)&&i.rem.push(o.data)}),this.value=a=K7({values:ie(e.keys).reduce((o,l)=>(o.key(l),o),GI()).entries(i.source)},WI),n&&a.each(o=>{o.children&&(o=Ce(o.data),i.add.push(o),i.source.push(o))}),v1(a,ee,ee)),i.source.root=a,i}});function GI(){let e=[],t={entries:i=>r(n(i,0),0),key:i=>(e.push(i),t)};function n(i,a){if(a>=e.length)return i;let o=i.length,l=e[a++],s={},u={},c=-1,f,d,h;for(;++ce.length)return i;let o=[];for(let l in i)o.push({key:l,values:r(i[l],a)});return o}return t}function ci(e){O.call(this,null,e)}var HI=(e,t)=>e.parent===t.parent?1:2;G(ci,O,{transform(e,t){(!t.source||!t.source.root)&&T(this.constructor.name+" transform requires a backing tree data source.");let n=this.layout(e.method),r=this.fields,i=t.source.root,a=e.as||r;e.field?i.sum(e.field):i.count(),e.sort&&i.sort(Ca(e.sort,o=>o.data)),VI(n,this.params,e),n.separation&&n.separation(e.separation===!1?Zl:HI);try{this.value=n(i)}catch(o){T(o)}return i.each(o=>XI(o,r,a)),t.reflow(e.modified()).modifies(a).modifies("leaf")}});function VI(e,t,n){for(let r,i=0,a=t.length;ia[ee(o)]=1),r.each(o=>{let l=o.data,s=o.parent&&o.parent.data;s&&a[ee(l)]&&a[ee(s)]&&i.add.push(Ce({source:s,target:l}))}),this.value=i.add):t.changed(t.MOD)&&(t.visit(t.MOD,o=>a[ee(o)]=1),n.forEach(o=>{(a[ee(o.source)]||a[ee(o.target)])&&i.mod.push(o)})),i}});var yF={binary:II,dice:mc,slice:Hp,slicedice:jI,squarify:Y7,resquarify:qI},C1=["x0","y0","x1","y1","depth","children"];function $1(e){ci.call(this,e)}$1.Definition={type:"Treemap",metadata:{tree:!0,modifies:!0},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:!1},{name:"size",type:"number",array:!0,length:2},{name:"as",type:"string",array:!0,length:C1.length,default:C1}]},G($1,ci,{layout(){let e=tM();return e.ratio=t=>{let n=e.tile();n.ratio&&e.tile(n.ratio(t))},e.method=t=>{ce(yF,t)?e.tile(yF[t]):T("Unrecognized Treemap layout method: "+t)},e},params:["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],fields:C1});var YI=sn({label:()=>P1},1),S1=4278190080;function JI(e,t){let n=e.bitmap();return(t||[]).forEach(r=>n.set(e(r.boundary[0]),e(r.boundary[3]))),[n,void 0]}function QI(e,t,n,r,i){let a=e.width,o=e.height,l=r||i,s=Li(a,o).getContext("2d"),u=Li(a,o).getContext("2d"),c=l&&Li(a,o).getContext("2d");n.forEach(k=>sd(s,k,!1)),sd(u,t,!1),l&&sd(c,t,!0);let f=M1(s,a,o),d=M1(u,a,o),h=l&&M1(c,a,o),p=e.bitmap(),m=l&&e.bitmap(),g,y,v,b,w,A,E,x;for(y=0;y{i.items.forEach(a=>sd(e,a.items,n))}):An[r].draw(e,{items:n?t.map(KI):t})}function KI(e){let t=xc(e,{});return t.stroke&&t.strokeOpacity!==0||t.fill&&t.fillOpacity!==0?{...t,strokeOpacity:1,stroke:"#000",fillOpacity:0}:t}var fi=5,en=31,Ys=32,na=new Uint32Array(Ys+1),ir=new Uint32Array(Ys+1);ir[0]=0,na[0]=~ir[0];for(let e=1;e<=Ys;++e)ir[e]=ir[e-1]<<1|1,na[e]=~ir[e];function ZI(e,t){let n=new Uint32Array(~~((e*t+Ys)/Ys));function r(a,o){n[a]|=o}function i(a,o){n[a]&=o}return{array:n,get:(a,o)=>{let l=o*e+a;return n[l>>>fi]&1<<(l&en)},set:(a,o)=>{let l=o*e+a;r(l>>>fi,1<<(l&en))},clear:(a,o)=>{let l=o*e+a;i(l>>>fi,~(1<<(l&en)))},getRange:(a,o,l,s)=>{let u=s,c,f,d,h;for(;u>=o;--u)if(c=u*e+a,f=u*e+l,d=c>>>fi,h=f>>>fi,d===h){if(n[d]&na[c&en]&ir[(f&en)+1])return!0}else{if(n[d]&na[c&en]||n[h]&ir[(f&en)+1])return!0;for(let p=d+1;p{let u,c,f,d,h;for(;o<=s;++o)if(u=o*e+a,c=o*e+l,f=u>>>fi,d=c>>>fi,f===d)r(f,na[u&en]&ir[(c&en)+1]);else for(r(f,na[u&en]),r(d,ir[(c&en)+1]),h=f+1;h{let u,c,f,d,h;for(;o<=s;++o)if(u=o*e+a,c=o*e+l,f=u>>>fi,d=c>>>fi,f===d)i(f,ir[u&en]|na[(c&en)+1]);else for(i(f,ir[u&en]),i(d,na[(c&en)+1]),h=f+1;ha<0||o<0||s>=t||l>=e}}function ej(e,t,n){let r=Math.max(1,Math.sqrt(e*t/1e6)),i=~~((e+2*n+r)/r),a=~~((t+2*n+r)/r),o=l=>~~((l+n)/r);return o.invert=l=>l*r-n,o.bitmap=()=>ZI(i,a),o.ratio=r,o.padding=n,o.width=e,o.height=t,o}function tj(e,t,n,r){let i=e.width,a=e.height;return function(o){let l=o.datum.datum.items[r].items,s=l.length,u=o.datum.fontSize,c=wn.width(o.datum,o.datum.text),f=0,d,h,p,m,g,y,v;for(let b=0;b=f&&(f=v,o.x=g,o.y=y);return g=c/2,y=u/2,d=o.x-g,h=o.x+g,p=o.y-y,m=o.y+y,o.align="center",d<0&&h<=i?o.align="left":0<=d&&ii||t-(o=r/2)<0||t+o>a}function ra(e,t,n,r,i,a,o,l){let s=i*a/(r*2),u=e(t-s),c=e(t+s),f=e(n-(a/=2)),d=e(n+a);return o.outOfBounds(u,f,c,d)||o.getRange(u,f,c,d)||l&&l.getRange(u,f,c,d)}function nj(e,t,n,r){let i=e.width,a=e.height,o=t[0],l=t[1];function s(u,c,f,d,h){let p=e.invert(u),m=e.invert(c),g=f,y=a,v;if(!ud(p,m,d,h,i,a)&&!ra(e,p,m,h,d,g,o,l)&&!ra(e,p,m,h,d,h,o,null)){for(;y-g>=1;)v=(g+y)/2,ra(e,p,m,h,d,v,o,l)?y=v:g=v;if(g>f)return[p,m,g,!0]}}return function(u){let c=u.datum.datum.items[r].items,f=c.length,d=u.datum.fontSize,h=wn.width(u.datum,u.datum.text),p=n?d:0,m=!1,g=!1,y=0,v,b,w,A,E,x,k,_,F,$,R,C,M,D,S,L,W;for(let H=0;Hb&&(W=v,v=b,b=W),w>A&&(W=w,w=A,A=W),F=e(v),R=e(b),$=~~((F+R)/2),C=e(w),D=e(A),M=~~((C+D)/2),k=$;k>=F;--k)for(_=M;_>=C;--_)L=s(k,_,p,h,d),L&&([u.x,u.y,p,m]=L);for(k=$;k<=R;++k)for(_=M;_<=D;++_)L=s(k,_,p,h,d),L&&([u.x,u.y,p,m]=L);!m&&!n&&(S=Math.abs(b-v+A-w),E=(v+b)/2,x=(w+A)/2,S>=y&&!ud(E,x,h,d,i,a)&&!ra(e,E,x,d,h,d,o,null)&&(y=S,u.x=E,u.y=x,g=!0))}return m||g?(E=h/2,x=d/2,o.setRange(e(u.x-E),e(u.y-x),e(u.x+E),e(u.y+x)),u.align="center",u.baseline="middle",!0):!1}}var rj=[-1,-1,1,1],ij=[-1,1,-1,1];function aj(e,t,n,r){let i=e.width,a=e.height,o=t[0],l=t[1],s=e.bitmap();return function(u){let c=u.datum.datum.items[r].items,f=c.length,d=u.datum.fontSize,h=wn.width(u.datum,u.datum.text),p=[],m=n?d:0,g=!1,y=!1,v=0,b,w,A,E,x,k,_,F,$,R,C,M;for(let D=0;D=1;)C=($+R)/2,ra(e,x,k,d,h,C,o,l)?R=C:$=C;$>m&&(u.x=x,u.y=k,m=$,g=!0)}}!g&&!n&&(M=Math.abs(w-b+E-A),x=(b+w)/2,k=(A+E)/2,M>=v&&!ud(x,k,h,d,i,a)&&!ra(e,x,k,d,h,d,o,null)&&(v=M,u.x=x,u.y=k,y=!0))}return g||y?(x=h/2,k=d/2,o.setRange(e(u.x-x),e(u.y-k),e(u.x+x),e(u.y+k)),u.align="center",u.baseline="middle",!0):!1}}var oj=["right","center","left"],lj=["bottom","middle","top"];function sj(e,t,n,r){let i=e.width,a=e.height,o=t[0],l=t[1],s=r.length;return function(u){let c=u.boundary,f=u.datum.fontSize;if(c[2]<0||c[5]<0||c[0]>i||c[3]>a)return!1;let d=u.textWidth??0,h,p,m,g,y,v,b,w,A,E,x,k,_,F,$;for(let R=0;R>>2&3)-1,m=h===0&&p===0||r[R]<0,g=h&&p?Math.SQRT1_2:1,y=r[R]<0?-1:1,v=c[1+h]+r[R]*h*g,x=c[4+p]+y*f*p/2+r[R]*p*g,w=x-f/2,A=x+f/2,k=e(v),F=e(w),$=e(A),!d)if(vF(k,k,F,$,o,l,v,v,w,A,c,m))d=wn.width(u.datum,u.datum.text);else continue;if(E=v+y*d*h/2,v=E-d/2,b=E+d/2,k=e(v),_=e(b),vF(k,_,F,$,o,l,v,b,w,A,c,m))return u.x=h?h*y<0?b:v:E,u.y=p?p*y<0?A:w:x,u.align=oj[h*y+1],u.baseline=lj[p*y+1],o.setRange(k,F,_,$),!0}return!1}}function vF(e,t,n,r,i,a,o,l,s,u,c,f){return!(i.outOfBounds(e,n,t,r)||(f&&a||i).getRange(e,n,t,r))}var O1=0,B1=4,z1=8,N1=0,R1=1,T1=2,uj={"top-left":O1+N1,top:O1+R1,"top-right":O1+T1,left:B1+N1,middle:B1+R1,right:B1+T1,"bottom-left":z1+N1,bottom:z1+R1,"bottom-right":z1+T1},cj={naive:tj,"reduced-search":nj,floodfill:aj};function fj(e,t,n,r,i,a,o,l,s,u,c){if(!e.length)return e;let f=Math.max(r.length,i.length),d=dj(r,f),h=hj(i,f),p=pj(e[0].datum),m=p==="group"&&e[0].datum.items[s].marktype,g=m==="area",y=mj(p,m,l,s),v=u===null||u===1/0,b=g&&c==="naive",w=-1,A=-1,E=e.map(F=>{let $=v?wn.width(F,F.text):void 0;return w=Math.max(w,$),A=Math.max(A,F.fontSize),{datum:F,opacity:0,x:void 0,y:void 0,align:void 0,baseline:void 0,boundary:y(F),textWidth:$}});u=u===null||u===1/0?Math.max(w,A)+Math.max(...r):u;let x=ej(t[0],t[1],u),k;if(!b){n&&E.sort((R,C)=>n(R.datum,C.datum));let F=!1;for(let R=0;RR.datum);k=a.length||$?QI(x,$||[],a,F,g):JI(x,o&&E)}let _=g?cj[c](x,k,o,s):sj(x,k,h,d);return E.forEach(F=>F.opacity=+_(F)),E}function dj(e,t){let n=new Float64Array(t),r=e.length;for(let i=0;i[a.x,a.x,a.x,a.y,a.y,a.y];return e?e==="line"||e==="area"?a=>i(a.datum):t==="line"?a=>{let o=a.datum.items[r].items;return i(o.length?o[n==="start"?0:o.length-1]:{x:NaN,y:NaN})}:a=>{let o=a.datum.bounds;return[o.x1,(o.x1+o.x2)/2,o.x2,o.y1,(o.y1+o.y2)/2,o.y2]}:i}var L1=["x","y","opacity","align","baseline"],bF=["top-left","left","bottom-left","top","bottom","top-right","right","bottom-right"];function P1(e){O.call(this,null,e)}P1.Definition={type:"Label",metadata:{modifies:!0},params:[{name:"size",type:"number",array:!0,length:2,required:!0},{name:"sort",type:"compare"},{name:"anchor",type:"string",array:!0,default:bF},{name:"offset",type:"number",array:!0,default:[1]},{name:"padding",type:"number",default:0,null:!0},{name:"lineAnchor",type:"string",values:["start","end"],default:"end"},{name:"markIndex",type:"number",default:0},{name:"avoidBaseMark",type:"boolean",default:!0},{name:"avoidMarks",type:"data",array:!0},{name:"method",type:"string",default:"naive"},{name:"as",type:"string",array:!0,length:L1.length,default:L1}]},G(P1,O,{transform(e,t){function n(a){let o=e[a];return me(o)&&t.modified(o.fields)}let r=e.modified();if(!(r||t.changed(t.ADD_REM)||n("sort")))return;(!e.size||e.size.length!==2)&&T("Size parameter should be specified as a [width, height] array.");let i=e.as||L1;return fj(t.materialize(t.SOURCE).source||[],e.size,e.sort,ie(e.offset==null?1:e.offset),ie(e.anchor||bF),e.avoidMarks||[],e.avoidBaseMark!==!1,e.lineAnchor||"end",e.markIndex||0,e.padding===void 0?0:e.padding,e.method||"naive").forEach(a=>{let o=a.datum;o[i[0]]=a.x,o[i[1]]=a.y,o[i[2]]=a.opacity,o[i[3]]=a.align,o[i[4]]=a.baseline}),t.reflow(r).modifies(i)}});var gj=sn({loess:()=>I1,regression:()=>q1},1);function xF(e,t){var n=[],r=function(c){return c(l)},i,a,o,l,s,u;if(t==null)n.push(e);else for(i={},a=0,o=e.length;a{Ww(u,e.x,e.y,e.bandwidth||.3).forEach(c=>{let f={};for(let d=0;de==="poly"?t:e==="quad"?2:1;function q1(e){O.call(this,null,e)}q1.Definition={type:"Regression",metadata:{generates:!0},params:[{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"method",type:"string",default:"linear",values:Object.keys(j1)},{name:"order",type:"number",default:3},{name:"extent",type:"number",array:!0,length:2},{name:"params",type:"boolean",default:!1},{name:"as",type:"string",array:!0}]},G(q1,O,{transform(e,t){let n=t.fork(t.NO_SOURCE|t.NO_FIELDS);if(!this.value||t.changed()||e.modified()){let r=t.materialize(t.SOURCE).source,i=xF(r,e.groupby),a=(e.groupby||[]).map(Qe),o=e.method||"linear",l=e.order==null?3:e.order,s=yj(o,l),u=e.as||[Qe(e.x),Qe(e.y)],c=j1[o],f=[],d=e.extent;ce(j1,o)||T("Invalid regression method: "+o),d!=null&&o==="log"&&d[0]<=0&&(t.dataflow.warn("Ignoring extent with values <= 0 for log regression."),d=null),i.forEach(h=>{if(h.length<=s){t.dataflow.warn("Skipping regression with more parameters than data points.");return}let p=c(h,e.x,e.y,l);if(e.params){f.push(Ce({keys:h.dims,coef:p.coef,rSquared:p.rSquared}));return}let m=d||Dr(h,e.x),g=y=>{let v={};for(let b=0;bg([y,p.predict(y)])):Sc(p.predict,m,25,200).forEach(g)}),this.value&&(n.rem=this.value),this.value=n.add=n.source=f}return n}});const $e=11102230246251565e-32,Bt=134217729;(3+8*$e)*$e;function U1(e,t,n,r,i){let a,o,l,s,u=t[0],c=r[0],f=0,d=0;c>u==c>-u?(a=u,u=t[++f]):(a=c,c=r[++d]);let h=0;if(fu==c>-u?(o=u+a,l=a-(o-u),u=t[++f]):(o=c+a,l=a-(o-c),c=r[++d]),a=o,l!==0&&(i[h++]=l);fu==c>-u?(o=a+u,s=o-a,l=a-(o-s)+(u-s),u=t[++f]):(o=a+c,s=o-a,l=a-(o-s)+(c-s),c=r[++d]),a=o,l!==0&&(i[h++]=l);for(;f=M||-C>=M||(f=e-_,l=e-(_+f)+(f-i),f=n-F,u=n-(F+f)+(f-i),f=t-$,s=t-($+f)+(f-a),f=r-R,c=r-(R+f)+(f-a),l===0&&s===0&&u===0&&c===0)||(M=wj*o+33306690738754706e-32*Math.abs(C),C+=_*c+R*l-($*u+F*s),C>=M||-C>=M))return C;w=l*R,d=Bt*l,h=d-(d-l),p=l-h,d=Bt*R,m=d-(d-R),g=R-m,A=p*g-(w-h*m-p*m-h*g),E=s*F,d=Bt*s,h=d-(d-s),p=s-h,d=Bt*F,m=d-(d-F),g=F-m,x=p*g-(E-h*m-p*m-h*g),y=A-x,f=A-y,tn[0]=A-(y+f)+(f-x),v=w+y,f=v-w,b=w-(v-f)+(y-f),y=b-E,f=b-y,tn[1]=b-(y+f)+(f-E),k=v+y,f=k-v,tn[2]=v-(k-f)+(y-f),tn[3]=k;let D=U1(4,sl,4,tn,wF);w=_*c,d=Bt*_,h=d-(d-_),p=_-h,d=Bt*c,m=d-(d-c),g=c-m,A=p*g-(w-h*m-p*m-h*g),E=$*u,d=Bt*$,h=d-(d-$),p=$-h,d=Bt*u,m=d-(d-u),g=u-m,x=p*g-(E-h*m-p*m-h*g),y=A-x,f=A-y,tn[0]=A-(y+f)+(f-x),v=w+y,f=v-w,b=w-(v-f)+(y-f),y=b-E,f=b-y,tn[1]=b-(y+f)+(f-E),k=v+y,f=k-v,tn[2]=v-(k-f)+(y-f),tn[3]=k;let S=U1(D,wF,4,tn,AF);return w=l*c,d=Bt*l,h=d-(d-l),p=l-h,d=Bt*c,m=d-(d-c),g=c-m,A=p*g-(w-h*m-p*m-h*g),E=s*u,d=Bt*s,h=d-(d-s),p=s-h,d=Bt*u,m=d-(d-u),g=u-m,x=p*g-(E-h*m-p*m-h*g),y=A-x,f=A-y,tn[0]=A-(y+f)+(f-x),v=w+y,f=v-w,b=w-(v-f)+(y-f),y=b-E,f=b-y,tn[1]=b-(y+f)+(f-E),k=v+y,f=k-v,tn[2]=v-(k-f)+(y-f),tn[3]=k,EF[U1(S,AF,4,tn,EF)-1]}function cd(e,t,n,r,i,a){let o=(t-a)*(n-i),l=(e-i)*(r-a),s=o-l,u=Math.abs(o+l);return Math.abs(s)>=bj*u?s:-Aj(e,t,n,r,i,a,u)}(7+56*$e)*$e,(3+28*$e)*$e,(26+288*$e)*$e*$e,P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(8),P(8),P(8),P(4),P(8),P(8),P(8),P(12),P(192),P(192),(10+96*$e)*$e,(4+48*$e)*$e,(44+576*$e)*$e*$e,P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(8),P(8),P(8),P(8),P(8),P(8),P(8),P(8),P(8),P(4),P(4),P(4),P(8),P(16),P(16),P(16),P(32),P(32),P(48),P(64),P(1152),P(1152),(16+224*$e)*$e,(5+72*$e)*$e,(71+1408*$e)*$e*$e,P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(4),P(24),P(24),P(24),P(24),P(24),P(24),P(24),P(24),P(24),P(24),P(1152),P(1152),P(1152),P(1152),P(1152),P(2304),P(2304),P(3456),P(5760),P(8),P(8),P(8),P(16),P(24),P(48),P(48),P(96),P(192),P(384),P(384),P(384),P(768),P(96),P(96),P(96),P(1152);var kF=2**-52,fd=new Uint32Array(512),_F=class t4{static from(t,n=Fj,r=Cj){let i=t.length,a=new Float64Array(i*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw Error("Expected coords to contain numbers.");this.coords=t;let r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){let{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1,l=1/0,s=1/0,u=-1/0,c=-1/0;for(let _=0;_u&&(u=F),$>c&&(c=$),this._ids[_]=_}let f=(l+u)/2,d=(s+c)/2,h,p,m;for(let _=0,F=1/0;_0&&(p=_,F=$)}let v=t[2*p],b=t[2*p+1],w=1/0;for(let _=0;_R&&(_[F++]=C,R=M)}this.hull=_.subarray(0,F),this.triangles=new Uint32Array,this.halfedges=new Uint32Array;return}if(cd(g,y,v,b,A,E)<0){let _=p,F=v,$=b;p=m,v=A,b=E,m=_,A=F,E=$}let x=Dj(g,y,v,b,A,E);this._cx=x.x,this._cy=x.y;for(let _=0;_0&&Math.abs(C-F)<=kF&&Math.abs(M-$)<=kF||(F=C,$=M,R===h||R===p||R===m))continue;let D=0;for(let ae=0,fe=this._hashKey(C,M);ae=0;)if(S=L,S===D){S=-1;break}if(S===-1)continue;let W=this._addTriangle(S,R,r[S],-1,-1,i[S]);i[R]=this._legalize(W+2),i[S]=W,k++;let H=r[S];for(;L=r[H],cd(C,M,t[2*H],t[2*H+1],t[2*L],t[2*L+1])<0;)W=this._addTriangle(H,R,L,i[R],-1,i[H]),i[R]=this._legalize(W+2),r[H]=H,k--,H=L;if(S===D)for(;L=n[S],cd(C,M,t[2*L],t[2*L+1],t[2*S],t[2*S+1])<0;)W=this._addTriangle(L,R,S,-1,i[S],i[L]),this._legalize(W+2),i[L]=W,r[S]=S,k--,S=L;this._hullStart=n[R]=S,r[S]=n[H]=R,r[R]=H,a[this._hashKey(C,M)]=R,a[this._hashKey(t[2*S],t[2*S+1])]=S}this.hull=new Uint32Array(k);for(let _=0,F=this._hullStart;_0?3-n:1+n)/4}function W1(e,t,n,r){let i=e-n,a=t-r;return i*i+a*a}function kj(e,t,n,r,i,a,o,l){let s=e-o,u=t-l,c=n-o,f=r-l,d=i-o,h=a-l,p=s*s+u*u,m=c*c+f*f,g=d*d+h*h;return s*(f*g-m*h)-u*(c*g-m*d)+p*(c*h-f*d)<0}function _j(e,t,n,r,i,a){let o=n-e,l=r-t,s=i-e,u=a-t,c=o*o+l*l,f=s*s+u*u,d=.5/(o*u-l*s),h=(u*c-l*f)*d,p=(o*f-s*c)*d;return h*h+p*p}function Dj(e,t,n,r,i,a){let o=n-e,l=r-t,s=i-e,u=a-t,c=o*o+l*l,f=s*s+u*u,d=.5/(o*u-l*s);return{x:e+(u*c-l*f)*d,y:t+(o*f-s*c)*d}}function ul(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){let a=e[i],o=t[a],l=i-1;for(;l>=n&&t[e[l]]>o;)e[l+1]=e[l--];e[l+1]=a}else{let i=n+r>>1,a=n+1,o=r;Js(e,i,a),t[e[n]]>t[e[r]]&&Js(e,n,r),t[e[a]]>t[e[r]]&&Js(e,a,r),t[e[n]]>t[e[a]]&&Js(e,n,a);let l=e[a],s=t[l];for(;;){do a++;while(t[e[a]]s);if(o=o-n?(ul(e,t,a,r),ul(e,t,n,o-1)):(ul(e,t,n,o-1),ul(e,t,a,r))}}function Js(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Fj(e){return e[0]}function Cj(e){return e[1]}var DF=1e-6,Ia=class{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){e=+e,t=+t,n=+n;let r=e+n,i=t;if(n<0)throw Error("negative radius");this._x1===null?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>DF||Math.abs(this._y1-i)>DF)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}},G1=class{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}},$j=class{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(e.points.length*2),this.vectors=new Float64Array(e.points.length*2),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i,a,o=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let p=0,m=0,g=n.length,y,v;p1;)i-=2;for(let a=2;a0){if(t>=this.ymax)return null;(a=(this.ymax-t)/r)0){if(e>=this.xmax)return null;(a=(this.xmax-e)/n)this.xmax?2:0)|(tthis.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t1e-10)return!1}return!0}function zj(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}var Nj=class n4{static from(t,n=Mj,r=Oj,i){return new n4("length"in t?Rj(t,n,r,i):Float64Array.from(Tj(t,n,r,i)))}constructor(t){this._delaunator=new _F(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){let t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&Bj(t)){this.collinear=Int32Array.from({length:n.length/2},(d,h)=>h).sort((d,h)=>n[2*d]-n[2*h]||n[2*d+1]-n[2*h+1]);let s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],f=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let d=0,h=n.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new $j(this,t)}*neighbors(t){let{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:l}=this;if(l){let f=l.indexOf(t);f>0&&(yield l[f-1]),f=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){let{inedges:i,hull:a,_hullIndex:o,halfedges:l,triangles:s,points:u}=this;if(i[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,f=cl(n-u[t*2],2)+cl(r-u[t*2+1],2),d=i[t],h=d;do{let p=s[h],m=cl(n-u[p*2],2)+cl(r-u[p*2+1],2);if(mH1},1);function H1(e){O.call(this,null,e)}H1.Definition={type:"Voronoi",metadata:{modifies:!0},params:[{name:"x",type:"field",required:!0},{name:"y",type:"field",required:!0},{name:"size",type:"number",array:!0,length:2},{name:"extent",type:"array",array:!0,length:2,default:[[-1e5,-1e5],[1e5,1e5]],content:{type:"number",array:!0,length:2}},{name:"as",type:"string",default:"path"}]};var Pj=[-1e5,-1e5,1e5,1e5];G(H1,O,{transform(e,t){let n=e.as||"path",r=t.source;if(!r||!r.length)return t;let i=e.size;i=i?[0,0,i[0],i[1]]:(i=e.extent)?[i[0][0],i[0][1],i[1][0],i[1][1]]:Pj;let a=this.value=Nj.from(r,e.x,e.y).voronoi(i);for(let o=0,l=r.length;oX1},1),V1=Math.PI/180,Qs=64,dd=2048;function Uj(){var e=[256,256],t,n,r,i,a,o,l,s=FF,u=[],c=Math.random,f={};f.layout=function(){for(var p=d(Li()),m=Yj((e[0]>>5)*e[1]),g=null,y=u.length,v=-1,b=[],w=u.map(E=>({text:t(E),font:n(E),style:i(E),weight:a(E),rotate:o(E),size:~~(r(E)+1e-14),padding:l(E),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:!1,sprite:null,datum:E})).sort((E,x)=>x.size-E.size);++v>1,A.y=e[1]*(c()+.5)>>1,Wj(p,A,w,v),A.hasText&&h(m,A,g)&&(b.push(A),g?Hj(g,A):g=[{x:A.x+A.x0,y:A.y+A.y0},{x:A.x+A.x1,y:A.y+A.y1}],A.x-=e[0]>>1,A.y-=e[1]>>1)}return b};function d(p){p.width=p.height=1;var m=Math.sqrt(p.getContext("2d").getImageData(0,0,1,1).data.length>>2);p.width=(Qs<<5)/m,p.height=dd/m;var g=p.getContext("2d");return g.fillStyle=g.strokeStyle="red",g.textAlign="center",{context:g,ratio:m}}function h(p,m,g){for(var y=m.x,v=m.y,b=Math.hypot(e[0],e[1]),w=s(e),A=c()<.5?1:-1,E=-A,x,k,_;(x=w(E+=A))&&(k=~~x[0],_=~~x[1],!(Math.min(Math.abs(k),Math.abs(_))>=b));)if(m.x=y+k,m.y=v+_,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>e[0]||m.y+m.y1>e[1])&&(!g||!Gj(m,p,e[0]))&&(!g||Vj(m,g))){for(var F=m.sprite,$=m.width>>5,R=e[0]>>5,C=m.x-($<<4),M=C&127,D=32-M,S=m.y1-m.y0,L=(m.y+m.y0)*R+(C>>5),W,H=0;H>>M:0);L+=R}return m.sprite=null,!0}return!1}return f.words=function(p){return arguments.length?(u=p,f):u},f.size=function(p){return arguments.length?(e=[+p[0],+p[1]],f):e},f.font=function(p){return arguments.length?(n=ja(p),f):n},f.fontStyle=function(p){return arguments.length?(i=ja(p),f):i},f.fontWeight=function(p){return arguments.length?(a=ja(p),f):a},f.rotate=function(p){return arguments.length?(o=ja(p),f):o},f.text=function(p){return arguments.length?(t=ja(p),f):t},f.spiral=function(p){return arguments.length?(s=Jj[p]||p,f):s},f.fontSize=function(p){return arguments.length?(r=ja(p),f):r},f.padding=function(p){return arguments.length?(l=ja(p),f):l},f.random=function(p){return arguments.length?(c=p,f):c},f}function Wj(e,t,n,r){if(!t.sprite){var i=e.context,a=e.ratio;i.clearRect(0,0,(Qs<<5)/a,dd/a);var o=0,l=0,s=0,u=n.length,c,f,d,h,p;for(--r;++r>5<<5,d=~~Math.max(Math.abs(v+b),Math.abs(v-b))}else c=c+31>>5<<5;if(d>s&&(s=d),o+c>=Qs<<5&&(o=0,l+=s,s=0),l+d>=dd)break;i.translate((o+(c>>1))/a,(l+(d>>1))/a),t.rotate&&i.rotate(t.rotate*V1),i.fillText(t.text,0,0),t.padding&&(i.lineWidth=2*t.padding,i.strokeText(t.text,0,0)),i.restore(),t.width=c,t.height=d,t.xoff=o,t.yoff=l,t.x1=c>>1,t.y1=d>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,o+=c}for(var A=i.getImageData(0,0,(Qs<<5)/a,dd/a).data,E=[];--r>=0;)if(t=n[r],t.hasText){for(c=t.width,f=c>>5,d=t.y1-t.y0,h=0;h>5),F=A[(l+p)*(Qs<<5)+(o+h)<<2]?1<<31-h%32:0;E[_]|=F,x|=F}x?k=p:(t.y0++,d--,p--,l++)}t.y1=t.y0+k,t.sprite=E.slice(0,(t.y1-t.y0)*f)}}}function Gj(e,t,n){n>>=5;for(var r=e.sprite,i=e.width>>5,a=e.x-(i<<4),o=a&127,l=32-o,s=e.y1-e.y0,u=(e.y+e.y0)*n+(a>>5),c,f=0;f>>o:0))&t[u+d])return!0;u+=n}return!1}function Hj(e,t){var n=e[0],r=e[1];t.x+t.x0r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function Vj(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0t[0].y&&e.y+e.y0m(p(g))}i.forEach(p=>{p[o[0]]=NaN,p[o[1]]=NaN,p[o[3]]=0});let u=a.words(i).text(e.text).size(e.size||[500,500]).padding(e.padding||1).spiral(e.spiral||"archimedean").rotate(e.rotate||0).font(e.font||"sans-serif").fontStyle(e.fontStyle||"normal").fontWeight(e.fontWeight||"normal").fontSize(l).random(Nn).layout(),c=a.size(),f=c[0]>>1,d=c[1]>>1,h=u.length;for(let p=0,m,g;pY1,resolvefilter:()=>J1},1),Zj=e=>new Uint8Array(e),eq=e=>new Uint16Array(e),Ks=e=>new Uint32Array(e);function tq(){let e=8,t=[],n=Ks(0),r=hd(0,e),i=hd(0,e);return{data:()=>t,seen:()=>n=nq(n,t.length),add(a){for(let o=0,l=t.length,s=a.length,u;ot.length,curr:()=>r,prev:()=>i,reset:a=>i[a]=r[a],all:()=>e<257?255:e<65537?65535:4294967295,set(a,o){r[a]|=o},clear(a,o){r[a]&=~o},resize(a,o){(a>r.length||o>e)&&(e=Math.max(o,e),r=hd(a,e,r),i=hd(a,e))}}}function nq(e,t,n){return e.length>=t?e:(n||(n=new e.constructor(t)),n.set(e),n)}function hd(e,t,n){let r=(t<257?Zj:t<65537?eq:Ks)(e);return n&&r.set(n),r}function $F(e,t,n){let r=1<0)for(g=0;ge,size:()=>n}}function rq(e,t){return e.sort.call(t,(n,r)=>{let i=e[n],a=e[r];return ia?1:0}),iM(e,t)}function iq(e,t,n,r,i,a,o,l,s){let u=0,c=0,f;for(f=0;ut.modified(n.fields))?this.reinit(e,t):this.eval(e,t):this.init(e,t)},init(e,t){let n=e.fields,r=e.query,i=this._indices={},a=this._dims=[],o=r.length,l=0,s,u;for(;l{let a=i.remove(t,n);for(let o in r)r[o].reindex(a)})},update(e,t,n){let r=this._dims,i=e.query,a=t.stamp,o=r.length,l=0,s,u;for(n.filters=0,u=0;uh)for(g=h,y=Math.min(f,p);gp)for(g=Math.max(f,p),y=d;gc)for(h=c,p=Math.min(s,f);hf)for(h=Math.max(s,f),p=u;hl[c]&n?null:o[c];return a.filter(a.MOD,u),i&i-1?(a.filter(a.ADD,c=>{let f=l[c]&n;return!f&&f^s[c]&n?o[c]:null}),a.filter(a.REM,c=>{let f=l[c]&n;return f&&!(f^(f^s[c]&n))?o[c]:null})):(a.filter(a.ADD,u),a.filter(a.REM,c=>(l[c]&n)===i?o[c]:null)),a.filter(a.SOURCE,c=>u(c._index))}});var aq="RawCode",oq="Literal",lq="Property",sq="Identifier",uq="ArrayExpression",cq="BinaryExpression",fq="CallExpression",dq="ConditionalExpression",hq="LogicalExpression",pq="MemberExpression",mq="ObjectExpression",gq="UnaryExpression";function ar(e){this.type=e}ar.prototype.visit=function(e){let t,n,r;if(e(this))return 1;for(t=yq(this),n=0,r=t.length;n",Nr[qa]="Identifier",Nr[ia]="Keyword",Nr[md]="Null",Nr[Ua]="Numeric",Nr[fn]="Punctuator",Nr[eu]="String",Nr[vq]="RegularExpression";var bq="ArrayExpression",xq="BinaryExpression",wq="CallExpression",Aq="ConditionalExpression",MF="Identifier",Eq="Literal",kq="LogicalExpression",_q="MemberExpression",Dq="ObjectExpression",Fq="Property",Cq="UnaryExpression",mt="Unexpected token %0",$q="Unexpected number",Sq="Unexpected string",Mq="Unexpected identifier",Oq="Unexpected reserved word",Bq="Unexpected end of input",Q1="Invalid regular expression",K1="Invalid regular expression: missing /",OF="Octal literals are not allowed in strict mode.",zq="Duplicate data property in object literal not allowed in strict mode",kt="ILLEGAL",tu="Disabled.",Nq=RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),Rq=RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function gd(e,t){if(!e)throw Error("ASSERT: "+t)}function di(e){return e>=48&&e<=57}function Z1(e){return"0123456789abcdefABCDEF".includes(e)}function nu(e){return"01234567".includes(e)}function Tq(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e)}function ru(e){return e===10||e===13||e===8232||e===8233}function iu(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&Nq.test(String.fromCharCode(e))}function yd(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&Rq.test(String.fromCharCode(e))}var Lq={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function BF(){for(;B1114111||e!=="}")&&_e({},mt,kt),t<=65535?String.fromCharCode(t):(n=(t-65536>>10)+55296,r=(t-65536&1023)+56320,String.fromCharCode(n,r))}function zF(){var e=Y.charCodeAt(B++),t=String.fromCharCode(e);for(e===92&&(Y.charCodeAt(B)!==117&&_e({},mt,kt),++B,e=ey("u"),(!e||e==="\\"||!iu(e.charCodeAt(0)))&&_e({},mt,kt),t=e);B>>=")return B+=4,{type:fn,value:o,start:e,end:B};if(a=o.substr(0,3),a===">>>"||a==="<<="||a===">>=")return B+=3,{type:fn,value:a,start:e,end:B};if(i=a.substr(0,2),r===i[1]&&"+-<>&|".includes(r)||i==="=>")return B+=2,{type:fn,value:i,start:e,end:B};if(i==="//"&&_e({},mt,kt),"<>=!+-*%&|^/".includes(r))return++B,{type:fn,value:r,start:e,end:B};_e({},mt,kt)}function qq(e){let t="";for(;B{if(parseInt(i,16)<=1114111)return"x";_e({},Q1)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch{_e({},Q1)}try{return new RegExp(e,t)}catch{return null}}function Hq(){var e=Y[B],t,n,r,i;for(gd(e==="/","Regular expression literal must start with a slash"),t=Y[B++],n=!1,r=!1;B=0&&_e({},Q1,n),{value:n,literal:t}}function Xq(){var e,t,n,r;return ze=null,BF(),e=B,t=Hq(),n=Vq(),r=Gq(t.value,n.value),{literal:t.literal+n.literal,value:r,regex:{pattern:t.value,flags:n.value},start:e,end:B}}function Yq(e){return e.type===qa||e.type===ia||e.type===pd||e.type===md}function RF(){if(BF(),B>=zt)return{type:Zs,start:B,end:B};let e=Y.charCodeAt(B);return iu(e)?jq():e===40||e===41||e===59?ty():e===39||e===34?Wq():e===46?di(Y.charCodeAt(B+1))?NF():ty():di(e)?NF():ty()}function dn(){let e=ze;return B=e.end,ze=RF(),B=e.end,e}function TF(){let e=B;ze=RF(),B=e}function Jq(e){let t=new ar(bq);return t.elements=e,t}function LF(e,t,n){let r=new ar(e==="||"||e==="&&"?kq:xq);return r.operator=e,r.left=t,r.right=n,r}function Qq(e,t){let n=new ar(wq);return n.callee=e,n.arguments=t,n}function Kq(e,t,n){let r=new ar(Aq);return r.test=e,r.consequent=t,r.alternate=n,r}function ny(e){let t=new ar(MF);return t.name=e,t}function au(e){let t=new ar(Eq);return t.value=e.value,t.raw=Y.slice(e.start,e.end),e.regex&&(t.raw==="//"&&(t.raw="/(?:)/"),t.regex=e.regex),t}function PF(e,t,n){let r=new ar(_q);return r.computed=e==="[",r.object=t,r.property=n,r.computed||(n.member=!0),r}function Zq(e){let t=new ar(Dq);return t.properties=e,t}function IF(e,t,n){let r=new ar(Fq);return r.key=t,r.value=n,r.kind=e,r}function eU(e,t){let n=new ar(Cq);return n.operator=e,n.argument=t,n.prefix=!0,n}function _e(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,(a,o)=>(gd(o":case"<=":case">=":case"instanceof":case"in":t=7;break;case"<<":case">>":case">>>":t=8;break;case"+":case"-":t=9;break;case"*":case"/":case"%":t=11;break}return t}function dU(){var e=ze,t,n,r,i,a,o,l,s=bd(),u;if(r=ze,i=UF(r),i===0)return s;for(r.prec=i,dn(),t=[e,ze],o=bd(),a=[s,r,o];(i=UF(ze))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)o=a.pop(),l=a.pop().value,s=a.pop(),t.pop(),n=LF(l,s,o),a.push(n);r=dn(),r.prec=i,a.push(r),t.push(ze),n=bd(),a.push(n)}for(u=a.length-1,n=a[u],t.pop();u>1;)t.pop(),n=LF(a[u-1].value,a[u-2],n),u-=2;return n}function Wa(){var e=dU(),t,n;return qe("?")&&(dn(),t=Wa(),Nt(":"),n=Wa(),e=Kq(e,t,n)),e}function iy(){let e=Wa();if(qe(","))throw Error(tu);return e}function WF(e){Y=e,B=0,zt=Y.length,ze=null,TF();let t=iy();if(ze.type!==Zs)throw Error("Unexpect token after expression.");return t}var GF={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function HF(e){function t(o,l,s,u){let c=e(l[0]);return s&&(c=s+"("+c+")",s.lastIndexOf("new ",0)===0&&(c="("+c+")")),c+"."+o+(u<0?"":u===0?"()":"("+l.slice(1).map(e).join(",")+")")}function n(o,l,s){return u=>t(o,u,l,s)}let r="new Date",i="String",a="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(o){o.length<3&&T("Missing arguments to clamp function."),o.length>3&&T("Too many arguments to clamp function.");let l=o.map(e);return"Math.max("+l[1]+", Math.min("+l[2]+","+l[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:r,date:n("getDate",r,0),day:n("getDay",r,0),year:n("getFullYear",r,0),month:n("getMonth",r,0),hours:n("getHours",r,0),minutes:n("getMinutes",r,0),seconds:n("getSeconds",r,0),milliseconds:n("getMilliseconds",r,0),time:n("getTime",r,0),timezoneoffset:n("getTimezoneOffset",r,0),utcdate:n("getUTCDate",r,0),utcday:n("getUTCDay",r,0),utcyear:n("getUTCFullYear",r,0),utcmonth:n("getUTCMonth",r,0),utchours:n("getUTCHours",r,0),utcminutes:n("getUTCMinutes",r,0),utcseconds:n("getUTCSeconds",r,0),utcmilliseconds:n("getUTCMilliseconds",r,0),length:n("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:n("toUpperCase",i,0),lower:n("toLowerCase",i,0),substring:n("substring",i),split:n("split",i),trim:n("trim",i,0),btoa:"btoa",atob:"atob",regexp:a,test:n("test",a),if:function(o){o.length<3&&T("Missing arguments to if function."),o.length>3&&T("Too many arguments to if function.");let l=o.map(e);return"("+l[0]+"?"+l[1]+":"+l[2]+")"}}}function hU(e){let t=e&&e.length-1;return t&&(e[0]==='"'&&e[t]==='"'||e[0]==="'"&&e[t]==="'")?e.slice(1,-1):e}function VF(e){e||(e={});let t=e.allowed?_r(e.allowed):{},n=e.forbidden?_r(e.forbidden):{},r=e.constants||GF,i=(e.functions||HF)(f),a=e.globalvar,o=e.fieldvar,l=me(a)?a:p=>`${a}["${p}"]`;[...Object.getOwnPropertyNames(Object.prototype).filter(p=>typeof Object.prototype[p]=="function")];let s={},u={},c=0;function f(p){if(Ee(p))return p;let m=d[p.type];return m??T("Unsupported type: "+p.type),m(p)}let d={Literal:p=>p.raw,Identifier:p=>{let m=p.name;return c>0?m:ce(n,m)?T("Illegal identifier: "+m):ce(r,m)?r[m]:ce(t,m)?m:(s[m]=1,l(m))},MemberExpression:p=>{let m=!p.computed,g=f(p.object);m&&(c+=1);let y=f(p.property);return g===o&&(u[hU(y)]=1),m&&--c,g+(m?"."+y:"["+y+"]")},CallExpression:p=>{p.callee.type!=="Identifier"&&T("Illegal callee type: "+p.callee.type);let m=p.callee.name,g=p.arguments,y=ce(i,m)&&i[m];return y||T("Unrecognized function: "+m),me(y)?y(g):y+"("+g.map(f).join(",")+")"},ArrayExpression:p=>"["+p.elements.map(f).join(",")+"]",BinaryExpression:p=>"("+f(p.left)+" "+p.operator+" "+f(p.right)+")",UnaryExpression:p=>"("+p.operator+f(p.argument)+")",ConditionalExpression:p=>"("+f(p.test)+"?"+f(p.consequent)+":"+f(p.alternate)+")",LogicalExpression:p=>"("+f(p.left)+p.operator+f(p.right)+")",ObjectExpression:p=>{for(let m of p.properties){let g=m.key.name;Op.has(g)&&T("Illegal property: "+g)}return"{"+p.properties.map(f).join(",")+"}"},Property:p=>{c+=1;let m=f(p.key);return--c,m+":"+f(p.value)}};function h(p){let m={code:f(p),globals:Object.keys(s),fields:Object.keys(u)};return s={},u={},m}return h.functions=i,h.constants=r,h}var XF=Symbol("vega_selection_getter");function YF(e){return(!e.getter||!e.getter[XF])&&(e.getter=ti(e.field),e.getter[XF]=!0),e.getter}var ay="intersect",JF="union",pU="vlMulti",mU="vlPoint",QF="or",gU="and",Rr="_vgsid_",ou=ti(Rr),yU="E",vU="R",bU="R-E",xU="R-LE",wU="R-RE",AU="E-LT",EU="E-LTE",kU="E-GT",_U="E-GTE",DU="E-VALID",FU="E-ONE",xd="index:unit";function KF(e,t){for(var n=t.fields,r=t.values,i=n.length,a=0,o,l;a=r[a])return!1}else if(l.type===EU){if(o>r[a])return!1}else if(l.type===kU){if(o<=r[a])return!1}else if(l.type===_U){if(oge(t.fields?{values:t.fields.map(r=>YF(r)(n.datum))}:{[Rr]:ou(n.datum)},t))}function BU(e,t,n,r){for(var i=this.context.data[e],a=i?i.values.value:[],o={},l={},s={},u,c,f,d,h,p,m,g,y,v,b=a.length,w=0,A,E;w(x[c[_].field]=k,x),{})))}else h=Rr,p=ou(u),m=o[h]||(o[h]={}),g=m[d]||(m[d]=[]),g.push(p),n&&(g=l[d]||(l[d]=[]),g.push({[Rr]:p}));if(t||(t=JF),o[Rr]?o[Rr]=oy[`${Rr}_${t}`](...Object.values(o[Rr])):Object.keys(o).forEach(x=>{o[x]=Object.keys(o[x]).map(k=>o[x][k]).reduce((k,_)=>k===void 0?_:oy[`${s[x]}_${t}`](k,_))}),a=Object.keys(l),n&&a.length){let x=r?mU:pU;o[x]=t===JF?{[QF]:a.reduce((k,_)=>(k.push(...l[_]),k),[])}:{[gU]:a.map(k=>({[QF]:l[k]}))}}return o}var oy={[`${Rr}_union`]:cM,[`${Rr}_intersect`]:sM,E_union:function(e,t){if(!e.length)return t;for(var n=0,r=t.length;nt.includes(n)):t},R_union:function(e,t){var n=zn(t[0]),r=zn(t[1]);return n>r&&(n=t[1],r=t[0]),e.length?(e[0]>n&&(e[0]=n),e[1]r&&(n=t[1],r=t[0]),e.length?rr&&(e[1]=r),e):[n,r]}},zU=":",NU="@";function ly(e,t,n,r){t[0].type!=="Literal"&&T("First argument to selection functions must be a string literal.");let i=t[0].value,a=t.length>=2&&Oe(t).value,o="unit",l=NU+o,s=zU+i;a===ay&&!ce(r,l)&&(r[l]=n.getData(i).indataRef(n,o)),ce(r,s)||(r[s]=n.getData(i).tuplesRef())}function eC(e){let t=this.context.data[e];return t?t.values.value:[]}function RU(e,t,n){let r=this.context.data[e]["index:"+t],i=r?r.value.get(n):void 0;return i&&i.count}function TU(e,t){let n=this.context.dataflow,r=this.context.data[e].input;return n.pulse(r,n.changeset().remove(Bn).insert(t)),1}function LU(e,t,n){if(e){let r=this.context.dataflow,i=e.mark.source;r.pulse(i,r.changeset().encode(e,t))}return n===void 0?e:n}var lu=e=>function(t,n){let r=this.context.dataflow.locale();return t===null?"null":r[e](n)(t)},PU=lu("format"),tC=lu("timeFormat"),IU=lu("utcFormat"),jU=lu("timeParse"),qU=lu("utcParse"),wd=new Date(2e3,0,1);function Ad(e,t,n){return!Number.isInteger(e)||!Number.isInteger(t)?"":(wd.setYear(2e3),wd.setMonth(e),wd.setDate(t),tC.call(this,wd,n))}function UU(e){return Ad.call(this,e,1,"%B")}function WU(e){return Ad.call(this,e,1,"%b")}function GU(e){return Ad.call(this,0,2+e,"%A")}function HU(e){return Ad.call(this,0,2+e,"%a")}function sy(e,t,n,r){t[0].type!=="Literal"&&T("First argument to data functions must be a string literal.");let i=t[0].value,a=":"+i;if(!ce(a,r))try{r[a]=n.getData(i).tuplesRef()}catch{}}function VU(e,t,n,r){t[0].type!=="Literal"&&T("First argument to indata must be a string literal."),t[1].type!=="Literal"&&T("Second argument to indata must be a string literal.");let i=t[0].value,a=t[1].value,o="@"+a;ce(o,r)||(r[o]=n.getData(i).indataRef(n,a))}function nn(e,t,n,r){if(t[0].type==="Literal")nC(n,r,t[0].value);else for(e in n.scales)nC(n,r,e)}function nC(e,t,n){let r="%"+n;if(!ce(t,r))try{t[r]=e.scaleRef(n)}catch{}}function Tr(e,t){if(Ee(e)){let n=t.scales[e];return n&&UA(n.value)?n.value:void 0}else if(me(e))return UA(e)?e:void 0}function XU(e,t,n){t.__bandwidth=i=>i&&i.bandwidth?i.bandwidth():0,n._bandwidth=nn,n._range=nn,n._scale=nn;let r=i=>"_["+(i.type==="Literal"?K("%"+i.value):K("%")+"+"+e(i))+"]";return{_bandwidth:i=>`this.__bandwidth(${r(i[0])})`,_range:i=>`${r(i[0])}.range()`,_scale:i=>`${r(i[0])}(${e(i[1])})`}}function uy(e,t){return function(n,r,i){if(n){let a=Tr(n,(i||this).context);return a&&a.path[e](r)}else return t(r)}}var YU=uy("area",jT),JU=uy("bounds",GT),QU=uy("centroid",QT);function KU(e,t){let n=Tr(e,(t||this).context);return n&&n.scale()}function ZU(e){let t=this.context.group,n=!1;if(t)for(;e;){if(e===t){n=!0;break}e=e.mark.group}return n}function cy(e,t,n){try{e[t].apply(e,["EXPRESSION"].concat([].slice.call(n)))}catch(r){e.warn(r)}return n[n.length-1]}function eW(){return cy(this.context.dataflow,"warn",arguments)}function tW(){return cy(this.context.dataflow,"info",arguments)}function nW(){return cy(this.context.dataflow,"debug",arguments)}function fy(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function dy(e){let t=pc(e),n=fy(t.r),r=fy(t.g),i=fy(t.b);return .2126*n+.7152*r+.0722*i}function rW(e,t){let n=dy(e),r=dy(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function iW(){let e=[].slice.call(arguments);return e.unshift({}),ge(...e)}function rC(e,t){return e===t||e!==e&&t!==t?!0:Z(e)?Z(t)&&e.length===t.length?aW(e,t):!1:ue(e)&&ue(t)?iC(e,t):!1}function aW(e,t){for(let n=0,r=e.length;niC(e,t)}function oW(e,t,n,r,i,a){let o=this.context.dataflow,l=this.context.data[e],s=l.input,u=o.stamp(),c=l.changes,f,d;if(o._trigger===!1||!(s.value.length||t||r))return 0;if((!c||c.stamp{l.modified=!0,o.pulse(s,c).run()},!0,1)),n&&(f=n===!0?Bn:Z(n)||bc(n)?n:aC(n),c.remove(f)),t&&c.insert(t),r&&(f=aC(r),s.value.some(f)?c.remove(f):c.insert(r)),i){if(me(i))throw Error("modify parameter must be a data tuple, not a function");for(d in a)c.modify(i,d,a[d])}return 1}function lW(e){let t=e.touches,n=t[0].clientX-t[1].clientX,r=t[0].clientY-t[1].clientY;return Math.hypot(n,r)}function sW(e){let t=e.touches;return Math.atan2(t[0].clientY-t[1].clientY,t[0].clientX-t[1].clientX)}var oC={};function uW(e,t){let n=oC[t]||(oC[t]=ti(t));return Z(e)?e.map(n):n(e)}function Ed(e){return Z(e)||ArrayBuffer.isView(e)?e:null}function hy(e){return Ed(e)||(Ee(e)?e:null)}function cW(e,...t){return Ed(e).join(...t)}function fW(e,...t){return hy(e).indexOf(...t)}function dW(e,...t){return hy(e).lastIndexOf(...t)}function hW(e,...t){return hy(e).slice(...t)}function pW(e,t,n){return me(n)&&T("Function argument passed to replace."),!Ee(t)&&!Fp(t)&&T("Please pass a string or RegExp argument to replace."),String(e).replace(t,n)}function mW(e){return Ed(e).slice().reverse()}function gW(e){return Ed(e).slice().sort(uc)}function yW(e,t,n){return Qm(e||0,t||0,n||0)}function vW(e,t){let n=Tr(e,(t||this).context);return n&&n.bandwidth?n.bandwidth():0}function bW(e,t){let n=Tr(e,(t||this).context);return n?n.copy():void 0}function xW(e,t){let n=Tr(e,(t||this).context);return n?n.domain():[]}function wW(e,t,n){let r=Tr(e,(n||this).context);return r?Z(t)?(r.invertRange||r.invert)(t):(r.invert||r.invertExtent)(t):void 0}function AW(e,t){let n=Tr(e,(t||this).context);return n&&n.range?n.range():[]}function EW(e,t,n){let r=Tr(e,(n||this).context);return r?r(t):void 0}function kW(e,t,n,r,i){e=Tr(e,(i||this).context);let a=fE(t,n),o=e.domain(),l=o[0],s=Oe(o),u=Jn;return s-l?u=JA(e,l,s):e=(e.interpolator?ke("sequential")().interpolator(e.interpolator()):ke("linear")().interpolate(e.interpolate()).range(e.range())).domain([l=0,s=1]),e.ticks&&(o=e.ticks(+r||15),l!==o[0]&&o.unshift(l),s!==Oe(o)&&o.push(s)),o.forEach(c=>a.stop(u(c),e(c))),a}function _W(e,t,n){let r=Tr(e,(n||this).context);return function(i){return r?r.path.context(i)(t):""}}function DW(e){let t=null;return function(n){return n?hs(n,t||(t=Go(e))):e}}var lC=e=>e.data;function sC(e,t){let n=eC.call(t,e);return n.root&&n.root.lookup||{}}function FW(e,t,n){let r=sC(e,this),i=r[t],a=r[n];return i&&a?i.path(a).map(lC):void 0}function CW(e,t){let n=sC(e,this)[t];return n?n.ancestors().map(lC):void 0}var uC=()=>typeof window<"u"&&window||null;function $W(){let e=uC();return e?e.screen:{}}function SW(){let e=uC();return e?[e.innerWidth,e.innerHeight]:[void 0,void 0]}function MW(){let e=this.context.dataflow,t=e.container&&e.container();return t?[t.clientWidth,t.clientHeight]:[void 0,void 0]}function cC(e,t,n){if(!e)return[];let[r,i]=e,a=new lt().set(r[0],r[1],i[0],i[1]);return Mk(n||this.context.dataflow.scenegraph().root,a,OW(t))}function OW(e){let t=null;if(e){let n=ie(e.marktype),r=ie(e.markname);t=i=>(!n.length||n.some(a=>i.marktype===a))&&(!r.length||r.some(a=>i.name===a))}return t}function BW(e,t,n,r=5){e=ie(e);let i=e[e.length-1];return i===void 0||Math.hypot(i[0]-t,i[1]-n)>r?[...e,[t,n]]:e}function zW(e){return ie(e).reduce((t,[n,r],i)=>t+=i==0?`M ${n},${r} `:i===e.length-1?" Z":`L ${n},${r} `,"")}function NW(e,t,n){let{x:r,y:i,mark:a}=n,o=new lt().set(2**53-1,2**53-1,-(2**53-1),-(2**53-1));for(let[l,s]of t)lo.x2&&(o.x2=l),so.y2&&(o.y2=s);return o.translate(r,i),cC([[o.x1,o.y1],[o.x2,o.y2]],e,a).filter(l=>RW(l.x,l.y,t))}function RW(e,t,n){let r=0;for(let i=0,a=n.length-1;it!=l>t&&e<(o-s)*(t-u)/(l-u)+s&&r++}return r&1}var su={random(){return Nn()},cumulativeNormal:Fc,cumulativeLogNormal:lm,cumulativeUniform:fm,densityNormal:nm,densityLogNormal:om,densityUniform:cm,quantileNormal:Cc,quantileLogNormal:sm,quantileUniform:dm,sampleNormal:Dc,sampleLogNormal:am,sampleUniform:um,isArray:Z,isBoolean:Bp,isDate:ka,isDefined(e){return e!==void 0},isNumber:_a,isObject:ue,isRegExp:Fp,isString:Ee,isTuple:bc,isValid(e){return e!=null&&e===e},toBoolean:k2,toDate(e){return P2(e)},toNumber:zn,toString:F2,indexof:fW,join:cW,lastindexof:dW,replace:pW,reverse:mW,sort:gW,slice:hW,flush:Q2,lerp:A2,merge:iW,pad:S2,peek:Oe,pluck:uW,span:sc,inrange:To,truncate:X2,rgb:pc,lab:y7,hcl:v7,hsl:E7,luminance:dy,contrast:rW,sequence:xn,format:PU,utcFormat:IU,utcParse:qU,utcOffset:_2,utcSequence:C2,timeFormat:tC,timeParse:jU,timeOffset:y2,timeSequence:U2,timeUnitSpecifier:$2,monthFormat:UU,monthAbbrevFormat:WU,dayFormat:GU,dayAbbrevFormat:HU,quarter:L2,utcquarter:j2,week:v2,utcweek:K2,dayofyear:x2,utcdayofyear:T2,warn:eW,info:tW,debug:nW,extent(e){return Dr(e)},inScope:ZU,intersect:cC,clampRange:g2,pinchDistance:lW,pinchAngle:sW,screen:$W,containerSize:MW,windowSize:SW,bandspace:yW,setdata:TU,pathShape:DW,panLinear:O2,panLog:R2,panPow:E2,panSymlog:D2,zoomLinear:Dp,zoomLog:zp,zoomPow:fc,zoomSymlog:Tp,encode:LU,modify:oW,lassoAppend:BW,lassoPath:zW,intersectLasso:NW},TW=["view","item","group","xy","x","y"],LW="event.vega.",fC="this.",py={},dC={forbidden:["_"],allowed:["datum","event","item"],fieldvar:"datum",globalvar:e=>`_[${K("$"+e)}]`,functions:PW,constants:GF,visitors:py},my=VF(dC);function PW(e){let t=HF(e);for(let n in TW.forEach(r=>t[r]=LW+r),su)t[n]=fC+n;return ge(t,XU(e,su,py)),t}function rt(e,t,n){return arguments.length===1?su[e]:(su[e]=t,n&&(py[e]=n),my&&(my.functions[e]=fC+e),this)}rt("bandwidth",vW,nn),rt("copy",bW,nn),rt("domain",xW,nn),rt("range",AW,nn),rt("invert",wW,nn),rt("scale",EW,nn),rt("gradient",kW,nn),rt("geoArea",YU,nn),rt("geoBounds",JU,nn),rt("geoCentroid",QU,nn),rt("geoShape",_W,nn),rt("geoScale",KU,nn),rt("indata",RU,VU),rt("data",eC,sy),rt("treePath",FW,sy),rt("treeAncestors",CW,sy),rt("vlSelectionTest",CU,ly),rt("vlSelectionIdTest",MU,ly),rt("vlSelectionResolve",BU,ly),rt("vlSelectionTuples",OU);function Lr(e,t){let n={},r;try{e=Ee(e)?e:K(e)+"",r=WF(e)}catch{T("Expression parse error: "+e)}r.visit(a=>{if(a.type!=="CallExpression")return;let o=a.callee.name,l=dC.visitors[o];l&&l(o,a.arguments,t,n)});let i=my(r);return i.globals.forEach(a=>{let o="$"+a;!ce(n,o)&&t.getSignal(a)&&(n[o]=t.signalRef(a))}),{$expr:ge({code:i.code},t.options.ast?{ast:r}:null),$fields:i.fields,$params:n}}function IW(e){let t=this,n=e.operators||[];return e.background&&(t.background=e.background),e.eventConfig&&(t.eventConfig=e.eventConfig),e.locale&&(t.locale=e.locale),n.forEach(r=>t.parseOperator(r)),n.forEach(r=>t.parseOperatorParameters(r)),(e.streams||[]).forEach(r=>t.parseStream(r)),(e.updates||[]).forEach(r=>t.parseUpdate(r)),t.resolve()}var jW=_r(["rule"]),hC=_r(["group","image","rect"]);function qW(e,t){let n="";return jW[t]||(e.x2&&(e.x?(hC[t]&&(n+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"),n+="o.width=o.x2-o.x;"):n+="o.x=o.x2-(o.width||0);"),e.xc&&(n+="o.x=o.xc-(o.width||0)/2;"),e.y2&&(e.y?(hC[t]&&(n+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"),n+="o.height=o.y2-o.y;"):n+="o.y=o.y2-(o.height||0);"),e.yc&&(n+="o.y=o.yc-(o.height||0)/2;")),n}function gy(e){return(e+"").toLowerCase()}function UW(e){return gy(e)==="operator"}function WW(e){return gy(e)==="collect"}function uu(e,t,n){n.endsWith(";")||(n="return("+n+");");let r=Function(...t.concat(n));return e&&e.functions?r.bind(e.functions):r}function GW(e,t,n,r){return`((u = ${e}) < (v = ${t}) || u == null) && v != null ? ${n} + : (u > v || v == null) && u != null ? ${r} + : ((v = v instanceof Date ? +v : v), (u = u instanceof Date ? +u : u)) !== u && v === v ? ${n} + : v !== v && u === u ? ${r} : `}var HW={operator:(e,t)=>uu(e,["_"],t.code),parameter:(e,t)=>uu(e,["datum","_"],t.code),event:(e,t)=>uu(e,["event"],t.code),handler:(e,t)=>uu(e,["_","event"],`var datum=event.item&&event.item.datum;return ${t.code};`),encode:(e,t)=>{let{marktype:n,channels:r}=t,i="var o=item,datum=o.datum,m=0,$;";for(let a in r){let o="o["+K(a)+"]";i+=`$=${r[a].code};if(${o}!==$)${o}=$,m=1;`}return i+=qW(r,n),i+="return m;",uu(e,["item","_"],i)},codegen:{get(e){let t=`[${e.map(K).join("][")}]`,n=Function("_",`return _${t};`);return n.path=t,n},comparator(e,t){let n,r=Function("a","b","var u, v; return "+e.map((i,a)=>{let o=t[a],l,s;return i.path?(l=`a${i.path}`,s=`b${i.path}`):((n||(n={}))["f"+a]=i,l=`this.f${a}(a)`,s=`this.f${a}(b)`),GW(l,s,-o,o)}).join("")+"0;");return n?r.bind(n):r}}};function VW(e){let t=this;UW(e.type)||!e.type?t.operator(e,e.update?t.operatorExpression(e.update):null):t.transform(e,e.type)}function XW(e){let t=this;if(e.params){let n=t.get(e.id);n||T("Invalid operator id: "+e.id),t.dataflow.connect(n,n.parameters(t.parseParameters(e.params),e.react,e.initonly))}}function YW(e,t){t||(t={});let n=this;for(let r in e){let i=e[r];t[r]=Z(i)?i.map(a=>pC(a,n,t)):pC(i,n,t)}return t}function pC(e,t,n){if(!e||!ue(e))return e;for(let r=0,i=mC.length,a;ri&&i.$tupleid?ee:i);return t.fn[n]||(t.fn[n]=Np(r,e.$order,t.expr.codegen))}function tG(e,t){let n=e.$encode,r={};for(let i in n){let a=n[i];r[i]=No(t.encodeExpression(a.$expr),a.$fields),r[i].output=a.$output}return r}function nG(e,t){return t}function rG(e,t){let n=e.$subflow;return function(r,i,a){let o=t.fork().parse(n),l=o.get(n.operators[0].id),s=o.signals.parent;return s&&s.set(a),l.detachSubflow=()=>t.detach(o),l}}function iG(){return ee}function aG(e){var t=this,n=e.filter==null?void 0:t.eventExpression(e.filter),r=e.stream==null?void 0:t.get(e.stream),i;e.source?r=t.events(e.source,e.type,n):e.merge&&(i=e.merge.map(a=>t.get(a)),r=i[0].merge.apply(i[0],i.slice(1))),e.between&&(i=e.between.map(a=>t.get(a)),r=r.between(i[0],i[1])),e.filter&&(r=r.filter(n)),e.throttle!=null&&(r=r.throttle(+e.throttle)),e.debounce!=null&&(r=r.debounce(+e.debounce)),r??T("Invalid stream definition: "+JSON.stringify(e)),e.consume&&r.consume(!0),t.stream(e,r)}function oG(e){var t=this,n=ue(n=e.source)?n.$ref:n,r=t.get(n),i=null,a=e.update,o=void 0;r||T("Source not defined: "+e.source),i=e.target&&e.target.$expr?t.eventExpression(e.target.$expr):t.get(e.target),a&&a.$expr&&(a.$params&&(o=t.parseParameters(a.$params)),a=t.handlerExpression(a.$expr)),t.update(e,r,i,a,o)}var lG={skip:!0};function sG(e){var t=this,n={};if(e.signals){var r=n.signals={};Object.keys(t.signals).forEach(a=>{let o=t.signals[a];e.signals(a,o)&&(r[a]=o.value)})}if(e.data){var i=n.data={};Object.keys(t.data).forEach(a=>{let o=t.data[a];e.data(a,o)&&(i[a]=o.input.value)})}return t.subcontext&&e.recurse!==!1&&(n.subcontext=t.subcontext.map(a=>a.getState(e))),n}function uG(e){var t=this,n=t.dataflow,r=e.data,i=e.signals;Object.keys(i||{}).forEach(a=>{n.update(t.signals[a],i[a],lG)}),Object.keys(r||{}).forEach(a=>{n.pulse(t.data[a].input,n.changeset().remove(Bn).insert(r[a]))}),(e.subcontext||[]).forEach((a,o)=>{let l=t.subcontext[o];l&&l.setState(a)})}function gC(e,t,n,r){return new yC(e,t,n,r)}function yC(e,t,n,r){this.dataflow=e,this.transforms=t,this.events=e.events.bind(e),this.expr=r||HW,this.signals={},this.scales={},this.nodes={},this.data={},this.fn={},n&&(this.functions=Object.create(n),this.functions.context=this)}function vC(e){this.dataflow=e.dataflow,this.transforms=e.transforms,this.events=e.events,this.expr=e.expr,this.signals=Object.create(e.signals),this.scales=Object.create(e.scales),this.nodes=Object.create(e.nodes),this.data=Object.create(e.data),this.fn=Object.create(e.fn),e.functions&&(this.functions=Object.create(e.functions),this.functions.context=this)}yC.prototype=vC.prototype={fork(){let e=new vC(this);return(this.subcontext||(this.subcontext=[])).push(e),e},detach(e){this.subcontext=this.subcontext.filter(n=>n!==e);let t=Object.keys(e.nodes);for(let n of t)e.nodes[n]._targets=null;for(let n of t)e.nodes[n].detach();e.nodes=null},get(e){return this.nodes[e]},set(e,t){return this.nodes[e]=t},add(e,t){let n=this,r=n.dataflow,i=e.value;if(n.set(e.id,t),WW(e.type)&&i&&(i.$ingest?r.ingest(t,i.$ingest,i.$format):i.$request?r.preload(t,i.$request,i.$format):r.pulse(t,r.changeset().insert(i))),e.root&&(n.root=t),e.parent){let a=n.get(e.parent.$ref);a?(r.connect(a,[t]),t.targets().add(a)):(n.unresolved=n.unresolved||[]).push(()=>{a=n.get(e.parent.$ref),r.connect(a,[t]),t.targets().add(a)})}if(e.signal&&(n.signals[e.signal]=t),e.scale&&(n.scales[e.scale]=t),e.data)for(let a in e.data){let o=n.data[a]||(n.data[a]={});e.data[a].forEach(l=>o[l]=t)}},resolve(){return(this.unresolved||[]).forEach(e=>e()),delete this.unresolved,this},operator(e,t){this.add(e,this.dataflow.add(e.value,t))},transform(e,t){this.add(e,this.dataflow.add(this.transforms[gy(t)]))},stream(e,t){this.set(e.id,t)},update(e,t,n,r,i){this.dataflow.on(t,n,r,i,e.options)},operatorExpression(e){return this.expr.operator(this,e)},parameterExpression(e){return this.expr.parameter(this,e)},eventExpression(e){return this.expr.event(this,e)},handlerExpression(e){return this.expr.handler(this,e)},encodeExpression(e){return this.expr.encode(this,e)},parse:IW,parseOperator:VW,parseOperatorParameters:XW,parseParameters:YW,parseStream:aG,parseUpdate:oG,getState:sG,setState:uG};function cG(e){let t=e.container();t&&(t.setAttribute("role","graphics-document"),t.setAttribute("aria-roleDescription","visualization"),bC(t,e.description()))}function bC(e,t){e&&(t==null?e.removeAttribute("aria-label"):e.setAttribute("aria-label",t))}function fG(e){e.add(null,t=>(e._background=t.bg,e._resize=1,t.bg),{bg:e._signals.background})}var yy="default";function dG(e){let t=e._signals.cursor||(e._signals.cursor=e.add({user:yy,item:null}));e.on(e.events("view","pointermove"),t,(n,r)=>{let i=t.value,a=i?Ee(i)?i:i.user:yy,o=r.item&&r.item.cursor||null;return i&&a===i.user&&o==i.item?i:{user:a,item:o}}),e.add(null,function(n){let r=n.cursor,i=this.value;return Ee(r)||(i=r.item,r=r.user),vy(e,r&&r!==yy?r:i||r),i},{cursor:t})}function vy(e,t){let n=e.globalCursor()?typeof document<"u"&&document.body:e.container();if(n)return t==null?n.style.removeProperty("cursor"):n.style.cursor=t}function kd(e,t){var n=e._runtime.data;return ce(n,t)||T("Unrecognized data set: "+t),n[t]}function hG(e,t){return arguments.length<2?kd(this,e).values.value:_d.call(this,e,$a().remove(Bn).insert(t))}function _d(e,t){bw(t)||T("Second argument to changes must be a changeset.");let n=kd(this,e);return n.modified=!0,this.pulse(n.input,t)}function pG(e,t){return _d.call(this,e,$a().insert(t))}function mG(e,t){return _d.call(this,e,$a().remove(t))}function xC(e){var t=e.padding();return Math.max(0,e._viewWidth+t.left+t.right)}function wC(e){var t=e.padding();return Math.max(0,e._viewHeight+t.top+t.bottom)}function Dd(e){var t=e.padding(),n=e._origin;return[t.left+n[0],t.top+n[1]]}function gG(e){var t=Dd(e),n=xC(e),r=wC(e);e._renderer.background(e.background()),e._renderer.resize(n,r,t),e._handler.origin(t),e._resizeListeners.forEach(i=>{try{i(n,r)}catch(a){e.error(a)}})}function yG(e,t,n){var r=e._renderer,i=r&&r.canvas(),a,o,l;return i&&(l=Dd(e),o=t.changedTouches?t.changedTouches[0]:t,a=rf(o,i),a[0]-=l[0],a[1]-=l[1]),t.dataflow=e,t.item=n,t.vega=vG(e,n,a),t}function vG(e,t,n){let r=t?t.mark.marktype==="group"?t:t.mark.group:null;function i(o){var l=r,s;if(o){for(s=t;s;s=s.mark.group)if(s.mark.name===o){l=s;break}}return l&&l.mark&&l.mark.interactive?l:{}}function a(o){if(!o)return n;Ee(o)&&(o=i(o));let l=n.slice();for(;o;)l[0]-=o.x||0,l[1]-=o.y||0,o=o.mark&&o.mark.group;return l}return{view:jt(e),item:jt(t||{}),group:i,xy:a,x:o=>a(o)[0],y:o=>a(o)[1]}}var AC="view",bG="timer",xG="window",wG={trap:!1};function AG(e){let t=ge({defaults:{}},e),n=(r,i)=>{i.forEach(a=>{Z(r[a])&&(r[a]=_r(r[a]))})};return n(t.defaults,["prevent","allow"]),n(t,["view","window","selector"]),t}function EC(e,t,n,r){e._eventListeners.push({type:n,sources:ie(t),handler:r})}function EG(e,t){var n=e._eventConfig.defaults,r=n.prevent,i=n.allow;return r===!1||i===!0?!1:r===!0||i===!1?!0:r?r[t]:i?!i[t]:e.preventDefault()}function Fd(e,t,n){let r=e._eventConfig&&e._eventConfig[t];return r===!1||ue(r)&&!r[n]?(e.warn(`Blocked ${t} ${n} event listener.`),!1):!0}function kG(e,t,n){var r=this,i=new Ec(n),a=function(u,c){r.runAsync(null,()=>{e===AC&&EG(r,t)&&u.preventDefault(),i.receive(yG(r,u,c))})},o;if(e===bG)Fd(r,"timer",t)&&r.timer(a,t);else if(e===AC)Fd(r,"view",t)&&r.addEventListener(t,a,wG);else if(e===xG?Fd(r,"window",t)&&typeof window<"u"&&(o=[window]):typeof document<"u"&&Fd(r,"selector",t)&&(o=Array.from(document.querySelectorAll(e))),!o)r.warn("Can not resolve event source: "+e);else{for(var l=0,s=o.length;l=0;)t[i].stop();for(i=r.length;--i>=0;)for(o=r[i],a=o.sources.length;--a>=0;)o.sources[a].removeEventListener(o.type,o.handler);for(e&&e.call(this,this._handler,null,null,null),i=n.length;--i>=0;)s=n[i].type,l=n[i].handler,this._handler.off(s,l);return this}function _n(e,t,n){let r=document.createElement(e);for(let i in t)r.setAttribute(i,t[i]);return n!=null&&(r.textContent=n),r}var FG="vega-bind",CG="vega-bind-name",$G="vega-bind-radio";function SG(e,t,n){if(!t)return;let r=n.param,i=n.state;return i||(i=n.state={elements:null,active:!1,set:null,update:a=>{a!=e.signal(r.signal)&&e.runAsync(null,()=>{i.source=!0,e.signal(r.signal,a)})}},r.debounce&&(i.update=Lp(r.debounce,i.update))),(r.input==null&&r.element?MG:BG)(i,t,r,e),i.active||(i.active=(e.on(e._signals[r.signal],null,()=>{i.source?i.source=!1:i.set(e.signal(r.signal))}),!0)),i}function MG(e,t,n,r){let i=n.event||"input",a=()=>e.update(t.value);r.signal(n.signal,t.value),t.addEventListener(i,a),EC(r,t,i,a),e.set=o=>{t.value=o,t.dispatchEvent(OG(i))}}function OG(e){return typeof Event<"u"?new Event(e):{type:e}}function BG(e,t,n,r){let i=r.signal(n.signal),a=_n("div",{class:FG}),o=n.input==="radio"?a:a.appendChild(_n("label"));o.appendChild(_n("span",{class:CG},n.name||n.signal)),t.appendChild(a);let l=zG;switch(n.input){case"checkbox":l=NG;break;case"select":l=RG;break;case"radio":l=TG;break;case"range":l=LG;break}l(e,o,n,i)}function zG(e,t,n,r){let i=_n("input");for(let a in n)a!=="signal"&&a!=="element"&&i.setAttribute(a==="input"?"type":a,n[a]);i.setAttribute("name",n.signal),i.value=r,t.appendChild(i),i.addEventListener("input",()=>e.update(i.value)),e.elements=[i],e.set=a=>i.value=a}function NG(e,t,n,r){let i={type:"checkbox",name:n.signal};r&&(i.checked=!0);let a=_n("input",i);t.appendChild(a),a.addEventListener("change",()=>e.update(a.checked)),e.elements=[a],e.set=o=>a.checked=!!o||null}function RG(e,t,n,r){let i=_n("select",{name:n.signal}),a=n.labels||[];n.options.forEach((o,l)=>{let s={value:o};Cd(o,r)&&(s.selected=!0),i.appendChild(_n("option",s,(a[l]||o)+""))}),t.appendChild(i),i.addEventListener("change",()=>{e.update(n.options[i.selectedIndex])}),e.elements=[i],e.set=o=>{for(let l=0,s=n.options.length;l{let s={type:"radio",name:n.signal,value:o};Cd(o,r)&&(s.checked=!0);let u=_n("input",s);u.addEventListener("change",()=>e.update(o));let c=_n("label",{},(a[l]||o)+"");return c.prepend(u),i.appendChild(c),u}),e.set=o=>{let l=e.elements,s=l.length;for(let u=0;u{s.textContent=l.value,e.update(+l.value)};l.addEventListener("input",u),l.addEventListener("change",u),e.elements=[l],e.set=c=>{l.value=c,s.textContent=c}}function Cd(e,t){return e===t||e+""==t+""}function FC(e,t,n,r,i,a){return t||(t=new r(e.loader())),t.initialize(n,xC(e),wC(e),Dd(e),i,a).background(e.background())}function by(e,t){return t?function(){try{t.apply(this,arguments)}catch(n){e.error(n)}}:null}function PG(e,t,n,r){let i=new r(e.loader(),by(e,e.tooltip())).scene(e.scenegraph().root).initialize(n,Dd(e),e);return t&&t.handlers().forEach(a=>{i.on(a.type,a.handler)}),i}function IG(e,t){let n=this,r=n._renderType,i=n._eventConfig.bind,a=yf(r);e=n._el=e?xy(n,e,!0):null,cG(n),a||n.error("Unrecognized renderer type: "+r);let o=a.handler||Fs,l=e?a.renderer:a.headless;return n._renderer=l?FC(n,n._renderer,e,l):null,n._handler=PG(n,n._handler,e,o),n._redraw=!0,e&&i!=="none"&&(t=t?n._elBind=xy(n,t,!0):e.appendChild(_n("form",{class:"vega-bindings"})),n._bind.forEach(s=>{s.param.element&&i!=="container"&&(s.element=xy(n,s.param.element,!!s.param.input))}),n._bind.forEach(s=>{SG(n,s.element||t,s)})),n}function xy(e,t,n){if(typeof t=="string")if(typeof document<"u"){if(t=document.querySelector(t),!t)return e.error("Signal bind element not found: "+t),null}else return e.error("DOM document instance not found."),null;if(t&&n)try{t.textContent=""}catch(r){t=null,e.error(r)}return t}var cu=e=>+e||0,jG=e=>({top:e,bottom:e,left:e,right:e});function CC(e){return ue(e)?{top:cu(e.top),bottom:cu(e.bottom),left:cu(e.left),right:cu(e.right)}:jG(cu(e))}async function wy(e,t,n,r){let i=yf(t),a=i&&i.headless;return a||T("Unrecognized renderer type: "+t),await e.runAsync(),FC(e,null,null,a,n,r).renderAsync(e._scenegraph.root)}async function qG(e,t){e!==Yi.Canvas&&e!==Yi.SVG&&e!==Yi.PNG&&T("Unrecognized image type: "+e);let n=await wy(this,e,t);return e===Yi.SVG?UG(n.svg(),"image/svg+xml"):n.canvas().toDataURL("image/png")}function UG(e,t){let n=new Blob([e],{type:t});return window.URL.createObjectURL(n)}async function WG(e,t){return(await wy(this,Yi.Canvas,e,t)).canvas()}async function GG(e){return(await wy(this,Yi.SVG,e)).svg()}function HG(e,t,n){return gC(e,jo,su,n).parse(t)}function VG(e){var t=this._runtime.scales;return ce(t,e)||T("Unrecognized scale or projection: "+e),t[e].value}var $C="width",SC="height",Ay="padding",MC={skip:!0};function OC(e,t){var n=e.autosize(),r=e.padding();return t-(n&&n.contains===Ay?r.left+r.right:0)}function BC(e,t){var n=e.autosize(),r=e.padding();return t-(n&&n.contains===Ay?r.top+r.bottom:0)}function XG(e){var t=e._signals,n=t[$C],r=t[SC],i=t[Ay];function a(){e._autosize=e._resize=1}e._resizeWidth=e.add(null,l=>{e._width=l.size,e._viewWidth=OC(e,l.size),a()},{size:n}),e._resizeHeight=e.add(null,l=>{e._height=l.size,e._viewHeight=BC(e,l.size),a()},{size:r});let o=e.add(null,a,{pad:i});e._resizeWidth.rank=n.rank+1,e._resizeHeight.rank=r.rank+1,o.rank=i.rank+1}function YG(e,t,n,r,i,a){this.runAfter(o=>{let l=0;o._autosize=0,o.width()!==n&&(l=1,o.signal($C,n,MC),o._resizeWidth.skip(!0)),o.height()!==r&&(l=1,o.signal(SC,r,MC),o._resizeHeight.skip(!0)),o._viewWidth!==e&&(o._resize=1,o._viewWidth=e),o._viewHeight!==t&&(o._resize=1,o._viewHeight=t),(o._origin[0]!==i[0]||o._origin[1]!==i[1])&&(o._resize=1,o._origin=i),l&&o.run("enter"),a&&o.runAfter(s=>s.resize())},!1,1)}function JG(e){return this._runtime.getState(e||{data:QG,signals:KG,recurse:!0})}function QG(e,t){return t.modified&&Z(t.input.value)&&!e.startsWith("_:vega:_")}function KG(e,t){return!(e==="parent"||t instanceof jo.proxy)}function ZG(e){return this.runAsync(null,t=>{t._trigger=!1,t._runtime.setState(e)},t=>{t._trigger=!0}),this}function eH(e,t){function n(r){e({timestamp:Date.now(),elapsed:r})}this._timers.push(fM(n,t))}function tH(e,t,n,r){let i=e.element();i&&i.setAttribute("title",nH(r))}function nH(e){return e==null?"":Z(e)?zC(e):ue(e)&&!ka(e)?rH(e):e+""}function rH(e){return Object.keys(e).map(t=>{let n=e[t];return t+": "+(Z(n)?zC(n):NC(n))}).join(` +`)}function zC(e){return"["+e.map(NC).join(", ")+"]"}function NC(e){return Z(e)?"[\u2026]":ue(e)&&!ka(e)?"{\u2026}":e}function iH(){if(this.renderer()==="canvas"&&this._renderer._canvas){let e=null,t=()=>{e==null||e();let n=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);n.addEventListener("change",t),e=()=>{n.removeEventListener("change",t)},this._renderer._canvas.getContext("2d").pixelRatio=window.devicePixelRatio||1,this._redraw=!0,this._resize=1,this.resize().runAsync()};t()}}function RC(e,t){let n=this;if(t||(t={}),Io.call(n),t.loader&&n.loader(t.loader),t.logger&&n.logger(t.logger),t.logLevel!=null&&n.logLevel(t.logLevel),t.locale||e.locale){let a=ge({},e.locale,t.locale);n.locale(J2(a.number,a.time))}n._el=null,n._elBind=null,n._renderType=t.renderer||Yi.Canvas,n._scenegraph=new XE;let r=n._scenegraph.root;n._renderer=null,n._tooltip=t.tooltip||tH,n._redraw=!0,n._handler=new Fs().scene(r),n._globalCursor=!1,n._preventDefault=!1,n._timers=[],n._eventListeners=[],n._resizeListeners=[],n._eventConfig=AG(e.eventConfig),n.globalCursor(n._eventConfig.globalCursor);let i=HG(n,e,t.expr);n._runtime=i,n._signals=i.signals,n._bind=(e.bindings||[]).map(a=>({state:null,param:ge({},a)})),i.root&&i.root.set(r),r.source=i.data.root.input,n.pulse(i.data.root.input,n.changeset().insert(r.items)),n._width=n.width(),n._height=n.height(),n._viewWidth=OC(n,n._width),n._viewHeight=BC(n,n._height),n._origin=[0,0],n._resize=0,n._autosize=1,XG(n),fG(n),dG(n),n.description(e.description),t.hover&&n.hover(),t.container&&n.initialize(t.container,t.bind),t.watchPixelRatio&&n._watchPixelRatio()}function $d(e,t){return ce(e._signals,t)?e._signals[t]:T("Unrecognized signal name: "+K(t))}function TC(e,t){let n=(e._targets||[]).filter(r=>r._update&&r._update.handler===t);return n.length?n[0]:null}function LC(e,t,n,r){let i=TC(n,r);return i||(i=by(e,()=>r(t,n.value)),i.handler=r,e.on(n,null,i)),e}function PC(e,t,n){let r=TC(t,n);return r&&t._targets.remove(r),e}G(RC,Io,{async evaluate(e,t,n){if(await Io.prototype.evaluate.call(this,e,t),this._redraw||this._resize)try{this._renderer&&(this._resize&&(this._resize=0,gG(this)),await this._renderer.renderAsync(this._scenegraph.root)),this._redraw=!1}catch(r){this.error(r)}return n&&vc(this,n),this},dirty(e){this._redraw=!0,this._renderer&&this._renderer.dirty(e)},description(e){if(arguments.length){let t=e==null?null:e+"";return t!==this._desc&&bC(this._el,this._desc=t),this}return this._desc},container(){return this._el},scenegraph(){return this._scenegraph},origin(){return this._origin.slice()},signal(e,t,n){let r=$d(this,e);return arguments.length===1?r.value:this.update(r,t,n)},width(e){return arguments.length?this.signal("width",e):this.signal("width")},height(e){return arguments.length?this.signal("height",e):this.signal("height")},padding(e){return arguments.length?this.signal("padding",CC(e)):CC(this.signal("padding"))},autosize(e){return arguments.length?this.signal("autosize",e):this.signal("autosize")},background(e){return arguments.length?this.signal("background",e):this.signal("background")},renderer(e){return arguments.length?(yf(e)||T("Unrecognized renderer type: "+e),e!==this._renderType&&(this._renderType=e,this._resetRenderer()),this):this._renderType},tooltip(e){return arguments.length?(e!==this._tooltip&&(this._tooltip=e,this._resetRenderer()),this):this._tooltip},loader(e){return arguments.length?(e!==this._loader&&(Io.prototype.loader.call(this,e),this._resetRenderer()),this):this._loader},resize(){return this._autosize=1,this.touch($d(this,"autosize"))},_resetRenderer(){this._renderer&&(this._renderer=null,this.initialize(this._el,this._elBind))},_resizeView:YG,addEventListener(e,t,n){let r=t;return n&&n.trap===!1||(r=by(this,t),r.raw=t),this._handler.on(e,r),this},removeEventListener(e,t){for(var n=this._handler.handlers(e),r=n.length,i,a;--r>=0;)if(a=n[r].type,i=n[r].handler,e===a&&(t===i||t===i.raw)){this._handler.off(a,i);break}return this},addResizeListener(e){let t=this._resizeListeners;return t.includes(e)||t.push(e),this},removeResizeListener(e){var t=this._resizeListeners,n=t.indexOf(e);return n>=0&&t.splice(n,1),this},addSignalListener(e,t){return LC(this,e,$d(this,e),t)},removeSignalListener(e,t){return PC(this,$d(this,e),t)},addDataListener(e,t){return LC(this,e,kd(this,e).values,t)},removeDataListener(e,t){return PC(this,kd(this,e).values,t)},globalCursor(e){if(arguments.length){if(this._globalCursor!==!!e){let t=vy(this,null);this._globalCursor=!!e,t&&vy(this,t)}return this}else return this._globalCursor},preventDefault(e){return arguments.length?(this._preventDefault=e,this):this._preventDefault},timer:eH,events:kG,finalize:DG,hover:_G,data:hG,change:_d,insert:pG,remove:mG,scale:VG,initialize:IG,toImageURL:qG,toCanvas:WG,toSVG:GG,getState:JG,setState:ZG,_watchPixelRatio:iH});var aH="view",Sd="[",Md="]",IC="{",jC="}",oH=":",qC=",",lH="@",sH=">",uH=/[[\]{}]/,cH={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1},UC,WC;function aa(e,t,n){return UC=t||aH,WC=n||cH,GC(e.trim()).map(Ey)}function fH(e){return WC[e]}function fu(e,t,n,r,i){let a=e.length,o=0,l;for(;t' after between selector: "+e;r=r.map(Ey);let i=Ey(e.slice(1).trim());return i.between?{between:r,stream:i}:(i.between=r,i)}function hH(e){let t={source:UC},n=[],r=[0,0],i=0,a=0,o=e.length,l=0,s,u;if(e[o-1]===jC){if(l=e.lastIndexOf(IC),l>=0){try{r=pH(e.substring(l+1,o-1))}catch{throw"Invalid throttle specification: "+e}e=e.slice(0,l).trim(),o=e.length}else throw"Unmatched right brace: "+e;l=0}if(!o)throw e;if(e[0]===lH&&(i=++l),s=fu(e,l,oH),s1?(t.type=n[1],i?t.markname=n[0].slice(1):fH(n[0])?t.marktype=n[0]:t.source=n[0]):t.type=n[0],t.type.slice(-1)==="!"&&(t.consume=!0,t.type=t.type.slice(0,-1)),u!=null&&(t.filter=u),r[0]&&(t.throttle=r[0]),r[1]&&(t.debounce=r[1]),t}function pH(e){let t=e.split(qC);if(!e.length||t.length>2)throw e;return t.map(n=>{let r=+n;if(r!==r)throw e;return r})}function mH(e){return ue(e)?e:{type:e||"pad"}}var du=e=>+e||0,gH=e=>({top:e,bottom:e,left:e,right:e});function yH(e){return ue(e)?e.signal?e:{top:du(e.top),bottom:du(e.bottom),left:du(e.left),right:du(e.right)}:gH(du(e))}var gt=e=>ue(e)&&!Z(e)?ge({},e):{value:e};function HC(e,t,n,r){return n==null?0:(ue(n)&&!Z(n)||Z(n)&&n.length&&ue(n[0])?e.update[t]=n:e[r||"enter"][t]={value:n},1)}function _t(e,t,n){for(let r in t)HC(e,r,t[r]);for(let r in n)HC(e,r,n[r],"update")}function fl(e,t,n){for(let r in t)n&&ce(n,r)||(e[r]=ge(e[r]||{},t[r]));return e}function dl(e,t){return t&&(t.enter&&t.enter[e]||t.update&&t.update[e])}var vH="frame",VC="scope",bH="axis",xH="axis-domain",wH="axis-grid",AH="axis-label",EH="axis-tick",kH="axis-title",_H="legend",DH="legend-band",FH="legend-entry",CH="legend-gradient",XC="legend-label",$H="legend-symbol",SH="legend-title",MH="title",OH="title-text",BH="title-subtitle";function zH(e,t,n,r,i){let a={},o={},l,s,u,c;for(s in s="lineBreak",t==="text"&&i[s]!=null&&!dl(s,e)&&ky(a,s,i[s]),(n=="legend"||String(n).startsWith("axis"))&&(n=null),c=n==="frame"?i.group:n==="mark"?ge({},i.mark,i[t]):null,c)u=dl(s,e)||(s==="fill"||s==="stroke")&&(dl("fill",e)||dl("stroke",e)),u||ky(a,s,c[s]);for(s in ie(r).forEach(f=>{let d=i.style&&i.style[f];for(let h in d)dl(h,e)||ky(a,h,d[h])}),e=ge({},e),a)c=a[s],c.signal?(l||(l={}))[s]=c:o[s]=c;return e.enter=ge(o,e.enter),l&&(e.update=ge(l,e.update)),e}function ky(e,t,n){e[t]=n&&n.signal?{signal:n.signal}:{value:n}}var YC=e=>Ee(e)?K(e):e.signal?`(${e.signal})`:JC(e);function Od(e){if(e.gradient!=null)return RH(e);let t=e.signal?`(${e.signal})`:e.color?NH(e.color):e.field==null?e.value===void 0?void 0:K(e.value):JC(e.field);return e.scale!=null&&(t=TH(e,t)),t===void 0&&(t=null),e.exponent!=null&&(t=`pow(${t},${zd(e.exponent)})`),e.mult!=null&&(t+=`*${zd(e.mult)}`),e.offset!=null&&(t+=`+${zd(e.offset)}`),e.round&&(t=`round(${t})`),t}var Bd=(e,t,n,r)=>`(${e}(${[t,n,r].map(Od).join(",")})+'')`;function NH(e){return e.c?Bd("hcl",e.h,e.c,e.l):e.h||e.s?Bd("hsl",e.h,e.s,e.l):e.l||e.a?Bd("lab",e.l,e.a,e.b):e.r||e.g||e.b?Bd("rgb",e.r,e.g,e.b):null}function RH(e){let t=[e.start,e.stop,e.count].map(n=>n==null?null:K(n));for(;t.length&&Oe(t)==null;)t.pop();return t.unshift(YC(e.gradient)),`gradient(${t.join(",")})`}function zd(e){return ue(e)?"("+Od(e)+")":e}function JC(e){return QC(ue(e)?e:{datum:e})}function QC(e){let t,n,r;if(e.signal)t="datum",r=e.signal;else if(e.group||e.parent){for(n=Math.max(1,e.level||1),t="item";n-- >0;)t+=".mark.group";e.parent?(r=e.parent,t+=".datum"):r=e.group}else e.datum?(t="datum",r=e.datum):T("Invalid field reference: "+K(e));return e.signal||(r=Ee(r)?I2(r).map(K).join("]["):QC(r)),t+"["+r+"]"}function TH(e,t){let n=YC(e.scale);return e.range==null?(t!==void 0&&(t=`_scale(${n}, ${t})`),e.band&&(t=(t?t+"+":"")+`_bandwidth(${n})`+(+e.band==1?"":"*"+zd(e.band)),e.extra&&(t=`(datum.extra ? _scale(${n}, datum.extra.value) : ${t})`)),t??(t="0")):t=`lerp(_range(${n}), ${+e.range})`,t}function LH(e){let t="";return e.forEach(n=>{let r=Od(n);t+=n.test?`(${n.test})?${r}:`:r}),Oe(t)===":"&&(t+="null"),t}function KC(e,t,n,r,i,a){let o={};for(let l in a||(a={}),a.encoders={$encode:o},e=zH(e,t,n,r,i.config),e)o[l]=PH(e[l],t,a,i);return a}function PH(e,t,n,r){let i={},a={};for(let o in e)e[o]!=null&&(i[o]=jH(IH(e[o]),r,n,a));return{$expr:{marktype:t,channels:i},$fields:Object.keys(a),$output:Object.keys(e)}}function IH(e){return Z(e)?LH(e):Od(e)}function jH(e,t,n,r){let i=Lr(e,t);return i.$fields.forEach(a=>r[a]=1),ge(n,i.$params),i.$expr}var qH="outer",UH=["value","update","init","react","bind"];function ZC(e,t){T(e+' for "outer" push: '+K(t))}function e$(e,t){let n=e.name;if(e.push===qH)t.signals[n]||ZC("No prior signal definition",n),UH.forEach(r=>{e[r]!==void 0&&ZC("Invalid property ",r)});else{let r=t.addSignal(n,e.value);e.react===!1&&(r.react=!1),e.bind&&t.addBinding(n,e.bind)}}function _y(e,t,n,r){this.id=-1,this.type=e,this.value=t,this.params=n,r&&(this.parent=r)}function Nd(e,t,n,r){return new _y(e,t,n,r)}function Rd(e,t){return Nd("operator",e,t)}function ne(e){let t={$ref:e.id};return e.id<0&&(e.refs=e.refs||[]).push(t),t}function hu(e,t){return t?{$field:e,$name:t}:{$field:e}}var Dy=hu("key");function t$(e,t){return{$compare:e,$order:t}}function WH(e,t){let n={$key:e};return t&&(n.$flat=!0),n}var GH="ascending",HH="descending";function VH(e){return ue(e)?(e.order===HH?"-":"+")+Td(e.op,e.field):""}function Td(e,t){return(e&&e.signal?"$"+e.signal:e||"")+(e&&t?"_":"")+(t&&t.signal?"$"+t.signal:t||"")}var Fy="scope",Cy="view";function ht(e){return e&&e.signal}function XH(e){return e&&e.expr}function Ld(e){if(ht(e))return!0;if(ue(e)){for(let t in e)if(Ld(e[t]))return!0}return!1}function or(e,t){return e??t}function Ga(e){return e&&e.signal||e}var n$="timer";function pu(e,t){return(e.merge?JH:e.stream?QH:e.type?KH:T("Invalid stream specification: "+K(e)))(e,t)}function YH(e){return e===Fy?Cy:e||Cy}function JH(e,t){let n=$y({merge:e.merge.map(r=>pu(r,t))},e,t);return t.addStream(n).id}function QH(e,t){let n=$y({stream:pu(e.stream,t)},e,t);return t.addStream(n).id}function KH(e,t){let n;e.type===n$?(n=t.event(n$,e.throttle),e={between:e.between,filter:e.filter}):n=t.event(YH(e.source),e.type);let r=$y({stream:n},e,t);return Object.keys(r).length===1?n:t.addStream(r).id}function $y(e,t,n){let r=t.between;return r&&(r.length!==2&&T('Stream "between" parameter must have 2 entries: '+K(t)),e.between=[pu(r[0],n),pu(r[1],n)]),r=t.filter?[].concat(t.filter):[],(t.marktype||t.markname||t.markrole)&&r.push(ZH(t.marktype,t.markname,t.markrole)),t.source===Fy&&r.push("inScope(event.item)"),r.length&&(e.filter=Lr("("+r.join(")&&(")+")",n).$expr),(r=t.throttle)!=null&&(e.throttle=+r),(r=t.debounce)!=null&&(e.debounce=+r),t.consume&&(e.consume=!0),e}function ZH(e,t,n){let r="event.item";return r+(e&&e!=="*"?"&&"+r+".mark.marktype==='"+e+"'":"")+(n?"&&"+r+".mark.role==='"+n+"'":"")+(t?"&&"+r+".mark.name==='"+t+"'":"")}var eV={code:"_.$value",ast:{type:"Identifier",value:"value"}};function tV(e,t,n){let r=e.encode,i={target:n},a=e.events,o=e.update,l=[];a||T("Signal update missing events specification."),Ee(a)&&(a=aa(a,t.isSubscope()?Fy:Cy)),a=ie(a).filter(s=>s.signal||s.scale?(l.push(s),0):1),l.length>1&&(l=[rV(l)]),a.length&&l.push(a.length>1?{merge:a}:a[0]),r!=null&&(o&&T("Signal encode and update are mutually exclusive."),o="encode(item(),"+K(r)+")"),i.update=Ee(o)?Lr(o,t):o.expr==null?o.value==null?o.signal==null?T("Invalid signal update specification."):{$expr:eV,$params:{$value:t.signalRef(o.signal)}}:o.value:Lr(o.expr,t),e.force&&(i.options={force:!0}),l.forEach(s=>t.addUpdate(ge(nV(s,t),i)))}function nV(e,t){return{source:e.signal?t.signalRef(e.signal):e.scale?t.scaleRef(e.scale):pu(e,t)}}function rV(e){return{signal:"["+e.map(t=>t.scale?'scale("'+t.scale+'")':t.signal)+"]"}}function iV(e,t){let n=t.getSignal(e.name),r=e.update;e.init&&(r?T("Signals can not include both init and update expressions."):(r=e.init,n.initonly=!0)),r&&(r=Lr(r,t),n.update=r.$expr,n.params=r.$params),e.on&&e.on.forEach(i=>tV(i,t,n.id))}var Le=e=>(t,n,r)=>Nd(e,n,t||void 0,r),r$=Le("aggregate"),aV=Le("axisticks"),i$=Le("bound"),lr=Le("collect"),a$=Le("compare"),oV=Le("datajoin"),o$=Le("encode"),lV=Le("expression"),sV=Le("facet"),uV=Le("field"),cV=Le("key"),fV=Le("legendentries"),dV=Le("load"),hV=Le("mark"),pV=Le("multiextent"),mV=Le("multivalues"),gV=Le("overlap"),yV=Le("params"),l$=Le("prefacet"),vV=Le("projection"),bV=Le("proxy"),xV=Le("relay"),s$=Le("render"),wV=Le("scale"),Ha=Le("sieve"),AV=Le("sortitems"),u$=Le("viewlayout"),EV=Le("values"),kV=0,c$={min:"min",max:"max",count:"sum"};function _V(e,t){let n=e.type||"linear";WA(n)||T("Unrecognized scale type: "+K(n)),t.addScale(e.name,{type:n,domain:void 0})}function DV(e,t){let n=t.getScale(e.name).params,r;for(r in n.domain=f$(e.domain,e,t),e.range!=null&&(n.range=h$(e,t,n)),e.interpolate!=null&&RV(e.interpolate,n),e.nice!=null&&(n.nice=NV(e.nice,t)),e.bins!=null&&(n.bins=zV(e.bins,t)),e)ce(n,r)||r==="name"||(n[r]=jn(e[r],t))}function jn(e,t){return ue(e)?e.signal?t.signalRef(e.signal):T("Unsupported object: "+K(e)):e}function Pd(e,t){return e.signal?t.signalRef(e.signal):e.map(n=>jn(n,t))}function Id(e){T("Can not find data set: "+K(e))}function f$(e,t,n){if(!e){(t.domainMin!=null||t.domainMax!=null)&&T("No scale domain defined for domainMin/domainMax to override.");return}return e.signal?n.signalRef(e.signal):(Z(e)?FV:e.fields?$V:CV)(e,t,n)}function FV(e,t,n){return e.map(r=>jn(r,n))}function CV(e,t,n){let r=n.getData(e.data);return r||Id(e.data),Wo(t.type)?r.valuesRef(n,e.field,d$(e.sort,!1)):VA(t.type)?r.domainRef(n,e.field):r.extentRef(n,e.field)}function $V(e,t,n){let r=e.data,i=e.fields.reduce((a,o)=>(o=Ee(o)?{data:r,field:o}:Z(o)||o.signal?SV(o,n):o,a.push(o),a),[]);return(Wo(t.type)?MV:VA(t.type)?OV:BV)(e,n,i)}function SV(e,t){let n="_:vega:_"+kV++,r=lr({});if(Z(e))r.value={$ingest:e};else if(e.signal){let i="setdata("+K(n)+","+e.signal+")";r.params.input=t.signalRef(i)}return t.addDataPipeline(n,[r,Ha({})]),{data:n,field:"data"}}function MV(e,t,n){let r=d$(e.sort,!0),i,a,o={groupby:Dy,pulse:n.map(s=>{let u=t.getData(s.data);return u||Id(s.data),u.countsRef(t,s.field,r)})};r&&(i=r.op||"count",a=r.field?Td(i,r.field):"count",o.ops=[c$[i]],o.fields=[t.fieldRef(a)],o.as=[a]),i=t.add(r$(o));let l=t.add(lr({pulse:ne(i)}));return a=t.add(EV({field:Dy,sort:t.sortRef(r),pulse:ne(l)})),ne(a)}function d$(e,t){return e&&(!e.field&&!e.op?ue(e)?e.field="key":e={field:"key"}:!e.field&&e.op!=="count"?T("No field provided for sort aggregate op: "+e.op):t&&e.field&&e.op&&!c$[e.op]&&T("Multiple domain scales can not be sorted using "+e.op)),e}function OV(e,t,n){let r=n.map(i=>{let a=t.getData(i.data);return a||Id(i.data),a.domainRef(t,i.field)});return ne(t.add(mV({values:r})))}function BV(e,t,n){let r=n.map(i=>{let a=t.getData(i.data);return a||Id(i.data),a.extentRef(t,i.field)});return ne(t.add(pV({extents:r})))}function zV(e,t){return e.signal||Z(e)?Pd(e,t):t.objectProperty(e)}function NV(e,t){return e.signal?t.signalRef(e.signal):ue(e)?{interval:jn(e.interval),step:jn(e.step)}:jn(e)}function RV(e,t){t.interpolate=jn(e.type||e),e.gamma!=null&&(t.interpolateGamma=jn(e.gamma))}function h$(e,t,n){let r=t.config.range,i=e.range;if(i.signal)return t.signalRef(i.signal);if(Ee(i)){if(r&&ce(r,i))return e=ge({},e,{range:r[i]}),h$(e,t,n);i==="width"?i=[0,{signal:"width"}]:i==="height"?i=Wo(e.type)?[0,{signal:"height"}]:[{signal:"height"},0]:T("Unrecognized scale range value: "+K(i))}else if(i.scheme){n.scheme=Z(i.scheme)?Pd(i.scheme,t):jn(i.scheme,t),i.extent&&(n.schemeExtent=Pd(i.extent,t)),i.count&&(n.schemeCount=jn(i.count,t));return}else if(i.step){n.rangeStep=jn(i.step,t);return}else{if(Wo(e.type)&&!Z(i))return f$(i,e,t);Z(i)||T("Unsupported range type: "+K(i))}return i.map(a=>(Z(a)?Pd:jn)(a,t))}function TV(e,t){let n=t.config.projection||{},r={};for(let i in e)i!=="name"&&(r[i]=Sy(e[i],i,t));for(let i in n)r[i]??(r[i]=Sy(n[i],i,t));t.addProjection(e.name,r)}function Sy(e,t,n){return Z(e)?e.map(r=>Sy(r,t,n)):ue(e)?e.signal?n.signalRef(e.signal):t==="fit"?e:T("Unsupported parameter object: "+K(e)):e}var sr="top",hl="left",pl="right",oa="bottom",p$="center",LV="vertical",PV="start",IV="middle",jV="end",My="index",Oy="label",qV="offset",jd="perc",qn="value",mu="guide-label",By="guide-title",UV="group-title",WV="group-subtitle",m$="symbol",qd="gradient",zy="discrete",Ny="size",Ry=[Ny,"shape","fill","stroke","strokeWidth","strokeDash","opacity"],gu={name:1,style:1,interactive:1},xe={value:0},Un={value:1},Ud="group",g$="rect",Ty="rule",GV="symbol",Va="text";function yu(e){return e.type=Ud,e.interactive=e.interactive||!1,e}function hn(e,t){let n=(r,i)=>or(e[r],or(t[r],i));return n.isVertical=r=>LV===or(e.direction,t.direction||(r?t.symbolDirection:t.gradientDirection)),n.gradientLength=()=>or(e.gradientLength,t.gradientLength||t.gradientWidth),n.gradientThickness=()=>or(e.gradientThickness,t.gradientThickness||t.gradientHeight),n.entryColumns=()=>or(e.columns,or(t.columns,+n.isVertical(!0))),n}function y$(e,t){let n=t&&(t.update&&t.update[e]||t.enter&&t.enter[e]);return n&&n.signal?n:n?n.value:null}function HV(e,t,n){let r=t.config.style[n];return r&&r[e]}function Wd(e,t,n){return`item.anchor === '${PV}' ? ${e} : item.anchor === '${jV}' ? ${t} : ${n}`}var Ly=Wd(K(hl),K(pl),K(p$));function VV(e){let t=e("tickBand"),n=e("tickOffset"),r,i;return t?t.signal?(r={signal:`(${t.signal}) === 'extent' ? 1 : 0.5`},i={signal:`(${t.signal}) === 'extent'`},ue(n)||(n={signal:`(${t.signal}) === 'extent' ? 0 : ${n}`})):t==="extent"?(r=1,i=!0,n=0):(r=.5,i=!1):(r=e("bandPosition"),i=e("tickExtra")),{extra:i,band:r,offset:n}}function v$(e,t){return t?e?ue(e)?Object.assign({},e,{offset:v$(e.offset,t)}):{value:e,offset:t}:t:e}function Dn(e,t){return t?(e.name=t.name,e.style=t.style||e.style,e.interactive=!!t.interactive,e.encode=fl(e.encode,t,gu)):e.interactive=!1,e}function XV(e,t,n,r){let i=hn(e,n),a=i.isVertical(),o=i.gradientThickness(),l=i.gradientLength(),s,u,c,f,d;a?(u=[0,1],c=[0,0],f=o,d=l):(u=[0,0],c=[1,0],f=l,d=o);let h={enter:s={opacity:xe,x:xe,y:xe,width:gt(f),height:gt(d)},update:ge({},s,{opacity:Un,fill:{gradient:t,start:u,stop:c}}),exit:{opacity:xe}};return _t(h,{stroke:i("gradientStrokeColor"),strokeWidth:i("gradientStrokeWidth")},{opacity:i("gradientOpacity")}),Dn({type:g$,role:CH,encode:h},r)}function YV(e,t,n,r,i){let a=hn(e,n),o=a.isVertical(),l=a.gradientThickness(),s=a.gradientLength(),u,c,f,d,h="";o?(u="y",f="y2",c="x",d="width",h="1-"):(u="x",f="x2",c="y",d="height");let p={opacity:xe,fill:{scale:t,field:qn}};p[u]={signal:h+"datum.perc",mult:s},p[c]=xe,p[f]={signal:h+"datum.perc2",mult:s},p[d]=gt(l);let m={enter:p,update:ge({},p,{opacity:Un}),exit:{opacity:xe}};return _t(m,{stroke:a("gradientStrokeColor"),strokeWidth:a("gradientStrokeWidth")},{opacity:a("gradientOpacity")}),Dn({type:g$,role:DH,key:qn,from:i,encode:m},r)}var JV=`datum.${jd}<=0?"${hl}":datum.${jd}>=1?"${pl}":"${p$}"`,QV=`datum.${jd}<=0?"${oa}":datum.${jd}>=1?"${sr}":"${IV}"`;function b$(e,t,n,r){let i=hn(e,t),a=i.isVertical(),o=gt(i.gradientThickness()),l=i.gradientLength(),s=i("labelOverlap"),u,c,f,d,h="",p={enter:u={opacity:xe},update:c={opacity:Un,text:{field:Oy}},exit:{opacity:xe}};return _t(p,{fill:i("labelColor"),fillOpacity:i("labelOpacity"),font:i("labelFont"),fontSize:i("labelFontSize"),fontStyle:i("labelFontStyle"),fontWeight:i("labelFontWeight"),limit:or(e.labelLimit,t.gradientLabelLimit)}),a?(u.align={value:"left"},u.baseline=c.baseline={signal:QV},f="y",d="x",h="1-"):(u.align=c.align={signal:JV},u.baseline={value:"top"},f="x",d="y"),u[f]=c[f]={signal:h+"datum.perc",mult:l},u[d]=c[d]=o,o.offset=or(e.labelOffset,t.gradientLabelOffset)||0,s=s?{separation:i("labelSeparation"),method:s,order:"datum."+My}:void 0,Dn({type:Va,role:XC,style:mu,key:qn,from:r,encode:p,overlap:s},n)}function KV(e,t,n,r,i){let a=hn(e,t),o=n.entries,l=!!(o&&o.interactive),s=o?o.name:void 0,u=a("clipHeight"),c=a("symbolOffset"),f={data:"value"},d=`(${i}) ? datum.${qV} : datum.${Ny}`,h=u?gt(u):{field:Ny},p=`datum.${My}`,m=`max(1, ${i})`,g,y,v,b,w;h.mult=.5,g={enter:y={opacity:xe,x:{signal:d,mult:.5,offset:c},y:h},update:v={opacity:Un,x:y.x,y:y.y},exit:{opacity:xe}};let A=null,E=null;e.fill||(A=t.symbolBaseFillColor,E=t.symbolBaseStrokeColor),_t(g,{fill:a("symbolFillColor",A),shape:a("symbolType"),size:a("symbolSize"),stroke:a("symbolStrokeColor",E),strokeDash:a("symbolDash"),strokeDashOffset:a("symbolDashOffset"),strokeWidth:a("symbolStrokeWidth")},{opacity:a("symbolOpacity")}),Ry.forEach(F=>{e[F]&&(v[F]=y[F]={scale:e[F],field:qn})});let x=Dn({type:GV,role:$H,key:qn,from:f,clip:u?!0:void 0,encode:g},n.symbols),k=gt(c);k.offset=a("labelOffset"),g={enter:y={opacity:xe,x:{signal:d,offset:k},y:h},update:v={opacity:Un,text:{field:Oy},x:y.x,y:y.y},exit:{opacity:xe}},_t(g,{align:a("labelAlign"),baseline:a("labelBaseline"),fill:a("labelColor"),fillOpacity:a("labelOpacity"),font:a("labelFont"),fontSize:a("labelFontSize"),fontStyle:a("labelFontStyle"),fontWeight:a("labelFontWeight"),limit:a("labelLimit")});let _=Dn({type:Va,role:XC,style:mu,key:qn,from:f,encode:g},n.labels);return g={enter:{noBound:{value:!u},width:xe,height:u?gt(u):xe,opacity:xe},exit:{opacity:xe},update:v={opacity:Un,row:{signal:null},column:{signal:null}}},a.isVertical(!0)?(b=`ceil(item.mark.items.length / ${m})`,v.row.signal=`${p}%${b}`,v.column.signal=`floor(${p} / ${b})`,w={field:["row",p]}):(v.row.signal=`floor(${p} / ${m})`,v.column.signal=`${p} % ${m}`,w={field:p}),v.column.signal=`(${i})?${v.column.signal}:${p}`,r={facet:{data:r,name:"value",groupby:My}},yu({role:VC,from:r,encode:fl(g,o,gu),marks:[x,_],name:s,interactive:l,sort:w})}function ZV(e,t){let n=hn(e,t);return{align:n("gridAlign"),columns:n.entryColumns(),center:{row:!0,column:!1},padding:{row:n("rowPadding"),column:n("columnPadding")}}}var Py='item.orient === "left"',Iy='item.orient === "right"',Gd=`(${Py} || ${Iy})`,eX=`datum.vgrad && ${Gd}`,tX=Wd('"top"','"bottom"','"middle"'),nX=`datum.vgrad && ${Iy} ? (${Wd('"right"','"left"','"center"')}) : (${Gd} && !(datum.vgrad && ${Py})) ? "left" : ${Ly}`,rX=`item._anchor || (${Gd} ? "middle" : "start")`,iX=`${eX} ? (${Py} ? -90 : 90) : 0`,aX=`${Gd} ? (datum.vgrad ? (${Iy} ? "bottom" : "top") : ${tX}) : "top"`;function oX(e,t,n,r){let i=hn(e,t),a={enter:{opacity:xe},update:{opacity:Un,x:{field:{group:"padding"}},y:{field:{group:"padding"}}},exit:{opacity:xe}};return _t(a,{orient:i("titleOrient"),_anchor:i("titleAnchor"),anchor:{signal:rX},angle:{signal:iX},align:{signal:nX},baseline:{signal:aX},text:e.title,fill:i("titleColor"),fillOpacity:i("titleOpacity"),font:i("titleFont"),fontSize:i("titleFontSize"),fontStyle:i("titleFontStyle"),fontWeight:i("titleFontWeight"),limit:i("titleLimit"),lineHeight:i("titleLineHeight")},{align:i("titleAlign"),baseline:i("titleBaseline")}),Dn({type:Va,role:SH,style:By,from:r,encode:a},n)}function lX(e,t){let n;return ue(e)&&(e.signal?n=e.signal:e.path?n="pathShape("+x$(e.path)+")":e.sphere&&(n="geoShape("+x$(e.sphere)+', {type: "Sphere"})')),n?t.signalRef(n):!!e}function x$(e){return ue(e)&&e.signal?e.signal:K(e)}function w$(e){let t=e.role||"";return t.startsWith("axis")||t.startsWith("legend")||t.startsWith("title")?t:e.type===Ud?VC:t||"mark"}function sX(e){return{marktype:e.type,name:e.name||void 0,role:e.role||w$(e),zindex:+e.zindex||void 0,aria:e.aria,description:e.description}}function uX(e,t){return e&&e.signal?t.signalRef(e.signal):e!==!1}function jy(e,t){let n=Cw(e.type);n||T("Unrecognized transform type: "+K(e.type));let r=Nd(n.type.toLowerCase(),null,A$(n,e,t));return e.signal&&t.addSignal(e.signal,t.proxy(r)),r.metadata=n.metadata||{},r}function A$(e,t,n){let r={},i=e.params.length;for(let a=0;aE$(e,a,n)):E$(e,i,n)}function E$(e,t,n){let r=e.type;if(ht(t))return _$(r)?T("Expression references can not be signals."):qy(r)?n.fieldRef(t):D$(r)?n.compareRef(t):n.signalRef(t.signal);{let i=e.expr||qy(r);return i&&hX(t)?n.exprRef(t.expr,t.as):i&&pX(t)?hu(t.field,t.as):_$(r)?Lr(t,n):mX(r)?ne(n.getData(t).values):qy(r)?hu(t):D$(r)?n.compareRef(t):t}}function fX(e,t,n){return Ee(t.from)||T('Lookup "from" parameter must be a string literal.'),n.getData(t.from).lookupRef(n,t.key)}function dX(e,t,n){let r=t[e.name];return e.array?(Z(r)||T("Expected an array of sub-parameters. Instead: "+K(r)),r.map(i=>k$(e,i,n))):k$(e,r,n)}function k$(e,t,n){let r=e.params.length,i;for(let o=0;oe&&e.expr,pX=e=>e&&e.field,mX=e=>e==="data",_$=e=>e==="expr",qy=e=>e==="field",D$=e=>e==="compare";function gX(e,t,n){let r,i,a,o,l;return e?(r=e.facet)&&(t||T("Only group marks can be faceted."),r.field==null?(e.data?l=ne(n.getData(e.data).aggregate):(a=jy(ge({type:"aggregate",groupby:ie(r.groupby)},r.aggregate),n),a.params.key=n.keyRef(r.groupby),a.params.pulse=Hd(r,n),o=l=ne(n.add(a))),i=n.keyRef(r.groupby,!0)):o=l=Hd(r,n)):o=ne(n.add(lr(null,[{}]))),o||(o=Hd(e,n)),{key:i,pulse:o,parent:l}}function Hd(e,t){return e.$ref?e:e.data&&e.data.$ref?e.data:ne(t.getData(e.data).output)}function Xa(e,t,n,r,i){this.scope=e,this.input=t,this.output=n,this.values=r,this.aggregate=i,this.index={}}Xa.fromEntries=function(e,t){let n=t.length,r=t[n-1],i=t[n-2],a=t[0],o=null,l=1;for(a&&a.type==="load"&&(a=t[1]),e.add(t[0]);lc??"null").join(",")+"),0)",t);s.update=u.$expr,s.params=u.$params}function Vd(e,t){let n=w$(e),r=e.type===Ud,i=e.from&&e.from.facet,a=e.overlap,o=e.layout||n==="scope"||n==="frame",l,s,u,c,f,d,h,p=n==="mark"||o||i,m=gX(e.from,r,t);s=t.add(oV({key:m.key||(e.key?hu(e.key):void 0),pulse:m.pulse,clean:!r}));let g=ne(s);s=u=t.add(lr({pulse:g})),s=t.add(hV({markdef:sX(e),interactive:uX(e.interactive,t),clip:lX(e.clip,t),context:{$context:!0},groups:t.lookup(),parent:t.signals.parent?t.signalRef("parent"):null,index:t.markpath(),pulse:ne(s)}));let y=ne(s);s=c=t.add(o$(KC(e.encode,e.type,n,e.style,t,{mod:!1,pulse:y}))),s.params.parent=t.encode(),e.transform&&e.transform.forEach(E=>{let x=jy(E,t),k=x.metadata;(k.generates||k.changes)&&T("Mark transforms should not generate new data."),k.nomod||(c.params.mod=!0),x.params.pulse=ne(s),t.add(s=x)}),e.sort&&(s=t.add(AV({sort:t.compareRef(e.sort),pulse:ne(s)})));let v=ne(s);(i||o)&&(o=t.add(u$({layout:t.objectProperty(e.layout),legends:t.legends,mark:y,pulse:v})),d=ne(o));let b=t.add(i$({mark:y,pulse:d||v}));h=ne(b),r&&(p&&(l=t.operators,l.pop(),o&&l.pop()),t.pushState(v,d||h,g),i?yX(e,t,m):p?vX(e,t,m):t.parse(e),t.popState(),p&&(o&&l.push(o),l.push(b))),a&&(h=bX(a,h,t));let w=t.add(s$({pulse:h})),A=t.add(Ha({pulse:ne(w)},void 0,t.parent()));e.name!=null&&(f=e.name,t.addData(f,new Xa(t,u,w,A)),e.on&&e.on.forEach(E=>{(E.insert||E.remove||E.toggle)&&T("Marks only support modify triggers."),$$(E,t,f)}))}function bX(e,t,n){let r=e.method,i=e.bound,a=e.separation,o={separation:ht(a)?n.signalRef(a.signal):a,method:ht(r)?n.signalRef(r.signal):r,pulse:t};if(e.order&&(o.sort=n.compareRef({field:e.order})),i){let l=i.tolerance;o.boundTolerance=ht(l)?n.signalRef(l.signal):+l,o.boundScale=n.scaleRef(i.scale),o.boundOrient=i.orient}return ne(n.add(gV(o)))}function xX(e,t){let n=t.config.legend,r=e.encode||{},i=hn(e,n),a=r.legend||{},o=a.name||void 0,l=a.interactive,s=a.style,u={},c=0,f,d,h;Ry.forEach(b=>e[b]?(u[b]=e[b],c||(c=e[b])):0),c||T("Missing valid scale for legend.");let p=wX(e,t.scaleType(c)),m={title:e.title!=null,scales:u,type:p,vgrad:p!=="symbol"&&i.isVertical()},g=ne(t.add(lr(null,[m]))),y={enter:{x:{value:0},y:{value:0}}},v=ne(t.add(fV(d={type:p,scale:t.scaleRef(c),count:t.objectProperty(i("tickCount")),limit:t.property(i("symbolLimit")),values:t.objectProperty(e.values),minstep:t.property(e.tickMinStep),formatType:t.property(e.formatType),formatSpecifier:t.property(e.format)})));return p===qd?(h=[XV(e,c,n,r.gradient),b$(e,n,r.labels,v)],d.count=d.count||t.signalRef(`max(2,2*floor((${Ga(i.gradientLength())})/100))`)):p===zy?h=[YV(e,c,n,r.gradient,v),b$(e,n,r.labels,v)]:(f=ZV(e,n),h=[KV(e,n,r,v,Ga(f.columns))],d.size=kX(e,t,h[0].marks)),h=[yu({role:FH,from:g,encode:y,marks:h,layout:f,interactive:l})],m.title&&h.push(oX(e,n,r.title,g)),Vd(yu({role:_H,from:g,encode:fl(EX(i,e,n),a,gu),marks:h,aria:i("aria"),description:i("description"),zindex:i("zindex"),name:o,interactive:l,style:s}),t)}function wX(e,t){let n=e.type||m$;return!e.type&&AX(e)===1&&(e.fill||e.stroke)&&(n=r0(t)?qd:i0(t)?zy:m$),n===qd?i0(t)?zy:qd:n}function AX(e){return Ry.reduce((t,n)=>t+(e[n]?1:0),0)}function EX(e,t,n){let r={enter:{},update:{}};return _t(r,{orient:e("orient"),offset:e("offset"),padding:e("padding"),titlePadding:e("titlePadding"),cornerRadius:e("cornerRadius"),fill:e("fillColor"),stroke:e("strokeColor"),strokeWidth:n.strokeWidth,strokeDash:n.strokeDash,x:e("legendX"),y:e("legendY"),format:t.format,formatType:t.formatType}),r}function kX(e,t,n){return Lr(`max(ceil(sqrt(${Ga(S$("size",e,n))})+${Ga(S$("strokeWidth",e,n))}),${Ga(_X(n[1].encode,t,mu))})`,t)}function S$(e,t,n){return t[e]?`scale("${t[e]}",datum)`:y$(e,n[0].encode)}function _X(e,t,n){return y$("fontSize",e)||HV("fontSize",t,n)}var DX=`item.orient==="${hl}"?-90:item.orient==="${pl}"?90:0`;function FX(e,t){e=Ee(e)?{text:e}:e;let n=hn(e,t.config.title),r=e.encode||{},i=r.group||{},a=i.name||void 0,o=i.interactive,l=i.style,s=[],u=ne(t.add(lr(null,[{}])));return s.push(SX(e,n,CX(e),u)),e.subtitle&&s.push(MX(e,n,r.subtitle,u)),Vd(yu({role:MH,from:u,encode:$X(n,i),marks:s,aria:n("aria"),description:n("description"),zindex:n("zindex"),name:a,interactive:o,style:l}),t)}function CX(e){let t=e.encode;return t&&t.title||ge({name:e.name,interactive:e.interactive,style:e.style},t)}function $X(e,t){let n={enter:{},update:{}};return _t(n,{orient:e("orient"),anchor:e("anchor"),align:{signal:Ly},angle:{signal:DX},limit:e("limit"),frame:e("frame"),offset:e("offset")||0,padding:e("subtitlePadding")}),fl(n,t,gu)}function SX(e,t,n,r){let i={value:0},a=e.text,o={enter:{opacity:i},update:{opacity:{value:1}},exit:{opacity:i}};return _t(o,{text:a,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:t("dx"),dy:t("dy"),fill:t("color"),font:t("font"),fontSize:t("fontSize"),fontStyle:t("fontStyle"),fontWeight:t("fontWeight"),lineHeight:t("lineHeight")},{align:t("align"),angle:t("angle"),baseline:t("baseline")}),Dn({type:Va,role:OH,style:UV,from:r,encode:o},n)}function MX(e,t,n,r){let i={value:0},a=e.subtitle,o={enter:{opacity:i},update:{opacity:{value:1}},exit:{opacity:i}};return _t(o,{text:a,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:t("dx"),dy:t("dy"),fill:t("subtitleColor"),font:t("subtitleFont"),fontSize:t("subtitleFontSize"),fontStyle:t("subtitleFontStyle"),fontWeight:t("subtitleFontWeight"),lineHeight:t("subtitleLineHeight")},{align:t("align"),angle:t("angle"),baseline:t("baseline")}),Dn({type:Va,role:BH,style:WV,from:r,encode:o},n)}function OX(e,t){let n=[];e.transform&&e.transform.forEach(r=>{n.push(jy(r,t))}),e.on&&e.on.forEach(r=>{$$(r,t,e.name)}),t.addDataPipeline(e.name,BX(e,t,n))}function BX(e,t,n){let r=[],i=null,a=!1,o=!1,l,s,u,c,f;for(e.values?ht(e.values)||Ld(e.format)?(r.push(M$(t,e)),r.push(i=Ya())):r.push(i=Ya({$ingest:e.values,$format:e.format})):e.url?Ld(e.url)||Ld(e.format)?(r.push(M$(t,e)),r.push(i=Ya())):r.push(i=Ya({$request:e.url,$format:e.format})):e.source&&(i=l=ie(e.source).map(d=>ne(t.getData(d).output)),r.push(null)),s=0,u=n.length;se===oa||e===sr,Xd=(e,t,n)=>ht(e)?TX(e.signal,t,n):e===hl||e===sr?t:n,yt=(e,t,n)=>ht(e)?NX(e.signal,t,n):O$(e)?t:n,ur=(e,t,n)=>ht(e)?RX(e.signal,t,n):O$(e)?n:t,B$=(e,t,n)=>ht(e)?LX(e.signal,t,n):e===sr?{value:t}:{value:n},zX=(e,t,n)=>ht(e)?PX(e.signal,t,n):e===pl?{value:t}:{value:n},NX=(e,t,n)=>z$(`${e} === '${sr}' || ${e} === '${oa}'`,t,n),RX=(e,t,n)=>z$(`${e} !== '${sr}' && ${e} !== '${oa}'`,t,n),TX=(e,t,n)=>Uy(`${e} === '${hl}' || ${e} === '${sr}'`,t,n),LX=(e,t,n)=>Uy(`${e} === '${sr}'`,t,n),PX=(e,t,n)=>Uy(`${e} === '${pl}'`,t,n),z$=(e,t,n)=>(t=t==null?t:gt(t),n=n==null?n:gt(n),N$(t)&&N$(n)?(t=t?t.signal||K(t.value):null,n=n?n.signal||K(n.value):null,{signal:`${e} ? (${t}) : (${n})`}):[ge({test:e},t)].concat(n||[])),N$=e=>e==null||Object.keys(e).length===1,Uy=(e,t,n)=>({signal:`${e} ? (${ml(t)}) : (${ml(n)})`}),IX=(e,t,n,r,i)=>({signal:(r==null?"":`${e} === '${hl}' ? (${ml(r)}) : `)+(n==null?"":`${e} === '${oa}' ? (${ml(n)}) : `)+(i==null?"":`${e} === '${pl}' ? (${ml(i)}) : `)+(t==null?"":`${e} === '${sr}' ? (${ml(t)}) : `)+"(null)"}),ml=e=>ht(e)?e.signal:e==null?null:K(e),jX=(e,t)=>t===0?0:ht(e)?{signal:`(${e.signal}) * ${t}`}:{value:e*t},gl=(e,t)=>{let n=e.signal;return n&&n.endsWith("(null)")?{signal:n.slice(0,-6)+t.signal}:e};function yl(e,t,n,r){let i;if(t&&ce(t,e))return t[e];if(ce(n,e))return n[e];if(e.startsWith("title")){switch(e){case"titleColor":i="fill";break;case"titleFont":case"titleFontSize":case"titleFontWeight":i=e[5].toLowerCase()+e.slice(6)}return r[By][i]}else if(e.startsWith("label")){switch(e){case"labelColor":i="fill";break;case"labelFont":case"labelFontSize":i=e[5].toLowerCase()+e.slice(6)}return r[mu][i]}return null}function R$(e){let t={};for(let n of e)if(n)for(let r in n)t[r]=1;return Object.keys(t)}function qX(e,t){var n=t.config,r=n.style,i=n.axis,a=t.scaleType(e.scale)==="band"&&n.axisBand,o=e.orient,l,s,u;if(ht(o)){let c=R$([n.axisX,n.axisY]),f=R$([n.axisTop,n.axisBottom,n.axisLeft,n.axisRight]);l={};for(u of c)l[u]=yt(o,yl(u,n.axisX,i,r),yl(u,n.axisY,i,r));s={};for(u of f)s[u]=IX(o.signal,yl(u,n.axisTop,i,r),yl(u,n.axisBottom,i,r),yl(u,n.axisLeft,i,r),yl(u,n.axisRight,i,r))}else l=o===sr||o===oa?n.axisX:n.axisY,s=n["axis"+o[0].toUpperCase()+o.slice(1)];return l||s||a?ge({},i,l,s,a):i}function UX(e,t,n,r){let i=hn(e,t),a=e.orient,o,l,s={enter:o={opacity:xe},update:l={opacity:Un},exit:{opacity:xe}};_t(s,{stroke:i("domainColor"),strokeCap:i("domainCap"),strokeDash:i("domainDash"),strokeDashOffset:i("domainDashOffset"),strokeWidth:i("domainWidth"),strokeOpacity:i("domainOpacity")});let u=T$(e,0),c=T$(e,1);return o.x=l.x=yt(a,u,xe),o.x2=l.x2=yt(a,c),o.y=l.y=ur(a,u,xe),o.y2=l.y2=ur(a,c),Dn({type:Ty,role:xH,from:r,encode:s},n)}function T$(e,t){return{scale:e.scale,range:t}}function WX(e,t,n,r,i){let a=hn(e,t),o=e.orient,l=e.gridScale,s=Xd(o,1,-1),u=GX(e.offset,s),c,f,d,h={enter:c={opacity:xe},update:d={opacity:Un},exit:f={opacity:xe}};_t(h,{stroke:a("gridColor"),strokeCap:a("gridCap"),strokeDash:a("gridDash"),strokeDashOffset:a("gridDashOffset"),strokeOpacity:a("gridOpacity"),strokeWidth:a("gridWidth")});let p={scale:e.scale,field:qn,band:i.band,extra:i.extra,offset:i.offset,round:a("tickRound")},m=yt(o,{signal:"height"},{signal:"width"}),g=l?{scale:l,range:0,mult:s,offset:u}:{value:0,offset:u},y=l?{scale:l,range:1,mult:s,offset:u}:ge(m,{mult:s,offset:u});return c.x=d.x=yt(o,p,g),c.y=d.y=ur(o,p,g),c.x2=d.x2=ur(o,y),c.y2=d.y2=yt(o,y),f.x=yt(o,p),f.y=ur(o,p),Dn({type:Ty,role:wH,key:qn,from:r,encode:h},n)}function GX(e,t){if(t!==1)if(!ue(e))e=ht(t)?{signal:`(${t.signal}) * (${e||0})`}:t*(e||0);else{let n=e=ge({},e);for(;n.mult!=null;)if(ue(n.mult))n=n.mult=ge({},n.mult);else return n.mult=ht(t)?{signal:`(${n.mult}) * (${t.signal})`}:n.mult*t,e;n.mult=t}return e}function HX(e,t,n,r,i,a){let o=hn(e,t),l=e.orient,s=Xd(l,-1,1),u,c,f,d={enter:u={opacity:xe},update:f={opacity:Un},exit:c={opacity:xe}};_t(d,{stroke:o("tickColor"),strokeCap:o("tickCap"),strokeDash:o("tickDash"),strokeDashOffset:o("tickDashOffset"),strokeOpacity:o("tickOpacity"),strokeWidth:o("tickWidth")});let h=gt(i);h.mult=s;let p={scale:e.scale,field:qn,band:a.band,extra:a.extra,offset:a.offset,round:o("tickRound")};return f.y=u.y=yt(l,xe,p),f.y2=u.y2=yt(l,h),c.x=yt(l,p),f.x=u.x=ur(l,xe,p),f.x2=u.x2=ur(l,h),c.y=ur(l,p),Dn({type:Ty,role:EH,key:qn,from:r,encode:d},n)}function Wy(e,t,n,r,i){return{signal:'flush(range("'+e+'"), scale("'+e+'", datum.value), '+t+","+n+","+r+","+i+")"}}function VX(e,t,n,r,i,a){let o=hn(e,t),l=e.orient,s=e.scale,u=Xd(l,-1,1),c=Ga(o("labelFlush")),f=Ga(o("labelFlushOffset")),d=o("labelAlign"),h=o("labelBaseline"),p=c===0||!!c,m,g=gt(i);g.mult=u,g.offset=gt(o("labelPadding")||0),g.offset.mult=u;let y={scale:s,field:qn,band:.5,offset:v$(a.offset,o("labelOffset"))},v=yt(l,p?Wy(s,c,'"left"','"right"','"center"'):{value:"center"},zX(l,"left","right")),b=yt(l,B$(l,"bottom","top"),p?Wy(s,c,'"top"','"bottom"','"middle"'):{value:"middle"}),w=Wy(s,c,`-(${f})`,f,0);p&&(p=f);let A={opacity:xe,x:yt(l,y,g),y:ur(l,y,g)},E={enter:A,update:m={opacity:Un,text:{field:Oy},x:A.x,y:A.y,align:v,baseline:b},exit:{opacity:xe,x:A.x,y:A.y}};_t(E,{dx:!d&&p?yt(l,w):null,dy:!h&&p?ur(l,w):null}),_t(E,{angle:o("labelAngle"),fill:o("labelColor"),fillOpacity:o("labelOpacity"),font:o("labelFont"),fontSize:o("labelFontSize"),fontWeight:o("labelFontWeight"),fontStyle:o("labelFontStyle"),limit:o("labelLimit"),lineHeight:o("labelLineHeight")},{align:d,baseline:h});let x=o("labelBound"),k=o("labelOverlap");return k=k||x?{separation:o("labelSeparation"),method:k,order:"datum.index",bound:x?{scale:s,orient:l,tolerance:x}:null}:void 0,m.align!==v&&(m.align=gl(m.align,v)),m.baseline!==b&&(m.baseline=gl(m.baseline,b)),Dn({type:Va,role:AH,style:mu,key:qn,from:r,encode:E,overlap:k},n)}function XX(e,t,n,r){let i=hn(e,t),a=e.orient,o=Xd(a,-1,1),l,s,u={enter:l={opacity:xe,anchor:gt(i("titleAnchor",null)),align:{signal:Ly}},update:s=ge({},l,{opacity:Un,text:gt(e.title)}),exit:{opacity:xe}},c={signal:`lerp(range("${e.scale}"), ${Wd(0,1,.5)})`};return s.x=yt(a,c),s.y=ur(a,c),l.angle=yt(a,xe,jX(o,90)),l.baseline=yt(a,B$(a,oa,sr),{value:oa}),s.angle=l.angle,s.baseline=l.baseline,_t(u,{fill:i("titleColor"),fillOpacity:i("titleOpacity"),font:i("titleFont"),fontSize:i("titleFontSize"),fontStyle:i("titleFontStyle"),fontWeight:i("titleFontWeight"),limit:i("titleLimit"),lineHeight:i("titleLineHeight")},{align:i("titleAlign"),angle:i("titleAngle"),baseline:i("titleBaseline")}),YX(i,a,u,n),u.update.align=gl(u.update.align,l.align),u.update.angle=gl(u.update.angle,l.angle),u.update.baseline=gl(u.update.baseline,l.baseline),Dn({type:Va,role:kH,style:By,from:r,encode:u},n)}function YX(e,t,n,r){let i=(l,s)=>l==null?!dl(s,r):(n.update[s]=gl(gt(l),n.update[s]),!1),a=i(e("titleX"),"x"),o=i(e("titleY"),"y");n.enter.auto=o===a?gt(o):yt(t,gt(o),gt(a))}function JX(e,t){let n=qX(e,t),r=e.encode||{},i=r.axis||{},a=i.name||void 0,o=i.interactive,l=i.style,s=hn(e,n),u=VV(s),c={scale:e.scale,ticks:!!s("ticks"),labels:!!s("labels"),grid:!!s("grid"),domain:!!s("domain"),title:e.title!=null},f=ne(t.add(lr({},[c]))),d=ne(t.add(aV({scale:t.scaleRef(e.scale),extra:t.property(u.extra),count:t.objectProperty(e.tickCount),values:t.objectProperty(e.values),minstep:t.property(e.tickMinStep),formatType:t.property(e.formatType),formatSpecifier:t.property(e.format)}))),h=[],p;return c.grid&&h.push(WX(e,n,r.grid,d,u)),c.ticks&&(p=s("tickSize"),h.push(HX(e,n,r.ticks,d,p,u))),c.labels&&(p=c.ticks?p:0,h.push(VX(e,n,r.labels,d,p,u))),c.domain&&h.push(UX(e,n,r.domain,f)),c.title&&h.push(XX(e,n,r.title,f)),Vd(yu({role:bH,from:f,encode:fl(QX(s,e),i,gu),marks:h,aria:s("aria"),description:s("description"),zindex:s("zindex"),name:a,interactive:o,style:l}),t)}function QX(e,t){let n={enter:{},update:{}};return _t(n,{orient:e("orient"),offset:e("offset")||0,position:or(t.position,0),titlePadding:e("titlePadding"),minExtent:e("minExtent"),maxExtent:e("maxExtent"),range:{signal:`abs(span(range("${t.scale}")))`},translate:e("translate"),format:t.format,formatType:t.formatType}),n}function L$(e,t,n){let r=ie(e.signals),i=ie(e.scales);return n||r.forEach(a=>e$(a,t)),ie(e.projections).forEach(a=>TV(a,t)),i.forEach(a=>_V(a,t)),ie(e.data).forEach(a=>OX(a,t)),i.forEach(a=>DV(a,t)),(n||r).forEach(a=>iV(a,t)),ie(e.axes).forEach(a=>JX(a,t)),ie(e.marks).forEach(a=>Vd(a,t)),ie(e.legends).forEach(a=>xX(a,t)),e.title&&FX(e.title,t),t.parseLambdas(),t}var KX=e=>fl({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},e);function ZX(e,t){let n=t.config,r=ne(t.root=t.add(Rd())),i=eY(e,n);i.forEach(u=>e$(u,t)),t.description=e.description||n.description,t.eventConfig=n.events,t.legends=t.objectProperty(n.legend&&n.legend.layout),t.locale=n.locale;let a=t.add(lr()),o=t.add(o$(KC(KX(e.encode),Ud,vH,e.style,t,{pulse:ne(a)}))),l=t.add(u$({layout:t.objectProperty(e.layout),legends:t.legends,autosize:t.signalRef("autosize"),mark:r,pulse:ne(o)}));t.operators.pop(),t.pushState(ne(o),ne(l),null),L$(e,t,i),t.operators.push(l);let s=t.add(i$({mark:r,pulse:ne(l)}));return s=t.add(s$({pulse:ne(s)})),s=t.add(Ha({pulse:ne(s)})),t.addData("root",new Xa(t,a,a,s)),t}function bu(e,t){return t&&t.signal?{name:e,update:t.signal}:{name:e,value:t}}function eY(e,t){let n=o=>or(e[o],t[o]),r=[bu("background",n("background")),bu("autosize",mH(n("autosize"))),bu("padding",yH(n("padding"))),bu("width",n("width")||0),bu("height",n("height")||0)],i=r.reduce((o,l)=>(o[l.name]=l,o),{}),a={};return ie(e.signals).forEach(o=>{ce(i,o.name)?o=ge(i[o.name],o):r.push(o),a[o.name]=o}),ie(t.signals).forEach(o=>{!ce(a,o.name)&&!ce(i,o.name)&&r.push(o)}),r}function P$(e,t){this.config=e||{},this.options=t||{},this.bindings=[],this.field={},this.signals={},this.lambdas={},this.scales={},this.events={},this.data={},this.streams=[],this.updates=[],this.operators=[],this.eventConfig=null,this.locale=null,this._id=0,this._subid=0,this._nextsub=[0],this._parent=[],this._encode=[],this._lookup=[],this._markpath=[]}function I$(e){this.config=e.config,this.options=e.options,this.legends=e.legends,this.field=Object.create(e.field),this.signals=Object.create(e.signals),this.lambdas=Object.create(e.lambdas),this.scales=Object.create(e.scales),this.events=Object.create(e.events),this.data=Object.create(e.data),this.streams=[],this.updates=[],this.operators=[],this._id=0,this._subid=++e._nextsub[0],this._nextsub=e._nextsub,this._parent=e._parent.slice(),this._encode=e._encode.slice(),this._lookup=e._lookup.slice(),this._markpath=e._markpath}P$.prototype=I$.prototype={parse(e){return L$(e,this)},fork(){return new I$(this)},isSubscope(){return this._subid>0},toRuntime(){return this.finish(),{description:this.description,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings,eventConfig:this.eventConfig,locale:this.locale}},id(){return(this._subid?this._subid+":":0)+this._id++},add(e){return this.operators.push(e),e.id=this.id(),e.refs&&(e.refs=(e.refs.forEach(t=>{t.$ref=e.id}),null)),e},proxy(e){let t=e instanceof _y?ne(e):e;return this.add(bV({value:t}))},addStream(e){return this.streams.push(e),e.id=this.id(),e},addUpdate(e){return this.updates.push(e),e},finish(){let e,t;for(e in this.root&&(this.root.root=!0),this.signals)this.signals[e].signal=e;for(e in this.scales)this.scales[e].scale=e;function n(r,i,a){let o,l;r&&(o=r.data||(r.data={}),l=o[i]||(o[i]=[]),l.push(a))}for(e in this.data)for(let r in t=this.data[e],n(t.input,e,"input"),n(t.output,e,"output"),n(t.values,e,"values"),t.index)n(t.index[r],e,"index:"+r);return this},pushState(e,t,n){this._encode.push(ne(this.add(Ha({pulse:e})))),this._parent.push(t),this._lookup.push(n?ne(this.proxy(n)):null),this._markpath.push(-1)},popState(){this._encode.pop(),this._parent.pop(),this._lookup.pop(),this._markpath.pop()},parent(){return Oe(this._parent)},encode(){return Oe(this._encode)},lookup(){return Oe(this._lookup)},markpath(){let e=this._markpath;return++e[e.length-1]},fieldRef(e,t){if(Ee(e))return hu(e,t);e.signal||T("Unsupported field reference: "+K(e));let n=e.signal,r=this.field[n];if(!r){let i={name:this.signalRef(n)};t&&(i.as=t),this.field[n]=r=ne(this.add(uV(i)))}return r},compareRef(e){let t=!1,n=a=>ht(a)?(t=!0,this.signalRef(a.signal)):XH(a)?(t=!0,this.exprRef(a.expr)):a,r=ie(e.field).map(n),i=ie(e.order).map(n);return t?ne(this.add(a$({fields:r,orders:i}))):t$(r,i)},keyRef(e,t){let n=!1,r=a=>ht(a)?(n=!0,ne(i[a.signal])):a,i=this.signals;return e=ie(e).map(r),n?ne(this.add(cV({fields:e,flat:t}))):WH(e,t)},sortRef(e){if(!e)return e;let t=Td(e.op,e.field),n=e.order||GH;return n.signal?ne(this.add(a$({fields:t,orders:this.signalRef(n.signal)}))):t$(t,n)},event(e,t){let n=e+":"+t;if(!this.events[n]){let r=this.id();this.streams.push({id:r,source:e,type:t}),this.events[n]=r}return this.events[n]},hasOwnSignal(e){return ce(this.signals,e)},addSignal(e,t){this.hasOwnSignal(e)&&T("Duplicate signal name: "+K(e));let n=t instanceof _y?t:this.add(Rd(t));return this.signals[e]=n},getSignal(e){return this.signals[e]||T("Unrecognized signal name: "+K(e)),this.signals[e]},signalRef(e){return this.signals[e]?ne(this.signals[e]):(ce(this.lambdas,e)||(this.lambdas[e]=this.add(Rd(null))),ne(this.lambdas[e]))},parseLambdas(){let e=Object.keys(this.lambdas);for(let t=0,n=e.length;t0?",":"")+(ue(i)?i.signal||Gy(i):K(i))}return n+"]"}function nY(e){let t="{",n=0,r,i;for(r in e)i=e[r],t+=(++n>1?",":"")+K(r)+":"+(ue(i)?i.signal||Gy(i):K(i));return t+"}"}function rY(){let e="sans-serif",t="#4c78a8",n="#000",r="#888",i="#ddd";return{description:"Vega visualization",padding:0,autosize:"pad",background:null,events:{defaults:{allow:["wheel"]}},group:null,mark:null,arc:{fill:t},area:{fill:t},image:null,line:{stroke:t,strokeWidth:2},path:{stroke:t},rect:{fill:t},rule:{stroke:n},shape:{stroke:t},symbol:{fill:t,size:64},text:{fill:n,font:e,fontSize:11},trail:{fill:t,size:2},style:{"guide-label":{fill:n,font:e,fontSize:10},"guide-title":{fill:n,font:e,fontSize:11,fontWeight:"bold"},"group-title":{fill:n,font:e,fontSize:13,fontWeight:"bold"},"group-subtitle":{fill:n,font:e,fontSize:12},point:{size:30,strokeWidth:2,shape:"circle"},circle:{size:30,strokeWidth:2},square:{size:30,strokeWidth:2,shape:"square"},cell:{fill:"transparent",stroke:i},view:{fill:"transparent"}},title:{orient:"top",anchor:"middle",offset:4,subtitlePadding:3},axis:{minExtent:0,maxExtent:200,bandPosition:.5,domain:!0,domainWidth:1,domainColor:r,grid:!1,gridWidth:1,gridColor:i,labels:!0,labelAngle:0,labelLimit:180,labelOffset:0,labelPadding:2,ticks:!0,tickColor:r,tickOffset:0,tickRound:!0,tickSize:5,tickWidth:1,titlePadding:4},axisBand:{tickOffset:-.5},projection:{type:"mercator"},legend:{orient:"right",padding:0,gridAlign:"each",columnPadding:10,rowPadding:2,symbolDirection:"vertical",gradientDirection:"vertical",gradientLength:200,gradientThickness:16,gradientStrokeColor:i,gradientStrokeWidth:0,gradientLabelOffset:2,labelAlign:"left",labelBaseline:"middle",labelLimit:160,labelOffset:4,labelOverlap:!0,symbolLimit:30,symbolType:"circle",symbolSize:100,symbolOffset:0,symbolStrokeWidth:1.5,symbolBaseFillColor:"transparent",symbolBaseStrokeColor:r,titleLimit:180,titleOrient:"top",titlePadding:5,layout:{offset:18,direction:"horizontal",left:{direction:"vertical"},right:{direction:"vertical"}}},range:{category:{scheme:"tableau10"},ordinal:{scheme:"blues"},heatmap:{scheme:"yellowgreenblue"},ramp:{scheme:"blues"},diverging:{scheme:"blueorange",extent:[1,0]},symbol:["circle","square","triangle-up","cross","diamond","triangle-right","triangle-down","triangle-left"]}}}function iY(e,t,n){return ue(e)||T("Input Vega specification must be an object."),t=lc(rY(),t,e.config),ZX(e,new P$(t,n)).toRuntime()}var aY=sn({Bounds:()=>lt,CanvasHandler:()=>Fs,CanvasRenderer:()=>hf,DATE:()=>P4,DAY:()=>"day",DAYOFYEAR:()=>T4,Dataflow:()=>Io,Debug:()=>4,DisallowedObjectProperties:()=>Op,Error:()=>1,EventStream:()=>Ec,Gradient:()=>fE,GroupItem:()=>qc,HOURS:()=>M4,Handler:()=>I0,HybridHandler:()=>_k,HybridRenderer:()=>K0,Info:()=>3,Item:()=>jc,MILLISECONDS:()=>W4,MINUTES:()=>V4,MONTH:()=>O4,Marks:()=>An,MultiPulse:()=>Qp,None:()=>0,Operator:()=>Pe,Parameters:()=>Ac,Pulse:()=>Ri,QUARTER:()=>H4,RenderType:()=>Yi,Renderer:()=>_s,ResourceLoader:()=>wE,SECONDS:()=>$4,SVGHandler:()=>ok,SVGRenderer:()=>Q0,SVGStringRenderer:()=>kk,Scenegraph:()=>XE,TIME_UNITS:()=>b2,Transform:()=>O,View:()=>RC,WEEK:()=>G4,Warn:()=>2,YEAR:()=>S4,accessor:()=>No,accessorFields:()=>It,accessorName:()=>Qe,array:()=>ie,ascending:()=>uc,bandwidthNRD:()=>tm,bin:()=>Mw,bootstrapCI:()=>Ow,boundClip:()=>Nk,boundContext:()=>vs,boundItem:()=>L0,boundMark:()=>WE,boundStroke:()=>ii,changeset:()=>$a,clampRange:()=>g2,codegenExpression:()=>VF,compare:()=>Np,constant:()=>jt,cumulativeLogNormal:()=>lm,cumulativeNormal:()=>Fc,cumulativeUniform:()=>fm,dayofyear:()=>x2,debounce:()=>Lp,defaultLocale:()=>G2,definition:()=>Cw,densityLogNormal:()=>om,densityNormal:()=>nm,densityUniform:()=>cm,domChild:()=>ft,domClear:()=>Ln,domCreate:()=>Vi,domFind:()=>P0,dotbin:()=>Bw,error:()=>T,expressionFunction:()=>rt,extend:()=>ge,extent:()=>Dr,extentIndex:()=>V2,falsy:()=>Si,fastmap:()=>Ro,field:()=>ti,flush:()=>Q2,font:()=>tf,fontFamily:()=>Es,fontSize:()=>Sr,format:()=>U4,formatLocale:()=>N4,formats:()=>I4,hasOwnProperty:()=>ce,id:()=>Kl,identity:()=>Jn,inferType:()=>q4,inferTypes:()=>L4,ingest:()=>Ce,inherits:()=>G,inrange:()=>To,interpolate:()=>a0,interpolateColors:()=>Tc,interpolateRange:()=>XA,intersect:()=>Mk,intersectBoxLine:()=>Xo,intersectPath:()=>E0,intersectPoint:()=>k0,intersectRule:()=>$E,isArray:()=>Z,isBoolean:()=>Bp,isDate:()=>ka,isFunction:()=>me,isIterable:()=>B4,isNumber:()=>_a,isObject:()=>ue,isRegExp:()=>Fp,isString:()=>Ee,isTuple:()=>bc,key:()=>Mp,lerp:()=>A2,lineHeight:()=>Gi,loader:()=>cc,locale:()=>J2,logger:()=>Cp,lruCache:()=>z2,markup:()=>J0,merge:()=>W2,mergeConfig:()=>lc,multiLineOffset:()=>N0,one:()=>Zl,pad:()=>S2,panLinear:()=>O2,panLog:()=>R2,panPow:()=>E2,panSymlog:()=>D2,parse:()=>iY,parseExpression:()=>WF,parseSelector:()=>aa,path:()=>Gp,pathCurves:()=>f0,pathEqual:()=>Rk,pathParse:()=>Go,pathRectangle:()=>vE,pathRender:()=>hs,pathSymbols:()=>yE,pathTrail:()=>bE,peek:()=>Oe,point:()=>rf,projection:()=>Yg,quantileLogNormal:()=>sm,quantileNormal:()=>Cc,quantileUniform:()=>dm,quantiles:()=>Zp,quantizeInterpolator:()=>YA,quarter:()=>L2,quartiles:()=>em,random:()=>Nn,randomInteger:()=>QM,randomKDE:()=>im,randomLCG:()=>JM,randomLogNormal:()=>Nw,randomMixture:()=>Rw,randomNormal:()=>rm,randomUniform:()=>Tw,read:()=>H2,regressionConstant:()=>hm,regressionExp:()=>Pw,regressionLinear:()=>pm,regressionLoess:()=>Ww,regressionLog:()=>Lw,regressionPoly:()=>jw,regressionPow:()=>Iw,regressionQuad:()=>mm,renderModule:()=>yf,repeat:()=>X4,resetDefaultLocale:()=>R4,resetSVGDefIds:()=>ER,responseType:()=>Y2,runtimeContext:()=>gC,sampleCurve:()=>Sc,sampleLogNormal:()=>am,sampleNormal:()=>Dc,sampleUniform:()=>um,scale:()=>ke,sceneEqual:()=>eg,sceneFromJSON:()=>HE,scenePickVisit:()=>Yc,sceneToJSON:()=>GE,sceneVisit:()=>Kn,sceneZOrder:()=>_0,scheme:()=>o0,serializeXML:()=>yk,setHybridRendererOptions:()=>bR,setRandom:()=>XM,span:()=>sc,splitAccessPath:()=>I2,stringValue:()=>K,textMetrics:()=>wn,timeBin:()=>w2,timeFloor:()=>B2,timeFormatLocale:()=>j4,timeInterval:()=>Rp,timeOffset:()=>y2,timeSequence:()=>U2,timeUnitSpecifier:()=>$2,timeUnits:()=>M2,toBoolean:()=>k2,toDate:()=>P2,toNumber:()=>zn,toSet:()=>_r,toString:()=>F2,transform:()=>$w,transforms:()=>jo,truncate:()=>X2,truthy:()=>Bn,tupleid:()=>ee,typeParsers:()=>z4,utcFloor:()=>N2,utcInterval:()=>$p,utcOffset:()=>_2,utcSequence:()=>C2,utcdayofyear:()=>T2,utcquarter:()=>j2,utcweek:()=>K2,version:()=>lY,visitArray:()=>$i,week:()=>v2,writeConfig:()=>q2,zero:()=>Sp,zoomLinear:()=>Dp,zoomLog:()=>zp,zoomPow:()=>fc,zoomSymlog:()=>Tp},1),oY="6.2.0";ge(jo,sO,kR,oT,tP,nI,YI,UI,gj,Lj,qj,Kj);var lY=oY;function sY(e,t,n){let r;t.x2&&(t.x?(n&&e.x>e.x2&&(r=e.x,e.x=e.x2,e.x2=r),e.width=e.x2-e.x):e.x=e.x2-(e.width||0)),t.xc&&(e.x=e.xc-(e.width||0)/2),t.y2&&(t.y?(n&&e.y>e.y2&&(r=e.y,e.y=e.y2,e.y2=r),e.height=e.y2-e.y):e.y=e.y2-(e.height||0)),t.yc&&(e.y=e.yc-(e.height||0)/2)}var uY={NaN:NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE},cY={"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,">":(e,t)=>e>t,"<":(e,t)=>ee<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,"===":(e,t)=>e===t,"!==":(e,t)=>e!==t,"&":(e,t)=>e&t,"|":(e,t)=>e|t,"^":(e,t)=>e^t,"<<":(e,t)=>e<>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t},fY={"+":e=>+e,"-":e=>-e,"~":e=>~e,"!":e=>!e},dY=Array.prototype.slice,Ja=(e,t,n)=>{let r=n?n(t[0]):t[0];return r[e].apply(r,dY.call(t,1))},hY={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(e,t,n)=>Math.max(t,Math.min(n,e)),now:Date.now,utc:Date.UTC,datetime:(e,t=0,n=1,r=0,i=0,a=0,o=0)=>Ee(e)?new Date(e):new Date(e,t,n,r,i,a,o),date:e=>new Date(e).getDate(),day:e=>new Date(e).getDay(),year:e=>new Date(e).getFullYear(),month:e=>new Date(e).getMonth(),hours:e=>new Date(e).getHours(),minutes:e=>new Date(e).getMinutes(),seconds:e=>new Date(e).getSeconds(),milliseconds:e=>new Date(e).getMilliseconds(),time:e=>new Date(e).getTime(),timezoneoffset:e=>new Date(e).getTimezoneOffset(),utcdate:e=>new Date(e).getUTCDate(),utcday:e=>new Date(e).getUTCDay(),utcyear:e=>new Date(e).getUTCFullYear(),utcmonth:e=>new Date(e).getUTCMonth(),utchours:e=>new Date(e).getUTCHours(),utcminutes:e=>new Date(e).getUTCMinutes(),utcseconds:e=>new Date(e).getUTCSeconds(),utcmilliseconds:e=>new Date(e).getUTCMilliseconds(),length:e=>e.length,join:function(){return Ja("join",arguments)},indexof:function(){return Ja("indexOf",arguments)},lastindexof:function(){return Ja("lastIndexOf",arguments)},slice:function(){return Ja("slice",arguments)},reverse:e=>e.slice().reverse(),sort:e=>e.slice().sort(uc),parseFloat,parseInt,upper:e=>String(e).toUpperCase(),lower:e=>String(e).toLowerCase(),substring:function(){return Ja("substring",arguments,String)},split:function(){return Ja("split",arguments,String)},replace:function(){return Ja("replace",arguments,String)},trim:e=>String(e).trim(),btoa:e=>btoa(e),atob:e=>atob(e),regexp:RegExp,test:(e,t)=>RegExp(e).test(t)},pY=["view","item","group","xy","x","y"],Hy=new Set([Function,eval,setTimeout,setInterval]);typeof setImmediate=="function"&&Hy.add(setImmediate);var mY={Literal:(e,t)=>t.value,Identifier:(e,t)=>{let n=t.name;return e.memberDepth>0?n:n==="datum"?e.datum:n==="event"?e.event:n==="item"?e.item:uY[n]||e.params["$"+n]},MemberExpression:(e,t)=>{let n=!t.computed,r=e(t.object);n&&(e.memberDepth+=1);let i=e(t.property);if(n&&--e.memberDepth,Hy.has(r[i])){console.error(`Prevented interpretation of member "${i}" which could lead to insecure code execution`);return}return r[i]},CallExpression:(e,t)=>{let n=t.arguments,r=t.callee.name;return r.startsWith("_")&&(r=r.slice(1)),r==="if"?e(n[0])?e(n[1]):e(n[2]):(e.fn[r]||hY[r]).apply(e.fn,n.map(e))},ArrayExpression:(e,t)=>t.elements.map(e),BinaryExpression:(e,t)=>cY[t.operator](e(t.left),e(t.right)),UnaryExpression:(e,t)=>fY[t.operator](e(t.argument)),ConditionalExpression:(e,t)=>e(t.test)?e(t.consequent):e(t.alternate),LogicalExpression:(e,t)=>t.operator==="&&"?e(t.left)&&e(t.right):e(t.left)||e(t.right),ObjectExpression:(e,t)=>t.properties.reduce((n,r)=>{e.memberDepth+=1;let i=e(r.key);--e.memberDepth;let a=e(r.value);return Op.has(i)?console.error(`Prevented interpretation of property "${i}" which could lead to insecure code execution`):Hy.has(a)?console.error(`Prevented interpretation of method "${i}" which could lead to insecure code execution`):n[i]=a,n},{})};function xu(e,t,n,r,i,a){let o=l=>mY[l.type](o,l);return o.memberDepth=0,o.fn=Object.create(t),o.params=n,o.datum=r,o.event=i,o.item=a,pY.forEach(l=>o.fn[l]=(...s)=>i.vega[l](...s)),o(e)}var gY={operator(e,t){let n=t.ast,r=e.functions;return i=>xu(n,r,i)},parameter(e,t){let n=t.ast,r=e.functions;return(i,a)=>xu(n,r,a,i)},event(e,t){let n=t.ast,r=e.functions;return i=>xu(n,r,void 0,void 0,i)},handler(e,t){let n=t.ast,r=e.functions;return(i,a)=>xu(n,r,i,a.item&&a.item.datum,a)},encode(e,t){let{marktype:n,channels:r}=t,i=e.functions,a=n==="group"||n==="image"||n==="rect";return(o,l)=>{let s=o.datum,u=0,c;for(let f in r)c=xu(r[f].ast,i,l,s,void 0,o),o[f]!==c&&(o[f]=c,u=1);return n!=="rule"&&sY(o,r,a),u}}};function vl(e,t,n){return e.fields=t||[],e.fname=n,e}function yY(e){return e.length===1?vY(e[0]):bY(e)}var vY=e=>function(t){return t[e]},bY=e=>{let t=e.length;return function(n){for(let r=0;ro?u():o=l+1:s==="["?(l>o&&u(),i=o=l+1):s==="]"&&(i||Vy("Access path missing open bracket: "+e),i>0&&u(),i=0,o=l+1)}return i&&Vy("Access path missing closing bracket: "+e),r&&Vy("Access path missing closing quote: "+e),l>o&&(l++,u()),t}function xY(e,t,n){let r=Qa(e);return e=r.length===1?r[0]:e,vl((n&&n.get||yY)(r),[e],t||e)}xY("id");var wY=vl(e=>e,[],"identity");vl(()=>0,[],"zero"),vl(()=>1,[],"one"),vl(()=>!0,[],"true"),vl(()=>!1,[],"false");function AY(e,t,n){let r=[t].concat([].slice.call(n));console[e].apply(console,r)}function EY(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:AY,r=e||0;return{level(i){return arguments.length?(r=+i,this):r},error(){return r>=1&&n(t||"error","ERROR",arguments),this},warn(){return r>=2&&n(t||"warn","WARN",arguments),this},info(){return r>=3&&n(t||"log","INFO",arguments),this},debug(){return r>=4&&n(t||"log","DEBUG",arguments),this}}}var X=Array.isArray;function Ae(e){return e===Object(e)}var j$=e=>e!=="__proto__";function q$(){return[...arguments].reduce((e,t)=>{for(let n in t)if(n==="signals")e.signals=kY(e.signals,t.signals);else{let r=n==="legend"?{layout:1}:n==="style"?!0:null;Yd(e,n,t[n],r)}return e},{})}function Yd(e,t,n,r){if(!j$(t))return;let i,a;if(Ae(n)&&!X(n))for(i in a=Ae(e[t])?e[t]:e[t]={},n)r&&(r===!0||r[i])?Yd(a,i,n[i]):j$(i)&&(a[i]=n[i]);else e[t]=n}function kY(e,t){if(e==null)return t;let n={},r=[];function i(a){n[a.name]||(n[a.name]=1,r.push(a))}return t.forEach(i),e.forEach(i),r}function it(e){return e==null?[]:X(e)?e:[e]}function _Y(e){return typeof e=="function"}function st(e,t){return Object.hasOwn(e,t)}function wu(e){return typeof e=="boolean"}function He(e){return typeof e=="number"}function se(e){return typeof e=="string"}function we(e){return X(e)?"["+e.map(we)+"]":Ae(e)||se(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}var DY="RawCode",FY="Literal",CY="Property",$Y="Identifier",SY="ArrayExpression",MY="BinaryExpression",OY="CallExpression",BY="ConditionalExpression",zY="LogicalExpression",NY="MemberExpression",RY="ObjectExpression",TY="UnaryExpression";function cr(e){this.type=e}cr.prototype.visit=function(e){let t,n,r;if(e(this))return 1;for(t=LY(this),n=0,r=t.length;n",Pr[Ka]="Identifier",Pr[la]="Keyword",Pr[Qd]="Null",Pr[Za]="Numeric",Pr[pn]="Punctuator",Pr[Eu]="String",Pr[PY]="RegularExpression";var IY="ArrayExpression",jY="BinaryExpression",qY="CallExpression",UY="ConditionalExpression",U$="Identifier",WY="Literal",GY="LogicalExpression",HY="MemberExpression",VY="ObjectExpression",XY="Property",YY="UnaryExpression",vt="Unexpected token %0",JY="Unexpected number",QY="Unexpected string",KY="Unexpected identifier",ZY="Unexpected reserved word",eJ="Unexpected end of input",Xy="Invalid regular expression",Yy="Invalid regular expression: missing /",W$="Octal literals are not allowed in strict mode.",tJ="Duplicate data property in object literal not allowed in strict mode",Dt="ILLEGAL",ku="Disabled.",nJ=RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),rJ=RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function Kd(e,t){if(!e)throw Error("ASSERT: "+t)}function hi(e){return e>=48&&e<=57}function Jy(e){return"0123456789abcdefABCDEF".includes(e)}function _u(e){return"01234567".includes(e)}function iJ(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e)}function Du(e){return e===10||e===13||e===8232||e===8233}function Fu(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&nJ.test(String.fromCharCode(e))}function Zd(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&rJ.test(String.fromCharCode(e))}var aJ={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function G$(){for(;z1114111||e!=="}")&&De({},vt,Dt),t<=65535?String.fromCharCode(t):(n=(t-65536>>10)+55296,r=(t-65536&1023)+56320,String.fromCharCode(n,r))}function H$(){var e=J.charCodeAt(z++),t=String.fromCharCode(e);for(e===92&&(J.charCodeAt(z)!==117&&De({},vt,Dt),++z,e=Qy("u"),(!e||e==="\\"||!Fu(e.charCodeAt(0)))&&De({},vt,Dt),t=e);z>>=")return z+=4,{type:pn,value:o,start:e,end:z};if(a=o.substr(0,3),a===">>>"||a==="<<="||a===">>=")return z+=3,{type:pn,value:a,start:e,end:z};if(i=a.substr(0,2),r===i[1]&&"+-<>&|".includes(r)||i==="=>")return z+=2,{type:pn,value:i,start:e,end:z};if(i==="//"&&De({},vt,Dt),"<>=!+-*%&|^/".includes(r))return++z,{type:pn,value:r,start:e,end:z};De({},vt,Dt)}function uJ(e){let t="";for(;z{if(parseInt(i,16)<=1114111)return"x";De({},Xy)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(n)}catch{De({},Xy)}try{return new RegExp(e,t)}catch{return null}}function hJ(){var e=J[z],t,n,r,i;for(Kd(e==="/","Regular expression literal must start with a slash"),t=J[z++],n=!1,r=!1;z=0&&De({},Xy,n),{value:n,literal:t}}function mJ(){var e,t,n,r;return Ne=null,G$(),e=z,t=hJ(),n=pJ(),r=dJ(t.value,n.value),{literal:t.literal+n.literal,value:r,regex:{pattern:t.value,flags:n.value},start:e,end:z}}function gJ(e){return e.type===Ka||e.type===la||e.type===Jd||e.type===Qd}function X$(){if(G$(),z>=Rt)return{type:Au,start:z,end:z};let e=J.charCodeAt(z);return Fu(e)?sJ():e===40||e===41||e===59?Ky():e===39||e===34?fJ():e===46?hi(J.charCodeAt(z+1))?V$():Ky():hi(e)?V$():Ky()}function mn(){let e=Ne;return z=e.end,Ne=X$(),z=e.end,e}function Y$(){let e=z;Ne=X$(),z=e}function yJ(e){let t=new cr(IY);return t.elements=e,t}function J$(e,t,n){let r=new cr(e==="||"||e==="&&"?GY:jY);return r.operator=e,r.left=t,r.right=n,r}function vJ(e,t){let n=new cr(qY);return n.callee=e,n.arguments=t,n}function bJ(e,t,n){let r=new cr(UY);return r.test=e,r.consequent=t,r.alternate=n,r}function Zy(e){let t=new cr(U$);return t.name=e,t}function Cu(e){let t=new cr(WY);return t.value=e.value,t.raw=J.slice(e.start,e.end),e.regex&&(t.raw==="//"&&(t.raw="/(?:)/"),t.regex=e.regex),t}function Q$(e,t,n){let r=new cr(HY);return r.computed=e==="[",r.object=t,r.property=n,r.computed||(n.member=!0),r}function xJ(e){let t=new cr(VY);return t.properties=e,t}function K$(e,t,n){let r=new cr(XY);return r.key=t,r.value=n,r.kind=e,r}function wJ(e,t){let n=new cr(YY);return n.operator=e,n.argument=t,n.prefix=!0,n}function De(e,t){var n,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,(a,o)=>(Kd(o":case"<=":case">=":case"instanceof":case"in":t=7;break;case"<<":case">>":case">>>":t=8;break;case"+":case"-":t=9;break;case"*":case"/":case"%":t=11;break}return t}function BJ(){var e=Ne,t,n,r,i,a,o,l,s=th(),u;if(r=Ne,i=t3(r),i===0)return s;for(r.prec=i,mn(),t=[e,Ne],o=th(),a=[s,r,o];(i=t3(Ne))>0;){for(;a.length>2&&i<=a[a.length-2].prec;)o=a.pop(),l=a.pop().value,s=a.pop(),t.pop(),n=J$(l,s,o),a.push(n);r=mn(),r.prec=i,a.push(r),t.push(Ne),n=th(),a.push(n)}for(u=a.length-1,n=a[u],t.pop();u>1;)t.pop(),n=J$(a[u-1].value,a[u-2],n),u-=2;return n}function eo(){var e=BJ(),t,n;return Ue("?")&&(mn(),t=eo(),Tt(":"),n=eo(),e=bJ(e,t,n)),e}function tv(){let e=eo();if(Ue(","))throw Error(ku);return e}function zJ(e){J=e,z=0,Rt=J.length,Ne=null,Y$();let t=tv();if(Ne.type!==Au)throw Error("Unexpect token after expression.");return t}var NJ=sn({accessPathDepth:()=>El,accessPathWithDatum:()=>cv,accessWithDatumToUnescapedPath:()=>Re,compile:()=>Y8,contains:()=>he,deepEqual:()=>Cn,deleteNestedProperty:()=>rh,duplicate:()=>oe,entries:()=>sa,every:()=>ov,fieldIntersection:()=>uv,flatAccessWithDatum:()=>a3,getFirstDefined:()=>at,hasIntersection:()=>lv,hasProperty:()=>j,hash:()=>ye,internalField:()=>u3,isBoolean:()=>$u,isEmpty:()=>Ie,isEqual:()=>LJ,isInternalField:()=>c3,isNullOrFalse:()=>av,isNumeric:()=>ih,keys:()=>I,logicalExpr:()=>Su,mergeDeep:()=>r3,never:()=>n3,normalize:()=>jS,normalizeAngle:()=>Ou,omit:()=>Fn,pick:()=>xl,prefixGenerator:()=>sv,removePathFromField:()=>Al,replaceAll:()=>to,replacePathInField:()=>Wn,resetIdCounter:()=>IJ,setEqual:()=>i3,some:()=>wl,stringify:()=>Se,titleCase:()=>Mu,unescapeSingleQuoteAndPathDot:()=>o3,unique:()=>Ir,uniqueId:()=>s3,vals:()=>ut,varName:()=>Ve,version:()=>nae},1),RJ={version:"6.3.1"};function nv(e){return j(e,"or")}function rv(e){return j(e,"and")}function iv(e){return j(e,"not")}function nh(e,t){if(iv(e))nh(e.not,t);else if(rv(e))for(let n of e.and)nh(n,t);else if(nv(e))for(let n of e.or)nh(n,t);else t(e)}function bl(e,t){return iv(e)?{not:bl(e.not,t)}:rv(e)?{and:e.and.map(n=>bl(n,t))}:nv(e)?{or:e.or.map(n=>bl(n,t))}:t(e)}var oe=structuredClone;function n3(e){throw Error(e)}function xl(e,t){let n={};for(let r of t)st(e,r)&&(n[r]=e[r]);return n}function Fn(e,t){let n={...e};for(let r of t)delete n[r];return n}Set.prototype.toJSON=function(){return`Set(${[...this].map(e=>Se(e)).join(",")})`};function ye(e){if(He(e))return e;let t=se(e)?e:Se(e);if(t.length<250)return t;let n=0;for(let r=0;ro===0?a:`[${a}]`),i=r.map((a,o)=>r.slice(0,o+1).join(""));for(let a of i)t.add(a)}return t}function uv(e,t){return e===void 0||t===void 0?!0:lv(sv(e),sv(t))}function Ie(e){return I(e).length===0}var I=Object.keys,ut=Object.values,sa=Object.entries;function $u(e){return e===!0||e===!1}function Ve(e){let t=e.replace(/\W/g,"_");return(e.match(/^\d+/)?"_":"")+t}function Su(e,t){return iv(e)?`!(${Su(e.not,t)})`:rv(e)?`(${e.and.map(n=>Su(n,t)).join(") && (")})`:nv(e)?`(${e.or.map(n=>Su(n,t)).join(") || (")})`:t(e)}function rh(e,t){if(t.length===0)return!0;let n=t.shift();return n in e&&rh(e[n],t)&&delete e[n],Ie(e)}function Mu(e){return e.charAt(0).toUpperCase()+e.substr(1)}function cv(e,t="datum"){let n=Qa(e),r=[];for(let i=1;i<=n.length;i++){let a=`[${n.slice(0,i).map(we).join("][")}]`;r.push(`${t}${a}`)}return r.join(" && ")}function a3(e,t="datum"){return`${t}[${we(Qa(e).join("."))}]`}function Re(e){return`datum['${e.replaceAll("'","\\'")}']`}function o3(e){return e.replaceAll("\\'","'").replaceAll("\\.",".")}function PJ(e){return e.replace(/(\[|\]|\.|'|")/g,"\\$1")}function Wn(e){return`${Qa(e).map(PJ).join("\\.")}`}function to(e,t,n){return e.replace(new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),n)}function Al(e){return`${Qa(e).join(".")}`}function El(e){return e?Qa(e).length:0}function at(...e){return e.find(t=>t!==void 0)}var l3=42;function s3(e){let t=++l3;return e?String(e)+t:t}function IJ(){l3=42}function u3(e){return c3(e)?e:`__${e}`}function c3(e){return e.startsWith("__")}function Ou(e){if(e!==void 0)return(e%360+360)%360}function ih(e){return He(e)?!0:!isNaN(e)&&!isNaN(parseFloat(e))}var f3=Object.getPrototypeOf(structuredClone({}));function Cn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor.name!==t.constructor.name)return!1;let n,r;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Cn(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let a of e.entries())if(!t.has(a[0]))return!1;for(let a of e.entries())if(!Cn(a[1],t.get(a[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let a of e.entries())if(!t.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf!==f3.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString!==f3.toString)return e.toString()===t.toString();let i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let a=i[r];if(!Cn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Se(e){let t=[];return(function n(r){if(r!=null&&r.toJSON&&typeof r.toJSON=="function"&&(r=r.toJSON()),r===void 0)return;if(typeof r=="number")return isFinite(r)?`${r}`:"null";if(typeof r!="object")return JSON.stringify(r);let i,a;if(Array.isArray(r)){for(a="[",i=0;idh(e[t])?Ve(`_${t}_${sa(e[t])}`):Ve(`_${t}_${e[t]}`)).join("")}`}function je(e){return e===!0||ao(e)&&!e.binned}function Ft(e){return e==="binned"||ao(e)&&e.binned===!0}function ao(e){return Ae(e)}function dh(e){return j(e,"param")}function _3(e){switch(e){case pi:case mi:case vi:case gn:case qr:case Ur:case ha:case bi:case fa:case da:case yn:return 6;case pa:return 4;default:return 10}}function Ru(e){return j(e,"expr")}function Ct(e,{level:t}={level:0}){let n=I(e||{}),r={};for(let i of n)r[i]=t===0?$n(e[i]):Ct(e[i],{level:t-1});return r}function D3(e){let{anchor:t,frame:n,offset:r,orient:i,angle:a,limit:o,color:l,subtitleColor:s,subtitleFont:u,subtitleFontSize:c,subtitleFontStyle:f,subtitleFontWeight:d,subtitleLineHeight:h,subtitlePadding:p,...m}=e,g={...m,...l?{fill:l}:{}},y={...t?{anchor:t}:{},...n?{frame:n}:{},...r?{offset:r}:{},...i?{orient:i}:{},...a===void 0?{}:{angle:a},...o===void 0?{}:{limit:o}},v={...s?{subtitleColor:s}:{},...u?{subtitleFont:u}:{},...c?{subtitleFontSize:c}:{},...f?{subtitleFontStyle:f}:{},...d?{subtitleFontWeight:d}:{},...h?{subtitleLineHeight:h}:{},...p?{subtitlePadding:p}:{}};return{titleMarkConfig:g,subtitleMarkConfig:xl(e,["align","baseline","dx","dy","limit"]),nonMarkTitleProperties:y,subtitle:v}}function ya(e){return se(e)||X(e)&&se(e[0])}function Q(e){return j(e,"signal")}function oo(e){return j(e,"step")}function fQ(e){return X(e)?!1:j(e,"fields")&&!j(e,"data")}function dQ(e){return X(e)?!1:j(e,"fields")&&j(e,"data")}function Ai(e){return X(e)?!1:j(e,"field")&&j(e,"data")}var hQ=I({aria:1,description:1,ariaRole:1,ariaRoleDescription:1,blend:1,opacity:1,fill:1,fillOpacity:1,stroke:1,strokeCap:1,strokeWidth:1,strokeOpacity:1,strokeDash:1,strokeDashOffset:1,strokeJoin:1,strokeOffset:1,strokeMiterLimit:1,startAngle:1,endAngle:1,padAngle:1,innerRadius:1,outerRadius:1,size:1,shape:1,interpolate:1,tension:1,orient:1,align:1,baseline:1,text:1,dir:1,dx:1,dy:1,ellipsis:1,limit:1,radius:1,theta:1,angle:1,font:1,fontSize:1,fontWeight:1,fontStyle:1,lineBreak:1,lineHeight:1,cursor:1,href:1,tooltip:1,cornerRadius:1,cornerRadiusTopLeft:1,cornerRadiusTopRight:1,cornerRadiusBottomLeft:1,cornerRadiusBottomRight:1,aspect:1,width:1,height:1,url:1,smooth:1}),pQ={arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1},Av=["cornerRadius","cornerRadiusTopLeft","cornerRadiusTopRight","cornerRadiusBottomLeft","cornerRadiusBottomRight"],mQ=" \u2013 ";function F3(e){let t=X(e.condition)?e.condition.map(C3):C3(e.condition);return{...$n(e),condition:t}}function $n(e){if(Ru(e)){let{expr:t,...n}=e;return{signal:t,...n}}return e}function C3(e){if(Ru(e)){let{expr:t,...n}=e;return{signal:t,...n}}return e}function We(e){if(Ru(e)){let{expr:t,...n}=e;return{signal:t,...n}}return Q(e)?e:e===void 0?void 0:{value:e}}function gQ(e){return Q(e)?e.signal:we(e)}function $3(e){return Q(e)?e.signal:we(e.value)}function gr(e){return Q(e)?e.signal:e==null?null:we(e)}function yQ(e,t,n){for(let r of n){let i=Hr(r,t.markDef,t.config);i!==void 0&&(e[r]=We(i))}return e}function S3(e){return[].concat(e.type,e.style??[])}function Me(e,t,n,r={}){let{vgChannel:i,ignoreVgConfig:a}=r;return i&&j(t,i)?t[i]:t[e]===void 0?a&&(!i||i===e)?void 0:Hr(e,t,n,r):t[e]}function Hr(e,t,n,{vgChannel:r}={}){let i=Ev(e,t,n.style);return at(r?i:void 0,i,r?n[t.type][r]:void 0,n[t.type][e],r?n.mark[r]:n.mark[e])}function Ev(e,t,n){return M3(e,S3(t),n)}function M3(e,t,n){t=it(t);let r;for(let i of t){let a=n[i];j(a,e)&&(r=a[e])}return r}function O3(e,t){return it(e).reduce((n,r)=>(n.field.push(V(r,t)),n.order.push(r.sort??"ascending"),n),{field:[],order:[]})}function B3(e,t){let n=[...e];return t.forEach(r=>{for(let i of n)if(Cn(i,r))return;n.push(r)}),n}function z3(e,t){return Cn(e,t)||!t?e:e?[...it(e),...it(t)].join(", "):t}function N3(e,t){let n=e.value,r=t.value;if(n==null||r===null)return{explicit:e.explicit,value:null};if((ya(n)||Q(n))&&(ya(r)||Q(r)))return{explicit:e.explicit,value:z3(n,r)};if(ya(n)||Q(n))return{explicit:e.explicit,value:n};if(ya(r)||Q(r))return{explicit:e.explicit,value:r};if(!ya(n)&&!Q(n)&&!ya(r)&&!Q(r))return{explicit:e.explicit,value:B3(n,r)};throw Error("It should never reach here")}function kv(e){return`Invalid specification ${Se(e)}. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".`}var vQ='Autosize "fit" only works for single views and layered views.';function R3(e){return`${e=="width"?"Width":"Height"} "container" only works for single views and layered views.`}function T3(e){return`${e=="width"?"Width":"Height"} "container" only works well with autosize "fit" or "fit-${e=="width"?"x":"y"}".`}function L3(e){return e?`Dropping "fit-${e}" because spec has discrete ${vn(e)}.`:'Dropping "fit" because spec has discrete size.'}function _v(e){return`Unknown field for ${e}. Cannot calculate view size.`}function P3(e){return`Cannot project a selection on encoding channel "${e}", which has no field.`}function bQ(e,t){return`Cannot project a selection on encoding channel "${e}" as it uses an aggregate function ("${t}").`}function xQ(e){return`The "nearest" transform is not supported for ${e} marks.`}function I3(e){return`Selection not supported for ${e} yet.`}function wQ(e){return`Cannot find a selection named "${e}".`}var AQ="Scale bindings are currently only supported for scales with unbinned, continuous domains.",EQ="Sequntial scales are deprecated. The available quantitative scale type values are linear, log, pow, sqrt, symlog, time and utc",kQ="Legend bindings are only supported for selections over an individual field or encoding channel.";function _Q(e){return`Lookups can only be performed on selection parameters. "${e}" is a variable parameter.`}function DQ(e){return`Cannot define and lookup the "${e}" selection in the same view. Try moving the lookup into a second, layered view?`}var FQ="The same selection must be used to override scale domains in a layered view.",CQ='Interval selections should be initialized using "x", "y", "longitude", or "latitude" keys.';function $Q(e){return`Unknown repeated value "${e}".`}function j3(e){return`The "columns" property cannot be used when "${e}" has nested row/column.`}var SQ="Multiple timer selections in one unit spec are not supported. Ignoring all but the first.",Dv="Animation involving facet, layer, or concat is currently unsupported.";function MQ(e){return`A "field" or "encoding" must be specified when using a selection as a scale domain. Using "field": ${K(e)}.`}function OQ(e,t,n,r){return`${e.length?"Multiple ":"No "}matching ${K(t)} encoding found for selection ${K(n.param)}. Using "field": ${K(r)}.`}var BQ="Axes cannot be shared in concatenated or repeated views yet (https://github.com/vega/vega-lite/issues/2415).";function zQ(e){return`Unrecognized parse "${e}".`}function q3(e,t,n){return`An ancestor parsed field "${e}" as ${n} but a child wants to parse the field as ${t}.`}var NQ="Attempt to add the same child twice.";function RQ(e){return`Ignoring an invalid transform: ${Se(e)}.`}var TQ='If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.';function U3(e){return`Config.customFormatTypes is not true, thus custom format type and format for channel ${e} are dropped.`}function LQ(e){let{parentProjection:t,projection:n}=e;return`Layer's shared projection ${Se(t)} is overridden by a child projection ${Se(n)}.`}var PQ="Arc marks uses theta channel rather than angle, replacing angle with theta.";function IQ(e){return`${e}Offset dropped because ${e} is continuous`}function jQ(e,t,n){return`Channel ${e} is a ${t}. Converted to {value: ${Se(n)}}.`}function W3(e){return`Invalid field type "${e}".`}function qQ(e,t){return`Invalid field type "${e}" for aggregate: "${t}", using "quantitative" instead.`}function UQ(e){return`Invalid aggregation operator "${e}".`}function G3(e,t){let{fill:n,stroke:r}=t;return`Dropping color ${e} as the plot also has ${n&&r?"fill and stroke":n?"fill":"stroke"}.`}function WQ(e){return`Position range does not support relative band size for ${e}.`}function Fv(e,t){return`Dropping ${Se(e)} from channel "${t}" since it does not contain any data field, datum, value, or signal.`}var GQ="Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";function hh(e,t,n){return`${e} dropped as it is incompatible with "${t}".`}function HQ(e){return`${e}-encoding is dropped as ${e} is not a valid encoding channel.`}function VQ(e){return`${e} encoding should be discrete (ordinal / nominal / binned).`}function XQ(e){return`${e} encoding should be discrete (ordinal / nominal / binned) or use a discretizing scale (e.g. threshold).`}function YQ(e){return`Facet encoding dropped as ${e.join(" and ")} ${e.length>1?"are":"is"} also specified.`}function Cv(e,t){return`Using discrete channel "${e}" to encode "${t}" field can be misleading as it does not encode ${t==="ordinal"?"order":"magnitude"}.`}function JQ(e){return`The ${e} for range marks cannot be an expression`}function QQ(e,t){return`Line mark is for continuous lines and thus cannot be used with ${e&&t?"x2 and y2":e?"x2":"y2"}. We will use the rule mark (line segments) instead.`}function KQ(e,t){return`Specified orient "${e}" overridden with "${t}".`}function ZQ(e){return`Cannot use the scale property "${e}" with non-color channel.`}function eK(e){return`Cannot use the relative band size with ${e} scale.`}function tK(e){return`Using unaggregated domain with raw field has no effect (${Se(e)}).`}function nK(e){return`Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`}function rK(e){return`Unaggregated domain is currently unsupported for log scale (${Se(e)}).`}function iK(e){return`Cannot apply size to non-oriented mark "${e}".`}function aK(e,t,n){return`Channel "${e}" does not work with "${t}" scale. We are using "${n}" scale instead.`}function oK(e,t){return`FieldDef does not work with "${e}" scale. We are using "${t}" scale instead.`}function H3(e,t,n){return`${n}-scale's "${t}" is dropped as it does not work with ${e} scale.`}function V3(e){return`The step for "${e}" is dropped because the ${e==="width"?"x":"y"} is continuous.`}function lK(e,t,n,r){return`Conflicting ${t.toString()} property "${e.toString()}" (${Se(n)} and ${Se(r)}). Using ${Se(n)}.`}function sK(e,t,n,r){return`Conflicting ${t.toString()} property "${e.toString()}" (${Se(n)} and ${Se(r)}). Using the union of the two domains.`}function uK(e){return`Setting the scale to be independent for "${e}" means we also have to set the guide (axis or legend) to be independent.`}function cK(e){return`Dropping sort property ${Se(e)} as unioned domains only support boolean or op "count", "min", and "max".`}var X3="Domains that should be unioned has conflicting sort properties. Sort will be set to true.",fK="Detected faceted independent scales that union domain of multiple fields from different data sources. We will use the first field. The result view size may be incorrect.",dK="Detected faceted independent scales that union domain of the same fields from different source. We will assume that this is the same field from a different fork of the same data source. However, if this is not the case, the result view size may be incorrect.",hK="Detected faceted independent scales that union domain of multiple fields from the same data source. We will use the first field. The result view size may be incorrect.";function pK(e){return`Cannot stack "${e}" if there is already "${e}2".`}function mK(e){return`Stack is applied to a non-linear scale (${e}).`}function gK(e){return`Stacking is applied even though the aggregate function is non-summative ("${e}").`}function ph(e,t){return`Invalid ${e}: ${Se(t)}.`}function yK(e){return`Dropping day from datetime ${Se(e)} as day cannot be combined with other units.`}function vK(e,t){return`${t?"extent ":""}${t&&e?"and ":""}${e?"center ":""}${t&&e?"are ":"is "}not needed when data are aggregated.`}function bK(e,t,n){return`${e} is not usually used with ${t} for ${n}.`}function xK(e,t){return`Continuous axis should not have customized aggregation function ${e}; ${t} already agregates the axis.`}function Y3(e){return`1D error band does not support ${e}.`}function J3(e){return`Channel ${e} is required for "binned" bin.`}function wK(e){return`Channel ${e} should not be used with "binned" bin.`}function AK(e){return`Domain for ${e} is required for threshold scale.`}var Q3=EY(2),lo=Q3;function EK(e){return lo=e,lo}function kK(){return lo=Q3,lo}function $v(...e){lo.error(...e)}function q(...e){lo.warn(...e)}function _K(...e){lo.debug(...e)}function so(e){if(e&&Ae(e)){for(let t of Mv)if(j(e,t))return!0}return!1}var K3=["january","february","march","april","may","june","july","august","september","october","november","december"],DK=K3.map(e=>e.substr(0,3)),Z3=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],FK=Z3.map(e=>e.substr(0,3));function CK(e){if(ih(e)&&(e=+e),He(e))return e>4&&q(ph("quarter",e)),e-1;throw Error(ph("quarter",e))}function $K(e){if(ih(e)&&(e=+e),He(e))return e-1;{let t=e.toLowerCase(),n=K3.indexOf(t);if(n!==-1)return n;let r=t.substr(0,3),i=DK.indexOf(r);if(i!==-1)return i;throw Error(ph("month",e))}}function SK(e){if(ih(e)&&(e=+e),He(e))return e%7;{let t=e.toLowerCase(),n=Z3.indexOf(t);if(n!==-1)return n;let r=t.substr(0,3),i=FK.indexOf(r);if(i!==-1)return i;throw Error(ph("day",e))}}function Sv(e,t){let n=[];if(t&&e.day!==void 0&&I(e).length>1&&(q(yK(e)),e=oe(e),delete e.day),e.year===void 0?n.push(2012):n.push(e.year),e.month!==void 0){let r=t?$K(e.month):e.month;n.push(r)}else if(e.quarter!==void 0){let r=t?CK(e.quarter):e.quarter;n.push(He(r)?r*3:`${r}*3`)}else n.push(0);if(e.date!==void 0)n.push(e.date);else if(e.day!==void 0){let r=t?SK(e.day):e.day;n.push(He(r)?r+1:`${r}+1`)}else n.push(1);for(let r of["hours","minutes","seconds","milliseconds"]){let i=e[r];n.push(i===void 0?0:i)}return n}function uo(e){let t=Sv(e,!0).join(", ");return e.utc?`utc(${t})`:`datetime(${t})`}function MK(e){let t=Sv(e,!1).join(", ");return e.utc?`utc(${t})`:`datetime(${t})`}function OK(e){let t=Sv(e,!0);return e.utc?+new Date(Date.UTC(...t)):+new Date(...t)}var e5={year:1,quarter:1,month:1,week:1,day:1,dayofyear:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1},Mv=I(e5);function BK(e){return ce(e5,e)}function co(e){return Ae(e)?e.binned:t5(e)}function t5(e){return e==null?void 0:e.startsWith("binned")}function Ov(e){return e.startsWith("utc")}function zK(e){return e.substring(3)}var NK={"year-month":"%b %Y ","year-month-date":"%b %d, %Y "};function mh(e){return Mv.filter(t=>r5(e,t))}function n5(e){let t=mh(e);return t[t.length-1]}function r5(e,t){let n=e.indexOf(t);return!(n<0||n>0&&t==="seconds"&&e.charAt(n-1)==="i"||e.length>n+3&&t==="day"&&e.charAt(n+3)==="o"||n>0&&t==="year"&&e.charAt(n-1)==="f")}function RK(e,t,{end:n}={end:!1}){let r=cv(t),i=Ov(e)?"utc":"";function a(s){return s==="quarter"?`(${i}quarter(${r})-1)`:`${i}${s}(${r})`}let o,l={};for(let s of Mv)r5(e,s)&&(l[s]=a(s),o=s);return n&&(l[o]+="+1"),MK(l)}function i5(e){if(e)return`timeUnitSpecifier(${Se(mh(e))}, ${Se(NK)})`}function TK(e,t,n){if(!e)return;let r=i5(e);return`${n||Ov(e)?"utc":"time"}Format(${t}, ${r})`}function xt(e){if(!e)return;let t;return se(e)?t=t5(e)?{unit:e.substring(6),binned:!0}:{unit:e}:Ae(e)&&(t={...e,...e.unit?{unit:e.unit}:{}}),Ov(t.unit)&&(t.utc=!0,t.unit=zK(t.unit)),t}function LK(e){let{utc:t,...n}=xt(e);return n.unit?(t?"utc":"")+I(n).map(r=>Ve(`${r==="unit"?"":`_${r}_`}${n[r]}`)).join(""):`${t?"utc":""}timeunit${I(n).map(r=>Ve(`_${r}_${n[r]}`)).join("")}`}function a5(e,t=n=>n){let n=xt(e),r=n5(n.unit);if(r&&r!=="day"){let i={year:2001,month:1,date:1,hours:0,minutes:0,seconds:0,milliseconds:0},{step:a,part:o}=o5(r,n.step);return`${t(uo({...i,[o]:+i[o]+a}))} - ${t(uo(i))}`}}var PK={year:1,month:1,date:1,hours:1,minutes:1,seconds:1,milliseconds:1};function IK(e){return ce(PK,e)}function o5(e,t=1){if(IK(e))return{part:e,step:t};switch(e){case"day":case"dayofyear":return{part:"date",step:t};case"quarter":return{part:"month",step:t*3};case"week":return{part:"date",step:t*7}}}function jK(e){return j(e,"param")}function Bv(e){return!!(e!=null&&e.field)&&e.equal!==void 0}function zv(e){return!!(e!=null&&e.field)&&e.lt!==void 0}function Nv(e){return!!(e!=null&&e.field)&&e.lte!==void 0}function Rv(e){return!!(e!=null&&e.field)&&e.gt!==void 0}function Tv(e){return!!(e!=null&&e.field)&&e.gte!==void 0}function Lv(e){return!!(e!=null&&e.field&&(X(e.range)&&e.range.length===2||Q(e.range)))}function Pv(e){return!!(e!=null&&e.field)&&(X(e.oneOf)||X(e.in))}function qK(e){return!!(e!=null&&e.field)&&e.valid!==void 0}function l5(e){return Pv(e)||Bv(e)||Lv(e)||zv(e)||Rv(e)||Nv(e)||Tv(e)}function Vr(e,t){return Mh(e,{timeUnit:t,wrapTime:!0})}function UK(e,t){return e.map(n=>Vr(n,t))}function s5(e,t=!0){let{field:n}=e,{unit:r,binned:i}=xt(e.timeUnit)||{},a=V(e,{expr:"datum"}),o=r?`time(${i?a:RK(r,n)})`:a;if(Bv(e))return`${o}===${Vr(e.equal,r)}`;if(zv(e)){let l=e.lt;return`${o}<${Vr(l,r)}`}else if(Rv(e)){let l=e.gt;return`${o}>${Vr(l,r)}`}else if(Nv(e)){let l=e.lte;return`${o}<=${Vr(l,r)}`}else if(Tv(e)){let l=e.gte;return`${o}>=${Vr(l,r)}`}else{if(Pv(e))return`indexof([${UK(e.oneOf,r).join(",")}], ${o}) !== -1`;if(qK(e))return gh(o,e.valid);if(Lv(e)){let{range:l}=Ct(e),s=Q(l)?{signal:`${l.signal}[0]`}:l[0],u=Q(l)?{signal:`${l.signal}[1]`}:l[1];if(s!==null&&u!==null&&t)return`inrange(${o}, [${Vr(s,r)}, ${Vr(u,r)}])`;let c=[];return s!==null&&c.push(`${o} >= ${Vr(s,r)}`),u!==null&&c.push(`${o} <= ${Vr(u,r)}`),c.length>0?c.join(" && "):"true"}}throw Error(`Invalid field predicate: ${Se(e)}`)}function gh(e,t=!0){return t?`isValid(${e}) && isFinite(+${e})`:`!isValid(${e}) || !isFinite(+${e})`}function WK(e){return l5(e)&&e.timeUnit?{...e,timeUnit:xt(e.timeUnit)}:e}var Tu={quantitative:"quantitative",ordinal:"ordinal",temporal:"temporal",nominal:"nominal",geojson:"geojson"};function GK(e){return e==="quantitative"||e==="temporal"}function u5(e){return e==="ordinal"||e==="nominal"}var fo=Tu.quantitative,Iv=Tu.ordinal,Fl=Tu.temporal,jv=Tu.nominal,Cl=Tu.geojson;function HK(e){if(e)switch(e=e.toLowerCase(),e){case"q":case fo:return"quantitative";case"t":case Fl:return"temporal";case"o":case Iv:return"ordinal";case"n":case jv:return"nominal";case Cl:return"geojson"}}var $t={LINEAR:"linear",LOG:"log",POW:"pow",SQRT:"sqrt",TIME:"time",UTC:"utc",POINT:"point",BAND:"band"},qv={linear:"numeric",log:"numeric",pow:"numeric",sqrt:"numeric",symlog:"numeric",identity:"numeric",sequential:"numeric",time:"time",utc:"time",ordinal:"ordinal","bin-ordinal":"bin-ordinal",point:"ordinal-position",band:"ordinal-position",quantile:"discretizing",quantize:"discretizing",threshold:"discretizing"};function VK(e,t){let n=qv[e],r=qv[t];return n===r||n==="ordinal-position"&&r==="time"||r==="ordinal-position"&&n==="time"}var XK={linear:0,log:1,pow:1,sqrt:1,symlog:1,identity:1,sequential:1,time:0,utc:0,point:10,band:11,ordinal:0,"bin-ordinal":0,quantile:0,quantize:0,threshold:0};function c5(e){return XK[e]}var f5=new Set(["linear","log","pow","sqrt","symlog"]),d5=new Set([...f5,"time","utc"]);function h5(e){return f5.has(e)}var p5=new Set(["quantile","quantize","threshold"]),YK=new Set([...d5,...p5,"sequential","identity"]),JK=new Set(["ordinal","bin-ordinal","point","band"]);function wt(e){return JK.has(e)}function yr(e){return YK.has(e)}function Xr(e){return d5.has(e)}function $l(e){return p5.has(e)}var QK={pointPadding:.5,barBandPaddingInner:.1,rectBandPaddingInner:0,tickBandPaddingInner:.25,bandWithNestedOffsetPaddingInner:.2,bandWithNestedOffsetPaddingOuter:.2,minBandSize:2,minFontSize:8,maxFontSize:40,minOpacity:.3,maxOpacity:.8,minSize:4,minStrokeWidth:1,maxStrokeWidth:4,quantileCount:4,quantizeCount:4,zero:!0,framesPerSecond:2,animationDuration:5};function KK(e){return!se(e)&&j(e,"name")}function m5(e){return j(e,"param")}function ZK(e){return j(e,"unionWith")}function eZ(e){return Ae(e)&&"field"in e}var{type:Vle,domain:Xle,range:Yle,rangeMax:Jle,rangeMin:Qle,scheme:Kle,...tZ}={type:1,domain:1,domainMax:1,domainMin:1,domainMid:1,domainRaw:1,align:1,range:1,rangeMax:1,rangeMin:1,scheme:1,bins:1,reverse:1,round:1,clamp:1,nice:1,base:1,exponent:1,constant:1,interpolate:1,zero:1,padding:1,paddingInner:1,paddingOuter:1},nZ=I(tZ);function Uv(e,t){switch(t){case"type":case"domain":case"reverse":case"range":return!0;case"scheme":case"interpolate":return!["point","band","identity"].includes(e);case"bins":return!["point","band","identity","ordinal"].includes(e);case"round":return Xr(e)||e==="band"||e==="point";case"padding":case"rangeMin":case"rangeMax":return Xr(e)||["point","band"].includes(e);case"paddingOuter":case"align":return["point","band"].includes(e);case"paddingInner":return e==="band";case"domainMax":case"domainMid":case"domainMin":case"domainRaw":case"clamp":return Xr(e);case"nice":return Xr(e)||e==="quantize"||e==="threshold";case"exponent":return e==="pow";case"base":return e==="log";case"constant":return e==="symlog";case"zero":return yr(e)&&!he(["log","time","utc","threshold","quantile"],e)}}function g5(e,t){switch(t){case"interpolate":case"scheme":case"domainMid":return Dl(e)?void 0:ZQ(t);case"align":case"type":case"bins":case"domain":case"domainMax":case"domainMin":case"domainRaw":case"range":case"base":case"exponent":case"constant":case"nice":case"padding":case"paddingInner":case"paddingOuter":case"rangeMax":case"rangeMin":case"reverse":case"round":case"clamp":case"zero":return}}function rZ(e,t){return he([Iv,jv],t)?e===void 0||wt(e):t===Fl?he([$t.TIME,$t.UTC,void 0],e):t===fo?h5(e)||$l(e)||e===void 0:!0}function iZ(e,t,n=!1){if(!Gr(e))return!1;switch(e){case Xe:case bt:case ua:case kl:case Gn:case dr:return Xr(t)||t==="band"?!0:t==="point"?!n:!1;case ca:return he(["linear","band"],t);case vi:case ha:case bi:case fa:case da:case no:return Xr(t)||$l(t)||he(["band","point","ordinal"],t);case gn:case qr:case Ur:return t!=="band";case pa:case yn:return t==="ordinal"||$l(t)}}function aZ(e){return Ae(e)&&"value"in e}var rn={arc:"arc",area:"area",bar:"bar",image:"image",line:"line",point:"point",rect:"rect",rule:"rule",text:"text",tick:"tick",trail:"trail",circle:"circle",square:"square",geoshape:"geoshape"},y5=rn.arc,yh=rn.area,vh=rn.bar,oZ=rn.image,bh=rn.line,xh=rn.point,lZ=rn.rect,wh=rn.rule,v5=rn.text,Wv=rn.tick,sZ=rn.trail,Gv=rn.circle,Hv=rn.square,b5=rn.geoshape;function va(e){return["line","area","trail"].includes(e)}function Lu(e){return["rect","bar","image","arc","tick"].includes(e)}var uZ=new Set(I(rn));function Yr(e){return j(e,"type")}var cZ=["stroke","strokeWidth","strokeDash","strokeDashOffset","strokeOpacity","strokeJoin","strokeMiterLimit"],fZ=["fill","fillOpacity"],dZ=[...cZ,...fZ],x5=I({color:1,filled:1,invalid:1,order:1,radius2:1,theta2:1,timeUnitBandSize:1,timeUnitBandPosition:1}),Vv=["binSpacing","continuousBandSize","discreteBandSize","minBandSize"],hZ={area:["line","point"],bar:Vv,rect:Vv,line:["point"],tick:["bandSize","thickness",...Vv]},pZ={color:"#4c78a8",invalid:"break-paths-show-path-domains",timeUnitBandSize:1},w5=I({mark:1,arc:1,area:1,bar:1,circle:1,image:1,line:1,point:1,rect:1,rule:1,square:1,text:1,tick:1,trail:1,geoshape:1});function ho(e){return j(e,"band")}var mZ={horizontal:["cornerRadiusTopRight","cornerRadiusBottomRight"],vertical:["cornerRadiusTopLeft","cornerRadiusTopRight"]},Xv={binSpacing:0,continuousBandSize:5,minBandSize:.25,timeUnitBandPosition:.5},gZ={...Xv,binSpacing:1},yZ={...Xv,thickness:1};function vZ(e){return Yr(e)?e.type:e}function A5(e,{isPath:t}){return e===void 0||e==="break-paths-show-path-domains"?t?"break-paths-show-domains":"filter":e===null?"show":e}function Yv({markDef:e,config:t,scaleChannel:n,scaleType:r,isCountAggregate:i}){var o,l;if(!r||!yr(r)||i)return"always-valid";let a=A5(Me("invalid",e,t),{isPath:va(e.type)});return((l=(o=t.scale)==null?void 0:o.invalid)==null?void 0:l[n])===void 0?a:"show"}function bZ(e){return e==="break-paths-filter-domains"||e==="break-paths-show-domains"}function E5({scaleName:e,scale:t,mode:n}){let r=`domain('${e}')`;if(!t||!e)return;let i=`${r}[0]`,a=`peek(${r})`,o=t.domainHasZero();return o==="definitely"?{scale:e,value:0}:o==="maybe"?{signal:`scale('${e}', inrange(0, ${r}) ? 0 : ${n==="zeroOrMin"?i:a})`}:{signal:`scale('${e}', ${n==="zeroOrMin"?i:a})`}}function k5({scaleChannel:e,channelDef:t,scale:n,scaleName:r,markDef:i,config:a}){var u;let o=n==null?void 0:n.get("type"),l=xr(t),s=Yv({scaleChannel:e,markDef:i,config:a,scaleType:o,isCountAggregate:fh(l==null?void 0:l.aggregate)});if(l&&s==="show"){let c=((u=a.scale.invalid)==null?void 0:u[e])??"zero-or-min";return{test:gh(V(l,{expr:"datum"}),!1),...xZ(c,n,r)}}}function xZ(e,t,n){if(aZ(e)){let{value:r}=e;return Q(r)?{signal:r.signal}:{value:r}}return E5({scale:t,scaleName:n,mode:"zeroOrMin"})}function Jv(e){let{channel:t,channelDef:n,markDef:r,scale:i,scaleName:a,config:o}=e,l=io(t),s=Qv(e),u=k5({scaleChannel:l,channelDef:n,scale:i,scaleName:a,markDef:r,config:o});return u===void 0?s:[u,s]}function wZ(e){let{datum:t}=e;return so(t)?uo(t):`${Se(t)}`}function po(e,t,n,r){let i={};if(t&&(i.scale=t),Jr(e)){let{datum:a}=e;so(a)?i.signal=uo(a):Q(a)?i.signal=a.signal:Ru(a)?i.signal=a.expr:i.value=a}else i.field=V(e,n);if(r){let{offset:a,band:o}=r;a&&(i.offset=a),o&&(i.band=o)}return i}function Ah({scaleName:e,fieldOrDatumDef:t,fieldOrDatumDef2:n,offset:r,startSuffix:i,endSuffix:a="end",bandPosition:o=.5}){let l=!Q(o)&&0{switch(t.fieldTitle){case"plain":return e.field;case"functional":return NZ(e);default:return zZ(e,t)}},j5=I5;function q5(e){j5=e}function RZ(){q5(I5)}function Ol(e,t,{allowDisabling:n,includeDefault:r=!0}){var l;let i=(l=nb(e))==null?void 0:l.title;if(!U(e))return i??e.title;let a=e,o=r?rb(a,t):void 0;return n?at(i,a.title,o):i??a.title??o}function nb(e){if(Ml(e)&&e.axis)return e.axis;if(L5(e)&&e.legend)return e.legend;if(eb(e)&&e.header)return e.header}function rb(e,t){return j5(e,t)}function Ch(e){if(P5(e)){let{format:t,formatType:n}=e;return{format:t,formatType:n}}else{let{format:t,formatType:n}=nb(e)??{};return{format:t,formatType:n}}}function TZ(e,t){var a;switch(t){case"latitude":case"longitude":return"quantitative";case"row":case"column":case"facet":case"shape":case"strokeDash":return"nominal";case"order":return"ordinal"}if(tb(e)&&X(e.sort))return"ordinal";let{aggregate:n,bin:r,timeUnit:i}=e;if(i)return"temporal";if(r||n&&!ga(n)&&!wi(n))return"quantitative";if(go(e)&&((a=e.scale)!=null&&a.type))switch(qv[e.scale.type]){case"numeric":case"discretizing":return"quantitative";case"time":return"temporal"}return"nominal"}function xr(e){if(U(e))return e;if(_h(e))return e.condition}function pt(e){if(le(e))return e;if(Uu(e))return e.condition}function U5(e,t,n,r={}){return se(e)||He(e)||wu(e)?(q(jQ(t,se(e)?"string":He(e)?"number":"boolean",e)),{value:e}):le(e)?$h(e,t,n,r):Uu(e)?{...e,condition:$h(e.condition,t,n,r)}:e}function $h(e,t,n,r){if(P5(e)){let{format:i,formatType:a,...o}=e;if(mo(a)&&!n.customFormatTypes)return q(U3(t)),$h(o,t,n,r)}else{let i=Ml(e)?"axis":L5(e)?"legend":eb(e)?"header":null;if(i&&e[i]){let{format:a,formatType:o,...l}=e[i];if(mo(o)&&!n.customFormatTypes)return q(U3(t)),$h({...e,[i]:l},t,n,r)}}return U(e)?ib(e,t,r):LZ(e)}function LZ(e){let t=e.type;if(t)return e;let{datum:n}=e;return t=He(n)?"quantitative":se(n)?"nominal":so(n)?"temporal":void 0,{...e,type:t}}function ib(e,t,{compositeMark:n=!1}={}){let{aggregate:r,timeUnit:i,bin:a,field:o}=e,l={...e};if(!n&&r&&!wv(r)&&!ga(r)&&!wi(r)&&(q(UQ(r)),delete l.aggregate),i&&(l.timeUnit=xt(i)),o&&(l.field=`${o}`),je(a)&&(l.bin=Sh(a,t)),Ft(a)&&!ot(t)&&q(wK(t)),an(l)){let{type:s}=l,u=HK(s);s!==u&&(l.type=u),s!=="quantitative"&&fh(r)&&(q(qQ(s,r)),l.type="quantitative")}else v3(t)||(l.type=TZ(l,t));if(an(l)){let{compatible:s,warning:u}=PZ(l,t)||{};s===!1&&q(u)}if(tb(l)&&se(l.sort)){let{sort:s}=l;if(M5(s))return{...l,sort:{encoding:s}};let u=s.substring(1);if(s.charAt(0)==="-"&&M5(u))return{...l,sort:{encoding:u,order:"descending"}}}if(eb(l)){let{header:s}=l;if(s){let{orient:u,...c}=s;if(u)return{...l,header:{...c,labelOrient:s.labelOrient||u,titleOrient:s.titleOrient||u}}}}return l}function Sh(e,t){return wu(e)?{maxbins:_3(t)}:e==="binned"?{binned:!0}:!e.maxbins&&!e.step?{...e,maxbins:_3(t)}:e}var Bl={compatible:!0};function PZ(e,t){let n=e.type;if(n==="geojson"&&t!=="shape")return{compatible:!1,warning:`Channel ${t} should not be used with a geojson data.`};switch(t){case pi:case mi:case ah:return Fh(e)?Bl:{compatible:!1,warning:VQ(t)};case Xe:case bt:case ua:case kl:case gn:case qr:case Ur:case Bu:case zu:case oh:case ro:case lh:case sh:case no:case Gn:case dr:case uh:return Bl;case pr:case Hn:case hr:case mr:return n===fo?Bl:{compatible:!1,warning:`Channel ${t} should be used with a quantitative field only, not ${e.type} field.`};case bi:case fa:case da:case ha:case vi:case yi:case gi:case fr:case jr:case ca:return n==="nominal"&&!e.sort?{compatible:!1,warning:`Channel ${t} should not be used with an unsorted discrete field.`}:Bl;case yn:case pa:return!Fh(e)&&!OZ(e)?{compatible:!1,warning:XQ(t)}:Bl;case _l:return e.type==="nominal"&&!("sort"in e)?{compatible:!1,warning:"Channel order is inappropriate for nominal field, which has no inherent order."}:Bl}}function zl(e){let{formatType:t}=Ch(e);return t==="time"||!t&&IZ(e)}function IZ(e){return e&&(e.type==="temporal"||U(e)&&!!e.timeUnit)}function Mh(e,{timeUnit:t,type:n,wrapTime:r,undefinedIfExprNotRequired:i}){var s;let a=t&&((s=xt(t))==null?void 0:s.unit),o=a||n==="temporal",l;return Ru(e)?l=e.expr:Q(e)?l=e.signal:so(e)?(o=!0,l=uo(e)):(se(e)||He(e))&&o&&(l=`datetime(${Se(e)})`,BK(a)&&(He(e)&&e<1e4||se(e)&&isNaN(Date.parse(e)))&&(l=uo({[a]:e}))),l?r&&o?`time(${l})`:l:i?void 0:Se(e)}function W5(e,t){let{type:n}=e;return t.map(r=>{let i=Mh(r,{timeUnit:U(e)&&!co(e.timeUnit)?e.timeUnit:void 0,type:n,undefinedIfExprNotRequired:!0});return i===void 0?r:{signal:i}})}function Wu(e,t){return je(e.bin)?Gr(t)&&["ordinal","nominal"].includes(e.type):(console.warn("Only call this method for binned field defs."),!1)}var G5={labelAlign:{part:"labels",vgProp:"align"},labelBaseline:{part:"labels",vgProp:"baseline"},labelColor:{part:"labels",vgProp:"fill"},labelFont:{part:"labels",vgProp:"font"},labelFontSize:{part:"labels",vgProp:"fontSize"},labelFontStyle:{part:"labels",vgProp:"fontStyle"},labelFontWeight:{part:"labels",vgProp:"fontWeight"},labelOpacity:{part:"labels",vgProp:"opacity"},labelOffset:null,labelPadding:null,gridColor:{part:"grid",vgProp:"stroke"},gridDash:{part:"grid",vgProp:"strokeDash"},gridDashOffset:{part:"grid",vgProp:"strokeDashOffset"},gridOpacity:{part:"grid",vgProp:"opacity"},gridWidth:{part:"grid",vgProp:"strokeWidth"},tickColor:{part:"ticks",vgProp:"stroke"},tickDash:{part:"ticks",vgProp:"strokeDash"},tickDashOffset:{part:"ticks",vgProp:"strokeDashOffset"},tickOpacity:{part:"ticks",vgProp:"opacity"},tickSize:null,tickWidth:{part:"ticks",vgProp:"strokeWidth"}};function Gu(e){return e==null?void 0:e.condition}var H5=["domain","grid","labels","ticks","title"],jZ={grid:"grid",gridCap:"grid",gridColor:"grid",gridDash:"grid",gridDashOffset:"grid",gridOpacity:"grid",gridScale:"grid",gridWidth:"grid",orient:"main",bandPosition:"both",aria:"main",description:"main",domain:"main",domainCap:"main",domainColor:"main",domainDash:"main",domainDashOffset:"main",domainOpacity:"main",domainWidth:"main",format:"main",formatType:"main",labelAlign:"main",labelAngle:"main",labelBaseline:"main",labelBound:"main",labelColor:"main",labelFlush:"main",labelFlushOffset:"main",labelFont:"main",labelFontSize:"main",labelFontStyle:"main",labelFontWeight:"main",labelLimit:"main",labelLineHeight:"main",labelOffset:"main",labelOpacity:"main",labelOverlap:"main",labelPadding:"main",labels:"main",labelSeparation:"main",maxExtent:"main",minExtent:"main",offset:"both",position:"main",tickCap:"main",tickColor:"main",tickDash:"main",tickDashOffset:"main",tickMinStep:"both",tickOffset:"both",tickOpacity:"main",tickRound:"both",ticks:"main",tickSize:"main",tickWidth:"both",title:"main",titleAlign:"main",titleAnchor:"main",titleAngle:"main",titleBaseline:"main",titleColor:"main",titleFont:"main",titleFontSize:"main",titleFontStyle:"main",titleFontWeight:"main",titleLimit:"main",titleLineHeight:"main",titleOpacity:"main",titlePadding:"main",titleX:"main",titleY:"main",encode:"both",scale:"both",tickBand:"both",tickCount:"both",tickExtra:"both",translate:"both",values:"both",zindex:"both"},V5={orient:1,aria:1,bandPosition:1,description:1,domain:1,domainCap:1,domainColor:1,domainDash:1,domainDashOffset:1,domainOpacity:1,domainWidth:1,format:1,formatType:1,grid:1,gridCap:1,gridColor:1,gridDash:1,gridDashOffset:1,gridOpacity:1,gridWidth:1,labelAlign:1,labelAngle:1,labelBaseline:1,labelBound:1,labelColor:1,labelFlush:1,labelFlushOffset:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelLineHeight:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labels:1,labelSeparation:1,maxExtent:1,minExtent:1,offset:1,position:1,tickBand:1,tickCap:1,tickColor:1,tickCount:1,tickDash:1,tickDashOffset:1,tickExtra:1,tickMinStep:1,tickOffset:1,tickOpacity:1,tickRound:1,ticks:1,tickSize:1,tickWidth:1,title:1,titleAlign:1,titleAnchor:1,titleAngle:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titlePadding:1,titleX:1,titleY:1,translate:1,values:1,zindex:1},qZ={...V5,style:1,labelExpr:1,encoding:1};function X5(e){return st(qZ,e)}var Y5=I({axis:1,axisBand:1,axisBottom:1,axisDiscrete:1,axisLeft:1,axisPoint:1,axisQuantitative:1,axisRight:1,axisTemporal:1,axisTop:1,axisX:1,axisXBand:1,axisXDiscrete:1,axisXPoint:1,axisXQuantitative:1,axisXTemporal:1,axisY:1,axisYBand:1,axisYDiscrete:1,axisYPoint:1,axisYQuantitative:1,axisYTemporal:1});function ki(e){return j(e,"mark")}var Oh=class{constructor(e,t){N(this,"name");N(this,"run");this.name=e,this.run=t}hasMatchingType(e){return ki(e)?vZ(e.mark)===this.name:!1}};function yo(e,t){let n=e==null?void 0:e[t];return n?X(n)?wl(n,r=>!!r.field):U(n)||_h(n):!1}function J5(e,t){let n=e==null?void 0:e[t];return n?X(n)?wl(n,r=>!!r.field):U(n)||Jr(n)||Uu(n):!1}function Q5(e,t){if(ot(t)){let n=e[t];if((U(n)||Jr(n))&&(u5(n.type)||U(n)&&n.timeUnit))return J5(e,pv(t))}return!1}function K5(e){return wl(UJ,t=>{if(yo(e,t)){let n=e[t];if(X(n))return wl(n,r=>!!r.aggregate);{let r=xr(n);return r&&!!r.aggregate}}return!1})}function Z5(e,t){let n=[],r=[],i=[],a=[],o={};return ab(e,(l,s)=>{var u;if(U(l)){let{field:c,aggregate:f,bin:d,timeUnit:h,...p}=l;if(f||h||d){let m=(u=nb(l))==null?void 0:u.title,g=V(l,{forAs:!0}),y={...m?[]:{title:Ol(l,t,{allowDisabling:!0})},...p,field:g};if(f){let v;if(ga(f)?(v="argmax",g=V({op:"argmax",field:f.argmax},{forAs:!0}),y.field=`${g}.${c}`):wi(f)?(v="argmin",g=V({op:"argmin",field:f.argmin},{forAs:!0}),y.field=`${g}.${c}`):f!=="boxplot"&&f!=="errorbar"&&f!=="errorband"&&(v=f),v){let b={op:v,as:g};c&&(b.field=c),a.push(b)}}else if(n.push(g),an(l)&&je(d)){if(r.push({bin:d,field:c,as:g}),n.push(V(l,{binSuffix:"end"})),Wu(l,s)&&n.push(V(l,{binSuffix:"range"})),ot(s)){let v={field:`${g}_end`};o[`${s}2`]=v}y.bin="binned",v3(s)||(y.type=fo)}else if(h&&!co(h)){i.push({timeUnit:h,field:c,as:g});let v=an(l)&&l.type!==Fl&&"time";v&&(s===Bu||s===ro?y.formatType=v:eQ(s)?y.legend={formatType:v,...y.legend}:ot(s)&&(y.axis={formatType:v,...y.axis}))}o[s]=y}else n.push(c),o[s]=e[s]}else o[s]=e[s]}),{bins:r,timeUnits:i,aggregate:a,groupby:n,encoding:o}}function UZ(e,t,n){let r=nQ(t,n);if(r){if(r==="binned"){let i=e[t===fr?Xe:bt];return!!(U(i)&&U(e[t])&&Ft(i.bin))}}else return!1;return!0}function WZ(e,t,n,r){var a;let i={};for(let o of I(e))y3(o)||q(HQ(o));for(let o of YJ){if(!e[o])continue;let l=e[o];if(Nu(o)){let s=XJ(o),u=i[s];if(U(u)&&GK(u.type)&&U(l)&&!u.timeUnit){q(IQ(s));continue}}if(o==="angle"&&t==="arc"&&!e.theta&&(q(PQ),o=Gn),!UZ(e,o,t)){q(hh(o,t));continue}if(o===vi&&t==="line"&&((a=xr(e[o]))!=null&&a.aggregate)){q(GQ);continue}if(o===gn&&(n?"fill"in e:"stroke"in e)){q(G3("encoding",{fill:"fill"in e,stroke:"stroke"in e}));continue}if(o===zu||o===_l&&!X(l)&&!br(l)||o===ro&&X(l)){if(l){if(o===_l){let s=e[o];if(R5(s)){i[o]=s;continue}}i[o]=it(l).reduce((s,u)=>(U(u)?s.push(ib(u,o)):q(Fv(u,o)),s),[])}}else{if(o===ro&&l===null)i[o]=null;else if(!U(l)&&!Jr(l)&&!br(l)&&!qu(l)&&!Q(l)){q(Fv(l,o));continue}i[o]=U5(l,o,r)}}return i}function Bh(e,t){let n={};for(let r of I(e))n[r]=U5(e[r],r,t,{compositeMark:!0});return n}function GZ(e){let t=[];for(let n of I(e))if(yo(e,n)){let r=e[n],i=it(r);for(let a of i)U(a)?t.push(a):_h(a)&&t.push(a.condition)}return t}function ab(e,t,n){if(e)for(let r of I(e)){let i=e[r];if(X(i))for(let a of i)t.call(n,a,r);else t.call(n,i,r)}}function HZ(e,t,n,r){return e?I(e).reduce((i,a)=>{let o=e[a];return X(o)?o.reduce((l,s)=>t.call(r,l,s,a),i):t.call(r,i,o,a)},n):n}function eS(e,t){return I(t).reduce((n,r)=>{switch(r){case Xe:case bt:case lh:case uh:case sh:case fr:case jr:case ua:case kl:case Gn:case yi:case dr:case gi:case ca:case hr:case pr:case mr:case Hn:case Bu:case yn:case no:case ro:return n;case _l:if(e==="line"||e==="trail")return n;case zu:case oh:{let i=t[r];if(X(i)||U(i))for(let a of it(i))a.aggregate||n.push(V(a,{}));return n}case vi:if(e==="trail")return n;case gn:case qr:case Ur:case bi:case fa:case da:case pa:case ha:{let i=xr(t[r]);return i&&!i.aggregate&&n.push(V(i,{})),n}}},[])}function VZ(e){let{tooltip:t,...n}=e;if(!t)return{filteredEncoding:n};let r,i;if(X(t)){for(let a of t)a.aggregate?(r||(r=[]),r.push(a)):(i||(i=[]),i.push(a));r&&(n.tooltip=r)}else t.aggregate?n.tooltip=t:i=t;return X(i)&&i.length===1&&(i=i[0]),{customTooltipWithoutAggregatedField:i,filteredEncoding:n}}function ob(e,t,n,r=!0){if("tooltip"in n)return{tooltip:n.tooltip};let i=e.map(({fieldPrefix:o,titlePrefix:l})=>{let s=r?` of ${lb(t)}`:"";return{field:o+t.field,type:t.type,title:Q(l)?{signal:`${l}"${escape(s)}"`}:l+s}}),a=GZ(n).map(SZ);return{tooltip:[...i,...Ir(a,ye)]}}function lb(e){let{title:t,field:n}=e;return at(t,n)}function sb(e,t,n,r,i){let{scale:a,axis:o}=n;return({partName:l,mark:s,positionPrefix:u,endPositionPrefix:c=void 0,extraEncoding:f={}})=>{let d=lb(n);return tS(e,l,i,{mark:s,encoding:{[t]:{field:`${u}_${n.field}`,type:n.type,...d===void 0?{}:{title:d},...a===void 0?{}:{scale:a},...o===void 0?{}:{axis:o}},...se(c)?{[`${t}2`]:{field:`${c}_${n.field}`}}:{},...r,...f}})}}function tS(e,t,n,r){let{clip:i,color:a,opacity:o}=e,l=e.type;return e[t]||e[t]===void 0&&n[t]?[{...r,mark:{...n[t],...i?{clip:i}:{},...a?{color:a}:{},...o?{opacity:o}:{},...Yr(r.mark)?r.mark:{type:r.mark},style:`${l}-${String(t)}`,...wu(e[t])?{}:e[t]}}]:[]}function nS(e,t,n){let{encoding:r}=e,i=t==="vertical"?"y":"x",a=r[i],o=r[`${i}2`],l=r[`${i}Error`],s=r[`${i}Error2`];return{continuousAxisChannelDef:zh(a,n),continuousAxisChannelDef2:zh(o,n),continuousAxisChannelDefError:zh(l,n),continuousAxisChannelDefError2:zh(s,n),continuousAxis:i}}function zh(e,t){if(e!=null&&e.aggregate){let{aggregate:n,...r}=e;return n!==t&&q(xK(n,t)),r}else return e}function rS(e,t){let{mark:n,encoding:r}=e,{x:i,y:a}=r;if(Yr(n)&&n.orient)return n.orient;if(xa(i)){if(xa(a)){let o=U(i)&&i.aggregate,l=U(a)&&a.aggregate;if(!o&&l===t)return"vertical";if(!l&&o===t)return"horizontal";if(o===t&&l===t)throw Error("Both x and y cannot have aggregate");return zl(a)&&!zl(i)?"horizontal":"vertical"}return"horizontal"}else{if(xa(a))return"vertical";throw Error(`Need a valid continuous axis for ${t}s`)}}var Nh="boxplot",XZ=["box","median","outliers","rule","ticks"],YZ=new Oh(Nh,aS);function iS(e){return He(e)?"tukey":e}function aS(e,{config:t}){e={...e,encoding:Bh(e.encoding,t)};let{mark:n,encoding:r,params:i,projection:a,...o}=e,l=Yr(n)?n:{type:n};i&&q(I3("boxplot"));let s=l.extent??t.boxplot.extent,u=Me("size",l,t),c=l.invalid,f=iS(s),{bins:d,timeUnits:h,transform:p,continuousAxisChannelDef:m,continuousAxis:g,groupby:y,aggregate:v,encodingWithoutContinuousAxis:b,ticksOrient:w,boxOrient:A,customTooltipWithoutAggregatedField:E}=JZ(e,s,t),x=Al(m.field),{color:k,size:_,...F}=b,$=k4=>sb(l,g,m,k4,t.boxplot),R=$(F),C=$(b),M=(Ae(t.boxplot.box)?t.boxplot.box.color:t.mark.color)||"#4c78a8",D=$({...F,..._?{size:_}:{},color:{condition:{test:`${Re(`lower_box_${m.field}`)} >= ${Re(`upper_box_${m.field}`)}`,...k||{value:M}}}}),S=ob([{fieldPrefix:f==="min-max"?"upper_whisker_":"max_",titlePrefix:"Max"},{fieldPrefix:"upper_box_",titlePrefix:"Q3"},{fieldPrefix:"mid_box_",titlePrefix:"Median"},{fieldPrefix:"lower_box_",titlePrefix:"Q1"},{fieldPrefix:f==="min-max"?"lower_whisker_":"min_",titlePrefix:"Min"}],m,b),L={type:"tick",color:"black",opacity:1,orient:w,invalid:c,aria:!1},W=f==="min-max"?S:ob([{fieldPrefix:"upper_whisker_",titlePrefix:"Upper Whisker"},{fieldPrefix:"lower_whisker_",titlePrefix:"Lower Whisker"}],m,b),H=[...R({partName:"rule",mark:{type:"rule",invalid:c,aria:!1},positionPrefix:"lower_whisker",endPositionPrefix:"lower_box",extraEncoding:W}),...R({partName:"rule",mark:{type:"rule",invalid:c,aria:!1},positionPrefix:"upper_box",endPositionPrefix:"upper_whisker",extraEncoding:W}),...R({partName:"ticks",mark:L,positionPrefix:"lower_whisker",extraEncoding:W}),...R({partName:"ticks",mark:L,positionPrefix:"upper_whisker",extraEncoding:W})],ae=[...f==="tukey"?[]:H,...C({partName:"box",mark:{type:"bar",...u?{size:u}:{},orient:A,invalid:c,ariaRoleDescription:"box"},positionPrefix:"lower_box",endPositionPrefix:"upper_box",extraEncoding:S}),...D({partName:"median",mark:{type:"tick",invalid:c,...Ae(t.boxplot.median)&&t.boxplot.median.color?{color:t.boxplot.median.color}:{},...u?{size:u}:{},orient:w,aria:!1},positionPrefix:"mid_box",extraEncoding:S})];if(f==="min-max")return{...o,transform:(o.transform??[]).concat(p),layer:ae};let fe=Re(`lower_box_${m.field}`),Fe=Re(`upper_box_${m.field}`),be=`(${Fe} - ${fe})`,ln=`${fe} - ${s} * ${be}`,Pt=`${Fe} + ${s} * ${be}`,ac=Re(m.field),A4={joinaggregate:oS(m.field),groupby:y},a2={transform:[{filter:`(${ln} <= ${ac}) && (${ac} <= ${Pt})`},{aggregate:[{op:"min",field:m.field,as:`lower_whisker_${x}`},{op:"max",field:m.field,as:`upper_whisker_${x}`},{op:"min",field:`lower_box_${m.field}`,as:`lower_box_${x}`},{op:"max",field:`upper_box_${m.field}`,as:`upper_box_${x}`},...v],groupby:y}],layer:H},{tooltip:Uoe,...E4}=F,{scale:o2,axis:l2}=m,s2=lb(m),u2=tS(l,"outliers",t.boxplot,{transform:[{filter:`(${ac} < ${ln}) || (${ac} > ${Pt})`}],mark:"point",encoding:{[g]:{field:m.field,type:m.type,...s2===void 0?{}:{title:s2},...o2===void 0?{}:{scale:o2},...l2===void 0?{}:{axis:l2}},...E4,...k?{color:k}:{},...E?{tooltip:E}:{}}})[0],oc,c2=[...d,...h,A4];return u2?oc={transform:c2,layer:[u2,a2]}:(oc=a2,oc.transform.unshift(...c2)),{...o,layer:[oc,{transform:p,layer:ae}]}}function oS(e){let t=Al(e);return[{op:"q1",field:e,as:`lower_box_${t}`},{op:"q3",field:e,as:`upper_box_${t}`}]}function JZ(e,t,n){let r=rS(e,Nh),{continuousAxisChannelDef:i,continuousAxis:a}=nS(e,r,Nh),o=i.field,l=Al(o),s=iS(t),u=[...oS(o),{op:"median",field:o,as:`mid_box_${l}`},{op:"min",field:o,as:(s==="min-max"?"lower_whisker_":"min_")+l},{op:"max",field:o,as:(s==="min-max"?"upper_whisker_":"max_")+l}],c=s==="min-max"||s==="tukey"?[]:[{calculate:`${Re(`upper_box_${l}`)} - ${Re(`lower_box_${l}`)}`,as:`iqr_${l}`},{calculate:`min(${Re(`upper_box_${l}`)} + ${Re(`iqr_${l}`)} * ${t}, ${Re(`max_${l}`)})`,as:`upper_whisker_${l}`},{calculate:`max(${Re(`lower_box_${l}`)} - ${Re(`iqr_${l}`)} * ${t}, ${Re(`min_${l}`)})`,as:`lower_whisker_${l}`}],{[a]:f,...d}=e.encoding,{customTooltipWithoutAggregatedField:h,filteredEncoding:p}=VZ(d),{bins:m,timeUnits:g,aggregate:y,groupby:v,encoding:b}=Z5(p,n),w=r==="vertical"?"horizontal":"vertical",A=r;return{bins:m,timeUnits:g,transform:[...m,...g,{aggregate:[...y,...u],groupby:v},...c],groupby:v,aggregate:y,continuousAxisChannelDef:i,continuousAxis:a,encodingWithoutContinuousAxis:b,ticksOrient:w,boxOrient:A,customTooltipWithoutAggregatedField:h}}var ub="errorbar",QZ=["ticks","rule"],KZ=new Oh(ub,lS);function lS(e,{config:t}){e={...e,encoding:Bh(e.encoding,t)};let{transform:n,continuousAxisChannelDef:r,continuousAxis:i,encodingWithoutContinuousAxis:a,ticksOrient:o,markDef:l,outerSpec:s,tooltipEncoding:u}=sS(e,ub,t);delete a.size;let c=sb(l,i,r,a,t.errorbar),f=l.thickness,d=l.size,h={type:"tick",orient:o,aria:!1,...f===void 0?{}:{thickness:f},...d===void 0?{}:{size:d}},p=[...c({partName:"ticks",mark:h,positionPrefix:"lower",extraEncoding:u}),...c({partName:"ticks",mark:h,positionPrefix:"upper",extraEncoding:u}),...c({partName:"rule",mark:{type:"rule",ariaRoleDescription:"errorbar",...f===void 0?{}:{size:f}},positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:u})];return{...s,transform:n,...p.length>1?{layer:p}:{...p[0]}}}function ZZ(e,t){let{encoding:n}=e;if(eee(n))return{orient:rS(e,t),inputType:"raw"};let r=tee(n),i=nee(n),a=n.x,o=n.y;if(r){if(i)throw Error(`${t} cannot be both type aggregated-upper-lower and aggregated-error`);let l=n.x2,s=n.y2;if(le(l)&&le(s))throw Error(`${t} cannot have both x2 and y2`);if(le(l)){if(xa(a))return{orient:"horizontal",inputType:"aggregated-upper-lower"};throw Error(`Both x and x2 have to be quantitative in ${t}`)}else if(le(s)){if(xa(o))return{orient:"vertical",inputType:"aggregated-upper-lower"};throw Error(`Both y and y2 have to be quantitative in ${t}`)}throw Error("No ranged axis")}else{let l=n.xError,s=n.xError2,u=n.yError,c=n.yError2;if(le(s)&&!le(l))throw Error(`${t} cannot have xError2 without xError`);if(le(c)&&!le(u))throw Error(`${t} cannot have yError2 without yError`);if(le(l)&&le(u))throw Error(`${t} cannot have both xError and yError with both are quantiative`);if(le(l)){if(xa(a))return{orient:"horizontal",inputType:"aggregated-error"};throw Error("All x, xError, and xError2 (if exist) have to be quantitative")}else if(le(u)){if(xa(o))return{orient:"vertical",inputType:"aggregated-error"};throw Error("All y, yError, and yError2 (if exist) have to be quantitative")}throw Error("No ranged axis")}}function eee(e){return(le(e.x)||le(e.y))&&!le(e.x2)&&!le(e.y2)&&!le(e.xError)&&!le(e.xError2)&&!le(e.yError)&&!le(e.yError2)}function tee(e){return le(e.x2)||le(e.y2)}function nee(e){return le(e.xError)||le(e.xError2)||le(e.yError)||le(e.yError2)}function sS(e,t,n){let{mark:r,encoding:i,params:a,projection:o,...l}=e,s=Yr(r)?r:{type:r};a&&q(I3(t));let{orient:u,inputType:c}=ZZ(e,t),{continuousAxisChannelDef:f,continuousAxisChannelDef2:d,continuousAxisChannelDefError:h,continuousAxisChannelDefError2:p,continuousAxis:m}=nS(e,u,t),{errorBarSpecificAggregate:g,postAggregateCalculates:y,tooltipSummary:v,tooltipTitleWithFieldName:b}=ree(s,f,d,h,p,c,t,n),{[m]:w,[m==="x"?"x2":"y2"]:A,[m==="x"?"xError":"yError"]:E,[m==="x"?"xError2":"yError2"]:x,...k}=i,{bins:_,timeUnits:F,aggregate:$,groupby:R,encoding:C}=Z5(k,n),M=[...$,...g],D=c==="raw"?R:[],S=ob(v,f,C,b);return{transform:[...l.transform??[],..._,...F,...M.length===0?[]:[{aggregate:M,groupby:D}],...y],groupby:D,continuousAxisChannelDef:f,continuousAxis:m,encodingWithoutContinuousAxis:C,ticksOrient:u==="vertical"?"horizontal":"vertical",markDef:s,outerSpec:l,tooltipEncoding:S}}function ree(e,t,n,r,i,a,o,l){let s=[],u=[],c=t.field,f,d=!1;if(a==="raw"){let h=e.center?e.center:e.extent?e.extent==="iqr"?"median":"mean":l.errorbar.center,p=e.extent?e.extent:h==="mean"?"stderr":"iqr";if(h==="median"!=(p==="iqr")&&q(bK(h,p,o)),p==="stderr"||p==="stdev")s=[{op:p,field:c,as:`extent_${c}`},{op:h,field:c,as:`center_${c}`}],u=[{calculate:`${Re(`center_${c}`)} + ${Re(`extent_${c}`)}`,as:`upper_${c}`},{calculate:`${Re(`center_${c}`)} - ${Re(`extent_${c}`)}`,as:`lower_${c}`}],f=[{fieldPrefix:"center_",titlePrefix:Mu(h)},{fieldPrefix:"upper_",titlePrefix:uS(h,p,"+")},{fieldPrefix:"lower_",titlePrefix:uS(h,p,"-")}],d=!0;else{let m,g,y;p==="ci"?(m="mean",g="ci0",y="ci1"):(m="median",g="q1",y="q3"),s=[{op:g,field:c,as:`lower_${c}`},{op:y,field:c,as:`upper_${c}`},{op:m,field:c,as:`center_${c}`}],f=[{fieldPrefix:"upper_",titlePrefix:Ol({field:c,aggregate:y,type:"quantitative"},l,{allowDisabling:!1})},{fieldPrefix:"lower_",titlePrefix:Ol({field:c,aggregate:g,type:"quantitative"},l,{allowDisabling:!1})},{fieldPrefix:"center_",titlePrefix:Ol({field:c,aggregate:m,type:"quantitative"},l,{allowDisabling:!1})}]}}else{(e.center||e.extent)&&q(vK(e.center,e.extent)),a==="aggregated-upper-lower"?(f=[],u=[{calculate:Re(n.field),as:`upper_${c}`},{calculate:Re(c),as:`lower_${c}`}]):a==="aggregated-error"&&(f=[{fieldPrefix:"",titlePrefix:c}],u=[{calculate:`${Re(c)} + ${Re(r.field)}`,as:`upper_${c}`}],i?u.push({calculate:`${Re(c)} + ${Re(i.field)}`,as:`lower_${c}`}):u.push({calculate:`${Re(c)} - ${Re(r.field)}`,as:`lower_${c}`}));for(let h of u)f.push({fieldPrefix:h.as.substring(0,6),titlePrefix:to(to(h.calculate,"datum['",""),"']","")})}return{postAggregateCalculates:u,errorBarSpecificAggregate:s,tooltipSummary:f,tooltipTitleWithFieldName:d}}function uS(e,t,n){return`${Mu(e)} ${n} ${t}`}var cb="errorband",iee=["band","borders"],aee=new Oh(cb,cS);function cS(e,{config:t}){e={...e,encoding:Bh(e.encoding,t)};let{transform:n,continuousAxisChannelDef:r,continuousAxis:i,encodingWithoutContinuousAxis:a,markDef:o,outerSpec:l,tooltipEncoding:s}=sS(e,cb,t),u=o,c=sb(u,i,r,a,t.errorband),f=e.encoding.x!==void 0&&e.encoding.y!==void 0,d={type:f?"area":"rect"},h={type:f?"line":"rule"},p={...u.interpolate?{interpolate:u.interpolate}:{},...u.tension&&u.interpolate?{tension:u.tension}:{}};return f?(d={...d,...p,ariaRoleDescription:"errorband"},h={...h,...p,aria:!1}):u.interpolate?q(Y3("interpolate")):u.tension&&q(Y3("tension")),{...l,transform:n,layer:[...c({partName:"band",mark:d,positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:s}),...c({partName:"borders",mark:h,positionPrefix:"lower",extraEncoding:s}),...c({partName:"borders",mark:h,positionPrefix:"upper",extraEncoding:s})]}}var fS={};function fb(e,t,n){fS[e]={normalizer:new Oh(e,t),parts:n}}function oee(){return I(fS)}fb(Nh,aS,XZ),fb(ub,lS,QZ),fb(cb,cS,iee);var lee=["gradientHorizontalMaxLength","gradientHorizontalMinLength","gradientVerticalMaxLength","gradientVerticalMinLength","unselectedOpacity"],dS={titleAlign:"align",titleAnchor:"anchor",titleAngle:"angle",titleBaseline:"baseline",titleColor:"color",titleFont:"font",titleFontSize:"fontSize",titleFontStyle:"fontStyle",titleFontWeight:"fontWeight",titleLimit:"limit",titleLineHeight:"lineHeight",titleOrient:"orient",titlePadding:"offset"},hS={labelAlign:"align",labelAnchor:"anchor",labelAngle:"angle",labelBaseline:"baseline",labelColor:"color",labelFont:"font",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelLimit:"limit",labelLineHeight:"lineHeight",labelOrient:"orient",labelPadding:"offset"},see=I(dS),uee=I(hS),pS=I({header:1,headerRow:1,headerColumn:1,headerFacet:1}),mS=["size","shape","fill","stroke","strokeDash","strokeWidth","opacity"],cee={gradientHorizontalMaxLength:200,gradientHorizontalMinLength:100,gradientVerticalMaxLength:200,gradientVerticalMinLength:64,unselectedOpacity:.35},fee={aria:1,clipHeight:1,columnPadding:1,columns:1,cornerRadius:1,description:1,direction:1,fillColor:1,format:1,formatType:1,gradientLength:1,gradientOpacity:1,gradientStrokeColor:1,gradientStrokeWidth:1,gradientThickness:1,gridAlign:1,labelAlign:1,labelBaseline:1,labelColor:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labelSeparation:1,legendX:1,legendY:1,offset:1,orient:1,padding:1,rowPadding:1,strokeColor:1,symbolDash:1,symbolDashOffset:1,symbolFillColor:1,symbolLimit:1,symbolOffset:1,symbolOpacity:1,symbolSize:1,symbolStrokeColor:1,symbolStrokeWidth:1,symbolType:1,tickCount:1,tickMinStep:1,title:1,titleAlign:1,titleAnchor:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titleOrient:1,titlePadding:1,type:1,values:1,zindex:1},wr="_vgsid_",dee={point:{on:"click",fields:[wr],toggle:"event.shiftKey",resolve:"global",clear:"dblclick"},interval:{on:"[pointerdown, window:pointerup] > window:pointermove!",encodings:["x","y"],translate:"[pointerdown, window:pointerup] > window:pointermove!",zoom:"wheel!",mark:{fill:"#333",fillOpacity:.125,stroke:"white"},resolve:"global",clear:"dblclick"}};function db(e){return e==="legend"||!!(e!=null&&e.legend)}function hb(e){return db(e)&&Ae(e)}function pb(e){return!!(e!=null&&e.select)}function gS(e){let t=[];for(let n of e||[]){if(pb(n))continue;let{expr:r,bind:i,...a}=n;if(i&&r){let o={...a,bind:i,init:r};t.push(o)}else{let o={...a,...r?{update:r}:{},...i?{bind:i}:{}};t.push(o)}}return t}function hee(e){return Rh(e)||gb(e)||mb(e)}function mb(e){return j(e,"concat")}function Rh(e){return j(e,"vconcat")}function gb(e){return j(e,"hconcat")}function yS({step:e,offsetIsDiscrete:t}){return t?e.for??"offset":"position"}function Qr(e){return j(e,"step")}function vS(e){return j(e,"view")||j(e,"width")||j(e,"height")}var bS=20,pee=I({align:1,bounds:1,center:1,columns:1,spacing:1});function mee(e,t,n){let r=n[t],i={},{spacing:a,columns:o}=r;a!==void 0&&(i.spacing=a),o!==void 0&&(kh(e)&&!ju(e.facet)||mb(e))&&(i.columns=o),Rh(e)&&(i.columns=1);for(let l of pee)if(e[l]!==void 0)if(l==="spacing"){let s=e[l];i[l]=He(s)?s:{row:s.row??a,column:s.column??a}}else i[l]=e[l];return i}function yb(e,t){return e[t]??e[t==="width"?"continuousWidth":"continuousHeight"]}function vb(e,t){let n=Th(e,t);return Qr(n)?n.step:xS}function Th(e,t){return at(e[t]??e[t==="width"?"discreteWidth":"discreteHeight"],{step:e.step})}var xS=20,gee={background:"white",padding:5,timeFormat:"%b %d, %Y",countTitle:"Count of Records",view:{continuousWidth:300,continuousHeight:300,step:xS},mark:pZ,arc:{},area:{},bar:gZ,circle:{},geoshape:{},image:{},line:{},point:{},rect:Xv,rule:{color:"black"},square:{},text:{color:"black"},tick:yZ,trail:{},boxplot:{size:14,extent:1.5,box:{},median:{color:"white"},outliers:{},rule:{},ticks:null},errorbar:{center:"mean",rule:!0,ticks:!1},errorband:{band:{opacity:.3},borders:!1},scale:QK,projection:{},legend:cee,header:{titlePadding:10,labelPadding:10},headerColumn:{},headerRow:{},headerFacet:{},selection:dee,style:{},title:{},facet:{spacing:bS},concat:{spacing:bS},normalizedNumberFormat:".0%"},_i=["#4c78a8","#f58518","#e45756","#72b7b2","#54a24b","#eeca3b","#b279a2","#ff9da6","#9d755d","#bab0ac"],wS={text:11,guideLabel:10,guideTitle:11,groupTitle:13,groupSubtitle:12},AS={blue:_i[0],orange:_i[1],red:_i[2],teal:_i[3],green:_i[4],yellow:_i[5],purple:_i[6],pink:_i[7],brown:_i[8],gray0:"#000",gray1:"#111",gray2:"#222",gray3:"#333",gray4:"#444",gray5:"#555",gray6:"#666",gray7:"#777",gray8:"#888",gray9:"#999",gray10:"#aaa",gray11:"#bbb",gray12:"#ccc",gray13:"#ddd",gray14:"#eee",gray15:"#fff"};function yee(e={}){return{signals:[{name:"color",value:Ae(e)?{...AS,...e}:AS}],mark:{color:{signal:"color.blue"}},rule:{color:{signal:"color.gray0"}},text:{color:{signal:"color.gray0"}},style:{"guide-label":{fill:{signal:"color.gray0"}},"guide-title":{fill:{signal:"color.gray0"}},"group-title":{fill:{signal:"color.gray0"}},"group-subtitle":{fill:{signal:"color.gray0"}},cell:{stroke:{signal:"color.gray8"}}},axis:{domainColor:{signal:"color.gray13"},gridColor:{signal:"color.gray8"},tickColor:{signal:"color.gray13"}},range:{category:[{signal:"color.blue"},{signal:"color.orange"},{signal:"color.red"},{signal:"color.teal"},{signal:"color.green"},{signal:"color.yellow"},{signal:"color.purple"},{signal:"color.pink"},{signal:"color.brown"},{signal:"color.grey8"}]}}}function vee(e){return{signals:[{name:"fontSize",value:Ae(e)?{...wS,...e}:wS}],text:{fontSize:{signal:"fontSize.text"}},style:{"guide-label":{fontSize:{signal:"fontSize.guideLabel"}},"guide-title":{fontSize:{signal:"fontSize.guideTitle"}},"group-title":{fontSize:{signal:"fontSize.groupTitle"}},"group-subtitle":{fontSize:{signal:"fontSize.groupSubtitle"}}}}}function bee(e){return{text:{font:e},style:{"guide-label":{font:e},"guide-title":{font:e},"group-title":{font:e},"group-subtitle":{font:e}}}}function ES(e){let t=I(e||{}),n={};for(let r of t){let i=e[r];n[r]=Gu(i)?F3(i):$n(i)}return n}function xee(e){let t=I(e),n={};for(let r of t)n[r]=ES(e[r]);return n}var wee=[...w5,...Y5,...pS,"background","padding","legend","lineBreak","scale","style","title","view"];function kS(e={}){let{color:t,font:n,fontSize:r,selection:i,...a}=e,o=q$({},oe(gee),n?bee(n):{},t?yee(t):{},r?vee(r):{},a||{});i&&Yd(o,"selection",i,!0);let l=Fn(o,wee);for(let s of["background","lineBreak","padding"])o[s]&&(l[s]=$n(o[s]));for(let s of w5)o[s]&&(l[s]=Ct(o[s]));for(let s of Y5)o[s]&&(l[s]=ES(o[s]));for(let s of pS)o[s]&&(l[s]=Ct(o[s]));if(o.legend&&(l.legend=Ct(o.legend)),o.scale){let{invalid:s,...u}=o.scale,c=Ct(s,{level:1});l.scale={...Ct(u),...I(c).length>0?{invalid:c}:{}}}return o.style&&(l.style=xee(o.style)),o.title&&(l.title=Ct(o.title)),o.view&&(l.view=Ct(o.view)),l}var Aee=new Set(["view",...uZ]),Eee="color.fontSize.background.padding.facet.concat.numberFormat.numberFormatType.normalizedNumberFormat.normalizedNumberFormatType.timeFormat.countTitle.header.axisQuantitative.axisTemporal.axisDiscrete.axisPoint.axisXBand.axisXPoint.axisXDiscrete.axisXQuantitative.axisXTemporal.axisYBand.axisYPoint.axisYDiscrete.axisYQuantitative.axisYTemporal.scale.selection.overlay".split("."),kee={view:["continuousWidth","continuousHeight","discreteWidth","discreteHeight","step"],...hZ};function _ee(e){e=oe(e);for(let t of Eee)delete e[t];if(e.axis)for(let t in e.axis)Gu(e.axis[t])&&delete e.axis[t];if(e.legend)for(let t of lee)delete e.legend[t];if(e.mark){for(let t of x5)delete e.mark[t];e.mark.tooltip&&Ae(e.mark.tooltip)&&delete e.mark.tooltip}e.params&&(e.signals=(e.signals||[]).concat(gS(e.params)),delete e.params);for(let t of Aee){for(let r of x5)delete e[t][r];let n=kee[t];if(n)for(let r of n)delete e[t][r];Fee(e,t)}for(let t of oee())delete e[t];for(let t in Dee(e),e)Ae(e[t])&&Ie(e[t])&&delete e[t];return Ie(e)?void 0:e}function Dee(e){let{titleMarkConfig:t,subtitleMarkConfig:n,subtitle:r}=D3(e.title);Ie(t)||(e.style["group-title"]={...e.style["group-title"],...t}),Ie(n)||(e.style["group-subtitle"]={...e.style["group-subtitle"],...n}),Ie(r)?delete e.title:e.title=r}function Fee(e,t,n,r){let i=e[t];t==="view"&&(n="cell");let a={...i,...e.style[n??t]};Ie(a)||(e.style[n??t]=a),delete e[t]}function Lh(e){return j(e,"layer")}function Cee(e){return j(e,"repeat")}function $ee(e){return!X(e.repeat)&&j(e.repeat,"layer")}var bb=class{map(e,t){return kh(e)?this.mapFacet(e,t):Cee(e)?this.mapRepeat(e,t):gb(e)?this.mapHConcat(e,t):Rh(e)?this.mapVConcat(e,t):mb(e)?this.mapConcat(e,t):this.mapLayerOrUnit(e,t)}mapLayerOrUnit(e,t){if(Lh(e))return this.mapLayer(e,t);if(ki(e))return this.mapUnit(e,t);throw Error(kv(e))}mapLayer(e,t){return{...e,layer:e.layer.map(n=>this.mapLayerOrUnit(n,t))}}mapHConcat(e,t){return{...e,hconcat:e.hconcat.map(n=>this.map(n,t))}}mapVConcat(e,t){return{...e,vconcat:e.vconcat.map(n=>this.map(n,t))}}mapConcat(e,t){let{concat:n,...r}=e;return{...r,concat:n.map(i=>this.map(i,t))}}mapFacet(e,t){return{...e,spec:this.map(e.spec,t)}}mapRepeat(e,t){return{...e,spec:this.map(e.spec,t)}}},See={zero:1,center:1,normalize:1};function Mee(e){return st(See,e)}var Oee=new Set([y5,vh,yh,wh,xh,Gv,Hv,bh,v5,Wv]),Bee=new Set([vh,yh,y5]);function Nl(e){return U(e)&&Sl(e)==="quantitative"&&!e.bin}function _S(e,t,{orient:n,type:r}){let i=t==="x"?"y":"radius",a=t==="x"&&["bar","area"].includes(r),o=e[t],l=e[i];if(U(o)&&U(l))if(Nl(o)&&Nl(l)){if(o.stack)return t;if(l.stack)return i;let s=U(o)&&!!o.aggregate;if(s!==(U(l)&&!!l.aggregate))return s?t:i;if(a){if(n==="vertical")return i;if(n==="horizontal")return t}}else{if(Nl(o))return t;if(Nl(l))return i}else{if(Nl(o))return a&&n==="vertical"?void 0:t;if(Nl(l))return a&&n==="horizontal"?void 0:i}}function zee(e){switch(e){case"x":return"y";case"y":return"x";case"theta":return"radius";case"radius":return"theta"}}function DS(e,t){var m,g;let n=Yr(e)?e:{type:e},r=n.type;if(!Oee.has(r))return null;let i=_S(t,"x",n)||_S(t,"theta",n);if(!i)return null;let a=t[i],o=U(a)?V(a,{}):void 0,l=zee(i),s=[],u=new Set;if(t[l]){let y=t[l],v=U(y)?V(y,{}):void 0;v&&v!==o&&(s.push(l),u.add(v))}let c=l==="x"?"xOffset":"yOffset",f=t[c],d=U(f)?V(f,{}):void 0;d&&d!==o&&(s.push(c),u.add(d));let h=JJ.reduce((y,v)=>{if(v!=="tooltip"&&yo(t,v)){let b=t[v];for(let w of it(b)){let A=xr(w);if(A.aggregate)continue;let E=V(A,{});(!E||!u.has(E))&&y.push({channel:v,fieldDef:A})}}return y},[]),p;return a.stack===void 0?Bee.has(r)&&(p="zero"):p=wu(a.stack)?a.stack?"zero":null:a.stack,!p||!Mee(p)||K5(t)&&h.length===0?null:((m=a==null?void 0:a.scale)!=null&&m.type&&((g=a==null?void 0:a.scale)==null?void 0:g.type)!==$t.LINEAR&&(a!=null&&a.stack)&&q(mK(a.scale.type)),le(t[Wr(i)])?(a.stack!==void 0&&q(pK(i)),null):(U(a)&&a.aggregate&&!uQ.has(a.aggregate)&&q(gK(a.aggregate)),{groupbyChannels:s,groupbyFields:u,fieldChannel:i,impute:a.impute===null?!1:va(r),stackBy:h,offset:p}))}function FS(e,t,n){let r=Ct(e),i=Me("orient",r,n);if(r.orient=Lee(r.type,t,i),i!==void 0&&i!==r.orient&&q(KQ(r.orient,i)),r.type==="bar"&&r.orient){let l=Me("cornerRadiusEnd",r,n);if(l!==void 0){let s=r.orient==="horizontal"&&t.x2||r.orient==="vertical"&&t.y2?["cornerRadius"]:mZ[r.orient];for(let u of s)r[u]=l;r.cornerRadiusEnd!==void 0&&delete r.cornerRadiusEnd}}let a=Me("opacity",r,n),o=Me("fillOpacity",r,n);return a===void 0&&o===void 0&&(r.opacity=Ree(r.type,t)),Me("cursor",r,n)===void 0&&(r.cursor=Nee(r,t,n)),r}function Nee(e,t,n){return t.href||e.href||Me("href",e,n)?"pointer":e.cursor}var CS=.7;function Ree(e,t){if(he([xh,Wv,Gv,Hv],e)&&!K5(t))return CS}function Tee(e,t,{graticule:n}){if(n)return!1;let r=Hr("filled",e,t),i=e.type;return at(r,i!==xh&&i!==bh&&i!==wh)}function Lee(e,t,n){switch(e){case xh:case Gv:case Hv:case lZ:case oZ:return}let{x:r,y:i,x2:a,y2:o}=t;switch(e){case v5:case vh:if(U(r)&&(Ft(r.bin)||U(i)&&i.aggregate&&!r.aggregate))return"vertical";if(U(i)&&(Ft(i.bin)||U(r)&&r.aggregate&&!i.aggregate))return"horizontal";if(o||a){if(n)return n;if(!a)return(U(r)&&r.type===fo&&!je(r.bin)||Dh(r))&&U(i)&&Ft(i.bin)?"horizontal":"vertical";if(!o)return(U(i)&&i.type===fo&&!je(i.bin)||Dh(i))&&U(r)&&Ft(r.bin)?"vertical":"horizontal"}case wh:if(a&&!(U(r)&&Ft(r.bin))&&o&&!(U(i)&&Ft(i.bin)))return;case yh:if(o)return U(i)&&Ft(i.bin)?"horizontal":"vertical";if(a)return U(r)&&Ft(r.bin)?"vertical":"horizontal";if(e===wh){if(r&&!i)return"vertical";if(i&&!r)return"horizontal"}case bh:case Wv:{let l=T5(r),s=T5(i);if(n)return n;if(l&&!s)return e==="tick"?"vertical":"horizontal";if(!l&&s)return e==="tick"?"horizontal":"vertical";if(l&&s)return"vertical";{let u=an(r)&&r.type===Fl,c=an(i)&&i.type===Fl;if(u&&!c)return"vertical";if(!u&&c)return"horizontal"}return}}return"vertical"}function Pee(e){let{point:t,line:n,...r}=e;return I(r).length>1?r:r.type}function Iee(e){for(let t of["line","area","rule","trail"])e[t]&&(e={...e,[t]:Fn(e[t],["point","line"])});return e}function xb(e,t={},n){return e.point==="transparent"?{opacity:0}:e.point?Ae(e.point)?e.point:{}:e.point===void 0?t.point||n.shape?Ae(t.point)?t.point:{}:void 0:null}function $S(e,t={}){return e.line?e.line===!0?{}:e.line:e.line===void 0?t.line?t.line===!0?{}:t.line:void 0:null}var jee=class{constructor(){N(this,"name","path-overlay")}hasMatchingType(e,t){if(ki(e)){let{mark:n,encoding:r}=e,i=Yr(n)?n:{type:n};switch(i.type){case"line":case"rule":case"trail":return!!xb(i,t[i.type],r);case"area":return!!xb(i,t[i.type],r)||!!$S(i,t[i.type])}}return!1}run(e,t,n){let{config:r}=t,{params:i,projection:a,mark:o,name:l,encoding:s,...u}=e,c=Bh(s,r),f=Yr(o)?o:{type:o},d=xb(f,r[f.type],c),h=f.type==="area"&&$S(f,r[f.type]),p=[{name:l,...i?{params:i}:{},mark:Pee({...f.type==="area"&&Me("opacity",f,r)==null&&Me("fillOpacity",f,r)==null?{opacity:CS}:{},...f}),encoding:Fn(c,["shape"])}],m=DS(FS(f,c,r),c),g=c;if(m){let{fieldChannel:y,offset:v}=m;g={...c,[y]:{...c[y],...v?{stack:v}:{}}}}return g=Fn(g,["y2","x2"]),h&&p.push({...a?{projection:a}:{},mark:{type:"line",...xl(f,["clip","interpolate","tension","tooltip"]),...h},encoding:g}),d&&p.push({...a?{projection:a}:{},mark:{type:"point",opacity:1,filled:!0,...xl(f,["clip","tooltip"]),...d},encoding:g}),n({...u,layer:p},{...t,config:Iee(r)})}};function qee(e,t){return t?ju(e)?BS(e,t):SS(e,t):e}function wb(e,t){return t?BS(e,t):e}function Ab(e,t,n){let r=t[e];if(CZ(r)){if(r.repeat in n)return{...t,[e]:n[r.repeat]};q($Q(r.repeat));return}return t}function SS(e,t){if(e=Ab("field",e,t),e!==void 0){if(e===null)return null;if(tb(e)&&Ei(e.sort)){let n=Ab("field",e.sort,t);e={...e,...n?{sort:n}:{}}}return e}}function MS(e,t){if(U(e))return SS(e,t);{let n=Ab("datum",e,t);return n!==e&&!n.type&&(n.type="nominal"),n}}function OS(e,t){if(le(e)){let n=MS(e,t);if(n)return n;if(qu(e))return{condition:e.condition}}else{if(Uu(e)){let n=MS(e.condition,t);if(n)return{...e,condition:n};{let{condition:r,...i}=e;return i}}return e}}function BS(e,t){let n={};for(let r in e)if(j(e,r)){let i=e[r];if(X(i))n[r]=i.map(a=>OS(a,t)).filter(a=>a);else{let a=OS(i,t);a!==void 0&&(n[r]=a)}}return n}var Uee=class{constructor(){N(this,"name","RuleForRangedLine")}hasMatchingType(e){if(ki(e)){let{encoding:t,mark:n}=e;if(n==="line"||Yr(n)&&n.type==="line")for(let r of VJ){let i=t[io(r)];if(t[r]&&(U(i)&&!Ft(i.bin)||Jr(i)))return!0}}return!1}run(e,t,n){let{encoding:r,mark:i}=e;return q(QQ(!!r.x2,!!r.y2)),n({...e,mark:Ae(i)?{...i,type:"rule"}:"rule"},t)}},Wee=class extends bb{constructor(){super(...arguments);N(this,"nonFacetUnitNormalizers",[YZ,KZ,aee,new jee,new Uee])}map(t,n){if(ki(t)){let r=yo(t.encoding,pi),i=yo(t.encoding,mi),a=yo(t.encoding,ah);if(r||i||a)return this.mapFacetedUnit(t,n)}return super.map(t,n)}mapUnit(t,n){let{parentEncoding:r,parentProjection:i}=n,a=wb(t.encoding,n.repeater),o={...t,...t.name?{name:[n.repeaterPrefix,t.name].filter(s=>s).join("_")}:{},...a?{encoding:a}:{}};if(r||i)return this.mapUnitWithParentEncodingOrProjection(o,n);let l=this.mapLayerOrUnit.bind(this);for(let s of this.nonFacetUnitNormalizers)if(s.hasMatchingType(o,n.config))return s.run(o,n,l);return o}mapRepeat(t,n){return $ee(t)?this.mapLayerRepeat(t,n):this.mapNonLayerRepeat(t,n)}mapLayerRepeat(t,n){let{repeat:r,spec:i,...a}=t,{row:o,column:l,layer:s}=r,{repeater:u={},repeaterPrefix:c=""}=n;return o||l?this.mapRepeat({...t,repeat:{...o?{row:o}:{},...l?{column:l}:{}},spec:{repeat:{layer:s},spec:i}},n):{...a,layer:s.map(f=>{let d={...u,layer:f},h=`${(i.name?`${i.name}_`:"")+c}child__layer_${Ve(f)}`,p=this.mapLayerOrUnit(i,{...n,repeater:d,repeaterPrefix:h});return p.name=h,p})}}mapNonLayerRepeat(t,n){let{repeat:r,spec:i,data:a,...o}=t;!X(r)&&t.columns&&(t=Fn(t,["columns"]),q(j3("repeat")));let l=[],{repeater:s={},repeaterPrefix:u=""}=n,c=!X(r)&&r.row||[s?s.row:null],f=!X(r)&&r.column||[s?s.column:null],d=X(r)&&r||[s?s.repeat:null];for(let p of d)for(let m of c)for(let g of f){let y={repeat:p,row:m,column:g,layer:s.layer},v=`${(i.name?`${i.name}_`:"")+u}child__${X(r)?`${Ve(p)}`:(r.row?`row_${Ve(m)}`:"")+(r.column?`column_${Ve(g)}`:"")}`,b=this.map(i,{...n,repeater:y,repeaterPrefix:v});b.name=v,l.push(Fn(b,["data"]))}let h=X(r)?t.columns:r.column?r.column.length:1;return{data:i.data??a,align:"all",...o,columns:h,concat:l}}mapFacet(t,n){let{facet:r}=t;return ju(r)&&t.columns&&(t=Fn(t,["columns"]),q(j3("facet"))),super.mapFacet(t,n)}mapUnitWithParentEncodingOrProjection(t,n){let{encoding:r,projection:i}=t,{parentEncoding:a,parentProjection:o,config:l}=n,s=NS({parentProjection:o,projection:i}),u=zS({parentEncoding:a,encoding:wb(r,n.repeater)});return this.mapUnit({...t,...s?{projection:s}:{},...u?{encoding:u}:{}},{config:l})}mapFacetedUnit(t,n){let{row:r,column:i,facet:a,...o}=t.encoding,{mark:l,width:s,projection:u,height:c,view:f,params:d,encoding:h,...p}=t,{facetMapping:m,layout:g}=this.getFacetMappingAndLayout({row:r,column:i,facet:a},n),y=wb(o,n.repeater);return this.mapFacet({...p,...g,facet:m,spec:{...s?{width:s}:{},...c?{height:c}:{},...f?{view:f}:{},...u?{projection:u}:{},mark:l,encoding:y,...d?{params:d}:{}}},n)}getFacetMappingAndLayout(t,n){let{row:r,column:i,facet:a}=t;if(r||i){a&&q(YQ([...r?[pi]:[],...i?[mi]:[]]));let o={},l={};for(let s of[pi,mi]){let u=t[s];if(u){let{align:c,center:f,spacing:d,columns:h,...p}=u;o[s]=p;for(let m of["align","center","spacing"])u[m]!==void 0&&(l[m]??(l[m]={}),l[m][s]=u[m])}}return{facetMapping:o,layout:l}}else{let{align:o,center:l,spacing:s,columns:u,...c}=a;return{facetMapping:qee(c,n.repeater),layout:{...o?{align:o}:{},...l?{center:l}:{},...s?{spacing:s}:{},...u?{columns:u}:{}}}}}mapLayer(t,{parentEncoding:n,parentProjection:r,...i}){let{encoding:a,projection:o,...l}=t,s={...i,parentEncoding:zS({parentEncoding:n,encoding:a,layer:!0}),parentProjection:NS({parentProjection:r,projection:o})};return super.mapLayer({...l,...t.name?{name:[s.repeaterPrefix,t.name].filter(u=>u).join("_")}:{}},s)}};function zS({parentEncoding:e,encoding:t={},layer:n}){let r={};if(e){let i=new Set([...I(e),...I(t)]);for(let a of i){let o=t[a],l=e[a];if(le(o)){let s={...l,...o};r[a]=s}else Uu(o)?r[a]={...o,condition:{...l,...o.condition}}:o||o===null?r[a]=o:(n||br(l)||Q(l)||le(l)||X(l))&&(r[a]=l)}}else r=t;return!r||Ie(r)?void 0:r}function NS(e){let{parentProjection:t,projection:n}=e;return t&&n&&q(LQ({parentProjection:t,projection:n})),n??t}function Eb(e){return j(e,"filter")}function Gee(e){return j(e,"stop")}function RS(e){return j(e,"lookup")}function Hee(e){return j(e,"data")}function Vee(e){return j(e,"param")}function Xee(e){return j(e,"pivot")}function Yee(e){return j(e,"density")}function Jee(e){return j(e,"quantile")}function Qee(e){return j(e,"regression")}function Kee(e){return j(e,"loess")}function Zee(e){return j(e,"sample")}function ete(e){return j(e,"window")}function tte(e){return j(e,"joinaggregate")}function nte(e){return j(e,"flatten")}function rte(e){return j(e,"calculate")}function TS(e){return j(e,"bin")}function ite(e){return j(e,"impute")}function ate(e){return j(e,"timeUnit")}function ote(e){return j(e,"aggregate")}function lte(e){return j(e,"stack")}function ste(e){return j(e,"fold")}function ute(e){return j(e,"extent")&&!j(e,"density")&&!j(e,"regression")}function cte(e){return e.map(t=>Eb(t)?{filter:bl(t.filter,WK)}:t)}var fte=class extends bb{map(e,t){return t.emptySelections??(t.emptySelections={}),t.selectionPredicates??(t.selectionPredicates={}),e=LS(e,t),super.map(e,t)}mapLayerOrUnit(e,t){if(e=LS(e,t),e.encoding){let n={};for(let[r,i]of sa(e.encoding))n[r]=PS(i,t);e={...e,encoding:n}}return super.mapLayerOrUnit(e,t)}mapUnit(e,t){let{selection:n,...r}=e;return n?{...r,params:sa(n).map(([i,a])=>{let{init:o,bind:l,empty:s,...u}=a;u.type==="single"?(u.type="point",u.toggle=!1):u.type==="multi"&&(u.type="point"),t.emptySelections[i]=s!=="none";for(let c of ut(t.selectionPredicates[i]??{}))c.empty=s!=="none";return{name:i,value:o,select:u,bind:l}})}:e}};function LS(e,t){let{transform:n,...r}=e;if(n){let i=n.map(a=>{if(Eb(a))return{filter:kb(a,t)};if(TS(a)&&ao(a.bin))return{...a,bin:IS(a.bin)};if(RS(a)){let{selection:o,...l}=a.from;return o?{...a,from:{param:o,...l}}:a}return a});return{...r,transform:i}}return e}function PS(e,t){var r,i;let n=oe(e);if(U(n)&&ao(n.bin)&&(n.bin=IS(n.bin)),go(n)&&((i=(r=n.scale)==null?void 0:r.domain)==null?void 0:i.selection)){let{selection:a,...o}=n.scale.domain;n.scale.domain={...o,...a?{param:a}:{}}}if(qu(n))if(X(n.condition))n.condition=n.condition.map(a=>{let{selection:o,param:l,test:s,...u}=a;return l?a:{...u,test:kb(a,t)}});else{let{selection:a,param:o,test:l,...s}=PS(n.condition,t);n.condition=o?n.condition:{...s,test:kb(n.condition,t)}}return n}function IS(e){let t=e.extent;if(t!=null&&t.selection){let{selection:n,...r}=t;return{...e,extent:{...r,param:n}}}return e}function kb(e,t){let n=r=>bl(r,i=>{var o;let a={param:i,empty:t.emptySelections[i]??!0};return(o=t.selectionPredicates)[i]??(o[i]=[]),t.selectionPredicates[i].push(a),a});return e.selection?n(e.selection):bl(e.test||e.filter,r=>r.selection?n(r.selection):r)}var _b=class extends bb{map(e,t){let n=t.selections??[];if(e.params&&!ki(e)){let r=[];for(let i of e.params)pb(i)?n.push(i):r.push(i);e.params=r}return t.selections=n,super.map(e,t)}mapUnit(e,t){let n=t.selections;if(!n||!n.length)return e;let r=(t.path??[]).concat(e.name),i=[];for(let a of n)if(!a.views||!a.views.length)i.push(a);else for(let o of a.views)(se(o)&&(o===e.name||r.includes(o))||X(o)&&o.map(l=>r.indexOf(l)).every((l,s,u)=>l!==-1&&(s===0||l>u[s-1])))&&i.push(a);return i.length&&(e.params=i),e}};for(let e of["mapFacet","mapRepeat","mapHConcat","mapVConcat","mapLayer"]){let t=_b.prototype[e];_b.prototype[e]=function(n,r){return t.call(this,n,dte(n,r))}}function dte(e,t){return e.name?{...t,path:(t.path??[]).concat(e.name)}:t}function jS(e,t){t===void 0&&(t=kS(e.config));let n=gte(e,t),{width:r,height:i}=e,a=yte(n,{width:r,height:i,autosize:e.autosize},t);return{...n,...a?{autosize:a}:{}}}var hte=new Wee,pte=new fte,mte=new _b;function gte(e,t={}){let n={config:t};return mte.map(hte.map(pte.map(e,n),n),n)}function qS(e){return se(e)?{type:e}:e??{}}function yte(e,t,n){let{width:r,height:i}=t,a=ki(e)||Lh(e),o={};a?r=="container"&&i=="container"?(o.type="fit",o.contains="padding"):r=="container"?(o.type="fit-x",o.contains="padding"):i=="container"&&(o.type="fit-y",o.contains="padding"):(r=="container"&&(q(R3("width")),r=void 0),i=="container"&&(q(R3("height")),i=void 0));let l={type:"pad",...o,...n?qS(n.autosize):{},...qS(e.autosize)};if(l.type==="fit"&&!a&&(q(vQ),l.type="pad"),r=="container"&&!(l.type=="fit"||l.type=="fit-x")&&q(T3("width")),i=="container"&&!(l.type=="fit"||l.type=="fit-y")&&q(T3("height")),!Cn(l,{type:"pad"}))return l}function vte(e){return["fit","fit-x","fit-y"].includes(e)}function bte(e){return e?`fit-${ch(e)}`:"fit"}var xte=["background","padding"];function US(e,t){let n={};for(let r of xte)e&&e[r]!==void 0&&(n[r]=$n(e[r]));return t&&(n.params=e.params),n}var vo=class r4{constructor(t={},n={}){N(this,"explicit");N(this,"implicit");this.explicit=t,this.implicit=n}clone(){return new r4(oe(this.explicit),oe(this.implicit))}combine(){return{...this.explicit,...this.implicit}}get(t){return at(this.explicit[t],this.implicit[t])}getWithExplicit(t){return this.explicit[t]===void 0?this.implicit[t]===void 0?{explicit:!1,value:void 0}:{explicit:!1,value:this.implicit[t]}:{explicit:!0,value:this.explicit[t]}}setWithExplicit(t,{value:n,explicit:r}){n!==void 0&&this.set(t,n,r)}set(t,n,r){return delete this[r?"implicit":"explicit"][t],this[r?"explicit":"implicit"][t]=n,this}copyKeyFromSplit(t,{explicit:n,implicit:r}){n[t]===void 0?r[t]!==void 0&&this.set(t,r[t],!1):this.set(t,n[t],!0)}copyKeyFromObject(t,n){n[t]!==void 0&&this.set(t,n[t],!0)}copyAll(t){for(let n of I(t.combine())){let r=t.getWithExplicit(n);this.setWithExplicit(n,r)}}};function Kr(e){return{explicit:!0,value:e}}function Ar(e){return{explicit:!1,value:e}}function WS(e){return(t,n,r,i)=>{let a=e(t.value,n.value);return a>0?t:a<0?n:Ph(t,n,r,i)}}function Ph(e,t,n,r){return e.explicit&&t.explicit&&q(lK(n,r,e.value,t.value)),e}function wa(e,t,n,r,i=Ph){return e===void 0||e.value===void 0?t:e.explicit&&!t.explicit?e:t.explicit&&!e.explicit?t:Cn(e.value,t.value)?e:i(e,t,n,r)}var wte=class extends vo{constructor(t={},n={},r=!1){super(t,n);N(this,"explicit");N(this,"implicit");N(this,"parseNothing");this.explicit=t,this.implicit=n,this.parseNothing=r}clone(){let t=super.clone();return t.parseNothing=this.parseNothing,t}};function Rl(e){return j(e,"url")}function Hu(e){return j(e,"values")}function GS(e){return j(e,"name")&&!Rl(e)&&!Hu(e)&&!Aa(e)}function Aa(e){return e&&(HS(e)||VS(e)||Db(e))}function HS(e){return j(e,"sequence")}function VS(e){return j(e,"sphere")}function Db(e){return j(e,"graticule")}var et;(function(e){e[e.Raw=0]="Raw",e[e.Main=1]="Main",e[e.Row=2]="Row",e[e.Column=3]="Column",e[e.Lookup=4]="Lookup",e[e.PreFilterInvalid=5]="PreFilterInvalid",e[e.PostFilterInvalid=6]="PostFilterInvalid"})(et||(et={}));function XS({invalid:e,isPath:t}){switch(A5(e,{isPath:t})){case"filter":return{marks:"exclude-invalid-values",scales:"exclude-invalid-values"};case"break-paths-show-domains":return{marks:t?"include-invalid-values":"exclude-invalid-values",scales:"include-invalid-values"};case"break-paths-filter-domains":return{marks:t?"include-invalid-values":"exclude-invalid-values",scales:"exclude-invalid-values"};case"show":return{marks:"include-invalid-values",scales:"include-invalid-values"}}}function Ate(e){let{marks:t,scales:n}=XS(e);return t===n?et.Main:n==="include-invalid-values"?et.PreFilterInvalid:et.PostFilterInvalid}var Te=class{constructor(e,t){N(this,"debugName");N(this,"_children",[]);N(this,"_parent",null);N(this,"_hash");this.debugName=t,e&&(this.parent=e)}clone(){throw Error("Cannot clone node")}get parent(){return this._parent}set parent(e){this._parent=e,e&&e.addChild(this)}get children(){return this._children}numChildren(){return this._children.length}addChild(e,t){if(this._children.includes(e)){q(NQ);return}t===void 0?this._children.push(e):this._children.splice(t,0,e)}removeChild(e){let t=this._children.indexOf(e);return this._children.splice(t,1),t}remove(){let e=this._parent.removeChild(this);for(let t of this._children)t._parent=this._parent,this._parent.addChild(t,e++)}insertAsParentOf(e){let t=e.parent;t.removeChild(this),this.parent=t,e.parent=this}swapWithParent(){let e=this._parent,t=e.parent;for(let r of this._children)r.parent=e;this._children=[],e.removeChild(this);let n=e.parent.removeChild(e);this._parent=t,t.addChild(this,n),e.parent=this}},bn=class extends Te{constructor(t,n,r,i){super(t,n);N(this,"type");N(this,"refCounts");N(this,"_source");N(this,"_name");this.type=r,this.refCounts=i,this._source=this._name=n,this.refCounts&&!(this._name in this.refCounts)&&(this.refCounts[this._name]=0)}clone(){let t=new this.constructor;return t.debugName=`clone_${this.debugName}`,t._source=this._source,t._name=`clone_${this._name}`,t.type=this.type,t.refCounts=this.refCounts,t.refCounts[t._name]=0,t}dependentFields(){return new Set}producedFields(){return new Set}hash(){return this._hash===void 0&&(this._hash=`Output ${s3()}`),this._hash}getSource(){return this.refCounts[this._name]++,this._source}isRequired(){return!!this.refCounts[this._name]}setSource(t){this._source=t}};function Fb(e){return e.as!==void 0}function YS(e){return`${e}_end`}var Tl=class vp extends Te{constructor(n,r){super(n);N(this,"timeUnits");this.timeUnits=r}clone(){return new vp(null,oe(this.timeUnits))}static makeFromEncoding(n,r){let i=r.reduceFieldDef((a,o,l)=>{let{field:s,timeUnit:u}=o;if(u){let c;if(co(u)){if(Je(r)){let{mark:f,markDef:d,config:h}=r,p=ba({fieldDef:o,markDef:d,config:h});(Lu(f)||p)&&(c={timeUnit:xt(u),field:s})}}else c={as:V(o,{forAs:!0}),field:s,timeUnit:u};if(Je(r)){let{mark:f,markDef:d,config:h}=r,p=ba({fieldDef:o,markDef:d,config:h});Lu(f)&&ot(l)&&p!==.5&&(c.rectBandPosition=p)}c&&(a[ye(c)]=c)}return a},{});return Ie(i)?null:new vp(n,i)}static makeFromTransform(n,r){let{timeUnit:i,...a}={...r},o=xt(i),l={...a,timeUnit:o};return new vp(n,{[ye(l)]:l})}merge(n){for(let r in this.timeUnits={...this.timeUnits},n.timeUnits)this.timeUnits[r]||(this.timeUnits[r]=n.timeUnits[r]);for(let r of n.children)n.removeChild(r),r.parent=this;n.remove()}removeFormulas(n){let r={};for(let[i,a]of sa(this.timeUnits)){let o=Fb(a)?a.as:`${a.field}_end`;n.has(o)||(r[i]=a)}this.timeUnits=r}producedFields(){return new Set(ut(this.timeUnits).map(n=>Fb(n)?n.as:YS(n.field)))}dependentFields(){return new Set(ut(this.timeUnits).map(n=>n.field))}hash(){return`TimeUnit ${ye(this.timeUnits)}`}assemble(){let n=[];for(let r of ut(this.timeUnits)){let{rectBandPosition:i}=r,a=xt(r.timeUnit);if(Fb(r)){let{field:o,as:l}=r,{unit:s,utc:u,...c}=a,f=[l,`${l}_end`];n.push({field:Wn(o),type:"timeunit",...s?{units:mh(s)}:{},...u?{timezone:"utc"}:{},...c,as:f}),n.push(...QS(f,i,a))}else if(r){let{field:o}=r,l=o3(o),s=JS({timeUnit:a,field:l}),u=YS(l);n.push({type:"formula",expr:s,as:u}),n.push(...QS([l,u],i,a))}}return n}},Ih="offsetted_rect_start",jh="offsetted_rect_end";function JS({timeUnit:e,field:t,reverse:n}){let{unit:r,utc:i}=e,{part:a,step:o}=o5(n5(r),e.step);return`${i?"utcOffset":"timeOffset"}('${a}', ${Re(t)}, ${n?-o:o})`}function QS([e,t],n,r){if(n!==void 0&&n!==.5){let i=Re(e),a=Re(t);return[{type:"formula",expr:KS([JS({timeUnit:r,field:e,reverse:!0}),i],n+.5),as:`${e}_${Ih}`},{type:"formula",expr:KS([i,a],n+.5),as:`${e}_${jh}`}]}return[]}function KS([e,t],n){return`${1-n} * ${e} + ${n} * ${t}`}var Vu="_tuple_fields",Ete=class{constructor(...e){N(this,"hasChannel");N(this,"hasField");N(this,"hasSelectionId");N(this,"timeUnit");N(this,"items");this.items=e,this.hasChannel={},this.hasField={},this.hasSelectionId=!1}},kte={defined:()=>!0,parse:(e,t,n)=>{let r=t.name,i=t.project??(t.project=new Ete),a={},o={},l=new Set,s=(p,m)=>{let g=m==="visual"?p.channel:p.field,y=Ve(`${r}_${g}`);for(let v=1;l.has(y);v++)y=Ve(`${r}_${g}_${v}`);return l.add(y),{[m]:y}},u=t.type,c=e.config.selection[u],f=n.value===void 0?null:it(n.value),{fields:d,encodings:h}=Ae(n.select)?n.select:{};if(!d&&!h&&f){for(let p of f)if(Ae(p))for(let m of I(p))HJ(m)?(h||(h=[])).push(m):u==="interval"?(q(CQ),h=c.encodings):(d??(d=[])).push(m)}!d&&!h&&(h=c.encodings,"fields"in c&&(d=c.fields));for(let p of h??[]){let m=e.fieldDef(p);if(m){let g=m.field;if(m.aggregate){q(bQ(p,m.aggregate));continue}else if(!g){q(P3(p));continue}if(m.timeUnit&&!co(m.timeUnit)){g=e.vgField(p);let y={timeUnit:m.timeUnit,as:g,field:m.field};o[ye(y)]=y}if(!a[g]){let y=u==="interval"&&Gr(p)&&yr(e.getScaleComponent(p).get("type"))?"R":m.bin?"R-RE":"E",v={field:g,channel:p,type:y,index:i.items.length};v.signals={...s(v,"data"),...s(v,"visual")},i.items.push(a[g]=v),i.hasField[g]=a[g],i.hasSelectionId=i.hasSelectionId||g===wr,m3(p)?(v.geoChannel=p,v.channel=p3(p),i.hasChannel[v.channel]=a[g]):i.hasChannel[p]=a[g]}}else q(P3(p))}for(let p of d??[]){if(i.hasField[p])continue;let m={type:"E",field:p,index:i.items.length};m.signals={...s(m,"data")},i.items.push(m),i.hasField[p]=m,i.hasSelectionId=i.hasSelectionId||p===wr}f&&(t.init=f.map(p=>i.items.map(m=>Ae(p)?p[m.geoChannel||m.channel]===void 0?p[m.field]:p[m.geoChannel||m.channel]:p))),Ie(o)||(i.timeUnit=new Tl(null,o))},signals:(e,t,n)=>{let r=t.name+Vu;return n.filter(i=>i.name===r).length>0||t.project.hasSelectionId?n:n.concat({name:r,value:t.project.items.map(n6)})}},ZS="_curr",qh="anim_value",Ll="anim_clock",Cb="eased_anim_clock",e6="min_extent",t6="max_range_extent",$b="last_tick_at",Sb="is_playing",_te=1/60*1e3,Dte=(e,t)=>[{name:Cb,update:Ll},{name:`${e}_domain`,init:`domain('${t}')`},{name:e6,init:`extent(${e}_domain)[0]`},{name:t6,init:`extent(range('${t}'))[1]`},{name:qh,update:`invert('${t}', ${Cb})`}],Fte={defined:e=>e.type==="point",topLevelSignals:(e,t,n)=>(Zr(t)&&(n=n.concat([{name:Ll,init:"0",on:[{events:{type:"timer",throttle:_te},update:`${Sb} ? (${Ll} + (now() - ${$b}) > ${t6} ? 0 : ${Ll} + (now() - ${$b})) : ${Ll}`}]},{name:$b,init:"now()",on:[{events:[{signal:Ll},{signal:Sb}],update:"now()"}]},{name:Sb,init:"true"}])),n),signals:(e,t,n)=>{let r=t.name,i=r+Vu,a=t.project,o="(item().isVoronoi ? datum.datum : datum)",l=ut(e.component.selection??{}).reduce((c,f)=>f.type==="interval"?c.concat(f.name+Pl):c,[]).map(c=>`indexof(item().mark.name, '${c}') < 0`).join(" && "),s=`datum && item().mark.marktype !== 'group' && indexof(item().mark.role, 'legend') < 0${l?` && ${l}`:""}`,u=`unit: ${wo(e)}, `;if(t.project.hasSelectionId)u+=`${wr}: ${o}[${we(wr)}]`;else if(Zr(t))u+=`fields: ${i}, values: [${qh} ? ${qh} : ${e6}]`;else{let c=a.items.map(f=>{var d;return(d=e.fieldDef(f.channel))!=null&&d.bin?`[${o}[${we(e.vgField(f.channel,{}))}], ${o}[${we(e.vgField(f.channel,{binSuffix:"end"}))}]]`:`${o}[${we(f.field)}]`}).join(", ");u+=`fields: ${i}, values: [${c}]`}if(Zr(t))return n.concat(Dte(t.name,e.scaleName(ca)),[{name:r+Ci,on:[{events:[{signal:Cb},{signal:qh}],update:`{${u}}`,force:!0}]}]);{let c=t.events;return n.concat([{name:r+Ci,on:c?[{events:c,update:`${s} ? {${u}} : null`,force:!0}]:[]}])}}};function n6(e){let{signals:t,hasLegend:n,index:r,...i}=e;return i.field=Wn(i.field),i}function bo(e,t=!0,n=wY){if(X(e)){let r=e.map(i=>bo(i,t,n));return t?`[${r.join(", ")}]`:r}else if(so(e))return n(t?uo(e):OK(e));return t?n(Se(e)):e}function Cte(e,t){for(let n of ut(e.component.selection??{})){let r=n.name,i=`${r}${Ci}, ${n.resolve==="global"?"true":`{unit: ${wo(e)}}`}`;for(let a of Vh)a.defined(n)&&(a.signals&&(t=a.signals(e,n,t)),a.modifyExpr&&(i=a.modifyExpr(e,n,i)));t.push({name:r+tne,on:[{events:{signal:n.name+Ci},update:`modify(${we(n.name+xo)}, ${i})`}]})}return Mb(t)}function $te(e,t){if(e.component.selection&&I(e.component.selection).length){let n=we(e.getName("cell"));t.unshift({name:"facet",value:{},on:[{events:aa("pointermove","scope"),update:`isTuple(facet) ? facet : group(${n}).datum`}]})}return Mb(t)}function Ste(e,t){let n=!1;for(let r of ut(e.component.selection??{})){let i=r.name,a=we(i+xo);if(t.filter(o=>o.name===i).length===0){let o=r.resolve==="global"?"union":r.resolve,l=r.type==="point"?", true, true)":")";t.push({name:r.name,update:`${F6}(${a}, ${we(o)}${l}`})}n=!0;for(let o of Vh)o.defined(r)&&o.topLevelSignals&&(t=o.topLevelSignals(e,r,t))}return n&&t.filter(r=>r.name==="unit").length===0&&t.unshift({name:"unit",value:{},on:[{events:"pointermove",update:"isTuple(group()) ? group() : unit"}]}),Mb(t)}function Mte(e,t){let n=[],r=[],i=wo(e,{escape:!1});for(let a of ut(e.component.selection??{})){let o={name:a.name+xo};if(a.project.hasSelectionId&&(o.transform=[{type:"collect",sort:{field:wr}}]),a.init){let l=a.project.items.map(n6);o.values=a.project.hasSelectionId?a.init.map(s=>({unit:i,[wr]:bo(s,!1)[0]})):a.init.map(s=>({unit:i,fields:l,values:bo(s,!1)}))}if([...n,...t].filter(l=>l.name===a.name+xo).length||n.push(o),Zr(a)&&t.length){let l=e.lookupDataSource(e.getDataName(et.Main)),s=t.find(c=>c.name===l),u=s.transform.find(c=>c.type==="filter"&&c.expr.includes("vlSelectionTest"));if(u){s.transform=s.transform.filter(f=>f!==u);let c={name:s.name+ZS,source:s.name,transform:[u]};r.push(c)}}}return n.concat(t,r)}function r6(e,t){for(let n of ut(e.component.selection??{}))for(let r of Vh)r.defined(n)&&r.marks&&(t=r.marks(e,n,t));return t}function Ote(e,t){for(let n of e.children)Je(n)&&(t=r6(n,t));return t}function Bte(e,t,n,r){let i=O6(e,t.param,t);return{signal:yr(n.get("type"))&&X(r)&&r[0]>r[1]?`isValid(${i}) && reverse(${i})`:i}}function Mb(e){return e.map(t=>(t.on&&!t.on.length&&delete t.on,t))}var Di={defined:e=>e.type==="interval"&&e.resolve==="global"&&e.bind&&e.bind==="scales",parse:(e,t)=>{let n=t.scales=[];for(let r of t.project.items){let i=r.channel;if(!Gr(i))continue;let a=e.getScaleComponent(i),o=a?a.get("type"):void 0;if(o=="sequential"&&q(EQ),!a||!yr(o)){q(AQ);continue}a.set("selectionExtent",{param:t.name,field:r.field},!0),n.push(r)}},topLevelSignals:(e,t,n)=>{let r=t.scales.filter(o=>n.filter(l=>l.name===o.signals.data).length===0);if(!e.parent||Bb(e)||r.length===0)return n;let i=n.find(o=>o.name===t.name),a=i.update;if(a.includes(F6))i.update=`{${r.map(o=>`${we(Wn(o.field))}: ${o.signals.data}`).join(", ")}}`;else{for(let o of r){let l=`${we(Wn(o.field))}: ${o.signals.data}`;a.includes(l)||(a=`${a.substring(0,a.length-1)}, ${l}}`)}i.update=a}return n.concat(r.map(o=>({name:o.signals.data})))},signals:(e,t,n)=>{if(e.parent&&!Bb(e))for(let r of t.scales){let i=n.find(a=>a.name===r.signals.data);i.push="outer",delete i.value,delete i.update}return n}};function Ob(e,t){return`domain(${we(e.scaleName(t))})`}function Bb(e){return e.parent&&Vl(e.parent)&&(!e.parent.parent||Bb(e.parent.parent))}var Pl="_brush",i6="_scale_trigger",Xu="geo_interval_init_tick",a6="_init",zte="_center",Nte={defined:e=>e.type==="interval",parse:(e,t,n)=>{var r;if(e.hasProjection){let i={...ue(n.select)?n.select:{}};i.fields=[wr],i.encodings||(i.encodings=n.value?I(n.value):[pr,hr]),n.select={type:"interval",...i}}if(t.translate&&!Di.defined(t)){let i=`!event.item || event.item.mark.name !== ${we(t.name+Pl)}`;for(let a of t.events){if(!a.between){q(`${a} is not an ordered event stream for interval selections.`);continue}let o=it((r=a.between[0]).filter??(r.filter=[]));o.includes(i)||o.push(i)}}},signals:(e,t,n)=>{let r=t.name,i=r+Ci,a=ut(t.project.hasChannel).filter(l=>l.channel===Xe||l.channel===bt),o=t.init?t.init[0]:null;if(n.push(...a.reduce((l,s)=>l.concat(Rte(e,t,s,o==null?void 0:o[s.index])),[])),e.hasProjection){let l=we(e.projectionName()),s=e.projectionName()+zte,{x:u,y:c}=t.project.hasChannel,f=u==null?void 0:u.signals.visual,d=c==null?void 0:c.signals.visual,h=u?o==null?void 0:o[u.index]:`${s}[0]`,p=c?o==null?void 0:o[c.index]:`${s}[1]`,m=b=>e.getSizeSignalRef(b).signal,g=`[[${f?`${f}[0]`:"0"}, ${d?`${d}[0]`:"0"}],[${f?`${f}[1]`:m("width")}, ${d?`${d}[1]`:m("height")}]]`;o&&(n.unshift({name:r+a6,init:`[scale(${l}, [${u?h[0]:h}, ${c?p[0]:p}]), scale(${l}, [${u?h[1]:h}, ${c?p[1]:p}])]`}),(!u||!c)&&(n.find(b=>b.name===s)||n.unshift({name:s,update:`invert(${l}, [${m("width")}/2, ${m("height")}/2])`})));let y=`vlSelectionTuples(${`intersect(${g}, {markname: ${we(e.getName("marks"))}}, unit.mark)`}, ${`{unit: ${wo(e)}}`})`,v=a.map(b=>b.signals.visual);return n.concat({name:i,on:[{events:[...v.length?[{signal:v.join(" || ")}]:[],...o?[{signal:Xu}]:[]],update:y}]})}else{if(!Di.defined(t)){let u=r+i6,c=a.map(f=>{let d=f.channel,{data:h,visual:p}=f.signals,m=we(e.scaleName(d)),g=yr(e.getScaleComponent(d).get("type"))?"+":"";return`(!isArray(${h}) || (${g}invert(${m}, ${p})[0] === ${g}${h}[0] && ${g}invert(${m}, ${p})[1] === ${g}${h}[1]))`});c.length&&n.push({name:u,value:{},on:[{events:a.map(f=>({scale:e.scaleName(f.channel)})),update:`${c.join(" && ")} ? ${u} : {}`}]})}let l=a.map(u=>u.signals.data),s=`unit: ${wo(e)}, fields: ${r+Vu}, values`;return n.concat({name:i,...o?{init:`{${s}: ${bo(o)}}`}:{},...l.length?{on:[{events:[{signal:l.join(" || ")}],update:`${l.join(" && ")} ? {${s}: [${l}]} : null`}]}:{}})}},topLevelSignals:(e,t,n)=>(Je(e)&&e.hasProjection&&t.init&&(n.filter(r=>r.name===Xu).length||n.unshift({name:Xu,value:null,on:[{events:"timer{1}",update:`${Xu} === null ? {} : ${Xu}`}]})),n),marks:(e,t,n)=>{let r=t.name,{x:i,y:a}=t.project.hasChannel,o=i==null?void 0:i.signals.visual,l=a==null?void 0:a.signals.visual,s=`data(${we(t.name+xo)})`;if(Di.defined(t)||!i&&!a)return n;let u={x:i===void 0?{value:0}:{signal:`${o}[0]`},y:a===void 0?{value:0}:{signal:`${l}[0]`},x2:i===void 0?{field:{group:"width"}}:{signal:`${o}[1]`},y2:a===void 0?{field:{group:"height"}}:{signal:`${l}[1]`}};if(t.resolve==="global")for(let g of I(u))u[g]=[{test:`${s}.length && ${s}[0].unit === ${wo(e)}`,...u[g]},{value:0}];let{fill:c,fillOpacity:f,cursor:d,...h}=t.mark,p=I(h).reduce((g,y)=>(g[y]=[{test:[i!==void 0&&`${o}[0] !== ${o}[1]`,a!==void 0&&`${l}[0] !== ${l}[1]`].filter(v=>v).join(" && "),value:h[y]},{value:null}],g),{}),m=d??(t.translate?"move":null);return[{name:`${r+Pl}_bg`,type:"rect",clip:!0,encode:{enter:{fill:{value:c},fillOpacity:{value:f}},update:u}},...n,{name:r+Pl,type:"rect",clip:!0,encode:{enter:{...m?{cursor:{value:m}}:{},fill:{value:"transparent"}},update:{...u,...p}}}]}};function Rte(e,t,n,r){let i=!e.hasProjection,a=n.channel,o=n.signals.visual,l=we(i?e.scaleName(a):e.projectionName()),s=d=>`scale(${l}, ${d})`,u=e.getSizeSignalRef(a===Xe?"width":"height").signal,c=`${a}(unit)`,f=t.events.reduce((d,h)=>[...d,{events:h.between[0],update:`[${c}, ${c}]`},{events:h,update:`[${o}[0], clamp(${c}, 0, ${u})]`}],[]);if(i){let d=n.signals.data,h=Di.defined(t),p=e.getScaleComponent(a),m=p?p.get("type"):void 0,g=r?{init:bo(r,!0,s)}:{value:[]};return f.push({events:{signal:t.name+i6},update:yr(m)?`[${s(`${d}[0]`)}, ${s(`${d}[1]`)}]`:"[0, 0]"}),h?[{name:d,on:[]}]:[{name:o,...g,on:f},{name:d,...r?{init:bo(r)}:{},on:[{events:{signal:o},update:`${o}[0] === ${o}[1] ? null : invert(${l}, ${o})`}]}]}else{let d=a===Xe?0:1,h=t.name+a6;return[{name:o,...r?{init:`[${h}[0][${d}], ${h}[1][${d}]]`}:{value:[]},on:f}]}}function Il({model:e,channelDef:t,vgChannel:n,invalidValueRef:r,mainRefFn:i}){let a=qu(t)&&t.condition,o=[];a&&(o=it(a).map(s=>{let u=i(s);if(FZ(s)){let{param:c,empty:f}=s;return{test:M6(e,{param:c,empty:f}),...u}}else return{test:Yh(e,s.test),...u}})),r!==void 0&&o.push(r);let l=i(t);return l!==void 0&&o.push(l),o.length>1||o.length===1&&o[0].test?{[n]:o}:o.length===1?{[n]:o[0]}:{}}function zb(e,t="text"){let n=e.encoding[t];return Il({model:e,channelDef:n,vgChannel:t,mainRefFn:r=>Uh(r,e.config),invalidValueRef:void 0})}function Uh(e,t,n="datum"){if(e){if(br(e))return We(e.value);if(le(e)){let{format:r,formatType:i}=Ch(e);return Kv({fieldOrDatumDef:e,format:r,formatType:i,expr:n,config:t})}}}function o6(e,t={}){let{encoding:n,markDef:r,config:i,stack:a}=e,o=n.tooltip;if(X(o))return{tooltip:s6({tooltip:o},a,i,t)};{let l=t.reactiveGeom?"datum.datum":"datum";return Il({model:e,channelDef:o,vgChannel:"tooltip",mainRefFn:s=>{let u=Uh(s,i,l);if(u)return u;if(s===null)return;let c=Me("tooltip",r,i);if(c===!0&&(c={content:"encoding"}),se(c))return{value:c};if(Ae(c))return Q(c)?c:c.content==="encoding"?s6(n,a,i,t):{signal:l}},invalidValueRef:void 0})}}function l6(e,t,n,{reactiveGeom:r}={}){let i={...n,...n.tooltipFormat},a=new Set,o=r?"datum.datum":"datum",l=[];function s(c,f){let d=io(f),h=an(c)?c:{...c,type:e[d].type},p=it(h.title||rb(h,i)).join(", ").replaceAll(/"/g,'\\"'),m;if(ot(f)){let g=f==="x"?"x2":"y2",y=xr(e[g]);if(Ft(h.bin)&&y){let v=V(h,{expr:o}),b=V(y,{expr:o}),{format:w,formatType:A}=Ch(h);m=Iu(v,b,w,A,i),a.add(g)}}if((ot(f)||f===Gn||f===dr)&&t&&t.fieldChannel===f&&t.offset==="normalize"){let{format:g,formatType:y}=Ch(h);m=Kv({fieldOrDatumDef:h,format:g,formatType:y,expr:o,config:i,normalizeStack:!0}).signal}m??(m=Uh(h,i,o).signal),l.push({channel:f,key:p,value:m})}ab(e,(c,f)=>{U(c)?s(c,f):_h(c)&&s(c.condition,f)});let u={};for(let{channel:c,key:f,value:d}of l)!a.has(c)&&!u[f]&&(u[f]=d);return u}function s6(e,t,n,{reactiveGeom:r}={}){let i=sa(l6(e,t,n,{reactiveGeom:r})).map(([a,o])=>`"${a}": ${o}`);return i.length>0?{signal:`{${i.join(", ")}}`}:void 0}function Tte(e){let{markDef:t,config:n}=e,r=Me("aria",t,n);return r===!1?{}:{...r?{aria:r}:{},...Lte(e),...Pte(e)}}function Lte(e){let{mark:t,markDef:n,config:r}=e;if(r.aria===!1)return{};let i=Me("ariaRoleDescription",n,r);return i==null?st(pQ,t)?{}:{ariaRoleDescription:{value:t}}:{ariaRoleDescription:{value:i}}}function Pte(e){let{encoding:t,markDef:n,config:r,stack:i}=e,a=t.description;if(a)return Il({model:e,channelDef:a,vgChannel:"description",mainRefFn:s=>Uh(s,e.config),invalidValueRef:void 0});let o=Me("description",n,r);if(o!=null)return{description:We(o)};if(r.aria===!1)return{};let l=l6(t,i,r);if(!Ie(l))return{description:{signal:sa(l).filter(([s])=>!s.startsWith("_")).map(([s,u],c)=>`"${c>0?"; ":""}${s}: " + (${u})`).join(" + ")}}}function St(e,t,n={}){let{markDef:r,encoding:i,config:a}=t,{vgChannel:o}=n,{defaultRef:l,defaultValue:s}=n,u=i[e];l===void 0&&(s??(s=Me(e,r,a,{vgChannel:o,ignoreVgConfig:!qu(u)})),s!==void 0&&(l=We(s)));let c={markDef:r,config:a,scaleName:t.scaleName(e),scale:t.getScaleComponent(e)},f=k5({...c,scaleChannel:e,channelDef:u});return Il({model:t,channelDef:u,vgChannel:o??e,invalidValueRef:f,mainRefFn:d=>Qv({...c,channel:e,channelDef:d,stack:null,defaultRef:l})})}function u6(e,t={filled:void 0}){let{markDef:n,encoding:r,config:i}=e,{type:a}=n,o=t.filled??Me("filled",n,i),l=he(["bar","point","circle","square","geoshape"],a)?"transparent":void 0,s=Me(o===!0?"color":void 0,n,i,{vgChannel:"fill"})??i.mark[o===!0&&"color"]??l,u=Me(o===!1?"color":void 0,n,i,{vgChannel:"stroke"})??i.mark[o===!1&&"color"],c=o?"fill":"stroke",f={...s?{fill:We(s)}:{},...u?{stroke:We(u)}:{}};return n.color&&(o?n.fill:n.stroke)&&q(G3("property",{fill:"fill"in n,stroke:"stroke"in n})),{...f,...St("color",e,{vgChannel:c,defaultValue:o?s:u}),...St("fill",e,{defaultValue:r.fill?s:void 0}),...St("stroke",e,{defaultValue:r.stroke?u:void 0})}}function Ite(e){let{encoding:t,mark:n}=e,r=t.order;return!va(n)&&br(r)?Il({model:e,channelDef:r,vgChannel:"zindex",mainRefFn:i=>We(i.value),invalidValueRef:void 0}):{}}function jl({channel:e,markDef:t,encoding:n={},model:r,bandPosition:i}){let a=`${e}Offset`,o=t[a],l=n[a];if((a==="xOffset"||a==="yOffset")&&l)return{offsetType:"encoding",offset:Qv({channel:a,channelDef:l,markDef:t,config:r==null?void 0:r.config,scaleName:r.scaleName(a),scale:r.getScaleComponent(a),stack:null,defaultRef:We(o),bandPosition:i})};let s=t[a];return s?{offsetType:"visual",offset:s}:{}}function on(e,t,{defaultPos:n,vgChannel:r}){let{encoding:i,markDef:a,config:o,stack:l}=t,s=i[e],u=i[Wr(e)],c=t.scaleName(e),f=t.getScaleComponent(e),{offset:d,offsetType:h}=jl({channel:e,markDef:a,encoding:i,model:t,bandPosition:.5}),p=Nb({model:t,defaultPos:n,channel:e,scaleName:c,scale:f}),m=!s&&ot(e)&&(i.latitude||i.longitude)?{field:t.getName(e)}:jte({channel:e,channelDef:s,channel2Def:u,markDef:a,config:o,scaleName:c,scale:f,stack:l,offset:d,defaultRef:p,bandPosition:h==="encoding"?0:void 0});return m?{[r||e]:m}:void 0}function jte(e){let{channel:t,channelDef:n,scaleName:r,stack:i,offset:a,markDef:o}=e;if(le(n)&&i&&t===i.fieldChannel){if(U(n)){let l=n.bandPosition;if(l===void 0&&o.type==="text"&&(t==="radius"||t==="theta")&&(l=.5),l!==void 0)return Ah({scaleName:r,fieldOrDatumDef:n,startSuffix:"start",bandPosition:l,offset:a})}return po(n,r,{suffix:"end"},{offset:a})}return Jv(e)}function Nb({model:e,defaultPos:t,channel:n,scaleName:r,scale:i}){let{markDef:a,config:o}=e;return()=>{let l=io(n),s=Me(n,a,o,{vgChannel:ma(n)});if(s!==void 0)return Pu(n,s);switch(t){case"zeroOrMin":return c6({scaleName:r,scale:i,mode:"zeroOrMin",mainChannel:l,config:o});case"zeroOrMax":return c6({scaleName:r,scale:i,mode:{zeroOrMax:{widthSignal:e.width.signal,heightSignal:e.height.signal}},mainChannel:l,config:o});case"mid":return{...e[vn(n)],mult:.5}}}}function c6({mainChannel:e,config:t,...n}){let r=E5(n),{mode:i}=n;if(r)return r;switch(e){case"radius":{if(i==="zeroOrMin")return{value:0};let{widthSignal:a,heightSignal:o}=i.zeroOrMax;return{signal:`min(${a},${o})/2`}}case"theta":return i==="zeroOrMin"?{value:0}:{signal:"2*PI"};case"x":return i==="zeroOrMin"?{value:0}:{field:{group:"width"}};case"y":return i==="zeroOrMin"?{field:{group:"height"}}:{value:0}}}var qte={left:"x",center:"xc",right:"x2"},Ute={top:"y",middle:"yc",bottom:"y2"};function f6(e,t,n,r="middle"){if(e==="radius"||e==="theta")return ma(e);let i=e==="x"?"align":"baseline",a=Me(i,t,n),o;return Q(a)?(q(JQ(i)),o=void 0):o=a,e==="x"?qte[o||(r==="top"?"left":"center")]:Ute[o||r]}function Wh(e,t,{defaultPos:n,defaultPos2:r,range:i}){return i?d6(e,t,{defaultPos:n,defaultPos2:r}):on(e,t,{defaultPos:n})}function d6(e,t,{defaultPos:n,defaultPos2:r}){let{markDef:i,config:a}=t,o=Wr(e),l=vn(e),s=Wte(t,r,o);return{...on(e,t,{defaultPos:n,vgChannel:s[l]?f6(e,i,a):ma(e)}),...s}}function Wte(e,t,n){let{encoding:r,mark:i,markDef:a,stack:o,config:l}=e,s=io(n),u=vn(n),c=ma(n),f=r[s],d=e.scaleName(s),h=e.getScaleComponent(s),{offset:p}=n in r||n in a?jl({channel:n,markDef:a,encoding:r,model:e}):jl({channel:s,markDef:a,encoding:r,model:e});if(!f&&(n==="x2"||n==="y2")&&(r.latitude||r.longitude)){let g=vn(n),y=e.markDef[g];return y==null?{[c]:{field:e.getName(n)}}:{[g]:{value:y}}}let m=Gte({channel:n,channelDef:f,channel2Def:r[n],markDef:a,config:l,scaleName:d,scale:h,stack:o,offset:p,defaultRef:void 0});return m===void 0?Gh(n,a)||Gh(n,{[n]:Ev(n,a,l.style),[u]:Ev(u,a,l.style)})||Gh(n,l[i])||Gh(n,l.mark)||{[c]:Nb({model:e,defaultPos:t,channel:n,scaleName:d,scale:h})()}:{[c]:m}}function Gte({channel:e,channelDef:t,channel2Def:n,markDef:r,config:i,scaleName:a,scale:o,stack:l,offset:s,defaultRef:u}){return le(t)&&l&&e.charAt(0)===l.fieldChannel.charAt(0)?po(t,a,{suffix:"start"},{offset:s}):Jv({channel:e,channelDef:n,scaleName:a,scale:o,stack:l,markDef:r,config:i,offset:s,defaultRef:u})}function Gh(e,t){let n=vn(e),r=ma(e);if(t[r]!==void 0)return{[r]:Pu(e,t[r])};if(t[e]!==void 0)return{[r]:Pu(e,t[e])};if(t[n]){let i=t[n];if(ho(i))q(WQ(n));else return{[n]:Pu(e,i)}}}function Fi(e,t){let{config:n,encoding:r,markDef:i}=e,a=i.type,o=Wr(t),l=vn(t),s=r[t],u=r[o],c=e.getScaleComponent(t),f=c?c.get("type"):void 0,d=i.orient,h=r[l]??r.size??Me("size",i,n,{vgChannel:l}),p=b3(t),m=a==="bar"&&(t==="x"?d==="vertical":d==="horizontal")||a==="tick"&&(t==="y"?d==="vertical":d==="horizontal");return U(s)&&(je(s.bin)||Ft(s.bin)||s.timeUnit&&!u)&&!(h&&!ho(h))&&!r[p]&&!wt(f)?Xte({fieldDef:s,fieldDef2:u,channel:t,model:e}):(le(s)&&wt(f)||m)&&!u?Vte(s,t,e):d6(t,e,{defaultPos:"zeroOrMax",defaultPos2:"zeroOrMin"})}function Hte(e,t,n,r,i,a,o){if(ho(i))if(n){let l=n.get("type");if(l==="band"){let s=`bandwidth('${t}')`;i.band!==1&&(s=`${i.band} * ${s}`);let u=Hr("minBandSize",{type:o},r);return{signal:u?`max(${gr(u)}, ${s})`:s}}else i.band!==1&&(q(eK(l)),i=void 0)}else return{mult:i.band,field:{group:e}};else{if(Q(i))return i;if(i)return{value:i}}if(n){let l=n.get("range");if(oo(l)&&He(l.step))return{value:l.step-2}}if(!a){let{bandPaddingInner:l,barBandPaddingInner:s,rectBandPaddingInner:u,tickBandPaddingInner:c}=r.scale,f=at(l,o==="tick"?c:o==="bar"?s:u);if(Q(f))return{signal:`(1 - (${f.signal})) * ${e}`};if(He(f))return{signal:`${1-f} * ${e}`}}return{value:vb(r.view,e)-2}}function Vte(e,t,n){var k,_;let{markDef:r,encoding:i,config:a,stack:o}=n,l=r.orient,s=n.scaleName(t),u=n.getScaleComponent(t),c=vn(t),f=Wr(t),d=b3(t),h=n.scaleName(d),p=n.getScaleComponent(pv(t)),m=r.type==="tick"||l==="horizontal"&&t==="y"||l==="vertical"&&t==="x",g;(i.size||r.size)&&(m?g=St("size",n,{vgChannel:c,defaultRef:We(r.size)}):q(iK(r.type)));let y=!!g,v=z5({channel:t,fieldDef:e,markDef:r,config:a,scaleType:(k=u||p)==null?void 0:k.get("type"),useVlSizeChannel:m});g||(g={[c]:Hte(c,h||s,p||u,a,v,!!e,r.type)});let b=f6(t,r,a,((_=u||p)==null?void 0:_.get("type"))==="band"&&ho(v)&&!y?"top":"middle"),w=b==="xc"||b==="yc",{offset:A,offsetType:E}=jl({channel:t,markDef:r,encoding:i,model:n,bandPosition:w?.5:0}),x=Jv({channel:t,channelDef:e,markDef:r,config:a,scaleName:s,scale:u,stack:o,offset:A,defaultRef:Nb({model:n,defaultPos:"mid",channel:t,scaleName:s,scale:u}),bandPosition:w?E==="encoding"?0:.5:Q(v)?{signal:`(1-${v})/2`}:ho(v)?(1-v.band)/2:0});if(c)return{[b]:x,...g};{let F=ma(f),$=g[c],R=A?{...$,offset:A}:$;return{[b]:x,[F]:X(x)?[x[0],{...x[1],offset:R}]:{...x,offset:R}}}}function h6(e,t,n,r,i,a,o){if(h3(e))return 0;let l=e==="x"||e==="y2",s=l?-t/2:t/2;if(Q(n)||Q(i)||Q(r)||a){let u=gr(n),c=gr(i),f=gr(r),d=gr(a),h=a?`(${o} < ${d} ? ${l?"":"-"}0.5 * (${d} - (${o})) : ${s})`:s,p=f?`${f} + `:"",m=u?`(${u} ? -1 : 1) * `:"",g=c?`(${c} + ${h})`:h;return{signal:p+m+g}}else return i||(i=0),r+(n?-i-s:+i+s)}function Xte({fieldDef:e,fieldDef2:t,channel:n,model:r}){var _,F;let{config:i,markDef:a,encoding:o}=r,l=r.getScaleComponent(n),s=r.scaleName(n),u=l?l.get("type"):void 0,c=l.get("reverse"),f=z5({channel:n,fieldDef:e,markDef:a,config:i,scaleType:u}),d=((F=(_=r.component.axes[n])==null?void 0:_[0])==null?void 0:F.get("translate"))??.5,h=ot(n)?Me("binSpacing",a,i)??0:0,p=Wr(n),m=ma(n),g=ma(p),y=Hr("minBandSize",a,i),{offset:v}=jl({channel:n,markDef:a,encoding:o,model:r,bandPosition:0}),{offset:b}=jl({channel:p,markDef:a,encoding:o,model:r,bandPosition:0}),w=AZ({fieldDef:e,scaleName:s}),A=h6(n,h,c,d,v,y,w),E=h6(p,h,c,d,b??v,y,w),x=Q(f)?{signal:`(1-${f.signal})/2`}:ho(f)?(1-f.band)/2:.5,k=ba({fieldDef:e,fieldDef2:t,markDef:a,config:i});if(je(e.bin)||e.timeUnit){let $=e.timeUnit&&k!==.5;return{[g]:p6({fieldDef:e,scaleName:s,bandPosition:x,offset:E,useRectOffsetField:$}),[m]:p6({fieldDef:e,scaleName:s,bandPosition:Q(x)?{signal:`1-${x.signal}`}:1-x,offset:A,useRectOffsetField:$})}}else if(Ft(e.bin)){let $=po(e,s,{},{offset:E});if(U(t))return{[g]:$,[m]:po(t,s,{},{offset:A})};if(ao(e.bin)&&e.bin.step)return{[g]:$,[m]:{signal:`scale("${s}", ${V(e,{expr:"datum"})} + ${e.bin.step})`,offset:A}}}q(J3(p))}function p6({fieldDef:e,scaleName:t,bandPosition:n,offset:r,useRectOffsetField:i}){return Ah({scaleName:t,fieldOrDatumDef:e,bandPosition:n,offset:r,...i?{startSuffix:Ih,endSuffix:jh}:{}})}var Yte=new Set(["aria","width","height"]);function Xn(e,t){let{fill:n=void 0,stroke:r=void 0}=t.color==="include"?u6(e):{};return{...Jte(e.markDef,t),...m6("fill",n),...m6("stroke",r),...St("opacity",e),...St("fillOpacity",e),...St("strokeOpacity",e),...St("strokeWidth",e),...St("strokeDash",e),...Ite(e),...o6(e),...zb(e,"href"),...Tte(e)}}function m6(e,t){return t?{[e]:t}:{}}function Jte(e,t){return hQ.reduce((n,r)=>(!Yte.has(r)&&j(e,r)&&t[r]!=="ignore"&&(n[r]=We(e[r])),n),{})}function Rb(e){let{config:t,markDef:n}=e,r=new Set;if(e.forEachFieldDef((i,a)=>{var s;let o;if(!Gr(a)||!(o=e.getScaleType(a)))return;let l=fh(i.aggregate);if(bZ(Yv({scaleChannel:a,markDef:n,config:t,scaleType:o,isCountAggregate:l}))){let u=e.vgField(a,{expr:"datum",binSuffix:(s=e.stack)!=null&&s.impute?"mid":void 0});u&&r.add(u)}}),r.size>0)return{defined:{signal:[...r].map(i=>gh(i,!0)).join(" && ")}}}function g6(e,t){if(t!==void 0)return{[e]:We(t)}}var Tb="voronoi",y6={defined:e=>e.type==="point"&&e.nearest,parse:(e,t)=>{if(t.events)for(let n of t.events)n.markname=e.getName(Tb)},marks:(e,t,n)=>{let{x:r,y:i}=t.project.hasChannel,a=e.mark;if(va(a))return q(xQ(a)),n;let o={name:e.getName(Tb),type:"path",interactive:!0,aria:!1,from:{data:e.getName("marks")},encode:{update:{fill:{value:"transparent"},strokeWidth:{value:.35},stroke:{value:"transparent"},isVoronoi:{value:!0},...o6(e,{reactiveGeom:!0})}},transform:[{type:"voronoi",x:{expr:r||!i?"datum.datum.x || 0":"0"},y:{expr:i||!r?"datum.datum.y || 0":"0"},size:[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]}]},l=0,s=!1;return n.forEach((u,c)=>{let f=u.name??"";f===e.component.mark[0].name?l=c:f.includes(Tb)&&(s=!0)}),s||n.splice(l+1,0,o),n}},v6={defined:e=>e.type==="point"&&e.resolve==="global"&&e.bind&&e.bind!=="scales"&&!db(e.bind),parse:(e,t,n)=>C6(t,n),topLevelSignals:(e,t,n)=>{var s;let r=t.name,i=t.project,a=t.bind,o=(s=t.init)==null?void 0:s[0],l=y6.defined(t)?"(item().isVoronoi ? datum.datum : datum)":"datum";return i.items.forEach((u,c)=>{let f=Ve(`${r}_${u.field}`);n.filter(d=>d.name===f).length||n.unshift({name:f,...o?{init:bo(o[c])}:{value:null},on:t.events?[{events:t.events,update:`datum && item().mark.marktype !== 'group' ? ${l}[${we(u.field)}] : null`}]:[],bind:a[u.field]??a[u.channel]??a})}),n},signals:(e,t,n)=>{let r=t.name,i=t.project,a=n.find(u=>u.name===r+Ci),o=r+Vu,l=i.items.map(u=>Ve(`${r}_${u.field}`)),s=l.map(u=>`${u} !== null`).join(" && ");return l.length&&(a.update=`${s} ? {fields: ${o}, values: [${l.join(", ")}]} : null`),delete a.value,delete a.on,n}},Hh="_toggle",b6={defined:e=>e.type==="point"&&!Zr(e)&&!!e.toggle,signals:(e,t,n)=>n.concat({name:t.name+Hh,value:!1,on:[{events:t.events,update:t.toggle}]}),modifyExpr:(e,t)=>{let n=t.name+Ci,r=t.name+Hh;return`${r} ? null : ${n}, ${t.resolve==="global"?`${r} ? null : true, `:`${r} ? null : {unit: ${wo(e)}}, `}${r} ? ${n} : null`}},Qte={defined:e=>e.clear!==void 0&&e.clear!==!1&&!Zr(e),parse:(e,t)=>{t.clear&&(t.clear=se(t.clear)?aa(t.clear,"view"):t.clear)},topLevelSignals:(e,t,n)=>{if(v6.defined(t))for(let r of t.project.items){let i=n.findIndex(a=>a.name===Ve(`${t.name}_${r.field}`));i!==-1&&n[i].on.push({events:t.clear,update:"null"})}return n},signals:(e,t,n)=>{function r(i,a){i!==-1&&n[i].on&&n[i].on.push({events:t.clear,update:a})}if(t.type==="interval")for(let i of t.project.items){let a=n.findIndex(o=>o.name===i.signals.visual);r(a,"[0, 0]"),a===-1&&r(n.findIndex(o=>o.name===i.signals.data),"null")}else{let i=n.findIndex(a=>a.name===t.name+Ci);r(i,"null"),b6.defined(t)&&(i=n.findIndex(a=>a.name===t.name+Hh),r(i,"false"))}return n}},x6={defined:e=>{let t=e.resolve==="global"&&e.bind&&db(e.bind),n=e.project.items.length===1&&e.project.items[0].field!==wr;return t&&!n&&q(kQ),t&&n},parse:(e,t,n)=>{let r=oe(n);if(r.select=se(r.select)?{type:r.select,toggle:t.toggle}:{...r.select,toggle:t.toggle},C6(t,r),ue(n.select)&&(n.select.on||n.select.clear)){let a='event.item && indexof(event.item.mark.role, "legend") < 0';for(let o of t.events)o.filter=it(o.filter??[]),o.filter.includes(a)||o.filter.push(a)}let i=hb(t.bind)?t.bind.legend:"click";t.bind={legend:{merge:se(i)?aa(i,"view"):it(i)}}},topLevelSignals:(e,t,n)=>{let r=t.name,i=hb(t.bind)&&t.bind.legend,a=o=>l=>{let s=oe(l);return s.markname=o,s};for(let o of t.project.items){if(!o.hasLegend)continue;let l=`${Ve(o.field)}_legend`,s=`${r}_${l}`;if(n.filter(u=>u.name===s).length===0){let u=i.merge.map(a(`${l}_symbols`)).concat(i.merge.map(a(`${l}_labels`))).concat(i.merge.map(a(`${l}_entries`)));n.unshift({name:s,...t.init?{}:{value:null},on:[{events:u,update:"isDefined(datum.value) ? datum.value : item().items[0].items[0].datum.value",force:!0},{events:i.merge,update:`!event.item || !datum ? null : ${s}`,force:!0}]})}}return n},signals:(e,t,n)=>{let r=t.name,i=t.project,a=n.find(f=>f.name===r+Ci),o=r+Vu,l=i.items.filter(f=>f.hasLegend).map(f=>Ve(`${r}_${Ve(f.field)}_legend`)),s=`${l.map(f=>`${f} !== null`).join(" && ")} ? {fields: ${o}, values: [${l.join(", ")}]} : null`;t.events&&l.length>0?a.on.push({events:l.map(f=>({signal:f})),update:s}):l.length>0&&(a.update=s,delete a.value,delete a.on);let u=n.find(f=>f.name===r+Hh),c=hb(t.bind)&&t.bind.legend;return u&&(t.events?u.on.push({...u.on[0],events:c}):u.on[0].events=c),n}};function Kte(e,t,n){var i;let r=(i=e.fieldDef(t))==null?void 0:i.field;for(let a of ut(e.component.selection??{})){let o=a.project.hasField[r]??a.project.hasChannel[t];if(o&&x6.defined(a)){let l=n.get("selections")??[];l.push(a.name),n.set("selections",l,!1),o.hasLegend=!0}}}var w6="_translate_anchor",A6="_translate_delta",Zte={defined:e=>e.type==="interval"&&e.translate,signals:(e,t,n)=>{let r=t.name,i=Di.defined(t),a=r+w6,{x:o,y:l}=t.project.hasChannel,s=aa(t.translate,"scope");return i||(s=s.map(u=>(u.between[0].markname=r+Pl,u))),n.push({name:a,value:{},on:[{events:s.map(u=>u.between[0]),update:`{x: x(unit), y: y(unit)${o===void 0?"":`, extent_x: ${i?Ob(e,Xe):`slice(${o.signals.visual})`}`}${l===void 0?"":`, extent_y: ${i?Ob(e,bt):`slice(${l.signals.visual})`}`}}`}]},{name:r+A6,value:{},on:[{events:s,update:`{x: ${a}.x - x(unit), y: ${a}.y - y(unit)}`}]}),o!==void 0&&E6(e,t,o,"width",n),l!==void 0&&E6(e,t,l,"height",n),n}};function E6(e,t,n,r,i){let a=t.name,o=a+w6,l=a+A6,s=n.channel,u=Di.defined(t),c=i.find(b=>b.name===n.signals[u?"data":"visual"]),f=e.getSizeSignalRef(r).signal,d=e.getScaleComponent(s),h=d==null?void 0:d.get("type"),p=d==null?void 0:d.get("reverse"),m=u?s===Xe?p?"":"-":p?"-":"":"",g=`${o}.extent_${s}`,y=`${m}${l}.${s} / ${u?`${f}`:`span(${g})`}`,v=`${!u||!d?"panLinear":h==="log"?"panLog":h==="symlog"?"panSymlog":h==="pow"?"panPow":"panLinear"}(${g}, ${y}${u?h==="pow"?`, ${d.get("exponent")??1}`:h==="symlog"?`, ${d.get("constant")??1}`:"":""})`;c.on.push({events:{signal:l},update:u?v:`clampRange(${v}, 0, ${f})`})}var k6="_zoom_anchor",_6="_zoom_delta",ene={defined:e=>e.type==="interval"&&e.zoom,signals:(e,t,n)=>{let r=t.name,i=Di.defined(t),a=r+_6,{x:o,y:l}=t.project.hasChannel,s=we(e.scaleName(Xe)),u=we(e.scaleName(bt)),c=aa(t.zoom,"scope");return i||(c=c.map(f=>(f.markname=r+Pl,f))),n.push({name:r+k6,on:[{events:c,update:i?`{${[s?`x: invert(${s}, x(unit))`:"",u?`y: invert(${u}, y(unit))`:""].filter(f=>f).join(", ")}}`:"{x: x(unit), y: y(unit)}"}]},{name:a,on:[{events:c,force:!0,update:"pow(1.001, event.deltaY * pow(16, event.deltaMode))"}]}),o!==void 0&&D6(e,t,o,"width",n),l!==void 0&&D6(e,t,l,"height",n),n}};function D6(e,t,n,r,i){let a=t.name,o=n.channel,l=Di.defined(t),s=i.find(g=>g.name===n.signals[l?"data":"visual"]),u=e.getSizeSignalRef(r).signal,c=e.getScaleComponent(o),f=c==null?void 0:c.get("type"),d=l?Ob(e,o):s.name,h=a+_6,p=`${a}${k6}.${o}`,m=`${!l||!c?"zoomLinear":f==="log"?"zoomLog":f==="symlog"?"zoomSymlog":f==="pow"?"zoomPow":"zoomLinear"}(${d}, ${p}, ${h}${l?f==="pow"?`, ${c.get("exponent")??1}`:f==="symlog"?`, ${c.get("constant")??1}`:"":""})`;s.on.push({events:{signal:h},update:l?m:`clampRange(${m}, 0, ${u})`})}var xo="_store",Ci="_tuple",tne="_modify",F6="vlSelectionResolve",Vh=[Fte,Nte,kte,b6,v6,Di,x6,Qte,Zte,ene,y6];function nne(e){let t=e.parent;for(;t&&!Mn(t);)t=t.parent;return t}function wo(e,{escape:t}={escape:!0}){let n=t?we(e.name):e.name,r=nne(e);if(r){let{facet:i}=r;for(let a of Vn)i[a]&&(n+=` + '__facet_${a}_' + (facet[${we(r.vgField(a))}])`)}return n}function Lb(e){return ut(e.component.selection??{}).reduce((t,n)=>t||n.project.hasSelectionId,!1)}function C6(e,t){(Ee(t.select)||!t.select.on)&&delete e.events,(Ee(t.select)||!t.select.clear)&&delete e.clear,(Ee(t.select)||!t.select.toggle)&&delete e.toggle}function Zr(e){var t;return(t=e.events)==null?void 0:t.find(n=>"type"in n&&n.type==="timer")}function Pb(e){let t=[];return e.type==="Identifier"?[e.name]:e.type==="Literal"?[e.value]:(e.type==="MemberExpression"&&(t.push(...Pb(e.object)),t.push(...Pb(e.property))),t)}function $6(e){return e.object.type==="MemberExpression"?$6(e.object):e.object.name==="datum"}function S6(e){let t=zJ(e),n=new Set;return t.visit(r=>{r.type==="MemberExpression"&&$6(r)&&n.add(Pb(r).slice(1).join("."))}),n}var Xh=class i4 extends Te{constructor(n,r,i){super(n);N(this,"model");N(this,"filter");N(this,"expr");N(this,"_dependentFields");this.model=r,this.filter=i,this.expr=Yh(this.model,this.filter,this),this._dependentFields=S6(this.expr)}clone(){return new i4(null,this.model,oe(this.filter))}dependentFields(){return this._dependentFields}producedFields(){return new Set}assemble(){return{type:"filter",expr:this.expr}}hash(){return`Filter ${this.expr}`}};function rne(e,t){let n={},r=e.config.selection;if(!t||!t.length)return n;let i=0;for(let a of t){let o=Ve(a.name),l=a.select,s=se(l)?l:l.type,u=Ae(l)?oe(l):{type:s},c=r[s];for(let h in c)h==="fields"||h==="encodings"||(h==="mark"&&(u.mark={...c.mark,...u.mark}),(u[h]===void 0||u[h]===!0)&&(u[h]=oe(c[h]??u[h])));let f=n[o]={...u,name:o,type:s,init:a.value,bind:a.bind,events:se(u.on)?aa(u.on,"scope"):it(oe(u.on))};if(Zr(f)&&(i++,i>1)){delete n[o];continue}let d=oe(a);for(let h of Vh)h.defined(f)&&h.parse&&h.parse(e,f,d)}return i>1&&q(SQ),n}function M6(e,t,n,r="datum"){let i=se(t)?t:t.param,a=Ve(i),o=we(a+xo),l;try{l=e.getSelectionComponent(a,i)}catch{return`!!${a}`}if(l.project.timeUnit){let c=n??e.component.data.raw,f=l.project.timeUnit.clone();c.parent?f.insertAsParentOf(c):c.parent=f}let s=`${l.project.hasSelectionId?"vlSelectionIdTest(":"vlSelectionTest("}${o}, ${r}${l.resolve==="global"?")":`, ${we(l.resolve)})`}`,u=`length(data(${o}))`;return t.empty===!1?`${u} && ${s}`:`!${u} || ${s}`}function O6(e,t,n){let r=Ve(t),i=n.encoding,a=n.field,o;try{o=e.getSelectionComponent(r,t)}catch{return r}if(!i&&!a)a=o.project.items[0].field,o.project.items.length>1&&q(MQ(a));else if(i&&!a){let l=o.project.items.filter(s=>s.channel===i);!l.length||l.length>1?(a=o.project.items[0].field,q(OQ(l,i,n,a))):a=l[0].field}return`${o.name}[${we(Wn(a))}]`}function ine(e,t){for(let[n,r]of sa(e.component.selection??{})){let i=e.getName(`lookup_${n}`);e.component.data.outputNodes[i]=r.materialized=new bn(new Xh(t,e,{param:n}),i,et.Lookup,e.component.data.outputNodeRefCounts)}}function Yh(e,t,n){return Su(t,r=>se(r)?r:jK(r)?M6(e,r,n):s5(r))}function ane(e,t){if(e)return X(e)&&!ya(e)?e.map(n=>rb(n,t)).join(", "):e}function Ib(e,t,n,r){var i,a;e.encode??(e.encode={}),(i=e.encode)[t]??(i[t]={}),(a=e.encode[t]).update??(a.update={}),e.encode[t].update[n]=r}function Yu(e,t,n,r={header:!1}){var f,d;let{disable:i,orient:a,scale:o,labelExpr:l,title:s,zindex:u,...c}=e.combine();if(!i){for(let h in c){let p=h,m=jZ[p],g=c[p];if(m&&m!==t&&m!=="both")delete c[p];else if(Gu(g)){let{condition:y,...v}=g,b=it(y),w=G5[p];if(w){let{vgProp:A,part:E}=w;Ib(c,E,A,[...b.map(x=>{let{test:k,..._}=x;return{test:Yh(null,k),..._}}),v]),delete c[p]}else w===null&&(c[p]={signal:b.map(A=>{let{test:E,...x}=A;return`${Yh(null,E)} ? ${$3(x)} : `}).join("")+$3(v)})}else if(Q(g)){let y=G5[p];if(y){let{vgProp:v,part:b}=y;Ib(c,b,v,g),delete c[p]}}he(["labelAlign","labelBaseline"],p)&&c[p]===null&&delete c[p]}if(t==="grid"){if(!c.grid)return;if(c.encode){let{grid:h}=c.encode;c.encode={...h?{grid:h}:{}},Ie(c.encode)&&delete c.encode}return{scale:o,orient:a,...c,domain:!1,labels:!1,aria:!1,maxExtent:0,minExtent:0,ticks:!1,zindex:at(u,0)}}else{if(!r.header&&e.mainExtracted)return;if(l!==void 0){let p=l;(d=(f=c.encode)==null?void 0:f.labels)!=null&&d.update&&Q(c.encode.labels.update.text)&&(p=to(l,"datum.label",c.encode.labels.update.text.signal)),Ib(c,"labels","text",{signal:p})}if(c.labelAlign===null&&delete c.labelAlign,c.encode){for(let p of H5)e.hasAxisPart(p)||delete c.encode[p];Ie(c.encode)&&delete c.encode}let h=ane(s,n);return{scale:o,orient:a,grid:!1,...h?{title:h}:{},...c,...n.aria===!1?{aria:!1}:{},zindex:at(u,0)}}}}function B6(e){let{axes:t}=e.component,n=[];for(let r of xi)if(t[r]){for(let i of t[r])if(!i.get("disable")&&!i.get("gridScale")){let a=r==="x"?"height":"width",o=e.getSizeSignalRef(a).signal;a!==o&&n.push({name:a,update:o})}}return n}function one(e,t){let{x:n=[],y:r=[]}=e;return[...n.map(i=>Yu(i,"grid",t)),...r.map(i=>Yu(i,"grid",t)),...n.map(i=>Yu(i,"main",t)),...r.map(i=>Yu(i,"main",t))].filter(i=>i)}function z6(e,t,n,r){return Object.assign.apply(null,[{},...e.map(i=>{if(i==="axisOrient"){let a=n==="x"?"bottom":"left",o=t[n==="x"?"axisBottom":"axisLeft"]||{},l=t[n==="x"?"axisTop":"axisRight"]||{},s=new Set([...I(o),...I(l)]),u={};for(let c of s.values())u[c]={signal:`${r.signal} === "${a}" ? ${gr(o[c])} : ${gr(l[c])}`};return u}return t[i]})])}function lne(e,t,n,r){let i=t==="band"?["axisDiscrete","axisBand"]:t==="point"?["axisDiscrete","axisPoint"]:h5(t)?["axisQuantitative"]:t==="time"||t==="utc"?["axisTemporal"]:[],a=e==="x"?"axisX":"axisY",o=Q(n)?"axisOrient":`axis${Mu(n)}`,l=[...i,...i.map(u=>a+u.substr(4))],s=["axis",o,a];return{vlOnlyAxisConfig:z6(l,r,e,n),vgAxisConfig:z6(s,r,e,n),axisConfigStyle:sne([...s,...l],r)}}function sne(e,t){var r;let n=[{}];for(let i of e){let a=(r=t[i])==null?void 0:r.style;if(a){a=it(a);for(let o of a)n.push(t.style[o])}}return Object.assign.apply(null,n)}function jb(e,t,n,r={}){var a;let i=M3(e,n,t);if(i!==void 0)return{configFrom:"style",configValue:i};for(let o of["vlOnlyAxisConfig","vgAxisConfig","axisConfigStyle"])if(((a=r[o])==null?void 0:a[e])!==void 0)return{configFrom:o,configValue:r[o][e]};return{}}var N6={scale:({model:e,channel:t})=>e.scaleName(t),format:({format:e})=>e,formatType:({formatType:e})=>e,grid:({fieldOrDatumDef:e,axis:t,scaleType:n})=>t.grid??une(n,e),gridScale:({model:e,channel:t})=>cne(e,t),labelAlign:({axis:e,labelAngle:t,orient:n,channel:r})=>e.labelAlign||T6(t,n,r),labelAngle:({labelAngle:e})=>e,labelBaseline:({axis:e,labelAngle:t,orient:n,channel:r})=>e.labelBaseline||R6(t,n,r),labelFlush:({axis:e,fieldOrDatumDef:t,channel:n})=>e.labelFlush??dne(t.type,n),labelOverlap:({axis:e,fieldOrDatumDef:t,scaleType:n})=>e.labelOverlap??hne(t.type,n,U(t)&&!!t.timeUnit,U(t)?t.sort:void 0),orient:({orient:e})=>e,tickCount:({channel:e,model:t,axis:n,fieldOrDatumDef:r,scaleType:i})=>{let a=e==="x"?"width":e==="y"?"height":void 0,o=a?t.getSizeSignalRef(a):void 0;return n.tickCount??mne({fieldOrDatumDef:r,scaleType:i,size:o,values:n.values})},tickMinStep:({axis:e,format:t,fieldOrDatumDef:n})=>e.tickMinStep??gne({format:t,fieldOrDatumDef:n}),title:({axis:e,model:t,channel:n})=>{if(e.title!==void 0)return e.title;let r=L6(t,n);if(r!==void 0)return r;let i=t.typedFieldDef(n),a=n==="x"?"x2":"y2",o=t.fieldDef(a);return B3(i?[B5(i)]:[],U(o)?[B5(o)]:[])},values:({axis:e,fieldOrDatumDef:t})=>yne(e,t),zindex:({axis:e,fieldOrDatumDef:t,mark:n})=>e.zindex??vne(n,t)};function une(e,t){return!wt(e)&&U(t)&&!je(t==null?void 0:t.bin)&&!Ft(t==null?void 0:t.bin)}function cne(e,t){let n=t==="x"?"y":"x";if(e.getScaleComponent(n))return e.scaleName(n)}function fne(e,t,n,r,i){let a=t==null?void 0:t.labelAngle;if(a!==void 0)return Q(a)?a:Ou(a);{let{configValue:o}=jb("labelAngle",r,t==null?void 0:t.style,i);return o===void 0?n===Xe&&he([jv,Iv],e.type)&&!(U(e)&&e.timeUnit)?270:void 0:Ou(o)}}function qb(e){return`(((${e.signal} % 360) + 360) % 360)`}function R6(e,t,n,r){if(e!==void 0)if(n==="x"){if(Q(e)){let i=qb(e);return{signal:`(45 < ${i} && ${i} < 135) || (225 < ${i} && ${i} < 315) ? "middle" :(${i} <= 45 || 315 <= ${i}) === ${Q(t)?`(${t.signal} === "top")`:t==="top"} ? "bottom" : "top"`}}if(45{if(go(i)&&O5(i.sort)){let{field:o,timeUnit:l}=i,s=i.sort,u=s.map((c,f)=>`${s5({field:o,timeUnit:l,equal:c})} ? ${f} : `).join("")+s.length;n=new e2(n,{calculate:u,as:ql(i,a,{forAs:!0})})}}),n}producedFields(){return new Set([this.transform.as])}dependentFields(){return this._dependentFields}assemble(){return{type:"formula",expr:this.transform.calculate,as:this.transform.as}}hash(){return`Calculate ${ye(this.transform)}`}};function ql(e,t,n){return V(e,{prefix:t,suffix:"sort_index",...n})}function Jh(e,t){return he(["top","bottom"],t)?"column":he(["left","right"],t)||e==="row"?"row":"column"}function Ul(e,t,n,r){let i=r==="row"?n.headerRow:r==="column"?n.headerColumn:n.headerFacet;return at((t||{})[e],i[e],n.header[e])}function Qh(e,t,n,r){let i={};for(let a of e){let o=Ul(a,t||{},n,r);o!==void 0&&(i[a]=o)}return i}var Wb=["row","column"],Gb=["header","footer"];function bne(e,t){let n=e.component.layoutHeaders[t].title,r=e.config?e.config:void 0,i=e.component.layoutHeaders[t].facetFieldDef?e.component.layoutHeaders[t].facetFieldDef:void 0,{titleAnchor:a,titleAngle:o,titleOrient:l}=Qh(["titleAnchor","titleAngle","titleOrient"],i.header,r,t),s=Jh(t,l),u=Ou(o);return{name:`${t}-title`,type:"group",role:`${s}-title`,title:{text:n,...t==="row"?{orient:"left"}:{},style:"guide-title",...I6(u,s),...P6(s,u,a),...j6(r,i,t,see,dS)}}}function P6(e,t,n="middle"){switch(n){case"start":return{align:"left"};case"end":return{align:"right"}}let r=T6(t,e==="row"?"left":"top",e==="row"?"y":"x");return r?{align:r}:{}}function I6(e,t){let n=R6(e,t==="row"?"left":"top",t==="row"?"y":"x",!0);return n?{baseline:n}:{}}function xne(e,t){let n=e.component.layoutHeaders[t],r=[];for(let i of Gb)if(n[i])for(let a of n[i]){let o=Ane(e,t,i,n,a);o!=null&&r.push(o)}return r}function wne(e,t){let{sort:n}=e;return Ei(n)?{field:V(n,{expr:"datum"}),order:n.order??"ascending"}:X(n)?{field:ql(e,t,{expr:"datum"}),order:"ascending"}:{field:V(e,{expr:"datum"}),order:n??"ascending"}}function Hb(e,t,n){let{format:r,formatType:i,labelAngle:a,labelAnchor:o,labelOrient:l,labelExpr:s}=Qh(["format","formatType","labelAngle","labelAnchor","labelOrient","labelExpr"],e.header,n,t),u=Kv({fieldOrDatumDef:e,format:r,formatType:i,expr:"parent",config:n}).signal,c=Jh(t,l);return{text:{signal:s?to(to(s,"datum.label",u),"datum.value",V(e,{expr:"parent"})):u},...t==="row"?{orient:"left"}:{},style:"guide-label",frame:"group",...I6(a,c),...P6(c,a,o),...j6(n,e,t,uee,hS)}}function Ane(e,t,n,r,i){if(i){let a=null,{facetFieldDef:o}=r,l=e.config?e.config:void 0;if(o&&i.labels){let{labelOrient:f}=Qh(["labelOrient"],o.header,l,t);(t==="row"&&!he(["top","bottom"],f)||t==="column"&&!he(["left","right"],f))&&(a=Hb(o,t,l))}let s=Mn(e)&&!ju(e.facet),u=i.axes,c=(u==null?void 0:u.length)>0;if(a||c){let f=t==="row"?"height":"width";return{name:e.getName(`${t}_${n}`),type:"group",role:`${t}-${n}`,...r.facetFieldDef?{from:{data:e.getName(`${t}_domain`)},sort:wne(o,t)}:{},...c&&s?{from:{data:e.getName(`facet_domain_${t}`)}}:{},...a?{title:a}:{},...i.sizeSignal?{encode:{update:{[f]:i.sizeSignal}}}:{},...c?{axes:u}:{}}}}return null}var Ene={column:{start:0,end:1},row:{start:1,end:0}};function kne(e,t){return Ene[t][e]}function _ne(e,t){let n={};for(let r of Vn){let i=e[r];if(i!=null&&i.facetFieldDef){let{titleAnchor:a,titleOrient:o}=Qh(["titleAnchor","titleOrient"],i.facetFieldDef.header,t,r),l=Jh(r,o),s=kne(a,l);s!==void 0&&(n[l]=s)}}return Ie(n)?void 0:n}function j6(e,t,n,r,i){let a={};for(let o of r){if(!i[o])continue;let l=Ul(o,t==null?void 0:t.header,e,n);l!==void 0&&(a[i[o]]=l)}return a}function Vb(e){return[...Kh(e,"width"),...Kh(e,"height"),...Kh(e,"childWidth"),...Kh(e,"childHeight")]}function Kh(e,t){let n=t==="width"?"x":"y",r=e.component.layoutSize.get(t);if(!r||r==="merged")return[];let i=e.getSizeSignalRef(t).signal;if(r==="step"){let a=e.getScaleComponent(n);if(a){let o=a.get("type"),l=a.get("range");if(wt(o)&&oo(l)){let s=e.scaleName(n);return Mn(e.parent)&&e.parent.component.resolve.scale[n]==="independent"?[q6(s,l)]:[q6(s,l),{name:i,update:U6(s,a,`domain('${s}').length`)}]}}throw Error("layout size is step although width/height is not step.")}else if(r=="container"){let a=i.endsWith("width"),o=a?"containerSize()[0]":"containerSize()[1]",l=`isFinite(${o}) ? ${o} : ${yb(e.config.view,a?"width":"height")}`;return[{name:i,init:l,on:[{update:l,events:"window:resize"}]}]}else return[{name:i,value:r}]}function q6(e,t){let n=`${e}_step`;return Q(t.step)?{name:n,update:t.step.signal}:{name:n,value:t.step}}function U6(e,t,n){let r=t.get("type"),i=t.get("padding"),a=at(t.get("paddingOuter"),i),o=t.get("paddingInner");return o=r==="band"?o===void 0?i:o:1,`bandspace(${n}, ${gr(o)}, ${gr(a)}) * ${e}_step`}function W6(e){return e==="childWidth"?"width":e==="childHeight"?"height":e}function G6(e,t){return I(e).reduce((n,r)=>({...n,...Il({model:t,channelDef:e[r],vgChannel:r,mainRefFn:i=>We(i.value),invalidValueRef:void 0})}),{})}function H6(e,t){if(Mn(t))return e==="theta"?"independent":"shared";if(Vl(t))return"shared";if(dx(t))return ot(e)||e==="theta"||e==="radius"?"independent":"shared";throw Error("invalid model type for resolve")}function Xb(e,t){let n=e.scale[t],r=ot(t)?"axis":"legend";return n==="independent"?(e[r][t]==="shared"&&q(uK(t)),"independent"):e[r][t]||"shared"}var V6=I({...fee,disable:1,labelExpr:1,selections:1,opacity:1,shape:1,stroke:1,fill:1,size:1,strokeWidth:1,strokeDash:1,encode:1}),Dne=class extends vo{},X6={symbols:Fne,gradient:Cne,labels:$ne,entries:Sne};function Fne(e,{fieldOrDatumDef:t,model:n,channel:r,legendCmpt:i,legendType:a}){if(a!=="symbol")return;let{markDef:o,encoding:l,config:s,mark:u}=n,c=o.filled&&u!=="trail",f={...yQ({},n,dZ),...u6(n,{filled:c})},d=i.get("symbolOpacity")??s.legend.symbolOpacity,h=i.get("symbolFillColor")??s.legend.symbolFillColor,p=i.get("symbolStrokeColor")??s.legend.symbolStrokeColor,m=d===void 0?Y6(l.opacity)??o.opacity:void 0;if(f.fill){if(r==="fill"||c&&r===gn)delete f.fill;else if(j(f.fill,"field"))h?delete f.fill:(f.fill=We(s.legend.symbolBaseFillColor??"black"),f.fillOpacity=We(m??1));else if(X(f.fill)){let g=Yb(l.fill??l.color)??o.fill??(c&&o.color);g&&(f.fill=We(g))}}if(f.stroke){if(r==="stroke"||!c&&r===gn)delete f.stroke;else if(j(f.stroke,"field")||p)delete f.stroke;else if(X(f.stroke)){let g=at(Yb(l.stroke||l.color),o.stroke,c?o.color:void 0);g&&(f.stroke={value:g})}}if(r!==bi){let g=U(t)&&Q6(n,i,t);g?f.opacity=[{test:g,...We(m??1)},We(s.legend.unselectedOpacity)]:m&&(f.opacity=We(m))}return f={...f,...e},Ie(f)?void 0:f}function Cne(e,{model:t,legendType:n,legendCmpt:r}){if(n!=="gradient")return;let{config:i,markDef:a,encoding:o}=t,l={},s=(r.get("gradientOpacity")??i.legend.gradientOpacity)===void 0?Y6(o.opacity)||a.opacity:void 0;return s&&(l.opacity=We(s)),l={...l,...e},Ie(l)?void 0:l}function $ne(e,{fieldOrDatumDef:t,model:n,channel:r,legendCmpt:i}){let a=n.legend(r)||{},o=n.config,l=U(t)?Q6(n,i,t):void 0,s=l?[{test:l,value:1},{value:o.legend.unselectedOpacity}]:void 0,{format:u,formatType:c}=a,f;mo(c)?f=vr({fieldOrDatumDef:t,field:"datum.value",format:u,formatType:c,config:o}):u===void 0&&c===void 0&&o.customFormatTypes&&(t.type==="quantitative"&&o.numberFormatType?f=vr({fieldOrDatumDef:t,field:"datum.value",format:o.numberFormat,formatType:o.numberFormatType,config:o}):t.type==="temporal"&&o.timeFormatType&&U(t)&&t.timeUnit===void 0&&(f=vr({fieldOrDatumDef:t,field:"datum.value",format:o.timeFormat,formatType:o.timeFormatType,config:o})));let d={...s?{opacity:s}:{},...f?{text:f}:{},...e};return Ie(d)?void 0:d}function Sne(e,{legendCmpt:t}){var n;return(n=t.get("selections"))!=null&&n.length?{...e,fill:{value:"transparent"}}:e}function Y6(e){return J6(e,(t,n)=>Math.max(t,n.value))}function Yb(e){return J6(e,(t,n)=>at(t,n.value))}function J6(e,t){if($Z(e))return it(e.condition).reduce(t,e.value);if(br(e))return e.value}function Q6(e,t,n){let r=t.get("selections");if(!(r!=null&&r.length))return;let i=we(n.field);return r.map(a=>`(!length(data(${we(Ve(a)+xo)})) || (${a}[${i}] && indexof(${a}[${i}], datum.value) >= 0))`).join(" || ")}var K6={direction:({direction:e})=>e,format:({fieldOrDatumDef:e,legend:t,config:n})=>{let{format:r,formatType:i}=t;return F5(e,e.type,r,i,n,!1)},formatType:({legend:e,fieldOrDatumDef:t,scaleType:n})=>{let{formatType:r}=e;return C5(r,t,n)},gradientLength:e=>{let{legend:t,legendConfig:n}=e;return t.gradientLength??n.gradientLength??Tne(e)},labelOverlap:({legend:e,legendConfig:t,scaleType:n})=>e.labelOverlap??t.labelOverlap??Lne(n),symbolType:({legend:e,markDef:t,channel:n,encoding:r})=>e.symbolType??One(t.type,n,r.shape,t.shape),title:({fieldOrDatumDef:e,config:t})=>Ol(e,t,{allowDisabling:!0}),type:({legendType:e,scaleType:t,channel:n})=>{if(Dl(n)&&Xr(t)){if(e==="gradient")return}else if(e==="symbol")return;return e},values:({fieldOrDatumDef:e,legend:t})=>Mne(t,e)};function Mne(e,t){let n=e.values;if(X(n))return W5(t,n);if(Q(n))return n}function One(e,t,n,r){if(t!=="shape"){let i=Yb(n)??r;if(i)return i}switch(e){case"bar":case"rect":case"image":case"square":return"square";case"line":case"trail":case"rule":return"stroke";case"arc":case"point":case"circle":case"tick":case"geoshape":case"area":case"text":return"circle"}}function Bne(e){let{legend:t}=e;return at(t.type,zne(e))}function zne({channel:e,timeUnit:t,scaleType:n}){if(Dl(e)){if(he(["quarter","month","day"],t))return"symbol";if(Xr(n))return"gradient"}return"symbol"}function Nne({legendConfig:e,legendType:t,orient:n,legend:r}){return r.direction??e[t?"gradientDirection":"symbolDirection"]??Rne(n,t)}function Rne(e,t){switch(e){case"top":case"bottom":return"horizontal";case"left":case"right":case"none":case void 0:return;default:return t==="gradient"?"horizontal":void 0}}function Tne({legendConfig:e,model:t,direction:n,orient:r,scaleType:i}){let{gradientHorizontalMaxLength:a,gradientHorizontalMinLength:o,gradientVerticalMaxLength:l,gradientVerticalMinLength:s}=e;if(Xr(i))return n==="horizontal"?r==="top"||r==="bottom"?Z6(t,"width",o,a):o:Z6(t,"height",s,l)}function Z6(e,t,n,r){return{signal:`clamp(${e.getSizeSignalRef(t).signal}, ${n}, ${r})`}}function Lne(e){if(he(["quantile","threshold","log","symlog"],e))return"greedy"}function e8(e){let t=Je(e)?Pne(e):Une(e);return e.component.legends=t,t}function Pne(e){let{encoding:t}=e,n={};for(let r of[gn,...mS]){let i=pt(t[r]);!i||!e.getScaleComponent(r)||r===yn&&U(i)&&i.type===Cl||(n[r]=qne(e,r))}return n}function Ine(e,t){let n=e.scaleName(t);if(e.mark==="trail"){if(t==="color")return{stroke:n};if(t==="size")return{strokeWidth:n}}return t==="color"?e.markDef.filled?{fill:n}:{stroke:n}:{[t]:n}}function jne(e,t,n,r){switch(t){case"disable":return n!==void 0;case"values":return!!(n!=null&&n.values);case"title":if(t==="title"&&e===(r==null?void 0:r.title))return!0}return e===(n||{})[t]}function qne(e,t){var w;let n=e.legend(t),{markDef:r,encoding:i,config:a}=e,o=a.legend,l=new Dne({},Ine(e,t));Kte(e,t,l);let s=n===void 0?o.disable:!n;if(l.set("disable",s,n!==void 0),s)return l;n||(n={});let u=e.getScaleComponent(t).get("type"),c=pt(i[t]),f=U(c)?(w=xt(c.timeUnit))==null?void 0:w.unit:void 0,d=n.orient||a.legend.orient||"right",h=Bne({legend:n,channel:t,timeUnit:f,scaleType:u}),p=Nne({legend:n,legendType:h,orient:d,legendConfig:o}),m={legend:n,channel:t,model:e,markDef:r,encoding:i,fieldOrDatumDef:c,legendConfig:o,config:a,scaleType:u,orient:d,legendType:h,direction:p};for(let A of V6){if(h==="gradient"&&A.startsWith("symbol")||h==="symbol"&&A.startsWith("gradient"))continue;let E=A in K6?K6[A](m):n[A];if(E!==void 0){let x=jne(E,A,n,e.fieldDef(t));(x||a.legend[A]===void 0)&&l.set(A,E,x)}}let g=(n==null?void 0:n.encoding)??{},y=l.get("selections"),v={},b={fieldOrDatumDef:c,model:e,channel:t,legendCmpt:l,legendType:h};for(let A of["labels","legend","title","symbols","gradient","entries"]){let E=G6(g[A]??{},e),x=A in X6?X6[A](E,b):E;x!==void 0&&!Ie(x)&&(v[A]={...y!=null&&y.length&&U(c)?{name:`${Ve(c.field)}_legend_${A}`}:{},...y!=null&&y.length?{interactive:!0}:{},update:y!=null&&y.length?{...x,cursor:{value:"pointer"}}:x})}return Ie(v)||l.set("encode",v,!!(n!=null&&n.encoding)),l}function Une(e){let{legends:t,resolve:n}=e.component;for(let r of e.children){e8(r);for(let i of I(r.component.legends))n.legend[i]=Xb(e.component.resolve,i),n.legend[i]==="shared"&&(t[i]=t8(t[i],r.component.legends[i]),t[i]||(n.legend[i]="independent",delete t[i]))}for(let r of I(t))for(let i of e.children)i.component.legends[r]&&n.legend[r]==="shared"&&delete i.component.legends[r];return t}function t8(e,t){var a,o,l,s;if(!e)return t.clone();let n=e.getWithExplicit("orient"),r=t.getWithExplicit("orient");if(n.explicit&&r.explicit&&n.value!==r.value)return;let i=!1;for(let u of V6){let c=wa(e.getWithExplicit(u),t.getWithExplicit(u),u,"legend",(f,d)=>{switch(u){case"symbolType":return Wne(f,d);case"title":return N3(f,d);case"type":return i=!0,Ar("symbol")}return Ph(f,d,u,"legend")});e.setWithExplicit(u,c)}return i&&((o=(a=e.implicit)==null?void 0:a.encode)!=null&&o.gradient&&rh(e.implicit,["encode","gradient"]),(s=(l=e.explicit)==null?void 0:l.encode)!=null&&s.gradient&&rh(e.explicit,["encode","gradient"])),e}function Wne(e,t){return t.value==="circle"?t:e}function Gne(e,t,n,r){var i,a;e.encode??(e.encode={}),(i=e.encode)[t]??(i[t]={}),(a=e.encode[t]).update??(a.update={}),e.encode[t].update[n]=r}function n8(e){let t=e.component.legends,n={};for(let r of I(t)){let i=Se(e.getScaleComponent(r).get("domains"));if(n[i])for(let a of n[i])t8(a,t[r])||n[i].push(t[r]);else n[i]=[t[r].clone()]}return ut(n).flat().map(r=>Hne(r,e.config)).filter(r=>r!==void 0)}function Hne(e,t){var o,l,s;let{disable:n,labelExpr:r,selections:i,...a}=e.combine();if(!n){if(t.aria===!1&&a.aria==null&&(a.aria=!1),(o=a.encode)==null?void 0:o.symbols){let u=a.encode.symbols.update;u.fill&&u.fill.value!=="transparent"&&!u.stroke&&!a.stroke&&(u.stroke={value:"transparent"});for(let c of mS)a[c]&&delete u[c]}if(a.title||delete a.title,r!==void 0){let u=r;(s=(l=a.encode)==null?void 0:l.labels)!=null&&s.update&&Q(a.encode.labels.update.text)&&(u=to(r,"datum.label",a.encode.labels.update.text.signal)),Gne(a,"labels","text",{signal:u})}return a}}function Vne(e){return Vl(e)||dx(e)?Xne(e):r8(e)}function Xne(e){return e.children.reduce((t,n)=>t.concat(n.assembleProjections()),r8(e))}function r8(e){let t=e.component.projection;if(!t||t.merged)return[];let n=t.combine(),{name:r}=n;if(t.data){let i={signal:`[${t.size.map(o=>o.signal).join(", ")}]`},a=t.data.reduce((o,l)=>{let s=Q(l)?l.signal:`data('${e.lookupDataSource(l)}')`;return he(o,s)||o.push(s),o},[]);if(a.length<=0)throw Error("Projection's fit didn't find any data sources");return[{name:r,size:i,fit:{signal:a.length>1?`[${a.join(", ")}]`:a[0]},...n}]}else return[{name:r,translate:{signal:"[width / 2, height / 2]"},...n}]}var Yne=["type","clipAngle","clipExtent","center","rotate","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"],i8=class extends vo{constructor(t,n,r,i){super({...n},{name:t});N(this,"specifiedProjection");N(this,"size");N(this,"data");N(this,"merged",!1);this.specifiedProjection=n,this.size=r,this.data=i}get isFit(){return!!this.data}};function a8(e){e.component.projection=Je(e)?Jne(e):Zne(e)}function Jne(e){if(e.hasProjection){let t=Ct(e.specifiedProjection),n=!(t&&(t.scale!=null||t.translate!=null)),r=n?[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]:void 0,i=n?Qne(e):void 0,a=new i8(e.projectionName(!0),{...Ct(e.config.projection),...t},r,i);return a.get("type")||a.set("type","equalEarth",!1),a}}function Qne(e){let t=[],{encoding:n}=e;for(let r of[[pr,hr],[Hn,mr]])(pt(n[r[0]])||pt(n[r[1]]))&&t.push({signal:e.getName(`geojson_${t.length}`)});return e.channelHasField(yn)&&e.typedFieldDef(yn).type===Cl&&t.push({signal:e.getName(`geojson_${t.length}`)}),t.length===0&&t.push(e.requestDataName(et.Main)),t}function Kne(e,t){let n=ov(Yne,r=>!!(!st(e.explicit,r)&&!st(t.explicit,r)||st(e.explicit,r)&&st(t.explicit,r)&&Cn(e.get(r),t.get(r))));if(Cn(e.size,t.size)){if(n)return e;if(Cn(e.explicit,{}))return t;if(Cn(t.explicit,{}))return e}return null}function Zne(e){if(e.children.length===0)return;let t;for(let r of e.children)a8(r);let n=ov(e.children,r=>{let i=r.component.projection;if(i)if(t){let a=Kne(t,i);return a&&(t=a),!!a}else return t=i,!0;else return!0});if(t&&n){let r=e.projectionName(!0),i=new i8(r,t.specifiedProjection,t.size,oe(t.data));for(let a of e.children){let o=a.component.projection;o&&(o.isFit&&i.data.push(...a.component.projection.data),a.renameProjection(o.get("name"),r),o.merged=!0)}return i}}function ere(e,t,n,r){if(Wu(t,n)){let i=Je(e)?e.axis(n)??e.legend(n)??{}:{},a=V(t,{expr:"datum"}),o=V(t,{expr:"datum",binSuffix:"end"});return{formulaAs:V(t,{binSuffix:"range",forAs:!0}),formula:Iu(a,o,i.format,i.formatType,r)}}return{}}function o8(e,t){return`${k3(e)}_${t}`}function tre(e,t){return{signal:e.getName(`${t}_bins`),extentSignal:e.getName(`${t}_extent`)}}function Jb(e,t,n){let r=o8(Sh(n,void 0)??{},t);return e.getName(`${r}_bins`)}function nre(e){return"as"in e}function l8(e,t,n){let r,i;r=nre(e)?se(e.as)?[e.as,`${e.as}_end`]:[e.as[0],e.as[1]]:[V(e,{forAs:!0}),V(e,{binSuffix:"end",forAs:!0})];let a={...Sh(t,void 0)},o=o8(a,e.field),{signal:l,extentSignal:s}=tre(n,o);if(dh(a.extent)){let u=a.extent;i=O6(n,u.param,u),delete a.extent}return{key:o,binComponent:{bin:a,field:e.field,as:[r],...l?{signal:l}:{},...s?{extentSignal:s}:{},...i?{span:i}:{}}}}var Wl=class bp extends Te{constructor(n,r){super(n);N(this,"bins");this.bins=r}clone(){return new bp(null,oe(this.bins))}static makeFromEncoding(n,r){let i=r.reduceFieldDef((a,o,l)=>{if(an(o)&&je(o.bin)){let{key:s,binComponent:u}=l8(o,o.bin,r);a[s]={...u,...a[s],...ere(r,o,l,r.config)}}return a},{});return Ie(i)?null:new bp(n,i)}static makeFromTransform(n,r,i){let{key:a,binComponent:o}=l8(r,r.bin,i);return new bp(n,{[a]:o})}merge(n,r){for(let i of I(n.bins))i in this.bins?(r(n.bins[i].signal,this.bins[i].signal),this.bins[i].as=Ir([...this.bins[i].as,...n.bins[i].as],ye)):this.bins[i]=n.bins[i];for(let i of n.children)n.removeChild(i),i.parent=this;n.remove()}producedFields(){return new Set(ut(this.bins).map(n=>n.as).flat(2))}dependentFields(){return new Set(ut(this.bins).map(n=>n.field))}hash(){return`Bin ${ye(this.bins)}`}assemble(){return ut(this.bins).flatMap(n=>{let r=[],[i,...a]=n.as,{extent:o,...l}=n.bin,s={type:"bin",field:Wn(n.field),as:i,signal:n.signal,...dh(o)?{extent:null}:{extent:o},...n.span?{span:{signal:`span(${n.span})`}}:{},...l};!o&&n.extentSignal&&(r.push({type:"extent",field:Wn(n.field),signal:n.extentSignal}),s.extent={signal:n.extentSignal}),r.push(s);for(let u of a)for(let c=0;c<2;c++)r.push({type:"formula",expr:V({field:i[c]},{expr:"datum"}),as:u[c]});return n.formula&&r.push({type:"formula",expr:n.formula,as:n.formulaAs}),r})}};function rre(e,t,n,r){var a;let i=Je(r)?r.encoding[Wr(t)]:void 0;if(an(n)&&Je(r)&&N5(n,i,r.markDef,r.config)){e.add(V(n,{})),e.add(V(n,{suffix:"end"}));let{mark:o,markDef:l,config:s}=r,u=ba({fieldDef:n,markDef:l,config:s});Lu(o)&&u!==.5&&ot(t)&&(e.add(V(n,{suffix:Ih})),e.add(V(n,{suffix:jh}))),n.bin&&Wu(n,t)&&e.add(V(n,{binSuffix:"range"}))}else if(m3(t)){let o=p3(t);e.add(r.getName(o))}else e.add(V(n));return go(n)&&eZ((a=n.scale)==null?void 0:a.range)&&e.add(n.scale.range.field),e}function ire(e,t){for(let n of I(t)){let r=t[n];for(let i of I(r))n in e?e[n][i]=new Set([...e[n][i]??[],...r[i]]):e[n]={[i]:r[i]}}}var Ao=class xp extends Te{constructor(n,r,i){super(n);N(this,"dimensions");N(this,"measures");this.dimensions=r,this.measures=i}clone(){return new xp(null,new Set(this.dimensions),oe(this.measures))}get groupBy(){return this.dimensions}static makeFromEncoding(n,r){let i=!1;r.forEachFieldDef(l=>{l.aggregate&&(i=!0)});let a={},o=new Set;return!i||(r.forEachFieldDef((l,s)=>{let{aggregate:u,field:c}=l;if(u)if(u==="count")a["*"]??(a["*"]={}),a["*"].count=new Set([V(l,{forAs:!0})]);else{if(wi(u)||ga(u)){let f=wi(u)?"argmin":"argmax",d=u[f];a[d]??(a[d]={}),a[d][f]=new Set([V({op:f,field:d},{forAs:!0})])}else a[c]??(a[c]={}),a[c][u]=new Set([V(l,{forAs:!0})]);Gr(s)&&r.scaleDomain(s)==="unaggregated"&&(a[c]??(a[c]={}),a[c].min=new Set([V({field:c,aggregate:"min"},{forAs:!0})]),a[c].max=new Set([V({field:c,aggregate:"max"},{forAs:!0})]))}else rre(o,s,l,r)}),o.size+I(a).length===0)?null:new xp(n,o,a)}static makeFromTransform(n,r){var o;let i=new Set,a={};for(let l of r.aggregate){let{op:s,field:u,as:c}=l;s&&(s==="count"?(a["*"]??(a["*"]={}),a["*"].count=new Set([c||V(l,{forAs:!0})])):(a[u]??(a[u]={}),(o=a[u])[s]??(o[s]=new Set),a[u][s].add(c||V(l,{forAs:!0}))))}for(let l of r.groupby??[])i.add(l);return i.size+I(a).length===0?null:new xp(n,i,a)}merge(n){return i3(this.dimensions,n.dimensions)?(ire(this.measures,n.measures),!0):(_K("different dimensions, cannot merge"),!1)}addDimensions(n){n.forEach(this.dimensions.add,this.dimensions)}dependentFields(){return new Set([...this.dimensions,...I(this.measures)])}producedFields(){let n=new Set;for(let r of I(this.measures))for(let i of I(this.measures[r])){let a=this.measures[r][i];a.size===0?n.add(`${i}_${r}`):a.forEach(n.add,n)}return n}hash(){return`Aggregate ${ye({dimensions:this.dimensions,measures:this.measures})}`}assemble(){let n=[],r=[],i=[];for(let a of I(this.measures))for(let o of I(this.measures[a]))for(let l of this.measures[a][o])i.push(l),n.push(o),r.push(a==="*"?null:Wn(a));return{type:"aggregate",groupby:[...this.dimensions].map(Wn),ops:n,fields:r,as:i}}},Gl=class extends Te{constructor(t,n,r,i){super(t);N(this,"model");N(this,"name");N(this,"data");N(this,"column");N(this,"row");N(this,"facet");N(this,"childModel");this.model=n,this.name=r,this.data=i;for(let a of Vn){let o=n.facet[a];if(o){let{bin:l,sort:s}=o;this[a]={name:n.getName(`${a}_domain`),fields:[V(o),...je(l)?[V(o,{binSuffix:"end"})]:[]],...Ei(s)?{sortField:s}:X(s)?{sortIndexField:ql(o,a)}:{}}}}this.childModel=n.child}hash(){let t="Facet";for(let n of Vn)this[n]&&(t+=` ${n.charAt(0)}:${ye(this[n])}`);return t}get fields(){var n;let t=[];for(let r of Vn)(n=this[r])!=null&&n.fields&&t.push(...this[r].fields);return t}dependentFields(){let t=new Set(this.fields);for(let n of Vn)this[n]&&(this[n].sortField&&t.add(this[n].sortField.field),this[n].sortIndexField&&t.add(this[n].sortIndexField));return t}producedFields(){return new Set}getSource(){return this.name}getChildIndependentFieldsWithStep(){let t={};for(let n of xi){let r=this.childModel.component.scales[n];if(r&&!r.merged){let i=r.get("type"),a=r.get("range");if(wt(i)&&oo(a)){let o=cx(tp(this.childModel,n));o?t[n]=o:q(_v(n))}}}return t}assembleRowColumnHeaderData(t,n,r){let i={row:"y",column:"x",facet:void 0}[t],a=[],o=[],l=[];i&&r&&r[i]&&(n?(a.push(`distinct_${r[i]}`),o.push("max")):(a.push(r[i]),o.push("distinct")),l.push(`distinct_${r[i]}`));let{sortField:s,sortIndexField:u}=this[t];if(s){let{op:c=Eh,field:f}=s;a.push(f),o.push(c),l.push(V(s,{forAs:!0}))}else u&&(a.push(u),o.push("max"),l.push(u));return{name:this[t].name,source:n??this.data,transform:[{type:"aggregate",groupby:this[t].fields,...a.length?{fields:a,ops:o,as:l}:{}}]}}assembleFacetHeaderData(t){var s,u;let{columns:n}=this.model.layout,{layoutHeaders:r}=this.model.component,i=[],a={};for(let c of Wb){for(let f of Gb){let d=((s=r[c])==null?void 0:s[f])??[];for(let h of d)if(((u=h.axes)==null?void 0:u.length)>0){a[c]=!0;break}}if(a[c]){let f=`length(data("${this.facet.name}"))`,d=c==="row"?n?{signal:`ceil(${f} / ${n})`}:1:n?{signal:`min(${f}, ${n})`}:{signal:f};i.push({name:`${this.facet.name}_${c}`,transform:[{type:"sequence",start:0,stop:d}]})}}let{row:o,column:l}=a;return(o||l)&&i.unshift(this.assembleRowColumnHeaderData("facet",null,t)),i}assemble(){let t=[],n=null,r=this.getChildIndependentFieldsWithStep(),{column:i,row:a,facet:o}=this;if(i&&a&&(r.x||r.y)){n=`cross_${this.column.name}_${this.row.name}`;let l=[].concat(r.x??[],r.y??[]),s=l.map(()=>"distinct");t.push({name:n,source:this.data,transform:[{type:"aggregate",groupby:this.fields,fields:l,ops:s}]})}for(let l of[mi,pi])this[l]&&t.push(this.assembleRowColumnHeaderData(l,n,r));if(o){let l=this.assembleFacetHeaderData(r);l&&t.push(...l)}return t}};function s8(e){return e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e}function are(e,t){let n=cv(e);return t==="number"?`toNumber(${n})`:t==="boolean"?`toBoolean(${n})`:t==="string"?`toString(${n})`:t==="date"?`toDate(${n})`:t==="flatten"?n:t.startsWith("date:")?`timeParse(${n},'${s8(t.slice(5,t.length))}')`:t.startsWith("utc:")?`utcParse(${n},'${s8(t.slice(4,t.length))}')`:(q(zQ(t)),null)}function ore(e){let t={};return nh(e.filter,n=>{if(l5(n)){let r=null;Bv(n)?r=$n(n.equal):Nv(n)?r=$n(n.lte):zv(n)?r=$n(n.lt):Rv(n)?r=$n(n.gt):Tv(n)?r=$n(n.gte):Lv(n)?r=n.range[0]:Pv(n)&&(r=(n.oneOf??n.in)[0]),r&&(so(r)?t[n.field]="date":He(r)?t[n.field]="number":se(r)&&(t[n.field]="string")),n.timeUnit&&(t[n.field]="date")}}),t}function lre(e){let t={};function n(r){zl(r)?t[r.field]="date":r.type==="quantitative"&&sQ(r.aggregate)?t[r.field]="number":El(r.field)>1?r.field in t||(t[r.field]="flatten"):go(r)&&Ei(r.sort)&&El(r.sort.field)>1&&(r.sort.field in t||(t[r.sort.field]="flatten"))}if((Je(e)||Mn(e))&&e.forEachFieldDef((r,i)=>{if(an(r))n(r);else{let a=io(i),o=e.fieldDef(a);n({...r,type:o.type})}}),Je(e)){let{mark:r,markDef:i,encoding:a}=e;if(va(r)&&!e.encoding.order){let o=a[i.orient==="horizontal"?"y":"x"];U(o)&&o.type==="quantitative"&&!(o.field in t)&&(t[o.field]="number")}}return t}function sre(e){let t={};if(Je(e)&&e.component.selection)for(let n of I(e.component.selection)){let r=e.component.selection[n];for(let i of r.project.items)!i.channel&&El(i.field)>1&&(t[i.field]="flatten")}return t}var Sn=class t2 extends Te{constructor(n,r){super(n);N(this,"_parse");this._parse=r}clone(){return new t2(null,oe(this._parse))}hash(){return`Parse ${ye(this._parse)}`}static makeExplicit(n,r,i){var l;let a={},o=r.data;return!Aa(o)&&((l=o==null?void 0:o.format)!=null&&l.parse)&&(a=o.format.parse),this.makeWithAncestors(n,a,{},i)}static makeWithAncestors(n,r,i,a){for(let s of I(i)){let u=a.getWithExplicit(s);u.value!==void 0&&(u.explicit||u.value===i[s]||u.value==="derived"||i[s]==="flatten"?delete i[s]:q(q3(s,i[s],u.value)))}for(let s of I(r)){let u=a.get(s);u!==void 0&&(u===r[s]?delete r[s]:q(q3(s,r[s],u)))}let o=new vo(r,i);a.copyAll(o);let l={};for(let s of I(o.combine())){let u=o.get(s);u!==null&&(l[s]=u)}return I(l).length===0||a.parseNothing?null:new t2(n,l)}get parse(){return this._parse}merge(n){this._parse={...this._parse,...n.parse},n.remove()}assembleFormatParse(){let n={};for(let r of I(this._parse)){let i=this._parse[r];El(r)===1&&(n[r]=i)}return n}producedFields(){return new Set(I(this._parse))}dependentFields(){return new Set(I(this._parse))}assembleTransforms(n=!1){return I(this._parse).filter(r=>n?El(r)>1:!0).map(r=>{let i=are(r,this._parse[r]);return i?{type:"formula",expr:i,as:Al(r)}:null}).filter(r=>r!==null)}},Hl=class a4 extends Te{clone(){return new a4(null)}constructor(t){super(t)}dependentFields(){return new Set}producedFields(){return new Set([wr])}hash(){return"Identifier"}assemble(){return{type:"identifier",as:wr}}},Qb=class o4 extends Te{constructor(n,r){super(n);N(this,"params");this.params=r}clone(){return new o4(null,this.params)}dependentFields(){return new Set}producedFields(){}hash(){return`Graticule ${ye(this.params)}`}assemble(){return{type:"graticule",...this.params===!0?{}:this.params}}},Kb=class l4 extends Te{constructor(n,r){super(n);N(this,"params");this.params=r}clone(){return new l4(null,this.params)}dependentFields(){return new Set}producedFields(){return new Set([this.params.as??"data"])}hash(){return`Hash ${ye(this.params)}`}assemble(){return{type:"sequence",...this.params}}},Eo=class extends Te{constructor(t){super(null);N(this,"_data");N(this,"_name");N(this,"_generator");t??(t={name:"source"});let n;if(Aa(t)||(n=t.format?{...Fn(t.format,["parse"])}:{}),Hu(t))this._data={values:t.values};else if(Rl(t)){if(this._data={url:t.url},!n.type){let r=/(?:\.([^.]+))?$/.exec(t.url)[1];he(["json","csv","tsv","dsv","topojson"],r)||(r="json"),n.type=r}}else VS(t)?this._data={values:[{type:"Sphere"}]}:(GS(t)||Aa(t))&&(this._data={});this._generator=Aa(t),t.name&&(this._name=t.name),n&&!Ie(n)&&(this._data.format=n)}dependentFields(){return new Set}producedFields(){}get data(){return this._data}hasName(){return!!this._name}get isGenerator(){return this._generator}get dataName(){return this._name}set dataName(t){this._name=t}set parent(t){throw Error("Source nodes have to be roots.")}remove(){throw Error("Source nodes are roots and cannot be removed.")}hash(){throw Error("Cannot hash sources")}assemble(){return{name:this._name,...this._data,transform:[]}}};function Zb(e){return e instanceof Eo||e instanceof Qb||e instanceof Kb}var ex=(Z9=class{constructor(){p2(this,Ql);_p(this,Ql,!1)}setModified(){_p(this,Ql,!0)}get modifiedFlag(){return h2(this,Ql)}},Ql=new WeakMap,Z9),ko=class extends ex{getNodeDepths(e,t,n){n.set(e,t);for(let r of e.children)this.getNodeDepths(r,t+1,n);return n}optimize(e){let t=[...this.getNodeDepths(e,0,new Map).entries()].sort((n,r)=>r[1]-n[1]);for(let n of t)this.run(n[0]);return this.modifiedFlag}},tx=class extends ex{optimize(e){this.run(e);for(let t of e.children)this.optimize(t);return this.modifiedFlag}},ure=class extends tx{mergeNodes(e,t){let n=t.shift();for(let r of t)e.removeChild(r),r.parent=n,r.remove()}run(e){let t=e.children.map(r=>r.hash()),n={};for(let r=0;r1&&(this.setModified(),this.mergeNodes(e,n[r]))}},cre=class extends tx{constructor(t){super();N(this,"requiresSelectionId");this.requiresSelectionId=t&&Lb(t)}run(t){t instanceof Hl&&(this.requiresSelectionId&&(Zb(t.parent)||t.parent instanceof Ao||t.parent instanceof Sn)||(this.setModified(),t.remove()))}},fre=class extends ex{optimize(e){return this.run(e,new Set),this.modifiedFlag}run(e,t){let n=new Set;e instanceof Tl&&(n=e.producedFields(),lv(n,t)&&(this.setModified(),e.removeFormulas(t),e.producedFields.length===0&&e.remove()));for(let r of e.children)this.run(r,new Set([...t,...n]))}},dre=class extends tx{constructor(){super()}run(e){e instanceof bn&&!e.isRequired()&&(this.setModified(),e.remove())}},hre=class extends ko{run(e){if(!Zb(e)&&!(e.numChildren()>1)){for(let t of e.children)if(t instanceof Sn)if(e instanceof Sn)this.setModified(),e.merge(t);else{if(uv(e.producedFields(),t.dependentFields()))continue;this.setModified(),t.swapWithParent()}}}},pre=class extends ko{run(e){let t=[...e.children],n=e.children.filter(r=>r instanceof Sn);if(e.numChildren()>1&&n.length>=1){let r={},i=new Set;for(let a of n){let o=a.parse;for(let l of I(o))l in r?r[l]!==o[l]&&i.add(l):r[l]=o[l]}for(let a of i)delete r[a];if(!Ie(r)){this.setModified();let a=new Sn(e,r);for(let o of t){if(o instanceof Sn)for(let l of I(r))delete o.parse[l];e.removeChild(o),o.parent=a,o instanceof Sn&&I(o.parse).length===0&&o.remove()}}}}},mre=class extends ko{run(e){e instanceof bn||e.numChildren()>0||e instanceof Gl||e instanceof Eo||(this.setModified(),e.remove())}},gre=class extends ko{run(e){let t=e.children.filter(r=>r instanceof Tl),n=t.pop();for(let r of t)this.setModified(),n.merge(r)}},yre=class extends ko{run(e){let t=e.children.filter(r=>r instanceof Ao),n={};for(let r of t){let i=ye(r.groupBy);i in n||(n[i]=[]),n[i].push(r)}for(let r of I(n)){let i=n[r];if(i.length>1){let a=i.pop();for(let o of i)a.merge(o)&&(e.removeChild(o),o.parent=a,o.remove(),this.setModified())}}}},vre=class extends ko{constructor(t){super();N(this,"model");this.model=t}run(t){let n=!(Zb(t)||t instanceof Xh||t instanceof Sn||t instanceof Hl),r=[],i=[];for(let a of t.children)a instanceof Wl&&(n&&!uv(t.producedFields(),a.dependentFields())?r.push(a):i.push(a));if(r.length>0){let a=r.pop();for(let o of r)a.merge(o,this.model.renameSignal.bind(this.model));this.setModified(),t instanceof Wl?t.merge(a,this.model.renameSignal.bind(this.model)):a.swapWithParent()}if(i.length>1){let a=i.pop();for(let o of i)a.merge(o,this.model.renameSignal.bind(this.model));this.setModified()}}},bre=class extends ko{run(e){let t=[...e.children];if(!wl(t,i=>i instanceof bn)||e.numChildren()<=1)return;let n=[],r;for(let i of t)if(i instanceof bn){let a=i;for(;a.numChildren()===1;){let[o]=a.children;if(o instanceof bn)a=o;else break}n.push(...a.children),r?(e.removeChild(i),i.parent=r.parent,r.parent.removeChild(r),r.parent=a,this.setModified()):r=a}else n.push(i);if(n.length){this.setModified();for(let i of n)i.parent.removeChild(i),i.parent=r}}},Ju=class s4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r}clone(){return new s4(null,oe(this.transform))}addDimensions(n){this.transform.groupby=Ir(this.transform.groupby.concat(n),r=>r)}dependentFields(){let n=new Set;return this.transform.groupby&&this.transform.groupby.forEach(n.add,n),this.transform.joinaggregate.map(r=>r.field).filter(r=>r!==void 0).forEach(n.add,n),n}producedFields(){return new Set(this.transform.joinaggregate.map(this.getDefaultName))}getDefaultName(n){return n.as??V(n)}hash(){return`JoinAggregateTransform ${ye(this.transform)}`}assemble(){let n=[],r=[],i=[];for(let o of this.transform.joinaggregate)r.push(o.op),i.push(this.getDefaultName(o)),n.push(o.field===void 0?null:o.field);let a=this.transform.groupby;return{type:"joinaggregate",as:i,ops:r,fields:n,...a===void 0?{}:{groupby:a}}}},nx=class n2 extends Te{constructor(n,r){super(n);N(this,"filter");this.filter=r}clone(){return new n2(null,{...this.filter})}static make(n,r,i){let{config:a,markDef:o}=r,{marks:l,scales:s}=i;if(l==="include-invalid-values"&&s==="include-invalid-values")return null;let u=r.reduceFieldDef((c,f,d)=>{let h=Gr(d)&&r.getScaleComponent(d);if(h){let p=h.get("type"),{aggregate:m}=f,g=Yv({scaleChannel:d,markDef:o,config:a,scaleType:p,isCountAggregate:fh(m)});g!=="show"&&g!=="always-valid"&&(c[f.field]=f)}return c},{});return I(u).length?new n2(n,u):null}dependentFields(){return new Set(I(this.filter))}producedFields(){return new Set}hash(){return`FilterInvalid ${ye(this.filter)}`}assemble(){let n=I(this.filter).reduce((r,i)=>{let a=this.filter[i],o=V(a,{expr:"datum"});return a!==null&&(a.type==="temporal"?r.push(`(isDate(${o}) || (${rx(o)}))`):a.type==="quantitative"&&r.push(rx(o))),r},[]);return n.length>0?{type:"filter",expr:n.join(" && ")}:null}};function rx(e){return`isValid(${e}) && isFinite(+${e})`}function xre(e){return e.stack.stackBy.reduce((t,n)=>{let r=n.fieldDef,i=V(r);return i&&t.push(i),t},[])}function wre(e){return X(e)&&e.every(t=>se(t))&&e.length>1}var Qu=class wp extends Te{constructor(n,r){super(n);N(this,"_stack");this._stack=r}clone(){return new wp(null,oe(this._stack))}static makeFromTransform(n,r){let{stack:i,groupby:a,as:o,offset:l="zero"}=r,s=[],u=[];if(r.sort!==void 0)for(let d of r.sort)s.push(d.field),u.push(at(d.order,"ascending"));let c={field:s,order:u},f;return f=wre(o)?o:se(o)?[o,`${o}_end`]:[`${r.stack}_start`,`${r.stack}_end`],new wp(n,{dimensionFieldDefs:[],stackField:i,groupby:a,offset:l,sort:c,facetby:[],as:f})}static makeFromEncoding(n,r){let i=r.stack,{encoding:a}=r;if(!i)return null;let{groupbyChannels:o,fieldChannel:l,offset:s,impute:u}=i,c=o.map(p=>{let m=a[p];return xr(m)}).filter(p=>!!p),f=xre(r),d=r.encoding.order,h;if(X(d)||U(d))h=O3(d);else{let p=R5(d)?d.sort:l==="y"?"descending":"ascending";h=f.reduce((m,g)=>(m.field.includes(g)||(m.field.push(g),m.order.push(p)),m),{field:[],order:[]})}return new wp(n,{dimensionFieldDefs:c,stackField:r.vgField(l),facetby:[],stackby:f,sort:h,offset:s,impute:u,as:[r.vgField(l,{suffix:"start",forAs:!0}),r.vgField(l,{suffix:"end",forAs:!0})]})}get stack(){return this._stack}addDimensions(n){this._stack.facetby.push(...n)}dependentFields(){let n=new Set;return n.add(this._stack.stackField),this.getGroupbyFields().forEach(n.add,n),this._stack.facetby.forEach(n.add,n),this._stack.sort.field.forEach(n.add,n),n}producedFields(){return new Set(this._stack.as)}hash(){return`Stack ${ye(this._stack)}`}getGroupbyFields(){let{dimensionFieldDefs:n,impute:r,groupby:i}=this._stack;return n.length>0?n.map(a=>a.bin?r?[V(a,{binSuffix:"mid"})]:[V(a,{}),V(a,{binSuffix:"end"})]:[V(a)]).flat():i??[]}assemble(){let n=[],{facetby:r,dimensionFieldDefs:i,stackField:a,stackby:o,sort:l,offset:s,impute:u,as:c}=this._stack;if(u)for(let f of i){let{bandPosition:d=.5,bin:h}=f;if(h){let p=V(f,{expr:"datum"}),m=V(f,{expr:"datum",binSuffix:"end"});n.push({type:"formula",expr:`${rx(p)} ? ${d}*${p}+${1-d}*${m} : ${p}`,as:V(f,{binSuffix:"mid",forAs:!0})})}n.push({type:"impute",field:a,groupby:[...o,...r],key:V(f,{binSuffix:"mid"}),method:"value",value:0})}return n.push({type:"stack",groupby:[...this.getGroupbyFields(),...r],field:a,sort:l,as:c,offset:s}),n}},Zh=class u4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r}clone(){return new u4(null,oe(this.transform))}addDimensions(n){this.transform.groupby=Ir(this.transform.groupby.concat(n),r=>r)}dependentFields(){let n=new Set;return(this.transform.groupby??[]).forEach(n.add,n),(this.transform.sort??[]).forEach(r=>n.add(r.field)),this.transform.window.map(r=>r.field).filter(r=>r!==void 0).forEach(n.add,n),n}producedFields(){return new Set(this.transform.window.map(this.getDefaultName))}getDefaultName(n){return n.as??V(n)}hash(){return`WindowTransform ${ye(this.transform)}`}assemble(){let n=[],r=[],i=[],a=[];for(let d of this.transform.window)r.push(d.op),i.push(this.getDefaultName(d)),a.push(d.param===void 0?null:d.param),n.push(d.field===void 0?null:d.field);let o=this.transform.frame,l=this.transform.groupby;if(o&&o[0]===null&&o[1]===null&&r.every(d=>wv(d)))return{type:"joinaggregate",as:i,ops:r,fields:n,...l===void 0?{}:{groupby:l}};let s=[],u=[];if(this.transform.sort!==void 0)for(let d of this.transform.sort)s.push(d.field),u.push(d.order??"ascending");let c={field:s,order:u},f=this.transform.ignorePeers;return{type:"window",params:a,as:i,ops:r,fields:n,sort:c,...f===void 0?{}:{ignorePeers:f},...l===void 0?{}:{groupby:l},...o===void 0?{}:{frame:o}}}};function Are(e){function t(n){if(!(n instanceof Gl)){let r=n.clone();if(r instanceof bn){let i=ax+r.getSource();r.setSource(i),e.model.component.data.outputNodes[i]=r}else(r instanceof Ao||r instanceof Qu||r instanceof Zh||r instanceof Ju)&&r.addDimensions(e.fields);for(let i of n.children.flatMap(t))i.parent=r;return[r]}return n.children.flatMap(t)}return t}function ix(e){if(e instanceof Gl)if(e.numChildren()===1&&!(e.children[0]instanceof bn)){let t=e.children[0];(t instanceof Ao||t instanceof Qu||t instanceof Zh||t instanceof Ju)&&t.addDimensions(e.fields),t.swapWithParent(),ix(e)}else{let t=e.model.component.data.main;u8(t);let n=Are(e),r=e.children.map(n).flat();for(let i of r)i.parent=t}else e.children.map(ix)}function u8(e){if(e instanceof bn&&e.type===et.Main&&e.numChildren()===1){let t=e.children[0];t instanceof Gl||(t.swapWithParent(),u8(e))}}var ax="scale_",ep=5;function ox(e){for(let t of e){for(let n of t.children)if(n.parent!==t)return!1;if(!ox(t.children))return!1}return!0}function Er(e,t){let n=!1;for(let r of t)n=e.optimize(r)||n;return n}function c8(e,t,n){let r=e.sources,i=!1;return i=Er(new dre,r)||i,i=Er(new cre(t),r)||i,r=r.filter(a=>a.numChildren()>0),i=Er(new mre,r)||i,r=r.filter(a=>a.numChildren()>0),n||(i=Er(new hre,r)||i,i=Er(new vre(t),r)||i,i=Er(new fre,r)||i,i=Er(new pre,r)||i,i=Er(new yre,r)||i,i=Er(new gre,r)||i,i=Er(new ure,r)||i,i=Er(new bre,r)||i),e.sources=r,i}function Ere(e,t){ox(e.sources);let n=0,r=0;for(let i=0;it(n))}};function f8(e){Je(e)?kre(e):_re(e)}function kre(e){let t=e.component.scales;for(let n of I(t)){let r=Fre(e,n);if(t[n].setWithExplicit("domains",r),$re(e,n),e.component.data.isFaceted){let i=e;for(;!Mn(i)&&i.parent;)i=i.parent;if(i.component.resolve.scale[n]==="shared")for(let a of r.value)Ai(a)&&(a.data=ax+a.data.replace(ax,""))}}}function _re(e){for(let n of e.children)f8(n);let t=e.component.scales;for(let n of I(t)){let r,i=null;for(let a of e.children){let o=a.component.scales[n];if(o){r=r===void 0?o.getWithExplicit("domains"):wa(r,o.getWithExplicit("domains"),"domains","scale",ux);let l=o.get("selectionExtent");i&&l&&i.param!==l.param&&q(FQ),i=l}}t[n].setWithExplicit("domains",r),i&&t[n].set("selectionExtent",i,!0)}}function Dre(e,t,n,r){if(e==="unaggregated"){let{valid:i,reason:a}=d8(t,n);if(!i){q(a);return}}else if(e===void 0&&r.useUnaggregatedDomain){let{valid:i}=d8(t,n);if(i)return"unaggregated"}return e}function Fre(e,t){let n=e.getScaleComponent(t).get("type"),{encoding:r}=e,i=Dre(e.scaleDomain(t),e.typedFieldDef(t),n,e.config.scale);return i!==e.scaleDomain(t)&&(e.specifiedScales[t]={...e.specifiedScales[t],domain:i}),t==="x"&&pt(r.x2)?pt(r.x)?wa(Ea(n,i,e,"x"),Ea(n,i,e,"x2"),"domain","scale",ux):Ea(n,i,e,"x2"):t==="y"&&pt(r.y2)?pt(r.y)?wa(Ea(n,i,e,"y"),Ea(n,i,e,"y2"),"domain","scale",ux):Ea(n,i,e,"y2"):Ea(n,i,e,t)}function Cre(e,t,n){return e.map(r=>({signal:`{data: ${Mh(r,{timeUnit:n,type:t})}}`}))}function lx(e,t,n){var i;let r=(i=xt(n))==null?void 0:i.unit;return t==="temporal"||r?Cre(e,t,r):[e]}function Ea(e,t,n,r){let{encoding:i,markDef:a,mark:o,config:l,stack:s}=n,u=pt(i[r]),{type:c}=u,f=u.timeUnit,d=Ate({invalid:Hr("invalid",a,l),isPath:va(o)});if(ZK(t)){let m=Ea(e,void 0,n,r);return Kr([...lx(t.unionWith,c,f),...m.value])}else{if(Q(t))return Kr([t]);if(t&&t!=="unaggregated"&&!m5(t))return Kr(lx(t,c,f))}if(s&&r===s.fieldChannel){if(s.offset==="normalize")return Ar([[0,1]]);let m=n.requestDataName(d);return Ar([{data:m,field:n.vgField(r,{suffix:"start"})},{data:m,field:n.vgField(r,{suffix:"end"})}])}let h=Gr(r)&&U(u)?Sre(n,r,e):void 0;if(Jr(u))return Ar(lx([u.datum],c,f));let p=u;if(t==="unaggregated"){let{field:m}=u;return Ar([{data:n.requestDataName(d),field:V({field:m,aggregate:"min"})},{data:n.requestDataName(d),field:V({field:m,aggregate:"max"})}])}else if(je(p.bin)){if(wt(e))return Ar(e==="bin-ordinal"?[]:[{data:$u(h)?n.requestDataName(d):n.requestDataName(et.Raw),field:n.vgField(r,Wu(p,r)?{binSuffix:"range"}:{}),sort:h===!0||!Ae(h)?{field:n.vgField(r,{}),op:"min"}:h}]);{let{bin:m}=p;if(je(m)){let g=Jb(n,p.field,m);return Ar([new Lt(()=>{let y=n.getSignalName(g);return`[${y}.start, ${y}.stop]`})])}else return Ar([{data:n.requestDataName(d),field:n.vgField(r,{})}])}}else if(p.timeUnit&&he(["time","utc"],e)){let m=i[Wr(r)];if(N5(p,m,a,l)){let g=n.requestDataName(d),y=ba({fieldDef:p,fieldDef2:m,markDef:a,config:l}),v=Lu(o)&&y!==.5&&ot(r);return Ar([{data:g,field:n.vgField(r,v?{suffix:Ih}:{})},{data:g,field:n.vgField(r,{suffix:v?jh:"end"})}])}}return Ar(h?[{data:$u(h)?n.requestDataName(d):n.requestDataName(et.Raw),field:n.vgField(r),sort:h}]:[{data:n.requestDataName(d),field:n.vgField(r)}])}function sx(e,t){let{op:n,field:r,order:i}=e;return{op:n??(t?"sum":Eh),...r?{field:Wn(r)}:{},...i?{order:i}:{}}}function $re(e,t){var l;let n=e.component.scales[t],r=e.specifiedScales[t].domain,i=(l=e.fieldDef(t))==null?void 0:l.bin,a=m5(r)?r:void 0,o=ao(i)&&dh(i.extent)?i.extent:void 0;(a||o)&&n.set("selectionExtent",a??o,!0)}function Sre(e,t,n){if(!wt(n))return;let r=e.fieldDef(t),i=r.sort;if(O5(i))return{op:"min",field:ql(r,t),order:"ascending"};let{stack:a}=e,o=a?new Set([...a.groupbyFields,...a.stackBy.map(l=>l.fieldDef.field)]):void 0;if(Ei(i))return sx(i,a&&!o.has(i.field));if(DZ(i)){let{encoding:l,order:s}=i,u=e.fieldDef(l),{aggregate:c,field:f}=u,d=a&&!o.has(f);if(wi(c)||ga(c))return sx({field:V(u),order:s},d);if(wv(c)||!c)return sx({op:c,field:f,order:s},d)}else{if(i==="descending")return{op:"min",field:e.vgField(t),order:"descending"};if(he(["ascending",void 0],i))return!0}}function d8(e,t){let{aggregate:n,type:r}=e;return n?se(n)&&!cQ.has(n)?{valid:!1,reason:nK(n)}:r==="quantitative"&&t==="log"?{valid:!1,reason:rK(e)}:{valid:!0}:{valid:!1,reason:tK(e)}}function ux(e,t,n,r){return e.explicit&&t.explicit&&q(sK(n,r,e.value,t.value)),{explicit:e.explicit,value:[...e.value,...t.value]}}function Mre(e){let t=Ir(e.map(o=>{if(Ai(o)){let{sort:l,...s}=o;return s}return o}),ye),n=Ir(e.map(o=>{if(Ai(o)){let l=o.sort;return l!==void 0&&!$u(l)&&("op"in l&&l.op==="count"&&delete l.field,l.order==="ascending"&&delete l.order),l}}).filter(o=>o!==void 0),ye);if(t.length===0)return;if(t.length===1){let o=e[0];if(Ai(o)&&n.length>0){let l=n[0];if(n.length>1){q(X3);let s=n.filter(u=>Ae(u)&&"op"in u&&u.op!=="min");l=n.every(u=>Ae(u)&&"op"in u)&&s.length===1?s[0]:!0}else if(Ae(l)&&"field"in l){let s=l.field;o.field===s&&(l=l.order?{order:l.order}:!0)}return{...o,sort:l}}return o}let r=Ir(n.map(o=>$u(o)||!("op"in o)||se(o.op)&&st(oQ,o.op)?o:(q(cK(o)),!0)),ye),i;r.length===1?i=r[0]:r.length>1&&(q(X3),i=!0);let a=Ir(e.map(o=>Ai(o)?o.data:null),o=>o);return a.length===1&&a[0]!==null?{data:a[0],fields:t.map(o=>o.field),...i?{sort:i}:{}}:{fields:t,...i?{sort:i}:{}}}function cx(e){if(Ai(e)&&se(e.field))return e.field;if(fQ(e)){let t;for(let n of e.fields)if(Ai(n)&&se(n.field)){if(!t)t=n.field;else if(t!==n.field)return q(fK),t}return q(dK),t}else if(dQ(e)){q(hK);let t=e.fields[0];return se(t)?t:void 0}}function tp(e,t){return Mre(e.component.scales[t].get("domains").map(n=>(Ai(n)&&(n.data=e.lookupDataSource(n.data)),n)))}function h8(e){return Vl(e)||dx(e)?e.children.reduce((t,n)=>t.concat(h8(n)),p8(e)):p8(e)}function p8(e){return I(e.component.scales).reduce((t,n)=>{let r=e.component.scales[n];if(r.merged)return t;let i=r.combine(),{name:a,type:o,selectionExtent:l,domains:s,range:u,reverse:c,...f}=i,d=Ore(i.range,a,n,e),h=tp(e,n),p=l?Bte(e,l,r,h):null;return t.push({name:a,type:o,...h?{domain:h}:{},...p?{domainRaw:p}:{},range:d,...c===void 0?{}:{reverse:c},...f}),t},[])}function Ore(e,t,n,r){if(ot(n)){if(oo(e))return{step:{signal:`${t}_step`}}}else if(Ae(e)&&Ai(e))return{...e,data:r.lookupDataSource(e.data)};return e}var m8=class extends vo{constructor(t,n){super({},{name:t});N(this,"merged",!1);this.setWithExplicit("type",n)}domainHasZero(){let t=this.get("type");if(he([$t.LOG,$t.TIME,$t.UTC],t))return"definitely-not";let n=this.get("zero");if(n===!0||n===void 0&&he([$t.LINEAR,$t.SQRT,$t.POW],t))return"definitely";let r=this.get("domains");if(r.length>0){let i=!1,a=!1,o=!1;for(let l of r){if(X(l)){let s=l[0],u=l[l.length-1];if(He(s)&&He(u))if(s<=0&&u>=0){i=!0;continue}else{a=!0;continue}}o=!0}if(i)return"definitely";if(a&&!o)return"definitely-not"}return"maybe"}},Bre=["range","scheme"];function zre(e){let t=e.component.scales;for(let n of bv){let r=t[n];if(!r)continue;let i=Nre(n,e);r.setWithExplicit("range",i)}}function g8(e,t){let n=e.fieldDef(t);if(n!=null&&n.bin){let{bin:r,field:i}=n,a=vn(t),o=e.getName(a);if(Ae(r)&&r.binned&&r.step!==void 0)return new Lt(()=>{let l=e.scaleName(t),s=`(domain("${l}")[1] - domain("${l}")[0]) / ${r.step}`;return`${e.getSignalName(o)} / (${s})`});if(je(r)){let l=Jb(e,i,r);return new Lt(()=>{let s=e.getSignalName(l),u=`(${s}.stop - ${s}.start) / ${s}.step`;return`${e.getSignalName(o)} / (${u})`})}}}function Nre(e,t){let n=t.specifiedScales[e],{size:r}=t,i=t.getScaleComponent(e).get("type");for(let c of Bre)if(n[c]!==void 0){let f=Uv(i,c),d=g5(e,c);if(!f)q(H3(i,c,e));else if(d)q(d);else switch(c){case"range":{let h=n.range;if(X(h)){if(ot(e))return Kr(h.map(p=>{if(p==="width"||p==="height"){let m=t.getName(p),g=t.getSignalName.bind(t);return Lt.fromName(g,m)}return p}))}else if(Ae(h))return Kr({data:t.requestDataName(et.Main),field:h.field,sort:{op:"min",field:t.vgField(e)}});return Kr(h)}case"scheme":return Kr(Rre(n[c]))}}let a=e===Xe||e==="xOffset"?"width":"height",o=r[a];if(Qr(o)){if(ot(e))if(wt(i)){let c=v8(o,t,e);if(c)return Kr({step:c})}else q(V3(a));else if(Nu(e)){let c=e===ua?"x":"y";if(t.getScaleComponent(c).get("type")==="band"){let f=b8(o,i);if(f)return Kr(f)}}}let{rangeMin:l,rangeMax:s}=n,u=Tre(e,t);return(l!==void 0||s!==void 0)&&Uv(i,"rangeMin")&&X(u)&&u.length===2?Kr([l??u[0],s??u[1]]):Ar(u)}function Rre(e){return KK(e)?{scheme:e.name,...Fn(e,["name"])}:{scheme:e}}function y8(e,t,n,{center:r}={}){let i=vn(e),a=t.getName(i),o=t.getSignalName.bind(t);return e===bt&&yr(n)?r?[Lt.fromName(l=>`${o(l)}/2`,a),Lt.fromName(l=>`-${o(l)}/2`,a)]:[Lt.fromName(o,a),0]:r?[Lt.fromName(l=>`-${o(l)}/2`,a),Lt.fromName(l=>`${o(l)}/2`,a)]:[0,Lt.fromName(o,a)]}function Tre(e,t){let{size:n,config:r,mark:i,encoding:a}=t,{type:o}=pt(a[e]),l=t.getScaleComponent(e).get("type"),{domain:s,domainMid:u}=t.specifiedScales[e];switch(e){case Xe:case bt:if(he(["point","band"],l)){let c=x8(e,n,r.view);if(Qr(c))return{step:v8(c,t,e)}}return y8(e,t,l);case ua:case kl:return Lre(e,t,l);case vi:{let c=jre(i,r),f=qre(i,n,t,r);return $l(l)?Ire(c,f,Pre(l,r,s,e)):[c,f]}case Gn:return[0,Math.PI*2];case no:return[0,360];case dr:return[0,new Lt(()=>`min(${t.getSignalName(Mn(t.parent)?"child_width":"width")},${t.getSignalName(Mn(t.parent)?"child_height":"height")})/2`)];case ca:return{step:1e3/r.scale.framesPerSecond};case ha:return[r.scale.minStrokeWidth,r.scale.maxStrokeWidth];case pa:return[[1,0],[4,2],[2,1],[1,1],[1,2,4,2]];case yn:return"symbol";case gn:case qr:case Ur:return l==="ordinal"?o==="nominal"?"category":"ordinal":u===void 0?i==="rect"||i==="geoshape"?"heatmap":"ramp":"diverging";case bi:case fa:case da:return[r.scale.minOpacity,r.scale.maxOpacity]}}function v8(e,t,n){let{encoding:r}=t,i=t.getScaleComponent(n),a=pv(n),o=r[a];if(yS({step:e,offsetIsDiscrete:le(o)&&u5(o.type)})==="offset"&&J5(r,a)){let l=t.getScaleComponent(a),s=`domain('${t.scaleName(a)}').length`;if(l.get("type")==="band"){let c=l.get("paddingInner")??l.get("padding")??0,f=l.get("paddingOuter")??l.get("padding")??0;s=`bandspace(${s}, ${c}, ${f})`}let u=i.get("paddingInner")??i.get("padding");return{signal:`${e.step} * ${s} / (1-${gQ(u)})`}}else return e.step}function b8(e,t){if(yS({step:e,offsetIsDiscrete:wt(t)})==="offset")return{step:e.step}}function Lre(e,t,n){let r=e===ua?"x":"y",i=t.getScaleComponent(r);if(!i)return y8(r,t,n,{center:!0});let a=i.get("type"),o=t.scaleName(r),{markDef:l,config:s}=t;if(a==="band"){let u=x8(r,t.size,t.config.view);if(Qr(u)){let c=b8(u,n);if(c)return c}return[0,{signal:`bandwidth('${o}')`}]}else{let u=t.encoding[r];if(U(u)&&u.timeUnit){let c=a5(u.timeUnit,p=>`scale('${o}', ${p})`),f=t.config.scale.bandWithNestedOffsetPaddingInner,d=ba({fieldDef:u,markDef:l,config:s})-.5,h=d===0?"":` + ${d}`;if(f){let p=Q(f)?`${f.signal}/2${h}`:`${f/2+d}`,m=Q(f)?`(1 - ${f.signal}/2)${h}`:`${1-f/2+d}`;return[{signal:`${p} * (${c})`},{signal:`${m} * (${c})`}]}return[0,{signal:c}]}return n3(`Cannot use ${e} scale if ${r} scale is not discrete.`)}}function x8(e,t,n){let r=e===Xe?"width":"height";return t[r]||Th(n,r)}function Pre(e,t,n,r){switch(e){case"quantile":return t.scale.quantileCount;case"quantize":return t.scale.quantizeCount;case"threshold":return n!==void 0&&X(n)?n.length+1:(q(AK(r)),3)}}function Ire(e,t,n){let r=()=>{let i=gr(t),a=gr(e),o=`(${i} - ${a}) / (${n} - 1)`;return`sequence(${a}, ${i} + ${o}, ${o})`};return Q(t)?new Lt(r):{signal:r()}}function jre(e,t){switch(e){case"bar":case"tick":return t.scale.minBandSize;case"line":case"trail":case"rule":return t.scale.minStrokeWidth;case"text":return t.scale.minFontSize;case"point":case"square":case"circle":return t.scale.minSize}throw Error(hh("size",e))}var w8=.95;function qre(e,t,n,r){let i={x:g8(n,"x"),y:g8(n,"y")};switch(e){case"bar":case"tick":{if(r.scale.maxBandSize!==void 0)return r.scale.maxBandSize;let a=A8(t,i,r.view);return He(a)?a-1:new Lt(()=>`${a.signal} - 1`)}case"line":case"trail":case"rule":return r.scale.maxStrokeWidth;case"text":return r.scale.maxFontSize;case"point":case"square":case"circle":{if(r.scale.maxSize)return r.scale.maxSize;let a=A8(t,i,r.view);return He(a)?(w8*a)**2:new Lt(()=>`pow(${w8} * ${a.signal}, 2)`)}}throw Error(hh("size",e))}function A8(e,t,n){let r=Qr(e.width)?e.width.step:vb(n,"width"),i=Qr(e.height)?e.height.step:vb(n,"height");return t.x||t.y?new Lt(()=>`min(${[t.x?t.x.signal:r,t.y?t.y.signal:i].join(", ")})`):Math.min(r,i)}function E8(e,t){Je(e)?Ure(e,t):D8(e,t)}function Ure(e,t){let n=e.component.scales,{config:r,encoding:i,markDef:a,specifiedScales:o}=e;for(let l of I(n)){let s=o[l],u=n[l],c=e.getScaleComponent(l),f=pt(i[l]),d=s[t],h=c.get("type"),p=c.get("padding"),m=c.get("paddingInner"),g=Uv(h,t),y=g5(l,t);if(d!==void 0&&(g?y&&q(y):q(H3(h,t,l))),g&&y===void 0)if(d!==void 0){let v=f.timeUnit,b=f.type;switch(t){case"domainMax":case"domainMin":so(s[t])||b==="temporal"||v?u.set(t,{signal:Mh(s[t],{type:b,timeUnit:v})},!0):u.set(t,s[t],!0);break;default:u.copyKeyFromObject(t,s)}}else{let v=j(k8,t)?k8[t]({model:e,channel:l,fieldOrDatumDef:f,scaleType:h,scalePadding:p,scalePaddingInner:m,domain:s.domain,domainMin:s.domainMin,domainMax:s.domainMax,markDef:a,config:r,hasNestedOffsetScale:Q5(i,l),hasSecondaryRangeChannel:!!i[Wr(l)]}):r.scale[t];v!==void 0&&u.set(t,v,!1)}}}var k8={bins:({model:e,fieldOrDatumDef:t})=>U(t)?Wre(e,t):void 0,interpolate:({channel:e,fieldOrDatumDef:t})=>Gre(e,t.type),nice:({scaleType:e,channel:t,domain:n,domainMin:r,domainMax:i,fieldOrDatumDef:a})=>Hre(e,t,n,r,i,a),padding:({channel:e,scaleType:t,fieldOrDatumDef:n,markDef:r,config:i})=>Vre(e,t,i.scale,n,r,i.bar),paddingInner:({scalePadding:e,channel:t,markDef:n,scaleType:r,config:i,hasNestedOffsetScale:a})=>Xre(e,t,n.type,r,i.scale,a),paddingOuter:({scalePadding:e,channel:t,scaleType:n,scalePaddingInner:r,config:i,hasNestedOffsetScale:a})=>Yre(e,t,n,r,i.scale,a),reverse:({fieldOrDatumDef:e,scaleType:t,channel:n,config:r})=>Jre(t,U(e)?e.sort:void 0,n,r.scale),zero:({channel:e,fieldOrDatumDef:t,domain:n,markDef:r,scaleType:i,config:a,hasSecondaryRangeChannel:o})=>Qre(e,t,n,r,i,a.scale,o)};function _8(e){Je(e)?zre(e):D8(e,"range")}function D8(e,t){let n=e.component.scales;for(let r of e.children)t==="range"?_8(r):E8(r,t);for(let r of I(n)){let i;for(let a of e.children){let o=a.component.scales[r];if(o){let l=o.getWithExplicit(t);i=wa(i,l,t,"scale",WS((s,u)=>t==="range"&&s.step&&u.step?s.step-u.step:0))}}n[r].setWithExplicit(t,i)}}function Wre(e,t){let n=t.bin;if(je(n)){let r=Jb(e,t.field,n);return new Lt(()=>e.getSignalName(r))}else if(Ft(n)&&ao(n)&&n.step!==void 0)return{step:n.step}}function Gre(e,t){if(he([gn,qr,Ur],e)&&t!=="nominal")return"hcl"}function Hre(e,t,n,r,i,a){var o;if(!((o=xr(a))!=null&&o.bin||X(n)||i!=null||r!=null||he([$t.TIME,$t.UTC],e)))return ot(t)?!0:void 0}function Vre(e,t,n,r,i,a){if(ot(e)){if(Xr(t)){if(n.continuousPadding!==void 0)return n.continuousPadding;let{type:o,orient:l}=i;if(o==="bar"&&!(U(r)&&(r.bin||r.timeUnit))&&(l==="vertical"&&e==="x"||l==="horizontal"&&e==="y"))return a.continuousBandSize}if(t===$t.POINT)return n.pointPadding}}function Xre(e,t,n,r,i,a=!1){if(e===void 0){if(ot(t)){let{bandPaddingInner:o,barBandPaddingInner:l,rectBandPaddingInner:s,tickBandPaddingInner:u,bandWithNestedOffsetPaddingInner:c}=i;return a?c:at(o,n==="bar"?l:n==="tick"?u:s)}else if(Nu(t)&&r===$t.BAND)return i.offsetBandPaddingInner}}function Yre(e,t,n,r,i,a=!1){if(e===void 0){if(ot(t)){let{bandPaddingOuter:o,bandWithNestedOffsetPaddingOuter:l}=i;if(a)return l;if(n===$t.BAND)return at(o,Q(r)?{signal:`${r.signal}/2`}:r/2)}else if(Nu(t)){if(n===$t.POINT)return .5;if(n===$t.BAND)return i.offsetBandPaddingOuter}}}function Jre(e,t,n,r){if(n==="x"&&r.xReverse!==void 0)return yr(e)&&t==="descending"?Q(r.xReverse)?{signal:`!${r.xReverse.signal}`}:!r.xReverse:r.xReverse;if(yr(e)&&t==="descending")return!0}function Qre(e,t,n,r,i,a,o){if(n&&n!=="unaggregated"&&yr(i)){if(X(n)){let l=n[0],s=n[n.length-1];if(He(l)&&l<=0&&He(s)&&s>=0)return!0}return!1}if(e==="size"&&t.type==="quantitative"&&!$l(i))return!0;if(!(U(t)&&t.bin)&&he([...xi,...QJ],e)){let{orient:l,type:s}=r;return he(["bar","area","line","trail"],s)&&(l==="horizontal"&&e==="y"||l==="vertical"&&e==="x")?!1:he(["bar","area"],s)&&!o?!0:a==null?void 0:a.zero}return!1}function Kre(e,t,n,r,i=!1){let a=Zre(t,n,r,i),{type:o}=e;return Gr(t)?o===void 0?a:iZ(t,o)?U(n)&&!rZ(o,n.type)?(q(oK(o,a)),a):o:(q(aK(t,o,a)),a):null}function Zre(e,t,n,r){var i;switch(t.type){case"nominal":case"ordinal":{if(Dl(e)||xv(e)==="discrete")return e==="shape"&&t.type==="ordinal"&&q(Cv(e,"ordinal")),"ordinal";if(vv(e))return"band";if(ot(e)||Nu(e)){if(he(["rect","bar","image","rule","tick"],n.type)||r)return"band"}else if(n.type==="arc"&&e in yv)return"band";let a=n[vn(e)];return ho(a)||Ml(t)&&((i=t.axis)!=null&&i.tickBand)?"band":"point"}case"temporal":return Dl(e)?"time":xv(e)==="discrete"?(q(Cv(e,"temporal")),"ordinal"):U(t)&&t.timeUnit&&xt(t.timeUnit).utc?"utc":vv(e)?"band":"time";case"quantitative":return Dl(e)?U(t)&&je(t.bin)?"bin-ordinal":"linear":xv(e)==="discrete"?(q(Cv(e,"quantitative")),"ordinal"):vv(e)?"band":"linear";case"geojson":return}throw Error(W3(t.type))}function eie(e,{ignoreRange:t}={}){F8(e),f8(e);for(let n of nZ)E8(e,n);t||_8(e)}function F8(e){Je(e)?e.component.scales=tie(e):e.component.scales=rie(e)}function tie(e){let{encoding:t,mark:n,markDef:r}=e,i={};for(let a of bv){let o=pt(t[a]);if(o&&n===b5&&a===yn&&o.type===Cl)continue;let l=o&&o.scale;if(o&&l!==null&&l!==!1){l??(l={});let s=Q5(t,a),u=Kre(l,a,o,r,s);i[a]=new m8(e.scaleName(`${a}`,!0),{value:u,explicit:l.type===u})}}return i}var nie=WS((e,t)=>c5(e)-c5(t));function rie(e){var i;let t=e.component.scales={},n={},r=e.component.resolve;for(let a of e.children){F8(a);for(let o of I(a.component.scales))if((i=r.scale)[o]??(i[o]=H6(o,e)),r.scale[o]==="shared"){let l=n[o],s=a.component.scales[o].getWithExplicit("type");l?VK(l.value,s.value)?n[o]=wa(l,s,"type","scale",nie):(r.scale[o]="independent",delete n[o]):n[o]=s}}for(let a of I(n)){let o=e.scaleName(a,!0),l=n[a];t[a]=new m8(o,l);for(let s of e.children){let u=s.component.scales[a];u&&(s.renameScale(u.get("name"),o),u.merged=!0)}}return t}var fx=class{constructor(){N(this,"nameMap");this.nameMap={}}rename(e,t){this.nameMap[e]=t}has(e){return this.nameMap[e]!==void 0}get(e){for(;this.nameMap[e]&&e!==this.nameMap[e];)e=this.nameMap[e];return e}};function Je(e){return(e==null?void 0:e.type)==="unit"}function Mn(e){return(e==null?void 0:e.type)==="facet"}function dx(e){return(e==null?void 0:e.type)==="concat"}function Vl(e){return(e==null?void 0:e.type)==="layer"}var hx=class{constructor(e,t,n,r,i,a,o){N(this,"type");N(this,"parent");N(this,"config");N(this,"name");N(this,"size");N(this,"title");N(this,"description");N(this,"data");N(this,"transforms");N(this,"layout");N(this,"scaleNameMap");N(this,"projectionNameMap");N(this,"signalNameMap");N(this,"component");N(this,"view");this.type=t,this.parent=n,this.config=i,this.parent=n,this.config=i,this.view=Ct(o),this.name=e.name??r,this.title=ya(e.title)?{text:e.title}:e.title?Ct(e.title):void 0,this.scaleNameMap=n?n.scaleNameMap:new fx,this.projectionNameMap=n?n.projectionNameMap:new fx,this.signalNameMap=n?n.signalNameMap:new fx,this.data=e.data,this.description=e.description,this.transforms=cte(e.transform??[]),this.layout=t==="layer"||t==="unit"?{}:mee(e,t,i),this.component={data:{sources:n?n.component.data.sources:[],outputNodes:n?n.component.data.outputNodes:{},outputNodeRefCounts:n?n.component.data.outputNodeRefCounts:{},isFaceted:kh(e)||(n==null?void 0:n.component.data.isFaceted)&&e.data===void 0},layoutSize:new vo,layoutHeaders:{row:{},column:{},facet:{}},mark:null,resolve:{scale:{},axis:{},legend:{},...a?oe(a):{}},selection:null,scales:null,projection:null,axes:{},legends:{}}}get width(){return this.getSizeSignalRef("width")}get height(){return this.getSizeSignalRef("height")}parse(){this.parseScale(),this.parseLayoutSize(),this.renameTopLevelLayoutSizeSignal(),this.parseSelections(),this.parseProjection(),this.parseData(),this.parseAxesAndHeaders(),this.parseLegends(),this.parseMarkGroup()}parseScale(){eie(this)}parseProjection(){a8(this)}renameTopLevelLayoutSizeSignal(){this.getName("width")!=="width"&&this.renameSignal(this.getName("width"),"width"),this.getName("height")!=="height"&&this.renameSignal(this.getName("height"),"height")}parseLegends(){e8(this)}assembleEncodeFromView(e){let{style:t,...n}=e,r={};for(let i of I(n)){let a=n[i];a!==void 0&&(r[i]=We(a))}return r}assembleGroupEncodeEntry(e){let t={};return this.view&&(t=this.assembleEncodeFromView(this.view)),!e&&(this.description&&(t.description=We(this.description)),this.type==="unit"||this.type==="layer")?{width:this.getSizeSignalRef("width"),height:this.getSizeSignalRef("height"),...t}:Ie(t)?void 0:t}assembleLayout(){if(!this.layout)return;let{spacing:e,...t}=this.layout,{component:n,config:r}=this,i=_ne(n.layoutHeaders,r);return{padding:e,...this.assembleDefaultLayout(),...t,...i?{titleBand:i}:{}}}assembleDefaultLayout(){return{}}assembleHeaderMarks(){let{layoutHeaders:e}=this.component,t=[];for(let n of Vn)e[n].title&&t.push(bne(this,n));for(let n of Wb)t=t.concat(xne(this,n));return t}assembleAxes(){return one(this.component.axes,this.config)}assembleLegends(){return n8(this)}assembleProjections(){return Vne(this)}assembleTitle(){let{encoding:e,...t}=this.title??{},n={...D3(this.config.title).nonMarkTitleProperties,...t,...e?{encode:{update:e}}:{}};if(n.text)return he(["unit","layer"],this.type)?he(["middle",void 0],n.anchor)&&(n.frame??(n.frame="group")):n.anchor??(n.anchor="start"),Ie(n)?void 0:n}assembleGroup(e=[]){let t={};e=e.concat(this.assembleSignals()),e.length>0&&(t.signals=e);let n=this.assembleLayout();n&&(t.layout=n),t.marks=[].concat(this.assembleHeaderMarks(),this.assembleMarks());let r=!this.parent||Mn(this.parent)?h8(this):[];r.length>0&&(t.scales=r);let i=this.assembleAxes();i.length>0&&(t.axes=i);let a=this.assembleLegends();return a.length>0&&(t.legends=a),t}getName(e){return Ve((this.name?`${this.name}_`:"")+e)}getDataName(e){return this.getName(et[e].toLowerCase())}requestDataName(e){let t=this.getDataName(e),n=this.component.data.outputNodeRefCounts;return n[t]=(n[t]||0)+1,t}getSizeSignalRef(e){if(Mn(this.parent)){let t=ch(W6(e)),n=this.component.scales[t];if(n&&!n.merged){let r=n.get("type"),i=n.get("range");if(wt(r)&&oo(i)){let a=n.get("name"),o=cx(tp(this,t));return o?{signal:U6(a,n,V({aggregate:"distinct",field:o},{expr:"datum"}))}:(q(_v(t)),null)}}}return{signal:this.signalNameMap.get(this.getName(e))}}lookupDataSource(e){let t=this.component.data.outputNodes[e];return t?t.getSource():e}getSignalName(e){return this.signalNameMap.get(e)}renameSignal(e,t){this.signalNameMap.rename(e,t)}renameScale(e,t){this.scaleNameMap.rename(e,t)}renameProjection(e,t){this.projectionNameMap.rename(e,t)}scaleName(e,t){if(t)return this.getName(e);if(y3(e)&&Gr(e)&&this.component.scales[e]||this.scaleNameMap.has(this.getName(e)))return this.scaleNameMap.get(this.getName(e))}projectionName(e){if(e)return this.getName("projection");if(this.component.projection&&!this.component.projection.merged||this.projectionNameMap.has(this.getName("projection")))return this.projectionNameMap.get(this.getName("projection"))}getScaleComponent(e){if(!this.component.scales)throw Error("getScaleComponent cannot be called before parseScale(). Make sure you have called parseScale or use parseUnitModelWithScale().");let t=this.component.scales[e];return t&&!t.merged?t:this.parent?this.parent.getScaleComponent(e):void 0}getScaleType(e){let t=this.getScaleComponent(e);return t?t.get("type"):void 0}getSelectionComponent(e,t){let n=this.component.selection[e];if(!n&&this.parent&&(n=this.parent.getSelectionComponent(e,t)),!n)throw Error(wQ(t));return n}hasAxisOrientSignalRef(){var e,t;return((e=this.component.axes.x)==null?void 0:e.some(n=>n.hasOrientSignalRef()))||((t=this.component.axes.y)==null?void 0:t.some(n=>n.hasOrientSignalRef()))}},C8=class extends hx{vgField(e,t={}){let n=this.fieldDef(e);if(n)return V(n,t)}reduceFieldDef(e,t){return HZ(this.getMapping(),(n,r,i)=>{let a=xr(r);return a?e(n,a,i):n},t)}forEachFieldDef(e,t){ab(this.getMapping(),(n,r)=>{let i=xr(n);i&&e(i,r)},t)}},$8=class f4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r,this.transform=oe(r);let i=this.transform.as??[void 0,void 0];this.transform.as=[i[0]??"value",i[1]??"density"];let a=this.transform.resolve??"shared";this.transform.resolve=a}clone(){return new f4(null,oe(this.transform))}dependentFields(){return new Set([this.transform.density,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`DensityTransform ${ye(this.transform)}`}assemble(){let{density:n,...r}=this.transform,i={type:"kde",field:n,...r};return i.resolve=this.transform.resolve,i}},S8=class d4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r,this.transform=oe(r)}clone(){return new d4(null,oe(this.transform))}dependentFields(){return new Set([this.transform.extent])}producedFields(){return new Set([])}hash(){return`ExtentTransform ${ye(this.transform)}`}assemble(){let{extent:n,param:r}=this.transform;return{type:"extent",field:n,signal:r}}},M8=class h4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r,this.transform=oe(r);let{flatten:i,as:a=[]}=this.transform;this.transform.as=i.map((o,l)=>a[l]??o)}clone(){return new h4(this.parent,oe(this.transform))}dependentFields(){return new Set(this.transform.flatten)}producedFields(){return new Set(this.transform.as)}hash(){return`FlattenTransform ${ye(this.transform)}`}assemble(){let{flatten:n,as:r}=this.transform;return{type:"flatten",fields:n,as:r}}},O8=class p4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r,this.transform=oe(r);let i=this.transform.as??[void 0,void 0];this.transform.as=[i[0]??"key",i[1]??"value"]}clone(){return new p4(null,oe(this.transform))}dependentFields(){return new Set(this.transform.fold)}producedFields(){return new Set(this.transform.as)}hash(){return`FoldTransform ${ye(this.transform)}`}assemble(){let{fold:n,as:r}=this.transform;return{type:"fold",fields:n,as:r}}},B8=class Ap extends Te{constructor(n,r,i,a){super(n);N(this,"fields");N(this,"geojson");N(this,"signal");this.fields=r,this.geojson=i,this.signal=a}clone(){return new Ap(null,oe(this.fields),this.geojson,this.signal)}static parseAll(n,r){if(r.component.projection&&!r.component.projection.isFit)return n;let i=0;for(let a of[[pr,hr],[Hn,mr]]){let o=a.map(l=>{let s=pt(r.encoding[l]);return U(s)?s.field:Jr(s)?{expr:`${s.datum}`}:br(s)?{expr:`${s.value}`}:void 0});(o[0]||o[1])&&(n=new Ap(n,o,null,r.getName(`geojson_${i++}`)))}if(r.channelHasField(yn)){let a=r.typedFieldDef(yn);a.type===Cl&&(n=new Ap(n,null,a.field,r.getName(`geojson_${i++}`)))}return n}dependentFields(){let n=(this.fields??[]).filter(se);return new Set([...this.geojson?[this.geojson]:[],...n])}producedFields(){return new Set}hash(){return`GeoJSON ${this.geojson} ${this.signal} ${ye(this.fields)}`}assemble(){return[...this.geojson?[{type:"filter",expr:`isValid(datum["${this.geojson}"])`}]:[],{type:"geojson",...this.fields?{fields:this.fields}:{},...this.geojson?{geojson:this.geojson}:{},signal:this.signal}]}},z8=class r2 extends Te{constructor(n,r,i,a){super(n);N(this,"projection");N(this,"fields");N(this,"as");this.projection=r,this.fields=i,this.as=a}clone(){return new r2(null,this.projection,oe(this.fields),oe(this.as))}static parseAll(n,r){if(!r.projectionName())return n;for(let i of[[pr,hr],[Hn,mr]]){let a=i.map(l=>{let s=pt(r.encoding[l]);return U(s)?s.field:Jr(s)?{expr:`${s.datum}`}:br(s)?{expr:`${s.value}`}:void 0}),o=i[0]===Hn?"2":"";(a[0]||a[1])&&(n=new r2(n,r.projectionName(),a,[r.getName(`x${o}`),r.getName(`y${o}`)]))}return n}dependentFields(){return new Set(this.fields.filter(se))}producedFields(){return new Set(this.as)}hash(){return`Geopoint ${this.projection} ${ye(this.fields)} ${ye(this.as)}`}assemble(){return{type:"geopoint",projection:this.projection,fields:this.fields,as:this.as}}},px=class Ep extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r}clone(){return new Ep(null,oe(this.transform))}dependentFields(){return new Set([this.transform.impute,this.transform.key,...this.transform.groupby??[]])}producedFields(){return new Set([this.transform.impute])}processSequence(n){let{start:r=0,stop:i,step:a}=n;return{signal:`sequence(${[r,i,...a?[a]:[]].join(",")})`}}static makeFromTransform(n,r){return new Ep(n,r)}static makeFromEncoding(n,r){let i=r.encoding,a=i.x,o=i.y;if(U(a)&&U(o)){let l=a.impute?a:o.impute?o:void 0;if(l===void 0)return;let s=a.impute?o:o.impute?a:void 0,{method:u,value:c,frame:f,keyvals:d}=l.impute,h=eS(r.mark,i);return new Ep(n,{impute:l.field,key:s.field,...u?{method:u}:{},...c===void 0?{}:{value:c},...f?{frame:f}:{},...d===void 0?{}:{keyvals:d},...h.length?{groupby:h}:{}})}return null}hash(){return`Impute ${ye(this.transform)}`}assemble(){let{impute:n,key:r,keyvals:i,method:a,groupby:o,value:l,frame:s=[null,null]}=this.transform,u={type:"impute",field:n,key:r,...i?{keyvals:Gee(i)?this.processSequence(i):i}:{},method:"value",...o?{groupby:o}:{},value:!a||a==="value"?l:null};return a&&a!=="value"?[u,{type:"window",as:[`imputed_${n}_value`],ops:[a],fields:[n],frame:s,ignorePeers:!1,...o?{groupby:o}:{}},{type:"formula",expr:`datum.${n} === null ? datum.imputed_${n}_value : datum.${n}`,as:n}]:[u]}},N8=class m4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r,this.transform=oe(r);let i=this.transform.as??[void 0,void 0];this.transform.as=[i[0]??r.on,i[1]??r.loess]}clone(){return new m4(null,oe(this.transform))}dependentFields(){return new Set([this.transform.loess,this.transform.on,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`LoessTransform ${ye(this.transform)}`}assemble(){let{loess:n,on:r,...i}=this.transform;return{type:"loess",x:r,y:n,...i}}},R8=class i2 extends Te{constructor(n,r,i){super(n);N(this,"transform");N(this,"secondary");this.transform=r,this.secondary=i}clone(){return new i2(null,oe(this.transform),this.secondary)}static make(n,r,i,a){let o=r.component.data.sources,{from:l}=i,s=null;if(Hee(l)){let u=W8(l.data,o);u||(u=new Eo(l.data),o.push(u));let c=r.getName(`lookup_${a}`);s=new bn(u,c,et.Lookup,r.component.data.outputNodeRefCounts),r.component.data.outputNodes[c]=s}else if(Vee(l)){let u=l.param;i={as:u,...i};let c;try{c=r.getSelectionComponent(Ve(u),u)}catch{throw Error(_Q(u))}if(s=c.materialized,!s)throw Error(DQ(u))}return new i2(n,i,s.getSource())}dependentFields(){return new Set([this.transform.lookup])}producedFields(){return new Set(this.transform.as?it(this.transform.as):this.transform.from.fields)}hash(){return`Lookup ${ye({transform:this.transform,secondary:this.secondary})}`}assemble(){let n;if(this.transform.from.fields)n={values:this.transform.from.fields,...this.transform.as?{as:it(this.transform.as)}:{}};else{let r=this.transform.as;se(r)||(q(TQ),r="_lookup"),n={as:[r]}}return{type:"lookup",from:this.secondary,key:this.transform.from.key,fields:[this.transform.lookup],...n,...this.transform.default?{default:this.transform.default}:{}}}},T8=class g4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r,this.transform=oe(r);let i=this.transform.as??[void 0,void 0];this.transform.as=[i[0]??"prob",i[1]??"value"]}clone(){return new g4(null,oe(this.transform))}dependentFields(){return new Set([this.transform.quantile,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`QuantileTransform ${ye(this.transform)}`}assemble(){let{quantile:n,...r}=this.transform;return{type:"quantile",field:n,...r}}},L8=class y4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r,this.transform=oe(r);let i=this.transform.as??[void 0,void 0];this.transform.as=[i[0]??r.on,i[1]??r.regression]}clone(){return new y4(null,oe(this.transform))}dependentFields(){return new Set([this.transform.regression,this.transform.on,...this.transform.groupby??[]])}producedFields(){return new Set(this.transform.as)}hash(){return`RegressionTransform ${ye(this.transform)}`}assemble(){let{regression:n,on:r,...i}=this.transform;return{type:"regression",x:r,y:n,...i}}},P8=class v4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r}clone(){return new v4(null,oe(this.transform))}addDimensions(n){this.transform.groupby=Ir((this.transform.groupby??[]).concat(n),r=>r)}producedFields(){}dependentFields(){return new Set([this.transform.pivot,this.transform.value,...this.transform.groupby??[]])}hash(){return`PivotTransform ${ye(this.transform)}`}assemble(){let{pivot:n,value:r,groupby:i,limit:a,op:o}=this.transform;return{type:"pivot",field:n,value:r,...a===void 0?{}:{limit:a},...o===void 0?{}:{op:o},...i===void 0?{}:{groupby:i}}}},I8=class b4 extends Te{constructor(n,r){super(n);N(this,"transform");this.transform=r}clone(){return new b4(null,oe(this.transform))}dependentFields(){return new Set}producedFields(){return new Set}hash(){return`SampleTransform ${ye(this.transform)}`}assemble(){return{type:"sample",size:this.transform.sample}}};function j8(e){let t=0;function n(r,i){if(r instanceof Eo&&!r.isGenerator&&!Rl(r.data)&&(e.push(i),i={name:null,source:i.name,transform:[]}),r instanceof Sn&&(r.parent instanceof Eo&&!i.source?(i.format={...i.format,parse:r.assembleFormatParse()},i.transform.push(...r.assembleTransforms(!0))):i.transform.push(...r.assembleTransforms())),r instanceof Gl){i.name||(i.name=`data_${t++}`),!i.source||i.transform.length>0?(e.push(i),r.data=i.name):r.data=i.source,e.push(...r.assemble());return}switch((r instanceof Qb||r instanceof Kb||r instanceof nx||r instanceof Xh||r instanceof Ub||r instanceof z8||r instanceof Ao||r instanceof R8||r instanceof Zh||r instanceof Ju||r instanceof O8||r instanceof M8||r instanceof $8||r instanceof N8||r instanceof T8||r instanceof L8||r instanceof Hl||r instanceof I8||r instanceof P8||r instanceof S8)&&i.transform.push(r.assemble()),(r instanceof Wl||r instanceof Tl||r instanceof px||r instanceof Qu||r instanceof B8)&&i.transform.push(...r.assemble()),r instanceof bn&&(i.source&&i.transform.length===0?r.setSource(i.source):r.parent instanceof bn?r.setSource(i.name):(i.name||(i.name=`data_${t++}`),r.setSource(i.name),r.numChildren()===1&&(e.push(i),i={name:null,source:i.name,transform:[]}))),r.numChildren()){case 0:r instanceof bn&&(!i.source||i.transform.length>0)&&e.push(i);break;case 1:n(r.children[0],i);break;default:{i.name||(i.name=`data_${t++}`);let a=i.name;!i.source||i.transform.length>0?e.push(i):a=i.source;for(let o of r.children)n(o,{name:null,source:a,transform:[]});break}}}return n}function iie(e){let t=[],n=j8(t);for(let r of e.children)n(r,{source:e.name,name:null,transform:[]});return t}function aie(e,t){let n=[],r=j8(n),i=0;for(let o of e.sources)o.hasName()||(o.dataName=`source_${i++}`),r(o,o.assemble());for(let o of n)o.transform.length===0&&delete o.transform;let a=0;for(let[o,l]of n.entries())(l.transform??[]).length===0&&!l.source&&n.splice(a++,0,n.splice(o,1)[0]);for(let o of n)for(let l of o.transform??[])l.type==="lookup"&&(l.from=e.outputNodes[l.from].getSource());for(let o of n)o.name in t&&(o.values=t[o.name]);return n}function oie(e){return e==="top"||e==="left"||Q(e)?"header":"footer"}function lie(e){for(let t of Vn)sie(e,t);U8(e,"x"),U8(e,"y")}function sie(e,t){var o;let{facet:n,config:r,child:i,component:a}=e;if(e.channelHasField(t)){let l=n[t],s=Ul("title",null,r,t),u=Ol(l,r,{allowDisabling:!0,includeDefault:s===void 0||!!s});i.component.layoutHeaders[t].title&&(u=X(u)?u.join(", "):u,u+=` / ${i.component.layoutHeaders[t].title}`,i.component.layoutHeaders[t].title=null);let c=Ul("labelOrient",l.header,r,t),f=l.header===null?!1:at((o=l.header)==null?void 0:o.labels,r.header.labels,!0),d=he(["bottom","right"],c)?"footer":"header";a.layoutHeaders[t]={title:l.header===null?null:u,facetFieldDef:l,[d]:t==="facet"?[]:[q8(e,t,f)]}}}function q8(e,t,n){let r=t==="row"?"height":"width";return{labels:n,sizeSignal:e.child.component.layoutSize.get(r)?e.child.getSizeSignalRef(r):void 0,axes:[]}}function U8(e,t){let{child:n}=e;if(n.component.axes[t]){let{layoutHeaders:r,resolve:i}=e.component;if(i.axis[t]=Xb(i,t),i.axis[t]==="shared"){let a=t==="x"?"column":"row",o=r[a];for(let l of n.component.axes[t]){let s=oie(l.get("orient"));o[s]??(o[s]=[q8(e,a,!1)]);let u=Yu(l,"main",e.config,{header:!0});u&&o[s][0].axes.push(u),l.mainExtracted=!0}}}}function uie(e){mx(e),np(e,"width"),np(e,"height")}function cie(e){mx(e);let t=e.layout.columns===1?"width":"childWidth",n=e.layout.columns===void 0?"height":"childHeight";np(e,t),np(e,n)}function mx(e){for(let t of e.children)t.parseLayoutSize()}function np(e,t){let n=W6(t),r=ch(n),i=e.component.resolve,a=e.component.layoutSize,o;for(let l of e.children){let s=l.component.layoutSize.getWithExplicit(n),u=i.scale[r]??H6(r,e);if(u==="independent"&&s.value==="step"){o=void 0;break}if(o){if(u==="independent"&&o.value!==s.value){o=void 0;break}o=wa(o,s,n,"")}else o=s}if(o){for(let l of e.children)e.renameSignal(l.getName(n),e.getName(t)),l.component.layoutSize.set(n,"merged",!1);a.setWithExplicit(t,o)}else a.setWithExplicit(t,{explicit:!1,value:void 0})}function fie(e){let{size:t,component:n}=e;for(let r of xi){let i=vn(r);if(t[i]){let a=t[i];n.layoutSize.set(i,Qr(a)?"step":a,!0)}else{let a=die(e,i);n.layoutSize.set(i,a,!1)}}}function die(e,t){let n=t==="width"?"x":"y",r=e.config,i=e.getScaleComponent(n);if(i){let a=i.get("type"),o=i.get("range");if(wt(a)){let l=Th(r.view,t);return oo(o)||Qr(l)?"step":l}else return yb(r.view,t)}else{if(e.hasProjection||e.mark==="arc")return yb(r.view,t);{let a=Th(r.view,t);return Qr(a)?a.step:a}}}function gx(e,t,n){return V(t,{suffix:`by_${V(e)}`,...n})}var hie=class kp extends C8{constructor(n,r,i,a){super(n,"facet",r,i,a,n.resolve);N(this,"facet");N(this,"child");N(this,"children");this.child=bx(n.spec,this,this.getName("child"),void 0,a),this.children=[this.child],this.facet=this.initFacet(n.facet)}initFacet(n){if(!ju(n))return{facet:this.initFacetFieldDef(n,"facet")};let r=I(n),i={};for(let a of r){if(![pi,mi].includes(a)){q(hh(a,"facet"));break}let o=n[a];if(o.field===void 0){q(Fv(o,a));break}i[a]=this.initFacetFieldDef(o,a)}return i}initFacetFieldDef(n,r){let i=ib(n,r);return i.header?i.header=Ct(i.header):i.header===null&&(i.header=null),i}channelHasField(n){return j(this.facet,n)}fieldDef(n){return this.facet[n]}parseData(){this.component.data=rp(this),this.child.parseData()}parseLayoutSize(){mx(this)}parseSelections(){this.child.parseSelections(),this.component.selection=this.child.component.selection,ut(this.component.selection).some(n=>Zr(n))&&$v(Dv)}parseMarkGroup(){this.child.parseMarkGroup()}parseAxesAndHeaders(){this.child.parseAxesAndHeaders(),lie(this)}assembleSelectionTopLevelSignals(n){return this.child.assembleSelectionTopLevelSignals(n)}assembleSignals(){return this.child.assembleSignals(),[]}assembleSelectionData(n){return this.child.assembleSelectionData(n)}getHeaderLayoutMixins(){let n={};for(let r of Vn)for(let i of Gb){let a=this.component.layoutHeaders[r],o=a[i],{facetFieldDef:l}=a;if(l){let s=Ul("titleOrient",l.header,this.config,r);if(["right","bottom"].includes(s)){let u=Jh(r,s);n.titleAnchor??(n.titleAnchor={}),n.titleAnchor[u]="end"}}if(o!=null&&o[0]){let s=r==="row"?"height":"width",u=i==="header"?"headerBand":"footerBand";r!=="facet"&&!this.child.component.layoutSize.get(s)&&(n[u]??(n[u]={}),n[u][r]=.5),a.title&&(n.offset??(n.offset={}),n.offset[r==="row"?"rowTitle":"columnTitle"]=10)}}return n}assembleDefaultLayout(){let{column:n,row:r}=this.facet,i=n?this.columnDistinctSignal():r?1:void 0,a="all";return(!r&&this.component.resolve.scale.x==="independent"||!n&&this.component.resolve.scale.y==="independent")&&(a="none"),{...this.getHeaderLayoutMixins(),...i?{columns:i}:{},bounds:"full",align:a}}assembleLayoutSignals(){return this.child.assembleLayoutSignals()}columnDistinctSignal(){if(!(this.parent&&this.parent instanceof kp))return{signal:`length(data('${this.getName("column_domain")}'))`}}assembleGroupStyle(){}assembleGroup(n){return this.parent&&this.parent instanceof kp?{...this.channelHasField("column")?{encode:{update:{columns:{field:V(this.facet.column,{prefix:"distinct"})}}}}:{},...super.assembleGroup(n)}:super.assembleGroup(n)}getCardinalityAggregateForChild(){let n=[],r=[],i=[];if(this.child instanceof kp){if(this.child.channelHasField("column")){let a=V(this.child.facet.column);n.push(a),r.push("distinct"),i.push(`distinct_${a}`)}}else for(let a of xi){let o=this.child.component.scales[a];if(o&&!o.merged){let l=o.get("type"),s=o.get("range");if(wt(l)&&oo(s)){let u=cx(tp(this.child,a));u?(n.push(u),r.push("distinct"),i.push(`distinct_${u}`)):q(_v(a))}}}return{fields:n,ops:r,as:i}}assembleFacet(){let{name:n,data:r}=this.component.data.facetRoot,{row:i,column:a}=this.facet,{fields:o,ops:l,as:s}=this.getCardinalityAggregateForChild(),u=[];for(let f of Vn){let d=this.facet[f];if(d){u.push(V(d));let{bin:h,sort:p}=d;if(je(h)&&u.push(V(d,{binSuffix:"end"})),Ei(p)){let{field:m,op:g=Eh}=p,y=gx(d,p);i&&a?(o.push(y),l.push("max"),s.push(y)):(o.push(m),l.push(g),s.push(y))}else if(X(p)){let m=ql(d,f);o.push(m),l.push("max"),s.push(m)}}}let c=!!i&&!!a;return{name:n,data:r,groupby:u,...c||o.length>0?{aggregate:{...c?{cross:c}:{},...o.length?{fields:o,ops:l,as:s}:{}}}:{}}}facetSortFields(n){let{facet:r}=this,i=r[n];return i?Ei(i.sort)?[gx(i,i.sort,{expr:"datum"})]:X(i.sort)?[ql(i,n,{expr:"datum"})]:[V(i,{expr:"datum"})]:[]}facetSortOrder(n){let{facet:r}=this,i=r[n];if(i){let{sort:a}=i;return[(Ei(a)?a.order:!X(a)&&a)||"ascending"]}return[]}assembleLabelTitle(){var a;let{facet:n,config:r}=this;if(n.facet)return Hb(n.facet,"facet",r);let i={row:["top","bottom"],column:["left","right"]};for(let o of Wb)if(n[o]){let l=Ul("labelOrient",(a=n[o])==null?void 0:a.header,r,o);if(i[o].includes(l))return Hb(n[o],o,r)}}assembleMarks(){let{child:n}=this,r=this.component.data.facetRoot,i=iie(r),a=n.assembleGroupEncodeEntry(!1),o=this.assembleLabelTitle()||n.assembleTitle(),l=n.assembleGroupStyle();return[{name:this.getName("cell"),type:"group",...o?{title:o}:{},...l?{style:l}:{},from:{facet:this.assembleFacet()},sort:{field:Vn.map(s=>this.facetSortFields(s)).flat(),order:Vn.map(s=>this.facetSortOrder(s)).flat()},...i.length>0?{data:i}:{},...a?{encode:{update:a}}:{},...n.assembleGroup($te(this,[]))}]}getMapping(){return this.facet}};function pie(e,t){let{row:n,column:r}=t;if(n&&r){let i=null;for(let a of[n,r])if(Ei(a.sort)){let{field:o,op:l=Eh}=a.sort;e=i=new Ju(e,{joinaggregate:[{op:l,field:o,as:gx(a,a.sort,{forAs:!0})}],groupby:[V(a)]})}return i}return null}function W8(e,t){var n,r,i,a;for(let o of t){let l=o.data;if(e.name&&o.hasName()&&e.name!==o.dataName)continue;let s=(n=e.format)==null?void 0:n.mesh,u=(r=l.format)==null?void 0:r.feature;if(s&&u)continue;let c=(i=e.format)==null?void 0:i.feature;if((c||u)&&c!==u)continue;let f=(a=l.format)==null?void 0:a.mesh;if(!((s||f)&&s!==f)){if(Hu(e)&&Hu(l)){if(Cn(e.values,l.values))return o}else if(Rl(e)&&Rl(l)){if(e.url===l.url)return o}else if(GS(e)&&e.name===o.dataName)return o}}return null}function mie(e,t){if(e.data||!e.parent){if(e.data===null){let r=new Eo({values:[]});return t.push(r),r}let n=W8(e.data,t);if(n)return Aa(e.data)||(n.data.format=r3({},e.data.format,n.data.format)),!n.hasName()&&e.data.name&&(n.dataName=e.data.name),n;{let r=new Eo(e.data);return t.push(r),r}}else return e.parent.component.data.facetRoot?e.parent.component.data.facetRoot:e.parent.component.data.main}function gie(e,t,n){let r=0;for(let i of t.transforms){let a,o;if(rte(i))o=e=new Ub(e,i),a="derived";else if(Eb(i)){let l=ore(i);o=e=Sn.makeWithAncestors(e,{},l,n)??e,e=new Xh(e,t,i.filter)}else if(TS(i))o=e=Wl.makeFromTransform(e,i,t),a="number";else if(ate(i))a="date",n.getWithExplicit(i.field).value===void 0&&(e=new Sn(e,{[i.field]:a}),n.set(i.field,a,!1)),o=e=Tl.makeFromTransform(e,i);else if(ote(i))o=e=Ao.makeFromTransform(e,i),a="number",Lb(t)&&(e=new Hl(e));else if(RS(i))o=e=R8.make(e,t,i,r++),a="derived";else if(ete(i))o=e=new Zh(e,i),a="number";else if(tte(i))o=e=new Ju(e,i),a="number";else if(lte(i))o=e=Qu.makeFromTransform(e,i),a="derived";else if(ste(i))o=e=new O8(e,i),a="derived";else if(ute(i))o=e=new S8(e,i),a="derived";else if(nte(i))o=e=new M8(e,i),a="derived";else if(Xee(i))o=e=new P8(e,i),a="derived";else if(Zee(i))e=new I8(e,i);else if(ite(i))o=e=px.makeFromTransform(e,i),a="derived";else if(Yee(i))o=e=new $8(e,i),a="derived";else if(Jee(i))o=e=new T8(e,i),a="derived";else if(Qee(i))o=e=new L8(e,i),a="derived";else if(Kee(i))o=e=new N8(e,i),a="derived";else{q(RQ(i));continue}if(o&&a!==void 0)for(let l of o.producedFields()??[])n.set(l,a,!1)}return e}function rp(e){var m;let t=mie(e,e.component.data.sources),{outputNodes:n,outputNodeRefCounts:r}=e.component.data,i=e.data,a=!(i&&(Aa(i)||Rl(i)||Hu(i)))&&e.parent?e.parent.component.data.ancestorParse.clone():new wte;Aa(i)?(HS(i)?t=new Kb(t,i.sequence):Db(i)&&(t=new Qb(t,i.graticule)),a.parseNothing=!0):((m=i==null?void 0:i.format)==null?void 0:m.parse)===null&&(a.parseNothing=!0),t=Sn.makeExplicit(t,e,a)??t,t=new Hl(t);let o=e.parent&&Vl(e.parent);(Je(e)||Mn(e))&&o&&(t=Wl.makeFromEncoding(t,e)??t),e.transforms.length>0&&(t=gie(t,e,a));let l=sre(e),s=lre(e);t=Sn.makeWithAncestors(t,{},{...l,...s},a)??t,Je(e)&&(t=B8.parseAll(t,e),t=z8.parseAll(t,e)),(Je(e)||Mn(e))&&(o||(t=Wl.makeFromEncoding(t,e)??t),t=Tl.makeFromEncoding(t,e)??t,t=Ub.parseAllForSortIndex(t,e));let u=t=ip(et.Raw,e,t);if(Je(e)){let g=Ao.makeFromEncoding(t,e);g&&(t=g,Lb(e)&&(t=new Hl(t))),t=px.makeFromEncoding(t,e)??t,t=Qu.makeFromEncoding(t,e)??t}let c,f;if(Je(e)){let{markDef:g,mark:y,config:v}=e,{marks:b,scales:w}=f=XS({invalid:Me("invalid",g,v),isPath:va(y)});b!==w&&w==="include-invalid-values"&&(c=t=ip(et.PreFilterInvalid,e,t)),b==="exclude-invalid-values"&&(t=nx.make(t,e,f)??t)}let d=t=ip(et.Main,e,t),h;if(Je(e)&&f){let{marks:g,scales:y}=f;g==="include-invalid-values"&&y==="exclude-invalid-values"&&(t=nx.make(t,e,f)??t,h=t=ip(et.PostFilterInvalid,e,t))}Je(e)&&ine(e,d);let p=null;if(Mn(e)){let g=e.getName("facet");t=pie(t,e.facet)??t,p=new Gl(t,e,g,d.getSource()),n[g]=p}return{...e.component.data,outputNodes:n,outputNodeRefCounts:r,raw:u,main:d,facetRoot:p,ancestorParse:a,preFilterInvalid:c,postFilterInvalid:h}}function ip(e,t,n){let{outputNodes:r,outputNodeRefCounts:i}=t.component.data,a=t.getDataName(e),o=new bn(n,a,e,i);return r[a]=o,o}var yie=class extends hx{constructor(t,n,r,i){var a,o,l,s;super(t,"concat",n,r,i,t.resolve);N(this,"children");(((o=(a=t.resolve)==null?void 0:a.axis)==null?void 0:o.x)==="shared"||((s=(l=t.resolve)==null?void 0:l.axis)==null?void 0:s.y)==="shared")&&q(BQ),this.children=this.getChildren(t).map((u,c)=>bx(u,this,this.getName(`concat_${c}`),void 0,i))}parseData(){this.component.data=rp(this);for(let t of this.children)t.parseData()}parseSelections(){this.component.selection={};for(let t of this.children){t.parseSelections();for(let n of I(t.component.selection))this.component.selection[n]=t.component.selection[n]}ut(this.component.selection).some(t=>Zr(t))&&$v(Dv)}parseMarkGroup(){for(let t of this.children)t.parseMarkGroup()}parseAxesAndHeaders(){for(let t of this.children)t.parseAxesAndHeaders()}getChildren(t){return Rh(t)?t.vconcat:gb(t)?t.hconcat:t.concat}parseLayoutSize(){cie(this)}parseAxisGroup(){return null}assembleSelectionTopLevelSignals(t){return this.children.reduce((n,r)=>r.assembleSelectionTopLevelSignals(n),t)}assembleSignals(){return this.children.forEach(t=>t.assembleSignals()),[]}assembleLayoutSignals(){let t=Vb(this);for(let n of this.children)t.push(...n.assembleLayoutSignals());return t}assembleSelectionData(t){return this.children.reduce((n,r)=>r.assembleSelectionData(n),t)}assembleMarks(){return this.children.map(t=>{let n=t.assembleTitle(),r=t.assembleGroupStyle(),i=t.assembleGroupEncodeEntry(!1);return{type:"group",name:t.getName("group"),...n?{title:n}:{},...r?{style:r}:{},...i?{encode:{update:i}}:{},...t.assembleGroup()}})}assembleGroupStyle(){}assembleDefaultLayout(){let t=this.layout.columns;return{...t==null?{}:{columns:t},bounds:"full",align:"each"}}};function vie(e){return e===!1||e===null}var G8=I({disable:1,gridScale:1,scale:1,...V5,labelExpr:1,encode:1}),bie=class x4 extends vo{constructor(n={},r={},i=!1){super();N(this,"explicit");N(this,"implicit");N(this,"mainExtracted");this.explicit=n,this.implicit=r,this.mainExtracted=i}clone(){return new x4(oe(this.explicit),oe(this.implicit),this.mainExtracted)}hasAxisPart(n){return n==="axis"?!0:n==="grid"||n==="title"?!!this.get(n):!vie(this.get(n))}hasOrientSignalRef(){return Q(this.explicit.orient)}};function xie(e,t,n){let{encoding:r,config:i}=e,a=pt(r[t])??pt(r[Wr(t)]),{format:o,formatType:l}=e.axis(t)||{};if(mo(l))return{text:vr({fieldOrDatumDef:a,field:"datum.value",format:o,formatType:l,config:i}),...n};if(o===void 0&&l===void 0&&i.customFormatTypes){if(Sl(a)==="quantitative"){if(Ml(a)&&a.stack==="normalize"&&i.normalizedNumberFormatType)return{text:vr({fieldOrDatumDef:a,field:"datum.value",format:i.normalizedNumberFormat,formatType:i.normalizedNumberFormatType,config:i}),...n};if(i.numberFormatType)return{text:vr({fieldOrDatumDef:a,field:"datum.value",format:i.numberFormat,formatType:i.numberFormatType,config:i}),...n}}if(Sl(a)==="temporal"&&i.timeFormatType&&U(a)&&!a.timeUnit)return{text:vr({fieldOrDatumDef:a,field:"datum.value",format:i.timeFormat,formatType:i.timeFormatType,config:i}),...n}}return n}function wie(e){return xi.reduce((t,n)=>(e.component.scales[n]&&(t[n]=[Cie(n,e)]),t),{})}var Aie={bottom:"top",top:"bottom",left:"right",right:"left"};function Eie(e){let{axes:t,resolve:n}=e.component,r={top:0,bottom:0,right:0,left:0};for(let i of e.children){i.parseAxesAndHeaders();for(let a of I(i.component.axes))n.axis[a]=Xb(e.component.resolve,a),n.axis[a]==="shared"&&(t[a]=kie(t[a],i.component.axes[a]),t[a]||(n.axis[a]="independent",delete t[a]))}for(let i of xi){for(let a of e.children)if(a.component.axes[i]){if(n.axis[i]==="independent"){t[i]=(t[i]??[]).concat(a.component.axes[i]);for(let o of a.component.axes[i]){let{value:l,explicit:s}=o.getWithExplicit("orient");if(!Q(l)){if(r[l]>0&&!s){let u=Aie[l];r[l]>r[u]&&o.set("orient",u,!1)}r[l]++}}}delete a.component.axes[i]}if(n.axis[i]==="independent"&&t[i]&&t[i].length>1)for(let[a,o]of(t[i]||[]).entries())a>0&&o.get("grid")&&!o.explicit.grid&&(o.implicit.grid=!1)}}function kie(e,t){if(e){if(e.length!==t.length)return;let n=e.length;for(let r=0;rn.clone());return e}function _ie(e,t){for(let n of G8){let r=wa(e.getWithExplicit(n),t.getWithExplicit(n),n,"axis",(i,a)=>{switch(n){case"title":return N3(i,a);case"gridScale":return{explicit:i.explicit,value:at(i.value,a.value)}}return Ph(i,a,n,"axis")});e.setWithExplicit(n,r)}return e}function Die(e,t,n,r,i){if(t==="disable")return n!==void 0;switch(n||(n={}),t){case"titleAngle":case"labelAngle":return e===(Q(n.labelAngle)?n.labelAngle:Ou(n.labelAngle));case"values":return!!n.values;case"encode":return!!n.encoding||!!n.labelAngle;case"title":if(e===L6(r,i))return!0}return e===n[t]}var Fie=new Set(["grid","translate","format","formatType","orient","labelExpr","tickCount","position","tickMinStep"]);function Cie(e,t){var y,v;let n=t.axis(e),r=new bie,i=pt(t.encoding[e]),{mark:a,config:o}=t,l=(n==null?void 0:n.orient)||((y=o[e==="x"?"axisX":"axisY"])==null?void 0:y.orient)||((v=o.axis)==null?void 0:v.orient)||pne(e),s=t.getScaleComponent(e).get("type"),u=lne(e,s,l,t.config),c=n===void 0?jb("disable",o.style,n==null?void 0:n.style,u).configValue:!n;if(r.set("disable",c,n!==void 0),c)return r;n||(n={});let f=fne(i,n,e,o.style,u),d=C5(n.formatType,i,s),h=F5(i,i.type,n.format,n.formatType,o,!0),p={fieldOrDatumDef:i,axis:n,channel:e,model:t,scaleType:s,orient:l,labelAngle:f,format:h,formatType:d,mark:a,config:o};for(let b of G8){let w=b in N6?N6[b](p):X5(b)?n[b]:void 0,A=w!==void 0,E=Die(w,b,n,t,e);if(A&&E)r.set(b,w,E);else{let{configValue:x=void 0,configFrom:k=void 0}=X5(b)&&b!=="values"?jb(b,o.style,n.style,u):{},_=x!==void 0;A&&!_?r.set(b,w,E):(k!=="vgAxisConfig"||Fie.has(b)&&_||Gu(x)||Q(x))&&r.set(b,x,!1)}}let m=n.encoding??{},g=H5.reduce((b,w)=>{if(!r.hasAxisPart(w))return b;let A=G6(m[w]??{},t),E=w==="labels"?xie(t,e,A):A;return E!==void 0&&!Ie(E)&&(b[w]={update:E}),b},{});return Ie(g)||r.set("encode",g,!!n.encoding||n.labelAngle!==void 0),r}function $ie({encoding:e,size:t}){for(let n of xi){let r=vn(n);Qr(t[r])&&xa(e[n])&&(delete t[r],q(V3(r)))}return t}var Sie={vgMark:"arc",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"}),...on("x",e,{defaultPos:"mid"}),...on("y",e,{defaultPos:"mid"}),...Fi(e,"radius"),...Fi(e,"theta")})},Mie={vgMark:"area",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"include",orient:"include",size:"ignore",theta:"ignore"}),...Wh("x",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:e.markDef.orient==="horizontal"}),...Wh("y",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:e.markDef.orient==="vertical"}),...Rb(e)})},Oie={vgMark:"rect",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...Fi(e,"x"),...Fi(e,"y")})},Bie={vgMark:"shape",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})}),postEncodingTransform:e=>{let{encoding:t}=e,n=t.shape;return[{type:"geoshape",projection:e.projectionName(),...n&&U(n)&&n.type===Cl?{field:V(n,{expr:"datum"})}:{}}]}},zie={vgMark:"image",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"ignore",orient:"ignore",size:"ignore",theta:"ignore"}),...Fi(e,"x"),...Fi(e,"y"),...zb(e,"url")})},Nie={vgMark:"line",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"}),...on("x",e,{defaultPos:"mid"}),...on("y",e,{defaultPos:"mid"}),...St("size",e,{vgChannel:"strokeWidth"}),...Rb(e)})},Rie={vgMark:"trail",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"}),...on("x",e,{defaultPos:"mid"}),...on("y",e,{defaultPos:"mid"}),...St("size",e),...Rb(e)})};function yx(e,t){let{config:n}=e;return{...Xn(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"}),...on("x",e,{defaultPos:"mid"}),...on("y",e,{defaultPos:"mid"}),...St("size",e),...St("angle",e),...Tie(e,n,t)}}function Tie(e,t,n){return n?{shape:{value:n}}:St("shape",e)}var Lie={vgMark:"symbol",encodeEntry:e=>yx(e)},Pie={vgMark:"symbol",encodeEntry:e=>yx(e,"circle")},Iie={vgMark:"symbol",encodeEntry:e=>yx(e,"square")},jie={vgMark:"rect",encodeEntry:e=>({...Xn(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...Fi(e,"x"),...Fi(e,"y")})},qie={vgMark:"rule",encodeEntry:e=>{let{markDef:t}=e,n=t.orient;return!e.encoding.x&&!e.encoding.y&&!e.encoding.latitude&&!e.encoding.longitude?{}:{...Xn(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...Wh("x",e,{defaultPos:n==="horizontal"?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:n!=="vertical"}),...Wh("y",e,{defaultPos:n==="vertical"?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:n!=="horizontal"}),...St("size",e,{vgChannel:"strokeWidth"})}}},Uie={vgMark:"text",encodeEntry:e=>{let{config:t,encoding:n}=e;return{...Xn(e,{align:"include",baseline:"include",color:"include",size:"ignore",orient:"ignore",theta:"include"}),...on("x",e,{defaultPos:"mid"}),...on("y",e,{defaultPos:"mid"}),...zb(e),...St("size",e,{vgChannel:"fontSize"}),...St("angle",e),...g6("align",Wie(e.markDef,n,t)),...g6("baseline",Gie(e.markDef,n,t)),...on("radius",e,{defaultPos:null}),...on("theta",e,{defaultPos:null})}}};function Wie(e,t,n){if(Me("align",e,n)===void 0)return"center"}function Gie(e,t,n){if(Me("baseline",e,n)===void 0)return"middle"}var ap={arc:Sie,area:Mie,bar:Oie,circle:Pie,geoshape:Bie,image:zie,line:Nie,point:Lie,rect:jie,rule:qie,square:Iie,text:Uie,tick:{vgMark:"rect",encodeEntry:e=>{let{config:t,markDef:n}=e,r=n.orient,i=r==="horizontal"?"x":"y",a=r==="horizontal"?"y":"x",o=r==="horizontal"?"height":"width";return{...Xn(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"}),...Fi(e,i),...on(a,e,{defaultPos:"mid",vgChannel:a==="y"?"yc":"xc"}),[o]:We(Me("thickness",n,t))}}},trail:Rie};function Hie(e){if(he([bh,yh,sZ],e.mark)){let t=eS(e.mark,e.encoding);if(t.length>0)return Vie(e,t)}else if(e.mark===vh){let t=Av.some(n=>Me(n,e.markDef,e.config));if(e.stack&&!e.fieldDef("size")&&t)return Xie(e)}return vx(e)}var H8="faceted_path_";function Vie(e,t){return[{name:e.getName("pathgroup"),type:"group",from:{facet:{name:H8+e.requestDataName(et.Main),data:e.requestDataName(et.Main),groupby:t}},encode:{update:{width:{field:{group:"width"}},height:{field:{group:"height"}}}},marks:vx(e,{fromPrefix:H8})}]}var V8="stack_group_";function Xie(e){var s;let[t]=vx(e,{fromPrefix:V8}),n=e.scaleName(e.stack.fieldChannel),r=(u={})=>e.vgField(e.stack.fieldChannel,u),i=(u,c)=>`${u}(${[r({prefix:"min",suffix:"start",expr:c}),r({prefix:"max",suffix:"start",expr:c}),r({prefix:"min",suffix:"end",expr:c}),r({prefix:"max",suffix:"end",expr:c})].map(f=>`scale('${n}',${f})`).join(",")})`,a,o;e.stack.fieldChannel==="x"?(a={...xl(t.encode.update,["y","yc","y2","height",...Av]),x:{signal:i("min","datum")},x2:{signal:i("max","datum")},clip:{value:!0}},o={x:{field:{group:"x"},mult:-1},height:{field:{group:"height"}}},t.encode.update={...Fn(t.encode.update,["y","yc","y2"]),height:{field:{group:"height"}}}):(a={...xl(t.encode.update,["x","xc","x2","width"]),y:{signal:i("min","datum")},y2:{signal:i("max","datum")},clip:{value:!0}},o={y:{field:{group:"y"},mult:-1},width:{field:{group:"width"}}},t.encode.update={...Fn(t.encode.update,["x","xc","x2"]),width:{field:{group:"width"}}});for(let u of Av){let c=Hr(u,e.markDef,e.config);t.encode.update[u]?(a[u]=t.encode.update[u],delete t.encode.update[u]):c&&(a[u]=We(c)),c&&(t.encode.update[u]={value:0})}let l=[];if(((s=e.stack.groupbyChannels)==null?void 0:s.length)>0)for(let u of e.stack.groupbyChannels){let c=e.fieldDef(u),f=V(c);f&&l.push(f),(c!=null&&c.bin||c!=null&&c.timeUnit)&&l.push(V(c,{binSuffix:"end"}))}return a=["stroke","strokeWidth","strokeJoin","strokeCap","strokeDash","strokeDashOffset","strokeMiterLimit","strokeOpacity"].reduce((u,c)=>{if(t.encode.update[c])return{...u,[c]:t.encode.update[c]};{let f=Hr(c,e.markDef,e.config);return f===void 0?u:{...u,[c]:We(f)}}},a),a.stroke&&(a.strokeForeground={value:!0},a.strokeOffset={value:0}),[{type:"group",from:{facet:{data:e.requestDataName(et.Main),name:V8+e.requestDataName(et.Main),groupby:l,aggregate:{fields:[r({suffix:"start"}),r({suffix:"start"}),r({suffix:"end"}),r({suffix:"end"})],ops:["min","max","min","max"]}}},encode:{update:a},marks:[{type:"group",encode:{update:o},marks:[t]}]}]}function Yie(e){let{encoding:t,stack:n,mark:r,markDef:i,config:a}=e,o=t.order;if(!(!X(o)&&br(o)&&av(o.value)||!o&&av(Me("order",i,a)))){if((X(o)||U(o))&&!n)return O3(o,{expr:"datum"});if(va(r)){let l=i.orient==="horizontal"?"y":"x",s=t[l];if(U(s))return{field:l}}}}function vx(e,t={fromPrefix:""}){var h;let{mark:n,markDef:r,encoding:i,config:a}=e,o=at(r.clip,Jie(e),Qie(e)),l=S3(r),s=i.key,u=Yie(e),c=Kie(e);c&&Object.values(e.component.selection).some(p=>p.type==="point"&&!p.bind&&p.on!=="pointerover")&&((h=e.markDef).cursor??(h.cursor="pointer"));let f=Me("aria",r,a),d=ap[n].postEncodingTransform?ap[n].postEncodingTransform(e):null;return[{name:e.getName("marks"),type:ap[n].vgMark,...o?{clip:o}:{},...l?{style:l}:{},...s?{key:s.field}:{},...u?{sort:u}:{},...c||{},...f===!1?{aria:f}:{},from:{data:t.fromPrefix+e.requestDataName(et.Main)},encode:{update:ap[n].encodeEntry(e)},...d?{transform:d}:{}}]}function Jie(e){let t=e.getScaleComponent("x"),n=e.getScaleComponent("y");return t!=null&&t.get("selectionExtent")||n!=null&&n.get("selectionExtent")?!0:void 0}function Qie(e){let t=e.component.projection;return t&&!t.isFit?!0:void 0}function Kie(e){if(!e.component.selection)return null;let t=I(e.component.selection).length,n=t,r=e.parent;for(;r&&n===0;)n=I(r.component.selection).length,r=r.parent;return n?{interactive:t>0||e.mark==="geoshape"||!!e.encoding.tooltip||!!e.markDef.tooltip}:null}var X8=class extends C8{constructor(t,n,r,i={},a){super(t,"unit",n,r,a,void 0,vS(t)?t.view:void 0);N(this,"markDef");N(this,"encoding");N(this,"specifiedScales",{});N(this,"stack");N(this,"specifiedAxes",{});N(this,"specifiedLegends",{});N(this,"specifiedProjection",{});N(this,"selection",[]);N(this,"children",[]);N(this,"correctDataNames",t=>{var n,r,i;return(n=t.from)!=null&&n.data&&(t.from.data=this.lookupDataSource(t.from.data),"time"in this.encoding&&(t.from.data=t.from.data+ZS)),(i=(r=t.from)==null?void 0:r.facet)!=null&&i.data&&(t.from.facet.data=this.lookupDataSource(t.from.facet.data)),t});let o=Yr(t.mark)?{...t.mark}:{type:t.mark},l=o.type;o.filled===void 0&&(o.filled=Tee(o,a,{graticule:t.data&&Db(t.data)}));let s=this.encoding=WZ(t.encoding||{},l,o.filled,a);this.markDef=FS(o,s,a),this.size=$ie({encoding:s,size:vS(t)?{...i,...t.width?{width:t.width}:{},...t.height?{height:t.height}:{}}:i}),this.stack=DS(this.markDef,s),this.specifiedScales=this.initScales(l,s),this.specifiedAxes=this.initAxes(s),this.specifiedLegends=this.initLegends(s),this.specifiedProjection=t.projection,this.selection=(t.params??[]).filter(u=>pb(u)),this.alignStackOrderWithColorDomain()}get hasProjection(){let{encoding:t}=this,n=this.mark===b5,r=t&&qJ.some(i=>le(t[i]));return n||r}scaleDomain(t){let n=this.specifiedScales[t];return n?n.domain:void 0}axis(t){return this.specifiedAxes[t]}legend(t){return this.specifiedLegends[t]}initScales(t,n){return bv.reduce((r,i)=>{let a=pt(n[i]);return a&&(r[i]=this.initScale(a.scale??{})),r},{})}initScale(t){let{domain:n,range:r}=t,i=Ct(t);return X(n)&&(i.domain=n.map($n)),X(r)&&(i.range=r.map($n)),i}initAxes(t){return xi.reduce((n,r)=>{let i=t[r];if(le(i)||r===Xe&&le(t.x2)||r===bt&&le(t.y2)){let a=le(i)?i.axis:void 0;n[r]=a&&this.initAxis({...a})}return n},{})}initAxis(t){let n=I(t),r={};for(let i of n){let a=t[i];r[i]=Gu(a)?F3(a):$n(a)}return r}initLegends(t){return ZJ.reduce((n,r)=>{let i=pt(t[r]);if(i&&tQ(r)){let a=i.legend;n[r]=a&&Ct(a)}return n},{})}alignStackOrderWithColorDomain(){var m;let{color:t,fill:n,order:r,xOffset:i,yOffset:a}=this.encoding,o=n||t,l=U(o)?o:void 0,s=l==null?void 0:l.field,u=l==null?void 0:l.scale,c=l==null?void 0:l.type,f=u==null?void 0:u.domain,d=i||a,h=U(d)?d:void 0,p=`_${s}_sort_index`;if(!r&&Array.isArray(f)&&typeof s=="string"&&c==="nominal")if(h&&!h.sort)h.sort=f;else{let g=`indexof(${we(f)}, datum['${s}'])`,y=((m=this.markDef)==null?void 0:m.orient)==="horizontal"?"ascending":"descending";this.transforms.push({calculate:g,as:p}),this.encoding.order={field:p,type:"quantitative",sort:y}}}parseData(){this.component.data=rp(this)}parseLayoutSize(){fie(this)}parseSelections(){this.component.selection=rne(this,this.selection)}parseMarkGroup(){this.component.mark=Hie(this)}parseAxesAndHeaders(){this.component.axes=wie(this)}assembleSelectionTopLevelSignals(t){return Ste(this,t)}assembleSignals(){return[...B6(this),...Cte(this,[])]}assembleSelectionData(t){return Mte(this,t)}assembleLayout(){return null}assembleLayoutSignals(){return Vb(this)}assembleMarks(){let t=this.component.mark??[];return(!this.parent||!Vl(this.parent))&&(t=r6(this,t)),t.map(this.correctDataNames)}assembleGroupStyle(){let{style:t}=this.view||{};return t===void 0?this.encoding.x||this.encoding.y?"cell":"view":t}getMapping(){return this.encoding}get mark(){return this.markDef.type}channelHasField(t){return yo(this.encoding,t)}fieldDef(t){let n=this.encoding[t];return xr(n)}typedFieldDef(t){let n=this.fieldDef(t);return an(n)?n:null}},Zie=class w4 extends hx{constructor(n,r,i,a,o){super(n,"layer",r,i,o,n.resolve,n.view);N(this,"children");let l={...a,...n.width?{width:n.width}:{},...n.height?{height:n.height}:{}};this.children=n.layer.map((s,u)=>{if(Lh(s))return new w4(s,this,this.getName(`layer_${u}`),l,o);if(ki(s))return new X8(s,this,this.getName(`layer_${u}`),l,o);throw Error(kv(s))})}parseData(){this.component.data=rp(this);for(let n of this.children)n.parseData()}parseLayoutSize(){uie(this)}parseSelections(){this.component.selection={};for(let n of this.children){n.parseSelections();for(let r of I(n.component.selection))this.component.selection[r]=n.component.selection[r]}ut(this.component.selection).some(n=>Zr(n))&&$v(Dv)}parseMarkGroup(){for(let n of this.children)n.parseMarkGroup()}parseAxesAndHeaders(){Eie(this)}assembleSelectionTopLevelSignals(n){return this.children.reduce((r,i)=>i.assembleSelectionTopLevelSignals(r),n)}assembleSignals(){return this.children.reduce((n,r)=>n.concat(r.assembleSignals()),B6(this))}assembleLayoutSignals(){return this.children.reduce((n,r)=>n.concat(r.assembleLayoutSignals()),Vb(this))}assembleSelectionData(n){return this.children.reduce((r,i)=>i.assembleSelectionData(r),n)}assembleGroupStyle(){let n=new Set;for(let i of this.children)for(let a of it(i.assembleGroupStyle()))n.add(a);let r=Array.from(n);return r.length>1?r:r.length===1?r[0]:void 0}assembleTitle(){let n=super.assembleTitle();if(n)return n;for(let r of this.children)if(n=r.assembleTitle(),n)return n}assembleLayout(){return null}assembleMarks(){return Ote(this,this.children.flatMap(n=>n.assembleMarks()))}assembleLegends(){return this.children.reduce((n,r)=>n.concat(r.assembleLegends()),n8(this))}};function bx(e,t,n,r,i){if(kh(e))return new hie(e,t,n,i);if(Lh(e))return new Zie(e,t,n,r,i);if(ki(e))return new X8(e,t,n,r,i);if(hee(e))return new yie(e,t,n,i);throw Error(kv(e))}function Y8(e,t={}){t.logger&&EK(t.logger),t.fieldTitle&&q5(t.fieldTitle);try{let n=kS(q$(t.config,e.config)),r=jS(e,n),i=bx(r,null,"",void 0,n);return i.parse(),Ere(i.component.data,i),{spec:tae(i,eae(e,r.autosize,n,i),e.datasets,e.usermeta),normalized:r}}finally{t.logger&&kK(),t.fieldTitle&&RZ()}}function eae(e,t,n,r){let i=r.component.layoutSize.get("width"),a=r.component.layoutSize.get("height");if(t===void 0?(t={type:"pad"},r.hasAxisOrientSignalRef()&&(t.resize=!0)):se(t)&&(t={type:t}),i&&a&&vte(t.type)){if(i==="step"&&a==="step")q(L3()),t.type="pad";else if(i==="step"||a==="step"){let o=i==="step"?"width":"height";q(L3(ch(o))),t.type=bte(o==="width"?"height":"width")}}return{...I(t).length===1&&t.type?t.type==="pad"?{}:{autosize:t.type}:{autosize:t},...US(n,!1),...US(e,!0)}}function tae(e,t,n={},r){let i=e.config?_ee(e.config):void 0,a=aie(e.component.data,n),o=e.assembleSelectionData(a),l=e.assembleProjections(),s=e.assembleTitle(),u=e.assembleGroupStyle(),c=e.assembleGroupEncodeEntry(!0),f=e.assembleLayoutSignals();f=f.filter(p=>(p.name==="width"||p.name==="height")&&p.value!==void 0?(t[p.name]=+p.value,!1):!0);let{params:d,...h}=t;return{$schema:"https://vega.github.io/schema/vega/v6.json",...e.description?{description:e.description}:{},...h,...s?{title:s}:{},...u?{style:u}:{},...c?{encode:{update:c}}:{},data:o,...l.length>0?{projections:l}:{},...e.assembleGroup([...f,...e.assembleSelectionTopLevelSignals([]),...gS(d)]),...i?{config:i}:{},...r?{usermeta:r}:{}}}var nae=RJ.version;function J8(e){let[t,n]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:t,version:n}}var rae=sn({carbong10:()=>Rae,carbong100:()=>Lae,carbong90:()=>Tae,carbonwhite:()=>Nae,dark:()=>aae,excel:()=>oae,fivethirtyeight:()=>uae,ggplot2:()=>cae,googlecharts:()=>Aae,latimes:()=>pae,powerbi:()=>Mae,quartz:()=>mae,urbaninstitute:()=>wae,version:()=>Pae,vox:()=>gae},1),iae={version:"3.0.0"},Xl="#fff",Q8="#888",aae={background:"#333",view:{stroke:Q8},title:{color:Xl,subtitleColor:Xl},style:{"guide-label":{fill:Xl},"guide-title":{fill:Xl}},axis:{domainColor:Xl,gridColor:Q8,tickColor:Xl}},_o="#4572a7",oae={background:"#fff",arc:{fill:_o},area:{fill:_o},line:{stroke:_o,strokeWidth:2},path:{stroke:_o},rect:{fill:_o},shape:{stroke:_o},symbol:{fill:_o,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:!0,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:!1,tickExtra:!0},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}},Do="#30a2da",xx="#cbcbcb",lae="#999",sae="#333",K8="#f0f0f0",Z8="#333",uae={arc:{fill:Do},area:{fill:Do},axis:{domainColor:xx,grid:!0,gridColor:xx,gridWidth:1,labelColor:lae,labelFontSize:10,titleColor:sae,tickColor:xx,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:!1},background:K8,group:{fill:K8},legend:{labelColor:Z8,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:Z8,titleFontSize:14,titlePadding:10},line:{stroke:Do,strokeWidth:2},path:{stroke:Do,strokeWidth:.5},rect:{fill:Do},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:!0,shape:"circle"},shape:{stroke:Do},bar:{binSpacing:2,fill:Do,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}},Fo="#000",cae={group:{fill:"#e5e5e5"},arc:{fill:Fo},area:{fill:Fo},line:{stroke:Fo},path:{stroke:Fo},rect:{fill:Fo},shape:{stroke:Fo},symbol:{fill:Fo,size:40},axis:{domain:!1,grid:!0,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}},fae=22,dae="normal",e9="Benton Gothic, sans-serif",t9=11.5,hae="normal",Co="#82c6df",wx="Benton Gothic Bold, sans-serif",n9="normal",r9=13,Ku={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"]},pae={background:"#ffffff",title:{anchor:"start",color:"#000000",font:wx,fontSize:fae,fontWeight:dae},arc:{fill:Co},area:{fill:Co},line:{stroke:Co,strokeWidth:2},path:{stroke:Co},rect:{fill:Co},shape:{stroke:Co},symbol:{fill:Co,size:30},axis:{labelFont:e9,labelFontSize:t9,labelFontWeight:hae,titleFont:wx,titleFontSize:r9,titleFontWeight:n9},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:e9,labelFontSize:t9,symbolType:"square",titleFont:wx,titleFontSize:r9,titleFontWeight:n9},range:{category:Ku["category-6"],diverging:Ku["fireandice-6"],heatmap:Ku["fire-7"],ordinal:Ku["fire-7"],ramp:Ku["fire-7"]}},$o="#ab5787",op="#979797",mae={background:"#f9f9f9",arc:{fill:$o},area:{fill:$o},line:{stroke:$o},path:{stroke:$o},rect:{fill:$o},shape:{stroke:$o},symbol:{fill:$o,size:30},axis:{domainColor:op,domainWidth:.5,gridWidth:.2,labelColor:op,tickColor:op,tickWidth:.2,titleColor:op},axisBand:{grid:!1},axisX:{grid:!0,tickSize:10},axisY:{domain:!1,grid:!0,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}},So="#3e5c69",gae={background:"#fff",arc:{fill:So},area:{fill:So},line:{stroke:So},path:{stroke:So},rect:{fill:So},shape:{stroke:So},symbol:{fill:So},axis:{domainWidth:.5,grid:!0,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:!1},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}},Yn="#1696d2",i9="#000000",yae="#FFFFFF",lp="Lato",Ax="Lato",vae="Lato",bae="#DEDDDD",xae=18,Zu={"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]},wae={background:yae,title:{anchor:"start",fontSize:xae,font:lp},axisX:{domain:!0,domainColor:i9,domainWidth:1,grid:!1,labelFontSize:12,labelFont:Ax,labelAngle:0,tickColor:i9,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:lp},axisY:{domain:!1,domainWidth:1,grid:!0,gridColor:bae,gridWidth:1,labelFontSize:12,labelFont:Ax,labelPadding:8,ticks:!1,titleFontSize:12,titlePadding:10,titleFont:lp,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:Ax,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:lp,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:Zu["six-groups-cat-1"],diverging:Zu["diverging-colors"],heatmap:Zu["diverging-colors"],ordinal:Zu["six-groups-seq"],ramp:Zu["shades-blue"]},area:{fill:Yn},rect:{fill:Yn},line:{color:Yn,stroke:Yn,strokeWidth:5},trail:{color:Yn,stroke:Yn,strokeWidth:0,size:1},path:{stroke:Yn,strokeWidth:.5},point:{filled:!0},text:{font:vae,color:Yn,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:Yn,stroke:null}},arc:{fill:Yn},shape:{stroke:Yn},symbol:{fill:Yn,size:30}},Mo="#3366CC",a9="#ccc",sp="Arial, sans-serif",Aae={arc:{fill:Mo},area:{fill:Mo},path:{stroke:Mo},rect:{fill:Mo},shape:{stroke:Mo},symbol:{stroke:Mo},circle:{fill:Mo},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:sp,fontSize:12},"guide-title":{font:sp,fontSize:12},"group-title":{font:sp,fontSize:12}},title:{font:sp,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:a9,tickColor:a9,domain:!1,grid:!0},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}},Ex=e=>e*1.3333333333333333,o9=Ex(9),l9=Ex(10),s9=Ex(12),ec="Segoe UI",u9="wf_standard-font, helvetica, arial, sans-serif",c9="#252423",tc="#605E5C",f9="transparent",Eae="#C8C6C4",kr="#118DFF",kae="#12239E",_ae="#E66C37",Dae="#6B007B",Fae="#E044A7",Cae="#744EC2",$ae="#D9B300",Sae="#D64550",d9=kr,h9="#DEEFFF",p9=[h9,d9],Mae={view:{stroke:f9},background:f9,font:ec,header:{titleFont:u9,titleFontSize:s9,titleColor:c9,labelFont:ec,labelFontSize:l9,labelColor:tc},axis:{ticks:!1,grid:!1,domain:!1,labelColor:tc,labelFontSize:o9,titleFont:u9,titleColor:c9,titleFontSize:s9,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:!0,gridColor:Eae,gridDash:[1,5],labelFlush:!1},axisBand:{tickExtra:!0},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:kr},line:{stroke:kr,strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:ec,fontSize:o9,fill:tc},arc:{fill:kr},area:{fill:kr,line:!0,opacity:.6},path:{stroke:kr},rect:{fill:kr},point:{fill:kr,filled:!0,size:75},shape:{stroke:kr},symbol:{fill:kr,strokeWidth:1.5,size:50},legend:{titleFont:ec,titleFontWeight:"bold",titleColor:tc,labelFont:ec,labelFontSize:l9,labelColor:tc,symbolType:"circle",symbolSize:75},range:{category:[kr,kae,_ae,Dae,Fae,Cae,$ae,Sae],diverging:p9,heatmap:p9,ordinal:[h9,"#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff",d9]}},kx='IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,".sfnstext-regular",sans-serif',Oae='IBM Plex Sans Condensed, system-ui, -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", sans-serif',_x=400,up={textPrimary:{g90:"#f4f4f4",g100:"#f4f4f4",white:"#161616",g10:"#161616"},textSecondary:{g90:"#c6c6c6",g100:"#c6c6c6",white:"#525252",g10:"#525252"},layerAccent01:{white:"#e0e0e0",g10:"#e0e0e0",g90:"#525252",g100:"#393939"},gridBg:{white:"#ffffff",g10:"#ffffff",g90:"#161616",g100:"#161616"}},Bae=["#8a3ffc","#33b1ff","#007d79","#ff7eb6","#fa4d56","#fff1f1","#6fdc8c","#4589ff","#d12771","#d2a106","#08bdba","#bae6ff","#ba4e00","#d4bbff"],zae=["#6929c4","#1192e8","#005d5d","#9f1853","#fa4d56","#570408","#198038","#002d9c","#ee538b","#b28600","#009d9a","#012749","#8a3800","#a56eff"];function cp({theme:e,background:t}){let n=["white","g10"].includes(e)?"light":"dark",r=up.gridBg[e],i=up.textPrimary[e],a=up.textSecondary[e],o=n==="dark"?Bae:zae,l=n==="dark"?"#d4bbff":"#6929c4";return{background:t,arc:{fill:l},area:{fill:l},path:{stroke:l},rect:{fill:l},shape:{stroke:l},symbol:{stroke:l},circle:{fill:l},view:{fill:r,stroke:r},group:{fill:r},title:{color:i,anchor:"start",dy:-15,fontSize:16,font:kx,fontWeight:600},axis:{labelColor:a,labelFontSize:12,labelFont:Oae,labelFontWeight:_x,titleColor:i,titleFontWeight:600,titleFontSize:12,grid:!0,gridColor:up.layerAccent01[e],labelAngle:0},axisX:{titlePadding:10},axisY:{titlePadding:2.5},style:{"guide-label":{font:kx,fill:a,fontWeight:_x},"guide-title":{font:kx,fill:a,fontWeight:_x}},range:{category:o,diverging:["#750e13","#a2191f","#da1e28","#fa4d56","#ff8389","#ffb3b8","#ffd7d9","#fff1f1","#e5f6ff","#bae6ff","#82cfff","#33b1ff","#1192e8","#0072c3","#00539a","#003a6d"],heatmap:["#f6f2ff","#e8daff","#d4bbff","#be95ff","#a56eff","#8a3ffc","#6929c4","#491d8b","#31135e","#1c0f30"]}}}var Nae=cp({theme:"white",background:"#ffffff"}),Rae=cp({theme:"g10",background:"#f4f4f4"}),Tae=cp({theme:"g90",background:"#262626"}),Lae=cp({theme:"g100",background:"#161616"}),Pae=iae.version,Iae={version:"1.0.0"};function jae(e,t,n,r){if(Z(e))return`[${e.map(i=>t(Ee(i)?i:m9(i,n))).join(", ")}]`;if(ue(e)){let i="",{title:a,image:o,...l}=e;a&&(i+=`

${t(a)}

`),o&&(i+=``);let s=Object.keys(l);if(s.length>0){i+="";for(let u of s){let c=l[u];c!==void 0&&(ue(c)&&(c=m9(c,n)),i+=``)}i+="
${t(u)}${t(c)}
"}return i||"{}"}return t(e)}function qae(e){let t=[];return function(n,r){return typeof r!="object"||!r?r:(t.length=t.indexOf(this)+1,t.length>e?"[Object]":t.indexOf(r)>=0?"[Circular]":(t.push(r),r))}}function m9(e,t){return JSON.stringify(e,qae(t))}var Uae=`#vg-tooltip-element { + visibility: hidden; + padding: 8px; + position: fixed; + z-index: 1000; + font-family: sans-serif; + font-size: 11px; + border-radius: 3px; + box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); + /* The default theme is the light theme. */ + background-color: rgba(255, 255, 255, 0.95); + border: 1px solid #d9d9d9; + color: black; +} +#vg-tooltip-element.visible { + visibility: visible; +} +#vg-tooltip-element h2 { + margin-top: 0; + margin-bottom: 10px; + font-size: 13px; +} +#vg-tooltip-element table { + border-spacing: 0; +} +#vg-tooltip-element table tr { + border: none; +} +#vg-tooltip-element table tr td { + overflow: hidden; + text-overflow: ellipsis; + padding-top: 2px; + padding-bottom: 2px; +} +#vg-tooltip-element table tr td.key { + color: #808080; + max-width: 150px; + text-align: right; + padding-right: 4px; +} +#vg-tooltip-element table tr td.value { + display: block; + max-width: 300px; + max-height: 7em; + text-align: left; +} +#vg-tooltip-element.dark-theme { + background-color: rgba(32, 32, 32, 0.9); + border: 1px solid #f5f5f5; + color: white; +} +#vg-tooltip-element.dark-theme td.key { + color: #bfbfbf; +} +`,g9="vg-tooltip-element",Wae={offsetX:10,offsetY:10,id:g9,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:Gae,maxDepth:2,formatTooltip:jae,baseURL:"",anchor:"cursor",position:["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]};function Gae(e){return String(e).replace(/&/g,"&").replace(/=0&&e.y>=0&&e.x+t.width<=window.innerWidth&&e.y+t.height<=window.innerHeight}function Yae(e,t,n){return e.clientX>=t.x&&e.clientX<=t.x+n.width&&e.clientY>=t.y&&e.clientY<=t.y+n.height}var Jae=class{constructor(e){N(this,"call");N(this,"options");N(this,"el");this.options={...Wae,...e};let t=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){let n=document.createElement("style");n.setAttribute("id",this.options.styleId),n.innerHTML=Hae(t);let r=document.head;r.childNodes.length>0?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)}}tooltipHandler(e,t,n,r){if(this.el=document.getElementById(this.options.id),this.el||(this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip"),(document.fullscreenElement??document.body).appendChild(this.el)),r==null||r===""){this.el.classList.remove("visible",`${this.options.theme}-theme`);return}this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth,this.options.baseURL),this.el.classList.add("visible",`${this.options.theme}-theme`);let{x:i,y:a}=this.options.anchor==="mark"?Vae(e,t,n,this.el.getBoundingClientRect(),this.options):y9(t,this.el.getBoundingClientRect(),this.options);this.el.style.top=`${a}px`,this.el.style.left=`${i}px`}};Iae.version;var Qae=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Kae=Object.prototype.hasOwnProperty;function Dx(e,t){return Kae.call(e,t)}function Fx(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function Oo(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function x9(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function $x(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t0&&l[u-1]=="constructor"))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&f===void 0&&(s[d]===void 0?f=l.slice(0,u).join("/"):u==c-1&&(f=t.path),f!==void 0&&h(t,0,e,f)),u++,Array.isArray(s)){if(d==="-")d=s.length;else{if(n&&!Cx(d))throw new tt("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);Cx(d)&&(d=~~d)}if(u>=c){if(n&&t.op==="add"&&d>s.length)throw new tt("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var o=eoe[t.op].call(t,s,d,e);if(o.test===!1)throw new tt("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}}else if(u>=c){var o=Yl[t.op].call(t,s,d,e);if(o.test===!1)throw new tt("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}if(s=s[d],n&&u0)throw new tt('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new tt("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new tt("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&$x(e.value))throw new tt("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var i=e.path.split("/").length,a=r.split("/").length;if(i!==a+1&&i!==a)throw new tt("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new tt("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var o=E9([{op:"_get",path:e.from,value:void 0}],n);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new tt("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new tt("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function E9(e,t,n){try{if(!Array.isArray(e))throw new tt("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)dp(On(t),On(e),n||!0);else{n||(n=hp);for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function Ox(e,t,n,r,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=Fx(t),o=Fx(e),l=!1,s=o.length-1;s>=0;s--){var u=o[s],c=e[u];if(Dx(t,u)&&!(t[u]===void 0&&c!==void 0&&Array.isArray(t)===!1)){var f=t[u];typeof c=="object"&&c&&typeof f=="object"&&f&&Array.isArray(c)===Array.isArray(f)?Ox(c,f,n,r+"/"+Oo(u),i):c!==f&&(i&&n.push({op:"test",path:r+"/"+Oo(u),value:On(c)}),n.push({op:"replace",path:r+"/"+Oo(u),value:On(f)}))}else Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+Oo(u),value:On(c)}),n.push({op:"remove",path:r+"/"+Oo(u)}),l=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!l&&a.length==o.length))for(var s=0;s=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(n,r)}return this}}return Bx=e,Bx}var zx,_9;function Nx(){if(_9)return zx;_9=1;let e=Object.freeze({loose:!0}),t=Object.freeze({});return zx=n=>n?typeof n=="object"?n:e:t,zx}var pp={exports:{}},Rx,D9;function Tx(){return D9||(D9=1,Rx={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}),Rx}var Lx,F9;function mp(){return F9||(F9=1,Lx=typeof process=="object"&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),Lx}var C9;function Px(){return C9||(C9=1,(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Tx(),a=mp();t=e.exports={};let o=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={},f=0,d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[d,r]],p=g=>{for(let[y,v]of h)g=g.split(`${y}*`).join(`${y}{0,${v}}`).split(`${y}+`).join(`${y}{1,${v}}`);return g},m=(g,y,v)=>{let b=p(y),w=f++;a(g,w,y),c[g]=w,s[w]=y,u[w]=b,o[w]=new RegExp(y,v?"g":void 0),l[w]=new RegExp(b,v?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),m("FULL",`^${s[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),m("LOOSE",`^${s[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),m("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",s[c.COERCE],!0),m("COERCERTLFULL",s[c.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(pp,pp.exports)),pp.exports}var Ix,$9;function poe(){if($9)return Ix;$9=1;let e=/^[0-9]+$/,t=(n,r)=>{let i=e.test(n),a=e.test(r);return i&&a&&(n=+n,r=+r),n===r?0:i&&!a?-1:a&&!i?1:nt(r,n)},Ix}var jx,S9;function qx(){if(S9)return jx;S9=1;let e=mp(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Tx(),{safeRe:r,t:i}=Px(),a=Nx(),{compareIdentifiers:o}=poe();class l{constructor(u,c){if(c=a(c),u instanceof l){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let f=u.trim().match(c.loose?r[i.LOOSE]:r[i.FULL]);if(!f)throw TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>n||this.major<0)throw TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(d=>{if(/^[0-9]+$/.test(d)){let h=+d;if(h>=0&&h=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(c===this.prerelease.join(".")&&f===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(d)}}if(c){let h=[c,d];f===!1&&(h=[c]),o(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return jx=l,jx}var Ux,M9;function Jl(){if(M9)return Ux;M9=1;let e=qx();return Ux=(t,n,r)=>new e(t,r).compare(new e(n,r)),Ux}var Wx,O9;function moe(){if(O9)return Wx;O9=1;let e=Jl();return Wx=(t,n,r)=>e(t,n,r)===0,Wx}var Gx,B9;function goe(){if(B9)return Gx;B9=1;let e=Jl();return Gx=(t,n,r)=>e(t,n,r)!==0,Gx}var Hx,z9;function yoe(){if(z9)return Hx;z9=1;let e=Jl();return Hx=(t,n,r)=>e(t,n,r)>0,Hx}var Vx,N9;function voe(){if(N9)return Vx;N9=1;let e=Jl();return Vx=(t,n,r)=>e(t,n,r)>=0,Vx}var Xx,R9;function boe(){if(R9)return Xx;R9=1;let e=Jl();return Xx=(t,n,r)=>e(t,n,r)<0,Xx}var Yx,T9;function xoe(){if(T9)return Yx;T9=1;let e=Jl();return Yx=(t,n,r)=>e(t,n,r)<=0,Yx}var Jx,L9;function woe(){if(L9)return Jx;L9=1;let e=moe(),t=goe(),n=yoe(),r=voe(),i=boe(),a=xoe();return Jx=(o,l,s,u)=>{switch(l){case"===":return typeof o=="object"&&(o=o.version),typeof s=="object"&&(s=s.version),o===s;case"!==":return typeof o=="object"&&(o=o.version),typeof s=="object"&&(s=s.version),o!==s;case"":case"=":case"==":return e(o,s,u);case"!=":return t(o,s,u);case">":return n(o,s,u);case">=":return r(o,s,u);case"<":return i(o,s,u);case"<=":return a(o,s,u);default:throw TypeError(`Invalid operator: ${l}`)}},Jx}var Qx,P9;function Aoe(){if(P9)return Qx;P9=1;let e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,f){if(f=n(f),c instanceof t){if(c.loose===!!f.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,f),this.options=f,this.loose=!!f.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){let f=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],d=c.match(f);if(!d)throw TypeError(`Invalid comparator: ${c}`);this.operator=d[1]===void 0?"":d[1],this.operator==="="&&(this.operator=""),d[2]?this.semver=new l(d[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new l(c,this.options)}catch{return!1}return a(c,this.operator,this.semver,this.options)}intersects(c,f){if(!(c instanceof t))throw TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,f).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,f).test(c.semver):(f=n(f),f.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||a(this.semver,"<",c.semver,f)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||a(this.semver,">",c.semver,f)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Qx=t;let n=Nx(),{safeRe:r,t:i}=Px(),a=woe(),o=mp(),l=qx(),s=j9();return Qx}var Kx,I9;function j9(){if(I9)return Kx;I9=1;let e=/\s+/g;class t{constructor(M,D){if(D=r(D),M instanceof t)return M.loose===!!D.loose&&M.includePrerelease===!!D.includePrerelease?M:new t(M.raw,D);if(M instanceof i)return this.raw=M.value,this.set=[[M]],this.formatted=void 0,this;if(this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease,this.raw=M.trim().replace(e," "),this.set=this.raw.split("||").map(S=>this.parseRange(S.trim())).filter(S=>S.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let S=this.set[0];if(this.set=this.set.filter(L=>!p(L[0])),this.set.length===0)this.set=[S];else if(this.set.length>1){for(let L of this.set)if(L.length===1&&m(L[0])){this.set=[L];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let M=0;M0&&(this.formatted+="||");let D=this.set[M];for(let S=0;S0&&(this.formatted+=" "),this.formatted+=D[S].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(M){let D=((this.options.includePrerelease&&d)|(this.options.loose&&h))+":"+M,S=n.get(D);if(S)return S;let L=this.options.loose,W=L?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];M=M.replace(W,$(this.options.includePrerelease)),a("hyphen replace",M),M=M.replace(l[s.COMPARATORTRIM],u),a("comparator trim",M),M=M.replace(l[s.TILDETRIM],c),a("tilde trim",M),M=M.replace(l[s.CARETTRIM],f),a("caret trim",M);let H=M.split(" ").map(be=>y(be,this.options)).join(" ").split(/\s+/).map(be=>F(be,this.options));L&&(H=H.filter(be=>(a("loose invalid filter",be,this.options),!!be.match(l[s.COMPARATORLOOSE])))),a("range list",H);let ae=new Map,fe=H.map(be=>new i(be,this.options));for(let be of fe){if(p(be))return[be];ae.set(be.value,be)}ae.size>1&&ae.has("")&&ae.delete("");let Fe=[...ae.values()];return n.set(D,Fe),Fe}intersects(M,D){if(!(M instanceof t))throw TypeError("a Range is required");return this.set.some(S=>g(S,D)&&M.set.some(L=>g(L,D)&&S.every(W=>L.every(H=>W.intersects(H,D)))))}test(M){if(!M)return!1;if(typeof M=="string")try{M=new o(M,this.options)}catch{return!1}for(let D=0;DC.value==="<0.0.0-0",m=C=>C.value==="",g=(C,M)=>{let D=!0,S=C.slice(),L=S.pop();for(;D&&S.length;)D=S.every(W=>L.intersects(W,M)),L=S.pop();return D},y=(C,M)=>(a("comp",C,M),C=A(C,M),a("caret",C),C=b(C,M),a("tildes",C),C=x(C,M),a("xrange",C),C=_(C,M),a("stars",C),C),v=C=>!C||C.toLowerCase()==="x"||C==="*",b=(C,M)=>C.trim().split(/\s+/).map(D=>w(D,M)).join(" "),w=(C,M)=>{let D=M.loose?l[s.TILDELOOSE]:l[s.TILDE];return C.replace(D,(S,L,W,H,ae)=>{a("tilde",C,S,L,W,H,ae);let fe;return v(L)?fe="":v(W)?fe=`>=${L}.0.0 <${+L+1}.0.0-0`:v(H)?fe=`>=${L}.${W}.0 <${L}.${+W+1}.0-0`:ae?(a("replaceTilde pr",ae),fe=`>=${L}.${W}.${H}-${ae} <${L}.${+W+1}.0-0`):fe=`>=${L}.${W}.${H} <${L}.${+W+1}.0-0`,a("tilde return",fe),fe})},A=(C,M)=>C.trim().split(/\s+/).map(D=>E(D,M)).join(" "),E=(C,M)=>{a("caret",C,M);let D=M.loose?l[s.CARETLOOSE]:l[s.CARET],S=M.includePrerelease?"-0":"";return C.replace(D,(L,W,H,ae,fe)=>{a("caret",C,L,W,H,ae,fe);let Fe;return v(W)?Fe="":v(H)?Fe=`>=${W}.0.0${S} <${+W+1}.0.0-0`:v(ae)?Fe=W==="0"?`>=${W}.${H}.0${S} <${W}.${+H+1}.0-0`:`>=${W}.${H}.0${S} <${+W+1}.0.0-0`:fe?(a("replaceCaret pr",fe),Fe=W==="0"?H==="0"?`>=${W}.${H}.${ae}-${fe} <${W}.${H}.${+ae+1}-0`:`>=${W}.${H}.${ae}-${fe} <${W}.${+H+1}.0-0`:`>=${W}.${H}.${ae}-${fe} <${+W+1}.0.0-0`):(a("no pr"),Fe=W==="0"?H==="0"?`>=${W}.${H}.${ae}${S} <${W}.${H}.${+ae+1}-0`:`>=${W}.${H}.${ae}${S} <${W}.${+H+1}.0-0`:`>=${W}.${H}.${ae} <${+W+1}.0.0-0`),a("caret return",Fe),Fe})},x=(C,M)=>(a("replaceXRanges",C,M),C.split(/\s+/).map(D=>k(D,M)).join(" ")),k=(C,M)=>{C=C.trim();let D=M.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return C.replace(D,(S,L,W,H,ae,fe)=>{a("xRange",C,S,L,W,H,ae,fe);let Fe=v(W),be=Fe||v(H),ln=be||v(ae),Pt=ln;return L==="="&&Pt&&(L=""),fe=M.includePrerelease?"-0":"",Fe?S=L===">"||L==="<"?"<0.0.0-0":"*":L&&Pt?(be&&(H=0),ae=0,L===">"?(L=">=",be?(W=+W+1,H=0,ae=0):(H=+H+1,ae=0)):L==="<="&&(L="<",be?W=+W+1:H=+H+1),L==="<"&&(fe="-0"),S=`${L+W}.${H}.${ae}${fe}`):be?S=`>=${W}.0.0${fe} <${+W+1}.0.0-0`:ln&&(S=`>=${W}.${H}.0${fe} <${W}.${+H+1}.0-0`),a("xRange return",S),S})},_=(C,M)=>(a("replaceStars",C,M),C.trim().replace(l[s.STAR],"")),F=(C,M)=>(a("replaceGTE0",C,M),C.trim().replace(l[M.includePrerelease?s.GTE0PRE:s.GTE0],"")),$=C=>(M,D,S,L,W,H,ae,fe,Fe,be,ln,Pt)=>(D=v(S)?"":v(L)?`>=${S}.0.0${C?"-0":""}`:v(W)?`>=${S}.${L}.0${C?"-0":""}`:H?`>=${D}`:`>=${D}${C?"-0":""}`,fe=v(Fe)?"":v(be)?`<${+Fe+1}.0.0-0`:v(ln)?`<${Fe}.${+be+1}.0-0`:Pt?`<=${Fe}.${be}.${ln}-${Pt}`:C?`<${Fe}.${be}.${+ln+1}-0`:`<=${fe}`,`${D} ${fe}`.trim()),R=(C,M,D)=>{for(let S=0;S0){let L=C[S].semver;if(L.major===M.major&&L.minor===M.minor&&L.patch===M.patch)return!0}return!1}return!0};return Kx}var Zx,q9;function Eoe(){if(q9)return Zx;q9=1;let e=j9();return Zx=(t,n,r)=>{try{n=new e(n,r)}catch{return!1}return n.test(t)},Zx}var U9=doe(Eoe());function koe(e,t,n){let r=e.open(t),{origin:i}=new URL(t),a=40;function o(s){s.source===r&&(a=0,e.removeEventListener("message",o,!1))}e.addEventListener("message",o,!1);function l(){a<=0||(r.postMessage(n,i),setTimeout(l,250),--a)}setTimeout(l,250)}var _oe=`.vega-embed { + position: relative; + display: inline-block; + box-sizing: border-box; +} +.vega-embed.has-actions { + padding-right: 38px; +} +.vega-embed details:not([open]) > :not(summary) { + display: none !important; +} +.vega-embed summary { + list-style: none; + position: absolute; + top: 0; + right: 0; + padding: 6px; + z-index: 1000; + background: white; + box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); + color: #1b1e23; + border: 1px solid #aaa; + border-radius: 999px; + opacity: 0.2; + transition: opacity 0.4s ease-in; + cursor: pointer; + line-height: 0px; +} +.vega-embed summary::-webkit-details-marker { + display: none; +} +.vega-embed summary:active { + box-shadow: #aaa 0px 0px 0px 1px inset; +} +.vega-embed summary svg { + width: 14px; + height: 14px; +} +.vega-embed details[open] summary { + opacity: 0.7; +} +.vega-embed:hover summary, .vega-embed:focus-within summary { + opacity: 1 !important; + transition: opacity 0.2s ease; +} +.vega-embed .vega-actions { + position: absolute; + z-index: 1001; + top: 35px; + right: -9px; + display: flex; + flex-direction: column; + padding-bottom: 8px; + padding-top: 8px; + border-radius: 4px; + box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2); + border: 1px solid #d9d9d9; + background: white; + animation-duration: 0.15s; + animation-name: scale-in; + animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5); + text-align: left; +} +.vega-embed .vega-actions a { + padding: 8px 16px; + font-family: sans-serif; + font-size: 14px; + font-weight: 600; + white-space: nowrap; + color: #434a56; + text-decoration: none; +} +.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus { + background-color: #f7f7f9; + color: black; +} +.vega-embed .vega-actions::before, .vega-embed .vega-actions::after { + content: ""; + display: inline-block; + position: absolute; +} +.vega-embed .vega-actions::before { + left: auto; + right: 14px; + top: -16px; + border: 8px solid rgba(0, 0, 0, 0); + border-bottom-color: #d9d9d9; +} +.vega-embed .vega-actions::after { + left: auto; + right: 15px; + top: -14px; + border: 7px solid rgba(0, 0, 0, 0); + border-bottom-color: #fff; +} +.vega-embed .chart-wrapper.fit-x { + width: 100%; +} +.vega-embed .chart-wrapper.fit-y { + height: 100%; +} + +.vega-embed-wrapper { + max-width: 100%; + overflow: auto; + padding-right: 14px; +} + +@keyframes scale-in { + from { + opacity: 0; + transform: scale(0.6); + } + to { + opacity: 1; + transform: scale(1); + } +} +`;function W9(e,...t){for(let n of t)Doe(e,n);return e}function Doe(e,t){for(let n of Object.keys(t))q2(e,n,t[n],!0)}var ei=aY,rc=NJ,gp=typeof window<"u"?window:void 0;rc===void 0&&((e4=gp==null?void 0:gp.vl)!=null&&e4.compile)&&(rc=gp.vl);var Foe={export:{svg:!0,png:!0},source:!0,compiled:!0,editor:!0},Coe={CLICK_TO_VIEW_ACTIONS:"Click to view actions",COMPILED_ACTION:"View Compiled Vega",EDITOR_ACTION:"Open in Vega Editor",PNG_ACTION:"Save as PNG",SOURCE_ACTION:"View Source",SVG_ACTION:"Save as SVG"},ic={vega:"Vega","vega-lite":"Vega-Lite"},yp={vega:ei.version,"vega-lite":rc?rc.version:"not available"},$oe={vega:e=>e,"vega-lite":(e,t,n)=>rc.compile(e,{config:n,logger:t}).spec},Soe=` + + + + +`,Moe="chart-wrapper";function Ooe(e){return typeof e=="function"}function G9(e,t,n,r){let i=`${t}
`,a=`
${n}`,o=window.open("");o.document.write(i+e+a),o.document.title=`${ic[r]} JSON Source`}function Boe(e,t,n){if(e.$schema){let r=J8(e.$schema);n&&n!==r.library&&t.warn(`The given visualization spec is written in ${ic[r.library]}, but mode argument sets ${ic[n]??n}.`);let i=r.library;return U9(yp[i],`^${r.version.slice(1)}`)||t.warn(`The input spec uses ${ic[i]} ${r.version}, but the current version of ${ic[i]} is v${yp[i]}.`),i}return"mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e?"vega-lite":"marks"in e||"signals"in e||"scales"in e||"axes"in e?"vega":n??"vega"}function H9(e){return!!(e&&"load"in e)}function V9(e){return H9(e)?e:ei.loader(e)}function zoe(e){var n;let t=((n=e.usermeta)==null?void 0:n.embedOptions)??{};return Ee(t.defaultStyle)&&(t.defaultStyle=!1),t}async function Noe(e,t,n={}){let r,i;Ee(t)?(i=V9(n.loader),r=JSON.parse(await i.load(t))):r=t;let a=zoe(r),o=a.loader;(!i||o)&&(i=V9(n.loader??o));let l=await X9(a,i),s=await X9(n,i),u={...W9(s,l),config:lc(s.config??{},l.config??{})};return await Toe(e,r,u,i)}async function X9(e,t){let n=Ee(e.config)?JSON.parse(await t.load(e.config)):e.config??{},r=Ee(e.patch)?JSON.parse(await t.load(e.patch)):e.patch;return{...e,...r?{patch:r}:{},...n?{config:n}:{}}}function Roe(e){let t=e.getRootNode?e.getRootNode():document;return t instanceof ShadowRoot?{root:t,rootContainer:t}:{root:document,rootContainer:document.head??document.body}}async function Toe(e,t,n={},r){let i=n.theme?lc(rae[n.theme],n.config??{}):n.config,a=Bp(n.actions)?n.actions:W9({},Foe,n.actions??{}),o={...Coe,...n.i18n},l=n.renderer??"svg",s=n.logger??Cp(ei.Warn);n.logLevel!==void 0&&s.level(n.logLevel);let u=n.downloadFileName??"visualization",c=typeof e=="string"?document.querySelector(e):e;if(!c)throw Error(`${e} does not exist`);if(n.defaultStyle!==!1){let A="vega-embed-style",{root:E,rootContainer:x}=Roe(c);if(!E.getElementById(A)){let k=document.createElement("style");k.id=A,k.innerHTML=n.defaultStyle===void 0||n.defaultStyle===!0?_oe.toString():n.defaultStyle,x.appendChild(k)}}let f=Boe(t,s,n.mode),d=$oe[f](t,s,i);if(f==="vega-lite"&&d.$schema){let A=J8(d.$schema);U9(yp.vega,`^${A.version.slice(1)}`)||s.warn(`The compiled spec uses Vega ${A.version}, but current version is v${yp.vega}.`)}c.classList.add("vega-embed"),a&&c.classList.add("has-actions"),c.innerHTML="";let h=c;if(a){let A=document.createElement("div");A.classList.add(Moe),c.appendChild(A),h=A}let p=n.patch;if(p&&(d=p instanceof Function?p(d):dp(d,p,!0,!1).newDocument),n.formatLocale&&ei.formatLocale(n.formatLocale),n.timeFormatLocale&&ei.timeFormatLocale(n.timeFormatLocale),n.expressionFunctions)for(let A in n.expressionFunctions){let E=n.expressionFunctions[A];"fn"in E?ei.expressionFunction(A,E.fn,E.visitor):E instanceof Function&&ei.expressionFunction(A,E)}let{ast:m}=n,g=ei.parse(d,f==="vega-lite"?{}:i,{ast:m}),y=new(n.viewClass||ei.View)(g,{loader:r,logger:s,renderer:l,...m?{expr:ei.expressionInterpreter??n.expr??gY}:{}});if(y.addSignalListener("autosize",(A,E)=>{let{type:x}=E;x=="fit-x"?(h.classList.add("fit-x"),h.classList.remove("fit-y")):x=="fit-y"?(h.classList.remove("fit-x"),h.classList.add("fit-y")):x=="fit"?h.classList.add("fit-x","fit-y"):h.classList.remove("fit-x","fit-y")}),n.tooltip!==!1){let{loader:A,tooltip:E}=n,x=A&&!H9(A)?A==null?void 0:A.baseURL:void 0,k=Ooe(E)?E:new Jae({baseURL:x,...E===!0?{}:E}).call;y.tooltip(k)}let{hover:v}=n;if(v===void 0&&(v=f==="vega"),v){let{hoverSet:A,updateSet:E}=typeof v=="boolean"?{}:v;y.hover(A,E)}n&&(n.width!=null&&y.width(n.width),n.height!=null&&y.height(n.height),n.padding!=null&&y.padding(n.padding)),await y.initialize(h,n.bind).runAsync();let b;if(a!==!1){let A=c;if(n.defaultStyle!==!1||n.forceActionsMenu){let x=document.createElement("details");x.title=o.CLICK_TO_VIEW_ACTIONS,c.append(x),A=x;let k=document.createElement("summary");k.innerHTML=Soe,x.append(k),b=_=>{x.contains(_.target)||x.removeAttribute("open")},document.addEventListener("click",b)}let E=document.createElement("div");if(A.append(E),E.classList.add("vega-actions"),a===!0||a.export!==!1){for(let x of["svg","png"])if(a===!0||a.export===!0||a.export[x]){let k=o[`${x.toUpperCase()}_ACTION`],_=document.createElement("a"),F=ue(n.scaleFactor)?n.scaleFactor[x]:n.scaleFactor;_.text=k,_.href="#",_.target="_blank",_.download=`${u}.${x}`,_.addEventListener("mousedown",async function($){$.preventDefault(),this.href=await y.toImageURL(x,F)}),E.append(_)}}if(a===!0||a.source!==!1){let x=document.createElement("a");x.text=o.SOURCE_ACTION,x.href="#",x.addEventListener("click",function(k){G9(Xp(t),n.sourceHeader??"",n.sourceFooter??"",f),k.preventDefault()}),E.append(x)}if(f==="vega-lite"&&(a===!0||a.compiled!==!1)){let x=document.createElement("a");x.text=o.COMPILED_ACTION,x.href="#",x.addEventListener("click",function(k){G9(Xp(d),n.sourceHeader??"",n.sourceFooter??"","vega"),k.preventDefault()}),E.append(x)}if(a===!0||a.editor!==!1){let x=n.editorUrl??"https://vega.github.io/editor/",k=document.createElement("a");k.text=o.EDITOR_ACTION,k.href="#",k.addEventListener("click",function(_){koe(window,x,{config:i,mode:p?"vega":f,renderer:l,spec:Xp(p?d:t)}),_.preventDefault()}),E.append(k)}}function w(){b&&document.removeEventListener("click",b),y.finalize()}return{view:y,spec:t,vgSpec:d,finalize:w,embedOptions:n}}var Loe=m2(C4(),1),zo=m2(F4(),1);function Poe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y9,J9;function Ioe(){return J9||(J9=1,Y9=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),Y9}var joe=Poe(Ioe());function Q9(e){let[t,n]=zo.useState(null),{ref:r,spec:i,onEmbed:a,onError:o,options:l={}}=e;return qoe(()=>{let s=!1,u=null;return(async()=>{if(!(!r.current||s))try{if(u=await Noe(r.current,i,l),s){u.finalize();return}n(u),a==null||a(u)}catch(c){console.error(`[react-vega] Error creating view: ${c}`),o==null||o(c)}})(),()=>{s=!0,u==null||u.finalize()}},[i,l]),t}function qoe(e,t){let n=zo.useRef(null),r=zo.useRef(0);(!n.current||!joe(t,n.current))&&(r.current+=1),n.current=t,zo.useEffect(e,[r.current])}var K9=zo.forwardRef((e,t)=>{let{spec:n,options:r,onEmbed:i,onError:a,...o}=e,l=zo.useRef(null);return zo.useImperativeHandle(t,()=>{if(!l.current)throw Error("VegaEmbed: ref is not attached to a div element");return l.current},[]),Q9({ref:l,spec:n,onEmbed:i,onError:a,options:r}),(0,Loe.jsx)("div",{ref:l,...o})});K9.displayName="VegaEmbed";export{he as i,K9 as n,Y8 as r,Q9 as t}; diff --git a/docs/assets/react-vega-DdONPC3a.js b/docs/assets/react-vega-DdONPC3a.js new file mode 100644 index 0000000..34a7ba3 --- /dev/null +++ b/docs/assets/react-vega-DdONPC3a.js @@ -0,0 +1 @@ +import"./react-BGmjiNul.js";import"./jsx-runtime-DN_bIXfG.js";import"./vega-loader.browser-C8wT63Va.js";import{n as m,t as o}from"./react-vega-CI0fuCLO.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";export{m as VegaEmbed,o as useVegaEmbed}; diff --git a/docs/assets/readonly-python-code-Dr5fAkba.js b/docs/assets/readonly-python-code-Dr5fAkba.js new file mode 100644 index 0000000..1c472b8 --- /dev/null +++ b/docs/assets/readonly-python-code-Dr5fAkba.js @@ -0,0 +1 @@ +import{s as A}from"./chunk-LvLJmgfZ.js";import{t as E}from"./react-BGmjiNul.js";import{Wn as F,kt as I}from"./cells-CmJW_FeD.js";import{t as L}from"./compiler-runtime-DeeZ7FnK.js";import{t as T}from"./jsx-runtime-DN_bIXfG.js";import{r as V,t as W}from"./button-B8cGZzP5.js";import{t as D}from"./cn-C1rgT0yh.js";import{at as M}from"./dist-CAcX026F.js";import{f as q}from"./dist-BuhT82Xx.js";import{t as G}from"./createLucideIcon-CW2xpJ57.js";import{t as J}from"./copy-gBVL4NN-.js";import{t as K}from"./eye-off-D9zAYqG9.js";import{t as Q}from"./plus-CHesBJpY.js";import{t as U}from"./use-toast-Bzf3rpev.js";import{r as X}from"./useTheme-BSVRc0kJ.js";import{t as g}from"./tooltip-CvjcEpZC.js";import{t as Y}from"./copy-DRhpWiOq.js";import{t as Z}from"./esm-D2_Kx6xF.js";import{t as $}from"./useAddCell-DveVmvs9.js";var tt=G("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),N=L(),O=A(E(),1),s=A(T(),1),ot=[I(),M.lineWrapping],et=[q(),M.lineWrapping];const R=(0,O.memo)(r=>{let t=(0,N.c)(41),{theme:a}=X(),o,e,i,l,c,C,j,u;t[0]===r?(o=t[1],e=t[2],i=t[3],l=t[4],c=t[5],C=t[6],j=t[7],u=t[8]):({code:e,className:o,initiallyHideCode:i,showHideCode:C,showCopyCode:j,insertNewCell:l,language:u,...c}=r,t[0]=r,t[1]=o,t[2]=e,t[3]=i,t[4]=l,t[5]=c,t[6]=C,t[7]=j,t[8]=u);let m=C===void 0?!0:C,b=j===void 0?!0:j,B=u===void 0?"python":u,[n,H]=(0,O.useState)(i),d;t[9]===o?d=t[10]:(d=D("relative hover-actions-parent w-full overflow-hidden",o),t[9]=o,t[10]=d);let p;t[11]!==n||t[12]!==m?(p=m&&n&&(0,s.jsx)(st,{tooltip:"Show code",onClick:()=>H(!1)}),t[11]=n,t[12]=m,t[13]=p):p=t[13];let h;t[14]!==e||t[15]!==b?(h=b&&(0,s.jsx)(rt,{text:e}),t[14]=e,t[15]=b,t[16]=h):h=t[16];let x;t[17]!==e||t[18]!==l?(x=l&&(0,s.jsx)(it,{code:e}),t[17]=e,t[18]=l,t[19]=x):x=t[19];let f;t[20]!==n||t[21]!==m?(f=m&&!n&&(0,s.jsx)(at,{onClick:()=>H(!0)}),t[20]=n,t[21]=m,t[22]=f):f=t[22];let y;t[23]!==h||t[24]!==x||t[25]!==f?(y=(0,s.jsxs)("div",{className:"absolute top-0 right-0 my-1 mx-2 z-10 hover-action flex gap-2",children:[h,x,f]}),t[23]=h,t[24]=x,t[25]=f,t[26]=y):y=t[26];let z=n&&"opacity-20 h-8 overflow-hidden",v;t[27]===z?v=t[28]:(v=D("cm",z),t[27]=z,t[28]=v);let _=a==="dark"?"dark":"light",S=!n,P=B==="python"?ot:et,k;t[29]!==e||t[30]!==c||t[31]!==v||t[32]!==_||t[33]!==S||t[34]!==P?(k=(0,s.jsx)(Z,{...c,className:v,theme:_,height:"100%",editable:S,extensions:P,value:e,readOnly:!0}),t[29]=e,t[30]=c,t[31]=v,t[32]=_,t[33]=S,t[34]=P,t[35]=k):k=t[35];let w;return t[36]!==k||t[37]!==d||t[38]!==p||t[39]!==y?(w=(0,s.jsxs)("div",{className:d,children:[p,y,k]}),t[36]=k,t[37]=d,t[38]=p,t[39]=y,t[40]=w):w=t[40],w});R.displayName="ReadonlyCode";var rt=r=>{let t=(0,N.c)(5),a;t[0]===r.text?a=t[1]:(a=V.stopPropagation(async()=>{await Y(r.text),U({title:"Copied to clipboard"})}),t[0]=r.text,t[1]=a);let o=a,e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(J,{size:14,strokeWidth:1.5}),t[2]=e):e=t[2];let i;return t[3]===o?i=t[4]:(i=(0,s.jsx)(g,{content:"Copy code",usePortal:!1,children:(0,s.jsx)(W,{onClick:o,size:"xs",className:"py-0",variant:"secondary",children:e})}),t[3]=o,t[4]=i),i},at=r=>{let t=(0,N.c)(3),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(K,{size:14,strokeWidth:1.5}),t[0]=a):a=t[0];let o;return t[1]===r.onClick?o=t[2]:(o=(0,s.jsx)(g,{content:"Hide code",usePortal:!1,children:(0,s.jsx)(W,{onClick:r.onClick,size:"xs",className:"py-0",variant:"secondary",children:a})}),t[1]=r.onClick,t[2]=o),o};const st=r=>{let t=(0,N.c)(7),a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(F,{className:"hover-action w-5 h-5 text-muted-foreground cursor-pointer absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 opacity-80 hover:opacity-100 z-20"}),t[0]=a):a=t[0];let o;t[1]===r.tooltip?o=t[2]:(o=(0,s.jsx)(g,{usePortal:!1,content:r.tooltip,children:a}),t[1]=r.tooltip,t[2]=o);let e;return t[3]!==r.className||t[4]!==r.onClick||t[5]!==o?(e=(0,s.jsx)("div",{className:r.className,onClick:r.onClick,children:o}),t[3]=r.className,t[4]=r.onClick,t[5]=o,t[6]=e):e=t[6],e};var it=r=>{let t=(0,N.c)(6),a=$(),o;t[0]!==a||t[1]!==r.code?(o=()=>{a(r.code)},t[0]=a,t[1]=r.code,t[2]=o):o=t[2];let e=o,i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Q,{size:14,strokeWidth:1.5}),t[3]=i):i=t[3];let l;return t[4]===e?l=t[5]:(l=(0,s.jsx)(g,{content:"Add code to notebook",usePortal:!1,children:(0,s.jsx)(W,{onClick:e,size:"xs",className:"py-0",variant:"secondary",children:i})}),t[4]=e,t[5]=l),l};export{tt as n,R as t}; diff --git a/docs/assets/red-C-5Yz_5N.js b/docs/assets/red-C-5Yz_5N.js new file mode 100644 index 0000000..57d3e53 --- /dev/null +++ b/docs/assets/red-C-5Yz_5N.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#580000","badge.background":"#cc3333","button.background":"#833","debugToolBar.background":"#660000","dropdown.background":"#580000","editor.background":"#390000","editor.foreground":"#F8F8F8","editor.hoverHighlightBackground":"#ff000044","editor.lineHighlightBackground":"#ff000033","editor.selectionBackground":"#750000","editor.selectionHighlightBackground":"#f5500039","editorCursor.foreground":"#970000","editorGroup.border":"#ff666633","editorGroupHeader.tabsBackground":"#330000","editorHoverWidget.background":"#300000","editorLineNumber.activeForeground":"#ffbbbb88","editorLineNumber.foreground":"#ff777788","editorLink.activeForeground":"#FFD0AA","editorSuggestWidget.background":"#300000","editorSuggestWidget.border":"#220000","editorWhitespace.foreground":"#c10000","editorWidget.background":"#300000","errorForeground":"#ffeaea","extensionButton.prominentBackground":"#cc3333","extensionButton.prominentHoverBackground":"#cc333388","focusBorder":"#ff6666aa","input.background":"#580000","inputOption.activeBorder":"#cc0000","inputValidation.infoBackground":"#550000","inputValidation.infoBorder":"#DB7E58","list.activeSelectionBackground":"#880000","list.dropBackground":"#662222","list.highlightForeground":"#ff4444","list.hoverBackground":"#800000","list.inactiveSelectionBackground":"#770000","minimap.selectionHighlight":"#750000","peekView.border":"#ff000044","peekViewEditor.background":"#300000","peekViewResult.background":"#400000","peekViewTitle.background":"#550000","pickerGroup.border":"#ff000033","pickerGroup.foreground":"#cc9999","ports.iconRunningProcessForeground":"#DB7E58","progressBar.background":"#cc3333","quickInputList.focusBackground":"#660000","selection.background":"#ff777788","sideBar.background":"#330000","statusBar.background":"#700000","statusBar.noFolderBackground":"#700000","statusBarItem.remoteBackground":"#c33","tab.activeBackground":"#490000","tab.inactiveBackground":"#300a0a","tab.lastPinnedBorder":"#ff000044","titleBar.activeBackground":"#770000","titleBar.inactiveBackground":"#772222"},"displayName":"Red","name":"red","semanticHighlighting":true,"tokenColors":[{"settings":{"foreground":"#F8F8F8"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#F8F8F8"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#e7c0c0ff"}},{"scope":"constant","settings":{"fontStyle":"","foreground":"#994646ff"}},{"scope":"keyword","settings":{"fontStyle":"","foreground":"#f12727ff"}},{"scope":"entity","settings":{"fontStyle":"","foreground":"#fec758ff"}},{"scope":"storage","settings":{"fontStyle":"bold","foreground":"#ff6262ff"}},{"scope":"string","settings":{"fontStyle":"","foreground":"#cd8d8dff"}},{"scope":"support","settings":{"fontStyle":"","foreground":"#9df39fff"}},{"scope":"variable","settings":{"fontStyle":"italic","foreground":"#fb9a4bff"}},{"scope":"invalid","settings":{"foreground":"#ffffffff"}},{"scope":["entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"fontStyle":"underline","foreground":"#aa5507ff"}},{"scope":"constant.character","settings":{"foreground":"#ec0d1e"}},{"scope":["string constant","constant.character.escape"],"settings":{"fontStyle":"","foreground":"#ffe862ff"}},{"scope":"string.regexp","settings":{"foreground":"#ffb454ff"}},{"scope":"string variable","settings":{"foreground":"#edef7dff"}},{"scope":"support.function","settings":{"fontStyle":"","foreground":"#ffb454ff"}},{"scope":["support.constant","support.variable"],"settings":{"fontStyle":"","foreground":"#eb939aff"}},{"scope":["declaration.sgml.html declaration.doctype","declaration.sgml.html declaration.doctype entity","declaration.sgml.html declaration.doctype string","declaration.xml-processing","declaration.xml-processing entity","declaration.xml-processing string"],"settings":{"fontStyle":"","foreground":"#73817dff"}},{"scope":["declaration.tag","declaration.tag entity","meta.tag","meta.tag entity"],"settings":{"fontStyle":"","foreground":"#ec0d1eff"}},{"scope":"meta.selector.css entity.name.tag","settings":{"fontStyle":"","foreground":"#aa5507ff"}},{"scope":"meta.selector.css entity.other.attribute-name.id","settings":{"foreground":"#fec758ff"}},{"scope":"meta.selector.css entity.other.attribute-name.class","settings":{"fontStyle":"","foreground":"#41a83eff"}},{"scope":"support.type.property-name.css","settings":{"fontStyle":"","foreground":"#96dd3bff"}},{"scope":["meta.property-group support.constant.property-value.css","meta.property-value support.constant.property-value.css"],"settings":{"fontStyle":"italic","foreground":"#ffe862ff"}},{"scope":["meta.property-value support.constant.named-color.css","meta.property-value constant"],"settings":{"fontStyle":"","foreground":"#ffe862ff"}},{"scope":"meta.preprocessor.at-rule keyword.control.at-rule","settings":{"foreground":"#fd6209ff"}},{"scope":"meta.constructor.argument.css","settings":{"fontStyle":"","foreground":"#ec9799ff"}},{"scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#f8f8f8ff"}},{"scope":"markup.deleted","settings":{"foreground":"#ec9799ff"}},{"scope":"markup.changed","settings":{"foreground":"#f8f8f8ff"}},{"scope":"markup.inserted","settings":{"foreground":"#41a83eff"}},{"scope":"markup.quote","settings":{"foreground":"#f12727ff"}},{"scope":"markup.list","settings":{"foreground":"#ff6262ff"}},{"scope":["markup.bold","markup.italic"],"settings":{"foreground":"#fb9a4bff"}},{"scope":"markup.bold","settings":{"fontStyle":"bold"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#cd8d8dff"}},{"scope":["markup.heading","markup.heading.setext","punctuation.definition.heading","entity.name.section"],"settings":{"fontStyle":"bold","foreground":"#fec758ff"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded",".format.placeholder"],"settings":{"foreground":"#ec0d1e"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/reduce-NgiHP_CR.js b/docs/assets/reduce-NgiHP_CR.js new file mode 100644 index 0000000..fda78c5 --- /dev/null +++ b/docs/assets/reduce-NgiHP_CR.js @@ -0,0 +1 @@ +import{S as f}from"./_Uint8Array-BGESiCQL.js";import{n as e}from"./_baseFor-Duhs3RiJ.js";import{l}from"./_baseIsEqual-Cz9Tt_-E.js";import{t as g}from"./_arrayReduce-bZBYsK-u.js";import{r as s,t as i}from"./_baseEach-BH6a1vAB.js";function h(r,t){for(var n=-1,a=r==null?0:r.length;++n)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#regexp-expression"}]},"regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#regexp-expression"}]},"regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#regexp-expression"}]},"regexp-quantifier":{"match":"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}","name":"keyword.operator.quantifier.regexp"}},"scopeName":"source.regexp.python","aliases":["regex"]}'))];export{e as t}; diff --git a/docs/assets/rel-De0JbHVV.js b/docs/assets/rel-De0JbHVV.js new file mode 100644 index 0000000..d9e4721 --- /dev/null +++ b/docs/assets/rel-De0JbHVV.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Rel","name":"rel","patterns":[{"include":"#strings"},{"include":"#comment"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#deprecated-temporary"},{"include":"#operators"},{"include":"#symbols"},{"include":"#keywords"},{"include":"#otherkeywords"},{"include":"#types"},{"include":"#constants"}],"repository":{"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.rel"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.rel"}},"name":"comment.block.documentation.rel","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.rel"},"2":{"name":"storage.type.internaldeclaration.rel"},"3":{"name":"punctuation.decorator.internaldeclaration.rel"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.rel"}},"name":"comment.block.rel"},{"begin":"doc\\"\\"\\"","end":"\\"\\"\\"","name":"comment.block.documentation.rel"},{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.rel"},"2":{"name":"comment.line.double-slash.rel"},"3":{"name":"punctuation.definition.comment.rel"},"4":{"name":"storage.type.internaldeclaration.rel"},"5":{"name":"punctuation.decorator.internaldeclaration.rel"}},"contentName":"comment.line.double-slash.rel","end":"(?=$)"}]},"constants":{"patterns":[{"match":"\\\\b((true|false))\\\\b","name":"constant.language.rel"}]},"deprecated-temporary":{"patterns":[{"match":"@inspect","name":"keyword.other.rel"}]},"keywords":{"patterns":[{"match":"\\\\b((def|entity|bound|include|ic|forall|exists|[\u2200\u2203]|return|module|^end))\\\\b|(((<)?\\\\|(>)?)|[\u2200\u2203])","name":"keyword.control.rel"}]},"operators":{"patterns":[{"match":"\\\\b((if|then|else|and|or|not|eq|neq|lt|lt_eq|gt|gt_eq))\\\\b|([-%*+/=^\xF7]|!=|[<\u2260]|<=|[>\u2264]|>=|[\\\\&\u2265])|\\\\s+(end)","name":"keyword.other.rel"}]},"otherkeywords":{"patterns":[{"match":"\\\\s*(@inline)\\\\s*|\\\\s*(@auto_number)\\\\s*|\\\\s*(function)\\\\s|\\\\b((implies|select|from|\u2208|where|for|in))\\\\b|(((<)?\\\\|(>)?)|\u2208)","name":"keyword.other.rel"}]},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.rel"},"2":{"name":"comment.line.double-slash.rel"},"3":{"name":"punctuation.definition.comment.rel"},"4":{"name":"storage.type.internaldeclaration.rel"},"5":{"name":"punctuation.decorator.internaldeclaration.rel"}},"contentName":"comment.line.double-slash.rel","end":"(?=^)"},"strings":{"begin":"\\"","end":"\\"","name":"string.quoted.double.rel","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.rel"}]},"symbols":{"patterns":[{"match":"(:[$\\\\[_[:alpha:]](]|[$_[:alnum:]]*))","name":"variable.parameter.rel"}]},"types":{"patterns":[{"match":"\\\\b((Symbol|Char|Bool|Rational|FixedDecimal|Float16|Float32|Float64|Int8|Int16|Int32|Int64|Int128|UInt8|UInt16|UInt32|UInt64|UInt128|Date|DateTime|Day|Week|Month|Year|Nanosecond|Microsecond|Millisecond|Second|Minute|Hour|FilePos|HashValue|AutoNumberValue))\\\\b","name":"entity.name.type.rel"}]}},"scopeName":"source.rel"}'))];export{e as default}; diff --git a/docs/assets/renderShortcut-BzTDKVab.js b/docs/assets/renderShortcut-BzTDKVab.js new file mode 100644 index 0000000..137d67d --- /dev/null +++ b/docs/assets/renderShortcut-BzTDKVab.js @@ -0,0 +1 @@ +import{s as g}from"./chunk-LvLJmgfZ.js";import{u as d}from"./useEvent-DlWF5OMa.js";import{t as A}from"./compiler-runtime-DeeZ7FnK.js";import{s as v,t as b}from"./hotkeys-uKX61F1_.js";import{p}from"./utils-Czt8B2GX.js";import{t as D}from"./jsx-runtime-DN_bIXfG.js";import{t as y}from"./cn-C1rgT0yh.js";import{l as S}from"./dropdown-menu-BP4_BZLr.js";import{t as h}from"./tooltip-CvjcEpZC.js";import{t as x}from"./kbd-Czc5z_04.js";var f=A(),m=g(D(),1);function _(o,e=!0){return(0,m.jsx)(E,{shortcut:o,includeName:e})}var E=o=>{let e=(0,f.c)(11),{shortcut:l,includeName:s}=o,t=s===void 0?!0:s,a=d(p),n;e[0]!==a||e[1]!==l?(n=a.getHotkey(l),e[0]=a,e[1]=l,e[2]=n):n=e[2];let r=n,c;e[3]!==r.name||e[4]!==t?(c=t&&(0,m.jsx)("span",{className:"mr-2",children:r.name}),e[3]=r.name,e[4]=t,e[5]=c):c=e[5];let i;e[6]===r.key?i=e[7]:(i=(0,m.jsx)(j,{shortcut:r.key}),e[6]=r.key,e[7]=i);let u;return e[8]!==c||e[9]!==i?(u=(0,m.jsxs)("span",{className:"inline-flex",children:[c,i]}),e[8]=c,e[9]=i,e[10]=u):u=e[10],u};const j=o=>{let e=(0,f.c)(10),{shortcut:l,className:s}=o;if(l===b||l===""){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,m.jsx)("span",{}),e[0]=r):r=e[0],r}let t,a;if(e[1]!==s||e[2]!==l){let r=l.split("-");e[5]===s?t=e[6]:(t=y("flex gap-1",s),e[5]=s,e[6]=t),a=r.map(k).map(L),e[1]=s,e[2]=l,e[3]=t,e[4]=a}else t=e[3],a=e[4];let n;return e[7]!==t||e[8]!==a?(n=(0,m.jsx)("div",{className:t,children:a}),e[7]=t,e[8]=a,e[9]=n):n=e[9],n};function H(o){return(0,m.jsx)(w,{shortcut:o})}const w=o=>{let e=(0,f.c)(6),{className:l,shortcut:s}=o,t=d(p),a;e[0]!==t||e[1]!==s?(a=t.getHotkey(s),e[0]=t,e[1]=s,e[2]=a):a=e[2];let n=a,r;return e[3]!==l||e[4]!==n.key?(r=(0,m.jsx)(C,{shortcut:n.key,className:l}),e[3]=l,e[4]=n.key,e[5]=r):r=e[5],r},C=o=>{let e=(0,f.c)(12),{shortcut:l,className:s}=o;if(l===b||l===""){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,m.jsx)("span",{}),e[0]=c):c=e[0],c}let t,a,n;if(e[1]!==s||e[2]!==l){let c=l.split("-");t=S,e[6]===s?a=e[7]:(a=y("flex gap-1 items-center",s),e[6]=s,e[7]=a),n=c.map(k).map(F),e[1]=s,e[2]=l,e[3]=t,e[4]=a,e[5]=n}else t=e[3],a=e[4],n=e[5];let r;return e[8]!==t||e[9]!==a||e[10]!==n?(r=(0,m.jsx)(t,{className:a,children:n}),e[8]=t,e[9]=a,e[10]=n,e[11]=r):r=e[11],r};function k(o){let e=v()?"mac":"default",l=o.toLowerCase(),s=I[o.toLowerCase()];if(s){let t=s.symbols[e]||s.symbols.default;return[s.label,t]}return[l]}var I={ctrl:{symbols:{mac:"\u2303",default:"Ctrl"},label:"Control"},control:{symbols:{mac:"\u2303",default:"Ctrl"},label:"Control"},shift:{symbols:{mac:"\u21E7",default:"Shift"},label:"Shift"},alt:{symbols:{mac:"\u2325",default:"Alt"},label:"Alt/Option"},escape:{symbols:{mac:"\u238B",default:"Esc"},label:"Escape"},arrowup:{symbols:{default:"\u2191"},label:"Arrow Up"},arrowdown:{symbols:{default:"\u2193"},label:"Arrow Down"},arrowleft:{symbols:{default:"\u2190"},label:"Arrow Left"},arrowright:{symbols:{default:"\u2192"},label:"Arrow Right"},backspace:{symbols:{mac:"\u232B",default:"\u27F5"},label:"Backspace"},tab:{symbols:{mac:"\u21E5",default:"\u2B7E"},label:"Tab"},capslock:{symbols:{default:"\u21EA"},label:"Caps Lock"},fn:{symbols:{default:"Fn"},label:"Fn"},cmd:{symbols:{mac:"\u2318",windows:"\u229E Win",default:"Command"},label:"Command"},insert:{symbols:{default:"Ins"},label:"Insert"},delete:{symbols:{mac:"\u2326",default:"Del"},label:"Delete"},home:{symbols:{mac:"\u2196",default:"Home"},label:"Home"},end:{symbols:{mac:"\u2198",default:"End"},label:"End"},mod:{symbols:{mac:"\u2318",windows:"\u229E Win",default:"Ctrl"},label:"Control"}};function N(o){return o.charAt(0).toUpperCase()+o.slice(1)}function L(o){let[e,l]=o;return l?(0,m.jsx)(h,{asChild:!1,tabIndex:-1,content:e,delayDuration:300,children:(0,m.jsx)(x,{children:l},e)},e):(0,m.jsx)(x,{children:N(e)},e)}function F(o){let[e,l]=o;return l?(0,m.jsx)(h,{content:e,delayDuration:300,tabIndex:-1,children:(0,m.jsx)("span",{children:l},e)},e):(0,m.jsx)("span",{children:N(e)},e)}export{_ as a,H as i,C as n,w as r,j as t}; diff --git a/docs/assets/request-registry-CxxnIU-g.js b/docs/assets/request-registry-CxxnIU-g.js new file mode 100644 index 0000000..a75ec97 --- /dev/null +++ b/docs/assets/request-registry-CxxnIU-g.js @@ -0,0 +1 @@ +import{t as s}from"./requests-C0HaHO6a.js";import{t as r}from"./DeferredRequestRegistry-B3BENoUa.js";const o=new r("secrets-result",async(t,e)=>{await s().listSecretKeys({requestId:t,...e})});export{o as t}; diff --git a/docs/assets/requests-C0HaHO6a.js b/docs/assets/requests-C0HaHO6a.js new file mode 100644 index 0000000..d9f4be4 --- /dev/null +++ b/docs/assets/requests-C0HaHO6a.js @@ -0,0 +1 @@ +import{i as s,p as n,u as i}from"./useEvent-DlWF5OMa.js";import{t as r}from"./invariant-C6yE60hi.js";const e=n(null);function u(){let t=i(e);return r(t,"useRequestClient() requires setting requestClientAtom."),t}function o(){let t=s.get(e);return r(t,"getRequestClient() requires requestClientAtom to be set."),t}export{e as n,u as r,o as t}; diff --git a/docs/assets/requests-bNszE-ju.js b/docs/assets/requests-bNszE-ju.js new file mode 100644 index 0000000..1d064d9 --- /dev/null +++ b/docs/assets/requests-bNszE-ju.js @@ -0,0 +1 @@ +import{p as o}from"./useEvent-DlWF5OMa.js";const t=o(null);export{t}; diff --git a/docs/assets/requirementDiagram-UZGBJVZJ-grHisX2O.js b/docs/assets/requirementDiagram-UZGBJVZJ-grHisX2O.js new file mode 100644 index 0000000..d28641e --- /dev/null +++ b/docs/assets/requirementDiagram-UZGBJVZJ-grHisX2O.js @@ -0,0 +1,64 @@ +var J;import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import{g as ze}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as u,r as ke,t as Ge}from"./src-faGJHwXX.js";import{B as Xe,C as Je,U as Ze,_ as et,a as tt,b as Ne,v as st,z as it}from"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import{r as nt,t as rt}from"./chunk-N4CR4FBY-DtYoI569.js";import{t as at}from"./chunk-55IACEB6-DvJ_-Ku-.js";import{t as lt}from"./chunk-QN33PNHL-C0IBWhei.js";var qe=(function(){var e=u(function(i,m,a,s){for(a||(a={}),s=i.length;s--;a[i[s]]=m);return a},"o"),r=[1,3],h=[1,4],c=[1,5],y=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,22],d=[2,7],o=[1,26],p=[1,27],S=[1,28],T=[1,29],C=[1,33],A=[1,34],v=[1,35],L=[1,36],x=[1,37],O=[1,38],M=[1,24],$=[1,31],D=[1,32],w=[1,30],_=[1,39],g=[1,40],R=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],G=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],pe=[27,29],Ae=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],Me=[1,75],$e=[1,76],Z=[1,83],U=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],ne=[1,88],re=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],V=[63,64],De=[1,101],we=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[1,110],B=[1,106],Q=[1,107],H=[1,108],K=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],ge={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:u(function(i,m,a,s,f,t,me){var n=t.length-1;switch(f){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:r,9:h,11:c,13:y},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:h,11:c,13:y},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:r,9:h,11:c,13:y},{1:[2,2]},{4:17,5:E,7:13,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:E,7:42,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:43,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:44,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:45,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:46,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:47,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:48,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:49,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{4:17,5:E,7:50,8:d,9:h,11:c,13:y,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:p,23:S,24:T,25:23,33:25,41:C,42:A,43:v,44:L,45:x,46:O,54:M,72:$,74:D,77:w,89:_,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(R,[2,17]),e(R,[2,18]),e(R,[2,19]),e(R,[2,20]),{30:60,33:62,75:P,89:_,90:g},{30:63,33:62,75:P,89:_,90:g},{30:64,33:62,75:P,89:_,90:g},e(G,[2,29]),e(G,[2,30]),e(G,[2,31]),e(G,[2,32]),e(G,[2,33]),e(G,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:Me,71:$e},{62:77,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:Me,71:$e},{30:78,33:62,75:P,89:_,90:g},{73:79,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:Z,76:U,78:81,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},{30:94,33:62,75:P,76:U,89:_,90:g},{5:[1,95]},{30:96,33:62,75:P,89:_,90:g},{5:[1,97]},{30:98,33:62,75:P,89:_,90:g},{63:[1,99]},e(V,[2,50]),e(V,[2,51]),e(V,[2,52]),e(V,[2,53]),e(V,[2,54]),e(V,[2,55]),e(V,[2,56]),{64:[1,100]},e(R,[2,59],{76:U}),e(R,[2,64],{76:De}),{33:103,75:[1,102],89:_,90:g},e(we,[2,65],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(R,[2,57],{76:De}),e(R,[2,58],{76:U}),{5:Y,28:105,31:B,34:Q,36:H,38:K,40:W},{27:[1,112],76:U},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:U},{33:119,89:_,90:g},{33:120,89:_,90:g},{75:Z,78:121,79:82,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(k,[2,68]),e(R,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Y,28:126,31:B,34:Q,36:H,38:K,40:W},e(R,[2,28]),{5:[1,127]},e(R,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(R,[2,47]),{5:[1,131]},e(R,[2,48]),e(R,[2,49]),e(we,[2,66],{79:104,75:Z,80:ee,81:te,82:se,83:ie,84:ne,85:re,86:ae,87:le,88:ce}),{33:132,89:_,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(R,[2,27]),{5:Y,28:145,31:B,34:Q,36:H,38:K,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(R,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(R,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(R,[2,43]),{5:Y,28:159,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:160,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:161,31:B,34:Q,36:H,38:K,40:W},{5:Y,28:162,31:B,34:Q,36:H,38:K,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(R,[2,23]),e(R,[2,24]),e(R,[2,25]),e(R,[2,26]),e(R,[2,44]),e(R,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:u(function(i,m){if(m.recoverable)this.trace(i);else{var a=Error(i);throw a.hash=m,a}},"parseError"),parse:u(function(i){var m=this,a=[0],s=[],f=[null],t=[],me=this.table,n="",Re=0,Fe=0,Pe=0,He=2,Ue=1,Ke=t.slice.call(arguments,1),I=Object.create(this.lexer),j={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(j.yy[Ie]=this.yy[Ie]);I.setInput(i,j.yy),j.yy.lexer=I,j.yy.parser=this,I.yylloc===void 0&&(I.yylloc={});var Se=I.yylloc;t.push(Se);var We=I.options&&I.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(q){a.length-=2*q,f.length-=q,t.length-=q}u(je,"popStack");function Ve(){var q=s.pop()||I.lex()||Ue;return typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=m.symbols_[q]||q),q}u(Ve,"lex");for(var b,be,z,N,Te,X={},fe,F,Ye,_e;;){if(z=a[a.length-1],this.defaultActions[z]?N=this.defaultActions[z]:(b??(b=Ve()),N=me[z]&&me[z][b]),N===void 0||!N.length||!N[0]){var Be="";for(fe in _e=[],me[z])this.terminals_[fe]&&fe>He&&_e.push("'"+this.terminals_[fe]+"'");Be=I.showPosition?"Parse error on line "+(Re+1)+`: +`+I.showPosition()+` +Expecting `+_e.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(Re+1)+": Unexpected "+(b==Ue?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Be,{text:I.match,token:this.terminals_[b]||b,line:I.yylineno,loc:Se,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw Error("Parse Error: multiple actions possible at state: "+z+", token: "+b);switch(N[0]){case 1:a.push(b),f.push(I.yytext),t.push(I.yylloc),a.push(N[1]),b=null,be?(b=be,be=null):(Fe=I.yyleng,n=I.yytext,Re=I.yylineno,Se=I.yylloc,Pe>0&&Pe--);break;case 2:if(F=this.productions_[N[1]][1],X.$=f[f.length-F],X._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},We&&(X._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(X,[n,Fe,Re,j.yy,N[1],f,t].concat(Ke)),Te!==void 0)return Te;F&&(a=a.slice(0,-1*F*2),f=f.slice(0,-1*F),t=t.slice(0,-1*F)),a.push(this.productions_[N[1]][0]),f.push(X.$),t.push(X._$),Ye=me[a[a.length-2]][a[a.length-1]],a.push(Ye);break;case 3:return!0}}return!0},"parse")};ge.lexer=(function(){return{EOF:1,parseError:u(function(i,m){if(this.yy.parser)this.yy.parser.parseError(i,m);else throw Error(i)},"parseError"),setInput:u(function(i,m){return this.yy=m||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:u(function(i){var m=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===s.length?this.yylloc.first_column:0)+s[s.length-a.length].length-a[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(i){this.unput(this.match.slice(i))},"less"),pastInput:u(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var i=this.pastInput(),m=Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+m+"^"},"showPosition"),test_match:u(function(i,m){var a,s,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),s=i[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var t in f)this[t]=f[t];return!1}return!1},"test_match"),next:u(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,m,a,s;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),t=0;tm[0].length)){if(m=a,s=t,this.options.backtrack_lexer){if(i=this.test_match(a,f[t]),i!==!1)return i;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(i=this.test_match(m,f[s]),i===!1?!1:i):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:u(function(){return this.next()||this.lex()},"lex"),begin:u(function(i){this.conditionStack.push(i)},"begin"),popState:u(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:u(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:u(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:u(function(i){this.begin(i)},"pushState"),stateStackSize:u(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:u(function(i,m,a,s){switch(a){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return m.yytext=m.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}}})();function de(){this.yy={}}return u(de,"Parser"),de.prototype=ge,ge.Parser=de,new de})();qe.parser=qe;var ct=qe,ot=(J=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=Xe,this.getAccTitle=st,this.setAccDescription=it,this.getAccDescription=et,this.setDiagramTitle=Ze,this.getDiagramTitle=Je,this.getConfig=u(()=>Ne().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(r){this.direction=r}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(r,h){return this.requirements.has(r)||this.requirements.set(r,{name:r,type:h,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(r)}getRequirements(){return this.requirements}setNewReqId(r){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=r)}setNewReqText(r){this.latestRequirement!==void 0&&(this.latestRequirement.text=r)}setNewReqRisk(r){this.latestRequirement!==void 0&&(this.latestRequirement.risk=r)}setNewReqVerifyMethod(r){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=r)}addElement(r){return this.elements.has(r)||(this.elements.set(r,{name:r,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),ke.info("Added new element: ",r)),this.resetLatestElement(),this.elements.get(r)}getElements(){return this.elements}setNewElementType(r){this.latestElement!==void 0&&(this.latestElement.type=r)}setNewElementDocRef(r){this.latestElement!==void 0&&(this.latestElement.docRef=r)}addRelationship(r,h,c){this.relations.push({type:r,src:h,dst:c})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,tt()}setCssStyle(r,h){for(let c of r){let y=this.requirements.get(c)??this.elements.get(c);if(!h||!y)return;for(let l of h)l.includes(",")?y.cssStyles.push(...l.split(",")):y.cssStyles.push(l)}}setClass(r,h){var c;for(let y of r){let l=this.requirements.get(y)??this.elements.get(y);if(l)for(let E of h){l.classes.push(E);let d=(c=this.classes.get(E))==null?void 0:c.styles;d&&l.cssStyles.push(...d)}}}defineClass(r,h){for(let c of r){let y=this.classes.get(c);y===void 0&&(y={id:c,styles:[],textStyles:[]},this.classes.set(c,y)),h&&h.forEach(function(l){if(/color/.exec(l)){let E=l.replace("fill","bgFill");y.textStyles.push(E)}y.styles.push(l)}),this.requirements.forEach(l=>{l.classes.includes(c)&&l.cssStyles.push(...h.flatMap(E=>E.split(",")))}),this.elements.forEach(l=>{l.classes.includes(c)&&l.cssStyles.push(...h.flatMap(E=>E.split(",")))})}}getClasses(){return this.classes}getData(){var y,l,E,d;let r=Ne(),h=[],c=[];for(let o of this.requirements.values()){let p=o;p.id=o.name,p.cssStyles=o.cssStyles,p.cssClasses=o.classes.join(" "),p.shape="requirementBox",p.look=r.look,h.push(p)}for(let o of this.elements.values()){let p=o;p.shape="requirementBox",p.look=r.look,p.id=o.name,p.cssStyles=o.cssStyles,p.cssClasses=o.classes.join(" "),h.push(p)}for(let o of this.relations){let p=0,S=o.type===this.Relationships.CONTAINS,T={id:`${o.src}-${o.dst}-${p}`,start:((y=this.requirements.get(o.src))==null?void 0:y.name)??((l=this.elements.get(o.src))==null?void 0:l.name),end:((E=this.requirements.get(o.dst))==null?void 0:E.name)??((d=this.elements.get(o.dst))==null?void 0:d.name),label:`<<${o.type}>>`,classes:"relationshipLine",style:["fill:none",S?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:S?"normal":"dashed",arrowTypeStart:S?"requirement_contains":"",arrowTypeEnd:S?"":"requirement_arrow",look:r.look};c.push(T),p++}return{nodes:h,edges:c,other:{},config:r,direction:this.getDirection()}}},u(J,"RequirementDB"),J),ht=u(e=>` + + marker { + fill: ${e.relationColor}; + stroke: ${e.relationColor}; + } + + marker.cross { + stroke: ${e.lineColor}; + } + + svg { + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; + } + + .reqBox { + fill: ${e.requirementBackground}; + fill-opacity: 1.0; + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + + .reqTitle, .reqLabel{ + fill: ${e.requirementTextColor}; + } + .reqLabelBox { + fill: ${e.relationLabelBackground}; + fill-opacity: 1.0; + } + + .req-title-line { + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + .relationshipLine { + stroke: ${e.relationColor}; + stroke-width: 1; + } + .relationshipLabel { + fill: ${e.relationLabelColor}; + } + .divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; + } + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + .labelBkg { + background-color: ${e.edgeLabelBackground}; + } + +`,"getStyles"),Qe={};Ge(Qe,{draw:()=>ut});var ut=u(async function(e,r,h,c){ke.info("REF0:"),ke.info("Drawing requirement diagram (unified)",r);let{securityLevel:y,state:l,layout:E}=Ne(),d=c.db.getData(),o=at(r,y);d.type=c.type,d.layoutAlgorithm=rt(E),d.nodeSpacing=(l==null?void 0:l.nodeSpacing)??50,d.rankSpacing=(l==null?void 0:l.rankSpacing)??50,d.markers=["requirement_contains","requirement_arrow"],d.diagramId=r,await nt(d,o),ze.insertTitle(o,"requirementDiagramTitleText",(l==null?void 0:l.titleTopMargin)??25,c.db.getDiagramTitle()),lt(o,8,"requirementDiagram",(l==null?void 0:l.useMaxWidth)??!0)},"draw"),yt={parser:ct,get db(){return new ot},renderer:Qe,styles:ht};export{yt as diagram}; diff --git a/docs/assets/riscv-Br2LUTr7.js b/docs/assets/riscv-Br2LUTr7.js new file mode 100644 index 0000000..a93b94e --- /dev/null +++ b/docs/assets/riscv-Br2LUTr7.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"RISC-V","fileTypes":["S","s","riscv","asm"],"name":"riscv","patterns":[{"match":"\\\\b(la|lb|lh|lw|ld|nop|li|mv|not|negw??|sext\\\\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz?|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[crsw|]|csr[csw|]i)\\\\b","name":"support.function.pseudo.riscv"},{"match":"\\\\b(addw??|auipc|lui|jalr|beq|bne|blt|bge|bltu|bgeu|lb|lh|lw|ld|lbu|lhu|sb|sh|sw|sd|addiw??|sltiu??|xori|ori|andi|slliw??|srliw??|sraiw??|subw??|sllw??|sltu??|xor|srlw??|sraw??|or|and|fence|fence\\\\.i|csrrw|csrrs|csrrc|csrrwi|csrrsi|csrrci)\\\\b","name":"support.function.riscv"},{"match":"\\\\b(ecall|ebreak|sfence\\\\.vma|mret|sret|uret|wfi)\\\\b","name":"support.function.riscv.privileged"},{"match":"\\\\b(mulh??|mulhsu|mulhu|divu??|remu??|mulw|divw|divuw|remw|remuw)\\\\b","name":"support.function.riscv.m"},{"match":"\\\\b(c\\\\.(?:addi4spn|fld|lq|lw|flw|ld|fsd|sq|sw|fsw|sd|nop|addi|jal|addiw|li|addi16sp|lui|srli|srli64|srai|srai64|andi|sub|xor|or|and|subw|addw|j|beqz|bnez))\\\\b","name":"support.function.riscv.c"},{"match":"\\\\b(lr\\\\.[dw|]|sc\\\\.[dw|]|amoswap\\\\.[dw|]|amoadd\\\\.[dw|]|amoxor\\\\.[dw|]|amoand\\\\.[dw|]|amoor\\\\.[dw|]|amomin\\\\.[dw|]|amomax\\\\.[dw|]|amominu\\\\.[dw|]|amomaxu\\\\.[dw|])\\\\b","name":"support.function.riscv.a"},{"match":"\\\\b(f(?:lw|sw|madd\\\\.s|msub\\\\.s|nmsub\\\\.s|nmadd\\\\.s|add\\\\.s|sub\\\\.s|mul\\\\.s|div\\\\.s|sqrt\\\\.s|sgnj\\\\.s|sgnjn\\\\.s|sgnjx\\\\.s|min\\\\.s|max\\\\.s|cvt\\\\.w\\\\.s|cvt\\\\.wu\\\\.s|mv\\\\.x\\\\.w|eq\\\\.s|lt\\\\.s|le\\\\.s|class\\\\.s|cvt\\\\.s\\\\.wu??|mv\\\\.w\\\\.x|cvt\\\\.l\\\\.s|cvt\\\\.lu\\\\.s|cvt\\\\.s\\\\.lu??))\\\\b","name":"support.function.riscv.f"},{"match":"\\\\b(f(?:ld|sd|madd\\\\.d|msub\\\\.d|nmsub\\\\.d|nmadd\\\\.d|add\\\\.d|sub\\\\.d|mul\\\\.d|div\\\\.d|sqrt\\\\.d|sgnj\\\\.d|sgnjn\\\\.d|sgnjx\\\\.d|min\\\\.d|max\\\\.d|cvt\\\\.s\\\\.d|cvt\\\\.d\\\\.s|eq\\\\.d|lt\\\\.d|le\\\\.d|class\\\\.d|cvt\\\\.w\\\\.d|cvt\\\\.wu\\\\.d|cvt\\\\.d\\\\.wu??|cvt\\\\.l\\\\.d|cvt\\\\.lu\\\\.d|mv\\\\.x\\\\.d|cvt\\\\.d\\\\.lu??|mv\\\\.d\\\\.x))\\\\b","name":"support.function.riscv.d"},{"match":"\\\\.(skip|asciiz??|byte|[248|]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\\\\s*(noat|at)|[su|]leb128|string|incbin|zero|rodata|comm|common)\\\\b","name":"storage.type.riscv"},{"match":"\\\\.(balign|align|p2align|extern|globl|global|local|pushsection|section|bss|insn|option|type|equ|macro|endm|file|ident)\\\\b","name":"storage.modifier.riscv"},{"captures":{"1":{"name":"entity.name.function.label.riscv"}},"match":"\\\\b([0-9A-Z_a-z]+):","name":"meta.function.label.riscv"},{"captures":{"1":{"name":"punctuation.definition.variable.riscv"}},"match":"\\\\b(x([0-9]|1[0-9]|2[0-9]|3[01]))\\\\b","name":"variable.other.register.usable.by-number.riscv"},{"captures":{"1":{"name":"punctuation.definition.variable.riscv"}},"match":"\\\\b(zero|ra|sp|gp|tp|t[0-6]|a[0-7]|s[0-9]|fp|s1[01])\\\\b","name":"variable.other.register.usable.by-name.riscv"},{"captures":{"1":{"name":"punctuation.definition.variable.riscv"}},"match":"\\\\b(([hmsu]|vs)status|([hmsu]|vs)ie|([msu]|vs)tvec|([msu]|vs)scratch|([msu]|vs)epc|([msu]|vs)cause|([hmsu]|vs)tval|([hmsu]|vs)ip|fflags|frm|fcsr|m?cycleh?|timeh?|m?instreth?|m?hpmcounter([3-9]|[12][0-9]|3[01])h?|[hms][ei]deleg|[hms]counteren|v?satp|hgeie|hgeip|[hm]tinst|hvip|hgatp|htimedeltah?|mvendorid|marchid|mimpid|mhartid|misa|mstatush|mtval2|pmpcfg[0-3]|pmpaddr([0-9]|1[0-5])|mcountinhibit|mhpmevent([3-9]|[12][0-9]|3[01])|tselect|tdata[123]|dcsr|dpc|dscratch[01])\\\\b","name":"variable.other.csr.names.riscv"},{"captures":{"1":{"name":"punctuation.definition.variable.riscv"}},"match":"\\\\bf([0-9]|1[0-9]|2[0-9]|3[01])\\\\b","name":"variable.other.register.usable.floating-point.riscv"},{"match":"\\\\b\\\\d+\\\\.\\\\d+\\\\b","name":"constant.numeric.float.riscv"},{"match":"\\\\b(\\\\d+|0([Xx])\\\\h+)\\\\b","name":"constant.numeric.integer.riscv"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.riscv"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.riscv"}},"name":"string.quoted.double.riscv","patterns":[{"match":"\\\\\\\\[\\"\\\\\\\\nrt]","name":"constant.character.escape.riscv"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.riscv"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.riscv"}},"name":"string.quoted.single.riscv","patterns":[{"match":"\\\\\\\\[\\"\\\\\\\\nrt]","name":"constant.character.escape.riscv"}]},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block"},{"begin":"//","end":"\\\\n","name":"comment.line.double-slash"},{"begin":"^\\\\s*#\\\\s*(define)\\\\s+((?[A-Z_a-z][0-9A-Z_a-z]*))(?:(\\\\()(\\\\s*\\\\g\\\\s*((,)\\\\s*\\\\g\\\\s*)*(?:\\\\.\\\\.\\\\.)?)(\\\\)))?","beginCaptures":{"1":{"name":"keyword.control.import.define.c"},"2":{"name":"entity.name.function.preprocessor.c"},"4":{"name":"punctuation.definition.parameters.c"},"5":{"name":"variable.parameter.preprocessor.c"},"7":{"name":"punctuation.separator.parameters.c"},"8":{"name":"punctuation.definition.parameters.c"}},"end":"(?=/[*/])|$","name":"meta.preprocessor.macro.c","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"},{"include":"$base"}]},{"begin":"^\\\\s*#\\\\s*(error|warning)\\\\b","captures":{"1":{"name":"keyword.control.import.error.c"}},"end":"$","name":"meta.preprocessor.diagnostic.c","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"}]},{"begin":"^\\\\s*#\\\\s*(i(?:nclude|mport))\\\\b\\\\s+","captures":{"1":{"name":"keyword.control.import.include.c"}},"end":"(?=/[*/])|$","name":"meta.preprocessor.c.include","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.include.c"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.other.lt-gt.include.c"}]},{"begin":"^\\\\s*#\\\\s*(defined??|elif|else|if|ifdef|ifndef|line|pragma|undef|endif)\\\\b","captures":{"1":{"name":"keyword.control.import.c"}},"end":"(?=/[*/])|$","name":"meta.preprocessor.c","patterns":[{"match":"(?>\\\\\\\\\\\\s*\\\\n)","name":"punctuation.separator.continuation.c"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.riscv"}},"end":"(?!\\\\G)","patterns":[{"begin":"#|(//)","beginCaptures":{"0":{"name":"punctuation.definition.comment.riscv"}},"end":"\\\\n","name":"comment.line.number-sign.riscv"}]}],"scopeName":"source.riscv"}`))];export{e as default}; diff --git a/docs/assets/rose-pine-bs7wJeU7.js b/docs/assets/rose-pine-bs7wJeU7.js new file mode 100644 index 0000000..760037a --- /dev/null +++ b/docs/assets/rose-pine-bs7wJeU7.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#e0def4","activityBar.background":"#191724","activityBar.dropBorder":"#26233a","activityBar.foreground":"#e0def4","activityBar.inactiveForeground":"#908caa","activityBarBadge.background":"#ebbcba","activityBarBadge.foreground":"#191724","badge.background":"#ebbcba","badge.foreground":"#191724","banner.background":"#1f1d2e","banner.foreground":"#e0def4","banner.iconForeground":"#908caa","breadcrumb.activeSelectionForeground":"#ebbcba","breadcrumb.background":"#191724","breadcrumb.focusForeground":"#908caa","breadcrumb.foreground":"#6e6a86","breadcrumbPicker.background":"#1f1d2e","button.background":"#ebbcba","button.foreground":"#191724","button.hoverBackground":"#ebbcbae6","button.secondaryBackground":"#1f1d2e","button.secondaryForeground":"#e0def4","button.secondaryHoverBackground":"#26233a","charts.blue":"#9ccfd8","charts.foreground":"#e0def4","charts.green":"#31748f","charts.lines":"#908caa","charts.orange":"#ebbcba","charts.purple":"#c4a7e7","charts.red":"#eb6f92","charts.yellow":"#f6c177","checkbox.background":"#1f1d2e","checkbox.border":"#6e6a8633","checkbox.foreground":"#e0def4","debugExceptionWidget.background":"#1f1d2e","debugExceptionWidget.border":"#6e6a8633","debugIcon.breakpointCurrentStackframeForeground":"#908caa","debugIcon.breakpointDisabledForeground":"#908caa","debugIcon.breakpointForeground":"#908caa","debugIcon.breakpointStackframeForeground":"#908caa","debugIcon.breakpointUnverifiedForeground":"#908caa","debugIcon.continueForeground":"#908caa","debugIcon.disconnectForeground":"#908caa","debugIcon.pauseForeground":"#908caa","debugIcon.restartForeground":"#908caa","debugIcon.startForeground":"#908caa","debugIcon.stepBackForeground":"#908caa","debugIcon.stepIntoForeground":"#908caa","debugIcon.stepOutForeground":"#908caa","debugIcon.stepOverForeground":"#908caa","debugIcon.stopForeground":"#eb6f92","debugToolBar.background":"#1f1d2e","debugToolBar.border":"#26233a","descriptionForeground":"#908caa","diffEditor.border":"#26233a","diffEditor.diagonalFill":"#6e6a8666","diffEditor.insertedLineBackground":"#9ccfd826","diffEditor.insertedTextBackground":"#9ccfd826","diffEditor.removedLineBackground":"#eb6f9226","diffEditor.removedTextBackground":"#eb6f9226","diffEditorOverview.insertedForeground":"#9ccfd880","diffEditorOverview.removedForeground":"#eb6f9280","dropdown.background":"#1f1d2e","dropdown.border":"#6e6a8633","dropdown.foreground":"#e0def4","dropdown.listBackground":"#1f1d2e","editor.background":"#191724","editor.findMatchBackground":"#f6c17733","editor.findMatchBorder":"#f6c17780","editor.findMatchForeground":"#e0def4","editor.findMatchHighlightBackground":"#6e6a8666","editor.findMatchHighlightForeground":"#e0def4cc","editor.findRangeHighlightBackground":"#6e6a8666","editor.findRangeHighlightBorder":"#0000","editor.focusedStackFrameHighlightBackground":"#6e6a8633","editor.foldBackground":"#6e6a8633","editor.foreground":"#e0def4","editor.hoverHighlightBackground":"#0000","editor.inactiveSelectionBackground":"#6e6a861a","editor.inlineValuesBackground":"#0000","editor.inlineValuesForeground":"#908caa","editor.lineHighlightBackground":"#6e6a861a","editor.lineHighlightBorder":"#0000","editor.linkedEditingBackground":"#6e6a8633","editor.rangeHighlightBackground":"#6e6a861a","editor.selectionBackground":"#6e6a8633","editor.selectionForeground":"#e0def4","editor.selectionHighlightBackground":"#6e6a8633","editor.selectionHighlightBorder":"#191724","editor.snippetFinalTabstopHighlightBackground":"#6e6a8633","editor.snippetFinalTabstopHighlightBorder":"#1f1d2e","editor.snippetTabstopHighlightBackground":"#6e6a8633","editor.snippetTabstopHighlightBorder":"#1f1d2e","editor.stackFrameHighlightBackground":"#6e6a8633","editor.symbolHighlightBackground":"#6e6a8633","editor.symbolHighlightBorder":"#0000","editor.wordHighlightBackground":"#6e6a8633","editor.wordHighlightBorder":"#0000","editor.wordHighlightStrongBackground":"#6e6a8633","editor.wordHighlightStrongBorder":"#6e6a8633","editorBracketHighlight.foreground1":"#eb6f9280","editorBracketHighlight.foreground2":"#31748f80","editorBracketHighlight.foreground3":"#f6c17780","editorBracketHighlight.foreground4":"#9ccfd880","editorBracketHighlight.foreground5":"#ebbcba80","editorBracketHighlight.foreground6":"#c4a7e780","editorBracketMatch.background":"#0000","editorBracketMatch.border":"#908caa","editorBracketPairGuide.activeBackground1":"#31748f","editorBracketPairGuide.activeBackground2":"#ebbcba","editorBracketPairGuide.activeBackground3":"#c4a7e7","editorBracketPairGuide.activeBackground4":"#9ccfd8","editorBracketPairGuide.activeBackground5":"#f6c177","editorBracketPairGuide.activeBackground6":"#eb6f92","editorBracketPairGuide.background1":"#31748f80","editorBracketPairGuide.background2":"#ebbcba80","editorBracketPairGuide.background3":"#c4a7e780","editorBracketPairGuide.background4":"#9ccfd880","editorBracketPairGuide.background5":"#f6c17780","editorBracketPairGuide.background6":"#eb6f9280","editorCodeLens.foreground":"#ebbcba","editorCursor.background":"#e0def4","editorCursor.foreground":"#6e6a86","editorError.border":"#0000","editorError.foreground":"#eb6f92","editorGhostText.foreground":"#908caa","editorGroup.border":"#0000","editorGroup.dropBackground":"#1f1d2e","editorGroup.emptyBackground":"#0000","editorGroup.focusedEmptyBorder":"#0000","editorGroupHeader.noTabsBackground":"#0000","editorGroupHeader.tabsBackground":"#0000","editorGroupHeader.tabsBorder":"#0000","editorGutter.addedBackground":"#9ccfd8","editorGutter.background":"#191724","editorGutter.commentRangeForeground":"#26233a","editorGutter.deletedBackground":"#eb6f92","editorGutter.foldingControlForeground":"#c4a7e7","editorGutter.modifiedBackground":"#ebbcba","editorHint.border":"#0000","editorHint.foreground":"#908caa","editorHoverWidget.background":"#1f1d2e","editorHoverWidget.border":"#6e6a8680","editorHoverWidget.foreground":"#908caa","editorHoverWidget.highlightForeground":"#e0def4","editorHoverWidget.statusBarBackground":"#0000","editorIndentGuide.activeBackground1":"#6e6a86","editorIndentGuide.background1":"#6e6a8666","editorInfo.border":"#26233a","editorInfo.foreground":"#9ccfd8","editorInlayHint.background":"#26233a80","editorInlayHint.foreground":"#908caa80","editorInlayHint.parameterBackground":"#26233a80","editorInlayHint.parameterForeground":"#c4a7e780","editorInlayHint.typeBackground":"#26233a80","editorInlayHint.typeForeground":"#9ccfd880","editorLightBulb.foreground":"#31748f","editorLightBulbAutoFix.foreground":"#ebbcba","editorLineNumber.activeForeground":"#e0def4","editorLineNumber.foreground":"#908caa","editorLink.activeForeground":"#ebbcba","editorMarkerNavigation.background":"#1f1d2e","editorMarkerNavigationError.background":"#1f1d2e","editorMarkerNavigationInfo.background":"#1f1d2e","editorMarkerNavigationWarning.background":"#1f1d2e","editorOverviewRuler.addedForeground":"#9ccfd880","editorOverviewRuler.background":"#191724","editorOverviewRuler.border":"#6e6a8666","editorOverviewRuler.bracketMatchForeground":"#908caa","editorOverviewRuler.commentForeground":"#908caa80","editorOverviewRuler.commentUnresolvedForeground":"#f6c17780","editorOverviewRuler.commonContentForeground":"#6e6a861a","editorOverviewRuler.currentContentForeground":"#6e6a8633","editorOverviewRuler.deletedForeground":"#eb6f9280","editorOverviewRuler.errorForeground":"#eb6f9280","editorOverviewRuler.findMatchForeground":"#6e6a8666","editorOverviewRuler.incomingContentForeground":"#c4a7e780","editorOverviewRuler.infoForeground":"#9ccfd880","editorOverviewRuler.modifiedForeground":"#ebbcba80","editorOverviewRuler.rangeHighlightForeground":"#6e6a8666","editorOverviewRuler.selectionHighlightForeground":"#6e6a8666","editorOverviewRuler.warningForeground":"#f6c17780","editorOverviewRuler.wordHighlightForeground":"#6e6a8633","editorOverviewRuler.wordHighlightStrongForeground":"#6e6a8666","editorPane.background":"#0000","editorRuler.foreground":"#6e6a8666","editorSuggestWidget.background":"#1f1d2e","editorSuggestWidget.border":"#0000","editorSuggestWidget.focusHighlightForeground":"#ebbcba","editorSuggestWidget.foreground":"#908caa","editorSuggestWidget.highlightForeground":"#ebbcba","editorSuggestWidget.selectedBackground":"#6e6a8633","editorSuggestWidget.selectedForeground":"#e0def4","editorSuggestWidget.selectedIconForeground":"#e0def4","editorUnnecessaryCode.border":"#0000","editorUnnecessaryCode.opacity":"#e0def480","editorWarning.border":"#0000","editorWarning.foreground":"#f6c177","editorWhitespace.foreground":"#6e6a8680","editorWidget.background":"#1f1d2e","editorWidget.border":"#26233a","editorWidget.foreground":"#908caa","editorWidget.resizeBorder":"#6e6a86","errorForeground":"#eb6f92","extensionBadge.remoteBackground":"#c4a7e7","extensionBadge.remoteForeground":"#191724","extensionButton.prominentBackground":"#ebbcba","extensionButton.prominentForeground":"#191724","extensionButton.prominentHoverBackground":"#ebbcbae6","extensionIcon.preReleaseForeground":"#31748f","extensionIcon.starForeground":"#ebbcba","extensionIcon.verifiedForeground":"#c4a7e7","focusBorder":"#6e6a8633","foreground":"#e0def4","git.blame.editorDecorationForeground":"#6e6a86","gitDecoration.addedResourceForeground":"#9ccfd8","gitDecoration.conflictingResourceForeground":"#eb6f92","gitDecoration.deletedResourceForeground":"#908caa","gitDecoration.ignoredResourceForeground":"#6e6a86","gitDecoration.modifiedResourceForeground":"#ebbcba","gitDecoration.renamedResourceForeground":"#31748f","gitDecoration.stageDeletedResourceForeground":"#eb6f92","gitDecoration.stageModifiedResourceForeground":"#c4a7e7","gitDecoration.submoduleResourceForeground":"#f6c177","gitDecoration.untrackedResourceForeground":"#f6c177","icon.foreground":"#908caa","input.background":"#26233a80","input.border":"#6e6a8633","input.foreground":"#e0def4","input.placeholderForeground":"#908caa","inputOption.activeBackground":"#ebbcba26","inputOption.activeBorder":"#0000","inputOption.activeForeground":"#ebbcba","inputValidation.errorBackground":"#1f1d2e","inputValidation.errorBorder":"#6e6a8666","inputValidation.errorForeground":"#eb6f92","inputValidation.infoBackground":"#1f1d2e","inputValidation.infoBorder":"#6e6a8666","inputValidation.infoForeground":"#9ccfd8","inputValidation.warningBackground":"#1f1d2e","inputValidation.warningBorder":"#6e6a8666","inputValidation.warningForeground":"#9ccfd880","keybindingLabel.background":"#26233a","keybindingLabel.border":"#6e6a8666","keybindingLabel.bottomBorder":"#6e6a8666","keybindingLabel.foreground":"#c4a7e7","keybindingTable.headerBackground":"#26233a","keybindingTable.rowsBackground":"#1f1d2e","list.activeSelectionBackground":"#6e6a8633","list.activeSelectionForeground":"#e0def4","list.deemphasizedForeground":"#908caa","list.dropBackground":"#1f1d2e","list.errorForeground":"#eb6f92","list.filterMatchBackground":"#1f1d2e","list.filterMatchBorder":"#ebbcba","list.focusBackground":"#6e6a8666","list.focusForeground":"#e0def4","list.focusOutline":"#6e6a8633","list.highlightForeground":"#ebbcba","list.hoverBackground":"#6e6a861a","list.hoverForeground":"#e0def4","list.inactiveFocusBackground":"#6e6a861a","list.inactiveSelectionBackground":"#1f1d2e","list.inactiveSelectionForeground":"#e0def4","list.invalidItemForeground":"#eb6f92","list.warningForeground":"#f6c177","listFilterWidget.background":"#1f1d2e","listFilterWidget.noMatchesOutline":"#eb6f92","listFilterWidget.outline":"#26233a","menu.background":"#1f1d2e","menu.border":"#6e6a861a","menu.foreground":"#e0def4","menu.selectionBackground":"#6e6a8633","menu.selectionBorder":"#26233a","menu.selectionForeground":"#e0def4","menu.separatorBackground":"#6e6a8666","menubar.selectionBackground":"#6e6a8633","menubar.selectionBorder":"#6e6a861a","menubar.selectionForeground":"#e0def4","merge.border":"#26233a","merge.commonContentBackground":"#6e6a8633","merge.commonHeaderBackground":"#6e6a8633","merge.currentContentBackground":"#f6c17780","merge.currentHeaderBackground":"#f6c17780","merge.incomingContentBackground":"#9ccfd880","merge.incomingHeaderBackground":"#9ccfd880","minimap.background":"#1f1d2e","minimap.errorHighlight":"#eb6f9280","minimap.findMatchHighlight":"#6e6a8633","minimap.selectionHighlight":"#6e6a8633","minimap.warningHighlight":"#f6c17780","minimapGutter.addedBackground":"#9ccfd8","minimapGutter.deletedBackground":"#eb6f92","minimapGutter.modifiedBackground":"#ebbcba","minimapSlider.activeBackground":"#6e6a8666","minimapSlider.background":"#6e6a8633","minimapSlider.hoverBackground":"#6e6a8633","notebook.cellBorderColor":"#9ccfd880","notebook.cellEditorBackground":"#1f1d2e","notebook.cellHoverBackground":"#26233a80","notebook.focusedCellBackground":"#6e6a861a","notebook.focusedCellBorder":"#9ccfd8","notebook.outputContainerBackgroundColor":"#6e6a861a","notificationCenter.border":"#6e6a8633","notificationCenterHeader.background":"#1f1d2e","notificationCenterHeader.foreground":"#908caa","notificationLink.foreground":"#c4a7e7","notificationToast.border":"#6e6a8633","notifications.background":"#1f1d2e","notifications.border":"#6e6a8633","notifications.foreground":"#e0def4","notificationsErrorIcon.foreground":"#eb6f92","notificationsInfoIcon.foreground":"#9ccfd8","notificationsWarningIcon.foreground":"#f6c177","panel.background":"#1f1d2e","panel.border":"#0000","panel.dropBorder":"#26233a","panelInput.border":"#1f1d2e","panelSection.dropBackground":"#6e6a8633","panelSectionHeader.background":"#1f1d2e","panelSectionHeader.foreground":"#e0def4","panelTitle.activeBorder":"#6e6a8666","panelTitle.activeForeground":"#e0def4","panelTitle.inactiveForeground":"#908caa","peekView.border":"#26233a","peekViewEditor.background":"#1f1d2e","peekViewEditor.matchHighlightBackground":"#6e6a8666","peekViewResult.background":"#1f1d2e","peekViewResult.fileForeground":"#908caa","peekViewResult.lineForeground":"#908caa","peekViewResult.matchHighlightBackground":"#6e6a8666","peekViewResult.selectionBackground":"#6e6a8633","peekViewResult.selectionForeground":"#e0def4","peekViewTitle.background":"#26233a","peekViewTitleDescription.foreground":"#908caa","pickerGroup.border":"#6e6a8666","pickerGroup.foreground":"#c4a7e7","ports.iconRunningProcessForeground":"#ebbcba","problemsErrorIcon.foreground":"#eb6f92","problemsInfoIcon.foreground":"#9ccfd8","problemsWarningIcon.foreground":"#f6c177","progressBar.background":"#ebbcba","quickInput.background":"#1f1d2e","quickInput.foreground":"#908caa","quickInputList.focusBackground":"#6e6a8633","quickInputList.focusForeground":"#e0def4","quickInputList.focusIconForeground":"#e0def4","scrollbar.shadow":"#1f1d2e4d","scrollbarSlider.activeBackground":"#31748f80","scrollbarSlider.background":"#6e6a8633","scrollbarSlider.hoverBackground":"#6e6a8666","searchEditor.findMatchBackground":"#6e6a8633","selection.background":"#6e6a8666","settings.focusedRowBackground":"#1f1d2e","settings.focusedRowBorder":"#6e6a8633","settings.headerForeground":"#e0def4","settings.modifiedItemIndicator":"#ebbcba","settings.rowHoverBackground":"#1f1d2e","sideBar.background":"#191724","sideBar.dropBackground":"#1f1d2e","sideBar.foreground":"#908caa","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#6e6a8633","statusBar.background":"#191724","statusBar.debuggingBackground":"#c4a7e7","statusBar.debuggingForeground":"#191724","statusBar.foreground":"#908caa","statusBar.noFolderBackground":"#191724","statusBar.noFolderForeground":"#908caa","statusBarItem.activeBackground":"#6e6a8666","statusBarItem.errorBackground":"#191724","statusBarItem.errorForeground":"#eb6f92","statusBarItem.hoverBackground":"#6e6a8633","statusBarItem.prominentBackground":"#26233a","statusBarItem.prominentForeground":"#e0def4","statusBarItem.prominentHoverBackground":"#6e6a8633","statusBarItem.remoteBackground":"#191724","statusBarItem.remoteForeground":"#f6c177","symbolIcon.arrayForeground":"#908caa","symbolIcon.classForeground":"#908caa","symbolIcon.colorForeground":"#908caa","symbolIcon.constantForeground":"#908caa","symbolIcon.constructorForeground":"#908caa","symbolIcon.enumeratorForeground":"#908caa","symbolIcon.enumeratorMemberForeground":"#908caa","symbolIcon.eventForeground":"#908caa","symbolIcon.fieldForeground":"#908caa","symbolIcon.fileForeground":"#908caa","symbolIcon.folderForeground":"#908caa","symbolIcon.functionForeground":"#908caa","symbolIcon.interfaceForeground":"#908caa","symbolIcon.keyForeground":"#908caa","symbolIcon.keywordForeground":"#908caa","symbolIcon.methodForeground":"#908caa","symbolIcon.moduleForeground":"#908caa","symbolIcon.namespaceForeground":"#908caa","symbolIcon.nullForeground":"#908caa","symbolIcon.numberForeground":"#908caa","symbolIcon.objectForeground":"#908caa","symbolIcon.operatorForeground":"#908caa","symbolIcon.packageForeground":"#908caa","symbolIcon.propertyForeground":"#908caa","symbolIcon.referenceForeground":"#908caa","symbolIcon.snippetForeground":"#908caa","symbolIcon.stringForeground":"#908caa","symbolIcon.structForeground":"#908caa","symbolIcon.textForeground":"#908caa","symbolIcon.typeParameterForeground":"#908caa","symbolIcon.unitForeground":"#908caa","symbolIcon.variableForeground":"#908caa","tab.activeBackground":"#6e6a861a","tab.activeForeground":"#e0def4","tab.activeModifiedBorder":"#9ccfd8","tab.border":"#0000","tab.hoverBackground":"#6e6a8633","tab.inactiveBackground":"#0000","tab.inactiveForeground":"#908caa","tab.inactiveModifiedBorder":"#9ccfd880","tab.lastPinnedBorder":"#6e6a86","tab.unfocusedActiveBackground":"#0000","tab.unfocusedHoverBackground":"#0000","tab.unfocusedInactiveBackground":"#0000","tab.unfocusedInactiveModifiedBorder":"#9ccfd880","terminal.ansiBlack":"#26233a","terminal.ansiBlue":"#9ccfd8","terminal.ansiBrightBlack":"#908caa","terminal.ansiBrightBlue":"#9ccfd8","terminal.ansiBrightCyan":"#ebbcba","terminal.ansiBrightGreen":"#31748f","terminal.ansiBrightMagenta":"#c4a7e7","terminal.ansiBrightRed":"#eb6f92","terminal.ansiBrightWhite":"#e0def4","terminal.ansiBrightYellow":"#f6c177","terminal.ansiCyan":"#ebbcba","terminal.ansiGreen":"#31748f","terminal.ansiMagenta":"#c4a7e7","terminal.ansiRed":"#eb6f92","terminal.ansiWhite":"#e0def4","terminal.ansiYellow":"#f6c177","terminal.dropBackground":"#6e6a8633","terminal.foreground":"#e0def4","terminal.selectionBackground":"#6e6a8633","terminal.tab.activeBorder":"#e0def4","terminalCursor.background":"#e0def4","terminalCursor.foreground":"#6e6a86","textBlockQuote.background":"#1f1d2e","textBlockQuote.border":"#6e6a8633","textCodeBlock.background":"#1f1d2e","textLink.activeForeground":"#c4a7e7e6","textLink.foreground":"#c4a7e7","textPreformat.foreground":"#f6c177","textSeparator.foreground":"#908caa","titleBar.activeBackground":"#191724","titleBar.activeForeground":"#908caa","titleBar.inactiveBackground":"#1f1d2e","titleBar.inactiveForeground":"#908caa","toolbar.activeBackground":"#6e6a8666","toolbar.hoverBackground":"#6e6a8633","tree.indentGuidesStroke":"#908caa","walkThrough.embeddedEditorBackground":"#191724","welcomePage.background":"#191724","widget.shadow":"#1f1d2e4d","window.activeBorder":"#1f1d2e","window.inactiveBorder":"#1f1d2e"},"displayName":"Ros\xE9 Pine","name":"rose-pine","tokenColors":[{"scope":["comment"],"settings":{"fontStyle":"italic","foreground":"#6e6a86"}},{"scope":["constant"],"settings":{"foreground":"#31748f"}},{"scope":["constant.numeric","constant.language"],"settings":{"foreground":"#ebbcba"}},{"scope":["entity.name"],"settings":{"foreground":"#ebbcba"}},{"scope":["entity.name.section","entity.name.tag","entity.name.namespace","entity.name.type"],"settings":{"foreground":"#9ccfd8"}},{"scope":["entity.other.attribute-name","entity.other.inherited-class"],"settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":["invalid"],"settings":{"foreground":"#eb6f92"}},{"scope":["invalid.deprecated"],"settings":{"foreground":"#908caa"}},{"scope":["keyword","variable.language.this"],"settings":{"foreground":"#31748f"}},{"scope":["markup.inserted.diff"],"settings":{"foreground":"#9ccfd8"}},{"scope":["markup.deleted.diff"],"settings":{"foreground":"#eb6f92"}},{"scope":"markup.heading","settings":{"fontStyle":"bold"}},{"scope":"markup.bold.markdown","settings":{"fontStyle":"bold"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["meta.diff.range"],"settings":{"foreground":"#c4a7e7"}},{"scope":["meta.tag","meta.brace"],"settings":{"foreground":"#e0def4"}},{"scope":["meta.import","meta.export"],"settings":{"foreground":"#31748f"}},{"scope":"meta.directive.vue","settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":"meta.property-name.css","settings":{"foreground":"#9ccfd8"}},{"scope":"meta.property-value.css","settings":{"foreground":"#f6c177"}},{"scope":"meta.tag.other.html","settings":{"foreground":"#908caa"}},{"scope":["punctuation"],"settings":{"foreground":"#908caa"}},{"scope":["punctuation.accessor"],"settings":{"foreground":"#31748f"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#f6c177"}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#6e6a86"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#31748f"}},{"scope":["string"],"settings":{"foreground":"#f6c177"}},{"scope":["support"],"settings":{"foreground":"#9ccfd8"}},{"scope":["support.constant"],"settings":{"foreground":"#f6c177"}},{"scope":["support.function"],"settings":{"fontStyle":"italic","foreground":"#eb6f92"}},{"scope":["variable"],"settings":{"fontStyle":"italic","foreground":"#ebbcba"}},{"scope":["variable.other","variable.language","variable.function","variable.argument"],"settings":{"foreground":"#e0def4"}},{"scope":["variable.parameter"],"settings":{"foreground":"#c4a7e7"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/rose-pine-dawn-xjyRql3i.js b/docs/assets/rose-pine-dawn-xjyRql3i.js new file mode 100644 index 0000000..7894556 --- /dev/null +++ b/docs/assets/rose-pine-dawn-xjyRql3i.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#575279","activityBar.background":"#faf4ed","activityBar.dropBorder":"#f2e9e1","activityBar.foreground":"#575279","activityBar.inactiveForeground":"#797593","activityBarBadge.background":"#d7827e","activityBarBadge.foreground":"#faf4ed","badge.background":"#d7827e","badge.foreground":"#faf4ed","banner.background":"#fffaf3","banner.foreground":"#575279","banner.iconForeground":"#797593","breadcrumb.activeSelectionForeground":"#d7827e","breadcrumb.background":"#faf4ed","breadcrumb.focusForeground":"#797593","breadcrumb.foreground":"#9893a5","breadcrumbPicker.background":"#fffaf3","button.background":"#d7827e","button.foreground":"#faf4ed","button.hoverBackground":"#d7827ee6","button.secondaryBackground":"#fffaf3","button.secondaryForeground":"#575279","button.secondaryHoverBackground":"#f2e9e1","charts.blue":"#56949f","charts.foreground":"#575279","charts.green":"#286983","charts.lines":"#797593","charts.orange":"#d7827e","charts.purple":"#907aa9","charts.red":"#b4637a","charts.yellow":"#ea9d34","checkbox.background":"#fffaf3","checkbox.border":"#6e6a8614","checkbox.foreground":"#575279","debugExceptionWidget.background":"#fffaf3","debugExceptionWidget.border":"#6e6a8614","debugIcon.breakpointCurrentStackframeForeground":"#797593","debugIcon.breakpointDisabledForeground":"#797593","debugIcon.breakpointForeground":"#797593","debugIcon.breakpointStackframeForeground":"#797593","debugIcon.breakpointUnverifiedForeground":"#797593","debugIcon.continueForeground":"#797593","debugIcon.disconnectForeground":"#797593","debugIcon.pauseForeground":"#797593","debugIcon.restartForeground":"#797593","debugIcon.startForeground":"#797593","debugIcon.stepBackForeground":"#797593","debugIcon.stepIntoForeground":"#797593","debugIcon.stepOutForeground":"#797593","debugIcon.stepOverForeground":"#797593","debugIcon.stopForeground":"#b4637a","debugToolBar.background":"#fffaf3","debugToolBar.border":"#f2e9e1","descriptionForeground":"#797593","diffEditor.border":"#f2e9e1","diffEditor.diagonalFill":"#6e6a8626","diffEditor.insertedLineBackground":"#56949f26","diffEditor.insertedTextBackground":"#56949f26","diffEditor.removedLineBackground":"#b4637a26","diffEditor.removedTextBackground":"#b4637a26","diffEditorOverview.insertedForeground":"#56949f80","diffEditorOverview.removedForeground":"#b4637a80","dropdown.background":"#fffaf3","dropdown.border":"#6e6a8614","dropdown.foreground":"#575279","dropdown.listBackground":"#fffaf3","editor.background":"#faf4ed","editor.findMatchBackground":"#ea9d3433","editor.findMatchBorder":"#ea9d3480","editor.findMatchForeground":"#575279","editor.findMatchHighlightBackground":"#6e6a8626","editor.findMatchHighlightForeground":"#575279cc","editor.findRangeHighlightBackground":"#6e6a8626","editor.findRangeHighlightBorder":"#0000","editor.focusedStackFrameHighlightBackground":"#6e6a8614","editor.foldBackground":"#6e6a8614","editor.foreground":"#575279","editor.hoverHighlightBackground":"#0000","editor.inactiveSelectionBackground":"#6e6a860d","editor.inlineValuesBackground":"#0000","editor.inlineValuesForeground":"#797593","editor.lineHighlightBackground":"#6e6a860d","editor.lineHighlightBorder":"#0000","editor.linkedEditingBackground":"#6e6a8614","editor.rangeHighlightBackground":"#6e6a860d","editor.selectionBackground":"#6e6a8614","editor.selectionForeground":"#575279","editor.selectionHighlightBackground":"#6e6a8614","editor.selectionHighlightBorder":"#faf4ed","editor.snippetFinalTabstopHighlightBackground":"#6e6a8614","editor.snippetFinalTabstopHighlightBorder":"#fffaf3","editor.snippetTabstopHighlightBackground":"#6e6a8614","editor.snippetTabstopHighlightBorder":"#fffaf3","editor.stackFrameHighlightBackground":"#6e6a8614","editor.symbolHighlightBackground":"#6e6a8614","editor.symbolHighlightBorder":"#0000","editor.wordHighlightBackground":"#6e6a8614","editor.wordHighlightBorder":"#0000","editor.wordHighlightStrongBackground":"#6e6a8614","editor.wordHighlightStrongBorder":"#6e6a8614","editorBracketHighlight.foreground1":"#b4637a80","editorBracketHighlight.foreground2":"#28698380","editorBracketHighlight.foreground3":"#ea9d3480","editorBracketHighlight.foreground4":"#56949f80","editorBracketHighlight.foreground5":"#d7827e80","editorBracketHighlight.foreground6":"#907aa980","editorBracketMatch.background":"#0000","editorBracketMatch.border":"#797593","editorBracketPairGuide.activeBackground1":"#286983","editorBracketPairGuide.activeBackground2":"#d7827e","editorBracketPairGuide.activeBackground3":"#907aa9","editorBracketPairGuide.activeBackground4":"#56949f","editorBracketPairGuide.activeBackground5":"#ea9d34","editorBracketPairGuide.activeBackground6":"#b4637a","editorBracketPairGuide.background1":"#28698380","editorBracketPairGuide.background2":"#d7827e80","editorBracketPairGuide.background3":"#907aa980","editorBracketPairGuide.background4":"#56949f80","editorBracketPairGuide.background5":"#ea9d3480","editorBracketPairGuide.background6":"#b4637a80","editorCodeLens.foreground":"#d7827e","editorCursor.background":"#575279","editorCursor.foreground":"#9893a5","editorError.border":"#0000","editorError.foreground":"#b4637a","editorGhostText.foreground":"#797593","editorGroup.border":"#0000","editorGroup.dropBackground":"#fffaf3","editorGroup.emptyBackground":"#0000","editorGroup.focusedEmptyBorder":"#0000","editorGroupHeader.noTabsBackground":"#0000","editorGroupHeader.tabsBackground":"#0000","editorGroupHeader.tabsBorder":"#0000","editorGutter.addedBackground":"#56949f","editorGutter.background":"#faf4ed","editorGutter.commentRangeForeground":"#f2e9e1","editorGutter.deletedBackground":"#b4637a","editorGutter.foldingControlForeground":"#907aa9","editorGutter.modifiedBackground":"#d7827e","editorHint.border":"#0000","editorHint.foreground":"#797593","editorHoverWidget.background":"#fffaf3","editorHoverWidget.border":"#9893a580","editorHoverWidget.foreground":"#797593","editorHoverWidget.highlightForeground":"#575279","editorHoverWidget.statusBarBackground":"#0000","editorIndentGuide.activeBackground1":"#9893a5","editorIndentGuide.background1":"#6e6a8626","editorInfo.border":"#f2e9e1","editorInfo.foreground":"#56949f","editorInlayHint.background":"#f2e9e180","editorInlayHint.foreground":"#79759380","editorInlayHint.parameterBackground":"#f2e9e180","editorInlayHint.parameterForeground":"#907aa980","editorInlayHint.typeBackground":"#f2e9e180","editorInlayHint.typeForeground":"#56949f80","editorLightBulb.foreground":"#286983","editorLightBulbAutoFix.foreground":"#d7827e","editorLineNumber.activeForeground":"#575279","editorLineNumber.foreground":"#797593","editorLink.activeForeground":"#d7827e","editorMarkerNavigation.background":"#fffaf3","editorMarkerNavigationError.background":"#fffaf3","editorMarkerNavigationInfo.background":"#fffaf3","editorMarkerNavigationWarning.background":"#fffaf3","editorOverviewRuler.addedForeground":"#56949f80","editorOverviewRuler.background":"#faf4ed","editorOverviewRuler.border":"#6e6a8626","editorOverviewRuler.bracketMatchForeground":"#797593","editorOverviewRuler.commentForeground":"#79759380","editorOverviewRuler.commentUnresolvedForeground":"#ea9d3480","editorOverviewRuler.commonContentForeground":"#6e6a860d","editorOverviewRuler.currentContentForeground":"#6e6a8614","editorOverviewRuler.deletedForeground":"#b4637a80","editorOverviewRuler.errorForeground":"#b4637a80","editorOverviewRuler.findMatchForeground":"#6e6a8626","editorOverviewRuler.incomingContentForeground":"#907aa980","editorOverviewRuler.infoForeground":"#56949f80","editorOverviewRuler.modifiedForeground":"#d7827e80","editorOverviewRuler.rangeHighlightForeground":"#6e6a8626","editorOverviewRuler.selectionHighlightForeground":"#6e6a8626","editorOverviewRuler.warningForeground":"#ea9d3480","editorOverviewRuler.wordHighlightForeground":"#6e6a8614","editorOverviewRuler.wordHighlightStrongForeground":"#6e6a8626","editorPane.background":"#0000","editorRuler.foreground":"#6e6a8626","editorSuggestWidget.background":"#fffaf3","editorSuggestWidget.border":"#0000","editorSuggestWidget.focusHighlightForeground":"#d7827e","editorSuggestWidget.foreground":"#797593","editorSuggestWidget.highlightForeground":"#d7827e","editorSuggestWidget.selectedBackground":"#6e6a8614","editorSuggestWidget.selectedForeground":"#575279","editorSuggestWidget.selectedIconForeground":"#575279","editorUnnecessaryCode.border":"#0000","editorUnnecessaryCode.opacity":"#57527980","editorWarning.border":"#0000","editorWarning.foreground":"#ea9d34","editorWhitespace.foreground":"#9893a580","editorWidget.background":"#fffaf3","editorWidget.border":"#f2e9e1","editorWidget.foreground":"#797593","editorWidget.resizeBorder":"#9893a5","errorForeground":"#b4637a","extensionBadge.remoteBackground":"#907aa9","extensionBadge.remoteForeground":"#faf4ed","extensionButton.prominentBackground":"#d7827e","extensionButton.prominentForeground":"#faf4ed","extensionButton.prominentHoverBackground":"#d7827ee6","extensionIcon.preReleaseForeground":"#286983","extensionIcon.starForeground":"#d7827e","extensionIcon.verifiedForeground":"#907aa9","focusBorder":"#6e6a8614","foreground":"#575279","git.blame.editorDecorationForeground":"#9893a5","gitDecoration.addedResourceForeground":"#56949f","gitDecoration.conflictingResourceForeground":"#b4637a","gitDecoration.deletedResourceForeground":"#797593","gitDecoration.ignoredResourceForeground":"#9893a5","gitDecoration.modifiedResourceForeground":"#d7827e","gitDecoration.renamedResourceForeground":"#286983","gitDecoration.stageDeletedResourceForeground":"#b4637a","gitDecoration.stageModifiedResourceForeground":"#907aa9","gitDecoration.submoduleResourceForeground":"#ea9d34","gitDecoration.untrackedResourceForeground":"#ea9d34","icon.foreground":"#797593","input.background":"#f2e9e180","input.border":"#6e6a8614","input.foreground":"#575279","input.placeholderForeground":"#797593","inputOption.activeBackground":"#d7827e26","inputOption.activeBorder":"#0000","inputOption.activeForeground":"#d7827e","inputValidation.errorBackground":"#fffaf3","inputValidation.errorBorder":"#6e6a8626","inputValidation.errorForeground":"#b4637a","inputValidation.infoBackground":"#fffaf3","inputValidation.infoBorder":"#6e6a8626","inputValidation.infoForeground":"#56949f","inputValidation.warningBackground":"#fffaf3","inputValidation.warningBorder":"#6e6a8626","inputValidation.warningForeground":"#56949f80","keybindingLabel.background":"#f2e9e1","keybindingLabel.border":"#6e6a8626","keybindingLabel.bottomBorder":"#6e6a8626","keybindingLabel.foreground":"#907aa9","keybindingTable.headerBackground":"#f2e9e1","keybindingTable.rowsBackground":"#fffaf3","list.activeSelectionBackground":"#6e6a8614","list.activeSelectionForeground":"#575279","list.deemphasizedForeground":"#797593","list.dropBackground":"#fffaf3","list.errorForeground":"#b4637a","list.filterMatchBackground":"#fffaf3","list.filterMatchBorder":"#d7827e","list.focusBackground":"#6e6a8626","list.focusForeground":"#575279","list.focusOutline":"#6e6a8614","list.highlightForeground":"#d7827e","list.hoverBackground":"#6e6a860d","list.hoverForeground":"#575279","list.inactiveFocusBackground":"#6e6a860d","list.inactiveSelectionBackground":"#fffaf3","list.inactiveSelectionForeground":"#575279","list.invalidItemForeground":"#b4637a","list.warningForeground":"#ea9d34","listFilterWidget.background":"#fffaf3","listFilterWidget.noMatchesOutline":"#b4637a","listFilterWidget.outline":"#f2e9e1","menu.background":"#fffaf3","menu.border":"#6e6a860d","menu.foreground":"#575279","menu.selectionBackground":"#6e6a8614","menu.selectionBorder":"#f2e9e1","menu.selectionForeground":"#575279","menu.separatorBackground":"#6e6a8626","menubar.selectionBackground":"#6e6a8614","menubar.selectionBorder":"#6e6a860d","menubar.selectionForeground":"#575279","merge.border":"#f2e9e1","merge.commonContentBackground":"#6e6a8614","merge.commonHeaderBackground":"#6e6a8614","merge.currentContentBackground":"#ea9d3480","merge.currentHeaderBackground":"#ea9d3480","merge.incomingContentBackground":"#56949f80","merge.incomingHeaderBackground":"#56949f80","minimap.background":"#fffaf3","minimap.errorHighlight":"#b4637a80","minimap.findMatchHighlight":"#6e6a8614","minimap.selectionHighlight":"#6e6a8614","minimap.warningHighlight":"#ea9d3480","minimapGutter.addedBackground":"#56949f","minimapGutter.deletedBackground":"#b4637a","minimapGutter.modifiedBackground":"#d7827e","minimapSlider.activeBackground":"#6e6a8626","minimapSlider.background":"#6e6a8614","minimapSlider.hoverBackground":"#6e6a8614","notebook.cellBorderColor":"#56949f80","notebook.cellEditorBackground":"#fffaf3","notebook.cellHoverBackground":"#f2e9e180","notebook.focusedCellBackground":"#6e6a860d","notebook.focusedCellBorder":"#56949f","notebook.outputContainerBackgroundColor":"#6e6a860d","notificationCenter.border":"#6e6a8614","notificationCenterHeader.background":"#fffaf3","notificationCenterHeader.foreground":"#797593","notificationLink.foreground":"#907aa9","notificationToast.border":"#6e6a8614","notifications.background":"#fffaf3","notifications.border":"#6e6a8614","notifications.foreground":"#575279","notificationsErrorIcon.foreground":"#b4637a","notificationsInfoIcon.foreground":"#56949f","notificationsWarningIcon.foreground":"#ea9d34","panel.background":"#fffaf3","panel.border":"#0000","panel.dropBorder":"#f2e9e1","panelInput.border":"#fffaf3","panelSection.dropBackground":"#6e6a8614","panelSectionHeader.background":"#fffaf3","panelSectionHeader.foreground":"#575279","panelTitle.activeBorder":"#6e6a8626","panelTitle.activeForeground":"#575279","panelTitle.inactiveForeground":"#797593","peekView.border":"#f2e9e1","peekViewEditor.background":"#fffaf3","peekViewEditor.matchHighlightBackground":"#6e6a8626","peekViewResult.background":"#fffaf3","peekViewResult.fileForeground":"#797593","peekViewResult.lineForeground":"#797593","peekViewResult.matchHighlightBackground":"#6e6a8626","peekViewResult.selectionBackground":"#6e6a8614","peekViewResult.selectionForeground":"#575279","peekViewTitle.background":"#f2e9e1","peekViewTitleDescription.foreground":"#797593","pickerGroup.border":"#6e6a8626","pickerGroup.foreground":"#907aa9","ports.iconRunningProcessForeground":"#d7827e","problemsErrorIcon.foreground":"#b4637a","problemsInfoIcon.foreground":"#56949f","problemsWarningIcon.foreground":"#ea9d34","progressBar.background":"#d7827e","quickInput.background":"#fffaf3","quickInput.foreground":"#797593","quickInputList.focusBackground":"#6e6a8614","quickInputList.focusForeground":"#575279","quickInputList.focusIconForeground":"#575279","scrollbar.shadow":"#fffaf34d","scrollbarSlider.activeBackground":"#28698380","scrollbarSlider.background":"#6e6a8614","scrollbarSlider.hoverBackground":"#6e6a8626","searchEditor.findMatchBackground":"#6e6a8614","selection.background":"#6e6a8626","settings.focusedRowBackground":"#fffaf3","settings.focusedRowBorder":"#6e6a8614","settings.headerForeground":"#575279","settings.modifiedItemIndicator":"#d7827e","settings.rowHoverBackground":"#fffaf3","sideBar.background":"#faf4ed","sideBar.dropBackground":"#fffaf3","sideBar.foreground":"#797593","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#6e6a8614","statusBar.background":"#faf4ed","statusBar.debuggingBackground":"#907aa9","statusBar.debuggingForeground":"#faf4ed","statusBar.foreground":"#797593","statusBar.noFolderBackground":"#faf4ed","statusBar.noFolderForeground":"#797593","statusBarItem.activeBackground":"#6e6a8626","statusBarItem.errorBackground":"#faf4ed","statusBarItem.errorForeground":"#b4637a","statusBarItem.hoverBackground":"#6e6a8614","statusBarItem.prominentBackground":"#f2e9e1","statusBarItem.prominentForeground":"#575279","statusBarItem.prominentHoverBackground":"#6e6a8614","statusBarItem.remoteBackground":"#faf4ed","statusBarItem.remoteForeground":"#ea9d34","symbolIcon.arrayForeground":"#797593","symbolIcon.classForeground":"#797593","symbolIcon.colorForeground":"#797593","symbolIcon.constantForeground":"#797593","symbolIcon.constructorForeground":"#797593","symbolIcon.enumeratorForeground":"#797593","symbolIcon.enumeratorMemberForeground":"#797593","symbolIcon.eventForeground":"#797593","symbolIcon.fieldForeground":"#797593","symbolIcon.fileForeground":"#797593","symbolIcon.folderForeground":"#797593","symbolIcon.functionForeground":"#797593","symbolIcon.interfaceForeground":"#797593","symbolIcon.keyForeground":"#797593","symbolIcon.keywordForeground":"#797593","symbolIcon.methodForeground":"#797593","symbolIcon.moduleForeground":"#797593","symbolIcon.namespaceForeground":"#797593","symbolIcon.nullForeground":"#797593","symbolIcon.numberForeground":"#797593","symbolIcon.objectForeground":"#797593","symbolIcon.operatorForeground":"#797593","symbolIcon.packageForeground":"#797593","symbolIcon.propertyForeground":"#797593","symbolIcon.referenceForeground":"#797593","symbolIcon.snippetForeground":"#797593","symbolIcon.stringForeground":"#797593","symbolIcon.structForeground":"#797593","symbolIcon.textForeground":"#797593","symbolIcon.typeParameterForeground":"#797593","symbolIcon.unitForeground":"#797593","symbolIcon.variableForeground":"#797593","tab.activeBackground":"#6e6a860d","tab.activeForeground":"#575279","tab.activeModifiedBorder":"#56949f","tab.border":"#0000","tab.hoverBackground":"#6e6a8614","tab.inactiveBackground":"#0000","tab.inactiveForeground":"#797593","tab.inactiveModifiedBorder":"#56949f80","tab.lastPinnedBorder":"#9893a5","tab.unfocusedActiveBackground":"#0000","tab.unfocusedHoverBackground":"#0000","tab.unfocusedInactiveBackground":"#0000","tab.unfocusedInactiveModifiedBorder":"#56949f80","terminal.ansiBlack":"#f2e9e1","terminal.ansiBlue":"#56949f","terminal.ansiBrightBlack":"#797593","terminal.ansiBrightBlue":"#56949f","terminal.ansiBrightCyan":"#d7827e","terminal.ansiBrightGreen":"#286983","terminal.ansiBrightMagenta":"#907aa9","terminal.ansiBrightRed":"#b4637a","terminal.ansiBrightWhite":"#575279","terminal.ansiBrightYellow":"#ea9d34","terminal.ansiCyan":"#d7827e","terminal.ansiGreen":"#286983","terminal.ansiMagenta":"#907aa9","terminal.ansiRed":"#b4637a","terminal.ansiWhite":"#575279","terminal.ansiYellow":"#ea9d34","terminal.dropBackground":"#6e6a8614","terminal.foreground":"#575279","terminal.selectionBackground":"#6e6a8614","terminal.tab.activeBorder":"#575279","terminalCursor.background":"#575279","terminalCursor.foreground":"#9893a5","textBlockQuote.background":"#fffaf3","textBlockQuote.border":"#6e6a8614","textCodeBlock.background":"#fffaf3","textLink.activeForeground":"#907aa9e6","textLink.foreground":"#907aa9","textPreformat.foreground":"#ea9d34","textSeparator.foreground":"#797593","titleBar.activeBackground":"#faf4ed","titleBar.activeForeground":"#797593","titleBar.inactiveBackground":"#fffaf3","titleBar.inactiveForeground":"#797593","toolbar.activeBackground":"#6e6a8626","toolbar.hoverBackground":"#6e6a8614","tree.indentGuidesStroke":"#797593","walkThrough.embeddedEditorBackground":"#faf4ed","welcomePage.background":"#faf4ed","widget.shadow":"#fffaf34d","window.activeBorder":"#fffaf3","window.inactiveBorder":"#fffaf3"},"displayName":"Ros\xE9 Pine Dawn","name":"rose-pine-dawn","tokenColors":[{"scope":["comment"],"settings":{"fontStyle":"italic","foreground":"#9893a5"}},{"scope":["constant"],"settings":{"foreground":"#286983"}},{"scope":["constant.numeric","constant.language"],"settings":{"foreground":"#d7827e"}},{"scope":["entity.name"],"settings":{"foreground":"#d7827e"}},{"scope":["entity.name.section","entity.name.tag","entity.name.namespace","entity.name.type"],"settings":{"foreground":"#56949f"}},{"scope":["entity.other.attribute-name","entity.other.inherited-class"],"settings":{"fontStyle":"italic","foreground":"#907aa9"}},{"scope":["invalid"],"settings":{"foreground":"#b4637a"}},{"scope":["invalid.deprecated"],"settings":{"foreground":"#797593"}},{"scope":["keyword","variable.language.this"],"settings":{"foreground":"#286983"}},{"scope":["markup.inserted.diff"],"settings":{"foreground":"#56949f"}},{"scope":["markup.deleted.diff"],"settings":{"foreground":"#b4637a"}},{"scope":"markup.heading","settings":{"fontStyle":"bold"}},{"scope":"markup.bold.markdown","settings":{"fontStyle":"bold"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["meta.diff.range"],"settings":{"foreground":"#907aa9"}},{"scope":["meta.tag","meta.brace"],"settings":{"foreground":"#575279"}},{"scope":["meta.import","meta.export"],"settings":{"foreground":"#286983"}},{"scope":"meta.directive.vue","settings":{"fontStyle":"italic","foreground":"#907aa9"}},{"scope":"meta.property-name.css","settings":{"foreground":"#56949f"}},{"scope":"meta.property-value.css","settings":{"foreground":"#ea9d34"}},{"scope":"meta.tag.other.html","settings":{"foreground":"#797593"}},{"scope":["punctuation"],"settings":{"foreground":"#797593"}},{"scope":["punctuation.accessor"],"settings":{"foreground":"#286983"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#ea9d34"}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#9893a5"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#286983"}},{"scope":["string"],"settings":{"foreground":"#ea9d34"}},{"scope":["support"],"settings":{"foreground":"#56949f"}},{"scope":["support.constant"],"settings":{"foreground":"#ea9d34"}},{"scope":["support.function"],"settings":{"fontStyle":"italic","foreground":"#b4637a"}},{"scope":["variable"],"settings":{"fontStyle":"italic","foreground":"#d7827e"}},{"scope":["variable.other","variable.language","variable.function","variable.argument"],"settings":{"foreground":"#575279"}},{"scope":["variable.parameter"],"settings":{"foreground":"#907aa9"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/rose-pine-moon-C5nFR3AZ.js b/docs/assets/rose-pine-moon-C5nFR3AZ.js new file mode 100644 index 0000000..6d34252 --- /dev/null +++ b/docs/assets/rose-pine-moon-C5nFR3AZ.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#e0def4","activityBar.background":"#232136","activityBar.dropBorder":"#393552","activityBar.foreground":"#e0def4","activityBar.inactiveForeground":"#908caa","activityBarBadge.background":"#ea9a97","activityBarBadge.foreground":"#232136","badge.background":"#ea9a97","badge.foreground":"#232136","banner.background":"#2a273f","banner.foreground":"#e0def4","banner.iconForeground":"#908caa","breadcrumb.activeSelectionForeground":"#ea9a97","breadcrumb.background":"#232136","breadcrumb.focusForeground":"#908caa","breadcrumb.foreground":"#6e6a86","breadcrumbPicker.background":"#2a273f","button.background":"#ea9a97","button.foreground":"#232136","button.hoverBackground":"#ea9a97e6","button.secondaryBackground":"#2a273f","button.secondaryForeground":"#e0def4","button.secondaryHoverBackground":"#393552","charts.blue":"#9ccfd8","charts.foreground":"#e0def4","charts.green":"#3e8fb0","charts.lines":"#908caa","charts.orange":"#ea9a97","charts.purple":"#c4a7e7","charts.red":"#eb6f92","charts.yellow":"#f6c177","checkbox.background":"#2a273f","checkbox.border":"#817c9c26","checkbox.foreground":"#e0def4","debugExceptionWidget.background":"#2a273f","debugExceptionWidget.border":"#817c9c26","debugIcon.breakpointCurrentStackframeForeground":"#908caa","debugIcon.breakpointDisabledForeground":"#908caa","debugIcon.breakpointForeground":"#908caa","debugIcon.breakpointStackframeForeground":"#908caa","debugIcon.breakpointUnverifiedForeground":"#908caa","debugIcon.continueForeground":"#908caa","debugIcon.disconnectForeground":"#908caa","debugIcon.pauseForeground":"#908caa","debugIcon.restartForeground":"#908caa","debugIcon.startForeground":"#908caa","debugIcon.stepBackForeground":"#908caa","debugIcon.stepIntoForeground":"#908caa","debugIcon.stepOutForeground":"#908caa","debugIcon.stepOverForeground":"#908caa","debugIcon.stopForeground":"#eb6f92","debugToolBar.background":"#2a273f","debugToolBar.border":"#393552","descriptionForeground":"#908caa","diffEditor.border":"#393552","diffEditor.diagonalFill":"#817c9c4d","diffEditor.insertedLineBackground":"#9ccfd826","diffEditor.insertedTextBackground":"#9ccfd826","diffEditor.removedLineBackground":"#eb6f9226","diffEditor.removedTextBackground":"#eb6f9226","diffEditorOverview.insertedForeground":"#9ccfd880","diffEditorOverview.removedForeground":"#eb6f9280","dropdown.background":"#2a273f","dropdown.border":"#817c9c26","dropdown.foreground":"#e0def4","dropdown.listBackground":"#2a273f","editor.background":"#232136","editor.findMatchBackground":"#f6c17733","editor.findMatchBorder":"#f6c17780","editor.findMatchForeground":"#e0def4","editor.findMatchHighlightBackground":"#817c9c4d","editor.findMatchHighlightForeground":"#e0def4cc","editor.findRangeHighlightBackground":"#817c9c4d","editor.findRangeHighlightBorder":"#0000","editor.focusedStackFrameHighlightBackground":"#817c9c26","editor.foldBackground":"#817c9c26","editor.foreground":"#e0def4","editor.hoverHighlightBackground":"#0000","editor.inactiveSelectionBackground":"#817c9c14","editor.inlineValuesBackground":"#0000","editor.inlineValuesForeground":"#908caa","editor.lineHighlightBackground":"#817c9c14","editor.lineHighlightBorder":"#0000","editor.linkedEditingBackground":"#817c9c26","editor.rangeHighlightBackground":"#817c9c14","editor.selectionBackground":"#817c9c26","editor.selectionForeground":"#e0def4","editor.selectionHighlightBackground":"#817c9c26","editor.selectionHighlightBorder":"#232136","editor.snippetFinalTabstopHighlightBackground":"#817c9c26","editor.snippetFinalTabstopHighlightBorder":"#2a273f","editor.snippetTabstopHighlightBackground":"#817c9c26","editor.snippetTabstopHighlightBorder":"#2a273f","editor.stackFrameHighlightBackground":"#817c9c26","editor.symbolHighlightBackground":"#817c9c26","editor.symbolHighlightBorder":"#0000","editor.wordHighlightBackground":"#817c9c26","editor.wordHighlightBorder":"#0000","editor.wordHighlightStrongBackground":"#817c9c26","editor.wordHighlightStrongBorder":"#817c9c26","editorBracketHighlight.foreground1":"#eb6f9280","editorBracketHighlight.foreground2":"#3e8fb080","editorBracketHighlight.foreground3":"#f6c17780","editorBracketHighlight.foreground4":"#9ccfd880","editorBracketHighlight.foreground5":"#ea9a9780","editorBracketHighlight.foreground6":"#c4a7e780","editorBracketMatch.background":"#0000","editorBracketMatch.border":"#908caa","editorBracketPairGuide.activeBackground1":"#3e8fb0","editorBracketPairGuide.activeBackground2":"#ea9a97","editorBracketPairGuide.activeBackground3":"#c4a7e7","editorBracketPairGuide.activeBackground4":"#9ccfd8","editorBracketPairGuide.activeBackground5":"#f6c177","editorBracketPairGuide.activeBackground6":"#eb6f92","editorBracketPairGuide.background1":"#3e8fb080","editorBracketPairGuide.background2":"#ea9a9780","editorBracketPairGuide.background3":"#c4a7e780","editorBracketPairGuide.background4":"#9ccfd880","editorBracketPairGuide.background5":"#f6c17780","editorBracketPairGuide.background6":"#eb6f9280","editorCodeLens.foreground":"#ea9a97","editorCursor.background":"#e0def4","editorCursor.foreground":"#6e6a86","editorError.border":"#0000","editorError.foreground":"#eb6f92","editorGhostText.foreground":"#908caa","editorGroup.border":"#0000","editorGroup.dropBackground":"#2a273f","editorGroup.emptyBackground":"#0000","editorGroup.focusedEmptyBorder":"#0000","editorGroupHeader.noTabsBackground":"#0000","editorGroupHeader.tabsBackground":"#0000","editorGroupHeader.tabsBorder":"#0000","editorGutter.addedBackground":"#9ccfd8","editorGutter.background":"#232136","editorGutter.commentRangeForeground":"#393552","editorGutter.deletedBackground":"#eb6f92","editorGutter.foldingControlForeground":"#c4a7e7","editorGutter.modifiedBackground":"#ea9a97","editorHint.border":"#0000","editorHint.foreground":"#908caa","editorHoverWidget.background":"#2a273f","editorHoverWidget.border":"#6e6a8680","editorHoverWidget.foreground":"#908caa","editorHoverWidget.highlightForeground":"#e0def4","editorHoverWidget.statusBarBackground":"#0000","editorIndentGuide.activeBackground1":"#6e6a86","editorIndentGuide.background1":"#817c9c4d","editorInfo.border":"#393552","editorInfo.foreground":"#9ccfd8","editorInlayHint.background":"#39355280","editorInlayHint.foreground":"#908caa80","editorInlayHint.parameterBackground":"#39355280","editorInlayHint.parameterForeground":"#c4a7e780","editorInlayHint.typeBackground":"#39355280","editorInlayHint.typeForeground":"#9ccfd880","editorLightBulb.foreground":"#3e8fb0","editorLightBulbAutoFix.foreground":"#ea9a97","editorLineNumber.activeForeground":"#e0def4","editorLineNumber.foreground":"#908caa","editorLink.activeForeground":"#ea9a97","editorMarkerNavigation.background":"#2a273f","editorMarkerNavigationError.background":"#2a273f","editorMarkerNavigationInfo.background":"#2a273f","editorMarkerNavigationWarning.background":"#2a273f","editorOverviewRuler.addedForeground":"#9ccfd880","editorOverviewRuler.background":"#232136","editorOverviewRuler.border":"#817c9c4d","editorOverviewRuler.bracketMatchForeground":"#908caa","editorOverviewRuler.commentForeground":"#908caa80","editorOverviewRuler.commentUnresolvedForeground":"#f6c17780","editorOverviewRuler.commonContentForeground":"#817c9c14","editorOverviewRuler.currentContentForeground":"#817c9c26","editorOverviewRuler.deletedForeground":"#eb6f9280","editorOverviewRuler.errorForeground":"#eb6f9280","editorOverviewRuler.findMatchForeground":"#817c9c4d","editorOverviewRuler.incomingContentForeground":"#c4a7e780","editorOverviewRuler.infoForeground":"#9ccfd880","editorOverviewRuler.modifiedForeground":"#ea9a9780","editorOverviewRuler.rangeHighlightForeground":"#817c9c4d","editorOverviewRuler.selectionHighlightForeground":"#817c9c4d","editorOverviewRuler.warningForeground":"#f6c17780","editorOverviewRuler.wordHighlightForeground":"#817c9c26","editorOverviewRuler.wordHighlightStrongForeground":"#817c9c4d","editorPane.background":"#0000","editorRuler.foreground":"#817c9c4d","editorSuggestWidget.background":"#2a273f","editorSuggestWidget.border":"#0000","editorSuggestWidget.focusHighlightForeground":"#ea9a97","editorSuggestWidget.foreground":"#908caa","editorSuggestWidget.highlightForeground":"#ea9a97","editorSuggestWidget.selectedBackground":"#817c9c26","editorSuggestWidget.selectedForeground":"#e0def4","editorSuggestWidget.selectedIconForeground":"#e0def4","editorUnnecessaryCode.border":"#0000","editorUnnecessaryCode.opacity":"#e0def480","editorWarning.border":"#0000","editorWarning.foreground":"#f6c177","editorWhitespace.foreground":"#6e6a8680","editorWidget.background":"#2a273f","editorWidget.border":"#393552","editorWidget.foreground":"#908caa","editorWidget.resizeBorder":"#6e6a86","errorForeground":"#eb6f92","extensionBadge.remoteBackground":"#c4a7e7","extensionBadge.remoteForeground":"#232136","extensionButton.prominentBackground":"#ea9a97","extensionButton.prominentForeground":"#232136","extensionButton.prominentHoverBackground":"#ea9a97e6","extensionIcon.preReleaseForeground":"#3e8fb0","extensionIcon.starForeground":"#ea9a97","extensionIcon.verifiedForeground":"#c4a7e7","focusBorder":"#817c9c26","foreground":"#e0def4","git.blame.editorDecorationForeground":"#6e6a86","gitDecoration.addedResourceForeground":"#9ccfd8","gitDecoration.conflictingResourceForeground":"#eb6f92","gitDecoration.deletedResourceForeground":"#908caa","gitDecoration.ignoredResourceForeground":"#6e6a86","gitDecoration.modifiedResourceForeground":"#ea9a97","gitDecoration.renamedResourceForeground":"#3e8fb0","gitDecoration.stageDeletedResourceForeground":"#eb6f92","gitDecoration.stageModifiedResourceForeground":"#c4a7e7","gitDecoration.submoduleResourceForeground":"#f6c177","gitDecoration.untrackedResourceForeground":"#f6c177","icon.foreground":"#908caa","input.background":"#39355280","input.border":"#817c9c26","input.foreground":"#e0def4","input.placeholderForeground":"#908caa","inputOption.activeBackground":"#ea9a9726","inputOption.activeBorder":"#0000","inputOption.activeForeground":"#ea9a97","inputValidation.errorBackground":"#2a273f","inputValidation.errorBorder":"#817c9c4d","inputValidation.errorForeground":"#eb6f92","inputValidation.infoBackground":"#2a273f","inputValidation.infoBorder":"#817c9c4d","inputValidation.infoForeground":"#9ccfd8","inputValidation.warningBackground":"#2a273f","inputValidation.warningBorder":"#817c9c4d","inputValidation.warningForeground":"#9ccfd880","keybindingLabel.background":"#393552","keybindingLabel.border":"#817c9c4d","keybindingLabel.bottomBorder":"#817c9c4d","keybindingLabel.foreground":"#c4a7e7","keybindingTable.headerBackground":"#393552","keybindingTable.rowsBackground":"#2a273f","list.activeSelectionBackground":"#817c9c26","list.activeSelectionForeground":"#e0def4","list.deemphasizedForeground":"#908caa","list.dropBackground":"#2a273f","list.errorForeground":"#eb6f92","list.filterMatchBackground":"#2a273f","list.filterMatchBorder":"#ea9a97","list.focusBackground":"#817c9c4d","list.focusForeground":"#e0def4","list.focusOutline":"#817c9c26","list.highlightForeground":"#ea9a97","list.hoverBackground":"#817c9c14","list.hoverForeground":"#e0def4","list.inactiveFocusBackground":"#817c9c14","list.inactiveSelectionBackground":"#2a273f","list.inactiveSelectionForeground":"#e0def4","list.invalidItemForeground":"#eb6f92","list.warningForeground":"#f6c177","listFilterWidget.background":"#2a273f","listFilterWidget.noMatchesOutline":"#eb6f92","listFilterWidget.outline":"#393552","menu.background":"#2a273f","menu.border":"#817c9c14","menu.foreground":"#e0def4","menu.selectionBackground":"#817c9c26","menu.selectionBorder":"#393552","menu.selectionForeground":"#e0def4","menu.separatorBackground":"#817c9c4d","menubar.selectionBackground":"#817c9c26","menubar.selectionBorder":"#817c9c14","menubar.selectionForeground":"#e0def4","merge.border":"#393552","merge.commonContentBackground":"#817c9c26","merge.commonHeaderBackground":"#817c9c26","merge.currentContentBackground":"#f6c17780","merge.currentHeaderBackground":"#f6c17780","merge.incomingContentBackground":"#9ccfd880","merge.incomingHeaderBackground":"#9ccfd880","minimap.background":"#2a273f","minimap.errorHighlight":"#eb6f9280","minimap.findMatchHighlight":"#817c9c26","minimap.selectionHighlight":"#817c9c26","minimap.warningHighlight":"#f6c17780","minimapGutter.addedBackground":"#9ccfd8","minimapGutter.deletedBackground":"#eb6f92","minimapGutter.modifiedBackground":"#ea9a97","minimapSlider.activeBackground":"#817c9c4d","minimapSlider.background":"#817c9c26","minimapSlider.hoverBackground":"#817c9c26","notebook.cellBorderColor":"#9ccfd880","notebook.cellEditorBackground":"#2a273f","notebook.cellHoverBackground":"#39355280","notebook.focusedCellBackground":"#817c9c14","notebook.focusedCellBorder":"#9ccfd8","notebook.outputContainerBackgroundColor":"#817c9c14","notificationCenter.border":"#817c9c26","notificationCenterHeader.background":"#2a273f","notificationCenterHeader.foreground":"#908caa","notificationLink.foreground":"#c4a7e7","notificationToast.border":"#817c9c26","notifications.background":"#2a273f","notifications.border":"#817c9c26","notifications.foreground":"#e0def4","notificationsErrorIcon.foreground":"#eb6f92","notificationsInfoIcon.foreground":"#9ccfd8","notificationsWarningIcon.foreground":"#f6c177","panel.background":"#2a273f","panel.border":"#0000","panel.dropBorder":"#393552","panelInput.border":"#2a273f","panelSection.dropBackground":"#817c9c26","panelSectionHeader.background":"#2a273f","panelSectionHeader.foreground":"#e0def4","panelTitle.activeBorder":"#817c9c4d","panelTitle.activeForeground":"#e0def4","panelTitle.inactiveForeground":"#908caa","peekView.border":"#393552","peekViewEditor.background":"#2a273f","peekViewEditor.matchHighlightBackground":"#817c9c4d","peekViewResult.background":"#2a273f","peekViewResult.fileForeground":"#908caa","peekViewResult.lineForeground":"#908caa","peekViewResult.matchHighlightBackground":"#817c9c4d","peekViewResult.selectionBackground":"#817c9c26","peekViewResult.selectionForeground":"#e0def4","peekViewTitle.background":"#393552","peekViewTitleDescription.foreground":"#908caa","pickerGroup.border":"#817c9c4d","pickerGroup.foreground":"#c4a7e7","ports.iconRunningProcessForeground":"#ea9a97","problemsErrorIcon.foreground":"#eb6f92","problemsInfoIcon.foreground":"#9ccfd8","problemsWarningIcon.foreground":"#f6c177","progressBar.background":"#ea9a97","quickInput.background":"#2a273f","quickInput.foreground":"#908caa","quickInputList.focusBackground":"#817c9c26","quickInputList.focusForeground":"#e0def4","quickInputList.focusIconForeground":"#e0def4","scrollbar.shadow":"#2a273f4d","scrollbarSlider.activeBackground":"#3e8fb080","scrollbarSlider.background":"#817c9c26","scrollbarSlider.hoverBackground":"#817c9c4d","searchEditor.findMatchBackground":"#817c9c26","selection.background":"#817c9c4d","settings.focusedRowBackground":"#2a273f","settings.focusedRowBorder":"#817c9c26","settings.headerForeground":"#e0def4","settings.modifiedItemIndicator":"#ea9a97","settings.rowHoverBackground":"#2a273f","sideBar.background":"#232136","sideBar.dropBackground":"#2a273f","sideBar.foreground":"#908caa","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#817c9c26","statusBar.background":"#232136","statusBar.debuggingBackground":"#c4a7e7","statusBar.debuggingForeground":"#232136","statusBar.foreground":"#908caa","statusBar.noFolderBackground":"#232136","statusBar.noFolderForeground":"#908caa","statusBarItem.activeBackground":"#817c9c4d","statusBarItem.errorBackground":"#232136","statusBarItem.errorForeground":"#eb6f92","statusBarItem.hoverBackground":"#817c9c26","statusBarItem.prominentBackground":"#393552","statusBarItem.prominentForeground":"#e0def4","statusBarItem.prominentHoverBackground":"#817c9c26","statusBarItem.remoteBackground":"#232136","statusBarItem.remoteForeground":"#f6c177","symbolIcon.arrayForeground":"#908caa","symbolIcon.classForeground":"#908caa","symbolIcon.colorForeground":"#908caa","symbolIcon.constantForeground":"#908caa","symbolIcon.constructorForeground":"#908caa","symbolIcon.enumeratorForeground":"#908caa","symbolIcon.enumeratorMemberForeground":"#908caa","symbolIcon.eventForeground":"#908caa","symbolIcon.fieldForeground":"#908caa","symbolIcon.fileForeground":"#908caa","symbolIcon.folderForeground":"#908caa","symbolIcon.functionForeground":"#908caa","symbolIcon.interfaceForeground":"#908caa","symbolIcon.keyForeground":"#908caa","symbolIcon.keywordForeground":"#908caa","symbolIcon.methodForeground":"#908caa","symbolIcon.moduleForeground":"#908caa","symbolIcon.namespaceForeground":"#908caa","symbolIcon.nullForeground":"#908caa","symbolIcon.numberForeground":"#908caa","symbolIcon.objectForeground":"#908caa","symbolIcon.operatorForeground":"#908caa","symbolIcon.packageForeground":"#908caa","symbolIcon.propertyForeground":"#908caa","symbolIcon.referenceForeground":"#908caa","symbolIcon.snippetForeground":"#908caa","symbolIcon.stringForeground":"#908caa","symbolIcon.structForeground":"#908caa","symbolIcon.textForeground":"#908caa","symbolIcon.typeParameterForeground":"#908caa","symbolIcon.unitForeground":"#908caa","symbolIcon.variableForeground":"#908caa","tab.activeBackground":"#817c9c14","tab.activeForeground":"#e0def4","tab.activeModifiedBorder":"#9ccfd8","tab.border":"#0000","tab.hoverBackground":"#817c9c26","tab.inactiveBackground":"#0000","tab.inactiveForeground":"#908caa","tab.inactiveModifiedBorder":"#9ccfd880","tab.lastPinnedBorder":"#6e6a86","tab.unfocusedActiveBackground":"#0000","tab.unfocusedHoverBackground":"#0000","tab.unfocusedInactiveBackground":"#0000","tab.unfocusedInactiveModifiedBorder":"#9ccfd880","terminal.ansiBlack":"#393552","terminal.ansiBlue":"#9ccfd8","terminal.ansiBrightBlack":"#908caa","terminal.ansiBrightBlue":"#9ccfd8","terminal.ansiBrightCyan":"#ea9a97","terminal.ansiBrightGreen":"#3e8fb0","terminal.ansiBrightMagenta":"#c4a7e7","terminal.ansiBrightRed":"#eb6f92","terminal.ansiBrightWhite":"#e0def4","terminal.ansiBrightYellow":"#f6c177","terminal.ansiCyan":"#ea9a97","terminal.ansiGreen":"#3e8fb0","terminal.ansiMagenta":"#c4a7e7","terminal.ansiRed":"#eb6f92","terminal.ansiWhite":"#e0def4","terminal.ansiYellow":"#f6c177","terminal.dropBackground":"#817c9c26","terminal.foreground":"#e0def4","terminal.selectionBackground":"#817c9c26","terminal.tab.activeBorder":"#e0def4","terminalCursor.background":"#e0def4","terminalCursor.foreground":"#6e6a86","textBlockQuote.background":"#2a273f","textBlockQuote.border":"#817c9c26","textCodeBlock.background":"#2a273f","textLink.activeForeground":"#c4a7e7e6","textLink.foreground":"#c4a7e7","textPreformat.foreground":"#f6c177","textSeparator.foreground":"#908caa","titleBar.activeBackground":"#232136","titleBar.activeForeground":"#908caa","titleBar.inactiveBackground":"#2a273f","titleBar.inactiveForeground":"#908caa","toolbar.activeBackground":"#817c9c4d","toolbar.hoverBackground":"#817c9c26","tree.indentGuidesStroke":"#908caa","walkThrough.embeddedEditorBackground":"#232136","welcomePage.background":"#232136","widget.shadow":"#2a273f4d","window.activeBorder":"#2a273f","window.inactiveBorder":"#2a273f"},"displayName":"Ros\xE9 Pine Moon","name":"rose-pine-moon","tokenColors":[{"scope":["comment"],"settings":{"fontStyle":"italic","foreground":"#6e6a86"}},{"scope":["constant"],"settings":{"foreground":"#3e8fb0"}},{"scope":["constant.numeric","constant.language"],"settings":{"foreground":"#ea9a97"}},{"scope":["entity.name"],"settings":{"foreground":"#ea9a97"}},{"scope":["entity.name.section","entity.name.tag","entity.name.namespace","entity.name.type"],"settings":{"foreground":"#9ccfd8"}},{"scope":["entity.other.attribute-name","entity.other.inherited-class"],"settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":["invalid"],"settings":{"foreground":"#eb6f92"}},{"scope":["invalid.deprecated"],"settings":{"foreground":"#908caa"}},{"scope":["keyword","variable.language.this"],"settings":{"foreground":"#3e8fb0"}},{"scope":["markup.inserted.diff"],"settings":{"foreground":"#9ccfd8"}},{"scope":["markup.deleted.diff"],"settings":{"foreground":"#eb6f92"}},{"scope":"markup.heading","settings":{"fontStyle":"bold"}},{"scope":"markup.bold.markdown","settings":{"fontStyle":"bold"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["meta.diff.range"],"settings":{"foreground":"#c4a7e7"}},{"scope":["meta.tag","meta.brace"],"settings":{"foreground":"#e0def4"}},{"scope":["meta.import","meta.export"],"settings":{"foreground":"#3e8fb0"}},{"scope":"meta.directive.vue","settings":{"fontStyle":"italic","foreground":"#c4a7e7"}},{"scope":"meta.property-name.css","settings":{"foreground":"#9ccfd8"}},{"scope":"meta.property-value.css","settings":{"foreground":"#f6c177"}},{"scope":"meta.tag.other.html","settings":{"foreground":"#908caa"}},{"scope":["punctuation"],"settings":{"foreground":"#908caa"}},{"scope":["punctuation.accessor"],"settings":{"foreground":"#3e8fb0"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#f6c177"}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#6e6a86"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#3e8fb0"}},{"scope":["string"],"settings":{"foreground":"#f6c177"}},{"scope":["support"],"settings":{"foreground":"#9ccfd8"}},{"scope":["support.constant"],"settings":{"foreground":"#f6c177"}},{"scope":["support.function"],"settings":{"fontStyle":"italic","foreground":"#eb6f92"}},{"scope":["variable"],"settings":{"fontStyle":"italic","foreground":"#ea9a97"}},{"scope":["variable.other","variable.language","variable.function","variable.argument"],"settings":{"foreground":"#e0def4"}},{"scope":["variable.parameter"],"settings":{"foreground":"#c4a7e7"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/rotate-ccw-CF2xzGPz.js b/docs/assets/rotate-ccw-CF2xzGPz.js new file mode 100644 index 0000000..9135b28 --- /dev/null +++ b/docs/assets/rotate-ccw-CF2xzGPz.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var a=t("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);export{a as t}; diff --git a/docs/assets/rpm-C2rCOQ1Z.js b/docs/assets/rpm-C2rCOQ1Z.js new file mode 100644 index 0000000..96dd8fd --- /dev/null +++ b/docs/assets/rpm-C2rCOQ1Z.js @@ -0,0 +1 @@ +import{n as p,t as r}from"./rpm-DnfrioeJ.js";export{r as rpmChanges,p as rpmSpec}; diff --git a/docs/assets/rpm-DnfrioeJ.js b/docs/assets/rpm-DnfrioeJ.js new file mode 100644 index 0000000..7f464ac --- /dev/null +++ b/docs/assets/rpm-DnfrioeJ.js @@ -0,0 +1 @@ +var a=/^-+$/,n=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,e=/^[\w+.-]+@[\w.-]+/;const c={name:"rpmchanges",token:function(r){return r.sol()&&(r.match(a)||r.match(n))?"tag":r.match(e)?"string":(r.next(),null)}};var o=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,i=/^[a-zA-Z0-9()]+:/,p=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,l=/^%(ifnarch|ifarch|if)/,s=/^%(else|endif)/,m=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const u={name:"rpmspec",startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,t){if(r.peek()=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(i))return"header";if(r.match(p))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(s))return"keyword";if(r.match(l))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(r.match(m))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(t.controlFlow=!1)}if(r.match(o))return r.eol()&&(t.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return t.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(t.controlFlow=!1),"def"):(r.next(),null)}};export{u as n,c as t}; diff --git a/docs/assets/rst-ftZ-oDhd.js b/docs/assets/rst-ftZ-oDhd.js new file mode 100644 index 0000000..cddc655 --- /dev/null +++ b/docs/assets/rst-ftZ-oDhd.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./html-derivative-CWtHbpe8.js";import{t as a}from"./python-GH_mL2fV.js";import{t as c}from"./cmake-B-3s70IL.js";import{t}from"./cpp-ButBmjz6.js";import{t as o}from"./shellscript-CkXVEK14.js";import{t as s}from"./yaml-gd-fI6BI.js";import{t as l}from"./ruby-Dh6KaFMR.js";var r=Object.freeze(JSON.parse('{"displayName":"reStructuredText","name":"rst","patterns":[{"include":"#body"}],"repository":{"anchor":{"match":"^\\\\.{2}\\\\s+(_[^:]+:)\\\\s*","name":"entity.name.tag.anchor"},"block":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+\\\\S+::)(.*)","beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"variable"}},"end":"^(?!\\\\1\\\\s|\\\\s*$)","patterns":[{"include":"#block-param"},{"include":"#body"}]},"block-comment":{"begin":"^(\\\\s*)\\\\.{2}(\\\\s+|$)","end":"^(?:(?=\\\\S)|\\\\s*$)","name":"comment.block","patterns":[{"begin":"^\\\\s{3,}(?=\\\\S)","name":"comment.block","while":"^(?:\\\\s{3}.*|\\\\s*$)"}]},"block-param":{"patterns":[{"captures":{"1":{"name":"keyword.control"},"2":{"name":"variable.parameter"}},"match":"(:param\\\\s+(.+?):)(?:\\\\s|$)"},{"captures":{"1":{"name":"keyword.control"},"2":{"patterns":[{"match":"\\\\b(0x[A-Fa-f\\\\d]+|\\\\d+)\\\\b","name":"constant.numeric"},{"include":"#inline-markup"}]}},"match":"(:.+?:)(?:$|\\\\s+(.*))"}]},"blocks":{"patterns":[{"include":"#domains"},{"include":"#doctest"},{"include":"#code-block-cpp"},{"include":"#code-block-py"},{"include":"#code-block-console"},{"include":"#code-block-javascript"},{"include":"#code-block-yaml"},{"include":"#code-block-cmake"},{"include":"#code-block-kconfig"},{"include":"#code-block-ruby"},{"include":"#code-block-dts"},{"include":"#code-block"},{"include":"#doctest-block"},{"include":"#raw-html"},{"include":"#block"},{"include":"#literal-block"},{"include":"#block-comment"}]},"body":{"patterns":[{"include":"#title"},{"include":"#inline-markup"},{"include":"#anchor"},{"include":"#line-block"},{"include":"#replace-include"},{"include":"#footnote"},{"include":"#substitution"},{"include":"#blocks"},{"include":"#table"},{"include":"#simple-table"},{"include":"#options-list"}]},"bold":{"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)\\\\*{2}[^*\\\\s]","end":"\\\\*{2}|^\\\\s*$","name":"markup.bold"},"citation":{"applyEndPatternLast":0,"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)`[^`\\\\s]","end":"`_{0,2}|^\\\\s*$","name":"entity.name.tag"},"code-block":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)","beginCaptures":{"2":{"name":"keyword.control"}},"patterns":[{"include":"#block-param"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-cmake":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(cmake)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.cmake"}},"patterns":[{"include":"#block-param"},{"include":"source.cmake"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-console":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(console|shell|bash)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.console"}},"patterns":[{"include":"#block-param"},{"include":"source.shell"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-cpp":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(c|c\\\\+\\\\+|cpp|C|C\\\\+\\\\+|CPP|Cpp)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.cpp"}},"patterns":[{"include":"#block-param"},{"include":"source.cpp"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-dts":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(dts|DTS|devicetree)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.dts"}},"patterns":[{"include":"#block-param"},{"include":"source.dts"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-javascript":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(javascript)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.js"}},"patterns":[{"include":"#block-param"},{"include":"source.js"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-kconfig":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*([Kk]config)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.kconfig"}},"patterns":[{"include":"#block-param"},{"include":"source.kconfig"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-py":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(python)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.py"}},"patterns":[{"include":"#block-param"},{"include":"source.python"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-ruby":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(ruby)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.ruby"}},"patterns":[{"include":"#block-param"},{"include":"source.ruby"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-yaml":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(ya?ml)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.yaml"}},"patterns":[{"include":"#block-param"},{"include":"source.yaml"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"doctest":{"begin":"^(>>>)\\\\s*(.*)","beginCaptures":{"1":{"name":"keyword.control"},"2":{"patterns":[{"include":"source.python"}]}},"end":"^\\\\s*$"},"doctest-block":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+doctest::)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"}},"patterns":[{"include":"#block-param"},{"include":"source.python"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domain-auto":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+auto(?:class|module|exception|function|decorator|data|method|attribute|property)::)\\\\s*(.*)","beginCaptures":{"2":{"name":"keyword.control.py"},"3":{"patterns":[{"include":"source.python"}]}},"patterns":[{"include":"#block-param"},{"include":"#body"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domain-cpp":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+c(?:pp|):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\\\\s*(?:(@\\\\w+)|(.*))","beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"entity.name.tag"},"4":{"patterns":[{"include":"source.cpp"}]}},"patterns":[{"include":"#block-param"},{"include":"#body"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domain-js":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+js:\\\\w+::)\\\\s*(.*)","beginCaptures":{"2":{"name":"keyword.control"},"3":{"patterns":[{"include":"source.js"}]}},"end":"^(?!\\\\1[\\\\t ]|$)","patterns":[{"include":"#block-param"},{"include":"#body"}]},"domain-py":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+py:(?:module|function|data|exception|class|attribute|property|method|staticmethod|classmethod|decorator|decoratormethod)::)\\\\s*(.*)","beginCaptures":{"2":{"name":"keyword.control"},"3":{"patterns":[{"include":"source.python"}]}},"patterns":[{"include":"#block-param"},{"include":"#body"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domains":{"patterns":[{"include":"#domain-cpp"},{"include":"#domain-py"},{"include":"#domain-auto"},{"include":"#domain-js"}]},"escaped":{"match":"\\\\\\\\.","name":"constant.character.escape"},"footnote":{"match":"^\\\\s*\\\\.{2}\\\\s+\\\\[(?:[-.\\\\w]+|[#*]|#\\\\w+)]\\\\s+","name":"entity.name.tag"},"footnote-ref":{"match":"\\\\[(?:[-.\\\\w]+|[#*])]_","name":"entity.name.tag"},"ignore":{"patterns":[{"match":"\'[*`]+\'"},{"match":"<[*`]+>"},{"match":"\\\\{[*`]+}"},{"match":"\\\\([*`]+\\\\)"},{"match":"\\\\[[*`]+]"},{"match":"\\"[*`]+\\""}]},"inline-markup":{"patterns":[{"include":"#escaped"},{"include":"#ignore"},{"include":"#ref"},{"include":"#literal"},{"include":"#monospaced"},{"include":"#citation"},{"include":"#bold"},{"include":"#italic"},{"include":"#list"},{"include":"#macro"},{"include":"#reference"},{"include":"#footnote-ref"}]},"italic":{"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)\\\\*[^*\\\\s]","end":"\\\\*|^\\\\s*$","name":"markup.italic"},"line-block":{"match":"^\\\\|\\\\s+","name":"keyword.control"},"list":{"match":"^\\\\s*(\\\\d+\\\\.|\\\\* -|[#A-Za-z]\\\\.|[CIMVXcimvx]+\\\\.|\\\\(\\\\d+\\\\)|\\\\d+\\\\)|[-*+])\\\\s+","name":"keyword.control"},"literal":{"captures":{"1":{"name":"keyword.control"},"2":{"name":"entity.name.tag"}},"match":"(:\\\\S+:)(`.*?`\\\\\\\\?)"},"literal-block":{"begin":"^(\\\\s*)(.*)(::)\\\\s*$","beginCaptures":{"2":{"patterns":[{"include":"#inline-markup"}]},"3":{"name":"keyword.control"}},"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"macro":{"match":"\\\\|[^|]+\\\\|","name":"entity.name.tag"},"monospaced":{"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)``[^`\\\\s]","end":"``|^\\\\s*$","name":"string.interpolated"},"options-list":{"match":"(?:(?:^|,\\\\s+)(?:[-+]\\\\w|--?[A-Za-z][-\\\\w]+|/\\\\w+)(?:[ =](?:\\\\w+|<[^<>]+?>))?)+(?= |\\\\t|$)","name":"variable.parameter"},"raw-html":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+raw\\\\s*::)\\\\s+(html)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"variable.parameter.html"}},"patterns":[{"include":"#block-param"},{"include":"text.html.derivative"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"ref":{"begin":"(:ref:)`","beginCaptures":{"1":{"name":"keyword.control"}},"end":"`|^\\\\s*$","name":"entity.name.tag","patterns":[{"match":"<.*?>","name":"markup.underline.link"}]},"reference":{"match":"[-\\\\w]*[-A-Za-z\\\\d]__?\\\\b","name":"entity.name.tag"},"replace-include":{"captures":{"1":{"name":"keyword.control"},"2":{"name":"entity.name.tag"},"3":{"name":"keyword.control"}},"match":"^\\\\s*(\\\\.{2})\\\\s+(\\\\|[^|]+\\\\|)\\\\s+(replace::)"},"simple-table":{"match":"^[=\\\\s]+$","name":"keyword.control.table"},"substitution":{"match":"^\\\\.{2}\\\\s*\\\\|([^|]+)\\\\|","name":"entity.name.tag"},"table":{"begin":"^\\\\s*\\\\+[-+=]+\\\\+\\\\s*$","beginCaptures":{"0":{"name":"keyword.control.table"}},"end":"^(?![+|])","patterns":[{"match":"[-+=|]","name":"keyword.control.table"}]},"title":{"match":"^(\\\\*{3,}|#{3,}|={3,}|~{3,}|\\\\+{3,}|-{3,}|`{3,}|\\\\^{3,}|:{3,}|\\"{3,}|_{3,}|\'{3,})$","name":"markup.heading"}},"scopeName":"source.rst","embeddedLangs":["html-derivative","cpp","python","javascript","shellscript","yaml","cmake","ruby"]}')),i=[...n,...t,...a,...e,...o,...s,...c,...l,r];export{i as default}; diff --git a/docs/assets/ruby-BBBmfZso.js b/docs/assets/ruby-BBBmfZso.js new file mode 100644 index 0000000..db3edf9 --- /dev/null +++ b/docs/assets/ruby-BBBmfZso.js @@ -0,0 +1 @@ +import{t}from"./ruby-Dh6KaFMR.js";export{t as default}; diff --git a/docs/assets/ruby-C9f8lbWZ.js b/docs/assets/ruby-C9f8lbWZ.js new file mode 100644 index 0000000..71bb1ed --- /dev/null +++ b/docs/assets/ruby-C9f8lbWZ.js @@ -0,0 +1 @@ +function d(e){for(var n={},t=0,i=e.length;t]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if(t=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"propertyName";if(t=="$")return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variableName.special";if(/[a-zA-Z_\xa1-\uffff]/.test(t))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"variable";if(t=="|"&&(n.varList||n.lastTok=="{"||n.lastTok=="do"))return o="|",null;if(/[\(\)\[\]{}\\;]/.test(t))return o=t,null;if(t=="-"&&e.eat(">"))return"operator";if(/[=+\-\/*:\.^%<>~|]/.test(t)){var l=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return t=="."&&!l&&(o="."),"operator"}else return null}}}function b(e){for(var n=e.pos,t=0,i,a=!1,r=!1;(i=e.next())!=null;)if(r)r=!1;else{if("[{(".indexOf(i)>-1)t++;else if("]})".indexOf(i)>-1){if(t--,t<0)break}else if(i=="/"&&t==0){a=!0;break}r=i=="\\"}return e.backUp(e.pos-n),a}function p(e){return e||(e=1),function(n,t){if(n.peek()=="}"){if(e==1)return t.tokenize.pop(),t.tokenize[t.tokenize.length-1](n,t);t.tokenize[t.tokenize.length-1]=p(e-1)}else n.peek()=="{"&&(t.tokenize[t.tokenize.length-1]=p(e+1));return c(n,t)}}function _(){var e=!1;return function(n,t){return e?(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](n,t)):(e=!0,c(n,t))}}function f(e,n,t,i){return function(a,r){var u=!1,l;for(r.context.type==="read-quoted-paused"&&(r.context=r.context.prev,a.eat("}"));(l=a.next())!=null;){if(l==e&&(i||!u)){r.tokenize.pop();break}if(t&&l=="#"&&!u){if(a.eat("{")){e=="}"&&(r.context={prev:r.context,type:"read-quoted-paused"}),r.tokenize.push(p());break}else if(/[@\$]/.test(a.peek())){r.tokenize.push(_());break}}u=!u&&l=="\\"}return n}}function g(e,n){return function(t,i){return n&&t.eatSpace(),t.match(e)?i.tokenize.pop():t.skipToEnd(),"string"}}function y(e,n){return e.sol()&&e.match("=end")&&e.eol()&&n.tokenize.pop(),e.skipToEnd(),"comment"}const w={name:"ruby",startState:function(e){return{tokenize:[c],indented:0,context:{type:"top",indented:-e},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,n){o=null,e.sol()&&(n.indented=e.indentation());var t=n.tokenize[n.tokenize.length-1](e,n),i,a=o;if(t=="variable"){var r=e.current();t=n.lastTok=="."?"property":h.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(r)?"tag":n.lastTok=="def"||n.lastTok=="class"||n.varList?"def":"variable",t=="keyword"&&(a=r,x.propertyIsEnumerable(r)?i="indent":v.propertyIsEnumerable(r)?i="dedent":((r=="if"||r=="unless")&&e.column()==e.indentation()||r=="do"&&n.context.indented>)=)"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"},"4":{"name":"keyword.operator.assignment.augmented.ruby"}},"match":"(?>)=)"},{"captures":{"1":{"name":"variable.ruby"}},"match":"^\\\\s*([_a-z][0-9A-Z_a-z]*)\\\\s*(?==[^=>])"},{"captures":{"1":{"name":"keyword.control.ruby"},"3":{"name":"variable.ruby"}},"match":"(?]"},{"captures":{"1":{"name":"punctuation.definition.constant.hashkey.ruby"}},"match":"(?>[A-Z_a-z]\\\\w*[!?]?)(:)(?!:)","name":"constant.language.symbol.hashkey.ruby"},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?[A-Z_a-z]\\\\w*[!?]?)(?=\\\\s*=>)","name":"constant.language.symbol.hashkey.ruby"},{"match":"(?)\\\\(","beginCaptures":{"1":{"name":"support.function.kernel.ruby"}},"end":"\\\\)","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"},"3":{"name":"punctuation.definition.parameters.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.ruby"}},"name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[),])","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"begin":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?))[\\\\t ](?=[\\\\t ]*[^#;\\\\s])","beginCaptures":{"1":{"name":"keyword.control.def.ruby"},"2":{"name":"entity.name.function.ruby"}},"end":"(?=;)|(?<=[]!\\"\')?`}\\\\w])(?=\\\\s*#|\\\\s*$)","name":"meta.function.method.with-arguments.ruby","patterns":[{"begin":"(?=[\\\\&*A-Z_a-z])","end":"(?=[,;]|\\\\s*#|\\\\s*$)","patterns":[{"include":"#method_parameters"}]},{"include":"#method_parameters"}]},{"captures":{"1":{"name":"keyword.control.def.ruby"},"3":{"name":"entity.name.function.ruby"}},"match":"(?=def\\\\b)(?<=^|\\\\s)(def)\\\\b(\\\\s+((?>[A-Z_a-z]\\\\w*(?>\\\\.|::))?(?>[A-Z_a-z]\\\\w*(?>[!?]|=(?!>))?|===?|!=|>[=>]?|<=>|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?)))?","name":"meta.function.method.without-arguments.ruby"},{"match":"\\\\b(\\\\d(?>_?\\\\d)*(\\\\.(?![^\\\\s\\\\d])(?>_?\\\\d)*)?([Ee][-+]?\\\\d(?>_?\\\\d)*)?|0(?:[Xx]\\\\h(?>_?\\\\h)*|[Oo]?[0-7](?>_?[0-7])*|[Bb][01](?>_?[01])*|[Dd]\\\\d(?>_?\\\\d)*))\\\\b","name":"constant.numeric.ruby"},{"begin":":\'","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\]","name":"constant.character.escape.ruby"}]},{"begin":":\\"","beginCaptures":{"0":{"name":"punctuation.section.symbol.begin.ruby"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.section.symbol.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"match":"(?|=>|==|=~|!~|!=|;|$|if|else|elsif|then|do|end|unless|while|until|or|and)|$)","captures":{"1":{"name":"string.regexp.interpolated.ruby"},"2":{"name":"punctuation.section.regexp.ruby"}},"contentName":"string.regexp.interpolated.ruby","end":"((/[eimnosux]*))","patterns":[{"include":"#regex_sub"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"}[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},{"begin":"%r\\\\[","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"][eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},{"begin":"%r\\\\(","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\)[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},{"begin":"%r<","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":">[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},{"begin":"%r(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.regexp.begin.ruby"}},"end":"\\\\1[eimnosux]*","endCaptures":{"0":{"name":"punctuation.section.regexp.end.ruby"}},"name":"string.regexp.interpolated.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"%I\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%I\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%I<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%I\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%I(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%i\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%i\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%i<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%i\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%i(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%W\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%W\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%W<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%W\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%W(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%w\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%w\\\\(","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%w<","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%w\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%w(\\\\W)","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%[Qx]?\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},{"begin":"%[Qx]?\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},{"begin":"%[Qx]?\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},{"begin":"%[Qx]?<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},{"begin":"%[Qx](\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%([^=\\\\w\\\\s])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.interpolated.ruby","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"%q\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%q<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%q\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%q\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%q(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.ruby"}},"name":"string.quoted.other.ruby","patterns":[{"match":"\\\\\\\\."}]},{"begin":"%s\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[)\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_parens"}]},{"begin":"%s<","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[>\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_ltgt"}]},{"begin":"%s\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[]\\\\\\\\]","name":"constant.character.escape.ruby"},{"include":"#nest_brackets"}]},{"begin":"%s\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\[\\\\\\\\}]","name":"constant.character.escape.ruby"},{"include":"#nest_curly"}]},{"begin":"%s(\\\\W)","beginCaptures":{"0":{"name":"punctuation.definition.symbol.begin.ruby"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.symbol.end.ruby"}},"name":"constant.language.symbol.ruby","patterns":[{"match":"\\\\\\\\."}]},{"captures":{"1":{"name":"punctuation.definition.constant.ruby"}},"match":"(?[$A-Z_a-z]\\\\w*(?>[!?]|=(?![=>]))?|===?|<=>|>[=>]?|<[<=]?|[%\\\\&/`|]|\\\\*\\\\*?|=?~|[-+]@?|\\\\[]=?|@@?[A-Z_a-z]\\\\w*)","name":"constant.language.symbol.ruby"},{"begin":"^=begin","captures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"^=end","name":"comment.block.documentation.ruby"},{"include":"#yard"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ruby"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"end":"\\\\n","name":"comment.line.number-sign.ruby"}]},{"match":"(?<<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.html","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HTML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.html","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.html.basic"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.haml","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)HAML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.haml","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.haml"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.xml","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)XML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.xml","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.xml"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.sql","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SQL)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.sql","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.sql"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.graphql","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)G(?:RAPHQL|QL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.graphql","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.graphql"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.css","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CSS)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.css","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.css"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.cpp","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)CPP)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.cpp","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.cpp"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.c","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)C)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.c","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.c"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.js","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)J(?:S|AVASCRIPT))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.js.jquery","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)JQUERY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.js.jquery","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.js.jquery"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.shell","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SH(?:|ELL))\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.shell","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.shell"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.lua","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)LUA)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.lua","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.lua"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.ruby","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)RUBY)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.ruby","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.ruby"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.yaml","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)YA?ML)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"source.yaml","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"source.yaml"},{"include":"#escaped_char"}]}]},{"begin":"(?=(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1))","end":"(?!\\\\G)","name":"meta.embedded.block.slim","patterns":[{"begin":"(?><<[-~]([\\"\'`]?)((?:[_\\\\w]+_|)SLIM)\\\\b\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"text.slim","end":"^\\\\s*\\\\2$\\\\n?","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"text.slim"},{"include":"#escaped_char"}]}]},{"begin":"(?>=\\\\s*<<([\\"\'`]?)(\\\\w+)\\\\1)","beginCaptures":{"0":{"name":"string.definition.begin.ruby"}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\2$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?>((<<[-~]([\\"\'`]?)(\\\\w+)\\\\3,\\\\s?)*<<[-~]([\\"\'`]?)(\\\\w+)\\\\5))(.*)","beginCaptures":{"1":{"name":"string.definition.begin.ruby"},"7":{"patterns":[{"include":"source.ruby"}]}},"contentName":"string.unquoted.heredoc.ruby","end":"^\\\\s*\\\\6$","endCaptures":{"0":{"name":"string.definition.end.ruby"}},"patterns":[{"include":"#heredoc"},{"include":"#interpolated_ruby"},{"include":"#escaped_char"}]},{"begin":"(?<=\\\\{|\\\\{\\\\s+|[^$0-:@-Z_a-z]do|^do|[^$0-:@-Z_a-z]do\\\\s+|^do\\\\s+)(\\\\|)","captures":{"1":{"name":"punctuation.separator.variable.ruby"}},"end":"(?","name":"punctuation.separator.key-value"},{"match":"->","name":"support.function.kernel.ruby"},{"match":"<<=|%=|&{1,2}=|\\\\*=|\\\\*\\\\*=|\\\\+=|-=|\\\\^=|\\\\|{1,2}=|<<","name":"keyword.operator.assignment.augmented.ruby"},{"match":"<=>|<(?![<=])|>(?![<=>])|<=|>=|===?|=~|!=|!~|(?<=[\\\\t ])\\\\?","name":"keyword.operator.comparison.ruby"},{"match":"(?>","name":"keyword.operator.other.ruby"},{"match":";","name":"punctuation.separator.statement.ruby"},{"match":",","name":"punctuation.separator.object.ruby"},{"captures":{"1":{"name":"punctuation.separator.namespace.ruby"}},"match":"(::)\\\\s*(?=[A-Z])"},{"captures":{"1":{"name":"punctuation.separator.method.ruby"}},"match":"(\\\\.|::)\\\\s*(?![A-Z])"},{"match":":","name":"punctuation.separator.other.ruby"},{"match":"\\\\{","name":"punctuation.section.scope.begin.ruby"},{"match":"}","name":"punctuation.section.scope.end.ruby"},{"match":"\\\\[","name":"punctuation.section.array.begin.ruby"},{"match":"]","name":"punctuation.section.array.end.ruby"},{"match":"[()]","name":"punctuation.section.function.ruby"},{"begin":"(?<=[^.]\\\\.|::)(?=[A-Za-z][!0-9?A-Z_a-z]*[^!0-9?A-Z_a-z])","end":"(?<=[!0-9?A-Z_a-z])(?=[^!0-9?A-Z_a-z])","name":"meta.function-call.ruby","patterns":[{"match":"([A-Za-z][!0-9?A-Z_a-z]*)(?=[^!0-9?A-Z_a-z])","name":"entity.name.function.ruby"}]},{"begin":"([A-Za-z]\\\\w*[!?]?)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.ruby"},"2":{"name":"punctuation.section.function.ruby"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.ruby"}},"name":"meta.function-call.ruby","patterns":[{"include":"$self"}]}],"repository":{"escaped_char":{"match":"\\\\\\\\(?:[0-7]{1,3}|x[A-Fa-f\\\\d]{1,2}|.)","name":"constant.character.escape.ruby"},"heredoc":{"begin":"^<<[-~]?\\\\w+","end":"$","patterns":[{"include":"$self"}]},"interpolated_ruby":{"patterns":[{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ruby"}},"contentName":"source.ruby","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.ruby"}},"name":"meta.embedded.line.ruby","patterns":[{"include":"#nest_curly_and_self"},{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.instance.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#@@)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.class.ruby"},{"captures":{"1":{"name":"punctuation.definition.variable.ruby"}},"match":"(#\\\\$)[A-Z_a-z]\\\\w*","name":"variable.other.readwrite.global.ruby"}]},"method_parameters":{"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"#params"},{"include":"$self"}],"repository":{"braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.ruby"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"brackets":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.array.begin.ruby"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.array.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]},"params":{"captures":{"1":{"name":"storage.type.variable.ruby"},"2":{"name":"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{"name":"punctuation.definition.constant.ruby"},"4":{"name":"variable.parameter.function.ruby"}},"match":"\\\\G(&|\\\\*\\\\*?)?(?:([A-Z_a-z]\\\\w*[!?]?(:))|([A-Z_a-z]\\\\w*))"},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.function.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.ruby"}},"patterns":[{"include":"#parens"},{"include":"#braces"},{"include":"#brackets"},{"include":"$self"}]}}},"nest_brackets":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#nest_brackets"}]},"nest_brackets_i":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_brackets_i"}]},"nest_brackets_r":{"begin":"\\\\[","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"]","patterns":[{"include":"#regex_sub"},{"include":"#nest_brackets_r"}]},"nest_curly":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly"}]},"nest_curly_and_self":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#nest_curly_and_self"}]},{"include":"$self"}]},"nest_curly_i":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_curly_i"}]},"nest_curly_r":{"begin":"\\\\{","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"}","patterns":[{"include":"#regex_sub"},{"include":"#nest_curly_r"}]},"nest_ltgt":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#nest_ltgt"}]},"nest_ltgt_i":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_ltgt_i"}]},"nest_ltgt_r":{"begin":"<","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":">","patterns":[{"include":"#regex_sub"},{"include":"#nest_ltgt_r"}]},"nest_parens":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#nest_parens"}]},"nest_parens_i":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"include":"#nest_parens_i"}]},"nest_parens_r":{"begin":"\\\\(","captures":{"0":{"name":"punctuation.section.scope.ruby"}},"end":"\\\\)","patterns":[{"include":"#regex_sub"},{"include":"#nest_parens_r"}]},"regex_sub":{"patterns":[{"include":"#interpolated_ruby"},{"include":"#escaped_char"},{"captures":{"1":{"name":"punctuation.definition.arbitrary-repetition.ruby"},"3":{"name":"punctuation.definition.arbitrary-repetition.ruby"}},"match":"(\\\\{)\\\\d+(,\\\\d+)?(})","name":"string.regexp.arbitrary-repetition.ruby"},{"begin":"\\\\[(?:\\\\^?])?","captures":{"0":{"name":"punctuation.definition.character-class.ruby"}},"end":"]","name":"string.regexp.character-class.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.ruby"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.ruby"}},"name":"comment.line.number-sign.ruby","patterns":[{"include":"#escaped_char"}]},{"begin":"\\\\(","captures":{"0":{"name":"punctuation.definition.group.ruby"}},"end":"\\\\)","name":"string.regexp.group.ruby","patterns":[{"include":"#regex_sub"}]},{"begin":"(?<=^|\\\\s)(#)\\\\s(?=[-\\\\t !,.0-9?A-Za-z[^\\\\x00-\\\\x7F]]*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ruby"}},"end":"$\\\\n?","endCaptures":{"0":{"name":"punctuation.definition.comment.ruby"}},"name":"comment.line.number-sign.ruby"}]},"yard":{"patterns":[{"include":"#yard_comment"},{"include":"#yard_param_types"},{"include":"#yard_option"},{"include":"#yard_tag"},{"include":"#yard_types"},{"include":"#yard_directive"},{"include":"#yard_see"},{"include":"#yard_macro_attribute"}]},"yard_comment":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_continuation":{"match":"^\\\\s*#","name":"punctuation.definition.comment.ruby"},"yard_directive":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(endgroup|group|method|parse|scope|visibility)(\\\\s+((\\\\[).+(])))?(?=\\\\s)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_macro_attribute":{"begin":"^(\\\\s*)(#)(\\\\s*)(@!)(attribute|macro)(\\\\s+((\\\\[).+(])))?(?=\\\\s)(\\\\s+([_a-z]\\\\w*:?))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"11":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_option":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(option)(?=\\\\s)(?>\\\\s+([_a-z]\\\\w*:?))?(?>\\\\s+((\\\\[).+(])))?(?>\\\\s+((\\\\S*)))?(?>\\\\s+((\\\\().+(\\\\))))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.keyword.yard.ruby"},"11":{"name":"comment.line.hashkey.yard.ruby"},"12":{"name":"comment.line.defaultvalue.yard.ruby"},"13":{"name":"comment.line.punctuation.yard.ruby"},"14":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_param_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\\\s)(?>\\\\s+(?>([_a-z]\\\\w*:?)|((\\\\[).+(]))))?(?>\\\\s+(?>((\\\\[).+(]))|([_a-z]\\\\w*:?)))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"6":{"name":"comment.line.parameter.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"},"10":{"name":"comment.line.type.yard.ruby"},"11":{"name":"comment.line.punctuation.yard.ruby"},"12":{"name":"comment.line.punctuation.yard.ruby"},"13":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_see":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(see)(?=\\\\s)(\\\\s+(.+?))?(?=\\\\s|$)","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.parameter.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]},"yard_tag":{"captures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"}},"match":"^(\\\\s*)(#)(\\\\s*)(@)(private)$","name":"comment.line.number-sign.ruby"},"yard_types":{"begin":"^(\\\\s*)(#)(\\\\s*)(@)(raise|return|yield(?:return)?)(?=\\\\s)(\\\\s+((\\\\[).+(])))?","beginCaptures":{"2":{"name":"punctuation.definition.comment.ruby"},"4":{"name":"comment.line.keyword.punctuation.yard.ruby"},"5":{"name":"comment.line.keyword.yard.ruby"},"7":{"name":"comment.line.type.yard.ruby"},"8":{"name":"comment.line.punctuation.yard.ruby"},"9":{"name":"comment.line.punctuation.yard.ruby"}},"contentName":"comment.line.string.yard.ruby","end":"^(?!\\\\s*#\\\\3\\\\s{2,}|\\\\s*#\\\\s*$)","name":"comment.line.number-sign.ruby","patterns":[{"include":"#yard"},{"include":"#yard_continuation"}]}},"scopeName":"source.ruby","embeddedLangs":["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],"aliases":["rb"]}')),p=[...t,...c,...a,...r,...o,...n,...u,...i,...e,...s,...d,...b,m];export{p as t}; diff --git a/docs/assets/run-page-DiloPKVJ.js b/docs/assets/run-page-DiloPKVJ.js new file mode 100644 index 0000000..d4dbcc1 --- /dev/null +++ b/docs/assets/run-page-DiloPKVJ.js @@ -0,0 +1 @@ +import{s as J}from"./chunk-LvLJmgfZ.js";import{u as K}from"./useEvent-DlWF5OMa.js";import{t as Z}from"./react-BGmjiNul.js";import{b as $,qr as ee,w as te}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as V}from"./compiler-runtime-DeeZ7FnK.js";import"./tooltip-CrRUCOBw.js";import{w as re}from"./utilities.esm-CqQATX3k.js";import{n as Y}from"./constants-Bkp4R3bQ.js";import{b as oe,j as se,s as ae}from"./config-CENq_7Pd.js";import{t as ie}from"./jsx-runtime-DN_bIXfG.js";import{t as F}from"./button-B8cGZzP5.js";import"./dist-CAcX026F.js";import{E as me,Y as H}from"./JsonOutput-DlwRx3jE.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as le}from"./requests-C0HaHO6a.js";import"./layout-CBI2c778.js";import{n as ne}from"./download-C_slsU-7.js";import"./markdown-renderer-DjqhqmES.js";import{t as ce}from"./copy-gBVL4NN-.js";import{t as de}from"./download-DobaYJPt.js";import{i as pe,l as he,n as xe,r as M,t as fe,u as be}from"./panels-wPsRwJLC.js";import{t as je}from"./spinner-C1czjtp7.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{t as ye}from"./use-toast-Bzf3rpev.js";import"./Combination-D1TsGrBC.js";import"./dates-CdsE1R40.js";import{a as ue,c as ge,l as ke,n as _e,r as Ne,t as we}from"./dialog-CF5DtF1E.js";import"./popover-DtnzNVk-.js";import{t as ve}from"./share-CXQVxivL.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as Se}from"./copy-DRhpWiOq.js";import"./purify.es-N-2faAGj.js";import{a as Ce}from"./cell-link-D7bPw7Fz.js";import"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import"./es-BJsT6vfZ.js";import"./esm-D2_Kx6xF.js";import{n as Ie,t as Ae}from"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import"./name-cell-input-Dc5Oz84d.js";import{t as Ee}from"./icon-32x32-BLg_IoeR.js";import"./ws-Sb1KIggW.js";import"./dist-cDyKKhtR.js";import"./dist-CsayQVA2.js";import"./dist-CebZ69Am.js";import"./dist-gkLBSkCp.js";import"./dist-ClsPkyB_.js";import"./dist-BZPaM2NB.js";import"./dist-CAJqQUSI.js";import"./dist-CGGpiWda.js";import"./dist-BsIAU6bk.js";import"./esm-BranOiPJ.js";var Te=V(),ze=J(Z(),1),t=J(ie(),1);const Re=s=>{let e=(0,Te.c)(21),{appConfig:o}=s,{setCells:r}=te(),{sendComponentValues:x}=le(),n;e[0]===x?n=e[1]:(n=()=>(M.INSTANCE.start(x),Pe),e[0]=x,e[1]=n);let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=[],e[2]=a):a=e[2],(0,ze.useEffect)(n,a);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=ae(),e[3]=i):i=e[3];let f;e[4]===r?f=e[5]:(f={autoInstantiate:!0,setCells:r,sessionId:i},e[4]=r,e[5]=f);let{connection:m}=xe(f),y=K($),b;e[6]===m.state?b=e[7]:(b=oe(m.state),e[6]=m.state,e[7]=b);let p=b,c;e[8]!==o||e[9]!==p?(c=()=>p?(0,t.jsxs)(me,{milliseconds:2e3,fallback:null,children:[(0,t.jsx)(je,{className:"mx-auto"}),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground mt-2",children:"Connecting..."})]}):(0,t.jsx)(pe,{appConfig:o,mode:"read"}),e[8]=o,e[9]=p,e[10]=c):c=e[10];let h=c,u=o.width,l;e[11]===m?l=e[12]:(l=(0,t.jsx)(be,{connection:m,className:"sm:pt-8"}),e[11]=m,e[12]=l);let d;e[13]===h?d=e[14]:(d=h(),e[13]=h,e[14]=d);let j;return e[15]!==o.width||e[16]!==m||e[17]!==y||e[18]!==l||e[19]!==d?(j=(0,t.jsxs)(he,{connection:m,isRunning:y,width:u,children:[l,d]}),e[15]=o.width,e[16]=m,e[17]=y,e[18]=l,e[19]=d,e[20]=j):j=e[20],j};function Pe(){M.INSTANCE.stop()}var Q=V();const We=()=>{let s=(0,Q.c)(3),e=K(ee);if(!H()||!e)return null;let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)("span",{children:["Static"," ",(0,t.jsx)("a",{href:Y.githubPage,target:"_blank",className:"text-(--sky-11) font-medium underline",children:"marimo"})," ","notebook - Run or edit for full interactivity"]}),s[0]=o):o=s[0];let r;return s[1]===e?r=s[2]:(r=(0,t.jsxs)("div",{className:"px-4 py-2 bg-(--sky-2) border-b border-(--sky-7) text-(--sky-11) flex justify-between items-center gap-4 no-print text-sm","data-testid":"static-notebook-banner",children:[o,(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(Oe,{code:e})})]}),s[1]=e,s[2]=r),r};var Oe=s=>{let e=(0,Q.c)(78),{code:o}=s,r=Ce()||"notebook.py",x=r.lastIndexOf("/");x!==-1&&(r=r.slice(x+1));let n=window.location.href,a,i,f,m,y,b,p,c,h,u,l,d,j,k,_,N,g,w,v;if(e[0]!==o||e[1]!==r){let G=ve({code:o});m=we,e[21]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(ke,{asChild:!0,children:(0,t.jsx)(F,{"data-testid":"static-notebook-dialog-trigger",variant:"outline",size:"xs",children:"Run or Edit"})}),e[21]=l):l=e[21],f=_e,i=ue,e[22]===r?u=e[23]:(u=(0,t.jsx)(ge,{children:r}),e[22]=r,e[23]=u),a=Ne,b="pt-3 text-left space-y-3",e[24]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsxs)("p",{children:["This is a static"," ",(0,t.jsx)("a",{href:Y.githubPage,target:"_blank",className:"text-(--sky-11) hover:underline font-medium",children:"marimo"})," ","notebook. To run interactively:"]}),e[24]=p):p=e[24];let U;e[25]===Symbol.for("react.memo_cache_sentinel")?(U=(0,t.jsx)("br",{}),e[25]=U):U=e[25],e[26]===r?c=e[27]:(c=(0,t.jsx)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) leading-relaxed",children:["pip install marimo",U,"marimo edit ",r]})}),e[26]=r,e[27]=c),e[28]===Symbol.for("react.memo_cache_sentinel")?(h=!n.endsWith(".html")&&(0,t.jsxs)("div",{className:"rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)",children:[(0,t.jsx)("div",{className:"text-sm text-(--sky-12) mb-1",children:"Or run directly from URL:"}),(0,t.jsxs)("div",{className:"font-mono text-(--sky-11) break-all",children:["marimo edit ",window.location.href]})]}),e[28]=h):h=e[28],v="pt-3 border-t border-(--sky-7)",N="text-sm text-(--sky-12) mb-2",e[29]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)("strong",{children:"Try in browser with WebAssembly:"}),e[29]=g):g=e[29],w=" ",y=G,d="_blank",j="text-(--sky-11) hover:underline break-all",k="noreferrer",_=G.slice(0,50),e[0]=o,e[1]=r,e[2]=a,e[3]=i,e[4]=f,e[5]=m,e[6]=y,e[7]=b,e[8]=p,e[9]=c,e[10]=h,e[11]=u,e[12]=l,e[13]=d,e[14]=j,e[15]=k,e[16]=_,e[17]=N,e[18]=g,e[19]=w,e[20]=v}else a=e[2],i=e[3],f=e[4],m=e[5],y=e[6],b=e[7],p=e[8],c=e[9],h=e[10],u=e[11],l=e[12],d=e[13],j=e[14],k=e[15],_=e[16],N=e[17],g=e[18],w=e[19],v=e[20];let S;e[30]!==y||e[31]!==d||e[32]!==j||e[33]!==k||e[34]!==_?(S=(0,t.jsxs)("a",{href:y,target:d,className:j,rel:k,children:[_,"..."]}),e[30]=y,e[31]=d,e[32]=j,e[33]=k,e[34]=_,e[35]=S):S=e[35];let C;e[36]!==S||e[37]!==N||e[38]!==g||e[39]!==w?(C=(0,t.jsxs)("p",{className:N,children:[g,w,S]}),e[36]=S,e[37]=N,e[38]=g,e[39]=w,e[40]=C):C=e[40];let q;e[41]===Symbol.for("react.memo_cache_sentinel")?(q=(0,t.jsx)("p",{className:"text-sm text-(--sky-12)",children:"Note: WebAssembly may not work for all notebooks. Additionally, some dependencies may not be available in the browser."}),e[41]=q):q=e[41];let I;e[42]!==C||e[43]!==v?(I=(0,t.jsxs)("div",{className:v,children:[C,q]}),e[42]=C,e[43]=v,e[44]=I):I=e[44];let A;e[45]!==a||e[46]!==b||e[47]!==p||e[48]!==c||e[49]!==h||e[50]!==I?(A=(0,t.jsxs)(a,{className:b,children:[p,c,h,I]}),e[45]=a,e[46]=b,e[47]=p,e[48]=c,e[49]=h,e[50]=I,e[51]=A):A=e[51];let E;e[52]!==i||e[53]!==u||e[54]!==A?(E=(0,t.jsxs)(i,{children:[u,A]}),e[52]=i,e[53]=u,e[54]=A,e[55]=E):E=e[55];let T;e[56]===o?T=e[57]:(T=async()=>{await Se(o),ye({title:"Copied to clipboard"})},e[56]=o,e[57]=T);let B;e[58]===Symbol.for("react.memo_cache_sentinel")?(B=(0,t.jsx)(ce,{className:"w-3 h-3 mr-2"}),e[58]=B):B=e[58];let z;e[59]===T?z=e[60]:(z=(0,t.jsxs)(F,{"data-testid":"copy-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:T,children:[B,"Copy code"]}),e[59]=T,e[60]=z);let R;e[61]!==o||e[62]!==r?(R=()=>{ne(new Blob([o],{type:"text/plain"}),r)},e[61]=o,e[62]=r,e[63]=R):R=e[63];let D;e[64]===Symbol.for("react.memo_cache_sentinel")?(D=(0,t.jsx)(de,{className:"w-3 h-3 mr-2"}),e[64]=D):D=e[64];let P;e[65]===R?P=e[66]:(P=(0,t.jsxs)(F,{"data-testid":"download-static-notebook-dialog-button",variant:"outline",size:"sm",onClick:R,children:[D,"Download"]}),e[65]=R,e[66]=P);let W;e[67]!==z||e[68]!==P?(W=(0,t.jsxs)("div",{className:"flex gap-3 pt-2",children:[z,P]}),e[67]=z,e[68]=P,e[69]=W):W=e[69];let O;e[70]!==f||e[71]!==E||e[72]!==W?(O=(0,t.jsxs)(f,{children:[E,W]}),e[70]=f,e[71]=E,e[72]=W,e[73]=O):O=e[73];let L;return e[74]!==m||e[75]!==l||e[76]!==O?(L=(0,t.jsxs)(m,{children:[l,O]}),e[74]=m,e[75]=l,e[76]=O,e[77]=L):L=e[77],L},X=V(),qe=se()||H(),Be=s=>{let e=(0,X.c)(9),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(We,{}),e[0]=o):o=e[0];let r;e[1]===s.appConfig?r=e[2]:(r=(0,t.jsx)(Re,{appConfig:s.appConfig}),e[1]=s.appConfig,e[2]=r);let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=qe&&(0,t.jsx)(De,{}),e[3]=x):x=e[3];let n;e[4]===r?n=e[5]:(n=(0,t.jsxs)(Ae,{children:[o,r,x]}),e[4]=r,e[5]=n);let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(re,{}),e[6]=a):a=e[6];let i;return e[7]===n?i=e[8]:(i=(0,t.jsx)(fe,{children:(0,t.jsxs)(Ie,{direction:"horizontal",autoSaveId:"marimo:chrome:v1:run1",children:[n,a]})}),e[7]=n,e[8]=i),i},De=()=>{let s=(0,X.c)(1),e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"fixed bottom-0 right-0 z-50","data-testid":"watermark",children:(0,t.jsxs)("a",{href:Y.githubPage,target:"_blank",className:"text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2",children:[(0,t.jsx)("span",{children:"made with marimo"}),(0,t.jsx)("img",{src:Ee,alt:"marimo",className:"h-4 w-auto"})]})}),s[0]=e):e=s[0],e},Le=Be;export{Le as default}; diff --git a/docs/assets/runs-DGUGtjQH.js b/docs/assets/runs-DGUGtjQH.js new file mode 100644 index 0000000..6389291 --- /dev/null +++ b/docs/assets/runs-DGUGtjQH.js @@ -0,0 +1 @@ +import{t as I}from"./createReducer-DDa-hVe3.js";function T(){return{runIds:[],runMap:new Map}}var{reducer:v,createActions:q,valueAtom:w,useActions:_}=I(T,{addCellNotification:(e,i)=>{let{cellNotification:t,code:u}=i,r=t.timestamp??0,s=t.run_id;if(!s)return e;let d=e.runMap.get(s);if(!d&&R(u))return e;let o=t.output&&(t.output.channel==="marimo-error"||t.output.channel==="stderr"),n=o?"error":t.status==="queued"?"queued":t.status==="running"?"running":"success";if(!d){let p={runId:s,cellRuns:new Map([[t.cell_id,{cellId:t.cell_id,code:u.slice(0,200),elapsedTime:0,status:n,startTime:r}]]),runStartTime:r},l=[s,...e.runIds],m=new Map(e.runMap);if(l.length>50){let f=l.pop();f&&m.delete(f)}return m.set(s,p),{runIds:l,runMap:m}}let c=new Map(d.cellRuns),a=c.get(t.cell_id);if(a&&!o&&t.status==="queued")return e;if(a){n=a.status==="error"||o?"error":n;let p=t.status==="running"?r:a.startTime,l=n==="success"||n==="error"?r-a.startTime:void 0;c.set(t.cell_id,{...a,startTime:p,elapsedTime:l,status:n})}else c.set(t.cell_id,{cellId:t.cell_id,code:u.slice(0,200),elapsedTime:0,status:n,startTime:r});let M=new Map(e.runMap);return M.set(s,{...d,cellRuns:c}),{...e,runMap:M}},clearRuns:e=>({...e,runIds:[],runMap:new Map}),removeRun:(e,i)=>{let t=e.runIds.filter(r=>r!==i),u=new Map(e.runMap);return u.delete(i),{...e,runIds:t,runMap:u}}}),g=/mo\.md\(\s*r?('''|""")/;function R(e){return e.startsWith("mo.md(")&&g.test(e)}export{_ as n,w as t}; diff --git a/docs/assets/rust-5ykN96XM.js b/docs/assets/rust-5ykN96XM.js new file mode 100644 index 0000000..08bd39f --- /dev/null +++ b/docs/assets/rust-5ykN96XM.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Rust","name":"rust","patterns":[{"begin":"(<)(\\\\[)","beginCaptures":{"1":{"name":"punctuation.brackets.angle.rust"},"2":{"name":"punctuation.brackets.square.rust"}},"end":">","endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}},"patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#gtypes"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"}]},{"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"3":{"name":"keyword.other.crate.rust"},"4":{"name":"entity.name.type.metavariable.rust"},"6":{"name":"keyword.operator.key-value.rust"},"7":{"name":"variable.other.metavariable.specifier.rust"}},"match":"(\\\\$)((crate)|([A-Z]\\\\w*))(\\\\s*(:)\\\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\\\b)?","name":"meta.macro.metavariable.type.rust","patterns":[{"include":"#keywords"}]},{"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"2":{"name":"variable.other.metavariable.name.rust"},"4":{"name":"keyword.operator.key-value.rust"},"5":{"name":"variable.other.metavariable.specifier.rust"}},"match":"(\\\\$)([a-z]\\\\w*)(\\\\s*(:)\\\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\\\b)?","name":"meta.macro.metavariable.rust","patterns":[{"include":"#keywords"}]},{"captures":{"1":{"name":"entity.name.function.macro.rules.rust"},"3":{"name":"entity.name.function.macro.rust"},"4":{"name":"entity.name.type.macro.rust"},"5":{"name":"punctuation.brackets.curly.rust"}},"match":"\\\\b(macro_rules!)\\\\s+(([0-9_a-z]+)|([A-Z][0-9_a-z]*))\\\\s+(\\\\{)","name":"meta.macro.rules.rust"},{"captures":{"1":{"name":"storage.type.rust"},"2":{"name":"entity.name.module.rust"}},"match":"(mod)\\\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][0-9A-Z_a-z]*)"},{"begin":"\\\\b(extern)\\\\s+(crate)","beginCaptures":{"1":{"name":"storage.type.rust"},"2":{"name":"keyword.other.crate.rust"}},"end":";","endCaptures":{"0":{"name":"punctuation.semi.rust"}},"name":"meta.import.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#punctuation"}]},{"begin":"\\\\b(use)\\\\s","beginCaptures":{"1":{"name":"keyword.other.rust"}},"end":";","endCaptures":{"0":{"name":"punctuation.semi.rust"}},"name":"meta.use.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#types"},{"include":"#lvariables"}]},{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#types"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#variables"}],"repository":{"attributes":{"begin":"(#)(!?)(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.attribute.rust"},"3":{"name":"punctuation.brackets.attribute.rust"}},"end":"]","endCaptures":{"0":{"name":"punctuation.brackets.attribute.rust"}},"name":"meta.attribute.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#gtypes"},{"include":"#types"}]},"block-comments":{"patterns":[{"match":"/\\\\*\\\\*/","name":"comment.block.rust"},{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.documentation.rust","patterns":[{"include":"#block-comments"}]},{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.rust","patterns":[{"include":"#block-comments"}]}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.rust"}},"match":"(///).*$","name":"comment.line.documentation.rust"},{"captures":{"1":{"name":"punctuation.definition.comment.rust"}},"match":"(//).*$","name":"comment.line.double-slash.rust"}]},"constants":{"patterns":[{"match":"\\\\b[A-Z]{2}[0-9A-Z_]*\\\\b","name":"constant.other.caps.rust"},{"captures":{"1":{"name":"storage.type.rust"},"2":{"name":"constant.other.caps.rust"}},"match":"\\\\b(const)\\\\s+([A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"punctuation.separator.dot.decimal.rust"},"2":{"name":"keyword.operator.exponent.rust"},"3":{"name":"keyword.operator.exponent.sign.rust"},"4":{"name":"constant.numeric.decimal.exponent.mantissa.rust"},"5":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b\\\\d[_\\\\d]*(\\\\.?)[_\\\\d]*(?:([Ee])([-+]?)([_\\\\d]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.decimal.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0x[A-F_a-f\\\\d]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.hex.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.oct.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.bin.rust"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.bool.rust"}]},"escapes":{"captures":{"1":{"name":"constant.character.escape.backslash.rust"},"2":{"name":"constant.character.escape.bit.rust"},"3":{"name":"constant.character.escape.unicode.rust"},"4":{"name":"constant.character.escape.unicode.punctuation.rust"},"5":{"name":"constant.character.escape.unicode.punctuation.rust"}},"match":"(\\\\\\\\)(?:(x[0-7][A-Fa-f\\\\d])|(u(\\\\{)[A-Fa-f\\\\d]{4,6}(}))|.)","name":"constant.character.escape.rust"},"functions":{"patterns":[{"captures":{"1":{"name":"keyword.other.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"match":"\\\\b(pub)(\\\\()"},{"begin":"\\\\b(fn)\\\\s+((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)((\\\\()|(<))","beginCaptures":{"1":{"name":"keyword.other.fn.rust"},"2":{"name":"entity.name.function.rust"},"4":{"name":"punctuation.brackets.round.rust"},"5":{"name":"punctuation.brackets.angle.rust"}},"end":"(\\\\{)|(;)","endCaptures":{"1":{"name":"punctuation.brackets.curly.rust"},"2":{"name":"punctuation.semi.rust"}},"name":"meta.function.definition.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]},{"begin":"((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}},"name":"meta.function.call.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]},{"begin":"((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)(?=::<.*>\\\\()","beginCaptures":{"1":{"name":"entity.name.function.rust"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}},"name":"meta.function.call.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]}]},"gtypes":{"patterns":[{"match":"\\\\b(Some|None)\\\\b","name":"entity.name.type.option.rust"},{"match":"\\\\b(Ok|Err)\\\\b","name":"entity.name.type.result.rust"}]},"interpolations":{"captures":{"1":{"name":"punctuation.definition.interpolation.rust"},"2":{"name":"punctuation.definition.interpolation.rust"}},"match":"(\\\\{)[^\\"{}]*(})","name":"meta.interpolation.rust"},"keywords":{"patterns":[{"match":"\\\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\\\b","name":"keyword.control.rust"},{"match":"\\\\b(extern|let|macro|mod)\\\\b","name":"keyword.other.rust storage.type.rust"},{"match":"\\\\b(const)\\\\b","name":"storage.modifier.rust"},{"match":"\\\\b(type)\\\\b","name":"keyword.declaration.type.rust storage.type.rust"},{"match":"\\\\b(enum)\\\\b","name":"keyword.declaration.enum.rust storage.type.rust"},{"match":"\\\\b(trait)\\\\b","name":"keyword.declaration.trait.rust storage.type.rust"},{"match":"\\\\b(struct)\\\\b","name":"keyword.declaration.struct.rust storage.type.rust"},{"match":"\\\\b(abstract|static)\\\\b","name":"storage.modifier.rust"},{"match":"\\\\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\\\b","name":"keyword.other.rust"},{"match":"\\\\bfn\\\\b","name":"keyword.other.fn.rust"},{"match":"\\\\bcrate\\\\b","name":"keyword.other.crate.rust"},{"match":"\\\\bmut\\\\b","name":"storage.modifier.mut.rust"},{"match":"([\\\\^|]|\\\\|\\\\||&&|<<|>>|!)(?!=)","name":"keyword.operator.logical.rust"},{"match":"&(?![\\\\&=])","name":"keyword.operator.borrow.and.rust"},{"match":"((?:[-%\\\\&*+/^|]|<<|>>)=)","name":"keyword.operator.assignment.rust"},{"match":"(?])=(?![=>])","name":"keyword.operator.assignment.equal.rust"},{"match":"(=(=)?(?!>)|!=|<=|(?=)","name":"keyword.operator.comparison.rust"},{"match":"(([%+]|(\\\\*(?!\\\\w)))(?!=))|(-(?!>))|(/(?!/))","name":"keyword.operator.math.rust"},{"captures":{"1":{"name":"punctuation.brackets.round.rust"},"2":{"name":"punctuation.brackets.square.rust"},"3":{"name":"punctuation.brackets.curly.rust"},"4":{"name":"keyword.operator.comparison.rust"},"5":{"name":"punctuation.brackets.round.rust"},"6":{"name":"punctuation.brackets.square.rust"},"7":{"name":"punctuation.brackets.curly.rust"}},"match":"(?:\\\\b|(?:(\\\\))|(])|(})))[\\\\t ]+([<>])[\\\\t ]+(?:\\\\b|(?:(\\\\()|(\\\\[)|(\\\\{)))"},{"match":"::","name":"keyword.operator.namespace.rust"},{"captures":{"1":{"name":"keyword.operator.dereference.rust"}},"match":"(\\\\*)(?=\\\\w+)"},{"match":"@","name":"keyword.operator.subpattern.rust"},{"match":"\\\\.(?!\\\\.)","name":"keyword.operator.access.dot.rust"},{"match":"\\\\.{2}([.=])?","name":"keyword.operator.range.rust"},{"match":":(?!:)","name":"keyword.operator.key-value.rust"},{"match":"->|<-","name":"keyword.operator.arrow.skinny.rust"},{"match":"=>","name":"keyword.operator.arrow.fat.rust"},{"match":"\\\\$","name":"keyword.operator.macro.dollar.rust"},{"match":"\\\\?","name":"keyword.operator.question.rust"}]},"lifetimes":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.lifetime.rust"},"2":{"name":"entity.name.type.lifetime.rust"}},"match":"(')([A-Z_a-z][0-9A-Z_a-z]*)(?!')\\\\b"},{"captures":{"1":{"name":"keyword.operator.borrow.rust"},"2":{"name":"punctuation.definition.lifetime.rust"},"3":{"name":"entity.name.type.lifetime.rust"}},"match":"(&)(')([A-Z_a-z][0-9A-Z_a-z]*)(?!')\\\\b"}]},"lvariables":{"patterns":[{"match":"\\\\b[Ss]elf\\\\b","name":"variable.language.self.rust"},{"match":"\\\\bsuper\\\\b","name":"variable.language.super.rust"}]},"macros":{"patterns":[{"captures":{"2":{"name":"entity.name.function.macro.rust"},"3":{"name":"entity.name.type.macro.rust"}},"match":"(([_a-z][0-9A-Z_a-z]*!)|([A-Z_][0-9A-Z_a-z]*!))","name":"meta.macro.rust"}]},"namespaces":{"patterns":[{"captures":{"1":{"name":"entity.name.namespace.rust"},"2":{"name":"keyword.operator.namespace.rust"}},"match":"(?]","name":"punctuation.brackets.angle.rust"}]},"strings":{"patterns":[{"begin":"(b?)(\\")","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.rust"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.rust"}},"name":"string.quoted.double.rust","patterns":[{"include":"#escapes"},{"include":"#interpolations"}]},{"begin":"(b?r)(#*)(\\")","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.raw.rust"},"3":{"name":"punctuation.definition.string.rust"}},"end":"(\\")(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.rust"},"2":{"name":"punctuation.definition.string.raw.rust"}},"name":"string.quoted.double.rust"},{"begin":"(b)?(')","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.char.rust"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.char.rust"}},"name":"string.quoted.single.char.rust","patterns":[{"include":"#escapes"}]}]},"types":{"patterns":[{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"(?","endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}},"patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"},{"include":"#variables"}]},{"match":"\\\\b(bool|char|str)\\\\b","name":"entity.name.type.primitive.rust"},{"captures":{"1":{"name":"keyword.declaration.trait.rust storage.type.rust"},"2":{"name":"entity.name.type.trait.rust"}},"match":"\\\\b(trait)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.struct.rust storage.type.rust"},"2":{"name":"entity.name.type.struct.rust"}},"match":"\\\\b(struct)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.enum.rust storage.type.rust"},"2":{"name":"entity.name.type.enum.rust"}},"match":"\\\\b(enum)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.type.rust storage.type.rust"},"2":{"name":"entity.name.type.declaration.rust"}},"match":"\\\\b(type)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"match":"\\\\b_?[A-Z][0-9A-Z_a-z]*\\\\b(?!!)","name":"entity.name.type.rust"}]},"variables":{"patterns":[{"match":"\\\\b(?=a)&&(r=a);else{let a=-1;for(let u of t)(u=i(u,++a,t))!=null&&(r=u)&&(r=u)}return r}function ut(t,i){let r;if(i===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let u of t)(u=i(u,++a,t))!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}return r}function nt(t,i){let r=0;if(i===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let u of t)(u=+i(u,++a,t))&&(r+=u)}return r}function Ct(t){return t.target.depth}function $t(t){return t.depth}function Ot(t,i){return i-1-t.height}function ct(t,i){return t.sourceLinks.length?t.depth:i-1}function Tt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?ut(t.sourceLinks,Ct)-1:0}function Q(t){return function(){return t}}function ft(t,i){return Y(t.source,i.source)||t.index-i.index}function yt(t,i){return Y(t.target,i.target)||t.index-i.index}function Y(t,i){return t.y0-i.y0}function it(t){return t.value}function Dt(t){return t.index}function zt(t){return t.nodes}function jt(t){return t.links}function gt(t,i){let r=t.get(i);if(!r)throw Error("missing: "+i);return r}function dt({nodes:t}){for(let i of t){let r=i.y0,a=r;for(let u of i.sourceLinks)u.y0=r+u.width/2,r+=u.width;for(let u of i.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Ft(){let t=0,i=0,r=1,a=1,u=24,d=8,e,c=Dt,l=ct,y,p,g=zt,S=jt,L=6;function k(){let n={nodes:g.apply(null,arguments),links:S.apply(null,arguments)};return O(n),I(n),C(n),T(n),N(n),dt(n),n}k.update=function(n){return dt(n),n},k.nodeId=function(n){return arguments.length?(c=typeof n=="function"?n:Q(n),k):c},k.nodeAlign=function(n){return arguments.length?(l=typeof n=="function"?n:Q(n),k):l},k.nodeSort=function(n){return arguments.length?(y=n,k):y},k.nodeWidth=function(n){return arguments.length?(u=+n,k):u},k.nodePadding=function(n){return arguments.length?(d=e=+n,k):d},k.nodes=function(n){return arguments.length?(g=typeof n=="function"?n:Q(n),k):g},k.links=function(n){return arguments.length?(S=typeof n=="function"?n:Q(n),k):S},k.linkSort=function(n){return arguments.length?(p=n,k):p},k.size=function(n){return arguments.length?(t=i=0,r=+n[0],a=+n[1],k):[r-t,a-i]},k.extent=function(n){return arguments.length?(t=+n[0][0],r=+n[1][0],i=+n[0][1],a=+n[1][1],k):[[t,i],[r,a]]},k.iterations=function(n){return arguments.length?(L=+n,k):L};function O({nodes:n,links:f}){for(let[o,s]of n.entries())s.index=o,s.sourceLinks=[],s.targetLinks=[];let h=new Map(n.map((o,s)=>[c(o,s,n),o]));for(let[o,s]of f.entries()){s.index=o;let{source:_,target:b}=s;typeof _!="object"&&(_=s.source=gt(h,_)),typeof b!="object"&&(b=s.target=gt(h,b)),_.sourceLinks.push(s),b.targetLinks.push(s)}if(p!=null)for(let{sourceLinks:o,targetLinks:s}of n)o.sort(p),s.sort(p)}function I({nodes:n}){for(let f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function C({nodes:n}){let f=n.length,h=new Set(n),o=new Set,s=0;for(;h.size;){for(let _ of h){_.depth=s;for(let{target:b}of _.sourceLinks)o.add(b)}if(++s>f)throw Error("circular link");h=o,o=new Set}}function T({nodes:n}){let f=n.length,h=new Set(n),o=new Set,s=0;for(;h.size;){for(let _ of h){_.height=s;for(let{source:b}of _.targetLinks)o.add(b)}if(++s>f)throw Error("circular link");h=o,o=new Set}}function P({nodes:n}){let f=ht(n,s=>s.depth)+1,h=(r-t-u)/(f-1),o=Array(f);for(let s of n){let _=Math.max(0,Math.min(f-1,Math.floor(l.call(null,s,f))));s.layer=_,s.x0=t+_*h,s.x1=s.x0+u,o[_]?o[_].push(s):o[_]=[s]}if(y)for(let s of o)s.sort(y);return o}function v(n){let f=ut(n,h=>(a-i-(h.length-1)*e)/nt(h,it));for(let h of n){let o=i;for(let s of h){s.y0=o,s.y1=o+s.value*f,o=s.y1+e;for(let _ of s.sourceLinks)_.width=_.value*f}o=(a-o+e)/(h.length+1);for(let s=0;sh.length)-1)),v(f);for(let h=0;h0))continue;let R=(E/U-b.y0)*f;b.y0+=R,b.y1+=R,A(b)}y===void 0&&_.sort(Y),m(_,h)}}function $(n,f,h){for(let o=n.length-2;o>=0;--o){let s=n[o];for(let _ of s){let b=0,E=0;for(let{target:R,value:X}of _.sourceLinks){let q=X*(R.layer-_.layer);b+=M(_,R)*q,E+=q}if(!(E>0))continue;let U=(b/E-_.y0)*f;_.y0+=U,_.y1+=U,A(_)}y===void 0&&s.sort(Y),m(s,h)}}function m(n,f){let h=n.length>>1,o=n[h];V(n,o.y0-e,h-1,f),w(n,o.y1+e,h+1,f),V(n,a,n.length-1,f),w(n,i,0,f)}function w(n,f,h,o){for(;h1e-6&&(s.y0+=_,s.y1+=_),f=s.y1+e}}function V(n,f,h,o){for(;h>=0;--h){let s=n[h],_=(s.y1-f)*o;_>1e-6&&(s.y0-=_,s.y1-=_),f=s.y0-e}}function A({sourceLinks:n,targetLinks:f}){if(p===void 0){for(let{source:{sourceLinks:h}}of f)h.sort(yt);for(let{target:{targetLinks:h}}of n)h.sort(ft)}}function B(n){if(p===void 0)for(let{sourceLinks:f,targetLinks:h}of n)f.sort(yt),h.sort(ft)}function z(n,f){let h=n.y0-(n.sourceLinks.length-1)*e/2;for(let{target:o,width:s}of n.sourceLinks){if(o===f)break;h+=s+e}for(let{source:o,width:s}of f.targetLinks){if(o===n)break;h-=s}return h}function M(n,f){let h=f.y0-(f.targetLinks.length-1)*e/2;for(let{source:o,width:s}of f.targetLinks){if(o===n)break;h+=s+e}for(let{target:o,width:s}of n.sourceLinks){if(o===f)break;h-=s}return h}return k}var rt=Math.PI,st=2*rt,F=1e-6,Ut=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new ot}ot.prototype=pt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,r,a){this._+="Q"+ +t+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,i,r,a,u,d){this._+="C"+ +t+","+ +i+","+ +r+","+ +a+","+(this._x1=+u)+","+(this._y1=+d)},arcTo:function(t,i,r,a,u){t=+t,i=+i,r=+r,a=+a,u=+u;var d=this._x1,e=this._y1,c=r-t,l=a-i,y=d-t,p=e-i,g=y*y+p*p;if(u<0)throw Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(g>F)if(!(Math.abs(p*c-l*y)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var S=r-d,L=a-e,k=c*c+l*l,O=S*S+L*L,I=Math.sqrt(k),C=Math.sqrt(g),T=u*Math.tan((rt-Math.acos((k+g-O)/(2*I*C)))/2),P=T/C,v=T/I;Math.abs(P-1)>F&&(this._+="L"+(t+P*y)+","+(i+P*p)),this._+="A"+u+","+u+",0,0,"+ +(p*S>y*L)+","+(this._x1=t+v*c)+","+(this._y1=i+v*l)}},arc:function(t,i,r,a,u,d){t=+t,i=+i,r=+r,d=!!d;var e=r*Math.cos(a),c=r*Math.sin(a),l=t+e,y=i+c,p=1^d,g=d?a-u:u-a;if(r<0)throw Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+y:(Math.abs(this._x1-l)>F||Math.abs(this._y1-y)>F)&&(this._+="L"+l+","+y),r&&(g<0&&(g=g%st+st),g>Ut?this._+="A"+r+","+r+",0,1,"+p+","+(t-e)+","+(i-c)+"A"+r+","+r+",0,1,"+p+","+(this._x1=l)+","+(this._y1=y):g>F&&(this._+="A"+r+","+r+",0,"+ +(g>=rt)+","+p+","+(this._x1=t+r*Math.cos(u))+","+(this._y1=i+r*Math.sin(u))))},rect:function(t,i,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};var Wt=pt;function _t(t){return function(){return t}}function Gt(t){return t[0]}function Vt(t){return t[1]}var Bt=Array.prototype.slice;function Rt(t){return t.source}function Xt(t){return t.target}function qt(t){var i=Rt,r=Xt,a=Gt,u=Vt,d=null;function e(){var c,l=Bt.call(arguments),y=i.apply(this,l),p=r.apply(this,l);if(d||(d=c=Wt()),t(d,+a.apply(this,(l[0]=y,l)),+u.apply(this,l),+a.apply(this,(l[0]=p,l)),+u.apply(this,l)),c)return d=null,c+""||null}return e.source=function(c){return arguments.length?(i=c,e):i},e.target=function(c){return arguments.length?(r=c,e):r},e.x=function(c){return arguments.length?(a=typeof c=="function"?c:_t(+c),e):a},e.y=function(c){return arguments.length?(u=typeof c=="function"?c:_t(+c),e):u},e.context=function(c){return arguments.length?(d=c??null,e):d},e}function Qt(t,i,r,a,u){t.moveTo(i,r),t.bezierCurveTo(i=(i+a)/2,r,i,u,a,u)}function Yt(){return qt(Qt)}function Kt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function Ht(){return Yt().source(Kt).target(Zt)}var at=(function(){var t=x(function(e,c,l,y){for(l||(l={}),y=e.length;y--;l[e[y]]=c);return l},"o"),i=[1,9],r=[1,10],a=[1,5,10,12],u={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:x(function(e,c,l,y,p,g,S){var L=g.length-1;switch(p){case 7:let k=y.findOrCreateNode(g[L-4].trim().replaceAll('""','"')),O=y.findOrCreateNode(g[L-2].trim().replaceAll('""','"')),I=parseFloat(g[L].trim());y.addLink(k,O,I);break;case 8:case 9:case 11:this.$=g[L];break;case 10:this.$=g[L-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:r},{15:18,16:7,17:8,18:i,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:i,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:x(function(e,c){if(c.recoverable)this.trace(e);else{var l=Error(e);throw l.hash=c,l}},"parseError"),parse:x(function(e){var c=this,l=[0],y=[],p=[null],g=[],S=this.table,L="",k=0,O=0,I=0,C=2,T=1,P=g.slice.call(arguments,1),v=Object.create(this.lexer),N={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(N.yy[D]=this.yy[D]);v.setInput(e,N.yy),N.yy.lexer=v,N.yy.parser=this,v.yylloc===void 0&&(v.yylloc={});var $=v.yylloc;g.push($);var m=v.options&&v.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w(E){l.length-=2*E,p.length-=E,g.length-=E}x(w,"popStack");function V(){var E=y.pop()||v.lex()||T;return typeof E!="number"&&(E instanceof Array&&(y=E,E=y.pop()),E=c.symbols_[E]||E),E}x(V,"lex");for(var A,B,z,M,n,f={},h,o,s,_;;){if(z=l[l.length-1],this.defaultActions[z]?M=this.defaultActions[z]:(A??(A=V()),M=S[z]&&S[z][A]),M===void 0||!M.length||!M[0]){var b="";for(h in _=[],S[z])this.terminals_[h]&&h>C&&_.push("'"+this.terminals_[h]+"'");b=v.showPosition?"Parse error on line "+(k+1)+`: +`+v.showPosition()+` +Expecting `+_.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(k+1)+": Unexpected "+(A==T?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(b,{text:v.match,token:this.terminals_[A]||A,line:v.yylineno,loc:$,expected:_})}if(M[0]instanceof Array&&M.length>1)throw Error("Parse Error: multiple actions possible at state: "+z+", token: "+A);switch(M[0]){case 1:l.push(A),p.push(v.yytext),g.push(v.yylloc),l.push(M[1]),A=null,B?(A=B,B=null):(O=v.yyleng,L=v.yytext,k=v.yylineno,$=v.yylloc,I>0&&I--);break;case 2:if(o=this.productions_[M[1]][1],f.$=p[p.length-o],f._$={first_line:g[g.length-(o||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(o||1)].first_column,last_column:g[g.length-1].last_column},m&&(f._$.range=[g[g.length-(o||1)].range[0],g[g.length-1].range[1]]),n=this.performAction.apply(f,[L,O,k,N.yy,M[1],p,g].concat(P)),n!==void 0)return n;o&&(l=l.slice(0,-1*o*2),p=p.slice(0,-1*o),g=g.slice(0,-1*o)),l.push(this.productions_[M[1]][0]),p.push(f.$),g.push(f._$),s=S[l[l.length-2]][l[l.length-1]],l.push(s);break;case 3:return!0}}return!0},"parse")};u.lexer=(function(){return{EOF:1,parseError:x(function(e,c){if(this.yy.parser)this.yy.parser.parseError(e,c);else throw Error(e)},"parseError"),setInput:x(function(e,c){return this.yy=c||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:x(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:x(function(e){var c=e.length,l=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:x(function(e){this.unput(this.match.slice(e))},"less"),pastInput:x(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var e=this.pastInput(),c=Array(e.length+1).join("-");return e+this.upcomingInput()+` +`+c+"^"},"showPosition"),test_match:x(function(e,c){var l,y,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),y=e[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],l=this.performAction.call(this,this.yy,this,c,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var g in p)this[g]=p[g];return!1}return!1},"test_match"),next:x(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,c,l,y;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),g=0;gc[0].length)){if(c=l,y=g,this.options.backtrack_lexer){if(e=this.test_match(l,p[g]),e!==!1)return e;if(this._backtrack){c=!1;continue}else return!1}else if(!this.options.flex)break}return c?(e=this.test_match(c,p[y]),e===!1?!1:e):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:x(function(){return this.next()||this.lex()},"lex"),begin:x(function(e){this.conditionStack.push(e)},"begin"),popState:x(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:x(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:x(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:x(function(e){this.begin(e)},"pushState"),stateStackSize:x(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:x(function(e,c,l,y){switch(l){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}}})();function d(){this.yy={}}return x(d,"Parser"),d.prototype=u,u.Parser=d,new d})();at.parser=at;var K=at,Z=[],H=[],J=new Map,Jt=x(()=>{Z=[],H=[],J=new Map,At()},"clear"),te=(W=class{constructor(i,r,a=0){this.source=i,this.target=r,this.value=a}},x(W,"SankeyLink"),W),ee=x((t,i,r)=>{Z.push(new te(t,i,r))},"addLink"),ne=(G=class{constructor(i){this.ID=i}},x(G,"SankeyNode"),G),ie={nodesMap:J,getConfig:x(()=>et().sankey,"getConfig"),getNodes:x(()=>H,"getNodes"),getLinks:x(()=>Z,"getLinks"),getGraph:x(()=>({nodes:H.map(t=>({id:t.ID})),links:Z.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),addLink:ee,findOrCreateNode:x(t=>{t=St.sanitizeText(t,et());let i=J.get(t);return i===void 0&&(i=new ne(t),J.set(t,i),H.push(i)),i},"findOrCreateNode"),getAccTitle:It,setAccTitle:vt,getAccDescription:wt,setAccDescription:Pt,getDiagramTitle:bt,setDiagramTitle:Et,clear:Jt},mt=(j=class{static next(i){return new j(i+ ++j.count)}constructor(i){this.id=i,this.href=`#${i}`}toString(){return"url("+this.href+")"}},x(j,"Uid"),j.count=0,j),re={left:$t,right:Ot,center:Tt,justify:ct},se={draw:x(function(t,i,r,a){let{securityLevel:u,sankey:d}=et(),e=Mt.sankey,c;u==="sandbox"&&(c=tt("#i"+i));let l=tt(u==="sandbox"?c.nodes()[0].contentDocument.body:"body"),y=u==="sandbox"?l.select(`[id="${i}"]`):tt(`[id="${i}"]`),p=(d==null?void 0:d.width)??e.width,g=(d==null?void 0:d.height)??e.width,S=(d==null?void 0:d.useMaxWidth)??e.useMaxWidth,L=(d==null?void 0:d.nodeAlignment)??e.nodeAlignment,k=(d==null?void 0:d.prefix)??e.prefix,O=(d==null?void 0:d.suffix)??e.suffix,I=(d==null?void 0:d.showValues)??e.showValues,C=a.db.getGraph(),T=re[L];Ft().nodeId(m=>m.id).nodeWidth(10).nodePadding(10+(I?15:0)).nodeAlign(T).extent([[0,0],[p,g]])(C);let P=xt(Nt);y.append("g").attr("class","nodes").selectAll(".node").data(C.nodes).join("g").attr("class","node").attr("id",m=>(m.uid=mt.next("node-")).id).attr("transform",function(m){return"translate("+m.x0+","+m.y0+")"}).attr("x",m=>m.x0).attr("y",m=>m.y0).append("rect").attr("height",m=>m.y1-m.y0).attr("width",m=>m.x1-m.x0).attr("fill",m=>P(m.id));let v=x(({id:m,value:w})=>I?`${m} +${k}${Math.round(w*100)/100}${O}`:m,"getText");y.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(C.nodes).join("text").attr("x",m=>m.x0

(m.y1+m.y0)/2).attr("dy",`${I?"0":"0.35"}em`).attr("text-anchor",m=>m.x0

(w.uid=mt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);m.append("stop").attr("offset","0%").attr("stop-color",w=>P(w.source.id)),m.append("stop").attr("offset","100%").attr("stop-color",w=>P(w.target.id))}let $;switch(D){case"gradient":$=x(m=>m.uid,"coloring");break;case"source":$=x(m=>P(m.source.id),"coloring");break;case"target":$=x(m=>P(m.target.id),"coloring");break;default:$=D}N.append("path").attr("d",Ht()).attr("stroke",$).attr("stroke-width",m=>Math.max(1,m.width)),Lt(void 0,y,0,S)},"draw")},oe=x(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),"prepareTextForParsing"),ae=x(t=>`.label { + font-family: ${t.fontFamily}; + }`,"getStyles"),le=K.parse.bind(K);K.parse=t=>le(oe(t));var he={styles:ae,parser:K,db:ie,renderer:se};export{he as diagram}; diff --git a/docs/assets/sas-BKYzR5_z.js b/docs/assets/sas-BKYzR5_z.js new file mode 100644 index 0000000..78aa1f5 --- /dev/null +++ b/docs/assets/sas-BKYzR5_z.js @@ -0,0 +1 @@ +import{t as s}from"./sas-TQvbwzLU.js";export{s as sas}; diff --git a/docs/assets/sas-TQvbwzLU.js b/docs/assets/sas-TQvbwzLU.js new file mode 100644 index 0000000..22d22a8 --- /dev/null +++ b/docs/assets/sas-TQvbwzLU.js @@ -0,0 +1 @@ +var r={},l={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},c=/(<=|>=|!=|<>)/,m=/[=\(:\),{}.*<>+\-\/^\[\]]/;function o(e,n,s){if(s)for(var a=n.split(" "),t=0;t^~\xAC]?=(:)?|[!<>|\xA6\xAC]|^|~|<>|><|\\\\|\\\\|)","name":"keyword.operator.sas"}]},"quote":{"patterns":[{"begin":"(?\\\\[_\\\\s])","name":"entity.name.tag.css.sass.symbol","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"#","end":"$\\\\n?|(?=[(),.>\\\\[\\\\s])","name":"entity.other.attribute-name.id.css.sass","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\.|(?<=&)([-_])","end":"$\\\\n?|(?=[(),>\\\\[\\\\s])","name":"entity.other.attribute-name.class.css.sass","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"begin":"\\\\[","end":"]","name":"entity.other.attribute-selector.sass","patterns":[{"include":"#double-quoted"},{"include":"#single-quoted"},{"match":"[$*^~]","name":"keyword.other.regex.sass"}]},{"match":"^((?<=[])]|not\\\\(|[*>]|>\\\\s)|\\\\n*):[-:a-z]+|(:[-:])[-:a-z]+","name":"entity.other.attribute-name.pseudo-class.css.sass"},{"include":"#module"},{"match":"[-\\\\w]*\\\\(","name":"entity.name.function"},{"match":"\\\\)","name":"entity.name.function.close"},{"begin":":","end":"$\\\\n?|(?=\\\\s\\\\(|and\\\\(|\\\\),)","name":"meta.property-list.css.sass.prop","patterns":[{"match":"(?<=:)[-a-z]+\\\\s","name":"support.type.property-name.css.sass.prop.name"},{"include":"#double-slash"},{"include":"#double-quoted"},{"include":"#single-quoted"},{"include":"#interpolation"},{"include":"#curly-brackets"},{"include":"#variable"},{"include":"#rgb-value"},{"include":"#numeric"},{"include":"#unit"},{"include":"#module"},{"match":"--.+?(?=\\\\))","name":"variable.css"},{"match":"[-\\\\w]*\\\\(","name":"entity.name.function"},{"match":"\\\\)","name":"entity.name.function.close"},{"include":"#flag"},{"include":"#comma"},{"include":"#semicolon"},{"include":"#function"},{"include":"#function-content"},{"include":"#operator"},{"include":"#parent-selector"},{"include":"#property-value"}]},{"include":"#rgb-value"},{"include":"#function"},{"include":"#function-content"},{"begin":"(?<=})(?![\\\\n()]|[-0-9A-Z_a-z]+:)","end":"\\\\s|(?=[\\\\n),.\\\\[])","name":"entity.name.tag.css.sass","patterns":[{"include":"#interpolation"},{"include":"#pseudo-class"}]},{"include":"#operator"},{"match":"[-a-z]+((?=:|#\\\\{))","name":"support.type.property-name.css.sass.prop.name"},{"include":"#reserved-words"},{"include":"#property-value"}],"repository":{"colon":{"match":":","name":"meta.property-list.css.sass.colon"},"comma":{"match":"\\\\band\\\\b|\\\\bor\\\\b|,","name":"comment.punctuation.comma.sass"},"comment-param":{"match":"@(\\\\w+)","name":"storage.type.class.jsdoc"},"comment-tag":{"begin":"(?<=\\\\{\\\\{)","end":"(?=}})","name":"comment.tag.sass"},"curly-brackets":{"match":"[{}]","name":"invalid"},"dotdotdot":{"match":"\\\\.\\\\.\\\\.","name":"variable.other"},"double-quoted":{"begin":"\\"","end":"\\"","name":"string.quoted.double.css.sass","patterns":[{"include":"#quoted-interpolation"}]},"double-slash":{"begin":"//","end":"$\\\\n?","name":"comment.line.sass","patterns":[{"include":"#comment-tag"}]},"flag":{"match":"!(important|default|optional|global)","name":"keyword.other.important.css.sass"},"function":{"match":"(?<=[(,:|\\\\s])(?!url|format|attr)[-0-9A-Z_a-z][-\\\\w]*(?=\\\\()","name":"support.function.name.sass"},"function-content":{"begin":"(?<=url\\\\(|format\\\\(|attr\\\\()","end":".(?=\\\\))","name":"string.quoted.double.css.sass"},"import-quotes":{"match":"[\\"']?\\\\.{0,2}[/\\\\w]+[\\"']?","name":"constant.character.css.sass"},"interpolation":{"begin":"#\\\\{","end":"}","name":"support.function.interpolation.sass","patterns":[{"include":"#variable"},{"include":"#numeric"},{"include":"#operator"},{"include":"#unit"},{"include":"#comma"},{"include":"#double-quoted"},{"include":"#single-quoted"}]},"module":{"captures":{"1":{"name":"constant.character.module.name"},"2":{"name":"constant.numeric.module.dot"}},"match":"([-\\\\w]+?)(\\\\.)","name":"constant.character.module"},"numeric":{"match":"([-.])?[0-9]+(\\\\.[0-9]+)?","name":"constant.numeric.css.sass"},"operator":{"match":"\\\\+|\\\\s-\\\\s|\\\\s-(?=\\\\$)|(?<=\\\\()-(?=\\\\$)|\\\\s-(?=\\\\()|[!%*/<=>~]","name":"keyword.operator.sass"},"parent-selector":{"match":"&","name":"entity.name.tag.css.sass"},"parenthesis-close":{"match":"\\\\)","name":"entity.name.function.parenthesis.close"},"parenthesis-open":{"match":"\\\\(","name":"entity.name.function.parenthesis.open"},"placeholder-selector":{"begin":"(?()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=e=>t=>c(t.default,e),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function.")});function d(e){return e}function f(e,t){let n=e.map(e=>`"${e}"`).join(`, `);return Error(`This RPC instance cannot ${t} because the transport did not provide one or more of these methods: ${n}`)}function p(e={}){let t={};function n(e){t=e}let r={};function i(e){r.unregisterHandler&&r.unregisterHandler(),r=e,r.registerHandler?.(g)}let a;function o(e){if(typeof e==`function`){a=e;return}a=(t,n)=>{let r=e[t];if(r)return r(n);let i=e._;if(!i)throw Error(`The requested method has no handler: ${t}`);return i(t,n)}}let{maxRequestTime:s=1e3}=e;e.transport&&i(e.transport),e.requestHandler&&o(e.requestHandler),e._debugHooks&&n(e._debugHooks);let c=0;function l(){return c<=1e10?++c:c=0}let u=new Map,d=new Map;function p(e,...n){let i=n[0];return new Promise((n,a)=>{if(!r.send)throw f([`send`],`make requests`);let o=l(),c={type:`request`,id:o,method:e,params:i};u.set(o,{resolve:n,reject:a}),s!==1/0&&d.set(o,setTimeout(()=>{d.delete(o),a(Error(`RPC request timed out.`))},s)),t.onSend?.(c),r.send(c)})}let ee=new Proxy(p,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>p(t,e)}),te=ee;function ne(e,...n){let i=n[0];if(!r.send)throw f([`send`],`send messages`);let a={type:`message`,id:e,payload:i};t.onSend?.(a),r.send(a)}let re=new Proxy(ne,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>ne(t,e)}),ie=re,m=new Map,h=new Set;function ae(e,t){if(!r.registerHandler)throw f([`registerHandler`],`register message listeners`);if(e===`*`){h.add(t);return}m.has(e)||m.set(e,new Set),m.get(e)?.add(t)}function oe(e,t){if(e===`*`){h.delete(t);return}m.get(e)?.delete(t),m.get(e)?.size===0&&m.delete(e)}async function g(e){if(t.onReceive?.(e),!(`type`in e))throw Error(`Message does not contain a type.`);if(e.type===`request`){if(!r.send||!a)throw f([`send`,`requestHandler`],`handle requests`);let{id:n,method:i,params:o}=e,s;try{s={type:`response`,id:n,success:!0,payload:await a(i,o)}}catch(e){if(!(e instanceof Error))throw e;s={type:`response`,id:n,success:!1,error:e.message}}t.onSend?.(s),r.send(s);return}if(e.type===`response`){let t=d.get(e.id);t!=null&&clearTimeout(t);let{resolve:n,reject:r}=u.get(e.id)??{};e.success?n?.(e.payload):r?.(Error(e.error));return}if(e.type===`message`){for(let t of h)t(e.id,e.payload);let t=m.get(e.id);if(!t)return;for(let n of t)n(e.payload);return}throw Error(`Unexpected RPC message type: ${e.type}`)}return{setTransport:i,setRequestHandler:o,request:ee,requestProxy:te,send:re,sendProxy:ie,addMessageListener:ae,removeMessageListener:oe,proxy:{send:ie,request:te},_setDebugHooks:n}}function ee(e){return p(e)}const te=`[transport-id]`;function ne(e,t){let{transportId:n}=t;return n==null?e:{[te]:n,data:e}}function re(e,t){let{transportId:n,filter:r}=t,i=r?.();if(n!=null&&i!=null)throw Error("Cannot use both `transportId` and `filter` at the same time");let a=e;if(n){if(e[te]!==n)return[!0];a=e.data}return i===!1?[!0]:[!1,a]}function ie(e,t={}){let{transportId:n,filter:r,remotePort:i}=t,a=e,o=i??e,s;return{send(e){o.postMessage(ne(e,{transportId:n}))},registerHandler(e){s=t=>{let i=t.data,[a,o]=re(i,{transportId:n,filter:()=>r?.(t)});a||e(o)},a.addEventListener(`message`,s)},unregisterHandler(){s&&a.removeEventListener(`message`,s)}}}function m(e){return ie(self,e)}const h={NOOP:()=>{},ASYNC_NOOP:async()=>{},THROW:()=>{throw Error(`Should not be called`)},asUpdater:e=>typeof e==`function`?e:()=>e,identity:e=>e},ae=(e,t)=>{let n=`[${e}]`;return{debug:(...e)=>console.debug(n,...e),log:(...e)=>t.log(n,...e),warn:(...e)=>t.warn(n,...e),error:(...e)=>t.error(n,...e),trace:(...e)=>t.trace(n,...e),get:n=>ae(`${e}:${n}`,t),disabled:(e=!0)=>e?g:t}},oe={debug:(...e)=>{console.debug(...e)},log:(...e)=>{console.log(...e)},warn:(...e)=>{console.warn(...e)},error:(...e)=>{console.error(...e)},trace:(...e)=>{console.trace(...e)},get:e=>ae(`marimo:${e}`,oe),disabled:(e=!0)=>e?g:oe},g={debug:()=>h.NOOP,log:()=>h.NOOP,warn:()=>h.NOOP,error:()=>h.NOOP,trace:()=>h.NOOP,get:()=>g,disabled:()=>g};function se(){return typeof window<`u`&&window.Logger||oe}const _=se(),ce=e=>new TextDecoder().decode(e);Object.freeze({status:`aborted`});function v(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var y=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},le=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};const ue={};function b(e){return e&&Object.assign(ue,e),ue}function de(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function fe(e,t){return typeof t==`bigint`?t.toString():t}function pe(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function me(e){return e==null}function he(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const ge=Symbol(`evaluating`);function x(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ge)return r===void 0&&(r=ge,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function S(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function C(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function _e(e){return JSON.stringify(e)}function ve(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const ye=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function be(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const xe=pe(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function w(e){if(be(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(be(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Se(e){return w(e)?{...e}:Array.isArray(e)?[...e]:e}const Ce=new Set([`string`,`number`,`symbol`]);function we(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function T(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function E(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Te(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Ee(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return T(e,C(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return S(this,`shape`,e),e},checks:[]}))}function De(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return T(e,C(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return S(this,`shape`,r),r},checks:[]}))}function Oe(e,t){if(!w(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return T(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return S(this,`shape`,n),n}}))}function ke(e,t){if(!w(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return T(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return S(this,`shape`,n),n}}))}function Ae(e,t){return T(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return S(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function je(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return T(t,C(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return S(this,`shape`,i),i},checks:[]}))}function Me(e,t,n){return T(t,C(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return S(this,`shape`,i),i}}))}function D(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Pe(e){return typeof e==`string`?e:e?.message}function O(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Pe(e.inst?._zod.def?.error?.(e))??Pe(t?.error?.(e))??Pe(n.customError?.(e))??Pe(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Fe(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function k(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const Ie=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,fe,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Le=v(`$ZodError`,Ie),Re=v(`$ZodError`,Ie,{Parent:Error});function ze(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Be(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new y;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,b())));throw ye(t,i?.callee),t}return o.value},He=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,b())));throw ye(t,i?.callee),t}return o.value},Ue=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new y;return a.issues.length?{success:!1,error:new(e??Le)(a.issues.map(e=>O(e,i,b())))}:{success:!0,data:a.value}},We=Ue(Re),Ge=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>O(e,i,b())))}:{success:!0,data:a.value}},Ke=Ge(Re),qe=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ve(e)(t,n,i)},Je=e=>(t,n,r)=>Ve(e)(t,n,r),Ye=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return He(e)(t,n,i)},Xe=e=>async(t,n,r)=>He(e)(t,n,r),Ze=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ue(e)(t,n,i)},Qe=e=>(t,n,r)=>Ue(e)(t,n,r),$e=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ge(e)(t,n,i)},et=e=>async(t,n,r)=>Ge(e)(t,n,r),tt=/^[cC][^\s-]{8,}$/,nt=/^[0-9a-z]+$/,rt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,it=/^[0-9a-vA-V]{20}$/,at=/^[A-Za-z0-9]{27}$/,ot=/^[a-zA-Z0-9_-]{21}$/,st=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ct=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,lt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ut=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function dt(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const ft=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,mt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ht=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,_t=/^[A-Za-z0-9_-]*$/,vt=/^\+[1-9]\d{6,14}$/,yt=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,bt=RegExp(`^${yt}$`);function xt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function St(e){return RegExp(`^${xt(e)}$`)}function Ct(e){let t=xt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${yt}T(?:${r})$`)}const wt=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Tt=/^[^A-Z]*$/,Et=/^[^a-z]*$/,A=v(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Dt=v(`$ZodCheckMaxLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Fe(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ot=v(`$ZodCheckMinLength`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Fe(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kt=v(`$ZodCheckLengthEquals`,(e,t)=>{var n;A.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Fe(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),At=v(`$ZodCheckStringFormat`,(e,t)=>{var n,r;A.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),jt=v(`$ZodCheckRegex`,(e,t)=>{At.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Mt=v(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Tt,At.init(e,t)}),Nt=v(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Et,At.init(e,t)}),Pt=v(`$ZodCheckIncludes`,(e,t)=>{A.init(e,t);let n=we(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ft=v(`$ZodCheckStartsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`^${we(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),It=v(`$ZodCheckEndsWith`,(e,t)=>{A.init(e,t);let n=RegExp(`.*${we(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Lt=v(`$ZodCheckOverwrite`,(e,t)=>{A.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var Rt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` +`))}};const zt={major:4,minor:3,patch:4},j=v(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zt;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=D(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new y;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=D(e,t))});else{if(e.issues.length===t)continue;r||=D(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(D(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(e=>t(e,r,a))}return t(o,r,a)}}x(e,`~standard`,()=>({validate:t=>{try{let n=We(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ke(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Bt=v(`$ZodString`,(e,t)=>{j.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wt(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),M=v(`$ZodStringFormat`,(e,t)=>{At.init(e,t),Bt.init(e,t)}),Vt=v(`$ZodGUID`,(e,t)=>{t.pattern??=ct,M.init(e,t)}),Ht=v(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=lt(e)}else t.pattern??=lt();M.init(e,t)}),Ut=v(`$ZodEmail`,(e,t)=>{t.pattern??=ut,M.init(e,t)}),Wt=v(`$ZodURL`,(e,t)=>{M.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Gt=v(`$ZodEmoji`,(e,t)=>{t.pattern??=dt(),M.init(e,t)}),Kt=v(`$ZodNanoID`,(e,t)=>{t.pattern??=ot,M.init(e,t)}),qt=v(`$ZodCUID`,(e,t)=>{t.pattern??=tt,M.init(e,t)}),Jt=v(`$ZodCUID2`,(e,t)=>{t.pattern??=nt,M.init(e,t)}),Yt=v(`$ZodULID`,(e,t)=>{t.pattern??=rt,M.init(e,t)}),Xt=v(`$ZodXID`,(e,t)=>{t.pattern??=it,M.init(e,t)}),Zt=v(`$ZodKSUID`,(e,t)=>{t.pattern??=at,M.init(e,t)}),Qt=v(`$ZodISODateTime`,(e,t)=>{t.pattern??=Ct(t),M.init(e,t)}),$t=v(`$ZodISODate`,(e,t)=>{t.pattern??=bt,M.init(e,t)}),en=v(`$ZodISOTime`,(e,t)=>{t.pattern??=St(t),M.init(e,t)}),tn=v(`$ZodISODuration`,(e,t)=>{t.pattern??=st,M.init(e,t)}),nn=v(`$ZodIPv4`,(e,t)=>{t.pattern??=ft,M.init(e,t),e._zod.bag.format=`ipv4`}),rn=v(`$ZodIPv6`,(e,t)=>{t.pattern??=pt,M.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),an=v(`$ZodCIDRv4`,(e,t)=>{t.pattern??=mt,M.init(e,t)}),on=v(`$ZodCIDRv6`,(e,t)=>{t.pattern??=ht,M.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function sn(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const cn=v(`$ZodBase64`,(e,t)=>{t.pattern??=gt,M.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{sn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function ln(e){if(!_t.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return sn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const un=v(`$ZodBase64URL`,(e,t)=>{t.pattern??=_t,M.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{ln(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),dn=v(`$ZodE164`,(e,t)=>{t.pattern??=vt,M.init(e,t)});function fn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const pn=v(`$ZodJWT`,(e,t)=>{M.init(e,t),e._zod.check=n=>{fn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),mn=v(`$ZodUnknown`,(e,t)=>{j.init(e,t),e._zod.parse=e=>e}),hn=v(`$ZodNever`,(e,t)=>{j.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function gn(e,t,n){e.issues.length&&t.issues.push(...Ne(n,e.issues)),t.value[n]=e.value}const _n=v(`$ZodArray`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;egn(t,n,e))):gn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function vn(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Ne(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function yn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Te(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function bn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>vn(e,n,i,t,u))):vn(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const xn=v(`$ZodObject`,(e,t)=>{if(j.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=pe(()=>yn(t));x(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=be,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>vn(n,t,e,s,r))):vn(i,t,e,s,r)}return i?bn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Sn=v(`$ZodObjectJIT`,(e,t)=>{xn.init(e,t);let n=e._zod.parse,r=pe(()=>yn(t)),i=e=>{let t=new Rt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=_e(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=_e(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(` + if (${n}.issues.length) { + if (${o} in input) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `):t.write(` + if (${n}.issues.length) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=be,s=!ue.jitless,c=s&&xe.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?bn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Cn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!D(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>O(e,r,b())))}),t)}const wn=v(`$ZodUnion`,(e,t)=>{j.init(e,t),x(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),x(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),x(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),x(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>he(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Cn(t,i,e,a)):Cn(s,i,e,a)}}),Tn=v(`$ZodIntersection`,(e,t)=>{j.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Dn(e,t,n)):Dn(e,i,a)}});function En(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(w(e)&&w(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=En(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),D(e))return e;let o=En(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const On=v(`$ZodEnum`,(e,t)=>{j.init(e,t);let n=de(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ce.has(typeof e)).map(e=>typeof e==`string`?we(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),kn=v(`$ZodTransform`,(e,t)=>{j.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new le(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new y;return n.value=i,n}});function An(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const jn=v(`$ZodOptional`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${he(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>An(t,e.value)):An(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Mn=v(`$ZodExactOptional`,(e,t)=>{jn.init(e,t),x(e._zod,`values`,()=>t.innerType._zod.values),x(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Nn=v(`$ZodNullable`,(e,t)=>{j.init(e,t),x(e._zod,`optin`,()=>t.innerType._zod.optin),x(e._zod,`optout`,()=>t.innerType._zod.optout),x(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${he(e.source)}|null)$`):void 0}),x(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Pn=v(`$ZodDefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Fn(e,t)):Fn(r,t)}});function Fn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const In=v(`$ZodPrefault`,(e,t)=>{j.init(e,t),e._zod.optin=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Ln=v(`$ZodNonOptional`,(e,t)=>{j.init(e,t),x(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Rn(t,e)):Rn(i,e)}});function Rn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const zn=v(`$ZodCatch`,(e,t)=>{j.init(e,t),x(e._zod,`optin`,()=>t.innerType._zod.optin),x(e._zod,`optout`,()=>t.innerType._zod.optout),x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,b()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,b()))},input:e.value}),e.issues=[]),e)}}),Bn=v(`$ZodPipe`,(e,t)=>{j.init(e,t),x(e._zod,`values`,()=>t.in._zod.values),x(e._zod,`optin`,()=>t.in._zod.optin),x(e._zod,`optout`,()=>t.out._zod.optout),x(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Vn(e,t.in,n)):Vn(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Vn(e,t.out,n)):Vn(r,t.out,n)}});function Vn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Hn=v(`$ZodReadonly`,(e,t)=>{j.init(e,t),x(e._zod,`propValues`,()=>t.innerType._zod.propValues),x(e._zod,`values`,()=>t.innerType._zod.values),x(e._zod,`optin`,()=>t.innerType?._zod?.optin),x(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Un):Un(r)}});function Un(e){return e.value=Object.freeze(e.value),e}const Wn=v(`$ZodCustom`,(e,t)=>{A.init(e,t),j.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Gn(t,n,r,e));Gn(i,n,r,e)}});function Gn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(k(e))}}var Kn,qn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Jn(){return new qn}(Kn=globalThis).__zod_globalRegistry??(Kn.__zod_globalRegistry=Jn());const N=globalThis.__zod_globalRegistry;function Yn(e,t){return new e({type:`string`,...E(t)})}function Xn(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function Zn(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function Qn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function $n(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function er(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function tr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function nr(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function rr(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function ir(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function ar(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function or(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function sr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function cr(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function lr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function ur(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function dr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function fr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function pr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function mr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function hr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function gr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function _r(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function vr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function yr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function br(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function xr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function Sr(e){return new e({type:`unknown`})}function Cr(e,t){return new e({type:`never`,...E(t)})}function wr(e,t){return new Dt({check:`max_length`,...E(t),maximum:e})}function Tr(e,t){return new Ot({check:`min_length`,...E(t),minimum:e})}function Er(e,t){return new kt({check:`length_equals`,...E(t),length:e})}function Dr(e,t){return new jt({check:`string_format`,format:`regex`,...E(t),pattern:e})}function Or(e){return new Mt({check:`string_format`,format:`lowercase`,...E(e)})}function kr(e){return new Nt({check:`string_format`,format:`uppercase`,...E(e)})}function Ar(e,t){return new Pt({check:`string_format`,format:`includes`,...E(t),includes:e})}function jr(e,t){return new Ft({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function Mr(e,t){return new It({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function P(e){return new Lt({check:`overwrite`,tx:e})}function Nr(e){return P(t=>t.normalize(e))}function Pr(){return P(e=>e.trim())}function Fr(){return P(e=>e.toLowerCase())}function Ir(){return P(e=>e.toUpperCase())}function Lr(){return P(e=>ve(e))}function Rr(e,t,n){return new e({type:`array`,element:t,...E(n)})}function zr(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function Br(e){let t=Vr(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(k(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(k(r))}},e(n.value,n)));return t}function Vr(e,t){let n=new A({check:`custom`,...E(t)});return n._zod.check=e,n}function Hr(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??N,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function F(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,F(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&I(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ur(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Wr(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Kr(t,`input`,e.processors),output:Kr(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function I(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return I(r.element,n);if(r.type===`set`)return I(r.valueType,n);if(r.type===`lazy`)return I(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return I(r.innerType,n);if(r.type===`intersection`)return I(r.left,n)||I(r.right,n);if(r.type===`record`||r.type===`map`)return I(r.keyType,n)||I(r.valueType,n);if(r.type===`pipe`)return I(r.in,n)||I(r.out,n);if(r.type===`object`){for(let e in r.shape)if(I(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(I(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(I(e,n))return!0;return!!(r.rest&&I(r.rest,n))}return!1}const Gr=(e,t={})=>n=>{let r=Hr({...n,processors:t});return F(e,r),Ur(r,e),Wr(r,e)},Kr=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Hr({...i??{},target:a,io:t,processors:n});return F(e,o),Ur(o,e),Wr(o,e)},qr={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Jr=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=qr[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Yr=(e,t,n,r)=>{n.not={}},Xr=(e,t,n,r)=>{let i=e._zod.def,a=de(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Zr=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Qr=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},$r=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=F(a.element,t,{...r,path:[...r.path,`items`]})},ei=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=F(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=F(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ti=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>F(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},ni=(e,t,n,r)=>{let i=e._zod.def,a=F(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=F(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},ri=(e,t,n,r)=>{let i=e._zod.def,a=F(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ii=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ai=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},oi=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},si=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},ci=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;F(a,t,r);let o=t.seen.get(e);o.ref=a},li=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},ui=(e,t,n,r)=>{let i=e._zod.def;F(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},di=v(`ZodISODateTime`,(e,t)=>{Qt.init(e,t),z.init(e,t)});function fi(e){return vr(di,e)}const pi=v(`ZodISODate`,(e,t)=>{$t.init(e,t),z.init(e,t)});function mi(e){return yr(pi,e)}const hi=v(`ZodISOTime`,(e,t)=>{en.init(e,t),z.init(e,t)});function gi(e){return br(hi,e)}const _i=v(`ZodISODuration`,(e,t)=>{tn.init(e,t),z.init(e,t)});function vi(e){return xr(_i,e)}const yi=(e,t)=>{Le.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Be(e,t)},flatten:{value:t=>ze(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,fe,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,fe,2)}},isEmpty:{get(){return e.issues.length===0}}})};v(`ZodError`,yi);const L=v(`ZodError`,yi,{Parent:Error}),bi=Ve(L),xi=He(L),Si=Ue(L),Ci=Ge(L),wi=qe(L),Ti=Je(L),Ei=Ye(L),Di=Xe(L),Oi=Ze(L),ki=Qe(L),Ai=$e(L),ji=et(L),R=v(`ZodType`,(e,t)=>(j.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Kr(e,`input`),output:Kr(e,`output`)}}),e.toJSONSchema=Gr(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(C(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>T(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>bi(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Si(e,t,n),e.parseAsync=async(t,n)=>xi(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ci(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>wi(e,t,n),e.decode=(t,n)=>Ti(e,t,n),e.encodeAsync=async(t,n)=>Ei(e,t,n),e.decodeAsync=async(t,n)=>Di(e,t,n),e.safeEncode=(t,n)=>Oi(e,t,n),e.safeDecode=(t,n)=>ki(e,t,n),e.safeEncodeAsync=async(t,n)=>Ai(e,t,n),e.safeDecodeAsync=async(t,n)=>ji(e,t,n),e.refine=(t,n)=>e.check(Fa(t,n)),e.superRefine=t=>e.check(Ia(t)),e.overwrite=t=>e.check(P(t)),e.optional=()=>_a(e),e.exactOptional=()=>ya(e),e.nullable=()=>xa(e),e.nullish=()=>_a(xa(e)),e.nonoptional=t=>Da(e,t),e.array=()=>aa(e),e.or=t=>la([e,t]),e.and=t=>da(e,t),e.transform=t=>ja(e,ha(t)),e.default=t=>Ca(e,t),e.prefault=t=>Ta(e,t),e.catch=t=>ka(e,t),e.pipe=t=>ja(e,t),e.readonly=()=>Na(e),e.describe=t=>{let n=e.clone();return N.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return N.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return N.get(e);let n=e.clone();return N.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Mi=v(`_ZodString`,(e,t)=>{Bt.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jr(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Dr(...t)),e.includes=(...t)=>e.check(Ar(...t)),e.startsWith=(...t)=>e.check(jr(...t)),e.endsWith=(...t)=>e.check(Mr(...t)),e.min=(...t)=>e.check(Tr(...t)),e.max=(...t)=>e.check(wr(...t)),e.length=(...t)=>e.check(Er(...t)),e.nonempty=(...t)=>e.check(Tr(1,...t)),e.lowercase=t=>e.check(Or(t)),e.uppercase=t=>e.check(kr(t)),e.trim=()=>e.check(Pr()),e.normalize=(...t)=>e.check(Nr(...t)),e.toLowerCase=()=>e.check(Fr()),e.toUpperCase=()=>e.check(Ir()),e.slugify=()=>e.check(Lr())}),Ni=v(`ZodString`,(e,t)=>{Bt.init(e,t),Mi.init(e,t),e.email=t=>e.check(Xn(Fi,t)),e.url=t=>e.check(nr(Ri,t)),e.jwt=t=>e.check(_r($i,t)),e.emoji=t=>e.check(rr(zi,t)),e.guid=t=>e.check(Zn(Ii,t)),e.uuid=t=>e.check(Qn(Li,t)),e.uuidv4=t=>e.check($n(Li,t)),e.uuidv6=t=>e.check(er(Li,t)),e.uuidv7=t=>e.check(tr(Li,t)),e.nanoid=t=>e.check(ir(Bi,t)),e.guid=t=>e.check(Zn(Ii,t)),e.cuid=t=>e.check(ar(Vi,t)),e.cuid2=t=>e.check(or(Hi,t)),e.ulid=t=>e.check(sr(Ui,t)),e.base64=t=>e.check(mr(Xi,t)),e.base64url=t=>e.check(hr(Zi,t)),e.xid=t=>e.check(cr(Wi,t)),e.ksuid=t=>e.check(lr(Gi,t)),e.ipv4=t=>e.check(ur(Ki,t)),e.ipv6=t=>e.check(dr(qi,t)),e.cidrv4=t=>e.check(fr(Ji,t)),e.cidrv6=t=>e.check(pr(Yi,t)),e.e164=t=>e.check(gr(Qi,t)),e.datetime=t=>e.check(fi(t)),e.date=t=>e.check(mi(t)),e.time=t=>e.check(gi(t)),e.duration=t=>e.check(vi(t))});function Pi(e){return Yn(Ni,e)}const z=v(`ZodStringFormat`,(e,t)=>{M.init(e,t),Mi.init(e,t)}),Fi=v(`ZodEmail`,(e,t)=>{Ut.init(e,t),z.init(e,t)}),Ii=v(`ZodGUID`,(e,t)=>{Vt.init(e,t),z.init(e,t)}),Li=v(`ZodUUID`,(e,t)=>{Ht.init(e,t),z.init(e,t)}),Ri=v(`ZodURL`,(e,t)=>{Wt.init(e,t),z.init(e,t)}),zi=v(`ZodEmoji`,(e,t)=>{Gt.init(e,t),z.init(e,t)}),Bi=v(`ZodNanoID`,(e,t)=>{Kt.init(e,t),z.init(e,t)}),Vi=v(`ZodCUID`,(e,t)=>{qt.init(e,t),z.init(e,t)}),Hi=v(`ZodCUID2`,(e,t)=>{Jt.init(e,t),z.init(e,t)}),Ui=v(`ZodULID`,(e,t)=>{Yt.init(e,t),z.init(e,t)}),Wi=v(`ZodXID`,(e,t)=>{Xt.init(e,t),z.init(e,t)}),Gi=v(`ZodKSUID`,(e,t)=>{Zt.init(e,t),z.init(e,t)}),Ki=v(`ZodIPv4`,(e,t)=>{nn.init(e,t),z.init(e,t)}),qi=v(`ZodIPv6`,(e,t)=>{rn.init(e,t),z.init(e,t)}),Ji=v(`ZodCIDRv4`,(e,t)=>{an.init(e,t),z.init(e,t)}),Yi=v(`ZodCIDRv6`,(e,t)=>{on.init(e,t),z.init(e,t)}),Xi=v(`ZodBase64`,(e,t)=>{cn.init(e,t),z.init(e,t)}),Zi=v(`ZodBase64URL`,(e,t)=>{un.init(e,t),z.init(e,t)}),Qi=v(`ZodE164`,(e,t)=>{dn.init(e,t),z.init(e,t)}),$i=v(`ZodJWT`,(e,t)=>{pn.init(e,t),z.init(e,t)}),ea=v(`ZodUnknown`,(e,t)=>{mn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ta(){return Sr(ea)}const na=v(`ZodNever`,(e,t)=>{hn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yr(e,t,n,r)});function ra(e){return Cr(na,e)}const ia=v(`ZodArray`,(e,t)=>{_n.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$r(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(Tr(t,n)),e.nonempty=t=>e.check(Tr(1,t)),e.max=(t,n)=>e.check(wr(t,n)),e.length=(t,n)=>e.check(Er(t,n)),e.unwrap=()=>e.element});function aa(e,t){return Rr(ia,e,t)}const oa=v(`ZodObject`,(e,t)=>{Sn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ei(e,t,n,r),x(e,`shape`,()=>t.shape),e.keyof=()=>pa(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ta()}),e.loose=()=>e.clone({...e._zod.def,catchall:ta()}),e.strict=()=>e.clone({...e._zod.def,catchall:ra()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Oe(e,t),e.safeExtend=t=>ke(e,t),e.merge=t=>Ae(e,t),e.pick=t=>Ee(e,t),e.omit=t=>De(e,t),e.partial=(...t)=>je(ga,e,t[0]),e.required=(...t)=>Me(Ea,e,t[0])});function sa(e,t){return new oa({type:`object`,shape:e??{},...E(t)})}const ca=v(`ZodUnion`,(e,t)=>{wn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ti(e,t,n,r),e.options=t.options});function la(e,t){return new ca({type:`union`,options:e,...E(t)})}const ua=v(`ZodIntersection`,(e,t)=>{Tn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ni(e,t,n,r)});function da(e,t){return new ua({type:`intersection`,left:e,right:t})}const fa=v(`ZodEnum`,(e,t)=>{On.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xr(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new fa({...t,checks:[],...E(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new fa({...t,checks:[],...E(r),entries:i})}});function pa(e,t){return new fa({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}const ma=v(`ZodTransform`,(e,t)=>{kn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qr(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new le(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(k(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(k(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ha(e){return new ma({type:`transform`,transform:e})}const ga=v(`ZodOptional`,(e,t)=>{jn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ui(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _a(e){return new ga({type:`optional`,innerType:e})}const va=v(`ZodExactOptional`,(e,t)=>{Mn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ui(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ya(e){return new va({type:`optional`,innerType:e})}const ba=v(`ZodNullable`,(e,t)=>{Nn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ri(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xa(e){return new ba({type:`nullable`,innerType:e})}const Sa=v(`ZodDefault`,(e,t)=>{Pn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ai(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ca(e,t){return new Sa({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Se(t)}})}const wa=v(`ZodPrefault`,(e,t)=>{In.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ta(e,t){return new wa({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Se(t)}})}const Ea=v(`ZodNonOptional`,(e,t)=>{Ln.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ii(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Da(e,t){return new Ea({type:`nonoptional`,innerType:e,...E(t)})}const Oa=v(`ZodCatch`,(e,t)=>{zn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>si(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ka(e,t){return new Oa({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Aa=v(`ZodPipe`,(e,t)=>{Bn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ci(e,t,n,r),e.in=t.in,e.out=t.out});function ja(e,t){return new Aa({type:`pipe`,in:e,out:t})}const Ma=v(`ZodReadonly`,(e,t)=>{Hn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>li(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Na(e){return new Ma({type:`readonly`,innerType:e})}const Pa=v(`ZodCustom`,(e,t)=>{Wn.init(e,t),R.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zr(e,t,n,r)});function Fa(e,t={}){return zr(Pa,e,t)}function Ia(e){return Br(e)}const La=sa({detail:Pi()}),Ra=sa({error:Pi()});function za(e){if(!e)return`Unknown error`;if(e instanceof Error){let t=La.safeParse(e.cause);return t.success?t.data.detail:Ba(e.message)}if(typeof e==`object`){let t=La.safeParse(e);if(t.success)return t.data.detail;let n=Ra.safeParse(e);if(n.success)return n.data.error}try{return JSON.stringify(e)}catch{return String(e)}}function Ba(e){let t=Va(e);if(!t)return e;let n=La.safeParse(t);if(n.success)return n.data.detail;let r=Ra.safeParse(t);return r.success?r.data.error:e}function Va(e){try{return JSON.parse(e)}catch{return e}}function B(e){return e.FS}const Ha=`notebook.py`,V=`/marimo`,H={NOTEBOOK_FILENAME:Ha,HOME_DIR:V,createHomeDir:e=>{let t=B(e);try{t.mkdirTree(V)}catch{}t.chdir(V)},mountFS:e=>{B(e).mount(e.FS.filesystems.IDBFS,{root:`.`},V)},populateFilesToMemory:async e=>{await Ua(e,!0)},persistFilesToRemote:async e=>{await Ua(e,!1)},readNotebook:e=>{let t=B(e),n=`${V}/${Ha}`;return ce(t.readFile(n))},initNotebookCode:e=>{let{pyodide:t,filename:n,code:r}=e,i=B(t),a=e=>{try{return ce(i.readFile(e))}catch{return null}};if(n&&n!==Ha){let e=a(n);if(e)return{code:e,filename:n}}return i.writeFile(Ha,r),{code:r,filename:Ha}}};function Ua(e,t){return new Promise((n,r)=>{B(e).syncfs(t,e=>{if(e instanceof Error){r(e);return}n()})})}var Wa=Object.defineProperty,U=(e,t)=>Wa(e,`name`,{value:t,configurable:!0}),Ga=(e=>typeof u<`u`?u:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof u<`u`?u:e)[t]}):e)(function(e){if(typeof u<`u`)return u.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});function Ka(e){return!isNaN(parseFloat(e))&&isFinite(e)}U(Ka,`_isNumber`);function W(e){return e.charAt(0).toUpperCase()+e.substring(1)}U(W,`_capitalize`);function qa(e){return function(){return this[e]}}U(qa,`_getter`);var G=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],K=[`columnNumber`,`lineNumber`],q=[`fileName`,`functionName`,`source`],Ja=G.concat(K,q,[`args`],[`evalOrigin`]);function J(e){if(e)for(var t=0;t-1&&(e=e.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));var t=e.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),n=t.match(/ (\(.+\)$)/);t=n?t.replace(n[0],``):t;var r=this.extractLocation(n?n[1]:t);return new Ya({functionName:n&&t||void 0,fileName:[`eval`,``].indexOf(r[0])>-1?void 0:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)},`ErrorStackParser$$parseV8OrIE`),parseFFOrSafari:U(function(e){return e.stack.split(` +`).filter(function(e){return!e.match(t)},this).map(function(e){if(e.indexOf(` > eval`)>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),e.indexOf(`@`)===-1&&e.indexOf(`:`)===-1)return new Ya({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,i=this.extractLocation(e.replace(t,``));return new Ya({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})},this)},`ErrorStackParser$$parseFFOrSafari`)}}U(Xa,`ErrorStackParser`);var Za=new Xa,Q=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`&&!process.browser,Qa=Q&&typeof module<`u`&&typeof module.exports<`u`&&typeof Ga<`u`&&typeof __dirname<`u`,$a=Q&&!Qa;globalThis.Bun;var eo=!Q&&!(typeof Deno<`u`),to=eo&&typeof window==`object`&&typeof document==`object`&&typeof document.createElement==`function`&&`sessionStorage`in window&&typeof importScripts!=`function`,no=eo&&typeof importScripts==`function`&&typeof self==`object`;typeof navigator==`object`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Chrome`)==-1&&navigator.userAgent.indexOf(`Safari`);var ro,io,ao,oo,so;async function co(){if(!Q||(ro=(await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1))).default,oo=await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1)),so=await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1)),ao=(await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1))).default,io=await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1)),po=io.sep,typeof Ga<`u`))return;let e={fs:oo,crypto:await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1)),ws:await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1)),child_process:await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1))};globalThis.require=function(t){return e[t]}}U(co,`initNodeModules`);function lo(e,t){return io.resolve(t||`.`,e)}U(lo,`node_resolvePath`);function uo(e,t){return t===void 0&&(t=location),new URL(e,t).toString()}U(uo,`browser_resolvePath`);var fo=Q?lo:uo,po;Q||(po=`/`);function mo(e,t){return e.startsWith(`file://`)&&(e=e.slice(7)),e.includes(`://`)?{response:fetch(e)}:{binary:so.readFile(e).then(e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}}U(mo,`node_getBinaryResponse`);function ho(e,t){let n=new URL(e,location);return{response:fetch(n,t?{integrity:t}:{})}}U(ho,`browser_getBinaryResponse`);var go=Q?mo:ho;async function _o(e,t){let{response:n,binary:r}=go(e,t);if(r)return r;let i=await n;if(!i.ok)throw Error(`Failed to load '${e}': request failed.`);return new Uint8Array(await i.arrayBuffer())}U(_o,`loadBinaryFile`);var vo;if(to)vo=U(async e=>await import(e),`loadScript`);else if(no)vo=U(async e=>{try{globalThis.importScripts(e)}catch(t){if(t instanceof TypeError)await import(e);else throw t}},`loadScript`);else if(Q)vo=yo;else throw Error(`Cannot determine runtime environment`);async function yo(e){e.startsWith(`file://`)&&(e=e.slice(7)),e.includes(`://`)?ao.runInThisContext(await(await fetch(e)).text()):await import(ro.pathToFileURL(e).href)}U(yo,`nodeLoadScript`);async function bo(e){if(Q){await co();let t=await so.readFile(e,{encoding:`utf8`});return JSON.parse(t)}else return await(await fetch(e)).json()}U(bo,`loadLockFile`);async function xo(){if(Qa)return __dirname;let e;try{throw Error()}catch(t){e=t}let t=Za.parse(e)[0].fileName;if(Q&&!t.startsWith(`file://`)&&(t=`file://${t}`),$a){let e=await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1));return(await import(`./__vite-browser-external-CPyDqUtZ.js`).then(l(1))).fileURLToPath(e.dirname(t))}let n=t.lastIndexOf(po);if(n===-1)throw Error(`Could not extract indexURL path from pyodide module location`);return t.slice(0,n)}U(xo,`calculateDirname`);function So(e){let t=e.FS,n=e.FS.filesystems.MEMFS,r=e.PATH,i={DIR_MODE:16895,FILE_MODE:33279,mount:function(e){if(!e.opts.fileSystemHandle)throw Error(`opts.fileSystemHandle is required`);return n.mount.apply(null,arguments)},syncfs:async(e,t,n)=>{try{let r=i.getLocalSet(e),a=await i.getRemoteSet(e),o=t?a:r,s=t?r:a;await i.reconcile(e,o,s),n(null)}catch(e){n(e)}},getLocalSet:e=>{let n=Object.create(null);function i(e){return e!==`.`&&e!==`..`}U(i,`isRealDir`);function a(e){return t=>r.join2(e,t)}U(a,`toAbsolute`);let o=t.readdir(e.mountpoint).filter(i).map(a(e.mountpoint));for(;o.length;){let e=o.pop(),r=t.stat(e);t.isDir(r.mode)&&o.push.apply(o,t.readdir(e).filter(i).map(a(e))),n[e]={timestamp:r.mtime,mode:r.mode}}return{type:`local`,entries:n}},getRemoteSet:async e=>{let t=Object.create(null),n=await Co(e.opts.fileSystemHandle);for(let[a,o]of n)a!==`.`&&(t[r.join2(e.mountpoint,a)]={timestamp:o.kind===`file`?new Date((await o.getFile()).lastModified):new Date,mode:o.kind===`file`?i.FILE_MODE:i.DIR_MODE});return{type:`remote`,entries:t,handles:n}},loadLocalEntry:e=>{let r=t.lookupPath(e).node,i=t.stat(e);if(t.isDir(i.mode))return{timestamp:i.mtime,mode:i.mode};if(t.isFile(i.mode))return r.contents=n.getFileDataAsTypedArray(r),{timestamp:i.mtime,mode:i.mode,contents:r.contents};throw Error(`node type not supported`)},storeLocalEntry:(e,n)=>{if(t.isDir(n.mode))t.mkdirTree(e,n.mode);else if(t.isFile(n.mode))t.writeFile(e,n.contents,{canOwn:!0});else throw Error(`node type not supported`);t.chmod(e,n.mode),t.utime(e,n.timestamp,n.timestamp)},removeLocalEntry:e=>{var n=t.stat(e);t.isDir(n.mode)?t.rmdir(e):t.isFile(n.mode)&&t.unlink(e)},loadRemoteEntry:async e=>{if(e.kind===`file`){let t=await e.getFile();return{contents:new Uint8Array(await t.arrayBuffer()),mode:i.FILE_MODE,timestamp:new Date(t.lastModified)}}else{if(e.kind===`directory`)return{mode:i.DIR_MODE,timestamp:new Date};throw Error(`unknown kind: `+e.kind)}},storeRemoteEntry:async(e,n,i)=>{let a=e.get(r.dirname(n)),o=t.isFile(i.mode)?await a.getFileHandle(r.basename(n),{create:!0}):await a.getDirectoryHandle(r.basename(n),{create:!0});if(o.kind===`file`){let e=await o.createWritable();await e.write(i.contents),await e.close()}e.set(n,o)},removeRemoteEntry:async(e,t)=>{await e.get(r.dirname(t)).removeEntry(r.basename(t)),e.delete(t)},reconcile:async(e,n,a)=>{let o=0,s=[];Object.keys(n.entries).forEach(function(e){let r=n.entries[e],i=a.entries[e];(!i||t.isFile(r.mode)&&r.timestamp.getTime()>i.timestamp.getTime())&&(s.push(e),o++)}),s.sort();let c=[];if(Object.keys(a.entries).forEach(function(e){n.entries[e]||(c.push(e),o++)}),c.sort().reverse(),!o)return;let l=n.type===`remote`?n.handles:a.handles;for(let t of s){let n=r.normalize(t.replace(e.mountpoint,`/`)).substring(1);if(a.type===`local`){let e=l.get(n),r=await i.loadRemoteEntry(e);i.storeLocalEntry(t,r)}else{let e=i.loadLocalEntry(t);await i.storeRemoteEntry(l,n,e)}}for(let t of c)if(a.type===`local`)i.removeLocalEntry(t);else{let n=r.normalize(t.replace(e.mountpoint,`/`)).substring(1);await i.removeRemoteEntry(l,n)}}};e.FS.filesystems.NATIVEFS_ASYNC=i}U(So,`initializeNativeFS`);var Co=U(async e=>{let t=[];async function n(e){for await(let r of e.values())t.push(r),r.kind===`directory`&&await n(r)}U(n,`collect`),await n(e);let r=new Map;r.set(`.`,e);for(let n of t){let t=(await e.resolve(n)).join(`/`);r.set(t,n)}return r},`getFsHandles`);function wo(e){let t={noImageDecoding:!0,noAudioDecoding:!0,noWasmDecoding:!1,preRun:ko(e),quit(e,n){throw t.exited={status:e,toThrow:n},n},print:e.stdout,printErr:e.stderr,thisProgram:e._sysExecutable,arguments:e.args,API:{config:e},locateFile:t=>e.indexURL+t,instantiateWasm:Ao(e.indexURL)};return t}U(wo,`createSettings`);function To(e){return function(t){try{t.FS.mkdirTree(e)}catch(t){console.error(`Error occurred while making a home directory '${e}':`),console.error(t),console.error(`Using '/' for a home directory instead`),e=`/`}t.FS.chdir(e)}}U(To,`createHomeDirectory`);function Eo(e){return function(t){Object.assign(t.ENV,e)}}U(Eo,`setEnvironment`);function Do(e){return e?[async t=>{t.addRunDependency(`fsInitHook`);try{await e(t.FS,{sitePackages:t.API.sitePackages})}finally{t.removeRunDependency(`fsInitHook`)}}]:[]}U(Do,`callFsInitHook`);function Oo(e){let t=_o(e);return async e=>{let n=e._py_version_major(),r=e._py_version_minor();e.FS.mkdirTree(`/lib`),e.API.sitePackages=`/lib/python${n}.${r}/site-packages`,e.FS.mkdirTree(e.API.sitePackages),e.addRunDependency(`install-stdlib`);try{let i=await t;e.FS.writeFile(`/lib/python${n}${r}.zip`,i)}catch(e){console.error(`Error occurred while installing the standard library:`),console.error(e)}finally{e.removeRunDependency(`install-stdlib`)}}}U(Oo,`installStdlib`);function ko(e){let t;return t=e.stdLibURL==null?e.indexURL+`python_stdlib.zip`:e.stdLibURL,[...Do(e.fsInit),Oo(t),To(e.env.HOME),Eo(e.env),So]}U(ko,`getFileSystemInitializationFuncs`);function Ao(e){if(typeof WasmOffsetConverter<`u`)return;let{binary:t,response:n}=go(e+`pyodide.asm.wasm`);return function(e,r){return async function(){try{let i;i=n?await WebAssembly.instantiateStreaming(n,e):await WebAssembly.instantiate(await t,e);let{instance:a,module:o}=i;r(a,o)}catch(e){console.warn(`wasm instantiation failed!`),console.warn(e)}}(),{}}}U(Ao,`getInstantiateWasmFunc`);var jo=`0.27.7`;async function Mo(e={}){var t,n;await co();let r=e.indexURL||await xo();r=fo(r),r.endsWith(`/`)||(r+=`/`),e.indexURL=r;let i={fullStdLib:!1,jsglobals:globalThis,stdin:globalThis.prompt?globalThis.prompt:void 0,lockFileURL:r+`pyodide-lock.json`,args:[],env:{},packageCacheDir:r,packages:[],enableRunUntilComplete:!0,checkAPIVersion:!0,BUILD_ID:`e94377f5ce7dcf67e0417b69a0016733c2cfb6b4622ee8c490a6f17eb58e863b`},a=Object.assign(i,e);(t=a.env).HOME??(t.HOME=`/home/pyodide`),(n=a.env).PYTHONINSPECT??(n.PYTHONINSPECT=`1`);let o=wo(a),s=o.API;if(s.lockFilePromise=bo(a.lockFileURL),typeof _createPyodideModule!=`function`){let e=`${a.indexURL}pyodide.asm.js`;await vo(e)}let c;if(e._loadSnapshot){let t=await e._loadSnapshot;c=ArrayBuffer.isView(t)?t:new Uint8Array(t),o.noInitialRun=!0,o.INITIAL_MEMORY=c.length}let l=await _createPyodideModule(o);if(o.exited)throw o.exited.toThrow;if(e.pyproxyToStringRepr&&s.setPyProxyToStringMethod(!0),s.version!==jo&&a.checkAPIVersion)throw Error(`Pyodide version does not match: '${jo}' <==> '${s.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);l.locateFile=e=>{throw Error(`Didn't expect to load any more file_packager files!`)};let u;c&&(u=s.restoreSnapshot(c));let d=s.finalizeBootstrap(u,e._snapshotDeserializer);return s.sys.path.insert(0,``),d.version.includes(`dev`)||s.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${d.version}/full/`),s._pyodide.set_excepthook(),await s.packageIndexReady,s.initializeStreams(a.stdin,a.stdout,a.stderr),d}U(Mo,`loadPyodide`);function No(e,t){if(!e)throw Error(t)}function Po(e){return`marimo-base`}const $=new class{spans=[];startSpan(e,t={}){let n={name:e,startTime:Date.now(),attributes:t,end:(e=`ok`)=>this.endSpan(n,e)};return this.spans.push(n),n}endSpan(e,t=`ok`){e.endTime=Date.now(),e.status=t}getSpans(){return this.spans}wrap(e,t,n={}){let r=this.startSpan(t||e.name,n);try{let t=e();return this.endSpan(r),t}catch(e){throw this.endSpan(r,`error`),e}}wrapAsync(e,t,n={}){return(async(...r)=>{let i=this.startSpan(t||e.name,n);try{let t=await e(...r);return this.endSpan(i),t}catch(e){throw this.endSpan(i,`error`),e}})}logSpans(){}};globalThis.t=$;var Fo=class{pyodide=null;get requirePyodide(){return No(this.pyodide,`Pyodide not loaded`),this.pyodide}async bootstrap(e){return await this.loadPyodideAndPackages(e)}async loadPyodideAndPackages(e){if(!Mo)throw Error(`loadPyodide is not defined`);let t=$.startSpan(`loadPyodide`);try{let n=await Mo({packages:[`micropip`,`msgspec`,Po(e.version),`Markdown`,`pymdown-extensions`,`narwhals`,`packaging`],_makeSnapshot:!1,lockFileURL:`https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,indexURL:`https://cdn.jsdelivr.net/pyodide/${e.pyodideVersion}/full/`});return this.pyodide=n,t.end(`ok`),n}catch(e){throw _.error(`Failed to load Pyodide`,e),e}}async mountFilesystem(e){let t=$.startSpan(`mountFilesystem`);return H.createHomeDir(this.requirePyodide),H.mountFS(this.requirePyodide),await H.populateFilesToMemory(this.requirePyodide),t.end(`ok`),H.initNotebookCode({pyodide:this.requirePyodide,code:e.code,filename:e.filename})}async startSession(e){let{code:t,filename:n,onMessage:r,queryParameters:i,userConfig:a}=e;self.messenger={callback:r},self.query_params=i,self.user_config=a;let o=$.startSpan(`startSession.runPython`),s=n||H.NOTEBOOK_FILENAME,[c,l,u]=this.requirePyodide.runPython(` + print("[py] Starting marimo...") + import asyncio + import js + from marimo._pyodide.bootstrap import create_session, instantiate + + assert js.messenger, "messenger is not defined" + assert js.query_params, "query_params is not defined" + + session, bridge = create_session( + filename="${s}", + query_params=js.query_params.to_py(), + message_callback=js.messenger.callback, + user_config=js.user_config.to_py(), + ) + + def init(auto_instantiate=True): + instantiate(session, auto_instantiate) + asyncio.create_task(session.start()) + + # Find the packages to install + with open("${s}", "r") as f: + packages = session.find_packages(f.read()) + + bridge, init, packages`);o.end();let d=new Set(u.toJs());return this.loadNotebookDeps(t,d).then(()=>l(a.runtime.auto_instantiate)),c}async loadNotebookDeps(e,t){let n=this.requirePyodide;e.includes(`mo.sql`)&&(e=`import pandas\n${e}`,e=`import duckdb\n${e}`,e=`import sqlglot\n${e}`,e.includes(`polars`)&&(e=`import pyarrow\n${e}`)),e=`import docutils\n${e}`,e=`import pygments\n${e}`,e=`import jedi\n${e}`,e=`import pyodide_http\n${e}`;let r=[...t],i=$.startSpan(`pyodide.loadPackage`);await n.loadPackagesFromImports(e,{errorCallback:_.error,messageCallback:_.log}),i.end(),i=$.startSpan(`micropip.install`);let a=r.filter(e=>!n.loadedPackages[e]);a.length>0&&await n.runPythonAsync(` + import micropip + import sys + # Filter out builtins + missing = [p for p in ${JSON.stringify(a)} if p not in sys.modules] + if len(missing) > 0: + print("Loading from micropip:", missing) + await micropip.install(missing) + `).catch(e=>{_.error(`Failed to load packages from micropip`,e)}),i.end()}};async function Io(e){try{return await import(`/wasm/controller.js?version=${e}`)}catch{return new Fo}}function Lo(e){return e.includes(`dev`),`v${jo}`}async function Ro(){try{let e=Ho(),t=Lo(e),n=await Io(e);self.controller=n,self.pyodide=await n.bootstrap({version:e,pyodideVersion:t}),await n.mountFilesystem?.({code:``,filename:null}),Vo.send.initialized({})}catch(e){_.error(`Error bootstrapping`,e),Vo.send.initializedError({error:za(e)})}}const zo=Ro(),Bo=d({readFile:async e=>(await zo,ce(self.pyodide.FS.readFile(e))),readNotebook:async()=>(await zo,H.readNotebook(self.pyodide)),saveNotebook:async e=>{await zo,await self.pyodide.runPython(` + from marimo._pyodide.bootstrap import save_file + + save_file + `)(JSON.stringify(e),H.NOTEBOOK_FILENAME),await H.persistFilesToRemote(self.pyodide)}}),Vo=ee({transport:m({transportId:`marimo-transport`}),requestHandler:Bo});Vo.send(`ready`,{});function Ho(){return self.name}export{o as t}; \ No newline at end of file diff --git a/docs/assets/scala-B911DcDv.js b/docs/assets/scala-B911DcDv.js new file mode 100644 index 0000000..9c4a7c2 --- /dev/null +++ b/docs/assets/scala-B911DcDv.js @@ -0,0 +1 @@ +var a=[Object.freeze(JSON.parse('{"displayName":"Scala","fileTypes":["scala"],"firstLineMatch":"^#!/.*\\\\b\\\\w*scala\\\\b","foldingStartMarker":"/\\\\*\\\\*|\\\\{\\\\s*$","foldingStopMarker":"\\\\*\\\\*/|^\\\\s*}","name":"scala","patterns":[{"include":"#code"}],"repository":{"backQuotedVariable":{"match":"`[^`]+`"},"block-comments":{"patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.scala"}},"match":"/\\\\*\\\\*/","name":"comment.block.empty.scala"},{"begin":"^\\\\s*(/\\\\*\\\\*)(?!/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.scala"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.scala"}},"name":"comment.block.documentation.scala","patterns":[{"captures":{"1":{"name":"keyword.other.documentation.scaladoc.scala"},"2":{"name":"variable.parameter.scala"}},"match":"(@param)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.scaladoc.scala"},"2":{"name":"entity.name.class"}},"match":"(@t(?:param|hrows))\\\\s+(\\\\S+)"},{"match":"@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc|groupname|groupprio|groupdesc|group|contentDiagram|documentable|syntax)\\\\b","name":"keyword.other.documentation.scaladoc.scala"},{"captures":{"1":{"name":"punctuation.definition.documentation.link.scala"},"2":{"name":"string.other.link.title.markdown"},"3":{"name":"punctuation.definition.documentation.link.scala"}},"match":"(\\\\[\\\\[)([^]]+)(]])"},{"include":"#block-comments"}]},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.scala"}},"end":"\\\\*/","name":"comment.block.scala","patterns":[{"include":"#block-comments"}]}]},"char-literal":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.character.begin.scala"},"2":{"name":"punctuation.definition.character.end.scala"}},"match":"(\')\'(\')","name":"string.quoted.other constant.character.literal.scala"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.character.begin.scala"}},"end":"\'|$","endCaptures":{"0":{"name":"punctuation.definition.character.end.scala"}},"name":"string.quoted.other constant.character.literal.scala","patterns":[{"match":"\\\\\\\\(?:[\\"\'\\\\\\\\bfnrt]|[0-7]{1,3}|u\\\\h{4})","name":"constant.character.escape.scala"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-character-escape.scala"},{"match":"[^\']{2,}","name":"invalid.illegal.character-literal-too-long"},{"match":"(?)\\\\s*(?:([A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?)|(`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)))\\\\s*"},{"match":"\\\\b(given)\\\\b","name":"keyword.other.export.given.scala"},{"captures":{"1":{"name":"keyword.other.export.given.scala"},"2":{"name":"entity.name.class.export.scala"},"3":{"name":"entity.name.export.scala"}},"match":"(given\\\\s+)?(?:([A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?)|(`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)))"}]}]},"extension":{"patterns":[{"captures":{"1":{"name":"keyword.declaration.scala"}},"match":"^\\\\s*(extension)\\\\s+(?=[(\\\\[])"}]},"imports":{"begin":"\\\\b(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.import.scala"}},"end":"(?<=[\\\\n;])","name":"meta.import.scala","patterns":[{"include":"#comments"},{"match":"\\\\b(given)\\\\b","name":"keyword.other.import.given.scala"},{"match":"\\\\s(as)\\\\s","name":"keyword.other.import.as.scala"},{"match":"[A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?","name":"entity.name.class.import.scala"},{"match":"(`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+))","name":"entity.name.import.scala"},{"match":"\\\\.","name":"punctuation.definition.import"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"meta.bracket.scala"}},"end":"}","endCaptures":{"0":{"name":"meta.bracket.scala"}},"name":"meta.import.selector.scala","patterns":[{"captures":{"1":{"name":"keyword.other.import.given.scala"},"2":{"name":"entity.name.class.import.renamed-from.scala"},"3":{"name":"entity.name.import.renamed-from.scala"},"4":{"name":"keyword.other.arrow.scala"},"5":{"name":"entity.name.class.import.renamed-to.scala"},"6":{"name":"entity.name.import.renamed-to.scala"}},"match":"(given\\\\s)?\\\\s*(?:([A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?)|(`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)))\\\\s*(=>)\\\\s*(?:([A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?)|(`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)))\\\\s*"},{"match":"\\\\b(given)\\\\b","name":"keyword.other.import.given.scala"},{"captures":{"1":{"name":"keyword.other.import.given.scala"},"2":{"name":"entity.name.class.import.scala"},"3":{"name":"entity.name.import.scala"}},"match":"(given\\\\s+)?(?:([A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?)|(`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)))"}]}]},"inheritance":{"patterns":[{"captures":{"1":{"name":"keyword.declaration.scala"},"2":{"name":"entity.name.class"}},"match":"\\\\b(extends|with|derives)\\\\b\\\\s*([A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|`[^`]+`|(?=\\\\([^)]+=>)|(?=[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)|(?=\\"))?"}]},"initialization":{"captures":{"1":{"name":"keyword.declaration.scala"}},"match":"\\\\b(new)\\\\b"},"inline":{"patterns":[{"match":"\\\\b(inline)(?=\\\\s+((?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)|`[^`]+`)\\\\s*:)","name":"storage.modifier.other"},{"match":"\\\\b(inline)\\\\b(?=(?:.(?!\\\\b(?:val|def|given)\\\\b))*\\\\b(if|match)\\\\b)","name":"keyword.control.flow.scala"}]},"keywords":{"patterns":[{"match":"\\\\b(return|throw)\\\\b","name":"keyword.control.flow.jump.scala"},{"match":"\\\\b((?:class|isInstance|asInstance)Of)\\\\b","name":"support.function.type-of.scala"},{"match":"\\\\b(else|if|then|do|while|for|yield|match|case)\\\\b","name":"keyword.control.flow.scala"},{"match":"^\\\\s*(end)\\\\s+(if|while|for|match)(?=\\\\s*(/(?:/.*|\\\\*(?!.*\\\\*/\\\\s*\\\\S.*).*))?$)","name":"keyword.control.flow.end.scala"},{"match":"^\\\\s*(end)\\\\s+(val)(?=\\\\s*(/(?:/.*|\\\\*(?!.*\\\\*/\\\\s*\\\\S.*).*))?$)","name":"keyword.declaration.stable.end.scala"},{"match":"^\\\\s*(end)\\\\s+(var)(?=\\\\s*(/(?:/.*|\\\\*(?!.*\\\\*/\\\\s*\\\\S.*).*))?$)","name":"keyword.declaration.volatile.end.scala"},{"captures":{"1":{"name":"keyword.declaration.end.scala"},"2":{"name":"keyword.declaration.end.scala"},"3":{"name":"entity.name.type.declaration"}},"match":"^\\\\s*(end)\\\\s+(?:(new|extension)|([A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?))(?=\\\\s*(/(?:/.*|\\\\*(?!.*\\\\*/\\\\s*\\\\S.*).*))?$)"},{"match":"\\\\b(catch|finally|try)\\\\b","name":"keyword.control.exception.scala"},{"match":"^\\\\s*(end)\\\\s+(try)(?=\\\\s*(/(?:/.*|\\\\*(?!.*\\\\*/\\\\s*\\\\S.*).*))?$)","name":"keyword.control.exception.end.scala"},{"captures":{"1":{"name":"keyword.declaration.end.scala"},"2":{"name":"entity.name.declaration"}},"match":"^\\\\s*(end)\\\\s+(`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+))?(?=\\\\s*(/(?:/.*|\\\\*(?!.*\\\\*/\\\\s*\\\\S.*).*))?$)"},{"match":"([-!#%\\\\&*+/:<-@\\\\\\\\^|~\\\\p{Sm}\\\\p{So}]){3,}","name":"keyword.operator.scala"},{"captures":{"1":{"patterns":[{"match":"(\\\\|\\\\||&&)","name":"keyword.operator.logical.scala"},{"match":"([!<=>]=)","name":"keyword.operator.comparison.scala"},{"match":"..","name":"keyword.operator.scala"}]}},"match":"([-!#%\\\\&*+/:<-@\\\\\\\\^|~\\\\p{Sm}\\\\p{So}]{2,}|_\\\\*)"},{"captures":{"1":{"patterns":[{"match":"(!)","name":"keyword.operator.logical.scala"},{"match":"([-%*+/~])","name":"keyword.operator.arithmetic.scala"},{"match":"([<=>])","name":"keyword.operator.comparison.scala"},{"match":".","name":"keyword.operator.scala"}]}},"match":"(?:|<:","name":"meta.bounds.scala"},"meta-brackets":{"patterns":[{"match":"\\\\{","name":"punctuation.section.block.begin.scala"},{"match":"}","name":"punctuation.section.block.end.scala"},{"match":"[]()\\\\[{}]","name":"meta.bracket.scala"}]},"meta-colons":{"patterns":[{"match":"(?[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+))(?!\')"},{"match":"\'(?=\\\\s*\\\\{(?!\'))","name":"keyword.control.flow.staging.scala"},{"match":"\'(?=\\\\s*\\\\[(?!\'))","name":"keyword.control.flow.staging.scala"},{"match":"\\\\$(?=\\\\s*\\\\{)","name":"keyword.control.flow.staging.scala"}]},"script-header":{"captures":{"1":{"name":"string.unquoted.shebang.scala"}},"match":"^#!(.*)$","name":"comment.block.shebang.scala"},"singleton-type":{"captures":{"1":{"name":"keyword.type.scala"}},"match":"\\\\.(type)(?![$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[0-9])"},"storage-modifiers":{"patterns":[{"match":"\\\\b(pr(?:ivate\\\\[\\\\S+]|otected\\\\[\\\\S+]|ivate|otected))\\\\b","name":"storage.modifier.access"},{"match":"\\\\b(synchronized|@volatile|abstract|final|lazy|sealed|implicit|override|@transient|@native)\\\\b","name":"storage.modifier.other"},{"match":"(?<=^|\\\\s)\\\\b(transparent|opaque|infix|open|inline)\\\\b(?=[a-z\\\\s]*\\\\b(def|val|var|given|type|class|trait|object|enum)\\\\b)","name":"storage.modifier.other"}]},"string-interpolation":{"patterns":[{"match":"\\\\$\\\\$","name":"constant.character.escape.interpolation.scala"},{"captures":{"1":{"name":"punctuation.definition.template-expression.begin.scala"}},"match":"(\\\\$)([$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*)","name":"meta.template.expression.scala"},{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.scala"}},"contentName":"meta.embedded.line.scala","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.scala"}},"name":"meta.template.expression.scala","patterns":[{"include":"#code"}]}]},"strings":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scala"}},"end":"\\"\\"\\"(?!\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.scala"}},"name":"string.quoted.triple.scala","patterns":[{"match":"\\\\\\\\(?:\\\\\\\\|u\\\\h{4})","name":"constant.character.escape.scala"}]},{"begin":"\\\\b(raw)(\\"\\"\\")","beginCaptures":{"1":{"name":"keyword.interpolation.scala"},"2":{"name":"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},"end":"(\\"\\"\\")(?!\\")|\\\\$\\\\n|(\\\\$[^\\"$A-Z_a-{\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}])","endCaptures":{"1":{"name":"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{"name":"invalid.illegal.unrecognized-string-escape.scala"}},"patterns":[{"match":"\\\\$[\\"$]","name":"constant.character.escape.scala"},{"include":"#string-interpolation"},{"match":".","name":"string.quoted.triple.interpolated.scala"}]},{"begin":"\\\\b([$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?)(\\"\\"\\")","beginCaptures":{"1":{"name":"keyword.interpolation.scala"},"2":{"name":"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},"end":"(\\"\\"\\")(?!\\")|\\\\$\\\\n|(\\\\$[^\\"$A-Z_a-{\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}])","endCaptures":{"1":{"name":"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{"name":"invalid.illegal.unrecognized-string-escape.scala"}},"patterns":[{"include":"#string-interpolation"},{"match":"\\\\\\\\(?:\\\\\\\\|u\\\\h{4})","name":"constant.character.escape.scala"},{"match":".","name":"string.quoted.triple.interpolated.scala"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scala"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scala"}},"name":"string.quoted.double.scala","patterns":[{"match":"\\\\\\\\(?:[\\"\'\\\\\\\\bfnrt]|[0-7]{1,3}|u\\\\h{4})","name":"constant.character.escape.scala"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.scala"}]},{"begin":"\\\\b(raw)(\\")","beginCaptures":{"1":{"name":"keyword.interpolation.scala"},"2":{"name":"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},"end":"(\\")|\\\\$\\\\n|(\\\\$[^\\"$A-Z_a-{\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}])","endCaptures":{"1":{"name":"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{"name":"invalid.illegal.unrecognized-string-escape.scala"}},"patterns":[{"match":"\\\\$[\\"$]","name":"constant.character.escape.scala"},{"include":"#string-interpolation"},{"match":".","name":"string.quoted.double.interpolated.scala"}]},{"begin":"\\\\b([$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?)(\\")","beginCaptures":{"1":{"name":"keyword.interpolation.scala"},"2":{"name":"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},"end":"(\\")|\\\\$\\\\n|(\\\\$[^\\"$A-Z_a-{\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}])","endCaptures":{"1":{"name":"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{"name":"invalid.illegal.unrecognized-string-escape.scala"}},"patterns":[{"match":"\\\\$[\\"$]","name":"constant.character.escape.scala"},{"include":"#string-interpolation"},{"match":"\\\\\\\\(?:[\\"\'\\\\\\\\bfnrt]|[0-7]{1,3}|u\\\\h{4})","name":"constant.character.escape.scala"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.scala"},{"match":".","name":"string.quoted.double.interpolated.scala"}]}]},"using":{"patterns":[{"captures":{"1":{"name":"keyword.declaration.scala"}},"match":"(?<=\\\\()\\\\s*(using)\\\\s"}]},"using-directive":{"begin":"^\\\\s*(//>)\\\\s*(using)[^\\\\n\\\\S]+(\\\\S+)?","beginCaptures":{"1":{"name":"punctuation.definition.comment.scala"},"2":{"name":"keyword.other.import.scala"},"3":{"patterns":[{"match":"[A-Z\\\\p{Lt}\\\\p{Lu}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|`[^`]+`|(?:[$A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}][$0-9A-Z_a-z\\\\p{Lt}\\\\p{Lu}\\\\p{Lo}\\\\p{Nl}\\\\p{Ll}]*(?:(?<=_)[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)?|[-!#%\\\\&*+/:<-@^|~\\\\p{Sm}\\\\p{So}]+)","name":"entity.name.import.scala"},{"match":"\\\\.","name":"punctuation.definition.import"}]}},"end":"\\\\n","name":"comment.line.shebang.scala","patterns":[{"include":"#constants"},{"include":"#strings"},{"match":"[^,\\\\s]+","name":"string.quoted.double.scala"}]},"xml-doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml","patterns":[{"include":"#xml-entity"}]},"xml-embedded-content":{"patterns":[{"begin":"\\\\{","captures":{"0":{"name":"meta.bracket.scala"}},"end":"}","name":"meta.source.embedded.scala","patterns":[{"include":"#code"}]},{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":" (?:([-0-9A-Z_a-z]+)((:)))?([-A-Z_a-z]+)="},{"include":"#xml-doublequotedString"},{"include":"#xml-singlequotedString"}]},"xml-entity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(&)([:A-Z_a-z][-.0-:A-Z_a-z]*|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.xml"},"xml-literal":{"patterns":[{"begin":"(<)((?:([0-9A-Z_a-z][0-9A-Z_a-z]*)((:)))?([0-9A-Z_a-z][-0-:A-Z_a-z]*))(?=(\\\\s[^>]*)?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"3":{"name":"entity.name.tag.namespace.xml"},"4":{"name":"entity.name.tag.xml"},"5":{"name":"punctuation.separator.namespace.xml"},"6":{"name":"entity.name.tag.localname.xml"}},"end":"(>(<))/(?:([-0-9A-Z_a-z]+)((:)))?([-0-:A-Z_a-z]*[0-9A-Z_a-z])(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"meta.scope.between-tag-pair.xml"},"3":{"name":"entity.name.tag.namespace.xml"},"4":{"name":"entity.name.tag.xml"},"5":{"name":"punctuation.separator.namespace.xml"},"6":{"name":"entity.name.tag.localname.xml"},"7":{"name":"punctuation.definition.tag.xml"}},"name":"meta.tag.no-content.xml","patterns":[{"include":"#xml-embedded-content"}]},{"begin":"(]*?>)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.namespace.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(/?>)","name":"meta.tag.xml","patterns":[{"include":"#xml-embedded-content"}]},{"include":"#xml-entity"}]},"xml-singlequotedString":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml","patterns":[{"include":"#xml-entity"}]}},"scopeName":"source.scala"}'))];export{a as default}; diff --git a/docs/assets/scheme-BTu--Sck.js b/docs/assets/scheme-BTu--Sck.js new file mode 100644 index 0000000..1dd5481 --- /dev/null +++ b/docs/assets/scheme-BTu--Sck.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Scheme","fileTypes":["scm","ss","sch","rkt"],"name":"scheme","patterns":[{"include":"#comment"},{"include":"#block-comment"},{"include":"#sexp"},{"include":"#string"},{"include":"#language-functions"},{"include":"#quote"},{"include":"#illegal"}],"repository":{"block-comment":{"begin":"#\\\\|","contentName":"comment","end":"\\\\|#","name":"comment","patterns":[{"include":"#block-comment","name":"comment"}]},"comment":{"begin":"(^[\\\\t ]+)?(?=;)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.scheme"}},"end":"(?!\\\\G)","patterns":[{"begin":";","beginCaptures":{"0":{"name":"punctuation.definition.comment.scheme"}},"end":"\\\\n","name":"comment.line.semicolon.scheme"}]},"constants":{"patterns":[{"match":"#[ft|]","name":"constant.language.boolean.scheme"},{"match":"(?<=[(\\\\s])((#[ei])?[0-9]+(\\\\.[0-9]+)?|(#x)\\\\h+|(#o)[0-7]+|(#b)[01]+)(?=[]\\"'(),;\\\\[\\\\s])","name":"constant.numeric.scheme"}]},"illegal":{"match":"[]()\\\\[]","name":"invalid.illegal.parenthesis.scheme"},"language-functions":{"patterns":[{"match":"(?<=([(\\\\[\\\\s]))(do|or|and|else|quasiquote|begin|if|case|set!|cond|let|unquote|define|let\\\\*|unquote-splicing|delay|letrec)(?=([(\\\\s]))","name":"keyword.control.scheme"},{"match":"(?<=([(\\\\s]))(char-alphabetic|char-lower-case|char-numeric|char-ready|char-upper-case|char-whitespace|(?:char|string)(?:-ci)?(?:=|<=?|>=?)|atom|boolean|bound-identifier=|char|complex|identifier|integer|symbol|free-identifier=|inexact|eof-object|exact|list|(?:in|out)put-port|pair|real|rational|zero|vector|negative|odd|null|string|eq|equal|eqv|even|number|positive|procedure)(\\\\?)(?=([(\\\\s]))","name":"support.function.boolean-test.scheme"},{"match":"(?<=([(\\\\s]))(char->integer|exact->inexact|inexact->exact|integer->char|symbol->string|list->vector|list->string|identifier->symbol|vector->list|string->list|string->number|string->symbol|number->string)(?=([(\\\\s]))","name":"support.function.convert-type.scheme"},{"match":"(?<=([(\\\\s]))(set-c[ad]r|(?:vector|string)-(?:fill|set))(!)(?=([(\\\\s]))","name":"support.function.with-side-effects.scheme"},{"match":"(?<=([(\\\\s]))(>=?|<=?|[-*+/=])(?=([(\\\\s]))","name":"keyword.operator.arithmetic.scheme"},{"match":"(?<=([(\\\\s]))(append|apply|approximate|call-with-current-continuation|call/cc|catch|construct-identifier|define-syntax|display|foo|for-each|force|format|cd|gen-counter|gen-loser|generate-identifier|last-pair|length|let-syntax|letrec-syntax|list|list-ref|list-tail|load|log|macro|magnitude|map|map-streams|max|member|memq|memv|min|newline|nil|not|peek-char|rationalize|read|read-char|return|reverse|sequence|substring|syntax|syntax-rules|transcript-off|transcript-on|truncate|unwrap-syntax|values-list|write|write-char|cons|c([ad]){1,4}r|abs|acos|angle|asin|assoc|assq|assv|atan|ceiling|cos|floor|round|sin|sqrt|tan|(?:real|imag)-part|numerator|denominatormodulo|expt??|remainder|quotient|lcm|call-with-(?:in|out)put-file|c(?:lose|urrent)-(?:in|out)put-port|with-(?:in|out)put-from-file|open-(?:in|out)put-file|char-(?:downcase|upcase|ready)|make-(?:polar|promise|rectangular|string|vector)string(?:-(?:append|copy|length|ref))?|vector-(?:length|ref))(?=([(\\\\s]))","name":"support.function.general.scheme"}]},"quote":{"patterns":[{"captures":{"1":{"name":"punctuation.section.quoted.symbol.scheme"}},"match":"(')\\\\s*(\\\\p{alnum}[!$%\\\\&*-/:<-@^_~[:alnum:]]*)","name":"constant.other.symbol.scheme"},{"captures":{"1":{"name":"punctuation.section.quoted.empty-list.scheme"},"2":{"name":"meta.expression.scheme"},"3":{"name":"punctuation.section.expression.begin.scheme"},"4":{"name":"punctuation.section.expression.end.scheme"}},"match":"(')\\\\s*((\\\\()\\\\s*(\\\\)))","name":"constant.other.empty-list.schem"},{"begin":"(')\\\\s*","beginCaptures":{"1":{"name":"punctuation.section.quoted.scheme"}},"end":"(?=[()\\\\s])|(?<=\\\\n)","name":"string.other.quoted-object.scheme","patterns":[{"include":"#quoted"}]}]},"quote-sexp":{"begin":"(?<=\\\\()\\\\s*(quote)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.quote.scheme"}},"contentName":"string.other.quote.scheme","end":"(?=[)\\\\s])|(?<=\\\\n)","patterns":[{"include":"#quoted"}]},"quoted":{"patterns":[{"include":"#string"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.scheme"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.expression.end.scheme"}},"name":"meta.expression.scheme","patterns":[{"include":"#quoted"}]},{"include":"#quote"},{"include":"#illegal"}]},"sexp":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.expression.begin.scheme"}},"end":"(\\\\))(\\\\n)?","endCaptures":{"1":{"name":"punctuation.section.expression.end.scheme"},"2":{"name":"meta.after-expression.scheme"}},"name":"meta.expression.scheme","patterns":[{"include":"#comment"},{"begin":"(?<=\\\\()(define)\\\\s+(\\\\()(\\\\p{alnum}[!$%\\\\&*-/:<-@^_~[:alnum:]]*)((\\\\s+(\\\\p{alnum}[!$%\\\\&*-/:<-@^_~[:alnum:]]*|[._]))*)\\\\s*(\\\\))","captures":{"1":{"name":"keyword.control.scheme"},"2":{"name":"punctuation.definition.function.scheme"},"3":{"name":"entity.name.function.scheme"},"4":{"name":"variable.parameter.function.scheme"},"7":{"name":"punctuation.definition.function.scheme"}},"end":"(?=\\\\))","name":"meta.declaration.procedure.scheme","patterns":[{"include":"#comment"},{"include":"#sexp"},{"include":"#illegal"}]},{"begin":"(?<=\\\\()(lambda)\\\\s+(\\\\()((?:(\\\\p{alnum}[!$%\\\\&*-/:<-@^_~[:alnum:]]*|[._])\\\\s+)*(\\\\p{alnum}[!$%\\\\&*-/:<-@^_~[:alnum:]]*|[._])?)(\\\\))","captures":{"1":{"name":"keyword.control.scheme"},"2":{"name":"punctuation.definition.variable.scheme"},"3":{"name":"variable.parameter.scheme"},"6":{"name":"punctuation.definition.variable.scheme"}},"end":"(?=\\\\))","name":"meta.declaration.procedure.scheme","patterns":[{"include":"#comment"},{"include":"#sexp"},{"include":"#illegal"}]},{"begin":"(?<=\\\\()(define)\\\\s(\\\\p{alnum}[!$%\\\\&*-/:<-@^_~[:alnum:]]*)\\\\s*.*?","captures":{"1":{"name":"keyword.control.scheme"},"2":{"name":"variable.other.scheme"}},"end":"(?=\\\\))","name":"meta.declaration.variable.scheme","patterns":[{"include":"#comment"},{"include":"#sexp"},{"include":"#illegal"}]},{"include":"#quote-sexp"},{"include":"#quote"},{"include":"#language-functions"},{"include":"#string"},{"include":"#constants"},{"match":"(?<=[(\\\\s])(#\\\\\\\\)(space|newline|tab)(?=[)\\\\s])","name":"constant.character.named.scheme"},{"match":"(?<=[(\\\\s])(#\\\\\\\\)x[0-9A-F]{2,4}(?=[)\\\\s])","name":"constant.character.hex-literal.scheme"},{"match":"(?<=[(\\\\s])(#\\\\\\\\).(?=[)\\\\s])","name":"constant.character.escape.scheme"},{"match":"(?<=[ ()])\\\\.(?=[ ()])","name":"punctuation.separator.cons.scheme"},{"include":"#sexp"},{"include":"#illegal"}]},"string":{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scheme"}},"end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.scheme"}},"name":"string.quoted.double.scheme","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.scheme"}]}},"scopeName":"source.scheme"}`))];export{e as default}; diff --git a/docs/assets/scheme-DCJ8_Fy0.js b/docs/assets/scheme-DCJ8_Fy0.js new file mode 100644 index 0000000..0310fd7 --- /dev/null +++ b/docs/assets/scheme-DCJ8_Fy0.js @@ -0,0 +1 @@ +var E="builtin",s="comment",g="string",x="symbol",l="atom",b="number",v="bracket",S=2;function k(e){for(var t={},n=e.split(" "),a=0;ainteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),q=k("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function Q(e,t,n){this.indent=e,this.type=t,this.prev=n}function d(e,t,n){e.indentStack=new Q(t,n,e.indentStack)}function $(e){e.indentStack=e.indentStack.prev}var R=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),C=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),U=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),W=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function z(e){return e.match(R)}function I(e){return e.match(C)}function m(e,t){return t===!0&&e.backUp(1),e.match(W)}function j(e){return e.match(U)}function w(e,t){for(var n,a=!1;(n=e.next())!=null;){if(n==t.token&&!a){t.state.mode=!1;break}a=!a&&n=="\\"}}const B={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,t){if(t.indentStack==null&&e.sol()&&(t.indentation=e.indentation()),e.eatSpace())return null;var n=null;switch(t.mode){case"string":w(e,{token:'"',state:t}),n=g;break;case"symbol":w(e,{token:"|",state:t}),n=x;break;case"comment":for(var a,p=!1;(a=e.next())!=null;){if(a=="#"&&p){t.mode=!1;break}p=a=="|"}n=s;break;case"s-expr-comment":if(t.mode=!1,e.peek()=="("||e.peek()=="[")t.sExprComment=0;else{e.eatWhile(/[^\s\(\)\[\]]/),n=s;break}default:var r=e.next();if(r=='"')t.mode="string",n=g;else if(r=="'")e.peek()=="("||e.peek()=="["?(typeof t.sExprQuote!="number"&&(t.sExprQuote=0),n=l):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=l);else if(r=="|")t.mode="symbol",n=x;else if(r=="#")if(e.eat("|"))t.mode="comment",n=s;else if(e.eat(/[tf]/i))n=l;else if(e.eat(";"))t.mode="s-expr-comment",n=s;else{var i=null,o=!1,f=!0;e.eat(/[ei]/i)?o=!0:e.backUp(1),e.match(/^#b/i)?i=z:e.match(/^#o/i)?i=I:e.match(/^#x/i)?i=j:e.match(/^#d/i)?i=m:e.match(/^[-+0-9.]/,!1)?(f=!1,i=m):o||e.eat("#"),i!=null&&(f&&!o&&e.match(/^#[ei]/i),i(e)&&(n=b))}else if(/^[-+0-9.]/.test(r)&&m(e,!0))n=b;else if(r==";")e.skipToEnd(),n=s;else if(r=="("||r=="["){for(var c="",u=e.column(),h;(h=e.eat(/[^\s\(\[\;\)\]]/))!=null;)c+=h;c.length>0&&q.propertyIsEnumerable(c)?d(t,u+S,r):(e.eatSpace(),e.eol()||e.peek()==";"?d(t,u+1,r):d(t,u+e.current().length,r)),e.backUp(e.current().length-1),typeof t.sExprComment=="number"&&t.sExprComment++,typeof t.sExprQuote=="number"&&t.sExprQuote++,n=v}else r==")"||r=="]"?(n=v,t.indentStack!=null&&t.indentStack.type==(r==")"?"(":"[")&&($(t),typeof t.sExprComment=="number"&&--t.sExprComment==0&&(n=s,t.sExprComment=!1),typeof t.sExprQuote=="number"&&--t.sExprQuote==0&&(n=l,t.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=y&&y.propertyIsEnumerable(e.current())?E:"variable")}return typeof t.sExprComment=="number"?s:typeof t.sExprQuote=="number"?l:n},indent:function(e){return e.indentStack==null?e.indentation:e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}};export{B as t}; diff --git a/docs/assets/scheme-as2FasXy.js b/docs/assets/scheme-as2FasXy.js new file mode 100644 index 0000000..ca8e112 --- /dev/null +++ b/docs/assets/scheme-as2FasXy.js @@ -0,0 +1 @@ +import{t as e}from"./scheme-DCJ8_Fy0.js";export{e as scheme}; diff --git a/docs/assets/scratchpad-panel-Bxttzf7V.js b/docs/assets/scratchpad-panel-Bxttzf7V.js new file mode 100644 index 0000000..49b973b --- /dev/null +++ b/docs/assets/scratchpad-panel-Bxttzf7V.js @@ -0,0 +1 @@ +import{s as oe}from"./chunk-LvLJmgfZ.js";import{d as be,l as ye,n as V,p as ae,u as we}from"./useEvent-DlWF5OMa.js";import{t as Ne}from"./react-BGmjiNul.js";import{N as ke,Zr as ze,_n as Ce,ai as Se,oi as n,w as Oe,__tla as Ae}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as se}from"./compiler-runtime-DeeZ7FnK.js";import"./tooltip-CrRUCOBw.js";import{f as ie}from"./hotkeys-uKX61F1_.js";import{y as Ie}from"./utils-Czt8B2GX.js";import{t as Le}from"./constants-Bkp4R3bQ.js";import"./config-CENq_7Pd.js";import{t as Me}from"./jsx-runtime-DN_bIXfG.js";import{t as z}from"./button-B8cGZzP5.js";import{t as le}from"./cn-C1rgT0yh.js";import"./dist-CAcX026F.js";import{n as Pe,__tla as Ee}from"./JsonOutput-DlwRx3jE.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as Re}from"./requests-C0HaHO6a.js";import{t as me}from"./createLucideIcon-CW2xpJ57.js";import{d as De,__tla as He}from"./layout-CBI2c778.js";import{n as Ve,t as qe,__tla as Te}from"./LazyAnyLanguageCodeMirror-Dr2G5gxJ.js";import"./download-C_slsU-7.js";import"./markdown-renderer-DjqhqmES.js";import{u as Ge}from"./toDate-5JckKRQn.js";import{t as Ue,__tla as Ze}from"./cell-editor-BaPoX5lw.js";import{t as Be}from"./play-BJDBXApx.js";import{t as Fe}from"./spinner-C1czjtp7.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{r as Je}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{t as C}from"./tooltip-CvjcEpZC.js";import"./dates-CdsE1R40.js";import"./popover-DtnzNVk-.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import"./purify.es-N-2faAGj.js";import{__tla as Ke}from"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import"./es-BJsT6vfZ.js";import{o as Qe}from"./focus-KGgBDCvb.js";import{a as We}from"./renderShortcut-BzTDKVab.js";import"./esm-D2_Kx6xF.js";import{n as Xe,r as Ye,t as ne}from"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import"./name-cell-input-Dc5Oz84d.js";import"./Inputs-BLUpxKII.js";import{__tla as $e}from"./loro_wasm_bg-BCxPjJ2X.js";import"./ws-Sb1KIggW.js";import"./dist-cDyKKhtR.js";import"./dist-CsayQVA2.js";import"./dist-CebZ69Am.js";import"./dist-gkLBSkCp.js";import"./dist-ClsPkyB_.js";import"./dist-BZPaM2NB.js";import"./dist-CAJqQUSI.js";import"./dist-CGGpiWda.js";import"./dist-BsIAU6bk.js";import"./esm-BranOiPJ.js";import{a as et,i as tt,t as rt}from"./kiosk-mode-CQH06LFg.js";let ce,ot=Promise.all([(()=>{try{return Ae}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return $e}catch{}})()]).then(async()=>{var de=me("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]),pe=me("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),he=se(),q=oe(Ne(),1),ue=15;const T=ze("marimo:scratchpadHistory:v1",[],Ce),fe=ae(!1),xe=ae(null,(e,s,i)=>{if(i=i.trim(),!i)return;let m=e(T);s(T,[i,...m.filter(c=>c!==i)].slice(0,ue))});var t=oe(Me(),1),_e={hide_code:!1,disabled:!1};const ve=()=>{var re;let e=(0,he.c)(60),s=ke(),[i]=Ie(),{theme:m}=Je(),c=(0,q.useRef)(null),G=Qe(),{createNewCell:U,updateCellCode:d}=Oe(),{sendRunScratchpad:p}=Re(),S=tt(),Z=et(),l=s.cellRuntime[n],B=l==null?void 0:l.output,O=l==null?void 0:l.status,F=l==null?void 0:l.consoleOutputs,r=((re=s.cellData.__scratch__)==null?void 0:re.code)??"",J=be(xe),[a,h]=ye(fe),u=we(T),A;e[0]!==J||e[1]!==r||e[2]!==p?(A=()=>{p({code:r}),J(r)},e[0]=J,e[1]=r,e[2]=p,e[3]=A):A=e[3];let f=V(A),I;e[4]!==r||e[5]!==U||e[6]!==G?(I=()=>{r.trim()&&U({code:r,before:!1,cellId:G??"__end__"})},e[4]=r,e[5]=U,e[6]=G,e[7]=I):I=e[7];let K=V(I),L;e[8]!==p||e[9]!==d?(L=()=>{d({cellId:n,code:"",formattingChange:!1}),p({code:""});let o=c.current;o&&o.dispatch({changes:{from:0,to:o.state.doc.length,insert:""}})},e[8]=p,e[9]=d,e[10]=L):L=e[10];let Q=V(L),M;e[11]!==h||e[12]!==d?(M=o=>{h(!1),d({cellId:n,code:o,formattingChange:!1});let k=c.current;k&&k.dispatch({changes:{from:0,to:k.state.doc.length,insert:o}})},e[11]=h,e[12]=d,e[13]=M):M=e[13];let W=V(M),[X,ge]=(0,q.useState)(),P;e[14]!==W||e[15]!==u||e[16]!==a||e[17]!==m?(P=()=>a?(0,t.jsx)("div",{className:"absolute inset-0 z-100 bg-background p-3 border-none overflow-auto",children:(0,t.jsx)("div",{className:"overflow-auto flex flex-col gap-3",children:u.map((o,k)=>(0,t.jsx)("div",{className:"border rounded-md hover:shadow-sm cursor-pointer hover:border-input overflow-hidden",onClick:()=>W(o),children:(0,t.jsx)(q.Suspense,{children:(0,t.jsx)(qe,{language:"python",theme:m,basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1},value:o.trim(),editable:!1,readOnly:!0})})},k))})}):null,e[14]=W,e[15]=u,e[16]=a,e[17]=m,e[18]=P):P=e[18];let Y=P,E;e[19]!==Q||e[20]!==K||e[21]!==f||e[22]!==u.length||e[23]!==a||e[24]!==h||e[25]!==O?(E=()=>(0,t.jsxs)("div",{className:"flex items-center shrink-0 border-b",children:[(0,t.jsx)(C,{content:We("cell.run"),children:(0,t.jsx)(z,{"data-testid":"scratchpad-run-button",onClick:f,disabled:a,variant:"text",size:"xs",children:(0,t.jsx)(Be,{color:"var(--grass-11)",size:16})})}),(0,t.jsx)(C,{content:"Clear code and outputs",children:(0,t.jsx)(z,{disabled:a,size:"xs",variant:"text",onClick:Q,children:(0,t.jsx)(de,{size:16})})}),(0,t.jsx)(rt,{children:(0,t.jsx)(C,{content:"Insert code",children:(0,t.jsx)(z,{disabled:a,size:"xs",variant:"text",onClick:K,children:(0,t.jsx)(Ve,{size:16})})})}),(O==="running"||O==="queued")&&(0,t.jsx)(Fe,{className:"inline",size:"small"}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(C,{content:"Toggle history",children:(0,t.jsx)(z,{size:"xs",variant:"text",className:le(a&&"bg-(--sky-3) rounded-none"),onClick:()=>h(!a),disabled:u.length===0,children:(0,t.jsx)(pe,{size:16})})}),(0,t.jsx)(C,{content:(0,t.jsx)("span",{className:"block max-w-prose",children:"Use this scratchpad to experiment with code without restrictions on variable names. Variables defined here aren't saved to notebook memory, and the code is not saved in the notebook file."}),children:(0,t.jsx)(z,{size:"xs",variant:"text",children:(0,t.jsx)(Ge,{size:16})})})]}),e[19]=Q,e[20]=K,e[21]=f,e[22]=u.length,e[23]=a,e[24]=h,e[25]=O,e[26]=E):E=e[26];let $=E,je=S==="vertical",R;e[27]===Symbol.for("react.memo_cache_sentinel")?(R=Se.create(n),e[27]=R):R=e[27];let x;e[28]===$?x=e[29]:(x=$(),e[28]=$,e[29]=x);let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=o=>{c.current=o},e[30]=D):D=e[30];let _;e[31]!==r||e[32]!==f||e[33]!==X||e[34]!==m||e[35]!==i?(_=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Ue,{theme:m,showPlaceholder:!1,id:n,code:r,config:_e,status:"idle",serializedEditorState:null,runCell:f,userConfig:i,editorViewRef:c,setEditorView:D,hidden:!1,showHiddenCode:ie.NOOP,languageAdapter:X,setLanguageAdapter:ge})}),e[31]=r,e[32]=f,e[33]=X,e[34]=m,e[35]=i,e[36]=_):_=e[36];let v;e[37]===Y?v=e[38]:(v=Y(),e[37]=Y,e[38]=v);let g;e[39]!==v||e[40]!==x||e[41]!==_?(g=(0,t.jsx)(ne,{defaultSize:40,minSize:20,maxSize:70,children:(0,t.jsxs)("div",{className:"h-full flex flex-col overflow-hidden relative",children:[x,_,v]})}),e[39]=v,e[40]=x,e[41]=_,e[42]=g):g=e[42];let ee=je?"h-1":"w-1",j;e[43]===ee?j=e[44]:(j=le("bg-border hover:bg-primary/50 transition-colors",ee),e[43]=ee,e[44]=j);let b;e[45]===j?b=e[46]:(b=(0,t.jsx)(Ye,{className:j}),e[45]=j,e[46]=b);let y;e[47]===B?y=e[48]:(y=(0,t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,t.jsx)(Pe,{allowExpand:!1,output:B,className:Le.outputArea,cellId:n,stale:!1,loading:!1})}),e[47]=B,e[48]=y);let w;e[49]===F?w=e[50]:(w=(0,t.jsx)("div",{className:"overflow-auto shrink-0 max-h-[50%]",children:(0,t.jsx)(De,{consoleOutputs:F,className:"overflow-auto",stale:!1,cellName:"_",onSubmitDebugger:ie.NOOP,cellId:n,debuggerActive:!1})}),e[49]=F,e[50]=w);let N;e[51]!==y||e[52]!==w?(N=(0,t.jsx)(ne,{defaultSize:60,minSize:20,children:(0,t.jsxs)("div",{className:"h-full flex flex-col divide-y overflow-hidden",children:[y,w]})}),e[51]=y,e[52]=w,e[53]=N):N=e[53];let H;return e[54]!==S||e[55]!==Z||e[56]!==g||e[57]!==b||e[58]!==N?(H=(0,t.jsx)("div",{className:"flex flex-col h-full overflow-hidden",id:R,children:(0,t.jsxs)(Xe,{direction:S,className:"h-full",children:[g,b,N]},Z)}),e[54]=S,e[55]=Z,e[56]=g,e[57]=b,e[58]=N,e[59]=H):H=e[59],H};let te;te=se(),ce=()=>{let e=(0,te.c)(1),s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(ve,{}),e[0]=s):s=e[0],s}});export{ot as __tla,ce as default}; diff --git a/docs/assets/scss-B2xSI_mm.js b/docs/assets/scss-B2xSI_mm.js new file mode 100644 index 0000000..9abb22d --- /dev/null +++ b/docs/assets/scss-B2xSI_mm.js @@ -0,0 +1 @@ +import{t}from"./scss-B9q1Ycvh.js";export{t as default}; diff --git a/docs/assets/scss-B9q1Ycvh.js b/docs/assets/scss-B9q1Ycvh.js new file mode 100644 index 0000000..91c66ef --- /dev/null +++ b/docs/assets/scss-B9q1Ycvh.js @@ -0,0 +1 @@ +import{t as e}from"./css-xi2XX7Oh.js";var n=Object.freeze(JSON.parse(`{"displayName":"SCSS","name":"scss","patterns":[{"include":"#variable_setting"},{"include":"#at_rule_forward"},{"include":"#at_rule_use"},{"include":"#at_rule_include"},{"include":"#at_rule_import"},{"include":"#general"},{"include":"#flow_control"},{"include":"#rules"},{"include":"#property_list"},{"include":"#at_rule_mixin"},{"include":"#at_rule_media"},{"include":"#at_rule_function"},{"include":"#at_rule_charset"},{"include":"#at_rule_option"},{"include":"#at_rule_namespace"},{"include":"#at_rule_fontface"},{"include":"#at_rule_page"},{"include":"#at_rule_keyframes"},{"include":"#at_rule_at_root"},{"include":"#at_rule_supports"},{"match":";","name":"punctuation.terminator.rule.css"}],"repository":{"at_rule_at_root":{"begin":"\\\\s*((@)(at-root))(\\\\s+|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.at-root.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.at-root.scss","patterns":[{"include":"#function_attributes"},{"include":"#functions"},{"include":"#selectors"}]},"at_rule_charset":{"begin":"\\\\s*((@)charset)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.charset.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;|$))","name":"meta.at-rule.charset.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"}]},"at_rule_content":{"begin":"\\\\s*((@)content)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.content.scss"}},"end":"\\\\s*((?=;))","name":"meta.content.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_each":{"begin":"\\\\s*((@)each)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.each.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=}))","name":"meta.at-rule.each.scss","patterns":[{"match":"\\\\b(in|,)\\\\b","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_else":{"begin":"\\\\s*((@)else(\\\\s*(if)?))\\\\s*","captures":{"1":{"name":"keyword.control.else.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.else.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_extend":{"begin":"\\\\s*((@)extend)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.extend.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.extend.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_fontface":{"patterns":[{"begin":"^\\\\s*((@)font-face)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.fontface.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.fontface.scss","patterns":[{"include":"#function_attributes"}]}]},"at_rule_for":{"begin":"\\\\s*((@)for)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.for.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.for.scss","patterns":[{"match":"(==|!=|<=|>=|[<>]|from|to|through)","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_forward":{"begin":"\\\\s*((@)forward)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.forward.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.forward.scss","patterns":[{"match":"\\\\b(as|hide|show)\\\\b","name":"keyword.control.operator"},{"captures":{"1":{"name":"entity.other.attribute-name.module.scss"},"2":{"name":"punctuation.definition.wildcard.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\*)"},{"match":"\\\\b[-\\\\w]+\\\\b","name":"entity.name.function.scss"},{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#comment_line"},{"include":"#comment_block"}]},"at_rule_function":{"patterns":[{"begin":"\\\\s*((@)function)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.function.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"match":"\\\\s*((@)function)\\\\b\\\\s*","name":"meta.at-rule.function.scss"}]},"at_rule_if":{"begin":"\\\\s*((@)if)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.if.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.if.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_import":{"begin":"\\\\s*((@)import)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.import.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;)|(?=}))","name":"meta.at-rule.import.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#functions"},{"include":"#comment_line"}]},"at_rule_include":{"patterns":[{"begin":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"name":"meta.at-rule.include.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"}},"match":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)"},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"keyword.control.at-rule.include.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)include)\\\\b"}]},"at_rule_keyframes":{"begin":"(?<=^|\\\\s)(@)(?:-(?:webkit|moz)-)?keyframes\\\\b","beginCaptures":{"0":{"name":"keyword.control.at-rule.keyframes.scss"},"1":{"name":"punctuation.definition.keyword.scss"}},"end":"(?<=})","name":"meta.at-rule.keyframes.scss","patterns":[{"captures":{"1":{"name":"entity.name.function.scss"}},"match":"(?<=@keyframes)\\\\s+((?:[A-Z_a-z][-\\\\w]|-[A-Z_a-z])[-\\\\w]*)"},{"begin":"(?<=@keyframes)\\\\s+(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"(?<=@keyframes)\\\\s+(')","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.keyframes.begin.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.keyframes.end.scss"}},"patterns":[{"match":"\\\\b(?:(?:100|[1-9]\\\\d|\\\\d)%|from|to)(?=\\\\s*\\\\{)","name":"entity.other.attribute-name.scss"},{"include":"#flow_control"},{"include":"#interpolation"},{"include":"#property_list"},{"include":"#rules"}]}]},"at_rule_media":{"patterns":[{"begin":"^\\\\s*((@)media)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.media.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.media.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"match":"\\\\b(only)\\\\b","name":"keyword.control.operator.css.scss"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.media-query.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.media-query.end.bracket.round.scss"}},"name":"meta.property-list.media-query.scss","patterns":[{"begin":"(?=|[<>]","name":"keyword.operator.comparison.scss"},"conditional_operators":{"patterns":[{"include":"#comparison_operators"},{"include":"#logical_operators"}]},"constant_default":{"match":"!default","name":"keyword.other.default.scss"},"constant_functions":{"begin":"(?:([-\\\\w]+)(\\\\.))?([-\\\\w]+)(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"support.function.misc.scss"},"4":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"constant_important":{"match":"!important","name":"keyword.other.important.scss"},"constant_mathematical_symbols":{"match":"\\\\b([-*+/])\\\\b","name":"support.constant.mathematical-symbols.scss"},"constant_optional":{"match":"!optional","name":"keyword.other.optional.scss"},"constant_sass_functions":{"begin":"(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:|svg-)gradient|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate[XY])(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"flow_control":{"patterns":[{"include":"#at_rule_if"},{"include":"#at_rule_else"},{"include":"#at_rule_warn"},{"include":"#at_rule_for"},{"include":"#at_rule_while"},{"include":"#at_rule_each"},{"include":"#at_rule_return"}]},"function_attributes":{"patterns":[{"match":":","name":"punctuation.separator.key-value.scss"},{"include":"#general"},{"include":"#property_values"},{"match":"[;=?@{}]","name":"invalid.illegal.scss"}]},"functions":{"patterns":[{"begin":"([-\\\\w]+)(\\\\()\\\\s*","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},{"match":"([-\\\\w]+)","name":"support.function.misc.scss"}]},"general":{"patterns":[{"include":"#variable"},{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"}]},"interpolation":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.interpolation.begin.bracket.curly.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.bracket.curly.scss"}},"name":"variable.interpolation.scss","patterns":[{"include":"#variable"},{"include":"#property_values"}]},"logical_operators":{"match":"\\\\b(not|or|and)\\\\b","name":"keyword.operator.logical.scss"},"map":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.map.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.map.end.bracket.round.scss"}},"name":"meta.definition.variable.map.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"captures":{"1":{"name":"support.type.map.key.scss"},"2":{"name":"punctuation.separator.key-value.scss"}},"match":"\\\\b([-\\\\w]+)\\\\s*(:)"},{"match":",","name":"punctuation.separator.delimiter.scss"},{"include":"#map"},{"include":"#variable"},{"include":"#property_values"}]},"operators":{"match":"[-*+/](?!\\\\s*[-*+/])","name":"keyword.operator.css"},"parameters":{"patterns":[{"include":"#variable"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.scss"}},"patterns":[{"include":"#function_attributes"}]},{"include":"#property_values"},{"include":"#comment_block"},{"match":"[^\\\\t \\"'),]+","name":"variable.parameter.url.scss"},{"match":",","name":"punctuation.separator.delimiter.scss"}]},"parent_selector_suffix":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(?<=&)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|[$}])+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.parent-selector-suffix.css"},"properties":{"patterns":[{"begin":"(?\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*|;)","name":"entity.other.attribute-name.class.css"},"selector_custom":{"match":"\\\\b([0-9A-Za-z]+(-[0-9A-Za-z]+)+)(?=\\\\.|\\\\s++[^:]|\\\\s*[,\\\\[{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-((?:|last-)(?:child|of-type))|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\\\([0-9A-Za-z]*\\\\))?)","name":"entity.name.tag.custom.scss"},"selector_id":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(#)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)(?=$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.id.css"},"selector_placeholder":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(%)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.\\\\$|[$}])+)(?=;|$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.placeholder.css"},"selector_pseudo_class":{"patterns":[{"begin":"((:)\\\\bnth-(?:|last-)(?:child|of-type))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.definition.pseudo-class.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.pseudo-class.end.bracket.round.css"}},"patterns":[{"include":"#interpolation"},{"match":"\\\\d+","name":"constant.numeric.css"},{"match":"(?:(?<=\\\\d)n|\\\\b(n|even|odd))\\\\b","name":"constant.other.scss"},{"match":"\\\\w+","name":"invalid.illegal.scss"}]},{"include":"source.css#pseudo-classes"},{"include":"source.css#pseudo-elements"},{"include":"source.css#functional-pseudo-classes"}]},"selectors":{"patterns":[{"include":"source.css#tag-names"},{"include":"#selector_custom"},{"include":"#selector_class"},{"include":"#selector_id"},{"include":"#selector_pseudo_class"},{"include":"#tag_wildcard"},{"include":"#tag_parent_reference"},{"include":"source.css#pseudo-elements"},{"include":"#selector_attribute"},{"include":"#selector_placeholder"},{"include":"#parent_selector_suffix"}]},"string_double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"string_single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"tag_parent_reference":{"match":"&","name":"entity.name.tag.reference.scss"},"tag_wildcard":{"match":"\\\\*","name":"entity.name.tag.wildcard.scss"},"variable":{"patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"variable_setting":{"begin":"(?=\\\\$[-\\\\w]+\\\\s*:)","contentName":"meta.definition.variable.scss","end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"match":"\\\\$[-\\\\w]+(?=\\\\s*:)","name":"variable.scss"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.key-value.scss"}},"end":"(?=;)","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"include":"#map"},{"include":"#property_values"},{"include":"#variable"},{"match":",","name":"punctuation.separator.delimiter.scss"}]}]},"variables":{"patterns":[{"captures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"variable.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\.)(\\\\$[-\\\\w]+)\\\\b"},{"match":"(\\\\$|--)[-0-9A-Z_a-z]+\\\\b","name":"variable.scss"}]}},"scopeName":"source.css.scss","embeddedLangs":["css"]}`)),t=[...e,n];export{t}; diff --git a/docs/assets/sdbl-B0Yf9V5G.js b/docs/assets/sdbl-B0Yf9V5G.js new file mode 100644 index 0000000..5507ec4 --- /dev/null +++ b/docs/assets/sdbl-B0Yf9V5G.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"1C (Query)","fileTypes":["sdbl","query"],"firstLineMatch":"(?i)\u0412\u044B\u0431\u0440\u0430\u0442\u044C|Select(\\\\s+\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043D\u044B\u0435|\\\\s+Allowed)?(\\\\s+\u0420\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0435|\\\\s+Distinct)?(\\\\s+\u041F\u0435\u0440\u0432\u044B\u0435|\\\\s+Top)?.*","name":"sdbl","patterns":[{"match":"^(\\\\s*//.*)$","name":"comment.line.double-slash.sdbl"},{"begin":"//","end":"$","name":"comment.line.double-slash.sdbl"},{"begin":"\\"","end":"\\"(?!\\")","name":"string.quoted.double.sdbl","patterns":[{"match":"\\"\\"","name":"constant.character.escape.sdbl"},{"match":"^(\\\\s*//.*)$","name":"comment.line.double-slash.sdbl"}]},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041D\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E|Undefined|\u0418\u0441\u0442\u0438\u043D\u0430|True|\u041B\u043E\u0436\u044C|False|NULL)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"constant.language.sdbl"},{"match":"(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\\\\d+\\\\.?\\\\d*)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"constant.numeric.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0412\u044B\u0431\u043E\u0440|Case|\u041A\u043E\u0433\u0434\u0430|When|\u0422\u043E\u0433\u0434\u0430|Then|\u0418\u043D\u0430\u0447\u0435|Else|\u041A\u043E\u043D\u0435\u0446|End)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"keyword.control.conditional.sdbl"},{"match":"(?i)(?=|[<=>]","name":"keyword.operator.comparison.sdbl"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.sdbl"},{"match":"([,;])","name":"keyword.operator.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0412\u044B\u0431\u0440\u0430\u0442\u044C|Select|\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043D\u044B\u0435|Allowed|\u0420\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0435|Distinct|\u041F\u0435\u0440\u0432\u044B\u0435|Top|\u041A\u0430\u043A|As|\u041F\u0443\u0441\u0442\u0430\u044F\u0422\u0430\u0431\u043B\u0438\u0446\u0430|EmptyTable|\u041F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C|Into|\u0423\u043D\u0438\u0447\u0442\u043E\u0436\u0438\u0442\u044C|Drop|\u0418\u0437|From|((\u041B\u0435\u0432\u043E\u0435|Left|\u041F\u0440\u0430\u0432\u043E\u0435|Right|\u041F\u043E\u043B\u043D\u043E\u0435|Full)\\\\s+(\u0412\u043D\u0435\u0448\u043D\u0435\u0435\\\\s+|Outer\\\\s+)?\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435|Join)|((\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0435\u0435|Inner)\\\\s+\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435|Join)|\u0413\u0434\u0435|Where|(\u0421\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C\\\\s+\u041F\u043E(\\\\s+\u0413\u0440\u0443\u043F\u043F\u0438\u0440\u0443\u044E\u0449\u0438\u043C\\\\s+\u041D\u0430\u0431\u043E\u0440\u0430\u043C)?)|(Group\\\\s+By(\\\\s+Grouping\\\\s+Set)?)|\u0418\u043C\u0435\u044E\u0449\u0438\u0435|Having|\u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0438\u0442\u044C(\\\\s+\u0412\u0441\u0435)?|Union(\\\\s+All)?|(\u0423\u043F\u043E\u0440\u044F\u0434\u043E\u0447\u0438\u0442\u044C\\\\s+\u041F\u043E)|(Order\\\\s+By)|\u0410\u0432\u0442\u043E\u0443\u043F\u043E\u0440\u044F\u0434\u043E\u0447\u0438\u0432\u0430\u043D\u0438\u0435|Autoorder|\u0418\u0442\u043E\u0433\u0438|Totals|\u041F\u043E(\\\\s+\u041E\u0431\u0449\u0438\u0435)?|By(\\\\s+Overall)?|(\u0422\u043E\u043B\u044C\u043A\u043E\\\\s+)?\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044F|(Only\\\\s+)?Hierarchy|\u041F\u0435\u0440\u0438\u043E\u0434\u0430\u043C\u0438|Periods|\u0418\u043D\u0434\u0435\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C|Index|\u0412\u044B\u0440\u0430\u0437\u0438\u0442\u044C|Cast|\u0412\u043E\u0437\u0440|Asc|\u0423\u0431\u044B\u0432|Desc|\u0414\u043B\u044F\\\\s+\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F|(For\\\\s+Update(\\\\s+Of)?)|\u0421\u043F\u0435\u0446\u0441\u0438\u043C\u0432\u043E\u043B|Escape|\u0421\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E\u041F\u043E|GroupedBy)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"keyword.control.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435|Value|\u0414\u0430\u0442\u0430\u0412\u0440\u0435\u043C\u044F|DateTime|\u0422\u0438\u043F|Type)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u041F\u043E\u0434\u0441\u0442\u0440\u043E\u043A\u0430|Substring|\u041D\u0420\u0435\u0433|Lower|\u0412\u0420\u0435\u0433|Upper|\u041B\u0435\u0432|Left|\u041F\u0440\u0430\u0432|Right|\u0414\u043B\u0438\u043D\u0430\u0421\u0442\u0440\u043E\u043A\u0438|StringLength|\u0421\u0442\u0440\u041D\u0430\u0439\u0442\u0438|StrFind|\u0421\u0442\u0440\u0417\u0430\u043C\u0435\u043D\u0438\u0442\u044C|StrReplace|\u0421\u043E\u043A\u0440\u041B\u041F|TrimAll|\u0421\u043E\u043A\u0440\u041B|TrimL|\u0421\u043E\u043A\u0440\u041F|TrimR)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0413\u043E\u0434|Year|\u041A\u0432\u0430\u0440\u0442\u0430\u043B|Quarter|\u041C\u0435\u0441\u044F\u0446|Month|\u0414\u0435\u043D\u044C\u0413\u043E\u0434\u0430|DayOfYear|\u0414\u0435\u043D\u044C|Day|\u041D\u0435\u0434\u0435\u043B\u044F|Week|\u0414\u0435\u043D\u044C\u041D\u0435\u0434\u0435\u043B\u0438|Weekday|\u0427\u0430\u0441|Hour|\u041C\u0438\u043D\u0443\u0442\u0430|Minute|\u0421\u0435\u043A\u0443\u043D\u0434\u0430|Second|\u041D\u0430\u0447\u0430\u043B\u043E\u041F\u0435\u0440\u0438\u043E\u0434\u0430|BeginOfPeriod|\u041A\u043E\u043D\u0435\u0446\u041F\u0435\u0440\u0438\u043E\u0434\u0430|EndOfPeriod|\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C\u041A\u0414\u0430\u0442\u0435|DateAdd|\u0420\u0430\u0437\u043D\u043E\u0441\u0442\u044C\u0414\u0430\u0442|DateDiff|\u041F\u043E\u043B\u0443\u0433\u043E\u0434\u0438\u0435|HalfYear|\u0414\u0435\u043A\u0430\u0434\u0430|TenDays)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(ACOS|COS|ASIN|SIN|ATAN|TAN|EXP|POW|LOG|LOG10|\u0426\u0435\u043B|Int|\u041E\u043A\u0440|Round|SQRT)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0421\u0443\u043C\u043C\u0430|Sum|\u0421\u0440\u0435\u0434\u043D\u0435\u0435|Avg|\u041C\u0438\u043D\u0438\u043C\u0443\u043C|Min|\u041C\u0430\u043A\u0441\u0438\u043C\u0443\u043C|Max|\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E|Count)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w]|^)(\u0415\u0441\u0442\u044CNULL|IsNULL|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435|Presentation|\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u0421\u0441\u044B\u043B\u043A\u0438|RefPresentation|\u0422\u0438\u043F\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u044F|ValueType|\u0410\u0432\u0442\u043E\u043D\u043E\u043C\u0435\u0440\u0417\u0430\u043F\u0438\u0441\u0438|RecordAutoNumber|\u0420\u0430\u0437\u043C\u0435\u0440\u0425\u0440\u0430\u043D\u0438\u043C\u044B\u0445\u0414\u0430\u043D\u043D\u044B\u0445|StoredDataSize|\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0439\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440|UUID)(?=\\\\()","name":"support.function.sdbl"},{"match":"(?i)(?<=[^.\u0430-\u044F\u0451\\\\w])(\u0427\u0438\u0441\u043B\u043E|Number|\u0421\u0442\u0440\u043E\u043A\u0430|String|\u0414\u0430\u0442\u0430|Date|\u0411\u0443\u043B\u0435\u0432\u043E|Boolean)(?=[^.\u0430-\u044F\u0451\\\\w]|$)","name":"support.type.sdbl"},{"match":"(&[\u0430-\u044F\u0451\\\\w]+)","name":"variable.parameter.sdbl"}],"scopeName":"source.sdbl","aliases":["1c-query"]}'))];export{e as t}; diff --git a/docs/assets/sdbl-v_PBVpFd.js b/docs/assets/sdbl-v_PBVpFd.js new file mode 100644 index 0000000..d2f9dc9 --- /dev/null +++ b/docs/assets/sdbl-v_PBVpFd.js @@ -0,0 +1 @@ +import{t}from"./sdbl-B0Yf9V5G.js";export{t as default}; diff --git a/docs/assets/secrets-panel-CaBDi8LW.js b/docs/assets/secrets-panel-CaBDi8LW.js new file mode 100644 index 0000000..7d79d24 --- /dev/null +++ b/docs/assets/secrets-panel-CaBDi8LW.js @@ -0,0 +1 @@ +import{s as g}from"./chunk-LvLJmgfZ.js";import"./useEvent-DlWF5OMa.js";import{t as k}from"./react-BGmjiNul.js";import"./react-dom-C9fstfnp.js";import{t as $}from"./compiler-runtime-DeeZ7FnK.js";import{t as M}from"./jsx-runtime-DN_bIXfG.js";import{t as E}from"./cn-C1rgT0yh.js";import{t as L}from"./check-CrAQug3q.js";import{t as A}from"./copy-gBVL4NN-.js";import{n as D}from"./DeferredRequestRegistry-B3BENoUa.js";import{t as P}from"./spinner-C1czjtp7.js";import{t as T}from"./plus-CHesBJpY.js";import{t as V}from"./badge-DAnNhy3O.js";import{t as q}from"./use-toast-Bzf3rpev.js";import"./Combination-D1TsGrBC.js";import{n as B}from"./ImperativeModal-BZvZlZQZ.js";import{t as F}from"./copy-DRhpWiOq.js";import{n as I}from"./error-banner-Cq4Yn1WZ.js";import{n as O}from"./useAsyncData-Dj1oqsrZ.js";import{a as R,i as S,n as G,o as w,r as _,t as H}from"./table-BatLo2vd.js";import{n as J,r as K,t as C}from"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import{t as Q}from"./empty-state-H6r25Wek.js";import{t as U}from"./request-registry-CxxnIU-g.js";import{n as W,t as X}from"./write-secret-modal-BL-FoIag.js";var z=$(),Y=g(k(),1),r=g(M(),1),Z=()=>{let e=(0,z.c)(27),{openModal:t,closeModal:n}=B(),l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0];let{data:s,isPending:x,error:f,refetch:m}=O(re,l);if(x){let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(P,{size:"medium",centered:!0}),e[1]=o):o=e[1],o}if(f){let o;return e[2]===f?o=e[3]:(o=(0,r.jsx)(I,{error:f}),e[2]=f,e[3]=o),o}let c;e[4]===s?c=e[5]:(c=s.filter(te).map(oe),e[4]=s,e[5]=c);let i=c;if(s.length===0){let o;return e[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)(Q,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:(0,r.jsx)(D,{})}),e[6]=o):o=e[6],o}let a;e[7]!==n||e[8]!==t||e[9]!==i||e[10]!==m?(a=()=>t((0,r.jsx)(X,{providerNames:i,onSuccess:()=>{m(),n()},onClose:n})),e[7]=n,e[8]=t,e[9]=i,e[10]=m,e[11]=a):a=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,r.jsx)(T,{className:"h-4 w-4"}),e[12]=b):b=e[12];let d;e[13]===a?d=e[14]:(d=(0,r.jsx)("div",{className:"flex justify-start h-8 border-b",children:(0,r.jsx)("button",{type:"button",className:"border-r px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:a,children:b})}),e[13]=a,e[14]=d);let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=(0,r.jsx)(R,{children:(0,r.jsxs)(w,{children:[(0,r.jsx)(S,{children:"Environment Variable"}),(0,r.jsx)(S,{children:"Source"}),(0,r.jsx)(S,{})]})}),e[15]=j):j=e[15];let p;e[16]===s?p=e[17]:(p=s.map(se),e[16]=s,e[17]=p);let h;e[18]===p?h=e[19]:(h=(0,r.jsxs)(H,{className:"overflow-auto flex-1 mb-16",children:[j,(0,r.jsx)(G,{children:p})]}),e[18]=p,e[19]=h);let u;e[20]!==d||e[21]!==h?(u=(0,r.jsx)(C,{defaultSize:50,minSize:30,maxSize:80,children:(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[d,h]})}),e[20]=d,e[21]=h,e[22]=u):u=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=(0,r.jsx)(K,{className:"w-1 bg-border hover:bg-primary/50 transition-colors"}),e[23]=v):v=e[23];let y;e[24]===Symbol.for("react.memo_cache_sentinel")?(y=(0,r.jsx)(C,{defaultSize:50,children:(0,r.jsx)("div",{})}),e[24]=y):y=e[24];let N;return e[25]===u?N=e[26]:(N=(0,r.jsxs)(J,{direction:"horizontal",className:"h-full",children:[u,v,y]}),e[25]=u,e[26]=N),N},ee=e=>{let t=(0,z.c)(9),{className:n,ariaLabel:l,onCopy:s}=e,[x,f]=Y.useState(!1),m;t[0]===s?m=t[1]:(m=()=>{s(),f(!0),setTimeout(()=>f(!1),1e3)},t[0]=s,t[1]=m);let c=m,i;t[2]===x?i=t[3]:(i=x?(0,r.jsx)(L,{className:"w-3 h-3 text-green-700 rounded"}):(0,r.jsx)(A,{className:"w-3 h-3 hover:bg-muted rounded"}),t[2]=x,t[3]=i);let a;return t[4]!==l||t[5]!==n||t[6]!==c||t[7]!==i?(a=(0,r.jsx)("button",{type:"button",className:n,onClick:c,"aria-label":l,children:i}),t[4]=l,t[5]=n,t[6]=c,t[7]=i,t[8]=a):a=t[8],a};async function re(){return W((await U.request({})).secrets)}function te(e){return e.provider!=="env"}function oe(e){return e.name}function se(e){return e.keys.map(t=>(0,r.jsxs)(w,{className:"group",children:[(0,r.jsx)(_,{children:t}),(0,r.jsx)(_,{children:e.provider!=="env"&&(0,r.jsx)(V,{variant:"outline",className:"select-none",children:e.name})}),(0,r.jsx)(_,{children:(0,r.jsx)(ee,{ariaLabel:`Copy ${t}`,onCopy:async()=>{await F(`os.environ["${t}"]`),q({title:"Copied to clipboard",description:`os.environ["${t}"] has been copied to your clipboard.`})},className:E("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${e.name}-${t}`))}export{Z as default}; diff --git a/docs/assets/select-D9lTzMzP.js b/docs/assets/select-D9lTzMzP.js new file mode 100644 index 0000000..5269507 --- /dev/null +++ b/docs/assets/select-D9lTzMzP.js @@ -0,0 +1 @@ +import{s as ge}from"./chunk-LvLJmgfZ.js";import{t as Ct}from"./react-BGmjiNul.js";import{t as jt}from"./react-dom-C9fstfnp.js";import{t as Ie}from"./compiler-runtime-DeeZ7FnK.js";import{r as A}from"./useEventListener-COkmyg1v.js";import{t as Nt}from"./jsx-runtime-DN_bIXfG.js";import{r as _t}from"./button-B8cGZzP5.js";import{n as kt,t as Z}from"./cn-C1rgT0yh.js";import{t as xe}from"./createLucideIcon-CW2xpJ57.js";import{t as Pt}from"./check-CrAQug3q.js";import{C as q,E as Rt,S as Te,_ as T,a as It,c as Tt,d as Dt,f as we,g as Et,i as Mt,m as Ot,r as Lt,s as At,t as Ht,u as Vt,w as k,y as Bt}from"./Combination-D1TsGrBC.js";import{a as Kt,c as De,i as Ft,n as Wt,o as zt,s as Ut}from"./dist-CBrDuocE.js";import{d as qt,t as Xt,u as Yt}from"./menu-items-9PZrU2e0.js";var ye=xe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ee=xe("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Me=xe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),d=ge(Ct(),1);function Oe(n){let i=d.useRef({value:n,previous:n});return d.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}function be(n,[i,e]){return Math.min(e,Math.max(i,n))}var Le=ge(jt(),1),c=ge(Nt(),1),Gt=[" ","Enter","ArrowUp","ArrowDown"],Zt=[" ","Enter"],$="Select",[le,ie,$t]=qt($),[re,Wr]=Rt($,[$t,De]),se=De(),[Jt,X]=re($),[Qt,er]=re($),Ae=n=>{let{__scopeSelect:i,children:e,open:t,defaultOpen:r,onOpenChange:a,value:o,defaultValue:l,onValueChange:s,dir:u,name:m,autoComplete:v,disabled:x,required:b,form:S}=n,p=se(i),[w,j]=d.useState(null),[f,g]=d.useState(null),[V,D]=d.useState(!1),P=Yt(u),[B,K]=Te({prop:t,defaultProp:r??!1,onChange:a,caller:$}),[F,O]=Te({prop:o,defaultProp:l,onChange:s,caller:$}),Q=d.useRef(null),W=w?S||!!w.closest("form"):!0,[E,z]=d.useState(new Set),U=Array.from(E).map(R=>R.props.value).join(";");return(0,c.jsx)(Ut,{...p,children:(0,c.jsxs)(Jt,{required:b,scope:i,trigger:w,onTriggerChange:j,valueNode:f,onValueNodeChange:g,valueNodeHasChildren:V,onValueNodeHasChildrenChange:D,contentId:we(),value:F,onValueChange:O,open:B,onOpenChange:K,dir:P,triggerPointerDownPosRef:Q,disabled:x,children:[(0,c.jsx)(le.Provider,{scope:i,children:(0,c.jsx)(Qt,{scope:n.__scopeSelect,onNativeOptionAdd:d.useCallback(R=>{z(H=>new Set(H).add(R))},[]),onNativeOptionRemove:d.useCallback(R=>{z(H=>{let L=new Set(H);return L.delete(R),L})},[]),children:e})}),W?(0,c.jsxs)(st,{"aria-hidden":!0,required:b,tabIndex:-1,name:m,autoComplete:v,value:F,onChange:R=>O(R.target.value),disabled:x,form:S,children:[F===void 0?(0,c.jsx)("option",{value:""}):null,Array.from(E)]},U):null]})})};Ae.displayName=$;var He="SelectTrigger",Ve=d.forwardRef((n,i)=>{let{__scopeSelect:e,disabled:t=!1,...r}=n,a=se(e),o=X(He,e),l=o.disabled||t,s=A(i,o.onTriggerChange),u=ie(e),m=d.useRef("touch"),[v,x,b]=ct(p=>{let w=u().filter(f=>!f.disabled),j=ut(w,p,w.find(f=>f.value===o.value));j!==void 0&&o.onValueChange(j.value)}),S=p=>{l||(o.onOpenChange(!0),b()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return(0,c.jsx)(Ft,{asChild:!0,...a,children:(0,c.jsx)(T.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":dt(o.value)?"":void 0,...r,ref:s,onClick:k(r.onClick,p=>{p.currentTarget.focus(),m.current!=="mouse"&&S(p)}),onPointerDown:k(r.onPointerDown,p=>{m.current=p.pointerType;let w=p.target;w.hasPointerCapture(p.pointerId)&&w.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:k(r.onKeyDown,p=>{let w=v.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&x(p.key),!(w&&p.key===" ")&&Gt.includes(p.key)&&(S(),p.preventDefault())})})})});Ve.displayName=He;var Be="SelectValue",Ke=d.forwardRef((n,i)=>{let{__scopeSelect:e,className:t,style:r,children:a,placeholder:o="",...l}=n,s=X(Be,e),{onValueNodeHasChildrenChange:u}=s,m=a!==void 0,v=A(i,s.onValueNodeChange);return q(()=>{u(m)},[u,m]),(0,c.jsx)(T.span,{...l,ref:v,style:{pointerEvents:"none"},children:dt(s.value)?(0,c.jsx)(c.Fragment,{children:o}):a})});Ke.displayName=Be;var tr="SelectIcon",Fe=d.forwardRef((n,i)=>{let{__scopeSelect:e,children:t,...r}=n;return(0,c.jsx)(T.span,{"aria-hidden":!0,...r,ref:i,children:t||"\u25BC"})});Fe.displayName=tr;var rr="SelectPortal",We=n=>(0,c.jsx)(Dt,{asChild:!0,...n});We.displayName=rr;var J="SelectContent",ze=d.forwardRef((n,i)=>{let e=X(J,n.__scopeSelect),[t,r]=d.useState();if(q(()=>{r(new DocumentFragment)},[]),!e.open){let a=t;return a?Le.createPortal((0,c.jsx)(Ue,{scope:n.__scopeSelect,children:(0,c.jsx)(le.Slot,{scope:n.__scopeSelect,children:(0,c.jsx)("div",{children:n.children})})}),a):null}return(0,c.jsx)(qe,{...n,ref:i})});ze.displayName=J;var M=10,[Ue,Y]=re(J),or="SelectContentImpl",nr=Bt("SelectContent.RemoveScroll"),qe=d.forwardRef((n,i)=>{let{__scopeSelect:e,position:t="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:a,onPointerDownOutside:o,side:l,sideOffset:s,align:u,alignOffset:m,arrowPadding:v,collisionBoundary:x,collisionPadding:b,sticky:S,hideWhenDetached:p,avoidCollisions:w,...j}=n,f=X(J,e),[g,V]=d.useState(null),[D,P]=d.useState(null),B=A(i,h=>V(h)),[K,F]=d.useState(null),[O,Q]=d.useState(null),W=ie(e),[E,z]=d.useState(!1),U=d.useRef(!1);d.useEffect(()=>{if(g)return Lt(g)},[g]),It();let R=d.useCallback(h=>{let[_,...C]=W().map(N=>N.ref.current),[y]=C.slice(-1),I=document.activeElement;for(let N of h)if(N===I||(N==null||N.scrollIntoView({block:"nearest"}),N===_&&D&&(D.scrollTop=0),N===y&&D&&(D.scrollTop=D.scrollHeight),N==null||N.focus(),document.activeElement!==I))return},[W,D]),H=d.useCallback(()=>R([K,g]),[R,K,g]);d.useEffect(()=>{E&&H()},[E,H]);let{onOpenChange:L,triggerPointerDownPosRef:G}=f;d.useEffect(()=>{if(g){let h={x:0,y:0},_=y=>{var I,N;h={x:Math.abs(Math.round(y.pageX)-(((I=G.current)==null?void 0:I.x)??0)),y:Math.abs(Math.round(y.pageY)-(((N=G.current)==null?void 0:N.y)??0))}},C=y=>{h.x<=10&&h.y<=10?y.preventDefault():g.contains(y.target)||L(!1),document.removeEventListener("pointermove",_),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",_),document.addEventListener("pointerup",C,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",C,{capture:!0})}}},[g,L,G]),d.useEffect(()=>{let h=()=>L(!1);return window.addEventListener("blur",h),window.addEventListener("resize",h),()=>{window.removeEventListener("blur",h),window.removeEventListener("resize",h)}},[L]);let[ae,ce]=ct(h=>{let _=W().filter(y=>!y.disabled),C=ut(_,h,_.find(y=>y.ref.current===document.activeElement));C&&setTimeout(()=>C.ref.current.focus())}),ue=d.useCallback((h,_,C)=>{let y=!U.current&&!C;(f.value!==void 0&&f.value===_||y)&&(F(h),y&&(U.current=!0))},[f.value]),ee=d.useCallback(()=>g==null?void 0:g.focus(),[g]),pe=d.useCallback((h,_,C)=>{let y=!U.current&&!C;(f.value!==void 0&&f.value===_||y)&&Q(h)},[f.value]),te=t==="popper"?Se:Xe,fe=te===Se?{side:l,sideOffset:s,align:u,alignOffset:m,arrowPadding:v,collisionBoundary:x,collisionPadding:b,sticky:S,hideWhenDetached:p,avoidCollisions:w}:{};return(0,c.jsx)(Ue,{scope:e,content:g,viewport:D,onViewportChange:P,itemRefCallback:ue,selectedItem:K,onItemLeave:ee,itemTextRefCallback:pe,focusSelectedItem:H,selectedItemText:O,position:t,isPositioned:E,searchRef:ae,children:(0,c.jsx)(Ht,{as:nr,allowPinchZoom:!0,children:(0,c.jsx)(Mt,{asChild:!0,trapped:f.open,onMountAutoFocus:h=>{h.preventDefault()},onUnmountAutoFocus:k(r,h=>{var _;(_=f.trigger)==null||_.focus({preventScroll:!0}),h.preventDefault()}),children:(0,c.jsx)(Ot,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:()=>f.onOpenChange(!1),children:(0,c.jsx)(te,{role:"listbox",id:f.contentId,"data-state":f.open?"open":"closed",dir:f.dir,onContextMenu:h=>h.preventDefault(),...j,...fe,onPlaced:()=>z(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:k(j.onKeyDown,h=>{let _=h.ctrlKey||h.altKey||h.metaKey;if(h.key==="Tab"&&h.preventDefault(),!_&&h.key.length===1&&ce(h.key),["ArrowUp","ArrowDown","Home","End"].includes(h.key)){let C=W().filter(y=>!y.disabled).map(y=>y.ref.current);if(["ArrowUp","End"].includes(h.key)&&(C=C.slice().reverse()),["ArrowUp","ArrowDown"].includes(h.key)){let y=h.target,I=C.indexOf(y);C=C.slice(I+1)}setTimeout(()=>R(C)),h.preventDefault()}})})})})})})});qe.displayName=or;var ar="SelectItemAlignedPosition",Xe=d.forwardRef((n,i)=>{let{__scopeSelect:e,onPlaced:t,...r}=n,a=X(J,e),o=Y(J,e),[l,s]=d.useState(null),[u,m]=d.useState(null),v=A(i,P=>m(P)),x=ie(e),b=d.useRef(!1),S=d.useRef(!0),{viewport:p,selectedItem:w,selectedItemText:j,focusSelectedItem:f}=o,g=d.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&p&&w&&j){let P=a.trigger.getBoundingClientRect(),B=u.getBoundingClientRect(),K=a.valueNode.getBoundingClientRect(),F=j.getBoundingClientRect();if(a.dir!=="rtl"){let C=F.left-B.left,y=K.left-C,I=P.left-y,N=P.width+I,me=Math.max(N,B.width),he=window.innerWidth-M,ve=be(y,[M,Math.max(M,he-me)]);l.style.minWidth=N+"px",l.style.left=ve+"px"}else{let C=B.right-F.right,y=window.innerWidth-K.right-C,I=window.innerWidth-P.right-y,N=P.width+I,me=Math.max(N,B.width),he=window.innerWidth-M,ve=be(y,[M,Math.max(M,he-me)]);l.style.minWidth=N+"px",l.style.right=ve+"px"}let O=x(),Q=window.innerHeight-M*2,W=p.scrollHeight,E=window.getComputedStyle(u),z=parseInt(E.borderTopWidth,10),U=parseInt(E.paddingTop,10),R=parseInt(E.borderBottomWidth,10),H=parseInt(E.paddingBottom,10),L=z+U+W+H+R,G=Math.min(w.offsetHeight*5,L),ae=window.getComputedStyle(p),ce=parseInt(ae.paddingTop,10),ue=parseInt(ae.paddingBottom,10),ee=P.top+P.height/2-M,pe=Q-ee,te=w.offsetHeight/2,fe=w.offsetTop+te,h=z+U+fe,_=L-h;if(h<=ee){let C=O.length>0&&w===O[O.length-1].ref.current;l.style.bottom="0px";let y=u.clientHeight-p.offsetTop-p.offsetHeight,I=h+Math.max(pe,te+(C?ue:0)+y+R);l.style.height=I+"px"}else{let C=O.length>0&&w===O[0].ref.current;l.style.top="0px";let y=Math.max(ee,z+p.offsetTop+(C?ce:0)+te)+_;l.style.height=y+"px",p.scrollTop=h-ee+p.offsetTop}l.style.margin=`${M}px 0`,l.style.minHeight=G+"px",l.style.maxHeight=Q+"px",t==null||t(),requestAnimationFrame(()=>b.current=!0)}},[x,a.trigger,a.valueNode,l,u,p,w,j,a.dir,t]);q(()=>g(),[g]);let[V,D]=d.useState();return q(()=>{u&&D(window.getComputedStyle(u).zIndex)},[u]),(0,c.jsx)(ir,{scope:e,contentWrapper:l,shouldExpandOnScrollRef:b,onScrollButtonChange:d.useCallback(P=>{P&&S.current===!0&&(g(),f==null||f(),S.current=!1)},[g,f]),children:(0,c.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:(0,c.jsx)(T.div,{...r,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Xe.displayName=ar;var lr="SelectPopperPosition",Se=d.forwardRef((n,i)=>{let{__scopeSelect:e,align:t="start",collisionPadding:r=M,...a}=n,o=se(e);return(0,c.jsx)(zt,{...o,...a,ref:i,align:t,collisionPadding:r,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=lr;var[ir,Ce]=re(J,{}),je="SelectViewport",Ye=d.forwardRef((n,i)=>{let{__scopeSelect:e,nonce:t,...r}=n,a=Y(je,e),o=Ce(je,e),l=A(i,a.onViewportChange),s=d.useRef(0);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),(0,c.jsx)(le.Slot,{scope:e,children:(0,c.jsx)(T.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:k(r.onScroll,u=>{let m=u.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:x}=o;if(x!=null&&x.current&&v){let b=Math.abs(s.current-m.scrollTop);if(b>0){let S=window.innerHeight-M*2,p=parseFloat(v.style.minHeight),w=parseFloat(v.style.height),j=Math.max(p,w);if(j0?V:0,v.style.justifyContent="flex-end")}}}s.current=m.scrollTop})})})]})});Ye.displayName=je;var Ge="SelectGroup",[sr,dr]=re(Ge),Ze=d.forwardRef((n,i)=>{let{__scopeSelect:e,...t}=n,r=we();return(0,c.jsx)(sr,{scope:e,id:r,children:(0,c.jsx)(T.div,{role:"group","aria-labelledby":r,...t,ref:i})})});Ze.displayName=Ge;var $e="SelectLabel",Je=d.forwardRef((n,i)=>{let{__scopeSelect:e,...t}=n,r=dr($e,e);return(0,c.jsx)(T.div,{id:r.id,...t,ref:i})});Je.displayName=$e;var de="SelectItem",[cr,Qe]=re(de),et=d.forwardRef((n,i)=>{let{__scopeSelect:e,value:t,disabled:r=!1,textValue:a,...o}=n,l=X(de,e),s=Y(de,e),u=l.value===t,[m,v]=d.useState(a??""),[x,b]=d.useState(!1),S=A(i,f=>{var g;return(g=s.itemRefCallback)==null?void 0:g.call(s,f,t,r)}),p=we(),w=d.useRef("touch"),j=()=>{r||(l.onValueChange(t),l.onOpenChange(!1))};if(t==="")throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,c.jsx)(cr,{scope:e,value:t,disabled:r,textId:p,isSelected:u,onItemTextChange:d.useCallback(f=>{v(g=>g||((f==null?void 0:f.textContent)??"").trim())},[]),children:(0,c.jsx)(le.ItemSlot,{scope:e,value:t,disabled:r,textValue:m,children:(0,c.jsx)(T.div,{role:"option","aria-labelledby":p,"data-highlighted":x?"":void 0,"aria-selected":u&&x,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...o,ref:S,onFocus:k(o.onFocus,()=>b(!0)),onBlur:k(o.onBlur,()=>b(!1)),onClick:k(o.onClick,()=>{w.current!=="mouse"&&j()}),onPointerUp:k(o.onPointerUp,()=>{w.current==="mouse"&&j()}),onPointerDown:k(o.onPointerDown,f=>{w.current=f.pointerType}),onPointerMove:k(o.onPointerMove,f=>{var g;w.current=f.pointerType,r?(g=s.onItemLeave)==null||g.call(s):w.current==="mouse"&&f.currentTarget.focus({preventScroll:!0})}),onPointerLeave:k(o.onPointerLeave,f=>{var g;f.currentTarget===document.activeElement&&((g=s.onItemLeave)==null||g.call(s))}),onKeyDown:k(o.onKeyDown,f=>{var g;((g=s.searchRef)==null?void 0:g.current)!==""&&f.key===" "||(Zt.includes(f.key)&&j(),f.key===" "&&f.preventDefault())})})})})});et.displayName=de;var oe="SelectItemText",tt=d.forwardRef((n,i)=>{let{__scopeSelect:e,className:t,style:r,...a}=n,o=X(oe,e),l=Y(oe,e),s=Qe(oe,e),u=er(oe,e),[m,v]=d.useState(null),x=A(i,j=>v(j),s.onItemTextChange,j=>{var f;return(f=l.itemTextRefCallback)==null?void 0:f.call(l,j,s.value,s.disabled)}),b=m==null?void 0:m.textContent,S=d.useMemo(()=>(0,c.jsx)("option",{value:s.value,disabled:s.disabled,children:b},s.value),[s.disabled,s.value,b]),{onNativeOptionAdd:p,onNativeOptionRemove:w}=u;return q(()=>(p(S),()=>w(S)),[p,w,S]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(T.span,{id:s.textId,...a,ref:x}),s.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Le.createPortal(a.children,o.valueNode):null]})});tt.displayName=oe;var rt="SelectItemIndicator",ot=d.forwardRef((n,i)=>{let{__scopeSelect:e,...t}=n;return Qe(rt,e).isSelected?(0,c.jsx)(T.span,{"aria-hidden":!0,...t,ref:i}):null});ot.displayName=rt;var Ne="SelectScrollUpButton",nt=d.forwardRef((n,i)=>{let e=Y(Ne,n.__scopeSelect),t=Ce(Ne,n.__scopeSelect),[r,a]=d.useState(!1),o=A(i,t.onScrollButtonChange);return q(()=>{if(e.viewport&&e.isPositioned){let l=function(){a(s.scrollTop>0)},s=e.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[e.viewport,e.isPositioned]),r?(0,c.jsx)(lt,{...n,ref:o,onAutoScroll:()=>{let{viewport:l,selectedItem:s}=e;l&&s&&(l.scrollTop-=s.offsetHeight)}}):null});nt.displayName=Ne;var _e="SelectScrollDownButton",at=d.forwardRef((n,i)=>{let e=Y(_e,n.__scopeSelect),t=Ce(_e,n.__scopeSelect),[r,a]=d.useState(!1),o=A(i,t.onScrollButtonChange);return q(()=>{if(e.viewport&&e.isPositioned){let l=function(){let u=s.scrollHeight-s.clientHeight;a(Math.ceil(s.scrollTop)s.removeEventListener("scroll",l)}},[e.viewport,e.isPositioned]),r?(0,c.jsx)(lt,{...n,ref:o,onAutoScroll:()=>{let{viewport:l,selectedItem:s}=e;l&&s&&(l.scrollTop+=s.offsetHeight)}}):null});at.displayName=_e;var lt=d.forwardRef((n,i)=>{let{__scopeSelect:e,onAutoScroll:t,...r}=n,a=Y("SelectScrollButton",e),o=d.useRef(null),l=ie(e),s=d.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return d.useEffect(()=>()=>s(),[s]),q(()=>{var u,m;(m=(u=l().find(v=>v.ref.current===document.activeElement))==null?void 0:u.ref.current)==null||m.scrollIntoView({block:"nearest"})},[l]),(0,c.jsx)(T.div,{"aria-hidden":!0,...r,ref:i,style:{flexShrink:0,...r.style},onPointerDown:k(r.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(t,50))}),onPointerMove:k(r.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),o.current===null&&(o.current=window.setInterval(t,50))}),onPointerLeave:k(r.onPointerLeave,()=>{s()})})}),ur="SelectSeparator",it=d.forwardRef((n,i)=>{let{__scopeSelect:e,...t}=n;return(0,c.jsx)(T.div,{"aria-hidden":!0,...t,ref:i})});it.displayName=ur;var ke="SelectArrow",pr=d.forwardRef((n,i)=>{let{__scopeSelect:e,...t}=n,r=se(e),a=X(ke,e),o=Y(ke,e);return a.open&&o.position==="popper"?(0,c.jsx)(Kt,{...r,...t,ref:i}):null});pr.displayName=ke;var fr="SelectBubbleInput",st=d.forwardRef(({__scopeSelect:n,value:i,...e},t)=>{let r=d.useRef(null),a=A(t,r),o=Oe(i);return d.useEffect(()=>{let l=r.current;if(!l)return;let s=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(s,"value").set;if(o!==i&&u){let m=new Event("change",{bubbles:!0});u.call(l,i),l.dispatchEvent(m)}},[o,i]),(0,c.jsx)(T.select,{...e,style:{...Wt,...e.style},ref:a,defaultValue:i})});st.displayName=fr;function dt(n){return n===""||n===void 0}function ct(n){let i=Et(n),e=d.useRef(""),t=d.useRef(0),r=d.useCallback(o=>{let l=e.current+o;i(l),(function s(u){e.current=u,window.clearTimeout(t.current),u!==""&&(t.current=window.setTimeout(()=>s(""),1e3))})(l)},[i]),a=d.useCallback(()=>{e.current="",window.clearTimeout(t.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(t.current),[]),[e,r,a]}function ut(n,i,e){let t=i.length>1&&Array.from(i).every(l=>l===i[0])?i[0]:i,r=e?n.indexOf(e):-1,a=mr(n,Math.max(r,0));t.length===1&&(a=a.filter(l=>l!==e));let o=a.find(l=>l.textValue.toLowerCase().startsWith(t.toLowerCase()));return o===e?void 0:o}function mr(n,i){return n.map((e,t)=>n[(i+t)%n.length])}var hr=Ae,Pe=Ve,vr=Ke,pt=Fe,gr=We,ft=ze,xr=Ye,wr=Ze,mt=Je,ht=et,yr=tt,br=ot,Sr=nt,Cr=at,vt=it,jr=Ie();const Re=kt("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",{variants:{variant:{default:"shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid",ghost:"opacity-70 hover:opacity-100 focus:opacity-100"}},defaultVariants:{variant:"default"}});var gt=d.forwardRef((n,i)=>{let e=(0,jr.c)(12),t,r,a;e[0]===n?(t=e[1],r=e[2],a=e[3]):({className:r,children:t,...a}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=a);let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=_t.stopPropagation(),e[4]=o):o=e[4];let l;e[5]===r?l=e[6]:(l=Z(Re({}),r),e[5]=r,e[6]=l);let s;return e[7]!==t||e[8]!==a||e[9]!==i||e[10]!==l?(s=(0,c.jsx)("select",{ref:i,onClick:o,className:l,...a,children:t}),e[7]=t,e[8]=a,e[9]=i,e[10]=l,e[11]=s):s=e[11],s});gt.displayName="NativeSelect";var ne=Ie(),Nr=hr,_r=wr,kr=At(gr),Pr=vr,xt=d.forwardRef((n,i)=>{let e=(0,ne.c)(21),t,r,a,o,l,s;e[0]===n?(t=e[1],r=e[2],a=e[3],o=e[4],l=e[5],s=e[6]):({className:r,children:t,onClear:a,variant:s,hideChevron:l,...o}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=a,e[4]=o,e[5]=l,e[6]=s);let u=l===void 0?!1:l,m;e[7]!==r||e[8]!==s?(m=Z(Re({variant:s}),"mb-0",r),e[7]=r,e[8]=s,e[9]=m):m=e[9];let v;e[10]!==u||e[11]!==a?(v=a?(0,c.jsx)("span",{onPointerDown:S=>{S.preventDefault(),S.stopPropagation(),a()},children:(0,c.jsx)(Me,{className:"h-4 w-4 opacity-50 hover:opacity-90"})}):!u&&(0,c.jsx)(ye,{className:"h-4 w-4 opacity-50"}),e[10]=u,e[11]=a,e[12]=v):v=e[12];let x;e[13]===v?x=e[14]:(x=(0,c.jsx)(pt,{asChild:!0,children:v}),e[13]=v,e[14]=x);let b;return e[15]!==t||e[16]!==o||e[17]!==i||e[18]!==m||e[19]!==x?(b=(0,c.jsxs)(Pe,{ref:i,className:m,...o,children:[t,x]}),e[15]=t,e[16]=o,e[17]=i,e[18]=m,e[19]=x,e[20]=b):b=e[20],b});xt.displayName=Pe.displayName;var Rr=Tt(ft),wt=d.forwardRef((n,i)=>{let e=(0,ne.c)(21),t,r,a,o;e[0]===n?(t=e[1],r=e[2],a=e[3],o=e[4]):({className:r,children:t,position:o,...a}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=a,e[4]=o);let l=o===void 0?"popper":o,s=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",u;e[5]!==r||e[6]!==s?(u=Z("max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s,r),e[5]=r,e[6]=s,e[7]=u):u=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,c.jsx)(Sr,{className:"flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",children:(0,c.jsx)(Ee,{className:"h-4 w-4"})}),e[8]=m):m=e[8];let v=l==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)",x;e[9]===v?x=e[10]:(x=Z("p-1",v),e[9]=v,e[10]=x);let b;e[11]!==t||e[12]!==x?(b=(0,c.jsx)(xr,{className:x,children:t}),e[11]=t,e[12]=x,e[13]=b):b=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=(0,c.jsx)(Cr,{className:"flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",children:(0,c.jsx)(ye,{className:"h-4 w-4 opacity-50"})}),e[14]=S):S=e[14];let p;return e[15]!==l||e[16]!==a||e[17]!==i||e[18]!==u||e[19]!==b?(p=(0,c.jsx)(kr,{children:(0,c.jsx)(Vt,{children:(0,c.jsxs)(Rr,{ref:i,className:u,position:l,...a,children:[m,b,S]})})}),e[15]=l,e[16]=a,e[17]=i,e[18]=u,e[19]=b,e[20]=p):p=e[20],p});wt.displayName=ft.displayName;var yt=d.forwardRef((n,i)=>{let e=(0,ne.c)(9),t,r;e[0]===n?(t=e[1],r=e[2]):({className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r);let a;e[3]===t?a=e[4]:(a=Z("px-2 py-1.5 text-sm font-semibold",t),e[3]=t,e[4]=a);let o;return e[5]!==r||e[6]!==i||e[7]!==a?(o=(0,c.jsx)(mt,{ref:i,className:a,...r}),e[5]=r,e[6]=i,e[7]=a,e[8]=o):o=e[8],o});yt.displayName=mt.displayName;var bt=d.forwardRef((n,i)=>{let e=(0,ne.c)(17),t,r,a,o;e[0]===n?(t=e[1],r=e[2],a=e[3],o=e[4]):({className:r,children:t,subtitle:o,...a}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=a,e[4]=o);let l;e[5]===r?l=e[6]:(l=Z("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground",Xt,r),e[5]=r,e[6]=l);let s;e[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,c.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,c.jsx)(br,{children:(0,c.jsx)(Pt,{className:"h-3 w-3"})})}),e[7]=s):s=e[7];let u=typeof t=="string"?void 0:!0,m;e[8]!==t||e[9]!==u?(m=(0,c.jsx)(yr,{asChild:u,className:"flex w-full flex-1",children:t}),e[8]=t,e[9]=u,e[10]=m):m=e[10];let v;return e[11]!==a||e[12]!==i||e[13]!==o||e[14]!==l||e[15]!==m?(v=(0,c.jsxs)(ht,{ref:i,className:l,...a,children:[s,m,o]}),e[11]=a,e[12]=i,e[13]=o,e[14]=l,e[15]=m,e[16]=v):v=e[16],v});bt.displayName=ht.displayName;var St=d.forwardRef((n,i)=>{let e=(0,ne.c)(9),t,r;e[0]===n?(t=e[1],r=e[2]):({className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r);let a;e[3]===t?a=e[4]:(a=Z("-mx-1 my-1 h-px bg-muted",t),e[3]=t,e[4]=a);let o;return e[5]!==r||e[6]!==i||e[7]!==a?(o=(0,c.jsx)(vt,{ref:i,className:a,...r}),e[5]=r,e[6]=i,e[7]=a,e[8]=o):o=e[8],o});St.displayName=vt.displayName;export{ye as _,yt as a,Pr as c,pt as d,Pe as f,Ee as g,Me as h,bt as i,gt as l,Oe as m,wt as n,St as o,be as p,_r as r,xt as s,Nr as t,Re as u}; diff --git a/docs/assets/sequenceDiagram-WL72ISMW-CiYSca0h.js b/docs/assets/sequenceDiagram-WL72ISMW-CiYSca0h.js new file mode 100644 index 0000000..08971f7 --- /dev/null +++ b/docs/assets/sequenceDiagram-WL72ISMW-CiYSca0h.js @@ -0,0 +1,145 @@ +var wt;import"./purify.es-N-2faAGj.js";import{u as Wt}from"./src-Bp_72rVO.js";import{g as F,p as re}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as x,r as G}from"./src-faGJHwXX.js";import{B as se,C as we,E as Ie,H as Le,I as Nt,N as ie,O as q,U as ke,_ as Pe,a as _e,b as et,c as Ae,i as Lt,r as ve,s as L,v as Ne,y as qt,z as Me}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{n as Oe,t as Se}from"./chunk-MI3HLSF2-CXMqGP2w.js";import{t as De}from"./dist-BA8xhrl2.js";import{i as $e,n as zt,o as ct,r as Ht,s as Ut,t as Re}from"./chunk-TZMSLE5B-BiNEgT46.js";import{t as Ce}from"./chunk-QZHKN3VN-uHzoVf3q.js";var oe=De(),jt=(function(){var e=x(function(I,A,_,f){for(_||(_={}),f=I.length;f--;_[I[f]]=A);return _},"o"),t=[1,2],o=[1,3],a=[1,4],s=[2,4],i=[1,9],c=[1,11],p=[1,13],n=[1,14],r=[1,16],d=[1,17],m=[1,18],u=[1,24],y=[1,25],E=[1,26],w=[1,27],P=[1,28],O=[1,29],N=[1,30],S=[1,31],$=[1,32],Y=[1,33],U=[1,34],X=[1,35],at=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],J=[1,42],j=[1,43],Z=[1,44],rt=[1,45],D=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],k=[2,71],K=[4,5,16,50,52,53],Q=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],M=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],nt=[69,70,71],lt=[1,127],Ct={trace:x(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:x(function(I,A,_,f,C,h,It){var g=h.length-1;switch(C){case 3:return f.apply(h[g]),h[g];case 4:case 9:this.$=[];break;case 5:case 10:h[g-1].push(h[g]),this.$=h[g-1];break;case 6:case 7:case 11:case 12:this.$=h[g];break;case 8:case 13:this.$=[];break;case 15:h[g].type="createParticipant",this.$=h[g];break;case 16:h[g-1].unshift({type:"boxStart",boxData:f.parseBoxData(h[g-2])}),h[g-1].push({type:"boxEnd",boxText:h[g-2]}),this.$=h[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-2]),sequenceIndexStep:Number(h[g-1]),sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:f.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:f.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-1].actor};break;case 29:f.setDiagramTitle(h[g].substring(6)),this.$=h[g].substring(6);break;case 30:f.setDiagramTitle(h[g].substring(7)),this.$=h[g].substring(7);break;case 31:this.$=h[g].trim(),f.setAccTitle(this.$);break;case 32:case 33:this.$=h[g].trim(),f.setAccDescription(this.$);break;case 34:h[g-1].unshift({type:"loopStart",loopText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.LOOP_START}),h[g-1].push({type:"loopEnd",loopText:h[g-2],signalType:f.LINETYPE.LOOP_END}),this.$=h[g-1];break;case 35:h[g-1].unshift({type:"rectStart",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_START}),h[g-1].push({type:"rectEnd",color:f.parseMessage(h[g-2]),signalType:f.LINETYPE.RECT_END}),this.$=h[g-1];break;case 36:h[g-1].unshift({type:"optStart",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_START}),h[g-1].push({type:"optEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.OPT_END}),this.$=h[g-1];break;case 37:h[g-1].unshift({type:"altStart",altText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.ALT_START}),h[g-1].push({type:"altEnd",signalType:f.LINETYPE.ALT_END}),this.$=h[g-1];break;case 38:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 39:h[g-1].unshift({type:"parStart",parText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.PAR_OVER_START}),h[g-1].push({type:"parEnd",signalType:f.LINETYPE.PAR_END}),this.$=h[g-1];break;case 40:h[g-1].unshift({type:"criticalStart",criticalText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.CRITICAL_START}),h[g-1].push({type:"criticalEnd",signalType:f.LINETYPE.CRITICAL_END}),this.$=h[g-1];break;case 41:h[g-1].unshift({type:"breakStart",breakText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_START}),h[g-1].push({type:"breakEnd",optText:f.parseMessage(h[g-2]),signalType:f.LINETYPE.BREAK_END}),this.$=h[g-1];break;case 43:this.$=h[g-3].concat([{type:"option",optionText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.CRITICAL_OPTION},h[g]]);break;case 45:this.$=h[g-3].concat([{type:"and",parText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.PAR_AND},h[g]]);break;case 47:this.$=h[g-3].concat([{type:"else",altText:f.parseMessage(h[g-1]),signalType:f.LINETYPE.ALT_ELSE},h[g]]);break;case 48:h[g-3].draw="participant",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 49:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 50:h[g-3].draw="actor",h[g-3].type="addParticipant",h[g-3].description=f.parseMessage(h[g-1]),this.$=h[g-3];break;case 51:h[g-1].draw="actor",h[g-1].type="addParticipant",this.$=h[g-1];break;case 52:h[g-1].type="destroyParticipant",this.$=h[g-1];break;case 53:h[g-1].draw="participant",h[g-1].type="addParticipant",this.$=h[g-1];break;case 54:this.$=[h[g-1],{type:"addNote",placement:h[g-2],actor:h[g-1].actor,text:h[g]}];break;case 55:h[g-2]=[].concat(h[g-1],h[g-1]).slice(0,2),h[g-2][0]=h[g-2][0].actor,h[g-2][1]=h[g-2][1].actor,this.$=[h[g-1],{type:"addNote",placement:f.PLACEMENT.OVER,actor:h[g-2].slice(0,2),text:h[g]}];break;case 56:this.$=[h[g-1],{type:"addLinks",actor:h[g-1].actor,text:h[g]}];break;case 57:this.$=[h[g-1],{type:"addALink",actor:h[g-1].actor,text:h[g]}];break;case 58:this.$=[h[g-1],{type:"addProperties",actor:h[g-1].actor,text:h[g]}];break;case 59:this.$=[h[g-1],{type:"addDetails",actor:h[g-1].actor,text:h[g]}];break;case 62:this.$=[h[g-2],h[g]];break;case 63:this.$=h[g];break;case 64:this.$=f.PLACEMENT.LEFTOF;break;case 65:this.$=f.PLACEMENT.RIGHTOF;break;case 66:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g],activate:!0},{type:"activeStart",signalType:f.LINETYPE.ACTIVE_START,actor:h[g-1].actor}];break;case 67:this.$=[h[g-4],h[g-1],{type:"addMessage",from:h[g-4].actor,to:h[g-1].actor,signalType:h[g-3],msg:h[g]},{type:"activeEnd",signalType:f.LINETYPE.ACTIVE_END,actor:h[g-4].actor}];break;case 68:this.$=[h[g-3],h[g-1],{type:"addMessage",from:h[g-3].actor,to:h[g-1].actor,signalType:h[g-2],msg:h[g]}];break;case 69:this.$={type:"addParticipant",actor:h[g-1],config:h[g]};break;case 70:this.$=h[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:h[g]};break;case 72:this.$=f.LINETYPE.SOLID_OPEN;break;case 73:this.$=f.LINETYPE.DOTTED_OPEN;break;case 74:this.$=f.LINETYPE.SOLID;break;case 75:this.$=f.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=f.LINETYPE.DOTTED;break;case 77:this.$=f.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=f.LINETYPE.SOLID_CROSS;break;case 79:this.$=f.LINETYPE.DOTTED_CROSS;break;case 80:this.$=f.LINETYPE.SOLID_POINT;break;case 81:this.$=f.LINETYPE.DOTTED_POINT;break;case 82:this.$=f.parseMessage(h[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,5]),{9:47,12:12,13:p,14:n,17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:D},{22:55,71:D},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:D},{22:75,71:D},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:D},{22:92,71:D},{22:93,71:D},{22:94,71:D},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],k),e(T,[2,6]),e(T,[2,15]),e(K,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(Q,s,{7:101}),e(Q,s,{7:102}),e(Q,s,{7:103}),e(M,s,{40:104,7:105}),e(Rt,s,{42:106,7:107}),e(Rt,s,{7:107,42:108}),e(Xt,s,{45:109,7:110}),e(Q,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],k,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:D},e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),e(nt,[2,79]),e(nt,[2,80]),e(nt,[2,81]),{22:123,71:D},{22:125,59:124,71:D},{71:[2,64]},{71:[2,65]},{57:126,86:lt},{57:128,86:lt},{57:129,86:lt},{57:130,86:lt},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,137],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,138],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,139],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,46],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,49:[1,141],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,44],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,48:[1,143],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[2,42],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,47:[1,146],50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{4:i,5:c,8:8,9:10,12:12,13:p,14:n,16:[1,147],17:15,18:r,21:d,22:40,23:m,24:19,25:20,26:21,27:22,28:23,29:u,30:y,31:E,33:w,35:P,36:O,37:N,38:S,39:$,41:Y,43:U,44:X,46:at,50:z,52:H,53:W,55:R,60:J,61:j,62:Z,63:rt,71:D},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:D},{22:152,71:D},{57:153,86:lt},{57:154,86:lt},{57:155,86:lt},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(K,[2,10]),{12:157,50:z,52:H,53:W},e(K,[2,12]),e(K,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:lt},{57:165,86:lt},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:D},e(K,[2,11]),e(M,s,{7:105,40:167}),e(Rt,s,{7:107,42:168}),e(Xt,s,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:x(function(I,A){if(A.recoverable)this.trace(I);else{var _=Error(I);throw _.hash=A,_}},"parseError"),parse:x(function(I){var A=this,_=[0],f=[],C=[null],h=[],It=this.table,g="",_t=0,Jt=0,Zt=0,be=2,Qt=1,Te=h.slice.call(arguments,1),V=Object.create(this.lexer),xt={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(xt.yy[Bt]=this.yy[Bt]);V.setInput(I,xt.yy),xt.yy.lexer=V,xt.yy.parser=this,V.yylloc===void 0&&(V.yylloc={});var Yt=V.yylloc;h.push(Yt);var fe=V.options&&V.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ee(it){_.length-=2*it,C.length-=it,h.length-=it}x(Ee,"popStack");function te(){var it=f.pop()||V.lex()||Qt;return typeof it!="number"&&(it instanceof Array&&(f=it,it=f.pop()),it=A.symbols_[it]||it),it}x(te,"lex");for(var tt,Vt,yt,st,Ft,Tt={},At,dt,ee,vt;;){if(yt=_[_.length-1],this.defaultActions[yt]?st=this.defaultActions[yt]:(tt??(tt=te()),st=It[yt]&&It[yt][tt]),st===void 0||!st.length||!st[0]){var ae="";for(At in vt=[],It[yt])this.terminals_[At]&&At>be&&vt.push("'"+this.terminals_[At]+"'");ae=V.showPosition?"Parse error on line "+(_t+1)+`: +`+V.showPosition()+` +Expecting `+vt.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":"Parse error on line "+(_t+1)+": Unexpected "+(tt==Qt?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(ae,{text:V.match,token:this.terminals_[tt]||tt,line:V.yylineno,loc:Yt,expected:vt})}if(st[0]instanceof Array&&st.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+tt);switch(st[0]){case 1:_.push(tt),C.push(V.yytext),h.push(V.yylloc),_.push(st[1]),tt=null,Vt?(tt=Vt,Vt=null):(Jt=V.yyleng,g=V.yytext,_t=V.yylineno,Yt=V.yylloc,Zt>0&&Zt--);break;case 2:if(dt=this.productions_[st[1]][1],Tt.$=C[C.length-dt],Tt._$={first_line:h[h.length-(dt||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(dt||1)].first_column,last_column:h[h.length-1].last_column},fe&&(Tt._$.range=[h[h.length-(dt||1)].range[0],h[h.length-1].range[1]]),Ft=this.performAction.apply(Tt,[g,Jt,_t,xt.yy,st[1],C,h].concat(Te)),Ft!==void 0)return Ft;dt&&(_=_.slice(0,-1*dt*2),C=C.slice(0,-1*dt),h=h.slice(0,-1*dt)),_.push(this.productions_[st[1]][0]),C.push(Tt.$),h.push(Tt._$),ee=It[_[_.length-2]][_[_.length-1]],_.push(ee);break;case 3:return!0}}return!0},"parse")};Ct.lexer=(function(){return{EOF:1,parseError:x(function(I,A){if(this.yy.parser)this.yy.parser.parseError(I,A);else throw Error(I)},"parseError"),setInput:x(function(I,A){return this.yy=A||this.yy||{},this._input=I,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:x(function(){var I=this._input[0];return this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I,I.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:x(function(I){var A=I.length,_=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_.length-1&&(this.yylineno-=_.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_?(_.length===f.length?this.yylloc.first_column:0)+f[f.length-_.length].length-_[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:x(function(I){this.unput(this.match.slice(I))},"less"),pastInput:x(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var I=this.pastInput(),A=Array(I.length+1).join("-");return I+this.upcomingInput()+` +`+A+"^"},"showPosition"),test_match:x(function(I,A){var _,f,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),f=I[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+I[0].length},this.yytext+=I[0],this.match+=I[0],this.matches=I,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(I[0].length),this.matched+=I[0],_=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var h in C)this[h]=C[h];return!1}return!1},"test_match"),next:x(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var I,A,_,f;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),h=0;hA[0].length)){if(A=_,f=h,this.options.backtrack_lexer){if(I=this.test_match(_,C[h]),I!==!1)return I;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(I=this.test_match(A,C[f]),I===!1?!1:I):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:x(function(){return this.next()||this.lex()},"lex"),begin:x(function(I){this.conditionStack.push(I)},"begin"),popState:x(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:x(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:x(function(I){return I=this.conditionStack.length-1-Math.abs(I||0),I>=0?this.conditionStack[I]:"INITIAL"},"topState"),pushState:x(function(I){this.begin(I)},"pushState"),stateStackSize:x(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:x(function(I,A,_,f){switch(_){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("CONFIG"),73;case 8:return 74;case 9:return this.popState(),this.popState(),75;case 10:return A.yytext=A.yytext.trim(),71;case 11:return A.yytext=A.yytext.trim(),this.begin("ALIAS"),71;case 12:return this.begin("LINE"),14;case 13:return this.begin("ID"),50;case 14:return this.begin("ID"),52;case 15:return 13;case 16:return this.begin("ID"),53;case 17:return A.yytext=A.yytext.trim(),this.begin("ALIAS"),71;case 18:return this.popState(),this.popState(),this.begin("LINE"),51;case 19:return this.popState(),this.popState(),5;case 20:return this.begin("LINE"),36;case 21:return this.begin("LINE"),37;case 22:return this.begin("LINE"),38;case 23:return this.begin("LINE"),39;case 24:return this.begin("LINE"),49;case 25:return this.begin("LINE"),41;case 26:return this.begin("LINE"),43;case 27:return this.begin("LINE"),48;case 28:return this.begin("LINE"),44;case 29:return this.begin("LINE"),47;case 30:return this.begin("LINE"),46;case 31:return this.popState(),15;case 32:return 16;case 33:return 66;case 34:return 67;case 35:return 60;case 36:return 61;case 37:return 62;case 38:return 63;case 39:return 58;case 40:return 55;case 41:return this.begin("ID"),21;case 42:return this.begin("ID"),23;case 43:return 29;case 44:return 30;case 45:return this.begin("acc_title"),31;case 46:return this.popState(),"acc_title_value";case 47:return this.begin("acc_descr"),33;case 48:return this.popState(),"acc_descr_value";case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 6;case 53:return 18;case 54:return 20;case 55:return 65;case 56:return 5;case 57:return A.yytext=A.yytext.trim(),71;case 58:return 78;case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 76;case 63:return 77;case 64:return 82;case 65:return 83;case 66:return 84;case 67:return 85;case 68:return 86;case 69:return 86;case 70:return 69;case 71:return 70;case 72:return 5;case 73:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},ID:{rules:[2,3,7,10,11,17],inclusive:!1},ALIAS:{rules:[2,3,18,19],inclusive:!1},LINE:{rules:[2,3,31],inclusive:!1},CONFIG:{rules:[8,9],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:!0}}}})();function Pt(){this.yy={}}return x(Pt,"Parser"),Pt.prototype=Ct,Ct.Parser=Pt,new Pt})();jt.parser=jt;var Be=jt,Ye={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},Ve={FILLED:0,OPEN:1},Fe={LEFTOF:0,RIGHTOF:1,OVER:2},Mt={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},We=(wt=class{constructor(){this.state=new Ce(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=se,this.setAccDescription=Me,this.setDiagramTitle=ke,this.getAccTitle=Ne,this.getAccDescription=Pe,this.getDiagramTitle=we,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(et().wrap),this.LINETYPE=Ye,this.ARROWTYPE=Ve,this.PLACEMENT=Fe}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,o,a,s,i){let c=this.state.records.currentBox,p;if(i!==void 0){let r;r=i.includes(` +`)?i+` +`:`{ +`+i+` +}`,p=Oe(r,{schema:Se})}s=(p==null?void 0:p.type)??s;let n=this.state.records.actors.get(t);if(n){if(this.state.records.currentBox&&n.box&&this.state.records.currentBox!==n.box)throw Error(`A same participant should only be defined in one Box: ${n.name} can't be in '${n.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(c=n.box?n.box:this.state.records.currentBox,n.box=c,n&&o===n.name&&a==null)return}if((a==null?void 0:a.text)??(a={text:o,type:s}),(s==null||a.text==null)&&(a={text:o,type:s}),this.state.records.actors.set(t,{box:c,name:o,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s??"participant"}),this.state.records.prevActor){let r=this.state.records.actors.get(this.state.records.prevActor);r&&(r.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let o,a=0;if(!t)return 0;for(o=0;o>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:o,message:(a==null?void 0:a.text)??"",wrap:(a==null?void 0:a.wrap)??this.autoWrap(),type:s,activate:i}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0)return{};t=t.trim();let o=/^:?wrap:/.exec(t)===null?/^:?nowrap:/.exec(t)===null?void 0:!1:!0;return{cleanedText:(o===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:o}}autoWrap(){var t;return this.state.records.wrapEnabled===void 0?((t=et().sequence)==null?void 0:t.wrap)??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),_e()}parseMessage(t){let o=t.trim(),{wrap:a,cleanedText:s}=this.extractWrap(o),i={text:s,wrap:a};return G.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let o=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=o!=null&&o[1]?o[1].trim():"transparent",s=o!=null&&o[2]?o[2].trim():void 0;if(window!=null&&window.CSS)window.CSS.supports("color",a)||(a="transparent",s=t.trim());else{let p=new Option().style;p.color=a,p.color!==a&&(a="transparent",s=t.trim())}let{wrap:i,cleanedText:c}=this.extractWrap(s);return{text:c?Nt(c,et()):void 0,color:a,wrap:i}}addNote(t,o,a){let s={actor:t,placement:o,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(s),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:o})}addLinks(t,o){let a=this.getActor(t);try{let s=Nt(o.text,et());s=s.replace(/=/g,"="),s=s.replace(/&/g,"&");let i=JSON.parse(s);this.insertLinks(a,i)}catch(s){G.error("error while parsing actor link text",s)}}addALink(t,o){let a=this.getActor(t);try{let s={},i=Nt(o.text,et()),c=i.indexOf("@");i=i.replace(/=/g,"="),i=i.replace(/&/g,"&");let p=i.slice(0,c-1).trim();s[p]=i.slice(c+1).trim(),this.insertLinks(a,s)}catch(s){G.error("error while parsing actor link text",s)}}insertLinks(t,o){if(t.links==null)t.links=o;else for(let a in o)t.links[a]=o[a]}addProperties(t,o){let a=this.getActor(t);try{let s=Nt(o.text,et()),i=JSON.parse(s);this.insertProperties(a,i)}catch(s){G.error("error while parsing actor properties text",s)}}insertProperties(t,o){if(t.properties==null)t.properties=o;else for(let a in o)t.properties[a]=o[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,o){let a=this.getActor(t),s=document.getElementById(o.text);try{let i=s.innerHTML,c=JSON.parse(i);c.properties&&this.insertProperties(a,c.properties),c.links&&this.insertLinks(a,c.links)}catch(i){G.error("error while parsing actor details text",i)}}getActorProperty(t,o){if((t==null?void 0:t.properties)!==void 0)return t.properties[o]}apply(t){if(Array.isArray(t))t.forEach(o=>{this.apply(o)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":se(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}getConfig(){return et().sequence}},x(wt,"SequenceDB"),wt),qe=x(e=>`.actor { + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; + } + + text.actor > tspan { + fill: ${e.actorTextColor}; + stroke: none; + } + + .actor-line { + stroke: ${e.actorLineColor}; + } + + .innerArc { + stroke-width: 1.5; + stroke-dasharray: none; + } + + .messageLine0 { + stroke-width: 1.5; + stroke-dasharray: none; + stroke: ${e.signalColor}; + } + + .messageLine1 { + stroke-width: 1.5; + stroke-dasharray: 2, 2; + stroke: ${e.signalColor}; + } + + #arrowhead path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .sequenceNumber { + fill: ${e.sequenceNumberColor}; + } + + #sequencenumber { + fill: ${e.signalColor}; + } + + #crosshead path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .messageText { + fill: ${e.signalTextColor}; + stroke: none; + } + + .labelBox { + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBkgColor}; + } + + .labelText, .labelText > tspan { + fill: ${e.labelTextColor}; + stroke: none; + } + + .loopText, .loopText > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + + .loopLine { + stroke-width: 2px; + stroke-dasharray: 2, 2; + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBorderColor}; + } + + .note { + //stroke: #decc93; + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + } + + .noteText, .noteText > tspan { + fill: ${e.noteTextColor}; + stroke: none; + } + + .activation0 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation1 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation2 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .actorPopupMenu { + position: absolute; + } + + .actorPopupMenuPanel { + position: absolute; + fill: ${e.actorBkg}; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +} + .actor-man line { + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; + } + .actor-man circle, line { + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; + stroke-width: 2px; + } + +`,"getStyles"),mt=36,pt="actor-top",gt="actor-bottom",Ot="actor-box",ut="actor-man",kt=x(function(e,t){return $e(e,t)},"drawRect"),ze=x(function(e,t,o,a,s){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let i=t.links,c=t.actorCnt,p=t.rectData;var n="none";s&&(n="block !important");let r=e.append("g");r.attr("id","actor"+c+"_popup"),r.attr("class","actorPopupMenu"),r.attr("display",n);var d="";p.class!==void 0&&(d=" "+p.class);let m=p.width>o?p.width:o,u=r.append("rect");if(u.attr("class","actorPopupMenuPanel"+d),u.attr("x",p.x),u.attr("y",p.height),u.attr("fill",p.fill),u.attr("stroke",p.stroke),u.attr("width",m),u.attr("height",p.height),u.attr("rx",p.rx),u.attr("ry",p.ry),i!=null){var y=20;for(let P in i){var E=r.append("a"),w=(0,oe.sanitizeUrl)(i[P]);E.attr("xlink:href",w),E.attr("target","_blank"),pa(a)(P,E,p.x+10,p.height+y,m,20,{class:"actor"},a),y+=30}}return u.attr("height",y),{height:p.height+y,width:m}},"drawPopup"),St=x(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Dt=x(async function(e,t,o=null){let a=e.append("foreignObject"),s=await ie(t.text,qt()),i=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(s).node().getBoundingClientRect();if(a.attr("height",Math.round(i.height)).attr("width",Math.round(i.width)),t.class==="noteText"){let c=e.node().firstChild;c.setAttribute("height",i.height+2*t.textMargin);let p=c.getBBox();a.attr("x",Math.round(p.x+p.width/2-i.width/2)).attr("y",Math.round(p.y+p.height/2-i.height/2))}else if(o){let{startx:c,stopx:p,starty:n}=o;if(c>p){let r=c;c=p,p=r}a.attr("x",Math.round(c+Math.abs(c-p)/2-i.width/2)),t.class==="loopText"?a.attr("y",Math.round(n)):a.attr("y",Math.round(n-i.height))}return[a]},"drawKatex"),ft=x(function(e,t){let o=0,a=0,s=t.text.split(L.lineBreakRegex),[i,c]=re(t.fontSize),p=[],n=0,r=x(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":r=x(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":r=x(()=>Math.round(t.y+(o+a+t.textMargin)/2),"yfunc");break;case"bottom":case"end":r=x(()=>Math.round(t.y+(o+a+2*t.textMargin)-t.textMargin),"yfunc");break}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[d,m]of s.entries()){t.textMargin!==void 0&&t.textMargin===0&&i!==void 0&&(n=d*i);let u=e.append("text");u.attr("x",t.x),u.attr("y",r()),t.anchor!==void 0&&u.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&u.style("font-family",t.fontFamily),c!==void 0&&u.style("font-size",c),t.fontWeight!==void 0&&u.style("font-weight",t.fontWeight),t.fill!==void 0&&u.attr("fill",t.fill),t.class!==void 0&&u.attr("class",t.class),t.dy===void 0?n!==0&&u.attr("dy",n):u.attr("dy",t.dy);let y=m||"\u200B";if(t.tspan){let E=u.append("tspan");E.attr("x",t.x),t.fill!==void 0&&E.attr("fill",t.fill),E.text(y)}else u.text(y);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(a+=(u._groups||u)[0][0].getBBox().height,o=a),p.push(u)}return p},"drawText"),ne=x(function(e,t){function o(s,i,c,p,n){return s+","+i+" "+(s+c)+","+i+" "+(s+c)+","+(i+p-n)+" "+(s+c-n*1.2)+","+(i+p)+" "+s+","+(i+p)}x(o,"genPoints");let a=e.append("polygon");return a.attr("points",o(t.x,t.y,t.width,t.height,7)),a.attr("class","labelBox"),t.y+=t.height/2,ft(e,t),a},"drawLabel"),v=-1,ce=x((e,t,o,a)=>{e.select&&o.forEach(s=>{let i=t.get(s),c=e.select("#actor"+i.actorCnt);!a.mirrorActors&&i.stopy?c.attr("y2",i.stopy+i.height/2):a.mirrorActors&&c.attr("y2",i.stopy)})},"fixLifeLineHeights"),He=x(function(e,t,o,a){var y,E;let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+t.height,p=e.append("g").lower();var n=p;a||(v++,Object.keys(t.links||{}).length&&!o.forceMenus&&n.attr("onclick",St(`actor${v}_popup`)).attr("cursor","pointer"),n.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),n=p.append("g"),t.actorCnt=v,t.links!=null&&n.attr("id","root-"+v));let r=ct();var d="actor";(y=t.properties)!=null&&y.class?d=t.properties.class:r.fill="#eaeaea",a?d+=` ${gt}`:d+=` ${pt}`,r.x=t.x,r.y=s,r.width=t.width,r.height=t.height,r.class=d,r.rx=3,r.ry=3,r.name=t.name;let m=kt(n,r);if(t.rectData=r,(E=t.properties)==null?void 0:E.icon){let w=t.properties.icon.trim();w.charAt(0)==="@"?zt(n,r.x+r.width-20,r.y+10,w.substr(1)):Ht(n,r.x+r.width-20,r.y+10,w)}ht(o,q(t.description))(t.description,n,r.x,r.y,r.width,r.height,{class:`actor ${Ot}`},o);let u=t.height;if(m.node){let w=m.node().getBBox();t.height=w.height,u=w.height}return u},"drawActorTypeParticipant"),Ue=x(function(e,t,o,a){var E,w;let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+t.height,p=e.append("g").lower();var n=p;a||(v++,Object.keys(t.links||{}).length&&!o.forceMenus&&n.attr("onclick",St(`actor${v}_popup`)).attr("cursor","pointer"),n.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),n=p.append("g"),t.actorCnt=v,t.links!=null&&n.attr("id","root-"+v));let r=ct();var d="actor";(E=t.properties)!=null&&E.class?d=t.properties.class:r.fill="#eaeaea",a?d+=` ${gt}`:d+=` ${pt}`,r.x=t.x,r.y=s,r.width=t.width,r.height=t.height,r.class=d,r.name=t.name;let m={...r,x:r.x+-6,y:r.y+6,class:"actor"},u=kt(n,r);if(kt(n,m),t.rectData=r,(w=t.properties)==null?void 0:w.icon){let P=t.properties.icon.trim();P.charAt(0)==="@"?zt(n,r.x+r.width-20,r.y+10,P.substr(1)):Ht(n,r.x+r.width-20,r.y+10,P)}ht(o,q(t.description))(t.description,n,r.x-6,r.y+6,r.width,r.height,{class:`actor ${Ot}`},o);let y=t.height;if(u.node){let P=u.node().getBBox();t.height=P.height,y=P.height}return y},"drawActorTypeCollections"),je=x(function(e,t,o,a){var O,N;let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+t.height,p=e.append("g").lower(),n=p;a||(v++,Object.keys(t.links||{}).length&&!o.forceMenus&&n.attr("onclick",St(`actor${v}_popup`)).attr("cursor","pointer"),n.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),n=p.append("g"),t.actorCnt=v,t.links!=null&&n.attr("id","root-"+v));let r=ct(),d="actor";(O=t.properties)!=null&&O.class?d=t.properties.class:r.fill="#eaeaea",a?d+=` ${gt}`:d+=` ${pt}`,r.x=t.x,r.y=s,r.width=t.width,r.height=t.height,r.class=d,r.name=t.name;let m=r.height/2,u=m/(2.5+r.height/50),y=n.append("g"),E=n.append("g");if(y.append("path").attr("d",`M ${r.x},${r.y+m} + a ${u},${m} 0 0 0 0,${r.height} + h ${r.width-2*u} + a ${u},${m} 0 0 0 0,-${r.height} + Z + `).attr("class",d),E.append("path").attr("d",`M ${r.x},${r.y+m} + a ${u},${m} 0 0 0 0,${r.height}`).attr("stroke","#666").attr("stroke-width","1px").attr("class",d),y.attr("transform",`translate(${u}, ${-(r.height/2)})`),E.attr("transform",`translate(${r.width-u}, ${-r.height/2})`),t.rectData=r,(N=t.properties)==null?void 0:N.icon){let S=t.properties.icon.trim(),$=r.x+r.width-20,Y=r.y+10;S.charAt(0)==="@"?zt(n,$,Y,S.substr(1)):Ht(n,$,Y,S)}ht(o,q(t.description))(t.description,n,r.x,r.y,r.width,r.height,{class:`actor ${Ot}`},o);let w=t.height,P=y.select("path:last-child");if(P.node()){let S=P.node().getBBox();t.height=S.height,w=S.height}return w},"drawActorTypeQueue"),Ke=x(function(e,t,o,a){var y;let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+75,p=e.append("g").lower();a||(v++,p.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=v);let n=e.append("g"),r=ut;a?r+=` ${gt}`:r+=` ${pt}`,n.attr("class",r),n.attr("name",t.name);let d=ct();d.x=t.x,d.y=s,d.fill="#eaeaea",d.width=t.width,d.height=t.height,d.class="actor";let m=t.x+t.width/2,u=s+30;return n.append("defs").append("marker").attr("id","filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),n.append("circle").attr("cx",m).attr("cy",u).attr("r",18).attr("fill","#eaeaf7").attr("stroke","#666").attr("stroke-width",1.2),n.append("line").attr("marker-end","url(#filled-head-control)").attr("transform",`translate(${m}, ${u-18})`),t.height=n.node().getBBox().height+2*(((y=o==null?void 0:o.sequence)==null?void 0:y.labelBoxHeight)??0),ht(o,q(t.description))(t.description,n,d.x,d.y+18+(a?5:10),d.width,d.height,{class:`actor ${ut}`},o),t.height},"drawActorTypeControl"),Ge=x(function(e,t,o,a){var y;let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+75,p=e.append("g").lower(),n=e.append("g"),r=ut;a?r+=` ${gt}`:r+=` ${pt}`,n.attr("class",r),n.attr("name",t.name);let d=ct();d.x=t.x,d.y=s,d.fill="#eaeaea",d.width=t.width,d.height=t.height,d.class="actor";let m=t.x+t.width/2,u=s+(a?10:25);return n.append("circle").attr("cx",m).attr("cy",u).attr("r",18).attr("width",t.width).attr("height",t.height),n.append("line").attr("x1",m-18).attr("x2",m+18).attr("y1",u+18).attr("y2",u+18).attr("stroke","#333").attr("stroke-width",2),t.height=n.node().getBBox().height+(((y=o==null?void 0:o.sequence)==null?void 0:y.labelBoxHeight)??0),a||(v++,p.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=v),ht(o,q(t.description))(t.description,n,d.x,d.y+(a?(u-s+18-5)/2:(u+18-s)/2),d.width,d.height,{class:`actor ${ut}`},o),n.attr("transform",`translate(0, ${18/2})`),t.height},"drawActorTypeEntity"),Xe=x(function(e,t,o,a){var N;let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+t.height+2*o.boxTextMargin,p=e.append("g").lower(),n=p;a||(v++,Object.keys(t.links||{}).length&&!o.forceMenus&&n.attr("onclick",St(`actor${v}_popup`)).attr("cursor","pointer"),n.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),n=p.append("g"),t.actorCnt=v,t.links!=null&&n.attr("id","root-"+v));let r=ct(),d="actor";(N=t.properties)!=null&&N.class?d=t.properties.class:r.fill="#eaeaea",a?d+=` ${gt}`:d+=` ${pt}`,r.x=t.x,r.y=s,r.width=t.width,r.height=t.height,r.class=d,r.name=t.name,r.x=t.x,r.y=s;let m=r.width/4,u=r.width/4,y=m/2,E=y/(2.5+m/50),w=n.append("g"),P=` + M ${r.x},${r.y+E} + a ${y},${E} 0 0 0 ${m},0 + a ${y},${E} 0 0 0 -${m},0 + l 0,${u-2*E} + a ${y},${E} 0 0 0 ${m},0 + l 0,-${u-2*E} +`;w.append("path").attr("d",P).attr("fill","#eaeaea").attr("stroke","#000").attr("stroke-width",1).attr("class",d),a?w.attr("transform",`translate(${m*1.5}, ${r.height/4-2*E})`):w.attr("transform",`translate(${m*1.5}, ${(r.height+E)/4})`),t.rectData=r,ht(o,q(t.description))(t.description,n,r.x,r.y+(a?(r.height+u)/4:(r.height+E)/2),r.width,r.height,{class:`actor ${Ot}`},o);let O=w.select("path:last-child");return O.node()&&(t.height=O.node().getBBox().height+(o.sequence.labelBoxHeight??0)),t.height},"drawActorTypeDatabase"),Je=x(function(e,t,o,a){let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+80,p=e.append("g").lower();a||(v++,p.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=v);let n=e.append("g"),r=ut;a?r+=` ${gt}`:r+=` ${pt}`,n.attr("class",r),n.attr("name",t.name);let d=ct();return d.x=t.x,d.y=s,d.fill="#eaeaea",d.width=t.width,d.height=t.height,d.class="actor",n.append("line").attr("id","actor-man-torso"+v).attr("x1",t.x+t.width/2-30*2.5).attr("y1",s+10).attr("x2",t.x+t.width/2-15).attr("y2",s+10),n.append("line").attr("id","actor-man-arms"+v).attr("x1",t.x+t.width/2-30*2.5).attr("y1",s+0).attr("x2",t.x+t.width/2-30*2.5).attr("y2",s+20),n.append("circle").attr("cx",t.x+t.width/2).attr("cy",s+10).attr("r",30),t.height=n.node().getBBox().height+(o.sequence.labelBoxHeight??0),ht(o,q(t.description))(t.description,n,d.x,d.y+(a?30/2-4:18),d.width,d.height,{class:`actor ${ut}`},o),n.attr("transform","translate(0,22)"),t.height},"drawActorTypeBoundary"),Ze=x(function(e,t,o,a){let s=a?t.stopy:t.starty,i=t.x+t.width/2,c=s+80,p=e.append("g").lower();a||(v++,p.append("line").attr("id","actor"+v).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=v);let n=e.append("g"),r=ut;a?r+=` ${gt}`:r+=` ${pt}`,n.attr("class",r),n.attr("name",t.name);let d=ct();d.x=t.x,d.y=s,d.fill="#eaeaea",d.width=t.width,d.height=t.height,d.class="actor",d.rx=3,d.ry=3,n.append("line").attr("id","actor-man-torso"+v).attr("x1",i).attr("y1",s+25).attr("x2",i).attr("y2",s+45),n.append("line").attr("id","actor-man-arms"+v).attr("x1",i-mt/2).attr("y1",s+33).attr("x2",i+mt/2).attr("y2",s+33),n.append("line").attr("x1",i-mt/2).attr("y1",s+60).attr("x2",i).attr("y2",s+45),n.append("line").attr("x1",i).attr("y1",s+45).attr("x2",i+mt/2-2).attr("y2",s+60);let m=n.append("circle");return m.attr("cx",t.x+t.width/2),m.attr("cy",s+10),m.attr("r",15),m.attr("width",t.width),m.attr("height",t.height),t.height=n.node().getBBox().height,ht(o,q(t.description))(t.description,n,d.x,d.y+35,d.width,d.height,{class:`actor ${ut}`},o),t.height},"drawActorTypeActor"),Qe=x(async function(e,t,o,a){switch(t.type){case"actor":return await Ze(e,t,o,a);case"participant":return await He(e,t,o,a);case"boundary":return await Je(e,t,o,a);case"control":return await Ke(e,t,o,a);case"entity":return await Ge(e,t,o,a);case"database":return await Xe(e,t,o,a);case"collections":return await Ue(e,t,o,a);case"queue":return await je(e,t,o,a)}},"drawActor"),ta=x(function(e,t,o){let a=e.append("g");le(a,t),t.name&&ht(o)(t.name,a,t.x,t.y+o.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},o),a.lower()},"drawBox"),ea=x(function(e){return e.append("g")},"anchorElement"),aa=x(function(e,t,o,a,s){let i=ct(),c=t.anchored;i.x=t.startx,i.y=t.starty,i.class="activation"+s%3,i.width=t.stopx-t.startx,i.height=o-t.starty,kt(c,i)},"drawActivation"),ra=x(async function(e,t,o,a){let{boxMargin:s,boxTextMargin:i,labelBoxHeight:c,labelBoxWidth:p,messageFontFamily:n,messageFontSize:r,messageFontWeight:d}=a,m=e.append("g"),u=x(function(w,P,O,N){return m.append("line").attr("x1",w).attr("y1",P).attr("x2",O).attr("y2",N).attr("class","loopLine")},"drawLoopLine");u(t.startx,t.starty,t.stopx,t.starty),u(t.stopx,t.starty,t.stopx,t.stopy),u(t.startx,t.stopy,t.stopx,t.stopy),u(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(w){u(t.startx,w.y,t.stopx,w.y).style("stroke-dasharray","3, 3")});let y=Ut();y.text=o,y.x=t.startx,y.y=t.starty,y.fontFamily=n,y.fontSize=r,y.fontWeight=d,y.anchor="middle",y.valign="middle",y.tspan=!1,y.width=p||50,y.height=c||20,y.textMargin=i,y.class="labelText",ne(m,y),y=de(),y.text=t.title,y.x=t.startx+p/2+(t.stopx-t.startx)/2,y.y=t.starty+s+i,y.anchor="middle",y.valign="middle",y.textMargin=i,y.class="loopText",y.fontFamily=n,y.fontSize=r,y.fontWeight=d,y.wrap=!0;let E=q(y.text)?await Dt(m,y,t):ft(m,y);if(t.sectionTitles!==void 0){for(let[w,P]of Object.entries(t.sectionTitles))if(P.message){y.text=P.message,y.x=t.startx+(t.stopx-t.startx)/2,y.y=t.sections[w].y+s+i,y.class="loopText",y.anchor="middle",y.valign="middle",y.tspan=!1,y.fontFamily=n,y.fontSize=r,y.fontWeight=d,y.wrap=t.wrap,q(y.text)?(t.starty=t.sections[w].y,await Dt(m,y,t)):ft(m,y);let O=Math.round(E.map(N=>(N._groups||N)[0][0].getBBox().height).reduce((N,S)=>N+S));t.sections[w].height+=O-(s+i)}}return t.height=Math.round(t.stopy-t.starty),m},"drawLoop"),le=x(function(e,t){Re(e,t)},"drawBackgroundRect"),sa=x(function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),ia=x(function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),oa=x(function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),na=x(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),ca=x(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),la=x(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),da=x(function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),de=x(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),ha=x(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ht=(function(){function e(i,c,p,n,r,d,m){s(c.append("text").attr("x",p+r/2).attr("y",n+d/2+5).style("text-anchor","middle").text(i),m)}x(e,"byText");function t(i,c,p,n,r,d,m,u){let{actorFontSize:y,actorFontFamily:E,actorFontWeight:w}=u,[P,O]=re(y),N=i.split(L.lineBreakRegex);for(let S=0;Se.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:x(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:x(function(e){this.boxes.push(e)},"addBox"),addActor:x(function(e){this.actors.push(e)},"addActor"),addLoop:x(function(e){this.loops.push(e)},"addLoop"),addMessage:x(function(e){this.messages.push(e)},"addMessage"),addNote:x(function(e){this.notes.push(e)},"addNote"),lastActor:x(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:x(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:x(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:x(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:x(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,ge(et())},"init"),updateVal:x(function(e,t,o,a){e[t]===void 0?e[t]=o:e[t]=a(o,e[t])},"updateVal"),updateBounds:x(function(e,t,o,a){let s=this,i=0;function c(p){return x(function(n){i++;let r=s.sequenceItems.length-i+1;s.updateVal(n,"starty",t-r*l.boxMargin,Math.min),s.updateVal(n,"stopy",a+r*l.boxMargin,Math.max),s.updateVal(b.data,"startx",e-r*l.boxMargin,Math.min),s.updateVal(b.data,"stopx",o+r*l.boxMargin,Math.max),p!=="activation"&&(s.updateVal(n,"startx",e-r*l.boxMargin,Math.min),s.updateVal(n,"stopx",o+r*l.boxMargin,Math.max),s.updateVal(b.data,"starty",t-r*l.boxMargin,Math.min),s.updateVal(b.data,"stopy",a+r*l.boxMargin,Math.max))},"updateItemBounds")}x(c,"updateFn"),this.sequenceItems.forEach(c()),this.activations.forEach(c("activation"))},"updateBounds"),insert:x(function(e,t,o,a){let s=L.getMin(e,o),i=L.getMax(e,o),c=L.getMin(t,a),p=L.getMax(t,a);this.updateVal(b.data,"startx",s,Math.min),this.updateVal(b.data,"starty",c,Math.min),this.updateVal(b.data,"stopx",i,Math.max),this.updateVal(b.data,"stopy",p,Math.max),this.updateBounds(s,c,i,p)},"insert"),newActivation:x(function(e,t,o){let a=o.get(e.from),s=$t(e.from).length||0,i=a.x+a.width/2+(s-1)*l.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+l.activationWidth,stopy:void 0,actor:e.from,anchored:B.anchorElement(t)})},"newActivation"),endActivation:x(function(e){let t=this.activations.map(function(o){return o.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:x(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:x(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:x(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:x(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:x(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:b.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:x(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:x(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:x(function(e){this.verticalPos+=e,this.data.stopy=L.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:x(function(){return this.verticalPos},"getVerticalPos"),getBounds:x(function(){return{bounds:this.data,models:this.models}},"getBounds")},ga=x(async function(e,t){b.bumpVerticalPos(l.boxMargin),t.height=l.boxMargin,t.starty=b.getVerticalPos();let o=ct();o.x=t.startx,o.y=t.starty,o.width=t.width||l.width,o.class="note";let a=e.append("g"),s=B.drawRect(a,o),i=Ut();i.x=t.startx,i.y=t.starty,i.width=o.width,i.dy="1em",i.text=t.message,i.class="noteText",i.fontFamily=l.noteFontFamily,i.fontSize=l.noteFontSize,i.fontWeight=l.noteFontWeight,i.anchor=l.noteAlign,i.textMargin=l.noteMargin,i.valign="center";let c=q(i.text)?await Dt(a,i):ft(a,i),p=Math.round(c.map(n=>(n._groups||n)[0][0].getBBox().height).reduce((n,r)=>n+r));s.attr("height",p+2*l.noteMargin),t.height+=p+2*l.noteMargin,b.bumpVerticalPos(p+2*l.noteMargin),t.stopy=t.starty+p+2*l.noteMargin,t.stopx=t.startx+o.width,b.insert(t.startx,t.starty,t.stopx,t.stopy),b.models.addNote(t)},"drawNote"),bt=x(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),Et=x(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),Kt=x(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");async function he(e,t){b.bumpVerticalPos(10);let{startx:o,stopx:a,message:s}=t,i=L.splitBreaks(s).length,c=q(s),p=c?await Lt(s,et()):F.calculateTextDimensions(s,bt(l));if(!c){let m=p.height/i;t.height+=m,b.bumpVerticalPos(m)}let n,r=p.height-10,d=p.width;if(o===a){n=b.getVerticalPos()+r,l.rightAngles||(r+=l.boxMargin,n=b.getVerticalPos()+r),r+=30;let m=L.getMax(d/2,l.width/2);b.insert(o-m,b.getVerticalPos()-10+r,a+m,b.getVerticalPos()+30+r)}else r+=l.boxMargin,n=b.getVerticalPos()+r,b.insert(o,n-10,a,n);return b.bumpVerticalPos(r),t.height+=r,t.stopy=t.starty+t.height,b.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),n}x(he,"boundMessage");var ua=x(async function(e,t,o,a){let{startx:s,stopx:i,starty:c,message:p,type:n,sequenceIndex:r,sequenceVisible:d}=t,m=F.calculateTextDimensions(p,bt(l)),u=Ut();u.x=s,u.y=c+10,u.width=i-s,u.class="messageText",u.dy="1em",u.text=p,u.fontFamily=l.messageFontFamily,u.fontSize=l.messageFontSize,u.fontWeight=l.messageFontWeight,u.anchor=l.messageAlign,u.valign="center",u.textMargin=l.wrapPadding,u.tspan=!1,q(u.text)?await Dt(e,u,{startx:s,stopx:i,starty:o}):ft(e,u);let y=m.width,E;s===i?E=l.rightAngles?e.append("path").attr("d",`M ${s},${o} H ${s+L.getMax(l.width/2,y/2)} V ${o+25} H ${s}`):e.append("path").attr("d","M "+s+","+o+" C "+(s+60)+","+(o-10)+" "+(s+60)+","+(o+30)+" "+s+","+(o+20)):(E=e.append("line"),E.attr("x1",s),E.attr("y1",o),E.attr("x2",i),E.attr("y2",o)),n===a.db.LINETYPE.DOTTED||n===a.db.LINETYPE.DOTTED_CROSS||n===a.db.LINETYPE.DOTTED_POINT||n===a.db.LINETYPE.DOTTED_OPEN||n===a.db.LINETYPE.BIDIRECTIONAL_DOTTED?(E.style("stroke-dasharray","3, 3"),E.attr("class","messageLine1")):E.attr("class","messageLine0");let w="";l.arrowMarkerAbsolute&&(w=Ie(!0)),E.attr("stroke-width",2),E.attr("stroke","none"),E.style("fill","none"),(n===a.db.LINETYPE.SOLID||n===a.db.LINETYPE.DOTTED)&&E.attr("marker-end","url("+w+"#arrowhead)"),(n===a.db.LINETYPE.BIDIRECTIONAL_SOLID||n===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(E.attr("marker-start","url("+w+"#arrowhead)"),E.attr("marker-end","url("+w+"#arrowhead)")),(n===a.db.LINETYPE.SOLID_POINT||n===a.db.LINETYPE.DOTTED_POINT)&&E.attr("marker-end","url("+w+"#filled-head)"),(n===a.db.LINETYPE.SOLID_CROSS||n===a.db.LINETYPE.DOTTED_CROSS)&&E.attr("marker-end","url("+w+"#crosshead)"),(d||l.showSequenceNumbers)&&((n===a.db.LINETYPE.BIDIRECTIONAL_SOLID||n===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(ss&&(s=r.height),r.width+p.x>i&&(i=r.width+p.x)}return{maxHeight:s,maxWidth:i}},"drawActorsPopup"),ge=x(function(e){ve(l,e),e.fontFamily&&(l.actorFontFamily=l.noteFontFamily=l.messageFontFamily=e.fontFamily),e.fontSize&&(l.actorFontSize=l.noteFontSize=l.messageFontSize=e.fontSize),e.fontWeight&&(l.actorFontWeight=l.noteFontWeight=l.messageFontWeight=e.fontWeight)},"setConf"),$t=x(function(e){return b.activations.filter(function(t){return t.actor===e})},"actorActivations"),ue=x(function(e,t){let o=t.get(e),a=$t(e);return[a.reduce(function(s,i){return L.getMin(s,i.startx)},o.x+o.width/2-1),a.reduce(function(s,i){return L.getMax(s,i.stopx)},o.x+o.width/2+1)]},"activationBounds");function ot(e,t,o,a,s){b.bumpVerticalPos(o);let i=a;if(t.id&&t.message&&e[t.id]){let c=e[t.id].width,p=bt(l);t.message=F.wrapLabel(`[${t.message}]`,c-2*l.wrapPadding,p),t.width=c,t.wrap=!0;let n=F.calculateTextDimensions(t.message,p),r=L.getMax(n.height,l.labelBoxHeight);i=a+r,G.debug(`${r} - ${t.message}`)}s(t),b.bumpVerticalPos(i)}x(ot,"adjustLoopHeightForWrap");function xe(e,t,o,a,s,i,c){function p(d,m){d.x{T.add(k.from),T.add(k.to)}),E=E.filter(k=>T.has(k))}xa(r,d,m,E,0,w,!1);let $=await fa(w,d,S,a);B.insertArrowHead(r),B.insertArrowCrossHead(r),B.insertArrowFilledHead(r),B.insertSequenceNumber(r);function Y(T,k){let K=b.endActivation(T);K.starty+18>k&&(K.starty=k-6,k+=12),B.drawActivation(r,K,k,l,$t(T.from).length),b.insert(K.startx,k-10,K.stopx,k)}x(Y,"activeEnd");let U=1,X=1,at=[],z=[],H=0;for(let T of w){let k,K,Q;switch(T.type){case a.db.LINETYPE.NOTE:b.resetVerticalPos(),K=T.noteModel,await ga(r,K);break;case a.db.LINETYPE.ACTIVE_START:b.newActivation(T,r,d);break;case a.db.LINETYPE.ACTIVE_END:Y(T,b.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:ot($,T,l.boxMargin,l.boxMargin+l.boxTextMargin,M=>b.newLoop(M));break;case a.db.LINETYPE.LOOP_END:k=b.endLoop(),await B.drawLoop(r,k,"loop",l),b.bumpVerticalPos(k.stopy-b.getVerticalPos()),b.models.addLoop(k);break;case a.db.LINETYPE.RECT_START:ot($,T,l.boxMargin,l.boxMargin,M=>b.newLoop(void 0,M.message));break;case a.db.LINETYPE.RECT_END:k=b.endLoop(),z.push(k),b.models.addLoop(k),b.bumpVerticalPos(k.stopy-b.getVerticalPos());break;case a.db.LINETYPE.OPT_START:ot($,T,l.boxMargin,l.boxMargin+l.boxTextMargin,M=>b.newLoop(M));break;case a.db.LINETYPE.OPT_END:k=b.endLoop(),await B.drawLoop(r,k,"opt",l),b.bumpVerticalPos(k.stopy-b.getVerticalPos()),b.models.addLoop(k);break;case a.db.LINETYPE.ALT_START:ot($,T,l.boxMargin,l.boxMargin+l.boxTextMargin,M=>b.newLoop(M));break;case a.db.LINETYPE.ALT_ELSE:ot($,T,l.boxMargin+l.boxTextMargin,l.boxMargin,M=>b.addSectionToLoop(M));break;case a.db.LINETYPE.ALT_END:k=b.endLoop(),await B.drawLoop(r,k,"alt",l),b.bumpVerticalPos(k.stopy-b.getVerticalPos()),b.models.addLoop(k);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:ot($,T,l.boxMargin,l.boxMargin+l.boxTextMargin,M=>b.newLoop(M)),b.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:ot($,T,l.boxMargin+l.boxTextMargin,l.boxMargin,M=>b.addSectionToLoop(M));break;case a.db.LINETYPE.PAR_END:k=b.endLoop(),await B.drawLoop(r,k,"par",l),b.bumpVerticalPos(k.stopy-b.getVerticalPos()),b.models.addLoop(k);break;case a.db.LINETYPE.AUTONUMBER:U=T.message.start||U,X=T.message.step||X,T.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:ot($,T,l.boxMargin,l.boxMargin+l.boxTextMargin,M=>b.newLoop(M));break;case a.db.LINETYPE.CRITICAL_OPTION:ot($,T,l.boxMargin+l.boxTextMargin,l.boxMargin,M=>b.addSectionToLoop(M));break;case a.db.LINETYPE.CRITICAL_END:k=b.endLoop(),await B.drawLoop(r,k,"critical",l),b.bumpVerticalPos(k.stopy-b.getVerticalPos()),b.models.addLoop(k);break;case a.db.LINETYPE.BREAK_START:ot($,T,l.boxMargin,l.boxMargin+l.boxTextMargin,M=>b.newLoop(M));break;case a.db.LINETYPE.BREAK_END:k=b.endLoop(),await B.drawLoop(r,k,"break",l),b.bumpVerticalPos(k.stopy-b.getVerticalPos()),b.models.addLoop(k);break;default:try{Q=T.msgModel,Q.starty=b.getVerticalPos(),Q.sequenceIndex=U,Q.sequenceVisible=a.db.showSequenceNumbers();let M=await he(r,Q);xe(T,Q,M,H,d,m,u),at.push({messageModel:Q,lineStartY:M}),b.models.addMessage(Q)}catch(M){G.error("error while drawing message",M)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(T.type)&&(U+=X),H++}G.debug("createdActors",m),G.debug("destroyedActors",u),await Gt(r,d,E,!1);for(let T of at)await ua(r,T.messageModel,T.lineStartY,a);l.mirrorActors&&await Gt(r,d,E,!0),z.forEach(T=>B.drawBackgroundRect(r,T)),ce(r,d,E,l);for(let T of b.models.boxes){T.height=b.getVerticalPos()-T.y,b.insert(T.x,T.y,T.x+T.width,T.height);let k=l.boxMargin*2;T.startx=T.x-k,T.starty=T.y-k*.25,T.stopx=T.startx+T.width+2*k,T.stopy=T.starty+T.height+k*.75,T.stroke="rgb(0,0,0, 0.5)",B.drawBox(r,T,l)}O&&b.bumpVerticalPos(l.boxMargin);let W=pe(r,d,E,n),{bounds:R}=b.getBounds();R.startx===void 0&&(R.startx=0),R.starty===void 0&&(R.starty=0),R.stopx===void 0&&(R.stopx=0),R.stopy===void 0&&(R.stopy=0);let J=R.stopy-R.starty;J{let c=bt(l),p=i.actorKeys.reduce((m,u)=>m+=e.get(u).width+(e.get(u).margin||0),0),n=l.boxMargin*8;p+=n,p-=2*l.boxTextMargin,i.wrap&&(i.name=F.wrapLabel(i.name,p-2*l.wrapPadding,c));let r=F.calculateTextDimensions(i.name,c);s=L.getMax(r.height,s);let d=L.getMax(p,r.width+2*l.wrapPadding);if(i.margin=l.boxTextMargin,pi.textMaxHeight=s),L.getMax(a,l.height)}x(me,"calculateActorMargins");var ba=x(async function(e,t,o){let a=t.get(e.from),s=t.get(e.to),i=a.x,c=s.x,p=e.wrap&&e.message,n=q(e.message)?await Lt(e.message,et()):F.calculateTextDimensions(p?F.wrapLabel(e.message,l.width,Et(l)):e.message,Et(l)),r={width:p?l.width:L.getMax(l.width,n.width+2*l.noteMargin),height:0,startx:a.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===o.db.PLACEMENT.RIGHTOF?(r.width=p?L.getMax(l.width,n.width):L.getMax(a.width/2+s.width/2,n.width+2*l.noteMargin),r.startx=i+(a.width+l.actorMargin)/2):e.placement===o.db.PLACEMENT.LEFTOF?(r.width=p?L.getMax(l.width,n.width+2*l.noteMargin):L.getMax(a.width/2+s.width/2,n.width+2*l.noteMargin),r.startx=i-r.width+(a.width-l.actorMargin)/2):e.to===e.from?(n=F.calculateTextDimensions(p?F.wrapLabel(e.message,L.getMax(l.width,a.width),Et(l)):e.message,Et(l)),r.width=p?L.getMax(l.width,a.width):L.getMax(a.width,l.width,n.width+2*l.noteMargin),r.startx=i+(a.width-r.width)/2):(r.width=Math.abs(i+a.width/2-(c+s.width/2))+l.actorMargin,r.startx=i2,m=x(w=>p?-w:w,"adjustValue");e.from===e.to?r=n:(e.activate&&!d&&(r+=m(l.activationWidth/2-1)),[o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(r+=m(3)),[o.db.LINETYPE.BIDIRECTIONAL_SOLID,o.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(n-=m(3)));let u=[a,s,i,c],y=Math.abs(n-r);e.wrap&&e.message&&(e.message=F.wrapLabel(e.message,L.getMax(y+2*l.wrapPadding,l.width),bt(l)));let E=F.calculateTextDimensions(e.message,bt(l));return{width:L.getMax(e.wrap?0:E.width+2*l.wrapPadding,y+2*l.wrapPadding,l.width),height:0,startx:n,stopx:r,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},"buildMessageModel"),fa=x(async function(e,t,o,a){let s={},i=[],c,p,n;for(let r of e){switch(r.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:i.push({id:r.id,msg:r.message,from:2**53-1,to:-(2**53-1),width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:r.message&&(c=i.pop(),s[c.id]=c,s[r.id]=c,i.push(c));break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:c=i.pop(),s[c.id]=c;break;case a.db.LINETYPE.ACTIVE_START:{let d=t.get(r.from?r.from:r.to.actor),m=$t(r.from?r.from:r.to.actor).length,u=d.x+d.width/2+(m-1)*l.activationWidth/2,y={startx:u,stopx:u+l.activationWidth,actor:r.from,enabled:!0};b.activations.push(y)}break;case a.db.LINETYPE.ACTIVE_END:{let d=b.activations.map(m=>m.actor).lastIndexOf(r.from);b.activations.splice(d,1).splice(0,1)}break}r.placement===void 0?(n=Ta(r,t,a),r.msgModel=n,n.startx&&n.stopx&&i.length>0&&i.forEach(d=>{if(c=d,n.startx===n.stopx){let m=t.get(r.from),u=t.get(r.to);c.from=L.getMin(m.x-n.width/2,m.x-m.width/2,c.from),c.to=L.getMax(u.x+n.width/2,u.x+m.width/2,c.to),c.width=L.getMax(c.width,Math.abs(c.to-c.from))-l.labelBoxWidth}else c.from=L.getMin(n.startx,c.from),c.to=L.getMax(n.stopx,c.to),c.width=L.getMax(c.width,n.width)-l.labelBoxWidth})):(p=await ba(r,t,a),r.noteModel=p,i.forEach(d=>{c=d,c.from=L.getMin(c.from,p.startx),c.to=L.getMax(c.to,p.startx+p.width),c.width=L.getMax(c.width,Math.abs(c.from-c.to))-l.labelBoxWidth}))}return b.activations=[],G.debug("Loop type widths:",s),s},"calculateLoopBounds"),Ea={parser:Be,get db(){return new We},renderer:{bounds:b,drawActors:Gt,drawActorsPopup:pe,setConf:ge,draw:ya},styles:qe,init:x(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,Le({sequence:{wrap:e.wrap}}))},"init")};export{Ea as diagram}; diff --git a/docs/assets/session-panel-DVgM22Up.js b/docs/assets/session-panel-DVgM22Up.js new file mode 100644 index 0000000..77188d8 --- /dev/null +++ b/docs/assets/session-panel-DVgM22Up.js @@ -0,0 +1 @@ +import{s as oe}from"./chunk-LvLJmgfZ.js";import{d as ce,i as Me,l as Ee,p as me,u as H}from"./useEvent-DlWF5OMa.js";import{t as Pe}from"./react-BGmjiNul.js";import{$t as ie,Dt as Oe,Et as Ue,Fn as ze,Gn as le,Mn as Re,Nn as Ge,Vn as Ae,Wn as We,Zr as Ke,_n as He,a as Je,ar as de,bn as he,bt as Xe,cr as Ze,f as ue,fr as xe,ft as Qe,gr as pe,hr as Ye,j as ea,k as aa,lr as ta,nr as sa,or as fe,pr as be,sr as ge,vn as la,w as na}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as ne}from"./compiler-runtime-DeeZ7FnK.js";import{i as ra}from"./useLifecycle-CmDXEyIC.js";import{t as je}from"./add-database-form-0DEJX5nr.js";import"./tooltip-CrRUCOBw.js";import{t as J}from"./sortBy-Bdnw8bdS.js";import{o as oa}from"./utils-Czt8B2GX.js";import"./config-CENq_7Pd.js";import{t as ca}from"./ErrorBoundary-C7JBxSzd.js";import{t as ma}from"./jsx-runtime-DN_bIXfG.js";import{r as ia,t as X}from"./button-B8cGZzP5.js";import{t as q}from"./cn-C1rgT0yh.js";import"./dist-CAcX026F.js";import{B as da,I as Ne,L as ha,R as ua,k as re,z as xa}from"./JsonOutput-DlwRx3jE.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as pa}from"./requests-C0HaHO6a.js";import{t as fa}from"./createLucideIcon-CW2xpJ57.js";import{h as ba}from"./select-D9lTzMzP.js";import"./download-C_slsU-7.js";import"./markdown-renderer-DjqhqmES.js";import{t as ye}from"./plus-CHesBJpY.js";import{t as ga}from"./refresh-cw-Din9uFKE.js";import{a as ja}from"./input-Bkl2Yfmh.js";import{c as ve,d as we,f as Se,l as ae,n as Na,o as ya,p as va,u as _e}from"./column-preview-DZ--KOk1.js";import{t as wa}from"./workflow-ZGK5flRg.js";import{t as Sa}from"./badge-DAnNhy3O.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import"./Combination-D1TsGrBC.js";import{t as te}from"./tooltip-CvjcEpZC.js";import"./dates-CdsE1R40.js";import{t as _a}from"./context-BAYdLMF_.js";import"./popover-DtnzNVk-.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as Ca}from"./copy-icon-jWsqdLn1.js";import"./purify.es-N-2faAGj.js";import{a as Ce,i as ke,n as ka,r as $e}from"./multi-map-CQd4MZr5.js";import{t as Fe}from"./cell-link-D7bPw7Fz.js";import{n as Te}from"./useAsyncData-Dj1oqsrZ.js";import{a as $a,o as se,t as Fa,u as Ta}from"./command-B1zRJT1a.js";import"./chunk-OGVTOU66-DQphfHw1.js";import"./katex-dFZM4X_7.js";import"./marked.esm-BZNXs5FA.js";import{r as Ia}from"./es-BJsT6vfZ.js";import{o as La}from"./focus-KGgBDCvb.js";import{a as qa,i as Ba,n as Da,o as Ie,r as Va,t as Ma}from"./table-BatLo2vd.js";import{n as Ea}from"./icons-9QU2Dup7.js";import{t as Le}from"./useAddCell-DveVmvs9.js";import{t as Pa}from"./empty-state-H6r25Wek.js";import{n as Oa,t as Ua}from"./common-C2MMmHt4.js";var za=fa("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),_=oe(Pe(),1),Ra=ne(),t=oe(ma(),1);const Ga=a=>{let e=(0,Ra.c)(8),{variableName:s,className:l}=a,r;e[0]===s?r=e[1]:(r=()=>{let g=Aa(s);if(!g)return;let N=ue(g);N&&ie(N,s)},e[0]=s,e[1]=r);let o=r,n;e[2]===l?n=e[3]:(n=q("text-link opacity-80 hover:opacity-100 hover:underline",l),e[2]=l,e[3]=n);let b;return e[4]!==o||e[5]!==n||e[6]!==s?(b=(0,t.jsx)("button",{type:"button",onClick:o,className:n,children:s}),e[4]=o,e[5]=n,e[6]=s,e[7]=b):b=e[7],b};function Aa(a){let e=Me.get(he)[a];if(e)return e.declaredBy[0]}var R=ne(),C={engineEmpty:"pl-3",engine:"pl-3 pr-2",database:"pl-4",schemaEmpty:"pl-8",schema:"pl-7",tableLoading:"pl-11",tableSchemaless:"pl-8",tableWithSchema:"pl-12",columnLocal:"pl-5",columnSql:"pl-13",columnPreview:"pl-10"},Wa=me(a=>{let e=a(ge),s=a(he),l=a(Je);return J(e,r=>{if(!r.variable_name)return-1;let o=Object.values(s).find(b=>b.name===r.variable_name);if(!o)return 0;let n=l.inOrderIds.indexOf(o.declaredBy[0]);return n===-1?0:n})});const qe=me(a=>{let e=new Map(a(sa));for(let s of pe){let l=e.get(s);l&&(l.databases.length===0&&e.delete(s),l.databases.length===1&&l.databases[0].name==="memory"&&l.databases[0].schemas.length===0&&e.delete(s))}return J([...e.values()],s=>pe.has(s.name)?1:0)}),Ka=()=>{let a=(0,R.c)(32),[e,s]=_.useState(""),l=ce(fe),r=H(Wa),o=H(qe);if(r.length===0&&o.length===0){let p;return a[0]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(Pa,{title:"No tables found",description:"Any datasets/dataframes in the global scope will be shown here.",action:(0,t.jsx)(je,{children:(0,t.jsxs)(X,{variant:"outline",size:"sm",children:["Add database or catalog",(0,t.jsx)(ye,{className:"h-4 w-4 ml-2"})]})}),icon:(0,t.jsx)(le,{})}),a[0]=p):p=a[0],p}let n=!!e.trim(),b;a[1]===l?b=a[2]:(b=p=>{l(p.length>0),s(p)},a[1]=l,a[2]=b);let g;a[3]!==e||a[4]!==b?(g=(0,t.jsx)($a,{placeholder:"Search tables...",className:"h-6 m-1",value:e,onValueChange:b,rootClassName:"flex-1 border-r border-b-0"}),a[3]=e,a[4]=b,a[5]=g):g=a[5];let N;a[6]===n?N=a[7]:(N=n&&(0,t.jsx)("button",{type:"button",className:"float-right border-b px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:()=>s(""),children:(0,t.jsx)(ba,{className:"h-4 w-4"})}),a[6]=n,a[7]=N);let j;a[8]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(je,{children:(0,t.jsx)(X,{variant:"ghost",size:"sm",className:"px-2 rounded-none focus-visible:outline-hidden",children:(0,t.jsx)(ye,{className:"h-4 w-4"})})}),a[8]=j):j=a[8];let i;a[9]!==g||a[10]!==N?(i=(0,t.jsxs)("div",{className:"flex items-center w-full border-b",children:[g,N,j]}),a[9]=g,a[10]=N,a[11]=i):i=a[11];let c;if(a[12]!==o||a[13]!==n||a[14]!==e){let p;a[16]!==n||a[17]!==e?(p=u=>(0,t.jsx)(Ha,{connection:u,hasChildren:u.databases.length>0,children:u.databases.map(f=>(0,t.jsx)(Ja,{engineName:u.name,database:f,hasSearch:n,children:(0,t.jsx)(Xa,{schemas:f.schemas,defaultSchema:u.default_schema,defaultDatabase:u.default_database,engineName:u.name,databaseName:f.name,hasSearch:n,searchValue:e,dialect:u.dialect})},f.name))},u.name),a[16]=n,a[17]=e,a[18]=p):p=a[18],c=o.map(p),a[12]=o,a[13]=n,a[14]=e,a[15]=c}else c=a[15];let d;a[19]!==o.length||a[20]!==r.length?(d=o.length>0&&r.length>0&&(0,t.jsxs)(ve,{className:C.engine,children:[(0,t.jsx)(Ea,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs",children:"Python"})]}),a[19]=o.length,a[20]=r.length,a[21]=d):d=a[21];let x;a[22]!==e||a[23]!==r?(x=r.length>0&&(0,t.jsx)(Be,{tables:r,searchValue:e}),a[22]=e,a[23]=r,a[24]=x):x=a[24];let h;a[25]!==c||a[26]!==d||a[27]!==x?(h=(0,t.jsxs)(Ta,{className:"flex flex-col",children:[c,d,x]}),a[25]=c,a[26]=d,a[27]=x,a[28]=h):h=a[28];let m;return a[29]!==i||a[30]!==h?(m=(0,t.jsxs)(Fa,{className:"border-b bg-background rounded-none h-full pb-10 overflow-auto outline-hidden",shouldFilter:!1,children:[i,h]}),a[29]=i,a[30]=h,a[31]=m):m=a[31],m};var Ha=a=>{let e=(0,R.c)(26),{connection:s,children:l,hasChildren:r}=a,o=s.name===Ye,n=o?"In-Memory":s.name,{previewDataSourceConnection:b}=pa(),[g,N]=_.useState(!1),j;e[0]!==s.name||e[1]!==b?(j=async()=>{N(!0),await b({engine:s.name}),setTimeout(()=>N(!1),500)},e[0]=s.name,e[1]=b,e[2]=j):j=e[2];let i=j,c;e[3]===s.dialect?c=e[4]:(c=(0,t.jsx)(Qe,{className:"h-4 w-4 text-muted-foreground",name:s.dialect}),e[3]=s.dialect,e[4]=c);let d;e[5]===s.dialect?d=e[6]:(d=Re(s.dialect),e[5]=s.dialect,e[6]=d);let x;e[7]===d?x=e[8]:(x=(0,t.jsx)("span",{className:"text-xs",children:d}),e[7]=d,e[8]=x);let h=n,m;e[9]===h?m=e[10]:(m=(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",(0,t.jsx)(Ga,{variableName:h}),")"]}),e[9]=h,e[10]=m);let p;e[11]!==i||e[12]!==o||e[13]!==g?(p=!o&&(0,t.jsx)(te,{content:"Refresh connection",children:(0,t.jsx)(X,{variant:"ghost",size:"icon",className:"ml-auto hover:bg-transparent hover:shadow-none",onClick:i,children:(0,t.jsx)(ga,{className:q("h-4 w-4 text-muted-foreground hover:text-foreground",g&&"animate-[spin_0.5s]")})})}),e[11]=i,e[12]=o,e[13]=g,e[14]=p):p=e[14];let u;e[15]!==c||e[16]!==x||e[17]!==m||e[18]!==p?(u=(0,t.jsxs)(ve,{className:C.engine,children:[c,x,m,p]}),e[15]=c,e[16]=x,e[17]=m,e[18]=p,e[19]=u):u=e[19];let f;e[20]!==l||e[21]!==r?(f=r?l:(0,t.jsx)(ae,{content:"No databases available",className:C.engineEmpty}),e[20]=l,e[21]=r,e[22]=f):f=e[22];let y;return e[23]!==u||e[24]!==f?(y=(0,t.jsxs)(t.Fragment,{children:[u,f]}),e[23]=u,e[24]=f,e[25]=y):y=e[25],y},Ja=a=>{let e=(0,R.c)(26),{hasSearch:s,engineName:l,database:r,children:o}=a,[n,b]=_.useState(!1),[g,N]=_.useState(!1),[j,i]=_.useState(s);j!==s&&(i(s),b(s));let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=q("text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",C.database),e[0]=c):c=e[0];let d;e[1]!==n||e[2]!==g?(d=()=>{b(!n),N(!g)},e[1]=n,e[2]=g,e[3]=d):d=e[3];let x=`${l}:${r.name}`,h;e[4]===n?h=e[5]:(h=(0,t.jsx)(Se,{isExpanded:n}),e[4]=n,e[5]=h);let m=g&&n?"text-foreground":"text-muted-foreground",p;e[6]===m?p=e[7]:(p=q("h-4 w-4",m),e[6]=m,e[7]=p);let u;e[8]===p?u=e[9]:(u=(0,t.jsx)(le,{className:p}),e[8]=p,e[9]=u);let f=g&&n&&"font-semibold",y;e[10]===f?y=e[11]:(y=q(f),e[10]=f,e[11]=y);let v;e[12]===r.name?v=e[13]:(v=r.name===""?(0,t.jsx)("i",{children:"Not connected"}):r.name,e[12]=r.name,e[13]=v);let w;e[14]!==v||e[15]!==y?(w=(0,t.jsx)("span",{className:y,children:v}),e[14]=v,e[15]=y,e[16]=w):w=e[16];let S;e[17]!==w||e[18]!==d||e[19]!==x||e[20]!==h||e[21]!==u?(S=(0,t.jsxs)(se,{className:c,onSelect:d,value:x,children:[h,u,w]}),e[17]=w,e[18]=d,e[19]=x,e[20]=h,e[21]=u,e[22]=S):S=e[22];let L=n&&o,k;return e[23]!==S||e[24]!==L?(k=(0,t.jsxs)(t.Fragment,{children:[S,L]}),e[23]=S,e[24]=L,e[25]=k):k=e[25],k},Xa=a=>{let e=(0,R.c)(22),{schemas:s,defaultSchema:l,defaultDatabase:r,dialect:o,engineName:n,databaseName:b,hasSearch:g,searchValue:N}=a;if(s.length===0){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(ae,{content:"No schemas available",className:C.schemaEmpty}),e[0]=c):c=e[0],c}let j;if(e[1]!==b||e[2]!==r||e[3]!==l||e[4]!==o||e[5]!==n||e[6]!==g||e[7]!==s||e[8]!==N){let c;e[10]===N?c=e[11]:(c=h=>N?h.tables.some(m=>m.name.toLowerCase().includes(N.toLowerCase())):!0,e[10]=N,e[11]=c);let d=s.filter(c),x;e[12]!==b||e[13]!==r||e[14]!==l||e[15]!==o||e[16]!==n||e[17]!==g||e[18]!==N?(x=h=>(0,t.jsx)(Za,{databaseName:b,schema:h,hasSearch:g,children:(0,t.jsx)(Be,{tables:h.tables,searchValue:N,sqlTableContext:{engine:n,database:b,schema:h.name,defaultSchema:l,defaultDatabase:r,dialect:o}})},h.name),e[12]=b,e[13]=r,e[14]=l,e[15]=o,e[16]=n,e[17]=g,e[18]=N,e[19]=x):x=e[19],j=d.map(x),e[1]=b,e[2]=r,e[3]=l,e[4]=o,e[5]=n,e[6]=g,e[7]=s,e[8]=N,e[9]=j}else j=e[9];let i;return e[20]===j?i=e[21]:(i=(0,t.jsx)(t.Fragment,{children:j}),e[20]=j,e[21]=i),i},Za=a=>{let e=(0,R.c)(24),{databaseName:s,schema:l,children:r,hasSearch:o}=a,[n,b]=_.useState(o),[g,N]=_.useState(!1),j=`${s}:${l.name}`;if(xe(l.name))return r;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=q("text-sm flex flex-row gap-1 items-center cursor-pointer rounded-none",C.schema),e[0]=i):i=e[0];let c;e[1]!==n||e[2]!==g?(c=()=>{b(!n),N(!g)},e[1]=n,e[2]=g,e[3]=c):c=e[3];let d;e[4]===n?d=e[5]:(d=(0,t.jsx)(Se,{isExpanded:n}),e[4]=n,e[5]=d);let x=g&&n&&"text-foreground",h;e[6]===x?h=e[7]:(h=q("h-4 w-4 text-muted-foreground",x),e[6]=x,e[7]=h);let m;e[8]===h?m=e[9]:(m=(0,t.jsx)(Ae,{className:h}),e[8]=h,e[9]=m);let p=g&&n&&"font-semibold",u;e[10]===p?u=e[11]:(u=q(p),e[10]=p,e[11]=u);let f;e[12]!==l.name||e[13]!==u?(f=(0,t.jsx)("span",{className:u,children:l.name}),e[12]=l.name,e[13]=u,e[14]=f):f=e[14];let y;e[15]!==c||e[16]!==d||e[17]!==m||e[18]!==f||e[19]!==j?(y=(0,t.jsxs)(se,{className:i,onSelect:c,value:j,children:[d,m,f]}),e[15]=c,e[16]=d,e[17]=m,e[18]=f,e[19]=j,e[20]=y):y=e[20];let v=n&&r,w;return e[21]!==y||e[22]!==v?(w=(0,t.jsxs)(t.Fragment,{children:[y,v]}),e[21]=y,e[22]=v,e[23]=w):w=e[23],w},Be=a=>{let e=(0,R.c)(24),{tables:s,sqlTableContext:l,searchValue:r}=a,{addTableList:o}=de(),[n,b]=_.useState(!1),[g,N]=_.useState(!1),j;e[0]!==o||e[1]!==l||e[2]!==s.length||e[3]!==n?(j=async()=>{if(s.length===0&&l&&!n){b(!0),N(!0);let{engine:m,database:p,schema:u}=l,f=await Oe.request({engine:m,database:p,schema:u});if(!(f!=null&&f.tables))throw N(!1),Error("No tables available");o({tables:f.tables,sqlTableContext:l}),N(!1)}},e[0]=o,e[1]=l,e[2]=s.length,e[3]=n,e[4]=j):j=e[4];let i;e[5]!==l||e[6]!==s.length||e[7]!==n?(i=[s.length,l,n],e[5]=l,e[6]=s.length,e[7]=n,e[8]=i):i=e[8];let{isPending:c,error:d}=Te(j,i);if(c||g){let m;return e[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(we,{message:"Loading tables...",className:C.tableLoading}),e[9]=m):m=e[9],m}if(d){let m;return e[10]===d?m=e[11]:(m=(0,t.jsx)(_e,{error:d,className:C.tableLoading}),e[10]=d,e[11]=m),m}if(s.length===0){let m;return e[12]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(ae,{content:"No tables found",className:C.tableLoading}),e[12]=m):m=e[12],m}let x;if(e[13]!==r||e[14]!==l||e[15]!==s){let m;e[17]===r?m=e[18]:(m=f=>r?f.name.toLowerCase().includes(r.toLowerCase()):!0,e[17]=r,e[18]=m);let p=s.filter(m),u;e[19]!==r||e[20]!==l?(u=f=>(0,t.jsx)(Qa,{table:f,sqlTableContext:l,isSearching:!!r},f.name),e[19]=r,e[20]=l,e[21]=u):u=e[21],x=p.map(u),e[13]=r,e[14]=l,e[15]=s,e[16]=x}else x=e[16];let h;return e[22]===x?h=e[23]:(h=(0,t.jsx)(t.Fragment,{children:x}),e[22]=x,e[23]=h),h},Qa=a=>{let e=(0,R.c)(64),{table:s,sqlTableContext:l,isSearching:r}=a,{addTable:o}=de(),[n,b]=_.useState(!1),[g,N]=_.useState(!1),j=s.columns.length>0,i;e[0]!==o||e[1]!==n||e[2]!==l||e[3]!==s.name||e[4]!==j||e[5]!==g?(i=async()=>{if(n&&!j&&l&&!g){N(!0);let{engine:V,database:Y,schema:Ve}=l,ee=await Ue.request({engine:V,database:Y,schema:Ve,tableName:s.name});if(!(ee!=null&&ee.table))throw Error("No table details available");o({table:ee.table,sqlTableContext:l})}},e[0]=o,e[1]=n,e[2]=l,e[3]=s.name,e[4]=j,e[5]=g,e[6]=i):i=e[6];let c;e[7]!==n||e[8]!==j?(c=[n,j],e[7]=n,e[8]=j,e[9]=c):c=e[9];let{isFetching:d,isPending:x,error:h}=Te(i,c),m=H(oa),p=La(),{createNewCell:u}=na(),f=Le(),y;e[10]!==f||e[11]!==m||e[12]!==u||e[13]!==p||e[14]!==l||e[15]!==s?(y=()=>{Ia({autoInstantiate:m,createNewCell:u,fromCellId:p}),f((()=>{if(s.source_type==="catalog"){let V=l!=null&&l.database?`${l.database}.${s.name}`:s.name;return`${s.engine}.load_table("${V}")`}if(l)return be({table:s,columnName:"*",sqlTableContext:l});switch(s.source_type){case"local":return`mo.ui.table(${s.name})`;case"duckdb":case"connection":return be({table:s,columnName:"*",sqlTableContext:l});default:return ra(s.source_type),""}})())},e[10]=f,e[11]=m,e[12]=u,e[13]=p,e[14]=l,e[15]=s,e[16]=y):y=e[16];let v=y,w;e[17]!==s.num_columns||e[18]!==s.num_rows?(w=()=>{let V=[];return s.num_rows!=null&&V.push(`${s.num_rows} rows`),s.num_columns!=null&&V.push(`${s.num_columns} columns`),V.length===0?null:(0,t.jsx)("div",{className:"flex flex-row gap-2 items-center pl-6 group-hover:hidden",children:(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:V.join(", ")})})},e[17]=s.num_columns,e[18]=s.num_rows,e[19]=w):w=e[19];let S=w,L;e[20]!==h||e[21]!==d||e[22]!==x||e[23]!==l||e[24]!==s?(L=()=>{if(x||d)return(0,t.jsx)(we,{message:"Loading columns...",className:C.tableLoading});if(h)return(0,t.jsx)(_e,{error:h,className:C.tableLoading});let V=s.columns;return V.length===0?(0,t.jsx)(ae,{content:"No columns found",className:C.tableLoading}):V.map(Y=>(0,t.jsx)(Ya,{table:s,column:Y,sqlTableContext:l},Y.name))},e[20]=h,e[21]=d,e[22]=x,e[23]=l,e[24]=s,e[25]=L):L=e[25];let k=L,B;e[26]!==n||e[27]!==r||e[28]!==s.source_type||e[29]!==s.type?(B=()=>{if(s.source_type!=="local")return(0,t.jsx)(s.type==="table"?ze:We,{className:"h-3 w-3",strokeWidth:n||r?2.5:void 0})},e[26]=n,e[27]=r,e[28]=s.source_type,e[29]=s.type,e[30]=B):B=e[30];let M=B,E=l?`${l.database}.${l.schema}.${s.name}`:s.name,P=l&&(xe(l.schema)?C.tableSchemaless:C.tableWithSchema),O=(n||r)&&"font-semibold",$;e[31]!==P||e[32]!==O?($=q("rounded-none group h-8 cursor-pointer",P,O),e[31]=P,e[32]=O,e[33]=$):$=e[33];let F;e[34]===n?F=e[35]:(F=()=>b(!n),e[34]=n,e[35]=F);let T;e[36]===M?T=e[37]:(T=M(),e[36]=M,e[37]=T);let D;e[38]===s.name?D=e[39]:(D=(0,t.jsx)("span",{className:"text-sm",children:s.name}),e[38]=s.name,e[39]=D);let U;e[40]!==T||e[41]!==D?(U=(0,t.jsxs)("div",{className:"flex gap-2 items-center flex-1 pl-1",children:[T,D]}),e[40]=T,e[41]=D,e[42]=U):U=e[42];let z;e[43]===S?z=e[44]:(z=S(),e[43]=S,e[44]=z);let I;e[45]===v?I=e[46]:(I=ia.stopPropagation(()=>v()),e[45]=v,e[46]=I);let Z;e[47]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,t.jsx)(va,{className:"h-3 w-3"}),e[47]=Z):Z=e[47];let A;e[48]===I?A=e[49]:(A=(0,t.jsx)(te,{content:"Add table to notebook",delayDuration:400,children:(0,t.jsx)(X,{className:"group-hover:inline-flex hidden",variant:"text",size:"icon",onClick:I,children:Z})}),e[48]=I,e[49]=A);let W;e[50]!==n||e[51]!==F||e[52]!==U||e[53]!==z||e[54]!==A||e[55]!==$||e[56]!==E?(W=(0,t.jsxs)(se,{className:$,value:E,"aria-selected":n,forceMount:!0,onSelect:F,children:[U,z,A]}),e[50]=n,e[51]=F,e[52]=U,e[53]=z,e[54]=A,e[55]=$,e[56]=E,e[57]=W):W=e[57];let K;e[58]!==n||e[59]!==k?(K=n&&k(),e[58]=n,e[59]=k,e[60]=K):K=e[60];let Q;return e[61]!==W||e[62]!==K?(Q=(0,t.jsxs)(t.Fragment,{children:[W,K]}),e[61]=W,e[62]=K,e[63]=Q):Q=e[63],Q},Ya=a=>{var U,z;let e=(0,R.c)(48),{table:s,column:l,sqlTableContext:r}=a,[o,n]=_.useState(!1),b=H(fe),g=ce(Ze);b&&o&&n(!1),g(o?I=>new Set([...I,`${s.name}:${l.name}`]):I=>(I.delete(`${s.name}:${l.name}`),new Set(I)));let N=Le(),{columnsPreviews:j}=ta(),i;e[0]!==l.name||e[1]!==s.primary_keys?(i=((U=s.primary_keys)==null?void 0:U.includes(l.name))||!1,e[0]=l.name,e[1]=s.primary_keys,e[2]=i):i=e[2];let c=i,d;e[3]!==l.name||e[4]!==s.indexes?(d=((z=s.indexes)==null?void 0:z.includes(l.name))||!1,e[3]=l.name,e[4]=s.indexes,e[5]=d):d=e[5];let x=d,h;e[6]===N?h=e[7]:(h=I=>{N(I)},e[6]=N,e[7]=h);let m=h,p=et,u=o?"font-semibold":"",f;e[8]!==l.name||e[9]!==u?(f=(0,t.jsx)("span",{className:u,children:l.name}),e[8]=l.name,e[9]=u,e[10]=f):f=e[10];let y=f,v=`${s.name}.${l.name}`,w=`${s.name}.${l.name}`,S;e[11]===o?S=e[12]:(S=()=>n(!o),e[11]=o,e[12]=S);let L=r?C.columnSql:C.columnLocal,k;e[13]===L?k=e[14]:(k=q("flex flex-row gap-2 items-center flex-1",L),e[13]=L,e[14]=k);let B;e[15]!==l.type||e[16]!==y?(B=(0,t.jsx)(ya,{columnName:y,dataType:l.type}),e[15]=l.type,e[16]=y,e[17]=B):B=e[17];let M;e[18]===c?M=e[19]:(M=c&&p({tooltipContent:"Primary key",content:"PK"}),e[18]=c,e[19]=M);let E;e[20]===x?E=e[21]:(E=x&&p({tooltipContent:"Indexed",content:"IDX"}),e[20]=x,e[21]=E);let P;e[22]!==k||e[23]!==B||e[24]!==M||e[25]!==E?(P=(0,t.jsxs)("div",{className:k,children:[B,M,E]}),e[22]=k,e[23]=B,e[24]=M,e[25]=E,e[26]=P):P=e[26];let O;e[27]===l.name?O=e[28]:(O=(0,t.jsx)(te,{content:"Copy column name",delayDuration:400,children:(0,t.jsx)(X,{variant:"text",size:"icon",className:"group-hover:opacity-100 opacity-0 hover:bg-muted text-muted-foreground hover:text-foreground",children:(0,t.jsx)(Ca,{tooltip:!1,value:l.name,className:"h-3 w-3"})})}),e[27]=l.name,e[28]=O);let $;e[29]===l.external_type?$=e[30]:($=(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:l.external_type}),e[29]=l.external_type,e[30]=$);let F;e[31]!==P||e[32]!==O||e[33]!==$||e[34]!==v||e[35]!==w||e[36]!==S?(F=(0,t.jsxs)(se,{className:"rounded-none py-1 group cursor-pointer",value:w,onSelect:S,children:[P,O,$]},v),e[31]=P,e[32]=O,e[33]=$,e[34]=v,e[35]=w,e[36]=S,e[37]=F):F=e[37];let T;e[38]!==l||e[39]!==j||e[40]!==m||e[41]!==o||e[42]!==r||e[43]!==s?(T=o&&(0,t.jsx)("div",{className:q(C.columnPreview,"pr-2 py-2 bg-(--slate-1) shadow-inner border-b"),children:(0,t.jsx)(ca,{children:(0,t.jsx)(Na,{table:s,column:l,onAddColumnChart:m,preview:j.get(r?`${r.database}.${r.schema}.${s.name}:${l.name}`:`${s.name}:${l.name}`),sqlTableContext:r})})}),e[38]=l,e[39]=j,e[40]=m,e[41]=o,e[42]=r,e[43]=s,e[44]=T):T=e[44];let D;return e[45]!==F||e[46]!==T?(D=(0,t.jsxs)(t.Fragment,{children:[F,T]}),e[45]=F,e[46]=T,e[47]=D):D=e[47],D};function et(a){let{tooltipContent:e,content:s}=a;return(0,t.jsx)(te,{content:e,delayDuration:100,children:(0,t.jsx)("span",{className:"text-xs text-black bg-gray-100 dark:invert rounded px-1",children:s})})}function xs(a){return a}var G={name:"name",type:"type-value",defs:"defs-refs"},at=[{id:G.name,accessorFn:a=>[a.name,a.declaredBy],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,t.jsx)(re,{header:"Name",column:a}),cell:({getValue:a})=>{let[e,s]=a();return(0,t.jsx)(Ua,{name:e,declaredBy:s})}},{id:G.type,accessorFn:a=>[a.dataType,a.value],enableSorting:!0,sortingFn:"alphanumeric",header:({column:a})=>(0,t.jsx)(re,{header:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:"Type"}),(0,t.jsx)("span",{children:"Value"})]}),column:a}),cell:({getValue:a})=>{let[e,s]=a();return(0,t.jsxs)("div",{className:"max-w-[150px]",children:[(0,t.jsx)("div",{className:"text-ellipsis overflow-hidden whitespace-nowrap text-muted-foreground font-mono text-xs",children:e}),(0,t.jsx)("div",{className:"text-ellipsis overflow-hidden whitespace-nowrap",title:s??"",children:s})]})}},{id:G.defs,accessorFn:a=>[a.declaredBy,a.usedBy,a.name,a.declaredByNames,a.usedByNames],enableSorting:!0,sortingFn:"basic",header:({column:a})=>(0,t.jsx)(re,{header:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:"Declared By"}),(0,t.jsx)("span",{children:"Used By"})]}),column:a}),cell:({getValue:a})=>{let[e,s,l]=a(),r=o=>{let n=ue(o);n&&ie(n,l)};return(0,t.jsxs)("div",{className:"flex flex-col gap-1 py-1",children:[(0,t.jsxs)("div",{className:"flex flex-row overflow-auto gap-2 items-center",children:[(0,t.jsx)("span",{title:"Declared by",children:(0,t.jsx)(za,{className:"w-3.5 h-3.5 text-muted-foreground"})}),e.length===1?(0,t.jsx)(Fe,{variant:"focus",cellId:e[0],skipScroll:!0,onClick:()=>r(e[0])}):(0,t.jsx)("div",{className:"text-destructive flex flex-row gap-2",children:e.slice(0,3).map((o,n)=>(0,t.jsxs)("span",{className:"flex",children:[(0,t.jsx)(Fe,{variant:"focus",cellId:o,skipScroll:!0,className:"whitespace-nowrap text-destructive",onClick:()=>r(o)},o),nr.name);break;case G.type:l=J(a,r=>r.dataType);break;case G.defs:l=J(a,r=>s.get(r.declaredBy[0]));break}return e.desc?l.reverse():l}const De=(0,_.memo)(({className:a,cellIds:e,variables:s})=>{let[l,r]=_.useState([]),[o,n]=_.useState(""),b=ea(),{locale:g}=_a(),N=(0,_.useMemo)(()=>{let i=c=>{let d=b[c];return Xe(d)?`cell-${e.indexOf(c)}`:d??`cell-${e.indexOf(c)}`};return Object.values(s).map(c=>({...c,declaredByNames:c.declaredBy.map(i),usedByNames:c.usedBy.map(i)}))},[s,b,e]),j=ha({data:(0,_.useMemo)(()=>{let i=new Map;return e.forEach((c,d)=>i.set(c,d)),tt({variables:N,sort:l[0],cellIdToIndex:i})},[N,l,e]),columns:at,getCoreRowModel:ua(),onGlobalFilterChange:n,getFilteredRowModel:xa(),enableFilters:!0,enableGlobalFilter:!0,enableColumnPinning:!1,getColumnCanGlobalFilter(i){return i.columnDef.enableGlobalFilter??!0},globalFilterFn:"auto",manualSorting:!0,locale:g,onSortingChange:r,getSortedRowModel:da(),state:{sorting:l,globalFilter:o}});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ja,{className:"w-full",placeholder:"Search",value:o,onChange:i=>n(i.target.value)}),(0,t.jsxs)(Ma,{className:q("w-full text-sm flex-1 border-separate border-spacing-0",a),children:[(0,t.jsx)(qa,{children:(0,t.jsx)(Ie,{className:"whitespace-nowrap text-xs",children:j.getFlatHeaders().map(i=>(0,t.jsx)(Ba,{className:"sticky top-0 bg-background border-b",children:Ne(i.column.columnDef.header,i.getContext())},i.id))})}),(0,t.jsx)(Da,{children:j.getRowModel().rows.map(i=>(0,t.jsx)(Ie,{className:"hover:bg-accent",children:i.getVisibleCells().map(c=>(0,t.jsx)(Va,{className:"border-b",children:Ne(c.column.columnDef.cell,c.getContext())},c.id))},i.id))})]})]})});De.displayName="VariableTable";var st=ne(),lt=Ke("marimo:session-panel:state",{openSections:["variables"],hasUserInteracted:!1},He),nt=()=>{let a=(0,st.c)(24),e=la(),s=aa(),l=H(ge),r=H(qe),[o,n]=Ee(lt),b=l.length+r.length,g;a[0]!==b||a[1]!==o.hasUserInteracted||a[2]!==o.openSections?(g=!o.hasUserInteracted&&b>0?[...new Set([...o.openSections,"datasources"])]:o.openSections,a[0]=b,a[1]=o.hasUserInteracted,a[2]=o.openSections,a[3]=g):g=a[3];let N=g,j;a[4]===n?j=a[5]:(j=v=>{n({openSections:v,hasUserInteracted:!0})},a[4]=n,a[5]=j);let i=j,c=!N.includes("datasources")&&b>0,d;a[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(le,{className:"w-4 h-4"}),a[6]=d):d=a[6];let x;a[7]!==b||a[8]!==c?(x=c&&(0,t.jsx)(Sa,{variant:"secondary",className:"ml-1 px-1.5 py-0 mb-px text-[10px]",children:b}),a[7]=b,a[8]=c,a[9]=x):x=a[9];let h;a[10]===x?h=a[11]:(h=(0,t.jsx)(Ce,{className:"px-3 py-2 text-xs font-semibold uppercase tracking-wide hover:no-underline",children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[d,"Data sources",x]})}),a[10]=x,a[11]=h);let m;a[12]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)($e,{wrapperClassName:"p-0",children:(0,t.jsx)(Ka,{})}),a[12]=m):m=a[12];let p;a[13]===h?p=a[14]:(p=(0,t.jsxs)(ke,{value:"datasources",className:"border-b",children:[h,m]}),a[13]=h,a[14]=p);let u;a[15]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(Ce,{className:"px-3 py-2 text-xs font-semibold uppercase tracking-wide hover:no-underline",children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(Ge,{className:"w-4 h-4"}),"Variables"]})}),a[15]=u):u=a[15];let f;a[16]!==s||a[17]!==e?(f=(0,t.jsxs)(ke,{value:"variables",className:"border-b-0",children:[u,(0,t.jsx)($e,{wrapperClassName:"p-0",children:Object.keys(e).length===0?(0,t.jsx)("div",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No variables defined"}):(0,t.jsx)(De,{cellIds:s.inOrderIds,variables:e})})]}),a[16]=s,a[17]=e,a[18]=f):f=a[18];let y;return a[19]!==i||a[20]!==N||a[21]!==p||a[22]!==f?(y=(0,t.jsxs)(ka,{type:"multiple",value:N,onValueChange:i,className:"flex flex-col h-full overflow-auto",children:[p,f]}),a[19]=i,a[20]=N,a[21]=p,a[22]=f,a[23]=y):y=a[23],y};export{nt as default}; diff --git a/docs/assets/settings-MTlHVxz3.js b/docs/assets/settings-MTlHVxz3.js new file mode 100644 index 0000000..c04bcd1 --- /dev/null +++ b/docs/assets/settings-MTlHVxz3.js @@ -0,0 +1 @@ +import{t as e}from"./createLucideIcon-CW2xpJ57.js";var r=e("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);export{r as t}; diff --git a/docs/assets/shaderlab-CfxIQFYg.js b/docs/assets/shaderlab-CfxIQFYg.js new file mode 100644 index 0000000..9a07ba7 --- /dev/null +++ b/docs/assets/shaderlab-CfxIQFYg.js @@ -0,0 +1 @@ +import{t as a}from"./hlsl-4BS-QYIt.js";var e=Object.freeze(JSON.parse('{"displayName":"ShaderLab","name":"shaderlab","patterns":[{"begin":"//","end":"$","name":"comment.line.double-slash.shaderlab"},{"match":"\\\\b(?i:Range|Float|Int|Color|Vector|2D|3D|Cube|Any)\\\\b","name":"support.type.basic.shaderlab"},{"include":"#numbers"},{"match":"\\\\b(?i:Shader|Properties|SubShader|Pass|Category)\\\\b","name":"storage.type.structure.shaderlab"},{"match":"\\\\b(?i:Name|Tags|Fallback|CustomEditor|Cull|ZWrite|ZTest|Offset|Blend|BlendOp|ColorMask|AlphaToMask|LOD|Lighting|Stencil|Ref|ReadMask|WriteMask|Comp|CompBack|CompFront|Fail|ZFail|UsePass|GrabPass|Dependency|Material|Diffuse|Ambient|Shininess|Specular|Emission|Fog|Mode|Density|SeparateSpecular|SetTexture|Combine|ConstantColor|Matrix|AlphaTest|ColorMaterial|BindChannels|Bind)\\\\b","name":"support.type.propertyname.shaderlab"},{"match":"\\\\b(?i:Back|Front|On|Off|[ABGR]{1,3}|AmbientAndDiffuse|Emission)\\\\b","name":"support.constant.property-value.shaderlab"},{"match":"\\\\b(?i:Less|Greater|LEqual|GEqual|Equal|NotEqual|Always|Never)\\\\b","name":"support.constant.property-value.comparisonfunction.shaderlab"},{"match":"\\\\b(?i:Keep|Zero|Replace|IncrSat|DecrSat|Invert|IncrWrap|DecrWrap)\\\\b","name":"support.constant.property-value.stenciloperation.shaderlab"},{"match":"\\\\b(?i:Previous|Primary|Texture|Constant|Lerp|Double|Quad|Alpha)\\\\b","name":"support.constant.property-value.texturecombiners.shaderlab"},{"match":"\\\\b(?i:Global|Linear|Exp2?)\\\\b","name":"support.constant.property-value.fog.shaderlab"},{"match":"\\\\b(?i:Vertex|Normal|Tangent|TexCoord0|TexCoord1)\\\\b","name":"support.constant.property-value.bindchannels.shaderlab"},{"match":"\\\\b(?i:Add|Sub|RevSub|Min|Max|LogicalClear|LogicalSet|LogicalCopyInverted|LogicalCopy|LogicalNoop|LogicalInvert|LogicalAnd|LogicalNand|LogicalOr|LogicalNor|LogicalXor|LogicalEquiv|LogicalAndReverse|LogicalAndInverted|LogicalOrReverse|LogicalOrInverted)\\\\b","name":"support.constant.property-value.blendoperations.shaderlab"},{"match":"\\\\b(?i:One|Zero|SrcColor|SrcAlpha|DstColor|DstAlpha|OneMinusSrcColor|OneMinusSrcAlpha|OneMinusDstColor|OneMinusDstAlpha)\\\\b","name":"support.constant.property-value.blendfactors.shaderlab"},{"match":"\\\\[([A-Z_a-z][0-9A-Z_a-z]*)](?!\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*\\\\(\\")","name":"support.variable.reference.shaderlab"},{"begin":"(\\\\[)","end":"(])","name":"meta.attribute.shaderlab","patterns":[{"match":"\\\\G([A-Za-z]+)\\\\b","name":"support.type.attributename.shaderlab"},{"include":"#numbers"}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*\\\\(","name":"support.variable.declaration.shaderlab"},{"begin":"\\\\b(CG(?:PROGRAM|INCLUDE))\\\\b","beginCaptures":{"1":{"name":"keyword.other"}},"end":"\\\\b(ENDCG)\\\\b","endCaptures":{"1":{"name":"keyword.other"}},"name":"meta.cgblock","patterns":[{"include":"#hlsl-embedded"}]},{"begin":"\\\\b(HLSL(?:PROGRAM|INCLUDE))\\\\b","beginCaptures":{"1":{"name":"keyword.other"}},"end":"\\\\b(ENDHLSL)\\\\b","endCaptures":{"1":{"name":"keyword.other"}},"name":"meta.hlslblock","patterns":[{"include":"#hlsl-embedded"}]},{"begin":"\\"","end":"\\"","name":"string.quoted.double.shaderlab"}],"repository":{"hlsl-embedded":{"patterns":[{"include":"source.hlsl"},{"match":"\\\\b(fixed([1-4](x[1-4])?)?)\\\\b","name":"storage.type.basic.shaderlab"},{"match":"\\\\b(UNITY_MATRIX_MVP?|UNITY_MATRIX_M|UNITY_MATRIX_V|UNITY_MATRIX_P|UNITY_MATRIX_VP|UNITY_MATRIX_T_MV|UNITY_MATRIX_I_V|UNITY_MATRIX_IT_MV|_Object2World|_World2Object|unity_ObjectToWorld|unity_WorldToObject)\\\\b","name":"support.variable.transformations.shaderlab"},{"match":"\\\\b(_WorldSpaceCameraPos|_ProjectionParams|_ScreenParams|_ZBufferParams|unity_OrthoParams|unity_CameraProjection|unity_CameraInvProjection|unity_CameraWorldClipPlanes)\\\\b","name":"support.variable.camera.shaderlab"},{"match":"\\\\b((?:_|_Sin|_Cos|unity_Delta)Time)\\\\b","name":"support.variable.time.shaderlab"},{"match":"\\\\b(_LightColor0|_WorldSpaceLightPos0|_LightMatrix0|unity_4LightPosX0|unity_4LightPosY0|unity_4LightPosZ0|unity_4LightAtten0|unity_LightColor|_LightColor|unity_LightPosition|unity_LightAtten|unity_SpotDirection)\\\\b","name":"support.variable.lighting.shaderlab"},{"match":"\\\\b(unity_AmbientSky|unity_AmbientEquator|unity_AmbientGround|UNITY_LIGHTMODEL_AMBIENT|unity_FogColor|unity_FogParams)\\\\b","name":"support.variable.fog.shaderlab"},{"match":"\\\\b(unity_LODFade)\\\\b","name":"support.variable.various.shaderlab"},{"match":"\\\\b(SHADER_API_(?:D3D9|D3D11|GLCORE|OPENGL|GLES3??|METAL|D3D11_9X|PSSL|XBOXONE|PSP2|WIIU|MOBILE|GLSL))\\\\b","name":"support.variable.preprocessor.targetplatform.shaderlab"},{"match":"\\\\b(SHADER_TARGET)\\\\b","name":"support.variable.preprocessor.targetmodel.shaderlab"},{"match":"\\\\b(UNITY_VERSION)\\\\b","name":"support.variable.preprocessor.unityversion.shaderlab"},{"match":"\\\\b(UNITY_(?:BRANCH|FLATTEN|NO_SCREENSPACE_SHADOWS|NO_LINEAR_COLORSPACE|NO_RGBM|NO_DXT5nm|FRAMEBUFFER_FETCH_AVAILABLE|USE_RGBA_FOR_POINT_SHADOWS|ATTEN_CHANNEL|HALF_TEXEL_OFFSET|UV_STARTS_AT_TOP|MIGHT_NOT_HAVE_DEPTH_Texture|NEAR_CLIP_VALUE|VPOS_TYPE|CAN_COMPILE_TESSELLATION|COMPILER_HLSL|COMPILER_HLSL2GLSL|COMPILER_CG|REVERSED_Z))\\\\b","name":"support.variable.preprocessor.platformdifference.shaderlab"},{"match":"\\\\b(UNITY_PASS_(?:FORWARDBASE|FORWARDADD|DEFERRED|SHADOWCASTER|PREPASSBASE|PREPASSFINAL))\\\\b","name":"support.variable.preprocessor.texture2D.shaderlab"},{"match":"\\\\b(appdata_(?:base|tan|full|img))\\\\b","name":"support.class.structures.shaderlab"},{"match":"\\\\b(SurfaceOutputStandardSpecular|SurfaceOutputStandard|SurfaceOutput|Input)\\\\b","name":"support.class.surface.shaderlab"}]},"numbers":{"patterns":[{"match":"\\\\b([0-9]+\\\\.?[0-9]*)\\\\b","name":"constant.numeric.shaderlab"}]}},"scopeName":"source.shaderlab","embeddedLangs":["hlsl"],"aliases":["shader"]}')),r=[...a,e];export{r as default}; diff --git a/docs/assets/share-CXQVxivL.js b/docs/assets/share-CXQVxivL.js new file mode 100644 index 0000000..54849bc --- /dev/null +++ b/docs/assets/share-CXQVxivL.js @@ -0,0 +1 @@ +import{t as O}from"./chunk-LvLJmgfZ.js";import{d as j}from"./hotkeys-uKX61F1_.js";import{t as T}from"./use-toast-Bzf3rpev.js";function k(){try{window.location.reload()}catch(w){j.error("Failed to reload page",w),T({title:"Failed to reload page",description:"Please refresh the page manually."})}}var F=O(((w,y)=>{var C=(function(){var g=String.fromCharCode,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",b={};function _(r,e){if(!b[r]){b[r]={};for(var a=0;a>>8,a[n*2+1]=f%256}return a},decompressFromUint8Array:function(r){if(r==null)return d.decompress(r);for(var e=Array(r.length/2),a=0,n=e.length;a>=1}else{for(s=1,n=0;n>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n>=1;h--,h==0&&(h=2**c,c++),f[A]=l++,p=String(m)}if(p!==""){if(Object.prototype.hasOwnProperty.call(v,p)){if(p.charCodeAt(0)<256){for(n=0;n>=1}else{for(s=1,n=0;n>=1}h--,h==0&&(h=2**c,c++),delete v[p]}else for(s=f[p],n=0;n>=1;h--,h==0&&(h=2**c,c++)}for(s=2,n=0;n>=1;for(;;)if(o<<=1,i==e-1){u.push(a(o));break}else i++;return u.join("")},decompress:function(r){return r==null?"":r==""?null:d._decompress(r.length,32768,function(e){return r.charCodeAt(e)})},_decompress:function(r,e,a){var n=[],s=4,f=4,v=3,m="",A=[],p,h,l,c,u,o,i,t={val:a(0),position:e,index:1};for(p=0;p<3;p+=1)n[p]=p;for(l=0,u=2**2,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;i=g(l);break;case 2:return""}for(n[3]=i,h=i,A.push(i);;){if(t.index>r)return"";for(l=0,u=2**v,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;switch(i=l){case 0:for(l=0,u=2**8,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 1:for(l=0,u=2**16,o=1;o!=u;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=e,t.val=a(t.index++)),l|=(c>0?1:0)*o,o<<=1;n[f++]=g(l),i=f-1,s--;break;case 2:return A.join("")}if(s==0&&(s=2**v,v++),n[i])m=n[i];else if(i===f)m=h+h.charAt(0);else return null;A.push(m),n[f++]=h+m.charAt(0),s--,h=m,s==0&&(s=2**v,v++)}}};return d})();typeof define=="function"&&define.amd?define(function(){return C}):y!==void 0&&y!=null?y.exports=C:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return C})})),P=F();function E(w){let{code:y,baseUrl:C="https://marimo.app"}=w,g=new URL(C);return y&&(g.hash=`#code/${(0,P.compressToEncodedURIComponent)(y)}`),g.href}export{F as n,k as r,E as t}; diff --git a/docs/assets/shell-Bf8Q5ES6.js b/docs/assets/shell-Bf8Q5ES6.js new file mode 100644 index 0000000..ef42581 --- /dev/null +++ b/docs/assets/shell-Bf8Q5ES6.js @@ -0,0 +1 @@ +import{t as e}from"./shell-D8pt0LM7.js";export{e as shell}; diff --git a/docs/assets/shell-D8pt0LM7.js b/docs/assets/shell-D8pt0LM7.js new file mode 100644 index 0000000..463ccd2 --- /dev/null +++ b/docs/assets/shell-D8pt0LM7.js @@ -0,0 +1 @@ +var f={};function c(e,t){for(var r=0;r1&&e.eat("$");var r=e.next();return/['"({]/.test(r)?(t.tokens[0]=a(r,r=="("?"quote":r=="{"?"def":"string"),u(e,t)):(/\d/.test(r)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function g(e){return function(t,r){return t.sol()&&t.string==e&&r.tokens.shift(),t.skipToEnd(),"string.special"}}function u(e,t){return(t.tokens[0]||d)(e,t)}const w={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return u(e,t)},languageData:{autocomplete:l.concat(k,h),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}};export{w as t}; diff --git a/docs/assets/shellscript-9NbB6rUg.js b/docs/assets/shellscript-9NbB6rUg.js new file mode 100644 index 0000000..d45fb4a --- /dev/null +++ b/docs/assets/shellscript-9NbB6rUg.js @@ -0,0 +1 @@ +import{t}from"./shellscript-CkXVEK14.js";export{t as default}; diff --git a/docs/assets/shellscript-CkXVEK14.js b/docs/assets/shellscript-CkXVEK14.js new file mode 100644 index 0000000..d03a025 --- /dev/null +++ b/docs/assets/shellscript-CkXVEK14.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?\\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?\`{|]+)"},{"begin":"(?:\\\\G|(?\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);\`{|}]|[\\\\t ]*#|])(?>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\['\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?\u276F\u279C\\\\p{Greek}])\\\\s+(.*)$"},{"match":"^.+$","name":"meta.output.shell-session"}],"scopeName":"text.shell-session","embeddedLangs":["shellscript"],"aliases":["console"]}')),t=[...e,s];export{t as default}; diff --git a/docs/assets/sieve-D515TmZq.js b/docs/assets/sieve-D515TmZq.js new file mode 100644 index 0000000..1f4469f --- /dev/null +++ b/docs/assets/sieve-D515TmZq.js @@ -0,0 +1 @@ +import{t as e}from"./sieve-DGXZ82l_.js";export{e as sieve}; diff --git a/docs/assets/sieve-DGXZ82l_.js b/docs/assets/sieve-DGXZ82l_.js new file mode 100644 index 0000000..a8c0706 --- /dev/null +++ b/docs/assets/sieve-DGXZ82l_.js @@ -0,0 +1 @@ +function o(n){for(var t={},e=n.split(" "),r=0;r2&&r.token&&typeof r.token!="string"){n.pending=[];for(var u=2;u-1)return null;var d=n.indent.length-1,p=t[n.state];t:for(;;){for(var r=0;ri.indexOf(r)<0).forEach(r=>{t[r]===void 0?t[r]=e[r]:Fe(e[r])&&Fe(t[r])&&Object.keys(e[r]).length>0&&Ae(t[r],e[r])})}var qe={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function K(){let t=typeof document<"u"?document:{};return Ae(t,qe),t}var Ot={document:qe,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function W(){let t=typeof window<"u"?window:{};return Ae(t,Ot),t}function It(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function At(t){let e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function Ue(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Se(){return Date.now()}function _t(t){let e=W(),i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function _e(t,e){e===void 0&&(e="x");let i=W(),r,a,s,c=_t(t);return i.WebKitCSSMatrix?(a=c.transform||c.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(n=>n.replace(",",".")).join(", ")),s=new i.WebKitCSSMatrix(a==="none"?"":a)):(s=c.MozTransform||c.OTransform||c.MsTransform||c.msTransform||c.transform||c.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),e==="x"&&(a=i.WebKitCSSMatrix?s.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),e==="y"&&(a=i.WebKitCSSMatrix?s.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5])),a||0}function xe(t){return typeof t=="object"&&!!t&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function $t(t){return typeof window<"u"&&window.HTMLElement!==void 0?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function R(){let t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(s)<0);for(let s=0,c=a.length;ss?"next":"prev",u=(f,d)=>p==="next"&&f>=d||p==="prev"&&f<=d,b=()=>{n=new Date().getTime(),c===null&&(c=n);let f=Math.max(Math.min((n-c)/o,1),0),d=s+(.5-Math.cos(f*Math.PI)/2)*(i-s);if(u(d,i)&&(d=i),e.wrapperEl.scrollTo({[r]:d}),u(d,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:d})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(b)};b()}function F(t,e){e===void 0&&(e="");let i=W(),r=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&r.push(...t.assignedElements()),e?r.filter(a=>a.matches(e)):r}function Dt(t,e){let i=[e];for(;i.length>0;){let r=i.shift();if(t===r)return!0;i.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function Gt(t,e){let i=W(),r=e.contains(t);return!r&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(r=[...e.assignedElements()].includes(t),r||(r=Dt(t,e))),r}function Te(t){try{console.warn(t);return}catch{}}function de(t,e){e===void 0&&(e=[]);let i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:It(e)),i}function $e(t){let e=W(),i=K(),r=t.getBoundingClientRect(),a=i.body,s=t.clientTop||a.clientTop||0,c=t.clientLeft||a.clientLeft||0,n=t===e?e.scrollY:t.scrollTop,o=t===e?e.scrollX:t.scrollLeft;return{top:r.top+n-s,left:r.left+o-c}}function Nt(t,e){let i=[];for(;t.previousElementSibling;){let r=t.previousElementSibling;e?r.matches(e)&&i.push(r):i.push(r),t=r}return i}function Bt(t,e){let i=[];for(;t.nextElementSibling;){let r=t.nextElementSibling;e?r.matches(e)&&i.push(r):i.push(r),t=r}return i}function ie(t,e){return W().getComputedStyle(t,null).getPropertyValue(e)}function Ce(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function re(t,e){let i=[],r=t.parentElement;for(;r;)e?r.matches(e)&&i.push(r):i.push(r),r=r.parentElement;return i}function De(t,e,i){let r=W();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function H(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function ce(t,e){e===void 0&&(e=""),typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:i=>i}).createHTML(e):t.innerHTML=e}function Xt(t){let{swiper:e,extendParams:i,on:r,emit:a}=t;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s,c=K();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};let n=c.createElement("div");function o(l,g){let E=e.params.virtual;if(E.cache&&e.virtual.cache[g])return e.virtual.cache[g];let v;return E.renderSlide?(v=E.renderSlide.call(e,l,g),typeof v=="string"&&(ce(n,v),v=n.children[0])):v=e.isElement?de("swiper-slide"):de("div",e.params.slideClass),v.setAttribute("data-swiper-slide-index",g),E.renderSlide||ce(v,l),E.cache&&(e.virtual.cache[g]=v),v}function p(l,g,E){let{slidesPerView:v,slidesPerGroup:m,centeredSlides:h,loop:w,initialSlide:y}=e.params;if(g&&!w&&y>0)return;let{addSlidesBefore:P,addSlidesAfter:A}=e.params.virtual,{from:I,to:T,slides:x,slidesGrid:C,offset:L}=e.virtual;e.params.cssMode||e.updateActiveIndex();let O=E===void 0?e.activeIndex||0:E,_;_=e.rtlTranslate?"right":e.isHorizontal()?"left":"top";let z,G;h?(z=Math.floor(v/2)+m+A,G=Math.floor(v/2)+m+P):(z=v+(m-1)+A,G=(w?v:m)+P);let X=O-G,B=O+z;w||(X=Math.max(X,0),B=Math.min(B,x.length-1));let N=(e.slidesGrid[X]||0)-(e.slidesGrid[0]||0);w&&O>=G?(X-=G,h||(N+=e.slidesGrid[0])):w&&O{S.style[_]=`${N-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),a("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:N,from:X,to:B,slides:(function(){let S=[];for(let D=X;D<=B;D+=1)S.push(x[D]);return S})()}),e.params.virtual.renderExternalUpdate?j():a("virtualUpdate");return}let U=[],ee=[],ue=S=>{let D=S;return S<0?D=x.length+S:D>=x.length&&(D-=x.length),D};if(l)e.slides.filter(S=>S.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(S=>{S.remove()});else for(let S=I;S<=T;S+=1)if(SB){let D=ue(S);e.slides.filter(Y=>Y.matches(`.${e.params.slideClass}[data-swiper-slide-index="${D}"], swiper-slide[data-swiper-slide-index="${D}"]`)).forEach(Y=>{Y.remove()})}let M=w?-x.length:0,k=w?x.length*2:x.length;for(let S=M;S=X&&S<=B){let D=ue(S);T===void 0||l?ee.push(D):(S>T&&ee.push(D),S{e.slidesEl.append(o(x[S],S))}),w)for(let S=U.length-1;S>=0;--S){let D=U[S];e.slidesEl.prepend(o(x[D],D))}else U.sort((S,D)=>D-S),U.forEach(S=>{e.slidesEl.prepend(o(x[S],S))});F(e.slidesEl,".swiper-slide, swiper-slide").forEach(S=>{S.style[_]=`${N-Math.abs(e.cssOverflowAdjustment())}px`}),j()}function u(l){if(typeof l=="object"&&"length"in l)for(let g=0;g{let y=m[w],P=y.getAttribute("data-swiper-slide-index");P&&y.setAttribute("data-swiper-slide-index",parseInt(P,10)+v),h[parseInt(w,10)+v]=y}),e.virtual.cache=h}p(!0),e.slideTo(E,0)}function f(l){if(l==null)return;let g=e.activeIndex;if(Array.isArray(l))for(let E=l.length-1;E>=0;--E)e.params.virtual.cache&&(delete e.virtual.cache[l[E]],Object.keys(e.virtual.cache).forEach(v=>{v>l&&(e.virtual.cache[v-1]=e.virtual.cache[v],e.virtual.cache[v-1].setAttribute("data-swiper-slide-index",v-1),delete e.virtual.cache[v])})),e.virtual.slides.splice(l[E],1),l[E]{E>l&&(e.virtual.cache[E-1]=e.virtual.cache[E],e.virtual.cache[E-1].setAttribute("data-swiper-slide-index",E-1),delete e.virtual.cache[E])})),e.virtual.slides.splice(l,1),l{if(!e.params.virtual.enabled)return;let l;if(e.passedParams.virtual.slides===void 0){let g=[...e.slidesEl.children].filter(E=>E.matches(`.${e.params.slideClass}, swiper-slide`));g&&g.length&&(e.virtual.slides=[...g],l=!0,g.forEach((E,v)=>{E.setAttribute("data-swiper-slide-index",v),e.virtual.cache[v]=E,E.remove()}))}l||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,p(!1,!0)}),r("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{p()},100)):p())}),r("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&fe(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:u,prependSlide:b,removeSlide:f,removeAllSlides:d,update:p})}function Je(t){let{swiper:e,extendParams:i,on:r,emit:a}=t,s=K(),c=W();e.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function n(u){if(!e.enabled)return;let{rtlTranslate:b}=e,f=u;f.originalEvent&&(f=f.originalEvent);let d=f.keyCode||f.charCode,l=e.params.keyboard.pageUpDown,g=l&&d===33,E=l&&d===34,v=d===37,m=d===39,h=d===38,w=d===40;if(!e.allowSlideNext&&(e.isHorizontal()&&m||e.isVertical()&&w||E)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&h||g))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey)&&!(s.activeElement&&(s.activeElement.isContentEditable||s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea")))){if(e.params.keyboard.onlyInViewport&&(g||E||v||m||h||w)){let y=!1;if(re(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&re(e.el,`.${e.params.slideActiveClass}`).length===0)return;let P=e.el,A=P.clientWidth,I=P.clientHeight,T=c.innerWidth,x=c.innerHeight,C=$e(P);b&&(C.left-=P.scrollLeft);let L=[[C.left,C.top],[C.left+A,C.top],[C.left,C.top+I],[C.left+A,C.top+I]];for(let O=0;O=0&&_[0]<=T&&_[1]>=0&&_[1]<=x){if(_[0]===0&&_[1]===0)continue;y=!0}}if(!y)return}e.isHorizontal()?((g||E||v||m)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),((E||m)&&!b||(g||v)&&b)&&e.slideNext(),((g||v)&&!b||(E||m)&&b)&&e.slidePrev()):((g||E||h||w)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(E||w)&&e.slideNext(),(g||h)&&e.slidePrev()),a("keyPress",d)}}function o(){e.keyboard.enabled||(s.addEventListener("keydown",n),e.keyboard.enabled=!0)}function p(){e.keyboard.enabled&&(s.removeEventListener("keydown",n),e.keyboard.enabled=!1)}r("init",()=>{e.params.keyboard.enabled&&o()}),r("destroy",()=>{e.keyboard.enabled&&p()}),Object.assign(e.keyboard,{enable:o,disable:p})}function Ze(t,e,i,r){return t.params.createElements&&Object.keys(r).forEach(a=>{if(!i[a]&&i.auto===!0){let s=F(t.el,`.${r[a]}`)[0];s||(s=de("div",r[a]),s.className=r[a],t.el.append(s)),i[a]=s,e[a]=s}}),i}function Qe(t){let{swiper:e,extendParams:i,on:r,emit:a}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function s(l){let g;return l&&typeof l=="string"&&e.isElement&&(g=e.el.querySelector(l)||e.hostEl.querySelector(l),g)?g:(l&&(typeof l=="string"&&(g=[...document.querySelectorAll(l)]),e.params.uniqueNavElements&&typeof l=="string"&&g&&g.length>1&&e.el.querySelectorAll(l).length===1?g=e.el.querySelector(l):g&&g.length===1&&(g=g[0])),l&&!g?l:g)}function c(l,g){let E=e.params.navigation;l=H(l),l.forEach(v=>{v&&(v.classList[g?"add":"remove"](...E.disabledClass.split(" ")),v.tagName==="BUTTON"&&(v.disabled=g),e.params.watchOverflow&&e.enabled&&v.classList[e.isLocked?"add":"remove"](E.lockClass))})}function n(){let{nextEl:l,prevEl:g}=e.navigation;if(e.params.loop){c(g,!1),c(l,!1);return}c(g,e.isBeginning&&!e.params.rewind),c(l,e.isEnd&&!e.params.rewind)}function o(l){l.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function p(l){l.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function u(){let l=e.params.navigation;if(e.params.navigation=Ze(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(l.nextEl||l.prevEl))return;let g=s(l.nextEl),E=s(l.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:E}),g=H(g),E=H(E);let v=(m,h)=>{m&&m.addEventListener("click",h==="next"?p:o),!e.enabled&&m&&m.classList.add(...l.lockClass.split(" "))};g.forEach(m=>v(m,"next")),E.forEach(m=>v(m,"prev"))}function b(){let{nextEl:l,prevEl:g}=e.navigation;l=H(l),g=H(g);let E=(v,m)=>{v.removeEventListener("click",m==="next"?p:o),v.classList.remove(...e.params.navigation.disabledClass.split(" "))};l.forEach(v=>E(v,"next")),g.forEach(v=>E(v,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?d():(u(),n())}),r("toEdge fromEdge lock unlock",()=>{n()}),r("destroy",()=>{b()}),r("enable disable",()=>{let{nextEl:l,prevEl:g}=e.navigation;if(l=H(l),g=H(g),e.enabled){n();return}[...l,...g].filter(E=>!!E).forEach(E=>E.classList.add(e.params.navigation.lockClass))}),r("click",(l,g)=>{let{nextEl:E,prevEl:v}=e.navigation;E=H(E),v=H(v);let m=g.target,h=v.includes(m)||E.includes(m);if(e.isElement&&!h){let w=g.path||g.composedPath&&g.composedPath();w&&(h=w.find(y=>E.includes(y)||v.includes(y)))}if(e.params.navigation.hideOnClick&&!h){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===m||e.pagination.el.contains(m)))return;let w;E.length?w=E[0].classList.contains(e.params.navigation.hiddenClass):v.length&&(w=v[0].classList.contains(e.params.navigation.hiddenClass)),a(w===!0?"navigationShow":"navigationHide"),[...E,...v].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});let f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),n()},d=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),b()};Object.assign(e.navigation,{enable:f,disable:d,update:n,init:u,destroy:b})}function he(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function et(t){let{swiper:e,extendParams:i,on:r,emit:a}=t,s="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let c,n=0;function o(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function p(m,h){let{bulletActiveClass:w}=e.params.pagination;m&&(m=m[`${h==="prev"?"previous":"next"}ElementSibling`],m&&(m.classList.add(`${w}-${h}`),m=m[`${h==="prev"?"previous":"next"}ElementSibling`],m&&m.classList.add(`${w}-${h}-${h}`)))}function u(m,h,w){if(m%=w,h%=w,h===m+1)return"next";if(h===m-1)return"previous"}function b(m){let h=m.target.closest(he(e.params.pagination.bulletClass));if(!h)return;m.preventDefault();let w=Ce(h)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===w)return;let y=u(e.realIndex,w,e.slides.length);y==="next"?e.slideNext():y==="previous"?e.slidePrev():e.slideToLoop(w)}else e.slideTo(w)}function f(){let m=e.rtl,h=e.params.pagination;if(o())return;let w=e.pagination.el;w=H(w);let y,P,A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,I=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(P=e.previousRealIndex||0,y=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):e.snapIndex===void 0?(P=e.previousIndex||0,y=e.activeIndex||0):(y=e.snapIndex,P=e.previousSnapIndex),h.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){let T=e.pagination.bullets,x,C,L;if(h.dynamicBullets&&(c=De(T[0],e.isHorizontal()?"width":"height",!0),w.forEach(O=>{O.style[e.isHorizontal()?"width":"height"]=`${c*(h.dynamicMainBullets+4)}px`}),h.dynamicMainBullets>1&&P!==void 0&&(n+=y-(P||0),n>h.dynamicMainBullets-1?n=h.dynamicMainBullets-1:n<0&&(n=0)),x=Math.max(y-n,0),C=x+(Math.min(T.length,h.dynamicMainBullets)-1),L=(C+x)/2),T.forEach(O=>{let _=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${h.bulletActiveClass}${z}`)].map(z=>typeof z=="string"&&z.includes(" ")?z.split(" "):z).flat();O.classList.remove(..._)}),w.length>1)T.forEach(O=>{let _=Ce(O);_===y?O.classList.add(...h.bulletActiveClass.split(" ")):e.isElement&&O.setAttribute("part","bullet"),h.dynamicBullets&&(_>=x&&_<=C&&O.classList.add(...`${h.bulletActiveClass}-main`.split(" ")),_===x&&p(O,"prev"),_===C&&p(O,"next"))});else{let O=T[y];if(O&&O.classList.add(...h.bulletActiveClass.split(" ")),e.isElement&&T.forEach((_,z)=>{_.setAttribute("part",z===y?"bullet-active":"bullet")}),h.dynamicBullets){let _=T[x],z=T[C];for(let G=x;G<=C;G+=1)T[G]&&T[G].classList.add(...`${h.bulletActiveClass}-main`.split(" "));p(_,"prev"),p(z,"next")}}if(h.dynamicBullets){let O=Math.min(T.length,h.dynamicMainBullets+4),_=(c*O-c)/2-L*c,z=m?"right":"left";T.forEach(G=>{G.style[e.isHorizontal()?z:"top"]=`${_}px`})}}w.forEach((T,x)=>{if(h.type==="fraction"&&(T.querySelectorAll(he(h.currentClass)).forEach(C=>{C.textContent=h.formatFractionCurrent(y+1)}),T.querySelectorAll(he(h.totalClass)).forEach(C=>{C.textContent=h.formatFractionTotal(I)})),h.type==="progressbar"){let C;C=h.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";let L=(y+1)/I,O=1,_=1;C==="horizontal"?O=L:_=L,T.querySelectorAll(he(h.progressbarFillClass)).forEach(z=>{z.style.transform=`translate3d(0,0,0) scaleX(${O}) scaleY(${_})`,z.style.transitionDuration=`${e.params.speed}ms`})}h.type==="custom"&&h.renderCustom?(ce(T,h.renderCustom(e,y+1,I)),x===0&&a("paginationRender",T)):(x===0&&a("paginationRender",T),a("paginationUpdate",T)),e.params.watchOverflow&&e.enabled&&T.classList[e.isLocked?"add":"remove"](h.lockClass)})}function d(){let m=e.params.pagination;if(o())return;let h=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,w=e.pagination.el;w=H(w);let y="";if(m.type==="bullets"){let P=e.params.loop?Math.ceil(h/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&P>h&&(P=h);for(let A=0;A`}m.type==="fraction"&&(y=m.renderFraction?m.renderFraction.call(e,m.currentClass,m.totalClass):` / `),m.type==="progressbar"&&(y=m.renderProgressbar?m.renderProgressbar.call(e,m.progressbarFillClass):``),e.pagination.bullets=[],w.forEach(P=>{m.type!=="custom"&&ce(P,y||""),m.type==="bullets"&&e.pagination.bullets.push(...P.querySelectorAll(he(m.bulletClass)))}),m.type!=="custom"&&a("paginationRender",w[0])}function l(){e.params.pagination=Ze(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});let m=e.params.pagination;if(!m.el)return;let h;typeof m.el=="string"&&e.isElement&&(h=e.el.querySelector(m.el)),!h&&typeof m.el=="string"&&(h=[...document.querySelectorAll(m.el)]),h||(h=m.el),!(!h||h.length===0)&&(e.params.uniqueNavElements&&typeof m.el=="string"&&Array.isArray(h)&&h.length>1&&(h=[...e.el.querySelectorAll(m.el)],h.length>1&&(h=h.find(w=>re(w,".swiper")[0]===e.el))),Array.isArray(h)&&h.length===1&&(h=h[0]),Object.assign(e.pagination,{el:h}),h=H(h),h.forEach(w=>{m.type==="bullets"&&m.clickable&&w.classList.add(...(m.clickableClass||"").split(" ")),w.classList.add(m.modifierClass+m.type),w.classList.add(e.isHorizontal()?m.horizontalClass:m.verticalClass),m.type==="bullets"&&m.dynamicBullets&&(w.classList.add(`${m.modifierClass}${m.type}-dynamic`),n=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&w.classList.add(m.progressbarOppositeClass),m.clickable&&w.addEventListener("click",b),e.enabled||w.classList.add(m.lockClass)}))}function g(){let m=e.params.pagination;if(o())return;let h=e.pagination.el;h&&(h=H(h),h.forEach(w=>{w.classList.remove(m.hiddenClass),w.classList.remove(m.modifierClass+m.type),w.classList.remove(e.isHorizontal()?m.horizontalClass:m.verticalClass),m.clickable&&(w.classList.remove(...(m.clickableClass||"").split(" ")),w.removeEventListener("click",b))})),e.pagination.bullets&&e.pagination.bullets.forEach(w=>w.classList.remove(...m.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;let m=e.params.pagination,{el:h}=e.pagination;h=H(h),h.forEach(w=>{w.classList.remove(m.horizontalClass,m.verticalClass),w.classList.add(e.isHorizontal()?m.horizontalClass:m.verticalClass)})}),r("init",()=>{e.params.pagination.enabled===!1?v():(l(),d(),f())}),r("activeIndexChange",()=>{e.snapIndex===void 0&&f()}),r("snapIndexChange",()=>{f()}),r("snapGridLengthChange",()=>{d(),f()}),r("destroy",()=>{g()}),r("enable disable",()=>{let{el:m}=e.pagination;m&&(m=H(m),m.forEach(h=>h.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{f()}),r("click",(m,h)=>{let w=h.target,y=H(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&y&&y.length>0&&!w.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&w===e.navigation.nextEl||e.navigation.prevEl&&w===e.navigation.prevEl))return;y[0].classList.contains(e.params.pagination.hiddenClass)===!0?a("paginationShow"):a("paginationHide"),y.forEach(P=>P.classList.toggle(e.params.pagination.hiddenClass))}});let E=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:m}=e.pagination;m&&(m=H(m),m.forEach(h=>h.classList.remove(e.params.pagination.paginationDisabledClass))),l(),d(),f()},v=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:m}=e.pagination;m&&(m=H(m),m.forEach(h=>h.classList.add(e.params.pagination.paginationDisabledClass))),g()};Object.assign(e.pagination,{enable:E,disable:v,render:d,update:f,init:l,destroy:g})}function tt(t){let{swiper:e,extendParams:i,on:r,emit:a}=t,s=W();i({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let c=1,n=!1,o=!1,p={x:0,y:0},u,b,f=[],d={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},l={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},E=1;Object.defineProperty(e.zoom,"scale",{get(){return E},set(M){if(E!==M){let k=d.imageEl,S=d.slideEl;a("zoomChange",M,k,S)}E=M}});function v(){if(f.length<2)return 1;let M=f[0].pageX,k=f[0].pageY,S=f[1].pageX,D=f[1].pageY;return Math.sqrt((S-M)**2+(D-k)**2)}function m(){let M=e.params.zoom,k=d.imageWrapEl.getAttribute("data-swiper-zoom")||M.maxRatio;if(M.limitToOriginalSize&&d.imageEl&&d.imageEl.naturalWidth){let S=d.imageEl.naturalWidth/d.imageEl.offsetWidth;return Math.min(S,k)}return k}function h(){if(f.length<2)return{x:null,y:null};let M=d.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-M.x-s.scrollX)/c,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-M.y-s.scrollY)/c]}function w(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function y(M){let k=w();return!!(M.target.matches(k)||e.slides.filter(S=>S.contains(M.target)).length>0)}function P(M){let k=`.${e.params.zoom.containerClass}`;return!!(M.target.matches(k)||[...e.hostEl.querySelectorAll(k)].filter(S=>S.contains(M.target)).length>0)}function A(M){if(M.pointerType==="mouse"&&f.splice(0,f.length),!y(M))return;let k=e.params.zoom;if(u=!1,b=!1,f.push(M),!(f.length<2)){if(u=!0,d.scaleStart=v(),!d.slideEl){d.slideEl=M.target.closest(`.${e.params.slideClass}, swiper-slide`),d.slideEl||(d.slideEl=e.slides[e.activeIndex]);let S=d.slideEl.querySelector(`.${k.containerClass}`);if(S&&(S=S.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=S,S?d.imageWrapEl=re(d.imageEl,`.${k.containerClass}`)[0]:d.imageWrapEl=void 0,!d.imageWrapEl){d.imageEl=void 0;return}d.maxRatio=m()}if(d.imageEl){let[S,D]=h();d.originX=S,d.originY=D,d.imageEl.style.transitionDuration="0ms"}n=!0}}function I(M){if(!y(M))return;let k=e.params.zoom,S=e.zoom,D=f.findIndex(Y=>Y.pointerId===M.pointerId);D>=0&&(f[D]=M),!(f.length<2)&&(b=!0,d.scaleMove=v(),d.imageEl&&(S.scale=d.scaleMove/d.scaleStart*c,S.scale>d.maxRatio&&(S.scale=d.maxRatio-1+(S.scale-d.maxRatio+1)**.5),S.scaleY.pointerId===M.pointerId);D>=0&&f.splice(D,1),!(!u||!b)&&(u=!1,b=!1,d.imageEl&&(S.scale=Math.max(Math.min(S.scale,d.maxRatio),k.minRatio),d.imageEl.style.transitionDuration=`${e.params.speed}ms`,d.imageEl.style.transform=`translate3d(0,0,0) scale(${S.scale})`,c=S.scale,n=!1,S.scale>1&&d.slideEl?d.slideEl.classList.add(`${k.zoomedSlideClass}`):S.scale<=1&&d.slideEl&&d.slideEl.classList.remove(`${k.zoomedSlideClass}`),S.scale===1&&(d.originX=0,d.originY=0,d.slideEl=void 0)))}let x;function C(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function L(){clearTimeout(x),e.touchEventsData.preventTouchMoveFromPointerMove=!0,x=setTimeout(()=>{e.destroyed||C()})}function O(M){let k=e.device;if(!d.imageEl||l.isTouched)return;k.android&&M.cancelable&&M.preventDefault(),l.isTouched=!0;let S=f.length>0?f[0]:M;l.touchesStart.x=S.pageX,l.touchesStart.y=S.pageY}function _(M){let k=M.pointerType==="mouse"&&e.params.zoom.panOnMouseMove;if(!y(M)||!P(M))return;let S=e.zoom;if(!d.imageEl)return;if(!l.isTouched||!d.slideEl){k&&X(M);return}if(k){X(M);return}l.isMoved||(l.width=d.imageEl.offsetWidth||d.imageEl.clientWidth,l.height=d.imageEl.offsetHeight||d.imageEl.clientHeight,l.startX=_e(d.imageWrapEl,"x")||0,l.startY=_e(d.imageWrapEl,"y")||0,d.slideWidth=d.slideEl.offsetWidth,d.slideHeight=d.slideEl.offsetHeight,d.imageWrapEl.style.transitionDuration="0ms");let D=l.width*S.scale,Y=l.height*S.scale;if(l.minX=Math.min(d.slideWidth/2-D/2,0),l.maxX=-l.minX,l.minY=Math.min(d.slideHeight/2-Y/2,0),l.maxY=-l.minY,l.touchesCurrent.x=f.length>0?f[0].pageX:M.pageX,l.touchesCurrent.y=f.length>0?f[0].pageY:M.pageY,Math.max(Math.abs(l.touchesCurrent.x-l.touchesStart.x),Math.abs(l.touchesCurrent.y-l.touchesStart.y))>5&&(e.allowClick=!1),!l.isMoved&&!n){if(e.isHorizontal()&&(Math.floor(l.minX)===Math.floor(l.startX)&&l.touchesCurrent.xl.touchesStart.x)){l.isTouched=!1,C();return}if(!e.isHorizontal()&&(Math.floor(l.minY)===Math.floor(l.startY)&&l.touchesCurrent.yl.touchesStart.y)){l.isTouched=!1,C();return}}M.cancelable&&M.preventDefault(),M.stopPropagation(),L(),l.isMoved=!0;let J=(S.scale-c)/(d.maxRatio-e.params.zoom.minRatio),{originX:Z,originY:te}=d;l.currentX=l.touchesCurrent.x-l.touchesStart.x+l.startX+J*(l.width-Z*2),l.currentY=l.touchesCurrent.y-l.touchesStart.y+l.startY+J*(l.height-te*2),l.currentXl.maxX&&(l.currentX=l.maxX-1+(l.currentX-l.maxX+1)**.8),l.currentYl.maxY&&(l.currentY=l.maxY-1+(l.currentY-l.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=l.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=l.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(l.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(l.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(l.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(l.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=l.touchesCurrent.x,g.prevPositionY=l.touchesCurrent.y,g.prevTime=Date.now(),d.imageWrapEl.style.transform=`translate3d(${l.currentX}px, ${l.currentY}px,0)`}function z(){let M=e.zoom;if(f.length=0,!d.imageEl)return;if(!l.isTouched||!l.isMoved){l.isTouched=!1,l.isMoved=!1;return}l.isTouched=!1,l.isMoved=!1;let k=300,S=300,D=g.x*k,Y=l.currentX+D,J=g.y*S,Z=l.currentY+J;g.x!==0&&(k=Math.abs((Y-l.currentX)/g.x)),g.y!==0&&(S=Math.abs((Z-l.currentY)/g.y));let te=Math.max(k,S);l.currentX=Y,l.currentY=Z;let ae=l.width*M.scale,V=l.height*M.scale;l.minX=Math.min(d.slideWidth/2-ae/2,0),l.maxX=-l.minX,l.minY=Math.min(d.slideHeight/2-V/2,0),l.maxY=-l.minY,l.currentX=Math.max(Math.min(l.currentX,l.maxX),l.minX),l.currentY=Math.max(Math.min(l.currentY,l.maxY),l.minY),d.imageWrapEl.style.transitionDuration=`${te}ms`,d.imageWrapEl.style.transform=`translate3d(${l.currentX}px, ${l.currentY}px,0)`}function G(){let M=e.zoom;d.slideEl&&e.activeIndex!==e.slides.indexOf(d.slideEl)&&(d.imageEl&&(d.imageEl.style.transform="translate3d(0,0,0) scale(1)"),d.imageWrapEl&&(d.imageWrapEl.style.transform="translate3d(0,0,0)"),d.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),M.scale=1,c=1,d.slideEl=void 0,d.imageEl=void 0,d.imageWrapEl=void 0,d.originX=0,d.originY=0)}function X(M){if(c<=1||!d.imageWrapEl||!y(M)||!P(M))return;let k=s.getComputedStyle(d.imageWrapEl).transform,S=new s.DOMMatrix(k);if(!o){o=!0,p.x=M.clientX,p.y=M.clientY,l.startX=S.e,l.startY=S.f,l.width=d.imageEl.offsetWidth||d.imageEl.clientWidth,l.height=d.imageEl.offsetHeight||d.imageEl.clientHeight,d.slideWidth=d.slideEl.offsetWidth,d.slideHeight=d.slideEl.offsetHeight;return}let D=(M.clientX-p.x)*-3,Y=(M.clientY-p.y)*-3,J=l.width*c,Z=l.height*c,te=d.slideWidth,ae=d.slideHeight,V=Math.min(te/2-J/2,0),q=-V,me=Math.min(ae/2-Z/2,0),we=-me,le=Math.max(Math.min(l.startX+D,q),V),ne=Math.max(Math.min(l.startY+Y,we),me);d.imageWrapEl.style.transitionDuration="0ms",d.imageWrapEl.style.transform=`translate3d(${le}px, ${ne}px, 0)`,p.x=M.clientX,p.y=M.clientY,l.startX=le,l.startY=ne,l.currentX=le,l.currentY=ne}function B(M){let k=e.zoom,S=e.params.zoom;if(!d.slideEl){M&&M.target&&(d.slideEl=M.target.closest(`.${e.params.slideClass}, swiper-slide`)),d.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?d.slideEl=F(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:d.slideEl=e.slides[e.activeIndex]);let ye=d.slideEl.querySelector(`.${S.containerClass}`);ye&&(ye=ye.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=ye,ye?d.imageWrapEl=re(d.imageEl,`.${S.containerClass}`)[0]:d.imageWrapEl=void 0}if(!d.imageEl||!d.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),d.slideEl.classList.add(`${S.zoomedSlideClass}`);let D,Y,J,Z,te,ae,V,q,me,we,le,ne,be,Ee,Le,ke,ze,Oe;l.touchesStart.x===void 0&&M?(D=M.pageX,Y=M.pageY):(D=l.touchesStart.x,Y=l.touchesStart.y);let Ie=c,oe=typeof M=="number"?M:null;c===1&&oe&&(D=void 0,Y=void 0,l.touchesStart.x=void 0,l.touchesStart.y=void 0);let je=m();k.scale=oe||je,c=oe||je,M&&!(c===1&&oe)?(ze=d.slideEl.offsetWidth,Oe=d.slideEl.offsetHeight,J=$e(d.slideEl).left+s.scrollX,Z=$e(d.slideEl).top+s.scrollY,te=J+ze/2-D,ae=Z+Oe/2-Y,me=d.imageEl.offsetWidth||d.imageEl.clientWidth,we=d.imageEl.offsetHeight||d.imageEl.clientHeight,le=me*k.scale,ne=we*k.scale,be=Math.min(ze/2-le/2,0),Ee=Math.min(Oe/2-ne/2,0),Le=-be,ke=-Ee,Ie>0&&oe&&typeof l.currentX=="number"&&typeof l.currentY=="number"?(V=l.currentX*k.scale/Ie,q=l.currentY*k.scale/Ie):(V=te*k.scale,q=ae*k.scale),VLe&&(V=Le),qke&&(q=ke)):(V=0,q=0),oe&&k.scale===1&&(d.originX=0,d.originY=0),l.currentX=V,l.currentY=q,d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform=`translate3d(${V}px, ${q}px,0)`,d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform=`translate3d(0,0,0) scale(${k.scale})`}function N(){let M=e.zoom,k=e.params.zoom;if(!d.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?d.slideEl=F(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:d.slideEl=e.slides[e.activeIndex];let S=d.slideEl.querySelector(`.${k.containerClass}`);S&&(S=S.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),d.imageEl=S,S?d.imageWrapEl=re(d.imageEl,`.${k.containerClass}`)[0]:d.imageWrapEl=void 0}!d.imageEl||!d.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),M.scale=1,c=1,l.currentX=void 0,l.currentY=void 0,l.touchesStart.x=void 0,l.touchesStart.y=void 0,d.imageWrapEl.style.transitionDuration="300ms",d.imageWrapEl.style.transform="translate3d(0,0,0)",d.imageEl.style.transitionDuration="300ms",d.imageEl.style.transform="translate3d(0,0,0) scale(1)",d.slideEl.classList.remove(`${k.zoomedSlideClass}`),d.slideEl=void 0,d.originX=0,d.originY=0,e.params.zoom.panOnMouseMove&&(p={x:0,y:0},o&&(o=!1,l.startX=0,l.startY=0)))}function j(M){let k=e.zoom;k.scale&&k.scale!==1?N():B(M)}function U(){return{passiveListener:e.params.passiveListeners?{passive:!0,capture:!1}:!1,activeListenerWithCapture:e.params.passiveListeners?{passive:!1,capture:!0}:!0}}function ee(){let M=e.zoom;if(M.enabled)return;M.enabled=!0;let{passiveListener:k,activeListenerWithCapture:S}=U();e.wrapperEl.addEventListener("pointerdown",A,k),e.wrapperEl.addEventListener("pointermove",I,S),["pointerup","pointercancel","pointerout"].forEach(D=>{e.wrapperEl.addEventListener(D,T,k)}),e.wrapperEl.addEventListener("pointermove",_,S)}function ue(){let M=e.zoom;if(!M.enabled)return;M.enabled=!1;let{passiveListener:k,activeListenerWithCapture:S}=U();e.wrapperEl.removeEventListener("pointerdown",A,k),e.wrapperEl.removeEventListener("pointermove",I,S),["pointerup","pointercancel","pointerout"].forEach(D=>{e.wrapperEl.removeEventListener(D,T,k)}),e.wrapperEl.removeEventListener("pointermove",_,S)}r("init",()=>{e.params.zoom.enabled&&ee()}),r("destroy",()=>{ue()}),r("touchStart",(M,k)=>{e.zoom.enabled&&O(k)}),r("touchEnd",(M,k)=>{e.zoom.enabled&&z()}),r("doubleTap",(M,k)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&j(k)}),r("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&G()}),r("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&G()}),Object.assign(e.zoom,{enable:ee,disable:ue,in:B,out:N,toggle:j})}var it;function Yt(){let t=W(),e=K();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function rt(){return it||(it=Yt()),it}var st;function Wt(t){let{userAgent:e}=t===void 0?{}:t,i=rt(),r=W(),a=r.navigator.platform,s=e||r.navigator.userAgent,c={ios:!1,android:!1},n=r.screen.width,o=r.screen.height,p=s.match(/(Android);?[\s\/]+([\d.]+)?/),u=s.match(/(iPad).*OS\s([\d_]+)/),b=s.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=a==="Win32",l=a==="MacIntel";return!u&&l&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${n}x${o}`)>=0&&(u=s.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),l=!1),p&&!d&&(c.os="android",c.android=!0),(u||f||b)&&(c.os="ios",c.ios=!0),c}function at(t){return t===void 0&&(t={}),st||(st=Wt(t)),st}var lt;function Ht(){let t=W(),e=at(),i=!1;function r(){let n=t.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}if(r()){let n=String(t.navigator.userAgent);if(n.includes("Version/")){let[o,p]=n.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));i=o<16||o===16&&p<2}}let a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=r(),c=s||a&&e.ios;return{isSafari:i||s,needPerspectiveFix:i,need3dFix:c,isWebView:a}}function nt(){return lt||(lt=Ht()),lt}function jt(t){let{swiper:e,on:i,emit:r}=t,a=W(),s=null,c=null,n=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(b=>{c=a.requestAnimationFrame(()=>{let{width:f,height:d}=e,l=f,g=d;b.forEach(E=>{let{contentBoxSize:v,contentRect:m,target:h}=E;h&&h!==e.el||(l=m?m.width:(v[0]||v).inlineSize,g=m?m.height:(v[0]||v).blockSize)}),(l!==f||g!==d)&&n()})}),s.observe(e.el))},p=()=>{c&&a.cancelAnimationFrame(c),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},u=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&a.ResizeObserver!==void 0){o();return}a.addEventListener("resize",n),a.addEventListener("orientationchange",u)}),i("destroy",()=>{p(),a.removeEventListener("resize",n),a.removeEventListener("orientationchange",u)})}function Vt(t){let{swiper:e,extendParams:i,on:r,emit:a}=t,s=[],c=W(),n=function(o,p){p===void 0&&(p={});let u=new(c.MutationObserver||c.WebkitMutationObserver)(b=>{if(e.__preventObserver__)return;if(b.length===1){a("observerUpdate",b[0]);return}let f=function(){a("observerUpdate",b[0])};c.requestAnimationFrame?c.requestAnimationFrame(f):c.setTimeout(f,0)});u.observe(o,{attributes:p.attributes===void 0?!0:p.attributes,childList:e.isElement||(p.childList===void 0?!0:p).childList,characterData:p.characterData===void 0?!0:p.characterData}),s.push(u)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",()=>{if(e.params.observer){if(e.params.observeParents){let o=re(e.hostEl);for(let p=0;p{s.forEach(o=>{o.disconnect()}),s.splice(0,s.length)})}var Rt={on(t,e,i){let r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;let a=i?"unshift":"push";return t.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][a](e)}),r},once(t,e,i){let r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function a(){r.off(t,a),a.__emitterProxy&&delete a.__emitterProxy;var s=[...arguments];e.apply(r,s)}return a.__emitterProxy=e,r.on(t,a,i)},onAny(t,e){let i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;let r=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[r](t),i},offAny(t){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;let i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){let i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(r=>{e===void 0?i.eventsListeners[r]=[]:i.eventsListeners[r]&&i.eventsListeners[r].forEach((a,s)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&i.eventsListeners[r].splice(s,1)})}),i},emit(){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,r;var a=[...arguments];return typeof a[0]=="string"||Array.isArray(a[0])?(e=a[0],i=a.slice(1,a.length),r=t):(e=a[0].events,i=a[0].data,r=a[0].context||t),i.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(r,[s,...i])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(c=>{c.apply(r,i)})}),t}};function Ft(){let t=this,e,i,r=t.el;e=t.params.width!==void 0&&t.params.width!==null?t.params.width:r.clientWidth,i=t.params.height!==void 0&&t.params.height!==null?t.params.height:r.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ie(r,"padding-left")||0,10)-parseInt(ie(r,"padding-right")||0,10),i=i-parseInt(ie(r,"padding-top")||0,10)-parseInt(ie(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function qt(){let t=this;function e(x,C){return parseFloat(x.getPropertyValue(t.getDirectionLabel(C))||0)}let i=t.params,{wrapperEl:r,slidesEl:a,size:s,rtlTranslate:c,wrongRTL:n}=t,o=t.virtual&&i.virtual.enabled,p=o?t.virtual.slides.length:t.slides.length,u=F(a,`.${t.params.slideClass}, swiper-slide`),b=o?t.virtual.slides.length:u.length,f=[],d=[],l=[],g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let E=i.slidesOffsetAfter;typeof E=="function"&&(E=i.slidesOffsetAfter.call(t));let v=t.snapGrid.length,m=t.slidesGrid.length,h=i.spaceBetween,w=-g,y=0,P=0;if(s===void 0)return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*s:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,u.forEach(x=>{c?x.style.marginLeft="":x.style.marginRight="",x.style.marginBottom="",x.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(fe(r,"--swiper-centered-offset-before",""),fe(r,"--swiper-centered-offset-after",""));let A=i.grid&&i.grid.rows>1&&t.grid;A?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let I,T=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(x=>i.breakpoints[x].slidesPerView!==void 0).length>0;for(let x=0;x1&&f.push(t.virtualSize-s)}if(o&&i.loop){let x=l[0]+h;if(i.slidesPerGroup>1){let C=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),L=x*i.slidesPerGroup;for(let O=0;O!i.cssMode||i.loop?!0:L!==u.length-1).forEach(C=>{C.style[x]=`${h}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let x=0;l.forEach(L=>{x+=L+(h||0)}),x-=h;let C=x>s?x-s:0;f=f.map(L=>L<=0?-g:L>C?C+E:L)}if(i.centerInsufficientSlides){let x=0;l.forEach(L=>{x+=L+(h||0)}),x-=h;let C=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(x+C{f[_]=O-L}),d.forEach((O,_)=>{d[_]=O+L})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:d,slidesSizesGrid:l}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){fe(r,"--swiper-centered-offset-before",`${-f[0]}px`),fe(r,"--swiper-centered-offset-after",`${t.size/2-l[l.length-1]/2}px`);let x=-t.snapGrid[0],C=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+x),t.slidesGrid=t.slidesGrid.map(L=>L+C)}if(b!==p&&t.emit("slidesLengthChange"),f.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),d.length!==m&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!o&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){let x=`${i.containerModifierClass}backface-hidden`,C=t.el.classList.contains(x);b<=i.maxBackfaceHiddenSlides?C||t.el.classList.add(x):C&&t.el.classList.remove(x)}}function Ut(t){let e=this,i=[],r=e.virtual&&e.params.virtual.enabled,a=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);let c=n=>r?e.slides[e.getSlideIndexByData(n)]:e.slides[n];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(n=>{i.push(n)});else for(s=0;se.slides.length&&!r)break;i.push(c(n))}else i.push(c(e.activeIndex));for(s=0;sa?n:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function Kt(){let t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Jt(t){t===void 0&&(t=this&&this.translate||0);let e=this,i=e.params,{slides:r,rtlTranslate:a,snapGrid:s}=e;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&e.updateSlidesOffset();let c=-t;a&&(c=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let n=i.spaceBetween;typeof n=="string"&&n.indexOf("%")>=0?n=parseFloat(n.replace("%",""))/100*e.size:typeof n=="string"&&(n=parseFloat(n));for(let o=0;o=0&&d<=e.size-e.slidesSizesGrid[o],E=d>=0&&d1&&l<=e.size||d<=0&&l>=e.size;E&&(e.visibleSlides.push(p),e.visibleSlidesIndexes.push(o)),ot(p,E,i.slideVisibleClass),ot(p,g,i.slideFullyVisibleClass),p.progress=a?-b:b,p.originalProgress=a?-f:f}}function Zt(t){let e=this;if(t===void 0){let u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}let i=e.params,r=e.maxTranslate()-e.minTranslate(),{progress:a,isBeginning:s,isEnd:c,progressLoop:n}=e,o=s,p=c;if(r===0)a=0,s=!0,c=!0;else{a=(t-e.minTranslate())/r;let u=Math.abs(t-e.minTranslate())<1,b=Math.abs(t-e.maxTranslate())<1;s=u||a<=0,c=b||a>=1,u&&(a=0),b&&(a=1)}if(i.loop){let u=e.getSlideIndexByData(0),b=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[u],d=e.slidesGrid[b],l=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);n=g>=f?(g-f)/l:(g+l-d)/l,n>1&&--n}Object.assign(e,{progress:a,progressLoop:n,isBeginning:s,isEnd:c}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!o&&e.emit("reachBeginning toEdge"),c&&!p&&e.emit("reachEnd toEdge"),(o&&!s||p&&!c)&&e.emit("fromEdge"),e.emit("progress",a)}var Ge=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Qt(){let t=this,{slides:e,params:i,slidesEl:r,activeIndex:a}=t,s=t.virtual&&i.virtual.enabled,c=t.grid&&i.grid&&i.grid.rows>1,n=b=>F(r,`.${i.slideClass}${b}, swiper-slide${b}`)[0],o,p,u;if(s)if(i.loop){let b=a-t.virtual.slidesBefore;b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),o=n(`[data-swiper-slide-index="${b}"]`)}else o=n(`[data-swiper-slide-index="${a}"]`);else c?(o=e.find(b=>b.column===a),u=e.find(b=>b.column===a+1),p=e.find(b=>b.column===a-1)):o=e[a];o&&(c||(u=Bt(o,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u&&(u=e[0]),p=Nt(o,`.${i.slideClass}, swiper-slide`)[0],i.loop)),e.forEach(b=>{Ge(b,b===o,i.slideActiveClass),Ge(b,b===u,i.slideNextClass),Ge(b,b===p,i.slidePrevClass)}),t.emitSlidesClasses()}var Me=(t,e)=>{if(!t||t.destroyed||!t.params)return;let i=e.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(i){let r=i.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(i.shadowRoot?r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},Ne=(t,e)=>{if(!t.slides[e])return;let i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Be=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext,i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);let r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),a=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){let c=a,n=[c-e];n.push(...Array.from({length:e}).map((o,p)=>c+r+p)),t.slides.forEach((o,p)=>{n.includes(o.column)&&Ne(t,p)});return}let s=a+r-1;if(t.params.rewind||t.params.loop)for(let c=a-e;c<=s+e;c+=1){let n=(c%i+i)%i;(ns)&&Ne(t,n)}else for(let c=Math.max(a-e,0);c<=Math.min(s+e,i-1);c+=1)c!==a&&(c>s||c=e[s]&&(a=s):r>=e[s]&&r=e[s]&&r{let l=d-e.virtual.slidesBefore;return l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),l};if(o===void 0&&(o=ei(e)),r.indexOf(i)>=0)p=r.indexOf(i);else{let d=Math.min(a.slidesPerGroupSkip,o);p=d+Math.floor((o-d)/a.slidesPerGroup)}if(p>=r.length&&(p=r.length-1),o===s&&!e.params.loop){p!==n&&(e.snapIndex=p,e.emit("snapIndexChange"));return}if(o===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(o);return}let b=e.grid&&a.grid&&a.grid.rows>1,f;if(e.virtual&&a.virtual.enabled&&a.loop)f=u(o);else if(b){let d=e.slides.find(g=>g.column===o),l=parseInt(d.getAttribute("data-swiper-slide-index"),10);Number.isNaN(l)&&(l=Math.max(e.slides.indexOf(d),0)),f=Math.floor(l/a.grid.rows)}else if(e.slides[o]){let d=e.slides[o].getAttribute("data-swiper-slide-index");f=d?parseInt(d,10):o}else f=o;Object.assign(e,{previousSnapIndex:n,snapIndex:p,previousRealIndex:c,realIndex:f,previousIndex:s,activeIndex:o}),e.initialized&&Be(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(c!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function ii(t,e){let i=this,r=i.params,a=t.closest(`.${r.slideClass}, swiper-slide`);!a&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(n=>{!a&&n.matches&&n.matches(`.${r.slideClass}, swiper-slide`)&&(a=n)});let s=!1,c;if(a){for(let n=0;no?o:r&&tc?"next":s=o.length&&(E=o.length-1);let v=-o[E];if(n.normalizeSlideIndex)for(let y=0;y=A&&(c=y):P>=A&&P=A&&Ps.translate&&v>s.minTranslate():vs.translate&&v>s.maxTranslate()&&(b||0)!==c))return!1;c!==(u||0)&&i&&s.emit("beforeSlideChangeStart"),s.updateProgress(v);let m;m=c>b?"next":c0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{d[y?"scrollLeft":"scrollTop"]=P})):d[y?"scrollLeft":"scrollTop"]=P,h&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Ke({swiper:s,targetPosition:P,side:y?"left":"top"}),!0;d.scrollTo({[y?"left":"top"]:P,behavior:"smooth"})}return!0}let w=nt().isSafari;return h&&!a&&w&&s.isElement&&s.virtual.update(!1,!1,c),s.setTransition(e),s.setTranslate(v),s.updateActiveIndex(c),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,r),s.transitionStart(i,m),e===0?s.transitionEnd(i,m):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(y){!s||s.destroyed||y.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,m))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function hi(t,e,i,r){t===void 0&&(t=0),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));let a=this;if(a.destroyed)return;e===void 0&&(e=a.params.speed);let s=a.grid&&a.params.grid&&a.params.grid.rows>1,c=t;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)c+=a.virtual.slidesBefore;else{let n;if(s){let f=c*a.params.grid.rows;n=a.slides.find(d=>d.getAttribute("data-swiper-slide-index")*1===f).column}else n=a.getSlideIndexByData(c);let o=s?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:p}=a.params,u=a.params.slidesPerView;u==="auto"?u=a.slidesPerViewDynamic():(u=Math.ceil(parseFloat(a.params.slidesPerView,10)),p&&u%2==0&&(u+=1));let b=o-nd.getAttribute("data-swiper-slide-index")*1===f).column}else c=a.getSlideIndexByData(c)}return requestAnimationFrame(()=>{a.slideTo(c,e,i,r)}),a}function vi(t,e,i){e===void 0&&(e=!0);let r=this,{enabled:a,params:s,animating:c}=r;if(!a||r.destroyed)return r;t===void 0&&(t=r.params.speed);let n=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(n=Math.max(r.slidesPerViewDynamic("current",!0),1));let o=r.activeIndex{r.slideTo(r.activeIndex+o,t,e,i)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,t,e,i):r.slideTo(r.activeIndex+o,t,e,i)}function gi(t,e,i){e===void 0&&(e=!0);let r=this,{params:a,snapGrid:s,slidesGrid:c,rtlTranslate:n,enabled:o,animating:p}=r;if(!o||r.destroyed)return r;t===void 0&&(t=r.params.speed);let u=r.virtual&&a.virtual.enabled;if(a.loop){if(p&&!u&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}let b=n?r.translate:-r.translate;function f(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}let d=f(b),l=s.map(m=>f(m)),g=a.freeMode&&a.freeMode.enabled,E=s[l.indexOf(d)-1];if(E===void 0&&(a.cssMode||g)){let m;s.forEach((h,w)=>{d>=h&&(m=w)}),m!==void 0&&(E=g?s[m]:s[m>0?m-1:m])}let v=0;if(E!==void 0&&(v=c.indexOf(E),v<0&&(v=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),a.rewind&&r.isBeginning){let m=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(m,t,e,i)}else if(a.loop&&r.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(v,t,e,i)}),!0;return r.slideTo(v,t,e,i)}function wi(t,e,i){e===void 0&&(e=!0);let r=this;if(!r.destroyed)return t===void 0&&(t=r.params.speed),r.slideTo(r.activeIndex,t,e,i)}function bi(t,e,i,r){e===void 0&&(e=!0),r===void 0&&(r=.5);let a=this;if(a.destroyed)return;t===void 0&&(t=a.params.speed);let s=a.activeIndex,c=Math.min(a.params.slidesPerGroupSkip,s),n=c+Math.floor((s-c)/a.params.slidesPerGroup),o=a.rtlTranslate?a.translate:-a.translate;if(o>=a.snapGrid[n]){let p=a.snapGrid[n],u=a.snapGrid[n+1];o-p>(u-p)*r&&(s+=a.params.slidesPerGroup)}else{let p=a.snapGrid[n-1],u=a.snapGrid[n];o-p<=(u-p)*r&&(s-=a.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,a.slidesGrid.length-1),a.slideTo(s,t,e,i)}function Ei(){let t=this;if(t.destroyed)return;let{params:e,slidesEl:i}=t,r=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView,a=t.getSlideIndexWhenGrid(t.clickedIndex),s,c=t.isElement?"swiper-slide":`.${e.slideClass}`,n=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(s):a>(n?(t.slides.length-r)/2-(t.params.grid.rows-1):t.slides.length-r)?(t.loopFix(),a=t.getSlideIndex(F(i,`${c}[data-swiper-slide-index="${s}"]`)[0]),Ue(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}var yi={slideTo:fi,slideToLoop:hi,slideNext:vi,slidePrev:gi,slideReset:wi,slideToClosest:bi,slideToClickedSlide:Ei};function Si(t,e){let i=this,{params:r,slidesEl:a}=i;if(!r.loop||i.virtual&&i.params.virtual.enabled)return;let s=()=>{F(a,`.${r.slideClass}, swiper-slide`).forEach((f,d)=>{f.setAttribute("data-swiper-slide-index",d)})},c=()=>{let f=F(a,`.${r.slideBlankClass}`);f.forEach(d=>{d.remove()}),f.length>0&&(i.recalcSlides(),i.updateSlides())},n=i.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||n)&&c();let o=r.slidesPerGroup*(n?r.grid.rows:1),p=i.slides.length%o!==0,u=n&&i.slides.length%r.grid.rows!==0,b=f=>{for(let d=0;d1;u.lengthz.classList.contains(l.slideActiveClass))):T=s;let x=r==="next"||!r,C=r==="prev"||!r,L=0,O=0,_=(w?u[s].column:s)+(g&&a===void 0?-v/2+.5:0);if(_=0;--B)u[B].column===X&&y.push(B)}else y.push(A-G-1)}}else if(_+v>A-h){O=Math.max(_-(A-h*2),m),I&&(O=Math.max(O,v-A+E+1));for(let z=0;z{X.column===G&&P.push(B)}):P.push(G)}}if(p.__preventObserver__=!0,requestAnimationFrame(()=>{p.__preventObserver__=!1}),p.params.effect==="cards"&&u.length{u[z].swiperLoopMoveDOM=!0,d.prepend(u[z]),u[z].swiperLoopMoveDOM=!1}),x&&P.forEach(z=>{u[z].swiperLoopMoveDOM=!0,d.append(u[z]),u[z].swiperLoopMoveDOM=!1}),p.recalcSlides(),l.slidesPerView==="auto"?p.updateSlides():w&&(y.length>0&&C||P.length>0&&x)&&p.slides.forEach((z,G)=>{p.grid.updateSlide(G,z,p.slides)}),l.watchSlidesProgress&&p.updateSlidesOffset(),i){if(y.length>0&&C){if(e===void 0){let z=p.slidesGrid[T],G=p.slidesGrid[T+L]-z;o?p.setTranslate(p.translate-G):(p.slideTo(T+Math.ceil(L),0,!1,!0),a&&(p.touchEventsData.startTranslate=p.touchEventsData.startTranslate-G,p.touchEventsData.currentTranslate=p.touchEventsData.currentTranslate-G))}else if(a){let z=w?y.length/l.grid.rows:y.length;p.slideTo(p.activeIndex+z,0,!1,!0),p.touchEventsData.currentTranslate=p.translate}}else if(P.length>0&&x)if(e===void 0){let z=p.slidesGrid[T],G=p.slidesGrid[T-O]-z;o?p.setTranslate(p.translate-G):(p.slideTo(T-O,0,!1,!0),a&&(p.touchEventsData.startTranslate=p.touchEventsData.startTranslate-G,p.touchEventsData.currentTranslate=p.touchEventsData.currentTranslate-G))}else{let z=w?P.length/l.grid.rows:P.length;p.slideTo(p.activeIndex-z,0,!1,!0)}}if(p.allowSlidePrev=b,p.allowSlideNext=f,p.controller&&p.controller.control&&!n){let z={slideRealIndex:e,direction:r,setTranslate:a,activeSlideIndex:s,byController:!0};Array.isArray(p.controller.control)?p.controller.control.forEach(G=>{!G.destroyed&&G.params.loop&&G.loopFix({...z,slideTo:G.params.slidesPerView===l.slidesPerView?i:!1})}):p.controller.control instanceof p.constructor&&p.controller.control.params.loop&&p.controller.control.loopFix({...z,slideTo:p.controller.control.params.slidesPerView===l.slidesPerView?i:!1})}p.emit("loopFix")}function Ti(){let t=this,{params:e,slidesEl:i}=t;if(!e.loop||!i||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();let r=[];t.slides.forEach(a=>{let s=a.swiperSlideIndex===void 0?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[s]=a}),t.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{i.append(a)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Ci={loopCreate:Si,loopFix:xi,loopDestroy:Ti};function Mi(t){let e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;let i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Pi(){let t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Li={setGrabCursor:Mi,unsetGrabCursor:Pi};function ki(t,e){e===void 0&&(e=this);function i(r){if(!r||r===K()||r===W())return null;r.assignedSlot&&(r=r.assignedSlot);let a=r.closest(t);return!a&&!r.getRootNode?null:a||i(r.getRootNode().host)}return i(e)}function ct(t,e,i){let r=W(),{params:a}=t,s=a.edgeSwipeDetection,c=a.edgeSwipeThreshold;return s&&(i<=c||i>=r.innerWidth-c)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function zi(t){let e=this,i=K(),r=t;r.originalEvent&&(r=r.originalEvent);let a=e.touchEventsData;if(r.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==r.pointerId)return;a.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(a.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){ct(e,r,r.targetTouches[0].pageX);return}let{params:s,touches:c,enabled:n}=e;if(!n||!s.simulateTouch&&r.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let o=r.target;if(s.touchEventsTarget==="wrapper"&&!Gt(o,e.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||a.isTouched&&a.isMoved)return;let p=!!s.noSwipingClass&&s.noSwipingClass!=="",u=r.composedPath?r.composedPath():r.path;p&&r.target&&r.target.shadowRoot&&u&&(o=u[0]);let b=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(f?ki(b,o):o.closest(b))){e.allowClick=!0;return}if(s.swipeHandler&&!o.closest(s.swipeHandler))return;c.currentX=r.pageX,c.currentY=r.pageY;let d=c.currentX,l=c.currentY;if(!ct(e,r,d))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=d,c.startY=l,a.touchStartTime=Se(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(a.allowThresholdMove=!1);let g=!0;o.matches(a.focusableElements)&&(g=!1,o.nodeName==="SELECT"&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==o&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!o.matches(a.focusableElements))&&i.activeElement.blur();let E=g&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||E)&&!o.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",r)}function Oi(t){let e=K(),i=this,r=i.touchEventsData,{params:a,touches:s,rtlTranslate:c,enabled:n}=i;if(!n||!a.simulateTouch&&t.pointerType==="mouse")return;let o=t;if(o.originalEvent&&(o=o.originalEvent),o.type==="pointermove"&&(r.touchId!==null||o.pointerId!==r.pointerId))return;let p;if(o.type==="touchmove"){if(p=[...o.changedTouches].find(y=>y.identifier===r.touchId),!p||p.identifier!==r.touchId)return}else p=o;if(!r.isTouched){r.startMoving&&r.isScrolling&&i.emit("touchMoveOpposite",o);return}let u=p.pageX,b=p.pageY;if(o.preventedByNestedSwiper){s.startX=u,s.startY=b;return}if(!i.allowTouchMove){o.target.matches(r.focusableElements)||(i.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:u,startY:b,currentX:u,currentY:b}),r.touchStartTime=Se());return}if(a.touchReleaseOnEdges&&!a.loop)if(i.isVertical()){if(bs.startY&&i.translate>=i.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(c&&(u>s.startX&&-i.translate<=i.maxTranslate()||u=i.minTranslate()))return;if(!c&&(us.startX&&i.translate>=i.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(r.focusableElements)&&e.activeElement!==o.target&&o.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&o.target===e.activeElement&&o.target.matches(r.focusableElements)){r.isMoved=!0,i.allowClick=!1;return}r.allowTouchCallbacks&&i.emit("touchMove",o),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=b;let f=s.currentX-s.startX,d=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(f**2+d**2)=25&&(y=Math.atan2(Math.abs(d),Math.abs(f))*180/Math.PI,r.isScrolling=i.isHorizontal()?y>a.touchAngle:90-y>a.touchAngle)}if(r.isScrolling&&i.emit("touchMoveOpposite",o),r.startMoving===void 0&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||o.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;i.allowClick=!1,!a.cssMode&&o.cancelable&&o.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&o.stopPropagation();let l=i.isHorizontal()?f:d,g=i.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;a.oneWayMovement&&(l=Math.abs(l)*(c?1:-1),g=Math.abs(g)*(c?1:-1)),s.diff=l,l*=a.touchRatio,c&&(l=-l,g=-g);let E=i.touchesDirection;i.swipeDirection=l>0?"prev":"next",i.touchesDirection=g>0?"prev":"next";let v=i.params.loop&&!a.cssMode,m=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!r.isMoved){if(v&&m&&i.loopFix({direction:i.swipeDirection}),r.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){let y=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(y)}r.allowMomentumBounce=!1,a.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",o)}if(new Date().getTime(),a._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&E!==i.touchesDirection&&v&&m&&Math.abs(l)>=1){Object.assign(s,{startX:u,startY:b,currentX:u,currentY:b,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}i.emit("sliderMove",o),r.isMoved=!0,r.currentTranslate=l+r.startTranslate;let h=!0,w=a.resistanceRatio;if(a.touchReleaseOnEdges&&(w=0),l>0?(v&&m&&r.allowThresholdMove&&r.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(a.slidesPerView!=="auto"&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>i.minTranslate()&&(h=!1,a.resistance&&(r.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+r.startTranslate+l)**w))):l<0&&(v&&m&&r.allowThresholdMove&&r.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(a.slidesPerView!=="auto"&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(a.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(l)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(r.currentTranslate),i.setTranslate(r.currentTranslate))}function Ii(t){let e=this,i=e.touchEventsData,r=t;r.originalEvent&&(r=r.originalEvent);let a;if(r.type==="touchend"||r.type==="touchcancel"){if(a=[...r.changedTouches].find(w=>w.identifier===i.touchId),!a||a.identifier!==i.touchId)return}else{if(i.touchId!==null||r.pointerId!==i.pointerId)return;a=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;let{params:s,touches:c,rtlTranslate:n,slidesGrid:o,enabled:p}=e;if(!p||!s.simulateTouch&&r.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",r),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);let u=Se(),b=u-i.touchStartTime;if(e.allowClick){let w=r.path||r.composedPath&&r.composedPath();e.updateClickedSlide(w&&w[0]||r.target,w),e.emit("tap click",r),b<300&&u-i.lastClickTime<300&&e.emit("doubleTap doubleClick",r)}if(i.lastClickTime=Se(),Ue(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||c.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let f;if(f=s.followFinger?n?e.translate:-e.translate:-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}let d=f>=-e.maxTranslate()&&!e.params.loop,l=0,g=e.slidesSizesGrid[0];for(let w=0;w=o[w])&&(l=w,g=o[o.length-1]-o[o.length-2]):(d||f>=o[w]&&fs.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(m>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?E:l+h):e.slideTo(l)),e.swipeDirection==="prev"&&(m>1-s.longSwipesRatio?e.slideTo(l+h):v!==null&&m<0&&Math.abs(m)>s.longSwipesRatio?e.slideTo(v):e.slideTo(l))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(r.target===e.navigation.nextEl||r.target===e.navigation.prevEl)?r.target===e.navigation.nextEl?e.slideTo(l+h):e.slideTo(l):(e.swipeDirection==="next"&&e.slideTo(E===null?l+h:E),e.swipeDirection==="prev"&&e.slideTo(v===null?l:v))}}function pt(){let t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:a,snapGrid:s}=t,c=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();let n=c&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!n?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!c?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=a,t.allowSlideNext=r,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function Ai(t){let e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function _i(){let t=this,{wrapperEl:e,rtlTranslate:i,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let a,s=t.maxTranslate()-t.minTranslate();a=s===0?0:(t.translate-t.minTranslate())/s,a!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function $i(t){let e=this;Me(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Di(){let t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}var ut=(t,e)=>{let i=K(),{params:r,el:a,wrapperEl:s,device:c}=t,n=!!r.nested,o=e==="on"?"addEventListener":"removeEventListener",p=e;!a||typeof a=="string"||(i[o]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:n}),a[o]("touchstart",t.onTouchStart,{passive:!1}),a[o]("pointerdown",t.onTouchStart,{passive:!1}),i[o]("touchmove",t.onTouchMove,{passive:!1,capture:n}),i[o]("pointermove",t.onTouchMove,{passive:!1,capture:n}),i[o]("touchend",t.onTouchEnd,{passive:!0}),i[o]("pointerup",t.onTouchEnd,{passive:!0}),i[o]("pointercancel",t.onTouchEnd,{passive:!0}),i[o]("touchcancel",t.onTouchEnd,{passive:!0}),i[o]("pointerout",t.onTouchEnd,{passive:!0}),i[o]("pointerleave",t.onTouchEnd,{passive:!0}),i[o]("contextmenu",t.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[o]("click",t.onClick,!0),r.cssMode&&s[o]("scroll",t.onScroll),r.updateOnWindowResize?t[p](c.ios||c.android?"resize orientationchange observerUpdate":"resize observerUpdate",pt,!0):t[p]("observerUpdate",pt,!0),a[o]("load",t.onLoad,{capture:!0}))};function Gi(){let t=this,{params:e}=t;t.onTouchStart=zi.bind(t),t.onTouchMove=Oi.bind(t),t.onTouchEnd=Ii.bind(t),t.onDocumentTouchStart=Di.bind(t),e.cssMode&&(t.onScroll=_i.bind(t)),t.onClick=Ai.bind(t),t.onLoad=$i.bind(t),ut(t,"on")}function Ni(){ut(this,"off")}var Bi={attachEvents:Gi,detachEvents:Ni},mt=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Xi(){let t=this,{realIndex:e,initialized:i,params:r,el:a}=t,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;let c=K(),n=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",o=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?t.el:c.querySelector(r.breakpointsBase),p=t.getBreakpoint(s,n,o);if(!p||t.currentBreakpoint===p)return;let u=(p in s?s[p]:void 0)||t.originalParams,b=mt(t,r),f=mt(t,u),d=t.params.grabCursor,l=u.grabCursor,g=r.enabled;b&&!f?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!b&&f&&(a.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),d&&!l?t.unsetGrabCursor():!d&&l&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(y=>{if(u[y]===void 0)return;let P=r[y]&&r[y].enabled,A=u[y]&&u[y].enabled;P&&!A&&t[y].disable(),!P&&A&&t[y].enable()});let E=u.direction&&u.direction!==r.direction,v=r.loop&&(u.slidesPerView!==r.slidesPerView||E),m=r.loop;E&&i&&t.changeDirection(),R(t.params,u);let h=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),g&&!h?t.disable():!g&&h&&t.enable(),t.currentBreakpoint=p,t.emit("_beforeBreakpoint",u),i&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!m&&w?(t.loopCreate(e),t.updateSlides()):m&&!w&&t.loopDestroy()),t.emit("breakpoint",u)}function Yi(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let r=!1,a=W(),s=e==="window"?a.innerHeight:i.clientHeight,c=Object.keys(t).map(n=>typeof n=="string"&&n.indexOf("@")===0?{value:s*parseFloat(n.substr(1)),point:n}:{value:n,point:n});c.sort((n,o)=>parseInt(n.value,10)-parseInt(o.value,10));for(let n=0;n{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&i.push(e+a)}):typeof r=="string"&&i.push(e+r)}),i}function ji(){let t=this,{classNames:e,params:i,rtl:r,el:a,device:s}=t,c=Hi(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:r},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...c),a.classList.add(...e),t.emitContainerClasses()}function Vi(){let t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var Ri={addClasses:ji,removeClasses:Vi};function Fi(){let t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:r}=i;if(r){let a=t.slides.length-1,s=t.slidesGrid[a]+t.slidesSizesGrid[a]+r*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var qi={checkOverflow:Fi},Xe={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ui(t,e){return function(i){i===void 0&&(i={});let r=Object.keys(i)[0],a=i[r];if(typeof a!="object"||!a){R(e,i);return}if(t[r]===!0&&(t[r]={enabled:!0}),r==="navigation"&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),!(r in t&&"enabled"in a)){R(e,i);return}typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),R(e,i)}}var Ye={eventsEmitter:Rt,update:ri,translate:di,transition:mi,slide:yi,loop:Ci,grabCursor:Li,events:Bi,breakpoints:Wi,checkOverflow:qi,classes:Ri},We={},He=class Q{constructor(){let e,i;var r=[...arguments];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?i=r[0]:[e,i]=r,i||(i={}),i=R({},i),e&&!i.el&&(i.el=e);let a=K();if(i.el&&typeof i.el=="string"&&a.querySelectorAll(i.el).length>1){let n=[];return a.querySelectorAll(i.el).forEach(o=>{let p=R({},i,{el:o});n.push(new Q(p))}),n}let s=this;s.__swiper__=!0,s.support=rt(),s.device=at({userAgent:i.userAgent}),s.browser=nt(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],i.modules&&Array.isArray(i.modules)&&s.modules.push(...i.modules);let c={};return s.modules.forEach(n=>{n({params:i,swiper:s,extendParams:Ui(i,c),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}),s.params=R({},R({},Xe,c),We,i),s.originalParams=R({},s.params),s.passedParams=R({},i),s.params&&s.params.on&&Object.keys(s.params.on).forEach(n=>{s.on(n,s.params.on[n])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){let{slidesEl:i,params:r}=this,a=Ce(F(i,`.${r.slideClass}, swiper-slide`)[0]);return Ce(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(i=>i.getAttribute("data-swiper-slide-index")*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:i,params:r}=e;e.slides=F(i,`.${r.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){let r=this;e=Math.min(Math.max(e,0),1);let a=r.minTranslate(),s=(r.maxTranslate()-a)*e+a;r.translateTo(s,i===void 0?0:i),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let i=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){let i=this;return i.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let i=[];e.slides.forEach(r=>{let a=e.getSlideClasses(r);i.push({slideEl:r,classNames:a}),e.emit("_slideClass",r,a)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);let{params:r,slides:a,slidesGrid:s,slidesSizesGrid:c,size:n,activeIndex:o}=this,p=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let u=a[o]?Math.ceil(a[o].swiperSlideSize):0,b;for(let f=o+1;fn&&(b=!0));for(let f=o-1;f>=0;--f)a[f]&&!b&&(u+=a[f].swiperSlideSize,p+=1,u>n&&(b=!0))}else if(e==="current")for(let u=o+1;u=0;--u)s[o]-s[u]{c.complete&&Me(e,c)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){let c=e.rtlTranslate?e.translate*-1:e.translate,n=Math.min(Math.max(c,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)a(),r.autoHeight&&e.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){let c=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(c.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||a()}r.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);let r=this,a=r.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),i&&r.update()),r}changeLanguageDirection(e){let i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){let i=this;if(i.mounted)return!0;let r=e||i.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=i,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);let a=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`,s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):F(r,a())[0];return!s&&i.params.createElements&&(s=de("div",i.params.wrapperClass),r.append(s),F(r,`.${i.params.slideClass}`).forEach(c=>{s.append(c)})),Object.assign(i,{el:r,wrapperEl:s,slidesEl:i.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:s,hostEl:i.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||ie(r,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||ie(r,"direction")==="rtl"),wrongRTL:ie(s,"display")==="-webkit-box"}),!0}init(e){let i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(void 0,!0),i.attachEvents();let r=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(a=>{a.complete?Me(i,a):a.addEventListener("load",s=>{Me(i,s.target)})}),Be(i),i.initialized=!0,Be(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);let r=this,{params:a,el:s,wrapperEl:c,slides:n}=r;return r.params===void 0||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),i&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),c&&c.removeAttribute("style"),n&&n.length&&n.forEach(o=>{o.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),o.removeAttribute("style"),o.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(o=>{r.off(o)}),e!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),At(r)),r.destroyed=!0),null}static extendDefaults(e){R(We,e)}static get extendedDefaults(){return We}static get defaults(){return Xe}static installModule(e){Q.prototype.__modules__||(Q.prototype.__modules__=[]);let i=Q.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Q.installModule(i)),Q):(Q.installModule(e),Q)}};Object.keys(Ye).forEach(t=>{Object.keys(Ye[t]).forEach(e=>{He.prototype[e]=Ye[t][e]})}),He.use([jt,Vt]);var ft="eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.swiperElementNodeName.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control".split(".");function se(t){return typeof t=="object"&&!!t&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function pe(t,e){let i=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>i.indexOf(r)<0).forEach(r=>{t[r]===void 0?t[r]=e[r]:se(e[r])&&se(t[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?t[r]=e[r]:pe(t[r],e[r]):t[r]=e[r]})}function ht(t){return t===void 0&&(t={}),t.navigation&&t.navigation.nextEl===void 0&&t.navigation.prevEl===void 0}function vt(t){return t===void 0&&(t={}),t.pagination&&t.pagination.el===void 0}function gt(t){return t===void 0&&(t={}),t.scrollbar&&t.scrollbar.el===void 0}function wt(t){t===void 0&&(t="");let e=t.split(" ").map(r=>r.trim()).filter(r=>!!r),i=[];return e.forEach(r=>{i.indexOf(r)<0&&i.push(r)}),i.join(" ")}function Ki(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Ji(t){let{swiper:e,slides:i,passedParams:r,changedParams:a,nextEl:s,prevEl:c,scrollbarEl:n,paginationEl:o}=t,p=a.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:u,pagination:b,navigation:f,scrollbar:d,virtual:l,thumbs:g}=e,E,v,m,h,w,y,P,A;a.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(E=!0),a.includes("controller")&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(v=!0),a.includes("pagination")&&r.pagination&&(r.pagination.el||o)&&(u.pagination||u.pagination===!1)&&b&&!b.el&&(m=!0),a.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||n)&&(u.scrollbar||u.scrollbar===!1)&&d&&!d.el&&(h=!0),a.includes("navigation")&&r.navigation&&(r.navigation.prevEl||c)&&(r.navigation.nextEl||s)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(w=!0);let I=T=>{e[T]&&(e[T].destroy(),T==="navigation"?(e.isElement&&(e[T].prevEl.remove(),e[T].nextEl.remove()),u[T].prevEl=void 0,u[T].nextEl=void 0,e[T].prevEl=void 0,e[T].nextEl=void 0):(e.isElement&&e[T].el.remove(),u[T].el=void 0,e[T].el=void 0))};a.includes("loop")&&e.isElement&&(u.loop&&!r.loop?y=!0:!u.loop&&r.loop?P=!0:A=!0),p.forEach(T=>{if(se(u[T])&&se(r[T]))Object.assign(u[T],r[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in r[T]&&!r[T].enabled&&I(T);else{let x=r[T];(x===!0||x===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?x===!1&&I(T):u[T]=r[T]}}),p.includes("controller")&&!v&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),a.includes("children")&&i&&l&&u.virtual.enabled?(l.slides=i,l.update(!0)):a.includes("virtual")&&l&&u.virtual.enabled&&(i&&(l.slides=i),l.update(!0)),a.includes("children")&&i&&u.loop&&(A=!0),E&&g.init()&&g.update(!0),v&&(e.controller.control=u.controller.control),m&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),o.part.add("pagination"),e.el.appendChild(o)),o&&(u.pagination.el=o),b.init(),b.render(),b.update()),h&&(e.isElement&&(!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-scrollbar"),n.part.add("scrollbar"),e.el.appendChild(n)),n&&(u.scrollbar.el=n),d.init(),d.updateSize(),d.setTranslate()),w&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),ce(s,e.hostEl.constructor.nextButtonSvg),s.part.add("button-next"),e.el.appendChild(s)),(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-button-prev"),ce(c,e.hostEl.constructor.prevButtonSvg),c.part.add("button-prev"),e.el.appendChild(c))),s&&(u.navigation.nextEl=s),c&&(u.navigation.prevEl=c),f.init(),f.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),a.includes("direction")&&e.changeDirection(r.direction,!1),(y||A)&&e.loopDestroy(),(P||A)&&e.loopCreate(),e.update()}function Zi(t,e){t===void 0&&(t={}),e===void 0&&(e=!0);let i={on:{}},r={},a={};pe(i,Xe),i._emitClasses=!0,i.init=!1;let s={},c=ft.map(o=>o.replace(/_/,"")),n=Object.assign({},t);return Object.keys(n).forEach(o=>{t[o]!==void 0&&(c.indexOf(o)>=0?se(t[o])?(i[o]={},a[o]={},pe(i[o],t[o]),pe(a[o],t[o])):(i[o]=t[o],a[o]=t[o]):o.search(/on[A-Z]/)===0&&typeof t[o]=="function"?e?r[`${o[2].toLowerCase()}${o.substr(3)}`]=t[o]:i.on[`${o[2].toLowerCase()}${o.substr(3)}`]=t[o]:s[o]=t[o])}),["navigation","pagination","scrollbar"].forEach(o=>{i[o]===!0&&(i[o]={}),i[o]===!1&&delete i[o]}),{params:i,passedParams:a,rest:s,events:r}}function Qi(t,e){let{el:i,nextEl:r,prevEl:a,paginationEl:s,scrollbarEl:c,swiper:n}=t;ht(e)&&r&&a&&(n.params.navigation.nextEl=r,n.originalParams.navigation.nextEl=r,n.params.navigation.prevEl=a,n.originalParams.navigation.prevEl=a),vt(e)&&s&&(n.params.pagination.el=s,n.originalParams.pagination.el=s),gt(e)&&c&&(n.params.scrollbar.el=c,n.originalParams.scrollbar.el=c),n.init(i)}function er(t,e,i,r,a){let s=[];if(!e)return s;let c=n=>{s.indexOf(n)<0&&s.push(n)};if(i&&r){let n=r.map(a),o=i.map(a);n.join("")!==o.join("")&&c("children"),r.length!==i.length&&c("children")}return ft.filter(n=>n[0]==="_").map(n=>n.replace(/_/,"")).forEach(n=>{if(n in t&&n in e)if(se(t[n])&&se(e[n])){let o=Object.keys(t[n]),p=Object.keys(e[n]);o.length===p.length?(o.forEach(u=>{t[n][u]!==e[n][u]&&c(n)}),p.forEach(u=>{t[n][u]!==e[n][u]&&c(n)})):c(n)}else t[n]!==e[n]&&c(n)}),s}var tr=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.emit("_virtualUpdated"),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function Pe(){return Pe=Object.assign?Object.assign.bind():function(t){for(var e=1;e{bt(i)?e.push(i):i.props&&i.props.children&&Et(i.props.children).forEach(r=>e.push(r))}),e}function ir(t){let e=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return $.Children.toArray(t).forEach(r=>{if(bt(r))e.push(r);else if(r.props&&r.props.slot&&i[r.props.slot])i[r.props.slot].push(r);else if(r.props&&r.props.children){let a=Et(r.props.children);a.length>0?a.forEach(s=>e.push(s)):i["container-end"].push(r)}else i["container-end"].push(r)}),{slides:e,slots:i}}function rr(t,e,i){if(!i)return null;let r=u=>{let b=u;return u<0?b=e.length+u:b>=e.length&&(b-=e.length),b},a=t.isHorizontal()?{[t.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:s,to:c}=i,n=t.params.loop?-e.length:0,o=t.params.loop?e.length*2:e.length,p=[];for(let u=n;u=s&&u<=c&&p.push(e[r(u)]);return p.map((u,b)=>$.cloneElement(u,{swiper:t,style:a,key:u.props.virtualIndex||u.key||`slide-${b}`}))}function ve(t,e){return typeof window>"u"?(0,$.useEffect)(t,e):(0,$.useLayoutEffect)(t,e)}var yt=(0,$.createContext)(null),sr=(0,$.createContext)(null),St=(0,$.forwardRef)(function(t,e){let{className:i,tag:r="div",wrapperTag:a="div",children:s,onSwiper:c,...n}=t===void 0?{}:t,o=!1,[p,u]=(0,$.useState)("swiper"),[b,f]=(0,$.useState)(null),[d,l]=(0,$.useState)(!1),g=(0,$.useRef)(!1),E=(0,$.useRef)(null),v=(0,$.useRef)(null),m=(0,$.useRef)(null),h=(0,$.useRef)(null),w=(0,$.useRef)(null),y=(0,$.useRef)(null),P=(0,$.useRef)(null),A=(0,$.useRef)(null),{params:I,passedParams:T,rest:x,events:C}=Zi(n),{slides:L,slots:O}=ir(s),_=()=>{l(!d)};Object.assign(I.on,{_containerClasses(N,j){u(j)}});let z=()=>{Object.assign(I.on,C),o=!0;let N={...I};if(delete N.wrapperClass,v.current=new He(N),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=L;let j={cache:!1,slides:L,renderExternal:f,renderExternalUpdate:!1};pe(v.current.params.virtual,j),pe(v.current.originalParams.virtual,j)}};E.current||z(),v.current&&v.current.on("_beforeBreakpoint",_);let G=()=>{o||!C||!v.current||Object.keys(C).forEach(N=>{v.current.on(N,C[N])})},X=()=>{!C||!v.current||Object.keys(C).forEach(N=>{v.current.off(N,C[N])})};(0,$.useEffect)(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",_)}),(0,$.useEffect)(()=>{!g.current&&v.current&&(v.current.emitSlidesClasses(),g.current=!0)}),ve(()=>{if(e&&(e.current=E.current),E.current)return v.current.destroyed&&z(),Qi({el:E.current,nextEl:w.current,prevEl:y.current,paginationEl:P.current,scrollbarEl:A.current,swiper:v.current},I),c&&!v.current.destroyed&&c(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),ve(()=>{G();let N=er(T,m.current,L,h.current,j=>j.key);return m.current=T,h.current=L,N.length&&v.current&&!v.current.destroyed&&Ji({swiper:v.current,slides:L,passedParams:T,changedParams:N,nextEl:w.current,prevEl:y.current,scrollbarEl:A.current,paginationEl:P.current}),()=>{X()}}),ve(()=>{tr(v.current)},[b]);function B(){return I.virtual?rr(v.current,L,b):L.map((N,j)=>$.cloneElement(N,{swiper:v.current,swiperSlideIndex:j}))}return $.createElement(r,Pe({ref:E,className:wt(`${p}${i?` ${i}`:""}`)},x),$.createElement(sr.Provider,{value:v.current},O["container-start"],$.createElement(a,{className:Ki(I.wrapperClass)},O["wrapper-start"],B(),O["wrapper-end"]),ht(I)&&$.createElement($.Fragment,null,$.createElement("div",{ref:y,className:"swiper-button-prev"}),$.createElement("div",{ref:w,className:"swiper-button-next"})),gt(I)&&$.createElement("div",{ref:A,className:"swiper-scrollbar"}),vt(I)&&$.createElement("div",{ref:P,className:"swiper-pagination"}),O["container-end"]))});St.displayName="Swiper";var xt=(0,$.forwardRef)(function(t,e){let{tag:i="div",children:r,className:a="",swiper:s,zoom:c,lazy:n,virtualIndex:o,swiperSlideIndex:p,...u}=t===void 0?{}:t,b=(0,$.useRef)(null),[f,d]=(0,$.useState)("swiper-slide"),[l,g]=(0,$.useState)(!1);function E(w,y,P){y===b.current&&d(P)}ve(()=>{if(p!==void 0&&(b.current.swiperSlideIndex=p),e&&(e.current=b.current),!(!b.current||!s)){if(s.destroyed){f!=="swiper-slide"&&d("swiper-slide");return}return s.on("_slideClass",E),()=>{s&&s.off("_slideClass",E)}}}),ve(()=>{s&&b.current&&!s.destroyed&&d(s.getSlideClasses(b.current))},[s]);let v={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(v):r,h=()=>{g(!0)};return $.createElement(i,Pe({ref:b,className:wt(`${f}${a?` ${a}`:""}`),"data-swiper-slide-index":o,onLoad:h},u),c&&$.createElement(yt.Provider,{value:v},$.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof c=="number"?c:void 0},m(),n&&!l&&$.createElement("div",{className:"swiper-lazy-preloader"}))),!c&&$.createElement(yt.Provider,{value:v},m(),n&&!l&&$.createElement("div",{className:"swiper-lazy-preloader"})))});xt.displayName="SwiperSlide";var ge=Ve(Pt(),1),ar=t=>{let e=(0,zt.c)(30),{className:i,children:r,height:a,forceKeyboardNavigation:s,wrapAround:c}=t,n=s===void 0?!1:s,o=c===void 0?!1:c,p=$.useRef(null),[u,b]=$.useState(!1),{hasFullscreen:f}=kt(),d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{var L,O;document.fullscreenElement?(L=p.current)==null||L.swiper.keyboard.enable():(O=p.current)==null||O.swiper.keyboard.disable(),b(!!document.fullscreenElement)},e[0]=d):d=e[0],Mt(document,"fullscreenchange",d);let l;e[1]===u?l=e[2]:(l=[u],e[1]=u,e[2]=l),(0,$.useEffect)(nr,l);let g;e[3]===o?g=e[4]:(g=o?[Je,et,tt,Qe]:[Xt,Je,et,tt,Qe],e[3]=o,e[4]=g);let E=g,v;e[5]===i?v=e[6]:(v=Re("relative w-full border rounded bg-background mo-slides-theme prose-slides",i),e[5]=i,e[6]=v);let m=u?"100%":a||"550px",h;e[7]===m?h=e[8]:(h={height:m},e[7]=m,e[8]=h);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w={maxRatio:5},e[9]=w):w=e[9];let y=u||n,P;e[10]===y?P=e[11]:(P={enabled:y},e[10]=y,e[11]=P);let A;e[12]===Symbol.for("react.memo_cache_sentinel")?(A={clickable:!0},e[12]=A):A=e[12];let I=!o,T;if(e[13]!==r||e[14]!==u){let L;e[16]===u?L=e[17]:(L=(O,_)=>O==null?null:(0,ge.jsx)(xt,{children:(0,ge.jsx)("div",{onKeyDown:or,className:Re("h-full w-full flex box-border overflow-y-auto overflow-x-hidden",u?"p-20":"p-6 pb-12"),children:(0,ge.jsx)("div",{className:"mo-slide-content",children:O})})},_),e[16]=u,e[17]=L),T=$.Children.map(r,L),e[13]=r,e[14]=u,e[15]=T}else T=e[15];let x;e[18]!==f||e[19]!==u?(x=f&&(0,ge.jsx)(Lt,{variant:"link",size:"sm","data-testid":"marimo-plugin-slides-fullscreen",onClick:async()=>{if(!p.current)return;let L=p.current;document.fullscreenElement?(await document.exitFullscreen(),b(!1)):(await L.requestFullscreen(),b(!0))},className:"absolute bottom-0 right-0 z-10 mx-1 mb-0",children:u?"Exit Fullscreen":"Fullscreen"}),e[18]=f,e[19]=u,e[20]=x):x=e[20];let C;return e[21]!==E||e[22]!==P||e[23]!==I||e[24]!==T||e[25]!==x||e[26]!==v||e[27]!==h||e[28]!==o?(C=(0,ge.jsxs)(St,{ref:p,className:v,spaceBetween:50,style:h,slidesPerView:1,modules:E,zoom:w,simulateTouch:!1,keyboard:P,navigation:!0,pagination:A,virtual:I,speed:1,loop:o,children:[T,x]}),e[21]=E,e[22]=P,e[23]=I,e[24]=T,e[25]=x,e[26]=v,e[27]=h,e[28]=o,e[29]=C):C=e[29],C};function lr(){window.dispatchEvent(new Event("resize"))}function nr(){requestAnimationFrame(lr)}function or(t){t.target instanceof HTMLElement&&t.target.tagName.toLocaleLowerCase().startsWith("marimo-")&&t.stopPropagation()}export{ar as default}; diff --git a/docs/assets/slides-component-vtdQFHpk.css b/docs/assets/slides-component-vtdQFHpk.css new file mode 100644 index 0000000..51d0374 --- /dev/null +++ b/docs/assets/slides-component-vtdQFHpk.css @@ -0,0 +1 @@ +:root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/44*27);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{object-fit:contain;transform-origin:50%;width:100%;height:100%}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-lock{display:none}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);font-variant:normal;letter-spacing:0;line-height:1;text-transform:none!important}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{left:auto;right:var(--swiper-navigation-sides-offset,10px)}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block}button.swiper-pagination-bullet{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.mo-slides-theme{--swiper-theme-color:var(--primary);--swiper-pagination-color:var(--swiper-theme-color);--swiper-pagination-left:auto;--swiper-pagination-right:8px;--swiper-pagination-bottom:8px;--swiper-pagination-top:auto;--swiper-pagination-fraction-color:inherit;--swiper-pagination-progressbar-bg-color:#00000040;--swiper-pagination-progressbar-size:4px;--swiper-pagination-bullet-size:8px;--swiper-pagination-bullet-width:8px;--swiper-pagination-bullet-height:8px;--swiper-pagination-bullet-border-radius:50%;--swiper-pagination-bullet-inactive-color:#000;--swiper-pagination-bullet-inactive-opacity:.2;--swiper-pagination-bullet-opacity:1;--swiper-pagination-bullet-horizontal-gap:4px;--swiper-pagination-bullet-vertical-gap:6px;& .swiper-button-next,& .swiper-button-prev{opacity:0;--swiper-navigation-sides-offset:0;--swiper-navigation-size:20px;background-color:#0000001a;height:100%;margin-top:0;padding:0 15px;font-weight:900;transition:opacity .3s;top:0;bottom:0;&.swiper-button-disabled{opacity:0}&:hover:not(.swiper-button-disabled){opacity:1}}}@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:host:host{display:initial}.mo-slide-content{justify-content:center;width:100%;min-height:fit-content;display:flex;& .output{max-width:100%;width:unset;margin:auto 0}&>:only-child>.output:only-child{flex:1}& div:has(>marimo-ui-element>marimo-vega){flex:1;display:block!important;@media (width>=500px){min-width:350px}}} diff --git a/docs/assets/smalltalk-DYzx-8Vf.js b/docs/assets/smalltalk-DYzx-8Vf.js new file mode 100644 index 0000000..6d49de7 --- /dev/null +++ b/docs/assets/smalltalk-DYzx-8Vf.js @@ -0,0 +1 @@ +import{t as a}from"./smalltalk-DyRmt5Ka.js";export{a as smalltalk}; diff --git a/docs/assets/smalltalk-DfOMJIU6.js b/docs/assets/smalltalk-DfOMJIU6.js new file mode 100644 index 0000000..872a2c1 --- /dev/null +++ b/docs/assets/smalltalk-DfOMJIU6.js @@ -0,0 +1 @@ +var a=[Object.freeze(JSON.parse(`{"displayName":"Smalltalk","fileTypes":["st"],"foldingStartMarker":"\\\\[","foldingStopMarker":"^(?:\\\\s*|\\\\s)]","name":"smalltalk","patterns":[{"match":"\\\\^","name":"keyword.control.flow.return.smalltalk"},{"captures":{"1":{"name":"punctuation.definition.method.begin.smalltalk"},"2":{"name":"entity.name.type.class.smalltalk"},"3":{"name":"keyword.declaration.method.smalltalk"},"4":{"name":"string.quoted.single.protocol.smalltalk"},"5":{"name":"string.quoted.single.protocol.smalltalk"},"6":{"name":"keyword.declaration.method.stamp.smalltalk"},"7":{"name":"string.quoted.single.stamp.smalltalk"},"8":{"name":"string.quoted.single.stamp.smalltalk"},"9":{"name":"punctuation.definition.method.end.smalltalk"}},"match":"^(!)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s+(methodsFor:)\\\\s*('([^']*)')(?:\\\\s+(stamp:)\\\\s*('([^']*)'))?\\\\s*(!?)$","name":"meta.method.definition.header.smalltalk"},{"match":"^! !$","name":"punctuation.definition.method.end.smalltalk"},{"match":"\\\\$.","name":"constant.character.smalltalk"},{"match":"\\\\b(class)\\\\b","name":"storage.type.$1.smalltalk"},{"match":"\\\\b(extend|super|self)\\\\b","name":"storage.modifier.$1.smalltalk"},{"match":"\\\\b(yourself|new|Smalltalk)\\\\b","name":"keyword.control.$1.smalltalk"},{"match":"/^:\\\\w*\\\\s*\\\\|/","name":"constant.other.block.smalltalk"},{"captures":{"1":{"name":"punctuation.definition.variable.begin.smalltalk"},"2":{"patterns":[{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*\\\\b","name":"variable.other.local.smalltalk"}]},"3":{"name":"punctuation.definition.variable.end.smalltalk"}},"match":"(\\\\|)(\\\\s*[A-Z_a-z][0-9A-Z_a-z]*(?:\\\\s+[A-Z_a-z][0-9A-Z_a-z]*)*\\\\s*)(\\\\|)"},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.block.begin.smalltalk"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.block.end.smalltalk"}},"name":"meta.block.smalltalk","patterns":[{"captures":{"1":{"patterns":[{"match":":[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.parameter.block.smalltalk"}]},"2":{"name":"punctuation.separator.arguments.block.smalltalk"}},"match":"((?:\\\\s*:[A-Z_a-z][0-9A-Z_a-z]*)+)\\\\s*(\\\\|)","name":"meta.block.arguments.smalltalk"},{"include":"$self"}]},{"include":"#numeric"},{"match":";","name":"punctuation.separator.cascade.smalltalk"},{"match":"\\\\.","name":"punctuation.terminator.statement.smalltalk"},{"match":":=","name":"keyword.operator.assignment.smalltalk"},{"match":"<(?![<=])|>(?![<=>])|<=|>=|==??|~=|~~|>>","name":"keyword.operator.comparison.smalltalk"},{"match":"([-*+/\\\\\\\\])","name":"keyword.operator.arithmetic.smalltalk"},{"match":"(?<=[\\\\t ])!+|\\\\bnot\\\\b|&|\\\\band\\\\b|\\\\||\\\\bor\\\\b","name":"keyword.operator.logical.smalltalk"},{"match":"->|[,@]","name":"keyword.operator.misc.smalltalk"},{"match":"(?=@%|&?!.,:;^]/,d=/true|false|nil|self|super|thisContext/,r=function(n,e){this.next=n,this.parent=e},o=function(n,e,t){this.name=n,this.context=e,this.eos=t},l=function(){this.context=new r(c,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};l.prototype.userIndent=function(n,e){this.userIndentationDelta=n>0?n/e-this.indentation:0};var c=function(n,e,t){var a=new o(null,e,!1),i=n.next();return i==='"'?a=u(n,new r(u,e)):i==="'"?a=x(n,new r(x,e)):i==="#"?n.peek()==="'"?(n.next(),a=h(n,new r(h,e))):n.eatWhile(/[^\s.{}\[\]()]/)?a.name="string.special":a.name="meta":i==="$"?(n.next()==="<"&&(n.eatWhile(/[^\s>]/),n.next()),a.name="string.special"):i==="|"&&t.expectVariable?a.context=new r(p,e):/[\[\]{}()]/.test(i)?(a.name="bracket",a.eos=/[\[{(]/.test(i),i==="["?t.indentation++:i==="]"&&(t.indentation=Math.max(0,t.indentation-1))):s.test(i)?(n.eatWhile(s),a.name="operator",a.eos=i!==";"):/\d/.test(i)?(n.eatWhile(/[\w\d]/),a.name="number"):/[\w_]/.test(i)?(n.eatWhile(/[\w\d_]/),a.name=t.expectVariable?d.test(n.current())?"keyword":"variable":null):a.eos=t.expectVariable,a},u=function(n,e){return n.eatWhile(/[^"]/),new o("comment",n.eat('"')?e.parent:e,!0)},x=function(n,e){return n.eatWhile(/[^']/),new o("string",n.eat("'")?e.parent:e,!1)},h=function(n,e){return n.eatWhile(/[^']/),new o("string.special",n.eat("'")?e.parent:e,!1)},p=function(n,e){var t=new o(null,e,!1);return n.next()==="|"?(t.context=e.parent,t.eos=!0):(n.eatWhile(/[^|]/),t.name="variable"),t};const f={name:"smalltalk",startState:function(){return new l},token:function(n,e){if(e.userIndent(n.indentation(),n.indentUnit),n.eatSpace())return null;var t=e.context.next(n,e.context,e);return e.context=t.context,e.expectVariable=t.eos,t.name},blankLine:function(n,e){n.userIndent(0,e)},indent:function(n,e,t){var a=n.context.next===c&&e&&e.charAt(0)==="]"?-1:n.userIndentationDelta;return(n.indentation+a)*t.unit},languageData:{indentOnInput:/^\s*\]$/}};export{f as t}; diff --git a/docs/assets/snazzy-light-DpCUG9N4.js b/docs/assets/snazzy-light-DpCUG9N4.js new file mode 100644 index 0000000..a7830b6 --- /dev/null +++ b/docs/assets/snazzy-light-DpCUG9N4.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#E7E8E6","activityBar.foreground":"#2DAE58","activityBar.inactiveForeground":"#68696888","activityBarBadge.background":"#09A1ED","badge.background":"#09A1ED","badge.foreground":"#ffffff","button.background":"#2DAE58","debugExceptionWidget.background":"#FFAEAC33","debugExceptionWidget.border":"#FF5C57","debugToolBar.border":"#E9EAEB","diffEditor.insertedTextBackground":"#2DAE5824","diffEditor.removedTextBackground":"#FFAEAC44","dropdown.border":"#E9EAEB","editor.background":"#FAFBFC","editor.findMatchBackground":"#00E6E06A","editor.findMatchHighlightBackground":"#00E6E02A","editor.findRangeHighlightBackground":"#F5B90011","editor.focusedStackFrameHighlightBackground":"#2DAE5822","editor.foreground":"#565869","editor.hoverHighlightBackground":"#00E6E018","editor.rangeHighlightBackground":"#F5B90033","editor.selectionBackground":"#2DAE5822","editor.snippetTabstopHighlightBackground":"#ADB1C23A","editor.stackFrameHighlightBackground":"#F5B90033","editor.wordHighlightBackground":"#ADB1C23A","editorError.foreground":"#FF5C56","editorGroup.emptyBackground":"#F3F4F5","editorGutter.addedBackground":"#2DAE58","editorGutter.deletedBackground":"#FF5C57","editorGutter.modifiedBackground":"#00A39FAA","editorInlayHint.background":"#E9EAEB","editorInlayHint.foreground":"#565869","editorLineNumber.activeForeground":"#35CF68","editorLineNumber.foreground":"#9194A2aa","editorLink.activeForeground":"#35CF68","editorOverviewRuler.addedForeground":"#2DAE58","editorOverviewRuler.deletedForeground":"#FF5C57","editorOverviewRuler.errorForeground":"#FF5C56","editorOverviewRuler.findMatchForeground":"#13BBB7AA","editorOverviewRuler.modifiedForeground":"#00A39FAA","editorOverviewRuler.warningForeground":"#CF9C00","editorOverviewRuler.wordHighlightForeground":"#ADB1C288","editorOverviewRuler.wordHighlightStrongForeground":"#35CF68","editorWarning.foreground":"#CF9C00","editorWhitespace.foreground":"#ADB1C255","extensionButton.prominentBackground":"#2DAE58","extensionButton.prominentHoverBackground":"#238744","focusBorder":"#09A1ED","foreground":"#686968","gitDecoration.modifiedResourceForeground":"#00A39F","gitDecoration.untrackedResourceForeground":"#2DAE58","input.border":"#E9EAEB","list.activeSelectionBackground":"#09A1ED","list.activeSelectionForeground":"#ffffff","list.errorForeground":"#FF5C56","list.focusBackground":"#BCE7FC99","list.focusForeground":"#11658F","list.hoverBackground":"#E9EAEB","list.inactiveSelectionBackground":"#89B5CB33","list.warningForeground":"#B38700","menu.background":"#FAFBFC","menu.selectionBackground":"#E9EAEB","menu.selectionForeground":"#686968","menubar.selectionBackground":"#E9EAEB","menubar.selectionForeground":"#686968","merge.currentContentBackground":"#35CF6833","merge.currentHeaderBackground":"#35CF6866","merge.incomingContentBackground":"#14B1FF33","merge.incomingHeaderBackground":"#14B1FF77","peekView.border":"#09A1ED","peekViewEditor.background":"#14B1FF08","peekViewEditor.matchHighlightBackground":"#F5B90088","peekViewEditor.matchHighlightBorder":"#F5B900","peekViewEditorStickyScroll.background":"#EDF4FB","peekViewResult.matchHighlightBackground":"#F5B90088","peekViewResult.selectionBackground":"#09A1ED","peekViewResult.selectionForeground":"#FFFFFF","peekViewTitle.background":"#09A1ED11","selection.background":"#2DAE5844","settings.modifiedItemIndicator":"#13BBB7","sideBar.background":"#F3F4F5","sideBar.border":"#DEDFE0","sideBarSectionHeader.background":"#E9EAEB","sideBarSectionHeader.border":"#DEDFE0","statusBar.background":"#2DAE58","statusBar.debuggingBackground":"#13BBB7","statusBar.debuggingBorder":"#00A39F","statusBar.noFolderBackground":"#565869","statusBarItem.remoteBackground":"#238744","tab.activeBorderTop":"#2DAE58","terminal.ansiBlack":"#565869","terminal.ansiBlue":"#09A1ED","terminal.ansiBrightBlack":"#75798F","terminal.ansiBrightBlue":"#14B1FF","terminal.ansiBrightCyan":"#13BBB7","terminal.ansiBrightGreen":"#35CF68","terminal.ansiBrightMagenta":"#FF94D2","terminal.ansiBrightRed":"#FFAEAC","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#F5B900","terminal.ansiCyan":"#13BBB7","terminal.ansiGreen":"#2DAE58","terminal.ansiMagenta":"#F767BB","terminal.ansiRed":"#FF5C57","terminal.ansiWhite":"#FAFBF9","terminal.ansiYellow":"#CF9C00","titleBar.activeBackground":"#F3F4F5"},"displayName":"Snazzy Light","name":"snazzy-light","tokenColors":[{"scope":"invalid.illegal","settings":{"foreground":"#FF5C56"}},{"scope":["meta.object-literal.key","meta.object-literal.key constant.character.escape","meta.object-literal string","meta.object-literal string constant.character.escape","support.type.property-name","support.type.property-name constant.character.escape"],"settings":{"foreground":"#11658F"}},{"scope":["keyword","storage","meta.class storage.type","keyword.operator.expression.import","keyword.operator.new","keyword.operator.expression.delete"],"settings":{"foreground":"#F767BB"}},{"scope":["support.type","meta.type.annotation entity.name.type","new.expr meta.type.parameters entity.name.type","storage.type.primitive","storage.type.built-in.primitive","meta.function.parameter storage.type"],"settings":{"foreground":"#2DAE58"}},{"scope":["storage.type.annotation"],"settings":{"foreground":"#C25193"}},{"scope":"keyword.other.unit","settings":{"foreground":"#FF5C57CC"}},{"scope":["constant.language","support.constant","variable.language"],"settings":{"foreground":"#2DAE58"}},{"scope":["variable","support.variable"],"settings":{"foreground":"#565869"}},{"scope":"variable.language.this","settings":{"foreground":"#13BBB7"}},{"scope":["entity.name.function","support.function"],"settings":{"foreground":"#09A1ED"}},{"scope":["entity.name.function.decorator"],"settings":{"foreground":"#11658F"}},{"scope":["meta.class entity.name.type","new.expr entity.name.type","entity.other.inherited-class","support.class"],"settings":{"foreground":"#13BBB7"}},{"scope":["keyword.preprocessor.pragma","keyword.control.directive.include","keyword.other.preprocessor"],"settings":{"foreground":"#11658F"}},{"scope":"entity.name.exception","settings":{"foreground":"#FF5C56"}},{"scope":"entity.name.section","settings":{}},{"scope":["constant.numeric"],"settings":{"foreground":"#FF5C57"}},{"scope":["constant","constant.character"],"settings":{"foreground":"#2DAE58"}},{"scope":"string","settings":{"foreground":"#CF9C00"}},{"scope":"string","settings":{"foreground":"#CF9C00"}},{"scope":"constant.character.escape","settings":{"foreground":"#F5B900"}},{"scope":["string.regexp","string.regexp constant.character.escape"],"settings":{"foreground":"#13BBB7"}},{"scope":["keyword.operator.quantifier.regexp","keyword.operator.negation.regexp","keyword.operator.or.regexp","string.regexp punctuation","string.regexp keyword","string.regexp keyword.control","string.regexp constant","variable.other.regexp"],"settings":{"foreground":"#00A39F"}},{"scope":["string.regexp keyword.other"],"settings":{"foreground":"#00A39F88"}},{"scope":"constant.other.symbol","settings":{"foreground":"#CF9C00"}},{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#ADB1C2"}},{"scope":"comment.block.preprocessor","settings":{"fontStyle":"","foreground":"#9194A2"}},{"scope":"comment.block.documentation entity.name.type","settings":{"foreground":"#2DAE58"}},{"scope":["comment.block.documentation storage","comment.block.documentation keyword.other","meta.class comment.block.documentation storage.type"],"settings":{"foreground":"#9194A2"}},{"scope":["comment.block.documentation variable"],"settings":{"foreground":"#C25193"}},{"scope":["punctuation"],"settings":{"foreground":"#ADB1C2"}},{"scope":["keyword.operator","keyword.other.arrow","keyword.control.@"],"settings":{"foreground":"#ADB1C2"}},{"scope":["meta.tag.metadata.doctype.html entity.name.tag","meta.tag.metadata.doctype.html entity.other.attribute-name.html","meta.tag.sgml.doctype","meta.tag.sgml.doctype string","meta.tag.sgml.doctype entity.name.tag","meta.tag.sgml punctuation.definition.tag.html"],"settings":{"foreground":"#9194A2"}},{"scope":["meta.tag","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html"],"settings":{"foreground":"#ADB1C2"}},{"scope":["entity.name.tag"],"settings":{"foreground":"#13BBB7"}},{"scope":["meta.tag entity.other.attribute-name","entity.other.attribute-name.html"],"settings":{"foreground":"#FF8380"}},{"scope":["constant.character.entity","punctuation.definition.entity"],"settings":{"foreground":"#CF9C00"}},{"scope":["source.css"],"settings":{"foreground":"#ADB1C2"}},{"scope":["meta.selector","meta.selector entity","meta.selector entity punctuation","source.css entity.name.tag"],"settings":{"foreground":"#F767BB"}},{"scope":["keyword.control.at-rule","keyword.control.at-rule punctuation.definition.keyword"],"settings":{"foreground":"#C25193"}},{"scope":"source.css variable","settings":{"foreground":"#11658F"}},{"scope":["source.css meta.property-name","source.css support.type.property-name"],"settings":{"foreground":"#565869"}},{"scope":["source.css support.type.vendored.property-name"],"settings":{"foreground":"#565869AA"}},{"scope":["meta.property-value","support.constant.property-value"],"settings":{"foreground":"#13BBB7"}},{"scope":["source.css support.constant"],"settings":{"foreground":"#2DAE58"}},{"scope":["punctuation.definition.entity.css","keyword.operator.combinator.css"],"settings":{"foreground":"#FF82CBBB"}},{"scope":["source.css support.function"],"settings":{"foreground":"#09A1ED"}},{"scope":"keyword.other.important","settings":{"foreground":"#238744"}},{"scope":["source.css.scss"],"settings":{"foreground":"#F767BB"}},{"scope":["source.css.scss entity.other.attribute-name.class.css","source.css.scss entity.other.attribute-name.id.css"],"settings":{"foreground":"#F767BB"}},{"scope":["entity.name.tag.reference.scss"],"settings":{"foreground":"#C25193"}},{"scope":["source.css.scss meta.at-rule keyword","source.css.scss meta.at-rule keyword punctuation","source.css.scss meta.at-rule operator.logical","keyword.control.content.scss","keyword.control.return.scss","keyword.control.return.scss punctuation.definition.keyword"],"settings":{"foreground":"#C25193"}},{"scope":["meta.at-rule.mixin.scss","meta.at-rule.include.scss","source.css.scss meta.at-rule.if","source.css.scss meta.at-rule.else","source.css.scss meta.at-rule.each","source.css.scss meta.at-rule variable.parameter"],"settings":{"foreground":"#ADB1C2"}},{"scope":["source.css.less entity.other.attribute-name.class.css"],"settings":{"foreground":"#F767BB"}},{"scope":"source.stylus meta.brace.curly.css","settings":{"foreground":"#ADB1C2"}},{"scope":["source.stylus entity.other.attribute-name.class","source.stylus entity.other.attribute-name.id","source.stylus entity.name.tag"],"settings":{"foreground":"#F767BB"}},{"scope":["source.stylus support.type.property-name"],"settings":{"foreground":"#565869"}},{"scope":["source.stylus variable"],"settings":{"foreground":"#11658F"}},{"scope":"markup.changed","settings":{"foreground":"#888888"}},{"scope":"markup.deleted","settings":{"foreground":"#888888"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.error","settings":{"foreground":"#FF5C56"}},{"scope":"markup.inserted","settings":{"foreground":"#888888"}},{"scope":"meta.link","settings":{"foreground":"#CF9C00"}},{"scope":"string.other.link.title.markdown","settings":{"foreground":"#09A1ED"}},{"scope":["markup.output","markup.raw"],"settings":{"foreground":"#999999"}},{"scope":"markup.prompt","settings":{"foreground":"#999999"}},{"scope":"markup.heading","settings":{"foreground":"#2DAE58"}},{"scope":"markup.bold","settings":{"fontStyle":"bold"}},{"scope":"markup.traceback","settings":{"foreground":"#FF5C56"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.quote","settings":{"foreground":"#777985"}},{"scope":["markup.bold","markup.italic"],"settings":{"foreground":"#13BBB7"}},{"scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#F767BB"}},{"scope":["meta.brace.round","meta.brace.square","storage.type.function.arrow"],"settings":{"foreground":"#ADB1C2"}},{"scope":["constant.language.import-export-all","meta.import keyword.control.default"],"settings":{"foreground":"#C25193"}},{"scope":["support.function.js"],"settings":{"foreground":"#11658F"}},{"scope":"string.regexp.js","settings":{"foreground":"#13BBB7"}},{"scope":["variable.language.super","support.type.object.module.js"],"settings":{"foreground":"#F767BB"}},{"scope":"meta.jsx.children","settings":{"foreground":"#686968"}},{"scope":"entity.name.tag.yaml","settings":{"foreground":"#11658F"}},{"scope":"variable.other.alias.yaml","settings":{"foreground":"#2DAE58"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#75798F"}},{"scope":["meta.use.php entity.other.alias.php"],"settings":{"foreground":"#13BBB7"}},{"scope":["source.php support.function.construct","source.php support.function.var"],"settings":{"foreground":"#11658F"}},{"scope":["storage.modifier.extends.php","source.php keyword.other","storage.modifier.php"],"settings":{"foreground":"#F767BB"}},{"scope":["meta.class.body.php storage.type.php"],"settings":{"foreground":"#F767BB"}},{"scope":["storage.type.php","meta.class.body.php meta.function-call.php storage.type.php","meta.class.body.php meta.function.php storage.type.php"],"settings":{"foreground":"#2DAE58"}},{"scope":["source.php keyword.other.DML"],"settings":{"foreground":"#D94E4A"}},{"scope":["source.sql.embedded.php keyword.operator"],"settings":{"foreground":"#2DAE58"}},{"scope":["source.ini keyword","source.toml keyword","source.env variable"],"settings":{"foreground":"#11658F"}},{"scope":["source.ini entity.name.section","source.toml entity.other.attribute-name"],"settings":{"foreground":"#F767BB"}},{"scope":["source.go storage.type"],"settings":{"foreground":"#2DAE58"}},{"scope":["keyword.import.go","keyword.package.go"],"settings":{"foreground":"#FF5C56"}},{"scope":["source.reason variable.language string"],"settings":{"foreground":"#565869"}},{"scope":["source.reason support.type","source.reason constant.language","source.reason constant.language constant.numeric","source.reason support.type string.regexp"],"settings":{"foreground":"#2DAE58"}},{"scope":["source.reason keyword.operator keyword.control","source.reason keyword.control.less","source.reason keyword.control.flow"],"settings":{"foreground":"#ADB1C2"}},{"scope":["source.reason string.regexp"],"settings":{"foreground":"#CF9C00"}},{"scope":["source.reason support.property-value"],"settings":{"foreground":"#11658F"}},{"scope":["source.rust support.function.core.rust"],"settings":{"foreground":"#11658F"}},{"scope":["source.rust storage.type.core.rust","source.rust storage.class.std"],"settings":{"foreground":"#2DAE58"}},{"scope":["source.rust entity.name.type.rust"],"settings":{"foreground":"#13BBB7"}},{"scope":["storage.type.function.coffee"],"settings":{"foreground":"#ADB1C2"}},{"scope":["keyword.type.cs","storage.type.cs"],"settings":{"foreground":"#2DAE58"}},{"scope":["entity.name.type.namespace.cs"],"settings":{"foreground":"#13BBB7"}},{"scope":"meta.diff.header","settings":{"foreground":"#11658F"}},{"scope":["markup.inserted.diff"],"settings":{"foreground":"#2DAE58"}},{"scope":["markup.deleted.diff"],"settings":{"foreground":"#FF5C56"}},{"scope":["meta.diff.range","meta.diff.index","meta.separator"],"settings":{"foreground":"#09A1ED"}},{"scope":"source.makefile variable","settings":{"foreground":"#11658F"}},{"scope":["keyword.control.protocol-specification.objc"],"settings":{"foreground":"#F767BB"}},{"scope":["meta.parens storage.type.objc","meta.return-type.objc support.class","meta.return-type.objc storage.type.objc"],"settings":{"foreground":"#2DAE58"}},{"scope":["source.sql keyword"],"settings":{"foreground":"#11658F"}},{"scope":["keyword.other.special-method.dockerfile"],"settings":{"foreground":"#09A1ED"}},{"scope":"constant.other.symbol.elixir","settings":{"foreground":"#11658F"}},{"scope":["storage.type.elm","support.module.elm"],"settings":{"foreground":"#13BBB7"}},{"scope":["source.elm keyword.other"],"settings":{"foreground":"#ADB1C2"}},{"scope":["source.erlang entity.name.type.class"],"settings":{"foreground":"#13BBB7"}},{"scope":["variable.other.field.erlang"],"settings":{"foreground":"#11658F"}},{"scope":["source.erlang constant.other.symbol"],"settings":{"foreground":"#2DAE58"}},{"scope":["storage.type.haskell"],"settings":{"foreground":"#2DAE58"}},{"scope":["meta.declaration.class.haskell storage.type.haskell","meta.declaration.instance.haskell storage.type.haskell"],"settings":{"foreground":"#13BBB7"}},{"scope":["meta.preprocessor.haskell"],"settings":{"foreground":"#75798F"}},{"scope":["source.haskell keyword.control"],"settings":{"foreground":"#F767BB"}},{"scope":["tag.end.latte","tag.begin.latte"],"settings":{"foreground":"#ADB1C2"}},{"scope":"source.po keyword.control","settings":{"foreground":"#11658F"}},{"scope":"source.po storage.type","settings":{"foreground":"#9194A2"}},{"scope":"constant.language.po","settings":{"foreground":"#13BBB7"}},{"scope":"meta.header.po string","settings":{"foreground":"#FF8380"}},{"scope":"source.po meta.header.po","settings":{"foreground":"#ADB1C2"}},{"scope":["source.ocaml markup.underline"],"settings":{"fontStyle":""}},{"scope":["source.ocaml punctuation.definition.tag emphasis","source.ocaml entity.name.class constant.numeric","source.ocaml support.type"],"settings":{"foreground":"#F767BB"}},{"scope":["source.ocaml constant.numeric entity.other.attribute-name"],"settings":{"foreground":"#13BBB7"}},{"scope":["source.ocaml comment meta.separator"],"settings":{"foreground":"#ADB1C2"}},{"scope":["source.ocaml support.type strong","source.ocaml keyword.control strong"],"settings":{"foreground":"#ADB1C2"}},{"scope":["source.ocaml support.constant.property-value"],"settings":{"foreground":"#11658F"}},{"scope":["source.scala entity.name.class"],"settings":{"foreground":"#13BBB7"}},{"scope":["storage.type.scala"],"settings":{"foreground":"#2DAE58"}},{"scope":["variable.parameter.scala"],"settings":{"foreground":"#11658F"}},{"scope":["meta.bracket.scala","meta.colon.scala"],"settings":{"foreground":"#ADB1C2"}},{"scope":["meta.metadata.simple.clojure"],"settings":{"foreground":"#ADB1C2"}},{"scope":["meta.metadata.simple.clojure meta.symbol"],"settings":{"foreground":"#13BBB7"}},{"scope":["source.r keyword.other"],"settings":{"foreground":"#ADB1C2"}},{"scope":["source.svelte meta.block.ts entity.name.label"],"settings":{"foreground":"#11658F"}},{"scope":["keyword.operator.word.applescript"],"settings":{"foreground":"#F767BB"}},{"scope":["meta.function-call.livescript"],"settings":{"foreground":"#09A1ED"}},{"scope":["variable.language.self.lua"],"settings":{"foreground":"#13BBB7"}},{"scope":["entity.name.type.class.swift","meta.inheritance-clause.swift","meta.import.swift entity.name.type"],"settings":{"foreground":"#13BBB7"}},{"scope":["source.swift punctuation.section.embedded"],"settings":{"foreground":"#B38700"}},{"scope":["variable.parameter.function.swift entity.name.function.swift"],"settings":{"foreground":"#565869"}},{"scope":"meta.function-call.twig","settings":{"foreground":"#565869"}},{"scope":"string.unquoted.tag-string.django","settings":{"foreground":"#565869"}},{"scope":["entity.tag.tagbraces.django","entity.tag.filter-pipe.django"],"settings":{"foreground":"#ADB1C2"}},{"scope":["meta.section.attributes.haml constant.language","meta.section.attributes.plain.haml constant.other.symbol"],"settings":{"foreground":"#FF8380"}},{"scope":["meta.prolog.haml"],"settings":{"foreground":"#9194A2"}},{"scope":["support.constant.handlebars"],"settings":{"foreground":"#ADB1C2"}},{"scope":"text.log log.constant","settings":{"foreground":"#C25193"}},{"scope":["source.c string constant.other.placeholder","source.cpp string constant.other.placeholder"],"settings":{"foreground":"#B38700"}},{"scope":"constant.other.key.groovy","settings":{"foreground":"#11658F"}},{"scope":"storage.type.groovy","settings":{"foreground":"#13BBB7"}},{"scope":"meta.definition.variable.groovy storage.type.groovy","settings":{"foreground":"#2DAE58"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#CF9C00"}},{"scope":["entity.other.attribute-name.class.pug","entity.other.attribute-name.id.pug"],"settings":{"foreground":"#13BBB7"}},{"scope":["constant.name.attribute.tag.pug"],"settings":{"foreground":"#ADB1C2"}},{"scope":"entity.name.tag.style.html","settings":{"foreground":"#13BBB7"}},{"scope":"entity.name.type.wasm","settings":{"foreground":"#2DAE58"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/snippets-panel--0uDwhrb.js b/docs/assets/snippets-panel--0uDwhrb.js new file mode 100644 index 0000000..4a83504 --- /dev/null +++ b/docs/assets/snippets-panel--0uDwhrb.js @@ -0,0 +1 @@ +import{s as I}from"./chunk-LvLJmgfZ.js";import"./useEvent-DlWF5OMa.js";import{t as P}from"./react-BGmjiNul.js";import{w as q}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as $}from"./compiler-runtime-DeeZ7FnK.js";import{n as D}from"./constants-Bkp4R3bQ.js";import"./config-CENq_7Pd.js";import{t as F}from"./jsx-runtime-DN_bIXfG.js";import{i as G,t as w}from"./button-B8cGZzP5.js";import{t as T}from"./cn-C1rgT0yh.js";import{at as W}from"./dist-CAcX026F.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{r as A}from"./requests-C0HaHO6a.js";import{n as M,t as B}from"./LazyAnyLanguageCodeMirror-Dr2G5gxJ.js";import{h as J}from"./select-D9lTzMzP.js";import{t as K}from"./spinner-C1czjtp7.js";import{t as L}from"./plus-CHesBJpY.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{r as R}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{t as U}from"./tooltip-CvjcEpZC.js";import{a as V,c as Y,i as Q,n as X,r as Z}from"./dialog-CF5DtF1E.js";import{n as ee}from"./ImperativeModal-BZvZlZQZ.js";import{t as te}from"./RenderHTML-B4Nb8r0D.js";import"./purify.es-N-2faAGj.js";import{n as se}from"./error-banner-Cq4Yn1WZ.js";import{n as re}from"./useAsyncData-Dj1oqsrZ.js";import{a as le,o as oe,r as ie,t as ae,u as ne}from"./command-B1zRJT1a.js";import{o as me}from"./focus-KGgBDCvb.js";import{n as ce,r as de,t as E}from"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import{t as pe}from"./empty-state-H6r25Wek.js";import{a as he,i as fe,t as H}from"./kiosk-mode-CQH06LFg.js";var O=$(),C=I(P(),1),s=I(F(),1);const xe=t=>{let e=(0,O.c)(6),{children:r}=t,{openModal:i,closeModal:o}=ee(),l;e[0]!==o||e[1]!==i?(l=()=>i((0,s.jsx)(ue,{onClose:o})),e[0]=o,e[1]=i,e[2]=l):l=e[2];let a;return e[3]!==r||e[4]!==l?(a=(0,s.jsx)(G,{onClick:l,children:r}),e[3]=r,e[4]=l,e[5]=a):a=e[5],a};var ue=t=>{let e=(0,O.c)(4),{onClose:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(Y,{children:"Contribute a Snippet"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)(V,{children:[i,(0,s.jsxs)(Z,{children:["Have a useful snippet you want to share with the community? Make a pull request"," ",(0,s.jsx)("a",{href:D.githubPage,target:"_blank",className:"underline",children:"on GitHub"}),"."]})]}),e[1]=o):o=e[1];let l;return e[2]===r?l=e[3]:(l=(0,s.jsxs)(X,{className:"max-w-md",children:[o,(0,s.jsx)(Q,{children:(0,s.jsx)(w,{"data-testid":"snippet-close-button",variant:"default",onClick:r,children:"Close"})})]}),e[2]=r,e[3]=l),l},k=$(),je=[W.lineWrapping],ve=()=>{let t=(0,k.c)(24),{readSnippets:e}=A(),[r,i]=C.useState(),o=fe(),l=he(),a;t[0]===e?a=t[1]:(a=()=>e(),t[0]=e,t[1]=a);let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=[],t[2]=c):c=t[2];let{data:N,error:j,isPending:g}=re(a,c);if(j){let m;return t[3]===j?m=t[4]:(m=(0,s.jsx)(se,{error:j}),t[3]=j,t[4]=m),m}if(g||!N){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(K,{size:"medium",centered:!0}),t[5]=m):m=t[5],m}let _=o==="vertical",v;t[6]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(le,{placeholder:"Search snippets...",className:"h-6 m-1",rootClassName:"flex-1 border-r"}),t[6]=v):v=t[6];let h,f;t[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsxs)("div",{className:"flex items-center w-full border-b",children:[v,(0,s.jsx)(xe,{children:(0,s.jsx)("button",{className:"float-right px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",children:(0,s.jsx)(L,{className:"h-4 w-4"})})})]}),f=(0,s.jsx)(ie,{children:"No results"}),t[7]=h,t[8]=f):(h=t[7],f=t[8]);let b;t[9]===Symbol.for("react.memo_cache_sentinel")?(b=m=>i(m),t[9]=b):b=t[9];let d;t[10]===N.snippets?d=t[11]:(d=(0,s.jsx)(E,{defaultSize:40,minSize:20,maxSize:70,children:(0,s.jsxs)(ae,{className:"h-full rounded-none",children:[h,f,(0,s.jsx)(Ne,{onSelect:b,snippets:N.snippets})]})}),t[10]=N.snippets,t[11]=d);let u=_?"h-1":"w-1",p;t[12]===u?p=t[13]:(p=T("bg-border hover:bg-primary/50 transition-colors",u),t[12]=u,t[13]=p);let x;t[14]===p?x=t[15]:(x=(0,s.jsx)(de,{className:p}),t[14]=p,t[15]=x);let n;t[16]===r?n=t[17]:(n=(0,s.jsx)(E,{defaultSize:60,minSize:20,children:(0,s.jsx)(C.Suspense,{children:(0,s.jsx)("div",{className:"h-full snippet-viewer flex flex-col overflow-hidden",children:r?(0,s.jsx)(be,{snippet:r,onClose:()=>i(void 0)},r.title):(0,s.jsx)(pe,{title:"",description:"Click on a snippet to view its content."})})})}),t[16]=r,t[17]=n);let S;return t[18]!==o||t[19]!==l||t[20]!==n||t[21]!==d||t[22]!==x?(S=(0,s.jsx)("div",{className:"flex-1 overflow-hidden h-full",children:(0,s.jsxs)(ce,{direction:o,className:"h-full",children:[d,x,n]},l)}),t[18]=o,t[19]=l,t[20]=n,t[21]=d,t[22]=x,t[23]=S):S=t[23],S},be=t=>{let e=(0,k.c)(33),{snippet:r,onClose:i}=t,{theme:o}=R(),{createNewCell:l}=q(),a=me(),c;e[0]!==l||e[1]!==a||e[2]!==r.sections?(c=()=>{for(let n of[...r.sections].reverse())n.code&&l({code:n.code,before:!1,cellId:a??"__end__",skipIfCodeExists:!0})},e[0]=l,e[1]=a,e[2]=r.sections,e[3]=c):c=e[3];let N=c,j;e[4]!==l||e[5]!==a?(j=n=>{l({code:n,before:!1,cellId:a??"__end__"})},e[4]=l,e[5]=a,e[6]=j):j=e[6];let g=j,_;e[7]===r.title?_=e[8]:(_=(0,s.jsx)("span",{children:r.title}),e[7]=r.title,e[8]=_);let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsx)(J,{className:"h-4 w-4"}),e[9]=v):v=e[9];let h;e[10]===i?h=e[11]:(h=(0,s.jsx)(w,{size:"sm",variant:"ghost",onClick:i,className:"h-6 w-6 p-0 hover:bg-muted-foreground/10",children:v}),e[10]=i,e[11]=h);let f;e[12]!==_||e[13]!==h?(f=(0,s.jsxs)("div",{className:"text-sm font-semibold bg-muted border-y px-2 py-1 flex justify-between items-center",children:[_,h]}),e[12]=_,e[13]=h,e[14]=f):f=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(M,{className:"ml-2 h-4 w-4"}),e[15]=b):b=e[15];let d;e[16]===N?d=e[17]:(d=(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(H,{children:(0,s.jsxs)(w,{className:"float-right",size:"xs",variant:"outline",onClick:N,children:["Insert snippet",b]})})}),e[16]=N,e[17]=d);let u;if(e[18]!==g||e[19]!==r.sections||e[20]!==r.title||e[21]!==o){let n;e[23]!==g||e[24]!==r.title||e[25]!==o?(n=S=>{let{code:m,html:z,id:y}=S;return z?(0,s.jsx)("div",{children:te({html:z})},`${r.title}-${y}`):m?(0,s.jsxs)("div",{className:"relative hover-actions-parent pr-2",children:[(0,s.jsx)(H,{children:(0,s.jsx)(U,{content:"Insert snippet",children:(0,s.jsx)(w,{className:"absolute -top-2 -right-1 z-10 hover-action px-2 bg-background",size:"sm",variant:"outline",onClick:()=>{g(m)},children:(0,s.jsx)(M,{className:"h-5 w-5"})})})}),(0,s.jsx)(C.Suspense,{children:(0,s.jsx)(B,{theme:o==="dark"?"dark":"light",language:"python",className:"cm border rounded overflow-hidden",extensions:je,value:m,readOnly:!0},`${r.title}-${y}`)})]},`${r.title}-${y}`):null},e[23]=g,e[24]=r.title,e[25]=o,e[26]=n):n=e[26],u=r.sections.map(n),e[18]=g,e[19]=r.sections,e[20]=r.title,e[21]=o,e[22]=u}else u=e[22];let p;e[27]!==d||e[28]!==u?(p=(0,s.jsxs)("div",{className:"px-2 py-2 space-y-4 overflow-auto flex-1",children:[d,u]}),e[27]=d,e[28]=u,e[29]=p):p=e[29];let x;return e[30]!==p||e[31]!==f?(x=(0,s.jsxs)(s.Fragment,{children:[f,p]}),e[30]=p,e[31]=f,e[32]=x):x=e[32],x},Ne=t=>{let e=(0,k.c)(7),{snippets:r,onSelect:i}=t,o;if(e[0]!==i||e[1]!==r){let a;e[3]===i?a=e[4]:(a=c=>(0,s.jsx)(oe,{className:"rounded-none",onSelect:()=>i(c),children:(0,s.jsx)("div",{className:"flex flex-row gap-2 items-center",children:(0,s.jsx)("span",{className:"mt-1 text-accent-foreground",children:c.title})})},c.title),e[3]=i,e[4]=a),o=r.map(a),e[0]=i,e[1]=r,e[2]=o}else o=e[2];let l;return e[5]===o?l=e[6]:(l=(0,s.jsx)(ne,{className:"flex flex-col overflow-auto",children:o}),e[5]=o,e[6]=l),l};export{ve as default}; diff --git a/docs/assets/snippets-panel-fg1cdAzn.css b/docs/assets/snippets-panel-fg1cdAzn.css new file mode 100644 index 0000000..3730bcf --- /dev/null +++ b/docs/assets/snippets-panel-fg1cdAzn.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-font-weight:initial}}}.snippet-viewer h1{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,1.5));text-align:left}.snippet-viewer h1,.snippet-viewer h2{--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700)}.snippet-viewer h2{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,1.42857))}@property --tw-font-weight{syntax:"*";inherits:false} diff --git a/docs/assets/solarized-dark-DbtxXxKW.js b/docs/assets/solarized-dark-DbtxXxKW.js new file mode 100644 index 0000000..566498d --- /dev/null +++ b/docs/assets/solarized-dark-DbtxXxKW.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#003847","badge.background":"#047aa6","button.background":"#2AA19899","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","debugToolBar.background":"#00212B","dropdown.background":"#00212B","dropdown.border":"#2AA19899","editor.background":"#002B36","editor.foreground":"#839496","editor.lineHighlightBackground":"#073642","editor.selectionBackground":"#274642","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","editorCursor.foreground":"#D30102","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","editorHoverWidget.background":"#004052","editorIndentGuide.activeBackground":"#C3E1E180","editorIndentGuide.background":"#93A1A180","editorLineNumber.activeForeground":"#949494","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editorWhitespace.foreground":"#93A1A180","editorWidget.background":"#00212B","errorForeground":"#ffeaea","focusBorder":"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","inputValidation.infoBackground":"#052730","inputValidation.infoBorder":"#363b5f","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","list.activeSelectionBackground":"#005A6F","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","minimap.selectionHighlight":"#274642","panel.border":"#2b2b4a","peekView.border":"#2b2b4a","peekViewEditor.background":"#10192c","peekViewEditor.matchHighlightBackground":"#7744AA40","peekViewResult.background":"#00212B","peekViewTitle.background":"#00212B","pickerGroup.border":"#2AA19899","pickerGroup.foreground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","progressBar.background":"#047aa6","quickInputList.focusBackground":"#005A6F","selection.background":"#2AA19899","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.foreground":"#93A1A1","statusBar.noFolderBackground":"#00212B","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","statusBarItem.remoteBackground":"#2AA19899","tab.activeBackground":"#002B37","tab.activeForeground":"#d6dbdb","tab.border":"#003847","tab.inactiveBackground":"#004052","tab.inactiveForeground":"#93A1A1","tab.lastPinnedBorder":"#2AA19844","terminal.ansiBlack":"#073642","terminal.ansiBlue":"#268bd2","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightWhite":"#fdf6e3","terminal.ansiBrightYellow":"#657b83","terminal.ansiCyan":"#2aa198","terminal.ansiGreen":"#859900","terminal.ansiMagenta":"#d33682","terminal.ansiRed":"#dc322f","terminal.ansiWhite":"#eee8d5","terminal.ansiYellow":"#b58900","titleBar.activeBackground":"#002C39"},"displayName":"Solarized Dark","name":"solarized-dark","semanticHighlighting":true,"tokenColors":[{"settings":{"foreground":"#839496"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#839496"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#586E75"}},{"scope":"string","settings":{"foreground":"#2AA198"}},{"scope":"string.regexp","settings":{"foreground":"#DC322F"}},{"scope":"constant.numeric","settings":{"foreground":"#D33682"}},{"scope":["variable.language","variable.other"],"settings":{"foreground":"#268BD2"}},{"scope":"keyword","settings":{"foreground":"#859900"}},{"scope":"storage","settings":{"fontStyle":"bold","foreground":"#93A1A1"}},{"scope":["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],"settings":{"fontStyle":"","foreground":"#CB4B16"}},{"scope":"entity.name.function","settings":{"foreground":"#268BD2"}},{"scope":"punctuation.definition.variable","settings":{"foreground":"#859900"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#DC322F"}},{"scope":["constant.language","meta.preprocessor"],"settings":{"foreground":"#B58900"}},{"scope":["support.function.construct","keyword.other.new"],"settings":{"foreground":"#CB4B16"}},{"scope":["constant.character","constant.other"],"settings":{"foreground":"#CB4B16"}},{"scope":["entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#6C71C4"}},{"scope":"variable.parameter","settings":{}},{"scope":"entity.name.tag","settings":{"foreground":"#268BD2"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#586E75"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#93A1A1"}},{"scope":"support.function","settings":{"foreground":"#268BD2"}},{"scope":"punctuation.separator.continuation","settings":{"foreground":"#DC322F"}},{"scope":["support.constant","support.variable"],"settings":{}},{"scope":["support.type","support.class"],"settings":{"foreground":"#859900"}},{"scope":"support.type.exception","settings":{"foreground":"#CB4B16"}},{"scope":"support.other.variable","settings":{}},{"scope":"invalid","settings":{"foreground":"#DC322F"}},{"scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#268BD2"}},{"scope":"markup.deleted","settings":{"fontStyle":"","foreground":"#DC322F"}},{"scope":"markup.changed","settings":{"fontStyle":"","foreground":"#CB4B16"}},{"scope":"markup.inserted","settings":{"foreground":"#859900"}},{"scope":"markup.quote","settings":{"foreground":"#859900"}},{"scope":"markup.list","settings":{"foreground":"#B58900"}},{"scope":["markup.bold","markup.italic"],"settings":{"foreground":"#D33682"}},{"scope":"markup.bold","settings":{"fontStyle":"bold"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#2AA198"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#268BD2"}},{"scope":"markup.heading.setext","settings":{"fontStyle":"","foreground":"#268BD2"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/solarized-light-pJFmyeZD.js b/docs/assets/solarized-light-pJFmyeZD.js new file mode 100644 index 0000000..8a786f2 --- /dev/null +++ b/docs/assets/solarized-light-pJFmyeZD.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#DDD6C1","activityBar.foreground":"#584c27","activityBarBadge.background":"#B58900","badge.background":"#B58900AA","button.background":"#AC9D57","debugExceptionWidget.background":"#DDD6C1","debugExceptionWidget.border":"#AB395B","debugToolBar.background":"#DDD6C1","dropdown.background":"#EEE8D5","dropdown.border":"#D3AF86","editor.background":"#FDF6E3","editor.foreground":"#657B83","editor.lineHighlightBackground":"#EEE8D5","editor.selectionBackground":"#EEE8D5","editorCursor.foreground":"#657B83","editorGroup.border":"#DDD6C1","editorGroup.dropBackground":"#DDD6C1AA","editorGroupHeader.tabsBackground":"#D9D2C2","editorHoverWidget.background":"#CCC4B0","editorIndentGuide.activeBackground":"#081E2580","editorIndentGuide.background":"#586E7580","editorLineNumber.activeForeground":"#567983","editorWhitespace.foreground":"#586E7580","editorWidget.background":"#EEE8D5","extensionButton.prominentBackground":"#b58900","extensionButton.prominentHoverBackground":"#584c27aa","focusBorder":"#b49471","input.background":"#DDD6C1","input.foreground":"#586E75","input.placeholderForeground":"#586E75AA","inputOption.activeBorder":"#D3AF86","list.activeSelectionBackground":"#DFCA88","list.activeSelectionForeground":"#6C6C6C","list.highlightForeground":"#B58900","list.hoverBackground":"#DFCA8844","list.inactiveSelectionBackground":"#D1CBB8","minimap.selectionHighlight":"#EEE8D5","notebook.cellEditorBackground":"#F7F0E0","panel.border":"#DDD6C1","peekView.border":"#B58900","peekViewEditor.background":"#FFFBF2","peekViewEditor.matchHighlightBackground":"#7744AA40","peekViewResult.background":"#EEE8D5","peekViewTitle.background":"#EEE8D5","pickerGroup.border":"#2AA19899","pickerGroup.foreground":"#2AA19899","ports.iconRunningProcessForeground":"#2AA19899","progressBar.background":"#B58900","quickInputList.focusBackground":"#DFCA8866","selection.background":"#878b9180","sideBar.background":"#EEE8D5","sideBarTitle.foreground":"#586E75","statusBar.background":"#EEE8D5","statusBar.debuggingBackground":"#EEE8D5","statusBar.foreground":"#586E75","statusBar.noFolderBackground":"#EEE8D5","statusBarItem.prominentBackground":"#DDD6C1","statusBarItem.prominentHoverBackground":"#DDD6C199","statusBarItem.remoteBackground":"#AC9D57","tab.activeBackground":"#FDF6E3","tab.activeModifiedBorder":"#cb4b16","tab.border":"#DDD6C1","tab.inactiveBackground":"#D3CBB7","tab.inactiveForeground":"#586E75","tab.lastPinnedBorder":"#FDF6E3","terminal.ansiBlack":"#073642","terminal.ansiBlue":"#268bd2","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightWhite":"#fdf6e3","terminal.ansiBrightYellow":"#657b83","terminal.ansiCyan":"#2aa198","terminal.ansiGreen":"#859900","terminal.ansiMagenta":"#d33682","terminal.ansiRed":"#dc322f","terminal.ansiWhite":"#eee8d5","terminal.ansiYellow":"#b58900","terminal.background":"#FDF6E3","titleBar.activeBackground":"#EEE8D5","walkThrough.embeddedEditorBackground":"#00000014"},"displayName":"Solarized Light","name":"solarized-light","semanticHighlighting":true,"tokenColors":[{"settings":{"foreground":"#657B83"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#657B83"}},{"scope":"comment","settings":{"fontStyle":"italic","foreground":"#93A1A1"}},{"scope":"string","settings":{"foreground":"#2AA198"}},{"scope":"string.regexp","settings":{"foreground":"#DC322F"}},{"scope":"constant.numeric","settings":{"foreground":"#D33682"}},{"scope":["variable.language","variable.other"],"settings":{"foreground":"#268BD2"}},{"scope":"keyword","settings":{"foreground":"#859900"}},{"scope":"storage","settings":{"fontStyle":"bold","foreground":"#586E75"}},{"scope":["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],"settings":{"fontStyle":"","foreground":"#CB4B16"}},{"scope":"entity.name.function","settings":{"foreground":"#268BD2"}},{"scope":"punctuation.definition.variable","settings":{"foreground":"#859900"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#DC322F"}},{"scope":["constant.language","meta.preprocessor"],"settings":{"foreground":"#B58900"}},{"scope":["support.function.construct","keyword.other.new"],"settings":{"foreground":"#CB4B16"}},{"scope":["constant.character","constant.other"],"settings":{"foreground":"#CB4B16"}},{"scope":["entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#6C71C4"}},{"scope":"variable.parameter","settings":{}},{"scope":"entity.name.tag","settings":{"foreground":"#268BD2"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#93A1A1"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#93A1A1"}},{"scope":"support.function","settings":{"foreground":"#268BD2"}},{"scope":"punctuation.separator.continuation","settings":{"foreground":"#DC322F"}},{"scope":["support.constant","support.variable"],"settings":{}},{"scope":["support.type","support.class"],"settings":{"foreground":"#859900"}},{"scope":"support.type.exception","settings":{"foreground":"#CB4B16"}},{"scope":"support.other.variable","settings":{}},{"scope":"invalid","settings":{"foreground":"#DC322F"}},{"scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#268BD2"}},{"scope":"markup.deleted","settings":{"fontStyle":"","foreground":"#DC322F"}},{"scope":"markup.changed","settings":{"fontStyle":"","foreground":"#CB4B16"}},{"scope":"markup.inserted","settings":{"foreground":"#859900"}},{"scope":"markup.quote","settings":{"foreground":"#859900"}},{"scope":"markup.list","settings":{"foreground":"#B58900"}},{"scope":["markup.bold","markup.italic"],"settings":{"foreground":"#D33682"}},{"scope":"markup.bold","settings":{"fontStyle":"bold"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#2AA198"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#268BD2"}},{"scope":"markup.heading.setext","settings":{"fontStyle":"","foreground":"#268BD2"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/solidity-CEmuVXDJ.js b/docs/assets/solidity-CEmuVXDJ.js new file mode 100644 index 0000000..008d9ac --- /dev/null +++ b/docs/assets/solidity-CEmuVXDJ.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Solidity","fileTypes":["sol"],"name":"solidity","patterns":[{"include":"#natspec"},{"include":"#declaration-userType"},{"include":"#comment"},{"include":"#operator"},{"include":"#global"},{"include":"#control"},{"include":"#constant"},{"include":"#primitive"},{"include":"#type-primitive"},{"include":"#type-modifier-extended-scope"},{"include":"#declaration"},{"include":"#function-call"},{"include":"#assembly"},{"include":"#punctuation"}],"repository":{"assembly":{"patterns":[{"match":"\\\\b(assembly)\\\\b","name":"keyword.control.assembly"},{"match":"\\\\b(let)\\\\b","name":"storage.type.assembly"}]},"comment":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"}]},"comment-block":{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-todo"}]},"comment-line":{"begin":"(?>)","name":"keyword.operator.binary"},"operator-logic":{"match":"(==|!=|<(?!<)|<=|>(?!>)|>=|&&|\\\\|\\\\||:(?!=)|[!?])","name":"keyword.operator.logic"},"operator-mapping":{"match":"(=>)","name":"keyword.operator.mapping"},"primitive":{"patterns":[{"include":"#number-decimal"},{"include":"#number-hex"},{"include":"#number-scientific"},{"include":"#string"}]},"punctuation":{"patterns":[{"match":";","name":"punctuation.terminator.statement"},{"match":"\\\\.","name":"punctuation.accessor"},{"match":",","name":"punctuation.separator"},{"match":"\\\\{","name":"punctuation.brace.curly.begin"},{"match":"}","name":"punctuation.brace.curly.end"},{"match":"\\\\[","name":"punctuation.brace.square.begin"},{"match":"]","name":"punctuation.brace.square.end"},{"match":"\\\\(","name":"punctuation.parameters.begin"},{"match":"\\\\)","name":"punctuation.parameters.end"}]},"string":{"patterns":[{"match":"\\"(?:\\\\\\\\\\"|[^\\"])*\\"","name":"string.quoted.double"},{"match":"'(?:\\\\\\\\'|[^'])*'","name":"string.quoted.single"}]},"type-modifier-access":{"match":"\\\\b(internal|external|private|public)\\\\b","name":"storage.type.modifier.access"},"type-modifier-constant":{"match":"\\\\b(constant)\\\\b","name":"storage.type.modifier.readonly"},"type-modifier-extended-scope":{"match":"\\\\b(pure|view|inherited|indexed|storage|memory|virtual|calldata|override|abstract)\\\\b","name":"storage.type.modifier.extendedscope"},"type-modifier-immutable":{"match":"\\\\b(immutable)\\\\b","name":"storage.type.modifier.readonly"},"type-modifier-payable":{"match":"\\\\b((?:non|)payable)\\\\b","name":"storage.type.modifier.payable"},"type-modifier-transient":{"match":"\\\\b(transient)\\\\b","name":"storage.type.modifier.readonly"},"type-primitive":{"patterns":[{"begin":"\\\\b(address|string\\\\d*|bytes\\\\d*|int\\\\d*|uint\\\\d*|bool|hash\\\\d*)\\\\b\\\\[](\\\\()","beginCaptures":{"1":{"name":"support.type.primitive"}},"end":"(\\\\))","patterns":[{"include":"#primitive"},{"include":"#punctuation"},{"include":"#global"},{"include":"#variable"}]},{"match":"\\\\b(address|string\\\\d*|bytes\\\\d*|int\\\\d*|uint\\\\d*|bool|hash\\\\d*)\\\\b","name":"support.type.primitive"}]},"variable":{"patterns":[{"captures":{"1":{"name":"variable.parameter.function"}},"match":"\\\\b(_\\\\w+)\\\\b"},{"captures":{"1":{"name":"support.variable.property"}},"match":"\\\\.(\\\\w+)\\\\b"},{"captures":{"1":{"name":"variable.parameter.other"}},"match":"\\\\b(\\\\w+)\\\\b"}]}},"scopeName":"source.solidity"}`))];export{e as default}; diff --git a/docs/assets/solr-BAO4N63o.js b/docs/assets/solr-BAO4N63o.js new file mode 100644 index 0000000..5fde13a --- /dev/null +++ b/docs/assets/solr-BAO4N63o.js @@ -0,0 +1 @@ +var i=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,a=/[\|\!\+\-\*\?\~\^\&]/,c=/^(OR|AND|NOT|TO)$/;function k(n){return parseFloat(n).toString()===n}function s(n){return function(t,e){for(var r=!1,u;(u=t.next())!=null&&!(u==n&&!r);)r=!r&&u=="\\";return r||(e.tokenize=o),"string"}}function f(n){return function(t,e){return n=="|"?t.eat(/\|/):n=="&"&&t.eat(/\&/),e.tokenize=o,"operator"}}function l(n){return function(t,e){for(var r=n;(n=t.peek())&&n.match(i)!=null;)r+=t.next();return e.tokenize=o,c.test(r)?"operator":k(r)?"number":t.peek()==":"?"propertyName":"string"}}function o(n,t){var e=n.next();return e=='"'?t.tokenize=s(e):a.test(e)?t.tokenize=f(e):i.test(e)&&(t.tokenize=l(e)),t.tokenize==o?null:t.tokenize(n,t)}const z={name:"solr",startState:function(){return{tokenize:o}},token:function(n,t){return n.eatSpace()?null:t.tokenize(n,t)}};export{z as solr}; diff --git a/docs/assets/sortBy-Bdnw8bdS.js b/docs/assets/sortBy-Bdnw8bdS.js new file mode 100644 index 0000000..826d36f --- /dev/null +++ b/docs/assets/sortBy-Bdnw8bdS.js @@ -0,0 +1 @@ +import{S as c,l as p}from"./_Uint8Array-BGESiCQL.js";import{t as l}from"./isSymbol-BGkTcW3U.js";import{n as v}from"./toString-DlRqgfqz.js";import{n as d}from"./_baseFor-Duhs3RiJ.js";import{l as s,u as g}from"./merge-BBX6ug-N.js";import{n as h}from"./get-CyLJYAfP.js";import{t as x}from"./_baseFlatten-CLPh0yMf.js";import{r as y}from"./_baseEach-BH6a1vAB.js";import{t as S}from"./_baseMap-DCtSqKLi.js";function _(n,r){var o=n.length;for(n.sort(r);o--;)n[o]=n[o].value;return n}var b=_;function j(n,r){if(n!==r){var o=n!==void 0,t=n===null,i=n===n,u=l(n),m=r!==void 0,a=r===null,f=r===r,e=l(r);if(!a&&!e&&!u&&n>r||u&&m&&f&&!a&&!e||t&&m&&f||!o&&f||!i)return 1;if(!t&&!u&&!e&&n=a?f:f*(o[t]=="desc"?-1:1)}return n.index-r.index}var w=q;function z(n,r,o){r=r.length?v(r,function(i){return c(i)?function(u){return h(u,i.length===1?i[0]:i)}:i}):[d];var t=-1;return r=v(r,p(y)),b(S(n,function(i,u,m){return{criteria:v(r,function(a){return a(i)}),index:++t,value:i}}),function(i,u){return w(i,u,o)})}var A=z,B=g(function(n,r){if(n==null)return[];var o=r.length;return o>1&&s(n,r[0],r[1])?r=[]:o>2&&s(r[0],r[1],r[2])&&(r=[r[0]]),A(n,x(r,1),[])});export{B as t}; diff --git a/docs/assets/soy-D40oJbOR.js b/docs/assets/soy-D40oJbOR.js new file mode 100644 index 0000000..d2a6bd0 --- /dev/null +++ b/docs/assets/soy-D40oJbOR.js @@ -0,0 +1 @@ +import{t as e}from"./html-Bz1QLM72.js";var n=Object.freeze(JSON.parse(`{"displayName":"Closure Templates","fileTypes":["soy"],"injections":{"meta.tag":{"patterns":[{"include":"#body"}]}},"name":"soy","patterns":[{"include":"#alias"},{"include":"#delpackage"},{"include":"#namespace"},{"include":"#template"},{"include":"#comment"}],"repository":{"alias":{"captures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.type.soy"},"3":{"name":"storage.type.soy"},"4":{"name":"entity.name.type.soy"}},"match":"\\\\{(alias)\\\\s+([.\\\\w]+)(?:\\\\s+(as)\\\\s+(\\\\w+))?}"},"attribute":{"captures":{"1":{"name":"storage.other.attribute.soy"},"2":{"name":"string.double.quoted.soy"}},"match":"(\\\\w+)=(\\"(?:\\\\\\\\?.)*?\\")"},"body":{"patterns":[{"include":"#comment"},{"include":"#let"},{"include":"#call"},{"include":"#css"},{"include":"#xid"},{"include":"#condition"},{"include":"#condition-control"},{"include":"#for"},{"include":"#literal"},{"include":"#msg"},{"include":"#special-character"},{"include":"#print"},{"include":"text.html.basic"}]},"boolean":{"match":"true|false","name":"language.constant.boolean.soy"},"call":{"patterns":[{"begin":"\\\\{((?:del)?call)\\\\s+([.\\\\w]+)(?=[^/]*?})","beginCaptures":{"1":{"name":"storage.type.function.soy"},"2":{"name":"entity.name.function.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"storage.type.function.soy"}},"patterns":[{"include":"#comment"},{"include":"#variant"},{"include":"#attribute"},{"include":"#param"}]},{"begin":"\\\\{((?:del)?call)(\\\\s+[.\\\\w]+)","beginCaptures":{"1":{"name":"storage.type.function.soy"},"2":{"name":"entity.name.function.soy"}},"end":"/}","patterns":[{"include":"#variant"},{"include":"#attribute"}]}]},"comment":{"patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.documentation.soy","patterns":[{"captures":{"1":{"name":"keyword.parameter.soy"},"2":{"name":"variable.parameter.soy"}},"match":"(@param\\\\??)\\\\s+(\\\\S+)"}]},{"match":"^\\\\s*(//.*)$","name":"comment.line.double-slash.soy"}]},"condition":{"begin":"\\\\{/?(if|elseif|switch|case)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.soy"}},"end":"}","patterns":[{"include":"#attribute"},{"include":"#expression"}]},"condition-control":{"captures":{"1":{"name":"keyword.control.soy"}},"match":"\\\\{(else|ifempty|default)}"},"css":{"begin":"\\\\{(css)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"}","patterns":[{"include":"#expression"}]},"delpackage":{"captures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.type.soy"}},"match":"\\\\{(delpackage)\\\\s+([.\\\\w]+)}"},"expression":{"patterns":[{"include":"#boolean"},{"include":"#number"},{"include":"#function"},{"include":"#null"},{"include":"#string"},{"include":"#variable-ref"},{"include":"#operator"}]},"for":{"begin":"\\\\{/?(for(?:each|))(?=[}\\\\s])","beginCaptures":{"1":{"name":"keyword.control.soy"}},"end":"}","patterns":[{"match":"in","name":"keyword.control.soy"},{"include":"#expression"},{"include":"#body"}]},"function":{"begin":"(\\\\w+)\\\\(","beginCaptures":{"1":{"name":"support.function.soy"}},"end":"\\\\)","patterns":[{"include":"#expression"}]},"let":{"patterns":[{"begin":"\\\\{(let)\\\\s+(\\\\$\\\\w+\\\\s*:)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.soy"}},"end":"/}","patterns":[{"include":"#comment"},{"include":"#expression"}]},{"begin":"\\\\{(let)\\\\s+(\\\\$\\\\w+)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"storage.type.soy"}},"patterns":[{"include":"#attribute"},{"include":"#body"}]}]},"literal":{"begin":"\\\\{(literal)}","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"keyword.other.soy"}},"name":"meta.literal"},"msg":{"captures":{"1":{"name":"keyword.other.soy"}},"end":"}","match":"\\\\{/?((?:|fallback)msg)","patterns":[{"include":"#attribute"}]},"namespace":{"captures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.type.soy"}},"match":"\\\\{(namespace)\\\\s+([.\\\\w]+)}"},"null":{"match":"null","name":"language.constant.null.soy"},"number":{"match":"-?\\\\.?\\\\d+|\\\\d[.\\\\d]*","name":"language.constant.numeric"},"operator":{"match":"-|not|[%*+/]|<=|>=|[<>]|==|!=|and|or|\\\\?:|[:?]","name":"keyword.operator.soy"},"param":{"patterns":[{"begin":"\\\\{(param)\\\\s+(\\\\w+\\\\s*:)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.parameter.soy"}},"end":"/}","patterns":[{"include":"#expression"}]},{"begin":"\\\\{(param)\\\\s+(\\\\w+)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.parameter.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"storage.type.soy"}},"patterns":[{"include":"#attribute"},{"include":"#body"}]}]},"print":{"begin":"\\\\{(print)?\\\\s*","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"}","patterns":[{"captures":{"1":{"name":"support.function.soy"}},"match":"\\\\|\\\\s*(changeNewlineToBr|truncate|bidiSpanWrap|bidiUnicodeWrap)"},{"include":"#expression"}]},"special-character":{"captures":{"1":{"name":"language.support.constant"}},"match":"\\\\{(sp|nil|\\\\\\\\r|\\\\\\\\n|\\\\\\\\t|lb|rb)}"},"string":{"begin":"'","end":"'","name":"string.quoted.single.soy","patterns":[{"match":"\\\\\\\\(?:[\\"'\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.soy"}]},"template":{"begin":"\\\\{((?:|del)template)\\\\s([.\\\\w]+)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.function.soy"}},"end":"\\\\{(/\\\\1)}","endCaptures":{"1":{"name":"storage.type.soy"}},"patterns":[{"begin":"\\\\{(@param)(\\\\??)\\\\s+(\\\\S+\\\\s*:)","beginCaptures":{"1":{"name":"keyword.parameter.soy"},"2":{"name":"storage.modifier.keyword.operator.soy"},"3":{"name":"variable.parameter.soy"}},"end":"}","name":"meta.parameter.soy","patterns":[{"include":"#type"}]},{"include":"#variant"},{"include":"#body"},{"include":"#attribute"}]},"type":{"patterns":[{"match":"any|null|\\\\?|string|bool|int|float|number|html|uri|js|css|attributes","name":"support.type.soy"},{"begin":"(list|map)(<)","beginCaptures":{"1":{"name":"support.type.soy"},"2":{"name":"support.type.punctuation.soy"}},"end":"(>)","endCaptures":{"1":{"name":"support.type.modifier.soy"}},"patterns":[{"include":"#type"}]}]},"variable-ref":{"match":"\\\\$[\\\\a-z][.\\\\w]*","name":"variable.other.soy"},"variant":{"begin":"(variant)=(\\")","beginCaptures":{"1":{"name":"storage.other.attribute.soy"},"2":{"name":"string.double.quoted.soy"}},"contentName":"string.double.quoted.soy","end":"(\\")","endCaptures":{"1":{"name":"string.double.quoted.soy"}},"patterns":[{"include":"#expression"}]},"xid":{"begin":"\\\\{(xid)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"}","patterns":[{"include":"#expression"}]}},"scopeName":"text.html.soy","embeddedLangs":["html"],"aliases":["closure-templates"]}`)),t=[...e,n];export{t as default}; diff --git a/docs/assets/sparql-6VnDrYOs.js b/docs/assets/sparql-6VnDrYOs.js new file mode 100644 index 0000000..953db21 --- /dev/null +++ b/docs/assets/sparql-6VnDrYOs.js @@ -0,0 +1 @@ +import{t as r}from"./sparql-CLILkzHY.js";export{r as sparql}; diff --git a/docs/assets/sparql-CJElaVsv.js b/docs/assets/sparql-CJElaVsv.js new file mode 100644 index 0000000..ac86463 --- /dev/null +++ b/docs/assets/sparql-CJElaVsv.js @@ -0,0 +1 @@ +import{t as e}from"./turtle-DaGtFj8Y.js";var s=Object.freeze(JSON.parse('{"displayName":"SPARQL","fileTypes":["rq","sparql","sq"],"name":"sparql","patterns":[{"include":"source.turtle"},{"include":"#query-keyword-operators"},{"include":"#functions"},{"include":"#variables"},{"include":"#expression-operators"}],"repository":{"expression-operators":{"match":"\\\\|\\\\||&&|=|!=|[<>]|<=|>=|[-!*+/?^|]","name":"support.class.sparql"},"functions":{"match":"\\\\b(?i:concat|regex|asc|desc|bound|isiri|isuri|isblank|isliteral|isnumeric|str|lang|datatype|sameterm|langmatches|avg|count|group_concat|separator|max|min|sample|sum|iri|uri|bnode|strdt|uuid|struuid|strlang|strlen|substr|ucase|lcase|strstarts|strends|contains|strbefore|strafter|encode_for_uri|replace|abs|round|ceil|floor|rand|now|year|month|day|hours|minutes|seconds|timezone|tz|md5|sha1|sha256|sha384|sha512|coalesce|if)\\\\b","name":"support.function.sparql"},"query-keyword-operators":{"match":"\\\\b(?i:define|select|distinct|reduced|from|named|construct|ask|describe|where|graph|having|bind|as|filter|optional|union|order|by|group|limit|offset|values|insert data|delete data|with|delete|insert|clear|silent|default|all|create|drop|copy|move|add|to|using|service|not exists|exists|not in|in|minus|load)\\\\b","name":"keyword.control.sparql"},"variables":{"match":"(?=&|\^\/!\?]/,l="[A-Za-z_\\-0-9]",x=RegExp("[A-Za-z]"),g=RegExp("(("+l+"|\\.)*("+l+"))?:");function d(e,t){var n=e.next();if(u=null,n=="$"||n=="?")return n=="?"&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if(n=="<"&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if(n=='"'||n=="'")return t.tokenize=h(n),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(n))return u=n,"bracket";if(n=="#")return e.skipToEnd(),"comment";if(F.test(n))return"operator";if(n==":")return f(e),"atom";if(n=="@")return e.eatWhile(/[a-z\d\-]/i),"meta";if(x.test(n)&&e.match(g))return f(e),"atom";e.eatWhile(/[_\w\d]/);var a=e.current();return p.test(a)?"builtin":m.test(a)?"keyword":"variable"}function f(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function h(e){return function(t,n){for(var a=!1,r;(r=t.next())!=null;){if(r==e&&!a){n.tokenize=d;break}a=!a&&r=="\\"}return"string"}}function o(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function i(e){e.indent=e.context.indent,e.context=e.context.prev}const v={name:"sparql",startState:function(){return{tokenize:d,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&t.context.align==null&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"&&(t.context.align=!0),u=="(")o(t,")",e.column());else if(u=="[")o(t,"]",e.column());else if(u=="{")o(t,"}",e.column());else if(/[\]\}\)]/.test(u)){for(;t.context&&t.context.type=="pattern";)i(t);t.context&&u==t.context.type&&(i(t),u=="}"&&t.context&&t.context.type=="pattern"&&i(t))}else u=="."&&t.context&&t.context.type=="pattern"?i(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?o(t,"pattern",e.column()):t.context.type=="pattern"&&!t.context.align&&(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var a=t&&t.charAt(0),r=e.context;if(/[\]\}]/.test(a))for(;r&&r.type=="pattern";)r=r.prev;var c=r&&a==r.type;return r?r.type=="pattern"?r.col:r.align?r.col+(c?0:1):r.indent+(c?0:n.unit):0},languageData:{commentTokens:{line:"#"}}};export{v as t}; diff --git a/docs/assets/spec-qp_XZeSS.js b/docs/assets/spec-qp_XZeSS.js new file mode 100644 index 0000000..6abbd89 --- /dev/null +++ b/docs/assets/spec-qp_XZeSS.js @@ -0,0 +1 @@ +import{i as I}from"./useLifecycle-CmDXEyIC.js";import{r as J}from"./type-BdyvjzTI.js";import{t as p}from"./createLucideIcon-CW2xpJ57.js";import{t as R}from"./chart-no-axes-column-D42sFB6d.js";import{r as Z,t as ee}from"./table-BLx7B_us.js";import{t as te}from"./square-function-DxXFdbn8.js";var ae=p("align-center-vertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]]),ne=p("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),re=p("arrow-up-to-line",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]]),ie=p("baseline",[["path",{d:"M4 20h16",key:"14thso"}],["path",{d:"m6 16 6-12 6 12",key:"1b4byz"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),le=p("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]),P=p("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),oe=p("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),se=p("chart-no-axes-column-increasing",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V9",key:"uvy0l4"}],["path",{d:"M19 21V3",key:"11j9sm"}]]),ce=p("chart-scatter",[["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}],["circle",{cx:"18.5",cy:"5.5",r:".5",fill:"currentColor",key:"lysivs"}],["circle",{cx:"11.5",cy:"11.5",r:".5",fill:"currentColor",key:"byv1b8"}],["circle",{cx:"7.5",cy:"16.5",r:".5",fill:"currentColor",key:"nkw3mc"}],["circle",{cx:"17.5",cy:"14.5",r:".5",fill:"currentColor",key:"1gjh6j"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}]]),ue=p("ruler-dimension-line",[["path",{d:"M10 15v-3",key:"1pjskw"}],["path",{d:"M14 15v-3",key:"1o1mqj"}],["path",{d:"M18 15v-3",key:"cws6he"}],["path",{d:"M2 8V4",key:"3jv1jz"}],["path",{d:"M22 6H2",key:"1iqbfk"}],["path",{d:"M22 8V4",key:"16f4ou"}],["path",{d:"M6 15v-3",key:"1ij1qe"}],["rect",{x:"2",y:"12",width:"20",height:"8",rx:"2",key:"1tqiko"}]]),de=p("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]);function v(e){return e&&e.replaceAll(".","\\.").replaceAll("[","\\[").replaceAll("]","\\]").replaceAll(":","\\:")}const fe="__count__",Y="default",me="yearmonthdate",ye=6,ge="",pe={line:oe,bar:se,pie:Z,scatter:ce,heatmap:ee,area:le},U="mean",he={none:te,count:J,sum:de,mean:ie,median:ae,min:ne,max:re,distinct:J,valid:J,stdev:R,stdevp:R,variance:P,variancep:P,bin:ue},be={none:"No aggregation",count:"Count of records",sum:"Sum of values",mean:"Mean of values",median:"Median of values",min:"Minimum value",max:"Maximum value",distinct:"Count of distinct records",valid:"Count non-null records",stdev:"Standard deviation",stdevp:"Standard deviation of population",variance:"Variance",variancep:"Variance of population",bin:"Group values into bins"},ke=[Y,"accent","category10","category20","category20b","category20c","dark2","paired","pastel1","pastel2","set1","set2","set3","tableau10","tableau20","blues","greens","greys","oranges","purples","reds","bluegreen","bluepurple","goldgreen","goldorange","goldred","greenblue","orangered","purplebluegreen","purplered","redpurple","yellowgreenblue","yelloworangered","blueorange","brownbluegreen","purplegreen","pinkyellowgreen","purpleorange","redblue","redgrey","redyellowblue","redyellowgreen","spectral","rainbow","sinebow"],ve={number:"Continuous numerical scale",string:"Discrete categorical scale (inputs treated as strings)",temporal:"Continuous temporal scale"},xe={year:["Year","2025"],quarter:["Quarter","Q1 2025"],month:["Month","Jan 2025"],week:["Week","Jan 01, 2025"],day:["Day","Jan 01, 2025"],hours:["Hour","Jan 01, 2025 12:00"],minutes:["Minute","Jan 01, 2025 12:34"],seconds:["Second","Jan 01, 2025 12:34:56"],milliseconds:["Millisecond","Jan 01, 2025 12:34:56.789"],date:["Date","Jan 01, 2025"],dayofyear:["Day of Year","Day 1 of 2025"],yearmonth:["Year Month","Jan 2025"],yearmonthdate:["Year Month Date","Jan 01, 2025"],monthdate:["Month Date","Jan 01"]},Me=["number","string","temporal"],O=["year","quarter","month","date","week","day","dayofyear","hours","minutes","seconds","milliseconds"],X=["yearmonth","yearmonthdate","monthdate"],L=[...O,...X];[...L];const we=["ascending","descending"],q="none",Ce="bin",Ae=[q,"bin","count","sum","mean","median","min","max","distinct","valid","stdev","stdevp","variance","variancep"],N=[q,"count","distinct","valid"],y={LINE:"line",BAR:"bar",PIE:"pie",SCATTER:"scatter",HEATMAP:"heatmap",AREA:"area"},Ee=Object.values(y),Te=["X","Y","Color",q];function B(e){switch(e){case"number":case"integer":return"quantitative";case"string":case"boolean":case"unknown":return"nominal";case"date":case"datetime":case"time":case"temporal":return"temporal";default:return I(e),"nominal"}}function _e(e){switch(e){case"number":case"integer":return"number";case"string":case"boolean":case"unknown":return"string";case"date":case"datetime":case"time":return"temporal";default:return I(e),"string"}}function Q(e){switch(e){case y.PIE:return"arc";case y.SCATTER:return"point";case y.HEATMAP:return"rect";default:return e}}function j(e,t,a,i){if(e===y.HEATMAP)return a!=null&&a.maxbins?{maxbins:a==null?void 0:a.maxbins}:void 0;if(t!=="number")return;if(!(a!=null&&a.binned))return i;let n={};return a.step!==void 0&&(n.step=a.step),a.maxbins!==void 0&&(n.maxbins=a.maxbins),Object.keys(n).length===0?!0:n}function G(e){var i,n;let t=(i=e.color)==null?void 0:i.range;if(t!=null&&t.length)return{range:t};let a=(n=e.color)==null?void 0:n.scheme;if(a&&a!=="default")return{scheme:a}}function De(e,t){var o,c,u,f,h,s,g,k,b;if(e===y.PIE)return;let a;if(m((c=(o=t.general)==null?void 0:o.colorByColumn)==null?void 0:c.field))a=(u=t.general)==null?void 0:u.colorByColumn;else if(m((f=t.color)==null?void 0:f.field))switch((h=t.color)==null?void 0:h.field){case"X":a=(s=t.general)==null?void 0:s.xColumn;break;case"Y":a=(g=t.general)==null?void 0:g.yColumn;break;case"Color":a=(k=t.general)==null?void 0:k.colorByColumn;break;default:return}else return;if(!a||!m(a.field)||a.field==="none")return;if(a.field==="__count__")return{aggregate:"count",type:"quantitative"};let i=(b=t.color)==null?void 0:b.bin,n=a.selectedDataType||"string",r=a==null?void 0:a.aggregate;return{field:v(a.field),type:B(n),scale:G(t),aggregate:W(r,n),bin:j(e,n,i)}}function Ve(e,t){var a,i,n,r,o;if(!((a=t.general)!=null&&a.stacking||!m((n=(i=t.general)==null?void 0:i.colorByColumn)==null?void 0:n.field)||e!==y.BAR))return{field:v((o=(r=t.general)==null?void 0:r.colorByColumn)==null?void 0:o.field)}}function W(e,t,a){if(t!=="temporal"&&!(e==="none"||e==="bin"))return e?t==="string"?N.includes(e)?e:void 0:e:a||void 0}function qe(e){switch(e){case"integer":return",.0f";case"number":return",.2f";default:return}}function $(e){var u,f,h,s,g,k,b,M,w,C,_,D,V,A,E,T;let{formValues:t,xEncoding:a,yEncoding:i,colorByEncoding:n}=e;if(!t.tooltips)return;function r(l,x,d){if("aggregate"in l&&l.aggregate==="count"&&!m(l.field))return{aggregate:"count"};if(l&&"field"in l&&m(l.field))return l.timeUnit&&!d&&(d=l.field),{field:l.field,aggregate:l.aggregate,timeUnit:l.timeUnit,format:qe(x),title:d,bin:l.bin}}if(t.tooltips.auto){let l=[],x=r(a,((f=(u=t.general)==null?void 0:u.xColumn)==null?void 0:f.type)||"string",(h=t.xAxis)==null?void 0:h.label);x&&l.push(x);let d=r(i,((g=(s=t.general)==null?void 0:s.yColumn)==null?void 0:g.type)||"string",(k=t.yAxis)==null?void 0:k.label);d&&l.push(d);let z=r(n||{},((M=(b=t.general)==null?void 0:b.colorByColumn)==null?void 0:M.type)||"string");return z&&l.push(z),l}let o=t.tooltips.fields??[],c=[];for(let l of o){if("field"in a&&m(a.field)&&a.field===l.field){let d=r(a,((C=(w=t.general)==null?void 0:w.xColumn)==null?void 0:C.type)||"string",(_=t.xAxis)==null?void 0:_.label);d&&c.push(d);continue}if("field"in i&&m(i.field)&&i.field===l.field){let d=r(i,((V=(D=t.general)==null?void 0:D.yColumn)==null?void 0:V.type)||"string",(A=t.yAxis)==null?void 0:A.label);d&&c.push(d);continue}if(n&&"field"in n&&m(n.field)&&n.field===l.field){let d=r(n,((T=(E=t.general)==null?void 0:E.colorByColumn)==null?void 0:T.type)||"string");d&&c.push(d);continue}let x={field:v(l.field)};c.push(x)}return c}function Be(e,t,a,i,n){var A,E,T,l;let{xColumn:r,yColumn:o,colorByColumn:c,horizontal:u,stacking:f,title:h,facet:s}=t.general??{};if(e===y.PIE)return He(t,a,i,n);if(!m(r==null?void 0:r.field))return"X-axis column is required";if(!m(o==null?void 0:o.field))return"Y-axis column is required";let g=S(r,(A=t.xAxis)==null?void 0:A.bin,H((E=t.xAxis)==null?void 0:E.label),c!=null&&c.field&&u?f:void 0,e),k=U;(o==null?void 0:o.selectedDataType)==="string"&&(k="count");let b=S(o,(T=t.yAxis)==null?void 0:T.bin,H((l=t.yAxis)==null?void 0:l.label),c!=null&&c.field&&!u?f:void 0,e,k),M=s!=null&&s.row.field?F(s.row,e):void 0,w=s!=null&&s.column.field?F(s.column,e):void 0,C=De(e,t),_=K(e,t,a,i,n,h),D={x:u?b:g,y:u?g:b,xOffset:Ve(e,t),color:C,tooltip:$({formValues:t,xEncoding:g,yEncoding:b,colorByEncoding:C}),...M&&{row:M},...w&&{column:w}},V=Se(s==null?void 0:s.column,s==null?void 0:s.row);return{..._,mark:{type:Q(e)},encoding:D,...V}}function je(e,t){return{...e,data:{values:t}}}function S(e,t,a,i,n,r){let o=e.selectedDataType||"string";return e.field==="__count__"?{aggregate:"count",type:"quantitative",bin:j(n,o,t),title:a==="__count__"?void 0:a,stack:i}:{field:v(e.field),type:B(e.selectedDataType||"unknown"),bin:j(n,o,t),title:a,stack:i,aggregate:W(e.aggregate,o,r),sort:e.sort,timeUnit:Je(e)}}function F(e,t){let a=j(t,e.selectedDataType||"string",{maxbins:e.maxbins,binned:e.binned},{maxbins:6});return{field:v(e.field),sort:e.sort,timeUnit:Pe(e),type:B(e.selectedDataType||"unknown"),bin:a}}function He(e,t,a,i){var f,h,s,g;let{yColumn:n,colorByColumn:r,title:o}=e.general??{};if(!m(r==null?void 0:r.field))return"Color by column is required";if(!m(n==null?void 0:n.field))return"Size by column is required";let c=S(n,(f=e.xAxis)==null?void 0:f.bin,H((h=e.xAxis)==null?void 0:h.label),void 0,y.PIE),u={field:v(r.field),type:B(r.selectedDataType||"unknown"),scale:G(e),title:H((s=e.yAxis)==null?void 0:s.label)};return{...K(y.PIE,e,t,a,i,o),mark:{type:Q(y.PIE),innerRadius:(g=e.style)==null?void 0:g.innerRadius},encoding:{theta:c,color:u,tooltip:$({formValues:e,xEncoding:c,yEncoding:c,colorByEncoding:u})}}}function K(e,t,a,i,n,r){var c,u,f;let o=((c=t.style)==null?void 0:c.gridLines)??!1;return e===y.SCATTER&&(o=!0),{$schema:"https://vega.github.io/schema/vega-lite/v6.json",background:a==="dark"?"dark":"white",title:r,data:{values:[]},height:((u=t.yAxis)==null?void 0:u.height)??n,width:((f=t.xAxis)==null?void 0:f.width)??i,config:{axis:{grid:o}}}}function m(e){return e!==void 0&&e.trim()!==""}function H(e){let t=e==null?void 0:e.trim();return t===""?void 0:t}function Je(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Pe(e){if(e.selectedDataType==="temporal")return e.timeUnit??"yearmonthdate"}function Se(e,t){let a={};return(e==null?void 0:e.linkXAxis)===!1&&(a.x="independent"),(t==null?void 0:t.linkYAxis)===!1&&(a.y="independent"),Object.keys(a).length>0?{resolve:{axis:a}}:void 0}export{P as A,Y as C,ve as D,ge as E,xe as O,U as S,me as T,be as _,Ae as a,ke as b,Te as c,q as d,Me as f,L as g,N as h,_e as i,v as k,X as l,we as m,Be as n,Ce as o,O as p,m as r,Ee as s,je as t,y as u,he as v,ye as w,fe as x,pe as y}; diff --git a/docs/assets/spinner-C1czjtp7.js b/docs/assets/spinner-C1czjtp7.js new file mode 100644 index 0000000..f75702e --- /dev/null +++ b/docs/assets/spinner-C1czjtp7.js @@ -0,0 +1 @@ +import{s as n}from"./chunk-LvLJmgfZ.js";import{t as h}from"./react-BGmjiNul.js";import{t as x}from"./compiler-runtime-DeeZ7FnK.js";import{t as N}from"./jsx-runtime-DN_bIXfG.js";import{n as g,t as k}from"./cn-C1rgT0yh.js";import{t as v}from"./createLucideIcon-CW2xpJ57.js";var d=v("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),y=x(),j=n(h(),1),w=n(N(),1),M=g("animate-spin",{variants:{centered:{true:"m-auto"},size:{small:"size-4",medium:"size-12",large:"size-20",xlarge:"size-20"}},defaultVariants:{size:"medium"}}),f=j.forwardRef((l,o)=>{let e=(0,y.c)(13),r,a,s,t;if(e[0]!==l){let{className:p,children:R,centered:c,size:z,...u}=l;a=p,r=c,t=z,s=u,e[0]=l,e[1]=r,e[2]=a,e[3]=s,e[4]=t}else r=e[1],a=e[2],s=e[3],t=e[4];let i;e[5]!==r||e[6]!==a||e[7]!==t?(i=k(M({centered:r,size:t}),a),e[5]=r,e[6]=a,e[7]=t,e[8]=i):i=e[8];let m;return e[9]!==s||e[10]!==o||e[11]!==i?(m=(0,w.jsx)(d,{ref:o,className:i,strokeWidth:1.5,...s}),e[9]=s,e[10]=o,e[11]=i,e[12]=m):m=e[12],m});f.displayName="Spinner";export{d as n,f as t}; diff --git a/docs/assets/splunk-DRU55DSJ.js b/docs/assets/splunk-DRU55DSJ.js new file mode 100644 index 0000000..3970453 --- /dev/null +++ b/docs/assets/splunk-DRU55DSJ.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Splunk Query Language","fileTypes":["splunk","spl"],"name":"splunk","patterns":[{"match":"(?<=([\\\\[|]))(\\\\s*)\\\\b(abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|append|appendcols|appendpipe|arules|associate|audit|autoregress|bucket|bucketdir|chart|cluster|collect|concurrency|contingency|convert|correlate|crawl|datamodel|dbinspect|dbxquery|dbxlookup|dedup|delete|delta|diff|dispatch|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|file|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geostats|head|highlight|history|input|inputcsv|inputlookup|iplocation|join|kmeans|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|metadata|metasearch|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\\\\b(?=\\\\s)","name":"support.class.splunk_search"},{"match":"\\\\b(abs|acosh??|asinh??|atan2??|atanh|case|cidrmatch|ceiling|coalesce|commands|cosh??|exact|exp|floor|hypot|if|in|isbool|isint|isnotnull|isnull|isnum|isstr|len|like|ln|log|lower|ltrim|match|max|md5|min|mvappend|mvcount|mvdedup|mvfilter|mvfind|mvindex|mvjoin|mvrange|mvsort|mvzip|now|null|nullif|pi|pow|printf|random|relative_time|replace|round|rtrim|searchmatch|sha1|sha256|sha512|sigfig|sinh??|spath|split|sqrt|strftime|strptime|substr|tanh??|time|tonumber|tostring|trim|typeof|upper|urldecode|validate)(?=\\\\()\\\\b","name":"support.function.splunk_search"},{"match":"\\\\b(avg|count|distinct_count|estdc|estdc_error|eval|max|mean|median|min|mode|percentile|range|stdevp??|sum|sumsq|varp??|first|last|list|values|earliest|earliest_time|latest|latest_time|per_day|per_hour|per_minute|per_second|rate)\\\\b","name":"support.function.splunk_search"},{"match":"(?<=`)\\\\w+(?=[(`])","name":"entity.name.function.splunk_search"},{"match":"\\\\b(\\\\d+)\\\\b","name":"constant.numeric.splunk_search"},{"match":"(\\\\\\\\[*=\\\\\\\\|])","name":"contant.character.escape.splunk_search"},{"match":"(\\\\|,)","name":"keyword.operator.splunk_search"},{"match":"(?:(?i)\\\\b(as|by|or|and|over|where|output|outputnew)|(?-i)\\\\b(NOT|true|false))\\\\b","name":"constant.language.splunk_search"},{"match":"(?<=[(,]|[^=]\\\\s{300})([^\\"(),=]+)(?=[),])","name":"variable.parameter.splunk_search"},{"match":"([.\\\\w]+)(\\\\[]|\\\\{})?(\\\\s*)(?==)","name":"variable.splunk_search"},{"match":"=","name":"keyword.operator.splunk_search"},{"begin":"(?]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdevp??|varp??)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b((?:bit_coun|get_bi|left_shif|right_shif|set_bi)t)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(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)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?!=&|~^\/]/,s=a.support||{},y=a.hooks||{},S=a.dateSQL||{date:!0,time:!0,timestamp:!0},Q=a.backslashStringEscapes!==!1,N=a.brackets||/^[\{}\(\)\[\]]/,v=a.punctuation||/^[;.,:]/;function h(t,i){var r=t.next();if(y[r]){var n=y[r](t,i);if(n!==!1)return n}if(s.hexNumber&&(r=="0"&&t.match(/^[xX][0-9a-fA-F]+/)||(r=="x"||r=="X")&&t.match(/^'[0-9a-fA-F]*'/))||s.binaryNumber&&((r=="b"||r=="B")&&t.match(/^'[01]+'/)||r=="0"&&t.match(/^b[01]*/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return t.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),s.decimallessFloat&&t.match(/^\.(?!\.)/),"number";if(r=="?"&&(t.eatSpace()||t.eol()||t.eat(";")))return"macroName";if(r=="'"||r=='"'&&s.doubleQuote)return i.tokenize=x(r),i.tokenize(t,i);if((s.nCharCast&&(r=="n"||r=="N")||s.charsetCast&&r=="_"&&t.match(/[a-z][a-z0-9]*/i))&&(t.peek()=="'"||t.peek()=='"'))return"keyword";if(s.escapeConstant&&(r=="e"||r=="E")&&(t.peek()=="'"||t.peek()=='"'&&s.doubleQuote))return i.tokenize=function(m,k){return(k.tokenize=x(m.next(),!0))(m,k)},"keyword";if(s.commentSlashSlash&&r=="/"&&t.eat("/")||s.commentHash&&r=="#"||r=="-"&&t.eat("-")&&(!s.commentSpaceRequired||t.eat(" ")))return t.skipToEnd(),"comment";if(r=="/"&&t.eat("*"))return i.tokenize=b(1),i.tokenize(t,i);if(r=="."){if(s.zerolessFloat&&t.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(t.match(/^\.+/))return null;if(s.ODBCdotTable&&t.match(/^[\w\d_$#]+/))return"type"}else{if(_.test(r))return t.eatWhile(_),"operator";if(N.test(r))return"bracket";if(v.test(r))return t.eatWhile(v),"punctuation";if(r=="{"&&(t.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||t.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";t.eatWhile(/^[_\w\d]/);var l=t.current().toLowerCase();return S.hasOwnProperty(l)&&(t.match(/^( )+'[^']*'/)||t.match(/^( )+"[^"]*"/))?"number":g.hasOwnProperty(l)?"atom":p.hasOwnProperty(l)?"type":C.hasOwnProperty(l)?"keyword":c.hasOwnProperty(l)?"builtin":null}}function x(t,i){return function(r,n){for(var l=!1,m;(m=r.next())!=null;){if(m==t&&!l){n.tokenize=h;break}l=(Q||i)&&!l&&m=="\\"}return"string"}}function b(t){return function(i,r){var n=i.match(/^.*?(\/\*|\*\/)/);return n?n[1]=="/*"?r.tokenize=b(t+1):t>1?r.tokenize=b(t-1):r.tokenize=h:i.skipToEnd(),"comment"}}function w(t,i,r){i.context={prev:i.context,indent:t.indentation(),col:t.column(),type:r}}function j(t){t.indent=t.context.indent,t.context=t.context.prev}return{name:"sql",startState:function(){return{tokenize:h,context:null}},token:function(t,i){if(t.sol()&&i.context&&i.context.align==null&&(i.context.align=!1),i.tokenize==h&&t.eatSpace())return null;var r=i.tokenize(t,i);if(r=="comment")return r;i.context&&i.context.align==null&&(i.context.align=!0);var n=t.current();return n=="("?w(t,i,")"):n=="["?w(t,i,"]"):i.context&&i.context.type==n&&j(i),r},indent:function(t,i,r){var n=t.context;if(!n)return null;var l=i.charAt(0)==n.type;return n.align?n.col+(l?0:1):n.indent+(l?0:r.unit)},languageData:{commentTokens:{line:s.commentSlashSlash?"//":s.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function f(a){for(var c;(c=a.next())!=null;)if(c=="`"&&!a.eat("`"))return"string.special";return a.backUp(a.current().length-1),a.eatWhile(/\w/)?"string.special":null}function L(a){for(var c;(c=a.next())!=null;)if(c=='"'&&!a.eat('"'))return"string.special";return a.backUp(a.current().length-1),a.eatWhile(/\w/)?"string.special":null}function u(a){return a.eat("@")&&(a.match("session."),a.match("local."),a.match("global.")),a.eat("'")?(a.match(/^.*'/),"string.special"):a.eat('"')?(a.match(/^.*"/),"string.special"):a.eat("`")?(a.match(/^.*`/),"string.special"):a.match(/^[0-9a-zA-Z$\.\_]+/)?"string.special":null}function q(a){return a.eat("N")?"atom":a.match(/^[a-zA-Z.#!?]/)?"string.special":null}var d="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function e(a){for(var c={},g=a.split(" "),p=0;p!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:e("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":u}}),O=o({client:e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:e(d+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:e("date time timestamp"),support:e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":u,"`":f,"\\":q}}),D=o({client:e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:e(d+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:e("date time timestamp"),support:e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":u,"`":f,"\\":q}}),B=o({client:e("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:e(d+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:e("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:e("date time timestamp datetime"),support:e("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":u,":":u,"?":u,$:u,'"':L,"`":f}}),$=o({client:{},keywords:e("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:e("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:e("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:e("commentSlashSlash decimallessFloat"),hooks:{}}),A=o({client:e("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:e("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:e("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:e("date time timestamp"),support:e("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),E=o({keywords:e("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:e("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:e("date timestamp"),support:e("ODBCdotTable doubleQuote binaryNumber hexNumber")}),P=o({client:e("source"),keywords:e(d+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv 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_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:e("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:e("date time timestamp"),support:e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),W=o({keywords:e("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:e("false true"),builtin:e("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),H=o({client:e("source"),keywords:e("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:e("date time timestamp"),support:e("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),R=o({keywords:e("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:e("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:e("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:e("date time timestamp"),support:e("ODBCdotTable doubleQuote zerolessFloat")}),U=o({client:e("source"),keywords:e("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:e("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:e("time"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber")});export{$ as cassandra,U as esper,H as gpSQL,W as gql,E as hive,D as mariaDB,T as msSQL,O as mySQL,P as pgSQL,A as plSQL,R as sparkSQL,o as sql,B as sqlite,F as standardSQL}; diff --git a/docs/assets/square-function-DxXFdbn8.js b/docs/assets/square-function-DxXFdbn8.js new file mode 100644 index 0000000..6c003e7 --- /dev/null +++ b/docs/assets/square-function-DxXFdbn8.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var e=t("square-function",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]]);export{e as t}; diff --git a/docs/assets/square-leQTJTJJ.js b/docs/assets/square-leQTJTJJ.js new file mode 100644 index 0000000..f9a7ea2 --- /dev/null +++ b/docs/assets/square-leQTJTJJ.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var r=t("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);export{r as t}; diff --git a/docs/assets/src-Bp_72rVO.js b/docs/assets/src-Bp_72rVO.js new file mode 100644 index 0000000..f91fa18 --- /dev/null +++ b/docs/assets/src-Bp_72rVO.js @@ -0,0 +1 @@ +import{_ as ht,b as lt,c as It,f as Ot,l as Ut,m as ft,n as Rt,p as jt,r as Gt,s as Ht,t as Kt}from"./timer-CPT_vXom.js";var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function W(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),pt.hasOwnProperty(n)?{space:pt[n],local:t}:t}function Wt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&n.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?n.createElement(t):n.createElementNS(e,t)}}function $t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function mt(t){var n=W(t);return(n.local?$t:Wt)(n)}function Ft(){}function rt(t){return t==null?Ft:function(){return this.querySelector(t)}}function Jt(t){typeof t!="function"&&(t=rt(t));for(var n=this._groups,e=n.length,r=Array(e),i=0;i=B&&(B=v+1);!(j=I[B])&&++B=0;)(u=r[i])&&(o&&u.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(u,o),o=u);return this}function bn(t){t||(t=zn);function n(x,d){return x&&d?t(x.__data__,d.__data__):!x-!d}for(var e=this._groups,r=e.length,i=Array(r),o=0;on?1:t>=n?0:NaN}function En(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Sn(){return Array.from(this)}function kn(){for(var t=this._groups,n=0,e=t.length;n1?this.each((n==null?Ln:typeof n=="function"?In:qn)(t,n,e??"")):G(this.node(),t)}function G(t,n){return t.style.getPropertyValue(n)||yt(t).getComputedStyle(t,null).getPropertyValue(n)}function Un(t){return function(){delete this[t]}}function Rn(t,n){return function(){this[t]=n}}function jn(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function Gn(t,n){return arguments.length>1?this.each((n==null?Un:typeof n=="function"?jn:Rn)(t,n)):this.node()[t]}function wt(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new xt(t)}function xt(t){this._node=t,this._names=wt(t.getAttribute("class")||"")}xt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function At(t,n){for(var e=it(t),r=-1,i=n.length;++r=0&&(e=n.slice(r+1),n=n.slice(0,r)),{type:n,name:e}})}function ye(t){return function(){var n=this.__on;if(n){for(var e=0,r=-1,i=n.length,o;e{r.stop(),t(i+n)},n,e),r}var Me=lt("start","end","cancel","interrupt"),Ne=[];function Q(t,n,e,r,i,o){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;Pe(t,e,{name:n,index:r,group:i,on:Me,tween:Ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ot(t,n){var e=M(t,n);if(e.state>0)throw Error("too late; already scheduled");return e}function P(t,n){var e=M(t,n);if(e.state>3)throw Error("too late; already running");return e}function M(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw Error("transition not found");return e}function Pe(t,n,e){var r=t.__transition,i;r[n]=e,e.timer=Gt(o,0,e.time);function o(l){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=l&&u(l-e.delay)}function u(l){var f,x,d,_;if(e.state!==1)return c();for(f in r)if(_=r[f],_.name===e.name){if(_.state===3)return Ct(u);_.state===4?(_.state=6,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete r[f]):+f2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete e[u]}o&&delete t.__transition}}function Be(t){return this.each(function(){Z(this,t)})}function Ve(t,n){var e,r;return function(){var i=P(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u=0&&(n=n.slice(0,e)),!n||n==="start"})}function ar(t,n,e){var r,i,o=sr(n)?ot:P;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function cr(t,n){var e=this._id;return arguments.length<2?M(this.node(),e).on.on(t):this.each(ar(e,t,n))}function hr(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function lr(){return this.on("end.remove",hr(this._id))}function fr(t){var n=this._name,e=this._id;typeof t!="function"&&(t=rt(t));for(var r=this._groups,i=r.length,o=Array(i),u=0;u()=>t;function Lr(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function q(t,n,e){this.k=t,this.x=n,this.y=e}q.prototype={constructor:q,scale:function(t){return t===1?this:new q(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new q(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nt=new q(1,0,0);qr.prototype=q.prototype;function qr(t){for(;!t.__zoom;)if(!(t=t.parentNode))return nt;return t.__zoom}function st(t){t.stopImmediatePropagation()}function K(t){t.preventDefault(),t.stopImmediatePropagation()}function Ir(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Or(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Bt(){return this.__zoom||nt}function Ur(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Rr(){return navigator.maxTouchPoints||"ontouchstart"in this}function jr(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function Gr(){var t=Ir,n=Or,e=jr,r=Ur,i=Rr,o=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],a=250,c=Ht,l=lt("start","zoom","end"),f,x,d,_=500,E=150,k=0,I=10;function v(s){s.property("__zoom",Bt).on("wheel.zoom",Vt,{passive:!1}).on("mousedown.zoom",Dt).on("dblclick.zoom",Xt).filter(i).on("touchstart.zoom",Yt).on("touchmove.zoom",Lt).on("touchend.zoom touchcancel.zoom",qt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(s,p,h,m){var g=s.selection?s.selection():s;g.property("__zoom",Bt),s===g?g.interrupt().each(function(){V(this,arguments).event(m).start().zoom(null,typeof p=="function"?p.apply(this,arguments):p).end()}):at(s,p,h,m)},v.scaleBy=function(s,p,h,m){v.scaleTo(s,function(){return this.__zoom.k*(typeof p=="function"?p.apply(this,arguments):p)},h,m)},v.scaleTo=function(s,p,h,m){v.transform(s,function(){var g=n.apply(this,arguments),w=this.__zoom,y=h==null?j(g):typeof h=="function"?h.apply(this,arguments):h,A=w.invert(y),b=typeof p=="function"?p.apply(this,arguments):p;return e(O(B(w,b),y,A),g,u)},h,m)},v.translateBy=function(s,p,h,m){v.transform(s,function(){return e(this.__zoom.translate(typeof p=="function"?p.apply(this,arguments):p,typeof h=="function"?h.apply(this,arguments):h),n.apply(this,arguments),u)},null,m)},v.translateTo=function(s,p,h,m,g){v.transform(s,function(){var w=n.apply(this,arguments),y=this.__zoom,A=m==null?j(w):typeof m=="function"?m.apply(this,arguments):m;return e(nt.translate(A[0],A[1]).scale(y.k).translate(typeof p=="function"?-p.apply(this,arguments):-p,typeof h=="function"?-h.apply(this,arguments):-h),w,u)},m,g)};function B(s,p){return p=Math.max(o[0],Math.min(o[1],p)),p===s.k?s:new q(p,s.x,s.y)}function O(s,p,h){var m=p[0]-h[0]*s.k,g=p[1]-h[1]*s.k;return m===s.x&&g===s.y?s:new q(s.k,m,g)}function j(s){return[(+s[0][0]+ +s[1][0])/2,(+s[0][1]+ +s[1][1])/2]}function at(s,p,h,m){s.on("start.zoom",function(){V(this,arguments).event(m).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(m).end()}).tween("zoom",function(){var g=this,w=arguments,y=V(g,w).event(m),A=n.apply(g,w),b=h==null?j(A):typeof h=="function"?h.apply(g,w):h,N=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),z=g.__zoom,T=typeof p=="function"?p.apply(g,w):p,D=c(z.invert(b).concat(N/z.k),T.invert(b).concat(N/T.k));return function(C){if(C===1)C=T;else{var X=D(C),et=N/X[2];C=new q(et,b[0]-X[0]*et,b[1]-X[1]*et)}y.zoom(null,C)}})}function V(s,p,h){return!h&&s.__zooming||new ct(s,p)}function ct(s,p){this.that=s,this.args=p,this.active=0,this.sourceEvent=null,this.extent=n.apply(s,p),this.taps=0}ct.prototype={event:function(s){return s&&(this.sourceEvent=s),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(s,p){return this.mouse&&s!=="mouse"&&(this.mouse[1]=p.invert(this.mouse[0])),this.touch0&&s!=="touch"&&(this.touch0[1]=p.invert(this.touch0[0])),this.touch1&&s!=="touch"&&(this.touch1[1]=p.invert(this.touch1[0])),this.that.__zoom=p,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(s){var p=U(this.that).datum();l.call(s,this.that,new Lr(s,{sourceEvent:this.sourceEvent,target:v,type:s,transform:this.that.__zoom,dispatch:l}),p)}};function Vt(s,...p){if(!t.apply(this,arguments))return;var h=V(this,p).event(s),m=this.__zoom,g=Math.max(o[0],Math.min(o[1],m.k*2**r.apply(this,arguments))),w=R(s);if(h.wheel)(h.mouse[0][0]!==w[0]||h.mouse[0][1]!==w[1])&&(h.mouse[1]=m.invert(h.mouse[0]=w)),clearTimeout(h.wheel);else{if(m.k===g)return;h.mouse=[w,m.invert(w)],Z(this),h.start()}K(s),h.wheel=setTimeout(y,E),h.zoom("mouse",e(O(B(m,g),h.mouse[0],h.mouse[1]),h.extent,u));function y(){h.wheel=null,h.end()}}function Dt(s,...p){if(d||!t.apply(this,arguments))return;var h=s.currentTarget,m=V(this,p,!0).event(s),g=U(s.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",N,!0),w=R(s,h),y=s.clientX,A=s.clientY;kt(s.view),st(s),m.mouse=[w,this.__zoom.invert(w)],Z(this),m.start();function b(z){if(K(z),!m.moved){var T=z.clientX-y,D=z.clientY-A;m.moved=T*T+D*D>k}m.event(z).zoom("mouse",e(O(m.that.__zoom,m.mouse[0]=R(z,h),m.mouse[1]),m.extent,u))}function N(z){g.on("mousemove.zoom mouseup.zoom",null),Tt(z.view,m.moved),K(z),m.event(z).end()}}function Xt(s,...p){if(t.apply(this,arguments)){var h=this.__zoom,m=R(s.changedTouches?s.changedTouches[0]:s,this),g=h.invert(m),w=h.k*(s.shiftKey?.5:2),y=e(O(B(h,w),m,g),n.apply(this,p),u);K(s),a>0?U(this).transition().duration(a).call(at,y,m,s):U(this).call(v.transform,y,m,s)}}function Yt(s,...p){if(t.apply(this,arguments)){var h=s.touches,m=h.length,g=V(this,p,s.changedTouches.length===m).event(s),w,y,A,b;for(st(s),y=0;y{(function(w,_){typeof c=="object"&&h!==void 0?h.exports=_():typeof define=="function"&&define.amd?define(_):(w=typeof globalThis<"u"?globalThis:w||self).dayjs=_()})(c,(function(){var w=1e3,_=6e4,z=36e5,I="millisecond",k="second",L="minute",Y="hour",D="day",N="week",v="month",V="quarter",S="year",C="date",G="Invalid Date",X=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,tt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,et={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},U=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},nt={s:U,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+U(r,2,"0")+":"+U(e,2,"0")},m:function s(n,t){if(n.date()1)return s(o[0])}else{var u=n.name;T[u]=n,e=u}return!r&&e&&(W=e),e||!r&&W},l=function(s,n){if(J(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new E(t)},a=nt;a.l=j,a.i=J,a.w=function(s,n){return l(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var E=(function(){function s(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[P]=!0}var n=s.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var o=e.match(X);if(o){var u=o[2]-1||0,f=(o[7]||"0").substring(0,3);return i?new Date(Date.UTC(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,f)):new Date(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,f)}}return new Date(e)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==G},n.isSame=function(t,r){var e=l(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return l(t)K(c,"name",{value:h,configurable:!0}),ot=(c,h)=>{for(var w in h)K(c,w,{get:h[w],enumerable:!0})},M={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},m={trace:p((...c)=>{},"trace"),debug:p((...c)=>{},"debug"),info:p((...c)=>{},"info"),warn:p((...c)=>{},"warn"),error:p((...c)=>{},"error"),fatal:p((...c)=>{},"fatal")},at=p(function(c="fatal"){let h=M.fatal;typeof c=="string"?c.toLowerCase()in M&&(h=M[c]):typeof c=="number"&&(h=c),m.trace=()=>{},m.debug=()=>{},m.info=()=>{},m.warn=()=>{},m.error=()=>{},m.fatal=()=>{},h<=M.fatal&&(m.fatal=console.error?console.error.bind(console,y("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",y("FATAL"))),h<=M.error&&(m.error=console.error?console.error.bind(console,y("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",y("ERROR"))),h<=M.warn&&(m.warn=console.warn?console.warn.bind(console,y("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",y("WARN"))),h<=M.info&&(m.info=console.info?console.info.bind(console,y("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",y("INFO"))),h<=M.debug&&(m.debug=console.debug?console.debug.bind(console,y("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",y("DEBUG"))),h<=M.trace&&(m.trace=console.debug?console.debug.bind(console,y("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",y("TRACE")))},"setLogLevel"),y=p(c=>`%c${(0,it.default)().format("ss.SSS")} : ${c} : `,"format"),{abs:ct,max:ft,min:lt}=Math;["w","e"].map(Z),["n","s"].map(Z),["n","w","e","s","nw","ne","sw","se"].map(Z);function Z(c){return{type:c}}export{Q as a,at as i,p as n,m as r,ot as t}; diff --git a/docs/assets/ssh-config-B9b7z6T7.js b/docs/assets/ssh-config-B9b7z6T7.js new file mode 100644 index 0000000..bcf1719 --- /dev/null +++ b/docs/assets/ssh-config-B9b7z6T7.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"SSH Config","fileTypes":["ssh_config",".ssh/config","sshd_config"],"name":"ssh-config","patterns":[{"match":"\\\\b(A(cceptEnv|dd(ressFamily|KeysToAgent)|llow(AgentForwarding|Groups|StreamLocalForwarding|TcpForwarding|Users)|uth(enticationMethods|orized((Keys(Command(User)?|File)|Principals(Command(User)?|File)))))|B(anner|atchMode|ind(Address|Interface))|C(anonical(Domains|ize(FallbackLocal|Hostname|MaxDots|PermittedCNAMEs))|ertificateFile|hallengeResponseAuthentication|heckHostIP|hrootDirectory|iphers?|learAllForwardings|ientAlive(CountMax|Interval)|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath|ontrolPersist)|D(eny(Groups|Users)|isableForwarding|ynamicForward)|E(nableSSHKeysign|scapeChar|xitOnForwardFailure|xposeAuthInfo)|F(ingerprintHash|orceCommand|orward(Agent|X11(T(?:imeout|rusted))?))|G(atewayPorts|SSAPI(Authentication|CleanupCredentials|ClientIdentity|DelegateCredentials|KeyExchange|RenewalForcesRekey|ServerIdentity|StrictAcceptorCheck|TrustDns)|atewayPorts|lobalKnownHostsFile)|H(ashKnownHosts|ost(based(AcceptedKeyTypes|Authentication|KeyTypes|UsesNameFromPacketOnly)|Certificate|Key(A(?:gent|lgorithms|lias))?|Name))|I(dentit(iesOnly|y(Agent|File))|gnore(Rhosts|Unknown|UserKnownHosts)|nclude|PQoS)|K(bdInteractive(Authentication|Devices)|erberos(Authentication|GetAFSToken|OrLocalPasswd|TicketCleanup)|exAlgorithms)|L(istenAddress|ocal(Command|Forward)|oginGraceTime|ogLevel)|M(ACs|atch|ax(AuthTries|Sessions|Startups))|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(KCS11Provider|asswordAuthentication|ermit(EmptyPasswords|LocalCommand|Open|RootLogin|TTY|Tunnel|User(Environment|RC))|idFile|ort|referredAuthentications|rint(LastLog|Motd)|rotocol|roxy(Command|Jump|UseFdpass)|ubkey(A(?:cceptedKeyTypes|uthentication)))|R(Domain|SAAuthentication|ekeyLimit|emote(Command|Forward)|equestTTY|evoked((?:Host|)Keys)|hostsRSAAuthentication)|S(endEnv|erverAlive(CountMax|Interval)|treamLocalBind(Mask|Unlink)|trict(HostKeyChecking|Modes)|ubsystem|yslogFacility)|T(CPKeepAlive|rustedUserCAKeys|unnel(Device)?)|U(pdateHostKeys|se(BlacklistedKeys|DNS|Keychain|PAM|PrivilegedPort|r(KnownHostsFile)?))|V(erifyHostKeyDNS|ersionAddendum|isualHostKey)|X(11(DisplayOffset|Forwarding|UseLocalhost)|AuthLocation))\\\\b","name":"keyword.other.ssh-config"},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ssh-config"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.ssh-config"}},"end":"\\\\n","name":"comment.line.number-sign.ssh-config"}]},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ssh-config"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.ssh-config"}},"end":"\\\\n","name":"comment.line.double-slash.ssh-config"}]},{"captures":{"1":{"name":"storage.type.ssh-config"},"2":{"name":"entity.name.section.ssh-config"},"3":{"name":"meta.toc-list.ssh-config"}},"match":"(?:^|[\\\\t ])(Host)\\\\s+((.*))$"},{"match":"\\\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\b","name":"constant.numeric.ssh-config"},{"match":"\\\\b[0-9]+\\\\b","name":"constant.numeric.ssh-config"},{"match":"\\\\b(yes|no)\\\\b","name":"constant.language.ssh-config"},{"match":"\\\\b[A-Z_]+\\\\b","name":"constant.language.ssh-config"}],"scopeName":"source.ssh-config"}'))];export{e as default}; diff --git a/docs/assets/stata-DfVau2QO.js b/docs/assets/stata-DfVau2QO.js new file mode 100644 index 0000000..183e05a --- /dev/null +++ b/docs/assets/stata-DfVau2QO.js @@ -0,0 +1 @@ +import{t}from"./sql-HYiT1H9d.js";var a=Object.freeze(JSON.parse(`{"displayName":"Stata","fileTypes":["do","ado","mata"],"foldingStartMarker":"\\\\{\\\\s*$","foldingStopMarker":"^\\\\s*}","name":"stata","patterns":[{"include":"#ascii-regex-functions"},{"include":"#unicode-regex-functions"},{"include":"#constants"},{"include":"#functions"},{"include":"#comments"},{"include":"#subscripts"},{"include":"#operators"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#builtin_variables"},{"include":"#macro-commands"},{"match":"\\\\b(if|else if|else)\\\\b","name":"keyword.control.conditional.stata"},{"captures":{"1":{"name":"storage.type.scalar.stata"}},"match":"^\\\\s*(sca(l(?:ar?|))?(\\\\s+de(f(?:ine?|i?))?)?)\\\\s+(?!(drop|dir?|l(i(?:st?|))?)\\\\s+)"},{"begin":"\\\\b(mer(ge?)?)\\\\s+([1mn])(:)([1mn])","beginCaptures":{"1":{"name":"keyword.control.flow.stata"},"3":{"patterns":[{"include":"#constants"},{"match":"[mn]","name":""}]},"4":{"name":"punctuation.separator.key-value"},"5":{"patterns":[{"include":"#constants"},{"match":"[mn]","name":""}]}},"end":"using","patterns":[{"include":"#builtin_variables"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#comments"}]},{"captures":{"1":{"name":"keyword.control.flow.stata"},"2":{"patterns":[{"include":"#macro-local-identifiers"},{"include":"#macro-local"},{"include":"#macro-global"}]},"3":{"name":"keyword.control.flow.stata"}},"match":"\\\\b(foreach)\\\\s+((?!in|of).+)\\\\s+(in|of var(l(?:ist?|i?))?|of new(l(?:ist?|i?))?|of num(l(?:ist?|i?))?)\\\\b"},{"begin":"\\\\b(foreach)\\\\s+((?!in|of).+)\\\\s+(of (?:loc(al?)?|glo(b(?:al?|))?))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.flow.stata"},"2":{"patterns":[{"include":"#macro-local-identifiers"},{"include":"#macro-local"},{"include":"#macro-global"}]},"3":{"name":"keyword.control.flow.stata"}},"end":"(?=\\\\s*\\\\{)","patterns":[{"include":"#macro-local-identifiers"},{"include":"#macro-local"},{"include":"#macro-global"}]},{"begin":"\\\\b(forv(?:alues?|alu?|a?))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.flow.stata"}},"end":"\\\\s*(=)\\\\s*([^{]+)\\\\s*|(?=\\\\n)","endCaptures":{"1":{"name":"keyword.operator.assignment.stata"},"2":{"patterns":[{"include":"#constants"},{"include":"#operators"},{"include":"#macro-local"},{"include":"#macro-global"}]}},"patterns":[{"include":"#macro-local-identifiers"},{"include":"#macro-local"},{"include":"#macro-global"}]},{"match":"\\\\b(while|continue)\\\\b","name":"keyword.control.flow.stata"},{"captures":{"1":{"name":"keyword.other.stata"}},"match":"\\\\b(as(?:|se??|sert??))\\\\b"},{"match":"\\\\b(by(s(?:ort?|o?))?|statsby|rolling|bootstrap|jackknife|permute|simulate|svy|mi est(i(?:mate?|ma?|))?|nestreg|stepwise|xi|fp|mfp|vers(i(?:on?|))?)\\\\b","name":"storage.type.function.stata"},{"match":"\\\\b(qui(e(?:tly?|t?))?|n(o(?:isily?|isi?|i?))?|cap(t(?:ure?|u?))?)\\\\b:?","name":"keyword.control.flow.stata"},{"captures":{"1":{"name":"storage.type.function.stata"},"3":{"name":"storage.type.function.stata"},"7":{"name":"entity.name.function.stata"}},"match":"\\\\s*(pr(o(?:gram?|gr?|))?)\\\\s+((di(r)?|drop|l(i(?:st?|))?)\\\\s+)([\\\\w&&[^0-9]]\\\\w{0,31})"},{"begin":"^\\\\s*(pr(o(?:gram?|gr?|))?)\\\\s+(de(f(?:ine?|i?))?\\\\s+)?","beginCaptures":{"1":{"name":"storage.type.function.stata"},"3":{"name":"storage.type.function.stata"}},"end":"(?=[\\\\n,/])","patterns":[{"include":"#macro-local"},{"include":"#macro-global"},{"match":"[\\\\w&&[^0-9]]\\\\w{0,31}","name":"entity.name.function.stata"},{"match":"[^\\\\n ,/-9A-z]+","name":"invalid.illegal.name.stata"}]},{"captures":{"1":"keyword.functions.data.stata.test"},"match":"\\\\b(form(at?)?)\\\\s*([\\\\w&&[^0-9]]\\\\w{0,31})*\\\\s*(%)(-)?(0)?([0-9]+)(.)([0-9]+)([efg])(c)?"},{"include":"#braces-with-error"},{"begin":"(?=syntax)","end":"\\\\n","patterns":[{"begin":"syntax","beginCaptures":{"0":{"name":"keyword.functions.program.stata"}},"end":"(?=[\\\\n,])","patterns":[{"begin":"///","end":"\\\\n","name":"comment.block.stata"},{"match":"\\\\[","name":"punctuation.definition.parameters.begin.stata"},{"match":"]","name":"punctuation.definition.parameters.end.stata"},{"match":"\\\\b(varlist|varname|newvarlist|newvarname|namelist|name|anything)\\\\b","name":"entity.name.type.class.stata"},{"captures":{"2":{"name":"entity.name.type.class.stata"},"3":{"name":"keyword.operator.arithmetic.stata"}},"match":"\\\\b((if|in|using|fweight|aweight|pweight|iweight))\\\\b(/)?"},{"captures":{"1":{"name":"keyword.operator.arithmetic.stata"},"2":{"name":"entity.name.type.class.stata"}},"match":"(/)?(exp)"},{"include":"#constants"},{"include":"#operators"},{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#builtin_variables"}]},{"begin":",","beginCaptures":{"0":{"name":"punctuation.definition.variable.begin.stata"}},"end":"(?=\\\\n)","patterns":[{"begin":"///","end":"\\\\n","name":"comment.block.stata"},{"begin":"([^]\\\\[\\\\s]+)(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#macro-local-identifiers"},{"include":"#macro-local"},{"include":"#macro-global"}]},"2":{"name":"keyword.operator.parentheses.stata"}},"end":"\\\\)","endCaptures":{"0":{"name":"keyword.operator.parentheses.stata"}},"patterns":[{"captures":{"0":{"name":"support.type.stata"}},"match":"\\\\b(integer?|integ?|int|real|string?|stri?)\\\\b"},{"include":"#constants"},{"include":"#operators"},{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#builtin_variables"}]},{"include":"#macro-local-identifiers"},{"include":"#constants"},{"include":"#operators"},{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#builtin_variables"}]}]},{"captures":{"1":{"name":"keyword.functions.data.stata"}},"match":"\\\\b(sa(ve??)|saveold|destring|tostring|u(se?)?|note(s)?|form(at?)?)\\\\b"},{"match":"\\\\b(e(?:xit|nd))\\\\b","name":"keyword.functions.data.stata"},{"captures":{"1":{"name":"keyword.functions.data.stata"},"2":{"patterns":[{"include":"#macro-local"}]},"4":{"name":"invalid.illegal.name.stata"},"5":{"name":"keyword.operator.assignment.stata"}},"match":"\\\\b(replace)\\\\s+([^=]+)\\\\s*((==)|(=))"},{"captures":{"1":{"name":"keyword.functions.data.stata"},"3":{"name":"support.type.stata"},"5":{"patterns":[{"include":"#reserved-names"},{"include":"#macro-local"}]},"7":{"name":"invalid.illegal.name.stata"},"8":{"name":"keyword.operator.assignment.stata"}},"match":"\\\\b(g(e(?:nerate?|nera?|ne?|))?|egen)\\\\s+((byte|int|long|float|double|str[1-9]?[0-9]?[0-9]?[0-9]?|strL)\\\\s+)?([^=\\\\s]+)\\\\s*((==)|(=))"},{"captures":{"1":{"name":"keyword.functions.data.stata"},"3":{"name":"support.type.stata"}},"match":"\\\\b(set ty(pe?)?)\\\\s+((byte|int|long|float|double|str[1-9]?[0-9]?[0-9]?[0-9]?|strL)?\\\\s+)\\\\b"},{"captures":{"1":{"name":"keyword.functions.data.stata"},"3":{"name":"keyword.functions.data.stata"},"6":{"name":"punctuation.definition.string.begin.stata"},"7":{"patterns":[{"include":"#string-compound"},{"include":"#macro-local-escaped"},{"include":"#macro-global-escaped"},{"include":"#macro-local"},{"include":"#macro-global"},{"match":"[^$\`]{81,}","name":"invalid.illegal.name.stata"},{"match":".","name":"string.quoted.double.compound.stata"}]},"8":{"name":"punctuation.definition.string.begin.stata"}},"match":"\\\\b(la(b(?:el?|))?)\\\\s+(var(i(?:able?|ab?|))?)\\\\s+([\\\\w&&[^0-9]]\\\\w{0,31})\\\\s+(\`\\")(.+)(\\"')"},{"captures":{"1":{"name":"keyword.functions.data.stata"},"3":{"name":"keyword.functions.data.stata"},"6":{"name":"punctuation.definition.string.begin.stata"},"7":{"patterns":[{"include":"#macro-local-escaped"},{"include":"#macro-global-escaped"},{"include":"#macro-local"},{"include":"#macro-global"},{"match":"[^$\`]{81,}","name":"invalid.illegal.name.stata"},{"match":".","name":"string.quoted.double.stata"}]},"8":{"name":"punctuation.definition.string.begin.stata"}},"match":"\\\\b(la(b(?:el?|))?)\\\\s+(var(i(?:able?|ab?|))?)\\\\s+([\\\\w&&[^0-9]]\\\\w{0,31})\\\\s+(\\")(.+)(\\")"},{"captures":{"1":{"name":"keyword.functions.data.stata"},"3":{"name":"keyword.functions.data.stata"}},"match":"\\\\b(la(b(?:el?|))?)\\\\s+(da(ta?)?|var(i(?:able?|ab?|))?|de(f(?:|in??|ine))?|val(u(?:es?|))?|di(r)?|l(i(?:st?|))?|copy|drop|save|lang(u(?:age?|a?))?)\\\\b"},{"begin":"\\\\b(drop|keep)\\\\b(?!\\\\s+(i[fn])\\\\b)","beginCaptures":{"1":{"name":"keyword.functions.data.stata"}},"end":"\\\\n","patterns":[{"match":"\\\\b(i[fn])\\\\b","name":"invalid.illegal.name.stata"},{"include":"#comments"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#operators"}]},{"captures":{"1":{"name":"keyword.functions.data.stata"},"2":{"name":"keyword.functions.data.stata"}},"match":"\\\\b(drop|keep)\\\\s+(i[fn])\\\\b"},{"begin":"^\\\\s*mata:?\\\\s*$","end":"^\\\\s*end\\\\s*$\\\\n?","name":"meta.embedded.block.mata","patterns":[{"match":"(?=|<=|[<>]|!=|[-#*+/^]","name":"keyword.operator.mata"},{"include":"$self"}]},{"begin":"\\\\b(odbc)\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.stata"}},"end":"\\\\n","patterns":[{"begin":"///","end":"\\\\n","name":"comment.block.stata"},{"begin":"(exec?)(\\\\(\\")","beginCaptures":{"1":{"name":"support.function.builtin.stata"},"2":{"name":"punctuation.definition.parameters.begin.stata"}},"end":"\\"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.stata"}},"patterns":[{"include":"source.sql"}]},{"include":"$self"}]},{"include":"#commands-other"}],"repository":{"ascii-regex-character-class":{"patterns":[{"match":"\\\\\\\\[-$(-+.?\\\\[-^|]","name":"constant.character.escape.backslash.stata"},{"match":"\\\\.","name":"constant.character.character-class.stata"},{"match":"\\\\\\\\.","name":"illegal.invalid.character-class.stata"},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.stata"},"2":{"name":"keyword.operator.negation.stata"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.stata"}},"name":"constant.other.character-class.set.stata","patterns":[{"include":"#ascii-regex-character-class"},{"captures":{"2":{"name":"constant.character.escape.backslash.stata"},"4":{"name":"constant.character.escape.backslash.stata"}},"match":"((\\\\\\\\.)|.)-((\\\\\\\\.)|[^]])","name":"constant.other.character-class.range.stata"}]}]},"ascii-regex-functions":{"patterns":[{"captures":{"1":{"name":"support.function.builtin.stata"},"2":{"name":"punctuation.definition.parameters.begin.stata"},"3":{"patterns":[{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#functions"},{"match":"[\\\\w&&[^0-9]]\\\\w{0,31}","name":"variable.parameter.function.stata"},{"include":"#comments-triple-slash"}]},"4":{"name":"punctuation.definition.variable.begin.stata"},"5":{"name":"punctuation.definition.string.begin.stata"},"6":{"patterns":[{"include":"#ascii-regex-internals"}]},"7":{"name":"punctuation.definition.string.end.stata"},"8":{"name":"invalid.illegal.punctuation.stata"},"9":{"name":"punctuation.definition.parameters.end.stata"}},"match":"\\\\b(regexm)(\\\\()([^,]+)(,)\\\\s*(\\")([^\\"]+)(\\"(')?)\\\\s*(\\\\))"},{"captures":{"1":{"name":"support.function.builtin.stata"},"2":{"name":"punctuation.definition.parameters.begin.stata"},"3":{"patterns":[{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#functions"},{"match":"[\\\\w&&[^0-9]]\\\\w{0,31}","name":"variable.parameter.function.stata"},{"include":"#comments-triple-slash"}]},"4":{"name":"punctuation.definition.variable.begin.stata"},"5":{"name":"punctuation.definition.string.begin.stata"},"6":{"patterns":[{"include":"#ascii-regex-internals"}]},"7":{"name":"punctuation.definition.string.end.stata"},"8":{"name":"punctuation.definition.parameters.end.stata"}},"match":"\\\\b(regexm)(\\\\()([^,]+)(,)\\\\s*(\`\\")([^\\"]+)(\\"')\\\\s*(\\\\))"},{"captures":{"1":{"name":"support.function.builtin.stata"},"2":{"name":"punctuation.definition.parameters.begin.stata"},"3":{"patterns":[{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#functions"},{"match":"[\\\\w&&[^0-9]]\\\\w{0,31}","name":"variable.parameter.function.stata"},{"include":"#comments"}]},"4":{"name":"punctuation.definition.variable.begin.stata"},"5":{"name":"punctuation.definition.string.begin.stata"},"6":{"patterns":[{"include":"#ascii-regex-internals"}]},"7":{"name":"punctuation.definition.string.end.stata"},"8":{"name":"invalid.illegal.punctuation.stata"},"9":{"patterns":[{"match":",","name":"punctuation.definition.variable.begin.stata"},{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#functions"},{"match":"[\\\\w&&[^0-9]]\\\\w{0,31}","name":"variable.parameter.function.stata"},{"include":"#comments-triple-slash"}]},"10":{"name":"punctuation.definition.parameters.end.stata"}},"match":"\\\\b(regexr)(\\\\()([^,]+)(,)\\\\s*(\\")([^\\"]+)(\\"(')?)\\\\s*([^)]*)(\\\\))"},{"captures":{"1":{"name":"support.function.builtin.stata"},"2":{"name":"punctuation.definition.parameters.begin.stata"},"3":{"patterns":[{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#functions"},{"match":"[\\\\w&&[^0-9]]\\\\w{0,31}","name":"variable.parameter.function.stata"},{"include":"#comments"}]},"4":{"name":"punctuation.definition.variable.begin.stata"},"5":{"name":"punctuation.definition.string.begin.stata"},"6":{"patterns":[{"include":"#ascii-regex-internals"}]},"7":{"name":"punctuation.definition.string.end.stata"},"8":{"patterns":[{"match":",","name":"punctuation.definition.variable.begin.stata"},{"include":"#string-compound"},{"include":"#string-regular"},{"include":"#macro-local"},{"include":"#macro-global"},{"include":"#functions"},{"match":"[\\\\w&&[^0-9]]\\\\w{0,31}","name":"variable.parameter.function.stata"},{"include":"#comments-triple-slash"}]},"9":{"name":"punctuation.definition.parameters.end.stata"}},"match":"\\\\b(regexr)(\\\\()([^,]+)(,)\\\\s*(\`\\")([^\\"]+)(\\"')\\\\s*([^)]*)(\\\\))"}]},"ascii-regex-internals":{"patterns":[{"match":"\\\\^","name":"keyword.control.anchor.stata"},{"match":"\\\\$(?![A-Z_a-{])","name":"keyword.control.anchor.stata"},{"match":"[*+?]","name":"keyword.control.quantifier.stata"},{"match":"\\\\|","name":"keyword.control.or.stata"},{"begin":"(\\\\()(?=[*+?])","beginCaptures":{"1":{"name":"keyword.operator.group.stata"}},"contentName":"invalid.illegal.regexm.stata","end":"\\\\)","endCaptures":{"0":{"name":"keyword.operator.group.stata"}}},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.group.stata"}},"end":"(\\\\))","endCaptures":{"1":{"name":"keyword.operator.group.stata"}},"patterns":[{"include":"#ascii-regex-internals"}]},{"include":"#ascii-regex-character-class"},{"include":"#macro-local"},{"include":"#macro-global"},{"match":".","name":"string.quoted.stata"}]},"braces-with-error":{"patterns":[{"begin":"(\\\\{)\\\\s*([^\\\\n]*)(?=\\\\n)","beginCaptures":{"1":{"name":"keyword.control.block.begin.stata"},"2":{"patterns":[{"include":"#comments"},{"match":"[^\\\\n]+","name":"illegal.invalid.name.stata"}]}},"end":"^\\\\s*(})\\\\s*$|^\\\\s*([^\\"*}]+)\\\\s+(})\\\\s*([^\\\\n\\"*/}]+)|^\\\\s*([^\\"*}]+)\\\\s+(})|\\\\s*(})\\\\s*([^\\\\n\\"*/}]+)|(})$","endCaptures":{"1":{"name":"keyword.control.block.end.stata"},"2":{"name":"invalid.illegal.name.stata"},"3":{"name":"keyword.control.block.end.stata"},"4":{"name":"invalid.illegal.name.stata"},"5":{"name":"invalid.illegal.name.stata"},"6":{"name":"keyword.control.block.end.stata"},"7":{"name":"keyword.control.block.end.stata"},"8":{"name":"invalid.illegal.name.stata"},"9":{"name":"keyword.control.block.end.stata"}},"patterns":[{"include":"$self"}]}]},"braces-without-error":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"keyword.control.block.begin.stata"}},"end":"}","endCaptures":{"0":{"name":"keyword.control.block.end.stata"}}}]},"builtin_types":{"patterns":[{"match":"\\\\b(byte|int|long|float|double|str[1-9]?[0-9]?[0-9]?[0-9]?|strL)\\\\b","name":"support.type.stata"}]},"builtin_variables":{"patterns":[{"match":"\\\\b(_(?:b|coef|cons|[Nn]|rc|se))\\\\b","name":"variable.object.stata"}]},"commands-other":{"patterns":[{"match":"\\\\b(reghdfe|ivreghdfe|ivreg2|outreg|gcollapse|gcontract|gegen|gisid|glevelsof|gquantiles)\\\\b","name":"keyword.control.flow.stata"},{"match":"\\\\b(about|ac|acprplot|ado|adopath|adoupdate|alpha|ameans|ano??|anova??|anova_terms|anovadef|aorder|app??|appen??|append|arch|arch_dr|arch_estat|arch_p|archlm|areg|areg_p|args|arima|arima_dr|arima_estat|arima_p|asmprobit|asmprobit_estat|asmprobit_lf|asmprobit_mfx__dlg|asmprobit_p|avplots??|bcskew0|bgodfrey|binreg|bip0_lf|biplot|bipp_lf|bipr_lf|bipr_p|biprobit|bitesti??|bitowt|blogit|bmemsize|boot|bootsamp|boxco_l|boxco_p|boxcox|boxcox_p|bprobit|br|break|brier|brow??|browse??|brr|brrstat|bs|bsampl_w|bsample|bsqreg|bstat|bstrap|ca|ca_estat|ca_p|cabiplot|camat|canon|canon_estat|canon_p|caprojection|cat|cc|cchart|cci|cd|censobs_table|centile|cf|char|chdir|checkdlgfiles|checkestimationsample|checkhlpfiles|checksum|chelp|cii??|cl|class|classutil|clear|clis??|clist|clog|clog_lf|clog_p|clogi|clogi_sw|clogit|clogit_lf|clogit_p|clogitp|clogl_sw|cloglog|clonevar|clslistarray|cluster|cluster_measures|cluster_stop|cluster_tree|cluster_tree_8|clustermat|cmdlog|cnre??|cnreg|cnreg_p|cnreg_sw|cnsreg|codebook|collaps4|collapse|colormult_nb|colormult_nw|compare|compress|confi??|confirm??|conren|const??|constra??|constrain??|constraint|contract|copy|copyright|copysource|corc??|corr|corr2data|corr_anti|corr_kmo|corr_smc|correl??|correlat??|correlate|corrgram|coun??|count|cprplot|crc|cretu??|creturn??|cross|cs|cscript|cscript_log|csi|ct|ct_is|ctset|ctst_st|cttost|cumsp|cumul|cusum|cutil|d|datasign??|datasignat??|datasignatur??|datasignature|datetof|db|dbeta|dec??|decod??|decode|deff|desc??|descri??|describe??|dfbeta|dfgls|dfuller|di|di_g|dir|dirstats|dis|discard|disp|disp_res|disp_s|displa??|display|doe??|doedi??|doedit|dotplot|dprobit|drawnorm|ds|ds_util|dstdize|duplicates|durbina|dwstat|dydx|edi??|edit|eivreg|emdef|enc??|encod??|encode|eq|erase|ereg|ereg_lf|ereg_p|ereg_sw|ereghet|ereghet_glf|ereghet_glf_sh|ereghet_gp|ereghet_ilf|ereghet_ilf_sh|ereghet_ip|eretu??|ereturn??|erro??|error|est|est_cfexist|est_cfname|est_clickable|est_expand|est_hold|est_table|est_unhold|est_unholdok|estat|estat_default|estat_summ|estat_vce_only|esti|estimates|etodow|etof|etomdy|expand|expandcl|fact??|factor??|factor_estat|factor_p|factor_pca_rotated|factor_rotate|factormat|fcast|fcast_compute|fcast_graph|fdadesc??|fdadescri??|fdadescribe??|fdasave??|fdause|fh_st|file|filefilter|fillin|find_hlp_file|findfile|findit|fit|fli??|flist??|fpredict|frac_adj|frac_chk|frac_cox|frac_ddp|frac_dis|frac_dv|frac_in|frac_mun|frac_pp|frac_pq|frac_pv|frac_wgt|frac_xo|fracgen|fracplot|fracpoly|fracpred|fron_ex|fron_hn|fron_p|fron_tn2??|frontier|ftodate|ftoe|ftomdy|ftowdate|gamhet_glf|gamhet_gp|gamhet_ilf|gamhet_ip|gamma|gamma_d2|gamma_p|gamma_sw|gammahet|gdi_hexagon|gdi_spokes|genrank|genstd|genvmean|gettoken|gladder|glim_l01|glim_l02|glim_l03|glim_l04|glim_l05|glim_l06|glim_l07|glim_l08|glim_l09|glim_l10|glim_l11|glim_l12|glim_lf|glim_mu|glim_nw1|glim_nw2|glim_nw3|glim_p|glim_v1|glim_v2|glim_v3|glim_v4|glim_v5|glim_v6|glim_v7|glm|glm_p|glm_sw|glmpred|glogit|glogit_p|gmeans|gnbre_lf|gnbreg|gnbreg_p|gomp_lf|gompe_sw|gomper_p|gompertz|gompertzhet|gomphet_glf|gomphet_glf_sh|gomphet_gp|gomphet_ilf|gomphet_ilf_sh|gomphet_ip|gphdot|gphpen|gphprint|gprefs|gprobi_p|gprobit|gr7??|gr_copy|gr_current|gr_db|gr_describe|gr_dir|gr_draw|gr_draw_replay|gr_drop|gr_edit|gr_editviewopts|gr_example2??|gr_export|gr_print|gr_qscheme|gr_query|gr_read|gr_rename|gr_replay|gr_save|gr_set|gr_setscheme|gr_table|gr_undo|gr_use|graph|grebar|greigen|grmeanby|gs_fileinfo|gs_filetype|gs_graphinfo|gs_stat|gsort|gwood|h|hareg|hausman|haver|he|heck_d2|heckma_p|heckman|heckp_lf|heckpr_p|heckprob|help??|hereg|hetpr_lf|hetpr_p|hetprob|hettest|hexdump|hilite|hist|histogram|hlogit|hlu|hmeans|hotel|hotelling|hprobit|hreg|hsearch|icd9|icd9_ff|icd9p|iis|impute|imtest|inbase|include|infi??|infile??|infix|inpu??|input|ins|insheet|inspe??|inspect??|integ|inten|intreg|intreg_p|intrg2_ll|intrg_ll2??|ipolate|iqreg|irf??|irf_create|irfm|iri|is_svy|is_svysum|isid|istdize|ivprobit|ivprobit_p|ivreg|ivreg_footnote|ivtob_lf|ivtobit|ivtobit_p|jacknife|jknife|jkstat|joinby|kalarma1|kap|kapmeier|kappa|kapwgt|kdensity|ksm|ksmirnov|ktau|kwallis|labelbook|ladder|levelsof|leverage|lfit|lfit_p|li|lincom|line|linktest|list??|lloghet_glf|lloghet_glf_sh|lloghet_gp|lloghet_ilf|lloghet_ilf_sh|lloghet_ip|llogi_sw|llogis_p|llogist|llogistic|llogistichet|lnorm_lf|lnorm_sw|lnorma_p|lnormal|lnormalhet|lnormhet_glf|lnormhet_glf_sh|lnormhet_gp|lnormhet_ilf|lnormhet_ilf_sh|lnormhet_ip|lnskew0|loadingplot|(?=|:=|==|!=|~=|[<=>]|!!?","name":"keyword.operator.comparison.stata"},{"match":"[()]","name":"keyword.operator.parentheses.stata"},{"match":"(##?)","name":"keyword.operator.factor-variables.stata"},{"match":"%","name":"keyword.operator.format.stata"},{"match":":","name":"punctuation.separator.key-value"},{"match":"\\\\[","name":"punctuation.definition.parameters.begin.stata"},{"match":"]","name":"punctuation.definition.parameters.end.stata"},{"match":",","name":"punctuation.definition.variable.begin.stata"},{"match":";","name":"keyword.operator.delimiter.stata"}]},"reserved-names":{"patterns":[{"match":"\\\\b(_all|_b|byte|_coef|_cons|double|float|if|int??|long|_n|_N|_pi|_pred|_rc|_skip|str[0-9]+|strL|using|with)\\\\b","name":"invalid.illegal.name.stata"},{"match":"[^$'()\`\\\\w\\\\s]","name":"invalid.illegal.name.stata"},{"match":"[0-9]\\\\w{31,}","name":"invalid.illegal.name.stata"},{"match":"\\\\w{33,}","name":"invalid.illegal.name.stata"}]},"string-compound":{"patterns":[{"begin":"\`\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.stata"}},"end":"\\"'|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.stata"}},"name":"string.quoted.double.compound.stata","patterns":[{"match":"\\"","name":"string.quoted.double.compound.stata"},{"match":"\`\`\`(?=[^']*\\")","name":"meta.markdown.code.block.stata"},{"include":"#string-regular"},{"include":"#string-compound"},{"include":"#macro-local-escaped"},{"include":"#macro-global-escaped"},{"include":"#macro-local"},{"include":"#macro-global"}]}]},"string-regular":{"patterns":[{"begin":"(?n.id);t.set(s,{...e,messages:c})}return t}const r=l(f,{chats:new Map,activeChatId:null},h({toSerializable:a=>({chats:[...C(a.chats).entries()],activeChatId:a.activeChatId}),fromSerializable:a=>({chats:new Map(a.chats),activeChatId:a.activeChatId})})),g=i(a=>{let t=a(r);return t.activeChatId?t.chats.get(t.activeChatId):null},(a,t,s)=>{t(r,e=>({...e,activeChatId:s}))});export{p as a,u as i,v as n,r,g as t}; diff --git a/docs/assets/state-BphSR6sx.js b/docs/assets/state-BphSR6sx.js new file mode 100644 index 0000000..1877dab --- /dev/null +++ b/docs/assets/state-BphSR6sx.js @@ -0,0 +1 @@ +import{s as cl}from"./chunk-LvLJmgfZ.js";import{d as Kt,l as at,n as ot,p as It,u as Ye}from"./useEvent-DlWF5OMa.js";import{t as kr}from"./react-BGmjiNul.js";import{G as Dt,Hn as Cr,Jn as Nr,Qn as wr,St as Z,Vn as Sr,Zn as Kr,on as Ir}from"./cells-CmJW_FeD.js";import{t as dl}from"./react-dom-C9fstfnp.js";import{t as ye}from"./compiler-runtime-DeeZ7FnK.js";import{t as ul}from"./get-CyLJYAfP.js";import{c as Dr,i as _r,l as Pr,r as _t}from"./client-SHlWC2SD.js";import{d as Ae,r as Er,s as ml}from"./hotkeys-uKX61F1_.js";import{D as Ar,E as Mr,T as hl,l as Fr,p as Tr,x as pl,y as fl}from"./utils-Czt8B2GX.js";import{j as Be}from"./config-CENq_7Pd.js";import{a as Pt,n as $r,s as Rr,t as Br}from"./switch-C5jvDmuG.js";import{t as zr}from"./jsx-runtime-DN_bIXfG.js";import{n as Vr,r as gl,t as J}from"./button-B8cGZzP5.js";import{t as ue}from"./cn-C1rgT0yh.js";import{l as xl}from"./once-CTiSlR1m.js";import{r as ct}from"./requests-C0HaHO6a.js";import{t as Xe}from"./createLucideIcon-CW2xpJ57.js";import{a as yl,c as Et,i as Oe,n as vl,o as Lr,r as Or,s as Qe,t as Hr,u as bl}from"./ai-model-dropdown-C-5PlP5A.js";import{t as Ur}from"./check-CrAQug3q.js";import{h as At,i as Mt,l as ve,n as qr,r as Wr,s as Gr,t as Yr}from"./select-D9lTzMzP.js";import{t as Xr}from"./chevron-right-CqEd11Di.js";import{t as Qr}from"./circle-check-big-OIMTUpe6.js";import{c as Zr}from"./dropdown-menu-BP4_BZLr.js";import{t as Jr}from"./copy-gBVL4NN-.js";import{n as dt,t as jl}from"./spinner-C1czjtp7.js";import{t as ei}from"./plug-Bp1OpH-w.js";import{t as ti}from"./plus-CHesBJpY.js";import{t as kl}from"./refresh-cw-Din9uFKE.js";import{$ as li,B as si,F as Cl,J as Nl,L as Ke,M as Ft,N as ni,R as wl,S as ri,V as ii,W as ut,X as Ze,Y as ai,_ as oi,at as mt,ct as ht,g as ci,o as Je,ot as Tt,q as di,r as Ie,rt as $t,st as ui}from"./input-Bkl2Yfmh.js";import{a as V,c as R,d as U,g as mi,i as hi,l as z,o as q,p as pi,r as fi,s as gi,u as B,v as Rt,y as Sl}from"./textarea-DzIuH-E_.js";import{t as Kl}from"./trash-2-C-lF7BNB.js";import{t as Bt}from"./triangle-alert-CbD0f2J6.js";import{t as pt}from"./badge-DAnNhy3O.js";import{t as De}from"./use-toast-Bzf3rpev.js";import{t as xi}from"./useTheme-BSVRc0kJ.js";import{t as He}from"./tooltip-CvjcEpZC.js";import{a as yi}from"./mode-CXc0VeQq.js";import{a as vi,c as bi,n as ji,o as ki,s as Ci,t as Ni}from"./dialog-CF5DtF1E.js";import{a as ft,c as wi,d as Ue,g as Si,h as Ki,i as Ii,l as Te,m as Il,n as zt,p as ze,s as Dl,u as _l}from"./VisuallyHidden-B0mBEsSm.js";import{A as Pl,D as Vt,F as El,I as Di,L as et,N as Al,O as Ne,R as gt,T as _i,_ as Ml,g as Pi,p as Ei,t as Fl,v as Ai,z as xt}from"./usePress-C2LPFxyv.js";import{t as Tl}from"./SSRProvider-DD7JA3RM.js";import{t as yt}from"./context-BAYdLMF_.js";import{i as Mi,r as Fi,s as Ti,t as $i}from"./popover-DtnzNVk-.js";import{n as Ri,t as Bi}from"./SelectionIndicator-BtLUNjRz.js";import{n as zi}from"./useDebounce-em3gna-v.js";import{t as Vi}from"./copy-DRhpWiOq.js";import{a as Li,i as Oi,n as $l,r as Hi}from"./multi-map-CQd4MZr5.js";import{t as ee}from"./kbd-Czc5z_04.js";import{t as ie}from"./links-DNmjkr65.js";import{n as Ui,r as qi,t as Wi}from"./alert-BEdExd6A.js";import{n as Gi,t as vt}from"./error-banner-Cq4Yn1WZ.js";import{i as tt,n as bt,r as Rl,t as Bl}from"./tabs-CHiEPtZV.js";import{n as zl}from"./useAsyncData-Dj1oqsrZ.js";import{a as Yi,i as jt,n as Xi,o as Vl,r as Lt,t as Qi}from"./table-BatLo2vd.js";import{t as Ot}from"./renderShortcut-BzTDKVab.js";import{t as _e}from"./label-CqyOmxjL.js";var Ll=Xe("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]),Zi=Xe("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]),Ol=Xe("folder-cog",[["path",{d:"M10.3 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.98a2 2 0 0 1 1.69.9l.66 1.2A2 2 0 0 0 12 6h8a2 2 0 0 1 2 2v3.3",key:"128dxu"}],["path",{d:"m14.305 19.53.923-.382",key:"3m78fa"}],["path",{d:"m15.228 16.852-.923-.383",key:"npixar"}],["path",{d:"m16.852 15.228-.383-.923",key:"5xggr7"}],["path",{d:"m16.852 20.772-.383.924",key:"dpfhf9"}],["path",{d:"m19.148 15.228.383-.923",key:"1reyyz"}],["path",{d:"m19.53 21.696-.382-.924",key:"1goivc"}],["path",{d:"m20.772 16.852.924-.383",key:"htqkph"}],["path",{d:"m20.772 19.148.924.383",key:"9w9pjp"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}]]),Ji=Xe("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),ea=Xe("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),h=cl(kr(),1);function Hl(t,e){let l=(0,h.useRef)(!0),n=(0,h.useRef)(null);xt(()=>(l.current=!0,()=>{l.current=!1}),[]),xt(()=>{l.current?l.current=!1:(!n.current||e.some((r,i)=>!Object.is(r,n[i])))&&t(),n.current=e},e)}function Ul(t,e){let{collection:l,onLoadMore:n,scrollOffset:r=1}=t,i=(0,h.useRef)(null),a=gt(c=>{for(let o of c)o.isIntersecting&&n&&n()});xt(()=>(e.current&&(i.current=new IntersectionObserver(a,{root:ze(e==null?void 0:e.current),rootMargin:`0px ${100*r}% ${100*r}% ${100*r}%`}),i.current.observe(e.current)),()=>{i.current&&i.current.disconnect()}),[l,a,e,r])}function ql(t){let e=h.version.split(".");return parseInt(e[0],10)>=19?t:t?"true":void 0}var ta="react-aria-clear-focus",la="react-aria-focus",sa=500;function na(t){let{isDisabled:e,onLongPressStart:l,onLongPressEnd:n,onLongPress:r,threshold:i=sa,accessibilityDescription:a}=t,c=(0,h.useRef)(void 0),{addGlobalListener:o,removeGlobalListener:u}=Ei(),{pressProps:d}=Fl({isDisabled:e,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(l&&l({...p,type:"longpressstart"}),c.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Al(p.target).activeElement!==p.target&&Vt(p.target),r&&r({...p,type:"longpress"}),c.current=void 0},i),p.pointerType==="touch")){let g=x=>{x.preventDefault()};o(p.target,"contextmenu",g,{once:!0}),o(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){c.current&&clearTimeout(c.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}});return{longPressProps:Ne(d,_l(r&&!e?a:void 0))}}function ra(t,e){let l=e==null?void 0:e.isDisabled,[n,r]=(0,h.useState)(!1);return xt(()=>{if(t!=null&&t.current&&!l){let i=()=>{t.current&&r(!!ft(t.current,{tabbable:!0}).nextNode())};i();let a=new MutationObserver(i);return a.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{a.disconnect()}}}),l?!1:n}function Wl(t){let e=aa(Al(t));e!==t&&(e&&ia(e,t),t&&Gl(t,e))}function ia(t,e){t.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function Gl(t,e){t.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),t.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function aa(t){let e=Pl(t),l=e==null?void 0:e.getAttribute("aria-activedescendant");return l&&t.getElementById(l)||e}function Ht(t){return _i()?t.altKey:t.ctrlKey}function kt(t,e){var r,i;let l=`[data-key="${CSS.escape(String(e))}"]`,n=(r=t.current)==null?void 0:r.dataset.collection;return n&&(l=`[data-collection="${CSS.escape(n)}"]${l}`),(i=t.current)==null?void 0:i.querySelector(l)}var Yl=new WeakMap;function oa(t){let e=et();return Yl.set(t,e),e}function ca(t){return Yl.get(t)}var da=1e3;function ua(t){let{keyboardDelegate:e,selectionManager:l,onTypeSelect:n}=t,r=(0,h.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?i=>{let a=ma(i.key);if(!(!a||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||r.search.length===0&&a===" ")){if(a===" "&&r.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),r.search+=a,e.getKeyForSearch!=null){let c=e.getKeyForSearch(r.search,l.focusedKey);c??(c=e.getKeyForSearch(r.search)),c!=null&&(l.setFocusedKey(c),n&&n(c))}clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},da)}}:void 0}}}function ma(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}var ha=dl();function pa(t){let{selectionManager:e,keyboardDelegate:l,ref:n,autoFocus:r=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:c=!1,escapeKeyBehavior:o="clearSelection",selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:p,allowsTabNavigation:g=!1,isVirtualized:x,scrollRef:y=n,linkBehavior:j="action"}=t,{direction:v}=yt(),w=Ml(),m=N=>{var W,b,G,Q,te,ae,ce,re,Y,X,le,se,he;if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!((W=n.current)!=null&&W.contains(N.target)))return;let A=(E,oe)=>{if(E!=null){if(e.isLink(E)&&j==="selection"&&u&&!Ht(N)){(0,ha.flushSync)(()=>{e.setFocusedKey(E,oe)});let ne=kt(n,E),pe=e.getItemProps(E);ne&&w.open(ne,N,pe.href,pe.routerOptions);return}if(e.setFocusedKey(E,oe),e.isLink(E)&&j==="override")return;N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(E):u&&!Ht(N)&&e.replaceSelection(E)}};switch(N.key){case"ArrowDown":if(l.getKeyBelow){let E=e.focusedKey==null?(b=l.getFirstKey)==null?void 0:b.call(l):(G=l.getKeyBelow)==null?void 0:G.call(l,e.focusedKey);E==null&&i&&(E=(Q=l.getFirstKey)==null?void 0:Q.call(l,e.focusedKey)),E!=null&&(N.preventDefault(),A(E))}break;case"ArrowUp":if(l.getKeyAbove){let E=e.focusedKey==null?(te=l.getLastKey)==null?void 0:te.call(l):(ae=l.getKeyAbove)==null?void 0:ae.call(l,e.focusedKey);E==null&&i&&(E=(ce=l.getLastKey)==null?void 0:ce.call(l,e.focusedKey)),E!=null&&(N.preventDefault(),A(E))}break;case"ArrowLeft":if(l.getKeyLeftOf){let E=e.focusedKey==null?null:(re=l.getKeyLeftOf)==null?void 0:re.call(l,e.focusedKey);E==null&&i&&(E=v==="rtl"?(Y=l.getFirstKey)==null?void 0:Y.call(l,e.focusedKey):(X=l.getLastKey)==null?void 0:X.call(l,e.focusedKey)),E!=null&&(N.preventDefault(),A(E,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(l.getKeyRightOf){let E=e.focusedKey==null?null:(le=l.getKeyRightOf)==null?void 0:le.call(l,e.focusedKey);E==null&&i&&(E=v==="rtl"?(se=l.getLastKey)==null?void 0:se.call(l,e.focusedKey):(he=l.getFirstKey)==null?void 0:he.call(l,e.focusedKey)),E!=null&&(N.preventDefault(),A(E,v==="rtl"?"last":"first"))}break;case"Home":if(l.getFirstKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let E=l.getFirstKey(e.focusedKey,Ue(N));e.setFocusedKey(E),E!=null&&(Ue(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(E):u&&e.replaceSelection(E))}break;case"End":if(l.getLastKey){if(e.focusedKey===null&&N.shiftKey)return;N.preventDefault();let E=l.getLastKey(e.focusedKey,Ue(N));e.setFocusedKey(E),E!=null&&(Ue(N)&&N.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(E):u&&e.replaceSelection(E))}break;case"PageDown":if(l.getKeyPageBelow&&e.focusedKey!=null){let E=l.getKeyPageBelow(e.focusedKey);E!=null&&(N.preventDefault(),A(E))}break;case"PageUp":if(l.getKeyPageAbove&&e.focusedKey!=null){let E=l.getKeyPageAbove(e.focusedKey);E!=null&&(N.preventDefault(),A(E))}break;case"a":Ue(N)&&e.selectionMode==="multiple"&&c!==!0&&(N.preventDefault(),e.selectAll());break;case"Escape":o==="clearSelection"&&!a&&e.selectedKeys.size!==0&&(N.stopPropagation(),N.preventDefault(),e.clearSelection());break;case"Tab":if(!g){if(N.shiftKey)n.current.focus();else{let E=ft(n.current,{tabbable:!0}),oe,ne;do ne=E.lastChild(),ne&&(oe=ne);while(ne);oe&&!oe.contains(document.activeElement)&&Vt(oe)}break}}},f=(0,h.useRef)({top:0,left:0});mt(y,"scroll",x?void 0:()=>{var N,A;f.current={top:((N=y.current)==null?void 0:N.scrollTop)??0,left:((A=y.current)==null?void 0:A.scrollLeft)??0}});let k=N=>{var A,W;if(e.isFocused){N.currentTarget.contains(N.target)||e.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(e.setFocused(!0),e.focusedKey==null){let b=Q=>{Q!=null&&(e.setFocusedKey(Q),u&&!e.isSelected(Q)&&e.replaceSelection(Q))},G=N.relatedTarget;G&&N.currentTarget.compareDocumentPosition(G)&Node.DOCUMENT_POSITION_FOLLOWING?b(e.lastSelectedKey??((A=l.getLastKey)==null?void 0:A.call(l))):b(e.firstSelectedKey??((W=l.getFirstKey)==null?void 0:W.call(l)))}else!x&&y.current&&(y.current.scrollTop=f.current.top,y.current.scrollLeft=f.current.left);if(e.focusedKey!=null&&y.current){let b=kt(n,e.focusedKey);b instanceof HTMLElement&&(!b.contains(document.activeElement)&&!p&&Vt(b),wl()==="keyboard"&&Te(b,{containingElement:n.current}))}}},D=N=>{N.currentTarget.contains(N.relatedTarget)||e.setFocused(!1)},C=(0,h.useRef)(!1);mt(n,la,p?N=>{let{detail:A}=N;N.stopPropagation(),e.setFocused(!0),(A==null?void 0:A.focusStrategy)==="first"&&(C.current=!0)}:void 0);let M=gt(()=>{var A;let N=((A=l.getFirstKey)==null?void 0:A.call(l))??null;if(N==null){let W=Pl();Wl(n.current),Gl(W,null),e.collection.size>0&&(C.current=!1)}else e.setFocusedKey(N),C.current=!1});Hl(()=>{C.current&&M()},[e.collection,M]);let _=gt(()=>{e.collection.size>0&&(C.current=!1)});Hl(()=>{_()},[e.focusedKey,_]),mt(n,ta,p?N=>{var A;N.stopPropagation(),e.setFocused(!1),(A=N.detail)!=null&&A.clearFocusKey&&e.setFocusedKey(null)}:void 0);let S=(0,h.useRef)(r),P=(0,h.useRef)(!1);(0,h.useEffect)(()=>{var N,A;if(S.current){let W=null;r==="first"&&(W=((N=l.getFirstKey)==null?void 0:N.call(l))??null),r==="last"&&(W=((A=l.getLastKey)==null?void 0:A.call(l))??null);let b=e.selectedKeys;if(b.size){for(let G of b)if(e.canSelectItem(G)){W=G;break}}e.setFocused(!0),e.setFocusedKey(W),W==null&&!p&&n.current&&Ke(n.current),e.collection.size>0&&(S.current=!1,P.current=!0)}});let I=(0,h.useRef)(e.focusedKey),T=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==I.current||P.current)&&y.current&&n.current){let N=wl(),A=kt(n,e.focusedKey);if(!(A instanceof HTMLElement))return;(N==="keyboard"||P.current)&&(T.current&&cancelAnimationFrame(T.current),T.current=requestAnimationFrame(()=>{y.current&&(wi(y.current,A),N!=="virtual"&&Te(A,{containingElement:n.current}))}))}!p&&e.isFocused&&e.focusedKey==null&&I.current!=null&&n.current&&Ke(n.current),I.current=e.focusedKey,P.current=!1}),(0,h.useEffect)(()=>()=>{T.current&&cancelAnimationFrame(T.current)},[]),mt(n,"react-aria-focus-scope-restore",N=>{N.preventDefault(),e.setFocused(!0)});let $={onKeyDown:m,onFocus:k,onBlur:D,onMouseDown(N){y.current===N.target&&N.preventDefault()}},{typeSelectProps:K}=ua({keyboardDelegate:l,selectionManager:e});d||($=Ne(K,$));let F;p||(F=e.focusedKey==null?0:-1);let H=oa(e.collection);return{collectionProps:Ne($,{tabIndex:F,"data-collection":H})}}function Xl(t){let{id:e,selectionManager:l,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:c,isDisabled:o,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:p="action"}=t,g=Ml();e=et(e);let x=b=>{if(b.pointerType==="keyboard"&&Ht(b))l.toggleSelection(n);else{if(l.selectionMode==="none")return;if(l.isLink(n)){if(p==="selection"&&r.current){let G=l.getItemProps(n);g.open(r.current,b,G.href,G.routerOptions),l.setSelectedKeys(l.selectedKeys);return}else if(p==="override"||p==="none")return}l.selectionMode==="single"?l.isSelected(n)&&!l.disallowEmptySelection?l.toggleSelection(n):l.replaceSelection(n):b&&b.shiftKey?l.extendSelection(n):l.selectionBehavior==="toggle"||b&&(Ue(b)||b.pointerType==="touch"||b.pointerType==="virtual")?l.toggleSelection(n):l.replaceSelection(n)}};(0,h.useEffect)(()=>{n===l.focusedKey&&l.isFocused&&(a?Wl(r.current):c?c():document.activeElement!==r.current&&r.current&&Ke(r.current))},[r,n,l.focusedKey,l.childFocusStrategy,l.isFocused,a]),o||(o=l.isDisabled(n));let y={};!a&&!o?y={tabIndex:n===l.focusedKey?0:-1,onFocus(b){b.target===r.current&&l.setFocusedKey(n)}}:o&&(y.onMouseDown=b=>{b.preventDefault()});let j=l.isLink(n)&&p==="override",v=u&&t.UNSTABLE_itemBehavior==="action",w=l.isLink(n)&&p!=="selection"&&p!=="none",m=!o&&l.canSelectItem(n)&&!j&&!v,f=(u||w)&&!o,k=f&&(l.selectionBehavior==="replace"?!m:!m||l.isEmpty),D=f&&m&&l.selectionBehavior==="replace",C=k||D,M=(0,h.useRef)(null),_=C&&m,S=(0,h.useRef)(!1),P=(0,h.useRef)(!1),I=l.getItemProps(n),T=b=>{if(u){var G;u(),(G=r.current)==null||G.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}w&&r.current&&g.open(r.current,b,I.href,I.routerOptions)},$={ref:r};if(i?($.onPressStart=b=>{M.current=b.pointerType,S.current=_,b.pointerType==="keyboard"&&(!C||Zl())&&x(b)},d?($.onPressUp=k?void 0:b=>{b.pointerType==="mouse"&&m&&x(b)},$.onPress=k?T:b=>{b.pointerType!=="keyboard"&&b.pointerType!=="mouse"&&m&&x(b)}):$.onPress=b=>{if(k||D&&b.pointerType!=="mouse"){if(b.pointerType==="keyboard"&&!Ql())return;T(b)}else b.pointerType!=="keyboard"&&m&&x(b)}):($.onPressStart=b=>{M.current=b.pointerType,S.current=_,P.current=k,m&&(b.pointerType==="mouse"&&!k||b.pointerType==="keyboard"&&(!f||Zl()))&&x(b)},$.onPress=b=>{(b.pointerType==="touch"||b.pointerType==="pen"||b.pointerType==="virtual"||b.pointerType==="keyboard"&&C&&Ql()||b.pointerType==="mouse"&&P.current)&&(C?T(b):m&&x(b))}),y["data-collection"]=ca(l.collection),y["data-key"]=n,$.preventFocusOnPress=a,a&&($=Ne($,{onPressStart(b){b.pointerType!=="touch"&&(l.setFocused(!0),l.setFocusedKey(n))},onPress(b){b.pointerType==="touch"&&(l.setFocused(!0),l.setFocusedKey(n))}})),I)for(let b of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])I[b]&&($[b]=El($[b],I[b]));let{pressProps:K,isPressed:F}=Fl($),H=D?b=>{M.current==="mouse"&&(b.stopPropagation(),b.preventDefault(),T(b))}:void 0,{longPressProps:N}=na({isDisabled:!_,onLongPress(b){b.pointerType==="touch"&&(x(b),l.setSelectionBehavior("toggle"))}}),A=b=>{M.current==="touch"&&S.current&&b.preventDefault()},W=p!=="none"&&l.isLink(n)?b=>{Pi.isOpening||b.preventDefault()}:void 0;return{itemProps:Ne(y,m||k||a&&!o?K:{},_?N:{},{onDoubleClick:H,onDragStartCapture:A,onClick:W,id:e},a?{onMouseDown:b=>b.preventDefault()}:void 0),isPressed:F,isSelected:l.isSelected(n),isFocused:l.isFocused&&l.focusedKey===n,isDisabled:o,allowsSelection:m,hasAction:C}}function Ql(){var t;return((t=window.event)==null?void 0:t.key)==="Enter"}function Zl(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}var Jl=class{getItemRect(t){let e=this.ref.current;if(!e)return null;let l=t==null?null:kt(this.ref,t);if(!l)return null;let n=e.getBoundingClientRect(),r=l.getBoundingClientRect();return{x:r.left-n.left-e.clientLeft+e.scrollLeft,y:r.top-n.top-e.clientTop+e.scrollTop,width:r.width,height:r.height}}getContentSize(){let t=this.ref.current;return{width:(t==null?void 0:t.scrollWidth)??0,height:(t==null?void 0:t.scrollHeight)??0}}getVisibleRect(){let t=this.ref.current;return{x:(t==null?void 0:t.scrollLeft)??0,y:(t==null?void 0:t.scrollTop)??0,width:(t==null?void 0:t.clientWidth)??0,height:(t==null?void 0:t.clientHeight)??0}}constructor(t){this.ref=t}},Ut=class{isDisabled(t){var e;return this.disabledBehavior==="all"&&(((e=t.props)==null?void 0:e.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,e){let l=t;for(;l!=null;){let n=this.collection.getItem(l);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return l;l=e(l)}return null}getNextKey(t){let e=t;return e=this.collection.getKeyAfter(e),this.findNextNonDisabled(e,l=>this.collection.getKeyAfter(l))}getPreviousKey(t){let e=t;return e=this.collection.getKeyBefore(e),this.findNextNonDisabled(e,l=>this.collection.getKeyBefore(l))}findKey(t,e,l){let n=t,r=this.layoutDelegate.getItemRect(n);if(!r||n==null)return null;let i=r;do{if(n=e(n),n==null)break;r=this.layoutDelegate.getItemRect(n)}while(r&&l(i,r)&&n!=null);return n}isSameRow(t,e){return t.y===e.y||t.x!==e.x}isSameColumn(t,e){return t.x===e.x||t.y!==e.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,e){return e?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let e=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,l=>this.layoutDelegate[e](l))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,l=>this.getNextColumn(l,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let e=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,l=>this.layoutDelegate[e](l))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,l=>this.getNextColumn(l,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(t){let e=this.ref.current,l=this.layoutDelegate.getItemRect(t);if(!l)return null;if(e&&!Il(e))return this.getFirstKey();let n=t;if(this.orientation==="horizontal"){let r=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>r&&n!=null;)n=this.getKeyAbove(n),l=n==null?null:this.layoutDelegate.getItemRect(n)}else{let r=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>r&&n!=null;)n=this.getKeyAbove(n),l=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(t){let e=this.ref.current,l=this.layoutDelegate.getItemRect(t);if(!l)return null;if(e&&!Il(e))return this.getLastKey();let n=t;if(this.orientation==="horizontal"){let r=Math.min(this.layoutDelegate.getContentSize().width,l.y-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.xi||new Ut({collection:l,disabledKeys:n,disabledBehavior:o,ref:r,collator:c,layoutDelegate:a}),[i,a,l,n,r,c,o]),{collectionProps:d}=pa({...t,ref:r,selectionManager:e,keyboardDelegate:u});return{listProps:d}}var fa=class{build(t,e){return this.context=e,ts(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:e,items:l}=t;if(h.isValidElement(e)&&e.type===h.Fragment)yield*this.iterateCollection({children:e.props.children,items:l});else if(typeof e=="function"){if(!l)throw Error("props.children was a function but props.items is missing");let n=0;for(let r of l)yield*this.getFullNode({value:r,index:n},{renderer:e}),n++}else{let n=[];h.Children.forEach(e,i=>{i&&n.push(i)});let r=0;for(let i of n){let a=this.getFullNode({element:i,index:r},{});for(let c of a)r++,yield c}}}getKey(t,e,l,n){if(t.key!=null)return t.key;if(e.type==="cell"&&e.key!=null)return`${n}${e.key}`;let r=e.value;if(r!=null){let i=r.key??r.id;if(i==null)throw Error("No key found for item");return i}return n?`${n}.${e.index}`:`$.${e.index}`}getChildState(t,e){return{renderer:e.renderer||t.renderer}}*getFullNode(t,e,l,n){if(h.isValidElement(t.element)&&t.element.type===h.Fragment){let c=[];h.Children.forEach(t.element.props.children,u=>{c.push(u)});let o=t.index??0;for(let u of c)yield*this.getFullNode({element:u,index:o++},e,l,n);return}let r=t.element;if(!r&&t.value&&e&&e.renderer){let c=this.cache.get(t.value);if(c&&(!c.shouldInvalidate||!c.shouldInvalidate(this.context))){c.index=t.index,c.parentKey=n?n.key:null,yield c;return}r=e.renderer(t.value)}if(h.isValidElement(r)){let c=r.type;if(typeof c!="function"&&typeof c.getCollectionNode!="function"){let p=r.type;throw Error(`Unknown element <${p}> in collection.`)}let o=c.getCollectionNode(r.props,this.context),u=t.index??0,d=o.next();for(;!d.done&&d.value;){let p=d.value;t.index=u;let g=p.key??null;g??(g=p.element?null:this.getKey(r,t,e,l));let x=[...this.getFullNode({...p,key:g,index:u,wrapper:ga(t.wrapper,p.wrapper)},this.getChildState(e,p),l?`${l}${r.key}`:r.key,n)];for(let y of x){if(y.value=p.value??t.value??null,y.value&&this.cache.set(y.value,y),t.type&&y.type!==t.type)throw Error(`Unsupported type <${qt(y.type)}> in <${qt((n==null?void 0:n.type)??"unknown parent type")}>. Only <${qt(t.type)}> is supported.`);u++,yield y}d=o.next(x)}return}if(t.key==null||t.type==null)return;let i=this,a={type:t.type,props:t.props,key:t.key,parentKey:n?n.key:null,value:t.value??null,level:n?n.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue??"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:ts(function*(){if(!t.hasChildNodes||!t.childNodes)return;let c=0;for(let o of t.childNodes()){o.key!=null&&(o.key=`${a.key}${o.key}`);let u=i.getFullNode({...o,index:c},i.getChildState(e,o),a.key,a);for(let d of u)c++,yield d}})};yield a}constructor(){this.cache=new WeakMap}};function ts(t){let e=[],l=null;return{*[Symbol.iterator](){for(let n of e)yield n;l||(l=t());for(let n of l)e.push(n),yield n}}}function ga(t,e){if(t&&e)return l=>t(e(l));if(t)return t;if(e)return e}function qt(t){return t[0].toUpperCase()+t.slice(1)}function ls(t,e,l){let n=(0,h.useMemo)(()=>new fa,[]),{children:r,items:i,collection:a}=t;return(0,h.useMemo)(()=>a||e(n.build({children:r,items:i},l)),[n,r,i,a,l,e])}function ss(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function xa(t){return ya(t,0)}function ya(t,e){if(e<0)return;let l=0;for(let n of t){if(l===e)return n;l++}}function Wt(t,e,l){if(e.parentKey===l.parentKey)return e.index-l.index;let n=[...ns(t,e),e],r=[...ns(t,l),l],i=n.slice(0,r.length).findIndex((a,c)=>a!==r[c]);return i===-1?n.findIndex(a=>a===l)>=0?1:(r.findIndex(a=>a===e),-1):(e=n[i],l=r[i],e.index-l.index)}function ns(t,e){let l=[],n=e;for(;(n==null?void 0:n.parentKey)!=null;)n=t.getItem(n.parentKey),n&&l.unshift(n);return l}var Ve=class{get childNodes(){throw Error("childNodes is not supported")}clone(){let t=new this.constructor(this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}filter(t,e,l){let n=this.clone();return e.addDescendants(n,t),n}constructor(t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=t}},rs=class extends Ve{filter(t,e,l){let[n,r]=as(t,e,this.firstChildKey,l),i=this.clone();return i.firstChildKey=n,i.lastChildKey=r,i}},va=class extends Ve{};va.type="header";var Gt=class extends Ve{};Gt.type="loader";var is=class extends rs{filter(t,e,l){if(l(this.textValue,this)){let n=this.clone();return e.addDescendants(n,t),n}return null}};is.type="item";var ba=class extends rs{filter(t,e,l){let n=super.filter(t,e,l);if(n&&n.lastChildKey!==null){let r=t.getItem(n.lastChildKey);if(r&&r.type!=="header")return n}return null}};ba.type="section";var ja=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;t;)yield t,t=t.nextKey==null?void 0:this.keyMap.get(t.nextKey)}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let l=e.get(t),n=(l==null?void 0:l.firstChildKey)==null?null:e.get(l.firstChildKey);for(;n;)yield n,n=n.nextKey==null?void 0:e.get(n.nextKey)}}}getKeyBefore(t){let e=this.keyMap.get(t);if(!e)return null;if(e.prevKey!=null){for(e=this.keyMap.get(e.prevKey);e&&e.type!=="item"&&e.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return(e==null?void 0:e.key)??null}return e.parentKey}getKeyAfter(t){let e=this.keyMap.get(t);if(!e)return null;if(e.type!=="item"&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.keyMap.get(e.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);return(t==null?void 0:t.key)??null}getItem(t){return this.keyMap.get(t)??null}at(){throw Error("Not implemented")}clone(){let t=this.constructor,e=new t;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(t){if(this.frozen)throw Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}addDescendants(t,e){this.addNode(t);let l=e.getChildren(t.key);for(let n of l)this.addDescendants(n,e)}removeNode(t){if(this.frozen)throw Error("Cannot remove a node to a frozen collection");let e=this.keyMap.get(t);e!=null&&e.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,e,l=!1){if(this.frozen)throw Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=e,this.frozen=!l}filter(t){let e=new this.constructor,[l,n]=as(this,e,this.firstKey,t);return e==null||e.commit(l,n),e}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function as(t,e,l,n){if(l==null)return[null,null];let r=null,i=null,a=t.getItem(l);for(;a!=null;){let c=a.filter(t,e,n);c!=null&&(c.nextKey=null,i&&(c.prevKey=i.key,i.nextKey=c.key),r??(r=c),e.addNode(c),i=c),a=a.nextKey?t.getItem(a.nextKey):null}if(i&&i.type==="separator"){let c=i.prevKey;e.removeNode(i.key),c?(i=e.getItem(c),i.nextKey=null):i=null}return[(r==null?void 0:r.key)??null,(i==null?void 0:i.key)??null]}var os=class{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)==null?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.indexthis.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}};function Xt(t){let{children:e,items:l,idScope:n,addIdAndValue:r,dependencies:i=[]}=t,a=(0,h.useMemo)(()=>new WeakMap,i);return(0,h.useMemo)(()=>{if(l&&typeof e=="function"){let c=[];for(let o of l){let u=a.get(o);if(!u){u=e(o);let d=u.props.id??o.key??o.id;if(d==null)throw Error("Could not determine key for item");n&&(d=n+":"+d),u=(0,h.cloneElement)(u,r?{key:d,id:d,value:o}:{key:d}),a.set(o,u)}c.push(u)}return c}else if(typeof e!="function")return e},[e,l,a,n,r])}var Ca=dl(),Na=Ti(),cs=(0,h.createContext)(!1),lt=(0,h.createContext)(null);function ds(t){if((0,h.useContext)(lt))return t.content;let{collection:e,document:l}=Ia(t.createCollection);return h.createElement(h.Fragment,null,h.createElement(ri,null,h.createElement(lt.Provider,{value:l},t.content)),h.createElement(wa,{render:t.children,collection:e}))}function wa({collection:t,render:e}){return e(t)}function Sa(t,e,l){let n=Tl(),r=(0,h.useRef)(n);return r.current=n,(0,Na.useSyncExternalStore)(t,(0,h.useCallback)(()=>r.current?l():e(),[e,l]))}var Ka=typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore:Sa;function Ia(t){let[e]=(0,h.useState)(()=>new ka((t==null?void 0:t())||new ja));return{collection:Ka((0,h.useCallback)(l=>e.subscribe(l),[e]),(0,h.useCallback)(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),(0,h.useCallback)(()=>(e.isSSR=!0,e.getCollection()),[e])),document:e}}var Qt=(0,h.createContext)(null);function Da(t){var e;return e=class extends Ve{},e.type=t,e}function us(t,e,l,n,r,i){typeof t=="string"&&(t=Da(t));let a=(0,h.useCallback)(o=>{o==null||o.setProps(e,l,t,n,i)},[e,l,n,i,t]),c=(0,h.useContext)(Qt);if(c){let o=c.ownerDocument.nodesByProps.get(e);return o||(o=c.ownerDocument.createElement(t.type),o.setProps(e,l,t,n,i),c.appendChild(o),c.ownerDocument.updateCollection(),c.ownerDocument.nodesByProps.set(e,o)),r?h.createElement(Qt.Provider,{value:o},r):null}return h.createElement(t.type,{ref:a},r)}function Zt(t,e){let l=({node:r})=>e(r.props,r.props.ref,r),n=(0,h.forwardRef)((r,i)=>{let a=(0,h.useContext)(Cl);if(!(0,h.useContext)(cs)){if(e.length>=3)throw Error(e.name+" cannot be rendered outside a collection.");return e(r,i)}return us(t,r,i,"children"in r?r.children:null,null,c=>h.createElement(Cl.Provider,{value:a},h.createElement(l,{node:c})))});return n.displayName=e.name,n}function _a(t,e,l=ms){let n=({node:i})=>e(i.props,i.props.ref,i),r=(0,h.forwardRef)((i,a)=>us(t,i,a,null,l(i),c=>h.createElement(n,{node:c}))??h.createElement(h.Fragment,null));return r.displayName=e.name,r}function ms(t){return Xt({...t,addIdAndValue:!0})}var hs=(0,h.createContext)(null);function ps(t){let e=(0,h.useContext)(hs),l=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),n=t.idScope||(e==null?void 0:e.idScope),r=ms({...t,idScope:n,dependencies:l});return(0,h.useContext)(lt)&&(r=h.createElement(Pa,null,r)),e=(0,h.useMemo)(()=>({dependencies:l,idScope:n}),[n,...l]),h.createElement(hs.Provider,{value:e},r)}function Pa({children:t}){let e=(0,h.useContext)(lt),l=(0,h.useMemo)(()=>h.createElement(lt.Provider,{value:null},h.createElement(cs.Provider,{value:!0},t)),[t]);return Tl()?h.createElement(Qt.Provider,{value:e},l):(0,Ca.createPortal)(l,e)}var Ea=(0,h.createContext)(null),fs={CollectionRoot({collection:t,renderDropIndicator:e}){return gs(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:l}){return gs(t,e,l)}};function gs(t,e,l){return Xt({items:e?t.getChildren(e.key):t,dependencies:[l],children(n){let r=n.render(n);return!l||n.type!=="item"?r:h.createElement(h.Fragment,null,l({type:"item",key:n.key,dropPosition:"before"}),r,Aa(t,n,l))}})}function Aa(t,e,l){let n=e.key,r=t.getKeyAfter(n),i=r==null?null:t.getItem(r);for(;i!=null&&i.type!=="item";)r=t.getKeyAfter(i.key),i=r==null?null:t.getItem(r);let a=e.nextKey==null?null:t.getItem(e.nextKey);for(;a!=null&&a.type!=="item";)a=a.nextKey==null?null:t.getItem(a.nextKey);let c=[];if(a==null){let o=e;for(;o&&(!i||o.parentKey!==i.parentKey&&i.level`${t.item} \u063A\u064A\u0631 \u0627\u0644\u0645\u062D\u062F\u062F`,longPressToSelect:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u064B\u0627 \u0644\u0644\u062F\u062E\u0648\u0644 \u0625\u0644\u0649 \u0648\u0636\u0639 \u0627\u0644\u062A\u062D\u062F\u064A\u062F.",select:"\u062A\u062D\u062F\u064A\u062F",selectedAll:"\u062C\u0645\u064A\u0639 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u062D\u062F\u062F\u0629.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u0644\u0645 \u064A\u062A\u0645 \u062A\u062D\u062F\u064A\u062F \u0639\u0646\u0627\u0635\u0631",one:()=>`${e.number(t.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`,other:()=>`${e.number(t.count)} \u0639\u0646\u0635\u0631 \u0645\u062D\u062F\u062F`})}.`,selectedItem:t=>`${t.item} \u0627\u0644\u0645\u062D\u062F\u062F`};var ys={};ys={deselectedItem:t=>`${t.item} \u043D\u0435 \u0435 \u0438\u0437\u0431\u0440\u0430\u043D.`,longPressToSelect:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u0438 \u0437\u0430\u0434\u0440\u044A\u0436\u0442\u0435 \u0437\u0430 \u0434\u0430 \u0432\u043B\u0435\u0437\u0435\u0442\u0435 \u0432 \u0438\u0437\u0431\u0438\u0440\u0430\u0442\u0435\u043B\u0435\u043D \u0440\u0435\u0436\u0438\u043C.",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectedAll:"\u0412\u0441\u0438\u0447\u043A\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u041D\u044F\u043C\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438",one:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D \u0435\u043B\u0435\u043C\u0435\u043D\u0442`,other:()=>`${e.number(t.count)} \u0438\u0437\u0431\u0440\u0430\u043D\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438`})}.`,selectedItem:t=>`${t.item} \u0438\u0437\u0431\u0440\u0430\u043D.`};var vs={};vs={deselectedItem:t=>`Polo\u017Eka ${t.item} nen\xED vybr\xE1na.`,longPressToSelect:"Dlouh\xFDm stisknut\xEDm p\u0159ejdete do re\u017Eimu v\xFDb\u011Bru.",select:"Vybrat",selectedAll:"Vybr\xE1ny v\u0161echny polo\u017Eky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nevybr\xE1ny \u017E\xE1dn\xE9 polo\u017Eky",one:()=>`Vybr\xE1na ${e.number(t.count)} polo\u017Eka`,other:()=>`Vybr\xE1no ${e.number(t.count)} polo\u017Eek`})}.`,selectedItem:t=>`Vybr\xE1na polo\u017Eka ${t.item}.`};var bs={};bs={deselectedItem:t=>`${t.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"V\xE6lg",selectedAll:"Alle elementer valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer valgt",one:()=>`${e.number(t.count)} element valgt`,other:()=>`${e.number(t.count)} elementer valgt`})}.`,selectedItem:t=>`${t.item} valgt.`};var js={};js={deselectedItem:t=>`${t.item} nicht ausgew\xE4hlt.`,longPressToSelect:"Gedr\xFCckt halten, um Auswahlmodus zu \xF6ffnen.",select:"Ausw\xE4hlen",selectedAll:"Alle Elemente ausgew\xE4hlt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Keine Elemente ausgew\xE4hlt",one:()=>`${e.number(t.count)} Element ausgew\xE4hlt`,other:()=>`${e.number(t.count)} Elemente ausgew\xE4hlt`})}.`,selectedItem:t=>`${t.item} ausgew\xE4hlt.`};var ks={};ks={deselectedItem:t=>`\u0394\u03B5\u03BD \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 \u03C4\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF ${t.item}.`,longPressToSelect:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BC\u03C0\u03B5\u03AF\u03C4\u03B5 \u03C3\u03B5 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE\u03C2.",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectedAll:"\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD \u03CC\u03BB\u03B1 \u03C4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u0394\u03B5\u03BD \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",one:()=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${e.number(t.count)} \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF`,other:()=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B1\u03BD ${e.number(t.count)} \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1`})}.`,selectedItem:t=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 \u03C4\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF ${t.item}.`};var Cs={};Cs={deselectedItem:t=>`${t.item} not selected.`,select:"Select",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"No items selected",one:()=>`${e.number(t.count)} item selected`,other:()=>`${e.number(t.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:t=>`${t.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var Ns={};Ns={deselectedItem:t=>`${t.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selecci\xF3n.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ning\xFAn elemento seleccionado",one:()=>`${e.number(t.count)} elemento seleccionado`,other:()=>`${e.number(t.count)} elementos seleccionados`})}.`,selectedItem:t=>`${t.item} seleccionado.`};var ws={};ws={deselectedItem:t=>`${t.item} pole valitud.`,longPressToSelect:"Valikure\u017Eiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"K\xF5ik \xFCksused valitud.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\xDCksusi pole valitud",one:()=>`${e.number(t.count)} \xFCksus valitud`,other:()=>`${e.number(t.count)} \xFCksust valitud`})}.`,selectedItem:t=>`${t.item} valitud.`};var Ss={};Ss={deselectedItem:t=>`Kohdetta ${t.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitk\xE4\xE4n.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ei yht\xE4\xE4n kohdetta valittu",one:()=>`${e.number(t.count)} kohde valittu`,other:()=>`${e.number(t.count)} kohdetta valittu`})}.`,selectedItem:t=>`${t.item} valittu.`};var Ks={};Ks={deselectedItem:t=>`${t.item} non s\xE9lectionn\xE9.`,longPressToSelect:"Appuyez de mani\xE8re prolong\xE9e pour passer en mode de s\xE9lection.",select:"S\xE9lectionner",selectedAll:"Tous les \xE9l\xE9ments s\xE9lectionn\xE9s.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Aucun \xE9l\xE9ment s\xE9lectionn\xE9",one:()=>`${e.number(t.count)} \xE9l\xE9ment s\xE9lectionn\xE9`,other:()=>`${e.number(t.count)} \xE9l\xE9ments s\xE9lectionn\xE9s`})}.`,selectedItem:t=>`${t.item} s\xE9lectionn\xE9.`};var Is={};Is={deselectedItem:t=>`${t.item} \u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8.`,longPressToSelect:"\u05D4\u05E7\u05E9\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05DC\u05DB\u05E0\u05D9\u05E1\u05D4 \u05DC\u05DE\u05E6\u05D1 \u05D1\u05D7\u05D9\u05E8\u05D4.",select:"\u05D1\u05D7\u05E8",selectedAll:"\u05DB\u05DC \u05D4\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E0\u05D1\u05D7\u05E8\u05D5.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u05DC\u05D0 \u05E0\u05D1\u05D7\u05E8\u05D5 \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",one:()=>`\u05E4\u05E8\u05D9\u05D8 ${e.number(t.count)} \u05E0\u05D1\u05D7\u05E8`,other:()=>`${e.number(t.count)} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E0\u05D1\u05D7\u05E8\u05D5`})}.`,selectedItem:t=>`${t.item} \u05E0\u05D1\u05D7\u05E8.`};var Ds={};Ds={deselectedItem:t=>`Stavka ${t.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u na\u010Din odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${e.number(t.count)} stavka`,other:()=>`Odabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`Stavka ${t.item} je odabrana.`};var _s={};_s={deselectedItem:t=>`${t.item} nincs kijel\xF6lve.`,longPressToSelect:"Nyomja hosszan a kijel\xF6l\xE9shez.",select:"Kijel\xF6l\xE9s",selectedAll:"Az \xF6sszes elem kijel\xF6lve.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Egy elem sincs kijel\xF6lve",one:()=>`${e.number(t.count)} elem kijel\xF6lve`,other:()=>`${e.number(t.count)} elem kijel\xF6lve`})}.`,selectedItem:t=>`${t.item} kijel\xF6lve.`};var Ps={};Ps={deselectedItem:t=>`${t.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalit\xE0 di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nessun elemento selezionato",one:()=>`${e.number(t.count)} elemento selezionato`,other:()=>`${e.number(t.count)} elementi selezionati`})}.`,selectedItem:t=>`${t.item} selezionato.`};var Es={};Es={deselectedItem:t=>`${t.item} \u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,longPressToSelect:"\u9577\u62BC\u3057\u3057\u3066\u9078\u629E\u30E2\u30FC\u30C9\u3092\u958B\u304D\u307E\u3059\u3002",select:"\u9078\u629E",selectedAll:"\u3059\u3079\u3066\u306E\u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F\u3002",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u9805\u76EE\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093",one:()=>`${e.number(t.count)} \u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F`,other:()=>`${e.number(t.count)} \u9805\u76EE\u3092\u9078\u629E\u3057\u307E\u3057\u305F`})}\u3002`,selectedItem:t=>`${t.item} \u3092\u9078\u629E\u3057\u307E\u3057\u305F\u3002`};var As={};As={deselectedItem:t=>`${t.item}\uC774(\uAC00) \uC120\uD0DD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.`,longPressToSelect:"\uC120\uD0DD \uBAA8\uB4DC\uB85C \uB4E4\uC5B4\uAC00\uB824\uBA74 \uAE38\uAC8C \uB204\uB974\uC2ED\uC2DC\uC624.",select:"\uC120\uD0DD",selectedAll:"\uBAA8\uB4E0 \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\uC120\uD0DD\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",one:()=>`${e.number(t.count)}\uAC1C \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4`,other:()=>`${e.number(t.count)}\uAC1C \uD56D\uBAA9\uC774 \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4`})}.`,selectedItem:t=>`${t.item}\uC774(\uAC00) \uC120\uD0DD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.`};var Ms={};Ms={deselectedItem:t=>`${t.item} nepasirinkta.`,longPressToSelect:"Nor\u0117dami \u012Fjungti pasirinkimo re\u017Eim\u0105, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nepasirinktas n\u0117 vienas elementas",one:()=>`Pasirinktas ${e.number(t.count)} elementas`,other:()=>`Pasirinkta element\u0173: ${e.number(t.count)}`})}.`,selectedItem:t=>`Pasirinkta: ${t.item}.`};var Fs={};Fs={deselectedItem:t=>`Vienums ${t.item} nav atlas\u012Bts.`,longPressToSelect:"Ilgi turiet nospiestu. lai iesl\u0113gtu atlases re\u017E\u012Bmu.",select:"Atlas\u012Bt",selectedAll:"Atlas\u012Bti visi vienumi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nav atlas\u012Bts neviens vienums",one:()=>`Atlas\u012Bto vienumu skaits: ${e.number(t.count)}`,other:()=>`Atlas\u012Bto vienumu skaits: ${e.number(t.count)}`})}.`,selectedItem:t=>`Atlas\u012Bts vienums ${t.item}.`};var Ts={};Ts={deselectedItem:t=>`${t.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for \xE5 g\xE5 inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Ingen elementer er valgt",one:()=>`${e.number(t.count)} element er valgt`,other:()=>`${e.number(t.count)} elementer er valgt`})}.`,selectedItem:t=>`${t.item} er valgt.`};var $s={};$s={deselectedItem:t=>`${t.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Geen items geselecteerd",one:()=>`${e.number(t.count)} item geselecteerd`,other:()=>`${e.number(t.count)} items geselecteerd`})}.`,selectedItem:t=>`${t.item} geselecteerd.`};var Rs={};Rs={deselectedItem:t=>`Nie zaznaczono ${t.item}.`,longPressToSelect:"Naci\u015Bnij i przytrzymaj, aby wej\u015B\u0107 do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nie zaznaczono \u017Cadnych element\xF3w",one:()=>`${e.number(t.count)} zaznaczony element`,other:()=>`${e.number(t.count)} zaznaczonych element\xF3w`})}.`,selectedItem:t=>`Zaznaczono ${t.item}.`};var Bs={};Bs={deselectedItem:t=>`${t.item} n\xE3o selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de sele\xE7\xE3o.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var zs={};zs={deselectedItem:t=>`${t.item} n\xE3o selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de sele\xE7\xE3o.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nenhum item selecionado",one:()=>`${e.number(t.count)} item selecionado`,other:()=>`${e.number(t.count)} itens selecionados`})}.`,selectedItem:t=>`${t.item} selecionado.`};var Vs={};Vs={deselectedItem:t=>`${t.item} neselectat.`,longPressToSelect:"Ap\u0103sa\u021Bi lung pentru a intra \xEEn modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Niciun element selectat",one:()=>`${e.number(t.count)} element selectat`,other:()=>`${e.number(t.count)} elemente selectate`})}.`,selectedItem:t=>`${t.item} selectat.`};var Ls={};Ls={deselectedItem:t=>`${t.item} \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043E.`,longPressToSelect:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043B\u044F \u0432\u0445\u043E\u0434\u0430 \u0432 \u0440\u0435\u0436\u0438\u043C \u0432\u044B\u0431\u043E\u0440\u0430.",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectedAll:"\u0412\u044B\u0431\u0440\u0430\u043D\u044B \u0432\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u041D\u0435\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432",one:()=>`${e.number(t.count)} \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0432\u044B\u0431\u0440\u0430\u043D`,other:()=>`${e.number(t.count)} \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 \u0432\u044B\u0431\u0440\u0430\u043D\u043E`})}.`,selectedItem:t=>`${t.item} \u0432\u044B\u0431\u0440\u0430\u043D\u043E.`};var Os={};Os={deselectedItem:t=>`Nevybrat\xE9 polo\u017Eky: ${t.item}.`,longPressToSelect:"Dlh\u0161\xEDm stla\u010Den\xEDm prejdite do re\u017Eimu v\xFDberu.",select:"Vybra\u0165",selectedAll:"V\u0161etky vybrat\xE9 polo\u017Eky.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u017Diadne vybrat\xE9 polo\u017Eky",one:()=>`${e.number(t.count)} vybrat\xE1 polo\u017Eka`,other:()=>`Po\u010Det vybrat\xFDch polo\u017Eiek:${e.number(t.count)}`})}.`,selectedItem:t=>`Vybrat\xE9 polo\u017Eky: ${t.item}.`};var Hs={};Hs={deselectedItem:t=>`Element ${t.item} ni izbran.`,longPressToSelect:"Za izbirni na\u010Din pritisnite in dlje \u010Dasa dr\u017Eite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Noben element ni izbran",one:()=>`${e.number(t.count)} element je izbran`,other:()=>`${e.number(t.count)} elementov je izbranih`})}.`,selectedItem:t=>`Element ${t.item} je izbran.`};var Us={};Us={deselectedItem:t=>`${t.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u re\u017Eim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${e.number(t.count)} stavka`,other:()=>`Izabrano je ${e.number(t.count)} stavki`})}.`,selectedItem:t=>`${t.item} je izabrano.`};var qs={};qs={deselectedItem:t=>`${t.item} ej markerat.`,longPressToSelect:"Tryck l\xE4nge n\xE4r du vill \xF6ppna v\xE4ljarl\xE4ge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Inga markerade objekt",one:()=>`${e.number(t.count)} markerat objekt`,other:()=>`${e.number(t.count)} markerade objekt`})}.`,selectedItem:t=>`${t.item} markerat.`};var Ws={};Ws={deselectedItem:t=>`${t.item} se\xE7ilmedi.`,longPressToSelect:"Se\xE7im moduna girmek i\xE7in uzun bas\u0131n.",select:"Se\xE7",selectedAll:"T\xFCm \xF6geler se\xE7ildi.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"Hi\xE7bir \xF6ge se\xE7ilmedi",one:()=>`${e.number(t.count)} \xF6ge se\xE7ildi`,other:()=>`${e.number(t.count)} \xF6ge se\xE7ildi`})}.`,selectedItem:t=>`${t.item} se\xE7ildi.`};var Gs={};Gs={deselectedItem:t=>`${t.item} \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E.`,longPressToSelect:"\u0412\u0438\u043A\u043E\u043D\u0430\u0439\u0442\u0435 \u0434\u043E\u0432\u0433\u0435 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u043D\u043D\u044F, \u0449\u043E\u0431 \u043F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043C \u0432\u0438\u0431\u043E\u0440\u0443.",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectedAll:"\u0423\u0441\u0456 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u0432\u0438\u0431\u0440\u0430\u043D\u043E.",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u0416\u043E\u0434\u043D\u0438\u0445 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E",one:()=>`${e.number(t.count)} \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u0432\u0438\u0431\u0440\u0430\u043D\u043E`,other:()=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432: ${e.number(t.count)}`})}.`,selectedItem:t=>`${t.item} \u0432\u0438\u0431\u0440\u0430\u043D\u043E.`};var Ys={};Ys={deselectedItem:t=>`\u672A\u9009\u62E9 ${t.item}\u3002`,longPressToSelect:"\u957F\u6309\u4EE5\u8FDB\u5165\u9009\u62E9\u6A21\u5F0F\u3002",select:"\u9009\u62E9",selectedAll:"\u5DF2\u9009\u62E9\u6240\u6709\u9879\u76EE\u3002",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u672A\u9009\u62E9\u9879\u76EE",one:()=>`\u5DF2\u9009\u62E9 ${e.number(t.count)} \u4E2A\u9879\u76EE`,other:()=>`\u5DF2\u9009\u62E9 ${e.number(t.count)} \u4E2A\u9879\u76EE`})}\u3002`,selectedItem:t=>`\u5DF2\u9009\u62E9 ${t.item}\u3002`};var Xs={};Xs={deselectedItem:t=>`\u672A\u9078\u53D6\u300C${t.item}\u300D\u3002`,longPressToSelect:"\u9577\u6309\u4EE5\u9032\u5165\u9078\u64C7\u6A21\u5F0F\u3002",select:"\u9078\u53D6",selectedAll:"\u5DF2\u9078\u53D6\u6240\u6709\u9805\u76EE\u3002",selectedCount:(t,e)=>`${e.plural(t.count,{"=0":"\u672A\u9078\u53D6\u4EFB\u4F55\u9805\u76EE",one:()=>`\u5DF2\u9078\u53D6 ${e.number(t.count)} \u500B\u9805\u76EE`,other:()=>`\u5DF2\u9078\u53D6 ${e.number(t.count)} \u500B\u9805\u76EE`})}\u3002`,selectedItem:t=>`\u5DF2\u9078\u53D6\u300C${t.item}\u300D\u3002`};var Nt={};Nt={"ar-AE":xs,"bg-BG":ys,"cs-CZ":vs,"da-DK":bs,"de-DE":js,"el-GR":ks,"en-US":Cs,"es-ES":Ns,"et-EE":ws,"fi-FI":Ss,"fr-FR":Ks,"he-IL":Is,"hr-HR":Ds,"hu-HU":_s,"it-IT":Ps,"ja-JP":Es,"ko-KR":As,"lt-LT":Ms,"lv-LV":Fs,"nb-NO":Ts,"nl-NL":$s,"pl-PL":Rs,"pt-BR":Bs,"pt-PT":zs,"ro-RO":Vs,"ru-RU":Ls,"sk-SK":Os,"sl-SI":Hs,"sr-SP":Us,"sv-SE":qs,"tr-TR":Ws,"uk-UA":Gs,"zh-CN":Ys,"zh-TW":Xs};function Fa(t){return t&&t.__esModule?t.default:t}function Ta(t,e){let{getRowText:l=c=>{var u,d;var o;return((u=(o=e.collection).getTextValue)==null?void 0:u.call(o,c))??((d=e.collection.getItem(c))==null?void 0:d.textValue)}}=t,n=ut(Fa(Nt),"@react-aria/grid"),r=e.selectionManager.rawSelection,i=(0,h.useRef)(r),a=gt(()=>{var p;if(!e.selectionManager.isFocused||r===i.current){i.current=r;return}let c=Qs(r,i.current),o=Qs(i.current,r),u=e.selectionManager.selectionBehavior==="replace",d=[];if(e.selectionManager.selectedKeys.size===1&&u){let g=e.selectionManager.selectedKeys.keys().next().value;if(g!=null&&e.collection.getItem(g)){let x=l(g);x&&d.push(n.format("selectedItem",{item:x}))}}else if(c.size===1&&o.size===0){let g=c.keys().next().value;if(g!=null){let x=l(g);x&&d.push(n.format("selectedItem",{item:x}))}}else if(o.size===1&&c.size===0){let g=o.keys().next().value;if(g!=null&&e.collection.getItem(g)){let x=l(g);x&&d.push(n.format("deselectedItem",{item:x}))}}e.selectionManager.selectionMode==="multiple"&&(d.length===0||r==="all"||r.size>1||i.current==="all"||((p=i.current)==null?void 0:p.size)>1)&&d.push(r==="all"?n.format("selectedAll"):n.format("selectedCount",{count:r.size})),d.length>0&&di(d.join(" ")),i.current=r});Ki(()=>{if(e.selectionManager.isFocused)a();else{let c=requestAnimationFrame(a);return()=>cancelAnimationFrame(c)}},[r,e.selectionManager.isFocused])}function Qs(t,e){let l=new Set;if(t==="all"||e==="all")return l;for(let n of t.keys())e.has(n)||l.add(n);return l}function $a(t){return t&&t.__esModule?t.default:t}function Ra(t){let e=ut($a(Nt),"@react-aria/grid"),l=si(),n=(l==="pointer"||l==="virtual"||l==null)&&typeof window<"u"&&"ontouchstart"in window;return _l((0,h.useMemo)(()=>{let r=t.selectionManager.selectionMode,i=t.selectionManager.selectionBehavior,a;return n&&(a=e.format("longPressToSelect")),i==="replace"&&r!=="none"&&t.hasItemActions?a:void 0},[t.selectionManager.selectionMode,t.selectionManager.selectionBehavior,t.hasItemActions,e,n]))}function Ba(t){return t&&t.__esModule?t.default:t}function za(t,e){let{key:l}=t,n=e.selectionManager,r=et(),i=!e.selectionManager.canSelectItem(l),a=e.selectionManager.isSelected(l),c=()=>n.toggleSelection(l),o=ut(Ba(Nt),"@react-aria/grid");return{checkboxProps:{id:r,"aria-label":o.format("select"),isSelected:a,isDisabled:i,onChange:c}}}function Va(t,e,l){let{isVirtualized:n,keyboardDelegate:r,layoutDelegate:i,onAction:a,disallowTypeAhead:c,linkBehavior:o="action",keyboardNavigationBehavior:u="arrow",escapeKeyBehavior:d="clearSelection",shouldSelectOnPressUp:p}=t;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:g}=es({selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,ref:l,keyboardDelegate:r,layoutDelegate:i,isVirtualized:n,selectOnFocus:e.selectionManager.selectionBehavior==="replace",shouldFocusWrap:t.shouldFocusWrap,linkBehavior:o,disallowTypeAhead:c,autoFocus:t.autoFocus,escapeKeyBehavior:d}),x=et(t.id);Jt.set(e,{id:x,onAction:a,linkBehavior:o,keyboardNavigationBehavior:u,shouldSelectOnPressUp:p});let y=Ra({selectionManager:e.selectionManager,hasItemActions:!!a}),j=ra(l,{isDisabled:e.collection.size!==0}),v=Ne(ht(t,{labelable:!0}),{role:"grid",id:x,"aria-multiselectable":e.selectionManager.selectionMode==="multiple"?"true":void 0},e.collection.size===0?{tabIndex:j?-1:0}:g,y);return n&&(v["aria-rowcount"]=e.collection.size,v["aria-colcount"]=1),Ta({},e),{gridProps:v}}var Zs={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function La(t,e,l){var P,I,T,$;let{node:n,isVirtualized:r}=t,{direction:i}=yt(),{onAction:a,linkBehavior:c,keyboardNavigationBehavior:o,shouldSelectOnPressUp:u}=Jt.get(e),d=Di(),p=(0,h.useRef)(null),g=()=>{var K;l.current!==null&&(p.current!=null&&n.key!==p.current||!((K=l.current)!=null&&K.contains(document.activeElement)))&&Ke(l.current)},x={},y=t.hasChildItems,j=e.selectionManager.isLink(n.key);if(n!=null&&"expandedKeys"in e){var v;let K=(P=(v=e.collection).getChildren)==null?void 0:P.call(v,n.key);y||(y=[...K??[]].length>1),a==null&&!j&&e.selectionManager.selectionMode==="none"&&y&&(a=()=>e.toggleKey(n.key));let F=y?e.expandedKeys.has(n.key):void 0,H=1;if(n.level>0&&(n==null?void 0:n.parentKey)!=null){let N=e.collection.getItem(n.parentKey);if(N){var w;H=[...(I=(w=e.collection).getChildren)==null?void 0:I.call(w,N.key)].filter(A=>A.type==="item").length}}else H=[...e.collection].filter(N=>N.level===0&&N.type==="item").length;x={"aria-expanded":F,"aria-level":n.level+1,"aria-posinset":(n==null?void 0:n.index)+1,"aria-setsize":H}}let{itemProps:m,...f}=Xl({selectionManager:e.selectionManager,key:n.key,ref:l,isVirtualized:r,shouldSelectOnPressUp:t.shouldSelectOnPressUp||u,onAction:a||(T=n.props)!=null&&T.onAction?El(($=n.props)==null?void 0:$.onAction,a?()=>a(n.key):void 0):void 0,focus:g,linkBehavior:c}),k=K=>{if(!K.currentTarget.contains(K.target)||!l.current||!document.activeElement)return;let F=ft(l.current);if(F.currentNode=document.activeElement,"expandedKeys"in e&&document.activeElement===l.current){if(K.key===Zs.expand[i]&&e.selectionManager.focusedKey===n.key&&y&&!e.expandedKeys.has(n.key)){e.toggleKey(n.key),K.stopPropagation();return}else if(K.key===Zs.collapse[i]&&e.selectionManager.focusedKey===n.key&&y&&e.expandedKeys.has(n.key)){e.toggleKey(n.key),K.stopPropagation();return}}switch(K.key){case"ArrowLeft":if(o==="arrow"){let N=i==="rtl"?F.nextNode():F.previousNode();if(N)K.preventDefault(),K.stopPropagation(),Ke(N),Te(N,{containingElement:ze(l.current)});else if(K.preventDefault(),K.stopPropagation(),i==="rtl")Ke(l.current),Te(l.current,{containingElement:ze(l.current)});else{F.currentNode=l.current;let A=Js(F);A&&(Ke(A),Te(A,{containingElement:ze(l.current)}))}}break;case"ArrowRight":if(o==="arrow"){let N=i==="rtl"?F.previousNode():F.nextNode();if(N)K.preventDefault(),K.stopPropagation(),Ke(N),Te(N,{containingElement:ze(l.current)});else if(K.preventDefault(),K.stopPropagation(),i==="ltr")Ke(l.current),Te(l.current,{containingElement:ze(l.current)});else{F.currentNode=l.current;let A=Js(F);A&&(Ke(A),Te(A,{containingElement:ze(l.current)}))}}break;case"ArrowUp":case"ArrowDown":if(!K.altKey&&l.current.contains(K.target)){var H;K.stopPropagation(),K.preventDefault(),(H=l.current.parentElement)==null||H.dispatchEvent(new KeyboardEvent(K.nativeEvent.type,K.nativeEvent))}break}},D=K=>{if(p.current=n.key,K.target!==l.current){ii()||e.selectionManager.setFocusedKey(n.key);return}},C=K=>{if(!(!K.currentTarget.contains(K.target)||!l.current||!document.activeElement))switch(K.key){case"Tab":if(o==="tab"){let F=ft(l.current,{tabbable:!0});F.currentNode=document.activeElement,(K.shiftKey?F.previousNode():F.nextNode())&&K.stopPropagation()}}},M=Ai(n.props),_=Ne(m,f.hasAction?M:{},{role:"row",onKeyDownCapture:k,onKeyDown:C,onFocus:D,"aria-label":n.textValue||void 0,"aria-selected":e.selectionManager.canSelectItem(n.key)?e.selectionManager.isSelected(n.key):void 0,"aria-disabled":e.selectionManager.isDisabled(n.key)||void 0,"aria-labelledby":d&&n.textValue?`${el(e,n.key)} ${d}`:void 0,id:el(e,n.key)});if(r){let{collection:K}=e;_["aria-rowindex"]=[...K].find(F=>F.type==="section")?[...K.getKeys()].filter(F=>{var H;return((H=K.getItem(F))==null?void 0:H.type)!=="section"}).findIndex(F=>F===n.key)+1:n.index+1}let S={role:"gridcell","aria-colindex":1};return{rowProps:{...Ne(_,x)},gridCellProps:S,descriptionProps:{id:d},...f}}function Js(t){let e=null,l=null;do l=t.lastChild(),l&&(e=l);while(l);return e}function Oa(t,e){let{key:l}=t,{checkboxProps:n}=za(t,e);return{checkboxProps:{...n,"aria-labelledby":`${n.id} ${el(e,l)}`}}}function Ha(t,e,l){let{gridProps:n}=Va(t,e,l);return n.role="treegrid",{gridProps:n}}var en={};en={collapse:"\u0637\u064A",expand:"\u062A\u0645\u062F\u064A\u062F"};var tn={};tn={collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435"};var ln={};ln={collapse:"Sbalit",expand:"Rozt\xE1hnout"};var sn={};sn={collapse:"Skjul",expand:"Udvid"};var nn={};nn={collapse:"Reduzieren",expand:"Erweitern"};var rn={};rn={collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7"};var an={};an={expand:"Expand",collapse:"Collapse"};var on={};on={collapse:"Contraer",expand:"Ampliar"};var cn={};cn={collapse:"Ahenda",expand:"Laienda"};var dn={};dn={collapse:"Pienenn\xE4",expand:"Laajenna"};var un={};un={collapse:"R\xE9duire",expand:"D\xE9velopper"};var mn={};mn={collapse:"\u05DB\u05D5\u05D5\u05E5",expand:"\u05D4\u05E8\u05D7\u05D1"};var hn={};hn={collapse:"Sa\u017Emi",expand:"Pro\u0161iri"};var pn={};pn={collapse:"\xD6sszecsuk\xE1s",expand:"Kibont\xE1s"};var fn={};fn={collapse:"Comprimi",expand:"Espandi"};var gn={};gn={collapse:"\u6298\u308A\u305F\u305F\u3080",expand:"\u5C55\u958B"};var xn={};xn={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"};var yn={};yn={collapse:"Sutraukti",expand:"I\u0161skleisti"};var vn={};vn={collapse:"Sak\u013Caut",expand:"Izv\u0113rst"};var bn={};bn={collapse:"Skjul",expand:"Utvid"};var jn={};jn={collapse:"Samenvouwen",expand:"Uitvouwen"};var kn={};kn={collapse:"Zwi\u0144",expand:"Rozwi\u0144"};var Cn={};Cn={collapse:"Recolher",expand:"Expandir"};var Nn={};Nn={collapse:"Colapsar",expand:"Expandir"};var wn={};wn={collapse:"Restr\xE2nge\u021Bi",expand:"Extinde\u021Bi"};var Sn={};Sn={collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C"};var Kn={};Kn={collapse:"Zbali\u0165",expand:"Rozbali\u0165"};var In={};In={collapse:"Strni",expand:"Raz\u0161iri"};var Dn={};Dn={collapse:" Skupi",expand:"Pro\u0161iri"};var _n={};_n={collapse:"D\xF6lj",expand:"Expandera"};var Pn={};Pn={collapse:"Daralt",expand:"Geni\u015Flet"};var En={};En={collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438"};var An={};An={collapse:"\u6298\u53E0",expand:"\u6269\u5C55"};var Mn={};Mn={collapse:"\u6536\u5408",expand:"\u5C55\u958B"};var Fn={};Fn={"ar-AE":en,"bg-BG":tn,"cs-CZ":ln,"da-DK":sn,"de-DE":nn,"el-GR":rn,"en-US":an,"es-ES":on,"et-EE":cn,"fi-FI":dn,"fr-FR":un,"he-IL":mn,"hr-HR":hn,"hu-HU":pn,"it-IT":fn,"ja-JP":gn,"ko-KR":xn,"lt-LT":yn,"lv-LV":vn,"nb-NO":bn,"nl-NL":jn,"pl-PL":kn,"pt-BR":Cn,"pt-PT":Nn,"ro-RO":wn,"ru-RU":Sn,"sk-SK":Kn,"sl-SI":In,"sr-SP":Dn,"sv-SE":_n,"tr-TR":Pn,"uk-UA":En,"zh-CN":An,"zh-TW":Mn};function Ua(t){return t&&t.__esModule?t.default:t}function Tn(t,e,l){let{node:n}=t,r=La(t,e,l),i=r.rowProps["aria-expanded"]===!0,a=ut(Ua(Fn),"@react-aria/tree"),c=ui({"aria-label":i?a.format("collapse"):a.format("expand"),"aria-labelledby":r.rowProps.id}),o={onPress:()=>{r.isDisabled||(e.toggleKey(n.key),e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(n.key))},excludeFromTabOrder:!0,preventFocusOnPress:!0,"data-react-aria-prevent-focus":!0,...c};return{...r,expandButtonProps:o}}var Me=class vr extends Set{constructor(e,l,n){super(e),e instanceof vr?(this.anchorKey=l??e.anchorKey,this.currentKey=n??e.currentKey):(this.anchorKey=l??null,this.currentKey=n??null)}};function qa(t,e){if(t.size!==e.size)return!1;for(let l of t)if(!e.has(l))return!1;return!0}function $n(t){let{selectionMode:e="none",disallowEmptySelection:l=!1,allowDuplicateSelectionEvents:n,selectionBehavior:r="toggle",disabledBehavior:i="all"}=t,a=(0,h.useRef)(!1),[,c]=(0,h.useState)(!1),o=(0,h.useRef)(null),u=(0,h.useRef)(null),[,d]=(0,h.useState)(null),[p,g]=$t((0,h.useMemo)(()=>Rn(t.selectedKeys),[t.selectedKeys]),(0,h.useMemo)(()=>Rn(t.defaultSelectedKeys,new Me),[t.defaultSelectedKeys]),t.onSelectionChange),x=(0,h.useMemo)(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[y,j]=(0,h.useState)(r);r==="replace"&&y==="toggle"&&typeof p=="object"&&p.size===0&&j("replace");let v=(0,h.useRef)(r);return(0,h.useEffect)(()=>{r!==v.current&&(j(r),v.current=r)},[r]),{selectionMode:e,disallowEmptySelection:l,selectionBehavior:y,setSelectionBehavior:j,get isFocused(){return a.current},setFocused(w){a.current=w,c(w)},get focusedKey(){return o.current},get childFocusStrategy(){return u.current},setFocusedKey(w,m="first"){o.current=w,u.current=m,d(w)},selectedKeys:p,setSelectedKeys(w){(n||!qa(w,p))&&g(w)},disabledKeys:x,disabledBehavior:i}}function Rn(t,e){return t?t==="all"?"all":new Me(t):e}var Bn=class br{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,l){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,l)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let l=this.getKey(e);return l==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(l):this.state.selectedKeys.has(l)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),l=this.state.selectedKeys;return this._isSelectAll=e.every(n=>l.has(n)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&Wt(this.collection,n,e)<0)&&(e=n)}return(e==null?void 0:e.key)??null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let n=this.collection.getItem(l);(!e||n&&Wt(this.collection,n,e)>0)&&(e=n)}return(e==null?void 0:e.key)??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let l=this.getKey(e);if(l==null)return;let n;if(this.state.selectedKeys==="all")n=new Me([l],l,l);else{let r=this.state.selectedKeys,i=r.anchorKey??l;n=new Me(r,i,l);for(let a of this.getKeyRange(i,r.currentKey??l))n.delete(a);for(let a of this.getKeyRange(l,i))this.canSelectItem(a)&&n.add(a)}this.state.setSelectedKeys(n)}getKeyRange(e,l){let n=this.collection.getItem(e),r=this.collection.getItem(l);return n&&r?Wt(this.collection,n,r)<=0?this.getKeyRangeInternal(e,l):this.getKeyRangeInternal(l,e):[]}getKeyRangeInternal(e,l){var i;if((i=this.layoutDelegate)!=null&&i.getKeyRange)return this.layoutDelegate.getKeyRange(e,l);let n=[],r=e;for(;r!=null;){let a=this.collection.getItem(r);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&n.push(r),r===l)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let l=this.collection.getItem(e);if(!l||l.type==="cell"&&this.allowsCellSelection)return e;for(;l&&l.type!=="item"&&l.parentKey!=null;)l=this.collection.getItem(l.parentKey);return!l||l.type!=="item"?null:l.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let l=this.getKey(e);if(l==null)return;let n=new Me(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(l)?n.delete(l):this.canSelectItem(l)&&(n.add(l),n.anchorKey=l,n.currentKey=l),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none")return;let l=this.getKey(e);if(l==null)return;let n=this.canSelectItem(l)?new Me([l],l,l):new Me;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let l=new Me;for(let n of e){let r=this.getKey(n);if(r!=null&&(l.add(r),this.selectionMode==="single"))break}this.state.setSelectedKeys(l)}getSelectAllKeys(){let e=[],l=n=>{var r;for(;n!=null;){if(this.canSelectItem(n)){let i=this.collection.getItem(n);(i==null?void 0:i.type)==="item"&&e.push(n),i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&l(((r=xa(ss(i,this.collection)))==null?void 0:r.key)??null)}n=this.collection.getKeyAfter(n)}};return l(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Me)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,l){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||l&&(l.pointerType==="touch"||l.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let l=this.selectedKeys;if(e.size!==l.size)return!1;for(let n of e)if(!l.has(n))return!1;for(let n of l)if(!e.has(n))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||l!=null&&((n=l.props)!=null&&n.isDisabled)||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n;var l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!((l=this.collection.getItem(e))!=null&&((n=l.props)!=null&&n.isDisabled)))}isLink(e){var n;var l;return!!((l=this.collection.getItem(e))!=null&&((n=l.props)!=null&&n.href))}getItemProps(e){var l;return(l=this.collection.getItem(e))==null?void 0:l.props}withCollection(e){return new br(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,l,n){this.collection=e,this.state=l,this.allowsCellSelection=(n==null?void 0:n.allowsCellSelection)??!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}},Wa=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let e=this.keyMap.get(t);return e?e.prevKey??null:null}getKeyAfter(t){let e=this.keyMap.get(t);return e?e.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)??null}at(t){let e=[...this.getKeys()];return this.getItem(e[t])}constructor(t,{expandedKeys:e}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,e||(e=new Set);let l=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||e.has(i.key)))for(let a of i.childNodes)l(a)};for(let i of t)l(i);let n=null,r=0;for(let[i,a]of this.keyMap)n?(n.nextKey=i,a.prevKey=n.key):(this.firstKey=i,a.prevKey=void 0),a.type==="item"&&(a.index=r++),n=a,n.nextKey=void 0;this.lastKey=(n==null?void 0:n.key)??null}};function Ga(t){let{onExpandedChange:e}=t,[l,n]=$t(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,e),r=$n(t),i=(0,h.useMemo)(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),a=ls(t,(0,h.useCallback)(c=>new Wa(c,{expandedKeys:l}),[l]),null);return(0,h.useEffect)(()=>{r.focusedKey!=null&&!a.getItem(r.focusedKey)&&r.setFocusedKey(null)},[a,r.focusedKey]),{collection:a,expandedKeys:l,disabledKeys:i,toggleKey:c=>{n(Ya(l,c))},setExpandedKeys:n,selectionManager:new Bn(a,r)}}function Ya(t,e){let l=new Set(t);return l.has(e)?l.delete(e):l.add(e),l}var st=(0,h.createContext)({}),tl=(0,h.createContext)(null),Xa=(0,h.forwardRef)(function(t,e){let{render:l}=(0,h.useContext)(tl);return h.createElement(h.Fragment,null,l(t,e))});function zn(t,e){var i;let l=t==null?void 0:t.renderDropIndicator,n=(i=t==null?void 0:t.isVirtualDragging)==null?void 0:i.call(t),r=(0,h.useCallback)(a=>{if(n||e!=null&&e.isDropTarget(a))return l?l(a):h.createElement(Xa,{target:a})},[e==null?void 0:e.target,n,l]);return t!=null&&t.useDropIndicator?r:void 0}function Vn(t,e,l){var i,a,c;let n=t.focusedKey,r=null;if(e!=null&&((i=e.isVirtualDragging)!=null&&i.call(e))&&((a=l==null?void 0:l.target)==null?void 0:a.type)==="item"&&(r=l.target.key,l.target.dropPosition==="after")){let o=l.collection.getKeyAfter(r),u=null;if(o!=null){let d=((c=l.collection.getItem(r))==null?void 0:c.level)??0;for(;o;){let p=l.collection.getItem(o);if(!p)break;if(p.type!=="item"){o=l.collection.getKeyAfter(o);continue}if((p.level??0)<=d)break;u=o,o=l.collection.getKeyAfter(o)}}r=o??u??r}return(0,h.useMemo)(()=>new Set([n,r].filter(o=>o!=null)),[n,r])}var Ln=10,On=5,Qa=class{setup(t,e,l){this.delegate=t,this.state=e,this.direction=l}getDropTargetFromPoint(t,e,l){let n=this.delegate.getDropTargetFromPoint(t,e,l);return!n||n.type==="root"?n:this.resolveDropTarget(n,t,e,l)}resolveDropTarget(t,e,l,n){let r=this.pointerTracking,i=l-r.lastY,a=e-r.lastX,c=r.yDirection,o=r.xDirection;if(Math.abs(i)>On&&(c=i>0?"down":"up",r.yDirection=c,r.lastY=l),Math.abs(a)>Ln&&(o=a>0?"right":"left",r.xDirection=o,r.lastX=e),t.dropPosition==="before"){let p=this.state.collection.getKeyBefore(t.key);if(p!=null){let g={type:"item",key:p,dropPosition:"after"};n(g)&&(t=g)}}let u=this.getPotentialTargets(t,n);if(u.length===0)return{type:"root"};let d;return u.length>1?d=this.selectTarget(u,t,e,l,c,o):(d=u[0],r.boundaryContext=null),d}getPotentialTargets(t,e){if(t.dropPosition==="on")return[t];let l=t,n=this.state.collection,r=n.getItem(l.key);for(;r&&(r==null?void 0:r.type)!=="item"&&r.nextKey!=null;)l.key=r.nextKey,r=n.getItem(r.nextKey);let i=[l];if(r&&r.hasChildNodes&&this.state.expandedKeys.has(r.key)&&n.getChildren&&l.dropPosition==="after"){let o=null;for(let u of n.getChildren(r.key))if(u.type==="item"){o=u;break}if(o){let u={type:"item",key:o.key,dropPosition:"before"};return e(u)?[u]:[]}}if((r==null?void 0:r.nextKey)!=null)return[t];let a=r==null?void 0:r.parentKey,c=[];for(;a;){let o=n.getItem(a),u=o!=null&&o.nextKey?n.getItem(o.nextKey):null;if(!u||u.parentKey!==a){let d={type:"item",key:a,dropPosition:"after"};if(e(d)&&c.push(d),u)break}a=o==null?void 0:o.parentKey}if(c.length>0&&i.push(...c),i.length===1){let o=n.getKeyAfter(l.key),u=o?n.getItem(o):null;if(o!=null&&u&&r&&u.level!=null&&r.level!=null&&u.level>r.level){let d={type:"item",key:o,dropPosition:"before"};if(e(d))return[d]}}return i.filter(e)}selectTarget(t,e,l,n,r,i){var d;if(t.length<2)return t[0];let a=this.pointerTracking,c=(d=this.state.collection.getItem(e.key))==null?void 0:d.parentKey;if(!c)return t[0];(!a.boundaryContext||a.boundaryContext.parentKey!==c)&&(a.boundaryContext={parentKey:c,preferredTargetIndex:a.yDirection==="up"?t.length-1:0,lastSwitchY:n,lastSwitchX:l});let o=a.boundaryContext,u=Math.abs(l-o.lastSwitchX);if(Math.abs(n-o.lastSwitchY)>On&&r){let p=o.preferredTargetIndex||0;r==="down"&&p===0?o.preferredTargetIndex=t.length-1:r==="up"&&p===t.length-1&&(o.preferredTargetIndex=0),a.xDirection=null}if(u>Ln&&i){let p=o.preferredTargetIndex||0;i==="left"?this.direction==="ltr"?p0&&(o.preferredTargetIndex=p-1,o.lastSwitchX=l):i==="right"&&(this.direction==="ltr"?p>0&&(o.preferredTargetIndex=p-1,o.lastSwitchX=l):pn.key===t);return(l=this.flattenedRows[e+1])==null?void 0:l.key}getKeyBefore(t){var l;let e=this.flattenedRows.findIndex(n=>n.key===t);return(l=this.flattenedRows[e-1])==null?void 0:l.key}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let l=e.get(t),n=(l==null?void 0:l.firstChildKey)==null?null:e.get(l.firstChildKey);for(;n;)yield n,n=n.nextKey==null?void 0:e.get(n.nextKey)}}}getTextValue(t){let e=this.getItem(t);return e?e.textValue:""}constructor(t){this.keyMap=new Map,this.itemCount=0;let{collection:e,expandedKeys:l}=t,{flattenedRows:n,keyMap:r,itemCount:i}=lo(e,{expandedKeys:l});this.flattenedRows=n,this.keyMap=r,this.itemCount=i}},Ja=(0,h.createContext)(null),ll=(0,h.createContext)(null),eo=(0,h.forwardRef)(function(t,e){return[t,e]=ai(t,e,Ja),h.createElement(ds,{content:h.createElement(ps,t)},l=>h.createElement(to,{props:t,collection:l,treeRef:e}))}),Hn={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function to({props:t,collection:e,treeRef:l}){let{dragAndDropHooks:n}=t,{direction:r}=yt(),i=Dl({usage:"search",sensitivity:"base"}),a=!!(n!=null&&n.useDraggableCollectionState),c=!!(n!=null&&n.useDroppableCollectionState),o=(0,h.useRef)(a),u=(0,h.useRef)(c);(0,h.useEffect)(()=>{o.current!==a&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),u.current!==c&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")},[a,c]);let{selectionMode:d="none",expandedKeys:p,defaultExpandedKeys:g,onExpandedChange:x,disabledBehavior:y="all"}=t,{CollectionRoot:j,isVirtualized:v,layoutDelegate:w,dropTargetDelegate:m}=(0,h.useContext)(Ct),[f,k]=$t(p?Xn(p):void 0,g?Xn(g):new Set,x),D=(0,h.useMemo)(()=>new Za({collection:e,expandedKeys:f}),[e,f]),C=Ga({...t,selectionMode:d,expandedKeys:f,onExpandedChange:k,collection:D,children:void 0,disabledBehavior:y}),{gridProps:M}=Ha({...t,isVirtualized:v,layoutDelegate:w},C,l),_,S,P,I=!1,T=null,$=(0,h.useRef)(null);if(a&&n){_=n.useDraggableCollectionState({collection:C.collection,selectionManager:C.selectionManager,preview:n.renderDragPreview?$:void 0}),n.useDraggableCollection({},_,l);let te=n.DragPreview;T=n.renderDragPreview?h.createElement(te,{ref:$},n.renderDragPreview):null}let[K]=(0,h.useState)(()=>new Qa);if(c&&n){S=n.useDroppableCollectionState({collection:C.collection,selectionManager:C.selectionManager});let te=n.dropTargetDelegate||m||new n.ListDropTargetDelegate(C.collection,l,{direction:r});K.setup(te,C,r);let ae=new Ut({collection:C.collection,collator:i,ref:l,disabledKeys:C.selectionManager.disabledKeys,disabledBehavior:C.selectionManager.disabledBehavior,direction:r,layoutDelegate:w});P=n.useDroppableCollection({keyboardDelegate:ae,dropTargetDelegate:K,onDropActivate:re=>{var Y;if(re.target.type==="item"){let X=re.target.key,le=C.collection.getItem(X),se=f!=="all"&&f.has(X);le&&le.hasChildNodes&&(!se||n!=null&&((Y=n.isVirtualDragging)!=null&&Y.call(n)))&&C.toggleKey(X)}},onKeyDown:re=>{let Y=S==null?void 0:S.target;if(Y&&Y.type==="item"&&Y.dropPosition==="on"){let X=C.collection.getItem(Y.key);(re.key===Hn.expand[r]&&(X!=null&&X.hasChildNodes)&&!C.expandedKeys.has(Y.key)||re.key===Hn.collapse[r]&&(X!=null&&X.hasChildNodes)&&C.expandedKeys.has(Y.key))&&C.toggleKey(Y.key)}}},S,l);let ce=S.getDropOperation;S.getDropOperation=re=>{var se;let{target:Y,isInternal:X}=re,le=(_==null?void 0:_.draggingKeys)??new Set;if(X&&Y.type==="item"&&le.size>0){if(le.has(Y.key)&&Y.dropPosition==="on")return"cancel";let he=Y.key;for(;he!=null;){let E=(se=C.collection.getItem(he))==null?void 0:se.parentKey;if(E!=null&&le.has(E))return"cancel";he=E??null}}return ce(re)},I=S.isDropTarget({type:"root"})}let F=!!(a&&!(_!=null&&_.isDisabled)),{focusProps:H,isFocused:N,isFocusVisible:A}=Ft(),W={isEmpty:C.collection.size===0,isFocused:N,isFocusVisible:A,isDropTarget:I,selectionMode:C.selectionManager.selectionMode,allowsDragging:!!F,state:C},b=Ze({className:t.className,style:t.style,defaultClassName:"react-aria-Tree",values:W}),G=null;if(C.collection.size===0&&t.renderEmptyState){let{isEmpty:te,...ae}=W,ce=t.renderEmptyState({...ae});G=h.createElement("div",{role:"row",style:{display:"contents"},"aria-level":1},h.createElement("div",{role:"gridcell",style:{display:"contents"}},ce))}let Q=ht(t,{global:!0});return h.createElement(h.Fragment,null,h.createElement(Ii,null,h.createElement("div",{...Ne(Q,b,M,H,P==null?void 0:P.collectionProps),ref:l,slot:t.slot||void 0,"data-empty":C.collection.size===0||void 0,"data-focused":N||void 0,"data-drop-target":I||void 0,"data-focus-visible":A||void 0,"data-selection-mode":C.selectionManager.selectionMode==="none"?void 0:C.selectionManager.selectionMode,"data-allows-dragging":!!F||void 0},h.createElement(Nl,{values:[[ll,C],[st,{dragAndDropHooks:n,dragState:_,dropState:S}],[tl,{render:so}]]},c&&h.createElement(io,null),h.createElement(Ri,null,h.createElement(j,{collection:C.collection,persistedKeys:Vn(C.selectionManager,n,S),scrollRef:l,renderDropIndicator:zn(n,S)}))),G)),T)}var Un=class extends Ve{};Un.type="content";var qn=Zt(Un,function(t){let e=(0,h.useContext)(Wn),l=Ze({children:t.children,values:e});return h.createElement(Ct.Provider,{value:fs},l.children)}),Wn=(0,h.createContext)(null),Gn=class extends Ve{};Gn.type="item";var Yn=_a(Gn,(t,e,l)=>{let n=(0,h.useContext)(ll);e=Tt(e);let{dragAndDropHooks:r,dragState:i,dropState:a}=(0,h.useContext)(st),{rowProps:c,gridCellProps:o,expandButtonProps:u,descriptionProps:d,...p}=Tn({node:l,shouldSelectOnPressUp:!!i},n,e),g=c["aria-expanded"]===!0,x=t.hasChildItems||[...n.collection.getChildren(l.key)].length>1,y=c["aria-level"]||1,{hoverProps:j,isHovered:v}=ni({isDisabled:!p.allowsSelection&&!p.hasAction,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{isFocusVisible:w,focusProps:m}=Ft(),{isFocusVisible:f,focusProps:k}=Ft({within:!0}),{checkboxProps:D}=Oa({key:l.key},n),C=null;i&&r&&(C=r.useDraggableItem({key:l.key,hasDragButton:!0},i));let M=null,_=(0,h.useRef)(null),S=(0,h.useRef)(null),P=(0,h.useRef)(null),{visuallyHiddenProps:I}=zt();a&&r&&(M=r.useDropIndicator({target:{type:"item",key:l.key,dropPosition:"on"},activateButtonRef:P},a,S));let T=i&&i.isDragging(l.key),$=M==null?void 0:M.isDropTarget,K=n.selectionManager.selectionMode,F=n.selectionManager.selectionBehavior,H=h.useMemo(()=>({...p,isHovered:v,isFocusVisible:w,isExpanded:g,hasChildItems:x,level:y,selectionMode:K,selectionBehavior:F,isFocusVisibleWithin:f,state:n,id:l.key,allowsDragging:!!i,isDragging:T,isDropTarget:$}),[p,v,w,g,x,y,f,n,l.key,i,T,$,F,K]),N=Ze({...t,id:void 0,children:l.rendered,defaultClassName:"react-aria-TreeItem",defaultStyle:{"--tree-item-level":y},values:H});(0,h.useEffect)(()=>{l.textValue},[l.textValue]),(0,h.useEffect)(()=>{x&&_.current},[]);let A=(0,h.useRef)(null);(0,h.useEffect)(()=>{i&&A.current},[]);let W=Xt({items:n.collection.getChildren(l.key),children:Q=>{switch(Q.type){case"content":return Q.render(Q);case"loader":case"item":return h.createElement(h.Fragment,null);default:throw Error("Unsupported element type in TreeRow: "+Q.type)}}}),b=et(),G=ht(t,{global:!0});return delete G.id,delete G.onClick,h.createElement(h.Fragment,null,M&&!M.isHidden&&h.createElement("div",{role:"row","aria-level":c["aria-level"],"aria-expanded":c["aria-expanded"],"aria-label":M.dropIndicatorProps["aria-label"]},h.createElement("div",{role:"gridcell","aria-colindex":1,style:{display:"contents"}},h.createElement("div",{role:"button",...I,...M.dropIndicatorProps,ref:S}),c["aria-expanded"]==null?null:h.createElement("div",{role:"button",...I,id:b,"aria-label":u["aria-label"],"aria-labelledby":`${b} ${c.id}`,tabIndex:-1,ref:P}))),h.createElement("div",{...Ne(G,c,m,j,k,C==null?void 0:C.dragProps),...N,ref:e,"data-expanded":x&&g||void 0,"data-has-child-items":x||void 0,"data-level":y,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":v||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":w||void 0,"data-pressed":p.isPressed||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode,"data-allows-dragging":!!i||void 0,"data-dragging":T||void 0,"data-drop-target":$||void 0},h.createElement("div",{...o,style:{display:"contents"}},h.createElement(Nl,{values:[[Si,{slots:{selection:D}}],[ci,{slots:{[li]:{},chevron:{...u,ref:_},drag:{...C==null?void 0:C.dragButtonProps,ref:A,style:{pointerEvents:"none"}}}}],[Wn,{...H}],[Bi,{isSelected:p.isSelected}]]},W))))});Zt(Gt,function(t,e,l){let{isVirtualized:n}=(0,h.useContext)(Ct),r=(0,h.useContext)(ll),{isLoading:i,onLoadMore:a,scrollOffset:c,...o}=t,u=(0,h.useRef)(null);Ul((0,h.useMemo)(()=>({onLoadMore:a,collection:r==null?void 0:r.collection,sentinelRef:u,scrollOffset:c}),[a,c,r==null?void 0:r.collection]),u),e=Tt(e);let{rowProps:d,gridCellProps:p}=Tn({node:l},r,e),g=d["aria-level"]||1,x={role:"row","aria-level":d["aria-level"]},y=Ze({...o,id:void 0,children:l.rendered,defaultClassName:"react-aria-TreeLoader",values:{level:g}}),j={};return n&&(j={display:"contents"}),h.createElement(h.Fragment,null,h.createElement("div",{style:{position:"relative",width:0,height:0},inert:ql(!0)},h.createElement("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})),i&&y.children&&h.createElement("div",{ref:e,...Ne(ht(t),x),...y,"data-level":g},h.createElement("div",{...p,style:j},y.children)))});function Xn(t){return t?t==="all"?"all":new Set(t):new Set}function lo(t,e){let{expandedKeys:l=new Set}=e,n=new Map,r=[],i=0,a=new Map,c=o=>{if(o.type==="item"||o.type==="loader"){let u=o==null?void 0:o.parentKey,d={...o};u==null?n.set(o.key,o):([...t.getChildren(u)][0].type!=="item"&&(d.index=(o==null?void 0:o.index)==null?0:(o==null?void 0:o.index)-1),o.type==="loader"&&(d.level=o.level+1),n.set(d.key,d));let p=n.get(o.key)||o;(p.level===0||p.parentKey!=null&&l.has(p.parentKey)&&a.get(p.parentKey))&&(p.type==="item"&&i++,r.push(p),a.set(p.key,!0))}else o.type!==null&&n.set(o.key,o);for(let u of t.getChildren(o.key))c(u)};for(let o of t)c(o);return{flattenedRows:r,keyMap:n,itemCount:i}}function so(t,e){var u;e=Tt(e);let{dragAndDropHooks:l,dropState:n}=(0,h.useContext)(st),r=(0,h.useRef)(null),{dropIndicatorProps:i,isHidden:a,isDropTarget:c}=l.useDropIndicator(t,n,r);if(a)return null;let o=n&&t.target.type==="item"?(((u=n.collection.getItem(t.target.key))==null?void 0:u.level)||0)+1:1;return h.createElement(ro,{...t,dropIndicatorProps:i,isDropTarget:c,ref:e,buttonRef:r,level:o})}function no(t,e){let{dropIndicatorProps:l,isDropTarget:n,buttonRef:r,level:i,...a}=t,{visuallyHiddenProps:c}=zt(),o=Ze({...a,defaultClassName:"react-aria-DropIndicator",defaultStyle:{position:"relative","--tree-item-level":i},values:{isDropTarget:n}});return h.createElement("div",{...o,role:"row","aria-level":i,ref:e,"data-drop-target":n||void 0},h.createElement("div",{role:"gridcell"},h.createElement("div",{...c,role:"button",...l,ref:r}),o.children))}var ro=(0,h.forwardRef)(no);function io(){let{dragAndDropHooks:t,dropState:e}=(0,h.useContext)(st),l=(0,h.useRef)(null),{dropIndicatorProps:n}=t.useDropIndicator({target:{type:"root"}},e,l),r=e.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=zt();return!r&&n["aria-hidden"]?null:h.createElement("div",{role:"row","aria-hidden":n["aria-hidden"],style:{position:"absolute"}},h.createElement("div",{role:"gridcell"},h.createElement("div",{role:"button",...i,...n,ref:l})))}function Qn(){return["compact","medium","full","columns"]}var ao={openai:t=>{var e;return!!((e=t==null?void 0:t.open_ai)!=null&&e.api_key)},anthropic:t=>{var e;return!!((e=t==null?void 0:t.anthropic)!=null&&e.api_key)},google:t=>{var e;return!!((e=t==null?void 0:t.google)!=null&&e.api_key)},github:t=>{var e;return!!((e=t==null?void 0:t.github)!=null&&e.api_key)},openrouter:t=>{var e;return!!((e=t==null?void 0:t.openrouter)!=null&&e.api_key)},azure:t=>{var e,l;return!!((e=t==null?void 0:t.azure)!=null&&e.api_key&&((l=t==null?void 0:t.azure)!=null&&l.base_url))},wandb:t=>{var e;return!!((e=t==null?void 0:t.wandb)!=null&&e.api_key)},bedrock:t=>{var e;return!!((e=t==null?void 0:t.bedrock)!=null&&e.region_name)},ollama:t=>{var e;return!!((e=t==null?void 0:t.ollama)!=null&&e.base_url)},deepseek:()=>!1,marimo:()=>!1};function oo(t){let e=t.ai;for(let n of Et)if(ao[n](e))return n;let l=e==null?void 0:e.custom_providers;if(l){let n=Object.entries(l).find(([r,i])=>i==null?void 0:i.base_url);if(n)return n[0]}}function co(t){let e=oo(t);if(e)return Lr().defaultModelByProvider.get(e)}function uo(t){var i,a,c,o;let e={chatModel:void 0,editModel:void 0},l=!((a=(i=t.ai)==null?void 0:i.models)!=null&&a.chat_model),n=!((o=(c=t.ai)==null?void 0:c.models)!=null&&o.edit_model);if(!l&&!n)return e;let r=co(t);return r&&(l&&(e.chatModel=r),n&&(e.editModel=r)),e}var mo=ye();function Zn(t){return t.toLowerCase().replaceAll("+","-").trim()}function ho(t,e){let l=t.getHotkeyGroups(),n=e?new Set(l[e]||[]):new Set,r=new Map;for(let c of t.iterate()){if(n.has(c))continue;let o=t.getHotkey(c);if(!o.key||o.key.trim()==="")continue;let u=Zn(o.key);r.has(u)||r.set(u,[]);let d=r.get(u);d&&d.push({action:c,name:o.name})}let i=[],a=new Set;for(let[c,o]of r.entries())if(o.length>1){i.push({key:c,actions:o});for(let{action:u}of o)a.add(u)}return{duplicates:i,hasDuplicate:c=>a.has(c),getDuplicatesFor:c=>{let o=t.getHotkey(c);if(!o.key||o.key.trim()==="")return[];let u=Zn(o.key),d=i.find(p=>p.key===u);return!d||d.actions.length<=1?[]:d.actions.filter(p=>p.action!==c).map(p=>p.action)}}}function po(t,e){let l=(0,mo.c)(3),n;return l[0]!==t||l[1]!==e?(n=ho(t,e),l[0]=t,l[1]=e,l[2]=n):n=l[2],n}var fo=ye(),s=cl(zr(),1);const go=t=>{let e=(0,fo.c)(7),{duplicates:l}=t;if(l.length===0)return null;let n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)(Bt,{className:"h-4 w-4"}),r=(0,s.jsx)(qi,{children:"Duplicate shortcuts"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("p",{className:"mb-2",children:"Multiple actions are assigned to the same keyboard shortcut:"}),e[2]=i):i=e[2];let a;e[3]===l?a=e[4]:(a=l.map(yo),e[3]=l,e[4]=a);let c;return e[5]===a?c=e[6]:(c=(0,s.jsxs)(Wi,{variant:"warning",className:"mb-4",children:[n,r,(0,s.jsxs)(Ui,{children:[i,(0,s.jsx)("ul",{className:"space-y-2",children:a})]})]}),e[5]=a,e[6]=c),c};function xo(t){let{action:e,name:l}=t;return(0,s.jsx)("li",{children:l},e)}function yo(t){let{key:e,actions:l}=t;return(0,s.jsxs)("li",{className:"text-xs",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,s.jsx)(Ot,{shortcut:e}),(0,s.jsx)("span",{className:"font-semibold",children:"is used by:"})]}),(0,s.jsx)("ul",{className:"ml-6 list-disc",children:l.map(xo)})]},e)}const sl=It(!1),vo=()=>{let[t,e]=at(sl),[l,n]=(0,h.useState)(null),[r,i]=(0,h.useState)([]),[a,c]=fl(),o=Ye(Tr),{saveUserConfig:u}=ct(),{duplicates:d,hasDuplicate:p,getDuplicatesFor:g}=po(o,"Markdown");$r("global.showHelp",()=>e(k=>!k));let x=async k=>{let D={...a};c(C=>({...C,...k})),await u({config:k}).catch(C=>{throw c(D),C})},y=async k=>{if(!l)return;let D=k.join("-"),C={keymap:{...a.keymap,overrides:{...a.keymap.overrides,[l]:D}}};n(null),i([]),await x(C)},j=async()=>{if(!l)return;let k={keymap:{...a.keymap,overrides:{...a.keymap.overrides}}};delete k.keymap.overrides[l],n(null),i([]),await x(k)},v=async()=>{if(!window.confirm("Are you sure you want to reset all shortcuts to their default values?"))return;let k={keymap:{...a.keymap,overrides:{}}};n(null),i([]),await x(k)};if(!t)return null;let w=k=>{let D=o.getHotkey(k);if(l===k){let _=Er(k);return(0,s.jsxs)("div",{children:[(0,s.jsx)(Ie,{defaultValue:r.join("+"),placeholder:D.name,onKeyDown:S=>{S.preventDefault();let P=[];if(S.key==="Meta"||S.key==="Control"||S.key==="Alt"||S.key==="Shift"||(S.metaKey&&P.push(ml()?"Cmd":"Meta"),S.ctrlKey&&P.push("Ctrl"),S.altKey&&P.push("Alt"),S.shiftKey&&P.push("Shift"),S.key==="-"))return;if(S.key==="Escape"&&P.length===0){n(null),i([]);return}let I=S.key.toLowerCase();S.key===" "&&(I="Space"),P.push(I),y(P)},autoFocus:!0,endAdornment:(0,s.jsx)(J,{variant:"text",size:"xs",className:"mb-0",onClick:()=>{n(null),i([])},children:(0,s.jsx)(At,{className:"w-4 h-4"})})}),(0,s.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,s.jsx)("span",{className:"text-muted-foreground text-xs",children:"Press a key combination"}),_.key!==D.key&&(0,s.jsxs)("span",{className:"text-xs cursor-pointer text-primary",onClick:j,children:["Reset to default:"," ",(0,s.jsx)("span",{className:"font-mono",children:_.key})]})]})]},k)}let C=p(k),M=C?g(k):[];return(0,s.jsxs)("div",{className:"grid grid-cols-[auto_2fr_3fr] gap-2 items-center",children:[o.isEditable(k)?(0,s.jsx)(Sl,{className:"cursor-pointer opacity-60 hover:opacity-100 text-muted-foreground w-3 h-3",onClick:()=>{i([]),n(k)}}):(0,s.jsx)("div",{className:"w-3 h-3"}),(0,s.jsx)(Ot,{className:"justify-end",shortcut:D.key}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{children:D.name.toLowerCase()}),C&&(0,s.jsxs)("div",{className:"group relative inline-flex",children:[(0,s.jsx)(Bt,{className:"w-3 h-3 text-(--yellow-11)"}),(0,s.jsxs)("div",{className:"invisible group-hover:visible absolute left-0 top-5 z-10 w-max max-w-xs rounded-md bg-(--yellow-2) border border-(--yellow-7) p-2 text-xs text-(--yellow-11) shadow-md",children:["Also used by:"," ",M.map(_=>o.getHotkey(_).name.toLowerCase()).join(", ")]})]})]})]},k)},m=o.getHotkeyGroups(),f=(k,D)=>{let C=m[k];return(0,s.jsxs)("div",{className:"mb-[40px] gap-2 flex flex-col",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-lg font-medium",children:k}),D]}),C.map(w)]})};return(0,s.jsx)(Ni,{open:t,onOpenChange:k=>e(k),children:(0,s.jsxs)(Ci,{className:"sm:items-center sm:top-0",children:[(0,s.jsx)(ki,{}),(0,s.jsxs)(ji,{usePortal:!1,className:"max-h-screen sm:max-h-[90vh] overflow-y-auto sm:max-w-[850px]",children:[(0,s.jsx)(vi,{children:(0,s.jsx)(bi,{children:"Shortcuts"})}),(0,s.jsx)(go,{duplicates:d}),(0,s.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,s.jsxs)("div",{className:"w-1/2",children:[f("Editing"),f("Markdown")]}),(0,s.jsxs)("div",{className:"w-1/2",children:[f("Navigation"),f("Running Cells"),f("Creation and Ordering"),(k=>f(k,(0,s.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:["Press"," ",a.keymap.preset==="vim"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ot,{shortcut:ml()?"Cmd":"Ctrl"}),(0,s.jsx)(ee,{children:"Esc"})]}):(0,s.jsx)(ee,{children:"Esc"})," ","in a cell to enter command mode"]})))("Command"),f("Other"),(0,s.jsx)(J,{className:"mt-4 hover:bg-destructive/10 border-destructive hover:border-destructive",variant:"outline",size:"xs",onClick:v,tabIndex:-1,children:(0,s.jsx)("span",{className:"text-destructive",children:"Reset all to default"})})]})]})]})]})})},Jn=(0,h.memo)(()=>{let[t,e]=at(Dr),[l,n]=at(_r),[r,i]=(0,h.useState)(),[a,c]=(0,h.useState)(!1),o=async p=>{p.preventDefault(),c(!0);try{let g=await jo();if(!(g!=null&&g.verificationUri)||!g.userCode){Ae.error("Copilot#trySignIn: Invalid response from sign-in",{result:g}),n("connectionError"),De({title:"GitHub Copilot Connection Error",description:"Unable to connect to GitHub Copilot. Please check your settings and try again.",variant:"danger"});return}let{verificationUri:x,status:y,userCode:j}=g;lr(y)?e(!0):(n("signingIn"),i({url:x,code:j}))}catch(g){Ae.error("Copilot#trySignIn: Error during sign-in",g),n("connectionError"),De({title:"GitHub Copilot Connection Error",description:g instanceof Error?g.message:"Unable to connect to GitHub Copilot. Please check your settings and try again.",variant:"danger"})}finally{c(!1)}},u=async p=>{if(p.preventDefault(),r){c(!0);try{let g=await ko(r.code);g.success?(e(!0),n("signedIn")):g.error==="connection"?(n("connectionError"),De({title:"GitHub Copilot Connection Error",description:"Lost connection during sign-in. Please try again.",variant:"danger",action:(0,s.jsx)(J,{onClick:o,children:"Retry"})})):n("signInFailed")}finally{c(!1)}}},d=async p=>{p.preventDefault(),await No(),e(!1),n("signedOut")};return(()=>{switch(l??(t?"signedIn":"connecting")){case"connecting":return(0,s.jsx)(_e,{className:"font-normal flex",children:"Connecting..."});case"signedOut":return(0,s.jsx)(J,{onClick:o,size:"xs",variant:"link",children:"Sign in to GitHub Copilot"});case"signingIn":return(0,s.jsxs)("ol",{className:"ml-4 text-sm list-decimal [&>li]:mt-2",children:[(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"flex items-center",children:["Copy this code:",(0,s.jsx)("strong",{className:"ml-2",children:r==null?void 0:r.code}),(0,s.jsx)(Jr,{className:"ml-2 cursor-pointer opacity-60 hover:opacity-100 h-3 w-3",onClick:async()=>{r&&(await Vi(r.code),De({description:"Copied to clipboard"}))}})]})}),(0,s.jsxs)("li",{children:["Enter the code at this link:",(0,s.jsx)("a",{href:r==null?void 0:r.url,target:"_blank",rel:"noreferrer",className:Vr({variant:"link",size:"xs"}),children:r==null?void 0:r.url})]}),(0,s.jsxs)("li",{children:["Click here when done:",(0,s.jsxs)(J,{size:"xs",onClick:u,className:"ml-1",children:[a&&(0,s.jsx)(dt,{className:"h-3 w-3 mr-1 animate-spin"}),"Done"]})]})]});case"signInFailed":return(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-destructive text-sm",children:"Sign in failed. Please try again."}),a?(0,s.jsx)(dt,{className:"h-3 w-3 mr-1 animate-spin"}):(0,s.jsx)(J,{onClick:o,size:"xs",variant:"link",children:"Connect to GitHub Copilot"})]});case"signedIn":return(0,s.jsxs)("div",{className:"flex items-center gap-5",children:[(0,s.jsxs)(_e,{className:"font-normal flex items-center",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center bg-(--grass-7) rounded-full p-1 mr-2",children:(0,s.jsx)(Ur,{className:"h-3 w-3 text-white"})}),"Connected"]}),(0,s.jsx)(J,{onClick:d,size:"xs",variant:"text",children:"Disconnect"})]});case"connectionError":return(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)(_e,{className:"font-normal flex",children:[(0,s.jsx)(At,{className:"h-4 w-4 mr-1"}),"Connection Error"]}),(0,s.jsx)("div",{className:"text-sm",children:"Unable to connect to GitHub Copilot."}),(0,s.jsx)(J,{onClick:o,size:"xs",variant:"link",children:"Retry Connection"})]});case"notConnected":return(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)(_e,{className:"font-normal flex",children:[(0,s.jsx)(At,{className:"h-4 w-4 mr-1"}),"Unable to connect"]}),(0,s.jsxs)("div",{className:"text-sm",children:["For troubleshooting, see the"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/getting_started/index.html#github-copilot",children:"docs"}),"."]})]})}})()});Jn.displayName="CopilotConfig";var er=5,bo=3e3;async function jo(){return await _t().signInInitiate()}async function ko(t){let e=_t();try{Ae.log("Copilot#tryFinishSignIn: Attempting to confirm sign-in");let{status:l}=await e.signInConfirm({userCode:t});return lr(l)?(Ae.log("Copilot#tryFinishSignIn: Sign-in confirmed successfully"),{success:!0}):(Ae.warn("Copilot#tryFinishSignIn: Sign-in confirmation returned unexpected status",{status:l}),{success:!1})}catch(l){return tr(l)?(Ae.error("Copilot#tryFinishSignIn: Connection error during sign-in",l),{success:!1,error:"connection"}):await Co(e)}}async function Co(t){for(let e=0;esetTimeout(l,bo)),await t.signedIn())return Ae.log("Copilot#tryFinishSignIn: Successfully signed in after retry"),{success:!0}}catch(l){if(Ae.warn("Copilot#tryFinishSignIn: Retry attempt failed",{attempt:e+1,maxRetries:er}),tr(l))return{success:!1,error:"connection"}}return Ae.error("Copilot#tryFinishSignIn: All sign-in attempts failed"),{success:!1}}async function No(){await _t().signOut()}function tr(t){return t instanceof Error&&(t.message.includes("ECONNREFUSED")||t.message.includes("WebSocket")||t.message.includes("network"))}function lr(t){return t==="SignedIn"||t==="AlreadySignedIn"||t==="OK"}var wt=ye();const L="flex flex-row items-center space-x-1 space-y-0",wo=t=>{let e=(0,wt.c)(2),{children:l}=t,n;return e[0]===l?n=e[1]:(n=(0,s.jsx)("div",{className:"text-md font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:l}),e[0]=l,e[1]=n),n},qe=t=>{let e=(0,wt.c)(10),l,n,r;e[0]===t?(l=e[1],n=e[2],r=e[3]):({children:l,className:n,...r}=t,e[0]=t,e[1]=l,e[2]=n,e[3]=r);let i;e[4]===n?i=e[5]:(i=ue("text-base font-semibold underline-offset-2 text-accent-foreground uppercase tracking-wide",n),e[4]=n,e[5]=i);let a;return e[6]!==l||e[7]!==r||e[8]!==i?(a=(0,s.jsx)("div",{...r,className:i,children:l}),e[6]=l,e[7]=r,e[8]=i,e[9]=a):a=e[9],a},So=t=>{let e=(0,wt.c)(2),{children:l}=t,n;return e[0]===l?n=e[1]:(n=(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:l}),e[0]=l,e[1]=n),n},be=t=>{let e=(0,wt.c)(5),{title:l,children:n}=t,r;e[0]===l?r=e[1]:(r=(0,s.jsx)(qe,{children:l}),e[0]=l,e[1]=r);let i;return e[2]!==n||e[3]!==r?(i=(0,s.jsxs)("div",{className:"flex flex-col gap-4 pb-4",children:[r,n]}),e[2]=n,e[3]=r,e[4]=i):i=e[4],i},sr=[{label:"Auto (Default)",value:"auto"},{label:"Native",value:"native"},{label:"Polars",value:"polars"},{label:"Lazy Polars",value:"lazy-polars"},{label:"Pandas",value:"pandas"}],Ko="us-east-1.us-east-2.us-west-1.us-west-2.ap-northeast-1.ap-northeast-2.ap-northeast-3.ap-south-1.ap-south-2.ap-southeast-1.ap-southeast-2.ap-southeast-3.ap-southeast-4.ap-southeast-5.ap-southeast-7.ap-east-2.ca-central-1.eu-central-1.eu-central-2.eu-north-1.eu-south-1.eu-south-2.eu-west-1.eu-west-2.eu-west-3.il-central-1.me-central-1.sa-east-1.us-gov-east-1.us-gov-west-1".split(".");var Io=ye();const nr=t=>{let e=(0,Io.c)(12),{value:l,includeSuggestion:n}=t,r=n===void 0?!0:n;if(!l||l.includes("/"))return null;let i;e[0]===l?i=e[1]:(i=Qe.parse(l),e[0]=l,e[1]=i);let a=i.id,c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("code",{className:"font-bold",children:"provider/model"}),e[2]=c):c=e[2];let o;e[3]===l?o=e[4]:(o=(0,s.jsxs)("span",{children:["Model id should be in the form"," ",c,". ",l," is missing a provider."]}),e[3]=l,e[4]=o);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)("br",{}),e[5]=u):u=e[5];let d;e[6]!==r||e[7]!==a?(d=r&&a&&(0,s.jsxs)("span",{children:["Did you mean ",(0,s.jsx)("code",{className:"font-bold",children:a}),"?"]}),e[6]=r,e[7]=a,e[8]=d):d=e[8];let p;return e[9]!==o||e[10]!==d?(p=(0,s.jsxs)(vt,{kind:"danger",className:"mt-1",children:[o,u,d]}),e[9]=o,e[10]=d,e[11]=p):p=e[11],p};var nl=ye();function rr(t,e){let l=(0,nl.c)(10),n;l[0]!==e||l[1]!==t?(n=ul(t,e),l[0]=e,l[1]=t,l[2]=n):n=l[2];let r=n,i=Ye(Fr),a;l[3]!==e||l[4]!==i?(a=ul(i,e),l[3]=e,l[4]=i,l[5]=a):a=l[5];let c=a,o=c!=null&&r!==c,u;return l[6]!==r||l[7]!==o||l[8]!==c?(u={isOverridden:o,currentValue:r,overriddenValue:c},l[6]=r,l[7]=o,l[8]=c,l[9]=u):u=l[9],u}const Do=t=>{let e=(0,nl.c)(3),{name:l,children:n}=t,[r]=pl(),{isOverridden:i}=rr(r,l),a;return e[0]!==n||e[1]!==i?(a=i?(0,s.jsx)(He,{delayDuration:200,content:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("p",{children:["This setting is overridden by the"," ",(0,s.jsx)(ee,{className:"inline mx-px",children:"pyproject.toml"})," config."]}),(0,s.jsxs)("p",{children:["To change it, edit the project config"," ",(0,s.jsx)(ee,{className:"inline mx-px",children:"pyproject.toml"}),"directly."]})]}),children:(0,s.jsx)("div",{className:"text-muted-foreground opacity-80 cursor-not-allowed *:pointer-events-none",children:n})}):n,e[0]=n,e[1]=i,e[2]=a):a=e[2],a},O=t=>{let e=(0,nl.c)(18),{userConfig:l,name:n}=t,{isOverridden:r,currentValue:i,overriddenValue:a}=rr(l,n);if(!r)return null;let c,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsxs)("span",{children:["This setting is overridden by"," ",(0,s.jsx)(ee,{className:"inline",children:"pyproject.toml"}),"."]}),o=(0,s.jsx)("br",{}),e[0]=c,e[1]=o):(c=e[0],o=e[1]);let u,d;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)("span",{children:["Edit the ",(0,s.jsx)(ee,{className:"inline",children:"pyproject.toml"})," file directly to change this setting."]}),d=(0,s.jsx)("br",{}),e[2]=u,e[3]=d):(u=e[2],d=e[3]);let p=String(i),g;e[4]===p?g=e[5]:(g=(0,s.jsxs)("span",{children:["User value: ",(0,s.jsx)("strong",{children:p})]}),e[4]=p,e[5]=g);let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)("br",{}),e[6]=x):x=e[6];let y=String(a),j;e[7]===y?j=e[8]:(j=(0,s.jsxs)("span",{children:["Project value: ",(0,s.jsx)("strong",{children:y})]}),e[7]=y,e[8]=j);let v;e[9]!==g||e[10]!==j?(v=(0,s.jsxs)(s.Fragment,{children:[c,o,u,d,g,x,j]}),e[9]=g,e[10]=j,e[11]=v):v=e[11];let w;e[12]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(Ol,{className:"w-3 h-3"}),e[12]=w):w=e[12];let m=String(a),f;e[13]===m?f=e[14]:(f=(0,s.jsxs)("span",{className:"text-(--amber-12) text-xs flex items-center gap-1 border rounded px-2 py-1 bg-(--amber-2) border-(--amber-6) ml-1",children:[w,"Overridden by pyproject.toml [",m,"]"]}),e[13]=m,e[14]=f);let k;return e[15]!==v||e[16]!==f?(k=(0,s.jsx)(He,{content:v,children:f}),e[15]=v,e[16]=f,e[17]=k):k=e[17],k};var We=ye(),ir=h.forwardRef((t,e)=>{let l=(0,We.c)(9),n,r;l[0]===t?(n=l[1],r=l[2]):({className:n,...r}=t,l[0]=t,l[1]=n,l[2]=r);let i;l[3]===n?i=l[4]:(i=ue("rounded-xl border bg-card text-card-foreground shadow",n),l[3]=n,l[4]=i);let a;return l[5]!==r||l[6]!==e||l[7]!==i?(a=(0,s.jsx)("div",{ref:e,className:i,...r}),l[5]=r,l[6]=e,l[7]=i,l[8]=a):a=l[8],a});ir.displayName="Card";var ar=h.forwardRef((t,e)=>{let l=(0,We.c)(9),n,r;l[0]===t?(n=l[1],r=l[2]):({className:n,...r}=t,l[0]=t,l[1]=n,l[2]=r);let i;l[3]===n?i=l[4]:(i=ue("flex flex-col space-y-1.5 p-6",n),l[3]=n,l[4]=i);let a;return l[5]!==r||l[6]!==e||l[7]!==i?(a=(0,s.jsx)("div",{ref:e,className:i,...r}),l[5]=r,l[6]=e,l[7]=i,l[8]=a):a=l[8],a});ar.displayName="CardHeader";var or=h.forwardRef((t,e)=>{let l=(0,We.c)(9),n,r;l[0]===t?(n=l[1],r=l[2]):({className:n,...r}=t,l[0]=t,l[1]=n,l[2]=r);let i;l[3]===n?i=l[4]:(i=ue("font-semibold leading-none tracking-tight",n),l[3]=n,l[4]=i);let a;return l[5]!==r||l[6]!==e||l[7]!==i?(a=(0,s.jsx)("div",{ref:e,className:i,...r}),l[5]=r,l[6]=e,l[7]=i,l[8]=a):a=l[8],a});or.displayName="CardTitle";var cr=h.forwardRef((t,e)=>{let l=(0,We.c)(9),n,r;l[0]===t?(n=l[1],r=l[2]):({className:n,...r}=t,l[0]=t,l[1]=n,l[2]=r);let i;l[3]===n?i=l[4]:(i=ue("text-sm text-muted-foreground",n),l[3]=n,l[4]=i);let a;return l[5]!==r||l[6]!==e||l[7]!==i?(a=(0,s.jsx)("div",{ref:e,className:i,...r}),l[5]=r,l[6]=e,l[7]=i,l[8]=a):a=l[8],a});cr.displayName="CardDescription";var dr=h.forwardRef((t,e)=>{let l=(0,We.c)(9),n,r;l[0]===t?(n=l[1],r=l[2]):({className:n,...r}=t,l[0]=t,l[1]=n,l[2]=r);let i;l[3]===n?i=l[4]:(i=ue("p-6 pt-0",n),l[3]=n,l[4]=i);let a;return l[5]!==r||l[6]!==e||l[7]!==i?(a=(0,s.jsx)("div",{ref:e,className:i,...r}),l[5]=r,l[6]=e,l[7]=i,l[8]=a):a=l[8],a});dr.displayName="CardContent";var _o=h.forwardRef((t,e)=>{let l=(0,We.c)(9),n,r;l[0]===t?(n=l[1],r=l[2]):({className:n,...r}=t,l[0]=t,l[1]=n,l[2]=r);let i;l[3]===n?i=l[4]:(i=ue("flex items-center p-6 pt-0",n),l[3]=n,l[4]=i);let a;return l[5]!==r||l[6]!==e||l[7]!==i?(a=(0,s.jsx)("div",{ref:e,className:i,...r}),l[5]=r,l[6]=e,l[7]=i,l[8]=a):a=l[8],a});_o.displayName="CardFooter";var Po=ye();function ur(){let t=(0,Po.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0],zl(Eo,e)}async function Eo(){return Pt.get("/ai/mcp/status")}function Ao(){let[t,e]=(0,h.useState)(!1);return{refresh:async()=>{e(!0);try{await Pt.post("/ai/mcp/refresh",{}),De({title:"MCP refreshed",description:"MCP server configuration has been refreshed successfully"})}catch(l){De({title:"Refresh failed",description:l instanceof Error?l.message:"Failed to refresh MCP",variant:"danger"})}finally{e(!1)}},isRefreshing:t}}var mr=ye();const Mo=()=>{let t=(0,mr.c)(27),{data:e,refetch:l,isFetching:n}=ur(),r;t[0]===l?r=t[1]:(r=async()=>{try{await Pt.post("/ai/mcp/refresh",{}),De({title:"MCP refreshed",description:"MCP server configuration has been refreshed"}),l()}catch(k){let D=k;De({title:"Refresh failed",description:D instanceof Error?D.message:"Failed to refresh MCP",variant:"danger"})}},t[0]=l,t[1]=r);let i=r,a;t[2]===(e==null?void 0:e.servers)?a=t[3]:(a=(e==null?void 0:e.servers)||{},t[2]=e==null?void 0:e.servers,t[3]=a);let c=a,o=Object.keys(c).length>0,u=(e==null?void 0:e.status)==="ok"&&"text-green-500",d=(e==null?void 0:e.status)==="partial"&&"text-yellow-500",p=(e==null?void 0:e.status)==="error"&&o&&"text-red-500",g;t[4]!==u||t[5]!==d||t[6]!==p?(g=ue("h-4 w-4",u,d,p),t[4]=u,t[5]=d,t[6]=p,t[7]=g):g=t[7];let x;t[8]===g?x=t[9]:(x=(0,s.jsx)(He,{content:"MCP Status",children:(0,s.jsx)(Mi,{asChild:!0,children:(0,s.jsx)(J,{variant:"text",size:"icon",children:(0,s.jsx)(ei,{className:g})})})}),t[8]=g,t[9]=x);let y;t[10]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.jsx)("h4",{className:"font-medium text-sm",children:"MCP Server Status"}),t[10]=y):y=t[10];let j;t[11]===n?j=t[12]:(j=n?(0,s.jsx)(dt,{className:"h-3 w-3 animate-spin"}):(0,s.jsx)(kl,{className:"h-3 w-3"}),t[11]=n,t[12]=j);let v;t[13]!==i||t[14]!==n||t[15]!==j?(v=(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[y,(0,s.jsx)(J,{variant:"ghost",size:"xs",onClick:i,disabled:n,children:j})]}),t[13]=i,t[14]=n,t[15]=j,t[16]=v):v=t[16];let w;t[17]!==o||t[18]!==c||t[19]!==e?(w=e&&(0,s.jsxs)("div",{className:"text-xs space-y-2",children:[o&&(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:"Overall:"}),(0,s.jsx)(St,{status:e.status})]}),e.error&&(0,s.jsx)("div",{className:"text-xs text-red-500 bg-red-50 dark:bg-red-950/20 p-2 rounded",children:e.error}),o&&(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("div",{className:"text-muted-foreground font-medium",children:"Servers:"}),Object.entries(c).map(Fo)]}),!o&&(0,s.jsxs)("div",{className:"text-muted-foreground text-center py-2",children:["No MCP servers configured. ",(0,s.jsx)("br",{})," Configure under"," ",(0,s.jsx)("b",{children:"Settings > AI > MCP"})]})]}),t[17]=o,t[18]=c,t[19]=e,t[20]=w):w=t[20];let m;t[21]!==w||t[22]!==v?(m=(0,s.jsx)(Fi,{className:"w-[320px]",align:"start",side:"right",children:(0,s.jsxs)("div",{className:"space-y-3",children:[v,w]})}),t[21]=w,t[22]=v,t[23]=m):m=t[23];let f;return t[24]!==m||t[25]!==x?(f=(0,s.jsxs)($i,{children:[x,m]}),t[24]=m,t[25]=x,t[26]=f):f=t[26],f},St=t=>{let e=(0,mr.c)(11),{status:l}=t,n=l==="ok"&&"text-green-500",r=l==="partial"&&"text-yellow-500",i=l==="error"&&"text-red-500",a=l==="failed"&&"text-red-500",c=l==="disconnected"&&"text-gray-500",o=l==="pending"&&"text-yellow-500",u=l==="connected"&&"text-green-500",d;e[0]!==n||e[1]!==r||e[2]!==i||e[3]!==a||e[4]!==c||e[5]!==o||e[6]!==u?(d=ue("text-xs font-medium",n,r,i,a,c,o,u),e[0]=n,e[1]=r,e[2]=i,e[3]=a,e[4]=c,e[5]=o,e[6]=u,e[7]=d):d=e[7];let p;return e[8]!==l||e[9]!==d?(p=(0,s.jsx)("span",{className:d,children:l}),e[8]=l,e[9]=d,e[10]=p):p=e[10],p};function Fo(t){let[e,l]=t;return(0,s.jsxs)("div",{className:"flex justify-between items-center pl-2",children:[(0,s.jsx)("span",{className:"text-muted-foreground truncate max-w-[180px]",children:e}),(0,s.jsx)(St,{status:l})]},e)}var To=ye(),$o=[{id:"marimo",title:"marimo (docs)",description:"Access marimo documentation"},{id:"context7",title:"Context7",description:"Connect to Context7 MCP server"}];const Ro=t=>{let e=(0,To.c)(36),{form:l,onSubmit:n}=t,{handleClick:r}=yr(),{data:i,refetch:a,isFetching:c}=ur(),{refresh:o,isRefreshing:u}=Ao(),d;e[0]!==a||e[1]!==o?(d=async()=>{await o(),a()},e[0]=a,e[1]=o,e[2]=d):d=e[2];let p=d,g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)(qe,{children:"MCP Servers"}),e[3]=g):g=e[3];let x;e[4]===i?x=e[5]:(x=i&&(0,s.jsx)(St,{status:i.status}),e[4]=i,e[5]=x);let y=u||c,j;e[6]!==c||e[7]!==u?(j=u||c?(0,s.jsx)(dt,{className:"h-3 w-3 animate-spin"}):(0,s.jsx)(kl,{className:"h-3 w-3"}),e[6]=c,e[7]=u,e[8]=j):j=e[8];let v;e[9]!==p||e[10]!==y||e[11]!==j?(v=(0,s.jsx)(J,{variant:"outline",size:"xs",onClick:p,disabled:y,children:j}),e[9]=p,e[10]=y,e[11]=j,e[12]=v):v=e[12];let w;e[13]!==x||e[14]!==v?(w=(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[g,(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[x,v]})]}),e[13]=x,e[14]=v,e[15]=w):w=e[15];let m;e[16]===i?m=e[17]:(m=(i==null?void 0:i.error)&&(0,s.jsx)("div",{className:"text-xs text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-950/20 p-2 rounded",children:i.error}),e[16]=i,e[17]=m);let f;e[18]===i?f=e[19]:(f=(i==null?void 0:i.servers)&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground",children:Object.entries(i.servers).map(Bo)}),e[18]=i,e[19]=f);let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Enable Model Context Protocol (MCP) servers to provide additional capabilities and data sources for AI features."}),e[20]=k):k=e[20];let D;e[21]===Symbol.for("react.memo_cache_sentinel")?(D=(0,s.jsx)(ee,{className:"inline",children:"marimo[mcp]"}),e[21]=D):D=e[21];let C;e[22]===r?C=e[23]:(C=(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["This feature requires the ",D," ","package. See"," ",(0,s.jsx)(J,{variant:"link",onClick:()=>r("optionalDeps"),size:"xs",children:"Optional Features"})," ","for more details."]}),e[22]=r,e[23]=C);let M;e[24]!==l||e[25]!==n?(M=P=>{let{field:I}=P,T=I.value||[],$=K=>{let F=T.includes(K)?T.filter(H=>H!==K):[...T,K];I.onChange(F),n(l.getValues())};return(0,s.jsx)(z,{children:(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:$o.map(K=>{let F=T.includes(K.id);return(0,s.jsxs)(ir,{className:`cursor-pointer transition-all ${F?"border-[var(--blue-9)] bg-[var(--blue-2)]":"hover:border-[var(--blue-7)]"}`,onClick:()=>$(K.id),children:[(0,s.jsx)(ar,{children:(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsx)(or,{className:"text-base",children:K.title}),(0,s.jsx)("span",{className:`h-5 w-5 flex items-center justify-center rounded border ${F?"border-[var(--blue-7)] bg-[var(--blue-7)] text-foreground":"border-muted bg-background text-muted-foreground"}`,children:F?(0,s.jsx)(ea,{}):null})]})}),(0,s.jsx)(dr,{children:(0,s.jsx)(cr,{children:K.description})})]},K.id)})})})},e[24]=l,e[25]=n,e[26]=M):M=e[26];let _;e[27]!==l.control||e[28]!==M?(_=(0,s.jsx)(R,{control:l.control,name:"mcp.presets",render:M}),e[27]=l.control,e[28]=M,e[29]=_):_=e[29];let S;return e[30]!==C||e[31]!==_||e[32]!==w||e[33]!==m||e[34]!==f?(S=(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[w,m,f,k,C,_]}),e[30]=C,e[31]=_,e[32]=w,e[33]=m,e[34]=f,e[35]=S):S=e[35],S};function Bo(t){let[e,l]=t;return(0,s.jsxs)("div",{children:[e,": ",(0,s.jsx)(St,{status:l})]},e)}var me=ye();const zo=t=>{let e=(0,me.c)(5),{provider:l,children:n}=t,r;e[0]===l?r=e[1]:(r=l&&(0,s.jsx)(Oe,{provider:l,className:"mr-2"}),e[0]=l,e[1]=r);let i;return e[2]!==n||e[3]!==r?(i=(0,s.jsxs)("div",{className:"flex items-center text-base font-semibold",children:[r,n]}),e[2]=n,e[3]=r,e[4]=i):i=e[4],i},Pe=t=>{let e=(0,me.c)(11),{form:l,config:n,name:r,placeholder:i,testId:a,description:c,onChange:o}=t,u;e[0]!==n||e[1]!==c||e[2]!==r||e[3]!==o||e[4]!==i||e[5]!==a?(u=p=>{let{field:g}=p;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"API Key"}),(0,s.jsx)(V,{children:(0,s.jsx)(Ie,{"data-testid":a,rootClassName:"flex-1",className:"m-0 inline-flex h-7",placeholder:i,type:"password",...g,value:nt(g.value),onChange:x=>{let y=x.target.value;y.includes("*")||(g.onChange(y),o==null||o(y))}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:r})]}),c&&(0,s.jsx)(q,{children:c})]})},e[0]=n,e[1]=c,e[2]=r,e[3]=o,e[4]=i,e[5]=a,e[6]=u):u=e[6];let d;return e[7]!==l.control||e[8]!==r||e[9]!==u?(d=(0,s.jsx)(R,{control:l.control,name:r,render:u}),e[7]=l.control,e[8]=r,e[9]=u,e[10]=d):d=e[10],d};function nt(t){return t==null?"":typeof t=="string"?t:String(t)}const $e=t=>{let e=(0,me.c)(12),{form:l,config:n,name:r,placeholder:i,testId:a,description:c,disabled:o,onChange:u}=t,d=o===void 0?!1:o,p;e[0]!==n||e[1]!==c||e[2]!==d||e[3]!==r||e[4]!==u||e[5]!==i||e[6]!==a?(p=x=>{let{field:y}=x;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Base URL"}),(0,s.jsx)(V,{children:(0,s.jsx)(Ie,{"data-testid":a,rootClassName:"flex-1",className:"m-0 inline-flex h-7",placeholder:i,...y,value:nt(y.value),disabled:d,onChange:j=>{y.onChange(j.target.value),u==null||u(j.target.value)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:r})]}),c&&(0,s.jsx)(q,{children:c})]})},e[0]=n,e[1]=c,e[2]=d,e[3]=r,e[4]=u,e[5]=i,e[6]=a,e[7]=p):p=e[7];let g;return e[8]!==l.control||e[9]!==r||e[10]!==p?(g=(0,s.jsx)(R,{control:l.control,name:r,render:p}),e[8]=l.control,e[9]=r,e[10]=p,e[11]=g):g=e[11],g},rl=t=>{let e=(0,me.c)(15),{form:l,config:n,name:r,placeholder:i,testId:a,description:c,disabled:o,label:u,forRole:d,onSubmit:p}=t,g=o===void 0?!1:o,x;e[0]!==n||e[1]!==c||e[2]!==g||e[3]!==d||e[4]!==l||e[5]!==u||e[6]!==r||e[7]!==p||e[8]!==i||e[9]!==a?(x=j=>{let{field:v}=j,w=nt(v.value),m=f=>{v.onChange(f),p(l.getValues())};return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:u}),(0,s.jsx)(V,{children:(0,s.jsx)(Hr,{value:w,placeholder:i,onSelect:m,triggerClassName:"text-sm",customDropdownContent:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Zr,{}),(0,s.jsxs)("p",{className:"px-2 py-1.5 text-sm text-muted-secondary flex items-center gap-1",children:["Enter a custom model",(0,s.jsx)(He,{content:"Models should include the provider prefix, e.g. 'openai/gpt-4o'",children:(0,s.jsx)(Cr,{className:"h-3 w-3"})})]}),(0,s.jsxs)("div",{className:"px-2 py-1",children:[(0,s.jsx)(Ie,{"data-testid":a,className:"w-full border-border shadow-none focus-visible:shadow-xs",placeholder:i,...v,value:nt(v.value),disabled:g,onKeyDown:gl.stopPropagation()}),w&&(0,s.jsx)(nr,{value:w,includeSuggestion:!1})]})]}),forRole:d})}),(0,s.jsx)(U,{})]}),(0,s.jsx)(O,{userConfig:n,name:r}),(0,s.jsx)(nr,{value:w}),c&&(0,s.jsx)(q,{children:c})]})},e[0]=n,e[1]=c,e[2]=g,e[3]=d,e[4]=l,e[5]=u,e[6]=r,e[7]=p,e[8]=i,e[9]=a,e[10]=x):x=e[10];let y;return e[11]!==l.control||e[12]!==r||e[13]!==x?(y=(0,s.jsx)(R,{control:l.control,name:r,render:x}),e[11]=l.control,e[12]=r,e[13]=x,e[14]=y):y=e[14],y},Vo=t=>{let e=(0,me.c)(10),{form:l,config:n,name:r,options:i,testId:a,disabled:c}=t,o=c===void 0?!1:c,u;e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==i||e[4]!==a?(u=p=>{let{field:g}=p;return(0,s.jsx)("div",{className:"flex flex-col space-y-1",children:(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Provider"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":a,onChange:x=>{x.target.value==="none"?g.onChange(!1):g.onChange(x.target.value)},value:nt(g.value===!0?"github":g.value===!1?"none":g.value),disabled:o,className:"inline-flex mr-2",children:i.map(Jo)})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:r})]})})},e[0]=n,e[1]=o,e[2]=r,e[3]=i,e[4]=a,e[5]=u):u=e[5];let d;return e[6]!==l.control||e[7]!==r||e[8]!==u?(d=(0,s.jsx)(R,{control:l.control,name:r,render:u}),e[6]=l.control,e[7]=r,e[8]=u,e[9]=d):d=e[9],d};var Lo=({form:t,config:e,onSubmit:l})=>{let n=t.getValues("completion.copilot");if(n===!1)return null;if(n==="codeium")return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-sm text-muted-secondary",children:["To get a Windsurf API key, follow"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/editor_features/ai_completion.html#windsurf-copilot",children:"these instructions"}),"."]}),(0,s.jsx)(Pe,{form:t,config:e,name:"completion.codeium_api_key",placeholder:"key",testId:"codeium-api-key-input"})]});if(n==="github")return(0,s.jsx)(Jn,{});if(n==="custom")return(0,s.jsx)(rl,{label:"Autocomplete Model",form:t,config:e,name:"ai.models.autocomplete_model",placeholder:"ollama/qwen2.5-coder:1.5b",testId:"custom-model-input",description:"Model to use for code completion when using a custom provider.",onSubmit:l,forRole:"autocomplete"})},rt=t=>{let e=(0,me.c)(5),{children:l,className:n}=t,r;e[0]===n?r=e[1]:(r=ue("flex flex-col gap-4 pb-4",n),e[0]=n,e[1]=r);let i;return e[2]!==l||e[3]!==r?(i=(0,s.jsx)("div",{className:r,children:l}),e[2]=l,e[3]=r,e[4]=i):i=e[4],i},Oo=t=>{let e=(0,me.c)(23),{qualifiedId:l,model:n,isEnabled:r,onToggle:i,onDelete:a}=t,c;e[0]!==i||e[1]!==l?(c=()=>{i(l)},e[0]=i,e[1]=l,e[2]=c):c=e[2];let o=c,u;e[3]!==a||e[4]!==l?(u=v=>{v.stopPropagation(),v.preventDefault(),a(l)},e[3]=a,e[4]=l,e[5]=u):u=e[5];let d=u,p;e[6]===n?p=e[7]:(p=(0,s.jsx)(Ho,{model:n}),e[6]=n,e[7]=p);let g;e[8]!==d||e[9]!==n.custom?(g=n.custom&&(0,s.jsx)(J,{variant:"ghost",size:"icon",onClick:d,className:"mr-2 hover:bg-transparent",children:(0,s.jsx)(Kl,{className:"h-3.5 w-3.5 text-muted-foreground"})}),e[8]=d,e[9]=n.custom,e[10]=g):g=e[10];let x;e[11]!==o||e[12]!==r?(x=(0,s.jsx)(Br,{checked:r,onClick:o,size:"sm"}),e[11]=o,e[12]=r,e[13]=x):x=e[13];let y;e[14]!==p||e[15]!==g||e[16]!==x?(y=(0,s.jsx)(qn,{children:(0,s.jsxs)("div",{className:"flex items-center justify-between px-3 py-2.5 border-b last:border-b-0 cursor-pointer outline-none",children:[p,g,x]})}),e[14]=p,e[15]=g,e[16]=x,e[17]=y):y=e[17];let j;return e[18]!==o||e[19]!==n.name||e[20]!==l||e[21]!==y?(j=(0,s.jsx)(Yn,{id:l,textValue:n.name,className:"pl-6 outline-none data-focused:bg-muted/50 hover:bg-muted/50",onAction:o,children:y}),e[18]=o,e[19]=n.name,e[20]=l,e[21]=y,e[22]=j):j=e[22],j},Ho=t=>{let e=(0,me.c)(18),{model:l}=t,n;e[0]===l.name?n=e[1]:(n=(0,s.jsx)("h3",{className:"font-medium text-sm",children:l.name}),e[0]=l.name,e[1]=n);let r;e[2]===l.custom?r=e[3]:(r=l.custom&&(0,s.jsx)(wr,{className:"h-4 w-4"}),e[2]=l.custom,e[3]=r);let i;e[4]===r?i=e[5]:(i=(0,s.jsx)(He,{content:"Custom model",children:r}),e[4]=r,e[5]=i);let a;e[6]===l.thinking?a=e[7]:(a=l.thinking&&(0,s.jsxs)("div",{className:ue("flex items-center gap-1 rounded px-1 py-0.5 w-fit",Or("thinking")),children:[(0,s.jsx)(bl,{className:"h-3 w-3"}),(0,s.jsx)("span",{className:"text-xs font-medium",children:"Reasoning"})]}),e[6]=l.thinking,e[7]=a);let c;e[8]!==n||e[9]!==i||e[10]!==a?(c=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[n,i,a]}),e[8]=n,e[9]=i,e[10]=a,e[11]=c):c=e[11];let o;e[12]!==l.custom||e[13]!==l.description?(o=l.description&&!l.custom&&(0,s.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:l.description}),e[12]=l.custom,e[13]=l.description,e[14]=o):o=e[14];let u;return e[15]!==c||e[16]!==o?(u=(0,s.jsxs)("div",{className:"flex flex-col flex-1 gap-0.5",children:[c,o]}),e[15]=c,e[16]=o,e[17]=u):u=e[17],u};const Uo=t=>{let e=(0,me.c)(13),{form:l,config:n,onSubmit:r}=t,i,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(qe,{children:"Code Completion"}),a=(0,s.jsx)("p",{className:"text-sm text-muted-secondary",children:"Choose GitHub Copilot, Codeium, or a custom provider (such as Ollama) to enable AI-powered code completion."}),e[0]=i,e[1]=a):(i=e[0],a=e[1]);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["none","github","codeium","custom"],e[2]=c):c=e[2];let o;e[3]!==n||e[4]!==l?(o=(0,s.jsx)(Vo,{form:l,config:n,name:"completion.copilot",options:c,testId:"copilot-select"}),e[3]=n,e[4]=l,e[5]=o):o=e[5];let u;e[6]!==n||e[7]!==l||e[8]!==r?(u=Lo({form:l,config:n,onSubmit:r}),e[6]=n,e[7]=l,e[8]=r,e[9]=u):u=e[9];let d;return e[10]!==o||e[11]!==u?(d=(0,s.jsxs)(rt,{children:[i,a,o,u]}),e[10]=o,e[11]=u,e[12]=d):d=e[12],d};var we=t=>{let e=(0,me.c)(15),{title:l,triggerClassName:n,provider:r,children:i,isConfigured:a,value:c}=t,o=c??r,u;e[0]===a?u=e[1]:(u=a&&(0,s.jsx)("span",{className:"ml-2 px-1 rounded bg-muted text-xs font-medium border",children:"Configured"}),e[0]=a,e[1]=u);let d;e[2]!==r||e[3]!==u||e[4]!==l?(d=(0,s.jsxs)(zo,{provider:r,children:[l,u]}),e[2]=r,e[3]=u,e[4]=l,e[5]=d):d=e[5];let p;e[6]!==d||e[7]!==n?(p=(0,s.jsx)(Li,{className:n,children:d}),e[6]=d,e[7]=n,e[8]=p):p=e[8];let g;e[9]===i?g=e[10]:(g=(0,s.jsx)(Hi,{wrapperClassName:"flex flex-col gap-4",children:i}),e[9]=i,e[10]=g);let x;return e[11]!==o||e[12]!==p||e[13]!==g?(x=(0,s.jsxs)(Oi,{value:o,children:[p,g]}),e[11]=o,e[12]=p,e[13]=g,e[14]=x):x=e[14],x};const qo=({form:t,config:e,onSubmit:l})=>{let[n,r]=(0,h.useState)(!1),[i,a]=(0,h.useState)(""),[c,o]=(0,h.useState)(""),[u,d]=(0,h.useState)(""),p=(0,h.useId)(),g=(0,h.useId)(),x=(0,h.useId)(),y=i.toLowerCase().replaceAll(/\s+/g,"_"),j=t.watch("ai.custom_providers"),v=Et.includes(y)||j&&Object.keys(j).includes(y),w=y.trim()&&u.trim()&&!v,m=()=>{a(""),o(""),d(""),r(!1)};return(0,s.jsx)(R,{control:t.control,name:"ai.custom_providers",render:({field:f})=>{let k=f.value||{},D=Object.entries(k),C=()=>{w&&(f.onChange({...k,[y]:{api_key:c||void 0,base_url:u}}),l(t.getValues()),m())},M=I=>{let{[I]:T,...$}=k;t.resetField("ai.custom_providers"),t.setValue("ai.custom_providers",$,{shouldDirty:!0}),l(t.getValues())},_=(0,s.jsxs)("div",{className:"flex flex-col gap-3 p-4 border border-border rounded-md bg-muted/20",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)(_e,{htmlFor:p,children:"Provider Name"}),(0,s.jsx)(Ie,{id:p,placeholder:"e.g., together, groq, mistral",value:i,onChange:I=>a(I.target.value)}),v&&(0,s.jsx)("p",{className:"text-xs text-destructive",children:"A provider with this name already exists."}),i&&(0,s.jsxs)("p",{className:"text-xs text-muted-secondary",children:["Use models with prefix:"," ",(0,s.jsxs)(ee,{className:"inline text-xs",children:[y,"/"]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsxs)(_e,{htmlFor:x,children:["Base URL ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,s.jsx)(Ie,{id:x,placeholder:"e.g., https://api.together.xyz/v1",value:u,onChange:I=>d(I.target.value)})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)(_e,{htmlFor:g,children:"API Key (optional)"}),(0,s.jsx)(Ie,{id:g,placeholder:"sk-...",type:"password",value:c,onChange:I=>o(I.target.value)})]}),(0,s.jsxs)("div",{className:"flex gap-2 mt-1",children:[(0,s.jsx)(J,{onClick:C,disabled:!w,size:"xs",children:"Add Provider"}),(0,s.jsx)(J,{variant:"outline",onClick:m,size:"xs",children:"Cancel"})]})]}),S=I=>{f.onChange({...k,[I.providerName]:{...k[I.providerName],[I.fieldName]:I.value||void 0}})},P=({providerName:I,providerConfig:T,onRemove:$})=>{let K=Dt.startCase(I),F=!!T.api_key||!!T.base_url;return(0,s.jsxs)(we,{title:K,provider:I,value:`custom-${I}`,isConfigured:F,children:[(0,s.jsx)(Pe,{form:t,config:e,name:`ai.custom_providers.${I}.api_key`,placeholder:"sk-...",testId:`custom-provider-${I}-api-key`,onChange:H=>S({providerName:I,fieldName:"api_key",value:H})}),(0,s.jsx)($e,{form:t,config:e,name:`ai.custom_providers.${I}.base_url`,placeholder:"https://api.example.com/v1",testId:`custom-provider-${I}-base-url`,onChange:H=>S({providerName:I,fieldName:"base_url",value:H})}),(0,s.jsxs)(J,{variant:"destructive",size:"xs",onClick:H=>{H.stopPropagation(),H.preventDefault(),$(I)},className:"w-fit self-end",children:[(0,s.jsx)(Kl,{className:"h-4 w-4 mr-2"}),"Remove Provider"]})]},`custom-${I}`)};return(0,s.jsxs)(rt,{children:[(0,s.jsx)(qe,{children:"Custom Providers"}),(0,s.jsx)("p",{className:"text-sm text-muted-secondary",children:"Add your own OpenAI-compatible provider. Once added, you can configure models in the AI Models tab."}),D.length>0&&(0,s.jsx)($l,{type:"multiple",className:"-mt-4",children:D.map(([I,T])=>P({providerName:I,providerConfig:T,onRemove:M}))}),n?_:(0,s.jsx)(hr,{className:"self-start",isFormOpen:n,setIsFormOpen:r,label:"Add Provider"})]})}})},Wo=t=>{let e=(0,me.c)(116),{form:l,config:n,onSubmit:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=Be(),e[0]=i):i=e[0];let a=i,c;e[1]===l?c=e[2]:(c=Ge=>!!l.getValues(Ge),e[1]=l,e[2]=c);let o=c,u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(ee,{className:"inline",children:"marimo.toml"}),e[3]=u):u=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsxs)("p",{className:"text-sm text-muted-secondary",children:["Add your API keys below or to ",u," ","to set up a provider for the Code Completion and Assistant features; see"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/editor_features/ai_completion/#connecting-to-an-llm",children:"docs"})," ","for more info."]}),e[4]=d):d=e[4];let p=o("ai.open_ai.api_key"),g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsxs)(s.Fragment,{children:["Your OpenAI API key from"," ",(0,s.jsx)(ie,{href:"https://platform.openai.com/account/api-keys",children:"platform.openai.com"}),"."]}),e[5]=g):g=e[5];let x,y;e[6]!==n||e[7]!==l?(x=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.open_ai.api_key",placeholder:"sk-proj...",testId:"ai-openai-api-key-input",description:g}),y=(0,s.jsx)($e,{form:l,config:n,name:"ai.open_ai.base_url",placeholder:"https://api.openai.com/v1",testId:"ai-base-url-input",disabled:a}),e[6]=n,e[7]=l,e[8]=x,e[9]=y):(x=e[8],y=e[9]);let j;e[10]!==p||e[11]!==x||e[12]!==y?(j=(0,s.jsxs)(we,{title:"OpenAI",provider:"openai",triggerClassName:"pt-0",isConfigured:p,children:[x,y]}),e[10]=p,e[11]=x,e[12]=y,e[13]=j):j=e[13];let v=o("ai.anthropic.api_key"),w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsxs)(s.Fragment,{children:["Your Anthropic API key from"," ",(0,s.jsx)(ie,{href:"https://console.anthropic.com/settings/keys",children:"console.anthropic.com"}),"."]}),e[14]=w):w=e[14];let m;e[15]!==n||e[16]!==l?(m=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.anthropic.api_key",placeholder:"sk-ant...",testId:"ai-anthropic-api-key-input",description:w}),e[15]=n,e[16]=l,e[17]=m):m=e[17];let f;e[18]!==v||e[19]!==m?(f=(0,s.jsx)(we,{title:"Anthropic",provider:"anthropic",isConfigured:v,children:m}),e[18]=v,e[19]=m,e[20]=f):f=e[20];let k=o("ai.google.api_key"),D;e[21]===Symbol.for("react.memo_cache_sentinel")?(D=(0,s.jsxs)(s.Fragment,{children:["Your Google AI API key from"," ",(0,s.jsx)(ie,{href:"https://aistudio.google.com/app/apikey",children:"aistudio.google.com"}),"."]}),e[21]=D):D=e[21];let C;e[22]!==n||e[23]!==l?(C=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.google.api_key",placeholder:"AI...",testId:"ai-google-api-key-input",description:D}),e[22]=n,e[23]=l,e[24]=C):C=e[24];let M;e[25]!==k||e[26]!==C?(M=(0,s.jsx)(we,{title:"Google",provider:"google",isConfigured:k,children:C}),e[25]=k,e[26]=C,e[27]=M):M=e[27];let _=o("ai.ollama.base_url"),S;e[28]!==n||e[29]!==l?(S=(0,s.jsx)($e,{form:l,config:n,name:"ai.ollama.base_url",placeholder:"http://localhost:11434/v1",testId:"ollama-base-url-input"}),e[28]=n,e[29]=l,e[30]=S):S=e[30];let P;e[31]!==_||e[32]!==S?(P=(0,s.jsx)(we,{title:"Ollama",provider:"ollama",isConfigured:_,children:S}),e[31]=_,e[32]=S,e[33]=P):P=e[33];let I=o("ai.github.api_key"),T;e[34]===Symbol.for("react.memo_cache_sentinel")?(T=(0,s.jsxs)(s.Fragment,{children:["Your GitHub API token from"," ",(0,s.jsx)(ee,{className:"inline",children:"gh auth token"}),"."]}),e[34]=T):T=e[34];let $,K;e[35]!==n||e[36]!==l?($=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.github.api_key",placeholder:"gho_...",testId:"ai-github-api-key-input",description:T}),K=(0,s.jsx)($e,{form:l,config:n,name:"ai.github.base_url",placeholder:"https://api.githubcopilot.com/",testId:"ai-github-base-url-input"}),e[35]=n,e[36]=l,e[37]=$,e[38]=K):($=e[37],K=e[38]);let F;e[39]!==I||e[40]!==$||e[41]!==K?(F=(0,s.jsxs)(we,{title:"GitHub",provider:"github",isConfigured:I,children:[$,K]}),e[39]=I,e[40]=$,e[41]=K,e[42]=F):F=e[42];let H=o("ai.openrouter.api_key"),N;e[43]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsxs)(s.Fragment,{children:["Your OpenRouter API key from ","",(0,s.jsx)(ie,{href:"https://openrouter.ai/keys",children:"openrouter.ai"}),"."]}),e[43]=N):N=e[43];let A,W;e[44]!==n||e[45]!==l?(A=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.openrouter.api_key",placeholder:"or-...",testId:"ai-openrouter-api-key-input",description:N}),W=(0,s.jsx)($e,{form:l,config:n,name:"ai.openrouter.base_url",placeholder:"https://openrouter.ai/api/v1/",testId:"ai-openrouter-base-url-input"}),e[44]=n,e[45]=l,e[46]=A,e[47]=W):(A=e[46],W=e[47]);let b;e[48]!==H||e[49]!==A||e[50]!==W?(b=(0,s.jsxs)(we,{title:"OpenRouter",provider:"openrouter",isConfigured:H,children:[A,W]}),e[48]=H,e[49]=A,e[50]=W,e[51]=b):b=e[51];let G=o("ai.wandb.api_key"),Q;e[52]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,s.jsxs)(s.Fragment,{children:["Your Weights & Biases API key from"," ",(0,s.jsx)(ie,{href:"https://wandb.ai/authorize",children:"wandb.ai"}),"."]}),e[52]=Q):Q=e[52];let te,ae;e[53]!==n||e[54]!==l?(te=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.wandb.api_key",placeholder:"your-wandb-api-key",testId:"ai-wandb-api-key-input",description:Q}),ae=(0,s.jsx)($e,{form:l,config:n,name:"ai.wandb.base_url",placeholder:"https://api.inference.wandb.ai/v1/",testId:"ai-wandb-base-url-input"}),e[53]=n,e[54]=l,e[55]=te,e[56]=ae):(te=e[55],ae=e[56]);let ce;e[57]!==G||e[58]!==te||e[59]!==ae?(ce=(0,s.jsxs)(we,{title:"Weights & Biases",provider:"wandb",isConfigured:G,children:[te,ae]}),e[57]=G,e[58]=te,e[59]=ae,e[60]=ce):ce=e[60];let re=o("ai.azure.api_key")&&o("ai.azure.base_url"),Y;e[61]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,s.jsxs)(s.Fragment,{children:["Your Azure API key from"," ",(0,s.jsx)(ie,{href:"https://portal.azure.com/",children:"portal.azure.com"}),"."]}),e[61]=Y):Y=e[61];let X,le;e[62]!==n||e[63]!==l?(X=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.azure.api_key",placeholder:"sk-proj...",testId:"ai-azure-api-key-input",description:Y}),le=(0,s.jsx)($e,{form:l,config:n,name:"ai.azure.base_url",placeholder:"https://.openai.azure.com/openai/deployments/?api-version=",testId:"ai-azure-base-url-input"}),e[62]=n,e[63]=l,e[64]=X,e[65]=le):(X=e[64],le=e[65]);let se;e[66]!==re||e[67]!==X||e[68]!==le?(se=(0,s.jsxs)(we,{title:"Azure",provider:"azure",isConfigured:re,children:[X,le]}),e[66]=re,e[67]=X,e[68]=le,e[69]=se):se=e[69];let he=o("ai.bedrock.region_name"),E;e[70]===Symbol.for("react.memo_cache_sentinel")?(E=(0,s.jsxs)("p",{className:"text-sm text-muted-secondary mb-2",children:["To use AWS Bedrock, you need to configure AWS credentials and region. See the"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/editor_features/ai_completion.html#aws-bedrock",children:"documentation"})," ","for more details."]}),e[70]=E):E=e[70];let oe;e[71]===n?oe=e[72]:(oe=Ge=>{let{field:Re}=Ge;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"AWS Region"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"bedrock-region-select",onChange:jr=>Re.onChange(jr.target.value),value:typeof Re.value=="string"?Re.value:"us-east-1",disabled:Re.disabled,className:"inline-flex mr-2",children:Ko.map(ec)})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"ai.bedrock.region_name"})]}),(0,s.jsx)(q,{children:"The AWS region where Bedrock service is available."})]})},e[71]=n,e[72]=oe);let ne;e[73]!==l.control||e[74]!==oe?(ne=(0,s.jsx)(R,{control:l.control,disabled:a,name:"ai.bedrock.region_name",render:oe}),e[73]=l.control,e[74]=oe,e[75]=ne):ne=e[75];let pe;e[76]===n?pe=e[77]:(pe=Ge=>{let{field:Re}=Ge;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"AWS Profile Name (Optional)"}),(0,s.jsx)(V,{children:(0,s.jsx)(Ie,{"data-testid":"bedrock-profile-input",rootClassName:"flex-1",className:"m-0 inline-flex h-7",placeholder:"default",...Re,value:Re.value||""})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"ai.bedrock.profile_name"})]}),(0,s.jsx)(q,{children:"The AWS profile name from your ~/.aws/credentials file. Leave blank to use your default AWS credentials."})]})},e[76]=n,e[77]=pe);let fe;e[78]!==l.control||e[79]!==pe?(fe=(0,s.jsx)(R,{control:l.control,disabled:a,name:"ai.bedrock.profile_name",render:pe}),e[78]=l.control,e[79]=pe,e[80]=fe):fe=e[80];let je;e[81]!==he||e[82]!==ne||e[83]!==fe?(je=(0,s.jsxs)(we,{title:"AWS Bedrock",provider:"bedrock",isConfigured:he,children:[E,ne,fe]}),e[81]=he,e[82]=ne,e[83]=fe,e[84]=je):je=e[84];let Se=o("ai.open_ai_compatible.api_key")&&o("ai.open_ai_compatible.base_url"),Ee;e[85]===Symbol.for("react.memo_cache_sentinel")?(Ee=(0,s.jsx)("p",{className:"text-sm text-amber-600 dark:text-amber-400 mb-2",children:"Consider using Custom Providers instead, which allows you to add multiple providers with distinct names."}),e[85]=Ee):Ee=e[85];let Fe;e[86]===Symbol.for("react.memo_cache_sentinel")?(Fe=(0,s.jsx)(s.Fragment,{children:"API key for any OpenAI-compatible provider (e.g., Together, Groq, Mistral, Perplexity, etc)."}),e[86]=Fe):Fe=e[86];let ge;e[87]!==n||e[88]!==l?(ge=(0,s.jsx)(Pe,{form:l,config:n,name:"ai.open_ai_compatible.api_key",placeholder:"sk-...",testId:"ai-openai-compatible-api-key-input",description:Fe}),e[87]=n,e[88]=l,e[89]=ge):ge=e[89];let ke;e[90]===Symbol.for("react.memo_cache_sentinel")?(ke=(0,s.jsx)(s.Fragment,{children:"Base URL for your OpenAI-compatible provider."}),e[90]=ke):ke=e[90];let xe;e[91]!==n||e[92]!==l?(xe=(0,s.jsx)($e,{form:l,config:n,name:"ai.open_ai_compatible.base_url",placeholder:"https://api.together.xyz/v1",testId:"ai-openai-compatible-base-url-input",description:ke}),e[91]=n,e[92]=l,e[93]=xe):xe=e[93];let Ce;e[94]!==Se||e[95]!==ge||e[96]!==xe?(Ce=(0,s.jsxs)(we,{title:"OpenAI-Compatible (Legacy)",provider:"openai-compatible",isConfigured:Se,children:[Ee,ge,xe]}),e[94]=Se,e[95]=ge,e[96]=xe,e[97]=Ce):Ce=e[97];let de;e[98]!==f||e[99]!==M||e[100]!==P||e[101]!==F||e[102]!==b||e[103]!==ce||e[104]!==se||e[105]!==je||e[106]!==Ce||e[107]!==j?(de=(0,s.jsxs)($l,{type:"multiple",children:[j,f,M,P,F,b,ce,se,je,Ce]}),e[98]=f,e[99]=M,e[100]=P,e[101]=F,e[102]=b,e[103]=ce,e[104]=se,e[105]=je,e[106]=Ce,e[107]=j,e[108]=de):de=e[108];let Le;e[109]!==n||e[110]!==l||e[111]!==r?(Le=(0,s.jsx)(qo,{form:l,config:n,onSubmit:r}),e[109]=n,e[110]=l,e[111]=r,e[112]=Le):Le=e[112];let it;return e[113]!==de||e[114]!==Le?(it=(0,s.jsxs)(rt,{children:[d,de,Le]}),e[113]=de,e[114]=Le,e[115]=it):it=e[115],it},Go=t=>{let e=(0,me.c)(26),{form:l,config:n,onSubmit:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=Be(),e[0]=i):i=e[0];let a=i,c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(qe,{children:"AI Assistant"}),e[1]=c):c=e[1];let o;e[2]===l.control?o=e[3]:(o=(0,s.jsx)(R,{control:l.control,name:"ai.inline_tooltip",render:tc}),e[2]=l.control,e[3]=o);let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(gi,{}),e[4]=u):u=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,s.jsx)("span",{children:"Model to use for chat conversations in the Chat panel."}),e[5]=d):d=e[5];let p;e[6]!==n||e[7]!==l||e[8]!==r?(p=(0,s.jsx)(rl,{label:"Chat Model",form:l,config:n,name:"ai.models.chat_model",placeholder:hl,testId:"ai-chat-model-input",disabled:a,description:d,forRole:"chat",onSubmit:r}),e[6]=n,e[7]=l,e[8]=r,e[9]=p):p=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsxs)("span",{children:["Model to use for code editing with the"," ",(0,s.jsx)(ee,{className:"inline",children:"Generate with AI"})," button."]}),e[10]=g):g=e[10];let x;e[11]!==n||e[12]!==l||e[13]!==r?(x=(0,s.jsx)(rl,{label:"Edit Model",form:l,config:n,name:"ai.models.edit_model",placeholder:hl,testId:"ai-edit-model-input",disabled:a,description:g,forRole:"edit",onSubmit:r}),e[11]=n,e[12]=l,e[13]=r,e[14]=x):x=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.jsxs)("ul",{className:"bg-muted p-2 rounded-md list-disc space-y-1 pl-6",children:[(0,s.jsx)("li",{className:"text-xs text-muted-secondary",children:'Models should include the provider name and model name separated by a slash. For example, "anthropic/claude-3-5-sonnet-latest" or "google/gemini-2.0-flash-exp"'}),(0,s.jsx)("li",{className:"text-xs text-muted-secondary",children:"Depending on the provider, we will use the respective API key and additional configuration."})]}),e[15]=y):y=e[15];let j;e[16]===n?j=e[17]:(j=m=>{let{field:f}=m;return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)(z,{children:[(0,s.jsx)(B,{children:"Custom Rules"}),(0,s.jsx)(V,{children:(0,s.jsx)(fi,{"data-testid":"ai-rules-input",className:"m-0 inline-flex w-full h-32 p-2 text-sm",placeholder:"e.g. Always use type hints; prefer polars over pandas",...f,value:f.value})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"ai.rules"})]}),(0,s.jsx)(q,{children:"Custom rules to include in all AI completion prompts."})]})},e[16]=n,e[17]=j);let v;e[18]!==l.control||e[19]!==j?(v=(0,s.jsx)(R,{control:l.control,name:"ai.rules",render:j}),e[18]=l.control,e[19]=j,e[20]=v):v=e[20];let w;return e[21]!==v||e[22]!==o||e[23]!==p||e[24]!==x?(w=(0,s.jsxs)(rt,{children:[c,o,u,p,x,y,v]}),e[21]=v,e[22]=o,e[23]=p,e[24]=x,e[25]=w):w=e[25],w};var Yo=t=>{let e=(0,me.c)(51),{providerId:l,models:n,enabledModels:r,onToggleModel:i,onToggleProvider:a,onDeleteModel:c}=t,o;if(e[0]!==r||e[1]!==n||e[2]!==l){let T;e[4]!==r||e[5]!==l?(T=$=>r.has(new Qe(l,$.model).id),e[4]=r,e[5]=l,e[6]=T):T=e[6],o=n.filter(T),e[0]=r,e[1]=n,e[2]=l,e[3]=o}else o=e[3];let u=o.length,d=n.length,p;e[7]===l?p=e[8]:(p=yl.getProviderInfo(l),e[7]=l,e[8]=p);let g=p,x;e[9]!==(g==null?void 0:g.name)||e[10]!==l?(x=(g==null?void 0:g.name)||Dt.startCase(l),e[9]=g==null?void 0:g.name,e[10]=l,e[11]=x):x=e[11];let y=x,j=u===0?!1:u===d?!0:"indeterminate",v;e[12]!==u||e[13]!==a||e[14]!==l||e[15]!==d?(v=()=>{a(l,u{let K=new Qe(l,$.model).id;return(0,s.jsx)(Oo,{qualifiedId:K,model:$,isEnabled:r.has(K),onToggle:i,onDelete:c},K)},e[42]=r,e[43]=c,e[44]=i,e[45]=l,e[46]=T):T=e[46],P=n.map(T),e[36]=r,e[37]=n,e[38]=c,e[39]=i,e[40]=l,e[41]=P}else P=e[41];let I;return e[47]!==l||e[48]!==S||e[49]!==P?(I=(0,s.jsxs)(Yn,{id:l,hasChildItems:!0,textValue:l,className:"outline-none data-focused:bg-muted/50 group",children:[S,P]}),e[47]=l,e[48]=S,e[49]=P,e[50]=I):I=e[50],I};const Xo=({form:t,onSubmit:e})=>{let l=Rt({control:t.control,name:"ai.models.custom_models"}),n=Rt({control:t.control,name:"ai.custom_providers"}),r=(0,h.useMemo)(()=>Object.keys(n||{}),[n]),i=(0,h.useMemo)(()=>yl.create({displayedModels:[],customModels:l}),[l]),a=Rt({control:t.control,name:"ai.models.displayed_models",defaultValue:[]}),c=new Set(a),o=i.getGroupedModelsByProvider(),u=i.getListModelsByProvider(),d=ot(x=>{let y=c.has(x)?a.filter(j=>j!==x):[...a,x];t.setValue("ai.models.displayed_models",y,{shouldDirty:!0}),e(t.getValues())}),p=ot(async(x,y)=>{let j=o.get(x)||[],v=new Set(j.map(m=>new Qe(x,m.model).id)),w=y?[...new Set([...a,...v])]:a.filter(m=>!v.has(m));t.setValue("ai.models.displayed_models",w,{shouldDirty:!0}),e(t.getValues())}),g=ot(x=>{let y=l.filter(v=>v!==x),j=a.filter(v=>v!==x);t.setValue("ai.models.displayed_models",j,{shouldDirty:!0}),t.setValue("ai.models.custom_models",y,{shouldDirty:!0}),e(t.getValues())});return(0,s.jsxs)(rt,{className:"gap-2",children:[(0,s.jsx)("p",{className:"text-sm text-muted-secondary",children:"Control which AI models are displayed in model selection dropdowns. When no models are selected, all available models will be shown."}),(0,s.jsx)("div",{className:"bg-background",children:(0,s.jsx)(eo,{"aria-label":"AI Models by Provider",className:"flex-1 overflow-auto outline-none focus-visible:outline-none",selectionMode:"none",children:u.map(([x,y])=>(0,s.jsx)(Yo,{providerId:x,models:y,enabledModels:c,onToggleModel:d,onToggleProvider:p,onDeleteModel:g},x))})}),(0,s.jsx)(Qo,{form:t,customModels:l,customProviderNames:r,onSubmit:e})]})},Qo=t=>{let e=(0,me.c)(77),{form:l,customModels:n,customProviderNames:r,onSubmit:i}=t,[a,c]=(0,h.useState)(!1),[o,u]=(0,h.useState)(!1),[d,p]=(0,h.useState)(null),[g,x]=(0,h.useState)(""),[y,j]=(0,h.useState)(""),v=(0,h.useId)(),w=(0,h.useId)(),m=(0,h.useId)(),f=d==="custom",k=f?g:d,D;e[0]!==y||e[1]!==k?(D=(k==null?void 0:k.trim())&&(y==null?void 0:y.trim()),e[0]=y,e[1]=k,e[2]=D):D=e[2];let C=D,M;e[3]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{p(null),x(""),j(""),c(!1)},e[3]=M):M=e[3];let _=M,S;e[4]!==n||e[5]!==l||e[6]!==C||e[7]!==y||e[8]!==i||e[9]!==k?(S=()=>{if(!C)return;let de=new Qe(k,y);l.setValue("ai.models.custom_models",[de.id,...n],{shouldDirty:!0}),i(l.getValues()),_(),u(!0),setTimeout(()=>u(!1),2e3)},e[4]=n,e[5]=l,e[6]=C,e[7]=y,e[8]=i,e[9]=k,e[10]=S):S=e[10];let P=S,I;e[11]===v?I=e[12]:(I=(0,s.jsx)(_e,{htmlFor:v,className:"text-sm font-medium text-muted-foreground min-w-12",children:"Provider"}),e[11]=v,e[12]=I);let T=d||"",$;e[13]===Symbol.for("react.memo_cache_sentinel")?($=de=>p(de),e[13]=$):$=e[13];let K;e[14]===d?K=e[15]:(K=d?(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(Oe,{provider:d,className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{children:vl(d)})]}):(0,s.jsx)("span",{className:"text-muted-foreground",children:"Select..."}),e[14]=d,e[15]=K);let F;e[16]!==v||e[17]!==K?(F=(0,s.jsx)(Gr,{id:v,className:"w-40 truncate",children:K}),e[16]=v,e[17]=K,e[18]=F):F=e[18];let H;e[19]===r?H=e[20]:(H=r.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"px-2 py-1 text-xs text-muted-secondary font-medium",children:"Custom Providers"}),r.map(lc),(0,s.jsx)("p",{className:"px-2 py-1 text-xs text-muted-secondary font-medium mt-1",children:"Built-in Providers"})]}),e[19]=r,e[20]=H);let N;e[21]===r?N=e[22]:(N=Et.filter(de=>de!=="marimo"&&!r.includes(de)).map(sc),e[21]=r,e[22]=N);let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=(0,s.jsx)("p",{className:"px-2 py-1 text-xs text-muted-secondary font-medium mt-1",children:"Other"}),e[23]=A):A=e[23];let W;e[24]===Symbol.for("react.memo_cache_sentinel")?(W=(0,s.jsx)(Mt,{value:"custom",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(Oe,{provider:"openai-compatible",className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Enter provider name"})]})}),e[24]=W):W=e[24];let b;e[25]!==N||e[26]!==H?(b=(0,s.jsx)(qr,{children:(0,s.jsxs)(Wr,{children:[H,N,A,W]})}),e[25]=N,e[26]=H,e[27]=b):b=e[27];let G;e[28]!==b||e[29]!==T||e[30]!==F?(G=(0,s.jsxs)(Yr,{value:T,onValueChange:$,children:[F,b]}),e[28]=b,e[29]=T,e[30]=F,e[31]=G):G=e[31];let Q;e[32]!==G||e[33]!==I?(Q=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[I,G]}),e[32]=G,e[33]=I,e[34]=Q):Q=e[34];let te;e[35]!==w||e[36]!==g||e[37]!==f?(te=f&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(_e,{htmlFor:w,className:"text-sm font-medium text-muted-foreground min-w-12",children:"Name"}),(0,s.jsx)(Ie,{id:w,value:g,onChange:de=>x(de.target.value),placeholder:"openrouter",className:"w-40 truncate"})]}),e[35]=w,e[36]=g,e[37]=f,e[38]=te):te=e[38];let ae;e[39]!==Q||e[40]!==te?(ae=(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[Q,te]}),e[39]=Q,e[40]=te,e[41]=ae):ae=e[41];let ce=ae,re=f&&"self-start",Y;e[42]===re?Y=e[43]:(Y=ue("flex items-center gap-2",re),e[42]=re,e[43]=Y);let X;e[44]===m?X=e[45]:(X=(0,s.jsx)(_e,{htmlFor:m,className:"text-sm font-medium text-muted-foreground",children:"Model"}),e[44]=m,e[45]=X);let le;e[46]===Symbol.for("react.memo_cache_sentinel")?(le=de=>j(de.target.value),e[46]=le):le=e[46];let se;e[47]!==y||e[48]!==m?(se=(0,s.jsx)(Ie,{id:m,value:y,onChange:le,placeholder:"gpt-4",className:"text-xs mb-0"}),e[47]=y,e[48]=m,e[49]=se):se=e[49];let he;e[50]!==Y||e[51]!==X||e[52]!==se?(he=(0,s.jsxs)("div",{className:Y,children:[X,se]}),e[50]=Y,e[51]=X,e[52]=se,e[53]=he):he=e[53];let E=he,oe=f&&"self-end",ne;e[54]===oe?ne=e[55]:(ne=ue("flex gap-1.5 ml-auto",oe),e[54]=oe,e[55]=ne);let pe=!C,fe;e[56]!==P||e[57]!==pe?(fe=(0,s.jsx)(J,{onClick:P,disabled:pe,size:"xs",children:"Add"}),e[56]=P,e[57]=pe,e[58]=fe):fe=e[58];let je;e[59]===Symbol.for("react.memo_cache_sentinel")?(je=(0,s.jsx)(J,{variant:"outline",onClick:_,size:"xs",children:"Cancel"}),e[59]=je):je=e[59];let Se;e[60]!==ne||e[61]!==fe?(Se=(0,s.jsxs)("div",{className:ne,children:[fe,je]}),e[60]=ne,e[61]=fe,e[62]=Se):Se=e[62];let Ee;e[63]!==E||e[64]!==ce||e[65]!==Se?(Ee=(0,s.jsxs)("div",{className:"flex items-center gap-3 p-3 border border-border rounded-md",children:[ce,E,Se]}),e[63]=E,e[64]=ce,e[65]=Se,e[66]=Ee):Ee=e[66];let Fe=a&&Ee,ge;e[67]===a?ge=e[68]:(ge=(0,s.jsx)(hr,{isFormOpen:a,setIsFormOpen:c,label:"Add Model",className:"pl-2"}),e[67]=a,e[68]=ge);let ke;e[69]===o?ke=e[70]:(ke=o&&(0,s.jsx)("div",{className:"flex items-center gap-1 text-green-700 bg-green-500/10 px-2 py-1 rounded-md ml-auto",children:"\u2713 Model added"}),e[69]=o,e[70]=ke);let xe;e[71]!==ge||e[72]!==ke?(xe=(0,s.jsxs)("div",{className:"flex flex-row text-sm",children:[ge,ke]}),e[71]=ge,e[72]=ke,e[73]=xe):xe=e[73];let Ce;return e[74]!==Fe||e[75]!==xe?(Ce=(0,s.jsxs)("div",{children:[Fe,xe]}),e[74]=Fe,e[75]=xe,e[76]=Ce):Ce=e[76],Ce};var hr=t=>{let e=(0,me.c)(10),{isFormOpen:l,setIsFormOpen:n,label:r,className:i}=t,a;e[0]===n?a=e[1]:(a=d=>{d.stopPropagation(),d.preventDefault(),n(!0)},e[0]=n,e[1]=a);let c;e[2]===i?c=e[3]:(c=ue("px-0",i),e[2]=i,e[3]=c);let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(ti,{className:"h-4 w-4 mr-2 mb-0.5"}),e[4]=o):o=e[4];let u;return e[5]!==l||e[6]!==r||e[7]!==a||e[8]!==c?(u=(0,s.jsxs)(J,{onClick:a,variant:"link",disabled:l,className:c,children:[o,r]}),e[5]=l,e[6]=r,e[7]=a,e[8]=c,e[9]=u):u=e[9],u};const Zo=t=>{let e=(0,me.c)(22),{form:l,config:n,onSubmit:r}=t,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=Be(),e[0]=i):i=e[0];let a=i,c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsxs)(Rl,{className:"mb-2",children:[(0,s.jsx)(tt,{value:"ai-features",children:"AI Features"}),(0,s.jsx)(tt,{value:"ai-providers",children:"AI Providers"}),(0,s.jsx)(tt,{value:"ai-models",children:"AI Models"}),!a&&(0,s.jsx)(tt,{value:"mcp",children:"MCP"})]}),e[1]=c):c=e[1];let o;e[2]!==n||e[3]!==l||e[4]!==r?(o=(0,s.jsxs)(bt,{value:"ai-features",children:[(0,s.jsx)(Uo,{form:l,config:n,onSubmit:r}),(0,s.jsx)(Go,{form:l,config:n,onSubmit:r})]}),e[2]=n,e[3]=l,e[4]=r,e[5]=o):o=e[5];let u;e[6]!==n||e[7]!==l||e[8]!==r?(u=(0,s.jsx)(bt,{value:"ai-providers",children:(0,s.jsx)(Wo,{form:l,config:n,onSubmit:r})}),e[6]=n,e[7]=l,e[8]=r,e[9]=u):u=e[9];let d;e[10]!==n||e[11]!==l||e[12]!==r?(d=(0,s.jsx)(bt,{value:"ai-models",children:(0,s.jsx)(Xo,{form:l,config:n,onSubmit:r})}),e[10]=n,e[11]=l,e[12]=r,e[13]=d):d=e[13];let p;e[14]!==l||e[15]!==r?(p=!a&&(0,s.jsx)(bt,{value:"mcp",children:(0,s.jsx)(Ro,{form:l,onSubmit:r})}),e[14]=l,e[15]=r,e[16]=p):p=e[16];let g;return e[17]!==o||e[18]!==u||e[19]!==d||e[20]!==p?(g=(0,s.jsxs)(Bl,{defaultValue:"ai-features",className:"flex-1",children:[c,o,u,d,p]}),e[17]=o,e[18]=u,e[19]=d,e[20]=p,e[21]=g):g=e[21],g};function Jo(t){return(0,s.jsx)("option",{value:t,children:t},t)}function ec(t){return(0,s.jsx)("option",{value:t,children:t},t)}function tc(t){let{field:e}=t;return(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"AI Edit Tooltip"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"inline-ai-checkbox",checked:e.value===!0,onCheckedChange:e.onChange})})]}),(0,s.jsx)(q,{children:'Enable "Edit with AI" tooltip when selecting code.'})]})}function lc(t){return(0,s.jsx)(Mt,{value:t,children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(Oe,{provider:t,className:"h-4 w-4"}),(0,s.jsx)("span",{children:Dt.startCase(t)})]})},t)}function sc(t){return(0,s.jsx)(Mt,{value:t,children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(Oe,{provider:t,className:"h-4 w-4"}),(0,s.jsx)("span",{children:vl(t)})]})},t)}var nc=ye(),rc=["auto","true","false"];const ic=t=>{let e=(0,nc.c)(47),{form:l,config:n,onSubmit:r}=t,i;e[0]!==n||e[1]!==l.control?(i=(_,S)=>(0,s.jsx)(R,{control:l.control,name:_,render:P=>{let{field:I}=P,T=$=>{let K=$.target.value;I.onChange(K==="true"?!0:K==="false"?!1:K)};return(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"text-sm font-normal w-16",children:S}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"auto-discover-schemas-select",onChange:T,value:I.value===void 0?"auto":I.value.toString(),disabled:I.disabled,className:"w-[100px]",children:rc.map(ac)})}),(0,s.jsx)(O,{userConfig:n,name:_})]})}}),e[0]=n,e[1]=l.control,e[2]=i):i=e[2];let a=i,c;e[3]===n?c=e[4]:(c=_=>{let{field:S}=_;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Dataframe viewer"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"display-dataframes-select",onChange:P=>S.onChange(P.target.value),value:S.value,disabled:S.disabled,className:"inline-flex mr-2",children:["rich","plain"].map(oc)})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"display.dataframes"})]}),(0,s.jsx)(q,{children:"Whether to use marimo's rich dataframe viewer or a plain HTML table. This requires restarting your notebook to take effect."})]})},e[3]=n,e[4]=c);let o;e[5]!==l.control||e[6]!==c?(o=(0,s.jsx)(R,{control:l.control,name:"display.dataframes",render:c}),e[5]=l.control,e[6]=c,e[7]=o):o=e[7];let u;e[8]!==n||e[9]!==l||e[10]!==r?(u=_=>{let{field:S}=_;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Default table page size"}),(0,s.jsx)(V,{children:(0,s.jsx)(Je,{"aria-label":"Default table page size","data-testid":"default-table-page-size-input",className:"m-0 w-24",...S,value:S.value,minValue:1,step:1,onChange:P=>{S.onChange(P),Number.isNaN(P)||r(l.getValues())}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"display.default_table_page_size"})]}),(0,s.jsx)(q,{children:"The default number of rows displayed in dataframes and SQL results."})]})},e[8]=n,e[9]=l,e[10]=r,e[11]=u):u=e[11];let d;e[12]!==l.control||e[13]!==u?(d=(0,s.jsx)(R,{control:l.control,name:"display.default_table_page_size",render:u}),e[12]=l.control,e[13]=u,e[14]=d):d=e[14];let p;e[15]!==n||e[16]!==l||e[17]!==r?(p=_=>{let{field:S}=_;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Default table max columns"}),(0,s.jsx)(V,{children:(0,s.jsx)(Je,{"aria-label":"Default table max columns","data-testid":"default-table-max-columns-input",className:"m-0 w-24",...S,value:S.value,minValue:1,step:1,onChange:P=>{S.onChange(P),Number.isNaN(P)||r(l.getValues())}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"display.default_table_max_columns"})]}),(0,s.jsx)(q,{children:"The default maximum number of columns displayed in dataframes and SQL results."})]})},e[15]=n,e[16]=l,e[17]=r,e[18]=p):p=e[18];let g;e[19]!==l.control||e[20]!==p?(g=(0,s.jsx)(R,{control:l.control,name:"display.default_table_max_columns",render:p}),e[19]=l.control,e[20]=p,e[21]=g):g=e[21];let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)("div",{className:"text-sm text-foreground",children:"Database Schema Discovery"}),e[22]=x):x=e[22];let y,j;e[23]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsx)("br",{}),y=(0,s.jsx)("span",{className:"font-semibold",children:"Can be expensive for large databases."}),e[23]=y,e[24]=j):(y=e[23],j=e[24]);let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsxs)("div",{className:"text-sm text-muted-foreground mb-2",children:["Whether database schemas, tables, and columns are automatically discovered.",j,y," ","Use 'auto' to determine introspection based on the"," ",(0,s.jsx)("a",{className:"text-link hover:underline",rel:"noopener noreferrer",target:"_blank",href:"https://docs.marimo.io/guides/working_with_data/sql/?h=database#database-schema-and-table-auto-discovery",children:"database"}),"."]}),e[25]=v):v=e[25];let w;e[26]===a?w=e[27]:(w=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[x,v,a("datasources.auto_discover_schemas","Schemas"),a("datasources.auto_discover_tables","Tables"),a("datasources.auto_discover_columns","Columns")]}),e[26]=a,e[27]=w);let m;e[28]===n?m=e[29]:(m=_=>{let{field:S}=_;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"SQL Linter"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"sql-linter-checkbox",checked:S.value,onCheckedChange:S.onChange})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"diagnostics.sql_linter"})]}),(0,s.jsx)(q,{children:"Better linting and autocompletions for SQL cells."})]})},e[28]=n,e[29]=m);let f;e[30]!==l.control||e[31]!==m?(f=(0,s.jsx)(R,{control:l.control,name:"diagnostics.sql_linter",render:m}),e[30]=l.control,e[31]=m,e[32]=f):f=e[32];let k;e[33]===n?k=e[34]:(k=_=>{let{field:S}=_;return(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Default SQL output"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"user-config-sql-output-select",onChange:P=>S.onChange(P.target.value),value:S.value,disabled:S.disabled,className:"inline-flex mr-2",children:sr.map(cc)})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:n,name:"runtime.default_sql_output"})]}),(0,s.jsx)(q,{children:'The default SQL output type for new notebooks; overridden by "sql_output" in the application config.'})]})},e[33]=n,e[34]=k);let D;e[35]!==l.control||e[36]!==k?(D=(0,s.jsx)(R,{control:l.control,name:"runtime.default_sql_output",render:k}),e[35]=l.control,e[36]=k,e[37]=D):D=e[37];let C;e[38]!==w||e[39]!==f||e[40]!==D?(C=(0,s.jsxs)(be,{title:"SQL",children:[w,f,D]}),e[38]=w,e[39]=f,e[40]=D,e[41]=C):C=e[41];let M;return e[42]!==C||e[43]!==o||e[44]!==d||e[45]!==g?(M=(0,s.jsxs)(s.Fragment,{children:[o,d,g,C]}),e[42]=C,e[43]=o,e[44]=d,e[45]=g,e[46]=M):M=e[46],M};function ac(t){return(0,s.jsx)("option",{value:t,children:t},t)}function oc(t){return(0,s.jsx)("option",{value:t,children:t},t)}function cc(t){return(0,s.jsx)("option",{value:t.value,children:t.label},t.value)}var dc=ye(),pr=[{id:"sql",packagesRequired:[{name:"duckdb"},{name:"sqlglot"}],additionalPackageInstalls:[{name:"polars[pyarrow]"}],description:"SQL cells"},{id:"charts",packagesRequired:[{name:"altair"}],additionalPackageInstalls:[],description:"Charts in datasource viewer"},{id:"fast-charts",packagesRequired:[{name:"vegafusion"},{name:"vl-convert-python"}],additionalPackageInstalls:[],description:"Fast server-side charts"},{id:"formatting",packagesRequired:[Be()?{name:"black"}:{name:"ruff"}],additionalPackageInstalls:[],description:"Formatting"},{id:"ai",packagesRequired:[{name:"openai"}],additionalPackageInstalls:[],description:"AI features"},{id:"mcp",packagesRequired:[{name:"mcp",minVersion:"1"}],additionalPackageInstalls:[{name:"pydantic",minVersion:"2"}],description:"Connect to MCP servers"},{id:"ipy-export",packagesRequired:[{name:"nbformat"}],additionalPackageInstalls:[],description:"Export as IPYNB"},{id:"testing",packagesRequired:[{name:"pytest"}],additionalPackageInstalls:[],description:"Autorun unit tests"}];Be()||pr.push({id:"lsp",packagesRequired:[{name:"python-lsp-server"},{name:"websockets"}],additionalPackageInstalls:[{name:"python-lsp-ruff"}],description:"Language Server Protocol*"});const uc=()=>{let t=(0,dc.c)(21),[e]=fl(),l=e.package_management.manager,{getPackageList:n}=ct(),r;t[0]===n?r=t[1]:(r=()=>n(),t[0]=n,t[1]=r);let i;t[2]===l?i=t[3]:(i=[l],t[2]=l,t[3]=i);let{data:a,error:c,refetch:o,isPending:u}=zl(r,i);if(u){let f;return t[4]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(jl,{size:"medium",centered:!0}),t[4]=f):f=t[4],f}if(c){let f;return t[5]===c?f=t[6]:(f=(0,s.jsx)(Gi,{error:c}),t[5]=c,t[6]=f),f}let d;if(t[7]!==(a==null?void 0:a.packages)){let f=(a==null?void 0:a.packages)||[];d=new Set(f.map(hc)),t[7]=a==null?void 0:a.packages,t[8]=d}else d=t[8];let p=d,g;t[9]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)(qe,{children:"Optional Features"}),t[9]=g):g=t[9];let x;t[10]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["marimo is lightweight, with few dependencies, to maximize compatibility with your own environments.",(0,s.jsx)("br",{}),"To unlock additional features in the marimo editor, you can install these optional dependencies:"]}),t[10]=x):x=t[10];let y;t[11]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.jsx)(Yi,{children:(0,s.jsxs)(Vl,{children:[(0,s.jsx)(jt,{children:"Dependency"}),(0,s.jsx)(jt,{children:"Feature"}),(0,s.jsx)(jt,{children:"Status"}),(0,s.jsx)(jt,{})]})}),t[11]=y):y=t[11];let j;t[12]!==p||t[13]!==l||t[14]!==o?(j=pr.map(f=>{let k=f.packagesRequired.every(C=>p.has(C.name.split("[")[0])),D=f.packagesRequired.map(pc).join(", ");return(0,s.jsxs)(Vl,{className:"text-sm",children:[(0,s.jsx)(Lt,{children:f.description}),(0,s.jsx)(Lt,{className:"font-mono text-xs",children:D}),(0,s.jsx)(Lt,{children:k?(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(Qr,{className:"h-4 w-4 text-(--grass-10) mr-2"}),(0,s.jsx)("span",{children:"Installed"})]}):(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(Nr,{className:"h-4 w-4 text-(--red-10) mr-2"}),(0,s.jsx)(mc,{packageSpecs:[...f.packagesRequired,...f.additionalPackageInstalls],packageManager:l,onSuccess:o})]})})]},f.id)}),t[12]=p,t[13]=l,t[14]=o,t[15]=j):j=t[15];let v;t[16]===j?v=t[17]:(v=(0,s.jsxs)(Qi,{children:[y,(0,s.jsx)(Xi,{children:j})]}),t[16]=j,t[17]=v);let w;t[18]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)("p",{className:"text-muted-foreground mt-2",children:"*Requires server restart"}),t[18]=w):w=t[18];let m;return t[19]===v?m=t[20]:(m=(0,s.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden gap-2",children:[g,x,v,w]}),t[19]=v,t[20]=m),m};var mc=({packageSpecs:t,packageManager:e,onSuccess:l})=>{let[n,r]=h.useState(!1),{addPackage:i}=ct();return(0,s.jsxs)(J,{size:"xs",variant:"outline",className:ue("text-xs",n&&"opacity-50 cursor-not-allowed"),onClick:async()=>{try{r(!0);let a=await i({package:t.map(c=>c.minVersion?`${c.name}>=${c.minVersion}`:c.name).join(" "),dev:!0});a.success?(l(),De({title:"Package installed",description:(0,s.jsxs)("span",{children:["The packages"," ",(0,s.jsx)(ee,{className:"inline",children:t.map(c=>c.name).join(", ")})," ","have been added to your environment."]})})):De({title:"Failed to install package",description:a.error,variant:"danger"})}finally{r(!1)}},disabled:n,children:[n?(0,s.jsx)(jl,{size:"small",className:"mr-2 h-3 w-3"}):(0,s.jsx)(Kr,{className:"mr-2 h-3 w-3"}),"Install with ",e]})};function hc(t){return t.name}function pc(t){return t.name}function il(t,e){let l={};for(let n of Object.keys(e)){let r=e[n],i=t[n];if(i!==void 0){if(r===!0)l[n]=i;else if(typeof r=="object"&&r){let a=il(i,r);Object.keys(a).length>0&&(l[n]=a)}}}return l}var fr=[{id:"editor",label:"Editor",Icon:Sl,className:"bg-(--blue-4)"},{id:"display",label:"Display",Icon:Ji,className:"bg-(--grass-4)"},{id:"packageManagementAndData",label:"Packages & Data",Icon:Sr,className:"bg-(--red-4)"},{id:"runtime",label:"Runtime",Icon:Ll,className:"bg-(--amber-4)"},{id:"ai",label:"AI",Icon:bl,className:"bg-[linear-gradient(45deg,var(--purple-5),var(--cyan-5))]"},{id:"optionalDeps",label:"Optional Dependencies",Icon:Ol,className:"bg-(--orange-4)"},{id:"labs",label:"Labs",Icon:Zi,className:"bg-(--slate-4)"}];const gr=It(fr[0].id);var fc=100,al="__system__";const gc=()=>{let[t,e]=pl(),l=(0,h.useRef)(null),n=Kt(sl),[r,i]=at(gr),a=Ye(Ir);Ye(yi).mode==="home"&&(a={terminal:!0,pylsp:!0,ty:!0,basedpyright:!0});let c=Ye(Rr),{locale:o}=yt(),{saveUserConfig:u}=ct(),d=mi({resolver:pi(Ar),defaultValues:t}),p=(m,f)=>{let{chatModel:k,editModel:D}=uo(m);return(k||D)&&(f={...f,models:{...f==null?void 0:f.models,...k&&{chat_model:k},...D&&{edit_model:D}}},k&&d.setValue("ai.models.chat_model",k),D&&d.setValue("ai.models.edit_model",D)),f},g=zi(async m=>{let f=il(m,d.formState.dirtyFields);Object.keys(f).length!==0&&(f.ai&&(f.ai=p(m,f.ai)),await u({config:f}).then(()=>{e(k=>({...k,...m}))}))},fc),x=Be(),y=(0,h.useId)(),j=(0,h.useId)(),v=()=>{switch(r){case"editor":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(be,{title:"Autosave",children:[(0,s.jsx)(R,{control:d.control,name:"save.autosave",render:({field:m})=>(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Autosave enabled"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"autosave-checkbox",checked:m.value==="after_delay",disabled:m.disabled,onCheckedChange:f=>{m.onChange(f?"after_delay":"off")}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"save.autosave"})]})}),(0,s.jsx)(R,{control:d.control,name:"save.autosave_delay",render:({field:m})=>(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Autosave delay (seconds)"}),(0,s.jsx)(V,{children:(0,s.jsx)(Je,{"aria-label":"Autosave delay","data-testid":"autosave-delay-input",className:"m-0 w-24",isDisabled:d.getValues("save.autosave")!=="after_delay",...m,value:m.value/1e3,minValue:1,onChange:f=>{m.onChange(f*1e3),Number.isNaN(f)||g(d.getValues())}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"save.autosave_delay"})]})}),(0,s.jsx)(R,{control:d.control,name:"runtime.default_auto_download",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Save cell outputs as"}),(0,s.jsx)(V,{children:(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(Z,{id:y,checked:Array.isArray(m.value)&&m.value.includes("html"),onCheckedChange:()=>{let f=Array.isArray(m.value)?m.value:[];m.onChange(xl(f,"html"))}}),(0,s.jsx)(B,{htmlFor:y,children:"HTML"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(Z,{id:j,checked:Array.isArray(m.value)&&m.value.includes("ipynb"),onCheckedChange:()=>{let f=Array.isArray(m.value)?m.value:[];m.onChange(xl(f,"ipynb"))}}),(0,s.jsx)(B,{htmlFor:j,children:"IPYNB"})]})]})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"runtime.default_auto_download"})]}),(0,s.jsxs)(q,{children:["When enabled, marimo will periodically save notebooks in your selected formats (HTML, IPYNB) to a folder named"," ",(0,s.jsx)(ee,{className:"inline",children:"__marimo__"})," next to your notebook file."]})]})})]}),(0,s.jsxs)(be,{title:"Formatting",children:[(0,s.jsx)(R,{control:d.control,name:"save.format_on_save",render:({field:m})=>(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Format on save"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"format-on-save-checkbox",checked:m.value,disabled:m.disabled,onCheckedChange:f=>{m.onChange(f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"save.format_on_save"})]})}),(0,s.jsx)(R,{control:d.control,name:"formatting.line_length",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Line length"}),(0,s.jsx)(V,{children:(0,s.jsx)(Je,{"aria-label":"Line length","data-testid":"line-length-input",className:"m-0 w-24",...m,value:m.value,minValue:1,maxValue:1e3,onChange:f=>{m.onChange(f),Number.isNaN(f)||g(d.getValues())}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"formatting.line_length"})]}),(0,s.jsx)(q,{children:"Maximum line length when formatting code."})]})})]}),(0,s.jsxs)(be,{title:"Autocomplete",children:[(0,s.jsx)(R,{control:d.control,name:"completion.activate_on_typing",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Autocomplete"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"autocomplete-checkbox",checked:m.value,disabled:m.disabled,onCheckedChange:f=>{m.onChange(!!f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"completion.activate_on_typing"})]}),(0,s.jsx)(q,{children:"When unchecked, code completion is still available through a hotkey."}),(0,s.jsx)("div",{children:(0,s.jsx)(J,{variant:"link",className:"mb-0 px-0",type:"button",onClick:f=>{f.preventDefault(),f.stopPropagation(),i("ai")},children:"Edit AI autocomplete"})})]})}),(0,s.jsx)(R,{control:d.control,name:"completion.signature_hint_on_typing",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Signature hints"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"signature-hint-on-type-checkbox",checked:m.value??!1,disabled:m.disabled,onCheckedChange:f=>{m.onChange(!!f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"completion.signature_hint_on_typing"})]}),(0,s.jsx)(q,{children:"Display signature hints while typing within function calls."})]})})]}),(0,s.jsxs)(be,{title:"Language Servers",children:[(0,s.jsxs)(q,{children:["See the"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/editor_features/language_server/",children:"docs"})," ","for more information about language server support."]}),(0,s.jsxs)(q,{children:[(0,s.jsx)("strong",{children:"Note:"})," When using multiple language servers, different features may conflict."]}),(0,s.jsx)(R,{control:d.control,name:"language_servers.pylsp.enabled",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsxs)(B,{children:[(0,s.jsx)(pt,{variant:"defaultOutline",className:"mr-2",children:"Beta"}),"Python Language Server (",(0,s.jsx)(ie,{href:"https://github.com/python-lsp/python-lsp-server",children:"docs"}),")"]}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"pylsp-checkbox",checked:m.value,disabled:m.disabled,onCheckedChange:f=>{m.onChange(!!f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"language_servers.pylsp.enabled"})]}),m.value&&!a.pylsp&&(0,s.jsxs)(vt,{kind:"danger",children:["The Python Language Server is not available in your current environment. Please install"," ",(0,s.jsx)(ee,{className:"inline",children:"python-lsp-server"})," in your environment."]})]})}),(0,s.jsx)(R,{control:d.control,name:"language_servers.basedpyright.enabled",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsxs)(B,{children:[(0,s.jsx)(pt,{variant:"defaultOutline",className:"mr-2",children:"Beta"}),"basedpyright (",(0,s.jsx)(ie,{href:"https://github.com/DetachHead/basedpyright",children:"docs"}),")"]}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"basedpyright-checkbox",checked:m.value,disabled:m.disabled,onCheckedChange:f=>{m.onChange(!!f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"language_servers.basedpyright.enabled"})]}),m.value&&!a.basedpyright&&(0,s.jsxs)(vt,{kind:"danger",children:["basedpyright is not available in your current environment. Please install"," ",(0,s.jsx)(ee,{className:"inline",children:"basedpyright"})," in your environment."]})]})}),(0,s.jsx)(R,{control:d.control,name:"language_servers.ty.enabled",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsxs)(B,{children:[(0,s.jsx)(pt,{variant:"defaultOutline",className:"mr-2",children:"Beta"}),"ty (",(0,s.jsx)(ie,{href:"https://github.com/astral-sh/ty",children:"docs"}),")"]}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"ty-checkbox",checked:m.value,disabled:m.disabled,onCheckedChange:f=>{m.onChange(!!f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"language_servers.ty.enabled"})]}),m.value&&!a.ty&&(0,s.jsxs)(vt,{kind:"danger",children:["ty is not available in your current environment. Please install ",(0,s.jsx)(ee,{className:"inline",children:"ty"})," in your environment."]})]})}),(0,s.jsx)(R,{control:d.control,name:"diagnostics.enabled",render:({field:m})=>(0,s.jsxs)(z,{className:L,children:[(0,s.jsxs)(B,{children:[(0,s.jsx)(pt,{variant:"defaultOutline",className:"mr-2",children:"Beta"}),"Diagnostics"]}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"diagnostics-checkbox",checked:m.value,disabled:m.disabled,onCheckedChange:f=>{m.onChange(!!f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"diagnostics.enabled"})]})})]}),(0,s.jsxs)(be,{title:"Keymap",children:[(0,s.jsx)(R,{control:d.control,name:"keymap.preset",render:({field:m})=>(0,s.jsx)("div",{className:"flex flex-col space-y-1",children:(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Keymap"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"keymap-select",onChange:f=>m.onChange(f.target.value),value:m.value,disabled:m.disabled,className:"inline-flex mr-2",children:Pr.map(f=>(0,s.jsx)("option",{value:f,children:f},f))})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"keymap.preset"})]})})}),(0,s.jsx)(R,{control:d.control,name:"keymap.destructive_delete",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Destructive delete"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"destructive-delete-checkbox",checked:m.value,disabled:m.disabled,onCheckedChange:f=>{m.onChange(!!f)}})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"keymap.destructive_delete"})]}),(0,s.jsxs)(q,{className:"flex items-center gap-1",children:["Allow deleting non-empty cells",(0,s.jsx)(He,{content:(0,s.jsxs)("div",{className:"max-w-xs",children:[(0,s.jsx)("strong",{children:"Use with caution:"})," Deleting cells with code can lose work and computed results since variables are removed from memory."]}),children:(0,s.jsx)(Bt,{className:"w-3 h-3 text-(--amber-11)"})})]}),(0,s.jsx)("div",{children:(0,s.jsx)(J,{variant:"link",className:"mb-0 px-0",type:"button",onClick:f=>{f.preventDefault(),f.stopPropagation(),n(!0)},children:"Edit Keyboard Shortcuts"})})]})})]})]});case"display":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(be,{title:"Display",children:[(0,s.jsx)(R,{control:d.control,name:"display.default_width",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Default width"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"user-config-width-select",onChange:f=>m.onChange(f.target.value),value:m.value,disabled:m.disabled,className:"inline-flex mr-2",children:Qn().map(f=>(0,s.jsx)("option",{value:f,children:f},f))})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"display.default_width"})]}),(0,s.jsx)(q,{children:'The default app width for new notebooks; overridden by "width" in the application config.'})]})}),(0,s.jsx)(R,{control:d.control,name:"display.theme",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Theme"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"theme-select",onChange:f=>m.onChange(f.target.value),value:m.value,disabled:m.disabled,className:"inline-flex mr-2",children:xi.map(f=>(0,s.jsx)("option",{value:f,children:f},f))})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"display.theme"})]}),(0,s.jsx)(q,{children:"This theme will be applied to the user's configuration; it does not affect theme when sharing the notebook."})]})}),(0,s.jsx)(R,{control:d.control,name:"display.code_editor_font_size",render:({field:m})=>(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Code editor font size (px)"}),(0,s.jsx)(V,{children:(0,s.jsx)("span",{className:"inline-flex mr-2",children:(0,s.jsx)(Je,{"aria-label":"Code editor font size","data-testid":"code-editor-font-size-input",className:"m-0 w-24",...m,value:m.value,minValue:8,maxValue:32,onChange:f=>{m.onChange(f),g(d.getValues())}})})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"display.code_editor_font_size"})]})}),(0,s.jsx)(R,{control:d.control,name:"display.locale",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Locale"}),(0,s.jsx)(V,{children:(0,s.jsxs)(ve,{"data-testid":"locale-select",onChange:f=>{f.target.value===al?m.onChange(void 0):m.onChange(f.target.value)},value:m.value||al,disabled:m.disabled,className:"inline-flex mr-2",children:[(0,s.jsx)("option",{value:al,children:"System"}),navigator.languages.map(f=>(0,s.jsx)("option",{value:f,children:f},f))]})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"display.locale"})]}),(0,s.jsxs)(q,{children:["The locale to use for the notebook. If your desired locale is not listed, you can change it manually via"," ",(0,s.jsx)(ee,{className:"inline",children:"marimo config show"}),"."]})]})}),(0,s.jsx)(R,{control:d.control,name:"display.reference_highlighting",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Reference highlighting"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"reference-highlighting-checkbox",checked:m.value,onCheckedChange:m.onChange})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"display.reference_highlighting"})]}),(0,s.jsx)(q,{children:"Visually emphasizes variables in a cell that are defined elsewhere in the notebook."})]})})]}),(0,s.jsx)(be,{title:"Outputs",children:(0,s.jsx)(R,{control:d.control,name:"display.cell_output",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Cell output area"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"cell-output-select",onChange:f=>m.onChange(f.target.value),value:m.value,disabled:m.disabled,className:"inline-flex mr-2",children:["above","below"].map(f=>(0,s.jsx)("option",{value:f,children:f},f))})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"display.cell_output"})]}),(0,s.jsx)(q,{children:"Where to display cell's output."})]})})})]});case"packageManagementAndData":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(be,{title:"Package Management",children:(0,s.jsx)(R,{control:d.control,disabled:x,name:"package_management.manager",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{children:"Manager"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"package-manager-select",onChange:f=>m.onChange(f.target.value),value:m.value,disabled:m.disabled,className:"inline-flex mr-2",children:Mr.map(f=>(0,s.jsx)("option",{value:f,children:f},f))})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"package_management.manager"})]}),(0,s.jsxs)(q,{children:["When marimo comes across a module that is not installed, you will be prompted to install it using your preferred package manager. Learn more in the"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/editor_features/package_management.html",children:"docs"}),".",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Running marimo in a"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/package_management/inlining_dependencies.html",children:"sandboxed environment"})," ","is only supported by ",(0,s.jsx)(ee,{className:"inline",children:"uv"})]})]})})}),(0,s.jsx)(be,{title:"Data",children:(0,s.jsx)(ic,{form:d,config:t,onSubmit:g})})]});case"runtime":return(0,s.jsxs)(be,{title:"Runtime configuration",children:[(0,s.jsx)(R,{control:d.control,name:"runtime.auto_instantiate",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Autorun on startup"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"auto-instantiate-checkbox",disabled:m.disabled,checked:m.value,onCheckedChange:m.onChange})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"runtime.auto_instantiate"})]}),(0,s.jsx)(q,{children:"Whether to automatically run all cells on startup."})]})}),(0,s.jsx)(R,{control:d.control,name:"runtime.on_cell_change",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"On cell change"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"on-cell-change-select",onChange:f=>m.onChange(f.target.value),value:m.value,className:"inline-flex mr-2",children:["lazy","autorun"].map(f=>(0,s.jsx)("option",{value:f,children:f},f))})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"runtime.on_cell_change"})]}),(0,s.jsx)(q,{children:`Whether marimo should automatically run cells or just mark them as stale. If "autorun", marimo will automatically run affected cells when a cell is run or a UI element is interacted with; if "lazy", marimo will mark affected cells as stale but won't re-run them.`})]})}),(0,s.jsx)(R,{control:d.control,name:"runtime.auto_reload",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"On module change"}),(0,s.jsx)(V,{children:(0,s.jsx)(ve,{"data-testid":"auto-reload-select",onChange:f=>m.onChange(f.target.value),value:m.value,disabled:x,className:"inline-flex mr-2",children:["off","lazy","autorun"].map(f=>(0,s.jsx)("option",{value:f,children:f},f))})}),(0,s.jsx)(U,{}),(0,s.jsx)(O,{userConfig:t,name:"runtime.auto_reload"})]}),(0,s.jsx)(q,{children:'Whether marimo should automatically reload modules before executing cells. If "lazy", marimo will mark cells affected by module modifications as stale; if "autorun", affected cells will be automatically re-run.'})]})}),(0,s.jsx)(R,{control:d.control,name:"runtime.reactive_tests",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Autorun Unit Tests"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"reactive-test-checkbox",checked:m.value,onCheckedChange:m.onChange})})]}),(0,s.jsx)(O,{userConfig:t,name:"runtime.reactive_tests"}),(0,s.jsx)(U,{}),(0,s.jsx)(q,{children:"Enable reactive pytest tests in notebook. When a cell contains only test functions (test_*) and classes (Test_*), marimo will automatically run them with pytest (requires notebook restart)."})," "]})}),(0,s.jsxs)(q,{children:["Learn more in the"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/reactivity/#configuring-how-marimo-runs-cells",children:"docs"}),"."]})]});case"ai":return(0,s.jsx)(Zo,{form:d,config:t,onSubmit:g});case"optionalDeps":return(0,s.jsx)(uc,{});case"labs":return(0,s.jsxs)(be,{title:"Experimental Features",children:[(0,s.jsx)("p",{className:"text-sm text-muted-secondary mb-4",children:"\u26A0\uFE0F These features are experimental and may require restarting your notebook to take effect."}),(0,s.jsx)(R,{control:d.control,name:"experimental.rtc_v2",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Real-Time Collaboration"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"rtc-checkbox",checked:m.value===!0,onCheckedChange:m.onChange})})]}),(0,s.jsx)(q,{children:"Enable experimental real-time collaboration. This change requires a page refresh to take effect."})]})}),(0,s.jsx)(R,{control:d.control,name:"experimental.performant_table_charts",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Performant Table Charts"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"performant-table-charts-checkbox",checked:m.value===!0,onCheckedChange:m.onChange})})]}),(0,s.jsx)(O,{userConfig:t,name:"experimental.performant_table_charts"}),(0,s.jsx)(q,{children:"Enable experimental table charts which are computed on the backend."})]})}),(0,s.jsx)(R,{control:d.control,name:"experimental.external_agents",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"External Agents"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"external-agents-checkbox",checked:m.value===!0,onCheckedChange:m.onChange})})]}),(0,s.jsx)(O,{userConfig:t,name:"experimental.external_agents"}),(0,s.jsxs)(q,{children:["Enable experimental external agents such as Claude Code and Gemini CLI. Learn more in the"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/editor_features/agents/",children:"docs"}),"."]})]})}),(0,s.jsx)(R,{control:d.control,name:"experimental.chat_modes",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Chat Mode"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"chat-mode-checkbox",checked:m.value===!0,onCheckedChange:m.onChange})})]}),(0,s.jsx)(O,{userConfig:t,name:"experimental.chat_modes"}),(0,s.jsx)(q,{children:"Switch between different modes in the Chat sidebar, to enable tool use."})]})}),(0,s.jsx)(R,{control:d.control,name:"experimental.server_side_pdf_export",render:({field:m})=>(0,s.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,s.jsxs)(z,{className:L,children:[(0,s.jsx)(B,{className:"font-normal",children:"Better PDF Export"}),(0,s.jsx)(V,{children:(0,s.jsx)(Z,{"data-testid":"server-side-pdf-export-checkbox",checked:m.value===!0,onCheckedChange:m.onChange})})]}),(0,s.jsx)(O,{userConfig:t,name:"experimental.server_side_pdf_export"}),(0,s.jsxs)(q,{children:["Enable PDF export using"," ",(0,s.jsx)(ee,{className:"inline",children:"nbconvert"})," and"," ",(0,s.jsx)(ee,{className:"inline",children:"playwright"}),". Refer to"," ",(0,s.jsx)(ie,{href:"https://docs.marimo.io/guides/exporting/#exporting-to-pdf-slides-or-rst",children:"the docs"}),"."]})]})})]})}},w=(0,s.jsxs)("p",{className:"text-muted-secondary",children:["User configuration is stored in ",(0,s.jsx)(ee,{className:"inline",children:"marimo.toml"}),(0,s.jsx)("br",{}),"Run ",(0,s.jsx)(ee,{className:"inline",children:"marimo config show"})," in your terminal to show your current configuration and file location."]});return(0,s.jsx)(hi,{...d,children:(0,s.jsxs)("form",{ref:l,onChange:d.handleSubmit(g),className:"flex text-pretty overflow-hidden",children:[(0,s.jsx)(Bl,{value:r,onValueChange:m=>i(m),orientation:"vertical",className:"w-1/3 border-r h-full overflow-auto p-3",children:(0,s.jsxs)(Rl,{className:"self-start max-h-none flex flex-col gap-2 shrink-0 bg-background flex-1 min-h-full",children:[fr.map(m=>(0,s.jsx)(tt,{value:m.id,className:"w-full text-left p-2 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground justify-start",children:(0,s.jsxs)("div",{className:"flex gap-4 items-center text-lg overflow-hidden",children:[(0,s.jsx)("span",{className:ue(m.className,"w-8 h-8 rounded flex items-center justify-center text-muted-foreground shrink-0"),children:(0,s.jsx)(m.Icon,{className:"w-4 h-4"})}),(0,s.jsx)("span",{className:"truncate",children:m.label})]})},m.id)),(0,s.jsxs)("div",{className:"p-2 text-xs text-muted-foreground self-start flex flex-col gap-1",children:[(0,s.jsxs)("span",{children:["Version: ",c]}),(0,s.jsxs)("span",{children:["Locale: ",o]})]}),(0,s.jsx)("div",{className:"flex-1"}),!Be()&&w]})}),(0,s.jsx)("div",{className:"w-2/3 pl-6 gap-2 flex flex-col overflow-auto p-6",children:v()})]})})};var xc=ye();const xr=It(!1);function yr(){let t=(0,xc.c)(3),e=Kt(gr),l=Kt(xr),n;return t[0]!==e||t[1]!==l?(n={handleClick:r=>{e(r),l(!0)}},t[0]=e,t[1]=l,t[2]=n):n=t[2],n}export{Ut as A,ps as C,ss as D,is as E,ql as M,Ul as N,ls as O,Ll as P,ds as S,Ve as T,Bn as _,Mo as a,Ea as b,So as c,sl as d,Qn as f,tl as g,Vn as h,il as i,Xl as j,es as k,wo as l,st as m,yr as n,Do as o,zn as p,gc as r,sr as s,xr as t,vo as u,$n as v,Gt as w,Zt as x,Ct as y}; diff --git a/docs/assets/state-D4d80DfQ.js b/docs/assets/state-D4d80DfQ.js new file mode 100644 index 0000000..787a303 --- /dev/null +++ b/docs/assets/state-D4d80DfQ.js @@ -0,0 +1 @@ +import{u as o}from"./useEvent-DlWF5OMa.js";import{t}from"./createReducer-DDa-hVe3.js";import{t as a}from"./uuid-ClFZlR7U.js";function d(){return{pendingCommands:[],isReady:!1}}var{reducer:f,createActions:g,valueAtom:r,useActions:i}=t(d,{addCommand:(n,m)=>{let e={id:a(),text:m,timestamp:Date.now()};return{...n,pendingCommands:[...n.pendingCommands,e]}},removeCommand:(n,m)=>({...n,pendingCommands:n.pendingCommands.filter(e=>e.id!==m)}),setReady:(n,m)=>({...n,isReady:m}),clearCommands:n=>({...n,pendingCommands:[]})});const s=()=>o(r);function p(){return i()}export{s as n,p as t}; diff --git a/docs/assets/stateDiagram-FKZM4ZOC-D40U7ncF.js b/docs/assets/stateDiagram-FKZM4ZOC-D40U7ncF.js new file mode 100644 index 0000000..7e6ee2f --- /dev/null +++ b/docs/assets/stateDiagram-FKZM4ZOC-D40U7ncF.js @@ -0,0 +1 @@ +import{t as A}from"./graphlib-Dtxn1kuc.js";import{t as G}from"./dagre-B0xEvXH8.js";import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import{u as H}from"./src-Bp_72rVO.js";import{_ as O}from"./step-D7xg1Moj.js";import{t as P}from"./line-x4bpd_8D.js";import{g as R}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as m,r as B}from"./src-faGJHwXX.js";import{E as U,b as t,c as C,s as v}from"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import"./chunk-N4CR4FBY-DtYoI569.js";import"./chunk-55IACEB6-DvJ_-Ku-.js";import"./chunk-QN33PNHL-C0IBWhei.js";import{i as I,n as W,t as M}from"./chunk-DI55MBZ5-DpQLXMld.js";var F=m(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),J=m(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),_=m((e,i)=>{let o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),s=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",s.width+2*t().state.padding).attr("height",s.height+2*t().state.padding).attr("rx",t().state.radius),o},"drawSimpleState"),j=m((e,i)=>{let o=m(function(g,f,S){let b=g.append("tspan").attr("x",2*t().state.padding).text(f);S||b.attr("dy",t().state.textHeight)},"addTspan"),s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),d=s.height,x=e.append("text").attr("x",t().state.padding).attr("y",d+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),c=!0,a=!0;i.descriptions.forEach(function(g){c||(o(x,g,a),a=!1),c=!1});let n=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+d+t().state.dividerMargin/2).attr("y2",t().state.padding+d+t().state.dividerMargin/2).attr("class","descr-divider"),h=x.node().getBBox(),p=Math.max(h.width,s.width);return n.attr("x2",p+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",p+2*t().state.padding).attr("height",h.height+d+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Y=m((e,i,o)=>{let s=t().state.padding,d=2*t().state.padding,x=e.node().getBBox(),c=x.width,a=x.x,n=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),h=n.node().getBBox().width+d,p=Math.max(h,c);p===c&&(p+=d);let g,f=e.node().getBBox();i.doc,g=a-s,h>c&&(g=(c-p)/2+s),Math.abs(a-f.x)c&&(g=a-(h-c)/2);let S=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",g).attr("y",S).attr("class",o?"alt-composit":"composit").attr("width",p).attr("height",f.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),n.attr("x",g+s),h<=c&&n.attr("x",a+(p-d)/2-h/2+s),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",p).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",g).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",p).attr("height",f.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),$=m(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),X=m((e,i)=>{let o=t().state.forkWidth,s=t().state.forkHeight;if(i.parentId){let d=o;o=s,s=d}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",s).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),q=m((e,i,o,s)=>{let d=0,x=s.append("text");x.style("text-anchor","start"),x.attr("class","noteText");let c=e.replace(/\r\n/g,"
");c=c.replace(/\n/g,"
");let a=c.split(v.lineBreakRegex),n=1.25*t().state.noteMargin;for(let h of a){let p=h.trim();if(p.length>0){let g=x.append("tspan");if(g.text(p),n===0){let f=g.node().getBBox();n+=f.height}d+=n,g.attr("x",i+t().state.noteMargin),g.attr("y",o+d+1.25*t().state.noteMargin)}}return{textWidth:x.node().getBBox().width,textHeight:d}},"_drawLongText"),Z=m((e,i)=>{i.attr("class","state-note");let o=i.append("rect").attr("x",0).attr("y",t().state.padding),{textWidth:s,textHeight:d}=q(e,0,0,i.append("g"));return o.attr("height",d+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},"drawNote"),T=m(function(e,i){let o=i.id,s={id:o,label:i.id,width:0,height:0},d=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&F(d),i.type==="end"&&$(d),(i.type==="fork"||i.type==="join")&&X(d,i),i.type==="note"&&Z(i.note.text,d),i.type==="divider"&&J(d),i.type==="default"&&i.descriptions.length===0&&_(d,i),i.type==="default"&&i.descriptions.length>0&&j(d,i);let x=d.node().getBBox();return s.width=x.width+2*t().state.padding,s.height=x.height+2*t().state.padding,s},"drawState"),D=0,K=m(function(e,i,o){let s=m(function(n){switch(n){case M.relationType.AGGREGATION:return"aggregation";case M.relationType.EXTENSION:return"extension";case M.relationType.COMPOSITION:return"composition";case M.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(n=>!Number.isNaN(n.y));let d=i.points,x=P().x(function(n){return n.x}).y(function(n){return n.y}).curve(O),c=e.append("path").attr("d",x(d)).attr("id","edge"+D).attr("class","transition"),a="";if(t().state.arrowMarkerAbsolute&&(a=U(!0)),c.attr("marker-end","url("+a+"#"+s(M.relationType.DEPENDENCY)+"End)"),o.title!==void 0){let n=e.append("g").attr("class","stateLabel"),{x:h,y:p}=R.calcLabelPosition(i.points),g=v.getRows(o.title),f=0,S=[],b=0,N=0;for(let u=0;u<=g.length;u++){let l=n.append("text").attr("text-anchor","middle").text(g[u]).attr("x",h).attr("y",p+f),y=l.node().getBBox();b=Math.max(b,y.width),N=Math.min(N,y.x),B.info(y.x,h,p+f),f===0&&(f=l.node().getBBox().height,B.info("Title height",f,p)),S.push(l)}let k=f*g.length;if(g.length>1){let u=(g.length-1)*f*.5;S.forEach((l,y)=>l.attr("y",p+y*f-u)),k=f*g.length}let r=n.node().getBBox();n.insert("rect",":first-child").attr("class","box").attr("x",h-b/2-t().state.padding/2).attr("y",p-k/2-t().state.padding/2-3.5).attr("width",b+t().state.padding).attr("height",k+t().state.padding),B.info(r)}D++},"drawEdge"),w,z={},Q=m(function(){},"setConf"),V=m(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),tt=m(function(e,i,o,s){w=t().state;let d=t().securityLevel,x;d==="sandbox"&&(x=H("#i"+i));let c=H(d==="sandbox"?x.nodes()[0].contentDocument.body:"body"),a=d==="sandbox"?x.nodes()[0].contentDocument:document;B.debug("Rendering diagram "+e);let n=c.select(`[id='${i}']`);V(n),L(s.db.getRootDoc(),n,void 0,!1,c,a,s);let h=w.padding,p=n.node().getBBox(),g=p.width+h*2,f=p.height+h*2;C(n,f,g*1.75,w.useMaxWidth),n.attr("viewBox",`${p.x-w.padding} ${p.y-w.padding} `+g+" "+f)},"draw"),et=m(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),L=m((e,i,o,s,d,x,c)=>{let a=new A({compound:!0,multigraph:!0}),n,h=!0;for(n=0;n{let l=u.parentElement,y=0,E=0;l&&(l.parentElement&&(y=l.parentElement.getBBox().width),E=parseInt(l.getAttribute("data-x-shift"),10),Number.isNaN(E)&&(E=0)),u.setAttribute("x1",0-E+8),u.setAttribute("x2",y-E-8)})):B.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let N=b.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(B.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),K(i,a.edge(r),a.edge(r).relation))}),N=b.getBBox();let k={id:o||"root",label:o||"root",width:0,height:0};return k.width=N.width+2*w.padding,k.height=N.height+2*w.padding,B.debug("Doc rendered",k,a),k},"renderDoc"),at={parser:W,get db(){return new M(1)},renderer:{setConf:Q,draw:tt},styles:I,init:m(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{at as diagram}; diff --git a/docs/assets/stateDiagram-v2-4FDKWEC3-HEpD8xZX.js b/docs/assets/stateDiagram-v2-4FDKWEC3-HEpD8xZX.js new file mode 100644 index 0000000..38cb7e4 --- /dev/null +++ b/docs/assets/stateDiagram-v2-4FDKWEC3-HEpD8xZX.js @@ -0,0 +1 @@ +import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as t}from"./src-faGJHwXX.js";import"./chunk-ABZYJK2D-DAD3GlgM.js";import"./chunk-HN2XXSSU-xW6J7MXn.js";import"./chunk-CVBHYZKI-B6tT645I.js";import"./chunk-ATLVNIR6-DsKp3Ify.js";import"./dist-BA8xhrl2.js";import"./chunk-JA3XYJ7Z-BlmyoDCa.js";import"./chunk-JZLCHNYA-DBaJpCky.js";import"./chunk-QXUST7PY-CIxWhn5L.js";import"./chunk-N4CR4FBY-DtYoI569.js";import"./chunk-55IACEB6-DvJ_-Ku-.js";import"./chunk-QN33PNHL-C0IBWhei.js";import{i,n as o,r as m,t as p}from"./chunk-DI55MBZ5-DpQLXMld.js";var a={parser:o,get db(){return new p(2)},renderer:m,styles:i,init:t(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{a as diagram}; diff --git a/docs/assets/step-D7xg1Moj.js b/docs/assets/step-D7xg1Moj.js new file mode 100644 index 0000000..7ebe471 --- /dev/null +++ b/docs/assets/step-D7xg1Moj.js @@ -0,0 +1 @@ +import"./math-B-ZqhQTL.js";function d(t){this._context=t}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function D(t){return new d(t)}function e(){}function r(t,i,s){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+i)/6,(t._y0+4*t._y1+s)/6)}function l(t){this._context=t}l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function F(t){return new l(t)}function w(t){this._context=t}w.prototype={areaStart:e,areaEnd:e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:r(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function H(t){return new w(t)}function E(t){this._context=t}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var s=(this._x0+4*this._x1+t)/6,_=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(s,_):this._context.moveTo(s,_);break;case 3:this._point=4;default:r(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function I(t){return new E(t)}function S(t,i){this._basis=new l(t),this._beta=i}S.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,s=t.length-1;if(s>0)for(var _=t[0],h=i[0],n=t[s]-_,o=i[s]-h,a=-1,c;++a<=s;)c=a/s,this._basis.point(this._beta*t[a]+(1-this._beta)*(_+c*n),this._beta*i[a]+(1-this._beta)*(h+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};var L=(function t(i){function s(_){return i===1?new l(_):new S(_,i)}return s.beta=function(_){return t(+_)},s})(.85);function x(t,i,s){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-s),t._x2,t._y2)}function p(t,i){this._context=t,this._k=(1-i)/6}p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:x(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:x(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var R=(function t(i){function s(_){return new p(_,i)}return s.tension=function(_){return t(+_)},s})(0);function f(t,i){this._context=t,this._k=(1-i)/6}f.prototype={areaStart:e,areaEnd:e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:x(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var U=(function t(i){function s(_){return new f(_,i)}return s.tension=function(_){return t(+_)},s})(0);function b(t,i){this._context=t,this._k=(1-i)/6}b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:x(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var V=(function t(i){function s(_){return new b(_,i)}return s.tension=function(_){return t(+_)},s})(0);function k(t,i,s){var _=t._x1,h=t._y1,n=t._x2,o=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);_=(_*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,h=(h*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var v=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,N=3*t._l23_a*(t._l23_a+t._l12_a);n=(n*v+t._x1*t._l23_2a-i*t._l12_2a)/N,o=(o*v+t._y1*t._l23_2a-s*t._l12_2a)/N}t._context.bezierCurveTo(_,h,n,o,t._x2,t._y2)}function m(t,i){this._context=t,this._alpha=i}m.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var s=this._x2-t,_=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=(s*s+_*_)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:k(this,t,i);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var W=(function t(i){function s(_){return i?new m(_,i):new p(_,0)}return s.alpha=function(_){return t(+_)},s})(.5);function P(t,i){this._context=t,this._alpha=i}P.prototype={areaStart:e,areaEnd:e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,i){if(t=+t,i=+i,this._point){var s=this._x2-t,_=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=(s*s+_*_)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:k(this,t,i);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var G=(function t(i){function s(_){return i?new P(_,i):new f(_,0)}return s.alpha=function(_){return t(+_)},s})(.5);function z(t,i){this._context=t,this._alpha=i}z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var s=this._x2-t,_=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=(s*s+_*_)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:k(this,t,i);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};var J=(function t(i){function s(_){return i?new z(_,i):new b(_,0)}return s.alpha=function(_){return t(+_)},s})(.5);function C(t){this._context=t}C.prototype={areaStart:e,areaEnd:e,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};function K(t){return new C(t)}function M(t){return t<0?-1:1}function g(t,i,s){var _=t._x1-t._x0,h=i-t._x1,n=(t._y1-t._y0)/(_||h<0&&-0),o=(s-t._y1)/(h||_<0&&-0),a=(n*h+o*_)/(_+h);return(M(n)+M(o))*Math.min(Math.abs(n),Math.abs(o),.5*Math.abs(a))||0}function A(t,i){var s=t._x1-t._x0;return s?(3*(t._y1-t._y0)/s-i)/2:i}function T(t,i,s){var _=t._x0,h=t._y0,n=t._x1,o=t._y1,a=(n-_)/3;t._context.bezierCurveTo(_+a,h+a*i,n-a,o-a*s,n,o)}function u(t){this._context=t}u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:T(this,this._t0,A(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var s=NaN;if(t=+t,i=+i,!(t===this._x1&&i===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,T(this,A(this,s=g(this,t,i)),s);break;default:T(this,this._t0,s=g(this,t,i));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=s}}};function q(t){this._context=new j(t)}(q.prototype=Object.create(u.prototype)).point=function(t,i){u.prototype.point.call(this,i,t)};function j(t){this._context=t}j.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,s,_,h,n){this._context.bezierCurveTo(i,t,_,s,n,h)}};function Q(t){return new u(t)}function X(t){return new q(t)}function O(t){this._context=t}O.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,s=t.length;if(s)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),s===2)this._context.lineTo(t[1],i[1]);else for(var _=B(t),h=B(i),n=0,o=1;o=0;--i)h[i]=(o[i]-h[i+1])/n[i];for(n[s-1]=(t[s]+h[s-1])/2,i=0;i=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var s=this._x*(1-this._t)+t*this._t;this._context.lineTo(s,this._y),this._context.lineTo(s,i)}break}this._x=t,this._y=i}};function Z(t){return new y(t,.5)}function $(t){return new y(t,0)}function tt(t){return new y(t,1)}export{F as _,Q as a,J as c,V as d,U as f,H as g,I as h,Y as i,G as l,L as m,$ as n,X as o,R as p,Z as r,K as s,tt as t,W as u,D as v}; diff --git a/docs/assets/stex-0ac7Aukl.js b/docs/assets/stex-0ac7Aukl.js new file mode 100644 index 0000000..9e0c838 --- /dev/null +++ b/docs/assets/stex-0ac7Aukl.js @@ -0,0 +1 @@ +function g(k){function l(t,e){t.cmdState.push(e)}function h(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function b(t){var e=t.cmdState.pop();e&&e.closeBracket()}function p(t){for(var e=t.cmdState,n=e.length-1;n>=0;n--){var a=e[n];if(a.name!="DEFAULT")return a}return{styleIdentifier:function(){return null}}}function i(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var r={};r.importmodule=i("importmodule","tag",["string","builtin"]),r.documentclass=i("documentclass","tag",["","atom"]),r.usepackage=i("usepackage","tag",["atom"]),r.begin=i("begin","tag",["atom"]),r.end=i("end","tag",["atom"]),r.label=i("label","tag",["atom"]),r.ref=i("ref","tag",["atom"]),r.eqref=i("eqref","tag",["atom"]),r.cite=i("cite","tag",["atom"]),r.bibitem=i("bibitem","tag",["atom"]),r.Bibitem=i("Bibitem","tag",["atom"]),r.RBibitem=i("RBibitem","tag",["atom"]),r.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function c(t,e){t.f=e}function m(t,e){var n;if(t.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var a=t.current().slice(1);return n=r.hasOwnProperty(a)?r[a]:r.DEFAULT,n=new n,l(e,n),c(e,d),n.style}if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return c(e,function(o,f){return s(o,f,"\\]")}),"keyword";if(t.match("\\("))return c(e,function(o,f){return s(o,f,"\\)")}),"keyword";if(t.match("$$"))return c(e,function(o,f){return s(o,f,"$$")}),"keyword";if(t.match("$"))return c(e,function(o,f){return s(o,f,"$")}),"keyword";var u=t.next();if(u=="%")return t.skipToEnd(),"comment";if(u=="}"||u=="]"){if(n=h(e),n)n.closeBracket(u),c(e,d);else return"error";return"bracket"}else return u=="{"||u=="["?(n=r.DEFAULT,n=new n,l(e,n),"bracket"):/\d/.test(u)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),n=p(e),n.name=="begin"&&(n.argument=t.current()),n.styleIdentifier())}function s(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return c(e,m),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variableName.special";if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/]/)||t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var a=t.next();return a=="{"||a=="}"||a=="["||a=="]"||a=="("||a==")"?"bracket":a=="%"?(t.skipToEnd(),"comment"):"error"}function d(t,e){var n=t.peek(),a;return n=="{"||n=="["?(a=h(e),a.openBracket(n),t.eat(n),c(e,m),"bracket"):/[ \t\r]/.test(n)?(t.eat(n),null):(c(e,m),b(e),m(t,e))}return{name:"stex",startState:function(){return{cmdState:[],f:k?function(t,e){return s(t,e)}:m}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=m,t.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}const y=g(!1),S=g(!0);export{S as n,y as t}; diff --git a/docs/assets/stex-BBWVYm-R.js b/docs/assets/stex-BBWVYm-R.js new file mode 100644 index 0000000..56244cc --- /dev/null +++ b/docs/assets/stex-BBWVYm-R.js @@ -0,0 +1 @@ +import{n as t,t as s}from"./stex-0ac7Aukl.js";export{s as stex,t as stexMath}; diff --git a/docs/assets/stylus-BCmjnwMM.js b/docs/assets/stylus-BCmjnwMM.js new file mode 100644 index 0000000..1b06149 --- /dev/null +++ b/docs/assets/stylus-BCmjnwMM.js @@ -0,0 +1 @@ +var N="a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.bgsound.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.nobr.noframes.noscript.object.ol.optgroup.option.output.p.param.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.track.u.ul.var.video".split("."),q=["domain","regexp","url-prefix","url"],L=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],P="width.min-width.max-width.height.min-height.max-height.device-width.min-device-width.max-device-width.device-height.min-device-height.max-device-height.aspect-ratio.min-aspect-ratio.max-aspect-ratio.device-aspect-ratio.min-device-aspect-ratio.max-device-aspect-ratio.color.min-color.max-color.color-index.min-color-index.max-color-index.monochrome.min-monochrome.max-monochrome.resolution.min-resolution.max-resolution.scan.grid.dynamic-range.video-dynamic-range".split("."),C="align-content.align-items.align-self.alignment-adjust.alignment-baseline.anchor-point.animation.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.appearance.azimuth.backface-visibility.background.background-attachment.background-clip.background-color.background-image.background-origin.background-position.background-repeat.background-size.baseline-shift.binding.bleed.bookmark-label.bookmark-level.bookmark-state.bookmark-target.border.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-decoration-break.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.clear.clip.color.color-profile.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.content.counter-increment.counter-reset.crop.cue.cue-after.cue-before.cursor.direction.display.dominant-baseline.drop-initial-after-adjust.drop-initial-after-align.drop-initial-before-adjust.drop-initial-before-align.drop-initial-size.drop-initial-value.elevation.empty-cells.fit.fit-position.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.float-offset.flow-from.flow-into.font.font-feature-settings.font-family.font-kerning.font-language-override.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-weight.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-position.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphens.icon.image-orientation.image-rendering.image-resolution.inline-box-align.justify-content.left.letter-spacing.line-break.line-height.line-stacking.line-stacking-ruby.line-stacking-shift.line-stacking-strategy.list-style.list-style-image.list-style-position.list-style-type.margin.margin-bottom.margin-left.margin-right.margin-top.marker-offset.marks.marquee-direction.marquee-loop.marquee-play-count.marquee-speed.marquee-style.max-height.max-width.min-height.min-width.move-to.nav-down.nav-index.nav-left.nav-right.nav-up.object-fit.object-position.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-style.overflow-wrap.overflow-x.overflow-y.padding.padding-bottom.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.page-policy.pause.pause-after.pause-before.perspective.perspective-origin.pitch.pitch-range.play-during.position.presentation-level.punctuation-trim.quotes.region-break-after.region-break-before.region-break-inside.region-fragment.rendering-intent.resize.rest.rest-after.rest-before.richness.right.rotation.rotation-point.ruby-align.ruby-overhang.ruby-position.ruby-span.shape-image-threshold.shape-inside.shape-margin.shape-outside.size.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.stress.string-set.tab-size.table-layout.target.target-name.target-new.target-position.text-align.text-align-last.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-style.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-height.text-indent.text-justify.text-outline.text-overflow.text-shadow.text-size-adjust.text-space-collapse.text-transform.text-underline-position.text-wrap.top.transform.transform-origin.transform-style.transition.transition-delay.transition-duration.transition-property.transition-timing-function.unicode-bidi.vertical-align.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.widows.width.will-change.word-break.word-spacing.word-wrap.z-index.clip-path.clip-rule.mask.enable-background.filter.flood-color.flood-opacity.lighting-color.stop-color.stop-opacity.pointer-events.color-interpolation.color-interpolation-filters.color-rendering.fill.fill-opacity.fill-rule.image-rendering.marker.marker-end.marker-mid.marker-start.shape-rendering.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-rendering.baseline-shift.dominant-baseline.glyph-orientation-horizontal.glyph-orientation-vertical.text-anchor.writing-mode.font-smoothing.osx-font-smoothing".split("."),_=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],U=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E="aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen".split("."),O="above.absolute.activeborder.additive.activecaption.afar.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.amharic.amharic-abegede.antialiased.appworkspace.arabic-indic.armenian.asterisks.attr.auto.avoid.avoid-column.avoid-page.avoid-region.background.backwards.baseline.below.bidi-override.binary.bengali.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.buttonface.buttonhighlight.buttonshadow.buttontext.calc.cambodian.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.cjk-earthly-branch.cjk-heavenly-stem.cjk-ideographic.clear.clip.close-quote.col-resize.collapse.column.compact.condensed.conic-gradient.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.dashed.decimal.decimal-leading-zero.default.default-button.destination-atop.destination-in.destination-out.destination-over.devanagari.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic.ethiopic-abegede.ethiopic-abegede-am-et.ethiopic-abegede-gez.ethiopic-abegede-ti-er.ethiopic-abegede-ti-et.ethiopic-halehame-aa-er.ethiopic-halehame-aa-et.ethiopic-halehame-am-et.ethiopic-halehame-gez.ethiopic-halehame-om-et.ethiopic-halehame-sid-et.ethiopic-halehame-so-et.ethiopic-halehame-ti-er.ethiopic-halehame-ti-et.ethiopic-halehame-tig.ethiopic-numeric.ew-resize.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fixed.flat.flex.footnotes.forwards.from.geometricPrecision.georgian.graytext.groove.gujarati.gurmukhi.hand.hangul.hangul-consonant.hebrew.help.hidden.hide.high.higher.highlight.highlighttext.hiragana.hiragana-iroha.horizontal.hsl.hsla.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-table.inset.inside.intrinsic.invert.italic.japanese-formal.japanese-informal.justify.kannada.katakana.katakana-iroha.keep-all.khmer.korean-hangul-formal.korean-hanja-formal.korean-hanja-informal.landscape.lao.large.larger.left.level.lighter.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-alpha.lower-armenian.lower-greek.lower-hexadecimal.lower-latin.lower-norwegian.lower-roman.lowercase.ltr.malayalam.match.matrix.matrix3d.media-play-button.media-slider.media-sliderthumb.media-volume-slider.media-volume-sliderthumb.medium.menu.menulist.menulist-button.menutext.message-box.middle.min-intrinsic.mix.mongolian.monospace.move.multiple.myanmar.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.octal.open-quote.optimizeLegibility.optimizeSpeed.oriya.oromo.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.persian.perspective.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeating-conic-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row-resize.rtl.run-in.running.s-resize.sans-serif.scale.scale3d.scaleX.scaleY.scaleZ.scroll.scrollbar.scroll-position.se-resize.searchfield.searchfield-cancel-button.searchfield-decoration.searchfield-results-button.searchfield-results-decoration.semi-condensed.semi-expanded.separate.serif.show.sidama.simp-chinese-formal.simp-chinese-informal.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.solid.somali.source-atop.source-in.source-out.source-over.space.spell-out.square.square-button.standard.start.static.status-bar.stretch.stroke.sub.subpixel-antialiased.super.sw-resize.symbolic.symbols.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.tamil.telugu.text.text-bottom.text-top.textarea.textfield.thai.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.tibetan.tigre.tigrinya-er.tigrinya-er-abegede.tigrinya-et.tigrinya-et-abegede.to.top.trad-chinese-formal.trad-chinese-informal.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.up.upper-alpha.upper-armenian.upper-greek.upper-hexadecimal.upper-latin.upper-norwegian.upper-roman.uppercase.urdu.url.var.vertical.vertical-text.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.x-large.x-small.xor.xx-large.xx-small.bicubic.optimizespeed.grayscale.row.row-reverse.wrap.wrap-reverse.column-reverse.flex-start.flex-end.space-between.space-around.unset".split("."),W=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],A=["for","if","else","unless","from","to"],R=["null","true","false","href","title","type","not-allowed","readonly","disabled"],J=N.concat(q,L,P,C,_,E,O,U,W,A,R,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function S(t){return t=t.sort(function(e,r){return r>e}),RegExp("^(("+t.join(")|(")+"))\\b")}function m(t){for(var e={},r=0;r]=?|\?:|\~)/,se=S(W),ce=m(A),X=new RegExp(/^\-(moz|ms|o|webkit)-/i),de=m(R),j="",s={},h,g,Y,o;function ue(t,e){if(j=t.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),e.context.line.firstWord=j?j[0].replace(/^\s*/,""):"",e.context.line.indent=t.indentation(),h=t.peek(),t.match("//"))return t.skipToEnd(),["comment","comment"];if(t.match("/*"))return e.tokenize=Z,Z(t,e);if(h=='"'||h=="'")return t.next(),e.tokenize=T(h),e.tokenize(t,e);if(h=="@")return t.next(),t.eatWhile(/[\w\\-]/),["def",t.current()];if(h=="#"){if(t.next(),t.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(t.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return t.match(X)?["meta","vendor-prefixes"]:t.match(/^-?[0-9]?\.?[0-9]/)?(t.eatWhile(/[a-z%]/i),["number","unit"]):h=="!"?(t.next(),[t.match(/^(important|optional)/i)?"keyword":"operator","important"]):h=="."&&t.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:t.match(ie)?(t.peek()=="("&&(e.tokenize=me),["property","word"]):t.match(/^[a-z][\w-]*\(/i)?(t.backUp(1),["keyword","mixin"]):t.match(/^(\+|-)[a-z][\w-]*\(/i)?(t.backUp(1),["keyword","block-mixin"]):t.string.match(/^\s*&/)&&t.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:t.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(t.backUp(1),["variableName.special","reference"]):t.match(/^&{1}\s*$/)?["variableName.special","reference"]:t.match(se)?["operator","operator"]:t.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?t.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!b(t.current())?(t.match("."),["variable","variable-name"]):["variable","word"]:t.match(le)?["operator",t.current()]:/[:;,{}\[\]\(\)]/.test(h)?(t.next(),[null,h]):(t.next(),[null,null])}function Z(t,e){for(var r=!1,i;(i=t.next())!=null;){if(r&&i=="/"){e.tokenize=null;break}r=i=="*"}return["comment","comment"]}function T(t){return function(e,r){for(var i=!1,l;(l=e.next())!=null;){if(l==t&&!i){t==")"&&e.backUp(1);break}i=!i&&l=="\\"}return(l==t||!i&&t!=")")&&(r.tokenize=null),["string","string"]}}function me(t,e){return t.next(),t.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=T(")"),[null,"("]}function D(t,e,r,i){this.type=t,this.indent=e,this.prev=r,this.line=i||{firstWord:"",indent:0}}function a(t,e,r,i){return i=i>=0?i:e.indentUnit,t.context=new D(r,e.indentation()+i,t.context),r}function f(t,e,r){var i=t.context.indent-e.indentUnit;return r||(r=!1),t.context=t.context.prev,r&&(t.context.indent=i),t.context.type}function pe(t,e,r){return s[r.context.type](t,e,r)}function B(t,e,r,i){for(var l=i||1;l>0;l--)r.context=r.context.prev;return pe(t,e,r)}function b(t){return t.toLowerCase()in M}function k(t){return t=t.toLowerCase(),t in Q||t in ne}function w(t){return t.toLowerCase()in ce}function F(t){return t.toLowerCase().match(X)}function y(t){var e=t.toLowerCase(),r="variable";return b(t)?r="tag":w(t)?r="block-keyword":k(t)?r="property":e in ee||e in de?r="atom":e=="return"||e in te?r="keyword":t.match(/^[A-Z]/)&&(r="string"),r}function I(t,e){return n(e)&&(t=="{"||t=="]"||t=="hash"||t=="qualifier")||t=="block-mixin"}function G(t,e){return t=="{"&&e.match(/^\s*\$?[\w-]+/i,!1)}function H(t,e){return t==":"&&e.match(/^[a-z-]+/,!1)}function v(t){return t.sol()||t.string.match(RegExp("^\\s*"+K(t.current())))}function n(t){return t.eol()||t.match(/^\s*$/,!1)}function u(t){var e=/^\s*[-_]*[a-z0-9]+[\w-]*/i,r=typeof t=="string"?t.match(e):t.string.match(e);return r?r[0].replace(/^\s*/,""):""}s.block=function(t,e,r){if(t=="comment"&&v(e)||t==","&&n(e)||t=="mixin")return a(r,e,"block",0);if(G(t,e))return a(r,e,"interpolation");if(n(e)&&t=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(e.string)&&!b(u(e)))return a(r,e,"block",0);if(I(t,e))return a(r,e,"block");if(t=="}"&&n(e))return a(r,e,"block",0);if(t=="variable-name")return e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||w(u(e))?a(r,e,"variableName"):a(r,e,"variableName",0);if(t=="=")return!n(e)&&!w(u(e))?a(r,e,"block",0):a(r,e,"block");if(t=="*"&&(n(e)||e.match(/\s*(,|\.|#|\[|:|{)/,!1)))return o="tag",a(r,e,"block");if(H(t,e))return a(r,e,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(t))return a(r,e,n(e)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(t))return a(r,e,"keyframes");if(/@extends?/.test(t))return a(r,e,"extend",0);if(t&&t.charAt(0)=="@")return e.indentation()>0&&k(e.current().slice(1))?(o="variable","block"):/(@import|@require|@charset)/.test(t)?a(r,e,"block",0):a(r,e,"block");if(t=="reference"&&n(e))return a(r,e,"block");if(t=="(")return a(r,e,"parens");if(t=="vendor-prefixes")return a(r,e,"vendorPrefixes");if(t=="word"){var i=e.current();if(o=y(i),o=="property")return v(e)?a(r,e,"block",0):(o="atom","block");if(o=="tag"){if(/embed|menu|pre|progress|sub|table/.test(i)&&k(u(e))||e.string.match(RegExp("\\[\\s*"+i+"|"+i+"\\s*\\]")))return o="atom","block";if($.test(i)&&(v(e)&&e.string.match(/=/)||!v(e)&&!e.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!b(u(e))))return o="variable",w(u(e))?"block":a(r,e,"block",0);if(n(e))return a(r,e,"block")}if(o=="block-keyword")return o="keyword",e.current(/(if|unless)/)&&!v(e)?"block":a(r,e,"block");if(i=="return")return a(r,e,"block",0);if(o=="variable"&&e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return a(r,e,"block")}return r.context.type},s.parens=function(t,e,r){if(t=="(")return a(r,e,"parens");if(t==")")return r.context.prev.type=="parens"?f(r,e):e.string.match(/^[a-z][\w-]*\(/i)&&n(e)||w(u(e))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(u(e))||!e.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&b(u(e))?a(r,e,"block"):e.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||e.string.match(/^\s*(\(|\)|[0-9])/)||e.string.match(/^\s+[a-z][\w-]*\(/i)||e.string.match(/^\s+[\$-]?[a-z]/i)?a(r,e,"block",0):n(e)?a(r,e,"block"):a(r,e,"block",0);if(t&&t.charAt(0)=="@"&&k(e.current().slice(1))&&(o="variable"),t=="word"){var i=e.current();o=y(i),o=="tag"&&$.test(i)&&(o="variable"),(o=="property"||i=="to")&&(o="atom")}return t=="variable-name"?a(r,e,"variableName"):H(t,e)?a(r,e,"pseudo"):r.context.type},s.vendorPrefixes=function(t,e,r){return t=="word"?(o="property",a(r,e,"block",0)):f(r,e)},s.pseudo=function(t,e,r){return k(u(e.string))?B(t,e,r):(e.match(/^[a-z-]+/),o="variableName.special",n(e)?a(r,e,"block"):f(r,e))},s.atBlock=function(t,e,r){if(t=="(")return a(r,e,"atBlock_parens");if(I(t,e))return a(r,e,"block");if(G(t,e))return a(r,e,"interpolation");if(t=="word"){var i=e.current().toLowerCase();if(o=/^(only|not|and|or)$/.test(i)?"keyword":re.hasOwnProperty(i)?"tag":oe.hasOwnProperty(i)?"attribute":ae.hasOwnProperty(i)?"property":V.hasOwnProperty(i)?"string.special":y(e.current()),o=="tag"&&n(e))return a(r,e,"block")}return t=="operator"&&/^(not|and|or)$/.test(e.current())&&(o="keyword"),r.context.type},s.atBlock_parens=function(t,e,r){if(t=="{"||t=="}")return r.context.type;if(t==")")return n(e)?a(r,e,"block"):a(r,e,"atBlock");if(t=="word"){var i=e.current().toLowerCase();return o=y(i),/^(max|min)/.test(i)&&(o="property"),o=="tag"&&(o=$.test(i)?"variable":"atom"),r.context.type}return s.atBlock(t,e,r)},s.keyframes=function(t,e,r){return e.indentation()=="0"&&(t=="}"&&v(e)||t=="]"||t=="hash"||t=="qualifier"||b(e.current()))?B(t,e,r):t=="{"?a(r,e,"keyframes"):t=="}"?v(e)?f(r,e,!0):a(r,e,"keyframes"):t=="unit"&&/^[0-9]+\%$/.test(e.current())?a(r,e,"keyframes"):t=="word"&&(o=y(e.current()),o=="block-keyword")?(o="keyword",a(r,e,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(t)?a(r,e,n(e)?"block":"atBlock"):t=="mixin"?a(r,e,"block",0):r.context.type},s.interpolation=function(t,e,r){return t=="{"&&f(r,e)&&a(r,e,"block"),t=="}"?e.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||e.string.match(/^\s*[a-z]/i)&&b(u(e))?a(r,e,"block"):!e.string.match(/^(\{|\s*\&)/)||e.match(/\s*[\w-]/,!1)?a(r,e,"block",0):a(r,e,"block"):t=="variable-name"?a(r,e,"variableName",0):(t=="word"&&(o=y(e.current()),o=="tag"&&(o="atom")),r.context.type)},s.extend=function(t,e,r){return t=="["||t=="="?"extend":t=="]"?f(r,e):t=="word"?(o=y(e.current()),"extend"):f(r,e)},s.variableName=function(t,e,r){return t=="string"||t=="["||t=="]"||e.current().match(/^(\.|\$)/)?(e.current().match(/^\.[\w-]+/i)&&(o="variable"),"variableName"):B(t,e,r)};const he={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new D("block",0,null)}},token:function(t,e){return!e.tokenize&&t.eatSpace()?null:(g=(e.tokenize||ue)(t,e),g&&typeof g=="object"&&(Y=g[1],g=g[0]),o=g,e.state=s[e.state](Y,t,e),o)},indent:function(t,e,r){var i=t.context,l=e&&e.charAt(0),x=i.indent,z=u(e),p=i.line.indent,c=t.context.prev?t.context.prev.line.firstWord:"",d=t.context.prev?t.context.prev.line.indent:p;return i.prev&&(l=="}"&&(i.type=="block"||i.type=="atBlock"||i.type=="keyframes")||l==")"&&(i.type=="parens"||i.type=="atBlock_parens")||l=="{"&&i.type=="at")?x=i.indent-r.unit:/(\})/.test(l)||(/@|\$|\d/.test(l)||/^\{/.test(e)||/^\s*\/(\/|\*)/.test(e)||/^\s*\/\*/.test(c)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(e)||/^(\+|-)?[a-z][\w-]*\(/i.test(e)||/^return/.test(e)||w(z)?x=p:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||b(z)?x=/\,\s*$/.test(c)?d:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(c)||b(c)?p<=d?d:d+r.unit:p:!/,\s*$/.test(e)&&(F(z)||k(z))&&(x=w(c)?p<=d?d:d+r.unit:/^\{/.test(c)?p<=d?p:d+r.unit:F(c)||k(c)?p>=d?d:p:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(c)||/=\s*$/.test(c)||b(c)||/^\$[\w-\.\[\]\'\"]/.test(c)?d+r.unit:p)),x},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:J}};export{he as t}; diff --git a/docs/assets/stylus-DEqyykkC.js b/docs/assets/stylus-DEqyykkC.js new file mode 100644 index 0000000..62f714a --- /dev/null +++ b/docs/assets/stylus-DEqyykkC.js @@ -0,0 +1 @@ +import{t}from"./stylus-Kok2mVTF.js";export{t as default}; diff --git a/docs/assets/stylus-DUyoKY_7.js b/docs/assets/stylus-DUyoKY_7.js new file mode 100644 index 0000000..affe074 --- /dev/null +++ b/docs/assets/stylus-DUyoKY_7.js @@ -0,0 +1 @@ +import{t as s}from"./stylus-BCmjnwMM.js";export{s as stylus}; diff --git a/docs/assets/stylus-Kok2mVTF.js b/docs/assets/stylus-Kok2mVTF.js new file mode 100644 index 0000000..ce1762d --- /dev/null +++ b/docs/assets/stylus-Kok2mVTF.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Stylus","fileTypes":["styl","stylus","css.styl","css.stylus"],"name":"stylus","patterns":[{"include":"#comment"},{"include":"#at_rule"},{"include":"#language_keywords"},{"include":"#language_constants"},{"include":"#variable_declaration"},{"include":"#function"},{"include":"#selector"},{"include":"#declaration"},{"captures":{"1":{"name":"punctuation.section.property-list.begin.css"},"2":{"name":"punctuation.section.property-list.end.css"}},"match":"(\\\\{)(})","name":"meta.brace.curly.css"},{"match":"[{}]","name":"meta.brace.curly.css"},{"include":"#numeric"},{"include":"#string"},{"include":"#operator"}],"repository":{"at_rule":{"patterns":[{"begin":"\\\\s*((@)(import|require))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.at-rule.import.stylus"},"2":{"name":"punctuation.definition.keyword.stylus"}},"end":"\\\\s*((?=;|$|\\\\n))","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.import.css","patterns":[{"include":"#string"}]},{"begin":"\\\\s*((@)(extends?))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.at-rule.extend.stylus"},"2":{"name":"punctuation.definition.keyword.stylus"}},"end":"\\\\s*((?=;|$|\\\\n))","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.extend.css","patterns":[{"include":"#selector"}]},{"captures":{"1":{"name":"keyword.control.at-rule.fontface.stylus"},"2":{"name":"punctuation.definition.keyword.stylus"}},"match":"^\\\\s*((@)font-face)\\\\b","name":"meta.at-rule.fontface.stylus"},{"captures":{"1":{"name":"keyword.control.at-rule.css.stylus"},"2":{"name":"punctuation.definition.keyword.stylus"}},"match":"^\\\\s*((@)css)\\\\b","name":"meta.at-rule.css.stylus"},{"begin":"\\\\s*((@)charset)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.at-rule.charset.stylus"},"2":{"name":"punctuation.definition.keyword.stylus"}},"end":"\\\\s*((?=;|$|\\\\n))","name":"meta.at-rule.charset.stylus","patterns":[{"include":"#string"}]},{"begin":"\\\\s*((@)keyframes)\\\\b\\\\s+([-A-Z_a-z][-0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.control.at-rule.keyframes.stylus"},"2":{"name":"punctuation.definition.keyword.stylus"},"3":{"name":"entity.name.function.keyframe.stylus"}},"end":"\\\\s*((?=\\\\{|$|\\\\n))","name":"meta.at-rule.keyframes.stylus"},{"begin":"(?=\\\\b((\\\\d+%|from\\\\b|to\\\\b)))","end":"(?=([\\\\n{]))","name":"meta.at-rule.keyframes.stylus","patterns":[{"match":"\\\\b((\\\\d+%|from\\\\b|to\\\\b))","name":"entity.other.attribute-name.stylus"}]},{"captures":{"1":{"name":"keyword.control.at-rule.media.stylus"},"2":{"name":"punctuation.definition.keyword.stylus"}},"match":"^\\\\s*((@)media)\\\\b","name":"meta.at-rule.media.stylus"},{"match":"(?=\\\\w)(?]|[-%*+/:<-?]?=|!=)|\\\\b(?:in|is(?:nt)?|(?([\\"'])(?:[^\\\\\\\\]|\\\\\\\\.)*?(\\\\6)))))?\\\\s*(])","name":"meta.attribute-selector.css"},{"include":"#interpolation"},{"include":"#variable"}]},"string":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.css"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.css"}]}]},"variable":{"match":"(\\\\$[-A-Z_a-z][-0-9A-Z_a-z]*)","name":"variable.stylus"},"variable_declaration":{"begin":"^[^\\\\n\\\\S]*(\\\\$?[-A-Z_a-z][-0-9A-Z_a-z]*)[^\\\\n\\\\S]*([:?]??=)","beginCaptures":{"1":{"name":"variable.stylus"},"2":{"name":"keyword.operator.stylus"}},"end":"(\\\\n)|(;)|(?=})","endCaptures":{"2":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"#property_values"}]}},"scopeName":"source.stylus","aliases":["styl"]}`))];export{e as t}; diff --git a/docs/assets/svelte-CNe2JkA7.js b/docs/assets/svelte-CNe2JkA7.js new file mode 100644 index 0000000..f48f86e --- /dev/null +++ b/docs/assets/svelte-CNe2JkA7.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t}from"./css-xi2XX7Oh.js";import{t as n}from"./typescript-DAlbup0L.js";import{t as s}from"./postcss-Bdp-ioMS.js";var a=Object.freeze(JSON.parse(`{"displayName":"Svelte","fileTypes":["svelte"],"injections":{"L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)(?!)\\\\s","end":"(?=)(?!)","patterns":[{"include":"#attributes-value"}]}]},"attributes-directives-keywords":{"patterns":[{"match":"on|use|bind","name":"keyword.control.svelte"},{"match":"transition|in|out|animate","name":"keyword.other.animation.svelte"},{"match":"let","name":"storage.type.svelte"},{"match":"class|style","name":"entity.other.attribute-name.svelte"}]},"attributes-directives-types":{"patterns":[{"match":"(?<=(on):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(bind):).*$","name":"variable.parameter.svelte"},{"match":"(?<=(use|transition|in|out|animate):).*$","name":"variable.function.svelte"},{"match":"(?<=(let|class|style):).*$","name":"variable.parameter.svelte"}]},"attributes-directives-types-assigned":{"patterns":[{"match":"(?<=(bind):)this$","name":"variable.language.svelte"},{"match":"(?<=(bind):).*$","name":"entity.name.type.svelte"},{"match":"(?<=(class):).*$","name":"entity.other.attribute-name.class.svelte"},{"match":"(?<=(style):).*$","name":"support.type.property-name.svelte"},{"include":"#attributes-directives-types"}]},"attributes-generics":{"begin":"(generics)(=)([\\"'])","beginCaptures":{"1":{"name":"entity.other.attribute-name.svelte"},"2":{"name":"punctuation.separator.key-value.svelte"},"3":{"name":"punctuation.definition.string.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.svelte"}},"patterns":[{"include":"#type-parameters"}]},"attributes-interpolated":{"begin":"(?)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"captures":{"1":{"name":"punctuation.definition.string.begin.svelte"},"2":{"name":"constant.numeric.decimal.svelte"},"3":{"name":"punctuation.definition.string.end.svelte"},"4":{"name":"constant.numeric.decimal.svelte"}},"match":"([\\"'])([.0-9_]+[%\\\\w]{0,4})(\\\\1)|([.0-9_]+[%\\\\w]{0,4})(?=\\\\s|/?>)"},{"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.svelte","patterns":[{"include":"#interpolation"}]},{"begin":"([\\"'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.svelte"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.svelte"}},"name":"string.quoted.svelte","patterns":[{"include":"#interpolation"}]}]},"comments":{"begin":"","name":"comment.block.svelte","patterns":[{"begin":"(@)(component)","beginCaptures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"name":"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}},"contentName":"comment.block.documentation.svelte","end":"(?=-->)","patterns":[{"captures":{"0":{"patterns":[{"include":"text.html.markdown"}]}},"match":".*?(?=-->)"},{"include":"text.html.markdown"}]},{"match":"\\\\G-?>|)|--!>","name":"invalid.illegal.characters-not-allowed-here.svelte"}]},"destructuring":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern"}]}]},"destructuring-const":{"patterns":[{"begin":"(?=\\\\{)","end":"(?<=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#object-binding-pattern-const"}]},{"begin":"(?=\\\\[)","end":"(?<=])","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts#array-binding-pattern-const"}]}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.svelte"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.ts#object-literal"}]},{"include":"source.ts"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#special-tags"},{"include":"#tags"},{"include":"#interpolation"},{"begin":"(?<=[>}])","end":"(?=[<{])","name":"text.svelte"}]},"special-tags":{"patterns":[{"include":"#special-tags-void"},{"include":"#special-tags-block-begin"},{"include":"#special-tags-block-end"}]},"special-tags-block-begin":{"begin":"(\\\\{)\\\\s*(#([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.start.svelte","patterns":[{"include":"#special-tags-modes"}]},"special-tags-block-end":{"begin":"(\\\\{)\\\\s*(/([a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte meta.special.end.svelte"},"special-tags-keywords":{"captures":{"1":{"name":"punctuation.definition.keyword.svelte"},"2":{"patterns":[{"match":"if|else\\\\s+if|else","name":"keyword.control.conditional.svelte"},{"match":"each|key","name":"keyword.control.svelte"},{"match":"await|then|catch","name":"keyword.control.flow.svelte"},{"match":"snippet","name":"keyword.control.svelte"},{"match":"html","name":"keyword.other.svelte"},{"match":"render","name":"keyword.other.svelte"},{"match":"debug","name":"keyword.other.debugger.svelte"},{"match":"const","name":"storage.type.svelte"}]}},"match":"([#/:@])(else\\\\s+if|[a-z]*)"},"special-tags-modes":{"patterns":[{"begin":"(?<=(if|key|then|catch|html|render).*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=snippet.*?)\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"captures":{"1":{"name":"entity.name.function.ts"}},"match":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=<)"},{"begin":"(?<=<)","contentName":"meta.type.parameters.ts","end":"(?=>)","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>\\\\s*\\\\()","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]},{"begin":"\\\\G","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=const.*?)\\\\G","end":"(?=})","patterns":[{"include":"#destructuring-const"},{"begin":"\\\\G\\\\s*([$_[:alpha:]][$_[:alnum:]]+)\\\\s*","beginCaptures":{"1":{"name":"variable.other.constant.svelte"}},"end":"(?=[:=])"},{"begin":"(?=:)","end":"(?==)","name":"meta.type.annotation.svelte","patterns":[{"include":"source.ts"}]},{"begin":"(?==)","end":"(?=})","name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=each.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=(?:^\\\\s*|\\\\s+)(as)|\\\\s*([,}]))","patterns":[{"include":"source.ts"}]},{"begin":"(as)|(?=[,}])","beginCaptures":{"1":{"name":"keyword.control.as.svelte"}},"end":"(?=})","patterns":[{"include":"#destructuring"},{"begin":"\\\\(","captures":{"0":{"name":"meta.brace.round.svelte"}},"contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\)|(?=})","patterns":[{"include":"source.ts"}]},{"captures":{"1":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"(\\\\s*([$_[:alpha:]][$_[:alnum:]]*)\\\\s*)"},{"match":",","name":"punctuation.separator.svelte"}]}]},{"begin":"(?<=await.*?)\\\\G","end":"(?=})","patterns":[{"begin":"\\\\G\\\\s*?(?=\\\\S)","contentName":"meta.embedded.expression.svelte source.ts","end":"\\\\s+(then)|(?=})","endCaptures":{"1":{"name":"keyword.control.flow.svelte"}},"patterns":[{"include":"source.ts"}]},{"begin":"(?<=then\\\\b)","contentName":"meta.embedded.expression.svelte source.ts","end":"(?=})","patterns":[{"include":"source.ts"}]}]},{"begin":"(?<=debug.*?)\\\\G","end":"(?=})","patterns":[{"captures":{"0":{"name":"meta.embedded.expression.svelte source.ts","patterns":[{"include":"source.ts"}]}},"match":"[$_[:alpha:]][$_[:alnum:]]*"},{"match":",","name":"punctuation.separator.svelte"}]}]},"special-tags-void":{"begin":"(\\\\{)\\\\s*([:@](else\\\\s+if|[a-z]*))","beginCaptures":{"1":{"name":"punctuation.definition.block.begin.svelte"},"2":{"patterns":[{"include":"#special-tags-keywords"}]}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.end.svelte"}},"name":"meta.special.$3.svelte","patterns":[{"include":"#special-tags-modes"}]},"tags":{"patterns":[{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"match":"()|(/>)"},"tags-general-end":{"begin":"(\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{"name":"meta.tag.end.svelte","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},"name":"meta.scope.tag.$2.svelte","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(script|style|template)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.$1.svelte","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"']?)(?:text/)?(\\\\w+)\\\\2)","end":"(?=)","name":"meta.lang.$3.svelte","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.svelte"}},"name":"meta.tag.start.svelte","patterns":[{"include":"#attributes-generics"},{"include":"#attributes"}]},"tags-name":{"patterns":[{"captures":{"1":{"name":"keyword.control.svelte"},"2":{"name":"punctuation.definition.keyword.svelte"},"3":{"name":"entity.name.tag.svelte"}},"match":"(svelte)(:)([a-z][-:\\\\w]*)"},{"match":"slot","name":"keyword.control.svelte"},{"captures":{"1":{"patterns":[{"match":"\\\\w+","name":"support.class.component.svelte"},{"match":"\\\\.","name":"punctuation.definition.keyword.svelte"}]},"2":{"name":"support.class.component.svelte"}},"match":"(\\\\w+(?:\\\\.\\\\w+)+)|([A-Z]\\\\w*)"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.svelte entity.name.tag.svelte"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.svelte"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.svelte","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.svelte"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.svelte"},"2":{"name":"entity.name.tag.svelte"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.svelte"}},"name":"meta.tag.void.svelte","patterns":[{"include":"#attributes"}]},"type-parameters":{"name":"meta.type.parameters.ts","patterns":[{"include":"source.ts#comment"},{"match":"(?)","name":"keyword.operator.assignment.ts"}]}},"scopeName":"source.svelte","embeddedLangs":["javascript","typescript","css","postcss"],"embeddedLangsLazy":["coffee","stylus","sass","scss","less","pug","markdown"]}`)),i=[...e,...n,...t,...s,a];export{i as default}; diff --git a/docs/assets/swift-BkcVjmPv.js b/docs/assets/swift-BkcVjmPv.js new file mode 100644 index 0000000..f5eea25 --- /dev/null +++ b/docs/assets/swift-BkcVjmPv.js @@ -0,0 +1 @@ +function u(t){for(var n={},e=0;e~^?!",m=":;,.(){}[]",v=/^\-?0b[01][01_]*/,_=/^\-?0o[0-7][0-7_]*/,k=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,y=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,x=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,g=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,z=/^\#[A-Za-z]+/,w=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function s(t,n,e){if(t.sol()&&(n.indented=t.indentation()),t.eatSpace())return null;var r=t.peek();if(r=="/"){if(t.match("//"))return t.skipToEnd(),"comment";if(t.match("/*"))return n.tokenize.push(c),c(t,n)}if(t.match(z))return"builtin";if(t.match(w))return"attribute";if(t.match(v)||t.match(_)||t.match(k)||t.match(y))return"number";if(t.match(g))return"property";if(h.indexOf(r)>-1)return t.next(),"operator";if(m.indexOf(r)>-1)return t.next(),t.match(".."),"punctuation";var i;if(i=t.match(/("""|"|')/)){var a=A.bind(null,i[0]);return n.tokenize.push(a),a(t,n)}if(t.match(x)){var o=t.current();return d.hasOwnProperty(o)?"type":p.hasOwnProperty(o)?"atom":l.hasOwnProperty(o)?(f.hasOwnProperty(o)&&(n.prev="define"),"keyword"):e=="define"?"def":"variable"}return t.next(),null}function b(){var t=0;return function(n,e,r){var i=s(n,e,r);if(i=="punctuation"){if(n.current()=="(")++t;else if(n.current()==")"){if(t==0)return n.backUp(1),e.tokenize.pop(),e.tokenize[e.tokenize.length-1](n,e);--t}}return i}}function A(t,n,e){for(var r=t.length==1,i,a=!1;i=n.peek();)if(a){if(n.next(),i=="(")return e.tokenize.push(b()),"string";a=!1}else{if(n.match(t))return e.tokenize.pop(),"string";n.next(),a=i=="\\"}return r&&e.tokenize.pop(),"string"}function c(t,n){for(var e;e=t.next();)if(e==="/"&&t.eat("*"))n.tokenize.push(c);else if(e==="*"&&t.eat("/")){n.tokenize.pop();break}return"comment"}function I(t,n,e){this.prev=t,this.align=n,this.indented=e}function O(t,n){var e=n.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:n.column()+1;t.context=new I(t.context,e,t.indented)}function $(t){t.context&&(t.context=(t.indented=t.context.indented,t.context.prev))}const F={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(t,n){var e=n.prev;n.prev=null;var r=(n.tokenize[n.tokenize.length-1]||s)(t,n,e);if(!r||r=="comment"?n.prev=e:n.prev||(n.prev=r),r=="punctuation"){var i=/[\(\[\{]|([\]\)\}])/.exec(t.current());i&&(i[1]?$:O)(n,t)}return r},indent:function(t,n,e){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return r.align==null?r.indented+(i?0:e.unit):r.align-(i?1:0)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}};export{F as t}; diff --git a/docs/assets/swift-CXFwyL-K.js b/docs/assets/swift-CXFwyL-K.js new file mode 100644 index 0000000..a8549ea --- /dev/null +++ b/docs/assets/swift-CXFwyL-K.js @@ -0,0 +1 @@ +import{t}from"./swift-BkcVjmPv.js";export{t as swift}; diff --git a/docs/assets/swift-Dl2cc5UE.js b/docs/assets/swift-Dl2cc5UE.js new file mode 100644 index 0000000..eec1e7c --- /dev/null +++ b/docs/assets/swift-Dl2cc5UE.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Swift","fileTypes":["swift"],"firstLineMatch":"^#!/.*\\\\bswift","name":"swift","patterns":[{"include":"#root"}],"repository":{"async-throws":{"captures":{"1":{"name":"invalid.illegal.await-must-precede-throws.swift"},"2":{"name":"storage.modifier.exception.swift"},"3":{"name":"storage.modifier.async.swift"}},"match":"\\\\b(?:((?:throws\\\\s+|rethrows\\\\s+)async)|((?:|re)throws)|(async))\\\\b"},"attributes":{"patterns":[{"begin":"((@)available)(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.attribute.swift"},"2":{"name":"punctuation.definition.attribute.swift"},"3":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.attribute.available.swift","patterns":[{"captures":{"1":{"name":"keyword.other.platform.os.swift"},"2":{"name":"constant.numeric.swift"}},"match":"\\\\b(swift|(?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\\\b(?:\\\\s+([0-9]+(?:\\\\.[0-9]+)*)\\\\b)?"},{"begin":"\\\\b((?:introduc|deprecat|obsolet)ed)\\\\s*(:)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)*\\\\b","name":"constant.numeric.swift"}]},{"begin":"\\\\b(message|renamed)\\\\s*(:)\\\\s*(?=\\")","beginCaptures":{"1":{"name":"keyword.other.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#literals"}]},{"captures":{"1":{"name":"keyword.other.platform.all.swift"},"2":{"name":"keyword.other.swift"},"3":{"name":"invalid.illegal.character-not-allowed-here.swift"}},"match":"(?:(\\\\*)|\\\\b(deprecated|unavailable|noasync)\\\\b)\\\\s*(.*?)(?=[),])"}]},{"begin":"((@)objc)(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.attribute.swift"},"2":{"name":"punctuation.definition.attribute.swift"},"3":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.attribute.objc.swift","patterns":[{"captures":{"1":{"name":"invalid.illegal.missing-colon-after-selector-piece.swift"}},"match":"\\\\w*(?::(?:\\\\w*:)*(\\\\w*))?","name":"entity.name.function.swift"}]},{"begin":"(@)(?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k)","beginCaptures":{"0":{"name":"storage.modifier.attribute.swift"},"1":{"name":"punctuation.definition.attribute.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G\\\\()","name":"meta.attribute.swift","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.arguments.attribute.swift","patterns":[{"include":"#expressions"}]}]}]},"builtin-functions":{"patterns":[{"match":"(?<=\\\\.)(?:s(?:ort(?:ed)?|plit)|contains|index|partition|f(?:i(?:lter|rst)|orEach|latMap)|with(?:MutableCharacters|CString|U(?:nsafe(?:Mutable(?:BufferPointer|Pointer(?:s|To(?:Header|Elements)))|BufferPointer)|TF8Buffer))|m(?:in|a[px]))(?=\\\\s*[({])\\\\b","name":"support.function.swift"},{"match":"(?<=\\\\.)(?:s(?:ymmetricDifference|t(?:oreBytes|arts|ride)|ortInPlace|u(?:ccessor|ffix|btract(?:ing|InPlace|WithOverflow)?)|quareRoot|amePosition)|h(?:oldsUnique(?:|OrPinned)Reference|as(?:Suf|Pre)fix)|ne(?:gated?|xt)|c(?:o(?:untByEnumerating|py(?:Bytes)?)|lamp(?:ed)?|reate)|t(?:o(?:IntMax|Opaque|UIntMax)|ake(?:R|Unr)etainedValue|r(?:uncatingRemainder|a(?:nscodedLength|ilSurrogate)))|i(?:s(?:MutableAndUniquelyReferenced(?:OrPinned)?|S(?:trictSu(?:perset(?:Of)?|bset(?:Of)?)|u(?:perset(?:Of)?|bset(?:Of)?))|Continuation|T(?:otallyOrdered|railSurrogate)|Disjoint(?:With)?|Unique(?:Reference|lyReferenced(?:OrPinned)?)|Equal|Le(?:ss(?:ThanOrEqualTo)?|adSurrogate))|n(?:sert(?:ContentsOf)?|tersect(?:ion|InPlace)?|itialize(?:Memory|From)?|dex(?:Of|ForKey)))|o(?:verlaps|bjectAt)|d(?:i(?:stance(?:To)?|vide(?:d|WithOverflow)?)|e(?:s(?:cendant|troy)|code(?:CString)?|initialize|alloc(?:ate(?:Capacity)?)?)|rop(?:First|Last))|u(?:n(?:ion(?:InPlace)?|derestimateCount|wrappedOrError)|p(?:date(?:Value)?|percased))|join(?:ed|WithSeparator)|p(?:op(?:First|Last)|ass(?:R|Unr)etained|re(?:decessor|fix))|e(?:scaped?|n(?:code|umerated?)|lementsEqual|xclusiveOr(?:InPlace)?)|f(?:orm(?:Remainder|S(?:ymmetricDifference|quareRoot)|TruncatingRemainder|In(?:tersection|dex)|Union)|latten|rom(?:CString(?:RepairingIllFormedUTF8)?|Opaque))|w(?:i(?:thMemoryRebound|dth)|rite(?:To)?)|l(?:o(?:wercased|ad)|e(?:adSurrogate|xicographical(?:Compare|lyPrecedes)))|a(?:ss(?:ign(?:(?:Backward|)From)?|umingMemoryBound)|d(?:d(?:ing(?:Product)?|Product|WithOverflow)?|vanced(?:By)?)|utorelease|ppend(?:ContentsOf)?|lloc(?:ate)?|bs)|r(?:ound(?:ed)?|e(?:serveCapacity|tain|duce|place(?:(?:R|Subr)ange)?|versed?|quest(?:Native|UniqueMutableBacking)Buffer|lease|m(?:ove(?:Range|Subrange|Value(?:ForKey)?|First|Last|A(?:tIndex|ll))?|ainder(?:WithOverflow)?)))|ge(?:nerate|t(?:Objects|Element))|m(?:in(?:imum(?:Magnitude)?|Element)|ove(?:Initialize(?:Memory|BackwardFrom|From)?|Assign(?:From)?)?|ultipl(?:y(?:WithOverflow)?|ied)|easure|a(?:ke(?:Iterator|Description)|x(?:imum(?:Magnitude)?|Element)))|bindMemory)(?=\\\\s*\\\\()","name":"support.function.swift"},{"match":"(?<=\\\\.)(?:s(?:uperclassMirror|amePositionIn|tartsWith)|nextObject|c(?:haracterAtIndex|o(?:untByEnumeratingWithState|pyWithZone)|ustom(?:Mirror|PlaygroundQuickLook))|is(?:EmptyInput|ASCII)|object(?:Enumerator|ForKey|AtIndex)|join|put|keyEnumerator|withUnsafeMutablePointerToValue|length|getMirror|m(?:oveInitializeAssignFrom|ember))(?=\\\\s*\\\\()","name":"support.function.swift"}]},"builtin-global-functions":{"patterns":[{"begin":"\\\\b(type)(\\\\()\\\\s*(of)(:)","beginCaptures":{"1":{"name":"support.function.dynamic-type.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"},"3":{"name":"support.variable.parameter.swift"},"4":{"name":"punctuation.separator.argument-label.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"include":"#expressions"}]},{"match":"\\\\ba(?:nyGenerator|utoreleasepool)(?=\\\\s*[({])\\\\b","name":"support.function.swift"},{"match":"\\\\b(?:s(?:tride(?:of(?:Value)?)?|izeof(?:Value)?|equence|wap)|numericCast|transcode|is(?:UniquelyReferenced(?:NonObjC)?|KnownUniquelyReferenced)|zip|d(?:ump|ebugPrint)|unsafe(?:BitCast|Downcast|Unwrap|Address(?:Of)?)|pr(?:int|econdition(?:Failure)?)|fatalError|with(?:Unsafe(?:Mutable|)Pointer|ExtendedLifetime|VaList)|a(?:ssert(?:ionFailure)?|lignof(?:Value)?|bs)|re(?:peatElement|adLine)|getVaList|m(?:in|ax))(?=\\\\s*\\\\()","name":"support.function.swift"},{"match":"\\\\b(?:s(?:ort|uffix|pli(?:ce|t))|insert|overlaps|d(?:istance|rop(?:First|Last))|join|prefix|extend|withUnsafe(?:Mutable|)Pointers|lazy|advance|re(?:flect|move(?:Range|Last|A(?:tIndex|ll))))(?=\\\\s*\\\\()","name":"support.function.swift"}]},"builtin-properties":{"patterns":[{"match":"(?<=(?:^|\\\\W)(?:Process\\\\.|CommandLine\\\\.))(arguments|argc|unsafeArgv)","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:s(?:t(?:artIndex|ri(?:ngValue|de))|i(?:ze|gn(?:BitIndex|ificand(?:Bit(?:Count|Pattern)|Width)?|alingNaN)?)|u(?:perclassMirror|mmary|bscriptBaseAddress))|h(?:eader|as(?:hValue|PointerRepresentation))|n(?:ulTerminatedUTF8|ext(?:Down|Up)|a(?:n|tiveOwner))|c(?:haracters|ount(?:TrailingZeros)?|ustom(?:Mirror|PlaygroundQuickLook)|apacity)|i(?:s(?:S(?:ign(?:Minus|aling(?:NaN)?)|ubnormal)|N(?:ormal|aN)|Canonical|Infinite|Zero|Empty|Finite|ASCII)|n(?:dices|finity)|dentity)|owner|de(?:|bugDe)scription|u(?:n(?:safelyUnwrapped|icodeScalars?|derestimatedCount)|tf(?:16|8(?:Start|C(?:String|odeUnitCount))?)|intValue|ppercaseString|lp(?:OfOne)?)|p(?:i|ointee)|e(?:ndIndex|lements|xponent(?:Bit(?:Count|Pattern))?)|values?|keys|quietNaN|f(?:irst(?:ElementAddress(?:IfContiguous)?)?|loatingPointClass)|l(?:ittleEndian|owercaseString|eastNo(?:nzero|rmal)Magnitude|a(?:st|zy))|a(?:l(?:ignment|l(?:ocatedElementCount|Zeros))|rray(?:PropertyIsNativeTypeChecked)?)|ra(?:dix|wValue)|greatestFiniteMagnitude|m(?:in|emory|ax)|b(?:yteS(?:ize|wapped)|i(?:nade|tPattern|gEndian)|uffer|ase(?:Address)?))\\\\b","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:boolValue|disposition|end|objectIdentifier|quickLookObject|start|valueType)\\\\b","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:s(?:calarValue|i(?:ze|gnalingNaN)|o(?:und|me)|uppressed|prite|et)|n(?:one|egative(?:Subnormal|Normal|Infinity|Zero))|c(?:ol(?:or|lection)|ustomized)|t(?:o(?:NearestOr(?:Even|AwayFromZero)|wardZero)|uple|ext)|i(?:nt|mage)|optional|d(?:ictionary|o(?:uble|wn))|u(?:Int|p|rl)|p(?:o(?:sitive(?:Subnormal|Normal|Infinity|Zero)|int)|lus)|e(?:rror|mptyInput)|view|quietNaN|float|a(?:ttributedString|wayFromZero)|r(?:ectangle|ange)|generated|minus|b(?:ool|ezierPath))\\\\b","name":"support.variable.swift"}]},"builtin-types":{"patterns":[{"include":"#builtin-types-builtin-class-type"},{"include":"#builtin-types-builtin-enum-type"},{"include":"#builtin-types-builtin-protocol-type"},{"include":"#builtin-types-builtin-struct-type"},{"include":"#builtin-types-builtin-typealias"},{"match":"\\\\bAny\\\\b","name":"support.type.any.swift"}]},"builtin-types-builtin-class-type":{"match":"\\\\b(Managed((?:|Proto)Buffer)|NonObjectiveCBase|AnyGenerator)\\\\b","name":"support.class.swift"},"builtin-types-builtin-enum-type":{"patterns":[{"match":"\\\\b(?:CommandLine|Process(?=\\\\.))\\\\b","name":"support.constant.swift"},{"match":"\\\\bNever\\\\b","name":"support.constant.never.swift"},{"match":"\\\\b(?:ImplicitlyUnwrappedOptional|Representation|MemoryLayout|FloatingPointClassification|SetIndexRepresentation|SetIteratorRepresentation|FloatingPointRoundingRule|UnicodeDecodingResult|Optional|DictionaryIndexRepresentation|AncestorRepresentation|DisplayStyle|PlaygroundQuickLook|Never|FloatingPointSign|Bit|DictionaryIteratorRepresentation)\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:MirrorDisposition|QuickLookObject)\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-protocol-type":{"patterns":[{"match":"\\\\b(?:Ra(?:n(?:domAccess(?:Collection|Indexable)|geReplaceable(?:Collection|Indexable))|wRepresentable)|M(?:irrorPath|utable(?:Collection|Indexable))|Bi(?:naryFloatingPoint|twiseOperations|directional(?:Collection|Indexable))|S(?:tr(?:ide|eam)able|igned(?:Number|Integer)|e(?:tAlgebra|quence))|Hashable|C(?:o(?:llection|mparable)|ustom(?:Reflecta|StringConverti|DebugStringConverti|PlaygroundQuickLooka|LeafReflecta)ble|VarArg)|TextOutputStream|I(?:n(?:teger(?:Arithmetic)?|dexable(?:Base)?)|teratorProtocol)|OptionSet|Un(?:signedInteger|icodeCodec)|E(?:quatable|rror|xpressibleBy(?:BooleanLiteral|String(?:Interpolation|Literal)|NilLiteral|IntegerLiteral|DictionaryLiteral|UnicodeScalarLiteral|ExtendedGraphemeClusterLiteral|FloatLiteral|ArrayLiteral))|FloatingPoint|L(?:osslessStringConvertible|azy(?:Sequence|Collection)Protocol)|A(?:nyObject|bsoluteValuable))\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:Ran(?:domAccessIndex|geReplaceableCollection)Type|GeneratorType|M(?:irror(?:|Path)Type|utable(?:Sliceable|CollectionType))|B(?:i(?:twiseOperations|directionalIndex)Type|oolean(?:Type|LiteralConvertible))|S(?:tring(?:Interpolation|Literal)Convertible|i(?:nk|gned(?:Numb|Integ)er)Type|e(?:tAlgebra|quence)Type|liceable)|NilLiteralConvertible|C(?:ollection|VarArg)Type|Inte(?:rvalType|ger(?:Type|LiteralConvertible|ArithmeticType))|O(?:utputStream|ptionSet)Type|DictionaryLiteralConvertible|Un(?:signedIntegerType|icode(?:ScalarLiteralConvertible|CodecType))|E(?:rrorType|xten(?:sibleCollectionType|dedGraphemeClusterLiteralConvertible))|F(?:orwardIndexType|loat(?:ingPointType|LiteralConvertible))|A(?:nyCollectionType|rrayLiteralConvertible))\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-struct-type":{"patterns":[{"match":"\\\\b(?:R(?:e(?:peat(?:ed)?|versed(?:RandomAccess(?:Collection|Index)|Collection|Index))|an(?:domAccessSlice|ge(?:Replaceable(?:RandomAccess|Bidirectional|)Slice|Generator)?))|Generator(?:Sequence|OfOne)|M(?:irror|utable(?:Ran(?:domAccess|geReplaceable(?:RandomAccess|Bidirectional|))|Bidirectional|)Slice|anagedBufferPointer)|B(?:idirectionalSlice|ool)|S(?:t(?:aticString|ri(?:ng|deT(?:hrough(?:(?:Gen|It)erator)?|o(?:(?:Gen|It)erator)?)))|et(?:I(?:ndex|terator))?|lice)|HalfOpenInterval|C(?:haracter(?:View)?|o(?:ntiguousArray|untable(?:|Closed)Range|llectionOfOne)|OpaquePointer|losed(?:Range(?:I(?:ndex|terator))?|Interval)|VaListPointer)|I(?:n(?:t(?:16|8|32|64)?|d(?:ices|ex(?:ing(?:Gen|It)erator)?))|terator(?:Sequence|OverOne)?)|Zip2(?:Sequence|Iterator)|O(?:paquePointer|bjectIdentifier)|D(?:ictionary(?:I(?:ndex|terator)|Literal)?|ouble|efault(?:RandomAccess|Bidirectional|)Indices)|U(?:n(?:safe(?:RawPointer|Mutable(?:Raw|Buffer|)Pointer|BufferPointer(?:(?:Gen|It)erator)?|Pointer)|icodeScalar(?:View)?|foldSequence|managed)|TF(?:16(?:View)?|8(?:View)?|32)|Int(?:16|8|32|64)?)|Join(?:Generator|ed(?:Sequence|Iterator))|PermutationGenerator|E(?:numerate(?:Generator|Sequence|d(?:Sequence|Iterator))|mpty(?:Generator|Collection|Iterator))|Fl(?:oat(?:80)?|atten(?:Generator|BidirectionalCollection(?:Index)?|Sequence|Collection(?:Index)?|Iterator))|L(?:egacyChildren|azy(?:RandomAccessCollection|Map(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Collection|Iterator)|BidirectionalCollection|Sequence|Collection|Filter(?:Generator|BidirectionalCollection|Sequence|Collection|I(?:ndex|terator))))|A(?:ny(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Hashable|Collection|I(?:ndex|terator))|utoreleasingUnsafeMutablePointer|rray(?:Slice)?))\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:R(?:everse(?:RandomAccess(?:Collection|Index)|Collection|Index)|awByte)|Map(?:Generator|Sequence|Collection)|S(?:inkOf|etGenerator)|Zip2Generator|DictionaryGenerator|Filter(?:Generator|Sequence|Collection(?:Index)?)|LazyForwardCollection|Any(?:RandomAccessIndex|BidirectionalIndex|Forward(?:Collection|Index)))\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-typealias":{"patterns":[{"match":"\\\\b(?:Raw(?:Significand|Exponent|Value)|B(?:ooleanLiteralType|uffer|ase)|S(?:t(?:orage|r(?:i(?:ngLiteralType|de)|eam[12]))|ubSequence)|NativeBuffer|C(?:hild(?:ren)?|Bool|S(?:hort|ignedChar)|odeUnit|Char(?:16|32)?|Int|Double|Unsigned(?:Short|Char|Int|Long(?:Long)?)|Float|WideChar|Long(?:Long)?)|I(?:n(?:t(?:Max|egerLiteralType)|d(?:ices|ex(?:Distance)?))|terator)|Distance|U(?:n(?:icodeScalar(?:Type|Index|View|LiteralType)|foldFirstSequence)|TF(?:16(?:Index|View)|8Index)|IntMax)|E(?:lements?|x(?:tendedGraphemeCluster(?:|Literal)Type|ponent))|V(?:oid|alue)|Key|Float(?:32|LiteralType|64)|AnyClass)\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:Generator|PlaygroundQuickLook|UWord|Word)\\\\b","name":"support.type.swift"}]},"code-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.swift"}},"patterns":[{"include":"$self"}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.swift"}},"match":"\\\\A^(#!).*$\\\\n?","name":"comment.line.number-sign.swift"},{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.documentation.swift","patterns":[{"include":"#comments-nested"}]},{"begin":"/\\\\*:","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.documentation.playground.swift","patterns":[{"include":"#comments-nested"}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.swift","patterns":[{"include":"#comments-nested"}]},{"match":"\\\\*/","name":"invalid.illegal.unexpected-end-of-block-comment.swift"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.swift"}},"end":"(?!\\\\G)","patterns":[{"begin":"///","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.triple-slash.documentation.swift"},{"begin":"//:","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.double-slash.documentation.swift"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.double-slash.swift"}]}]},"comments-nested":{"begin":"/\\\\*","end":"\\\\*/","patterns":[{"include":"#comments-nested"}]},"compiler-control":{"patterns":[{"begin":"^\\\\s*(#)(if|elseif)\\\\s+(false)\\\\b.*?(?=$|//|/\\\\*)","beginCaptures":{"0":{"name":"meta.preprocessor.conditional.swift"},"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"},"3":{"name":"constant.language.boolean.swift"}},"contentName":"comment.block.preprocessor.swift","end":"(?=^\\\\s*(#(e(?:lseif|lse|ndif)))\\\\b)"},{"begin":"^\\\\s*(#)(if|elseif)\\\\s+","captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"}},"end":"(?=\\\\s*/[*/])|$","name":"meta.preprocessor.conditional.swift","patterns":[{"match":"(&&|\\\\|\\\\|)","name":"keyword.operator.logical.swift"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.swift"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"support.constant.platform.architecture.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(arch)\\\\s*(\\\\()\\\\s*(?:(arm|arm64|powerpc64|powerpc64le|i386|x86_64|s390x)|\\\\w+)\\\\s*(\\\\))"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"support.constant.platform.os.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(os)\\\\s*(\\\\()\\\\s*(?:(macOS|OSX|iOS|tvOS|watchOS|visionOS|Android|Linux|FreeBSD|Windows|PS4)|\\\\w+)\\\\s*(\\\\))"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"entity.name.type.module.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(canImport)\\\\s*(\\\\()([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)(\\\\))"},{"begin":"\\\\b(targetEnvironment)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))|$","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"match":"\\\\b(simulator|UIKitForMac)\\\\b","name":"support.constant.platform.environment.swift"}]},{"begin":"\\\\b(swift|compiler)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))|$","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"match":">=|<","name":"keyword.operator.comparison.swift"},{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)*\\\\b","name":"constant.numeric.swift"}]}]},{"captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"},"3":{"patterns":[{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"match":"^\\\\s*(#)(e(?:lse|ndif))(.*?)(?=$|//|/\\\\*)","name":"meta.preprocessor.conditional.swift"},{"captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.sourcelocation.swift"},"4":{"name":"punctuation.definition.parameters.begin.swift"},"5":{"patterns":[{"begin":"(file)\\\\s*(:)\\\\s*(?=\\")","beginCaptures":{"1":{"name":"support.variable.parameter.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#literals"}]},{"captures":{"1":{"name":"support.variable.parameter.swift"},"2":{"name":"punctuation.separator.key-value.swift"},"3":{"name":"constant.numeric.integer.swift"}},"match":"(line)\\\\s*(:)\\\\s*([0-9]+)"},{"match":",","name":"punctuation.separator.parameters.swift"},{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"6":{"name":"punctuation.definition.parameters.begin.swift"},"7":{"patterns":[{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"match":"^\\\\s*(#)(sourceLocation)((\\\\()([^)]*)(\\\\)))(.*?)(?=$|//|/\\\\*)","name":"meta.preprocessor.sourcelocation.swift"}]},"conditionals":{"patterns":[{"begin":"(?^|~])(->)(?![-!%\\\\&*+./<=>^|~])"},{"captures":{"1":{"name":"keyword.operator.type.composition.swift"}},"match":"(?^|~])(&)(?![-!%\\\\&*+./<=>^|~])"},{"match":"[!?]","name":"keyword.operator.type.optional.swift"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.function.variadic-parameter.swift"},{"match":"\\\\bprotocol\\\\b","name":"keyword.other.type.composition.swift"},{"match":"(?<=\\\\.)(?:Protocol|Type)\\\\b","name":"keyword.other.type.metatype.swift"},{"include":"#declarations-available-types-tuple-type"},{"include":"#declarations-available-types-collection-type"},{"include":"#declarations-generic-argument-clause"}]},"declarations-available-types-collection-type":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.collection-type.begin.swift"}},"end":"]|(?=[)>{}])","endCaptures":{"0":{"name":"punctuation.section.collection-type.end.swift"}},"patterns":[{"include":"#declarations-available-types"},{"include":"#literals-numeric"},{"match":"\\\\b_\\\\b","name":"support.variable.inferred.swift"},{"match":"(?<=\\\\s)\\\\bof\\\\b(?=\\\\s+[(\\\\[_\\\\p{L}\\\\d\\\\p{N}\\\\p{M}])","name":"keyword.other.inline-array.swift"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.key-value.swift"}},"end":"(?=[])>{}])","patterns":[{"match":":","name":"invalid.illegal.extra-colon-in-dictionary-type.swift"},{"include":"#declarations-available-types"}]}]},"declarations-available-types-tuple-type":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.tuple-type.begin.swift"}},"end":"\\\\)|(?=[]>{}])","endCaptures":{"0":{"name":"punctuation.section.tuple-type.end.swift"}},"patterns":[{"include":"#declarations-available-types"}]},"declarations-extension":{"begin":"\\\\b(extension)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.swift","patterns":[{"include":"#declarations-available-types"}]},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function":{"begin":"\\\\b(func)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k)|(?:((?[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g|(?[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g|\\\\g|\\\\.)+)))\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})|$","name":"meta.definition.function.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.swift"}},"name":"meta.definition.function.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function-initializer":{"begin":"(?^|~])(->)(?![-!%\\\\&*+./<=>^|~])\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.function-result.swift"}},"end":"(?!\\\\G)(?=\\\\{|\\\\bwhere\\\\b|[;=])|$","name":"meta.function-result.swift","patterns":[{"match":"\\\\bsending\\\\b","name":"storage.modifier.swift"},{"include":"#declarations-available-types"}]},"declarations-function-subscript":{"begin":"(?|(?=[]){}])","endCaptures":{"0":{"name":"punctuation.separator.generic-argument-clause.end.swift"}},"name":"meta.generic-argument-clause.swift","patterns":[{"include":"#literals-numeric"},{"include":"#declarations-available-types"}]},"declarations-generic-parameter-clause":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.separator.generic-parameter-clause.begin.swift"}},"end":">|(?=[^\\\\&,:<=>`\\\\w\\\\d\\\\s])","endCaptures":{"0":{"name":"punctuation.separator.generic-parameter-clause.end.swift"}},"name":"meta.generic-parameter-clause.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-where-clause"},{"match":"\\\\blet\\\\b","name":"keyword.other.declaration-specifier.swift"},{"match":"\\\\beach\\\\b","name":"keyword.control.loop.swift"},{"captures":{"1":{"name":"variable.language.generic-parameter.swift"}},"match":"\\\\b((?!\\\\d)\\\\w[\\\\w\\\\d]*)\\\\b"},{"match":",","name":"punctuation.separator.generic-parameters.swift"},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.generic-parameter-constraint.swift"}},"end":"(?=[,>]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.generic-parameter-constraint.swift","patterns":[{"begin":"\\\\G","end":"(?=[,>]|(?!\\\\G)\\\\bwhere\\\\b)","name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-type-identifier"},{"include":"#declarations-type-operators"}]}]}]},"declarations-generic-where-clause":{"begin":"\\\\b(where)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.generic-constraint-introducer.swift"}},"end":"(?!\\\\G)$|(?=[\\\\n;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-where-clause-requirement-list"}]},"declarations-generic-where-clause-requirement-list":{"begin":"\\\\G|,\\\\s*","end":"(?=[\\\\n,;>{}]|//|/\\\\*)","patterns":[{"include":"#comments"},{"include":"#constraint"},{"include":"#declarations-available-types"},{"begin":"(?^|~])(==)(?![-!%\\\\&*+./<=>^|~])","beginCaptures":{"1":{"name":"keyword.operator.generic-constraint.same-type.swift"}},"end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.same-type-requirement.swift","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(?^|~])(:)(?![-!%\\\\&*+./<=>^|~])","beginCaptures":{"1":{"name":"keyword.operator.generic-constraint.conforms-to.swift"}},"end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.conformance-requirement.swift","patterns":[{"begin":"\\\\G\\\\s*","contentName":"entity.other.inherited-class.swift","end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","patterns":[{"include":"#declarations-available-types"}]}]}]},"declarations-import":{"begin":"(?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k)","name":"entity.name.type.swift"},{"match":"(?<=\\\\G|\\\\.)\\\\$[0-9]+","name":"entity.name.type.swift"},{"captures":{"1":{"patterns":[{"match":"\\\\.","name":"invalid.illegal.dot-not-allowed-here.swift"}]}},"match":"(?<=\\\\G|\\\\.)(?:((?[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g|(?[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g|\\\\g|\\\\.)+))(?=[.;]|$|//|/\\\\*|\\\\s)","name":"entity.name.type.swift"},{"match":"\\\\.","name":"punctuation.separator.import.swift"},{"begin":"(?!\\\\s*(;|$|//|/\\\\*))","end":"(?=\\\\s*(;|$|//|/\\\\*))","name":"invalid.illegal.character-not-allowed-here.swift"}]}]},"declarations-inheritance-clause":{"begin":"(:)(?=\\\\s*\\\\{)|(:)\\\\s*","beginCaptures":{"1":{"name":"invalid.illegal.empty-inheritance-clause.swift"},"2":{"name":"punctuation.separator.inheritance-clause.swift"}},"end":"(?!\\\\G)$|(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.inheritance-clause.swift","patterns":[{"begin":"\\\\bclass\\\\b","beginCaptures":{"0":{"name":"storage.type.class.swift"}},"end":"(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","patterns":[{"include":"#comments"},{"include":"#declarations-inheritance-clause-more-types"}]},{"begin":"\\\\G","end":"(?!\\\\G)$|(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","patterns":[{"include":"#attributes"},{"include":"#comments"},{"include":"#declarations-inheritance-clause-inherited-type"},{"include":"#declarations-inheritance-clause-more-types"},{"include":"#declarations-type-operators"}]}]},"declarations-inheritance-clause-inherited-type":{"begin":"(?=[_`\\\\p{L}])","end":"(?!\\\\G)","name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-type-identifier"}]},"declarations-inheritance-clause-more-types":{"begin":",\\\\s*","end":"(?!\\\\G)(?!/[*/])|(?=[,={}]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.inheritance-list.more-types","patterns":[{"include":"#attributes"},{"include":"#comments"},{"include":"#declarations-inheritance-clause-inherited-type"},{"include":"#declarations-inheritance-clause-more-types"},{"include":"#declarations-type-operators"}]},"declarations-macro":{"begin":"\\\\b(macro)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*(?=[(<=])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"$|(?=;|//|/\\\\*|[=}])","name":"meta.definition.macro.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"}]},"declarations-operator":{"begin":"(?:\\\\b((?:pre|in|post)fix)\\\\s+)?\\\\b(operator)\\\\s+(((?[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g|\\\\.|(?[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*+)|(\\\\.(\\\\g|\\\\g|\\\\.)++))\\\\s*","beginCaptures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"storage.type.function.operator.swift"},"3":{"name":"entity.name.function.operator.swift"},"4":{"name":"entity.name.function.operator.swift","patterns":[{"match":"\\\\.","name":"invalid.illegal.dot-not-allowed-here.swift"}]}},"end":"(;)|$\\\\n?|(?=/[*/])","endCaptures":{"1":{"name":"punctuation.terminator.statement.swift"}},"name":"meta.definition.operator.swift","patterns":[{"include":"#declarations-operator-swift2"},{"include":"#declarations-operator-swift3"},{"match":"((?!$|;|//|/\\\\*)\\\\S)+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"declarations-operator-swift2":{"begin":"\\\\G(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.operator.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.operator.end.swift"}},"patterns":[{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"keyword.other.operator.associativity.swift"}},"match":"\\\\b(associativity)\\\\s+(left|right)\\\\b"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"constant.numeric.integer.swift"}},"match":"\\\\b(precedence)\\\\s+([0-9]+)\\\\b"},{"captures":{"1":{"name":"storage.modifier.swift"}},"match":"\\\\b(assignment)\\\\b"}]},"declarations-operator-swift3":{"captures":{"2":{"name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-types-precedencegroup"}]},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"\\\\G(:)\\\\s*((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))"},"declarations-parameter-clause":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))(?:\\\\s*(async)\\\\b)?","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"},"2":{"name":"storage.modifier.async.swift"}},"name":"meta.parameter-clause.swift","patterns":[{"include":"#declarations-parameter-list"}]},"declarations-parameter-list":{"patterns":[{"captures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"variable.parameter.function.swift"},"5":{"name":"punctuation.definition.identifier.swift"},"6":{"name":"punctuation.definition.identifier.swift"}},"match":"((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))(?=\\\\s*:)"},{"captures":{"1":{"name":"variable.parameter.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"(((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k)))(?=\\\\s*:)"},{"begin":":\\\\s*(?!\\\\s)","end":"(?=[),])","patterns":[{"match":"\\\\bsending\\\\b","name":"storage.modifier.swift"},{"include":"#declarations-available-types"},{"match":":","name":"invalid.illegal.extra-colon-in-parameter-list.swift"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.swift"}},"end":"(?=[),])","patterns":[{"include":"#expressions"}]}]}]},"declarations-precedencegroup":{"begin":"\\\\b(precedencegroup)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.precedencegroup.swift"},"2":{"name":"entity.name.type.precedencegroup.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)","name":"meta.definition.precedencegroup.swift","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.precedencegroup.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.precedencegroup.end.swift"}},"patterns":[{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-types-precedencegroup"}]},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"\\\\b((?:high|low)erThan)\\\\s*:\\\\s*((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"keyword.other.operator.associativity.swift"}},"match":"\\\\b(associativity)\\\\b(?:\\\\s*:\\\\s*(right|left|none)\\\\b)?"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"constant.language.boolean.swift"}},"match":"\\\\b(assignment)\\\\b(?:\\\\s*:\\\\s*(true|false)\\\\b)?"}]}]},"declarations-protocol":{"begin":"\\\\b(protocol)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.protocol.swift","patterns":[{"include":"#comments"},{"include":"#declarations-inheritance-clause"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"#declarations-protocol-protocol-method"},{"include":"#declarations-protocol-protocol-initializer"},{"include":"#declarations-protocol-associated-type"},{"include":"$self"}]}]},"declarations-protocol-associated-type":{"begin":"\\\\b(associatedtype)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration-specifier.swift"},"2":{"name":"variable.language.associatedtype.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)$|(?=[;}]|$)","name":"meta.definition.associatedtype.swift","patterns":[{"include":"#declarations-inheritance-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-typealias-assignment"}]},"declarations-protocol-protocol-initializer":{"begin":"(?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k)|(?:((?[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g|(?[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g|\\\\g|\\\\.)+)))\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"$|(?=;|//|/\\\\*|})","name":"meta.definition.function.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.function.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.function.end.swift"}},"name":"invalid.illegal.function-body-not-allowed-in-protocol.swift","patterns":[{"include":"$self"}]}]},"declarations-type":{"patterns":[{"begin":"\\\\b(class(?!\\\\s+(?:func|var|let)\\\\b)|struct|actor)\\\\b\\\\s*((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"$self"}]}]},{"include":"#declarations-type-enum"}]},"declarations-type-enum":{"begin":"\\\\b(enum)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"#declarations-type-enum-enum-case-clause"},{"include":"$self"}]}]},"declarations-type-enum-associated-values":{"begin":"\\\\G\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"include":"#comments"},{"begin":"(?:(_)|((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k))\\\\s+(((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k))\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"invalid.illegal.distinct-labels-not-allowed.swift"},"5":{"name":"variable.parameter.function.swift"},"7":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k))\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"variable.parameter.function.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(?![]),])(?=\\\\S)","end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"},{"match":":","name":"invalid.illegal.extra-colon-in-parameter-list.swift"}]}]},"declarations-type-enum-enum-case":{"begin":"((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*","beginCaptures":{"1":{"name":"variable.other.enummember.swift"}},"end":"(?<=\\\\))|(?![(=])","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-associated-values"},{"include":"#declarations-type-enum-raw-value-assignment"}]},"declarations-type-enum-enum-case-clause":{"begin":"\\\\b(case)\\\\b\\\\s*","beginCaptures":{"1":{"name":"storage.type.enum.case.swift"}},"end":"(?=[;}])|(?!\\\\G)(?!/[*/])(?=[^,\\\\s])","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-enum-case"},{"include":"#declarations-type-enum-more-cases"}]},"declarations-type-enum-more-cases":{"begin":",\\\\s*","end":"(?!\\\\G)(?!/[*/])(?=[;}[^,\\\\s]])","name":"meta.enum-case.more-cases","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-enum-case"},{"include":"#declarations-type-enum-more-cases"}]},"declarations-type-enum-raw-value-assignment":{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#comments"},{"include":"#literals"}]},"declarations-type-identifier":{"begin":"((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*","beginCaptures":{"1":{"name":"meta.type-name.swift","patterns":[{"include":"#builtin-types"}]},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!<)","patterns":[{"begin":"(?=<)","end":"(?!\\\\G)","patterns":[{"include":"#declarations-generic-argument-clause"}]}]},"declarations-type-operators":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.composition.swift"}},"match":"(?^|~])(&)(?![-!%\\\\&*+./<=>^|~])"},{"captures":{"1":{"name":"keyword.operator.type.requirement-suppression.swift"}},"match":"(?^|~])(~)(?![-!%\\\\&*+./<=>^|~])"}]},"declarations-typealias":{"begin":"\\\\b(typealias)\\\\s+((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration-specifier.swift"},"2":{"name":"entity.name.type.typealias.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)$|(?=;|//|/\\\\*|$)","name":"meta.definition.typealias.swift","patterns":[{"begin":"\\\\G(?=<)","end":"(?!\\\\G)","patterns":[{"include":"#declarations-generic-parameter-clause"}]},{"include":"#declarations-typealias-assignment"}]},"declarations-typealias-assignment":{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.swift"}},"end":"(?!\\\\G)$|(?=;|//|/\\\\*|$)","patterns":[{"include":"#declarations-available-types"}]},"declarations-typed-variable-declaration":{"begin":"\\\\b(?:(async)\\\\s+)?(let|var)\\\\b\\\\s+(?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k)\\\\s*:","beginCaptures":{"1":{"name":"storage.modifier.async.swift"},"2":{"name":"keyword.other.declaration-specifier.swift"}},"end":"(?=$|[={])","patterns":[{"include":"#declarations-available-types"}]},"declarations-types-precedencegroup":{"patterns":[{"match":"\\\\b(?:BitwiseShift|Assignment|RangeFormation|Casting|Addition|NilCoalescing|Comparison|LogicalConjunction|LogicalDisjunction|Default|Ternary|Multiplication|FunctionArrow)Precedence\\\\b","name":"support.type.swift"}]},"expressions":{"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references"},{"include":"#expressions-trailing-closure"},{"include":"#member-reference"}]},"expressions-trailing-closure":{"patterns":[{"captures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"match":"(#?(?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))(?=\\\\s*\\\\{)","name":"meta.function-call.trailing-closure-only.swift"},{"captures":{"1":{"name":"support.function.any-method.trailing-closure-label.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"match":"((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*(:)(?=\\\\s*\\\\{)"}]},"expressions-without-trailing-closures":{"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references"},{"include":"#member-references"}]},"expressions-without-trailing-closures-or-member-references":{"patterns":[{"include":"#comments"},{"include":"#code-block"},{"include":"#attributes"},{"include":"#expressions-without-trailing-closures-or-member-references-closure-parameter"},{"include":"#literals"},{"include":"#operators"},{"include":"#builtin-types"},{"include":"#builtin-functions"},{"include":"#builtin-global-functions"},{"include":"#builtin-properties"},{"include":"#expressions-without-trailing-closures-or-member-references-compound-name"},{"include":"#conditionals"},{"include":"#keywords"},{"include":"#expressions-without-trailing-closures-or-member-references-availability-condition"},{"include":"#expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression"},{"include":"#expressions-without-trailing-closures-or-member-references-macro-expansion"},{"include":"#expressions-without-trailing-closures-or-member-references-subscript-expression"},{"include":"#expressions-without-trailing-closures-or-member-references-parenthesized-expression"},{"match":"\\\\b_\\\\b","name":"support.variable.discard-value.swift"}]},"expressions-without-trailing-closures-or-member-references-availability-condition":{"begin":"\\\\B(#(?:un)?available)(\\\\()","beginCaptures":{"1":{"name":"support.function.availability-condition.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"captures":{"1":{"name":"keyword.other.platform.os.swift"},"2":{"name":"constant.numeric.swift"}},"match":"\\\\s*\\\\b((?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\\\b\\\\s+([0-9]+(?:\\\\.[0-9]+)*)\\\\b"},{"captures":{"1":{"name":"keyword.other.platform.all.swift"},"2":{"name":"invalid.illegal.character-not-allowed-here.swift"}},"match":"(\\\\*)\\\\s*(.*?)(?=[),])"},{"match":"[^),\\\\s]+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"expressions-without-trailing-closures-or-member-references-closure-parameter":{"match":"\\\\$[0-9]+","name":"variable.language.closure-parameter.swift"},"expressions-without-trailing-closures-or-member-references-compound-name":{"captures":{"1":{"name":"entity.name.function.compound-name.swift"},"2":{"name":"punctuation.definition.entity.swift"},"3":{"name":"punctuation.definition.entity.swift"},"4":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.swift"},"2":{"name":"punctuation.definition.entity.swift"}},"match":"(?`?)(?!_:)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k):","name":"entity.name.function.compound-name.swift"}]}},"match":"((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\(((((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k)):)+)\\\\)"},"expressions-without-trailing-closures-or-member-references-expression-element-list":{"patterns":[{"include":"#comments"},{"begin":"((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*(:)","beginCaptures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#expressions"}]},{"begin":"(?![]),])(?=\\\\S)","end":"(?=[]),])","patterns":[{"include":"#expressions"}]}]},"expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression":{"patterns":[{"begin":"(#?(?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.function-call.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},{"begin":"(?<=[])>_`}\\\\p{L}\\\\p{N}\\\\p{M}])\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.function-call.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]}]},"expressions-without-trailing-closures-or-member-references-macro-expansion":{"match":"(#(?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))","name":"support.function.any-method.swift"},"expressions-without-trailing-closures-or-member-references-parenthesized-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.tuple.begin.swift"}},"end":"(\\\\))\\\\s*((?:\\\\b(?:async|throws|rethrows)\\\\s)*)","endCaptures":{"1":{"name":"punctuation.section.tuple.end.swift"},"2":{"patterns":[{"match":"\\\\brethrows\\\\b","name":"invalid.illegal.rethrows-only-allowed-on-function-declarations.swift"},{"include":"#async-throws"}]}},"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},"expressions-without-trailing-closures-or-member-references-subscript-expression":{"begin":"(?<=[_`\\\\p{L}\\\\p{N}\\\\p{M}])\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.subscript-expression.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},"keywords":{"patterns":[{"match":"(?(?>(?:\\\\\\\\Q(?:(?!\\\\\\\\E)(?!/).)*+(?:\\\\\\\\E|(?=/))|\\\\\\\\.|\\\\(\\\\?#[^)]*\\\\)|\\\\(\\\\?(?>\\\\{(?:[^{].*?|\\\\{[^{].*?}|\\\\{\\\\{[^{].*?}}|\\\\{\\\\{\\\\{[^{].*?}}}|\\\\{\\\\{\\\\{\\\\{[^{].*?}}}}|\\\\{\\\\{\\\\{\\\\{\\\\{.+?}}}}})})(?:\\\\[(?!\\\\d)\\\\w+])?[<>X]?\\\\)|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\])+])+])+])+]|\\\\(\\\\g?+\\\\)|(?:(?!/)[^()\\\\[\\\\\\\\])+)+))?+(?(?>(?:\\\\\\\\Q(?:(?!\\\\\\\\E)(?!/\\\\2).)*+(?:\\\\\\\\E|(?=/\\\\2))|\\\\\\\\.|\\\\(\\\\?#[^)]*\\\\)|\\\\(\\\\?(?>\\\\{(?:[^{].*?|\\\\{[^{].*?}|\\\\{\\\\{[^{].*?}}|\\\\{\\\\{\\\\{[^{].*?}}}|\\\\{\\\\{\\\\{\\\\{[^{].*?}}}}|\\\\{\\\\{\\\\{\\\\{\\\\{.+?}}}}})})(?:\\\\[(?!\\\\d)\\\\w+])?[<>X]?\\\\)|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\])+])+])+])+]|\\\\(\\\\g?+\\\\)|(?:(?!/\\\\2)[^()\\\\[\\\\\\\\])+)+))?+(/\\\\2)|#+/.+(\\\\n)","name":"string.regexp.line.extended.swift"}]},"literals-regular-expression-literal-backreference-or-subpattern":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\g\\\\{)(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(})"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"constant.numeric.integer.decimal.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"}},"match":"(\\\\\\\\g)([-+]?\\\\d+)(?:([-+])(\\\\d+))?"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\[gk]<)(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(>)"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\[gk]\')(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(\')"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\k\\\\{)((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?(})"},{"match":"\\\\\\\\[1-9][0-9]+","name":"keyword.other.back-reference.regexp"},{"captures":{"1":{"name":"keyword.other.back-reference.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.other.back-reference.regexp"}},"match":"(\\\\(\\\\?(?:P[=>]|&))((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?(\\\\))"},{"match":"\\\\(\\\\?R\\\\)","name":"keyword.other.back-reference.regexp"},{"captures":{"1":{"name":"keyword.other.back-reference.regexp"},"2":{"name":"constant.numeric.integer.decimal.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.other.back-reference.regexp"}},"match":"(\\\\(\\\\?)([-+]?\\\\d+)(?:([-+])(\\\\d+))?(\\\\))"}]},"literals-regular-expression-literal-backtracking-directive-or-global-matching-option":{"captures":{"1":{"name":"keyword.control.directive.regexp"},"2":{"name":"keyword.control.directive.regexp"},"3":{"name":"keyword.control.directive.regexp"},"4":{"name":"variable.language.tag.regexp"},"5":{"name":"keyword.control.directive.regexp"},"6":{"name":"keyword.operator.assignment.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"keyword.control.directive.regexp"},"9":{"name":"keyword.control.directive.regexp"}},"match":"(\\\\(\\\\*)(?:(ACCEPT|FAIL|F|MARK(?=:)|(?=:)|COMMIT|PRUNE|SKIP|THEN)(?:(:)([^)]+))?|(LIMIT_(?:DEPTH|HEAP|MATCH))(=)(\\\\d+)|(CRLF|CR|ANYCRLF|ANY|LF|NUL|BSR_ANYCRLF|BSR_UNICODE|NOTEMPTY_ATSTART|NOTEMPTY|NO_AUTO_POSSESS|NO_DOTSTAR_ANCHOR|NO_JIT|NO_START_OPT|UTF|UCP))(\\\\))"},"literals-regular-expression-literal-callout":{"captures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.callout.regexp"},"3":{"name":"constant.numeric.integer.decimal.regexp"},"4":{"name":"entity.name.function.callout.regexp"},"5":{"name":"entity.name.function.callout.regexp"},"6":{"name":"entity.name.function.callout.regexp"},"7":{"name":"entity.name.function.callout.regexp"},"8":{"name":"entity.name.function.callout.regexp"},"9":{"name":"entity.name.function.callout.regexp"},"10":{"name":"entity.name.function.callout.regexp"},"11":{"name":"entity.name.function.callout.regexp"},"12":{"name":"punctuation.definition.group.regexp"},"13":{"name":"punctuation.definition.group.regexp"},"14":{"name":"keyword.control.callout.regexp"},"15":{"name":"entity.name.function.callout.regexp"},"16":{"name":"variable.language.tag-name.regexp"},"17":{"name":"punctuation.definition.group.regexp"},"18":{"name":"punctuation.definition.group.regexp"},"19":{"name":"keyword.control.callout.regexp"},"21":{"name":"variable.language.tag-name.regexp"},"22":{"name":"keyword.control.callout.regexp"},"23":{"name":"punctuation.definition.group.regexp"}},"match":"(\\\\()(?\\\\?C)(?:(?\\\\d+)|`(?(?:[^`]|``)*)`|\'(?(?:[^\']|\'\')*)\'|\\"(?(?:[^\\"]|\\"\\")*)\\"|\\\\^(?(?:[^^]|\\\\^\\\\^)*)\\\\^|%(?(?:[^%]|%%)*)%|#(?(?:[^#]|##)*)#|\\\\$(?(?:[^$]|\\\\$\\\\$)*)\\\\$|\\\\{(?(?:[^}]|}})*)})?(\\\\))|(\\\\()(?\\\\*)(?(?!\\\\d)\\\\w+)(?:\\\\[(?(?!\\\\d)\\\\w+)])?(?:\\\\{[^,}]+(?:,[^,}]+)*})?(\\\\))|(\\\\()(?\\\\?)(?>(\\\\{(?:\\\\g<20>|(?!\\\\{).*?)}))(?:\\\\[(?(?!\\\\d)\\\\w+)])?(?[<>X]?)(\\\\))","name":"meta.callout.regexp"},"literals-regular-expression-literal-character-properties":{"captures":{"1":{"name":"support.variable.character-property.regexp"},"2":{"name":"punctuation.definition.character-class.regexp"},"3":{"name":"support.variable.character-property.regexp"},"4":{"name":"punctuation.definition.character-class.regexp"}},"match":"\\\\\\\\[Pp]\\\\{([-\\\\s\\\\w]+(?:=[-\\\\s\\\\w]+)?)}|(\\\\[:)([-\\\\s\\\\w]+(?:=[-\\\\s\\\\w]+)?)(:])","name":"constant.other.character-class.set.regexp"},"literals-regular-expression-literal-custom-char-class":{"patterns":[{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"include":"#literals-regular-expression-literal-custom-char-class-members"}]}]},"literals-regular-expression-literal-custom-char-class-members":{"patterns":[{"match":"\\\\\\\\b","name":"constant.character.escape.backslash.regexp"},{"include":"#literals-regular-expression-literal-custom-char-class"},{"include":"#literals-regular-expression-literal-quote"},{"include":"#literals-regular-expression-literal-set-operators"},{"include":"#literals-regular-expression-literal-unicode-scalars"},{"include":"#literals-regular-expression-literal-character-properties"}]},"literals-regular-expression-literal-group-option-toggle":{"match":"\\\\(\\\\?(?:\\\\^(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})+|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*-(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*)\\\\)","name":"keyword.other.option-toggle.regexp"},"literals-regular-expression-literal-group-or-conditional":{"patterns":[{"begin":"(\\\\()(\\\\?~)","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.conditional.absent.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.absent.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},{"begin":"(\\\\()(?\\\\?\\\\()(?:(?(?[-+]?\\\\d+)(?:(?[-+])(?\\\\d+))?)|(?R)\\\\g?|(?R&)(?(?(?!\\\\d)\\\\w+)(?:(?[-+])(?\\\\d+))?)|(?<)(?:\\\\g|\\\\g)(?>)|(?\')(?:\\\\g|\\\\g)(?\')|(?DEFINE)|(?VERSION)(?>?=)(?\\\\d+\\\\.\\\\d+))(?\\\\))|(\\\\()(?\\\\?)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.conditional.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.operator.recursion-level.regexp"},"6":{"name":"constant.numeric.integer.decimal.regexp"},"7":{"name":"keyword.control.conditional.regexp"},"8":{"name":"keyword.control.conditional.regexp"},"10":{"name":"variable.other.group-name.regexp"},"11":{"name":"keyword.operator.recursion-level.regexp"},"12":{"name":"constant.numeric.integer.decimal.regexp"},"13":{"name":"keyword.control.conditional.regexp"},"14":{"name":"keyword.control.conditional.regexp"},"15":{"name":"keyword.control.conditional.regexp"},"16":{"name":"keyword.control.conditional.regexp"},"17":{"name":"keyword.control.conditional.regexp"},"18":{"name":"keyword.control.conditional.regexp"},"19":{"name":"keyword.operator.comparison.regexp"},"20":{"name":"constant.numeric.integer.decimal.regexp"},"21":{"name":"keyword.control.conditional.regexp"},"22":{"name":"punctuation.definition.group.regexp"},"23":{"name":"keyword.control.conditional.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.conditional.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},{"begin":"(\\\\()((\\\\?)(?:([!*:=>|]|<[!*=])|P?<(?:((?!\\\\d)\\\\w+)(-))?((?!\\\\d)\\\\w+)>|\'(?:((?!\\\\d)\\\\w+)(-))?((?!\\\\d)\\\\w+)\'|(?:\\\\^(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})+|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*-(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*):)|\\\\*(atomic|pla|positive_lookahead|nla|negative_lookahead|plb|positive_lookbehind|nlb|negative_lookbehind|napla|non_atomic_positive_lookahead|naplb|non_atomic_positive_lookbehind|sr|script_run|asr|atomic_script_run):)?+","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.other.group-options.regexp"},"3":{"name":"punctuation.definition.group.regexp"},"4":{"name":"punctuation.definition.group.regexp"},"5":{"name":"variable.other.group-name.regexp"},"6":{"name":"keyword.operator.balancing-group.regexp"},"7":{"name":"variable.other.group-name.regexp"},"8":{"name":"variable.other.group-name.regexp"},"9":{"name":"keyword.operator.balancing-group.regexp"},"10":{"name":"variable.other.group-name.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]}]},"literals-regular-expression-literal-line-comment":{"captures":{"1":{"name":"punctuation.definition.comment.regexp"}},"match":"(#).*$","name":"comment.line.regexp"},"literals-regular-expression-literal-quote":{"begin":"\\\\\\\\Q","beginCaptures":{"0":{"name":"constant.character.escape.backslash.regexp"}},"end":"\\\\\\\\E|(\\\\n)","endCaptures":{"0":{"name":"constant.character.escape.backslash.regexp"},"1":{"name":"invalid.illegal.returns-not-allowed.regexp"}},"name":"string.quoted.other.regexp.swift"},"literals-regular-expression-literal-regex-guts":{"patterns":[{"include":"#literals-regular-expression-literal-quote"},{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.regexp"}},"name":"comment.block.regexp"},{"begin":"<\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.regexp"}},"end":"}>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.regexp"}},"name":"meta.embedded.expression.regexp"},{"include":"#literals-regular-expression-literal-unicode-scalars"},{"include":"#literals-regular-expression-literal-character-properties"},{"match":"[$^]|\\\\\\\\[ABGYZbyz]|\\\\\\\\K","name":"keyword.control.anchor.regexp"},{"include":"#literals-regular-expression-literal-backtracking-directive-or-global-matching-option"},{"include":"#literals-regular-expression-literal-callout"},{"include":"#literals-regular-expression-literal-backreference-or-subpattern"},{"match":"\\\\.|\\\\\\\\[CDHNORSVWXdhsvw]","name":"constant.character.character-class.regexp"},{"match":"\\\\\\\\c.","name":"constant.character.entity.control-character.regexp"},{"match":"\\\\\\\\[^c]","name":"constant.character.escape.backslash.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"match":"[*+?]","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\{(?:\\\\s*\\\\d+\\\\s*(?:,\\\\s*\\\\d*\\\\s*)?}|\\\\s*,\\\\s*\\\\d+\\\\s*})","name":"keyword.operator.quantifier.regexp"},{"include":"#literals-regular-expression-literal-custom-char-class"},{"include":"#literals-regular-expression-literal-group-option-toggle"},{"include":"#literals-regular-expression-literal-group-or-conditional"}]},"literals-regular-expression-literal-set-operators":{"patterns":[{"match":"&&","name":"keyword.operator.intersection.regexp.swift"},{"match":"--","name":"keyword.operator.subtraction.regexp.swift"},{"match":"~~","name":"keyword.operator.symmetric-difference.regexp.swift"}]},"literals-regular-expression-literal-unicode-scalars":{"match":"\\\\\\\\(?:u\\\\{\\\\s*(?:\\\\h+\\\\s*)+}|u\\\\h{4}|x\\\\{\\\\h+}|x\\\\h{0,2}|U\\\\h{8}|o\\\\{[0-7]+}|0[0-7]{0,3}|N\\\\{(?:U\\\\+\\\\h{1,8}|[-\\\\s\\\\w]+)})","name":"constant.character.numeric.regexp"},"literals-string":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"},{"match":"\\\\\\\\\\\\s*\\\\n","name":"constant.character.escape.newline.swift"},{"include":"#literals-string-string-guts"},{"match":"\\\\S((?!\\\\\\\\\\\\().)*(?=\\"\\"\\")","name":"invalid.illegal.content-before-closing-delimiter.swift"}]},{"begin":"#\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"#(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.raw.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"},{"match":"\\\\\\\\#\\\\s*\\\\n","name":"constant.character.escape.newline.swift"},{"include":"#literals-string-raw-string-guts"},{"match":"\\\\S((?!\\\\\\\\#\\\\().)*(?=\\"\\"\\")","name":"invalid.illegal.content-before-closing-delimiter.swift"}]},{"begin":"(##+)\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"\\\\1(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.raw.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"},{"include":"#literals-string-string-guts"}]},{"begin":"(##+)\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.raw.swift"}},"end":"\\"\\\\1(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.raw.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.raw.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"}]},{"begin":"#\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.raw.swift"}},"end":"\\"#(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.raw.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.raw.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"},{"include":"#literals-string-raw-string-guts"}]}]},"literals-string-raw-string-guts":{"patterns":[{"match":"\\\\\\\\#[\\"\'0\\\\\\\\nrt]","name":"constant.character.escape.swift"},{"match":"\\\\\\\\#u\\\\{\\\\h{1,8}}","name":"constant.character.escape.unicode.swift"},{"begin":"\\\\\\\\#\\\\(","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.swift"}},"contentName":"source.swift","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.swift"}},"name":"meta.embedded.line.swift","patterns":[{"include":"$self"},{"begin":"\\\\(","end":"\\\\)"}]},{"match":"\\\\\\\\#.","name":"invalid.illegal.escape-not-recognized"}]},"literals-string-string-guts":{"patterns":[{"match":"\\\\\\\\[\\"\'0\\\\\\\\nrt]","name":"constant.character.escape.swift"},{"match":"\\\\\\\\u\\\\{\\\\h{1,8}}","name":"constant.character.escape.unicode.swift"},{"begin":"\\\\\\\\\\\\(","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.swift"}},"contentName":"source.swift","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.swift"}},"name":"meta.embedded.line.swift","patterns":[{"include":"$self"},{"begin":"\\\\(","end":"\\\\)"}]},{"match":"\\\\\\\\.","name":"invalid.illegal.escape-not-recognized"}]},"member-reference":{"patterns":[{"captures":{"1":{"name":"variable.other.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"match":"(?<=\\\\.)((?`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k))"}]},"operators":{"patterns":[{"match":"\\\\b(is\\\\b|as([!?]\\\\B|\\\\b))","name":"keyword.operator.type-casting.swift"},{"begin":"(?=(?[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])|\\\\.(\\\\g|[.\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))","end":"(?!\\\\G)","patterns":[{"captures":{"0":{"patterns":[{"match":"\\\\G(\\\\+\\\\+|--)$","name":"keyword.operator.increment-or-decrement.swift"},{"match":"\\\\G([-+])$","name":"keyword.operator.arithmetic.unary.swift"},{"match":"\\\\G!$","name":"keyword.operator.logical.not.swift"},{"match":"\\\\G~$","name":"keyword.operator.bitwise.not.swift"},{"match":".+","name":"keyword.operator.custom.prefix.swift"}]}},"match":"\\\\G(?<=^|[(,:;\\\\[{\\\\s])((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?![]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":"\\\\G(\\\\+\\\\+|--)$","name":"keyword.operator.increment-or-decrement.swift"},{"match":"\\\\G!$","name":"keyword.operator.increment-or-decrement.swift"},{"match":".+","name":"keyword.operator.custom.postfix.swift"}]}},"match":"\\\\G(?>|[\\\\&^|]|&&|\\\\|\\\\|)=$","name":"keyword.operator.assignment.compound.swift"},{"match":"\\\\G([-*+/])$","name":"keyword.operator.arithmetic.swift"},{"match":"\\\\G&([-*+])$","name":"keyword.operator.arithmetic.overflow.swift"},{"match":"\\\\G%$","name":"keyword.operator.arithmetic.remainder.swift"},{"match":"\\\\G(==|!=|[<>]|>=|<=|~=)$","name":"keyword.operator.comparison.swift"},{"match":"\\\\G\\\\?\\\\?$","name":"keyword.operator.coalescing.swift"},{"match":"\\\\G(&&|\\\\|\\\\|)$","name":"keyword.operator.logical.swift"},{"match":"\\\\G([\\\\&^|]|<<|>>)$","name":"keyword.operator.bitwise.swift"},{"match":"\\\\G([!=]==)$","name":"keyword.operator.bitwise.swift"},{"match":"\\\\G\\\\?$","name":"keyword.operator.ternary.swift"},{"match":".+","name":"keyword.operator.custom.infix.swift"}]}},"match":"\\\\G((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++"},{"captures":{"0":{"patterns":[{"match":".+","name":"keyword.operator.custom.prefix.dot.swift"}]}},"match":"\\\\G(?<=^|[(,:;\\\\[{\\\\s])\\\\.((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+./<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?![]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":".+","name":"keyword.operator.custom.postfix.dot.swift"}]}},"match":"\\\\G(?=0;w--){let g=i[w];if(g&&typeof g=="object"&&typeof g.onResponse=="function"){let q=await g.onResponse(p,N);if(q){if(!(q instanceof Response))throw Error("Middleware must return new Response() when modifying the response");p=q}}}if(p.status===204||p.headers.get("Content-Length")==="0")return p.ok?{data:{},response:p}:{error:{},response:p};if(p.ok)return j==="stream"?{data:p.body,response:p}:{data:await p[j](),response:p};let C=await p.text();try{C=JSON.parse(C)}catch{}return{error:C,response:p}}return{async GET(l,c){return u(l,{...c,method:"GET"})},async PUT(l,c){return u(l,{...c,method:"PUT"})},async POST(l,c){return u(l,{...c,method:"POST"})},async DELETE(l,c){return u(l,{...c,method:"DELETE"})},async OPTIONS(l,c){return u(l,{...c,method:"OPTIONS"})},async HEAD(l,c){return u(l,{...c,method:"HEAD"})},async PATCH(l,c){return u(l,{...c,method:"PATCH"})},async TRACE(l,c){return u(l,{...c,method:"TRACE"})},use(...l){for(let c of l)if(c){if(typeof c!="object"||!("onRequest"in c||"onResponse"in c))throw Error("Middleware must be an object with one of `onRequest()` or `onResponse()`");i.push(c)}},eject(...l){for(let c of l){let f=i.indexOf(c);f!==-1&&i.splice(f,1)}}}}function P(s,r,e){if(r==null)return"";if(typeof r=="object")throw Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${s}=${(e==null?void 0:e.allowReserved)===!0?r:encodeURIComponent(r)}`}function J(s,r,e){if(!r||typeof r!="object")return"";let a=[],t={simple:",",label:".",matrix:";"}[e.style]||"&";if(e.style!=="deepObject"&&e.explode===!1){for(let i in r)a.push(i,e.allowReserved===!0?r[i]:encodeURIComponent(r[i]));let n=a.join(",");switch(e.style){case"form":return`${s}=${n}`;case"label":return`.${n}`;case"matrix":return`;${s}=${n}`;default:return n}}for(let n in r){let i=e.style==="deepObject"?`${s}[${n}]`:n;a.push(P(i,r[n],e))}let o=a.join(t);return e.style==="label"||e.style==="matrix"?`${t}${o}`:o}function V(s,r,e){if(!Array.isArray(r))return"";if(e.explode===!1){let o={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[e.style]||",",n=(e.allowReserved===!0?r:r.map(i=>encodeURIComponent(i))).join(o);switch(e.style){case"simple":return n;case"label":return`.${n}`;case"matrix":return`;${s}=${n}`;default:return`${s}=${n}`}}let a={simple:",",label:".",matrix:";"}[e.style]||"&",t=[];for(let o of r)e.style==="simple"||e.style==="label"?t.push(e.allowReserved===!0?o:encodeURIComponent(o)):t.push(P(s,o,e));return e.style==="label"||e.style==="matrix"?`${a}${t.join(a)}`:t.join(a)}function B(s){return function(r){let e=[];if(r&&typeof r=="object")for(let a in r){let t=r[a];if(t!=null){if(Array.isArray(t)){e.push(V(a,t,{style:"form",explode:!0,...s==null?void 0:s.array,allowReserved:(s==null?void 0:s.allowReserved)||!1}));continue}if(typeof t=="object"){e.push(J(a,t,{style:"deepObject",explode:!0,...s==null?void 0:s.object,allowReserved:(s==null?void 0:s.allowReserved)||!1}));continue}e.push(P(a,t,s))}}return e.join("&")}}function Se(s,r){let e=s;for(let a of s.match(xe)??[]){let t=a.substring(1,a.length-1),o=!1,n="simple";if(t.endsWith("*")&&(o=!0,t=t.substring(0,t.length-1)),t.startsWith(".")?(n="label",t=t.substring(1)):t.startsWith(";")&&(n="matrix",t=t.substring(1)),!r||r[t]===void 0||r[t]===null)continue;let i=r[t];if(Array.isArray(i)){e=e.replace(a,V(t,i,{style:n,explode:o}));continue}if(typeof i=="object"){e=e.replace(a,J(t,i,{style:n,explode:o}));continue}if(n==="matrix"){e=e.replace(a,`;${P(t,i)}`);continue}e=e.replace(a,n==="label"?`.${i}`:i)}return e}function Te(s){return JSON.stringify(s)}function $e(s,r){var t;let e=`${r.baseUrl}${s}`;(t=r.params)!=null&&t.path&&(e=Se(e,r.params.path));let a=r.querySerializer(r.params.query??{});return a.startsWith("?")&&(a=a.substring(1)),a&&(e+=`?${a}`),e}function X(...s){let r=new Headers;for(let e of s){if(!e||typeof e!="object")continue;let a=e instanceof Headers?e.entries():Object.entries(e);for(let[t,o]of a)if(o===null)r.delete(t);else if(Array.isArray(o))for(let n of o)r.append(t,n);else o!==void 0&&r.set(t,o)}return r}function Ee(s){return ke(s)}function K(){let s=H().httpURL;return s.search="",s.hash="",s.toString()}const A={post(s,r,e={}){let a=`${_.withTrailingSlash(e.baseUrl??K())}api${s}`;return fetch(a,{method:"POST",headers:{"Content-Type":"application/json",...A.headers(),...e.headers},body:JSON.stringify(r),signal:e.signal}).then(async t=>{var n;let o=(n=t.headers.get("Content-Type"))==null?void 0:n.startsWith("application/json");if(!t.ok){let i=o?await t.json():await t.text();throw Error(t.statusText,{cause:i})}return o?t.json():t.text()}).catch(t=>{throw E.error(`Error requesting ${a}`,t),t})},get(s,r={}){let e=`${_.withTrailingSlash(r.baseUrl??K())}api${s}`;return fetch(e,{method:"GET",headers:{...A.headers(),...r.headers}}).then(a=>{var t;if(!a.ok)throw Error(a.statusText);return(t=a.headers.get("Content-Type"))!=null&&t.startsWith("application/json")?a.json():null}).catch(a=>{throw E.error(`Error requesting ${e}`,a),a})},headers(){return H().headers()},handleResponse:s=>s.error?Promise.reject(s.error):Promise.resolve(s.data),handleResponseReturnNull:s=>s.error?Promise.reject(s.error):Promise.resolve(null)};function Pe(s){let r=Ee({baseUrl:s.httpURL.toString()});return r.use({onRequest:e=>{let a=s.headers();for(let[t,o]of Object.entries(a))e.headers.set(t,o);return e}}),r}var Q=$({});function Oe(){return U(Q)}function Ce(){let s=ne(Q);return{registerAction:T((r,e)=>{s(a=>({...a,[r]:e}))}),unregisterAction:T(r=>{s(e=>{let{[r]:a,...t}=e;return t})})}}var Y=D(),y=z(ie(),1);function qe(s,r){let e=(0,Y.c)(13),{registerAction:a,unregisterAction:t}=Ce(),o=U(ue),n=r===ce.NOOP,i;e[0]===r?i=e[1]:(i=d=>r(d),e[0]=r,e[1]=i);let u=T(i),l;e[2]!==r||e[3]!==o||e[4]!==s?(l=d=>{if(d.defaultPrevented)return;let j=o.getHotkey(s).key;I(j)(d)&&r(d)!==!1&&(d.preventDefault(),d.stopPropagation())},e[2]=r,e[3]=o,e[4]=s,e[5]=l):l=e[5];let c=T(l);W(document,"keydown",c);let f,h;e[6]!==n||e[7]!==u||e[8]!==a||e[9]!==s||e[10]!==t?(f=()=>{if(!n)return a(s,u),()=>t(s)},h=[u,s,n,a,t],e[6]=n,e[7]=u,e[8]=a,e[9]=s,e[10]=t,e[11]=f,e[12]=h):(f=e[11],h=e[12]),(0,y.useEffect)(f,h)}function Ae(s,r){let e=(0,Y.c)(2),a;e[0]===r?a=e[1]:(a=t=>{if(!t.defaultPrevented)for(let[o,n]of le.entries(r))I(o)(t)&&(E.debug("Satisfied",o,t),n(t)!==!1&&(t.preventDefault(),t.stopPropagation()))},e[0]=r,e[1]=a),W(s,"keydown",a)}var x=z(de(),1),O="Switch",[Ne,rt]=pe(O),[ze,Ue]=Ne(O),Z=y.forwardRef((s,r)=>{let{__scopeSwitch:e,name:a,checked:t,defaultChecked:o,required:n,disabled:i,value:u="on",onCheckedChange:l,form:c,...f}=s,[h,d]=y.useState(null),j=M(r,m=>d(m)),b=y.useRef(!1),k=h?c||!!h.closest("form"):!0,[R,S]=he({prop:t,defaultProp:o??!1,onChange:l,caller:O});return(0,x.jsxs)(ze,{scope:e,checked:R,disabled:i,children:[(0,x.jsx)(F.button,{type:"button",role:"switch","aria-checked":R,"aria-required":n,"data-state":se(R),"data-disabled":i?"":void 0,disabled:i,value:u,...f,ref:j,onClick:me(s.onClick,m=>{S(v=>!v),k&&(b.current=m.isPropagationStopped(),b.current||m.stopPropagation())})}),k&&(0,x.jsx)(re,{control:h,bubbles:!b.current,name:a,value:u,checked:R,required:n,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});Z.displayName=O;var ee="SwitchThumb",te=y.forwardRef((s,r)=>{let{__scopeSwitch:e,...a}=s,t=Ue(ee,e);return(0,x.jsx)(F.span,{"data-state":se(t.checked),"data-disabled":t.disabled?"":void 0,...a,ref:r})});te.displayName=ee;var _e="SwitchBubbleInput",re=y.forwardRef(({__scopeSwitch:s,control:r,checked:e,bubbles:a=!0,...t},o)=>{let n=y.useRef(null),i=M(n,o),u=fe(e),l=ye(r);return y.useEffect(()=>{let c=n.current;if(!c)return;let f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"checked").set;if(u!==e&&h){let d=new Event("click",{bubbles:a});h.call(c,e),c.dispatchEvent(d)}},[u,e,a]),(0,x.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...t,tabIndex:-1,ref:i,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});re.displayName=_e;function se(s){return s?"checked":"unchecked"}var ae=Z,De=te,Ie=D(),He=L("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",{variants:{size:{default:"h-6 w-11 mb-1",sm:"h-4.5 w-8.5",xs:"h-4 w-7"}},defaultVariants:{size:"default"}}),Me=L("pointer-events-none block rounded-full bg-background shadow-xs ring-0 transition-transform",{variants:{size:{default:"h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",sm:"h-3.5 w-3.5 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",xs:"h-3 w-3 data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0"}},defaultVariants:{size:"default"}}),oe=y.forwardRef((s,r)=>{let e=(0,Ie.c)(16),a,t,o;e[0]===s?(a=e[1],t=e[2],o=e[3]):({className:a,size:o,...t}=s,e[0]=s,e[1]=a,e[2]=t,e[3]=o);let n;e[4]!==a||e[5]!==o?(n=G(He({size:o}),a),e[4]=a,e[5]=o,e[6]=n):n=e[6];let i;e[7]===o?i=e[8]:(i=G(Me({size:o})),e[7]=o,e[8]=i);let u;e[9]===i?u=e[10]:(u=(0,x.jsx)(De,{className:i}),e[9]=i,e[10]=u);let l;return e[11]!==t||e[12]!==r||e[13]!==n||e[14]!==u?(l=(0,x.jsx)(ae,{className:n,...t,ref:r,children:u}),e[11]=t,e[12]=r,e[13]=n,e[14]=u,e[15]=l):l=e[15],l});oe.displayName=ae.displayName;export{A as a,je as c,Oe as i,ge as l,qe as n,Pe as o,Ae as r,we as s,oe as t}; diff --git a/docs/assets/synthwave-84-Bh-Hantf.js b/docs/assets/synthwave-84-Bh-Hantf.js new file mode 100644 index 0000000..c2fd5b6 --- /dev/null +++ b/docs/assets/synthwave-84-Bh-Hantf.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse(`{"colors":{"activityBar.background":"#171520","activityBar.dropBackground":"#34294f66","activityBar.foreground":"#ffffffCC","activityBarBadge.background":"#f97e72","activityBarBadge.foreground":"#2a2139","badge.background":"#2a2139","badge.foreground":"#ffffff","breadcrumbPicker.background":"#232530","button.background":"#614D85","debugToolBar.background":"#463465","diffEditor.insertedTextBackground":"#0beb9935","diffEditor.removedTextBackground":"#fe445035","dropdown.background":"#232530","dropdown.listBackground":"#2a2139","editor.background":"#262335","editor.findMatchBackground":"#D18616bb","editor.findMatchHighlightBackground":"#D1861655","editor.findRangeHighlightBackground":"#34294f1a","editor.hoverHighlightBackground":"#463564","editor.lineHighlightBorder":"#7059AB66","editor.rangeHighlightBackground":"#49549539","editor.selectionBackground":"#ffffff20","editor.selectionHighlightBackground":"#ffffff20","editor.wordHighlightBackground":"#34294f88","editor.wordHighlightStrongBackground":"#34294f88","editorBracketMatch.background":"#34294f66","editorBracketMatch.border":"#495495","editorCodeLens.foreground":"#ffffff7c","editorCursor.background":"#241b2f","editorCursor.foreground":"#f97e72","editorError.foreground":"#fe4450","editorGroup.border":"#495495","editorGroup.dropBackground":"#4954954a","editorGroupHeader.tabsBackground":"#241b2f","editorGutter.addedBackground":"#206d4bd6","editorGutter.deletedBackground":"#fa2e46a4","editorGutter.modifiedBackground":"#b893ce8f","editorIndentGuide.activeBackground":"#A148AB80","editorIndentGuide.background":"#444251","editorLineNumber.activeForeground":"#ffffffcc","editorLineNumber.foreground":"#ffffff73","editorOverviewRuler.addedForeground":"#09f7a099","editorOverviewRuler.border":"#34294fb3","editorOverviewRuler.deletedForeground":"#fe445099","editorOverviewRuler.errorForeground":"#fe4450dd","editorOverviewRuler.findMatchForeground":"#D1861699","editorOverviewRuler.modifiedForeground":"#b893ce99","editorOverviewRuler.warningForeground":"#72f1b8cc","editorRuler.foreground":"#A148AB80","editorSuggestWidget.highlightForeground":"#f97e72","editorSuggestWidget.selectedBackground":"#ffffff36","editorWarning.foreground":"#72f1b8cc","editorWidget.background":"#171520DC","editorWidget.border":"#ffffff22","editorWidget.resizeBorder":"#ffffff44","errorForeground":"#fe4450","extensionButton.prominentBackground":"#f97e72","extensionButton.prominentHoverBackground":"#ff7edb","focusBorder":"#1f212b","foreground":"#ffffff","gitDecoration.addedResourceForeground":"#72f1b8cc","gitDecoration.deletedResourceForeground":"#fe4450","gitDecoration.ignoredResourceForeground":"#ffffff59","gitDecoration.modifiedResourceForeground":"#b893ceee","gitDecoration.untrackedResourceForeground":"#72f1b8","input.background":"#2a2139","inputOption.activeBorder":"#ff7edb99","inputValidation.errorBackground":"#fe445080","inputValidation.errorBorder":"#fe445000","list.activeSelectionBackground":"#ffffff20","list.activeSelectionForeground":"#ffffff","list.dropBackground":"#34294f66","list.errorForeground":"#fe4450E6","list.focusBackground":"#ffffff20","list.focusForeground":"#ffffff","list.highlightForeground":"#f97e72","list.hoverBackground":"#37294d99","list.hoverForeground":"#ffffff","list.inactiveFocusBackground":"#2a213999","list.inactiveSelectionBackground":"#ffffff20","list.inactiveSelectionForeground":"#ffffff","list.warningForeground":"#72f1b8bb","menu.background":"#463465","minimapGutter.addedBackground":"#09f7a099","minimapGutter.deletedBackground":"#fe4450","minimapGutter.modifiedBackground":"#b893ce","panelTitle.activeBorder":"#f97e72","peekView.border":"#495495","peekViewEditor.background":"#232530","peekViewEditor.matchHighlightBackground":"#D18616bb","peekViewResult.background":"#232530","peekViewResult.matchHighlightBackground":"#D1861655","peekViewResult.selectionBackground":"#2a213980","peekViewTitle.background":"#232530","pickerGroup.foreground":"#f97e72ea","progressBar.background":"#f97e72","scrollbar.shadow":"#2a2139","scrollbarSlider.activeBackground":"#9d8bca20","scrollbarSlider.background":"#9d8bca30","scrollbarSlider.hoverBackground":"#9d8bca50","selection.background":"#ffffff20","sideBar.background":"#241b2f","sideBar.dropBackground":"#34294f4c","sideBar.foreground":"#ffffff99","sideBarSectionHeader.background":"#241b2f","sideBarSectionHeader.foreground":"#ffffffca","statusBar.background":"#241b2f","statusBar.debuggingBackground":"#f97e72","statusBar.debuggingForeground":"#08080f","statusBar.foreground":"#ffffff80","statusBar.noFolderBackground":"#241b2f","statusBarItem.prominentBackground":"#2a2139","statusBarItem.prominentHoverBackground":"#34294f","tab.activeBorder":"#880088","tab.border":"#241b2f00","tab.inactiveBackground":"#262335","terminal.ansiBlue":"#03edf9","terminal.ansiBrightBlue":"#03edf9","terminal.ansiBrightCyan":"#03edf9","terminal.ansiBrightGreen":"#72f1b8","terminal.ansiBrightMagenta":"#ff7edb","terminal.ansiBrightRed":"#fe4450","terminal.ansiBrightYellow":"#fede5d","terminal.ansiCyan":"#03edf9","terminal.ansiGreen":"#72f1b8","terminal.ansiMagenta":"#ff7edb","terminal.ansiRed":"#fe4450","terminal.ansiYellow":"#f3e70f","terminal.foreground":"#ffffff","terminal.selectionBackground":"#ffffff20","terminalCursor.background":"#ffffff","terminalCursor.foreground":"#03edf9","textLink.activeForeground":"#ff7edb","textLink.foreground":"#f97e72","titleBar.activeBackground":"#241b2f","titleBar.inactiveBackground":"#241b2f","walkThrough.embeddedEditorBackground":"#232530","widget.shadow":"#2a2139"},"displayName":"Synthwave '84","name":"synthwave-84","semanticHighlighting":true,"tokenColors":[{"scope":["comment","string.quoted.docstring.multi.python","string.quoted.docstring.multi.python punctuation.definition.string.begin.python","string.quoted.docstring.multi.python punctuation.definition.string.end.python"],"settings":{"fontStyle":"italic","foreground":"#848bbd"}},{"scope":["string.quoted","string.template","punctuation.definition.string"],"settings":{"foreground":"#ff8b39"}},{"scope":"string.template meta.embedded.line","settings":{"foreground":"#b6b1b1"}},{"scope":["variable","entity.name.variable"],"settings":{"foreground":"#ff7edb"}},{"scope":"variable.language","settings":{"fontStyle":"bold","foreground":"#fe4450"}},{"scope":"variable.parameter","settings":{"fontStyle":"italic"}},{"scope":["storage.type","storage.modifier"],"settings":{"foreground":"#fede5d"}},{"scope":"constant","settings":{"foreground":"#f97e72"}},{"scope":"string.regexp","settings":{"foreground":"#f97e72"}},{"scope":"constant.numeric","settings":{"foreground":"#f97e72"}},{"scope":"constant.language","settings":{"foreground":"#f97e72"}},{"scope":"constant.character.escape","settings":{"foreground":"#36f9f6"}},{"scope":"entity.name","settings":{"foreground":"#fe4450"}},{"scope":"entity.name.tag","settings":{"foreground":"#72f1b8"}},{"scope":["punctuation.definition.tag"],"settings":{"foreground":"#36f9f6"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#fede5d"}},{"scope":"entity.other.attribute-name.html","settings":{"fontStyle":"italic","foreground":"#fede5d"}},{"scope":["entity.name.type","meta.attribute.class.html"],"settings":{"foreground":"#fe4450"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#D50"}},{"scope":["entity.name.function","variable.function"],"settings":{"foreground":"#36f9f6"}},{"scope":["keyword.control.export.js","keyword.control.import.js"],"settings":{"foreground":"#72f1b8"}},{"scope":["constant.numeric.decimal.js"],"settings":{"foreground":"#2EE2FA"}},{"scope":"keyword","settings":{"foreground":"#fede5d"}},{"scope":"keyword.control","settings":{"foreground":"#fede5d"}},{"scope":"keyword.operator","settings":{"foreground":"#fede5d"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.logical"],"settings":{"foreground":"#fede5d"}},{"scope":"keyword.other.unit","settings":{"foreground":"#f97e72"}},{"scope":"support","settings":{"foreground":"#fe4450"}},{"scope":"support.function","settings":{"foreground":"#36f9f6"}},{"scope":"support.variable","settings":{"foreground":"#ff7edb"}},{"scope":["meta.object-literal.key","support.type.property-name"],"settings":{"foreground":"#ff7edb"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#b6b1b1"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#fede5d"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#72f1b8"}},{"scope":["support.type.property-name.css","support.type.property-name.json"],"settings":{"foreground":"#72f1b8"}},{"scope":"switch-block.expr.js","settings":{"foreground":"#72f1b8"}},{"scope":"variable.other.constant.property.js, variable.other.property.js","settings":{"foreground":"#2ee2fa"}},{"scope":"constant.other.color","settings":{"foreground":"#f97e72"}},{"scope":"support.constant.font-name","settings":{"foreground":"#f97e72"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#36f9f6"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#D50"}},{"scope":"support.function.misc.css","settings":{"foreground":"#fe4450"}},{"scope":["markup.heading","entity.name.section"],"settings":{"foreground":"#ff7edb"}},{"scope":["text.html","keyword.operator.assignment"],"settings":{"foreground":"#ffffffee"}},{"scope":"markup.quote","settings":{"fontStyle":"italic","foreground":"#b6b1b1cc"}},{"scope":"beginning.punctuation.definition.list","settings":{"foreground":"#ff7edb"}},{"scope":"markup.underline.link","settings":{"foreground":"#D50"}},{"scope":"string.other.link.description","settings":{"foreground":"#f97e72"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#36f9f6"}},{"scope":"variable.parameter.function-call.python","settings":{"foreground":"#72f1b8"}},{"scope":"storage.type.cs","settings":{"foreground":"#fe4450"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#ff7edb"}},{"scope":["entity.name.variable.field.cs","entity.name.variable.property.cs"],"settings":{"foreground":"#ff7edb"}},{"scope":"constant.other.placeholder.c","settings":{"fontStyle":"italic","foreground":"#72f1b8"}},{"scope":["keyword.control.directive.include.c","keyword.control.directive.define.c"],"settings":{"foreground":"#72f1b8"}},{"scope":"storage.modifier.c","settings":{"foreground":"#fe4450"}},{"scope":"source.cpp keyword.operator","settings":{"foreground":"#fede5d"}},{"scope":"constant.other.placeholder.cpp","settings":{"fontStyle":"italic","foreground":"#72f1b8"}},{"scope":["keyword.control.directive.include.cpp","keyword.control.directive.define.cpp"],"settings":{"foreground":"#72f1b8"}},{"scope":"storage.modifier.specifier.const.cpp","settings":{"foreground":"#fe4450"}},{"scope":["source.elixir support.type.elixir","source.elixir meta.module.elixir entity.name.class.elixir"],"settings":{"foreground":"#36f9f6"}},{"scope":"source.elixir entity.name.function","settings":{"foreground":"#72f1b8"}},{"scope":["source.elixir constant.other.symbol.elixir","source.elixir constant.other.keywords.elixir"],"settings":{"foreground":"#36f9f6"}},{"scope":"source.elixir punctuation.definition.string","settings":{"foreground":"#72f1b8"}},{"scope":["source.elixir variable.other.readwrite.module.elixir","source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir"],"settings":{"foreground":"#72f1b8"}},{"scope":"source.elixir .punctuation.binary.elixir","settings":{"fontStyle":"italic","foreground":"#ff7edb"}},{"scope":["entity.global.clojure"],"settings":{"fontStyle":"bold","foreground":"#36f9f6"}},{"scope":["storage.control.clojure"],"settings":{"fontStyle":"italic","foreground":"#36f9f6"}},{"scope":["meta.metadata.simple.clojure","meta.metadata.map.clojure"],"settings":{"fontStyle":"italic","foreground":"#fe4450"}},{"scope":["meta.quoted-expression.clojure"],"settings":{"fontStyle":"italic"}},{"scope":["meta.symbol.clojure"],"settings":{"foreground":"#ff7edbff"}},{"scope":"source.go","settings":{"foreground":"#ff7edbff"}},{"scope":"source.go meta.function-call.go","settings":{"foreground":"#36f9f6"}},{"scope":["source.go keyword.package.go","source.go keyword.import.go","source.go keyword.function.go","source.go keyword.type.go","source.go keyword.const.go","source.go keyword.var.go","source.go keyword.map.go","source.go keyword.channel.go","source.go keyword.control.go"],"settings":{"foreground":"#fede5d"}},{"scope":["source.go storage.type","source.go keyword.struct.go","source.go keyword.interface.go"],"settings":{"foreground":"#72f1b8"}},{"scope":["source.go constant.language.go","source.go constant.other.placeholder.go","source.go variable"],"settings":{"foreground":"#2EE2FA"}},{"scope":["markup.underline.link.markdown","markup.inline.raw.string.markdown"],"settings":{"fontStyle":"italic","foreground":"#72f1b8"}},{"scope":["string.other.link.title.markdown"],"settings":{"foreground":"#fede5d"}},{"scope":["markup.heading.markdown","entity.name.section.markdown"],"settings":{"fontStyle":"bold","foreground":"#ff7edb"}},{"scope":["markup.italic.markdown"],"settings":{"fontStyle":"italic","foreground":"#2EE2FA"}},{"scope":["markup.bold.markdown"],"settings":{"fontStyle":"bold","foreground":"#2EE2FA"}},{"scope":["punctuation.definition.quote.begin.markdown","markup.quote.markdown"],"settings":{"foreground":"#72f1b8"}},{"scope":["source.dart","source.python","source.scala"],"settings":{"foreground":"#ff7edbff"}},{"scope":["string.interpolated.single.dart"],"settings":{"foreground":"#f97e72"}},{"scope":["variable.parameter.dart"],"settings":{"foreground":"#72f1b8"}},{"scope":["constant.numeric.dart"],"settings":{"foreground":"#2EE2FA"}},{"scope":["variable.parameter.scala"],"settings":{"foreground":"#2EE2FA"}},{"scope":["meta.template.expression.scala"],"settings":{"foreground":"#72f1b8"}}],"type":"dark"}`));export{e as default}; diff --git a/docs/assets/system-verilog-_7ecP3he.js b/docs/assets/system-verilog-_7ecP3he.js new file mode 100644 index 0000000..2fab2ec --- /dev/null +++ b/docs/assets/system-verilog-_7ecP3he.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"SystemVerilog","fileTypes":["v","vh","sv","svh"],"name":"system-verilog","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#typedef-enum-struct-union"},{"include":"#typedef"},{"include":"#functions"},{"include":"#keywords"},{"include":"#tables"},{"include":"#function-task"},{"include":"#module-declaration"},{"include":"#class-declaration"},{"include":"#enum-struct-union"},{"include":"#sequence"},{"include":"#all-types"},{"include":"#module-parameters"},{"include":"#module-no-parameters"},{"include":"#port-net-parameter"},{"include":"#system-tf"},{"include":"#assertion"},{"include":"#bind-directive"},{"include":"#cast-operator"},{"include":"#storage-scope"},{"include":"#attributes"},{"include":"#imports"},{"include":"#operators"},{"include":"#constants"},{"include":"#identifiers"},{"include":"#selects"}],"repository":{"all-types":{"patterns":[{"include":"#built-ins"},{"include":"#modifiers"}]},"assertion":{"captures":{"1":{"name":"entity.name.goto-label.php"},"2":{"name":"keyword.operator.systemverilog"},"3":{"name":"keyword.sva.systemverilog"}},"match":"\\\\b([A-Z_a-z][$0-9A-Z_a-z]*)[\\\\t\\\\n\\\\r ]*(:)[\\\\t\\\\n\\\\r ]*(assert|assume|cover|restrict)\\\\b"},"attributes":{"begin":"(?|\\\\|=>|->>|\\\\*>|#-#|#=#|&&&","name":"keyword.operator.logical.systemverilog"},{"match":"@|##?|->|<->","name":"keyword.operator.channel.systemverilog"},{"match":"(?:[-%\\\\&*+/^|]|>>>?|<<>>?","name":"keyword.operator.bitwise.shift.systemverilog"},{"match":"~&|~\\\\|?|\\\\^~|~\\\\^|[\\\\&^{|]|'\\\\{|[:?}]","name":"keyword.operator.bitwise.systemverilog"},{"match":"<=?|>=?|==\\\\?|!=\\\\?|===|!==|==|!=","name":"keyword.operator.comparison.systemverilog"}]},"parameters":{"begin":"[\\\\t\\\\n\\\\r ]*(#)[\\\\t\\\\n\\\\r ]*(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.channel.systemverilog"},"2":{"name":"punctuation.section.parameters.begin"}},"end":"(\\\\))[\\\\t\\\\n\\\\r ]*(?=[(;A-Z\\\\\\\\_a-z]|$)","endCaptures":{"1":{"name":"punctuation.section.parameters.end"}},"name":"meta.parameters.systemverilog","patterns":[{"include":"#port-net-parameter"},{"include":"#comments"},{"include":"#constants"},{"include":"#operators"},{"include":"#strings"},{"include":"#system-tf"},{"include":"#functions"},{"match":"\\\\bvirtual\\\\b","name":"storage.modifier.systemverilog"},{"include":"#module-binding"}]},"port-net-parameter":{"patterns":[{"captures":{"1":{"name":"support.type.direction.systemverilog"},"2":{"name":"storage.type.net.systemverilog"},"3":{"name":"support.type.scope.systemverilog"},"4":{"name":"keyword.operator.scope.systemverilog"},"5":{"patterns":[{"include":"#built-ins"},{"match":"[A-Z_a-z][$0-9A-Z_a-z]*","name":"storage.type.user-defined.systemverilog"}]},"6":{"patterns":[{"include":"#modifiers"}]},"7":{"patterns":[{"include":"#selects"}]},"8":{"patterns":[{"include":"#constants"},{"include":"#identifiers"}]},"9":{"patterns":[{"include":"#selects"}]}},"match":",?[\\\\t\\\\n\\\\r ]*(?:\\\\b(output|input|inout|ref)\\\\b[\\\\t\\\\n\\\\r ]*)?(?:\\\\b(localparam|parameter|var|supply[01]|tri|triand|trior|trireg|tri[01]|uwire|wire|wand|wor)\\\\b[\\\\t\\\\n\\\\r ]*)?(?:\\\\b([A-Z_a-z][$0-9A-Z_a-z]*)(::))?(?:([A-Z_a-z][$0-9A-Z_a-z]*)\\\\b[\\\\t\\\\n\\\\r ]*)?(?:\\\\b((?:|un)signed)\\\\b[\\\\t\\\\n\\\\r ]*)?(?:(\\\\[[]\\\\t\\\\n\\\\r $%'-+\\\\--:A-\\\\[_-z]*])[\\\\t\\\\n\\\\r ]*)?(?","endCaptures":{"0":{"name":"punctuation.definition.string.end.systemverilog"}},"name":"string.quoted.other.lt-gt.include.systemverilog"}]},"sv-control":{"captures":{"1":{"name":"keyword.control.systemverilog"}},"match":"[\\\\t\\\\n\\\\r ]*\\\\b(initial|always|always_comb|always_ff|always_latch|final|assign|deassign|force|release|wait|forever|repeat|alias|while|for|iff??|else|casex??|casez|default|endcase|return|break|continue|do|foreach|clocking|coverpoint|property|bins|binsof|illegal_bins|ignore_bins|randcase|matches|solve|before|expect|cross|ref|srandom|struct|chandle|tagged|extern|throughout|timeprecision|timeunit|priority|type|union|wait_order|triggered|randsequence|context|pure|wildcard|new|forkjoin|unique0??|priority)\\\\b"},"sv-control-begin":{"captures":{"1":{"name":"keyword.control.systemverilog"},"2":{"name":"punctuation.definition.label.systemverilog"},"3":{"name":"entity.name.section.systemverilog"}},"match":"[\\\\t\\\\n\\\\r ]*\\\\b(begin|fork)\\\\b(?:[\\\\t\\\\n\\\\r ]*(:)[\\\\t\\\\n\\\\r ]*([A-Z_a-z][$0-9A-Z_a-z]*))?","name":"meta.item.begin.systemverilog"},"sv-control-end":{"captures":{"1":{"name":"keyword.control.systemverilog"},"2":{"name":"punctuation.definition.label.systemverilog"},"3":{"name":"entity.name.section.systemverilog"}},"match":"[\\\\t\\\\n\\\\r ]*\\\\b(end|endmodule|endinterface|endprogram|endchecker|endclass|endpackage|endconfig|endfunction|endtask|endproperty|endsequence|endgroup|endprimitive|endclocking|endgenerate|join|join_any|join_none)\\\\b(?:[\\\\t\\\\n\\\\r ]*(:)[\\\\t\\\\n\\\\r ]*([A-Z_a-z][$0-9A-Z_a-z]*))?","name":"meta.item.end.systemverilog"},"sv-cover-cross":{"captures":{"2":{"name":"entity.name.type.class.systemverilog"},"3":{"name":"keyword.operator.other.systemverilog"},"4":{"name":"keyword.control.systemverilog"}},"match":"(([A-Z_a-z][$0-9A-Z_a-z]*)[\\\\t\\\\n\\\\r ]*(:))?[\\\\t\\\\n\\\\r ]*(c(?:overpoint|ross))[\\\\t\\\\n\\\\r ]+([A-Z_a-z][$0-9A-Z_a-z]*)","name":"meta.definition.systemverilog"},"sv-definition":{"captures":{"1":{"name":"keyword.control.systemverilog"},"2":{"name":"entity.name.type.class.systemverilog"}},"match":"[\\\\t\\\\n\\\\r ]*\\\\b(primitive|package|constraint|interface|covergroup|program)[\\\\t\\\\n\\\\r ]+\\\\b([A-Z_a-z][$0-9A-Z_a-z]*)\\\\b","name":"meta.definition.systemverilog"},"sv-local":{"captures":{"1":{"name":"keyword.other.systemverilog"}},"match":"[\\\\t\\\\n\\\\r ]*\\\\b(const|static|protected|virtual|localparam|parameter|local)\\\\b"},"sv-option":{"captures":{"1":{"name":"keyword.cover.systemverilog"}},"match":"[\\\\t\\\\n\\\\r ]*\\\\b(option)\\\\."},"sv-rand":{"match":"[\\\\t\\\\n\\\\r ]*\\\\brandc??\\\\b","name":"storage.type.rand.systemverilog"},"sv-std":{"match":"\\\\b(std)\\\\b::","name":"support.class.systemverilog"},"system-tf":{"match":"\\\\$[$0-9A-Z_a-z][$0-9A-Z_a-z]*\\\\b","name":"support.function.systemverilog"},"tables":{"begin":"[\\\\t\\\\n\\\\r ]*\\\\b(table)\\\\b","beginCaptures":{"1":{"name":"keyword.table.systemverilog.begin"}},"end":"[\\\\t\\\\n\\\\r ]*\\\\b(endtable)\\\\b","endCaptures":{"1":{"name":"keyword.table.systemverilog.end"}},"name":"meta.table.systemverilog","patterns":[{"include":"#comments"},{"match":"\\\\b[01BFNPRXbfnprx]\\\\b","name":"constant.language.systemverilog"},{"match":"[-*?]","name":"constant.language.systemverilog"},{"captures":{"1":{"name":"constant.language.systemverilog"}},"match":"\\\\(([01?Xx]{2})\\\\)"},{"match":":","name":"punctuation.definition.label.systemverilog"},{"include":"#operators"},{"include":"#constants"},{"include":"#strings"},{"include":"#identifiers"}]},"typedef":{"begin":"[\\\\t\\\\n\\\\r ]*\\\\b(typedef)[\\\\t\\\\n\\\\r ]+(?:([A-Z_a-z][$0-9A-Z_a-z]*)(?:[\\\\t\\\\n\\\\r ]+\\\\b((?:|un)signed)\\\\b)?[\\\\t\\\\n\\\\r ]*(\\\\[[]\\\\t\\\\n\\\\r $%'-+\\\\--:A-\\\\[_-z]*])?)?(?=[\\\\t\\\\n\\\\r ]*[A-Z\\\\\\\\_a-z])","beginCaptures":{"1":{"name":"keyword.control.systemverilog"},"2":{"patterns":[{"include":"#built-ins"},{"match":"\\\\bvirtual\\\\b","name":"storage.modifier.systemverilog"}]},"3":{"patterns":[{"include":"#modifiers"}]},"4":{"patterns":[{"include":"#selects"}]}},"end":";","endCaptures":{"0":{"name":"punctuation.definition.typedef.end.systemverilog"}},"name":"meta.typedef.systemverilog","patterns":[{"include":"#identifiers"},{"include":"#selects"}]},"typedef-enum-struct-union":{"begin":"[\\\\t\\\\n\\\\r ]*\\\\b(typedef)[\\\\t\\\\n\\\\r ]+(enum|struct|union(?:[\\\\t\\\\n\\\\r ]+tagged)?|class|interface[\\\\t\\\\n\\\\r ]+class)(?:[\\\\t\\\\n\\\\r ]+(?!(?:pack|sign|unsign)ed)([A-Z_a-z][$0-9A-Z_a-z]*)?[\\\\t\\\\n\\\\r ]*(\\\\[[]\\\\t\\\\n\\\\r $%'-+\\\\--:A-\\\\[_-z]*])?)?(?:[\\\\t\\\\n\\\\r ]+(packed))?(?:[\\\\t\\\\n\\\\r ]+((?:|un)signed))?(?=[\\\\t\\\\n\\\\r ]*(?:\\\\{|$))","beginCaptures":{"1":{"name":"keyword.control.systemverilog"},"2":{"name":"keyword.control.systemverilog"},"3":{"patterns":[{"include":"#built-ins"}]},"4":{"patterns":[{"include":"#selects"}]},"5":{"name":"storage.modifier.systemverilog"},"6":{"name":"storage.modifier.systemverilog"}},"end":"(?<=})[\\\\t\\\\n\\\\r ]*([A-Z_a-z][$0-9A-Z_a-z]*|(?<=^|[\\\\t\\\\n\\\\r ])\\\\\\\\[!-~]+(?=$|[\\\\t\\\\n\\\\r ]))[\\\\t\\\\n\\\\r ]*(\\\\[[]\\\\t\\\\n\\\\r $%'-+\\\\--:A-\\\\[_-z]*])?[\\\\t\\\\n\\\\r ]*[,;]","endCaptures":{"1":{"name":"storage.type.systemverilog"},"2":{"patterns":[{"include":"#selects"}]}},"name":"meta.typedef-enum-struct-union.systemverilog","patterns":[{"include":"#port-net-parameter"},{"include":"#keywords"},{"include":"#base-grammar"},{"include":"#identifiers"}]}},"scopeName":"source.systemverilog"}`))];export{e as default}; diff --git a/docs/assets/systemd-CV2aRDdZ.js b/docs/assets/systemd-CV2aRDdZ.js new file mode 100644 index 0000000..ad0de1a --- /dev/null +++ b/docs/assets/systemd-CV2aRDdZ.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Systemd Units","name":"systemd","patterns":[{"include":"#comments"},{"begin":"^\\\\s*(InaccessableDirectories|InaccessibleDirectories|ReadOnlyDirectories|ReadWriteDirectories|Capabilities|TableId|UseDomainName|IPv6AcceptRouterAdvertisements|SysVStartPriority|StartLimitInterval|RequiresOverridable|RequisiteOverridable|PropagateReloadTo|PropagateReloadFrom|OnFailureIsolate|BindTo)\\\\s*(=)[\\\\t ]*","beginCaptures":{"1":{"name":"invalid.deprecated"},"2":{"name":"keyword.operator.assignment"}},"end":"(?{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("w-full caption-bottom text-sm",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("div",{className:"w-full overflow-auto scrollbar-thin flex-1",children:(0,m.jsx)("table",{ref:o,className:l,...r})}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});i.displayName="Table";var b=f.forwardRef((t,o)=>{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("[&_tr]:border-b bg-background",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("thead",{ref:o,className:l,...r}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});b.displayName="TableHeader";var N=f.forwardRef((t,o)=>{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("[&_tr:last-child]:border-0",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("tbody",{ref:o,className:l,...r}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});N.displayName="TableBody";var y=f.forwardRef((t,o)=>{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("bg-primary font-medium text-primary-foreground",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("tfoot",{ref:o,className:l,...r}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});y.displayName="TableFooter";var p=f.forwardRef((t,o)=>{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("tr",{ref:o,className:l,...r}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});p.displayName="TableRow";var u=f.forwardRef((t,o)=>{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("th",{ref:o,className:l,...r}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});u.displayName="TableHead";var x=f.forwardRef((t,o)=>{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("p-1.5 align-middle [&:has([role=checkbox])]:pr-0",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("td",{ref:o,className:l,...r}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});x.displayName="TableCell";var v=f.forwardRef((t,o)=>{let a=(0,d.c)(9),e,r;a[0]===t?(e=a[1],r=a[2]):({className:e,...r}=t,a[0]=t,a[1]=e,a[2]=r);let l;a[3]===e?l=a[4]:(l=c("mt-4 text-sm text-muted-foreground",e),a[3]=e,a[4]=l);let s;return a[5]!==r||a[6]!==o||a[7]!==l?(s=(0,m.jsx)("caption",{ref:o,className:l,...r}),a[5]=r,a[6]=o,a[7]=l,a[8]=s):s=a[8],s});v.displayName="TableCaption";export{b as a,u as i,N as n,p as o,x as r,i as t}; diff --git a/docs/assets/tabs-CHiEPtZV.js b/docs/assets/tabs-CHiEPtZV.js new file mode 100644 index 0000000..5f4d60a --- /dev/null +++ b/docs/assets/tabs-CHiEPtZV.js @@ -0,0 +1 @@ +import{s as N}from"./chunk-LvLJmgfZ.js";import{t as L}from"./react-BGmjiNul.js";import{t as P}from"./compiler-runtime-DeeZ7FnK.js";import{t as S}from"./jsx-runtime-DN_bIXfG.js";import{t as g}from"./cn-C1rgT0yh.js";import{M as q,N as w,j as B}from"./dropdown-menu-BP4_BZLr.js";import{E as O,S as G,_ as b,f as H,w as h,x as J}from"./Combination-D1TsGrBC.js";import{u as Q}from"./menu-items-9PZrU2e0.js";var c=N(L(),1),d=N(S(),1),v="Tabs",[U,se]=O(v,[w]),j=w(),[W,y]=U(v),C=c.forwardRef((o,n)=>{let{__scopeTabs:e,value:a,onValueChange:t,defaultValue:r,orientation:i="horizontal",dir:u,activationMode:m="automatic",...p}=o,l=Q(u),[s,f]=G({prop:a,onChange:t,defaultProp:r??"",caller:v});return(0,d.jsx)(W,{scope:e,baseId:H(),value:s,onValueChange:f,orientation:i,dir:l,activationMode:m,children:(0,d.jsx)(b.div,{dir:l,"data-orientation":i,...p,ref:n})})});C.displayName=v;var T="TabsList",_=c.forwardRef((o,n)=>{let{__scopeTabs:e,loop:a=!0,...t}=o,r=y(T,e),i=j(e);return(0,d.jsx)(q,{asChild:!0,...i,orientation:r.orientation,dir:r.dir,loop:a,children:(0,d.jsx)(b.div,{role:"tablist","aria-orientation":r.orientation,...t,ref:n})})});_.displayName=T;var R="TabsTrigger",M=c.forwardRef((o,n)=>{let{__scopeTabs:e,value:a,disabled:t=!1,...r}=o,i=y(R,e),u=j(e),m=V(i.baseId,a),p=k(i.baseId,a),l=a===i.value;return(0,d.jsx)(B,{asChild:!0,...u,focusable:!t,active:l,children:(0,d.jsx)(b.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":p,"data-state":l?"active":"inactive","data-disabled":t?"":void 0,disabled:t,id:m,...r,ref:n,onMouseDown:h(o.onMouseDown,s=>{!t&&s.button===0&&s.ctrlKey===!1?i.onValueChange(a):s.preventDefault()}),onKeyDown:h(o.onKeyDown,s=>{[" ","Enter"].includes(s.key)&&i.onValueChange(a)}),onFocus:h(o.onFocus,()=>{let s=i.activationMode!=="manual";!l&&!t&&s&&i.onValueChange(a)})})})});M.displayName=R;var D="TabsContent",I=c.forwardRef((o,n)=>{let{__scopeTabs:e,value:a,forceMount:t,children:r,...i}=o,u=y(D,e),m=V(u.baseId,a),p=k(u.baseId,a),l=a===u.value,s=c.useRef(l);return c.useEffect(()=>{let f=requestAnimationFrame(()=>s.current=!1);return()=>cancelAnimationFrame(f)},[]),(0,d.jsx)(J,{present:t||l,children:({present:f})=>(0,d.jsx)(b.div,{"data-state":l?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":m,hidden:!f,id:p,tabIndex:0,...i,ref:n,style:{...o.style,animationDuration:s.current?"0s":void 0},children:f&&r})})});I.displayName=D;function V(o,n){return`${o}-trigger-${n}`}function k(o,n){return`${o}-content-${n}`}var X=C,F=_,E=M,$=I,x=P(),Y=X,A=c.forwardRef((o,n)=>{let e=(0,x.c)(9),a,t;e[0]===o?(a=e[1],t=e[2]):({className:a,...t}=o,e[0]=o,e[1]=a,e[2]=t);let r;e[3]===a?r=e[4]:(r=g("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),e[3]=a,e[4]=r);let i;return e[5]!==t||e[6]!==n||e[7]!==r?(i=(0,d.jsx)(F,{ref:n,className:r,...t}),e[5]=t,e[6]=n,e[7]=r,e[8]=i):i=e[8],i});A.displayName=F.displayName;var K=c.forwardRef((o,n)=>{let e=(0,x.c)(9),a,t;e[0]===o?(a=e[1],t=e[2]):({className:a,...t}=o,e[0]=o,e[1]=a,e[2]=t);let r;e[3]===a?r=e[4]:(r=g("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),e[3]=a,e[4]=r);let i;return e[5]!==t||e[6]!==n||e[7]!==r?(i=(0,d.jsx)(E,{ref:n,className:r,...t}),e[5]=t,e[6]=n,e[7]=r,e[8]=i):i=e[8],i});K.displayName=E.displayName;var z=c.forwardRef((o,n)=>{let e=(0,x.c)(9),a,t;e[0]===o?(a=e[1],t=e[2]):({className:a,...t}=o,e[0]=o,e[1]=a,e[2]=t);let r;e[3]===a?r=e[4]:(r=g("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",a),e[3]=a,e[4]=r);let i;return e[5]!==t||e[6]!==n||e[7]!==r?(i=(0,d.jsx)($,{ref:n,className:r,...t}),e[5]=t,e[6]=n,e[7]=r,e[8]=i):i=e[8],i});z.displayName=$.displayName;export{K as i,z as n,A as r,Y as t}; diff --git a/docs/assets/talonscript-CiURXyeK.js b/docs/assets/talonscript-CiURXyeK.js new file mode 100644 index 0000000..a1067ef --- /dev/null +++ b/docs/assets/talonscript-CiURXyeK.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"TalonScript","name":"talonscript","patterns":[{"include":"#body-header"},{"include":"#header"},{"include":"#body-noheader"},{"include":"#comment"},{"include":"#settings"}],"repository":{"action":{"begin":"([.0-9A-Z_a-z]+)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.talon","patterns":[{"match":"\\\\.","name":"punctuation.separator.talon"}]},"2":{"name":"punctuation.definition.parameters.begin.talon"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.talon"}},"name":"variable.parameter.talon","patterns":[{"include":"#action"},{"include":"#qstring-long"},{"include":"#qstring"},{"include":"#argsep"},{"include":"#number"},{"include":"#operator"},{"include":"#varname"}]},"action-gamepad":{"captures":{"2":{"name":"punctuation.definition.parameters.begin.talon"},"3":{"name":"variable.parameter.talon","patterns":[{"include":"#key-mods"}]},"4":{"name":"punctuation.definition.parameters.key.talon"}},"match":"(deck|gamepad|action|face|parrot)(\\\\()(.*)(\\\\))","name":"entity.name.function.talon"},"action-key":{"captures":{"1":{"name":"punctuation.definition.parameters.begin.talon"},"2":{"name":"variable.parameter.talon","patterns":[{"include":"#key-prefixes"},{"include":"#key-mods"},{"include":"#keystring"}]},"3":{"name":"punctuation.definition.parameters.key.talon"}},"match":"key(\\\\()(.*)(\\\\))","name":"entity.name.function.talon"},"argsep":{"match":",","name":"punctuation.separator.talon"},"assignment":{"begin":"(\\\\S*)(\\\\s?=\\\\s?)","beginCaptures":{"1":{"name":"variable.other.talon"},"2":{"name":"keyword.operator.talon"}},"end":"\\\\n","patterns":[{"include":"#comment"},{"include":"#comment-invalid"},{"include":"#expression"}]},"body-header":{"begin":"^-$","end":"(?=not)possible","patterns":[{"include":"#body-noheader"}]},"body-noheader":{"patterns":[{"include":"#comment"},{"include":"#comment-invalid"},{"include":"#other-rule-definition"},{"include":"#speech-rule-definition"}]},"capture":{"match":"(<[.0-9A-Z_a-z]+>)","name":"variable.parameter.talon"},"comment":{"match":"^\\\\s*(#.*)$","name":"comment.line.number-sign.talon"},"comment-invalid":{"match":"(\\\\s*#.*)$","name":"invalid.illegal"},"context":{"captures":{"1":{"name":"entity.name.tag.talon","patterns":[{"match":"(and |or )","name":"keyword.operator.talon"}]},"2":{"name":"entity.name.type.talon","patterns":[{"include":"#comment"},{"include":"#comment-invalid"},{"include":"#regexp"}]}},"match":"(.*): (.*)"},"expression":{"patterns":[{"include":"#qstring-long"},{"include":"#action-key"},{"include":"#action"},{"include":"#operator"},{"include":"#number"},{"include":"#qstring"},{"include":"#varname"}]},"fstring":{"captures":{"1":{"patterns":[{"include":"#action"},{"include":"#operator"},{"include":"#number"},{"include":"#varname"},{"include":"#qstring"}]}},"match":"\\\\{(.+?)}","name":"constant.character.format.placeholder.talon"},"header":{"begin":"(?=(?:^app|title|os|tag|list|language):)","end":"(?=^-$)","patterns":[{"include":"#comment"},{"include":"#context"}]},"key-mods":{"captures":{"1":{"name":"keyword.operator.talon"},"2":{"name":"keyword.control.talon"}},"match":"(:)(up|down|change|repeat|start|stop|\\\\d+)","name":"keyword.operator.talon"},"key-prefixes":{"captures":{"1":{"name":"keyword.control.talon"},"2":{"name":"keyword.operator.talon"}},"match":"(ctrl|shift|cmd|alt|win|super)(-)"},"keystring":{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.talon"}},"end":"(\\\\1)|$","endCaptures":{"1":{"name":"punctuation.definition.string.end.talon"}},"name":"string.quoted.double.talon","patterns":[{"include":"#string-body"},{"include":"#key-mods"},{"include":"#key-prefixes"}]},"list":{"match":"(\\\\{[.0-9A-Z_a-z]+?})","name":"string.interpolated.talon"},"number":{"match":"(?<=\\\\b)\\\\d+(\\\\.\\\\d+)?","name":"constant.numeric.talon"},"operator":{"match":"\\\\s([-*+/]|or)\\\\s","name":"keyword.operator.talon"},"other-rule-definition":{"begin":"^([a-z]+\\\\(.*[^-]\\\\)|[a-z]+\\\\(.*--\\\\)|[a-z]+\\\\(-\\\\)|[a-z]+\\\\(\\\\)):","beginCaptures":{"1":{"name":"entity.name.tag.talon","patterns":[{"include":"#action-key"},{"include":"#action-gamepad"},{"include":"#rule-specials"}]}},"end":"(?=^[^#\\\\s])","patterns":[{"include":"#statement"}]},"qstring":{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.talon"}},"end":"(\\\\1)|$","endCaptures":{"1":{"name":"punctuation.definition.string.end.talon"}},"name":"string.quoted.double.talon","patterns":[{"include":"#string-body"}]},"qstring-long":{"begin":"(\\"\\"\\"|''')","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.talon"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.talon"}},"name":"string.quoted.triple.talon","patterns":[{"include":"#string-body"}]},"regexp":{"begin":"(/)","end":"(/)","name":"string.regexp.talon","patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\\\\\[$*+.?^]","name":"constant.character.escape.talon"},{"match":"\\\\[(\\\\\\\\]|[^]])*]","name":"constant.other.set.regexp"},{"match":"[*+?]","name":"keyword.operator.quantifier.regexp"}]},"rule-specials":{"captures":{"1":{"name":"entity.name.function.talon"},"2":{"name":"punctuation.definition.parameters.begin.talon"},"3":{"name":"punctuation.definition.parameters.end.talon"}},"match":"(settings|tag)(\\\\()(\\\\))"},"speech-rule-definition":{"begin":"^(.*?):","beginCaptures":{"1":{"name":"entity.name.tag.talon","patterns":[{"match":"^\\\\^","name":"string.regexp.talon"},{"match":"\\\\$$","name":"string.regexp.talon"},{"match":"\\\\(","name":"punctuation.definition.parameters.begin.talon"},{"match":"\\\\)","name":"punctuation.definition.parameters.end.talon"},{"match":"\\\\|","name":"punctuation.separator.talon"},{"include":"#capture"},{"include":"#list"}]}},"end":"(?=^[^#\\\\s])","patterns":[{"include":"#statement"}]},"statement":{"patterns":[{"include":"#comment"},{"include":"#comment-invalid"},{"include":"#qstring-long"},{"include":"#action-key"},{"include":"#action"},{"include":"#qstring"},{"include":"#assignment"}]},"string-body":{"patterns":[{"match":"\\\\{\\\\{|}}","name":"string.quoted.double.talon"},{"match":"\\\\\\\\[\\"'\\\\\\\\nrt]","name":"constant.character.escape.python"},{"include":"#fstring"}]},"varname":{"captures":{"2":{"name":"constant.numeric.talon","patterns":[{"match":"_","name":"keyword.operator.talon"}]}},"match":"([.0-9A-Z_a-z])(_(list|\\\\d+)(?=[^.0-9A-Z_a-z]))?","name":"variable.parameter.talon"}},"scopeName":"source.talon","aliases":["talon"]}`))];export{e as default}; diff --git a/docs/assets/tasl-CgR-R2KM.js b/docs/assets/tasl-CgR-R2KM.js new file mode 100644 index 0000000..c31e841 --- /dev/null +++ b/docs/assets/tasl-CgR-R2KM.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Tasl","fileTypes":["tasl"],"name":"tasl","patterns":[{"include":"#comment"},{"include":"#namespace"},{"include":"#type"},{"include":"#class"},{"include":"#edge"}],"repository":{"class":{"begin":"^\\\\s*(class)\\\\b","beginCaptures":{"1":{"name":"keyword.control.tasl.class"}},"end":"$","patterns":[{"include":"#key"},{"include":"#export"},{"include":"#expression"}]},"comment":{"captures":{"1":{"name":"punctuation.definition.comment.tasl"}},"match":"(#).*$","name":"comment.line.number-sign.tasl"},"component":{"begin":"->","beginCaptures":{"0":{"name":"punctuation.separator.tasl.component"}},"end":"$","patterns":[{"include":"#expression"}]},"coproduct":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.block.tasl.coproduct"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.block.tasl.coproduct"}},"patterns":[{"include":"#comment"},{"include":"#term"},{"include":"#option"}]},"datatype":{"match":"[A-Za-z][0-9A-Za-z]*:(?:[!$\\\\&-;=?-Z_a-z~]|%\\\\h{2})+","name":"string.regexp"},"edge":{"begin":"^\\\\s*(edge)\\\\b","beginCaptures":{"1":{"name":"keyword.control.tasl.edge"}},"end":"$","patterns":[{"include":"#key"},{"include":"#export"},{"match":"=/","name":"punctuation.separator.tasl.edge.source"},{"match":"/=>","name":"punctuation.separator.tasl.edge.target"},{"match":"=>","name":"punctuation.separator.tasl.edge"},{"include":"#expression"}]},"export":{"match":"::","name":"keyword.operator.tasl.export"},"expression":{"patterns":[{"include":"#literal"},{"include":"#uri"},{"include":"#product"},{"include":"#coproduct"},{"include":"#reference"},{"include":"#optional"},{"include":"#identifier"}]},"identifier":{"captures":{"1":{"name":"variable"}},"match":"([A-Za-z][0-9A-Za-z]*)\\\\b"},"key":{"match":"[A-Za-z][0-9A-Za-z]*:(?:[!$\\\\&-;=?-Z_a-z~]|%\\\\h{2})+","name":"markup.bold entity.name.class"},"literal":{"patterns":[{"include":"#datatype"}]},"namespace":{"captures":{"1":{"name":"keyword.control.tasl.namespace"},"2":{"patterns":[{"include":"#namespaceURI"},{"match":"[A-Za-z][0-9A-Za-z]*\\\\b","name":"entity.name"}]}},"match":"^\\\\s*(namespace)\\\\b(.*)"},"namespaceURI":{"match":"[a-z]+:[]!#-;=?-\\\\[_a-z~]+","name":"markup.underline.link"},"option":{"begin":"<-","beginCaptures":{"0":{"name":"punctuation.separator.tasl.option"}},"end":"$","patterns":[{"include":"#expression"}]},"optional":{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator"}},"end":"$","patterns":[{"include":"#expression"}]},"product":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tasl.product"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tasl.product"}},"patterns":[{"include":"#comment"},{"include":"#term"},{"include":"#component"}]},"reference":{"captures":{"1":{"name":"markup.bold keyword.operator"},"2":{"patterns":[{"include":"#key"}]}},"match":"(\\\\*)\\\\s*(.*)"},"term":{"match":"[A-Za-z][0-9A-Za-z]*:(?:[!$\\\\&-;=?-Z_a-z~]|%\\\\h{2})+","name":"entity.other.tasl.key"},"type":{"begin":"^\\\\s*(type)\\\\b","beginCaptures":{"1":{"name":"keyword.control.tasl.type"}},"end":"$","patterns":[{"include":"#expression"}]},"uri":{"match":"<>","name":"variable.other.constant"}},"scopeName":"source.tasl"}'))];export{e as default}; diff --git a/docs/assets/tcl-B3wbfJh2.js b/docs/assets/tcl-B3wbfJh2.js new file mode 100644 index 0000000..e35eaa8 --- /dev/null +++ b/docs/assets/tcl-B3wbfJh2.js @@ -0,0 +1 @@ +function s(r){for(var t={},n=r.split(" "),e=0;e!?^\/\|]/;function i(r,t,n){return t.tokenize=n,n(r,t)}function o(r,t){var n=t.beforeParams;t.beforeParams=!1;var e=r.next();if((e=='"'||e=="'")&&t.inParams)return i(r,t,m(e));if(/[\[\]{}\(\),;\.]/.test(e))return e=="("&&n?t.inParams=!0:e==")"&&(t.inParams=!1),null;if(/\d/.test(e))return r.eatWhile(/[\w\.]/),"number";if(e=="#")return r.eat("*")?i(r,t,p):e=="#"&&r.match(/ *\[ *\[/)?i(r,t,d):(r.skipToEnd(),"comment");if(e=='"')return r.skipTo(/"/),"comment";if(e=="$")return r.eatWhile(/[$_a-z0-9A-Z\.{:]/),r.eatWhile(/}/),t.beforeParams=!0,"builtin";if(c.test(e))return r.eatWhile(c),"comment";r.eatWhile(/[\w\$_{}\xa1-\uffff]/);var a=r.current().toLowerCase();return f&&f.propertyIsEnumerable(a)?"keyword":u&&u.propertyIsEnumerable(a)?(t.beforeParams=!0,"keyword"):null}function m(r){return function(t,n){for(var e=!1,a,l=!1;(a=t.next())!=null;){if(a==r&&!e){l=!0;break}e=!e&&a=="\\"}return l&&(n.tokenize=o),"string"}}function p(r,t){for(var n=!1,e;e=r.next();){if(e=="#"&&n){t.tokenize=o;break}n=e=="*"}return"comment"}function d(r,t){for(var n=0,e;e=r.next();){if(e=="#"&&n==2){t.tokenize=o;break}e=="]"?n++:e!=" "&&(n=0)}return"meta"}const k={name:"tcl",startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1}},token:function(r,t){return r.eatSpace()?null:t.tokenize(r,t)},languageData:{commentTokens:{line:"#"}}};export{k as t}; diff --git a/docs/assets/tcl-CjFzRx0U.js b/docs/assets/tcl-CjFzRx0U.js new file mode 100644 index 0000000..54da317 --- /dev/null +++ b/docs/assets/tcl-CjFzRx0U.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Tcl","fileTypes":["tcl"],"foldingStartMarker":"\\\\{\\\\s*$","foldingStopMarker":"^\\\\s*}","name":"tcl","patterns":[{"begin":"(?<=^|;)\\\\s*((#))","beginCaptures":{"1":{"name":"comment.line.number-sign.tcl"},"2":{"name":"punctuation.definition.comment.tcl"}},"contentName":"comment.line.number-sign.tcl","end":"\\\\n","patterns":[{"match":"(\\\\\\\\[\\\\n\\\\\\\\])"}]},{"captures":{"1":{"name":"keyword.control.tcl"}},"match":"(?<=^|[;\\\\[{])\\\\s*(if|while|for|catch|default|return|break|continue|switch|exit|foreach|try|throw)\\\\b"},{"captures":{"1":{"name":"keyword.control.tcl"}},"match":"(?<=^|})\\\\s*(then|elseif|else)\\\\b"},{"captures":{"1":{"name":"keyword.other.tcl"},"2":{"name":"entity.name.function.tcl"}},"match":"(?<=^|\\\\{)\\\\s*(proc)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.tcl"}},"match":"(?<=^|[;\\\\[{])\\\\s*(after|append|array|auto_execok|auto_import|auto_load|auto_mkindex|auto_mkindex_old|auto_qualify|auto_reset|bgerror|binary|cd|clock|close|concat|dde|encoding|eof|error|eval|exec|expr|fblocked|fconfigure|fcopy|file|fileevent|filename|flush|format|gets|glob|global|history|http|incr|info|interp|join|lappend|library|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|memory|msgcat|namespace|open|package|parray|pid|pkg::create|pkg_mkIndex|proc|puts|pwd|re_syntax|read|registry|rename|resource|scan|seek|set|socket|SafeBase|source|split|string|subst|Tcl|tcl_endOfWord|tcl_findLibrary|tcl_startOfNextWord|tcl_startOfPreviousWord|tcl_wordBreakAfter|tcl_wordBreakBefore|tcltest|tclvars|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait)\\\\b"},{"begin":"(?<=^|[;\\\\[{])\\\\s*(reg(?:exp|sub))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.tcl"}},"end":"[]\\\\n;]","patterns":[{"match":"\\\\\\\\(?:.|\\\\n)","name":"constant.character.escape.tcl"},{"match":"-\\\\w+\\\\s*"},{"applyEndPatternLast":1,"begin":"--\\\\s*","end":"","patterns":[{"include":"#regexp"}]},{"include":"#regexp"}]},{"include":"#escape"},{"include":"#variable"},{"include":"#operator"},{"include":"#numeric"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tcl"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.tcl"}},"name":"string.quoted.double.tcl","patterns":[{"include":"#escape"},{"include":"#variable"},{"include":"#embedded"}]}],"repository":{"bare-string":{"begin":"(?:^|(?<=\\\\s))\\"","end":"\\"([^]\\\\s]*)","endCaptures":{"1":{"name":"invalid.illegal.tcl"}},"patterns":[{"include":"#escape"},{"include":"#variable"}]},"braces":{"begin":"(?:^|(?<=\\\\s))\\\\{","end":"}([^]\\\\s]*)","endCaptures":{"1":{"name":"invalid.illegal.tcl"}},"patterns":[{"match":"\\\\\\\\[\\\\n{}]","name":"constant.character.escape.tcl"},{"include":"#inner-braces"}]},"embedded":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.tcl"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.embedded.end.tcl"}},"name":"source.tcl.embedded","patterns":[{"include":"source.tcl"}]},"escape":{"match":"\\\\\\\\(\\\\d{1,3}|x\\\\h+|u\\\\h{1,4}|.|\\\\n)","name":"constant.character.escape.tcl"},"inner-braces":{"begin":"\\\\{","end":"}","patterns":[{"match":"\\\\\\\\[\\\\n{}]","name":"constant.character.escape.tcl"},{"include":"#inner-braces"}]},"numeric":{"match":"(?{1,2}|\\\\*{1,2}|[!%/]|<=|>=|={1,2}|!=|\\\\^)(?=[ \\\\d])","name":"keyword.operator.tcl"},"regexp":{"begin":"(?=\\\\S)(?![]\\\\n;])","end":"(?=[]\\\\n;])","patterns":[{"begin":"(?=[^\\\\t\\\\n ;])","end":"(?=[\\\\t\\\\n ;])","name":"string.regexp.tcl","patterns":[{"include":"#braces"},{"include":"#bare-string"},{"include":"#escape"},{"include":"#variable"}]},{"begin":"[\\\\t ]","end":"(?=[]\\\\n;])","patterns":[{"include":"#variable"},{"include":"#embedded"},{"include":"#escape"},{"include":"#braces"},{"include":"#string"}]}]},"string":{"applyEndPatternLast":1,"begin":"(?:^|(?<=\\\\s))(?=\\")","end":"","name":"string.quoted.double.tcl","patterns":[{"include":"#bare-string"}]},"variable":{"captures":{"1":{"name":"punctuation.definition.variable.tcl"}},"match":"(\\\\$)((?:[0-9A-Z_a-z]|::)+(\\\\([^)]+\\\\))?|\\\\{[^}]*})","name":"support.function.tcl"}},"scopeName":"source.tcl"}'))];export{e as default}; diff --git a/docs/assets/tcl-DbyqErhh.js b/docs/assets/tcl-DbyqErhh.js new file mode 100644 index 0000000..571f67d --- /dev/null +++ b/docs/assets/tcl-DbyqErhh.js @@ -0,0 +1 @@ +import{t}from"./tcl-B3wbfJh2.js";export{t as tcl}; diff --git a/docs/assets/templ-Dk-lmfRg.js b/docs/assets/templ-Dk-lmfRg.js new file mode 100644 index 0000000..42b6512 --- /dev/null +++ b/docs/assets/templ-Dk-lmfRg.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t}from"./css-xi2XX7Oh.js";import{t as n}from"./go-CBmpUsEL.js";var i=Object.freeze(JSON.parse(`{"displayName":"Templ","name":"templ","patterns":[{"include":"#script-template"},{"include":"#css-template"},{"include":"#html-template"},{"include":"source.go"}],"repository":{"block-element":{"begin":"(\\\\\\\\\\\\s]))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.block.any.html"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#tag-stuff"}]},"call-expression":{"begin":"(\\\\{!)\\\\s+","beginCaptures":{"0":{"name":"start.call-expression.templ"},"1":{"name":"punctuation.brace.open"}},"end":"(})","endCaptures":{"0":{"name":"end.call-expression.templ"},"1":{"name":"punctuation.brace.close"}},"name":"call-expression.templ","patterns":[{"include":"source.go"}]},"case-expression":{"begin":"^\\\\s*case .+?:$","captures":{"0":{"name":"case.switch.html-template.templ","patterns":[{"include":"source.go"}]}},"end":"(?:^(\\\\s*case .+?:)|^(\\\\s*default:)|(\\\\s*))$","patterns":[{"include":"#template-node"}]},"close-element":{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.html","patterns":[{"include":"#tag-stuff"}]},"css-template":{"begin":"^(css) ([A-z][0-9A-z]*\\\\()","beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}},"end":"(?<=^}$)","name":"css-template.templ","patterns":[{"begin":"(?<=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}},"name":"params.css-template.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\))\\\\s*(\\\\{)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"^(})$","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}},"name":"block.css-template.templ","patterns":[{"begin":"\\\\s*((?:-(?:webkit|moz|o|ms|khtml)-)?(?:zoom|z-index|[xy]|writing-mode|wrap|wrap-through|wrap-inside|wrap-flow|wrap-before|wrap-after|word-wrap|word-spacing|word-break|word|will-change|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|vector-effect|variant|user-zoom|user-select|up|unicode-(bidi|range)|trim|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform-box|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-underline-position|text-transform|text-spacing|text-space-trim|text-space-collapse|text-size-adjust|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-orientation|text-justify|text-indent|text-height|text-emphasis-style|text-emphasis-skip|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-style|text-decoration-stroke|text-decoration-skip|text-decoration-line|text-decoration-fill|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|system|symbols|suffix|style-type|style-position|style-image|style|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|string-set|stretch|stress|stop-opacity|stop-color|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak-as|speak|span|spacing|space-collapse|space|solid-opacity|solid-color|sizing|size-adjust|size|shape-rendering|shape-padding|shape-outside|shape-margin|shape-inside|shape-image-threshold|shadow|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-snap-destination|scroll-snap-coordinate|scroll-behavior|scale|ry|rx|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-merge|ruby-align|ruby|rows|rotation-point|rotation|rotate|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|region-fragment|rate|range|radius|r|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|prefix|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective-origin|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-bottom|padding-block-start|padding-block-end|padding|pad|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow-inline|overflow-block|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset-start|offset-inline-start|offset-inline-end|offset-end|offset-block-start|offset-block-end|offset-before|offset-after|offset|object-position|object-fit|numeral|new|negative|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|motion-rotation|motion-path|motion-offset|motion|model|mix-blend-mode|min-zoom|min-width|min-inline-size|min-height|min-block-size|min|max-zoom|max-width|max-lines|max-inline-size|max-height|max-block-size|max|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marquee-style|marquee-speed|marquee-play-count|marquee-loop|marquee-direction|marquee|marks|marker-start|marker-side|marker-mid|marker-end|marker|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-bottom|margin-block-start|margin-block-end|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-snap|line-height|line-grid|line-break|line|lighting-color|level|letter-spacing|length|left-width|left-style|left-color|left|label|kerning|justify-self|justify-items|justify-content|justify|iteration-count|isolation|inline-size|inline-box-align|initial-value|initial-size|initial-letter-wrap|initial-letter-align|initial-letter|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-rendering|image-resolution|image-orientation|image|icon|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-last|hyphenate-limit-chars|hyphenate-character|hyphenate|height|header|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-gap|grid-row-end|grid-rows??|grid-gap|grid-column-start|grid-column-gap|grid-column-end|grid-columns??|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|font-weight|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|flow-into|flow-from|flow|flood-opacity|flood-color|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|filter|fill-rule|fill-opacity|fill|family|fallback|enable-background|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cy|cx|cursor|cue-before|cue-after|cue|crop|counter-set|counter-reset|counter-increment|counter|count|corner-shape|corners|continue|content|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color-adjust|color|collapse|clip-rule|clip-path|clip|clear|character|caret-shape|caret-color|caret|caption-side|buffered-rendering|break-inside|break-before|break-after|break|box-suppress|box-snap|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-limit|border-length|border-left-width|border-left-style|border-left-color|border-left|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-image-width|border-image-transform|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-clip-top|border-clip-right|border-clip-left|border-clip-bottom|border-clip|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border|bookmark-target|bookmark-level|bookmark-label|bookmark|block-size|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position-inline|background-position-block|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alt|all|alignment-baseline|alignment-adjust|alignment|align-last|align-self|align-items|align-content|align|after|adjust|additive-symbols)):\\\\s+","beginCaptures":{"1":{"name":"support.type.property-name.css"}},"end":"(?<=;$)","name":"property.css-template.templ","patterns":[{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"(})(;)$","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"},"2":{"name":"punctuation.terminator.rule.css"}},"name":"expression.property.css-template.templ","patterns":[{"include":"source.go"}]},{"captures":{"1":{"name":"support.type.property-value.css"},"2":{"name":"punctuation.terminator.rule.css"}},"match":"(.*)(;)$","name":"constant.property.css-template.templ"}]}]}]},"default-expression":{"begin":"^\\\\s*default:$","captures":{"0":{"name":"default.switch.html-template.templ","patterns":[{"include":"source.go"}]}},"end":"(?:^(\\\\s*case .+?:)|^(\\\\s*default:)|(\\\\s*))$","patterns":[{"include":"#template-node"}]},"element":{"begin":"(<)([-0-:A-Za-z]++)(?=[^>]*>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(>(<)/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},"else-expression":{"begin":"\\\\s+(else)\\\\s+(\\\\{)\\\\s*$","beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"^\\\\s*(})$","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}},"name":"else.html-template.templ","patterns":[{"include":"#template-node"}]},"else-if-expression":{"begin":"\\\\s(else if)\\\\s","beginCaptures":{"1":{"name":"keyword.control.go"}},"end":"(?<=})","name":"else-if.html-template.templ","patterns":[{"begin":"(?<=if\\\\s)","end":"(\\\\{)$","endCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"name":"expression.else-if.html-template.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\{)$","end":"^\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}},"name":"block.else-if.html-template.templ","patterns":[{"include":"#template-node"}]}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#[Xx]\\\\h+)(;)","name":"constant.character.entity.html"},{"match":"&","name":"invalid.illegal.bad-ampersand.html"}]},"for-expression":{"begin":"^\\\\s*for .+\\\\{","captures":{"0":{"name":"meta.embedded.block.go","patterns":[{"include":"source.go"}]}},"end":"\\\\s*}\\\\s*\\\\n","name":"for.html-template.templ","patterns":[{"include":"#template-node"}]},"go-comment-block":{"begin":"(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"end":"(\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"name":"comment.block.go"},"go-comment-double-slash":{"begin":"(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"end":"\\\\n|$","name":"comment.line.double-slash.go"},"html-comment":{"begin":"","endCaptures":{"0":{"name":"punctuation.definition.comment.html"}},"name":"comment.block.html"},"html-template":{"begin":"^(templ) ((?:\\\\((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s+\\\\*?[A-Z_a-z][0-9A-Z_a-z]*|\\\\*?[A-Z_a-z][0-9A-Z_a-z]*)\\\\)\\\\s*)?[A-Z_a-z][0-9A-Z_a-z]*([(\\\\[]))","beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}},"end":"(?<=^}$)","name":"html-template.templ","patterns":[{"begin":"(?<=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}},"name":"params.html-template.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\[)","end":"(])","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.square.go"}},"name":"type-params.html-template.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\))\\\\s*(\\\\{)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"^(})$","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}},"name":"block.html-template.templ","patterns":[{"include":"#template-node"}]}]},"if-expression":{"begin":"^\\\\s*(if)\\\\s","beginCaptures":{"1":{"name":"keyword.control.go"}},"end":"(?<=})","name":"if.html-template.templ","patterns":[{"begin":"(?<=if\\\\s)","end":"(\\\\{)$","endCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"name":"expression.if.html-template.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\{)$","end":"^\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}},"name":"block.if.html-template.templ","patterns":[{"include":"#template-node"}]}]},"import-expression":{"patterns":[{"begin":"(@)((?:[A-z][0-9A-z]*\\\\.)?[A-z][0-9A-z]*(?:[({]|$))","beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}},"end":"(?<=\\\\))$|(?<=})$|(?<=$)","name":"import-expression.templ","patterns":[{"begin":"(?<=[0-9A-z]\\\\{)","end":"\\\\s*(})(\\\\.[A-z][0-9A-z]*\\\\()","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"},"2":{"patterns":[{"include":"source.go"}]}},"name":"struct-method.import-expression.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}},"name":"params.import-expression.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\))\\\\s(\\\\{)$","beginCaptures":{"1":{"name":"punctuation.brace.open"}},"end":"^\\\\s*(})$","endCaptures":{"1":{"name":"punctuation.brace.close"}},"name":"children.import-expression.templ","patterns":[{"include":"#template-node"}]}]}]},"inline-element":{"begin":"(\\\\\\\\\\\\s]))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.inline.any.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.any.html","patterns":[{"include":"#tag-stuff"}]},"raw-go":{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"start.raw-go.templ"},"1":{"name":"punctuation.brace.open"}},"end":"}}","endCaptures":{"0":{"name":"end.raw-go.templ"},"1":{"name":"punctuation.brace.open"}},"name":"raw-go.templ","patterns":[{"include":"source.go"}]},"script-element":{"begin":"(<)(script)([^>]*)(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.html"}},"end":"<\/script>","endCaptures":{"0":{"patterns":[{"include":"#close-element"}]}},"name":"meta.tag.script.html","patterns":[{"include":"source.js"}]},"script-template":{"begin":"^(script) ([A-z][0-9A-z]*\\\\()","beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"source.go"}]}},"end":"(?<=^}$)","name":"script-template.templ","patterns":[{"begin":"(?<=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.round.go"}},"name":"params.script-template.templ","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\))\\\\s*(\\\\{)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"^(})$","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.curly.go"}},"name":"block.script-template.templ","patterns":[{"include":"source.js"}]}]},"sgml":{"begin":"","name":"meta.tag.sgml.html","patterns":[{"begin":"(?i:DOCTYPE)","captures":{"1":{"name":"entity.name.tag.doctype.html"}},"end":"(?=>)","name":"meta.tag.sgml.doctype.html","patterns":[{"match":"\\"[^\\">]*\\"","name":"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{"begin":"\\\\[CDATA\\\\[","end":"]](?=>)","name":"constant.other.inline-data.html"},{"match":"(\\\\s*)(?!--|>)\\\\S(\\\\s*)","name":"invalid.illegal.bad-comments-or-CDATA.html"}]},"string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#entities"}]},"string-expression":{"begin":"\\\\{\\\\s+","beginCaptures":{"0":{"name":"start.string-expression.templ"}},"end":"}","endCaptures":{"0":{"name":"end.string-expression.templ"}},"name":"expression.html-template.templ","patterns":[{"include":"source.go"}]},"style-element":{"begin":"(<)(style)([^>]*)(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.html"}},"end":"","endCaptures":{"0":{"patterns":[{"include":"#close-element"}]}},"name":"meta.tag.style.html","patterns":[{"include":"source.css"}]},"switch-expression":{"begin":"^\\\\s*switch .+?\\\\{$","captures":{"0":{"name":"meta.embedded.block.go","patterns":[{"include":"source.go"}]}},"end":"^\\\\s*}$","name":"switch.html-template.templ","patterns":[{"include":"#template-node"},{"include":"#case-expression"},{"include":"#default-expression"}]},"tag-else-attribute":{"begin":"\\\\s(else)\\\\s(\\\\{)$","beginCaptures":{"1":{"name":"keyword.control.go"},"2":{"name":"punctuation.brace.open"}},"end":"^\\\\s*(})$","endCaptures":{"1":{"name":"punctuation.brace.close"}},"name":"else.attribute.html","patterns":[{"include":"#tag-stuff"}]},"tag-else-if-attribute":{"begin":"\\\\s(else if)\\\\s","beginCaptures":{"1":{"name":"keyword.control.go"}},"end":"(?<=})","name":"else-if.attribute.html","patterns":[{"begin":"(?<=if\\\\s)","end":"(\\\\{)$","endCaptures":{"1":{"name":"punctuation.brace.open"}},"name":"expression.else-if.attribute.html","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\{)$","end":"^\\\\s*(})","endCaptures":{"1":{"name":"punctuation.brace.close"}},"name":"block.else-if.attribute.html","patterns":[{"include":"#tag-stuff"}]}]},"tag-generic-attribute":{"match":"(?<=[^=])\\\\b([-0-:A-Za-z]+)","name":"entity.other.attribute-name.html"},"tag-id-attribute":{"begin":"\\\\b(id)\\\\b\\\\s*(=)","captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}},"end":"(?!\\\\G)(?<=[\\"'[^/<>\\\\s]])","name":"meta.attribute-with-value.id.html","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#entities"}]},{"captures":{"0":{"name":"meta.toc-list.id.html"}},"match":"(?<==)(?:[^\\"'/<>{}\\\\s]|/(?!>))+","name":"string.unquoted.html"}]},"tag-if-attribute":{"begin":"^\\\\s*(if)\\\\s","beginCaptures":{"1":{"name":"keyword.control.go"}},"end":"(?<=})","name":"if.attribute.html","patterns":[{"begin":"(?<=if\\\\s)","end":"(\\\\{)$","endCaptures":{"1":{"name":"punctuation.brace.open"}},"name":"expression.if.attribute.html","patterns":[{"include":"source.go"}]},{"begin":"(?<=\\\\{)$","end":"^\\\\s*(})","endCaptures":{"1":{"name":"punctuation.brace.close"}},"name":"block.if.attribute.html","patterns":[{"include":"#tag-stuff"}]}]},"tag-stuff":{"patterns":[{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-expression"},{"include":"#tag-if-attribute"},{"include":"#tag-else-if-attribute"},{"include":"#tag-else-attribute"}]},"template-node":{"patterns":[{"include":"#string-expression"},{"include":"#call-expression"},{"include":"#import-expression"},{"include":"#script-element"},{"include":"#style-element"},{"include":"#element"},{"include":"#html-comment"},{"include":"#go-comment-block"},{"include":"#go-comment-double-slash"},{"include":"#sgml"},{"include":"#block-element"},{"include":"#inline-element"},{"include":"#close-element"},{"include":"#else-if-expression"},{"include":"#if-expression"},{"include":"#else-expression"},{"include":"#for-expression"},{"include":"#switch-expression"},{"include":"#raw-go"}]}},"scopeName":"source.templ","embeddedLangs":["go","javascript","css"]}`)),a=[...n,...e,...t,i];export{a as default}; diff --git a/docs/assets/terminal-ByuMlBP_.css b/docs/assets/terminal-ByuMlBP_.css new file mode 100644 index 0000000..61ca0d2 --- /dev/null +++ b/docs/assets/terminal-ByuMlBP_.css @@ -0,0 +1 @@ +.xterm{cursor:text;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;resize:none;white-space:nowrap;z-index:-5;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{color:#0000;pointer-events:none;z-index:10;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{user-select:text;white-space:pre}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:underline double}.xterm-underline-3{text-decoration:underline wavy}.xterm-underline-4{text-decoration:underline dotted}.xterm-underline-5{text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{pointer-events:none;z-index:8;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}.xterm{padding:.5rem} diff --git a/docs/assets/terminal-CZ_e8rW4.js b/docs/assets/terminal-CZ_e8rW4.js new file mode 100644 index 0000000..6851b36 --- /dev/null +++ b/docs/assets/terminal-CZ_e8rW4.js @@ -0,0 +1,62 @@ +var oi,ai,hi;import{s as Mt,t as At}from"./chunk-LvLJmgfZ.js";import{n as $e}from"./useEvent-DlWF5OMa.js";import{t as Li}from"./react-BGmjiNul.js";import"./react-dom-C9fstfnp.js";import{t as xi}from"./compiler-runtime-DeeZ7FnK.js";import{d as Ze}from"./hotkeys-uKX61F1_.js";import{O as Ei,o as ki}from"./config-CENq_7Pd.js";import{t as Di}from"./jsx-runtime-DN_bIXfG.js";import{t as Tt}from"./cn-C1rgT0yh.js";import{t as Ri}from"./createLucideIcon-CW2xpJ57.js";import{t as Mi}from"./clipboard-paste-CusmeEPf.js";import{t as Ai}from"./copy-gBVL4NN-.js";import{t as Ti}from"./trash-2-C-lF7BNB.js";import"./Combination-D1TsGrBC.js";import{n as Bi}from"./useDebounce-em3gna-v.js";import{t as Oi}from"./copy-DRhpWiOq.js";import{n as Pi}from"./renderShortcut-BzTDKVab.js";import{n as Ii,t as Hi}from"./state-D4d80DfQ.js";var Fi=Ri("text-select",[["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 14v1",key:"169vum"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M9 3h1",key:"1yesri"}]]),Wi=xi(),$i=class{constructor(g,_){this._disposables=[],this._socket=g,this._socket.binaryType="arraybuffer",this._bidirectional=!(_&&_.bidirectional===!1)}activate(g){this._disposables.push(et(this._socket,"message",_=>{let b=_.data;g.write(typeof b=="string"?b:new Uint8Array(b))})),this._bidirectional&&(this._disposables.push(g.onData(_=>this._sendData(_))),this._disposables.push(g.onBinary(_=>this._sendBinary(_)))),this._disposables.push(et(this._socket,"close",()=>this.dispose())),this._disposables.push(et(this._socket,"error",()=>this.dispose()))}dispose(){for(let g of this._disposables)g.dispose()}_sendData(g){this._checkOpenSocket()&&this._socket.send(g)}_sendBinary(g){if(!this._checkOpenSocket())return;let _=new Uint8Array(g.length);for(let b=0;b{b&&g.removeEventListener(_,b)}}}var Ni=At(((g,_)=>{(function(b,E){typeof g=="object"&&typeof _=="object"?_.exports=E():typeof define=="function"&&define.amd?define([],E):typeof g=="object"?g.CanvasAddon=E():b.CanvasAddon=E()})(self,(()=>(()=>{var b={903:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;let l=a(274),u=a(627),n=a(237),f=a(860),p=a(374),S=a(296),r=a(345),e=a(859),o=a(399),s=a(855);class i extends e.Disposable{get canvas(){return this._canvas}get cacheCanvas(){var d;return(d=this._charAtlas)==null?void 0:d.pages[0].canvas}constructor(d,c,v,C,k,D,x,y,L,M){super(),this._terminal=d,this._container=c,this._alpha=k,this._themeService=D,this._bufferService=x,this._optionsService=y,this._decorationService=L,this._coreBrowserService=M,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._selectionModel=(0,S.createSelectionRenderModel)(),this._bitmapGenerator=[],this._charAtlasDisposable=this.register(new e.MutableDisposable),this._onAddTextureAtlasCanvas=this.register(new r.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._cellColorResolver=new l.CellColorResolver(this._terminal,this._optionsService,this._selectionModel,this._decorationService,this._coreBrowserService,this._themeService),this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add(`xterm-${v}-layer`),this._canvas.style.zIndex=C.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this._refreshCharAtlas(this._themeService.colors),this.register(this._themeService.onChangeColors((B=>{this._refreshCharAtlas(B),this.reset(),this.handleSelectionChanged(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}))),this.register((0,e.toDisposable)((()=>{this._canvas.remove()})))}_initCanvas(){this._ctx=(0,p.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(){}handleFocus(){}handleCursorMove(){}handleGridChanged(d,c){}handleSelectionChanged(d,c,v=!1){this._selectionModel.update(this._terminal._core,d,c,v)}_setTransparency(d){if(d===this._alpha)return;let c=this._canvas;this._alpha=d,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,c),this._refreshCharAtlas(this._themeService.colors),this.handleGridChanged(0,this._bufferService.rows-1)}_refreshCharAtlas(d){if(!(this._deviceCharWidth<=0&&this._deviceCharHeight<=0)){this._charAtlas=(0,u.acquireTextureAtlas)(this._terminal,this._optionsService.rawOptions,d,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr),this._charAtlasDisposable.value=(0,r.forwardEvent)(this._charAtlas.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),this._charAtlas.warmUp();for(let c=0;c1?this._charAtlas.getRasterizedGlyphCombinedChar(C,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext,!0):this._charAtlas.getRasterizedGlyph(d.getCode()||s.WHITESPACE_CELL_CODE,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext,!0),!x.size.x||!x.size.y)return;this._ctx.save(),this._clipRow(v),this._bitmapGenerator[x.texturePage]&&this._charAtlas.pages[x.texturePage].canvas!==this._bitmapGenerator[x.texturePage].canvas&&((M=(L=this._bitmapGenerator[x.texturePage])==null?void 0:L.bitmap)==null||M.close(),delete this._bitmapGenerator[x.texturePage]),this._charAtlas.pages[x.texturePage].version!==((B=this._bitmapGenerator[x.texturePage])==null?void 0:B.version)&&(this._bitmapGenerator[x.texturePage]||(this._bitmapGenerator[x.texturePage]=new h(this._charAtlas.pages[x.texturePage].canvas)),this._bitmapGenerator[x.texturePage].refresh(),this._bitmapGenerator[x.texturePage].version=this._charAtlas.pages[x.texturePage].version);let y=x.size.x;this._optionsService.rawOptions.rescaleOverlappingGlyphs&&(0,p.allowRescaling)(k,D,x.size.x,this._deviceCellWidth)&&(y=this._deviceCellWidth-1),this._ctx.drawImage(((P=this._bitmapGenerator[x.texturePage])==null?void 0:P.bitmap)||this._charAtlas.pages[x.texturePage].canvas,x.texturePosition.x,x.texturePosition.y,x.size.x,x.size.y,c*this._deviceCellWidth+this._deviceCharLeft-x.offset.x,v*this._deviceCellHeight+this._deviceCharTop-x.offset.y,y,x.size.y),this._ctx.restore()}_clipRow(d){this._ctx.beginPath(),this._ctx.rect(0,d*this._deviceCellHeight,this._bufferService.cols*this._deviceCellWidth,this._deviceCellHeight),this._ctx.clip()}_getFont(d,c){return`${c?"italic":""} ${d?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight} ${this._optionsService.rawOptions.fontSize*this._coreBrowserService.dpr}px ${this._optionsService.rawOptions.fontFamily}`}}t.BaseRenderLayer=i;class h{get bitmap(){return this._bitmap}constructor(d){this.canvas=d,this._state=0,this._commitTimeout=void 0,this._bitmap=void 0,this.version=-1}refresh(){var d;(d=this._bitmap)==null||d.close(),this._bitmap=void 0,o.isSafari||(this._commitTimeout===void 0&&(this._commitTimeout=window.setTimeout((()=>this._generate()),100)),this._state===1&&(this._state=2))}_generate(){var d;this._state===0&&((d=this._bitmap)==null||d.close(),this._bitmap=void 0,this._state=1,window.createImageBitmap(this.canvas).then((c=>{this._state===2?this.refresh():this._bitmap=c,this._state=0})),this._commitTimeout&&(this._commitTimeout=void 0))}}},949:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasRenderer=void 0;let l=a(627),u=a(56),n=a(374),f=a(345),p=a(859),S=a(873),r=a(43),e=a(630),o=a(744);class s extends p.Disposable{constructor(h,m,d,c,v,C,k,D,x,y,L){super(),this._terminal=h,this._screenElement=m,this._bufferService=c,this._charSizeService=v,this._optionsService=C,this._coreBrowserService=x,this._themeService=L,this._observerDisposable=this.register(new p.MutableDisposable),this._onRequestRedraw=this.register(new f.EventEmitter),this.onRequestRedraw=this._onRequestRedraw.event,this._onChangeTextureAtlas=this.register(new f.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new f.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event;let M=this._optionsService.rawOptions.allowTransparency;this._renderLayers=[new o.TextRenderLayer(this._terminal,this._screenElement,0,M,this._bufferService,this._optionsService,k,y,this._coreBrowserService,L),new e.SelectionRenderLayer(this._terminal,this._screenElement,1,this._bufferService,this._coreBrowserService,y,this._optionsService,L),new r.LinkRenderLayer(this._terminal,this._screenElement,2,d,this._bufferService,this._optionsService,y,this._coreBrowserService,L),new S.CursorRenderLayer(this._terminal,this._screenElement,3,this._onRequestRedraw,this._bufferService,this._optionsService,D,this._coreBrowserService,y,L)];for(let B of this._renderLayers)(0,f.forwardEvent)(B.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas);this.dimensions=(0,n.createRenderDimensions)(),this._devicePixelRatio=this._coreBrowserService.dpr,this._updateDimensions(),this._observerDisposable.value=(0,u.observeDevicePixelDimensions)(this._renderLayers[0].canvas,this._coreBrowserService.window,((B,P)=>this._setCanvasDevicePixelDimensions(B,P))),this.register(this._coreBrowserService.onWindowChange((B=>{this._observerDisposable.value=(0,u.observeDevicePixelDimensions)(this._renderLayers[0].canvas,B,((P,H)=>this._setCanvasDevicePixelDimensions(P,H)))}))),this.register((0,p.toDisposable)((()=>{for(let B of this._renderLayers)B.dispose();(0,l.removeTerminalFromCache)(this._terminal)})))}get textureAtlas(){return this._renderLayers[0].cacheCanvas}handleDevicePixelRatioChange(){this._devicePixelRatio!==this._coreBrowserService.dpr&&(this._devicePixelRatio=this._coreBrowserService.dpr,this.handleResize(this._bufferService.cols,this._bufferService.rows))}handleResize(h,m){this._updateDimensions();for(let d of this._renderLayers)d.resize(this.dimensions);this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}handleCharSizeChanged(){this.handleResize(this._bufferService.cols,this._bufferService.rows)}handleBlur(){this._runOperation((h=>h.handleBlur()))}handleFocus(){this._runOperation((h=>h.handleFocus()))}handleSelectionChanged(h,m,d=!1){this._runOperation((c=>c.handleSelectionChanged(h,m,d))),this._themeService.colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})}handleCursorMove(){this._runOperation((h=>h.handleCursorMove()))}clear(){this._runOperation((h=>h.reset()))}_runOperation(h){for(let m of this._renderLayers)h(m)}renderRows(h,m){for(let d of this._renderLayers)d.handleGridChanged(h,m)}clearTextureAtlas(){for(let h of this._renderLayers)h.clearTextureAtlas()}_updateDimensions(){if(!this._charSizeService.hasValidSize)return;let h=this._coreBrowserService.dpr;this.dimensions.device.char.width=Math.floor(this._charSizeService.width*h),this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*h),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.top=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.device.cell.height-this.dimensions.device.char.height)/2),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.char.left=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.device.canvas.height=this._bufferService.rows*this.dimensions.device.cell.height,this.dimensions.device.canvas.width=this._bufferService.cols*this.dimensions.device.cell.width,this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/h),this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/h),this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows,this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols}_setCanvasDevicePixelDimensions(h,m){this.dimensions.device.canvas.height=m,this.dimensions.device.canvas.width=h;for(let d of this._renderLayers)d.resize(this.dimensions);this._requestRedrawViewport()}_requestRedrawViewport(){this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})}}t.CanvasRenderer=s},873:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;let l=a(457),u=a(859),n=a(399),f=a(782),p=a(903);class S extends p.BaseRenderLayer{constructor(e,o,s,i,h,m,d,c,v,C){super(e,o,"cursor",s,!0,C,h,m,v,c),this._onRequestRedraw=i,this._coreService=d,this._cursorBlinkStateManager=this.register(new u.MutableDisposable),this._cell=new f.CellData,this._state={x:0,y:0,isFocused:!1,style:"",width:0},this._cursorRenderers={bar:this._renderBarCursor.bind(this),block:this._renderBlockCursor.bind(this),underline:this._renderUnderlineCursor.bind(this),outline:this._renderOutlineCursor.bind(this)},this.register(m.onOptionChange((()=>this._handleOptionsChanged()))),this._handleOptionsChanged()}resize(e){super.resize(e),this._state={x:0,y:0,isFocused:!1,style:"",width:0}}reset(){var e;this._clearCursor(),(e=this._cursorBlinkStateManager.value)==null||e.restartBlinkAnimation(),this._handleOptionsChanged()}handleBlur(){var e;(e=this._cursorBlinkStateManager.value)==null||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}handleFocus(){var e;(e=this._cursorBlinkStateManager.value)==null||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}_handleOptionsChanged(){this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager.value||(this._cursorBlinkStateManager.value=new l.CursorBlinkStateManager((()=>this._render(!0)),this._coreBrowserService)):this._cursorBlinkStateManager.clear(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}handleCursorMove(){var e;(e=this._cursorBlinkStateManager.value)==null||e.restartBlinkAnimation()}handleGridChanged(e,o){!this._cursorBlinkStateManager.value||this._cursorBlinkStateManager.value.isPaused?this._render(!1):this._cursorBlinkStateManager.value.restartBlinkAnimation()}_render(e){if(!this._coreService.isCursorInitialized||this._coreService.isCursorHidden)return void this._clearCursor();let o=this._bufferService.buffer.ybase+this._bufferService.buffer.y,s=o-this._bufferService.buffer.ydisp;if(s<0||s>=this._bufferService.rows)return void this._clearCursor();let i=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(o).loadCell(i,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css;let h=this._optionsService.rawOptions.cursorStyle,m=this._optionsService.rawOptions.cursorInactiveStyle;m&&m!=="none"&&this._cursorRenderers[m](i,s,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=s,this._state.isFocused=!1,this._state.style=h,this._state.width=this._cell.getWidth();return}if(!this._cursorBlinkStateManager.value||this._cursorBlinkStateManager.value.isCursorVisible){if(this._state){if(this._state.x===i&&this._state.y===s&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](i,s,this._cell),this._ctx.restore(),this._state.x=i,this._state.y=s,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}_clearCursor(){this._state&&(this._state=(n.isFirefox||this._coreBrowserService.dpr<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),{x:0,y:0,isFocused:!1,style:"",width:0}))}_renderBarCursor(e,o,s){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillLeftLineAtCell(e,o,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()}_renderBlockCursor(e,o,s){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillCells(e,o,s.getWidth(),1),this._ctx.fillStyle=this._themeService.colors.cursorAccent.css,this._fillCharTrueColor(s,e,o),this._ctx.restore()}_renderUnderlineCursor(e,o,s){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillBottomLineAtCells(e,o),this._ctx.restore()}_renderOutlineCursor(e,o,s){this._ctx.save(),this._ctx.strokeStyle=this._themeService.colors.cursor.css,this._strokeRectAtCell(e,o,s.getWidth(),1),this._ctx.restore()}}t.CursorRenderLayer=S},574:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0,t.GridCache=class{constructor(){this.cache=[]}resize(a,l){for(let u=0;u{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;let l=a(197),u=a(237),n=a(903);class f extends n.BaseRenderLayer{constructor(S,r,e,o,s,i,h,m,d){super(S,r,"link",e,!0,d,s,i,h,m),this.register(o.onShowLinkUnderline((c=>this._handleShowLinkUnderline(c)))),this.register(o.onHideLinkUnderline((c=>this._handleHideLinkUnderline(c))))}resize(S){super.resize(S),this._state=void 0}reset(){this._clearCurrentLink()}_clearCurrentLink(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);let S=this._state.y2-this._state.y1-1;S>0&&this._clearCells(0,this._state.y1+1,this._state.cols,S),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}}_handleShowLinkUnderline(S){if(S.fg===u.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._themeService.colors.background.css:S.fg&&(0,l.is256Color)(S.fg)?this._ctx.fillStyle=this._themeService.colors.ansi[S.fg].css:this._ctx.fillStyle=this._themeService.colors.foreground.css,S.y1===S.y2)this._fillBottomLineAtCells(S.x1,S.y1,S.x2-S.x1);else{this._fillBottomLineAtCells(S.x1,S.y1,S.cols-S.x1);for(let r=S.y1+1;r{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;let l=a(903);class u extends l.BaseRenderLayer{constructor(f,p,S,r,e,o,s,i){super(f,p,"selection",S,!0,i,r,s,o,e),this._clearState()}_clearState(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}}resize(f){super.resize(f),this._selectionModel.selectionStart&&this._selectionModel.selectionEnd&&(this._clearState(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode))}reset(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())}handleBlur(){this.reset(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}handleFocus(){this.reset(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}handleSelectionChanged(f,p,S){super.handleSelectionChanged(f,p,S),this._redrawSelection(f,p,S)}_redrawSelection(f,p,S){if(!this._didStateChange(f,p,S,this._bufferService.buffer.ydisp))return;if(this._clearAll(),!f||!p)return void this._clearState();let r=f[1]-this._bufferService.buffer.ydisp,e=p[1]-this._bufferService.buffer.ydisp,o=Math.max(r,0),s=Math.min(e,this._bufferService.rows-1);if(o>=this._bufferService.rows||s<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=(this._coreBrowserService.isFocused?this._themeService.colors.selectionBackgroundTransparent:this._themeService.colors.selectionInactiveBackgroundTransparent).css,S){let i=f[0],h=p[0]-i,m=s-o+1;this._fillCells(i,o,h,m)}else{let i=r===o?f[0]:0,h=o===e?p[0]:this._bufferService.cols;this._fillCells(i,o,h-i,1);let m=Math.max(s-o-1,0);if(this._fillCells(0,o+1,this._bufferService.cols,m),o!==s){let d=e===s?p[0]:this._bufferService.cols;this._fillCells(0,s,d,1)}}this._state.start=[f[0],f[1]],this._state.end=[p[0],p[1]],this._state.columnSelectMode=S,this._state.ydisp=this._bufferService.buffer.ydisp}}_didStateChange(f,p,S,r){return!this._areCoordinatesEqual(f,this._state.start)||!this._areCoordinatesEqual(p,this._state.end)||S!==this._state.columnSelectMode||r!==this._state.ydisp}_areCoordinatesEqual(f,p){return!(!f||!p)&&f[0]===p[0]&&f[1]===p[1]}}t.SelectionRenderLayer=u},744:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;let l=a(577),u=a(147),n=a(782),f=a(855),p=a(903),S=a(574);class r extends p.BaseRenderLayer{constructor(o,s,i,h,m,d,c,v,C,k){super(o,s,"text",i,h,k,m,d,v,C),this._characterJoinerService=c,this._characterWidth=0,this._characterFont="",this._characterOverlapCache={},this._workCell=new n.CellData,this._state=new S.GridCache,this.register(d.onSpecificOptionChange("allowTransparency",(D=>this._setTransparency(D))))}resize(o){super.resize(o);let s=this._getFont(!1,!1);this._characterWidth===o.device.char.width&&this._characterFont===s||(this._characterWidth=o.device.char.width,this._characterFont=s,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)}reset(){this._state.clear(),this._clearAll()}_forEachCell(o,s,i){for(let h=o;h<=s;h++){let m=h+this._bufferService.buffer.ydisp,d=this._bufferService.buffer.lines.get(m),c=this._characterJoinerService.getJoinedCharacters(m);for(let v=0;v0&&v===c[0][0]){k=!0;let x=c.shift();C=new l.JoinedCellData(this._workCell,d.translateToString(!0,x[0],x[1]),x[1]-x[0]),D=x[1]-1}!k&&this._isOverlapping(C)&&D{let D=null;v.isInverse()?D=v.isFgDefault()?this._themeService.colors.foreground.css:v.isFgRGB()?`rgb(${u.AttributeData.toColorRGB(v.getFgColor()).join(",")})`:this._themeService.colors.ansi[v.getFgColor()].css:v.isBgRGB()?D=`rgb(${u.AttributeData.toColorRGB(v.getBgColor()).join(",")})`:v.isBgPalette()&&(D=this._themeService.colors.ansi[v.getBgColor()].css);let x=!1;this._decorationService.forEachDecorationAtCell(C,this._bufferService.buffer.ydisp+k,void 0,(y=>{y.options.layer!=="top"&&x||(y.backgroundColorRGB&&(D=y.backgroundColorRGB.css),x=y.options.layer==="top")})),c===null&&(m=C,d=k),k===d?c!==D&&(i.fillStyle=c||"",this._fillCells(m,d,C-m,1),m=C,d=k):(i.fillStyle=c||"",this._fillCells(m,d,h-m,1),m=C,d=k),c=D})),c!==null&&(i.fillStyle=c,this._fillCells(m,d,h-m,1)),i.restore()}_drawForeground(o,s){this._forEachCell(o,s,((i,h,m)=>this._drawChars(i,h,m)))}handleGridChanged(o,s){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,o,this._bufferService.cols,s-o+1),this._drawBackground(o,s),this._drawForeground(o,s))}_isOverlapping(o){if(o.getWidth()!==1||o.getCode()<256)return!1;let s=o.getChars();if(this._characterOverlapCache.hasOwnProperty(s))return this._characterOverlapCache[s];this._ctx.save(),this._ctx.font=this._characterFont;let i=Math.floor(this._ctx.measureText(s).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[s]=i,i}}t.TextRenderLayer=r},274:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellColorResolver=void 0;let l=a(855),u=a(160),n=a(374),f,p=0,S=0,r=!1,e=!1,o=!1,s=0;t.CellColorResolver=class{constructor(i,h,m,d,c,v){this._terminal=i,this._optionService=h,this._selectionRenderModel=m,this._decorationService=d,this._coreBrowserService=c,this._themeService=v,this.result={fg:0,bg:0,ext:0}}resolve(i,h,m,d){if(this.result.bg=i.bg,this.result.fg=i.fg,this.result.ext=268435456&i.bg?i.extended.ext:0,S=0,p=0,e=!1,r=!1,o=!1,f=this._themeService.colors,s=0,i.getCode()!==l.NULL_CELL_CODE&&i.extended.underlineStyle===4){let c=Math.max(1,Math.floor(this._optionService.rawOptions.fontSize*this._coreBrowserService.dpr/15));s=h*d%(2*Math.round(c))}if(this._decorationService.forEachDecorationAtCell(h,m,"bottom",(c=>{c.backgroundColorRGB&&(S=c.backgroundColorRGB.rgba>>8&16777215,e=!0),c.foregroundColorRGB&&(p=c.foregroundColorRGB.rgba>>8&16777215,r=!0)})),o=this._selectionRenderModel.isCellSelected(this._terminal,h,m),o){if(67108864&this.result.fg||50331648&this.result.bg){if(67108864&this.result.fg)switch(50331648&this.result.fg){case 16777216:case 33554432:S=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:S=(16777215&this.result.fg)<<8|255;break;default:S=this._themeService.colors.foreground.rgba}else switch(50331648&this.result.bg){case 16777216:case 33554432:S=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:S=(16777215&this.result.bg)<<8|255}S=u.rgba.blend(S,4294967040&(this._coreBrowserService.isFocused?f.selectionBackgroundOpaque:f.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}else S=(this._coreBrowserService.isFocused?f.selectionBackgroundOpaque:f.selectionInactiveBackgroundOpaque).rgba>>8&16777215;if(e=!0,f.selectionForeground&&(p=f.selectionForeground.rgba>>8&16777215,r=!0),(0,n.treatGlyphAsBackgroundColor)(i.getCode())){if(67108864&this.result.fg&&!(50331648&this.result.bg))p=(this._coreBrowserService.isFocused?f.selectionBackgroundOpaque:f.selectionInactiveBackgroundOpaque).rgba>>8&16777215;else{if(67108864&this.result.fg)switch(50331648&this.result.bg){case 16777216:case 33554432:p=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:p=(16777215&this.result.bg)<<8|255}else switch(50331648&this.result.fg){case 16777216:case 33554432:p=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:p=(16777215&this.result.fg)<<8|255;break;default:p=this._themeService.colors.foreground.rgba}p=u.rgba.blend(p,4294967040&(this._coreBrowserService.isFocused?f.selectionBackgroundOpaque:f.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}r=!0}}this._decorationService.forEachDecorationAtCell(h,m,"top",(c=>{c.backgroundColorRGB&&(S=c.backgroundColorRGB.rgba>>8&16777215,e=!0),c.foregroundColorRGB&&(p=c.foregroundColorRGB.rgba>>8&16777215,r=!0)})),e&&(S=o?i.bg&-150994944|S|50331648:-16777216&i.bg|S|50331648),r&&(p=i.fg&-83886080|p|50331648),67108864&this.result.fg&&(e&&!r&&(p=50331648&this.result.bg?-134217728&this.result.fg|67108863&this.result.bg:-134217728&this.result.fg|16777215&f.background.rgba>>8|50331648,r=!0),!e&&r&&(S=50331648&this.result.fg?-67108864&this.result.bg|67108863&this.result.fg:-67108864&this.result.bg|16777215&f.foreground.rgba>>8|50331648,e=!0)),f=void 0,this.result.bg=e?S:this.result.bg,this.result.fg=r?p:this.result.fg,this.result.ext&=536870911,this.result.ext|=s<<29&3758096384}}},627:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireTextureAtlas=void 0;let l=a(509),u=a(197),n=[];t.acquireTextureAtlas=function(f,p,S,r,e,o,s,i){let h=(0,u.generateConfig)(r,e,o,s,p,S,i);for(let c=0;c=0){if((0,u.configEquals)(v.config,h))return v.atlas;v.ownedBy.length===1?(v.atlas.dispose(),n.splice(c,1)):v.ownedBy.splice(C,1);break}}for(let c=0;c{Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;let l=a(160);t.generateConfig=function(u,n,f,p,S,r,e){let o={foreground:r.foreground,background:r.background,cursor:l.NULL_COLOR,cursorAccent:l.NULL_COLOR,selectionForeground:l.NULL_COLOR,selectionBackgroundTransparent:l.NULL_COLOR,selectionBackgroundOpaque:l.NULL_COLOR,selectionInactiveBackgroundTransparent:l.NULL_COLOR,selectionInactiveBackgroundOpaque:l.NULL_COLOR,ansi:r.ansi.slice(),contrastCache:r.contrastCache,halfContrastCache:r.halfContrastCache};return{customGlyphs:S.customGlyphs,devicePixelRatio:e,letterSpacing:S.letterSpacing,lineHeight:S.lineHeight,deviceCellWidth:u,deviceCellHeight:n,deviceCharWidth:f,deviceCharHeight:p,fontFamily:S.fontFamily,fontSize:S.fontSize,fontWeight:S.fontWeight,fontWeightBold:S.fontWeightBold,allowTransparency:S.allowTransparency,drawBoldTextInBrightColors:S.drawBoldTextInBrightColors,minimumContrastRatio:S.minimumContrastRatio,colors:o}},t.configEquals=function(u,n){for(let f=0;f{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;let l=a(399);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=l.isFirefox||l.isLegacyEdge?"bottom":"ideographic"},457:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CursorBlinkStateManager=void 0,t.CursorBlinkStateManager=class{constructor(a,l){this._renderCallback=a,this._coreBrowserService=l,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._blinkInterval=(this._coreBrowserService.window.clearInterval(this._blinkInterval),void 0)),this._blinkStartTimeout&&(this._blinkStartTimeout=(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),void 0)),this._animationFrame&&(this._animationFrame=(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),void 0))}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(a=600){this._blinkInterval&&(this._blinkInterval=(this._coreBrowserService.window.clearInterval(this._blinkInterval),void 0)),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){let l=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,l>0)return void this._restartInterval(l)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){let l=600-(Date.now()-this._animationTimeRestarted);this._animationTimeRestarted=void 0,this._restartInterval(l);return}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),a)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._blinkInterval=(this._coreBrowserService.window.clearInterval(this._blinkInterval),void 0)),this._blinkStartTimeout&&(this._blinkStartTimeout=(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),void 0)),this._animationFrame&&(this._animationFrame=(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),void 0))}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}}},860:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.powerlineDefinitions=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;let l=a(374);t.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:8,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};let u={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"\u2500":{1:"M0,.5 L1,.5"},"\u2501":{3:"M0,.5 L1,.5"},"\u2502":{1:"M.5,0 L.5,1"},"\u2503":{3:"M.5,0 L.5,1"},"\u250C":{1:"M0.5,1 L.5,.5 L1,.5"},"\u250F":{3:"M0.5,1 L.5,.5 L1,.5"},"\u2510":{1:"M0,.5 L.5,.5 L.5,1"},"\u2513":{3:"M0,.5 L.5,.5 L.5,1"},"\u2514":{1:"M.5,0 L.5,.5 L1,.5"},"\u2517":{3:"M.5,0 L.5,.5 L1,.5"},"\u2518":{1:"M.5,0 L.5,.5 L0,.5"},"\u251B":{3:"M.5,0 L.5,.5 L0,.5"},"\u251C":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"\u2523":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"\u2524":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"\u252B":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"\u252C":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"\u2533":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"\u2534":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"\u253B":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"\u253C":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"\u254B":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"\u2574":{1:"M.5,.5 L0,.5"},"\u2578":{3:"M.5,.5 L0,.5"},"\u2575":{1:"M.5,.5 L.5,0"},"\u2579":{3:"M.5,.5 L.5,0"},"\u2576":{1:"M.5,.5 L1,.5"},"\u257A":{3:"M.5,.5 L1,.5"},"\u2577":{1:"M.5,.5 L.5,1"},"\u257B":{3:"M.5,.5 L.5,1"},"\u2550":{1:(r,e)=>`M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e}`},"\u2551":{1:(r,e)=>`M${.5-r},0 L${.5-r},1 M${.5+r},0 L${.5+r},1`},"\u2552":{1:(r,e)=>`M.5,1 L.5,${.5-e} L1,${.5-e} M.5,${.5+e} L1,${.5+e}`},"\u2553":{1:(r,e)=>`M${.5-r},1 L${.5-r},.5 L1,.5 M${.5+r},.5 L${.5+r},1`},"\u2554":{1:(r,e)=>`M1,${.5-e} L${.5-r},${.5-e} L${.5-r},1 M1,${.5+e} L${.5+r},${.5+e} L${.5+r},1`},"\u2555":{1:(r,e)=>`M0,${.5-e} L.5,${.5-e} L.5,1 M0,${.5+e} L.5,${.5+e}`},"\u2556":{1:(r,e)=>`M${.5+r},1 L${.5+r},.5 L0,.5 M${.5-r},.5 L${.5-r},1`},"\u2557":{1:(r,e)=>`M0,${.5+e} L${.5-r},${.5+e} L${.5-r},1 M0,${.5-e} L${.5+r},${.5-e} L${.5+r},1`},"\u2558":{1:(r,e)=>`M.5,0 L.5,${.5+e} L1,${.5+e} M.5,${.5-e} L1,${.5-e}`},"\u2559":{1:(r,e)=>`M1,.5 L${.5-r},.5 L${.5-r},0 M${.5+r},.5 L${.5+r},0`},"\u255A":{1:(r,e)=>`M1,${.5-e} L${.5+r},${.5-e} L${.5+r},0 M1,${.5+e} L${.5-r},${.5+e} L${.5-r},0`},"\u255B":{1:(r,e)=>`M0,${.5+e} L.5,${.5+e} L.5,0 M0,${.5-e} L.5,${.5-e}`},"\u255C":{1:(r,e)=>`M0,.5 L${.5+r},.5 L${.5+r},0 M${.5-r},.5 L${.5-r},0`},"\u255D":{1:(r,e)=>`M0,${.5-e} L${.5-r},${.5-e} L${.5-r},0 M0,${.5+e} L${.5+r},${.5+e} L${.5+r},0`},"\u255E":{1:(r,e)=>`M.5,0 L.5,1 M.5,${.5-e} L1,${.5-e} M.5,${.5+e} L1,${.5+e}`},"\u255F":{1:(r,e)=>`M${.5-r},0 L${.5-r},1 M${.5+r},0 L${.5+r},1 M${.5+r},.5 L1,.5`},"\u2560":{1:(r,e)=>`M${.5-r},0 L${.5-r},1 M1,${.5+e} L${.5+r},${.5+e} L${.5+r},1 M1,${.5-e} L${.5+r},${.5-e} L${.5+r},0`},"\u2561":{1:(r,e)=>`M.5,0 L.5,1 M0,${.5-e} L.5,${.5-e} M0,${.5+e} L.5,${.5+e}`},"\u2562":{1:(r,e)=>`M0,.5 L${.5-r},.5 M${.5-r},0 L${.5-r},1 M${.5+r},0 L${.5+r},1`},"\u2563":{1:(r,e)=>`M${.5+r},0 L${.5+r},1 M0,${.5+e} L${.5-r},${.5+e} L${.5-r},1 M0,${.5-e} L${.5-r},${.5-e} L${.5-r},0`},"\u2564":{1:(r,e)=>`M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e} M.5,${.5+e} L.5,1`},"\u2565":{1:(r,e)=>`M0,.5 L1,.5 M${.5-r},.5 L${.5-r},1 M${.5+r},.5 L${.5+r},1`},"\u2566":{1:(r,e)=>`M0,${.5-e} L1,${.5-e} M0,${.5+e} L${.5-r},${.5+e} L${.5-r},1 M1,${.5+e} L${.5+r},${.5+e} L${.5+r},1`},"\u2567":{1:(r,e)=>`M.5,0 L.5,${.5-e} M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e}`},"\u2568":{1:(r,e)=>`M0,.5 L1,.5 M${.5-r},.5 L${.5-r},0 M${.5+r},.5 L${.5+r},0`},"\u2569":{1:(r,e)=>`M0,${.5+e} L1,${.5+e} M0,${.5-e} L${.5-r},${.5-e} L${.5-r},0 M1,${.5-e} L${.5+r},${.5-e} L${.5+r},0`},"\u256A":{1:(r,e)=>`M.5,0 L.5,1 M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e}`},"\u256B":{1:(r,e)=>`M0,.5 L1,.5 M${.5-r},0 L${.5-r},1 M${.5+r},0 L${.5+r},1`},"\u256C":{1:(r,e)=>`M0,${.5+e} L${.5-r},${.5+e} L${.5-r},1 M1,${.5+e} L${.5+r},${.5+e} L${.5+r},1 M0,${.5-e} L${.5-r},${.5-e} L${.5-r},0 M1,${.5-e} L${.5+r},${.5-e} L${.5+r},0`},"\u2571":{1:"M1,0 L0,1"},"\u2572":{1:"M0,0 L1,1"},"\u2573":{1:"M1,0 L0,1 M0,0 L1,1"},"\u257C":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"\u257D":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"\u257E":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u257F":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"\u250D":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"\u250E":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2511":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"\u2512":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"\u2515":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"\u2516":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"\u2519":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"\u251A":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"\u251D":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"\u251E":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"\u251F":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2520":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"\u2521":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"\u2522":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"\u2525":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"\u2526":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"\u2527":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"\u2528":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"\u2529":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"\u252A":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"\u252D":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u252E":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"\u252F":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"\u2530":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2531":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"\u2532":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"\u2535":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u2536":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"\u2537":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"\u2538":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"\u2539":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"\u253A":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"\u253D":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u253E":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"\u253F":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"\u2540":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"\u2541":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2542":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"\u2543":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"\u2544":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"\u2545":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"\u2546":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"\u2547":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"\u2548":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"\u2549":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"\u254A":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"\u254C":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"\u254D":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"\u2504":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"\u2505":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"\u2508":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"\u2509":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"\u254E":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"\u254F":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"\u2506":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"\u2507":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"\u250A":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"\u250B":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"\u256D":{1:(r,e)=>`M.5,1 L.5,${.5+e/.15*.5} C.5,${.5+e/.15*.5},.5,.5,1,.5`},"\u256E":{1:(r,e)=>`M.5,1 L.5,${.5+e/.15*.5} C.5,${.5+e/.15*.5},.5,.5,0,.5`},"\u256F":{1:(r,e)=>`M.5,0 L.5,${.5-e/.15*.5} C.5,${.5-e/.15*.5},.5,.5,0,.5`},"\u2570":{1:(r,e)=>`M.5,0 L.5,${.5-e/.15*.5} C.5,${.5-e/.15*.5},.5,.5,1,.5`}},t.powerlineDefinitions={"\uE0B0":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"\uE0B1":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"\uE0B2":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"\uE0B3":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"\uE0B4":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"\uE0B5":{d:"M.2,1 C.422,1,.8,.826,.78,.5 C.8,.174,0.422,0,.2,0",type:1,rightPadding:1},"\uE0B6":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"\uE0B7":{d:"M.8,1 C0.578,1,0.2,.826,.22,.5 C0.2,0.174,0.578,0,0.8,0",type:1,leftPadding:1},"\uE0B8":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"\uE0B9":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"\uE0BA":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"\uE0BC":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"\uE0BD":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"\uE0BE":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},t.powerlineDefinitions["\uE0BB"]=t.powerlineDefinitions["\uE0BD"],t.powerlineDefinitions["\uE0BF"]=t.powerlineDefinitions["\uE0B9"],t.tryDrawCustomChar=function(r,e,o,s,i,h,m,d){let c=t.blockElementDefinitions[e];if(c)return(function(D,x,y,L,M,B){for(let P=0;P7&&parseInt(H.slice(7,9),16)||1;else{if(!H.startsWith("rgba"))throw Error(`Unexpected fillStyle color format "${H}" when drawing pattern glyph`);[X,K,W,$]=H.substring(5,H.length-1).split(",").map((I=>parseFloat(I)))}for(let I=0;Ir.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]),L:(r,e)=>r.lineTo(e[0],e[1]),M:(r,e)=>r.moveTo(e[0],e[1])};function S(r,e,o,s,i,h,m,d=0,c=0){let v=r.map((C=>parseFloat(C)||parseInt(C)));if(v.length<2)throw Error("Too few arguments for instruction");for(let C=0;C{Object.defineProperty(t,"__esModule",{value:!0}),t.observeDevicePixelDimensions=void 0;let l=a(859);t.observeDevicePixelDimensions=function(u,n,f){let p=new n.ResizeObserver((S=>{let r=S.find((s=>s.target===u));if(!r)return;if(!("devicePixelContentBoxSize"in r))return p==null||p.disconnect(),void(p=void 0);let e=r.devicePixelContentBoxSize[0].inlineSize,o=r.devicePixelContentBoxSize[0].blockSize;e>0&&o>0&&f(e,o)}));try{p.observe(u,{box:["device-pixel-content-box"]})}catch{p.disconnect(),p=void 0}return(0,l.toDisposable)((()=>p==null?void 0:p.disconnect()))}},374:(A,t)=>{function a(u){return 57508<=u&&u<=57558}function l(u){return u>=128512&&u<=128591||u>=127744&&u<=128511||u>=128640&&u<=128767||u>=9728&&u<=9983||u>=9984&&u<=10175||u>=65024&&u<=65039||u>=129280&&u<=129535||u>=127462&&u<=127487}Object.defineProperty(t,"__esModule",{value:!0}),t.computeNextVariantOffset=t.createRenderDimensions=t.treatGlyphAsBackgroundColor=t.allowRescaling=t.isEmoji=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(u){if(!u)throw Error("value must not be falsy");return u},t.isPowerlineGlyph=a,t.isRestrictedPowerlineGlyph=function(u){return 57520<=u&&u<=57527},t.isEmoji=l,t.allowRescaling=function(u,n,f,p){return n===1&&f>Math.ceil(1.5*p)&&u!==void 0&&u>255&&!l(u)&&!a(u)&&!(function(S){return 57344<=S&&S<=63743})(u)},t.treatGlyphAsBackgroundColor=function(u){return a(u)||(function(n){return 9472<=n&&n<=9631})(u)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},t.computeNextVariantOffset=function(u,n,f=0){return(u-(2*Math.round(n)-f))%(2*Math.round(n))}},296:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectionRenderModel=void 0;class a{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(u,n,f,p=!1){if(this.selectionStart=n,this.selectionEnd=f,!n||!f||n[0]===f[0]&&n[1]===f[1])return void this.clear();let S=u.buffers.active.ydisp,r=n[1]-S,e=f[1]-S,o=Math.max(r,0),s=Math.min(e,u.rows-1);o>=u.rows||s<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=p,this.viewportStartRow=r,this.viewportEndRow=e,this.viewportCappedStartRow=o,this.viewportCappedEndRow=s,this.startCol=n[0],this.endCol=f[0])}isCellSelected(u,n,f){return!!this.hasSelection&&(f-=u.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?n>=this.startCol&&f>=this.viewportCappedStartRow&&n=this.viewportCappedStartRow&&n>=this.endCol&&f<=this.viewportCappedEndRow:f>this.viewportStartRow&&f=this.startCol&&n=this.startCol)}}t.createSelectionRenderModel=function(){return new a}},509:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextureAtlas=void 0;let l=a(237),u=a(860),n=a(374),f=a(160),p=a(345),S=a(485),r=a(385),e=a(147),o=a(855),s={texturePage:0,texturePosition:{x:0,y:0},texturePositionClipSpace:{x:0,y:0},offset:{x:0,y:0},size:{x:0,y:0},sizeClipSpace:{x:0,y:0}},i;class h{get pages(){return this._pages}constructor(C,k,D){this._document=C,this._config=k,this._unicodeService=D,this._didWarmUp=!1,this._cacheMap=new S.FourKeyMap,this._cacheMapCombined=new S.FourKeyMap,this._pages=[],this._activePages=[],this._workBoundingBox={top:0,left:0,bottom:0,right:0},this._workAttributeData=new e.AttributeData,this._textureSize=512,this._onAddTextureAtlasCanvas=new p.EventEmitter,this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=new p.EventEmitter,this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._requestClearModel=!1,this._createNewPage(),this._tmpCanvas=c(C,4*this._config.deviceCellWidth+4,this._config.deviceCellHeight+4),this._tmpCtx=(0,n.throwIfFalsy)(this._tmpCanvas.getContext("2d",{alpha:this._config.allowTransparency,willReadFrequently:!0}))}dispose(){for(let C of this.pages)C.canvas.remove();this._onAddTextureAtlasCanvas.dispose()}warmUp(){this._didWarmUp||(this._didWarmUp=(this._doWarmUp(),!0))}_doWarmUp(){let C=new r.IdleTaskQueue;for(let k=33;k<126;k++)C.enqueue((()=>{if(!this._cacheMap.get(k,o.DEFAULT_COLOR,o.DEFAULT_COLOR,o.DEFAULT_EXT)){let D=this._drawToCache(k,o.DEFAULT_COLOR,o.DEFAULT_COLOR,o.DEFAULT_EXT);this._cacheMap.set(k,o.DEFAULT_COLOR,o.DEFAULT_COLOR,o.DEFAULT_EXT,D)}}))}beginFrame(){return this._requestClearModel}clearTexture(){if(this._pages[0].currentRow.x!==0||this._pages[0].currentRow.y!==0){for(let C of this._pages)C.clear();this._cacheMap.clear(),this._cacheMapCombined.clear(),this._didWarmUp=!1}}_createNewPage(){if(h.maxAtlasPages&&this._pages.length>=Math.max(4,h.maxAtlasPages)){let k=this._pages.filter((P=>2*P.canvas.width<=(h.maxTextureSize||4096))).sort(((P,H)=>H.canvas.width===P.canvas.width?H.percentageUsed-P.percentageUsed:H.canvas.width-P.canvas.width)),D=-1,x=0;for(let P=0;PP.glyphs[0].texturePage)).sort(((P,H)=>P>H?1:-1)),M=this.pages.length-y.length,B=this._mergePages(y,M);B.version++;for(let P=L.length-1;P>=0;P--)this._deletePage(L[P]);this.pages.push(B),this._requestClearModel=!0,this._onAddTextureAtlasCanvas.fire(B.canvas)}let C=new m(this._document,this._textureSize);return this._pages.push(C),this._activePages.push(C),this._onAddTextureAtlasCanvas.fire(C.canvas),C}_mergePages(C,k){let D=2*C[0].canvas.width,x=new m(this._document,D,C);for(let[y,L]of C.entries()){let M=y*L.canvas.width%D,B=Math.floor(y/2)*L.canvas.height;x.ctx.drawImage(L.canvas,M,B);for(let H of L.glyphs)H.texturePage=k,H.sizeClipSpace.x=H.size.x/D,H.sizeClipSpace.y=H.size.y/D,H.texturePosition.x+=M,H.texturePosition.y+=B,H.texturePositionClipSpace.x=H.texturePosition.x/D,H.texturePositionClipSpace.y=H.texturePosition.y/D;this._onRemoveTextureAtlasCanvas.fire(L.canvas);let P=this._activePages.indexOf(L);P!==-1&&this._activePages.splice(P,1)}return x}_deletePage(C){this._pages.splice(C,1);for(let k=C;k=this._config.colors.ansi.length)throw Error("No color found for idx "+C);return this._config.colors.ansi[C]}_getBackgroundColor(C,k,D,x){if(this._config.allowTransparency)return f.NULL_COLOR;let y;switch(C){case 16777216:case 33554432:y=this._getColorFromAnsiIndex(k);break;case 50331648:let L=e.AttributeData.toColorRGB(k);y=f.channels.toColor(L[0],L[1],L[2]);break;default:y=D?f.color.opaque(this._config.colors.foreground):this._config.colors.background}return y}_getForegroundColor(C,k,D,x,y,L,M,B,P,H){let w=this._getMinimumContrastColor(C,k,D,x,y,L,M,P,B,H);if(w)return w;let R;switch(y){case 16777216:case 33554432:this._config.drawBoldTextInBrightColors&&P&&L<8&&(L+=8),R=this._getColorFromAnsiIndex(L);break;case 50331648:let O=e.AttributeData.toColorRGB(L);R=f.channels.toColor(O[0],O[1],O[2]);break;default:R=M?this._config.colors.background:this._config.colors.foreground}return this._config.allowTransparency&&(R=f.color.opaque(R)),B&&(R=f.color.multiplyOpacity(R,l.DIM_OPACITY)),R}_resolveBackgroundRgba(C,k,D){switch(C){case 16777216:case 33554432:return this._getColorFromAnsiIndex(k).rgba;case 50331648:return k<<8;default:return D?this._config.colors.foreground.rgba:this._config.colors.background.rgba}}_resolveForegroundRgba(C,k,D,x){switch(C){case 16777216:case 33554432:return this._config.drawBoldTextInBrightColors&&x&&k<8&&(k+=8),this._getColorFromAnsiIndex(k).rgba;case 50331648:return k<<8;default:return D?this._config.colors.background.rgba:this._config.colors.foreground.rgba}}_getMinimumContrastColor(C,k,D,x,y,L,M,B,P,H){if(this._config.minimumContrastRatio===1||H)return;let w=this._getContrastCache(P),R=w.getColor(C,x);if(R!==void 0)return R||void 0;let O=this._resolveBackgroundRgba(k,D,M),F=this._resolveForegroundRgba(y,L,M,B),z=f.rgba.ensureContrastRatio(O,F,this._config.minimumContrastRatio/(P?2:1));if(!z)return void w.setColor(C,x,null);let j=f.channels.toColor(z>>24&255,z>>16&255,z>>8&255);return w.setColor(C,x,j),j}_getContrastCache(C){return C?this._config.colors.halfContrastCache:this._config.colors.contrastCache}_drawToCache(C,k,D,x,y=!1){let L=typeof C=="number"?String.fromCharCode(C):C,M=Math.min(this._config.deviceCellWidth*Math.max(L.length,2)+4,this._textureSize);this._tmpCanvas.width=V?2*V-_e:V-_e;!(_e>=V)==0||We===0?(this._tmpCtx.setLineDash([Math.round(V),Math.round(V)]),this._tmpCtx.moveTo(ne+We,oe),this._tmpCtx.lineTo(Z,oe)):(this._tmpCtx.setLineDash([Math.round(V),Math.round(V)]),this._tmpCtx.moveTo(ne,oe),this._tmpCtx.lineTo(ne+We,oe),this._tmpCtx.moveTo(ne+We+V,oe),this._tmpCtx.lineTo(Z,oe)),_e=(0,n.computeNextVariantOffset)(Z-ne,V,_e);break;case 5:let Qe=Z-ne,Dt=Math.floor(.6*Qe),Rt=Math.floor(.3*Qe),yi=Qe-Dt-Rt;this._tmpCtx.setLineDash([Dt,Rt,yi]),this._tmpCtx.moveTo(ne,oe),this._tmpCtx.lineTo(Z,oe);break;default:this._tmpCtx.moveTo(ne,oe),this._tmpCtx.lineTo(Z,oe)}this._tmpCtx.stroke(),this._tmpCtx.restore()}if(this._tmpCtx.restore(),!re&&this._config.fontSize>=12&&!this._config.allowTransparency&&L!==" "){this._tmpCtx.save(),this._tmpCtx.textBaseline="alphabetic";let le=this._tmpCtx.measureText(L);if(this._tmpCtx.restore(),"actualBoundingBoxDescent"in le&&le.actualBoundingBoxDescent>0){this._tmpCtx.save();let ne=new Path2D;ne.rect(ae,oe-Math.ceil(V/2),this._config.deviceCellWidth*he,ue-oe+Math.ceil(V/2)),this._tmpCtx.clip(ne),this._tmpCtx.lineWidth=3*this._config.devicePixelRatio,this._tmpCtx.strokeStyle=$.css,this._tmpCtx.strokeText(L,Y,Y+this._config.deviceCharHeight),this._tmpCtx.restore()}}}if(z){let V=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/15)),ie=V%2==1?.5:0;this._tmpCtx.lineWidth=V,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(Y,Y+ie),this._tmpCtx.lineTo(Y+this._config.deviceCharWidth*he,Y+ie),this._tmpCtx.stroke()}if(re||this._tmpCtx.fillText(L,Y,Y+this._config.deviceCharHeight),L==="_"&&!this._config.allowTransparency){let V=d(this._tmpCtx.getImageData(Y,Y,this._config.deviceCellWidth,this._config.deviceCellHeight),$,Q,J);if(V)for(let ie=1;ie<=5&&(this._tmpCtx.save(),this._tmpCtx.fillStyle=$.css,this._tmpCtx.fillRect(0,0,this._tmpCanvas.width,this._tmpCanvas.height),this._tmpCtx.restore(),this._tmpCtx.fillText(L,Y,Y+this._config.deviceCharHeight-ie),V=d(this._tmpCtx.getImageData(Y,Y,this._config.deviceCellWidth,this._config.deviceCellHeight),$,Q,J),V);ie++);}if(F){let V=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/10)),ie=this._tmpCtx.lineWidth%2==1?.5:0;this._tmpCtx.lineWidth=V,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(Y,Y+Math.floor(this._config.deviceCharHeight/2)-ie),this._tmpCtx.lineTo(Y+this._config.deviceCharWidth*he,Y+Math.floor(this._config.deviceCharHeight/2)-ie),this._tmpCtx.stroke()}this._tmpCtx.restore();let Ce=this._tmpCtx.getImageData(0,0,this._tmpCanvas.width,this._tmpCanvas.height),Re;if(Re=this._config.allowTransparency?(function(V){for(let ie=0;ie0)return!1;return!0})(Ce):d(Ce,$,Q,J),Re)return s;let se=this._findGlyphBoundingBox(Ce,this._workBoundingBox,M,G,re,Y),ee,te;for(;;){if(this._activePages.length===0){let V=this._createNewPage();ee=V,te=V.currentRow,te.height=se.size.y;break}ee=this._activePages[this._activePages.length-1],te=ee.currentRow;for(let V of this._activePages)se.size.y<=V.currentRow.height&&(ee=V,te=V.currentRow);for(let V=this._activePages.length-1;V>=0;V--)for(let ie of this._activePages[V].fixedRows)ie.height<=te.height&&se.size.y<=ie.height&&(ee=this._activePages[V],te=ie);if(te.y+se.size.y>=ee.canvas.height||te.height>se.size.y+2){let V=!1;if(ee.currentRow.y+ee.currentRow.height+se.size.y>=ee.canvas.height){let ie;for(let ae of this._activePages)if(ae.currentRow.y+ae.currentRow.height+se.size.y=h.maxAtlasPages&&te.y+se.size.y<=ee.canvas.height&&te.height>=se.size.y&&te.x+se.size.x<=ee.canvas.width)V=!0;else{let ae=this._createNewPage();ee=ae,te=ae.currentRow,te.height=se.size.y,V=!0}}V||(ee.currentRow.height>0&&ee.fixedRows.push(ee.currentRow),te={x:0,y:ee.currentRow.y+ee.currentRow.height,height:se.size.y},ee.fixedRows.push(te),ee.currentRow={x:0,y:te.y+te.height,height:0})}if(te.x+se.size.x<=ee.canvas.width)break;te===ee.currentRow?(te.x=0,te.y+=te.height,te.height=0):ee.fixedRows.splice(ee.fixedRows.indexOf(te),1)}return se.texturePage=this._pages.indexOf(ee),se.texturePosition.x=te.x,se.texturePosition.y=te.y,se.texturePositionClipSpace.x=te.x/ee.canvas.width,se.texturePositionClipSpace.y=te.y/ee.canvas.height,se.sizeClipSpace.x/=ee.canvas.width,se.sizeClipSpace.y/=ee.canvas.height,te.height=Math.max(te.height,se.size.y),te.x+=se.size.x,ee.ctx.putImageData(Ce,se.texturePosition.x-this._workBoundingBox.left,se.texturePosition.y-this._workBoundingBox.top,this._workBoundingBox.left,this._workBoundingBox.top,se.size.x,se.size.y),ee.addGlyph(se),ee.version++,se}_findGlyphBoundingBox(C,k,D,x,y,L){k.top=0;let M=x?this._config.deviceCellHeight:this._tmpCanvas.height,B=x?this._config.deviceCellWidth:D,P=!1;for(let H=0;H=L;H--){for(let w=0;w=0;H--){for(let w=0;w>>24,y=C.rgba>>>16&255,L=C.rgba>>>8&255,M=k.rgba>>>24,B=k.rgba>>>16&255,P=k.rgba>>>8&255,H=Math.floor((Math.abs(x-M)+Math.abs(y-B)+Math.abs(L-P))/12),w=!0;for(let R=0;R=0;v--)(m=o[v])&&(c=(d<3?m(c):d>3?m(s,i,c):m(s,i))||c);return d>3&&c&&Object.defineProperty(s,i,c),c},u=this&&this.__param||function(o,s){return function(i,h){s(i,h,o)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;let n=a(147),f=a(855),p=a(782),S=a(97);class r extends n.AttributeData{constructor(s,i,h){super(),this.content=0,this.combinedData="",this.fg=s.fg,this.bg=s.bg,this.combinedData=i,this._width=h}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(s){throw Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=r;let e=t.CharacterJoinerService=class li{constructor(s){this._bufferService=s,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}register(s){let i={id:this._nextCharacterJoinerId++,handler:s};return this._characterJoiners.push(i),i.id}deregister(s){for(let i=0;i1){let x=this._getJoinedRanges(m,v,c,i,d);for(let y=0;y1){let D=this._getJoinedRanges(m,v,c,i,d);for(let x=0;x{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;let a=0,l=0,u=0,n=0;var f,p,S,r,e;function o(i){let h=i.toString(16);return h.length<2?"0"+h:h}function s(i,h){return i>>0},i.toColor=function(h,m,d,c){return{css:i.toCss(h,m,d,c),rgba:i.toRgba(h,m,d,c)}}})(f||(t.channels=f={})),(function(i){function h(m,d){return n=Math.round(255*d),[a,l,u]=e.toChannels(m.rgba),{css:f.toCss(a,l,u,n),rgba:f.toRgba(a,l,u,n)}}i.blend=function(m,d){if(n=(255&d.rgba)/255,n===1)return{css:d.css,rgba:d.rgba};let c=d.rgba>>24&255,v=d.rgba>>16&255,C=d.rgba>>8&255,k=m.rgba>>24&255,D=m.rgba>>16&255,x=m.rgba>>8&255;return a=k+Math.round((c-k)*n),l=D+Math.round((v-D)*n),u=x+Math.round((C-x)*n),{css:f.toCss(a,l,u),rgba:f.toRgba(a,l,u)}},i.isOpaque=function(m){return(255&m.rgba)==255},i.ensureContrastRatio=function(m,d,c){let v=e.ensureContrastRatio(m.rgba,d.rgba,c);if(v)return f.toColor(v>>24&255,v>>16&255,v>>8&255)},i.opaque=function(m){let d=(255|m.rgba)>>>0;return[a,l,u]=e.toChannels(d),{css:f.toCss(a,l,u),rgba:d}},i.opacity=h,i.multiplyOpacity=function(m,d){return n=255&m.rgba,h(m,n*d/255)},i.toColorRGB=function(m){return[m.rgba>>24&255,m.rgba>>16&255,m.rgba>>8&255]}})(p||(t.color=p={})),(function(i){let h,m;try{let d=document.createElement("canvas");d.width=1,d.height=1;let c=d.getContext("2d",{willReadFrequently:!0});c&&(h=c,h.globalCompositeOperation="copy",m=h.createLinearGradient(0,0,1,1))}catch{}i.toColor=function(d){if(d.match(/#[\da-f]{3,8}/i))switch(d.length){case 4:return a=parseInt(d.slice(1,2).repeat(2),16),l=parseInt(d.slice(2,3).repeat(2),16),u=parseInt(d.slice(3,4).repeat(2),16),f.toColor(a,l,u);case 5:return a=parseInt(d.slice(1,2).repeat(2),16),l=parseInt(d.slice(2,3).repeat(2),16),u=parseInt(d.slice(3,4).repeat(2),16),n=parseInt(d.slice(4,5).repeat(2),16),f.toColor(a,l,u,n);case 7:return{css:d,rgba:(parseInt(d.slice(1),16)<<8|255)>>>0};case 9:return{css:d,rgba:parseInt(d.slice(1),16)>>>0}}let c=d.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(c)return a=parseInt(c[1]),l=parseInt(c[2]),u=parseInt(c[3]),n=Math.round(255*(c[5]===void 0?1:parseFloat(c[5]))),f.toColor(a,l,u,n);if(!h||!m||(h.fillStyle=m,h.fillStyle=d,typeof h.fillStyle!="string")||(h.fillRect(0,0,1,1),[a,l,u,n]=h.getImageData(0,0,1,1).data,n!==255))throw Error("css.toColor: Unsupported css format");return{rgba:f.toRgba(a,l,u,n),css:d}}})(S||(t.css=S={})),(function(i){function h(m,d,c){let v=m/255,C=d/255,k=c/255;return .2126*(v<=.03928?v/12.92:((v+.055)/1.055)**2.4)+.7152*(C<=.03928?C/12.92:((C+.055)/1.055)**2.4)+.0722*(k<=.03928?k/12.92:((k+.055)/1.055)**2.4)}i.relativeLuminance=function(m){return h(m>>16&255,m>>8&255,255&m)},i.relativeLuminance2=h})(r||(t.rgb=r={})),(function(i){function h(d,c,v){let C=d>>24&255,k=d>>16&255,D=d>>8&255,x=c>>24&255,y=c>>16&255,L=c>>8&255,M=s(r.relativeLuminance2(x,y,L),r.relativeLuminance2(C,k,D));for(;M0||y>0||L>0);)x-=Math.max(0,Math.ceil(.1*x)),y-=Math.max(0,Math.ceil(.1*y)),L-=Math.max(0,Math.ceil(.1*L)),M=s(r.relativeLuminance2(x,y,L),r.relativeLuminance2(C,k,D));return(x<<24|y<<16|L<<8|255)>>>0}function m(d,c,v){let C=d>>24&255,k=d>>16&255,D=d>>8&255,x=c>>24&255,y=c>>16&255,L=c>>8&255,M=s(r.relativeLuminance2(x,y,L),r.relativeLuminance2(C,k,D));for(;M>>0}i.blend=function(d,c){if(n=(255&c)/255,n===1)return c;let v=c>>24&255,C=c>>16&255,k=c>>8&255,D=d>>24&255,x=d>>16&255,y=d>>8&255;return a=D+Math.round((v-D)*n),l=x+Math.round((C-x)*n),u=y+Math.round((k-y)*n),f.toRgba(a,l,u)},i.ensureContrastRatio=function(d,c,v){let C=r.relativeLuminance(d>>8),k=r.relativeLuminance(c>>8);if(s(C,k)>8));if(Ls(C,r.relativeLuminance(M>>8))?y:M}return y}let D=m(d,c,v),x=s(C,r.relativeLuminance(D>>8));if(xs(C,r.relativeLuminance(y>>8))?D:y}return D}},i.reduceLuminance=h,i.increaseLuminance=m,i.toChannels=function(d){return[d>>24&255,d>>16&255,d>>8&255,255&d]}})(e||(t.rgba=e={})),t.toPaddedHex=o,t.contrastRatio=s},345:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.runAndSubscribe=t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=a=>(this._listeners.push(a),{dispose:()=>{if(!this._disposed){for(let l=0;ll.fire(u)))},t.runAndSubscribe=function(a,l){return l(void 0),a((u=>l(u)))}},859:(A,t)=>{function a(l){for(let u of l)u.dispose();l.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(let l of this._disposables)l.dispose();this._disposables.length=0}register(l){return this._disposables.push(l),l}unregister(l){let u=this._disposables.indexOf(l);u!==-1&&this._disposables.splice(u,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(l){var u;this._isDisposed||l===this._value||((u=this._value)==null||u.dispose(),this._value=l)}clear(){this.value=void 0}dispose(){var l;this._isDisposed=!0,(l=this._value)==null||l.dispose(),this._value=void 0}},t.toDisposable=function(l){return{dispose:l}},t.disposeArray=a,t.getDisposeArrayDisposable=function(l){return{dispose:()=>a(l)}}},485:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class a{constructor(){this._data={}}set(u,n,f){this._data[u]||(this._data[u]={}),this._data[u][n]=f}get(u,n){return this._data[u]?this._data[u][n]:void 0}clear(){this._data={}}}t.TwoKeyMap=a,t.FourKeyMap=class{constructor(){this._data=new a}set(l,u,n,f,p){this._data.get(l,u)||this._data.set(l,u,new a),this._data.get(l,u).set(n,f,p)}get(l,u,n,f){var p;return(p=this._data.get(l,u))==null?void 0:p.get(n,f)}clear(){this._data.clear()}}},399:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode=typeof process<"u"&&"title"in process;let a=t.isNode?"node":navigator.userAgent,l=t.isNode?"node":navigator.platform;t.isFirefox=a.includes("Firefox"),t.isLegacyEdge=a.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(a),t.getSafariVersion=function(){if(!t.isSafari)return 0;let u=a.match(/Version\/(\d+)/);return u===null||u.length<2?0:parseInt(u[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(l),t.isIpad=l==="iPad",t.isIphone=l==="iPhone",t.isWindows=["Windows","Win16","Win32","WinCE"].includes(l),t.isLinux=l.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(a)},385:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;let l=a(399);class u{constructor(){this._tasks=[],this._i=0}enqueue(p){this._tasks.push(p),this._start()}flush(){for(;this._io)return e-S<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e-S))}ms`),void this._start();e=o}this.clear()}}class n extends u{_requestCallback(p){return setTimeout((()=>p(this._createDeadline(16))))}_cancelCallback(p){clearTimeout(p)}_createDeadline(p){let S=Date.now()+p;return{timeRemaining:()=>Math.max(0,S-Date.now())}}}t.PriorityTaskQueue=n,t.IdleTaskQueue=!l.isNode&&"requestIdleCallback"in window?class extends u{_requestCallback(f){return requestIdleCallback(f)}_cancelCallback(f){cancelIdleCallback(f)}}:n,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(f){this._queue.clear(),this._queue.enqueue(f)}flush(){this._queue.flush()}}},147:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class a{constructor(){this.fg=0,this.bg=0,this.extended=new l}static toColorRGB(n){return[n>>>16&255,n>>>8&255,255&n]}static fromColorRGB(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]}clone(){let n=new a;return n.fg=this.fg,n.bg=this.bg,n.extended=this.extended.clone(),n}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}t.AttributeData=a;class l{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(n){this._ext=n}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(n){this._ext&=-469762049,this._ext|=n<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(n){this._ext&=-67108864,this._ext|=67108863&n}get urlId(){return this._urlId}set urlId(n){this._urlId=n}get underlineVariantOffset(){let n=(3758096384&this._ext)>>29;return n<0?4294967288^n:n}set underlineVariantOffset(n){this._ext&=536870911,this._ext|=n<<29&3758096384}constructor(n=0,f=0){this._ext=0,this._urlId=0,this._ext=n,this._urlId=f}clone(){return new l(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}t.ExtendedAttrs=l},782:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;let l=a(133),u=a(855),n=a(147);class f extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(S){let r=new f;return r.setFromCharData(S),r}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,l.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(S){this.fg=S[u.CHAR_DATA_ATTR_INDEX],this.bg=0;let r=!1;if(S[u.CHAR_DATA_CHAR_INDEX].length>2)r=!0;else if(S[u.CHAR_DATA_CHAR_INDEX].length===2){let e=S[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){let o=S[u.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=o&&o<=57343?this.content=1024*(e-55296)+o-56320+65536|S[u.CHAR_DATA_WIDTH_INDEX]<<22:r=!0}else r=!0}else this.content=S[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|S[u.CHAR_DATA_WIDTH_INDEX]<<22;r&&(this.combinedData=S[u.CHAR_DATA_CHAR_INDEX],this.content=2097152|S[u.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=f},855:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},133:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(a){return a>65535?(a-=65536,String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):String.fromCharCode(a)},t.utf32ToString=function(a,l=0,u=a.length){let n="";for(let f=l;f65535?(p-=65536,n+=String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):n+=String.fromCharCode(p)}return n},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(a,l){let u=a.length;if(!u)return 0;let n=0,f=0;if(this._interim){let p=a.charCodeAt(f++);56320<=p&&p<=57343?l[n++]=1024*(this._interim-55296)+p-56320+65536:(l[n++]=this._interim,l[n++]=p),this._interim=0}for(let p=f;p=u)return this._interim=S,n;let r=a.charCodeAt(p);56320<=r&&r<=57343?l[n++]=1024*(S-55296)+r-56320+65536:(l[n++]=S,l[n++]=r)}else S!==65279&&(l[n++]=S)}return n}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(a,l){let u=a.length;if(!u)return 0;let n,f,p,S,r=0,e=0,o=0;if(this.interim[0]){let h=!1,m=this.interim[0];m&=(224&m)==192?31:(240&m)==224?15:7;let d,c=0;for(;(d=63&this.interim[++c])&&c<4;)m<<=6,m|=d;let v=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,C=v-c;for(;o=u)return 0;if(d=a[o++],(192&d)!=128){o--,h=!0;break}this.interim[c++]=d,m<<=6,m|=63&d}h||(v===2?m<128?o--:l[r++]=m:v===3?m<2048||m>=55296&&m<=57343||m===65279||(l[r++]=m):m<65536||m>1114111||(l[r++]=m)),this.interim.fill(0)}let s=u-4,i=o;for(;i=u)return this.interim[0]=n,r;if(f=a[i++],(192&f)!=128){i--;continue}if(e=(31&n)<<6|63&f,e<128){i--;continue}l[r++]=e}else if((240&n)==224){if(i>=u)return this.interim[0]=n,r;if(f=a[i++],(192&f)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=f,r;if(p=a[i++],(192&p)!=128){i--;continue}if(e=(15&n)<<12|(63&f)<<6|63&p,e<2048||e>=55296&&e<=57343||e===65279)continue;l[r++]=e}else if((248&n)==240){if(i>=u)return this.interim[0]=n,r;if(f=a[i++],(192&f)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=f,r;if(p=a[i++],(192&p)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=f,this.interim[2]=p,r;if(S=a[i++],(192&S)!=128){i--;continue}if(e=(7&n)<<18|(63&f)<<12|(63&p)<<6|63&S,e<65536||e>1114111)continue;l[r++]=e}}return r}}},776:function(A,t,a){var l=this&&this.__decorate||function(e,o,s,i){var h,m=arguments.length,d=m<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,s):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,s,i);else for(var c=e.length-1;c>=0;c--)(h=e[c])&&(d=(m<3?h(d):m>3?h(o,s,d):h(o,s))||d);return m>3&&d&&Object.defineProperty(o,s,d),d},u=this&&this.__param||function(e,o){return function(s,i){o(s,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;let n=a(859),f=a(97),p={trace:f.LogLevelEnum.TRACE,debug:f.LogLevelEnum.DEBUG,info:f.LogLevelEnum.INFO,warn:f.LogLevelEnum.WARN,error:f.LogLevelEnum.ERROR,off:f.LogLevelEnum.OFF},S,r=t.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=f.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),S=this}_updateLogLevel(){this._logLevel=p[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let o=0;oJSON.stringify(d))).join(", ")})`);let m=i.apply(this,h);return S.trace(`GlyphRenderer#${i.name} return`,m),m}}},726:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;let a="di$target",l="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(u){return u[l]||[]},t.createDecorator=function(u){if(t.serviceRegistry.has(u))return t.serviceRegistry.get(u);let n=function(f,p,S){if(arguments.length!==3)throw Error("@IServiceName-decorator can only be used to decorate a parameter");(function(r,e,o){e[a]===e?e[l].push({id:r,index:o}):(e[l]=[{id:r,index:o}],e[a]=e)})(n,f,S)};return n.toString=()=>u,t.serviceRegistry.set(u,n),n}},97:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;let l=a(726);var u;t.IBufferService=(0,l.createDecorator)("BufferService"),t.ICoreMouseService=(0,l.createDecorator)("CoreMouseService"),t.ICoreService=(0,l.createDecorator)("CoreService"),t.ICharsetService=(0,l.createDecorator)("CharsetService"),t.IInstantiationService=(0,l.createDecorator)("InstantiationService"),(function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"})(u||(t.LogLevelEnum=u={})),t.ILogService=(0,l.createDecorator)("LogService"),t.IOptionsService=(0,l.createDecorator)("OptionsService"),t.IOscLinkService=(0,l.createDecorator)("OscLinkService"),t.IUnicodeService=(0,l.createDecorator)("UnicodeService"),t.IDecorationService=(0,l.createDecorator)("DecorationService")}},E={};function T(A){var t=E[A];if(t!==void 0)return t.exports;var a=E[A]={exports:{}};return b[A].call(a.exports,a,a.exports,T),a.exports}var N={};return(()=>{var A=N;Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasAddon=void 0;let t=T(345),a=T(859),l=T(776),u=T(949);class n extends a.Disposable{constructor(){super(...arguments),this._onChangeTextureAtlas=this.register(new t.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new t.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event}get textureAtlas(){var p;return(p=this._renderer)==null?void 0:p.textureAtlas}activate(p){let S=p._core;if(!p.element)return void this.register(S.onWillOpen((()=>this.activate(p))));this._terminal=p;let r=S.coreService,e=S.optionsService,o=S.screenElement,s=S.linkifier,i=S,h=i._bufferService,m=i._renderService,d=i._characterJoinerService,c=i._charSizeService,v=i._coreBrowserService,C=i._decorationService,k=i._logService,D=i._themeService;(0,l.setTraceLogger)(k),this._renderer=new u.CanvasRenderer(p,o,s,h,c,e,d,r,v,C,D),this.register((0,t.forwardEvent)(this._renderer.onChangeTextureAtlas,this._onChangeTextureAtlas)),this.register((0,t.forwardEvent)(this._renderer.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas)),m.setRenderer(this._renderer),m.handleResize(h.cols,h.rows),this.register((0,a.toDisposable)((()=>{var x;m.setRenderer(this._terminal._core._createRenderer()),m.handleResize(p.cols,p.rows),(x=this._renderer)==null||x.dispose(),this._renderer=void 0})))}clearTextureAtlas(){var p;(p=this._renderer)==null||p.clearTextureAtlas()}}A.CanvasAddon=n})(),N})()))}))(),Ui=2,zi=1,ji=class{activate(g){this._terminal=g}dispose(){}fit(){let g=this.proposeDimensions();if(!g||!this._terminal||isNaN(g.cols)||isNaN(g.rows))return;let _=this._terminal._core;(this._terminal.rows!==g.rows||this._terminal.cols!==g.cols)&&(_._renderService.clear(),this._terminal.resize(g.cols,g.rows))}proposeDimensions(){var n;if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let g=this._terminal._core._renderService.dimensions;if(g.css.cell.width===0||g.css.cell.height===0)return;let _=this._terminal.options.scrollback===0?0:((n=this._terminal.options.overviewRuler)==null?void 0:n.width)||14,b=window.getComputedStyle(this._terminal.element.parentElement),E=parseInt(b.getPropertyValue("height")),T=Math.max(0,parseInt(b.getPropertyValue("width"))),N=window.getComputedStyle(this._terminal.element),A={top:parseInt(N.getPropertyValue("padding-top")),bottom:parseInt(N.getPropertyValue("padding-bottom")),right:parseInt(N.getPropertyValue("padding-right")),left:parseInt(N.getPropertyValue("padding-left"))},t=A.top+A.bottom,a=A.right+A.left,l=E-t,u=T-a-_;return{cols:Math.max(Ui,Math.floor(u/g.css.cell.width)),rows:Math.max(zi,Math.floor(l/g.css.cell.height))}}},qi=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?Bt.isErrorNoTelemetry(g)?new Bt(g.message+` + +`+g.stack):Error(g.message+` + +`+g.stack):g},0)}}addListener(g){return this.listeners.push(g),()=>{this._removeListener(g)}}emit(g){this.listeners.forEach(_=>{_(g)})}_removeListener(g){this.listeners.splice(this.listeners.indexOf(g),1)}setUnexpectedErrorHandler(g){this.unexpectedErrorHandler=g}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}};function tt(g){Gi(g)||qi.onUnexpectedError(g)}var it="Canceled";function Gi(g){return g instanceof Ki?!0:g instanceof Error&&g.name===it&&g.message===it}var Ki=class extends Error{constructor(){super(it),this.name=this.message}},Bt=class St extends Error{constructor(_){super(_),this.name="CodeExpectedError"}static fromError(_){if(_ instanceof St)return _;let b=new St;return b.message=_.message,b.stack=_.stack,b}static isErrorNoTelemetry(_){return _.name==="CodeExpectedError"}};function Vi(g,_,b=0,E=g.length){let T=b,N=E;for(;T{function _(N){return N<0}g.isLessThan=_;function b(N){return N<=0}g.isLessThanOrEqual=b;function E(N){return N>0}g.isGreaterThan=E;function T(N){return N===0}g.isNeitherLessOrGreaterThan=T,g.greaterThan=1,g.lessThan=-1,g.neitherLessOrGreaterThan=0})(Ot||(Ot={}));function Ji(g,_){return(b,E)=>_(g(b),g(E))}var Yi=(g,_)=>g-_,Pt=class Ct{constructor(_){this.iterate=_}forEach(_){this.iterate(b=>(_(b),!0))}toArray(){let _=[];return this.iterate(b=>(_.push(b),!0)),_}filter(_){return new Ct(b=>this.iterate(E=>_(E)?b(E):!0))}map(_){return new Ct(b=>this.iterate(E=>b(_(E))))}some(_){let b=!1;return this.iterate(E=>(b=_(E),!b)),b}findFirst(_){let b;return this.iterate(E=>_(E)?(b=E,!1):!0),b}findLast(_){let b;return this.iterate(E=>(_(E)&&(b=E),!0)),b}findLastMaxBy(_){let b,E=!0;return this.iterate(T=>((E||Ot.isGreaterThan(_(T,b)))&&(E=!1,b=T),!0)),b}};Pt.empty=new Pt(g=>{});function Qi(g,_){let b=Object.create(null);for(let E of g){let T=_(E),N=b[T];N||(N=b[T]=[]),N.push(E)}return b}var Zi=class{constructor(){this.map=new Map}add(g,_){let b=this.map.get(g);b||(b=new Set,this.map.set(g,b)),b.add(_)}delete(g,_){let b=this.map.get(g);b&&(b.delete(_),b.size===0&&this.map.delete(g))}forEach(g,_){let b=this.map.get(g);b&&b.forEach(_)}get(g){return this.map.get(g)||new Set}};function es(g,_){let b=this,E=!1,T;return function(){if(E)return T;if(E=!0,_)try{T=g.apply(b,arguments)}finally{_()}else T=g.apply(b,arguments);return T}}var It;(g=>{function _(h){return h&&typeof h=="object"&&typeof h[Symbol.iterator]=="function"}g.is=_;let b=Object.freeze([]);function E(){return b}g.empty=E;function*T(h){yield h}g.single=T;function N(h){return _(h)?h:T(h)}g.wrap=N;function A(h){return h||b}g.from=A;function*t(h){for(let m=h.length-1;m>=0;m--)yield h[m]}g.reverse=t;function a(h){return!h||h[Symbol.iterator]().next().done===!0}g.isEmpty=a;function l(h){return h[Symbol.iterator]().next().value}g.first=l;function u(h,m){let d=0;for(let c of h)if(m(c,d++))return!0;return!1}g.some=u;function n(h,m){for(let d of h)if(m(d))return d}g.find=n;function*f(h,m){for(let d of h)m(d)&&(yield d)}g.filter=f;function*p(h,m){let d=0;for(let c of h)yield m(c,d++)}g.map=p;function*S(h,m){let d=0;for(let c of h)yield*m(c,d++)}g.flatMap=S;function*r(...h){for(let m of h)yield*m}g.concat=r;function e(h,m,d){let c=d;for(let v of h)c=m(c,v);return c}g.reduce=e;function*o(h,m,d=h.length){for(m<0&&(m+=h.length),d<0?d+=h.length:d>h.length&&(d=h.length);mb.source!==null&&!this.getRootParent(b,_).isSingleton).flatMap(([b])=>b)}computeLeakingDisposables(_=10,b){let E;if(b)E=b;else{let a=new Map,l=[...this.livingDisposables.values()].filter(n=>n.source!==null&&!this.getRootParent(n,a).isSingleton);if(l.length===0)return;let u=new Set(l.map(n=>n.value));if(E=l.filter(n=>!(n.parent&&u.has(n.parent))),E.length===0)throw Error("There are cyclic diposable chains!")}if(!E)return;function T(a){function l(n,f){for(;n.length>0&&f.some(p=>typeof p=="string"?p===n[0]:n[0].match(p));)n.shift()}let u=a.source.split(` +`).map(n=>n.trim().replace("at ","")).filter(n=>n!=="");return l(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}let N=new Zi;for(let a of E){let l=T(a);for(let u=0;u<=l.length;u++)N.add(l.slice(0,u).join(` +`),a)}E.sort(Ji(a=>a.idx,Yi));let A="",t=0;for(let a of E.slice(0,_)){t++;let l=T(a),u=[];for(let n=0;nT(S)[n]),S=>S);delete p[l[n]];for(let[S,r]of Object.entries(p))u.unshift(` - stacktraces of ${r.length} other leaks continue with ${S}`);u.unshift(f)}A+=` + + +==================== Leaking disposable ${t}/${E.length}: ${a.value.constructor.name} ==================== +${u.join(` +`)} +============================================================ + +`}return E.length>_&&(A+=` + + +... and ${E.length-_} more leaking disposables + +`),{leaks:E,details:A}}};is.idx=0;function ss(g){fe=g}if(ts){let g="__is_disposable_tracked__";ss(new class{trackDisposable(_){let b=Error("Potentially leaked disposable").stack;setTimeout(()=>{_[g]||console.log(b)},3e3)}setParent(_,b){if(_&&_!==be.None)try{_[g]=!0}catch{}}markAsDisposed(_){if(_&&_!==be.None)try{_[g]=!0}catch{}}markAsSingleton(_){}})}function Ne(g){return fe==null||fe.trackDisposable(g),g}function Ue(g){fe==null||fe.markAsDisposed(g)}function Pe(g,_){fe==null||fe.setParent(g,_)}function rs(g,_){if(fe)for(let b of g)fe.setParent(b,_)}function Ie(g){if(It.is(g)){let _=[];for(let b of g)if(b)try{b.dispose()}catch(E){_.push(E)}if(_.length===1)throw _[0];if(_.length>1)throw AggregateError(_,"Encountered errors while disposing of store");return Array.isArray(g)?[]:g}else if(g)return g.dispose(),g}function Ht(...g){let _=Me(()=>Ie(g));return rs(g,_),_}function Me(g){let _=Ne({dispose:es(()=>{Ue(_),g()})});return _}var Ft=class ui{constructor(){this._toDispose=new Set,this._isDisposed=!1,Ne(this)}dispose(){this._isDisposed||(Ue(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Ie(this._toDispose)}finally{this._toDispose.clear()}}add(_){if(!_)return _;if(_===this)throw Error("Cannot register a disposable on itself!");return Pe(_,this),this._isDisposed?ui.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(_),_}delete(_){if(_){if(_===this)throw Error("Cannot dispose a disposable on itself!");this._toDispose.delete(_),_.dispose()}}deleteAndLeak(_){_&&this._toDispose.has(_)&&(this._toDispose.delete(_),Pe(_,null))}};Ft.DISABLE_DISPOSED_WARNING=!1;var st=Ft,be=class{constructor(){this._store=new st,Ne(this),Pe(this._store,this)}dispose(){Ue(this),this._store.dispose()}_register(g){if(g===this)throw Error("Cannot register a disposable on itself!");return this._store.add(g)}};be.None=Object.freeze({dispose(){}});var ze=class{constructor(){this._isDisposed=!1,Ne(this)}get value(){return this._isDisposed?void 0:this._value}set value(g){var _;this._isDisposed||g===this._value||((_=this._value)==null||_.dispose(),g&&Pe(g,this),this._value=g)}clear(){this.value=void 0}dispose(){var g;this._isDisposed=!0,Ue(this),(g=this._value)==null||g.dispose(),this._value=void 0}clearAndLeak(){let g=this._value;return this._value=void 0,g&&Pe(g,null),g}},Wt=class bt{constructor(_){this.element=_,this.next=bt.Undefined,this.prev=bt.Undefined}};Wt.Undefined=new Wt(void 0);var ns=globalThis.performance&&typeof globalThis.performance.now=="function",os=class _i{static create(_){return new _i(_)}constructor(_){this._now=ns&&_===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},as=!1,$t=!1,hs=!1,rt;(g=>{g.None=()=>be.None;function _(y){if(hs){let{onDidAddListener:L}=y,M=ot.create(),B=0;y.onDidAddListener=()=>{++B===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),M.print()),L==null||L()}}}function b(y,L){return f(y,()=>{},0,void 0,!0,void 0,L)}g.defer=b;function E(y){return(L,M=null,B)=>{let P=!1,H;return H=y(w=>{if(!P)return H?H.dispose():P=!0,L.call(M,w)},null,B),P&&H.dispose(),H}}g.once=E;function T(y,L,M){return u((B,P=null,H)=>y(w=>B.call(P,L(w)),null,H),M)}g.map=T;function N(y,L,M){return u((B,P=null,H)=>y(w=>{L(w),B.call(P,w)},null,H),M)}g.forEach=N;function A(y,L,M){return u((B,P=null,H)=>y(w=>L(w)&&B.call(P,w),null,H),M)}g.filter=A;function t(y){return y}g.signal=t;function a(...y){return(L,M=null,B)=>n(Ht(...y.map(P=>P(H=>L.call(M,H)))),B)}g.any=a;function l(y,L,M,B){let P=M;return T(y,H=>(P=L(P,H),P),B)}g.reduce=l;function u(y,L){let M,B={onWillAddFirstListener(){M=y(P.fire,P)},onDidRemoveLastListener(){M==null||M.dispose()}};L||_(B);let P=new we(B);return L==null||L.add(P),P.event}function n(y,L){return L instanceof Array?L.push(y):L&&L.add(y),y}function f(y,L,M=100,B=!1,P=!1,H,w){let R,O,F,z=0,j,X={leakWarningThreshold:H,onWillAddFirstListener(){R=y(W=>{z++,O=L(O,W),B&&!F&&(K.fire(O),O=void 0),j=()=>{let $=O;O=void 0,F=void 0,(!B||z>1)&&K.fire($),z=0},typeof M=="number"?(clearTimeout(F),F=setTimeout(j,M)):F===void 0&&(F=0,queueMicrotask(j))})},onWillRemoveListener(){P&&z>0&&(j==null||j())},onDidRemoveLastListener(){j=void 0,R.dispose()}};w||_(X);let K=new we(X);return w==null||w.add(K),K.event}g.debounce=f;function p(y,L=0,M){return g.debounce(y,(B,P)=>B?(B.push(P),B):[P],L,void 0,!0,void 0,M)}g.accumulate=p;function S(y,L=(B,P)=>B===P,M){let B=!0,P;return A(y,H=>{let w=B||!L(H,P);return B=!1,P=H,w},M)}g.latch=S;function r(y,L,M){return[g.filter(y,L,M),g.filter(y,B=>!L(B),M)]}g.split=r;function e(y,L=!1,M=[],B){let P=M.slice(),H=y(O=>{P?P.push(O):R.fire(O)});B&&B.add(H);let w=()=>{P==null||P.forEach(O=>R.fire(O)),P=null},R=new we({onWillAddFirstListener(){H||(H=y(O=>R.fire(O)),B&&B.add(H))},onDidAddFirstListener(){P&&(L?setTimeout(w):w())},onDidRemoveLastListener(){H&&H.dispose(),H=null}});return B&&B.add(R),R.event}g.buffer=e;function o(y,L){return(M,B,P)=>{let H=L(new i);return y(function(w){let R=H.evaluate(w);R!==s&&M.call(B,R)},void 0,P)}}g.chain=o;let s=Symbol("HaltChainable");class i{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(M=>(L(M),M)),this}filter(L){return this.steps.push(M=>L(M)?M:s),this}reduce(L,M){let B=M;return this.steps.push(P=>(B=L(B,P),B)),this}latch(L=(M,B)=>M===B){let M=!0,B;return this.steps.push(P=>{let H=M||!L(P,B);return M=!1,B=P,H?P:s}),this}evaluate(L){for(let M of this.steps)if(L=M(L),L===s)break;return L}}function h(y,L,M=B=>B){let B=(...H)=>P.fire(M(...H)),P=new we({onWillAddFirstListener:()=>y.on(L,B),onDidRemoveLastListener:()=>y.removeListener(L,B)});return P.event}g.fromNodeEventEmitter=h;function m(y,L,M=B=>B){let B=(...H)=>P.fire(M(...H)),P=new we({onWillAddFirstListener:()=>y.addEventListener(L,B),onDidRemoveLastListener:()=>y.removeEventListener(L,B)});return P.event}g.fromDOMEventEmitter=m;function d(y){return new Promise(L=>E(y)(L))}g.toPromise=d;function c(y){let L=new we;return y.then(M=>{L.fire(M)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}g.fromPromise=c;function v(y,L){return y(M=>L.fire(M))}g.forward=v;function C(y,L,M){return L(M),y(B=>L(B))}g.runAndSubscribe=C;class k{constructor(L,M){this._observable=L,this._counter=0,this._hasChanged=!1;let B={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};M||_(B),this.emitter=new we(B),M&&M.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,M){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function D(y,L){return new k(y,L).emitter.event}g.fromObservable=D;function x(y){return(L,M,B)=>{let P=0,H=!1,w={beginUpdate(){P++},endUpdate(){P--,P===0&&(y.reportChanges(),H&&(H=!1,L.call(M)))},handlePossibleChange(){},handleChange(){H=!0}};y.addObserver(w),y.reportChanges();let R={dispose(){y.removeObserver(w)}};return B instanceof st?B.add(R):Array.isArray(B)&&B.push(R),R}}g.fromObservableLight=x})(rt||(rt={}));var nt=class wt{constructor(_){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${_}_${wt._idPool++}`,wt.all.add(this)}start(_){this._stopWatch=new os,this.listenerCount=_}stop(){if(this._stopWatch){let _=this._stopWatch.elapsed();this.durations.push(_),this.elapsedOverall+=_,this.invocationCount+=1,this._stopWatch=void 0}}};nt.all=new Set,nt._idPool=0;var ls=nt,Nt=-1,Ut=class fi{constructor(_,b,E=(fi._idPool++).toString(16).padStart(3,"0")){this._errorHandler=_,this.threshold=b,this.name=E,this._warnCountdown=0}dispose(){var _;(_=this._stacks)==null||_.clear()}check(_,b){let E=this.threshold;if(E<=0||b{let N=this._stacks.get(_.value)||0;this._stacks.set(_.value,N-1)}}getMostFrequentStack(){if(!this._stacks)return;let _,b=0;for(let[E,T]of this._stacks)(!_||b{if(g instanceof je)_(g);else for(let b=0;b{g.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(g.join(` +`)),g.length=0)},3e3),Ae=new FinalizationRegistry(_=>{typeof _=="string"&&g.push(_)})}var we=class{constructor(g){var _,b,E,T;this._size=0,this._options=g,this._leakageMon=Nt>0||(_=this._options)!=null&&_.leakWarningThreshold?new cs((g==null?void 0:g.onListenerError)??tt,((b=this._options)==null?void 0:b.leakWarningThreshold)??Nt):void 0,this._perfMon=(E=this._options)!=null&&E._profName?new ls(this._options._profName):void 0,this._deliveryQueue=(T=this._options)==null?void 0:T.deliveryQueue}dispose(){var g,_,b,E;if(!this._disposed){if(this._disposed=!0,((g=this._deliveryQueue)==null?void 0:g.current)===this&&this._deliveryQueue.reset(),this._listeners){if($t){let T=this._listeners;queueMicrotask(()=>{gs(T,N=>{var A;return(A=N.stack)==null?void 0:A.print()})})}this._listeners=void 0,this._size=0}(b=(_=this._options)==null?void 0:_.onDidRemoveLastListener)==null||b.call(_),(E=this._leakageMon)==null||E.dispose()}}get event(){return this._event??(this._event=(g,_,b)=>{var A,t,a,l,u;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let n=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(n);let f=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],p=new us(`${n}. HINT: Stack shows most frequent listener (${f[1]}-times)`,f[0]);return(((A=this._options)==null?void 0:A.onListenerError)||tt)(p),be.None}if(this._disposed)return be.None;_&&(g=g.bind(_));let E=new je(g),T;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(E.stack=ot.create(),T=this._leakageMon.check(E.stack,this._size+1)),$t&&(E.stack=ot.create()),this._listeners?this._listeners instanceof je?(this._deliveryQueue??(this._deliveryQueue=new vs),this._listeners=[this._listeners,E]):this._listeners.push(E):((a=(t=this._options)==null?void 0:t.onWillAddFirstListener)==null||a.call(t,this),this._listeners=E,(u=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||u.call(l,this)),this._size++;let N=Me(()=>{Ae==null||Ae.unregister(N),T==null||T(),this._removeListener(E)});if(b instanceof st?b.add(N):Array.isArray(b)&&b.push(N),Ae){let n=Error().stack.split(` +`).slice(2,3).join(` +`).trim(),f=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(n);Ae.register(N,(f==null?void 0:f[2])??n,N)}return N}),this._event}_removeListener(g){var T,N,A,t;if((N=(T=this._options)==null?void 0:T.onWillRemoveListener)==null||N.call(T,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(t=(A=this._options)==null?void 0:A.onDidRemoveLastListener)==null||t.call(A,this),this._size=0;return}let _=this._listeners,b=_.indexOf(g);if(b===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,_[b]=void 0;let E=this._deliveryQueue.current===this;if(this._size*fs<=_.length){let a=0;for(let l=0;l<_.length;l++)_[l]?_[a++]=_[l]:E&&(this._deliveryQueue.end--,a0}},vs=class{constructor(){this.i=-1,this.end=0}enqueue(g,_,b){this.i=0,this.end=b,this.current=g,this.value=_}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},zt=Object.freeze(function(g,_){let b=setTimeout(g.bind(_),0);return{dispose(){clearTimeout(b)}}}),ps;(g=>{function _(b){return b===g.None||b===g.Cancelled||b instanceof ms?!0:!b||typeof b!="object"?!1:typeof b.isCancellationRequested=="boolean"&&typeof b.onCancellationRequested=="function"}g.isCancellationToken=_,g.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:rt.None}),g.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:zt})})(ps||(ps={}));var ms=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?zt:(this._emitter||(this._emitter=new we),this._emitter.event)}dispose(){this._emitter&&(this._emitter=(this._emitter.dispose(),null))}},qe="en",at=!1,jt=!1,Ge=qe,pe,xe=globalThis,de;typeof xe.vscode<"u"&&typeof xe.vscode.process<"u"?de=xe.vscode.process:typeof process<"u"&&typeof((oi=process==null?void 0:process.versions)==null?void 0:oi.node)=="string"&&(de=process);var Ss=typeof((ai=de==null?void 0:de.versions)==null?void 0:ai.electron)=="string"&&(de==null?void 0:de.type)==="renderer";if(typeof de=="object"){de.platform,de.platform,at=de.platform==="linux",at&&de.env.SNAP&&de.env.SNAP_REVISION,de.env.CI||de.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ge=qe;let g=de.env.VSCODE_NLS_CONFIG;if(g)try{let _=JSON.parse(g);_.userLocale,_.osLocale,Ge=_.resolvedLanguage||qe,(hi=_.languagePack)==null||hi.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Ss?(pe=navigator.userAgent,pe.indexOf("Windows"),pe.indexOf("Macintosh"),(pe.indexOf("Macintosh")>=0||pe.indexOf("iPad")>=0||pe.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,at=pe.indexOf("Linux")>=0,pe==null||pe.indexOf("Mobi"),jt=!0,Ge=globalThis._VSCODE_NLS_LANGUAGE||qe,navigator.language.toLowerCase()):console.error("Unable to resolve platform.");jt&&typeof xe.importScripts=="function"&&xe.origin;var ye=pe,ke=Ge,Cs;(g=>{function _(){return ke}g.value=_;function b(){return ke.length===2?ke==="en":ke.length>=3?ke[0]==="e"&&ke[1]==="n"&&ke[2]==="-":!1}g.isDefaultVariant=b;function E(){return ke==="en"}g.isDefault=E})(Cs||(Cs={}));var bs=typeof xe.postMessage=="function"&&!xe.importScripts;(()=>{if(bs){let g=[];xe.addEventListener("message",b=>{if(b.data&&b.data.vscodeScheduleAsyncWork)for(let E=0,T=g.length;E{let E=++_;g.push({id:E,callback:b}),xe.postMessage({vscodeScheduleAsyncWork:E},"*")}}return g=>setTimeout(g)})();var ws=!!(ye&&ye.indexOf("Chrome")>=0);ye&&ye.indexOf("Firefox"),!ws&&ye&&ye.indexOf("Safari"),ye&&ye.indexOf("Edg/"),ye&&ye.indexOf("Android");function qt(g,_=0,b){let E=setTimeout(()=>{g(),b&&T.dispose()},_),T=Me(()=>{clearTimeout(E),b==null||b.deleteAndLeak(T)});return b==null||b.add(T),T}(function(){typeof globalThis.requestIdleCallback!="function"||globalThis.cancelIdleCallback})();var ys;(g=>{async function _(E){let T,N=await Promise.all(E.map(A=>A.then(t=>t,t=>{T||(T=t)})));if(typeof T<"u")throw T;return N}g.settled=_;function b(E){return new Promise(async(T,N)=>{try{await E(T,N)}catch(A){N(A)}})}g.withAsyncBody=b})(ys||(ys={}));var Gt=class ve{static fromArray(_){return new ve(b=>{b.emitMany(_)})}static fromPromise(_){return new ve(async b=>{b.emitMany(await _)})}static fromPromises(_){return new ve(async b=>{await Promise.all(_.map(async E=>b.emitOne(await E)))})}static merge(_){return new ve(async b=>{await Promise.all(_.map(async E=>{for await(let T of E)b.emitOne(T)}))})}constructor(_,b){this._state=0,this._results=[],this._error=null,this._onReturn=b,this._onStateChanged=new we,queueMicrotask(async()=>{let E={emitOne:T=>this.emitOne(T),emitMany:T=>this.emitMany(T),reject:T=>this.reject(T)};try{await Promise.resolve(_(E)),this.resolve()}catch(T){this.reject(T)}finally{E.emitOne=void 0,E.emitMany=void 0,E.reject=void 0}})}[Symbol.asyncIterator](){let _=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(_{var b;return(b=this._onReturn)==null||b.call(this),{done:!0,value:void 0}}}}static map(_,b){return new ve(async E=>{for await(let T of _)E.emitOne(b(T))})}map(_){return ve.map(this,_)}static filter(_,b){return new ve(async E=>{for await(let T of _)b(T)&&E.emitOne(T)})}filter(_){return ve.filter(this,_)}static coalesce(_){return ve.filter(_,b=>!!b)}coalesce(){return ve.coalesce(this)}static async toPromise(_){let b=[];for await(let E of _)b.push(E);return b}toPromise(){return ve.toPromise(this)}emitOne(_){this._state===0&&(this._results.push(_),this._onStateChanged.fire())}emitMany(_){this._state===0&&(this._results=this._results.concat(_),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(_){this._state===0&&(this._state=2,this._error=_,this._onStateChanged.fire())}};Gt.EMPTY=Gt.fromArray([]);var Ls=class extends be{constructor(g){super(),this._terminal=g,this._linesCacheTimeout=this._register(new ze),this._linesCacheDisposables=this._register(new ze),this._register(Me(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=Ht(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=qt(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(g){var _;return(_=this._linesCache)==null?void 0:_[g]}setLineInCache(g,_){this._linesCache&&(this._linesCache[g]=_)}translateBufferLineToStringWithWrap(g,_){var N;let b=[],E=[0],T=this._terminal.buffer.active.getLine(g);for(;T;){let A=this._terminal.buffer.active.getLine(g+1),t=A?A.isWrapped:!1,a=T.translateToString(!t&&_);if(t&&A){let l=T.getCell(T.length-1);l&&l.getCode()===0&&l.getWidth()===1&&((N=A.getCell(0))==null?void 0:N.getWidth())===2&&(a=a.slice(0,-1))}if(b.push(a),t)E.push(E[E.length-1]+a.length);else break;g++,T=A}return[b.join(""),E]}},xs=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(g){this._cachedSearchTerm=g}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(g){this._lastSearchOptions=g}isValidSearchTerm(g){return!!(g&&g.length>0)}didOptionsChange(g){return this._lastSearchOptions?g?this._lastSearchOptions.caseSensitive!==g.caseSensitive||this._lastSearchOptions.regex!==g.regex||this._lastSearchOptions.wholeWord!==g.wholeWord:!1:!0}shouldUpdateHighlighting(g,_){return _!=null&&_.decorations?this._cachedSearchTerm===void 0||g!==this._cachedSearchTerm||this.didOptionsChange(_):!1}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},Es=class{constructor(g,_){this._terminal=g,this._lineCache=_}find(g,_,b,E){if(!g||g.length===0){this._terminal.clearSelection();return}if(b>this._terminal.cols)throw Error(`Invalid col: ${b} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let T={startRow:_,startCol:b},N=this._findInLine(g,T,E);if(!N)for(let A=_+1;A=0&&(A.startRow=a,t=this._findInLine(g,A,_,!0),!t);a--);}if(!t&&T!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let a=this._terminal.buffer.active.baseY+this._terminal.rows-1;a>=T&&(A.startRow=a,t=this._findInLine(g,A,_,!0),!t);a--);return t}_isWholeWord(g,_,b){return(g===0||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(_[g-1]))&&(g+b.length===_.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(_[g+b.length]))}_findInLine(g,_,b={},E=!1){var p;let T=_.startRow,N=_.startCol;if((p=this._terminal.buffer.active.getLine(T))!=null&&p.isWrapped){if(E){_.startCol+=this._terminal.cols;return}return _.startRow--,_.startCol+=this._terminal.cols,this._findInLine(g,_,b)}let A=this._lineCache.getLineFromCache(T);A||(A=this._lineCache.translateBufferLineToStringWithWrap(T,!0),this._lineCache.setLineInCache(T,A));let[t,a]=A,l=this._bufferColsToStringOffset(T,N),u=g,n=t;b.regex||(u=b.caseSensitive?g:g.toLowerCase(),n=b.caseSensitive?t:t.toLowerCase());let f=-1;if(b.regex){let S=RegExp(u,b.caseSensitive?"g":"gi"),r;if(E)for(;r=S.exec(n.slice(0,l));)f=S.lastIndex-r[0].length,g=r[0],S.lastIndex-=g.length-1;else r=S.exec(n.slice(l)),r&&r[0].length>0&&(f=l+(S.lastIndex-r[0].length),g=r[0])}else E?l-u.length>=0&&(f=n.lastIndexOf(u,l-u.length)):f=n.indexOf(u,l);if(f>=0){if(b.wholeWord&&!this._isWholeWord(f,n,g))return;let S=0;for(;S=a[S+1];)S++;let r=S;for(;r=a[r+1];)r++;let e=f-a[S],o=f+g.length-a[r],s=this._stringLengthToBufferSize(T+S,e),i=this._stringLengthToBufferSize(T+r,o)-s+this._terminal.cols*(r-S);return{term:g,col:s,row:T+S,size:i}}}_stringLengthToBufferSize(g,_){let b=this._terminal.buffer.active.getLine(g);if(!b)return 0;for(let E=0;E<_;E++){let T=b.getCell(E);if(!T)break;let N=T.getChars();N.length>1&&(_-=N.length-1);let A=b.getCell(E+1);A&&A.getWidth()===0&&_++}return _}_bufferColsToStringOffset(g,_){let b=g,E=0,T=this._terminal.buffer.active.getLine(b);for(;_>0&&T;){for(let N=0;N<_&&Nthis.clearHighlightDecorations()))}createHighlightDecorations(g,_){this.clearHighlightDecorations();for(let b of g){let E=this._createResultDecorations(b,_,!1);if(E)for(let T of E)this._storeDecoration(T,b)}}createActiveDecoration(g,_){let b=this._createResultDecorations(g,_,!0);if(b)return{decorations:b,match:g,dispose(){Ie(b)}}}clearHighlightDecorations(){Ie(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(g,_){this._highlightedLines.add(g.marker.line),this._highlightDecorations.push({decoration:g,match:_,dispose(){g.dispose()}})}_applyStyles(g,_,b){g.classList.contains("xterm-find-result-decoration")||(g.classList.add("xterm-find-result-decoration"),_&&(g.style.outline=`1px solid ${_}`)),b&&g.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(g,_,b){let E=[],T=g.col,N=g.size,A=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+g.row;for(;N>0;){let a=Math.min(this._terminal.cols-T,N);E.push([A,T,a]),T=0,N-=a,A++}let t=[];for(let a of E){let l=this._terminal.registerMarker(a[0]),u=this._terminal.registerDecoration({marker:l,x:a[1],width:a[2],backgroundColor:b?_.activeMatchBackground:_.matchBackground,overviewRulerOptions:this._highlightedLines.has(l.line)?void 0:{color:b?_.activeMatchColorOverviewRuler:_.matchOverviewRuler,position:"center"}});if(u){let n=[];n.push(l),n.push(u.onRender(f=>this._applyStyles(f,b?_.activeMatchBorder:_.matchBorder,!1))),n.push(u.onDispose(()=>Ie(n))),t.push(u)}}return t.length===0?void 0:t}},Ds=class extends be{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new we)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(g){this._selectedDecoration=g}updateResults(g,_){this._searchResults=g.slice(0,_)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration=(this._selectedDecoration.dispose(),void 0))}findResultIndex(g){for(let _=0;_this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(Me(()=>this.clearDecorations()))}_updateMatches(){var g;this._highlightTimeout.clear(),this._state.cachedSearchTerm&&((g=this._state.lastSearchOptions)!=null&&g.decorations)&&(this._highlightTimeout.value=qt(()=>{let _=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(_,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(g){var _;this._resultTracker.clearSelectedDecoration(),(_=this._decorationManager)==null||_.clearHighlightDecorations(),this._resultTracker.clearResults(),g||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(g,_,b){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=_,this._state.shouldUpdateHighlighting(g,_)&&this._highlightAllMatches(g,_);let E=this._findNextAndSelect(g,_,b);return this._fireResults(_),this._state.cachedSearchTerm=g,E}_highlightAllMatches(g,_){if(!this._terminal||!this._engine||!this._decorationManager)throw Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(g)){this.clearDecorations();return}this.clearDecorations(!0);let b=[],E,T=this._engine.find(g,0,0,_);for(;T&&((E==null?void 0:E.row)!==T.row||(E==null?void 0:E.col)!==T.col)&&!(b.length>=this._highlightLimit);)E=T,b.push(E),T=this._engine.find(g,E.col+E.term.length>=this._terminal.cols?E.row+1:E.row,E.col+E.term.length>=this._terminal.cols?0:E.col+1,_);this._resultTracker.updateResults(b,this._highlightLimit),_.decorations&&this._decorationManager.createHighlightDecorations(b,_.decorations)}_findNextAndSelect(g,_,b){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(g))return this._terminal.clearSelection(),this.clearDecorations(),!1;let E=this._engine.findNextWithSelection(g,_,this._state.cachedSearchTerm);return this._selectResult(E,_==null?void 0:_.decorations,b==null?void 0:b.noScroll)}findPrevious(g,_,b){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=_,this._state.shouldUpdateHighlighting(g,_)&&this._highlightAllMatches(g,_);let E=this._findPreviousAndSelect(g,_,b);return this._fireResults(_),this._state.cachedSearchTerm=g,E}_fireResults(g){this._resultTracker.fireResultsChanged(!!(g!=null&&g.decorations))}_findPreviousAndSelect(g,_,b){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(g))return this._terminal.clearSelection(),this.clearDecorations(),!1;let E=this._engine.findPreviousWithSelection(g,_,this._state.cachedSearchTerm);return this._selectResult(E,_==null?void 0:_.decorations,b==null?void 0:b.noScroll)}_selectResult(g,_,b){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!g)return this._terminal.clearSelection(),!1;if(this._terminal.select(g.col,g.row,g.size),_){let E=this._decorationManager.createActiveDecoration(g,_);E&&(this._resultTracker.selectedDecoration=E)}if(!b&&(g.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||g.row_[E][1])return!1;for(;E>=b;)if(T=b+E>>1,g>_[T][1])b=T+1;else if(g<_[T][0])E=T-1;else return!0;return!1}var Ts=class{constructor(){if(this.version="6",!ce){ce=new Uint8Array(65536),ce.fill(1),ce[0]=0,ce.fill(0,1,32),ce.fill(0,127,160),ce.fill(2,4352,4448),ce[9001]=2,ce[9002]=2,ce.fill(2,11904,42192),ce[12351]=1,ce.fill(2,44032,55204),ce.fill(2,63744,64256),ce.fill(2,65040,65050),ce.fill(2,65072,65136),ce.fill(2,65280,65377),ce.fill(2,65504,65511);for(let g=0;g=131072&&g<=196605||g>=196608&&g<=262141?2:1}charProperties(g,_){let b=this.wcwidth(g),E=b===0&&_!==0;if(E){let T=Ve.extractWidth(_);T===0?E=!1:T>b&&(b=T)}return Ve.createPropertyValue(0,b,E)}},Bs=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?Kt.isErrorNoTelemetry(g)?new Kt(g.message+` + +`+g.stack):Error(g.message+` + +`+g.stack):g},0)}}addListener(g){return this.listeners.push(g),()=>{this._removeListener(g)}}emit(g){this.listeners.forEach(_=>{_(g)})}_removeListener(g){this.listeners.splice(this.listeners.indexOf(g),1)}setUnexpectedErrorHandler(g){this.unexpectedErrorHandler=g}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}};function lt(g){Os(g)||Bs.onUnexpectedError(g)}var ct="Canceled";function Os(g){return g instanceof Ps?!0:g instanceof Error&&g.name===ct&&g.message===ct}var Ps=class extends Error{constructor(){super(ct),this.name=this.message}},Kt=class yt extends Error{constructor(_){super(_),this.name="CodeExpectedError"}static fromError(_){if(_ instanceof yt)return _;let b=new yt;return b.message=_.message,b.stack=_.stack,b}static isErrorNoTelemetry(_){return _.name==="CodeExpectedError"}};function Is(g,_){let b=this,E=!1,T;return function(){if(E)return T;if(E=!0,_)try{T=g.apply(b,arguments)}finally{_()}else T=g.apply(b,arguments);return T}}function Hs(g,_,b=0,E=g.length){let T=b,N=E;for(;T{function _(N){return N<0}g.isLessThan=_;function b(N){return N<=0}g.isLessThanOrEqual=b;function E(N){return N>0}g.isGreaterThan=E;function T(N){return N===0}g.isNeitherLessOrGreaterThan=T,g.greaterThan=1,g.lessThan=-1,g.neitherLessOrGreaterThan=0})(Vt||(Vt={}));function Ws(g,_){return(b,E)=>_(g(b),g(E))}var $s=(g,_)=>g-_,Xt=class Lt{constructor(_){this.iterate=_}forEach(_){this.iterate(b=>(_(b),!0))}toArray(){let _=[];return this.iterate(b=>(_.push(b),!0)),_}filter(_){return new Lt(b=>this.iterate(E=>_(E)?b(E):!0))}map(_){return new Lt(b=>this.iterate(E=>b(_(E))))}some(_){let b=!1;return this.iterate(E=>(b=_(E),!b)),b}findFirst(_){let b;return this.iterate(E=>_(E)?(b=E,!1):!0),b}findLast(_){let b;return this.iterate(E=>(_(E)&&(b=E),!0)),b}findLastMaxBy(_){let b,E=!0;return this.iterate(T=>((E||Vt.isGreaterThan(_(T,b)))&&(E=!1,b=T),!0)),b}};Xt.empty=new Xt(g=>{});function Ns(g,_){let b=Object.create(null);for(let E of g){let T=_(E),N=b[T];N||(N=b[T]=[]),N.push(E)}return b}var Us=class{constructor(){this.map=new Map}add(g,_){let b=this.map.get(g);b||(b=new Set,this.map.set(g,b)),b.add(_)}delete(g,_){let b=this.map.get(g);b&&(b.delete(_),b.size===0&&this.map.delete(g))}forEach(g,_){let b=this.map.get(g);b&&b.forEach(_)}get(g){return this.map.get(g)||new Set}},Jt;(g=>{function _(h){return h&&typeof h=="object"&&typeof h[Symbol.iterator]=="function"}g.is=_;let b=Object.freeze([]);function E(){return b}g.empty=E;function*T(h){yield h}g.single=T;function N(h){return _(h)?h:T(h)}g.wrap=N;function A(h){return h||b}g.from=A;function*t(h){for(let m=h.length-1;m>=0;m--)yield h[m]}g.reverse=t;function a(h){return!h||h[Symbol.iterator]().next().done===!0}g.isEmpty=a;function l(h){return h[Symbol.iterator]().next().value}g.first=l;function u(h,m){let d=0;for(let c of h)if(m(c,d++))return!0;return!1}g.some=u;function n(h,m){for(let d of h)if(m(d))return d}g.find=n;function*f(h,m){for(let d of h)m(d)&&(yield d)}g.filter=f;function*p(h,m){let d=0;for(let c of h)yield m(c,d++)}g.map=p;function*S(h,m){let d=0;for(let c of h)yield*m(c,d++)}g.flatMap=S;function*r(...h){for(let m of h)yield*m}g.concat=r;function e(h,m,d){let c=d;for(let v of h)c=m(c,v);return c}g.reduce=e;function*o(h,m,d=h.length){for(m<0&&(m+=h.length),d<0?d+=h.length:d>h.length&&(d=h.length);mb.source!==null&&!this.getRootParent(b,_).isSingleton).flatMap(([b])=>b)}computeLeakingDisposables(_=10,b){let E;if(b)E=b;else{let a=new Map,l=[...this.livingDisposables.values()].filter(n=>n.source!==null&&!this.getRootParent(n,a).isSingleton);if(l.length===0)return;let u=new Set(l.map(n=>n.value));if(E=l.filter(n=>!(n.parent&&u.has(n.parent))),E.length===0)throw Error("There are cyclic diposable chains!")}if(!E)return;function T(a){function l(n,f){for(;n.length>0&&f.some(p=>typeof p=="string"?p===n[0]:n[0].match(p));)n.shift()}let u=a.source.split(` +`).map(n=>n.trim().replace("at ","")).filter(n=>n!=="");return l(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}let N=new Us;for(let a of E){let l=T(a);for(let u=0;u<=l.length;u++)N.add(l.slice(0,u).join(` +`),a)}E.sort(Ws(a=>a.idx,$s));let A="",t=0;for(let a of E.slice(0,_)){t++;let l=T(a),u=[];for(let n=0;nT(S)[n]),S=>S);delete p[l[n]];for(let[S,r]of Object.entries(p))u.unshift(` - stacktraces of ${r.length} other leaks continue with ${S}`);u.unshift(f)}A+=` + + +==================== Leaking disposable ${t}/${E.length}: ${a.value.constructor.name} ==================== +${u.join(` +`)} +============================================================ + +`}return E.length>_&&(A+=` + + +... and ${E.length-_} more leaking disposables + +`),{leaks:E,details:A}}};js.idx=0;function qs(g){ge=g}if(zs){let g="__is_disposable_tracked__";qs(new class{trackDisposable(_){let b=Error("Potentially leaked disposable").stack;setTimeout(()=>{_[g]||console.log(b)},3e3)}setParent(_,b){if(_&&_!==Te.None)try{_[g]=!0}catch{}}markAsDisposed(_){if(_&&_!==Te.None)try{_[g]=!0}catch{}}markAsSingleton(_){}})}function dt(g){return ge==null||ge.trackDisposable(g),g}function ut(g){ge==null||ge.markAsDisposed(g)}function _t(g,_){ge==null||ge.setParent(g,_)}function Gs(g,_){if(ge)for(let b of g)ge.setParent(b,_)}function Yt(g){if(Jt.is(g)){let _=[];for(let b of g)if(b)try{b.dispose()}catch(E){_.push(E)}if(_.length===1)throw _[0];if(_.length>1)throw AggregateError(_,"Encountered errors while disposing of store");return Array.isArray(g)?[]:g}else if(g)return g.dispose(),g}function Ks(...g){let _=Qt(()=>Yt(g));return Gs(g,_),_}function Qt(g){let _=dt({dispose:Is(()=>{ut(_),g()})});return _}var Zt=class mi{constructor(){this._toDispose=new Set,this._isDisposed=!1,dt(this)}dispose(){this._isDisposed||(ut(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Yt(this._toDispose)}finally{this._toDispose.clear()}}add(_){if(!_)return _;if(_===this)throw Error("Cannot register a disposable on itself!");return _t(_,this),this._isDisposed?mi.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(_),_}delete(_){if(_){if(_===this)throw Error("Cannot dispose a disposable on itself!");this._toDispose.delete(_),_.dispose()}}deleteAndLeak(_){_&&this._toDispose.has(_)&&(this._toDispose.delete(_),_t(_,null))}};Zt.DISABLE_DISPOSED_WARNING=!1;var ft=Zt,Te=class{constructor(){this._store=new ft,dt(this),_t(this._store,this)}dispose(){ut(this),this._store.dispose()}_register(g){if(g===this)throw Error("Cannot register a disposable on itself!");return this._store.add(g)}};Te.None=Object.freeze({dispose(){}});var ei=class xt{constructor(_){this.element=_,this.next=xt.Undefined,this.prev=xt.Undefined}};ei.Undefined=new ei(void 0);var Vs=globalThis.performance&&typeof globalThis.performance.now=="function",Xs=class Si{static create(_){return new Si(_)}constructor(_){this._now=Vs&&_===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime===-1?this._now()-this._startTime:this._stopTime-this._startTime}},Js=!1,ti=!1,Ys=!1,Qs;(g=>{g.None=()=>Te.None;function _(y){if(Ys){let{onDidAddListener:L}=y,M=vt.create(),B=0;y.onDidAddListener=()=>{++B===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),M.print()),L==null||L()}}}function b(y,L){return f(y,()=>{},0,void 0,!0,void 0,L)}g.defer=b;function E(y){return(L,M=null,B)=>{let P=!1,H;return H=y(w=>{if(!P)return H?H.dispose():P=!0,L.call(M,w)},null,B),P&&H.dispose(),H}}g.once=E;function T(y,L,M){return u((B,P=null,H)=>y(w=>B.call(P,L(w)),null,H),M)}g.map=T;function N(y,L,M){return u((B,P=null,H)=>y(w=>{L(w),B.call(P,w)},null,H),M)}g.forEach=N;function A(y,L,M){return u((B,P=null,H)=>y(w=>L(w)&&B.call(P,w),null,H),M)}g.filter=A;function t(y){return y}g.signal=t;function a(...y){return(L,M=null,B)=>n(Ks(...y.map(P=>P(H=>L.call(M,H)))),B)}g.any=a;function l(y,L,M,B){let P=M;return T(y,H=>(P=L(P,H),P),B)}g.reduce=l;function u(y,L){let M,B={onWillAddFirstListener(){M=y(P.fire,P)},onDidRemoveLastListener(){M==null||M.dispose()}};L||_(B);let P=new De(B);return L==null||L.add(P),P.event}function n(y,L){return L instanceof Array?L.push(y):L&&L.add(y),y}function f(y,L,M=100,B=!1,P=!1,H,w){let R,O,F,z=0,j,X={leakWarningThreshold:H,onWillAddFirstListener(){R=y(W=>{z++,O=L(O,W),B&&!F&&(K.fire(O),O=void 0),j=()=>{let $=O;O=void 0,F=void 0,(!B||z>1)&&K.fire($),z=0},typeof M=="number"?(clearTimeout(F),F=setTimeout(j,M)):F===void 0&&(F=0,queueMicrotask(j))})},onWillRemoveListener(){P&&z>0&&(j==null||j())},onDidRemoveLastListener(){j=void 0,R.dispose()}};w||_(X);let K=new De(X);return w==null||w.add(K),K.event}g.debounce=f;function p(y,L=0,M){return g.debounce(y,(B,P)=>B?(B.push(P),B):[P],L,void 0,!0,void 0,M)}g.accumulate=p;function S(y,L=(B,P)=>B===P,M){let B=!0,P;return A(y,H=>{let w=B||!L(H,P);return B=!1,P=H,w},M)}g.latch=S;function r(y,L,M){return[g.filter(y,L,M),g.filter(y,B=>!L(B),M)]}g.split=r;function e(y,L=!1,M=[],B){let P=M.slice(),H=y(O=>{P?P.push(O):R.fire(O)});B&&B.add(H);let w=()=>{P==null||P.forEach(O=>R.fire(O)),P=null},R=new De({onWillAddFirstListener(){H||(H=y(O=>R.fire(O)),B&&B.add(H))},onDidAddFirstListener(){P&&(L?setTimeout(w):w())},onDidRemoveLastListener(){H&&H.dispose(),H=null}});return B&&B.add(R),R.event}g.buffer=e;function o(y,L){return(M,B,P)=>{let H=L(new i);return y(function(w){let R=H.evaluate(w);R!==s&&M.call(B,R)},void 0,P)}}g.chain=o;let s=Symbol("HaltChainable");class i{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(M=>(L(M),M)),this}filter(L){return this.steps.push(M=>L(M)?M:s),this}reduce(L,M){let B=M;return this.steps.push(P=>(B=L(B,P),B)),this}latch(L=(M,B)=>M===B){let M=!0,B;return this.steps.push(P=>{let H=M||!L(P,B);return M=!1,B=P,H?P:s}),this}evaluate(L){for(let M of this.steps)if(L=M(L),L===s)break;return L}}function h(y,L,M=B=>B){let B=(...H)=>P.fire(M(...H)),P=new De({onWillAddFirstListener:()=>y.on(L,B),onDidRemoveLastListener:()=>y.removeListener(L,B)});return P.event}g.fromNodeEventEmitter=h;function m(y,L,M=B=>B){let B=(...H)=>P.fire(M(...H)),P=new De({onWillAddFirstListener:()=>y.addEventListener(L,B),onDidRemoveLastListener:()=>y.removeEventListener(L,B)});return P.event}g.fromDOMEventEmitter=m;function d(y){return new Promise(L=>E(y)(L))}g.toPromise=d;function c(y){let L=new De;return y.then(M=>{L.fire(M)},()=>{L.fire(void 0)}).finally(()=>{L.dispose()}),L.event}g.fromPromise=c;function v(y,L){return y(M=>L.fire(M))}g.forward=v;function C(y,L,M){return L(M),y(B=>L(B))}g.runAndSubscribe=C;class k{constructor(L,M){this._observable=L,this._counter=0,this._hasChanged=!1;let B={onWillAddFirstListener:()=>{L.addObserver(this)},onDidRemoveLastListener:()=>{L.removeObserver(this)}};M||_(B),this.emitter=new De(B),M&&M.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,M){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function D(y,L){return new k(y,L).emitter.event}g.fromObservable=D;function x(y){return(L,M,B)=>{let P=0,H=!1,w={beginUpdate(){P++},endUpdate(){P--,P===0&&(y.reportChanges(),H&&(H=!1,L.call(M)))},handlePossibleChange(){},handleChange(){H=!0}};y.addObserver(w),y.reportChanges();let R={dispose(){y.removeObserver(w)}};return B instanceof ft?B.add(R):Array.isArray(B)&&B.push(R),R}}g.fromObservableLight=x})(Qs||(Qs={}));var gt=class Et{constructor(_){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${_}_${Et._idPool++}`,Et.all.add(this)}start(_){this._stopWatch=new Xs,this.listenerCount=_}stop(){if(this._stopWatch){let _=this._stopWatch.elapsed();this.durations.push(_),this.elapsedOverall+=_,this.invocationCount+=1,this._stopWatch=void 0}}};gt.all=new Set,gt._idPool=0;var Zs=gt,ii=-1,si=class Ci{constructor(_,b,E=(Ci._idPool++).toString(16).padStart(3,"0")){this._errorHandler=_,this.threshold=b,this.name=E,this._warnCountdown=0}dispose(){var _;(_=this._stacks)==null||_.clear()}check(_,b){let E=this.threshold;if(E<=0||b{let N=this._stacks.get(_.value)||0;this._stacks.set(_.value,N-1)}}getMostFrequentStack(){if(!this._stacks)return;let _,b=0;for(let[E,T]of this._stacks)(!_||b{if(g instanceof Ke)_(g);else for(let b=0;b{g.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(g.join(` +`)),g.length=0)},3e3),Be=new FinalizationRegistry(_=>{typeof _=="string"&&g.push(_)})}var De=class{constructor(g){var _,b,E,T;this._size=0,this._options=g,this._leakageMon=ii>0||(_=this._options)!=null&&_.leakWarningThreshold?new er((g==null?void 0:g.onListenerError)??lt,((b=this._options)==null?void 0:b.leakWarningThreshold)??ii):void 0,this._perfMon=(E=this._options)!=null&&E._profName?new Zs(this._options._profName):void 0,this._deliveryQueue=(T=this._options)==null?void 0:T.deliveryQueue}dispose(){var g,_,b,E;if(!this._disposed){if(this._disposed=!0,((g=this._deliveryQueue)==null?void 0:g.current)===this&&this._deliveryQueue.reset(),this._listeners){if(ti){let T=this._listeners;queueMicrotask(()=>{nr(T,N=>{var A;return(A=N.stack)==null?void 0:A.print()})})}this._listeners=void 0,this._size=0}(b=(_=this._options)==null?void 0:_.onDidRemoveLastListener)==null||b.call(_),(E=this._leakageMon)==null||E.dispose()}}get event(){return this._event??(this._event=(g,_,b)=>{var A,t,a,l,u;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let n=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(n);let f=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],p=new ir(`${n}. HINT: Stack shows most frequent listener (${f[1]}-times)`,f[0]);return(((A=this._options)==null?void 0:A.onListenerError)||lt)(p),Te.None}if(this._disposed)return Te.None;_&&(g=g.bind(_));let E=new Ke(g),T;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(E.stack=vt.create(),T=this._leakageMon.check(E.stack,this._size+1)),ti&&(E.stack=vt.create()),this._listeners?this._listeners instanceof Ke?(this._deliveryQueue??(this._deliveryQueue=new or),this._listeners=[this._listeners,E]):this._listeners.push(E):((a=(t=this._options)==null?void 0:t.onWillAddFirstListener)==null||a.call(t,this),this._listeners=E,(u=(l=this._options)==null?void 0:l.onDidAddFirstListener)==null||u.call(l,this)),this._size++;let N=Qt(()=>{Be==null||Be.unregister(N),T==null||T(),this._removeListener(E)});if(b instanceof ft?b.add(N):Array.isArray(b)&&b.push(N),Be){let n=Error().stack.split(` +`).slice(2,3).join(` +`).trim(),f=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(n);Be.register(N,(f==null?void 0:f[2])??n,N)}return N}),this._event}_removeListener(g){var T,N,A,t;if((N=(T=this._options)==null?void 0:T.onWillRemoveListener)==null||N.call(T,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(t=(A=this._options)==null?void 0:A.onDidRemoveLastListener)==null||t.call(A,this),this._size=0;return}let _=this._listeners,b=_.indexOf(g);if(b===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,_[b]=void 0;let E=this._deliveryQueue.current===this;if(this._size*rr<=_.length){let a=0;for(let l=0;l<_.length;l++)_[l]?_[a++]=_[l]:E&&(this._deliveryQueue.end--,a0}},or=class{constructor(){this.i=-1,this.end=0}enqueue(g,_,b){this.i=0,this.end=b,this.current=g,this.value=_}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Ve=class Je{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new De,this.onChange=this._onChange.event;let _=new Ts;this.register(_),this._active=_.version,this._activeProvider=_}static extractShouldJoin(_){return(_&1)!=0}static extractWidth(_){return _>>1&3}static extractCharKind(_){return _>>3}static createPropertyValue(_,b,E=!1){return(_&16777215)<<3|(b&3)<<1|(E?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(_){if(!this._providers[_])throw Error(`unknown Unicode version "${_}"`);this._active=_,this._activeProvider=this._providers[_],this._onChange.fire(_)}register(_){this._providers[_.version]=_}wcwidth(_){return this._activeProvider.wcwidth(_)}getStringCellWidth(_){let b=0,E=0,T=_.length;for(let N=0;N=T)return b+this.wcwidth(A);let l=_.charCodeAt(N);56320<=l&&l<=57343?A=(A-55296)*1024+l-56320+65536:b+=this.wcwidth(l)}let t=this.charProperties(A,E),a=Je.extractWidth(t);Je.extractShouldJoin(t)&&(a-=Je.extractWidth(E)),b+=a,E=t}return b}charProperties(_,b){return this._activeProvider.charProperties(_,b)}},pt=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],ar=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],mt=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],hr=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]],Ee;function ri(g,_){let b=0,E=_.length-1,T;if(g<_[0][0]||g>_[E][1])return!1;for(;E>=b;)if(T=b+E>>1,g>_[T][1])b=T+1;else if(g<_[T][0])E=T-1;else return!0;return!1}var lr=class{constructor(){if(this.version="11",!Ee){Ee=new Uint8Array(65536),Ee.fill(1),Ee[0]=0,Ee.fill(0,1,32),Ee.fill(0,127,160);for(let g=0;gb&&(b=T)}return Ve.createPropertyValue(0,b,E)}},cr=class{activate(g){g.unicode.register(new lr)}dispose(){}},dr=class{constructor(g,_,b,E={}){this._terminal=g,this._regex=_,this._handler=b,this._options=E}provideLinks(g,_){let b=_r.computeLink(g,this._regex,this._terminal,this._handler);_(this._addCallbacks(b))}_addCallbacks(g){return g.map(_=>(_.leave=this._options.leave,_.hover=(b,E)=>{if(this._options.hover){let{range:T}=_;this._options.hover(b,E,T)}},_))}};function ur(g){try{let _=new URL(g),b=_.password&&_.username?`${_.protocol}//${_.username}:${_.password}@${_.host}`:_.username?`${_.protocol}//${_.username}@${_.host}`:`${_.protocol}//${_.host}`;return g.toLocaleLowerCase().startsWith(b.toLocaleLowerCase())}catch{return!1}}var _r=class Ye{static computeLink(_,b,E,T){let N=new RegExp(b.source,(b.flags||"")+"g"),[A,t]=Ye._getWindowedLineStrings(_-1,E),a=A.join(""),l,u=[];for(;l=N.exec(a);){let n=l[0];if(!ur(n))continue;let[f,p]=Ye._mapStrIdx(E,t,0,l.index),[S,r]=Ye._mapStrIdx(E,f,p,n.length);if(f===-1||p===-1||S===-1||r===-1)continue;let e={start:{x:p+1,y:f+1},end:{x:r,y:S+1}};u.push({range:e,text:n,activate:T})}return u}static _getWindowedLineStrings(_,b){let E,T=_,N=_,A=0,t="",a=[];if(E=b.buffer.active.getLine(_)){let l=E.translateToString(!0);if(E.isWrapped&&l[0]!==" "){for(A=0;(E=b.buffer.active.getLine(--T))&&A<2048&&(t=E.translateToString(!0),A+=t.length,a.push(t),!(!E.isWrapped||t.indexOf(" ")!==-1)););a.reverse()}for(a.push(l),A=0;(E=b.buffer.active.getLine(++N))&&E.isWrapped&&A<2048&&(t=E.translateToString(!0),A+=t.length,a.push(t),t.indexOf(" ")===-1););}return[a,T]}static _mapStrIdx(_,b,E,T){let N=_.buffer.active,A=N.getNullCell(),t=E;for(;T;){let a=N.getLine(b);if(!a)return[-1,-1];for(let l=t;l`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function gr(g,_){let b=window.open();if(b){try{b.opener=null}catch{}b.location.href=_}else console.warn("Opening link blocked as opener could not be cleared")}var vr=class{constructor(g=gr,_={}){this._handler=g,this._options=_}activate(g){this._terminal=g;let _=this._options,b=_.urlRegex||fr;this._linkProvider=this._terminal.registerLinkProvider(new dr(this._terminal,b,this._handler,_))}dispose(){var g;(g=this._linkProvider)==null||g.dispose()}},pr=At(((g,_)=>{(function(b,E){if(typeof g=="object"&&typeof _=="object")_.exports=E();else if(typeof define=="function"&&define.amd)define([],E);else{var T=E();for(var N in T)(typeof g=="object"?g:b)[N]=T[N]}})(globalThis,(()=>(()=>{var b={4567:function(A,t,a){var l=this&&this.__decorate||function(s,i,h,m){var d,c=arguments.length,v=c<3?i:m===null?m=Object.getOwnPropertyDescriptor(i,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,i,h,m);else for(var C=s.length-1;C>=0;C--)(d=s[C])&&(v=(c<3?d(v):c>3?d(i,h,v):d(i,h))||v);return c>3&&v&&Object.defineProperty(i,h,v),v},u=this&&this.__param||function(s,i){return function(h,m){i(h,m,s)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;let n=a(9042),f=a(9924),p=a(844),S=a(4725),r=a(2585),e=a(3656),o=t.AccessibilityManager=class extends p.Disposable{constructor(s,i,h,m){super(),this._terminal=s,this._coreBrowserService=h,this._renderService=m,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let d=0;dthis._handleBoundaryFocus(d,0),this._bottomBoundaryFocusListener=d=>this._handleBoundaryFocus(d,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((d=>this._handleResize(d.rows)))),this.register(this._terminal.onRender((d=>this._refreshRows(d.start,d.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((d=>this._handleChar(d)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(` +`)))),this.register(this._terminal.onA11yTab((d=>this._handleTab(d)))),this.register(this._terminal.onKey((d=>this._handleKey(d.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,e.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,p.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(s){for(let i=0;i0?this._charsToConsume.shift()!==s&&(this._charsToAnnounce+=s):this._charsToAnnounce+=s,s===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(s){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(s)||this._charsToConsume.push(s)}_refreshRows(s,i){this._liveRegionDebouncer.refresh(s,i,this._terminal.rows)}_renderRows(s,i){let h=this._terminal.buffer,m=h.lines.length.toString();for(let d=s;d<=i;d++){let c=h.lines.get(h.ydisp+d),v=[],C=(c==null?void 0:c.translateToString(!0,void 0,void 0,v))||"",k=(h.ydisp+d+1).toString(),D=this._rowElements[d];D&&(C.length===0?(D.innerText="\xA0",this._rowColumns.set(D,[0,1])):(D.textContent=C,this._rowColumns.set(D,v)),D.setAttribute("aria-posinset",k),D.setAttribute("aria-setsize",m))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(s,i){let h=s.target,m=this._rowElements[i===0?1:this._rowElements.length-2];if(h.getAttribute("aria-posinset")===(i===0?"1":`${this._terminal.buffer.lines.length}`)||s.relatedTarget!==m)return;let d,c;if(i===0?(d=h,c=this._rowElements.pop(),this._rowContainer.removeChild(c)):(d=this._rowElements.shift(),c=h,this._rowContainer.removeChild(d)),d.removeEventListener("focus",this._topBoundaryFocusListener),c.removeEventListener("focus",this._bottomBoundaryFocusListener),i===0){let v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else{let v=this._createAccessibilityTreeNode();this._rowElements.push(v),this._rowContainer.appendChild(v)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(i===0?-1:1),this._rowElements[i===0?1:this._rowElements.length-2].focus(),s.preventDefault(),s.stopImmediatePropagation()}_handleSelectionChange(){var C;if(this._rowElements.length===0)return;let s=document.getSelection();if(!s)return;if(s.isCollapsed)return void(this._rowContainer.contains(s.anchorNode)&&this._terminal.clearSelection());if(!s.anchorNode||!s.focusNode)return void console.error("anchorNode and/or focusNode are null");let i={node:s.anchorNode,offset:s.anchorOffset},h={node:s.focusNode,offset:s.focusOffset};if((i.node.compareDocumentPosition(h.node)&Node.DOCUMENT_POSITION_PRECEDING||i.node===h.node&&i.offset>h.offset)&&([i,h]=[h,i]),i.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(i={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(i.node))return;let m=this._rowElements.slice(-1)[0];if(h.node.compareDocumentPosition(m)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(h={node:m,offset:((C=m.textContent)==null?void 0:C.length)??0}),!this._rowContainer.contains(h.node))return;let d=({node:k,offset:D})=>{let x=k instanceof Text?k.parentNode:k,y=parseInt(x==null?void 0:x.getAttribute("aria-posinset"),10)-1;if(isNaN(y))return console.warn("row is invalid. Race condition?"),null;let L=this._rowColumns.get(x);if(!L)return console.warn("columns is null. Race condition?"),null;let M=D=this._terminal.cols&&(++y,M=0),{row:y,column:M}},c=d(i),v=d(h);if(c&&v){if(c.row>v.row||c.row===v.row&&c.column>=v.column)throw Error("invalid range");this._terminal.select(c.column,c.row,(v.row-c.row)*this._terminal.cols-c.column+v.column)}}_handleResize(s){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let i=this._rowContainer.children.length;is;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let s=this._coreBrowserService.mainDocument.createElement("div");return s.setAttribute("role","listitem"),s.tabIndex=-1,this._refreshRowDimensions(s),s}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let s=0;s{function a(f){return f.replace(/\r?\n/g,"\r")}function l(f,p){return p?"\x1B[200~"+f+"\x1B[201~":f}function u(f,p,S,r){f=l(f=a(f),S.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),S.triggerDataEvent(f,!0),p.value=""}function n(f,p,S){let r=S.getBoundingClientRect(),e=f.clientX-r.left-10,o=f.clientY-r.top-10;p.style.width="20px",p.style.height="20px",p.style.left=`${e}px`,p.style.top=`${o}px`,p.style.zIndex="1000",p.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=a,t.bracketTextForPaste=l,t.copyHandler=function(f,p){f.clipboardData&&f.clipboardData.setData("text/plain",p.selectionText),f.preventDefault()},t.handlePasteEvent=function(f,p,S,r){f.stopPropagation(),f.clipboardData&&u(f.clipboardData.getData("text/plain"),p,S,r)},t.paste=u,t.moveTextAreaUnderMouseCursor=n,t.rightClickHandler=function(f,p,S,r,e){n(f,p,S),e&&r.rightClickSelect(f),p.value=r.selectionText,p.select()}},7239:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;let l=a(1505);t.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(u,n,f){this._css.set(u,n,f)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,f){this._color.set(u,n,f)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(a,l,u,n){a.addEventListener(l,u,n);let f=!1;return{dispose:()=>{f||(f=!0,a.removeEventListener(l,u,n))}}}},3551:function(A,t,a){var l=this&&this.__decorate||function(o,s,i,h){var m,d=arguments.length,c=d<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,i):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,s,i,h);else for(var v=o.length-1;v>=0;v--)(m=o[v])&&(c=(d<3?m(c):d>3?m(s,i,c):m(s,i))||c);return d>3&&c&&Object.defineProperty(s,i,c),c},u=this&&this.__param||function(o,s){return function(i,h){s(i,h,o)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier=void 0;let n=a(3656),f=a(8460),p=a(844),S=a(2585),r=a(4725),e=t.Linkifier=class extends p.Disposable{get currentLink(){return this._currentLink}constructor(o,s,i,h,m){super(),this._element=o,this._mouseService=s,this._renderService=i,this._bufferService=h,this._linkProviderService=m,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new f.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new f.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,p.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,p.toDisposable)((()=>{var d;this._lastMouseEvent=void 0,(d=this._activeProviderReplies)==null||d.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(o){this._lastMouseEvent=o;let s=this._positionFromMouseEvent(o,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;let i=o.composedPath();for(let h=0;h{d==null||d.forEach((c=>{c.link.dispose&&c.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=o.y);let i=!1;for(let[d,c]of this._linkProviderService.linkProviders.entries())s?(m=this._activeProviderReplies)!=null&&m.get(d)&&(i=this._checkLinkProviderResult(d,o,i)):c.provideLinks(o.y,(v=>{var k,D;if(this._isMouseOut)return;let C=v==null?void 0:v.map((x=>({link:x})));(k=this._activeProviderReplies)==null||k.set(d,C),i=this._checkLinkProviderResult(d,o,i),((D=this._activeProviderReplies)==null?void 0:D.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(o.y,this._activeProviderReplies)}))}_removeIntersectingLinks(o,s){let i=new Set;for(let h=0;ho?this._bufferService.cols:c.link.range.end.x;for(let k=v;k<=C;k++){if(i.has(k)){m.splice(d--,1);break}i.add(k)}}}}_checkLinkProviderResult(o,s,i){var d;if(!this._activeProviderReplies)return i;let h=this._activeProviderReplies.get(o),m=!1;for(let c=0;cthis._linkAtPosition(v.link,s)));c&&(i=!0,this._handleNewLink(c))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!i)for(let c=0;cthis._linkAtPosition(C.link,s)));if(v){i=!0,this._handleNewLink(v);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(o){if(!this._currentLink)return;let s=this._positionFromMouseEvent(o,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(o,this._currentLink.link.text)}_clearCurrentLink(o,s){this._currentLink&&this._lastMouseEvent&&(!o||!s||this._currentLink.link.range.start.y>=o&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))}_handleNewLink(o){if(!this._lastMouseEvent)return;let s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(o.link,s)&&(this._currentLink=o,this._currentLink.state={decorations:{underline:o.link.decorations===void 0||o.link.decorations.underline,pointerCursor:o.link.decorations===void 0||o.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,o.link,this._lastMouseEvent),o.link.decorations={},Object.defineProperties(o.link.decorations,{pointerCursor:{get:()=>{var i,h;return(h=(i=this._currentLink)==null?void 0:i.state)==null?void 0:h.decorations.pointerCursor},set:i=>{var h;(h=this._currentLink)!=null&&h.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",i))}},underline:{get:()=>{var i,h;return(h=(i=this._currentLink)==null?void 0:i.state)==null?void 0:h.decorations.underline},set:i=>{var h,m,d;(h=this._currentLink)!=null&&h.state&&((d=(m=this._currentLink)==null?void 0:m.state)==null?void 0:d.decorations.underline)!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(o.link,i))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((i=>{if(!this._currentLink)return;let h=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,m=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=h&&this._currentLink.link.range.end.y<=m&&(this._clearCurrentLink(h,m),this._lastMouseEvent)){let d=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);d&&this._askForLink(d,!1)}}))))}_linkHover(o,s,i){var h;(h=this._currentLink)!=null&&h.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&o.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(i,s.text)}_fireUnderlineEvent(o,s){let i=o.range,h=this._bufferService.buffer.ydisp,m=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-h-1,i.end.x,i.end.y-h-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(m)}_linkLeave(o,s,i){var h;(h=this._currentLink)!=null&&h.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&o.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(i,s.text)}_linkAtPosition(o,s){let i=o.range.start.y*this._bufferService.cols+o.range.start.x,h=o.range.end.y*this._bufferService.cols+o.range.end.x,m=s.y*this._bufferService.cols+s.x;return i<=m&&m<=h}_positionFromMouseEvent(o,s,i){let h=i.getCoords(o,s,this._bufferService.cols,this._bufferService.rows);if(h)return{x:h[0],y:h[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(o,s,i,h,m){return{x1:o,y1:s,x2:i,y2:h,cols:this._bufferService.cols,fg:m}}};t.Linkifier=e=l([u(1,r.IMouseService),u(2,r.IRenderService),u(3,S.IBufferService),u(4,r.ILinkProviderService)],e)},9042:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(A,t,a){var l=this&&this.__decorate||function(r,e,o,s){var i,h=arguments.length,m=h<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(r,e,o,s);else for(var d=r.length-1;d>=0;d--)(i=r[d])&&(m=(h<3?i(m):h>3?i(e,o,m):i(e,o))||m);return h>3&&m&&Object.defineProperty(e,o,m),m},u=this&&this.__param||function(r,e){return function(o,s){e(o,s,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;let n=a(511),f=a(2585),p=t.OscLinkProvider=class{constructor(r,e,o){this._bufferService=r,this._optionsService=e,this._oscLinkService=o}provideLinks(r,e){var C;let o=this._bufferService.buffer.lines.get(r-1);if(!o)return void e(void 0);let s=[],i=this._optionsService.rawOptions.linkHandler,h=new n.CellData,m=o.getTrimmedLength(),d=-1,c=-1,v=!1;for(let k=0;ki?i.activate(L,M,x):S(0,M),hover:(L,M)=>{var B;return(B=i==null?void 0:i.hover)==null?void 0:B.call(i,L,M,x)},leave:(L,M)=>{var B;return(B=i==null?void 0:i.leave)==null?void 0:B.call(i,L,M,x)}})}v=!1,h.hasExtendedAttrs()&&h.extended.urlId?(c=k,d=h.extended.urlId):(c=-1,d=-1)}}e(s)}};function S(r,e){if(confirm(`Do you want to navigate to ${e}? + +WARNING: This link could potentially be dangerous`)){let o=window.open();if(o){try{o.opener=null}catch{}o.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}}t.OscLinkProvider=p=l([u(0,f.IBufferService),u(1,f.IOptionsService),u(2,f.IOscLinkService)],p)},6193:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(a,l){this._renderCallback=a,this._coreBrowserService=l,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._animationFrame=(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),void 0))}addRefreshCallback(a){return this._refreshCallbacks.push(a),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(a,l,u){this._rowCount=u,a=a===void 0?0:a,l=l===void 0?this._rowCount-1:l,this._rowStart=this._rowStart===void 0?a:Math.min(this._rowStart,a),this._rowEnd=this._rowEnd===void 0?l:Math.max(this._rowEnd,l),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();let a=Math.max(this._rowStart,0),l=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(a,l),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let a of this._refreshCallbacks)a(0);this._refreshCallbacks=[]}}},3236:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;let l=a(3614),u=a(3656),n=a(3551),f=a(9042),p=a(3730),S=a(1680),r=a(3107),e=a(5744),o=a(2950),s=a(1296),i=a(428),h=a(4269),m=a(5114),d=a(8934),c=a(3230),v=a(9312),C=a(4725),k=a(6731),D=a(8055),x=a(8969),y=a(8460),L=a(844),M=a(6114),B=a(8437),P=a(2584),H=a(7399),w=a(5941),R=a(9074),O=a(2585),F=a(5435),z=a(4567),j=a(779);class X extends x.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(W={}){super(W),this.browser=M,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new L.MutableDisposable),this._onCursorMove=this.register(new y.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new y.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new y.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new y.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new y.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new y.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new y.EventEmitter),this._onBlur=this.register(new y.EventEmitter),this._onA11yCharEmitter=this.register(new y.EventEmitter),this._onA11yTabEmitter=this.register(new y.EventEmitter),this._onWillOpen=this.register(new y.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(R.DecorationService),this._instantiationService.setService(O.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(j.LinkProviderService),this._instantiationService.setService(C.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(p.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows((($,I)=>this.refresh($,I)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport(($=>this._reportWindowsOptions($)))),this.register(this._inputHandler.onColor(($=>this._handleColorEvent($)))),this.register((0,y.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,y.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,y.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,y.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(($=>this._afterResize($.cols,$.rows)))),this.register((0,L.toDisposable)((()=>{var $,I;this._customKeyEventHandler=void 0,(I=($=this.element)==null?void 0:$.parentNode)==null||I.removeChild(this.element)})))}_handleColorEvent(W){if(this._themeService)for(let $ of W){let I,U="";switch($.index){case 256:I="foreground",U="10";break;case 257:I="background",U="11";break;case 258:I="cursor",U="12";break;default:I="ansi",U="4;"+$.index}switch($.type){case 0:let q=D.color.toColorRGB(I==="ansi"?this._themeService.colors.ansi[$.index]:this._themeService.colors[I]);this.coreService.triggerDataEvent(`${P.C0.ESC}]${U};${(0,w.toRgbString)(q)}${P.C1_ESCAPED.ST}`);break;case 1:if(I==="ansi")this._themeService.modifyColors((G=>G.ansi[$.index]=D.channels.toColor(...$.color)));else{let G=I;this._themeService.modifyColors((Q=>Q[G]=D.channels.toColor(...$.color)))}break;case 2:this._themeService.restoreColor($.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(W){W?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(z.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(W){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(P.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var W;return(W=this.textarea)==null?void 0:W.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(P.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let W=this.buffer.ybase+this.buffer.y,$=this.buffer.lines.get(W);if(!$)return;let I=Math.min(this.buffer.x,this.cols-1),U=this._renderService.dimensions.css.cell.height,q=$.getWidth(I),G=this._renderService.dimensions.css.cell.width*q,Q=this.buffer.y*this._renderService.dimensions.css.cell.height,Y=I*this._renderService.dimensions.css.cell.width;this.textarea.style.left=Y+"px",this.textarea.style.top=Q+"px",this.textarea.style.width=G+"px",this.textarea.style.height=U+"px",this.textarea.style.lineHeight=U+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,u.addDisposableDomListener)(this.element,"copy",($=>{this.hasSelection()&&(0,l.copyHandler)($,this._selectionService)})));let W=$=>(0,l.handlePasteEvent)($,this.textarea,this.coreService,this.optionsService);this.register((0,u.addDisposableDomListener)(this.textarea,"paste",W)),this.register((0,u.addDisposableDomListener)(this.element,"paste",W)),M.isFirefox?this.register((0,u.addDisposableDomListener)(this.element,"mousedown",($=>{$.button===2&&(0,l.rightClickHandler)($,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,u.addDisposableDomListener)(this.element,"contextmenu",($=>{(0,l.rightClickHandler)($,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),M.isLinux&&this.register((0,u.addDisposableDomListener)(this.element,"auxclick",($=>{$.button===1&&(0,l.moveTextAreaUnderMouseCursor)($,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,u.addDisposableDomListener)(this.textarea,"keyup",(W=>this._keyUp(W)),!0)),this.register((0,u.addDisposableDomListener)(this.textarea,"keydown",(W=>this._keyDown(W)),!0)),this.register((0,u.addDisposableDomListener)(this.textarea,"keypress",(W=>this._keyPress(W)),!0)),this.register((0,u.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,u.addDisposableDomListener)(this.textarea,"compositionupdate",(W=>this._compositionHelper.compositionupdate(W)))),this.register((0,u.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,u.addDisposableDomListener)(this.textarea,"input",(W=>this._inputEvent(W)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(W){var I;if(!W)throw Error("Terminal requires a parent element.");if(W.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((I=this.element)==null?void 0:I.ownerDocument.defaultView)&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=W.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),W.appendChild(this.element);let $=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),$.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,u.addDisposableDomListener)(this.screenElement,"mousemove",(U=>this.updateCursorStyle(U)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),$.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",f.promptLabel),M.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(m.CoreBrowserService,this.textarea,W.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(C.ICoreBrowserService,this._coreBrowserService),this.register((0,u.addDisposableDomListener)(this.textarea,"focus",(U=>this._handleTextAreaFocus(U)))),this.register((0,u.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(i.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(C.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(k.ThemeService),this._instantiationService.setService(C.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(h.CharacterJoinerService),this._instantiationService.setService(C.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(c.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(C.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((U=>this._onRender.fire(U)))),this.onResize((U=>this._renderService.resize(U.cols,U.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(o.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(d.MouseService),this._instantiationService.setService(C.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(n.Linkifier,this.screenElement)),this.element.appendChild($);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(S.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((U=>this.scrollLines(U.amount,U.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(v.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(C.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((U=>this.scrollLines(U.amount,U.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((U=>this._renderService.handleSelectionChanged(U.start,U.end,U.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((U=>{this.textarea.value=U,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((U=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,u.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(r.BufferDecorationRenderer,this.screenElement)),this.register((0,u.addDisposableDomListener)(this.element,"mousedown",(U=>this._selectionService.handleMouseDown(U)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(z.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(U=>this._handleScreenReaderModeOptionChange(U)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(U=>{!this._overviewRulerRenderer&&U&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(e.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(s.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let W=this,$=this.element;function I(G){let Q=W._mouseService.getMouseReportCoords(G,W.screenElement);if(!Q)return!1;let Y,re;switch(G.overrideType||G.type){case"mousemove":re=32,G.buttons===void 0?(Y=3,G.button!==void 0&&(Y=G.button<3?G.button:3)):Y=1&G.buttons?0:4&G.buttons?1:2&G.buttons?2:3;break;case"mouseup":re=0,Y=G.button<3?G.button:3;break;case"mousedown":re=1,Y=G.button<3?G.button:3;break;case"wheel":if(W._customWheelEventHandler&&W._customWheelEventHandler(G)===!1||W.viewport.getLinesScrolled(G)===0)return!1;re=G.deltaY<0?0:1,Y=4;break;default:return!1}return!(re===void 0||Y===void 0||Y>4)&&W.coreMouseService.triggerMouseEvent({col:Q.col,row:Q.row,x:Q.x,y:Q.y,button:Y,action:re,ctrl:G.ctrlKey,alt:G.altKey,shift:G.shiftKey})}let U={mouseup:null,wheel:null,mousedrag:null,mousemove:null},q={mouseup:G=>(I(G),G.buttons||(this._document.removeEventListener("mouseup",U.mouseup),U.mousedrag&&this._document.removeEventListener("mousemove",U.mousedrag)),this.cancel(G)),wheel:G=>(I(G),this.cancel(G,!0)),mousedrag:G=>{G.buttons&&I(G)},mousemove:G=>{G.buttons||I(G)}};this.register(this.coreMouseService.onProtocolChange((G=>{G?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(G)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&G?U.mousemove||(U.mousemove=($.addEventListener("mousemove",q.mousemove),q.mousemove)):($.removeEventListener("mousemove",U.mousemove),U.mousemove=null),16&G?U.wheel||(U.wheel=($.addEventListener("wheel",q.wheel,{passive:!1}),q.wheel)):($.removeEventListener("wheel",U.wheel),U.wheel=null),2&G?U.mouseup||(U.mouseup=q.mouseup):(this._document.removeEventListener("mouseup",U.mouseup),U.mouseup=null),4&G?U.mousedrag||(U.mousedrag=q.mousedrag):(this._document.removeEventListener("mousemove",U.mousedrag),U.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,u.addDisposableDomListener)($,"mousedown",(G=>{if(G.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(G))return I(G),U.mouseup&&this._document.addEventListener("mouseup",U.mouseup),U.mousedrag&&this._document.addEventListener("mousemove",U.mousedrag),this.cancel(G)}))),this.register((0,u.addDisposableDomListener)($,"wheel",(G=>{if(!U.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(G)===!1)return!1;if(!this.buffer.hasScrollback){let Q=this.viewport.getLinesScrolled(G);if(Q===0)return;let Y=P.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(G.deltaY<0?"A":"B"),re="";for(let he=0;he{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(G),this.cancel(G)}),{passive:!0})),this.register((0,u.addDisposableDomListener)($,"touchmove",(G=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(G)?void 0:this.cancel(G)}),{passive:!1}))}refresh(W,$){var I;(I=this._renderService)==null||I.refreshRows(W,$)}updateCursorStyle(W){var $;($=this._selectionService)!=null&&$.shouldColumnSelect(W)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(W,$,I=0){var U;I===1?(super.scrollLines(W,$,I),this.refresh(0,this.rows-1)):(U=this.viewport)==null||U.scrollLines(W)}paste(W){(0,l.paste)(W,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(W){this._customKeyEventHandler=W}attachCustomWheelEventHandler(W){this._customWheelEventHandler=W}registerLinkProvider(W){return this._linkProviderService.registerLinkProvider(W)}registerCharacterJoiner(W){if(!this._characterJoinerService)throw Error("Terminal must be opened first");let $=this._characterJoinerService.register(W);return this.refresh(0,this.rows-1),$}deregisterCharacterJoiner(W){if(!this._characterJoinerService)throw Error("Terminal must be opened first");this._characterJoinerService.deregister(W)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(W){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+W)}registerDecoration(W){return this._decorationService.registerDecoration(W)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(W,$,I){this._selectionService.setSelection(W,$,I)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var W;(W=this._selectionService)==null||W.clearSelection()}selectAll(){var W;(W=this._selectionService)==null||W.selectAll()}selectLines(W,$){var I;(I=this._selectionService)==null||I.selectLines(W,$)}_keyDown(W){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(W)===!1)return!1;let $=this.browser.isMac&&this.options.macOptionIsMeta&&W.altKey;if(!$&&!this._compositionHelper.keydown(W))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;$||W.key!=="Dead"&&W.key!=="AltGraph"||(this._unprocessedDeadKey=!0);let I=(0,H.evaluateKeyboardEvent)(W,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(W),I.type===3||I.type===2){let U=this.rows-1;return this.scrollLines(I.type===2?-U:U),this.cancel(W,!0)}return I.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,W)||(I.cancel&&this.cancel(W,!0),!I.key||!!(W.key&&!W.ctrlKey&&!W.altKey&&!W.metaKey&&W.key.length===1&&W.key.charCodeAt(0)>=65&&W.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(I.key!==P.C0.ETX&&I.key!==P.C0.CR||(this.textarea.value=""),this._onKey.fire({key:I.key,domEvent:W}),this._showCursor(),this.coreService.triggerDataEvent(I.key,!0),!this.optionsService.rawOptions.screenReaderMode||W.altKey||W.ctrlKey?this.cancel(W,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(W,$){let I=W.isMac&&!this.options.macOptionIsMeta&&$.altKey&&!$.ctrlKey&&!$.metaKey||W.isWindows&&$.altKey&&$.ctrlKey&&!$.metaKey||W.isWindows&&$.getModifierState("AltGraph");return $.type==="keypress"?I:I&&(!$.keyCode||$.keyCode>47)}_keyUp(W){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(W)===!1||((function($){return $.keyCode===16||$.keyCode===17||$.keyCode===18})(W)||this.focus(),this.updateCursorStyle(W),this._keyPressHandled=!1)}_keyPress(W){let $;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(W)===!1)return!1;if(this.cancel(W),W.charCode)$=W.charCode;else if(W.which===null||W.which===void 0)$=W.keyCode;else{if(W.which===0||W.charCode===0)return!1;$=W.which}return!(!$||(W.altKey||W.ctrlKey||W.metaKey)&&!this._isThirdLevelShift(this.browser,W)||($=String.fromCharCode($),this._onKey.fire({key:$,domEvent:W}),this._showCursor(),this.coreService.triggerDataEvent($,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(W){if(W.data&&W.inputType==="insertText"&&(!W.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let $=W.data;return this.coreService.triggerDataEvent($,!0),this.cancel(W),!0}return!1}resize(W,$){W!==this.cols||$!==this.rows?super.resize(W,$):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(W,$){var I,U;(I=this._charSizeService)==null||I.measure(),(U=this.viewport)==null||U.syncScrollArea(!0)}clear(){var W;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let $=1;${Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(a,l=1e3){this._renderCallback=a,this._debounceThresholdMS=l,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(a,l,u){this._rowCount=u,a=a===void 0?0:a,l=l===void 0?this._rowCount-1:l,this._rowStart=this._rowStart===void 0?a:Math.min(this._rowStart,a),this._rowEnd=this._rowEnd===void 0?l:Math.max(this._rowEnd,l);let n=Date.now();if(n-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=n,this._innerRefresh();else if(!this._additionalRefreshRequested){let f=n-this._lastRefreshMs,p=this._debounceThresholdMS-f;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),p)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let a=Math.max(this._rowStart,0),l=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(a,l)}}},1680:function(A,t,a){var l=this&&this.__decorate||function(o,s,i,h){var m,d=arguments.length,c=d<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,i):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,s,i,h);else for(var v=o.length-1;v>=0;v--)(m=o[v])&&(c=(d<3?m(c):d>3?m(s,i,c):m(s,i))||c);return d>3&&c&&Object.defineProperty(s,i,c),c},u=this&&this.__param||function(o,s){return function(i,h){s(i,h,o)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;let n=a(3656),f=a(4725),p=a(8460),S=a(844),r=a(2585),e=t.Viewport=class extends S.Disposable{constructor(o,s,i,h,m,d,c,v){super(),this._viewportElement=o,this._scrollArea=s,this._bufferService=i,this._optionsService=h,this._charSizeService=m,this._renderService=d,this._coreBrowserService=c,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new p.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((C=>this._activeBuffer=C.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((C=>this._renderDimensions=C))),this._handleThemeChange(v.colors),this.register(v.onChangeColors((C=>this._handleThemeChange(C)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(o){this._viewportElement.style.backgroundColor=o.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(o){if(o)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;let s=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==s&&(this._lastRecordedBufferHeight=s,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}let o=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==o&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=o),this._refreshAnimationFrame=null}syncScrollArea(o=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(o);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(o)}_handleScroll(o){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});let s=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:s,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;let o=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(o*(this._smoothScrollState.target-this._smoothScrollState.origin)),o<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(o,s){let i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&i0&&(i=x),h=""}}return{bufferElements:m,cursorElement:i}}getLinesScrolled(o){if(o.deltaY===0||o.shiftKey)return 0;let s=this._applyScrollModifier(o.deltaY,o);return o.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(s/=this._currentRowHeight+0,this._wheelPartialScroll+=s,s=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):o.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s}_applyScrollModifier(o,s){let i=this._optionsService.rawOptions.fastScrollModifier;return i==="alt"&&s.altKey||i==="ctrl"&&s.ctrlKey||i==="shift"&&s.shiftKey?o*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:o*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(o){this._lastTouchY=o.touches[0].pageY}handleTouchMove(o){let s=this._lastTouchY-o.touches[0].pageY;return this._lastTouchY=o.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(o,s))}};t.Viewport=e=l([u(2,r.IBufferService),u(3,r.IOptionsService),u(4,f.ICharSizeService),u(5,f.IRenderService),u(6,f.ICoreBrowserService),u(7,f.IThemeService)],e)},3107:function(A,t,a){var l=this&&this.__decorate||function(r,e,o,s){var i,h=arguments.length,m=h<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(r,e,o,s);else for(var d=r.length-1;d>=0;d--)(i=r[d])&&(m=(h<3?i(m):h>3?i(e,o,m):i(e,o))||m);return h>3&&m&&Object.defineProperty(e,o,m),m},u=this&&this.__param||function(r,e){return function(o,s){e(o,s,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;let n=a(4725),f=a(844),p=a(2585),S=t.BufferDecorationRenderer=class extends f.Disposable{constructor(r,e,o,s,i){super(),this._screenElement=r,this._bufferService=e,this._coreBrowserService=o,this._decorationService=s,this._renderService=i,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((h=>this._removeDecoration(h)))),this.register((0,f.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(let r of this._decorationService.decorations)this._renderDecoration(r);this._dimensionsChanged=!1}_renderDecoration(r){this._refreshStyle(r),this._dimensionsChanged&&this._refreshXPosition(r)}_createElement(r){var s;let e=this._coreBrowserService.mainDocument.createElement("div");e.classList.add("xterm-decoration"),e.classList.toggle("xterm-decoration-top-layer",((s=r==null?void 0:r.options)==null?void 0:s.layer)==="top"),e.style.width=`${Math.round((r.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,e.style.height=(r.options.height||1)*this._renderService.dimensions.css.cell.height+"px",e.style.top=(r.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",e.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let o=r.options.x??0;return o&&o>this._bufferService.cols&&(e.style.display="none"),this._refreshXPosition(r,e),e}_refreshStyle(r){let e=r.marker.line-this._bufferService.buffers.active.ydisp;if(e<0||e>=this._bufferService.rows)r.element&&(r.element.style.display="none",r.onRenderEmitter.fire(r.element));else{let o=this._decorationElements.get(r);o||(o=this._createElement(r),r.element=o,this._decorationElements.set(r,o),this._container.appendChild(o),r.onDispose((()=>{this._decorationElements.delete(r),o.remove()}))),o.style.top=e*this._renderService.dimensions.css.cell.height+"px",o.style.display=this._altBufferIsActive?"none":"block",r.onRenderEmitter.fire(o)}}_refreshXPosition(r,e=r.element){if(!e)return;let o=r.options.x??0;(r.options.anchor||"left")==="right"?e.style.right=o?o*this._renderService.dimensions.css.cell.width+"px":"":e.style.left=o?o*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(r){var e;(e=this._decorationElements.get(r))==null||e.remove(),this._decorationElements.delete(r),r.dispose()}};t.BufferDecorationRenderer=S=l([u(1,p.IBufferService),u(2,n.ICoreBrowserService),u(3,p.IDecorationService),u(4,n.IRenderService)],S)},5871:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(a){if(a.options.overviewRulerOptions){for(let l of this._zones)if(l.color===a.options.overviewRulerOptions.color&&l.position===a.options.overviewRulerOptions.position){if(this._lineIntersectsZone(l,a.marker.line))return;if(this._lineAdjacentToZone(l,a.marker.line,a.options.overviewRulerOptions.position))return void this._addLineToZone(l,a.marker.line)}if(this._zonePoolIndex=a.startBufferLine&&l<=a.endBufferLine}_lineAdjacentToZone(a,l,u){return l>=a.startBufferLine-this._linePadding[u||"full"]&&l<=a.endBufferLine+this._linePadding[u||"full"]}_addLineToZone(a,l){a.startBufferLine=Math.min(a.startBufferLine,l),a.endBufferLine=Math.max(a.endBufferLine,l)}}},5744:function(A,t,a){var l=this&&this.__decorate||function(i,h,m,d){var c,v=arguments.length,C=v<3?h:d===null?d=Object.getOwnPropertyDescriptor(h,m):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(i,h,m,d);else for(var k=i.length-1;k>=0;k--)(c=i[k])&&(C=(v<3?c(C):v>3?c(h,m,C):c(h,m))||C);return v>3&&C&&Object.defineProperty(h,m,C),C},u=this&&this.__param||function(i,h){return function(m,d){h(m,d,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;let n=a(5871),f=a(4725),p=a(844),S=a(2585),r={full:0,left:0,center:0,right:0},e={full:0,left:0,center:0,right:0},o={full:0,left:0,center:0,right:0},s=t.OverviewRulerRenderer=class extends p.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(i,h,m,d,c,v,C){var D;super(),this._viewportElement=i,this._screenElement=h,this._bufferService=m,this._decorationService=d,this._renderService=c,this._optionsService=v,this._coreBrowserService=C,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(D=this._viewportElement.parentElement)==null||D.insertBefore(this._canvas,this._viewportElement);let k=this._canvas.getContext("2d");if(!k)throw Error("Ctx cannot be null");this._ctx=k,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,p.toDisposable)((()=>{var x;(x=this._canvas)==null||x.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){let i=Math.floor(this._canvas.width/3),h=Math.ceil(this._canvas.width/3);e.full=this._canvas.width,e.left=i,e.center=h,e.right=i,this._refreshDrawHeightConstants(),o.full=0,o.left=0,o.center=e.left,o.right=e.left+e.center}_refreshDrawHeightConstants(){r.full=Math.round(2*this._coreBrowserService.dpr);let i=this._canvas.height/this._bufferService.buffer.lines.length,h=Math.round(Math.max(Math.min(i,12),6)*this._coreBrowserService.dpr);r.left=h,r.center=h,r.right=h}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let h of this._decorationService.decorations)this._colorZoneStore.addDecoration(h);this._ctx.lineWidth=1;let i=this._colorZoneStore.zones;for(let h of i)h.position!=="full"&&this._renderColorZone(h);for(let h of i)h.position==="full"&&this._renderColorZone(h);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(i){this._ctx.fillStyle=i.color,this._ctx.fillRect(o[i.position||"full"],Math.round((this._canvas.height-1)*(i.startBufferLine/this._bufferService.buffers.active.lines.length)-r[i.position||"full"]/2),e[i.position||"full"],Math.round((this._canvas.height-1)*((i.endBufferLine-i.startBufferLine)/this._bufferService.buffers.active.lines.length)+r[i.position||"full"]))}_queueRefresh(i,h){this._shouldUpdateDimensions=i||this._shouldUpdateDimensions,this._shouldUpdateAnchor=h||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};t.OverviewRulerRenderer=s=l([u(2,S.IBufferService),u(3,S.IDecorationService),u(4,f.IRenderService),u(5,S.IOptionsService),u(6,f.ICoreBrowserService)],s)},2950:function(A,t,a){var l=this&&this.__decorate||function(r,e,o,s){var i,h=arguments.length,m=h<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(r,e,o,s);else for(var d=r.length-1;d>=0;d--)(i=r[d])&&(m=(h<3?i(m):h>3?i(e,o,m):i(e,o))||m);return h>3&&m&&Object.defineProperty(e,o,m),m},u=this&&this.__param||function(r,e){return function(o,s){e(o,s,r)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;let n=a(4725),f=a(2585),p=a(2584),S=t.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(r,e,o,s,i,h){this._textarea=r,this._compositionView=e,this._bufferService=o,this._optionsService=s,this._coreService=i,this._renderService=h,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(r){this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(r){if(this._isComposing||this._isSendingComposition){if(r.keyCode===229||r.keyCode===16||r.keyCode===17||r.keyCode===18)return!1;this._finalizeComposition(!1)}return r.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(r){if(this._compositionView.classList.remove("active"),this._isComposing=!1,r){let e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let o;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,o=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),o.length>0&&this._coreService.triggerDataEvent(o,!0)}}),0)}else{this._isSendingComposition=!1;let e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){let r=this._textarea.value;setTimeout((()=>{if(!this._isComposing){let e=this._textarea.value,o=e.replace(r,"");this._dataAlreadySent=o,e.length>r.length?this._coreService.triggerDataEvent(o,!0):e.lengththis.updateCompositionElements(!0)),0)}}};t.CompositionHelper=S=l([u(2,f.IBufferService),u(3,f.IOptionsService),u(4,f.ICoreService),u(5,n.IRenderService)],S)},9806:(A,t)=>{function a(l,u,n){let f=n.getBoundingClientRect(),p=l.getComputedStyle(n),S=parseInt(p.getPropertyValue("padding-left")),r=parseInt(p.getPropertyValue("padding-top"));return[u.clientX-f.left-S,u.clientY-f.top-r]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=a,t.getCoords=function(l,u,n,f,p,S,r,e,o){if(!S)return;let s=a(l,u,n);return s?(s[0]=Math.ceil((s[0]+(o?r/2:0))/r),s[1]=Math.ceil(s[1]/e),s[0]=Math.min(Math.max(s[0],1),f+(o?1:0)),s[1]=Math.min(Math.max(s[1],1),p),s):void 0}},9504:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;let l=a(2584);function u(e,o,s,i){let h=e-n(e,s),m=o-n(o,s);return r(Math.abs(h-m)-(function(d,c,v){var x;let C=0,k=d-n(d,v),D=c-n(c,v);for(let y=0;y=0&&eo?"A":"B"}function p(e,o,s,i,h,m){let d=e,c=o,v="";for(;d!==s||c!==i;)d+=h?1:-1,h&&d>m.cols-1?(v+=m.buffer.translateBufferLineToString(c,!1,e,d),d=0,e=0,c++):!h&&d<0&&(v+=m.buffer.translateBufferLineToString(c,!1,0,e+1),d=m.cols-1,e=d,c--);return v+m.buffer.translateBufferLineToString(c,!1,e,d)}function S(e,o){let s=o?"O":"[";return l.C0.ESC+s+e}function r(e,o){e=Math.floor(e);let s="";for(let i=0;i0?D-n(D,x):C;let M=D,B=(function(P,H,w,R,O,F){let z;return z=u(w,R,O,F).length>0?R-n(R,O):H,P=w&&ze?"D":"C",r(Math.abs(h-e),S(d,i));d=m>o?"D":"C";let c=Math.abs(m-o);return r((function(v,C){return C.cols-v})(m>o?e:h,s)+(c-1)*s.cols+1+((m>o?h:e)-1),S(d,i))}},1296:function(A,t,a){var l=this&&this.__decorate||function(y,L,M,B){var P,H=arguments.length,w=H<3?L:B===null?B=Object.getOwnPropertyDescriptor(L,M):B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(y,L,M,B);else for(var R=y.length-1;R>=0;R--)(P=y[R])&&(w=(H<3?P(w):H>3?P(L,M,w):P(L,M))||w);return H>3&&w&&Object.defineProperty(L,M,w),w},u=this&&this.__param||function(y,L){return function(M,B){L(M,B,y)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;let n=a(3787),f=a(2550),p=a(2223),S=a(6171),r=a(6052),e=a(4725),o=a(8055),s=a(8460),i=a(844),h=a(2585),m="xterm-dom-renderer-owner-",d="xterm-rows",c="xterm-fg-",v="xterm-bg-",C="xterm-focus",k="xterm-selection",D=1,x=t.DomRenderer=class extends i.Disposable{constructor(y,L,M,B,P,H,w,R,O,F,z,j,X){super(),this._terminal=y,this._document=L,this._element=M,this._screenElement=B,this._viewportElement=P,this._helperContainer=H,this._linkifier2=w,this._charSizeService=O,this._optionsService=F,this._bufferService=z,this._coreBrowserService=j,this._themeService=X,this._terminalClass=D++,this._rowElements=[],this._selectionRenderModel=(0,r.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new s.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(d),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(k),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,S.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((K=>this._injectCss(K)))),this._injectCss(this._themeService.colors),this._rowFactory=R.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(m+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((K=>this._handleLinkHover(K)))),this.register(this._linkifier2.onHideLinkUnderline((K=>this._handleLinkLeave(K)))),this.register((0,i.toDisposable)((()=>{this._element.classList.remove(m+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new f.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let y=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*y,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*y),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/y),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/y),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let M of this._rowElements)M.style.width=`${this.dimensions.css.canvas.width}px`,M.style.height=`${this.dimensions.css.cell.height}px`,M.style.lineHeight=`${this.dimensions.css.cell.height}px`,M.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let L=`${this._terminalSelector} .${d} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=L,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(y){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let L=`${this._terminalSelector} .${d} { color: ${y.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;L+=`${this._terminalSelector} .${d} .xterm-dim { color: ${o.color.multiplyOpacity(y.foreground,.5).css};}`,L+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let M=`blink_underline_${this._terminalClass}`,B=`blink_bar_${this._terminalClass}`,P=`blink_block_${this._terminalClass}`;L+=`@keyframes ${M} { 50% { border-bottom-style: hidden; }}`,L+=`@keyframes ${B} { 50% { box-shadow: none; }}`,L+=`@keyframes ${P} { 0% { background-color: ${y.cursor.css}; color: ${y.cursorAccent.css}; } 50% { background-color: inherit; color: ${y.cursor.css}; }}`,L+=`${this._terminalSelector} .${d}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${M} 1s step-end infinite;}${this._terminalSelector} .${d}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${B} 1s step-end infinite;}${this._terminalSelector} .${d}.${C} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${P} 1s step-end infinite;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-block { background-color: ${y.cursor.css}; color: ${y.cursorAccent.css};}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${y.cursor.css} !important; color: ${y.cursorAccent.css} !important;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${y.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${y.cursor.css} inset;}${this._terminalSelector} .${d} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${y.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,L+=`${this._terminalSelector} .${k} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${k} div { position: absolute; background-color: ${y.selectionBackgroundOpaque.css};}${this._terminalSelector} .${k} div { position: absolute; background-color: ${y.selectionInactiveBackgroundOpaque.css};}`;for(let[H,w]of y.ansi.entries())L+=`${this._terminalSelector} .${c}${H} { color: ${w.css}; }${this._terminalSelector} .${c}${H}.xterm-dim { color: ${o.color.multiplyOpacity(w,.5).css}; }${this._terminalSelector} .${v}${H} { background-color: ${w.css}; }`;L+=`${this._terminalSelector} .${c}${p.INVERTED_DEFAULT_COLOR} { color: ${o.color.opaque(y.background).css}; }${this._terminalSelector} .${c}${p.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${o.color.multiplyOpacity(o.color.opaque(y.background),.5).css}; }${this._terminalSelector} .${v}${p.INVERTED_DEFAULT_COLOR} { background-color: ${y.foreground.css}; }`,this._themeStyleElement.textContent=L}_setDefaultSpacing(){let y=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${y}px`,this._rowFactory.defaultSpacing=y}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(y,L){for(let M=this._rowElements.length;M<=L;M++){let B=this._document.createElement("div");this._rowContainer.appendChild(B),this._rowElements.push(B)}for(;this._rowElements.length>L;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(y,L){this._refreshRowElements(y,L),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(C),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(C),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(y,L,M){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(y,L,M),this.renderRows(0,this._bufferService.rows-1),!y||!L)return;this._selectionRenderModel.update(this._terminal,y,L,M);let B=this._selectionRenderModel.viewportStartRow,P=this._selectionRenderModel.viewportEndRow,H=this._selectionRenderModel.viewportCappedStartRow,w=this._selectionRenderModel.viewportCappedEndRow;if(H>=this._bufferService.rows||w<0)return;let R=this._document.createDocumentFragment();if(M){let O=y[0]>L[0];R.appendChild(this._createSelectionElement(H,O?L[0]:y[0],O?y[0]:L[0],w-H+1))}else{let O=B===H?y[0]:0,F=H===P?L[0]:this._bufferService.cols;R.appendChild(this._createSelectionElement(H,O,F));let z=w-H-1;if(R.appendChild(this._createSelectionElement(H+1,0,this._bufferService.cols,z)),H!==w){let j=P===w?L[0]:this._bufferService.cols;R.appendChild(this._createSelectionElement(w,0,j))}}this._selectionContainer.appendChild(R)}_createSelectionElement(y,L,M,B=1){let P=this._document.createElement("div"),H=L*this.dimensions.css.cell.width,w=this.dimensions.css.cell.width*(M-L);return H+w>this.dimensions.css.canvas.width&&(w=this.dimensions.css.canvas.width-H),P.style.height=B*this.dimensions.css.cell.height+"px",P.style.top=y*this.dimensions.css.cell.height+"px",P.style.left=`${H}px`,P.style.width=`${w}px`,P}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let y of this._rowElements)y.replaceChildren()}renderRows(y,L){let M=this._bufferService.buffer,B=M.ybase+M.y,P=Math.min(M.x,this._bufferService.cols-1),H=this._optionsService.rawOptions.cursorBlink,w=this._optionsService.rawOptions.cursorStyle,R=this._optionsService.rawOptions.cursorInactiveStyle;for(let O=y;O<=L;O++){let F=O+M.ydisp,z=this._rowElements[O],j=M.lines.get(F);if(!z||!j)break;z.replaceChildren(...this._rowFactory.createRow(j,F,F===B,w,R,P,H,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${m}${this._terminalClass}`}_handleLinkHover(y){this._setCellUnderline(y.x1,y.x2,y.y1,y.y2,y.cols,!0)}_handleLinkLeave(y){this._setCellUnderline(y.x1,y.x2,y.y1,y.y2,y.cols,!1)}_setCellUnderline(y,L,M,B,P,H){M<0&&(y=0),B<0&&(L=0);let w=this._bufferService.rows-1;M=Math.max(Math.min(M,w),0),B=Math.max(Math.min(B,w),0),P=Math.min(P,this._bufferService.cols);let R=this._bufferService.buffer,O=R.ybase+R.y,F=Math.min(R.x,P-1),z=this._optionsService.rawOptions.cursorBlink,j=this._optionsService.rawOptions.cursorStyle,X=this._optionsService.rawOptions.cursorInactiveStyle;for(let K=M;K<=B;++K){let W=K+R.ydisp,$=this._rowElements[K],I=R.lines.get(W);if(!$||!I)break;$.replaceChildren(...this._rowFactory.createRow(I,W,W===O,j,X,F,z,this.dimensions.css.cell.width,this._widthCache,H?K===M?y:0:-1,H?(K===B?L:P)-1:-1))}}};t.DomRenderer=x=l([u(7,h.IInstantiationService),u(8,e.ICharSizeService),u(9,h.IOptionsService),u(10,h.IBufferService),u(11,e.ICoreBrowserService),u(12,e.IThemeService)],x)},3787:function(A,t,a){var l=this&&this.__decorate||function(d,c,v,C){var k,D=arguments.length,x=D<3?c:C===null?C=Object.getOwnPropertyDescriptor(c,v):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(d,c,v,C);else for(var y=d.length-1;y>=0;y--)(k=d[y])&&(x=(D<3?k(x):D>3?k(c,v,x):k(c,v))||x);return D>3&&x&&Object.defineProperty(c,v,x),x},u=this&&this.__param||function(d,c){return function(v,C){c(v,C,d)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=void 0;let n=a(2223),f=a(643),p=a(511),S=a(2585),r=a(8055),e=a(4725),o=a(4269),s=a(6171),i=a(3734),h=t.DomRendererRowFactory=class{constructor(d,c,v,C,k,D,x){this._document=d,this._characterJoinerService=c,this._optionsService=v,this._coreBrowserService=C,this._coreService=k,this._decorationService=D,this._themeService=x,this._workCell=new p.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(d,c,v){this._selectionStart=d,this._selectionEnd=c,this._columnSelectMode=v}createRow(d,c,v,C,k,D,x,y,L,M,B){let P=[],H=this._characterJoinerService.getJoinedCharacters(c),w=this._themeService.colors,R,O=d.getNoBgTrimmedLength();v&&O0&&Q===H[0][0]){re=!0;let Z=H.shift();J=new o.JoinedCellData(this._workCell,d.translateToString(!0,Z[0],Z[1]),Z[1]-Z[0]),he=Z[1]-1,Y=J.getWidth()}let Ce=this._isCellInSelection(Q,c),Re=v&&Q===D,se=G&&Q>=M&&Q<=B,ee=!1;this._decorationService.forEachDecorationAtCell(Q,c,void 0,(Z=>{ee=!0}));let te=J.getChars()||f.WHITESPACE_CELL_CHAR;if(te===" "&&(J.isUnderline()||J.isOverline())&&(te="\xA0"),U=Y*y-L.get(te,J.isBold(),J.isItalic()),R){if(F&&(Ce&&I||!Ce&&!I&&J.bg===j)&&(Ce&&I&&w.selectionForeground||J.fg===X)&&J.extended.ext===K&&se===W&&U===$&&!Re&&!re&&!ee){J.isInvisible()?z+=f.WHITESPACE_CELL_CHAR:z+=te,F++;continue}F&&(R.textContent=z),R=this._document.createElement("span"),F=0,z=""}else R=this._document.createElement("span");if(j=J.bg,X=J.fg,K=J.extended.ext,W=se,$=U,I=Ce,re&&D>=Q&&D<=he&&(D=Q),!this._coreService.isCursorHidden&&Re&&this._coreService.isCursorInitialized){if(q.push("xterm-cursor"),this._coreBrowserService.isFocused)x&&q.push("xterm-cursor-blink"),q.push(C==="bar"?"xterm-cursor-bar":C==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(k)switch(k){case"outline":q.push("xterm-cursor-outline");break;case"block":q.push("xterm-cursor-block");break;case"bar":q.push("xterm-cursor-bar");break;case"underline":q.push("xterm-cursor-underline")}}if(J.isBold()&&q.push("xterm-bold"),J.isItalic()&&q.push("xterm-italic"),J.isDim()&&q.push("xterm-dim"),z=J.isInvisible()?f.WHITESPACE_CELL_CHAR:J.getChars()||f.WHITESPACE_CELL_CHAR,J.isUnderline()&&(q.push(`xterm-underline-${J.extended.underlineStyle}`),z===" "&&(z="\xA0"),!J.isUnderlineColorDefault()))if(J.isUnderlineColorRGB())R.style.textDecorationColor=`rgb(${i.AttributeData.toColorRGB(J.getUnderlineColor()).join(",")})`;else{let Z=J.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&J.isBold()&&Z<8&&(Z+=8),R.style.textDecorationColor=w.ansi[Z].css}J.isOverline()&&(q.push("xterm-overline"),z===" "&&(z="\xA0")),J.isStrikethrough()&&q.push("xterm-strikethrough"),se&&(R.style.textDecoration="underline");let V=J.getFgColor(),ie=J.getFgColorMode(),ae=J.getBgColor(),oe=J.getBgColorMode(),Le=!!J.isInverse();if(Le){let Z=V;V=ae,ae=Z;let Oe=ie;ie=oe,oe=Oe}let ue,_e,le,ne=!1;switch(this._decorationService.forEachDecorationAtCell(Q,c,void 0,(Z=>{Z.options.layer!=="top"&&ne||(Z.backgroundColorRGB&&(oe=50331648,ae=Z.backgroundColorRGB.rgba>>8&16777215,ue=Z.backgroundColorRGB),Z.foregroundColorRGB&&(ie=50331648,V=Z.foregroundColorRGB.rgba>>8&16777215,_e=Z.foregroundColorRGB),ne=Z.options.layer==="top")})),!ne&&Ce&&(ue=this._coreBrowserService.isFocused?w.selectionBackgroundOpaque:w.selectionInactiveBackgroundOpaque,ae=ue.rgba>>8&16777215,oe=50331648,ne=!0,w.selectionForeground&&(ie=50331648,V=w.selectionForeground.rgba>>8&16777215,_e=w.selectionForeground)),ne&&q.push("xterm-decoration-top"),oe){case 16777216:case 33554432:le=w.ansi[ae],q.push(`xterm-bg-${ae}`);break;case 50331648:le=r.channels.toColor(ae>>16,ae>>8&255,255&ae),this._addStyle(R,`background-color:#${m((ae>>>0).toString(16),"0",6)}`);break;default:Le?(le=w.foreground,q.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):le=w.background}switch(ue||J.isDim()&&(ue=r.color.multiplyOpacity(le,.5)),ie){case 16777216:case 33554432:J.isBold()&&V<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(V+=8),this._applyMinimumContrast(R,le,w.ansi[V],J,ue,void 0)||q.push(`xterm-fg-${V}`);break;case 50331648:let Z=r.channels.toColor(V>>16&255,V>>8&255,255&V);this._applyMinimumContrast(R,le,Z,J,ue,_e)||this._addStyle(R,`color:#${m(V.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(R,le,w.foreground,J,ue,_e)||Le&&q.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}q.length&&(q.length=(R.className=q.join(" "),0)),Re||re||ee?R.textContent=z:F++,U!==this.defaultSpacing&&(R.style.letterSpacing=`${U}px`),P.push(R),Q=he}return R&&F&&(R.textContent=z),P}_applyMinimumContrast(d,c,v,C,k,D){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,s.treatGlyphAsBackgroundColor)(C.getCode()))return!1;let x=this._getContrastCache(C),y;if(k||D||(y=x.getColor(c.rgba,v.rgba)),y===void 0){let L=this._optionsService.rawOptions.minimumContrastRatio/(C.isDim()?2:1);y=r.color.ensureContrastRatio(k||c,D||v,L),x.setColor((k||c).rgba,(D||v).rgba,y??null)}return!!y&&(this._addStyle(d,`color:${y.css}`),!0)}_getContrastCache(d){return d.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(d,c){d.setAttribute("style",`${d.getAttribute("style")||""}${c};`)}_isCellInSelection(d,c){let v=this._selectionStart,C=this._selectionEnd;return!(!v||!C)&&(this._columnSelectMode?v[0]<=C[0]?d>=v[0]&&c>=v[1]&&d=v[1]&&d>=C[0]&&c<=C[1]:c>v[1]&&c=v[0]&&d=v[0])}};function m(d,c,v){for(;d.length{Object.defineProperty(t,"__esModule",{value:!0}),t.WidthCache=void 0,t.WidthCache=class{constructor(a,l){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=a.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let u=a.createElement("span");u.classList.add("xterm-char-measure-element");let n=a.createElement("span");n.classList.add("xterm-char-measure-element"),n.style.fontWeight="bold";let f=a.createElement("span");f.classList.add("xterm-char-measure-element"),f.style.fontStyle="italic";let p=a.createElement("span");p.classList.add("xterm-char-measure-element"),p.style.fontWeight="bold",p.style.fontStyle="italic",this._measureElements=[u,n,f,p],this._container.appendChild(u),this._container.appendChild(n),this._container.appendChild(f),this._container.appendChild(p),l.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(a,l,u,n){a===this._font&&l===this._fontSize&&u===this._weight&&n===this._weightBold||(this._font=a,this._fontSize=l,this._weight=u,this._weightBold=n,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${u}`,this._measureElements[1].style.fontWeight=`${n}`,this._measureElements[2].style.fontWeight=`${u}`,this._measureElements[3].style.fontWeight=`${n}`,this.clear())}get(a,l,u){let n=0;if(!l&&!u&&a.length===1&&(n=a.charCodeAt(0))<256){if(this._flat[n]!==-9999)return this._flat[n];let S=this._measure(a,0);return S>0&&(this._flat[n]=S),S}let f=a;l&&(f+="B"),u&&(f+="I");let p=this._holey.get(f);if(p===void 0){let S=0;l&&(S|=1),u&&(S|=2),p=this._measure(a,S),p>0&&this._holey.set(f,p)}return p}_measure(a,l){let u=this._measureElements[l];return u.textContent=a.repeat(32),u.offsetWidth/32}}},2223:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;let l=a(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=l.isFirefox||l.isLegacyEdge?"bottom":"ideographic"},6171:(A,t)=>{function a(u){return 57508<=u&&u<=57558}function l(u){return u>=128512&&u<=128591||u>=127744&&u<=128511||u>=128640&&u<=128767||u>=9728&&u<=9983||u>=9984&&u<=10175||u>=65024&&u<=65039||u>=129280&&u<=129535||u>=127462&&u<=127487}Object.defineProperty(t,"__esModule",{value:!0}),t.computeNextVariantOffset=t.createRenderDimensions=t.treatGlyphAsBackgroundColor=t.allowRescaling=t.isEmoji=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(u){if(!u)throw Error("value must not be falsy");return u},t.isPowerlineGlyph=a,t.isRestrictedPowerlineGlyph=function(u){return 57520<=u&&u<=57527},t.isEmoji=l,t.allowRescaling=function(u,n,f,p){return n===1&&f>Math.ceil(1.5*p)&&u!==void 0&&u>255&&!l(u)&&!a(u)&&!(function(S){return 57344<=S&&S<=63743})(u)},t.treatGlyphAsBackgroundColor=function(u){return a(u)||(function(n){return 9472<=n&&n<=9631})(u)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},t.computeNextVariantOffset=function(u,n,f=0){return(u-(2*Math.round(n)-f))%(2*Math.round(n))}},6052:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectionRenderModel=void 0;class a{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(u,n,f,p=!1){if(this.selectionStart=n,this.selectionEnd=f,!n||!f||n[0]===f[0]&&n[1]===f[1])return void this.clear();let S=u.buffers.active.ydisp,r=n[1]-S,e=f[1]-S,o=Math.max(r,0),s=Math.min(e,u.rows-1);o>=u.rows||s<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=p,this.viewportStartRow=r,this.viewportEndRow=e,this.viewportCappedStartRow=o,this.viewportCappedEndRow=s,this.startCol=n[0],this.endCol=f[0])}isCellSelected(u,n,f){return!!this.hasSelection&&(f-=u.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?n>=this.startCol&&f>=this.viewportCappedStartRow&&n=this.viewportCappedStartRow&&n>=this.endCol&&f<=this.viewportCappedEndRow:f>this.viewportStartRow&&f=this.startCol&&n=this.startCol)}}t.createSelectionRenderModel=function(){return new a}},456:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(a){this._bufferService=a,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let a=this.selectionStart[0]+this.selectionStartLength;return a>this._bufferService.cols?a%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)-1]:[a%this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)]:[a,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let a=this.selectionStart[0]+this.selectionStartLength;return a>this._bufferService.cols?[a%this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)]:[Math.max(a,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let a=this.selectionStart,l=this.selectionEnd;return!(!a||!l)&&(a[1]>l[1]||a[1]===l[1]&&a[0]>l[0])}handleTrim(a){return this.selectionStart&&(this.selectionStart[1]-=a),this.selectionEnd&&(this.selectionEnd[1]-=a),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(A,t,a){var l=this&&this.__decorate||function(s,i,h,m){var d,c=arguments.length,v=c<3?i:m===null?m=Object.getOwnPropertyDescriptor(i,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,i,h,m);else for(var C=s.length-1;C>=0;C--)(d=s[C])&&(v=(c<3?d(v):c>3?d(i,h,v):d(i,h))||v);return c>3&&v&&Object.defineProperty(i,h,v),v},u=this&&this.__param||function(s,i){return function(h,m){i(h,m,s)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;let n=a(2585),f=a(8460),p=a(844),S=t.CharSizeService=class extends p.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(s,i,h){super(),this._optionsService=h,this.width=0,this.height=0,this._onCharSizeChange=this.register(new f.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new o(this._optionsService))}catch{this._measureStrategy=this.register(new e(s,i,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){let s=this._measureStrategy.measure();s.width===this.width&&s.height===this.height||(this.width=s.width,this.height=s.height,this._onCharSizeChange.fire())}};t.CharSizeService=S=l([u(2,n.IOptionsService)],S);class r extends p.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(i,h){i!==void 0&&i>0&&h!==void 0&&h>0&&(this._result.width=i,this._result.height=h)}}class e extends r{constructor(i,h,m){super(),this._document=i,this._parentElement=h,this._optionsService=m,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class o extends r{constructor(i){super(),this._optionsService=i,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");let h=this._ctx.measureText("W");if(!("width"in h&&"fontBoundingBoxAscent"in h&&"fontBoundingBoxDescent"in h))throw Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let i=this._ctx.measureText("W");return this._validateAndSet(i.width,i.fontBoundingBoxAscent+i.fontBoundingBoxDescent),this._result}}},4269:function(A,t,a){var l=this&&this.__decorate||function(o,s,i,h){var m,d=arguments.length,c=d<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,i):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(o,s,i,h);else for(var v=o.length-1;v>=0;v--)(m=o[v])&&(c=(d<3?m(c):d>3?m(s,i,c):m(s,i))||c);return d>3&&c&&Object.defineProperty(s,i,c),c},u=this&&this.__param||function(o,s){return function(i,h){s(i,h,o)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;let n=a(3734),f=a(643),p=a(511),S=a(2585);class r extends n.AttributeData{constructor(s,i,h){super(),this.content=0,this.combinedData="",this.fg=s.fg,this.bg=s.bg,this.combinedData=i,this._width=h}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(s){throw Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=r;let e=t.CharacterJoinerService=class wi{constructor(s){this._bufferService=s,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}register(s){let i={id:this._nextCharacterJoinerId++,handler:s};return this._characterJoiners.push(i),i.id}deregister(s){for(let i=0;i1){let x=this._getJoinedRanges(m,v,c,i,d);for(let y=0;y1){let D=this._getJoinedRanges(m,v,c,i,d);for(let x=0;x{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;let l=a(844),u=a(8460),n=a(3656);class f extends l.Disposable{constructor(r,e,o){super(),this._textarea=r,this._window=e,this.mainDocument=o,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new p(this._window),this._onDprChange=this.register(new u.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new u.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((s=>this._screenDprMonitor.setWindow(s)))),this.register((0,u.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get window(){return this._window}set window(r){this._window!==r&&(this._window=r,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}t.CoreBrowserService=f;class p extends l.Disposable{constructor(r){super(),this._parentWindow=r,this._windowResizeListener=this.register(new l.MutableDisposable),this._onDprChange=this.register(new u.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,l.toDisposable)((()=>this.clearListener())))}setWindow(r){this._parentWindow=r,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,n.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var r;this._outerListener&&((r=this._resolutionMediaMatchList)==null||r.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkProviderService=void 0;let l=a(844);class u extends l.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,l.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(f){return this.linkProviders.push(f),{dispose:()=>{let p=this.linkProviders.indexOf(f);p!==-1&&this.linkProviders.splice(p,1)}}}}t.LinkProviderService=u},8934:function(A,t,a){var l=this&&this.__decorate||function(S,r,e,o){var s,i=arguments.length,h=i<3?r:o===null?o=Object.getOwnPropertyDescriptor(r,e):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(S,r,e,o);else for(var m=S.length-1;m>=0;m--)(s=S[m])&&(h=(i<3?s(h):i>3?s(r,e,h):s(r,e))||h);return i>3&&h&&Object.defineProperty(r,e,h),h},u=this&&this.__param||function(S,r){return function(e,o){r(e,o,S)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;let n=a(4725),f=a(9806),p=t.MouseService=class{constructor(S,r){this._renderService=S,this._charSizeService=r}getCoords(S,r,e,o,s){return(0,f.getCoords)(window,S,r,e,o,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,s)}getMouseReportCoords(S,r){let e=(0,f.getCoordsRelativeToElement)(window,S,r);if(this._charSizeService.hasValidSize)return e[0]=Math.min(Math.max(e[0],0),this._renderService.dimensions.css.canvas.width-1),e[1]=Math.min(Math.max(e[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(e[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(e[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(e[0]),y:Math.floor(e[1])}}};t.MouseService=p=l([u(0,n.IRenderService),u(1,n.ICharSizeService)],p)},3230:function(A,t,a){var l=this&&this.__decorate||function(s,i,h,m){var d,c=arguments.length,v=c<3?i:m===null?m=Object.getOwnPropertyDescriptor(i,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,i,h,m);else for(var C=s.length-1;C>=0;C--)(d=s[C])&&(v=(c<3?d(v):c>3?d(i,h,v):d(i,h))||v);return c>3&&v&&Object.defineProperty(i,h,v),v},u=this&&this.__param||function(s,i){return function(h,m){i(h,m,s)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;let n=a(6193),f=a(4725),p=a(8460),S=a(844),r=a(7226),e=a(2585),o=t.RenderService=class extends S.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(s,i,h,m,d,c,v,C){super(),this._rowCount=s,this._charSizeService=m,this._renderer=this.register(new S.MutableDisposable),this._pausedResizeTask=new r.DebouncedIdleTask,this._observerDisposable=this.register(new S.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new p.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new p.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new p.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new p.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new n.RenderDebouncer(((k,D)=>this._renderRows(k,D)),v),this.register(this._renderDebouncer),this.register(v.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(c.onResize((()=>this._fullRefresh()))),this.register(c.buffers.onBufferActivate((()=>{var k;return(k=this._renderer.value)==null?void 0:k.clear()}))),this.register(h.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(d.onDecorationRegistered((()=>this._fullRefresh()))),this.register(d.onDecorationRemoved((()=>this._fullRefresh()))),this.register(h.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(c.cols,c.rows),this._fullRefresh()}))),this.register(h.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(c.buffer.y,c.buffer.y,!0)))),this.register(C.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(v.window,i),this.register(v.onWindowChange((k=>this._registerIntersectionObserver(k,i))))}_registerIntersectionObserver(s,i){if("IntersectionObserver"in s){let h=new s.IntersectionObserver((m=>this._handleIntersectionChange(m[m.length-1])),{threshold:0});h.observe(i),this._observerDisposable.value=(0,S.toDisposable)((()=>h.disconnect()))}}_handleIntersectionChange(s){this._isPaused=s.isIntersecting===void 0?s.intersectionRatio===0:!s.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(s,i,h=!1){this._isPaused?this._needsFullRefresh=!0:(h||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(s,i,this._rowCount))}_renderRows(s,i){this._renderer.value&&(s=Math.min(s,this._rowCount-1),i=Math.min(i,this._rowCount-1),this._renderer.value.renderRows(s,i),this._needsSelectionRefresh&&(this._needsSelectionRefresh=(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),!1)),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:s,end:i}),this._onRender.fire({start:s,end:i}),this._isNextRenderRedrawOnly=!0)}resize(s,i){this._rowCount=i,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(s){this._renderer.value=s,this._renderer.value&&(this._renderer.value.onRequestRedraw((i=>this.refreshRows(i.start,i.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(s){return this._renderDebouncer.addRefreshCallback(s)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var s,i;this._renderer.value&&((i=(s=this._renderer.value).clearTextureAtlas)==null||i.call(s),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(s,i){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var h;return(h=this._renderer.value)==null?void 0:h.handleResize(s,i)})):this._renderer.value.handleResize(s,i),this._fullRefresh())}handleCharSizeChanged(){var s;(s=this._renderer.value)==null||s.handleCharSizeChanged()}handleBlur(){var s;(s=this._renderer.value)==null||s.handleBlur()}handleFocus(){var s;(s=this._renderer.value)==null||s.handleFocus()}handleSelectionChanged(s,i,h){var m;this._selectionState.start=s,this._selectionState.end=i,this._selectionState.columnSelectMode=h,(m=this._renderer.value)==null||m.handleSelectionChanged(s,i,h)}handleCursorMove(){var s;(s=this._renderer.value)==null||s.handleCursorMove()}clear(){var s;(s=this._renderer.value)==null||s.clear()}};t.RenderService=o=l([u(2,e.IOptionsService),u(3,f.ICharSizeService),u(4,e.IDecorationService),u(5,e.IBufferService),u(6,f.ICoreBrowserService),u(7,f.IThemeService)],o)},9312:function(A,t,a){var l=this&&this.__decorate||function(c,v,C,k){var D,x=arguments.length,y=x<3?v:k===null?k=Object.getOwnPropertyDescriptor(v,C):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(c,v,C,k);else for(var L=c.length-1;L>=0;L--)(D=c[L])&&(y=(x<3?D(y):x>3?D(v,C,y):D(v,C))||y);return x>3&&y&&Object.defineProperty(v,C,y),y},u=this&&this.__param||function(c,v){return function(C,k){v(C,k,c)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;let n=a(9806),f=a(9504),p=a(456),S=a(4725),r=a(8460),e=a(844),o=a(6114),s=a(4841),i=a(511),h=a(2585),m=RegExp("\xA0","g"),d=t.SelectionService=class extends e.Disposable{constructor(c,v,C,k,D,x,y,L,M){super(),this._element=c,this._screenElement=v,this._linkifier=C,this._bufferService=k,this._coreService=D,this._mouseService=x,this._optionsService=y,this._renderService=L,this._coreBrowserService=M,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new i.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new r.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new r.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new r.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new r.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=B=>this._handleMouseMove(B),this._mouseUpListener=B=>this._handleMouseUp(B),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((B=>this._handleTrim(B))),this.register(this._bufferService.buffers.onBufferActivate((B=>this._handleBufferActivate(B)))),this.enable(),this._model=new p.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,e.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let c=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;return!(!c||!v||c[0]===v[0]&&c[1]===v[1])}get selectionText(){let c=this._model.finalSelectionStart,v=this._model.finalSelectionEnd;if(!c||!v)return"";let C=this._bufferService.buffer,k=[];if(this._activeSelectionMode===3){if(c[0]===v[0])return"";let D=c[0]D.replace(m," "))).join(o.isWindows?`\r +`:` +`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(c){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),o.isLinux&&c&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(c){let v=this._getMouseBufferCoords(c),C=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;return!!(C&&k&&v)&&this._areCoordsInSelection(v,C,k)}isCellInSelection(c,v){let C=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;return!(!C||!k)&&this._areCoordsInSelection([c,v],C,k)}_areCoordsInSelection(c,v,C){return c[1]>v[1]&&c[1]=v[0]&&c[0]=v[0]}_selectWordAtCursor(c,v){var D,x;let C=(x=(D=this._linkifier.currentLink)==null?void 0:D.link)==null?void 0:x.range;if(C)return this._model.selectionStart=[C.start.x-1,C.start.y-1],this._model.selectionStartLength=(0,s.getRangeLength)(C,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let k=this._getMouseBufferCoords(c);return!!k&&(this._selectWordAt(k,v),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(c,v){this._model.clearSelection(),c=Math.max(c,0),v=Math.min(v,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,c],this._model.selectionEnd=[this._bufferService.cols,v],this.refresh(),this._onSelectionChange.fire()}_handleTrim(c){this._model.handleTrim(c)&&this.refresh()}_getMouseBufferCoords(c){let v=this._mouseService.getCoords(c,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(v)return v[0]--,v[1]--,v[1]+=this._bufferService.buffer.ydisp,v}_getMouseEventScrollAmount(c){let v=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,c,this._screenElement)[1],C=this._renderService.dimensions.css.canvas.height;return v>=0&&v<=C?0:(v>C&&(v-=C),v=Math.min(Math.max(v,-50),50),v/=50,v/Math.abs(v)+Math.round(14*v))}shouldForceSelection(c){return o.isMac?c.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:c.shiftKey}handleMouseDown(c){if(this._mouseDownTimeStamp=c.timeStamp,(c.button!==2||!this.hasSelection)&&c.button===0){if(!this._enabled){if(!this.shouldForceSelection(c))return;c.stopPropagation()}c.preventDefault(),this._dragScrollAmount=0,this._enabled&&c.shiftKey?this._handleIncrementalClick(c):c.detail===1?this._handleSingleClick(c):c.detail===2?this._handleDoubleClick(c):c.detail===3&&this._handleTripleClick(c),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(c){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(c))}_handleSingleClick(c){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(c)?3:0,this._model.selectionStart=this._getMouseBufferCoords(c),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let v=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);v&&v.length!==this._model.selectionStart[0]&&v.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(c){this._selectWordAtCursor(c,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(c){let v=this._getMouseBufferCoords(c);v&&(this._activeSelectionMode=2,this._selectLineAt(v[1]))}shouldColumnSelect(c){return c.altKey&&!(o.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(c){if(c.stopImmediatePropagation(),!this._model.selectionStart)return;let v=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(c),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let C=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(c.ydisp+this._bufferService.rows,c.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=c.ydisp),this.refresh()}}_handleMouseUp(c){let v=c.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&v<500&&c.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let C=this._mouseService.getCoords(c,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){let k=(0,f.moveToCellSequence)(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(k,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let c=this._model.finalSelectionStart,v=this._model.finalSelectionEnd,C=!(!c||!v||c[0]===v[0]&&c[1]===v[1]);C?c&&v&&(this._oldSelectionStart&&this._oldSelectionEnd&&c[0]===this._oldSelectionStart[0]&&c[1]===this._oldSelectionStart[1]&&v[0]===this._oldSelectionEnd[0]&&v[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(c,v,C)):this._oldHasSelection&&this._fireOnSelectionChange(c,v,C)}_fireOnSelectionChange(c,v,C){this._oldSelectionStart=c,this._oldSelectionEnd=v,this._oldHasSelection=C,this._onSelectionChange.fire()}_handleBufferActivate(c){this.clearSelection(),this._trimListener.dispose(),this._trimListener=c.activeBuffer.lines.onTrim((v=>this._handleTrim(v)))}_convertViewportColToCharacterIndex(c,v){let C=v;for(let k=0;v>=k;k++){let D=c.loadCell(k,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:D>1&&v!==k&&(C+=D-1)}return C}setSelection(c,v,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[c,v],this._model.selectionStartLength=C,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(c){this._isClickInSelection(c)||(this._selectWordAtCursor(c,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(c,v,C=!0,k=!0){if(c[0]>=this._bufferService.cols)return;let D=this._bufferService.buffer,x=D.lines.get(c[1]);if(!x)return;let y=D.translateBufferLineToString(c[1],!1),L=this._convertViewportColToCharacterIndex(x,c[0]),M=L,B=c[0]-L,P=0,H=0,w=0,R=0;if(y.charAt(L)===" "){for(;L>0&&y.charAt(L-1)===" ";)L--;for(;M1&&(R+=X-1,M+=X-1);z>0&&L>0&&!this._isCharWordSeparator(x.loadCell(z-1,this._workCell));){x.loadCell(z-1,this._workCell);let K=this._workCell.getChars().length;this._workCell.getWidth()===0?(P++,z--):K>1&&(w+=K-1,L-=K-1),L--,z--}for(;j1&&(R+=K-1,M+=K-1),M++,j++}}M++;let O=L+B-P+w,F=Math.min(this._bufferService.cols,M-L+P+H-w-R);if(v||y.slice(L,M).trim()!==""){if(C&&O===0&&x.getCodePoint(0)!==32){let z=D.lines.get(c[1]-1);if(z&&x.isWrapped&&z.getCodePoint(this._bufferService.cols-1)!==32){let j=this._getWordAt([this._bufferService.cols-1,c[1]-1],!1,!0,!1);if(j){let X=this._bufferService.cols-j.start;O-=X,F+=X}}}if(k&&O+F===this._bufferService.cols&&x.getCodePoint(this._bufferService.cols-1)!==32){let z=D.lines.get(c[1]+1);if(z!=null&&z.isWrapped&&z.getCodePoint(0)!==32){let j=this._getWordAt([0,c[1]+1],!1,!1,!0);j&&(F+=j.length)}}return{start:O,length:F}}}_selectWordAt(c,v){let C=this._getWordAt(c,v);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,c[1]--;this._model.selectionStart=[C.start,c[1]],this._model.selectionStartLength=C.length}}_selectToWordAt(c){let v=this._getWordAt(c,!0);if(v){let C=c[1];for(;v.start<0;)v.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;v.start+v.length>this._bufferService.cols;)v.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?v.start:v.start+v.length,C]}}_isCharWordSeparator(c){return c.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(c.getChars())>=0}_selectLineAt(c){let v=this._bufferService.buffer.getWrappedRangeForLine(c),C={start:{x:0,y:v.first},end:{x:this._bufferService.cols-1,y:v.last}};this._model.selectionStart=[0,v.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,s.getRangeLength)(C,this._bufferService.cols)}};t.SelectionService=d=l([u(3,h.IBufferService),u(4,h.ICoreService),u(5,S.IMouseService),u(6,h.IOptionsService),u(7,S.IRenderService),u(8,S.ICoreBrowserService)],d)},4725:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ILinkProviderService=t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;let l=a(8343);t.ICharSizeService=(0,l.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,l.createDecorator)("CoreBrowserService"),t.IMouseService=(0,l.createDecorator)("MouseService"),t.IRenderService=(0,l.createDecorator)("RenderService"),t.ISelectionService=(0,l.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,l.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,l.createDecorator)("ThemeService"),t.ILinkProviderService=(0,l.createDecorator)("LinkProviderService")},6731:function(A,t,a){var l=this&&this.__decorate||function(c,v,C,k){var D,x=arguments.length,y=x<3?v:k===null?k=Object.getOwnPropertyDescriptor(v,C):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(c,v,C,k);else for(var L=c.length-1;L>=0;L--)(D=c[L])&&(y=(x<3?D(y):x>3?D(v,C,y):D(v,C))||y);return x>3&&y&&Object.defineProperty(v,C,y),y},u=this&&this.__param||function(c,v){return function(C,k){v(C,k,c)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;let n=a(7239),f=a(8055),p=a(8460),S=a(844),r=a(2585),e=f.css.toColor("#ffffff"),o=f.css.toColor("#000000"),s=f.css.toColor("#ffffff"),i=f.css.toColor("#000000"),h={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{let c=[f.css.toColor("#2e3436"),f.css.toColor("#cc0000"),f.css.toColor("#4e9a06"),f.css.toColor("#c4a000"),f.css.toColor("#3465a4"),f.css.toColor("#75507b"),f.css.toColor("#06989a"),f.css.toColor("#d3d7cf"),f.css.toColor("#555753"),f.css.toColor("#ef2929"),f.css.toColor("#8ae234"),f.css.toColor("#fce94f"),f.css.toColor("#729fcf"),f.css.toColor("#ad7fa8"),f.css.toColor("#34e2e2"),f.css.toColor("#eeeeec")],v=[0,95,135,175,215,255];for(let C=0;C<216;C++){let k=v[C/36%6|0],D=v[C/6%6|0],x=v[C%6];c.push({css:f.channels.toCss(k,D,x),rgba:f.channels.toRgba(k,D,x)})}for(let C=0;C<24;C++){let k=8+10*C;c.push({css:f.channels.toCss(k,k,k),rgba:f.channels.toRgba(k,k,k)})}return c})());let m=t.ThemeService=class extends S.Disposable{get colors(){return this._colors}constructor(c){super(),this._optionsService=c,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new p.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:e,background:o,cursor:s,cursorAccent:i,selectionForeground:void 0,selectionBackgroundTransparent:h,selectionBackgroundOpaque:f.color.blend(o,h),selectionInactiveBackgroundTransparent:h,selectionInactiveBackgroundOpaque:f.color.blend(o,h),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(c={}){let v=this._colors;if(v.foreground=d(c.foreground,e),v.background=d(c.background,o),v.cursor=d(c.cursor,s),v.cursorAccent=d(c.cursorAccent,i),v.selectionBackgroundTransparent=d(c.selectionBackground,h),v.selectionBackgroundOpaque=f.color.blend(v.background,v.selectionBackgroundTransparent),v.selectionInactiveBackgroundTransparent=d(c.selectionInactiveBackground,v.selectionBackgroundTransparent),v.selectionInactiveBackgroundOpaque=f.color.blend(v.background,v.selectionInactiveBackgroundTransparent),v.selectionForeground=c.selectionForeground?d(c.selectionForeground,f.NULL_COLOR):void 0,v.selectionForeground===f.NULL_COLOR&&(v.selectionForeground=void 0),f.color.isOpaque(v.selectionBackgroundTransparent)&&(v.selectionBackgroundTransparent=f.color.opacity(v.selectionBackgroundTransparent,.3)),f.color.isOpaque(v.selectionInactiveBackgroundTransparent)&&(v.selectionInactiveBackgroundTransparent=f.color.opacity(v.selectionInactiveBackgroundTransparent,.3)),v.ansi=t.DEFAULT_ANSI_COLORS.slice(),v.ansi[0]=d(c.black,t.DEFAULT_ANSI_COLORS[0]),v.ansi[1]=d(c.red,t.DEFAULT_ANSI_COLORS[1]),v.ansi[2]=d(c.green,t.DEFAULT_ANSI_COLORS[2]),v.ansi[3]=d(c.yellow,t.DEFAULT_ANSI_COLORS[3]),v.ansi[4]=d(c.blue,t.DEFAULT_ANSI_COLORS[4]),v.ansi[5]=d(c.magenta,t.DEFAULT_ANSI_COLORS[5]),v.ansi[6]=d(c.cyan,t.DEFAULT_ANSI_COLORS[6]),v.ansi[7]=d(c.white,t.DEFAULT_ANSI_COLORS[7]),v.ansi[8]=d(c.brightBlack,t.DEFAULT_ANSI_COLORS[8]),v.ansi[9]=d(c.brightRed,t.DEFAULT_ANSI_COLORS[9]),v.ansi[10]=d(c.brightGreen,t.DEFAULT_ANSI_COLORS[10]),v.ansi[11]=d(c.brightYellow,t.DEFAULT_ANSI_COLORS[11]),v.ansi[12]=d(c.brightBlue,t.DEFAULT_ANSI_COLORS[12]),v.ansi[13]=d(c.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),v.ansi[14]=d(c.brightCyan,t.DEFAULT_ANSI_COLORS[14]),v.ansi[15]=d(c.brightWhite,t.DEFAULT_ANSI_COLORS[15]),c.extendedAnsi){let C=Math.min(v.ansi.length-16,c.extendedAnsi.length);for(let k=0;k{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;let l=a(8460),u=a(844);class n extends u.Disposable{constructor(p){super(),this._maxLength=p,this.onDeleteEmitter=this.register(new l.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new l.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new l.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(p){if(this._maxLength===p)return;let S=Array(p);for(let r=0;rthis._length)for(let S=this._length;S=p;e--)this._array[this._getCyclicIndex(e+r.length)]=this._array[this._getCyclicIndex(e)];for(let e=0;ethis._maxLength){let e=this._length+r.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=r.length}trimStart(p){p>this._length&&(p=this._length),this._startIndex+=p,this._length-=p,this.onTrimEmitter.fire(p)}shiftElements(p,S,r){if(!(S<=0)){if(p<0||p>=this._length)throw Error("start argument out of range");if(p+r<0)throw Error("Cannot shift elements in list beyond index 0");if(r>0){for(let o=S-1;o>=0;o--)this.set(p+o+r,this.get(p+o));let e=p+S+r-this._length;if(e>0)for(this._length+=e;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function a(l,u=5){if(typeof l!="object")return l;let n=Array.isArray(l)?[]:{};for(let f in l)n[f]=u<=1?l[f]:l[f]&&a(l[f],u-1);return n}},8055:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;let a=0,l=0,u=0,n=0;var f,p,S,r,e;function o(i){let h=i.toString(16);return h.length<2?"0"+h:h}function s(i,h){return i>>0},i.toColor=function(h,m,d,c){return{css:i.toCss(h,m,d,c),rgba:i.toRgba(h,m,d,c)}}})(f||(t.channels=f={})),(function(i){function h(m,d){return n=Math.round(255*d),[a,l,u]=e.toChannels(m.rgba),{css:f.toCss(a,l,u,n),rgba:f.toRgba(a,l,u,n)}}i.blend=function(m,d){if(n=(255&d.rgba)/255,n===1)return{css:d.css,rgba:d.rgba};let c=d.rgba>>24&255,v=d.rgba>>16&255,C=d.rgba>>8&255,k=m.rgba>>24&255,D=m.rgba>>16&255,x=m.rgba>>8&255;return a=k+Math.round((c-k)*n),l=D+Math.round((v-D)*n),u=x+Math.round((C-x)*n),{css:f.toCss(a,l,u),rgba:f.toRgba(a,l,u)}},i.isOpaque=function(m){return(255&m.rgba)==255},i.ensureContrastRatio=function(m,d,c){let v=e.ensureContrastRatio(m.rgba,d.rgba,c);if(v)return f.toColor(v>>24&255,v>>16&255,v>>8&255)},i.opaque=function(m){let d=(255|m.rgba)>>>0;return[a,l,u]=e.toChannels(d),{css:f.toCss(a,l,u),rgba:d}},i.opacity=h,i.multiplyOpacity=function(m,d){return n=255&m.rgba,h(m,n*d/255)},i.toColorRGB=function(m){return[m.rgba>>24&255,m.rgba>>16&255,m.rgba>>8&255]}})(p||(t.color=p={})),(function(i){let h,m;try{let d=document.createElement("canvas");d.width=1,d.height=1;let c=d.getContext("2d",{willReadFrequently:!0});c&&(h=c,h.globalCompositeOperation="copy",m=h.createLinearGradient(0,0,1,1))}catch{}i.toColor=function(d){if(d.match(/#[\da-f]{3,8}/i))switch(d.length){case 4:return a=parseInt(d.slice(1,2).repeat(2),16),l=parseInt(d.slice(2,3).repeat(2),16),u=parseInt(d.slice(3,4).repeat(2),16),f.toColor(a,l,u);case 5:return a=parseInt(d.slice(1,2).repeat(2),16),l=parseInt(d.slice(2,3).repeat(2),16),u=parseInt(d.slice(3,4).repeat(2),16),n=parseInt(d.slice(4,5).repeat(2),16),f.toColor(a,l,u,n);case 7:return{css:d,rgba:(parseInt(d.slice(1),16)<<8|255)>>>0};case 9:return{css:d,rgba:parseInt(d.slice(1),16)>>>0}}let c=d.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(c)return a=parseInt(c[1]),l=parseInt(c[2]),u=parseInt(c[3]),n=Math.round(255*(c[5]===void 0?1:parseFloat(c[5]))),f.toColor(a,l,u,n);if(!h||!m||(h.fillStyle=m,h.fillStyle=d,typeof h.fillStyle!="string")||(h.fillRect(0,0,1,1),[a,l,u,n]=h.getImageData(0,0,1,1).data,n!==255))throw Error("css.toColor: Unsupported css format");return{rgba:f.toRgba(a,l,u,n),css:d}}})(S||(t.css=S={})),(function(i){function h(m,d,c){let v=m/255,C=d/255,k=c/255;return .2126*(v<=.03928?v/12.92:((v+.055)/1.055)**2.4)+.7152*(C<=.03928?C/12.92:((C+.055)/1.055)**2.4)+.0722*(k<=.03928?k/12.92:((k+.055)/1.055)**2.4)}i.relativeLuminance=function(m){return h(m>>16&255,m>>8&255,255&m)},i.relativeLuminance2=h})(r||(t.rgb=r={})),(function(i){function h(d,c,v){let C=d>>24&255,k=d>>16&255,D=d>>8&255,x=c>>24&255,y=c>>16&255,L=c>>8&255,M=s(r.relativeLuminance2(x,y,L),r.relativeLuminance2(C,k,D));for(;M0||y>0||L>0);)x-=Math.max(0,Math.ceil(.1*x)),y-=Math.max(0,Math.ceil(.1*y)),L-=Math.max(0,Math.ceil(.1*L)),M=s(r.relativeLuminance2(x,y,L),r.relativeLuminance2(C,k,D));return(x<<24|y<<16|L<<8|255)>>>0}function m(d,c,v){let C=d>>24&255,k=d>>16&255,D=d>>8&255,x=c>>24&255,y=c>>16&255,L=c>>8&255,M=s(r.relativeLuminance2(x,y,L),r.relativeLuminance2(C,k,D));for(;M>>0}i.blend=function(d,c){if(n=(255&c)/255,n===1)return c;let v=c>>24&255,C=c>>16&255,k=c>>8&255,D=d>>24&255,x=d>>16&255,y=d>>8&255;return a=D+Math.round((v-D)*n),l=x+Math.round((C-x)*n),u=y+Math.round((k-y)*n),f.toRgba(a,l,u)},i.ensureContrastRatio=function(d,c,v){let C=r.relativeLuminance(d>>8),k=r.relativeLuminance(c>>8);if(s(C,k)>8));if(Ls(C,r.relativeLuminance(M>>8))?y:M}return y}let D=m(d,c,v),x=s(C,r.relativeLuminance(D>>8));if(xs(C,r.relativeLuminance(y>>8))?D:y}return D}},i.reduceLuminance=h,i.increaseLuminance=m,i.toChannels=function(d){return[d>>24&255,d>>16&255,d>>8&255,255&d]}})(e||(t.rgba=e={})),t.toPaddedHex=o,t.contrastRatio=s},8969:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;let l=a(844),u=a(2585),n=a(4348),f=a(7866),p=a(744),S=a(7302),r=a(6975),e=a(8460),o=a(1753),s=a(1480),i=a(7994),h=a(9282),m=a(5435),d=a(5981),c=a(2660),v=!1;class C extends l.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new e.EventEmitter),this._onScroll.event((D=>{var x;(x=this._onScrollApi)==null||x.fire(D.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(D){for(let x in D)this.optionsService.options[x]=D[x]}constructor(D){super(),this._windowsWrappingHeuristics=this.register(new l.MutableDisposable),this._onBinary=this.register(new e.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new e.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new e.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new e.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new e.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new e.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new S.OptionsService(D)),this._instantiationService.setService(u.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(p.BufferService)),this._instantiationService.setService(u.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(f.LogService)),this._instantiationService.setService(u.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(r.CoreService)),this._instantiationService.setService(u.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(o.CoreMouseService)),this._instantiationService.setService(u.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(s.UnicodeService)),this._instantiationService.setService(u.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(i.CharsetService),this._instantiationService.setService(u.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(c.OscLinkService),this._instantiationService.setService(u.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new m.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,e.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,e.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,e.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,e.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((x=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((x=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new d.WriteBuffer(((x,y)=>this._inputHandler.parse(x,y)))),this.register((0,e.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(D,x){this._writeBuffer.write(D,x)}writeSync(D,x){this._logService.logLevel<=u.LogLevelEnum.WARN&&!v&&(this._logService.warn("writeSync is unreliable and will be removed soon."),v=!0),this._writeBuffer.writeSync(D,x)}input(D,x=!0){this.coreService.triggerDataEvent(D,x)}resize(D,x){isNaN(D)||isNaN(x)||(D=Math.max(D,p.MINIMUM_COLS),x=Math.max(x,p.MINIMUM_ROWS),this._bufferService.resize(D,x))}scroll(D,x=!1){this._bufferService.scroll(D,x)}scrollLines(D,x,y){this._bufferService.scrollLines(D,x,y)}scrollPages(D){this.scrollLines(D*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(D){let x=D-this._bufferService.buffer.ydisp;x!==0&&this.scrollLines(x)}registerEscHandler(D,x){return this._inputHandler.registerEscHandler(D,x)}registerDcsHandler(D,x){return this._inputHandler.registerDcsHandler(D,x)}registerCsiHandler(D,x){return this._inputHandler.registerCsiHandler(D,x)}registerOscHandler(D,x){return this._inputHandler.registerOscHandler(D,x)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let D=!1,x=this.optionsService.rawOptions.windowsPty;x&&x.buildNumber!==void 0&&x.buildNumber!==void 0?D=x.backend==="conpty"&&x.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(D=!0),D?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let D=[];D.push(this.onLineFeed(h.updateWindowsModeWrappedState.bind(null,this._bufferService))),D.push(this.registerCsiHandler({final:"H"},(()=>((0,h.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,l.toDisposable)((()=>{for(let x of D)x.dispose()}))}}}t.CoreTerminal=C},8460:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.runAndSubscribe=t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=a=>(this._listeners.push(a),{dispose:()=>{if(!this._disposed){for(let l=0;ll.fire(u)))},t.runAndSubscribe=function(a,l){return l(void 0),a((u=>l(u)))}},5435:function(A,t,a){var l=this&&this.__decorate||function(H,w,R,O){var F,z=arguments.length,j=z<3?w:O===null?O=Object.getOwnPropertyDescriptor(w,R):O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(H,w,R,O);else for(var X=H.length-1;X>=0;X--)(F=H[X])&&(j=(z<3?F(j):z>3?F(w,R,j):F(w,R))||j);return z>3&&j&&Object.defineProperty(w,R,j),j},u=this&&this.__param||function(H,w){return function(R,O){w(R,O,H)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;let n=a(2584),f=a(7116),p=a(2015),S=a(844),r=a(482),e=a(8437),o=a(8460),s=a(643),i=a(511),h=a(3734),m=a(2585),d=a(1480),c=a(6242),v=a(6351),C=a(5941),k={"(":0,")":1,"*":2,"+":3,"-":1,".":2},D=131072;function x(H,w){if(H>24)return w.setWinLines||!1;switch(H){case 1:return!!w.restoreWin;case 2:return!!w.minimizeWin;case 3:return!!w.setWinPosition;case 4:return!!w.setWinSizePixels;case 5:return!!w.raiseWin;case 6:return!!w.lowerWin;case 7:return!!w.refreshWin;case 8:return!!w.setWinSizeChars;case 9:return!!w.maximizeWin;case 10:return!!w.fullscreenWin;case 11:return!!w.getWinState;case 13:return!!w.getWinPosition;case 14:return!!w.getWinSizePixels;case 15:return!!w.getScreenSizePixels;case 16:return!!w.getCellSizePixels;case 18:return!!w.getWinSizeChars;case 19:return!!w.getScreenSizeChars;case 20:return!!w.getIconTitle;case 21:return!!w.getWinTitle;case 22:return!!w.pushTitle;case 23:return!!w.popTitle;case 24:return!!w.setWinLines}return!1}var y;(function(H){H[H.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",H[H.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(y||(t.WindowsOptionsReportType=y={}));let L=0;class M extends S.Disposable{getAttrData(){return this._curAttrData}constructor(w,R,O,F,z,j,X,K,W=new p.EscapeSequenceParser){for(let $ in super(),this._bufferService=w,this._charsetService=R,this._coreService=O,this._logService=F,this._optionsService=z,this._oscLinkService=j,this._coreMouseService=X,this._unicodeService=K,this._parser=W,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new r.StringToUtf32,this._utf8Decoder=new r.Utf8ToUtf32,this._workCell=new i.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new o.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new o.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new o.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new o.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new o.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new o.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new o.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new o.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new o.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new o.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new o.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new o.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new o.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new B(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((I=>this._activeBuffer=I.activeBuffer))),this._parser.setCsiHandlerFallback(((I,U)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(I),params:U.toArray()})})),this._parser.setEscHandlerFallback((I=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(I)})})),this._parser.setExecuteHandlerFallback((I=>{this._logService.debug("Unknown EXECUTE code: ",{code:I})})),this._parser.setOscHandlerFallback(((I,U,q)=>{this._logService.debug("Unknown OSC code: ",{identifier:I,action:U,data:q})})),this._parser.setDcsHandlerFallback(((I,U,q)=>{U==="HOOK"&&(q=q.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(I),action:U,payload:q})})),this._parser.setPrintHandler(((I,U,q)=>this.print(I,U,q))),this._parser.registerCsiHandler({final:"@"},(I=>this.insertChars(I))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(I=>this.scrollLeft(I))),this._parser.registerCsiHandler({final:"A"},(I=>this.cursorUp(I))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(I=>this.scrollRight(I))),this._parser.registerCsiHandler({final:"B"},(I=>this.cursorDown(I))),this._parser.registerCsiHandler({final:"C"},(I=>this.cursorForward(I))),this._parser.registerCsiHandler({final:"D"},(I=>this.cursorBackward(I))),this._parser.registerCsiHandler({final:"E"},(I=>this.cursorNextLine(I))),this._parser.registerCsiHandler({final:"F"},(I=>this.cursorPrecedingLine(I))),this._parser.registerCsiHandler({final:"G"},(I=>this.cursorCharAbsolute(I))),this._parser.registerCsiHandler({final:"H"},(I=>this.cursorPosition(I))),this._parser.registerCsiHandler({final:"I"},(I=>this.cursorForwardTab(I))),this._parser.registerCsiHandler({final:"J"},(I=>this.eraseInDisplay(I,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(I=>this.eraseInDisplay(I,!0))),this._parser.registerCsiHandler({final:"K"},(I=>this.eraseInLine(I,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(I=>this.eraseInLine(I,!0))),this._parser.registerCsiHandler({final:"L"},(I=>this.insertLines(I))),this._parser.registerCsiHandler({final:"M"},(I=>this.deleteLines(I))),this._parser.registerCsiHandler({final:"P"},(I=>this.deleteChars(I))),this._parser.registerCsiHandler({final:"S"},(I=>this.scrollUp(I))),this._parser.registerCsiHandler({final:"T"},(I=>this.scrollDown(I))),this._parser.registerCsiHandler({final:"X"},(I=>this.eraseChars(I))),this._parser.registerCsiHandler({final:"Z"},(I=>this.cursorBackwardTab(I))),this._parser.registerCsiHandler({final:"`"},(I=>this.charPosAbsolute(I))),this._parser.registerCsiHandler({final:"a"},(I=>this.hPositionRelative(I))),this._parser.registerCsiHandler({final:"b"},(I=>this.repeatPrecedingCharacter(I))),this._parser.registerCsiHandler({final:"c"},(I=>this.sendDeviceAttributesPrimary(I))),this._parser.registerCsiHandler({prefix:">",final:"c"},(I=>this.sendDeviceAttributesSecondary(I))),this._parser.registerCsiHandler({final:"d"},(I=>this.linePosAbsolute(I))),this._parser.registerCsiHandler({final:"e"},(I=>this.vPositionRelative(I))),this._parser.registerCsiHandler({final:"f"},(I=>this.hVPosition(I))),this._parser.registerCsiHandler({final:"g"},(I=>this.tabClear(I))),this._parser.registerCsiHandler({final:"h"},(I=>this.setMode(I))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(I=>this.setModePrivate(I))),this._parser.registerCsiHandler({final:"l"},(I=>this.resetMode(I))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(I=>this.resetModePrivate(I))),this._parser.registerCsiHandler({final:"m"},(I=>this.charAttributes(I))),this._parser.registerCsiHandler({final:"n"},(I=>this.deviceStatus(I))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(I=>this.deviceStatusPrivate(I))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(I=>this.softReset(I))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(I=>this.setCursorStyle(I))),this._parser.registerCsiHandler({final:"r"},(I=>this.setScrollRegion(I))),this._parser.registerCsiHandler({final:"s"},(I=>this.saveCursor(I))),this._parser.registerCsiHandler({final:"t"},(I=>this.windowOptions(I))),this._parser.registerCsiHandler({final:"u"},(I=>this.restoreCursor(I))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(I=>this.insertColumns(I))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(I=>this.deleteColumns(I))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(I=>this.selectProtected(I))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(I=>this.requestMode(I,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(I=>this.requestMode(I,!1))),this._parser.setExecuteHandler(n.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(n.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(n.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(n.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(n.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(n.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(n.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(n.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(n.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new c.OscHandler((I=>(this.setTitle(I),this.setIconName(I),!0)))),this._parser.registerOscHandler(1,new c.OscHandler((I=>this.setIconName(I)))),this._parser.registerOscHandler(2,new c.OscHandler((I=>this.setTitle(I)))),this._parser.registerOscHandler(4,new c.OscHandler((I=>this.setOrReportIndexedColor(I)))),this._parser.registerOscHandler(8,new c.OscHandler((I=>this.setHyperlink(I)))),this._parser.registerOscHandler(10,new c.OscHandler((I=>this.setOrReportFgColor(I)))),this._parser.registerOscHandler(11,new c.OscHandler((I=>this.setOrReportBgColor(I)))),this._parser.registerOscHandler(12,new c.OscHandler((I=>this.setOrReportCursorColor(I)))),this._parser.registerOscHandler(104,new c.OscHandler((I=>this.restoreIndexedColor(I)))),this._parser.registerOscHandler(110,new c.OscHandler((I=>this.restoreFgColor(I)))),this._parser.registerOscHandler(111,new c.OscHandler((I=>this.restoreBgColor(I)))),this._parser.registerOscHandler(112,new c.OscHandler((I=>this.restoreCursorColor(I)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset())),f.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:$},(()=>this.selectCharset("("+$))),this._parser.registerEscHandler({intermediates:")",final:$},(()=>this.selectCharset(")"+$))),this._parser.registerEscHandler({intermediates:"*",final:$},(()=>this.selectCharset("*"+$))),this._parser.registerEscHandler({intermediates:"+",final:$},(()=>this.selectCharset("+"+$))),this._parser.registerEscHandler({intermediates:"-",final:$},(()=>this.selectCharset("-"+$))),this._parser.registerEscHandler({intermediates:".",final:$},(()=>this.selectCharset("."+$))),this._parser.registerEscHandler({intermediates:"/",final:$},(()=>this.selectCharset("/"+$)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler(($=>(this._logService.error("Parsing error: ",$),$))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new v.DcsHandler((($,I)=>this.requestStatusString($,I))))}_preserveStack(w,R,O,F){this._parseStack.paused=!0,this._parseStack.cursorStartX=w,this._parseStack.cursorStartY=R,this._parseStack.decodedLength=O,this._parseStack.position=F}_logSlowResolvingAsync(w){this._logService.logLevel<=m.LogLevelEnum.WARN&&Promise.race([w,new Promise(((R,O)=>setTimeout((()=>O("#SLOW_TIMEOUT")),5e3)))]).catch((R=>{if(R!=="#SLOW_TIMEOUT")throw R;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(w,R){let O,F=this._activeBuffer.x,z=this._activeBuffer.y,j=0,X=this._parseStack.paused;if(X){if(O=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,R))return this._logSlowResolvingAsync(O),O;F=this._parseStack.cursorStartX,z=this._parseStack.cursorStartY,this._parseStack.paused=!1,w.length>D&&(j=this._parseStack.position+D)}if(this._logService.logLevel<=m.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof w=="string"?` "${w}"`:` "${Array.prototype.map.call(w,($=>String.fromCharCode($))).join("")}"`),typeof w=="string"?w.split("").map(($=>$.charCodeAt(0))):w),this._parseBuffer.lengthD)for(let $=j;$0&&U.getWidth(this._activeBuffer.x-1)===2&&U.setCellFromCodepoint(this._activeBuffer.x-1,0,1,I);let q=this._parser.precedingJoinState;for(let G=R;GK){if(W){let he=U,J=this._activeBuffer.x-re;for(this._activeBuffer.x=re,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),U=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),re>0&&U instanceof e.BufferLine&&U.copyCellsFrom(he,J,0,re,!1);J=0;)U.setCellFromCodepoint(this._activeBuffer.x++,0,0,I)}else if($&&(U.insertCells(this._activeBuffer.x,z-re,this._activeBuffer.getNullCell(I)),U.getWidth(K-1)===2&&U.setCellFromCodepoint(K-1,s.NULL_CELL_CODE,s.NULL_CELL_WIDTH,I)),U.setCellFromCodepoint(this._activeBuffer.x++,F,z,I),z>0)for(;--z;)U.setCellFromCodepoint(this._activeBuffer.x++,0,0,I)}this._parser.precedingJoinState=q,this._activeBuffer.x0&&U.getWidth(this._activeBuffer.x)===0&&!U.hasContent(this._activeBuffer.x)&&U.setCellFromCodepoint(this._activeBuffer.x,0,1,I),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(w,R){return w.final!=="t"||w.prefix||w.intermediates?this._parser.registerCsiHandler(w,R):this._parser.registerCsiHandler(w,(O=>!x(O.params[0],this._optionsService.rawOptions.windowOptions)||R(O)))}registerDcsHandler(w,R){return this._parser.registerDcsHandler(w,new v.DcsHandler(R))}registerEscHandler(w,R){return this._parser.registerEscHandler(w,R)}registerOscHandler(w,R){return this._parser.registerOscHandler(w,new c.OscHandler(R))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var w;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((w=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&w.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let R=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);R.hasWidth(this._activeBuffer.x)&&!R.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let w=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-w),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(w=this._bufferService.cols-1){this._activeBuffer.x=Math.min(w,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(w,R){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=w,this._activeBuffer.y=this._activeBuffer.scrollTop+R):(this._activeBuffer.x=w,this._activeBuffer.y=R),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(w,R){this._restrictCursor(),this._setCursor(this._activeBuffer.x+w,this._activeBuffer.y+R)}cursorUp(w){let R=this._activeBuffer.y-this._activeBuffer.scrollTop;return R>=0?this._moveCursor(0,-Math.min(R,w.params[0]||1)):this._moveCursor(0,-(w.params[0]||1)),!0}cursorDown(w){let R=this._activeBuffer.scrollBottom-this._activeBuffer.y;return R>=0?this._moveCursor(0,Math.min(R,w.params[0]||1)):this._moveCursor(0,w.params[0]||1),!0}cursorForward(w){return this._moveCursor(w.params[0]||1,0),!0}cursorBackward(w){return this._moveCursor(-(w.params[0]||1),0),!0}cursorNextLine(w){return this.cursorDown(w),this._activeBuffer.x=0,!0}cursorPrecedingLine(w){return this.cursorUp(w),this._activeBuffer.x=0,!0}cursorCharAbsolute(w){return this._setCursor((w.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(w){return this._setCursor(w.length>=2?(w.params[1]||1)-1:0,(w.params[0]||1)-1),!0}charPosAbsolute(w){return this._setCursor((w.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(w){return this._moveCursor(w.params[0]||1,0),!0}linePosAbsolute(w){return this._setCursor(this._activeBuffer.x,(w.params[0]||1)-1),!0}vPositionRelative(w){return this._moveCursor(0,w.params[0]||1),!0}hVPosition(w){return this.cursorPosition(w),!0}tabClear(w){let R=w.params[0];return R===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:R===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(w){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let R=w.params[0]||1;for(;R--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(w){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let R=w.params[0]||1;for(;R--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(w){let R=w.params[0];return R===1&&(this._curAttrData.bg|=536870912),R!==2&&R!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(w,R,O,F=!1,z=!1){let j=this._activeBuffer.lines.get(this._activeBuffer.ybase+w);j.replaceCells(R,O,this._activeBuffer.getNullCell(this._eraseAttrData()),z),F&&(j.isWrapped=!1)}_resetBufferLine(w,R=!1){let O=this._activeBuffer.lines.get(this._activeBuffer.ybase+w);O&&(O.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),R),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+w),O.isWrapped=!1)}eraseInDisplay(w,R=!1){let O;switch(this._restrictCursor(this._bufferService.cols),w.params[0]){case 0:for(O=this._activeBuffer.y,this._dirtyRowTracker.markDirty(O),this._eraseInBufferLine(O++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,R);O=this._bufferService.cols&&(this._activeBuffer.lines.get(O+1).isWrapped=!1);O--;)this._resetBufferLine(O,R);this._dirtyRowTracker.markDirty(0);break;case 2:for(O=this._bufferService.rows,this._dirtyRowTracker.markDirty(O-1);O--;)this._resetBufferLine(O,R);this._dirtyRowTracker.markDirty(0);break;case 3:let F=this._activeBuffer.lines.length-this._bufferService.rows;F>0&&(this._activeBuffer.lines.trimStart(F),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-F,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-F,0),this._onScroll.fire(0))}return!0}eraseInLine(w,R=!1){switch(this._restrictCursor(this._bufferService.cols),w.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,R);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,R);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,R)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(w){this._restrictCursor();let R=w.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y65535?2:1}let W=K;for(let $=1;$0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(w){return w.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(w.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(w){return(this._optionsService.rawOptions.termName+"").indexOf(w)===0}setMode(w){for(let R=0;RY?1:2,q=w.params[0];return G=q,Q=R?q===2?4:q===4?U(j.modes.insertMode):q===12?3:q===20?U(I.convertEol):0:q===1?U(O.applicationCursorKeys):q===3?I.windowOptions.setWinLines?K===80?2:K===132?1:0:0:q===6?U(O.origin):q===7?U(O.wraparound):q===8?3:q===9?U(F==="X10"):q===12?U(I.cursorBlink):q===25?U(!j.isCursorHidden):q===45?U(O.reverseWraparound):q===66?U(O.applicationKeypad):q===67?4:q===1e3?U(F==="VT200"):q===1002?U(F==="DRAG"):q===1003?U(F==="ANY"):q===1004?U(O.sendFocus):q===1005?4:q===1006?U(z==="SGR"):q===1015?4:q===1016?U(z==="SGR_PIXELS"):q===1048?1:q===47||q===1047||q===1049?U(W===$):q===2004?U(O.bracketedPasteMode):0,j.triggerDataEvent(`${n.C0.ESC}[${R?"":"?"}${G};${Q}$y`),!0;var G,Q}_updateAttrColor(w,R,O,F,z){return R===2?(w|=50331648,w&=-16777216,w|=h.AttributeData.fromColorRGB([O,F,z])):R===5&&(w&=-50331904,w|=33554432|255&O),w}_extractColor(w,R,O){let F=[0,0,-1,0,0,0],z=0,j=0;do{if(F[j+z]=w.params[R+j],w.hasSubParams(R+j)){let X=w.getSubParams(R+j),K=0;do F[1]===5&&(z=1),F[j+K+1+z]=X[K];while(++K=2||F[1]===2&&j+z>=5)break;F[1]&&(z=1)}while(++j+R5)&&(w=1),R.extended.underlineStyle=w,R.fg|=268435456,w===0&&(R.fg&=-268435457),R.updateExtended()}_processSGR0(w){w.fg=e.DEFAULT_ATTR_DATA.fg,w.bg=e.DEFAULT_ATTR_DATA.bg,w.extended=w.extended.clone(),w.extended.underlineStyle=0,w.extended.underlineColor&=-67108864,w.updateExtended()}charAttributes(w){if(w.length===1&&w.params[0]===0)return this._processSGR0(this._curAttrData),!0;let R=w.length,O,F=this._curAttrData;for(let z=0;z=30&&O<=37?(F.fg&=-50331904,F.fg|=16777216|O-30):O>=40&&O<=47?(F.bg&=-50331904,F.bg|=16777216|O-40):O>=90&&O<=97?(F.fg&=-50331904,F.fg|=16777224|O-90):O>=100&&O<=107?(F.bg&=-50331904,F.bg|=16777224|O-100):O===0?this._processSGR0(F):O===1?F.fg|=134217728:O===3?F.bg|=67108864:O===4?(F.fg|=268435456,this._processUnderline(w.hasSubParams(z)?w.getSubParams(z)[0]:1,F)):O===5?F.fg|=536870912:O===7?F.fg|=67108864:O===8?F.fg|=1073741824:O===9?F.fg|=2147483648:O===2?F.bg|=134217728:O===21?this._processUnderline(2,F):O===22?(F.fg&=-134217729,F.bg&=-134217729):O===23?F.bg&=-67108865:O===24?(F.fg&=-268435457,this._processUnderline(0,F)):O===25?F.fg&=-536870913:O===27?F.fg&=-67108865:O===28?F.fg&=-1073741825:O===29?F.fg&=2147483647:O===39?(F.fg&=-67108864,F.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):O===49?(F.bg&=-67108864,F.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):O===38||O===48||O===58?z+=this._extractColor(w,z,F):O===53?F.bg|=1073741824:O===55?F.bg&=-1073741825:O===59?(F.extended=F.extended.clone(),F.extended.underlineColor=-1,F.updateExtended()):O===100?(F.fg&=-67108864,F.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,F.bg&=-67108864,F.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",O);return!0}deviceStatus(w){switch(w.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:let R=this._activeBuffer.y+1,O=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${R};${O}R`)}return!0}deviceStatusPrivate(w){if(w.params[0]===6){let R=this._activeBuffer.y+1,O=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${R};${O}R`)}return!0}softReset(w){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(w){let R=w.params[0]||1;switch(R){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}let O=R%2==1;return this._optionsService.options.cursorBlink=O,!0}setScrollRegion(w){let R=w.params[0]||1,O;return(w.length<2||(O=w.params[1])>this._bufferService.rows||O===0)&&(O=this._bufferService.rows),O>R&&(this._activeBuffer.scrollTop=R-1,this._activeBuffer.scrollBottom=O-1,this._setCursor(0,0)),!0}windowOptions(w){if(!x(w.params[0],this._optionsService.rawOptions.windowOptions))return!0;let R=w.length>1?w.params[1]:0;switch(w.params[0]){case 14:R!==2&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:R!==0&&R!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),R!==0&&R!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:R!==0&&R!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),R!==0&&R!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(w){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(w){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(w){return this._windowTitle=w,this._onTitleChange.fire(w),!0}setIconName(w){return this._iconName=w,!0}setOrReportIndexedColor(w){let R=[],O=w.split(";");for(;O.length>1;){let F=O.shift(),z=O.shift();if(/^\d+$/.exec(F)){let j=parseInt(F);if(P(j))if(z==="?")R.push({type:0,index:j});else{let X=(0,C.parseColor)(z);X&&R.push({type:1,index:j,color:X})}}}return R.length&&this._onColor.fire(R),!0}setHyperlink(w){let R=w.split(";");return!(R.length<2)&&(R[1]?this._createHyperlink(R[0],R[1]):!R[0]&&this._finishHyperlink())}_createHyperlink(w,R){this._getCurrentLinkId()&&this._finishHyperlink();let O=w.split(":"),F,z=O.findIndex((j=>j.startsWith("id=")));return z!==-1&&(F=O[z].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:F,uri:R}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(w,R){let O=w.split(";");for(let F=0;F=this._specialColors.length);++F,++R)if(O[F]==="?")this._onColor.fire([{type:0,index:this._specialColors[R]}]);else{let z=(0,C.parseColor)(O[F]);z&&this._onColor.fire([{type:1,index:this._specialColors[R],color:z}])}return!0}setOrReportFgColor(w){return this._setOrReportSpecialColor(w,0)}setOrReportBgColor(w){return this._setOrReportSpecialColor(w,1)}setOrReportCursorColor(w){return this._setOrReportSpecialColor(w,2)}restoreIndexedColor(w){if(!w)return this._onColor.fire([{type:2}]),!0;let R=[],O=w.split(";");for(let F=0;F=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let w=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,w,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(w){return this._charsetService.setgLevel(w),!0}screenAlignmentPattern(){let w=new i.CellData;w.content=4194373,w.fg=this._curAttrData.fg,w.bg=this._curAttrData.bg,this._setCursor(0,0);for(let R=0;R(this._coreService.triggerDataEvent(`${n.C0.ESC}${z}${n.C0.ESC}\\`),!0))(w==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:w==='"p'?'P1$r61;1"p':w==="r"?`P1$r${O.scrollTop+1};${O.scrollBottom+1}r`:w==="m"?"P1$r0m":w===" q"?`P1$r${{block:2,underline:4,bar:6}[F.cursorStyle]-(F.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(w,R){this._dirtyRowTracker.markRangeDirty(w,R)}}t.InputHandler=M;let B=class{constructor(H){this._bufferService=H,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(H){Hthis.end&&(this.end=H)}markRangeDirty(H,w){H>w&&(L=H,H=w,w=L),Hthis.end&&(this.end=w)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function P(H){return 0<=H&&H<256}B=l([u(0,m.IBufferService)],B)},844:(A,t)=>{function a(l){for(let u of l)u.dispose();l.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(let l of this._disposables)l.dispose();this._disposables.length=0}register(l){return this._disposables.push(l),l}unregister(l){let u=this._disposables.indexOf(l);u!==-1&&this._disposables.splice(u,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(l){var u;this._isDisposed||l===this._value||((u=this._value)==null||u.dispose(),this._value=l)}clear(){this.value=void 0}dispose(){var l;this._isDisposed=!0,(l=this._value)==null||l.dispose(),this._value=void 0}},t.toDisposable=function(l){return{dispose:l}},t.disposeArray=a,t.getDisposeArrayDisposable=function(l){return{dispose:()=>a(l)}}},1505:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class a{constructor(){this._data={}}set(u,n,f){this._data[u]||(this._data[u]={}),this._data[u][n]=f}get(u,n){return this._data[u]?this._data[u][n]:void 0}clear(){this._data={}}}t.TwoKeyMap=a,t.FourKeyMap=class{constructor(){this._data=new a}set(l,u,n,f,p){this._data.get(l,u)||this._data.set(l,u,new a),this._data.get(l,u).set(n,f,p)}get(l,u,n,f){var p;return(p=this._data.get(l,u))==null?void 0:p.get(n,f)}clear(){this._data.clear()}}},6114:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode=typeof process<"u"&&"title"in process;let a=t.isNode?"node":navigator.userAgent,l=t.isNode?"node":navigator.platform;t.isFirefox=a.includes("Firefox"),t.isLegacyEdge=a.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(a),t.getSafariVersion=function(){if(!t.isSafari)return 0;let u=a.match(/Version\/(\d+)/);return u===null||u.length<2?0:parseInt(u[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(l),t.isIpad=l==="iPad",t.isIphone=l==="iPhone",t.isWindows=["Windows","Win16","Win32","WinCE"].includes(l),t.isLinux=l.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(a)},6106:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let a=0;t.SortedList=class{constructor(l){this._getKey=l,this._array=[]}clear(){this._array.length=0}insert(l){this._array.length===0?this._array.push(l):(a=this._search(this._getKey(l)),this._array.splice(a,0,l))}delete(l){if(this._array.length===0)return!1;let u=this._getKey(l);if(u===void 0||(a=this._search(u),a===-1)||this._getKey(this._array[a])!==u)return!1;do if(this._array[a]===l)return this._array.splice(a,1),!0;while(++a=this._array.length)&&this._getKey(this._array[a])===l))do yield this._array[a];while(++a=this._array.length)&&this._getKey(this._array[a])===l))do u(this._array[a]);while(++a=u;){let f=u+n>>1,p=this._getKey(this._array[f]);if(p>l)n=f-1;else{if(!(p0&&this._getKey(this._array[f-1])===l;)f--;return f}u=f+1}}return u}}},7226:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;let l=a(6114);class u{constructor(){this._tasks=[],this._i=0}enqueue(p){this._tasks.push(p),this._start()}flush(){for(;this._io)return e-S<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e-S))}ms`),void this._start();e=o}this.clear()}}class n extends u{_requestCallback(p){return setTimeout((()=>p(this._createDeadline(16))))}_cancelCallback(p){clearTimeout(p)}_createDeadline(p){let S=Date.now()+p;return{timeRemaining:()=>Math.max(0,S-Date.now())}}}t.PriorityTaskQueue=n,t.IdleTaskQueue=!l.isNode&&"requestIdleCallback"in window?class extends u{_requestCallback(f){return requestIdleCallback(f)}_cancelCallback(f){cancelIdleCallback(f)}}:n,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(f){this._queue.clear(),this._queue.enqueue(f)}flush(){this._queue.flush()}}},9282:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;let l=a(643);t.updateWindowsModeWrappedState=function(u){var p;let n=(p=u.buffer.lines.get(u.buffer.ybase+u.buffer.y-1))==null?void 0:p.get(u.cols-1),f=u.buffer.lines.get(u.buffer.ybase+u.buffer.y);f&&n&&(f.isWrapped=n[l.CHAR_DATA_CODE_INDEX]!==l.NULL_CELL_CODE&&n[l.CHAR_DATA_CODE_INDEX]!==l.WHITESPACE_CELL_CODE)}},3734:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class a{constructor(){this.fg=0,this.bg=0,this.extended=new l}static toColorRGB(n){return[n>>>16&255,n>>>8&255,255&n]}static fromColorRGB(n){return(255&n[0])<<16|(255&n[1])<<8|255&n[2]}clone(){let n=new a;return n.fg=this.fg,n.bg=this.bg,n.extended=this.extended.clone(),n}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}t.AttributeData=a;class l{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(n){this._ext=n}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(n){this._ext&=-469762049,this._ext|=n<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(n){this._ext&=-67108864,this._ext|=67108863&n}get urlId(){return this._urlId}set urlId(n){this._urlId=n}get underlineVariantOffset(){let n=(3758096384&this._ext)>>29;return n<0?4294967288^n:n}set underlineVariantOffset(n){this._ext&=536870911,this._ext|=n<<29&3758096384}constructor(n=0,f=0){this._ext=0,this._urlId=0,this._ext=n,this._urlId=f}clone(){return new l(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}t.ExtendedAttrs=l},9092:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;let l=a(6349),u=a(7226),n=a(3734),f=a(8437),p=a(4634),S=a(511),r=a(643),e=a(4863),o=a(7116);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(s,i,h){this._hasScrollback=s,this._optionsService=i,this._bufferService=h,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=f.DEFAULT_ATTR_DATA.clone(),this.savedCharset=o.DEFAULT_CHARSET,this.markers=[],this._nullCell=S.CellData.fromCharData([0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]),this._whitespaceCell=S.CellData.fromCharData([0,r.WHITESPACE_CELL_CHAR,r.WHITESPACE_CELL_WIDTH,r.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new u.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(s){return s?(this._nullCell.fg=s.fg,this._nullCell.bg=s.bg,this._nullCell.extended=s.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(s){return s?(this._whitespaceCell.fg=s.fg,this._whitespaceCell.bg=s.bg,this._whitespaceCell.extended=s.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(s,i){return new f.BufferLine(this._bufferService.cols,this.getNullCell(s),i)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let s=this.ybase+this.y-this.ydisp;return s>=0&&st.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i}fillViewportRows(s){if(this.lines.length===0){s===void 0&&(s=f.DEFAULT_ATTR_DATA);let i=this._rows;for(;i--;)this.lines.push(this.getBlankLine(s))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new l.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(s,i){let h=this.getNullCell(f.DEFAULT_ATTR_DATA),m=0,d=this._getCorrectBufferLength(i);if(d>this.lines.maxLength&&(this.lines.maxLength=d),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+c+1?(this.ybase--,c++,this.ydisp>0&&this.ydisp--):this.lines.push(new f.BufferLine(s,h)));else for(let v=this._rows;v>i;v--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(d0&&(this.lines.trimStart(v),this.ybase=Math.max(this.ybase-v,0),this.ydisp=Math.max(this.ydisp-v,0),this.savedY=Math.max(this.savedY-v,0)),this.lines.maxLength=d}this.x=Math.min(this.x,s-1),this.y=Math.min(this.y,i-1),c&&(this.y+=c),this.savedX=Math.min(this.savedX,s-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(s,i),this._cols>s))for(let c=0;c.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let s=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,s=!1);let i=0;for(;this._memoryCleanupPosition100)return!0;return s}get _isReflowEnabled(){let s=this._optionsService.rawOptions.windowsPty;return s&&s.buildNumber?this._hasScrollback&&s.backend==="conpty"&&s.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(s,i){this._cols!==s&&(s>this._cols?this._reflowLarger(s,i):this._reflowSmaller(s,i))}_reflowLarger(s,i){let h=(0,p.reflowLargerGetLinesToRemove)(this.lines,this._cols,s,this.ybase+this.y,this.getNullCell(f.DEFAULT_ATTR_DATA));if(h.length>0){let m=(0,p.reflowLargerCreateNewLayout)(this.lines,h);(0,p.reflowLargerApplyNewLayout)(this.lines,m.layout),this._reflowLargerAdjustViewport(s,i,m.countRemoved)}}_reflowLargerAdjustViewport(s,i,h){let m=this.getNullCell(f.DEFAULT_ATTR_DATA),d=h;for(;d-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;c--){let v=this.lines.get(c);if(!v||!v.isWrapped&&v.getTrimmedLength()<=s)continue;let C=[v];for(;v.isWrapped&&c>0;)v=this.lines.get(--c),C.unshift(v);let k=this.ybase+this.y;if(k>=c&&k0&&(m.push({start:c+C.length+d,newLines:M}),d+=M.length),C.push(...M);let B=x.length-1,P=x[B];P===0&&(B--,P=x[B]);let H=C.length-y-1,w=D;for(;H>=0;){let O=Math.min(w,P);if(C[B]===void 0)break;if(C[B].copyCellsFrom(C[H],w-O,P-O,O,!0),P-=O,P===0&&(B--,P=x[B]),w-=O,w===0){H--;let F=Math.max(H,0);w=(0,p.getWrappedLineTrimmedLength)(C,F,this._cols)}}for(let O=0;O0;)this.ybase===0?this.y0){let c=[],v=[];for(let B=0;B=0;B--)if(x&&x.start>k+y){for(let P=x.newLines.length-1;P>=0;P--)this.lines.set(B--,x.newLines[P]);B++,c.push({index:k+1,amount:x.newLines.length}),y+=x.newLines.length,x=m[++D]}else this.lines.set(B,v[k--]);let L=0;for(let B=c.length-1;B>=0;B--)c[B].index+=L,this.lines.onInsertEmitter.fire(c[B]),L+=c[B].amount;let M=Math.max(0,C+d-this.lines.maxLength);M>0&&this.lines.onTrimEmitter.fire(M)}}translateBufferLineToString(s,i,h=0,m){let d=this.lines.get(s);return d?d.translateToString(i,h,m):""}getWrappedRangeForLine(s){let i=s,h=s;for(;i>0&&this.lines.get(i).isWrapped;)i--;for(;h+10;);return s>=this._cols?this._cols-1:s<0?0:s}nextStop(s){for(s??(s=this.x);!this.tabs[++s]&&s=this._cols?this._cols-1:s<0?0:s}clearMarkers(s){this._isClearing=!0;for(let i=0;i{i.line-=h,i.line<0&&i.dispose()}))),i.register(this.lines.onInsert((h=>{i.line>=h.index&&(i.line+=h.amount)}))),i.register(this.lines.onDelete((h=>{i.line>=h.index&&i.lineh.index&&(i.line-=h.amount)}))),i.register(i.onDispose((()=>this._removeMarker(i)))),i}_removeMarker(s){this._isClearing||this.markers.splice(this.markers.indexOf(s),1)}}},8437:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;let l=a(3734),u=a(511),n=a(643),f=a(482);t.DEFAULT_ATTR_DATA=Object.freeze(new l.AttributeData);let p=0;class S{constructor(e,o,s=!1){this.isWrapped=s,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);let i=o||u.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let h=0;h>22,2097152&o?this._combined[e].charCodeAt(this._combined[e].length-1):s]}set(e,o){this._data[3*e+1]=o[n.CHAR_DATA_ATTR_INDEX],o[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=o[1],this._data[3*e+0]=2097152|e|o[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=o[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|o[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){let o=this._data[3*e+0];return 2097152&o?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&o}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){let o=this._data[3*e+0];return 2097152&o?this._combined[e]:2097151&o?(0,f.stringFromCodePoint)(2097151&o):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,o){return p=3*e,o.content=this._data[p+0],o.fg=this._data[p+1],o.bg=this._data[p+2],2097152&o.content&&(o.combinedData=this._combined[e]),268435456&o.bg&&(o.extended=this._extendedAttrs[e]),o}setCell(e,o){2097152&o.content&&(this._combined[e]=o.combinedData),268435456&o.bg&&(this._extendedAttrs[e]=o.extended),this._data[3*e+0]=o.content,this._data[3*e+1]=o.fg,this._data[3*e+2]=o.bg}setCellFromCodepoint(e,o,s,i){268435456&i.bg&&(this._extendedAttrs[e]=i.extended),this._data[3*e+0]=o|s<<22,this._data[3*e+1]=i.fg,this._data[3*e+2]=i.bg}addCodepointToCell(e,o,s){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,f.stringFromCodePoint)(o):2097151&i?(this._combined[e]=(0,f.stringFromCodePoint)(2097151&i)+(0,f.stringFromCodePoint)(o),i&=-2097152,i|=2097152):i=o|4194304,s&&(i&=-12582913,i|=s<<22),this._data[3*e+0]=i}insertCells(e,o,s){if((e%=this.length)&&this.getWidth(e-1)===2&&this.setCellFromCodepoint(e-1,0,1,s),o=0;--h)this.setCell(e+o+h,this.loadCell(e+h,i));for(let h=0;hthis.length){if(this._data.buffer.byteLength>=4*s)this._data=new Uint32Array(this._data.buffer,0,s);else{let i=new Uint32Array(s);i.set(this._data),this._data=i}for(let i=this.length;i=e&&delete this._combined[d]}let h=Object.keys(this._extendedAttrs);for(let m=0;m=e&&delete this._extendedAttrs[d]}}return this.length=e,4*s*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,o,s,i,h){let m=e._data;if(h)for(let c=i-1;c>=0;c--){for(let v=0;v<3;v++)this._data[3*(s+c)+v]=m[3*(o+c)+v];268435456&m[3*(o+c)+2]&&(this._extendedAttrs[s+c]=e._extendedAttrs[o+c])}else for(let c=0;c=o&&(this._combined[v-o+s]=e._combined[v])}}translateToString(e,o,s,i){o??(o=0),s??(s=this.length),e&&(s=Math.min(s,this.getTrimmedLength())),i&&(i.length=0);let h="";for(;o>22||1}return i&&i.push(o),h}}t.BufferLine=S},4841:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(a,l){if(a.start.y>a.end.y)throw Error(`Buffer range end (${a.end.x}, ${a.end.y}) cannot be before start (${a.start.x}, ${a.start.y})`);return l*(a.end.y-a.start.y)+(a.end.x-a.start.x+1)}},4634:(A,t)=>{function a(l,u,n){if(u===l.length-1)return l[u].getTrimmedLength();let f=!l[u].hasContent(n-1)&&l[u].getWidth(n-1)===1,p=l[u+1].getWidth(0)===2;return f&&p?n-1:n}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(l,u,n,f,p){let S=[];for(let r=0;r=r&&f0&&(v>i||s[v].getTrimmedLength()===0);v--)c++;c>0&&(S.push(r+s.length-c),S.push(c)),r+=s.length-1}return S},t.reflowLargerCreateNewLayout=function(l,u){let n=[],f=0,p=u[f],S=0;for(let r=0;ra(l,s,u))).reduce(((o,s)=>o+s)),S=0,r=0,e=0;for(;eo&&(S-=o,r++);let s=l[r].getWidth(S-1)===2;s&&S--;let i=s?n-1:n;f.push(i),e+=i}return f},t.getWrappedLineTrimmedLength=a},5295:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;let l=a(8460),u=a(844),n=a(9092);class f extends u.Disposable{constructor(S,r){super(),this._optionsService=S,this._bufferService=r,this._onBufferActivate=this.register(new l.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(S){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(S),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(S,r){this._normal.resize(S,r),this._alt.resize(S,r),this.setupTabStops(S)}setupTabStops(S){this._normal.setupTabStops(S),this._alt.setupTabStops(S)}}t.BufferSet=f},511:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;let l=a(482),u=a(643),n=a(3734);class f extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(S){let r=new f;return r.setFromCharData(S),r}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,l.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(S){this.fg=S[u.CHAR_DATA_ATTR_INDEX],this.bg=0;let r=!1;if(S[u.CHAR_DATA_CHAR_INDEX].length>2)r=!0;else if(S[u.CHAR_DATA_CHAR_INDEX].length===2){let e=S[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){let o=S[u.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=o&&o<=57343?this.content=1024*(e-55296)+o-56320+65536|S[u.CHAR_DATA_WIDTH_INDEX]<<22:r=!0}else r=!0}else this.content=S[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|S[u.CHAR_DATA_WIDTH_INDEX]<<22;r&&(this.combinedData=S[u.CHAR_DATA_CHAR_INDEX],this.content=2097152|S[u.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=f},643:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;let l=a(8460),u=a(844);class n{get id(){return this._id}constructor(p){this.line=p,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new l.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,u.disposeArray)(this._disposables),this._disposables.length=0)}register(p){return this._disposables.push(p),p}}t.Marker=n,n._nextId=1},7116:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},t.CHARSETS.A={"#":"\xA3"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},t.CHARSETS.C=t.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},t.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},t.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},t.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},t.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},t.CHARSETS.E=t.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},t.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},t.CHARSETS.H=t.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},t.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},2584:(A,t)=>{var a,l,u;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,(function(n){n.NUL="\0",n.SOH="",n.STX="",n.ETX="",n.EOT="",n.ENQ="",n.ACK="",n.BEL="\x07",n.BS="\b",n.HT=" ",n.LF=` +`,n.VT="\v",n.FF="\f",n.CR="\r",n.SO="",n.SI="",n.DLE="",n.DC1="",n.DC2="",n.DC3="",n.DC4="",n.NAK="",n.SYN="",n.ETB="",n.CAN="",n.EM="",n.SUB="",n.ESC="\x1B",n.FS="",n.GS="",n.RS="",n.US="",n.SP=" ",n.DEL="\x7F"})(a||(t.C0=a={})),(function(n){n.PAD="\x80",n.HOP="\x81",n.BPH="\x82",n.NBH="\x83",n.IND="\x84",n.NEL="\x85",n.SSA="\x86",n.ESA="\x87",n.HTS="\x88",n.HTJ="\x89",n.VTS="\x8A",n.PLD="\x8B",n.PLU="\x8C",n.RI="\x8D",n.SS2="\x8E",n.SS3="\x8F",n.DCS="\x90",n.PU1="\x91",n.PU2="\x92",n.STS="\x93",n.CCH="\x94",n.MW="\x95",n.SPA="\x96",n.EPA="\x97",n.SOS="\x98",n.SGCI="\x99",n.SCI="\x9A",n.CSI="\x9B",n.ST="\x9C",n.OSC="\x9D",n.PM="\x9E",n.APC="\x9F"})(l||(t.C1=l={})),(function(n){n.ST=`${a.ESC}\\`})(u||(t.C1_ESCAPED=u={}))},7399:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;let l=a(2584),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(n,f,p,S){var o;let r={type:0,cancel:!1,key:void 0},e=(n.shiftKey?1:0)|(n.altKey?2:0)|(n.ctrlKey?4:0)|(n.metaKey?8:0);switch(n.keyCode){case 0:n.key==="UIKeyInputUpArrow"?r.key=f?l.C0.ESC+"OA":l.C0.ESC+"[A":n.key==="UIKeyInputLeftArrow"?r.key=f?l.C0.ESC+"OD":l.C0.ESC+"[D":n.key==="UIKeyInputRightArrow"?r.key=f?l.C0.ESC+"OC":l.C0.ESC+"[C":n.key==="UIKeyInputDownArrow"&&(r.key=f?l.C0.ESC+"OB":l.C0.ESC+"[B");break;case 8:r.key=n.ctrlKey?"\b":l.C0.DEL,n.altKey&&(r.key=l.C0.ESC+r.key);break;case 9:if(n.shiftKey){r.key=l.C0.ESC+"[Z";break}r.key=l.C0.HT,r.cancel=!0;break;case 13:r.key=n.altKey?l.C0.ESC+l.C0.CR:l.C0.CR,r.cancel=!0;break;case 27:r.key=l.C0.ESC,n.altKey&&(r.key=l.C0.ESC+l.C0.ESC),r.cancel=!0;break;case 37:if(n.metaKey)break;e?(r.key=l.C0.ESC+"[1;"+(e+1)+"D",r.key===l.C0.ESC+"[1;3D"&&(r.key=l.C0.ESC+(p?"b":"[1;5D"))):r.key=f?l.C0.ESC+"OD":l.C0.ESC+"[D";break;case 39:if(n.metaKey)break;e?(r.key=l.C0.ESC+"[1;"+(e+1)+"C",r.key===l.C0.ESC+"[1;3C"&&(r.key=l.C0.ESC+(p?"f":"[1;5C"))):r.key=f?l.C0.ESC+"OC":l.C0.ESC+"[C";break;case 38:if(n.metaKey)break;e?(r.key=l.C0.ESC+"[1;"+(e+1)+"A",p||r.key!==l.C0.ESC+"[1;3A"||(r.key=l.C0.ESC+"[1;5A")):r.key=f?l.C0.ESC+"OA":l.C0.ESC+"[A";break;case 40:if(n.metaKey)break;e?(r.key=l.C0.ESC+"[1;"+(e+1)+"B",p||r.key!==l.C0.ESC+"[1;3B"||(r.key=l.C0.ESC+"[1;5B")):r.key=f?l.C0.ESC+"OB":l.C0.ESC+"[B";break;case 45:n.shiftKey||n.ctrlKey||(r.key=l.C0.ESC+"[2~");break;case 46:r.key=e?l.C0.ESC+"[3;"+(e+1)+"~":l.C0.ESC+"[3~";break;case 36:r.key=e?l.C0.ESC+"[1;"+(e+1)+"H":f?l.C0.ESC+"OH":l.C0.ESC+"[H";break;case 35:r.key=e?l.C0.ESC+"[1;"+(e+1)+"F":f?l.C0.ESC+"OF":l.C0.ESC+"[F";break;case 33:n.shiftKey?r.type=2:n.ctrlKey?r.key=l.C0.ESC+"[5;"+(e+1)+"~":r.key=l.C0.ESC+"[5~";break;case 34:n.shiftKey?r.type=3:n.ctrlKey?r.key=l.C0.ESC+"[6;"+(e+1)+"~":r.key=l.C0.ESC+"[6~";break;case 112:r.key=e?l.C0.ESC+"[1;"+(e+1)+"P":l.C0.ESC+"OP";break;case 113:r.key=e?l.C0.ESC+"[1;"+(e+1)+"Q":l.C0.ESC+"OQ";break;case 114:r.key=e?l.C0.ESC+"[1;"+(e+1)+"R":l.C0.ESC+"OR";break;case 115:r.key=e?l.C0.ESC+"[1;"+(e+1)+"S":l.C0.ESC+"OS";break;case 116:r.key=e?l.C0.ESC+"[15;"+(e+1)+"~":l.C0.ESC+"[15~";break;case 117:r.key=e?l.C0.ESC+"[17;"+(e+1)+"~":l.C0.ESC+"[17~";break;case 118:r.key=e?l.C0.ESC+"[18;"+(e+1)+"~":l.C0.ESC+"[18~";break;case 119:r.key=e?l.C0.ESC+"[19;"+(e+1)+"~":l.C0.ESC+"[19~";break;case 120:r.key=e?l.C0.ESC+"[20;"+(e+1)+"~":l.C0.ESC+"[20~";break;case 121:r.key=e?l.C0.ESC+"[21;"+(e+1)+"~":l.C0.ESC+"[21~";break;case 122:r.key=e?l.C0.ESC+"[23;"+(e+1)+"~":l.C0.ESC+"[23~";break;case 123:r.key=e?l.C0.ESC+"[24;"+(e+1)+"~":l.C0.ESC+"[24~";break;default:if(!n.ctrlKey||n.shiftKey||n.altKey||n.metaKey)if(p&&!S||!n.altKey||n.metaKey)!p||n.altKey||n.ctrlKey||n.shiftKey||!n.metaKey?n.key&&!n.ctrlKey&&!n.altKey&&!n.metaKey&&n.keyCode>=48&&n.key.length===1?r.key=n.key:n.key&&n.ctrlKey&&(n.key==="_"&&(r.key=l.C0.US),n.key==="@"&&(r.key=l.C0.NUL)):n.keyCode===65&&(r.type=1);else{let s=(o=u[n.keyCode])==null?void 0:o[n.shiftKey?1:0];if(s)r.key=l.C0.ESC+s;else if(n.keyCode>=65&&n.keyCode<=90){let i=n.ctrlKey?n.keyCode-64:n.keyCode+32,h=String.fromCharCode(i);n.shiftKey&&(h=h.toUpperCase()),r.key=l.C0.ESC+h}else if(n.keyCode===32)r.key=l.C0.ESC+(n.ctrlKey?l.C0.NUL:" ");else if(n.key==="Dead"&&n.code.startsWith("Key")){let i=n.code.slice(3,4);n.shiftKey||(i=i.toLowerCase()),r.key=l.C0.ESC+i,r.cancel=!0}}else n.keyCode>=65&&n.keyCode<=90?r.key=String.fromCharCode(n.keyCode-64):n.keyCode===32?r.key=l.C0.NUL:n.keyCode>=51&&n.keyCode<=55?r.key=String.fromCharCode(n.keyCode-51+27):n.keyCode===56?r.key=l.C0.DEL:n.keyCode===219?r.key=l.C0.ESC:n.keyCode===220?r.key=l.C0.FS:n.keyCode===221&&(r.key=l.C0.GS)}return r}},482:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(a){return a>65535?(a-=65536,String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):String.fromCharCode(a)},t.utf32ToString=function(a,l=0,u=a.length){let n="";for(let f=l;f65535?(p-=65536,n+=String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):n+=String.fromCharCode(p)}return n},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(a,l){let u=a.length;if(!u)return 0;let n=0,f=0;if(this._interim){let p=a.charCodeAt(f++);56320<=p&&p<=57343?l[n++]=1024*(this._interim-55296)+p-56320+65536:(l[n++]=this._interim,l[n++]=p),this._interim=0}for(let p=f;p=u)return this._interim=S,n;let r=a.charCodeAt(p);56320<=r&&r<=57343?l[n++]=1024*(S-55296)+r-56320+65536:(l[n++]=S,l[n++]=r)}else S!==65279&&(l[n++]=S)}return n}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(a,l){let u=a.length;if(!u)return 0;let n,f,p,S,r=0,e=0,o=0;if(this.interim[0]){let h=!1,m=this.interim[0];m&=(224&m)==192?31:(240&m)==224?15:7;let d,c=0;for(;(d=63&this.interim[++c])&&c<4;)m<<=6,m|=d;let v=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,C=v-c;for(;o=u)return 0;if(d=a[o++],(192&d)!=128){o--,h=!0;break}this.interim[c++]=d,m<<=6,m|=63&d}h||(v===2?m<128?o--:l[r++]=m:v===3?m<2048||m>=55296&&m<=57343||m===65279||(l[r++]=m):m<65536||m>1114111||(l[r++]=m)),this.interim.fill(0)}let s=u-4,i=o;for(;i=u)return this.interim[0]=n,r;if(f=a[i++],(192&f)!=128){i--;continue}if(e=(31&n)<<6|63&f,e<128){i--;continue}l[r++]=e}else if((240&n)==224){if(i>=u)return this.interim[0]=n,r;if(f=a[i++],(192&f)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=f,r;if(p=a[i++],(192&p)!=128){i--;continue}if(e=(15&n)<<12|(63&f)<<6|63&p,e<2048||e>=55296&&e<=57343||e===65279)continue;l[r++]=e}else if((248&n)==240){if(i>=u)return this.interim[0]=n,r;if(f=a[i++],(192&f)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=f,r;if(p=a[i++],(192&p)!=128){i--;continue}if(i>=u)return this.interim[0]=n,this.interim[1]=f,this.interim[2]=p,r;if(S=a[i++],(192&S)!=128){i--;continue}if(e=(7&n)<<18|(63&f)<<12|(63&p)<<6|63&S,e<65536||e>1114111)continue;l[r++]=e}}return r}}},225:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;let l=a(1480),u=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],n=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],f;t.UnicodeV6=class{constructor(){if(this.version="6",!f){f=new Uint8Array(65536),f.fill(1),f[0]=0,f.fill(0,1,32),f.fill(0,127,160),f.fill(2,4352,4448),f[9001]=2,f[9002]=2,f.fill(2,11904,42192),f[12351]=1,f.fill(2,44032,55204),f.fill(2,63744,64256),f.fill(2,65040,65050),f.fill(2,65072,65136),f.fill(2,65280,65377),f.fill(2,65504,65511);for(let p=0;pr[s][1])return!1;for(;s>=o;)if(e=o+s>>1,S>r[e][1])o=e+1;else{if(!(S=131072&&p<=196605||p>=196608&&p<=262141?2:1}charProperties(p,S){let r=this.wcwidth(p),e=r===0&&S!==0;if(e){let o=l.UnicodeService.extractWidth(S);o===0?e=!1:o>r&&(r=o)}return l.UnicodeService.createPropertyValue(0,r,e)}}},5981:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;let l=a(8460),u=a(844);class n extends u.Disposable{constructor(p){super(),this._action=p,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(p,S){if(S!==void 0&&this._syncCalls>S)return void(this._syncCalls=0);if(this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let r;for(this._isSyncWriting=!0;r=this._writeBuffer.shift();){this._action(r);let e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(p,S){if(this._pendingData>5e7)throw Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(S),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(S)}_innerWrite(p=0,S=!0){let r=p||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){let e=this._writeBuffer[this._bufferOffset],o=this._action(e,S);if(o){o.catch((i=>(queueMicrotask((()=>{throw i})),Promise.resolve(!1)))).then(i=>Date.now()-r>=12?setTimeout((()=>this._innerWrite(0,i))):this._innerWrite(r,i));return}let s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-r>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=n},5941:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;let a=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,l=/^[\da-f]+$/;function u(n,f){let p=n.toString(16),S=p.length<2?"0"+p:p;switch(f){case 4:return p[0];case 8:return S;case 12:return(S+S).slice(0,3);default:return S+S}}t.parseColor=function(n){if(!n)return;let f=n.toLowerCase();if(f.indexOf("rgb:")===0){f=f.slice(4);let p=a.exec(f);if(p){let S=p[1]?15:p[4]?255:p[7]?4095:65535;return[Math.round(parseInt(p[1]||p[4]||p[7]||p[10],16)/S*255),Math.round(parseInt(p[2]||p[5]||p[8]||p[11],16)/S*255),Math.round(parseInt(p[3]||p[6]||p[9]||p[12],16)/S*255)]}}else if(f.indexOf("#")===0&&(f=f.slice(1),l.exec(f)&&[3,6,9,12].includes(f.length))){let p=f.length/3,S=[0,0,0];for(let r=0;r<3;++r){let e=parseInt(f.slice(p*r,p*r+p),16);S[r]=p===1?e<<4:p===2?e:p===3?e>>4:e>>8}return S}},t.toRgbString=function(n,f=16){let[p,S,r]=n;return`rgb:${u(p,f)}/${u(S,f)}/${u(r,f)}`}},5770:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;let l=a(482),u=a(8742),n=a(5770),f=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=f,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=f}registerHandler(S,r){this._handlers[S]===void 0&&(this._handlers[S]=[]);let e=this._handlers[S];return e.push(r),{dispose:()=>{let o=e.indexOf(r);o!==-1&&e.splice(o,1)}}}clearHandler(S){this._handlers[S]&&delete this._handlers[S]}setHandlerFallback(S){this._handlerFb=S}reset(){if(this._active.length)for(let S=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;S>=0;--S)this._active[S].unhook(!1);this._stack.paused=!1,this._active=f,this._ident=0}hook(S,r){if(this.reset(),this._ident=S,this._active=this._handlers[S]||f,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(r);else this._handlerFb(this._ident,"HOOK",r)}put(S,r,e){if(this._active.length)for(let o=this._active.length-1;o>=0;o--)this._active[o].put(S,r,e);else this._handlerFb(this._ident,"PUT",(0,l.utf32ToString)(S,r,e))}unhook(S,r=!0){if(this._active.length){let e=!1,o=this._active.length-1,s=!1;if(this._stack.paused&&(o=this._stack.loopPosition-1,e=r,s=this._stack.fallThrough,this._stack.paused=!1),!s&&e===!1){for(;o>=0&&(e=this._active[o].unhook(S),e!==!0);o--)if(e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=o,this._stack.fallThrough=!1,e;o--}for(;o>=0;o--)if(e=this._active[o].unhook(!1),e instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=o,this._stack.fallThrough=!0,e}else this._handlerFb(this._ident,"UNHOOK",S);this._active=f,this._ident=0}};let p=new u.Params;p.addParam(0),t.DcsHandler=class{constructor(S){this._handler=S,this._data="",this._params=p,this._hitLimit=!1}hook(S){this._params=S.length>1||S.params[0]?S.clone():p,this._data="",this._hitLimit=!1}put(S,r,e){this._hitLimit||(this._data+=(0,l.utf32ToString)(S,r,e),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(S){let r=!1;if(this._hitLimit)r=!1;else if(S&&(r=this._handler(this._data,this._params),r instanceof Promise))return r.then((e=>(this._params=p,this._data="",this._hitLimit=!1,e)));return this._params=p,this._data="",this._hitLimit=!1,r}}},2015:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;let l=a(844),u=a(8742),n=a(6242),f=a(6351);class p{constructor(e){this.table=new Uint8Array(e)}setDefault(e,o){this.table.fill(e<<4|o)}add(e,o,s,i){this.table[o<<8|e]=s<<4|i}addMany(e,o,s,i){for(let h=0;hc)),o=(d,c)=>e.slice(d,c),s=o(32,127),i=o(0,24);i.push(25),i.push.apply(i,o(28,32));let h=o(0,14),m;for(m in r.setDefault(1,0),r.addMany(s,0,2,0),h)r.addMany([24,26,153,154],m,3,0),r.addMany(o(128,144),m,3,0),r.addMany(o(144,152),m,3,0),r.add(156,m,0,0),r.add(27,m,11,1),r.add(157,m,4,8),r.addMany([152,158,159],m,0,7),r.add(155,m,11,3),r.add(144,m,11,9);return r.addMany(i,0,3,0),r.addMany(i,1,3,1),r.add(127,1,0,1),r.addMany(i,8,0,8),r.addMany(i,3,3,3),r.add(127,3,0,3),r.addMany(i,4,3,4),r.add(127,4,0,4),r.addMany(i,6,3,6),r.addMany(i,5,3,5),r.add(127,5,0,5),r.addMany(i,2,3,2),r.add(127,2,0,2),r.add(93,1,4,8),r.addMany(s,8,5,8),r.add(127,8,5,8),r.addMany([156,27,24,26,7],8,6,0),r.addMany(o(28,32),8,0,8),r.addMany([88,94,95],1,0,7),r.addMany(s,7,0,7),r.addMany(i,7,0,7),r.add(156,7,0,0),r.add(127,7,0,7),r.add(91,1,11,3),r.addMany(o(64,127),3,7,0),r.addMany(o(48,60),3,8,4),r.addMany([60,61,62,63],3,9,4),r.addMany(o(48,60),4,8,4),r.addMany(o(64,127),4,7,0),r.addMany([60,61,62,63],4,0,6),r.addMany(o(32,64),6,0,6),r.add(127,6,0,6),r.addMany(o(64,127),6,0,0),r.addMany(o(32,48),3,9,5),r.addMany(o(32,48),5,9,5),r.addMany(o(48,64),5,0,6),r.addMany(o(64,127),5,7,0),r.addMany(o(32,48),4,9,5),r.addMany(o(32,48),1,9,2),r.addMany(o(32,48),2,9,2),r.addMany(o(48,127),2,10,0),r.addMany(o(48,80),1,10,0),r.addMany(o(81,88),1,10,0),r.addMany([89,90,92],1,10,0),r.addMany(o(96,127),1,10,0),r.add(80,1,11,9),r.addMany(i,9,0,9),r.add(127,9,0,9),r.addMany(o(28,32),9,0,9),r.addMany(o(32,48),9,9,12),r.addMany(o(48,60),9,8,10),r.addMany([60,61,62,63],9,9,10),r.addMany(i,11,0,11),r.addMany(o(32,128),11,0,11),r.addMany(o(28,32),11,0,11),r.addMany(i,10,0,10),r.add(127,10,0,10),r.addMany(o(28,32),10,0,10),r.addMany(o(48,60),10,8,10),r.addMany([60,61,62,63],10,0,11),r.addMany(o(32,48),10,9,12),r.addMany(i,12,0,12),r.add(127,12,0,12),r.addMany(o(28,32),12,0,12),r.addMany(o(32,48),12,9,12),r.addMany(o(48,64),12,0,11),r.addMany(o(64,127),12,12,13),r.addMany(o(64,127),10,12,13),r.addMany(o(64,127),9,12,13),r.addMany(i,13,13,13),r.addMany(s,13,13,13),r.add(127,13,0,13),r.addMany([27,156,24,26],13,14,0),r.add(160,0,2,0),r.add(160,8,5,8),r.add(160,6,0,6),r.add(160,11,0,11),r.add(160,13,13,13),r})();class S extends l.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new u.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(o,s,i)=>{},this._executeHandlerFb=o=>{},this._csiHandlerFb=(o,s)=>{},this._escHandlerFb=o=>{},this._errorHandlerFb=o=>o,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,l.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new f.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(e,o=[64,126]){let s=0;if(e.prefix){if(e.prefix.length>1)throw Error("only one byte as prefix supported");if(s=e.prefix.charCodeAt(0),s&&60>s||s>63)throw Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw Error("only two bytes as intermediates are supported");for(let h=0;hm||m>47)throw Error("intermediate must be in range 0x20 .. 0x2f");s<<=8,s|=m}}if(e.final.length!==1)throw Error("final must be a single byte");let i=e.final.charCodeAt(0);if(o[0]>i||i>o[1])throw Error(`final must be in range ${o[0]} .. ${o[1]}`);return s<<=8,s|=i,s}identToString(e){let o=[];for(;e;)o.push(String.fromCharCode(255&e)),e>>=8;return o.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,o){let s=this._identifier(e,[48,126]);this._escHandlers[s]===void 0&&(this._escHandlers[s]=[]);let i=this._escHandlers[s];return i.push(o),{dispose:()=>{let h=i.indexOf(o);h!==-1&&i.splice(h,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,o){this._executeHandlers[e.charCodeAt(0)]=o}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,o){let s=this._identifier(e);this._csiHandlers[s]===void 0&&(this._csiHandlers[s]=[]);let i=this._csiHandlers[s];return i.push(o),{dispose:()=>{let h=i.indexOf(o);h!==-1&&i.splice(h,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,o){return this._dcsParser.registerHandler(this._identifier(e),o)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,o){return this._oscParser.registerHandler(e,o)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,o,s,i,h){this._parseStack.state=e,this._parseStack.handlers=o,this._parseStack.handlerPos=s,this._parseStack.transition=i,this._parseStack.chunkPos=h}parse(e,o,s){let i,h=0,m=0,d=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,d=this._parseStack.chunkPos+1;else{if(s===void 0||this._parseStack.state===1)throw this._parseStack.state=1,Error("improper continuation due to previous async handler, giving up parsing");let c=this._parseStack.handlers,v=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(s===!1&&v>-1){for(;v>=0&&(i=c[v](this._params),i!==!0);v--)if(i instanceof Promise)return this._parseStack.handlerPos=v,i}this._parseStack.handlers=[];break;case 4:if(s===!1&&v>-1){for(;v>=0&&(i=c[v](),i!==!0);v--)if(i instanceof Promise)return this._parseStack.handlerPos=v,i}this._parseStack.handlers=[];break;case 6:if(h=e[this._parseStack.chunkPos],i=this._dcsParser.unhook(h!==24&&h!==26,s),i)return i;h===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(h=e[this._parseStack.chunkPos],i=this._oscParser.end(h!==24&&h!==26,s),i)return i;h===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,d=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let c=d;c>4){case 2:for(let x=c+1;;++x){if(x>=o||(h=e[x])<32||h>126&&h<160){this._printHandler(e,c,x),c=x-1;break}if(++x>=o||(h=e[x])<32||h>126&&h<160){this._printHandler(e,c,x),c=x-1;break}if(++x>=o||(h=e[x])<32||h>126&&h<160){this._printHandler(e,c,x),c=x-1;break}if(++x>=o||(h=e[x])<32||h>126&&h<160){this._printHandler(e,c,x),c=x-1;break}}break;case 3:this._executeHandlers[h]?this._executeHandlers[h]():this._executeHandlerFb(h),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:c,code:h,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let v=this._csiHandlers[this._collect<<8|h],C=v?v.length-1:-1;for(;C>=0&&(i=v[C](this._params),i!==!0);C--)if(i instanceof Promise)return this._preserveStack(3,v,C,m,c),i;C<0&&this._csiHandlerFb(this._collect<<8|h,this._params),this.precedingJoinState=0;break;case 8:do switch(h){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(h-48)}while(++c47&&h<60);c--;break;case 9:this._collect<<=8,this._collect|=h;break;case 10:let k=this._escHandlers[this._collect<<8|h],D=k?k.length-1:-1;for(;D>=0&&(i=k[D](),i!==!0);D--)if(i instanceof Promise)return this._preserveStack(4,k,D,m,c),i;D<0&&this._escHandlerFb(this._collect<<8|h),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|h,this._params);break;case 13:for(let x=c+1;;++x)if(x>=o||(h=e[x])===24||h===26||h===27||h>127&&h<160){this._dcsParser.put(e,c,x),c=x-1;break}break;case 14:if(i=this._dcsParser.unhook(h!==24&&h!==26),i)return this._preserveStack(6,[],0,m,c),i;h===27&&(m|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let x=c+1;;x++)if(x>=o||(h=e[x])<32||h>127&&h<160){this._oscParser.put(e,c,x),c=x-1;break}break;case 6:if(i=this._oscParser.end(h!==24&&h!==26),i)return this._preserveStack(5,[],0,m,c),i;h===27&&(m|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&m}}}t.EscapeSequenceParser=S},6242:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;let l=a(5770),u=a(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(f,p){this._handlers[f]===void 0&&(this._handlers[f]=[]);let S=this._handlers[f];return S.push(p),{dispose:()=>{let r=S.indexOf(p);r!==-1&&S.splice(r,1)}}}clearHandler(f){this._handlers[f]&&delete this._handlers[f]}setHandlerFallback(f){this._handlerFb=f}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(this._state===2)for(let f=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;f>=0;--f)this._active[f].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].start();else this._handlerFb(this._id,"START")}_put(f,p,S){if(this._active.length)for(let r=this._active.length-1;r>=0;r--)this._active[r].put(f,p,S);else this._handlerFb(this._id,"PUT",(0,u.utf32ToString)(f,p,S))}start(){this.reset(),this._state=1}put(f,p,S){if(this._state!==3){if(this._state===1)for(;p0&&this._put(f,p,S)}}end(f,p=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let S=!1,r=this._active.length-1,e=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,S=p,e=this._stack.fallThrough,this._stack.paused=!1),!e&&S===!1){for(;r>=0&&(S=this._active[r].end(f),S!==!0);r--)if(S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,S;r--}for(;r>=0;r--)if(S=this._active[r].end(!1),S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,S}else this._handlerFb(this._id,"END",f);this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(f){this._handler=f,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(f,p,S){this._hitLimit||(this._data+=(0,u.utf32ToString)(f,p,S),this._data.length>l.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(f){let p=!1;if(this._hitLimit)p=!1;else if(f&&(p=this._handler(this._data),p instanceof Promise))return p.then((S=>(this._data="",this._hitLimit=!1,S)));return this._data="",this._hitLimit=!1,p}}},8742:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;let a=2147483647;class l{static fromArray(n){let f=new l;if(!n.length)return f;for(let p=Array.isArray(n[0])?1:0;p256)throw Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(n),this.length=0,this._subParams=new Int32Array(f),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(n),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){let n=new l(this.maxLength,this.maxSubParamsLength);return n.params.set(this.params),n.length=this.length,n._subParams.set(this._subParams),n._subParamsLength=this._subParamsLength,n._subParamsIdx.set(this._subParamsIdx),n._rejectDigits=this._rejectDigits,n._rejectSubDigits=this._rejectSubDigits,n._digitIsSub=this._digitIsSub,n}toArray(){let n=[];for(let f=0;f>8,S=255&this._subParamsIdx[f];S-p>0&&n.push(Array.prototype.slice.call(this._subParams,p,S))}return n}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(n){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(n<-1)throw Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=n>a?a:n}}addSubParam(n){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(n<-1)throw Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=n>a?a:n,this._subParamsIdx[this.length-1]++}}hasSubParams(n){return(255&this._subParamsIdx[n])-(this._subParamsIdx[n]>>8)>0}getSubParams(n){let f=this._subParamsIdx[n]>>8,p=255&this._subParamsIdx[n];return p-f>0?this._subParams.subarray(f,p):null}getSubParamsAll(){let n={};for(let f=0;f>8,S=255&this._subParamsIdx[f];S-p>0&&(n[f]=this._subParams.slice(p,S))}return n}addDigit(n){let f;if(this._rejectDigits||!(f=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let p=this._digitIsSub?this._subParams:this.params,S=p[f-1];p[f-1]=~S?Math.min(10*S+n,a):n}}t.Params=l},5741:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let a=this._addons.length-1;a>=0;a--)this._addons[a].instance.dispose()}loadAddon(a,l){let u={instance:l,dispose:l.dispose,isDisposed:!1};this._addons.push(u),l.dispose=()=>this._wrappedAddonDispose(u),l.activate(a)}_wrappedAddonDispose(a){if(a.isDisposed)return;let l=-1;for(let u=0;u{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;let l=a(3785),u=a(511);t.BufferApiView=class{constructor(n,f){this._buffer=n,this.type=f}init(n){return this._buffer=n,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(n){let f=this._buffer.lines.get(n);if(f)return new l.BufferLineApiView(f)}getNullCell(){return new u.CellData}}},3785:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;let l=a(511);t.BufferLineApiView=class{constructor(u){this._line=u}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(u,n){if(!(u<0||u>=this._line.length))return n?(this._line.loadCell(u,n),n):this._line.loadCell(u,new l.CellData)}translateToString(u,n,f){return this._line.translateToString(u,n,f)}}},8285:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;let l=a(8771),u=a(8460),n=a(844);class f extends n.Disposable{constructor(S){super(),this._core=S,this._onBufferChange=this.register(new u.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new l.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new l.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}t.BufferNamespaceApi=f},7975:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(a){this._core=a}registerCsiHandler(a,l){return this._core.registerCsiHandler(a,(u=>l(u.toArray())))}addCsiHandler(a,l){return this.registerCsiHandler(a,l)}registerDcsHandler(a,l){return this._core.registerDcsHandler(a,((u,n)=>l(u,n.toArray())))}addDcsHandler(a,l){return this.registerDcsHandler(a,l)}registerEscHandler(a,l){return this._core.registerEscHandler(a,l)}addEscHandler(a,l){return this.registerEscHandler(a,l)}registerOscHandler(a,l){return this._core.registerOscHandler(a,l)}addOscHandler(a,l){return this.registerOscHandler(a,l)}}},7090:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(a){this._core=a}register(a){this._core.unicodeService.register(a)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(a){this._core.unicodeService.activeVersion=a}}},744:function(A,t,a){var l=this&&this.__decorate||function(e,o,s,i){var h,m=arguments.length,d=m<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,s):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,s,i);else for(var c=e.length-1;c>=0;c--)(h=e[c])&&(d=(m<3?h(d):m>3?h(o,s,d):h(o,s))||d);return m>3&&d&&Object.defineProperty(o,s,d),d},u=this&&this.__param||function(e,o){return function(s,i){o(s,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;let n=a(8460),f=a(844),p=a(5295),S=a(2585);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let r=t.BufferService=class extends f.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new p.BufferSet(e,this))}resize(e,o){this.cols=e,this.rows=o,this.buffers.resize(e,o),this._onResize.fire({cols:e,rows:o})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,o=!1){let s=this.buffer,i;i=this._cachedBlankLine,i&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=s.getBlankLine(e,o),this._cachedBlankLine=i),i.isWrapped=o;let h=s.ybase+s.scrollTop,m=s.ybase+s.scrollBottom;if(s.scrollTop===0){let d=s.lines.isFull;m===s.lines.length-1?d?s.lines.recycle().copyFrom(i):s.lines.push(i.clone()):s.lines.splice(m+1,0,i.clone()),d?this.isUserScrolling&&(s.ydisp=Math.max(s.ydisp-1,0)):(s.ybase++,this.isUserScrolling||s.ydisp++)}else{let d=m-h+1;s.lines.shiftElements(h+1,d-1,-1),s.lines.set(m,i.clone())}this.isUserScrolling||(s.ydisp=s.ybase),this._onScroll.fire(s.ydisp)}scrollLines(e,o,s){let i=this.buffer;if(e<0){if(i.ydisp===0)return;this.isUserScrolling=!0}else e+i.ydisp>=i.ybase&&(this.isUserScrolling=!1);let h=i.ydisp;i.ydisp=Math.max(Math.min(i.ydisp+e,i.ybase),0),h!==i.ydisp&&(o||this._onScroll.fire(i.ydisp))}};t.BufferService=r=l([u(0,S.IOptionsService)],r)},7994:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(a){this.glevel=a,this.charset=this._charsets[a]}setgCharset(a,l){this._charsets[a]=l,this.glevel===a&&(this.charset=l)}}},1753:function(A,t,a){var l=this&&this.__decorate||function(i,h,m,d){var c,v=arguments.length,C=v<3?h:d===null?d=Object.getOwnPropertyDescriptor(h,m):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(i,h,m,d);else for(var k=i.length-1;k>=0;k--)(c=i[k])&&(C=(v<3?c(C):v>3?c(h,m,C):c(h,m))||C);return v>3&&C&&Object.defineProperty(h,m,C),C},u=this&&this.__param||function(i,h){return function(m,d){h(m,d,i)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;let n=a(2585),f=a(8460),p=a(844),S={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:i=>i.button!==4&&i.action===1&&(i.ctrl=!1,i.alt=!1,i.shift=!1,!0)},VT200:{events:19,restrict:i=>i.action!==32},DRAG:{events:23,restrict:i=>i.action!==32||i.button!==3},ANY:{events:31,restrict:i=>!0}};function r(i,h){let m=(i.ctrl?16:0)|(i.shift?4:0)|(i.alt?8:0);return i.button===4?(m|=64,m|=i.action):(m|=3&i.button,4&i.button&&(m|=64),8&i.button&&(m|=128),i.action===32?m|=32:i.action!==0||h||(m|=3)),m}let e=String.fromCharCode,o={DEFAULT:i=>{let h=[r(i,!1)+32,i.col+32,i.row+32];return h[0]>255||h[1]>255||h[2]>255?"":`\x1B[M${e(h[0])}${e(h[1])}${e(h[2])}`},SGR:i=>{let h=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${r(i,!0)};${i.col};${i.row}${h}`},SGR_PIXELS:i=>{let h=i.action===0&&i.button!==4?"m":"M";return`\x1B[<${r(i,!0)};${i.x};${i.y}${h}`}},s=t.CoreMouseService=class extends p.Disposable{constructor(i,h){super(),this._bufferService=i,this._coreService=h,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new f.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(let m of Object.keys(S))this.addProtocol(m,S[m]);for(let m of Object.keys(o))this.addEncoding(m,o[m]);this.reset()}addProtocol(i,h){this._protocols[i]=h}addEncoding(i,h){this._encodings[i]=h}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(i){if(!this._protocols[i])throw Error(`unknown protocol "${i}"`);this._activeProtocol=i,this._onProtocolChange.fire(this._protocols[i].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(i){if(!this._encodings[i])throw Error(`unknown encoding "${i}"`);this._activeEncoding=i}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(i){if(i.col<0||i.col>=this._bufferService.cols||i.row<0||i.row>=this._bufferService.rows||i.button===4&&i.action===32||i.button===3&&i.action!==32||i.button!==4&&(i.action===2||i.action===3)||(i.col++,i.row++,i.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,i,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(i))return!1;let h=this._encodings[this._activeEncoding](i);return h&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(h):this._coreService.triggerDataEvent(h,!0)),this._lastEvent=i,!0}explainEvents(i){return{down:!!(1&i),up:!!(2&i),drag:!!(4&i),move:!!(8&i),wheel:!!(16&i)}}_equalEvents(i,h,m){if(m){if(i.x!==h.x||i.y!==h.y)return!1}else if(i.col!==h.col||i.row!==h.row)return!1;return i.button===h.button&&i.action===h.action&&i.ctrl===h.ctrl&&i.alt===h.alt&&i.shift===h.shift}};t.CoreMouseService=s=l([u(0,n.IBufferService),u(1,n.ICoreService)],s)},6975:function(A,t,a){var l=this&&this.__decorate||function(s,i,h,m){var d,c=arguments.length,v=c<3?i:m===null?m=Object.getOwnPropertyDescriptor(i,h):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,i,h,m);else for(var C=s.length-1;C>=0;C--)(d=s[C])&&(v=(c<3?d(v):c>3?d(i,h,v):d(i,h))||v);return c>3&&v&&Object.defineProperty(i,h,v),v},u=this&&this.__param||function(s,i){return function(h,m){i(h,m,s)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;let n=a(1439),f=a(8460),p=a(844),S=a(2585),r=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),o=t.CoreService=class extends p.Disposable{constructor(s,i,h){super(),this._bufferService=s,this._logService=i,this._optionsService=h,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new f.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new f.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new f.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new f.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(r),this.decPrivateModes=(0,n.clone)(e)}reset(){this.modes=(0,n.clone)(r),this.decPrivateModes=(0,n.clone)(e)}triggerDataEvent(s,i=!1){if(this._optionsService.rawOptions.disableStdin)return;let h=this._bufferService.buffer;i&&this._optionsService.rawOptions.scrollOnUserInput&&h.ybase!==h.ydisp&&this._onRequestScrollToBottom.fire(),i&&this._onUserInput.fire(),this._logService.debug(`sending data "${s}"`,(()=>s.split("").map((m=>m.charCodeAt(0))))),this._onData.fire(s)}triggerBinaryEvent(s){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${s}"`,(()=>s.split("").map((i=>i.charCodeAt(0))))),this._onBinary.fire(s))}};t.CoreService=o=l([u(0,S.IBufferService),u(1,S.ILogService),u(2,S.IOptionsService)],o)},9074:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;let l=a(8055),u=a(8460),n=a(844),f=a(6106),p=0,S=0;class r extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new f.SortedList((s=>s==null?void 0:s.marker.line)),this._onDecorationRegistered=this.register(new u.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new u.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)((()=>this.reset())))}registerDecoration(s){if(s.marker.isDisposed)return;let i=new e(s);if(i){let h=i.marker.onDispose((()=>i.dispose()));i.onDispose((()=>{i&&(this._decorations.delete(i)&&this._onDecorationRemoved.fire(i),h.dispose())})),this._decorations.insert(i),this._onDecorationRegistered.fire(i)}return i}reset(){for(let s of this._decorations.values())s.dispose();this._decorations.clear()}*getDecorationsAtCell(s,i,h){let m=0,d=0;for(let c of this._decorations.getKeyIterator(i))m=c.options.x??0,d=m+(c.options.width??1),s>=m&&s{p=d.options.x??0,S=p+(d.options.width??1),s>=p&&s{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;let l=a(2585),u=a(8343);class n{constructor(...p){this._entries=new Map;for(let[S,r]of p)this.set(S,r)}set(p,S){let r=this._entries.get(p);return this._entries.set(p,S),r}forEach(p){for(let[S,r]of this._entries.entries())p(S,r)}has(p){return this._entries.has(p)}get(p){return this._entries.get(p)}}t.ServiceCollection=n,t.InstantiationService=class{constructor(){this._services=new n,this._services.set(l.IInstantiationService,this)}setService(f,p){this._services.set(f,p)}getService(f){return this._services.get(f)}createInstance(f,...p){let S=(0,u.getServiceDependencies)(f).sort(((o,s)=>o.index-s.index)),r=[];for(let o of S){let s=this._services.get(o.id);if(!s)throw Error(`[createInstance] ${f.name} depends on UNKNOWN service ${o.id}.`);r.push(s)}let e=S.length>0?S[0].index:p.length;if(p.length!==e)throw Error(`[createInstance] First service dependency of ${f.name} at position ${e+1} conflicts with ${p.length} static arguments`);return new f(...p,...r)}}},7866:function(A,t,a){var l=this&&this.__decorate||function(e,o,s,i){var h,m=arguments.length,d=m<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,s):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,s,i);else for(var c=e.length-1;c>=0;c--)(h=e[c])&&(d=(m<3?h(d):m>3?h(o,s,d):h(o,s))||d);return m>3&&d&&Object.defineProperty(o,s,d),d},u=this&&this.__param||function(e,o){return function(s,i){o(s,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;let n=a(844),f=a(2585),p={trace:f.LogLevelEnum.TRACE,debug:f.LogLevelEnum.DEBUG,info:f.LogLevelEnum.INFO,warn:f.LogLevelEnum.WARN,error:f.LogLevelEnum.ERROR,off:f.LogLevelEnum.OFF},S,r=t.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=f.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),S=this}_updateLogLevel(){this._logLevel=p[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let o=0;oJSON.stringify(d))).join(", ")})`);let m=i.apply(this,h);return S.trace(`GlyphRenderer#${i.name} return`,m),m}}},7302:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;let l=a(8460),u=a(844);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:a(6114).isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};let n=["normal","bold","100","200","300","400","500","600","700","800","900"];class f extends u.Disposable{constructor(S){super(),this._onOptionChange=this.register(new l.EventEmitter),this.onOptionChange=this._onOptionChange.event;let r={...t.DEFAULT_OPTIONS};for(let e in S)if(e in r)try{let o=S[e];r[e]=this._sanitizeAndValidateOption(e,o)}catch(o){console.error(o)}this.rawOptions=r,this.options={...r},this._setupOptions(),this.register((0,u.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(S,r){return this.onOptionChange((e=>{e===S&&r(this.rawOptions[S])}))}onMultipleOptionChange(S,r){return this.onOptionChange((e=>{S.indexOf(e)!==-1&&r()}))}_setupOptions(){let S=e=>{if(!(e in t.DEFAULT_OPTIONS))throw Error(`No option with key "${e}"`);return this.rawOptions[e]},r=(e,o)=>{if(!(e in t.DEFAULT_OPTIONS))throw Error(`No option with key "${e}"`);o=this._sanitizeAndValidateOption(e,o),this.rawOptions[e]!==o&&(this.rawOptions[e]=o,this._onOptionChange.fire(e))};for(let e in this.rawOptions){let o={get:S.bind(this,e),set:r.bind(this,e)};Object.defineProperty(this.options,e,o)}}_sanitizeAndValidateOption(S,r){switch(S){case"cursorStyle":if(r||(r=t.DEFAULT_OPTIONS[S]),!(function(e){return e==="block"||e==="underline"||e==="bar"})(r))throw Error(`"${r}" is not a valid value for ${S}`);break;case"wordSeparator":r||(r=t.DEFAULT_OPTIONS[S]);break;case"fontWeight":case"fontWeightBold":if(typeof r=="number"&&1<=r&&r<=1e3)break;r=n.includes(r)?r:t.DEFAULT_OPTIONS[S];break;case"cursorWidth":r=Math.floor(r);case"lineHeight":case"tabStopWidth":if(r<1)throw Error(`${S} cannot be less than 1, value: ${r}`);break;case"minimumContrastRatio":r=Math.max(1,Math.min(21,Math.round(10*r)/10));break;case"scrollback":if((r=Math.min(r,4294967295))<0)throw Error(`${S} cannot be less than 0, value: ${r}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(r<=0)throw Error(`${S} cannot be less than or equal to 0, value: ${r}`);break;case"rows":case"cols":if(!r&&r!==0)throw Error(`${S} must be numeric, value: ${r}`);break;case"windowsPty":r??(r={})}return r}}t.OptionsService=f},2660:function(A,t,a){var l=this&&this.__decorate||function(p,S,r,e){var o,s=arguments.length,i=s<3?S:e===null?e=Object.getOwnPropertyDescriptor(S,r):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(p,S,r,e);else for(var h=p.length-1;h>=0;h--)(o=p[h])&&(i=(s<3?o(i):s>3?o(S,r,i):o(S,r))||i);return s>3&&i&&Object.defineProperty(S,r,i),i},u=this&&this.__param||function(p,S){return function(r,e){S(r,e,p)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;let n=a(2585),f=t.OscLinkService=class{constructor(p){this._bufferService=p,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(p){let S=this._bufferService.buffer;if(p.id===void 0){let h=S.addMarker(S.ybase+S.y),m={data:p,id:this._nextId++,lines:[h]};return h.onDispose((()=>this._removeMarkerFromLink(m,h))),this._dataByLinkId.set(m.id,m),m.id}let r=p,e=this._getEntryIdKey(r),o=this._entriesWithId.get(e);if(o)return this.addLineToLink(o.id,S.ybase+S.y),o.id;let s=S.addMarker(S.ybase+S.y),i={id:this._nextId++,key:this._getEntryIdKey(r),data:r,lines:[s]};return s.onDispose((()=>this._removeMarkerFromLink(i,s))),this._entriesWithId.set(i.key,i),this._dataByLinkId.set(i.id,i),i.id}addLineToLink(p,S){let r=this._dataByLinkId.get(p);if(r&&r.lines.every((e=>e.line!==S))){let e=this._bufferService.buffer.addMarker(S);r.lines.push(e),e.onDispose((()=>this._removeMarkerFromLink(r,e)))}}getLinkData(p){var S;return(S=this._dataByLinkId.get(p))==null?void 0:S.data}_getEntryIdKey(p){return`${p.id};;${p.uri}`}_removeMarkerFromLink(p,S){let r=p.lines.indexOf(S);r!==-1&&(p.lines.splice(r,1),p.lines.length===0&&(p.data.id!==void 0&&this._entriesWithId.delete(p.key),this._dataByLinkId.delete(p.id)))}};t.OscLinkService=f=l([u(0,n.IBufferService)],f)},8343:(A,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;let a="di$target",l="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(u){return u[l]||[]},t.createDecorator=function(u){if(t.serviceRegistry.has(u))return t.serviceRegistry.get(u);let n=function(f,p,S){if(arguments.length!==3)throw Error("@IServiceName-decorator can only be used to decorate a parameter");(function(r,e,o){e[a]===e?e[l].push({id:r,index:o}):(e[l]=[{id:r,index:o}],e[a]=e)})(n,f,S)};return n.toString=()=>u,t.serviceRegistry.set(u,n),n}},2585:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;let l=a(8343);var u;t.IBufferService=(0,l.createDecorator)("BufferService"),t.ICoreMouseService=(0,l.createDecorator)("CoreMouseService"),t.ICoreService=(0,l.createDecorator)("CoreService"),t.ICharsetService=(0,l.createDecorator)("CharsetService"),t.IInstantiationService=(0,l.createDecorator)("InstantiationService"),(function(n){n[n.TRACE=0]="TRACE",n[n.DEBUG=1]="DEBUG",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.OFF=5]="OFF"})(u||(t.LogLevelEnum=u={})),t.ILogService=(0,l.createDecorator)("LogService"),t.IOptionsService=(0,l.createDecorator)("OptionsService"),t.IOscLinkService=(0,l.createDecorator)("OscLinkService"),t.IUnicodeService=(0,l.createDecorator)("UnicodeService"),t.IDecorationService=(0,l.createDecorator)("DecorationService")},1480:(A,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;let l=a(8460),u=a(225);class n{static extractShouldJoin(p){return(1&p)!=0}static extractWidth(p){return p>>1&3}static extractCharKind(p){return p>>3}static createPropertyValue(p,S,r=!1){return(16777215&p)<<3|(3&S)<<1|(r?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new l.EventEmitter,this.onChange=this._onChange.event;let p=new u.UnicodeV6;this.register(p),this._active=p.version,this._activeProvider=p}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(p){if(!this._providers[p])throw Error(`unknown Unicode version "${p}"`);this._active=p,this._activeProvider=this._providers[p],this._onChange.fire(p)}register(p){this._providers[p.version]=p}wcwidth(p){return this._activeProvider.wcwidth(p)}getStringCellWidth(p){let S=0,r=0,e=p.length;for(let o=0;o=e)return S+this.wcwidth(s);let m=p.charCodeAt(o);56320<=m&&m<=57343?s=1024*(s-55296)+m-56320+65536:S+=this.wcwidth(m)}let i=this.charProperties(s,r),h=n.extractWidth(i);n.extractShouldJoin(i)&&(h-=n.extractWidth(r)),S+=h,r=i}return S}charProperties(p,S){return this._activeProvider.charProperties(p,S)}}t.UnicodeService=n}},E={};function T(A){var t=E[A];if(t!==void 0)return t.exports;var a=E[A]={exports:{}};return b[A].call(a.exports,a,a.exports,T),a.exports}var N={};return(()=>{var A=N;Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;let t=T(9042),a=T(3236),l=T(844),u=T(5741),n=T(8285),f=T(7975),p=T(7090),S=["cols","rows"];class r extends l.Disposable{constructor(o){super(),this._core=this.register(new a.Terminal(o)),this._addonManager=this.register(new u.AddonManager),this._publicOptions={...this._core.options};let s=h=>this._core.options[h],i=(h,m)=>{this._checkReadonlyOptions(h),this._core.options[h]=m};for(let h in this._core.options){let m={get:s.bind(this,h),set:i.bind(this,h)};Object.defineProperty(this._publicOptions,h,m)}}_checkReadonlyOptions(o){if(S.includes(o))throw Error(`Option "${o}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new f.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new p.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new n.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let o=this._core.coreService.decPrivateModes,s="none";switch(this._core.coreMouseService.activeProtocol){case"X10":s="x10";break;case"VT200":s="vt200";break;case"DRAG":s="drag";break;case"ANY":s="any"}return{applicationCursorKeysMode:o.applicationCursorKeys,applicationKeypadMode:o.applicationKeypad,bracketedPasteMode:o.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:s,originMode:o.origin,reverseWraparoundMode:o.reverseWraparound,sendFocusMode:o.sendFocus,wraparoundMode:o.wraparound}}get options(){return this._publicOptions}set options(o){for(let s in o)this._publicOptions[s]=o[s]}blur(){this._core.blur()}focus(){this._core.focus()}input(o,s=!0){this._core.input(o,s)}resize(o,s){this._verifyIntegers(o,s),this._core.resize(o,s)}open(o){this._core.open(o)}attachCustomKeyEventHandler(o){this._core.attachCustomKeyEventHandler(o)}attachCustomWheelEventHandler(o){this._core.attachCustomWheelEventHandler(o)}registerLinkProvider(o){return this._core.registerLinkProvider(o)}registerCharacterJoiner(o){return this._checkProposedApi(),this._core.registerCharacterJoiner(o)}deregisterCharacterJoiner(o){this._checkProposedApi(),this._core.deregisterCharacterJoiner(o)}registerMarker(o=0){return this._verifyIntegers(o),this._core.registerMarker(o)}registerDecoration(o){return this._checkProposedApi(),this._verifyPositiveIntegers(o.x??0,o.width??0,o.height??0),this._core.registerDecoration(o)}hasSelection(){return this._core.hasSelection()}select(o,s,i){this._verifyIntegers(o,s,i),this._core.select(o,s,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(o,s){this._verifyIntegers(o,s),this._core.selectLines(o,s)}dispose(){super.dispose()}scrollLines(o){this._verifyIntegers(o),this._core.scrollLines(o)}scrollPages(o){this._verifyIntegers(o),this._core.scrollPages(o)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(o){this._verifyIntegers(o),this._core.scrollToLine(o)}clear(){this._core.clear()}write(o,s){this._core.write(o,s)}writeln(o,s){this._core.write(o),this._core.write(`\r +`,s)}paste(o){this._core.paste(o)}refresh(o,s){this._verifyIntegers(o,s),this._core.refresh(o,s)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(o){this._addonManager.loadAddon(this,o)}static get strings(){return t}_verifyIntegers(...o){for(let s of o)if(s===1/0||isNaN(s)||s%1!=0)throw Error("This API only accepts integers")}_verifyPositiveIntegers(...o){for(let s of o)if(s&&(s===1/0||isNaN(s)||s%1!=0||s<0))throw Error("This API only accepts positive integers")}}A.Terminal=r})(),N})()))}))(),me=Mt(Li(),1);function mr(g){let _={cursor:"#ffffff",cursorAccent:"#000000"};return g==="dark"?{..._,background:"#0f172a",foreground:"#f8fafc",black:"#0f172a",red:"#ef4444",green:"#22c55e",yellow:"#eab308",blue:"#3b82f6",magenta:"#a855f7",cyan:"#06b6d4",white:"#f1f5f9",brightBlack:"#475569",brightRed:"#f87171",brightGreen:"#4ade80",brightYellow:"#facc15",brightBlue:"#60a5fa",brightMagenta:"#c084fc",brightCyan:"#22d3ee",brightWhite:"#ffffff",selection:"rgba(148, 163, 184, 0.3)"}:{..._,background:"#ffffff",foreground:"#0f172a",cursor:"#0f172a",black:"#0f172a",red:"#dc2626",green:"#16a34a",yellow:"#ca8a04",blue:"#2563eb",magenta:"#9333ea",cyan:"#0891b2",white:"#e2e8f0",brightBlack:"#64748b",brightRed:"#ef4444",brightGreen:"#22c55e",brightYellow:"#eab308",brightBlue:"#3b82f6",brightMagenta:"#a855f7",brightCyan:"#06b6d4",brightWhite:"#ffffff",selection:"rgba(71, 85, 105, 0.2)"}}var Se=Mt(Di(),1),Xe=g=>{let _=(0,Wi.c)(11),{onClick:b,disabled:E,icon:T,children:N,keyboardShortcut:A}=g,t=E===void 0?!1:E,a;_[0]===Symbol.for("react.memo_cache_sentinel")?(a=Tt("w-full text-left px-3 py-2 text-sm flex items-center gap-3 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-muted"),_[0]=a):a=_[0];let l;_[1]===T?l=_[2]:(l=(0,Se.jsx)(T,{className:"w-4 h-4"}),_[1]=T,_[2]=l);let u;_[3]===A?u=_[4]:(u=A&&(0,Se.jsx)(Pi,{className:"ml-auto",shortcut:A}),_[3]=A,_[4]=u);let n;return _[5]!==N||_[6]!==t||_[7]!==b||_[8]!==l||_[9]!==u?(n=(0,Se.jsxs)("button",{className:a,type:"button",onClick:b,disabled:t,children:[l,N,u]}),_[5]=N,_[6]=t,_[7]=b,_[8]=l,_[9]=u,_[10]=n):n=_[10],n};function Sr(g,_){return b=>{let{ctrlKey:E,metaKey:T,key:N}=b;if(E||T)switch(N){case"c":g.hasSelection()&&(b.preventDefault(),Oi(g.getSelection()));break;case"v":b.preventDefault(),navigator.clipboard.readText().then(A=>{g.paste(A)});break;case"a":b.preventDefault(),g.selectAll();break;case"l":b.preventDefault(),g.clear();break}}}function Cr(g,_){let b=()=>_(null);return{handleCopy:()=>{g.hasSelection()&&navigator.clipboard.writeText(g.getSelection()),b()},handlePaste:()=>{navigator.clipboard.readText().then(E=>{g.paste(E)}),b()},handleSelectAll:()=>{g.selectAll(),b()},handleClear:()=>{g.clear(),b()},closeMenu:b}}var ni=100,br=me.memo(({visible:g,onClose:_})=>{let b=(0,me.useRef)(null),E=(0,me.useRef)(null),[{terminal:T,fitAddon:N,searchAddon:A}]=(0,me.useState)(()=>{let v=new pr.Terminal({fontFamily:"Menlo, DejaVu Sans Mono, Consolas, Lucida Console, monospace",fontSize:14,scrollback:1e4,cursorBlink:!0,cursorStyle:"block",allowTransparency:!1,theme:mr("dark"),rightClickSelectsWord:!0,wordSeparator:` \r +"'\`(){}[]<>|&;`,allowProposedApi:!0}),C=new ji,k=new Rs,D=new Ni.CanvasAddon,x=new cr,y=new vr;return v.loadAddon(C),v.loadAddon(k),v.loadAddon(D),v.loadAddon(x),v.loadAddon(y),v.unicode.activeVersion="11",{terminal:v,fitAddon:C,searchAddon:k}}),[t,a]=me.useState(!1),[l,u]=(0,me.useState)(null),n=ki(),f=Ii(),{removeCommand:p,setReady:S}=Hi(),r=$e(Sr(T,A)),e=$e(v=>{v.preventDefault();let C=window.innerHeight-v.clientY<200;u({x:v.clientX,y:v.clientY,placement:C?"top":"bottom"})}),o=$e(v=>{let C=v.target,k=C&&C instanceof HTMLElement&&C.closest(".xterm-context-menu");l&&!k&&u(null)}),s=Bi(({cols:v,rows:C})=>{E.current&&E.current.readyState===WebSocket.OPEN&&(Ze.debug("Sending resize to backend terminal",{cols:v,rows:C}),E.current.send(JSON.stringify({type:"resize",cols:v,rows:C})))},ni),i=$e(()=>{!T||!N||N.fit()}),{handleCopy:h,handlePaste:m,handleSelectAll:d,handleClear:c}=(0,me.useMemo)(()=>Cr(T,u),[T]);return(0,me.useEffect)(()=>t?void 0:((async()=>{try{await Ei();let v=new WebSocket(n.getTerminalWsURL()),C=new $i(v);T.loadAddon(C),E.current=v;let k=()=>{S(v.readyState===WebSocket.OPEN)};v.addEventListener("open",()=>{k()}),v.addEventListener("close",()=>{_(),C.dispose(),E.current=null,T.clear(),a(!1),S(!1)}),v.addEventListener("error",()=>{k()}),k(),a(!0)}catch(v){Ze.error("Runtime health check failed for terminal",v),_()}})(),()=>{}),[t]),(0,me.useEffect)(()=>{var v;if(!(!f.isReady||f.pendingCommands.length===0))for(let C of f.pendingCommands)T&&((v=E.current)==null?void 0:v.readyState)===WebSocket.OPEN&&(Ze.debug("Sending programmatic command to terminal",{command:C.text}),T.input(C.text),T.focus(),p(C.id))},[T,f.isReady,f.pendingCommands,p]),(0,me.useEffect)(()=>{g&&(N.fit(),T.focus())},[g]),(0,me.useEffect)(()=>{if(!b.current)return;T.open(b.current),setTimeout(()=>{N.fit()},ni),T.focus();let v=new AbortController;return window.addEventListener("resize",i,{signal:v.signal}),b.current.addEventListener("keydown",r,{signal:v.signal}),b.current.addEventListener("contextmenu",e,{signal:v.signal}),T.onResize(s),document.addEventListener("click",o,{signal:v.signal}),()=>{v.abort()}},[]),(0,Se.jsxs)("div",{className:"relative w-full h-[calc(100%-4px)] bg-popover",children:[(0,Se.jsx)("div",{className:"w-full h-full",ref:b}),l&&(0,Se.jsxs)("div",{className:"xterm-context-menu fixed z-50 rounded-md shadow-lg py-1 min-w-[160px] border bg-popover",style:{left:l.x,[l.placement==="top"?"bottom":"top"]:l.placement==="top"?window.innerHeight-l.y:l.y},children:[(0,Se.jsx)(Xe,{onClick:h,disabled:!T.hasSelection(),icon:Ai,keyboardShortcut:"mod-c",children:"Copy"}),(0,Se.jsx)(Xe,{onClick:m,icon:Mi,keyboardShortcut:"mod-v",children:"Paste"}),(0,Se.jsx)("hr",{className:Tt("my-1 border-border")}),(0,Se.jsx)(Xe,{onClick:d,icon:Fi,keyboardShortcut:"mod-a",children:"Select all"}),(0,Se.jsx)(Xe,{onClick:c,icon:Ti,keyboardShortcut:"mod-l",children:"Clear terminal"})]})]})});export{br as default}; diff --git a/docs/assets/terraform-CzTiNJOl.js b/docs/assets/terraform-CzTiNJOl.js new file mode 100644 index 0000000..600bb2d --- /dev/null +++ b/docs/assets/terraform-CzTiNJOl.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Terraform","fileTypes":["tf","tfvars"],"name":"terraform","patterns":[{"include":"#comments"},{"include":"#attribute_definition"},{"include":"#block"},{"include":"#expressions"}],"repository":{"attribute_access":{"begin":"\\\\.(?!\\\\*)","beginCaptures":{"0":{"name":"keyword.operator.accessor.hcl"}},"end":"\\\\p{alpha}[-\\\\w]*|\\\\d*","endCaptures":{"0":{"patterns":[{"match":"(?!null|false|true)\\\\p{alpha}[-\\\\w]*","name":"variable.other.member.hcl"},{"match":"\\\\d+","name":"constant.numeric.integer.hcl"}]}}},"attribute_definition":{"captures":{"1":{"name":"punctuation.section.parens.begin.hcl"},"2":{"name":"variable.other.readwrite.hcl"},"3":{"name":"punctuation.section.parens.end.hcl"},"4":{"name":"keyword.operator.assignment.hcl"}},"match":"(\\\\()?\\\\b((?!(?:null|false|true)\\\\b)\\\\p{alpha}[-_[:alnum:]]*)(\\\\))?\\\\s*(=(?![=>]))\\\\s*","name":"variable.declaration.hcl"},"attribute_splat":{"begin":"\\\\.","beginCaptures":{"0":{"name":"keyword.operator.accessor.hcl"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.operator.splat.hcl"}}},"block":{"begin":"(\\\\w[-\\\\w]*)([-\\"\\\\s\\\\w]*)(\\\\{)","beginCaptures":{"1":{"patterns":[{"match":"\\\\bdata|check|import|locals|module|output|provider|resource|terraform|variable\\\\b","name":"entity.name.type.terraform"},{"match":"\\\\b(?!null|false|true)\\\\p{alpha}[-_[:alnum:]]*\\\\b","name":"entity.name.type.hcl"}]},"2":{"patterns":[{"match":"[-\\"\\\\w]+","name":"variable.other.enummember.hcl"}]},"3":{"name":"punctuation.section.block.begin.hcl"},"5":{"name":"punctuation.section.block.begin.hcl"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.hcl"}},"name":"meta.block.hcl","patterns":[{"include":"#comments"},{"include":"#attribute_definition"},{"include":"#block"},{"include":"#expressions"}]},"block_inline_comments":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.hcl"}},"end":"\\\\*/","name":"comment.block.hcl"},"brackets":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.hcl"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.brackets.end.hcl"}},"patterns":[{"match":"\\\\*","name":"keyword.operator.splat.hcl"},{"include":"#comma"},{"include":"#comments"},{"include":"#inline_for_expression"},{"include":"#inline_if_expression"},{"include":"#expressions"},{"include":"#local_identifiers"}]},"char_escapes":{"match":"\\\\\\\\(?:[\\"\\\\\\\\nrt]|u(\\\\h{8}|\\\\h{4}))","name":"constant.character.escape.hcl"},"comma":{"match":",","name":"punctuation.separator.hcl"},"comments":{"patterns":[{"include":"#hash_line_comments"},{"include":"#double_slash_line_comments"},{"include":"#block_inline_comments"}]},"double_slash_line_comments":{"begin":"//","captures":{"0":{"name":"punctuation.definition.comment.hcl"}},"end":"$\\\\n?","name":"comment.line.double-slash.hcl"},"expressions":{"patterns":[{"include":"#literal_values"},{"include":"#operators"},{"include":"#tuple_for_expression"},{"include":"#object_for_expression"},{"include":"#brackets"},{"include":"#objects"},{"include":"#attribute_access"},{"include":"#attribute_splat"},{"include":"#functions"},{"include":"#parens"}]},"for_expression_body":{"patterns":[{"match":"\\\\bin\\\\b","name":"keyword.operator.word.hcl"},{"match":"\\\\bif\\\\b","name":"keyword.control.conditional.hcl"},{"match":":","name":"keyword.operator.hcl"},{"include":"#expressions"},{"include":"#comments"},{"include":"#comma"},{"include":"#local_identifiers"}]},"functions":{"begin":"([-:\\\\w]+)(\\\\()","beginCaptures":{"1":{"patterns":[{"match":"\\\\b(core::)?(abs|abspath|alltrue|anytrue|base64decode|base64encode|base64gzip|base64sha256|base64sha512|basename|bcrypt|can|ceil|chomp|chunklist|cidrhost|cidrnetmask|cidrsubnets??|coalesce|coalescelist|compact|concat|contains|csvdecode|dirname|distinct|element|endswith|file|filebase64|filebase64sha256|filebase64sha512|fileexists|filemd5|fileset|filesha1|filesha256|filesha512|flatten|floor|format|formatdate|formatlist|indent|index|join|jsondecode|jsonencode|keys|length|log|lookup|lower|matchkeys|max|md5|merge|min|nonsensitive|one|parseint|pathexpand|plantimestamp|pow|range|regex|regexall|replace|reverse|rsadecrypt|sensitive|setintersection|setproduct|setsubtract|setunion|sha1|sha256|sha512|signum|slice|sort|split|startswith|strcontains|strrev|substr|sum|templatefile|textdecodebase64|textencodebase64|timeadd|timecmp|timestamp|title|tobool|tolist|tomap|tonumber|toset|tostring|transpose|trim|trimprefix|trimspace|trimsuffix|try|upper|urlencode|uuid|uuidv5|values|yamldecode|yamlencode|zipmap)\\\\b","name":"support.function.builtin.terraform"},{"match":"\\\\bprovider::\\\\p{alpha}[-_\\\\w]*::\\\\p{alpha}[-_\\\\w]*\\\\b","name":"support.function.provider.terraform"}]},"2":{"name":"punctuation.section.parens.begin.hcl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.hcl"}},"name":"meta.function-call.hcl","patterns":[{"include":"#comments"},{"include":"#expressions"},{"include":"#comma"}]},"hash_line_comments":{"begin":"#","captures":{"0":{"name":"punctuation.definition.comment.hcl"}},"end":"$\\\\n?","name":"comment.line.number-sign.hcl"},"hcl_type_keywords":{"match":"\\\\b(any|string|number|bool|list|set|map|tuple|object)\\\\b","name":"storage.type.hcl"},"heredoc":{"begin":"(<<-?)\\\\s*(\\\\w+)\\\\s*$","beginCaptures":{"1":{"name":"keyword.operator.heredoc.hcl"},"2":{"name":"keyword.control.heredoc.hcl"}},"end":"^\\\\s*\\\\2\\\\s*$","endCaptures":{"0":{"name":"keyword.control.heredoc.hcl"}},"name":"string.unquoted.heredoc.hcl","patterns":[{"include":"#string_interpolation"}]},"inline_for_expression":{"captures":{"1":{"name":"keyword.control.hcl"},"2":{"patterns":[{"match":"=>","name":"storage.type.function.hcl"},{"include":"#for_expression_body"}]}},"match":"(for)\\\\b(.*)\\\\n"},"inline_if_expression":{"begin":"(if)\\\\b","beginCaptures":{"1":{"name":"keyword.control.conditional.hcl"}},"end":"\\\\n","patterns":[{"include":"#expressions"},{"include":"#comments"},{"include":"#comma"},{"include":"#local_identifiers"}]},"language_constants":{"match":"\\\\b(true|false|null)\\\\b","name":"constant.language.hcl"},"literal_values":{"patterns":[{"include":"#numeric_literals"},{"include":"#language_constants"},{"include":"#string_literals"},{"include":"#heredoc"},{"include":"#hcl_type_keywords"},{"include":"#named_value_references"}]},"local_identifiers":{"match":"\\\\b(?!null|false|true)\\\\p{alpha}[-_[:alnum:]]*\\\\b","name":"variable.other.readwrite.hcl"},"named_value_references":{"match":"\\\\b(var|local|module|data|path|terraform)\\\\b","name":"variable.other.readwrite.terraform"},"numeric_literals":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.exponent.hcl"}},"match":"\\\\b\\\\d+([Ee][-+]?)\\\\d+\\\\b","name":"constant.numeric.float.hcl"},{"captures":{"1":{"name":"punctuation.separator.decimal.hcl"},"2":{"name":"punctuation.separator.exponent.hcl"}},"match":"\\\\b\\\\d+(\\\\.)\\\\d+(?:([Ee][-+]?)\\\\d+)?\\\\b","name":"constant.numeric.float.hcl"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.integer.hcl"}]},"object_for_expression":{"begin":"(\\\\{)\\\\s?(for)\\\\b","beginCaptures":{"1":{"name":"punctuation.section.braces.begin.hcl"},"2":{"name":"keyword.control.hcl"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.braces.end.hcl"}},"patterns":[{"match":"=>","name":"storage.type.function.hcl"},{"include":"#for_expression_body"}]},"object_key_values":{"patterns":[{"include":"#comments"},{"include":"#literal_values"},{"include":"#operators"},{"include":"#tuple_for_expression"},{"include":"#object_for_expression"},{"include":"#heredoc"},{"include":"#functions"}]},"objects":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.braces.begin.hcl"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.braces.end.hcl"}},"name":"meta.braces.hcl","patterns":[{"include":"#comments"},{"include":"#objects"},{"include":"#inline_for_expression"},{"include":"#inline_if_expression"},{"captures":{"1":{"name":"meta.mapping.key.hcl variable.other.readwrite.hcl"},"2":{"name":"keyword.operator.assignment.hcl","patterns":[{"match":"=>","name":"storage.type.function.hcl"}]}},"match":"\\\\b((?!null|false|true)\\\\p{alpha}[-_[:alnum:]]*)\\\\s*(=>?)\\\\s*"},{"captures":{"0":{"patterns":[{"include":"#named_value_references"}]},"1":{"name":"meta.mapping.key.hcl string.quoted.double.hcl"},"2":{"name":"punctuation.definition.string.begin.hcl"},"3":{"name":"punctuation.definition.string.end.hcl"},"4":{"name":"keyword.operator.hcl"}},"match":"\\\\b((\\").*(\\"))\\\\s*(=)\\\\s*"},{"begin":"^\\\\s*\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.hcl"}},"end":"(\\\\))\\\\s*([:=])\\\\s*","endCaptures":{"1":{"name":"punctuation.section.parens.end.hcl"},"2":{"name":"keyword.operator.hcl"}},"name":"meta.mapping.key.hcl","patterns":[{"include":"#named_value_references"},{"include":"#attribute_access"}]},{"include":"#object_key_values"}]},"operators":{"patterns":[{"match":">=","name":"keyword.operator.hcl"},{"match":"<=","name":"keyword.operator.hcl"},{"match":"==","name":"keyword.operator.hcl"},{"match":"!=","name":"keyword.operator.hcl"},{"match":"\\\\+","name":"keyword.operator.arithmetic.hcl"},{"match":"-","name":"keyword.operator.arithmetic.hcl"},{"match":"\\\\*","name":"keyword.operator.arithmetic.hcl"},{"match":"/","name":"keyword.operator.arithmetic.hcl"},{"match":"%","name":"keyword.operator.arithmetic.hcl"},{"match":"&&","name":"keyword.operator.logical.hcl"},{"match":"\\\\|\\\\|","name":"keyword.operator.logical.hcl"},{"match":"!","name":"keyword.operator.logical.hcl"},{"match":">","name":"keyword.operator.hcl"},{"match":"<","name":"keyword.operator.hcl"},{"match":"\\\\?","name":"keyword.operator.hcl"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.hcl"},{"match":":","name":"keyword.operator.hcl"},{"match":"=>","name":"keyword.operator.hcl"}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.hcl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.hcl"}},"patterns":[{"include":"#comments"},{"include":"#expressions"}]},"string_interpolation":{"begin":"(?\\\\[|]|\\\\\\\\[{|}]|\\\\\\\\[lr]?[Vv]ert|\\\\\\\\[lr]angle)","name":"punctuation.math.bracket.pair.big.tex"},{"captures":{"1":{"name":"punctuation.definition.constant.math.tex"}},"match":"(\\\\\\\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c([au]p)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook((?:lef|righ)tarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n([ew]arrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v([Dd]ash)|warrow|le(ss|q(slant|q)?|ft((?:|right)arrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left((?:|right)arrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot([ps])?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee((?:down|up)arrow)?|wedge((?:down|up)arrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead((?:lef|righ)tarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u([bp]set))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C([au]p)|u(n([lr]hd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t([ah])|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P((?:s|h?)i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left((?:|right)arrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot([ps])|e(ss(sim|dot|eq(q?gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V(v??dash)|r(h([do])|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq(q?less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc([au]p))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left((?:|right)arrow)|rightarrow|maps(to|from))|eft((?:|right)arrow)|leftarrow|ambda|bag)|Arrownot)(?![@-Za-z])","name":"constant.character.math.tex"},{"captures":{"1":{"name":"punctuation.definition.constant.math.tex"}},"match":"(\\\\\\\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\\\\b","name":"constant.character.math.tex"},{"captures":{"1":{"name":"punctuation.definition.constant.math.tex"}},"match":"(\\\\\\\\)(arccos|arcsin|arctan|arg|cosh??|coth??|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sinh??|sup|tanh??)\\\\b","name":"constant.other.math.tex"},{"begin":"((\\\\\\\\)Sexpr(\\\\{))","beginCaptures":{"1":{"name":"support.function.sexpr.math.tex"},"2":{"name":"punctuation.definition.function.math.tex"},"3":{"name":"punctuation.section.embedded.begin.math.tex"}},"contentName":"support.function.sexpr.math.tex","end":"(((})))","endCaptures":{"1":{"name":"support.function.sexpr.math.tex"},"2":{"name":"punctuation.section.embedded.end.math.tex"},"3":{"name":"source.r"}},"name":"meta.embedded.line.r","patterns":[{"begin":"\\\\G(?!})","end":"(?=})","name":"source.r","patterns":[{"include":"source.r"}]}]},{"captures":{"1":{"name":"punctuation.definition.constant.math.tex"}},"match":"(\\\\\\\\)(?!begin\\\\{|verb)([A-Za-z]+)","name":"constant.other.general.math.tex"},{"match":"(?r.type==="checkbox",le=r=>r instanceof Date,q=r=>r==null,yr=r=>typeof r=="object",O=r=>!q(r)&&!Array.isArray(r)&&yr(r)&&!le(r),gr=r=>O(r)&&r.target?pe(r.target)?r.target.checked:r.target.value:r,_t=r=>r.substring(0,r.search(/\.\d+(\.|$)/))||r,pr=(r,a)=>r.has(_t(a)),xt=r=>{let a=r.constructor&&r.constructor.prototype;return O(a)&&a.hasOwnProperty("isPrototypeOf")},Te=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function B(r){let a,e=Array.isArray(r),t=typeof FileList<"u"?r instanceof FileList:!1;if(r instanceof Date)a=new Date(r);else if(r instanceof Set)a=new Set(r);else if(!(Te&&(r instanceof Blob||t))&&(e||O(r)))if(a=e?[]:{},!e&&!xt(r))a=r;else for(let s in r)r.hasOwnProperty(s)&&(a[s]=B(r[s]));else return r;return a}var ve=r=>Array.isArray(r)?r.filter(Boolean):[],E=r=>r===void 0,m=(r,a,e)=>{if(!a||!O(r))return e;let t=ve(a.split(/[,[\].]+?/)).reduce((s,l)=>q(s)?s:s[l],r);return E(t)||t===r?E(r[a])?e:r[a]:t},G=r=>typeof r=="boolean",Me=r=>/^\w*$/.test(r),vr=r=>ve(r.replace(/["|']|\]/g,"").split(/\.|\[/)),D=(r,a,e)=>{let t=-1,s=Me(a)?[a]:vr(a),l=s.length,n=l-1;for(;++tx.useContext(hr),br=r=>{let{children:a,...e}=r;return x.createElement(hr.Provider,{value:e},a)},_r=(r,a,e,t=!0)=>{let s={defaultValues:a._defaultValues};for(let l in r)Object.defineProperty(s,l,{get:()=>{let n=l;return a._proxyFormState[n]!==Y.all&&(a._proxyFormState[n]=!t||Y.all),e&&(e[n]=!0),r[n]}});return s},$=r=>O(r)&&!Object.keys(r).length,xr=(r,a,e,t)=>{e(r);let{name:s,...l}=r;return $(l)||Object.keys(l).length>=Object.keys(a).length||Object.keys(l).find(n=>a[n]===(!t||Y.all))},H=r=>Array.isArray(r)?r:[r],Vr=(r,a,e)=>!r||!a||r===a||H(r).some(t=>t&&(e?t===a:t.startsWith(a)||a.startsWith(t)));function Se(r){let a=x.useRef(r);a.current=r,x.useEffect(()=>{let e=!r.disabled&&a.current.subject&&a.current.subject.subscribe({next:a.current.next});return()=>{e&&e.unsubscribe()}},[r.disabled])}function Vt(r){let a=ne(),{control:e=a.control,disabled:t,name:s,exact:l}=r||{},[n,o]=x.useState(e._formState),f=x.useRef(!0),c=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),b=x.useRef(s);return b.current=s,Se({disabled:t,next:_=>f.current&&Vr(b.current,_.name,l)&&xr(_,c.current,e._updateFormState)&&o({...e._formState,..._}),subject:e._subjects.state}),x.useEffect(()=>(f.current=!0,c.current.isValid&&e._updateValid(!0),()=>{f.current=!1}),[e]),x.useMemo(()=>_r(n,e,c.current,!1),[n,e])}var Z=r=>typeof r=="string",Ar=(r,a,e,t,s)=>Z(r)?(t&&a.watch.add(r),m(e,r,s)):Array.isArray(r)?r.map(l=>(t&&a.watch.add(l),m(e,l))):(t&&(a.watchAll=!0),e);function Fr(r){let a=ne(),{control:e=a.control,name:t,defaultValue:s,disabled:l,exact:n}=r||{},o=x.useRef(t);o.current=t,Se({disabled:l,subject:e._subjects.values,next:b=>{Vr(o.current,b.name,n)&&c(B(Ar(o.current,e._names,b.values||e._formValues,!1,s)))}});let[f,c]=x.useState(e._getWatch(t,s));return x.useEffect(()=>e._removeUnmounted()),f}function At(r){let a=ne(),{name:e,disabled:t,control:s=a.control,shouldUnregister:l}=r,n=pr(s._names.array,e),o=Fr({control:s,name:e,defaultValue:m(s._formValues,e,m(s._defaultValues,e,r.defaultValue)),exact:!0}),f=Vt({control:s,name:e,exact:!0}),c=x.useRef(s.register(e,{...r.rules,value:o,...G(r.disabled)?{disabled:r.disabled}:{}})),b=x.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!m(f.errors,e)},isDirty:{enumerable:!0,get:()=>!!m(f.dirtyFields,e)},isTouched:{enumerable:!0,get:()=>!!m(f.touchedFields,e)},isValidating:{enumerable:!0,get:()=>!!m(f.validatingFields,e)},error:{enumerable:!0,get:()=>m(f.errors,e)}}),[f,e]),_=x.useMemo(()=>({name:e,value:o,...G(t)||f.disabled?{disabled:f.disabled||t}:{},onChange:N=>c.current.onChange({target:{value:gr(N),name:e},type:Fe.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:m(s._formValues,e),name:e},type:Fe.BLUR}),ref:N=>{let k=m(s._fields,e);k&&N&&(k._f.ref={focus:()=>N.focus(),select:()=>N.select(),setCustomValidity:v=>N.setCustomValidity(v),reportValidity:()=>N.reportValidity()})}}),[e,s._formValues,t,f.disabled,o,s._fields]);return x.useEffect(()=>{let N=s._options.shouldUnregister||l,k=(v,h)=>{let A=m(s._fields,v);A&&A._f&&(A._f.mount=h)};if(k(e,!0),N){let v=B(m(s._options.defaultValues,e));D(s._defaultValues,e,v),E(m(s._formValues,e))&&D(s._formValues,e,v)}return!n&&s.register(e),()=>{(n?N&&!s._state.action:N)?s.unregister(e):k(e,!1)}},[e,s,n,l]),x.useEffect(()=>{s._updateDisabledField({disabled:t,fields:s._fields,name:e})},[t,e,s]),x.useMemo(()=>({field:_,formState:f,fieldState:b}),[_,f,b])}var Ft=r=>r.render(At(r)),Be=(r,a,e,t,s)=>a?{...e[r],types:{...e[r]&&e[r].types?e[r].types:{},[t]:s||!0}}:{},ae=()=>{let r=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{let e=(Math.random()*16+r)%16|0;return(a=="x"?e:e&3|8).toString(16)})},Le=(r,a,e={})=>e.shouldFocus||E(e.shouldFocus)?e.focusName||`${r}.${E(e.focusIndex)?a:e.focusIndex}.`:"",he=r=>({isOnSubmit:!r||r===Y.onSubmit,isOnBlur:r===Y.onBlur,isOnChange:r===Y.onChange,isOnAll:r===Y.all,isOnTouch:r===Y.onTouched}),Re=(r,a,e)=>!e&&(a.watchAll||a.watch.has(r)||[...a.watch].some(t=>r.startsWith(t)&&/^\.\w+/.test(r.slice(t.length)))),fe=(r,a,e,t)=>{for(let s of e||Object.keys(r)){let l=m(r,s);if(l){let{_f:n,...o}=l;if(n){if(n.refs&&n.refs[0]&&a(n.refs[0],s)&&!t||n.ref&&a(n.ref,n.name)&&!t)return!0;if(fe(o,a))break}else if(O(o)&&fe(o,a))break}}},Sr=(r,a,e)=>{let t=H(m(r,e));return D(t,"root",a[e]),D(r,e,t),r},Ie=r=>r.type==="file",Q=r=>typeof r=="function",we=r=>{if(!Te)return!1;let a=r?r.ownerDocument:0;return r instanceof(a&&a.defaultView?a.defaultView.HTMLElement:HTMLElement)},ke=r=>Z(r),Pe=r=>r.type==="radio",De=r=>r instanceof RegExp,wr={value:!1,isValid:!1},kr={value:!0,isValid:!0},Dr=r=>{if(Array.isArray(r)){if(r.length>1){let a=r.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:a,isValid:!!a.length}}return r[0].checked&&!r[0].disabled?r[0].attributes&&!E(r[0].attributes.value)?E(r[0].value)||r[0].value===""?kr:{value:r[0].value,isValid:!0}:kr:wr}return wr},jr={isValid:!1,value:null},Nr=r=>Array.isArray(r)?r.reduce((a,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:a,jr):jr;function Cr(r,a,e="validate"){if(ke(r)||Array.isArray(r)&&r.every(ke)||G(r)&&!r)return{type:e,message:ke(r)?r:"",ref:a}}var ce=r=>O(r)&&!De(r)?r:{value:r,message:""},qe=async(r,a,e,t,s,l)=>{let{ref:n,refs:o,required:f,maxLength:c,minLength:b,min:_,max:N,pattern:k,validate:v,name:h,valueAsNumber:A,mount:j}=r._f,w=m(e,h);if(!j||a.has(h))return{};let W=o?o[0]:n,X=F=>{s&&W.reportValidity&&(W.setCustomValidity(G(F)?"":F||""),W.reportValidity())},T={},ue=Pe(n),Ve=pe(n),ie=ue||Ve,oe=(A||Ie(n))&&E(n.value)&&E(w)||we(n)&&n.value===""||w===""||Array.isArray(w)&&!w.length,z=Be.bind(null,h,t,T),Ae=(F,C,M,R=ee.maxLength,J=ee.minLength)=>{let K=F?C:M;T[h]={type:F?R:J,message:K,ref:n,...z(F?R:J,K)}};if(l?!Array.isArray(w)||!w.length:f&&(!ie&&(oe||q(w))||G(w)&&!w||Ve&&!Dr(o).isValid||ue&&!Nr(o).isValid)){let{value:F,message:C}=ke(f)?{value:!!f,message:f}:ce(f);if(F&&(T[h]={type:ee.required,message:C,ref:W,...z(ee.required,C)},!t))return X(C),T}if(!oe&&(!q(_)||!q(N))){let F,C,M=ce(N),R=ce(_);if(!q(w)&&!isNaN(w)){let J=n.valueAsNumber||w&&+w;q(M.value)||(F=J>M.value),q(R.value)||(C=Jnew Date(new Date().toDateString()+" "+ge),me=n.type=="time",ye=n.type=="week";Z(M.value)&&w&&(F=me?K(w)>K(M.value):ye?w>M.value:J>new Date(M.value)),Z(R.value)&&w&&(C=me?K(w)+F.value,R=!q(C.value)&&w.length<+C.value;if((M||R)&&(Ae(M,F.message,C.message),!t))return X(T[h].message),T}if(k&&!oe&&Z(w)){let{value:F,message:C}=ce(k);if(De(F)&&!w.match(F)&&(T[h]={type:ee.pattern,message:C,ref:n,...z(ee.pattern,C)},!t))return X(C),T}if(v){if(Q(v)){let F=Cr(await v(w,e),W);if(F&&(T[h]={...F,...z(ee.validate,F.message)},!t))return X(F.message),T}else if(O(v)){let F={};for(let C in v){if(!$(F)&&!t)break;let M=Cr(await v[C](w,e),W,C);M&&(F={...M,...z(C,M.message)},X(M.message),t&&(T[h]=F))}if(!$(F)&&(T[h]={ref:W,...F},!t))return T}}return X(!0),T},$e=(r,a)=>[...r,...H(a)],He=r=>Array.isArray(r)?r.map(()=>{}):void 0;function We(r,a,e){return[...r.slice(0,a),...H(e),...r.slice(a)]}var ze=(r,a,e)=>Array.isArray(r)?(E(r[e])&&(r[e]=void 0),r.splice(e,0,r.splice(a,1)[0]),r):[],Ke=(r,a)=>[...H(a),...H(r)];function St(r,a){let e=0,t=[...r];for(let s of a)t.splice(s-e,1),e++;return ve(t).length?t:[]}var Ge=(r,a)=>E(a)?[]:St(r,H(a).sort((e,t)=>e-t)),Ye=(r,a,e)=>{[r[a],r[e]]=[r[e],r[a]]};function wt(r,a){let e=a.slice(0,-1).length,t=0;for(;t(r[a]=e,r);function Dt(r){let a=ne(),{control:e=a.control,name:t,keyName:s="id",shouldUnregister:l,rules:n}=r,[o,f]=x.useState(e._getFieldArray(t)),c=x.useRef(e._getFieldArray(t).map(ae)),b=x.useRef(o),_=x.useRef(t),N=x.useRef(!1);_.current=t,b.current=o,e._names.array.add(t),n&&e.register(t,n),Se({next:({values:v,name:h})=>{if(h===_.current||!h){let A=m(v,_.current);Array.isArray(A)&&(f(A),c.current=A.map(ae))}},subject:e._subjects.array});let k=x.useCallback(v=>{N.current=!0,e._updateFieldArray(t,v)},[e,t]);return x.useEffect(()=>{if(e._state.action=!1,Re(t,e._names)&&e._subjects.state.next({...e._formState}),N.current&&(!he(e._options.mode).isOnSubmit||e._formState.isSubmitted))if(e._options.resolver)e._executeSchema([t]).then(v=>{let h=m(v.errors,t),A=m(e._formState.errors,t);(A?!h&&A.type||h&&(A.type!==h.type||A.message!==h.message):h&&h.type)&&(h?D(e._formState.errors,t,h):U(e._formState.errors,t),e._subjects.state.next({errors:e._formState.errors}))});else{let v=m(e._fields,t);v&&v._f&&!(he(e._options.reValidateMode).isOnSubmit&&he(e._options.mode).isOnSubmit)&&qe(v,e._names.disabled,e._formValues,e._options.criteriaMode===Y.all,e._options.shouldUseNativeValidation,!0).then(h=>!$(h)&&e._subjects.state.next({errors:Sr(e._formState.errors,h,t)}))}e._subjects.values.next({name:t,values:{...e._formValues}}),e._names.focus&&fe(e._fields,(v,h)=>{if(e._names.focus&&h.startsWith(e._names.focus)&&v.focus)return v.focus(),1}),e._names.focus="",e._updateValid(),N.current=!1},[o,t,e]),x.useEffect(()=>(!m(e._formValues,t)&&e._updateFieldArray(t),()=>{(e._options.shouldUnregister||l)&&e.unregister(t)}),[t,e,s,l]),{swap:x.useCallback((v,h)=>{let A=e._getFieldArray(t);Ye(A,v,h),Ye(c.current,v,h),k(A),f(A),e._updateFieldArray(t,A,Ye,{argA:v,argB:h},!1)},[k,t,e]),move:x.useCallback((v,h)=>{let A=e._getFieldArray(t);ze(A,v,h),ze(c.current,v,h),k(A),f(A),e._updateFieldArray(t,A,ze,{argA:v,argB:h},!1)},[k,t,e]),prepend:x.useCallback((v,h)=>{let A=H(B(v)),j=Ke(e._getFieldArray(t),A);e._names.focus=Le(t,0,h),c.current=Ke(c.current,A.map(ae)),k(j),f(j),e._updateFieldArray(t,j,Ke,{argA:He(v)})},[k,t,e]),append:x.useCallback((v,h)=>{let A=H(B(v)),j=$e(e._getFieldArray(t),A);e._names.focus=Le(t,j.length-1,h),c.current=$e(c.current,A.map(ae)),k(j),f(j),e._updateFieldArray(t,j,$e,{argA:He(v)})},[k,t,e]),remove:x.useCallback(v=>{let h=Ge(e._getFieldArray(t),v);c.current=Ge(c.current,v),k(h),f(h),!Array.isArray(m(e._fields,t))&&D(e._fields,t,void 0),e._updateFieldArray(t,h,Ge,{argA:v})},[k,t,e]),insert:x.useCallback((v,h,A)=>{let j=H(B(h)),w=We(e._getFieldArray(t),v,j);e._names.focus=Le(t,v,A),c.current=We(c.current,v,j.map(ae)),k(w),f(w),e._updateFieldArray(t,w,We,{argA:v,argB:He(h)})},[k,t,e]),update:x.useCallback((v,h)=>{let A=B(h),j=Er(e._getFieldArray(t),v,A);c.current=[...j].map((w,W)=>!w||W===v?ae():c.current[W]),k(j),f([...j]),e._updateFieldArray(t,j,Er,{argA:v,argB:A},!0,!1)},[k,t,e]),replace:x.useCallback(v=>{let h=H(B(v));c.current=h.map(ae),k([...h]),f([...h]),e._updateFieldArray(t,[...h],A=>A,{},!0,!1)},[k,t,e]),fields:x.useMemo(()=>o.map((v,h)=>({...v,[s]:c.current[h]||ae()})),[o,s])}}var Je=()=>{let r=[];return{get observers(){return r},next:a=>{for(let e of r)e.next&&e.next(a)},subscribe:a=>(r.push(a),{unsubscribe:()=>{r=r.filter(e=>e!==a)}}),unsubscribe:()=>{r=[]}}},Ze=r=>q(r)||!yr(r);function se(r,a){if(Ze(r)||Ze(a))return r===a;if(le(r)&&le(a))return r.getTime()===a.getTime();let e=Object.keys(r),t=Object.keys(a);if(e.length!==t.length)return!1;for(let s of e){let l=r[s];if(!t.includes(s))return!1;if(s!=="ref"){let n=a[s];if(le(l)&&le(n)||O(l)&&O(n)||Array.isArray(l)&&Array.isArray(n)?!se(l,n):l!==n)return!1}}return!0}var Or=r=>r.type==="select-multiple",jt=r=>Pe(r)||pe(r),Qe=r=>we(r)&&r.isConnected,Ur=r=>{for(let a in r)if(Q(r[a]))return!0;return!1};function je(r,a={}){let e=Array.isArray(r);if(O(r)||e)for(let t in r)Array.isArray(r[t])||O(r[t])&&!Ur(r[t])?(a[t]=Array.isArray(r[t])?[]:{},je(r[t],a[t])):q(r[t])||(a[t]=!0);return a}function Tr(r,a,e){let t=Array.isArray(r);if(O(r)||t)for(let s in r)Array.isArray(r[s])||O(r[s])&&!Ur(r[s])?E(a)||Ze(e[s])?e[s]=Array.isArray(r[s])?je(r[s],[]):{...je(r[s])}:Tr(r[s],q(a)?{}:a[s],e[s]):e[s]=!se(r[s],a[s]);return e}var be=(r,a)=>Tr(r,a,je(a)),Mr=(r,{valueAsNumber:a,valueAsDate:e,setValueAs:t})=>E(r)?r:a?r===""?NaN:r&&+r:e&&Z(r)?new Date(r):t?t(r):r;function Xe(r){let a=r.ref;return Ie(a)?a.files:Pe(a)?Nr(r.refs).value:Or(a)?[...a.selectedOptions].map(({value:e})=>e):pe(a)?Dr(r.refs).value:Mr(E(a.value)?r.ref.value:a.value,r)}var Nt=(r,a,e,t)=>{let s={};for(let l of r){let n=m(a,l);n&&D(s,l,n._f)}return{criteriaMode:e,names:[...r],fields:s,shouldUseNativeValidation:t}},_e=r=>E(r)?r:De(r)?r.source:O(r)?De(r.value)?r.value.source:r.value:r,Br="AsyncFunction",Ct=r=>!!r&&!!r.validate&&!!(Q(r.validate)&&r.validate.constructor.name===Br||O(r.validate)&&Object.values(r.validate).find(a=>a.constructor.name===Br)),Et=r=>r.mount&&(r.required||r.min||r.max||r.maxLength||r.minLength||r.pattern||r.validate);function Lr(r,a,e){let t=m(r,e);if(t||Me(e))return{error:t,name:e};let s=e.split(".");for(;s.length;){let l=s.join("."),n=m(a,l),o=m(r,l);if(n&&!Array.isArray(n)&&e!==l)return{name:e};if(o&&o.type)return{name:l,error:o};s.pop()}return{name:e}}var Ot=(r,a,e,t,s)=>s.isOnAll?!1:!e&&s.isOnTouch?!(a||r):(e?t.isOnBlur:s.isOnBlur)?!r:(e?t.isOnChange:s.isOnChange)?r:!0,Ut=(r,a)=>!ve(m(r,a)).length&&U(r,a),Tt={mode:Y.onSubmit,reValidateMode:Y.onChange,shouldFocusError:!0};function Mt(r={}){let a={...Tt,...r},e={submitCount:0,isDirty:!1,isLoading:Q(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:a.errors||{},disabled:a.disabled||!1},t={},s=(O(a.defaultValues)||O(a.values))&&B(a.defaultValues||a.values)||{},l=a.shouldUnregister?{}:B(s),n={action:!1,mount:!1,watch:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,c=0,b={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={values:Je(),array:Je(),state:Je()},N=he(a.mode),k=he(a.reValidateMode),v=a.criteriaMode===Y.all,h=i=>u=>{clearTimeout(c),c=setTimeout(i,u)},A=async i=>{if(!a.disabled&&(b.isValid||i)){let u=a.resolver?$((await ie()).errors):await z(t,!0);u!==e.isValid&&_.state.next({isValid:u})}},j=(i,u)=>{!a.disabled&&(b.isValidating||b.validatingFields)&&((i||Array.from(o.mount)).forEach(d=>{d&&(u?D(e.validatingFields,d,u):U(e.validatingFields,d))}),_.state.next({validatingFields:e.validatingFields,isValidating:!$(e.validatingFields)}))},w=(i,u=[],d,p,g=!0,y=!0)=>{if(p&&d&&!a.disabled){if(n.action=!0,y&&Array.isArray(m(t,i))){let V=d(m(t,i),p.argA,p.argB);g&&D(t,i,V)}if(y&&Array.isArray(m(e.errors,i))){let V=d(m(e.errors,i),p.argA,p.argB);g&&D(e.errors,i,V),Ut(e.errors,i)}if(b.touchedFields&&y&&Array.isArray(m(e.touchedFields,i))){let V=d(m(e.touchedFields,i),p.argA,p.argB);g&&D(e.touchedFields,i,V)}b.dirtyFields&&(e.dirtyFields=be(s,l)),_.state.next({name:i,isDirty:F(i,u),dirtyFields:e.dirtyFields,errors:e.errors,isValid:e.isValid})}else D(l,i,u)},W=(i,u)=>{D(e.errors,i,u),_.state.next({errors:e.errors})},X=i=>{e.errors=i,_.state.next({errors:e.errors,isValid:!1})},T=(i,u,d,p)=>{let g=m(t,i);if(g){let y=m(l,i,E(d)?m(s,i):d);E(y)||p&&p.defaultChecked||u?D(l,i,u?y:Xe(g._f)):R(i,y),n.mount&&A()}},ue=(i,u,d,p,g)=>{let y=!1,V=!1,S={name:i};if(!a.disabled){let I=!!(m(t,i)&&m(t,i)._f&&m(t,i)._f.disabled);if(!d||p){b.isDirty&&(V=e.isDirty,e.isDirty=S.isDirty=F(),y=V!==S.isDirty);let L=I||se(m(s,i),u);V=!!(!I&&m(e.dirtyFields,i)),L||I?U(e.dirtyFields,i):D(e.dirtyFields,i,!0),S.dirtyFields=e.dirtyFields,y||(y=b.dirtyFields&&V!==!L)}if(d){let L=m(e.touchedFields,i);L||(D(e.touchedFields,i,d),S.touchedFields=e.touchedFields,y||(y=b.touchedFields&&L!==d))}y&&g&&_.state.next(S)}return y?S:{}},Ve=(i,u,d,p)=>{let g=m(e.errors,i),y=b.isValid&&G(u)&&e.isValid!==u;if(a.delayError&&d?(f=h(()=>W(i,d)),f(a.delayError)):(clearTimeout(c),f=null,d?D(e.errors,i,d):U(e.errors,i)),(d?!se(g,d):g)||!$(p)||y){let V={...p,...y&&G(u)?{isValid:u}:{},errors:e.errors,name:i};e={...e,...V},_.state.next(V)}},ie=async i=>{j(i,!0);let u=await a.resolver(l,a.context,Nt(i||o.mount,t,a.criteriaMode,a.shouldUseNativeValidation));return j(i),u},oe=async i=>{let{errors:u}=await ie(i);if(i)for(let d of i){let p=m(u,d);p?D(e.errors,d,p):U(e.errors,d)}else e.errors=u;return u},z=async(i,u,d={valid:!0})=>{for(let p in i){let g=i[p];if(g){let{_f:y,...V}=g;if(y){let S=o.array.has(y.name),I=g._f&&Ct(g._f);I&&b.validatingFields&&j([p],!0);let L=await qe(g,o.disabled,l,v,a.shouldUseNativeValidation&&!u,S);if(I&&b.validatingFields&&j([p]),L[y.name]&&(d.valid=!1,u))break;!u&&(m(L,y.name)?S?Sr(e.errors,L,y.name):D(e.errors,y.name,L[y.name]):U(e.errors,y.name))}!$(V)&&await z(V,u,d)}}return d.valid},Ae=()=>{for(let i of o.unMount){let u=m(t,i);u&&(u._f.refs?u._f.refs.every(d=>!Qe(d)):!Qe(u._f.ref))&&Ce(i)}o.unMount=new Set},F=(i,u)=>!a.disabled&&(i&&u&&D(l,i,u),!se(tr(),s)),C=(i,u,d)=>Ar(i,o,{...n.mount?l:E(u)?s:Z(i)?{[i]:u}:u},d,u),M=i=>ve(m(n.mount?l:s,i,a.shouldUnregister?m(s,i,[]):[])),R=(i,u,d={})=>{let p=m(t,i),g=u;if(p){let y=p._f;y&&(!y.disabled&&D(l,i,Mr(u,y)),g=we(y.ref)&&q(u)?"":u,Or(y.ref)?[...y.ref.options].forEach(V=>V.selected=g.includes(V.value)):y.refs?pe(y.ref)?y.refs.length>1?y.refs.forEach(V=>(!V.defaultChecked||!V.disabled)&&(V.checked=Array.isArray(g)?!!g.find(S=>S===V.value):g===V.value)):y.refs[0]&&(y.refs[0].checked=!!g):y.refs.forEach(V=>V.checked=V.value===g):Ie(y.ref)?y.ref.value="":(y.ref.value=g,y.ref.type||_.values.next({name:i,values:{...l}})))}(d.shouldDirty||d.shouldTouch)&&ue(i,g,d.shouldTouch,d.shouldDirty,!0),d.shouldValidate&&ge(i)},J=(i,u,d)=>{for(let p in u){let g=u[p],y=`${i}.${p}`,V=m(t,y);(o.array.has(i)||O(g)||V&&!V._f)&&!le(g)?J(y,g,d):R(y,g,d)}},K=(i,u,d={})=>{let p=m(t,i),g=o.array.has(i),y=B(u);D(l,i,y),g?(_.array.next({name:i,values:{...l}}),(b.isDirty||b.dirtyFields)&&d.shouldDirty&&_.state.next({name:i,dirtyFields:be(s,l),isDirty:F(i,y)})):p&&!p._f&&!q(y)?J(i,y,d):R(i,y,d),Re(i,o)&&_.state.next({...e}),_.values.next({name:n.mount?i:void 0,values:{...l}})},me=async i=>{n.mount=!0;let u=i.target,d=u.name,p=!0,g=m(t,d),y=()=>u.type?Xe(g._f):gr(i),V=S=>{p=Number.isNaN(S)||le(S)&&isNaN(S.getTime())||se(S,m(l,d,S))};if(g){let S,I,L=y(),te=i.type===Fe.BLUR||i.type===Fe.FOCUS_OUT,at=!Et(g._f)&&!a.resolver&&!m(e.errors,d)&&!g._f.deps||Ot(te,m(e.touchedFields,d),e.isSubmitted,k,N),Oe=Re(d,o,te);D(l,d,L),te?(g._f.onBlur&&g._f.onBlur(i),f&&f(0)):g._f.onChange&&g._f.onChange(i);let Ue=ue(d,L,te,!1),st=!$(Ue)||Oe;if(!te&&_.values.next({name:d,type:i.type,values:{...l}}),at)return b.isValid&&(a.mode==="onBlur"&&te?A():te||A()),st&&_.state.next({name:d,...Oe?{}:Ue});if(!te&&Oe&&_.state.next({...e}),a.resolver){let{errors:dr}=await ie([d]);if(V(L),p){let it=Lr(e.errors,t,d),fr=Lr(dr,t,it.name||d);S=fr.error,d=fr.name,I=$(dr)}}else j([d],!0),S=(await qe(g,o.disabled,l,v,a.shouldUseNativeValidation))[d],j([d]),V(L),p&&(S?I=!1:b.isValid&&(I=await z(t,!0)));p&&(g._f.deps&&ge(g._f.deps),Ve(d,I,S,Ue))}},ye=(i,u)=>{if(m(e.errors,u)&&i.focus)return i.focus(),1},ge=async(i,u={})=>{let d,p,g=H(i);if(a.resolver){let y=await oe(E(i)?i:g);d=$(y),p=i?!g.some(V=>m(y,V)):d}else i?(p=(await Promise.all(g.map(async y=>{let V=m(t,y);return await z(V&&V._f?{[y]:V}:V)}))).every(Boolean),!(!p&&!e.isValid)&&A()):p=d=await z(t);return _.state.next({...!Z(i)||b.isValid&&d!==e.isValid?{}:{name:i},...a.resolver||!i?{isValid:d}:{},errors:e.errors}),u.shouldFocus&&!p&&fe(t,ye,i?g:o.mount),p},tr=i=>{let u={...n.mount?l:s};return E(i)?u:Z(i)?m(u,i):i.map(d=>m(u,d))},ar=(i,u)=>({invalid:!!m((u||e).errors,i),isDirty:!!m((u||e).dirtyFields,i),error:m((u||e).errors,i),isValidating:!!m(e.validatingFields,i),isTouched:!!m((u||e).touchedFields,i)}),Xr=i=>{i&&H(i).forEach(u=>U(e.errors,u)),_.state.next({errors:i?e.errors:{}})},sr=(i,u,d)=>{let p=(m(t,i,{_f:{}})._f||{}).ref,{ref:g,message:y,type:V,...S}=m(e.errors,i)||{};D(e.errors,i,{...S,...u,ref:p}),_.state.next({name:i,errors:e.errors,isValid:!1}),d&&d.shouldFocus&&p&&p.focus&&p.focus()},et=(i,u)=>Q(i)?_.values.subscribe({next:d=>i(C(void 0,u),d)}):C(i,u,!0),Ce=(i,u={})=>{for(let d of i?H(i):o.mount)o.mount.delete(d),o.array.delete(d),u.keepValue||(U(t,d),U(l,d)),!u.keepError&&U(e.errors,d),!u.keepDirty&&U(e.dirtyFields,d),!u.keepTouched&&U(e.touchedFields,d),!u.keepIsValidating&&U(e.validatingFields,d),!a.shouldUnregister&&!u.keepDefaultValue&&U(s,d);_.values.next({values:{...l}}),_.state.next({...e,...u.keepDirty?{isDirty:F()}:{}}),!u.keepIsValid&&A()},ir=({disabled:i,name:u,field:d,fields:p})=>{(G(i)&&n.mount||i||o.disabled.has(u))&&(i?o.disabled.add(u):o.disabled.delete(u),ue(u,Xe(d?d._f:m(p,u)._f),!1,!1,!0))},Ee=(i,u={})=>{let d=m(t,i),p=G(u.disabled)||G(a.disabled);return D(t,i,{...d||{},_f:{...d&&d._f?d._f:{ref:{name:i}},name:i,mount:!0,...u}}),o.mount.add(i),d?ir({field:d,disabled:G(u.disabled)?u.disabled:a.disabled,name:i}):T(i,!0,u.value),{...p?{disabled:u.disabled||a.disabled}:{},...a.progressive?{required:!!u.required,min:_e(u.min),max:_e(u.max),minLength:_e(u.minLength),maxLength:_e(u.maxLength),pattern:_e(u.pattern)}:{},name:i,onChange:me,onBlur:me,ref:g=>{if(g){Ee(i,u),d=m(t,i);let y=E(g.value)&&g.querySelectorAll&&g.querySelectorAll("input,select,textarea")[0]||g,V=jt(y),S=d._f.refs||[];if(V?S.find(I=>I===y):y===d._f.ref)return;D(t,i,{_f:{...d._f,...V?{refs:[...S.filter(Qe),y,...Array.isArray(m(s,i))?[{}]:[]],ref:{type:y.type,name:i}}:{ref:y}}}),T(i,!1,void 0,y)}else d=m(t,i,{}),d._f&&(d._f.mount=!1),(a.shouldUnregister||u.shouldUnregister)&&!(pr(o.array,i)&&n.action)&&o.unMount.add(i)}}},lr=()=>a.shouldFocusError&&fe(t,ye,o.mount),rt=i=>{G(i)&&(_.state.next({disabled:i}),fe(t,(u,d)=>{let p=m(t,d);p&&(u.disabled=p._f.disabled||i,Array.isArray(p._f.refs)&&p._f.refs.forEach(g=>{g.disabled=p._f.disabled||i}))},0,!1))},nr=(i,u)=>async d=>{let p;d&&(d.preventDefault&&d.preventDefault(),d.persist&&d.persist());let g=B(l);if(o.disabled.size)for(let y of o.disabled)D(g,y,void 0);if(_.state.next({isSubmitting:!0}),a.resolver){let{errors:y,values:V}=await ie();e.errors=y,g=V}else await z(t);if(U(e.errors,"root"),$(e.errors)){_.state.next({errors:{}});try{await i(g,d)}catch(y){p=y}}else u&&await u({...e.errors},d),lr(),setTimeout(lr);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$(e.errors)&&!p,submitCount:e.submitCount+1,errors:e.errors}),p)throw p},tt=(i,u={})=>{m(t,i)&&(E(u.defaultValue)?K(i,B(m(s,i))):(K(i,u.defaultValue),D(s,i,B(u.defaultValue))),u.keepTouched||U(e.touchedFields,i),u.keepDirty||(U(e.dirtyFields,i),e.isDirty=u.defaultValue?F(i,B(m(s,i))):F()),u.keepError||(U(e.errors,i),b.isValid&&A()),_.state.next({...e}))},ur=(i,u={})=>{let d=i?B(i):s,p=B(d),g=$(i),y=g?s:p;if(u.keepDefaultValues||(s=d),!u.keepValues){if(u.keepDirtyValues){let V=new Set([...o.mount,...Object.keys(be(s,l))]);for(let S of Array.from(V))m(e.dirtyFields,S)?D(y,S,m(l,S)):K(S,m(y,S))}else{if(Te&&E(i))for(let V of o.mount){let S=m(t,V);if(S&&S._f){let I=Array.isArray(S._f.refs)?S._f.refs[0]:S._f.ref;if(we(I)){let L=I.closest("form");if(L){L.reset();break}}}}t={}}l=a.shouldUnregister?u.keepDefaultValues?B(s):{}:B(y),_.array.next({values:{...y}}),_.values.next({values:{...y}})}o={mount:u.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},n.mount=!b.isValid||!!u.keepIsValid||!!u.keepDirtyValues,n.watch=!!a.shouldUnregister,_.state.next({submitCount:u.keepSubmitCount?e.submitCount:0,isDirty:g?!1:u.keepDirty?e.isDirty:!!(u.keepDefaultValues&&!se(i,s)),isSubmitted:u.keepIsSubmitted?e.isSubmitted:!1,dirtyFields:g?{}:u.keepDirtyValues?u.keepDefaultValues&&l?be(s,l):e.dirtyFields:u.keepDefaultValues&&i?be(s,i):u.keepDirty?e.dirtyFields:{},touchedFields:u.keepTouched?e.touchedFields:{},errors:u.keepErrors?e.errors:{},isSubmitSuccessful:u.keepIsSubmitSuccessful?e.isSubmitSuccessful:!1,isSubmitting:!1})},or=(i,u)=>ur(Q(i)?i(l):i,u);return{control:{register:Ee,unregister:Ce,getFieldState:ar,handleSubmit:nr,setError:sr,_executeSchema:ie,_getWatch:C,_getDirty:F,_updateValid:A,_removeUnmounted:Ae,_updateFieldArray:w,_updateDisabledField:ir,_getFieldArray:M,_reset:ur,_resetDefaultValues:()=>Q(a.defaultValues)&&a.defaultValues().then(i=>{or(i,a.resetOptions),_.state.next({isLoading:!1})}),_updateFormState:i=>{e={...e,...i}},_disableForm:rt,_subjects:_,_proxyFormState:b,_setErrors:X,get _fields(){return t},get _formValues(){return l},get _state(){return n},set _state(i){n=i},get _defaultValues(){return s},get _names(){return o},set _names(i){o=i},get _formState(){return e},set _formState(i){e=i},get _options(){return a},set _options(i){a={...a,...i}}},trigger:ge,register:Ee,handleSubmit:nr,watch:et,setValue:K,getValues:tr,reset:or,resetField:tt,clearErrors:Xr,unregister:Ce,setError:sr,setFocus:(i,u={})=>{let d=m(t,i),p=d&&d._f;if(p){let g=p.refs?p.refs[0]:p.ref;g.focus&&(g.focus(),u.shouldSelect&&Q(g.select)&&g.select())}},getFieldState:ar}}function Bt(r={}){let a=x.useRef(void 0),e=x.useRef(void 0),[t,s]=x.useState({isDirty:!1,isValidating:!1,isLoading:Q(r.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1,defaultValues:Q(r.defaultValues)?void 0:r.defaultValues});a.current||(a.current={...Mt(r),formState:t});let l=a.current.control;return l._options=r,Se({subject:l._subjects.state,next:n=>{xr(n,l._proxyFormState,l._updateFormState,!0)&&s({...l._formState})}}),x.useEffect(()=>l._disableForm(r.disabled),[l,r.disabled]),x.useEffect(()=>{if(l._proxyFormState.isDirty){let n=l._getDirty();n!==t.isDirty&&l._subjects.state.next({isDirty:n})}},[l,t.isDirty]),x.useEffect(()=>{r.values&&!se(r.values,e.current)?(l._reset(r.values,l._options.resetOptions),e.current=r.values,s(n=>({...n}))):l._resetDefaultValues()},[r.values,l]),x.useEffect(()=>{r.errors&&l._setErrors(r.errors)},[r.errors,l]),x.useEffect(()=>{l._state.mount||(l._updateValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),x.useEffect(()=>{r.shouldUnregister&&l._subjects.values.next({values:l._getWatch()})},[r.shouldUnregister,l]),a.current.formState=_r(t,l),a.current}var Rr=(r,a,e)=>{if(r&&"reportValidity"in r){let t=m(e,a);r.setCustomValidity(t&&t.message||""),r.reportValidity()}},er=(r,a)=>{for(let e in a.fields){let t=a.fields[e];t&&t.ref&&"reportValidity"in t.ref?Rr(t.ref,e,r):t&&t.refs&&t.refs.forEach(s=>Rr(s,e,r))}},Ir=(r,a)=>{a.shouldUseNativeValidation&&er(r,a);let e={};for(let t in r){let s=m(a.fields,t),l=Object.assign(r[t]||{},{ref:s&&s.ref});if(Lt(a.names||Object.keys(r),t)){let n=Object.assign({},m(e,t));D(n,"root",l),D(e,t,n)}else D(e,t,l)}return e},Lt=(r,a)=>{let e=Pr(a);return r.some(t=>Pr(t).match(`^${e}\\.\\d+`))};function Pr(r){return r.replace(/\]|\[/g,"")}function qr(r,a){try{var e=r()}catch(t){return a(t)}return e&&e.then?e.then(void 0,a):e}function Rt(r,a){for(var e={};r.length;){var t=r[0],s=t.code,l=t.message,n=t.path.join(".");if(!e[n])if("unionErrors"in t){var o=t.unionErrors[0].errors[0];e[n]={message:o.message,type:o.code}}else e[n]={message:l,type:s};if("unionErrors"in t&&t.unionErrors.forEach(function(b){return b.errors.forEach(function(_){return r.push(_)})}),a){var f=e[n].types,c=f&&f[t.code];e[n]=Be(n,a,e,s,c?[].concat(c,t.message):t.message)}r.shift()}return e}function It(r,a){for(var e={};r.length;){var t=r[0],s=t.code,l=t.message,n=t.path.join(".");if(!e[n])if(t.code==="invalid_union"&&t.errors.length>0){var o=t.errors[0][0];e[n]={message:o.message,type:o.code}}else e[n]={message:l,type:s};if(t.code==="invalid_union"&&t.errors.forEach(function(b){return b.forEach(function(_){return r.push(_)})}),a){var f=e[n].types,c=f&&f[t.code];e[n]=Be(n,a,e,s,c?[].concat(c,t.message):t.message)}r.shift()}return e}function Pt(r,a,e){if(e===void 0&&(e={}),(function(t){return"_def"in t&&typeof t._def=="object"&&"typeName"in t._def})(r))return function(t,s,l){try{return Promise.resolve(qr(function(){return Promise.resolve(r[e.mode==="sync"?"parse":"parseAsync"](t,a)).then(function(n){return l.shouldUseNativeValidation&&er({},l),{errors:{},values:e.raw?Object.assign({},t):n}})},function(n){if((function(o){return Array.isArray(o==null?void 0:o.issues)})(n))return{values:{},errors:Ir(Rt(n.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw n}))}catch(n){return Promise.reject(n)}};if((function(t){return"_zod"in t&&typeof t._zod=="object"})(r))return function(t,s,l){try{return Promise.resolve(qr(function(){return Promise.resolve((e.mode==="sync"?ut:ot)(r,t,a)).then(function(n){return l.shouldUseNativeValidation&&er({},l),{errors:{},values:e.raw?Object.assign({},t):n}})},function(n){if((function(o){return o instanceof dt})(n))return{values:{},errors:Ir(It(n.issues,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw n}))}catch(n){return Promise.reject(n)}};throw Error("Invalid input: not a Zod schema")}var re=mr(),P=cr(ft(),1),qt=br;const $t=()=>{let r=(0,re.c)(4),a=ne().formState.errors;if(Object.keys(a).length===0)return null;let e;r[0]===a?e=r[1]:(e=Object.values(a).map(Wt).filter(Boolean),r[0]=a,r[1]=e);let t=e.join(", "),s;return r[2]===t?s=r[3]:(s=(0,P.jsx)("div",{className:"text-destructive p-2 rounded-md bg-red-500/10",children:t}),r[2]=t,r[3]=s),s};var $r=x.createContext({}),Ht=r=>{let a=(0,re.c)(10),e;a[0]===r?e=a[1]:({...e}=r,a[0]=r,a[1]=e);let t;a[2]===e.name?t=a[3]:(t={name:e.name},a[2]=e.name,a[3]=t);let s;a[4]===e?s=a[5]:(s=(0,P.jsx)(Ft,{...e}),a[4]=e,a[5]=s);let l;return a[6]!==e.name||a[7]!==t||a[8]!==s?(l=(0,P.jsx)($r,{value:t,children:s},e.name),a[6]=e.name,a[7]=t,a[8]=s,a[9]=l):l=a[9],l},xe=()=>{let r=(0,re.c)(11),a=x.use($r),e=x.use(Hr),{getFieldState:t,formState:s}=ne(),l;r[0]!==a.name||r[1]!==s||r[2]!==t?(l=t(a.name,s),r[0]=a.name,r[1]=s,r[2]=t,r[3]=l):l=r[3];let n=l;if(!a)throw Error("useFormField should be used within ");let{id:o}=e,f=`${o}-form-item`,c=`${o}-form-item-description`,b=`${o}-form-item-message`,_;return r[4]!==a.name||r[5]!==n||r[6]!==o||r[7]!==f||r[8]!==c||r[9]!==b?(_={id:o,name:a.name,formItemId:f,formDescriptionId:c,formMessageId:b,...n},r[4]=a.name,r[5]=n,r[6]=o,r[7]=f,r[8]=c,r[9]=b,r[10]=_):_=r[10],_},Hr=x.createContext({}),Wr=x.forwardRef((r,a)=>{let e=(0,re.c)(14),t,s;e[0]===r?(t=e[1],s=e[2]):({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s);let l=x.useId(),n;e[3]===l?n=e[4]:(n={id:l},e[3]=l,e[4]=n);let o;e[5]===t?o=e[6]:(o=de("flex flex-col gap-1",t),e[5]=t,e[6]=o);let f;e[7]!==s||e[8]!==a||e[9]!==o?(f=(0,P.jsx)("div",{ref:a,className:o,...s}),e[7]=s,e[8]=a,e[9]=o,e[10]=f):f=e[10];let c;return e[11]!==n||e[12]!==f?(c=(0,P.jsx)(Hr,{value:n,children:f}),e[11]=n,e[12]=f,e[13]=c):c=e[13],c});Wr.displayName="FormItem";var zr=x.forwardRef((r,a)=>{let e=(0,re.c)(11),t,s;e[0]===r?(t=e[1],s=e[2]):({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s);let{error:l,formItemId:n}=xe();if(!s.children)return;let o=l&&"text-destructive",f;e[3]!==t||e[4]!==o?(f=de(o,t),e[3]=t,e[4]=o,e[5]=f):f=e[5];let c;return e[6]!==n||e[7]!==s||e[8]!==a||e[9]!==f?(c=(0,P.jsx)(ht,{ref:a,className:f,htmlFor:n,...s}),e[6]=n,e[7]=s,e[8]=a,e[9]=f,e[10]=c):c=e[10],c});zr.displayName="FormLabel";var Kr=x.forwardRef((r,a)=>{let e=(0,re.c)(8),t;e[0]===r?t=e[1]:({...t}=r,e[0]=r,e[1]=t);let{error:s,formItemId:l,formDescriptionId:n,formMessageId:o}=xe(),f=s?`${n} ${o}`:n,c=!!s,b;return e[2]!==l||e[3]!==t||e[4]!==a||e[5]!==f||e[6]!==c?(b=(0,P.jsx)(ct,{ref:a,id:l,"aria-describedby":f,"aria-invalid":c,...t}),e[2]=l,e[3]=t,e[4]=a,e[5]=f,e[6]=c,e[7]=b):b=e[7],b});Kr.displayName="FormControl";var Gr=x.forwardRef((r,a)=>{let e=(0,re.c)(10),t,s;e[0]===r?(t=e[1],s=e[2]):({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s);let{formDescriptionId:l}=xe();if(!s.children)return null;let n;e[3]===t?n=e[4]:(n=de("text-sm text-muted-foreground",t),e[3]=t,e[4]=n);let o;return e[5]!==l||e[6]!==s||e[7]!==a||e[8]!==n?(o=(0,P.jsx)("p",{ref:a,id:l,className:n,...s}),e[5]=l,e[6]=s,e[7]=a,e[8]=n,e[9]=o):o=e[9],o});Gr.displayName="FormDescription";var Yr=x.forwardRef((r,a)=>{let e=(0,re.c)(12),t,s,l;e[0]===r?(t=e[1],s=e[2],l=e[3]):({className:s,children:t,...l}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l);let{error:n,formMessageId:o}=xe(),f=n!=null&&n.message?String(n==null?void 0:n.message):t;if(!f)return null;let c;e[4]===s?c=e[5]:(c=de("text-xs font-medium text-destructive",s),e[4]=s,e[5]=c);let b;return e[6]!==f||e[7]!==o||e[8]!==l||e[9]!==a||e[10]!==c?(b=(0,P.jsx)("p",{ref:a,id:o,className:c,...l,children:f}),e[6]=f,e[7]=o,e[8]=l,e[9]=a,e[10]=c,e[11]=b):b=e[11],b});Yr.displayName="FormMessage";var Jr=r=>{let a=(0,re.c)(7),{className:e}=r,{error:t}=xe(),s=t!=null&&t.message?String(t==null?void 0:t.message):null;if(!s)return null;let l;a[0]===e?l=a[1]:(l=de("stroke-[1.8px]",e),a[0]=e,a[1]=l);let n;a[2]===l?n=a[3]:(n=(0,P.jsx)(nt,{className:l}),a[2]=l,a[3]=n);let o;return a[4]!==s||a[5]!==n?(o=(0,P.jsx)(pt,{content:s,children:n}),a[4]=s,a[5]=n,a[6]=o):o=a[6],o};Jr.displayName="FormMessageTooltip";function Wt(r){return r==null?void 0:r.message}var rr=mr(),Ne=x.forwardRef((r,a)=>{let e=(0,rr.c)(16),t,s,l;e[0]===r?(t=e[1],s=e[2],l=e[3]):({className:s,bottomAdornment:t,...l}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l);let n;e[4]===s?n=e[5]:(n=de("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid","flex w-full mb-1 rounded-sm border border-input bg-background px-3 py-2 text-sm font-code ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent disabled:cursor-not-allowed disabled:opacity-50 min-h-6",s),e[4]=s,e[5]=n);let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=mt.stopPropagation(),e[6]=o):o=e[6];let f;e[7]!==l||e[8]!==a||e[9]!==n?(f=(0,P.jsx)("textarea",{className:n,onClick:o,ref:a,...l}),e[7]=l,e[8]=a,e[9]=n,e[10]=f):f=e[10];let c;e[11]===t?c=e[12]:(c=t&&(0,P.jsx)("div",{className:"absolute right-0 bottom-1 flex items-center pr-[6px] pointer-events-none text-muted-foreground h-6",children:t}),e[11]=t,e[12]=c);let b;return e[13]!==f||e[14]!==c?(b=(0,P.jsxs)("div",{className:"relative",children:[f,c]}),e[13]=f,e[14]=c,e[15]=b):b=e[15],b});Ne.displayName="Textarea";const Zr=x.forwardRef((r,a)=>{let e=(0,rr.c)(16),t,s,l;e[0]===r?(t=e[1],s=e[2],l=e[3]):({className:t,onValueChange:s,...l}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l);let n;e[4]!==s||e[5]!==l.delay||e[6]!==l.value?(n={initialValue:l.value,delay:l.delay,onChange:s},e[4]=s,e[5]=l.delay,e[6]=l.value,e[7]=n):n=e[7];let{value:o,onChange:f}=vt(n),c;e[8]===f?c=e[9]:(c=_=>f(_.target.value),e[8]=f,e[9]=c);let b;return e[10]!==t||e[11]!==l||e[12]!==a||e[13]!==c||e[14]!==o?(b=(0,P.jsx)(Ne,{ref:a,className:t,...l,onChange:c,value:o}),e[10]=t,e[11]=l,e[12]=a,e[13]=c,e[14]=o,e[15]=b):b=e[15],b});Zr.displayName="DebouncedTextarea";const Qr=x.forwardRef((r,a)=>{let e=(0,rr.c)(23),t,s,l;e[0]===r?(t=e[1],s=e[2],l=e[3]):({className:t,onValueChange:s,...l}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l);let[n,o]=x.useState(l.value),f;e[4]!==n||e[5]!==s||e[6]!==l.value?(f={prop:l.value,defaultProp:n,onChange:s},e[4]=n,e[5]=s,e[6]=l.value,e[7]=f):f=e[7];let[c,b]=gt(f),_,N;e[8]===c?(_=e[9],N=e[10]):(_=()=>{o(c||"")},N=[c],e[8]=c,e[9]=_,e[10]=N),x.useEffect(_,N);let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=j=>o(j.target.value),e[11]=k):k=e[11];let v,h;e[12]!==n||e[13]!==b?(v=()=>b(n),h=j=>{j.ctrlKey&&j.key==="Enter"&&(j.preventDefault(),b(n))},e[12]=n,e[13]=b,e[14]=v,e[15]=h):(v=e[14],h=e[15]);let A;return e[16]!==t||e[17]!==n||e[18]!==l||e[19]!==a||e[20]!==v||e[21]!==h?(A=(0,P.jsx)(Ne,{ref:a,className:t,...l,value:n,onChange:k,onBlur:v,onKeyDown:h}),e[16]=t,e[17]=n,e[18]=l,e[19]=a,e[20]=v,e[21]=h,e[22]=A):A=e[22],A});Qr.displayName="OnBlurredTextarea";export{ne as _,Kr as a,Ht as c,Yr as d,Jr as f,Bt as g,Dt as h,qt as i,Wr as l,br as m,Qr as n,Gr as o,Pt as p,Ne as r,$t as s,Zr as t,zr as u,Fr as v,bt as y}; diff --git a/docs/assets/textile-8fxKT1uq.js b/docs/assets/textile-8fxKT1uq.js new file mode 100644 index 0000000..6cc5053 --- /dev/null +++ b/docs/assets/textile-8fxKT1uq.js @@ -0,0 +1 @@ +import{t}from"./textile-D12VShq0.js";export{t as textile}; diff --git a/docs/assets/textile-D12VShq0.js b/docs/assets/textile-D12VShq0.js new file mode 100644 index 0000000..3fe5476 --- /dev/null +++ b/docs/assets/textile-D12VShq0.js @@ -0,0 +1 @@ +var u={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function b(t,e){e.mode=r.newLayout,e.tableHeading=!1,e.layoutType==="definitionList"&&e.spanningLayout&&t.match(a("definitionListEnd"),!1)&&(e.spanningLayout=!1)}function d(t,e,i){if(i==="_")return t.eat("_")?s(t,e,"italic",/__/,2):s(t,e,"em",/_/,1);if(i==="*")return t.eat("*")?s(t,e,"bold",/\*\*/,2):s(t,e,"strong",/\*/,1);if(i==="[")return t.match(/\d+\]/)&&(e.footCite=!0),o(e);if(i==="("&&t.match(/^(r|tm|c)\)/))return u.specialChar;if(i==="<"&&t.match(/(\w+)[^>]+>[^<]+<\/\1>/))return u.html;if(i==="?"&&t.eat("?"))return s(t,e,"cite",/\?\?/,2);if(i==="="&&t.eat("="))return s(t,e,"notextile",/==/,2);if(i==="-"&&!t.eat("-"))return s(t,e,"deletion",/-/,1);if(i==="+")return s(t,e,"addition",/\+/,1);if(i==="~")return s(t,e,"sub",/~/,1);if(i==="^")return s(t,e,"sup",/\^/,1);if(i==="%")return s(t,e,"span",/%/,1);if(i==="@")return s(t,e,"code",/@/,1);if(i==="!"){var l=s(t,e,"image",/(?:\([^\)]+\))?!/,1);return t.match(/^:\S+/),l}return o(e)}function s(t,e,i,l,p){var c=t.pos>p?t.string.charAt(t.pos-p-1):null,m=t.peek();if(e[i]){if((!m||/\W/.test(m))&&c&&/\S/.test(c)){var h=o(e);return e[i]=!1,h}}else(!c||/\W/.test(c))&&m&&/\S/.test(m)&&t.match(RegExp("^.*\\S"+l.source+"(?:\\W|$)"),!1)&&(e[i]=!0,e.mode=r.attributes);return o(e)}function o(t){var e=f(t);if(e)return e;var i=[];return t.layoutType&&i.push(u[t.layoutType]),i=i.concat(y(t,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),t.layoutType==="header"&&i.push(u.header+"-"+t.header),i.length?i.join(" "):null}function f(t){var e=t.layoutType;switch(e){case"notextile":case"code":case"pre":return u[e];default:return t.notextile?u.notextile+(e?" "+u[e]:""):null}}function y(t){for(var e=[],i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(t){switch(t){case"drawTable":return n.makeRe("^",n.single.drawTable,"$");case"html":return n.makeRe("^",n.single.html,"(?:",n.single.html,")*","$");case"linkDefinition":return n.makeRe("^",n.single.linkDefinition,"$");case"listLayout":return n.makeRe("^",n.single.list,a("allAttributes"),"*\\s+");case"tableCellAttributes":return n.makeRe("^",n.choiceRe(n.single.tableCellAttributes,a("allAttributes")),"+\\.");case"type":return n.makeRe("^",a("allTypes"));case"typeLayout":return n.makeRe("^",a("allTypes"),a("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return n.makeRe("^",a("allAttributes"),"+");case"allTypes":return n.choiceRe(n.single.div,n.single.foot,n.single.header,n.single.bc,n.single.bq,n.single.notextile,n.single.pre,n.single.table,n.single.para);case"allAttributes":return n.choiceRe(n.attributes.selector,n.attributes.css,n.attributes.lang,n.attributes.align,n.attributes.pad);default:return n.makeRe("^",n.single[t])}},makeRe:function(){for(var t="",e=0;e$/,b=/^$/,$=/^\{\{\{$/,v=/^\}\}\}$/,x=/.*?\}\}\}/;function a(e,t,n){return t.tokenize=n,n(e,t)}function i(e,t){var n=e.sol(),r=e.peek();if(t.block=!1,n&&/[<\/\*{}\-]/.test(r)){if(e.match($))return t.block=!0,a(e,t,o);if(e.match(h))return"quote";if(e.match(m)||e.match(k)||e.match(s)||e.match(d)||e.match(p)||e.match(b))return"comment";if(e.match(f))return"contentSeparator"}if(e.next(),n&&/[\/\*!#;:>|]/.test(r)){if(r=="!")return e.skipToEnd(),"header";if(r=="*")return e.eatWhile("*"),"comment";if(r=="#")return e.eatWhile("#"),"comment";if(r==";")return e.eatWhile(";"),"comment";if(r==":")return e.eatWhile(":"),"comment";if(r==">")return e.eatWhile(">"),"quote";if(r=="|")return"header"}if(r=="{"&&e.match("{{"))return a(e,t,o);if(/[hf]/i.test(r)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if(r=='"')return"string";if(r=="~"||/[\[\]]/.test(r)&&e.match(r))return"brace";if(r=="@")return e.eatWhile(l),"link";if(/\d/.test(r))return e.eatWhile(/\d/),"number";if(r=="/"){if(e.eat("%"))return a(e,t,z);if(e.eat("/"))return a(e,t,w)}if(r=="_"&&e.eat("_"))return a(e,t,W);if(r=="-"&&e.eat("-")){if(e.peek()!=" ")return a(e,t,_);if(e.peek()==" ")return"brace"}return r=="'"&&e.eat("'")?a(e,t,g):r=="<"&&e.eat("<")?a(e,t,y):(e.eatWhile(/[\w\$_]/),u.propertyIsEnumerable(e.current())?"keyword":null)}function z(e,t){for(var n=!1,r;r=e.next();){if(r=="/"&&n){t.tokenize=i;break}n=r=="%"}return"comment"}function g(e,t){for(var n=!1,r;r=e.next();){if(r=="'"&&n){t.tokenize=i;break}n=r=="'"}return"strong"}function o(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(x)||n&&e.sol()&&e.match(v)?(t.tokenize=i,"comment"):(e.next(),"comment")}function w(e,t){for(var n=!1,r;r=e.next();){if(r=="/"&&n){t.tokenize=i;break}n=r=="/"}return"emphasis"}function W(e,t){for(var n=!1,r;r=e.next();){if(r=="_"&&n){t.tokenize=i;break}n=r=="_"}return"link"}function _(e,t){for(var n=!1,r;r=e.next();){if(r=="-"&&n){t.tokenize=i;break}n=r=="-"}return"deleted"}function y(e,t){if(e.current()=="<<")return"meta";var n=e.next();return n?n==">"&&e.peek()==">"?(e.next(),t.tokenize=i,"meta"):(e.eatWhile(/[\w\$_]/),c.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=i,null)}const S={name:"tiddlywiki",startState:function(){return{tokenize:i}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}};export{S as tiddlyWiki}; diff --git a/docs/assets/tiki-ZqBe4Kjv.js b/docs/assets/tiki-ZqBe4Kjv.js new file mode 100644 index 0000000..4e781fb --- /dev/null +++ b/docs/assets/tiki-ZqBe4Kjv.js @@ -0,0 +1 @@ +function a(n,e,t){return function(r,f){for(;!r.eol();){if(r.match(e)){f.tokenize=u;break}r.next()}return t&&(f.tokenize=t),n}}function p(n){return function(e,t){for(;!e.eol();)e.next();return t.tokenize=u,n}}function u(n,e){function t(m){return e.tokenize=m,m(n,e)}var r=n.sol(),f=n.next();switch(f){case"{":return n.eat("/"),n.eatSpace(),n.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),e.tokenize=d,"tag";case"_":if(n.eat("_"))return t(a("strong","__",u));break;case"'":if(n.eat("'"))return t(a("em","''",u));break;case"(":if(n.eat("("))return t(a("link","))",u));break;case"[":return t(a("url","]",u));case"|":if(n.eat("|"))return t(a("comment","||"));break;case"-":if(n.eat("="))return t(a("header string","=-",u));if(n.eat("-"))return t(a("error tw-deleted","--",u));break;case"=":if(n.match("=="))return t(a("tw-underline","===",u));break;case":":if(n.eat(":"))return t(a("comment","::"));break;case"^":return t(a("tw-box","^"));case"~":if(n.match("np~"))return t(a("meta","~/np~"));break}if(r)switch(f){case"!":return n.match("!!!!!")||n.match("!!!!")||n.match("!!!")||n.match("!!"),t(p("header string"));case"*":case"#":case"+":return t(p("tw-listitem bracket"))}return null}var k,l;function d(n,e){var t=n.next(),r=n.peek();return t=="}"?(e.tokenize=u,"tag"):t=="("||t==")"?"bracket":t=="="?(l="equals",r==">"&&(n.next(),r=n.peek()),/[\'\"]/.test(r)||(e.tokenize=z()),"operator"):/[\'\"]/.test(t)?(e.tokenize=v(t),e.tokenize(n,e)):(n.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function v(n){return function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=d;break}return"string"}}function z(){return function(n,e){for(;!n.eol();){var t=n.next(),r=n.peek();if(t==" "||t==","||/[ )}]/.test(r)){e.tokenize=d;break}}return"string"}}var i,c;function s(){for(var n=arguments.length-1;n>=0;n--)i.cc.push(arguments[n])}function o(){return s.apply(null,arguments),!0}function x(n,e){var t=i.context&&i.context.noIndent;i.context={prev:i.context,pluginName:n,indent:i.indented,startOfLine:e,noIndent:t}}function b(){i.context&&(i.context=i.context.prev)}function w(n){if(n=="openPlugin")return i.pluginName=k,o(g,L(i.startOfLine));if(n=="closePlugin"){var e=!1;return i.context?(e=i.context.pluginName!=k,b()):e=!0,e&&(c="error"),o(O(e))}else return n=="string"&&((!i.context||i.context.name!="!cdata")&&x("!cdata"),i.tokenize==u&&b()),o()}function L(n){return function(e){return e=="selfclosePlugin"||e=="endPlugin"||e=="endPlugin"&&x(i.pluginName,n),o()}}function O(n){return function(e){return n&&(c="error"),e=="endPlugin"?o():s()}}function g(n){return n=="keyword"?(c="attribute",o(g)):n=="equals"?o(P,g):s()}function P(n){return n=="keyword"?(c="string",o()):n=="string"?o(h):s()}function h(n){return n=="string"?o(h):s()}const y={name:"tiki",startState:function(){return{tokenize:u,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(n,e){if(n.sol()&&(e.startOfLine=!0,e.indented=n.indentation()),n.eatSpace())return null;c=l=k=null;var t=e.tokenize(n,e);if((t||l)&&t!="comment")for(i=e;!(e.cc.pop()||w)(l||t););return e.startOfLine=!1,c||t},indent:function(n,e,t){var r=n.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(e)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+t.unit:0}};export{y as tiki}; diff --git a/docs/assets/time-DIXLO3Ax.js b/docs/assets/time-DIXLO3Ax.js new file mode 100644 index 0000000..81762cc --- /dev/null +++ b/docs/assets/time-DIXLO3Ax.js @@ -0,0 +1 @@ +import{a as _,s as q}from"./precisionRound-Cl9k9ZmS.js";import{a as z,i as G}from"./linear-AjjmB_kQ.js";import{A as D,C as d,D as w,E as A,M as k,N as H,O as x,S as J,T as y,_ as K,c as C,j as Q,k as I,l as U,o as j,p as E,s as V,t as W,v as F,w as X,x as L,y as Z}from"./defaultLocale-DzliDDTm.js";import{n as $}from"./init-DsZRk2YA.js";function nn(r,u){let o;if(u===void 0)for(let t of r)t!=null&&(o=t)&&(o=t);else{let t=-1;for(let a of r)(a=u(a,++t,r))!=null&&(o=a)&&(o=a)}return o}function rn(r,u){let o;if(u===void 0)for(let t of r)t!=null&&(o>t||o===void 0&&t>=t)&&(o=t);else{let t=-1;for(let a of r)(a=u(a,++t,r))!=null&&(o>a||o===void 0&&a>=a)&&(o=a)}return o}function N(r,u,o,t,a,f){let e=[[y,1,D],[y,5,5*D],[y,15,15*D],[y,30,30*D],[f,1,x],[f,5,5*x],[f,15,15*x],[f,30,30*x],[a,1,w],[a,3,3*w],[a,6,6*w],[a,12,12*w],[t,1,A],[t,2,2*A],[o,1,Q],[u,1,I],[u,3,3*I],[r,1,k]];function h(s,i,m){let l=ib).right(e,l);if(c===e.length)return r.every(_(s/k,i/k,m));if(c===0)return H.every(Math.max(_(s,i,m),1));let[g,M]=e[l/e[c-1][2]B&&V.push("'"+this.terminals_[D]+"'");et=b.showPosition?"Parse error on line "+(M+1)+`: +`+b.showPosition()+` +Expecting `+V.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(M+1)+": Unexpected "+(_==F?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(et,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:I,expected:V})}if($[0]instanceof Array&&$.length>1)throw Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch($[0]){case 1:o.push(_),y.push(b.yytext),c.push(b.yylloc),o.push($[1]),_=null,q?(_=q,q=null):(N=b.yyleng,f=b.yytext,M=b.yylineno,I=b.yylloc,A>0&&A--);break;case 2:if(T=this.productions_[$[1]][1],R.$=y[y.length-T],R._$={first_line:c[c.length-(T||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(T||1)].first_column,last_column:c[c.length-1].last_column},C&&(R._$.range=[c[c.length-(T||1)].range[0],c[c.length-1].range[1]]),U=this.performAction.apply(R,[f,N,M,w.yy,$[1],y,c].concat(W)),U!==void 0)return U;T&&(o=o.slice(0,-1*T*2),y=y.slice(0,-1*T),c=c.slice(0,-1*T)),o.push(this.productions_[$[1]][0]),y.push(R.$),c.push(R._$),tt=v[o[o.length-2]][o[o.length-1]],o.push(tt);break;case 3:return!0}}return!0},"parse")};m.lexer=(function(){return{EOF:1,parseError:s(function(r,h){if(this.yy.parser)this.yy.parser.parseError(r,h);else throw Error(r)},"parseError"),setInput:s(function(r,h){return this.yy=h||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var h=r.length,o=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===d.length?this.yylloc.first_column:0)+d[d.length-o.length].length-o[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),h=Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+h+"^"},"showPosition"),test_match:s(function(r,h){var o,d,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),d=r[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],o=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var c in y)this[c]=y[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,h,o,d;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),c=0;ch[0].length)){if(h=o,d=c,this.options.backtrack_lexer){if(r=this.test_match(o,y[c]),r!==!1)return r;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(r=this.test_match(h,y[d]),r===!1?!1:r):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){return this.next()||this.lex()},"lex"),begin:s(function(r){this.conditionStack.push(r)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},"topState"),pushState:s(function(r){this.begin(r)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(r,h,o,d){switch(o){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}}})();function x(){this.yy={}}return s(x,"Parser"),x.prototype=m,m.Parser=x,new x})();Y.parser=Y;var Et=Y,nt={};xt(nt,{addEvent:()=>dt,addSection:()=>lt,addTask:()=>ht,addTaskOrg:()=>ut,clear:()=>at,default:()=>It,getCommonDb:()=>st,getSections:()=>ot,getTasks:()=>ct});var j="",rt=0,Q=[],G=[],z=[],st=s(()=>$t,"getCommonDb"),at=s(function(){Q.length=0,G.length=0,j="",z.length=0,wt()},"clear"),lt=s(function(i){j=i,Q.push(i)},"addSection"),ot=s(function(){return Q},"getSections"),ct=s(function(){let i=pt(),t=0;for(;!i&&t<100;)i=pt(),t++;return G.push(...z),G},"getTasks"),ht=s(function(i,t,e){let a={id:rt++,section:j,type:j,task:i,score:t||0,events:e?[e]:[]};z.push(a)},"addTask"),dt=s(function(i){z.find(t=>t.id===rt-1).events.push(i)},"addEvent"),ut=s(function(i){let t={section:j,type:j,description:i,task:i,classes:[]};G.push(t)},"addTaskOrg"),pt=s(function(){let i=s(function(e){return z[e].processed},"compileTask"),t=!0;for(let[e,a]of z.entries())i(e),t&&(t=a.processed);return t},"compileTasks"),It={clear:at,getCommonDb:st,addSection:lt,getSections:ot,getTasks:ct,addTask:ht,addTaskOrg:ut,addEvent:dt},Tt=12,Z=s(function(i,t){let e=i.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},"drawRect"),Mt=s(function(i,t){let e=i.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),a=i.append("g");a.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function n(g){let p=it().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}s(n,"smile");function l(g){let p=it().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}s(l,"sad");function u(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s(u,"ambivalent"),t.score>3?n(a):t.score<3?l(a):u(a),e},"drawFace"),Nt=s(function(i,t){let e=i.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},"drawCircle"),yt=s(function(i,t){let e=t.text.replace(//gi," "),a=i.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);let n=a.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),a},"drawText"),At=s(function(i,t){function e(n,l,u,g,p){return n+","+l+" "+(n+u)+","+l+" "+(n+u)+","+(l+g-p)+" "+(n+u-p*1.2)+","+(l+g)+" "+n+","+(l+g)}s(e,"genPoints");let a=i.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,yt(i,t)},"drawLabel"),Ct=s(function(i,t,e){let a=i.append("g"),n=J();n.x=t.x,n.y=t.y,n.fill=t.fill,n.width=e.width,n.height=e.height,n.class="journey-section section-type-"+t.num,n.rx=3,n.ry=3,Z(a,n),ft(e)(t.text,a,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),gt=-1,Lt=s(function(i,t,e){let a=t.x+e.width/2,n=i.append("g");gt++,n.append("line").attr("id","task"+gt).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Mt(n,{cx:a,cy:300+(5-t.score)*30,score:t.score});let l=J();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=e.width,l.height=e.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,Z(n,l),ft(e)(t.task,n,l.x,l.y,l.width,l.height,{class:"task"},e,t.colour)},"drawTask"),Pt=s(function(i,t){Z(i,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Ht=s(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),J=s(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ft=(function(){function i(n,l,u,g,p,m,x,r){a(l.append("text").attr("x",u+p/2).attr("y",g+m/2+5).style("font-color",r).style("text-anchor","middle").text(n),x)}s(i,"byText");function t(n,l,u,g,p,m,x,r,h){let{taskFontSize:o,taskFontFamily:d}=r,y=n.split(//gi);for(let c=0;c)/).reverse(),n,l=[],u=1.1,g=e.attr("y"),p=parseFloat(e.attr("dy")),m=e.text(null).append("tspan").attr("x",0).attr("y",g).attr("dy",p+"em");for(let x=0;xt||n==="
")&&(l.pop(),m.text(l.join(" ").trim()),l=n==="
"?[""]:[n],m=e.append("tspan").attr("x",0).attr("y",g).attr("dy",u+"em").text(n))})}s(K,"wrap");var Rt=s(function(i,t,e,a){var x;let n=e%Tt-1,l=i.append("g");t.section=n,l.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+n));let u=l.append("g"),g=l.append("g"),p=g.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,t.width).node().getBBox(),m=(x=a.fontSize)!=null&&x.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=p.height+m*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width+=2*t.padding,g.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(u,t,n,a),t},"drawNode"),jt=s(function(i,t,e){var u;let a=i.append("g"),n=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(K,t.width).node().getBBox(),l=(u=e.fontSize)!=null&&u.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),n.height+l*1.1*.5+t.padding},"getVirtualNodeHeight"),zt=s(function(i,t,e){i.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),i.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),H={drawRect:Z,drawCircle:Nt,drawSection:Ct,drawText:yt,drawLabel:At,drawTask:Lt,drawBackgroundRect:Pt,getTextObj:Ht,getNoteRect:J,initGraphics:Ot,drawNode:Rt,getVirtualNodeHeight:jt},Bt=s(function(i,t,e,a){var F,W,b;let n=St(),l=((F=n.timeline)==null?void 0:F.leftMargin)??50;S.debug("timeline",a.db);let u=n.securityLevel,g;u==="sandbox"&&(g=X("#i"+t));let p=X(u==="sandbox"?g.nodes()[0].contentDocument.body:"body").select("#"+t);p.append("g");let m=a.db.getTasks(),x=a.db.getCommonDb().getDiagramTitle();S.debug("task",m),H.initGraphics(p);let r=a.db.getSections();S.debug("sections",r);let h=0,o=0,d=0,y=0,c=50+l,v=50;y=50;let f=0,M=!0;r.forEach(function(w){let k={number:f,descr:w,section:f,width:150,padding:20,maxHeight:h},I=H.getVirtualNodeHeight(p,k,n);S.debug("sectionHeight before draw",I),h=Math.max(h,I+20)});let N=0,A=0;S.debug("tasks.length",m.length);for(let[w,k]of m.entries()){let I={number:w,descr:k,section:k.section,width:150,padding:20,maxHeight:o},C=H.getVirtualNodeHeight(p,I,n);S.debug("taskHeight before draw",C),o=Math.max(o,C+20),N=Math.max(N,k.events.length);let L=0;for(let O of k.events){let _={descr:O,section:k.section,number:k.section,width:150,padding:20,maxHeight:50};L+=H.getVirtualNodeHeight(p,_,n)}k.events.length>0&&(L+=(k.events.length-1)*10),A=Math.max(A,L)}S.debug("maxSectionHeight before draw",h),S.debug("maxTaskHeight before draw",o),r&&r.length>0?r.forEach(w=>{let k=m.filter(O=>O.section===w),I={number:f,descr:w,section:f,width:200*Math.max(k.length,1)-50,padding:20,maxHeight:h};S.debug("sectionNode",I);let C=p.append("g"),L=H.drawNode(C,I,f,n);S.debug("sectionNode output",L),C.attr("transform",`translate(${c}, ${y})`),v+=h+50,k.length>0&&mt(p,k,f,c,v,o,n,N,A,h,!1),c+=200*Math.max(k.length,1),v=y,f++}):(M=!1,mt(p,m,f,c,v,o,n,N,A,h,!0));let B=p.node().getBBox();S.debug("bounds",B),x&&p.append("text").text(x).attr("x",B.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),d=M?h+o+150:o+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",l).attr("y1",d).attr("x2",B.width+3*l).attr("y2",d).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),bt(void 0,p,((W=n.timeline)==null?void 0:W.padding)??50,((b=n.timeline)==null?void 0:b.useMaxWidth)??!1)},"draw"),mt=s(function(i,t,e,a,n,l,u,g,p,m,x){var r;for(let h of t){let o={descr:h.task,section:e,number:e,width:150,padding:20,maxHeight:l};S.debug("taskNode",o);let d=i.append("g").attr("class","taskWrapper"),y=H.drawNode(d,o,e,u).height;if(S.debug("taskHeight after draw",y),d.attr("transform",`translate(${a}, ${n})`),l=Math.max(l,y),h.events){let c=i.append("g").attr("class","lineWrapper"),v=l;n+=100,v+=Ft(i,h.events,e,a,n,u),n-=100,c.append("line").attr("x1",a+190/2).attr("y1",n+l).attr("x2",a+190/2).attr("y2",n+l+100+p+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a+=200,x&&!((r=u.timeline)!=null&&r.disableMulticolor)&&e++}n-=10},"drawTasks"),Ft=s(function(i,t,e,a,n,l){let u=0,g=n;n+=100;for(let p of t){let m={descr:p,section:e,number:e,width:150,padding:20,maxHeight:50};S.debug("eventNode",m);let x=i.append("g").attr("class","eventWrapper"),r=H.drawNode(x,m,e,l).height;u+=r,x.attr("transform",`translate(${a}, ${n})`),n=n+10+r}return n=g,u},"drawEvents"),Wt={setConf:s(()=>{},"setConf"),draw:Bt},Dt=s(i=>{let t="";for(let e=0;e` + .edge { + stroke-width: 3; + } + ${Dt(i)} + .section-root rect, .section-root path, .section-root circle { + fill: ${i.git0}; + } + .section-root text { + fill: ${i.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .eventWrapper { + filter: brightness(120%); + } +`,"getStyles")};export{Vt as diagram}; diff --git a/docs/assets/timer-CPT_vXom.js b/docs/assets/timer-CPT_vXom.js new file mode 100644 index 0000000..ab1619e --- /dev/null +++ b/docs/assets/timer-CPT_vXom.js @@ -0,0 +1 @@ +import{r as Ar}from"./chunk-LvLJmgfZ.js";var Rr={value:()=>{}};function Xt(){for(var t=0,r=arguments.length,n={},i;t=0&&(i=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw Error("unknown type: "+n);return{type:n,name:i}})}F.prototype=Xt.prototype={constructor:F,on:function(t,r){var n=this._,i=Hr(t+"",n),a,e=-1,o=i.length;if(arguments.length<2){for(;++e0)for(var n=Array(a),i=0,a,e;i>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?K(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?K(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=jr.exec(t))?new p(r[1],r[2],r[3],1):(r=Ir.exec(t))?new p(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Tr.exec(t))?K(r[1],r[2],r[3],r[4]):(r=Dr.exec(t))?K(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Cr.exec(t))?Pt(r[1],r[2]/100,r[3]/100,1):(r=Pr.exec(t))?Pt(r[1],r[2]/100,r[3]/100,r[4]):St.hasOwnProperty(t)?Tt(St[t]):t==="transparent"?new p(NaN,NaN,NaN,0):null}function Tt(t){return new p(t>>16&255,t>>8&255,t&255,1)}function K(t,r,n,i){return i<=0&&(t=r=n=NaN),new p(t,r,n,i)}function ft(t){return t instanceof N||(t=X(t)),t?(t=t.rgb(),new p(t.r,t.g,t.b,t.opacity)):new p}function Y(t,r,n,i){return arguments.length===1?ft(t):new p(t,r,n,i??1)}function p(t,r,n,i){this.r=+t,this.g=+r,this.b=+n,this.opacity=+i}A(p,Y,C(N,{brighter(t){return t=t==null?R:R**+t,new p(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?$:$**+t,new p(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new p(_(this.r),_(this.g),_(this.b),Q(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dt,formatHex:Dt,formatHex8:Lr,formatRgb:Ct,toString:Ct}));function Dt(){return`#${q(this.r)}${q(this.g)}${q(this.b)}`}function Lr(){return`#${q(this.r)}${q(this.g)}${q(this.b)}${q((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ct(){let t=Q(this.opacity);return`${t===1?"rgb(":"rgba("}${_(this.r)}, ${_(this.g)}, ${_(this.b)}${t===1?")":`, ${t})`}`}function Q(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function _(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function q(t){return t=_(t),(t<16?"0":"")+t.toString(16)}function Pt(t,r,n,i){return i<=0?t=r=n=NaN:n<=0||n>=1?t=r=NaN:r<=0&&(t=NaN),new d(t,r,n,i)}function Yt(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);if(t instanceof N||(t=X(t)),!t)return new d;if(t instanceof d)return t;t=t.rgb();var r=t.r/255,n=t.g/255,i=t.b/255,a=Math.min(r,n,i),e=Math.max(r,n,i),o=NaN,u=e-a,c=(e+a)/2;return u?(o=r===e?(n-i)/u+(n0&&c<1?0:o,new d(o,u,c,t.opacity)}function W(t,r,n,i){return arguments.length===1?Yt(t):new d(t,r,n,i??1)}function d(t,r,n,i){this.h=+t,this.s=+r,this.l=+n,this.opacity=+i}A(d,W,C(N,{brighter(t){return t=t==null?R:R**+t,new d(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?$:$**+t,new d(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,r=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*r,a=2*n-i;return new p(pt(t>=240?t-240:t+120,a,i),pt(t,a,i),pt(t<120?t+240:t-120,a,i),this.opacity)},clamp(){return new d(Bt(this.h),G(this.s),G(this.l),Q(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Q(this.opacity);return`${t===1?"hsl(":"hsla("}${Bt(this.h)}, ${G(this.s)*100}%, ${G(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Bt(t){return t=(t||0)%360,t<0?t+360:t}function G(t){return Math.max(0,Math.min(1,t||0))}function pt(t,r,n){return(t<60?r+(n-r)*t/60:t<180?n:t<240?r+(n-r)*(240-t)/60:r)*255}const Lt=Math.PI/180,Vt=180/Math.PI;var U=18,zt=.96422,Ft=1,Kt=.82521,Qt=4/29,O=6/29,Wt=3*O*O,Vr=O*O*O;function Gt(t){if(t instanceof x)return new x(t.l,t.a,t.b,t.opacity);if(t instanceof M)return Ut(t);t instanceof p||(t=ft(t));var r=bt(t.r),n=bt(t.g),i=bt(t.b),a=gt((.2225045*r+.7168786*n+.0606169*i)/Ft),e,o;return r===n&&n===i?e=o=a:(e=gt((.4360747*r+.3850649*n+.1430804*i)/zt),o=gt((.0139322*r+.0971045*n+.7141733*i)/Kt)),new x(116*a-16,500*(e-a),200*(a-o),t.opacity)}function Z(t,r,n,i){return arguments.length===1?Gt(t):new x(t,r,n,i??1)}function x(t,r,n,i){this.l=+t,this.a=+r,this.b=+n,this.opacity=+i}A(x,Z,C(N,{brighter(t){return new x(this.l+U*(t??1),this.a,this.b,this.opacity)},darker(t){return new x(this.l-U*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,r=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return r=zt*yt(r),t=Ft*yt(t),n=Kt*yt(n),new p(mt(3.1338561*r-1.6168667*t-.4906146*n),mt(-.9787684*r+1.9161415*t+.033454*n),mt(.0719453*r-.2289914*t+1.4052427*n),this.opacity)}}));function gt(t){return t>Vr?t**(1/3):t/Wt+Qt}function yt(t){return t>O?t*t*t:Wt*(t-Qt)}function mt(t){return 255*(t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055)}function bt(t){return(t/=255)<=.04045?t/12.92:((t+.055)/1.055)**2.4}function zr(t){if(t instanceof M)return new M(t.h,t.c,t.l,t.opacity);if(t instanceof x||(t=Gt(t)),t.a===0&&t.b===0)return new M(NaN,0=1?(n=1,r-1):Math.floor(n*r),a=t[i],e=t[i+1],o=i>0?t[i-1]:2*a-e,u=i()=>t;function or(t,r){return function(n){return t+n*r}}function Kr(t,r,n){return t**=+n,r=r**+n-t,n=1/n,function(i){return(t+i*r)**+n}}function nt(t,r){var n=r-t;return n?or(t,n>180||n<-180?n-360*Math.round(n/360):n):rt(isNaN(t)?r:t)}function Qr(t){return(t=+t)==1?g:function(r,n){return n-r?Kr(r,n,t):rt(isNaN(r)?n:r)}}function g(t,r){var n=r-t;return n?or(t,n):rt(isNaN(t)?r:t)}var it=(function t(r){var n=Qr(r);function i(a,e){var o=n((a=Y(a)).r,(e=Y(e)).r),u=n(a.g,e.g),c=n(a.b,e.b),l=g(a.opacity,e.opacity);return function(s){return a.r=o(s),a.g=u(s),a.b=c(s),a.opacity=l(s),a+""}}return i.gamma=t,i})(1);function er(t){return function(r){var n=r.length,i=Array(n),a=Array(n),e=Array(n),o,u;for(o=0;on&&(e=r.slice(n,e),u[o]?u[o]+=e:u[++o]=e),(i=i[0])===(a=a[0])?u[o]?u[o]+=a:u[++o]=a:(u[++o]=null,c.push({i:o,x:w(i,a)})),n=Nt.lastIndex;return n180?s+=360:s-l>180&&(l+=360),f.push({i:h.push(a(h)+"rotate(",null,i)-2,x:w(l,s)}))}function u(l,s,h,f){l===s?s&&h.push(a(h)+"skewX("+s+i):f.push({i:h.push(a(h)+"skewX(",null,i)-2,x:w(l,s)})}function c(l,s,h,f,y,b){if(l!==h||s!==f){var m=y.push(a(y)+"scale(",null,",",null,")");b.push({i:m-4,x:w(l,h)},{i:m-2,x:w(s,f)})}else(h!==1||f!==1)&&y.push(a(y)+"scale("+h+","+f+")")}return function(l,s){var h=[],f=[];return l=t(l),s=t(s),e(l.translateX,l.translateY,s.translateX,s.translateY,h,f),o(l.rotate,s.rotate,h,f),u(l.skewX,s.skewX,h,f),c(l.scaleX,l.scaleY,s.scaleX,s.scaleY,h,f),l=s=null,function(y){for(var b=-1,m=f.length,k;++bL,interpolateArray:()=>Ur,interpolateBasis:()=>ir,interpolateBasisClosed:()=>ar,interpolateCubehelix:()=>fn,interpolateCubehelixLong:()=>pn,interpolateDate:()=>lr,interpolateDiscrete:()=>tn,interpolateHcl:()=>Mr,interpolateHclLong:()=>hn,interpolateHsl:()=>sn,interpolateHslLong:()=>ln,interpolateHue:()=>rn,interpolateLab:()=>cn,interpolateNumber:()=>w,interpolateNumberArray:()=>xt,interpolateObject:()=>cr,interpolateRgb:()=>it,interpolateRgbBasis:()=>Wr,interpolateRgbBasisClosed:()=>Gr,interpolateRound:()=>hr,interpolateString:()=>kt,interpolateTransformCss:()=>mr,interpolateTransformSvg:()=>br,interpolateZoom:()=>wr,piecewise:()=>kr,quantize:()=>gn},1),S=0,at=0,_t=0,$r=1e3,ot,V,et=0,j=0,ut=0,z=typeof performance=="object"&&performance.now?performance:Date,_r=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qt(){return j||(j=(_r(mn),z.now()+ut))}function mn(){j=0}function st(){this._call=this._time=this._next=null}st.prototype=qr.prototype={constructor:st,restart:function(t,r,n){if(typeof t!="function")throw TypeError("callback is not a function");n=(n==null?qt():+n)+(r==null?0:+r),!this._next&&V!==this&&(V?V._next=this:ot=this,V=this),this._call=t,this._time=n,Et()},stop:function(){this._call&&(this._call=null,this._time=1/0,Et())}};function qr(t,r,n){var i=new st;return i.restart(t,r,n),i}function bn(){qt(),++S;for(var t=ot,r;t;)(r=j-t._time)>=0&&t._call.call(void 0,r),t=t._next;--S}function Er(){j=(et=z.now())+ut,S=at=0;try{bn()}finally{S=0,wn(),j=0}}function dn(){var t=z.now(),r=t-et;r>$r&&(ut-=r,et=t)}function wn(){for(var t,r=ot,n,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(n=r._next,r._next=null,r=t?t._next=n:ot=n);V=t,Et(i)}function Et(t){S||(at&&(at=clearTimeout(at)),t-j>24?(t<1/0&&(at=setTimeout(Er,t-z.now()-ut)),_t&&(_t=clearInterval(_t))):(_t||(_t=(et=z.now(),setInterval(dn,$r))),S=1,_r(Er)))}export{X as _,kr as a,Or as b,mr as c,L as d,kt as f,Z as g,J as h,yn as i,br as l,it as m,qt as n,Mr as o,w as p,qr as r,wr as s,st as t,hr as u,W as v,Y as y}; diff --git a/docs/assets/toDate-5JckKRQn.js b/docs/assets/toDate-5JckKRQn.js new file mode 100644 index 0000000..e99fb39 --- /dev/null +++ b/docs/assets/toDate-5JckKRQn.js @@ -0,0 +1 @@ +import{t as r}from"./createLucideIcon-CW2xpJ57.js";var s=r("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const e=6048e5,i=864e5,u=6e4,f=36e5,p=1e3,y=43200,l=1440,n=3600*24;n*7,n*365.2425;const o=Symbol.for("constructDateFrom");function c(t,a){return typeof t=="function"?t(a):t&&typeof t=="object"&&o in t?t[o](a):t instanceof Date?new t.constructor(a):new Date(a)}function m(t,a){return c(a||t,t)}export{u as a,l as c,f as i,y as l,c as n,p as o,i as r,e as s,m as t,s as u}; diff --git a/docs/assets/toInteger-CDcO32Gx.js b/docs/assets/toInteger-CDcO32Gx.js new file mode 100644 index 0000000..1701027 --- /dev/null +++ b/docs/assets/toInteger-CDcO32Gx.js @@ -0,0 +1 @@ +import{n as i}from"./now-6sUe0ZdD.js";var o=1/0,u=17976931348623157e292;function v(n){return n?(n=i(n),n===o||n===-o?(n<0?-1:1)*u:n===n?n:0):n===0?n:0}var e=v;function f(n){var t=e(n),a=t%1;return t===t?a?t-a:t:0}var s=f;export{e as n,s as t}; diff --git a/docs/assets/toString-DlRqgfqz.js b/docs/assets/toString-DlRqgfqz.js new file mode 100644 index 0000000..e0d8770 --- /dev/null +++ b/docs/assets/toString-DlRqgfqz.js @@ -0,0 +1 @@ +import{S as s,T as i}from"./_Uint8Array-BGESiCQL.js";import{t as v}from"./isSymbol-BGkTcW3U.js";function p(r,n){for(var o=-1,t=r==null?0:r.length,a=Array(t);++o{let{pressed:e,defaultPressed:r,onPressedChange:s,...o}=a,[t,i]=N({prop:e,onChange:s,defaultProp:r??!1,caller:p});return(0,m.jsx)(w.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...o,ref:n,onClick:z(a.onClick,()=>{a.disabled||i(!t)})})});g.displayName=p;var b=g,C=h(),j=y(f("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","data-[state=on]:bg-muted data-[state=on]:text-muted-foreground"),{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted hover:text-muted-foreground"},size:{default:"h-9 px-3",xs:"h-4 w-4",sm:"h-6 px-2",lg:"h-10 px-5"}},defaultVariants:{variant:"default",size:"default"}}),c=u.forwardRef((a,n)=>{let e=(0,C.c)(13),r,s,o,t;e[0]===a?(r=e[1],s=e[2],o=e[3],t=e[4]):({className:r,variant:t,size:o,...s}=a,e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=t);let i;e[5]!==r||e[6]!==o||e[7]!==t?(i=f(j({variant:t,size:o,className:r})),e[5]=r,e[6]=o,e[7]=t,e[8]=i):i=e[8];let d;return e[9]!==s||e[10]!==n||e[11]!==i?(d=(0,m.jsx)(b,{ref:n,className:i,...s}),e[9]=s,e[10]=n,e[11]=i,e[12]=d):d=e[12],d});c.displayName=b.displayName;export{c as t}; diff --git a/docs/assets/tokyo-night-BeEDKSPs.js b/docs/assets/tokyo-night-BeEDKSPs.js new file mode 100644 index 0000000..791aac1 --- /dev/null +++ b/docs/assets/tokyo-night-BeEDKSPs.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#16161e","activityBar.border":"#16161e","activityBar.foreground":"#787c99","activityBar.inactiveForeground":"#3b3e52","activityBarBadge.background":"#3d59a1","activityBarBadge.foreground":"#fff","activityBarTop.foreground":"#787c99","activityBarTop.inactiveForeground":"#3b3e52","badge.background":"#7e83b230","badge.foreground":"#acb0d0","breadcrumb.activeSelectionForeground":"#a9b1d6","breadcrumb.background":"#16161e","breadcrumb.focusForeground":"#a9b1d6","breadcrumb.foreground":"#515670","breadcrumbPicker.background":"#16161e","button.background":"#3d59a1dd","button.foreground":"#ffffff","button.hoverBackground":"#3d59a1AA","button.secondaryBackground":"#3b3e52","charts.blue":"#7aa2f7","charts.foreground":"#9AA5CE","charts.green":"#41a6b5","charts.lines":"#16161e","charts.orange":"#ff9e64","charts.purple":"#9d7cd8","charts.red":"#f7768e","charts.yellow":"#e0af68","chat.avatarBackground":"#3d59a1","chat.avatarForeground":"#a9b1d6","chat.requestBorder":"#0f0f14","chat.slashCommandBackground":"#14141b","chat.slashCommandForeground":"#7aa2f7","debugConsole.errorForeground":"#bb616b","debugConsole.infoForeground":"#787c99","debugConsole.sourceForeground":"#787c99","debugConsole.warningForeground":"#c49a5a","debugConsoleInputIcon.foreground":"#73daca","debugExceptionWidget.background":"#101014","debugExceptionWidget.border":"#963c47","debugIcon.breakpointDisabledForeground":"#414761","debugIcon.breakpointForeground":"#db4b4b","debugIcon.breakpointUnverifiedForeground":"#c24242","debugTokenExpression.boolean":"#ff9e64","debugTokenExpression.error":"#bb616b","debugTokenExpression.name":"#7dcfff","debugTokenExpression.number":"#ff9e64","debugTokenExpression.string":"#9ece6a","debugTokenExpression.value":"#9aa5ce","debugToolBar.background":"#101014","debugView.stateLabelBackground":"#14141b","debugView.stateLabelForeground":"#787c99","debugView.valueChangedHighlight":"#3d59a1aa","descriptionForeground":"#515670","diffEditor.diagonalFill":"#292e42","diffEditor.insertedLineBackground":"#41a6b520","diffEditor.insertedTextBackground":"#41a6b520","diffEditor.removedLineBackground":"#db4b4b22","diffEditor.removedTextBackground":"#db4b4b22","diffEditor.unchangedCodeBackground":"#282a3b66","diffEditorGutter.insertedLineBackground":"#41a6b525","diffEditorGutter.removedLineBackground":"#db4b4b22","diffEditorOverview.insertedForeground":"#41a6b525","diffEditorOverview.removedForeground":"#db4b4b22","disabledForeground":"#545c7e","dropdown.background":"#14141b","dropdown.foreground":"#787c99","dropdown.listBackground":"#14141b","editor.background":"#1a1b26","editor.findMatchBackground":"#3d59a166","editor.findMatchBorder":"#e0af68","editor.findMatchHighlightBackground":"#3d59a166","editor.findRangeHighlightBackground":"#515c7e33","editor.focusedStackFrameHighlightBackground":"#73daca20","editor.foldBackground":"#1111174a","editor.foreground":"#a9b1d6","editor.inactiveSelectionBackground":"#515c7e25","editor.lineHighlightBackground":"#1e202e","editor.rangeHighlightBackground":"#515c7e20","editor.selectionBackground":"#515c7e4d","editor.selectionHighlightBackground":"#515c7e44","editor.stackFrameHighlightBackground":"#E2BD3A20","editor.wordHighlightBackground":"#515c7e44","editor.wordHighlightStrongBackground":"#515c7e55","editorBracketHighlight.foreground1":"#698cd6","editorBracketHighlight.foreground2":"#68b3de","editorBracketHighlight.foreground3":"#9a7ecc","editorBracketHighlight.foreground4":"#25aac2","editorBracketHighlight.foreground5":"#80a856","editorBracketHighlight.foreground6":"#c49a5a","editorBracketHighlight.unexpectedBracket.foreground":"#db4b4b","editorBracketMatch.background":"#16161e","editorBracketMatch.border":"#42465d","editorBracketPairGuide.activeBackground1":"#698cd6","editorBracketPairGuide.activeBackground2":"#68b3de","editorBracketPairGuide.activeBackground3":"#9a7ecc","editorBracketPairGuide.activeBackground4":"#25aac2","editorBracketPairGuide.activeBackground5":"#80a856","editorBracketPairGuide.activeBackground6":"#c49a5a","editorCodeLens.foreground":"#51597d","editorCursor.foreground":"#c0caf5","editorError.foreground":"#db4b4b","editorGhostText.foreground":"#646e9c","editorGroup.border":"#101014","editorGroup.dropBackground":"#1e202e","editorGroupHeader.border":"#101014","editorGroupHeader.noTabsBackground":"#16161e","editorGroupHeader.tabsBackground":"#16161e","editorGroupHeader.tabsBorder":"#101014","editorGutter.addedBackground":"#164846","editorGutter.deletedBackground":"#823c41","editorGutter.modifiedBackground":"#394b70","editorHint.foreground":"#0da0ba","editorHoverWidget.background":"#16161e","editorHoverWidget.border":"#101014","editorIndentGuide.activeBackground1":"#363b54","editorIndentGuide.background1":"#232433","editorInfo.foreground":"#0da0ba","editorInlayHint.foreground":"#646e9c","editorLightBulb.foreground":"#e0af68","editorLightBulbAutoFix.foreground":"#e0af68","editorLineNumber.activeForeground":"#787c99","editorLineNumber.foreground":"#363b54","editorLink.activeForeground":"#acb0d0","editorMarkerNavigation.background":"#16161e","editorOverviewRuler.addedForeground":"#164846","editorOverviewRuler.border":"#101014","editorOverviewRuler.bracketMatchForeground":"#101014","editorOverviewRuler.deletedForeground":"#703438","editorOverviewRuler.errorForeground":"#db4b4b","editorOverviewRuler.findMatchForeground":"#a9b1d644","editorOverviewRuler.infoForeground":"#1abc9c","editorOverviewRuler.modifiedForeground":"#394b70","editorOverviewRuler.rangeHighlightForeground":"#a9b1d644","editorOverviewRuler.selectionHighlightForeground":"#a9b1d622","editorOverviewRuler.warningForeground":"#e0af68","editorOverviewRuler.wordHighlightForeground":"#bb9af755","editorOverviewRuler.wordHighlightStrongForeground":"#bb9af766","editorPane.background":"#1a1b26","editorRuler.foreground":"#101014","editorSuggestWidget.background":"#16161e","editorSuggestWidget.border":"#101014","editorSuggestWidget.highlightForeground":"#6183bb","editorSuggestWidget.selectedBackground":"#20222c","editorWarning.foreground":"#e0af68","editorWhitespace.foreground":"#363b54","editorWidget.background":"#16161e","editorWidget.border":"#101014","editorWidget.foreground":"#787c99","editorWidget.resizeBorder":"#545c7e33","errorForeground":"#515670","extensionBadge.remoteBackground":"#3d59a1","extensionBadge.remoteForeground":"#ffffff","extensionButton.prominentBackground":"#3d59a1DD","extensionButton.prominentForeground":"#ffffff","extensionButton.prominentHoverBackground":"#3d59a1AA","focusBorder":"#545c7e33","foreground":"#787c99","gitDecoration.addedResourceForeground":"#449dab","gitDecoration.conflictingResourceForeground":"#e0af68cc","gitDecoration.deletedResourceForeground":"#914c54","gitDecoration.ignoredResourceForeground":"#515670","gitDecoration.modifiedResourceForeground":"#6183bb","gitDecoration.renamedResourceForeground":"#449dab","gitDecoration.stageDeletedResourceForeground":"#914c54","gitDecoration.stageModifiedResourceForeground":"#6183bb","gitDecoration.untrackedResourceForeground":"#449dab","gitlens.gutterBackgroundColor":"#16161e","gitlens.gutterForegroundColor":"#787c99","gitlens.gutterUncommittedForegroundColor":"#7aa2f7","gitlens.trailingLineForegroundColor":"#646e9c","icon.foreground":"#787c99","inlineChat.foreground":"#a9b1d6","inlineChatDiff.inserted":"#41a6b540","inlineChatDiff.removed":"#db4b4b42","inlineChatInput.background":"#14141b","input.background":"#14141b","input.border":"#0f0f14","input.foreground":"#a9b1d6","input.placeholderForeground":"#787c998A","inputOption.activeBackground":"#3d59a144","inputOption.activeForeground":"#c0caf5","inputValidation.errorBackground":"#85353e","inputValidation.errorBorder":"#963c47","inputValidation.errorForeground":"#bbc2e0","inputValidation.infoBackground":"#3d59a15c","inputValidation.infoBorder":"#3d59a1","inputValidation.infoForeground":"#bbc2e0","inputValidation.warningBackground":"#c2985b","inputValidation.warningBorder":"#e0af68","inputValidation.warningForeground":"#000000","list.activeSelectionBackground":"#202330","list.activeSelectionForeground":"#a9b1d6","list.deemphasizedForeground":"#787c99","list.dropBackground":"#1e202e","list.errorForeground":"#bb616b","list.focusBackground":"#1c1d29","list.focusForeground":"#a9b1d6","list.highlightForeground":"#668ac4","list.hoverBackground":"#13131a","list.hoverForeground":"#a9b1d6","list.inactiveSelectionBackground":"#1c1d29","list.inactiveSelectionForeground":"#a9b1d6","list.invalidItemForeground":"#c97018","list.warningForeground":"#c49a5a","listFilterWidget.background":"#101014","listFilterWidget.noMatchesOutline":"#a6333f","listFilterWidget.outline":"#3d59a1","menu.background":"#16161e","menu.border":"#101014","menu.foreground":"#787c99","menu.selectionBackground":"#1e202e","menu.selectionForeground":"#a9b1d6","menu.separatorBackground":"#101014","menubar.selectionBackground":"#1e202e","menubar.selectionBorder":"#1b1e2e","menubar.selectionForeground":"#a9b1d6","merge.currentContentBackground":"#007a7544","merge.currentHeaderBackground":"#41a6b525","merge.incomingContentBackground":"#3d59a144","merge.incomingHeaderBackground":"#3d59a1aa","mergeEditor.change.background":"#41a6b525","mergeEditor.change.word.background":"#41a6b540","mergeEditor.conflict.handled.minimapOverViewRuler":"#449dab","mergeEditor.conflict.handledFocused.border":"#41a6b565","mergeEditor.conflict.handledUnfocused.border":"#41a6b525","mergeEditor.conflict.unhandled.minimapOverViewRuler":"#e0af68","mergeEditor.conflict.unhandledFocused.border":"#e0af68b0","mergeEditor.conflict.unhandledUnfocused.border":"#e0af6888","minimapGutter.addedBackground":"#1C5957","minimapGutter.deletedBackground":"#944449","minimapGutter.modifiedBackground":"#425882","multiDiffEditor.border":"#1a1b26","multiDiffEditor.headerBackground":"#1a1b26","notebook.cellBorderColor":"#101014","notebook.cellEditorBackground":"#16161e","notebook.cellStatusBarItemHoverBackground":"#1c1d29","notebook.editorBackground":"#1a1b26","notebook.focusedCellBorder":"#29355a","notificationCenterHeader.background":"#101014","notificationLink.foreground":"#6183bb","notifications.background":"#101014","notificationsErrorIcon.foreground":"#bb616b","notificationsInfoIcon.foreground":"#0da0ba","notificationsWarningIcon.foreground":"#bba461","panel.background":"#16161e","panel.border":"#101014","panelInput.border":"#16161e","panelTitle.activeBorder":"#16161e","panelTitle.activeForeground":"#787c99","panelTitle.inactiveForeground":"#42465d","peekView.border":"#101014","peekViewEditor.background":"#16161e","peekViewEditor.matchHighlightBackground":"#3d59a166","peekViewResult.background":"#101014","peekViewResult.fileForeground":"#787c99","peekViewResult.lineForeground":"#a9b1d6","peekViewResult.matchHighlightBackground":"#3d59a166","peekViewResult.selectionBackground":"#3d59a133","peekViewResult.selectionForeground":"#a9b1d6","peekViewTitle.background":"#101014","peekViewTitleDescription.foreground":"#787c99","peekViewTitleLabel.foreground":"#a9b1d6","pickerGroup.border":"#101014","pickerGroup.foreground":"#a9b1d6","progressBar.background":"#3d59a1","sash.hoverBorder":"#29355a","scmGraph.foreground1":"#ff9e64","scmGraph.foreground2":"#e0af68","scmGraph.foreground3":"#41a6b5","scmGraph.foreground4":"#7aa2f7","scmGraph.foreground5":"#bb9af7","scmGraph.historyItemBaseRefColor":"#9d7cd8","scmGraph.historyItemHoverAdditionsForeground":"#41a6b5","scmGraph.historyItemHoverDefaultLabelForeground":"#a9b1d6","scmGraph.historyItemHoverDeletionsForeground":"#f7768e","scmGraph.historyItemHoverLabelForeground":"#1b1e2e","scmGraph.historyItemRefColor":"#506FCA","scmGraph.historyItemRemoteRefColor":"#41a6b5","scrollbar.shadow":"#00000033","scrollbarSlider.activeBackground":"#868bc422","scrollbarSlider.background":"#868bc415","scrollbarSlider.hoverBackground":"#868bc410","selection.background":"#515c7e40","settings.headerForeground":"#6183bb","sideBar.background":"#16161e","sideBar.border":"#101014","sideBar.dropBackground":"#1e202e","sideBar.foreground":"#787c99","sideBarSectionHeader.background":"#16161e","sideBarSectionHeader.border":"#101014","sideBarSectionHeader.foreground":"#a9b1d6","sideBarTitle.foreground":"#787c99","statusBar.background":"#16161e","statusBar.border":"#101014","statusBar.debuggingBackground":"#16161e","statusBar.debuggingForeground":"#787c99","statusBar.foreground":"#787c99","statusBar.noFolderBackground":"#16161e","statusBarItem.activeBackground":"#101014","statusBarItem.hoverBackground":"#20222c","statusBarItem.prominentBackground":"#101014","statusBarItem.prominentHoverBackground":"#20222c","tab.activeBackground":"#16161e","tab.activeBorder":"#3d59a1","tab.activeForeground":"#a9b1d6","tab.activeModifiedBorder":"#1a1b26","tab.border":"#101014","tab.hoverForeground":"#a9b1d6","tab.inactiveBackground":"#16161e","tab.inactiveForeground":"#787c99","tab.inactiveModifiedBorder":"#1f202e","tab.lastPinnedBorder":"#222333","tab.unfocusedActiveBorder":"#1f202e","tab.unfocusedActiveForeground":"#a9b1d6","tab.unfocusedHoverForeground":"#a9b1d6","tab.unfocusedInactiveForeground":"#787c99","terminal.ansiBlack":"#363b54","terminal.ansiBlue":"#7aa2f7","terminal.ansiBrightBlack":"#363b54","terminal.ansiBrightBlue":"#7aa2f7","terminal.ansiBrightCyan":"#7dcfff","terminal.ansiBrightGreen":"#73daca","terminal.ansiBrightMagenta":"#bb9af7","terminal.ansiBrightRed":"#f7768e","terminal.ansiBrightWhite":"#acb0d0","terminal.ansiBrightYellow":"#e0af68","terminal.ansiCyan":"#7dcfff","terminal.ansiGreen":"#73daca","terminal.ansiMagenta":"#bb9af7","terminal.ansiRed":"#f7768e","terminal.ansiWhite":"#787c99","terminal.ansiYellow":"#e0af68","terminal.background":"#16161e","terminal.foreground":"#787c99","terminal.selectionBackground":"#515c7e4d","textBlockQuote.background":"#16161e","textCodeBlock.background":"#16161e","textLink.activeForeground":"#7dcfff","textLink.foreground":"#6183bb","textPreformat.foreground":"#9699a8","textSeparator.foreground":"#363b54","titleBar.activeBackground":"#16161e","titleBar.activeForeground":"#787c99","titleBar.border":"#101014","titleBar.inactiveBackground":"#16161e","titleBar.inactiveForeground":"#787c99","toolbar.activeBackground":"#202330","toolbar.hoverBackground":"#202330","tree.indentGuidesStroke":"#2b2b3b","walkThrough.embeddedEditorBackground":"#16161e","widget.shadow":"#ffffff00","window.activeBorder":"#0d0f17","window.inactiveBorder":"#0d0f17"},"displayName":"Tokyo Night","name":"tokyo-night","semanticTokenColors":{"*.defaultLibrary":{"foreground":"#2ac3de"},"parameter":{"foreground":"#d9d4cd"},"parameter.declaration":{"foreground":"#e0af68"},"property.declaration":{"foreground":"#73daca"},"property.defaultLibrary":{"foreground":"#2ac3de"},"variable":{"foreground":"#c0caf5"},"variable.declaration":{"foreground":"#bb9af7"},"variable.defaultLibrary":{"foreground":"#2ac3de"}},"tokenColors":[{"scope":["comment","meta.var.expr storage.type","keyword.control.flow","keyword.control.return","meta.directive.vue punctuation.separator.key-value.html","meta.directive.vue entity.other.attribute-name.html","tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js","storage.modifier","string.quoted.docstring.multi","string.quoted.docstring.multi.python punctuation.definition.string.begin","string.quoted.docstring.multi.python punctuation.definition.string.end","string.quoted.docstring.multi.python constant.character.escape"],"settings":{"fontStyle":"italic"}},{"scope":["keyword.control.flow.block-scalar.literal","keyword.control.flow.python"],"settings":{"fontStyle":""}},{"scope":["comment","comment.block.documentation","punctuation.definition.comment","comment.block.documentation punctuation","string.quoted.docstring.multi","string.quoted.docstring.multi.python punctuation.definition.string.begin","string.quoted.docstring.multi.python punctuation.definition.string.end","string.quoted.docstring.multi.python constant.character.escape"],"settings":{"foreground":"#51597d"}},{"scope":["keyword.operator.assignment.jsdoc","comment.block.documentation variable","comment.block.documentation storage","comment.block.documentation keyword","comment.block.documentation support","comment.block.documentation markup","comment.block.documentation markup.inline.raw.string.markdown","meta.other.type.phpdoc.php keyword.other.type.php","meta.other.type.phpdoc.php support.other.namespace.php","meta.other.type.phpdoc.php punctuation.separator.inheritance.php","meta.other.type.phpdoc.php support.class","keyword.other.phpdoc.php","log.date"],"settings":{"foreground":"#5a638c"}},{"scope":["meta.other.type.phpdoc.php support.class","comment.block.documentation storage.type","comment.block.documentation punctuation.definition.block.tag","comment.block.documentation entity.name.type.instance"],"settings":{"foreground":"#646e9c"}},{"scope":["variable.other.constant","punctuation.definition.constant","constant.language","constant.numeric","support.constant","constant.other.caps"],"settings":{"foreground":"#ff9e64"}},{"scope":["string","constant.other.symbol","constant.other.key","meta.attribute-selector","string constant.character"],"settings":{"fontStyle":"","foreground":"#9ece6a"}},{"scope":["constant.other.color","constant.other.color.rgb-value.hex punctuation.definition.constant"],"settings":{"foreground":"#9aa5ce"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#ff5370"}},{"scope":"invalid.deprecated","settings":{"foreground":"#bb9af7"}},{"scope":"storage.type","settings":{"foreground":"#bb9af7"}},{"scope":["meta.var.expr storage.type","storage.modifier"],"settings":{"foreground":"#9d7cd8"}},{"scope":["punctuation.definition.template-expression","punctuation.section.embedded","meta.embedded.line.tag.smarty","support.constant.handlebars","punctuation.section.tag.twig"],"settings":{"foreground":"#7dcfff"}},{"scope":["keyword.control.smarty","keyword.control.twig","support.constant.handlebars keyword.control","keyword.operator.comparison.twig","keyword.blade","entity.name.function.blade","meta.tag.blade keyword.other.type.php"],"settings":{"foreground":"#0db9d7"}},{"scope":["keyword.operator.spread","keyword.operator.rest"],"settings":{"fontStyle":"bold","foreground":"#f7768e"}},{"scope":["keyword.operator","keyword.control.as","keyword.other","keyword.operator.bitwise.shift","punctuation","expression.embbeded.vue punctuation.definition.tag","text.html.twig meta.tag.inline.any.html","meta.tag.template.value.twig meta.function.arguments.twig","meta.directive.vue punctuation.separator.key-value.html","punctuation.definition.constant.markdown","punctuation.definition.string","punctuation.support.type.property-name","text.html.vue-html meta.tag","meta.attribute.directive","punctuation.definition.keyword","punctuation.terminator.rule","punctuation.definition.entity","punctuation.separator.inheritance.php","keyword.other.template","keyword.other.substitution","entity.name.operator","meta.property-list punctuation.separator.key-value","meta.at-rule.mixin punctuation.separator.key-value","meta.at-rule.function variable.parameter.url","meta.embedded.inline.phpx punctuation.definition.tag.begin.html","meta.embedded.inline.phpx punctuation.definition.tag.end.html"],"settings":{"foreground":"#89ddff"}},{"scope":["keyword.control.module.js","keyword.control.import","keyword.control.export","keyword.control.from","keyword.control.default","meta.import keyword.other"],"settings":{"foreground":"#7dcfff"}},{"scope":["keyword","keyword.control","keyword.other.important"],"settings":{"foreground":"#bb9af7"}},{"scope":"keyword.other.DML","settings":{"foreground":"#7dcfff"}},{"scope":["keyword.operator.logical","storage.type.function","keyword.operator.bitwise","keyword.operator.ternary","keyword.operator.comparison","keyword.operator.relational","keyword.operator.or.regexp"],"settings":{"foreground":"#bb9af7"}},{"scope":"entity.name.tag","settings":{"foreground":"#f7768e"}},{"scope":["entity.name.tag support.class.component","meta.tag.custom entity.name.tag","meta.tag.other.unrecognized.html.derivative entity.name.tag","meta.tag"],"settings":{"foreground":"#de5971"}},{"scope":["punctuation.definition.tag","text.html.php meta.embedded.block.html meta.tag.metadata.script.end.html punctuation.definition.tag.begin.html text.html.basic"],"settings":{"foreground":"#ba3c97"}},{"scope":["constant.other.php","variable.other.global.safer","variable.other.global.safer punctuation.definition.variable","variable.other.global","variable.other.global punctuation.definition.variable","constant.other"],"settings":{"foreground":"#e0af68"}},{"scope":["variable","support.variable","string constant.other.placeholder","variable.parameter.handlebars","variable.other.object","meta.fstring","meta.function-call meta.function-call.arguments","meta.embedded.inline.phpx constant.other.php"],"settings":{"foreground":"#c0caf5"}},{"scope":"meta.array.literal variable","settings":{"foreground":"#7dcfff"}},{"scope":["meta.object-literal.key","entity.name.type.hcl","string.alias.graphql","string.unquoted.graphql","string.unquoted.alias.graphql","meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js","meta.field.declaration.ts variable.object.property","meta.block entity.name.label"],"settings":{"foreground":"#73daca"}},{"scope":["variable.other.property","support.variable.property","support.variable.property.dom","meta.function-call variable.other.object.property"],"settings":{"foreground":"#7dcfff"}},{"scope":"variable.other.object.property","settings":{"foreground":"#c0caf5"}},{"scope":"meta.objectliteral meta.object.member meta.objectliteral meta.object.member meta.objectliteral meta.object.member meta.object-literal.key","settings":{"foreground":"#41a6b5"}},{"scope":"source.cpp meta.block variable.other","settings":{"foreground":"#f7768e"}},{"scope":"support.other.variable","settings":{"foreground":"#f7768e"}},{"scope":["meta.class-method.js entity.name.function.js","entity.name.method.js","variable.function.constructor","keyword.other.special-method","storage.type.cs"],"settings":{"foreground":"#7aa2f7"}},{"scope":["entity.name.function","variable.other.enummember","meta.function-call","meta.function-call entity.name.function","variable.function","meta.definition.method entity.name.function","meta.object-literal entity.name.function"],"settings":{"foreground":"#7aa2f7"}},{"scope":["variable.parameter.function.language.special","variable.parameter","meta.function.parameters punctuation.definition.variable","meta.function.parameter variable"],"settings":{"foreground":"#e0af68"}},{"scope":["keyword.other.type.php","storage.type.php","constant.character","constant.escape","keyword.other.unit"],"settings":{"foreground":"#bb9af7"}},{"scope":["meta.definition.variable variable.other.constant","meta.definition.variable variable.other.readwrite","variable.declaration.hcl variable.other.readwrite.hcl","meta.mapping.key.hcl variable.other.readwrite.hcl","variable.other.declaration"],"settings":{"foreground":"#bb9af7"}},{"scope":"entity.other.inherited-class","settings":{"fontStyle":"","foreground":"#bb9af7"}},{"scope":["support.class","support.type","variable.other.readwrite.alias","support.orther.namespace.use.php","meta.use.php","support.other.namespace.php","support.type.sys-types","support.variable.dom","support.constant.math","support.type.object.module","support.constant.json","entity.name.namespace","meta.import.qualifier","variable.other.constant.object"],"settings":{"foreground":"#0db9d7"}},{"scope":"entity.name","settings":{"foreground":"#c0caf5"}},{"scope":"support.function","settings":{"foreground":"#0db9d7"}},{"scope":["source.css support.type.property-name","source.sass support.type.property-name","source.scss support.type.property-name","source.less support.type.property-name","source.stylus support.type.property-name","source.postcss support.type.property-name","support.type.property-name.css","support.type.vendored.property-name","support.type.map.key"],"settings":{"foreground":"#7aa2f7"}},{"scope":["support.constant.font-name","meta.definition.variable"],"settings":{"foreground":"#9ece6a"}},{"scope":["entity.other.attribute-name.class","meta.at-rule.mixin.scss entity.name.function.scss"],"settings":{"foreground":"#9ece6a"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#fc7b7b"}},{"scope":"entity.name.tag.css","settings":{"foreground":"#0db9d7"}},{"scope":["entity.other.attribute-name.pseudo-class punctuation.definition.entity","entity.other.attribute-name.pseudo-element punctuation.definition.entity","entity.other.attribute-name.class punctuation.definition.entity","entity.name.tag.reference"],"settings":{"foreground":"#e0af68"}},{"scope":"meta.property-list","settings":{"foreground":"#9abdf5"}},{"scope":["meta.property-list meta.at-rule.if","meta.at-rule.return variable.parameter.url","meta.property-list meta.at-rule.else"],"settings":{"foreground":"#ff9e64"}},{"scope":["entity.other.attribute-name.parent-selector-suffix punctuation.definition.entity.css"],"settings":{"foreground":"#73daca"}},{"scope":"meta.property-list meta.property-list","settings":{"foreground":"#9abdf5"}},{"scope":["meta.at-rule.mixin keyword.control.at-rule.mixin","meta.at-rule.include entity.name.function.scss","meta.at-rule.include keyword.control.at-rule.include"],"settings":{"foreground":"#bb9af7"}},{"scope":["keyword.control.at-rule.include punctuation.definition.keyword","keyword.control.at-rule.mixin punctuation.definition.keyword","meta.at-rule.include keyword.control.at-rule.include","keyword.control.at-rule.extend punctuation.definition.keyword","meta.at-rule.extend keyword.control.at-rule.extend","entity.other.attribute-name.placeholder.css punctuation.definition.entity.css","meta.at-rule.media keyword.control.at-rule.media","meta.at-rule.mixin keyword.control.at-rule.mixin","meta.at-rule.function keyword.control.at-rule.function","keyword.control punctuation.definition.keyword"],"settings":{"foreground":"#9d7cd8"}},{"scope":"meta.property-list meta.at-rule.include","settings":{"foreground":"#c0caf5"}},{"scope":"support.constant.property-value","settings":{"foreground":"#ff9e64"}},{"scope":["entity.name.module.js","variable.import.parameter.js","variable.other.class.js"],"settings":{"foreground":"#c0caf5"}},{"scope":"variable.language","settings":{"foreground":"#f7768e"}},{"scope":"variable.other punctuation.definition.variable","settings":{"foreground":"#c0caf5"}},{"scope":["source.js constant.other.object.key.js string.unquoted.label.js","variable.language.this punctuation.definition.variable","keyword.other.this"],"settings":{"foreground":"#f7768e"}},{"scope":["entity.other.attribute-name","text.html.basic entity.other.attribute-name.html","text.html.basic entity.other.attribute-name"],"settings":{"foreground":"#bb9af7"}},{"scope":"text.html constant.character.entity","settings":{"foreground":"#0DB9D7"}},{"scope":["entity.other.attribute-name.id.html","meta.directive.vue entity.other.attribute-name.html"],"settings":{"foreground":"#bb9af7"}},{"scope":"source.sass keyword.control","settings":{"foreground":"#7aa2f7"}},{"scope":["entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element","entity.other.attribute-name.placeholder","meta.property-list meta.property-value"],"settings":{"foreground":"#bb9af7"}},{"scope":"markup.inserted","settings":{"foreground":"#449dab"}},{"scope":"markup.deleted","settings":{"foreground":"#914c54"}},{"scope":"markup.changed","settings":{"foreground":"#6183bb"}},{"scope":"string.regexp","settings":{"foreground":"#b4f9f8"}},{"scope":"punctuation.definition.group","settings":{"foreground":"#f7768e"}},{"scope":["constant.other.character-class.regexp"],"settings":{"foreground":"#bb9af7"}},{"scope":["constant.other.character-class.set.regexp","punctuation.definition.character-class.regexp"],"settings":{"foreground":"#e0af68"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#89ddff"}},{"scope":"constant.character.escape.backslash","settings":{"foreground":"#c0caf5"}},{"scope":"constant.character.escape","settings":{"foreground":"#89ddff"}},{"scope":["tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js"],"settings":{"foreground":"#7aa2f7"}},{"scope":"keyword.other.unit","settings":{"foreground":"#f7768e"}},{"scope":["source.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#7aa2f7"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#0db9d7"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#7dcfff"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#bb9af7"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#e0af68"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#0db9d7"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#73daca"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f7768e"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#9ece6a"}},{"scope":"punctuation.definition.list_item.markdown","settings":{"foreground":"#9abdf5"}},{"scope":["meta.block","meta.brace","punctuation.definition.block","punctuation.definition.use","punctuation.definition.class","punctuation.definition.begin.bracket","punctuation.definition.end.bracket","punctuation.definition.switch-expression.begin.bracket","punctuation.definition.switch-expression.end.bracket","punctuation.definition.section.switch-block.begin.bracket","punctuation.definition.section.switch-block.end.bracket","punctuation.definition.group.shell","punctuation.definition.parameters","punctuation.definition.arguments","punctuation.definition.dictionary","punctuation.definition.array","punctuation.section"],"settings":{"foreground":"#9abdf5"}},{"scope":["meta.embedded.block"],"settings":{"foreground":"#c0caf5"}},{"scope":["meta.tag JSXNested","meta.jsx.children","text.html","text.log"],"settings":{"foreground":"#9aa5ce"}},{"scope":"text.html.markdown markup.inline.raw.markdown","settings":{"foreground":"#bb9af7"}},{"scope":"text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown","settings":{"foreground":"#4E5579"}},{"scope":["heading.1.markdown entity.name","heading.1.markdown punctuation.definition.heading.markdown"],"settings":{"fontStyle":"bold","foreground":"#89ddff"}},{"scope":["heading.2.markdown entity.name","heading.2.markdown punctuation.definition.heading.markdown"],"settings":{"fontStyle":"bold","foreground":"#61bdf2"}},{"scope":["heading.3.markdown entity.name","heading.3.markdown punctuation.definition.heading.markdown"],"settings":{"fontStyle":"bold","foreground":"#7aa2f7"}},{"scope":["heading.4.markdown entity.name","heading.4.markdown punctuation.definition.heading.markdown"],"settings":{"fontStyle":"bold","foreground":"#6d91de"}},{"scope":["heading.5.markdown entity.name","heading.5.markdown punctuation.definition.heading.markdown"],"settings":{"fontStyle":"bold","foreground":"#9aa5ce"}},{"scope":["heading.6.markdown entity.name","heading.6.markdown punctuation.definition.heading.markdown"],"settings":{"fontStyle":"bold","foreground":"#747ca1"}},{"scope":["markup.italic","markup.italic punctuation"],"settings":{"fontStyle":"italic","foreground":"#c0caf5"}},{"scope":["markup.bold","markup.bold punctuation"],"settings":{"fontStyle":"bold","foreground":"#c0caf5"}},{"scope":["markup.bold markup.italic","markup.bold markup.italic punctuation"],"settings":{"fontStyle":"bold italic","foreground":"#c0caf5"}},{"scope":["markup.underline","markup.underline punctuation"],"settings":{"fontStyle":"underline"}},{"scope":"markup.quote punctuation.definition.blockquote.markdown","settings":{"foreground":"#4e5579"}},{"scope":"markup.quote","settings":{"fontStyle":"italic"}},{"scope":["string.other.link","markup.underline.link","constant.other.reference.link.markdown","string.other.link.description.title.markdown"],"settings":{"foreground":"#73daca"}},{"scope":["markup.fenced_code.block.markdown","markup.inline.raw.string.markdown","variable.language.fenced.markdown"],"settings":{"foreground":"#89ddff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#51597d"}},{"scope":"markup.table","settings":{"foreground":"#c0cefc"}},{"scope":"token.info-token","settings":{"foreground":"#0db9d7"}},{"scope":"token.warn-token","settings":{"foreground":"#ffdb69"}},{"scope":"token.error-token","settings":{"foreground":"#db4b4b"}},{"scope":"token.debug-token","settings":{"foreground":"#b267e6"}},{"scope":"entity.tag.apacheconf","settings":{"foreground":"#f7768e"}},{"scope":["meta.preprocessor"],"settings":{"foreground":"#73daca"}},{"scope":"source.env","settings":{"foreground":"#7aa2f7"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/toml-BpCjWJNE.js b/docs/assets/toml-BpCjWJNE.js new file mode 100644 index 0000000..9dafce7 --- /dev/null +++ b/docs/assets/toml-BpCjWJNE.js @@ -0,0 +1 @@ +import{t as o}from"./toml-XXoBgyAV.js";export{o as toml}; diff --git a/docs/assets/toml-BuOKiCb8.js b/docs/assets/toml-BuOKiCb8.js new file mode 100644 index 0000000..3501801 --- /dev/null +++ b/docs/assets/toml-BuOKiCb8.js @@ -0,0 +1 @@ +var n=[Object.freeze(JSON.parse(`{"displayName":"TOML","fileTypes":["toml"],"name":"toml","patterns":[{"include":"#comments"},{"include":"#groups"},{"include":"#key_pair"},{"include":"#invalid"}],"repository":{"comments":{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.toml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.toml"}},"end":"\\\\n","name":"comment.line.number-sign.toml"}]},"groups":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.section.begin.toml"},"2":{"patterns":[{"match":"[^.\\\\s]+","name":"entity.name.section.toml"}]},"3":{"name":"punctuation.definition.section.begin.toml"}},"match":"^\\\\s*(\\\\[)([^]\\\\[]*)(])","name":"meta.group.toml"},{"captures":{"1":{"name":"punctuation.definition.section.begin.toml"},"2":{"patterns":[{"match":"[^.\\\\s]+","name":"entity.name.section.toml"}]},"3":{"name":"punctuation.definition.section.begin.toml"}},"match":"^\\\\s*(\\\\[\\\\[)([^]\\\\[]*)(]])","name":"meta.group.double.toml"}]},"invalid":{"match":"\\\\S+(\\\\s*(?=\\\\S))?","name":"invalid.illegal.not-allowed-here.toml"},"key_pair":{"patterns":[{"begin":"([-0-9A-Z_a-z]+)\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml"},"2":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?e in t?ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var A=(t,e,n)=>ce(t,typeof e!="symbol"?e+"":e,n);var at,lt,ot,ut,ct;import{C as de,w as he}from"./_Uint8Array-BGESiCQL.js";import{a as fe,d as ye}from"./hotkeys-uKX61F1_.js";import{St as yt,a as pe,c as ge,gt as me,o as ve,wt as be}from"./vega-loader.browser-C8wT63Va.js";var xe="[object Number]";function we(t){return typeof t=="number"||de(t)&&he(t)==xe}var Ie=we;const pt=Uint8Array.of(65,82,82,79,87,49),$={V1:0,V2:1,V3:2,V4:3,V5:4},S={NONE:0,Schema:1,DictionaryBatch:2,RecordBatch:3,Tensor:4,SparseTensor:5},l={Dictionary:-1,NONE:0,Null:1,Int:2,Float:3,Binary:4,Utf8:5,Bool:6,Decimal:7,Date:8,Time:9,Timestamp:10,Interval:11,List:12,Struct:13,Union:14,FixedSizeBinary:15,FixedSizeList:16,Map:17,Duration:18,LargeBinary:19,LargeUtf8:20,LargeList:21,RunEndEncoded:22,BinaryView:23,Utf8View:24,ListView:25,LargeListView:26},gt={HALF:0,SINGLE:1,DOUBLE:2},z={DAY:0,MILLISECOND:1},m={SECOND:0,MILLISECOND:1,MICROSECOND:2,NANOSECOND:3},C={YEAR_MONTH:0,DAY_TIME:1,MONTH_DAY_NANO:2},W={Sparse:0,Dense:1},mt=Uint8Array,vt=Uint16Array,bt=Uint32Array,xt=BigUint64Array,wt=Int8Array,Le=Int16Array,x=Int32Array,L=BigInt64Array,Ae=Float32Array,k=Float64Array;function Ne(t,e){let n=Math.log2(t)-3;return(e?[wt,Le,x,L]:[mt,vt,bt,xt])[n]}Object.getPrototypeOf(Int8Array);function X(t,e){let n=0,r=t.length;if(r<=2147483648)do{let i=n+r>>>1;t[i]<=e?n=i+1:r=i}while(ne.includes(r),n??(()=>`${t} must be one of ${e}`))}function It(t,e){for(let[n,r]of Object.entries(t))if(r===e)return n;return""}const G=t=>`Unsupported data type: "${It(l,t)}" (id ${t})`,Lt=(t,e,n=!0,r=null)=>({name:t,type:e,nullable:n,metadata:r});function At(t){return Object.hasOwn(t,"name")&&Nt(t.type)}function Nt(t){return typeof(t==null?void 0:t.typeId)=="number"}function B(t,e="",n=!0){return At(t)?t:Lt(e,J(t,Nt,()=>"Data type expected."),n)}const Ee=(t,e,n=!1,r=-1)=>({typeId:l.Dictionary,id:r,dictionary:t,indices:e||Dt(),ordered:n}),Et=(t=32,e=!0)=>({typeId:l.Int,bitWidth:w(t,[8,16,32,64]),signed:e,values:Ne(t,e)}),Dt=()=>Et(32),De=(t=2)=>({typeId:l.Float,precision:w(t,gt),values:[vt,Ae,k][t]}),Se=()=>({typeId:l.Binary,offsets:x}),Be=()=>({typeId:l.Utf8,offsets:x}),Oe=(t,e,n=128)=>({typeId:l.Decimal,precision:t,scale:e,bitWidth:w(n,[128,256]),values:xt}),Te=t=>({typeId:l.Date,unit:w(t,z),values:t===z.DAY?x:L}),Me=(t=m.MILLISECOND,e=32)=>({typeId:l.Time,unit:w(t,m),bitWidth:w(e,[32,64]),values:e===32?x:L}),Ce=(t=m.MILLISECOND,e=null)=>({typeId:l.Timestamp,unit:w(t,m),timezone:e,values:L}),Ue=(t=C.MONTH_DAY_NANO)=>({typeId:l.Interval,unit:w(t,C),values:t===C.MONTH_DAY_NANO?void 0:x}),Ve=t=>({typeId:l.List,children:[B(t)],offsets:x}),Fe=t=>({typeId:l.Struct,children:Array.isArray(t)&&At(t[0])?t:Object.entries(t).map(([e,n])=>Lt(e,n))}),Re=(t,e,n,r)=>(n??(n=e.map((i,s)=>s)),{typeId:l.Union,mode:w(t,W),typeIds:n,typeMap:n.reduce((i,s,a)=>(i[s]=a,i),{}),children:e.map((i,s)=>B(i,`_${s}`)),typeIdForValue:r,offsets:x}),$e=t=>({typeId:l.FixedSizeBinary,stride:t}),ze=(t,e)=>({typeId:l.FixedSizeList,stride:e,children:[B(t)]}),ke=(t,e)=>({typeId:l.Map,keysSorted:t,children:[e],offsets:x}),je=(t=m.MILLISECOND)=>({typeId:l.Duration,unit:w(t,m),values:L}),Ye=()=>({typeId:l.LargeBinary,offsets:L}),_e=()=>({typeId:l.LargeUtf8,offsets:L}),He=t=>({typeId:l.LargeList,children:[B(t)],offsets:L}),Pe=(t,e)=>({typeId:l.RunEndEncoded,children:[J(B(t,"run_ends"),n=>n.type.typeId===l.Int,()=>"Run-ends must have an integer type."),B(e,"values")]}),We=t=>({typeId:l.ListView,children:[B(t,"value")],offsets:x}),Xe=t=>({typeId:l.LargeListView,children:[B(t,"value")],offsets:L});var j=new k(2).buffer;new L(j),new bt(j),new x(j),new mt(j);function O(t){if(t>2**53-1||t<-(2**53-1))throw Error(`BigInt exceeds integer number representation: ${t}`);return Number(t)}function Z(t,e){return Number(t/e)+Number(t%e)/Number(e)}var U=t=>BigInt.asUintN(64,t);function Je(t,e){let n=e<<1,r;return BigInt.asIntN(64,t[n+1])<0?(r=U(~t[n])|U(~t[n+1])<<64n,r=-(r+1n)):r=t[n]|t[n+1]<<64n,r}function Ge(t,e){let n=e<<2,r;return BigInt.asIntN(64,t[n+3])<0?(r=U(~t[n])|U(~t[n+1])<<64n|U(~t[n+2])<<128n|U(~t[n+3])<<192n,r=-(r+1n)):r=t[n]|t[n+1]<<64n|t[n+2]<<128n|t[n+3]<<192n,r}var Ze=new TextDecoder("utf-8");new TextEncoder;function Y(t){return Ze.decode(t)}function St(t,e){return(t[e>>3]&1<{if(s>24}function q(t,e){return t[e]}function v(t,e){return Ke(t,e)<<16>>16}function Ke(t,e){return t[e]|t[e+1]<<8}function h(t,e){return t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24}function Bt(t,e){return h(t,e)>>>0}function b(t,e){return O(BigInt.asIntN(64,BigInt(Bt(t,e))+(BigInt(Bt(t,e+4))<<32n)))}function _(t,e){let n=e+h(t,e),r=h(t,n);return n+=4,Y(t.subarray(n,n+r))}function T(t,e,n,r){if(!e)return[];let i=e+h(t,e);return Array.from({length:h(t,i)},(s,a)=>r(t,i+4+a*n))}const K=Symbol("rowIndex");function Q(t,e){class n{constructor(s){this[K]=s}toJSON(){return Tt(t,e,this[K])}}let r=n.prototype;for(let i=0;inew n(i)}function Ot(t,e){return n=>Tt(t,e,n)}function Tt(t,e,n){let r={};for(let i=0;ithis.value(u))}get[Symbol.toStringTag](){return"Batch"}at(t){return this.isValid(t)?this.value(t):null}isValid(t){return St(this.validity,t)}value(t){return this.values[t]}slice(t,e){let n=e-t,r=Array(n);for(let i=0;i>10,r=(e&1023)/1024,i=(-1)**((e&32768)>>15);switch(n){case 31:return i*(r?NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*2**(n-15)*(1+r)}},nn=class extends f{value(t){return St(this.values,t)}},Mt=class extends H{constructor(t){super(t);let{bitWidth:e,scale:n}=this.type;this.decimal=e===128?Je:Ge,this.scale=10n**BigInt(n)}},rn=(ut=class extends Mt{value(t){return Z(this.decimal(this.values,t),this.scale)}},A(ut,"ArrayType",k),ut),sn=(ct=class extends Mt{value(t){return this.decimal(this.values,t)}},A(ct,"ArrayType",Array),ct),Ct=class extends f{constructor(t){super(t),this.source=t}value(t){return new Date(this.source.value(t))}},an=class extends tt{value(t){return 864e5*this.values[t]}};const ln=V;var on=class extends V{value(t){return super.value(t)*1e3}};const un=V;var cn=class extends V{value(t){return Z(this.values[t],1000n)}},dn=class extends V{value(t){return Z(this.values[t],1000000n)}},hn=class extends f{value(t){return this.values.subarray(t<<1,t+1<<1)}},fn=class extends f{value(t){let e=this.values,n=t<<4;return Float64Array.of(h(e,n),h(e,n+4),b(e,n+8))}},Ut=({values:t,offsets:e},n)=>t.subarray(e[n],e[n+1]),Vt=({values:t,offsets:e},n)=>t.subarray(O(e[n]),O(e[n+1])),yn=class extends f{value(t){return Ut(this,t)}},pn=class extends f{value(t){return Vt(this,t)}},gn=class extends f{value(t){return Y(Ut(this,t))}},mn=class extends f{value(t){return Y(Vt(this,t))}},vn=class extends f{value(t){let e=this.offsets;return this.children[0].slice(e[t],e[t+1])}},bn=class extends f{value(t){let e=this.offsets;return this.children[0].slice(O(e[t]),O(e[t+1]))}},xn=class extends f{value(t){let e=this.offsets[t],n=e+this.sizes[t];return this.children[0].slice(e,n)}},wn=class extends f{value(t){let e=this.offsets[t],n=e+this.sizes[t];return this.children[0].slice(O(e),O(n))}},Ft=class extends f{constructor(t){super(t),this.stride=this.type.stride}},In=class extends Ft{value(t){let{stride:e,values:n}=this;return n.subarray(t*e,(t+1)*e)}},Ln=class extends Ft{value(t){let{children:e,stride:n}=this;return e[0].slice(t*n,(t+1)*n)}};function Rt({children:t,offsets:e},n){let[r,i]=t[0].children,s=e[n],a=e[n+1],o=[];for(let u=s;un.name),this.factory=e(this.names,this.children)}value(t){return this.factory(t)}},Dn=class extends zt{constructor(t){super(t,Q)}},Sn=class extends f{value(t){let[{values:e},n]=this.children;return n.at(X(e,t))}},Bn=class extends f{setDictionary(t){return this.dictionary=t,this.cache=t.cache(),this}value(t){return this.cache[this.key(t)]}key(t){return this.values[t]}},kt=class extends f{constructor({data:t,...e}){super(e),this.data=t}view(t){let{values:e,data:n}=this,r=t<<4,i=r+4,s=e,a=h(s,r);return a>12&&(i=h(s,r+12),s=n[h(s,r+8)]),s.subarray(i,i+a)}},On=class extends kt{value(t){return this.view(t)}},Tn=class extends kt{value(t){return Y(this.view(t))}};function jt(t){let e=[];return{add(n){return e.push(n),this},clear:()=>e=[],done:()=>new Mn(e,t)}}var Mn=class{constructor(t,e=(n=>(n=t[0])==null?void 0:n.type)()){this.type=e,this.length=t.reduce((s,a)=>s+a.length,0),this.nullCount=t.reduce((s,a)=>s+a.nullCount,0),this.data=t;let r=t.length,i=new Int32Array(r+1);if(r===1){let[s]=t;i[1]=s.length,this.at=a=>s.at(a)}else for(let s=0,a=0;s0?Array:n[0].constructor.ArrayType??n[0].values.constructor)(t);return r?Un(s,n):Vn(s,n)}cache(){return this._cache??(this._cache=this.toArray())}};function*Cn(t){for(let e=0;ea.name);this.schema=e,this.names=i,this.children=n,this.factory=r?Q:Ot;let s=[];this.getFactory=a=>s[a]??(s[a]=this.factory(i,n.map(o=>o.data[a])))}get[Symbol.toStringTag](){return"Table"}get numCols(){return this.names.length}get numRows(){var e;return((e=this.children[0])==null?void 0:e.length)??0}getChildAt(e){return this.children[e]}getChild(e){let n=this.names.findIndex(r=>r===e);return n>-1?this.children[n]:void 0}selectAt(e,n=[]){let{children:r,factory:i,schema:s}=this,{fields:a}=s;return new le({...s,fields:e.map((o,u)=>Rn(a[o],n[u]))},e.map(o=>r[o]),i===Q)}select(e,n){let r=this.names,i=e.map(s=>r.indexOf(s));return this.selectAt(i,n)}toColumns(){let{children:e,names:n}=this,r={};return n.forEach((i,s)=>{var a;return r[i]=((a=e[s])==null?void 0:a.toArray())??[]}),r}toArray(){var a;let{children:e,getFactory:n,numRows:r}=this,i=((a=e[0])==null?void 0:a.data)??[],s=Array(r);for(let o=0,u=-1;o=i)return null;let[{offsets:s}]=n,a=X(s,e)-1;return r(a)(e-s[a])}get(e){return this.at(e)}};function Rn(t,e){return e!=null&&e!==t.name?{...t,name:e}:t}function $n(t,e={}){let{typeId:n,bitWidth:r,precision:i,unit:s}=t,{useBigInt:a,useDate:o,useDecimalBigInt:u,useMap:d,useProxy:c}=e;switch(n){case l.Null:return tn;case l.Bool:return nn;case l.Int:case l.Time:case l.Duration:return a||r<64?P:V;case l.Float:return i?P:en;case l.Date:return Yt(s===z.DAY?an:ln,o&&Ct);case l.Timestamp:return Yt(s===m.SECOND?on:s===m.MILLISECOND?un:s===m.MICROSECOND?cn:dn,o&&Ct);case l.Decimal:return u?sn:rn;case l.Interval:return s===C.DAY_TIME?hn:s===C.YEAR_MONTH?P:fn;case l.FixedSizeBinary:return In;case l.Utf8:return gn;case l.LargeUtf8:return mn;case l.Binary:return yn;case l.LargeBinary:return pn;case l.BinaryView:return On;case l.Utf8View:return Tn;case l.List:return vn;case l.LargeList:return bn;case l.Map:return d?Nn:An;case l.ListView:return xn;case l.LargeListView:return wn;case l.FixedSizeList:return Ln;case l.Struct:return c?Dn:zt;case l.RunEndEncoded:return Sn;case l.Dictionary:return Bn;case l.Union:return t.mode?En:$t}throw Error(G(n))}function Yt(t,e){return e?class extends e{constructor(n){super(new t(n))}}:t}function zn(t,e){return{offset:b(t,e),metadataLength:h(t,e+8),bodyLength:b(t,e+16)}}function _t(t,e){return T(t,e,24,zn)}function Ht(t,e,n){let r=N(t,e);if(r(10,M,0))throw Error("Record batch compression not implemented");let i=n<$.V4?8:0;return{length:r(4,b,0),nodes:T(t,r(6,M),16,(s,a)=>({length:b(s,a),nullCount:b(s,a+8)})),regions:T(t,r(8,M),16+i,(s,a)=>({offset:b(s,a+i),length:b(s,a+i+8)})),variadic:T(t,r(12,M),8,b)}}function kn(t,e,n){let r=N(t,e);return{id:r(4,b,0),data:r(6,(i,s)=>Ht(i,s,n)),isDelta:r(8,F,!1)}}function Pt(t,e,n,r){w(n,l,G);let i=N(t,e);switch(n){case l.Binary:return Se();case l.Utf8:return Be();case l.LargeBinary:return Ye();case l.LargeUtf8:return _e();case l.List:return Ve(r[0]);case l.ListView:return We(r[0]);case l.LargeList:return He(r[0]);case l.LargeListView:return Xe(r[0]);case l.Struct:return Fe(r);case l.RunEndEncoded:return Pe(r[0],r[1]);case l.Int:return Et(i(4,h,0),i(6,F,!1));case l.Float:return De(i(4,v,gt.HALF));case l.Decimal:return Oe(i(4,h,0),i(6,h,0),i(8,h,128));case l.Date:return Te(i(4,v,z.MILLISECOND));case l.Time:return Me(i(4,v,m.MILLISECOND),i(6,h,32));case l.Timestamp:return Ce(i(4,v,m.SECOND),i(6,_));case l.Interval:return Ue(i(4,v,C.YEAR_MONTH));case l.Duration:return je(i(4,v,m.MILLISECOND));case l.FixedSizeBinary:return $e(i(4,h,0));case l.FixedSizeList:return ze(r[0],i(4,h,0));case l.Map:return ke(i(4,F,!1),r[0]);case l.Union:return Re(i(4,v,W.Sparse),r,T(t,i(6,M),4,h))}return{typeId:n}}function et(t,e){let n=T(t,e,4,(r,i)=>{let s=N(r,i);return[s(4,_),s(6,_)]});return n.length?new Map(n):null}function Wt(t,e,n){let r=N(t,e);return{version:n,endianness:r(4,v,0),fields:r(6,jn,[]),metadata:r(8,et)}}function jn(t,e){return T(t,e,4,Xt)}function Xt(t,e){let n=N(t,e),r=n(8,q,l.NONE),i=n(10,M,0),s=n(12,_n),a=Pt(t,i,r,n(14,(o,u)=>Yn(o,u)));return s&&(s.dictionary=a,a=s),{name:n(4,_),type:a,nullable:n(6,F,!1),metadata:n(16,et)}}function Yn(t,e){let n=T(t,e,4,Xt);return n.length?n:null}function _n(t,e){if(!e)return null;let n=N(t,e);return Ee(null,n(6,Hn,Dt()),n(8,F,!1),n(4,b,0))}function Hn(t,e){return Pt(t,e,l.Int)}var Pn=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,Wn=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Xn=t=>`Unsupported message type: ${t} (${It(S,t)})`;function nt(t,e){let n=h(t,e)||0;if(e+=4,n===-1&&(n=h(t,e)||0,e+=4),n===0)return null;let r=t.subarray(e,e+=n);if(r.byteLength0){let g=t.subarray(e,e+=u);if(g.byteLengthWt(a,o,r)),dictionaries:i.map(({offset:a})=>nt(t,a).content),records:s.map(({offset:a})=>nt(t,a).content),metadata:n(12,et)}}function rt(t,e){return Kn(Jn(t),e)}function Kn(t,e={}){let{schema:n={fields:[]},dictionaries:r,records:i}=t,{version:s,fields:a}=n,o=new Map,u=tr(e,s,o),d=new Map;Qn(n,y=>{let p=y.type;p.typeId===l.Dictionary&&d.set(p.id,p.dictionary)});let c=new Map;for(let y of r){let{id:p,data:E,isDelta:D,body:oe}=y,dt=d.get(p),ht=it(dt,u({...E,body:oe}));if(c.has(p)){let ft=c.get(p);D||ft.clear(),ft.add(ht)}else{if(D)throw Error("Delta update can not be first dictionary batch.");c.set(p,jt(dt).add(ht))}}c.forEach((y,p)=>o.set(p,y.done()));let g=a.map(y=>jt(y.type));for(let y of i){let p=u(y);a.forEach((E,D)=>g[D].add(it(E.type,p)))}return new Fn(n,g.map(y=>y.done()),e.useProxy)}function Qn(t,e){t.fields.forEach(function n(r){var i,s,a;e(r),(s=(i=r.type.dictionary)==null?void 0:i.children)==null||s.forEach(n),(a=r.type.children)==null||a.forEach(n)})}function tr(t,e,n){let r={version:e,options:t,dictionary:i=>n.get(i)};return i=>{let{length:s,nodes:a,regions:o,variadic:u,body:d}=i,c=-1,g=-1,y=-1;return{...r,length:s,node:()=>a[++c],buffer:p=>{let{length:E,offset:D}=o[++g];return p?new p(d.buffer,d.byteOffset+D,E/p.BYTES_PER_ELEMENT):d.subarray(D,D+E)},variadic:()=>u[++y],visit(p){return p.map(E=>it(E.type,this))}}}}function it(t,e){let{typeId:n}=t,{length:r,options:i,node:s,buffer:a,variadic:o,version:u}=e,d=$n(t,i);if(n===l.Null)return new d({length:r,nullCount:r,type:t});let c={...s(),type:t};switch(n){case l.Bool:case l.Int:case l.Time:case l.Duration:case l.Float:case l.Decimal:case l.Date:case l.Timestamp:case l.Interval:case l.FixedSizeBinary:return new d({...c,validity:a(),values:a(t.values)});case l.Utf8:case l.LargeUtf8:case l.Binary:case l.LargeBinary:return new d({...c,validity:a(),offsets:a(t.offsets),values:a()});case l.BinaryView:case l.Utf8View:return new d({...c,validity:a(),values:a(),data:Array.from({length:o()},()=>a())});case l.List:case l.LargeList:case l.Map:return new d({...c,validity:a(),offsets:a(t.offsets),children:e.visit(t.children)});case l.ListView:case l.LargeListView:return new d({...c,validity:a(),offsets:a(t.offsets),sizes:a(t.offsets),children:e.visit(t.children)});case l.FixedSizeList:case l.Struct:return new d({...c,validity:a(),children:e.visit(t.children)});case l.RunEndEncoded:return new d({...c,children:e.visit(t.children)});case l.Dictionary:{let{id:g,indices:y}=t;return new d({...c,validity:a(),values:a(y.values)}).setDictionary(e.dictionary(g))}case l.Union:return u<$.V5&&a(),new d({...c,typeIds:a(wt),offsets:t.mode===W.Sparse?null:a(t.offsets),children:e.visit(t.children)});default:throw Error(G(n))}}new Uint16Array(new Uint8Array([1,0]).buffer)[0];function R(t,e){let n=new Map;return(...r)=>{let i=e(...r);if(n.has(i))return n.get(i);let s=t(...r).finally(()=>{n.delete(i)});return n.set(i,s),s}}function st(t,e){return ve(t,e)}function er(){return pe()}const I=ge;function Jt(){let t=nr(er()),e=n=>JSON.stringify(n);return{load:R(t.load.bind(t),e),sanitize:R(t.sanitize.bind(t),e),http:R(t.http.bind(t),e),file:R(t.file.bind(t),e)}}function nr(t){return{...t,async load(e,n){return e.endsWith(".arrow")?rt(await Gt(e),{useProxy:!1}).toArray():t.load(e,n)}}}const Gt=R(t=>fetch(t).then(e=>e.arrayBuffer()),t=>t);var Zt=I.integer,qt=I.number,rr=I.date,ir=I.boolean,Kt=()=>(I.integer=t=>{if(t==="")return"";if(t==="-inf"||t==="inf")return t;function e(r){let i=Zt(r);return Number.isNaN(i)?r:i}let n=Number.parseInt(t,10);if(Ie(n)){if(!(Math.abs(n)>2**53-1))return e(t);try{return BigInt(t)}catch{return e(t)}}else return""},I.number=t=>{if(t==="-inf"||t==="inf")return t;let e=qt(t);return Number.isNaN(e)?t:e},()=>{I.integer=Zt,I.number=qt}),Qt=()=>(I.date=t=>{if(t==="")return"";if(t==null)return null;if(!/^\d{4}-\d{2}-\d{2}(T[\d.:]+(Z|[+-]\d{2}:?\d{2})?)?$/.test(t))return t;try{let e=new Date(t);return Number.isNaN(e.getTime())?t:e}catch{return ye.warn(`Failed to parse date: ${t}`),t}},()=>{I.date=rr});I.boolean=t=>t==="True"?!0:t==="False"?!1:ir(t);const te=Jt();async function sr(t,e,n={}){let{handleBigIntAndNumberLike:r=!1,replacePeriod:i=!1}=n;if(t.endsWith(".arrow")||(e==null?void 0:e.type)==="arrow")return rt(await Gt(t),{useProxy:!0,useDate:!0,useBigInt:r}).toArray();let s=[Qt];r&&s.push(Kt);let a=[];try{let o=await te.load(t);if(!e){if(typeof o=="string")try{JSON.parse(o),e={type:"json"}}catch{e={type:"csv",parse:"auto"}}typeof o=="object"&&(e={type:"json"})}let u=(e==null?void 0:e.type)==="csv";u&&typeof o=="string"&&(o=lr(o)),u&&typeof o=="string"&&i&&(o=or(o));let d=(e==null?void 0:e.parse)||"auto";return typeof d=="object"&&(d=fe.mapValues(d,c=>c==="time"?"string":c==="datetime"?"date":c)),a=s.map(c=>c()),u?st(o,{...e,parse:d}):st(o,e)}finally{a.forEach(o=>o())}}function ar(t,e=!0){let n=[Qt];e&&n.push(Kt);let r=n.map(s=>s()),i=st(t,{type:"csv",parse:"auto"});return r.forEach(s=>s()),i}function lr(t){return t!=null&&t.includes(",")?ee(t,e=>{let n=new Set;return e.map(r=>{let i=cr(r,n);return n.add(i),i})}):t}function or(t){return t!=null&&t.includes(".")?ee(t,e=>e.map(n=>n.replaceAll(".","\u2024"))):t}function ee(t,e){let n=t.split(` +`);return n[0]=e(n[0].split(",")).join(","),n.join(` +`)}var ur="\u200B";function cr(t,e){let n=t,r=1;for(;e.has(n);)n=`${t}${ur.repeat(r)}`,r++;return n}var dr={version:"1.1.0"};function hr(t,e,n,r){if(me(t))return`[${t.map(i=>e(be(i)?i:ne(i,n))).join(", ")}]`;if(yt(t)){let i="",{title:s,image:a,...o}=t;s&&(i+=`

${e(s)}

`),a&&(i+=``);let u=Object.keys(o);if(u.length>0){i+="";for(let d of u){let c=o[d];c!==void 0&&(yt(c)&&(c=ne(c,n)),i+=``)}i+="
${e(d)}${e(c)}
"}return i||"{}"}return e(t)}function fr(t){let e=[];return function(n,r){return typeof r!="object"||!r?r:(e.length=e.indexOf(this)+1,e.length>t?"[Object]":e.indexOf(r)>=0?"[Circular]":(e.push(r),r))}}function ne(t,e){return JSON.stringify(t,fr(e))}var yr=`#vg-tooltip-element { + visibility: hidden; + padding: 8px; + position: fixed; + z-index: 1000; + font-family: sans-serif; + font-size: 11px; + border-radius: 3px; + box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); + white-space: pre-line; +} +#vg-tooltip-element.visible { + visibility: visible; +} +#vg-tooltip-element h2 { + margin-top: 0; + margin-bottom: 10px; + font-size: 13px; +} +#vg-tooltip-element table { + border-spacing: 0; +} +#vg-tooltip-element table tr { + border: none; +} +#vg-tooltip-element table tr td { + overflow: hidden; + text-overflow: ellipsis; + padding-top: 2px; + padding-bottom: 2px; + vertical-align: text-top; +} +#vg-tooltip-element table tr td.key { + color: #808080; + max-width: 150px; + text-align: right; + padding-right: 4px; +} +#vg-tooltip-element table tr td.value { + display: block; + max-width: 300px; + max-height: 7em; + text-align: left; +} +#vg-tooltip-element { + /* The default theme is the light theme. */ + background-color: rgba(255, 255, 255, 0.95); + border: 1px solid #d9d9d9; + color: black; +} +#vg-tooltip-element.dark-theme { + background-color: rgba(32, 32, 32, 0.9); + border: 1px solid #f5f5f5; + color: white; +} +#vg-tooltip-element.dark-theme td.key { + color: #bfbfbf; +} +`,re="vg-tooltip-element",pr={offsetX:10,offsetY:10,id:re,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:gr,maxDepth:2,formatTooltip:hr,baseURL:"",anchor:"cursor",position:["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]};function gr(t){return String(t).replace(/&/g,"&").replace(/=0&&t.y>=0&&t.x+e.width<=window.innerWidth&&t.y+e.height<=window.innerHeight}function xr(t,e,n){return t.clientX>=e.x&&t.clientX<=e.x+n.width&&t.clientY>=e.y&&t.clientY<=e.y+n.height}var wr=class{constructor(t){A(this,"call");A(this,"options");A(this,"el");this.options={...pr,...t};let e=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){let n=document.createElement("style");n.setAttribute("id",this.options.styleId),n.innerHTML=mr(e);let r=document.head;r.childNodes.length>0?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)}}tooltipHandler(t,e,n,r){if(this.el=document.getElementById(this.options.id),this.el||(this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip"),(document.fullscreenElement??document.body).appendChild(this.el)),r==null||r===""){this.el.classList.remove("visible",`${this.options.theme}-theme`);return}this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth,this.options.baseURL),this.el.classList.add("visible",`${this.options.theme}-theme`);let{x:i,y:s}=this.options.anchor==="mark"?vr(t,e,n,this.el.getBoundingClientRect(),this.options):ie(e,this.el.getBoundingClientRect(),this.options);this.el.style.top=`${s}px`,this.el.style.left=`${i}px`}};dr.version;const Ir=new wr;export{Jt as a,te as i,ar as n,rt as o,sr as r,Ir as t}; diff --git a/docs/assets/tooltip-CvjcEpZC.js b/docs/assets/tooltip-CvjcEpZC.js new file mode 100644 index 0000000..365c2c2 --- /dev/null +++ b/docs/assets/tooltip-CvjcEpZC.js @@ -0,0 +1 @@ +import{s as F}from"./chunk-LvLJmgfZ.js";import{t as ee}from"./react-BGmjiNul.js";import{t as te}from"./compiler-runtime-DeeZ7FnK.js";import{r as S}from"./useEventListener-COkmyg1v.js";import{t as re}from"./jsx-runtime-DN_bIXfG.js";import{t as ne}from"./cn-C1rgT0yh.js";import{E as oe,S as ie,_ as ae,b as le,c as se,d as ce,f as ue,m as de,s as pe,u as fe,w,x as K}from"./Combination-D1TsGrBC.js";import{a as he,c as X,i as xe,o as me,s as ge,t as ve}from"./dist-CBrDuocE.js";var s=F(ee(),1),p=F(re(),1),[_,Ve]=oe("Tooltip",[X]),R=X(),Y="TooltipProvider",ye=700,L="tooltip.open",[be,O]=_(Y),M=r=>{let{__scopeTooltip:e,delayDuration:t=ye,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=r,l=s.useRef(!0),u=s.useRef(!1),a=s.useRef(0);return s.useEffect(()=>{let f=a.current;return()=>window.clearTimeout(f)},[]),(0,p.jsx)(be,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:s.useCallback(f=>{u.current=f},[]),disableHoverableContent:o,children:i})};M.displayName=Y;var E="Tooltip",[we,j]=_(E),z=r=>{let{__scopeTooltip:e,children:t,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:l,delayDuration:u}=r,a=O(E,r.__scopeTooltip),f=R(e),[c,x]=s.useState(null),h=ue(),d=s.useRef(0),m=l??a.disableHoverableContent,v=u??a.delayDuration,g=s.useRef(!1),[b,y]=ie({prop:n,defaultProp:o??!1,onChange:B=>{B?(a.onOpen(),document.dispatchEvent(new CustomEvent(L))):a.onClose(),i==null||i(B)},caller:E}),T=s.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),D=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,g.current=!1,y(!0)},[y]),P=s.useCallback(()=>{window.clearTimeout(d.current),d.current=0,y(!1)},[y]),A=s.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{g.current=!0,y(!0),d.current=0},v)},[v,y]);return s.useEffect(()=>()=>{d.current&&(d.current=(window.clearTimeout(d.current),0))},[]),(0,p.jsx)(ge,{...f,children:(0,p.jsx)(we,{scope:e,contentId:h,open:b,stateAttribute:T,trigger:c,onTriggerChange:x,onTriggerEnter:s.useCallback(()=>{a.isOpenDelayedRef.current?A():D()},[a.isOpenDelayedRef,A,D]),onTriggerLeave:s.useCallback(()=>{m?P():(window.clearTimeout(d.current),d.current=0)},[P,m]),onOpen:D,onClose:P,disableHoverableContent:m,children:t})})};z.displayName=E;var I="TooltipTrigger",q=s.forwardRef((r,e)=>{let{__scopeTooltip:t,...n}=r,o=j(I,t),i=O(I,t),l=R(t),u=S(e,s.useRef(null),o.onTriggerChange),a=s.useRef(!1),f=s.useRef(!1),c=s.useCallback(()=>a.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),(0,p.jsx)(xe,{asChild:!0,...l,children:(0,p.jsx)(ae.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:w(r.onPointerMove,x=>{x.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:w(r.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:w(r.onPointerDown,()=>{o.open&&o.onClose(),a.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:w(r.onFocus,()=>{a.current||o.onOpen()}),onBlur:w(r.onBlur,o.onClose),onClick:w(r.onClick,o.onClose)})})});q.displayName=I;var N="TooltipPortal",[Ce,Te]=_(N,{forceMount:void 0}),G=r=>{let{__scopeTooltip:e,forceMount:t,children:n,container:o}=r,i=j(N,e);return(0,p.jsx)(Ce,{scope:e,forceMount:t,children:(0,p.jsx)(K,{present:t||i.open,children:(0,p.jsx)(ce,{asChild:!0,container:o,children:n})})})};G.displayName=N;var C="TooltipContent",J=s.forwardRef((r,e)=>{let t=Te(C,r.__scopeTooltip),{forceMount:n=t.forceMount,side:o="top",...i}=r,l=j(C,r.__scopeTooltip);return(0,p.jsx)(K,{present:n||l.open,children:l.disableHoverableContent?(0,p.jsx)(Q,{side:o,...i,ref:e}):(0,p.jsx)(Ee,{side:o,...i,ref:e})})}),Ee=s.forwardRef((r,e)=>{let t=j(C,r.__scopeTooltip),n=O(C,r.__scopeTooltip),o=s.useRef(null),i=S(e,o),[l,u]=s.useState(null),{trigger:a,onClose:f}=t,c=o.current,{onPointerInTransitChange:x}=n,h=s.useCallback(()=>{u(null),x(!1)},[x]),d=s.useCallback((m,v)=>{let g=m.currentTarget,b={x:m.clientX,y:m.clientY},y=Pe(b,De(b,g.getBoundingClientRect())),T=Le(v.getBoundingClientRect());u(Me([...y,...T])),x(!0)},[x]);return s.useEffect(()=>()=>h(),[h]),s.useEffect(()=>{if(a&&c){let m=g=>d(g,c),v=g=>d(g,a);return a.addEventListener("pointerleave",m),c.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",v)}}},[a,c,d,h]),s.useEffect(()=>{if(l){let m=v=>{let g=v.target,b={x:v.clientX,y:v.clientY},y=(a==null?void 0:a.contains(g))||(c==null?void 0:c.contains(g)),T=!Oe(b,l);y?h():T&&(h(),f())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[a,c,l,f,h]),(0,p.jsx)(Q,{...r,ref:i})}),[je,_e]=_(E,{isInside:!1}),Re=le("TooltipContent"),Q=s.forwardRef((r,e)=>{let{__scopeTooltip:t,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...u}=r,a=j(C,t),f=R(t),{onClose:c}=a;return s.useEffect(()=>(document.addEventListener(L,c),()=>document.removeEventListener(L,c)),[c]),s.useEffect(()=>{if(a.trigger){let x=h=>{var d;(d=h.target)!=null&&d.contains(a.trigger)&&c()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[a.trigger,c]),(0,p.jsx)(de,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:x=>x.preventDefault(),onDismiss:c,children:(0,p.jsxs)(me,{"data-state":a.stateAttribute,...f,...u,ref:e,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,p.jsx)(Re,{children:n}),(0,p.jsx)(je,{scope:t,isInside:!0,children:(0,p.jsx)(ve,{id:a.contentId,role:"tooltip",children:o||n})})]})})});J.displayName=C;var U="TooltipArrow",ke=s.forwardRef((r,e)=>{let{__scopeTooltip:t,...n}=r,o=R(t);return _e(U,t).isInside?null:(0,p.jsx)(he,{...o,...n,ref:e})});ke.displayName=U;function De(r,e){let t=Math.abs(e.top-r.y),n=Math.abs(e.bottom-r.y),o=Math.abs(e.right-r.x),i=Math.abs(e.left-r.x);switch(Math.min(t,n,o,i)){case i:return"left";case o:return"right";case t:return"top";case n:return"bottom";default:throw Error("unreachable")}}function Pe(r,e,t=5){let n=[];switch(e){case"top":n.push({x:r.x-t,y:r.y+t},{x:r.x+t,y:r.y+t});break;case"bottom":n.push({x:r.x-t,y:r.y-t},{x:r.x+t,y:r.y-t});break;case"left":n.push({x:r.x+t,y:r.y-t},{x:r.x+t,y:r.y+t});break;case"right":n.push({x:r.x-t,y:r.y-t},{x:r.x-t,y:r.y+t});break}return n}function Le(r){let{top:e,right:t,bottom:n,left:o}=r;return[{x:o,y:e},{x:t,y:e},{x:t,y:n},{x:o,y:n}]}function Oe(r,e){let{x:t,y:n}=r,o=!1;for(let i=0,l=e.length-1;in!=h>n&&t<(x-f)*(n-c)/(h-c)+f&&(o=!o)}return o}function Me(r){let e=r.slice();return e.sort((t,n)=>t.xn.x?1:t.yn.y?1:0),Ie(e)}function Ie(r){if(r.length<=1)return r.slice();let e=[];for(let n=0;n=2;){let i=e[e.length-1],l=e[e.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))e.pop();else break}e.push(o)}e.pop();let t=[];for(let n=r.length-1;n>=0;n--){let o=r[n];for(;t.length>=2;){let i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Ne=M,He=z,Ae=q,Be=G,V=J,H=te(),Fe=r=>{let e=(0,H.c)(6),t,n;e[0]===r?(t=e[1],n=e[2]):({delayDuration:n,...t}=r,e[0]=r,e[1]=t,e[2]=n);let o=n===void 0?400:n,i;return e[3]!==o||e[4]!==t?(i=(0,p.jsx)(Ne,{delayDuration:o,...t}),e[3]=o,e[4]=t,e[5]=i):i=e[5],i},W=pe(Be),Z=He,Se=se(V),$=Ae,k=s.forwardRef((r,e)=>{let t=(0,H.c)(11),n,o,i;t[0]===r?(n=t[1],o=t[2],i=t[3]):({className:n,sideOffset:i,...o}=r,t[0]=r,t[1]=n,t[2]=o,t[3]=i);let l=i===void 0?4:i,u;t[4]===n?u=t[5]:(u=ne("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-xs data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",n),t[4]=n,t[5]=u);let a;return t[6]!==o||t[7]!==e||t[8]!==l||t[9]!==u?(a=(0,p.jsx)(fe,{children:(0,p.jsx)(Se,{ref:e,sideOffset:l,className:u,...o})}),t[6]=o,t[7]=e,t[8]=l,t[9]=u,t[10]=a):a=t[10],a});k.displayName=V.displayName;var Ke=r=>{let e=(0,H.c)(22),t,n,o,i,l,u,a,f;e[0]===r?(t=e[1],n=e[2],o=e[3],i=e[4],l=e[5],u=e[6],a=e[7],f=e[8]):({content:o,children:n,usePortal:u,asChild:a,tabIndex:f,side:l,align:t,...i}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o,e[4]=i,e[5]=l,e[6]=u,e[7]=a,e[8]=f);let c=u===void 0?!0:u,x=a===void 0?!0:a;if(o==null||o==="")return n;let h;e[9]!==x||e[10]!==n||e[11]!==f?(h=(0,p.jsx)($,{asChild:x,tabIndex:f,children:n}),e[9]=x,e[10]=n,e[11]=f,e[12]=h):h=e[12];let d;e[13]!==t||e[14]!==o||e[15]!==l||e[16]!==c?(d=c?(0,p.jsx)(W,{children:(0,p.jsx)(k,{side:l,align:t,children:o})}):(0,p.jsx)(k,{side:l,align:t,children:o}),e[13]=t,e[14]=o,e[15]=l,e[16]=c,e[17]=d):d=e[17];let m;return e[18]!==i||e[19]!==h||e[20]!==d?(m=(0,p.jsxs)(Z,{disableHoverableContent:!0,...i,children:[h,d]}),e[18]=i,e[19]=h,e[20]=d,e[21]=m):m=e[21],m};export{Z as a,Fe as i,k as n,$ as o,W as r,M as s,Ke as t}; diff --git a/docs/assets/tracing-DsibCERP.js b/docs/assets/tracing-DsibCERP.js new file mode 100644 index 0000000..4182826 --- /dev/null +++ b/docs/assets/tracing-DsibCERP.js @@ -0,0 +1 @@ +import{s as O}from"./chunk-LvLJmgfZ.js";import{d as ee,p as te,u as q}from"./useEvent-DlWF5OMa.js";import{t as le}from"./react-BGmjiNul.js";import{Jn as re,W as A,er as se,k as ae}from"./cells-CmJW_FeD.js";import"./react-dom-C9fstfnp.js";import{t as ie}from"./compiler-runtime-DeeZ7FnK.js";import"./config-CENq_7Pd.js";import{t as ne}from"./jsx-runtime-DN_bIXfG.js";import{t as oe}from"./cn-C1rgT0yh.js";import"./dist-CAcX026F.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{t as ce}from"./createLucideIcon-CW2xpJ57.js";import{n as de,r as U}from"./CellStatus-D1YyNsC9.js";import{_ as me}from"./select-D9lTzMzP.js";import{t as pe}from"./chevron-right-CqEd11Di.js";import{t as ue}from"./circle-check-Cr0N4h9T.js";import{t as he}from"./circle-play-r3MHdB-P.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{r as fe}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{t as J}from"./tooltip-CvjcEpZC.js";import"./vega-loader.browser-C8wT63Va.js";import{r as xe,t as ve}from"./react-vega-CI0fuCLO.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as ge}from"./cell-link-D7bPw7Fz.js";import{t as je}from"./bundle.esm-dxSncdJD.js";import{n as ye,r as Se,t as V}from"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import{t as Ie}from"./empty-state-H6r25Wek.js";import"./multi-icon-6ulZXArq.js";import{t as be}from"./clear-button-B9htnn2a.js";import{n as Ne,t as Te}from"./runs-DGUGtjQH.js";var we=ce("circle-ellipsis",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]),D=ie(),z=O(le(),1);const W="hoveredCellId",Y="cellHover";var ke="cellNum",G="cell",H="startTimestamp",K="endTimestamp",X="status";function Re(t,e,l,i){let n="hoursminutessecondsmilliseconds";return{$schema:"https://vega.github.io/schema/vega-lite/v6.json",background:i==="dark"?"black":void 0,mark:{type:"bar",cornerRadius:2},params:[{name:W,bind:{element:`#${e}`}},{name:Y,select:{type:"point",on:"mouseover",fields:[G],clear:"mouseout"}}],height:{step:l==="sideBySide"?26:21},encoding:{y:{field:ke,scale:{paddingInner:.2},sort:{field:"sortPriority"},title:"cell",axis:l==="sideBySide"?null:void 0},x:{field:H,type:"temporal",axis:{orient:"top",title:null}},x2:{field:K,type:"temporal"},tooltip:[{field:H,type:"temporal",timeUnit:n,title:"Start"},{field:K,type:"temporal",timeUnit:n,title:"End"}],size:{value:{expr:`${W} == toString(datum.${G}) ? 19.5 : 18`}},color:{field:X,scale:{domain:["success","error"],range:["#37BE5F","red"]},legend:null}},data:{values:t},transform:[{calculate:`datum.${X} === 'queued' ? 9999999999999 : datum.${H}`,as:"sortPriority"}],config:{view:{stroke:"transparent"}}}}function Z(t){try{let e=new Date(t*1e3);return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")} ${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}.${String(e.getMilliseconds()).padStart(3,"0")}`}catch{return""}}var r=O(ne(),1),Q=te(new Map);const _e=()=>{let t=(0,D.c)(32),{runIds:e,runMap:l}=q(Te),i=q(Q),{clearRuns:n}=Ne(),{theme:o}=fe(),[a,w]=(0,z.useState)("above"),u;t[0]===a?u=t[1]:(u=()=>{w(a==="above"?"sideBySide":"above")},t[0]=a,t[1]=u);let d=u;if(e.length===0){let s;return t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)(Ie,{title:"No traces",description:(0,r.jsx)("span",{children:"Cells that have ran will appear here."}),icon:(0,r.jsx)(se,{})}),t[2]=s):s=t[2],s}let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)("label",{htmlFor:"chartPosition",className:"text-xs",children:"Inline chart"}),t[3]=m):m=t[3];let x=a==="sideBySide",p;t[4]!==x||t[5]!==d?(p=(0,r.jsxs)("div",{className:"flex flex-row gap-1 items-center",children:[m,(0,r.jsx)("input",{type:"checkbox",name:"chartPosition","data-testid":"chartPosition",onClick:d,defaultChecked:x,className:"h-3 cursor-pointer"})]}),t[4]=x,t[5]=d,t[6]=p):p=t[6];let c;t[7]===n?c=t[8]:(c=(0,r.jsx)(be,{dataTestId:"clear-traces-button",onClick:n}),t[7]=n,t[8]=c);let h;t[9]!==p||t[10]!==c?(h=(0,r.jsxs)("div",{className:"flex flex-row justify-start gap-3",children:[p,c]}),t[9]=p,t[10]=c,t[11]=h):h=t[11];let v;if(t[12]!==a||t[13]!==i||t[14]!==e||t[15]!==l||t[16]!==o){let s;t[18]!==a||t[19]!==i||t[20]!==l||t[21]!==o?(s=(N,T)=>{let b=l.get(N);return b?(0,r.jsx)(Me,{run:b,isExpanded:i.get(b.runId),isMostRecentRun:T===0,chartPosition:a,theme:o},b.runId):null},t[18]=a,t[19]=i,t[20]=l,t[21]=o,t[22]=s):s=t[22],v=e.map(s),t[12]=a,t[13]=i,t[14]=e,t[15]=l,t[16]=o,t[17]=v}else v=t[17];let g;t[23]===v?g=t[24]:(g=(0,r.jsx)("div",{className:"flex flex-col gap-3",children:v}),t[23]=v,t[24]=g);let j;t[25]!==h||t[26]!==g?(j=(0,r.jsx)(V,{defaultSize:50,minSize:30,maxSize:80,children:(0,r.jsxs)("div",{className:"py-1 px-2 overflow-y-scroll h-full",children:[h,g]})}),t[25]=h,t[26]=g,t[27]=j):j=t[27];let I;t[28]===Symbol.for("react.memo_cache_sentinel")?(I=(0,r.jsx)(Se,{className:"w-1 bg-border hover:bg-primary/50 transition-colors"}),t[28]=I):I=t[28];let f;t[29]===Symbol.for("react.memo_cache_sentinel")?(f=(0,r.jsx)(V,{defaultSize:50,children:(0,r.jsx)("div",{})}),t[29]=f):f=t[29];let y;return t[30]===j?y=t[31]:(y=(0,r.jsxs)(ye,{direction:"horizontal",className:"h-full",children:[j,I,f]}),t[30]=j,t[31]=y),y};var Me=({run:t,isMostRecentRun:e,chartPosition:l,isExpanded:i,theme:n})=>{let o=ee(Q);i??(i=e);let a=()=>{o(d=>{let m=new Map(d);return m.set(t.runId,!i),m})},w=(0,r.jsx)(i?me:pe,{height:16,className:"inline"}),u=(0,r.jsxs)("span",{className:"text-sm cursor-pointer",onClick:a,children:["Run - ",A(t.runStartTime),w]});return i?(0,r.jsx)($e,{run:t,chartPosition:l,theme:n,title:u},t.runId):(0,r.jsx)("div",{className:"flex flex-col",children:(0,r.jsx)("pre",{className:"font-mono font-semibold",children:u})},t.runId)},$e=t=>{let e=(0,D.c)(40),{run:l,chartPosition:i,theme:n,title:o}=t,[a,w]=(0,z.useState)(),u=(0,z.useRef)(null),{ref:d,width:m}=je(),x=m===void 0?300:m,p=ae(),c,h;if(e[0]!==p||e[1]!==i||e[2]!==l.cellRuns||e[3]!==l.runId||e[4]!==n){let k=[...l.cellRuns.values()].map(S=>{let R=S.elapsedTime??0;return{cell:S.cellId,cellNum:p.inOrderIds.indexOf(S.cellId),startTimestamp:Z(S.startTime),endTimestamp:Z(S.startTime+R),elapsedTime:U(R*1e3),status:S.status}});c=`hiddenInputElement-${l.runId}`,h=xe(Re(k,c,i,n)),e[0]=p,e[1]=i,e[2]=l.cellRuns,e[3]=l.runId,e[4]=n,e[5]=c,e[6]=h}else c=e[5],h=e[6];let v=h.spec,g=n==="dark"?"dark":void 0,j=x-50,I=i==="above"?120:100,f;e[7]!==g||e[8]!==j||e[9]!==I?(f={theme:g,width:j,height:I,actions:!1,mode:"vega",renderer:"canvas"},e[7]=g,e[8]=j,e[9]=I,e[10]=f):f=e[10];let y;e[11]!==f||e[12]!==v?(y={ref:u,spec:v,options:f},e[11]=f,e[12]=v,e[13]=y):y=e[13];let s=ve(y),N;e[14]===(s==null?void 0:s.view)?N=e[15]:(N=()=>{let k=[{signalName:Y,handler:(S,R)=>{var L;let C=(L=R.cell)==null?void 0:L[0];w(C??null)}}];return k.forEach(S=>{let{signalName:R,handler:C}=S;s==null||s.view.addSignalListener(R,C)}),()=>{k.forEach(S=>{let{signalName:R,handler:C}=S;s==null||s.view.removeSignalListener(R,C)})}},e[14]=s==null?void 0:s.view,e[15]=N);let T;e[16]===s?T=e[17]:(T=[s],e[16]=s,e[17]=T),(0,z.useEffect)(N,T);let b;e[18]!==c||e[19]!==a||e[20]!==l?(b=(0,r.jsx)(ze,{run:l,hoveredCellId:a,hiddenInputElementId:c}),e[18]=c,e[19]=a,e[20]=l,e[21]=b):b=e[21];let _=b,F=i==="sideBySide"?"-mt-0.5 flex-1":"",E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=(0,r.jsx)(z.Suspense,{children:(0,r.jsx)("div",{ref:u})}),e[22]=E):E=e[22];let P;e[23]!==d||e[24]!==F?(P=(0,r.jsx)("div",{className:F,ref:d,children:E}),e[23]=d,e[24]=F,e[25]=P):P=e[25];let M=P;if(i==="above"){let k;e[26]!==M||e[27]!==o||e[28]!==_?(k=(0,r.jsxs)("pre",{className:"font-mono font-semibold",children:[o,M,_]}),e[26]=M,e[27]=o,e[28]=_,e[29]=k):k=e[29];let S;return e[30]!==l.runId||e[31]!==k?(S=(0,r.jsx)("div",{className:"flex flex-col",children:k},l.runId),e[30]=l.runId,e[31]=k,e[32]=S):S=e[32],S}let $;e[33]!==o||e[34]!==_?($=(0,r.jsxs)("pre",{className:"font-mono font-semibold",children:[o,_]}),e[33]=o,e[34]=_,e[35]=$):$=e[35];let B;return e[36]!==M||e[37]!==l.runId||e[38]!==$?(B=(0,r.jsxs)("div",{className:"flex flex-row",children:[$,M]},l.runId),e[36]=M,e[37]=l.runId,e[38]=$,e[39]=B):B=e[39],B},ze=t=>{let e=(0,D.c)(12),{run:l,hoveredCellId:i,hiddenInputElementId:n}=t,o=(0,z.useRef)(null),a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=c=>{o.current&&(o.current.value=String(c),o.current.dispatchEvent(new Event("input",{bubbles:!0})))},e[0]=a):a=e[0];let w=a,u=i||"",d;e[1]!==n||e[2]!==u?(d=(0,r.jsx)("input",{type:"text",id:n,defaultValue:u,hidden:!0,ref:o}),e[1]=n,e[2]=u,e[3]=d):d=e[3];let m;e[4]===l.cellRuns?m=e[5]:(m=[...l.cellRuns.values()],e[4]=l.cellRuns,e[5]=m);let x;e[6]!==i||e[7]!==m?(x=m.map(c=>(0,r.jsx)(Ee,{cellRun:c,hovered:c.cellId===i,dispatchHoverEvent:w},c.cellId)),e[6]=i,e[7]=m,e[8]=x):x=e[8];let p;return e[9]!==d||e[10]!==x?(p=(0,r.jsxs)("div",{className:"text-xs mt-0.5 ml-3 flex flex-col gap-0.5",children:[d,x]}),e[9]=d,e[10]=x,e[11]=p):p=e[11],p},Ce={success:(0,r.jsx)(ue,{color:"green",size:14}),running:(0,r.jsx)(he,{color:"var(--blue-10)",size:14}),error:(0,r.jsx)(re,{color:"red",size:14}),queued:(0,r.jsx)(we,{color:"grey",size:14})},Ee=t=>{let e=(0,D.c)(39),{cellRun:l,hovered:i,dispatchHoverEvent:n}=t,o;e[0]===l.elapsedTime?o=e[1]:(o=l.elapsedTime?U(l.elapsedTime*1e3):"-",e[0]=l.elapsedTime,e[1]=o);let a=o,w;e[2]!==l.elapsedTime||e[3]!==a?(w=l.elapsedTime?(0,r.jsxs)("span",{children:["This cell took ",(0,r.jsx)(de,{elapsedTime:a})," to run"]}):(0,r.jsx)("span",{children:"This cell has not been run"}),e[2]=l.elapsedTime,e[3]=a,e[4]=w):w=e[4];let u=w,d;e[5]!==l.cellId||e[6]!==n?(d=()=>{n(l.cellId)},e[5]=l.cellId,e[6]=n,e[7]=d):d=e[7];let m=d,x;e[8]===n?x=e[9]:(x=()=>{n(null)},e[8]=n,e[9]=x);let p=x,c=i&&"bg-(--gray-3) opacity-100",h;e[10]===c?h=e[11]:(h=oe("flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-(--gray-3) hover:opacity-100",c),e[10]=c,e[11]=h);let v;e[12]===l.startTime?v=e[13]:(v=A(l.startTime),e[12]=l.startTime,e[13]=v);let g;e[14]===v?g=e[15]:(g=(0,r.jsxs)("span",{className:"text-(--gray-10) dark:text-(--gray-11)",children:["[",v,"]"]}),e[14]=v,e[15]=g);let j;e[16]===l.cellId?j=e[17]:(j=(0,r.jsxs)("span",{className:"text-(--gray-10) w-16",children:["(",(0,r.jsx)(ge,{cellId:l.cellId}),")"]}),e[16]=l.cellId,e[17]=j);let I;e[18]===l.code?I=e[19]:(I=(0,r.jsx)("span",{className:"w-40 truncate -ml-1",children:l.code}),e[18]=l.code,e[19]=I);let f;e[20]===a?f=e[21]:(f=(0,r.jsx)("span",{className:"text-(--gray-10) dark:text-(--gray-11)",children:a}),e[20]=a,e[21]=f);let y;e[22]!==u||e[23]!==f?(y=(0,r.jsx)(J,{content:u,children:f}),e[22]=u,e[23]=f,e[24]=y):y=e[24];let s=Ce[l.status],N;e[25]!==l.status||e[26]!==s?(N=(0,r.jsx)(J,{content:l.status,children:s}),e[25]=l.status,e[26]=s,e[27]=N):N=e[27];let T;e[28]!==y||e[29]!==N?(T=(0,r.jsxs)("div",{className:"flex flex-row gap-1 w-16 justify-end -ml-2",children:[y,N]}),e[28]=y,e[29]=N,e[30]=T):T=e[30];let b;return e[31]!==m||e[32]!==p||e[33]!==I||e[34]!==T||e[35]!==h||e[36]!==g||e[37]!==j?(b=(0,r.jsxs)("div",{className:h,onMouseEnter:m,onMouseLeave:p,children:[g,j,I,T]}),e[31]=m,e[32]=p,e[33]=I,e[34]=T,e[35]=h,e[36]=g,e[37]=j,e[38]=b):b=e[38],b};export{_e as Tracing}; diff --git a/docs/assets/tracing-panel-C9hGUzPk.js b/docs/assets/tracing-panel-C9hGUzPk.js new file mode 100644 index 0000000..ed3b4b2 --- /dev/null +++ b/docs/assets/tracing-panel-C9hGUzPk.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tracing-DsibCERP.js","./clear-button-B9htnn2a.js","./cn-C1rgT0yh.js","./clsx-D0MtrJOx.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./jsx-runtime-DN_bIXfG.js","./cells-CmJW_FeD.js","./preload-helper-BW0IMuFq.js","./badge-DAnNhy3O.js","./button-B8cGZzP5.js","./hotkeys-uKX61F1_.js","./useEventListener-COkmyg1v.js","./Combination-D1TsGrBC.js","./react-dom-C9fstfnp.js","./select-D9lTzMzP.js","./menu-items-9PZrU2e0.js","./dist-CBrDuocE.js","./createLucideIcon-CW2xpJ57.js","./check-CrAQug3q.js","./tooltip-CvjcEpZC.js","./use-toast-Bzf3rpev.js","./utils-Czt8B2GX.js","./useEvent-DlWF5OMa.js","./_baseIsEqual-Cz9Tt_-E.js","./_getTag-BWqNuuwU.js","./_Uint8Array-BGESiCQL.js","./invariant-C6yE60hi.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-Cg4WLWh2.js","./config-CENq_7Pd.js","./constants-Bkp4R3bQ.js","./Deferred-DzyBMRsy.js","./DeferredRequestRegistry-B3BENoUa.js","./uuid-ClFZlR7U.js","./requests-C0HaHO6a.js","./useLifecycle-CmDXEyIC.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_hasUnicode-zBEpxwYe.js","./useNonce-EAuSVK-5.js","./useTheme-BSVRc0kJ.js","./once-CTiSlR1m.js","./capabilities-BmAOeMOK.js","./createReducer-DDa-hVe3.js","./dist-DKNOF5xd.js","./dist-CAcX026F.js","./dist-CI6_zMIl.js","./dist-HGZzCB0y.js","./dist-CVj-_Iiz.js","./dist-BVf1IY4_.js","./dist-Cq_4nPfh.js","./dist-RKnr9SNh.js","./dist-BuhT82Xx.js","./stex-0ac7Aukl.js","./toDate-5JckKRQn.js","./cjs-Bj40p_Np.js","./type-BdyvjzTI.js","./_arrayReduce-bZBYsK-u.js","./_baseProperty-DuoFhI7N.js","./debounce-BbFlGgjv.js","./now-6sUe0ZdD.js","./toInteger-CDcO32Gx.js","./database-zap-CaVvnK_o.js","./main-CwSdzVhm.js","./cells-jmgGt1lS.css","./CellStatus-D1YyNsC9.js","./multi-icon-6ulZXArq.js","./multi-icon-pwGWVz3d.css","./useDateFormatter-CV0QXb5P.js","./context-BAYdLMF_.js","./SSRProvider-DD7JA3RM.js","./en-US-DhMN8sxe.js","./ellipsis-DwHM80y-.js","./refresh-cw-Din9uFKE.js","./workflow-ZGK5flRg.js","./CellStatus-2Psjnl5F.css","./empty-state-H6r25Wek.js","./cell-link-D7bPw7Fz.js","./ImperativeModal-BZvZlZQZ.js","./alert-dialog-jcHA5geR.js","./dialog-CF5DtF1E.js","./input-Bkl2Yfmh.js","./useDebounce-em3gna-v.js","./numbers-C9_R_vlY.js","./useNumberFormatter-D8ks3oPN.js","./usePress-C2LPFxyv.js","./runs-DGUGtjQH.js","./react-vega-CI0fuCLO.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./linear-AjjmB_kQ.js","./timer-CPT_vXom.js","./init-DsZRk2YA.js","./time-DIXLO3Ax.js","./defaultLocale-DzliDDTm.js","./range-gMGfxVwZ.js","./vega-loader.browser-C8wT63Va.js","./treemap-DeGcO9km.js","./path-DvTahePH.js","./colors-BG8Z91CW.js","./ordinal-_nQ2r1qQ.js","./arc-CWuN1tfc.js","./math-B-ZqhQTL.js","./array-CC7vZNGO.js","./step-D7xg1Moj.js","./line-x4bpd_8D.js","./chevron-right-CqEd11Di.js","./circle-check-Cr0N4h9T.js","./circle-play-r3MHdB-P.js","./react-resizable-panels.browser.esm-B7ZqbY8M.js","./bundle.esm-dxSncdJD.js"])))=>i.map(i=>d[i]); +import{s as m}from"./chunk-LvLJmgfZ.js";import{t as i}from"./react-BGmjiNul.js";import{t as n}from"./compiler-runtime-DeeZ7FnK.js";import{t as f}from"./jsx-runtime-DN_bIXfG.js";import{t as _}from"./spinner-C1czjtp7.js";import{t as p}from"./preload-helper-BW0IMuFq.js";let c,u=(async()=>{let a,l,r,o,s;a=n(),l=m(i(),1),r=m(f(),1),o=l.lazy(()=>p(()=>import("./tracing-DsibCERP.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113]),import.meta.url).then(t=>({default:t.Tracing}))),c=()=>{let t=(0,a.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(l.Suspense,{fallback:(0,r.jsx)(s,{}),children:(0,r.jsx)(o,{})}),t[0]=e):e=t[0],e},s=()=>{let t=(0,a.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("div",{className:"flex flex-col items-center justify-center h-full",children:(0,r.jsx)(_,{})}),t[0]=e):e=t[0],e}})();export{u as __tla,c as default}; diff --git a/docs/assets/trash-2-C-lF7BNB.js b/docs/assets/trash-2-C-lF7BNB.js new file mode 100644 index 0000000..02ff07d --- /dev/null +++ b/docs/assets/trash-2-C-lF7BNB.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);export{t}; diff --git a/docs/assets/trash-BUTJdkWl.js b/docs/assets/trash-BUTJdkWl.js new file mode 100644 index 0000000..01f6728 --- /dev/null +++ b/docs/assets/trash-BUTJdkWl.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);export{t}; diff --git a/docs/assets/tree-CeX0mTvA.js b/docs/assets/tree-CeX0mTvA.js new file mode 100644 index 0000000..b111e9e --- /dev/null +++ b/docs/assets/tree-CeX0mTvA.js @@ -0,0 +1,3 @@ +import{r as Ke,s as ue,t as Or}from"./chunk-LvLJmgfZ.js";import{t as Ir}from"./react-BGmjiNul.js";import{t as br}from"./jsx-runtime-DN_bIXfG.js";import{s as Sr}from"./popover-DtnzNVk-.js";import{t as Dr}from"./extends-B9D0JO9U.js";function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},he(e,t)}function Tr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,he(e,t)}function Ve(e){if(e===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Er=Or(((e,t)=>{t.exports=function r(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var s,o,a;if(Array.isArray(n)){if(s=n.length,s!=i.length)return!1;for(o=s;o--!==0;)if(!r(n[o],i[o]))return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();if(a=Object.keys(n),s=a.length,s!==Object.keys(i).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(i,a[o]))return!1;for(o=s;o--!==0;){var d=a[o];if(!r(n[d],i[d]))return!1}return!0}return n!==n&&i!==i}})),f=ue(Ir(),1);const Ye=(0,f.createContext)({dragDropManager:void 0});function R(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qe=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),fe=function(){return Math.random().toString(36).substring(7).split("").join(".")},$e={INIT:"@@redux/INIT"+fe(),REPLACE:"@@redux/REPLACE"+fe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fe()}};function wr(e){if(typeof e!="object"||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Xe(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw Error(R(0));if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),r!==void 0){if(typeof r!="function")throw Error(R(1));return r(Xe)(e,t)}if(typeof e!="function")throw Error(R(2));var i=e,s=t,o=[],a=o,d=!1;function h(){a===o&&(a=o.slice())}function p(){if(d)throw Error(R(3));return s}function b(l){if(typeof l!="function")throw Error(R(4));if(d)throw Error(R(5));var u=!0;return h(),a.push(l),function(){if(u){if(d)throw Error(R(6));u=!1,h();var g=a.indexOf(l);a.splice(g,1),o=null}}}function I(l){if(!wr(l))throw Error(R(7));if(l.type===void 0)throw Error(R(8));if(d)throw Error(R(9));try{d=!0,s=i(s,l)}finally{d=!1}for(var u=o=a,g=0;gn&&n[i]?n[i]:r||null,e)}function Nr(e,t){return e.filter(r=>r!==t)}function Je(e){return typeof e=="object"}function Rr(e,t){let r=new Map,n=s=>{r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);let i=[];return r.forEach((s,o)=>{s===1&&i.push(o)}),i}function Pr(e,t){return e.filter(r=>t.indexOf(r)>-1)}const ge="dnd-core/INIT_COORDS",J="dnd-core/BEGIN_DRAG",pe="dnd-core/PUBLISH_DRAG_SOURCE",Q="dnd-core/HOVER",Z="dnd-core/DROP",ee="dnd-core/END_DRAG";function Qe(e,t){return{type:ge,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var jr={type:ge,payload:{clientOffset:null,sourceClientOffset:null}};function _r(e){return function(t=[],r={publishSource:!0}){let{publishSource:n=!0,clientOffset:i,getSourceClientOffset:s}=r,o=e.getMonitor(),a=e.getRegistry();e.dispatch(Qe(i)),Mr(t,o,a);let d=kr(t,o);if(d==null){e.dispatch(jr);return}let h=null;if(i){if(!s)throw Error("getSourceClientOffset must be defined");Ar(s),h=s(d)}e.dispatch(Qe(i,h));let p=a.getSource(d).beginDrag(o,d);if(p!=null)return Lr(p),a.pinSource(d),{type:J,payload:{itemType:a.getSourceType(d),item:p,sourceId:d,clientOffset:i||null,sourceClientOffset:h||null,isSourcePublic:!!n}}}}function Mr(e,t,r){y(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){y(r.getSource(n),"Expected sourceIds to be registered.")})}function Ar(e){y(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Lr(e){y(Je(e),"Item must be an object.")}function kr(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function Hr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fr(e){for(var t=1;t{let o={type:Z,payload:{dropResult:Fr({},t,zr(i,s,n,r))}};e.dispatch(o)})}}function Br(e){y(e.isDragging(),"Cannot call drop while not dragging."),y(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function zr(e,t,r,n){let i=r.getTarget(e),s=i?i.drop(n,e):void 0;return Wr(s),s===void 0&&(s=t===0?{}:n.getDropResult()),s}function Wr(e){y(e===void 0||Je(e),"Drop result must either be an object or undefined.")}function Gr(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Kr(e){return function(){let t=e.getMonitor(),r=e.getRegistry();Vr(t);let n=t.getSourceId();return n!=null&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource()),{type:ee}}}function Vr(e){y(e.isDragging(),"Cannot call endDrag while not dragging.")}function ve(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function Yr(e){return function(t,{clientOffset:r}={}){qr(t);let n=t.slice(0),i=e.getMonitor(),s=e.getRegistry();return Xr(n,s,i.getItemType()),$r(n,i,s),Jr(n,i,s),{type:Q,payload:{targetIds:n,clientOffset:r||null}}}}function qr(e){y(Array.isArray(e),"Expected targetIds to be an array.")}function $r(e,t,r){y(t.isDragging(),"Cannot call hover while not dragging."),y(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n=0;n--){let i=e[n];ve(t.getTargetType(i),r)||e.splice(n,1)}}function Jr(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function Qr(e){return function(){if(e.getMonitor().isDragging())return{type:pe}}}function Zr(e){return{beginDrag:_r(e),publishDragSource:Qr(e),hover:Yr(e),drop:Ur(e),endDrag:Kr(e)}}var en=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function r(i){return(...s)=>{let o=i.apply(e,s);o!==void 0&&t(o)}}let n=Zr(this);return Object.keys(n).reduce((i,s)=>{let o=n[s];return i[s]=r(o),i},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function tn(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Ze(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rn(e){let{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:Ze(tn(t,n),r)}function nn(e){let{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Ze(t,r)}const V=[],me=[];V.__IS_NONE__=!0,me.__IS_ALL__=!0;function sn(e,t){return e===V?!1:e===me||t===void 0?!0:Pr(t,e).length>0}var on=class{subscribeToStateChange(e,t={}){let{handlerIds:r}=t;y(typeof e=="function","listener must be a function."),y(r===void 0||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe(()=>{let i=this.store.getState(),s=i.stateId;try{s===n||s===n+1&&!sn(i.dirtyHandlerIds,r)||e()}finally{n=s}})}subscribeToOffsetChange(e){y(typeof e=="function","listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let r=this.store.getState().dragOffset;r!==t&&(t=r,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return y(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return y(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:ve(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return y(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:r}=t;if(!this.isDragging())return!1;let n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!ve(n,i))return!1;let s=this.getTargetIds();if(!s.length)return!1;let o=s.indexOf(e);return r?o===s.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return rn(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return nn(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},et=typeof global<"u"?global:self,tt=et.MutationObserver||et.WebKitMutationObserver;function rt(e){return function(){let t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}function an(e){let t=1,r=new tt(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const ln=typeof tt=="function"?an:rt;var dn=class{enqueueTask(e){let{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.indexthis.capacity){for(let r=0,n=e.length-this.index;r{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ln(this.flush),this.requestErrorThrow=rt(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},cn=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},un=class{create(e){let t=this.freeTasks,r=t.length?t.pop():new cn(this.onError,n=>t[t.length]=n);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}},nt=new dn,hn=new un(nt.registerPendingError);function fn(e){nt.enqueueTask(hn.create(e))}const ye="dnd-core/ADD_SOURCE",Oe="dnd-core/ADD_TARGET",Ie="dnd-core/REMOVE_SOURCE",te="dnd-core/REMOVE_TARGET";function gn(e){return{type:ye,payload:{sourceId:e}}}function pn(e){return{type:Oe,payload:{targetId:e}}}function vn(e){return{type:Ie,payload:{sourceId:e}}}function mn(e){return{type:te,payload:{targetId:e}}}function yn(e){y(typeof e.canDrag=="function","Expected canDrag to be a function."),y(typeof e.beginDrag=="function","Expected beginDrag to be a function."),y(typeof e.endDrag=="function","Expected endDrag to be a function.")}function On(e){y(typeof e.canDrop=="function","Expected canDrop to be a function."),y(typeof e.hover=="function","Expected hover to be a function."),y(typeof e.drop=="function","Expected beginDrag to be a function.")}function be(e,t){if(t&&Array.isArray(e)){e.forEach(r=>be(r,!1));return}y(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var P;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(P||(P={}));var In=0;function bn(){return In++}function Sn(e){let t=bn().toString();switch(e){case P.SOURCE:return`S${t}`;case P.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function it(e){switch(e[0]){case"S":return P.SOURCE;case"T":return P.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function st(e,t){let r=e.entries(),n=!1;do{let{done:i,value:[,s]}=r.next();if(s===t)return!0;n=!!i}while(!n);return!1}var Dn=class{addSource(e,t){be(e),yn(t);let r=this.addHandler(P.SOURCE,e,t);return this.store.dispatch(gn(r)),r}addTarget(e,t){be(e,!0),On(t);let r=this.addHandler(P.TARGET,e,t);return this.store.dispatch(pn(r)),r}containsHandler(e){return st(this.dragSources,e)||st(this.dropTargets,e)}getSource(e,t=!1){return y(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return y(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return y(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return y(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return it(e)===P.SOURCE}isTargetId(e){return it(e)===P.TARGET}removeSource(e){y(this.getSource(e),"Expected an existing source."),this.store.dispatch(vn(e)),fn(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){y(this.getTarget(e),"Expected an existing target."),this.store.dispatch(mn(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);y(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){y(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){let n=Sn(e);return this.types.set(n,t),e===P.SOURCE?this.dragSources.set(n,r):e===P.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}};const Tn=(e,t)=>e===t;function En(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function wn(e,t,r=Tn){if(e.length!==t.length)return!1;for(let n=0;n0||!wn(r,n)))return V;let s=n[n.length-1],o=r[r.length-1];return s!==o&&(s&&i.push(s),o&&i.push(o)),i}function Cn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nn(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zn(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s=0)&&(r[i]=e[i]);return r}var at=0,re=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),lt=(0,f.memo)(function(e){var{children:t}=e;let[r,n]=Wn(Bn(e,["children"]));return(0,f.useEffect)(()=>{if(n){let i=dt();return++at,()=>{--at===0&&(i[re]=null)}}},[]),(0,m.jsx)(Ye.Provider,{value:r,children:t})});function Wn(e){return"manager"in e?[{dragDropManager:e.manager},!1]:[Gn(e.backend,e.context,e.options,e.debugMode),!e.context]}function Gn(e,t=dt(),r,n){let i=t;return i[re]||(i[re]={dragDropManager:Fn(e,t,r,n)}),i[re]}function dt(){return typeof global<"u"?global:window}const k=typeof window<"u"?f.useLayoutEffect:f.useEffect;var Kn=ue(Er(),1);function ct(e,t,r){let[n,i]=(0,f.useState)(()=>t(e)),s=(0,f.useCallback)(()=>{let o=t(e);(0,Kn.default)(n,o)||(i(o),r&&r())},[n,e,r]);return k(s),[n,s]}function Vn(e,t,r){let[n,i]=ct(e,t,r);return k(function(){let s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),n}function ut(e,t,r){return Vn(t,e||(()=>({})),()=>r.reconnect())}function ht(e,t){let r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),(0,f.useMemo)(()=>typeof e=="function"?e():e,r)}function Yn(e){return(0,f.useMemo)(()=>e.hooks.dragSource(),[e])}function qn(e){return(0,f.useMemo)(()=>e.hooks.dragPreview(),[e])}var Se=!1,De=!1,$n=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){y(!Se,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Se=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Se=!1}}isDragging(){if(!this.sourceId)return!1;y(!De,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return De=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{De=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}},Te=!1,Xn=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;y(!Te,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Te=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Te=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function Jn(e,t,r){let n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function Qn(e,t,r){let n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function Ee(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;let s=Object.keys(e),o=Object.keys(t);if(s.length!==o.length)return!1;let a=Object.prototype.hasOwnProperty.bind(t);for(let d=0;d, or turn it into a drag source or a drop target itself.`)}function ei(e){return(t=null,r=null)=>{if(!(0,f.isValidElement)(t)){let i=t;return e(i,r),i}let n=t;return Zn(n),ti(n,r?i=>e(i,r):e)}}function ft(e){let t={};return Object.keys(e).forEach(r=>{let n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{let i=ei(n);t[r]=()=>i}}),t}function gt(e,t){typeof e=="function"?e(t):e.current=t}function ti(e,t){let r=e.ref;return y(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,f.cloneElement)(e,{ref:n=>{gt(r,n),gt(t,n)}}):(0,f.cloneElement)(e,{ref:t})}var ri=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Ee(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Ee(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe=(this.dragSourceUnsubscribe(),void 0))}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=ft({dragSource:(t,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,we(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,we(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},ni=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Ee(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget=(this.unsubscribeDropTarget(),void 0))}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=ft({dropTarget:(t,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,we(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function A(){let{dragDropManager:e}=(0,f.useContext)(Ye);return y(e!=null,"Expected drag drop context"),e}function ii(e,t){let r=A(),n=(0,f.useMemo)(()=>new ri(r.getBackend()),[r]);return k(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),k(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function si(){let e=A();return(0,f.useMemo)(()=>new $n(e),[e])}var oi=class{beginDrag(){let e=this.spec,t=this.monitor,r=null;return r=typeof e.item=="object"?e.item:typeof e.item=="function"?e.item(t):{},r??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){let r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}};function ai(e,t,r){let n=(0,f.useMemo)(()=>new oi(e,t,r),[t,r]);return(0,f.useEffect)(()=>{n.spec=e},[e]),n}function li(e){return(0,f.useMemo)(()=>{let t=e.type;return y(t!=null,"spec.type must be defined"),t},[e])}function di(e,t,r){let n=A(),i=ai(e,t,r),s=li(e);k(function(){if(s!=null){let[o,a]=Qn(s,i,n);return t.receiveHandlerId(o),r.receiveHandlerId(o),a}},[n,t,r,i,s])}function ci(e,t){let r=ht(e,t);y(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");let n=si(),i=ii(r.options,r.previewOptions);return di(r,n,i),[ut(r.collect,n,i),Yn(i),qn(i)]}function ui(e){let t=A().getMonitor(),[r,n]=ct(t,e);return(0,f.useEffect)(()=>t.subscribeToOffsetChange(n)),(0,f.useEffect)(()=>t.subscribeToStateChange(n)),r}function hi(e){return(0,f.useMemo)(()=>e.hooks.dropTarget(),[e])}function fi(e){let t=A(),r=(0,f.useMemo)(()=>new ni(t.getBackend()),[t]);return k(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function gi(){let e=A();return(0,f.useMemo)(()=>new Xn(e),[e])}function pi(e){let{accept:t}=e;return(0,f.useMemo)(()=>(y(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}var vi=class{canDrop(){let e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function mi(e,t){let r=(0,f.useMemo)(()=>new vi(e,t),[t]);return(0,f.useEffect)(()=>{r.spec=e},[e]),r}function yi(e,t,r){let n=A(),i=mi(e,t),s=pi(e);k(function(){let[o,a]=Jn(s,i,n);return t.receiveHandlerId(o),r.receiveHandlerId(o),a},[n,t,i,r,s.map(o=>o.toString()).join("|")])}function pt(e,t){let r=ht(e,t),n=gi(),i=fi(r.options);return yi(r,n,i),[ut(r.collect,n,i),hi(i)]}function vt(e){let t=null;return()=>(t??(t=e()),t)}function Oi(e,t){return e.filter(r=>r!==t)}function Ii(e,t){let r=new Set,n=s=>r.add(s);e.forEach(n),t.forEach(n);let i=[];return r.forEach(s=>i.push(s)),i}var bi=class{enter(e){let t=this.entered.length;return this.entered=Ii(this.entered.filter(r=>this.isNodeInDocument(r)&&(!r.contains||r.contains(e))),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Oi(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Si=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(r=>{let n=this.config.exposeProperties[r];n!=null&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},mt=Ke({FILE:()=>yt,HTML:()=>bt,TEXT:()=>It,URL:()=>Ot},1);const yt="__NATIVE_FILE__",Ot="__NATIVE_URL__",It="__NATIVE_TEXT__",bt="__NATIVE_HTML__";function xe(e,t,r){return t.reduce((n,i)=>n||e.getData(i),"")??r}const Ce={[yt]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[bt]:{exposeProperties:{html:(e,t)=>xe(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ot]:{exposeProperties:{urls:(e,t)=>xe(e,t,"").split(` +`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[It]:{exposeProperties:{text:(e,t)=>xe(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Di(e,t){let r=Ce[e];if(!r)throw Error(`native type ${e} has no configuration`);let n=new Si(r);return n.loadDataTransfer(t),n}function Ne(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys(Ce).filter(r=>{let n=Ce[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const Ti=vt(()=>/firefox/i.test(navigator.userAgent)),St=vt(()=>!!window.safari);var Dt=class{interpolate(e){let{xs:t,ys:r,c1s:n,c2s:i,c3s:s}=this,o=t.length-1;if(e===t[o])return r[o];let a=0,d=s.length-1,h;for(;a<=d;){h=Math.floor(.5*(a+d));let I=t[h];if(Ie)d=h-1;else return r[h]}o=Math.max(0,d);let p=e-t[o],b=p*p;return r[o]+n[o]*p+i[o]*b+s[o]*p*b}constructor(e,t){let{length:r}=e,n=[];for(let v=0;ve[v]{let D=new Dt([0,.5,1],[a.y,a.y/h*v,a.y+v-h]).interpolate(b);return St()&&s&&(D+=(window.devicePixelRatio-1)*v),D},l=()=>new Dt([0,.5,1],[a.x,a.x/d*I,a.x+I-d]).interpolate(p),{offsetX:u,offsetY:g}=i,O=u===0||u,S=g===0||g;return{x:O?u:l(),y:S?g:c()}}var Ni=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;if((e=this.globalContext)!=null&&e.document)return this.globalContext.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.optionsArgs)==null?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Ri(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(e){for(var t=1;t{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);let n=s=>this.handleDragStart(s,e),i=s=>this.handleSelectStart(s);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){let r=s=>this.handleDragEnter(s,e),n=s=>this.handleDragOver(s,e),i=s=>this.handleDrop(s,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Et({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return Et({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(mt).some(t=>mt[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Di(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var t;return(t=this.rootElement)==null?void 0:t.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=n=>{let i=this.sourceNodes.get(n);return i&&Tt(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=n=>!!(n&&this.document&&this.document.body&&this.document.body.contains(n)),this.endDragIfSourceWasRemovedFromDOM=()=>{let n=this.currentDragSourceNode;n==null||this.isNodeInDocument(n)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=n=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(n||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=n=>{if(n.defaultPrevented)return;let{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;let s=ne(n);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});let{dataTransfer:o}=n,a=Ne(o);if(this.monitor.isDragging()){if(o&&typeof o.setDragImage=="function"){let h=this.monitor.getSourceId(),p=this.sourceNodes.get(h),b=this.sourcePreviewNodes.get(h)||p;if(b){let{anchorX:I,anchorY:v,offsetX:c,offsetY:l}=this.getCurrentSourcePreviewNodeOptions(),u=Ci(p,b,s,{anchorX:I,anchorY:v},{offsetX:c,offsetY:l});o.setDragImage(b,u.x,u.y)}}try{o==null||o.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(n.target);let{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(a)this.beginDragNativeItem(a);else{if(o&&!o.types&&(n.target&&!n.target.hasAttribute||!n.target.hasAttribute("draggable")))return;n.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=n=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)==null||i.loadDataTransfer(n.dataTransfer)}if(!this.enterLeaveCounter.enter(n.target)||this.monitor.isDragging())return;let{dataTransfer:s}=n,o=Ne(s);o&&this.beginDragNativeItem(o,s)},this.handleTopDragEnter=n=>{let{dragEnterTargetIds:i}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=n.altKey,i.length>0&&this.actions.hover(i,{clientOffset:ne(n)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=n=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)==null||i.loadDataTransfer(n.dataTransfer)}},this.handleTopDragOver=n=>{let{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none");return}this.altKeyPressed=n.altKey,this.lastClientOffset=ne(n),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?n.preventDefault():(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=n=>{this.isDraggingNativeItem()&&n.preventDefault(),this.enterLeaveCounter.leave(n.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=n=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;n.preventDefault(),(i=this.currentNativeSource)==null||i.loadDataTransfer(n.dataTransfer)}else Ne(n.dataTransfer)&&n.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=n=>{let{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:ne(n)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=n=>{let i=n.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(n.preventDefault(),i.dragDrop()))},this.options=new Ni(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new bi(this.isNodeInDocument)}},ie;function ji(){return ie||(ie=new Image,ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),ie}const wt=function(e,t,r){return new Pi(e,t,r)},xt=(0,f.createContext)(null);function N(){let e=(0,f.useContext)(xt);if(e===null)throw Error("No Tree Api Provided");return e}const Ct=(0,f.createContext)(null);function _i(){let e=(0,f.useContext)(Ct);if(e===null)throw Error("Provide a NodesContext");return e}const Nt=(0,f.createContext)(null);function Mi(){let e=(0,f.useContext)(Nt);if(e===null)throw Error("Provide a DnDContext");return e}const Rt=(0,f.createContext)(0);function Pt(){(0,f.useContext)(Rt)}var Ai=Ke({access:()=>Y,bound:()=>se,dfs:()=>Re,focusNextElement:()=>kt,focusPrevElement:()=>Ht,getInsertIndex:()=>Wt,getInsertParentId:()=>Gt,identify:()=>H,identifyNull:()=>Ut,indexOf:()=>Lt,isClosed:()=>_t,isDescendant:()=>At,isItem:()=>jt,isOpenWithEmptyChildren:()=>Mt,mergeRefs:()=>Fi,noop:()=>Li,safeRun:()=>Bt,waitFor:()=>zt,walk:()=>oe},1);function se(e,t,r){return Math.max(Math.min(e,r),t)}function jt(e){return e&&e.isLeaf}function _t(e){return e&&e.isInternal&&!e.isOpen}function Mt(e){var t;return e&&e.isOpen&&!((t=e.children)!=null&&t.length)}const At=(e,t)=>{let r=e;for(;r;){if(r.id===t.id)return!0;r=r.parent}return!1},Lt=e=>{if(!e.parent)throw Error("Node does not have a parent");return e.parent.children.findIndex(t=>t.id===e.id)};function Li(){}function Re(e,t){if(!e)return null;if(e.id===t)return e;if(e.children)for(let r of e.children){let n=Re(r,t);if(n)return n}return null}function oe(e,t){if(t(e),e.children)for(let r of e.children)oe(r,t)}function kt(e){let t=Ft(e),r;for(let n=0;n=0?e[t-1]:e[e.length-1]}function Ft(e){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(t=>t===e||!e.contains(t))}function Y(e,t){return typeof t=="boolean"?t:typeof t=="string"?e[t]:t(e)}function Ut(e){return e===null?null:H(e)}function H(e){return typeof e=="string"?e:e.id}function Fi(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}function Bt(e,...t){if(e)return e(...t)}function zt(e){return new Promise((t,r)=>{let n=0;function i(){n+=1,n===100&&r(),e()?t():setTimeout(i,10)}i()})}function Wt(e){var r;let t=e.focusedNode;return t?t.isOpen?0:t.parent?t.childIndex+1:0:((r=e.root.children)==null?void 0:r.length)??0}function Gt(e){let t=e.focusedNode;return t?t.isOpen?t.id:t.parent&&!t.parent.isRoot?t.parent.id:null:null}var Ui={display:"flex",alignItems:"center",zIndex:1},Bi={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},zi={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"};const Wi=f.memo(function({top:e,left:t,indent:r}){let n={position:"absolute",pointerEvents:"none",top:e-2+"px",left:t+"px",right:r+"px"};return(0,m.jsxs)("div",{style:Object.assign(Object.assign({},Ui),n),children:[(0,m.jsx)("div",{style:Object.assign({},zi)}),(0,m.jsx)("div",{style:Object.assign({},Bi)})]})});function Gi({node:e,attrs:t,innerRef:r,children:n}){return(0,m.jsx)("div",Object.assign({},t,{ref:r,onFocus:i=>i.stopPropagation(),onClick:e.handleClick,children:n}))}function Ki(e){return(0,m.jsxs)("div",{ref:e.dragHandle,style:e.style,children:[(0,m.jsx)("span",{onClick:t=>{t.stopPropagation(),e.node.toggle()},children:e.node.isLeaf?"\u{1F333}":e.node.isOpen?"\u{1F5C1}":"\u{1F5C0}"})," ",e.node.isEditing?(0,m.jsx)(Yi,Object.assign({},e)):(0,m.jsx)(Vi,Object.assign({},e))]})}function Vi(e){return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("span",{children:e.node.data.name})})}function Yi({node:e}){let t=(0,f.useRef)();return(0,f.useEffect)(()=>{var r,n;(r=t.current)==null||r.focus(),(n=t.current)==null||n.select()},[]),(0,m.jsx)("input",{ref:t,defaultValue:e.data.name,onBlur:()=>e.reset(),onKeyDown:r=>{var n;r.key==="Escape"&&e.reset(),r.key==="Enter"&&e.submit(((n=t.current)==null?void 0:n.value)||"")}})}function Pe(e){return{type:"EDIT",id:e}}function qi(e={id:null},t){return t.type==="EDIT"?Object.assign(Object.assign({},e),{id:t.id}):e}function B(e){return{type:"FOCUS",id:e}}function $i(){return{type:"TREE_BLUR"}}function Xi(e={id:null,treeFocused:!1},t){return t.type==="FOCUS"?Object.assign(Object.assign({},e),{id:t.id,treeFocused:!0}):t.type==="TREE_BLUR"?Object.assign(Object.assign({},e),{treeFocused:!1}):e}var Kt=class ur{constructor(t){this.handleClick=r=>{r.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():r.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=t.tree,this.id=t.id,this.data=t.data,this.level=t.level,this.children=t.children,this.parent=t.parent,this.isDraggable=t.isDraggable,this.rowIndex=t.rowIndex}get isRoot(){return this.id===je}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var t;return this.isSelected&&!((t=this.prev)!=null&&t.isSelected)}get isSelectedEnd(){var t;return this.isSelected&&!((t=this.next)!=null&&t.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(t=>t.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var r;let t=this.childIndex;return((r=this.parent)==null?void 0:r.children[t+1])??null}isAncestorOf(t){if(!t)return!1;let r=t;for(;r;){if(r.id===this.id)return!0;r=r.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(t){this.tree.submit(this,t)}reset(){this.tree.reset()}clone(){return new ur(Object.assign({},this))}edit(){return this.tree.edit(this)}};const je="__REACT_ARBORIST_INTERNAL_ROOT__";function Vt(e){function t(n,i,s){let o=new Kt({tree:e,data:n,level:i,parent:s,id:e.accessId(n),children:null,isDraggable:e.isDraggable(n),rowIndex:null}),a=e.accessChildren(n);return a&&(o.children=a.map(d=>t(d,i+1,o))),o}let r=new Kt({tree:e,id:je,data:{id:je},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null});return r.children=(e.props.data??[]).map(n=>t(n,0,r)),r}const _e={open(e,t){return{type:"VISIBILITY_OPEN",id:e,filtered:t}},close(e,t){return{type:"VISIBILITY_CLOSE",id:e,filtered:t}},toggle(e,t){return{type:"VISIBILITY_TOGGLE",id:e,filtered:t}},clear(e){return{type:"VISIBILITY_CLEAR",filtered:e}}};function Yt(e={},t){if(t.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},e),{[t.id]:!0});if(t.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},e),{[t.id]:!1});if(t.type==="VISIBILITY_TOGGLE"){let r=e[t.id];return Object.assign(Object.assign({},e),{[t.id]:!r})}else return t.type==="VISIBILITY_CLEAR"?{}:e}function Ji(e={filtered:{},unfiltered:{}},t){return t.type.startsWith("VISIBILITY")?t.filtered?Object.assign(Object.assign({},e),{filtered:Yt(e.filtered,t)}):Object.assign(Object.assign({},e),{unfiltered:Yt(e.unfiltered,t)}):e}const z=e=>({nodes:{open:{filtered:{},unfiltered:(e==null?void 0:e.initialOpenState)??{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}),j={clear:()=>({type:"SELECTION_CLEAR"}),only:e=>({type:"SELECTION_ONLY",id:H(e)}),add:e=>({type:"SELECTION_ADD",ids:(Array.isArray(e)?e:[e]).map(H)}),remove:e=>({type:"SELECTION_REMOVE",ids:(Array.isArray(e)?e:[e]).map(H)}),set:e=>Object.assign({type:"SELECTION_SET"},e),mostRecent:e=>({type:"SELECTION_MOST_RECENT",id:e===null?null:H(e)}),anchor:e=>({type:"SELECTION_ANCHOR",id:e===null?null:H(e)})};function Qi(e=z().nodes.selection,t){let r=e.ids;switch(t.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},e),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},e),{ids:new Set([t.id])});case"SELECTION_ADD":return t.ids.length===0?e:(t.ids.forEach(n=>r.add(n)),Object.assign(Object.assign({},e),{ids:new Set(r)}));case"SELECTION_REMOVE":return t.ids.length===0?e:(t.ids.forEach(n=>r.delete(n)),Object.assign(Object.assign({},e),{ids:new Set(r)}));case"SELECTION_SET":return Object.assign(Object.assign({},e),{ids:t.ids,mostRecent:t.mostRecent,anchor:t.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},e),{mostRecent:t.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},e),{anchor:t.id});default:return e}}const W={cursor(e){return{type:"DND_CURSOR",cursor:e}},dragStart(e,t){return{type:"DND_DRAG_START",id:e,dragIds:t}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(e,t){return{type:"DND_HOVERING",parentId:e,index:t}}};function Zi(e=z().dnd,t){switch(t.type){case"DND_CURSOR":return Object.assign(Object.assign({},e),{cursor:t.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},e),{dragId:t.id,dragIds:t.dragIds});case"DND_DRAG_END":return z().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},e),{parentId:t.parentId,index:t.index});default:return e}}var es={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},ts=e=>{if(!e)return{display:"none"};let{x:t,y:r}=e;return{transform:`translate(${t}px, ${r}px)`}},rs=e=>{if(!e)return{display:"none"};let{x:t,y:r}=e;return{transform:`translate(${t+10}px, ${r+10}px)`}};function qt({offset:e,mouse:t,id:r,dragIds:n,isDragging:i}){return(0,m.jsxs)(ns,{isDragging:i,children:[(0,m.jsx)(is,{offset:e,children:(0,m.jsx)(os,{id:r,dragIds:n})}),(0,m.jsx)(ss,{mouse:t,count:n.length})]})}var ns=(0,f.memo)(function(e){return e.isDragging?(0,m.jsx)("div",{style:es,children:e.children}):null});function is(e){return(0,m.jsx)("div",{className:"row preview",style:ts(e.offset),children:e.children})}function ss(e){let{count:t,mouse:r}=e;return t>1?(0,m.jsx)("div",{className:"selected-count",style:rs(r),children:t}):null}var os=(0,f.memo)(function(e){let t=N(),r=t.get(e.id);return r?(0,m.jsx)(t.renderNode,{preview:!0,node:r,style:{paddingLeft:r.level*t.indent,opacity:.2,background:"transparent"},tree:t}):null}),$t=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function as(e,t){return!!(e===t||$t(e)&&$t(t))}function ls(e,t){if(e.length!==t.length)return!1;for(var r=0;r=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Ae=-1;function Qt(e){if(e===void 0&&(e=!1),Ae===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Ae=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ae}var q=null;function Zt(e){if(e===void 0&&(e=!1),q===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?q="positive-descending":(t.scrollLeft=1,q=t.scrollLeft===0?"negative":"positive-ascending"),document.body.removeChild(t),q}return q}var us=150,hs=function(e,t){return e};function fs(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,s=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,d=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=(function(b){Tr(I,b);function I(c){var l=b.call(this,c)||this;return l._instanceProps=d(l.props,Ve(l)),l._outerRef=void 0,l._resetIsScrollingTimeoutId=null,l.state={instance:Ve(l),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof l.props.initialScrollOffset=="number"?l.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},l._callOnItemsRendered=void 0,l._callOnItemsRendered=Me(function(u,g,O,S){return l.props.onItemsRendered({overscanStartIndex:u,overscanStopIndex:g,visibleStartIndex:O,visibleStopIndex:S})}),l._callOnScroll=void 0,l._callOnScroll=Me(function(u,g,O){return l.props.onScroll({scrollDirection:u,scrollOffset:g,scrollUpdateWasRequested:O})}),l._getItemStyle=void 0,l._getItemStyle=function(u){var g=l.props,O=g.direction,S=g.itemSize,D=g.layout,T=l._getItemStyleCache(h&&S,h&&D,h&&O),x;if(T.hasOwnProperty(u))x=T[u];else{var C=r(l.props,u,l._instanceProps),L=i(l.props,u,l._instanceProps),F=O==="horizontal"||D==="horizontal",$=O==="rtl",X=F?C:0;T[u]=x={position:"absolute",left:$?void 0:X,right:$?X:void 0,top:F?0:C,height:F?"100%":L,width:F?L:"100%"}}return x},l._getItemStyleCache=void 0,l._getItemStyleCache=Me(function(u,g,O){return{}}),l._onScrollHorizontal=function(u){var g=u.currentTarget,O=g.clientWidth,S=g.scrollLeft,D=g.scrollWidth;l.setState(function(T){if(T.scrollOffset===S)return null;var x=l.props.direction,C=S;if(x==="rtl")switch(Zt()){case"negative":C=-S;break;case"positive-descending":C=D-O-S;break}return C=Math.max(0,Math.min(C,D-O)),{isScrolling:!0,scrollDirection:T.scrollOffsetT.clientWidth?Qt():0:T.scrollHeight>T.clientHeight?Qt():0}this.scrollTo(s(this.props,c,l,S,this._instanceProps,D))},v.componentDidMount=function(){var c=this.props,l=c.direction,u=c.initialScrollOffset,g=c.layout;if(typeof u=="number"&&this._outerRef!=null){var O=this._outerRef;l==="horizontal"||g==="horizontal"?O.scrollLeft=u:O.scrollTop=u}this._callPropsCallbacks()},v.componentDidUpdate=function(){var c=this.props,l=c.direction,u=c.layout,g=this.state,O=g.scrollOffset;if(g.scrollUpdateWasRequested&&this._outerRef!=null){var S=this._outerRef;if(l==="horizontal"||u==="horizontal")if(l==="rtl")switch(Zt()){case"negative":S.scrollLeft=-O;break;case"positive-ascending":S.scrollLeft=O;break;default:var D=S.clientWidth;S.scrollLeft=S.scrollWidth-D-O;break}else S.scrollLeft=O;else S.scrollTop=O}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Jt(this._resetIsScrollingTimeoutId)},v.render=function(){var c=this.props,l=c.children,u=c.className,g=c.direction,O=c.height,S=c.innerRef,D=c.innerElementType,T=c.innerTagName,x=c.itemCount,C=c.itemData,L=c.itemKey,F=L===void 0?hs:L,$=c.layout,X=c.outerElementType,hr=c.outerTagName,fr=c.style,gr=c.useIsScrolling,pr=c.width,Be=this.state.isScrolling,ce=g==="horizontal"||$==="horizontal",vr=ce?this._onScrollHorizontal:this._onScrollVertical,ze=this._getRangeToRender(),mr=ze[0],yr=ze[1],We=[];if(x>0)for(var K=mr;K<=yr;K++)We.push((0,f.createElement)(l,{data:C,key:F(K,C),index:K,isScrolling:gr?Be:void 0,style:this._getItemStyle(K)}));var Ge=n(this.props,this._instanceProps);return(0,f.createElement)(X||hr||"div",{className:u,onScroll:vr,ref:this._outerRefSetter,style:Dr({position:"relative",height:O,width:pr,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:g},fr)},(0,f.createElement)(D||T||"div",{children:We,ref:S,style:{height:ce?"100%":Ge,pointerEvents:Be?"none":void 0,width:ce?Ge:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"&&this.props.itemCount>0){var c=this._getRangeToRender(),l=c[0],u=c[1],g=c[2],O=c[3];this._callOnItemsRendered(l,u,g,O)}if(typeof this.props.onScroll=="function"){var S=this.state,D=S.scrollDirection,T=S.scrollOffset,x=S.scrollUpdateWasRequested;this._callOnScroll(D,T,x)}},v._getRangeToRender=function(){var c=this.props,l=c.itemCount,u=c.overscanCount,g=this.state,O=g.isScrolling,S=g.scrollDirection,D=g.scrollOffset;if(l===0)return[0,0,0,0];var T=o(this.props,D,this._instanceProps),x=a(this.props,T,D,this._instanceProps),C=!O||S==="backward"?Math.max(1,u):1,L=!O||S==="forward"?Math.max(1,u):1;return[Math.max(0,T-C),Math.max(0,Math.min(l-1,x+L)),T,x]},I})(f.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var gs=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},ps=fs({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,r,n,i,s){var o=e.direction,a=e.height,d=e.itemCount,h=e.itemSize,p=e.layout,b=e.width,I=o==="horizontal"||p==="horizontal"?b:a,v=Math.max(0,d*h-I),c=Math.min(v,t*h),l=Math.max(0,t*h-I+h+s);switch(r==="smart"&&(r=n>=l-I&&n<=c+I?"auto":"center"),r){case"start":return c;case"end":return l;case"center":var u=Math.round(l+(c-l)/2);return uv+Math.floor(I/2)?v:u;default:return n>=l&&n<=c?n:n{s.currentTarget===s.target&&i.deselectAll()},children:[(0,m.jsx)(Os,{}),r]}))});var Os=()=>{let e=N();return(0,m.jsx)("div",{style:{height:e.visibleNodes.length*e.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:(0,m.jsx)(vs,{})})},Is=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({canDrag:()=>e.isDraggable,type:"NODE",item:()=>{let o=t.isSelected(e.id)?Array.from(r):[e.id];return t.dispatch(W.dragStart(e.id,o)),{id:e.id,dragIds:o}},end:()=>{t.hideCursor(),t.dispatch(W.dragEnd())}}),[r,e]);return(0,f.useEffect)(()=>{s(ji())},[s]),i}function Ds(e,t){let r=e.getBoundingClientRect(),n=t.x-Math.round(r.x),i=t.y-Math.round(r.y),s=r.height,o=id&&it;)r=r.parent;return{parentId:((n=r.parent)==null?void 0:n.id)||null,index:Lt(r)+1}}function er(e){var h;let t=Ds(e.element,e.offset),r=e.indent,n=Math.round(Math.max(0,t.x-r)/r),{node:i,nextNode:s,prevNode:o}=e,[a,d]=Ts(i,o,s,t);if(i&&i.isInternal&&t.inMiddle)return{drop:ae(i.id,null),cursor:Es(i.id)};if(!a)return{drop:ae((h=d==null?void 0:d.parent)==null?void 0:h.id,0),cursor:G(0,0)};if(jt(a)){let p=se(n,(d==null?void 0:d.level)||0,a.level);return{drop:Le(a,p),cursor:G(a.rowIndex+1,p)}}if(_t(a)){let p=se(n,(d==null?void 0:d.level)||0,a.level);return{drop:Le(a,p),cursor:G(a.rowIndex+1,p)}}if(Mt(a)){let p=se(n,0,a.level+1);return p>a.level?{drop:ae(a.id,0),cursor:G(a.rowIndex+1,p)}:{drop:Le(a,p),cursor:G(a.rowIndex+1,p)}}return{drop:ae(a==null?void 0:a.id,0),cursor:G(a.rowIndex+1,a.level+1)}}function ws(e,t){let r=N(),[n,i]=pt(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(s,o)=>{let a=o.getClientOffset();if(!e.current||!a)return;let{cursor:d,drop:h}=er({element:e.current,offset:a,indent:r.indent,node:t,prevNode:t.prev,nextNode:t.next});h&&r.dispatch(W.hovering(h.parentId,h.index)),o.canDrop()?d&&r.showCursor(d):r.hideCursor()},drop:(s,o)=>{if(!o.canDrop())return null;let{parentId:a,index:d,dragIds:h}=r.state.dnd;Bt(r.props.onMove,{dragIds:h,parentId:a==="__REACT_ARBORIST_INTERNAL_ROOT__"?null:a,index:d===null?0:d,dragNodes:r.dragNodes,parentNode:r.get(a)}),r.open(a)}}),[t,e.current,r.props]);return i}function xs(e){let t=N(),r=t.at(e);if(!r)throw Error(`Could not find node for index: ${e}`);return(0,f.useMemo)(()=>{let n=r.clone();return t.visibleNodes[e]=n,n},[...Object.values(r.state),r])}const Cs=f.memo(function({index:e,style:t}){Pt(),_i();let r=N(),n=xs(e),i=(0,f.useRef)(null),s=Ss(n),o=ws(i,n),a=(0,f.useCallback)(c=>{i.current=c,o(c)},[o]),d=r.indent*n.level,h=(0,f.useMemo)(()=>({paddingLeft:d}),[d]),p=(0,f.useMemo)(()=>Object.assign(Object.assign({},t),{top:parseFloat(t.top)+(r.props.padding??r.props.paddingTop??0)}),[t,r.props.padding,r.props.paddingTop]),b={role:"treeitem","aria-level":n.level+1,"aria-selected":n.isSelected,"aria-expanded":n.isOpen,style:p,tabIndex:-1,className:r.props.rowClassName};(0,f.useEffect)(()=>{var c;!n.isEditing&&n.isFocused&&((c=i.current)==null||c.focus({preventScroll:!0}))},[n.isEditing,n.isFocused,i.current]);let I=r.renderNode,v=r.renderRow;return(0,m.jsx)(v,{node:n,innerRef:a,attrs:b,children:(0,m.jsx)(I,{node:n,tree:r,style:h,dragHandle:s})})});var ke="",tr=null;function rr(){Pt();let e=N();return(0,m.jsx)("div",{role:"tree",style:{height:e.height,width:e.width,minHeight:0,minWidth:0},onContextMenu:e.props.onContextMenu,onClick:e.props.onClick,tabIndex:0,onFocus:t=>{t.currentTarget.contains(t.relatedTarget)||e.onFocus()},onBlur:t=>{t.currentTarget.contains(t.relatedTarget)||e.onBlur()},onKeyDown:t=>{var n;if(e.isEditing)return;if(t.key==="Backspace"){if(!e.props.onDelete)return;let i=Array.from(e.selectedIds);if(i.length>1){let s=e.mostRecentNode;for(;s&&s.isSelected;)s=s.nextSibling;s||(s=e.lastNode),e.focus(s,{scroll:!1}),e.delete(Array.from(i))}else{let s=e.focusedNode;if(s){let o=s.nextSibling,a=s.parent;e.focus(o||a,{scroll:!1}),e.delete(s)}}return}if(t.key==="Tab"&&!t.shiftKey){t.preventDefault(),kt(t.currentTarget);return}if(t.key==="Tab"&&t.shiftKey){t.preventDefault(),Ht(t.currentTarget);return}if(t.key==="ArrowDown"){t.preventDefault();let i=e.nextNode;if(t.metaKey){e.select(e.focusedNode),e.activate(e.focusedNode);return}else if(!t.shiftKey||e.props.disableMultiSelection){e.focus(i);return}else{if(!i)return;let s=e.focusedNode;s?s.isSelected?e.selectContiguous(i):e.selectMulti(i):e.focus(e.firstNode);return}}if(t.key==="ArrowUp"){t.preventDefault();let i=e.prevNode;if(!t.shiftKey||e.props.disableMultiSelection){e.focus(i);return}else{if(!i)return;let s=e.focusedNode;s?s.isSelected?e.selectContiguous(i):e.selectMulti(i):e.focus(e.lastNode);return}}if(t.key==="ArrowRight"){let i=e.focusedNode;if(!i)return;i.isInternal&&i.isOpen?e.focus(e.nextNode):i.isInternal&&e.open(i.id);return}if(t.key==="ArrowLeft"){let i=e.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?e.close(i.id):(n=i.parent)!=null&&n.isRoot||e.focus(i.parent);return}if(t.key==="a"&&t.metaKey&&!e.props.disableMultiSelection){t.preventDefault(),e.selectAll();return}if(t.key==="a"&&!t.metaKey&&e.props.onCreate){e.createLeaf();return}if(t.key==="A"&&!t.metaKey){if(!e.props.onCreate)return;e.createInternal();return}if(t.key==="Home"){t.preventDefault(),e.focus(e.firstNode);return}if(t.key==="End"){t.preventDefault(),e.focus(e.lastNode);return}if(t.key==="Enter"){let i=e.focusedNode;if(!i||!i.isEditable||!e.props.onRename)return;setTimeout(()=>{i&&e.edit(i)});return}if(t.key===" "){t.preventDefault();let i=e.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(t.key==="*"){let i=e.focusedNode;if(!i)return;e.openSiblings(i);return}if(t.key==="PageUp"){t.preventDefault(),e.pageUp();return}t.key==="PageDown"&&(t.preventDefault(),e.pageDown()),clearTimeout(tr),ke+=t.key,tr=setTimeout(()=>{ke=""},600);let r=e.visibleNodes.find(i=>{let s=i.data.name;return typeof s=="string"?s.toLowerCase().startsWith(ke):!1});r&&e.focus(r.id)},children:(0,m.jsx)(ps,{className:e.props.className,outerRef:e.listEl,itemCount:e.visibleNodes.length,height:e.height,width:e.width,itemSize:e.rowHeight,overscanCount:e.overscanCount,itemKey:t=>{var r;return((r=e.visibleNodes[t])==null?void 0:r.id)||t},outerElementType:ys,innerElementType:bs,onScroll:e.props.onScroll,onItemsRendered:e.onItemsRendered.bind(e),ref:e.list,children:Cs})})}function nr(e){return e.isFiltered?Rs(e.root,e.isMatch.bind(e)):Ns(e.root)}function Ns(e){let t=[];function r(n){var i;n.level>=0&&t.push(n),n.isOpen&&((i=n.children)==null||i.forEach(r))}return r(e),t.forEach(ir),t}function Rs(e,t){let r={},n=[];function i(o){if(!o.isRoot&&t(o)){r[o.id]=!0;let a=o.parent;for(;a;)r[a.id]=!0,a=a.parent}if(o.children)for(let a of o.children)i(a)}function s(o){var a;o.level>=0&&r[o.id]&&n.push(o),o.isOpen&&((a=o.children)==null||a.forEach(s))}return i(e),s(e),n.forEach(ir),n}function ir(e,t){e.rowIndex=t}const sr=e=>e.reduce((t,r,n)=>(t[r.id]=n,t),{});var He=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(p){try{h(n.next(p))}catch(b){o(b)}}function d(p){try{h(n.throw(p))}catch(b){o(b)}}function h(p){p.done?s(p.value):i(p.value).then(a,d)}h((n=n.apply(e,t||[])).next())})},{safeRun:E,identify:M,identifyNull:_}=Ai,Ps=class de{constructor(t,r,n,i){this.store=t,this.props=r,this.list=n,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=Vt(this),this.visibleNodes=nr(this),this.idToIndex=sr(this.visibleNodes)}update(t){this.props=t,this.root=Vt(this),this.visibleNodes=nr(this),this.idToIndex=sr(this.visibleNodes)}dispatch(t){return this.store.dispatch(t)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){return this.props.width??300}get height(){return this.props.height??500}get indent(){return this.props.indent??24}get rowHeight(){return this.props.rowHeight??24}get overscanCount(){return this.props.overscanCount??1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){let t=this.props.searchMatch??((r,n)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(n.toLocaleLowerCase()));return r=>t(r,this.searchTerm)}accessChildren(t){return Y(t,this.props.childrenAccessor||"children")??null}accessId(t){let r=Y(t,this.props.idAccessor||"id");if(!r)throw Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){return this.visibleNodes[0]??null}get lastNode(){return this.visibleNodes[this.visibleNodes.length-1]??null}get focusedNode(){return this.get(this.state.nodes.focus.id)??null}get mostRecentNode(){return this.get(this.state.nodes.selection.mostRecent)??null}get nextNode(){let t=this.indexOf(this.focusedNode);return t===null?null:this.at(t+1)}get prevNode(){let t=this.indexOf(this.focusedNode);return t===null?null:this.at(t-1)}get(t){return t&&t in this.idToIndex&&this.visibleNodes[this.idToIndex[t]]||null}at(t){return this.visibleNodes[t]||null}nodesBetween(t,r){if(t===null||r===null)return[];let n=this.indexOf(t)??0,i=this.indexOf(r);if(i===null)return[];let s=Math.min(n,i),o=Math.max(n,i);return this.visibleNodes.slice(s,o+1)}indexOf(t){let r=Ut(t);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return He(this,arguments,void 0,function*(t={}){let r=t.parentId===void 0?Gt(this):t.parentId,n=t.index??Wt(this),i=t.type??"leaf",s=yield E(this.props.onCreate,{type:i,parentId:r,index:n,parentNode:this.get(r)});s&&(this.focus(s),setTimeout(()=>{this.edit(s).then(()=>{this.select(s),this.activate(s)})}))})}delete(t){return He(this,void 0,void 0,function*(){if(!t)return;let r=(Array.isArray(t)?t:[t]).map(M),n=r.map(i=>this.get(i)).filter(i=>!!i);yield E(this.props.onDelete,{nodes:n,ids:r})})}edit(t){let r=M(t);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(Pe(r)),new Promise(n=>{de.editPromise=n})}submit(t,r){return He(this,void 0,void 0,function*(){if(!t)return;let n=M(t);yield E(this.props.onRename,{id:n,name:r,node:this.get(n)}),this.dispatch(Pe(null)),this.resolveEdit({cancelled:!1,value:r}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(Pe(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(t){let r=this.get(_(t));r&&E(this.props.onActivate,r)}resolveEdit(t){let r=de.editPromise;r&&r(t),de.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let t=[];for(let r of Array.from(this.selectedIds)){let n=this.get(r);n&&t.push(n)}return t}focus(t,r={}){t&&(this.props.selectionFollowsFocus?this.select(t):(this.dispatch(B(M(t))),r.scroll!==!1&&this.scrollTo(t),this.focusedNode&&E(this.props.onFocus,this.focusedNode)))}pageUp(){var i;let t=this.visibleStartIndex,r=this.visibleStopIndex-t,n=((i=this.focusedNode)==null?void 0:i.rowIndex)??0;n=n>t?t:Math.max(t-r,0),this.focus(this.at(n))}pageDown(){var s;let t=this.visibleStartIndex,r=this.visibleStopIndex,n=r-t,i=((s=this.focusedNode)==null?void 0:s.rowIndex)??0;i=ithis.get(t)).filter(t=>!!t)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){if(this.isFiltered)return!1;let t=this.get(this.state.dnd.parentId)??this.root,r=this.dragNodes,n=this.props.disableDrop;for(let i of r)if(!i||!t||i.isInternal&&At(t,i))return!1;return typeof n=="function"?!n({parentNode:t,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof n=="string"?!t.data[n]:typeof n=="boolean"?!n:!0}hideCursor(){this.dispatch(W.cursor({type:"none"}))}showCursor(t){this.dispatch(W.cursor(t))}open(t){let r=_(t);r&&(this.isOpen(r)||(this.dispatch(_e.open(r,this.isFiltered)),E(this.props.onToggle,r)))}close(t){let r=_(t);r&&this.isOpen(r)&&(this.dispatch(_e.close(r,this.isFiltered)),E(this.props.onToggle,r))}toggle(t){let r=_(t);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(t){var i;let r=_(t);if(!r)return;let n=(i=Re(this.root,r))==null?void 0:i.parent;for(;n;)this.open(n.id),n=n.parent}openSiblings(t){let r=t.parent;if(!r)this.toggle(t.id);else if(r.children){let n=t.isOpen;for(let i of r.children)i.isInternal&&(n?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){oe(this.root,t=>{t.isInternal&&t.open()})}closeAll(){oe(this.root,t=>{t.isInternal&&t.close()})}scrollTo(t,r="smart"){if(!t)return;let n=M(t);return this.openParents(n),zt(()=>n in this.idToIndex).then(()=>{var i;let s=this.idToIndex[n];s!==void 0&&((i=this.list.current)==null||i.scrollToItem(s,r))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var t;return!!((t=this.props.searchTerm)!=null&&t.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(t){return t?this.state.nodes.selection.ids.has(t):!1}isOpen(t){if(!t)return!1;if(t==="__REACT_ARBORIST_INTERNAL_ROOT__")return!0;let r=this.props.openByDefault??!0;return this.isFiltered?this.state.nodes.open.filtered[t]??!0:this.state.nodes.open.unfiltered[t]??r}isEditable(t){return!Y(t,this.props.disableEdit||(()=>!1))}isDraggable(t){return!Y(t,this.props.disableDrag||(()=>!1))}isDragging(t){let r=_(t);return r?this.state.nodes.drag.id===r:!1}isFocused(t){return this.hasFocus&&this.state.nodes.focus.id===t}isMatch(t){return this.matchFn(t)}willReceiveDrop(t){let r=_(t);if(!r)return!1;let{destinationParentId:n,destinationIndex:i}=this.state.nodes.drag;return r===n&&i===null}onFocus(){let t=this.focusedNode||this.firstNode;t&&this.dispatch(B(t.id))}onBlur(){this.dispatch($i())}onItemsRendered(t){this.visibleStartIndex=t.visibleStartIndex,this.visibleStopIndex=t.visibleStopIndex}get renderContainer(){return this.props.renderContainer||rr}get renderRow(){return this.props.renderRow||Gi}get renderNode(){return this.props.children||Ki}get renderDragPreview(){return this.props.renderDragPreview||qt}get renderCursor(){return this.props.renderCursor||Wi}};function w(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var or=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fe=()=>Math.random().toString(36).substring(7).split("").join("."),le={INIT:`@@redux/INIT${Fe()}`,REPLACE:`@@redux/REPLACE${Fe()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fe()}`};function js(e){if(typeof e!="object"||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ar(e,t,r){if(typeof e!="function")throw Error(w(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw Error(w(0));if(typeof t=="function"&&r===void 0&&(r=t,t=void 0),r!==void 0){if(typeof r!="function")throw Error(w(1));return r(ar)(e,t)}let n=e,i=t,s=new Map,o=s,a=0,d=!1;function h(){o===s&&(o=new Map,s.forEach((l,u)=>{o.set(u,l)}))}function p(){if(d)throw Error(w(3));return i}function b(l){if(typeof l!="function")throw Error(w(4));if(d)throw Error(w(5));let u=!0;h();let g=a++;return o.set(g,l),function(){if(u){if(d)throw Error(w(6));u=!1,h(),o.delete(g),s=null}}}function I(l){if(!js(l))throw Error(w(7));if(l.type===void 0)throw Error(w(8));if(typeof l.type!="string")throw Error(w(17));if(d)throw Error(w(9));try{d=!0,i=n(i,l)}finally{d=!1}return(s=o).forEach(u=>{u()}),l}function v(l){if(typeof l!="function")throw Error(w(10));n=l,I({type:le.REPLACE})}function c(){let l=b;return{subscribe(u){if(typeof u!="object"||!u)throw Error(w(11));function g(){let O=u;O.next&&O.next(p())}return g(),{unsubscribe:l(g)}},[or](){return this}}}return I({type:le.INIT}),{dispatch:I,subscribe:b,getState:p,replaceReducer:v,[or]:c}}function _s(e){Object.keys(e).forEach(t=>{let r=e[t];if(r(void 0,{type:le.INIT})===void 0)throw Error(w(12));if(r(void 0,{type:le.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(w(13))})}function lr(e){let t=Object.keys(e),r={};for(let s=0;sks),a=(0,f.useMemo)(()=>new Ps(s.current,e,n,i),[]),d=(0,f.useRef)(0);return(0,f.useMemo)(()=>{d.current+=1,a.update(e)},[...Object.values(e),o.nodes.open]),(0,f.useImperativeHandle)(t,()=>a),(0,f.useEffect)(()=>{a.props.selection?a.select(a.props.selection,{focus:!1}):a.deselectAll()},[a.props.selection]),(0,f.useEffect)(()=>{a.props.searchTerm||s.current.dispatch(_e.clear(!0))},[a.props.searchTerm]),(0,m.jsx)(xt.Provider,{value:a,children:(0,m.jsx)(Rt.Provider,{value:d.current,children:(0,m.jsx)(Ct.Provider,{value:o.nodes,children:(0,m.jsx)(Nt.Provider,{value:o.dnd,children:(0,m.jsx)(lt,Object.assign({backend:wt,options:{rootElement:a.props.dndRootElement||void 0}},e.dndManager&&{manager:e.dndManager},{children:r}))})})})})}function Fs(){let e=N(),[,t]=pt(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?e.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;let i=n.getClientOffset();if(!e.listEl.current||!i)return;let{cursor:s,drop:o}=er({element:e.listEl.current,offset:i,indent:e.indent,node:null,prevNode:e.visibleNodes[e.visibleNodes.length-1],nextNode:null});o&&e.dispatch(W.hovering(o.parentId,o.index)),n.canDrop()?s&&e.showCursor(s):e.hideCursor()}}),[e]);t(e.listEl)}function Us(e){return Fs(),e.children}function Bs(){return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(N().props.renderContainer||rr,{})})}function zs(){let e=N(),{offset:t,mouse:r,item:n,isDragging:i}=ui(s=>({offset:s.getSourceClientOffset(),mouse:s.getClientOffset(),item:s.getItem(),isDragging:s.isDragging()}));return(0,m.jsx)(e.props.renderDragPreview||qt,{offset:t,mouse:r,id:(n==null?void 0:n.id)||null,dragIds:(n==null?void 0:n.dragIds)||[],isDragging:i})}var dr=class{constructor(e){this.root=Ws(e)}get data(){var e;return((e=this.root.children)==null?void 0:e.map(t=>t.data))??[]}create(e){let t=e.parentId?this.find(e.parentId):this.root;if(!t)return null;t.addChild(e.data,e.index)}move(e){let t=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!t||!r||(r.addChild(t.data,e.index),t.drop())}update(e){let t=this.find(e.id);t&&t.update(e.changes)}drop(e){let t=this.find(e.id);t&&t.drop()}find(e,t=this.root){if(!t)return null;if(t.id===e)return t;if(t.children){for(let r of t.children){let n=this.find(e,r);if(n)return n}return null}return null}};function Ws(e){let t=new cr({id:"ROOT"},null);return t.children=e.map(r=>Ue(r,t)),t}function Ue(e,t){let r=new cr(e,t);return e.children&&(r.children=e.children.map(n=>Ue(n,r))),r}var cr=class{constructor(e,t){this.data=e,this.parent=t,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,t){let r=Ue(e,this);this.children=this.children??[],this.children.splice(t,0,r),this.data.children=this.data.children??[],this.data.children.splice(t,0,e)}removeChild(e){var t,r;(t=this.children)==null||t.splice(e,1),(r=this.data.children)==null||r.splice(e,1)}update(e){if(this.hasParent()){let t=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),t),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}},Gs=0;function Ks(e){let[t,r]=(0,f.useState)(e),n=(0,f.useMemo)(()=>new dr(t),[t]);return[t,{onMove:i=>{for(let s of i.dragIds)n.move({id:s,parentId:i.parentId,index:i.index});r(n.data)},onRename:({name:i,id:s})=>{n.update({id:s,changes:{name:i}}),r(n.data)},onCreate:({parentId:i,index:s,type:o})=>{let a={id:`simple-tree-id-${Gs++}`,name:""};return o==="internal"&&(a.children=[]),n.create({parentId:i,index:s,data:a}),r(n.data),a},onDelete:i=>{i.ids.forEach(s=>n.drop({id:s})),r(n.data)}}]}function Vs(e){if(e.initialData&&e.data)throw Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(e.initialData&&(e.onCreate||e.onDelete||e.onMove||e.onRename))throw Error(`React Arborist Tree => You passed the initialData prop along with a data handler. +Use the data prop if you want to provide your own handlers.`);if(e.initialData){let[t,r]=Ks(e.initialData);return Object.assign(Object.assign(Object.assign({},e),r),{data:t})}else return e}function Ys(e,t){return(0,m.jsxs)(Hs,{treeProps:Vs(e),imperativeHandle:t,children:[(0,m.jsx)(Us,{children:(0,m.jsx)(Bs,{})}),(0,m.jsx)(zs,{})]})}const qs=(0,f.forwardRef)(Ys);export{lt as a,A as i,dr as n,wt as r,qs as t}; diff --git a/docs/assets/treemap-DeGcO9km.js b/docs/assets/treemap-DeGcO9km.js new file mode 100644 index 0000000..93a9f2b --- /dev/null +++ b/docs/assets/treemap-DeGcO9km.js @@ -0,0 +1 @@ +function C(n){var r=0,u=n.children,i=u&&u.length;if(!i)r=1;else for(;--i>=0;)r+=u[i].value;n.value=r}function D(){return this.eachAfter(C)}function F(n,r){let u=-1;for(let i of this)n.call(r,i,++u,this);return this}function G(n,r){for(var u=this,i=[u],e,o,a=-1;u=i.pop();)if(n.call(r,u,++a,this),e=u.children)for(o=e.length-1;o>=0;--o)i.push(e[o]);return this}function H(n,r){for(var u=this,i=[u],e=[],o,a,h,l=-1;u=i.pop();)if(e.push(u),o=u.children)for(a=0,h=o.length;a=0;)u+=i[e].value;r.value=u})}function N(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})}function P(n){for(var r=this,u=Q(r,n),i=[r];r!==u;)r=r.parent,i.push(r);for(var e=i.length;n!==u;)i.splice(e,0,n),n=n.parent;return i}function Q(n,r){if(n===r)return n;var u=n.ancestors(),i=r.ancestors(),e=null;for(n=u.pop(),r=i.pop();n===r;)e=n,n=u.pop(),r=i.pop();return e}function U(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r}function V(){return Array.from(this)}function W(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n}function X(){var n=this,r=[];return n.each(function(u){u!==n&&r.push({source:u.parent,target:u})}),r}function*Y(){var n=this,r,u=[n],i,e,o;do for(r=u.reverse(),u=[];n=r.pop();)if(yield n,i=n.children)for(e=0,o=i.length;e=0;--h)e.push(o=a[h]=new A(a[h])),o.parent=i,o.depth=i.depth+1;return u.eachBefore(O)}function Z(){return I(this).eachBefore(_)}function $(n){return n.children}function S(n){return Array.isArray(n)?n[1]:null}function _(n){n.data.value!==void 0&&(n.value=n.data.value),n.data=n.data.data}function O(n){var r=0;do n.height=r;while((n=n.parent)&&n.height<++r)}function A(n){this.data=n,this.depth=this.height=0,this.parent=null}A.prototype=I.prototype={constructor:A,count:D,each:F,eachAfter:H,eachBefore:G,find:J,sum:K,sort:N,path:P,ancestors:U,descendants:V,leaves:W,links:X,copy:Z,[Symbol.iterator]:Y};function nn(n){return n==null?null:E(n)}function E(n){if(typeof n!="function")throw Error();return n}function m(){return 0}function M(n){return function(){return n}}function L(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function R(n,r,u,i,e){for(var o=n.children,a,h=-1,l=o.length,v=n.value&&(i-r)/n.value;++hB&&(B=v),x=c*c*k,w=Math.max(B/x,x/g),w>T){c-=v;break}T=w}a.push(l={value:c,dice:s1?i:1)},u})(j);function rn(){var n=z,r=!1,u=1,i=1,e=[0],o=m,a=m,h=m,l=m,v=m;function f(t){return t.x0=t.y0=0,t.x1=u,t.y1=i,t.eachBefore(y),e=[0],r&&t.eachBefore(L),t}function y(t){var s=e[t.depth],p=t.x0+s,d=t.y0+s,c=t.x1-s,g=t.y1-s;c?\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.objectliteral.tsx","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.tsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.tsx"}},"name":"meta.array.literal.tsx","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"variable.parameter.tsx"}},"match":"(?:(?)","name":"meta.arrow.tsx"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.tsx","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.tsx"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.tsx","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.tsx"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.tsx","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.tsx"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.tsx","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.tsx"},"2":{"name":"entity.name.tag.directive.tsx"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.tsx"}},"name":"meta.tag.tsx","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.tsx"},{"match":"=","name":"keyword.operator.assignment.tsx"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"()|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.tsx"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.tsx"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|'(?:\\\\*(?!/)|\\\\\\\\(?!')|[^*\\\\\\\\])*?'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.tsx"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.tsx"},{"match":"[!=]==?","name":"keyword.operator.comparison.tsx"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.tsx"},{"captures":{"1":{"name":"keyword.operator.logical.tsx"},"2":{"name":"keyword.operator.assignment.compound.tsx"},"3":{"name":"keyword.operator.arithmetic.tsx"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.tsx"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.tsx"},{"match":"=","name":"keyword.operator.assignment.tsx"},{"match":"--","name":"keyword.operator.decrement.tsx"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.tsx"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.tsx"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.tsx"},"2":{"name":"keyword.operator.arithmetic.tsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.tsx"},"2":{"name":"keyword.operator.arithmetic.tsx"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.tsx variable.object.property.tsx"},{"match":"\\\\?","name":"keyword.operator.optional.tsx"},{"match":"!","name":"keyword.operator.definiteassignment.tsx"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","name":"meta.function-call.tsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.tsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.tsx punctuation.accessor.optional.tsx"},{"match":"!","name":"meta.function-call.tsx keyword.operator.definiteassignment.tsx"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tsx"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"variable.other.constant.property.tsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"variable.other.property.tsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.tsx"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.tsx"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?))","end":"(/>)|()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.tsx"},"2":{"name":"punctuation.definition.tag.begin.tsx"},"3":{"name":"entity.name.tag.namespace.tsx"},"4":{"name":"punctuation.separator.namespace.tsx"},"5":{"name":"entity.name.tag.tsx"},"6":{"name":"support.class.component.tsx"},"7":{"name":"punctuation.definition.tag.end.tsx"}},"name":"meta.tag.tsx","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.tsx"}},"contentName":"meta.jsx.children.tsx","end":"(?=|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.tsx","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.tsx"},"jsx-tag-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"},"6":{"name":"punctuation.definition.tag.end.tsx"}},"contentName":"meta.jsx.children.tsx","end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"},"6":{"name":"punctuation.definition.tag.end.tsx"}},"name":"meta.tag.without-attributes.tsx","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.tsx"},"2":{"name":"punctuation.separator.label.tsx"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.tsx"},"2":{"name":"punctuation.separator.label.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)"}]},"literal":{"patterns":[{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#array-literal"},{"include":"#this-literal"},{"include":"#super-literal"}]},"method-declaration":{"patterns":[{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.modifier.async.tsx"},"5":{"name":"keyword.operator.new.tsx"},"6":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.tsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.modifier.async.tsx"},"5":{"name":"storage.type.property.tsx"},"6":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.tsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"storage.type.property.tsx"},"3":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.tsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"storage.type.property.tsx"},"3":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.tsx meta.object-literal.key.tsx","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.tsx meta.object-literal.key.tsx","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.tsx"},{"captures":{"0":{"name":"meta.object-literal.key.tsx"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.tsx"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.tsx"}},"end":"(?=[,}])","name":"meta.object.member.tsx","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.tsx"},{"captures":{"1":{"name":"keyword.control.as.tsx"},"2":{"name":"storage.modifier.tsx"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.tsx"}},"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(?])","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.tsx meta.return.type.arrow.tsx keyword.operator.type.annotation.tsx"}},"contentName":"meta.arrow.tsx meta.return.type.arrow.tsx","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.tsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.tsx"},"2":{"name":"keyword.other.tsx"}},"name":"string.regexp.tsx","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.tsx"}},"end":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.tsx"},"2":{"name":"support.type.object.module.tsx"},"3":{"name":"punctuation.accessor.tsx"},"4":{"name":"punctuation.accessor.optional.tsx"},"5":{"name":"support.type.object.module.tsx"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\`)","end":"(?=\`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.tsx"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.tsx"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.tsx"}},"contentName":"meta.embedded.line.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.tsx"}},"name":"meta.template.expression.tsx","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.tsx"},"2":{"name":"string.template.tsx punctuation.definition.string.template.begin.tsx"}},"contentName":"string.template.tsx","end":"\`","endCaptures":{"0":{"name":"string.template.tsx punctuation.definition.string.template.end.tsx"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.tsx"}},"contentName":"meta.embedded.line.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.tsx"}},"name":"meta.template.expression.tsx","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.tsx"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.tsx"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.tsx"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.tsx"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.tsx"}},"name":"meta.type.parameters.tsx","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.tsx"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.tsx","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.tsx"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.tsx","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.tsx"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.tsx","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.tsx"},"2":{"name":"entity.name.type.tsx"},"3":{"name":"keyword.operator.expression.extends.tsx"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.tsx"},"2":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx"}},"contentName":"meta.type.parameters.tsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.tsx"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.object.type.tsx","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.tsx"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.tsx"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.tsx"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.tsx"}},"name":"meta.type.parameters.tsx","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.tsx"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"name":"meta.type.paren.cover.tsx","patterns":[{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"entity.name.function.tsx variable.language.this.tsx"},"4":{"name":"entity.name.function.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(?)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(??{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|\\\\bawait\\\\s+\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b\\\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[$_[:alpha:]])\\\\b|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.tsx variable.other.constant.tsx entity.name.function.tsx"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|(\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\s*[^=>])|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"'()\`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|('([^'\\\\\\\\]|\\\\\\\\.)*')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(\`([^\\\\\\\\\`]|\\\\\\\\.)*\`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.tsx entity.name.function.tsx"},"2":{"name":"keyword.operator.definiteassignment.tsx"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.tsx"}},"end":"(?=$|^|[]),;}]|((?!\/]/,a;function D(t,e){var n=t.next();if(n=='"'||n=="'")return e.tokenize=N(n),e.tokenize(t,e);if(/[\[\]{}\(\),;\\:\?\.]/.test(n))return a=n,"punctuation";if(n=="#")return t.skipToEnd(),"atom";if(n=="%")return t.eatWhile(/\b/),"atom";if(/\d/.test(n))return t.eatWhile(/[\w\.]/),"number";if(n=="/"){if(t.eat("*"))return e.tokenize=b,b(t,e);if(t.eat("/"))return t.skipToEnd(),"comment"}if(d.test(n))return n=="@"&&(t.match("try")||t.match("catch")||t.match("lazy"))?"keyword":(t.eatWhile(d),"operator");t.eatWhile(/[\w\$_\xa1-\uffff]/);var r=t.current();return y.propertyIsEnumerable(r)?"keyword":v.propertyIsEnumerable(r)?"builtin":x.propertyIsEnumerable(r)||k.propertyIsEnumerable(r)||O.propertyIsEnumerable(r)||g.propertyIsEnumerable(r)||E.propertyIsEnumerable(r)||w.propertyIsEnumerable(r)?"def":I.propertyIsEnumerable(r)||z.propertyIsEnumerable(r)||C.propertyIsEnumerable(r)?"string":L.propertyIsEnumerable(r)?"typeName.standard":S.propertyIsEnumerable(r)?"modifier":M.propertyIsEnumerable(r)?"atom":"variable"}function N(t){return function(e,n){for(var r=!1,l,m=!1;(l=e.next())!=null;){if(l==t&&!r){var s=e.peek();s&&(s=s.toLowerCase(),(s=="b"||s=="h"||s=="o")&&e.next()),m=!0;break}r=!r&&l=="\\"}return(m||!(r||T))&&(n.tokenize=null),"string"}}function b(t,e){for(var n=!1,r;r=t.next();){if(r=="/"&&n){e.tokenize=null;break}n=r=="*"}return"comment"}function h(t,e,n,r,l){this.indented=t,this.column=e,this.type=n,this.align=r,this.prev=l}function u(t,e,n){var r=t.indented;return t.context&&t.context.type=="statement"&&(r=t.context.indented),t.context=new h(r,e,n,null,t.context)}function c(t){var e=t.context.type;return(e==")"||e=="]"||e=="}")&&(t.indented=t.context.indented),t.context=t.context.prev}const _={name:"ttcn",startState:function(){return{tokenize:null,context:new h(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(t,e){var n=e.context;if(t.sol()&&(n.align??(n.align=!1),e.indented=t.indentation(),e.startOfLine=!0),t.eatSpace())return null;a=null;var r=(e.tokenize||D)(t,e);if(r=="comment")return r;if(n.align??(n.align=!0),(a==";"||a==":"||a==",")&&n.type=="statement")c(e);else if(a=="{")u(e,t.column(),"}");else if(a=="[")u(e,t.column(),"]");else if(a=="(")u(e,t.column(),")");else if(a=="}"){for(;n.type=="statement";)n=c(e);for(n.type=="}"&&(n=c(e));n.type=="statement";)n=c(e)}else a==n.type?c(e):W&&((n.type=="}"||n.type=="top")&&a!=";"||n.type=="statement"&&a=="newstatement")&&u(e,t.column(),"statement");return e.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:f}};export{_ as t}; diff --git a/docs/assets/ttcn-cfg-B4sCU0gH.js b/docs/assets/ttcn-cfg-B4sCU0gH.js new file mode 100644 index 0000000..07851b6 --- /dev/null +++ b/docs/assets/ttcn-cfg-B4sCU0gH.js @@ -0,0 +1 @@ +import{t}from"./ttcn-cfg-pqnJIxH9.js";export{t as ttcnCfg}; diff --git a/docs/assets/ttcn-cfg-pqnJIxH9.js b/docs/assets/ttcn-cfg-pqnJIxH9.js new file mode 100644 index 0000000..75160e3 --- /dev/null +++ b/docs/assets/ttcn-cfg-pqnJIxH9.js @@ -0,0 +1 @@ +function i(e){for(var t={},T=e.split(" "),E=0;E=&|]/;function p(e,t){var n=e.next();if(i=null,n=="<"&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if(n=='"'||n=="'")return t.tokenize=s(n),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(n))return i=n,null;if(n=="#")return e.skipToEnd(),"comment";if(x.test(n))return e.eatWhile(x),null;if(n==":")return"operator";if(e.eatWhile(/[_\w\d]/),e.peek()==":")return"variableName.special";var r=e.current();return f.test(r)?"meta":n>="A"&&n<="Z"?"comment":"keyword";var r}function s(e){return function(t,n){for(var r=!1,o;(o=t.next())!=null;){if(o==e&&!r){n.tokenize=p;break}r=!r&&o=="\\"}return"string"}}function c(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function a(e){e.indent=e.context.indent,e.context=e.context.prev}const m={name:"turtle",startState:function(){return{tokenize:p,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&t.context.align==null&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"&&(t.context.align=!0),i=="(")c(t,")",e.column());else if(i=="[")c(t,"]",e.column());else if(i=="{")c(t,"}",e.column());else if(/[\]\}\)]/.test(i)){for(;t.context&&t.context.type=="pattern";)a(t);t.context&&i==t.context.type&&a(t)}else i=="."&&t.context&&t.context.type=="pattern"?a(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?c(t,"pattern",e.column()):t.context.type=="pattern"&&!t.context.align&&(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),o=e.context;if(/[\]\}]/.test(r))for(;o&&o.type=="pattern";)o=o.prev;var l=o&&r==o.type;return o?o.type=="pattern"?o.col:o.align?o.col+(l?0:1):o.indent+(l?0:n.unit):0},languageData:{commentTokens:{line:"#"}}};export{m as t}; diff --git a/docs/assets/turtle-D4EQx9sx.js b/docs/assets/turtle-D4EQx9sx.js new file mode 100644 index 0000000..fe827ee --- /dev/null +++ b/docs/assets/turtle-D4EQx9sx.js @@ -0,0 +1 @@ +import{t}from"./turtle-BUVCUZMx.js";export{t as turtle}; diff --git a/docs/assets/turtle-DaGtFj8Y.js b/docs/assets/turtle-DaGtFj8Y.js new file mode 100644 index 0000000..7d74434 --- /dev/null +++ b/docs/assets/turtle-DaGtFj8Y.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Turtle","fileTypes":["turtle","ttl","acl"],"name":"turtle","patterns":[{"include":"#rule-constraint"},{"include":"#iriref"},{"include":"#prefix"},{"include":"#prefixed-name"},{"include":"#comment"},{"include":"#special-predicate"},{"include":"#literals"},{"include":"#language-tag"}],"repository":{"boolean":{"match":"\\\\b(?i:true|false)\\\\b","name":"constant.language.sparql"},"comment":{"match":"#.*$","name":"comment.line.number-sign.turtle"},"integer":{"match":"[-+]?(?:\\\\d+|[0-9]+\\\\.[0-9]*|\\\\.[0-9]+(?:[Ee][-+]?\\\\d+)?)","name":"constant.numeric.turtle"},"iriref":{"match":"<[^ \\"<>\\\\\\\\^\`{|}]*>","name":"entity.name.type.iriref.turtle"},"language-tag":{"captures":{"1":{"name":"entity.name.class.turtle"}},"match":"@(\\\\w+)","name":"meta.string-literal-language-tag.turtle"},"literals":{"patterns":[{"include":"#string"},{"include":"#numeric"},{"include":"#boolean"}]},"numeric":{"patterns":[{"include":"#integer"}]},"prefix":{"match":"(?i:@?base|@?prefix)\\\\s","name":"keyword.operator.turtle"},"prefixed-name":{"captures":{"1":{"name":"storage.type.PNAME_NS.turtle"},"2":{"name":"support.variable.PN_LOCAL.turtle"}},"match":"(\\\\w*:)(\\\\w*)","name":"constant.complex.turtle"},"rule-constraint":{"begin":"(rule:content) (\\"\\"\\")","beginCaptures":{"1":{"patterns":[{"include":"#prefixed-name"}]},"2":{"name":"string.quoted.triple.turtle"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"string.quoted.triple.turtle"}},"name":"meta.rule-constraint.turtle","patterns":[{"include":"source.srs"}]},"single-dquote-string-literal":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.turtle"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.turtle"}},"name":"string.quoted.double.turtle","patterns":[{"include":"#string-character-escape"}]},"single-squote-string-literal":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.turtle"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.turtle"},"2":{"name":"invalid.illegal.newline.turtle"}},"name":"string.quoted.single.turtle","patterns":[{"include":"#string-character-escape"}]},"special-predicate":{"captures":{"1":{"name":"keyword.control.turtle"}},"match":"\\\\s(a)\\\\s","name":"meta.specialPredicate.turtle"},"string":{"patterns":[{"include":"#triple-squote-string-literal"},{"include":"#triple-dquote-string-literal"},{"include":"#single-squote-string-literal"},{"include":"#single-dquote-string-literal"},{"include":"#triple-tick-string-literal"}]},"string-character-escape":{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.turtle"},"triple-dquote-string-literal":{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.turtle"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.turtle"}},"name":"string.quoted.triple.turtle","patterns":[{"include":"#string-character-escape"}]},"triple-squote-string-literal":{"begin":"'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.turtle"}},"end":"'''","endCaptures":{"0":{"name":"punctuation.definition.string.end.turtle"}},"name":"string.quoted.triple.turtle","patterns":[{"include":"#string-character-escape"}]},"triple-tick-string-literal":{"begin":"\`\`\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.turtle"}},"end":"\`\`\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.turtle"}},"name":"string.quoted.triple.turtle","patterns":[{"include":"#string-character-escape"}]}},"scopeName":"source.turtle"}`))];export{e as t}; diff --git a/docs/assets/turtle-epRxag87.js b/docs/assets/turtle-epRxag87.js new file mode 100644 index 0000000..7e19a96 --- /dev/null +++ b/docs/assets/turtle-epRxag87.js @@ -0,0 +1 @@ +import{t}from"./turtle-DaGtFj8Y.js";export{t as default}; diff --git a/docs/assets/twig-CaF5hrLR.js b/docs/assets/twig-CaF5hrLR.js new file mode 100644 index 0000000..dff37fc --- /dev/null +++ b/docs/assets/twig-CaF5hrLR.js @@ -0,0 +1 @@ +import{t}from"./javascript-DgAW-dkP.js";import{t as e}from"./css-xi2XX7Oh.js";import{t as n}from"./scss-B9q1Ycvh.js";import{t as i}from"./python-GH_mL2fV.js";import{t as a}from"./ruby-Dh6KaFMR.js";import{t as s}from"./php-dabBNyWz.js";var r=Object.freeze(JSON.parse(`{"displayName":"Twig","fileTypes":["twig","html.twig"],"firstLineMatch":"|)$|\\\\{%\\\\s+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","foldingStopMarker":"(|^(?!.*?$|\\\\{%\\\\s+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","name":"twig","patterns":[{"begin":"(<)([0-:A-Za-z]++)(?=[^>]*>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(>(<)/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml.html","patterns":[{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},{"begin":"|$))/,Ce=u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",j).replace("tag",I).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ie=u(Q).replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",I).getRegex(),G={blockquote:u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ie).getRegex(),code:Te,def:Ie,fences:ze,heading:Ae,hr:A,html:Ce,lheading:se,list:Le,newline:Se,paragraph:ie,table:z,text:Pe},le=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",I).getRegex(),Be={...G,lheading:_e,table:le,paragraph:u(Q).replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",le).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",I).getRegex()},Ee={...G,html:u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",j).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(Q).replace("hr",A).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",se).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},qe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ve=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ae=/^( {2,}|\\)\n(?!\s*$)/,Ze=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,he=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ne=u(he,"u").replace(/punct/g,L).getRegex(),je=u(he,"u").replace(/punct/g,ce).getRegex(),pe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ge=u(pe,"gu").replace(/notPunctSpace/g,oe).replace(/punctSpace/g,H).replace(/punct/g,L).getRegex(),He=u(pe,"gu").replace(/notPunctSpace/g,Oe).replace(/punctSpace/g,Me).replace(/punct/g,ce).getRegex(),Xe=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,oe).replace(/punctSpace/g,H).replace(/punct/g,L).getRegex(),Fe=u(/\\(punct)/,"gu").replace(/punct/g,L).getRegex(),Ue=u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Je=u(j).replace("(?:-->|$)","-->").getRegex(),Ke=u("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Je).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),C=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ve=u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",C).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ue=u(/^!?\[(label)\]\[(ref)\]/).replace("label",C).replace("ref",N).getRegex(),ge=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",N).getRegex(),X={_backpedal:z,anyPunctuation:Fe,autolink:Ue,blockSkip:Qe,br:ae,code:ve,del:z,emStrongLDelim:Ne,emStrongRDelimAst:Ge,emStrongRDelimUnd:Xe,escape:qe,link:Ve,nolink:ge,punctuation:De,reflink:ue,reflinkSearch:u("reflink|nolink(?!\\()","g").replace("reflink",ue).replace("nolink",ge).getRegex(),tag:Ke,text:Ze,url:z},We={...X,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",C).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",C).getRegex()},F={...X,emStrongRDelimAst:He,emStrongLDelim:je,url:u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},ke=n=>et[n];function w(n,e){if(e){if(b.escapeTest.test(n))return n.replace(b.escapeReplace,ke)}else if(b.escapeTestNoEncode.test(n))return n.replace(b.escapeReplaceNoEncode,ke);return n}function de(n){try{n=encodeURI(n).replace(b.percentDecode,"%")}catch{return null}return n}function fe(n,e){var r;let t=n.replace(b.findPipe,(l,c,i)=>{let o=!1,a=c;for(;--a>=0&&i[a]==="\\";)o=!o;return o?"|":" |"}).split(b.splitPipe),s=0;if(t[0].trim()||t.shift(),t.length>0&&!((r=t.at(-1))!=null&&r.trim())&&t.pop(),e)if(t.length>e)t.splice(e);else for(;t.length0?-2:-1}function xe(n,e,t,s,r){let l=e.href,c=e.title||null,i=n[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let o={type:n[0].charAt(0)==="!"?"image":"link",raw:t,href:l,title:c,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,o}function nt(n,e,t){let s=n.match(t.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(` +`).map(l=>{let c=l.match(t.other.beginningSpace);if(c===null)return l;let[i]=c;return i.length>=r.length?l.slice(r.length):l}).join(` +`)}var E=class{constructor(n){k(this,"options");k(this,"rules");k(this,"lexer");this.options=n||R}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:P(t,` +`)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let t=e[0],s=nt(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let s=P(t,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(t=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:P(e[0],` +`)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let t=P(e[0],` +`).split(` +`),s="",r="",l=[];for(;t.length>0;){let c=!1,i=[],o;for(o=0;o1,r={type:"list",raw:"",ordered:s,start:s?+t.slice(0,-1):"",loose:!1,items:[]};t=s?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=s?t:"[*+-]");let l=this.rules.other.listItemRegex(t),c=!1;for(;n;){let o=!1,a="",h="";if(!(e=l.exec(n))||this.rules.block.hr.test(n))break;a=e[0],n=n.substring(a.length);let f=e[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,Z=>" ".repeat(3*Z.length)),p=n.split(` +`,1)[0],x=!f.trim(),d=0;if(this.options.pedantic?(d=2,h=f.trimStart()):x?d=e[1].length+1:(d=e[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,h=f.slice(d),d+=e[1].length),x&&this.rules.other.blankLine.test(p)&&(a+=p+` +`,n=n.substring(p.length+1),o=!0),!o){let Z=this.rules.other.nextBulletRegex(d),Y=this.rules.other.hrRegex(d),ee=this.rules.other.fencesBeginRegex(d),te=this.rules.other.headingBeginRegex(d),be=this.rules.other.htmlBeginRegex(d);for(;n;){let D=n.split(` +`,1)[0],T;if(p=D,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),T=p):T=p.replace(this.rules.other.tabCharGlobal," "),ee.test(p)||te.test(p)||be.test(p)||Z.test(p)||Y.test(p))break;if(T.search(this.rules.other.nonSpaceChar)>=d||!p.trim())h+=` +`+T.slice(d);else{if(x||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ee.test(f)||te.test(f)||Y.test(f))break;h+=` +`+p}!x&&!p.trim()&&(x=!0),a+=D+` +`,n=n.substring(D.length+1),f=T.slice(d)}}r.loose||(c?r.loose=!0:this.rules.other.doubleBlankLine.test(a)&&(c=!0));let m=null,W;this.options.gfm&&(m=this.rules.other.listIsTask.exec(h),m&&(W=m[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:a,task:!!m,checked:W,loose:!1,text:h,tokens:[]}),r.raw+=a}let i=r.items.at(-1);if(i)i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let o=0;oh.type==="space");r.loose=a.length>0&&a.some(h=>this.rules.other.anyLine.test(h.raw))}if(r.loose)for(let o=0;o({text:o,tokens:this.lexer.inline(o),header:!1,align:l.align[a]})));return l}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let t=e[1].charAt(e[1].length-1)===` +`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let l=P(t.slice(0,-1),"\\");if((t.length-l.length)%2==0)return}else{let l=tt(e[2],"()");if(l===-2)return;if(l>-1){let c=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let s=e[2],r="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],r=l[3])}else r=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?s.slice(1):s.slice(1,-1)),xe(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let t;if((t=this.rules.inline.reflink.exec(n))||(t=this.rules.inline.nolink.exec(n))){let s=e[(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){let r=t[0].charAt(0);return{type:"text",raw:r,text:r}}return xe(t,s,t[0],this.lexer,this.rules)}}emStrong(n,e,t=""){let s=this.rules.inline.emStrongLDelim.exec(n);if(s&&!(s[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!t||this.rules.inline.punctuation.exec(t))){let r=[...s[0]].length-1,l,c,i=r,o=0,a=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,e=e.slice(-1*n.length+r);(s=a.exec(e))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(c=[...l].length,s[3]||s[4]){i+=c;continue}else if((s[5]||s[6])&&r%3&&!((r+c)%3)){o+=c;continue}if(i-=c,i>0)continue;c=Math.min(c,c+i+o);let h=[...s[0]][0].length,f=n.slice(0,r+s.index+h+c);if(Math.min(r,c)%2){let x=f.slice(1,-1);return{type:"em",raw:f,text:x,tokens:this.lexer.inlineTokens(x)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return s&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){let e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let t,s;return e[2]==="@"?(t=e[1],s="mailto:"+t):(t=e[1],s=t),{type:"link",raw:e[0],text:t,href:s,tokens:[{type:"text",raw:t,text:t}]}}}url(n){var t;let e;if(e=this.rules.inline.url.exec(n)){let s,r;if(e[2]==="@")s=e[0],r="mailto:"+s;else{let l;do l=e[0],e[0]=((t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])??"";while(l!==e[0]);s=e[0],r=e[1]==="www."?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},y=class K{constructor(e){k(this,"tokens");k(this,"options");k(this,"state");k(this,"tokenizer");k(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||R,this.options.tokenizer=this.options.tokenizer||new E,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:b,block:B.normal,inline:_.normal};this.options.pedantic?(t.block=B.pedantic,t.inline=_.pedantic):this.options.gfm&&(t.block=B.gfm,this.options.breaks?t.inline=_.breaks:t.inline=_.gfm),this.tokenizer.rules=t}static get rules(){return{block:B,inline:_}}static lex(e,t){return new K(t).lex(e)}static lexInline(e,t){return new K(t).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let t=0;t(i=a.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let a=t.at(-1);i.raw.length===1&&a!==void 0?a.raw+=` +`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let a=t.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue.at(-1).src=a.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let a=t.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=` +`+i.raw,a.text+=` +`+i.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let o=e;if((c=this.options.extensions)!=null&&c.startBlock){let a=1/0,h=e.slice(1),f;this.options.extensions.startBlock.forEach(p=>{f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(a=Math.min(a,f))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let a=t.at(-1);s&&(a==null?void 0:a.type)==="paragraph"?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let a=t.at(-1);(a==null?void 0:a.type)==="text"?(a.raw+=` +`+i.raw,a.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var i,o,a;let s=e,r=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)h.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,c="";for(;e;){l||(c=""),l=!1;let h;if((o=(i=this.options.extensions)==null?void 0:i.inline)!=null&&o.some(p=>(h=p.call({lexer:this},e,t))?(e=e.substring(h.raw.length),t.push(h),!0):!1))continue;if(h=this.tokenizer.escape(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.tag(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.link(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(h.raw.length);let p=t.at(-1);h.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=h.raw,p.text+=h.text):t.push(h);continue}if(h=this.tokenizer.emStrong(e,s,c)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.codespan(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.br(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.del(e)){e=e.substring(h.raw.length),t.push(h);continue}if(h=this.tokenizer.autolink(e)){e=e.substring(h.raw.length),t.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(e))){e=e.substring(h.raw.length),t.push(h);continue}let f=e;if((a=this.options.extensions)!=null&&a.startInline){let p=1/0,x=e.slice(1),d;this.options.extensions.startInline.forEach(m=>{d=m.call({lexer:this},x),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(f=e.substring(0,p+1))}if(h=this.tokenizer.inlineText(f)){e=e.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(c=h.raw.slice(-1)),l=!0;let p=t.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=h.raw,p.text+=h.text):t.push(h);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw Error(p)}}return t}},q=class{constructor(n){k(this,"options");k(this,"parser");this.options=n||R}space(n){return""}code({text:n,lang:e,escaped:t}){var l;let s=(l=(e||"").match(b.notSpaceStart))==null?void 0:l[0],r=n.replace(b.endingNewline,"")+` +`;return s?'
'+(t?r:w(r,!0))+`
+`:"
"+(t?r:w(r,!0))+`
+`}blockquote({tokens:n}){return`
+${this.parser.parse(n)}
+`}html({text:n}){return n}heading({tokens:n,depth:e}){return`${this.parser.parseInline(n)} +`}hr(n){return`
+`}list(n){let e=n.ordered,t=n.start,s="";for(let c=0;c +`+s+" +`}listitem(n){var t;let e="";if(n.task){let s=this.checkbox({checked:!!n.checked});n.loose?((t=n.tokens[0])==null?void 0:t.type)==="paragraph"?(n.tokens[0].text=s+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&n.tokens[0].tokens[0].type==="text"&&(n.tokens[0].tokens[0].text=s+" "+w(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):e+=s+" "}return e+=this.parser.parse(n.tokens,!!n.loose),`
  • ${e}
  • +`}checkbox({checked:n}){return"'}paragraph({tokens:n}){return`

    ${this.parser.parseInline(n)}

    +`}table(n){let e="",t="";for(let r=0;r${s}`),` + +`+e+` +`+s+`
    +`}tablerow({text:n}){return` +${n} +`}tablecell(n){let e=this.parser.parseInline(n.tokens),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+` +`}strong({tokens:n}){return`${this.parser.parseInline(n)}`}em({tokens:n}){return`${this.parser.parseInline(n)}`}codespan({text:n}){return`${w(n,!0)}`}br(n){return"
    "}del({tokens:n}){return`${this.parser.parseInline(n)}`}link({href:n,title:e,tokens:t}){let s=this.parser.parseInline(t),r=de(n);if(r===null)return s;n=r;let l='",l}image({href:n,title:e,text:t,tokens:s}){s&&(t=this.parser.parseInline(s,this.parser.textRenderer));let r=de(n);if(r===null)return w(t);n=r;let l=`${t}{let o=c[i].flat(1/0);t=t.concat(this.walkTokens(o,e))}):c.tokens&&(t=t.concat(this.walkTokens(c.tokens,e)))}}return t}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{let s={...t};if(s.async=this.defaults.async||s.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw Error("extension name required");if("renderer"in r){let l=e.renderers[r.name];l?e.renderers[r.name]=function(...c){let i=r.renderer.apply(this,c);return i===!1&&(i=l.apply(this,c)),i}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let l=e[r.level];l?l.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),t.renderer){let r=this.defaults.renderer||new q(this.defaults);for(let l in t.renderer){if(!(l in r))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,i=t.renderer[c],o=r[c];r[c]=(...a)=>{let h=i.apply(r,a);return h===!1&&(h=o.apply(r,a)),h||""}}s.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new E(this.defaults);for(let l in t.tokenizer){if(!(l in r))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,i=t.tokenizer[c],o=r[c];r[c]=(...a)=>{let h=i.apply(r,a);return h===!1&&(h=o.apply(r,a)),h}}s.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new v;for(let l in t.hooks){if(!(l in r))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,i=t.hooks[c],o=r[c];v.passThroughHooks.has(l)?r[c]=a=>{if(this.defaults.async)return Promise.resolve(i.call(r,a)).then(f=>o.call(r,f));let h=i.call(r,a);return o.call(r,h)}:r[c]=(...a)=>{let h=i.apply(r,a);return h===!1&&(h=o.apply(r,a)),h}}s.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,l=t.walkTokens;s.walkTokens=function(c){let i=[];return i.push(l.call(this,c)),r&&(i=i.concat(r.call(this,c))),i}}this.defaults={...this.defaults,...s}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return y.lex(n,e??this.defaults)}parser(n,e){return $.parse(n,e??this.defaults)}parseMarkdown(n){return(e,t)=>{let s={...t},r={...this.defaults,...s},l=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(e==null)return l(Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=n);let c=r.hooks?r.hooks.provideLexer():n?y.lex:y.lexInline,i=r.hooks?r.hooks.provideParser():n?$.parse:$.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(o=>c(o,r)).then(o=>r.hooks?r.hooks.processAllTokens(o):o).then(o=>r.walkTokens?Promise.all(this.walkTokens(o,r.walkTokens)).then(()=>o):o).then(o=>i(o,r)).then(o=>r.hooks?r.hooks.postprocess(o):o).catch(l);try{r.hooks&&(e=r.hooks.preprocess(e));let o=c(e,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let a=i(o,r);return r.hooks&&(a=r.hooks.postprocess(a)),a}catch(o){return l(o)}}}onError(n,e){return t=>{if(t.message+=` +Please report this to https://github.com/markedjs/marked.`,n){let s="

    An error occurred:

    "+w(t.message+"",!0)+"
    ";return e?Promise.resolve(s):s}if(e)return Promise.reject(t);throw t}}};function g(n,e){return S.parse(n,e)}g.options=g.setOptions=function(n){return S.setOptions(n),g.defaults=S.defaults,ne(g.defaults),g},g.getDefaults=M,g.defaults=R,g.use=function(...n){return S.use(...n),g.defaults=S.defaults,ne(g.defaults),g},g.walkTokens=function(n,e){return S.walkTokens(n,e)},g.parseInline=S.parseInline,g.Parser=$,g.parser=$.parse,g.Renderer=q,g.TextRenderer=U,g.Lexer=y,g.lexer=y.lex,g.Tokenizer=E,g.Hooks=v,g.parse=g,g.options,g.setOptions,g.use,g.walkTokens,g.parseInline,$.parse,y.lex;var rt=Re(),st=ye($e(),1);function it(){let n=(0,rt.c)(2),[e,t]=(0,st.useState)(0),s;return n[0]===e?s=n[1]:(s=()=>{t(e+1)},n[0]=e,n[1]=s),s}export{g as n,it as t}; diff --git a/docs/assets/useNotebookActions-DaM9w6Je.js b/docs/assets/useNotebookActions-DaM9w6Je.js new file mode 100644 index 0000000..753342a --- /dev/null +++ b/docs/assets/useNotebookActions-DaM9w6Je.js @@ -0,0 +1 @@ +import{s as de}from"./chunk-LvLJmgfZ.js";import{d as N,l as Oe,p as Ue,u as ee}from"./useEvent-DlWF5OMa.js";import{t as $e}from"./react-BGmjiNul.js";import{$n as Be,Gn as Ye,Jn as Fe,Rt as Ge,Un as Je,ai as te,dn as Ke,g as Xe,hn as ce,jt as Qe,ln as Ze,m as he,t as et,un as tt,w as pe,yr as at,zt as me}from"./cells-CmJW_FeD.js";import{t as W}from"./compiler-runtime-DeeZ7FnK.js";import{i as ot}from"./useLifecycle-CmDXEyIC.js";import{a as ue}from"./type-BdyvjzTI.js";import{n as it}from"./add-database-form-0DEJX5nr.js";import{a as fe,d as D}from"./hotkeys-uKX61F1_.js";import{y as nt}from"./utils-Czt8B2GX.js";import{n as _,t as ye}from"./constants-Bkp4R3bQ.js";import{A as lt,f as st,j as be,w as rt}from"./config-CENq_7Pd.js";import{t as dt}from"./jsx-runtime-DN_bIXfG.js";import{r as ct,t as ae}from"./button-B8cGZzP5.js";import{r as P}from"./requests-C0HaHO6a.js";import{t as h}from"./createLucideIcon-CW2xpJ57.js";import{a as ke,f as ht,i as xe,m as pt,p as we,u as ge}from"./layout-CBI2c778.js";import{t as je}from"./check-CrAQug3q.js";import{a as mt,c as ut,i as ft,n as yt,r as bt,s as kt,t as xt}from"./select-D9lTzMzP.js";import{a as wt,c as ve,n as Ce,s as gt,t as jt}from"./download-C_slsU-7.js";import{f as vt}from"./maps-s2pQkyf5.js";import{r as Ct}from"./useCellActionButton-DmwKwroH.js";import{t as zt}from"./copy-gBVL4NN-.js";import{d as Mt,t as Wt}from"./state-BphSR6sx.js";import{t as _t}from"./download-DobaYJPt.js";import{t as At}from"./eye-off-D9zAYqG9.js";import{t as St}from"./file-plus-corner-BO_uS88s.js";import{t as Nt}from"./file-BnFXtaZZ.js";import{i as Dt,n as Pt,r as It,t as Et}from"./youtube-BJQRl2JC.js";import{n as Tt,t as Ht}from"./house-CncUa_LL.js";import{n as Lt}from"./play-BJDBXApx.js";import{t as qt}from"./link-54sBkoQp.js";import{r as Rt}from"./input-Bkl2Yfmh.js";import{t as Vt}from"./settings-MTlHVxz3.js";import{y as Ot}from"./textarea-DzIuH-E_.js";import{t as Ut}from"./square-leQTJTJJ.js";import{t as C}from"./use-toast-Bzf3rpev.js";import{t as $t}from"./tooltip-CvjcEpZC.js";import{a as ze,i as Bt,r as Yt}from"./mode-CXc0VeQq.js";import{o as Ft}from"./alert-dialog-jcHA5geR.js";import{a as Gt,c as Jt,i as Kt,n as Xt,r as Qt}from"./dialog-CF5DtF1E.js";import{n as oe}from"./ImperativeModal-BZvZlZQZ.js";import{r as Zt,t as ea}from"./share-CXQVxivL.js";import{t as U}from"./copy-DRhpWiOq.js";import{r as ta}from"./useRunCells-DNnhJ0Gs.js";import{a as aa}from"./cell-link-D7bPw7Fz.js";import{a as Me}from"./renderShortcut-BzTDKVab.js";import{t as oa}from"./icons-9QU2Dup7.js";import{t as ia}from"./links-Dh2BjF0A.js";import{r as na,t as la}from"./hooks-DjduWDUD.js";import{t as We}from"./types-DBNA0l6L.js";var sa=h("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),ra=h("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),_e=h("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),Ae=h("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),Se=h("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),da=h("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),ca=h("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]),ha=h("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),Ne=h("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),pa=h("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),ma=h("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),De=h("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),ua=h("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),fa=h("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),Pe=h("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),Ie=W(),ie=de($e(),1),a=de(dt(),1),$="https://static.marimo.app";const ya=e=>{let t=(0,Ie.c)(25),{onClose:i}=e,[o,l]=(0,ie.useState)(""),{exportAsHTML:r}=P(),s=`${o}-${Math.random().toString(36).slice(2,6)}`,n=`${$}/static/${s}`,d;t[0]!==r||t[1]!==i||t[2]!==s?(d=async v=>{v.preventDefault(),i();let A=await r({download:!1,includeCode:!0,files:ht.INSTANCE.filenames()}),z=C({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${$}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:A,path:s})}).catch(()=>{z.dismiss(),C({title:"Error uploading static page",description:(0,a.jsxs)("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",(0,a.jsx)("a",{href:_.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),z.dismiss(),C({title:"Static page uploaded!",description:(0,a.jsxs)("div",{children:["The URL has been copied to your clipboard.",(0,a.jsx)("br",{}),"You can share it with anyone."]})})},t[0]=r,t[1]=i,t[2]=s,t[3]=d):d=t[3];let p;t[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(Jt,{children:"Share static notebook"}),t[4]=p):p=t[4];let w;t[5]===Symbol.for("react.memo_cache_sentinel")?(w=(0,a.jsxs)(Gt,{children:[p,(0,a.jsxs)(Qt,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",(0,a.jsx)("a",{href:$,target:"_blank",children:$}),"."]})]}),t[5]=w):w=t[5];let g;t[6]===Symbol.for("react.memo_cache_sentinel")?(g=v=>{l(v.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,""))},t[6]=g):g=t[6];let m;t[7]===o?m=t[8]:(m=(0,a.jsx)(Rt,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:g,required:!0,autoComplete:"off"}),t[7]=o,t[8]=m);let u;t[9]===n?u=t[10]:(u=(0,a.jsxs)("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(ba,{text:n}),(0,a.jsx)("span",{className:"text-primary",children:n})]})]}),t[9]=n,t[10]=u);let f;t[11]!==m||t[12]!==u?(f=(0,a.jsxs)("div",{className:"flex flex-col gap-6 py-4",children:[m,u]}),t[11]=m,t[12]=u,t[13]=f):f=t[13];let y;t[14]===i?y=t[15]:(y=(0,a.jsx)(ae,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:i,children:"Cancel"}),t[14]=i,t[15]=y);let b;t[16]===n?b=t[17]:(b=(0,a.jsx)(ae,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await U(n)},children:"Create"}),t[16]=n,t[17]=b);let k;t[18]!==y||t[19]!==b?(k=(0,a.jsxs)(Kt,{children:[y,b]}),t[18]=y,t[19]=b,t[20]=k):k=t[20];let j;return t[21]!==d||t[22]!==k||t[23]!==f?(j=(0,a.jsx)(Xt,{className:"w-fit",children:(0,a.jsxs)("form",{onSubmit:d,children:[w,f,k]})}),t[21]=d,t[22]=k,t[23]=f,t[24]=j):j=t[24],j};var ba=e=>{let t=(0,Ie.c)(8),[i,o]=ie.useState(!1),l;t[0]===e.text?l=t[1]:(l=ct.stopPropagation(async p=>{p.preventDefault(),await U(e.text),o(!0),setTimeout(()=>o(!1),2e3)}),t[0]=e.text,t[1]=l);let r=l,s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(zt,{size:14,strokeWidth:1.5}),t[2]=s):s=t[2];let n;t[3]===r?n=t[4]:(n=(0,a.jsx)(ae,{"data-testid":"copy-static-notebook-url-button",onClick:r,size:"xs",variant:"secondary",children:s}),t[3]=r,t[4]=n);let d;return t[5]!==i||t[6]!==n?(d=(0,a.jsx)($t,{content:"Copied!",open:i,children:n}),t[5]=i,t[6]=n,t[7]=d):d=t[7],d},ka=W();function xa(){let e=document.getElementsByClassName(ye.outputArea);for(let t of e){let i=t.getBoundingClientRect();if(i.bottom>0&&i.top{let o=xa();t(l=>({mode:Bt(l.mode),cellAnchor:(o==null?void 0:o.cellId)??null})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{wa(o)})})},e[0]=t,e[1]=i),i}const Te=Ue(!1);var ga=W();const ja=()=>{let e=(0,ga.c)(7),{selectedLayout:t}=ke(),{setLayoutView:i}=xe();if(be()&&!ce("wasm_layouts"))return null;let o;e[0]===i?o=e[1]:(o=n=>i(n),e[0]=i,e[1]=o);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(kt,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:(0,a.jsx)(ut,{placeholder:"Select a view"})}),e[2]=l):l=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(yt,{children:(0,a.jsxs)(bt,{children:[(0,a.jsx)(mt,{children:"View as"}),We.map(Ca)]})}),e[3]=r):r=e[3];let s;return e[4]!==t||e[5]!==o?(s=(0,a.jsxs)(xt,{"data-testid":"layout-select",value:t,onValueChange:o,children:[l,r]}),e[4]=t,e[5]=o,e[6]=s):s=e[6],s};function va(e){return(0,a.jsx)(He(e),{className:"h-4 w-4"})}function He(e){switch(e){case"vertical":return pa;case"grid":return It;case"slides":return De;default:return ot(e),Ut}}function Le(e){return ue(e)}function Ca(e){return(0,a.jsx)(ft,{value:e,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 leading-5",children:[va(e),(0,a.jsx)("span",{children:Le(e)})]})},e)}var za=W();function Ma(e){let t=(0,za.c)(5),{openPrompt:i,closeModal:o}=oe(),{sendCopy:l}=P(),r;return t[0]!==o||t[1]!==i||t[2]!==l||t[3]!==e?(r=()=>{if(!e)return null;let s=Ge.guessDeliminator(e);i({title:"Copy notebook",description:"Enter a new filename for the notebook copy.",defaultValue:`_${me.basename(e)}`,confirmText:"Copy notebook",spellCheck:!1,onConfirm:n=>{let d=s.join(me.dirname(e),n);l({source:e,destination:d}).then(()=>{o(),C({title:"Notebook copied",description:"A copy of the notebook has been created."}),ia(d)})}})},t[0]=o,t[1]=i,t[2]=l,t[3]=e,t[4]=r):r=t[4],r}const Wa=()=>{let{updateCellConfig:e}=pe(),{saveCellConfig:t}=P();return(0,ie.useCallback)(async()=>{let i=new Qe,o=he(),l=o.cellIds.inOrderIds,r={};for(let n of l){if(o.cellData[n]===void 0)continue;let{code:d,config:p}=o.cellData[n];p.hide_code||i.isSupported(d)&&(r[n]={hide_code:!0})}let s=fe.entries(r);if(s.length!==0){await t({configs:r});for(let[n,d]of s)e({cellId:n,config:d})}},[e])};var _a=W();function qe(){let e=(0,_a.c)(4),{openConfirm:t}=oe(),i=N(rt),{sendRestart:o}=P(),l;return e[0]!==t||e[1]!==o||e[2]!==i?(l=()=>{t({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:(0,a.jsx)(Ft,{onClick:async()=>{i({state:lt.CLOSING}),await o(),Zt()},"aria-label":"Confirm Restart",children:"Restart"})})},e[0]=t,e[1]=o,e[2]=i,e[3]=l):l=e[3],l}var Aa=W(),I=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation()};function Sa(){var se,re;let e=(0,Aa.c)(40),t=aa(),{openModal:i,closeModal:o}=oe(),{toggleApplication:l}=Ze(),{selectedPanel:r}=tt(),[s]=Oe(ze),n=ee(Yt),d=Wa(),[p]=nt(),{updateCellConfig:w,undoDeleteCell:g,clearAllCellOutputs:m,addSetupCellIfDoesntExist:u,collapseAllCells:f,expandAllCells:y}=pe(),b=qe(),k=ta(),j=Ma(t),v=N(Te),A=N(Wt),z=N(Mt),{exportAsMarkdown:B,readCode:S,saveCellConfig:Y,updateCellOutputs:F}=P(),G=ee(Xe),J=ee(et),{selectedLayout:K}=ke(),{setLayoutView:X}=xe(),E=Ee(),Q=na(),T=((se=p.sharing)==null?void 0:se.html)??!0,H=((re=p.sharing)==null?void 0:re.wasm)??!0,L;e[0]===Symbol.for("react.memo_cache_sentinel")?(L=ce("server_side_pdf_export"),e[0]=L):L=e[0];let le=L,q=le||s.mode==="present",Re=Fa,R;e[1]===Symbol.for("react.memo_cache_sentinel")?(R=(0,a.jsx)(_t,{size:14,strokeWidth:1.5}),e[1]=R):R=e[1];let V;e[2]===Symbol.for("react.memo_cache_sentinel")?(V=(0,a.jsx)(we,{size:14,strokeWidth:1.5}),e[2]=V):V=e[2];let M;e[3]===t?M=e[4]:(M=async()=>{if(!t){ne();return}await ge({filename:t,includeCode:!0})},e[3]=t,e[4]=M);let O;return e[5]!==u||e[6]!==J||e[7]!==m||e[8]!==o||e[9]!==f||e[10]!==j||e[11]!==y||e[12]!==B||e[13]!==t||e[14]!==G||e[15]!==d||e[16]!==n||e[17]!==i||e[18]!==q||e[19]!==S||e[20]!==b||e[21]!==k||e[22]!==Y||e[23]!==K||e[24]!==r||e[25]!==v||e[26]!==z||e[27]!==X||e[28]!==A||e[29]!==T||e[30]!==H||e[31]!==M||e[32]!==Q||e[33]!==l||e[34]!==E||e[35]!==g||e[36]!==w||e[37]!==F||e[38]!==s.mode?(O=[{icon:R,label:"Download",handle:I,dropdown:[{icon:V,label:"Download as HTML",handle:M},{icon:(0,a.jsx)(we,{size:14,strokeWidth:1.5}),label:"Download as HTML (exclude code)",handle:async()=>{if(!t){ne();return}await ge({filename:t,includeCode:!1})}},{icon:(0,a.jsx)(oa,{strokeWidth:1.5,style:{width:14,height:14}}),label:"Download as Markdown",handle:async()=>{let c=await B({download:!1});Ce(new Blob([c],{type:"text/plain"}),ve.toMarkdown(document.title))}},{icon:(0,a.jsx)(pt,{size:14,strokeWidth:1.5}),label:"Download Python code",handle:async()=>{let c=await S();Ce(new Blob([c.contents],{type:"text/plain"}),ve.toPY(document.title))}},{divider:!0,icon:(0,a.jsx)(Lt,{size:14,strokeWidth:1.5}),label:"Download as PNG",disabled:s.mode!=="present",tooltip:s.mode==="present"?void 0:(0,a.jsxs)("span",{children:["Only available in app view. ",(0,a.jsx)("br",{}),"Toggle with: ",Me("global.hideCode",!1)]}),handle:Ya},{icon:(0,a.jsx)(Nt,{size:14,strokeWidth:1.5}),label:"Download as PDF",disabled:!q,tooltip:q?void 0:(0,a.jsxs)("span",{children:["Only available in app view. ",(0,a.jsx)("br",{}),"Toggle with: ",Me("global.hideCode",!1)]}),handle:async()=>{if(le){if(!t){ne();return}await gt("Downloading PDF...",async()=>{await la(Q,F),await jt({filename:t,webpdf:!1})});return}let c=new Event("export-beforeprint"),x=new Event("export-afterprint");(function(){window.dispatchEvent(c),setTimeout(Ba,0),setTimeout(()=>window.dispatchEvent(x),0)})()}}]},{icon:(0,a.jsx)(ua,{size:14,strokeWidth:1.5}),label:"Share",handle:I,hidden:!T&&!H,dropdown:[{icon:(0,a.jsx)(Tt,{size:14,strokeWidth:1.5}),label:"Publish HTML to web",hidden:!T,handle:async()=>{i((0,a.jsx)(ya,{onClose:o}))}},{icon:(0,a.jsx)(qt,{size:14,strokeWidth:1.5}),label:"Create WebAssembly link",hidden:!H,handle:async()=>{await U(ea({code:(await S()).contents})),C({title:"Copied",description:"Link copied to clipboard."})}}]},{icon:(0,a.jsx)(ma,{size:14,strokeWidth:1.5}),label:"Helper panel",redundant:!0,handle:I,dropdown:Ke.flatMap(c=>{let{type:x,Icon:Z,hidden:Ve}=c;return Ve?[]:{label:ue(x),rightElement:Re(r===x),icon:(0,a.jsx)(Z,{size:14,strokeWidth:1.5}),handle:()=>l(x)}})},{icon:(0,a.jsx)(De,{size:14,strokeWidth:1.5}),label:"Present as",handle:I,dropdown:[{icon:s.mode==="present"?(0,a.jsx)(Ot,{size:14,strokeWidth:1.5}):(0,a.jsx)(Ne,{size:14,strokeWidth:1.5}),label:"Toggle app view",hotkey:"global.hideCode",handle:()=>{E()}},...We.map((c,x)=>{let Z=He(c);return{divider:x===0,label:Le(c),icon:(0,a.jsx)(Z,{size:14,strokeWidth:1.5}),rightElement:(0,a.jsx)("div",{className:"w-8 flex justify-end",children:K===c&&(0,a.jsx)(je,{size:14})}),handle:()=>{X(c),s.mode==="edit"&&E()}}})]},{icon:(0,a.jsx)(ca,{size:14,strokeWidth:1.5}),label:"Duplicate notebook",hidden:!t||be(),handle:j},{icon:(0,a.jsx)(_e,{size:14,strokeWidth:1.5}),label:"Copy code to clipboard",hidden:!t,handle:async()=>{await U((await S()).contents),C({title:"Copied",description:"Code copied to clipboard."})}},{icon:(0,a.jsx)(Ct,{size:14,strokeWidth:1.5}),label:"Enable all cells",hidden:!G||n,handle:async()=>{let c=at(he());await Y({configs:fe.fromEntries(c.map($a))});for(let x of c)w({cellId:x,config:{disabled:!1}})}},{divider:!0,icon:(0,a.jsx)(Se,{size:14,strokeWidth:1.5}),label:"Add setup cell",handle:()=>{u({})}},{icon:(0,a.jsx)(Ye,{size:14,strokeWidth:1.5}),label:"Add database connection",handle:()=>{i((0,a.jsx)(it,{onClose:o}))}},{icon:(0,a.jsx)(Pe,{size:14,strokeWidth:1.5}),label:"Undo cell deletion",hidden:!J||n,handle:()=>{g()}},{icon:(0,a.jsx)(fa,{size:14,strokeWidth:1.5}),label:"Restart kernel",variant:"danger",handle:b},{icon:(0,a.jsx)(da,{size:14,strokeWidth:1.5}),label:"Re-run all cells",redundant:!0,hotkey:"global.runAll",handle:async()=>{k()}},{icon:(0,a.jsx)(Fe,{size:14,strokeWidth:1.5}),label:"Clear all outputs",redundant:!0,handle:()=>{m()}},{icon:(0,a.jsx)(At,{size:14,strokeWidth:1.5}),label:"Hide all markdown code",handle:d,redundant:!0},{icon:(0,a.jsx)(ra,{size:14,strokeWidth:1.5}),label:"Collapse all sections",hotkey:"global.collapseAllSections",handle:f,redundant:!0},{icon:(0,a.jsx)(sa,{size:14,strokeWidth:1.5}),label:"Expand all sections",hotkey:"global.expandAllSections",handle:y,redundant:!0},{divider:!0,icon:(0,a.jsx)(Ae,{size:14,strokeWidth:1.5}),label:"Command palette",hotkey:"global.commandPalette",handle:()=>v(Ua)},{icon:(0,a.jsx)(ha,{size:14,strokeWidth:1.5}),label:"Keyboard shortcuts",hotkey:"global.showHelp",handle:()=>z(Oa)},{icon:(0,a.jsx)(Vt,{size:14,strokeWidth:1.5}),label:"User settings",handle:()=>A(Va),redundant:!0},{icon:(0,a.jsx)(vt,{size:14,strokeWidth:1.5}),label:"Resources",handle:I,dropdown:[{icon:(0,a.jsx)(Be,{size:14,strokeWidth:1.5}),label:"Documentation",handle:Ra},{icon:(0,a.jsx)(Dt,{size:14,strokeWidth:1.5}),label:"GitHub",handle:qa},{icon:(0,a.jsx)(Pt,{size:14,strokeWidth:1.5}),label:"Discord Community",handle:La},{icon:(0,a.jsx)(Et,{size:14,strokeWidth:1.5}),label:"YouTube",handle:Ha},{icon:(0,a.jsx)(Je,{size:14,strokeWidth:1.5}),label:"Changelog",handle:Ta}]},{divider:!0,icon:(0,a.jsx)(Ht,{size:14,strokeWidth:1.5}),label:"Return home",hidden:!location.search.includes("file"),handle:Ea},{icon:(0,a.jsx)(St,{size:14,strokeWidth:1.5}),label:"New notebook",hidden:!location.search.includes("file"),handle:Ia}].filter(Pa).map(Na),e[5]=u,e[6]=J,e[7]=m,e[8]=o,e[9]=f,e[10]=j,e[11]=y,e[12]=B,e[13]=t,e[14]=G,e[15]=d,e[16]=n,e[17]=i,e[18]=q,e[19]=S,e[20]=b,e[21]=k,e[22]=Y,e[23]=K,e[24]=r,e[25]=v,e[26]=z,e[27]=X,e[28]=A,e[29]=T,e[30]=H,e[31]=M,e[32]=Q,e[33]=l,e[34]=E,e[35]=g,e[36]=w,e[37]=F,e[38]=s.mode,e[39]=O):O=e[39],O}function Na(e){return e.dropdown?{...e,dropdown:e.dropdown.filter(Da)}:e}function Da(e){return!e.hidden}function Pa(e){return!e.hidden}function Ia(){let e=st();window.open(e,"_blank")}function Ea(){let e=document.baseURI.split("?")[0];window.open(e,"_self")}function Ta(){window.open(_.releasesPage,"_blank")}function Ha(){window.open(_.youtube,"_blank")}function La(){window.open(_.discordLink,"_blank")}function qa(){window.open(_.githubPage,"_blank")}function Ra(){window.open(_.docsPage,"_blank")}function Va(e){return!e}function Oa(e){return!e}function Ua(e){return!e}function $a(e){return[e,{disabled:!1}]}function Ba(){return window.print()}async function Ya(){let e=document.getElementById("App");e&&await wt({element:e,filename:document.title})}function Fa(e){return(0,a.jsx)("div",{className:"w-8 flex justify-end",children:e&&(0,a.jsx)(je,{size:14})})}function ne(){C({title:"Error",description:"Notebooks must be named to be exported.",variant:"danger"})}export{Ee as a,Se as c,Te as i,Ae as l,qe as n,Pe as o,ja as r,Ne as s,Sa as t,_e as u}; diff --git a/docs/assets/useNumberFormatter-D8ks3oPN.js b/docs/assets/useNumberFormatter-D8ks3oPN.js new file mode 100644 index 0000000..8e86d02 --- /dev/null +++ b/docs/assets/useNumberFormatter-D8ks3oPN.js @@ -0,0 +1 @@ +import{s as h}from"./chunk-LvLJmgfZ.js";import{t as c}from"./react-BGmjiNul.js";import{t as y}from"./context-BAYdLMF_.js";var l=new Map,m=!1;try{m=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var u=!1;try{u=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var p={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}},f=class{format(t){var e;let r="";if(r=!m&&this.options.signDisplay!=null?b(this.numberFormatter,this.options.signDisplay,t):this.numberFormatter.format(t),this.options.style==="unit"&&!u){let{unit:s,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!s)return r;let o=(e=p[s])==null?void 0:e[i];r+=o[a]||o.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r= start date");return`${this.format(t)} \u2013 ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r= start date");let e=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(r);return[...e.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...s.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!m&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!u&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=d(t,r),this.options=r}};function d(t,r={}){var a;let{numberingSystem:e}=r;if(e&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${e}`),r.style==="unit"&&!u){let{unit:o,unitDisplay:n="short"}=r;if(!o)throw Error('unit option must be provided with style: "unit"');if(!((a=p[o])!=null&&a[n]))throw Error(`Unsupported unit ${o} with unitDisplay = ${n}`);r={...r,style:"decimal"}}let s=t+(r?Object.entries(r).sort((o,n)=>o[0]0||Object.is(e,0):r==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):s=e>0),s){let i=t.format(-e),a=t.format(e),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return t.format(e)}}var g=h(c(),1);function D(t={}){let{locale:r}=y();return(0,g.useMemo)(()=>new f(r,t),[r,t])}export{f as n,D as t}; diff --git a/docs/assets/usePress-C2LPFxyv.js b/docs/assets/usePress-C2LPFxyv.js new file mode 100644 index 0000000..f521d24 --- /dev/null +++ b/docs/assets/usePress-C2LPFxyv.js @@ -0,0 +1,7 @@ +import{s as Ge}from"./chunk-LvLJmgfZ.js";import{t as Ve}from"./react-BGmjiNul.js";import{t as Be}from"./react-dom-C9fstfnp.js";import{n as We}from"./clsx-D0MtrJOx.js";import{n as _e}from"./SSRProvider-DD7JA3RM.js";var f=Ge(Ve(),1),A=typeof document<"u"?f.useLayoutEffect:()=>{},Ye=f.useInsertionEffect??A;function T(e){let t=(0,f.useRef)(null);return Ye(()=>{t.current=e},[e]),(0,f.useCallback)((...n)=>{let r=t.current;return r==null?void 0:r(...n)},[])}function Xe(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(null),a=T(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}t===l.value?a():n(l.value)});return A(()=>{r.current&&a()}),[t,T(l=>{r.current=l(t),a()})]}var qe=!!(typeof window<"u"&&window.document&&window.document.createElement),O=new Map,U;typeof FinalizationRegistry<"u"&&(U=new FinalizationRegistry(e=>{O.delete(e)}));function me(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(null),a=_e(t),l=(0,f.useRef)(null);if(U&&U.register(l,a),qe){let u=O.get(a);u&&!u.includes(r)?u.push(r):O.set(a,[r])}return A(()=>{let u=a;return()=>{U&&U.unregister(l),O.delete(u)}},[a]),(0,f.useEffect)(()=>{let u=r.current;return u&&n(u),()=>{u&&(r.current=null)}}),a}function $e(e,t){if(e===t)return e;let n=O.get(e);if(n)return n.forEach(a=>a.current=t),t;let r=O.get(t);return r?(r.forEach(a=>a.current=e),e):t}function Je(e=[]){let t=me(),[n,r]=Xe(t),a=(0,f.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return A(a,[t,a,...e]),n}function Z(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var L=e=>(e==null?void 0:e.ownerDocument)??document,j=e=>e&&"window"in e&&e.window===e?e:L(e).defaultView||window;function Qe(e){return typeof e=="object"&&!!e&&"nodeType"in e&&typeof e.nodeType=="number"}function Ze(e){return Qe(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}var et=!1;function V(){return et}function w(e,t){if(!V())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName==="SLOT"&&n.assignedSlot?n.assignedSlot.parentNode:Ze(n)?n.host:n.parentNode}return!1}var tt=(e=document)=>{var n;if(!V())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&((n=t.shadowRoot)!=null&&n.activeElement);)t=t.shadowRoot.activeElement;return t};function b(e){return V()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function ee(...e){let t={...e[0]};for(let n=1;n=65&&a.charCodeAt(2)<=90?t[a]=Z(l,u):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof u=="string"?t[a]=We(l,u):a==="id"&&l&&u?t.id=$e(l,u):t[a]=u===void 0?l:u}}return t}function z(e){if(nt())e.focus({preventScroll:!0});else{let t=rt(e);e.focus(),it(t)}}var B=null;function nt(){if(B==null){B=!1;try{document.createElement("div").focus({get preventScroll(){return B=!0,!0}})}catch{}}return B}function rt(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function te(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function P(e){let t=null;return()=>(t??(t=e()),t)}var x=P(function(){return te(/^Mac/i)}),Ee=P(function(){return te(/^iPhone/i)}),ne=P(function(){return te(/^iPad/i)||x()&&navigator.maxTouchPoints>1}),_=P(function(){return Ee()||ne()}),at=P(function(){return x()||_()}),be=P(function(){return W(/AppleWebKit/i)&&!he()}),he=P(function(){return W(/Chrome/i)}),re=P(function(){return W(/Android/i)}),ot=P(function(){return W(/Firefox/i)}),st=(0,f.createContext)({isNative:!0,open:ut,useHref:e=>e});function ie(){return(0,f.useContext)(st)}function M(e,t,n=!0){var E;var r;let{metaKey:a,ctrlKey:l,altKey:u,shiftKey:d}=t;ot()&&(r=window.event)!=null&&((E=r.type)!=null&&E.startsWith("key"))&&e.target==="_blank"&&(x()?a=!0:l=!0);let v=be()&&x()&&!ne()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:l,altKey:u,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:l,altKey:u,shiftKey:d,bubbles:!0,cancelable:!0});M.isOpening=n,z(e),e.dispatchEvent(v),M.isOpening=!1}M.isOpening=!1;function lt(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function ut(e,t){lt(e,n=>M(n,t))}function ct(e){let t=ie().useHref(e.href??"");return{"data-href":e.href?t:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function dt(e){let t=ie().useHref((e==null?void 0:e.href)??"");return{href:e!=null&&e.href?t:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}var S=new Map,ae=new Set;function Te(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=S.get(r.target);a||(a=new Set,S.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=S.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),S.delete(r.target)),S.size===0)){for(let l of ae)l();ae.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Te):Te());function ft(){for(let[e]of S)"isConnected"in e&&!e.isConnected&&S.delete(e)}function we(e){requestAnimationFrame(()=>{ft(),S.size===0?e():ae.add(e)})}function Pe(){let e=(0,f.useRef)(new Map),t=(0,f.useCallback)((a,l,u,d)=>{let v=d!=null&&d.once?(...E)=>{e.current.delete(u),u(...E)}:u;e.current.set(u,{type:l,eventTarget:a,fn:v,options:d}),a.addEventListener(l,v,d)},[]),n=(0,f.useCallback)((a,l,u,d)=>{var E;let v=((E=e.current.get(u))==null?void 0:E.fn)||u;a.removeEventListener(l,v,d),e.current.delete(u)},[]),r=(0,f.useCallback)(()=>{e.current.forEach((a,l)=>{n(a.eventTarget,a.type,l,a.options)})},[n]);return(0,f.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Le(e,t){A(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Se(e){return e.pointerType===""&&e.isTrusted?!0:re()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ke(e){return!re()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}var pt=typeof Element<"u"&&"checkVisibility"in Element.prototype;function gt(e){let t=j(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a=n!=="none"&&r!=="hidden"&&r!=="collapse";if(a){let{getComputedStyle:l}=e.ownerDocument.defaultView,{display:u,visibility:d}=l(e);a=u!=="none"&&d!=="hidden"&&d!=="collapse"}return a}function vt(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function oe(e,t){return pt?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&>(e)&&vt(e,t)&&(!e.parentElement||oe(e.parentElement,e))}var se=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],yt=se.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";se.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var mt=se.join(':not([hidden]):not([tabindex="-1"]),');function Ae(e){return e.matches(yt)&&oe(e)&&!Me(e)}function Et(e){return e.matches(mt)&&oe(e)&&!Me(e)}function Me(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function bt(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function Ke(e,t,n){bt(e,t),t.set(e,n)}function le(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ce(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function ht(e){let t=(0,f.useRef)({isFocused:!1,observer:null});A(()=>{let r=t.current;return()=>{r.observer&&(r.observer=(r.observer.disconnect(),null))}},[]);let n=T(r=>{e==null||e(r)});return(0,f.useCallback)(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target;a.addEventListener("focusout",l=>{t.current.isFocused=!1,a.disabled&&n(le(l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var l;(l=t.current.observer)==null||l.disconnect();let u=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}var ue=!1;function Tt(e){for(;e&&!Ae(e);)e=e.parentElement;let t=j(e),n=t.document.activeElement;if(!n||n===e)return;ue=!0;let r=!1,a=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},l=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,z(n),v()))},u=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},d=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,z(n),v()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",d,!0),t.addEventListener("focus",u,!0);let v=()=>{cancelAnimationFrame(E),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",d,!0),t.removeEventListener("focus",u,!0),ue=!1,r=!1},E=requestAnimationFrame(v);return v}var F="default",ce="",Y=new WeakMap;function wt(e){if(_()){if(F==="default"){let t=L(e);ce=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}F="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Y.set(e,e.style[t]),e.style[t]="none"}}function Ie(e){if(_()){if(F!=="disabled")return;F="restoring",setTimeout(()=>{we(()=>{if(F==="restoring"){let t=L(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ce||""),ce="",F="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Y.has(e)){let t=Y.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Y.delete(e)}}var de=f.createContext({register:()=>{}});de.displayName="PressResponderContext";function Pt(e,t){return t.get?t.get.call(e):t.value}function Oe(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Lt(e,t){return Pt(e,Oe(e,t,"get"))}function St(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}function xe(e,t,n){return St(e,Oe(e,t,"set"),n),n}Be();function kt(e){let t=(0,f.useContext)(de);if(t){let{register:n,...r}=t;e=ee(r,e),n()}return Le(t,e.ref),e}var X=new WeakMap,q=class{continuePropagation(){xe(this,X,!1)}get shouldStopPropagation(){return Lt(this,X)}constructor(e,t,n,r){var E;Ke(this,X,{writable:!0,value:void 0}),xe(this,X,!0);let a=(E=(r==null?void 0:r.target)??n.currentTarget)==null?void 0:E.getBoundingClientRect(),l,u=0,d,v=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,v=n.clientY),a&&(d!=null&&v!=null?(l=d-a.left,u=v-a.top):(l=a.width/2,u=a.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=u}},Fe=Symbol("linkClicked"),He="react-aria-pressable-style",Ne="data-react-aria-pressable";function At(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:a,onPressUp:l,onClick:u,isDisabled:d,isPressed:v,preventFocusOnPress:E,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:H,ref:$,...Ue}=kt(e),[je,ge]=(0,f.useState)(!1),C=(0,f.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:N,removeAllGlobalListeners:J}=Pe(),D=T((i,c)=>{let m=C.current;if(d||m.didFirePressStart)return!1;let o=!0;if(m.isTriggeringEvent=!0,r){let p=new q("pressstart",c,i);r(p),o=p.shouldStopPropagation}return n&&n(!0),m.isTriggeringEvent=!1,m.didFirePressStart=!0,ge(!0),o}),I=T((i,c,m=!0)=>{let o=C.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let p=!0;if(a){let s=new q("pressend",c,i);a(s),p=s.shouldStopPropagation}if(n&&n(!1),ge(!1),t&&m&&!d){let s=new q("press",c,i);t(s),p&&(p=s.shouldStopPropagation)}return o.isTriggeringEvent=!1,p}),R=T((i,c)=>{let m=C.current;if(d)return!1;if(l){m.isTriggeringEvent=!0;let o=new q("pressup",c,i);return l(o),m.isTriggeringEvent=!1,o.shouldStopPropagation}return!0}),k=T(i=>{let c=C.current;if(c.isPressed&&c.target){c.didFirePressStart&&c.pointerType!=null&&I(K(c.target,i),c.pointerType,!1),c.isPressed=!1,c.isOverTarget=!1,c.activePointerId=null,c.pointerType=null,J(),H||Ie(c.target);for(let m of c.disposables)m();c.disposables=[]}}),ve=T(i=>{h&&k(i)}),Q=T(i=>{d||(u==null||u(i))}),ye=T((i,c)=>{if(!d&&u){let m=new MouseEvent("click",i);Ce(m,c),u(le(m))}}),ze=(0,f.useMemo)(()=>{let i=C.current,c={onKeyDown(o){if(pe(o.nativeEvent,o.currentTarget)&&w(o.currentTarget,b(o.nativeEvent))){var p;De(b(o.nativeEvent),o.key)&&o.preventDefault();let s=!0;if(!i.isPressed&&!o.repeat){i.target=o.currentTarget,i.isPressed=!0,i.pointerType="keyboard",s=D(o,"keyboard");let g=o.currentTarget;N(L(o.currentTarget),"keyup",Z(y=>{pe(y,g)&&!y.repeat&&w(g,b(y))&&i.target&&R(K(i.target,y),"keyboard")},m),!0)}s&&o.stopPropagation(),o.metaKey&&x()&&((p=i.metaKeyEvents)==null||p.set(o.key,o.nativeEvent))}else o.key==="Meta"&&(i.metaKeyEvents=new Map)},onClick(o){if(!(o&&!w(o.currentTarget,b(o.nativeEvent)))&&o&&o.button===0&&!i.isTriggeringEvent&&!M.isOpening){let p=!0;if(d&&o.preventDefault(),!i.ignoreEmulatedMouseEvents&&!i.isPressed&&(i.pointerType==="virtual"||Se(o.nativeEvent))){let s=D(o,"virtual"),g=R(o,"virtual"),y=I(o,"virtual");Q(o),p=s&&g&&y}else if(i.isPressed&&i.pointerType!=="keyboard"){let s=i.pointerType||o.nativeEvent.pointerType||"virtual",g=R(K(o.currentTarget,o),s),y=I(K(o.currentTarget,o),s,!0);p=g&&y,i.isOverTarget=!1,Q(o),k(o)}i.ignoreEmulatedMouseEvents=!1,p&&o.stopPropagation()}}},m=o=>{var g;if(i.isPressed&&i.target&&pe(o,i.target)){var p;De(b(o),o.key)&&o.preventDefault();let y=b(o),G=w(i.target,b(o));I(K(i.target,o),"keyboard",G),G&&ye(o,i.target),J(),o.key!=="Enter"&&fe(i.target)&&w(i.target,y)&&!o[Fe]&&(o[Fe]=!0,M(i.target,o,!1)),i.isPressed=!1,(p=i.metaKeyEvents)==null||p.delete(o.key)}else if(o.key==="Meta"&&((g=i.metaKeyEvents)!=null&&g.size)){var s;let y=i.metaKeyEvents;i.metaKeyEvents=void 0;for(let G of y.values())(s=i.target)==null||s.dispatchEvent(new KeyboardEvent("keyup",G))}};if(typeof PointerEvent<"u"){c.onPointerDown=s=>{if(s.button!==0||!w(s.currentTarget,b(s.nativeEvent)))return;if(ke(s.nativeEvent)){i.pointerType="virtual";return}i.pointerType=s.pointerType;let g=!0;if(!i.isPressed){i.isPressed=!0,i.isOverTarget=!0,i.activePointerId=s.pointerId,i.target=s.currentTarget,H||wt(i.target),g=D(s,i.pointerType);let y=b(s.nativeEvent);"releasePointerCapture"in y&&y.releasePointerCapture(s.pointerId),N(L(s.currentTarget),"pointerup",o,!1),N(L(s.currentTarget),"pointercancel",p,!1)}g&&s.stopPropagation()},c.onMouseDown=s=>{if(w(s.currentTarget,b(s.nativeEvent))&&s.button===0){if(E){let g=Tt(s.target);g&&i.disposables.push(g)}s.stopPropagation()}},c.onPointerUp=s=>{!w(s.currentTarget,b(s.nativeEvent))||i.pointerType==="virtual"||s.button===0&&!i.isPressed&&R(s,i.pointerType||s.pointerType)},c.onPointerEnter=s=>{s.pointerId===i.activePointerId&&i.target&&!i.isOverTarget&&i.pointerType!=null&&(i.isOverTarget=!0,D(K(i.target,s),i.pointerType))},c.onPointerLeave=s=>{s.pointerId===i.activePointerId&&i.target&&i.isOverTarget&&i.pointerType!=null&&(i.isOverTarget=!1,I(K(i.target,s),i.pointerType,!1),ve(s))};let o=s=>{if(s.pointerId===i.activePointerId&&i.isPressed&&s.button===0&&i.target){if(w(i.target,b(s))&&i.pointerType!=null){let g=!1,y=setTimeout(()=>{i.isPressed&&i.target instanceof HTMLElement&&(g?k(s):(z(i.target),i.target.click()))},80);N(s.currentTarget,"click",()=>g=!0,!0),i.disposables.push(()=>clearTimeout(y))}else k(s);i.isOverTarget=!1}},p=s=>{k(s)};c.onDragStart=s=>{w(s.currentTarget,b(s.nativeEvent))&&k(s)}}return c},[N,d,E,J,H,k,ve,I,D,R,Q,ye]);return(0,f.useEffect)(()=>{if(!$)return;let i=L($.current);if(!i||!i.head||i.getElementById(He))return;let c=i.createElement("style");c.id=He,c.textContent=` +@layer { + [${Ne}] { + touch-action: pan-x pan-y pinch-zoom; + } +} + `.trim(),i.head.prepend(c)},[$]),(0,f.useEffect)(()=>{let i=C.current;return()=>{H||Ie(i.target??void 0);for(let c of i.disposables)c();i.disposables=[]}},[H]),{isPressed:v||je,pressProps:ee(Ue,ze,{[Ne]:!0})}}function fe(e){return e.tagName==="A"&&e.hasAttribute("href")}function pe(e,t){let{key:n,code:r}=e,a=t,l=a.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(a instanceof j(a).HTMLInputElement&&!Re(a,n)||a instanceof j(a).HTMLTextAreaElement||a.isContentEditable)&&!((l==="link"||!l&&fe(a))&&n!=="Enter")}function K(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Mt(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!fe(e)}function De(e,t){return e instanceof HTMLInputElement?!Re(e,t):Mt(e)}var Kt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Re(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Kt.has(e.type)}export{tt as A,x as C,z as D,_ as E,Z as F,Je as I,me as L,V as M,L as N,ee as O,j as P,T as R,ne as S,at as T,ie as _,Ce as a,he as b,Ae as c,Se as d,Le as f,M as g,dt as h,ht as i,b as j,w as k,Et as l,we as m,de as n,ue as o,Pe as p,le as r,Ke as s,At as t,ke as u,ct as v,re as w,be as x,Ee as y,A as z}; diff --git a/docs/assets/useRunCells-DNnhJ0Gs.js b/docs/assets/useRunCells-DNnhJ0Gs.js new file mode 100644 index 0000000..b5629e2 --- /dev/null +++ b/docs/assets/useRunCells-DNnhJ0Gs.js @@ -0,0 +1 @@ +import{d as b,n as i,p as g}from"./useEvent-DlWF5OMa.js";import{Sn as k,br as v,it as y,m as p,w as F,wr as x}from"./cells-CmJW_FeD.js";import{t as D}from"./compiler-runtime-DeeZ7FnK.js";import{d as H}from"./hotkeys-uKX61F1_.js";import{o as S}from"./dist-DKNOF5xd.js";import{r as V}from"./requests-C0HaHO6a.js";var u=D();const w=g(!1);function _(){let r=(0,u.c)(2),n=d(),t;return r[0]===n?t=r[1]:(t=()=>n(x(p())),r[0]=n,r[1]=t),i(t)}function j(r){let n=(0,u.c)(3),t=d(),e;return n[0]!==r||n[1]!==t?(e=()=>{r!==void 0&&t([r])},n[0]=r,n[1]=t,n[2]=e):e=n[2],i(e)}function q(){let r=(0,u.c)(2),n=d(),t;return r[0]===n?t=r[1]:(t=()=>n(v(p())),r[0]=n,r[1]=t),i(t)}function d(){let r=(0,u.c)(4),{prepareForRun:n}=F(),{sendRun:t}=V(),e=b(w),o;return r[0]!==n||r[1]!==t||r[2]!==e?(o=async s=>{if(s.length===0)return;let c=p();return e(!0),I({cellIds:s,sendRun:t,prepareForRun:n,notebook:c})},r[0]=n,r[1]=t,r[2]=e,r[3]=o):o=r[3],i(o)}async function I({cellIds:r,sendRun:n,prepareForRun:t,notebook:e}){var m,R,h;if(r.length===0)return;let{cellHandles:o,cellData:s}=e,c=[];for(let a of r){let l=(R=(m=o[a])==null?void 0:m.current)==null?void 0:R.editorView,f;l?(k(l)!=="markdown"&&S(l),f=y(l)):f=((h=s[a])==null?void 0:h.code)||"",c.push(f),t({cellId:a})}await n({cellIds:r,codes:c}).catch(a=>{H.error(a)})}export{d as a,j as i,I as n,_ as o,q as r,w as t}; diff --git a/docs/assets/useSplitCell-Dfn0Ozrw.js b/docs/assets/useSplitCell-Dfn0Ozrw.js new file mode 100644 index 0000000..8671699 --- /dev/null +++ b/docs/assets/useSplitCell-Dfn0Ozrw.js @@ -0,0 +1 @@ +import{s as n}from"./chunk-LvLJmgfZ.js";import{n as p}from"./useEvent-DlWF5OMa.js";import{f as d,it as f,w as u}from"./cells-CmJW_FeD.js";import{t as c}from"./compiler-runtime-DeeZ7FnK.js";import{t as C}from"./jsx-runtime-DN_bIXfG.js";import{t as h}from"./use-toast-Bzf3rpev.js";import{r as v}from"./useDeleteCell-D-55qWAK.js";var x=c(),b=n(C(),1);function j(){let t=(0,x.c)(3),{splitCell:o,undoSplitCell:r}=u(),i;return t[0]!==o||t[1]!==r?(i=s=>{let l=d(s.cellId);if(!l)return;let a=f(l);o(s);let{dismiss:e}=h({title:"Cell split",action:(0,b.jsx)(v,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{r({...s,snapshot:a}),m()},children:"Undo"})}),m=e},t[0]=o,t[1]=r,t[2]=i):i=t[2],p(i)}export{j as t}; diff --git a/docs/assets/useTheme-BSVRc0kJ.js b/docs/assets/useTheme-BSVRc0kJ.js new file mode 100644 index 0000000..b574cd2 --- /dev/null +++ b/docs/assets/useTheme-BSVRc0kJ.js @@ -0,0 +1 @@ +import{i as o,p as d,u as h}from"./useEvent-DlWF5OMa.js";import{t as f}from"./compiler-runtime-DeeZ7FnK.js";import{_ as k,t as y}from"./utils-Czt8B2GX.js";var b=f();const g=["light","dark","system"];var p=d(t=>{if(y()){if(document.body.classList.contains("dark-mode")||document.body.classList.contains("dark")||document.body.dataset.theme==="dark"||document.body.dataset.mode==="dark"||s()==="dark")return"dark";let e=window.getComputedStyle(document.body),r=e.getPropertyValue("color-scheme").trim();if(r)return r.includes("dark")?"dark":"light";let a=e.getPropertyValue("background-color").match(/\d+/g);if(a){let[m,u,l]=a.map(Number);return(m*299+u*587+l*114)/1e3<128?"dark":"light"}return"light"}return t(k).display.theme}),n=d(!1);function v(){if(typeof window>"u"||!window.matchMedia)return;let t=window.matchMedia("(prefers-color-scheme: dark)");o.set(n,t.matches),t.addEventListener("change",e=>{o.set(n,e.matches)})}v();function s(){switch(document.body.dataset.vscodeThemeKind){case"vscode-dark":return"dark";case"vscode-high-contrast":return"dark";case"vscode-light":return"light"}}var i=d(s());function w(){let t=new MutationObserver(()=>{let e=s();o.set(i,e)});return t.observe(document.body,{attributes:!0,attributeFilter:["data-vscode-theme-kind"]}),()=>t.disconnect()}w();const c=d(t=>{let e=t(p),r=t(i);if(r!==void 0)return r;let a=t(n);return e==="system"?a?"dark":"light":e});function L(){let t=(0,b.c)(3),e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={store:o},t[0]=e):e=t[0];let r=h(c,e),a;return t[1]===r?a=t[2]:(a={theme:r},t[1]=r,t[2]=a),a}export{c as n,L as r,g as t}; diff --git a/docs/assets/utilities.esm-CqQATX3k.js b/docs/assets/utilities.esm-CqQATX3k.js new file mode 100644 index 0000000..2ea9b29 --- /dev/null +++ b/docs/assets/utilities.esm-CqQATX3k.js @@ -0,0 +1,3 @@ +var it=Object.defineProperty;var ot=(t,e,n)=>e in t?it(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var a=(t,e,n)=>ot(t,typeof e!="symbol"?e+"":e,n);var M;import{s as ce}from"./chunk-LvLJmgfZ.js";import{i as Q,l as D,o as lt,p as q,u as ut}from"./useEvent-DlWF5OMa.js";import{t as ct}from"./react-BGmjiNul.js";import{Wr as dt,Xr as ft,b as mt,ni as z,ti as pt,y as ht}from"./cells-CmJW_FeD.js";import{B as gt,C as de,D as yt,I as bt,N as wt,P as O,R as fe,k as W,w as me}from"./zod-Cg4WLWh2.js";import{t as pe}from"./compiler-runtime-DeeZ7FnK.js";import{t as vt}from"./get-CyLJYAfP.js";import{r as xt}from"./useLifecycle-CmDXEyIC.js";import{t as Et}from"./debounce-BbFlGgjv.js";import{t as _t}from"./_baseSet-6FYvpjrm.js";import{d as E,p as y}from"./hotkeys-uKX61F1_.js";import{t as Ct}from"./invariant-C6yE60hi.js";import{S as kt}from"./utils-Czt8B2GX.js";import{j as Ft}from"./config-CENq_7Pd.js";import{a as Rt}from"./switch-C5jvDmuG.js";import{n as he}from"./globals-DPW2B3A9.js";import{t as ge}from"./ErrorBoundary-C7JBxSzd.js";import{t as Nt}from"./jsx-runtime-DN_bIXfG.js";import{t as St}from"./button-B8cGZzP5.js";import{t as qt}from"./cn-C1rgT0yh.js";import{Z as Pt}from"./JsonOutput-DlwRx3jE.js";import{t as jt}from"./createReducer-DDa-hVe3.js";import{t as ye}from"./requests-C0HaHO6a.js";import{t as be}from"./createLucideIcon-CW2xpJ57.js";import{h as Mt}from"./select-D9lTzMzP.js";import{a as At,l as Tt,r as It}from"./markdown-renderer-DjqhqmES.js";import{t as Lt}from"./DeferredRequestRegistry-B3BENoUa.js";import{t as K}from"./Deferred-DzyBMRsy.js";import{t as we}from"./uuid-ClFZlR7U.js";import{t as Ut}from"./use-toast-Bzf3rpev.js";import{t as ve}from"./tooltip-CvjcEpZC.js";import{t as xe}from"./mode-CXc0VeQq.js";import{n as zt,r as Ot,t as Wt}from"./share-CXQVxivL.js";import{r as Dt,t as Ht}from"./react-resizable-panels.browser.esm-B7ZqbY8M.js";import{t as Ee}from"./toggle-D-5M3JI_.js";function Bt(t,e,n){return t==null?t:_t(t,e,n)}var H=Bt,Vt=be("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]),Xt=be("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);function $t(t){return{all:t||(t=new Map),on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(s){s(n)}),(r=t.get("*"))&&r.slice().map(function(s){s(e,n)})}}}var u=ce(ct(),1),Z=(0,u.createContext)(null),Yt=t=>{let{controller:e}=(0,u.useContext)(Z),n=u.useRef(Symbol("fill"));return(0,u.useEffect)(()=>(e.mount({name:t.name,ref:n.current,children:t.children}),()=>{e.unmount({name:t.name,ref:n.current})}),[]),(0,u.useEffect)(()=>{e.update({name:t.name,ref:n.current,children:t.children})}),null},Gt=Object.defineProperty,Qt=(t,e,n)=>e in t?Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_e=(t,e,n)=>(Qt(t,typeof e=="symbol"?e:e+"",n),n),Ce=console,Kt=class{constructor(t){_e(this,"_bus"),_e(this,"_db"),this._bus=t,this.handleFillMount=this.handleFillMount.bind(this),this.handleFillUpdated=this.handleFillUpdated.bind(this),this.handleFillUnmount=this.handleFillUnmount.bind(this),this._db={byName:new Map,byFill:new Map}}mount(){this._bus.on("fill-mount",this.handleFillMount),this._bus.on("fill-updated",this.handleFillUpdated),this._bus.on("fill-unmount",this.handleFillUnmount)}unmount(){this._bus.off("fill-mount",this.handleFillMount),this._bus.off("fill-updated",this.handleFillUpdated),this._bus.off("fill-unmount",this.handleFillUnmount)}handleFillMount({fill:t}){let e=u.Children.toArray(t.children),n=t.name,r={fill:t,children:e,name:n},s=this._db.byName.get(n);s?(s.components.push(r),s.listeners.forEach(i=>i([...s.components]))):this._db.byName.set(n,{listeners:[],components:[r]}),this._db.byFill.set(t.ref,r)}handleFillUpdated({fill:t}){let e=this._db.byFill.get(t.ref),n=u.Children.toArray(t.children);if(e){e.children=n;let r=this._db.byName.get(e.name);if(r)r.listeners.forEach(s=>s([...r.components]));else throw Error("registration was expected to be defined")}else{Ce.error("[handleFillUpdated] component was expected to be defined");return}}handleFillUnmount({fill:t}){let e=this._db.byFill.get(t.ref);if(!e){Ce.error("[handleFillUnmount] component was expected to be defined");return}let n=e.name,r=this._db.byName.get(n);if(!r)throw Error("registration was expected to be defined");r.components=r.components.filter(s=>s!==e),this._db.byFill.delete(t.ref),r.listeners.length===0&&r.components.length===0?this._db.byName.delete(n):r.listeners.forEach(s=>s([...r.components]))}onComponentsChange(t,e){let n=this._db.byName.get(t);n?(n.listeners.push(e),e(n.components)):(this._db.byName.set(t,{listeners:[e],components:[]}),e([]))}getFillsByName(t){let e=this._db.byName.get(t);return e?e.components.map(n=>n.fill):[]}getChildrenByName(t){let e=this._db.byName.get(t);return e?e.components.map(n=>n.children).reduce((n,r)=>n.concat(r),[]):[]}removeOnComponentsChange(t,e){let n=this._db.byName.get(t);if(!n)throw Error("expected registration to be defined");let r=n.listeners;r.splice(r.indexOf(e),1)}},Zt=Object.defineProperty,Jt=(t,e,n)=>e in t?Zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,en=(t,e,n)=>(Jt(t,typeof e=="symbol"?e:e+"",n),n),ke=class{constructor(){en(this,"bus",$t())}mount(t){this.bus.emit("fill-mount",{fill:t})}unmount(t){this.bus.emit("fill-unmount",{fill:t})}update(t){this.bus.emit("fill-updated",{fill:t})}};function tn(t){let e=t||new ke;return{controller:e,manager:new Kt(e.bus)}}var nn=({controller:t,children:e})=>{let[n]=u.useState(()=>{let r=tn(t);return r.manager.mount(),r});return u.useEffect(()=>()=>{n.manager.unmount()},[]),u.createElement(Z.Provider,{value:n},e)};function J(t,e){let[n,r]=(0,u.useState)([]),{manager:s}=(0,u.useContext)(Z);return(0,u.useEffect)(()=>(s.onComponentsChange(t,r),()=>{s.removeOnComponentsChange(t,r)}),[t]),n.flatMap((i,d)=>{let{children:l}=i;return l.map((p,b)=>{if(typeof p=="number"||typeof p=="string")throw Error("Only element children will work here");return u.cloneElement(p,{key:d.toString()+b.toString(),...e})})})}var Fe=t=>{let e=J(t.name,t.childProps);if(typeof t.children=="function"){let n=t.children(e);if(u.isValidElement(n)||n===null)return n;throw Error("Slot rendered with function must return a valid React Element.")}return e};const rn=q(null);var{valueAtom:sn,useActions:an}=jt(()=>({banners:[]}),{addBanner:(t,e)=>({...t,banners:[...t.banners,{...e,id:we()}]}),removeBanner:(t,e)=>({...t,banners:t.banners.filter(n=>n.id!==e)}),clearBanners:t=>({...t,banners:[]})});const on=()=>ut(sn);function ln(){return an()}const un=new ke,B={SIDEBAR:"sidebar",CONTEXT_AWARE_PANEL:"context-aware-panel"};var cn=class{constructor(){a(this,"subscriptions",new Map)}addSubscription(t,e){var n;this.subscriptions.has(t)||this.subscriptions.set(t,new Set),(n=this.subscriptions.get(t))==null||n.add(e)}removeSubscription(t,e){var n;(n=this.subscriptions.get(t))==null||n.delete(e)}notify(t,e){for(let n of this.subscriptions.get(t)??[])n(e)}},Re=class ue{constructor(e){a(this,"subscriptions",new cn);this.producer=e}static withProducerCallback(e){return new ue(e)}static empty(){return new ue}startProducer(){this.producer&&this.producer(e=>{this.subscriptions.notify("message",e)})}connect(){return new Promise(e=>setTimeout(e,0)).then(()=>{this.subscriptions.notify("open",new Event("open"))})}get readyState(){return WebSocket.OPEN}reconnect(e,n){this.close(),this.connect()}close(){this.subscriptions.notify("close",new Event("close"))}send(e){return this.subscriptions.notify("message",new MessageEvent("message",{data:e})),Promise.resolve()}addEventListener(e,n){this.subscriptions.addSubscription(e,n),e==="open"&&n(new Event("open")),e==="message"&&this.startProducer()}removeEventListener(e,n){this.subscriptions.removeSubscription(e,n)}},dn=1e10,fn=1e3;function V(t,e){let n=t.map(r=>`"${r}"`).join(", ");return Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${n}`)}function mn(t={}){let e={};function n(o){e=o}let r={};function s(o){var f;r.unregisterHandler&&r.unregisterHandler(),r=o,(f=r.registerHandler)==null||f.call(r,U)}let i;function d(o){if(typeof o=="function"){i=o;return}i=(f,g)=>{let c=o[f];if(c)return c(g);let h=o._;if(!h)throw Error(`The requested method has no handler: ${f}`);return h(f,g)}}let{maxRequestTime:l=fn}=t;t.transport&&s(t.transport),t.requestHandler&&d(t.requestHandler),t._debugHooks&&n(t._debugHooks);let p=0;function b(){return p<=dn?++p:p=0}let x=new Map,w=new Map;function _(o,...f){let g=f[0];return new Promise((c,h)=>{var T;if(!r.send)throw V(["send"],"make requests");let S=b(),j={type:"request",id:S,method:o,params:g};x.set(S,{resolve:c,reject:h}),l!==1/0&&w.set(S,setTimeout(()=>{w.delete(S),h(Error("RPC request timed out."))},l)),(T=e.onSend)==null||T.call(e,j),r.send(j)})}let R=new Proxy(_,{get:(o,f,g)=>f in o?Reflect.get(o,f,g):c=>_(f,c)}),C=R;function k(o,...f){var h;let g=f[0];if(!r.send)throw V(["send"],"send messages");let c={type:"message",id:o,payload:g};(h=e.onSend)==null||h.call(e,c),r.send(c)}let F=new Proxy(k,{get:(o,f,g)=>f in o?Reflect.get(o,f,g):c=>k(f,c)}),v=F,N=new Map,P=new Set;function A(o,f){var g;if(!r.registerHandler)throw V(["registerHandler"],"register message listeners");if(o==="*"){P.add(f);return}N.has(o)||N.set(o,new Set),(g=N.get(o))==null||g.add(f)}function L(o,f){var g,c;if(o==="*"){P.delete(f);return}(g=N.get(o))==null||g.delete(f),((c=N.get(o))==null?void 0:c.size)===0&&N.delete(o)}async function U(o){var f,g;if((f=e.onReceive)==null||f.call(e,o),!("type"in o))throw Error("Message does not contain a type.");if(o.type==="request"){if(!r.send||!i)throw V(["send","requestHandler"],"handle requests");let{id:c,method:h,params:S}=o,j;try{j={type:"response",id:c,success:!0,payload:await i(h,S)}}catch(T){if(!(T instanceof Error))throw T;j={type:"response",id:c,success:!1,error:T.message}}(g=e.onSend)==null||g.call(e,j),r.send(j);return}if(o.type==="response"){let c=w.get(o.id);c!=null&&clearTimeout(c);let{resolve:h,reject:S}=x.get(o.id)??{};o.success?h==null||h(o.payload):S==null||S(Error(o.error));return}if(o.type==="message"){for(let h of P)h(o.id,o.payload);let c=N.get(o.id);if(!c)return;for(let h of c)h(o.payload);return}throw Error(`Unexpected RPC message type: ${o.type}`)}return{setTransport:s,setRequestHandler:d,request:R,requestProxy:C,send:F,sendProxy:v,addMessageListener:A,removeMessageListener:L,proxy:{send:v,request:C},_setDebugHooks:n}}function pn(t){return mn(t)}var Ne="[transport-id]";function hn(t,e){let{transportId:n}=e;return n==null?t:{[Ne]:n,data:t}}function gn(t,e){let{transportId:n,filter:r}=e,s=r==null?void 0:r();if(n!=null&&s!=null)throw Error("Cannot use both `transportId` and `filter` at the same time");let i=t;if(n){if(t[Ne]!==n)return[!0];i=t.data}return s===!1?[!0]:[!1,i]}function yn(t,e={}){let{transportId:n,filter:r,remotePort:s}=e,i=t,d=s??t,l;return{send(p){d.postMessage(hn(p,{transportId:n}))},registerHandler(p){l=b=>{let x=b.data,[w,_]=gn(x,{transportId:n,filter:()=>r==null?void 0:r(b)});w||p(_)},i.addEventListener("message",l)},unregisterHandler(){l&&i.removeEventListener("message",l)}}}function bn(t,e){return yn(t,e)}function Se(t){return pn({transport:bn(t,{transportId:"marimo-transport"}),maxRequestTime:2e4,_debugHooks:{onSend:e=>{E.debug("[rpc] Parent -> Worker",e)},onReceive:e=>{E.debug("[rpc] Worker -> Parent",e)}}})}const qe=q("Initializing..."),wn=q(t=>{let e=t(ht),n=Object.values(e.cellRuntime);return n.some(r=>!Tt(r.output))?!0:n.every(r=>r.status==="idle")});var Pe=zt(),je="marimo:file",Me=new dt(null);const vn={saveFile(t){Me.set(je,t)},readFile(){return Me.get(je)}};var xn={saveFile(t){z.setCodeForHash((0,Pe.compressToEncodedURIComponent)(t))},readFile(){let t=z.getCodeFromHash()||z.getCodeFromSearchParam();return t?(0,Pe.decompressFromEncodedURIComponent)(t):null}};const En={saveFile(t){},readFile(){let t=document.querySelector("marimo-code");return t?decodeURIComponent(t.textContent||"").trim():null}};var _n={saveFile(t){},readFile(){if(window.location.hostname!=="marimo.app")return null;let t=new URL("files/wasm-intro.py",document.baseURI);return fetch(t.toString()).then(e=>e.ok?e.text():null).catch(()=>null)}},Cn={saveFile(t){},readFile(){return["import marimo","app = marimo.App()","","@app.cell","def __():"," return","",'if __name__ == "__main__":'," app.run()"].join(` +`)}},Ae=class{constructor(t){this.stores=t}insert(t,e){this.stores.splice(t,0,e)}saveFile(t){this.stores.forEach(e=>e.saveFile(t))}readFile(){for(let t of this.stores){let e=t.readFile();if(e)return e}return null}};const X=new Ae([En,xn]),ee=new Ae([vn,_n,Cn]);var Te=class st{constructor(){a(this,"initialized",new K);a(this,"sendRename",async({filename:e})=>(e===null||(z.setFilename(e),await this.rpc.proxy.request.bridge({functionName:"rename_file",payload:e})),null));a(this,"sendSave",async e=>{if(!this.saveRpc)return E.warn("Save RPC not initialized"),null;await this.saveRpc.saveNotebook(e);let n=await this.readCode();return n.contents&&(X.saveFile(n.contents),ee.saveFile(n.contents)),this.rpc.proxy.request.saveNotebook(e).catch(r=>{E.error(r)}),null});a(this,"sendCopy",async()=>{y()});a(this,"sendStdin",async e=>(await this.rpc.proxy.request.bridge({functionName:"put_input",payload:e.text}),null));a(this,"sendPdb",async()=>{y()});a(this,"sendRun",async e=>(await this.rpc.proxy.request.loadPackages(e.codes.join(` +`)),await this.putControlRequest({type:"execute-cells",...e}),null));a(this,"sendRunScratchpad",async e=>(await this.rpc.proxy.request.loadPackages(e.code),await this.putControlRequest({type:"execute-scratchpad",...e}),null));a(this,"sendInterrupt",async()=>(this.interruptBuffer!==void 0&&(this.interruptBuffer[0]=2),null));a(this,"sendShutdown",async()=>(window.close(),null));a(this,"sendFormat",async e=>await this.rpc.proxy.request.bridge({functionName:"format",payload:e}));a(this,"sendDeleteCell",async e=>(await this.putControlRequest({type:"delete-cell",...e}),null));a(this,"sendInstallMissingPackages",async e=>(this.putControlRequest({type:"install-packages",...e}),null));a(this,"sendCodeCompletionRequest",async e=>(Q.get(mt)||await this.rpc.proxy.request.bridge({functionName:"code_complete",payload:e}),null));a(this,"saveUserConfig",async e=>(await this.rpc.proxy.request.bridge({functionName:"save_user_config",payload:e}),Rt.post("/kernel/save_user_config",e,{baseUrl:"/"}).catch(n=>(E.error(n),null))));a(this,"saveAppConfig",async e=>(await this.rpc.proxy.request.bridge({functionName:"save_app_config",payload:e}),null));a(this,"saveCellConfig",async e=>(await this.putControlRequest({type:"update-cell-config",...e}),null));a(this,"sendRestart",async()=>{let e=await this.readCode();return e.contents&&(X.saveFile(e.contents),ee.saveFile(e.contents)),Ot(),null});a(this,"readCode",async()=>this.saveRpc?{contents:await this.saveRpc.readNotebook()}:(E.warn("Save RPC not initialized"),{contents:""}));a(this,"readSnippets",async()=>await this.rpc.proxy.request.bridge({functionName:"read_snippets",payload:void 0}));a(this,"openFile",async({path:e})=>{let n=Wt({code:null,baseUrl:window.location.origin});return window.open(n,"_blank"),null});a(this,"sendListFiles",async e=>await this.rpc.proxy.request.bridge({functionName:"list_files",payload:e}));a(this,"sendSearchFiles",async e=>await this.rpc.proxy.request.bridge({functionName:"search_files",payload:e}));a(this,"sendComponentValues",async e=>(await this.putControlRequest({type:"update-ui-element",...e,token:we()}),null));a(this,"sendInstantiate",async e=>null);a(this,"sendFunctionRequest",async e=>(await this.putControlRequest({type:"invoke-function",...e}),null));a(this,"sendCreateFileOrFolder",async e=>await this.rpc.proxy.request.bridge({functionName:"create_file_or_directory",payload:e}));a(this,"sendDeleteFileOrFolder",async e=>await this.rpc.proxy.request.bridge({functionName:"delete_file_or_directory",payload:e}));a(this,"sendRenameFileOrFolder",async e=>await this.rpc.proxy.request.bridge({functionName:"move_file_or_directory",payload:e}));a(this,"sendUpdateFile",async e=>await this.rpc.proxy.request.bridge({functionName:"update_file",payload:e}));a(this,"sendFileDetails",async e=>await this.rpc.proxy.request.bridge({functionName:"file_details",payload:e}));a(this,"exportAsHTML",async e=>await this.rpc.proxy.request.bridge({functionName:"export_html",payload:e}));a(this,"exportAsMarkdown",async e=>await this.rpc.proxy.request.bridge({functionName:"export_markdown",payload:e}));a(this,"previewDatasetColumn",async e=>(await this.putControlRequest({type:"preview-dataset-column",...e}),null));a(this,"previewSQLTable",async e=>(await this.putControlRequest({type:"preview-sql-table",...e}),null));a(this,"previewSQLTableList",async e=>(await this.putControlRequest({type:"list-sql-tables",...e}),null));a(this,"previewDataSourceConnection",async e=>(await this.putControlRequest({type:"list-data-source-connection",...e}),null));a(this,"validateSQL",async e=>(await this.putControlRequest({type:"validate-sql",...e}),null));a(this,"sendModelValue",async e=>(await this.putControlRequest({type:"update-widget-model",...e}),null));a(this,"syncCellIds",()=>Promise.resolve(null));a(this,"addPackage",async e=>this.rpc.proxy.request.addPackage(e));a(this,"removePackage",async e=>this.rpc.proxy.request.removePackage(e));a(this,"getPackageList",async()=>await this.rpc.proxy.request.listPackages());a(this,"getDependencyTree",async()=>({tree:{dependencies:[],name:"",tags:[],version:null}}));a(this,"listSecretKeys",async e=>(await this.putControlRequest({type:"list-secret-keys",...e}),null));a(this,"getUsageStats",y);a(this,"openTutorial",y);a(this,"getRecentFiles",y);a(this,"getWorkspaceFiles",y);a(this,"getRunningNotebooks",y);a(this,"shutdownSession",y);a(this,"exportAsPDF",y);a(this,"autoExportAsHTML",y);a(this,"autoExportAsMarkdown",y);a(this,"autoExportAsIPYNB",y);a(this,"updateCellOutputs",y);a(this,"writeSecret",y);a(this,"invokeAiTool",y);a(this,"clearCache",y);a(this,"getCacheInfo",y);Ft()&&(this.rpc=Se(new Worker(new URL(""+new URL("worker-CUL1lW-N.js",import.meta.url).href,""+import.meta.url),{type:"module",name:he()})),this.rpc.addMessageListener("ready",()=>{this.startSession()}),this.rpc.addMessageListener("initialized",()=>{this.saveRpc=this.getSaveWorker(),this.setInterruptBuffer(),this.initialized.resolve()}),this.rpc.addMessageListener("initializingMessage",({message:e})=>{Q.set(qe,e)}),this.rpc.addMessageListener("initializedError",({error:e})=>{this.initialized.status==="resolved"&&(E.error(e),Ut({title:"Error initializing",description:e,variant:"danger"})),this.initialized.reject(Error(e))}),this.rpc.addMessageListener("kernelMessage",({message:e})=>{var n;(n=this.messageConsumer)==null||n.call(this,new MessageEvent("message",{data:e}))}))}static get INSTANCE(){let e="_marimo_private_PyodideBridge";return window[e]||(window[e]=new st),window[e]}getSaveWorker(){return xe()==="read"?(E.debug("Skipping SaveWorker in read-mode"),{readFile:y,readNotebook:y,saveNotebook:y}):Se(new Worker(new URL(""+new URL("save-worker-DtF6B3PS.js",import.meta.url).href,""+import.meta.url),{type:"module",name:he()})).proxy.request}async startSession(){let e=await X.readFile(),n=await ee.readFile(),r=z.getFilename(),s=Q.get(kt),i={},d=new URLSearchParams(window.location.search);for(let l of d.keys()){let p=d.getAll(l);i[l]=p.length===1?p[0]:p}await this.rpc.proxy.request.startSession({queryParameters:i,code:e||n||"",filename:r,userConfig:{...s,runtime:{...s.runtime,auto_instantiate:xe()==="read"?!0:s.runtime.auto_instantiate}}})}setInterruptBuffer(){crossOriginIsolated?(this.interruptBuffer=new Uint8Array(new SharedArrayBuffer(1)),this.rpc.proxy.request.setInterruptBuffer(this.interruptBuffer)):E.warn("Not running in a secure context; interrupts are not available.")}attachMessageConsumer(e){this.messageConsumer=e,this.rpc.proxy.send.consumerReady({})}async putControlRequest(e){await this.rpc.proxy.request.bridge({functionName:"put_control_request",payload:e})}};function kn(){return Re.withProducerCallback(t=>{Te.INSTANCE.attachMessageConsumer(t)})}const Ie=q({isInstantiated:!1,error:null});function Fn(){return lt(Ie,t=>t.isInstantiated)}function $(t){return()=>({TYPE:t,is(e){return e.type===t},create(e){return new CustomEvent(t,e)}})}const Le=$("marimo-value-input")(),Ue=$("marimo-value-update")(),ze=$("marimo-value-ready")(),Oe=$("marimo-incoming-message")();function Rn(t,e){return Le.create({bubbles:!0,composed:!0,detail:{value:t,element:e}})}var We=class at{static get INSTANCE(){let e="_marimo_private_UIElementRegistry";return window[e]||(window[e]=new at),window[e]}constructor(){this.entries=new Map}has(e){return this.entries.has(e)}set(e,n){if(this.entries.has(e))throw Error(`UIElement ${e} already registered`);this.entries.set(e,{objectId:e,value:n,elements:new Set})}registerInstance(e,n){let r=this.entries.get(e);r===void 0?this.entries.set(e,{objectId:e,value:pt(n,this),elements:new Set([n])}):r.elements.add(n)}removeInstance(e,n){let r=this.entries.get(e);r!=null&&r.elements.has(n)&&r.elements.delete(n)}removeElementsByCell(e){[...this.entries.keys()].filter(n=>n.startsWith(`${e}-`)).forEach(n=>{this.entries.delete(n)})}lookupValue(e){let n=this.entries.get(e);return n===void 0?void 0:n.value}broadcastMessage(e,n,r){let s=this.entries.get(e);s===void 0?E.warn("UIElementRegistry missing entry",e):s.elements.forEach(i=>{i.dispatchEvent(Oe.create({bubbles:!1,composed:!0,detail:{objectId:e,message:n,buffers:r}}))})}broadcastValueUpdate(e,n,r){let s=this.entries.get(n);s===void 0?E.warn("UIElementRegistry missing entry",n):(s.value=r,s.elements.forEach(i=>{i!==e&&i.dispatchEvent(Ue.create({bubbles:!1,composed:!0,detail:{value:r,element:i}}))}),document.dispatchEvent(ze.create({bubbles:!0,composed:!0,detail:{objectId:n}})))}};const Nn=We.INSTANCE,Sn=new Lt("function-call-result",async(t,e)=>{await ye().sendFunctionRequest({functionCallId:t,...e})}),qn="68px";var Pn="288px";const jn=t=>t?/^\d+$/.test(t)?`${t}px`:t:Pn,Mn=ft({isOpen:!0},(t,e)=>{if(!e)return t;switch(e.type){case"toggle":return{...t,isOpen:e.isOpen??t.isOpen};case"setWidth":return{...t,width:e.width};default:return t}});function te(t,e=[]){let n=[];if(t instanceof DataView)n.push(e);else if(Array.isArray(t))for(let[r,s]of t.entries())n.push(...te(s,[...e,r]));else if(typeof t=="object"&&t)for(let[r,s]of Object.entries(t))n.push(...te(s,[...e,r]));return n}function ne(t){let e=te(t);if(e.length===0)return{state:t,buffers:[],bufferPaths:[]};let n=structuredClone(t),r=[],s=[];for(let i of e){let d=vt(t,i);if(d instanceof DataView){let l=At(d);r.push(l),s.push(i),H(n,i,l)}}return{state:n,buffers:r,bufferPaths:s}}function An(t){return typeof t=="object"&&!!t&&"state"in t&&"bufferPaths"in t&&"buffers"in t}function Y(t){let{state:e,bufferPaths:n,buffers:r}=t;if(!n||n.length===0)return e;r&&Ct(r.length===n.length,"Buffers and buffer paths not the same length");let s=structuredClone(e);for(let[i,d]of n.entries()){let l=r==null?void 0:r[i];if(l==null){E.warn("[anywidget] Could not find buffer at path",d);continue}typeof l=="string"?H(s,d,It(l)):H(s,d,l)}return s}const De=new class{constructor(t=1e4){a(this,"models",new Map);this.timeout=t}get(t){let e=this.models.get(t);return e||(e=new K,this.models.set(t,e),setTimeout(()=>{e.status==="pending"&&(e.reject(Error(`Model not found for key: ${t}`)),this.models.delete(t))},this.timeout)),e.promise}set(t,e){let n=this.models.get(t);n||(n=new K,this.models.set(t,n)),n.resolve(e)}delete(t){this.models.delete(t)}};var He=(M=class{constructor(e,n,r,s){a(this,"ANY_CHANGE_EVENT","change");a(this,"listeners",{});a(this,"widget_manager",{async get_model(e){let n=await M._modelManager.get(e);if(!n)throw Error(`Model not found with id: ${e}. This is likely because the model was not registered.`);return n}});a(this,"emitAnyChange",Et(()=>{var e;(e=this.listeners[this.ANY_CHANGE_EVENT])==null||e.forEach(n=>n())},0));this.data=e,this.onChange=n,this.sendToWidget=r,this.dirtyFields=new Map([...s].map(i=>[i,this.data[i]]))}off(e,n){var r;if(!e){this.listeners={};return}if(!n){this.listeners[e]=new Set;return}(r=this.listeners[e])==null||r.delete(n)}send(e,n,r){let{state:s,bufferPaths:i,buffers:d}=ne(e);this.sendToWidget({content:{state:s,bufferPaths:i},buffers:d}).then(n)}get(e){return this.data[e]}set(e,n){this.data={...this.data,[e]:n},this.dirtyFields.set(e,n),this.emit(`change:${e}`,n),this.emitAnyChange()}save_changes(){if(this.dirtyFields.size===0)return;let e=Object.fromEntries(this.dirtyFields.entries());this.dirtyFields.clear(),this.onChange(e)}updateAndEmitDiffs(e){e!=null&&Object.keys(e).forEach(n=>{let r=n;this.data[r]!==e[r]&&this.set(r,e[r])})}receiveCustomMessage(e,n=[]){var s;let r=Be.safeParse(e);if(r.success){let i=r.data;switch(i.method){case"update":this.updateAndEmitDiffs(Y({state:i.state,bufferPaths:i.buffer_paths??[],buffers:n}));break;case"custom":(s=this.listeners["msg:custom"])==null||s.forEach(d=>d(i.content,n));break;case"open":this.updateAndEmitDiffs(Y({state:i.state,bufferPaths:i.buffer_paths??[],buffers:n}));break;case"echo_update":break;default:E.error("[anywidget] Unknown message method",i.method);break}}else E.error("Failed to parse message",r.error),E.error("Message",e)}on(e,n){this.listeners[e]||(this.listeners[e]=new Set),this.listeners[e].add(n)}emit(e,n){this.listeners[e]&&this.listeners[e].forEach(r=>r(n))}},a(M,"_modelManager",De),M),re=me(me(gt([fe(),wt()]))),se=bt(fe(),de()),Be=yt("method",[O({method:W("open"),state:se,buffer_paths:re.optional()}),O({method:W("update"),state:se,buffer_paths:re.optional()}),O({method:W("custom"),content:de()}),O({method:W("echo_update"),buffer_paths:re,state:se}),O({method:W("close")})]);function Tn(t){return t==null?!1:Be.safeParse(t).success}async function In({modelId:t,msg:e,buffers:n,modelManager:r}){if(e.method==="echo_update")return;if(e.method==="custom"){(await r.get(t)).receiveCustomMessage(e,n);return}if(e.method==="close"){r.delete(t);return}let{method:s,state:i,buffer_paths:d=[]}=e,l=Y({state:i,bufferPaths:d,buffers:n});if(s==="open"){let p=new He(l,b=>{let{state:x,buffers:w,bufferPaths:_}=ne(b);ye().sendModelValue({modelId:t,message:{state:x,bufferPaths:_},buffers:w})},y,new Set);r.set(t,p);return}if(s==="update"){(await r.get(t)).updateAndEmitDiffs(l);return}xt(s)}const Ve=q(null),Ln=q(null),Xe=q(!1),Un=q(!1),$e=q(!1);var zn=pe();const Ye=t=>{let e=(0,zn.c)(8),{onResize:n,startingWidth:r,minWidth:s,maxWidth:i}=t,d=(0,u.useRef)(null),l=(0,u.useRef)(null),p=(0,u.useRef)(null),b,x;e[0]!==i||e[1]!==s||e[2]!==n?(b=()=>{let C=d.current,k=l.current,F=p.current;if(!C||!k&&!F)return;let v=Number.parseInt(window.getComputedStyle(C).width,10),N=0,P=!1,A=null,L=c=>{if(!C||!P||!A)return;let h=c.clientX-N;N=c.clientX,v=A==="left"?v-h:v+h,s&&(v=Math.max(s,v)),i&&(v=Math.min(i,v)),C.style.width=`${v}px`},U=()=>{P&&(n==null||n(v),P=!1,A=null),document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",U)},o=(c,h)=>{c.preventDefault(),P=!0,A=h,N=c.clientX,document.addEventListener("mousemove",L),document.addEventListener("mouseup",U)},f=c=>o(c,"left"),g=c=>o(c,"right");return k&&k.addEventListener("mousedown",f),F&&F.addEventListener("mousedown",g),()=>{k&&k.removeEventListener("mousedown",f),F&&F.removeEventListener("mousedown",g),document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",U)}},x=[s,i,n],e[0]=i,e[1]=s,e[2]=n,e[3]=b,e[4]=x):(b=e[3],x=e[4]),(0,u.useEffect)(b,x);let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w={left:l,right:p},e[5]=w):w=e[5];let _=r==="contentWidth"?"var(--content-width-medium)":`${r}px`,R;return e[6]===_?R=e[7]:(R={resizableDivRef:d,handleRefs:w,style:{width:_}},e[6]=_,e[7]=R),R};function Ge(t){t||window.dispatchEvent(new Event("resize"))}var Qe=pe(),m=ce(Nt(),1);const On=()=>{let t=(0,Qe.c)(16),[e,n]=D(Ve),[r,s]=D(Xe),[i,d]=D(Un),[l,p]=D($e),b;t[0]!==s||t[1]!==n?(b=()=>{n(null),s(!1)},t[0]=s,t[1]=n,t[2]=b):b=t[2];let x=b;if(J(B.CONTEXT_AWARE_PANEL).length===0||!e||!r)return null;let w;t[3]!==l||t[4]!==i||t[5]!==p||t[6]!==d?(w=()=>(0,m.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,m.jsx)(ve,{content:i?"Unpin panel":"Pin panel",children:(0,m.jsx)(Ee,{size:"xs",onPressedChange:()=>d(!i),pressed:i,"aria-label":i?"Unpin panel":"Pin panel",children:i?(0,m.jsx)(Xt,{className:"w-4 h-4"}):(0,m.jsx)(Pt,{className:"w-4 h-4"})})}),(0,m.jsx)(ve,{content:l?(0,m.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,m.jsx)("span",{children:"Follow focused table"}),(0,m.jsx)("span",{className:"text-xs text-muted-foreground w-64",children:"The panel updates as cells that output tables are focused. Click to fix to the current cell."})]}):(0,m.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,m.jsx)("span",{children:"Focus on current table"}),(0,m.jsx)("span",{className:"text-xs text-muted-foreground w-64",children:"The panel is focused on the current table. Click to update based on which cell is focused."})]}),children:(0,m.jsx)(Ee,{size:"xs",onPressedChange:()=>p(!l),pressed:l,"aria-label":l?"Follow focused cell":"Fixed",children:(0,m.jsx)(Vt,{className:qt("w-4 h-4",l&&"text-primary")})})})]}),t[3]=l,t[4]=i,t[5]=p,t[6]=d,t[7]=w):w=t[7];let _=w,R;t[8]!==x||t[9]!==_?(R=()=>(0,m.jsxs)("div",{className:"mt-2 pb-7 mb-4 h-full overflow-auto",children:[(0,m.jsxs)("div",{className:"flex flex-row justify-between items-center mx-2",children:[_(),(0,m.jsx)(St,{variant:"linkDestructive",size:"icon",onClick:x,"aria-label":"Close selection panel",children:(0,m.jsx)(Mt,{className:"w-4 h-4"})})]}),(0,m.jsx)(ge,{children:(0,m.jsx)(Fe,{name:B.CONTEXT_AWARE_PANEL})})]}),t[8]=x,t[9]=_,t[10]=R):R=t[10];let C=R;if(!i){let v;return t[11]===C?v=t[12]:(v=(0,m.jsx)(Dn,{children:C()}),t[11]=C,t[12]=v),v}let k;t[13]===Symbol.for("react.memo_cache_sentinel")?(k=(0,m.jsx)(Dt,{onDragging:Ge,className:"resize-handle border-border z-20 no-print border-l"}),t[13]=k):k=t[13];let F;return t[14]===C?F=t[15]:(F=(0,m.jsxs)(m.Fragment,{children:[k,(0,m.jsx)(Ht,{defaultSize:20,minSize:15,maxSize:80,children:C()})]}),t[14]=C,t[15]=F),F},Wn=t=>{let e=(0,Qe.c)(2),{children:n}=t,r;return e[0]===n?r=e[1]:(r=(0,m.jsx)(ge,{children:(0,m.jsx)(Yt,{name:B.CONTEXT_AWARE_PANEL,children:n})}),e[0]=n,e[1]=r),r};var Dn=({children:t})=>{let{resizableDivRef:e,handleRefs:n,style:r}=Ye({startingWidth:400,minWidth:300,maxWidth:1500});return(0,m.jsxs)("div",{className:"absolute z-40 right-0 h-full bg-background flex flex-row",children:[(0,m.jsx)("div",{ref:n.left,className:"w-1 h-full cursor-col-resize border-l"}),(0,m.jsx)("div",{ref:e,style:r,children:t})]})};function Hn(){var t=[...arguments];return(0,u.useMemo)(()=>e=>{t.forEach(n=>n(e))},t)}var Ke=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function G(t){let e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function ae(t){return"nodeType"in t}function I(t){var e;return t?G(t)?t:ae(t)?((e=t.ownerDocument)==null?void 0:e.defaultView)??window:window:window}function Ze(t){let{Document:e}=I(t);return t instanceof e}function Je(t){return G(t)?!1:t instanceof I(t).HTMLElement}function et(t){return t instanceof I(t).SVGElement}function Bn(t){return t?G(t)?t.document:ae(t)?Ze(t)?t:Je(t)||et(t)?t.ownerDocument:document:document:document}var ie=Ke?u.useLayoutEffect:u.useEffect;function tt(t){let e=(0,u.useRef)(t);return ie(()=>{e.current=t}),(0,u.useCallback)(function(){var n=[...arguments];return e.current==null?void 0:e.current(...n)},[])}function Vn(){let t=(0,u.useRef)(null);return[(0,u.useCallback)((e,n)=>{t.current=setInterval(e,n)},[]),(0,u.useCallback)(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[])]}function Xn(t,e){e===void 0&&(e=[t]);let n=(0,u.useRef)(t);return ie(()=>{n.current!==t&&(n.current=t)},e),n}function $n(t,e){let n=(0,u.useRef)();return(0,u.useMemo)(()=>{let r=t(n.current);return n.current=r,r},[...e])}function Yn(t){let e=tt(t),n=(0,u.useRef)(null);return[n,(0,u.useCallback)(r=>{r!==n.current&&(e==null||e(r,n.current)),n.current=r},[])]}function Gn(t){let e=(0,u.useRef)();return(0,u.useEffect)(()=>{e.current=t},[t]),e.current}var oe={};function Qn(t,e){return(0,u.useMemo)(()=>{if(e)return e;let n=oe[t]==null?0:oe[t]+1;return oe[t]=n,t+"-"+n},[t,e])}function nt(t){return function(e){return[...arguments].slice(1).reduce((n,r)=>{let s=Object.entries(r);for(let[i,d]of s){let l=n[i];l!=null&&(n[i]=l+t*d)}return n},{...e})}}var Kn=nt(1),Zn=nt(-1);function Jn(t){return"clientX"in t&&"clientY"in t}function er(t){if(!t)return!1;let{KeyboardEvent:e}=I(t.target);return e&&t instanceof e}function tr(t){if(!t)return!1;let{TouchEvent:e}=I(t.target);return e&&t instanceof e}function nr(t){if(tr(t)){if(t.touches&&t.touches.length){let{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){let{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return Jn(t)?{x:t.clientX,y:t.clientY}:null}var le=Object.freeze({Translate:{toString(t){if(!t)return;let{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;let{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[le.Translate.toString(t),le.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),rt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function rr(t){return t.matches(rt)?t:t.querySelector(rt)}export{kn as $,Ln as A,jn as B,Qn as C,Ye as D,Ge as E,Tn as F,Oe as G,Sn as H,Y as I,Ue as J,Le as K,An as L,De as M,He as N,Xe as O,In as P,Te as Q,ne as R,Gn as S,Wn as T,We as U,Mn as V,Nn as W,Ie as X,Rn as Y,Fn as Z,Vn as _,nr as a,un as at,$n as b,Ze as c,ln as ct,ae as d,J as dt,X as et,et as f,H as ft,tt as g,Hn as h,rr as i,B as it,$e as j,Ve as k,Je as l,nn as lt,Zn as m,Kn as n,qe as nt,Bn as o,rn as ot,G as p,ze as q,Ke as r,Re as rt,I as s,on as st,le as t,wn as tt,er as u,Fe as ut,ie as v,On as w,Yn as x,Xn as y,qn as z}; diff --git a/docs/assets/utils-Czt8B2GX.js b/docs/assets/utils-Czt8B2GX.js new file mode 100644 index 0000000..b1072b4 --- /dev/null +++ b/docs/assets/utils-Czt8B2GX.js @@ -0,0 +1 @@ +import{d as k,i as x,l as z,p as o,u as C}from"./useEvent-DlWF5OMa.js";import{A as n,B as D,I as j,J as I,N as d,P as h,R as t,T as l,U as J,b as r,w as _}from"./zod-Cg4WLWh2.js";import{t as N}from"./compiler-runtime-DeeZ7FnK.js";import{t as R}from"./merge-BBX6ug-N.js";import{d as f,n as S,u as U}from"./hotkeys-uKX61F1_.js";import{t as F}from"./invariant-C6yE60hi.js";const M=["pip","uv","rye","poetry","pixi"];var $=["normal","compact","medium","full","columns"],q=["auto","native","polars","lazy-polars","pandas"];const G="openai/gpt-4o";var O=["html","markdown","ipynb"];const H=["manual","ask","agent"];var u=h({api_key:t().optional(),base_url:t().optional(),project:t().optional()}).loose(),K=h({chat_model:t().nullish(),edit_model:t().nullish(),autocomplete_model:t().nullish(),displayed_models:_(t()).default([]),custom_models:_(t()).default([])});const y=n({completion:h({activate_on_typing:l().prefault(!0),signature_hint_on_typing:l().prefault(!1),copilot:D([l(),r(["github","codeium","custom"])]).prefault(!1).transform(a=>a===!0?"github":a),codeium_api_key:t().nullish()}).prefault({}),save:n({autosave:r(["off","after_delay"]).prefault("after_delay"),autosave_delay:d().nonnegative().transform(a=>Math.max(a,1e3)).prefault(1e3),format_on_save:l().prefault(!1)}).prefault({}),formatting:n({line_length:d().nonnegative().prefault(79).transform(a=>Math.min(a,1e3))}).prefault({}),keymap:n({preset:r(["default","vim"]).prefault("default"),overrides:j(t(),t()).prefault({}),destructive_delete:l().prefault(!0)}).prefault({}),runtime:n({auto_instantiate:l().prefault(!0),on_cell_change:r(["lazy","autorun"]).prefault("autorun"),auto_reload:r(["off","lazy","autorun"]).prefault("off"),reactive_tests:l().prefault(!0),watcher_on_save:r(["lazy","autorun"]).prefault("lazy"),default_sql_output:r(q).prefault("auto"),default_auto_download:_(r(O)).prefault([])}).prefault({}),display:n({theme:r(["light","dark","system"]).prefault("light"),code_editor_font_size:d().nonnegative().prefault(14),cell_output:r(["above","below"]).prefault("below"),dataframes:r(["rich","plain"]).prefault("rich"),default_table_page_size:d().prefault(10),default_table_max_columns:d().prefault(50),default_width:r($).prefault("medium").transform(a=>a==="normal"?"compact":a),locale:t().nullable().optional(),reference_highlighting:l().prefault(!0)}).prefault({}),package_management:n({manager:r(M).prefault("pip")}).prefault({}),ai:n({rules:t().prefault(""),mode:r(H).prefault("manual"),inline_tooltip:l().prefault(!1),open_ai:u.optional(),anthropic:u.optional(),google:u.optional(),ollama:u.optional(),openrouter:u.optional(),wandb:u.optional(),open_ai_compatible:u.optional(),azure:u.optional(),bedrock:n({region_name:t().optional(),profile_name:t().optional(),aws_access_key_id:t().optional(),aws_secret_access_key:t().optional()}).optional(),custom_providers:j(t(),u).prefault({}),models:K.prefault({displayed_models:[],custom_models:[]})}).prefault({}),experimental:n({markdown:l().optional(),rtc:l().optional()}).prefault(()=>({})),server:n({disable_file_downloads:l().optional()}).prefault(()=>({})),diagnostics:n({enabled:l().optional(),sql_linter:l().optional()}).prefault(()=>({})),sharing:n({html:l().optional(),wasm:l().optional()}).optional(),mcp:n({presets:_(r(["marimo","context7"])).optional()}).optional().prefault({})}).partial().prefault(()=>({completion:{},save:{},formatting:{},keymap:{},runtime:{},display:{},diagnostics:{},experimental:{},server:{},ai:{},package_management:{},mcp:{}})),A=t(),L=r(q).prefault("auto"),b=h({width:r($).prefault("medium").transform(a=>a==="normal"?"compact":a),app_title:A.nullish(),css_file:t().nullish(),html_head_file:t().nullish(),auto_download:_(r(O)).prefault([]),sql_output:L}).prefault(()=>({width:"medium",auto_download:[],sql_output:"auto"}));function E(a){try{return b.parse(a)}catch(e){return f.error(`Marimo got an unexpected value in the configuration file: ${e}`),b.parse({})}}function Q(a){try{let e=y.parse(a);for(let[p,s]of Object.entries(e.experimental??{}))s===!0&&f.log(`\u{1F9EA} Experimental feature "${p}" is enabled.`);return e}catch(e){return e instanceof J?f.error(`Marimo got an unexpected value in the configuration file: ${I(e)}`):f.error(`Marimo got an unexpected value in the configuration file: ${e}`),P()}}function V(a){try{let e=a;return F(typeof e=="object","internal-error: marimo-config-overrides is not an object"),Object.keys(e).length>0&&f.log("\u{1F527} Project configuration overrides:",e),e}catch(e){return f.error(`Marimo got an unexpected configuration overrides: ${e}`),{}}}function P(){return y.parse({completion:{},save:{},formatting:{},keymap:{},runtime:{},display:{},diagnostics:{},experimental:{},server:{},ai:{},package_management:{},mcp:{}})}var W=N();const v=o(P()),T=o({}),i=o(a=>{let e=a(T);return R({},a(v),e)}),X=o(a=>a(i).runtime.auto_instantiate),Y=o(a=>a(i).keymap.overrides??{}),Z=o(U()),aa=o(a=>new S(a(Y),{platform:a(Z)})),ea=o(a=>a(i).save),ta=o(a=>a(i).ai),oa=o(a=>a(i).completion),ra=o(a=>a(i).keymap.preset);function la(){return z(v)}function na(){let a=(0,W.c)(3),e=C(i),p=k(v),s;return a[0]!==e||a[1]!==p?(s=[e,p],a[0]=e,a[1]=p,a[2]=s):s=a[2],s}function ia(){return x.get(i)}const sa=o(a=>B(a(i)));o(a=>a(i).display.code_editor_font_size);const pa=o(a=>a(i).display.locale);function B(a){var e,p,s,m,c,w;return!!((p=(e=a.ai)==null?void 0:e.models)!=null&&p.chat_model)||!!((m=(s=a.ai)==null?void 0:s.models)!=null&&m.edit_model)||!!((w=(c=a.ai)==null?void 0:c.models)!=null&&w.autocomplete_model)}const g=o(E({}));function ua(){return z(g)}function fa(){return k(g)}function ma(){return x.get(g)}const ca=o(a=>a(g).width);o(a=>{var m,c;let e=a(i),p=((m=e.snippets)==null?void 0:m.custom_paths)??[],s=(c=e.snippets)==null?void 0:c.include_default_snippets;return p.length>0||s===!0});const da=o(a=>{var e;return((e=a(i).server)==null?void 0:e.disable_file_downloads)??!1});function _a(){return!1}export{Q as A,b as C,y as D,M as E,E as O,v as S,G as T,i as _,ca as a,fa as b,oa as c,ma as d,ia as f,pa as g,ra as h,g as i,V as k,T as l,B as m,ta as n,X as o,aa as p,sa as r,ea as s,_a as t,da as u,ua as v,A as w,la as x,na as y}; diff --git a/docs/assets/uuid-ClFZlR7U.js b/docs/assets/uuid-ClFZlR7U.js new file mode 100644 index 0000000..ccd700a --- /dev/null +++ b/docs/assets/uuid-ClFZlR7U.js @@ -0,0 +1 @@ +function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g,t=>{let x=Math.trunc(Math.random()*16);return(t==="x"?x:x&3|8).toString(16)})}export{r as t}; diff --git a/docs/assets/v-BusYLuRB.js b/docs/assets/v-BusYLuRB.js new file mode 100644 index 0000000..e8cdf74 --- /dev/null +++ b/docs/assets/v-BusYLuRB.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"V","fileTypes":[".v",".vh",".vsh",".vv","v.mod"],"name":"v","patterns":[{"include":"#comments"},{"include":"#function-decl"},{"include":"#as-is"},{"include":"#attributes"},{"include":"#assignment"},{"include":"#module-decl"},{"include":"#import-decl"},{"include":"#hash-decl"},{"include":"#brackets"},{"include":"#builtin-fix"},{"include":"#escaped-fix"},{"include":"#operators"},{"include":"#function-limited-overload-decl"},{"include":"#function-extend-decl"},{"include":"#function-exist"},{"include":"#generic"},{"include":"#constants"},{"include":"#type"},{"include":"#enum"},{"include":"#interface"},{"include":"#struct"},{"include":"#keywords"},{"include":"#storage"},{"include":"#numbers"},{"include":"#strings"},{"include":"#types"},{"include":"#punctuations"},{"include":"#variable-assign"},{"include":"#function-decl"}],"repository":{"as-is":{"begin":"\\\\s+([ai]s)\\\\s+","beginCaptures":{"1":{"name":"keyword.$1.v"}},"end":"([.\\\\w]*)","endCaptures":{"1":{"name":"entity.name.alias.v"}}},"assignment":{"captures":{"1":{"patterns":[{"include":"#operators"}]}},"match":"\\\\s+([-%\\\\&*+/:^|]?=)\\\\s+","name":"meta.definition.variable.v"},"attributes":{"captures":{"1":{"name":"meta.function.attribute.v"},"2":{"name":"punctuation.definition.begin.bracket.square.v"},"3":{"name":"storage.modifier.attribute.v"},"4":{"name":"punctuation.definition.end.bracket.square.v"}},"match":"^\\\\s*((\\\\[)(deprecated|unsafe|console|heap|manualfree|typedef|live|inline|flag|ref_only|direct_array_access|callconv)(]))","name":"meta.definition.attribute.v"},"brackets":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.begin.v"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.v"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.begin.v"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.bracket.round.end.v"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.begin.v"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.bracket.square.end.v"}},"patterns":[{"include":"$self"}]}]},"builtin-fix":{"patterns":[{"patterns":[{"match":"(const)(?=\\\\s*\\\\()","name":"storage.modifier.v"},{"match":"\\\\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\\\\b(?=\\\\s*\\\\()","name":"keyword.$1.v"}]},{"patterns":[{"match":"(\\\\$(?:if|else))(?=\\\\s*\\\\()","name":"keyword.control.v"},{"match":"\\\\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|spawn|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\\\b(?=\\\\s*\\\\()","name":"keyword.control.v"}]},{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.v"}},"match":"(?))?","name":"meta.definition.function.v"},"function-exist":{"captures":{"0":{"name":"meta.function.call.v"},"1":{"patterns":[{"include":"#illegal-name"},{"match":"\\\\w+","name":"entity.name.function.v"}]},"2":{"patterns":[{"include":"#generic"}]}},"match":"(\\\\w+)((?<=[+\\\\w\\\\s])(<)(\\\\w+)(>))?(?=\\\\s*\\\\()","name":"meta.support.function.v"},"function-extend-decl":{"captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.fn.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#illegal-name"},{"match":"\\\\w+","name":"entity.name.function.v"}]},"7":{"patterns":[{"include":"#generic"}]}},"match":"^\\\\s*(pub)?\\\\s*(fn)\\\\s*(\\\\()([^)]*)(\\\\))\\\\s*(?:C\\\\.)?(\\\\w+)\\\\s*((?<=[+\\\\w\\\\s])(<)(\\\\w+)(>))?","name":"meta.definition.function.v"},"function-limited-overload-decl":{"captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.fn.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#operators"}]},"7":{"name":"punctuation.definition.bracket.round.begin.v"},"8":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"9":{"name":"punctuation.definition.bracket.round.end.v"},"10":{"patterns":[{"include":"#illegal-name"},{"match":"\\\\w+","name":"entity.name.function.v"}]}},"match":"^\\\\s*(pub)?\\\\s*(fn)\\\\s*(\\\\()([^)]*)(\\\\))\\\\s*([-*+/])?\\\\s*(\\\\()([^)]*)(\\\\))\\\\s*(?:C\\\\.)?(\\\\w+)","name":"meta.definition.function.v"},"generic":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.bracket.angle.begin.v"},"2":{"patterns":[{"include":"#illegal-name"},{"match":"\\\\w+","name":"entity.name.generic.v"}]},"3":{"name":"punctuation.definition.bracket.angle.end.v"}},"match":"(?<=[+\\\\w\\\\s])(<)(\\\\w+)(>)","name":"meta.definition.generic.v"}]},"hash-decl":{"begin":"^\\\\s*(#)","end":"$","name":"markup.bold.v"},"illegal-name":{"match":"\\\\d\\\\w+","name":"invalid.illegal.v"},"import-decl":{"begin":"^\\\\s*(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.import.v"}},"end":"([.\\\\w]+)","endCaptures":{"1":{"name":"entity.name.import.v"}},"name":"meta.import.v"},"interface":{"captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"keyword.interface.v"},"3":{"patterns":[{"include":"#illegal-name"},{"match":"\\\\w+","name":"entity.name.interface.v"}]}},"match":"^\\\\s*(?:(pub)?\\\\s+)?(interface)\\\\s+(\\\\w*)","name":"meta.definition.interface.v"},"keywords":{"patterns":[{"match":"(\\\\$(?:if|else))","name":"keyword.control.v"},{"match":"(?>|<<)","name":"keyword.operator.arithmetic.v"},{"match":"(==|!=|[<>]|>=|<=)","name":"keyword.operator.relation.v"},{"match":"((?::?|[-%\\\\&*+/^|~]|&&|\\\\|\\\\||>>|<<)=)","name":"keyword.operator.assignment.v"},{"match":"([\\\\&^|~]|<(?!<)|>(?!>))","name":"keyword.operator.bitwise.v"},{"match":"(&&|\\\\|\\\\||!)","name":"keyword.operator.logical.v"},{"match":"\\\\?","name":"keyword.operator.optional.v"}]},"punctuation":{"patterns":[{"match":"\\\\.","name":"punctuation.delimiter.period.dot.v"},{"match":",","name":"punctuation.delimiter.comma.v"},{"match":":","name":"punctuation.separator.key-value.colon.v"},{"match":";","name":"punctuation.definition.other.semicolon.v"},{"match":"\\\\?","name":"punctuation.definition.other.questionmark.v"},{"match":"#","name":"punctuation.hash.v"}]},"punctuations":{"patterns":[{"match":"\\\\.","name":"punctuation.accessor.v"},{"match":",","name":"punctuation.separator.comma.v"}]},"storage":{"match":"\\\\b(const|mut|pub)\\\\b","name":"storage.modifier.v"},"string-escaped-char":{"patterns":[{"match":"\\\\\\\\([0-7]{3}|[\\"$'\\\\\\\\abfnrtv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.v"},{"match":"\\\\\\\\[^\\"$'0-7Uabfnrtuvx]","name":"invalid.illegal.unknown-escape.v"}]},"string-interpolation":{"captures":{"1":{"patterns":[{"match":"\\\\$\\\\d[.\\\\w]+","name":"invalid.illegal.v"},{"match":"\\\\$([.\\\\w]+|\\\\{.*?})","name":"variable.other.interpolated.v"}]}},"match":"(\\\\$([.\\\\w]+|\\\\{.*?}))","name":"meta.string.interpolation.v"},"string-placeholder":{"match":"%(\\\\[\\\\d+])?([- #+0]{0,2}((\\\\d+|\\\\*)?(\\\\.?(\\\\d+|\\\\*|(\\\\[\\\\d+])\\\\*?)?(\\\\[\\\\d+])?)?))?[%EFGTUXb-gopqstvx]","name":"constant.other.placeholder.v"},"strings":{"patterns":[{"begin":"\`","end":"\`","name":"string.quoted.rune.v","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"begin":"(r)'","beginCaptures":{"1":{"name":"storage.type.string.v"}},"end":"'","name":"string.quoted.raw.v","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"begin":"(r)\\"","beginCaptures":{"1":{"name":"storage.type.string.v"}},"end":"\\"","name":"string.quoted.raw.v","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"begin":"(c?)'","beginCaptures":{"1":{"name":"storage.type.string.v"}},"end":"'","name":"string.quoted.v","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"begin":"(c?)\\"","beginCaptures":{"1":{"name":"storage.type.string.v"}},"end":"\\"","name":"string.quoted.v","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}]}]},"struct":{"patterns":[{"begin":"^\\\\s*(?:(mut|pub(?:\\\\s+mut)?|__global)\\\\s+)?(struct|union)\\\\s+([.\\\\w]+)\\\\s*|(\\\\{)","beginCaptures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.type.v"},"4":{"name":"punctuation.definition.bracket.curly.begin.v"}},"end":"\\\\s*|(})","endCaptures":{"1":{"name":"punctuation.definition.bracket.curly.end.v"}},"name":"meta.definition.struct.v","patterns":[{"include":"#struct-access-modifier"},{"captures":{"1":{"name":"variable.other.property.v"},"2":{"patterns":[{"include":"#numbers"},{"include":"#brackets"},{"include":"#types"},{"match":"\\\\w+","name":"storage.type.other.v"}]},"3":{"name":"keyword.operator.assignment.v"},"4":{"patterns":[{"include":"$self"}]}},"match":"\\\\b(\\\\w+)\\\\s+([]\\\\&*.\\\\[\\\\w]+)(?:\\\\s*(=)\\\\s*((?:.(?=$|//|/\\\\*))*+))?"},{"include":"#types"},{"include":"$self"}]},{"captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.struct.v"}},"match":"^\\\\s*(mut|pub(?:\\\\s+mut)?|__global)\\\\s+?(struct)\\\\s+(?:\\\\s+([.\\\\w]+))?","name":"meta.definition.struct.v"}]},"struct-access-modifier":{"captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"punctuation.separator.struct.key-value.v"}},"match":"(?<=\\\\s|^)(mut|pub(?:\\\\s+mut)?|__global)(:|\\\\b)"},"type":{"captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.type.v"},"3":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"match":"\\\\w+","name":"entity.name.type.v"}]},"4":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"match":"\\\\w+","name":"entity.name.type.v"}]}},"match":"^\\\\s*(?:(pub)?\\\\s+)?(type)\\\\s+(\\\\w*)\\\\s+(?:\\\\w+\\\\.+)?(\\\\w*)","name":"meta.definition.type.v"},"types":{"patterns":[{"match":"(?\\\\s*)?\\\\()","name":"entity.name.function.vala"}]},"keywords":{"patterns":[{"match":"(?<=^|[^.@\\\\w])(as|do|if|in|is|not|or|and|for|get|new|out|ref|set|try|var|base|case|else|enum|lock|null|this|true|void|weak|async|break|catch|class|const|false|owned|throw|using|while|with|yield|delete|extern|inline|params|public|return|sealed|signal|sizeof|static|struct|switch|throws|typeof|unlock|default|dynamic|ensures|finally|foreach|private|unowned|virtual|abstract|continue|delegate|internal|override|requires|volatile|construct|interface|namespace|protected|errordomain)\\\\b","name":"keyword.vala"},{"match":"(?<=^|[^.@\\\\w])(bool|double|float|unichar2??|char|uchar|int|uint|long|ulong|short|ushort|size_t|ssize_t|string|string16|string32|void|signal|int8|int16|int32|int64|uint8|uint16|uint32|uint64|va_list|time_t)\\\\b","name":"keyword.vala"},{"match":"(#(?:if|elif|else|endif))","name":"keyword.vala"}]},"strings":{"patterns":[{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.triple.vala"},{"begin":"@\\"","end":"\\"","name":"string.quoted.interpolated.vala","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.vala"},{"match":"\\\\$\\\\w+","name":"constant.character.escape.vala"},{"match":"\\\\$\\\\(([^()]|\\\\(([^()]|\\\\([^)]*\\\\))*\\\\))*\\\\)","name":"constant.character.escape.vala"}]},{"begin":"\\"","end":"\\"","name":"string.quoted.double.vala","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.vala"}]},{"begin":"'","end":"'","name":"string.quoted.single.vala","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.vala"}]},{"match":"/((\\\\\\\\/)|([^/]))*/(?=\\\\s*[\\\\n),.;])","name":"string.regexp.vala"}]},"types":{"patterns":[{"match":"(?<=^|[^.@\\\\w])(bool|double|float|unichar2??|char|uchar|int|uint|long|ulong|short|ushort|size_t|ssize_t|string|string16|string32|void|signal|int8|int16|int32|int64|uint8|uint16|uint32|uint64|va_list|time_t)\\\\b","name":"storage.type.primitive.vala"},{"match":"\\\\b([A-Z]+\\\\w*)\\\\b","name":"entity.name.type.vala"}]},"variables":{"patterns":[{"match":"\\\\b([_a-z]+\\\\w*)\\\\b","name":"variable.other.vala"}]}},"scopeName":"source.vala"}`))];export{a as default}; diff --git a/docs/assets/vb-CgKmZtlp.js b/docs/assets/vb-CgKmZtlp.js new file mode 100644 index 0000000..743c3e8 --- /dev/null +++ b/docs/assets/vb-CgKmZtlp.js @@ -0,0 +1 @@ +var c="error";function a(e){return RegExp("^(("+e.join(")|(")+"))\\b","i")}var v=RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),k=RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),x=RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),w=RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),I=RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),z=RegExp("^[_A-Za-z][_A-Za-z0-9]*"),u=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],d=["else","elseif","case","catch","finally"],m=["next","loop"],h=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],E=a(h),f="#const.#else.#elseif.#end.#if.#region.addhandler.addressof.alias.as.byref.byval.cbool.cbyte.cchar.cdate.cdbl.cdec.cint.clng.cobj.compare.const.continue.csbyte.cshort.csng.cstr.cuint.culng.cushort.declare.default.delegate.dim.directcast.each.erase.error.event.exit.explicit.false.for.friend.gettype.goto.handles.implements.imports.infer.inherits.interface.isfalse.istrue.lib.me.mod.mustinherit.mustoverride.my.mybase.myclass.namespace.narrowing.new.nothing.notinheritable.notoverridable.of.off.on.operator.option.optional.out.overloads.overridable.overrides.paramarray.partial.private.protected.public.raiseevent.readonly.redim.removehandler.resume.return.shadows.shared.static.step.stop.strict.then.throw.to.true.trycast.typeof.until.until.when.widening.withevents.writeonly".split("."),p="object.boolean.char.string.byte.sbyte.short.ushort.int16.uint16.integer.uinteger.int32.uint32.long.ulong.int64.uint64.decimal.single.double.float.date.datetime.intptr.uintptr".split("."),L=a(f),R=a(p),C='"',O=a(u),g=a(d),b=a(m),y=a(["end"]),T=a(["do"]),F=null;function s(e,n){n.currentIndent++}function o(e,n){n.currentIndent--}function l(e,n){if(e.eatSpace())return null;if(e.peek()==="'")return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var r=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(r=!0),r)return e.eat(/J/i),"number";var t=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?t=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),t=!0):e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}return e.match(C)?(n.tokenize=j(e.current()),n.tokenize(e,n)):e.match(I)||e.match(w)?null:e.match(x)||e.match(v)||e.match(E)?"operator":e.match(k)?null:e.match(T)?(s(e,n),n.doInCurrentLine=!0,"keyword"):e.match(O)?(n.doInCurrentLine?n.doInCurrentLine=!1:s(e,n),"keyword"):e.match(g)?"keyword":e.match(y)?(o(e,n),o(e,n),"keyword"):e.match(b)?(o(e,n),"keyword"):e.match(R)||e.match(L)?"keyword":e.match(z)?"variable":(e.next(),c)}function j(e){var n=e.length==1,r="string";return function(t,i){for(;!t.eol();){if(t.eatWhile(/[^'"]/),t.match(e))return i.tokenize=l,r;t.eat(/['"]/)}return n&&(i.tokenize=l),r}}function S(e,n){var r=n.tokenize(e,n),t=e.current();if(t===".")return r=n.tokenize(e,n),r==="variable"?"variable":c;var i="[({".indexOf(t);return i!==-1&&s(e,n),F==="dedent"&&o(e,n)||(i="])}".indexOf(t),i!==-1&&o(e,n))?c:r}const _={name:"vb",startState:function(){return{tokenize:l,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=S(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e,n,r){var t=n.replace(/^\s+|\s+$/g,"");return t.match(b)||t.match(y)||t.match(g)?r.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*r.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:u.concat(d).concat(m).concat(h).concat(f).concat(p)}};export{_ as t}; diff --git a/docs/assets/vb-D-5BLYdM.js b/docs/assets/vb-D-5BLYdM.js new file mode 100644 index 0000000..be995fa --- /dev/null +++ b/docs/assets/vb-D-5BLYdM.js @@ -0,0 +1 @@ +import{t as o}from"./vb-CgKmZtlp.js";export{o as vb}; diff --git a/docs/assets/vb-KrbtzW33.js b/docs/assets/vb-KrbtzW33.js new file mode 100644 index 0000000..17aafd8 --- /dev/null +++ b/docs/assets/vb-KrbtzW33.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Visual Basic","name":"vb","patterns":[{"match":"\\\\n","name":"meta.ending-space"},{"include":"#round-brackets"},{"begin":"^(?=\\\\t)","end":"(?=[^\\\\t])","name":"meta.leading-space","patterns":[{"captures":{"1":{"name":"meta.odd-tab.tabs"},"2":{"name":"meta.even-tab.tabs"}},"match":"(\\\\t)(\\\\t)?"}]},{"begin":"^(?= )","end":"(?=[^ ])","name":"meta.leading-space","patterns":[{"captures":{"1":{"name":"meta.odd-tab.spaces"},"2":{"name":"meta.even-tab.spaces"}},"match":"( )( )?"}]},{"captures":{"1":{"name":"storage.type.function.asp"},"2":{"name":"entity.name.function.asp"},"3":{"name":"punctuation.definition.parameters.asp"},"4":{"name":"variable.parameter.function.asp"},"5":{"name":"punctuation.definition.parameters.asp"}},"match":"^\\\\s*((?i:function|sub))\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(\\\\()([^)]*)(\\\\)).*\\\\n?","name":"meta.function.asp"},{"begin":"(^[\\\\t ]+)?(?=')","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.asp"}},"end":"(?!\\\\G)","patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.comment.asp"}},"end":"\\\\n","name":"comment.line.apostrophe.asp"}]},{"match":"(?i:\\\\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\\\\b)","name":"keyword.control.asp"},{"match":"(?i:\\\\b(Mod|And|Not|Or|Xor|as)\\\\b)","name":"keyword.operator.asp"},{"captures":{"1":{"name":"storage.type.asp"},"2":{"name":"variable.other.bfeac.asp"},"3":{"name":"meta.separator.comma.asp"}},"match":"(?i:(dim)\\\\s*\\\\b([7A-Z_a-z][0-9A-Z_a-z]*?)\\\\b\\\\s*(,?))","name":"variable.other.dim.asp"},{"match":"(?i:\\\\s*\\\\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End Sub|End Function|End Class|End Property|Public Property|Private Property|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\\\\b\\\\s*)","name":"storage.type.asp"},{"match":"(?i:\\\\b(Private|Public|Default)\\\\b)","name":"storage.modifier.asp"},{"match":"(?i:\\\\s*\\\\b(Empty|False|Nothing|Null|True)\\\\b)","name":"constant.language.asp"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.asp"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.asp"}},"name":"string.quoted.double.asp","patterns":[{"match":"\\"\\"","name":"constant.character.escape.apostrophe.asp"}]},{"captures":{"1":{"name":"punctuation.definition.variable.asp"}},"match":"(\\\\$)[7A-Z_a-z][0-9A-Z_a-z]*?\\\\b\\\\s*","name":"variable.other.asp"},{"match":"(?i:\\\\b(Application|ObjectContext|Request|Response|Server|Session)\\\\b)","name":"support.class.asp"},{"match":"(?i:\\\\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\\\\b)","name":"support.class.collection.asp"},{"match":"(?i:\\\\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\\\\b)","name":"support.constant.asp"},{"match":"(?i:\\\\b(Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\\\\b)","name":"support.function.asp"},{"match":"(?i:\\\\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\\\\b)","name":"support.function.event.asp"},{"match":"(?i:(?<=as )\\\\b([7A-Z_a-z][0-9A-Z_a-z]*?)\\\\b)","name":"support.type.vb.asp"},{"match":"(?i:\\\\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Items??|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Timer??|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\\\\b)","name":"support.function.vb.asp"},{"match":"-?\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([Ll]|UL|ul|[FUfu])?\\\\b","name":"constant.numeric.asp"},{"match":"(?i:\\\\b(vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\\\\b)","name":"support.type.vb.asp"},{"captures":{"1":{"name":"entity.name.function.asp"}},"match":"(?i:\\\\b([7A-Z_a-z][0-9A-Z_a-z]*?)\\\\b(?=\\\\(\\\\)?))","name":"support.function.asp"},{"match":"(?i:((?<=([-\\\\&(+,/<=>\\\\\\\\]))\\\\s*\\\\b([7A-Z_a-z][0-9A-Z_a-z]*?)\\\\b(?!([(.]))|\\\\b([7A-Z_a-z][0-9A-Z_a-z]*?)\\\\b(?=\\\\s*([-\\\\&()+/<=>\\\\\\\\]))))","name":"variable.other.asp"},{"match":"[!$%\\\\&*]|--?|\\\\+\\\\+|[+~]|===?|=|!==??|<=|>=|<<=|>>=|>>>=|<>|[!<>]|&&|\\\\|\\\\||\\\\?:|\\\\*=|/=|%=|\\\\+=|-=|&=|\\\\^=|\\\\b(in|instanceof|new|delete|typeof|void)\\\\b","name":"keyword.operator.js"}],"repository":{"round-brackets":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.round-brackets.begin.asp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.round-brackets.end.asp"}},"name":"meta.round-brackets","patterns":[{"include":"source.asp.vb.net"}]}},"scopeName":"source.asp.vb.net","aliases":["cmd"]}`))];export{e as default}; diff --git a/docs/assets/vbscript-DOZuVfk8.js b/docs/assets/vbscript-DOZuVfk8.js new file mode 100644 index 0000000..761b362 --- /dev/null +++ b/docs/assets/vbscript-DOZuVfk8.js @@ -0,0 +1 @@ +import{n as r,t}from"./vbscript-mB-oVfPH.js";export{t as vbScript,r as vbScriptASP}; diff --git a/docs/assets/vbscript-mB-oVfPH.js b/docs/assets/vbscript-mB-oVfPH.js new file mode 100644 index 0000000..d848cd1 --- /dev/null +++ b/docs/assets/vbscript-mB-oVfPH.js @@ -0,0 +1 @@ +function p(h){var l="error";function a(e){return RegExp("^(("+e.join(")|(")+"))\\b","i")}var f=RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),y=RegExp("^((<>)|(<=)|(>=))"),g=RegExp("^[\\.,]"),x=RegExp("^[\\(\\)]"),k=RegExp("^[A-Za-z][_A-Za-z0-9]*"),w=["class","sub","select","while","if","function","property","with","for"],I=["else","elseif","case"],C=["next","loop","wend"],L=a(["and","or","not","xor","is","mod","eqv","imp"]),D=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],S=["true","false","nothing","empty","null"],E="abs.array.asc.atn.cbool.cbyte.ccur.cdate.cdbl.chr.cint.clng.cos.csng.cstr.date.dateadd.datediff.datepart.dateserial.datevalue.day.escape.eval.execute.exp.filter.formatcurrency.formatdatetime.formatnumber.formatpercent.getlocale.getobject.getref.hex.hour.inputbox.instr.instrrev.int.fix.isarray.isdate.isempty.isnull.isnumeric.isobject.join.lbound.lcase.left.len.loadpicture.log.ltrim.rtrim.trim.maths.mid.minute.month.monthname.msgbox.now.oct.replace.rgb.right.rnd.round.scriptengine.scriptenginebuildversion.scriptenginemajorversion.scriptengineminorversion.second.setlocale.sgn.sin.space.split.sqr.strcomp.string.strreverse.tan.time.timer.timeserial.timevalue.typename.ubound.ucase.unescape.vartype.weekday.weekdayname.year".split("."),O="vbBlack.vbRed.vbGreen.vbYellow.vbBlue.vbMagenta.vbCyan.vbWhite.vbBinaryCompare.vbTextCompare.vbSunday.vbMonday.vbTuesday.vbWednesday.vbThursday.vbFriday.vbSaturday.vbUseSystemDayOfWeek.vbFirstJan1.vbFirstFourDays.vbFirstFullWeek.vbGeneralDate.vbLongDate.vbShortDate.vbLongTime.vbShortTime.vbObjectError.vbOKOnly.vbOKCancel.vbAbortRetryIgnore.vbYesNoCancel.vbYesNo.vbRetryCancel.vbCritical.vbQuestion.vbExclamation.vbInformation.vbDefaultButton1.vbDefaultButton2.vbDefaultButton3.vbDefaultButton4.vbApplicationModal.vbSystemModal.vbOK.vbCancel.vbAbort.vbRetry.vbIgnore.vbYes.vbNo.vbCr.VbCrLf.vbFormFeed.vbLf.vbNewLine.vbNullChar.vbNullString.vbTab.vbVerticalTab.vbUseDefault.vbTrue.vbFalse.vbEmpty.vbNull.vbInteger.vbLong.vbSingle.vbDouble.vbCurrency.vbDate.vbString.vbObject.vbError.vbBoolean.vbVariant.vbDataObject.vbDecimal.vbByte.vbArray".split("."),i=["WScript","err","debug","RegExp"],z=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],R=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],T=["server","response","request","session","application"],j=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],F=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],o=R.concat(z);i=i.concat(O),h.isASP&&(i=i.concat(T),o=o.concat(F,j));var B=a(D),A=a(S),N=a(E),W=a(i),q=a(o),M='"',K=a(w),s=a(I),u=a(C),v=a(["end"]),Y=a(["do"]),H=a(["on error resume next","exit"]),J=a(["rem"]);function d(e,t){t.currentIndent++}function c(e,t){t.currentIndent--}function b(e,t){if(e.eatSpace())return null;if(e.peek()==="'"||e.match(J))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var r=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(r=!0),r)return e.eat(/J/i),"number";var n=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?n=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),n=!0):e.match(/^0(?![\dx])/i)&&(n=!0),n)return e.eat(/L/i),"number"}return e.match(M)?(t.tokenize=P(e.current()),t.tokenize(e,t)):e.match(y)||e.match(f)||e.match(L)?"operator":e.match(g)?null:e.match(x)?"bracket":e.match(H)?(t.doInCurrentLine=!0,"keyword"):e.match(Y)?(d(e,t),t.doInCurrentLine=!0,"keyword"):e.match(K)?(t.doInCurrentLine?t.doInCurrentLine=!1:d(e,t),"keyword"):e.match(s)?"keyword":e.match(v)?(c(e,t),c(e,t),"keyword"):e.match(u)?(t.doInCurrentLine?t.doInCurrentLine=!1:c(e,t),"keyword"):e.match(B)?"keyword":e.match(A)?"atom":e.match(q)?"variableName.special":e.match(N)||e.match(W)?"builtin":e.match(k)?"variable":(e.next(),l)}function P(e){var t=e.length==1,r="string";return function(n,m){for(;!n.eol();){if(n.eatWhile(/[^'"]/),n.match(e))return m.tokenize=b,r;n.eat(/['"]/)}return t&&(m.tokenize=b),r}}function V(e,t){var r=t.tokenize(e,t),n=e.current();return n==="."?(r=t.tokenize(e,t),n=e.current(),r&&(r.substr(0,8)==="variable"||r==="builtin"||r==="keyword")?((r==="builtin"||r==="keyword")&&(r="variable"),o.indexOf(n.substr(1))>-1&&(r="keyword"),r):l):r}return{name:"vbscript",startState:function(){return{tokenize:b,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var r=V(e,t);return t.lastToken={style:r,content:e.current()},r===null&&(r=null),r},indent:function(e,t,r){var n=t.replace(/^\s+|\s+$/g,"");return n.match(u)||n.match(v)||n.match(s)?r.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*r.unit}}}const _=p({}),G=p({isASP:!0});export{G as n,_ as t}; diff --git a/docs/assets/vega-component-D3ylM3tt.js b/docs/assets/vega-component-D3ylM3tt.js new file mode 100644 index 0000000..92bc5a7 --- /dev/null +++ b/docs/assets/vega-component-D3ylM3tt.js @@ -0,0 +1 @@ +import{s as Z}from"./chunk-LvLJmgfZ.js";import{n as C}from"./useEvent-DlWF5OMa.js";import{t as R}from"./react-BGmjiNul.js";import"./react-dom-C9fstfnp.js";import{t as tt}from"./compiler-runtime-DeeZ7FnK.js";import{t as nt}from"./_baseUniq-CsutM-S0.js";import{t as et}from"./debounce-BbFlGgjv.js";import{r as rt,t as at}from"./tooltip-CrRUCOBw.js";import{a as V,d as j}from"./hotkeys-uKX61F1_.js";import{n as z}from"./config-CENq_7Pd.js";import{t as it}from"./jsx-runtime-DN_bIXfG.js";import{r as ot}from"./button-B8cGZzP5.js";import{u as lt}from"./toDate-5JckKRQn.js";import{r as ct}from"./useTheme-BSVRc0kJ.js";import"./Combination-D1TsGrBC.js";import{t as st}from"./tooltip-CvjcEpZC.js";import{t as mt}from"./isValid-DhzaK-Y1.js";import{n as pt}from"./vega-loader.browser-C8wT63Va.js";import{t as ut}from"./react-vega-CI0fuCLO.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{r as ft,t as dt}from"./alert-BEdExd6A.js";import{n as ht}from"./error-banner-Cq4Yn1WZ.js";import{n as gt}from"./useAsyncData-Dj1oqsrZ.js";import{t as yt}from"./formats-DtJ_484s.js";import{t as H}from"./useDeepCompareMemoize-81gQouTn.js";function vt(t){return t&&t.length?nt(t):[]}var N=vt,kt=tt(),x=Z(R(),1);function bt(t){return t.data&&"url"in t.data&&(t.data.url=z(t.data.url).href),t}const u={arc:"arc",area:"area",bar:"bar",image:"image",line:"line",point:"point",rect:"rect",rule:"rule",text:"text",tick:"tick",trail:"trail",circle:"circle",square:"square",geoshape:"geoshape"};var F=new Set(["boxplot","errorband","errorbar"]);const S={getMarkType(t){let n=typeof t=="string"?t:t.type;if(F.has(n))throw Error("Not supported");return n},isInteractive(t){let n=typeof t=="string"?t:t.type;return!F.has(n)},makeClickable(t){let n=typeof t=="string"?t:t.type;return n in u?typeof t=="string"?{type:t,cursor:"pointer",tooltip:!0}:{...t,type:n,cursor:"pointer",tooltip:!0}:t},getOpacity(t){return typeof t=="string"?null:"opacity"in t&&typeof t.opacity=="number"?t.opacity:null}},y={point(t){return t==null?"select_point":`select_point_${t}`},interval(t){return t==null?"select_interval":`select_interval_${t}`},legendSelection(t){return`legend_selection_${t}`},binColoring(t){return t==null?"bin_coloring":`bin_coloring_${t}`},HIGHLIGHT:"highlight",PAN_ZOOM:"pan_zoom",hasPoint(t){return t.some(n=>n.startsWith("select_point"))},hasInterval(t){return t.some(n=>n.startsWith("select_interval"))},hasLegend(t){return t.some(n=>n.startsWith("legend_selection"))},hasPanZoom(t){return t.some(n=>n.startsWith("pan_zoom"))},isBinColoring(t){return t.startsWith("bin_coloring")}},O={highlight(){return{name:y.HIGHLIGHT,select:{type:"point",on:"mouseover"}}},interval(t,n){return{name:y.interval(n),select:{type:"interval",encodings:W(t),mark:{fill:"#669EFF",fillOpacity:.07,stroke:"#669EFF",strokeOpacity:.4},on:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",translate:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]"}}},point(t,n){return{name:y.point(n),select:{type:"point",encodings:W(t),on:"click[!event.metaKey]"}}},binColoring(t){return{name:y.binColoring(t),select:{type:"point",on:"click[!event.metaKey]"}}},legend(t){return{name:y.legendSelection(t),select:{type:"point",fields:[t]},bind:"legend"}},panZoom(){return{name:y.PAN_ZOOM,bind:"scales",select:{type:"interval",on:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",translate:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",zoom:"wheel![event.metaKey]"}}}};function W(t){switch(S.getMarkType(t.mark)){case u.image:case u.trail:return;case u.area:case u.arc:return["color"];case u.bar:{let n=wt(t);return n==="horizontal"?["y"]:n==="vertical"?["x"]:void 0}case u.circle:case u.geoshape:case u.line:case u.point:case u.rect:case u.rule:case u.square:case u.text:case u.tick:return["x","y"]}}function P(t){return"params"in t&&t.params&&t.params.length>0?N(t.params.filter(n=>n==null?!1:"select"in n&&n.select!==void 0).map(n=>n.name)):"layer"in t?N(t.layer.flatMap(P)):"vconcat"in t?N(t.vconcat.flatMap(P)):"hconcat"in t?N(t.hconcat.flatMap(P)):[]}function wt(t){var a,r;if(!t||!("mark"in t))return;let n=(a=t.encoding)==null?void 0:a.x,e=(r=t.encoding)==null?void 0:r.y;if(n&&"type"in n&&n.type==="nominal")return"vertical";if(e&&"type"in e&&e.type==="nominal"||n&&"aggregate"in n)return"horizontal";if(e&&"aggregate"in e)return"vertical"}function xt(t){if(!t.encoding)return[];let n=[];for(let e of Object.values(t.encoding))e&&typeof e=="object"&&"bin"in e&&e.bin&&"field"in e&&typeof e.field=="string"&&n.push(e.field);return n}function D(t){if(!t||!("encoding"in t))return[];let{encoding:n}=t;return n?Object.entries(n).flatMap(e=>{let[a,r]=e;return!r||!St.has(a)?[]:"field"in r&&typeof r.field=="string"?[r.field]:"condition"in r&&r.condition&&typeof r.condition=="object"&&"field"in r.condition&&r.condition.field&&typeof r.condition.field=="string"?[r.condition.field]:[]}):[]}var St=new Set(["color","fill","fillOpacity","opacity","shape","size"]);function G(t,n,e,a){let r=e.filter(o=>y.isBinColoring(o)),i={and:(r.length>0?r:e).map(o=>({param:o}))};if(t==="opacity"){let o=S.getOpacity(a)||1;return{...n,opacity:{condition:{test:i,value:o},value:o/5}}}else return n}function At(t){if(!("select"in t)||!t.select)return JSON.stringify(t);let n=t.select;if(typeof n=="string")return JSON.stringify({type:n,bind:t.bind});let e={type:n.type,encodings:"encodings"in n&&n.encodings?[...n.encodings].sort():void 0,fields:"fields"in n&&n.fields?[...n.fields].sort():void 0,bind:t.bind};return JSON.stringify(e)}function $(t){let n=E(t);if(n.length===0)return t;let e=jt(n);return e.length===0?t:{...L(K(t,new Set(e.map(a=>a.name))),e.map(a=>a.name)),params:[...t.params||[],...e]}}function E(t){let n=[];if("vconcat"in t&&Array.isArray(t.vconcat))for(let e of t.vconcat)n.push(...E(e));else if("hconcat"in t&&Array.isArray(t.hconcat))for(let e of t.hconcat)n.push(...E(e));else{if("layer"in t)return[];"mark"in t&&"params"in t&&t.params&&t.params.length>0&&n.push({params:t.params})}return n}function jt(t){if(t.length===0)return[];let n=new Map,e=t.length;for(let{params:r}of t){let i=new Set;for(let o of r){let l=At(o);i.has(l)||(i.add(l),n.has(l)||n.set(l,{count:0,param:o}),n.get(l).count++)}}let a=[];for(let[,{count:r,param:i}]of n)r===e&&a.push(i);return a}function K(t,n){if("vconcat"in t&&Array.isArray(t.vconcat))return{...t,vconcat:t.vconcat.map(e=>K(e,n))};if("hconcat"in t&&Array.isArray(t.hconcat))return{...t,hconcat:t.hconcat.map(e=>K(e,n))};if("mark"in t&&"params"in t&&t.params){let e=t.params,a=[];for(let r of e){if(!r||typeof r!="object"||!("name"in r)){a.push(r);continue}n.has(r.name)||a.push(r)}if(a.length===0){let{params:r,...i}=t;return i}return{...t,params:a}}return t}function L(t,n){return"vconcat"in t&&Array.isArray(t.vconcat)?{...t,vconcat:t.vconcat.map(e=>L(e,n))}:"hconcat"in t&&Array.isArray(t.hconcat)?{...t,hconcat:t.hconcat.map(e=>L(e,n))}:"layer"in t?t:"mark"in t&&S.isInteractive(t.mark)?{...t,mark:S.makeClickable(t.mark),encoding:G("opacity",t.encoding||{},n,t.mark)}:t}function T(t,n){var l,k;let{chartSelection:e=!0,fieldSelection:a=!0}=n;if(!e&&!a)return t;(l=t.params)!=null&&l.some(s=>s.bind==="legend")&&(a=!1);let r=(k=t.params)==null?void 0:k.some(s=>!s.bind);r&&(e=!1);let i="vconcat"in t||"hconcat"in t;if(r&&i)return t;if("vconcat"in t){let s=t.vconcat.map(m=>"mark"in m?T(m,{chartSelection:e,fieldSelection:a}):m);return $({...t,vconcat:s})}if("hconcat"in t){let s=t.hconcat.map(m=>"mark"in m?T(m,{chartSelection:e,fieldSelection:a}):m);return $({...t,hconcat:s})}if("layer"in t){let s=t.params&&t.params.length>0,m=a!==!1&&!s,v=[];if(m){let p=t.layer.flatMap(f=>"mark"in f?D(f):[]);v=[...new Set(p)],Array.isArray(a)&&(v=v.filter(f=>a.includes(f)))}let w=t.layer.map((p,f)=>{if(!("mark"in p))return p;let h=p;if(f===0&&v.length>0){let _=v.map(M=>O.legend(M));h={...h,params:[...h.params||[],..._]}}return h=q(h,e,f),h=J(h),f===0&&(h=B(h)),h});return{...t,layer:w}}if(!("mark"in t)||!S.isInteractive(t.mark))return t;let o=t;return o=Ot(o,a),o=q(o,e,void 0),o=J(o),o=B(o),o}function Ot(t,n){if(n===!1)return t;let e=D(t);Array.isArray(n)&&(e=e.filter(i=>n.includes(i)));let a=e.map(i=>O.legend(i)),r=[...t.params||[],...a];return{...t,params:r}}function q(t,n,e){if(n===!1)return t;let a;try{a=S.getMarkType(t.mark)}catch{return t}if(a==="geoshape")return t;let r=xt(t),i=n===!0?r.length>0?["point"]:_t(a):[n];if(!i||i.length===0)return t;let o=i.map(k=>k==="interval"?O.interval(t,e):O.point(t,e)),l=[...t.params||[],...o];return r.length>0&&i.includes("point")&&l.push(O.binColoring(e)),{...t,params:l}}function B(t){let n;try{n=S.getMarkType(t.mark)}catch{}if(n==="geoshape")return t;let e=t.params||[];return e.some(a=>a.bind==="scales")?t:{...t,params:[...e,O.panZoom()]}}function J(t){let n="encoding"in t?t.encoding:void 0,e=t.params||[],a=e.map(r=>r.name);return e.length===0||!S.isInteractive(t.mark)?t:{...t,mark:S.makeClickable(t.mark),encoding:G("opacity",n||{},a,t.mark)}}function _t(t){switch(t){case"arc":case"area":return["point"];case"text":case"bar":return["point","interval"];case"line":return;default:return["point","interval"]}}async function Mt(t){if(!t)return t;let n="datasets"in t?{...t.datasets}:{},e=async r=>{if(!r)return r;if("layer"in r){let l=await Promise.all(r.layer.map(e));r={...r,layer:l}}if("hconcat"in r){let l=await Promise.all(r.hconcat.map(e));r={...r,hconcat:l}}if("vconcat"in r){let l=await Promise.all(r.vconcat.map(e));r={...r,vconcat:l}}if("spec"in r&&(r={...r,spec:await e(r.spec)}),!r.data||!("url"in r.data))return r;let i;try{i=z(r.data.url)}catch{return r}let o=await rt(i.href,r.data.format);return n[i.pathname]=o,{...r,data:{name:i.pathname}}},a=await e(t);return Object.keys(n).length===0?a:{...a,datasets:n}}var d=Z(it(),1);pt("arrow",yt);var Nt=t=>{let n=(0,kt.c)(12),{value:e,setValue:a,chartSelection:r,fieldSelection:i,spec:o,embedOptions:l}=t,k,s;n[0]===o?(k=n[1],s=n[2]):(k=async()=>Mt(o),s=[o],n[0]=o,n[1]=k,n[2]=s);let{data:m,error:v}=gt(k,s);if(v){let p;return n[3]===v?p=n[4]:(p=(0,d.jsx)(ht,{error:v}),n[3]=v,n[4]=p),p}if(!m)return null;let w;return n[5]!==r||n[6]!==l||n[7]!==i||n[8]!==m||n[9]!==a||n[10]!==e?(w=(0,d.jsx)(Pt,{value:e,setValue:a,chartSelection:r,fieldSelection:i,spec:m,embedOptions:l}),n[5]=r,n[6]=l,n[7]=i,n[8]=m,n[9]=a,n[10]=e,n[11]=w):w=n[11],w},Pt=({value:t,setValue:n,chartSelection:e,fieldSelection:a,spec:r,embedOptions:i})=>{let{theme:o}=ct(),l=(0,x.useRef)(null),k=(0,x.useRef)(void 0),[s,m]=(0,x.useState)(),v=(0,x.useMemo)(()=>i&&"actions"in i?i.actions:{source:!1,compiled:!1},[i]),w=H(r),p=(0,x.useMemo)(()=>T(bt(w),{chartSelection:e,fieldSelection:a}),[w,e,a]),f=(0,x.useMemo)(()=>P(p),[p]),h=C(c=>{n({...t,...c})}),_=(0,x.useMemo)(()=>et((c,g)=>{j.debug("[Vega signal]",c,g);let b=V.mapValues(g,Ct);b=V.mapValues(b,It),h({[c]:b})},100),[h]),M=H(f),I=(0,x.useMemo)(()=>M.reduce((c,g)=>(y.PAN_ZOOM===g||y.isBinColoring(g)||c.push({signalName:g,handler:(b,Y)=>_(b,Y)}),c),[]),[M,_]),Q=C(c=>{j.error(c),j.debug(p),m(c)}),U=C(c=>{j.debug("[Vega view] created",c),k.current=c,m(void 0)}),X=()=>{let c=[];return y.hasPoint(f)&&c.push(["Point selection","click to select a point; hold shift for multi-select"]),y.hasInterval(f)&&c.push(["Interval selection","click and drag to select an interval"]),y.hasLegend(f)&&c.push(["Legend selection","click to select a legend item; hold shift for multi-select"]),y.hasPanZoom(f)&&c.push(["Pan","hold the meta key and drag"],["Zoom","hold the meta key and scroll"]),c.length===0?null:(0,d.jsx)(st,{delayDuration:300,side:"left",content:(0,d.jsx)("div",{className:"text-xs flex flex-col",children:c.map((g,b)=>(0,d.jsxs)("div",{children:[(0,d.jsxs)("span",{className:"font-bold tracking-wide",children:[g[0],":"]})," ",g[1]]},b))}),children:(0,d.jsx)(lt,{className:"absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground"})})},A=ut({ref:l,spec:p,options:{theme:o==="dark"?"dark":void 0,actions:v,mode:"vega-lite",tooltip:at.call,renderer:"canvas"},onError:Q,onEmbed:U});return(0,x.useEffect)(()=>(I.forEach(({signalName:c,handler:g})=>{try{A==null||A.view.addSignalListener(c,g)}catch(b){j.error(b)}}),()=>{I.forEach(({signalName:c,handler:g})=>{try{A==null||A.view.removeSignalListener(c,g)}catch(b){j.error(b)}})}),[A,I]),(0,d.jsxs)(d.Fragment,{children:[s&&(0,d.jsxs)(dt,{variant:"destructive",children:[(0,d.jsx)(ft,{children:s.message}),(0,d.jsx)("div",{className:"text-md",children:s.stack})]}),(0,d.jsxs)("div",{className:"relative",onPointerDown:ot.stopPropagation(),children:[(0,d.jsx)("div",{ref:l}),X()]})]})};function It(t){return t instanceof Set?[...t]:t}function Ct(t){return Array.isArray(t)?t.map(n=>n instanceof Date&&mt(n)?new Date(n).getTime():n):t}var Et=Nt;export{Et as default}; diff --git a/docs/assets/vega-loader.browser-C8wT63Va.js b/docs/assets/vega-loader.browser-C8wT63Va.js new file mode 100644 index 0000000..37960ab --- /dev/null +++ b/docs/assets/vega-loader.browser-C8wT63Va.js @@ -0,0 +1,6 @@ +import{a as Tt,n as _n,r as Wn,s as Jn,t as qn}from"./precisionRound-Cl9k9ZmS.js";import{i as _t,n as Hn,r as Gn,t as Zn}from"./defaultLocale-BLUna9fQ.js";import{C as Vn,N as Wt,S as Qn,T as Jt,_ as qt,a as Kn,b as it,c as Ht,i as Xn,l as Gt,n as tr,o as nr,p as Zt,r as rr,s as er,t as ar,v as st,w as ur,x as or}from"./defaultLocale-DzliDDTm.js";function E(t,n,r){return t.fields=n||[],t.fname=r,t}function ir(t){return t==null?null:t.fname}function Vt(t){return t==null?null:t.fields}function Qt(t){return t.length===1?sr(t[0]):lr(t)}var sr=t=>function(n){return n[t]},lr=t=>{let n=t.length;return function(r){for(let e=0;eo?l():o=i+1:c==="["?(i>o&&l(),a=o=i+1):c==="]"&&(a||v("Access path missing open bracket: "+t),a>0&&l(),a=0,o=i+1)}return a&&v("Access path missing closing bracket: "+t),e&&v("Access path missing closing quote: "+t),i>o&&(i++,l()),n}function lt(t,n,r){let e=wt(t);return t=e.length===1?e[0]:t,E((r&&r.get||Qt)(e),[t],n||t)}var cr=lt("id"),W=E(t=>t,[],"identity"),I=E(()=>0,[],"zero"),Kt=E(()=>1,[],"one"),fr=E(()=>!0,[],"true"),hr=E(()=>!1,[],"false"),gr=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(t=>typeof Object.prototype[t]=="function"),"__proto__"]);function pr(t,n,r){let e=[n].concat([].slice.call(r));console[t].apply(console,e)}var mr=0,dr=1,yr=2,vr=3,br=4;function Mr(t,n,r=pr){let e=t||0;return{level(a){return arguments.length?(e=+a,this):e},error(){return e>=1&&r(n||"error","ERROR",arguments),this},warn(){return e>=2&&r(n||"warn","WARN",arguments),this},info(){return e>=3&&r(n||"log","INFO",arguments),this},debug(){return e>=4&&r(n||"log","DEBUG",arguments),this}}}var J=Array.isArray;function $(t){return t===Object(t)}var Xt=t=>t!=="__proto__";function Cr(...t){return t.reduce((n,r)=>{for(let e in r)if(e==="signals")n.signals=Tr(n.signals,r.signals);else{let a=e==="legend"?{layout:1}:e==="style"?!0:null;jt(n,e,r[e],a)}return n},{})}function jt(t,n,r,e){if(!Xt(n))return;let a,u;if($(r)&&!J(r))for(a in u=$(t[n])?t[n]:t[n]={},r)e&&(e===!0||e[a])?jt(u,a,r[a]):Xt(a)&&(u[a]=r[a]);else t[n]=r}function Tr(t,n){if(t==null)return n;let r={},e=[];function a(u){r[u.name]||(r[u.name]=1,e.push(u))}return n.forEach(a),t.forEach(a),e}function P(t){return t[t.length-1]}function q(t){return t==null||t===""?null:+t}var tn=t=>n=>t*Math.exp(n),nn=t=>n=>Math.log(t*n),rn=t=>n=>Math.sign(n)*Math.log1p(Math.abs(n/t)),en=t=>n=>Math.sign(n)*Math.expm1(Math.abs(n))*t,ct=t=>n=>n<0?-((-n)**+t):n**+t;function ft(t,n,r,e){let a=r(t[0]),u=r(P(t)),o=(u-a)*n;return[e(a-o),e(u-o)]}function wr(t,n){return ft(t,n,q,W)}function jr(t,n){var r=Math.sign(t[0]);return ft(t,n,nn(r),tn(r))}function Dr(t,n,r){return ft(t,n,ct(r),ct(1/r))}function kr(t,n,r){return ft(t,n,rn(r),en(r))}function ht(t,n,r,e,a){let u=e(t[0]),o=e(P(t)),i=n==null?(u+o)/2:e(n);return[a(i+(u-i)*r),a(i+(o-i)*r)]}function Or(t,n,r){return ht(t,n,r,q,W)}function Ur(t,n,r){let e=Math.sign(t[0]);return ht(t,n,r,nn(e),tn(e))}function xr(t,n,r,e){return ht(t,n,r,ct(e),ct(1/e))}function Nr(t,n,r,e){return ht(t,n,r,rn(e),en(e))}function Ar(t){return 1+~~(new Date(t).getMonth()/3)}function Er(t){return 1+~~(new Date(t).getUTCMonth()/3)}function R(t){return t==null?[]:J(t)?t:[t]}function Sr(t,n,r){let e=t[0],a=t[1],u;return a=r-n?[n,r]:[e=Math.min(Math.max(e,n),r-u),e+u]}function B(t){return typeof t=="function"}var Fr="descending";function Pr(t,n,r){r||(r={}),n=R(n)||[];let e=[],a=[],u={},o=r.comparator||zr;return R(t).forEach((i,c)=>{i!=null&&(e.push(n[c]===Fr?-1:1),a.push(i=B(i)?i:lt(i,null,r)),(Vt(i)||[]).forEach(l=>u[l]=1))}),a.length===0?null:E(o(a,e),Object.keys(u))}var Dt=(t,n)=>(tn||n==null)&&t!=null?1:(n=n instanceof Date?+n:n,(t=t instanceof Date?+t:t)!==t&&n===n?-1:n!==n&&t===t?1:0),zr=(t,n)=>t.length===1?Yr(t[0],n[0]):Ir(t,n,t.length),Yr=(t,n)=>function(r,e){return Dt(t(r),t(e))*n},Ir=(t,n,r)=>(n.push(0),function(e,a){let u,o=0,i=-1;for(;o===0&&++it}function $r(t,n){let r;return e=>{r&&clearTimeout(r),r=setTimeout(()=>(n(e),r=null),t)}}function z(t){for(let n,r,e=1,a=arguments.length;eo&&(o=a))}else{for(a=n(t[r]);ro&&(o=a))}return[u,o]}function Br(t,n){let r=t.length,e=-1,a,u,o,i,c;if(n==null){for(;++e=u){a=o=u;break}if(e===r)return[-1,-1];for(i=c=e;++eu&&(a=u,i=e),o=u){a=o=u;break}if(e===r)return[-1,-1];for(i=c=e;++eu&&(a=u,i=e),o{a.set(u,t[u])}),a}function _r(t,n,r,e,a,u){if(!r&&r!==0)return u;let o=+r,i=t[0],c=P(t),l;cu&&(o=a,a=u,u=o),r=r===void 0||r,e=e===void 0||e,(r?a<=t:ai.replace(/\\(.)/g,"$1")):R(t));let e=t&&t.length,a=r&&r.get||Qt,u=i=>a(n?[i]:wt(i)),o;if(!e)o=function(){return""};else if(e===1){let i=u(t[0]);o=function(c){return""+i(c)}}else{let i=t.map(u);o=function(c){let l=""+i[0](c),h=0;for(;++h{n={},r={},e=0},u=(o,i)=>(++e>t&&(r=n,n={},e=1),n[o]=i);return a(),{clear:a,has:o=>N(n,o)||N(r,o),get:o=>N(n,o)?n[o]:N(r,o)?u(o,r[o]):void 0,set:(o,i)=>N(n,o)?n[o]=i:u(o,i)}}function Kr(t,n,r,e){let a=n.length,u=r.length;if(!u)return n;if(!a)return r;let o=e||new n.constructor(a+u),i=0,c=0,l=0;for(;i0?r[c++]:n[i++];for(;i=0;)r+=t;return r}function Xr(t,n,r,e){let a=r||" ",u=t+"",o=n-u.length;return o<=0?u:e==="left"?H(a,o)+u:e==="center"?H(a,~~(o/2))+u+H(a,Math.ceil(o/2)):u+H(a,o)}function ln(t){return t&&P(t)-t[0]||0}function mt(t){return J(t)?`[${t.map(n=>n===null?"null":mt(n))}]`:$(t)||pt(t)?JSON.stringify(t).replaceAll("\u2028","\\u2028").replaceAll("\u2029","\\u2029"):t}function cn(t){return t==null||t===""?null:!t||t==="false"||t==="0"?!1:!!t}var te=t=>sn(t)||un(t)?t:Date.parse(t);function fn(t,n){return n||(n=te),t==null||t===""?null:n(t)}function hn(t){return t==null||t===""?null:t+""}function gn(t){let n={},r=t.length;for(let e=0;e9999?"+"+T(t,6):T(t,4)}function ue(t){var n=t.getUTCHours(),r=t.getUTCMinutes(),e=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":ae(t.getUTCFullYear(),4)+"-"+T(t.getUTCMonth()+1,2)+"-"+T(t.getUTCDate(),2)+(a?"T"+T(n,2)+":"+T(r,2)+":"+T(e,2)+"."+T(a,3)+"Z":e?"T"+T(n,2)+":"+T(r,2)+":"+T(e,2)+"Z":r||n?"T"+T(n,2)+":"+T(r,2)+"Z":"")}function oe(t){var n=RegExp('["'+t+` +\r]`),r=t.charCodeAt(0);function e(s,f){var g,p,m=a(s,function(d,C){if(g)return g(d,C-1);p=d,g=f?ee(d,f):mn(d)});return m.columns=p||[],m}function a(s,f){var g=[],p=s.length,m=0,d=0,C,x=p<=0,j=!1;s.charCodeAt(p-1)===G&&--p,s.charCodeAt(p-1)===Ut&&--p;function y(){if(x)return kt;if(j)return j=!1,pn;var ut,ot=m,_;if(s.charCodeAt(ot)===Ot){for(;m++=p?x=!0:(_=s.charCodeAt(m++))===G?j=!0:_===Ut&&(j=!0,s.charCodeAt(m)===G&&++m),s.slice(ot+1,ut-1).replace(/""/g,'"')}for(;m1)e=pe(t,n,r);else for(a=0,e=Array(u=t.arcs.length);a(t[n]=1+r,t),{});function Mn(t){let n=R(t).slice(),r={};return n.length||v("Missing time unit."),n.forEach(e=>{N(xt,e)?r[e]=1:v(`Invalid time unit: ${e}.`)}),(r.week||r.day?1:0)+(r.quarter||r.month||r.date?1:0)+(r.dayofyear?1:0)>1&&v(`Incompatible time units: ${t}`),n.sort((e,a)=>xt[e]-xt[a]),n}var de={[b]:"%Y ",[D]:"Q%q ",[w]:"%b ",[k]:"%d ",[M]:"W%U ",day:"%a ",[F]:"%j ",[O]:"%H:00",[U]:"00:%M",[A]:":%S",[S]:".%L",[`${b}-${w}`]:"%Y-%m ",[`${b}-${w}-${k}`]:"%Y-%m-%d ",[`${O}-${U}`]:"%H:%M"};function ye(t,n){let r=z({},de,n),e=Mn(t),a=e.length,u="",o=0,i,c;for(o=0;oo;--i)if(c=e.slice(o,i).join("-"),r[c]!=null){u+=r[c],o=i;break}return u.trim()}var Y=new Date;function Nt(t){return Y.setFullYear(t),Y.setMonth(0),Y.setDate(1),Y.setHours(0,0,0,0),Y}function ve(t){return Cn(new Date(t))}function be(t){return At(new Date(t))}function Cn(t){return st.count(Nt(t.getFullYear())-1,t)}function At(t){return Zt.count(Nt(t.getFullYear())-1,t)}function Et(t){return Nt(t).getDay()}function Me(t,n,r,e,a,u,o){if(0<=t&&t<100){let i=new Date(-1,n,r,e,a,u,o);return i.setFullYear(t),i}return new Date(t,n,r,e,a,u,o)}function Ce(t){return Tn(new Date(t))}function Te(t){return St(new Date(t))}function Tn(t){let n=Date.UTC(t.getUTCFullYear(),0,1);return it.count(n-1,t)}function St(t){let n=Date.UTC(t.getUTCFullYear(),0,1);return qt.count(n-1,t)}function Ft(t){return Y.setTime(Date.UTC(t,0,1)),Y.getUTCDay()}function we(t,n,r,e,a,u,o){if(0<=t&&t<100){let i=new Date(Date.UTC(-1,n,r,e,a,u,o));return i.setUTCFullYear(r.y),i}return new Date(Date.UTC(t,n,r,e,a,u,o))}function wn(t,n,r,e,a){let u=n||1,o=P(t),i=(C,x,j)=>(j||(j=C),je(r[j],e[j],C===o&&u,x)),c=new Date,l=gn(t),h=l.year?i(b):an(2012),s=l.month?i(w):l.quarter?i(D):I,f=l.week&&l.day?i("day",1,M+"day"):l.week?i(M,1):l.day?i("day",1):l.date?i(k,1):l.dayofyear?i(F,1):Kt,g=l.hours?i(O):I,p=l.minutes?i(U):I,m=l.seconds?i(A):I,d=l.milliseconds?i(S):I;return function(C){c.setTime(+C);let x=h(c);return a(x,s(c),f(c,x),g(c),p(c),m(c),d(c))}}function je(t,n,r,e){let a=r<=1?t:e?(u,o)=>e+r*Math.floor((t(u,o)-e)/r):(u,o)=>r*Math.floor(t(u,o)/r);return n?(u,o)=>n(a(u,o),o):a}function L(t,n,r){return n+t*7-(r+6)%7}var De={[b]:t=>t.getFullYear(),[D]:t=>Math.floor(t.getMonth()/3),[w]:t=>t.getMonth(),[k]:t=>t.getDate(),[O]:t=>t.getHours(),[U]:t=>t.getMinutes(),[A]:t=>t.getSeconds(),[S]:t=>t.getMilliseconds(),[F]:t=>Cn(t),[M]:t=>At(t),[M+"day"]:(t,n)=>L(At(t),t.getDay(),Et(n)),day:(t,n)=>L(1,t.getDay(),Et(n))},ke={[D]:t=>3*t,[M]:(t,n)=>L(t,0,Et(n))};function Oe(t,n){return wn(t,n||1,De,ke,Me)}var Ue={[b]:t=>t.getUTCFullYear(),[D]:t=>Math.floor(t.getUTCMonth()/3),[w]:t=>t.getUTCMonth(),[k]:t=>t.getUTCDate(),[O]:t=>t.getUTCHours(),[U]:t=>t.getUTCMinutes(),[A]:t=>t.getUTCSeconds(),[S]:t=>t.getUTCMilliseconds(),[F]:t=>Tn(t),[M]:t=>St(t),day:(t,n)=>L(1,t.getUTCDay(),Ft(n)),[M+"day"]:(t,n)=>L(St(t),t.getUTCDay(),Ft(n))},xe={[D]:t=>3*t,[M]:(t,n)=>L(t,0,Ft(n))};function Ne(t,n){return wn(t,n||1,Ue,xe,we)}var Ae={[b]:nr,[D]:Ht.every(3),[w]:Ht,[M]:Zt,[k]:st,day:st,[F]:st,[O]:or,[U]:Vn,[A]:Jt,[S]:Wt},Ee={[b]:er,[D]:Gt.every(3),[w]:Gt,[M]:qt,[k]:it,day:it,[F]:it,[O]:Qn,[U]:ur,[A]:Jt,[S]:Wt};function dt(t){return Ae[t]}function yt(t){return Ee[t]}function jn(t,n,r){return t?t.offset(n,r):void 0}function Se(t,n,r){return jn(dt(t),n,r)}function Fe(t,n,r){return jn(yt(t),n,r)}function Dn(t,n,r,e){return t?t.range(n,r,e):void 0}function Pe(t,n,r,e){return Dn(dt(t),n,r,e)}function ze(t,n,r,e){return Dn(yt(t),n,r,e)}var Z=1e3,V=Z*60,Q=V*60,vt=Q*24,Ye=vt*7,kn=vt*30,Pt=vt*365,On=[b,w,k,O,U,A,S],K=On.slice(0,-1),X=K.slice(0,-1),tt=X.slice(0,-1),Ie=tt.slice(0,-1),$e=[b,M],Un=[b,w],xn=[b],nt=[[K,1,Z],[K,5,5*Z],[K,15,15*Z],[K,30,30*Z],[X,1,V],[X,5,5*V],[X,15,15*V],[X,30,30*V],[tt,1,Q],[tt,3,3*Q],[tt,6,6*Q],[tt,12,12*Q],[Ie,1,vt],[$e,1,Ye],[Un,1,kn],[Un,3,3*kn],[xn,1,Pt]];function Re(t){let n=t.extent,r=t.maxbins||40,e=Math.abs(ln(n))/r,a=Jn(i=>i[2]).right(nt,e),u,o;return a===nt.length?(u=xn,o=Tt(n[0]/Pt,n[1]/Pt,r)):a?(a=nt[e/nt[a-1][2]n[r]||(n[r]=t(r))}function Be(t,n){return r=>{let e=t(r),a=e.indexOf(n);if(a<0)return e;let u=Le(e,a),o=ua;)if(e[u]!=="0"){++u;break}return e.slice(0,u)+o}}function Le(t,n){let r=t.lastIndexOf("e"),e;if(r>0)return r;for(r=t.length;--r>n;)if(e=t.charCodeAt(r),e>=48&&e<=57)return r+1}function Nn(t){let n=rt(t.format),r=t.formatPrefix;return{format:n,formatPrefix:r,formatFloat(e){let a=_t(e||",");if(a.precision==null){switch(a.precision=12,a.type){case"%":a.precision-=2;break;case"e":--a.precision;break}return Be(n(a),n(".1f")(1)[1])}else return n(a)},formatSpan(e,a,u,o){o=_t(o??",f");let i=Tt(e,a,u),c=Math.max(Math.abs(e),Math.abs(a)),l;if(o.precision==null)switch(o.type){case"s":return isNaN(l=_n(i,c))||(o.precision=l),r(o,c);case"":case"e":case"g":case"p":case"r":isNaN(l=qn(i,c))||(o.precision=l-(o.type==="e"));break;case"f":case"%":isNaN(l=Wn(i))||(o.precision=l-(o.type==="%")*2);break}return n(o)}}}var zt;An();function An(){return zt=Nn({format:Zn,formatPrefix:Hn})}function En(t){return Nn(Gn(t))}function bt(t){return arguments.length?zt=En(t):zt}function Sn(t,n,r){r||(r={}),$(r)||v(`Invalid time multi-format specifier: ${r}`);let e=n(A),a=n(U),u=n(O),o=n(k),i=n(M),c=n(w),l=n(D),h=n(b),s=t(r.milliseconds||".%L"),f=t(r.seconds||":%S"),g=t(r.minutes||"%I:%M"),p=t(r.hours||"%I %p"),m=t(r.date||r.day||"%a %d"),d=t(r.week||"%b %d"),C=t(r.month||"%B"),x=t(r.quarter||"%B"),j=t(r.year||"%Y");return y=>(e(y)pt(e)?n(e):Sn(n,dt,e),utcFormat:e=>pt(e)?r(e):Sn(r,yt,e),timeParse:rt(t.parse),utcParse:rt(t.utcParse)}}var Yt;Pn();function Pn(){return Yt=Fn({format:ar,parse:tr,utcFormat:rr,utcParse:Xn})}function zn(t){return Fn(Kn(t))}function et(t){return arguments.length?Yt=zn(t):Yt}var It=(t,n)=>z({},t,n);function _e(t,n){return It(t?En(t):bt(),n?zn(n):et())}function Yn(t,n){let r=arguments.length;return r&&r!==2&&v("defaultLocale expects either zero or two arguments."),r?It(bt(t),et(n)):It(bt(),et())}function We(){return An(),Pn(),Yn()}var Je=/^(data:|([A-Za-z]+:)?\/\/)/,qe=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,He=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ge="file://";function Ze(t){return n=>({options:n||{},sanitize:Qe,load:Ve,fileAccess:!1,file:Ke(),http:ta})}async function Ve(t,n){let r=await this.sanitize(t,n),e=r.href;return r.localFile?this.file(e):this.http(e,n==null?void 0:n.http)}async function Qe(t,n){n=z({},this.options,n);let r=this.fileAccess,e={href:null},a,u,o,i=qe.test(t.replace(He,""));(t==null||typeof t!="string"||!i)&&v("Sanitize failure, invalid URI: "+mt(t));let c=Je.test(t);return(o=n.baseURL)&&!c&&(!t.startsWith("/")&&!o.endsWith("/")&&(t="/"+t),t=o+t),u=(a=t.startsWith(Ge))||n.mode==="file"||n.mode!=="http"&&!c&&r,a?t=t.slice(7):t.startsWith("//")&&(n.defaultProtocol==="file"?(t=t.slice(2),u=!0):t=(n.defaultProtocol||"http")+":"+t),Object.defineProperty(e,"localFile",{value:!!u}),e.href=t,n.target&&(e.target=n.target+""),n.rel&&(e.rel=n.rel+""),n.context==="image"&&n.crossOrigin&&(e.crossOrigin=n.crossOrigin+""),e}function Ke(t){return Xe}async function Xe(){v("No file system access.")}async function ta(t,n){let r=z({},this.options.http,n),e=n&&n.response,a=await fetch(t,r);return a.ok?B(a[e])?a[e]():a.text():v(a.status+""+a.statusText)}var na=t=>t!=null&&t===t,ra=t=>t==="true"||t==="false"||t===!0||t===!1,ea=t=>!Number.isNaN(Date.parse(t)),In=t=>!Number.isNaN(+t)&&!(t instanceof Date),aa=t=>In(t)&&Number.isInteger(+t),$t={boolean:cn,integer:q,number:q,date:fn,string:hn,unknown:W},Mt=[ra,aa,In,ea],ua=["boolean","integer","number","date"];function $n(t,n){if(!t||!t.length)return"unknown";let r=t.length,e=Mt.length,a=Mt.map((u,o)=>o+1);for(let u=0,o=0,i,c;uu===0?o:u,0)-1]}function Rn(t,n){return n.reduce((r,e)=>(r[e]=$n(t,e),r),{})}function Bn(t){let n=function(r,e){let a={delimiter:t};return Rt(r,e?z(e,a):a)};return n.responseType="text",n}function Rt(t,n){return n.header&&(t=n.header.map(mt).join(n.delimiter)+` +`+t),oe(n.delimiter).parse(t+"")}Rt.responseType="text";function oa(t){return typeof Buffer=="function"&&B(Buffer.isBuffer)?Buffer.isBuffer(t):!1}function Bt(t,n){let r=n&&n.property?lt(n.property):W;return $(t)&&!oa(t)?ia(r(t),n):r(JSON.parse(t))}Bt.responseType="json";function ia(t,n){return!J(t)&&on(t)&&(t=[...t]),n&&n.copy?JSON.parse(JSON.stringify(t)):t}var sa={interior:(t,n)=>t!==n,exterior:(t,n)=>t===n};function Ln(t,n){let r,e,a,u;return t=Bt(t,n),n&&n.feature?(r=ce,a=n.feature):n&&n.mesh?(r=he,a=n.mesh,u=sa[n.filter]):v("Missing TopoJSON feature or mesh parameter."),e=(e=t.objects[a])?r(t,e,u):v("Invalid TopoJSON object: "+a),e&&e.features||[e]}Ln.responseType="json";var Ct={dsv:Rt,csv:Bn(","),tsv:Bn(" "),json:Bt,topojson:Ln};function Lt(t,n){return arguments.length>1?(Ct[t]=n,this):N(Ct,t)?Ct[t]:null}function la(t){let n=Lt(t);return n&&n.responseType||"text"}function ca(t,n,r,e){n||(n={});let a=Lt(n.type||"json");return a||v("Unknown data format type: "+n.type),t=a(t,n),n.parse&&fa(t,n.parse,r,e),N(t,"columns")&&delete t.columns,t}function fa(t,n,r,e){if(!t.length)return;let a=et();r||(r=a.timeParse),e||(e=a.utcParse);let u=t.columns||Object.keys(t[0]),o,i,c,l,h,s;n==="auto"&&(n=Rn(t,u)),u=Object.keys(n);let f=u.map(g=>{let p=n[g],m,d;if(p&&(p.startsWith("date:")||p.startsWith("utc:")))return m=p.split(/:(.+)?/,2),d=m[1],(d[0]==="'"&&d[d.length-1]==="'"||d[0]==='"'&&d[d.length-1]==='"')&&(d=d.slice(1,-1)),(m[0]==="utc"?e:r)(d);if(!$t[p])throw Error("Illegal format pattern: "+g+":"+p);return $t[p]});for(c=0,h=t.length,s=u.length;c!?:\/|]/;function s(t,e,r){return e.tokenize=r,r(t,e)}function l(t,e){var r=e.beforeParams;e.beforeParams=!1;var n=t.next();if(n=="'"&&!e.inString&&e.inParams)return e.lastTokenWasBuiltin=!1,s(t,e,m(n));if(n=='"'){if(e.lastTokenWasBuiltin=!1,e.inString)return e.inString=!1,"string";if(e.inParams)return s(t,e,m(n))}else{if(/[\[\]{}\(\),;\.]/.test(n))return n=="("&&r?e.inParams=!0:n==")"&&(e.inParams=!1,e.lastTokenWasBuiltin=!0),null;if(/\d/.test(n))return e.lastTokenWasBuiltin=!1,t.eatWhile(/[\w\.]/),"number";if(n=="#"&&t.eat("*"))return e.lastTokenWasBuiltin=!1,s(t,e,p);if(n=="#"&&t.match(/ *\[ *\[/))return e.lastTokenWasBuiltin=!1,s(t,e,h);if(n=="#"&&t.eat("#"))return e.lastTokenWasBuiltin=!1,t.skipToEnd(),"comment";if(n=="$")return t.eat("!"),t.eatWhile(/[\w\d\$_\.{}-]/),c&&c.propertyIsEnumerable(t.current())?"keyword":(e.lastTokenWasBuiltin=!0,e.beforeParams=!0,"builtin");if(k.test(n))return e.lastTokenWasBuiltin=!1,t.eatWhile(k),"operator";t.eatWhile(/[\w\$_{}@]/);var a=t.current();return f&&f.propertyIsEnumerable(a)?"keyword":i&&i.propertyIsEnumerable(a)||t.current().match(/^#@?[a-z0-9_]+ *$/i)&&t.peek()=="("&&!(i&&i.propertyIsEnumerable(a.toLowerCase()))?(e.beforeParams=!0,e.lastTokenWasBuiltin=!1,"keyword"):e.inString?(e.lastTokenWasBuiltin=!1,"string"):t.pos>a.length&&t.string.charAt(t.pos-a.length-1)=="."&&e.lastTokenWasBuiltin?"builtin":(e.lastTokenWasBuiltin=!1,null)}}function m(t){return function(e,r){for(var n=!1,a,u=!1;(a=e.next())!=null;){if(a==t&&!n){u=!0;break}if(t=='"'&&e.peek()=="$"&&!n){r.inString=!0,u=!0;break}n=!n&&a=="\\"}return u&&(r.tokenize=l),"string"}}function p(t,e){for(var r=!1,n;n=t.next();){if(n=="#"&&r){e.tokenize=l;break}r=n=="*"}return"comment"}function h(t,e){for(var r=0,n;n=t.next();){if(n=="#"&&r==2){e.tokenize=l;break}n=="]"?r++:n!=" "&&(r=0)}return"meta"}const b={name:"velocity",startState:function(){return{tokenize:l,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(t,e){return t.eatSpace()?null:e.tokenize(t,e)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}};export{b as t}; diff --git a/docs/assets/verilog-C0Wzs7-f.js b/docs/assets/verilog-C0Wzs7-f.js new file mode 100644 index 0000000..5905a05 --- /dev/null +++ b/docs/assets/verilog-C0Wzs7-f.js @@ -0,0 +1 @@ +function T(i){var r=i.statementIndentUnit,s=i.dontAlignCalls,c=i.noIndentKeywords||[],m=i.multiLineStrings,l=i.hooks||{};function v(e){for(var n={},t=e.split(" "),a=0;a=0)return a}var o=e.context,w=n&&n.charAt(0);o.type=="statement"&&w=="}"&&(o=o.prev);var I=!1,E=n.match(D);return E&&(I=q(E[0],o.type)),o.type=="statement"?o.indented+(w=="{"?0:r||t.unit):V.test(o.type)&&o.align&&!s?o.column+(I?0:1):o.type==")"&&!I?o.indented+(r||t.unit):o.indented+(I?0:t.unit)},languageData:{indentOnInput:G(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}const H=T({});var N={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"},O={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},z=3,C=!1,L=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,J=/^[! ] */,W=/^\/[\/\*]/;const Q=T({hooks:{electricInput:!1,token:function(i,r){var s=void 0,c;if(i.sol()&&!r.tlvInBlockComment){i.peek()=="\\"&&(s="def",i.skipToEnd(),i.string.match(/\\SV/)?r.tlvCodeActive=!1:i.string.match(/\\TLV/)&&(r.tlvCodeActive=!0)),r.tlvCodeActive&&i.pos==0&&r.indented==0&&(c=i.match(J,!1))&&(r.indented=c[0].length);var m=r.indented,l=m/z;if(l<=r.tlvIndentationStyle.length){var v=i.string.length==m,g=l*z;if(g0||(r.tlvIndentationStyle[l]=O[h],C&&(r.statementComment=!1),l++))}if(!v)for(;r.tlvIndentationStyle.length>l;)r.tlvIndentationStyle.pop()}r.tlvNextIndent=m}if(r.tlvCodeActive){var k=!1;C&&(k=i.peek()!=" "&&s===void 0&&!r.tlvInBlockComment&&i.column()==r.tlvIndentationStyle.length*z,k&&(r.statementComment&&(k=!1),r.statementComment=i.match(W,!1)));var c;if(s===void 0)if(r.tlvInBlockComment)i.match(/^.*?\*\//)?(r.tlvInBlockComment=!1,C&&!i.eol()&&(r.statementComment=!1)):i.skipToEnd(),s="comment";else if((c=i.match(W))&&!r.tlvInBlockComment)c[0]=="//"?i.skipToEnd():r.tlvInBlockComment=!0,s="comment";else if(c=i.match(L)){var _=c[1],S=c[2];N.hasOwnProperty(_)&&(S.length>0||i.eol())?s=N[_]:i.backUp(i.current().length-1)}else i.match(/^\t+/)?s="invalid":i.match(/^[\[\]{}\(\);\:]+/)?s="meta":(c=i.match(/^[mM]4([\+_])?[\w\d_]*/))?s=c[1]=="+"?"keyword.special":"keyword":i.match(/^ +/)?i.eol()&&(s="error"):i.match(/^[\w\d_]+/)?s="number":i.next()}else i.match(/^[mM]4([\w\d_]*)/)&&(s="keyword");return s},indent:function(i){return i.tlvCodeActive==1?i.tlvNextIndent:-1},startState:function(i){i.tlvIndentationStyle=[],i.tlvCodeActive=!0,i.tlvNextIndent=-1,i.tlvInBlockComment=!1,C&&(i.statementComment=!1)}}});export{H as n,Q as t}; diff --git a/docs/assets/verilog-D9S6puFO.js b/docs/assets/verilog-D9S6puFO.js new file mode 100644 index 0000000..91385ce --- /dev/null +++ b/docs/assets/verilog-D9S6puFO.js @@ -0,0 +1 @@ +import{n as o,t as r}from"./verilog-C0Wzs7-f.js";export{r as tlv,o as verilog}; diff --git a/docs/assets/verilog-DEtsCQZH.js b/docs/assets/verilog-DEtsCQZH.js new file mode 100644 index 0000000..69005d9 --- /dev/null +++ b/docs/assets/verilog-DEtsCQZH.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Verilog","fileTypes":["v","vh"],"name":"verilog","patterns":[{"include":"#comments"},{"include":"#module_pattern"},{"include":"#keywords"},{"include":"#constants"},{"include":"#strings"},{"include":"#operators"}],"repository":{"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.verilog"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.verilog"}},"end":"\\\\n","name":"comment.line.double-slash.verilog"}]},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.c-style.verilog"}]},"constants":{"patterns":[{"match":"`(?!(celldefine|endcelldefine|default_nettype|define|undef|ifdef|ifndef|else|endif|include|resetall|timescale|unconnected_drive|nounconnected_drive))[A-Z_a-z][$0-9A-Z_a-z]*","name":"variable.other.constant.verilog"},{"match":"[0-9]*\'[BDHObdho][XZ_xz\\\\h]+\\\\b","name":"constant.numeric.sized_integer.verilog"},{"captures":{"1":{"name":"constant.numeric.integer.verilog"},"2":{"name":"punctuation.separator.range.verilog"},"3":{"name":"constant.numeric.integer.verilog"}},"match":"\\\\b(\\\\d+)(:)(\\\\d+)\\\\b","name":"meta.block.numeric.range.verilog"},{"match":"\\\\b\\\\d[_\\\\d]*(?i:e\\\\d+)?\\\\b","name":"constant.numeric.integer.verilog"},{"match":"\\\\b\\\\d+\\\\.\\\\d+(?i:e\\\\d+)?\\\\b","name":"constant.numeric.real.verilog"},{"match":"#\\\\d+","name":"constant.numeric.delay.verilog"},{"match":"\\\\b[01XZxz]+\\\\b","name":"constant.numeric.logic.verilog"}]},"instantiation_patterns":{"patterns":[{"include":"#keywords"},{"begin":"^\\\\s*(?!always|and|assign|output|input|inout|wire|module)([A-Za-z][0-9A-Z_a-z]*)\\\\s+([A-Za-z][0-9A-Z_a-z]*)(?])=?|([!=])?==?|!|&&?|\\\\|\\\\|?|\\\\^?~|~\\\\^?","name":"keyword.operator.verilog"}]},"parenthetical_list":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.list.verilog"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.list.verilog"}},"name":"meta.block.parenthetical_list.verilog","patterns":[{"include":"#parenthetical_list"},{"include":"#comments"},{"include":"#keywords"},{"include":"#constants"},{"include":"#strings"}]}]},"strings":{"patterns":[{"begin":"\\"","end":"\\"","name":"string.quoted.double.verilog","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.verilog"}]}]}},"scopeName":"source.verilog"}'))];export{e as default}; diff --git a/docs/assets/vesper-BRSTM5zn.js b/docs/assets/vesper-BRSTM5zn.js new file mode 100644 index 0000000..c065871 --- /dev/null +++ b/docs/assets/vesper-BRSTM5zn.js @@ -0,0 +1 @@ +var t=Object.freeze(JSON.parse('{"colors":{"activityBar.background":"#101010","activityBar.foreground":"#A0A0A0","activityBarBadge.background":"#FFC799","activityBarBadge.foreground":"#000","badge.background":"#FFC799","badge.foreground":"#000","button.background":"#FFC799","button.foreground":"#000","button.hoverBackground":"#FFCFA8","diffEditor.insertedLineBackground":"#99FFE415","diffEditor.insertedTextBackground":"#99FFE415","diffEditor.removedLineBackground":"#FF808015","diffEditor.removedTextBackground":"#FF808015","editor.background":"#101010","editor.foreground":"#FFF","editor.selectionBackground":"#FFFFFF25","editor.selectionHighlightBackground":"#FFFFFF25","editorBracketHighlight.foreground1":"#A0A0A0","editorBracketHighlight.foreground2":"#A0A0A0","editorBracketHighlight.foreground3":"#A0A0A0","editorBracketHighlight.foreground4":"#A0A0A0","editorBracketHighlight.foreground5":"#A0A0A0","editorBracketHighlight.foreground6":"#A0A0A0","editorBracketHighlight.unexpectedBracket.foreground":"#FF8080","editorError.foreground":"#FF8080","editorGroupHeader.tabsBackground":"#101010","editorGutter.addedBackground":"#99FFE4","editorGutter.deletedBackground":"#FF8080","editorGutter.modifiedBackground":"#FFC799","editorHoverWidget.background":"#161616","editorHoverWidget.border":"#282828","editorInlayHint.background":"#1C1C1C","editorInlayHint.foreground":"#A0A0A0","editorLineNumber.foreground":"#505050","editorOverviewRuler.border":"#101010","editorWarning.foreground":"#FFC799","editorWidget.background":"#101010","focusBorder":"#FFC799","icon.foreground":"#A0A0A0","input.background":"#1C1C1C","list.activeSelectionBackground":"#232323","list.activeSelectionForeground":"#FFC799","list.errorForeground":"#FF8080","list.highlightForeground":"#FFC799","list.hoverBackground":"#282828","list.inactiveSelectionBackground":"#232323","scrollbarSlider.background":"#34343480","scrollbarSlider.hoverBackground":"#343434","selection.background":"#666","settings.modifiedItemIndicator":"#FFC799","sideBar.background":"#101010","sideBarSectionHeader.background":"#101010","sideBarSectionHeader.foreground":"#A0A0A0","sideBarTitle.foreground":"#A0A0A0","statusBar.background":"#101010","statusBar.debuggingBackground":"#FF7300","statusBar.debuggingForeground":"#FFF","statusBar.foreground":"#A0A0A0","statusBarItem.remoteBackground":"#FFC799","statusBarItem.remoteForeground":"#000","tab.activeBackground":"#161616","tab.activeBorder":"#FFC799","tab.border":"#101010","tab.inactiveBackground":"#101010","textLink.activeForeground":"#FFCFA8","textLink.foreground":"#FFC799","titleBar.activeBackground":"#101010","titleBar.activeForeground":"#7E7E7E","titleBar.inactiveBackground":"#101010","titleBar.inactiveForeground":"#707070"},"displayName":"Vesper","name":"vesper","tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#8b8b8b94"}},{"scope":["variable","string constant.other.placeholder","entity.name.tag"],"settings":{"foreground":"#FFF"}},{"scope":["constant.other.color"],"settings":{"foreground":"#FFF"}},{"scope":["invalid","invalid.illegal"],"settings":{"foreground":"#FF8080"}},{"scope":["keyword","storage.type","storage.modifier"],"settings":{"foreground":"#A0A0A0"}},{"scope":["keyword.control","constant.other.color","punctuation.definition.tag","punctuation.separator.inheritance.php","punctuation.definition.tag.html","punctuation.definition.tag.begin.html","punctuation.definition.tag.end.html","punctuation.section.embedded","keyword.other.template","keyword.other.substitution"],"settings":{"foreground":"#A0A0A0"}},{"scope":["entity.name.tag","meta.tag.sgml","markup.deleted.git_gutter"],"settings":{"foreground":"#FFC799"}},{"scope":["entity.name.function","variable.function","support.function","keyword.other.special-method"],"settings":{"foreground":"#FFC799"}},{"scope":["meta.block variable.other"],"settings":{"foreground":"#FFF"}},{"scope":["support.other.variable","string.other.link"],"settings":{"foreground":"#FFF"}},{"scope":["constant.numeric","support.constant","constant.character","constant.escape","keyword.other.unit","keyword.other","constant.language.boolean"],"settings":{"foreground":"#FFC799"}},{"scope":["string","constant.other.symbol","constant.other.key","meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js"],"settings":{"foreground":"#99FFE4"}},{"scope":["entity.name","support.type","support.class","support.other.namespace.use.php","meta.use.php","support.other.namespace.php","markup.changed.git_gutter","support.type.sys-types"],"settings":{"foreground":"#FFC799"}},{"scope":["source.css support.type.property-name","source.sass support.type.property-name","source.scss support.type.property-name","source.less support.type.property-name","source.stylus support.type.property-name","source.postcss support.type.property-name","source.postcss support.type.property-name","support.type.vendored.property-name.css","source.css.scss entity.name.tag","variable.parameter.keyframe-list.css","meta.property-name.css","variable.parameter.url.scss","meta.property-value.scss","meta.property-value.css"],"settings":{"foreground":"#FFF"}},{"scope":["entity.name.module.js","variable.import.parameter.js","variable.other.class.js"],"settings":{"foreground":"#FF8080"}},{"scope":["variable.language"],"settings":{"foreground":"#A0A0A0"}},{"scope":["entity.name.method.js"],"settings":{"foreground":"#FFFF"}},{"scope":["meta.class-method.js entity.name.function.js","variable.function.constructor"],"settings":{"foreground":"#FFFF"}},{"scope":["entity.other.attribute-name","meta.property-list.scss","meta.attribute-selector.scss","meta.property-value.css","entity.other.keyframe-offset.css","meta.selector.css","entity.name.tag.reference.scss","entity.name.tag.nesting.css","punctuation.separator.key-value.css"],"settings":{"foreground":"#A0A0A0"}},{"scope":["text.html.basic entity.other.attribute-name.html","text.html.basic entity.other.attribute-name"],"settings":{"foreground":"#FFC799"}},{"scope":["entity.other.attribute-name.class","entity.other.attribute-name.id","meta.attribute-selector.scss","variable.parameter.misc.css"],"settings":{"foreground":"#FFC799"}},{"scope":["source.sass keyword.control","meta.attribute-selector.scss"],"settings":{"foreground":"#99FFE4"}},{"scope":["markup.inserted"],"settings":{"foreground":"#99FFE4"}},{"scope":["markup.deleted"],"settings":{"foreground":"#FF8080"}},{"scope":["markup.changed"],"settings":{"foreground":"#A0A0A0"}},{"scope":["string.regexp"],"settings":{"foreground":"#A0A0A0"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#A0A0A0"}},{"scope":["*url*","*link*","*uri*"],"settings":{"fontStyle":"underline"}},{"scope":["tag.decorator.js entity.name.tag.js","tag.decorator.js punctuation.definition.tag.js"],"settings":{"foreground":"#FFFF"}},{"scope":["source.js constant.other.object.key.js string.unquoted.label.js"],"settings":{"fontStyle":"italic","foreground":"#FF8080"}},{"scope":["source.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFC799"}},{"scope":["text.html.markdown","punctuation.definition.list_item.markdown"],"settings":{"foreground":"#FFF"}},{"scope":["text.html.markdown markup.inline.raw.markdown"],"settings":{"foreground":"#A0A0A0"}},{"scope":["text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown"],"settings":{"foreground":"#FFF"}},{"scope":["markdown.heading","markup.heading | markup.heading entity.name","markup.heading.markdown punctuation.definition.heading.markdown","markup.heading","markup.inserted.git_gutter"],"settings":{"foreground":"#FFC799"}},{"scope":["markup.italic"],"settings":{"fontStyle":"italic","foreground":"#FFF"}},{"scope":["markup.bold","markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#FFF"}},{"scope":["markup.bold markup.italic","markup.italic markup.bold","markup.quote markup.bold","markup.bold markup.italic string","markup.italic markup.bold string","markup.quote markup.bold string"],"settings":{"fontStyle":"bold","foreground":"#FFF"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline","foreground":"#FFC799"}},{"scope":["markup.quote punctuation.definition.blockquote.markdown"],"settings":{"foreground":"#FFF"}},{"scope":["markup.quote"]},{"scope":["string.other.link.title.markdown"],"settings":{"foreground":"#FFFF"}},{"scope":["string.other.link.description.title.markdown"],"settings":{"foreground":"#A0A0A0"}},{"scope":["constant.other.reference.link.markdown"],"settings":{"foreground":"#FFC799"}},{"scope":["markup.raw.block"],"settings":{"foreground":"#A0A0A0"}},{"scope":["markup.raw.block.fenced.markdown"],"settings":{"foreground":"#00000050"}},{"scope":["punctuation.definition.fenced.markdown"],"settings":{"foreground":"#00000050"}},{"scope":["markup.raw.block.fenced.markdown","variable.language.fenced.markdown","punctuation.section.class.end"],"settings":{"foreground":"#FFF"}},{"scope":["variable.language.fenced.markdown"],"settings":{"foreground":"#FFF"}},{"scope":["meta.separator"],"settings":{"fontStyle":"bold","foreground":"#65737E"}},{"scope":["markup.table"],"settings":{"foreground":"#FFF"}}],"type":"dark"}'));export{t as default}; diff --git a/docs/assets/vhdl-DyPzTKhr.js b/docs/assets/vhdl-DyPzTKhr.js new file mode 100644 index 0000000..2142ec4 --- /dev/null +++ b/docs/assets/vhdl-DyPzTKhr.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"VHDL","fileTypes":["vhd","vhdl","vho","vht"],"name":"vhdl","patterns":[{"include":"#block_processing"},{"include":"#cleanup"}],"repository":{"architecture_pattern":{"patterns":[{"begin":"\\\\b((?i:architecture))\\\\s+(([A-z][0-9A-z]*)|(.+))(?=\\\\s)\\\\s+((?i:of))\\\\s+(([A-Za-z][0-9A-Z_a-z]*)|(.+?))(?=\\\\s*(?i:is))\\\\b","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.type.architecture.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"5":{"name":"keyword.language.vhdl"},"7":{"name":"entity.name.type.entity.reference.vhdl"},"8":{"name":"invalid.illegal.invalid.identifier.vhdl"}},"end":"\\\\b((?i:end))(\\\\s+((?i:architecture)))?(\\\\s+((\\\\3)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"6":{"name":"entity.name.type.architecture.end.vhdl"},"7":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"name":"support.block.architecture","patterns":[{"include":"#block_pattern"},{"include":"#function_definition_pattern"},{"include":"#procedure_definition_pattern"},{"include":"#component_pattern"},{"include":"#if_pattern"},{"include":"#process_pattern"},{"include":"#type_pattern"},{"include":"#record_pattern"},{"include":"#for_pattern"},{"include":"#entity_instantiation_pattern"},{"include":"#component_instantiation_pattern"},{"include":"#cleanup"}]}]},"attribute_list":{"patterns":[{"begin":"'\\\\(","beginCaptures":{"0":{"name":"punctuation.vhdl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#parenthetical_list"},{"include":"#cleanup"}]}]},"block_pattern":{"patterns":[{"begin":"^\\\\s*(([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*)?(\\\\s*(?i:block))","beginCaptures":{"2":{"name":"meta.block.block.name"},"3":{"name":"keyword.language.vhdl"},"4":{"name":"keyword.language.vhdl"}},"end":"((?i:end\\\\s+block))(\\\\s+((\\\\2)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"2":{"name":"meta.block.block.end"},"5":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"name":"meta.block.block","patterns":[{"include":"#control_patterns"},{"include":"#cleanup"}]}]},"block_processing":{"patterns":[{"include":"#package_pattern"},{"include":"#package_body_pattern"},{"include":"#entity_pattern"},{"include":"#architecture_pattern"}]},"case_pattern":{"patterns":[{"begin":"^\\\\s*((([A-Za-z][0-9A-Z_a-z]*)|(.+?))\\\\s*:\\\\s*)?\\\\b((?i:case))\\\\b","beginCaptures":{"3":{"name":"entity.name.tag.case.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"5":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end))\\\\s*(\\\\s+(((?i:case))|(.*?)))(\\\\s+((\\\\2)|(.*?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"4":{"name":"keyword.language.vhdl"},"5":{"name":"invalid.illegal.case.required.vhdl"},"8":{"name":"entity.name.tag.case.end.vhdl"},"9":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#control_patterns"},{"include":"#cleanup"}]}]},"cleanup":{"patterns":[{"include":"#comments"},{"include":"#constants_numeric"},{"include":"#strings"},{"include":"#attribute_list"},{"include":"#syntax_highlighting"}]},"comments":{"patterns":[{"match":"--.*$\\\\n?","name":"comment.line.double-dash.vhdl"}]},"component_instantiation_pattern":{"patterns":[{"begin":"^\\\\s*([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*([A-Za-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*($|generic|port))","beginCaptures":{"1":{"name":"entity.name.section.component_instantiation.vhdl"},"2":{"name":"punctuation.vhdl"},"3":{"name":"entity.name.tag.component.reference.vhdl"}},"end":";","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#parenthetical_list"},{"include":"#cleanup"}]}]},"component_pattern":{"patterns":[{"begin":"^\\\\s*\\\\b((?i:component))\\\\s+(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*|(.+?))(?=\\\\b(?i:is|port)\\\\b|$|--)(\\\\b((?i:is\\\\b)))?","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.type.component.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"6":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end))\\\\s+(((?i:component\\\\b))|(.+?))(?=\\\\s*|;)(\\\\s+((\\\\3)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"4":{"name":"invalid.illegal.component.keyword.required.vhdl"},"7":{"name":"entity.name.type.component.end.vhdl"},"8":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#generic_list_pattern"},{"include":"#port_list_pattern"},{"include":"#comments"}]}]},"constants_numeric":{"patterns":[{"match":"\\\\b([-+]?[_\\\\d]+\\\\.[_\\\\d]+([Ee][-+]?[_\\\\d]+)?)\\\\b","name":"constant.numeric.floating_point.vhdl"},{"match":"\\\\b\\\\d+#[_\\\\h]+#\\\\b","name":"constant.numeric.base_pound_number_pound.vhdl"},{"match":"\\\\b[_\\\\d]+([Ee][_\\\\d]+)?\\\\b","name":"constant.numeric.integer.vhdl"},{"match":"[Xx]\\"[-HLUWXZ_hluwxz\\\\h]+\\"","name":"constant.numeric.quoted.double.string.hex.vhdl"},{"match":"[Oo]\\"[-0-7HLUWXZ_hluwxz]+\\"","name":"constant.numeric.quoted.double.string.octal.vhdl"},{"match":"[Bb]?\\"[-01HLUWXZ_hluwxz]+\\"","name":"constant.numeric.quoted.double.string.binary.vhdl"},{"captures":{"1":{"name":"invalid.illegal.quoted.double.string.vhdl"}},"match":"([BOXbox]\\".+?\\")","name":"constant.numeric.quoted.double.string.illegal.vhdl"},{"match":"'[-01HLUWXZhluwxz]'","name":"constant.numeric.quoted.single.std_logic"}]},"control_patterns":{"patterns":[{"include":"#case_pattern"},{"include":"#if_pattern"},{"include":"#for_pattern"},{"include":"#while_pattern"},{"include":"#loop_pattern"}]},"entity_instantiation_pattern":{"patterns":[{"begin":"^\\\\s*([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*(((?i:use))\\\\s+)?((?i:entity))\\\\s+((([A-Za-z][0-9A-Z_a-z]*)|(.+?))(\\\\.))?(([A-Za-z][0-9A-Z_a-z]*)|(.+?))(?=\\\\s*(\\\\(|$|(?i:port|generic)))(\\\\s*(\\\\()\\\\s*(([A-Za-z][0-9A-Z_a-z]*)|(.+?))(?=\\\\s*\\\\))\\\\s*(\\\\)))?","beginCaptures":{"1":{"name":"entity.name.section.entity_instantiation.vhdl"},"2":{"name":"punctuation.vhdl"},"4":{"name":"keyword.language.vhdl"},"5":{"name":"keyword.language.vhdl"},"8":{"name":"entity.name.tag.library.reference.vhdl"},"9":{"name":"invalid.illegal.invalid.identifier.vhdl"},"10":{"name":"punctuation.vhdl"},"12":{"name":"entity.name.tag.entity.reference.vhdl"},"13":{"name":"invalid.illegal.invalid.identifier.vhdl"},"16":{"name":"punctuation.vhdl"},"18":{"name":"entity.name.tag.architecture.reference.vhdl"},"19":{"name":"invalid.illegal.invalid.identifier.vhdl"},"21":{"name":"punctuation.vhdl"}},"end":";","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#parenthetical_list"},{"include":"#cleanup"}]}]},"entity_pattern":{"patterns":[{"begin":"^\\\\s*((?i:entity\\\\b))\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(.+?))(?=\\\\s)","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.type.entity.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"}},"end":"\\\\b((?i:end\\\\b))(\\\\s+((?i:entity)))?(\\\\s+((\\\\3)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"6":{"name":"entity.name.type.entity.end.vhdl"},"7":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#comments"},{"include":"#generic_list_pattern"},{"include":"#port_list_pattern"},{"include":"#cleanup"}]}]},"for_pattern":{"patterns":[{"begin":"^\\\\s*(([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*)?(?!(?i:wait\\\\s*))\\\\b((?i:for))\\\\b(?!\\\\s*(?i:all))","beginCaptures":{"2":{"name":"entity.name.tag.for.generate.begin.vhdl"},"3":{"name":"punctuation.vhdl"},"4":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end))\\\\s+(((?i:generate|loop))|(\\\\S+))\\\\b(\\\\s+((\\\\2)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"4":{"name":"invalid.illegal.loop.or.generate.required.vhdl"},"7":{"name":"entity.name.tag.for.generate.end.vhdl"},"8":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#control_patterns"},{"include":"#entity_instantiation_pattern"},{"include":"#component_pattern"},{"include":"#component_instantiation_pattern"},{"include":"#process_pattern"},{"include":"#cleanup"}]}]},"function_definition_pattern":{"patterns":[{"begin":"^\\\\s*((?i:impure)?\\\\s*(?i:function))\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(\\"\\\\S+\\")|(\\\\\\\\.+\\\\\\\\)|(.+?))(?=\\\\s*(\\\\(|(?i:\\\\breturn\\\\b)))","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.function.function.begin.vhdl"},"4":{"name":"entity.name.function.function.begin.vhdl"},"5":{"name":"entity.name.function.function.begin.vhdl"},"6":{"name":"invalid.illegal.invalid.identifier.vhdl"}},"end":"^\\\\s*((?i:end))(\\\\s+((?i:function)))?(\\\\s+((\\\\3|\\\\4|\\\\5)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"6":{"name":"entity.name.function.function.end.vhdl"},"7":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#control_patterns"},{"include":"#parenthetical_list"},{"include":"#type_pattern"},{"include":"#record_pattern"},{"include":"#cleanup"}]}]},"function_prototype_pattern":{"patterns":[{"begin":"^\\\\s*((?i:impure)?\\\\s*(?i:function))\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(\\"\\\\S+\\")|(\\\\\\\\.+\\\\\\\\)|(.+?))(?=\\\\s*(\\\\(|(?i:\\\\breturn\\\\b)))","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.function.function.prototype.vhdl"},"4":{"name":"entity.name.function.function.prototype.vhdl"},"5":{"name":"entity.name.function.function.prototype.vhdl"},"6":{"name":"invalid.illegal.function.name.vhdl"}},"end":"(?<=;)","patterns":[{"begin":"\\\\b(?i:return)(?=\\\\s+[^;]+\\\\s*;)","beginCaptures":{"0":{"name":"keyword.language.vhdl"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.function_prototype.vhdl"}},"patterns":[{"include":"#parenthetical_list"},{"include":"#cleanup"}]},{"include":"#parenthetical_list"},{"include":"#cleanup"}]}]},"generic_list_pattern":{"patterns":[{"begin":"\\\\b(?i:generic)\\\\b","beginCaptures":{"0":{"name":"keyword.language.vhdl"}},"end":";","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#parenthetical_list"}]}]},"if_pattern":{"patterns":[{"begin":"(([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*)?\\\\b((?i:if))\\\\b","beginCaptures":{"2":{"name":"entity.name.tag.if.generate.begin.vhdl"},"3":{"name":"punctuation.vhdl"},"4":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end))\\\\s+((((?i:generate|if))|(\\\\S+))\\\\b(\\\\s+((\\\\2)|(.+?)))?)?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"4":{"name":"keyword.language.vhdl"},"5":{"name":"invalid.illegal.if.or.generate.required.vhdl"},"8":{"name":"entity.name.tag.if.generate.end.vhdl"},"9":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#control_patterns"},{"include":"#process_pattern"},{"include":"#entity_instantiation_pattern"},{"include":"#component_pattern"},{"include":"#component_instantiation_pattern"},{"include":"#cleanup"}]}]},"keywords":{"patterns":[{"match":"'(?i:active|ascending|base|delayed|driving|driving_value|event|high|image|instance|instance_name|last|last_value|left|leftof|length|low|path|path_name|pos|pred|quiet|range|reverse|reverse_range|right|rightof|simple|simple_name|stable|succ|transaction|val|value)\\\\b","name":"keyword.attributes.vhdl"},{"match":"\\\\b(?i:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|context|deallocate|disconnect|downto|else|elsif|end|entity|exit|file|for|force|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|protected|pure|range|record|register|reject|release|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)\\\\b","name":"keyword.language.vhdl"},{"match":"\\\\b(?i:std|ieee|work|standard|textio|std_logic_1164|std_logic_arith|std_logic_misc|std_logic_signed|std_logic_textio|std_logic_unsigned|numeric_bit|numeric_std|math_complex|math_real|vital_primitives|vital_timing)\\\\b","name":"standard.library.language.vhdl"},{"match":"([-+]|<=|=>??|:=|>=|[\\\\&/<>|]|(\\\\*{1,2}))","name":"keyword.operator.vhdl"}]},"loop_pattern":{"patterns":[{"begin":"^\\\\s*(([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*)?\\\\b((?i:loop))\\\\b","beginCaptures":{"2":{"name":"entity.name.tag.loop.begin.vhdl"},"3":{"name":"punctuation.vhdl"},"4":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end))\\\\s+(((?i:loop))|(\\\\S+))\\\\b(\\\\s+((\\\\2)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"4":{"name":"invalid.illegal.loop.keyword.required.vhdl"},"7":{"name":"entity.name.tag.loop.end.vhdl"},"8":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#control_patterns"},{"include":"#cleanup"}]}]},"package_body_pattern":{"patterns":[{"begin":"\\\\b((?i:package))\\\\s+((?i:body))\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(.+?))\\\\s+((?i:is))\\\\b","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"2":{"name":"keyword.language.vhdl"},"4":{"name":"entity.name.section.package_body.begin.vhdl"},"5":{"name":"invalid.illegal.invalid.identifier.vhdl"},"6":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end\\\\b))(\\\\s+((?i:package))\\\\s+((?i:body)))?(\\\\s+((\\\\4)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"4":{"name":"keyword.language.vhdl"},"7":{"name":"entity.name.section.package_body.end.vhdl"},"8":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#protected_body_pattern"},{"include":"#function_definition_pattern"},{"include":"#procedure_definition_pattern"},{"include":"#type_pattern"},{"include":"#subtype_pattern"},{"include":"#record_pattern"},{"include":"#cleanup"}]}]},"package_pattern":{"patterns":[{"begin":"\\\\b((?i:package))\\\\s+(?!(?i:body))(([A-Za-z][A-Z_a-z\\\\d]*)|(.+?))\\\\s+((?i:is))\\\\b","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.section.package.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"5":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end\\\\b))(\\\\s+((?i:package)))?(\\\\s+((\\\\2)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"6":{"name":"entity.name.section.package.end.vhdl"},"7":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#protected_pattern"},{"include":"#function_prototype_pattern"},{"include":"#procedure_prototype_pattern"},{"include":"#type_pattern"},{"include":"#subtype_pattern"},{"include":"#record_pattern"},{"include":"#component_pattern"},{"include":"#cleanup"}]}]},"parenthetical_list":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.vhdl"}},"end":"(?<=\\\\))","patterns":[{"begin":"(?=[\\"'0-9A-Za-z])","end":"([),;])","endCaptures":{"0":{"name":"punctuation.vhdl"}},"name":"source.vhdl","patterns":[{"include":"#comments"},{"include":"#parenthetical_pair"},{"include":"#cleanup"}]},{"match":"\\\\)","name":"invalid.illegal.unexpected.parenthesis.vhdl"},{"include":"#cleanup"}]}]},"parenthetical_pair":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.vhdl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#parenthetical_pair"},{"include":"#cleanup"}]}]},"port_list_pattern":{"patterns":[{"begin":"\\\\b(?i:port)\\\\b","beginCaptures":{"0":{"name":"keyword.language.vhdl"}},"end":"(?<=\\\\))\\\\s*;","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#parenthetical_list"}]}]},"procedure_definition_pattern":{"patterns":[{"begin":"^\\\\s*((?i:procedure))\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(\\"\\\\S+\\")|(.+?))(?=\\\\s*(\\\\(|(?i:is)))","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.function.procedure.begin.vhdl"},"4":{"name":"entity.name.function.procedure.begin.vhdl"},"5":{"name":"invalid.illegal.invalid.identifier.vhdl"}},"end":"^\\\\s*((?i:end))(\\\\s+((?i:procedure)))?(\\\\s+((\\\\3|\\\\4)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"6":{"name":"entity.name.function.procedure.end.vhdl"},"7":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#parenthetical_list"},{"include":"#control_patterns"},{"include":"#type_pattern"},{"include":"#record_pattern"},{"include":"#cleanup"}]}]},"procedure_prototype_pattern":{"patterns":[{"begin":"\\\\b((?i:procedure))\\\\s+(([A-Za-z][0-9A-Z_a-z]*)|(.+?))(?=\\\\s*([(;]))","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.function.procedure.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"}},"end":";","endCaptures":{"0":{"name":"punctual.vhdl"}},"patterns":[{"include":"#parenthetical_list"}]}]},"process_pattern":{"patterns":[{"begin":"^\\\\s*(([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*)?((?:postponed\\\\s+)?(?i:process\\\\b))","beginCaptures":{"2":{"name":"entity.name.section.process.begin.vhdl"},"3":{"name":"punctuation.vhdl"},"4":{"name":"keyword.language.vhdl"}},"end":"((?i:end))(\\\\s+((?:postponed\\\\s+)?(?i:process)))(\\\\s+((\\\\2)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"6":{"name":"entity.name.section.process.end.vhdl"},"7":{"name":"invalid.illegal.invalid.identifier.vhdl"}},"patterns":[{"include":"#control_patterns"},{"include":"#cleanup"}]}]},"protected_body_pattern":{"patterns":[{"begin":"\\\\b((?i:type))\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(.+?))\\\\s+\\\\b((?i:is\\\\s+protected\\\\s+body))\\\\s+","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.section.protected_body.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"5":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end\\\\s+protected\\\\s+body))(\\\\s+((\\\\3)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"4":{"name":"entity.name.section.protected_body.end.vhdl"},"5":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#function_definition_pattern"},{"include":"#procedure_definition_pattern"},{"include":"#type_pattern"},{"include":"#subtype_pattern"},{"include":"#record_pattern"},{"include":"#cleanup"}]}]},"protected_pattern":{"patterns":[{"begin":"\\\\b((?i:type))\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(.+?))\\\\s+\\\\b((?i:is\\\\s+protected))\\\\s+(?!(?i:body))","beginCaptures":{"1":{"name":"keyword.language.vhdls"},"3":{"name":"entity.name.section.protected.begin.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"5":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end\\\\s+protected))(\\\\s+((\\\\3)|(.+?)))?(?!(?i:body))(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"4":{"name":"entity.name.section.protected.end.vhdl"},"5":{"name":"invalid.illegal.mismatched.identifier.vhdl"}},"patterns":[{"include":"#function_prototype_pattern"},{"include":"#procedure_prototype_pattern"},{"include":"#type_pattern"},{"include":"#subtype_pattern"},{"include":"#record_pattern"},{"include":"#component_pattern"},{"include":"#cleanup"}]}]},"punctuation":{"patterns":[{"match":"([(),.:;])","name":"punctuation.vhdl"}]},"record_pattern":{"patterns":[{"begin":"\\\\b(?i:record)\\\\b","beginCaptures":{"0":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end))\\\\s+((?i:record))(\\\\s+(([A-Za-z][A-Z_a-z\\\\d]*)|(.*?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"2":{"name":"keyword.language.vhdl"},"5":{"name":"entity.name.type.record.vhdl"},"6":{"name":"invalid.illegal.invalid.identifier.vhdl"}},"patterns":[{"include":"#cleanup"}]},{"include":"#cleanup"}]},"strings":{"patterns":[{"match":"'.'","name":"string.quoted.single.vhdl"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.vhdl","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.vhdl"}]},{"begin":"\\\\\\\\","end":"\\\\\\\\","name":"string.other.backslash.vhdl"}]},"subtype_pattern":{"patterns":[{"begin":"\\\\b((?i:subtype))\\\\s+(([A-Za-z][0-9A-Z_a-z]*)|(.+?))\\\\s+((?i:is))\\\\b","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.type.subtype.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"5":{"name":"keyword.language.vhdl"}},"end":";","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#cleanup"}]}]},"support_constants":{"patterns":[{"match":"\\\\b(?i:math_(?:1_over_e|1_over_pi|1_over_sqrt_2|2_pi|3_pi_over_2|deg_to_rad|e|log10_of_e|log2_of_e|log_of_10|log_of_2|pi|pi_over_2|pi_over_3|pi_over_4|rad_to_deg|sqrt_2|sqrt_pi))\\\\b","name":"support.constant.ieee.math_real.vhdl"},{"match":"\\\\b(?i:math_cbase_1|math_cbase_j|math_czero|positive_real|principal_value)\\\\b","name":"support.constant.ieee.math_complex.vhdl"},{"match":"\\\\b(?i:true|false)\\\\b","name":"support.constant.std.standard.vhdl"}]},"support_functions":{"patterns":[{"match":"\\\\b(?i:finish|stop|resolution_limit)\\\\b","name":"support.function.std.env.vhdl"},{"match":"\\\\b(?i:readline|read|writeline|write|endfile|endline)\\\\b","name":"support.function.std.textio.vhdl"},{"match":"\\\\b(?i:rising_edge|falling_edge|to_bit|to_bitvector|to_stdulogic|to_stdlogicvector|to_stdulogicvector|is_x)\\\\b","name":"support.function.ieee.std_logic_1164.vhdl"},{"match":"\\\\b(?i:shift_left|shift_right|rotate_left|rotate_right|resize|to_integer|to_unsigned|to_signed)\\\\b","name":"support.function.ieee.numeric_std.vhdl"},{"match":"\\\\b(?i:arccos(h?)|arcsin(h?)|arctanh??|cbrt|ceil|cosh??|exp|floor|log10|log2?|realmax|realmin|round|sign|sinh??|sqrt|tanh??|trunc)\\\\b","name":"support.function.ieee.math_real.vhdl"},{"match":"\\\\b(?i:arg|cmplx|complex_to_polar|conj|get_principal_value|polar_to_complex)\\\\b","name":"support.function.ieee.math_complex.vhdl"}]},"support_types":{"patterns":[{"match":"\\\\b(?i:boolean|bit|character|severity_level|integer|real|time|delay_length|now|natural|positive|string|bit_vector|file_open_kind|file_open_status|fs|ps|ns|us|ms|sec|min|hr|severity_level|note|warning|error|failure)\\\\b","name":"support.type.std.standard.vhdl"},{"match":"\\\\b(?i:line|text|side|width|input|output)\\\\b","name":"support.type.std.textio.vhdl"},{"match":"\\\\b(?i:std_u??logic(?:|_vector))\\\\b","name":"support.type.ieee.std_logic_1164.vhdl"},{"match":"\\\\b(?i:(?:|un)signed)\\\\b","name":"support.type.ieee.numeric_std.vhdl"},{"match":"\\\\b(?i:complex(?:|_polar))\\\\b","name":"support.type.ieee.math_complex.vhdl"}]},"syntax_highlighting":{"patterns":[{"include":"#keywords"},{"include":"#punctuation"},{"include":"#support_constants"},{"include":"#support_types"},{"include":"#support_functions"}]},"type_pattern":{"patterns":[{"begin":"\\\\b((?i:type))\\\\s+(([A-Za-z][0-9A-Z_a-z]*)|(.+?))((?=\\\\s*;)|(\\\\s+((?i:is))))\\\\b","beginCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"entity.name.type.type.vhdl"},"4":{"name":"invalid.illegal.invalid.identifier.vhdl"},"7":{"name":"keyword.language.vhdl"}},"end":";","endCaptures":{"0":{"name":"punctuation.vhdl"}},"patterns":[{"include":"#record_pattern"},{"include":"#cleanup"}]}]},"while_pattern":{"patterns":[{"begin":"^\\\\s*(([A-Za-z][0-9A-Z_a-z]*)\\\\s*(:)\\\\s*)?\\\\b((?i:while))\\\\b","beginCaptures":{"2":{"name":""},"3":{"name":"punctuation.vhdl"},"4":{"name":"keyword.language.vhdl"}},"end":"\\\\b((?i:end))\\\\s+(((?i:loop))|(\\\\S+))\\\\b(\\\\s+((\\\\2)|(.+?)))?(?=\\\\s*;)","endCaptures":{"1":{"name":"keyword.language.vhdl"},"3":{"name":"keyword.language.vhdl"},"4":{"name":"invalid.illegal.loop.keyword.required.vhdl"},"7":{"name":"entity.name.tag.while.loop.vhdl"},"8":{"name":"invalid.illegal.mismatched.identifier"}},"patterns":[{"include":"#control_patterns"},{"include":"#cleanup"}]}]}},"scopeName":"source.vhdl"}`))];export{e as default}; diff --git a/docs/assets/vhdl-YYXNXz0X.js b/docs/assets/vhdl-YYXNXz0X.js new file mode 100644 index 0000000..eeb4cd7 --- /dev/null +++ b/docs/assets/vhdl-YYXNXz0X.js @@ -0,0 +1 @@ +import{t as o}from"./vhdl-s8UGv0A3.js";export{o as vhdl}; diff --git a/docs/assets/vhdl-s8UGv0A3.js b/docs/assets/vhdl-s8UGv0A3.js new file mode 100644 index 0000000..abf8b26 --- /dev/null +++ b/docs/assets/vhdl-s8UGv0A3.js @@ -0,0 +1 @@ +function c(n){for(var t={},e=n.split(","),r=0;r\\\\s])","endCaptures":{"1":{"name":"punctuation.definition.map.viml"}},"patterns":[{"match":"(?<=:\\\\s)(.+)","name":"constant.character.map.rhs.viml"},{"match":"(?i:(bang|buffer|expr|nop|plug|sid|silent))","name":"constant.character.map.special.viml"},{"match":"(?i:([acdms]-\\\\w))","name":"constant.character.map.key.viml"},{"match":"(?i:(F[0-9]+))","name":"constant.character.map.key.fn.viml"},{"match":"(?i:(bs|bar|cr|del|down|esc|left|right|space|tab|up|leader))","name":"constant.character.map.viml"}]},{"match":"\\\\b(([cinostvx]?(nore)?map))\\\\b","name":"storage.type.map.viml"}]},"operators":{"patterns":[{"match":"([!#+=?\\\\\\\\~])","name":"keyword.operator.viml"},{"match":" ([-.:]|[\\\\&|]{2})( |$)","name":"keyword.operator.viml"},{"match":"(\\\\.{3})","name":"keyword.operator.viml"},{"match":"( [<>] )","name":"keyword.operator.viml"},{"match":"(>=)","name":"keyword.operator.viml"}]},"option":{"patterns":[{"match":"&?\\\\b(al|aleph|anti|antialias|arab|arabic|arshape|arabicshape|ari|allowrevins|akm|altkeymap|ambw|ambiwidth|acd|autochdir|ai|autoindent|ar|autoread|aw|autowrite|awa|autowriteall|bg|background|bs|backspace|bk|backup|bkc|backupcopy|bdir|backupdir|bex|backupext|bsk|backupskip|bdlay|balloondelay|beval|ballooneval|bevalterm|balloonevalterm|bexpr|balloonexpr|bo|belloff|bin|binary|bomb|brk|breakat|bri|breakindent|briopt|breakindentopt|bsdir|browsedir|bh|bufhidden|bl|buflisted|bt|buftype|cmp|casemap|cd|cdpath|cedit|ccv|charconvert|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|cb|clipboard|ch|cmdheight|cwh|cmdwinheight|cc|colorcolumn|co|columns|com|comments|cms|commentstring|cp|compatible|cpt|complete|cocu|concealcursor|cole|conceallevel|cfu|completefunc|cot|completeopt|cf|confirm|ci|copyindent|cpo|cpoptions|cm|cryptmethod|cspc|cscopepathcomp|csprg|cscopeprg|csqf|cscopequickfix|csre|cscoperelative|cst|cscopetag|csto|cscopetagorder|csverb|cscopeverbose|crb|cursorbind|cuc|cursorcolumn|cul|cursorline|debug|def|define|deco|delcombine|dict|dictionary|diff|dex|diffexpr|dip|diffopt|dg|digraph|dir|directory|dy|display|ead|eadirection|ed|edcompatible|emo|emoji|enc|encoding|eol|endofline|ea|equalalways|ep|equalprg|eb|errorbells|ef|errorfile|efm|errorformat|ek|esckeys|ei|eventignore|et|expandtab|ex|exrc|fenc|fileencoding|fencs|fileencodings|ff|fileformat|ffs|fileformats|fic|fileignorecase|ft|filetype|fcs|fillchars|fixeol|fixendofline|fk|fkmap|fcl|foldclose|fdc|foldcolumn|fen|foldenable|fde|foldexpr|fdi|foldignore|fdl|foldlevel|fdls|foldlevelstart|fmr|foldmarker|fdm|foldmethod|fml|foldminlines|fdn|foldnestmax|fdo|foldopen|fdt|foldtext|fex|formatexpr|fo|formatoptions|flp|formatlistpat|fp|formatprg|fs|fsync|gd|gdefault|gfm|grepformat|gp|grepprg|gcr|guicursor|gfn|guifont|gfs|guifontset|gfw|guifontwide|ghr|guiheadroom|go|guioptions|guipty|gtl|guitablabel|gtt|guitabtooltip|hf|helpfile|hh|helpheight|hlg|helplang|hid|hidden|hl|highlight|hi|history|hk|hkmap|hkp|hkmapp|hls|hlsearch|icon|iconstring|ic|ignorecase|imaf|imactivatefunc|imak|imactivatekey|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|imsf|imstatusfunc|imst|imstyle|inc|include|inex|includeexpr|is|incsearch|inde|indentexpr|indk|indentkeys|inf|infercase|im|insertmode|isf|isfname|isi|isident|isk|iskeyword|isp|isprint|js|joinspaces|key|kmp|keymap|km|keymodel|kp|keywordprg|lmap|langmap|lm|langmenu|lnr|langnoremap|lrm|langremap|ls|laststatus|lz|lazyredraw|lbr|linebreak|lines|lsp|linespace|lisp|lw|lispwords|list|lcs|listchars|lpl|loadplugins|luadll|macatsui|magic|mef|makeef|menc|makeencoding|mp|makeprg|mps|matchpairs|mat|matchtime|mco|maxcombine|mfd|maxfuncdepth|mmd|maxmapdepth|mm|maxmem|mmp|maxmempattern|mmt|maxmemtot|mis|menuitems|msm|mkspellmem|ml|modeline|mls|modelines|ma|modifiable|mod|modified|more|mousef??|mousefocus|mh|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mzschemedll|mzschemegcdll|mzq|mzquantum|nf|nrformats|nu|number|nuw|numberwidth|ofu|omnifunc|odev|opendevice|opfunc|operatorfunc|pp|packpath|para|paragraphs|paste|pt|pastetoggle|pex|patchexpr|pm|patchmode|pa|path|perldll|pi|preserveindent|pvh|previewheight|pvw|previewwindow|pdev|printdevice|penc|printencoding|pexpr|printexpr|pfn|printfont|pheader|printheader|pmbcs|printmbcharset|pmbfn|printmbfont|popt|printoptions|prompt|ph|pumheight|pythonthreedll|pythondll|pyx|pyxversion|qe|quoteescape|ro|readonly|rdt|redrawtime|re|regexpengine|rnu|relativenumber|remap|rop|renderoptions|report|rs|restorescreen|ri|revins|rl|rightleft|rlc|rightleftcmd|rubydll|ru|ruler|ruf|rulerformat|rtp|runtimepath|scr|scroll|scb|scrollbind|sj|scrolljump|so|scrolloff|sbo|scrollopt|sect|sections|secure|sel|selection|slm|selectmode|ssop|sessionoptions|sh|shell|shcf|shellcmdflag|sp|shellpipe|shq|shellquote|srr|shellredir|ssl|shellslash|stmp|shelltemp|st|shelltype|sxq|shellxquote|sxe|shellxescape|sr|shiftround|sw|shiftwidth|shm|shortmess|sn|shortname|sbr|showbreak|sc|showcmd|sft|showfulltag|sm|showmatch|smd|showmode|stal|showtabline|ss|sidescroll|siso|sidescrolloff|scl|signcolumn|scs|smartcase|si|smartindent|sta|smarttab|sts|softtabstop|spell|spc|spellcapcheck|spf|spellfile|spl|spelllang|sps|spellsuggest|sb|splitbelow|spr|splitright|sol|startofline|stl|statusline|su|suffixes|sua|suffixesadd|swf|swapfile|sws|swapsync|swb|switchbuf|smc|synmaxcol|syn|syntax|tal|tabline|tpm|tabpagemax|ts|tabstop|tbs|tagbsearch|tc|tagcase|tl|taglength|tr|tagrelative|tags??|tgst|tagstack|tcldll|term|tbidi|termbidi|tenc|termencoding|tgc|termguicolors|tk|termkey|tms|termsize|terse|ta|textauto|tx|textmode|tw|textwidth|tsr|thesaurus|top|tildeop|to|timeout|tm|timeoutlen|title|titlelen|titleold|titlestring|tb|toolbar|tbis|toolbariconsize|ttimeout|ttm|ttimeoutlen|tbi|ttybuiltin|tf|ttyfast|ttym|ttymouse|tsl|ttyscroll|tty|ttytype|udir|undodir|udf|undofile|ul|undolevels|ur|undoreload|uc|updatecount|ut|updatetime|vbs|verbose|vfile|verbosefile|vdir|viewdir|vop|viewoptions|vi|viminfo|vif|viminfofile|ve|virtualedit|vb|visualbell|warn|wiv|weirdinvert|ww|whichwrap|wc|wildchar|wcm|wildcharm|wig|wildignore|wic|wildignorecase|wmnu|wildmenu|wim|wildmode|wop|wildoptions|wak|winaltkeys|wi|window|wh|winheight|wfh|winfixheight|wfw|winfixwidth|wmh|winminheight|wmw|winminwidth|winptydll|wiw|winwidth|wrap|wm|wrapmargin|ws|wrapscan|write|wa|writeany|wb|writebackup|wd|writedelay)\\\\b","name":"support.type.option.viml"},{"match":"&?\\\\b(aleph|allowrevins|altkeymap|ambiwidth|autochdir|arabic|arabicshape|autoindent|autoread|autowrite|autowriteall|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|belloff|binary|bomb|breakat|breakindent|breakindentopt|browsedir|bufhidden|buflisted|buftype|casemap|cdpath|cedit|charconvert|cindent|cinkeys|cinoptions|cinwords|clipboard|cmdheight|cmdwinheight|colorcolumn|columns|comments|commentstring|complete|completefunc|completeopt|concealcursor|conceallevel|confirm|copyindent|cpoptions|cscopepathcomp|cscopeprg|cscopequickfix|cscoperelative|cscopetag|cscopetagorder|cscopeverbose|cursorbind|cursorcolumn|cursorline|debug|define|delcombine|dictionary|diff|diffexpr|diffopt|digraph|directory|display|eadirection|encoding|endofline|equalalways|equalprg|errorbells|errorfile|errorformat|eventignore|expandtab|exrc|fileencodings??|fileformats??|fileignorecase|filetype|fillchars|fixendofline|fkmap|foldclose|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldopen|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fsync|gdefault|grepformat|grepprg|guicursor|guifont|guifontset|guifontwide|guioptions|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hidden|hlsearch|history|hkmapp??|icon|iconstring|ignorecase|imcmdline|imdisable|iminsert|imsearch|include|includeexpr|incsearch|indentexpr|indentkeys|infercase|insertmode|isfname|isident|iskeyword|isprint|joinspaces|keymap|keymodel|keywordprg|langmap|langmenu|langremap|laststatus|lazyredraw|linebreak|lines|linespace|lisp|lispwords|list|listchars|loadplugins|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|menuitems|mkspellmem|modelines??|modifiable|modified|more|mouse|mousefocus|mousehide|mousemodel|mouseshape|mousetime|nrformats|number|numberwidth|omnifunc|opendevice|operatorfunc|packpath|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|perldll|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pumheight|pythondll|pythonthreedll|quoteescape|readonly|redrawtime|regexpengine|relativenumber|remap|report|revins|rightleft|rightleftcmd|rubydll|ruler|rulerformat|runtimepath|scroll|scrollbind|scrolljump|scrolloff|scrollopt|sections|secure|selection|selectmode|sessionoptions|shada|shell|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shellxescape|shellxquote|shiftround|shiftwidth|shortmess|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|sidescroll|sidescrolloff|signcolumn|smartcase|smartindent|smarttab|softtabstop|spell|spellcapcheck|spellfile|spelllang|spellsuggest|splitbelow|splitright|startofline|statusline|suffixes|suffixesadd|swapfile|switchbuf|synmaxcol|syntax|tabline|tabpagemax|tabstop|tagbsearch|tagcase|taglength|tagrelative|tags|tagstack|term|termbidi|terse|textwidth|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|ttimeout|ttimeoutlen|ttytype|undodir|undofile|undolevels|undoreload|updatecount|updatetime|verbose|verbosefile|viewdir|viewoptions|virtualedit|visualbell|warn|whichwrap|wildcharm??|wildignore|wildignorecase|wildmenu|wildmode|wildoptions|winaltkeys|window|winheight|winfixheight|winfixwidth|winminheight|winminwidth|winwidth|wrap|wrapmargin|wrapscan|write|writeany|writebackup|writedelay)\\\\b","name":"support.type.option.viml"},{"match":"&?\\\\b(al|ari|akm|ambw|acd|arab|arshape|ai|ar|awa??|bg|bs|bkc??|bdir|bex|bsk|bdlay|beval|bexpr|bo|bin|bomb|brk|bri|briopt|bsdir|bh|bl|bt|cmp|cd|cedit|ccv|cink??|cino|cinw|cb|ch|cwh|cc|com??|cms|cpt|cfu|cot|cocu|cole|cf|ci|cpo|cspc|csprg|csqf|csre|csto??|cpo|crb|cuc|cul|debug|def|deco|dict|diff|dex|dip|dg|dir|dy|ead|enc|eol|ea|ep|eb|efm??|ei|et|ex|fencs??|ffs??|fic|ft|fcs|fixeol|fk|fcl|fdc|fen|fde|fdi|fdls??|fmr|fdm|fml|fdn|fdo|fdt|fex|flp|fo|fp|fs|gd|gfm|gp|gcr|gfn|gfs|gfw|go|gtl|gtt|hf|hh|hlg|hid|hls|hi|hkp??|icon|iconstring|ic|imc|imd|imi|ims|inc|inex|is|inde|indk|inf|im|isf|isi|isk|isp|js|kmp?|kp|lmap|lm|lrm|ls|lz|lbr|lines|lsp|lisp|lw|list|lcs|lpl|magic|mef|mps??|mat|mco|mfd|mmd?|mmp|mmt|mis|msm|mls??|ma|mod|more|mousef??|mh|mousem|mouses|mouset|nf|nuw??|ofu|odev|opfunc|pp|para|paste|pt|pex|pm|pa|perldll|pi|pvh|pvw|pdev|penc|pexpr|pfn|pheader|pmbcs|pmbfn|popt|prompt|ph|pythondll|pythonthreedlll|qe|ro|rdt|re|rnu|remap|report|ri|rlc??|rubydll|ruf??|rtp|scr|scb|sj|so|sbo|sect|secure|sel|slm|ssop|sd|sh|shcf|sp|shq|srr|ssl|stmp|sxe|sxq|sr|sw|shm|sbr|sc|sft|smd??|stal|ss|siso|scl|scs|si|sta|sts|spell|spc|spf|spl|sps|sb|spr|sol|stl|sua??|swf|swb|smc|syn|tal|tpm|ts|tbs|tc|tl|tr|tag|tgst|term|tbidi|terse|tw|tsr|top?|tm|title|titlelen|titleold|titlestring|ttimeout|ttm|tty|udir|udf|ul|ur|uc|ut|vbs|vfile|vdir|vop|ve|vb|warn|ww|wcm??|wig|wic|wmnu|wim|wop|wak|wi|wh|wfh|wfw|wmh|wmw|wiw|wrap|wm|ws|write|wa|wb|wd)\\\\b","name":"support.type.option.shortname.viml"},{"match":"\\\\b(no(?:anti|antialias|arab|arabic|arshape|arabicshape|ari|allowrevins|akm|altkeymap|acd|autochdir|ai|autoindent|ar|autoread|aw|autowrite|awa|autowriteall|bk|backup|beval|ballooneval|bevalterm|balloonevalterm|bin|binary|bomb|bri|breakindent|bl|buflisted|cin|cindent|cp|compatible|cf|confirm|ci|copyindent|csre|cscoperelative|cst|cscopetag|csverb|cscopeverbose|crb|cursorbind|cuc|cursorcolumn|cul|cursorline|deco|delcombine|diff|dg|digraph|ed|edcompatible|emo|emoji|eol|endofline|ea|equalalways|eb|errorbells|ek|esckeys|et|expandtab|ex|exrc|fic|fileignorecase|fixeol|fixendofline|fk|fkmap|fen|foldenable|fs|fsync|gd|gdefault|guipty|hid|hidden|hk|hkmap|hkp|hkmapp|hls|hlsearch|icon|ic|ignorecase|imc|imcmdline|imd|imdisable|is|incsearch|inf|infercase|im|insertmode|js|joinspaces|lnr|langnoremap|lrm|langremap|lz|lazyredraw|lbr|linebreak|lisp|list|lpl|loadplugins|macatsui|magic|ml|modeline|ma|modifiable|mod|modified|more|mousef|mousefocus|mh|mousehide|nu|number|odev|opendevice|paste|pi|preserveindent|pvw|previewwindow|prompt|ro|readonly|rnu|relativenumber|rs|restorescreen|ri|revins|rl|rightleft|ru|ruler|scb|scrollbind|secure|ssl|shellslash|stmp|shelltemp|sr|shiftround|sn|shortname|sc|showcmd|sft|showfulltag|sm|showmatch|smd|showmode|scs|smartcase|si|smartindent|sta|smarttab|spell|sb|splitbelow|spr|splitright|sol|startofline|swf|swapfile|tbs|tagbsearch|tr|tagrelative|tgst|tagstack|tbidi|termbidi|tgc|termguicolors|terse|ta|textauto|tx|textmode|top|tildeop|to|timeout|title|ttimeout|tbi|ttybuiltin|tf|ttyfast|udf|undofile|vb|visualbell|warn|wiv|weirdinvert|wic|wildignorecase|wmnu|wildmenu|wfh|winfixheight|wfw|winfixwidth|wrapscan|wrap|ws|write|wa|writeany|wb|writebackup))\\\\b","name":"support.type.option.off.viml"}]},"punctuation":{"patterns":[{"match":"([()])","name":"punctuation.parens.viml"},{"match":"(,)","name":"punctuation.comma.viml"}]},"storage":{"patterns":[{"match":"\\\\b(call|let|unlet)\\\\b","name":"storage.viml"},{"match":"\\\\b(a(?:bort|utocmd))\\\\b","name":"storage.viml"},{"match":"\\\\b(set(l(?:|ocal))?)\\\\b","name":"storage.viml"},{"match":"\\\\b(com(mand)?)\\\\b","name":"storage.viml"},{"match":"\\\\b(color(scheme)?)\\\\b","name":"storage.viml"},{"match":"\\\\b(Plug(?:|in))\\\\b","name":"storage.plugin.viml"}]},"strings":{"patterns":[{"begin":"\\"","end":"(\\"|$)","name":"string.quoted.double.viml","patterns":[]},{"begin":"'","end":"('|$)","name":"string.quoted.single.viml","patterns":[]},{"match":"/(\\\\\\\\\\\\\\\\|\\\\\\\\/|[^\\\\n/])*/","name":"string.regexp.viml"}]},"support":{"patterns":[{"match":"(add|call|delete|empty|extend|get|has|isdirectory|join|printf)(?=\\\\()","name":"support.function.viml"},{"match":"\\\\b(echo(m|hl)?|exe(cute)?|redir|redraw|sleep|so(urce)?|wincmd|setf)\\\\b","name":"support.function.viml"},{"match":"(v:(beval_col|beval_bufnr|beval_lnum|beval_text|beval_winnr|char|charconvert_from|charconvert_to|cmdarg|cmdbang|count1??|ctype|dying|errmsg|exception|fcs_reason|fcs_choice|fname_in|fname_out|fname_new|fname_diff|folddashes|foldlevel|foldend|foldstart|insertmode|key|lang|lc_time|lnum|mouse_win|mouse_lnum|mouse_col|oldfiles|operator|prevcount|profiling|progname|register|scrollstart|servername|searchforward|shell_error|statusmsg|swapname|swapchoice|swapcommand|termresponse|this_session|throwpoint|val|version|warningmsg|windowid))","name":"support.type.builtin.vim-variable.viml"},{"match":"(&(cpo|isk|omnifunc|paste|previewwindow|rtp|tags|term|wrap))","name":"support.type.builtin.viml"},{"match":"(&(shell(cmdflag|redir)?))","name":"support.type.builtin.viml"},{"match":"","name":"support.variable.args.viml"},{"match":"\\\\b(None|ErrorMsg|WarningMsg)\\\\b","name":"support.type.syntax.viml"},{"match":"\\\\b(BufNewFile|BufReadPre|BufRead|BufReadPost|BufReadCmd|FileReadPre|FileReadPost|FileReadCmd|FilterReadPre|FilterReadPost|StdinReadPre|StdinReadPost|BufWrite|BufWritePre|BufWritePost|BufWriteCmd|FileWritePre|FileWritePost|FileWriteCmd|FileAppendPre|FileAppendPost|FileAppendCmd|FilterWritePre|FilterWritePost|BufAdd|BufCreate|BufDelete|BufWipeout|BufFilePre|BufFilePost|BufEnter|BufLeave|BufWinEnter|BufWinLeave|BufUnload|BufHidden|BufNew|SwapExists|TermOpen|TermClose|FileType|Syntax|OptionSet|VimEnter|GUIEnter|GUIFailed|TermResponse|QuitPre|VimLeavePre|VimLeave|DirChanged|FileChangedShell|FileChangedShellPost|FileChangedRO|ShellCmdPost|ShellFilterPost|CmdUndefined|FuncUndefined|SpellFileMissing|SourcePre|SourceCmd|VimResized|FocusGained|FocusLost|CursorHoldI??|CursorMovedI??|WinNew|WinEnter|WinLeave|TabEnter|TabLeave|TabNew|TabNewEntered|TabClosed|CmdlineEnter|CmdlineLeave|CmdwinEnter|CmdwinLeave|InsertEnter|InsertChange|InsertLeave|InsertCharPre|TextYankPost|TextChangedI??|ColorScheme|RemoteReply|QuickFixCmdPre|QuickFixCmdPost|SessionLoadPost|MenuPopup|CompleteDone|User)\\\\b","name":"support.type.event.viml"},{"match":"\\\\b(Comment|Constant|String|Character|Number|Boolean|Float|Identifier|Function|Statement|Conditional|Repeat|Label|Operator|Keyword|Exception|PreProc|Include|Define|Macro|PreCondit|Type|StorageClass|Structure|Typedef|Special|SpecialChar|Tag|Delimiter|SpecialComment|Debug|Underlined|Ignore|Error|Todo)\\\\b","name":"support.type.syntax-group.viml"}]},"syntax":{"patterns":[{"match":"syn(tax)? case (ignore|match)","name":"keyword.control.syntax.viml"},{"match":"syn(tax)? (clear|enable|include|off|on|manual|sync)","name":"keyword.control.syntax.viml"},{"match":"\\\\b(contained|display|excludenl|fold|keepend|oneline|skipnl|skipwhite|transparent)\\\\b","name":"keyword.other.syntax.viml"},{"match":"\\\\b(add|containedin|contains|matchgroup|nextgroup)=","name":"keyword.other.syntax.viml"},{"captures":{"1":{"name":"keyword.other.syntax-range.viml"},"3":{"name":"string.regexp.viml"}},"match":"((start|skip|end)=)(\\\\+\\\\S+\\\\+\\\\s)?"},{"captures":{"0":{"name":"support.type.syntax.viml"},"1":{"name":"storage.syntax.viml"},"3":{"name":"variable.other.syntax-scope.viml"},"4":{"name":"storage.modifier.syntax.viml"}},"match":"(syn(?:|tax))\\\\s+(cluster|keyword|match|region)(\\\\s+\\\\w+\\\\s+)(contained)?","patterns":[]},{"captures":{"1":{"name":"storage.highlight.viml"},"2":{"name":"storage.modifier.syntax.viml"},"3":{"name":"support.function.highlight.viml"},"4":{"name":"variable.other.viml"},"5":{"name":"variable.other.viml"}},"match":"(hi(?:|ghlight))\\\\s+(def(?:|ault))\\\\s+(link)\\\\s+(\\\\w+)\\\\s+(\\\\w+)","patterns":[]}]},"variable":{"patterns":[{"match":"https?://\\\\S+","name":"variable.other.link.viml"},{"match":"(?<=\\\\()([A-Za-z]+)(?=\\\\))","name":"variable.parameter.viml"},{"match":"\\\\b([abgls]:[#.0-9A-Z_a-z]+)\\\\b(?!\\\\()","name":"variable.other.viml"}]}},"scopeName":"source.viml","aliases":["vim","vimscript"]}`))];export{e as default}; diff --git a/docs/assets/vitesse-black-CAF6yZ13.js b/docs/assets/vitesse-black-CAF6yZ13.js new file mode 100644 index 0000000..d98e2f6 --- /dev/null +++ b/docs/assets/vitesse-black-CAF6yZ13.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#4d9375","activityBar.background":"#000","activityBar.border":"#191919","activityBar.foreground":"#dbd7cacc","activityBar.inactiveForeground":"#dedcd550","activityBarBadge.background":"#bfbaaa","activityBarBadge.foreground":"#000","badge.background":"#dedcd590","badge.foreground":"#000","breadcrumb.activeSelectionForeground":"#eeeeee18","breadcrumb.background":"#121212","breadcrumb.focusForeground":"#dbd7cacc","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#000","button.background":"#4d9375","button.foreground":"#000","button.hoverBackground":"#4d9375","checkbox.background":"#121212","checkbox.border":"#2f363d","debugToolBar.background":"#000","descriptionForeground":"#dedcd590","diffEditor.insertedTextBackground":"#4d937550","diffEditor.removedTextBackground":"#ab595950","dropdown.background":"#000","dropdown.border":"#191919","dropdown.foreground":"#dbd7cacc","dropdown.listBackground":"#121212","editor.background":"#000","editor.findMatchBackground":"#e6cc7722","editor.findMatchHighlightBackground":"#e6cc7744","editor.focusedStackFrameHighlightBackground":"#b808","editor.foldBackground":"#eeeeee10","editor.foreground":"#dbd7cacc","editor.inactiveSelectionBackground":"#eeeeee10","editor.lineHighlightBackground":"#121212","editor.selectionBackground":"#eeeeee18","editor.selectionHighlightBackground":"#eeeeee10","editor.stackFrameHighlightBackground":"#a707","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#5eaab5","editorBracketHighlight.foreground2":"#4d9375","editorBracketHighlight.foreground3":"#d4976c","editorBracketHighlight.foreground4":"#d9739f","editorBracketHighlight.foreground5":"#e6cc77","editorBracketHighlight.foreground6":"#6394bf","editorBracketMatch.background":"#4d937520","editorError.foreground":"#cb7676","editorGroup.border":"#191919","editorGroupHeader.tabsBackground":"#000","editorGroupHeader.tabsBorder":"#191919","editorGutter.addedBackground":"#4d9375","editorGutter.commentRangeForeground":"#dedcd550","editorGutter.deletedBackground":"#cb7676","editorGutter.foldingControlForeground":"#dedcd590","editorGutter.modifiedBackground":"#6394bf","editorHint.foreground":"#4d9375","editorIndentGuide.activeBackground":"#ffffff30","editorIndentGuide.background":"#ffffff15","editorInfo.foreground":"#6394bf","editorInlayHint.background":"#121212","editorInlayHint.foreground":"#444444","editorLineNumber.activeForeground":"#bfbaaa","editorLineNumber.foreground":"#dedcd550","editorOverviewRuler.border":"#111","editorStickyScroll.background":"#121212","editorStickyScrollHover.background":"#121212","editorWarning.foreground":"#d4976c","editorWhitespace.foreground":"#ffffff15","editorWidget.background":"#000","errorForeground":"#cb7676","focusBorder":"#00000000","foreground":"#dbd7cacc","gitDecoration.addedResourceForeground":"#4d9375","gitDecoration.conflictingResourceForeground":"#d4976c","gitDecoration.deletedResourceForeground":"#cb7676","gitDecoration.ignoredResourceForeground":"#dedcd550","gitDecoration.modifiedResourceForeground":"#6394bf","gitDecoration.submoduleResourceForeground":"#dedcd590","gitDecoration.untrackedResourceForeground":"#5eaab5","input.background":"#121212","input.border":"#191919","input.foreground":"#dbd7cacc","input.placeholderForeground":"#dedcd590","inputOption.activeBackground":"#dedcd550","list.activeSelectionBackground":"#121212","list.activeSelectionForeground":"#dbd7cacc","list.focusBackground":"#121212","list.highlightForeground":"#4d9375","list.hoverBackground":"#121212","list.hoverForeground":"#dbd7cacc","list.inactiveFocusBackground":"#000","list.inactiveSelectionBackground":"#121212","list.inactiveSelectionForeground":"#dbd7cacc","menu.separatorBackground":"#191919","notificationCenterHeader.background":"#000","notificationCenterHeader.foreground":"#959da5","notifications.background":"#000","notifications.border":"#191919","notifications.foreground":"#dbd7cacc","notificationsErrorIcon.foreground":"#cb7676","notificationsInfoIcon.foreground":"#6394bf","notificationsWarningIcon.foreground":"#d4976c","panel.background":"#000","panel.border":"#191919","panelInput.border":"#2f363d","panelTitle.activeBorder":"#4d9375","panelTitle.activeForeground":"#dbd7cacc","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#000","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#000","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#191919","pickerGroup.foreground":"#dbd7cacc","problemsErrorIcon.foreground":"#cb7676","problemsInfoIcon.foreground":"#6394bf","problemsWarningIcon.foreground":"#d4976c","progressBar.background":"#4d9375","quickInput.background":"#000","quickInput.foreground":"#dbd7cacc","quickInputList.focusBackground":"#121212","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#dedcd550","scrollbarSlider.background":"#dedcd510","scrollbarSlider.hoverBackground":"#dedcd550","settings.headerForeground":"#dbd7cacc","settings.modifiedItemIndicator":"#4d9375","sideBar.background":"#000","sideBar.border":"#191919","sideBar.foreground":"#bfbaaa","sideBarSectionHeader.background":"#000","sideBarSectionHeader.border":"#191919","sideBarSectionHeader.foreground":"#dbd7cacc","sideBarTitle.foreground":"#dbd7cacc","statusBar.background":"#000","statusBar.border":"#191919","statusBar.debuggingBackground":"#121212","statusBar.debuggingForeground":"#bfbaaa","statusBar.foreground":"#bfbaaa","statusBar.noFolderBackground":"#000","statusBarItem.prominentBackground":"#121212","tab.activeBackground":"#000","tab.activeBorder":"#191919","tab.activeBorderTop":"#dedcd590","tab.activeForeground":"#dbd7cacc","tab.border":"#191919","tab.hoverBackground":"#121212","tab.inactiveBackground":"#000","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#191919","tab.unfocusedActiveBorderTop":"#191919","tab.unfocusedHoverBackground":"#000","terminal.ansiBlack":"#393a34","terminal.ansiBlue":"#6394bf","terminal.ansiBrightBlack":"#777777","terminal.ansiBrightBlue":"#6394bf","terminal.ansiBrightCyan":"#5eaab5","terminal.ansiBrightGreen":"#4d9375","terminal.ansiBrightMagenta":"#d9739f","terminal.ansiBrightRed":"#cb7676","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e6cc77","terminal.ansiCyan":"#5eaab5","terminal.ansiGreen":"#4d9375","terminal.ansiMagenta":"#d9739f","terminal.ansiRed":"#cb7676","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#e6cc77","terminal.foreground":"#dbd7cacc","terminal.selectionBackground":"#eeeeee18","textBlockQuote.background":"#000","textBlockQuote.border":"#191919","textCodeBlock.background":"#000","textLink.activeForeground":"#4d9375","textLink.foreground":"#4d9375","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#000","titleBar.activeForeground":"#bfbaaa","titleBar.border":"#121212","titleBar.inactiveBackground":"#000","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"Vitesse Black","name":"vitesse-black","semanticHighlighting":true,"semanticTokenColors":{"class":"#6872ab","interface":"#5d99a9","namespace":"#db889a","property":"#b8a965","type":"#5d99a9"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#758575dd"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#444444"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#c99076"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#80a665"}},{"scope":"variable.parameter.function","settings":{"foreground":"#dbd7cacc"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#4d9375"}},{"scope":"entity.name.function","settings":{"foreground":"#80a665"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#4d9375"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#cb7676"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#dbd7cacc"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#c98a7d"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#c98a7d77"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#b8a96577"}},{"scope":"support","settings":{"foreground":"#b8a965"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#b8a965"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#bd976a"}},{"scope":["variable","identifier"],"settings":{"foreground":"#bd976a"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#5DA994"}},{"scope":"namespace","settings":{"foreground":"#db889a"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#cb7676"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#c98a7d"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#c4704f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#c98a7d"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#e6cc77"}},{"scope":["support.constant"],"settings":{"foreground":"#c99076"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#4C9A91"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#cb7676"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#4d9375"}},{"scope":"meta.module-reference","settings":{"foreground":"#4d9375"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d4976c"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#4d9375"}},{"scope":"markup.quote","settings":{"foreground":"#5d99a9"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#dbd7cacc"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#dbd7cacc"}},{"scope":"markup.raw","settings":{"foreground":"#4d9375"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#c98a7d"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#dedcd590"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#6872ab"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#80a665"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/vitesse-dark-DG6LcOdW.js b/docs/assets/vitesse-dark-DG6LcOdW.js new file mode 100644 index 0000000..a079272 --- /dev/null +++ b/docs/assets/vitesse-dark-DG6LcOdW.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#4d9375","activityBar.background":"#121212","activityBar.border":"#191919","activityBar.foreground":"#dbd7caee","activityBar.inactiveForeground":"#dedcd550","activityBarBadge.background":"#bfbaaa","activityBarBadge.foreground":"#121212","badge.background":"#dedcd590","badge.foreground":"#121212","breadcrumb.activeSelectionForeground":"#eeeeee18","breadcrumb.background":"#181818","breadcrumb.focusForeground":"#dbd7caee","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#121212","button.background":"#4d9375","button.foreground":"#121212","button.hoverBackground":"#4d9375","checkbox.background":"#181818","checkbox.border":"#2f363d","debugToolBar.background":"#121212","descriptionForeground":"#dedcd590","diffEditor.insertedTextBackground":"#4d937550","diffEditor.removedTextBackground":"#ab595950","dropdown.background":"#121212","dropdown.border":"#191919","dropdown.foreground":"#dbd7caee","dropdown.listBackground":"#181818","editor.background":"#121212","editor.findMatchBackground":"#e6cc7722","editor.findMatchHighlightBackground":"#e6cc7744","editor.focusedStackFrameHighlightBackground":"#b808","editor.foldBackground":"#eeeeee10","editor.foreground":"#dbd7caee","editor.inactiveSelectionBackground":"#eeeeee10","editor.lineHighlightBackground":"#181818","editor.selectionBackground":"#eeeeee18","editor.selectionHighlightBackground":"#eeeeee10","editor.stackFrameHighlightBackground":"#a707","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#5eaab5","editorBracketHighlight.foreground2":"#4d9375","editorBracketHighlight.foreground3":"#d4976c","editorBracketHighlight.foreground4":"#d9739f","editorBracketHighlight.foreground5":"#e6cc77","editorBracketHighlight.foreground6":"#6394bf","editorBracketMatch.background":"#4d937520","editorError.foreground":"#cb7676","editorGroup.border":"#191919","editorGroupHeader.tabsBackground":"#121212","editorGroupHeader.tabsBorder":"#191919","editorGutter.addedBackground":"#4d9375","editorGutter.commentRangeForeground":"#dedcd550","editorGutter.deletedBackground":"#cb7676","editorGutter.foldingControlForeground":"#dedcd590","editorGutter.modifiedBackground":"#6394bf","editorHint.foreground":"#4d9375","editorIndentGuide.activeBackground":"#ffffff30","editorIndentGuide.background":"#ffffff15","editorInfo.foreground":"#6394bf","editorInlayHint.background":"#181818","editorInlayHint.foreground":"#666666","editorLineNumber.activeForeground":"#bfbaaa","editorLineNumber.foreground":"#dedcd550","editorOverviewRuler.border":"#111","editorStickyScroll.background":"#181818","editorStickyScrollHover.background":"#181818","editorWarning.foreground":"#d4976c","editorWhitespace.foreground":"#ffffff15","editorWidget.background":"#121212","errorForeground":"#cb7676","focusBorder":"#00000000","foreground":"#dbd7caee","gitDecoration.addedResourceForeground":"#4d9375","gitDecoration.conflictingResourceForeground":"#d4976c","gitDecoration.deletedResourceForeground":"#cb7676","gitDecoration.ignoredResourceForeground":"#dedcd550","gitDecoration.modifiedResourceForeground":"#6394bf","gitDecoration.submoduleResourceForeground":"#dedcd590","gitDecoration.untrackedResourceForeground":"#5eaab5","input.background":"#181818","input.border":"#191919","input.foreground":"#dbd7caee","input.placeholderForeground":"#dedcd590","inputOption.activeBackground":"#dedcd550","list.activeSelectionBackground":"#181818","list.activeSelectionForeground":"#dbd7caee","list.focusBackground":"#181818","list.highlightForeground":"#4d9375","list.hoverBackground":"#181818","list.hoverForeground":"#dbd7caee","list.inactiveFocusBackground":"#121212","list.inactiveSelectionBackground":"#181818","list.inactiveSelectionForeground":"#dbd7caee","menu.separatorBackground":"#191919","notificationCenterHeader.background":"#121212","notificationCenterHeader.foreground":"#959da5","notifications.background":"#121212","notifications.border":"#191919","notifications.foreground":"#dbd7caee","notificationsErrorIcon.foreground":"#cb7676","notificationsInfoIcon.foreground":"#6394bf","notificationsWarningIcon.foreground":"#d4976c","panel.background":"#121212","panel.border":"#191919","panelInput.border":"#2f363d","panelTitle.activeBorder":"#4d9375","panelTitle.activeForeground":"#dbd7caee","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#121212","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#121212","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#191919","pickerGroup.foreground":"#dbd7caee","problemsErrorIcon.foreground":"#cb7676","problemsInfoIcon.foreground":"#6394bf","problemsWarningIcon.foreground":"#d4976c","progressBar.background":"#4d9375","quickInput.background":"#121212","quickInput.foreground":"#dbd7caee","quickInputList.focusBackground":"#181818","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#dedcd550","scrollbarSlider.background":"#dedcd510","scrollbarSlider.hoverBackground":"#dedcd550","settings.headerForeground":"#dbd7caee","settings.modifiedItemIndicator":"#4d9375","sideBar.background":"#121212","sideBar.border":"#191919","sideBar.foreground":"#bfbaaa","sideBarSectionHeader.background":"#121212","sideBarSectionHeader.border":"#191919","sideBarSectionHeader.foreground":"#dbd7caee","sideBarTitle.foreground":"#dbd7caee","statusBar.background":"#121212","statusBar.border":"#191919","statusBar.debuggingBackground":"#181818","statusBar.debuggingForeground":"#bfbaaa","statusBar.foreground":"#bfbaaa","statusBar.noFolderBackground":"#121212","statusBarItem.prominentBackground":"#181818","tab.activeBackground":"#121212","tab.activeBorder":"#191919","tab.activeBorderTop":"#dedcd590","tab.activeForeground":"#dbd7caee","tab.border":"#191919","tab.hoverBackground":"#181818","tab.inactiveBackground":"#121212","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#191919","tab.unfocusedActiveBorderTop":"#191919","tab.unfocusedHoverBackground":"#121212","terminal.ansiBlack":"#393a34","terminal.ansiBlue":"#6394bf","terminal.ansiBrightBlack":"#777777","terminal.ansiBrightBlue":"#6394bf","terminal.ansiBrightCyan":"#5eaab5","terminal.ansiBrightGreen":"#4d9375","terminal.ansiBrightMagenta":"#d9739f","terminal.ansiBrightRed":"#cb7676","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e6cc77","terminal.ansiCyan":"#5eaab5","terminal.ansiGreen":"#4d9375","terminal.ansiMagenta":"#d9739f","terminal.ansiRed":"#cb7676","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#e6cc77","terminal.foreground":"#dbd7caee","terminal.selectionBackground":"#eeeeee18","textBlockQuote.background":"#121212","textBlockQuote.border":"#191919","textCodeBlock.background":"#121212","textLink.activeForeground":"#4d9375","textLink.foreground":"#4d9375","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#121212","titleBar.activeForeground":"#bfbaaa","titleBar.border":"#181818","titleBar.inactiveBackground":"#121212","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"Vitesse Dark","name":"vitesse-dark","semanticHighlighting":true,"semanticTokenColors":{"class":"#6872ab","interface":"#5d99a9","namespace":"#db889a","property":"#b8a965","type":"#5d99a9"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#758575dd"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#666666"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#c99076"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#80a665"}},{"scope":"variable.parameter.function","settings":{"foreground":"#dbd7caee"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#4d9375"}},{"scope":"entity.name.function","settings":{"foreground":"#80a665"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#4d9375"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#cb7676"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#dbd7caee"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#c98a7d"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#c98a7d77"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#b8a96577"}},{"scope":"support","settings":{"foreground":"#b8a965"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#b8a965"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#bd976a"}},{"scope":["variable","identifier"],"settings":{"foreground":"#bd976a"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#5DA994"}},{"scope":"namespace","settings":{"foreground":"#db889a"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#cb7676"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#c98a7d"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#c4704f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#c98a7d"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#e6cc77"}},{"scope":["support.constant"],"settings":{"foreground":"#c99076"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#4C9A91"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#cb7676"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#4d9375"}},{"scope":"meta.module-reference","settings":{"foreground":"#4d9375"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d4976c"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#4d9375"}},{"scope":"markup.quote","settings":{"foreground":"#5d99a9"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#dbd7caee"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#dbd7caee"}},{"scope":"markup.raw","settings":{"foreground":"#4d9375"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#c98a7d"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#dedcd590"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#6872ab"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#80a665"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"dark"}'));export{e as default}; diff --git a/docs/assets/vitesse-light-Dc3v4rQW.js b/docs/assets/vitesse-light-Dc3v4rQW.js new file mode 100644 index 0000000..72f3a3f --- /dev/null +++ b/docs/assets/vitesse-light-Dc3v4rQW.js @@ -0,0 +1 @@ +var e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c6b48","activityBar.background":"#ffffff","activityBar.border":"#f0f0f0","activityBar.foreground":"#393a34","activityBar.inactiveForeground":"#393a3450","activityBarBadge.background":"#4e4f47","activityBarBadge.foreground":"#ffffff","badge.background":"#393a3490","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#22222218","breadcrumb.background":"#f7f7f7","breadcrumb.focusForeground":"#393a34","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#ffffff","button.background":"#1c6b48","button.foreground":"#ffffff","button.hoverBackground":"#1c6b48","checkbox.background":"#f7f7f7","checkbox.border":"#d1d5da","debugToolBar.background":"#ffffff","descriptionForeground":"#393a3490","diffEditor.insertedTextBackground":"#1c6b4830","diffEditor.removedTextBackground":"#ab595940","dropdown.background":"#ffffff","dropdown.border":"#f0f0f0","dropdown.foreground":"#393a34","dropdown.listBackground":"#f7f7f7","editor.background":"#ffffff","editor.findMatchBackground":"#e6cc7744","editor.findMatchHighlightBackground":"#e6cc7766","editor.focusedStackFrameHighlightBackground":"#fff5b1","editor.foldBackground":"#22222210","editor.foreground":"#393a34","editor.inactiveSelectionBackground":"#22222210","editor.lineHighlightBackground":"#f7f7f7","editor.selectionBackground":"#22222218","editor.selectionHighlightBackground":"#22222210","editor.stackFrameHighlightBackground":"#fffbdd","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#2993a3","editorBracketHighlight.foreground2":"#1e754f","editorBracketHighlight.foreground3":"#a65e2b","editorBracketHighlight.foreground4":"#a13865","editorBracketHighlight.foreground5":"#bda437","editorBracketHighlight.foreground6":"#296aa3","editorBracketMatch.background":"#1c6b4820","editorError.foreground":"#ab5959","editorGroup.border":"#f0f0f0","editorGroupHeader.tabsBackground":"#ffffff","editorGroupHeader.tabsBorder":"#f0f0f0","editorGutter.addedBackground":"#1e754f","editorGutter.commentRangeForeground":"#393a3450","editorGutter.deletedBackground":"#ab5959","editorGutter.foldingControlForeground":"#393a3490","editorGutter.modifiedBackground":"#296aa3","editorHint.foreground":"#1e754f","editorIndentGuide.activeBackground":"#00000030","editorIndentGuide.background":"#00000015","editorInfo.foreground":"#296aa3","editorInlayHint.background":"#f7f7f7","editorInlayHint.foreground":"#999999","editorLineNumber.activeForeground":"#4e4f47","editorLineNumber.foreground":"#393a3450","editorOverviewRuler.border":"#fff","editorStickyScroll.background":"#f7f7f7","editorStickyScrollHover.background":"#f7f7f7","editorWarning.foreground":"#a65e2b","editorWhitespace.foreground":"#00000015","editorWidget.background":"#ffffff","errorForeground":"#ab5959","focusBorder":"#00000000","foreground":"#393a34","gitDecoration.addedResourceForeground":"#1e754f","gitDecoration.conflictingResourceForeground":"#a65e2b","gitDecoration.deletedResourceForeground":"#ab5959","gitDecoration.ignoredResourceForeground":"#393a3450","gitDecoration.modifiedResourceForeground":"#296aa3","gitDecoration.submoduleResourceForeground":"#393a3490","gitDecoration.untrackedResourceForeground":"#2993a3","input.background":"#f7f7f7","input.border":"#f0f0f0","input.foreground":"#393a34","input.placeholderForeground":"#393a3490","inputOption.activeBackground":"#393a3450","list.activeSelectionBackground":"#f7f7f7","list.activeSelectionForeground":"#393a34","list.focusBackground":"#f7f7f7","list.highlightForeground":"#1c6b48","list.hoverBackground":"#f7f7f7","list.hoverForeground":"#393a34","list.inactiveFocusBackground":"#ffffff","list.inactiveSelectionBackground":"#f7f7f7","list.inactiveSelectionForeground":"#393a34","menu.separatorBackground":"#f0f0f0","notificationCenterHeader.background":"#ffffff","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#ffffff","notifications.border":"#f0f0f0","notifications.foreground":"#393a34","notificationsErrorIcon.foreground":"#ab5959","notificationsInfoIcon.foreground":"#296aa3","notificationsWarningIcon.foreground":"#a65e2b","panel.background":"#ffffff","panel.border":"#f0f0f0","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#1c6b48","panelTitle.activeForeground":"#393a34","panelTitle.inactiveForeground":"#6a737d","peekViewEditor.background":"#ffffff","peekViewResult.background":"#ffffff","pickerGroup.border":"#f0f0f0","pickerGroup.foreground":"#393a34","problemsErrorIcon.foreground":"#ab5959","problemsInfoIcon.foreground":"#296aa3","problemsWarningIcon.foreground":"#a65e2b","progressBar.background":"#1c6b48","quickInput.background":"#ffffff","quickInput.foreground":"#393a34","quickInputList.focusBackground":"#f7f7f7","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#393a3450","scrollbarSlider.background":"#393a3410","scrollbarSlider.hoverBackground":"#393a3450","settings.headerForeground":"#393a34","settings.modifiedItemIndicator":"#1c6b48","sideBar.background":"#ffffff","sideBar.border":"#f0f0f0","sideBar.foreground":"#4e4f47","sideBarSectionHeader.background":"#ffffff","sideBarSectionHeader.border":"#f0f0f0","sideBarSectionHeader.foreground":"#393a34","sideBarTitle.foreground":"#393a34","statusBar.background":"#ffffff","statusBar.border":"#f0f0f0","statusBar.debuggingBackground":"#f7f7f7","statusBar.debuggingForeground":"#4e4f47","statusBar.foreground":"#4e4f47","statusBar.noFolderBackground":"#ffffff","statusBarItem.prominentBackground":"#f7f7f7","tab.activeBackground":"#ffffff","tab.activeBorder":"#f0f0f0","tab.activeBorderTop":"#393a3490","tab.activeForeground":"#393a34","tab.border":"#f0f0f0","tab.hoverBackground":"#f7f7f7","tab.inactiveBackground":"#ffffff","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#f0f0f0","tab.unfocusedActiveBorderTop":"#f0f0f0","tab.unfocusedHoverBackground":"#ffffff","terminal.ansiBlack":"#121212","terminal.ansiBlue":"#296aa3","terminal.ansiBrightBlack":"#aaaaaa","terminal.ansiBrightBlue":"#296aa3","terminal.ansiBrightCyan":"#2993a3","terminal.ansiBrightGreen":"#1e754f","terminal.ansiBrightMagenta":"#a13865","terminal.ansiBrightRed":"#ab5959","terminal.ansiBrightWhite":"#dddddd","terminal.ansiBrightYellow":"#bda437","terminal.ansiCyan":"#2993a3","terminal.ansiGreen":"#1e754f","terminal.ansiMagenta":"#a13865","terminal.ansiRed":"#ab5959","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#bda437","terminal.foreground":"#393a34","terminal.selectionBackground":"#22222218","textBlockQuote.background":"#ffffff","textBlockQuote.border":"#f0f0f0","textCodeBlock.background":"#ffffff","textLink.activeForeground":"#1c6b48","textLink.foreground":"#1c6b48","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#4e4f47","titleBar.border":"#f7f7f7","titleBar.inactiveBackground":"#ffffff","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"Vitesse Light","name":"vitesse-light","semanticHighlighting":true,"semanticTokenColors":{"class":"#5a6aa6","interface":"#2e808f","namespace":"#b05a78","property":"#998418","type":"#2e808f"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#a0ada0"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#999999"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#a65e2b"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#59873a"}},{"scope":"variable.parameter.function","settings":{"foreground":"#393a34"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#1e754f"}},{"scope":"entity.name.function","settings":{"foreground":"#59873a"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#1e754f"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#ab5959"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#393a34"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#b56959"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#b5695977"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#99841877"}},{"scope":"support","settings":{"foreground":"#998418"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#998418"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#b07d48"}},{"scope":["variable","identifier"],"settings":{"foreground":"#b07d48"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#2e8f82"}},{"scope":"namespace","settings":{"foreground":"#b05a78"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#ab5959"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#b56959"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#ab5e3f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#b56959"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#bda437"}},{"scope":["support.constant"],"settings":{"foreground":"#a65e2b"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#2f798a"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#ab5959"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#1e754f"}},{"scope":"meta.module-reference","settings":{"foreground":"#1c6b48"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#a65e2b"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#1c6b48"}},{"scope":"markup.quote","settings":{"foreground":"#2e808f"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#393a34"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#393a34"}},{"scope":"markup.raw","settings":{"foreground":"#1c6b48"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#b56959"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#393a3490"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#5a6aa6"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#59873a"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"light"}'));export{e as default}; diff --git a/docs/assets/vue-DlNI5OYp.js b/docs/assets/vue-DlNI5OYp.js new file mode 100644 index 0000000..ceb1cab --- /dev/null +++ b/docs/assets/vue-DlNI5OYp.js @@ -0,0 +1 @@ +import{t}from"./vue-DqwiwKMh.js";export{t as default}; diff --git a/docs/assets/vue-DqwiwKMh.js b/docs/assets/vue-DqwiwKMh.js new file mode 100644 index 0000000..bad7035 --- /dev/null +++ b/docs/assets/vue-DqwiwKMh.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t}from"./css-xi2XX7Oh.js";import{t as n}from"./html-Bz1QLM72.js";import{t as a}from"./json-CdDqxu0N.js";import{t as i}from"./typescript-DAlbup0L.js";import{t as s}from"./html-derivative-CWtHbpe8.js";var u=[Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-vue","patterns":[{"include":"#vue-code-block"}],"repository":{"vue-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vue)((\\\\s+|[,:?{])[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown","patterns":[]}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"include":"source.vue"}]}},"scopeName":"markdown.vue.codeblock"}'))],m=[Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute","name":"vue-directives","patterns":[{"include":"source.vue#vue-directives"}],"scopeName":"vue.directives"}'))],r=[Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block","name":"vue-interpolations","patterns":[{"include":"source.vue#vue-interpolations"}],"scopeName":"vue.interpolations"}'))],c=Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue"],"injectionSelector":"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment","name":"vue-sfc-style-variable-injection","patterns":[{"include":"#vue-sfc-style-variable-injection"}],"repository":{"vue-sfc-style-variable-injection":{"begin":"\\\\b(v-bind)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function"}},"end":"\\\\)","name":"vue.sfc.style.variable.injection.v-bind","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.js"}]},{"include":"source.js"}]}},"scopeName":"vue.sfc.style.variable.injection","embeddedLangs":["javascript"]}`)),o=[...e,c],l=Object.freeze(JSON.parse(`{"displayName":"Vue","name":"vue","patterns":[{"include":"#vue-comments"},{"include":"#self-closing-tag"},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"patterns":[{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)md\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)html\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)pug\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)stylus\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)postcss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)sass\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)css\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)scss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)less\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)js\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)ts\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)tsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)coffee\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)json\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsonc\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)json5\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)yaml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)toml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)(g(?:ql|raphql))\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]*\\\\blang\\\\s*=\\\\s*([\\"']?)vue\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=<\/script\\\\b)","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"(style)\\\\b","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=]+/>))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"self-closing-tag","patterns":[{"include":"#tag-stuff"}]},"tag-stuff":{"begin":"\\\\G","end":"(?=/>)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},"template-tag":{"patterns":[{"include":"#template-tag-1"},{"include":"#template-tag-2"}]},"template-tag-1":{"begin":"(<)(template)\\\\b(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"},"3":{"name":"punctuation.definition.tag.end.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|(()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((","name":"comment.block.vue"}]},"vue-comments-key-value":{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.comment.vue"}},"name":"comment.block.vue","patterns":[{"include":"source.json#value"}]},"vue-directives":{"patterns":[{"include":"#vue-directives-control"},{"include":"#vue-directives-generic-attr"},{"include":"#vue-directives-style-attr"},{"include":"#vue-directives-original"}]},"vue-directives-control":{"begin":"(?:(v-for)|(v-(?:if|else-if|else)))(?=[)/=>\\\\s])","beginCaptures":{"1":{"name":"keyword.control.loop.vue"},"2":{"name":"keyword.control.conditional.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.control.vue","patterns":[{"include":"#vue-directives-expression"}]},"vue-directives-expression":{"patterns":[{"begin":"(=)\\\\s*([\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"patterns":[{"begin":"(?<=([\\"'\`]))","end":"(?=\\\\1)","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]},{"begin":"(=)\\\\s*(?=[^\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?=([>\\\\s]|/>))","patterns":[{"begin":"(?=[^\\"'\`])","end":"(?=([>\\\\s]|/>))","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{"begin":"\\\\b(generic)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.generic.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"meta.type.parameters.vue","patterns":[{"include":"source.ts#comment"},{"match":"(?)","name":"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{"begin":"(?:(v-[-\\\\w]+)(:)?|([.:])|(@)|(#))(?:(\\\\[)([^]]*)(])|([-\\\\w]+))?","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"},"3":{"name":"punctuation.attribute-shorthand.bind.html.vue"},"4":{"name":"punctuation.attribute-shorthand.event.html.vue"},"5":{"name":"punctuation.attribute-shorthand.slot.html.vue"},"6":{"name":"punctuation.separator.key-value.html.vue"},"7":{"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]},"8":{"name":"punctuation.separator.key-value.html.vue"},"9":{"name":"entity.other.attribute-name.html.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.vue","patterns":[{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"entity.other.attribute-name.html.vue"},"match":"(\\\\.)([-\\\\w]*)"},{"include":"#vue-directives-expression"}]},"vue-directives-style-attr":{"begin":"\\\\b(style)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.style.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"source.css.embedded.html.vue","patterns":[{"include":"source.css#comment-block"},{"include":"source.css#escapes"},{"include":"source.css#font-features"},{"match":"(?]*>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"support.class.component.html"}},"end":"(>)(<)(/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"},"2":{"name":"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"support.class.component.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(<)([a-z][-0-:A-Za-z]*)(?=[^>]*>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(>)(<)(/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"},"2":{"name":"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"entity.name.tag.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml.html","patterns":[{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},{"begin":"","name":"comment.block.html"},{"begin":"","name":"meta.tag.sgml.html","patterns":[{"begin":"(?i:DOCTYPE)","captures":{"1":{"name":"entity.name.tag.doctype.html"}},"end":"(?=>)","name":"meta.tag.sgml.doctype.html","patterns":[{"match":"\\"[^\\">]*\\"","name":"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{"begin":"\\\\[CDATA\\\\[","end":"]](?=>)","name":"constant.other.inline-data.html"},{"match":"(\\\\s*)(?!--|>)\\\\S(\\\\s*)","name":"invalid.illegal.bad-comments-or-CDATA.html"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.html","patterns":[{"include":"#tag-stuff"}]},{"include":"#entities"},{"match":"<>","name":"invalid.illegal.incomplete.html"},{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}],"repository":{"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.html"},{"match":"&","name":"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"source.vue#vue-interpolations"},{"include":"#entities"}]},"string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"source.vue#vue-interpolations"},{"include":"#entities"}]},"tag-generic-attribute":{"match":"(?<=[^=])\\\\b([-0-:A-Z_a-z]+)","name":"entity.other.attribute-name.html"},"tag-id-attribute":{"begin":"\\\\b(id)\\\\b\\\\s*(=)","captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}},"end":"(?!\\\\G)(?<=[\\"'[^/<>\\\\s]])","name":"meta.attribute-with-value.id.html","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"source.vue#vue-interpolations"},{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"source.vue#vue-interpolations"},{"include":"#entities"}]},{"captures":{"0":{"name":"meta.toc-list.id.html"}},"match":"(?<==)(?:[^\\"'/<>\\\\s]|/(?!>))+","name":"string.unquoted.html"}]},"tag-stuff":{"patterns":[{"include":"#vue-directives"},{"include":"#tag-id-attribute"},{"include":"#tag-generic-attribute"},{"include":"#string-double-quoted"},{"include":"#string-single-quoted"},{"include":"#unquoted-attribute"}]},"unquoted-attribute":{"match":"(?<==)(?:[^\\"'/<>\\\\s]|/(?!>))+","name":"string.unquoted.html"},"vue-directives":{"begin":"(?:\\\\b(v-)|([#:@]))([-0-9A-Z_a-z]+)(?::([-A-Z_a-z]+))?(?:\\\\.([-A-Z_a-z]+))*\\\\s*(=)","captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"entity.other.attribute-name.html"},"4":{"name":"entity.other.attribute-name.html"},"5":{"name":"entity.other.attribute-name.html"},"6":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[\\"'])|(?=[<>\`\\\\s])","name":"meta.directive.vue","patterns":[{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"source.directive.vue","patterns":[{"include":"source.js#expression"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"source.directive.vue","patterns":[{"include":"source.js#expression"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"source.directive.vue","patterns":[{"include":"source.js#expression"}]}]}},"scopeName":"text.html.vue-html","embeddedLangs":["vue","javascript"],"embeddedLangsLazy":[]}`)),a=[...e,...t,n];export{a as default}; diff --git a/docs/assets/vue-vine-DC6NkOTk.js b/docs/assets/vue-vine-DC6NkOTk.js new file mode 100644 index 0000000..5bd3b8b --- /dev/null +++ b/docs/assets/vue-vine-DC6NkOTk.js @@ -0,0 +1 @@ +import{t as e}from"./javascript-DgAW-dkP.js";import{t as n}from"./css-xi2XX7Oh.js";import{t as a}from"./scss-B9q1Ycvh.js";import{t}from"./postcss-Bdp-ioMS.js";import{t as i}from"./less-BQiVuzTN.js";import{t as s}from"./stylus-Kok2mVTF.js";import{t as r}from"./vue-DqwiwKMh.js";var o=Object.freeze(JSON.parse('{"displayName":"Vue Vine","name":"vue-vine","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.vue-vine"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.vue-vine"}},"name":"meta.objectliteral.vue-vine","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.vue-vine"},"2":{"name":"punctuation.definition.binding-pattern.array.vue-vine"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.vue-vine"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.vue-vine"},"2":{"name":"punctuation.definition.binding-pattern.array.vue-vine"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.vue-vine"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.vue-vine"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.vue-vine"}},"name":"meta.array.literal.vue-vine","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.vue-vine"},"2":{"name":"variable.parameter.vue-vine"}},"match":"(?:(?)","name":"meta.arrow.vue-vine"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.vue-vine","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.vue-vine"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.vue-vine","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.vue-vine"}},"end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.vue-vine","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=:)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?)","name":"cast.expr.vue-vine"},{"begin":"(??^|]|[^$_[:alnum:]](?:\\\\+\\\\+|--)|[^+]\\\\+|[^-]-)\\\\s*(<)(?!)","endCaptures":{"1":{"name":"meta.brace.angle.vue-vine"}},"name":"cast.expr.vue-vine","patterns":[{"include":"#type"}]},{"begin":"(?<=^)\\\\s*(<)(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*>)","beginCaptures":{"1":{"name":"meta.brace.angle.vue-vine"}},"end":"(>)","endCaptures":{"1":{"name":"meta.brace.angle.vue-vine"}},"name":"cast.expr.vue-vine","patterns":[{"include":"#type"}]}]},"class-declaration":{"begin":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.vue-vine"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.vue-vine","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.vue-vine"},"2":{"name":"entity.name.tag.directive.vue-vine"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.vue-vine"}},"name":"meta.tag.vue-vine","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.vue-vine"},{"match":"=","name":"keyword.operator.assignment.vue-vine"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)a(?:ccess|pi))\\\\s+(p(?:rivate|rotected|ublic))\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^*/<>@\\\\s](?:[^*/<>@]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^*/@\\\\s]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"()|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.vue-vine"}},"match":"[^*@\\\\s](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^*\\\\s]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^]\\\\[]*])?\\\\{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^*/@\\\\s]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*(?:\\\\s*,\\\\s*[$A-Z_a-z][]$.\\\\[\\\\w]*)*)"},{"begin":"((@)template)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([$A-Z_a-z][]$.\\\\[\\\\w]*)"},{"begin":"((@)typedef)\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^*/@\\\\s]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"},{"match":"([$A-Z_a-z][]$.\\\\[\\\\w]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.vue-vine"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[$\\\\w]+(?:(?:\\\\[])?\\\\.[$\\\\w]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:\\\\*(?!/)|\\\\\\\\(?!\\")|[^*\\\\\\\\])*?\\"|\'(?:\\\\*(?!/)|\\\\\\\\(?!\')|[^*\\\\\\\\])*?\'|\\\\[(?:\\\\*(?!/)|[^*])*?]|(?:\\\\*(?!/)|\\\\s(?!\\\\s*])|\\\\[.*?(?:]|(?=\\\\*/))|[^]*\\\\[\\\\s])*)*))?\\\\s*(?:(])((?:[^*\\\\s]|\\\\*[^/\\\\s])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^]$A-\\\\[_a-{}])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^*@{}\\\\s]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\\"\']))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^*\\\\s]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.vue-vine"},"2":{"name":"keyword.operator.rest.vue-vine"},"3":{"name":"variable.parameter.ts variable.language.this.vue-vine"},"4":{"name":"variable.parameter.vue-vine"},"5":{"name":"keyword.operator.optional.vue-vine"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.vue-vine"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.vue-vine"},{"match":"[!=]==?","name":"keyword.operator.comparison.vue-vine"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.vue-vine"},{"captures":{"1":{"name":"keyword.operator.logical.vue-vine"},"2":{"name":"keyword.operator.assignment.compound.vue-vine"},"3":{"name":"keyword.operator.arithmetic.vue-vine"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.vue-vine"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.vue-vine"},{"match":"=","name":"keyword.operator.assignment.vue-vine"},{"match":"--","name":"keyword.operator.decrement.vue-vine"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.vue-vine"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.vue-vine"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.vue-vine"},"2":{"name":"keyword.operator.arithmetic.vue-vine"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.vue-vine"},"2":{"name":"keyword.operator.arithmetic.vue-vine"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"match":"#?[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.property.ts variable.object.property.vue-vine"},{"match":"\\\\?","name":"keyword.operator.optional.vue-vine"},{"match":"!","name":"keyword.operator.definiteassignment.vue-vine"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?\\\\())","name":"meta.function-call.vue-vine","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","end":"(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\\\)))(<\\\\s*[(\\\\[{]\\\\s*)$)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*[(\\\\[{]\\\\s*)$)","name":"meta.function-call.vue-vine","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.ts punctuation.accessor.optional.vue-vine"},{"match":"!","name":"meta.function-call.ts keyword.operator.definiteassignment.vue-vine"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.vue-vine"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.vue-vine"},"2":{"name":"punctuation.accessor.optional.vue-vine"},"3":{"name":"variable.other.constant.property.vue-vine"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.vue-vine"},"2":{"name":"punctuation.accessor.optional.vue-vine"},"3":{"name":"variable.other.property.vue-vine"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.vue-vine"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.vue-vine"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.vue-vine"},"2":{"name":"storage.modifier.vue-vine"},"3":{"name":"storage.modifier.vue-vine"},"4":{"name":"storage.modifier.async.vue-vine"},"5":{"name":"keyword.operator.new.vue-vine"},"6":{"name":"keyword.generator.asterisk.vue-vine"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.vue-vine","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.vue-vine"},"2":{"name":"storage.modifier.vue-vine"},"3":{"name":"storage.modifier.vue-vine"},"4":{"name":"storage.modifier.async.vue-vine"},"5":{"name":"storage.type.property.vue-vine"},"6":{"name":"keyword.generator.asterisk.vue-vine"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.vue-vine","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"},"2":{"name":"storage.type.property.vue-vine"},"3":{"name":"keyword.generator.asterisk.vue-vine"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.vue-vine","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"},"2":{"name":"storage.type.property.vue-vine"},"3":{"name":"keyword.generator.asterisk.vue-vine"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.ts meta.object-literal.key.vue-vine","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"\'`])","end":"(?=:)|((?<=[\\"\'`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.ts meta.object-literal.key.vue-vine","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))","name":"meta.object.member.vue-vine"},{"captures":{"0":{"name":"meta.object-literal.key.vue-vine"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.vue-vine"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.vue-vine"}},"end":"(?=[,}])","name":"meta.object.member.vue-vine","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.vue-vine"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.vue-vine"},{"captures":{"1":{"name":"keyword.control.as.vue-vine"},"2":{"name":"storage.modifier.vue-vine"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"},"2":{"name":"meta.brace.round.vue-vine"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"}},"end":"(?<=>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=>)\\\\s*(\\\\()(?=\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.vue-vine"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.vue-vine"},"2":{"name":"punctuation.definition.binding-pattern.array.vue-vine"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.vue-vine"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.vue-vine"}},"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.vue-vine"},"2":{"name":"keyword.operator.rest.vue-vine"},"3":{"name":"variable.parameter.ts variable.language.this.vue-vine"},"4":{"name":"variable.parameter.vue-vine"},"5":{"name":"keyword.operator.optional.vue-vine"}},"match":"(?:(?])","name":"meta.type.annotation.vue-vine","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(,=])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.vue-vine"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.ts meta.return.type.arrow.ts keyword.operator.type.annotation.vue-vine"}},"contentName":"meta.arrow.ts meta.return.type.arrow.vue-vine","end":"(?==>|\\\\{|^(\\\\s*(export|function|class|interface|let|var|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.vue-vine"}},"end":"(/)([dgimsuy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.vue-vine"},"2":{"name":"keyword.other.vue-vine"}},"name":"string.regexp.vue-vine","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h{2}|u\\\\h{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.vue-vine"}},"end":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$))"},{"captures":{"1":{"name":"support.type.object.module.vue-vine"},"2":{"name":"support.type.object.module.vue-vine"},"3":{"name":"punctuation.accessor.vue-vine"},"4":{"name":"punctuation.accessor.optional.vue-vine"},"5":{"name":"support.type.object.module.vue-vine"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.vue-vine"}]},{"include":"#type-arguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?))*(?)*(?\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.vue-vine"}},"end":"(?=`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.vue-vine"}},"contentName":"meta.embedded.line.vue-vine","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.vue-vine"}},"name":"meta.template.expression.vue-vine","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.vue-vine"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.vue-vine"}},"contentName":"string.template.vue-vine","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.vue-vine"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.vue-vine"}},"contentName":"meta.embedded.line.vue-vine","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.vue-vine"}},"name":"meta.template.expression.vue-vine","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.vue-vine"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.vue-vine"}},"patterns":[{"include":"#expression"}]},"text-vue-html":{"patterns":[{"include":"source.vue#vue-interpolations"},{"begin":"(<)([A-Z][-0-:A-Za-z]*)(?=[^>]*>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"support.class.component.html"}},"end":"(>)(<)(/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"},"2":{"name":"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"support.class.component.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#tag-stuff"}]},{"begin":"(<)([a-z][-0-:A-Za-z]*)(?=[^>]*>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(>)(<)(/)(\\\\2)(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"},"2":{"name":"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"entity.name.tag.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.any.html","patterns":[{"include":"#vue-html-tag-stuff"}]},{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml.html","patterns":[{"include":"#vue-html-tag-generic-attribute"},{"include":"#vue-html-string-double-quoted"},{"include":"#vue-html-string-single-quoted"}]},{"begin":"","name":"comment.block.html"},{"begin":"","name":"meta.tag.sgml.html","patterns":[{"begin":"(?i:DOCTYPE)","captures":{"1":{"name":"entity.name.tag.doctype.html"}},"end":"(?=>)","name":"meta.tag.sgml.doctype.html","patterns":[{"match":"\\"[^\\">]*\\"","name":"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{"begin":"\\\\[CDATA\\\\[","end":"]](?=>)","name":"constant.other.inline-data.html"},{"match":"(\\\\s*)(?!--|>)\\\\S(\\\\s*)","name":"invalid.illegal.bad-comments-or-CDATA.html"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#vue-html-tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#vue-html-tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.any.html","patterns":[{"include":"#vue-html-tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.block.any.html","patterns":[{"include":"#vue-html-tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.any.html","patterns":[{"include":"#vue-html-tag-stuff"}]},{"begin":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.html","patterns":[{"include":"#vue-html-tag-stuff"}]},{"include":"#entities"},{"match":"<>","name":"invalid.illegal.incomplete.html"},{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.vue-vine","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.vue-vine"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.vue-vine","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.vue-vine"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.vue-vine"}},"name":"meta.type.parameters.vue-vine","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.vue-vine"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.vue-vine","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.vue-vine"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.vue-vine","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.vue-vine"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.vue-vine","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.vue-vine"},"2":{"name":"entity.name.type.vue-vine"},"3":{"name":"keyword.operator.expression.extends.vue-vine"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.vue-vine"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.vue-vine"},"2":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.vue-vine"}},"contentName":"meta.type.parameters.vue-vine","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.vue-vine"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.vue-vine"},"2":{"name":"punctuation.accessor.vue-vine"},"3":{"name":"punctuation.accessor.optional.vue-vine"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.vue-vine"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.vue-vine"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.vue-vine"}},"name":"meta.object.type.vue-vine","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.vue-vine"}},"end":"(?=[,;}]|$)|(?<=})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([\\\\&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.vue-vine"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.vue-vine"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vue-vine"}},"name":"meta.type.parameters.vue-vine","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.vue-vine"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.vue-vine"}},"name":"meta.type.paren.cover.vue-vine","patterns":[{"captures":{"1":{"name":"storage.modifier.vue-vine"},"2":{"name":"keyword.operator.rest.vue-vine"},"3":{"name":"entity.name.function.ts variable.language.this.vue-vine"},"4":{"name":"entity.name.function.vue-vine"},"5":{"name":"keyword.operator.optional.vue-vine"}},"match":"(?:(?)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.vue-vine"},"2":{"name":"keyword.operator.rest.vue-vine"},"3":{"name":"variable.parameter.ts variable.language.this.vue-vine"},"4":{"name":"variable.parameter.vue-vine"},"5":{"name":"keyword.operator.optional.vue-vine"}},"match":"(?:(??{|}]|(extends\\\\s+)|$|;|^\\\\s*$|^\\\\s*(?:abstract|async|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|var|while)\\\\b)","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts entity.name.function.vue-vine"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>)))))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>)))))))|(:\\\\s*(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*)$|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*(([$_[:alpha:]]|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\\\\.\\\\.\\\\.\\\\s*[$_[:alpha:]]))([^\\"\'()`]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))*)?\\\\)(\\\\s*:\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts entity.name.function.vue-vine"},"2":{"name":"keyword.operator.definiteassignment.vue-vine"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.vue-vine"}},"end":"(?=$|^|[]),;}]|((?\\\\s]])","name":"meta.attribute-with-value.id.html","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"source.vue#vue-interpolations"},{"include":"#vue-html-entities"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"meta.toc-list.id.html","end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"source.vue#vue-interpolations"},{"include":"#vue-html-entities"}]},{"captures":{"0":{"name":"meta.toc-list.id.html"}},"match":"(?<==)(?:[^\\"\'/<>\\\\s]|/(?!>))+","name":"string.unquoted.html"}]},"vue-html-tag-stuff":{"patterns":[{"include":"#vue-html-vue-directives"},{"include":"#vue-html-tag-id-attribute"},{"include":"#vue-html-tag-generic-attribute"},{"include":"#vue-html-string-double-quoted"},{"include":"#vue-html-string-single-quoted"},{"include":"#vue-html-unquoted-attribute"}]},"vue-html-unquoted-attribute":{"match":"(?<==)(?:[^\\"\'/<>\\\\s]|/(?!>))+","name":"string.unquoted.html"},"vue-html-vue-directives":{"begin":"(?:\\\\b(v-)|([#:@]))([-0-9A-Z_a-z]+)(?::([-A-Z_a-z]+))?(?:\\\\.([-A-Z_a-z]+))*\\\\s*(=)","captures":{"1":{"name":"entity.other.attribute-name.html"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"entity.other.attribute-name.html"},"4":{"name":"entity.other.attribute-name.html"},"5":{"name":"entity.other.attribute-name.html"},"6":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[\\"\'])|(?=[<>`\\\\s])","name":"meta.directive.vue","patterns":[{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"source.directive.vue","patterns":[{"include":"source.js#expression"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"source.directive.vue","patterns":[{"include":"source.js#expression"}]},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"source.directive.vue","patterns":[{"include":"source.js#expression"}]}]}},"scopeName":"source.vue-vine","embeddedLangs":["css","scss","less","stylus","postcss","vue","javascript"]}')),u=[...n,...a,...i,...s,...t,...r,...e,o];export{u as default}; diff --git a/docs/assets/vyper-D7A4m0kb.js b/docs/assets/vyper-D7A4m0kb.js new file mode 100644 index 0000000..38e2950 --- /dev/null +++ b/docs/assets/vyper-D7A4m0kb.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Vyper","name":"vyper","patterns":[{"include":"#statement"},{"include":"#expression"},{"include":"#reserved-names-vyper"}],"repository":{"annotated-parameter":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"}]},"assignment-operator":{"match":"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)","name":"keyword.operator.assignment.python"},"backticks":{"begin":"\`","end":"\`|(?))","name":"comment.typehint.punctuation.notation.python"},{"match":"([_[:alpha:]]\\\\w*)","name":"comment.typehint.variable.notation.python"}]},{"include":"#comments-base"}]},"comments-base":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"$()","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-double-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\\"\\"\\"))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-single-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?='''))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"curly-braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.python"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.python"}},"patterns":[{"match":":","name":"punctuation.separator.dict.python"},{"include":"#expression"}]},"decorator":{"begin":"^\\\\s*((@))\\\\s*(?=[_[:alpha:]]\\\\w*)","beginCaptures":{"1":{"name":"entity.name.function.decorator.python"},"2":{"name":"punctuation.definition.decorator.python"}},"end":"(\\\\))(.*?)(?=\\\\s*(?:#|$))|(?=[\\\\n#])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"invalid.illegal.decorator.python"}},"name":"meta.function.decorator.python","patterns":[{"include":"#decorator-name"},{"include":"#function-arguments"}]},"decorator-name":{"patterns":[{"include":"#builtin-callables"},{"include":"#illegal-object-name"},{"captures":{"2":{"name":"punctuation.separator.period.python"}},"match":"([_[:alpha:]]\\\\w*)|(\\\\.)","name":"entity.name.function.decorator.python"},{"include":"#line-continuation"},{"captures":{"1":{"name":"invalid.illegal.decorator.python"}},"match":"\\\\s*([^#(.\\\\\\\\_[:alpha:]\\\\s].*?)(?=#|$)","name":"invalid.illegal.decorator.python"}]},"docstring":{"patterns":[{"begin":"('''|\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.multi.python","patterns":[{"include":"#docstring-prompt"},{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.raw.multi.python","patterns":[{"include":"#string-consume-escape"},{"include":"#docstring-prompt"},{"include":"#codetags"}]},{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.single.python","patterns":[{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])([\\"'])","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.raw.single.python","patterns":[{"include":"#string-consume-escape"},{"include":"#codetags"}]}]},"docstring-guts-unicode":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"docstring-prompt":{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"(?:^|\\\\G)\\\\s*((?:>>>|\\\\.\\\\.\\\\.)\\\\s)(?=\\\\s*\\\\S)"},"docstring-statement":{"begin":"^(?=\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","end":"((?<=\\\\1)|^)(?!\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","patterns":[{"include":"#docstring"}]},"double-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"))|((?=(?)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"ellipsis":{"match":"\\\\.\\\\.\\\\.","name":"constant.other.ellipsis.python"},"escape-sequence":{"match":"\\\\\\\\(x\\\\h{2}|[0-7]{1,3}|[\\"'\\\\\\\\abfnrtv])","name":"constant.character.escape.python"},"escape-sequence-unicode":{"patterns":[{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8}|N\\\\{[\\\\w\\\\s]+?})","name":"constant.character.escape.python"}]},"expression":{"patterns":[{"include":"#expression-base"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"expression-bare":{"patterns":[{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#literal"},{"include":"#regexp"},{"include":"#string"},{"include":"#lambda"},{"include":"#generator"},{"include":"#illegal-operator"},{"include":"#operator"},{"include":"#curly-braces"},{"include":"#item-access"},{"include":"#list"},{"include":"#odd-function-call"},{"include":"#round-braces"},{"include":"#function-call"},{"include":"#builtin-functions"},{"include":"#builtin-types"},{"include":"#builtin-exceptions"},{"include":"#magic-names"},{"include":"#special-names"},{"include":"#illegal-names"},{"include":"#special-variables"},{"include":"#ellipsis"},{"include":"#punctuation"},{"include":"#line-continuation"},{"include":"#special-variables-types"}]},"expression-base":{"patterns":[{"include":"#comments"},{"include":"#expression-bare"},{"include":"#line-continuation"}]},"f-expression":{"patterns":[{"include":"#expression-bare"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"fregexp-base-expression":{"patterns":[{"include":"#fregexp-quantifier"},{"include":"#fstring-formatting-braces"},{"match":"\\\\{.*?}"},{"include":"#regexp-base-common"}]},"fregexp-quantifier":{"match":"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}}","name":"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{"begin":"\\\\b([Ff])([BUbu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{"begin":"\\\\b([Ff])([BUbu])?(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},"end":"(\\\\3)|((?^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})","patterns":[{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"fstring-terminator-single":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})|(?=\\\\n)","patterns":[{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"function-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.function-call.arguments.python","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.python"},{"captures":{"1":{"name":"keyword.operator.unpacking.arguments.python"}},"match":"(?:(?<=[(,])|^)\\\\s*(\\\\*{1,2})"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function-call.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"include":"#expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"punctuation.definition.arguments.begin.python"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"}]},"function-call":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#special-variables"},{"include":"#function-name"},{"include":"#function-arguments"}]},"function-declaration":{"begin":"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def)\\\\s+(?=[_[:alpha:]]\\\\p{word}*\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.async.python"},"2":{"name":"storage.type.function.python"}},"end":"(:|(?=[\\\\n\\"#']))","endCaptures":{"1":{"name":"punctuation.section.function.begin.python"}},"name":"meta.function.python","patterns":[{"include":"#function-def-name"},{"include":"#parameters"},{"include":"#line-continuation"},{"include":"#return-annotation"}]},"function-def-name":{"patterns":[{"match":"\\\\b(__default__)\\\\b","name":"entity.name.function.fallback.vyper"},{"match":"\\\\b(__init__)\\\\b","name":"entity.name.function.constructor.vyper"},{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.function.python"}]},"function-name":{"patterns":[{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.function-call.generic.python"}]},"generator":{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.python"}},"end":"\\\\bin\\\\b","endCaptures":{"0":{"name":"keyword.control.flow.python"}},"patterns":[{"include":"#expression"}]},"illegal-anno":{"match":"->","name":"invalid.illegal.annotation.python"},"illegal-names":{"captures":{"1":{"name":"keyword.control.flow.python"},"2":{"name":"keyword.control.import.python"}},"match":"\\\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\\\b"},"illegal-object-name":{"match":"\\\\b(True|False|None)\\\\b","name":"keyword.illegal.name.python"},"illegal-operator":{"patterns":[{"match":"&&|\\\\|\\\\||--|\\\\+\\\\+","name":"invalid.illegal.operator.python"},{"match":"[$?]","name":"invalid.illegal.operator.python"},{"match":"!\\\\b","name":"invalid.illegal.operator.python"}]},"import":{"patterns":[{"begin":"\\\\b(?>|[\\\\&^|~])|(\\\\*\\\\*|[-%*+]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"},"parameter-special":{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"variable.parameter.function.language.special.self.python"},"3":{"name":"variable.parameter.function.language.special.cls.python"},"4":{"name":"punctuation.separator.parameters.python"}},"match":"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))"},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#parameter-special"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comments"},{"include":"#loose-default"},{"include":"#annotated-parameter"}]},"punctuation":{"patterns":[{"match":":","name":"punctuation.separator.colon.python"},{"match":",","name":"punctuation.separator.element.python"}]},"regexp":{"patterns":[{"include":"#regexp-single-three-line"},{"include":"#regexp-double-three-line"},{"include":"#regexp-single-one-line"},{"include":"#regexp-double-one-line"}]},"regexp-backreference":{"captures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},"2":{"name":"entity.name.tag.named.backreference.regexp"},"3":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},"match":"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+\\\\p{alnum}+)?)(\\\\))","name":"meta.backreference.named.regexp"},"regexp-backreference-number":{"captures":{"1":{"name":"entity.name.tag.backreference.regexp"}},"match":"(\\\\\\\\[1-9]\\\\d?)","name":"meta.backreference.regexp"},"regexp-base-common":{"patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"[*+?]\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.disjunction.regexp"},{"include":"#regexp-escape-sequence"}]},"regexp-base-expression":{"patterns":[{"include":"#regexp-quantifier"},{"include":"#regexp-base-common"}]},"regexp-charecter-set-escapes":{"patterns":[{"match":"\\\\\\\\[\\\\\\\\abfnrtv]","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-special"},{"match":"\\\\\\\\([0-7]{1,3})","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-escape-catchall"}]},"regexp-double-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\")|(?)","beginCaptures":{"1":{"name":"punctuation.separator.annotation.result.python"}},"end":"(?=:)","patterns":[{"include":"#expression"}]},"round-braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.python"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.python"}},"patterns":[{"include":"#expression"}]},"semicolon":{"patterns":[{"match":";$","name":"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='))|((?=(?)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='))|((?=(?)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"special-names":{"match":"\\\\b(_*\\\\p{upper}[_\\\\d]*\\\\p{upper})[[:upper:]\\\\d]*(_\\\\w*)?\\\\b","name":"constant.other.caps.python"},"special-variables":{"captures":{"1":{"name":"variable.language.special.self.python"},"2":{"name":"variable.language.special.cls.python"}},"match":"\\\\b(?^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.python"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:)[^\\\\n\\"'{}]*(?:\\\\{[^\\\\n\\"'}]*?}[^\\\\n\\"'{}]*)*})","name":"meta.format.brace.python"}]},"string-consume-escape":{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\]"},"string-entity":{"patterns":[{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#string-formatting"}]},"string-formatting":{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.python"},"string-line-continuation":{"match":"\\\\\\\\$","name":"constant.language.python"},"string-multi-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-quoted-multi-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-unicode"},{"include":"#string-multi-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-quoted-single-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)|((?A.charCodeAt(0)),Q=async A=>WebAssembly.instantiate(B,A).then(g=>g.instance.exports);export{Q as default,Q as getWasmInstance,B as wasmBinary}; diff --git a/docs/assets/wasm-DJcF9RK8.js b/docs/assets/wasm-DJcF9RK8.js new file mode 100644 index 0000000..3d7ac28 --- /dev/null +++ b/docs/assets/wasm-DJcF9RK8.js @@ -0,0 +1 @@ +var a=[Object.freeze(JSON.parse(`{"displayName":"WebAssembly","name":"wasm","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#instructions"},{"include":"#types"},{"include":"#modules"},{"include":"#constants"},{"include":"#invalid"}],"repository":{"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.wat"}},"match":"(;;).*$","name":"comment.line.wat"},{"begin":"\\\\(;","beginCaptures":{"0":{"name":"punctuation.definition.comment.wat"}},"end":";\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.wat"}},"name":"comment.block.wat"}]},"constants":{"patterns":[{"patterns":[{"captures":{"1":{"name":"support.type.wat"}},"match":"\\\\b(i8x16)(?:\\\\s+0x\\\\h{1,2}){16}\\\\b","name":"constant.numeric.vector.wat"},{"captures":{"1":{"name":"support.type.wat"}},"match":"\\\\b(i16x8)(?:\\\\s+0x\\\\h{1,4}){8}\\\\b","name":"constant.numeric.vector.wat"},{"captures":{"1":{"name":"support.type.wat"}},"match":"\\\\b(i32x4)(?:\\\\s+0x\\\\h{1,8}){4}\\\\b","name":"constant.numeric.vector.wat"},{"captures":{"1":{"name":"support.type.wat"}},"match":"\\\\b(i64x2)(?:\\\\s+0x\\\\h{1,16}){2}\\\\b","name":"constant.numeric.vector.wat"}]},{"patterns":[{"match":"[-+]?\\\\b[0-9][0-9]*(?:\\\\.[0-9][0-9]*)?(?:[Ee][-+]?[0-9]+)?\\\\b","name":"constant.numeric.float.wat"},{"match":"[-+]?\\\\b0x(\\\\h*\\\\.\\\\h+|\\\\h+\\\\.?)[Pp][-+]?[0-9]+\\\\b","name":"constant.numeric.float.wat"},{"match":"[-+]?\\\\binf\\\\b","name":"constant.numeric.float.wat"},{"match":"[-+]?\\\\bnan:0x\\\\h\\\\h*\\\\b","name":"constant.numeric.float.wat"},{"match":"[-+]?\\\\b(?:0x\\\\h\\\\h*|\\\\d\\\\d*)\\\\b","name":"constant.numeric.integer.wat"}]}]},"instructions":{"patterns":[{"patterns":[{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i(?:32|64))\\\\.trunc_sat_f(?:32|64)_[su]\\\\b","name":"keyword.operator.word.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i32)\\\\.extend(?:8|16)_s\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i64)\\\\.extend(?:8|16|32)_s\\\\b","name":"keyword.operator.word.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(memory)\\\\.(?:copy|fill|init|drop)\\\\b","name":"keyword.operator.word.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(v128)\\\\.(?:const|and|or|xor|not|andnot|bitselect|load|store)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i8x16)\\\\.(?:shuffle|swizzle|splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|eq|ne|lt_[su]|le_[su]|gt_[su]|ge_[su]|min_[su]|max_[su]|any_true|all_true|extract_lane_[su]|add_saturate_[su]|sub_saturate_[su]|avgr_u|narrow_i16x8_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i16x8)\\\\.(?:splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|eq|ne|lt_[su]|le_[su]|gt_[su]|ge_[su]|min_[su]|max_[su]|any_true|all_true|extract_lane_[su]|add_saturate_[su]|sub_saturate_[su]|avgr_u|load8x8_[su]|narrow_i32x4_[su]|widen_(low|high)_i8x16_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i32x4)\\\\.(?:splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|eq|ne|lt_[su]|le_[su]|gt_[su]|ge_[su]|min_[su]|max_[su]|any_true|all_true|extract_lane|load16x4_[su]|trunc_sat_f32x4_[su]|widen_(low|high)_i16x8_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i64x2)\\\\.(?:splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|extract_lane|load32x2_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(f32x4)\\\\.(?:splat|replace_lane|add|sub|mul|neg|extract_lane|eq|ne|lt|le|gt|ge|abs|min|max|div|sqrt|convert_i32x4_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(f64x2)\\\\.(?:splat|replace_lane|add|sub|mul|neg|extract_lane|eq|ne|lt|le|gt|ge|abs|min|max|div|sqrt)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(v8x16)\\\\.(?:load_splat|shuffle|swizzle)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(v16x8)\\\\.load_splat\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(v32x4)\\\\.load_splat\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(v64x2)\\\\.load_splat\\\\b","name":"keyword.operator.word.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.wat"},"2":{"name":"support.class.wat"},"3":{"name":"support.class.wat"},"4":{"name":"support.class.wat"}},"match":"\\\\b(i32)\\\\.(atomic)\\\\.(?:load(?:8_u|16_u)?|store(?:8|16)?|wait|(rmw)\\\\.(?:add|sub|and|or|xor|xchg|cmpxchg)|(rmw(?:8|16))\\\\.(?:add|sub|and|or|xor|xchg|cmpxchg)_u)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"},"2":{"name":"support.class.wat"},"3":{"name":"support.class.wat"},"4":{"name":"support.class.wat"}},"match":"\\\\b(i64)\\\\.(atomic)\\\\.(?:load(?:(?:8|16|32)_u)?|store(?:8|16|32)?|wait|(rmw)\\\\.(?:add|sub|and|or|xor|xchg|cmpxchg)|(rmw(?:8|16|32))\\\\.(?:add|sub|and|or|xor|xchg|cmpxchg)_u)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(atomic)\\\\.(?:notify|fence)\\\\b","name":"keyword.operator.word.wat"},{"match":"\\\\bshared\\\\b","name":"storage.modifier.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(ref)\\\\.(?:null|is_null|func|extern)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(table)\\\\.(?:get|size|grow|fill|init|copy)\\\\b","name":"keyword.operator.word.wat"},{"match":"\\\\b(?:extern|func|null)ref\\\\b","name":"entity.name.type.wat"}]},{"patterns":[{"match":"\\\\breturn_call(?:_indirect)?\\\\b","name":"keyword.control.wat"}]},{"patterns":[{"match":"\\\\b(?:try|catch|throw|rethrow|br_on_exn)\\\\b","name":"keyword.control.wat"},{"match":"(?<=\\\\()event\\\\b","name":"storage.type.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i32|i64|f32|f64|externref|funcref|nullref|exnref)\\\\.p(?:ush|op)\\\\b","name":"keyword.operator.word.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(i32)\\\\.(?:load|load(?:8|16)(?:_[su])?|store(?:8|16)?)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(i64)\\\\.(?:load|load(?:8|16|32)(?:_[su])?|store(?:8|16|32)?)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(f(?:32|64))\\\\.(?:load|store)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.memory.wat"}},"match":"\\\\b(memory)\\\\.(?:size|grow)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"entity.other.attribute-name.wat"}},"match":"\\\\b(offset|align)=\\\\b"},{"captures":{"1":{"name":"support.class.local.wat"}},"match":"\\\\b(local)\\\\.(?:get|set|tee)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.global.wat"}},"match":"\\\\b(global)\\\\.[gs]et\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(i(?:32|64))\\\\.(const|eqz?|ne|lt_[su]|gt_[su]|le_[su]|ge_[su]|clz|ctz|popcnt|add|sub|mul|div_[su]|rem_[su]|and|or|xor|shl|shr_[su]|rotl|rotr)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(f(?:32|64))\\\\.(const|eq|ne|lt|gt|le|ge|abs|neg|ceil|floor|trunc|nearest|sqrt|add|sub|mul|div|min|max|copysign)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(i32)\\\\.(wrap_i64|trunc_(f(?:32|64))_[su]|reinterpret_f32)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(i64)\\\\.(extend_i32_[su]|trunc_f(32|64)_[su]|reinterpret_f64)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(f32)\\\\.(convert_i(32|64)_[su]|demote_f64|reinterpret_i32)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"match":"\\\\b(f64)\\\\.(convert_i(32|64)_[su]|promote_f32|reinterpret_i64)\\\\b","name":"keyword.operator.word.wat"},{"match":"\\\\b(?:unreachable|nop|block|loop|if|then|else|end|br|br_if|br_table|return|call|call_indirect)\\\\b","name":"keyword.control.wat"},{"match":"\\\\b(?:drop|select)\\\\b","name":"keyword.operator.word.wat"}]},{"patterns":[{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(ref)\\\\.(?:eq|test|cast)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(struct)\\\\.(?:new_canon|new_canon_default|get|get_s|get_u|set)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(array)\\\\.(?:new_canon|new_canon_default|get|get_s|get_u|set|len|new_canon_fixed|new_canon_data|new_canon_elem)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(i31)\\\\.(?:new|get_s|get_u)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\bbr_on_(?:non_null|cast|cast_fail)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"match":"\\\\b(extern)\\\\.(?:in|ex)ternalize\\\\b","name":"keyword.operator.word.wat"}]}]},"invalid":{"patterns":[{"match":"[^()\\\\s]+","name":"invalid.wat"}]},"modules":{"patterns":[{"patterns":[{"captures":{"1":{"name":"storage.modifier.wat"}},"match":"(?<=\\\\(data)\\\\s+(passive)\\\\b"}]},{"patterns":[{"match":"(?<=\\\\()(?:module|import|export|memory|data|table|elem|start|func|type|param|result|global|local)\\\\b","name":"storage.type.wat"},{"captures":{"1":{"name":"storage.modifier.wat"}},"match":"(?<=\\\\()\\\\s*(mut)\\\\b","name":"storage.modifier.wat"},{"captures":{"1":{"name":"entity.name.function.wat"}},"match":"(?<=\\\\(func|\\\\(start|call|return_call|ref\\\\.func)\\\\s+(\\\\$[!#-'*+\\\\--:<-Z\\\\\\\\^-z|~]*)"},{"begin":"\\\\)\\\\s+(\\\\$[!#-'*+\\\\--:<-Z\\\\\\\\^-z|~]*)","beginCaptures":{"1":{"name":"entity.name.function.wat"}},"end":"\\\\)","patterns":[{"match":"(?<=\\\\s)\\\\$[!#-'*+\\\\--:<-Z\\\\\\\\^-z|~]*","name":"entity.name.function.wat"}]},{"captures":{"1":{"name":"support.type.function.wat"}},"match":"(?<=\\\\(type)\\\\s+(\\\\$[!#-'*+\\\\--:<-Z\\\\\\\\^-z|~]*)"},{"match":"\\\\$[!#-'*+\\\\--:<-Z\\\\\\\\^-z|~]*\\\\b","name":"variable.other.wat"}]}]},"strings":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end"}},"name":"string.quoted.double.wat","patterns":[{"match":"\\\\\\\\([\\"'\\\\\\\\nt]|\\\\h{2})","name":"constant.character.escape.wat"}]},"types":{"patterns":[{"patterns":[{"match":"\\\\bv128\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"patterns":[{"match":"\\\\b(?:extern|func|null)ref\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"patterns":[{"match":"\\\\bexnref\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"patterns":[{"match":"\\\\b(?:i32|i64|f32|f64)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"patterns":[{"match":"\\\\b(?:i8|i16|ref|funcref|externref|anyref|eqref|i31ref|nullfuncref|nullexternref|structref|arrayref|nullref)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"patterns":[{"match":"\\\\b(?:type|func|extern|any|eq|nofunc|noextern|struct|array|none)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"patterns":[{"match":"\\\\b(?:struct|array|sub|final|rec|field|mut)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]}]}},"scopeName":"source.wat"}`))];export{a as default}; diff --git a/docs/assets/web-vitals-Bb_Ct5Ft.js b/docs/assets/web-vitals-Bb_Ct5Ft.js new file mode 100644 index 0000000..9fbfd6a --- /dev/null +++ b/docs/assets/web-vitals-Bb_Ct5Ft.js @@ -0,0 +1 @@ +var L,p,y,k,x,D=-1,m=function(n){addEventListener("pageshow",(function(e){e.persisted&&(D=e.timeStamp,n(e))}),!0)},F=function(){var n=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(n&&n.responseStart>0&&n.responseStart=0?r="back-forward-cache":t&&(document.prerendering||S()>0?r="prerender":document.wasDiscarded?r="restore":t.type&&(r=t.type.replace(/_/g,"-"))),{name:n,value:e===void 0?-1:e,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},h=function(n,e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(n)){var r=new PerformanceObserver((function(i){Promise.resolve().then((function(){e(i.getEntries())}))}));return r.observe(Object.assign({type:n,buffered:!0},t||{})),r}}catch{}},l=function(n,e,t,r){var i,a;return function(c){e.value>=0&&(c||r)&&((a=e.value-(i||0))||i===void 0)&&(i=e.value,e.delta=a,e.rating=(function(o,u){return o>u[1]?"poor":o>u[0]?"needs-improvement":"good"})(e.value,t),n(e))}},w=function(n){requestAnimationFrame((function(){return requestAnimationFrame((function(){return n()}))}))},E=function(n){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&n()}))},P=function(n){var e=!1;return function(){e||(e=(n(),!0))}},v=-1,R=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},T=function(n){document.visibilityState==="hidden"&&v>-1&&(v=n.type==="visibilitychange"?n.timeStamp:0,V())},q=function(){addEventListener("visibilitychange",T,!0),addEventListener("prerenderingchange",T,!0)},V=function(){removeEventListener("visibilitychange",T,!0),removeEventListener("prerenderingchange",T,!0)},H=function(){return v<0&&(v=R(),q(),m((function(){setTimeout((function(){v=R(),q()}),0)}))),{get firstHiddenTime(){return v}}},I=function(n){document.prerendering?addEventListener("prerenderingchange",(function(){return n()}),!0):n()},N=[1800,3e3],W=function(n,e){e||(e={}),I((function(){var t,r=H(),i=d("FCP"),a=h("paint",(function(c){c.forEach((function(o){o.name==="first-contentful-paint"&&(a.disconnect(),o.startTimer.value&&(r.value=i,r.entries=a,t())},o=h("layout-shift",c);o&&(t=l(n,r,O,e.reportAllChanges),E((function(){c(o.takeRecords()),t(!0)})),m((function(){i=0,r=d("CLS",0),t=l(n,r,O,e.reportAllChanges),w((function(){return t()}))})),setTimeout(t,0))})))},B=0,A=1/0,b=0,Q=function(n){n.forEach((function(e){e.interactionId&&(A=Math.min(A,e.interactionId),b=Math.max(b,e.interactionId),B=b?(b-A)/7+1:0)}))},j=function(){return L?B:performance.interactionCount||0},X=function(){"interactionCount"in performance||L||(L=h("event",Q,{type:"event",buffered:!0,durationThreshold:0}))},s=[],C=new Map,_=0,Z=function(){return s[Math.min(s.length-1,Math.floor((j()-_)/50))]},nn=[],en=function(n){if(nn.forEach((function(i){return i(n)})),n.interactionId||n.entryType==="first-input"){var e=s[s.length-1],t=C.get(n.interactionId);if(t||s.length<10||n.duration>e.latency){if(t)n.duration>t.latency?(t.entries=[n],t.latency=n.duration):n.duration===t.latency&&n.startTime===t.entries[0].startTime&&t.entries.push(n);else{var r={id:n.interactionId,latency:n.duration,entries:[n]};C.set(r.id,r),s.push(r)}s.sort((function(i,a){return a.latency-i.latency})),s.length>10&&s.splice(10).forEach((function(i){return C.delete(i.id)}))}}},$=function(n){var e=self.requestIdleCallback||self.setTimeout,t=-1;return n=P(n),document.visibilityState==="hidden"?n():(t=e(n),E(n)),t},z=[200,500],tn=function(n,e){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(e||(e={}),I((function(){X();var t,r=d("INP"),i=function(c){$((function(){c.forEach(en);var o=Z();o&&o.latency!==r.value&&(r.value=o.latency,r.entries=o.entries,t())}))},a=h("event",i,{durationThreshold:e.durationThreshold??40});t=l(n,r,z,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),E((function(){i(a.takeRecords()),t(!0)})),m((function(){_=j(),s.length=0,C.clear(),r=d("INP"),t=l(n,r,z,e.reportAllChanges)})))})))},G=[2500,4e3],M={},rn=function(n,e){e||(e={}),I((function(){var t,r=H(),i=d("LCP"),a=function(u){e.reportAllChanges||(u=u.slice(-1)),u.forEach((function(f){f.startTime=0&&y1e12?new Date:performance.now())-n.timeStamp;n.type=="pointerdown"?(function(t,r){var i=function(){J(t,r),c()},a=function(){c()},c=function(){removeEventListener("pointerup",i,g),removeEventListener("pointercancel",a,g)};addEventListener("pointerup",i,g),addEventListener("pointercancel",a,g)})(e,n):J(e,n)}},un=function(n){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return n(e,cn,g)}))};export{Y as onCLS,tn as onINP,rn as onLCP}; diff --git a/docs/assets/webidl-Ct7ps8LR.js b/docs/assets/webidl-Ct7ps8LR.js new file mode 100644 index 0000000..088f462 --- /dev/null +++ b/docs/assets/webidl-Ct7ps8LR.js @@ -0,0 +1 @@ +import{t as e}from"./webidl-GTmlnawS.js";export{e as webIDL}; diff --git a/docs/assets/webidl-GTmlnawS.js b/docs/assets/webidl-GTmlnawS.js new file mode 100644 index 0000000..7199ba2 --- /dev/null +++ b/docs/assets/webidl-GTmlnawS.js @@ -0,0 +1 @@ +function a(t){return RegExp("^(("+t.join(")|(")+"))\\b")}var i=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],s=a(i),o="unsigned.short.long.unrestricted.float.double.boolean.byte.octet.Promise.ArrayBuffer.DataView.Int8Array.Int16Array.Int32Array.Uint8Array.Uint16Array.Uint32Array.Uint8ClampedArray.Float32Array.Float64Array.ByteString.DOMString.USVString.sequence.object.RegExp.Error.DOMException.FrozenArray.any.void".split("."),u=a(o),c=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],f=a(c),l=["true","false","Infinity","NaN","null"],d=a(l),y=a(["callback","dictionary","enum","interface"]),p=a(["typedef"]),b=/^[:<=>?]/,h=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,g=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,A=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,D=/^"[^"]*"/,k=/^\/\*.*?\*\//,E=/^\/\*.*/,C=/^.*?\*\//;function N(t,e){if(t.eatSpace())return null;if(e.inComment)return t.match(C)?(e.inComment=!1,"comment"):(t.skipToEnd(),"comment");if(t.match("//"))return t.skipToEnd(),"comment";if(t.match(k))return"comment";if(t.match(E))return e.inComment=!0,"comment";if(t.match(/^-?[0-9\.]/,!1)&&(t.match(h)||t.match(g)))return"number";if(t.match(D))return"string";if(e.startDef&&t.match(m))return"def";if(e.endDef&&t.match(A))return e.endDef=!1,"def";if(t.match(f))return"keyword";if(t.match(u)){var r=e.lastToken,n=(t.match(/^\s*(.+?)\b/,!1)||[])[1];return r===":"||r==="implements"||n==="implements"||n==="="?"builtin":"type"}return t.match(s)?"builtin":t.match(d)?"atom":t.match(m)?"variable":t.match(b)?"operator":(t.next(),null)}const T={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(t,e){var r=N(t,e);if(r){var n=t.current();e.lastToken=n,r==="keyword"?(e.startDef=y.test(n),e.endDef=e.endDef||p.test(n)):e.startDef=!1}return r},languageData:{autocomplete:i.concat(o).concat(c).concat(l)}};export{T as t}; diff --git a/docs/assets/wenyan-DLnVa8AQ.js b/docs/assets/wenyan-DLnVa8AQ.js new file mode 100644 index 0000000..49c881d --- /dev/null +++ b/docs/assets/wenyan-DLnVa8AQ.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"Wenyan","name":"wenyan","patterns":[{"include":"#keywords"},{"include":"#constants"},{"include":"#operators"},{"include":"#symbols"},{"include":"#expression"},{"include":"#comment-blocks"},{"include":"#comment-lines"}],"repository":{"comment-blocks":{"begin":"([\u6279\u6CE8\u758F]\u66F0)\u3002?(\u300C\u300C|\u300E)","end":"(\u300D\u300D|\u300F)","name":"comment.block","patterns":[{"match":"\\\\\\\\.","name":"constant.character"}]},"comment-lines":{"begin":"[\u6279\u6CE8\u758F]\u66F0","end":"$","name":"comment.line","patterns":[{"match":"\\\\\\\\.","name":"constant.character"}]},"constants":{"patterns":[{"match":"[\xB7\u3007\u4E00\u4E03\u4E09\u4E5D\u4E8C\u4E94\u4EAC\u5104\u5146\u516B\u516D\u5206\u5341\u5343\u53C8\u56DB\u5793\u57C3\u5875\u5FAE\u5FFD\u6975\u6B63\u6BEB\u6C99\u6E3A\u6E9D\u6F20\u6F97\u767E\u79ED\u7A70\u7D72\u7E96\u842C\u8CA0\u8F09\u91D0\u96F6]","name":"constant.numeric"},{"match":"[\u5176\u9670\u967D]","name":"constant.language"},{"begin":"\u300C\u300C|\u300E","end":"\u300D\u300D|\u300F","name":"string.quoted","patterns":[{"match":"\\\\\\\\.","name":"constant.character"}]}]},"expression":{"patterns":[{"include":"#variables"}]},"keywords":{"patterns":[{"match":"[\u5143\u5217\u6578\u723B\u7269\u8853\u8A00]","name":"storage.type"},{"match":"\u4E43\u884C\u662F\u8853\u66F0|\u82E5\u5176\u4E0D\u7136\u8005|\u4E43\u6B78\u7A7A\u7121|\u6B32\u884C\u662F\u8853|\u4E43\u6B62\u662F\u904D|\u82E5\u5176\u7136\u8005|\u5176\u7269\u5982\u662F|\u4E43\u5F97\u77E3|\u4E4B\u8853\u4E5F|\u5FC5\u5148\u5F97|\u662F\u8853\u66F0|\u6046\u70BA\u662F|\u4E4B\u7269\u4E5F|\u4E43\u5F97|\u662F\u8B02|\u4E91\u4E91|\u4E2D\u4E4B|\u70BA\u662F|\u4E43\u6B62|\u82E5\u975E|\u6216\u82E5|\u4E4B\u9577|\u5176\u9918","name":"keyword.control"},{"match":"\u6216\u4E91|\u84CB\u8B02","name":"keyword.control"},{"match":"\u4E2D\u6709\u967D\u4E4E|\u4E2D\u7121\u9670\u4E4E|\u6240\u9918\u5E7E\u4F55|\u4E0D\u7B49\u65BC|\u4E0D\u5927\u65BC|\u4E0D\u5C0F\u65BC|\u7B49\u65BC|\u5927\u65BC|\u5C0F\u65BC|[\u4E58\u4EE5\u52A0\u65BC\u6E1B\u8B8A\u9664]","name":"keyword.operator"},{"match":"\u4E0D\u77E5\u4F55\u798D\u6B5F|\u4E0D\u5FA9\u5B58\u77E3|\u59D1\u5984\u884C\u6B64|\u5982\u4E8B\u4E0D\u8AE7|\u540D\u4E4B\u66F0|\u543E\u5617\u89C0|\u4E4B\u798D\u6B5F|\u4E43\u4F5C\u7F77|\u543E\u6709|\u4ECA\u6709|\u7269\u4E4B|\u66F8\u4E4B|\u4EE5\u65BD|\u6614\u4E4B|\u662F\u77E3|\u4E4B\u66F8|\u65B9\u609F|\u4E4B\u7FA9|\u55DA\u547C|\u4E4B\u798D|[\u4E2D\u4ECA\u53D6\u566B\u592B\u65BD\u66F0\u6709\u8C48]","name":"keyword.other"},{"match":"[\u4E4B\u4E5F\u5145\u51E1\u8005\u82E5\u904D\u929C]","name":"keyword.control"}]},"symbols":{"patterns":[{"match":"[\u3001\u3002]","name":"punctuation.separator"}]},"variables":{"begin":"\u300C","end":"\u300D","name":"variable.other","patterns":[{"match":"\\\\\\\\.","name":"constant.character"}]}},"scopeName":"source.wenyan","aliases":["\u6587\u8A00"]}'))];export{e as default}; diff --git a/docs/assets/wgsl-4REEFmor.js b/docs/assets/wgsl-4REEFmor.js new file mode 100644 index 0000000..f18d58b --- /dev/null +++ b/docs/assets/wgsl-4REEFmor.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"WGSL","name":"wgsl","patterns":[{"include":"#line_comments"},{"include":"#block_comments"},{"include":"#keywords"},{"include":"#attributes"},{"include":"#functions"},{"include":"#function_calls"},{"include":"#constants"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"}],"repository":{"attributes":{"patterns":[{"captures":{"1":{"name":"keyword.operator.attribute.at"},"2":{"name":"entity.name.attribute.wgsl"}},"match":"(@)([A-Z_a-z]+)","name":"meta.attribute.wgsl"}]},"block_comments":{"patterns":[{"match":"/\\\\*\\\\*/","name":"comment.block.wgsl"},{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.documentation.wgsl","patterns":[{"include":"#block_comments"}]},{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.wgsl","patterns":[{"include":"#block_comments"}]}]},"constants":{"patterns":[{"match":"(-?\\\\b[0-9][0-9]*\\\\.[0-9][0-9]*)([Ee][-+]?[0-9]+)?\\\\b","name":"constant.numeric.float.wgsl"},{"match":"(?:-?\\\\b0x\\\\h+|\\\\b0|-?\\\\b[1-9][0-9]*)\\\\b","name":"constant.numeric.decimal.wgsl"},{"match":"\\\\b(?:0x\\\\h+|0|[1-9][0-9]*)u\\\\b","name":"constant.numeric.decimal.wgsl"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.wgsl"}]},"function_calls":{"patterns":[{"begin":"([0-9A-Z_a-z]+)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.wgsl"},"2":{"name":"punctuation.brackets.round.wgsl"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.brackets.round.wgsl"}},"name":"meta.function.call.wgsl","patterns":[{"include":"#line_comments"},{"include":"#block_comments"},{"include":"#keywords"},{"include":"#attributes"},{"include":"#function_calls"},{"include":"#constants"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"}]}]},"functions":{"patterns":[{"begin":"\\\\b(fn)\\\\s+([0-9A-Z_a-z]+)((\\\\()|(<))","beginCaptures":{"1":{"name":"keyword.other.fn.wgsl"},"2":{"name":"entity.name.function.wgsl"},"4":{"name":"punctuation.brackets.round.wgsl"}},"end":"\\\\{","endCaptures":{"0":{"name":"punctuation.brackets.curly.wgsl"}},"name":"meta.function.definition.wgsl","patterns":[{"include":"#line_comments"},{"include":"#block_comments"},{"include":"#keywords"},{"include":"#attributes"},{"include":"#function_calls"},{"include":"#constants"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"}]}]},"keywords":{"patterns":[{"match":"\\\\b(bitcast|block|break|case|continue|continuing|default|discard|else|elseif|enable|fallthrough|for|function|if|loop|private|read|read_write|return|storage|switch|uniform|while|workgroup|write)\\\\b","name":"keyword.control.wgsl"},{"match":"\\\\b(asm|const|do|enum|handle|mat|premerge|regardless|typedef|unless|using|vec|void)\\\\b","name":"keyword.control.wgsl"},{"match":"\\\\b(let|var)\\\\b","name":"keyword.other.wgsl storage.type.wgsl"},{"match":"\\\\b(type)\\\\b","name":"keyword.declaration.type.wgsl storage.type.wgsl"},{"match":"\\\\b(enum)\\\\b","name":"keyword.declaration.enum.wgsl storage.type.wgsl"},{"match":"\\\\b(struct)\\\\b","name":"keyword.declaration.struct.wgsl storage.type.wgsl"},{"match":"\\\\bfn\\\\b","name":"keyword.other.fn.wgsl"},{"match":"([\\\\^|]|\\\\|\\\\||&&|<<|>>|!)(?!=)","name":"keyword.operator.logical.wgsl"},{"match":"&(?![\\\\&=])","name":"keyword.operator.borrow.and.wgsl"},{"match":"((?:[-%\\\\&*+/^|]|<<|>>)=)","name":"keyword.operator.assignment.wgsl"},{"match":"(?])=(?![=>])","name":"keyword.operator.assignment.equal.wgsl"},{"match":"(=(=)?(?!>)|!=|<=|(?=)","name":"keyword.operator.comparison.wgsl"},{"match":"(([%+]|(\\\\*(?!\\\\w)))(?!=))|(-(?!>))|(/(?!/))","name":"keyword.operator.math.wgsl"},{"match":"\\\\.(?!\\\\.)","name":"keyword.operator.access.dot.wgsl"},{"match":"->","name":"keyword.operator.arrow.skinny.wgsl"}]},"line_comments":{"match":"\\\\s*//.*","name":"comment.line.double-slash.wgsl"},"punctuation":{"patterns":[{"match":",","name":"punctuation.comma.wgsl"},{"match":"[{}]","name":"punctuation.brackets.curly.wgsl"},{"match":"[()]","name":"punctuation.brackets.round.wgsl"},{"match":";","name":"punctuation.semi.wgsl"},{"match":"[]\\\\[]","name":"punctuation.brackets.square.wgsl"},{"match":"(?]","name":"punctuation.brackets.angle.wgsl"}]},"types":{"name":"storage.type.wgsl","patterns":[{"match":"\\\\b(bool|i32|u32|f32)\\\\b","name":"storage.type.wgsl"},{"match":"\\\\b([fiu]64)\\\\b","name":"storage.type.wgsl"},{"match":"\\\\b(vec(?:2i|3i|4i|2u|3u|4u|2f|3f|4f|2h|3h|4h))\\\\b","name":"storage.type.wgsl"},{"match":"\\\\b(mat(?:2x2f|2x3f|2x4f|3x2f|3x3f|3x4f|4x2f|4x3f|4x4f|2x2h|2x3h|2x4h|3x2h|3x3h|3x4h|4x2h|4x3h|4x4h))\\\\b","name":"storage.type.wgsl"},{"match":"\\\\b(vec[234]|mat[234]x[234])\\\\b","name":"storage.type.wgsl"},{"match":"\\\\b(atomic)\\\\b","name":"storage.type.wgsl"},{"match":"\\\\b(array)\\\\b","name":"storage.type.wgsl"},{"match":"\\\\b([A-Z][0-9A-Za-z]*)\\\\b","name":"entity.name.type.wgsl"}]},"variables":{"patterns":[{"match":"\\\\b(?)","endCaptures":{"1":{"name":"punctuation.definition.tag.extension.wikitext"},"2":{"name":"storage.type.extension.wikitext"},"3":{"name":"punctuation.definition.tag.extension.wikitext"},"4":{"name":"punctuation.definition.comment.extension.wikitext"}},"name":"comment.block.documentation.special.extension.wikitext","patterns":[{"captures":{"0":{"name":"meta.object.member.extension.wikitext"},"1":{"name":"meta.object-literal.key.extension.wikitext"},"2":{"name":"punctuation.separator.dictionary.key-value.extension.wikitext"},"3":{"name":"punctuation.definition.string.begin.extension.wikitext"},"4":{"name":"string.quoted.other.extension.wikitext"},"5":{"name":"punctuation.definition.string.end.extension.wikitext"}},"match":"(\\\\w*)\\\\s*(=)\\\\s*(#)(.*?)(#)"}]},"external-link":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.tag.link.external.wikitext"},"2":{"name":"entity.name.tag.url.wikitext"},"3":{"name":"string.other.link.external.title.wikitext","patterns":[{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.link.external.wikitext"}},"match":"(\\\\[)((?:https?|ftps?)://[-.\\\\w]+(?:\\\\.[-.\\\\w]+)+[!#-/:;=?@~\\\\w]+)\\\\s*?([^]]*)(])","name":"meta.link.external.wikitext"},{"captures":{"1":{"name":"punctuation.definition.tag.link.external.wikitext"},"2":{"name":"invalid.illegal.bad-url.wikitext"},"3":{"name":"string.other.link.external.title.wikitext","patterns":[{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.link.external.wikitext"}},"match":"(\\\\[)([-.\\\\w]+(?:\\\\.[-.\\\\w]+)+[!#-/:;=?@~\\\\w]+)\\\\s*?([^]]*)(])","name":"invalid.illegal.bad-link.wikitext"}]},"font-style":{"patterns":[{"include":"#bold"},{"include":"#italic"}],"repository":{"bold":{"begin":"(''')","end":"(''')|$","name":"markup.bold.wikitext","patterns":[{"include":"#italic"},{"include":"$self"}]},"italic":{"begin":"('')","end":"((?=[^'])|(?=''))''((?=[^'])|(?=''))|$","name":"markup.italic.wikitext","patterns":[{"include":"#bold"},{"include":"$self"}]}}},"heading":{"captures":{"2":{"name":"string.quoted.other.heading.wikitext","patterns":[{"include":"$self"}]}},"match":"^(={1,6})\\\\s*(.+?)\\\\s*(\\\\1)$","name":"markup.heading.wikitext"},"internal-link":{"TODO":"SINGLE LINE","begin":"(\\\\[\\\\[)(([^]#:\\\\[{|}]*:)*)?([^]\\\\[|]*)?","captures":{"1":{"name":"punctuation.definition.tag.link.internal.wikitext"},"2":{"name":"entity.name.tag.namespace.wikitext"},"4":{"name":"entity.other.attribute-name.wikitext"}},"end":"(]])","name":"string.quoted.internal-link.wikitext","patterns":[{"include":"$self"},{"captures":{"1":{"name":"keyword.operator.wikitext"},"5":{"name":"entity.other.attribute-name.localname.wikitext"}},"match":"(\\\\|)|\\\\s*(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)\\\\s*(=)"}]},"list":{"name":"markup.list.wikitext","patterns":[{"captures":{"1":{"name":"punctuation.definition.list.begin.markdown.wikitext"}},"match":"^([#*:;]+)"}]},"magic-words":{"patterns":[{"include":"#behavior-switches"},{"include":"#outdated-behavior-switches"},{"include":"#variables"}],"repository":{"behavior-switches":{"match":"(?i)(__)(NOTOC|FORCETOC|TOC|NOEDITSECTION|NEWSECTIONLINK|NOGALLERY|HIDDENCAT|EXPECTUNUSEDCATEGORY|NOCONTENTCONVERT|NOCC|NOTITLECONVERT|NOTC|INDEX|NOINDEX|STATICREDIRECT|NOGLOBAL|DISAMBIG)(__)","name":"constant.language.behavior-switcher.wikitext"},"outdated-behavior-switches":{"match":"(?i)(__)(START|END)(__)","name":"invalid.deprecated.behavior-switcher.wikitext"},"variables":{"patterns":[{"match":"(?i)(\\\\{\\\\{)(CURRENTYEAR|CURRENTMONTH1??|CURRENTMONTHNAME|CURRENTMONTHNAMEGEN|CURRENTMONTHABBREV|CURRENTDAY2??|CURRENTDOW|CURRENTDAYNAME|CURRENTTIME|CURRENTHOUR|CURRENTWEEK|CURRENTTIMESTAMP|LOCALYEAR|LOCALMONTH1??|LOCALMONTHNAME|LOCALMONTHNAMEGEN|LOCALMONTHABBREV|LOCALDAY2??|LOCALDOW|LOCALDAYNAME|LOCALTIME|LOCALHOUR|LOCALWEEK|LOCALTIMESTAMP)(}})","name":"constant.language.variables.time.wikitext"},{"match":"(?i)(\\\\{\\\\{)(SITENAME|SERVER|SERVERNAME|DIRMARK|DIRECTIONMARK|SCRIPTPATH|STYLEPATH|CURRENTVERSION|CONTENTLANGUAGE|CONTENTLANG|PAGEID|PAGELANGUAGE|CASCADINGSOURCES|REVISIONID|REVISIONDAY2??|REVISIONMONTH1??|REVISIONYEAR|REVISIONTIMESTAMP|REVISIONUSER|REVISIONSIZE)(}})","name":"constant.language.variables.metadata.wikitext"},{"match":"ISBN\\\\s+((9[-\\\\s]?7[-\\\\s]?[89][-\\\\s]?)?([0-9][-\\\\s]?){10})","name":"constant.language.variables.isbn.wikitext"},{"match":"RFC\\\\s+[0-9]+","name":"constant.language.variables.rfc.wikitext"},{"match":"PMID\\\\s+[0-9]+","name":"constant.language.variables.pmid.wikitext"}]}}},"redirect":{"patterns":[{"captures":{"1":{"name":"keyword.control.redirect.wikitext"},"2":{"name":"punctuation.definition.tag.link.internal.begin.wikitext"},"3":{"name":"entity.name.tag.namespace.wikitext"},"4":null,"5":{"name":"entity.other.attribute-name.wikitext"},"6":{"name":"invalid.deprecated.ineffective.wikitext"},"7":{"name":"punctuation.definition.tag.link.internal.end.wikitext"}},"match":"(?i)^(\\\\s*?#REDIRECT)\\\\s*(\\\\[\\\\[)(([^]#:\\\\[{|}]*?:)*)?([^]\\\\[|]*)?(\\\\|[^]\\\\[]*?)?(]])"}]},"signature":{"patterns":[{"match":"~{3,5}","name":"keyword.other.signature.wikitext"}]},"table":{"patterns":[{"begin":"^\\\\s*(\\\\{\\\\|)(.*)$","captures":{"1":{"name":"punctuation.definition.tag.table.wikitext"},"2":{"patterns":[{"include":"text.html.basic#attribute"}]}},"end":"^\\\\s*(\\\\|})","name":"meta.tag.block.table.wikitext","patterns":[{"include":"$self"},{"captures":{"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"patterns":[{"include":"$self"},{"match":"\\\\|.*","name":"invalid.illegal.bad-table-context.wikitext"},{"include":"text.html.basic#attribute"}]}},"match":"^\\\\s*(\\\\|-)\\\\s*(.*)$","name":"meta.tag.block.table-row.wikitext"},{"begin":"^\\\\s*(!)(([^\\\\[]*?)(\\\\|))?(.*?)(?=(!!)|$)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":null,"3":{"patterns":[{"include":"$self"},{"include":"text.html.basic#attribute"}]},"4":{"name":"punctuation.definition.tag.wikitext"},"5":{"name":"markup.bold.style.wikitext"}},"end":"$","name":"meta.tag.block.th.heading","patterns":[{"captures":{"1":{"name":"punctuation.definition.tag.begin.wikitext"},"3":{"patterns":[{"include":"$self"},{"include":"text.html.basic#attribute"}]},"4":{"name":"punctuation.definition.tag.wikitext"},"5":{"name":"markup.bold.style.wikitext"}},"match":"(!!)(([^\\\\[]*?)(\\\\|))?(.*?)(?=(!!)|$)","name":"meta.tag.block.th.inline.wikitext"},{"include":"$self"}]},{"captures":{"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"string.unquoted.caption.wikitext"}},"end":"$","match":"^\\\\s*(\\\\|\\\\+)(.*?)$","name":"meta.tag.block.caption.wikitext","patterns":[{"include":"$self"}]},{"begin":"^\\\\s*(\\\\|)","beginCaptures":{"1":{"name":"punctuation.definition.tag.wikitext"}},"end":"$","patterns":[{"captures":{"1":{"patterns":[{"include":"$self"},{"include":"text.html.basic#attribute"}]},"2":{"name":"punctuation.definition.tag.wikitext"}},"match":"\\\\s*([^|]+)\\\\s*(?]+)?\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"contentName":"meta.embedded.block.json","end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"include":"source.json"}]},"math":{"begin":"(?i)(<)(math|chem|ce)(\\\\s+[^>]+)?\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"contentName":"meta.embedded.block.latex","end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"include":"text.html.markdown.math#math"}]},"normal-wiki-tags":{"captures":{"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"match":"(?i)(]+)?\\\\s*(>)","name":"meta.tag.metedata.normal.wikitext"},"nowiki":{"begin":"(?i)(<)(nowiki)(\\\\s+[^>]+)?\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.nowiki.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"contentName":"meta.embedded.block.plaintext","end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.nowiki.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}}},"ref":{"begin":"(?i)(<)(ref)(\\\\s+[^>]+)?\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.ref.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"contentName":"meta.block.ref.wikitext","end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.ref.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"include":"$self"}]},"syntax-highlight":{"patterns":[{"include":"#hl-css"},{"include":"#hl-html"},{"include":"#hl-ini"},{"include":"#hl-java"},{"include":"#hl-lua"},{"include":"#hl-makefile"},{"include":"#hl-perl"},{"include":"#hl-r"},{"include":"#hl-ruby"},{"include":"#hl-php"},{"include":"#hl-sql"},{"include":"#hl-vb-net"},{"include":"#hl-xml"},{"include":"#hl-xslt"},{"include":"#hl-yaml"},{"include":"#hl-bat"},{"include":"#hl-clojure"},{"include":"#hl-coffee"},{"include":"#hl-c"},{"include":"#hl-cpp"},{"include":"#hl-diff"},{"include":"#hl-dockerfile"},{"include":"#hl-go"},{"include":"#hl-groovy"},{"include":"#hl-pug"},{"include":"#hl-js"},{"include":"#hl-json"},{"include":"#hl-less"},{"include":"#hl-objc"},{"include":"#hl-swift"},{"include":"#hl-scss"},{"include":"#hl-perl6"},{"include":"#hl-powershell"},{"include":"#hl-python"},{"include":"#hl-julia"},{"include":"#hl-rust"},{"include":"#hl-scala"},{"include":"#hl-shell"},{"include":"#hl-ts"},{"include":"#hl-csharp"},{"include":"#hl-fsharp"},{"include":"#hl-dart"},{"include":"#hl-handlebars"},{"include":"#hl-markdown"},{"include":"#hl-erlang"},{"include":"#hl-elixir"},{"include":"#hl-latex"},{"include":"#hl-bibtex"}],"repository":{"hl-bat":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)([\\"']?)(?:batch|bat|dosbatch|winbatch)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.bat","end":"(?i)(?=)","patterns":[{"include":"source.batchfile"}]}]},"hl-bibtex":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)bib(?:tex|)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.bibtex","end":"(?i)(?=)","patterns":[{"include":"text.bibtex"}]}]},"hl-c":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)c\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.c","end":"(?i)(?=)","patterns":[{"include":"source.c"}]}]},"hl-clojure":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)cl(?:ojure|j)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.clojure","end":"(?i)(?=)","patterns":[{"include":"source.clojure"}]}]},"hl-coffee":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)coffee(?:script|-script|)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.coffee","end":"(?i)(?=)","patterns":[{"include":"source.coffee"}]}]},"hl-cpp":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)c(?:pp|\\\\+\\\\+)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.cpp","end":"(?i)(?=)","patterns":[{"include":"source.cpp"}]}]},"hl-csharp":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)c(?:sharp|[#s])\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.csharp","end":"(?i)(?=)","patterns":[{"include":"source.cs"}]}]},"hl-css":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)css\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.css","end":"(?i)(?=)","patterns":[{"include":"source.css"}]}]},"hl-dart":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)dart\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.dart","end":"(?i)(?=)","patterns":[{"include":"source.dart"}]}]},"hl-diff":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)u??diff\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.diff","end":"(?i)(?=)","patterns":[{"include":"source.diff"}]}]},"hl-dockerfile":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)docker(?:|file)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.dockerfile","end":"(?i)(?=)","patterns":[{"include":"source.dockerfile"}]}]},"hl-elixir":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)e(?:lixir|xs??)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.elixir","end":"(?i)(?=)","patterns":[{"include":"source.elixir"}]}]},"hl-erlang":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)erlang\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.erlang","end":"(?i)(?=)","patterns":[{"include":"source.erlang"}]}]},"hl-fsharp":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)f(?:sharp|#)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.fsharp","end":"(?i)(?=)","patterns":[{"include":"source.fsharp"}]}]},"hl-go":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)go(?:|lang)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.go","end":"(?i)(?=)","patterns":[{"include":"source.go"}]}]},"hl-groovy":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)groovy\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.groovy","end":"(?i)(?=)","patterns":[{"include":"source.groovy"}]}]},"hl-handlebars":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)handlebars\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.handlebars","end":"(?i)(?=)","patterns":[{"include":"text.html.handlebars"}]}]},"hl-html":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)html\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.html","end":"(?i)(?=)","patterns":[{"include":"text.html.basic"}]}]},"hl-ini":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)(?:ini|cfg|dosini)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.ini","end":"(?i)(?=)","patterns":[{"include":"source.ini"}]}]},"hl-java":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)java\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.java","end":"(?i)(?=)","patterns":[{"include":"source.java"}]}]},"hl-js":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)j(?:avascript|s)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.js","end":"(?i)(?=)","patterns":[{"include":"source.js"}]}]},"hl-json":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"json\\"|'json'|\\"json-object\\"|'json-object')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.json","end":"(?i)(?=)","patterns":[{"include":"source.json.comments"}]}]},"hl-julia":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"julia\\"|'julia'|\\"jl\\"|'jl')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.julia","end":"(?i)(?=)","patterns":[{"include":"source.julia"}]}]},"hl-latex":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)(?:|la)tex\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.latex","end":"(?i)(?=)","patterns":[{"include":"text.tex.latex"}]}]},"hl-less":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"less\\"|'less')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.less","end":"(?i)(?=)","patterns":[{"include":"source.css.less"}]}]},"hl-lua":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)lua\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.lua","end":"(?i)(?=)","patterns":[{"include":"source.lua"}]}]},"hl-makefile":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)(?:make|makefile|mf|bsdmake)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.makefile","end":"(?i)(?=)","patterns":[{"include":"source.makefile"}]}]},"hl-markdown":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)m(?:arkdown|d)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.markdown","end":"(?i)(?=)","patterns":[{"include":"text.html.markdown"}]}]},"hl-objc":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"objective-c\\"|'objective-c'|\\"objectivec\\"|'objectivec'|\\"obj-c\\"|'obj-c'|\\"objc\\"|'objc')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.objc","end":"(?i)(?=)","patterns":[{"include":"source.objc"}]}]},"hl-perl":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)p(?:erl|le)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.perl","end":"(?i)(?=)","patterns":[{"include":"source.perl"}]}]},"hl-perl6":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"perl6\\"|'perl6'|\\"pl6\\"|'pl6'|\\"raku\\"|'raku')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.perl6","end":"(?i)(?=)","patterns":[{"include":"source.perl.6"}]}]},"hl-php":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)php[345]??\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.php","end":"(?i)(?=)","patterns":[{"include":"source.php"}]}]},"hl-powershell":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"powershell\\"|'powershell'|\\"pwsh\\"|'pwsh'|\\"posh\\"|'posh'|\\"ps1\\"|'ps1'|\\"psm1\\"|'psm1')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.powershell","end":"(?i)(?=)","patterns":[{"include":"source.powershell"}]}]},"hl-pug":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)(?:pug|jade)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.pug","end":"(?i)(?=)","patterns":[{"include":"text.pug"}]}]},"hl-python":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"python\\"|'python'|\\"py\\"|'py'|\\"sage\\"|'sage'|\\"python3\\"|'python3'|\\"py3\\"|'py3')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.python","end":"(?i)(?=)","patterns":[{"include":"source.python"}]}]},"hl-r":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)(?:splus|[rs])\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.r","end":"(?i)(?=)","patterns":[{"include":"source.r"}]}]},"hl-ruby":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)(?:ruby|rb|duby)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.ruby","end":"(?i)(?=)","patterns":[{"include":"source.ruby"}]}]},"hl-rust":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"rust\\"|'rust'|\\"rs\\"|'rs')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":null,"end":"(?i)(?=)","patterns":[{"include":"source.rust"}]}]},"hl-scala":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"scala\\"|'scala')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.scala","end":"(?i)(?=)","patterns":[{"include":"source.scala"}]}]},"hl-scss":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"scss\\"|'scss')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.scss","end":"(?i)(?=)","patterns":[{"include":"source.css.scss"}]}]},"hl-shell":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"bash\\"|'bash'|\\"sh\\"|'sh'|\\"ksh\\"|'ksh'|\\"zsh\\"|'zsh'|\\"shell\\"|'shell')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.shell","end":"(?i)(?=)","patterns":[{"include":"source.shell"}]}]},"hl-sql":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)sql\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.sql","end":"(?i)(?=)","patterns":[{"include":"source.sql"}]}]},"hl-swift":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"swift\\"|'swift')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.swift","end":"(?i)(?=)","patterns":[{"include":"source.swift"}]}]},"hl-ts":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=(?:\\"typescript\\"|'typescript'|\\"ts\\"|'ts')(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.ts","end":"(?i)(?=)","patterns":[{"include":"source.ts"}]}]},"hl-vb-net":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)(?:vb\\\\.net|vbnet|lobas|oobas|sobas)\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.vb-net","end":"(?i)(?=)","patterns":[{"include":"source.asp.vb.net"}]}]},"hl-xml":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)xml\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.xml","end":"(?i)(?=)","patterns":[{"include":"text.xml"}]}]},"hl-xslt":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)xslt\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.xslt","end":"(?i)(?=)","patterns":[{"include":"text.xml.xsl"}]}]},"hl-yaml":{"begin":"(?i)(<)(syntaxhighlight)((?:\\\\s+[^>]+)?\\\\s+lang=([\\"']?)yaml\\\\4(?:\\\\s+[^>]+)?)\\\\s*(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.start.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"5":{"name":"punctuation.definition.tag.end.wikitext"}},"end":"(?i)()","endCaptures":{"0":{"name":"meta.tag.metadata.end.wikitext"},"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"name":"punctuation.definition.tag.end.wikitext"}},"patterns":[{"begin":"(^|\\\\G)","contentName":"meta.embedded.block.yaml","end":"(?i)(?=)","patterns":[{"include":"source.yaml"}]}]}}},"wiki-self-closed-tags":{"captures":{"1":{"name":"punctuation.definition.tag.begin.wikitext"},"2":{"name":"entity.name.tag.wikitext"},"3":{"patterns":[{"include":"text.html.basic#attribute"},{"include":"$self"}]},"4":{"name":"punctuation.definition.tag.end.wikitext"}},"match":"(?i)(<)(templatestyles|ref|nowiki|onlyinclude|includeonly)(\\\\s+[^>]+)?\\\\s*(/>)","name":"meta.tag.metedata.void.wikitext"}}}}}},"scopeName":"source.wikitext","embeddedLangs":[],"aliases":["mediawiki","wiki"],"embeddedLangsLazy":["html","css","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","go","groovy","pug","javascript","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","csharp","fsharp","dart","handlebars","markdown","erlang","elixir","latex","bibtex","json"]}`))];export{t as default}; diff --git a/docs/assets/wit-DHRQXmKj.js b/docs/assets/wit-DHRQXmKj.js new file mode 100644 index 0000000..6ca4eee --- /dev/null +++ b/docs/assets/wit-DHRQXmKj.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse('{"displayName":"WebAssembly Interface Types","foldingStartMarker":"([\\\\[{])\\\\s*","foldingStopMarker":"\\\\s*([]}])","name":"wit","patterns":[{"include":"#comment"},{"include":"#package"},{"include":"#toplevel-use"},{"include":"#world"},{"include":"#interface"},{"include":"#whitespace"}],"repository":{"block-comments":{"patterns":[{"match":"/\\\\*\\\\*/","name":"comment.block.empty.wit"},{"applyEndPatternLast":1,"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.documentation.wit","patterns":[{"include":"#block-comments"},{"include":"#markdown"},{"include":"#whitespace"}]},{"applyEndPatternLast":1,"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.wit","patterns":[{"include":"#block-comments"},{"include":"#whitespace"}]}]},"boolean":{"match":"\\\\b(bool)\\\\b","name":"entity.name.type.boolean.wit"},"comment":{"patterns":[{"include":"#block-comments"},{"include":"#doc-comment"},{"include":"#line-comment"}]},"container":{"name":"meta.container.ty.wit","patterns":[{"include":"#tuple"},{"include":"#list"},{"include":"#option"},{"include":"#result"},{"include":"#handle"}]},"doc-comment":{"begin":"^\\\\s*///","end":"$","name":"comment.line.documentation.wit","patterns":[{"include":"#markdown"}]},"enum":{"applyEndPatternLast":1,"begin":"\\\\b(enum)\\\\b\\\\s+%?((?)","name":"meta.handle.ty.wit"},"identifier":{"match":"\\\\b%?((?)","endCaptures":{"1":{"name":"punctuation.brackets.angle.end.wit"}},"name":"meta.list.ty.wit","patterns":[{"include":"#comment"},{"include":"#types","name":"meta.types.list.wit"},{"include":"#whitespace"}]},"markdown":{"patterns":[{"captures":{"1":{"name":"markup.heading.markdown"}},"match":"\\\\G\\\\s*(#+.*)$"},{"captures":{"2":{"name":"punctuation.definition.quote.begin.markdown"}},"match":"\\\\G\\\\s*((>)\\\\s+)+"},{"captures":{"1":{"name":"punctuation.definition.list.begin.markdown"}},"match":"\\\\G\\\\s*(-)\\\\s+"},{"captures":{"1":{"name":"markup.list.numbered.markdown"},"2":{"name":"punctuation.definition.list.begin.markdown"}},"match":"\\\\G\\\\s*(([0-9]+\\\\.)\\\\s+)"},{"captures":{"1":{"name":"markup.italic.markdown"}},"match":"(`.*?`)"},{"captures":{"1":{"name":"markup.bold.markdown"}},"match":"\\\\b(__.*?__)"},{"captures":{"1":{"name":"markup.italic.markdown"}},"match":"\\\\b(_.*?_)"},{"captures":{"1":{"name":"markup.bold.markdown"}},"match":"(\\\\*\\\\*.*?\\\\*\\\\*)"},{"captures":{"1":{"name":"markup.italic.markdown"}},"match":"(\\\\*.*?\\\\*)"}]},"named-type-list":{"applyEndPatternLast":1,"begin":"\\\\b%?((?","name":"punctuation.brackets.angle.end.wit"},{"match":"\\\\*","name":"keyword.operator.star.wit"},{"match":"->","name":"keyword.operator.arrow.skinny.wit"}]},"option":{"applyEndPatternLast":1,"begin":"\\\\b(option)\\\\b(<)","beginCaptures":{"1":{"name":"entity.name.type.option.wit"},"2":{"name":"punctuation.brackets.angle.begin.wit"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.brackets.angle.end.wit"}},"name":"meta.option.ty.wit","patterns":[{"include":"#comment"},{"include":"#types","name":"meta.types.option.wit"},{"include":"#whitespace"}]},"package":{"captures":{"1":{"name":"storage.modifier.package-decl.wit"},"2":{"name":"meta.id.package-decl.wit","patterns":[{"captures":{"1":{"name":"entity.name.namespace.package-identifier.wit","patterns":[{"include":"#identifier"}]},"2":{"name":"keyword.operator.namespace.package-identifier.wit"},"3":{"name":"entity.name.type.package-identifier.wit","patterns":[{"include":"#identifier"}]},"5":{"name":"keyword.operator.versioning.package-identifier.wit"},"6":{"name":"constant.numeric.versioning.package-identifier.wit"}},"match":"([^:]+)(:)([^@]+)((@)(\\\\S+))?","name":"meta.package-identifier.wit"}]}},"match":"^(package)\\\\s+(\\\\S+)\\\\s*","name":"meta.package-decl.wit"},"parameter-list":{"applyEndPatternLast":1,"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.brackets.round.begin.wit"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.brackets.round.end.wit"}},"name":"meta.param-list.wit","patterns":[{"include":"#comment"},{"include":"#named-type-list"},{"include":"#whitespace"}]},"primitive":{"name":"meta.primitive.ty.wit","patterns":[{"include":"#numeric"},{"include":"#boolean"},{"include":"#string"}]},"record":{"applyEndPatternLast":1,"begin":"\\\\b(record)\\\\b\\\\s+%?((?)","endCaptures":{"1":{"name":"punctuation.brackets.angle.end.wit"}},"name":"meta.inner.result.wit","patterns":[{"include":"#comment"},{"match":"(?)","beginCaptures":{"1":{"name":"keyword.operator.arrow.skinny.wit"}},"end":"((?<=\\\\n)|(?=}))","name":"meta.result-list.wit","patterns":[{"include":"#comment"},{"include":"#types"},{"include":"#parameter-list"},{"include":"#whitespace"}]},"string":{"match":"\\\\b(string|char)\\\\b","name":"entity.name.type.string.wit"},"toplevel-use":{"captures":{"1":{"name":"keyword.other.use.toplevel-use-item.wit"},"2":{"name":"meta.interface.toplevel-use-item.wit","patterns":[{"match":"\\\\b%?((?)","endCaptures":{"1":{"name":"punctuation.brackets.angle.end.wit"}},"name":"meta.tuple.ty.wit","patterns":[{"include":"#comment"},{"include":"#types","name":"meta.types.tuple.wit"},{"match":"(,)","name":"punctuation.comma.wit"},{"include":"#whitespace"}]},"type-definition":{"applyEndPatternLast":1,"begin":"\\\\b(type)\\\\b\\\\s+%?((?","endCaptures":{"0":{"name":"punctuation.section.associations.end.wolfram"}},"name":"meta.associations.wolfram","patterns":[{"include":"#expressions"}]},"brace-group":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.braces.begin.wolfram"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.braces.end.wolfram"}},"name":"meta.braces.wolfram","patterns":[{"include":"#expressions"}]},"bracket-group":{"begin":"::\\\\[|\\\\[","beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.wolfram"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.brackets.end.wolfram"}},"name":"meta.brackets.wolfram","patterns":[{"include":"#expressions"}]},"comments":{"patterns":[{"begin":"\\\\(\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.wolfram"}},"end":"\\\\*\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.wolfram"}},"name":"comment.block","patterns":[{"include":"#comments"}]},{"match":"\\\\*\\\\)","name":"invalid.illegal.stray-comment-end.wolfram"}]},"escaped_character_symbols":{"patterns":[{"match":"System`\\\\\\\\\\\\[Formal(?:A|Alpha|B|Beta|C|CapitalA|CapitalAlpha|CapitalB|CapitalBeta|CapitalC|CapitalChi|CapitalD|CapitalDelta|CapitalDigamma|CapitalE|CapitalEpsilon|CapitalEta|CapitalF|CapitalG|CapitalGamma|CapitalH|CapitalI|CapitalIota|CapitalJ|CapitalK|CapitalKappa|CapitalKoppa|CapitalL|CapitalLambda|CapitalMu??|CapitalNu??|CapitalO|CapitalOmega|CapitalOmicron|CapitalP|CapitalPhi|CapitalPi|CapitalPsi|CapitalQ|CapitalR|CapitalRho|CapitalS|CapitalSampi|CapitalSigma|CapitalStigma|CapitalT|CapitalTau|CapitalTheta|CapitalU|CapitalUpsilon|CapitalV|CapitalW|CapitalXi??|CapitalY|CapitalZ|CapitalZeta|Chi|CurlyCapitalUpsilon|CurlyEpsilon|CurlyKappa|CurlyPhi|CurlyPi|CurlyRho|CurlyTheta|D|Delta|Digamma|E|Epsilon|Eta|F|FinalSigma|G|Gamma|[HI]|Iota|[JK]|Kappa|Koppa|L|Lambda|Mu??|Nu??|O|Omega|Omicron|P|Phi|Pi|Psi|[QR]|Rho|S|Sampi|ScriptA|ScriptB|ScriptC|ScriptCapitalA|ScriptCapitalB|ScriptCapitalC|ScriptCapitalD|ScriptCapitalE|ScriptCapitalF|ScriptCapitalG|ScriptCapitalH|ScriptCapitalI|ScriptCapitalJ|ScriptCapitalK|ScriptCapitalL|ScriptCapitalM|ScriptCapitalN|ScriptCapitalO|ScriptCapitalP|ScriptCapitalQ|ScriptCapitalR|ScriptCapitalS|ScriptCapitalT|ScriptCapitalU|ScriptCapitalV|ScriptCapitalW|ScriptCapitalX|ScriptCapitalY|ScriptCapitalZ|ScriptD|ScriptE|ScriptF|ScriptG|ScriptH|ScriptI|ScriptJ|ScriptK|ScriptL|ScriptM|ScriptN|ScriptO|ScriptP|ScriptQ|ScriptR|ScriptS|ScriptT|ScriptU|ScriptV|ScriptW|ScriptX|ScriptY|ScriptZ|Sigma|Stigma|T|Tau|Theta|U|Upsilon|[VW]|Xi??|[YZ]|Zeta)](?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`\\\\\\\\\\\\[SystemsModelDelay](?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"\\\\\\\\\\\\[Formal(?:A|Alpha|B|Beta|C|CapitalA|CapitalAlpha|CapitalB|CapitalBeta|CapitalC|CapitalChi|CapitalD|CapitalDelta|CapitalDigamma|CapitalE|CapitalEpsilon|CapitalEta|CapitalF|CapitalG|CapitalGamma|CapitalH|CapitalI|CapitalIota|CapitalJ|CapitalK|CapitalKappa|CapitalKoppa|CapitalL|CapitalLambda|CapitalMu??|CapitalNu??|CapitalO|CapitalOmega|CapitalOmicron|CapitalP|CapitalPhi|CapitalPi|CapitalPsi|CapitalQ|CapitalR|CapitalRho|CapitalS|CapitalSampi|CapitalSigma|CapitalStigma|CapitalT|CapitalTau|CapitalTheta|CapitalU|CapitalUpsilon|CapitalV|CapitalW|CapitalXi??|CapitalY|CapitalZ|CapitalZeta|Chi|CurlyCapitalUpsilon|CurlyEpsilon|CurlyKappa|CurlyPhi|CurlyPi|CurlyRho|CurlyTheta|D|Delta|Digamma|E|Epsilon|Eta|F|FinalSigma|G|Gamma|[HI]|Iota|[JK]|Kappa|Koppa|L|Lambda|Mu??|Nu??|O|Omega|Omicron|P|Phi|Pi|Psi|[QR]|Rho|S|Sampi|ScriptA|ScriptB|ScriptC|ScriptCapitalA|ScriptCapitalB|ScriptCapitalC|ScriptCapitalD|ScriptCapitalE|ScriptCapitalF|ScriptCapitalG|ScriptCapitalH|ScriptCapitalI|ScriptCapitalJ|ScriptCapitalK|ScriptCapitalL|ScriptCapitalM|ScriptCapitalN|ScriptCapitalO|ScriptCapitalP|ScriptCapitalQ|ScriptCapitalR|ScriptCapitalS|ScriptCapitalT|ScriptCapitalU|ScriptCapitalV|ScriptCapitalW|ScriptCapitalX|ScriptCapitalY|ScriptCapitalZ|ScriptD|ScriptE|ScriptF|ScriptG|ScriptH|ScriptI|ScriptJ|ScriptK|ScriptL|ScriptM|ScriptN|ScriptO|ScriptP|ScriptQ|ScriptR|ScriptS|ScriptT|ScriptU|ScriptV|ScriptW|ScriptX|ScriptY|ScriptZ|Sigma|Stigma|T|Tau|Theta|U|Upsilon|[VW]|Xi??|[YZ]|Zeta)](?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"\\\\\\\\\\\\[SystemsModelDelay](?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"\\\\\\\\\\\\[Degree](?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"\\\\\\\\\\\\[ExponentialE](?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"\\\\\\\\\\\\[I(?:maginaryI|maginaryJ|nfinity)](?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"\\\\\\\\\\\\[Pi](?![$`[:alnum:]])","name":"constant.language.wolfram"}]},"escaped_characters":{"patterns":[{"match":"\\\\\\\\[ !%\\\\&(-+/@^_`]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[A(?:kuz|ndy)]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[C(?:ontinuedFractionK|url)]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[Div(?:ergence|isionSlash)]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[ExpectationE]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[FreeformPrompt]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[Gradient]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[Laplacian]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[M(?:inus|oon)]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[NumberComma]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[P(?:ageBreakAbove|ageBreakBelow|robabilityPr)]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[S(?:pooky|tepperDown|tepperLeft|tepperRight|tepperUp|un)]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[UnknownGlyph]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[Villa]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[WolframAlphaPrompt]","name":"donothighlight.constant.character.escape.undocumented"},{"match":"\\\\\\\\\\\\[COMPATIBILITY(?:KanjiSpace|NoBreak)]","name":"invalid.illegal.unsupported"},{"match":"\\\\\\\\\\\\[InlinePart]","name":"invalid.illegal.unsupported"},{"match":"\\\\\\\\\\\\[A(?:Acute|Bar|Cup|DoubleDot|E|Grave|Hat|Ring|Tilde|leph|liasDelimiter|liasIndicator|lignmentMarker|lpha|ltKey|nd|ngle|ngstrom|pplication|quariusSign|riesSign|scendingEllipsis|utoLeftMatch|utoOperand|utoPlaceholder|utoRightMatch|utoSpace)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[B(?:ackslash|eamedEighthNote|eamedSixteenthNote|ecause|eta??|lackBishop|lackKing|lackKnight|lackPawn|lackQueen|lackRook|reve|ullet)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[C(?:Acute|Cedilla|Hacek|ancerSign|ap|apitalAAcute|apitalABar|apitalACup|apitalADoubleDot|apitalAE|apitalAGrave|apitalAHat|apitalARing|apitalATilde|apitalAlpha|apitalBeta|apitalCAcute|apitalCCedilla|apitalCHacek|apitalChi|apitalDHacek|apitalDelta|apitalDifferentialD|apitalDigamma|apitalEAcute|apitalEBar|apitalECup|apitalEDoubleDot|apitalEGrave|apitalEHacek|apitalEHat|apitalEpsilon|apitalEta|apitalEth|apitalGamma|apitalIAcute|apitalICup|apitalIDoubleDot|apitalIGrave|apitalIHat|apitalIota|apitalKappa|apitalKoppa|apitalLSlash|apitalLambda|apitalMu|apitalNHacek|apitalNTilde|apitalNu|apitalOAcute|apitalODoubleAcute|apitalODoubleDot|apitalOE|apitalOGrave|apitalOHat|apitalOSlash|apitalOTilde|apitalOmega|apitalOmicron|apitalPhi|apitalPi|apitalPsi|apitalRHacek|apitalRho|apitalSHacek|apitalSampi|apitalSigma|apitalStigma|apitalTHacek|apitalTau|apitalTheta|apitalThorn|apitalUAcute|apitalUDoubleAcute|apitalUDoubleDot|apitalUGrave|apitalUHat|apitalURing|apitalUpsilon|apitalXi|apitalYAcute|apitalZHacek|apitalZeta|apricornSign|edilla|ent|enterDot|enterEllipsis|heckedBox|heckmark|heckmarkedBox|hi|ircleDot|ircleMinus|irclePlus|ircleTimes|lockwiseContourIntegral|loseCurlyDoubleQuote|loseCurlyQuote|loverLeaf|lubSuit|olon|ommandKey|onditioned|ongruent|onjugate|onjugateTranspose|onstantC|ontinuation|ontourIntegral|ontrolKey|oproduct|opyright|ounterClockwiseContourIntegral|ross|ubeRoot|up|upCap|urlyCapitalUpsilon|urlyEpsilon|urlyKappa|urlyPhi|urlyPi|urlyRho|urlyTheta|urrency)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[D(?:Hacek|agger|alet|ash|egree|el|eleteKey|elta|escendingEllipsis|iameter|iamond|iamondSuit|ifferenceDelta|ifferentialD|igamma|irectedEdge|iscreteRatio|iscreteShift|iscretionaryHyphen|iscretionaryLineSeparator|iscretionaryPageBreakAbove|iscretionaryPageBreakBelow|iscretionaryParagraphSeparator|istributed|ivides??|otEqual|otlessI|otlessJ|ottedSquare|oubleContourIntegral|oubleDagger|oubleDot|oubleDownArrow|oubleLeftArrow|oubleLeftRightArrow|oubleLeftTee|oubleLongLeftArrow|oubleLongLeftRightArrow|oubleLongRightArrow|oublePrime|oubleRightArrow|oubleRightTee|oubleStruckA|oubleStruckB|oubleStruckC|oubleStruckCapitalA|oubleStruckCapitalB|oubleStruckCapitalC|oubleStruckCapitalD|oubleStruckCapitalE|oubleStruckCapitalF|oubleStruckCapitalG|oubleStruckCapitalH|oubleStruckCapitalI|oubleStruckCapitalJ|oubleStruckCapitalK|oubleStruckCapitalL|oubleStruckCapitalM|oubleStruckCapitalN|oubleStruckCapitalO|oubleStruckCapitalP|oubleStruckCapitalQ|oubleStruckCapitalR|oubleStruckCapitalS|oubleStruckCapitalT|oubleStruckCapitalU|oubleStruckCapitalV|oubleStruckCapitalW|oubleStruckCapitalX|oubleStruckCapitalY|oubleStruckCapitalZ|oubleStruckD|oubleStruckE|oubleStruckEight|oubleStruckF|oubleStruckFive|oubleStruckFour|oubleStruckG|oubleStruckH|oubleStruckI|oubleStruckJ|oubleStruckK|oubleStruckL|oubleStruckM|oubleStruckN|oubleStruckNine|oubleStruckO|oubleStruckOne|oubleStruckP|oubleStruckQ|oubleStruckR|oubleStruckS|oubleStruckSeven|oubleStruckSix|oubleStruckT|oubleStruckThree|oubleStruckTwo|oubleStruckU|oubleStruckV|oubleStruckW|oubleStruckX|oubleStruckY|oubleStruckZ|oubleStruckZero|oubleUpArrow|oubleUpDownArrow|oubleVerticalBar|oubledGamma|oubledPi|ownArrow|ownArrowBar|ownArrowUpArrow|ownBreve|ownExclamation|ownLeftRightVector|ownLeftTeeVector|ownLeftVector|ownLeftVectorBar|ownPointer|ownQuestion|ownRightTeeVector|ownRightVector|ownRightVectorBar|ownTee|ownTeeArrow)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[E(?:Acute|Bar|Cup|DoubleDot|Grave|Hacek|Hat|arth|ighthNote|lement|llipsis|mptyCircle|mptyDiamond|mptyDownTriangle|mptyRectangle|mptySet|mptySmallCircle|mptySmallSquare|mptySquare|mptyUpTriangle|mptyVerySmallSquare|nterKey|ntityEnd|ntityStart|psilon|qual|qualTilde|quilibrium|quivalent|rrorIndicator|scapeKey|ta|th|uro|xists|xponentialE)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[F(?:iLigature|illedCircle|illedDiamond|illedDownTriangle|illedLeftTriangle|illedRectangle|illedRightTriangle|illedSmallCircle|illedSmallSquare|illedSquare|illedUpTriangle|illedVerySmallSquare|inalSigma|irstPage|ivePointedStar|lLigature|lat|lorin|orAll|ormalA|ormalAlpha|ormalB|ormalBeta|ormalC|ormalCapitalA|ormalCapitalAlpha|ormalCapitalB|ormalCapitalBeta|ormalCapitalC|ormalCapitalChi|ormalCapitalD|ormalCapitalDelta|ormalCapitalDigamma|ormalCapitalE|ormalCapitalEpsilon|ormalCapitalEta|ormalCapitalF|ormalCapitalG|ormalCapitalGamma|ormalCapitalH|ormalCapitalI|ormalCapitalIota|ormalCapitalJ|ormalCapitalK|ormalCapitalKappa|ormalCapitalKoppa|ormalCapitalL|ormalCapitalLambda|ormalCapitalMu??|ormalCapitalNu??|ormalCapitalO|ormalCapitalOmega|ormalCapitalOmicron|ormalCapitalP|ormalCapitalPhi|ormalCapitalPi|ormalCapitalPsi|ormalCapitalQ|ormalCapitalR|ormalCapitalRho|ormalCapitalS|ormalCapitalSampi|ormalCapitalSigma|ormalCapitalStigma|ormalCapitalT|ormalCapitalTau|ormalCapitalTheta|ormalCapitalU|ormalCapitalUpsilon|ormalCapitalV|ormalCapitalW|ormalCapitalXi??|ormalCapitalY|ormalCapitalZ|ormalCapitalZeta|ormalChi|ormalCurlyCapitalUpsilon|ormalCurlyEpsilon|ormalCurlyKappa|ormalCurlyPhi|ormalCurlyPi|ormalCurlyRho|ormalCurlyTheta|ormalD|ormalDelta|ormalDigamma|ormalE|ormalEpsilon|ormalEta|ormalF|ormalFinalSigma|ormalG|ormalGamma|ormalH|ormalI|ormalIota|ormalJ|ormalK|ormalKappa|ormalKoppa|ormalL|ormalLambda|ormalMu??|ormalNu??|ormalO|ormalOmega|ormalOmicron|ormalP|ormalPhi|ormalPi|ormalPsi|ormalQ|ormalR|ormalRho|ormalS|ormalSampi|ormalScriptA|ormalScriptB|ormalScriptC|ormalScriptCapitalA|ormalScriptCapitalB|ormalScriptCapitalC|ormalScriptCapitalD|ormalScriptCapitalE|ormalScriptCapitalF|ormalScriptCapitalG|ormalScriptCapitalH|ormalScriptCapitalI|ormalScriptCapitalJ|ormalScriptCapitalK|ormalScriptCapitalL|ormalScriptCapitalM|ormalScriptCapitalN|ormalScriptCapitalO|ormalScriptCapitalP|ormalScriptCapitalQ|ormalScriptCapitalR|ormalScriptCapitalS|ormalScriptCapitalT|ormalScriptCapitalU|ormalScriptCapitalV|ormalScriptCapitalW|ormalScriptCapitalX|ormalScriptCapitalY|ormalScriptCapitalZ|ormalScriptD|ormalScriptE|ormalScriptF|ormalScriptG|ormalScriptH|ormalScriptI|ormalScriptJ|ormalScriptK|ormalScriptL|ormalScriptM|ormalScriptN|ormalScriptO|ormalScriptP|ormalScriptQ|ormalScriptR|ormalScriptS|ormalScriptT|ormalScriptU|ormalScriptV|ormalScriptW|ormalScriptX|ormalScriptY|ormalScriptZ|ormalSigma|ormalStigma|ormalT|ormalTau|ormalTheta|ormalU|ormalUpsilon|ormalV|ormalW|ormalXi??|ormalY|ormalZ|ormalZeta|reakedSmiley|unction)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[G(?:amma|eminiSign|imel|othicA|othicB|othicC|othicCapitalA|othicCapitalB|othicCapitalC|othicCapitalD|othicCapitalE|othicCapitalF|othicCapitalG|othicCapitalH|othicCapitalI|othicCapitalJ|othicCapitalK|othicCapitalL|othicCapitalM|othicCapitalN|othicCapitalO|othicCapitalP|othicCapitalQ|othicCapitalR|othicCapitalS|othicCapitalT|othicCapitalU|othicCapitalV|othicCapitalW|othicCapitalX|othicCapitalY|othicCapitalZ|othicD|othicE|othicEight|othicF|othicFive|othicFour|othicG|othicH|othicI|othicJ|othicK|othicL|othicM|othicN|othicNine|othicO|othicOne|othicP|othicQ|othicR|othicS|othicSeven|othicSix|othicT|othicThree|othicTwo|othicU|othicV|othicW|othicX|othicY|othicZ|othicZero|rayCircle|raySquare|reaterEqual|reaterEqualLess|reaterFullEqual|reaterGreater|reaterLess|reaterSlantEqual|reaterTilde)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[H(?:Bar|acek|appySmiley|eartSuit|ermitianConjugate|orizontalLine|umpDownHump|umpEqual|yphen)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[I(?:Acute|Cup|DoubleDot|Grave|Hat|maginaryI|maginaryJ|mplicitPlus|mplies|ndentingNewLine|nfinity|ntegral|ntersection|nvisibleApplication|nvisibleComma|nvisiblePostfixScriptBase|nvisiblePrefixScriptBase|nvisibleSpace|nvisibleTimes|ota)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[Jupiter]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[K(?:appa|ernelIcon|eyBar|oppa)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[L(?:Slash|ambda|astPage|eftAngleBracket|eftArrow|eftArrowBar|eftArrowRightArrow|eftAssociation|eftBracketingBar|eftCeiling|eftDoubleBracket|eftDoubleBracketingBar|eftDownTeeVector|eftDownVector|eftDownVectorBar|eftFloor|eftGuillemet|eftModified|eftPointer|eftRightArrow|eftRightVector|eftSkeleton|eftTee|eftTeeArrow|eftTeeVector|eftTriangle|eftTriangleBar|eftTriangleEqual|eftUpDownVector|eftUpTeeVector|eftUpVector|eftUpVectorBar|eftVector|eftVectorBar|eoSign|essEqual|essEqualGreater|essFullEqual|essGreater|essLess|essSlantEqual|essTilde|etterSpace|ibraSign|ightBulb|imit|ineSeparator|ongDash|ongEqual|ongLeftArrow|ongLeftRightArrow|ongRightArrow|owerLeftArrow|owerRightArrow)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[M(?:ars|athematicaIcon|axLimit|easuredAngle|ediumSpace|ercury|ho|icro|inLimit|inusPlus|od1Key|od2Key|u)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[N(?:Hacek|Tilde|and|atural|egativeMediumSpace|egativeThickSpace|egativeThinSpace|egativeVeryThinSpace|eptune|estedGreaterGreater|estedLessLess|eutralSmiley|ewLine|oBreak|onBreakingSpace|or|ot|otCongruent|otCupCap|otDoubleVerticalBar|otElement|otEqual|otEqualTilde|otExists|otGreater|otGreaterEqual|otGreaterFullEqual|otGreaterGreater|otGreaterLess|otGreaterSlantEqual|otGreaterTilde|otHumpDownHump|otHumpEqual|otLeftTriangle|otLeftTriangleBar|otLeftTriangleEqual|otLess|otLessEqual|otLessFullEqual|otLessGreater|otLessLess|otLessSlantEqual|otLessTilde|otNestedGreaterGreater|otNestedLessLess|otPrecedes|otPrecedesEqual|otPrecedesSlantEqual|otPrecedesTilde|otReverseElement|otRightTriangle|otRightTriangleBar|otRightTriangleEqual|otSquareSubset|otSquareSubsetEqual|otSquareSuperset|otSquareSupersetEqual|otSubset|otSubsetEqual|otSucceeds|otSucceedsEqual|otSucceedsSlantEqual|otSucceedsTilde|otSuperset|otSupersetEqual|otTilde|otTildeEqual|otTildeFullEqual|otTildeTilde|otVerticalBar|u|ull|umberSign)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[O(?:Acute|DoubleAcute|DoubleDot|E|Grave|Hat|Slash|Tilde|mega|micron|penCurlyDoubleQuote|penCurlyQuote|ptionKey|r|verBrace|verBracket|verParenthesis)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[P(?:aragraph|aragraphSeparator|artialD|ermutationProduct|erpendicular|hi|i|iecewise|iscesSign|laceholder|lusMinus|luto|recedes|recedesEqual|recedesSlantEqual|recedesTilde|rime|roduct|roportion|roportional|si)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[QuarterNote]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[R(?:Hacek|awAmpersand|awAt|awBackquote|awBackslash|awColon|awComma|awDash|awDollar|awDot|awDoubleQuote|awEqual|awEscape|awExclamation|awGreater|awLeftBrace|awLeftBracket|awLeftParenthesis|awLess|awNumberSign|awPercent|awPlus|awQuestion|awQuote|awReturn|awRightBrace|awRightBracket|awRightParenthesis|awSemicolon|awSlash|awSpace|awStar|awTab|awTilde|awUnderscore|awVerticalBar|awWedge|egisteredTrademark|eturnIndicator|eturnKey|everseDoublePrime|everseElement|everseEquilibrium|eversePrime|everseUpEquilibrium|ho|ightAngle|ightAngleBracket|ightArrow|ightArrowBar|ightArrowLeftArrow|ightAssociation|ightBracketingBar|ightCeiling|ightDoubleBracket|ightDoubleBracketingBar|ightDownTeeVector|ightDownVector|ightDownVectorBar|ightFloor|ightGuillemet|ightModified|ightPointer|ightSkeleton|ightTee|ightTeeArrow|ightTeeVector|ightTriangle|ightTriangleBar|ightTriangleEqual|ightUpDownVector|ightUpTeeVector|ightUpVector|ightUpVectorBar|ightVector|ightVectorBar|oundImplies|oundSpaceIndicator|ule|uleDelayed|upee)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[S(?:Hacek|Z|adSmiley|agittariusSign|ampi|aturn|corpioSign|criptA|criptB|criptC|criptCapitalA|criptCapitalB|criptCapitalC|criptCapitalD|criptCapitalE|criptCapitalF|criptCapitalG|criptCapitalH|criptCapitalI|criptCapitalJ|criptCapitalK|criptCapitalL|criptCapitalM|criptCapitalN|criptCapitalO|criptCapitalP|criptCapitalQ|criptCapitalR|criptCapitalS|criptCapitalT|criptCapitalU|criptCapitalV|criptCapitalW|criptCapitalX|criptCapitalY|criptCapitalZ|criptD|criptDotlessI|criptDotlessJ|criptE|criptEight|criptF|criptFive|criptFour|criptG|criptH|criptI|criptJ|criptK|criptL|criptM|criptN|criptNine|criptO|criptOne|criptP|criptQ|criptR|criptS|criptSeven|criptSix|criptT|criptThree|criptTwo|criptU|criptV|criptW|criptX|criptY|criptZ|criptZero|ection|electionPlaceholder|hah|harp|hiftKey|hortDownArrow|hortLeftArrow|hortRightArrow|hortUpArrow|igma|ixPointedStar|keletonIndicator|mallCircle|paceIndicator|paceKey|padeSuit|panFromAbove|panFromBoth|panFromLeft|phericalAngle|qrt|quare|quareIntersection|quareSubset|quareSubsetEqual|quareSuperset|quareSupersetEqual|quareUnion|tar|terling|tigma|ubset|ubsetEqual|ucceeds|ucceedsEqual|ucceedsSlantEqual|ucceedsTilde|uchThat|um|uperset|upersetEqual|ystemEnterKey|ystemsModelDelay)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[T(?:Hacek|abKey|au|aurusSign|ensorProduct|ensorWedge|herefore|heta|hickSpace|hinSpace|horn|ilde|ildeEqual|ildeFullEqual|ildeTilde|imes|rademark|ranspose|ripleDot|woWayRule)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[U(?:Acute|DoubleAcute|DoubleDot|Grave|Hat|Ring|nderBrace|nderBracket|nderParenthesis|ndirectedEdge|nion|nionPlus|pArrow|pArrowBar|pArrowDownArrow|pDownArrow|pEquilibrium|pPointer|pTee|pTeeArrow|pperLeftArrow|pperRightArrow|psilon|ranus)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[V(?:ectorGreater|ectorGreaterEqual|ectorLess|ectorLessEqual|ee|enus|erticalBar|erticalEllipsis|erticalLine|erticalSeparator|erticalTilde|eryThinSpace|irgoSign)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[W(?:arningSign|atchIcon|edge|eierstrassP|hiteBishop|hiteKing|hiteKnight|hitePawn|hiteQueen|hiteRook|olf|olframLanguageLogo|olframLanguageLogoCircle)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[X(?:i|nor|or)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[Y(?:Acute|DoubleDot|en)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[Z(?:Hacek|eta)]","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\[(?:[$[:alpha:]][$[:alnum:]]*)?]?","name":"invalid.illegal.BadLongName"},{"match":"\\\\\\\\[$[:alpha:]][$[:alnum:]]*]","name":"invalid.illegal.BadLongName"},{"match":"\\\\\\\\:\\\\h{4}","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\:\\\\h{1,3}","name":"invalid.illegal"},{"match":"\\\\\\\\\\\\.\\\\h{2}","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\.\\\\h{1}","name":"invalid.illegal"},{"match":"\\\\\\\\\\\\|0\\\\h{5}","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\|10\\\\h{4}","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\\\\\|\\\\h{1,6}","name":"invalid.illegal"},{"match":"\\\\\\\\[0-7]{3}","name":"donothighlight.constant.character.escape"},{"match":"\\\\\\\\[0-7]{1,2}","name":"invalid.illegal"},{"match":"\\\\\\\\$","name":"donothighlight.constant.character.escape punctuation.separator.continuation"},{"match":"\\\\\\\\.","name":"invalid.illegal"}]},"expressions":{"patterns":[{"include":"#comments"},{"include":"#escaped_character_symbols"},{"include":"#escaped_characters"},{"include":"#out"},{"include":"#slot"},{"include":"#literals"},{"include":"#groups"},{"include":"#stringifying-operators"},{"include":"#operators"},{"include":"#pattern-operators"},{"include":"#symbols"},{"match":"[!\\\\&\'*-/:-@\\\\\\\\^|~]","name":"invalid.illegal"}]},"groups":{"patterns":[{"match":"\\\\\\\\\\\\)","name":"invalid.illegal.stray-linearsyntaxparens-end.wolfram"},{"match":"\\\\)","name":"invalid.illegal.stray-parens-end.wolfram"},{"match":"\\\\[\\\\s+\\\\[","name":"invalid.whitespace.Part.wolfram"},{"match":"]\\\\s+]","name":"invalid.whitespace.Part.wolfram"},{"match":"]]","name":"invalid.illegal.stray-parts-end.wolfram"},{"match":"]","name":"invalid.illegal.stray-brackets-end.wolfram"},{"match":"}","name":"invalid.illegal.stray-braces-end.wolfram"},{"match":"\\\\|>","name":"invalid.illegal.stray-associations-end.wolfram"},{"include":"#linearsyntaxparen-group"},{"include":"#paren-group"},{"include":"#part-group"},{"include":"#bracket-group"},{"include":"#brace-group"},{"include":"#association-group"}]},"linearsyntaxparen-group":{"begin":"\\\\\\\\\\\\(","beginCaptures":{"0":{"name":"punctuation.section.linearsyntaxparens.begin.wolfram"}},"end":"\\\\\\\\\\\\)","endCaptures":{"0":{"name":"punctuation.section.linearsyntaxparens.end.wolfram"}},"name":"meta.linearsyntaxparens.wolfram","patterns":[{"include":"#expressions"}]},"literals":{"patterns":[{"include":"#numbers"},{"include":"#strings"}]},"main":{"patterns":[{"include":"#shebang"},{"include":"#simple-toplevel-definitions"},{"include":"#expressions"}]},"numbers":{"patterns":[{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)","name":"constant.numeric.wolfram"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)``","name":"invalid.illegal"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^","name":"invalid.illegal"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+","name":"constant.numeric.wolfram"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"2\\\\^\\\\^(?:[01]+(?:\\\\.(?!\\\\.)[01]*)?+|\\\\.(?!\\\\.)[01]+)","name":"constant.numeric.wolfram"},{"match":"2\\\\^\\\\^","name":"invalid.illegal"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)","name":"constant.numeric.wolfram"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)``","name":"invalid.illegal"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^","name":"invalid.illegal"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+","name":"constant.numeric.wolfram"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"8\\\\^\\\\^(?:[0-7]+(?:\\\\.(?!\\\\.)[0-7]*)?+|\\\\.(?!\\\\.)[0-7]+)","name":"constant.numeric.wolfram"},{"match":"8\\\\^\\\\^","name":"invalid.illegal"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)","name":"constant.numeric.wolfram"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)``","name":"invalid.illegal"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^","name":"invalid.illegal"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+","name":"constant.numeric.wolfram"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"16\\\\^\\\\^(?:\\\\h+(?:\\\\.(?!\\\\.)\\\\h*)?+|\\\\.(?!\\\\.)\\\\h+)","name":"constant.numeric.wolfram"},{"match":"16\\\\^\\\\^","name":"invalid.illegal"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)``[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)","name":"constant.numeric.wolfram"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)``","name":"invalid.illegal"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+\\\\*\\\\^","name":"invalid.illegal"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)`(?:[-+]?+(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+))?+","name":"constant.numeric.wolfram"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^[-+]?+\\\\d+","name":"constant.numeric.wolfram"},{"match":"(?:\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+)\\\\*\\\\^","name":"invalid.illegal"},{"match":"\\\\d+(?:\\\\.(?!\\\\.)\\\\d*)?+|\\\\.(?!\\\\.)\\\\d+","name":"constant.numeric.wolfram"}]},"operators":{"patterns":[{"match":"\\\\^:=","name":"keyword.operator.assignment.UpSetDelayed.wolfram"},{"match":"\\\\^:","name":"invalid.illegal"},{"match":"===","name":"keyword.operator.SameQ.wolfram"},{"match":"=!=|\\\\.\\\\.\\\\.|//\\\\.|@@@|<->|//@","name":"keyword.operator.wolfram"},{"match":"\\\\|->","name":"keyword.operator.Function.wolfram"},{"match":"//=","name":"keyword.operator.assignment.ApplyTo.wolfram"},{"match":"--|\\\\+\\\\+","name":"keyword.operator.arithmetic.wolfram"},{"match":"\\\\|\\\\||&&","name":"keyword.operator.logical.wolfram"},{"match":":=","name":"keyword.operator.assignment.SetDelayed.wolfram"},{"match":"\\\\^=","name":"keyword.operator.assignment.UpSet.wolfram"},{"match":"/=","name":"keyword.operator.assignment.DivideBy.wolfram"},{"match":"\\\\+=","name":"keyword.operator.assignment.AddTo.wolfram"},{"match":"=\\\\s+\\\\.(?![0-9])","name":"invalid.whitespace.Unset.wolfram"},{"match":"=\\\\.(?![0-9])","name":"keyword.operator.assignment.Unset.wolfram"},{"match":"\\\\*=","name":"keyword.operator.assignment.TimesBy.wolfram"},{"match":"-=","name":"keyword.operator.assignment.SubtractFrom.wolfram"},{"match":"/:","name":"keyword.operator.assignment.Tag.wolfram"},{"match":";;$","name":"invalid.endofline.Span.wolfram"},{"match":";;","name":"keyword.operator.Span.wolfram"},{"match":"!=","name":"keyword.operator.Unequal.wolfram"},{"match":"==","name":"keyword.operator.Equal.wolfram"},{"match":"!!","name":"keyword.operator.BangBang.wolfram"},{"match":"\\\\?\\\\?","name":"invalid.illegal.Information.wolfram"},{"match":"<=|>=|\\\\.\\\\.|:>|<>|->|/@|/;|/\\\\.|//|/\\\\*|@@|@\\\\*|~~|\\\\*\\\\*","name":"keyword.operator.wolfram"},{"match":"[-*+/]","name":"keyword.operator.arithmetic.wolfram"},{"match":"=","name":"keyword.operator.assignment.Set.wolfram"},{"match":"<","name":"keyword.operator.Less.wolfram"},{"match":"\\\\|","name":"keyword.operator.Alternatives.wolfram"},{"match":"!","name":"keyword.operator.Bang.wolfram"},{"match":";","name":"keyword.operator.CompoundExpression.wolfram punctuation.terminator"},{"match":",","name":"keyword.operator.Comma.wolfram punctuation.separator"},{"match":"^\\\\?","name":"invalid.startofline.Information.wolfram"},{"match":"\\\\?","name":"keyword.operator.PatternTest.wolfram"},{"match":"\'","name":"keyword.operator.Derivative.wolfram"},{"match":"&","name":"keyword.operator.Function.wolfram"},{"match":"[.:>@^~]","name":"keyword.operator.wolfram"}]},"out":{"patterns":[{"match":"%\\\\d+","name":"keyword.other.Out.wolfram"},{"match":"%+","name":"keyword.other.Out.wolfram"}]},"paren-group":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.wolfram"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.wolfram"}},"name":"meta.parens.wolfram","patterns":[{"include":"#expressions"}]},"part-group":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.section.parts.begin.wolfram"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.section.parts.end.wolfram"}},"name":"meta.parts.wolfram","patterns":[{"include":"#expressions"}]},"pattern-operators":{"patterns":[{"match":"___","name":"keyword.operator.BlankNullSequence.wolfram"},{"match":"__","name":"keyword.operator.BlankSequence.wolfram"},{"match":"_\\\\.","name":"keyword.operator.Optional.wolfram"},{"match":"_","name":"keyword.operator.Blank.wolfram"}]},"shebang":{"captures":{"1":{"name":"punctuation.definition.comment.wolfram"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.wolfram"},"simple-toplevel-definitions":{"patterns":[{"captures":{"1":{"name":"support.function.builtin.wolfram"},"2":{"name":"punctuation.section.brackets.begin.wolfram"},"3":{"name":"meta.function.wolfram entity.name.Context.wolfram"},"4":{"name":"meta.function.wolfram entity.name.function.wolfram"},"5":{"name":"punctuation.section.brackets.end.wolfram"},"6":{"name":"keyword.operator.assignment.wolfram"}},"match":"^\\\\s*(Attributes|Format|Options)\\\\s*(\\\\[)(`?(?:[$[:alpha:]][$[:alnum:]]*`)*)([$[:alpha:]][$[:alnum:]]*)(])\\\\s*(:=|=(?![!.=]))"},{"captures":{"1":{"name":"meta.function.wolfram entity.name.Context.wolfram"},"2":{"name":"meta.function.wolfram entity.name.function.wolfram"}},"match":"^\\\\s*(`?(?:[$[:alpha:]][$[:alnum:]]*`)*)([$[:alpha:]][$[:alnum:]]*)(?=\\\\s*(\\\\[(?>[^]\\\\[]+|\\\\g<3>)*])\\\\s*(?:/;.*)?(?::=|=(?![!.=])))"},{"captures":{"1":{"name":"meta.function.wolfram entity.name.Context.wolfram"},"2":{"name":"meta.function.wolfram entity.name.constant.wolfram"}},"match":"^\\\\s*(`?(?:[$[:alpha:]][$[:alnum:]]*`)*)([$[:alpha:]][$[:alnum:]]*)(?=\\\\s*(?:/;.*)?(?::=|=(?![!.=])))"}]},"slot":{"patterns":[{"match":"#\\\\p{alpha}\\\\p{alnum}*","name":"keyword.other.Slot.wolfram"},{"match":"##\\\\d*","name":"keyword.other.SlotSequence.wolfram"},{"match":"#\\\\d*","name":"keyword.other.Slot.wolfram"}]},"string_escaped_characters":{"patterns":[{"match":"\\\\\\\\[\\"<>\\\\\\\\bfnrt]","name":"donothighlight.constant.character.escape"},{"include":"#escaped_characters"}]},"stringifying-operators":{"patterns":[{"captures":{"1":{"name":"keyword.operator.PutAppend.wolfram"}},"match":"(>>>)(?=\\\\s*\\")"},{"captures":{"1":{"name":"keyword.operator.PutAppend.wolfram"},"2":{"name":"string.unquoted.wolfram"}},"match":"(>>>)\\\\s*(\\\\w+)"},{"match":">>>","name":"invalid.illegal"},{"captures":{"1":{"name":"keyword.operator.MessageName.wolfram"}},"match":"(::)(?=\\\\s*\\")"},{"captures":{"1":{"name":"keyword.operator.MessageName.wolfram"},"2":{"name":"string.unquoted.wolfram"}},"match":"(::)(\\\\p{alpha}\\\\p{alnum}*)"},{"match":"::","name":"invalid.illegal"},{"captures":{"1":{"name":"keyword.operator.Get.wolfram"}},"match":"(<<)(?=\\\\s*\\")"},{"captures":{"1":{"name":"keyword.operator.Get.wolfram"},"2":{"name":"string.unquoted.wolfram"}},"match":"(<<)\\\\s*([`[:alpha:]][`[:alnum:]]*)"},{"match":"<<","name":"invalid.illegal"},{"captures":{"1":{"name":"keyword.operator.Put.wolfram"}},"match":"(>>)(?=\\\\s*\\")"},{"captures":{"1":{"name":"keyword.operator.Put.wolfram"},"2":{"name":"string.unquoted.wolfram"}},"match":"(>>)\\\\s*(\\\\w*)"},{"match":">>","name":"invalid.illegal"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end"}},"name":"string.quoted.double","patterns":[{"include":"#string_escaped_characters"}]}]},"symbols":{"patterns":[{"match":"System`A(?:ASTriangle|PIFunction|RCHProcess|RIMAProcess|RMAProcess|RProcess|SATriangle|belianGroup|bort|bortKernels|bortProtect|bs|bsArg|bsArgPlot|bsoluteCorrelation|bsoluteCorrelationFunction|bsoluteCurrentValue|bsoluteDashing|bsoluteFileName|bsoluteOptions|bsolutePointSize|bsoluteThickness|bsoluteTime|bsoluteTiming|ccountingForm|ccumulate|ccuracy|cousticAbsorbingValue|cousticImpedanceValue|cousticNormalVelocityValue|cousticPDEComponent|cousticPressureCondition|cousticRadiationValue|cousticSoundHardValue|cousticSoundSoftCondition|ctionMenu|ctivate|cyclicGraphQ|ddSides|ddTo|ddUsers|djacencyGraph|djacencyList|djacencyMatrix|djacentMeshCells|djugate|djustTimeSeriesForecast|djustmentBox|dministrativeDivisionData|ffineHalfSpace|ffineSpace|ffineStateSpaceModel|ffineTransform|irPressureData|irSoundAttenuation|irTemperatureData|ircraftData|irportData|iryAi|iryAiPrime|iryAiZero|iryBi|iryBiPrime|iryBiZero|lgebraicIntegerQ|lgebraicNumber|lgebraicNumberDenominator|lgebraicNumberNorm|lgebraicNumberPolynomial|lgebraicNumberTrace|lgebraicUnitQ|llTrue|lphaChannel|lphabet|lphabeticOrder|lphabeticSort|lternatingFactorial|lternatingGroup|lternatives|mbientLight|mbiguityList|natomyData|natomyPlot3D|natomyStyling|nd|ndersonDarlingTest|ngerJ|ngleBracket|nglePath|nglePath3D|ngleVector|ngularGauge|nimate|nimator|nnotate|nnotation|nnotationDelete|nnotationKeys|nnotationValue|nnuity|nnuityDue|nnulus|nomalyDetection|nomalyDetectorFunction|ntihermitian|ntihermitianMatrixQ|ntisymmetric|ntisymmetricMatrixQ|ntonyms|nyOrder|nySubset|nyTrue|part|partSquareFree|ppellF1|ppend|ppendTo|pply|pplySides|pplyTo|rcCosh??|rcCoth??|rcCsch??|rcCurvature|rcLength|rcSech??|rcSin|rcSinDistribution|rcSinh|rcTanh??|rea|rg|rgMax|rgMin|rgumentsOptions|rithmeticGeometricMean|rray|rrayComponents|rrayDepth|rrayFilter|rrayFlatten|rrayMesh|rrayPad|rrayPlot|rrayPlot3D|rrayQ|rrayResample|rrayReshape|rrayRules|rrays|rrow|rrowheads|ssert|ssociateTo|ssociation|ssociationMap|ssociationQ|ssociationThread|ssuming|symptotic|symptoticDSolveValue|symptoticEqual|symptoticEquivalent|symptoticExpectation|symptoticGreater|symptoticGreaterEqual|symptoticIntegrate|symptoticLess|symptoticLessEqual|symptoticOutputTracker|symptoticProbability|symptoticProduct|symptoticRSolveValue|symptoticSolve|symptoticSum|tomQ|ttributes|udio|udioAmplify|udioBlockMap|udioCapture|udioChannelCombine|udioChannelMix|udioChannelSeparate|udioChannels|udioData|udioDelay|udioDelete|udioDistance|udioFade|udioFrequencyShift|udioGenerator|udioInsert|udioIntervals|udioJoin|udioLength|udioLocalMeasurements|udioLoudness|udioMeasurements|udioNormalize|udioOverlay|udioPad|udioPan|udioPartition|udioPitchShift|udioPlot|udioQ|udioReplace|udioResample|udioReverb|udioReverse|udioSampleRate|udioSpectralMap|udioSpectralTransformation|udioSplit|udioTimeStretch|udioTrim|udioType|ugmentedPolyhedron|ugmentedSymmetricPolynomial|uthenticationDialog|utoRefreshed|utoSubmitting|utocorrelationTest)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`B(?:SplineBasis|SplineCurve|SplineFunction|SplineSurface|abyMonsterGroupB|ackslash|all|and|andpassFilter|andstopFilter|arChart|arChart3D|arLegend|arabasiAlbertGraphDistribution|arcodeImage|arcodeRecognize|aringhausHenzeTest|arlowProschanImportance|arnesG|artlettHannWindow|artlettWindow|aseDecode|aseEncode|aseForm|atesDistribution|attleLemarieWavelet|ecause|eckmannDistribution|eep|egin|eginDialogPacket|eginPackage|ellB|ellY|enfordDistribution|eniniDistribution|enktanderGibratDistribution|enktanderWeibullDistribution|ernoulliB|ernoulliDistribution|ernoulliGraphDistribution|ernoulliProcess|ernsteinBasis|esselFilterModel|esselI|esselJ|esselJZero|esselK|esselY|esselYZero|eta|etaBinomialDistribution|etaDistribution|etaNegativeBinomialDistribution|etaPrimeDistribution|etaRegularized|etween|etweennessCentrality|eveledPolyhedron|ezierCurve|ezierFunction|ilateralFilter|ilateralLaplaceTransform|ilateralZTransform|inCounts|inLists|inarize|inaryDeserialize|inaryDistance|inaryImageQ|inaryRead|inaryReadList|inarySerialize|inaryWrite|inomial|inomialDistribution|inomialProcess|inormalDistribution|iorthogonalSplineWavelet|ipartiteGraphQ|iquadraticFilterModel|irnbaumImportance|irnbaumSaundersDistribution|itAnd|itClear|itGet|itLength|itNot|itOr|itSet|itShiftLeft|itShiftRight|itXor|iweightLocation|iweightMidvariance|lackmanHarrisWindow|lackmanNuttallWindow|lackmanWindow|lank|lankNullSequence|lankSequence|lend|lock|lockMap|lockRandom|lomqvistBeta|lomqvistBetaTest|lur|lurring|odePlot|ohmanWindow|oole|ooleanConsecutiveFunction|ooleanConvert|ooleanCountingFunction|ooleanFunction|ooleanGraph|ooleanMaxterms|ooleanMinimize|ooleanMinterms|ooleanQ|ooleanRegion|ooleanTable|ooleanVariables|orderDimensions|orelTannerDistribution|ottomHatTransform|oundaryDiscretizeGraphics|oundaryDiscretizeRegion|oundaryMesh|oundaryMeshRegionQ??|oundedRegionQ|oundingRegion|oxData|oxMatrix|oxObject|oxWhiskerChart|racketingBar|rayCurtisDistance|readthFirstScan|reak|ridgeData|rightnessEqualize|roadcastStationData|rownForsytheTest|rownianBridgeProcess|ubbleChart|ubbleChart3D|uckyballGraph|uildingData|ulletGauge|usinessDayQ|utterflyGraph|utterworthFilterModel|utton|uttonBar|uttonBox|uttonNotebook|yteArray|yteArrayFormatQ??|yteArrayQ|yteArrayToString|yteCount)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`C(?:|DF|DFDeploy|DFWavelet|Form|MYKColor|SGRegionQ??|SGRegionTree|alendarConvert|alendarData|allPacket|allout|anberraDistance|ancel|ancelButton|andlestickChart|anonicalGraph|anonicalName|anonicalWarpingCorrespondence|anonicalWarpingDistance|anonicalizePolygon|anonicalizePolyhedron|anonicalizeRegion|antorMesh|antorStaircase|ap|apForm|apitalDifferentialD|apitalize|apsuleShape|aputoD|arlemanLinearize|arlsonRC|arlsonRD|arlsonRE|arlsonRF|arlsonRG|arlsonRJ|arlsonRK|arlsonRM|armichaelLambda|aseSensitive|ases|ashflow|asoratian|atalanNumber|atch|atenate|auchyDistribution|auchyMatrix|auchyWindow|ayleyGraph|eiling|ell|ellGroup|ellGroupData|ellObject|ellPrint|ells|ellularAutomaton|ensoredDistribution|ensoring|enterArray|enterDot|enteredInterval|entralFeature|entralMoment|entralMomentGeneratingFunction|epstrogram|epstrogramArray|epstrumArray|hampernowneNumber|hanVeseBinarize|haracterCounts|haracterName|haracterRange|haracteristicFunction|haracteristicPolynomial|haracters|hebyshev1FilterModel|hebyshev2FilterModel|hebyshevT|hebyshevU|heck|heckAbort|heckArguments|heckbox|heckboxBar|hemicalData|hessboardDistance|hiDistribution|hiSquareDistribution|hineseRemainder|hoiceButtons|hoiceDialog|holeskyDecomposition|hop|hromaticPolynomial|hromaticityPlot|hromaticityPlot3D|ircle|ircleDot|ircleMinus|irclePlus|irclePoints|ircleThrough|ircleTimes|irculantGraph|ircularArcThrough|ircularOrthogonalMatrixDistribution|ircularQuaternionMatrixDistribution|ircularRealMatrixDistribution|ircularSymplecticMatrixDistribution|ircularUnitaryMatrixDistribution|ircumsphere|ityData|lassifierFunction|lassifierMeasurements|lassifierMeasurementsObject|lassify|lear|learAll|learAttributes|learCookies|learPermissions|learSystemCache|lebschGordan|lickPane|lickToCopy|lip|lock|lockGauge|lose|loseKernels|losenessCentrality|losing|loudAccountData|loudConnect|loudDeploy|loudDirectory|loudDisconnect|loudEvaluate|loudExport|loudFunction|loudGet|loudImport|loudLoggingData|loudObjects??|loudPublish|loudPut|loudSave|loudShare|loudSubmit|loudSymbol|loudUnshare|lusterClassify|lusteringComponents|lusteringMeasurements|lusteringTree|oefficient|oefficientArrays|oefficientList|oefficientRules|oifletWavelet|ollect|ollinearPoints|olon|olorBalance|olorCombine|olorConvert|olorData|olorDataFunction|olorDetect|olorDistance|olorNegate|olorProfileData|olorQ|olorQuantize|olorReplace|olorSeparate|olorSetter|olorSlider|olorToneMapping|olorize|olorsNear|olumn|ometData|ommonName|ommonUnits|ommonest|ommonestFilter|ommunityGraphPlot|ompanyData|ompatibleUnitQ|ompile|ompiledFunction|omplement|ompleteGraphQ??|ompleteIntegral|ompleteKaryTree|omplex|omplexArrayPlot|omplexContourPlot|omplexExpand|omplexListPlot|omplexPlot|omplexPlot3D|omplexRegionPlot|omplexStreamPlot|omplexVectorPlot|omponentMeasurements|omposeList|omposeSeries|ompositeQ|omposition|ompoundElement|ompoundExpression|ompoundPoissonDistribution|ompoundPoissonProcess|ompoundRenewalProcess|ompress|oncaveHullMesh|ondition|onditionalExpression|onditioned|one|onfirm|onfirmAssert|onfirmBy|onfirmMatch|onformAudio|onformImages|ongruent|onicGradientFilling|onicHullRegion|onicOptimization|onjugate|onjugateTranspose|onjunction|onnectLibraryCallbackFunction|onnectedComponents|onnectedGraphComponents|onnectedGraphQ|onnectedMeshComponents|onnesWindow|onoverTest|onservativeConvectionPDETerm|onstantArray|onstantImage|onstantRegionQ|onstellationData|onstruct|ontainsAll|ontainsAny|ontainsExactly|ontainsNone|ontainsOnly|ontext|ontextToFileName|ontexts|ontinue|ontinuedFractionK??|ontinuousMarkovProcess|ontinuousTask|ontinuousTimeModelQ|ontinuousWaveletData|ontinuousWaveletTransform|ontourDetect|ontourPlot|ontourPlot3D|ontraharmonicMean|ontrol|ontrolActive|ontrollabilityGramian|ontrollabilityMatrix|ontrollableDecomposition|ontrollableModelQ|ontrollerInformation|ontrollerManipulate|ontrollerState|onvectionPDETerm|onvergents|onvexHullMesh|onvexHullRegion|onvexOptimization|onvexPolygonQ|onvexPolyhedronQ|onvexRegionQ|onvolve|onwayGroupCo1|onwayGroupCo2|onwayGroupCo3|oordinateBoundingBox|oordinateBoundingBoxArray|oordinateBounds|oordinateBoundsArray|oordinateChartData|oordinateTransform|oordinateTransformData|oplanarPoints|oprimeQ|oproduct|opulaDistribution|opyDatabin|opyDirectory|opyFile|opyToClipboard|oreNilpotentDecomposition|ornerFilter|orrelation|orrelationDistance|orrelationFunction|orrelationTest|os|osIntegral|osh|oshIntegral|osineDistance|osineWindow|oth??|oulombF|oulombG|oulombH1|oulombH2|ount|ountDistinct|ountDistinctBy|ountRoots|ountryData|ounts|ountsBy|ovariance|ovarianceFunction|oxIngersollRossProcess|oxModel|oxModelFit|oxianDistribution|ramerVonMisesTest|reateArchive|reateDatabin|reateDialog|reateDirectory|reateDocument|reateFile|reateManagedLibraryExpression|reateNotebook|reatePacletArchive|reatePalette|reatePermissionsGroup|reateUUID|reateWindow|riticalSection|riticalityFailureImportance|riticalitySuccessImportance|ross|rossMatrix|rossingCount|rossingDetect|rossingPolygon|sch??|ube|ubeRoot|uboid|umulant|umulantGeneratingFunction|umulativeFeatureImpactPlot|up|upCap|url|urrencyConvert|urrentDate|urrentImage|urrentValue|urvatureFlowFilter|ycleGraph|ycleIndexPolynomial|ycles|yclicGroup|yclotomic|ylinder|ylindricalDecomposition|ylindricalDecompositionFunction)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`D(?:|Eigensystem|Eigenvalues|GaussianWavelet|MSList|MSString|Solve|SolveValue|agumDistribution|amData|amerauLevenshteinDistance|arker|ashing|ataDistribution|atabin|atabinAdd|atabinUpload|atabins|ataset|ateBounds|ateDifference|ateHistogram|ateList|ateListLogPlot|ateListPlot|ateListStepPlot|ateObjectQ??|ateOverlapsQ|atePattern|atePlus|ateRange|ateScale|ateSelect|ateString|ateValue|ateWithinQ|ated|atedUnit|aubechiesWavelet|avisDistribution|awsonF|ayCount|ayHemisphere|ayMatchQ|ayName|ayNightTerminator|ayPlus|ayRange|ayRound|aylightQ|eBruijnGraph|eBruijnSequence|ecapitalize|ecimalForm|eclarePackage|ecompose|ecrement|ecrypt|edekindEta|eepSpaceProbeData|efault|efaultButton|efaultValues|efer|efineInputStreamMethod|efineOutputStreamMethod|efineResourceFunction|efinition|egreeCentrality|egreeGraphDistribution|el|elaunayMesh|elayed|elete|eleteAdjacentDuplicates|eleteAnomalies|eleteBorderComponents|eleteCases|eleteDirectory|eleteDuplicates|eleteDuplicatesBy|eleteFile|eleteMissing|eleteObject|eletePermissionsKey|eleteSmallComponents|eleteStopwords|elimitedSequence|endrogram|enominator|ensityHistogram|ensityPlot|ensityPlot3D|eploy|epth|epthFirstScan|erivative|erivativeFilter|erivativePDETerm|esignMatrix|et|eviceClose|eviceConfigure|eviceExecute|eviceExecuteAsynchronous|eviceObject|eviceOpen|eviceRead|eviceReadBuffer|eviceReadLatest|eviceReadList|eviceReadTimeSeries|eviceStreams|eviceWrite|eviceWriteBuffer|evices|iagonal|iagonalMatrixQ??|iagonalizableMatrixQ|ialog|ialogInput|ialogNotebook|ialogReturn|iamond|iamondMatrix|iceDissimilarity|ictionaryLookup|ictionaryWordQ|ifferenceDelta|ifferenceQuotient|ifferenceRoot|ifferenceRootReduce|ifferences|ifferentialD|ifferentialRoot|ifferentialRootReduce|ifferentiatorFilter|iffusionPDETerm|igitCount|igitQ|ihedralAngle|ihedralGroup|ilation|imensionReduce|imensionReducerFunction|imensionReduction|imensionalCombinations|imensionalMeshComponents|imensions|iracComb|iracDelta|irectedEdge|irectedGraphQ??|irectedInfinity|irectionalLight|irective|irectory|irectoryName|irectoryQ|irectoryStack|irichletBeta|irichletCharacter|irichletCondition|irichletConvolve|irichletDistribution|irichletEta|irichletL|irichletLambda|irichletTransform|irichletWindow|iscreteAsymptotic|iscreteChirpZTransform|iscreteConvolve|iscreteDelta|iscreteHadamardTransform|iscreteIndicator|iscreteInputOutputModel|iscreteLQEstimatorGains|iscreteLQRegulatorGains|iscreteLimit|iscreteLyapunovSolve|iscreteMarkovProcess|iscreteMaxLimit|iscreteMinLimit|iscretePlot|iscretePlot3D|iscreteRatio|iscreteRiccatiSolve|iscreteShift|iscreteTimeModelQ|iscreteUniformDistribution|iscreteWaveletData|iscreteWaveletPacketTransform|iscreteWaveletTransform|iscretizeGraphics|iscretizeRegion|iscriminant|isjointQ|isjunction|isk|iskMatrix|iskSegment|ispatch|isplayEndPacket|isplayForm|isplayPacket|istanceMatrix|istanceTransform|istribute|istributeDefinitions|istributed|istributionChart|istributionFitTest|istributionParameterAssumptions|istributionParameterQ|iv|ivide|ivideBy|ivideSides|ivisible|ivisorSigma|ivisorSum|ivisors|o|ocumentGenerator|ocumentGeneratorInformation|ocumentGenerators|ocumentNotebook|odecahedron|ominantColors|ominatorTreeGraph|ominatorVertexList|ot|otEqual|oubleBracketingBar|oubleDownArrow|oubleLeftArrow|oubleLeftRightArrow|oubleLeftTee|oubleLongLeftArrow|oubleLongLeftRightArrow|oubleLongRightArrow|oubleRightArrow|oubleRightTee|oubleUpArrow|oubleUpDownArrow|oubleVerticalBar|ownArrow|ownArrowBar|ownArrowUpArrow|ownLeftRightVector|ownLeftTeeVector|ownLeftVector|ownLeftVectorBar|ownRightTeeVector|ownRightVector|ownRightVectorBar|ownTee|ownTeeArrow|ownValues|ownsample|razinInverse|rop|ropShadowing|t|ualPlanarGraph|ualPolyhedron|ualSystemsModel|umpSave|uplicateFreeQ|uration|ynamic|ynamicGeoGraphics|ynamicModule|ynamicSetting|ynamicWrapper)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`E(?:arthImpactData|arthquakeData|ccentricityCentrality|choEvaluation|choFunction|choLabel|dgeAdd|dgeBetweennessCentrality|dgeChromaticNumber|dgeConnectivity|dgeContract|dgeCount|dgeCoverQ|dgeCycleMatrix|dgeDelete|dgeDetect|dgeForm|dgeIndex|dgeList|dgeQ|dgeRules|dgeTaggedGraphQ??|dgeTags|dgeTransitiveGraphQ|dgeWeightedGraphQ|ditDistance|ffectiveInterest|igensystem|igenvalues|igenvectorCentrality|igenvectors|lement|lementData|liminate|llipsoid|llipticE|llipticExp|llipticExpPrime|llipticF|llipticFilterModel|llipticK|llipticLog|llipticNomeQ|llipticPi|llipticTheta|llipticThetaPrime|mbedCode|mbeddedHTML|mbeddedService|mitSound|mpiricalDistribution|mptyGraphQ|mptyRegion|nclose|ncode|ncrypt|ncryptedObject|nd|ndDialogPacket|ndPackage|ngineeringForm|nterExpressionPacket|nterTextPacket|ntity|ntityClass|ntityClassList|ntityCopies|ntityGroup|ntityInstance|ntityList|ntityPrefetch|ntityProperties|ntityProperty|ntityPropertyClass|ntityRegister|ntityStores|ntityTypeName|ntityUnregister|ntityValue|ntropy|ntropyFilter|nvironment|qual|qualTilde|qualTo|quilibrium|quirippleFilterKernel|quivalent|rfc??|rfi|rlangB|rlangC|rlangDistribution|rosion|rrorBox|stimatedBackground|stimatedDistribution|stimatedPointNormals|stimatedProcess|stimatorGains|stimatorRegulator|uclideanDistance|ulerAngles|ulerCharacteristic|ulerE|ulerMatrix|ulerPhi|ulerianGraphQ|valuate|valuatePacket|valuationBox|valuationCell|valuationData|valuationNotebook|valuationObject|venQ|ventData|ventHandler|ventSeries|xactBlackmanWindow|xactNumberQ|xampleData|xcept|xists|xoplanetData|xp|xpGammaDistribution|xpIntegralEi??|xpToTrig|xpand|xpandAll|xpandDenominator|xpandFileName|xpandNumerator|xpectation|xponent|xponentialDistribution|xponentialGeneratingFunction|xponentialMovingAverage|xponentialPowerDistribution|xport|xportByteArray|xportForm|xportString|xpressionCell|xpressionGraph|xtendedGCD|xternalBundle|xtract|xtractArchive|xtractPacletArchive|xtremeValueDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`F(?:ARIMAProcess|RatioDistribution|aceAlign|aceForm|acialFeatures|actor|actorInteger|actorList|actorSquareFree|actorSquareFreeList|actorTerms|actorTermsList|actorial2??|actorialMoment|actorialMomentGeneratingFunction|actorialPower|ailure|ailureDistribution|ailureQ|areySequence|eatureImpactPlot|eatureNearest|eatureSpacePlot|eatureSpacePlot3D|eatureValueDependencyPlot|eatureValueImpactPlot|eedbackLinearize|etalGrowthData|ibonacci|ibonorial|ile|ileBaseName|ileByteCount|ileDate|ileExistsQ|ileExtension|ileFormatQ??|ileHash|ileNameDepth|ileNameDrop|ileNameJoin|ileNameSetter|ileNameSplit|ileNameTake|ileNames|ilePrint|ileSize|ileSystemMap|ileSystemScan|ileTemplate|ileTemplateApply|ileType|illedCurve|illedTorus|illingTransform|ilterRules|inancialBond|inancialData|inancialDerivative|inancialIndicator|ind|indAnomalies|indArgMax|indArgMin|indClique|indClusters|indCookies|indCurvePath|indCycle|indDevices|indDistribution|indDistributionParameters|indDivisions|indEdgeColoring|indEdgeCover|indEdgeCut|indEdgeIndependentPaths|indEulerianCycle|indFaces|indFile|indFit|indFormula|indFundamentalCycles|indGeneratingFunction|indGeoLocation|indGeometricTransform|indGraphCommunities|indGraphIsomorphism|indGraphPartition|indHamiltonianCycle|indHamiltonianPath|indHiddenMarkovStates|indIndependentEdgeSet|indIndependentVertexSet|indInstance|indIntegerNullVector|indIsomorphicSubgraph|indKClan|indKClique|indKClub|indKPlex|indLibrary|indLinearRecurrence|indList|indMatchingColor|indMaxValue|indMaximum|indMaximumCut|indMaximumFlow|indMeshDefects|indMinValue|indMinimum|indMinimumCostFlow|indMinimumCut|indPath|indPeaks|indPermutation|indPlanarColoring|indPostmanTour|indProcessParameters|indRegionTransform|indRepeat|indRoot|indSequenceFunction|indShortestPath|indShortestTour|indSpanningTree|indSubgraphIsomorphism|indThreshold|indTransientRepeat|indVertexColoring|indVertexCover|indVertexCut|indVertexIndependentPaths|inishDynamic|initeAbelianGroupCount|initeGroupCount|initeGroupData|irst|irstCase|irstPassageTimeDistribution|irstPosition|ischerGroupFi22|ischerGroupFi23|ischerGroupFi24Prime|isherHypergeometricDistribution|isherRatioTest|isherZDistribution|it|ittedModel|ixedOrder|ixedPoint|ixedPointList|latShading|latTopWindow|latten|lattenAt|lightData|lipView|loor|lowPolynomial|old|oldList|oldPair|oldPairList|oldWhile|oldWhileList|or|orAll|ormBox|ormFunction|ormObject|ormPage|ormat|ormulaData|ormulaLookup|ortranForm|ourier|ourierCoefficient|ourierCosCoefficient|ourierCosSeries|ourierCosTransform|ourierDCT|ourierDCTFilter|ourierDCTMatrix|ourierDST|ourierDSTMatrix|ourierMatrix|ourierSequenceTransform|ourierSeries|ourierSinCoefficient|ourierSinSeries|ourierSinTransform|ourierTransform|ourierTrigSeries|oxH|ractionBox|ractionalBrownianMotionProcess|ractionalD|ractionalGaussianNoiseProcess|ractionalPart|rameBox|ramed|rechetDistribution|reeQ|renetSerretSystem|requencySamplingFilterKernel|resnelC|resnelF|resnelG|resnelS|robeniusNumber|robeniusSolve|romAbsoluteTime|romCharacterCode|romCoefficientRules|romContinuedFraction|romDMS|romDateString|romDigits|romEntity|romJulianDate|romLetterNumber|romPolarCoordinates|romRomanNumeral|romSphericalCoordinates|romUnixTime|rontEndExecute|rontEndToken|rontEndTokenExecute|ullDefinition|ullForm|ullGraphics|ullInformationOutputRegulator|ullRegion|ullSimplify|unction|unctionAnalytic|unctionBijective|unctionContinuous|unctionConvexity|unctionDiscontinuities|unctionDomain|unctionExpand|unctionInjective|unctionInterpolation|unctionMeromorphic|unctionMonotonicity|unctionPeriod|unctionRange|unctionSign|unctionSingularities|unctionSurjective|ussellVeselyImportance)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`G(?:ARCHProcess|CD|aborFilter|aborMatrix|aborWavelet|ainMargins|ainPhaseMargins|alaxyData|amma|ammaDistribution|ammaRegularized|ather|atherBy|aussianFilter|aussianMatrix|aussianOrthogonalMatrixDistribution|aussianSymplecticMatrixDistribution|aussianUnitaryMatrixDistribution|aussianWindow|egenbauerC|eneralizedLinearModelFit|enerateAsymmetricKeyPair|enerateDocument|enerateHTTPResponse|enerateSymmetricKey|eneratingFunction|enericCylindricalDecomposition|enomeData|enomeLookup|eoAntipode|eoArea|eoBoundary|eoBoundingBox|eoBounds|eoBoundsRegion|eoBoundsRegionBoundary|eoBubbleChart|eoCircle|eoContourPlot|eoDensityPlot|eoDestination|eoDirection|eoDisk|eoDisplacement|eoDistance|eoDistanceList|eoElevationData|eoEntities|eoGraphPlot|eoGraphics|eoGridDirectionDifference|eoGridPosition|eoGridUnitArea|eoGridUnitDistance|eoGridVector|eoGroup|eoHemisphere|eoHemisphereBoundary|eoHistogram|eoIdentify|eoImage|eoLength|eoListPlot|eoMarker|eoNearest|eoPath|eoPolygon|eoPosition|eoPositionENU|eoPositionXYZ|eoProjectionData|eoRegionValuePlot|eoSmoothHistogram|eoStreamPlot|eoStyling|eoVariant|eoVector|eoVectorENU|eoVectorPlot|eoVectorXYZ|eoVisibleRegion|eoVisibleRegionBoundary|eoWithinQ|eodesicClosing|eodesicDilation|eodesicErosion|eodesicOpening|eodesicPolyhedron|eodesyData|eogravityModelData|eologicalPeriodData|eomagneticModelData|eometricBrownianMotionProcess|eometricDistribution|eometricMean|eometricMeanFilter|eometricOptimization|eometricTransformation|estureHandler|et|etEnvironment|lobalClusteringCoefficient|low|ompertzMakehamDistribution|oochShading|oodmanKruskalGamma|oodmanKruskalGammaTest|oto|ouraudShading|rad|radientFilter|radientFittedMesh|radientOrientationFilter|rammarApply|rammarRules|rammarToken|raph|raph3D|raphAssortativity|raphAutomorphismGroup|raphCenter|raphComplement|raphData|raphDensity|raphDiameter|raphDifference|raphDisjointUnion|raphDistance|raphDistanceMatrix|raphEmbedding|raphHub|raphIntersection|raphJoin|raphLinkEfficiency|raphPeriphery|raphPlot|raphPlot3D|raphPower|raphProduct|raphPropertyDistribution|raphQ|raphRadius|raphReciprocity|raphSum|raphUnion|raphics|raphics3D|raphicsColumn|raphicsComplex|raphicsGrid|raphicsGroup|raphicsRow|rayLevel|reater|reaterEqual|reaterEqualLess|reaterEqualThan|reaterFullEqual|reaterGreater|reaterLess|reaterSlantEqual|reaterThan|reaterTilde|reenFunction|rid|ridBox|ridGraph|roebnerBasis|roupBy|roupCentralizer|roupElementFromWord|roupElementPosition|roupElementQ|roupElementToWord|roupElements|roupGenerators|roupMultiplicationTable|roupOrbits|roupOrder|roupSetwiseStabilizer|roupStabilizer|roupStabilizerChain|roupings|rowCutComponents|udermannian|uidedFilter|umbelDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`H(?:ITSCentrality|TTPErrorResponse|TTPRedirect|TTPRequest|TTPRequestData|TTPResponse|aarWavelet|adamardMatrix|alfLine|alfNormalDistribution|alfPlane|alfSpace|alftoneShading|amiltonianGraphQ|ammingDistance|ammingWindow|ankelH1|ankelH2|ankelMatrix|ankelTransform|annPoissonWindow|annWindow|aradaNortonGroupHN|araryGraph|armonicMean|armonicMeanFilter|armonicNumber|ash|atchFilling|atchShading|aversine|azardFunction|ead|eatFluxValue|eatInsulationValue|eatOutflowValue|eatRadiationValue|eatSymmetryValue|eatTemperatureCondition|eatTransferPDEComponent|eatTransferValue|eavisideLambda|eavisidePi|eavisideTheta|eldGroupHe|elmholtzPDEComponent|ermiteDecomposition|ermiteH|ermitian|ermitianMatrixQ|essenbergDecomposition|eunB|eunBPrime|eunC|eunCPrime|eunD|eunDPrime|eunG|eunGPrime|eunT|eunTPrime|exahedron|iddenMarkovProcess|ighlightGraph|ighlightImage|ighlightMesh|ighlighted|ighpassFilter|igmanSimsGroupHS|ilbertCurve|ilbertFilter|ilbertMatrix|istogram|istogram3D|istogramDistribution|istogramList|istogramTransform|istogramTransformInterpolation|istoricalPeriodData|itMissTransform|jorthDistribution|odgeDual|oeffdingD|oeffdingDTest|old|oldComplete|oldForm|oldPattern|orizontalGauge|ornerForm|ostLookup|otellingTSquareDistribution|oytDistribution|ue|umanGrowthData|umpDownHump|umpEqual|urwitzLerchPhi|urwitzZeta|yperbolicDistribution|ypercubeGraph|yperexponentialDistribution|yperfactorial|ypergeometric0F1|ypergeometric0F1Regularized|ypergeometric1F1|ypergeometric1F1Regularized|ypergeometric2F1|ypergeometric2F1Regularized|ypergeometricDistribution|ypergeometricPFQ|ypergeometricPFQRegularized|ypergeometricU|yperlink|yperplane|ypoexponentialDistribution|ypothesisTestData)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`I(?:PAddress|conData|conize|cosahedron|dentity|dentityMatrix|f|fCompiled|gnoringInactive|m|mage|mage3D|mage3DProjection|mage3DSlices|mageAccumulate|mageAdd|mageAdjust|mageAlign|mageApply|mageApplyIndexed|mageAspectRatio|mageAssemble|mageCapture|mageChannels|mageClip|mageCollage|mageColorSpace|mageCompose|mageConvolve|mageCooccurrence|mageCorners|mageCorrelate|mageCorrespondingPoints|mageCrop|mageData|mageDeconvolve|mageDemosaic|mageDifference|mageDimensions|mageDisplacements|mageDistance|mageEffect|mageExposureCombine|mageFeatureTrack|mageFileApply|mageFileFilter|mageFileScan|mageFilter|mageFocusCombine|mageForestingComponents|mageForwardTransformation|mageHistogram|mageIdentify|mageInstanceQ|mageKeypoints|mageLevels|mageLines|mageMarker|mageMeasurements|mageMesh|mageMultiply|magePad|magePartition|magePeriodogram|magePerspectiveTransformation|mageQ|mageRecolor|mageReflect|mageResize|mageRestyle|mageRotate|mageSaliencyFilter|mageScaled|mageScan|mageSubtract|mageTake|mageTransformation|mageTrim|mageType|mageValue|mageValuePositions|mageVectorscopePlot|mageWaveformPlot|mplicitD|mplicitRegion|mplies|mport|mportByteArray|mportString|mprovementImportance|nactivate|nactive|ncidenceGraph|ncidenceList|ncidenceMatrix|ncrement|ndefiniteMatrixQ|ndependenceTest|ndependentEdgeSetQ|ndependentPhysicalQuantity|ndependentUnit|ndependentUnitDimension|ndependentVertexSetQ|ndexEdgeTaggedGraph|ndexGraph|ndexed|nexactNumberQ|nfiniteLine|nfiniteLineThrough|nfinitePlane|nfix|nflationAdjust|nformation|nhomogeneousPoissonProcess|nner|nnerPolygon|nnerPolyhedron|npaint|nput|nputField|nputForm|nputNamePacket|nputNotebook|nputPacket|nputStream|nputString|nputStringPacket|nsert|nsertLinebreaks|nset|nsphere|nstall|nstallService|ntegerDigits|ntegerExponent|ntegerLength|ntegerName|ntegerPart|ntegerPartitions|ntegerQ|ntegerReverse|ntegerString|ntegrate|nteractiveTradingChart|nternallyBalancedDecomposition|nterpolatingFunction|nterpolatingPolynomial|nterpolation|nterpretation|nterpretationBox|nterpreter|nterquartileRange|nterrupt|ntersectingQ|ntersection|nterval|ntervalIntersection|ntervalMemberQ|ntervalSlider|ntervalUnion|nverse|nverseBetaRegularized|nverseBilateralLaplaceTransform|nverseBilateralZTransform|nverseCDF|nverseChiSquareDistribution|nverseContinuousWaveletTransform|nverseDistanceTransform|nverseEllipticNomeQ|nverseErfc??|nverseFourier|nverseFourierCosTransform|nverseFourierSequenceTransform|nverseFourierSinTransform|nverseFourierTransform|nverseFunction|nverseGammaDistribution|nverseGammaRegularized|nverseGaussianDistribution|nverseGudermannian|nverseHankelTransform|nverseHaversine|nverseJacobiCD|nverseJacobiCN|nverseJacobiCS|nverseJacobiDC|nverseJacobiDN|nverseJacobiDS|nverseJacobiNC|nverseJacobiND|nverseJacobiNS|nverseJacobiSC|nverseJacobiSD|nverseJacobiSN|nverseLaplaceTransform|nverseMellinTransform|nversePermutation|nverseRadon|nverseRadonTransform|nverseSeries|nverseShortTimeFourier|nverseSpectrogram|nverseSurvivalFunction|nverseTransformedRegion|nverseWaveletTransform|nverseWeierstrassP|nverseWishartMatrixDistribution|nverseZTransform|nvisible|rreduciblePolynomialQ|slandData|solatingInterval|somorphicGraphQ|somorphicSubgraphQ|sotopeData|tem|toProcess)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`J(?:accardDissimilarity|acobiAmplitude|acobiCD|acobiCN|acobiCS|acobiDC|acobiDN|acobiDS|acobiEpsilon|acobiNC|acobiND|acobiNS|acobiP|acobiSC|acobiSD|acobiSN|acobiSymbol|acobiZN|acobiZeta|ankoGroupJ1|ankoGroupJ2|ankoGroupJ3|ankoGroupJ4|arqueBeraALMTest|ohnsonDistribution|oin|oinAcross|oinForm|oinedCurve|ordanDecomposition|ordanModelDecomposition|uliaSetBoettcher|uliaSetIterationCount|uliaSetPlot|uliaSetPoints|ulianDate)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`K(?:CoreComponents|Distribution|EdgeConnectedComponents|EdgeConnectedGraphQ|VertexConnectedComponents|VertexConnectedGraphQ|agiChart|aiserBesselWindow|aiserWindow|almanEstimator|almanFilter|arhunenLoeveDecomposition|aryTree|atzCentrality|elvinBei|elvinBer|elvinKei|elvinKer|endallTau|endallTauTest|ernelMixtureDistribution|ernelObject|ernels|ey|eyComplement|eyDrop|eyDropFrom|eyExistsQ|eyFreeQ|eyIntersection|eyMap|eyMemberQ|eySelect|eySort|eySortBy|eyTake|eyUnion|eyValueMap|eyValuePattern|eys|illProcess|irchhoffGraph|irchhoffMatrix|leinInvariantJ|napsackSolve|nightTourGraph|notData|nownUnitQ|ochCurve|olmogorovSmirnovTest|roneckerDelta|roneckerModelDecomposition|roneckerProduct|roneckerSymbol|uiperTest|umaraswamyDistribution|urtosis|uwaharaFilter)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`L(?:ABColor|CHColor|CM|QEstimatorGains|QGRegulator|QOutputRegulatorGains|QRegulatorGains|UDecomposition|UVColor|abel|abeled|aguerreL|akeData|ambdaComponents|ameC|ameCPrime|ameEigenvalueA|ameEigenvalueB|ameS|ameSPrime|aminaData|anczosWindow|andauDistribution|anguageData|anguageIdentify|aplaceDistribution|aplaceTransform|aplacian|aplacianFilter|aplacianGaussianFilter|aplacianPDETerm|ast|atitude|atitudeLongitude|atticeData|atticeReduce|aunchKernels|ayeredGraphPlot|ayeredGraphPlot3D|eafCount|eapVariant|eapYearQ|earnDistribution|earnedDistribution|eastSquares|eastSquaresFilterKernel|eftArrow|eftArrowBar|eftArrowRightArrow|eftDownTeeVector|eftDownVector|eftDownVectorBar|eftRightArrow|eftRightVector|eftTee|eftTeeArrow|eftTeeVector|eftTriangle|eftTriangleBar|eftTriangleEqual|eftUpDownVector|eftUpTeeVector|eftUpVector|eftUpVectorBar|eftVector|eftVectorBar|egended|egendreP|egendreQ|ength|engthWhile|erchPhi|ess|essEqual|essEqualGreater|essEqualThan|essFullEqual|essGreater|essLess|essSlantEqual|essThan|essTilde|etterCounts|etterNumber|etterQ|evel|eveneTest|eviCivitaTensor|evyDistribution|exicographicOrder|exicographicSort|ibraryDataType|ibraryFunction|ibraryFunctionError|ibraryFunctionInformation|ibraryFunctionLoad|ibraryFunctionUnload|ibraryLoad|ibraryUnload|iftingFilterData|iftingWaveletTransform|ighter|ikelihood|imit|indleyDistribution|ine|ineBreakChart|ineGraph|ineIntegralConvolutionPlot|ineLegend|inearFractionalOptimization|inearFractionalTransform|inearGradientFilling|inearGradientImage|inearModelFit|inearOptimization|inearRecurrence|inearSolve|inearSolveFunction|inearizingTransformationData|inkActivate|inkClose|inkConnect|inkCreate|inkInterrupt|inkLaunch|inkObject|inkPatterns|inkRankCentrality|inkRead|inkReadyQ|inkWrite|inks|iouvilleLambda|ist|istAnimate|istContourPlot|istContourPlot3D|istConvolve|istCorrelate|istCurvePathPlot|istDeconvolve|istDensityPlot|istDensityPlot3D|istFourierSequenceTransform|istInterpolation|istLineIntegralConvolutionPlot|istLinePlot|istLinePlot3D|istLogLinearPlot|istLogLogPlot|istLogPlot|istPicker|istPickerBox|istPlay|istPlot|istPlot3D|istPointPlot3D|istPolarPlot|istQ|istSliceContourPlot3D|istSliceDensityPlot3D|istSliceVectorPlot3D|istStepPlot|istStreamDensityPlot|istStreamPlot|istStreamPlot3D|istSurfacePlot3D|istVectorDensityPlot|istVectorDisplacementPlot|istVectorDisplacementPlot3D|istVectorPlot|istVectorPlot3D|istZTransform|ocalAdaptiveBinarize|ocalCache|ocalClusteringCoefficient|ocalEvaluate|ocalObjects??|ocalSubmit|ocalSymbol|ocalTime|ocalTimeZone|ocationEquivalenceTest|ocationTest|ocator|ocatorPane|og|og10|og2|ogBarnesG|ogGamma|ogGammaDistribution|ogIntegral|ogLikelihood|ogLinearPlot|ogLogPlot|ogLogisticDistribution|ogMultinormalDistribution|ogNormalDistribution|ogPlot|ogRankTest|ogSeriesDistribution|ogicalExpand|ogisticDistribution|ogisticSigmoid|ogitModelFit|ongLeftArrow|ongLeftRightArrow|ongRightArrow|ongest|ongestCommonSequence|ongestCommonSequencePositions|ongestCommonSubsequence|ongestCommonSubsequencePositions|ongestOrderedSequence|ongitude|ookup|oopFreeGraphQ|owerCaseQ|owerLeftArrow|owerRightArrow|owerTriangularMatrixQ??|owerTriangularize|owpassFilter|ucasL|uccioSamiComponents|unarEclipse|yapunovSolve|yonsGroupLy)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`M(?:AProcess|achineNumberQ|agnify|ailReceiverFunction|ajority|akeBoxes|akeExpression|anagedLibraryExpressionID|anagedLibraryExpressionQ|andelbrotSetBoettcher|andelbrotSetDistance|andelbrotSetIterationCount|andelbrotSetMemberQ|andelbrotSetPlot|angoldtLambda|anhattanDistance|anipulate|anipulator|annWhitneyTest|annedSpaceMissionData|antissaExponent|ap|apAll|apApply|apAt|apIndexed|apThread|archenkoPasturDistribution|arcumQ|ardiaCombinedTest|ardiaKurtosisTest|ardiaSkewnessTest|arginalDistribution|arkovProcessProperties|assConcentrationCondition|assFluxValue|assImpermeableBoundaryValue|assOutflowValue|assSymmetryValue|assTransferValue|assTransportPDEComponent|atchQ|atchingDissimilarity|aterialShading|athMLForm|athematicalFunctionData|athieuC|athieuCPrime|athieuCharacteristicA|athieuCharacteristicB|athieuCharacteristicExponent|athieuGroupM11|athieuGroupM12|athieuGroupM22|athieuGroupM23|athieuGroupM24|athieuS|athieuSPrime|atrices|atrixExp|atrixForm|atrixFunction|atrixLog|atrixNormalDistribution|atrixPlot|atrixPower|atrixPropertyDistribution|atrixQ|atrixRank|atrixTDistribution|ax|axDate|axDetect|axFilter|axLimit|axMemoryUsed|axStableDistribution|axValue|aximalBy|aximize|axwellDistribution|cLaughlinGroupMcL|ean|eanClusteringCoefficient|eanDegreeConnectivity|eanDeviation|eanFilter|eanGraphDistance|eanNeighborDegree|eanShift|eanShiftFilter|edian|edianDeviation|edianFilter|edicalTestData|eijerG|eijerGReduce|eixnerDistribution|ellinConvolve|ellinTransform|emberQ|emoryAvailable|emoryConstrained|emoryInUse|engerMesh|enuPacket|enuView|erge|ersennePrimeExponentQ??|eshCellCount|eshCellIndex|eshCells|eshConnectivityGraph|eshCoordinates|eshPrimitives|eshRegionQ??|essage|essageDialog|essageList|essageName|essagePacket|essages|eteorShowerData|exicanHatWavelet|eyerWavelet|in|inDate|inDetect|inFilter|inLimit|inMax|inStableDistribution|inValue|ineralData|inimalBy|inimalPolynomial|inimalStateSpaceModel|inimize|inimumTimeIncrement|inkowskiQuestionMark|inorPlanetData|inors|inus|inusPlus|issingQ??|ittagLefflerE|ixedFractionParts|ixedGraphQ|ixedMagnitude|ixedRadix|ixedRadixQuantity|ixedUnit|ixtureDistribution|od|odelPredictiveController|odularInverse|odularLambda|odule|oebiusMu|oment|omentConvert|omentEvaluate|omentGeneratingFunction|omentOfInertia|onitor|onomialList|onsterGroupM|oonPhase|oonPosition|orletWavelet|orphologicalBinarize|orphologicalBranchPoints|orphologicalComponents|orphologicalEulerNumber|orphologicalGraph|orphologicalPerimeter|orphologicalTransform|ortalityData|ost|ountainData|ouseAnnotation|ouseAppearance|ousePosition|ouseover|ovieData|ovingAverage|ovingMap|ovingMedian|oyalDistribution|ulticolumn|ultigraphQ|ultinomial|ultinomialDistribution|ultinormalDistribution|ultiplicativeOrder|ultiplySides|ultivariateHypergeometricDistribution|ultivariatePoissonDistribution|ultivariateTDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`N(?:|ArgMax|ArgMin|Cache|CaputoD|DEigensystem|DEigenvalues|DSolve|DSolveValue|Expectation|FractionalD|Integrate|MaxValue|Maximize|MinValue|Minimize|Probability|Product|Roots|Solve|SolveValues|Sum|akagamiDistribution|ameQ|ames|and|earest|earestFunction|earestMeshCells|earestNeighborGraph|earestTo|ebulaData|eedlemanWunschSimilarity|eeds|egative|egativeBinomialDistribution|egativeDefiniteMatrixQ|egativeMultinomialDistribution|egativeSemidefiniteMatrixQ|egativelyOrientedPoints|eighborhoodData|eighborhoodGraph|est|estGraph|estList|estWhile|estWhileList|estedGreaterGreater|estedLessLess|eumannValue|evilleThetaC|evilleThetaD|evilleThetaN|evilleThetaS|extCell|extDate|extPrime|icholsPlot|ightHemisphere|onCommutativeMultiply|onNegative|onPositive|oncentralBetaDistribution|oncentralChiSquareDistribution|oncentralFRatioDistribution|oncentralStudentTDistribution|ondimensionalizationTransform|oneTrue|onlinearModelFit|onlinearStateSpaceModel|onlocalMeansFilter|or|orlundB|orm|ormal|ormalDistribution|ormalMatrixQ|ormalize|ormalizedSquaredEuclideanDistance|ot|otCongruent|otCupCap|otDoubleVerticalBar|otElement|otEqualTilde|otExists|otGreater|otGreaterEqual|otGreaterFullEqual|otGreaterGreater|otGreaterLess|otGreaterSlantEqual|otGreaterTilde|otHumpDownHump|otHumpEqual|otLeftTriangle|otLeftTriangleBar|otLeftTriangleEqual|otLess|otLessEqual|otLessFullEqual|otLessGreater|otLessLess|otLessSlantEqual|otLessTilde|otNestedGreaterGreater|otNestedLessLess|otPrecedes|otPrecedesEqual|otPrecedesSlantEqual|otPrecedesTilde|otReverseElement|otRightTriangle|otRightTriangleBar|otRightTriangleEqual|otSquareSubset|otSquareSubsetEqual|otSquareSuperset|otSquareSupersetEqual|otSubset|otSubsetEqual|otSucceeds|otSucceedsEqual|otSucceedsSlantEqual|otSucceedsTilde|otSuperset|otSupersetEqual|otTilde|otTildeEqual|otTildeFullEqual|otTildeTilde|otVerticalBar|otebook|otebookApply|otebookClose|otebookDelete|otebookDirectory|otebookEvaluate|otebookFileName|otebookFind|otebookGet|otebookImport|otebookInformation|otebookLocate|otebookObject|otebookOpen|otebookPrint|otebookPut|otebookRead|otebookSave|otebookSelection|otebookTemplate|otebookWrite|otebooks|othing|uclearExplosionData|uclearReactorData|ullSpace|umberCompose|umberDecompose|umberDigit|umberExpand|umberFieldClassNumber|umberFieldDiscriminant|umberFieldFundamentalUnits|umberFieldIntegralBasis|umberFieldNormRepresentatives|umberFieldRegulator|umberFieldRootsOfUnity|umberFieldSignature|umberForm|umberLinePlot|umberQ|umerator|umeratorDenominator|umericQ|umericalOrder|umericalSort|uttallWindow|yquistPlot)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`O(?:|NanGroupON|bservabilityGramian|bservabilityMatrix|bservableDecomposition|bservableModelQ|ceanData|ctahedron|ddQ|ff|ffset|n|nce|pacity|penAppend|penRead|penWrite|pener|penerView|pening|perate|ptimumFlowData|ptionValue|ptional|ptionalElement|ptions|ptionsPattern|r|rder|rderDistribution|rderedQ|rdering|rderingBy|rderlessPatternSequence|rnsteinUhlenbeckProcess|rthogonalMatrixQ|rthogonalize|uter|uterPolygon|uterPolyhedron|utputControllabilityMatrix|utputControllableModelQ|utputForm|utputNamePacket|utputResponse|utputStream|verBar|verDot|verHat|verTilde|verVector|verflow|verlay|verscript|verscriptBox|wenT|wnValues)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`P(?:DF|ERTDistribution|IDTune|acletDataRebuild|acletDirectoryLoad|acletDirectoryUnload|acletDisable|acletEnable|acletFind|acletFindRemote|acletInstall|acletInstallSubmit|acletNewerQ|acletObject|acletSiteObject|acletSiteRegister|acletSiteUnregister|acletSiteUpdate|acletSites|acletUninstall|adLeft|adRight|addedForm|adeApproximant|ageRankCentrality|airedBarChart|airedHistogram|airedSmoothHistogram|airedTTest|airedZTest|aletteNotebook|alindromeQ|ane|aneSelector|anel|arabolicCylinderD|arallelArray|arallelAxisPlot|arallelCombine|arallelDo|arallelEvaluate|arallelKernels|arallelMap|arallelNeeds|arallelProduct|arallelSubmit|arallelSum|arallelTable|arallelTry|arallelepiped|arallelize|arallelogram|arameterMixtureDistribution|arametricConvexOptimization|arametricFunction|arametricNDSolve|arametricNDSolveValue|arametricPlot|arametricPlot3D|arametricRegion|arentBox|arentCell|arentDirectory|arentNotebook|aretoDistribution|aretoPickandsDistribution|arkData|art|artOfSpeech|artialCorrelationFunction|articleAcceleratorData|articleData|artition|artitionsP|artitionsQ|arzenWindow|ascalDistribution|aste|asteButton|athGraphQ??|attern|atternSequence|atternTest|aulWavelet|auliMatrix|ause|eakDetect|eanoCurve|earsonChiSquareTest|earsonCorrelationTest|earsonDistribution|ercentForm|erfectNumberQ??|erimeter|eriodicBoundaryCondition|eriodogram|eriodogramArray|ermanent|ermissionsGroup|ermissionsGroupMemberQ|ermissionsGroups|ermissionsKeys??|ermutationCyclesQ??|ermutationGroup|ermutationLength|ermutationListQ??|ermutationMatrix|ermutationMax|ermutationMin|ermutationOrder|ermutationPower|ermutationProduct|ermutationReplace|ermutationSupport|ermutations|ermute|eronaMalikFilter|ersonData|etersenGraph|haseMargins|hongShading|hysicalSystemData|ick|ieChart|ieChart3D|iecewise|iecewiseExpand|illaiTrace|illaiTraceTest|ingTime|ixelValue|ixelValuePositions|laced|laceholder|lanarAngle|lanarFaceList|lanarGraphQ??|lanckRadiationLaw|laneCurveData|lanetData|lanetaryMoonData|lantData|lay|lot|lot3D|luralize|lus|lusMinus|ochhammer|oint|ointFigureChart|ointLegend|ointLight|ointSize|oissonConsulDistribution|oissonDistribution|oissonPDEComponent|oissonProcess|oissonWindow|olarPlot|olyGamma|olyLog|olyaAeppliDistribution|olygon|olygonAngle|olygonCoordinates|olygonDecomposition|olygonalNumber|olyhedron|olyhedronAngle|olyhedronCoordinates|olyhedronData|olyhedronDecomposition|olyhedronGenus|olynomialExpressionQ|olynomialExtendedGCD|olynomialGCD|olynomialLCM|olynomialMod|olynomialQ|olynomialQuotient|olynomialQuotientRemainder|olynomialReduce|olynomialRemainder|olynomialSumOfSquaresList|opupMenu|opupView|opupWindow|osition|ositionIndex|ositionLargest|ositionSmallest|ositive|ositiveDefiniteMatrixQ|ositiveSemidefiniteMatrixQ|ositivelyOrientedPoints|ossibleZeroQ|ostfix|ower|owerDistribution|owerExpand|owerMod|owerModList|owerRange|owerSpectralDensity|owerSymmetricPolynomial|owersRepresentations|reDecrement|reIncrement|recedenceForm|recedes|recedesEqual|recedesSlantEqual|recedesTilde|recision|redict|redictorFunction|redictorMeasurements|redictorMeasurementsObject|reemptProtect|refix|repend|rependTo|reviousCell|reviousDate|riceGraphDistribution|rime|rimeNu|rimeOmega|rimePi|rimePowerQ|rimeQ|rimeZetaP|rimitivePolynomialQ|rimitiveRoot|rimitiveRootList|rincipalComponents|rintTemporary|rintableASCIIQ|rintout3D|rism|rivateKey|robability|robabilityDistribution|robabilityPlot|robabilityScalePlot|robitModelFit|rocessConnection|rocessInformation|rocessObject|rocessParameterAssumptions|rocessParameterQ|rocessStatus|rocesses|roduct|roductDistribution|roductLog|rogressIndicator|rojection|roportion|roportional|rotect|roteinData|runing|seudoInverse|sychrometricPropertyData|ublicKey|ulsarData|ut|utAppend|yramid)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`Q(?:Binomial|Factorial|Gamma|HypergeometricPFQ|Pochhammer|PolyGamma|RDecomposition|nDispersion|uadraticIrrationalQ|uadraticOptimization|uantile|uantilePlot|uantity|uantityArray|uantityDistribution|uantityForm|uantityMagnitude|uantityQ|uantityUnit|uantityVariable|uantityVariableCanonicalUnit|uantityVariableDimensions|uantityVariableIdentifier|uantityVariablePhysicalQuantity|uartileDeviation|uartileSkewness|uartiles|uery|ueueProperties|ueueingNetworkProcess|ueueingProcess|uiet|uietEcho|uotient|uotientRemainder)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`R(?:GBColor|Solve|SolveValue|adialAxisPlot|adialGradientFilling|adialGradientImage|adialityCentrality|adicalBox|adioButton|adioButtonBar|adon|adonTransform|amanujanTauL??|amanujanTauTheta|amanujanTauZ|amp|andomChoice|andomColor|andomComplex|andomDate|andomEntity|andomFunction|andomGeneratorState|andomGeoPosition|andomGraph|andomImage|andomInteger|andomPermutation|andomPoint|andomPolygon|andomPolyhedron|andomPrime|andomReal|andomSample|andomTime|andomVariate|andomWalkProcess|andomWord|ange|angeFilter|ankedMax|ankedMin|arerProbability|aster|aster3D|asterize|ational|ationalExpressionQ|ationalize|atios|awBoxes|awData|ayleighDistribution|e|eIm|eImPlot|eactionPDETerm|ead|eadByteArray|eadLine|eadList|eadString|ealAbs|ealDigits|ealExponent|ealSign|eap|econstructionMesh|ectangle|ectangleChart|ectangleChart3D|ectangularRepeatingElement|ecurrenceFilter|ecurrenceTable|educe|efine|eflectionMatrix|eflectionTransform|efresh|egion|egionBinarize|egionBoundary|egionBounds|egionCentroid|egionCongruent|egionConvert|egionDifference|egionDilation|egionDimension|egionDisjoint|egionDistance|egionDistanceFunction|egionEmbeddingDimension|egionEqual|egionErosion|egionFit|egionImage|egionIntersection|egionMeasure|egionMember|egionMemberFunction|egionMoment|egionNearest|egionNearestFunction|egionPlot|egionPlot3D|egionProduct|egionQ|egionResize|egionSimilar|egionSymmetricDifference|egionUnion|egionWithin|egularExpression|egularPolygon|egularlySampledQ|elationGraph|eleaseHold|eliabilityDistribution|eliefImage|eliefPlot|emove|emoveAlphaChannel|emoveBackground|emoveDiacritics|emoveInputStreamMethod|emoveOutputStreamMethod|emoveUsers|enameDirectory|enameFile|enewalProcess|enkoChart|epairMesh|epeated|epeatedNull|epeatedTiming|epeatingElement|eplace|eplaceAll|eplaceAt|eplaceImageValue|eplaceList|eplacePart|eplacePixelValue|eplaceRepeated|esamplingAlgorithmData|escale|escalingTransform|esetDirectory|esidue|esidueSum|esolve|esourceData|esourceObject|esourceSearch|esponseForm|est|estricted|esultant|eturn|eturnExpressionPacket|eturnPacket|eturnTextPacket|everse|everseBiorthogonalSplineWavelet|everseElement|everseEquilibrium|everseGraph|everseSort|everseSortBy|everseUpEquilibrium|evolutionPlot3D|iccatiSolve|iceDistribution|idgeFilter|iemannR|iemannSiegelTheta|iemannSiegelZ|iemannXi|iffle|ightArrow|ightArrowBar|ightArrowLeftArrow|ightComposition|ightCosetRepresentative|ightDownTeeVector|ightDownVector|ightDownVectorBar|ightTee|ightTeeArrow|ightTeeVector|ightTriangle|ightTriangleBar|ightTriangleEqual|ightUpDownVector|ightUpTeeVector|ightUpVector|ightUpVectorBar|ightVector|ightVectorBar|iskAchievementImportance|iskReductionImportance|obustConvexOptimization|ogersTanimotoDissimilarity|ollPitchYawAngles|ollPitchYawMatrix|omanNumeral|oot|ootApproximant|ootIntervals|ootLocusPlot|ootMeanSquare|ootOfUnityQ|ootReduce|ootSum|oots|otate|otateLeft|otateRight|otationMatrix|otationTransform|ound|ow|owBox|owReduce|udinShapiro|udvalisGroupRu|ule|uleDelayed|ulePlot|un|unProcess|unThrough|ussellRaoDissimilarity)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`S(?:ARIMAProcess|ARMAProcess|ASTriangle|SSTriangle|ameAs|ameQ|ampledSoundFunction|ampledSoundList|atelliteData|atisfiabilityCount|atisfiabilityInstances|atisfiableQ|ave|avitzkyGolayMatrix|awtoothWave|caled??|calingMatrix|calingTransform|can|cheduledTask|churDecomposition|cientificForm|corerGi|corerGiPrime|corerHi|corerHiPrime|ech??|echDistribution|econdOrderConeOptimization|ectorChart|ectorChart3D|eedRandom|elect|electComponents|electFirst|electedCells|electedNotebook|electionCreateCell|electionEvaluate|electionEvaluateCreateCell|electionMove|emanticImport|emanticImportString|emanticInterpretation|emialgebraicComponentInstances|emidefiniteOptimization|endMail|endMessage|equence|equenceAlignment|equenceCases|equenceCount|equenceFold|equenceFoldList|equencePosition|equenceReplace|equenceSplit|eries|eriesCoefficient|eriesData|erviceConnect|erviceDisconnect|erviceExecute|erviceObject|essionSubmit|essionTime|et|etAccuracy|etAlphaChannel|etAttributes|etCloudDirectory|etCookies|etDelayed|etDirectory|etEnvironment|etFileDate|etOptions|etPermissions|etPrecision|etSelectedNotebook|etSharedFunction|etSharedVariable|etStreamPosition|etSystemOptions|etUsers|etter|etterBar|etting|hallow|hannonWavelet|hapiroWilkTest|hare|harpen|hearingMatrix|hearingTransform|hellRegion|henCastanMatrix|hiftRegisterSequence|hiftedGompertzDistribution|hort|hortDownArrow|hortLeftArrow|hortRightArrow|hortTimeFourier|hortTimeFourierData|hortUpArrow|hortest|hortestPathFunction|how|iderealTime|iegelTheta|iegelTukeyTest|ierpinskiCurve|ierpinskiMesh|ign|ignTest|ignature|ignedRankTest|ignedRegionDistance|impleGraphQ??|implePolygonQ|implePolyhedronQ|implex|implify|in|inIntegral|inc|inghMaddalaDistribution|ingularValueDecomposition|ingularValueList|ingularValuePlot|inh|inhIntegral|ixJSymbol|keleton|keletonTransform|kellamDistribution|kewNormalDistribution|kewness|kip|liceContourPlot3D|liceDensityPlot3D|liceDistribution|liceVectorPlot3D|lideView|lider|lider2D|liderBox|lot|lotSequence|mallCircle|mithDecomposition|mithDelayCompensator|mithWatermanSimilarity|moothDensityHistogram|moothHistogram|moothHistogram3D|moothKernelDistribution|nDispersion|ocketConnect|ocketListen|ocketListener|ocketObject|ocketOpen|ocketReadMessage|ocketReadyQ|ocketWaitAll|ocketWaitNext|ockets|okalSneathDissimilarity|olarEclipse|olarSystemFeatureData|olarTime|olidAngle|olidData|olidRegionQ|olve|olveAlways|olveValues|ort|ortBy|ound|oundNote|ourcePDETerm|ow|paceCurveData|pacer|pan|parseArrayQ??|patialGraphDistribution|patialMedian|peak|pearmanRankTest|pearmanRho|peciesData|pectralLineData|pectrogram|pectrogramArray|pecularity|peechSynthesize|pellingCorrectionList|phere|pherePoints|phericalBesselJ|phericalBesselY|phericalHankelH1|phericalHankelH2|phericalHarmonicY|phericalPlot3D|phericalShell|pheroidalEigenvalue|pheroidalJoiningFactor|pheroidalPS|pheroidalPSPrime|pheroidalQS|pheroidalQSPrime|pheroidalRadialFactor|pheroidalS1|pheroidalS1Prime|pheroidalS2|pheroidalS2Prime|plicedDistribution|plit|plitBy|pokenString|potLight|qrt|qrtBox|quare|quareFreeQ|quareIntersection|quareMatrixQ|quareRepeatingElement|quareSubset|quareSubsetEqual|quareSuperset|quareSupersetEqual|quareUnion|quareWave|quaredEuclideanDistance|quaresR|tableDistribution|tack|tackBegin|tackComplete|tackInhibit|tackedDateListPlot|tackedListPlot|tadiumShape|tandardAtmosphereData|tandardDeviation|tandardDeviationFilter|tandardForm|tandardOceanData|tandardize|tandbyDistribution|tar|tarClusterData|tarData|tarGraph|tartProcess|tateFeedbackGains|tateOutputEstimator|tateResponse|tateSpaceModel|tateSpaceTransform|tateTransformationLinearize|tationaryDistribution|tationaryWaveletPacketTransform|tationaryWaveletTransform|tatusArea|tatusCentrality|tieltjesGamma|tippleShading|tirlingS1|tirlingS2|toppingPowerData|tratonovichProcess|treamDensityPlot|treamPlot|treamPlot3D|treamPosition|treams|tringCases|tringContainsQ|tringCount|tringDelete|tringDrop|tringEndsQ|tringExpression|tringExtract|tringForm|tringFormatQ??|tringFreeQ|tringInsert|tringJoin|tringLength|tringMatchQ|tringPadLeft|tringPadRight|tringPart|tringPartition|tringPosition|tringQ|tringRepeat|tringReplace|tringReplaceList|tringReplacePart|tringReverse|tringRiffle|tringRotateLeft|tringRotateRight|tringSkeleton|tringSplit|tringStartsQ|tringTake|tringTakeDrop|tringTemplate|tringToByteArray|tringToStream|tringTrim|tripBoxes|tructuralImportance|truveH|truveL|tudentTDistribution|tyle|tyleBox|tyleData|ubMinus|ubPlus|ubStar|ubValues|ubdivide|ubfactorial|ubgraph|ubresultantPolynomialRemainders|ubresultantPolynomials|ubresultants|ubscript|ubscriptBox|ubsequences|ubset|ubsetEqual|ubsetMap|ubsetQ|ubsets|ubstitutionSystem|ubsuperscript|ubsuperscriptBox|ubtract|ubtractFrom|ubtractSides|ucceeds|ucceedsEqual|ucceedsSlantEqual|ucceedsTilde|uccess|uchThat|um|umConvergence|unPosition|unrise|unset|uperDagger|uperMinus|uperPlus|uperStar|upernovaData|uperscript|uperscriptBox|uperset|upersetEqual|urd|urfaceArea|urfaceData|urvivalDistribution|urvivalFunction|urvivalModel|urvivalModelFit|uzukiDistribution|uzukiGroupSuz|watchLegend|witch|ymbol|ymbolName|ymletWavelet|ymmetric|ymmetricGroup|ymmetricKey|ymmetricMatrixQ|ymmetricPolynomial|ymmetricReduction|ymmetrize|ymmetrizedArray|ymmetrizedArrayRules|ymmetrizedDependentComponents|ymmetrizedIndependentComponents|ymmetrizedReplacePart|ynonyms|yntaxInformation|yntaxLength|yntaxPacket|yntaxQ|ystemDialogInput|ystemInformation|ystemOpen|ystemOptions|ystemProcessData|ystemProcesses|ystemsConnectionsModel|ystemsModelControllerData|ystemsModelDelay|ystemsModelDelayApproximate|ystemsModelDelete|ystemsModelDimensions|ystemsModelExtract|ystemsModelFeedbackConnect|ystemsModelLinearity|ystemsModelMerge|ystemsModelOrder|ystemsModelParallelConnect|ystemsModelSeriesConnect|ystemsModelStateFeedbackConnect|ystemsModelVectorRelativeOrders)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`T(?:Test|abView|able|ableForm|agBox|agSet|agSetDelayed|agUnset|ake|akeDrop|akeLargest|akeLargestBy|akeList|akeSmallest|akeSmallestBy|akeWhile|ally|anh??|askAbort|askExecute|askObject|askRemove|askResume|askSuspend|askWait|asks|autologyQ|eXForm|elegraphProcess|emplateApply|emplateBox|emplateExpression|emplateIf|emplateObject|emplateSequence|emplateSlot|emplateWith|emporalData|ensorContract|ensorDimensions|ensorExpand|ensorProduct|ensorRank|ensorReduce|ensorSymmetry|ensorTranspose|ensorWedge|erminatedEvaluation|estReport|estReportObject|estResultObject|etrahedron|ext|extCell|extData|extGrid|extPacket|extRecognize|extSentences|extString|extTranslation|extWords|exture|herefore|hermodynamicData|hermometerGauge|hickness|hinning|hompsonGroupTh|hread|hreeJSymbol|hreshold|hrough|hrow|hueMorse|humbnail|ideData|ilde|ildeEqual|ildeFullEqual|ildeTilde|imeConstrained|imeObjectQ??|imeRemaining|imeSeries|imeSeriesAggregate|imeSeriesForecast|imeSeriesInsert|imeSeriesInvertibility|imeSeriesMap|imeSeriesMapThread|imeSeriesModel|imeSeriesModelFit|imeSeriesResample|imeSeriesRescale|imeSeriesShift|imeSeriesThread|imeSeriesWindow|imeSystemConvert|imeUsed|imeValue|imeZoneConvert|imeZoneOffset|imelinePlot|imes|imesBy|iming|itsGroupT|oBoxes|oCharacterCode|oContinuousTimeModel|oDiscreteTimeModel|oEntity|oExpression|oInvertibleTimeSeries|oLowerCase|oNumberField|oPolarCoordinates|oRadicals|oRules|oSphericalCoordinates|oString|oUpperCase|oeplitzMatrix|ogether|oggler|ogglerBar|ooltip|oonShading|opHatTransform|opologicalSort|orus|orusGraph|otal|otalVariationFilter|ouchPosition|r|race|raceDialog|racePrint|raceScan|racyWidomDistribution|radingChart|raditionalForm|ransferFunctionCancel|ransferFunctionExpand|ransferFunctionFactor|ransferFunctionModel|ransferFunctionPoles|ransferFunctionTransform|ransferFunctionZeros|ransformationFunction|ransformationMatrix|ransformedDistribution|ransformedField|ransformedProcess|ransformedRegion|ransitiveClosureGraph|ransitiveReductionGraph|ranslate|ranslationTransform|ransliterate|ranspose|ravelDirections|ravelDirectionsData|ravelDistance|ravelDistanceList|ravelTime|reeForm|reeGraphQ??|reePlot|riangle|riangleWave|riangularDistribution|riangulateMesh|rigExpand|rigFactor|rigFactorList|rigReduce|rigToExp|rigger|rimmedMean|rimmedVariance|ropicalStormData|rueQ|runcatedDistribution|runcatedPolyhedron|sallisQExponentialDistribution|sallisQGaussianDistribution|ube|ukeyLambdaDistribution|ukeyWindow|unnelData|uples|uranGraph|uringMachine|uttePolynomial|woWayRule|ypeHint)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`U(?:RL|RLBuild|RLDecode|RLDispatcher|RLDownload|RLEncode|RLExecute|RLExpand|RLParse|RLQueryDecode|RLQueryEncode|RLRead|RLResponseTime|RLShorten|RLSubmit|nateQ|ncompress|nderBar|nderflow|nderoverscript|nderoverscriptBox|nderscript|nderscriptBox|nderseaFeatureData|ndirectedEdge|ndirectedGraphQ??|nequal|nequalTo|nevaluated|niformDistribution|niformGraphDistribution|niformPolyhedron|niformSumDistribution|ninstall|nion|nionPlus|nique|nitBox|nitConvert|nitDimensions|nitRootTest|nitSimplify|nitStep|nitTriangle|nitVector|nitaryMatrixQ|nitize|niverseModelData|niversityData|nixTime|nprotect|nsameQ|nset|nsetShared|ntil|pArrow|pArrowBar|pArrowDownArrow|pDownArrow|pEquilibrium|pSet|pSetDelayed|pTee|pTeeArrow|pTo|pValues|pdate|pperCaseQ|pperLeftArrow|pperRightArrow|pperTriangularMatrixQ??|pperTriangularize|psample|singFrontEnd)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`V(?:alueQ|alues|ariables|ariance|arianceEquivalenceTest|arianceGammaDistribution|arianceTest|ectorAngle|ectorDensityPlot|ectorDisplacementPlot|ectorDisplacementPlot3D|ectorGreater|ectorGreaterEqual|ectorLess|ectorLessEqual|ectorPlot|ectorPlot3D|ectorQ|ectors|ee|erbatim|erificationTest|ertexAdd|ertexChromaticNumber|ertexComponent|ertexConnectivity|ertexContract|ertexCorrelationSimilarity|ertexCosineSimilarity|ertexCount|ertexCoverQ|ertexDegree|ertexDelete|ertexDiceSimilarity|ertexEccentricity|ertexInComponent|ertexInComponentGraph|ertexInDegree|ertexIndex|ertexJaccardSimilarity|ertexList|ertexOutComponent|ertexOutComponentGraph|ertexOutDegree|ertexQ|ertexReplace|ertexTransitiveGraphQ|ertexWeightedGraphQ|erticalBar|erticalGauge|erticalSeparator|erticalSlider|erticalTilde|oiceStyleData|oigtDistribution|olcanoData|olume|onMisesDistribution|oronoiMesh)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`W(?:aitAll|aitNext|akebyDistribution|alleniusHypergeometricDistribution|aringYuleDistribution|arpingCorrespondence|arpingDistance|atershedComponents|atsonUSquareTest|attsStrogatzGraphDistribution|avePDEComponent|aveletBestBasis|aveletFilterCoefficients|aveletImagePlot|aveletListPlot|aveletMapIndexed|aveletMatrixPlot|aveletPhi|aveletPsi|aveletScalogram|aveletThreshold|eakStationarity|eaklyConnectedComponents|eaklyConnectedGraphComponents|eaklyConnectedGraphQ|eatherData|eatherForecastData|eberE|edge|eibullDistribution|eierstrassE1|eierstrassE2|eierstrassE3|eierstrassEta1|eierstrassEta2|eierstrassEta3|eierstrassHalfPeriodW1|eierstrassHalfPeriodW2|eierstrassHalfPeriodW3|eierstrassHalfPeriods|eierstrassInvariantG2|eierstrassInvariantG3|eierstrassInvariants|eierstrassP|eierstrassPPrime|eierstrassSigma|eierstrassZeta|eightedAdjacencyGraph|eightedAdjacencyMatrix|eightedData|eightedGraphQ|elchWindow|heelGraph|henEvent|hich|hile|hiteNoiseProcess|hittakerM|hittakerW|ienerFilter|ienerProcess|ignerD|ignerSemicircleDistribution|ikipediaData|ilksW|ilksWTest|indDirectionData|indSpeedData|indVectorData|indingCount|indingPolygon|insorizedMean|insorizedVariance|ishartMatrixDistribution|ith|olframAlpha|olframLanguageData|ordCloud|ordCounts??|ordData|ordDefinition|ordFrequency|ordFrequencyData|ordList|ordStem|ordTranslation|rite|riteLine|riteString|ronskian)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`X(?:MLElement|MLObject|MLTemplate|YZColor|nor|or)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`YuleDissimilarity(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`Z(?:IPCodeData|Test|Transform|ernikeR|eroSymmetric|eta|etaZero|ipfDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"System`A(?:cceptanceThreshold|ccuracyGoal|ctiveStyle|ddOnHelpPath|djustmentBoxOptions|lignment|lignmentPoint|llowGroupClose|llowInlineCells|llowLooseGrammar|llowReverseGroupClose|llowScriptLevelChange|llowVersionUpdate|llowedCloudExtraParameters|llowedCloudParameterExtensions|llowedDimensions|llowedFrequencyRange|llowedHeads|lternativeHypothesis|ltitudeMethod|mbiguityFunction|natomySkinStyle|nchoredSearch|nimationDirection|nimationRate|nimationRepetitions|nimationRunTime|nimationRunning|nimationTimeIndex|nnotationRules|ntialiasing|ppearance|ppearanceElements|ppearanceRules|spectRatio|ssociationFormat|ssumptions|synchronous|ttachedCell|udioChannelAssignment|udioEncoding|udioInputDevice|udioLabel|udioOutputDevice|uthentication|utoAction|utoCopy|utoDelete|utoGeneratedPackage|utoIndent|utoItalicWords|utoMultiplicationSymbol|utoOpenNotebooks|utoOpenPalettes|utoOperatorRenderings|utoRemove|utoScroll|utoSpacing|utoloadPath|utorunSequencing|xes|xesEdge|xesLabel|xesOrigin|xesStyle)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`B(?:ackground|arOrigin|arSpacing|aseStyle|aselinePosition|inaryFormat|ookmarks|ooleanStrings|oundaryStyle|oxBaselineShift|oxFormFormatTypes|oxFrame|oxMargins|oxRatios|oxStyle|oxed|ubbleScale|ubbleSizes|uttonBoxOptions|uttonData|uttonFunction|uttonMinHeight|uttonSource|yteOrdering)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`C(?:alendarType|alloutMarker|alloutStyle|aptureRunning|aseOrdering|elestialSystem|ellAutoOverwrite|ellBaseline|ellBracketOptions|ellChangeTimes|ellContext|ellDingbat|ellDingbatMargin|ellDynamicExpression|ellEditDuplicate|ellEpilog|ellEvaluationDuplicate|ellEvaluationFunction|ellEventActions|ellFrame|ellFrameColor|ellFrameLabelMargins|ellFrameLabels|ellFrameMargins|ellGrouping|ellGroupingRules|ellHorizontalScrolling|ellID|ellLabel|ellLabelAutoDelete|ellLabelMargins|ellLabelPositioning|ellLabelStyle|ellLabelTemplate|ellMargins|ellOpen|ellProlog|ellSize|ellTags|haracterEncoding|haracterEncodingsPath|hartBaseStyle|hartElementFunction|hartElements|hartLabels|hartLayout|hartLegends|hartStyle|lassPriors|lickToCopyEnabled|lipPlanes|lipPlanesStyle|lipRange|lippingStyle|losingAutoSave|loudBase|loudObjectNameFormat|loudObjectURLType|lusterDissimilarityFunction|odeAssistOptions|olorCoverage|olorFunction|olorFunctionBinning|olorFunctionScaling|olorRules|olorSelectorSettings|olorSpace|olumnAlignments|olumnLines|olumnSpacings|olumnWidths|olumnsEqual|ombinerFunction|ommonDefaultFormatTypes|ommunityBoundaryStyle|ommunityLabels|ommunityRegionStyle|ompilationOptions|ompilationTarget|ompiled|omplexityFunction|ompressionLevel|onfidenceLevel|onfidenceRange|onfidenceTransform|onfigurationPath|onstants|ontentPadding|ontentSelectable|ontentSize|ontinuousAction|ontourLabels|ontourShading|ontourStyle|ontours|ontrolPlacement|ontrolType|ontrollerLinking|ontrollerMethod|ontrollerPath|ontrolsRendering|onversionRules|ookieFunction|oordinatesToolOptions|opyFunction|opyable|ornerNeighbors|ounterAssignments|ounterFunction|ounterIncrements|ounterStyleMenuListing|ovarianceEstimatorFunction|reateCellID|reateIntermediateDirectories|riterionFunction|ubics|urveClosed)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`D(?:ataRange|ataReversed|atasetTheme|ateFormat|ateFunction|ateGranularity|ateReduction|ateTicksFormat|ayCountConvention|efaultDuplicateCellStyle|efaultDuration|efaultElement|efaultFontProperties|efaultFormatType|efaultInlineFormatType|efaultNaturalLanguage|efaultNewCellStyle|efaultNewInlineCellStyle|efaultNotebook|efaultOptions|efaultPrintPrecision|efaultStyleDefinitions|einitialization|eletable|eleteContents|eletionWarning|elimiterAutoMatching|elimiterFlashTime|elimiterMatching|elimiters|eliveryFunction|ependentVariables|eployed|escriptorStateSpace|iacriticalPositioning|ialogProlog|ialogSymbols|igitBlock|irectedEdges|irection|iscreteVariables|ispersionEstimatorFunction|isplayAllSteps|isplayFunction|istanceFunction|istributedContexts|ithering|ividers|ockedCells??|ynamicEvaluationTimeout|ynamicModuleValues|ynamicUpdating)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`E(?:clipseType|dgeCapacity|dgeCost|dgeLabelStyle|dgeLabels|dgeShapeFunction|dgeStyle|dgeValueRange|dgeValueSizes|dgeWeight|ditCellTagsSettings|ditable|lidedForms|nabled|pilog|pilogFunction|scapeRadius|valuatable|valuationCompletionAction|valuationElements|valuationMonitor|valuator|valuatorNames|ventLabels|xcludePods|xcludedContexts|xcludedForms|xcludedLines|xcludedPhysicalQuantities|xclusions|xclusionsStyle|xponentFunction|xponentPosition|xponentStep|xponentialFamily|xportAutoReplacements|xpressionUUID|xtension|xtentElementFunction|xtentMarkers|xtentSize|xternalDataCharacterEncoding|xternalOptions|xternalTypeSignature)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`F(?:aceGrids|aceGridsStyle|ailureAction|eatureNames|eatureTypes|eedbackSector|eedbackSectorStyle|eedbackType|ieldCompletionFunction|ieldHint|ieldHintStyle|ieldMasked|ieldSize|ileNameDialogSettings|ileNameForms|illing|illingStyle|indSettings|itRegularization|ollowRedirects|ontColor|ontFamily|ontSize|ontSlant|ontSubstitutions|ontTracking|ontVariations|ontWeight|orceVersionInstall|ormBoxOptions|ormLayoutFunction|ormProtectionMethod|ormatType|ormatTypeAutoConvert|ourierParameters|ractionBoxOptions|ractionLine|rame|rameBoxOptions|rameLabel|rameMargins|rameRate|rameStyle|rameTicks|rameTicksStyle|rontEndEventActions|unctionSpace)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`G(?:apPenalty|augeFaceElementFunction|augeFaceStyle|augeFrameElementFunction|augeFrameSize|augeFrameStyle|augeLabels|augeMarkers|augeStyle|aussianIntegers|enerateConditions|eneratedCell|eneratedDocumentBinding|eneratedParameters|eneratedQuantityMagnitudes|eneratorDescription|eneratorHistoryLength|eneratorOutputType|eoArraySize|eoBackground|eoCenter|eoGridLines|eoGridLinesStyle|eoGridRange|eoGridRangePadding|eoLabels|eoLocation|eoModel|eoProjection|eoRange|eoRangePadding|eoResolution|eoScaleBar|eoServer|eoStylingImageFunction|eoZoomLevel|radient|raphHighlight|raphHighlightStyle|raphLayerStyle|raphLayers|raphLayout|ridCreationSettings|ridDefaultElement|ridFrame|ridFrameMargins|ridLines|ridLinesStyle|roupActionBase|roupPageBreakWithin)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`H(?:eaderAlignment|eaderBackground|eaderDisplayFunction|eaderLines|eaderSize|eaderStyle|eads|elpBrowserSettings|iddenItems|olidayCalendar|yperlinkAction|yphenation)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`I(?:conRules|gnoreCase|gnoreDiacritics|gnorePunctuation|mageCaptureFunction|mageFormattingWidth|mageLabels|mageLegends|mageMargins|magePadding|magePreviewFunction|mageRegion|mageResolution|mageSize|mageSizeAction|mageSizeMultipliers|magingDevice|mportAutoReplacements|mportOptions|ncludeConstantBasis|ncludeDefinitions|ncludeDirectories|ncludeFileExtension|ncludeGeneratorTasks|ncludeInflections|ncludeMetaInformation|ncludePods|ncludeQuantities|ncludeSingularSolutions|ncludeWindowTimes|ncludedContexts|ndeterminateThreshold|nflationMethod|nheritScope|nitialSeeding|nitialization|nitializationCell|nitializationCellEvaluation|nitializationCellWarning|nputAliases|nputAssumptions|nputAutoReplacements|nsertResults|nsertionFunction|nteractive|nterleaving|nterpolationOrder|nterpolationPoints|nterpretationBoxOptions|nterpretationFunction|ntervalMarkers|ntervalMarkersStyle|nverseFunctions|temAspectRatio|temDisplayFunction|temSize|temStyle)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`Joined(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`Ke(?:epExistingVersion|yCollisionFunction|ypointStrength)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`L(?:abelStyle|abelVisibility|abelingFunction|abelingSize|anguage|anguageCategory|ayerSizeFunction|eaderSize|earningRate|egendAppearance|egendFunction|egendLabel|egendLayout|egendMargins|egendMarkerSize|egendMarkers|ighting|ightingAngle|imitsPositioning|imitsPositioningTokens|ineBreakWithin|ineIndent|ineIndentMaxFraction|ineIntegralConvolutionScale|ineSpacing|inearOffsetFunction|inebreakAdjustments|inkFunction|inkProtocol|istFormat|istPickerBoxOptions|ocalizeVariables|ocatorAutoCreate|ocatorRegion|ooping)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`M(?:agnification|ailAddressValidation|ailResponseFunction|ailSettings|asking|atchLocalNames|axCellMeasure|axColorDistance|axDuration|axExtraBandwidths|axExtraConditions|axFeatureDisplacement|axFeatures|axItems|axIterations|axMixtureKernels|axOverlapFraction|axPlotPoints|axRecursion|axStepFraction|axStepSize|axSteps|emoryConstraint|enuCommandKey|enuSortingValue|enuStyle|esh|eshCellHighlight|eshCellLabel|eshCellMarker|eshCellShapeFunction|eshCellStyle|eshFunctions|eshQualityGoal|eshRefinementFunction|eshShading|eshStyle|etaInformation|ethod|inColorDistance|inIntervalSize|inPointSeparation|issingBehavior|issingDataMethod|issingDataRules|issingString|issingStyle|odal|odulus|ultiaxisArrangement|ultiedgeStyle|ultilaunchWarning|ultilineFunction|ultiselection)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`N(?:icholsGridLines|ominalVariables|onConstants|ormFunction|ormalized|ormalsFunction|otebookAutoSave|otebookBrowseDirectory|otebookConvertSettings|otebookDynamicExpression|otebookEventActions|otebookPath|otebooksMenu|otificationFunction|ullRecords|ullWords|umberFormat|umberMarks|umberMultiplier|umberPadding|umberPoint|umberSeparator|umberSigns|yquistGridLines)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`O(?:pacityFunction|pacityFunctionScaling|peratingSystem|ptionInspectorSettings|utputAutoOverwrite|utputSizeLimit|verlaps|verscriptBoxOptions|verwriteTarget)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`P(?:IDDerivativeFilter|IDFeedforward|acletSite|adding|addingSize|ageBreakAbove|ageBreakBelow|ageBreakWithin|ageFooterLines|ageFooters|ageHeaderLines|ageHeaders|ageTheme|ageWidth|alettePath|aneled|aragraphIndent|aragraphSpacing|arallelization|arameterEstimator|artBehavior|artitionGranularity|assEventsDown|assEventsUp|asteBoxFormInlineCells|ath|erformanceGoal|ermissions|haseRange|laceholderReplace|layRange|lotLabels??|lotLayout|lotLegends|lotMarkers|lotPoints|lotRange|lotRangeClipping|lotRangePadding|lotRegion|lotStyle|lotTheme|odStates|odWidth|olarAxes|olarAxesOrigin|olarGridLines|olarTicks|oleZeroMarkers|recisionGoal|referencesPath|reprocessingRules|reserveColor|reserveImageOptions|rincipalValue|rintAction|rintPrecision|rintingCopies|rintingOptions|rintingPageRange|rintingStartingPageNumber|rintingStyleEnvironment|rintout3DPreviewer|rivateCellOptions|rivateEvaluationOptions|rivateFontOptions|rivateNotebookOptions|rivatePaths|rocessDirectory|rocessEnvironment|rocessEstimator|rogressReporting|rolog|ropagateAborts)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`Quartics(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`R(?:adicalBoxOptions|andomSeeding|asterSize|eImLabels|eImStyle|ealBlockDiagonalForm|ecognitionPrior|ecordLists|ecordSeparators|eferenceLineStyle|efreshRate|egionBoundaryStyle|egionFillingStyle|egionFunction|egionSize|egularization|enderingOptions|equiredPhysicalQuantities|esampling|esamplingMethod|esolveContextAliases|estartInterval|eturnReceiptFunction|evolutionAxis|otateLabel|otationAction|oundingRadius|owAlignments|owLines|owMinHeight|owSpacings|owsEqual|ulerUnits|untimeAttributes|untimeOptions)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`S(?:ameTest|ampleDepth|ampleRate|amplingPeriod|aveConnection|aveDefinitions|aveable|caleDivisions|caleOrigin|calePadding|caleRangeStyle|caleRanges|calingFunctions|cientificNotationThreshold|creenStyleEnvironment|criptBaselineShifts|criptLevel|criptMinSize|criptSizeMultipliers|crollPosition|crollbars|crollingOptions|ectorOrigin|ectorSpacing|electable|elfLoopStyle|eriesTermGoal|haringList|howAutoSpellCheck|howAutoStyles|howCellBracket|howCellLabel|howCellTags|howClosedCellArea|howContents|howCursorTracker|howGroupOpener|howPageBreaks|howSelection|howShortBoxForm|howSpecialCharacters|howStringCharacters|hrinkingDelay|ignPadding|ignificanceLevel|imilarityRules|ingleLetterItalics|liderBoxOptions|ortedBy|oundVolume|pacings|panAdjustments|panCharacterRounding|panLineThickness|panMaxSize|panMinSize|panSymmetric|pecificityGoal|pellingCorrection|pellingDictionaries|pellingDictionariesPath|pellingOptions|phericalRegion|plineClosed|plineDegree|plineKnots|plineWeights|qrtBoxOptions|tabilityMargins|tabilityMarginsStyle|tandardized|tartingStepSize|tateSpaceRealization|tepMonitor|trataVariables|treamColorFunction|treamColorFunctionScaling|treamMarkers|treamPoints|treamScale|treamStyle|trictInequalities|tripOnInput|tripWrapperBoxes|tructuredSelection|tyleBoxAutoDelete|tyleDefinitions|tyleHints|tyleMenuListing|tyleNameDialogSettings|tyleSheetPath|ubscriptBoxOptions|ubsuperscriptBoxOptions|ubtitleEncoding|uperscriptBoxOptions|urdForm|ynchronousInitialization|ynchronousUpdating|yntaxForm|ystemHelpPath|ystemsModelLabels)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`T(?:abFilling|abSpacings|ableAlignments|ableDepth|ableDirections|ableHeadings|ableSpacing|agBoxOptions|aggingRules|argetFunctions|argetUnits|emplateBoxOptions|emporalRegularity|estID|extAlignment|extClipboardType|extJustification|extureCoordinateFunction|extureCoordinateScaling|icks|icksStyle|imeConstraint|imeDirection|imeFormat|imeGoal|imeSystem|imeZone|okenWords|olerance|ooltipDelay|ooltipStyle|otalWidth|ouchscreenAutoZoom|ouchscreenControlPlacement|raceAbove|raceBackward|raceDepth|raceForward|raceOff|raceOn|raceOriginal|rackedSymbols|rackingFunction|raditionalFunctionNotation|ransformationClass|ransformationFunctions|ransitionDirection|ransitionDuration|ransitionEffect|ranslationOptions|ravelMethod|rendStyle|rig)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`U(?:nderoverscriptBoxOptions|nderscriptBoxOptions|ndoOptions|ndoTrackedVariables|nitSystem|nityDimensions|nsavedVariables|pdateInterval|pdatePacletSites|tilityFunction)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`V(?:alidationLength|alidationSet|alueDimensions|arianceEstimatorFunction|ectorAspectRatio|ectorColorFunction|ectorColorFunctionScaling|ectorMarkers|ectorPoints|ectorRange|ectorScaling|ectorSizes|ectorStyle|erifyConvergence|erifySecurityCertificates|erifySolutions|erifyTestAssumptions|ersionedPreferences|ertexCapacity|ertexColors|ertexCoordinates|ertexDataCoordinates|ertexLabelStyle|ertexLabels|ertexNormals|ertexShape|ertexShapeFunction|ertexSize|ertexStyle|ertexTextureCoordinates|ertexWeight|ideoEncoding|iewAngle|iewCenter|iewMatrix|iewPoint|iewProjection|iewRange|iewVector|iewVertical|isible)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`W(?:aveletScale|eights|hitePoint|indowClickSelect|indowElements|indowFloating|indowFrame|indowFrameElements|indowMargins|indowOpacity|indowSize|indowStatusArea|indowTitle|indowToolbars|ordOrientation|ordSearch|ordSelectionFunction|ordSeparators|ordSpacings|orkingPrecision|rapAround)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`Zero(?:Test|WidthTimes)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`A(?:bove|fter|lgebraics|ll|nonymous|utomatic|xis)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`B(?:ack|ackward|aseline|efore|elow|lack|lue|old|ooleans|ottom|oxes|rown|yte)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`C(?:atalan|ellStyle|enter|haracter|omplexInfinity|omplexes|onstant|yan)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`D(?:ashed|efaultAxesStyle|efaultBaseStyle|efaultBoxStyle|efaultFaceGridsStyle|efaultFieldHintStyle|efaultFrameStyle|efaultFrameTicksStyle|efaultGridLinesStyle|efaultLabelStyle|efaultMenuStyle|efaultTicksStyle|efaultTooltipStyle|egree|elimiter|igitCharacter|otDashed|otted)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`E(?:|ndOfBuffer|ndOfFile|ndOfLine|ndOfString|ulerGamma|xpression)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`F(?:alse|lat|ontProperties|orward|orwardBackward|riday|ront|rontEndDynamicExpression|ull)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`G(?:eneral|laisher|oldenAngle|oldenRatio|ray|reen)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`H(?:ere|exadecimalCharacter|oldAll|oldAllComplete|oldFirst|oldRest)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`I(?:|ndeterminate|nfinity|nherited|ntegers??|talic)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`Khinchin(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`L(?:arger??|eft|etterCharacter|ightBlue|ightBrown|ightCyan|ightGray|ightGreen|ightMagenta|ightOrange|ightPink|ightPurple|ightRed|ightYellow|istable|ocked)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`M(?:achinePrecision|agenta|anual|edium|eshCellCentroid|eshCellMeasure|eshCellQuality|onday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`N(?:HoldAll|HoldFirst|HoldRest|egativeIntegers|egativeRationals|egativeReals|oWhitespace|onNegativeIntegers|onNegativeRationals|onNegativeReals|onPositiveIntegers|onPositiveRationals|onPositiveReals|one|ow|ull|umber|umberString|umericFunction)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`O(?:neIdentity|range|rderless)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`P(?:i|ink|lain|ositiveIntegers|ositiveRationals|ositiveReals|rimes|rotected|unctuationCharacter|urple)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`R(?:ationals|eadProtected|eals??|ecord|ed|ight)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`S(?:aturday|equenceHold|mall|maller|panFromAbove|panFromBoth|panFromLeft|tartOfLine|tartOfString|tring|truckthrough|tub|unday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`T(?:emporary|hick|hin|hursday|iny|oday|omorrow|op|ransparent|rue|uesday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`Unde(?:f|rl)ined(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`W(?:ednesday|hite|hitespace|hitespaceCharacter|ord|ordBoundary|ordCharacter)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`Ye(?:llow|sterday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`\\\\$(?:Aborted|ActivationKey|AllowDataUpdates|AllowInternet|AssertFunction|Assumptions|AudioInputDevices|AudioOutputDevices|BaseDirectory|BasePacletsDirectory|BatchInput|BatchOutput|ByteOrdering|CacheBaseDirectory|Canceled|CharacterEncodings??|CloudAccountName|CloudBase|CloudConnected|CloudCreditsAvailable|CloudEvaluation|CloudExpressionBase|CloudObjectNameFormat|CloudObjectURLType|CloudRootDirectory|CloudSymbolBase|CloudUserID|CloudUserUUID|CloudVersion|CommandLine|CompilationTarget|Context|ContextAliases|ContextPath|ControlActiveSetting|Cookies|CreationDate|CurrentLink|CurrentTask|DateStringFormat|DefaultAudioInputDevice|DefaultAudioOutputDevice|DefaultFrontEnd|DefaultImagingDevice|DefaultKernels|DefaultLocalBase|DefaultLocalKernel|Display|DisplayFunction|DistributedContexts|DynamicEvaluation|Echo|EmbedCodeEnvironments|EmbeddableServices|Epilog|EvaluationCloudBase|EvaluationCloudObject|EvaluationEnvironment|ExportFormats|Failed|FontFamilies|FrontEnd|FrontEndSession|GeoLocation|GeoLocationCity|GeoLocationCountry|GeoLocationSource|HomeDirectory|IgnoreEOF|ImageFormattingWidth|ImageResolution|ImagingDevices??|ImportFormats|InitialDirectory|Input|InputFileName|InputStreamMethods|Inspector|InstallationDirectory|InterpreterTypes|IterationLimit|KernelCount|KernelID|Language|LibraryPath|LicenseExpirationDate|LicenseID|LicenseServer|Linked|LocalBase|LocalSymbolBase|MachineAddresses|MachineDomains|MachineEpsilon|MachineID|MachineName|MachinePrecision|MachineType|MaxExtraPrecision|MaxMachineNumber|MaxNumber|MaxPiecewiseCases|MaxPrecision|MaxRootDegree|MessageGroups|MessageList|MessagePrePrint|Messages|MinMachineNumber|MinNumber|MinPrecision|MobilePhone|ModuleNumber|NetworkConnected|NewMessage|NewSymbol|NotebookInlineStorageLimit|Notebooks|NumberMarks|OperatingSystem|Output|OutputSizeLimit|OutputStreamMethods|Packages|ParentLink|ParentProcessID|PasswordFile|Path|PathnameSeparator|PerformanceGoal|Permissions|PlotTheme|Printout3DPreviewer|ProcessID|ProcessorCount|ProcessorType|ProgressReporting|RandomGeneratorState|RecursionLimit|ReleaseNumber|RequesterAddress|RequesterCloudUserID|RequesterCloudUserUUID|RequesterWolframID|RequesterWolframUUID|RootDirectory|ScriptCommandLine|ScriptInputString|Services|SessionID|SharedFunctions|SharedVariables|SoundDisplayFunction|SynchronousEvaluation|System|SystemCharacterEncoding|SystemID|SystemShell|SystemTimeZone|SystemWordLength|TemplatePath|TemporaryDirectory|TimeUnit|TimeZone|TimeZoneEntity|TimedOut|UnitSystem|Urgent|UserAgentString|UserBaseDirectory|UserBasePacletsDirectory|UserDocumentsDirectory|UserURLBase|Username|Version|VersionNumber|WolframDocumentsDirectory|WolframID|WolframUUID)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"System`A(?:bortScheduledTask|ctive|lgebraicRules|lternateImage|natomyForm|nimationCycleOffset|nimationCycleRepetitions|nimationDisplayTime|spectRatioFixed|stronomicalData|synchronousTaskObject|synchronousTasks|udioDevice|udioLooping)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`Button(?:Evaluator|Expandable|Frame|Margins|Note|Style)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`C(?:DFInformation|hebyshevDistance|lassifierInformation|lipFill|olorOutput|olumnForm|ompose|onstantArrayLayer|onstantPlusLayer|onstantTimesLayer|onstrainedMax|onstrainedMin|ontourGraphics|ontourLines|onversionOptions|reateScheduledTask|reateTemporary|urry)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`D(?:atabinRemove|ate|ebug|efaultColor|efaultFont|ensityGraphics|isplay|isplayString|otPlusLayer|ragAndDrop)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`E(?:dgeLabeling|dgeRenderingFunction|valuateScheduledTask|xpectedValue)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`F(?:actorComplete|ontForm|ormTheme|romDate|ullOptions)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`Gr(?:aphStyle|aphicsArray|aphicsSpacing|idBaseline)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`H(?:TMLSave|eldPart|iddenSurface|omeDirectory)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`I(?:mageRotated|nstanceNormalizationLayer)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`L(?:UBackSubstitution|egendreType|ightSources|inearProgramming|inkOpen|iteral|ongestMatch)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`M(?:eshRange|oleculeEquivalentQ)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`N(?:etInformation|etSharedArray|extScheduledTaskTime|otebookCreate)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`OpenTemporary(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`P(?:IDData|ackingMethod|ersistentValue|ixelConstrained|lot3Matrix|lotDivision|lotJoined|olygonIntersections|redictorInformation|roperties|roperty|ropertyList|ropertyValue)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`R(?:andom|asterArray|ecognitionThreshold|elease|emoteKernelObject|emoveAsynchronousTask|emoveProperty|emoveScheduledTask|enderAll|eplaceHeldPart|esetScheduledTask|esumePacket|unScheduledTask)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`S(?:cheduledTaskActiveQ|cheduledTaskInformation|cheduledTaskObject|cheduledTasks|creenRectangle|electionAnimate|equenceAttentionLayer|equenceForm|etProperty|hading|hortestMatch|ingularValues|kinStyle|ocialMediaData|tartAsynchronousTask|tartScheduledTask|tateDimensions|topAsynchronousTask|topScheduledTask|tructuredArray|tyleForm|tylePrint|ubscripted|urfaceColor|urfaceGraphics|uspendPacket|ystemModelProgressReporting)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`T(?:eXSave|extStyle|imeWarpingCorrespondence|imeWarpingDistance|oDate|oFileName|oHeldExpression)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`URL(?:Fetch|FetchAsynchronous|Save|SaveAsynchronous)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`Ve(?:ctorScale|rtexCoordinateRules|rtexLabeling|rtexRenderingFunction)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`W(?:aitAsynchronousTask|indowMovable)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`\\\\$(?:AsynchronousTask|ConfiguredKernels|DefaultFont|EntityStores|FormatType|HTTPCookies|InstallationDate|MachineDomain|ProductInformation|ProgramName|RandomState|ScheduledTask|SummaryBoxDataSizeLimit|TemporaryPrefix|TextStyle|TopDirectory|UserAddOnsDirectory)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"System`A(?:ctionDelay|ctionMenuBox|ctionMenuBoxOptions|ctiveItem|lgebraicRulesData|lignmentMarker|llowAdultContent|llowChatServices|llowIncomplete|nalytic|nimatorBox|nimatorBoxOptions|nimatorElements|ppendCheck|rgumentCountQ|rrow3DBox|rrowBox|uthenticate|utoEvaluateEvents|utoIndentSpacings|utoMatch|utoNumberFormatting|utoQuoteCharacters|utoScaling|utoStyleOptions|utoStyleWords|utomaticImageSize|xis3DBox|xis3DBoxOptions|xisBox|xisBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`B(?:SplineCurve3DBox|SplineCurve3DBoxOptions|SplineCurveBox|SplineCurveBoxOptions|SplineSurface3DBox|SplineSurface3DBoxOptions|ackFaceColor|ackFaceGlowColor|ackFaceOpacity|ackFaceSpecularColor|ackFaceSpecularExponent|ackFaceSurfaceAppearance|ackFaceTexture|ackgroundAppearance|ackgroundTasksSettings|acksubstitution|eveled|ezierCurve3DBox|ezierCurve3DBoxOptions|ezierCurveBox|ezierCurveBoxOptions|lankForm|ounds|ox|oxDimensions|oxForm|oxID|oxRotation|oxRotationPoint|ra|raKet|rowserCategory|uttonCell|uttonContents|uttonStyleMenuListing)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`C(?:acheGraphics|achedValue|ardinalBSplineBasis|ellBoundingBox|ellContents|ellElementSpacings|ellElementsBoundingBox|ellFrameStyle|ellInsertionPointCell|ellTrayPosition|ellTrayWidgets|hangeOptions|hannelDatabin|hannelListenerWait|hannelPreSendFunction|hartElementData|hartElementDataFunction|heckAll|heckboxBox|heckboxBoxOptions|ircleBox|lipboardNotebook|lockwiseContourIntegral|losed|losingEvent|loudConnections|loudObjectInformation|loudObjectInformationData|loudUserID|oarse|oefficientDomain|olonForm|olorSetterBox|olorSetterBoxOptions|olumnBackgrounds|ompilerEnvironmentAppend|ompletionsListPacket|omponentwiseContextMenu|ompressedData|oneBox|onicHullRegion3DBox|onicHullRegion3DBoxOptions|onicHullRegionBox|onicHullRegionBoxOptions|onnect|ontentsBoundingBox|ontextMenu|ontinuation|ontourIntegral|ontourSmoothing|ontrolAlignment|ontrollerDuration|ontrollerInformationData|onvertToPostScript|onvertToPostScriptPacket|ookies|opyTag|ounterBox|ounterBoxOptions|ounterClockwiseContourIntegral|ounterEvaluator|ounterStyle|uboidBox|uboidBoxOptions|urlyDoubleQuote|urlyQuote|ylinderBox|ylinderBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`D(?:OSTextFormat|ampingFactor|ataCompression|atasetDisplayPanel|ateDelimiters|ebugTag|ecimal|efault2DTool|efault3DTool|efaultAttachedCellStyle|efaultControlPlacement|efaultDockedCellStyle|efaultInputFormatType|efaultOutputFormatType|efaultStyle|efaultTextFormatType|efaultTextInlineFormatType|efaultValue|efineExternal|egreeLexicographic|egreeReverseLexicographic|eleteWithContents|elimitedArray|estroyAfterEvaluation|eviceOpenQ|ialogIndent|ialogLevel|ifferenceOrder|igitBlockMinimum|isableConsolePrintPacket|iskBox|iskBoxOptions|ispatchQ|isplayRules|isplayTemporary|istributionDomain|ivergence|ocumentGeneratorInformationData|omainRegistrationInformation|oubleContourIntegral|oublyInfinite|own|rawBackFaces|rawFrontFaces|rawHighlighted|ualLinearProgramming|umpGet|ynamicBox|ynamicBoxOptions|ynamicLocation|ynamicModuleBox|ynamicModuleBoxOptions|ynamicModuleParent|ynamicName|ynamicNamespace|ynamicReference|ynamicWrapperBox|ynamicWrapperBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`E(?:ditButtonSettings|liminationOrder|llipticReducedHalfPeriods|mbeddingObject|mphasizeSyntaxErrors|mpty|nableConsolePrintPacket|ndAdd|ngineEnvironment|nter|qualColumns|qualRows|quatedTo|rrorBoxOptions|rrorNorm|rrorPacket|rrorsDialogSettings|valuated|valuationMode|valuationOrder|valuationRateLimit|ventEvaluator|ventHandlerTag|xactRootIsolation|xitDialog|xpectationE|xportPacket|xpressionPacket|xternalCall|xternalFunctionName)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`F(?:EDisableConsolePrintPacket|EEnableConsolePrintPacket|ail|ileInformation|ileName|illForm|illedCurveBox|illedCurveBoxOptions|ine|itAll|lashSelection|ont|ontName|ontOpacity|ontPostScriptName|ontReencoding|ormatRules|ormatValues|rameInset|rameless|rontEndObject|rontEndResource|rontEndResourceString|rontEndStackSize|rontEndValueCache|rontEndVersion|rontFaceColor|rontFaceGlowColor|rontFaceOpacity|rontFaceSpecularColor|rontFaceSpecularExponent|rontFaceSurfaceAppearance|rontFaceTexture|ullAxes)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`G(?:eneratedCellStyles|eneric|eometricTransformation3DBox|eometricTransformation3DBoxOptions|eometricTransformationBox|eometricTransformationBoxOptions|estureHandlerTag|etContext|etFileName|etLinebreakInformationPacket|lobalPreferences|lobalSession|raphLayerLabels|raphRoot|raphics3DBox|raphics3DBoxOptions|raphicsBaseline|raphicsBox|raphicsBoxOptions|raphicsComplex3DBox|raphicsComplex3DBoxOptions|raphicsComplexBox|raphicsComplexBoxOptions|raphicsContents|raphicsData|raphicsGridBox|raphicsGroup3DBox|raphicsGroup3DBoxOptions|raphicsGroupBox|raphicsGroupBoxOptions|raphicsGrouping|raphicsStyle|reekStyle|ridBoxAlignment|ridBoxBackground|ridBoxDividers|ridBoxFrame|ridBoxItemSize|ridBoxItemStyle|ridBoxOptions|ridBoxSpacings|ridElementStyleOptions|roupOpenerColor|roupOpenerInsideFrame|roupTogetherGrouping|roupTogetherNestedGrouping)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`H(?:eadCompose|eaders|elpBrowserLookup|elpBrowserNotebook|elpViewerSettings|essian|exahedronBox|exahedronBoxOptions|ighlightString|omePage|orizontal|orizontalForm|orizontalScrollPosition|yperlinkCreationSettings|yphenationOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`I(?:conizedObject|gnoreSpellCheck|mageCache|mageCacheValid|mageEditMode|mageMarkers|mageOffset|mageRangeCache|mageSizeCache|mageSizeRaw|nactiveStyle|ncludeSingularTerm|ndent|ndentMaxFraction|ndentingNewlineSpacings|ndexCreationOptions|ndexTag|nequality|nexactNumbers|nformationData|nformationDataGrid|nlineCounterAssignments|nlineCounterIncrements|nlineRules|nputFieldBox|nputFieldBoxOptions|nputGrouping|nputSettings|nputToBoxFormPacket|nsertionPointObject|nset3DBox|nset3DBoxOptions|nsetBox|nsetBoxOptions|ntegral|nterlaced|nterpolationPrecision|nterpretTemplate|nterruptSettings|nto|nvisibleApplication|nvisibleTimes|temBox|temBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`J(?:acobian|oinedCurveBox|oinedCurveBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`K(?:|ernelExecute|et)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`L(?:abeledSlider|ambertW|anguageOptions|aunch|ayoutInformation|exicographic|icenseID|ine3DBox|ine3DBoxOptions|ineBox|ineBoxOptions|ineBreak|ineWrapParts|inearFilter|inebreakSemicolonWeighting|inkConnectedQ|inkError|inkFlush|inkHost|inkMode|inkOptions|inkReadHeld|inkService|inkWriteHeld|istPickerBoxBackground|isten|iteralSearch|ocalizeDefinitions|ocatorBox|ocatorBoxOptions|ocatorCentering|ocatorPaneBox|ocatorPaneBoxOptions|ongEqual|ongForm|oopback)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`M(?:achineID|achineName|acintoshSystemPageSetup|ainSolve|aintainDynamicCaches|akeRules|atchLocalNameQ|aterial|athMLText|athematicaNotation|axBend|axPoints|enu|enuAppearance|enuEvaluator|enuItem|enuList|ergeDifferences|essageObject|essageOptions|essagesNotebook|etaCharacters|ethodOptions|inRecursion|inSize|ode|odular|onomialOrder|ouseAppearanceTag|ouseButtons|ousePointerNote|ultiLetterItalics|ultiLetterStyle|ultiplicity|ultiscriptBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`N(?:BernoulliB|ProductFactors|SumTerms|Values|amespaceBox|amespaceBoxOptions|estedScriptRules|etworkPacketRecordingDuring|ext|onAssociative|ormalGrouping|otebookDefault|otebookInterfaceObject)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`O(?:LEData|bjectExistsQ|pen|penFunctionInspectorPacket|penSpecialOptions|penerBox|penerBoxOptions|ptionQ|ptionValueBox|ptionValueBoxOptions|ptionsPacket|utputFormData|utputGrouping|utputMathEditExpression|ver|verlayBox|verlayBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`P(?:ackPaclet|ackage|acletDirectoryAdd|acletDirectoryRemove|acletInformation|acletObjectQ|acletUpdate|ageHeight|alettesMenuSettings|aneBox|aneBoxOptions|aneSelectorBox|aneSelectorBoxOptions|anelBox|anelBoxOptions|aperWidth|arameter|arameterVariables|arentConnect|arentForm|arentList|arenthesize|artialD|asteAutoQuoteCharacters|ausedTime|eriodicInterpolation|erpendicular|ickMode|ickedElements|ivoting|lotRangeClipPlanesStyle|oint3DBox|oint3DBoxOptions|ointBox|ointBoxOptions|olygon3DBox|olygon3DBoxOptions|olygonBox|olygonBoxOptions|olygonHoleScale|olygonScale|olyhedronBox|olyhedronBoxOptions|olynomialForm|olynomials|opupMenuBox|opupMenuBoxOptions|ostScript|recedence|redictionRoot|referencesSettings|revious|rimaryPlaceholder|rintForm|rismBox|rismBoxOptions|rivateFrontEndOptions|robabilityPr|rocessStateDomain|rocessTimeDomain|rogressIndicatorBox|rogressIndicatorBoxOptions|romptForm|yramidBox|yramidBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`R(?:adioButtonBox|adioButtonBoxOptions|andomSeed|angeSpecification|aster3DBox|aster3DBoxOptions|asterBox|asterBoxOptions|ationalFunctions|awArray|awMedium|ebuildPacletData|ectangleBox|ecurringDigitsForm|eferenceMarkerStyle|eferenceMarkers|einstall|emoved|epeatedString|esourceAcquire|esourceSubmissionObject|eturnCreatesNewCell|eturnEntersInput|eturnInputFormPacket|otationBox|otationBoxOptions|oundImplies|owBackgrounds|owHeights|uleCondition|uleForm)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`S(?:aveAutoDelete|caledMousePosition|cheduledTaskInformationData|criptForm|criptRules|ectionGrouping|electWithContents|election|electionCell|electionCellCreateCell|electionCellDefaultStyle|electionCellParentStyle|electionPlaceholder|elfLoops|erviceResponse|etOptionsPacket|etSecuredAuthenticationKey|etbacks|etterBox|etterBoxOptions|howAutoConvert|howCodeAssist|howControls|howGroupOpenCloseIcon|howInvisibleCharacters|howPredictiveInterface|howSyntaxStyles|hrinkWrapBoundingBox|ingleEvaluation|ingleLetterStyle|lider2DBox|lider2DBoxOptions|ocket|olveDelayed|oundAndGraphics|pace|paceForm|panningCharacters|phereBox|phereBoxOptions|tartupSound|tringBreak|tringByteCount|tripStyleOnPaste|trokeForm|tructuredArrayHeadQ|tyleKeyMapping|tyleNames|urfaceAppearance|yntax|ystemException|ystemGet|ystemInformationData|ystemStub|ystemTest)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`T(?:ab|abViewBox|abViewBoxOptions|ableViewBox|ableViewBoxAlignment|ableViewBoxBackground|ableViewBoxHeaders|ableViewBoxItemSize|ableViewBoxItemStyle|ableViewBoxOptions|agBoxNote|agStyle|emplateEvaluate|emplateSlotSequence|emplateUnevaluated|emplateVerbatim|emporaryVariable|ensorQ|etrahedronBox|etrahedronBoxOptions|ext3DBox|ext3DBoxOptions|extBand|extBoundingBox|extBox|extForm|extLine|extParagraph|hisLink|itleGrouping|oColor|oggle|oggleFalse|ogglerBox|ogglerBoxOptions|ooBig|ooltipBox|ooltipBoxOptions|otalHeight|raceAction|raceInternal|raceLevel|rackCellChangeTimes|raditionalNotation|raditionalOrder|ransparentColor|rapEnterKey|rapSelection|ubeBSplineCurveBox|ubeBSplineCurveBoxOptions|ubeBezierCurveBox|ubeBezierCurveBoxOptions|ubeBox|ubeBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`U(?:ntrackedVariables|p|seGraphicsRange|serDefinedWavelet|sing)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`V(?:2Get|alueBox|alueBoxOptions|alueForm|aluesData|ectorGlyphData|erbose|ertical|erticalForm|iewPointSelectorSettings|iewPort|irtualGroupData|isibleCell)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`W(?:aitUntil|ebPageMetaInformation|holeCellGroupOpener|indowPersistentStyles|indowSelected|indowWidth|olframAlphaDate|olframAlphaQuantity|olframAlphaResult|olframCloudSettings)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`\\\\$(?:ActivationGroupID|ActivationUserRegistered|AddOnsDirectory|BoxForms|CloudConnection|CloudVersionNumber|CloudWolframEngineVersionNumber|ConditionHold|DefaultMailbox|DefaultPath|FinancialDataSource|GeoEntityTypes|GeoLocationPrecision|HTMLExportRules|HTTPRequest|LaunchDirectory|LicenseProcesses|LicenseSubprocesses|LicenseType|LinkSupported|LoadedFiles|MaxLicenseProcesses|MaxLicenseSubprocesses|MinorReleaseNumber|NetworkLicense|Off|OutputForms|PatchLevelID|PermissionsGroupBase|PipeSupported|PreferencesDirectory|PrintForms|PrintLiteral|RegisteredDeviceClasses|RegisteredUserName|SecuredAuthenticationKeyTokens|SetParentLink|SoundDisplay|SuppressInputFormHeads|SystemMemory|TraceOff|TraceOn|TracePattern|TracePostAction|TracePreAction|UserAgentLanguages|UserAgentMachine|UserAgentName|UserAgentOperatingSystem|UserAgentVersion|UserName)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"System`A(?:ctiveClassification|ctiveClassificationObject|ctivePrediction|ctivePredictionObject|ddToSearchIndex|ggregatedEntityClass|ggregationLayer|ngleBisector|nimatedImage|nimationVideo|nomalyDetector|ppendLayer|pplication|pplyReaction|round|roundReplace|rrayReduce|sk|skAppend|skConfirm|skDisplay|skFunction|skState|skTemplateDisplay|skedQ|skedValue|ssessmentFunction|ssessmentResultObject|ssumeDeterministic|stroAngularSeparation|stroBackground|stroCenter|stroDistance|stroGraphics|stroGridLines|stroGridLinesStyle|stroPosition|stroProjection|stroRange|stroRangePadding|stroReferenceFrame|stroStyling|stroZoomLevel|tom|tomCoordinates|tomCount|tomDiagramCoordinates|tomLabelStyle|tomLabels|tomList|ttachCell|ttentionLayer|udioAnnotate|udioAnnotationLookup|udioIdentify|udioInstanceQ|udioPause|udioPlay|udioRecord|udioStop|udioStreams??|udioTrackApply|udioTrackSelection|utocomplete|utocompletionFunction|xiomaticTheory|xisLabel|xisObject|xisStyle)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`B(?:asicRecurrentLayer|atchNormalizationLayer|atchSize|ayesianMaximization|ayesianMaximizationObject|ayesianMinimization|ayesianMinimizationObject|esagL|innedVariogramList|inomialPointProcess|ioSequence|ioSequenceBackTranslateList|ioSequenceComplement|ioSequenceInstances|ioSequenceModify|ioSequencePlot|ioSequenceQ|ioSequenceReverseComplement|ioSequenceTranscribe|ioSequenceTranslate|itRate|lockDiagonalMatrix|lockLowerTriangularMatrix|lockUpperTriangularMatrix|lockchainAddressData|lockchainBase|lockchainBlockData|lockchainContractValue|lockchainData|lockchainGet|lockchainKeyEncode|lockchainPut|lockchainTokenData|lockchainTransaction|lockchainTransactionData|lockchainTransactionSign|lockchainTransactionSubmit|ond|ondCount|ondLabelStyle|ondLabels|ondList|ondQ|uildCompiledComponent)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`C(?:TCLossLayer|achePersistence|anvas|ast|ategoricalDistribution|atenateLayer|auchyPointProcess|hannelBase|hannelBrokerAction|hannelHistoryLength|hannelListen|hannelListeners??|hannelObject|hannelReceiverFunction|hannelSend|hannelSubscribers|haracterNormalize|hemicalConvert|hemicalFormula|hemicalInstance|hemicalReaction|loudExpressions??|loudRenderingMethod|ombinatorB|ombinatorC|ombinatorI|ombinatorK|ombinatorS|ombinatorW|ombinatorY|ombinedEntityClass|ompiledCodeFunction|ompiledComponent|ompiledExpressionDeclaration|ompiledLayer|ompilerCallback|ompilerEnvironment|ompilerEnvironmentAppendTo|ompilerEnvironmentObject|ompilerOptions|omplementedEntityClass|omputeUncertainty|onfirmQuiet|onformationMethod|onnectSystemModelComponents|onnectSystemModelController|onnectedMoleculeComponents|onnectedMoleculeQ|onnectionSettings|ontaining|ontentDetectorFunction|ontentFieldOptions|ontentLocationFunction|ontentObject|ontrastiveLossLayer|onvolutionLayer|reateChannel|reateCloudExpression|reateCompilerEnvironment|reateDataStructure|reateDataSystemModel|reateLicenseEntitlement|reateSearchIndex|reateSystemModel|reateTypeInstance|rossEntropyLossLayer|urrentNotebookImage|urrentScreenImage|urryApplied)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`D(?:SolveChangeVariables|ataStructureQ??|atabaseConnect|atabaseDisconnect|atabaseReference|atabinSubmit|ateInterval|eclareCompiledComponent|econvolutionLayer|ecryptFile|eleteChannel|eleteCloudExpression|eleteElements|eleteSearchIndex|erivedKey|iggleGatesPointProcess|iggleGrattonPointProcess|igitalSignature|isableFormatting|ocumentWeightingRules|otLayer|ownValuesFunction|ropoutLayer|ynamicImage)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`E(?:choTiming|lementwiseLayer|mbeddedSQLEntityClass|mbeddedSQLExpression|mbeddingLayer|mptySpaceF|ncryptFile|ntityFunction|ntityStore|stimatedPointProcess|stimatedVariogramModel|valuationEnvironment|valuationPrivileges|xpirationDate|xpressionTree|xtendedEntityClass|xternalEvaluate|xternalFunction|xternalIdentifier|xternalObject|xternalSessionObject|xternalSessions|xternalStorageBase|xternalStorageDownload|xternalStorageGet|xternalStorageObject|xternalStoragePut|xternalStorageUpload|xternalValue|xtractLayer)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`F(?:aceRecognize|eatureDistance|eatureExtract|eatureExtraction|eatureExtractor|eatureExtractorFunction|ileConvert|ileFormatProperties|ileNameToFormatList|ileSystemTree|ilteredEntityClass|indChannels|indEquationalProof|indExternalEvaluators|indGeometricConjectures|indImageText|indIsomers|indMoleculeSubstructure|indPointProcessParameters|indSystemModelEquilibrium|indTextualAnswer|lattenLayer|orAllType|ormControl|orwardCloudCredentials|oxHReduce|rameListVideo|romRawPointer|unctionCompile|unctionCompileExport|unctionCompileExportByteArray|unctionCompileExportLibrary|unctionCompileExportString|unctionDeclaration|unctionLayer|unctionPoles)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`G(?:alleryView|atedRecurrentLayer|enerateDerivedKey|enerateDigitalSignature|enerateFileSignature|enerateSecuredAuthenticationKey|eneratedAssetFormat|eneratedAssetLocation|eoGraphValuePlot|eoOrientationData|eometricAssertion|eometricScene|eometricStep|eometricStylingRules|eometricTest|ibbsPointProcess|raphTree|ridVideo)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`H(?:andlerFunctions|andlerFunctionsKeys|ardcorePointProcess|istogramPointDensity)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`I(?:gnoreIsotopes|gnoreStereochemistry|mageAugmentationLayer|mageBoundingBoxes|mageCases|mageContainsQ|mageContents|mageGraphics|magePosition|magePyramid|magePyramidApply|mageStitch|mportedObject|ncludeAromaticBonds|ncludeHydrogens|ncludeRelatedTables|nertEvaluate|nertExpression|nfiniteFuture|nfinitePast|nhomogeneousPoissonPointProcess|nitialEvaluationHistory|nitializationObjects??|nitializationValue|nitialize|nputPorts|ntegrateChangeVariables|nterfaceSwitched|ntersectedEntityClass|nverseImagePyramid)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`Kernel(?:Configura|Func)tion(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`L(?:earningRateMultipliers|ibraryFunctionDeclaration|icenseEntitlementObject|icenseEntitlements|icensingSettings|inearLayer|iteralType|oadCompiledComponent|ocalResponseNormalizationLayer|ongShortTermMemoryLayer|ossFunction)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`M(?:IMETypeToFormatList|ailExecute|ailFolder|ailItem|ailSearch|ailServerConnect|ailServerConnection|aternPointProcess|axDisplayedChildren|axTrainingRounds|axWordGap|eanAbsoluteLossLayer|eanAround|eanPointDensity|eanSquaredLossLayer|ergingFunction|idpoint|issingValuePattern|issingValueSynthesis|olecule|oleculeAlign|oleculeContainsQ|oleculeDraw|oleculeFreeQ|oleculeGraph|oleculeMatchQ|oleculeMaximumCommonSubstructure|oleculeModify|oleculeName|oleculePattern|oleculePlot|oleculePlot3D|oleculeProperty|oleculeQ|oleculeRecognize|oleculeSubstructureCount|oleculeValue)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`N(?:BodySimulation|BodySimulationData|earestNeighborG|estTree|etAppend|etArray|etArrayLayer|etBidirectionalOperator|etChain|etDecoder|etDelete|etDrop|etEncoder|etEvaluationMode|etExternalObject|etExtract|etFlatten|etFoldOperator|etGANOperator|etGraph|etInitialize|etInsert|etInsertSharedArrays|etJoin|etMapOperator|etMapThreadOperator|etMeasurements|etModel|etNestOperator|etPairEmbeddingOperator|etPort|etPortGradient|etPrepend|etRename|etReplace|etReplacePart|etStateObject|etTake|etTrain|etTrainResultsObject|etUnfold|etworkPacketCapture|etworkPacketRecording|etworkPacketTrace|eymanScottPointProcess|ominalScale|ormalizationLayer|umericArrayQ??|umericArrayType)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`O(?:peratorApplied|rderingLayer|rdinalScale|utputPorts|verlayVideo)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`P(?:acletSymbol|addingLayer|agination|airCorrelationG|arametricRampLayer|arentEdgeLabel|arentEdgeLabelFunction|arentEdgeLabelStyle|arentEdgeShapeFunction|arentEdgeStyle|arentEdgeStyleFunction|artLayer|artProtection|atternFilling|atternReaction|enttinenPointProcess|erpendicularBisector|ersistenceLocation|ersistenceTime|ersistentObjects??|ersistentSymbol|itchRecognize|laceholderLayer|laybackSettings|ointCountDistribution|ointDensity|ointDensityFunction|ointProcessEstimator|ointProcessFitTest|ointProcessParameterAssumptions|ointProcessParameterQ|ointStatisticFunction|ointValuePlot|oissonPointProcess|oolingLayer|rependLayer|roofObject|ublisherID)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`Question(?:Generator|Interface|Object|Selector)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`R(?:andomArrayLayer|andomInstance|andomPointConfiguration|andomTree|eactionBalance|eactionBalancedQ|ecalibrationFunction|egisterExternalEvaluator|elationalDatabase|emoteAuthorizationCaching|emoteBatchJobAbort|emoteBatchJobObject|emoteBatchJobs|emoteBatchMapSubmit|emoteBatchSubmissionEnvironment|emoteBatchSubmit|emoteConnect|emoteConnectionObject|emoteEvaluate|emoteFile|emoteInputFiles|emoteProviderSettings|emoteRun|emoteRunProcess|emovalConditions|emoveAudioStream|emoveChannelListener|emoveChannelSubscribers|emoveVideoStream|eplicateLayer|eshapeLayer|esizeLayer|esourceFunction|esourceRegister|esourceRemove|esourceSubmit|esourceSystemBase|esourceSystemPath|esourceUpdate|esourceVersion|everseApplied|ipleyK|ipleyRassonRegion|ootTree|ulesTree)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`S(?:ameTestProperties|ampledEntityClass|earchAdjustment|earchIndexObject|earchIndices|earchQueryString|earchResultObject|ecuredAuthenticationKeys??|ecurityCertificate|equenceIndicesLayer|equenceLastLayer|equenceMostLayer|equencePredict|equencePredictorFunction|equenceRestLayer|equenceReverseLayer|erviceRequest|erviceSubmit|etFileFormatProperties|etSystemModel|lideShowVideo|moothPointDensity|nippet|nippetsVideo|nubPolyhedron|oftmaxLayer|olidBoundaryLoadValue|olidDisplacementCondition|olidFixedCondition|olidMechanicsPDEComponent|olidMechanicsStrain|olidMechanicsStress|ortedEntityClass|ourceLink|patialBinnedPointData|patialBoundaryCorrection|patialEstimate|patialEstimatorFunction|patialJ|patialNoiseLevel|patialObservationRegionQ|patialPointData|patialPointSelect|patialRandomnessTest|patialTransformationLayer|patialTrendFunction|peakerMatchQ|peechCases|peechInterpreter|peechRecognize|plice|tartExternalSession|tartWebSession|tereochemistryElements|traussHardcorePointProcess|traussPointProcess|ubsetCases|ubsetCount|ubsetPosition|ubsetReplace|ubtitleTrackSelection|ummationLayer|ymmetricDifference|ynthesizeMissingValues|ystemCredential|ystemCredentialData|ystemCredentialKeys??|ystemCredentialStoreObject|ystemInstall|ystemModel|ystemModelExamples|ystemModelLinearize|ystemModelMeasurements|ystemModelParametricSimulate|ystemModelPlot|ystemModelReliability|ystemModelSimulate|ystemModelSimulateSensitivity|ystemModelSimulationData|ystemModeler|ystemModels)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`T(?:ableView|argetDevice|argetSystem|ernaryListPlot|ernaryPlotCorners|extCases|extContents|extElement|extPosition|extSearch|extSearchReport|extStructure|homasPointProcess|hreaded|hreadingLayer|ickDirection|ickLabelOrientation|ickLabelPositioning|ickLabels|ickLengths|ickPositions|oRawPointer|otalLayer|ourVideo|rainImageContentDetector|rainTextContentDetector|rainingProgressCheckpointing|rainingProgressFunction|rainingProgressMeasurements|rainingProgressReporting|rainingStoppingCriterion|rainingUpdateSchedule|ransposeLayer|ree|reeCases|reeChildren|reeCount|reeData|reeDelete|reeDepth|reeElementCoordinates|reeElementLabel|reeElementLabelFunction|reeElementLabelStyle|reeElementShape|reeElementShapeFunction|reeElementSize|reeElementSizeFunction|reeElementStyle|reeElementStyleFunction|reeExpression|reeExtract|reeFold|reeInsert|reeLayout|reeLeafCount|reeLeafQ|reeLeaves|reeLevel|reeMap|reeMapAt|reeOutline|reePosition|reeQ|reeReplacePart|reeRules|reeScan|reeSelect|reeSize|reeTraversalOrder|riangleCenter|riangleConstruct|riangleMeasurement|ypeDeclaration|ypeEvaluate|ypeOf|ypeSpecifier|yped)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`U(?:RLDownloadSubmit|nconstrainedParameters|nionedEntityClass|niqueElements|nitVectorLayer|nlabeledTree|nmanageObject|nregisterExternalEvaluator|pdateSearchIndex|seEmbeddedLibrary)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`V(?:alenceErrorHandling|alenceFilling|aluePreprocessingFunction|andermondeMatrix|arianceGammaPointProcess|ariogramFunction|ariogramModel|ectorAround|erifyDerivedKey|erifyDigitalSignature|erifyFileSignature|erifyInterpretation|ideo|ideoCapture|ideoCombine|ideoDelete|ideoExtractFrames|ideoFrameList|ideoFrameMap|ideoGenerator|ideoInsert|ideoIntervals|ideoJoin|ideoMap|ideoMapList|ideoMapTimeSeries|ideoPadding|ideoPause|ideoPlay|ideoQ|ideoRecord|ideoReplace|ideoScreenCapture|ideoSplit|ideoStop|ideoStreams??|ideoTimeStretch|ideoTrackSelection|ideoTranscode|ideoTransparency|ideoTrim)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`W(?:ebAudioSearch|ebColumn|ebElementObject|ebExecute|ebImage|ebImageSearch|ebItem|ebRow|ebSearch|ebSessionObject|ebSessions|ebWindowObject|ikidataData|ikidataSearch|ikipediaSearch|ithCleanup|ithLock)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`Zoom(?:Center|Factor)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`\\\\$(?:AllowExternalChannelFunctions|AudioDecoders|AudioEncoders|BlockchainBase|ChannelBase|CompilerEnvironment|CookieStore|CryptographicEllipticCurveNames|CurrentWebSession|DataStructures|DefaultNetworkInterface|DefaultProxyRules|DefaultRemoteBatchSubmissionEnvironment|DefaultRemoteKernel|DefaultSystemCredentialStore|ExternalIdentifierTypes|ExternalStorageBase|GeneratedAssetLocation|IncomingMailSettings|Initialization|InitializationContexts|MaxDisplayedChildren|NetworkInterfaces|NoValue|PersistenceBase|PersistencePath|PreInitialization|PublisherID|ResourceSystemBase|ResourceSystemPath|SSHAuthentication|ServiceCreditsAvailable|SourceLink|SubtitleDecoders|SubtitleEncoders|SystemCredentialStore|TargetSystems|TestFileName|VideoDecoders|VideoEncoders|VoiceStyles)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"System`E(?:cho|xit)(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"System`In(?:|String)(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"System`Out(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"System`Print(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"System`Quit(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"System`\\\\$(?:HistoryLength|Line|Post|Pre|PrePrint|PreRead|SyntaxHandler)(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"System`[$[:alpha:]][$[:alnum:]]*(?![$`[:alnum:]])","name":"invalid.illegal.system.wolfram"},{"match":"[$[:alpha:]][$[:alnum:]]*(?:`[$[:alpha:]][$[:alnum:]]*)+(?=\\\\s*(\\\\[(?!\\\\s*\\\\[)|@(?!@)))","name":"variable.function.wolfram"},{"match":"[$[:alpha:]][$[:alnum:]]*(?:`[$[:alpha:]][$[:alnum:]]*)+","name":"symbol.unrecognized.wolfram"},{"match":"[$[:alpha:]][$[:alnum:]]*`","name":"invalid.illegal.wolfram"},{"match":"(?:`[$[:alpha:]][$[:alnum:]]*)+(?=\\\\s*(\\\\[(?!\\\\s*\\\\[)|@(?!@)))","name":"variable.function.wolfram"},{"match":"(?:`[$[:alpha:]][$[:alnum:]]*)+","name":"symbol.unrecognized.wolfram"},{"match":"`","name":"invalid.illegal.wolfram"},{"match":"A(?:ASTriangle|PIFunction|RCHProcess|RIMAProcess|RMAProcess|RProcess|SATriangle|belianGroup|bort|bortKernels|bortProtect|bs|bsArg|bsArgPlot|bsoluteCorrelation|bsoluteCorrelationFunction|bsoluteCurrentValue|bsoluteDashing|bsoluteFileName|bsoluteOptions|bsolutePointSize|bsoluteThickness|bsoluteTime|bsoluteTiming|ccountingForm|ccumulate|ccuracy|cousticAbsorbingValue|cousticImpedanceValue|cousticNormalVelocityValue|cousticPDEComponent|cousticPressureCondition|cousticRadiationValue|cousticSoundHardValue|cousticSoundSoftCondition|ctionMenu|ctivate|cyclicGraphQ|ddSides|ddTo|ddUsers|djacencyGraph|djacencyList|djacencyMatrix|djacentMeshCells|djugate|djustTimeSeriesForecast|djustmentBox|dministrativeDivisionData|ffineHalfSpace|ffineSpace|ffineStateSpaceModel|ffineTransform|irPressureData|irSoundAttenuation|irTemperatureData|ircraftData|irportData|iryAi|iryAiPrime|iryAiZero|iryBi|iryBiPrime|iryBiZero|lgebraicIntegerQ|lgebraicNumber|lgebraicNumberDenominator|lgebraicNumberNorm|lgebraicNumberPolynomial|lgebraicNumberTrace|lgebraicUnitQ|llTrue|lphaChannel|lphabet|lphabeticOrder|lphabeticSort|lternatingFactorial|lternatingGroup|lternatives|mbientLight|mbiguityList|natomyData|natomyPlot3D|natomyStyling|nd|ndersonDarlingTest|ngerJ|ngleBracket|nglePath|nglePath3D|ngleVector|ngularGauge|nimate|nimator|nnotate|nnotation|nnotationDelete|nnotationKeys|nnotationValue|nnuity|nnuityDue|nnulus|nomalyDetection|nomalyDetectorFunction|ntihermitian|ntihermitianMatrixQ|ntisymmetric|ntisymmetricMatrixQ|ntonyms|nyOrder|nySubset|nyTrue|part|partSquareFree|ppellF1|ppend|ppendTo|pply|pplySides|pplyTo|rcCosh??|rcCoth??|rcCsch??|rcCurvature|rcLength|rcSech??|rcSin|rcSinDistribution|rcSinh|rcTanh??|rea|rg|rgMax|rgMin|rgumentsOptions|rithmeticGeometricMean|rray|rrayComponents|rrayDepth|rrayFilter|rrayFlatten|rrayMesh|rrayPad|rrayPlot|rrayPlot3D|rrayQ|rrayResample|rrayReshape|rrayRules|rrays|rrow|rrowheads|ssert|ssociateTo|ssociation|ssociationMap|ssociationQ|ssociationThread|ssuming|symptotic|symptoticDSolveValue|symptoticEqual|symptoticEquivalent|symptoticExpectation|symptoticGreater|symptoticGreaterEqual|symptoticIntegrate|symptoticLess|symptoticLessEqual|symptoticOutputTracker|symptoticProbability|symptoticProduct|symptoticRSolveValue|symptoticSolve|symptoticSum|tomQ|ttributes|udio|udioAmplify|udioBlockMap|udioCapture|udioChannelCombine|udioChannelMix|udioChannelSeparate|udioChannels|udioData|udioDelay|udioDelete|udioDistance|udioFade|udioFrequencyShift|udioGenerator|udioInsert|udioIntervals|udioJoin|udioLength|udioLocalMeasurements|udioLoudness|udioMeasurements|udioNormalize|udioOverlay|udioPad|udioPan|udioPartition|udioPitchShift|udioPlot|udioQ|udioReplace|udioResample|udioReverb|udioReverse|udioSampleRate|udioSpectralMap|udioSpectralTransformation|udioSplit|udioTimeStretch|udioTrim|udioType|ugmentedPolyhedron|ugmentedSymmetricPolynomial|uthenticationDialog|utoRefreshed|utoSubmitting|utocorrelationTest)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"B(?:SplineBasis|SplineCurve|SplineFunction|SplineSurface|abyMonsterGroupB|ackslash|all|and|andpassFilter|andstopFilter|arChart|arChart3D|arLegend|arabasiAlbertGraphDistribution|arcodeImage|arcodeRecognize|aringhausHenzeTest|arlowProschanImportance|arnesG|artlettHannWindow|artlettWindow|aseDecode|aseEncode|aseForm|atesDistribution|attleLemarieWavelet|ecause|eckmannDistribution|eep|egin|eginDialogPacket|eginPackage|ellB|ellY|enfordDistribution|eniniDistribution|enktanderGibratDistribution|enktanderWeibullDistribution|ernoulliB|ernoulliDistribution|ernoulliGraphDistribution|ernoulliProcess|ernsteinBasis|esselFilterModel|esselI|esselJ|esselJZero|esselK|esselY|esselYZero|eta|etaBinomialDistribution|etaDistribution|etaNegativeBinomialDistribution|etaPrimeDistribution|etaRegularized|etween|etweennessCentrality|eveledPolyhedron|ezierCurve|ezierFunction|ilateralFilter|ilateralLaplaceTransform|ilateralZTransform|inCounts|inLists|inarize|inaryDeserialize|inaryDistance|inaryImageQ|inaryRead|inaryReadList|inarySerialize|inaryWrite|inomial|inomialDistribution|inomialProcess|inormalDistribution|iorthogonalSplineWavelet|ipartiteGraphQ|iquadraticFilterModel|irnbaumImportance|irnbaumSaundersDistribution|itAnd|itClear|itGet|itLength|itNot|itOr|itSet|itShiftLeft|itShiftRight|itXor|iweightLocation|iweightMidvariance|lackmanHarrisWindow|lackmanNuttallWindow|lackmanWindow|lank|lankNullSequence|lankSequence|lend|lock|lockMap|lockRandom|lomqvistBeta|lomqvistBetaTest|lur|lurring|odePlot|ohmanWindow|oole|ooleanConsecutiveFunction|ooleanConvert|ooleanCountingFunction|ooleanFunction|ooleanGraph|ooleanMaxterms|ooleanMinimize|ooleanMinterms|ooleanQ|ooleanRegion|ooleanTable|ooleanVariables|orderDimensions|orelTannerDistribution|ottomHatTransform|oundaryDiscretizeGraphics|oundaryDiscretizeRegion|oundaryMesh|oundaryMeshRegionQ??|oundedRegionQ|oundingRegion|oxData|oxMatrix|oxObject|oxWhiskerChart|racketingBar|rayCurtisDistance|readthFirstScan|reak|ridgeData|rightnessEqualize|roadcastStationData|rownForsytheTest|rownianBridgeProcess|ubbleChart|ubbleChart3D|uckyballGraph|uildingData|ulletGauge|usinessDayQ|utterflyGraph|utterworthFilterModel|utton|uttonBar|uttonBox|uttonNotebook|yteArray|yteArrayFormatQ??|yteArrayQ|yteArrayToString|yteCount)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"C(?:|DF|DFDeploy|DFWavelet|Form|MYKColor|SGRegionQ??|SGRegionTree|alendarConvert|alendarData|allPacket|allout|anberraDistance|ancel|ancelButton|andlestickChart|anonicalGraph|anonicalName|anonicalWarpingCorrespondence|anonicalWarpingDistance|anonicalizePolygon|anonicalizePolyhedron|anonicalizeRegion|antorMesh|antorStaircase|ap|apForm|apitalDifferentialD|apitalize|apsuleShape|aputoD|arlemanLinearize|arlsonRC|arlsonRD|arlsonRE|arlsonRF|arlsonRG|arlsonRJ|arlsonRK|arlsonRM|armichaelLambda|aseSensitive|ases|ashflow|asoratian|atalanNumber|atch|atenate|auchyDistribution|auchyMatrix|auchyWindow|ayleyGraph|eiling|ell|ellGroup|ellGroupData|ellObject|ellPrint|ells|ellularAutomaton|ensoredDistribution|ensoring|enterArray|enterDot|enteredInterval|entralFeature|entralMoment|entralMomentGeneratingFunction|epstrogram|epstrogramArray|epstrumArray|hampernowneNumber|hanVeseBinarize|haracterCounts|haracterName|haracterRange|haracteristicFunction|haracteristicPolynomial|haracters|hebyshev1FilterModel|hebyshev2FilterModel|hebyshevT|hebyshevU|heck|heckAbort|heckArguments|heckbox|heckboxBar|hemicalData|hessboardDistance|hiDistribution|hiSquareDistribution|hineseRemainder|hoiceButtons|hoiceDialog|holeskyDecomposition|hop|hromaticPolynomial|hromaticityPlot|hromaticityPlot3D|ircle|ircleDot|ircleMinus|irclePlus|irclePoints|ircleThrough|ircleTimes|irculantGraph|ircularArcThrough|ircularOrthogonalMatrixDistribution|ircularQuaternionMatrixDistribution|ircularRealMatrixDistribution|ircularSymplecticMatrixDistribution|ircularUnitaryMatrixDistribution|ircumsphere|ityData|lassifierFunction|lassifierMeasurements|lassifierMeasurementsObject|lassify|lear|learAll|learAttributes|learCookies|learPermissions|learSystemCache|lebschGordan|lickPane|lickToCopy|lip|lock|lockGauge|lose|loseKernels|losenessCentrality|losing|loudAccountData|loudConnect|loudDeploy|loudDirectory|loudDisconnect|loudEvaluate|loudExport|loudFunction|loudGet|loudImport|loudLoggingData|loudObjects??|loudPublish|loudPut|loudSave|loudShare|loudSubmit|loudSymbol|loudUnshare|lusterClassify|lusteringComponents|lusteringMeasurements|lusteringTree|oefficient|oefficientArrays|oefficientList|oefficientRules|oifletWavelet|ollect|ollinearPoints|olon|olorBalance|olorCombine|olorConvert|olorData|olorDataFunction|olorDetect|olorDistance|olorNegate|olorProfileData|olorQ|olorQuantize|olorReplace|olorSeparate|olorSetter|olorSlider|olorToneMapping|olorize|olorsNear|olumn|ometData|ommonName|ommonUnits|ommonest|ommonestFilter|ommunityGraphPlot|ompanyData|ompatibleUnitQ|ompile|ompiledFunction|omplement|ompleteGraphQ??|ompleteIntegral|ompleteKaryTree|omplex|omplexArrayPlot|omplexContourPlot|omplexExpand|omplexListPlot|omplexPlot|omplexPlot3D|omplexRegionPlot|omplexStreamPlot|omplexVectorPlot|omponentMeasurements|omposeList|omposeSeries|ompositeQ|omposition|ompoundElement|ompoundExpression|ompoundPoissonDistribution|ompoundPoissonProcess|ompoundRenewalProcess|ompress|oncaveHullMesh|ondition|onditionalExpression|onditioned|one|onfirm|onfirmAssert|onfirmBy|onfirmMatch|onformAudio|onformImages|ongruent|onicGradientFilling|onicHullRegion|onicOptimization|onjugate|onjugateTranspose|onjunction|onnectLibraryCallbackFunction|onnectedComponents|onnectedGraphComponents|onnectedGraphQ|onnectedMeshComponents|onnesWindow|onoverTest|onservativeConvectionPDETerm|onstantArray|onstantImage|onstantRegionQ|onstellationData|onstruct|ontainsAll|ontainsAny|ontainsExactly|ontainsNone|ontainsOnly|ontext|ontextToFileName|ontexts|ontinue|ontinuedFractionK??|ontinuousMarkovProcess|ontinuousTask|ontinuousTimeModelQ|ontinuousWaveletData|ontinuousWaveletTransform|ontourDetect|ontourPlot|ontourPlot3D|ontraharmonicMean|ontrol|ontrolActive|ontrollabilityGramian|ontrollabilityMatrix|ontrollableDecomposition|ontrollableModelQ|ontrollerInformation|ontrollerManipulate|ontrollerState|onvectionPDETerm|onvergents|onvexHullMesh|onvexHullRegion|onvexOptimization|onvexPolygonQ|onvexPolyhedronQ|onvexRegionQ|onvolve|onwayGroupCo1|onwayGroupCo2|onwayGroupCo3|oordinateBoundingBox|oordinateBoundingBoxArray|oordinateBounds|oordinateBoundsArray|oordinateChartData|oordinateTransform|oordinateTransformData|oplanarPoints|oprimeQ|oproduct|opulaDistribution|opyDatabin|opyDirectory|opyFile|opyToClipboard|oreNilpotentDecomposition|ornerFilter|orrelation|orrelationDistance|orrelationFunction|orrelationTest|os|osIntegral|osh|oshIntegral|osineDistance|osineWindow|oth??|oulombF|oulombG|oulombH1|oulombH2|ount|ountDistinct|ountDistinctBy|ountRoots|ountryData|ounts|ountsBy|ovariance|ovarianceFunction|oxIngersollRossProcess|oxModel|oxModelFit|oxianDistribution|ramerVonMisesTest|reateArchive|reateDatabin|reateDialog|reateDirectory|reateDocument|reateFile|reateManagedLibraryExpression|reateNotebook|reatePacletArchive|reatePalette|reatePermissionsGroup|reateUUID|reateWindow|riticalSection|riticalityFailureImportance|riticalitySuccessImportance|ross|rossMatrix|rossingCount|rossingDetect|rossingPolygon|sch??|ube|ubeRoot|uboid|umulant|umulantGeneratingFunction|umulativeFeatureImpactPlot|up|upCap|url|urrencyConvert|urrentDate|urrentImage|urrentValue|urvatureFlowFilter|ycleGraph|ycleIndexPolynomial|ycles|yclicGroup|yclotomic|ylinder|ylindricalDecomposition|ylindricalDecompositionFunction)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"D(?:|Eigensystem|Eigenvalues|GaussianWavelet|MSList|MSString|Solve|SolveValue|agumDistribution|amData|amerauLevenshteinDistance|arker|ashing|ataDistribution|atabin|atabinAdd|atabinUpload|atabins|ataset|ateBounds|ateDifference|ateHistogram|ateList|ateListLogPlot|ateListPlot|ateListStepPlot|ateObjectQ??|ateOverlapsQ|atePattern|atePlus|ateRange|ateScale|ateSelect|ateString|ateValue|ateWithinQ|ated|atedUnit|aubechiesWavelet|avisDistribution|awsonF|ayCount|ayHemisphere|ayMatchQ|ayName|ayNightTerminator|ayPlus|ayRange|ayRound|aylightQ|eBruijnGraph|eBruijnSequence|ecapitalize|ecimalForm|eclarePackage|ecompose|ecrement|ecrypt|edekindEta|eepSpaceProbeData|efault|efaultButton|efaultValues|efer|efineInputStreamMethod|efineOutputStreamMethod|efineResourceFunction|efinition|egreeCentrality|egreeGraphDistribution|el|elaunayMesh|elayed|elete|eleteAdjacentDuplicates|eleteAnomalies|eleteBorderComponents|eleteCases|eleteDirectory|eleteDuplicates|eleteDuplicatesBy|eleteFile|eleteMissing|eleteObject|eletePermissionsKey|eleteSmallComponents|eleteStopwords|elimitedSequence|endrogram|enominator|ensityHistogram|ensityPlot|ensityPlot3D|eploy|epth|epthFirstScan|erivative|erivativeFilter|erivativePDETerm|esignMatrix|et|eviceClose|eviceConfigure|eviceExecute|eviceExecuteAsynchronous|eviceObject|eviceOpen|eviceRead|eviceReadBuffer|eviceReadLatest|eviceReadList|eviceReadTimeSeries|eviceStreams|eviceWrite|eviceWriteBuffer|evices|iagonal|iagonalMatrixQ??|iagonalizableMatrixQ|ialog|ialogInput|ialogNotebook|ialogReturn|iamond|iamondMatrix|iceDissimilarity|ictionaryLookup|ictionaryWordQ|ifferenceDelta|ifferenceQuotient|ifferenceRoot|ifferenceRootReduce|ifferences|ifferentialD|ifferentialRoot|ifferentialRootReduce|ifferentiatorFilter|iffusionPDETerm|igitCount|igitQ|ihedralAngle|ihedralGroup|ilation|imensionReduce|imensionReducerFunction|imensionReduction|imensionalCombinations|imensionalMeshComponents|imensions|iracComb|iracDelta|irectedEdge|irectedGraphQ??|irectedInfinity|irectionalLight|irective|irectory|irectoryName|irectoryQ|irectoryStack|irichletBeta|irichletCharacter|irichletCondition|irichletConvolve|irichletDistribution|irichletEta|irichletL|irichletLambda|irichletTransform|irichletWindow|iscreteAsymptotic|iscreteChirpZTransform|iscreteConvolve|iscreteDelta|iscreteHadamardTransform|iscreteIndicator|iscreteInputOutputModel|iscreteLQEstimatorGains|iscreteLQRegulatorGains|iscreteLimit|iscreteLyapunovSolve|iscreteMarkovProcess|iscreteMaxLimit|iscreteMinLimit|iscretePlot|iscretePlot3D|iscreteRatio|iscreteRiccatiSolve|iscreteShift|iscreteTimeModelQ|iscreteUniformDistribution|iscreteWaveletData|iscreteWaveletPacketTransform|iscreteWaveletTransform|iscretizeGraphics|iscretizeRegion|iscriminant|isjointQ|isjunction|isk|iskMatrix|iskSegment|ispatch|isplayEndPacket|isplayForm|isplayPacket|istanceMatrix|istanceTransform|istribute|istributeDefinitions|istributed|istributionChart|istributionFitTest|istributionParameterAssumptions|istributionParameterQ|iv|ivide|ivideBy|ivideSides|ivisible|ivisorSigma|ivisorSum|ivisors|o|ocumentGenerator|ocumentGeneratorInformation|ocumentGenerators|ocumentNotebook|odecahedron|ominantColors|ominatorTreeGraph|ominatorVertexList|ot|otEqual|oubleBracketingBar|oubleDownArrow|oubleLeftArrow|oubleLeftRightArrow|oubleLeftTee|oubleLongLeftArrow|oubleLongLeftRightArrow|oubleLongRightArrow|oubleRightArrow|oubleRightTee|oubleUpArrow|oubleUpDownArrow|oubleVerticalBar|ownArrow|ownArrowBar|ownArrowUpArrow|ownLeftRightVector|ownLeftTeeVector|ownLeftVector|ownLeftVectorBar|ownRightTeeVector|ownRightVector|ownRightVectorBar|ownTee|ownTeeArrow|ownValues|ownsample|razinInverse|rop|ropShadowing|t|ualPlanarGraph|ualPolyhedron|ualSystemsModel|umpSave|uplicateFreeQ|uration|ynamic|ynamicGeoGraphics|ynamicModule|ynamicSetting|ynamicWrapper)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"E(?:arthImpactData|arthquakeData|ccentricityCentrality|choEvaluation|choFunction|choLabel|dgeAdd|dgeBetweennessCentrality|dgeChromaticNumber|dgeConnectivity|dgeContract|dgeCount|dgeCoverQ|dgeCycleMatrix|dgeDelete|dgeDetect|dgeForm|dgeIndex|dgeList|dgeQ|dgeRules|dgeTaggedGraphQ??|dgeTags|dgeTransitiveGraphQ|dgeWeightedGraphQ|ditDistance|ffectiveInterest|igensystem|igenvalues|igenvectorCentrality|igenvectors|lement|lementData|liminate|llipsoid|llipticE|llipticExp|llipticExpPrime|llipticF|llipticFilterModel|llipticK|llipticLog|llipticNomeQ|llipticPi|llipticTheta|llipticThetaPrime|mbedCode|mbeddedHTML|mbeddedService|mitSound|mpiricalDistribution|mptyGraphQ|mptyRegion|nclose|ncode|ncrypt|ncryptedObject|nd|ndDialogPacket|ndPackage|ngineeringForm|nterExpressionPacket|nterTextPacket|ntity|ntityClass|ntityClassList|ntityCopies|ntityGroup|ntityInstance|ntityList|ntityPrefetch|ntityProperties|ntityProperty|ntityPropertyClass|ntityRegister|ntityStores|ntityTypeName|ntityUnregister|ntityValue|ntropy|ntropyFilter|nvironment|qual|qualTilde|qualTo|quilibrium|quirippleFilterKernel|quivalent|rfc??|rfi|rlangB|rlangC|rlangDistribution|rosion|rrorBox|stimatedBackground|stimatedDistribution|stimatedPointNormals|stimatedProcess|stimatorGains|stimatorRegulator|uclideanDistance|ulerAngles|ulerCharacteristic|ulerE|ulerMatrix|ulerPhi|ulerianGraphQ|valuate|valuatePacket|valuationBox|valuationCell|valuationData|valuationNotebook|valuationObject|venQ|ventData|ventHandler|ventSeries|xactBlackmanWindow|xactNumberQ|xampleData|xcept|xists|xoplanetData|xp|xpGammaDistribution|xpIntegralEi??|xpToTrig|xpand|xpandAll|xpandDenominator|xpandFileName|xpandNumerator|xpectation|xponent|xponentialDistribution|xponentialGeneratingFunction|xponentialMovingAverage|xponentialPowerDistribution|xport|xportByteArray|xportForm|xportString|xpressionCell|xpressionGraph|xtendedGCD|xternalBundle|xtract|xtractArchive|xtractPacletArchive|xtremeValueDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"F(?:ARIMAProcess|RatioDistribution|aceAlign|aceForm|acialFeatures|actor|actorInteger|actorList|actorSquareFree|actorSquareFreeList|actorTerms|actorTermsList|actorial2??|actorialMoment|actorialMomentGeneratingFunction|actorialPower|ailure|ailureDistribution|ailureQ|areySequence|eatureImpactPlot|eatureNearest|eatureSpacePlot|eatureSpacePlot3D|eatureValueDependencyPlot|eatureValueImpactPlot|eedbackLinearize|etalGrowthData|ibonacci|ibonorial|ile|ileBaseName|ileByteCount|ileDate|ileExistsQ|ileExtension|ileFormatQ??|ileHash|ileNameDepth|ileNameDrop|ileNameJoin|ileNameSetter|ileNameSplit|ileNameTake|ileNames|ilePrint|ileSize|ileSystemMap|ileSystemScan|ileTemplate|ileTemplateApply|ileType|illedCurve|illedTorus|illingTransform|ilterRules|inancialBond|inancialData|inancialDerivative|inancialIndicator|ind|indAnomalies|indArgMax|indArgMin|indClique|indClusters|indCookies|indCurvePath|indCycle|indDevices|indDistribution|indDistributionParameters|indDivisions|indEdgeColoring|indEdgeCover|indEdgeCut|indEdgeIndependentPaths|indEulerianCycle|indFaces|indFile|indFit|indFormula|indFundamentalCycles|indGeneratingFunction|indGeoLocation|indGeometricTransform|indGraphCommunities|indGraphIsomorphism|indGraphPartition|indHamiltonianCycle|indHamiltonianPath|indHiddenMarkovStates|indIndependentEdgeSet|indIndependentVertexSet|indInstance|indIntegerNullVector|indIsomorphicSubgraph|indKClan|indKClique|indKClub|indKPlex|indLibrary|indLinearRecurrence|indList|indMatchingColor|indMaxValue|indMaximum|indMaximumCut|indMaximumFlow|indMeshDefects|indMinValue|indMinimum|indMinimumCostFlow|indMinimumCut|indPath|indPeaks|indPermutation|indPlanarColoring|indPostmanTour|indProcessParameters|indRegionTransform|indRepeat|indRoot|indSequenceFunction|indShortestPath|indShortestTour|indSpanningTree|indSubgraphIsomorphism|indThreshold|indTransientRepeat|indVertexColoring|indVertexCover|indVertexCut|indVertexIndependentPaths|inishDynamic|initeAbelianGroupCount|initeGroupCount|initeGroupData|irst|irstCase|irstPassageTimeDistribution|irstPosition|ischerGroupFi22|ischerGroupFi23|ischerGroupFi24Prime|isherHypergeometricDistribution|isherRatioTest|isherZDistribution|it|ittedModel|ixedOrder|ixedPoint|ixedPointList|latShading|latTopWindow|latten|lattenAt|lightData|lipView|loor|lowPolynomial|old|oldList|oldPair|oldPairList|oldWhile|oldWhileList|or|orAll|ormBox|ormFunction|ormObject|ormPage|ormat|ormulaData|ormulaLookup|ortranForm|ourier|ourierCoefficient|ourierCosCoefficient|ourierCosSeries|ourierCosTransform|ourierDCT|ourierDCTFilter|ourierDCTMatrix|ourierDST|ourierDSTMatrix|ourierMatrix|ourierSequenceTransform|ourierSeries|ourierSinCoefficient|ourierSinSeries|ourierSinTransform|ourierTransform|ourierTrigSeries|oxH|ractionBox|ractionalBrownianMotionProcess|ractionalD|ractionalGaussianNoiseProcess|ractionalPart|rameBox|ramed|rechetDistribution|reeQ|renetSerretSystem|requencySamplingFilterKernel|resnelC|resnelF|resnelG|resnelS|robeniusNumber|robeniusSolve|romAbsoluteTime|romCharacterCode|romCoefficientRules|romContinuedFraction|romDMS|romDateString|romDigits|romEntity|romJulianDate|romLetterNumber|romPolarCoordinates|romRomanNumeral|romSphericalCoordinates|romUnixTime|rontEndExecute|rontEndToken|rontEndTokenExecute|ullDefinition|ullForm|ullGraphics|ullInformationOutputRegulator|ullRegion|ullSimplify|unction|unctionAnalytic|unctionBijective|unctionContinuous|unctionConvexity|unctionDiscontinuities|unctionDomain|unctionExpand|unctionInjective|unctionInterpolation|unctionMeromorphic|unctionMonotonicity|unctionPeriod|unctionRange|unctionSign|unctionSingularities|unctionSurjective|ussellVeselyImportance)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"G(?:ARCHProcess|CD|aborFilter|aborMatrix|aborWavelet|ainMargins|ainPhaseMargins|alaxyData|amma|ammaDistribution|ammaRegularized|ather|atherBy|aussianFilter|aussianMatrix|aussianOrthogonalMatrixDistribution|aussianSymplecticMatrixDistribution|aussianUnitaryMatrixDistribution|aussianWindow|egenbauerC|eneralizedLinearModelFit|enerateAsymmetricKeyPair|enerateDocument|enerateHTTPResponse|enerateSymmetricKey|eneratingFunction|enericCylindricalDecomposition|enomeData|enomeLookup|eoAntipode|eoArea|eoBoundary|eoBoundingBox|eoBounds|eoBoundsRegion|eoBoundsRegionBoundary|eoBubbleChart|eoCircle|eoContourPlot|eoDensityPlot|eoDestination|eoDirection|eoDisk|eoDisplacement|eoDistance|eoDistanceList|eoElevationData|eoEntities|eoGraphPlot|eoGraphics|eoGridDirectionDifference|eoGridPosition|eoGridUnitArea|eoGridUnitDistance|eoGridVector|eoGroup|eoHemisphere|eoHemisphereBoundary|eoHistogram|eoIdentify|eoImage|eoLength|eoListPlot|eoMarker|eoNearest|eoPath|eoPolygon|eoPosition|eoPositionENU|eoPositionXYZ|eoProjectionData|eoRegionValuePlot|eoSmoothHistogram|eoStreamPlot|eoStyling|eoVariant|eoVector|eoVectorENU|eoVectorPlot|eoVectorXYZ|eoVisibleRegion|eoVisibleRegionBoundary|eoWithinQ|eodesicClosing|eodesicDilation|eodesicErosion|eodesicOpening|eodesicPolyhedron|eodesyData|eogravityModelData|eologicalPeriodData|eomagneticModelData|eometricBrownianMotionProcess|eometricDistribution|eometricMean|eometricMeanFilter|eometricOptimization|eometricTransformation|estureHandler|et|etEnvironment|lobalClusteringCoefficient|low|ompertzMakehamDistribution|oochShading|oodmanKruskalGamma|oodmanKruskalGammaTest|oto|ouraudShading|rad|radientFilter|radientFittedMesh|radientOrientationFilter|rammarApply|rammarRules|rammarToken|raph|raph3D|raphAssortativity|raphAutomorphismGroup|raphCenter|raphComplement|raphData|raphDensity|raphDiameter|raphDifference|raphDisjointUnion|raphDistance|raphDistanceMatrix|raphEmbedding|raphHub|raphIntersection|raphJoin|raphLinkEfficiency|raphPeriphery|raphPlot|raphPlot3D|raphPower|raphProduct|raphPropertyDistribution|raphQ|raphRadius|raphReciprocity|raphSum|raphUnion|raphics|raphics3D|raphicsColumn|raphicsComplex|raphicsGrid|raphicsGroup|raphicsRow|rayLevel|reater|reaterEqual|reaterEqualLess|reaterEqualThan|reaterFullEqual|reaterGreater|reaterLess|reaterSlantEqual|reaterThan|reaterTilde|reenFunction|rid|ridBox|ridGraph|roebnerBasis|roupBy|roupCentralizer|roupElementFromWord|roupElementPosition|roupElementQ|roupElementToWord|roupElements|roupGenerators|roupMultiplicationTable|roupOrbits|roupOrder|roupSetwiseStabilizer|roupStabilizer|roupStabilizerChain|roupings|rowCutComponents|udermannian|uidedFilter|umbelDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"H(?:ITSCentrality|TTPErrorResponse|TTPRedirect|TTPRequest|TTPRequestData|TTPResponse|aarWavelet|adamardMatrix|alfLine|alfNormalDistribution|alfPlane|alfSpace|alftoneShading|amiltonianGraphQ|ammingDistance|ammingWindow|ankelH1|ankelH2|ankelMatrix|ankelTransform|annPoissonWindow|annWindow|aradaNortonGroupHN|araryGraph|armonicMean|armonicMeanFilter|armonicNumber|ash|atchFilling|atchShading|aversine|azardFunction|ead|eatFluxValue|eatInsulationValue|eatOutflowValue|eatRadiationValue|eatSymmetryValue|eatTemperatureCondition|eatTransferPDEComponent|eatTransferValue|eavisideLambda|eavisidePi|eavisideTheta|eldGroupHe|elmholtzPDEComponent|ermiteDecomposition|ermiteH|ermitian|ermitianMatrixQ|essenbergDecomposition|eunB|eunBPrime|eunC|eunCPrime|eunD|eunDPrime|eunG|eunGPrime|eunT|eunTPrime|exahedron|iddenMarkovProcess|ighlightGraph|ighlightImage|ighlightMesh|ighlighted|ighpassFilter|igmanSimsGroupHS|ilbertCurve|ilbertFilter|ilbertMatrix|istogram|istogram3D|istogramDistribution|istogramList|istogramTransform|istogramTransformInterpolation|istoricalPeriodData|itMissTransform|jorthDistribution|odgeDual|oeffdingD|oeffdingDTest|old|oldComplete|oldForm|oldPattern|orizontalGauge|ornerForm|ostLookup|otellingTSquareDistribution|oytDistribution|ue|umanGrowthData|umpDownHump|umpEqual|urwitzLerchPhi|urwitzZeta|yperbolicDistribution|ypercubeGraph|yperexponentialDistribution|yperfactorial|ypergeometric0F1|ypergeometric0F1Regularized|ypergeometric1F1|ypergeometric1F1Regularized|ypergeometric2F1|ypergeometric2F1Regularized|ypergeometricDistribution|ypergeometricPFQ|ypergeometricPFQRegularized|ypergeometricU|yperlink|yperplane|ypoexponentialDistribution|ypothesisTestData)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"I(?:PAddress|conData|conize|cosahedron|dentity|dentityMatrix|f|fCompiled|gnoringInactive|m|mage|mage3D|mage3DProjection|mage3DSlices|mageAccumulate|mageAdd|mageAdjust|mageAlign|mageApply|mageApplyIndexed|mageAspectRatio|mageAssemble|mageCapture|mageChannels|mageClip|mageCollage|mageColorSpace|mageCompose|mageConvolve|mageCooccurrence|mageCorners|mageCorrelate|mageCorrespondingPoints|mageCrop|mageData|mageDeconvolve|mageDemosaic|mageDifference|mageDimensions|mageDisplacements|mageDistance|mageEffect|mageExposureCombine|mageFeatureTrack|mageFileApply|mageFileFilter|mageFileScan|mageFilter|mageFocusCombine|mageForestingComponents|mageForwardTransformation|mageHistogram|mageIdentify|mageInstanceQ|mageKeypoints|mageLevels|mageLines|mageMarker|mageMeasurements|mageMesh|mageMultiply|magePad|magePartition|magePeriodogram|magePerspectiveTransformation|mageQ|mageRecolor|mageReflect|mageResize|mageRestyle|mageRotate|mageSaliencyFilter|mageScaled|mageScan|mageSubtract|mageTake|mageTransformation|mageTrim|mageType|mageValue|mageValuePositions|mageVectorscopePlot|mageWaveformPlot|mplicitD|mplicitRegion|mplies|mport|mportByteArray|mportString|mprovementImportance|nactivate|nactive|ncidenceGraph|ncidenceList|ncidenceMatrix|ncrement|ndefiniteMatrixQ|ndependenceTest|ndependentEdgeSetQ|ndependentPhysicalQuantity|ndependentUnit|ndependentUnitDimension|ndependentVertexSetQ|ndexEdgeTaggedGraph|ndexGraph|ndexed|nexactNumberQ|nfiniteLine|nfiniteLineThrough|nfinitePlane|nfix|nflationAdjust|nformation|nhomogeneousPoissonProcess|nner|nnerPolygon|nnerPolyhedron|npaint|nput|nputField|nputForm|nputNamePacket|nputNotebook|nputPacket|nputStream|nputString|nputStringPacket|nsert|nsertLinebreaks|nset|nsphere|nstall|nstallService|ntegerDigits|ntegerExponent|ntegerLength|ntegerName|ntegerPart|ntegerPartitions|ntegerQ|ntegerReverse|ntegerString|ntegrate|nteractiveTradingChart|nternallyBalancedDecomposition|nterpolatingFunction|nterpolatingPolynomial|nterpolation|nterpretation|nterpretationBox|nterpreter|nterquartileRange|nterrupt|ntersectingQ|ntersection|nterval|ntervalIntersection|ntervalMemberQ|ntervalSlider|ntervalUnion|nverse|nverseBetaRegularized|nverseBilateralLaplaceTransform|nverseBilateralZTransform|nverseCDF|nverseChiSquareDistribution|nverseContinuousWaveletTransform|nverseDistanceTransform|nverseEllipticNomeQ|nverseErfc??|nverseFourier|nverseFourierCosTransform|nverseFourierSequenceTransform|nverseFourierSinTransform|nverseFourierTransform|nverseFunction|nverseGammaDistribution|nverseGammaRegularized|nverseGaussianDistribution|nverseGudermannian|nverseHankelTransform|nverseHaversine|nverseJacobiCD|nverseJacobiCN|nverseJacobiCS|nverseJacobiDC|nverseJacobiDN|nverseJacobiDS|nverseJacobiNC|nverseJacobiND|nverseJacobiNS|nverseJacobiSC|nverseJacobiSD|nverseJacobiSN|nverseLaplaceTransform|nverseMellinTransform|nversePermutation|nverseRadon|nverseRadonTransform|nverseSeries|nverseShortTimeFourier|nverseSpectrogram|nverseSurvivalFunction|nverseTransformedRegion|nverseWaveletTransform|nverseWeierstrassP|nverseWishartMatrixDistribution|nverseZTransform|nvisible|rreduciblePolynomialQ|slandData|solatingInterval|somorphicGraphQ|somorphicSubgraphQ|sotopeData|tem|toProcess)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"J(?:accardDissimilarity|acobiAmplitude|acobiCD|acobiCN|acobiCS|acobiDC|acobiDN|acobiDS|acobiEpsilon|acobiNC|acobiND|acobiNS|acobiP|acobiSC|acobiSD|acobiSN|acobiSymbol|acobiZN|acobiZeta|ankoGroupJ1|ankoGroupJ2|ankoGroupJ3|ankoGroupJ4|arqueBeraALMTest|ohnsonDistribution|oin|oinAcross|oinForm|oinedCurve|ordanDecomposition|ordanModelDecomposition|uliaSetBoettcher|uliaSetIterationCount|uliaSetPlot|uliaSetPoints|ulianDate)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"K(?:CoreComponents|Distribution|EdgeConnectedComponents|EdgeConnectedGraphQ|VertexConnectedComponents|VertexConnectedGraphQ|agiChart|aiserBesselWindow|aiserWindow|almanEstimator|almanFilter|arhunenLoeveDecomposition|aryTree|atzCentrality|elvinBei|elvinBer|elvinKei|elvinKer|endallTau|endallTauTest|ernelMixtureDistribution|ernelObject|ernels|ey|eyComplement|eyDrop|eyDropFrom|eyExistsQ|eyFreeQ|eyIntersection|eyMap|eyMemberQ|eySelect|eySort|eySortBy|eyTake|eyUnion|eyValueMap|eyValuePattern|eys|illProcess|irchhoffGraph|irchhoffMatrix|leinInvariantJ|napsackSolve|nightTourGraph|notData|nownUnitQ|ochCurve|olmogorovSmirnovTest|roneckerDelta|roneckerModelDecomposition|roneckerProduct|roneckerSymbol|uiperTest|umaraswamyDistribution|urtosis|uwaharaFilter)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"L(?:ABColor|CHColor|CM|QEstimatorGains|QGRegulator|QOutputRegulatorGains|QRegulatorGains|UDecomposition|UVColor|abel|abeled|aguerreL|akeData|ambdaComponents|ameC|ameCPrime|ameEigenvalueA|ameEigenvalueB|ameS|ameSPrime|aminaData|anczosWindow|andauDistribution|anguageData|anguageIdentify|aplaceDistribution|aplaceTransform|aplacian|aplacianFilter|aplacianGaussianFilter|aplacianPDETerm|ast|atitude|atitudeLongitude|atticeData|atticeReduce|aunchKernels|ayeredGraphPlot|ayeredGraphPlot3D|eafCount|eapVariant|eapYearQ|earnDistribution|earnedDistribution|eastSquares|eastSquaresFilterKernel|eftArrow|eftArrowBar|eftArrowRightArrow|eftDownTeeVector|eftDownVector|eftDownVectorBar|eftRightArrow|eftRightVector|eftTee|eftTeeArrow|eftTeeVector|eftTriangle|eftTriangleBar|eftTriangleEqual|eftUpDownVector|eftUpTeeVector|eftUpVector|eftUpVectorBar|eftVector|eftVectorBar|egended|egendreP|egendreQ|ength|engthWhile|erchPhi|ess|essEqual|essEqualGreater|essEqualThan|essFullEqual|essGreater|essLess|essSlantEqual|essThan|essTilde|etterCounts|etterNumber|etterQ|evel|eveneTest|eviCivitaTensor|evyDistribution|exicographicOrder|exicographicSort|ibraryDataType|ibraryFunction|ibraryFunctionError|ibraryFunctionInformation|ibraryFunctionLoad|ibraryFunctionUnload|ibraryLoad|ibraryUnload|iftingFilterData|iftingWaveletTransform|ighter|ikelihood|imit|indleyDistribution|ine|ineBreakChart|ineGraph|ineIntegralConvolutionPlot|ineLegend|inearFractionalOptimization|inearFractionalTransform|inearGradientFilling|inearGradientImage|inearModelFit|inearOptimization|inearRecurrence|inearSolve|inearSolveFunction|inearizingTransformationData|inkActivate|inkClose|inkConnect|inkCreate|inkInterrupt|inkLaunch|inkObject|inkPatterns|inkRankCentrality|inkRead|inkReadyQ|inkWrite|inks|iouvilleLambda|ist|istAnimate|istContourPlot|istContourPlot3D|istConvolve|istCorrelate|istCurvePathPlot|istDeconvolve|istDensityPlot|istDensityPlot3D|istFourierSequenceTransform|istInterpolation|istLineIntegralConvolutionPlot|istLinePlot|istLinePlot3D|istLogLinearPlot|istLogLogPlot|istLogPlot|istPicker|istPickerBox|istPlay|istPlot|istPlot3D|istPointPlot3D|istPolarPlot|istQ|istSliceContourPlot3D|istSliceDensityPlot3D|istSliceVectorPlot3D|istStepPlot|istStreamDensityPlot|istStreamPlot|istStreamPlot3D|istSurfacePlot3D|istVectorDensityPlot|istVectorDisplacementPlot|istVectorDisplacementPlot3D|istVectorPlot|istVectorPlot3D|istZTransform|ocalAdaptiveBinarize|ocalCache|ocalClusteringCoefficient|ocalEvaluate|ocalObjects??|ocalSubmit|ocalSymbol|ocalTime|ocalTimeZone|ocationEquivalenceTest|ocationTest|ocator|ocatorPane|og|og10|og2|ogBarnesG|ogGamma|ogGammaDistribution|ogIntegral|ogLikelihood|ogLinearPlot|ogLogPlot|ogLogisticDistribution|ogMultinormalDistribution|ogNormalDistribution|ogPlot|ogRankTest|ogSeriesDistribution|ogicalExpand|ogisticDistribution|ogisticSigmoid|ogitModelFit|ongLeftArrow|ongLeftRightArrow|ongRightArrow|ongest|ongestCommonSequence|ongestCommonSequencePositions|ongestCommonSubsequence|ongestCommonSubsequencePositions|ongestOrderedSequence|ongitude|ookup|oopFreeGraphQ|owerCaseQ|owerLeftArrow|owerRightArrow|owerTriangularMatrixQ??|owerTriangularize|owpassFilter|ucasL|uccioSamiComponents|unarEclipse|yapunovSolve|yonsGroupLy)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"M(?:AProcess|achineNumberQ|agnify|ailReceiverFunction|ajority|akeBoxes|akeExpression|anagedLibraryExpressionID|anagedLibraryExpressionQ|andelbrotSetBoettcher|andelbrotSetDistance|andelbrotSetIterationCount|andelbrotSetMemberQ|andelbrotSetPlot|angoldtLambda|anhattanDistance|anipulate|anipulator|annWhitneyTest|annedSpaceMissionData|antissaExponent|ap|apAll|apApply|apAt|apIndexed|apThread|archenkoPasturDistribution|arcumQ|ardiaCombinedTest|ardiaKurtosisTest|ardiaSkewnessTest|arginalDistribution|arkovProcessProperties|assConcentrationCondition|assFluxValue|assImpermeableBoundaryValue|assOutflowValue|assSymmetryValue|assTransferValue|assTransportPDEComponent|atchQ|atchingDissimilarity|aterialShading|athMLForm|athematicalFunctionData|athieuC|athieuCPrime|athieuCharacteristicA|athieuCharacteristicB|athieuCharacteristicExponent|athieuGroupM11|athieuGroupM12|athieuGroupM22|athieuGroupM23|athieuGroupM24|athieuS|athieuSPrime|atrices|atrixExp|atrixForm|atrixFunction|atrixLog|atrixNormalDistribution|atrixPlot|atrixPower|atrixPropertyDistribution|atrixQ|atrixRank|atrixTDistribution|ax|axDate|axDetect|axFilter|axLimit|axMemoryUsed|axStableDistribution|axValue|aximalBy|aximize|axwellDistribution|cLaughlinGroupMcL|ean|eanClusteringCoefficient|eanDegreeConnectivity|eanDeviation|eanFilter|eanGraphDistance|eanNeighborDegree|eanShift|eanShiftFilter|edian|edianDeviation|edianFilter|edicalTestData|eijerG|eijerGReduce|eixnerDistribution|ellinConvolve|ellinTransform|emberQ|emoryAvailable|emoryConstrained|emoryInUse|engerMesh|enuPacket|enuView|erge|ersennePrimeExponentQ??|eshCellCount|eshCellIndex|eshCells|eshConnectivityGraph|eshCoordinates|eshPrimitives|eshRegionQ??|essage|essageDialog|essageList|essageName|essagePacket|essages|eteorShowerData|exicanHatWavelet|eyerWavelet|in|inDate|inDetect|inFilter|inLimit|inMax|inStableDistribution|inValue|ineralData|inimalBy|inimalPolynomial|inimalStateSpaceModel|inimize|inimumTimeIncrement|inkowskiQuestionMark|inorPlanetData|inors|inus|inusPlus|issingQ??|ittagLefflerE|ixedFractionParts|ixedGraphQ|ixedMagnitude|ixedRadix|ixedRadixQuantity|ixedUnit|ixtureDistribution|od|odelPredictiveController|odularInverse|odularLambda|odule|oebiusMu|oment|omentConvert|omentEvaluate|omentGeneratingFunction|omentOfInertia|onitor|onomialList|onsterGroupM|oonPhase|oonPosition|orletWavelet|orphologicalBinarize|orphologicalBranchPoints|orphologicalComponents|orphologicalEulerNumber|orphologicalGraph|orphologicalPerimeter|orphologicalTransform|ortalityData|ost|ountainData|ouseAnnotation|ouseAppearance|ousePosition|ouseover|ovieData|ovingAverage|ovingMap|ovingMedian|oyalDistribution|ulticolumn|ultigraphQ|ultinomial|ultinomialDistribution|ultinormalDistribution|ultiplicativeOrder|ultiplySides|ultivariateHypergeometricDistribution|ultivariatePoissonDistribution|ultivariateTDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"N(?:|ArgMax|ArgMin|Cache|CaputoD|DEigensystem|DEigenvalues|DSolve|DSolveValue|Expectation|FractionalD|Integrate|MaxValue|Maximize|MinValue|Minimize|Probability|Product|Roots|Solve|SolveValues|Sum|akagamiDistribution|ameQ|ames|and|earest|earestFunction|earestMeshCells|earestNeighborGraph|earestTo|ebulaData|eedlemanWunschSimilarity|eeds|egative|egativeBinomialDistribution|egativeDefiniteMatrixQ|egativeMultinomialDistribution|egativeSemidefiniteMatrixQ|egativelyOrientedPoints|eighborhoodData|eighborhoodGraph|est|estGraph|estList|estWhile|estWhileList|estedGreaterGreater|estedLessLess|eumannValue|evilleThetaC|evilleThetaD|evilleThetaN|evilleThetaS|extCell|extDate|extPrime|icholsPlot|ightHemisphere|onCommutativeMultiply|onNegative|onPositive|oncentralBetaDistribution|oncentralChiSquareDistribution|oncentralFRatioDistribution|oncentralStudentTDistribution|ondimensionalizationTransform|oneTrue|onlinearModelFit|onlinearStateSpaceModel|onlocalMeansFilter|or|orlundB|orm|ormal|ormalDistribution|ormalMatrixQ|ormalize|ormalizedSquaredEuclideanDistance|ot|otCongruent|otCupCap|otDoubleVerticalBar|otElement|otEqualTilde|otExists|otGreater|otGreaterEqual|otGreaterFullEqual|otGreaterGreater|otGreaterLess|otGreaterSlantEqual|otGreaterTilde|otHumpDownHump|otHumpEqual|otLeftTriangle|otLeftTriangleBar|otLeftTriangleEqual|otLess|otLessEqual|otLessFullEqual|otLessGreater|otLessLess|otLessSlantEqual|otLessTilde|otNestedGreaterGreater|otNestedLessLess|otPrecedes|otPrecedesEqual|otPrecedesSlantEqual|otPrecedesTilde|otReverseElement|otRightTriangle|otRightTriangleBar|otRightTriangleEqual|otSquareSubset|otSquareSubsetEqual|otSquareSuperset|otSquareSupersetEqual|otSubset|otSubsetEqual|otSucceeds|otSucceedsEqual|otSucceedsSlantEqual|otSucceedsTilde|otSuperset|otSupersetEqual|otTilde|otTildeEqual|otTildeFullEqual|otTildeTilde|otVerticalBar|otebook|otebookApply|otebookClose|otebookDelete|otebookDirectory|otebookEvaluate|otebookFileName|otebookFind|otebookGet|otebookImport|otebookInformation|otebookLocate|otebookObject|otebookOpen|otebookPrint|otebookPut|otebookRead|otebookSave|otebookSelection|otebookTemplate|otebookWrite|otebooks|othing|uclearExplosionData|uclearReactorData|ullSpace|umberCompose|umberDecompose|umberDigit|umberExpand|umberFieldClassNumber|umberFieldDiscriminant|umberFieldFundamentalUnits|umberFieldIntegralBasis|umberFieldNormRepresentatives|umberFieldRegulator|umberFieldRootsOfUnity|umberFieldSignature|umberForm|umberLinePlot|umberQ|umerator|umeratorDenominator|umericQ|umericalOrder|umericalSort|uttallWindow|yquistPlot)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"O(?:|NanGroupON|bservabilityGramian|bservabilityMatrix|bservableDecomposition|bservableModelQ|ceanData|ctahedron|ddQ|ff|ffset|n|nce|pacity|penAppend|penRead|penWrite|pener|penerView|pening|perate|ptimumFlowData|ptionValue|ptional|ptionalElement|ptions|ptionsPattern|r|rder|rderDistribution|rderedQ|rdering|rderingBy|rderlessPatternSequence|rnsteinUhlenbeckProcess|rthogonalMatrixQ|rthogonalize|uter|uterPolygon|uterPolyhedron|utputControllabilityMatrix|utputControllableModelQ|utputForm|utputNamePacket|utputResponse|utputStream|verBar|verDot|verHat|verTilde|verVector|verflow|verlay|verscript|verscriptBox|wenT|wnValues)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"P(?:DF|ERTDistribution|IDTune|acletDataRebuild|acletDirectoryLoad|acletDirectoryUnload|acletDisable|acletEnable|acletFind|acletFindRemote|acletInstall|acletInstallSubmit|acletNewerQ|acletObject|acletSiteObject|acletSiteRegister|acletSiteUnregister|acletSiteUpdate|acletSites|acletUninstall|adLeft|adRight|addedForm|adeApproximant|ageRankCentrality|airedBarChart|airedHistogram|airedSmoothHistogram|airedTTest|airedZTest|aletteNotebook|alindromeQ|ane|aneSelector|anel|arabolicCylinderD|arallelArray|arallelAxisPlot|arallelCombine|arallelDo|arallelEvaluate|arallelKernels|arallelMap|arallelNeeds|arallelProduct|arallelSubmit|arallelSum|arallelTable|arallelTry|arallelepiped|arallelize|arallelogram|arameterMixtureDistribution|arametricConvexOptimization|arametricFunction|arametricNDSolve|arametricNDSolveValue|arametricPlot|arametricPlot3D|arametricRegion|arentBox|arentCell|arentDirectory|arentNotebook|aretoDistribution|aretoPickandsDistribution|arkData|art|artOfSpeech|artialCorrelationFunction|articleAcceleratorData|articleData|artition|artitionsP|artitionsQ|arzenWindow|ascalDistribution|aste|asteButton|athGraphQ??|attern|atternSequence|atternTest|aulWavelet|auliMatrix|ause|eakDetect|eanoCurve|earsonChiSquareTest|earsonCorrelationTest|earsonDistribution|ercentForm|erfectNumberQ??|erimeter|eriodicBoundaryCondition|eriodogram|eriodogramArray|ermanent|ermissionsGroup|ermissionsGroupMemberQ|ermissionsGroups|ermissionsKeys??|ermutationCyclesQ??|ermutationGroup|ermutationLength|ermutationListQ??|ermutationMatrix|ermutationMax|ermutationMin|ermutationOrder|ermutationPower|ermutationProduct|ermutationReplace|ermutationSupport|ermutations|ermute|eronaMalikFilter|ersonData|etersenGraph|haseMargins|hongShading|hysicalSystemData|ick|ieChart|ieChart3D|iecewise|iecewiseExpand|illaiTrace|illaiTraceTest|ingTime|ixelValue|ixelValuePositions|laced|laceholder|lanarAngle|lanarFaceList|lanarGraphQ??|lanckRadiationLaw|laneCurveData|lanetData|lanetaryMoonData|lantData|lay|lot|lot3D|luralize|lus|lusMinus|ochhammer|oint|ointFigureChart|ointLegend|ointLight|ointSize|oissonConsulDistribution|oissonDistribution|oissonPDEComponent|oissonProcess|oissonWindow|olarPlot|olyGamma|olyLog|olyaAeppliDistribution|olygon|olygonAngle|olygonCoordinates|olygonDecomposition|olygonalNumber|olyhedron|olyhedronAngle|olyhedronCoordinates|olyhedronData|olyhedronDecomposition|olyhedronGenus|olynomialExpressionQ|olynomialExtendedGCD|olynomialGCD|olynomialLCM|olynomialMod|olynomialQ|olynomialQuotient|olynomialQuotientRemainder|olynomialReduce|olynomialRemainder|olynomialSumOfSquaresList|opupMenu|opupView|opupWindow|osition|ositionIndex|ositionLargest|ositionSmallest|ositive|ositiveDefiniteMatrixQ|ositiveSemidefiniteMatrixQ|ositivelyOrientedPoints|ossibleZeroQ|ostfix|ower|owerDistribution|owerExpand|owerMod|owerModList|owerRange|owerSpectralDensity|owerSymmetricPolynomial|owersRepresentations|reDecrement|reIncrement|recedenceForm|recedes|recedesEqual|recedesSlantEqual|recedesTilde|recision|redict|redictorFunction|redictorMeasurements|redictorMeasurementsObject|reemptProtect|refix|repend|rependTo|reviousCell|reviousDate|riceGraphDistribution|rime|rimeNu|rimeOmega|rimePi|rimePowerQ|rimeQ|rimeZetaP|rimitivePolynomialQ|rimitiveRoot|rimitiveRootList|rincipalComponents|rintTemporary|rintableASCIIQ|rintout3D|rism|rivateKey|robability|robabilityDistribution|robabilityPlot|robabilityScalePlot|robitModelFit|rocessConnection|rocessInformation|rocessObject|rocessParameterAssumptions|rocessParameterQ|rocessStatus|rocesses|roduct|roductDistribution|roductLog|rogressIndicator|rojection|roportion|roportional|rotect|roteinData|runing|seudoInverse|sychrometricPropertyData|ublicKey|ulsarData|ut|utAppend|yramid)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"Q(?:Binomial|Factorial|Gamma|HypergeometricPFQ|Pochhammer|PolyGamma|RDecomposition|nDispersion|uadraticIrrationalQ|uadraticOptimization|uantile|uantilePlot|uantity|uantityArray|uantityDistribution|uantityForm|uantityMagnitude|uantityQ|uantityUnit|uantityVariable|uantityVariableCanonicalUnit|uantityVariableDimensions|uantityVariableIdentifier|uantityVariablePhysicalQuantity|uartileDeviation|uartileSkewness|uartiles|uery|ueueProperties|ueueingNetworkProcess|ueueingProcess|uiet|uietEcho|uotient|uotientRemainder)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"R(?:GBColor|Solve|SolveValue|adialAxisPlot|adialGradientFilling|adialGradientImage|adialityCentrality|adicalBox|adioButton|adioButtonBar|adon|adonTransform|amanujanTauL??|amanujanTauTheta|amanujanTauZ|amp|andomChoice|andomColor|andomComplex|andomDate|andomEntity|andomFunction|andomGeneratorState|andomGeoPosition|andomGraph|andomImage|andomInteger|andomPermutation|andomPoint|andomPolygon|andomPolyhedron|andomPrime|andomReal|andomSample|andomTime|andomVariate|andomWalkProcess|andomWord|ange|angeFilter|ankedMax|ankedMin|arerProbability|aster|aster3D|asterize|ational|ationalExpressionQ|ationalize|atios|awBoxes|awData|ayleighDistribution|e|eIm|eImPlot|eactionPDETerm|ead|eadByteArray|eadLine|eadList|eadString|ealAbs|ealDigits|ealExponent|ealSign|eap|econstructionMesh|ectangle|ectangleChart|ectangleChart3D|ectangularRepeatingElement|ecurrenceFilter|ecurrenceTable|educe|efine|eflectionMatrix|eflectionTransform|efresh|egion|egionBinarize|egionBoundary|egionBounds|egionCentroid|egionCongruent|egionConvert|egionDifference|egionDilation|egionDimension|egionDisjoint|egionDistance|egionDistanceFunction|egionEmbeddingDimension|egionEqual|egionErosion|egionFit|egionImage|egionIntersection|egionMeasure|egionMember|egionMemberFunction|egionMoment|egionNearest|egionNearestFunction|egionPlot|egionPlot3D|egionProduct|egionQ|egionResize|egionSimilar|egionSymmetricDifference|egionUnion|egionWithin|egularExpression|egularPolygon|egularlySampledQ|elationGraph|eleaseHold|eliabilityDistribution|eliefImage|eliefPlot|emove|emoveAlphaChannel|emoveBackground|emoveDiacritics|emoveInputStreamMethod|emoveOutputStreamMethod|emoveUsers|enameDirectory|enameFile|enewalProcess|enkoChart|epairMesh|epeated|epeatedNull|epeatedTiming|epeatingElement|eplace|eplaceAll|eplaceAt|eplaceImageValue|eplaceList|eplacePart|eplacePixelValue|eplaceRepeated|esamplingAlgorithmData|escale|escalingTransform|esetDirectory|esidue|esidueSum|esolve|esourceData|esourceObject|esourceSearch|esponseForm|est|estricted|esultant|eturn|eturnExpressionPacket|eturnPacket|eturnTextPacket|everse|everseBiorthogonalSplineWavelet|everseElement|everseEquilibrium|everseGraph|everseSort|everseSortBy|everseUpEquilibrium|evolutionPlot3D|iccatiSolve|iceDistribution|idgeFilter|iemannR|iemannSiegelTheta|iemannSiegelZ|iemannXi|iffle|ightArrow|ightArrowBar|ightArrowLeftArrow|ightComposition|ightCosetRepresentative|ightDownTeeVector|ightDownVector|ightDownVectorBar|ightTee|ightTeeArrow|ightTeeVector|ightTriangle|ightTriangleBar|ightTriangleEqual|ightUpDownVector|ightUpTeeVector|ightUpVector|ightUpVectorBar|ightVector|ightVectorBar|iskAchievementImportance|iskReductionImportance|obustConvexOptimization|ogersTanimotoDissimilarity|ollPitchYawAngles|ollPitchYawMatrix|omanNumeral|oot|ootApproximant|ootIntervals|ootLocusPlot|ootMeanSquare|ootOfUnityQ|ootReduce|ootSum|oots|otate|otateLeft|otateRight|otationMatrix|otationTransform|ound|ow|owBox|owReduce|udinShapiro|udvalisGroupRu|ule|uleDelayed|ulePlot|un|unProcess|unThrough|ussellRaoDissimilarity)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"S(?:ARIMAProcess|ARMAProcess|ASTriangle|SSTriangle|ameAs|ameQ|ampledSoundFunction|ampledSoundList|atelliteData|atisfiabilityCount|atisfiabilityInstances|atisfiableQ|ave|avitzkyGolayMatrix|awtoothWave|caled??|calingMatrix|calingTransform|can|cheduledTask|churDecomposition|cientificForm|corerGi|corerGiPrime|corerHi|corerHiPrime|ech??|echDistribution|econdOrderConeOptimization|ectorChart|ectorChart3D|eedRandom|elect|electComponents|electFirst|electedCells|electedNotebook|electionCreateCell|electionEvaluate|electionEvaluateCreateCell|electionMove|emanticImport|emanticImportString|emanticInterpretation|emialgebraicComponentInstances|emidefiniteOptimization|endMail|endMessage|equence|equenceAlignment|equenceCases|equenceCount|equenceFold|equenceFoldList|equencePosition|equenceReplace|equenceSplit|eries|eriesCoefficient|eriesData|erviceConnect|erviceDisconnect|erviceExecute|erviceObject|essionSubmit|essionTime|et|etAccuracy|etAlphaChannel|etAttributes|etCloudDirectory|etCookies|etDelayed|etDirectory|etEnvironment|etFileDate|etOptions|etPermissions|etPrecision|etSelectedNotebook|etSharedFunction|etSharedVariable|etStreamPosition|etSystemOptions|etUsers|etter|etterBar|etting|hallow|hannonWavelet|hapiroWilkTest|hare|harpen|hearingMatrix|hearingTransform|hellRegion|henCastanMatrix|hiftRegisterSequence|hiftedGompertzDistribution|hort|hortDownArrow|hortLeftArrow|hortRightArrow|hortTimeFourier|hortTimeFourierData|hortUpArrow|hortest|hortestPathFunction|how|iderealTime|iegelTheta|iegelTukeyTest|ierpinskiCurve|ierpinskiMesh|ign|ignTest|ignature|ignedRankTest|ignedRegionDistance|impleGraphQ??|implePolygonQ|implePolyhedronQ|implex|implify|in|inIntegral|inc|inghMaddalaDistribution|ingularValueDecomposition|ingularValueList|ingularValuePlot|inh|inhIntegral|ixJSymbol|keleton|keletonTransform|kellamDistribution|kewNormalDistribution|kewness|kip|liceContourPlot3D|liceDensityPlot3D|liceDistribution|liceVectorPlot3D|lideView|lider|lider2D|liderBox|lot|lotSequence|mallCircle|mithDecomposition|mithDelayCompensator|mithWatermanSimilarity|moothDensityHistogram|moothHistogram|moothHistogram3D|moothKernelDistribution|nDispersion|ocketConnect|ocketListen|ocketListener|ocketObject|ocketOpen|ocketReadMessage|ocketReadyQ|ocketWaitAll|ocketWaitNext|ockets|okalSneathDissimilarity|olarEclipse|olarSystemFeatureData|olarTime|olidAngle|olidData|olidRegionQ|olve|olveAlways|olveValues|ort|ortBy|ound|oundNote|ourcePDETerm|ow|paceCurveData|pacer|pan|parseArrayQ??|patialGraphDistribution|patialMedian|peak|pearmanRankTest|pearmanRho|peciesData|pectralLineData|pectrogram|pectrogramArray|pecularity|peechSynthesize|pellingCorrectionList|phere|pherePoints|phericalBesselJ|phericalBesselY|phericalHankelH1|phericalHankelH2|phericalHarmonicY|phericalPlot3D|phericalShell|pheroidalEigenvalue|pheroidalJoiningFactor|pheroidalPS|pheroidalPSPrime|pheroidalQS|pheroidalQSPrime|pheroidalRadialFactor|pheroidalS1|pheroidalS1Prime|pheroidalS2|pheroidalS2Prime|plicedDistribution|plit|plitBy|pokenString|potLight|qrt|qrtBox|quare|quareFreeQ|quareIntersection|quareMatrixQ|quareRepeatingElement|quareSubset|quareSubsetEqual|quareSuperset|quareSupersetEqual|quareUnion|quareWave|quaredEuclideanDistance|quaresR|tableDistribution|tack|tackBegin|tackComplete|tackInhibit|tackedDateListPlot|tackedListPlot|tadiumShape|tandardAtmosphereData|tandardDeviation|tandardDeviationFilter|tandardForm|tandardOceanData|tandardize|tandbyDistribution|tar|tarClusterData|tarData|tarGraph|tartProcess|tateFeedbackGains|tateOutputEstimator|tateResponse|tateSpaceModel|tateSpaceTransform|tateTransformationLinearize|tationaryDistribution|tationaryWaveletPacketTransform|tationaryWaveletTransform|tatusArea|tatusCentrality|tieltjesGamma|tippleShading|tirlingS1|tirlingS2|toppingPowerData|tratonovichProcess|treamDensityPlot|treamPlot|treamPlot3D|treamPosition|treams|tringCases|tringContainsQ|tringCount|tringDelete|tringDrop|tringEndsQ|tringExpression|tringExtract|tringForm|tringFormatQ??|tringFreeQ|tringInsert|tringJoin|tringLength|tringMatchQ|tringPadLeft|tringPadRight|tringPart|tringPartition|tringPosition|tringQ|tringRepeat|tringReplace|tringReplaceList|tringReplacePart|tringReverse|tringRiffle|tringRotateLeft|tringRotateRight|tringSkeleton|tringSplit|tringStartsQ|tringTake|tringTakeDrop|tringTemplate|tringToByteArray|tringToStream|tringTrim|tripBoxes|tructuralImportance|truveH|truveL|tudentTDistribution|tyle|tyleBox|tyleData|ubMinus|ubPlus|ubStar|ubValues|ubdivide|ubfactorial|ubgraph|ubresultantPolynomialRemainders|ubresultantPolynomials|ubresultants|ubscript|ubscriptBox|ubsequences|ubset|ubsetEqual|ubsetMap|ubsetQ|ubsets|ubstitutionSystem|ubsuperscript|ubsuperscriptBox|ubtract|ubtractFrom|ubtractSides|ucceeds|ucceedsEqual|ucceedsSlantEqual|ucceedsTilde|uccess|uchThat|um|umConvergence|unPosition|unrise|unset|uperDagger|uperMinus|uperPlus|uperStar|upernovaData|uperscript|uperscriptBox|uperset|upersetEqual|urd|urfaceArea|urfaceData|urvivalDistribution|urvivalFunction|urvivalModel|urvivalModelFit|uzukiDistribution|uzukiGroupSuz|watchLegend|witch|ymbol|ymbolName|ymletWavelet|ymmetric|ymmetricGroup|ymmetricKey|ymmetricMatrixQ|ymmetricPolynomial|ymmetricReduction|ymmetrize|ymmetrizedArray|ymmetrizedArrayRules|ymmetrizedDependentComponents|ymmetrizedIndependentComponents|ymmetrizedReplacePart|ynonyms|yntaxInformation|yntaxLength|yntaxPacket|yntaxQ|ystemDialogInput|ystemInformation|ystemOpen|ystemOptions|ystemProcessData|ystemProcesses|ystemsConnectionsModel|ystemsModelControllerData|ystemsModelDelay|ystemsModelDelayApproximate|ystemsModelDelete|ystemsModelDimensions|ystemsModelExtract|ystemsModelFeedbackConnect|ystemsModelLinearity|ystemsModelMerge|ystemsModelOrder|ystemsModelParallelConnect|ystemsModelSeriesConnect|ystemsModelStateFeedbackConnect|ystemsModelVectorRelativeOrders)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"T(?:Test|abView|able|ableForm|agBox|agSet|agSetDelayed|agUnset|ake|akeDrop|akeLargest|akeLargestBy|akeList|akeSmallest|akeSmallestBy|akeWhile|ally|anh??|askAbort|askExecute|askObject|askRemove|askResume|askSuspend|askWait|asks|autologyQ|eXForm|elegraphProcess|emplateApply|emplateBox|emplateExpression|emplateIf|emplateObject|emplateSequence|emplateSlot|emplateWith|emporalData|ensorContract|ensorDimensions|ensorExpand|ensorProduct|ensorRank|ensorReduce|ensorSymmetry|ensorTranspose|ensorWedge|erminatedEvaluation|estReport|estReportObject|estResultObject|etrahedron|ext|extCell|extData|extGrid|extPacket|extRecognize|extSentences|extString|extTranslation|extWords|exture|herefore|hermodynamicData|hermometerGauge|hickness|hinning|hompsonGroupTh|hread|hreeJSymbol|hreshold|hrough|hrow|hueMorse|humbnail|ideData|ilde|ildeEqual|ildeFullEqual|ildeTilde|imeConstrained|imeObjectQ??|imeRemaining|imeSeries|imeSeriesAggregate|imeSeriesForecast|imeSeriesInsert|imeSeriesInvertibility|imeSeriesMap|imeSeriesMapThread|imeSeriesModel|imeSeriesModelFit|imeSeriesResample|imeSeriesRescale|imeSeriesShift|imeSeriesThread|imeSeriesWindow|imeSystemConvert|imeUsed|imeValue|imeZoneConvert|imeZoneOffset|imelinePlot|imes|imesBy|iming|itsGroupT|oBoxes|oCharacterCode|oContinuousTimeModel|oDiscreteTimeModel|oEntity|oExpression|oInvertibleTimeSeries|oLowerCase|oNumberField|oPolarCoordinates|oRadicals|oRules|oSphericalCoordinates|oString|oUpperCase|oeplitzMatrix|ogether|oggler|ogglerBar|ooltip|oonShading|opHatTransform|opologicalSort|orus|orusGraph|otal|otalVariationFilter|ouchPosition|r|race|raceDialog|racePrint|raceScan|racyWidomDistribution|radingChart|raditionalForm|ransferFunctionCancel|ransferFunctionExpand|ransferFunctionFactor|ransferFunctionModel|ransferFunctionPoles|ransferFunctionTransform|ransferFunctionZeros|ransformationFunction|ransformationMatrix|ransformedDistribution|ransformedField|ransformedProcess|ransformedRegion|ransitiveClosureGraph|ransitiveReductionGraph|ranslate|ranslationTransform|ransliterate|ranspose|ravelDirections|ravelDirectionsData|ravelDistance|ravelDistanceList|ravelTime|reeForm|reeGraphQ??|reePlot|riangle|riangleWave|riangularDistribution|riangulateMesh|rigExpand|rigFactor|rigFactorList|rigReduce|rigToExp|rigger|rimmedMean|rimmedVariance|ropicalStormData|rueQ|runcatedDistribution|runcatedPolyhedron|sallisQExponentialDistribution|sallisQGaussianDistribution|ube|ukeyLambdaDistribution|ukeyWindow|unnelData|uples|uranGraph|uringMachine|uttePolynomial|woWayRule|ypeHint)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"U(?:RL|RLBuild|RLDecode|RLDispatcher|RLDownload|RLEncode|RLExecute|RLExpand|RLParse|RLQueryDecode|RLQueryEncode|RLRead|RLResponseTime|RLShorten|RLSubmit|nateQ|ncompress|nderBar|nderflow|nderoverscript|nderoverscriptBox|nderscript|nderscriptBox|nderseaFeatureData|ndirectedEdge|ndirectedGraphQ??|nequal|nequalTo|nevaluated|niformDistribution|niformGraphDistribution|niformPolyhedron|niformSumDistribution|ninstall|nion|nionPlus|nique|nitBox|nitConvert|nitDimensions|nitRootTest|nitSimplify|nitStep|nitTriangle|nitVector|nitaryMatrixQ|nitize|niverseModelData|niversityData|nixTime|nprotect|nsameQ|nset|nsetShared|ntil|pArrow|pArrowBar|pArrowDownArrow|pDownArrow|pEquilibrium|pSet|pSetDelayed|pTee|pTeeArrow|pTo|pValues|pdate|pperCaseQ|pperLeftArrow|pperRightArrow|pperTriangularMatrixQ??|pperTriangularize|psample|singFrontEnd)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"V(?:alueQ|alues|ariables|ariance|arianceEquivalenceTest|arianceGammaDistribution|arianceTest|ectorAngle|ectorDensityPlot|ectorDisplacementPlot|ectorDisplacementPlot3D|ectorGreater|ectorGreaterEqual|ectorLess|ectorLessEqual|ectorPlot|ectorPlot3D|ectorQ|ectors|ee|erbatim|erificationTest|ertexAdd|ertexChromaticNumber|ertexComponent|ertexConnectivity|ertexContract|ertexCorrelationSimilarity|ertexCosineSimilarity|ertexCount|ertexCoverQ|ertexDegree|ertexDelete|ertexDiceSimilarity|ertexEccentricity|ertexInComponent|ertexInComponentGraph|ertexInDegree|ertexIndex|ertexJaccardSimilarity|ertexList|ertexOutComponent|ertexOutComponentGraph|ertexOutDegree|ertexQ|ertexReplace|ertexTransitiveGraphQ|ertexWeightedGraphQ|erticalBar|erticalGauge|erticalSeparator|erticalSlider|erticalTilde|oiceStyleData|oigtDistribution|olcanoData|olume|onMisesDistribution|oronoiMesh)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"W(?:aitAll|aitNext|akebyDistribution|alleniusHypergeometricDistribution|aringYuleDistribution|arpingCorrespondence|arpingDistance|atershedComponents|atsonUSquareTest|attsStrogatzGraphDistribution|avePDEComponent|aveletBestBasis|aveletFilterCoefficients|aveletImagePlot|aveletListPlot|aveletMapIndexed|aveletMatrixPlot|aveletPhi|aveletPsi|aveletScalogram|aveletThreshold|eakStationarity|eaklyConnectedComponents|eaklyConnectedGraphComponents|eaklyConnectedGraphQ|eatherData|eatherForecastData|eberE|edge|eibullDistribution|eierstrassE1|eierstrassE2|eierstrassE3|eierstrassEta1|eierstrassEta2|eierstrassEta3|eierstrassHalfPeriodW1|eierstrassHalfPeriodW2|eierstrassHalfPeriodW3|eierstrassHalfPeriods|eierstrassInvariantG2|eierstrassInvariantG3|eierstrassInvariants|eierstrassP|eierstrassPPrime|eierstrassSigma|eierstrassZeta|eightedAdjacencyGraph|eightedAdjacencyMatrix|eightedData|eightedGraphQ|elchWindow|heelGraph|henEvent|hich|hile|hiteNoiseProcess|hittakerM|hittakerW|ienerFilter|ienerProcess|ignerD|ignerSemicircleDistribution|ikipediaData|ilksW|ilksWTest|indDirectionData|indSpeedData|indVectorData|indingCount|indingPolygon|insorizedMean|insorizedVariance|ishartMatrixDistribution|ith|olframAlpha|olframLanguageData|ordCloud|ordCounts??|ordData|ordDefinition|ordFrequency|ordFrequencyData|ordList|ordStem|ordTranslation|rite|riteLine|riteString|ronskian)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"X(?:MLElement|MLObject|MLTemplate|YZColor|nor|or)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"YuleDissimilarity(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"Z(?:IPCodeData|Test|Transform|ernikeR|eroSymmetric|eta|etaZero|ipfDistribution)(?![$`[:alnum:]])","name":"support.function.builtin.wolfram"},{"match":"A(?:cceptanceThreshold|ccuracyGoal|ctiveStyle|ddOnHelpPath|djustmentBoxOptions|lignment|lignmentPoint|llowGroupClose|llowInlineCells|llowLooseGrammar|llowReverseGroupClose|llowScriptLevelChange|llowVersionUpdate|llowedCloudExtraParameters|llowedCloudParameterExtensions|llowedDimensions|llowedFrequencyRange|llowedHeads|lternativeHypothesis|ltitudeMethod|mbiguityFunction|natomySkinStyle|nchoredSearch|nimationDirection|nimationRate|nimationRepetitions|nimationRunTime|nimationRunning|nimationTimeIndex|nnotationRules|ntialiasing|ppearance|ppearanceElements|ppearanceRules|spectRatio|ssociationFormat|ssumptions|synchronous|ttachedCell|udioChannelAssignment|udioEncoding|udioInputDevice|udioLabel|udioOutputDevice|uthentication|utoAction|utoCopy|utoDelete|utoGeneratedPackage|utoIndent|utoItalicWords|utoMultiplicationSymbol|utoOpenNotebooks|utoOpenPalettes|utoOperatorRenderings|utoRemove|utoScroll|utoSpacing|utoloadPath|utorunSequencing|xes|xesEdge|xesLabel|xesOrigin|xesStyle)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"B(?:ackground|arOrigin|arSpacing|aseStyle|aselinePosition|inaryFormat|ookmarks|ooleanStrings|oundaryStyle|oxBaselineShift|oxFormFormatTypes|oxFrame|oxMargins|oxRatios|oxStyle|oxed|ubbleScale|ubbleSizes|uttonBoxOptions|uttonData|uttonFunction|uttonMinHeight|uttonSource|yteOrdering)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"C(?:alendarType|alloutMarker|alloutStyle|aptureRunning|aseOrdering|elestialSystem|ellAutoOverwrite|ellBaseline|ellBracketOptions|ellChangeTimes|ellContext|ellDingbat|ellDingbatMargin|ellDynamicExpression|ellEditDuplicate|ellEpilog|ellEvaluationDuplicate|ellEvaluationFunction|ellEventActions|ellFrame|ellFrameColor|ellFrameLabelMargins|ellFrameLabels|ellFrameMargins|ellGrouping|ellGroupingRules|ellHorizontalScrolling|ellID|ellLabel|ellLabelAutoDelete|ellLabelMargins|ellLabelPositioning|ellLabelStyle|ellLabelTemplate|ellMargins|ellOpen|ellProlog|ellSize|ellTags|haracterEncoding|haracterEncodingsPath|hartBaseStyle|hartElementFunction|hartElements|hartLabels|hartLayout|hartLegends|hartStyle|lassPriors|lickToCopyEnabled|lipPlanes|lipPlanesStyle|lipRange|lippingStyle|losingAutoSave|loudBase|loudObjectNameFormat|loudObjectURLType|lusterDissimilarityFunction|odeAssistOptions|olorCoverage|olorFunction|olorFunctionBinning|olorFunctionScaling|olorRules|olorSelectorSettings|olorSpace|olumnAlignments|olumnLines|olumnSpacings|olumnWidths|olumnsEqual|ombinerFunction|ommonDefaultFormatTypes|ommunityBoundaryStyle|ommunityLabels|ommunityRegionStyle|ompilationOptions|ompilationTarget|ompiled|omplexityFunction|ompressionLevel|onfidenceLevel|onfidenceRange|onfidenceTransform|onfigurationPath|onstants|ontentPadding|ontentSelectable|ontentSize|ontinuousAction|ontourLabels|ontourShading|ontourStyle|ontours|ontrolPlacement|ontrolType|ontrollerLinking|ontrollerMethod|ontrollerPath|ontrolsRendering|onversionRules|ookieFunction|oordinatesToolOptions|opyFunction|opyable|ornerNeighbors|ounterAssignments|ounterFunction|ounterIncrements|ounterStyleMenuListing|ovarianceEstimatorFunction|reateCellID|reateIntermediateDirectories|riterionFunction|ubics|urveClosed)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"D(?:ataRange|ataReversed|atasetTheme|ateFormat|ateFunction|ateGranularity|ateReduction|ateTicksFormat|ayCountConvention|efaultDuplicateCellStyle|efaultDuration|efaultElement|efaultFontProperties|efaultFormatType|efaultInlineFormatType|efaultNaturalLanguage|efaultNewCellStyle|efaultNewInlineCellStyle|efaultNotebook|efaultOptions|efaultPrintPrecision|efaultStyleDefinitions|einitialization|eletable|eleteContents|eletionWarning|elimiterAutoMatching|elimiterFlashTime|elimiterMatching|elimiters|eliveryFunction|ependentVariables|eployed|escriptorStateSpace|iacriticalPositioning|ialogProlog|ialogSymbols|igitBlock|irectedEdges|irection|iscreteVariables|ispersionEstimatorFunction|isplayAllSteps|isplayFunction|istanceFunction|istributedContexts|ithering|ividers|ockedCells??|ynamicEvaluationTimeout|ynamicModuleValues|ynamicUpdating)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"E(?:clipseType|dgeCapacity|dgeCost|dgeLabelStyle|dgeLabels|dgeShapeFunction|dgeStyle|dgeValueRange|dgeValueSizes|dgeWeight|ditCellTagsSettings|ditable|lidedForms|nabled|pilog|pilogFunction|scapeRadius|valuatable|valuationCompletionAction|valuationElements|valuationMonitor|valuator|valuatorNames|ventLabels|xcludePods|xcludedContexts|xcludedForms|xcludedLines|xcludedPhysicalQuantities|xclusions|xclusionsStyle|xponentFunction|xponentPosition|xponentStep|xponentialFamily|xportAutoReplacements|xpressionUUID|xtension|xtentElementFunction|xtentMarkers|xtentSize|xternalDataCharacterEncoding|xternalOptions|xternalTypeSignature)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"F(?:aceGrids|aceGridsStyle|ailureAction|eatureNames|eatureTypes|eedbackSector|eedbackSectorStyle|eedbackType|ieldCompletionFunction|ieldHint|ieldHintStyle|ieldMasked|ieldSize|ileNameDialogSettings|ileNameForms|illing|illingStyle|indSettings|itRegularization|ollowRedirects|ontColor|ontFamily|ontSize|ontSlant|ontSubstitutions|ontTracking|ontVariations|ontWeight|orceVersionInstall|ormBoxOptions|ormLayoutFunction|ormProtectionMethod|ormatType|ormatTypeAutoConvert|ourierParameters|ractionBoxOptions|ractionLine|rame|rameBoxOptions|rameLabel|rameMargins|rameRate|rameStyle|rameTicks|rameTicksStyle|rontEndEventActions|unctionSpace)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"G(?:apPenalty|augeFaceElementFunction|augeFaceStyle|augeFrameElementFunction|augeFrameSize|augeFrameStyle|augeLabels|augeMarkers|augeStyle|aussianIntegers|enerateConditions|eneratedCell|eneratedDocumentBinding|eneratedParameters|eneratedQuantityMagnitudes|eneratorDescription|eneratorHistoryLength|eneratorOutputType|eoArraySize|eoBackground|eoCenter|eoGridLines|eoGridLinesStyle|eoGridRange|eoGridRangePadding|eoLabels|eoLocation|eoModel|eoProjection|eoRange|eoRangePadding|eoResolution|eoScaleBar|eoServer|eoStylingImageFunction|eoZoomLevel|radient|raphHighlight|raphHighlightStyle|raphLayerStyle|raphLayers|raphLayout|ridCreationSettings|ridDefaultElement|ridFrame|ridFrameMargins|ridLines|ridLinesStyle|roupActionBase|roupPageBreakWithin)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"H(?:eaderAlignment|eaderBackground|eaderDisplayFunction|eaderLines|eaderSize|eaderStyle|eads|elpBrowserSettings|iddenItems|olidayCalendar|yperlinkAction|yphenation)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"I(?:conRules|gnoreCase|gnoreDiacritics|gnorePunctuation|mageCaptureFunction|mageFormattingWidth|mageLabels|mageLegends|mageMargins|magePadding|magePreviewFunction|mageRegion|mageResolution|mageSize|mageSizeAction|mageSizeMultipliers|magingDevice|mportAutoReplacements|mportOptions|ncludeConstantBasis|ncludeDefinitions|ncludeDirectories|ncludeFileExtension|ncludeGeneratorTasks|ncludeInflections|ncludeMetaInformation|ncludePods|ncludeQuantities|ncludeSingularSolutions|ncludeWindowTimes|ncludedContexts|ndeterminateThreshold|nflationMethod|nheritScope|nitialSeeding|nitialization|nitializationCell|nitializationCellEvaluation|nitializationCellWarning|nputAliases|nputAssumptions|nputAutoReplacements|nsertResults|nsertionFunction|nteractive|nterleaving|nterpolationOrder|nterpolationPoints|nterpretationBoxOptions|nterpretationFunction|ntervalMarkers|ntervalMarkersStyle|nverseFunctions|temAspectRatio|temDisplayFunction|temSize|temStyle)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"Joined(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"Ke(?:epExistingVersion|yCollisionFunction|ypointStrength)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"L(?:abelStyle|abelVisibility|abelingFunction|abelingSize|anguage|anguageCategory|ayerSizeFunction|eaderSize|earningRate|egendAppearance|egendFunction|egendLabel|egendLayout|egendMargins|egendMarkerSize|egendMarkers|ighting|ightingAngle|imitsPositioning|imitsPositioningTokens|ineBreakWithin|ineIndent|ineIndentMaxFraction|ineIntegralConvolutionScale|ineSpacing|inearOffsetFunction|inebreakAdjustments|inkFunction|inkProtocol|istFormat|istPickerBoxOptions|ocalizeVariables|ocatorAutoCreate|ocatorRegion|ooping)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"M(?:agnification|ailAddressValidation|ailResponseFunction|ailSettings|asking|atchLocalNames|axCellMeasure|axColorDistance|axDuration|axExtraBandwidths|axExtraConditions|axFeatureDisplacement|axFeatures|axItems|axIterations|axMixtureKernels|axOverlapFraction|axPlotPoints|axRecursion|axStepFraction|axStepSize|axSteps|emoryConstraint|enuCommandKey|enuSortingValue|enuStyle|esh|eshCellHighlight|eshCellLabel|eshCellMarker|eshCellShapeFunction|eshCellStyle|eshFunctions|eshQualityGoal|eshRefinementFunction|eshShading|eshStyle|etaInformation|ethod|inColorDistance|inIntervalSize|inPointSeparation|issingBehavior|issingDataMethod|issingDataRules|issingString|issingStyle|odal|odulus|ultiaxisArrangement|ultiedgeStyle|ultilaunchWarning|ultilineFunction|ultiselection)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"N(?:icholsGridLines|ominalVariables|onConstants|ormFunction|ormalized|ormalsFunction|otebookAutoSave|otebookBrowseDirectory|otebookConvertSettings|otebookDynamicExpression|otebookEventActions|otebookPath|otebooksMenu|otificationFunction|ullRecords|ullWords|umberFormat|umberMarks|umberMultiplier|umberPadding|umberPoint|umberSeparator|umberSigns|yquistGridLines)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"O(?:pacityFunction|pacityFunctionScaling|peratingSystem|ptionInspectorSettings|utputAutoOverwrite|utputSizeLimit|verlaps|verscriptBoxOptions|verwriteTarget)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"P(?:IDDerivativeFilter|IDFeedforward|acletSite|adding|addingSize|ageBreakAbove|ageBreakBelow|ageBreakWithin|ageFooterLines|ageFooters|ageHeaderLines|ageHeaders|ageTheme|ageWidth|alettePath|aneled|aragraphIndent|aragraphSpacing|arallelization|arameterEstimator|artBehavior|artitionGranularity|assEventsDown|assEventsUp|asteBoxFormInlineCells|ath|erformanceGoal|ermissions|haseRange|laceholderReplace|layRange|lotLabels??|lotLayout|lotLegends|lotMarkers|lotPoints|lotRange|lotRangeClipping|lotRangePadding|lotRegion|lotStyle|lotTheme|odStates|odWidth|olarAxes|olarAxesOrigin|olarGridLines|olarTicks|oleZeroMarkers|recisionGoal|referencesPath|reprocessingRules|reserveColor|reserveImageOptions|rincipalValue|rintAction|rintPrecision|rintingCopies|rintingOptions|rintingPageRange|rintingStartingPageNumber|rintingStyleEnvironment|rintout3DPreviewer|rivateCellOptions|rivateEvaluationOptions|rivateFontOptions|rivateNotebookOptions|rivatePaths|rocessDirectory|rocessEnvironment|rocessEstimator|rogressReporting|rolog|ropagateAborts)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"Quartics(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"R(?:adicalBoxOptions|andomSeeding|asterSize|eImLabels|eImStyle|ealBlockDiagonalForm|ecognitionPrior|ecordLists|ecordSeparators|eferenceLineStyle|efreshRate|egionBoundaryStyle|egionFillingStyle|egionFunction|egionSize|egularization|enderingOptions|equiredPhysicalQuantities|esampling|esamplingMethod|esolveContextAliases|estartInterval|eturnReceiptFunction|evolutionAxis|otateLabel|otationAction|oundingRadius|owAlignments|owLines|owMinHeight|owSpacings|owsEqual|ulerUnits|untimeAttributes|untimeOptions)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"S(?:ameTest|ampleDepth|ampleRate|amplingPeriod|aveConnection|aveDefinitions|aveable|caleDivisions|caleOrigin|calePadding|caleRangeStyle|caleRanges|calingFunctions|cientificNotationThreshold|creenStyleEnvironment|criptBaselineShifts|criptLevel|criptMinSize|criptSizeMultipliers|crollPosition|crollbars|crollingOptions|ectorOrigin|ectorSpacing|electable|elfLoopStyle|eriesTermGoal|haringList|howAutoSpellCheck|howAutoStyles|howCellBracket|howCellLabel|howCellTags|howClosedCellArea|howContents|howCursorTracker|howGroupOpener|howPageBreaks|howSelection|howShortBoxForm|howSpecialCharacters|howStringCharacters|hrinkingDelay|ignPadding|ignificanceLevel|imilarityRules|ingleLetterItalics|liderBoxOptions|ortedBy|oundVolume|pacings|panAdjustments|panCharacterRounding|panLineThickness|panMaxSize|panMinSize|panSymmetric|pecificityGoal|pellingCorrection|pellingDictionaries|pellingDictionariesPath|pellingOptions|phericalRegion|plineClosed|plineDegree|plineKnots|plineWeights|qrtBoxOptions|tabilityMargins|tabilityMarginsStyle|tandardized|tartingStepSize|tateSpaceRealization|tepMonitor|trataVariables|treamColorFunction|treamColorFunctionScaling|treamMarkers|treamPoints|treamScale|treamStyle|trictInequalities|tripOnInput|tripWrapperBoxes|tructuredSelection|tyleBoxAutoDelete|tyleDefinitions|tyleHints|tyleMenuListing|tyleNameDialogSettings|tyleSheetPath|ubscriptBoxOptions|ubsuperscriptBoxOptions|ubtitleEncoding|uperscriptBoxOptions|urdForm|ynchronousInitialization|ynchronousUpdating|yntaxForm|ystemHelpPath|ystemsModelLabels)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"T(?:abFilling|abSpacings|ableAlignments|ableDepth|ableDirections|ableHeadings|ableSpacing|agBoxOptions|aggingRules|argetFunctions|argetUnits|emplateBoxOptions|emporalRegularity|estID|extAlignment|extClipboardType|extJustification|extureCoordinateFunction|extureCoordinateScaling|icks|icksStyle|imeConstraint|imeDirection|imeFormat|imeGoal|imeSystem|imeZone|okenWords|olerance|ooltipDelay|ooltipStyle|otalWidth|ouchscreenAutoZoom|ouchscreenControlPlacement|raceAbove|raceBackward|raceDepth|raceForward|raceOff|raceOn|raceOriginal|rackedSymbols|rackingFunction|raditionalFunctionNotation|ransformationClass|ransformationFunctions|ransitionDirection|ransitionDuration|ransitionEffect|ranslationOptions|ravelMethod|rendStyle|rig)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"U(?:nderoverscriptBoxOptions|nderscriptBoxOptions|ndoOptions|ndoTrackedVariables|nitSystem|nityDimensions|nsavedVariables|pdateInterval|pdatePacletSites|tilityFunction)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"V(?:alidationLength|alidationSet|alueDimensions|arianceEstimatorFunction|ectorAspectRatio|ectorColorFunction|ectorColorFunctionScaling|ectorMarkers|ectorPoints|ectorRange|ectorScaling|ectorSizes|ectorStyle|erifyConvergence|erifySecurityCertificates|erifySolutions|erifyTestAssumptions|ersionedPreferences|ertexCapacity|ertexColors|ertexCoordinates|ertexDataCoordinates|ertexLabelStyle|ertexLabels|ertexNormals|ertexShape|ertexShapeFunction|ertexSize|ertexStyle|ertexTextureCoordinates|ertexWeight|ideoEncoding|iewAngle|iewCenter|iewMatrix|iewPoint|iewProjection|iewRange|iewVector|iewVertical|isible)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"W(?:aveletScale|eights|hitePoint|indowClickSelect|indowElements|indowFloating|indowFrame|indowFrameElements|indowMargins|indowOpacity|indowSize|indowStatusArea|indowTitle|indowToolbars|ordOrientation|ordSearch|ordSelectionFunction|ordSeparators|ordSpacings|orkingPrecision|rapAround)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"Zero(?:Test|WidthTimes)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"A(?:bove|fter|lgebraics|ll|nonymous|utomatic|xis)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"B(?:ack|ackward|aseline|efore|elow|lack|lue|old|ooleans|ottom|oxes|rown|yte)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"C(?:atalan|ellStyle|enter|haracter|omplexInfinity|omplexes|onstant|yan)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"D(?:ashed|efaultAxesStyle|efaultBaseStyle|efaultBoxStyle|efaultFaceGridsStyle|efaultFieldHintStyle|efaultFrameStyle|efaultFrameTicksStyle|efaultGridLinesStyle|efaultLabelStyle|efaultMenuStyle|efaultTicksStyle|efaultTooltipStyle|egree|elimiter|igitCharacter|otDashed|otted)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"E(?:|ndOfBuffer|ndOfFile|ndOfLine|ndOfString|ulerGamma|xpression)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"F(?:alse|lat|ontProperties|orward|orwardBackward|riday|ront|rontEndDynamicExpression|ull)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"G(?:eneral|laisher|oldenAngle|oldenRatio|ray|reen)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"H(?:ere|exadecimalCharacter|oldAll|oldAllComplete|oldFirst|oldRest)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"I(?:|ndeterminate|nfinity|nherited|ntegers??|talic)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"Khinchin(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"L(?:arger??|eft|etterCharacter|ightBlue|ightBrown|ightCyan|ightGray|ightGreen|ightMagenta|ightOrange|ightPink|ightPurple|ightRed|ightYellow|istable|ocked)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"M(?:achinePrecision|agenta|anual|edium|eshCellCentroid|eshCellMeasure|eshCellQuality|onday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"N(?:HoldAll|HoldFirst|HoldRest|egativeIntegers|egativeRationals|egativeReals|oWhitespace|onNegativeIntegers|onNegativeRationals|onNegativeReals|onPositiveIntegers|onPositiveRationals|onPositiveReals|one|ow|ull|umber|umberString|umericFunction)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"O(?:neIdentity|range|rderless)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"P(?:i|ink|lain|ositiveIntegers|ositiveRationals|ositiveReals|rimes|rotected|unctuationCharacter|urple)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"R(?:ationals|eadProtected|eals??|ecord|ed|ight)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"S(?:aturday|equenceHold|mall|maller|panFromAbove|panFromBoth|panFromLeft|tartOfLine|tartOfString|tring|truckthrough|tub|unday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"T(?:emporary|hick|hin|hursday|iny|oday|omorrow|op|ransparent|rue|uesday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"Unde(?:f|rl)ined(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"W(?:ednesday|hite|hitespace|hitespaceCharacter|ord|ordBoundary|ordCharacter)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"Ye(?:llow|sterday)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"\\\\$(?:Aborted|ActivationKey|AllowDataUpdates|AllowInternet|AssertFunction|Assumptions|AudioInputDevices|AudioOutputDevices|BaseDirectory|BasePacletsDirectory|BatchInput|BatchOutput|ByteOrdering|CacheBaseDirectory|Canceled|CharacterEncodings??|CloudAccountName|CloudBase|CloudConnected|CloudCreditsAvailable|CloudEvaluation|CloudExpressionBase|CloudObjectNameFormat|CloudObjectURLType|CloudRootDirectory|CloudSymbolBase|CloudUserID|CloudUserUUID|CloudVersion|CommandLine|CompilationTarget|Context|ContextAliases|ContextPath|ControlActiveSetting|Cookies|CreationDate|CurrentLink|CurrentTask|DateStringFormat|DefaultAudioInputDevice|DefaultAudioOutputDevice|DefaultFrontEnd|DefaultImagingDevice|DefaultKernels|DefaultLocalBase|DefaultLocalKernel|Display|DisplayFunction|DistributedContexts|DynamicEvaluation|Echo|EmbedCodeEnvironments|EmbeddableServices|Epilog|EvaluationCloudBase|EvaluationCloudObject|EvaluationEnvironment|ExportFormats|Failed|FontFamilies|FrontEnd|FrontEndSession|GeoLocation|GeoLocationCity|GeoLocationCountry|GeoLocationSource|HomeDirectory|IgnoreEOF|ImageFormattingWidth|ImageResolution|ImagingDevices??|ImportFormats|InitialDirectory|Input|InputFileName|InputStreamMethods|Inspector|InstallationDirectory|InterpreterTypes|IterationLimit|KernelCount|KernelID|Language|LibraryPath|LicenseExpirationDate|LicenseID|LicenseServer|Linked|LocalBase|LocalSymbolBase|MachineAddresses|MachineDomains|MachineEpsilon|MachineID|MachineName|MachinePrecision|MachineType|MaxExtraPrecision|MaxMachineNumber|MaxNumber|MaxPiecewiseCases|MaxPrecision|MaxRootDegree|MessageGroups|MessageList|MessagePrePrint|Messages|MinMachineNumber|MinNumber|MinPrecision|MobilePhone|ModuleNumber|NetworkConnected|NewMessage|NewSymbol|NotebookInlineStorageLimit|Notebooks|NumberMarks|OperatingSystem|Output|OutputSizeLimit|OutputStreamMethods|Packages|ParentLink|ParentProcessID|PasswordFile|Path|PathnameSeparator|PerformanceGoal|Permissions|PlotTheme|Printout3DPreviewer|ProcessID|ProcessorCount|ProcessorType|ProgressReporting|RandomGeneratorState|RecursionLimit|ReleaseNumber|RequesterAddress|RequesterCloudUserID|RequesterCloudUserUUID|RequesterWolframID|RequesterWolframUUID|RootDirectory|ScriptCommandLine|ScriptInputString|Services|SessionID|SharedFunctions|SharedVariables|SoundDisplayFunction|SynchronousEvaluation|System|SystemCharacterEncoding|SystemID|SystemShell|SystemTimeZone|SystemWordLength|TemplatePath|TemporaryDirectory|TimeUnit|TimeZone|TimeZoneEntity|TimedOut|UnitSystem|Urgent|UserAgentString|UserBaseDirectory|UserBasePacletsDirectory|UserDocumentsDirectory|UserURLBase|Username|Version|VersionNumber|WolframDocumentsDirectory|WolframID|WolframUUID)(?![$`[:alnum:]])","name":"constant.language.wolfram"},{"match":"A(?:bortScheduledTask|ctive|lgebraicRules|lternateImage|natomyForm|nimationCycleOffset|nimationCycleRepetitions|nimationDisplayTime|spectRatioFixed|stronomicalData|synchronousTaskObject|synchronousTasks|udioDevice|udioLooping)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"Button(?:Evaluator|Expandable|Frame|Margins|Note|Style)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"C(?:DFInformation|hebyshevDistance|lassifierInformation|lipFill|olorOutput|olumnForm|ompose|onstantArrayLayer|onstantPlusLayer|onstantTimesLayer|onstrainedMax|onstrainedMin|ontourGraphics|ontourLines|onversionOptions|reateScheduledTask|reateTemporary|urry)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"D(?:atabinRemove|ate|ebug|efaultColor|efaultFont|ensityGraphics|isplay|isplayString|otPlusLayer|ragAndDrop)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"E(?:dgeLabeling|dgeRenderingFunction|valuateScheduledTask|xpectedValue)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"F(?:actorComplete|ontForm|ormTheme|romDate|ullOptions)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"Gr(?:aphStyle|aphicsArray|aphicsSpacing|idBaseline)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"H(?:TMLSave|eldPart|iddenSurface|omeDirectory)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"I(?:mageRotated|nstanceNormalizationLayer)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"L(?:UBackSubstitution|egendreType|ightSources|inearProgramming|inkOpen|iteral|ongestMatch)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"M(?:eshRange|oleculeEquivalentQ)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"N(?:etInformation|etSharedArray|extScheduledTaskTime|otebookCreate)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"OpenTemporary(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"P(?:IDData|ackingMethod|ersistentValue|ixelConstrained|lot3Matrix|lotDivision|lotJoined|olygonIntersections|redictorInformation|roperties|roperty|ropertyList|ropertyValue)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"R(?:andom|asterArray|ecognitionThreshold|elease|emoteKernelObject|emoveAsynchronousTask|emoveProperty|emoveScheduledTask|enderAll|eplaceHeldPart|esetScheduledTask|esumePacket|unScheduledTask)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"S(?:cheduledTaskActiveQ|cheduledTaskInformation|cheduledTaskObject|cheduledTasks|creenRectangle|electionAnimate|equenceAttentionLayer|equenceForm|etProperty|hading|hortestMatch|ingularValues|kinStyle|ocialMediaData|tartAsynchronousTask|tartScheduledTask|tateDimensions|topAsynchronousTask|topScheduledTask|tructuredArray|tyleForm|tylePrint|ubscripted|urfaceColor|urfaceGraphics|uspendPacket|ystemModelProgressReporting)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"T(?:eXSave|extStyle|imeWarpingCorrespondence|imeWarpingDistance|oDate|oFileName|oHeldExpression)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"URL(?:Fetch|FetchAsynchronous|Save|SaveAsynchronous)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"Ve(?:ctorScale|rtexCoordinateRules|rtexLabeling|rtexRenderingFunction)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"W(?:aitAsynchronousTask|indowMovable)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"\\\\$(?:AsynchronousTask|ConfiguredKernels|DefaultFont|EntityStores|FormatType|HTTPCookies|InstallationDate|MachineDomain|ProductInformation|ProgramName|RandomState|ScheduledTask|SummaryBoxDataSizeLimit|TemporaryPrefix|TextStyle|TopDirectory|UserAddOnsDirectory)(?![$`[:alnum:]])","name":"invalid.deprecated.wolfram"},{"match":"A(?:ctionDelay|ctionMenuBox|ctionMenuBoxOptions|ctiveItem|lgebraicRulesData|lignmentMarker|llowAdultContent|llowChatServices|llowIncomplete|nalytic|nimatorBox|nimatorBoxOptions|nimatorElements|ppendCheck|rgumentCountQ|rrow3DBox|rrowBox|uthenticate|utoEvaluateEvents|utoIndentSpacings|utoMatch|utoNumberFormatting|utoQuoteCharacters|utoScaling|utoStyleOptions|utoStyleWords|utomaticImageSize|xis3DBox|xis3DBoxOptions|xisBox|xisBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"B(?:SplineCurve3DBox|SplineCurve3DBoxOptions|SplineCurveBox|SplineCurveBoxOptions|SplineSurface3DBox|SplineSurface3DBoxOptions|ackFaceColor|ackFaceGlowColor|ackFaceOpacity|ackFaceSpecularColor|ackFaceSpecularExponent|ackFaceSurfaceAppearance|ackFaceTexture|ackgroundAppearance|ackgroundTasksSettings|acksubstitution|eveled|ezierCurve3DBox|ezierCurve3DBoxOptions|ezierCurveBox|ezierCurveBoxOptions|lankForm|ounds|ox|oxDimensions|oxForm|oxID|oxRotation|oxRotationPoint|ra|raKet|rowserCategory|uttonCell|uttonContents|uttonStyleMenuListing)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"C(?:acheGraphics|achedValue|ardinalBSplineBasis|ellBoundingBox|ellContents|ellElementSpacings|ellElementsBoundingBox|ellFrameStyle|ellInsertionPointCell|ellTrayPosition|ellTrayWidgets|hangeOptions|hannelDatabin|hannelListenerWait|hannelPreSendFunction|hartElementData|hartElementDataFunction|heckAll|heckboxBox|heckboxBoxOptions|ircleBox|lipboardNotebook|lockwiseContourIntegral|losed|losingEvent|loudConnections|loudObjectInformation|loudObjectInformationData|loudUserID|oarse|oefficientDomain|olonForm|olorSetterBox|olorSetterBoxOptions|olumnBackgrounds|ompilerEnvironmentAppend|ompletionsListPacket|omponentwiseContextMenu|ompressedData|oneBox|onicHullRegion3DBox|onicHullRegion3DBoxOptions|onicHullRegionBox|onicHullRegionBoxOptions|onnect|ontentsBoundingBox|ontextMenu|ontinuation|ontourIntegral|ontourSmoothing|ontrolAlignment|ontrollerDuration|ontrollerInformationData|onvertToPostScript|onvertToPostScriptPacket|ookies|opyTag|ounterBox|ounterBoxOptions|ounterClockwiseContourIntegral|ounterEvaluator|ounterStyle|uboidBox|uboidBoxOptions|urlyDoubleQuote|urlyQuote|ylinderBox|ylinderBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"D(?:OSTextFormat|ampingFactor|ataCompression|atasetDisplayPanel|ateDelimiters|ebugTag|ecimal|efault2DTool|efault3DTool|efaultAttachedCellStyle|efaultControlPlacement|efaultDockedCellStyle|efaultInputFormatType|efaultOutputFormatType|efaultStyle|efaultTextFormatType|efaultTextInlineFormatType|efaultValue|efineExternal|egreeLexicographic|egreeReverseLexicographic|eleteWithContents|elimitedArray|estroyAfterEvaluation|eviceOpenQ|ialogIndent|ialogLevel|ifferenceOrder|igitBlockMinimum|isableConsolePrintPacket|iskBox|iskBoxOptions|ispatchQ|isplayRules|isplayTemporary|istributionDomain|ivergence|ocumentGeneratorInformationData|omainRegistrationInformation|oubleContourIntegral|oublyInfinite|own|rawBackFaces|rawFrontFaces|rawHighlighted|ualLinearProgramming|umpGet|ynamicBox|ynamicBoxOptions|ynamicLocation|ynamicModuleBox|ynamicModuleBoxOptions|ynamicModuleParent|ynamicName|ynamicNamespace|ynamicReference|ynamicWrapperBox|ynamicWrapperBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"E(?:ditButtonSettings|liminationOrder|llipticReducedHalfPeriods|mbeddingObject|mphasizeSyntaxErrors|mpty|nableConsolePrintPacket|ndAdd|ngineEnvironment|nter|qualColumns|qualRows|quatedTo|rrorBoxOptions|rrorNorm|rrorPacket|rrorsDialogSettings|valuated|valuationMode|valuationOrder|valuationRateLimit|ventEvaluator|ventHandlerTag|xactRootIsolation|xitDialog|xpectationE|xportPacket|xpressionPacket|xternalCall|xternalFunctionName)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"F(?:EDisableConsolePrintPacket|EEnableConsolePrintPacket|ail|ileInformation|ileName|illForm|illedCurveBox|illedCurveBoxOptions|ine|itAll|lashSelection|ont|ontName|ontOpacity|ontPostScriptName|ontReencoding|ormatRules|ormatValues|rameInset|rameless|rontEndObject|rontEndResource|rontEndResourceString|rontEndStackSize|rontEndValueCache|rontEndVersion|rontFaceColor|rontFaceGlowColor|rontFaceOpacity|rontFaceSpecularColor|rontFaceSpecularExponent|rontFaceSurfaceAppearance|rontFaceTexture|ullAxes)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"G(?:eneratedCellStyles|eneric|eometricTransformation3DBox|eometricTransformation3DBoxOptions|eometricTransformationBox|eometricTransformationBoxOptions|estureHandlerTag|etContext|etFileName|etLinebreakInformationPacket|lobalPreferences|lobalSession|raphLayerLabels|raphRoot|raphics3DBox|raphics3DBoxOptions|raphicsBaseline|raphicsBox|raphicsBoxOptions|raphicsComplex3DBox|raphicsComplex3DBoxOptions|raphicsComplexBox|raphicsComplexBoxOptions|raphicsContents|raphicsData|raphicsGridBox|raphicsGroup3DBox|raphicsGroup3DBoxOptions|raphicsGroupBox|raphicsGroupBoxOptions|raphicsGrouping|raphicsStyle|reekStyle|ridBoxAlignment|ridBoxBackground|ridBoxDividers|ridBoxFrame|ridBoxItemSize|ridBoxItemStyle|ridBoxOptions|ridBoxSpacings|ridElementStyleOptions|roupOpenerColor|roupOpenerInsideFrame|roupTogetherGrouping|roupTogetherNestedGrouping)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"H(?:eadCompose|eaders|elpBrowserLookup|elpBrowserNotebook|elpViewerSettings|essian|exahedronBox|exahedronBoxOptions|ighlightString|omePage|orizontal|orizontalForm|orizontalScrollPosition|yperlinkCreationSettings|yphenationOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"I(?:conizedObject|gnoreSpellCheck|mageCache|mageCacheValid|mageEditMode|mageMarkers|mageOffset|mageRangeCache|mageSizeCache|mageSizeRaw|nactiveStyle|ncludeSingularTerm|ndent|ndentMaxFraction|ndentingNewlineSpacings|ndexCreationOptions|ndexTag|nequality|nexactNumbers|nformationData|nformationDataGrid|nlineCounterAssignments|nlineCounterIncrements|nlineRules|nputFieldBox|nputFieldBoxOptions|nputGrouping|nputSettings|nputToBoxFormPacket|nsertionPointObject|nset3DBox|nset3DBoxOptions|nsetBox|nsetBoxOptions|ntegral|nterlaced|nterpolationPrecision|nterpretTemplate|nterruptSettings|nto|nvisibleApplication|nvisibleTimes|temBox|temBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"J(?:acobian|oinedCurveBox|oinedCurveBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"K(?:|ernelExecute|et)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"L(?:abeledSlider|ambertW|anguageOptions|aunch|ayoutInformation|exicographic|icenseID|ine3DBox|ine3DBoxOptions|ineBox|ineBoxOptions|ineBreak|ineWrapParts|inearFilter|inebreakSemicolonWeighting|inkConnectedQ|inkError|inkFlush|inkHost|inkMode|inkOptions|inkReadHeld|inkService|inkWriteHeld|istPickerBoxBackground|isten|iteralSearch|ocalizeDefinitions|ocatorBox|ocatorBoxOptions|ocatorCentering|ocatorPaneBox|ocatorPaneBoxOptions|ongEqual|ongForm|oopback)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"M(?:achineID|achineName|acintoshSystemPageSetup|ainSolve|aintainDynamicCaches|akeRules|atchLocalNameQ|aterial|athMLText|athematicaNotation|axBend|axPoints|enu|enuAppearance|enuEvaluator|enuItem|enuList|ergeDifferences|essageObject|essageOptions|essagesNotebook|etaCharacters|ethodOptions|inRecursion|inSize|ode|odular|onomialOrder|ouseAppearanceTag|ouseButtons|ousePointerNote|ultiLetterItalics|ultiLetterStyle|ultiplicity|ultiscriptBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"N(?:BernoulliB|ProductFactors|SumTerms|Values|amespaceBox|amespaceBoxOptions|estedScriptRules|etworkPacketRecordingDuring|ext|onAssociative|ormalGrouping|otebookDefault|otebookInterfaceObject)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"O(?:LEData|bjectExistsQ|pen|penFunctionInspectorPacket|penSpecialOptions|penerBox|penerBoxOptions|ptionQ|ptionValueBox|ptionValueBoxOptions|ptionsPacket|utputFormData|utputGrouping|utputMathEditExpression|ver|verlayBox|verlayBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"P(?:ackPaclet|ackage|acletDirectoryAdd|acletDirectoryRemove|acletInformation|acletObjectQ|acletUpdate|ageHeight|alettesMenuSettings|aneBox|aneBoxOptions|aneSelectorBox|aneSelectorBoxOptions|anelBox|anelBoxOptions|aperWidth|arameter|arameterVariables|arentConnect|arentForm|arentList|arenthesize|artialD|asteAutoQuoteCharacters|ausedTime|eriodicInterpolation|erpendicular|ickMode|ickedElements|ivoting|lotRangeClipPlanesStyle|oint3DBox|oint3DBoxOptions|ointBox|ointBoxOptions|olygon3DBox|olygon3DBoxOptions|olygonBox|olygonBoxOptions|olygonHoleScale|olygonScale|olyhedronBox|olyhedronBoxOptions|olynomialForm|olynomials|opupMenuBox|opupMenuBoxOptions|ostScript|recedence|redictionRoot|referencesSettings|revious|rimaryPlaceholder|rintForm|rismBox|rismBoxOptions|rivateFrontEndOptions|robabilityPr|rocessStateDomain|rocessTimeDomain|rogressIndicatorBox|rogressIndicatorBoxOptions|romptForm|yramidBox|yramidBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"R(?:adioButtonBox|adioButtonBoxOptions|andomSeed|angeSpecification|aster3DBox|aster3DBoxOptions|asterBox|asterBoxOptions|ationalFunctions|awArray|awMedium|ebuildPacletData|ectangleBox|ecurringDigitsForm|eferenceMarkerStyle|eferenceMarkers|einstall|emoved|epeatedString|esourceAcquire|esourceSubmissionObject|eturnCreatesNewCell|eturnEntersInput|eturnInputFormPacket|otationBox|otationBoxOptions|oundImplies|owBackgrounds|owHeights|uleCondition|uleForm)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"S(?:aveAutoDelete|caledMousePosition|cheduledTaskInformationData|criptForm|criptRules|ectionGrouping|electWithContents|election|electionCell|electionCellCreateCell|electionCellDefaultStyle|electionCellParentStyle|electionPlaceholder|elfLoops|erviceResponse|etOptionsPacket|etSecuredAuthenticationKey|etbacks|etterBox|etterBoxOptions|howAutoConvert|howCodeAssist|howControls|howGroupOpenCloseIcon|howInvisibleCharacters|howPredictiveInterface|howSyntaxStyles|hrinkWrapBoundingBox|ingleEvaluation|ingleLetterStyle|lider2DBox|lider2DBoxOptions|ocket|olveDelayed|oundAndGraphics|pace|paceForm|panningCharacters|phereBox|phereBoxOptions|tartupSound|tringBreak|tringByteCount|tripStyleOnPaste|trokeForm|tructuredArrayHeadQ|tyleKeyMapping|tyleNames|urfaceAppearance|yntax|ystemException|ystemGet|ystemInformationData|ystemStub|ystemTest)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"T(?:ab|abViewBox|abViewBoxOptions|ableViewBox|ableViewBoxAlignment|ableViewBoxBackground|ableViewBoxHeaders|ableViewBoxItemSize|ableViewBoxItemStyle|ableViewBoxOptions|agBoxNote|agStyle|emplateEvaluate|emplateSlotSequence|emplateUnevaluated|emplateVerbatim|emporaryVariable|ensorQ|etrahedronBox|etrahedronBoxOptions|ext3DBox|ext3DBoxOptions|extBand|extBoundingBox|extBox|extForm|extLine|extParagraph|hisLink|itleGrouping|oColor|oggle|oggleFalse|ogglerBox|ogglerBoxOptions|ooBig|ooltipBox|ooltipBoxOptions|otalHeight|raceAction|raceInternal|raceLevel|rackCellChangeTimes|raditionalNotation|raditionalOrder|ransparentColor|rapEnterKey|rapSelection|ubeBSplineCurveBox|ubeBSplineCurveBoxOptions|ubeBezierCurveBox|ubeBezierCurveBoxOptions|ubeBox|ubeBoxOptions)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"U(?:ntrackedVariables|p|seGraphicsRange|serDefinedWavelet|sing)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"V(?:2Get|alueBox|alueBoxOptions|alueForm|aluesData|ectorGlyphData|erbose|ertical|erticalForm|iewPointSelectorSettings|iewPort|irtualGroupData|isibleCell)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"W(?:aitUntil|ebPageMetaInformation|holeCellGroupOpener|indowPersistentStyles|indowSelected|indowWidth|olframAlphaDate|olframAlphaQuantity|olframAlphaResult|olframCloudSettings)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"\\\\$(?:ActivationGroupID|ActivationUserRegistered|AddOnsDirectory|BoxForms|CloudConnection|CloudVersionNumber|CloudWolframEngineVersionNumber|ConditionHold|DefaultMailbox|DefaultPath|FinancialDataSource|GeoEntityTypes|GeoLocationPrecision|HTMLExportRules|HTTPRequest|LaunchDirectory|LicenseProcesses|LicenseSubprocesses|LicenseType|LinkSupported|LoadedFiles|MaxLicenseProcesses|MaxLicenseSubprocesses|MinorReleaseNumber|NetworkLicense|Off|OutputForms|PatchLevelID|PermissionsGroupBase|PipeSupported|PreferencesDirectory|PrintForms|PrintLiteral|RegisteredDeviceClasses|RegisteredUserName|SecuredAuthenticationKeyTokens|SetParentLink|SoundDisplay|SuppressInputFormHeads|SystemMemory|TraceOff|TraceOn|TracePattern|TracePostAction|TracePreAction|UserAgentLanguages|UserAgentMachine|UserAgentName|UserAgentOperatingSystem|UserAgentVersion|UserName)(?![$`[:alnum:]])","name":"support.function.undocumented.wolfram"},{"match":"A(?:ctiveClassification|ctiveClassificationObject|ctivePrediction|ctivePredictionObject|ddToSearchIndex|ggregatedEntityClass|ggregationLayer|ngleBisector|nimatedImage|nimationVideo|nomalyDetector|ppendLayer|pplication|pplyReaction|round|roundReplace|rrayReduce|sk|skAppend|skConfirm|skDisplay|skFunction|skState|skTemplateDisplay|skedQ|skedValue|ssessmentFunction|ssessmentResultObject|ssumeDeterministic|stroAngularSeparation|stroBackground|stroCenter|stroDistance|stroGraphics|stroGridLines|stroGridLinesStyle|stroPosition|stroProjection|stroRange|stroRangePadding|stroReferenceFrame|stroStyling|stroZoomLevel|tom|tomCoordinates|tomCount|tomDiagramCoordinates|tomLabelStyle|tomLabels|tomList|ttachCell|ttentionLayer|udioAnnotate|udioAnnotationLookup|udioIdentify|udioInstanceQ|udioPause|udioPlay|udioRecord|udioStop|udioStreams??|udioTrackApply|udioTrackSelection|utocomplete|utocompletionFunction|xiomaticTheory|xisLabel|xisObject|xisStyle)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"B(?:asicRecurrentLayer|atchNormalizationLayer|atchSize|ayesianMaximization|ayesianMaximizationObject|ayesianMinimization|ayesianMinimizationObject|esagL|innedVariogramList|inomialPointProcess|ioSequence|ioSequenceBackTranslateList|ioSequenceComplement|ioSequenceInstances|ioSequenceModify|ioSequencePlot|ioSequenceQ|ioSequenceReverseComplement|ioSequenceTranscribe|ioSequenceTranslate|itRate|lockDiagonalMatrix|lockLowerTriangularMatrix|lockUpperTriangularMatrix|lockchainAddressData|lockchainBase|lockchainBlockData|lockchainContractValue|lockchainData|lockchainGet|lockchainKeyEncode|lockchainPut|lockchainTokenData|lockchainTransaction|lockchainTransactionData|lockchainTransactionSign|lockchainTransactionSubmit|ond|ondCount|ondLabelStyle|ondLabels|ondList|ondQ|uildCompiledComponent)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"C(?:TCLossLayer|achePersistence|anvas|ast|ategoricalDistribution|atenateLayer|auchyPointProcess|hannelBase|hannelBrokerAction|hannelHistoryLength|hannelListen|hannelListeners??|hannelObject|hannelReceiverFunction|hannelSend|hannelSubscribers|haracterNormalize|hemicalConvert|hemicalFormula|hemicalInstance|hemicalReaction|loudExpressions??|loudRenderingMethod|ombinatorB|ombinatorC|ombinatorI|ombinatorK|ombinatorS|ombinatorW|ombinatorY|ombinedEntityClass|ompiledCodeFunction|ompiledComponent|ompiledExpressionDeclaration|ompiledLayer|ompilerCallback|ompilerEnvironment|ompilerEnvironmentAppendTo|ompilerEnvironmentObject|ompilerOptions|omplementedEntityClass|omputeUncertainty|onfirmQuiet|onformationMethod|onnectSystemModelComponents|onnectSystemModelController|onnectedMoleculeComponents|onnectedMoleculeQ|onnectionSettings|ontaining|ontentDetectorFunction|ontentFieldOptions|ontentLocationFunction|ontentObject|ontrastiveLossLayer|onvolutionLayer|reateChannel|reateCloudExpression|reateCompilerEnvironment|reateDataStructure|reateDataSystemModel|reateLicenseEntitlement|reateSearchIndex|reateSystemModel|reateTypeInstance|rossEntropyLossLayer|urrentNotebookImage|urrentScreenImage|urryApplied)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"D(?:SolveChangeVariables|ataStructureQ??|atabaseConnect|atabaseDisconnect|atabaseReference|atabinSubmit|ateInterval|eclareCompiledComponent|econvolutionLayer|ecryptFile|eleteChannel|eleteCloudExpression|eleteElements|eleteSearchIndex|erivedKey|iggleGatesPointProcess|iggleGrattonPointProcess|igitalSignature|isableFormatting|ocumentWeightingRules|otLayer|ownValuesFunction|ropoutLayer|ynamicImage)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"E(?:choTiming|lementwiseLayer|mbeddedSQLEntityClass|mbeddedSQLExpression|mbeddingLayer|mptySpaceF|ncryptFile|ntityFunction|ntityStore|stimatedPointProcess|stimatedVariogramModel|valuationEnvironment|valuationPrivileges|xpirationDate|xpressionTree|xtendedEntityClass|xternalEvaluate|xternalFunction|xternalIdentifier|xternalObject|xternalSessionObject|xternalSessions|xternalStorageBase|xternalStorageDownload|xternalStorageGet|xternalStorageObject|xternalStoragePut|xternalStorageUpload|xternalValue|xtractLayer)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"F(?:aceRecognize|eatureDistance|eatureExtract|eatureExtraction|eatureExtractor|eatureExtractorFunction|ileConvert|ileFormatProperties|ileNameToFormatList|ileSystemTree|ilteredEntityClass|indChannels|indEquationalProof|indExternalEvaluators|indGeometricConjectures|indImageText|indIsomers|indMoleculeSubstructure|indPointProcessParameters|indSystemModelEquilibrium|indTextualAnswer|lattenLayer|orAllType|ormControl|orwardCloudCredentials|oxHReduce|rameListVideo|romRawPointer|unctionCompile|unctionCompileExport|unctionCompileExportByteArray|unctionCompileExportLibrary|unctionCompileExportString|unctionDeclaration|unctionLayer|unctionPoles)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"G(?:alleryView|atedRecurrentLayer|enerateDerivedKey|enerateDigitalSignature|enerateFileSignature|enerateSecuredAuthenticationKey|eneratedAssetFormat|eneratedAssetLocation|eoGraphValuePlot|eoOrientationData|eometricAssertion|eometricScene|eometricStep|eometricStylingRules|eometricTest|ibbsPointProcess|raphTree|ridVideo)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"H(?:andlerFunctions|andlerFunctionsKeys|ardcorePointProcess|istogramPointDensity)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"I(?:gnoreIsotopes|gnoreStereochemistry|mageAugmentationLayer|mageBoundingBoxes|mageCases|mageContainsQ|mageContents|mageGraphics|magePosition|magePyramid|magePyramidApply|mageStitch|mportedObject|ncludeAromaticBonds|ncludeHydrogens|ncludeRelatedTables|nertEvaluate|nertExpression|nfiniteFuture|nfinitePast|nhomogeneousPoissonPointProcess|nitialEvaluationHistory|nitializationObjects??|nitializationValue|nitialize|nputPorts|ntegrateChangeVariables|nterfaceSwitched|ntersectedEntityClass|nverseImagePyramid)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"Kernel(?:Configura|Func)tion(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"L(?:earningRateMultipliers|ibraryFunctionDeclaration|icenseEntitlementObject|icenseEntitlements|icensingSettings|inearLayer|iteralType|oadCompiledComponent|ocalResponseNormalizationLayer|ongShortTermMemoryLayer|ossFunction)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"M(?:IMETypeToFormatList|ailExecute|ailFolder|ailItem|ailSearch|ailServerConnect|ailServerConnection|aternPointProcess|axDisplayedChildren|axTrainingRounds|axWordGap|eanAbsoluteLossLayer|eanAround|eanPointDensity|eanSquaredLossLayer|ergingFunction|idpoint|issingValuePattern|issingValueSynthesis|olecule|oleculeAlign|oleculeContainsQ|oleculeDraw|oleculeFreeQ|oleculeGraph|oleculeMatchQ|oleculeMaximumCommonSubstructure|oleculeModify|oleculeName|oleculePattern|oleculePlot|oleculePlot3D|oleculeProperty|oleculeQ|oleculeRecognize|oleculeSubstructureCount|oleculeValue)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"N(?:BodySimulation|BodySimulationData|earestNeighborG|estTree|etAppend|etArray|etArrayLayer|etBidirectionalOperator|etChain|etDecoder|etDelete|etDrop|etEncoder|etEvaluationMode|etExternalObject|etExtract|etFlatten|etFoldOperator|etGANOperator|etGraph|etInitialize|etInsert|etInsertSharedArrays|etJoin|etMapOperator|etMapThreadOperator|etMeasurements|etModel|etNestOperator|etPairEmbeddingOperator|etPort|etPortGradient|etPrepend|etRename|etReplace|etReplacePart|etStateObject|etTake|etTrain|etTrainResultsObject|etUnfold|etworkPacketCapture|etworkPacketRecording|etworkPacketTrace|eymanScottPointProcess|ominalScale|ormalizationLayer|umericArrayQ??|umericArrayType)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"O(?:peratorApplied|rderingLayer|rdinalScale|utputPorts|verlayVideo)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"P(?:acletSymbol|addingLayer|agination|airCorrelationG|arametricRampLayer|arentEdgeLabel|arentEdgeLabelFunction|arentEdgeLabelStyle|arentEdgeShapeFunction|arentEdgeStyle|arentEdgeStyleFunction|artLayer|artProtection|atternFilling|atternReaction|enttinenPointProcess|erpendicularBisector|ersistenceLocation|ersistenceTime|ersistentObjects??|ersistentSymbol|itchRecognize|laceholderLayer|laybackSettings|ointCountDistribution|ointDensity|ointDensityFunction|ointProcessEstimator|ointProcessFitTest|ointProcessParameterAssumptions|ointProcessParameterQ|ointStatisticFunction|ointValuePlot|oissonPointProcess|oolingLayer|rependLayer|roofObject|ublisherID)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"Question(?:Generator|Interface|Object|Selector)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"R(?:andomArrayLayer|andomInstance|andomPointConfiguration|andomTree|eactionBalance|eactionBalancedQ|ecalibrationFunction|egisterExternalEvaluator|elationalDatabase|emoteAuthorizationCaching|emoteBatchJobAbort|emoteBatchJobObject|emoteBatchJobs|emoteBatchMapSubmit|emoteBatchSubmissionEnvironment|emoteBatchSubmit|emoteConnect|emoteConnectionObject|emoteEvaluate|emoteFile|emoteInputFiles|emoteProviderSettings|emoteRun|emoteRunProcess|emovalConditions|emoveAudioStream|emoveChannelListener|emoveChannelSubscribers|emoveVideoStream|eplicateLayer|eshapeLayer|esizeLayer|esourceFunction|esourceRegister|esourceRemove|esourceSubmit|esourceSystemBase|esourceSystemPath|esourceUpdate|esourceVersion|everseApplied|ipleyK|ipleyRassonRegion|ootTree|ulesTree)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"S(?:ameTestProperties|ampledEntityClass|earchAdjustment|earchIndexObject|earchIndices|earchQueryString|earchResultObject|ecuredAuthenticationKeys??|ecurityCertificate|equenceIndicesLayer|equenceLastLayer|equenceMostLayer|equencePredict|equencePredictorFunction|equenceRestLayer|equenceReverseLayer|erviceRequest|erviceSubmit|etFileFormatProperties|etSystemModel|lideShowVideo|moothPointDensity|nippet|nippetsVideo|nubPolyhedron|oftmaxLayer|olidBoundaryLoadValue|olidDisplacementCondition|olidFixedCondition|olidMechanicsPDEComponent|olidMechanicsStrain|olidMechanicsStress|ortedEntityClass|ourceLink|patialBinnedPointData|patialBoundaryCorrection|patialEstimate|patialEstimatorFunction|patialJ|patialNoiseLevel|patialObservationRegionQ|patialPointData|patialPointSelect|patialRandomnessTest|patialTransformationLayer|patialTrendFunction|peakerMatchQ|peechCases|peechInterpreter|peechRecognize|plice|tartExternalSession|tartWebSession|tereochemistryElements|traussHardcorePointProcess|traussPointProcess|ubsetCases|ubsetCount|ubsetPosition|ubsetReplace|ubtitleTrackSelection|ummationLayer|ymmetricDifference|ynthesizeMissingValues|ystemCredential|ystemCredentialData|ystemCredentialKeys??|ystemCredentialStoreObject|ystemInstall|ystemModel|ystemModelExamples|ystemModelLinearize|ystemModelMeasurements|ystemModelParametricSimulate|ystemModelPlot|ystemModelReliability|ystemModelSimulate|ystemModelSimulateSensitivity|ystemModelSimulationData|ystemModeler|ystemModels)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"T(?:ableView|argetDevice|argetSystem|ernaryListPlot|ernaryPlotCorners|extCases|extContents|extElement|extPosition|extSearch|extSearchReport|extStructure|homasPointProcess|hreaded|hreadingLayer|ickDirection|ickLabelOrientation|ickLabelPositioning|ickLabels|ickLengths|ickPositions|oRawPointer|otalLayer|ourVideo|rainImageContentDetector|rainTextContentDetector|rainingProgressCheckpointing|rainingProgressFunction|rainingProgressMeasurements|rainingProgressReporting|rainingStoppingCriterion|rainingUpdateSchedule|ransposeLayer|ree|reeCases|reeChildren|reeCount|reeData|reeDelete|reeDepth|reeElementCoordinates|reeElementLabel|reeElementLabelFunction|reeElementLabelStyle|reeElementShape|reeElementShapeFunction|reeElementSize|reeElementSizeFunction|reeElementStyle|reeElementStyleFunction|reeExpression|reeExtract|reeFold|reeInsert|reeLayout|reeLeafCount|reeLeafQ|reeLeaves|reeLevel|reeMap|reeMapAt|reeOutline|reePosition|reeQ|reeReplacePart|reeRules|reeScan|reeSelect|reeSize|reeTraversalOrder|riangleCenter|riangleConstruct|riangleMeasurement|ypeDeclaration|ypeEvaluate|ypeOf|ypeSpecifier|yped)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"U(?:RLDownloadSubmit|nconstrainedParameters|nionedEntityClass|niqueElements|nitVectorLayer|nlabeledTree|nmanageObject|nregisterExternalEvaluator|pdateSearchIndex|seEmbeddedLibrary)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"V(?:alenceErrorHandling|alenceFilling|aluePreprocessingFunction|andermondeMatrix|arianceGammaPointProcess|ariogramFunction|ariogramModel|ectorAround|erifyDerivedKey|erifyDigitalSignature|erifyFileSignature|erifyInterpretation|ideo|ideoCapture|ideoCombine|ideoDelete|ideoExtractFrames|ideoFrameList|ideoFrameMap|ideoGenerator|ideoInsert|ideoIntervals|ideoJoin|ideoMap|ideoMapList|ideoMapTimeSeries|ideoPadding|ideoPause|ideoPlay|ideoQ|ideoRecord|ideoReplace|ideoScreenCapture|ideoSplit|ideoStop|ideoStreams??|ideoTimeStretch|ideoTrackSelection|ideoTranscode|ideoTransparency|ideoTrim)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"W(?:ebAudioSearch|ebColumn|ebElementObject|ebExecute|ebImage|ebImageSearch|ebItem|ebRow|ebSearch|ebSessionObject|ebSessions|ebWindowObject|ikidataData|ikidataSearch|ikipediaSearch|ithCleanup|ithLock)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"Zoom(?:Center|Factor)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"\\\\$(?:AllowExternalChannelFunctions|AudioDecoders|AudioEncoders|BlockchainBase|ChannelBase|CompilerEnvironment|CookieStore|CryptographicEllipticCurveNames|CurrentWebSession|DataStructures|DefaultNetworkInterface|DefaultProxyRules|DefaultRemoteBatchSubmissionEnvironment|DefaultRemoteKernel|DefaultSystemCredentialStore|ExternalIdentifierTypes|ExternalStorageBase|GeneratedAssetLocation|IncomingMailSettings|Initialization|InitializationContexts|MaxDisplayedChildren|NetworkInterfaces|NoValue|PersistenceBase|PersistencePath|PreInitialization|PublisherID|ResourceSystemBase|ResourceSystemPath|SSHAuthentication|ServiceCreditsAvailable|SourceLink|SubtitleDecoders|SubtitleEncoders|SystemCredentialStore|TargetSystems|TestFileName|VideoDecoders|VideoEncoders|VoiceStyles)(?![$`[:alnum:]])","name":"support.function.experimental.wolfram"},{"match":"A(?:ll|ny)False(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"Boolean(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"C(?:loudbase|omplexQ)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"DataSet(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"Exp(?:andFilename|ortPacket)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"Fa(?:iled|lseQ)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"Interpolation(?:Function|Polynomial)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"Match(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"Option(?:Pattern|sQ)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"R(?:ation|e)alQ(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"S(?:tringMatch|ymbolQ)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"U(?:nSameQ|rlExecute)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"\\\\$(?:PathNameSeparator|RegisteredUsername)(?![$`[:alnum:]])","name":"invalid.bad.wolfram"},{"match":"E(?:cho|xit)(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"In(?:|String)(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"Out(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"Print(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"Quit(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"\\\\$(?:HistoryLength|Line|Post|Pre|PrePrint|PreRead|SyntaxHandler)(?![$`[:alnum:]])","name":"invalid.session.wolfram"},{"match":"[$[:alpha:]][$[:alnum:]]*(?=\\\\s*(\\\\[(?!\\\\s*\\\\[)|@(?!@)))","name":"variable.function.wolfram"},{"match":"[$[:alpha:]][$[:alnum:]]*","name":"symbol.unrecognized.wolfram"}]}},"scopeName":"source.wolfram","aliases":["wl"]}'))];export{e as default}; diff --git a/docs/assets/worker-CUL1lW-N.js b/docs/assets/worker-CUL1lW-N.js new file mode 100644 index 0000000..a6377e6 --- /dev/null +++ b/docs/assets/worker-CUL1lW-N.js @@ -0,0 +1,120 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=e=>t=>c(t.default,e),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function.")});function d(e){return e}function f(e,t){let n=e.map(e=>`"${e}"`).join(`, `);return Error(`This RPC instance cannot ${t} because the transport did not provide one or more of these methods: ${n}`)}function p(e={}){let t={};function n(e){t=e}let r={};function i(e){r.unregisterHandler&&r.unregisterHandler(),r=e,r.registerHandler?.(oe)}let a;function o(e){if(typeof e==`function`){a=e;return}a=(t,n)=>{let r=e[t];if(r)return r(n);let i=e._;if(!i)throw Error(`The requested method has no handler: ${t}`);return i(t,n)}}let{maxRequestTime:s=1e3}=e;e.transport&&i(e.transport),e.requestHandler&&o(e.requestHandler),e._debugHooks&&n(e._debugHooks);let c=0;function l(){return c<=1e10?++c:c=0}let u=new Map,d=new Map;function p(e,...n){let i=n[0];return new Promise((n,a)=>{if(!r.send)throw f([`send`],`make requests`);let o=l(),c={type:`request`,id:o,method:e,params:i};u.set(o,{resolve:n,reject:a}),s!==1/0&&d.set(o,setTimeout(()=>{d.delete(o),a(Error(`RPC request timed out.`))},s)),t.onSend?.(c),r.send(c)})}let ee=new Proxy(p,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>p(t,e)}),te=ee;function ne(e,...n){let i=n[0];if(!r.send)throw f([`send`],`send messages`);let a={type:`message`,id:e,payload:i};t.onSend?.(a),r.send(a)}let re=new Proxy(ne,{get:(e,t,n)=>t in e?Reflect.get(e,t,n):e=>ne(t,e)}),ie=re,m=new Map,h=new Set;function ae(e,t){if(!r.registerHandler)throw f([`registerHandler`],`register message listeners`);if(e===`*`){h.add(t);return}m.has(e)||m.set(e,new Set),m.get(e)?.add(t)}function g(e,t){if(e===`*`){h.delete(t);return}m.get(e)?.delete(t),m.get(e)?.size===0&&m.delete(e)}async function oe(e){if(t.onReceive?.(e),!(`type`in e))throw Error(`Message does not contain a type.`);if(e.type===`request`){if(!r.send||!a)throw f([`send`,`requestHandler`],`handle requests`);let{id:n,method:i,params:o}=e,s;try{s={type:`response`,id:n,success:!0,payload:await a(i,o)}}catch(e){if(!(e instanceof Error))throw e;s={type:`response`,id:n,success:!1,error:e.message}}t.onSend?.(s),r.send(s);return}if(e.type===`response`){let t=d.get(e.id);t!=null&&clearTimeout(t);let{resolve:n,reject:r}=u.get(e.id)??{};e.success?n?.(e.payload):r?.(Error(e.error));return}if(e.type===`message`){for(let t of h)t(e.id,e.payload);let t=m.get(e.id);if(!t)return;for(let n of t)n(e.payload);return}throw Error(`Unexpected RPC message type: ${e.type}`)}return{setTransport:i,setRequestHandler:o,request:ee,requestProxy:te,send:re,sendProxy:ie,addMessageListener:ae,removeMessageListener:g,proxy:{send:ie,request:te},_setDebugHooks:n}}function ee(e){return p(e)}const te=`[transport-id]`;function ne(e,t){let{transportId:n}=t;return n==null?e:{[te]:n,data:e}}function re(e,t){let{transportId:n,filter:r}=t,i=r?.();if(n!=null&&i!=null)throw Error("Cannot use both `transportId` and `filter` at the same time");let a=e;if(n){if(e[te]!==n)return[!0];a=e.data}return i===!1?[!0]:[!1,a]}function ie(e,t={}){let{transportId:n,filter:r,remotePort:i}=t,a=e,o=i??e,s;return{send(e){o.postMessage(ne(e,{transportId:n}))},registerHandler(e){s=t=>{let i=t.data,[a,o]=re(i,{transportId:n,filter:()=>r?.(t)});a||e(o)},a.addEventListener(`message`,s)},unregisterHandler(){s&&a.removeEventListener(`message`,s)}}}function m(e){return ie(self,e)}function h(e,t){if(!e)throw Error(t)}function ae(e){let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}}const g={NOOP:()=>{},ASYNC_NOOP:async()=>{},THROW:()=>{throw Error(`Should not be called`)},asUpdater:e=>typeof e==`function`?e:()=>e,identity:e=>e},oe=(e,t)=>{let n=`[${e}]`;return{debug:(...e)=>console.debug(n,...e),log:(...e)=>t.log(n,...e),warn:(...e)=>t.warn(n,...e),error:(...e)=>t.error(n,...e),trace:(...e)=>t.trace(n,...e),get:n=>oe(`${e}:${n}`,t),disabled:(e=!0)=>e?ce:t}},se={debug:(...e)=>{console.debug(...e)},log:(...e)=>{console.log(...e)},warn:(...e)=>{console.warn(...e)},error:(...e)=>{console.error(...e)},trace:(...e)=>{console.trace(...e)},get:e=>oe(`marimo:${e}`,se),disabled:(e=!0)=>e?ce:se},ce={debug:()=>g.NOOP,log:()=>g.NOOP,warn:()=>g.NOOP,error:()=>g.NOOP,trace:()=>g.NOOP,get:()=>ce,disabled:()=>ce};function le(){return typeof window<`u`&&window.Logger||se}const _=le(),ue=e=>new TextDecoder().decode(e);var de=class{promise;resolve;reject;status=`pending`;constructor(){this.promise=new Promise((e,t)=>{this.reject=e=>{this.status=`rejected`,t(e)},this.resolve=t=>{this.status=`resolved`,e(t)}})}};Object.freeze({status:`aborted`});function v(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var y=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},fe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};const pe={};function b(e){return e&&Object.assign(pe,e),pe}function me(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function he(e,t){return typeof t==`bigint`?t.toString():t}function ge(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function _e(e){return e==null}function ve(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}const ye=Symbol(`evaluating`);function x(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ye)return r===void 0&&(r=ye,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function S(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function C(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function be(e){return JSON.stringify(e)}function xe(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Se=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Ce(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const we=ge(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Te(e){if(Ce(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Ce(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Ee(e){return Te(e)?{...e}:Array.isArray(e)?[...e]:e}const De=new Set([`string`,`number`,`symbol`]);function Oe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function w(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ke(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Ae(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return w(e,C(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return S(this,`shape`,e),e},checks:[]}))}function je(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return w(e,C(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return S(this,`shape`,r),r},checks:[]}))}function Me(e,t){if(!Te(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return w(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return S(this,`shape`,n),n}}))}function Ne(e,t){if(!Te(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return w(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return S(this,`shape`,n),n}}))}function Pe(e,t){return w(e,C(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return S(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Fe(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return w(t,C(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return S(this,`shape`,i),i},checks:[]}))}function Ie(e,t,n){return w(t,C(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return S(this,`shape`,i),i}}))}function E(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Re(e){return typeof e==`string`?e:e?.message}function D(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Re(e.inst?._zod.def?.error?.(e))??Re(t?.error?.(e))??Re(n.customError?.(e))??Re(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function ze(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function O(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const Be=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,he,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Ve=v(`$ZodError`,Be),He=v(`$ZodError`,Be,{Parent:Error});function Ue(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function We(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new y;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>D(e,a,b())));throw Se(t,i?.callee),t}return o.value},Ke=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>D(e,a,b())));throw Se(t,i?.callee),t}return o.value},qe=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new y;return a.issues.length?{success:!1,error:new(e??Ve)(a.issues.map(e=>D(e,i,b())))}:{success:!0,data:a.value}},Je=qe(He),Ye=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>D(e,i,b())))}:{success:!0,data:a.value}},Xe=Ye(He),Ze=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ge(e)(t,n,i)},Qe=e=>(t,n,r)=>Ge(e)(t,n,r),$e=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ke(e)(t,n,i)},et=e=>async(t,n,r)=>Ke(e)(t,n,r),tt=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return qe(e)(t,n,i)},nt=e=>(t,n,r)=>qe(e)(t,n,r),rt=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ye(e)(t,n,i)},it=e=>async(t,n,r)=>Ye(e)(t,n,r),at=/^[cC][^\s-]{8,}$/,ot=/^[0-9a-z]+$/,st=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ct=/^[0-9a-vA-V]{20}$/,lt=/^[A-Za-z0-9]{27}$/,ut=/^[a-zA-Z0-9_-]{21}$/,dt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ft=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,pt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,mt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function ht(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const gt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_t=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,vt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,yt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,bt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xt=/^[A-Za-z0-9_-]*$/,St=/^\+[1-9]\d{6,14}$/,Ct=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,wt=RegExp(`^${Ct}$`);function Tt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Et(e){return RegExp(`^${Tt(e)}$`)}function Dt(e){let t=Tt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Ct}T(?:${r})$`)}const Ot=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},kt=/^[^A-Z]*$/,At=/^[^a-z]*$/,k=v(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),jt=v(`$ZodCheckMaxLength`,(e,t)=>{var n;k.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_e(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=ze(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Mt=v(`$ZodCheckMinLength`,(e,t)=>{var n;k.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_e(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ze(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Nt=v(`$ZodCheckLengthEquals`,(e,t)=>{var n;k.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!_e(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ze(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Pt=v(`$ZodCheckStringFormat`,(e,t)=>{var n,r;k.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ft=v(`$ZodCheckRegex`,(e,t)=>{Pt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),It=v(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=kt,Pt.init(e,t)}),Lt=v(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=At,Pt.init(e,t)}),Rt=v(`$ZodCheckIncludes`,(e,t)=>{k.init(e,t);let n=Oe(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),zt=v(`$ZodCheckStartsWith`,(e,t)=>{k.init(e,t);let n=RegExp(`^${Oe(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Bt=v(`$ZodCheckEndsWith`,(e,t)=>{k.init(e,t);let n=RegExp(`.*${Oe(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Vt=v(`$ZodCheckOverwrite`,(e,t)=>{k.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var Ht=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` +`))}};const Ut={major:4,minor:3,patch:4},A=v(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ut;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=E(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new y;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=E(e,t))});else{if(e.issues.length===t)continue;r||=E(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(E(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(e=>t(e,r,a))}return t(o,r,a)}}x(e,`~standard`,()=>({validate:t=>{try{let n=Je(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Xe(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Wt=v(`$ZodString`,(e,t)=>{A.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ot(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),j=v(`$ZodStringFormat`,(e,t)=>{Pt.init(e,t),Wt.init(e,t)}),Gt=v(`$ZodGUID`,(e,t)=>{t.pattern??=ft,j.init(e,t)}),Kt=v(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=pt(e)}else t.pattern??=pt();j.init(e,t)}),qt=v(`$ZodEmail`,(e,t)=>{t.pattern??=mt,j.init(e,t)}),Jt=v(`$ZodURL`,(e,t)=>{j.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Yt=v(`$ZodEmoji`,(e,t)=>{t.pattern??=ht(),j.init(e,t)}),Xt=v(`$ZodNanoID`,(e,t)=>{t.pattern??=ut,j.init(e,t)}),Zt=v(`$ZodCUID`,(e,t)=>{t.pattern??=at,j.init(e,t)}),Qt=v(`$ZodCUID2`,(e,t)=>{t.pattern??=ot,j.init(e,t)}),$t=v(`$ZodULID`,(e,t)=>{t.pattern??=st,j.init(e,t)}),en=v(`$ZodXID`,(e,t)=>{t.pattern??=ct,j.init(e,t)}),tn=v(`$ZodKSUID`,(e,t)=>{t.pattern??=lt,j.init(e,t)}),nn=v(`$ZodISODateTime`,(e,t)=>{t.pattern??=Dt(t),j.init(e,t)}),rn=v(`$ZodISODate`,(e,t)=>{t.pattern??=wt,j.init(e,t)}),an=v(`$ZodISOTime`,(e,t)=>{t.pattern??=Et(t),j.init(e,t)}),on=v(`$ZodISODuration`,(e,t)=>{t.pattern??=dt,j.init(e,t)}),sn=v(`$ZodIPv4`,(e,t)=>{t.pattern??=gt,j.init(e,t),e._zod.bag.format=`ipv4`}),cn=v(`$ZodIPv6`,(e,t)=>{t.pattern??=_t,j.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),ln=v(`$ZodCIDRv4`,(e,t)=>{t.pattern??=vt,j.init(e,t)}),un=v(`$ZodCIDRv6`,(e,t)=>{t.pattern??=yt,j.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function dn(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const fn=v(`$ZodBase64`,(e,t)=>{t.pattern??=bt,j.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{dn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function pn(e){if(!xt.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return dn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const mn=v(`$ZodBase64URL`,(e,t)=>{t.pattern??=xt,j.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{pn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),hn=v(`$ZodE164`,(e,t)=>{t.pattern??=St,j.init(e,t)});function gn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const _n=v(`$ZodJWT`,(e,t)=>{j.init(e,t),e._zod.check=n=>{gn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),vn=v(`$ZodUnknown`,(e,t)=>{A.init(e,t),e._zod.parse=e=>e}),yn=v(`$ZodNever`,(e,t)=>{A.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function bn(e,t,n){e.issues.length&&t.issues.push(...Le(n,e.issues)),t.value[n]=e.value}const xn=v(`$ZodArray`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ebn(t,n,e))):bn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Sn(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Le(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Cn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=ke(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function wn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Sn(e,n,i,t,u))):Sn(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Tn=v(`$ZodObject`,(e,t)=>{if(A.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=ge(()=>Cn(t));x(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Ce,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Sn(n,t,e,s,r))):Sn(i,t,e,s,r)}return i?wn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),En=v(`$ZodObjectJIT`,(e,t)=>{Tn.init(e,t);let n=e._zod.parse,r=ge(()=>Cn(t)),i=e=>{let t=new Ht([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=be(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=be(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(` + if (${n}.issues.length) { + if (${o} in input) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `):t.write(` + if (${n}.issues.length) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Ce,s=!pe.jitless,c=s&&we.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?wn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Dn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!E(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>D(e,r,b())))}),t)}const On=v(`$ZodUnion`,(e,t)=>{A.init(e,t),x(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),x(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),x(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),x(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ve(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Dn(t,i,e,a)):Dn(s,i,e,a)}}),kn=v(`$ZodIntersection`,(e,t)=>{A.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>jn(e,t,n)):jn(e,i,a)}});function An(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Te(e)&&Te(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=An(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),E(e))return e;let o=An(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const Mn=v(`$ZodEnum`,(e,t)=>{A.init(e,t);let n=me(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>De.has(typeof e)).map(e=>typeof e==`string`?Oe(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Nn=v(`$ZodTransform`,(e,t)=>{A.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new fe(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new y;return n.value=i,n}});function Pn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Fn=v(`$ZodOptional`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ve(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Pn(t,e.value)):Pn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),In=v(`$ZodExactOptional`,(e,t)=>{Fn.init(e,t),x(e._zod,`values`,()=>t.innerType._zod.values),x(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Ln=v(`$ZodNullable`,(e,t)=>{A.init(e,t),x(e._zod,`optin`,()=>t.innerType._zod.optin),x(e._zod,`optout`,()=>t.innerType._zod.optout),x(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ve(e.source)}|null)$`):void 0}),x(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Rn=v(`$ZodDefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>zn(e,t)):zn(r,t)}});function zn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Bn=v(`$ZodPrefault`,(e,t)=>{A.init(e,t),e._zod.optin=`optional`,x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Vn=v(`$ZodNonOptional`,(e,t)=>{A.init(e,t),x(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Hn(t,e)):Hn(i,e)}});function Hn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const Un=v(`$ZodCatch`,(e,t)=>{A.init(e,t),x(e._zod,`optin`,()=>t.innerType._zod.optin),x(e._zod,`optout`,()=>t.innerType._zod.optout),x(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>D(e,n,b()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>D(e,n,b()))},input:e.value}),e.issues=[]),e)}}),Wn=v(`$ZodPipe`,(e,t)=>{A.init(e,t),x(e._zod,`values`,()=>t.in._zod.values),x(e._zod,`optin`,()=>t.in._zod.optin),x(e._zod,`optout`,()=>t.out._zod.optout),x(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Gn(e,t.in,n)):Gn(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Gn(e,t.out,n)):Gn(r,t.out,n)}});function Gn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Kn=v(`$ZodReadonly`,(e,t)=>{A.init(e,t),x(e._zod,`propValues`,()=>t.innerType._zod.propValues),x(e._zod,`values`,()=>t.innerType._zod.values),x(e._zod,`optin`,()=>t.innerType?._zod?.optin),x(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(qn):qn(r)}});function qn(e){return e.value=Object.freeze(e.value),e}const Jn=v(`$ZodCustom`,(e,t)=>{k.init(e,t),A.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Yn(t,n,r,e));Yn(i,n,r,e)}});function Yn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(O(e))}}var Xn,Zn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Qn(){return new Zn}(Xn=globalThis).__zod_globalRegistry??(Xn.__zod_globalRegistry=Qn());const M=globalThis.__zod_globalRegistry;function $n(e,t){return new e({type:`string`,...T(t)})}function er(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...T(t)})}function tr(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...T(t)})}function nr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...T(t)})}function rr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...T(t)})}function ir(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...T(t)})}function ar(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...T(t)})}function or(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...T(t)})}function sr(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...T(t)})}function cr(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...T(t)})}function lr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...T(t)})}function ur(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...T(t)})}function dr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...T(t)})}function fr(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...T(t)})}function pr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...T(t)})}function mr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...T(t)})}function hr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...T(t)})}function gr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...T(t)})}function _r(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...T(t)})}function vr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...T(t)})}function yr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...T(t)})}function br(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...T(t)})}function xr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...T(t)})}function Sr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...T(t)})}function Cr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...T(t)})}function wr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...T(t)})}function Tr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...T(t)})}function Er(e){return new e({type:`unknown`})}function Dr(e,t){return new e({type:`never`,...T(t)})}function Or(e,t){return new jt({check:`max_length`,...T(t),maximum:e})}function kr(e,t){return new Mt({check:`min_length`,...T(t),minimum:e})}function Ar(e,t){return new Nt({check:`length_equals`,...T(t),length:e})}function jr(e,t){return new Ft({check:`string_format`,format:`regex`,...T(t),pattern:e})}function Mr(e){return new It({check:`string_format`,format:`lowercase`,...T(e)})}function Nr(e){return new Lt({check:`string_format`,format:`uppercase`,...T(e)})}function Pr(e,t){return new Rt({check:`string_format`,format:`includes`,...T(t),includes:e})}function Fr(e,t){return new zt({check:`string_format`,format:`starts_with`,...T(t),prefix:e})}function Ir(e,t){return new Bt({check:`string_format`,format:`ends_with`,...T(t),suffix:e})}function N(e){return new Vt({check:`overwrite`,tx:e})}function Lr(e){return N(t=>t.normalize(e))}function Rr(){return N(e=>e.trim())}function zr(){return N(e=>e.toLowerCase())}function Br(){return N(e=>e.toUpperCase())}function Vr(){return N(e=>xe(e))}function Hr(e,t,n){return new e({type:`array`,element:t,...T(n)})}function Ur(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...T(n)})}function Wr(e){let t=Gr(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(O(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(O(r))}},e(n.value,n)));return t}function Gr(e,t){let n=new k({check:`custom`,...T(t)});return n._zod.check=e,n}function Kr(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??M,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function P(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,P(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&F(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function qr(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Jr(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Xr(t,`input`,e.processors),output:Xr(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function F(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return F(r.element,n);if(r.type===`set`)return F(r.valueType,n);if(r.type===`lazy`)return F(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return F(r.innerType,n);if(r.type===`intersection`)return F(r.left,n)||F(r.right,n);if(r.type===`record`||r.type===`map`)return F(r.keyType,n)||F(r.valueType,n);if(r.type===`pipe`)return F(r.in,n)||F(r.out,n);if(r.type===`object`){for(let e in r.shape)if(F(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(F(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(F(e,n))return!0;return!!(r.rest&&F(r.rest,n))}return!1}const Yr=(e,t={})=>n=>{let r=Kr({...n,processors:t});return P(e,r),qr(r,e),Jr(r,e)},Xr=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Kr({...i??{},target:a,io:t,processors:n});return P(e,o),qr(o,e),Jr(o,e)},Zr={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Qr=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Zr[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},$r=(e,t,n,r)=>{n.not={}},ei=(e,t,n,r)=>{let i=e._zod.def,a=me(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},ti=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},ni=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},ri=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=P(a.element,t,{...r,path:[...r.path,`items`]})},ii=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=P(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=P(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ai=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>P(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},oi=(e,t,n,r)=>{let i=e._zod.def,a=P(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=P(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},si=(e,t,n,r)=>{let i=e._zod.def,a=P(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ci=(e,t,n,r)=>{let i=e._zod.def;P(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},li=(e,t,n,r)=>{let i=e._zod.def;P(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},ui=(e,t,n,r)=>{let i=e._zod.def;P(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},di=(e,t,n,r)=>{let i=e._zod.def;P(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},fi=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;P(a,t,r);let o=t.seen.get(e);o.ref=a},pi=(e,t,n,r)=>{let i=e._zod.def;P(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},mi=(e,t,n,r)=>{let i=e._zod.def;P(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hi=v(`ZodISODateTime`,(e,t)=>{nn.init(e,t),R.init(e,t)});function gi(e){return Sr(hi,e)}const _i=v(`ZodISODate`,(e,t)=>{rn.init(e,t),R.init(e,t)});function vi(e){return Cr(_i,e)}const yi=v(`ZodISOTime`,(e,t)=>{an.init(e,t),R.init(e,t)});function bi(e){return wr(yi,e)}const xi=v(`ZodISODuration`,(e,t)=>{on.init(e,t),R.init(e,t)});function Si(e){return Tr(xi,e)}const Ci=(e,t)=>{Ve.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>We(e,t)},flatten:{value:t=>Ue(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,he,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,he,2)}},isEmpty:{get(){return e.issues.length===0}}})};v(`ZodError`,Ci);const I=v(`ZodError`,Ci,{Parent:Error}),wi=Ge(I),Ti=Ke(I),Ei=qe(I),Di=Ye(I),Oi=Ze(I),ki=Qe(I),Ai=$e(I),ji=et(I),Mi=tt(I),Ni=nt(I),Pi=rt(I),Fi=it(I),L=v(`ZodType`,(e,t)=>(A.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Xr(e,`input`),output:Xr(e,`output`)}}),e.toJSONSchema=Yr(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(C(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>w(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>wi(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ei(e,t,n),e.parseAsync=async(t,n)=>Ti(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Di(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Oi(e,t,n),e.decode=(t,n)=>ki(e,t,n),e.encodeAsync=async(t,n)=>Ai(e,t,n),e.decodeAsync=async(t,n)=>ji(e,t,n),e.safeEncode=(t,n)=>Mi(e,t,n),e.safeDecode=(t,n)=>Ni(e,t,n),e.safeEncodeAsync=async(t,n)=>Pi(e,t,n),e.safeDecodeAsync=async(t,n)=>Fi(e,t,n),e.refine=(t,n)=>e.check(za(t,n)),e.superRefine=t=>e.check(Ba(t)),e.overwrite=t=>e.check(N(t)),e.optional=()=>xa(e),e.exactOptional=()=>Ca(e),e.nullable=()=>Ta(e),e.nullish=()=>xa(Ta(e)),e.nonoptional=t=>ja(e,t),e.array=()=>la(e),e.or=t=>pa([e,t]),e.and=t=>ha(e,t),e.transform=t=>Fa(e,ya(t)),e.default=t=>Da(e,t),e.prefault=t=>ka(e,t),e.catch=t=>Na(e,t),e.pipe=t=>Fa(e,t),e.readonly=()=>La(e),e.describe=t=>{let n=e.clone();return M.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return M.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return M.get(e);let n=e.clone();return M.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Ii=v(`_ZodString`,(e,t)=>{Wt.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qr(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(jr(...t)),e.includes=(...t)=>e.check(Pr(...t)),e.startsWith=(...t)=>e.check(Fr(...t)),e.endsWith=(...t)=>e.check(Ir(...t)),e.min=(...t)=>e.check(kr(...t)),e.max=(...t)=>e.check(Or(...t)),e.length=(...t)=>e.check(Ar(...t)),e.nonempty=(...t)=>e.check(kr(1,...t)),e.lowercase=t=>e.check(Mr(t)),e.uppercase=t=>e.check(Nr(t)),e.trim=()=>e.check(Rr()),e.normalize=(...t)=>e.check(Lr(...t)),e.toLowerCase=()=>e.check(zr()),e.toUpperCase=()=>e.check(Br()),e.slugify=()=>e.check(Vr())}),Li=v(`ZodString`,(e,t)=>{Wt.init(e,t),Ii.init(e,t),e.email=t=>e.check(er(zi,t)),e.url=t=>e.check(or(Hi,t)),e.jwt=t=>e.check(xr(ra,t)),e.emoji=t=>e.check(sr(Ui,t)),e.guid=t=>e.check(tr(Bi,t)),e.uuid=t=>e.check(nr(Vi,t)),e.uuidv4=t=>e.check(rr(Vi,t)),e.uuidv6=t=>e.check(ir(Vi,t)),e.uuidv7=t=>e.check(ar(Vi,t)),e.nanoid=t=>e.check(cr(Wi,t)),e.guid=t=>e.check(tr(Bi,t)),e.cuid=t=>e.check(lr(Gi,t)),e.cuid2=t=>e.check(ur(Ki,t)),e.ulid=t=>e.check(dr(qi,t)),e.base64=t=>e.check(vr(ea,t)),e.base64url=t=>e.check(yr(ta,t)),e.xid=t=>e.check(fr(Ji,t)),e.ksuid=t=>e.check(pr(Yi,t)),e.ipv4=t=>e.check(mr(Xi,t)),e.ipv6=t=>e.check(hr(Zi,t)),e.cidrv4=t=>e.check(gr(Qi,t)),e.cidrv6=t=>e.check(_r($i,t)),e.e164=t=>e.check(br(na,t)),e.datetime=t=>e.check(gi(t)),e.date=t=>e.check(vi(t)),e.time=t=>e.check(bi(t)),e.duration=t=>e.check(Si(t))});function Ri(e){return $n(Li,e)}const R=v(`ZodStringFormat`,(e,t)=>{j.init(e,t),Ii.init(e,t)}),zi=v(`ZodEmail`,(e,t)=>{qt.init(e,t),R.init(e,t)}),Bi=v(`ZodGUID`,(e,t)=>{Gt.init(e,t),R.init(e,t)}),Vi=v(`ZodUUID`,(e,t)=>{Kt.init(e,t),R.init(e,t)}),Hi=v(`ZodURL`,(e,t)=>{Jt.init(e,t),R.init(e,t)}),Ui=v(`ZodEmoji`,(e,t)=>{Yt.init(e,t),R.init(e,t)}),Wi=v(`ZodNanoID`,(e,t)=>{Xt.init(e,t),R.init(e,t)}),Gi=v(`ZodCUID`,(e,t)=>{Zt.init(e,t),R.init(e,t)}),Ki=v(`ZodCUID2`,(e,t)=>{Qt.init(e,t),R.init(e,t)}),qi=v(`ZodULID`,(e,t)=>{$t.init(e,t),R.init(e,t)}),Ji=v(`ZodXID`,(e,t)=>{en.init(e,t),R.init(e,t)}),Yi=v(`ZodKSUID`,(e,t)=>{tn.init(e,t),R.init(e,t)}),Xi=v(`ZodIPv4`,(e,t)=>{sn.init(e,t),R.init(e,t)}),Zi=v(`ZodIPv6`,(e,t)=>{cn.init(e,t),R.init(e,t)}),Qi=v(`ZodCIDRv4`,(e,t)=>{ln.init(e,t),R.init(e,t)}),$i=v(`ZodCIDRv6`,(e,t)=>{un.init(e,t),R.init(e,t)}),ea=v(`ZodBase64`,(e,t)=>{fn.init(e,t),R.init(e,t)}),ta=v(`ZodBase64URL`,(e,t)=>{mn.init(e,t),R.init(e,t)}),na=v(`ZodE164`,(e,t)=>{hn.init(e,t),R.init(e,t)}),ra=v(`ZodJWT`,(e,t)=>{_n.init(e,t),R.init(e,t)}),ia=v(`ZodUnknown`,(e,t)=>{vn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function aa(){return Er(ia)}const oa=v(`ZodNever`,(e,t)=>{yn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$r(e,t,n,r)});function sa(e){return Dr(oa,e)}const ca=v(`ZodArray`,(e,t)=>{xn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ri(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(kr(t,n)),e.nonempty=t=>e.check(kr(1,t)),e.max=(t,n)=>e.check(Or(t,n)),e.length=(t,n)=>e.check(Ar(t,n)),e.unwrap=()=>e.element});function la(e,t){return Hr(ca,e,t)}const ua=v(`ZodObject`,(e,t)=>{En.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ii(e,t,n,r),x(e,`shape`,()=>t.shape),e.keyof=()=>_a(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:aa()}),e.loose=()=>e.clone({...e._zod.def,catchall:aa()}),e.strict=()=>e.clone({...e._zod.def,catchall:sa()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Me(e,t),e.safeExtend=t=>Ne(e,t),e.merge=t=>Pe(e,t),e.pick=t=>Ae(e,t),e.omit=t=>je(e,t),e.partial=(...t)=>Fe(ba,e,t[0]),e.required=(...t)=>Ie(Aa,e,t[0])});function da(e,t){return new ua({type:`object`,shape:e??{},...T(t)})}const fa=v(`ZodUnion`,(e,t)=>{On.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ai(e,t,n,r),e.options=t.options});function pa(e,t){return new fa({type:`union`,options:e,...T(t)})}const ma=v(`ZodIntersection`,(e,t)=>{kn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oi(e,t,n,r)});function ha(e,t){return new ma({type:`intersection`,left:e,right:t})}const ga=v(`ZodEnum`,(e,t)=>{Mn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ei(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new ga({...t,checks:[],...T(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new ga({...t,checks:[],...T(r),entries:i})}});function _a(e,t){return new ga({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...T(t)})}const va=v(`ZodTransform`,(e,t)=>{Nn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ni(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new fe(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(O(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(O(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ya(e){return new va({type:`transform`,transform:e})}const ba=v(`ZodOptional`,(e,t)=>{Fn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xa(e){return new ba({type:`optional`,innerType:e})}const Sa=v(`ZodExactOptional`,(e,t)=>{In.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ca(e){return new Sa({type:`optional`,innerType:e})}const wa=v(`ZodNullable`,(e,t)=>{Ln.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>si(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ta(e){return new wa({type:`nullable`,innerType:e})}const Ea=v(`ZodDefault`,(e,t)=>{Rn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>li(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Da(e,t){return new Ea({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ee(t)}})}const Oa=v(`ZodPrefault`,(e,t)=>{Bn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ui(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ka(e,t){return new Oa({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ee(t)}})}const Aa=v(`ZodNonOptional`,(e,t)=>{Vn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ci(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ja(e,t){return new Aa({type:`nonoptional`,innerType:e,...T(t)})}const Ma=v(`ZodCatch`,(e,t)=>{Un.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>di(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Na(e,t){return new Ma({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Pa=v(`ZodPipe`,(e,t)=>{Wn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fi(e,t,n,r),e.in=t.in,e.out=t.out});function Fa(e,t){return new Pa({type:`pipe`,in:e,out:t})}const Ia=v(`ZodReadonly`,(e,t)=>{Kn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function La(e){return new Ia({type:`readonly`,innerType:e})}const Ra=v(`ZodCustom`,(e,t)=>{Jn.init(e,t),L.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ti(e,t,n,r)});function za(e,t={}){return Ur(Ra,e,t)}function Ba(e){return Wr(e)}const Va=da({detail:Ri()}),Ha=da({error:Ri()});function Ua(e){if(!e)return`Unknown error`;if(e instanceof Error){let t=Va.safeParse(e.cause);return t.success?t.data.detail:Wa(e.message)}if(typeof e==`object`){let t=Va.safeParse(e);if(t.success)return t.data.detail;let n=Ha.safeParse(e);if(n.success)return n.data.error}try{return JSON.stringify(e)}catch{return String(e)}}function Wa(e){let t=Ga(e);if(!t)return e;let n=Va.safeParse(t);if(n.success)return n.data.detail;let r=Ha.safeParse(t);return r.success?r.data.error:e}function Ga(e){try{return JSON.parse(e)}catch{return e}}function z(e){return e.FS}const Ka=`notebook.py`,qa=`/marimo`,B={NOTEBOOK_FILENAME:Ka,HOME_DIR:qa,createHomeDir:e=>{let t=z(e);try{t.mkdirTree(qa)}catch{}t.chdir(qa)},mountFS:e=>{z(e).mount(e.FS.filesystems.IDBFS,{root:`.`},qa)},populateFilesToMemory:async e=>{await Ja(e,!0)},persistFilesToRemote:async e=>{await Ja(e,!1)},readNotebook:e=>{let t=z(e),n=`${qa}/${Ka}`;return ue(t.readFile(n))},initNotebookCode:e=>{let{pyodide:t,filename:n,code:r}=e,i=z(t),a=e=>{try{return ue(i.readFile(e))}catch{return null}};if(n&&n!==Ka){let e=a(n);if(e)return{code:e,filename:n}}return i.writeFile(Ka,r),{code:r,filename:Ka}}};function Ja(e,t){return new Promise((n,r)=>{z(e).syncfs(t,e=>{if(e instanceof Error){r(e);return}n()})})}var Ya=Object.defineProperty,V=(e,t)=>Ya(e,`name`,{value:t,configurable:!0}),Xa=(e=>typeof u<`u`?u:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof u<`u`?u:e)[t]}):e)(function(e){if(typeof u<`u`)return u.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});function Za(e){return!isNaN(parseFloat(e))&&isFinite(e)}V(Za,`_isNumber`);function H(e){return e.charAt(0).toUpperCase()+e.substring(1)}V(H,`_capitalize`);function Qa(e){return function(){return this[e]}}V(Qa,`_getter`);var U=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],W=[`columnNumber`,`lineNumber`],G=[`fileName`,`functionName`,`source`],$a=U.concat(W,G,[`args`],[`evalOrigin`]);function K(e){if(e)for(var t=0;t<$a.length;t++)e[$a[t]]!==void 0&&this[`set`+H($a[t])](e[$a[t]])}for(V(K,`StackFrame`),K.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof K)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new K(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n}},K.fromString=V(function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),s=o[1],c=o[2],l=o[3];return new K({functionName:r,args:i||void 0,fileName:s,lineNumber:c||void 0,columnNumber:l||void 0})},`StackFrame$$fromString`),q=0;q-1&&(e=e.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));var t=e.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),n=t.match(/ (\(.+\)$)/);t=n?t.replace(n[0],``):t;var r=this.extractLocation(n?n[1]:t);return new eo({functionName:n&&t||void 0,fileName:[`eval`,``].indexOf(r[0])>-1?void 0:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)},`ErrorStackParser$$parseV8OrIE`),parseFFOrSafari:V(function(e){return e.stack.split(` +`).filter(function(e){return!e.match(t)},this).map(function(e){if(e.indexOf(` > eval`)>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),e.indexOf(`@`)===-1&&e.indexOf(`:`)===-1)return new eo({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,i=this.extractLocation(e.replace(t,``));return new eo({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})},this)},`ErrorStackParser$$parseFFOrSafari`)}}V(to,`ErrorStackParser`);var no=new to,X=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`&&!process.browser,ro=X&&typeof module<`u`&&typeof module.exports<`u`&&typeof Xa<`u`&&typeof __dirname<`u`,io=X&&!ro;globalThis.Bun;var ao=!X&&!(typeof Deno<`u`),oo=ao&&typeof window==`object`&&typeof document==`object`&&typeof document.createElement==`function`&&`sessionStorage`in window&&typeof importScripts!=`function`,so=ao&&typeof importScripts==`function`&&typeof self==`object`;typeof navigator==`object`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Chrome`)==-1&&navigator.userAgent.indexOf(`Safari`);var co,lo,uo,fo,po;async function mo(){if(!X||(co=(await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1))).default,fo=await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1)),po=await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1)),uo=(await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1))).default,lo=await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1)),vo=lo.sep,typeof Xa<`u`))return;let e={fs:fo,crypto:await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1)),ws:await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1)),child_process:await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1))};globalThis.require=function(t){return e[t]}}V(mo,`initNodeModules`);function ho(e,t){return lo.resolve(t||`.`,e)}V(ho,`node_resolvePath`);function go(e,t){return t===void 0&&(t=location),new URL(e,t).toString()}V(go,`browser_resolvePath`);var _o=X?ho:go,vo;X||(vo=`/`);function yo(e,t){return e.startsWith(`file://`)&&(e=e.slice(7)),e.includes(`://`)?{response:fetch(e)}:{binary:po.readFile(e).then(e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}}V(yo,`node_getBinaryResponse`);function bo(e,t){let n=new URL(e,location);return{response:fetch(n,t?{integrity:t}:{})}}V(bo,`browser_getBinaryResponse`);var xo=X?yo:bo;async function So(e,t){let{response:n,binary:r}=xo(e,t);if(r)return r;let i=await n;if(!i.ok)throw Error(`Failed to load '${e}': request failed.`);return new Uint8Array(await i.arrayBuffer())}V(So,`loadBinaryFile`);var Co;if(oo)Co=V(async e=>await import(e),`loadScript`);else if(so)Co=V(async e=>{try{globalThis.importScripts(e)}catch(t){if(t instanceof TypeError)await import(e);else throw t}},`loadScript`);else if(X)Co=wo;else throw Error(`Cannot determine runtime environment`);async function wo(e){e.startsWith(`file://`)&&(e=e.slice(7)),e.includes(`://`)?uo.runInThisContext(await(await fetch(e)).text()):await import(co.pathToFileURL(e).href)}V(wo,`nodeLoadScript`);async function To(e){if(X){await mo();let t=await po.readFile(e,{encoding:`utf8`});return JSON.parse(t)}else return await(await fetch(e)).json()}V(To,`loadLockFile`);async function Eo(){if(ro)return __dirname;let e;try{throw Error()}catch(t){e=t}let t=no.parse(e)[0].fileName;if(X&&!t.startsWith(`file://`)&&(t=`file://${t}`),io){let e=await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1));return(await import(`./__vite-browser-external-BkzFKOxE.js`).then(l(1))).fileURLToPath(e.dirname(t))}let n=t.lastIndexOf(vo);if(n===-1)throw Error(`Could not extract indexURL path from pyodide module location`);return t.slice(0,n)}V(Eo,`calculateDirname`);function Do(e){let t=e.FS,n=e.FS.filesystems.MEMFS,r=e.PATH,i={DIR_MODE:16895,FILE_MODE:33279,mount:function(e){if(!e.opts.fileSystemHandle)throw Error(`opts.fileSystemHandle is required`);return n.mount.apply(null,arguments)},syncfs:async(e,t,n)=>{try{let r=i.getLocalSet(e),a=await i.getRemoteSet(e),o=t?a:r,s=t?r:a;await i.reconcile(e,o,s),n(null)}catch(e){n(e)}},getLocalSet:e=>{let n=Object.create(null);function i(e){return e!==`.`&&e!==`..`}V(i,`isRealDir`);function a(e){return t=>r.join2(e,t)}V(a,`toAbsolute`);let o=t.readdir(e.mountpoint).filter(i).map(a(e.mountpoint));for(;o.length;){let e=o.pop(),r=t.stat(e);t.isDir(r.mode)&&o.push.apply(o,t.readdir(e).filter(i).map(a(e))),n[e]={timestamp:r.mtime,mode:r.mode}}return{type:`local`,entries:n}},getRemoteSet:async e=>{let t=Object.create(null),n=await Oo(e.opts.fileSystemHandle);for(let[a,o]of n)a!==`.`&&(t[r.join2(e.mountpoint,a)]={timestamp:o.kind===`file`?new Date((await o.getFile()).lastModified):new Date,mode:o.kind===`file`?i.FILE_MODE:i.DIR_MODE});return{type:`remote`,entries:t,handles:n}},loadLocalEntry:e=>{let r=t.lookupPath(e).node,i=t.stat(e);if(t.isDir(i.mode))return{timestamp:i.mtime,mode:i.mode};if(t.isFile(i.mode))return r.contents=n.getFileDataAsTypedArray(r),{timestamp:i.mtime,mode:i.mode,contents:r.contents};throw Error(`node type not supported`)},storeLocalEntry:(e,n)=>{if(t.isDir(n.mode))t.mkdirTree(e,n.mode);else if(t.isFile(n.mode))t.writeFile(e,n.contents,{canOwn:!0});else throw Error(`node type not supported`);t.chmod(e,n.mode),t.utime(e,n.timestamp,n.timestamp)},removeLocalEntry:e=>{var n=t.stat(e);t.isDir(n.mode)?t.rmdir(e):t.isFile(n.mode)&&t.unlink(e)},loadRemoteEntry:async e=>{if(e.kind===`file`){let t=await e.getFile();return{contents:new Uint8Array(await t.arrayBuffer()),mode:i.FILE_MODE,timestamp:new Date(t.lastModified)}}else{if(e.kind===`directory`)return{mode:i.DIR_MODE,timestamp:new Date};throw Error(`unknown kind: `+e.kind)}},storeRemoteEntry:async(e,n,i)=>{let a=e.get(r.dirname(n)),o=t.isFile(i.mode)?await a.getFileHandle(r.basename(n),{create:!0}):await a.getDirectoryHandle(r.basename(n),{create:!0});if(o.kind===`file`){let e=await o.createWritable();await e.write(i.contents),await e.close()}e.set(n,o)},removeRemoteEntry:async(e,t)=>{await e.get(r.dirname(t)).removeEntry(r.basename(t)),e.delete(t)},reconcile:async(e,n,a)=>{let o=0,s=[];Object.keys(n.entries).forEach(function(e){let r=n.entries[e],i=a.entries[e];(!i||t.isFile(r.mode)&&r.timestamp.getTime()>i.timestamp.getTime())&&(s.push(e),o++)}),s.sort();let c=[];if(Object.keys(a.entries).forEach(function(e){n.entries[e]||(c.push(e),o++)}),c.sort().reverse(),!o)return;let l=n.type===`remote`?n.handles:a.handles;for(let t of s){let n=r.normalize(t.replace(e.mountpoint,`/`)).substring(1);if(a.type===`local`){let e=l.get(n),r=await i.loadRemoteEntry(e);i.storeLocalEntry(t,r)}else{let e=i.loadLocalEntry(t);await i.storeRemoteEntry(l,n,e)}}for(let t of c)if(a.type===`local`)i.removeLocalEntry(t);else{let n=r.normalize(t.replace(e.mountpoint,`/`)).substring(1);await i.removeRemoteEntry(l,n)}}};e.FS.filesystems.NATIVEFS_ASYNC=i}V(Do,`initializeNativeFS`);var Oo=V(async e=>{let t=[];async function n(e){for await(let r of e.values())t.push(r),r.kind===`directory`&&await n(r)}V(n,`collect`),await n(e);let r=new Map;r.set(`.`,e);for(let n of t){let t=(await e.resolve(n)).join(`/`);r.set(t,n)}return r},`getFsHandles`);function ko(e){let t={noImageDecoding:!0,noAudioDecoding:!0,noWasmDecoding:!1,preRun:Po(e),quit(e,n){throw t.exited={status:e,toThrow:n},n},print:e.stdout,printErr:e.stderr,thisProgram:e._sysExecutable,arguments:e.args,API:{config:e},locateFile:t=>e.indexURL+t,instantiateWasm:Fo(e.indexURL)};return t}V(ko,`createSettings`);function Ao(e){return function(t){try{t.FS.mkdirTree(e)}catch(t){console.error(`Error occurred while making a home directory '${e}':`),console.error(t),console.error(`Using '/' for a home directory instead`),e=`/`}t.FS.chdir(e)}}V(Ao,`createHomeDirectory`);function jo(e){return function(t){Object.assign(t.ENV,e)}}V(jo,`setEnvironment`);function Mo(e){return e?[async t=>{t.addRunDependency(`fsInitHook`);try{await e(t.FS,{sitePackages:t.API.sitePackages})}finally{t.removeRunDependency(`fsInitHook`)}}]:[]}V(Mo,`callFsInitHook`);function No(e){let t=So(e);return async e=>{let n=e._py_version_major(),r=e._py_version_minor();e.FS.mkdirTree(`/lib`),e.API.sitePackages=`/lib/python${n}.${r}/site-packages`,e.FS.mkdirTree(e.API.sitePackages),e.addRunDependency(`install-stdlib`);try{let i=await t;e.FS.writeFile(`/lib/python${n}${r}.zip`,i)}catch(e){console.error(`Error occurred while installing the standard library:`),console.error(e)}finally{e.removeRunDependency(`install-stdlib`)}}}V(No,`installStdlib`);function Po(e){let t;return t=e.stdLibURL==null?e.indexURL+`python_stdlib.zip`:e.stdLibURL,[...Mo(e.fsInit),No(t),Ao(e.env.HOME),jo(e.env),Do]}V(Po,`getFileSystemInitializationFuncs`);function Fo(e){if(typeof WasmOffsetConverter<`u`)return;let{binary:t,response:n}=xo(e+`pyodide.asm.wasm`);return function(e,r){return async function(){try{let i;i=n?await WebAssembly.instantiateStreaming(n,e):await WebAssembly.instantiate(await t,e);let{instance:a,module:o}=i;r(a,o)}catch(e){console.warn(`wasm instantiation failed!`),console.warn(e)}}(),{}}}V(Fo,`getInstantiateWasmFunc`);var Io=`0.27.7`;async function Lo(e={}){var t,n;await mo();let r=e.indexURL||await Eo();r=_o(r),r.endsWith(`/`)||(r+=`/`),e.indexURL=r;let i={fullStdLib:!1,jsglobals:globalThis,stdin:globalThis.prompt?globalThis.prompt:void 0,lockFileURL:r+`pyodide-lock.json`,args:[],env:{},packageCacheDir:r,packages:[],enableRunUntilComplete:!0,checkAPIVersion:!0,BUILD_ID:`e94377f5ce7dcf67e0417b69a0016733c2cfb6b4622ee8c490a6f17eb58e863b`},a=Object.assign(i,e);(t=a.env).HOME??(t.HOME=`/home/pyodide`),(n=a.env).PYTHONINSPECT??(n.PYTHONINSPECT=`1`);let o=ko(a),s=o.API;if(s.lockFilePromise=To(a.lockFileURL),typeof _createPyodideModule!=`function`){let e=`${a.indexURL}pyodide.asm.js`;await Co(e)}let c;if(e._loadSnapshot){let t=await e._loadSnapshot;c=ArrayBuffer.isView(t)?t:new Uint8Array(t),o.noInitialRun=!0,o.INITIAL_MEMORY=c.length}let l=await _createPyodideModule(o);if(o.exited)throw o.exited.toThrow;if(e.pyproxyToStringRepr&&s.setPyProxyToStringMethod(!0),s.version!==Io&&a.checkAPIVersion)throw Error(`Pyodide version does not match: '${Io}' <==> '${s.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);l.locateFile=e=>{throw Error(`Didn't expect to load any more file_packager files!`)};let u;c&&(u=s.restoreSnapshot(c));let d=s.finalizeBootstrap(u,e._snapshotDeserializer);return s.sys.path.insert(0,``),d.version.includes(`dev`)||s.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${d.version}/full/`),s._pyodide.set_excepthook(),await s.packageIndexReady,s.initializeStreams(a.stdin,a.stdout,a.stderr),d}V(Lo,`loadPyodide`);function Ro(e){return`marimo-base`}const Z=new class{spans=[];startSpan(e,t={}){let n={name:e,startTime:Date.now(),attributes:t,end:(e=`ok`)=>this.endSpan(n,e)};return this.spans.push(n),n}endSpan(e,t=`ok`){e.endTime=Date.now(),e.status=t}getSpans(){return this.spans}wrap(e,t,n={}){let r=this.startSpan(t||e.name,n);try{let t=e();return this.endSpan(r),t}catch(e){throw this.endSpan(r,`error`),e}}wrapAsync(e,t,n={}){return(async(...r)=>{let i=this.startSpan(t||e.name,n);try{let t=await e(...r);return this.endSpan(i),t}catch(e){throw this.endSpan(i,`error`),e}})}logSpans(){}};globalThis.t=Z;var zo=class{pyodide=null;get requirePyodide(){return h(this.pyodide,`Pyodide not loaded`),this.pyodide}async bootstrap(e){return await this.loadPyodideAndPackages(e)}async loadPyodideAndPackages(e){if(!Lo)throw Error(`loadPyodide is not defined`);let t=Z.startSpan(`loadPyodide`);try{let n=await Lo({packages:[`micropip`,`msgspec`,Ro(e.version),`Markdown`,`pymdown-extensions`,`narwhals`,`packaging`],_makeSnapshot:!1,lockFileURL:`https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,indexURL:`https://cdn.jsdelivr.net/pyodide/${e.pyodideVersion}/full/`});return this.pyodide=n,t.end(`ok`),n}catch(e){throw _.error(`Failed to load Pyodide`,e),e}}async mountFilesystem(e){let t=Z.startSpan(`mountFilesystem`);return B.createHomeDir(this.requirePyodide),B.mountFS(this.requirePyodide),await B.populateFilesToMemory(this.requirePyodide),t.end(`ok`),B.initNotebookCode({pyodide:this.requirePyodide,code:e.code,filename:e.filename})}async startSession(e){let{code:t,filename:n,onMessage:r,queryParameters:i,userConfig:a}=e;self.messenger={callback:r},self.query_params=i,self.user_config=a;let o=Z.startSpan(`startSession.runPython`),s=n||B.NOTEBOOK_FILENAME,[c,l,u]=this.requirePyodide.runPython(` + print("[py] Starting marimo...") + import asyncio + import js + from marimo._pyodide.bootstrap import create_session, instantiate + + assert js.messenger, "messenger is not defined" + assert js.query_params, "query_params is not defined" + + session, bridge = create_session( + filename="${s}", + query_params=js.query_params.to_py(), + message_callback=js.messenger.callback, + user_config=js.user_config.to_py(), + ) + + def init(auto_instantiate=True): + instantiate(session, auto_instantiate) + asyncio.create_task(session.start()) + + # Find the packages to install + with open("${s}", "r") as f: + packages = session.find_packages(f.read()) + + bridge, init, packages`);o.end();let d=new Set(u.toJs());return this.loadNotebookDeps(t,d).then(()=>l(a.runtime.auto_instantiate)),c}async loadNotebookDeps(e,t){let n=this.requirePyodide;e.includes(`mo.sql`)&&(e=`import pandas\n${e}`,e=`import duckdb\n${e}`,e=`import sqlglot\n${e}`,e.includes(`polars`)&&(e=`import pyarrow\n${e}`)),e=`import docutils\n${e}`,e=`import pygments\n${e}`,e=`import jedi\n${e}`,e=`import pyodide_http\n${e}`;let r=[...t],i=Z.startSpan(`pyodide.loadPackage`);await n.loadPackagesFromImports(e,{errorCallback:_.error,messageCallback:_.log}),i.end(),i=Z.startSpan(`micropip.install`);let a=r.filter(e=>!n.loadedPackages[e]);a.length>0&&await n.runPythonAsync(` + import micropip + import sys + # Filter out builtins + missing = [p for p in ${JSON.stringify(a)} if p not in sys.modules] + if len(missing) > 0: + print("Loading from micropip:", missing) + await micropip.install(missing) + `).catch(e=>{_.error(`Failed to load packages from micropip`,e)}),i.end()}};async function Bo(e){try{return await import(`/wasm/controller.js?version=${e}`)}catch{return new zo}}function Vo(e){return e.includes(`dev`),`v${Io}`}var Ho=class{buffer;started=!1;onMessage;constructor(e){this.onMessage=e,this.buffer=[]}push=e=>{this.started?this.onMessage(e):this.buffer.push(e)};start=()=>{this.started=!0,this.buffer.forEach(e=>this.onMessage(e)),this.buffer=[]}};const Uo=Z.startSpan(`worker:init`);async function Wo(){try{let e=Xo(),t=Vo(e),n=await Z.wrapAsync(Bo)(e);self.controller=n,Q.send.initializingMessage({message:`Loading marimo...`}),self.pyodide=await Z.wrapAsync(n.bootstrap.bind(n))({version:e,pyodideVersion:t})}catch(e){_.error(`Error bootstrapping`,e),Q.send.initializedError({error:Ua(e)})}}const Go=new Ho(e=>{Q.send.kernelMessage({message:e})}),Ko=new de;let qo=!1;const Jo=d({startSession:async e=>{if(await $,qo){_.warn(`Session already started`);return}qo=!0;try{h(self.controller,`Controller not loaded`),await self.controller.mountFilesystem?.({code:e.code,filename:e.filename});let t=Z.wrapAsync(self.controller.startSession.bind(self.controller)),n=ae(()=>{Q.send.initializingMessage({message:`Initializing notebook...`}),Q.send.initialized({})});Q.send.initializingMessage({message:`Loading notebook and dependencies...`});let r=await t({code:e.code,filename:e.filename,queryParameters:e.queryParameters,userConfig:e.userConfig,onMessage:e=>{n(),Go.push(e)}});Ko.resolve(r),Uo.end(`ok`)}catch(e){Q.send.initializedError({error:Ua(e)}),Uo.end(`error`)}},loadPackages:async e=>{let t=Z.startSpan(`loadPackages`);await $,e.includes(`mo.sql`)&&(e=`import pandas\n${e}`,e=`import duckdb\n${e}`,e=`import sqlglot\n${e}`,e.includes(`polars`)&&(e=`import pyarrow\n${e}`)),await self.pyodide.loadPackagesFromImports(e,{messageCallback:_.log,errorCallback:_.error}),t.end()},readFile:async e=>{let t=Z.startSpan(`readFile`);await $;let n=ue(self.pyodide.FS.readFile(e));return t.end(),n},setInterruptBuffer:async e=>{await $,self.pyodide.setInterruptBuffer(e)},addPackage:async e=>{await $;let{package:t}=e,n=t.split(` `).map(e=>e.trim()),r=await self.pyodide.runPythonAsync(` + import micropip + import json + response = None + try: + await micropip.install(${JSON.stringify(n)}) + response = {"success": True} + except Exception as e: + response = {"success": False, "error": str(e)} + json.dumps(response) + `);return JSON.parse(r)},removePackage:async e=>{await $;let{package:t}=e,n=await self.pyodide.runPythonAsync(` + import micropip + import json + response = None + try: + micropip.uninstall("${t}") + response = {"success": True} + except Exception as e: + response = {"success": False, "error": str(e)} + json.dumps(response) + `);return JSON.parse(n)},listPackages:async()=>{let e=Z.startSpan(`listPackages`);await $;let t=await self.pyodide.runPythonAsync(` + import json + import micropip + + packages = micropip.list() + packages = [ + {"name": p.name, "version": p.version} + for p in packages.values() + ] + json.dumps(sorted(packages, key=lambda pkg: pkg["name"])) + `);return e.end(),{packages:JSON.parse(t)}},saveNotebook:async e=>{await $,await self.pyodide.runPython(` + from marimo._pyodide.bootstrap import save_file + save_file + `)(JSON.stringify(e),B.NOTEBOOK_FILENAME)},async bridge(e){let t=Z.startSpan(`bridge`,{functionName:e.functionName});await $;let{functionName:n,payload:r}=e;n===`format`&&await self.pyodide.runPythonAsync(` + import micropip + + try: + import black + except ModuleNotFoundError: + await micropip.install("black") + `),n===`export_markdown`&&await self.pyodide.runPythonAsync(` + import micropip + + try: + import yaml + except ModuleNotFoundError: + await micropip.install("pyyaml") + `);let i=await Ko.promise,a=r==null?null:typeof r==`string`?r:JSON.stringify(r),o=a==null?await i[n]():await i[n](a);return Yo.has(n)&&B.persistFilesToRemote(self.pyodide),t.end(),typeof o==`string`?JSON.parse(o):o}}),Q=ee({transport:m({transportId:`marimo-transport`}),requestHandler:Jo});Q.send(`ready`,{}),Q.addMessageListener(`consumerReady`,async()=>{await $,Go.start()});const Yo=new Set([`save`,`save_app_config`,`rename_file`,`create_file_or_directory`,`delete_file_or_directory`,`move_file_or_directory`,`update_file`]);function Xo(){return self.name}const $=Z.wrapAsync(Wo)();export{o as t}; \ No newline at end of file diff --git a/docs/assets/workflow-ZGK5flRg.js b/docs/assets/workflow-ZGK5flRg.js new file mode 100644 index 0000000..9a2533f --- /dev/null +++ b/docs/assets/workflow-ZGK5flRg.js @@ -0,0 +1 @@ +import{t}from"./createLucideIcon-CW2xpJ57.js";var e=t("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);export{e as t}; diff --git a/docs/assets/write-secret-modal-BL-FoIag.js b/docs/assets/write-secret-modal-BL-FoIag.js new file mode 100644 index 0000000..98a49af --- /dev/null +++ b/docs/assets/write-secret-modal-BL-FoIag.js @@ -0,0 +1 @@ +import{s as V}from"./chunk-LvLJmgfZ.js";import{t as B}from"./react-BGmjiNul.js";import{t as G}from"./compiler-runtime-DeeZ7FnK.js";import{t as H}from"./jsx-runtime-DN_bIXfG.js";import{t as W}from"./button-B8cGZzP5.js";import{r as I}from"./requests-C0HaHO6a.js";import{c as J,i as O,n as Q,s as U,t as X}from"./select-D9lTzMzP.js";import{r as D}from"./input-Bkl2Yfmh.js";import{t as E}from"./use-toast-Bzf3rpev.js";import{a as Z,c as $,i as ee,n as te,r as re}from"./dialog-CF5DtF1E.js";import{t as ae}from"./links-DNmjkr65.js";import{t as P}from"./label-CqyOmxjL.js";import{r as L}from"./field-86WoveRM.js";var oe=G(),T=V(B(),1),t=V(H(),1);function ne(a){return a.sort((e,r)=>e.provider==="env"?1:r.provider==="env"?-1:0)}const le=a=>{let e=(0,oe.c)(43),{providerNames:r,onClose:A,onSuccess:F}=a,{writeSecret:Y}=I(),[o,M]=T.useState(""),[l,R]=T.useState(""),[n,z]=T.useState(r[0]),g;e[0]!==o||e[1]!==n||e[2]!==F||e[3]!==l||e[4]!==Y?(g=async s=>{if(s.preventDefault(),!n){E({title:"Error",description:"No location selected for the secret.",variant:"danger"});return}if(!o||!l||!n){E({title:"Error",description:"Please fill in all fields.",variant:"danger"});return}try{await Y({key:o,value:l,provider:"dotenv",name:n}),E({title:"Secret created",description:"The secret has been created successfully."}),F(o)}catch{E({title:"Error",description:"Failed to create secret. Please try again.",variant:"danger"})}},e[0]=o,e[1]=n,e[2]=F,e[3]=l,e[4]=Y,e[5]=g):g=e[5];let q=g,j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsxs)(Z,{children:[(0,t.jsx)($,{children:"Add Secret"}),(0,t.jsx)(re,{children:"Add a new secret to your environment variables."})]}),e[6]=j):j=e[6];let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(P,{htmlFor:"key",children:"Key"}),e[7]=y):y=e[7];let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s=>{M(se(s.target.value))},e[8]=S):S=e[8];let i;e[9]===o?i=e[10]:(i=(0,t.jsxs)("div",{className:"grid gap-2",children:[y,(0,t.jsx)(D,{id:"key",value:o,onChange:S,placeholder:"MY_SECRET_KEY",required:!0})]}),e[9]=o,e[10]=i);let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(P,{htmlFor:"value",children:"Value"}),e[11]=_):_=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=s=>R(s.target.value),e[12]=b):b=e[12];let c;e[13]===l?c=e[14]:(c=(0,t.jsx)(D,{id:"value",type:"password",value:l,onChange:b,required:!0,autoComplete:"off"}),e[13]=l,e[14]=c);let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=ie()&&(0,t.jsx)(L,{children:"Note: You are sending this key over http."}),e[15]=C):C=e[15];let d;e[16]===c?d=e[17]:(d=(0,t.jsxs)("div",{className:"grid gap-2",children:[_,c,C]}),e[16]=c,e[17]=d);let N;e[18]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(P,{htmlFor:"location",children:"Location"}),e[18]=N):N=e[18];let m;e[19]===r.length?m=e[20]:(m=r.length===0&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No dotenv locations configured."}),e[19]=r.length,e[20]=m);let h;e[21]!==n||e[22]!==r?(h=r.length>0&&(0,t.jsxs)(X,{value:n,onValueChange:s=>z(s),children:[(0,t.jsx)(U,{children:(0,t.jsx)(J,{placeholder:"Select a provider"})}),(0,t.jsx)(Q,{children:r.map(ce)})]}),e[21]=n,e[22]=r,e[23]=h):h=e[23];let k;e[24]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsxs)(L,{children:["You can configure the location by setting the"," ",(0,t.jsx)(ae,{href:"https://links.marimo.app/dotenv",children:"dotenv configuration"}),"."]}),e[24]=k):k=e[24];let p;e[25]!==m||e[26]!==h?(p=(0,t.jsxs)("div",{className:"grid gap-2",children:[N,m,h,k]}),e[25]=m,e[26]=h,e[27]=p):p=e[27];let u;e[28]!==d||e[29]!==p||e[30]!==i?(u=(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[i,d,p]}),e[28]=d,e[29]=p,e[30]=i,e[31]=u):u=e[31];let f;e[32]===A?f=e[33]:(f=(0,t.jsx)(W,{type:"button",variant:"outline",onClick:A,children:"Cancel"}),e[32]=A,e[33]=f);let K=!o||!l||!n,v;e[34]===K?v=e[35]:(v=(0,t.jsx)(W,{type:"submit",disabled:K,children:"Add Secret"}),e[34]=K,e[35]=v);let x;e[36]!==f||e[37]!==v?(x=(0,t.jsxs)(ee,{children:[f,v]}),e[36]=f,e[37]=v,e[38]=x):x=e[38];let w;return e[39]!==q||e[40]!==u||e[41]!==x?(w=(0,t.jsx)(te,{children:(0,t.jsxs)("form",{onSubmit:q,children:[j,u,x]})}),e[39]=q,e[40]=u,e[41]=x,e[42]=w):w=e[42],w};function se(a){return a.replaceAll(/\W/g,"_")}function ie(){return window.location.href.startsWith("http://")}function ce(a){return(0,t.jsx)(O,{value:a,children:a},a)}export{ne as n,le as t}; diff --git a/docs/assets/ws-Sb1KIggW.js b/docs/assets/ws-Sb1KIggW.js new file mode 100644 index 0000000..61e531e --- /dev/null +++ b/docs/assets/ws-Sb1KIggW.js @@ -0,0 +1,22 @@ +var p=Object.defineProperty;var y=(s,i,e)=>i in s?p(s,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[i]=e;var o=(s,i,e)=>y(s,typeof i!="symbol"?i+"":i,e);var m;(!globalThis.EventTarget||!globalThis.Event)&&console.error(` + PartySocket requires a global 'EventTarget' class to be available! + You can polyfill this global by adding this to your code before any partysocket imports: + + \`\`\` + import 'partysocket/event-target-polyfill'; + \`\`\` + Please file an issue at https://github.com/partykit/partykit if you're still having trouble. +`);var _=class extends Event{constructor(i,e){super("error",e);o(this,"message");o(this,"error");this.message=i.message,this.error=i}},d=class extends Event{constructor(i=1e3,e="",t){super("close",t);o(this,"code");o(this,"reason");o(this,"wasClean",!0);this.code=i,this.reason=e}},u={Event,ErrorEvent:_,CloseEvent:d};function w(s,i){if(!s)throw Error(i)}function b(s){return new s.constructor(s.type,s)}function E(s){return"data"in s?new MessageEvent(s.type,s):"code"in s||"reason"in s?new d(s.code||1999,s.reason||"unknown reason",s):"error"in s?new _(s.error,s):new Event(s.type,s)}var c=typeof process<"u"&&((m=process.versions)==null?void 0:m.node)!==void 0&&typeof document>"u"?E:b,h={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},g=!1,v=class a extends EventTarget{constructor(e,t,n={}){super();o(this,"_ws");o(this,"_retryCount",-1);o(this,"_uptimeTimeout");o(this,"_connectTimeout");o(this,"_shouldReconnect",!0);o(this,"_connectLock",!1);o(this,"_binaryType","blob");o(this,"_closeCalled",!1);o(this,"_messageQueue",[]);o(this,"_debugLogger",console.log.bind(console));o(this,"_url");o(this,"_protocols");o(this,"_options");o(this,"onclose",null);o(this,"onerror",null);o(this,"onmessage",null);o(this,"onopen",null);o(this,"_handleOpen",e=>{this._debug("open event");let{minUptime:t=h.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),t),w(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(n=>{var r;(r=this._ws)==null||r.send(n)}),this._messageQueue=[],this.onopen&&this.onopen(e),this.dispatchEvent(c(e))});o(this,"_handleMessage",e=>{this._debug("message event"),this.onmessage&&this.onmessage(e),this.dispatchEvent(c(e))});o(this,"_handleError",e=>{this._debug("error event",e.message),this._disconnect(void 0,e.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(e),this._debug("exec error listeners"),this.dispatchEvent(c(e)),this._connect()});o(this,"_handleClose",e=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(e),this.dispatchEvent(c(e))});this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._options.debugLogger&&(this._debugLogger=this._options.debugLogger),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return a.CONNECTING}get OPEN(){return a.OPEN}get CLOSING(){return a.CLOSING}get CLOSED(){return a.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((e,t)=>(typeof t=="string"?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?a.CLOSED:a.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(e=1e3,t){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)}reconnect(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED||this._disconnect(e,t),this._connect()}send(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{let{maxEnqueuedMessages:t=h.maxEnqueuedMessages}=this._options;this._messageQueue.length",...e)}_getNextDelay(){let{reconnectionDelayGrowFactor:e=h.reconnectionDelayGrowFactor,minReconnectionDelay:t=h.minReconnectionDelay,maxReconnectionDelay:n=h.maxReconnectionDelay}=this._options,r=0;return this._retryCount>0&&(r=t*e**(this._retryCount-1),r>n&&(r=n)),this._debug("next delay",r),r}_wait(){return new Promise(e=>{setTimeout(e,this._getNextDelay())})}_getNextProtocols(e){if(!e)return Promise.resolve(null);if(typeof e=="string"||Array.isArray(e))return Promise.resolve(e);if(typeof e=="function"){let t=e();if(!t)return Promise.resolve(null);if(typeof t=="string"||Array.isArray(t))return Promise.resolve(t);if(t.then)return t}throw Error("Invalid protocols")}_getNextUrl(e){if(typeof e=="string")return Promise.resolve(e);if(typeof e=="function"){let t=e();if(typeof t=="string")return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;let{maxRetries:e=h.maxRetries,connectionTimeout:t=h.connectionTimeout}=this._options;if(this._retryCount>=e){this._debug("max retries reached",this._retryCount,">=",e);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([n,r])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!g&&(console.error(`\u203C\uFE0F No WebSocket implementation available. You should define options.WebSocket. + +For example, if you're using node.js, run \`npm install ws\`, and then in your code: + +import PartySocket from 'partysocket'; +import WS from 'ws'; + +const partysocket = new PartySocket({ + host: "127.0.0.1:1999", + room: "test-room", + WebSocket: WS +}); + +`),g=!0);let l=this._options.WebSocket||WebSocket;this._debug("connect",{url:n,protocols:r}),this._ws=r?new l(n,r):new l(n),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),t)}).catch(n=>{this._connectLock=!1,this._handleError(new u.ErrorEvent(Error(n.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new u.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(e=1e3,t){if(this._clearTimeouts(),this._ws){this._removeListeners();try{(this._ws.readyState===this.OPEN||this._ws.readyState===this.CONNECTING)&&this._ws.close(e,t),this._handleClose(new u.CloseEvent(e,t,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};export{v as t}; diff --git a/docs/assets/xml-C9-klnEl.js b/docs/assets/xml-C9-klnEl.js new file mode 100644 index 0000000..08f120a --- /dev/null +++ b/docs/assets/xml-C9-klnEl.js @@ -0,0 +1 @@ +import{t}from"./xml-CmKMNcqy.js";export{t as default}; diff --git a/docs/assets/xml-CmKMNcqy.js b/docs/assets/xml-CmKMNcqy.js new file mode 100644 index 0000000..fd0fc28 --- /dev/null +++ b/docs/assets/xml-CmKMNcqy.js @@ -0,0 +1 @@ +import{t as e}from"./java-B5fxTROr.js";var n=Object.freeze(JSON.parse(`{"displayName":"XML","name":"xml","patterns":[{"begin":"(<\\\\?)\\\\s*([-0-9A-Z_a-z]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml","patterns":[{"match":" ([-A-Za-z]+)","name":"entity.other.attribute-name.xml"},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},{"begin":"()","name":"meta.tag.sgml.doctype.xml","patterns":[{"include":"#internalSubset"}]},{"include":"#comments"},{"begin":"(<)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(?=(\\\\s[^>]*)?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"},"3":{"name":"entity.name.tag.namespace.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(>)()","endCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"punctuation.definition.tag.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"entity.name.tag.namespace.xml"},"5":{"name":"punctuation.separator.namespace.xml"},"6":{"name":"entity.name.tag.localname.xml"},"7":{"name":"punctuation.definition.tag.xml"}},"name":"meta.tag.no-content.xml","patterns":[{"include":"#tagStuff"}]},{"begin":"()","name":"meta.tag.xml","patterns":[{"include":"#tagStuff"}]},{"include":"#entity"},{"include":"#bare-ampersand"},{"begin":"<%@","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java-props.embedded.xml","patterns":[{"match":"page|include|taglib","name":"keyword.other.page-props.xml"}]},{"begin":"<%[!=]?(?!--)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"(?!--)%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java.embedded.xml","patterns":[{"include":"source.java"}]},{"begin":"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.unquoted.cdata.xml"}],"repository":{"EntityDecl":{"begin":"()","patterns":[{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},"bare-ampersand":{"match":"&","name":"invalid.illegal.bad-ampersand.xml"},"comments":{"patterns":[{"begin":"<%--","captures":{"0":{"name":"punctuation.definition.comment.xml"},"end":"--%>","name":"comment.block.xml"}},{"begin":"","name":"comment.block.xml","patterns":[{"begin":"--(?!>)","captures":{"0":{"name":"invalid.illegal.bad-comments-or-CDATA.xml"}}}]}]},"doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"entity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(&)([:A-Z_a-z][-.0-:A-Z_a-z]*|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.xml"},"internalSubset":{"begin":"(\\\\[)","captures":{"1":{"name":"punctuation.definition.constant.xml"}},"end":"(])","name":"meta.internalsubset.xml","patterns":[{"include":"#EntityDecl"},{"include":"#parameterEntity"},{"include":"#comments"}]},"parameterEntity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(%)([:A-Z_a-z][-.0-:A-Z_a-z]*)(;)","name":"constant.character.parameter-entity.xml"},"singlequotedString":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"tagStuff":{"patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":"(?:^|\\\\s+)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)\\\\s*="},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]}},"scopeName":"text.xml","embeddedLangs":["java"]}`)),t=[...e,n];export{t}; diff --git a/docs/assets/xquery-9kDflInd.js b/docs/assets/xquery-9kDflInd.js new file mode 100644 index 0000000..9b31d6f --- /dev/null +++ b/docs/assets/xquery-9kDflInd.js @@ -0,0 +1 @@ +import{t as r}from"./xquery-Bq3_mXJv.js";export{r as xQuery}; diff --git a/docs/assets/xquery-Bq3_mXJv.js b/docs/assets/xquery-Bq3_mXJv.js new file mode 100644 index 0000000..0cc755d --- /dev/null +++ b/docs/assets/xquery-Bq3_mXJv.js @@ -0,0 +1 @@ +var x=(function(){function e(z){return{type:z,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"punctuation",style:null},s={type:"axis_specifier",style:"qualifier"},o={",":r},p="after.all.allowing.ancestor.ancestor-or-self.any.array.as.ascending.at.attribute.base-uri.before.boundary-space.by.case.cast.castable.catch.child.collation.comment.construction.contains.content.context.copy.copy-namespaces.count.decimal-format.declare.default.delete.descendant.descendant-or-self.descending.diacritics.different.distance.document.document-node.element.else.empty.empty-sequence.encoding.end.entire.every.exactly.except.external.first.following.following-sibling.for.from.ftand.ftnot.ft-option.ftor.function.fuzzy.greatest.group.if.import.in.inherit.insensitive.insert.instance.intersect.into.invoke.is.item.language.last.lax.least.let.levels.lowercase.map.modify.module.most.namespace.next.no.node.nodes.no-inherit.no-preserve.not.occurs.of.only.option.order.ordered.ordering.paragraph.paragraphs.parent.phrase.preceding.preceding-sibling.preserve.previous.processing-instruction.relationship.rename.replace.return.revalidation.same.satisfies.schema.schema-attribute.schema-element.score.self.sensitive.sentence.sentences.sequence.skip.sliding.some.stable.start.stemming.stop.strict.strip.switch.text.then.thesaurus.times.to.transform.treat.try.tumbling.type.typeswitch.union.unordered.update.updating.uppercase.using.validate.value.variable.version.weight.when.where.wildcards.window.with.without.word.words.xquery".split("."),a=0,i=p.length;a",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],a=0,i=f.length;a\"\'\/?]/);)p+=a;return m(e,t,N(p,o))}else{if(n=="{")return u(t,{type:"codeblock"}),null;if(n=="}")return c(t),null;if(b(t))return n==">"?"tag":n=="/"&&e.eat(">")?(c(t),"tag"):"variable";if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if(n==="("&&e.eat(":"))return u(t,{type:"comment"}),m(e,t,w);if(!s&&(n==='"'||n==="'"))return k(e,t,n);if(n==="$")return m(e,t,T);if(n===":"&&e.eat("="))return"keyword";if(n==="(")return u(t,{type:"paren"}),null;if(n===")")return c(t),null;if(n==="[")return u(t,{type:"bracket"}),null;if(n==="]")return c(t),null;var i=x.propertyIsEnumerable(n)&&x[n];if(s&&n==='"')for(;e.next()!=='"';);if(s&&n==="'")for(;e.next()!=="'";);i||e.eatWhile(/[\w\$_-]/);var g=e.eat(":");!e.eat(":")&&g&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(r=!0);var f=e.current();return i=x.propertyIsEnumerable(f)&&x[f],r&&!i&&(i={type:"function_call",style:"def"}),A(t)?(c(t),"variable"):((f=="element"||f=="attribute"||i.type=="axis_specifier")&&u(t,{type:"xmlconstructor"}),i?i.style:"variable")}}function w(e,t){for(var n=!1,r=!1,s=0,o;o=e.next();){if(o==")"&&n)if(s>0)s--;else{c(t);break}else o==":"&&r&&s++;n=o==":",r=o=="("}return"comment"}function I(e,t){return function(n,r){for(var s;s=n.next();)if(s==e){c(r),t&&(r.tokenize=t);break}else if(n.match("{",!1)&&d(r))return u(r,{type:"codeblock"}),r.tokenize=l,"string";return"string"}}function k(e,t,n,r){let s=I(n,r);return u(t,{type:"string",name:n,tokenize:s}),m(e,t,s)}function T(e,t){var n=/[\w\$_-]/;if(e.eat('"')){for(;e.next()!=='"';);e.eat(":")}else e.eatWhile(n),e.match(":=",!1)||e.eat(":");return e.eatWhile(n),t.tokenize=l,"variable"}function N(e,t){return function(n,r){if(n.eatSpace(),t&&n.eat(">"))return c(r),r.tokenize=l,"tag";if(n.eat("/")||u(r,{type:"tag",name:e,tokenize:l}),n.eat(">"))r.tokenize=l;else return r.tokenize=y,"tag";return"tag"}}function y(e,t){var n=e.next();return n=="/"&&e.eat(">")?(d(t)&&c(t),b(t)&&c(t),"tag"):n==">"?(d(t)&&c(t),"tag"):n=="="?null:n=='"'||n=="'"?k(e,t,n,y):(d(t)||u(t,{type:"attribute",tokenize:y}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(c(t),t.tokenize=l),"attribute")}function D(e,t){for(var n;n=e.next();)if(n=="-"&&e.match("->",!0))return t.tokenize=l,"comment"}function E(e,t){for(var n;n=e.next();)if(n=="]"&&e.match("]",!0))return t.tokenize=l,"comment"}function _(e,t){for(var n;n=e.next();)if(n=="?"&&e.match(">",!0))return t.tokenize=l,"processingInstruction"}function b(e){return h(e,"tag")}function d(e){return h(e,"attribute")}function A(e){return h(e,"xmlconstructor")}function q(e){return e.current()==='"'?e.match(/^[^\"]+\"\:/,!1):e.current()==="'"?e.match(/^[^\"]+\'\:/,!1):!1}function h(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function u(e,t){e.stack.push(t)}function c(e){e.stack.pop(),e.tokenize=e.stack.length&&e.stack[e.stack.length-1].tokenize||l}const M={name:"xquery",startState:function(){return{tokenize:l,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}};export{M as t}; diff --git a/docs/assets/xsl-Dhl_QCID.js b/docs/assets/xsl-Dhl_QCID.js new file mode 100644 index 0000000..e8086ba --- /dev/null +++ b/docs/assets/xsl-Dhl_QCID.js @@ -0,0 +1 @@ +import{t as e}from"./xml-CmKMNcqy.js";var n=Object.freeze(JSON.parse(`{"displayName":"XSL","name":"xsl","patterns":[{"begin":"(<)(xsl)((:))(template)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.namespace.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(>)","name":"meta.tag.xml.template","patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":" (?:([-0-9A-Z_a-z]+)((:)))?([-A-Za-z]+)"},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},{"include":"text.xml"}],"repository":{"doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml"},"singlequotedString":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml"}},"scopeName":"text.xml.xsl","embeddedLangs":["xml"]}`)),t=[...e,n];export{t as default}; diff --git a/docs/assets/xychartDiagram-PRI3JC2R-Pi_FiTJG.js b/docs/assets/xychartDiagram-PRI3JC2R-Pi_FiTJG.js new file mode 100644 index 0000000..b4877b1 --- /dev/null +++ b/docs/assets/xychartDiagram-PRI3JC2R-Pi_FiTJG.js @@ -0,0 +1,7 @@ +var j,Q,K,Z,q,J,tt,it,et,st;import{t as zt}from"./linear-AjjmB_kQ.js";import{n as ui}from"./ordinal-_nQ2r1qQ.js";import{t as xi}from"./range-gMGfxVwZ.js";import"./defaultLocale-BLUna9fQ.js";import"./purify.es-N-2faAGj.js";import"./marked.esm-BZNXs5FA.js";import"./src-Bp_72rVO.js";import{t as Ot}from"./line-x4bpd_8D.js";import{i as Wt}from"./chunk-S3R3BYOJ-By1A-M0T.js";import{n as di}from"./init-DsZRk2YA.js";import{n,r as Ft}from"./src-faGJHwXX.js";import{B as pi,C as Xt,I as fi,T as mi,U as yi,_ as bi,a as Ai,c as Ci,d as wi,v as Si,y as mt,z as ki}from"./chunk-ABZYJK2D-DAD3GlgM.js";import{t as _i}from"./chunk-EXTU4WIE-GbJyzeBy.js";import"./dist-BA8xhrl2.js";import{t as Ti}from"./chunk-JA3XYJ7Z-BlmyoDCa.js";function yt(){var e=ui().unknown(void 0),t=e.domain,i=e.range,s=0,a=1,l,g,f=!1,p=0,_=0,L=.5;delete e.unknown;function w(){var b=t().length,v=ari&&ct.push("'"+this.terminals_[lt]+"'");Bt=R.showPosition?"Parse error on line "+(rt+1)+`: +`+R.showPosition()+` +Expecting `+ct.join(", ")+", got '"+(this.terminals_[I]||I)+"'":"Parse error on line "+(rt+1)+": Unexpected "+(I==Mt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Bt,{text:R.match,token:this.terminals_[I]||I,line:R.yylineno,loc:dt,expected:ct})}if($[0]instanceof Array&&$.length>1)throw Error("Parse Error: multiple actions possible at state: "+N+", token: "+I);switch($[0]){case 1:x.push(I),k.push(R.yytext),o.push(R.yylloc),x.push($[1]),I=null,pt?(I=pt,pt=null):(vt=R.yyleng,d=R.yytext,rt=R.yylineno,dt=R.yylloc,Et>0&&Et--);break;case 2:if(W=this.productions_[$[1]][1],H.$=k[k.length-W],H._$={first_line:o[o.length-(W||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(W||1)].first_column,last_column:o[o.length-1].last_column},ci&&(H._$.range=[o[o.length-(W||1)].range[0],o[o.length-1].range[1]]),ft=this.performAction.apply(H,[d,vt,rt,X.yy,$[1],k,o].concat(li)),ft!==void 0)return ft;W&&(x=x.slice(0,-1*W*2),k=k.slice(0,-1*W),o=o.slice(0,-1*W)),x.push(this.productions_[$[1]][0]),k.push(H.$),o.push(H._$),$t=at[x[x.length-2]][x[x.length-1]],x.push($t);break;case 3:return!0}}return!0},"parse")};U.lexer=(function(){return{EOF:1,parseError:n(function(h,A){if(this.yy.parser)this.yy.parser.parseError(h,A);else throw Error(h)},"parseError"),setInput:n(function(h,A){return this.yy=A||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var h=this._input[0];return this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h,h.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:n(function(h){var A=h.length,x=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===u.length?this.yylloc.first_column:0)+u[u.length-x.length].length-x[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(h){this.unput(this.match.slice(h))},"less"),pastInput:n(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var h=this.pastInput(),A=Array(h.length+1).join("-");return h+this.upcomingInput()+` +`+A+"^"},"showPosition"),test_match:n(function(h,A){var x,u,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),u=h[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],x=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var o in k)this[o]=k[o];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,A,x,u;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),o=0;oA[0].length)){if(A=x,u=o,this.options.backtrack_lexer){if(h=this.test_match(x,k[o]),h!==!1)return h;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(h=this.test_match(A,k[u]),h===!1?!1:h):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){return this.next()||this.lex()},"lex"),begin:n(function(h){this.conditionStack.push(h)},"begin"),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:n(function(h){this.begin(h)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n(function(h,A,x,u){switch(x){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}})();function F(){this.yy={}}return n(F,"Parser"),F.prototype=U,U.Parser=F,new F})();bt.parser=bt;var Ri=bt;function At(e){return e.type==="bar"}n(At,"isBarPlot");function Ct(e){return e.type==="band"}n(Ct,"isBandAxisData");function G(e){return e.type==="linear"}n(G,"isLinearAxisData");var Nt=(j=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((l,g)=>Math.max(g.length,l),0)*i,height:i};let s={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let l of t){let g=Ti(a,1,l),f=g?g.width:l.length*i,p=g?g.height:i;s.width=Math.max(s.width,f),s.height=Math.max(s.height,p)}return a.remove(),s}},n(j,"TextDimensionCalculatorWithFont"),j),Vt=.7,Yt=.2,Ut=(Q=class{constructor(t,i,s,a){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Vt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Vt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),a=Yt*t.width;this.outerPadding=Math.min(s.width/2,a);let l=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,l<=i&&(i-=l,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let s=this.getLabelDimension(),a=Yt*t.height;this.outerPadding=Math.min(s.height/2,a);let l=s.width+this.axisConfig.labelPadding*2;l<=i&&(i-=l,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,a<=i&&(i-=a,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},n(Q,"BaseAxis"),Q),Di=(K=class extends Ut{constructor(t,i,s,a,l){super(t,a,l,i),this.categories=s,this.scale=yt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ft.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},n(K,"BandAxis"),K),Li=(Z=class extends Ut{constructor(t,i,s,a,l){super(t,a,l,i),this.domain=s,this.scale=zt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=zt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},n(Z,"LinearAxis"),Z);function wt(e,t,i,s){let a=new Nt(s);return Ct(e)?new Di(t,i,e.categories,e.title,a):new Li(t,i,[e.min,e.max],e.title,a)}n(wt,"getAxis");var Pi=(q=class{constructor(t,i,s,a){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),a=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=a&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=a,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},n(q,"ChartTitle"),q);function Ht(e,t,i,s){return new Pi(new Nt(s),e,t,i)}n(Ht,"getChartTitleComponent");var vi=(J=class{constructor(t,i,s,a,l){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=a,this.plotIndex=l}getDrawableElement(){let t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]),i;return i=this.orientation==="horizontal"?Ot().y(s=>s[0]).x(s=>s[1])(t):Ot().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},n(J,"LinePlot"),J),Ei=(tt=class{constructor(t,i,s,a,l,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=a,this.orientation=l,this.plotIndex=g}getDrawableElement(){let t=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,s=i/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:this.boundingRect.x,y:a[0]-s,height:i,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(a=>({x:a[0]-s,y:a[1],width:i,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},n(tt,"BarPlot"),tt),Mi=(it=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{let a=new vi(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break;case"bar":{let a=new Ei(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...a.getDrawableElement())}break}return t}},n(it,"BasePlot"),it);function Gt(e,t,i){return new Mi(e,t,i)}n(Gt,"getPlotComponent");var Ii=(et=class{constructor(t,i,s,a){this.chartConfig=t,this.chartData=i,this.componentStore={title:Ht(t,i,s,a),plot:Gt(t,i,s),xAxis:wt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},a),yAxis:wt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},a)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,l=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:l,height:g});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),a=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=f.width,t-=f.width,t>0&&(l+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:l,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.xAxis.setRange([s,s+l]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:a+g}),this.componentStore.yAxis.setRange([a,a+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(p=>At(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,a=0,l=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:g,height:f});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=p.width,a=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=p.height,l=s+p.height,t>0&&(g+=t,t=0),i>0&&(f+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:f}),this.componentStore.plot.setBoundingBoxXY({x:a,y:l}),this.componentStore.yAxis.setRange([a,a+g]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:s}),this.componentStore.xAxis.setRange([l,l+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:l}),this.chartData.plots.some(_=>At(_))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},n(et,"Orchestrator"),et),$i=(st=class{static build(t,i,s,a){return new Ii(t,i,s,a).getDrawableElement()}},n(st,"XYChartBuilder"),st),nt=0,jt,ht=Tt(),ot=_t(),C=Rt(),St=ot.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1;function _t(){let e=mi(),t=mt();return Wt(e.xyChart,t.themeVariables.xyChart)}n(_t,"getChartDefaultThemeConfig");function Tt(){let e=mt();return Wt(wi.xyChart,e.xyChart)}n(Tt,"getChartDefaultConfig");function Rt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}n(Rt,"getChartDefaultData");function ut(e){let t=mt();return fi(e.trim(),t)}n(ut,"textSanitizer");function Qt(e){jt=e}n(Qt,"setTmpSVGG");function Kt(e){e==="horizontal"?ht.chartOrientation="horizontal":ht.chartOrientation="vertical"}n(Kt,"setOrientation");function Zt(e){C.xAxis.title=ut(e.text)}n(Zt,"setXAxisTitle");function Dt(e,t){C.xAxis={type:"linear",title:C.xAxis.title,min:e,max:t},gt=!0}n(Dt,"setXAxisRangeData");function qt(e){C.xAxis={type:"band",title:C.xAxis.title,categories:e.map(t=>ut(t.text))},gt=!0}n(qt,"setXAxisBand");function Jt(e){C.yAxis.title=ut(e.text)}n(Jt,"setYAxisTitle");function ti(e,t){C.yAxis={type:"linear",title:C.yAxis.title,min:e,max:t},kt=!0}n(ti,"setYAxisRangeData");function ii(e){let t=Math.min(...e),i=Math.max(...e),s=G(C.yAxis)?C.yAxis.min:1/0,a=G(C.yAxis)?C.yAxis.max:-1/0;C.yAxis={type:"linear",title:C.yAxis.title,min:Math.min(s,t),max:Math.max(a,i)}}n(ii,"setYAxisRangeFromPlotData");function Lt(e){let t=[];if(e.length===0)return t;if(!gt){let i=G(C.xAxis)?C.xAxis.min:1/0,s=G(C.xAxis)?C.xAxis.max:-1/0;Dt(Math.min(i,1),Math.max(s,e.length))}if(kt||ii(e),Ct(C.xAxis)&&(t=C.xAxis.categories.map((i,s)=>[i,e[s]])),G(C.xAxis)){let i=C.xAxis.min,s=C.xAxis.max,a=(s-i)/(e.length-1),l=[];for(let g=i;g<=s;g+=a)l.push(`${g}`);t=l.map((g,f)=>[g,e[f]])}return t}n(Lt,"transformDataWithoutCategory");function Pt(e){return St[e===0?0:e%St.length]}n(Pt,"getPlotColorFromPalette");function ei(e,t){let i=Lt(t);C.plots.push({type:"line",strokeFill:Pt(nt),strokeWidth:2,data:i}),nt++}n(ei,"setLineData");function si(e,t){let i=Lt(t);C.plots.push({type:"bar",fill:Pt(nt),data:i}),nt++}n(si,"setBarData");function ai(){if(C.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return C.title=Xt(),$i.build(ht,C,ot,jt)}n(ai,"getDrawableElem");function ni(){return ot}n(ni,"getChartThemeConfig");function hi(){return ht}n(hi,"getChartConfig");function oi(){return C}n(oi,"getXYChartData");var Bi={parser:Ri,db:{getDrawableElem:ai,clear:n(function(){Ai(),nt=0,ht=Tt(),C=Rt(),ot=_t(),St=ot.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1},"clear"),setAccTitle:pi,getAccTitle:Si,setDiagramTitle:yi,getDiagramTitle:Xt,getAccDescription:bi,setAccDescription:ki,setOrientation:Kt,setXAxisTitle:Zt,setXAxisRangeData:Dt,setXAxisBand:qt,setYAxisTitle:Jt,setYAxisRangeData:ti,setLineData:ei,setBarData:si,setTmpSVGG:Qt,getChartThemeConfig:ni,getChartConfig:hi,getXYChartData:oi},renderer:{draw:n((e,t,i,s)=>{let a=s.db,l=a.getChartThemeConfig(),g=a.getChartConfig(),f=a.getXYChartData().plots[0].data.map(m=>m[1]);function p(m){return m==="top"?"text-before-edge":"middle"}n(p,"getDominantBaseLine");function _(m){return m==="left"?"start":m==="right"?"end":"middle"}n(_,"getTextAnchor");function L(m){return`translate(${m.x}, ${m.y}) rotate(${m.rotation||0})`}n(L,"getTextTransformation"),Ft.debug(`Rendering xychart chart +`+e);let w=_i(t),b=w.append("g").attr("class","main"),v=b.append("rect").attr("width",g.width).attr("height",g.height).attr("class","background");Ci(w,g.height,g.width,!0),w.attr("viewBox",`0 0 ${g.width} ${g.height}`),v.attr("fill",l.backgroundColor),a.setTmpSVGG(w.append("g").attr("class","mermaid-tmp-group"));let D=a.getDrawableElem(),P={};function E(m){let T=b,r="";for(let[z]of m.entries()){let O=b;z>0&&P[r]&&(O=P[r]),r+=m[z],T=P[r],T||(T=P[r]=O.append("g").attr("class",m[z]))}return T}n(E,"getGroup");for(let m of D){if(m.data.length===0)continue;let T=E(m.groupTexts);switch(m.type){case"rect":if(T.selectAll("rect").data(m.data).enter().append("rect").attr("x",r=>r.x).attr("y",r=>r.y).attr("width",r=>r.width).attr("height",r=>r.height).attr("fill",r=>r.fill).attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth),g.showDataLabel)if(g.chartOrientation==="horizontal"){let r=function(c,M){let{data:y,label:Y}=c;return M*Y.length*z<=y.width-10};n(r,"fitsHorizontally");let z=.7,O=m.data.map((c,M)=>({data:c,label:f[M].toString()})).filter(c=>c.data.width>0&&c.data.height>0),V=O.map(c=>{let{data:M}=c,y=M.height*.7;for(;!r(c,y)&&y>0;)--y;return y}),S=Math.floor(Math.min(...V));T.selectAll("text").data(O).enter().append("text").attr("x",c=>c.data.x+c.data.width-10).attr("y",c=>c.data.y+c.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${S}px`).text(c=>c.label)}else{let r=function(S,c,M){let{data:y,label:Y}=S,U=c*Y.length*.7,F=y.x+y.width/2,h=F-U/2,A=F+U/2,x=h>=y.x&&A<=y.x+y.width,u=y.y+M+c<=y.y+y.height;return x&&u};n(r,"fitsInBar");let z=m.data.map((S,c)=>({data:S,label:f[c].toString()})).filter(S=>S.data.width>0&&S.data.height>0),O=z.map(S=>{let{data:c,label:M}=S,y=c.width/(M.length*.7);for(;!r(S,y,10)&&y>0;)--y;return y}),V=Math.floor(Math.min(...O));T.selectAll("text").data(z).enter().append("text").attr("x",S=>S.data.x+S.data.width/2).attr("y",S=>S.data.y+10).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${V}px`).text(S=>S.label)}break;case"text":T.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",r=>r.fill).attr("font-size",r=>r.fontSize).attr("dominant-baseline",r=>p(r.verticalPos)).attr("text-anchor",r=>_(r.horizontalPos)).attr("transform",r=>L(r)).text(r=>r.text);break;case"path":T.selectAll("path").data(m.data).enter().append("path").attr("d",r=>r.path).attr("fill",r=>r.fill?r.fill:"none").attr("stroke",r=>r.strokeFill).attr("stroke-width",r=>r.strokeWidth);break}}},"draw")}};export{Bi as diagram}; diff --git a/docs/assets/yacas-B1P8UzPS.js b/docs/assets/yacas-B1P8UzPS.js new file mode 100644 index 0000000..5a9b6c1 --- /dev/null +++ b/docs/assets/yacas-B1P8UzPS.js @@ -0,0 +1 @@ +function u(e){for(var t={},r=e.split(" "),o=0;o|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function h(e,t){for(var r,o=!1,n=!1;(r=e.next())!=null;){if(r==='"'&&!n){o=!0;break}n=!n&&r==="\\"}return o&&!n&&(t.tokenize=i),"string"}function d(e,t){for(var r,o;(o=e.next())!=null;){if(r==="*"&&o==="/"){t.tokenize=i;break}r=o}return"comment"}function c(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const b={name:"yacas",startState:function(){return{tokenize:i,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,r){if(e.tokenize!==i&&e.tokenize!==null)return null;var o=0;return(t==="]"||t==="];"||t==="}"||t==="};"||t===");")&&(o=-1),(e.scopes.length+o)*r.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{b as t}; diff --git a/docs/assets/yacas-u934AJft.js b/docs/assets/yacas-u934AJft.js new file mode 100644 index 0000000..356e43f --- /dev/null +++ b/docs/assets/yacas-u934AJft.js @@ -0,0 +1 @@ +import{t as a}from"./yacas-B1P8UzPS.js";export{a as yacas}; diff --git a/docs/assets/yaml-ClzXjtB1.js b/docs/assets/yaml-ClzXjtB1.js new file mode 100644 index 0000000..9017e77 --- /dev/null +++ b/docs/assets/yaml-ClzXjtB1.js @@ -0,0 +1 @@ +import{t}from"./yaml-gd-fI6BI.js";export{t as default}; diff --git a/docs/assets/yaml-gd-fI6BI.js b/docs/assets/yaml-gd-fI6BI.js new file mode 100644 index 0000000..27c88bf --- /dev/null +++ b/docs/assets/yaml-gd-fI6BI.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"''","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}`))];export{e as t}; diff --git a/docs/assets/youtube-BJQRl2JC.js b/docs/assets/youtube-BJQRl2JC.js new file mode 100644 index 0000000..6f6e175 --- /dev/null +++ b/docs/assets/youtube-BJQRl2JC.js @@ -0,0 +1 @@ +import{t as a}from"./createLucideIcon-CW2xpJ57.js";var t=a("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),e=a("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),h=a("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]),p=a("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);export{t as i,h as n,e as r,p as t}; diff --git a/docs/assets/z80-BQ7XtT4U.js b/docs/assets/z80-BQ7XtT4U.js new file mode 100644 index 0000000..8eaff3e --- /dev/null +++ b/docs/assets/z80-BQ7XtT4U.js @@ -0,0 +1 @@ +import{n as a,t as e}from"./z80-C8FzIVqi.js";export{e as ez80,a as z80}; diff --git a/docs/assets/z80-C8FzIVqi.js b/docs/assets/z80-C8FzIVqi.js new file mode 100644 index 0000000..0bd37b1 --- /dev/null +++ b/docs/assets/z80-C8FzIVqi.js @@ -0,0 +1 @@ +function o(l){var i,n;l?(i=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,n=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(i=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,n=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var u=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,c=/^(n?[zc]|p[oe]?|m)\b/i,d=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(e,t){if(e.column()||(t.context=0),e.eatSpace())return null;var r;if(e.eatWhile(/\w/))if(l&&e.eat(".")&&e.eatWhile(/\w/),r=e.current(),e.indentation()){if((t.context==1||t.context==4)&&u.test(r))return t.context=4,"variable";if(t.context==2&&c.test(r))return t.context=4,"variableName.special";if(i.test(r))return t.context=1,"keyword";if(n.test(r))return t.context=2,"keyword";if(t.context==4&&a.test(r))return"number";if(d.test(r))return"error"}else return e.match(a)?"number":null;else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(r=e.next())&&r!='"';)r=="\\"&&e.next();return"string"}else if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(t.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}}const f=o(!1),s=o(!0);export{f as n,s as t}; diff --git a/docs/assets/zenscript-BVK4u88W.js b/docs/assets/zenscript-BVK4u88W.js new file mode 100644 index 0000000..fd4832a --- /dev/null +++ b/docs/assets/zenscript-BVK4u88W.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"ZenScript","fileTypes":["zs"],"name":"zenscript","patterns":[{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([DFLUdflu]|UL|ul)?\\\\b","name":"constant.numeric.zenscript"},{"match":"\\\\b-?(0[BOXbox])(0|[1-9A-Fa-f][_\\\\h]*)[A-Z_a-z]*\\\\b","name":"constant.numeric.zenscript"},{"include":"#code"},{"match":"\\\\b((?:[a-z]\\\\w*\\\\.)*[A-Z]+\\\\w*)(?=\\\\[)","name":"storage.type.object.array.zenscript"}],"repository":{"brackets":{"patterns":[{"captures":{"1":{"name":"keyword.control.zenscript"},"2":{"name":"keyword.other.zenscript"},"3":{"name":"keyword.control.zenscript"},"4":{"name":"variable.other.zenscript"},"5":{"name":"keyword.control.zenscript"},"6":{"name":"constant.numeric.zenscript"},"7":{"name":"keyword.control.zenscript"}},"match":"(<)\\\\b(.*?)(:(.*?(:(\\\\*|\\\\d+)?)?)?)(>)","name":"keyword.other.zenscript"}]},"class":{"captures":{"1":{"name":"storage.type.zenscript"},"2":{"name":"entity.name.type.class.zenscript"}},"match":"(zenClass)\\\\s+(\\\\w+)","name":"meta.class.zenscript"},"code":{"patterns":[{"include":"#class"},{"include":"#functions"},{"include":"#dots"},{"include":"#quotes"},{"include":"#brackets"},{"include":"#comments"},{"include":"#var"},{"include":"#keywords"},{"include":"#constants"},{"include":"#operators"}]},"comments":{"patterns":[{"match":"//[^\\\\n]*","name":"comment.line.double=slash"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"comment.block"}},"end":"\\\\*/","endCaptures":{"0":{"name":"comment.block"}},"name":"comment.block"}]},"dots":{"captures":{"1":{"name":"storage.type.zenscript"},"2":{"name":"keyword.control.zenscript"},"5":{"name":"keyword.control.zenscript"}},"match":"\\\\b(\\\\w+)(\\\\.)(\\\\w+)((\\\\.)(\\\\w+))*","name":"plain.text.zenscript"},"functions":{"captures":{"0":{"name":"storage.type.function.zenscript"},"1":{"name":"entity.name.function.zenscript"}},"match":"function\\\\s+([$A-Z_a-z][$\\\\w]*)\\\\s*(?=\\\\()","name":"meta.function.zenscript"},"keywords":{"patterns":[{"match":"\\\\b(instanceof|get|implements|set|import|function|override|const|if|else|do|while|for|throw|panic|lock|try|catch|finally|return|break|continue|switch|case|default|in|is|as|match|throws|super|new)\\\\b","name":"keyword.control.zenscript"},{"match":"\\\\b(zenClass|zenConstructor|alias|class|interface|enum|struct|expand|variant|set|void|bool|byte|sbyte|short|ushort|int|uint|long|ulong|usize|float|double|char|string)\\\\b","name":"storage.type.zenscript"},{"match":"\\\\b(variant|abstract|final|private|public|export|internal|static|protected|implicit|virtual|extern|immutable)\\\\b","name":"storage.modifier.zenscript"},{"match":"\\\\b(Native|Precondition)\\\\b","name":"entity.other.attribute-name"},{"match":"\\\\b(null|true|false)\\\\b","name":"constant.language"}]},"operators":{"patterns":[{"match":"\\\\b(\\\\.\\\\.??|\\\\.\\\\.\\\\.|[+,]|\\\\+=|\\\\+\\\\+|-=??|--|~=??|\\\\*=??|/=??|%=??|\\\\|=??|\\\\|\\\\||&=??|&&|\\\\^=??|\\\\?\\\\.??|\\\\?\\\\?|<=??|<<=??|>=??|>>=??|>>>=??|=>?|===??|!=??|!==|[$\`])\\\\b","name":"keyword.control"},{"match":"\\\\b([:;])\\\\b","name":"keyword.control"}]},"quotes":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.zenscript"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.zenscript"}},"name":"string.quoted.double.zenscript","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.zenscript"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.zenscript"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.zenscript"}},"name":"string.quoted.single.zenscript","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.zenscript"}]}]},"var":{"match":"\\\\b(va[lr])\\\\b","name":"storage.type"}},"scopeName":"source.zenscript"}`))];export{e as default}; diff --git a/docs/assets/zig-78hakGAD.js b/docs/assets/zig-78hakGAD.js new file mode 100644 index 0000000..1db3562 --- /dev/null +++ b/docs/assets/zig-78hakGAD.js @@ -0,0 +1 @@ +var e=[Object.freeze(JSON.parse(`{"displayName":"Zig","fileTypes":["zig","zon"],"name":"zig","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#keywords"},{"include":"#operators"},{"include":"#punctuation"},{"include":"#numbers"},{"include":"#support"},{"include":"#variables"}],"repository":{"commentContents":{"patterns":[{"match":"\\\\b(TODO|FIXME|XXX|NOTE)\\\\b:?","name":"keyword.todo.zig"}]},"comments":{"patterns":[{"begin":"//[!/](?=[^/])","end":"$","name":"comment.line.documentation.zig","patterns":[{"include":"#commentContents"}]},{"begin":"//","end":"$","name":"comment.line.double-slash.zig","patterns":[{"include":"#commentContents"}]}]},"keywords":{"patterns":[{"match":"\\\\binline\\\\b(?!\\\\s*\\\\bfn\\\\b)","name":"keyword.control.repeat.zig"},{"match":"\\\\b(while|for)\\\\b","name":"keyword.control.repeat.zig"},{"match":"\\\\b(extern|packed|export|pub|noalias|inline|comptime|volatile|align|linksection|threadlocal|allowzero|noinline|callconv)\\\\b","name":"keyword.storage.zig"},{"match":"\\\\b(struct|enum|union|opaque)\\\\b","name":"keyword.structure.zig"},{"match":"\\\\b(asm|unreachable)\\\\b","name":"keyword.statement.zig"},{"match":"\\\\b(break|return|continue|defer|errdefer)\\\\b","name":"keyword.control.flow.zig"},{"match":"\\\\b(resume|suspend|nosuspend)\\\\b","name":"keyword.control.async.zig"},{"match":"\\\\b(try|catch)\\\\b","name":"keyword.control.trycatch.zig"},{"match":"\\\\b(if|else|switch|orelse)\\\\b","name":"keyword.control.conditional.zig"},{"match":"\\\\b(null|undefined)\\\\b","name":"keyword.constant.default.zig"},{"match":"\\\\b(true|false)\\\\b","name":"keyword.constant.bool.zig"},{"match":"\\\\b(test|and|or)\\\\b","name":"keyword.default.zig"},{"match":"\\\\b(bool|void|noreturn|type|error|anyerror|anyframe|anytype|anyopaque)\\\\b","name":"keyword.type.zig"},{"match":"\\\\b(f16|f32|f64|f80|f128|u\\\\d+|i\\\\d+|isize|usize|comptime_int|comptime_float)\\\\b","name":"keyword.type.integer.zig"},{"match":"\\\\b(c_(?:char|short|ushort|int|uint|long|ulong|longlong|ulonglong|longdouble))\\\\b","name":"keyword.type.c.zig"}]},"numbers":{"patterns":[{"match":"\\\\b0x\\\\h[_\\\\h]*(\\\\.\\\\h[_\\\\h]*)?([Pp][-+]?[_\\\\h]+)?\\\\b","name":"constant.numeric.hexfloat.zig"},{"match":"\\\\b[0-9][0-9_]*(\\\\.[0-9][0-9_]*)?([Ee][-+]?[0-9_]+)?\\\\b","name":"constant.numeric.float.zig"},{"match":"\\\\b[0-9][0-9_]*\\\\b","name":"constant.numeric.decimal.zig"},{"match":"\\\\b0x[_\\\\h]+\\\\b","name":"constant.numeric.hexadecimal.zig"},{"match":"\\\\b0o[0-7_]+\\\\b","name":"constant.numeric.octal.zig"},{"match":"\\\\b0b[01_]+\\\\b","name":"constant.numeric.binary.zig"},{"match":"\\\\b[0-9](([EPep][-+])|[0-9A-Z_a-z])*(\\\\.(([EPep][-+])|[0-9A-Z_a-z])*)?([EPep][-+])?[0-9A-Z_a-z]*\\\\b","name":"constant.numeric.invalid.zig"}]},"operators":{"patterns":[{"match":"(?<=\\\\[)\\\\*c(?=])","name":"keyword.operator.c-pointer.zig"},{"match":"\\\\b((and|or))\\\\b|(==|!=|<=|>=|[<>])","name":"keyword.operator.comparison.zig"},{"match":"(-%?|\\\\+%?|\\\\*%?|[%/])=?","name":"keyword.operator.arithmetic.zig"},{"match":"(<<%?|>>|[!\\\\&^|~])=?","name":"keyword.operator.bitwise.zig"},{"match":"(==|\\\\+\\\\+|\\\\*\\\\*|->)","name":"keyword.operator.special.zig"},{"match":"=","name":"keyword.operator.assignment.zig"},{"match":"\\\\?","name":"keyword.operator.question.zig"}]},"punctuation":{"patterns":[{"match":"\\\\.","name":"punctuation.accessor.zig"},{"match":",","name":"punctuation.comma.zig"},{"match":":","name":"punctuation.separator.key-value.zig"},{"match":";","name":"punctuation.terminator.statement.zig"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\([\\"'\\\\\\\\nrt]|(x\\\\h{2})|(u\\\\{\\\\h+}))","name":"constant.character.escape.zig"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.zig"}]},"strings":{"patterns":[{"begin":"\\"","end":"\\"","name":"string.quoted.double.zig","patterns":[{"include":"#stringcontent"}]},{"begin":"\\\\\\\\\\\\\\\\","end":"$","name":"string.multiline.zig"},{"match":"'([^'\\\\\\\\]|\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))'","name":"string.quoted.single.zig"}]},"support":{"patterns":[{"match":"@[A-Z_a-z][0-9A-Z_a-z]*","name":"support.function.builtin.zig"}]},"variables":{"patterns":[{"name":"meta.function.declaration.zig","patterns":[{"captures":{"1":{"name":"storage.type.function.zig"},"2":{"name":"entity.name.type.zig"}},"match":"\\\\b(fn)\\\\s+([A-Z][0-9A-Za-z]*)\\\\b"},{"captures":{"1":{"name":"storage.type.function.zig"},"2":{"name":"entity.name.function.zig"}},"match":"\\\\b(fn)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"begin":"\\\\b(fn)\\\\s+@\\"","beginCaptures":{"1":{"name":"storage.type.function.zig"}},"end":"\\"","name":"entity.name.function.string.zig","patterns":[{"include":"#stringcontent"}]},{"match":"\\\\b(const|var|fn)\\\\b","name":"keyword.default.zig"}]},{"name":"meta.function.call.zig","patterns":[{"match":"([A-Z][0-9A-Za-z]*)(?=\\\\s*\\\\()","name":"entity.name.type.zig"},{"match":"([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\()","name":"entity.name.function.zig"}]},{"name":"meta.variable.zig","patterns":[{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*\\\\b","name":"variable.zig"},{"begin":"@\\"","end":"\\"","name":"variable.string.zig","patterns":[{"include":"#stringcontent"}]}]}]}},"scopeName":"source.zig"}`))];export{e as default}; diff --git a/docs/assets/zod-Cg4WLWh2.js b/docs/assets/zod-Cg4WLWh2.js new file mode 100644 index 0000000..7d8f3ab --- /dev/null +++ b/docs/assets/zod-Cg4WLWh2.js @@ -0,0 +1,40 @@ +import{r as V}from"./chunk-LvLJmgfZ.js";const mr=Object.freeze({status:"aborted"});function m(e,t,r){function a(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,l);let s=o.prototype,c=Object.keys(s);for(let d=0;d{var l,s;return r!=null&&r.Parent&&u instanceof r.Parent?!0:(s=(l=u==null?void 0:u._zod)==null?void 0:l.traits)==null?void 0:s.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}const pr=Symbol("zod_brand");var ie=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ii=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};const ti={};function j(e){return e&&Object.assign(ti,e),ti}var fr=V({BIGINT_FORMAT_RANGES:()=>kr,Class:()=>Ad,NUMBER_FORMAT_RANGES:()=>br,aborted:()=>re,allowsEval:()=>$r,assert:()=>Id,assertEqual:()=>_d,assertIs:()=>bd,assertNever:()=>kd,assertNotEqual:()=>yd,assignProp:()=>q,base64ToUint8Array:()=>Zr,base64urlToUint8Array:()=>Nd,cached:()=>Se,captureStackTrace:()=>vt,cleanEnum:()=>Dd,cleanRegex:()=>ri,clone:()=>L,cloneDef:()=>Sd,createTransparentProxy:()=>jd,defineLazy:()=>k,esc:()=>ft,escapeRegex:()=>B,extend:()=>Sr,finalizeIssue:()=>J,floatSafeRemainder:()=>vr,getElementAtPath:()=>wd,getEnumValues:()=>pt,getLengthableOrigin:()=>si,getParsedType:()=>Zd,getSizableOrigin:()=>ui,hexToUint8Array:()=>Ed,isObject:()=>se,isPlainObject:()=>ne,issue:()=>le,joinValues:()=>v,jsonStringifyReplacer:()=>ni,merge:()=>zr,mergeDefs:()=>K,normalizeParams:()=>p,nullish:()=>te,numKeys:()=>Od,objectClone:()=>xd,omit:()=>xr,optionalKeys:()=>yr,parsedType:()=>_,partial:()=>Ur,pick:()=>Ir,prefixIssues:()=>M,primitiveTypes:()=>_r,promiseAllObject:()=>zd,propertyKeyTypes:()=>oi,randomString:()=>Ud,required:()=>Or,safeExtend:()=>wr,shallowClone:()=>ai,slugify:()=>hr,stringifyPrimitive:()=>$,uint8ArrayToBase64:()=>jr,uint8ArrayToBase64url:()=>Pd,uint8ArrayToHex:()=>Td,unwrapMessage:()=>we},1);function _d(e){return e}function yd(e){return e}function bd(e){}function kd(e){throw Error("Unexpected value in exhaustive check")}function Id(e){}function pt(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function v(e,t="|"){return e.map(r=>$(r)).join(t)}function ni(e,t){return typeof t=="bigint"?t.toString():t}function Se(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error("cached value already set")}}}function te(e){return e==null}function ri(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function vr(e,t){let r=(e.toString().split(".")[1]||"").length,a=t.toString(),i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){let o=a.match(/\d?e-(\d?)/);o!=null&&o[1]&&(i=Number.parseInt(o[1]))}let n=r>i?r:i;return Number.parseInt(e.toFixed(n).replace(".",""))%Number.parseInt(t.toFixed(n).replace(".",""))/10**n}var gr=Symbol("evaluating");function k(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==gr)return a===void 0&&(a=gr,a=r()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function xd(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function q(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function K(...e){let t={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function Sd(e){return K(e._zod.def)}function wd(e,t){return t?t.reduce((r,a)=>r==null?void 0:r[a],e):e}function zd(e){let t=Object.keys(e),r=t.map(a=>e[a]);return Promise.all(r).then(a=>{let i={};for(let n=0;n{};function se(e){return typeof e=="object"&&!!e&&!Array.isArray(e)}const $r=Se(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{return Function(""),!0}catch{return!1}});function ne(e){if(se(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(se(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ai(e){return ne(e)?{...e}:Array.isArray(e)?[...e]:e}function Od(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const Zd=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw Error(`Unknown data type: ${t}`)}},oi=new Set(["string","number","symbol"]),_r=new Set(["string","number","bigint","boolean","symbol","undefined"]);function B(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function L(e,t,r){let a=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(a._zod.parent=e),a}function p(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function jd(e){let t;return new Proxy({},{get(r,a,i){return t??(t=e()),Reflect.get(t,a,i)},set(r,a,i,n){return t??(t=e()),Reflect.set(t,a,i,n)},has(r,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(r,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(r,a,i){return t??(t=e()),Reflect.defineProperty(t,a,i)}})}function $(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function yr(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const br={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},kr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ir(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");return L(e,K(e._zod.def,{get shape(){let i={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(i[n]=r.shape[n])}return q(this,"shape",i),i},checks:[]}))}function xr(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");return L(e,K(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&delete i[n]}return q(this,"shape",i),i},checks:[]}))}function Sr(e,t){if(!ne(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let a=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return L(e,K(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return q(this,"shape",a),a}}))}function wr(e,t){if(!ne(t))throw Error("Invalid input to safeExtend: expected a plain object");return L(e,K(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return q(this,"shape",r),r}}))}function zr(e,t){return L(e,K(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return q(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]}))}function Ur(e,t,r){let a=t._zod.def.checks;if(a&&a.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");return L(t,K(t._zod.def,{get shape(){let i=t._zod.def.shape,n={...i};if(r)for(let o in r){if(!(o in i))throw Error(`Unrecognized key: "${o}"`);r[o]&&(n[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)n[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return q(this,"shape",n),n},checks:[]}))}function Or(e,t,r){return L(t,K(t._zod.def,{get shape(){let a=t._zod.def.shape,i={...a};if(r)for(let n in r){if(!(n in i))throw Error(`Unrecognized key: "${n}"`);r[n]&&(i[n]=new e({type:"nonoptional",innerType:a[n]}))}else for(let n in a)i[n]=new e({type:"nonoptional",innerType:a[n]});return q(this,"shape",i),i}}))}function re(e,t=0){var r;if(e.aborted===!0)return!0;for(let a=t;a{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function we(e){return typeof e=="string"?e:e==null?void 0:e.message}function J(e,t,r){var i,n,o,u,l,s;let a={...e,path:e.path??[]};return e.message||(a.message=we((o=(n=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:n.error)==null?void 0:o.call(n,e))??we((u=t==null?void 0:t.error)==null?void 0:u.call(t,e))??we((l=r.customError)==null?void 0:l.call(r,e))??we((s=r.localeError)==null?void 0:s.call(r,e))??"Invalid input"),delete a.inst,delete a.continue,t!=null&&t.reportInput||delete a.input,a}function ui(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function si(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function le(...e){let[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}function Dd(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Zr(e){let t=atob(e),r=new Uint8Array(t.length);for(let a=0;at.toString(16).padStart(2,"0")).join("")}var Ad=class{constructor(...e){}},Dr=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ni,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})};const li=m("$ZodError",Dr),T=m("$ZodError",Dr,{Parent:Error});function gt(e,t=r=>r.message){let r={},a=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:r}}function ht(e,t=r=>r.message){let r={_errors:[]},a=i=>{for(let n of i.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(o=>a({issues:o}));else if(n.code==="invalid_key")a({issues:n.issues});else if(n.code==="invalid_element")a({issues:n.issues});else if(n.path.length===0)r._errors.push(t(n));else{let o=r,u=0;for(;ur.message){let r={errors:[]},a=(i,n=[])=>{var o,u;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(s=>a({issues:s},l.path));else if(l.code==="invalid_key")a({issues:l.issues},l.path);else if(l.code==="invalid_element")a({issues:l.issues},l.path);else{let s=[...n,...l.path];if(s.length===0){r.errors.push(t(l));continue}let c=r,d=0;for(;dtypeof a=="object"?a.key:a);for(let a of r)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function $t(e){var a;let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),(a=i.path)!=null&&a.length&&t.push(` \u2192 at ${Pr(i.path)}`);return t.join(` +`)}const ze=e=>(t,r,a,i)=>{let n=a?Object.assign(a,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new ie;if(o.issues.length){let u=new((i==null?void 0:i.Err)??e)(o.issues.map(l=>J(l,n,j())));throw vt(u,i==null?void 0:i.callee),u}return o.value},di=ze(T),Ue=e=>async(t,r,a,i)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise&&(o=await o),o.issues.length){let u=new((i==null?void 0:i.Err)??e)(o.issues.map(l=>J(l,n,j())));throw vt(u,i==null?void 0:i.callee),u}return o.value},ci=Ue(T),Oe=e=>(t,r,a)=>{let i=a?{...a,async:!1}:{async:!1},n=t._zod.run({value:r,issues:[]},i);if(n instanceof Promise)throw new ie;return n.issues.length?{success:!1,error:new(e??li)(n.issues.map(o=>J(o,i,j())))}:{success:!0,data:n.value}},Er=Oe(T),Ze=e=>async(t,r,a)=>{let i=a?Object.assign(a,{async:!0}):{async:!0},n=t._zod.run({value:r,issues:[]},i);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(o=>J(o,i,j())))}:{success:!0,data:n.value}},Tr=Ze(T),_t=e=>(t,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return ze(e)(t,r,i)},Ld=_t(T),yt=e=>(t,r,a)=>ze(e)(t,r,a),Jd=yt(T),bt=e=>async(t,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ue(e)(t,r,i)},Rd=bt(T),kt=e=>async(t,r,a)=>Ue(e)(t,r,a),Cd=kt(T),It=e=>(t,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Oe(e)(t,r,i)},Fd=It(T),xt=e=>(t,r,a)=>Oe(e)(t,r,a),Md=xt(T),St=e=>async(t,r,a)=>{let i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ze(e)(t,r,i)},Wd=St(T),wt=e=>async(t,r,a)=>Ze(e)(t,r,a),Kd=wt(T);var zt=V({base64:()=>Qr,base64url:()=>Ut,bigint:()=>la,boolean:()=>ca,browserEmail:()=>Qd,cidrv4:()=>Yr,cidrv6:()=>Hr,cuid:()=>Ar,cuid2:()=>Lr,date:()=>ra,datetime:()=>ua,domain:()=>ia,duration:()=>Mr,e164:()=>ta,email:()=>Kr,emoji:()=>Vr,extendedDuration:()=>Gd,guid:()=>Wr,hex:()=>ga,hostname:()=>ea,html5Email:()=>qd,idnEmail:()=>Hd,integer:()=>da,ipv4:()=>Br,ipv6:()=>Xr,ksuid:()=>Cr,lowercase:()=>fa,mac:()=>qr,md5_base64:()=>tc,md5_base64url:()=>nc,md5_hex:()=>ic,nanoid:()=>Fr,null:()=>ma,number:()=>Ot,rfc5322Email:()=>Yd,sha1_base64:()=>ac,sha1_base64url:()=>oc,sha1_hex:()=>rc,sha256_base64:()=>sc,sha256_base64url:()=>lc,sha256_hex:()=>uc,sha384_base64:()=>cc,sha384_base64url:()=>mc,sha384_hex:()=>dc,sha512_base64:()=>fc,sha512_base64url:()=>vc,sha512_hex:()=>pc,string:()=>sa,time:()=>oa,ulid:()=>Jr,undefined:()=>pa,unicodeEmail:()=>Gr,uppercase:()=>va,uuid:()=>de,uuid4:()=>Vd,uuid6:()=>Bd,uuid7:()=>Xd,xid:()=>Rr},1);const Ar=/^[cC][^\s-]{8,}$/,Lr=/^[0-9a-z]+$/,Jr=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Rr=/^[0-9a-vA-V]{20}$/,Cr=/^[A-Za-z0-9]{27}$/,Fr=/^[a-zA-Z0-9_-]{21}$/,Mr=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Gd=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Wr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,de=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Vd=de(4),Bd=de(6),Xd=de(7),Kr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,qd=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yd=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gr=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Hd=Gr,Qd=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;var ec="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Vr(){return new RegExp(ec,"u")}const Br=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qr=e=>{let t=B(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Yr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Hr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Qr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ut=/^[A-Za-z0-9_-]*$/,ea=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ia=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ta=/^\+[1-9]\d{6,14}$/;var na="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";const ra=RegExp(`^${na}$`);function aa(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function oa(e){return RegExp(`^${aa(e)}$`)}function ua(e){let t=aa({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${r.join("|")})`;return RegExp(`^${na}T(?:${a})$`)}const sa=e=>{let t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},la=/^-?\d+n?$/,da=/^-?\d+$/,Ot=/^-?\d+(?:\.\d+)?$/,ca=/^(?:true|false)$/i;var ma=/^null$/i,pa=/^undefined$/i;const fa=/^[^A-Z]*$/,va=/^[^a-z]*$/,ga=/^[0-9a-fA-F]*$/;function je(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function De(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ic=/^[0-9a-fA-F]{32}$/,tc=je(22,"=="),nc=De(22),rc=/^[0-9a-fA-F]{40}$/,ac=je(27,"="),oc=De(27),uc=/^[0-9a-fA-F]{64}$/,sc=je(43,"="),lc=De(43),dc=/^[0-9a-fA-F]{96}$/,cc=je(64,""),mc=De(64),pc=/^[0-9a-fA-F]{128}$/,fc=je(86,"=="),vc=De(86),U=m("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var ha={number:"number",bigint:"bigint",object:"date"};const Zt=m("$ZodCheckLessThan",(e,t)=>{U.init(e,t);let r=ha[typeof t.value];e._zod.onattach.push(a=>{let i=a._zod.bag,n=(t.inclusive?i.maximum:i.exclusiveMaximum)??1/0;t.value{(t.inclusive?a.value<=t.value:a.value{U.init(e,t);let r=ha[typeof t.value];e._zod.onattach.push(a=>{let i=a._zod.bag,n=(t.inclusive?i.minimum:i.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$a=m("$ZodCheckMultipleOf",(e,t)=>{U.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):vr(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),_a=m("$ZodCheckNumberFormat",(e,t)=>{var o;U.init(e,t),t.format=t.format||"float64";let r=(o=t.format)==null?void 0:o.includes("int"),a=r?"int":"number",[i,n]=br[t.format];e._zod.onattach.push(u=>{let l=u._zod.bag;l.format=t.format,l.minimum=i,l.maximum=n,r&&(l.pattern=da)}),e._zod.check=u=>{let l=u.value;if(r){if(!Number.isInteger(l)){u.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?u.issues.push({input:l,code:"too_big",maximum:2**53-1,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):u.issues.push({input:l,code:"too_small",minimum:-(2**53-1),note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}ln&&u.issues.push({origin:"number",input:l,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),ya=m("$ZodCheckBigIntFormat",(e,t)=>{U.init(e,t);let[r,a]=kr[t.format];e._zod.onattach.push(i=>{let n=i._zod.bag;n.format=t.format,n.minimum=r,n.maximum=a}),e._zod.check=i=>{let n=i.value;na&&i.issues.push({origin:"bigint",input:n,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),ba=m("$ZodCheckMaxSize",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!te(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??1/0;t.maximum{let i=a.value;i.size<=t.maximum||a.issues.push({origin:ui(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),ka=m("$ZodCheckMinSize",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!te(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??-1/0;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let i=a.value;i.size>=t.minimum||a.issues.push({origin:ui(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ia=m("$ZodCheckSizeEquals",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!te(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=a=>{let i=a.value,n=i.size;if(n===t.size)return;let o=n>t.size;a.issues.push({origin:ui(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),xa=m("$ZodCheckMaxLength",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!te(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??1/0;t.maximum{let i=a.value;if(i.length<=t.maximum)return;let n=si(i);a.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Sa=m("$ZodCheckMinLength",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!te(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??-1/0;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let i=a.value;if(i.length>=t.minimum)return;let n=si(i);a.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),wa=m("$ZodCheckLengthEquals",(e,t)=>{var r;U.init(e,t),(r=e._zod.def).when??(r.when=a=>{let i=a.value;return!te(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=a=>{let i=a.value,n=i.length;if(n===t.length)return;let o=si(i),u=n>t.length;a.issues.push({origin:o,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Ne=m("$ZodCheckStringFormat",(e,t)=>{var r,a;U.init(e,t),e._zod.onattach.push(i=>{let n=i._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),za=m("$ZodCheckRegex",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ua=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=fa),Ne.init(e,t)}),Oa=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=va),Ne.init(e,t)}),Za=m("$ZodCheckIncludes",(e,t)=>{U.init(e,t);let r=B(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),ja=m("$ZodCheckStartsWith",(e,t)=>{U.init(e,t);let r=RegExp(`^${B(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),Da=m("$ZodCheckEndsWith",(e,t)=>{U.init(e,t);let r=RegExp(`.*${B(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function Na(e,t,r){e.issues.length&&t.issues.push(...M(r,e.issues))}const Pa=m("$ZodCheckProperty",(e,t)=>{U.init(e,t),e._zod.check=r=>{let a=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(i=>Na(i,r,t.property));Na(a,r,t.property)}}),Ea=m("$ZodCheckMimeType",(e,t)=>{U.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),Ta=m("$ZodCheckOverwrite",(e,t)=>{U.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Aa=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split(` +`).filter(i=>i),r=Math.min(...t.map(i=>i.length-i.trimStart().length)),a=t.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(let i of a)this.content.push(i)}compile(){let e=Function,t=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new e(...t,r.join(` +`))}};const La={major:4,minor:3,patch:4},y=m("$ZodType",(e,t)=>{var i;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=La;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let n of a)for(let o of n._zod.onattach)o(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{let n=(u,l,s)=>{let c=re(u),d;for(let f of l){if(f._zod.def.when){if(!f._zod.def.when(u))continue}else if(c)continue;let h=u.issues.length,I=f._zod.check(u);if(I instanceof Promise&&(s==null?void 0:s.async)===!1)throw new ie;if(d||I instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await I,u.issues.length!==h&&(c||(c=re(u,h)))});else{if(u.issues.length===h)continue;c||(c=re(u,h))}}return d?d.then(()=>u):u},o=(u,l,s)=>{if(re(u))return u.aborted=!0,u;let c=n(l,a,s);if(c instanceof Promise){if(s.async===!1)throw new ie;return c.then(d=>e._zod.parse(d,s))}return e._zod.parse(c,s)};e._zod.run=(u,l)=>{if(l.skipChecks)return e._zod.parse(u,l);if(l.direction==="backward"){let c=e._zod.parse({value:u.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(d=>o(d,u,l)):o(c,u,l)}let s=e._zod.parse(u,l);if(s instanceof Promise){if(l.async===!1)throw new ie;return s.then(c=>n(c,a,l))}return n(s,a,l)}}k(e,"~standard",()=>({validate:n=>{var o;try{let u=Er(e,n);return u.success?{value:u.data}:{issues:(o=u.error)==null?void 0:o.issues}}catch{return Tr(e,n).then(u=>{var l;return u.success?{value:u.data}:{issues:(l=u.error)==null?void 0:l.issues}})}},vendor:"zod",version:1}))}),Pe=m("$ZodString",(e,t)=>{var r;y.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??sa(e._zod.bag),e._zod.parse=(a,i)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),S=m("$ZodStringFormat",(e,t)=>{Ne.init(e,t),Pe.init(e,t)}),Ja=m("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Wr),S.init(e,t)}),Ra=m("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=de(r))}else t.pattern??(t.pattern=de());S.init(e,t)}),Ca=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Kr),S.init(e,t)}),Fa=m("$ZodURL",(e,t)=>{S.init(e,t),e._zod.check=r=>{try{let a=r.value.trim(),i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Ma=m("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Vr()),S.init(e,t)}),Wa=m("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Fr),S.init(e,t)}),Ka=m("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ar),S.init(e,t)}),Ga=m("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Lr),S.init(e,t)}),Va=m("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Jr),S.init(e,t)}),Ba=m("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Rr),S.init(e,t)}),Xa=m("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Cr),S.init(e,t)}),qa=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ua(t)),S.init(e,t)}),Ya=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ra),S.init(e,t)}),Ha=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=oa(t)),S.init(e,t)}),Qa=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Mr),S.init(e,t)}),eo=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Br),S.init(e,t),e._zod.bag.format="ipv4"}),io=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Xr),S.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),to=m("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=qr(t.delimiter)),S.init(e,t),e._zod.bag.format="mac"}),no=m("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Yr),S.init(e,t)}),ro=m("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Hr),S.init(e,t),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw Error();let[i,n]=a;if(!n)throw Error();let o=Number(n);if(`${o}`!==n||o<0||o>128)throw Error();new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Dt(e){if(e==="")return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const ao=m("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Qr),S.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Dt(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function oo(e){if(!Ut.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/");return Dt(t.padEnd(Math.ceil(t.length/4)*4,"="))}const uo=m("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ut),S.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{oo(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),so=m("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ta),S.init(e,t)});function lo(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let i=JSON.parse(atob(a));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const co=m("$ZodJWT",(e,t)=>{S.init(e,t),e._zod.check=r=>{lo(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),mo=m("$ZodCustomStringFormat",(e,t)=>{S.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Nt=m("$ZodNumber",(e,t)=>{y.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ot,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let n=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...n?{received:n}:{}}),r}}),po=m("$ZodNumberFormat",(e,t)=>{_a.init(e,t),Nt.init(e,t)}),Pt=m("$ZodBoolean",(e,t)=>{y.init(e,t),e._zod.pattern=ca,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),Et=m("$ZodBigInt",(e,t)=>{y.init(e,t),e._zod.pattern=la,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),fo=m("$ZodBigIntFormat",(e,t)=>{ya.init(e,t),Et.init(e,t)}),vo=m("$ZodSymbol",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value;return typeof i=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),r}}),go=m("$ZodUndefined",(e,t)=>{y.init(e,t),e._zod.pattern=pa,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let i=r.value;return i===void 0||r.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),r}}),ho=m("$ZodNull",(e,t)=>{y.init(e,t),e._zod.pattern=ma,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),$o=m("$ZodAny",(e,t)=>{y.init(e,t),e._zod.parse=r=>r}),_o=m("$ZodUnknown",(e,t)=>{y.init(e,t),e._zod.parse=r=>r}),yo=m("$ZodNever",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),bo=m("$ZodVoid",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value;return i===void 0||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),ko=m("$ZodDate",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,n=i instanceof Date;return n&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...n?{received:"Invalid Date"}:{},inst:e}),r}});function Io(e,t,r){e.issues.length&&t.issues.push(...M(r,e.issues)),t.value[r]=e.value}const xo=m("$ZodArray",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let n=[];for(let o=0;oIo(s,r,o))):Io(l,r,o)}return n.length?Promise.all(n).then(()=>r):r}});function mi(e,t,r,a,i){if(e.issues.length){if(i&&!(r in a))return;t.issues.push(...M(r,e.issues))}e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}function So(e){var a,i,n,o;let t=Object.keys(e.shape);for(let u of t)if(!((o=(n=(i=(a=e.shape)==null?void 0:a[u])==null?void 0:i._zod)==null?void 0:n.traits)!=null&&o.has("$ZodType")))throw Error(`Invalid element at key "${u}": expected a Zod schema`);let r=yr(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function wo(e,t,r,a,i,n){let o=[],u=i.keySet,l=i.catchall._zod,s=l.def.type,c=l.optout==="optional";for(let d in t){if(u.has(d))continue;if(s==="never"){o.push(d);continue}let f=l.run({value:t[d],issues:[]},a);f instanceof Promise?e.push(f.then(h=>mi(h,r,d,t,c))):mi(f,r,d,t,c)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:n}),e.length?Promise.all(e).then(()=>r):r}const zo=m("$ZodObject",(e,t)=>{var o;if(y.init(e,t),!((o=Object.getOwnPropertyDescriptor(t,"shape"))!=null&&o.get)){let u=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...u};return Object.defineProperty(t,"shape",{value:l}),l}})}let r=Se(()=>So(t));k(e._zod,"propValues",()=>{let u=t.shape,l={};for(let s in u){let c=u[s]._zod;if(c.values){l[s]??(l[s]=new Set);for(let d of c.values)l[s].add(d)}}return l});let a=se,i=t.catchall,n;e._zod.parse=(u,l)=>{n??(n=r.value);let s=u.value;if(!a(s))return u.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),u;u.value={};let c=[],d=n.shape;for(let f of n.keys){let h=d[f],I=h._zod.optout==="optional",z=h._zod.run({value:s[f],issues:[]},l);z instanceof Promise?c.push(z.then(O=>mi(O,u,f,s,I))):mi(z,u,f,s,I)}return i?wo(c,s,u,l,r.value,e):c.length?Promise.all(c).then(()=>u):u}}),Uo=m("$ZodObjectJIT",(e,t)=>{zo.init(e,t);let r=e._zod.parse,a=Se(()=>So(t)),i=d=>{var ei,cr;let f=new Aa(["shape","payload","ctx"]),h=a.value,I=W=>{let P=ft(W);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};f.write("const input = payload.value;");let z=Object.create(null),O=0;for(let W of h.keys)z[W]=`key_${O++}`;f.write("const newResult = {};");for(let W of h.keys){let P=z[W],F=ft(W),$d=((cr=(ei=d[W])==null?void 0:ei._zod)==null?void 0:cr.optout)==="optional";f.write(`const ${P} = ${I(W)};`),$d?f.write(` + if (${P}.issues.length) { + if (${F} in input) { + payload.issues = payload.issues.concat(${P}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${F}, ...iss.path] : [${F}] + }))); + } + } + + if (${P}.value === undefined) { + if (${F} in input) { + newResult[${F}] = undefined; + } + } else { + newResult[${F}] = ${P}.value; + } + + `):f.write(` + if (${P}.issues.length) { + payload.issues = payload.issues.concat(${P}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${F}, ...iss.path] : [${F}] + }))); + } + + if (${P}.value === undefined) { + if (${F} in input) { + newResult[${F}] = undefined; + } + } else { + newResult[${F}] = ${P}.value; + } + + `)}f.write("payload.value = newResult;"),f.write("return payload;");let Z=f.compile();return(W,P)=>Z(d,W,P)},n,o=se,u=!ti.jitless,l=u&&$r.value,s=t.catchall,c;e._zod.parse=(d,f)=>{c??(c=a.value);let h=d.value;return o(h)?u&&l&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(n||(n=i(t.shape)),d=n(d,f),s?wo([],h,d,f,c,e):d):r(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d)}});function Oo(e,t,r,a){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(n=>!re(n));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(o=>J(o,a,j())))}),t)}const pi=m("$ZodUnion",(e,t)=>{y.init(e,t),k(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),k(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),k(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),k(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(n=>n._zod.pattern);return RegExp(`^(${i.map(n=>ri(n.source)).join("|")})$`)}});let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(i,n)=>{if(r)return a(i,n);let o=!1,u=[];for(let l of t.options){let s=l._zod.run({value:i.value,issues:[]},n);if(s instanceof Promise)u.push(s),o=!0;else{if(s.issues.length===0)return s;u.push(s)}}return o?Promise.all(u).then(l=>Oo(l,i,e,n)):Oo(u,i,e,n)}});function Zo(e,t,r,a){let i=e.filter(n=>n.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(o=>J(o,a,j())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}const jo=m("$ZodXor",(e,t)=>{pi.init(e,t),t.inclusive=!1;let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(i,n)=>{if(r)return a(i,n);let o=!1,u=[];for(let l of t.options){let s=l._zod.run({value:i.value,issues:[]},n);s instanceof Promise?(u.push(s),o=!0):u.push(s)}return o?Promise.all(u).then(l=>Zo(l,i,e,n)):Zo(u,i,e,n)}}),Do=m("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,pi.init(e,t);let r=e._zod.parse;k(e._zod,"propValues",()=>{let i={};for(let n of t.options){let o=n._zod.propValues;if(!o||Object.keys(o).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[u,l]of Object.entries(o)){i[u]||(i[u]=new Set);for(let s of l)i[u].add(s)}}return i});let a=Se(()=>{var o;let i=t.options,n=new Map;for(let u of i){let l=(o=u._zod.propValues)==null?void 0:o[t.discriminator];if(!l||l.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(let s of l){if(n.has(s))throw Error(`Duplicate discriminator value "${String(s)}"`);n.set(s,u)}}return n});e._zod.parse=(i,n)=>{let o=i.value;if(!se(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let u=a.value.get(o==null?void 0:o[t.discriminator]);return u?u._zod.run(i,n):t.unionFallback?r(i,n):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),No=m("$ZodIntersection",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value,n=t.left._zod.run({value:i,issues:[]},a),o=t.right._zod.run({value:i,issues:[]},a);return n instanceof Promise||o instanceof Promise?Promise.all([n,o]).then(([u,l])=>Po(r,u,l)):Po(r,n,o)}});function Tt(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ne(e)&&ne(t)){let r=Object.keys(t),a=Object.keys(e).filter(n=>r.indexOf(n)!==-1),i={...e,...t};for(let n of a){let o=Tt(e[n],t[n]);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};i[n]=o.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let a=0;au.l&&u.r).map(([u])=>u);if(n.length&&i&&e.issues.push({...i,keys:n}),re(e))return e;let o=Tt(t.value,r.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const At=m("$ZodTuple",(e,t)=>{y.init(e,t);let r=t.items;e._zod.parse=(a,i)=>{let n=a.value;if(!Array.isArray(n))return a.issues.push({input:n,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let o=[],u=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=u===-1?0:r.length-u;if(!t.rest){let c=n.length>r.length,d=n.length=n.length&&s>=l)continue;let d=c._zod.run({value:n[s],issues:[]},i);d instanceof Promise?o.push(d.then(f=>fi(f,a,s))):fi(d,a,s)}if(t.rest){let c=n.slice(r.length);for(let d of c){s++;let f=t.rest._zod.run({value:d,issues:[]},i);f instanceof Promise?o.push(f.then(h=>fi(h,a,s))):fi(f,a,s)}}return o.length?Promise.all(o).then(()=>a):a}});function fi(e,t,r){e.issues.length&&t.issues.push(...M(r,e.issues)),t.value[r]=e.value}const Eo=m("$ZodRecord",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value;if(!ne(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let n=[],o=t.keyType._zod.values;if(o){r.value={};let u=new Set;for(let s of o)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){u.add(typeof s=="number"?s.toString():s);let c=t.valueType._zod.run({value:i[s],issues:[]},a);c instanceof Promise?n.push(c.then(d=>{d.issues.length&&r.issues.push(...M(s,d.issues)),r.value[s]=d.value})):(c.issues.length&&r.issues.push(...M(s,c.issues)),r.value[s]=c.value)}let l;for(let s in i)u.has(s)||(l??(l=[]),l.push(s));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(i)){if(u==="__proto__")continue;let l=t.keyType._zod.run({value:u,issues:[]},a);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Ot.test(u)&&l.issues.length&&l.issues.some(c=>c.code==="invalid_type"&&c.expected==="number")){let c=t.keyType._zod.run({value:Number(u),issues:[]},a);if(c instanceof Promise)throw Error("Async schemas not supported in object keys currently");c.issues.length===0&&(l=c)}if(l.issues.length){t.mode==="loose"?r.value[u]=i[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(c=>J(c,a,j())),input:u,path:[u],inst:e});continue}let s=t.valueType._zod.run({value:i[u],issues:[]},a);s instanceof Promise?n.push(s.then(c=>{c.issues.length&&r.issues.push(...M(u,c.issues)),r.value[l.value]=c.value})):(s.issues.length&&r.issues.push(...M(u,s.issues)),r.value[l.value]=s.value)}}return n.length?Promise.all(n).then(()=>r):r}}),To=m("$ZodMap",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let n=[];r.value=new Map;for(let[o,u]of i){let l=t.keyType._zod.run({value:o,issues:[]},a),s=t.valueType._zod.run({value:u,issues:[]},a);l instanceof Promise||s instanceof Promise?n.push(Promise.all([l,s]).then(([c,d])=>{Ao(c,d,r,o,i,e,a)})):Ao(l,s,r,o,i,e,a)}return n.length?Promise.all(n).then(()=>r):r}});function Ao(e,t,r,a,i,n,o){e.issues.length&&(oi.has(typeof a)?r.issues.push(...M(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:n,issues:e.issues.map(u=>J(u,o,j()))})),t.issues.length&&(oi.has(typeof a)?r.issues.push(...M(a,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:n,key:a,issues:t.issues.map(u=>J(u,o,j()))})),r.value.set(e.value,t.value)}const Lo=m("$ZodSet",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let n=[];r.value=new Set;for(let o of i){let u=t.valueType._zod.run({value:o,issues:[]},a);u instanceof Promise?n.push(u.then(l=>Jo(l,r))):Jo(u,r)}return n.length?Promise.all(n).then(()=>r):r}});function Jo(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const Ro=m("$ZodEnum",(e,t)=>{y.init(e,t);let r=pt(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=RegExp(`^(${r.filter(i=>oi.has(typeof i)).map(i=>typeof i=="string"?B(i):i.toString()).join("|")})$`),e._zod.parse=(i,n)=>{let o=i.value;return a.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:e}),i}}),Co=m("$ZodLiteral",(e,t)=>{if(y.init(e,t),t.values.length===0)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(a=>typeof a=="string"?B(a):a?B(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,i)=>{let n=a.value;return r.has(n)||a.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),a}}),Fo=m("$ZodFile",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{let i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),r}}),Mo=m("$ZodTransform",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ii(e.constructor.name);let i=t.transform(r.value,r);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(n=>(r.value=n,r));if(i instanceof Promise)throw new ie;return r.value=i,r}});function Wo(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Lt=m("$ZodOptional",(e,t)=>{y.init(e,t),e._zod.optin="optional",e._zod.optout="optional",k(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),k(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?RegExp(`^(${ri(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,a);return i instanceof Promise?i.then(n=>Wo(n,r.value)):Wo(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),Ko=m("$ZodExactOptional",(e,t)=>{Lt.init(e,t),k(e._zod,"values",()=>t.innerType._zod.values),k(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,a)=>t.innerType._zod.run(r,a)}),Go=m("$ZodNullable",(e,t)=>{y.init(e,t),k(e._zod,"optin",()=>t.innerType._zod.optin),k(e._zod,"optout",()=>t.innerType._zod.optout),k(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?RegExp(`^(${ri(r.source)}|null)$`):void 0}),k(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),Vo=m("$ZodDefault",(e,t)=>{y.init(e,t),e._zod.optin="optional",k(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;let i=t.innerType._zod.run(r,a);return i instanceof Promise?i.then(n=>Bo(n,t)):Bo(i,t)}});function Bo(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Xo=m("$ZodPrefault",(e,t)=>{y.init(e,t),e._zod.optin="optional",k(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),qo=m("$ZodNonOptional",(e,t)=>{y.init(e,t),k(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let i=t.innerType._zod.run(r,a);return i instanceof Promise?i.then(n=>Yo(n,e)):Yo(i,e)}});function Yo(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Ho=m("$ZodSuccess",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ii("ZodSuccess");let i=t.innerType._zod.run(r,a);return i instanceof Promise?i.then(n=>(r.value=n.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),Qo=m("$ZodCatch",(e,t)=>{y.init(e,t),k(e._zod,"optin",()=>t.innerType._zod.optin),k(e._zod,"optout",()=>t.innerType._zod.optout),k(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let i=t.innerType._zod.run(r,a);return i instanceof Promise?i.then(n=>(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>J(o,a,j()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(n=>J(n,a,j()))},input:r.value}),r.issues=[]),r)}}),eu=m("$ZodNaN",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),iu=m("$ZodPipe",(e,t)=>{y.init(e,t),k(e._zod,"values",()=>t.in._zod.values),k(e._zod,"optin",()=>t.in._zod.optin),k(e._zod,"optout",()=>t.out._zod.optout),k(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){let n=t.out._zod.run(r,a);return n instanceof Promise?n.then(o=>vi(o,t.in,a)):vi(n,t.in,a)}let i=t.in._zod.run(r,a);return i instanceof Promise?i.then(n=>vi(n,t.out,a)):vi(i,t.out,a)}});function vi(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const Jt=m("$ZodCodec",(e,t)=>{y.init(e,t),k(e._zod,"values",()=>t.in._zod.values),k(e._zod,"optin",()=>t.in._zod.optin),k(e._zod,"optout",()=>t.out._zod.optout),k(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if((a.direction||"forward")==="forward"){let i=t.in._zod.run(r,a);return i instanceof Promise?i.then(n=>gi(n,t,a)):gi(i,t,a)}else{let i=t.out._zod.run(r,a);return i instanceof Promise?i.then(n=>gi(n,t,a)):gi(i,t,a)}}});function gi(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let a=t.transform(e.value,e);return a instanceof Promise?a.then(i=>hi(e,i,t.out,r)):hi(e,a,t.out,r)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(i=>hi(e,i,t.in,r)):hi(e,a,t.in,r)}}function hi(e,t,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},a)}const tu=m("$ZodReadonly",(e,t)=>{y.init(e,t),k(e._zod,"propValues",()=>t.innerType._zod.propValues),k(e._zod,"values",()=>t.innerType._zod.values),k(e._zod,"optin",()=>{var r,a;return(a=(r=t.innerType)==null?void 0:r._zod)==null?void 0:a.optin}),k(e._zod,"optout",()=>{var r,a;return(a=(r=t.innerType)==null?void 0:r._zod)==null?void 0:a.optout}),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let i=t.innerType._zod.run(r,a);return i instanceof Promise?i.then(nu):nu(i)}});function nu(e){return e.value=Object.freeze(e.value),e}const ru=m("$ZodTemplateLiteral",(e,t)=>{y.init(e,t);let r=[];for(let a of t.parts)if(typeof a=="object"&&a){if(!a._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let i=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!i)throw Error(`Invalid template literal part: ${a._zod.traits}`);let n=i.startsWith("^")?1:0,o=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(n,o))}else if(a===null||_r.has(typeof a))r.push(B(`${a}`));else throw Error(`Invalid template literal part: ${a}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(a,i)=>typeof a.value=="string"?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a):(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a)}),au=m("$ZodFunction",(e,t)=>(y.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw Error("implement() must be called with a function");return function(...a){let i=e._def.input?di(e._def.input,a):a,n=Reflect.apply(r,this,i);return e._def.output?di(e._def.output,n):n}},e.implementAsync=r=>{if(typeof r!="function")throw Error("implementAsync() must be called with a function");return async function(...a){let i=e._def.input?await ci(e._def.input,a):a,n=await Reflect.apply(r,this,i);return e._def.output?await ci(e._def.output,n):n}},e._zod.parse=(r,a)=>typeof r.value=="function"?(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r):(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r),e.input=(...r)=>{let a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new At({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let a=e.constructor;return new a({type:"function",input:e._def.input,output:r})},e)),ou=m("$ZodPromise",(e,t)=>{y.init(e,t),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(i=>t.innerType._zod.run({value:i,issues:[]},a))}),uu=m("$ZodLazy",(e,t)=>{y.init(e,t),k(e._zod,"innerType",()=>t.getter()),k(e._zod,"pattern",()=>{var r,a;return(a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.pattern}),k(e._zod,"propValues",()=>{var r,a;return(a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.propValues}),k(e._zod,"optin",()=>{var r,a;return((a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.optin)??void 0}),k(e._zod,"optout",()=>{var r,a;return((a=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:a.optout)??void 0}),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),su=m("$ZodCustom",(e,t)=>{U.init(e,t),y.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,i=t.fn(a);if(i instanceof Promise)return i.then(n=>lu(n,r,a,e));lu(i,r,a,e)}});function lu(e,t,r,a){if(!e){let i={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(i.params=a._zod.def.params),t.issues.push(le(i))}}var gc=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(i){return e[i]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${n}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${u}`}case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${$(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${i.minimum.toString()} ${o.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:n.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${n.suffix}"`:n.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${n.includes}"`:n.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${n.pattern}`:`${r[n.format]??i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${v(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function hc(){return{localeError:gc()}}var $c=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${i.expected}, daxil olan ${u}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${n}, daxil olan ${u}`}case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${$(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${n}${i.maximum.toString()} ${o.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${n}${i.minimum.toString()} ${o.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${n.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:n.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${n.suffix}" il\u0259 bitm\u0259lidir`:n.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${n.includes}" daxil olmal\u0131d\u0131r`:n.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${n.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[n.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${v(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function _c(){return{localeError:$c()}}function du(e,t,r,a){let i=Math.abs(e),n=i%10,o=i%100;return o>=11&&o<=19?a:n===1?t:n>=2&&n<=4?r:a}var yc=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(i){return e[i]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},a={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${n}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${u}`}case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${$(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);if(o){let u=du(Number(i.maximum),o.unit.one,o.unit.few,o.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${n}${i.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);if(o){let u=du(Number(i.minimum),o.unit.one,o.unit.few,o.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${n}${i.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[n.format]??i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${v(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function bc(){return{localeError:yc()}}var kc=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(i){return e[i]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${u}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${$(i.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${n}${i.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${n}${i.minimum.toString()} ${o.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;if(n.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${n.prefix}"`;if(n.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${n.suffix}"`;if(n.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${n.includes}"`;if(n.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${n.pattern}`;let o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return n.format==="emoji"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="datetime"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="date"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),n.format==="time"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="duration"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${o} ${r[n.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${i.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u043E\u0432\u0435":""}: ${v(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Ic(){return{localeError:kc()}}var xc=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${i.expected}, s'ha rebut ${u}`:`Tipus inv\xE0lid: s'esperava ${n}, s'ha rebut ${u}`}case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${$(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(i.values," o ")}`;case"too_big":{let n=i.inclusive?"com a m\xE0xim":"menys de",o=t(i.origin);return o?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${n} ${i.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${n} ${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?"com a m\xEDnim":"m\xE9s de",o=t(i.origin);return o?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${n} ${i.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${n} ${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${n.prefix}"`:n.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${n.suffix}"`:n.format==="includes"?`Format inv\xE0lid: ha d'incloure "${n.includes}"`:n.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${n.pattern}`:`Format inv\xE0lid per a ${r[n.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function Sc(){return{localeError:xc()}}var wc=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(i){return e[i]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${i.expected}, obdr\u017Eeno ${u}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${n}, obdr\u017Eeno ${u}`}case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${$(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${n}${i.maximum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${n}${i.minimum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${n.prefix}"`:n.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${n.suffix}"`:n.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${n.includes}"`:n.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${n.pattern}`:`Neplatn\xFD form\xE1t ${r[n.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${v(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function zc(){return{localeError:wc()}}var Uc=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(i){return e[i]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${u}`:`Ugyldigt input: forventede ${n}, fik ${u}`}case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${$(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin),u=a[i.origin]??i.origin;return o?`For stor: forventede ${u??"value"} ${o.verb} ${n} ${i.maximum.toString()} ${o.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${n} ${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin),u=a[i.origin]??i.origin;return o?`For lille: forventede ${u} ${o.verb} ${n} ${i.minimum.toString()} ${o.unit}`:`For lille: forventede ${u} havde ${n} ${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Ugyldig streng: skal starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: skal ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: skal indeholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${r[n.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${v(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}};function Oc(){return{localeError:Uc()}}var Zc=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){return e[i]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},a={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${i.expected}, erhalten ${u}`:`Ung\xFCltige Eingabe: erwartet ${n}, erhalten ${u}`}case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${$(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${n}${i.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${n}${i.maximum.toString()} ist`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Zu klein: erwartet, dass ${i.origin} ${n}${i.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${n}${i.minimum.toString()} ist`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Ung\xFCltiger String: muss mit "${n.prefix}" beginnen`:n.format==="ends_with"?`Ung\xFCltiger String: muss mit "${n.suffix}" enden`:n.format==="includes"?`Ung\xFCltiger String: muss "${n.includes}" enthalten`:n.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${n.pattern} entsprechen`:`Ung\xFCltig: ${r[n.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${v(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function jc(){return{localeError:Zc()}}var Dc=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input);return`Invalid input: expected ${n}, received ${a[o]??o}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${$(i.values[0])}`:`Invalid option: expected one of ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${n}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${n}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function cu(){return{localeError:Dc()}}var Nc=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${i.expected}, ricevi\u011Dis ${u}`:`Nevalida enigo: atendi\u011Dis ${n}, ricevi\u011Dis ${u}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${$(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${n}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function Pc(){return{localeError:Nc()}}var Ec=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){return e[i]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${i.expected}, recibido ${u}`:`Entrada inv\xE1lida: se esperaba ${n}, recibido ${u}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${$(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin),u=a[i.origin]??i.origin;return o?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${n}${i.maximum.toString()} ${o.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin),u=a[i.origin]??i.origin;return o?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${n}${i.minimum.toString()} ${o.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${n.prefix}"`:n.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${n.suffix}"`:n.format==="includes"?`Cadena inv\xE1lida: debe incluir "${n.includes}"`:n.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${n.pattern}`:`Inv\xE1lido ${r[n.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${a[i.origin]??i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${a[i.origin]??i.origin}`;default:return"Entrada inv\xE1lida"}}};function Tc(){return{localeError:Ec()}}var Ac=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(i){return e[i]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${n} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${u} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${$(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${v(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${n}${i.minimum.toString()} ${o.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${n}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:n.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:n.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${n.includes}" \u0628\u0627\u0634\u062F`:n.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${n.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[n.format]??i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${v(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Lc(){return{localeError:Ac()}}var Jc=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(i){return e[i]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${u}`:`Virheellinen tyyppi: odotettiin ${n}, oli ${u}`}case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${$(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Liian suuri: ${o.subject} t\xE4ytyy olla ${n}${i.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Liian pieni: ${o.subject} t\xE4ytyy olla ${n}${i.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${n.prefix}"`:n.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${n.suffix}"`:n.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${n.includes}"`:n.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${n.pattern}`:`Virheellinen ${r[n.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${v(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Rc(){return{localeError:Jc()}}var Cc=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},a={nan:"NaN",number:"nombre",array:"tableau"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : instanceof ${i.expected} attendu, ${u} re\xE7u`:`Entr\xE9e invalide : ${n} attendu, ${u} re\xE7u`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${$(i.values[0])} attendu`:`Option invalide : une valeur parmi ${v(i.values,"|")} attendue`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Trop grand : ${i.origin??"valeur"} doit ${o.verb} ${n}${i.maximum.toString()} ${o.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Trop petit : ${i.origin} doit ${o.verb} ${n}${i.minimum.toString()} ${o.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${n.pattern}`:`${r[n.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${v(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function Fc(){return{localeError:Cc()}}var Mc=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : attendu instanceof ${i.expected}, re\xE7u ${u}`:`Entr\xE9e invalide : attendu ${n}, re\xE7u ${u}`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${$(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"\u2264":"<",o=t(i.origin);return o?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${n}${i.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?"\u2265":">",o=t(i.origin);return o?`Trop petit : attendu que ${i.origin} ait ${n}${i.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${i.origin} soit ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${n.pattern}`:`${r[n.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${v(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function Wc(){return{localeError:Mc()}}var Kc=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=s=>s?e[s]:void 0,a=s=>{let c=r(s);return c?c.label:s??e.unknown.label},i=s=>`\u05D4${a(s)}`,n=s=>{var c;return(((c=r(s))==null?void 0:c.gender)??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA"},o=s=>s?t[s]??null:null,u={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return s=>{var c;switch(s.code){case"invalid_type":{let d=s.expected,f=l[d??""]??a(d),h=_(s.input),I=l[h]??((c=e[h])==null?void 0:c.label)??h;return/^[A-Z]/.test(s.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${s.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${I}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${I}`}case"invalid_value":{if(s.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${$(s.values[0])}`;let d=s.values.map(h=>$(h));if(s.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let f=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let d=o(s.origin),f=i(s.origin??"value");if(s.origin==="string")return`${(d==null?void 0:d.longLabel)??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${s.maximum.toString()} ${(d==null?void 0:d.unit)??""} ${s.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(s.origin==="number")return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${s.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${s.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${s.maximum}`}`;if(s.origin==="array"||s.origin==="set")return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${s.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA"} \u05DC\u05D4\u05DB\u05D9\u05DC ${s.inclusive?`${s.maximum} ${(d==null?void 0:d.unit)??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${s.maximum} ${(d==null?void 0:d.unit)??""}`}`.trim();let h=s.inclusive?"<=":"<",I=n(s.origin??"value");return d!=null&&d.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${f} ${I} ${h}${s.maximum.toString()} ${d.unit}`:`${(d==null?void 0:d.longLabel)??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${I} ${h}${s.maximum.toString()}`}case"too_small":{let d=o(s.origin),f=i(s.origin??"value");if(s.origin==="string")return`${(d==null?void 0:d.shortLabel)??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${s.minimum.toString()} ${(d==null?void 0:d.unit)??""} ${s.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(s.origin==="number")return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${s.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${s.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${s.minimum}`}`;if(s.origin==="array"||s.origin==="set"){let z=s.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";return s.minimum===1&&s.inclusive?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${z} \u05DC\u05D4\u05DB\u05D9\u05DC ${s.origin,"\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3"}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${z} \u05DC\u05D4\u05DB\u05D9\u05DC ${s.inclusive?`${s.minimum} ${(d==null?void 0:d.unit)??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${s.minimum} ${(d==null?void 0:d.unit)??""}`}`.trim()}let h=s.inclusive?">=":">",I=n(s.origin??"value");return d!=null&&d.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${f} ${I} ${h}${s.minimum.toString()} ${d.unit}`:`${(d==null?void 0:d.shortLabel)??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${I} ${h}${s.minimum.toString()}`}case"invalid_format":{let d=s;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let f=u[d.format];return`${(f==null?void 0:f.label)??d.format} \u05DC\u05D0 ${((f==null?void 0:f.gender)??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF"}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${s.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${s.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${s.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${v(s.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i(s.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Gc(){return{localeError:Kc()}}var Vc=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},a={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${i.expected}, a kapott \xE9rt\xE9k ${u}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${n}, a kapott \xE9rt\xE9k ${u}`}case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${$(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${n}${i.maximum.toString()} ${o.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${n}${i.minimum.toString()} ${o.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\xC9rv\xE9nytelen string: "${n.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:n.format==="ends_with"?`\xC9rv\xE9nytelen string: "${n.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:n.format==="includes"?`\xC9rv\xE9nytelen string: "${n.includes}" \xE9rt\xE9ket kell tartalmaznia`:n.format==="regex"?`\xC9rv\xE9nytelen string: ${n.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[n.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Bc(){return{localeError:Vc()}}function mu(e,t,r){return Math.abs(e)===1?t:r}function ce(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var Xc=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(i){return e[i]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},a={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${i.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${n}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${u}`}case"invalid_value":return i.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${$(i.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);if(o){let u=mu(Number(i.maximum),o.unit.one,o.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ce(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${i.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ce(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);if(o){let u=mu(Number(i.minimum),o.unit.one,o.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ce(i.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${i.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ce(i.origin)} \u056C\u056B\u0576\u056B ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${n.prefix}"-\u0578\u057E`:n.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${n.suffix}"-\u0578\u057E`:n.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${n.includes}"`:n.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${n.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[n.format]??i.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${i.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${i.keys.length>1?"\u0576\u0565\u0580":""}. ${v(i.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${ce(i.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${ce(i.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function qc(){return{localeError:Xc()}}var Yc=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${u}`:`Input tidak valid: diharapkan ${n}, diterima ${u}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${$(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${n}${i.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Terlalu kecil: diharapkan ${i.origin} memiliki ${n}${i.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`String tidak valid: harus dimulai dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak valid: harus berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak valid: harus menyertakan "${n.includes}"`:n.format==="regex"?`String tidak valid: harus sesuai pola ${n.pattern}`:`${r[n.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function Hc(){return{localeError:Yc()}}var Qc=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(i){return e[i]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},a={nan:"NaN",number:"n\xFAmer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera instanceof ${i.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${u} \xFEar sem \xE1 a\xF0 vera ${n}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${$(i.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} hafi ${n}${i.maximum.toString()} ${o.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} s\xE9 ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} hafi ${n}${i.minimum.toString()} ${o.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} s\xE9 ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${n.prefix}"`:n.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${n.suffix}"`:n.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${n.includes}"`:n.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??i.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${v(i.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${i.origin}`;default:return"Rangt gildi"}}};function em(){return{localeError:Qc()}}var im=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${u}`:`Input non valido: atteso ${n}, ricevuto ${u}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${$(i.values[0])}`:`Opzione non valida: atteso uno tra ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Troppo grande: ${i.origin??"valore"} deve avere ${n}${i.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Troppo piccolo: ${i.origin} deve avere ${n}${i.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${i.origin} deve essere ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Stringa non valida: deve iniziare con "${n.prefix}"`:n.format==="ends_with"?`Stringa non valida: deve terminare con "${n.suffix}"`:n.format==="includes"?`Stringa non valida: deve includere "${n.includes}"`:n.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${v(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function tm(){return{localeError:im()}}var nm=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(i){return e[i]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},a={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${n}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${u}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${$(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let n=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",o=t(i.origin);return o?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${o.unit??"\u8981\u7D20"}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let n=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",o=t(i.origin);return o?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${o.unit}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${n.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[n.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${v(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function rm(){return{localeError:nm()}}var am=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(i){return e[i]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},a={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${i.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${u}`}case"invalid_value":return i.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${$(i.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${v(i.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${o.verb} ${n}${i.maximum.toString()} ${o.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} ${o.verb} ${n}${i.minimum.toString()} ${o.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} \u10D8\u10E7\u10DD\u10E1 ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${n.prefix}"-\u10D8\u10D7`:n.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${n.suffix}"-\u10D8\u10D7`:n.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${n.includes}"-\u10E1`:n.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${n.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[n.format]??i.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${i.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${v(i.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${i.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${i.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function om(){return{localeError:am()}}var um=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(i){return e[i]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},a={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${u}`}case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${$(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${i.maximum.toString()} ${o.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${n} ${i.minimum.toString()} ${o.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${n} ${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${n.prefix}"`:n.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${n.suffix}"`:n.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${n.includes}"`:n.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${n.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[n.format]??i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${v(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function pu(){return{localeError:um()}}function sm(){return pu()}var lm=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(i){return e[i]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${n}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${u}\uC785\uB2C8\uB2E4`}case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${$(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let n=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",o=n==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(i.origin),l=(u==null?void 0:u.unit)??"\uC694\uC18C";return u?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${l} ${n}${o}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${n}${o}`}case"too_small":{let n=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",o=n==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",u=t(i.origin),l=(u==null?void 0:u.unit)??"\uC694\uC18C";return u?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${l} ${n}${o}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${n}${o}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:n.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${n.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[n.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${v(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function dm(){return{localeError:lm()}}var Ee=e=>e.charAt(0).toUpperCase()+e.slice(1);function fu(e){let t=Math.abs(e),r=t%10,a=t%100;return a>=11&&a<=19||r===0?"many":r===1?"one":"few"}var cm=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(i,n,o,u){let l=e[i]??null;return l===null?l:{unit:l.unit[n],verb:l.verb[u][o?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},a={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${u}, o tik\u0117tasi - instanceof ${i.expected}`:`Gautas tipas ${u}, o tik\u0117tasi - ${n}`}case"invalid_value":return i.values.length===1?`Privalo b\u016Bti ${$(i.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(i.values,"|")} pasirinkim\u0173`;case"too_big":{let n=a[i.origin]??i.origin,o=t(i.origin,fu(Number(i.maximum)),i.inclusive??!1,"smaller");if(o!=null&&o.verb)return`${Ee(n??i.origin??"reik\u0161m\u0117")} ${o.verb} ${i.maximum.toString()} ${o.unit??"element\u0173"}`;let u=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Ee(n??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${i.maximum.toString()} ${o==null?void 0:o.unit}`}case"too_small":{let n=a[i.origin]??i.origin,o=t(i.origin,fu(Number(i.minimum)),i.inclusive??!1,"bigger");if(o!=null&&o.verb)return`${Ee(n??i.origin??"reik\u0161m\u0117")} ${o.verb} ${i.minimum.toString()} ${o.unit??"element\u0173"}`;let u=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Ee(n??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${u} ${i.minimum.toString()} ${o==null?void 0:o.unit}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${n.prefix}"`:n.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${n.includes}"`:n.format==="regex"?`Eilut\u0117 privalo atitikti ${n.pattern}`:`Neteisingas ${r[n.format]??i.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${v(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":return`${Ee(a[i.origin]??i.origin??i.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`;default:return"Klaidinga \u012Fvestis"}}};function mm(){return{localeError:cm()}}var pm=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(i){return e[i]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},a={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${u}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${$(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${n}${i.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${n}${i.minimum.toString()} ${o.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${v(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function fm(){return{localeError:pm()}}var vm=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${u}`:`Input tidak sah: dijangka ${n}, diterima ${u}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${$(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Terlalu besar: dijangka ${i.origin??"nilai"} ${o.verb} ${n}${i.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Terlalu kecil: dijangka ${i.origin} ${o.verb} ${n}${i.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`String tidak sah: mesti bermula dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak sah: mesti mengandungi "${n.includes}"`:n.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${n.pattern}`:`${r[n.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function gm(){return{localeError:vm()}}var hm=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(i){return e[i]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},a={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${u}`:`Ongeldige invoer: verwacht ${n}, ontving ${u}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${$(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin),u=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return o?`Te ${u}: verwacht dat ${i.origin??"waarde"} ${n}${i.maximum.toString()} ${o.unit??"elementen"} ${o.verb}`:`Te ${u}: verwacht dat ${i.origin??"waarde"} ${n}${i.maximum.toString()} is`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin),u=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return o?`Te ${u}: verwacht dat ${i.origin} ${n}${i.minimum.toString()} ${o.unit} ${o.verb}`:`Te ${u}: verwacht dat ${i.origin} ${n}${i.minimum.toString()} is`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Ongeldige tekst: moet met "${n.prefix}" beginnen`:n.format==="ends_with"?`Ongeldige tekst: moet op "${n.suffix}" eindigen`:n.format==="includes"?`Ongeldige tekst: moet "${n.includes}" bevatten`:n.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`:`Ongeldig: ${r[n.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function $m(){return{localeError:hm()}}var _m=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(i){return e[i]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${u}`:`Ugyldig input: forventet ${n}, fikk ${u}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${$(i.values[0])}`:`Ugyldig valg: forventet en av ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${n}${i.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`For lite(n): forventet ${i.origin} til \xE5 ha ${n}${i.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${r[n.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${v(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function ym(){return{localeError:_m()}}var bm=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`F\xE2sit giren: umulan instanceof ${i.expected}, al\u0131nan ${u}`:`F\xE2sit giren: umulan ${n}, al\u0131nan ${u}`}case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${$(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${n}${i.maximum.toString()} ${o.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${n}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${n}${i.minimum.toString()} ${o.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${n}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let n=i;return n.format==="starts_with"?`F\xE2sit metin: "${n.prefix}" ile ba\u015Flamal\u0131.`:n.format==="ends_with"?`F\xE2sit metin: "${n.suffix}" ile bitmeli.`:n.format==="includes"?`F\xE2sit metin: "${n.includes}" ihtiv\xE2 etmeli.`:n.format==="regex"?`F\xE2sit metin: ${n.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[n.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function km(){return{localeError:bm()}}var Im=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(i){return e[i]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${n} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${u} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${$(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${i.maximum.toString()} \u0648\u064A`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${n}${i.minimum.toString()} ${o.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${n}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:n.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:n.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${n.includes}" \u0648\u0644\u0631\u064A`:n.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${n.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[n.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${v(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function xm(){return{localeError:Im()}}var Sm=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(i){return e[i]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},a={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${i.expected}, otrzymano ${u}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${n}, otrzymano ${u}`}case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${$(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${i.maximum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${i.minimum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${n.prefix}"`:n.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${n.suffix}"`:n.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${n.includes}"`:n.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${n.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[n.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function wm(){return{localeError:Sm()}}var zm=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",number:"n\xFAmero",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Tipo inv\xE1lido: esperado instanceof ${i.expected}, recebido ${u}`:`Tipo inv\xE1lido: esperado ${n}, recebido ${u}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${$(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${n}${i.maximum.toString()} ${o.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Muito pequeno: esperado que ${i.origin} tivesse ${n}${i.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${n.prefix}"`:n.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${n.suffix}"`:n.format==="includes"?`Texto inv\xE1lido: deve incluir "${n.includes}"`:n.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${n.pattern}`:`${r[n.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${v(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function Um(){return{localeError:zm()}}function vu(e,t,r,a){let i=Math.abs(e),n=i%10,o=i%100;return o>=11&&o<=19?a:n===1?t:n>=2&&n<=4?r:a}var Om=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(i){return e[i]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${u}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${$(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);if(o){let u=vu(Number(i.maximum),o.unit.one,o.unit.few,o.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${i.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);if(o){let u=vu(Number(i.minimum),o.unit.one,o.unit.few,o.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${i.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[n.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${v(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Zm(){return{localeError:Om()}}var jm=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},a={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${i.expected}, prejeto ${u}`:`Neveljaven vnos: pri\u010Dakovano ${n}, prejeto ${u}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${$(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${n}${i.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${n}${i.minimum.toString()} ${o.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${n.prefix}"`:n.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${n.suffix}"`:n.format==="includes"?`Neveljaven niz: mora vsebovati "${n.includes}"`:n.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`:`Neveljaven ${r[n.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${v(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function Dm(){return{localeError:jm()}}var Nm=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(i){return e[i]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},a={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${i.expected}, fick ${u}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${n}, fick ${u}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${$(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${n}${i.maximum.toString()} ${o.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${n}${i.minimum.toString()} ${o.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${n.prefix}"`:n.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${n.suffix}"`:n.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${n.includes}"`:n.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${n.pattern}"`:`Ogiltig(t) ${r[n.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${v(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Pm(){return{localeError:Nm()}}var Em=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(i){return e[i]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${u}`}case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${$(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${v(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${i.maximum.toString()} ${o.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${n}${i.minimum.toString()} ${o.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${n}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${n.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[n.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${v(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Tm(){return{localeError:Em()}}var Am=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(i){return e[i]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},a={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${n} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${u}`}case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${$(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",o=t(i.origin);return o?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${i.maximum.toString()} ${o.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",o=t(i.origin);return o?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${i.minimum.toString()} ${o.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${n.prefix}"`:n.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${n.suffix}"`:n.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${n.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:n.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${n.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[n.format]??i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${v(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Lm(){return{localeError:Am()}}var Jm=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${i.expected}, al\u0131nan ${u}`:`Ge\xE7ersiz de\u011Fer: beklenen ${n}, al\u0131nan ${u}`}case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${$(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${n}${i.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${n}${i.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Ge\xE7ersiz metin: "${n.prefix}" ile ba\u015Flamal\u0131`:n.format==="ends_with"?`Ge\xE7ersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Ge\xE7ersiz metin: "${n.includes}" i\xE7ermeli`:n.format==="regex"?`Ge\xE7ersiz metin: ${n.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[n.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${v(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Rm(){return{localeError:Jm()}}var Cm=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(i){return e[i]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${n}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${u}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${$(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${o.verb} ${n}${i.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${o.verb} ${n}${i.minimum.toString()} ${o.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[n.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${v(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function gu(){return{localeError:Cm()}}function Fm(){return gu()}var Mm=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(i){return e[i]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},a={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${n} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${u} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${$(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${n}${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${n}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${n}${i.minimum.toString()} ${o.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${n}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${n.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[n.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${v(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Wm(){return{localeError:Mm()}}var Km=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(i){return e[i]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},a={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${u}`:`Noto\u2018g\u2018ri kirish: kutilgan ${n}, qabul qilingan ${u}`}case"invalid_value":return i.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${$(i.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Juda katta: kutilgan ${i.origin??"qiymat"} ${n}${i.maximum.toString()} ${o.unit} ${o.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Juda kichik: kutilgan ${i.origin} ${n}${i.minimum.toString()} ${o.unit} ${o.verb}`:`Juda kichik: kutilgan ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${n.prefix}" bilan boshlanishi kerak`:n.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${n.suffix}" bilan tugashi kerak`:n.format==="includes"?`Noto\u2018g\u2018ri satr: "${n.includes}" ni o\u2018z ichiga olishi kerak`:n.format==="regex"?`Noto\u2018g\u2018ri satr: ${n.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[n.format]??i.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${i.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${i.keys.length>1?"lar":""}: ${v(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${i.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Gm(){return{localeError:Km()}}var Vm=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(i){return e[i]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},a={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${n}, nh\u1EADn \u0111\u01B0\u1EE3c ${u}`}case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${$(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${o.verb} ${n}${i.maximum.toString()} ${o.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${o.verb} ${n}${i.minimum.toString()} ${o.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${n.prefix}"`:n.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${n.suffix}"`:n.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${n.includes}"`:n.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${n.pattern}`:`${r[n.format]??i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${v(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Bm(){return{localeError:Vm()}}var Xm=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(i){return e[i]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},a={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${n}\uFF0C\u5B9E\u9645\u63A5\u6536 ${u}`}case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${$(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${n}${i.maximum.toString()} ${o.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${n}${i.minimum.toString()} ${o.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.prefix}" \u5F00\u5934`:n.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.suffix}" \u7ED3\u5C3E`:n.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${n.pattern}`:`\u65E0\u6548${r[n.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${v(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function qm(){return{localeError:Xm()}}var Ym=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(i){return e[i]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},a={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${i.expected}\uFF0C\u4F46\u6536\u5230 ${u}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${n}\uFF0C\u4F46\u6536\u5230 ${u}`}case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${$(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${n}${i.maximum.toString()} ${o.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${n}${i.maximum.toString()}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${n}${i.minimum.toString()} ${o.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${n}${i.minimum.toString()}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.prefix}" \u958B\u982D`:n.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.suffix}" \u7D50\u5C3E`:n.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${n.pattern}`:`\u7121\u6548\u7684 ${r[n.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${v(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Hm(){return{localeError:Ym()}}var Qm=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(i){return e[i]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},a={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return i=>{switch(i.code){case"invalid_type":{let n=a[i.expected]??i.expected,o=_(i.input),u=a[o]??o;return/^[A-Z]/.test(i.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${i.expected}, \xE0m\u1ECD\u0300 a r\xED ${u}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${n}, \xE0m\u1ECD\u0300 a r\xED ${u}`}case"invalid_value":return i.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${$(i.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(i.values,"|")}`;case"too_big":{let n=i.inclusive?"<=":"<",o=t(i.origin);return o?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin??"iye"} ${o.verb} ${n}${i.maximum} ${o.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${i.maximum}`}case"too_small":{let n=i.inclusive?">=":">",o=t(i.origin);return o?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin} ${o.verb} ${n}${i.minimum} ${o.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${i.minimum}`}case"invalid_format":{let n=i;return n.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${n.prefix}"`:n.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${n.suffix}"`:n.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${n.includes}"`:n.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${n.pattern}`:`A\u1E63\xEC\u1E63e: ${r[n.format]??i.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${i.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${v(i.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function ep(){return{localeError:Qm()}}var hu=V({ar:()=>hc,az:()=>_c,be:()=>bc,bg:()=>Ic,ca:()=>Sc,cs:()=>zc,da:()=>Oc,de:()=>jc,en:()=>cu,eo:()=>Pc,es:()=>Tc,fa:()=>Lc,fi:()=>Rc,fr:()=>Fc,frCA:()=>Wc,he:()=>Gc,hu:()=>Bc,hy:()=>qc,id:()=>Hc,is:()=>em,it:()=>tm,ja:()=>rm,ka:()=>om,kh:()=>sm,km:()=>pu,ko:()=>dm,lt:()=>mm,mk:()=>fm,ms:()=>gm,nl:()=>$m,no:()=>ym,ota:()=>km,pl:()=>wm,ps:()=>xm,pt:()=>Um,ru:()=>Zm,sl:()=>Dm,sv:()=>Pm,ta:()=>Tm,th:()=>Lm,tr:()=>Rm,ua:()=>Fm,uk:()=>gu,ur:()=>Wm,uz:()=>Gm,vi:()=>Bm,yo:()=>ep,zhCN:()=>qm,zhTW:()=>Hm},1),$u;const _u=Symbol("ZodOutput"),yu=Symbol("ZodInput");var bu=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let a={...r,...this._map.get(e)};return Object.keys(a).length?a:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Rt(){return new bu}($u=globalThis).__zod_globalRegistry??($u.__zod_globalRegistry=Rt());const R=globalThis.__zod_globalRegistry;function ku(e,t){return new e({type:"string",...p(t)})}function Iu(e,t){return new e({type:"string",coerce:!0,...p(t)})}function Ct(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...p(t)})}function $i(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...p(t)})}function Ft(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...p(t)})}function Mt(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...p(t)})}function Wt(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...p(t)})}function Kt(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...p(t)})}function _i(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...p(t)})}function Gt(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...p(t)})}function Vt(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...p(t)})}function Bt(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...p(t)})}function Xt(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...p(t)})}function qt(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...p(t)})}function Yt(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...p(t)})}function Ht(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...p(t)})}function Qt(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...p(t)})}function en(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...p(t)})}function xu(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...p(t)})}function tn(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...p(t)})}function nn(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...p(t)})}function rn(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...p(t)})}function an(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...p(t)})}function on(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...p(t)})}function un(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...p(t)})}const Su={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function wu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...p(t)})}function zu(e,t){return new e({type:"string",format:"date",check:"string_format",...p(t)})}function Uu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...p(t)})}function Ou(e,t){return new e({type:"string",format:"duration",check:"string_format",...p(t)})}function Zu(e,t){return new e({type:"number",checks:[],...p(t)})}function ju(e,t){return new e({type:"number",coerce:!0,checks:[],...p(t)})}function Du(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...p(t)})}function Nu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...p(t)})}function Pu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...p(t)})}function Eu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...p(t)})}function Tu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...p(t)})}function Au(e,t){return new e({type:"boolean",...p(t)})}function Lu(e,t){return new e({type:"boolean",coerce:!0,...p(t)})}function Ju(e,t){return new e({type:"bigint",...p(t)})}function Ru(e,t){return new e({type:"bigint",coerce:!0,...p(t)})}function Cu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...p(t)})}function Fu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...p(t)})}function Mu(e,t){return new e({type:"symbol",...p(t)})}function Wu(e,t){return new e({type:"undefined",...p(t)})}function Ku(e,t){return new e({type:"null",...p(t)})}function Gu(e){return new e({type:"any"})}function Vu(e){return new e({type:"unknown"})}function Bu(e,t){return new e({type:"never",...p(t)})}function Xu(e,t){return new e({type:"void",...p(t)})}function qu(e,t){return new e({type:"date",...p(t)})}function Yu(e,t){return new e({type:"date",coerce:!0,...p(t)})}function Hu(e,t){return new e({type:"nan",...p(t)})}function Y(e,t){return new Zt({check:"less_than",...p(t),value:e,inclusive:!1})}function C(e,t){return new Zt({check:"less_than",...p(t),value:e,inclusive:!0})}function H(e,t){return new jt({check:"greater_than",...p(t),value:e,inclusive:!1})}function E(e,t){return new jt({check:"greater_than",...p(t),value:e,inclusive:!0})}function sn(e){return H(0,e)}function ln(e){return Y(0,e)}function dn(e){return C(0,e)}function cn(e){return E(0,e)}function me(e,t){return new $a({check:"multiple_of",...p(t),value:e})}function pe(e,t){return new ba({check:"max_size",...p(t),maximum:e})}function Q(e,t){return new ka({check:"min_size",...p(t),minimum:e})}function Te(e,t){return new Ia({check:"size_equals",...p(t),size:e})}function Ae(e,t){return new xa({check:"max_length",...p(t),maximum:e})}function ae(e,t){return new Sa({check:"min_length",...p(t),minimum:e})}function Le(e,t){return new wa({check:"length_equals",...p(t),length:e})}function yi(e,t){return new za({check:"string_format",format:"regex",...p(t),pattern:e})}function bi(e){return new Ua({check:"string_format",format:"lowercase",...p(e)})}function ki(e){return new Oa({check:"string_format",format:"uppercase",...p(e)})}function Ii(e,t){return new Za({check:"string_format",format:"includes",...p(t),includes:e})}function xi(e,t){return new ja({check:"string_format",format:"starts_with",...p(t),prefix:e})}function Si(e,t){return new Da({check:"string_format",format:"ends_with",...p(t),suffix:e})}function mn(e,t,r){return new Pa({check:"property",property:e,schema:t,...p(r)})}function wi(e,t){return new Ea({check:"mime_type",mime:e,...p(t)})}function X(e){return new Ta({check:"overwrite",tx:e})}function zi(e){return X(t=>t.normalize(e))}function Ui(){return X(e=>e.trim())}function Oi(){return X(e=>e.toLowerCase())}function Zi(){return X(e=>e.toUpperCase())}function ji(){return X(e=>hr(e))}function Qu(e,t,r){return new e({type:"array",element:t,...p(r)})}function ip(e,t,r){return new e({type:"union",options:t,...p(r)})}function tp(e,t,r){return new e({type:"union",options:t,inclusive:!1,...p(r)})}function np(e,t,r,a){return new e({type:"union",options:r,discriminator:t,...p(a)})}function rp(e,t,r){return new e({type:"intersection",left:t,right:r})}function ap(e,t,r,a){let i=r instanceof y;return new e({type:"tuple",items:t,rest:i?r:null,...p(i?a:r)})}function op(e,t,r,a){return new e({type:"record",keyType:t,valueType:r,...p(a)})}function up(e,t,r,a){return new e({type:"map",keyType:t,valueType:r,...p(a)})}function sp(e,t,r){return new e({type:"set",valueType:t,...p(r)})}function lp(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t,...p(r)})}function dp(e,t,r){return new e({type:"enum",entries:t,...p(r)})}function cp(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...p(r)})}function es(e,t){return new e({type:"file",...p(t)})}function mp(e,t){return new e({type:"transform",transform:t})}function pp(e,t){return new e({type:"optional",innerType:t})}function fp(e,t){return new e({type:"nullable",innerType:t})}function vp(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():ai(r)}})}function gp(e,t,r){return new e({type:"nonoptional",innerType:t,...p(r)})}function hp(e,t){return new e({type:"success",innerType:t})}function $p(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function _p(e,t,r){return new e({type:"pipe",in:t,out:r})}function yp(e,t){return new e({type:"readonly",innerType:t})}function bp(e,t,r){return new e({type:"template_literal",parts:t,...p(r)})}function kp(e,t){return new e({type:"lazy",getter:t})}function Ip(e,t){return new e({type:"promise",innerType:t})}function is(e,t,r){let a=p(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function ts(e,t,r){return new e({type:"custom",check:"custom",fn:t,...p(r)})}function ns(e){let t=rs(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(le(a,r.value,t._zod.def));else{let i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(le(i))}},e(r.value,r)));return t}function rs(e,t){let r=new U({check:"custom",...p(t)});return r._zod.check=e,r}function as(e){let t=new U({check:"describe"});return t._zod.onattach=[r=>{let a=R.get(r)??{};R.add(r,{...a,description:e})}],t._zod.check=()=>{},t}function os(e){let t=new U({check:"meta"});return t._zod.onattach=[r=>{let a=R.get(r)??{};R.add(r,{...a,...e})}],t._zod.check=()=>{},t}function us(e,t){let r=p(t),a=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(c=>typeof c=="string"?c.toLowerCase():c),i=i.map(c=>typeof c=="string"?c.toLowerCase():c));let n=new Set(a),o=new Set(i),u=e.Codec??Jt,l=e.Boolean??Pt,s=new u({type:"pipe",in:new(e.String??Pe)({type:"string",error:r.error}),out:new l({type:"boolean",error:r.error}),transform:((c,d)=>{let f=c;return r.case!=="sensitive"&&(f=f.toLowerCase()),n.has(f)?!0:o.has(f)?!1:(d.issues.push({code:"invalid_value",expected:"stringbool",values:[...n,...o],input:d.value,inst:s,continue:!1}),{})}),reverseTransform:((c,d)=>c===!0?a[0]||"true":i[0]||"false"),error:r.error});return s}function Je(e,t,r,a={}){let i=p(a),n={...p(a),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:o=>r.test(o),...i};return r instanceof RegExp&&(n.pattern=r),new e(n)}function fe(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??R,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function x(e,t,r={path:[],schemaPath:[]}){var s,c;var a;let i=e._zod.def,n=t.seen.get(e);if(n)return n.count++,r.schemaPath.includes(e)&&(n.cycle=r.path),n.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let u=(c=(s=e._zod).toJSONSchema)==null?void 0:c.call(s);if(u)o.schema=u;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,d);else{let h=o.schema,I=t.processors[i.type];if(!I)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);I(e,t,h,d)}let f=e._zod.parent;f&&(o.ref||(o.ref=f),x(f,t,d),t.seen.get(f).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),t.io==="input"&&N(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&o.schema._prefault&&((a=o.schema).default??(a.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ve(e,t){var o,u,l,s;let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let c of e.seen.entries()){let d=(o=e.metadataRegistry.get(c[0]))==null?void 0:o.id;if(d){let f=a.get(d);if(f&&f!==c[0])throw Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(d,c[0])}}let i=c=>{var I;let d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let z=(I=e.external.registry.get(c[0]))==null?void 0:I.id,O=e.external.uri??(ei=>ei);if(z)return{ref:O(z)};let Z=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=Z,{defId:Z,ref:`${O("__shared")}#/${d}/${Z}`}}if(c[1]===r)return{ref:"#"};let f=`#/${d}/`,h=c[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:f+h}},n=c=>{if(c[1].schema.$ref)return;let d=c[1],{ref:f,defId:h}=i(c);d.def={...d.schema},h&&(d.defId=h);let I=d.schema;for(let z in I)delete I[z];I.$ref=f};if(e.cycles==="throw")for(let c of e.seen.entries()){let d=c[1];if(d.cycle)throw Error(`Cycle detected: #/${(u=d.cycle)==null?void 0:u.join("/")}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let c of e.seen.entries()){let d=c[1];if(t===c[0]){n(c);continue}if(e.external){let f=(l=e.external.registry.get(c[0]))==null?void 0:l.id;if(t!==c[0]&&f){n(c);continue}}if((s=e.metadataRegistry.get(c[0]))!=null&&s.id){n(c);continue}if(d.cycle){n(c);continue}if(d.count>1&&e.reused==="ref"){n(c);continue}}}function ge(e,t){var o,u,l;let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let a=s=>{let c=e.seen.get(s);if(c.ref===null)return;let d=c.def??c.schema,f={...d},h=c.ref;if(c.ref=null,h){a(h);let z=e.seen.get(h),O=z.schema;if(O.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(O)):Object.assign(d,O),Object.assign(d,f),s._zod.parent===h)for(let Z in d)Z==="$ref"||Z==="allOf"||Z in f||delete d[Z];if(O.$ref)for(let Z in d)Z==="$ref"||Z==="allOf"||Z in z.def&&JSON.stringify(d[Z])===JSON.stringify(z.def[Z])&&delete d[Z]}let I=s._zod.parent;if(I&&I!==h){a(I);let z=e.seen.get(I);if(z!=null&&z.schema.$ref&&(d.$ref=z.schema.$ref,z.def))for(let O in d)O==="$ref"||O==="allOf"||O in z.def&&JSON.stringify(d[O])===JSON.stringify(z.def[O])&&delete d[O]}e.override({zodSchema:s,jsonSchema:d,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())a(s[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(o=e.external)==null?void 0:o.uri){let s=(u=e.external.registry.get(t))==null?void 0:u.id;if(!s)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(s)}Object.assign(i,r.def??r.schema);let n=((l=e.external)==null?void 0:l.defs)??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(n[c.defId]=c.def)}e.external||Object.keys(n).length>0&&(e.target==="draft-2020-12"?i.$defs=n:i.definitions=n);try{let s=JSON.parse(JSON.stringify(i));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Re(t,"input",e.processors),output:Re(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw Error("Error converting schema to JSON.")}}function N(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return N(a.element,r);if(a.type==="set")return N(a.valueType,r);if(a.type==="lazy")return N(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return N(a.innerType,r);if(a.type==="intersection")return N(a.left,r)||N(a.right,r);if(a.type==="record"||a.type==="map")return N(a.keyType,r)||N(a.valueType,r);if(a.type==="pipe")return N(a.in,r)||N(a.out,r);if(a.type==="object"){for(let i in a.shape)if(N(a.shape[i],r))return!0;return!1}if(a.type==="union"){for(let i of a.options)if(N(i,r))return!0;return!1}if(a.type==="tuple"){for(let i of a.items)if(N(i,r))return!0;return!!(a.rest&&N(a.rest,r))}return!1}const ss=(e,t={})=>r=>{let a=fe({...r,processors:t});return x(e,a),ve(a,e),ge(a,e)},Re=(e,t,r={})=>a=>{let{libraryOptions:i,target:n}=a??{},o=fe({...i??{},target:n,io:t,processors:r});return x(e,o),ve(o,e),ge(o,e)};var xp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""};const ls=(e,t,r,a)=>{let i=r;i.type="string";let{minimum:n,maximum:o,format:u,patterns:l,contentEncoding:s}=e._zod.bag;if(typeof n=="number"&&(i.minLength=n),typeof o=="number"&&(i.maxLength=o),u&&(i.format=xp[u]??u,i.format===""&&delete i.format,u==="time"&&delete i.format),s&&(i.contentEncoding=s),l&&l.size>0){let c=[...l];c.length===1?i.pattern=c[0].source:c.length>1&&(i.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},ds=(e,t,r,a)=>{let i=r,{minimum:n,maximum:o,format:u,multipleOf:l,exclusiveMaximum:s,exclusiveMinimum:c}=e._zod.bag;typeof u=="string"&&u.includes("int")?i.type="integer":i.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=c,i.exclusiveMinimum=!0):i.exclusiveMinimum=c),typeof n=="number"&&(i.minimum=n,typeof c=="number"&&t.target!=="draft-04"&&(c>=n?delete i.minimum:delete i.exclusiveMinimum)),typeof s=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=s,i.exclusiveMaximum=!0):i.exclusiveMaximum=s),typeof o=="number"&&(i.maximum=o,typeof s=="number"&&t.target!=="draft-04"&&(s<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},cs=(e,t,r,a)=>{r.type="boolean"},ms=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema")},ps=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema")},fs=(e,t,r,a)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},vs=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema")},gs=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema")},hs=(e,t,r,a)=>{r.not={}},Sp=(e,t,r,a)=>{},wp=(e,t,r,a)=>{},$s=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema")},_s=(e,t,r,a)=>{let i=e._zod.def,n=pt(i.entries);n.every(o=>typeof o=="number")&&(r.type="number"),n.every(o=>typeof o=="string")&&(r.type="string"),r.enum=n},ys=(e,t,r,a)=>{let i=e._zod.def,n=[];for(let o of i.values)if(o===void 0){if(t.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(t.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");n.push(Number(o))}else n.push(o);if(n.length!==0)if(n.length===1){let o=n[0];r.type=o===null?"null":typeof o,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[o]:r.const=o}else n.every(o=>typeof o=="number")&&(r.type="number"),n.every(o=>typeof o=="string")&&(r.type="string"),n.every(o=>typeof o=="boolean")&&(r.type="boolean"),n.every(o=>o===null)&&(r.type="null"),r.enum=n},bs=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema")},ks=(e,t,r,a)=>{let i=r,n=e._zod.pattern;if(!n)throw Error("Pattern not found in template literal");i.type="string",i.pattern=n.source},Is=(e,t,r,a)=>{let i=r,n={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:u,mime:l}=e._zod.bag;o!==void 0&&(n.minLength=o),u!==void 0&&(n.maxLength=u),l?l.length===1?(n.contentMediaType=l[0],Object.assign(i,n)):(Object.assign(i,n),i.anyOf=l.map(s=>({contentMediaType:s}))):Object.assign(i,n)},xs=(e,t,r,a)=>{r.type="boolean"},Ss=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")},ws=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Function types cannot be represented in JSON Schema")},zs=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")},Us=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema")},Os=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema")},Zs=(e,t,r,a)=>{let i=r,n=e._zod.def,{minimum:o,maximum:u}=e._zod.bag;typeof o=="number"&&(i.minItems=o),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=x(n.element,t,{...a,path:[...a.path,"items"]})},js=(e,t,r,a)=>{var s;let i=r,n=e._zod.def;i.type="object",i.properties={};let o=n.shape;for(let c in o)i.properties[c]=x(o[c],t,{...a,path:[...a.path,"properties",c]});let u=new Set(Object.keys(o)),l=new Set([...u].filter(c=>{let d=n.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((s=n.catchall)==null?void 0:s._zod.def.type)==="never"?i.additionalProperties=!1:n.catchall?n.catchall&&(i.additionalProperties=x(n.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},pn=(e,t,r,a)=>{let i=e._zod.def,n=i.inclusive===!1,o=i.options.map((u,l)=>x(u,t,{...a,path:[...a.path,n?"oneOf":"anyOf",l]}));n?r.oneOf=o:r.anyOf=o},Ds=(e,t,r,a)=>{let i=e._zod.def,n=x(i.left,t,{...a,path:[...a.path,"allOf",0]}),o=x(i.right,t,{...a,path:[...a.path,"allOf",1]}),u=l=>"allOf"in l&&Object.keys(l).length===1;r.allOf=[...u(n)?n.allOf:[n],...u(o)?o.allOf:[o]]},Ns=(e,t,r,a)=>{let i=r,n=e._zod.def;i.type="array";let o=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=n.items.map((f,h)=>x(f,t,{...a,path:[...a.path,o,h]})),s=n.rest?x(n.rest,t,{...a,path:[...a.path,u,...t.target==="openapi-3.0"?[n.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=l,s&&(i.items=s)):t.target==="openapi-3.0"?(i.items={anyOf:l},s&&i.items.anyOf.push(s),i.minItems=l.length,s||(i.maxItems=l.length)):(i.items=l,s&&(i.additionalItems=s));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(i.minItems=c),typeof d=="number"&&(i.maxItems=d)},Ps=(e,t,r,a)=>{var s;let i=r,n=e._zod.def;i.type="object";let o=n.keyType,u=(s=o._zod.bag)==null?void 0:s.patterns;if(n.mode==="loose"&&u&&u.size>0){let c=x(n.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});i.patternProperties={};for(let d of u)i.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=x(n.keyType,t,{...a,path:[...a.path,"propertyNames"]})),i.additionalProperties=x(n.valueType,t,{...a,path:[...a.path,"additionalProperties"]});let l=o._zod.values;if(l){let c=[...l].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(i.required=c)}},Es=(e,t,r,a)=>{let i=e._zod.def,n=x(i.innerType,t,a),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=i.innerType,r.nullable=!0):r.anyOf=[n,{type:"null"}]},Ts=(e,t,r,a)=>{let i=e._zod.def;x(i.innerType,t,a);let n=t.seen.get(e);n.ref=i.innerType},As=(e,t,r,a)=>{let i=e._zod.def;x(i.innerType,t,a);let n=t.seen.get(e);n.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},Ls=(e,t,r,a)=>{let i=e._zod.def;x(i.innerType,t,a);let n=t.seen.get(e);n.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Js=(e,t,r,a)=>{let i=e._zod.def;x(i.innerType,t,a);let n=t.seen.get(e);n.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=o},Rs=(e,t,r,a)=>{let i=e._zod.def,n=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;x(n,t,a);let o=t.seen.get(e);o.ref=n},Cs=(e,t,r,a)=>{let i=e._zod.def;x(i.innerType,t,a);let n=t.seen.get(e);n.ref=i.innerType,r.readOnly=!0},Fs=(e,t,r,a)=>{let i=e._zod.def;x(i.innerType,t,a);let n=t.seen.get(e);n.ref=i.innerType},fn=(e,t,r,a)=>{let i=e._zod.def;x(i.innerType,t,a);let n=t.seen.get(e);n.ref=i.innerType},Ms=(e,t,r,a)=>{let i=e._zod.innerType;x(i,t,a);let n=t.seen.get(e);n.ref=i},vn={string:ls,number:ds,boolean:cs,bigint:ms,symbol:ps,null:fs,undefined:vs,void:gs,never:hs,any:Sp,unknown:wp,date:$s,enum:_s,literal:ys,nan:bs,template_literal:ks,file:Is,success:xs,custom:Ss,function:ws,transform:zs,map:Us,set:Os,array:Zs,object:js,union:pn,intersection:Ds,tuple:Ns,record:Ps,nullable:Es,nonoptional:Ts,default:As,prefault:Ls,catch:Js,pipe:Rs,readonly:Cs,promise:Fs,optional:fn,lazy:Ms};function gn(e,t){if("_idmap"in e){let a=e,i=fe({...t,processors:vn}),n={};for(let u of a._idmap.entries()){let[l,s]=u;x(s,i)}let o={};i.external={registry:a,uri:t==null?void 0:t.uri,defs:n};for(let u of a._idmap.entries()){let[l,s]=u;ve(i,s),o[l]=ge(i,s)}return Object.keys(n).length>0&&(o.__shared={[i.target==="draft-2020-12"?"$defs":"definitions"]:n}),{schemas:o}}let r=fe({...t,processors:vn});return x(e,r),ve(r,e),ge(r,e)}var zp=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=(e==null?void 0:e.target)??"draft-2020-12";t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),this.ctx=fe({processors:vn,target:t,...(e==null?void 0:e.metadata)&&{metadata:e.metadata},...(e==null?void 0:e.unrepresentable)&&{unrepresentable:e.unrepresentable},...(e==null?void 0:e.override)&&{override:e.override},...(e==null?void 0:e.io)&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return x(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),ve(this.ctx,e);let{"~standard":r,...a}=ge(this.ctx,e);return a}},Up={},Op=V({$ZodAny:()=>$o,$ZodArray:()=>xo,$ZodAsyncError:()=>ie,$ZodBase64:()=>ao,$ZodBase64URL:()=>uo,$ZodBigInt:()=>Et,$ZodBigIntFormat:()=>fo,$ZodBoolean:()=>Pt,$ZodCIDRv4:()=>no,$ZodCIDRv6:()=>ro,$ZodCUID:()=>Ka,$ZodCUID2:()=>Ga,$ZodCatch:()=>Qo,$ZodCheck:()=>U,$ZodCheckBigIntFormat:()=>ya,$ZodCheckEndsWith:()=>Da,$ZodCheckGreaterThan:()=>jt,$ZodCheckIncludes:()=>Za,$ZodCheckLengthEquals:()=>wa,$ZodCheckLessThan:()=>Zt,$ZodCheckLowerCase:()=>Ua,$ZodCheckMaxLength:()=>xa,$ZodCheckMaxSize:()=>ba,$ZodCheckMimeType:()=>Ea,$ZodCheckMinLength:()=>Sa,$ZodCheckMinSize:()=>ka,$ZodCheckMultipleOf:()=>$a,$ZodCheckNumberFormat:()=>_a,$ZodCheckOverwrite:()=>Ta,$ZodCheckProperty:()=>Pa,$ZodCheckRegex:()=>za,$ZodCheckSizeEquals:()=>Ia,$ZodCheckStartsWith:()=>ja,$ZodCheckStringFormat:()=>Ne,$ZodCheckUpperCase:()=>Oa,$ZodCodec:()=>Jt,$ZodCustom:()=>su,$ZodCustomStringFormat:()=>mo,$ZodDate:()=>ko,$ZodDefault:()=>Vo,$ZodDiscriminatedUnion:()=>Do,$ZodE164:()=>so,$ZodEmail:()=>Ca,$ZodEmoji:()=>Ma,$ZodEncodeError:()=>ii,$ZodEnum:()=>Ro,$ZodError:()=>li,$ZodExactOptional:()=>Ko,$ZodFile:()=>Fo,$ZodFunction:()=>au,$ZodGUID:()=>Ja,$ZodIPv4:()=>eo,$ZodIPv6:()=>io,$ZodISODate:()=>Ya,$ZodISODateTime:()=>qa,$ZodISODuration:()=>Qa,$ZodISOTime:()=>Ha,$ZodIntersection:()=>No,$ZodJWT:()=>co,$ZodKSUID:()=>Xa,$ZodLazy:()=>uu,$ZodLiteral:()=>Co,$ZodMAC:()=>to,$ZodMap:()=>To,$ZodNaN:()=>eu,$ZodNanoID:()=>Wa,$ZodNever:()=>yo,$ZodNonOptional:()=>qo,$ZodNull:()=>ho,$ZodNullable:()=>Go,$ZodNumber:()=>Nt,$ZodNumberFormat:()=>po,$ZodObject:()=>zo,$ZodObjectJIT:()=>Uo,$ZodOptional:()=>Lt,$ZodPipe:()=>iu,$ZodPrefault:()=>Xo,$ZodPromise:()=>ou,$ZodReadonly:()=>tu,$ZodRealError:()=>T,$ZodRecord:()=>Eo,$ZodRegistry:()=>bu,$ZodSet:()=>Lo,$ZodString:()=>Pe,$ZodStringFormat:()=>S,$ZodSuccess:()=>Ho,$ZodSymbol:()=>vo,$ZodTemplateLiteral:()=>ru,$ZodTransform:()=>Mo,$ZodTuple:()=>At,$ZodType:()=>y,$ZodULID:()=>Va,$ZodURL:()=>Fa,$ZodUUID:()=>Ra,$ZodUndefined:()=>go,$ZodUnion:()=>pi,$ZodUnknown:()=>_o,$ZodVoid:()=>bo,$ZodXID:()=>Ba,$ZodXor:()=>jo,$brand:()=>pr,$constructor:()=>m,$input:()=>yu,$output:()=>_u,Doc:()=>Aa,JSONSchema:()=>Up,JSONSchemaGenerator:()=>zp,NEVER:()=>mr,TimePrecision:()=>Su,_any:()=>Gu,_array:()=>Qu,_base64:()=>rn,_base64url:()=>an,_bigint:()=>Ju,_boolean:()=>Au,_catch:()=>$p,_check:()=>rs,_cidrv4:()=>tn,_cidrv6:()=>nn,_coercedBigint:()=>Ru,_coercedBoolean:()=>Lu,_coercedDate:()=>Yu,_coercedNumber:()=>ju,_coercedString:()=>Iu,_cuid:()=>Bt,_cuid2:()=>Xt,_custom:()=>is,_date:()=>qu,_decode:()=>yt,_decodeAsync:()=>kt,_default:()=>vp,_discriminatedUnion:()=>np,_e164:()=>on,_email:()=>Ct,_emoji:()=>Gt,_encode:()=>_t,_encodeAsync:()=>bt,_endsWith:()=>Si,_enum:()=>lp,_file:()=>es,_float32:()=>Nu,_float64:()=>Pu,_gt:()=>H,_gte:()=>E,_guid:()=>$i,_includes:()=>Ii,_int:()=>Du,_int32:()=>Eu,_int64:()=>Cu,_intersection:()=>rp,_ipv4:()=>Qt,_ipv6:()=>en,_isoDate:()=>zu,_isoDateTime:()=>wu,_isoDuration:()=>Ou,_isoTime:()=>Uu,_jwt:()=>un,_ksuid:()=>Ht,_lazy:()=>kp,_length:()=>Le,_literal:()=>cp,_lowercase:()=>bi,_lt:()=>Y,_lte:()=>C,_mac:()=>xu,_map:()=>up,_max:()=>C,_maxLength:()=>Ae,_maxSize:()=>pe,_mime:()=>wi,_min:()=>E,_minLength:()=>ae,_minSize:()=>Q,_multipleOf:()=>me,_nan:()=>Hu,_nanoid:()=>Vt,_nativeEnum:()=>dp,_negative:()=>ln,_never:()=>Bu,_nonnegative:()=>cn,_nonoptional:()=>gp,_nonpositive:()=>dn,_normalize:()=>zi,_null:()=>Ku,_nullable:()=>fp,_number:()=>Zu,_optional:()=>pp,_overwrite:()=>X,_parse:()=>ze,_parseAsync:()=>Ue,_pipe:()=>_p,_positive:()=>sn,_promise:()=>Ip,_property:()=>mn,_readonly:()=>yp,_record:()=>op,_refine:()=>ts,_regex:()=>yi,_safeDecode:()=>xt,_safeDecodeAsync:()=>wt,_safeEncode:()=>It,_safeEncodeAsync:()=>St,_safeParse:()=>Oe,_safeParseAsync:()=>Ze,_set:()=>sp,_size:()=>Te,_slugify:()=>ji,_startsWith:()=>xi,_string:()=>ku,_stringFormat:()=>Je,_stringbool:()=>us,_success:()=>hp,_superRefine:()=>ns,_symbol:()=>Mu,_templateLiteral:()=>bp,_toLowerCase:()=>Oi,_toUpperCase:()=>Zi,_transform:()=>mp,_trim:()=>Ui,_tuple:()=>ap,_uint32:()=>Tu,_uint64:()=>Fu,_ulid:()=>qt,_undefined:()=>Wu,_union:()=>ip,_unknown:()=>Vu,_uppercase:()=>ki,_url:()=>_i,_uuid:()=>Ft,_uuidv4:()=>Mt,_uuidv6:()=>Wt,_uuidv7:()=>Kt,_void:()=>Xu,_xid:()=>Yt,_xor:()=>tp,clone:()=>L,config:()=>j,createStandardJSONSchemaMethod:()=>Re,createToJSONSchemaMethod:()=>ss,decode:()=>Jd,decodeAsync:()=>Cd,describe:()=>as,encode:()=>Ld,encodeAsync:()=>Rd,extractDefs:()=>ve,finalize:()=>ge,flattenError:()=>gt,formatError:()=>ht,globalConfig:()=>ti,globalRegistry:()=>R,initializeContext:()=>fe,isValidBase64:()=>Dt,isValidBase64URL:()=>oo,isValidJWT:()=>lo,locales:()=>hu,meta:()=>os,parse:()=>di,parseAsync:()=>ci,prettifyError:()=>$t,process:()=>x,regexes:()=>zt,registry:()=>Rt,safeDecode:()=>Md,safeDecodeAsync:()=>Kd,safeEncode:()=>Fd,safeEncodeAsync:()=>Wd,safeParse:()=>Er,safeParseAsync:()=>Tr,toDotPath:()=>Pr,toJSONSchema:()=>gn,treeifyError:()=>Nr,util:()=>fr,version:()=>La},1),Zp=V({endsWith:()=>Si,gt:()=>H,gte:()=>E,includes:()=>Ii,length:()=>Le,lowercase:()=>bi,lt:()=>Y,lte:()=>C,maxLength:()=>Ae,maxSize:()=>pe,mime:()=>wi,minLength:()=>ae,minSize:()=>Q,multipleOf:()=>me,negative:()=>ln,nonnegative:()=>cn,nonpositive:()=>dn,normalize:()=>zi,overwrite:()=>X,positive:()=>sn,property:()=>mn,regex:()=>yi,size:()=>Te,slugify:()=>ji,startsWith:()=>xi,toLowerCase:()=>Oi,toUpperCase:()=>Zi,trim:()=>Ui,uppercase:()=>ki},1),Ws=V({ZodISODate:()=>$n,ZodISODateTime:()=>hn,ZodISODuration:()=>yn,ZodISOTime:()=>_n,date:()=>Gs,datetime:()=>Ks,duration:()=>Bs,time:()=>Vs},1);const hn=m("ZodISODateTime",(e,t)=>{qa.init(e,t),w.init(e,t)});function Ks(e){return wu(hn,e)}const $n=m("ZodISODate",(e,t)=>{Ya.init(e,t),w.init(e,t)});function Gs(e){return zu($n,e)}const _n=m("ZodISOTime",(e,t)=>{Ha.init(e,t),w.init(e,t)});function Vs(e){return Uu(_n,e)}const yn=m("ZodISODuration",(e,t)=>{Qa.init(e,t),w.init(e,t)});function Bs(e){return Ou(yn,e)}var Xs=(e,t)=>{li.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>ht(e,r)},flatten:{value:r=>gt(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ni,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ni,2)}},isEmpty:{get(){return e.issues.length===0}}})};const qs=m("ZodError",Xs),A=m("ZodError",Xs,{Parent:Error}),Ys=ze(A),Hs=Ue(A),Qs=Oe(A),bn=Ze(A),el=_t(A),il=yt(A),tl=bt(A),nl=kt(A),rl=It(A),al=xt(A),ol=St(A),ul=wt(A);var jp=V({ZodAny:()=>et,ZodArray:()=>it,ZodBase64:()=>Ki,ZodBase64URL:()=>Gi,ZodBigInt:()=>We,ZodBigIntFormat:()=>Hi,ZodBoolean:()=>ye,ZodCIDRv4:()=>Mi,ZodCIDRv6:()=>Wi,ZodCUID:()=>Ti,ZodCUID2:()=>Ai,ZodCatch:()=>Yn,ZodCodec:()=>dt,ZodCustom:()=>Qe,ZodCustomStringFormat:()=>$e,ZodDate:()=>Ge,ZodDefault:()=>ut,ZodDiscriminatedUnion:()=>tt,ZodE164:()=>Vi,ZodEmail:()=>Ni,ZodEmoji:()=>Pi,ZodEnum:()=>ue,ZodExactOptional:()=>Mn,ZodFile:()=>Cn,ZodFunction:()=>or,ZodGUID:()=>Fe,ZodIPv4:()=>Ci,ZodIPv6:()=>Fi,ZodIntersection:()=>En,ZodJWT:()=>Bi,ZodKSUID:()=>Ri,ZodLazy:()=>rr,ZodLiteral:()=>at,ZodMAC:()=>kn,ZodMap:()=>Ln,ZodNaN:()=>Qn,ZodNanoID:()=>Ei,ZodNever:()=>Un,ZodNonOptional:()=>st,ZodNull:()=>Sn,ZodNullable:()=>Kn,ZodNumber:()=>_e,ZodNumberFormat:()=>oe,ZodObject:()=>ke,ZodOptional:()=>qe,ZodPipe:()=>lt,ZodPrefault:()=>Vn,ZodPromise:()=>ar,ZodReadonly:()=>ir,ZodRecord:()=>Be,ZodSet:()=>Jn,ZodString:()=>he,ZodStringFormat:()=>w,ZodSuccess:()=>qn,ZodSymbol:()=>In,ZodTemplateLiteral:()=>nr,ZodTransform:()=>Fn,ZodTuple:()=>An,ZodType:()=>b,ZodULID:()=>Li,ZodURL:()=>Me,ZodUUID:()=>G,ZodUndefined:()=>xn,ZodUnion:()=>Ie,ZodUnknown:()=>zn,ZodVoid:()=>On,ZodXID:()=>Ji,ZodXor:()=>Nn,_ZodString:()=>Di,_default:()=>Gn,_function:()=>mt,any:()=>wn,array:()=>be,base64:()=>Ul,base64url:()=>Ol,bigint:()=>Rl,boolean:()=>Yi,catch:()=>Hn,check:()=>od,cidrv4:()=>wl,cidrv6:()=>zl,codec:()=>nd,cuid:()=>$l,cuid2:()=>_l,custom:()=>ur,date:()=>Gl,describe:()=>ud,discriminatedUnion:()=>Pn,e164:()=>Zl,email:()=>sl,emoji:()=>gl,enum:()=>Xe,exactOptional:()=>Wn,file:()=>ed,float32:()=>Tl,float64:()=>Al,function:()=>mt,guid:()=>ll,hash:()=>El,hex:()=>Pl,hostname:()=>Nl,httpUrl:()=>vl,instanceof:()=>dr,int:()=>qi,int32:()=>Ll,int64:()=>Cl,intersection:()=>Tn,ipv4:()=>Il,ipv6:()=>Sl,json:()=>dd,jwt:()=>jl,keyof:()=>Vl,ksuid:()=>kl,lazy:()=>ct,literal:()=>Rn,looseObject:()=>Dn,looseRecord:()=>ql,mac:()=>xl,map:()=>Yl,meta:()=>sd,nan:()=>er,nanoid:()=>hl,nativeEnum:()=>Ql,never:()=>Ke,nonoptional:()=>Xn,null:()=>Qi,nullable:()=>Ye,nullish:()=>id,number:()=>Xi,object:()=>Zn,optional:()=>xe,partialRecord:()=>Xl,pipe:()=>He,prefault:()=>Bn,preprocess:()=>cd,promise:()=>ad,readonly:()=>tr,record:()=>rt,refine:()=>sr,set:()=>Hl,strictObject:()=>jn,string:()=>Ce,stringFormat:()=>Dl,stringbool:()=>ld,success:()=>td,superRefine:()=>lr,symbol:()=>Ml,templateLiteral:()=>rd,transform:()=>ot,tuple:()=>nt,uint32:()=>Jl,uint64:()=>Fl,ulid:()=>yl,undefined:()=>Wl,union:()=>Ve,unknown:()=>ee,url:()=>fl,uuid:()=>dl,uuidv4:()=>cl,uuidv6:()=>ml,uuidv7:()=>pl,void:()=>Kl,xid:()=>bl,xor:()=>Bl},1);const b=m("ZodType",(e,t)=>(y.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Re(e,"input"),output:Re(e,"output")}}),e.toJSONSchema=ss(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(K(t,{checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>L(e,r,a),e.brand=()=>e,e.register=((r,a)=>(r.add(e,a),e)),e.parse=(r,a)=>Ys(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>Qs(e,r,a),e.parseAsync=async(r,a)=>Hs(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>bn(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>el(e,r,a),e.decode=(r,a)=>il(e,r,a),e.encodeAsync=async(r,a)=>tl(e,r,a),e.decodeAsync=async(r,a)=>nl(e,r,a),e.safeEncode=(r,a)=>rl(e,r,a),e.safeDecode=(r,a)=>al(e,r,a),e.safeEncodeAsync=async(r,a)=>ol(e,r,a),e.safeDecodeAsync=async(r,a)=>ul(e,r,a),e.refine=(r,a)=>e.check(sr(r,a)),e.superRefine=r=>e.check(lr(r)),e.overwrite=r=>e.check(X(r)),e.optional=()=>xe(e),e.exactOptional=()=>Wn(e),e.nullable=()=>Ye(e),e.nullish=()=>xe(Ye(e)),e.nonoptional=r=>Xn(e,r),e.array=()=>be(e),e.or=r=>Ve([e,r]),e.and=r=>Tn(e,r),e.transform=r=>He(e,ot(r)),e.default=r=>Gn(e,r),e.prefault=r=>Bn(e,r),e.catch=r=>Hn(e,r),e.pipe=r=>He(e,r),e.readonly=()=>tr(e),e.describe=r=>{let a=e.clone();return R.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){var r;return(r=R.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return R.get(e);let a=e.clone();return R.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Di=m("_ZodString",(e,t)=>{Pe.init(e,t),b.init(e,t),e._zod.processJSONSchema=(a,i,n)=>ls(e,a,i,n);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(yi(...a)),e.includes=(...a)=>e.check(Ii(...a)),e.startsWith=(...a)=>e.check(xi(...a)),e.endsWith=(...a)=>e.check(Si(...a)),e.min=(...a)=>e.check(ae(...a)),e.max=(...a)=>e.check(Ae(...a)),e.length=(...a)=>e.check(Le(...a)),e.nonempty=(...a)=>e.check(ae(1,...a)),e.lowercase=a=>e.check(bi(a)),e.uppercase=a=>e.check(ki(a)),e.trim=()=>e.check(Ui()),e.normalize=(...a)=>e.check(zi(...a)),e.toLowerCase=()=>e.check(Oi()),e.toUpperCase=()=>e.check(Zi()),e.slugify=()=>e.check(ji())}),he=m("ZodString",(e,t)=>{Pe.init(e,t),Di.init(e,t),e.email=r=>e.check(Ct(Ni,r)),e.url=r=>e.check(_i(Me,r)),e.jwt=r=>e.check(un(Bi,r)),e.emoji=r=>e.check(Gt(Pi,r)),e.guid=r=>e.check($i(Fe,r)),e.uuid=r=>e.check(Ft(G,r)),e.uuidv4=r=>e.check(Mt(G,r)),e.uuidv6=r=>e.check(Wt(G,r)),e.uuidv7=r=>e.check(Kt(G,r)),e.nanoid=r=>e.check(Vt(Ei,r)),e.guid=r=>e.check($i(Fe,r)),e.cuid=r=>e.check(Bt(Ti,r)),e.cuid2=r=>e.check(Xt(Ai,r)),e.ulid=r=>e.check(qt(Li,r)),e.base64=r=>e.check(rn(Ki,r)),e.base64url=r=>e.check(an(Gi,r)),e.xid=r=>e.check(Yt(Ji,r)),e.ksuid=r=>e.check(Ht(Ri,r)),e.ipv4=r=>e.check(Qt(Ci,r)),e.ipv6=r=>e.check(en(Fi,r)),e.cidrv4=r=>e.check(tn(Mi,r)),e.cidrv6=r=>e.check(nn(Wi,r)),e.e164=r=>e.check(on(Vi,r)),e.datetime=r=>e.check(Ks(r)),e.date=r=>e.check(Gs(r)),e.time=r=>e.check(Vs(r)),e.duration=r=>e.check(Bs(r))});function Ce(e){return ku(he,e)}const w=m("ZodStringFormat",(e,t)=>{S.init(e,t),Di.init(e,t)}),Ni=m("ZodEmail",(e,t)=>{Ca.init(e,t),w.init(e,t)});function sl(e){return Ct(Ni,e)}const Fe=m("ZodGUID",(e,t)=>{Ja.init(e,t),w.init(e,t)});function ll(e){return $i(Fe,e)}const G=m("ZodUUID",(e,t)=>{Ra.init(e,t),w.init(e,t)});function dl(e){return Ft(G,e)}function cl(e){return Mt(G,e)}function ml(e){return Wt(G,e)}function pl(e){return Kt(G,e)}const Me=m("ZodURL",(e,t)=>{Fa.init(e,t),w.init(e,t)});function fl(e){return _i(Me,e)}function vl(e){return _i(Me,{protocol:/^https?$/,hostname:ia,...p(e)})}const Pi=m("ZodEmoji",(e,t)=>{Ma.init(e,t),w.init(e,t)});function gl(e){return Gt(Pi,e)}const Ei=m("ZodNanoID",(e,t)=>{Wa.init(e,t),w.init(e,t)});function hl(e){return Vt(Ei,e)}const Ti=m("ZodCUID",(e,t)=>{Ka.init(e,t),w.init(e,t)});function $l(e){return Bt(Ti,e)}const Ai=m("ZodCUID2",(e,t)=>{Ga.init(e,t),w.init(e,t)});function _l(e){return Xt(Ai,e)}const Li=m("ZodULID",(e,t)=>{Va.init(e,t),w.init(e,t)});function yl(e){return qt(Li,e)}const Ji=m("ZodXID",(e,t)=>{Ba.init(e,t),w.init(e,t)});function bl(e){return Yt(Ji,e)}const Ri=m("ZodKSUID",(e,t)=>{Xa.init(e,t),w.init(e,t)});function kl(e){return Ht(Ri,e)}const Ci=m("ZodIPv4",(e,t)=>{eo.init(e,t),w.init(e,t)});function Il(e){return Qt(Ci,e)}const kn=m("ZodMAC",(e,t)=>{to.init(e,t),w.init(e,t)});function xl(e){return xu(kn,e)}const Fi=m("ZodIPv6",(e,t)=>{io.init(e,t),w.init(e,t)});function Sl(e){return en(Fi,e)}const Mi=m("ZodCIDRv4",(e,t)=>{no.init(e,t),w.init(e,t)});function wl(e){return tn(Mi,e)}const Wi=m("ZodCIDRv6",(e,t)=>{ro.init(e,t),w.init(e,t)});function zl(e){return nn(Wi,e)}const Ki=m("ZodBase64",(e,t)=>{ao.init(e,t),w.init(e,t)});function Ul(e){return rn(Ki,e)}const Gi=m("ZodBase64URL",(e,t)=>{uo.init(e,t),w.init(e,t)});function Ol(e){return an(Gi,e)}const Vi=m("ZodE164",(e,t)=>{so.init(e,t),w.init(e,t)});function Zl(e){return on(Vi,e)}const Bi=m("ZodJWT",(e,t)=>{co.init(e,t),w.init(e,t)});function jl(e){return un(Bi,e)}const $e=m("ZodCustomStringFormat",(e,t)=>{mo.init(e,t),w.init(e,t)});function Dl(e,t,r={}){return Je($e,e,t,r)}function Nl(e){return Je($e,"hostname",ea,e)}function Pl(e){return Je($e,"hex",ga,e)}function El(e,t){let r=`${e}_${(t==null?void 0:t.enc)??"hex"}`,a=zt[r];if(!a)throw Error(`Unrecognized hash format: ${r}`);return Je($e,r,a,t)}const _e=m("ZodNumber",(e,t)=>{Nt.init(e,t),b.init(e,t),e._zod.processJSONSchema=(a,i,n)=>ds(e,a,i,n),e.gt=(a,i)=>e.check(H(a,i)),e.gte=(a,i)=>e.check(E(a,i)),e.min=(a,i)=>e.check(E(a,i)),e.lt=(a,i)=>e.check(Y(a,i)),e.lte=(a,i)=>e.check(C(a,i)),e.max=(a,i)=>e.check(C(a,i)),e.int=a=>e.check(qi(a)),e.safe=a=>e.check(qi(a)),e.positive=a=>e.check(H(0,a)),e.nonnegative=a=>e.check(E(0,a)),e.negative=a=>e.check(Y(0,a)),e.nonpositive=a=>e.check(C(0,a)),e.multipleOf=(a,i)=>e.check(me(a,i)),e.step=(a,i)=>e.check(me(a,i)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Xi(e){return Zu(_e,e)}const oe=m("ZodNumberFormat",(e,t)=>{po.init(e,t),_e.init(e,t)});function qi(e){return Du(oe,e)}function Tl(e){return Nu(oe,e)}function Al(e){return Pu(oe,e)}function Ll(e){return Eu(oe,e)}function Jl(e){return Tu(oe,e)}const ye=m("ZodBoolean",(e,t)=>{Pt.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>cs(e,r,a,i)});function Yi(e){return Au(ye,e)}const We=m("ZodBigInt",(e,t)=>{Et.init(e,t),b.init(e,t),e._zod.processJSONSchema=(a,i,n)=>ms(e,a,i,n),e.gte=(a,i)=>e.check(E(a,i)),e.min=(a,i)=>e.check(E(a,i)),e.gt=(a,i)=>e.check(H(a,i)),e.gte=(a,i)=>e.check(E(a,i)),e.min=(a,i)=>e.check(E(a,i)),e.lt=(a,i)=>e.check(Y(a,i)),e.lte=(a,i)=>e.check(C(a,i)),e.max=(a,i)=>e.check(C(a,i)),e.positive=a=>e.check(H(BigInt(0),a)),e.negative=a=>e.check(Y(BigInt(0),a)),e.nonpositive=a=>e.check(C(BigInt(0),a)),e.nonnegative=a=>e.check(E(BigInt(0),a)),e.multipleOf=(a,i)=>e.check(me(a,i));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Rl(e){return Ju(We,e)}const Hi=m("ZodBigIntFormat",(e,t)=>{fo.init(e,t),We.init(e,t)});function Cl(e){return Cu(Hi,e)}function Fl(e){return Fu(Hi,e)}const In=m("ZodSymbol",(e,t)=>{vo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>ps(e,r,a,i)});function Ml(e){return Mu(In,e)}const xn=m("ZodUndefined",(e,t)=>{go.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>vs(e,r,a,i)});function Wl(e){return Wu(xn,e)}const Sn=m("ZodNull",(e,t)=>{ho.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>fs(e,r,a,i)});function Qi(e){return Ku(Sn,e)}const et=m("ZodAny",(e,t)=>{$o.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>{}});function wn(){return Gu(et)}const zn=m("ZodUnknown",(e,t)=>{_o.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>{}});function ee(){return Vu(zn)}const Un=m("ZodNever",(e,t)=>{yo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>hs(e,r,a,i)});function Ke(e){return Bu(Un,e)}const On=m("ZodVoid",(e,t)=>{bo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>gs(e,r,a,i)});function Kl(e){return Xu(On,e)}const Ge=m("ZodDate",(e,t)=>{ko.init(e,t),b.init(e,t),e._zod.processJSONSchema=(a,i,n)=>$s(e,a,i,n),e.min=(a,i)=>e.check(E(a,i)),e.max=(a,i)=>e.check(C(a,i));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Gl(e){return qu(Ge,e)}const it=m("ZodArray",(e,t)=>{xo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Zs(e,r,a,i),e.element=t.element,e.min=(r,a)=>e.check(ae(r,a)),e.nonempty=r=>e.check(ae(1,r)),e.max=(r,a)=>e.check(Ae(r,a)),e.length=(r,a)=>e.check(Le(r,a)),e.unwrap=()=>e.element});function be(e,t){return Qu(it,e,t)}function Vl(e){let t=e._zod.def.shape;return Xe(Object.keys(t))}const ke=m("ZodObject",(e,t)=>{Uo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>js(e,r,a,i),k(e,"shape",()=>t.shape),e.keyof=()=>Xe(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ee()}),e.loose=()=>e.clone({...e._zod.def,catchall:ee()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ke()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Sr(e,r),e.safeExtend=r=>wr(e,r),e.merge=r=>zr(e,r),e.pick=r=>Ir(e,r),e.omit=r=>xr(e,r),e.partial=(...r)=>Ur(qe,e,r[0]),e.required=(...r)=>Or(st,e,r[0])});function Zn(e,t){return new ke({type:"object",shape:e??{},...p(t)})}function jn(e,t){return new ke({type:"object",shape:e,catchall:Ke(),...p(t)})}function Dn(e,t){return new ke({type:"object",shape:e,catchall:ee(),...p(t)})}const Ie=m("ZodUnion",(e,t)=>{pi.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>pn(e,r,a,i),e.options=t.options});function Ve(e,t){return new Ie({type:"union",options:e,...p(t)})}const Nn=m("ZodXor",(e,t)=>{Ie.init(e,t),jo.init(e,t),e._zod.processJSONSchema=(r,a,i)=>pn(e,r,a,i),e.options=t.options});function Bl(e,t){return new Nn({type:"union",options:e,inclusive:!1,...p(t)})}const tt=m("ZodDiscriminatedUnion",(e,t)=>{Ie.init(e,t),Do.init(e,t)});function Pn(e,t,r){return new tt({type:"union",options:t,discriminator:e,...p(r)})}const En=m("ZodIntersection",(e,t)=>{No.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Ds(e,r,a,i)});function Tn(e,t){return new En({type:"intersection",left:e,right:t})}const An=m("ZodTuple",(e,t)=>{At.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Ns(e,r,a,i),e.rest=r=>e.clone({...e._zod.def,rest:r})});function nt(e,t,r){let a=t instanceof y;return new An({type:"tuple",items:e,rest:a?t:null,...p(a?r:t)})}const Be=m("ZodRecord",(e,t)=>{Eo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Ps(e,r,a,i),e.keyType=t.keyType,e.valueType=t.valueType});function rt(e,t,r){return new Be({type:"record",keyType:e,valueType:t,...p(r)})}function Xl(e,t,r){let a=L(e);return a._zod.values=void 0,new Be({type:"record",keyType:a,valueType:t,...p(r)})}function ql(e,t,r){return new Be({type:"record",keyType:e,valueType:t,mode:"loose",...p(r)})}const Ln=m("ZodMap",(e,t)=>{To.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Us(e,r,a,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Q(...r)),e.nonempty=r=>e.check(Q(1,r)),e.max=(...r)=>e.check(pe(...r)),e.size=(...r)=>e.check(Te(...r))});function Yl(e,t,r){return new Ln({type:"map",keyType:e,valueType:t,...p(r)})}const Jn=m("ZodSet",(e,t)=>{Lo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Os(e,r,a,i),e.min=(...r)=>e.check(Q(...r)),e.nonempty=r=>e.check(Q(1,r)),e.max=(...r)=>e.check(pe(...r)),e.size=(...r)=>e.check(Te(...r))});function Hl(e,t){return new Jn({type:"set",valueType:e,...p(t)})}const ue=m("ZodEnum",(e,t)=>{Ro.init(e,t),b.init(e,t),e._zod.processJSONSchema=(a,i,n)=>_s(e,a,i,n),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(a,i)=>{let n={};for(let o of a)if(r.has(o))n[o]=t.entries[o];else throw Error(`Key ${o} not found in enum`);return new ue({...t,checks:[],...p(i),entries:n})},e.exclude=(a,i)=>{let n={...t.entries};for(let o of a)if(r.has(o))delete n[o];else throw Error(`Key ${o} not found in enum`);return new ue({...t,checks:[],...p(i),entries:n})}});function Xe(e,t){return new ue({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e,...p(t)})}function Ql(e,t){return new ue({type:"enum",entries:e,...p(t)})}const at=m("ZodLiteral",(e,t)=>{Co.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>ys(e,r,a,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Rn(e,t){return new at({type:"literal",values:Array.isArray(e)?e:[e],...p(t)})}const Cn=m("ZodFile",(e,t)=>{Fo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Is(e,r,a,i),e.min=(r,a)=>e.check(Q(r,a)),e.max=(r,a)=>e.check(pe(r,a)),e.mime=(r,a)=>e.check(wi(Array.isArray(r)?r:[r],a))});function ed(e){return es(Cn,e)}const Fn=m("ZodTransform",(e,t)=>{Mo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>zs(e,r,a,i),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new ii(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(le(n,r.value,t));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(le(o))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(n=>(r.value=n,r)):(r.value=i,r)}});function ot(e){return new Fn({type:"transform",transform:e})}const qe=m("ZodOptional",(e,t)=>{Lt.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>fn(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function xe(e){return new qe({type:"optional",innerType:e})}const Mn=m("ZodExactOptional",(e,t)=>{Ko.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>fn(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Wn(e){return new Mn({type:"optional",innerType:e})}const Kn=m("ZodNullable",(e,t)=>{Go.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Es(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Ye(e){return new Kn({type:"nullable",innerType:e})}function id(e){return xe(Ye(e))}const ut=m("ZodDefault",(e,t)=>{Vo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>As(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gn(e,t){return new ut({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ai(t)}})}const Vn=m("ZodPrefault",(e,t)=>{Xo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Ls(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Bn(e,t){return new Vn({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ai(t)}})}const st=m("ZodNonOptional",(e,t)=>{qo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Ts(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function Xn(e,t){return new st({type:"nonoptional",innerType:e,...p(t)})}const qn=m("ZodSuccess",(e,t)=>{Ho.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>xs(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function td(e){return new qn({type:"success",innerType:e})}const Yn=m("ZodCatch",(e,t)=>{Qo.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Js(e,r,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Hn(e,t){return new Yn({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Qn=m("ZodNaN",(e,t)=>{eu.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>bs(e,r,a,i)});function er(e){return Hu(Qn,e)}const lt=m("ZodPipe",(e,t)=>{iu.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Rs(e,r,a,i),e.in=t.in,e.out=t.out});function He(e,t){return new lt({type:"pipe",in:e,out:t})}const dt=m("ZodCodec",(e,t)=>{lt.init(e,t),Jt.init(e,t)});function nd(e,t,r){return new dt({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}const ir=m("ZodReadonly",(e,t)=>{tu.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Cs(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function tr(e){return new ir({type:"readonly",innerType:e})}const nr=m("ZodTemplateLiteral",(e,t)=>{ru.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>ks(e,r,a,i)});function rd(e,t){return new nr({type:"template_literal",parts:e,...p(t)})}const rr=m("ZodLazy",(e,t)=>{uu.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Ms(e,r,a,i),e.unwrap=()=>e._zod.def.getter()});function ct(e){return new rr({type:"lazy",getter:e})}const ar=m("ZodPromise",(e,t)=>{ou.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Fs(e,r,a,i),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new ar({type:"promise",innerType:e})}const or=m("ZodFunction",(e,t)=>{au.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>ws(e,r,a,i)});function mt(e){return new or({type:"function",input:Array.isArray(e==null?void 0:e.input)?nt(e==null?void 0:e.input):(e==null?void 0:e.input)??be(ee()),output:(e==null?void 0:e.output)??ee()})}const Qe=m("ZodCustom",(e,t)=>{su.init(e,t),b.init(e,t),e._zod.processJSONSchema=(r,a,i)=>Ss(e,r,a,i)});function od(e){let t=new U({check:"custom"});return t._zod.check=e,t}function ur(e,t){return is(Qe,e??(()=>!0),t)}function sr(e,t={}){return ts(Qe,e,t)}function lr(e){return ns(e)}const ud=as,sd=os;function dr(e,t={}){let r=new Qe({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...p(t)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}const ld=(...e)=>us({Codec:dt,Boolean:ye,String:he},...e);function dd(e){let t=ct(()=>Ve([Ce(e),Xi(),Yi(),Qi(),be(t),rt(Ce(),t)]));return t}function cd(e,t){return He(ot(e),t)}const md={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Dp(e){j({customError:e})}function Np(){return j().customError}var pd;pd||(pd={});var g={...jp,...Zp,iso:Ws},Pp=new Set("$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly".split("."));function Ep(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Tp(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let a=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===a){let i=r[1];if(!i||!t.defs[i])throw Error(`Reference not found: ${e}`);return t.defs[i]}throw Error(`Reference not found: ${e}`)}function fd(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return g.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return g.lazy(()=>{if(!t.refs.has(i))throw Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let n=D(Tp(i,t),t);return t.refs.set(i,n),t.processing.delete(i),n}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return g.null();if(i.length===0)return g.never();if(i.length===1)return g.literal(i[0]);if(i.every(o=>typeof o=="string"))return g.enum(i);let n=i.map(o=>g.literal(o));return n.length<2?n[0]:g.union([n[0],n[1],...n.slice(2)])}if(e.const!==void 0)return g.literal(e.const);let r=e.type;if(Array.isArray(r)){let i=r.map(n=>fd({...e,type:n},t));return i.length===0?g.never():i.length===1?i[0]:g.union(i)}if(!r)return g.any();let a;switch(r){case"string":{let i=g.string();if(e.format){let n=e.format;n==="email"?i=i.check(g.email()):n==="uri"||n==="uri-reference"?i=i.check(g.url()):n==="uuid"||n==="guid"?i=i.check(g.uuid()):n==="date-time"?i=i.check(g.iso.datetime()):n==="date"?i=i.check(g.iso.date()):n==="time"?i=i.check(g.iso.time()):n==="duration"?i=i.check(g.iso.duration()):n==="ipv4"?i=i.check(g.ipv4()):n==="ipv6"?i=i.check(g.ipv6()):n==="mac"?i=i.check(g.mac()):n==="cidr"?i=i.check(g.cidrv4()):n==="cidr-v6"?i=i.check(g.cidrv6()):n==="base64"?i=i.check(g.base64()):n==="base64url"?i=i.check(g.base64url()):n==="e164"?i=i.check(g.e164()):n==="jwt"?i=i.check(g.jwt()):n==="emoji"?i=i.check(g.emoji()):n==="nanoid"?i=i.check(g.nanoid()):n==="cuid"?i=i.check(g.cuid()):n==="cuid2"?i=i.check(g.cuid2()):n==="ulid"?i=i.check(g.ulid()):n==="xid"?i=i.check(g.xid()):n==="ksuid"&&(i=i.check(g.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),a=i;break}case"number":case"integer":{let i=r==="integer"?g.number().int():g.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),a=i;break}case"boolean":a=g.boolean();break;case"null":a=g.null();break;case"object":{let i={},n=e.properties||{},o=new Set(e.required||[]);for(let[l,s]of Object.entries(n)){let c=D(s,t);i[l]=o.has(l)?c:c.optional()}if(e.propertyNames){let l=D(e.propertyNames,t),s=e.additionalProperties&&typeof e.additionalProperties=="object"?D(e.additionalProperties,t):g.any();if(Object.keys(i).length===0){a=g.record(l,s);break}let c=g.object(i).passthrough(),d=g.looseRecord(l,s);a=g.intersection(c,d);break}if(e.patternProperties){let l=e.patternProperties,s=Object.keys(l),c=[];for(let f of s){let h=D(l[f],t),I=g.string().regex(new RegExp(f));c.push(g.looseRecord(I,h))}let d=[];if(Object.keys(i).length>0&&d.push(g.object(i).passthrough()),d.push(...c),d.length===0)a=g.object({}).passthrough();else if(d.length===1)a=d[0];else{let f=g.intersection(d[0],d[1]);for(let h=2;hD(l,t)),u=n&&typeof n=="object"&&!Array.isArray(n)?D(n,t):void 0;a=u?g.tuple(o).rest(u):g.tuple(o),typeof e.minItems=="number"&&(a=a.check(g.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(g.maxLength(e.maxItems)))}else if(Array.isArray(n)){let o=n.map(l=>D(l,t)),u=e.additionalItems&&typeof e.additionalItems=="object"?D(e.additionalItems,t):void 0;a=u?g.tuple(o).rest(u):g.tuple(o),typeof e.minItems=="number"&&(a=a.check(g.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(g.maxLength(e.maxItems)))}else if(n!==void 0){let o=D(n,t),u=g.array(o);typeof e.minItems=="number"&&(u=u.min(e.minItems)),typeof e.maxItems=="number"&&(u=u.max(e.maxItems)),a=u}else a=g.array(g.any());break}default:throw Error(`Unsupported type: ${r}`)}return e.description&&(a=a.describe(e.description)),e.default!==void 0&&(a=a.default(e.default)),a}function D(e,t){if(typeof e=="boolean")return e?g.any():g.never();let r=fd(e,t),a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let n=e.anyOf.map(u=>D(u,t)),o=g.union(n);r=a?g.intersection(r,o):o}if(e.oneOf&&Array.isArray(e.oneOf)){let n=e.oneOf.map(u=>D(u,t)),o=g.xor(n);r=a?g.intersection(r,o):o}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=a?r:g.any();else{let n=a?r:D(e.allOf[0],t),o=a?0:1;for(let u=o;u0&&t.registry.add(r,i),r}function Ap(e,t){return typeof e=="boolean"?e?g.any():g.never():D(e,{version:Ep(e,t==null?void 0:t.defaultTarget),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:(t==null?void 0:t.registry)??R})}var Lp=V({bigint:()=>Rp,boolean:()=>Jp,date:()=>hd,number:()=>gd,string:()=>vd},1);function vd(e){return Iu(he,e)}function gd(e){return ju(_e,e)}function Jp(e){return Lu(ye,e)}function Rp(e){return Ru(We,e)}function hd(e){return Yu(Ge,e)}var Cp=V({$brand:()=>pr,$input:()=>yu,$output:()=>_u,NEVER:()=>mr,TimePrecision:()=>Su,ZodAny:()=>et,ZodArray:()=>it,ZodBase64:()=>Ki,ZodBase64URL:()=>Gi,ZodBigInt:()=>We,ZodBigIntFormat:()=>Hi,ZodBoolean:()=>ye,ZodCIDRv4:()=>Mi,ZodCIDRv6:()=>Wi,ZodCUID:()=>Ti,ZodCUID2:()=>Ai,ZodCatch:()=>Yn,ZodCodec:()=>dt,ZodCustom:()=>Qe,ZodCustomStringFormat:()=>$e,ZodDate:()=>Ge,ZodDefault:()=>ut,ZodDiscriminatedUnion:()=>tt,ZodE164:()=>Vi,ZodEmail:()=>Ni,ZodEmoji:()=>Pi,ZodEnum:()=>ue,ZodError:()=>qs,ZodExactOptional:()=>Mn,ZodFile:()=>Cn,ZodFirstPartyTypeKind:()=>pd,ZodFunction:()=>or,ZodGUID:()=>Fe,ZodIPv4:()=>Ci,ZodIPv6:()=>Fi,ZodISODate:()=>$n,ZodISODateTime:()=>hn,ZodISODuration:()=>yn,ZodISOTime:()=>_n,ZodIntersection:()=>En,ZodIssueCode:()=>md,ZodJWT:()=>Bi,ZodKSUID:()=>Ri,ZodLazy:()=>rr,ZodLiteral:()=>at,ZodMAC:()=>kn,ZodMap:()=>Ln,ZodNaN:()=>Qn,ZodNanoID:()=>Ei,ZodNever:()=>Un,ZodNonOptional:()=>st,ZodNull:()=>Sn,ZodNullable:()=>Kn,ZodNumber:()=>_e,ZodNumberFormat:()=>oe,ZodObject:()=>ke,ZodOptional:()=>qe,ZodPipe:()=>lt,ZodPrefault:()=>Vn,ZodPromise:()=>ar,ZodReadonly:()=>ir,ZodRealError:()=>A,ZodRecord:()=>Be,ZodSet:()=>Jn,ZodString:()=>he,ZodStringFormat:()=>w,ZodSuccess:()=>qn,ZodSymbol:()=>In,ZodTemplateLiteral:()=>nr,ZodTransform:()=>Fn,ZodTuple:()=>An,ZodType:()=>b,ZodULID:()=>Li,ZodURL:()=>Me,ZodUUID:()=>G,ZodUndefined:()=>xn,ZodUnion:()=>Ie,ZodUnknown:()=>zn,ZodVoid:()=>On,ZodXID:()=>Ji,ZodXor:()=>Nn,_ZodString:()=>Di,_default:()=>Gn,_function:()=>mt,any:()=>wn,array:()=>be,base64:()=>Ul,base64url:()=>Ol,bigint:()=>Rl,boolean:()=>Yi,catch:()=>Hn,check:()=>od,cidrv4:()=>wl,cidrv6:()=>zl,clone:()=>L,codec:()=>nd,coerce:()=>Lp,config:()=>j,core:()=>Op,cuid:()=>$l,cuid2:()=>_l,custom:()=>ur,date:()=>Gl,decode:()=>il,decodeAsync:()=>nl,describe:()=>ud,discriminatedUnion:()=>Pn,e164:()=>Zl,email:()=>sl,emoji:()=>gl,encode:()=>el,encodeAsync:()=>tl,endsWith:()=>Si,enum:()=>Xe,exactOptional:()=>Wn,file:()=>ed,flattenError:()=>gt,float32:()=>Tl,float64:()=>Al,formatError:()=>ht,fromJSONSchema:()=>Ap,function:()=>mt,getErrorMap:()=>Np,globalRegistry:()=>R,gt:()=>H,gte:()=>E,guid:()=>ll,hash:()=>El,hex:()=>Pl,hostname:()=>Nl,httpUrl:()=>vl,includes:()=>Ii,instanceof:()=>dr,int:()=>qi,int32:()=>Ll,int64:()=>Cl,intersection:()=>Tn,ipv4:()=>Il,ipv6:()=>Sl,iso:()=>Ws,json:()=>dd,jwt:()=>jl,keyof:()=>Vl,ksuid:()=>kl,lazy:()=>ct,length:()=>Le,literal:()=>Rn,locales:()=>hu,looseObject:()=>Dn,looseRecord:()=>ql,lowercase:()=>bi,lt:()=>Y,lte:()=>C,mac:()=>xl,map:()=>Yl,maxLength:()=>Ae,maxSize:()=>pe,meta:()=>sd,mime:()=>wi,minLength:()=>ae,minSize:()=>Q,multipleOf:()=>me,nan:()=>er,nanoid:()=>hl,nativeEnum:()=>Ql,negative:()=>ln,never:()=>Ke,nonnegative:()=>cn,nonoptional:()=>Xn,nonpositive:()=>dn,normalize:()=>zi,null:()=>Qi,nullable:()=>Ye,nullish:()=>id,number:()=>Xi,object:()=>Zn,optional:()=>xe,overwrite:()=>X,parse:()=>Ys,parseAsync:()=>Hs,partialRecord:()=>Xl,pipe:()=>He,positive:()=>sn,prefault:()=>Bn,preprocess:()=>cd,prettifyError:()=>$t,promise:()=>ad,property:()=>mn,readonly:()=>tr,record:()=>rt,refine:()=>sr,regex:()=>yi,regexes:()=>zt,registry:()=>Rt,safeDecode:()=>al,safeDecodeAsync:()=>ul,safeEncode:()=>rl,safeEncodeAsync:()=>ol,safeParse:()=>Qs,safeParseAsync:()=>bn,set:()=>Hl,setErrorMap:()=>Dp,size:()=>Te,slugify:()=>ji,startsWith:()=>xi,strictObject:()=>jn,string:()=>Ce,stringFormat:()=>Dl,stringbool:()=>ld,success:()=>td,superRefine:()=>lr,symbol:()=>Ml,templateLiteral:()=>rd,toJSONSchema:()=>gn,toLowerCase:()=>Oi,toUpperCase:()=>Zi,transform:()=>ot,treeifyError:()=>Nr,trim:()=>Ui,tuple:()=>nt,uint32:()=>Jl,uint64:()=>Fl,ulid:()=>yl,undefined:()=>Wl,union:()=>Ve,unknown:()=>ee,uppercase:()=>ki,url:()=>fl,util:()=>fr,uuid:()=>dl,uuidv4:()=>cl,uuidv6:()=>ml,uuidv7:()=>pl,void:()=>Kl,xid:()=>bl,xor:()=>Bl},1);j(cu());var Fp=Cp;export{Dn as A,Ve as B,wn as C,Pn as D,ur as E,xe as F,di as G,bn as H,rt as I,$t as J,ci as K,jn as L,Ke as M,Xi as N,ct as O,Zn as P,Ce as R,Qi as S,Yi as T,qs as U,ee as V,gn as W,he as _,md as a,Xe as b,ye as c,tt as d,ue as f,qe as g,ke as h,vd as i,er as j,Rn as k,Ge as l,_e as m,hd as n,et as o,at as p,li as q,gd as r,it as s,Fp as t,ut as u,b as v,be as w,dr as x,Ie as y,nt as z}; diff --git a/docs/index.html b/docs/index.html index a47eeec..bbc1d58 100644 --- a/docs/index.html +++ b/docs/index.html @@ -23,18 +23,22 @@ - - - - - + + + + + demo - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/uv.lock b/uv.lock index 7966fc5..096c200 100644 --- a/uv.lock +++ b/uv.lock @@ -88,7 +88,7 @@ wheels = [ [[package]] name = "drawdata" -version = "0.3.9" +version = "0.4.0" source = { editable = "." } dependencies = [ { name = "altair" },